diff --git a/dist/apps/admin-gui/109.d722694daabc5484.js b/dist/apps/admin-gui/109.d722694daabc5484.js new file mode 100644 index 000000000..036e85ef5 --- /dev/null +++ b/dist/apps/admin-gui/109.d722694daabc5484.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin_gui=self.webpackChunkadmin_gui||[]).push([[109],{15935:(y,S,n)=>{n.d(S,{D:()=>k});var m=n(95017),h=n(96308),l=n(30671),u=n(9244),f=n(81591),e=n(94650),g=n(36895),C=n(56709),p=n(98380),A=n(18750),c=n(89383),d=n(9185),i=n(8231),s=n(14849),D=n(37677);function x(t,o){if(1&t){const a=e.EpF();e.TgZ(0,"th",16)(1,"mat-checkbox",17),e.NdJ("change",function(_){e.CHM(a);const E=e.oxw(2);return e.KtG(_?E.masterToggle():null)}),e.ALo(2,"translate"),e.ALo(3,"masterCheckboxLabel"),e.qZA()()}if(2&t){const a=e.oxw().ngIf,r=e.oxw();e.xp6(1),e.Q6J("aria-label",e.lcZ(2,3,e.lcZ(3,5,a.all)))("checked",r.selection.hasValue()&&a.all)("indeterminate",r.selection.hasValue()&&!a.all)}}const O=function(t){return{name:t}};function T(t,o){if(1&t){const a=e.EpF();e.TgZ(0,"td",18)(1,"mat-checkbox",19),e.NdJ("change",function(_){const K=e.CHM(a).$implicit,F=e.oxw(2);return e.KtG(_?F.selection.toggle(K):null)})("click",function(_){return _.stopPropagation()}),e.ALo(2,"translate"),e.ALo(3,"checkboxLabel"),e.qZA()()}if(2&t){const a=o.$implicit,r=e.oxw(2);e.xp6(1),e.Q6J("aria-label",e.xi3(2,2,e.lcZ(3,5,r.selection.isSelected(a)),e.VKq(7,O,a.name)))("checked",r.selection.isSelected(a))}}function L(t,o){1&t&&(e.ynx(0,13),e.YNc(1,x,4,7,"th",14),e.YNc(2,T,4,9,"td",15),e.BQk())}function b(t,o){1&t&&(e.TgZ(0,"th",20),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.EXT_SOURCES_LIST.ID")," "))}function M(t,o){if(1&t&&(e.TgZ(0,"td",21),e._uU(1),e.qZA()),2&t){const a=o.$implicit;e.xp6(1),e.Oqu(a.id)}}function R(t,o){1&t&&(e.TgZ(0,"th",20),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.EXT_SOURCES_LIST.NAME")," "))}function v(t,o){if(1&t&&(e.TgZ(0,"td",22),e.ALo(1,"lowercase"),e._uU(2),e.qZA()),2&t){const a=o.$implicit;e.Q2q("data-cy","",e.lcZ(1,2,a.name),"-name-td"),e.xp6(2),e.hij(" ",a.name," ")}}function I(t,o){1&t&&(e.TgZ(0,"th",20),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.EXT_SOURCES_LIST.TYPE")," "))}function P(t,o){if(1&t&&(e.TgZ(0,"td",22),e._uU(1),e.ALo(2,"extSourceType"),e.qZA()),2&t){const a=o.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,a.type))}}function U(t,o){1&t&&e._UZ(0,"tr",23)}function N(t,o){1&t&&e._UZ(0,"tr",24)}function Z(t,o){1&t&&(e.TgZ(0,"perun-web-apps-alert",25),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.EXT_SOURCES_LIST.NO_EXT_SOURCES"),"\n"))}function w(t,o){1&t&&(e.TgZ(0,"perun-web-apps-alert",25),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.EXT_SOURCES_LIST.NO_FILTER_RESULTS"),"\n"))}const B=function(t){return{all:t}};let k=(()=>{class t{constructor(a,r){this.authResolver=a,this.tableCheckbox=r,this.selection=new m.Ov,this.filterValue="",this.displayedColumns=["select","id","name","type"],this.exporting=!1,this.pageSizeOptions=u.f7}set matSort(a){this.sort=a,this.setDataSource()}static getDataForColumn(a,r){switch(r){case"id":return a.id.toString();case"type":return a.type.substring(40);case"name":return a.name;default:return""}}ngAfterViewInit(){this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(a=>"id"!==a)),this.dataSource=new l.by(this.extSources),this.setDataSource()}exportAllData(a){(0,u.O6)((0,u.Xn)(this.dataSource.filteredData,this.displayedColumns,t.getDataForColumn),a)}exportDisplayedData(a){const r=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,_=r+this.dataSource.paginator.pageSize;(0,u.O6)((0,u.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(r,_),this.displayedColumns,t.getDataForColumn),a)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(a,r)=>(0,u.Sd)(a,r,this.displayedColumns,t.getDataForColumn),this.dataSource.sortData=(a,r)=>(0,u.pR)(a,r,t.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}}return t.\u0275fac=function(a){return new(a||t)(e.Y36(f.x4),e.Y36(f.UA))},t.\u0275cmp=e.Xpm({type:t,selectors:[["app-ext-sources-list"]],viewQuery:function(a,r){if(1&a&&(e.Gf(u.l9,7),e.Gf(h.YE,7)),2&a){let _;e.iGM(_=e.CRH())&&(r.child=_.first),e.iGM(_=e.CRH())&&(r.matSort=_.first)}},inputs:{extSources:"extSources",selection:"selection",filterValue:"filterValue",displayedColumns:"displayedColumns",tableId:"tableId"},features:[e.TTD],decls:18,vars:15,consts:[[1,"card","mt-2",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","type"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(a,r){1&a&&(e.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),e.NdJ("exportDisplayedData",function(E){return r.exportDisplayedData(E)})("exportAllData",function(E){return r.exportAllData(E)}),e.TgZ(2,"table",2),e.YNc(3,L,3,0,"ng-container",3),e.ALo(4,"isAllSelected"),e.ynx(5,4),e.YNc(6,b,3,3,"th",5),e.YNc(7,M,2,1,"td",6),e.BQk(),e.ynx(8,7),e.YNc(9,R,3,3,"th",5),e.YNc(10,v,3,4,"td",8),e.BQk(),e.ynx(11,9),e.YNc(12,I,3,3,"th",5),e.YNc(13,P,3,3,"td",8),e.BQk(),e.YNc(14,U,1,0,"tr",10),e.YNc(15,N,1,0,"tr",11),e.qZA()()(),e.YNc(16,Z,3,3,"perun-web-apps-alert",12),e.YNc(17,w,3,3,"perun-web-apps-alert",12)),2&a&&(e.Q6J("hidden",0===r.extSources.length||0===r.dataSource.filteredData.length),e.xp6(1),e.Q6J("pageSizeOptions",r.pageSizeOptions)("dataLength",r.dataSource.filteredData.length)("tableId",r.tableId),e.xp6(1),e.Q6J("dataSource",r.dataSource),e.xp6(1),e.Q6J("ngIf",e.VKq(13,B,e.xi3(4,10,r.dataSource,r.selection.selected.length))),e.xp6(11),e.Q6J("matHeaderRowDef",r.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",r.displayedColumns),e.xp6(1),e.Q6J("ngIf",0===r.extSources.length),e.xp6(1),e.Q6J("ngIf",0===r.dataSource.filteredData.length&&0!==r.extSources.length))},dependencies:[g.O5,h.YE,h.nU,l.BZ,l.fO,l.as,l.w1,l.Dz,l.nj,l.ge,l.ev,l.XQ,l.Gk,C.oG,p.w,A.l,g.i8,c.X$,d.I,i.G,s.r,D.A]}),t})()},71992:(y,S,n)=>{n.d(S,{a:()=>C});var m=n(81591),h=n(61744),l=n(54004),u=n(70262),f=n(39646),e=n(94650),g=n(94364);let C=(()=>{class p{constructor(c,d,i,s,D,x,O,T){this.authResolver=c,this.routePolicyService=d,this.router=i,this.notificator=s,this.apiRequest=D,this.memberManager=x,this.groupManager=O,this.resourceManager=T}static getBeanName(c){switch(c){case"organizations":return"Vo";case"groups":return"Group";case"facilities":case"services":return"Facility";case"resources":return"Resource";case"members":return"Member";default:return""}}static parseUrl(c){const d=c.slice(1).split("/").reverse(),i={key:"",entity:{id:-1,beanName:""}};for(const s of d){if(Number(s)){if(-1===i.entity.id){i.entity.id=Number(s);continue}"services-status-"===i.key&&(i.entity.id=Number(s));break}i.key=s.concat("-",i.key)}return i.key=i.key.slice(0,i.key.length-1),i.entity.beanName=p.getBeanName(i.key.split("-")[0]),i}canActivateChild(c,d){if(this.authResolver.isPerunAdminOrObserver())return!0;const i=p.parseUrl(d.url);return i.key.startsWith("members")?(this.apiRequest.dontHandleErrorForNext(),this.memberManager.getMemberById(i.entity.id).pipe((0,l.U)(s=>(i.entity.userId=s.userId,i.entity.voId=s.voId,this.finalizeCanActivateChild(i))),(0,u.K)(s=>this.errorRedirectUrl(s)))):i.key.startsWith("groups")?(this.apiRequest.dontHandleErrorForNext(),this.groupManager.getGroupById(i.entity.id).pipe((0,l.U)(s=>(i.entity.voId=s.voId,this.finalizeCanActivateChild(i))),(0,u.K)(s=>this.errorRedirectUrl(s)))):i.key.startsWith("resources")?(this.apiRequest.dontHandleErrorForNext(),this.resourceManager.getResourceById(i.entity.id).pipe((0,l.U)(s=>(i.entity.facilityId=s.facilityId,i.entity.voId=s.voId,this.finalizeCanActivateChild(i))),(0,u.K)(s=>this.errorRedirectUrl(s)))):this.finalizeCanActivateChild(i)}finalizeCanActivateChild(c){return!!this.routePolicyService.canNavigate(c.key,c.entity)||(this.notificator.showRouteError(),this.router.parseUrl("/notAuthorized"))}errorRedirectUrl(c){if("PrivilegeException"===c.name)return this.notificator.showRouteError(),(0,f.of)(this.router.parseUrl("/notAuthorized"))}}return p.\u0275fac=function(c){return new(c||p)(e.LFG(m.x4),e.LFG(m.Ip),e.LFG(g.F0),e.LFG(m.V6),e.LFG(m.F5),e.LFG(h.uq),e.LFG(h.ff),e.LFG(h.xk))},p.\u0275prov=e.Yz7({token:p,factory:p.\u0275fac,providedIn:"root"}),p})()}}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/254.d447d12472cd3dcd.js b/dist/apps/admin-gui/254.d447d12472cd3dcd.js new file mode 100644 index 000000000..05ded0e71 --- /dev/null +++ b/dist/apps/admin-gui/254.d447d12472cd3dcd.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin_gui=self.webpackChunkadmin_gui||[]).push([[254],{74254:(mu,ft,l)=>{l.r(ft),l.d(ft,{VosModule:()=>du});var _=l(36895),b=l(94364),te=l(25309),tt=l(69024),M=l(36769),h=l(61744),g=l(9244),p=l(81591),S=l(64080),G=l(21029),ee=l(41656),At=l(22158),Tt=l(82722),t=l(94650),F=l(77968),u=l(65412),et=l(15003),It=l(32597),P=l(97392),I=l(4859),T=l(51572),N=l(10266),Y=l(61283),it=l(4235),k=l(34198),Q=l(55660),m=l(89383),ie=l(29218),oe=l(45942),ne=l(28764);function ae(i,a){1&i&&t._UZ(0,"mat-spinner",3)}function se(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",14),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.editGroup())}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA()()}}function re(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",15),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.deleteGroup())}),t.TgZ(1,"mat-icon"),t._uU(2,"delete_forever"),t.qZA()()}}function le(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",18),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(3);return t.KtG(n.onSyncDetail())}),t.ALo(1,"groupSyncIcon"),t.TgZ(2,"mat-icon"),t.ALo(3,"groupSyncIconColor"),t._uU(4),t.ALo(5,"groupSyncIcon"),t.qZA()()}if(2&i){const e=t.oxw(3);t.Q6J("disabled","sync_disabled"===t.lcZ(1,5,e.group)),t.xp6(2),t.Tol(t.lcZ(3,7,e.group)),t.xp6(2),t.hij(" ",t.lcZ(5,9,e.group)," ")}}function ce(i,a){if(1&i&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"span",16),t.ALo(4,"translate"),t.ALo(5,"groupSyncToolTip"),t.YNc(6,le,6,11,"button",17),t.qZA()()),2&i){const e=t.oxw(2);t.xp6(1),t.hij(" , ",t.lcZ(2,4,"GROUP_DETAIL.SYNCHRONIZATION"),": "),t.xp6(2),t.Q6J("matTooltipPosition","above")("matTooltip",t.lcZ(4,6,t.lcZ(5,8,e.group))),t.xp6(3),t.Q6J("ngIf",e.syncAuth)}}const pe=function(){return{color:"black"}},bt=function(i,a){return["/organizations",i,"groups",a]},vt=function(i){return["/organizations",i]};function ue(i,a){if(1&i&&(t.TgZ(0,"div")(1,"div",4),t._UZ(2,"mat-icon",5),t.ALo(3,"translate"),t.TgZ(4,"div",6)(5,"div",7)(6,"a",8),t.NdJ("auxclick",function(o){return o.preventDefault()}),t._uU(7),t.qZA(),t.TgZ(8,"span",9),t._uU(9),t.qZA(),t.YNc(10,se,3,0,"button",10),t.YNc(11,re,3,0,"button",11),t.qZA(),t.TgZ(12,"div"),t._uU(13),t.ALo(14,"translate"),t.qZA(),t.TgZ(15,"span",12),t._uU(16),t.ALo(17,"translate"),t.ALo(18,"translate"),t.TgZ(19,"a",13),t.NdJ("auxclick",function(o){return o.preventDefault()}),t._uU(20),t.qZA(),t._uU(21),t.ALo(22,"translate"),t.YNc(23,ce,7,10,"span",2),t.qZA()()(),t._UZ(24,"app-animated-router-outlet"),t.qZA()),2&i){const e=t.oxw();t.xp6(2),t.s9C("matTooltip",t.lcZ(3,21,"GROUP_DETAIL.ENTITY")),t.Q6J("ngStyle",t.DdM(31,pe)),t.xp6(4),t.Q2q("data-cy","",e.group.shortName,"-shortName"),t.Q6J("perunWebAppsMiddleClickRouterLink",t.WLB(32,bt,e.vo.id.toString(),e.group.id.toString()))("routerLink",t.WLB(35,bt,e.vo.id,e.group.id))("queryParams",e.route.snapshot.queryParams),t.xp6(1),t.hij(" ",e.group.shortName," "),t.xp6(2),t.hij(" \xa0#",e.group.id," "),t.xp6(1),t.Q6J("ngIf","members"!==e.group.name&&e.editAuth),t.xp6(1),t.Q6J("ngIf","members"!==e.group.name&&e.deleteAuth),t.xp6(2),t.AsE("",t.lcZ(14,23,"GROUP_DETAIL.UUID"),": ",e.group.uuid,""),t.xp6(3),t.AsE(" ",t.lcZ(17,25,"GROUP_DETAIL.ENTITY"),", ",t.lcZ(18,27,"GROUP_DETAIL.VO_NAME"),": "),t.xp6(3),t.Q6J("perunWebAppsMiddleClickRouterLink",t.VKq(38,vt,e.vo.id.toString()))("routerLink",t.VKq(40,vt,e.vo.id))("queryParams",e.route.snapshot.queryParams),t.xp6(1),t.Oqu(e.vo.name),t.xp6(1),t.AsE(", ",t.lcZ(22,29,"GROUP_DETAIL.DESCRIPTION"),": ",e.group.description," "),t.xp6(2),t.Q6J("ngIf",e.syncEnabled)}}let de=(()=>{class i extends((0,At.T)()){constructor(e,o,n,s,r,d,A,v,D,X,gt){super(),this.sideMenuService=e,this.voService=o,this.route=n,this.sideMenuItemService=s,this.groupService=r,this.dialog=d,this.guiAuthResolver=A,this.router=v,this.entityStorageService=D,this.reloadEntityDetail=X,this.queryParamsRouter=gt,this.editAuth=!1,this.deleteAuth=!1,this.loading=!1,this.syncAuth=!1,this.syncEnabled=!1,this.attrNames=[S.r.GROUP_SYNC_ENABLED,S.r.GROUP_LAST_SYNC_STATE,S.r.GROUP_LAST_SYNC_TIMESTAMP,S.r.GROUP_STRUCTURE_SYNC_ENABLED,S.r.GROUP_LAST_STRUCTURE_SYNC_STATE,S.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP]}ngOnInit(){this.reloadEntityDetail.entityDetailChange.pipe((0,Tt.R)(this.destroyed$)).subscribe(()=>{this.reloadData()}),this.reloadData()}onSyncDetail(){const e=(0,g.kZ)();e.width="450px",e.data={groupId:this.group.id,theme:"group-theme"},this.dialog.open(G.Bp,e)}editGroup(){const e=(0,g.kZ)();e.width="450px",e.data={theme:"group-theme",group:this.group,dialogType:G.Eg.GROUP},this.dialog.open(G.rd,e).afterClosed().subscribe(n=>{n&&this.groupService.getGroupById(this.group.id).subscribe(s=>{this.group=s,this.setMenuItems()})})}reloadData(){this.loading=!0,this.route.params.subscribe(e=>{const o=Number(e.voId),n=Number(e.groupId);this.voService.getVoById(o).subscribe(s=>{this.vo=s,this.groupService.getGroupById(n).subscribe(r=>{this.group=r,this.entityStorageService.setEntity(this.group),(0,g.sF)("groups",this.group),(0,g.XI)(this.group,s.name),this.guiAuthResolver.isAuthorized("getRichGroupByIdWithAttributesByNames_int_List_policy",[this.group])?this.groupService.getRichGroupByIdWithAttributesByNames(n,this.attrNames).subscribe(d=>{this.group=d,this.syncEnabled=(0,g.bx)(d),this.syncAuth=this.guiAuthResolver.isAuthorized("forceGroupSynchronization_Group_policy",[this.group])},()=>this.loading=!1):this.syncEnabled=!1,this.editAuth=this.guiAuthResolver.isAuthorized("updateGroup_Group_policy",[this.group]),this.deleteAuth=this.guiAuthResolver.isAuthorized("deleteGroup_Group_boolean_policy",[this.group]),this.setMenuItems(),this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)})}setMenuItems(){const e=this.sideMenuItemService.parseVo(this.vo),o=this.sideMenuItemService.parseGroup(this.group);this.sideMenuService.setAccessMenuItems([e,o])}deleteGroup(){const e=(0,g.kZ)();e.width="500px",e.data={theme:"group-theme",groups:[this.group]},this.dialog.open(ee.P,e).afterClosed().subscribe(n=>{n&&this.queryParamsRouter.navigate(["../"],this.route)})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(F.D),t.Y36(h.YF),t.Y36(b.gz),t.Y36(tt.V),t.Y36(h.ff),t.Y36(u.uw),t.Y36(p.x4),t.Y36(b.F0),t.Y36(p.fb),t.Y36(et.G),t.Y36(It.g))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-detail-page"]],features:[t.qOj],decls:4,vars:2,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","group-theme"],["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[1,"d-flex","page-title-headtitle"],["svgIcon","perun-group-black",1,"perun-icon","perun-icon-detail",3,"matTooltip","ngStyle"],[1,"page-title-block"],[1,"page-title-headline","d-flex","align-items-center"],[1,"group-link",3,"perunWebAppsMiddleClickRouterLink","routerLink","queryParams","auxclick"],[1,"text-muted"],["aria-label","Edit group","mat-icon-button","",3,"click",4,"ngIf"],["mat-icon-button","",3,"click",4,"ngIf"],[1,"mt-1","entity-info"],["data-cy","vo-link",1,"group-link",3,"perunWebAppsMiddleClickRouterLink","routerLink","queryParams","auxclick"],["aria-label","Edit group","mat-icon-button","",3,"click"],["mat-icon-button","",3,"click"],[3,"matTooltipPosition","matTooltip"],["mat-icon-button","",3,"disabled","click",4,"ngIf"],["mat-icon-button","",3,"disabled","click"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"perun-web-apps-back-button"),t.YNc(2,ae,1,0,"mat-spinner",1),t.YNc(3,ue,25,42,"div",2),t.qZA()),2&e&&(t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading&&void 0!==o.vo&&void 0!==o.group))},dependencies:[_.O5,_.PC,b.yS,P.Hw,I.lW,T.Ou,N.gM,Y.A,it.W,k.Y,Q.Q,m.X$,ie.J,oe.r,ne.F],data:{animation:[M.Ji]}}),i})();function _e(i,a){1&i&&t._UZ(0,"mat-spinner",3)}const Et=function(i){return["/admin","users",i]};function me(i,a){if(1&i&&(t.TgZ(0,"a",8),t.NdJ("auxclick",function(o){return o.preventDefault()}),t._uU(1),t.qZA()),2&i){const e=t.oxw(2);t.Q6J("perunWebAppsMiddleClickRouterLink",t.VKq(3,Et,e.member.userId.toString()))("routerLink",t.VKq(5,Et,e.member.userId)),t.xp6(1),t.hij(" ",e.member.userId," ")}}function ge(i,a){if(1&i&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&i){const e=t.oxw(2);t.xp6(1),t.Oqu(e.member.userId)}}const he=function(){return{color:"black"}},Ct=function(i,a){return["/organizations",i,"members",a]};function fe(i,a){if(1&i&&(t.TgZ(0,"div")(1,"div",4),t._UZ(2,"mat-icon",5),t.ALo(3,"translate"),t.TgZ(4,"div",6)(5,"div",7)(6,"a",8),t.NdJ("auxclick",function(o){return o.preventDefault()}),t._uU(7),t.qZA(),t.TgZ(8,"span",9),t._uU(9),t.qZA()(),t.TgZ(10,"span",10),t._uU(11),t.ALo(12,"translate"),t.ALo(13,"translate"),t.YNc(14,me,2,7,"a",11),t.YNc(15,ge,2,1,"span",2),t.qZA()()(),t._UZ(16,"app-animated-router-outlet"),t.qZA()),2&i){const e=t.oxw();t.xp6(2),t.s9C("matTooltip",t.lcZ(3,11,"MEMBER_DETAIL.ENTITY")),t.Q6J("ngStyle",t.DdM(17,he)),t.xp6(4),t.Q2q("data-cy","",e.member.user.firstName,"-firstName"),t.Q6J("perunWebAppsMiddleClickRouterLink",t.WLB(18,Ct,e.vo.id.toString(),e.member.id.toString()))("routerLink",t.WLB(21,Ct,e.vo.id,e.member.id)),t.xp6(1),t.hij(" ",e.fullName," "),t.xp6(2),t.hij(" \xa0#",e.member.id," "),t.xp6(2),t.AsE(" ",t.lcZ(12,13,"MEMBER_DETAIL.ENTITY"),", ",t.lcZ(13,15,"MEMBER_DETAIL.USER_ID"),": "),t.xp6(3),t.Q6J("ngIf",e.isAuthorized),t.xp6(1),t.Q6J("ngIf",!e.isAuthorized)}}let Ae=(()=>{class i{constructor(e,o,n,s,r,d,A,v){this.sideMenuItemService=e,this.translate=o,this.sideMenuService=n,this.membersService=s,this.voService=r,this.route=d,this.authResolver=A,this.entityService=v,this.fullName="",this.isAuthorized=!1,this.loading=!1}ngOnInit(){this.loading=!0,this.route.params.subscribe(e=>{const o=Number(e.voId),n=Number(e.memberId);this.isAuthorized=this.authResolver.isPerunAdminOrObserver(),this.voService.getVoById(o).subscribe(s=>{this.vo=s,this.membersService.getRichMemberWithAttributes(n).subscribe(r=>{this.member=r,this.entityService.setEntity({id:r.id,beanName:r.beanName,voId:r.voId,userId:r.userId});const d=this.sideMenuItemService.parseVo(this.vo),A=this.sideMenuItemService.parseMember(this.member);this.fullName=A.label,this.sideMenuService.setAccessMenuItems([d,A]),this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(tt.V),t.Y36(m.sK),t.Y36(F.D),t.Y36(h.uq),t.Y36(h.YF),t.Y36(b.gz),t.Y36(p.x4),t.Y36(p.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-member-detail-page"]],decls:4,vars:2,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","member-theme"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"d-flex","page-title-headtitle"],["svgIcon","perun-user-dark",1,"perun-icon","perun-icon-detail",3,"matTooltip","ngStyle"],[1,"page-title-block"],[1,"page-title-headline","d-flex","align-items-center"],[1,"member-link",3,"perunWebAppsMiddleClickRouterLink","routerLink","auxclick"],[1,"text-muted"],[1,"mt-1","entity-info"],["class","member-link",3,"perunWebAppsMiddleClickRouterLink","routerLink","auxclick",4,"ngIf"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"perun-web-apps-back-button"),t.YNc(2,_e,1,0,"mat-spinner",1),t.YNc(3,fe,17,24,"div",2),t.qZA()),2&e&&(t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading&&void 0!==o.vo&&void 0!==o.member))},dependencies:[_.O5,_.PC,b.yS,P.Hw,T.Ou,N.gM,Y.A,it.W,k.Y,Q.Q,m.X$],data:{animation:[M.Ji]}}),i})();var J=l(71135);function Te(i,a){1&i&&t._UZ(0,"mat-spinner",2)}function Ie(i,a){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"perun-web-apps-menu-buttons-field",3),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("items",e.navItems)("size","small")}}let be=(()=>{class i{constructor(e,o,n,s,r,d){this.sideMenuService=e,this.voService=o,this.router=n,this.authResolver=s,this.entityStorageService=r,this.routePolicyService=d,this.items=[],this.navItems=[],this.loading=!1}ngDoCheck(){const e=this.vo.id;this.vo=this.entityStorageService.getEntity(),e!==this.vo.id&&this.initNavItems()}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.initNavItems(),this.loading=!1}initNavItems(){this.navItems=[],this.routePolicyService.canNavigate("organizations-members",this.vo)&&this.navItems.push({cssIcon:"perun-user",url:`/organizations/${this.vo.id}/members`,label:"MENU_ITEMS.VO.MEMBERS",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-groups",this.vo)&&this.navItems.push({cssIcon:"perun-group",url:`/organizations/${this.vo.id}/groups`,label:"MENU_ITEMS.VO.GROUPS",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-resources",this.vo)&&this.navItems.push({cssIcon:"perun-manage-facility",url:`/organizations/${this.vo.id}/resources`,label:"MENU_ITEMS.VO.RESOURCES",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-applications",this.vo)&&this.navItems.push({cssIcon:"perun-applications",url:`/organizations/${this.vo.id}/applications`,label:"MENU_ITEMS.VO.APPLICATIONS",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-sponsoredMembers",this.vo)&&this.navItems.push({cssIcon:"perun-user",url:`/organizations/${this.vo.id}/sponsoredMembers`,label:"MENU_ITEMS.VO.SPONSORED_MEMBERS",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-serviceAccounts",this.vo)&&this.navItems.push({cssIcon:"perun-service-identity",url:`/organizations/${this.vo.id}/serviceAccounts`,label:"MENU_ITEMS.VO.SERVICE_MEMBERS",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-attributes",this.vo)&&this.navItems.push({cssIcon:"perun-attributes",url:`/organizations/${this.vo.id}/attributes`,label:"MENU_ITEMS.VO.ATTRIBUTES",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-statistics",this.vo)&&this.navItems.push({cssIcon:"perun-statistics",url:`/organizations/${this.vo.id}/statistics`,label:"MENU_ITEMS.VO.STATISTICS",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-settings",this.vo)&&this.navItems.push({cssIcon:"perun-settings2",url:`/organizations/${this.vo.id}/settings`,label:"MENU_ITEMS.VO.SETTINGS",style:"vo-btn"})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(F.D),t.Y36(h.YF),t.Y36(b.F0),t.Y36(p.x4),t.Y36(p.fb),t.Y36(p.Ip))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-overview"]],decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"items","size"]],template:function(e,o){1&e&&(t.YNc(0,Te,1,0,"mat-spinner",0),t.YNc(1,Ie,2,2,"div",1)),2&e&&(t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[_.O5,T.Ou,J.L]}),i})();var ve=l(4732),Ee=l(81847),Ce=l(11717);function Se(i,a){1&i&&(t.TgZ(0,"span"),t._uU(1,", "),t.qZA())}const St=function(i){return["/organizations",i]};function xe(i,a){if(1&i&&(t.TgZ(0,"span")(1,"a",2),t.NdJ("auxclick",function(o){return o.preventDefault()}),t._uU(2),t.qZA(),t.YNc(3,Se,2,0,"span",1),t.qZA()),2&i){const e=a.$implicit,o=a.index,n=t.oxw();t.xp6(1),t.Q6J("perunWebAppsMiddleClickRouterLink",t.VKq(4,St,e.id.toString()))("routerLink",t.VKq(6,St,e.id.toString())),t.xp6(1),t.hij(" ",e.name," "),t.xp6(1),t.Q6J("ngIf",n.vos.length>o+1)}}function Ne(i,a){1&i&&(t.TgZ(0,"span"),t._uU(1,"\u2026"),t.qZA())}let Oe=(()=>{class i{constructor(){this.vos=[]}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-related-vos"]],inputs:{title:"title",vos:"vos"},decls:4,vars:5,consts:[[4,"ngFor","ngForOf"],[4,"ngIf"],[1,"vo-link","pointer",3,"perunWebAppsMiddleClickRouterLink","routerLink","auxclick"]],template:function(e,o){1&e&&(t._uU(0),t.ALo(1,"translate"),t.YNc(2,xe,4,8,"span",0),t.YNc(3,Ne,2,0,"span",1)),2&e&&(t.hij("",t.lcZ(1,3,o.title),":\n"),t.xp6(2),t.Q6J("ngForOf",o.vos.slice(0,3)),t.xp6(1),t.Q6J("ngIf",o.vos.length>3))},dependencies:[_.sg,_.O5,b.yS,k.Y,Q.Q,m.X$],styles:[".pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),i})();function Ze(i,a){1&i&&t._UZ(0,"mat-spinner",3)}function De(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",14),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.editVo())}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA()()}}function Me(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",15),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.removeVo())}),t.TgZ(1,"mat-icon"),t._uU(2,"delete_forever"),t.qZA()()}}function Le(i,a){if(1&i&&t._UZ(0,"app-related-vos",16),2&i){const e=t.oxw(2);t.Q6J("title","VO_DETAIL.RELATED_VOS.MEMBER_VOS")("vos",e.enrichedVo.memberVos)}}function Re(i,a){if(1&i&&t._UZ(0,"app-related-vos",16),2&i){const e=t.oxw(2);t.Q6J("title","VO_DETAIL.RELATED_VOS.PARENT_VOS")("vos",e.enrichedVo.parentVos)}}const we=function(){return{color:"black"}},Ge=function(i){return["/organizations",i]},Ue=function(i){return["/organizations/",i]};function Pe(i,a){if(1&i&&(t.TgZ(0,"div")(1,"div",4),t._UZ(2,"mat-icon",5),t.ALo(3,"translate"),t.TgZ(4,"div",6)(5,"div",7)(6,"a",8),t.NdJ("auxclick",function(o){return o.preventDefault()}),t._uU(7),t.qZA(),t.TgZ(8,"span",9),t._uU(9),t.qZA(),t.YNc(10,De,3,0,"button",10),t.YNc(11,Me,3,0,"button",11),t.qZA(),t.TgZ(12,"span",12),t._uU(13),t.ALo(14,"translate"),t.ALo(15,"translate"),t.YNc(16,Le,1,2,"app-related-vos",13),t.YNc(17,Re,1,2,"app-related-vos",13),t.qZA()()(),t._UZ(18,"app-animated-router-outlet"),t.qZA()),2&i){const e=t.oxw();t.xp6(2),t.s9C("matTooltip",t.lcZ(3,15,"VO_DETAIL.ENTITY")),t.Q6J("ngStyle",t.DdM(21,we))("svgIcon",0!==e.enrichedVo.memberVos.length?"perun-hierarchical-vo":"perun-vo-black"),t.xp6(4),t.Q6J("perunWebAppsMiddleClickRouterLink",t.VKq(22,Ge,e.vo.id.toString()))("routerLink",t.VKq(24,Ue,e.vo.id))("queryParams",e.route.snapshot.queryParams),t.xp6(1),t.hij(" ",e.vo.name," "),t.xp6(2),t.hij(" \xa0#",e.vo.id," "),t.xp6(1),t.Q6J("ngIf",e.editAuth),t.xp6(1),t.Q6J("ngIf",e.removeAuth),t.xp6(2),t.lnq(" ",t.lcZ(14,17,"VO_DETAIL.ENTITY"),", ",t.lcZ(15,19,"VO_DETAIL.SHORT_NAME"),": ",e.vo.shortName+(e.enrichedVo.memberVos.length+e.enrichedVo.parentVos.length?",":"")," "),t.xp6(3),t.Q6J("ngIf",0!==e.enrichedVo.memberVos.length),t.xp6(1),t.Q6J("ngIf",0!==e.enrichedVo.parentVos.length)}}let ye=(()=>{class i extends((0,At.T)()){constructor(e,o,n,s,r,d,A,v,D,X){super(),this.sideMenuService=e,this.voService=o,this.route=n,this.router=s,this.sideMenuItemService=r,this.dialog=d,this.authResolver=A,this.entityStorageService=v,this.reloadEntityDetail=D,this.queryParamsRouter=X,this.loading=!1}ngOnInit(){this.reloadData(),this.reloadEntityDetail.entityDetailChange.pipe((0,Tt.R)(this.destroyed$)).subscribe(()=>{this.reloadData()})}reloadData(){this.loading=!0,this.route.params.subscribe(e=>{const o=Number(e.voId);this.voService.getEnrichedVoById(o).subscribe(n=>{this.vo=n.vo,this.enrichedVo=n,this.entityStorageService.setEntity({id:this.vo.id,beanName:this.vo.beanName}),this.editAuth=this.authResolver.isAuthorized("updateVo_Vo_policy",[this.vo]),this.removeAuth=this.authResolver.isAuthorized("deleteVo_Vo_policy",[this.vo]),this.setMenuItems(),(0,g.sF)("vos",this.vo),(0,g.XI)(this.vo),this.loading=!1},()=>this.loading=!1)})}editVo(){const e=(0,g.kZ)();e.width="450px",e.data={theme:"vo-theme",vo:this.vo,dialogType:G.Eg.VO},this.dialog.open(G.rd,e).afterClosed().subscribe(n=>{n&&this.voService.getVoById(this.vo.id).subscribe(s=>{this.vo=s,this.setMenuItems()})})}setMenuItems(){const n=this.sideMenuItemService.parseVo(this.vo,0!==this.enrichedVo.memberVos.length,0!==this.enrichedVo.parentVos.length);this.sideMenuService.setAccessMenuItems([n])}removeVo(){const e=(0,g.kZ)();e.width="500px",e.data={theme:"vo-theme",vos:[this.vo]},this.dialog.open(Ce.o,e).afterClosed().subscribe(n=>{n&&this.queryParamsRouter.navigate([""])})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(F.D),t.Y36(h.YF),t.Y36(b.gz),t.Y36(b.F0),t.Y36(tt.V),t.Y36(u.uw),t.Y36(p.x4),t.Y36(p.fb),t.Y36(et.G),t.Y36(It.g))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-detail-page"]],features:[t.qOj],decls:4,vars:2,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","vo-theme"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"d-flex","page-title-headtitle"],[1,"perun-icon","perun-icon-detail",3,"matTooltip","ngStyle","svgIcon"],[1,"page-title-block"],[1,"page-title-headline","d-flex","align-items-center"],["data-cy","vo-name-link",1,"vo-link",3,"perunWebAppsMiddleClickRouterLink","routerLink","queryParams","auxclick"],[1,"text-muted"],["mat-icon-button","","aria-label","Edit Vo",3,"click",4,"ngIf"],["mat-icon-button","","aria-label","Remove Vo","data-cy","delete-vo",3,"click",4,"ngIf"],[1,"mt-1","entity-info"],[3,"title","vos",4,"ngIf"],["mat-icon-button","","aria-label","Edit Vo",3,"click"],["mat-icon-button","","aria-label","Remove Vo","data-cy","delete-vo",3,"click"],[3,"title","vos"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"perun-web-apps-back-button"),t.YNc(2,Ze,1,0,"mat-spinner",1),t.YNc(3,Pe,19,26,"div",2),t.qZA()),2&e&&(t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading&&void 0!==o.vo))},dependencies:[_.O5,_.PC,b.yS,P.Hw,I.lW,T.Ou,N.gM,Y.A,it.W,k.Y,Q.Q,Oe,m.X$],styles:[".shortname[_ngcontent-%COMP%]{font-size:medium}"],data:{animation:[M.Ji]}}),i})();var c=l(30671),Ve=l(58964),Fe=l(19352),U=l(73546),Ye=l(12488),Je=l(93057);let qe=(()=>{class i{transform(e){return(0,g.Cz)(e)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=t.Yjl({name:"attributeFriendlyName",type:i,pure:!0}),i})();var B=l(31359),ke=l(62383);function Qe(i,a){1&i&&t._UZ(0,"mat-spinner",2)}function Be(i,a){1&i&&t._UZ(0,"th",19)}function He(i,a){if(1&i&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&i){const e=t.oxw().$implicit,o=t.oxw(2);t.xp6(1),t.hij(" ",o.attributes.get(e)[0],": ")}}function je(i,a){if(1&i&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"attributeFriendlyName"),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,e),": ")}}function ze(i,a){if(1&i&&(t.TgZ(0,"td",20),t.YNc(1,He,2,1,"span",1),t.YNc(2,je,3,3,"span",1),t.qZA()),2&i){const e=a.$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("ngIf",null!==o.attributes.get(e)[0]),t.xp6(1),t.Q6J("ngIf",null===o.attributes.get(e)[0])}}function $e(i,a){1&i&&t._UZ(0,"th",19)}function Xe(i,a){if(1&i&&(t.TgZ(0,"td",21),t._uU(1),t.qZA()),2&i){const e=a.$implicit,o=t.oxw(2);t.xp6(1),t.hij(" ",o.attributes.get(e)[1]," ")}}function Ke(i,a){1&i&&t._UZ(0,"tr",22)}function We(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-card",5)(1,"mat-card-header")(2,"mat-card-title")(3,"h1",6),t._uU(4),t.ALo(5,"translate"),t.qZA()()(),t.TgZ(6,"mat-card-content",23)(7,"div",24),t.ALo(8,"translate"),t.TgZ(9,"button",25),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.requestPwdReset())}),t._uU(10),t.ALo(11,"translate"),t.qZA()()()()}if(2&i){const e=t.oxw(2);t.xp6(4),t.Oqu(t.lcZ(5,5,"MEMBER_DETAIL.OVERVIEW.RESET_PASSWORD")),t.xp6(3),t.Q6J("matTooltipDisabled",e.logins.length>0)("matTooltip",t.lcZ(8,7,"MEMBER_DETAIL.OVERVIEW.RESET_DISABLED")),t.xp6(2),t.Q6J("disabled",!e.logins.length),t.xp6(1),t.hij(" ",t.lcZ(11,9,"MEMBER_DETAIL.OVERVIEW.SEND_REQUEST")," ")}}function ti(i,a){1&i&&(t.TgZ(0,"th",19),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBER_DETAIL.OVERVIEW.SPONSOR_NAME")," "))}function ei(i,a){if(1&i&&(t.TgZ(0,"td",35),t._uU(1),t.ALo(2,"userFullName"),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,e.user)," ")}}function ii(i,a){1&i&&(t.TgZ(0,"th",19),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBER_DETAIL.OVERVIEW.EXPIRATION_TABLE")," "))}function oi(i,a){if(1&i&&(t.TgZ(0,"td",35)(1,"span",36),t._uU(2),t.ALo(3,"parseDate"),t.qZA()()),2&i){const e=a.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,e.validityTo))}}function ni(i,a){1&i&&t._UZ(0,"tr",37)}function ai(i,a){1&i&&t._UZ(0,"tr",22)}const xt=function(){return["sponsors","expiration"]};function si(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-card-content")(1,"h6",28),t._uU(2),t.ALo(3,"translate"),t.TgZ(4,"button",29),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(3);return t.KtG(n.changeSponsors())}),t.TgZ(5,"mat-icon"),t._uU(6,"edit"),t.qZA()()(),t.TgZ(7,"table",30),t.ynx(8,31),t.YNc(9,ti,3,3,"th",9),t.YNc(10,ei,3,3,"td",32),t.BQk(),t.ynx(11,33),t.YNc(12,ii,3,3,"th",9),t.YNc(13,oi,4,3,"td",32),t.BQk(),t.YNc(14,ni,1,0,"tr",34),t.YNc(15,ai,1,0,"tr",13),t.qZA()()}if(2&i){const e=t.oxw(3);t.xp6(2),t.hij(" ",t.lcZ(3,4,"MEMBER_DETAIL.OVERVIEW.SPONSORS"),": "),t.xp6(5),t.Q6J("dataSource",e.sponsorsDataSource),t.xp6(7),t.Q6J("matHeaderRowDef",t.DdM(6,xt)),t.xp6(1),t.Q6J("matRowDefColumns",t.DdM(7,xt))}}function ri(i,a){if(1&i&&(t.TgZ(0,"div")(1,"mat-card",26)(2,"mat-card-header")(3,"mat-card-title")(4,"h1",6),t._uU(5),t.ALo(6,"translate"),t.qZA()(),t.TgZ(7,"mat-card-subtitle",27),t._uU(8),t.ALo(9,"translate"),t.qZA()(),t.YNc(10,si,16,8,"mat-card-content",1),t.qZA()()),2&i){const e=t.oxw(2);t.xp6(5),t.Oqu(t.lcZ(6,3,"MEMBER_DETAIL.OVERVIEW.SPONSORSHIP")),t.xp6(3),t.hij(" ",t.lcZ(9,5,"MEMBER_DETAIL.OVERVIEW.SPONSORED_BY")," "),t.xp6(2),t.Q6J("ngIf",0!==e.sponsors.length)}}function li(i,a){if(1&i&&(t.TgZ(0,"div")(1,"div",3)(2,"div",4)(3,"mat-card",5)(4,"mat-card-header")(5,"mat-card-title")(6,"h1",6),t._uU(7),t.ALo(8,"translate"),t.qZA()()(),t.TgZ(9,"mat-card-content")(10,"table",7),t.ynx(11,8),t.YNc(12,Be,1,0,"th",9),t.YNc(13,ze,3,2,"td",10),t.BQk(),t.ynx(14,11),t.YNc(15,$e,1,0,"th",9),t.YNc(16,Xe,2,1,"td",12),t.BQk(),t.YNc(17,Ke,1,0,"tr",13),t.qZA()()()(),t.TgZ(18,"div",4)(19,"mat-card",14),t._UZ(20,"perun-web-apps-member-overview-membership",15),t.qZA(),t.TgZ(21,"mat-card",16),t._UZ(22,"perun-web-apps-member-overview-groups",15),t.qZA()(),t.TgZ(23,"div",4),t.YNc(24,We,12,11,"mat-card",17),t.YNc(25,ri,11,7,"div",1),t.qZA()(),t.TgZ(26,"div"),t._UZ(27,"perun-web-apps-menu-buttons-field",18),t.qZA()()),2&i){const e=t.oxw();t.xp6(7),t.Oqu(t.lcZ(8,11,"MEMBER_DETAIL.OVERVIEW.PERSONAL")),t.xp6(3),t.Q6J("dataSource",e.dataSource),t.xp6(7),t.Q6J("matRowDefColumns",e.displayedColumns),t.xp6(3),t.Q6J("member",e.member)("voId",e.vo.id),t.xp6(2),t.Q6J("member",e.member)("voId",e.vo.id),t.xp6(2),t.Q6J("ngIf",e.pwdResetAuth),t.xp6(1),t.Q6J("ngIf",e.member.sponsored),t.xp6(2),t.Q6J("items",e.navItems)("size","small")}}let ci=(()=>{class i{constructor(e,o,n,s,r,d,A,v){this.attributesManager=e,this.membersService=o,this.usersManager=n,this.route=s,this.dialog=r,this.authResolver=d,this.storeService=A,this.routePolicyService=v,this.expiration="",this.logins=[],this.member=null,this.navItems=[],this.attributeNames=[],this.attributes=new Map,this.dataSource=new c.by,this.displayedColumns=["attName","attValue"],this.sponsors=[],this.sponsorsDataSource=new c.by,this.loading=!1}ngOnInit(){this.loading=!0,this.route.parent.params.subscribe(e=>{const o=Number(e.memberId);this.attributeNames=this.storeService.getMemberProfileAttributeNames(),this.membersService.getRichMemberWithAttributes(o).subscribe(n=>{this.attUrns=this.storeService.getProperty("password_namespace_attributes").map(s=>{const r=s.split(":");return r[r.length-1]}),this.attributesManager.getLogins(n.userId).subscribe(s=>{this.logins=s.filter(r=>this.attUrns.includes(r.friendlyNameParameter)),this.member=n,this.initAttributes(),this.dataSource=new c.by(Array.from(this.attributes.keys())),this.vo={id:n.voId,beanName:"Vo"},this.pwdResetAuth=this.authResolver.isAuthorized("sendPasswordResetLinkEmail_Member_String_String_String_String_policy",[this.vo,this.member]),this.member.sponsored&&this.authResolver.isAuthorized("getSponsorsForMember_Member_List_policy",[this.member])?this.usersManager.getSponsorsForMember(this.member.id,null).subscribe(r=>{this.sponsors=r,this.sponsorsDataSource=new c.by(this.sponsors),this.initNavItems(),this.refreshData()}):(this.initNavItems(),this.refreshData())},()=>this.loading=!1)})})}requestPwdReset(){const e=(0,g.kZ)();e.width="400px",e.data={userId:this.member.userId,memberId:this.member.id,logins:this.logins},this.dialog.open(Ve.m,e)}changeSponsors(){const e=(0,g.kZ)();e.width="650px",e.data={sponsors:this.sponsors,member:this.member,theme:"member-theme"},this.dialog.open(Fe.H,e).afterClosed().subscribe(n=>{n&&(this.loading=!0,this.membersService.getRichMemberWithAttributes(this.member.id).subscribe(s=>{this.member=s,this.member.sponsored&&this.usersManager.getSponsorsForMember(this.member.id,null).subscribe(r=>{this.sponsors=r,this.sponsorsDataSource.data=this.sponsors}),this.loading=!1}))})}initAttributes(){this.attributeNames.forEach(e=>{this.attributes.set(e,[null,"-"])}),this.filterAttributes()}filterAttributes(){null!==this.member.memberAttributes&&this.member.memberAttributes.forEach(e=>{this.attributeNames.includes(e.friendlyName)&&this.attributes.set(e.friendlyName,[e.displayName,e.value])}),null!==this.member.userAttributes&&this.member.userAttributes.forEach(e=>{this.attributeNames.includes(e.friendlyName)&&this.attributes.set(e.friendlyName,[e.displayName,e.value])})}initNavItems(){this.navItems=[],this.routePolicyService.canNavigate("members-groups",this.member)&&this.navItems.push({cssIcon:"perun-group",url:`/organizations/${this.member.voId}/members/${this.member.id}/groups`,label:"MENU_ITEMS.MEMBER.GROUPS",style:"member-btn"}),this.routePolicyService.canNavigate("members-applications",this.member)&&this.navItems.push({cssIcon:"perun-applications",url:`/organizations/${this.member.voId}/members/${this.member.id}/applications`,label:"MENU_ITEMS.MEMBER.APPLICATIONS",style:"member-btn"}),this.routePolicyService.canNavigate("members-resources",this.member)&&this.navItems.push({cssIcon:"perun-resource",url:`/organizations/${this.member.voId}/members/${this.member.id}/resources`,label:"MENU_ITEMS.MEMBER.RESOURCES",style:"member-btn"}),this.routePolicyService.canNavigate("members-attributes",this.member)&&this.navItems.push({cssIcon:"perun-attributes",url:`/organizations/${this.vo.id}/members/${this.member.id}/attributes`,label:"MENU_ITEMS.MEMBER.ATTRIBUTES",style:"member-btn"}),this.routePolicyService.canNavigate("members-bans",this.member)&&this.navItems.push({cssIcon:"perun-ban",url:`/organizations/${this.vo.id}/members/${this.member.id}/bans`,label:"MENU_ITEMS.MEMBER.BANS",style:"member-btn"})}refreshData(){this.loading=!0,this.membersService.getRichMemberWithAttributes(this.member.id).subscribe(e=>{this.member=e,this.loading=!1},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.H8),t.Y36(h.uq),t.Y36(h.Fv),t.Y36(b.gz),t.Y36(u.uw),t.Y36(p.x4),t.Y36(p.d6),t.Y36(p.Ip))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-member-overview"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[1,"member-cards"],[1,"align-cards"],[1,"mat-elevation-z3"],[1,"page-subtitle"],["mat-table","",3,"dataSource"],["matColumnDef","attName"],["mat-header-cell","",4,"matHeaderCellDef"],["class","font-weight-bold","mat-cell","",4,"matCellDef"],["matColumnDef","attValue"],["class","column-center","mat-cell","",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mat-elevation-z3","membership-card"],[3,"member","voId"],[1,"mat-elevation-z3","membership-card","mt-4"],["class","mat-elevation-z3",4,"ngIf"],[3,"items","size"],["mat-header-cell",""],["mat-cell","",1,"font-weight-bold"],["mat-cell","",1,"column-center"],["mat-row",""],[1,"column-center"],[3,"matTooltipDisabled","matTooltip"],["color","accent","mat-flat-button","",1,"action-button",3,"disabled","click"],[1,"mat-elevation-z3","mt-4"],[1,"mt-n3"],[1,"d-flex"],["mat-icon-button","",1,"ml-auto","mt-n2",3,"click"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","sponsors"],["mat-cell","",4,"matCellDef"],["matColumnDef","expiration"],["mat-header-row","",4,"matHeaderRowDef"],["mat-cell",""],[1,"font-italic"],["mat-header-row",""]],template:function(e,o){1&e&&(t.YNc(0,Qe,1,0,"mat-spinner",0),t.YNc(1,li,28,13,"div",1)),2&e&&(t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[_.O5,P.Hw,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.ge,c.ev,c.XQ,c.Gk,I.lW,T.Ou,N.gM,U.a8,U.dk,U.dn,U.n5,U.$j,J.L,Ye.b,Je.z,m.X$,qe,B.d,ke.M],styles:[".vert-center[_ngcontent-%COMP%]{vertical-align:inherit!important}.vert-top[_ngcontent-%COMP%]{vertical-align:top}.column-center[_ngcontent-%COMP%]{text-align:center}.align-cards[_ngcontent-%COMP%]{margin:1rem;display:inline-block;vertical-align:top}.member-cards[_ngcontent-%COMP%]{margin:0 -1rem}.membership-card[_ngcontent-%COMP%]{max-width:400px}"]}),i})();var pi=l(85243);function ui(i,a){1&i&&t._UZ(0,"mat-spinner",2)}const Nt=function(i,a){return["/organizations",i,"groups",a]};function di(i,a){if(1&i&&(t.TgZ(0,"p"),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"a",4),t.NdJ("auxclick",function(o){return o.preventDefault()}),t._uU(4),t.qZA()()),2&i){const e=t.oxw(2);t.xp6(1),t.hij(" ",t.lcZ(2,4,"GROUP_DETAIL.SUBGROUP_INFO")," "),t.xp6(2),t.Q6J("perunWebAppsMiddleClickRouterLink",t.WLB(6,Nt,e.parentGroup.voId.toString(),e.parentGroup.id.toString()))("routerLink",t.WLB(9,Nt,e.parentGroup.voId,e.parentGroup.id)),t.xp6(1),t.hij(" ",e.parentGroup.name," ")}}function _i(i,a){if(1&i&&(t.TgZ(0,"div"),t.YNc(1,di,5,12,"p",1),t._UZ(2,"perun-web-apps-menu-buttons-field",3),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",null!==e.parentGroup),t.xp6(1),t.Q6J("items",e.navItems)("size","small")}}let mi=(()=>{class i{constructor(e,o,n,s,r,d,A,v,D){this.route=e,this.groupService=o,this.voService=n,this.guiAuthResolver=s,this.apiRequest=r,this.attributesManager=d,this.notificator=A,this.entityStorageService=v,this.routePolicyService=D,this.navItems=[],this.parentGroup=null,this.loading=!1}ngOnInit(){this.loading=!0,this.loadData()}loadData(){this.loading=!0,this.route.params.subscribe(e=>{const o=Number(e.voId),n=Number(e.groupId);this.voService.getVoById(o).subscribe(s=>{this.groupService.getGroupById(n).subscribe(r=>{if(this.group=r,this.entityStorageService.setEntity(this.group),(0,g.sF)("groups",this.group),(0,g.XI)(this.group,s.name),this.loadParentGroupData(this.group.parentGroupId),null==this.group.parentGroupId)return this.parentGroup=null,this.initNavItems(),void(this.loading=!1);this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)})}loadParentGroupData(e){null!=e&&this.groupService.getGroupById(e).subscribe(o=>{this.parentGroup=o,this.initNavItems(),this.loading=!1},()=>this.loading=!1)}initNavItems(){this.navItems=[],this.routePolicyService.canNavigate("groups-members",this.group)&&this.navItems.push({cssIcon:"perun-user",url:`/organizations/${this.group.voId}/groups/${this.group.id}/members`,label:"MENU_ITEMS.GROUP.MEMBERS",style:"group-btn"}),this.routePolicyService.canNavigate("groups-subgroups",this.group)&&"members"!==this.group.name&&this.navItems.push({cssIcon:"perun-group",url:`/organizations/${this.group.voId}/groups/${this.group.id}/subgroups`,label:"MENU_ITEMS.GROUP.SUBGROUPS",style:"group-btn"}),this.routePolicyService.canNavigate("groups-resources",this.group)&&this.navItems.push({cssIcon:"perun-manage-facility",url:`/organizations/${this.group.voId}/groups/${this.group.id}/resources`,label:"MENU_ITEMS.GROUP.RESOURCES",style:"group-btn"}),"members"!==this.group.name&&this.routePolicyService.canNavigate("groups-applications",this.group)&&this.navItems.push({cssIcon:"perun-applications",url:`/organizations/${this.group.voId}/groups/${this.group.id}/applications`,label:"MENU_ITEMS.GROUP.APPLICATIONS",style:"group-btn"}),this.routePolicyService.canNavigate("groups-attributes",this.group)&&this.navItems.push({cssIcon:"perun-attributes",url:`/organizations/${this.group.voId}/groups/${this.group.id}/attributes`,label:"MENU_ITEMS.GROUP.ATTRIBUTES",style:"group-btn"}),this.routePolicyService.canNavigate("groups-statistics",this.group)&&this.navItems.push({cssIcon:"perun-statistics",url:`/organizations/${this.group.voId}/groups/${this.group.id}/statistics`,label:"MENU_ITEMS.GROUP.STATISTICS",style:"group-btn"}),this.routePolicyService.canNavigate("groups-roles",this.group)&&this.navItems.push({cssIcon:"perun-roles",url:`/organizations/${this.group.voId}/groups/${this.group.id}/roles`,label:"MENU_ITEMS.GROUP.ROLES",style:"group-btn"});let e=!1;this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getGroupAttributeByName(this.group.id,S.r.GROUP_DEF_EXPIRATION_RULES).subscribe(()=>{e=!0},o=>{"PrivilegeException"!==o.name&&this.notificator.showRPCError(o)}),(e||this.routePolicyService.canNavigate("groups-settings",this.group))&&this.navItems.push({cssIcon:"perun-settings2",url:`/organizations/${this.group.voId}/groups/${this.group.id}/settings`,label:"MENU_ITEMS.GROUP.SETTINGS",style:"group-btn"})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(b.gz),t.Y36(h.ff),t.Y36(h.YF),t.Y36(p.x4),t.Y36(p.F5),t.Y36(h.H8),t.Y36(p.V6),t.Y36(p.fb),t.Y36(p.Ip))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-overview"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"items","size"],[1,"group-link",3,"perunWebAppsMiddleClickRouterLink","routerLink","auxclick"]],template:function(e,o){1&e&&(t.YNc(0,ui,1,0,"mat-spinner",0),t.YNc(1,_i,3,3,"div",1)),2&e&&(t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[_.O5,b.yS,T.Ou,J.L,k.Y,Q.Q,m.X$]}),i})();var gi=l(15592);let hi=(()=>{class i{constructor(e){this.route=e}ngOnInit(){this.route.parent.params.subscribe(e=>{this.voId=Number(e.voId)})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(b.gz))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-resources"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:1,vars:0,template:function(e,o){1&e&&t._UZ(0,"app-animated-router-outlet")},dependencies:[Y.A],data:{animation:[M.Ji]}}),i})();var fi=l(94856);let Ai=(()=>{class i{constructor(e,o){this.route=e,this.router=o,this.backButtonRegex=new RegExp("/organizations/\\d+/settings/\\w+$"),this.backButtonDisplayed=!1,this.currentUrl=o.url,this.backButtonDisplayed=this.backButtonRegex.test(this.currentUrl),o.events.subscribe(n=>{n instanceof b.m2&&(this.currentUrl=n.url,this.backButtonDisplayed=this.backButtonRegex.test(this.currentUrl))})}ngOnInit(){this.route.parent.params.subscribe(e=>{this.voId=Number(e.voId)})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(b.gz),t.Y36(b.F0))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-settings"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:1,vars:0,template:function(e,o){1&e&&t._UZ(0,"app-animated-router-outlet")},dependencies:[Y.A],data:{animation:[M.Ji]}}),i})();var ot=l(12651);let Ti=(()=>{class i{constructor(e){this.entityStorageService=e}ngOnInit(){this.vo=this.entityStorageService.getEntity()}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-attributes"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:5,vars:5,consts:[[1,"page-subtitle"],[3,"entityId","entity"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t._UZ(4,"app-one-entity-attribute-page",1),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,3,"VO_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),t.xp6(2),t.Q6J("entityId",o.vo.id)("entity","vo"))},dependencies:[ot.t,m.X$]}),i})();function Ii(i,a){1&i&&t._UZ(0,"mat-spinner",2)}function bi(i,a){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"perun-web-apps-menu-buttons-field",3),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("items",e.items)("size","small")}}let vi=(()=>{class i{constructor(e,o,n,s){this.voService=e,this.router=o,this.entityStorageService=n,this.routePolicyService=s,this.items=[],this.loading=!1,this.isMemberOfSomeOrganization=!1}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.voService.getEnrichedVoById(this.vo.id).subscribe(e=>{this.isMemberOfSomeOrganization=0!==e.parentVos.length,this.initItems(),this.loading=!1})}initItems(){this.items=[],this.routePolicyService.canNavigate("organizations-settings-expiration",this.vo)&&this.items.push({cssIcon:"perun-group",url:`/organizations/${this.vo.id}/settings/expiration`,label:"MENU_ITEMS.VO.EXPIRATION",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-settings-managers",this.vo)&&this.items.push({cssIcon:"perun-manager",url:`/organizations/${this.vo.id}/settings/managers`,label:"MENU_ITEMS.VO.MANAGERS",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-settings-applicationForm",this.vo)&&this.items.push({cssIcon:"perun-application-form",url:`/organizations/${this.vo.id}/settings/applicationForm`,label:"MENU_ITEMS.VO.APPLICATION_FORM",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-settings-notifications",this.vo)&&this.items.push({cssIcon:"perun-notification",url:`/organizations/${this.vo.id}/settings/notifications`,label:"MENU_ITEMS.VO.NOTIFICATIONS",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-settings-extsources",this.vo)&&this.items.push({cssIcon:"perun-external-sources",url:`/organizations/${this.vo.id}/settings/extsources`,label:"MENU_ITEMS.VO.EXTSOURCES",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-settings-memberOrganizations",this.vo)&&this.items.push({cssIcon:"perun-hierarchical-vo",url:`/organizations/${this.vo.id}/settings/memberOrganizations`,label:"MENU_ITEMS.VO.MEMBER_ORGANIZATIONS",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-settings-hierarchicalInclusion",this.vo)&&this.isMemberOfSomeOrganization&&this.items.push({cssIcon:"perun-hierarchical-inclusion",url:`/organizations/${this.vo.id}/settings/hierarchicalInclusion`,label:"MENU_ITEMS.VO.HIERARCHICAL_INCLUSION",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-settings-bans",this.vo)&&this.items.push({cssIcon:"perun-ban",url:`/organizations/${this.vo.id}/settings/bans`,label:"MENU_ITEMS.VO.BANS",style:"vo-btn"})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.YF),t.Y36(b.F0),t.Y36(p.fb),t.Y36(p.Ip))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-settings-overview"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"items","size"]],template:function(e,o){1&e&&(t.YNc(0,Ii,1,0,"mat-spinner",0),t.YNc(1,bi,2,2,"div",1)),2&e&&(t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[_.O5,T.Ou,J.L]}),i})();var H=l(3238),x=l(59549),y=l(284),f=l(24006),j=l(56709),z=l(84385),nt=l(90455),Ot=l(71948);const Ei=["*"];let Ci=(()=>{class i{constructor(){this.modelChange=new t.vpe}ngAfterViewInit(){this.toggle.change.subscribe(()=>this.valueChanged())}valueChanged(){this.modelChange.emit(this.toggle.checked)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-settings-toggle-item"]],viewQuery:function(e,o){if(1&e&&t.Gf(nt.Rr,7),2&e){let n;t.iGM(n=t.CRH())&&(o.toggle=n.first)}},inputs:{title:"title",modelValue:"modelValue"},outputs:{modelChange:"modelChange"},ngContentSelectors:Ei,decls:8,vars:5,consts:[[1,"mt-3"],[1,"d-flex","flex-row","align-items-baseline","justify-content-between"],[1,"setting-item","clickable",3,"click"],["color","primary",1,"ml-4",3,"ngModel","ngModelChange"],["toggle",""],[1,"ml-1"]],template:function(e,o){if(1&e){const n=t.EpF();t.F$t(),t.TgZ(0,"div",0)(1,"div",1)(2,"label",2),t.NdJ("click",function(){t.CHM(n);const r=t.MAs(5);return t.KtG(r.toggle()||o.valueChanged())}),t._uU(3),t.qZA(),t.TgZ(4,"mat-slide-toggle",3,4),t.NdJ("ngModelChange",function(r){return o.modelValue=r}),t.qZA()(),t.TgZ(6,"div",5),t.Hsn(7),t.qZA()()}if(2&e){const n=t.MAs(5);t.xp6(2),t.ekj("unselected-setting",!n.checked),t.xp6(1),t.hij(" ",o.title," "),t.xp6(1),t.Q6J("ngModel",o.modelValue),t.xp6(2),t.Q6J("@openClose",n.checked?"open":"closed")}},dependencies:[f.JJ,f.On,nt.Rr],data:{animation:[M.BQ]}}),i})();function Si(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",25)(1,"mat-form-field",26)(2,"input",20),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw(2);return t.KtG(s.currentConfiguration.periodStatic=n)}),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-hint"),t._uU(5),t.ALo(6,"translate"),t.qZA()()()}if(2&i){const e=t.oxw(2);t.xp6(2),t.s9C("pattern",e.datePattern),t.s9C("placeholder",t.lcZ(3,4,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_INPUT_STATIC")),t.Q6J("ngModel",e.currentConfiguration.periodStatic),t.xp6(3),t.Oqu(t.lcZ(6,6,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DP_HINT"))}}function xi(i,a){if(1&i&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.Q6J("value",e.value),t.xp6(1),t.Oqu(e.text)}}function Ni(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",18)(1,"mat-form-field",19)(2,"input",27),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw(2);return t.KtG(s.currentConfiguration.periodDynamic=n)}),t.ALo(3,"translate"),t.qZA()(),t.TgZ(4,"mat-form-field")(5,"mat-label"),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"mat-select",8),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw(2);return t.KtG(s.currentConfiguration.periodDynamicUnit=n)}),t.YNc(9,xi,2,2,"mat-option",17),t.qZA()()()}if(2&i){const e=t.oxw(2);t.xp6(2),t.s9C("pattern",e.dynamicAmountPattern),t.s9C("placeholder",t.lcZ(3,6,"VO_MANAGEMENT.SETTINGS.EXPIRATION.AMOUNT_VALUE")),t.Q6J("ngModel",e.currentConfiguration.periodDynamic),t.xp6(4),t.Oqu(t.lcZ(7,8,"VO_MANAGEMENT.SETTINGS.EXPIRATION.AMOUNT_TYPE")),t.xp6(2),t.Q6J("ngModel",e.currentConfiguration.periodDynamicUnit),t.xp6(1),t.Q6J("ngForOf",e.amountOptions)}}function Oi(i,a){if(1&i&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.Q6J("value",e),t.xp6(1),t.Oqu(e)}}function Zi(i,a){if(1&i&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.Q6J("value",e),t.xp6(1),t.Oqu(e)}}function Di(i,a){if(1&i&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.Q6J("value",e.value),t.xp6(1),t.Oqu(e.text)}}function Mi(i,a){if(1&i&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function Li(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",25)(1,"mat-form-field",26)(2,"input",20),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw(3);return t.KtG(s.currentConfiguration.specialLoaPeriodStatic=n)}),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-hint"),t._uU(5),t.ALo(6,"translate"),t.qZA()()()}if(2&i){const e=t.oxw(3);t.xp6(2),t.s9C("pattern",e.datePattern),t.s9C("placeholder",t.lcZ(3,4,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_INPUT_STATIC")),t.Q6J("ngModel",e.currentConfiguration.specialLoaPeriodStatic),t.xp6(3),t.Oqu(t.lcZ(6,6,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DP_HINT"))}}function Ri(i,a){if(1&i&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.Q6J("value",e.value),t.xp6(1),t.Oqu(e.text)}}function wi(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",18)(1,"mat-form-field",19)(2,"input",20),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw(3);return t.KtG(s.currentConfiguration.specialLoaPeriodDynamic=n)}),t.ALo(3,"translate"),t.qZA()(),t.TgZ(4,"mat-form-field")(5,"mat-label"),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"mat-select",8),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw(3);return t.KtG(s.currentConfiguration.specialLoaPeriodDynamicUnit=n)}),t.YNc(9,Ri,2,2,"mat-option",17),t.qZA()()()}if(2&i){const e=t.oxw(3);t.xp6(2),t.s9C("pattern",e.dynamicAmountPattern),t.s9C("placeholder",t.lcZ(3,6,"VO_MANAGEMENT.SETTINGS.EXPIRATION.AMOUNT_VALUE")),t.Q6J("ngModel",e.currentConfiguration.specialLoaPeriodDynamic),t.xp6(4),t.Oqu(t.lcZ(7,8,"VO_MANAGEMENT.SETTINGS.EXPIRATION.AMOUNT_TYPE")),t.xp6(2),t.Q6J("ngModel",e.currentConfiguration.specialLoaPeriodDynamicUnit),t.xp6(1),t.Q6J("ngForOf",e.amountOptions)}}function Gi(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",29)(1,"mat-radio-group",8),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw(2);return t.KtG(s.currentConfiguration.specialLoaPeriodType=n)}),t.TgZ(2,"mat-radio-button",9,30),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.TgZ(6,"mat-radio-button",11,31),t._uU(8),t.ALo(9,"translate"),t.qZA()(),t.YNc(10,Li,7,8,"div",13),t.YNc(11,wi,10,10,"div",14),t.TgZ(12,"div")(13,"mat-checkbox",32),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw(2);return t.KtG(s.currentConfiguration.specialLoaPeriodExtendExpiredMembers=n)}),t._uU(14),t.ALo(15,"translate"),t.qZA()()()}if(2&i){const e=t.MAs(3),o=t.MAs(7),n=t.oxw(2);t.xp6(1),t.Q6J("ngModel",n.currentConfiguration.specialLoaPeriodType),t.xp6(3),t.hij(" ",t.lcZ(5,7,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_TYPE_STATIC")," "),t.xp6(4),t.hij(" ",t.lcZ(9,9,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_TYPE_DYNAMIC")," "),t.xp6(2),t.Q6J("ngIf",e.checked),t.xp6(1),t.Q6J("ngIf",o.checked),t.xp6(2),t.Q6J("ngModel",n.currentConfiguration.specialLoaPeriodExtendExpiredMembers),t.xp6(1),t.hij(" ",t.lcZ(15,11,"VO_MANAGEMENT.SETTINGS.EXPIRATION.EXTEND_EXPIRED_MEMBERS_CHECKBOX")," ")}}function Ui(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",1)(1,"div",2)(2,"h1",3),t.NdJ("click",function(){t.CHM(e);const n=t.MAs(6);return t.KtG(n.toggle())}),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"mat-slide-toggle",4,5),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.currentConfiguration.enabled=n)}),t.qZA()(),t.TgZ(7,"div")(8,"label",6),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"div",7)(12,"mat-radio-group",8),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.currentConfiguration.periodType=n)}),t.TgZ(13,"mat-radio-button",9,10),t._uU(15),t.ALo(16,"translate"),t.qZA(),t.TgZ(17,"mat-radio-button",11,12),t._uU(19),t.ALo(20,"translate"),t.qZA()(),t.YNc(21,Si,7,8,"div",13),t.YNc(22,Ni,10,10,"div",14),t.qZA(),t.TgZ(23,"app-settings-toggle-item",15),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.currentConfiguration.doNotAllowLoasEnabled=n)}),t.ALo(24,"translate"),t.TgZ(25,"mat-form-field")(26,"mat-placeholder"),t._uU(27),t.ALo(28,"translate"),t.qZA(),t.TgZ(29,"mat-select",16),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.currentConfiguration.doNotAllowLoas=n)}),t.YNc(30,Oi,2,2,"mat-option",17),t.qZA()()(),t.TgZ(31,"app-settings-toggle-item",15),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.currentConfiguration.doNotExtendLoasEnabled=n)}),t.ALo(32,"translate"),t.TgZ(33,"mat-form-field")(34,"mat-placeholder"),t._uU(35),t.ALo(36,"translate"),t.qZA(),t.TgZ(37,"mat-select",16),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.currentConfiguration.doNotExtendLoas=n)}),t.YNc(38,Zi,2,2,"mat-option",17),t.qZA()()(),t.TgZ(39,"app-settings-toggle-item",15),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.currentConfiguration.gracePeriodEnabled=n)}),t.ALo(40,"translate"),t.TgZ(41,"div",18)(42,"mat-form-field",19)(43,"input",20),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.currentConfiguration.gracePeriod=n)}),t.ALo(44,"translate"),t.qZA()(),t.TgZ(45,"mat-form-field")(46,"mat-label"),t._uU(47),t.ALo(48,"translate"),t.qZA(),t.TgZ(49,"mat-select",8),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.currentConfiguration.gracePeriodUnit=n)}),t.YNc(50,Di,2,2,"mat-option",17),t.qZA()()()(),t.TgZ(51,"app-settings-toggle-item",15),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.currentConfiguration.specialLoaPeriodEnabled=n)}),t.ALo(52,"translate"),t.TgZ(53,"div",7)(54,"div")(55,"mat-form-field")(56,"mat-label"),t._uU(57),t.ALo(58,"translate"),t.qZA(),t.TgZ(59,"mat-select",8,21),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.currentConfiguration.specialLoa=n)}),t.YNc(61,Mi,2,2,"mat-option",17),t.qZA()(),t.YNc(62,Gi,16,13,"div",22),t.qZA()()()(),t.TgZ(63,"div",23),t.ALo(64,"translate"),t.TgZ(65,"button",24),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.saveChanges())}),t._uU(66),t.ALo(67,"translate"),t.qZA()()()}if(2&i){const e=t.MAs(6),o=t.MAs(14),n=t.MAs(18),s=t.oxw();t.xp6(2),t.ekj("unselected-setting",!e.checked),t.xp6(1),t.hij(" ",t.lcZ(4,44,"VO_MANAGEMENT.SETTINGS.EXPIRATION.TITLE")," "),t.xp6(2),t.Q6J("ngModel",s.currentConfiguration.enabled),t.xp6(2),t.Q6J("@openClose",e.checked?"open":"closed"),t.xp6(2),t.Oqu(t.lcZ(10,46,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_LABEL")),t.xp6(3),t.Q6J("ngModel",s.currentConfiguration.periodType),t.xp6(3),t.hij(" ",t.lcZ(16,48,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_TYPE_STATIC")," "),t.xp6(4),t.hij(" ",t.lcZ(20,50,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_TYPE_DYNAMIC")," "),t.xp6(2),t.Q6J("ngIf",o.checked),t.xp6(1),t.Q6J("ngIf",n.checked),t.xp6(1),t.Q6J("ngModel",s.currentConfiguration.doNotAllowLoasEnabled)("modelValue",s.currentConfiguration.doNotAllowLoasEnabled)("title",t.lcZ(24,52,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DONT_ALLOW_LOA_LABEL")),t.xp6(4),t.Oqu(t.lcZ(28,54,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DONT_ALLOW_LOA_SELECT")),t.xp6(2),t.Q6J("ngModel",s.currentConfiguration.doNotAllowLoas),t.xp6(1),t.Q6J("ngForOf",s.loas),t.xp6(1),t.Q6J("ngModel",s.currentConfiguration.doNotExtendLoasEnabled)("modelValue",s.currentConfiguration.doNotExtendLoasEnabled)("title",t.lcZ(32,56,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DONT_EXTEND_LOA_LABEL")),t.xp6(4),t.Oqu(t.lcZ(36,58,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DONT_EXTEND_LOA_SELECT")),t.xp6(2),t.Q6J("ngModel",s.currentConfiguration.doNotExtendLoas),t.xp6(1),t.Q6J("ngForOf",s.loas),t.xp6(1),t.Q6J("ngModel",s.currentConfiguration.gracePeriodEnabled)("modelValue",s.currentConfiguration.gracePeriodEnabled)("title",t.lcZ(40,60,"VO_MANAGEMENT.SETTINGS.EXPIRATION.GRACE_PERIOD_LABEL")),t.xp6(4),t.s9C("pattern",s.dynamicAmountPattern),t.s9C("placeholder",t.lcZ(44,62,"VO_MANAGEMENT.SETTINGS.EXPIRATION.GRACE_AMOUNT_VALUE")),t.Q6J("ngModel",s.currentConfiguration.gracePeriod),t.xp6(4),t.Oqu(t.lcZ(48,64,"VO_MANAGEMENT.SETTINGS.EXPIRATION.GRACE_AMOUNT_TYPE")),t.xp6(2),t.Q6J("ngModel",s.currentConfiguration.gracePeriodUnit),t.xp6(1),t.Q6J("ngForOf",s.amountOptions),t.xp6(1),t.Q6J("ngModel",s.currentConfiguration.specialLoaPeriodEnabled)("modelValue",s.currentConfiguration.specialLoaPeriodEnabled)("title",t.lcZ(52,66,"VO_MANAGEMENT.SETTINGS.EXPIRATION.LOA_PERIOD_LABEL")),t.xp6(6),t.Oqu(t.lcZ(58,68,"VO_MANAGEMENT.SETTINGS.EXPIRATION.SPECIAL_LOA_SELECT")),t.xp6(2),t.Q6J("ngModel",s.currentConfiguration.specialLoa),t.xp6(2),t.Q6J("ngForOf",s.loas),t.xp6(1),t.Q6J("ngIf",null!==s.currentConfiguration.specialLoa),t.xp6(1),t.s9C("matTooltip",t.lcZ(64,70,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERMISSION_DENIED_HINT")),t.Q6J("matTooltipDisabled",s.expirationAttribute.writable)("matTooltipPosition","above"),t.xp6(2),t.Q6J("disabled",!s.areChangesMade()||!s.expirationAttribute.writable),t.xp6(1),t.hij(" ",t.lcZ(67,72,"VO_MANAGEMENT.SETTINGS.EXPIRATION.SAVE")," ")}}let Zt=(()=>{class i{constructor(){this.saveAttribute=new t.vpe,this.loas=[0,1,2],this.datePattern="^(3[01]|[12][0-9]|0?[1-9])\\.(1[012]|0?[1-9])\\.$",this.dynamicAmountPattern="^[1-9]+$",this.amountOptions=[{value:"d",text:"Days"},{value:"m",text:"Months"},{value:"y",text:"Years"}]}ngOnInit(){const e=new Map;this.loas.forEach(o=>e.set(o,"")),this.initialConfiguration=this.unParseAttrValue(this.expirationAttribute.value),this.currentConfiguration=this.unParseAttrValue(this.expirationAttribute.value)}ngOnChanges(e){e.expirationAttribute&&(this.initialConfiguration=this.unParseAttrValue(this.expirationAttribute.value))}saveChanges(){this.saveAttribute.emit(this.parseExpirationRulesAttribute())}areChangesMade(){const e=this.parseAttributeValueFromConfig(this.currentConfiguration),o=this.parseAttributeValueFromConfig(this.initialConfiguration);return null===o?null!==e:null===e||e.period!==o.period||e.gracePeriod!==o.gracePeriod||e.doNotExtendLoa!==o.doNotExtendLoa||e.doNotAllowLoa!==o.doNotAllowLoa||e.periodLoa!==o.periodLoa}parseExpirationRulesAttribute(){return this.expirationAttribute.value=this.parseAttributeValueFromConfig(this.currentConfiguration),this.expirationAttribute}parsePeriod(e){switch(e.periodType){case"dynamic":return this.parseDynamicPeriod(e);case"static":return this.parseStaticPeriod(e)}}createInitConfiguration(){const e=new Map;return this.loas.forEach(o=>e.set(o,"")),{enabled:!1,periodType:null,periodStatic:"",periodDynamic:"",periodDynamicUnit:"m",doNotAllowLoas:[],doNotAllowLoasEnabled:!1,doNotExtendLoas:[],doNotExtendLoasEnabled:!1,gracePeriodEnabled:!1,gracePeriod:null,gracePeriodUnit:null,specialLoaPeriodEnabled:!1,specialLoaPeriod:"",specialLoa:null,specialLoaPeriodType:null,specialLoaPeriodDynamic:"",specialLoaPeriodDynamicUnit:"m",specialLoaPeriodStatic:"",specialLoaPeriodExtendExpiredMembers:!1}}unParseAttrValue(e){let o=this.createInitConfiguration();return null==e||(void 0!==e.period&&e.period.length>0&&(o=this.setPeriodValues(e,o)),void 0!==e.doNotAllowLoa&&e.doNotAllowLoa.length>0&&(o=this.setDoNotAllowLoasValues(e,o)),void 0!==e.doNotExtendLoa&&e.doNotExtendLoa.length>0&&(o=this.setDoNotExtendLoasValues(e,o)),void 0!==e.gracePeriod&&e.gracePeriod.length>0&&(o=this.setGracePeriodValues(e,o)),void 0!==e.periodLoa&&e.periodLoa.length>0&&(o=this.setSpecialLoaPeriodValues(e,o))),o}setPeriodValues(e,o){if(o.enabled=!0,e.period.startsWith("+")){o.periodType="dynamic";const n=e.period.charAt(e.period.length-1);o.periodDynamic=e.period.substring(1,e.period.length-1),o.periodDynamicUnit=n}else o.periodType="static",o.periodStatic=e.period;return o}setDoNotAllowLoasValues(e,o){const n=[];return e.doNotAllowLoa.split(",").forEach(s=>n.push(parseInt(s.trim(),10))),o.doNotAllowLoas=n,n.length>0&&(o.doNotAllowLoasEnabled=!0),o}setDoNotExtendLoasValues(e,o){const n=[];return e.doNotExtendLoa.split(",").forEach(s=>n.push(parseInt(s.trim(),10))),o.doNotExtendLoas=n,n.length>0&&(o.doNotExtendLoasEnabled=!0),o}setGracePeriodValues(e,o){o.gracePeriodEnabled=!0;const n=e.gracePeriod.charAt(e.gracePeriod.length-1);return o.gracePeriod=e.gracePeriod.substring(0,e.gracePeriod.length-1),o.gracePeriodUnit=n,o}setSpecialLoaPeriodValues(e,o){o.specialLoa=parseInt(e.periodLoa.substring(0,e.periodLoa.indexOf("|")),10),o.specialLoaPeriodEnabled=!0;let n=e.periodLoa.substring(e.periodLoa.indexOf("|")+1,e.periodLoa.length);if(n.startsWith("+")){n.endsWith(".")&&(o.specialLoaPeriodExtendExpiredMembers=!0,n=n.substring(0,n.length-1)),o.specialLoaPeriodType="dynamic";const s=n.charAt(n.length-1);o.specialLoaPeriodDynamic=n.substring(1,n.length-1),o.specialLoaPeriodDynamicUnit=s}else n.endsWith("..")&&(o.specialLoaPeriodExtendExpiredMembers=!0,n=n.substring(0,n.length-1)),o.specialLoaPeriodType="static",o.specialLoaPeriodStatic=n;return o}parseDynamicPeriod(e){return"+"+e.periodDynamic+e.periodDynamicUnit}parseStaticPeriod(e){return e.periodStatic}parseDontAllowLoas(e){if(!e.doNotAllowLoasEnabled)return null;let o="";return e.doNotAllowLoas.forEach(n=>o+=n.toString()+","),o.length>0&&(o=o.substring(0,o.length-1)),o.length>0?o:null}parseDontExtendLoas(e){if(!e.doNotExtendLoasEnabled)return null;let o="";return e.doNotExtendLoas.forEach(n=>o+=n.toString()+","),o.length>0&&(o=o.substring(0,o.length-1)),o.length>0?o:null}parseGracePeriod(e){return e.gracePeriodEnabled?e.gracePeriod+e.gracePeriodUnit:null}parseSpecialLoaPeriod(e){if(!e.specialLoaPeriodEnabled||!e.specialLoa)return null;let o=e.specialLoa.toString()+"|";switch(e.specialLoaPeriodType){case"static":o+=this.parseSpecialLoaPeriodStatic(e);break;case"dynamic":o+=this.parseSpecialLoaPeriodDynamic(e)}return null!=o&&e.specialLoaPeriodExtendExpiredMembers&&(o+="."),o}parseSpecialLoaPeriodStatic(e){return e.specialLoaPeriodStatic}parseSpecialLoaPeriodDynamic(e){return"+"+e.specialLoaPeriodDynamic+e.specialLoaPeriodDynamicUnit}parseAttributeValueFromConfig(e){if(!e.enabled)return null;const o=this.parsePeriod(e),n=this.parseDontAllowLoas(e),s=this.parseDontExtendLoas(e),r=this.parseGracePeriod(e),d=this.parseSpecialLoaPeriod(e),A={period:o};return null!==s&&(A.doNotExtendLoa=s),null!==n&&(A.doNotAllowLoa=n),null!==r&&(A.gracePeriod=r),null!==d&&(A.periodLoa=d),A}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-expiration-settings"]],inputs:{expirationAttribute:"expirationAttribute"},outputs:{saveAttribute:"saveAttribute"},features:[t.TTD],decls:1,vars:1,consts:[["class","card settings-card col-12 col-md-12 col-xl-6",4,"ngIf"],[1,"card","settings-card","col-12","col-md-12","col-xl-6"],[1,"d-flex","flex-row","align-items-baseline","justify-content-between"],[1,"settings-header",3,"click"],["color","primary",1,"ml-4",3,"ngModel","ngModelChange"],["mainToggle",""],[1,"setting-item","pt-2"],[1,"ml-1"],[3,"ngModel","ngModelChange"],["color","primary","value","static",1,"mr-3"],["staticPeriod",""],["color","primary","value","dynamic"],["dynamicPeriod",""],["class","form-container",4,"ngIf"],["class","d-flex flex-row",4,"ngIf"],["ngDefaultControl","",3,"ngModel","modelValue","title","ngModelChange"],["multiple","",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"d-flex","flex-row"],[1,"mr-2","amount-field"],["matInput","",3,"pattern","ngModel","placeholder","ngModelChange"],["specialLoaSelect",""],["class","mt-2",4,"ngIf"],[1,"ml-auto",3,"matTooltipDisabled","matTooltipPosition","matTooltip"],["color","primary","mat-flat-button","",1,"ml-auto",3,"disabled","click"],[1,"form-container"],[1,"date-field"],["matInput","",3,"ngModel","pattern","placeholder","ngModelChange"],[3,"value"],[1,"mt-2"],["loaStaticRadioButton",""],["loaDynamicRadioButton",""],["color","primary",3,"ngModel","ngModelChange"]],template:function(e,o){1&e&&t.YNc(0,Ui,68,74,"div",0),2&e&&t.Q6J("ngIf",o.currentConfiguration)},dependencies:[_.sg,_.O5,H.ey,x.KE,x.bx,x.hX,x.UY,y.Nt,f.Fj,f.JJ,f.c5,f.On,I.lW,j.oG,z.gD,N.gM,nt.Rr,Ot.VQ,Ot.U0,Ci,m.X$],styles:[".period-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin-top:1.5rem}.amount-field[_ngcontent-%COMP%]{width:80px}.date-field[_ngcontent-%COMP%]{width:100%}.settings-header[_ngcontent-%COMP%]{margin-top:.75rem;margin-bottom:.75rem;font-size:1.25rem;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.settings-card[_ngcontent-%COMP%]{padding:.5rem 1.5rem}"],data:{animation:[M.BQ]}}),i})();function Pi(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"app-expiration-settings",1),t.NdJ("saveAttribute",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.saveExpirationAttribute(n))}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("expirationAttribute",e.expirationAttribute)}}let yi=(()=>{class i{constructor(e,o,n,s,r){this.attributesManager=e,this.translate=o,this.notificator=n,this.apiRequest=s,this.entityStorageService=r,this.translate.get("VO_DETAIL.SETTINGS.EXPIRATION.SUCCESS_MESSAGE").subscribe(d=>this.successMessage=d),this.translate.get("VO_DETAIL.SETTINGS.EXPIRATION.ERROR_MESSAGE").subscribe(d=>this.errorMessage=d)}ngOnInit(){this.vo=this.entityStorageService.getEntity(),this.loadSettings()}saveExpirationAttribute(e){this.apiRequest.dontHandleErrorForNext(),this.attributesManager.setVoAttribute({vo:this.vo.id,attribute:e}).subscribe({next:()=>{this.loadSettings(),this.notificator.showSuccess(this.successMessage)},error:o=>{this.notificator.showRPCError(o,this.errorMessage)}})}loadSettings(){this.attributesManager.getVoAttributeByName(this.vo.id,S.r.VO_DEF_EXPIRATION_RULES).subscribe(e=>{this.expirationAttribute=e})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.H8),t.Y36(m.sK),t.Y36(p.V6),t.Y36(p.F5),t.Y36(p.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-settings-expiration"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:1,vars:1,consts:[[3,"expirationAttribute","saveAttribute",4,"ngIf"],[3,"expirationAttribute","saveAttribute"]],template:function(e,o){1&e&&t.YNc(0,Pi,1,1,"app-expiration-settings",0),2&e&&t.Q6J("ngIf",void 0!==o.expirationAttribute)},dependencies:[_.O5,Zt],data:{animation:[M.BQ]}}),i})();var Vi=l(55857),Dt=l(28361);let Fi=(()=>{class i{constructor(e,o,n,s){this.dialog=e,this.voService=o,this.guiAuthResolver=n,this.entityStorageService=s,this.availableRoles=[],this.type="Vo",this.theme="vo-theme"}ngOnInit(){this.vo=this.entityStorageService.getEntity(),this.guiAuthResolver.assignAvailableRoles(this.availableRoles,"Vo")}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.uw),t.Y36(h.YF),t.Y36(p.x4),t.Y36(p.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-settings-managers"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:1,vars:4,consts:[[3,"complementaryObject","availableRoles","complementaryObjectType","theme"]],template:function(e,o){1&e&&t._UZ(0,"app-managers-page",0),2&e&&t.Q6J("complementaryObject",o.vo)("availableRoles",o.availableRoles)("complementaryObjectType",o.type)("theme",o.theme)},dependencies:[Dt.s]}),i})();function Yi(i,a){1&i&&t._UZ(0,"mat-spinner",6)}function Ji(i,a){1&i&&(t.TgZ(0,"mat-option",18),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APPROVABLE_GROUP_APP_USER")))}function qi(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div"),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"mat-form-field",8)(4,"textarea",19),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw(2);return t.KtG(s.reason=n)}),t.qZA()()()}if(2&i){const e=t.oxw(2);t.xp6(1),t.hij(" ",t.lcZ(2,2,"DIALOGS.RE_SEND_NOTIFICATION.REASON"),": "),t.xp6(3),t.Q6J("ngModel",e.reason)}}function ki(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",7),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"mat-form-field",8)(4,"mat-select",9),t.NdJ("valueChange",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.mailType=n)}),t.TgZ(5,"mat-option",10),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.YNc(8,Ji,3,3,"mat-option",11),t.TgZ(9,"mat-option",12),t._uU(10),t.ALo(11,"translate"),t.qZA(),t.TgZ(12,"mat-option",13),t._uU(13),t.ALo(14,"translate"),t.qZA(),t.TgZ(15,"mat-option",14),t._uU(16),t.ALo(17,"translate"),t.qZA(),t.TgZ(18,"mat-option",15),t._uU(19),t.ALo(20,"translate"),t.qZA(),t.TgZ(21,"mat-option",16),t._uU(22),t.ALo(23,"translate"),t.qZA()()(),t.YNc(24,qi,5,4,"div",17),t.qZA()}if(2&i){const e=t.oxw();t.xp6(1),t.hij(" ",t.lcZ(2,10,"DIALOGS.RE_SEND_NOTIFICATION.SELECT"),": "),t.xp6(3),t.Q6J("value",e.mailType),t.xp6(2),t.Oqu(t.lcZ(7,12,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_CREATED_USER")),t.xp6(2),t.Q6J("ngIf",e.data.groupId),t.xp6(2),t.Oqu(t.lcZ(11,14,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_CREATED_VO_ADMIN")),t.xp6(3),t.Oqu(t.lcZ(14,16,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.MAIL_VALIDATION")),t.xp6(3),t.Oqu(t.lcZ(17,18,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_APPROVED_USER")),t.xp6(3),t.Oqu(t.lcZ(20,20,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_REJECTED_USER")),t.xp6(3),t.Oqu(t.lcZ(23,22,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_ERROR_VO_ADMIN")),t.xp6(2),t.Q6J("ngIf","APP_REJECTED_USER"===e.mailType)}}let Qi=(()=>{class i{constructor(e,o,n,s,r){this.dialogRef=e,this.data=o,this.translate=n,this.notificator=s,this.registrarManager=r,this.mailType="APP_CREATED_USER",this.reason="",this.loading=!1}ngOnInit(){this.theme=this.data.theme}onCancel(){this.dialogRef.close()}onSubmit(){this.loading=!0,"APP_REJECTED_USER"===this.mailType?this.registrarManager.sendMessage({appId:this.data.applicationId,mailType:this.mailType,reason:this.reason}).subscribe(()=>{this.translate.get("DIALOGS.RE_SEND_NOTIFICATION.SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.dialogRef.close()})},()=>this.loading=!1):this.registrarManager.sendMessage({appId:this.data.applicationId,mailType:this.mailType}).subscribe(()=>{this.translate.get("DIALOGS.RE_SEND_NOTIFICATION.SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.dialogRef.close()})},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(m.sK),t.Y36(p.V6),t.Y36(h.tk))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-application-re-send-notification-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"w-100"],["disableOptionCentering","",3,"value","valueChange"],["value","APP_CREATED_USER"],["value","APPROVABLE_GROUP_APP_USER",4,"ngIf"],["value","APP_CREATED_VO_ADMIN"],["value","MAIL_VALIDATION"],["value","APP_APPROVED_USER"],["value","APP_REJECTED_USER"],["value","APP_ERROR_VO_ADMIN"],[4,"ngIf"],["value","APPROVABLE_GROUP_APP_USER"],["matInput","",3,"ngModel","ngModelChange"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Yi,1,0,"mat-spinner",1),t.YNc(5,ki,25,24,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return o.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return o.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.Gre("",o.theme,"}"),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.RE_SEND_NOTIFICATION.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.RE_SEND_NOTIFICATION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",o.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.RE_SEND_NOTIFICATION.SEND")," "))},dependencies:[_.O5,H.ey,x.KE,y.Nt,f.Fj,f.JJ,f.On,I.lW,u.uh,u.xY,u.H8,z.gD,T.Ou,m.X$]}),i})();function Bi(i,a){1&i&&t._UZ(0,"mat-spinner",6)}function Hi(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",7),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"mat-form-field",8)(4,"textarea",9),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.reason=n)}),t.qZA()()()}if(2&i){const e=t.oxw();t.xp6(1),t.hij(" ",t.lcZ(2,2,"DIALOGS.REJECT_APPLICATION.TEXT")," "),t.xp6(3),t.Q6J("ngModel",e.reason)}}let ji=(()=>{class i{constructor(e,o,n,s,r){this.dialogRef=e,this.data=o,this.translate=n,this.notificator=s,this.registrarManager=r,this.reason="",this.loading=!1}ngOnInit(){this.theme=this.data.theme}onCancel(){this.dialogRef.close()}onSubmit(){this.loading=!0,this.registrarManager.rejectApplication(this.data.applicationId,this.reason).subscribe(()=>{this.translate.get("DIALOGS.REJECT_APPLICATION.SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.dialogRef.close()})},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(m.sK),t.Y36(p.V6),t.Y36(h.tk))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-application-reject-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"w-100"],["matInput","",3,"ngModel","ngModelChange"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Bi,1,0,"mat-spinner",1),t.YNc(5,Hi,5,4,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return o.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return o.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.REJECT_APPLICATION.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.REJECT_APPLICATION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",o.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.REJECT_APPLICATION.SUBMIT")," "))},dependencies:[_.O5,x.KE,y.Nt,f.Fj,f.JJ,f.On,I.lW,u.uh,u.xY,u.H8,T.Ou,m.X$]}),i})();function zi(i,a){1&i&&t._UZ(0,"mat-spinner",6)}function $i(i,a){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.INVALID_EMAIL")))}function Xi(i,a){if(1&i&&(t.TgZ(0,"mat-form-field")(1,"label"),t._UZ(2,"input",9),t.qZA(),t.YNc(3,$i,3,3,"mat-error",8),t.qZA()),2&i){const e=t.oxw(2);t.xp6(2),t.Q6J("formControl",e.emailControl),t.xp6(1),t.Q6J("ngIf",e.emailControl.invalid)}}function Ki(i,a){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.EMPTY_INPUT")))}function Wi(i,a){if(1&i&&(t.TgZ(0,"mat-form-field"),t._UZ(1,"input",10),t.YNc(2,Ki,3,3,"mat-error",8),t.qZA()),2&i){const e=t.oxw(2);t.xp6(1),t.Q6J("formControl",e.inputControl),t.xp6(1),t.Q6J("ngIf",e.inputControl.invalid)}}function to(i,a){if(1&i&&(t.TgZ(0,"div",7),t.YNc(1,Xi,4,2,"mat-form-field",8),t.YNc(2,Wi,3,2,"mat-form-field",8),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",null!==e.emailControl),t.xp6(1),t.Q6J("ngIf",null!==e.inputControl)}}let eo=(()=>{class i{constructor(e,o,n,s,r){this.dialogRef=e,this.data=o,this.notificator=n,this.translateService=s,this.registrarService=r,this.loading=!1,this.inputControl=null,this.emailControl=null}static getLabel(e){return null!==e.i18n.en.label&&0!==e.i18n.en.label.length?e.i18n.en.label:e.shortname}ngOnInit(){this.theme=this.data.theme,this.formItemData=this.data.formItemData,this.itemName=i.getLabel(this.formItemData.formItem),this.itemName.toLowerCase().includes("mail")?this.emailControl=new f.p4(this.formItemData.value,[f.kI.required,f.kI.email]):this.inputControl=new f.p4(this.formItemData.value,[f.kI.required])}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.formItemData.value=null!==this.inputControl?this.inputControl.value:this.emailControl.value,this.registrarService.updateFormItemData({appId:this.data.applicationId,data:{id:this.formItemData.id,formItem:this.formItemData.formItem,shortname:this.formItemData.shortname,value:this.formItemData.value,assuranceLevel:this.formItemData.assuranceLevel,prefilledValue:this.formItemData.prefilledValue}}).subscribe(()=>{this.notificator.showSuccess(this.translateService.instant("DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(p.V6),t.Y36(m.sK),t.Y36(h.tk))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-edit-application-form-item-data-dialog"]],decls:13,vars:16,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[4,"ngIf"],["matInput","","required","",3,"formControl"],["matInput","","required","","type","text",3,"formControl"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,zi,1,0,"mat-spinner",1),t.YNc(5,to,3,2,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return o.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return o.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.Tol(o.theme),t.xp6(2),t.AsE(" ",t.lcZ(3,10,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.TITLE")," ",o.itemName," "),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(9,12,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.CANCEL")," "),t.xp6(2),t.Q6J("disabled",o.loading||null!==o.inputControl&&o.inputControl.invalid||null!==o.emailControl&&o.emailControl.invalid),t.xp6(1),t.hij(" ",t.lcZ(12,14,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.SUBMIT")," "))},dependencies:[_.O5,x.TO,x.KE,y.Nt,f.Fj,f.JJ,f.Q7,f.oH,I.lW,u.uh,u.xY,u.H8,T.Ou,m.X$]}),i})();var at=l(44850),io=l(43157);function oo(i,a){if(1&i&&(t.TgZ(0,"span",5),t._uU(1),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.hij(" #",e.application.id," ")}}function no(i,a){1&i&&t._UZ(0,"mat-spinner",6)}function ao(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",16),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.verifyApplication())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.VERIFY")," "))}function so(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",16),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.approveApplication())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPROVE")," "))}function ro(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.rejectApplication())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.REJECT")," "))}function lo(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.deleteApplication())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DELETE")," "))}function co(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",18),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.resendNotification())}),t.TgZ(1,"i",14),t._uU(2," mail_outline "),t.qZA(),t._uU(3),t.ALo(4,"translate"),t.qZA()}2&i&&(t.xp6(3),t.hij(" ",t.lcZ(4,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.SEND_NOTIFICATION")," "))}function po(i,a){if(1&i&&(t.TgZ(0,"div")(1,"span",10),t._uU(2),t.ALo(3,"translate"),t.qZA(),t._uU(4),t.qZA()),2&i){const e=t.oxw(2);t.xp6(2),t.Oqu(t.lcZ(3,2,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPLICATION_FOR_VO")),t.xp6(2),t.hij(": ",e.application.vo.name," ")}}function uo(i,a){if(1&i&&(t.TgZ(0,"div")(1,"span",10),t._uU(2),t.ALo(3,"translate"),t.qZA(),t._uU(4),t.TgZ(5,"span",10),t._uU(6),t.ALo(7,"translate"),t.qZA(),t._uU(8),t.qZA()),2&i){const e=t.oxw(2);t.xp6(2),t.Oqu(t.lcZ(3,4,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPLICATION_FOR_GROUP")),t.xp6(2),t.hij(": ",e.application.group.name," "),t.xp6(2),t.Oqu(t.lcZ(7,6,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPLICATION_IN_VO")),t.xp6(2),t.hij(": ",e.application.vo.name," ")}}function _o(i,a){1&i&&(t.TgZ(0,"span")(1,"mat-icon",19),t._uU(2,"arrow_right_alt"),t.qZA(),t._uU(3," Initial "),t.qZA())}function mo(i,a){1&i&&(t.TgZ(0,"span")(1,"mat-icon",19),t._uU(2,"restore"),t.qZA(),t._uU(3," Extension "),t.qZA())}function go(i,a){1&i&&(t.TgZ(0,"span")(1,"mat-icon",19),t._uU(2,"nat"),t.qZA(),t._uU(3," Embedded "),t.qZA())}function ho(i,a){if(1&i&&(t.TgZ(0,"div",20)(1,"mat-card-title")(2,"i",21),t._uU(3,"clear"),t.qZA(),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.TgZ(6,"div")(7,"span",10),t._uU(8),t.ALo(9,"translate"),t.qZA(),t._uU(10),t.ALo(11,"date"),t.qZA()()),2&i){const e=t.oxw(2);t.xp6(4),t.AsE(" ",t.lcZ(5,4,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.REJECTED_BY"),": ",e.getModifiedAtName(e.application.modifiedBy),""),t.xp6(4),t.Oqu(t.lcZ(9,6,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DATE")),t.xp6(2),t.hij(": ",t.xi3(11,8,e.application.modifiedAt,"d.M.y H:mm:ss")," ")}}function fo(i,a){if(1&i&&(t.TgZ(0,"div",20)(1,"mat-card-title")(2,"i",22),t._uU(3,"done"),t.qZA(),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.TgZ(6,"div")(7,"span",10),t._uU(8),t.ALo(9,"translate"),t.qZA(),t._uU(10),t.ALo(11,"date"),t.qZA()()),2&i){const e=t.oxw(2);t.xp6(4),t.AsE(" ",t.lcZ(5,4,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPROVED_BY"),": ",e.getModifiedAtName(e.application.modifiedBy),""),t.xp6(4),t.Oqu(t.lcZ(9,6,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DATE")),t.xp6(2),t.hij(": ",t.xi3(11,8,e.application.modifiedAt,"d.M.y H:mm:ss")," ")}}function Ao(i,a){if(1&i&&(t.TgZ(0,"div")(1,"span",10),t._uU(2),t.ALo(3,"translate"),t.qZA(),t._uU(4),t.qZA()),2&i){const e=t.oxw(2);t.xp6(2),t.Oqu(t.lcZ(3,2,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.MAIL")),t.xp6(2),t.hij(": ",e.userMail," ")}}function To(i,a){1&i&&t._UZ(0,"th",31)}function Io(i,a){if(1&i&&(t.TgZ(0,"td",32),t._uU(1),t.qZA()),2&i){const e=a.$implicit,o=t.oxw(3);t.xp6(1),t.hij(" ",o.getLabel(e.formItem)," ")}}function bo(i,a){1&i&&t._UZ(0,"th",31)}function vo(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",35),t.NdJ("click",function(){t.CHM(e);const n=t.oxw().$implicit,s=t.oxw(3);return t.KtG(s.editApplicationData(n))}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA()()}}function Eo(i,a){if(1&i&&(t.TgZ(0,"td",33),t._uU(1),t.YNc(2,vo,3,0,"button",34),t.qZA()),2&i){const e=a.$implicit,o=t.oxw(3);t.xp6(1),t.hij(" ",e.value," "),t.xp6(1),t.Q6J("ngIf",("NEW"===o.application.state||"VERIFIED"===o.application.state)&&"EMBEDDED_GROUP_APPLICATION"!==e.formItem.type)}}function Co(i,a){1&i&&t._UZ(0,"tr",36)}function So(i,a){1&i&&t._UZ(0,"tr",37)}function xo(i,a){if(1&i&&(t.TgZ(0,"table",23),t.ynx(1,24),t.YNc(2,To,1,0,"th",25),t.YNc(3,Io,2,1,"td",26),t.BQk(),t.ynx(4,27),t.YNc(5,bo,1,0,"th",25),t.YNc(6,Eo,3,2,"td",28),t.BQk(),t.YNc(7,Co,1,0,"tr",29),t.YNc(8,So,1,0,"tr",30),t.qZA()),2&i){const e=t.oxw(2);t.Q6J("dataSource",e.dataSource),t.xp6(7),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}function No(i,a){if(1&i&&(t.TgZ(0,"div"),t.YNc(1,ao,3,3,"button",7),t.YNc(2,so,3,3,"button",7),t.YNc(3,ro,3,3,"button",8),t.YNc(4,lo,3,3,"button",8),t.YNc(5,co,5,3,"button",9),t.YNc(6,po,5,4,"div",4),t.YNc(7,uo,9,8,"div",4),t.TgZ(8,"div")(9,"span",10),t._uU(10),t.ALo(11,"translate"),t.qZA(),t._uU(12,": "),t._UZ(13,"span",11),t.ALo(14,"applicationState"),t.qZA(),t.TgZ(15,"div")(16,"span",10),t._uU(17),t.ALo(18,"translate"),t.qZA(),t._uU(19,": "),t.YNc(20,_o,4,0,"span",4),t.YNc(21,mo,4,0,"span",4),t.YNc(22,go,4,0,"span",4),t.qZA(),t.YNc(23,ho,12,11,"div",12),t.YNc(24,fo,12,11,"div",12),t.TgZ(25,"div",13)(26,"mat-card-title")(27,"i",14),t._uU(28,"redo"),t.qZA(),t._uU(29),t.ALo(30,"translate"),t.ALo(31,"userFullName"),t.qZA(),t.YNc(32,Ao,5,4,"div",4),t.TgZ(33,"div")(34,"span",10),t.ALo(35,"lowercase"),t._uU(36),t.ALo(37,"translate"),t.qZA(),t._uU(38),t.qZA(),t.TgZ(39,"div")(40,"span",10),t._uU(41),t.ALo(42,"translate"),t.qZA(),t._uU(43),t.qZA(),t.TgZ(44,"div")(45,"span",10),t._uU(46),t.ALo(47,"translate"),t.qZA(),t._uU(48),t.ALo(49,"date"),t.qZA(),t.YNc(50,xo,9,3,"table",15),t.qZA()()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("ngIf","NEW"===e.application.state&&e.verifyAuth),t.xp6(1),t.Q6J("ngIf",("VERIFIED"===e.application.state||"NEW"===e.application.state)&&e.approveAuth),t.xp6(1),t.Q6J("ngIf",("VERIFIED"===e.application.state||"NEW"===e.application.state)&&e.rejectAuth),t.xp6(1),t.Q6J("ngIf",("REJECTED"===e.application.state||"NEW"===e.application.state)&&e.deleteAuth),t.xp6(1),t.Q6J("ngIf",e.resendAuth),t.xp6(1),t.Q6J("ngIf",!e.application.group),t.xp6(1),t.Q6J("ngIf",e.application.group),t.xp6(3),t.Oqu(t.lcZ(11,26,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.STATE")),t.xp6(3),t.Q6J("outerHTML",t.lcZ(14,28,e.application.state),t.oJD),t.xp6(4),t.Oqu(t.lcZ(18,30,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.TYPE")),t.xp6(3),t.Q6J("ngIf","INITIAL"===e.application.type),t.xp6(1),t.Q6J("ngIf","EXTENSION"===e.application.type),t.xp6(1),t.Q6J("ngIf","EMBEDDED"===e.application.type),t.xp6(1),t.Q6J("ngIf","REJECTED"===e.application.state),t.xp6(1),t.Q6J("ngIf","APPROVED"===e.application.state),t.xp6(5),t.AsE(" ",t.lcZ(30,32,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.SUBMITTED_BY"),": ",null===e.application.user?e.submittedBy():t.lcZ(31,34,e.application.user),""),t.xp6(3),t.Q6J("ngIf",e.userMail),t.xp6(2),t.Q2q("data-cy","",t.lcZ(35,36,e.application.extSourceName),"-application-extsource"),t.xp6(2),t.Oqu(t.lcZ(37,38,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.EXT_SRC")),t.xp6(2),t.hij(": ",e.application.extSourceName," "),t.xp6(3),t.Oqu(t.lcZ(42,40,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.LOA")),t.xp6(2),t.hij(": ",e.application.extSourceLoa," "),t.xp6(3),t.Oqu(t.lcZ(47,42,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DATE")),t.xp6(2),t.hij(": ",t.xi3(49,44,e.application.createdAt,"d.M.y H:mm:ss")," "),t.xp6(2),t.Q6J("ngIf",0!==e.userData.length)}}let st=(()=>{class i{constructor(e,o,n,s,r,d,A,v){this.registrarManager=e,this.dialog=o,this.translate=n,this.route=s,this.notificator=r,this.router=d,this.authResolver=A,this.usersService=v,this.userData=[],this.displayedColumns=["label","value"],this.loading=!0}ngOnInit(){this.loading=!0,this.route.params.subscribe(e=>{this.route.parent.params.subscribe(o=>{this.dialogTheme=o.groupId?"group-theme":o.memberId?"member-theme":"vo-theme";const n=Number(e.applicationId);this.registrarManager.getApplicationById(n).subscribe(s=>{this.application=s,"EMBEDDED"===this.application.type&&this.application.user?this.usersService.getRichUserWithAttributes(this.application.user.id).subscribe(r=>{const d=r.userAttributes.find(A=>"preferredMail"===A.friendlyName);this.userMail=d?.value,this.setAuthRights(),this.loading=!1}):this.registrarManager.getApplicationDataById(this.application.id).subscribe(r=>{this.userData=r,this.dataSource=new c.by(this.userData),this.setAuthRights(),this.loading=!1})})})})}setAuthRights(){"group-theme"===this.dialogTheme?(this.verifyAuth=this.authResolver.isAuthorized("group-verifyApplication_int_policy",[this.application.group]),this.approveAuth=this.authResolver.isAuthorized("group-approveApplicationInternal_int_policy",[this.application.group]),this.rejectAuth=this.authResolver.isAuthorized("group-rejectApplication_int_String_policy",[this.application.group]),this.deleteAuth=this.authResolver.isAuthorized("group-deleteApplication_Application_policy",[this.application.group]),this.resendAuth=this.authResolver.isAuthorized("group-sendMessage_Application_MailType_String_policy",[this.application.group])):(this.verifyAuth=this.authResolver.isAuthorized("vo-verifyApplication_int_policy",[this.application.vo]),this.approveAuth=this.authResolver.isAuthorized("vo-approveApplicationInternal_int_policy",[this.application.vo]),this.rejectAuth=this.authResolver.isAuthorized("vo-rejectApplication_int_String_policy",[this.application.vo]),this.deleteAuth=this.authResolver.isAuthorized("vo-deleteApplication_Application_policy",[this.application.vo]),this.resendAuth=this.authResolver.isAuthorized("vo-sendMessage_Application_MailType_String_policy",[this.application.vo]))}getLabel(e){return null!==e.i18n.en.label&&0!==e.i18n.en.label.length?e.i18n.en.label:e.shortname}submittedBy(){return this.application.createdBy.slice(this.application.createdBy.lastIndexOf("=")+1,this.application.createdBy.length)}getModifiedAtName(e){const o=e.lastIndexOf("/CN=");if(-1!==o){const n=e.slice(o+4,e.length).replace("/unstructuredName="," ");return-1!==n.lastIndexOf("\\")?e.slice(e.lastIndexOf("=")+1,e.length):n}return e}resendNotification(){const e=(0,g.kZ)();e.width="500px",e.data={applicationId:this.application.id,theme:this.dialogTheme,groupId:this.application.group?.id},this.dialog.open(Qi,e)}deleteApplication(){const e=(0,g.kZ)();e.width="450px",e.data={items:[this.application.id],title:"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DELETE_APPLICATION_TITLE",description:"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DELETE_APPLICATION_DESCRIPTION",theme:"vo-theme",type:"remove",showAsk:!0},this.dialog.open(G.Ts,e).afterClosed().subscribe(n=>{n&&this.registrarManager.deleteApplication(this.application.id).subscribe(()=>{this.translate.get("VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DELETE_MESSAGE").subscribe(s=>{this.notificator.showSuccess(s),this.router.navigateByUrl(this.router.url.substring(0,this.router.url.lastIndexOf("/")))})})})}rejectApplication(){const e=(0,g.kZ)();e.width="500px",e.data={applicationId:this.application.id,theme:this.dialogTheme},this.dialog.open(ji,e).afterClosed().subscribe(()=>{this.loading=!0,this.registrarManager.getApplicationById(this.application.id).subscribe(n=>{this.application=n,this.loading=!1},()=>this.loading=!1)})}approveApplication(){this.loading=!0,this.registrarManager.approveApplication(this.application.id).subscribe(()=>{this.translate.get("VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPROVE_MESSAGE").subscribe(e=>{this.notificator.showSuccess(e)}),this.registrarManager.getApplicationById(this.application.id).subscribe(e=>{this.application=e,this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)}verifyApplication(){this.registrarManager.verifyApplication(this.application.id).subscribe(()=>{this.translate.get("VO_DETAIL.APPLICATION.APPLICATION_DETAIL.VERIFY_MESSAGE").subscribe(e=>{this.notificator.showSuccess(e)}),this.loading=!0,this.registrarManager.getApplicationById(this.application.id).subscribe({next:e=>{this.application=e,this.loading=!1},error:()=>this.loading=!1})})}editApplicationData(e){const o=(0,g.kZ)();o.width="600px",o.data={theme:this.dialogTheme,applicationId:this.application.id,formItemData:e},this.dialog.open(eo,o)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.tk),t.Y36(u.uw),t.Y36(m.sK),t.Y36(b.gz),t.Y36(p.V6),t.Y36(b.F0),t.Y36(p.x4),t.Y36(h.Fv))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-application-detail"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:7,vars:6,consts:[[1,"page-subtitle"],["class","text-muted",4,"ngIf"],[1,"mb-4"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"text-muted"],[1,"ml-auto","mr-auto"],["color","accent","class","mr-2","mat-flat-button","",3,"click",4,"ngIf"],["color","warn","class","mr-2","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2 mb-2","mat-stroked-button","",3,"click",4,"ngIf"],[1,"font-weight-bold"],[3,"outerHTML"],["class","card p-3 mt-2",4,"ngIf"],[1,"card","p-4","mt-2"],[1,"material-icons"],["class","w-100","mat-table","",3,"dataSource",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"click"],["mat-stroked-button","",1,"mr-2","mb-2",3,"click"],[1,"align-text-top"],[1,"card","p-3","mt-2"],[1,"material-icons","red"],[1,"material-icons","green"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","label"],["mat-header-cell","",4,"matHeaderCellDef"],["class","font-weight-bold","mat-cell","",4,"matCellDef"],["matColumnDef","value"],["class","word-break-all","mat-cell","",4,"matCellDef"],["class","h-50","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"font-weight-bold"],["mat-cell","",1,"word-break-all"],["aria-label","Edit Application data","mat-icon-button","",3,"click",4,"ngIf"],["aria-label","Edit Application data","mat-icon-button","",3,"click"],["mat-header-row","",1,"h-50"],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"h2",0),t._uU(1),t.ALo(2,"translate"),t.YNc(3,oo,2,1,"span",1),t.qZA(),t._UZ(4,"mat-divider",2),t.YNc(5,no,1,0,"mat-spinner",3),t.YNc(6,No,51,47,"div",4)),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,4,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.TITLE")," "),t.xp6(2),t.Q6J("ngIf",!!o.application),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[_.O5,P.Hw,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.ge,c.ev,c.XQ,c.Gk,I.lW,T.Ou,at.d,U.n5,_.i8,_.uU,m.X$,io.h,B.d]}),i})();var Oo=l(13600),Zo=l(37240);let Do=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-settings"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:1,vars:0,template:function(e,o){1&e&&t._UZ(0,"app-animated-router-outlet")},dependencies:[Y.A],data:{animation:[M.Ji]}}),i})();var O=l(3848),Mt=l(19191);function Mo(i,a){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.hij(" ",t.lcZ(1,1,"GROUP_DETAIL.ENTITY")," ")}function Lo(i,a){if(1&i&&t._UZ(0,"app-one-entity-attribute-page",4),2&i){const e=t.oxw();t.Q6J("entityId",e.group.id)("entity","group")}}function Ro(i,a){1&i&&(t._uU(0),t.ALo(1,"translate"),t.ALo(2,"translate")),2&i&&t.AsE(" ",t.lcZ(1,2,"GROUP_DETAIL.ENTITY")," - ",t.lcZ(2,4,"MEMBER_DETAIL.ENTITY")," ")}function wo(i,a){if(1&i&&t._UZ(0,"app-two-entity-attribute-page",5),2&i){const e=t.oxw(2);t.Q6J("firstEntity","group")("firstEntityId",e.group.id)("secondEntity","member")}}function Go(i,a){1&i&&(t.TgZ(0,"mat-tab"),t.YNc(1,Ro,3,6,"ng-template",1),t.YNc(2,wo,1,3,"ng-template",2),t.qZA())}function Uo(i,a){1&i&&(t._uU(0),t.ALo(1,"translate"),t.ALo(2,"translate")),2&i&&t.AsE(" ",t.lcZ(1,2,"GROUP_DETAIL.ENTITY")," - ",t.lcZ(2,4,"RESOURCE_DETAIL.ENTITY")," ")}function Po(i,a){if(1&i&&t._UZ(0,"app-two-entity-attribute-page",5),2&i){const e=t.oxw(2);t.Q6J("firstEntity","group")("firstEntityId",e.group.id)("secondEntity","resource")}}function yo(i,a){1&i&&(t.TgZ(0,"mat-tab"),t.YNc(1,Uo,3,6,"ng-template",1),t.YNc(2,Po,1,3,"ng-template",2),t.qZA())}let Vo=(()=>{class i{constructor(e,o){this.authResolver=e,this.entityStorageService=o}ngOnInit(){this.group=this.entityStorageService.getEntity(),this.groupResourceAttAuth=this.authResolver.isAuthorized("getResourceAssignments_Group_policy",[this.group]),this.groupMemberAttAuth=this.authResolver.isAuthorized("getCompleteRichMembers_Group_List_List_List_boolean_policy",[this.group])}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.x4),t.Y36(p.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-attributes"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:10,vars:5,consts:[[1,"page-subtitle"],["matTabLabel",""],["matTabContent",""],[4,"ngIf"],[3,"entityId","entity"],[3,"firstEntity","firstEntityId","secondEntity"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-tab-group")(5,"mat-tab"),t.YNc(6,Mo,2,3,"ng-template",1),t.YNc(7,Lo,1,2,"ng-template",2),t.qZA(),t.YNc(8,Go,3,0,"mat-tab",3),t.YNc(9,yo,3,0,"mat-tab",3),t.qZA()()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,3,"GROUP_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),t.xp6(6),t.Q6J("ngIf",o.groupMemberAttAuth),t.xp6(1),t.Q6J("ngIf",o.groupResourceAttAuth))},dependencies:[_.O5,O.SP,O.uD,O.uX,O.Vc,Mt.Y,ot.t,m.X$]}),i})();function Fo(i,a){1&i&&t._UZ(0,"mat-spinner",2)}function Yo(i,a){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"perun-web-apps-menu-buttons-field",3),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("items",e.items)("size","small")}}let Jo=(()=>{class i{constructor(e,o,n,s,r,d,A,v,D){this.sideMenuService=e,this.groupService=o,this.router=n,this.guiAuthResolver=s,this.apiRequest=r,this.attributesManager=d,this.notificator=A,this.entityStorageService=v,this.routePolicyService=D,this.items=[],this.loading=!1}ngOnInit(){this.loading=!0,this.group=this.entityStorageService.getEntity(),this.initItems(),this.loading=!1}initItems(){this.items=[],this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getGroupAttributeByName(this.group.id,S.r.GROUP_DEF_EXPIRATION_RULES).subscribe(()=>{this.items.push({cssIcon:"perun-group",url:`/organizations/${this.group.voId}/groups/${this.group.id}/settings/expiration`,label:"MENU_ITEMS.GROUP.EXPIRATION",style:"group-btn"})},e=>{"PrivilegeException"!==e.name&&this.notificator.showRPCError(e)}),this.routePolicyService.canNavigate("groups-settings-managers",this.group)&&this.items.push({cssIcon:"perun-manager",url:`/organizations/${this.group.voId}/groups/${this.group.id}/settings/managers`,label:"MENU_ITEMS.GROUP.MANAGERS",style:"group-btn"}),"members"!==this.group.name&&this.routePolicyService.canNavigate("groups-settings-applicationForm",this.group)&&this.items.push({cssIcon:"perun-application-form",url:`/organizations/${this.group.voId}/groups/${this.group.id}/settings/applicationForm`,label:"MENU_ITEMS.GROUP.APPLICATION_FORM",style:"group-btn"}),this.routePolicyService.canNavigate("groups-settings-notifications",this.group)&&this.items.push({cssIcon:"perun-notification",url:`/organizations/${this.group.voId}/groups/${this.group.id}/settings/notifications`,label:"MENU_ITEMS.GROUP.NOTIFICATIONS",style:"group-btn"}),this.routePolicyService.canNavigate("groups-settings-relations",this.group)&&this.items.push({cssIcon:"perun-group",url:`/organizations/${this.group.voId}/groups/${this.group.id}/settings/relations`,label:"MENU_ITEMS.GROUP.RELATIONS",style:"group-btn"}),this.routePolicyService.canNavigate("groups-settings-extsources",this.group)&&this.items.push({cssIcon:"perun-external-sources",url:`/organizations/${this.group.voId}/groups/${this.group.id}/settings/extsources`,label:"MENU_ITEMS.GROUP.EXTSOURCES",style:"group-btn"})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(F.D),t.Y36(h.ff),t.Y36(b.F0),t.Y36(p.x4),t.Y36(p.F5),t.Y36(h.H8),t.Y36(p.V6),t.Y36(p.fb),t.Y36(p.Ip))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-settings-overview"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"items","size"]],template:function(e,o){1&e&&(t.YNc(0,Fo,1,0,"mat-spinner",0),t.YNc(1,Yo,2,2,"div",1)),2&e&&(t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[_.O5,T.Ou,J.L]}),i})();var qo=l(10369),ko=l(21963),Qo=l(28820),Bo=l(30076);function Ho(i,a){1&i&&t._UZ(0,"mat-spinner",3)}function jo(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",10),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.switchToInitial())}),t.TgZ(1,"i",11),t._uU(2,"arrow_right_alt"),t.qZA(),t._uU(3),t.ALo(4,"translate"),t.qZA()}2&i&&(t.xp6(3),t.hij(" ",t.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.SWITCH_INITIAL")," "))}function zo(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",10),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.switchToExtension())}),t.TgZ(1,"i",11),t._uU(2,"cached"),t.qZA(),t._uU(3),t.ALo(4,"translate"),t.qZA()}2&i&&(t.xp6(3),t.hij(" ",t.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.SWITCH_EXTENSION")," "))}function $o(i,a){if(1&i&&(t.TgZ(0,"mat-option",12),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"uppercase"),t.qZA()),2&i){const e=a.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",t.lcZ(2,2,t.lcZ(3,4,"SHARED_LIB.LANGUAGES."+e))," ")}}function Xo(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function Ko(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function Wo(i,a){if(1&i&&(t.TgZ(0,"div",16)(1,"div",17)(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18),t._UZ(5,"input",19),t.qZA()(),t.TgZ(6,"div",20),t.YNc(7,Xo,2,1,"mat-icon",21),t.YNc(8,Ko,2,1,"mat-icon",21),t.TgZ(9,"span",22),t._uU(10),t.qZA()()()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(2),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(2),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function tn(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function en(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function on(i,a){if(1&i&&(t.TgZ(0,"div",16)(1,"div",17)(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18),t._UZ(5,"input",24)(6,"br")(7,"input",19),t.qZA()(),t.TgZ(8,"div",20),t.YNc(9,tn,2,1,"mat-icon",21),t.YNc(10,en,2,1,"mat-icon",21),t.TgZ(11,"span",22),t._uU(12),t.qZA()()()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(2),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(2),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(2),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function nn(i,a){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"input",26),t._uU(2),t._UZ(3,"br"),t.qZA()),2&i){const e=a.$implicit,o=t.oxw(3).$implicit;t.xp6(1),t.Q6J("disabled","ALWAYS"===o.disabled),t.xp6(1),t.hij(" ",e,"")}}function an(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function sn(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function rn(i,a){if(1&i&&(t.TgZ(0,"div",16)(1,"div",17)(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"form",18),t.YNc(5,nn,4,2,"div",9),t._UZ(6,"input",25),t.ALo(7,"translate"),t.qZA()(),t.TgZ(8,"div",20),t.YNc(9,an,2,1,"mat-icon",21),t.YNc(10,sn,2,1,"mat-icon",21),t.TgZ(11,"span",22),t._uU(12),t.qZA()()()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(2),t.Q6J("ngForOf",o.getLocalizedOptions(e)),t.xp6(1),t.s9C("value",t.lcZ(7,7,"VO_DETAIL.SETTINGS.APPLICATION_FORM.CLEAR_SELECTION")),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(3),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function ln(i,a){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"span",27),t.qZA()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("innerHTML",o.getLocalizedLabel(e),t.oJD)}}function cn(i,a){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"span",27),t.ALo(2,"sanitizeHtml"),t.qZA()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("innerHTML",t.lcZ(2,1,o.getLocalizedLabel(e)),t.oJD)}}function pn(i,a){if(1&i&&(t.TgZ(0,"option"),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.hij(" ",e," ")}}function un(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function dn(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function _n(i,a){if(1&i&&(t.TgZ(0,"div",16)(1,"div",17)(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18)(5,"select",28),t.YNc(6,pn,2,1,"option",9),t.qZA()()(),t.TgZ(7,"div",20),t.YNc(8,un,2,1,"mat-icon",21),t.YNc(9,dn,2,1,"mat-icon",21),t.TgZ(10,"span",22),t._uU(11),t.qZA()()()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(2),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(1),t.Q6J("ngForOf",o.getLocalizedOptions(e)),t.xp6(2),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function mn(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function gn(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function hn(i,a){if(1&i&&(t.TgZ(0,"div",16)(1,"div",17)(2,"span",18),t._uU(3),t.qZA(),t._UZ(4,"textarea",29),t.qZA(),t.TgZ(5,"div",20),t.YNc(6,mn,2,1,"mat-icon",21),t.YNc(7,gn,2,1,"mat-icon",21),t.TgZ(8,"span",22),t._uU(9),t.qZA()()()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(1),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(2),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function fn(i,a){if(1&i&&(t.TgZ(0,"option",34),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.hij(" ",e," ")}}function An(i,a){1&i&&(t.TgZ(0,"div",35)(1,"form"),t._UZ(2,"input",36),t.qZA()())}function Tn(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function In(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function bn(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",16)(1,"div",17)(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18)(5,"select",30),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw(2).$implicit,r=t.oxw(2);return t.KtG(r.mapForCombobox[s.id]=n)}),t.TgZ(6,"option",31),t._uU(7),t.ALo(8,"translate"),t.qZA(),t.YNc(9,fn,2,1,"option",32),t.qZA(),t.YNc(10,An,3,0,"div",33),t.qZA()(),t.TgZ(11,"div",20),t.YNc(12,Tn,2,1,"mat-icon",21),t.YNc(13,In,2,1,"mat-icon",21),t.TgZ(14,"span",22),t._uU(15),t.qZA()()()}if(2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(2),t.Q6J("ngModel",o.mapForCombobox[e.id])("disabled","ALWAYS"===e.disabled),t.xp6(2),t.hij(" ",t.lcZ(8,9,"VO_DETAIL.SETTINGS.APPLICATION_FORM.OTHER_VALUE")," "),t.xp6(2),t.Q6J("ngForOf",o.getLocalizedOptions(e)),t.xp6(1),t.Q6J("ngIf","true"===o.mapForCombobox[e.id]),t.xp6(2),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function vn(i,a){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"input",37),t._uU(2),t.qZA()),2&i){const e=a.$implicit,o=t.oxw(3).$implicit;t.xp6(1),t.Q6J("disabled","ALWAYS"===o.disabled),t.xp6(1),t.hij(" ",e," ")}}function En(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function Cn(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function Sn(i,a){if(1&i&&(t.TgZ(0,"div",16)(1,"div",17)(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18)(5,"form",35),t.YNc(6,vn,3,2,"div",9),t.qZA()()(),t.TgZ(7,"div",20),t.YNc(8,En,2,1,"mat-icon",21),t.YNc(9,Cn,2,1,"mat-icon",21),t.TgZ(10,"span",22),t._uU(11),t.qZA()()()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(3),t.Q6J("ngForOf",o.getLocalizedOptions(e)),t.xp6(2),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function xn(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function Nn(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function On(i,a){if(1&i&&(t.TgZ(0,"div",16)(1,"div",17)(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18)(5,"form",35),t._UZ(6,"input",37),t._uU(7," example group1 "),t._UZ(8,"br")(9,"input",37),t._uU(10," example group2 "),t._UZ(11,"br")(12,"input",37),t._uU(13," example group3 "),t.qZA()()(),t.TgZ(14,"div",20),t.YNc(15,xn,2,1,"mat-icon",21),t.YNc(16,Nn,2,1,"mat-icon",21),t.TgZ(17,"span",22),t._uU(18),t.qZA()()()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(3),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(3),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(3),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(3),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function Zn(i,a){if(1&i&&(t.TgZ(0,"mat-icon",40),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function Dn(i,a){if(1&i&&(t.TgZ(0,"mat-icon",40),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function Mn(i,a){if(1&i&&(t.TgZ(0,"div",16)(1,"button",38),t._uU(2),t.qZA(),t.YNc(3,Zn,2,1,"mat-icon",39),t.YNc(4,Dn,2,1,"mat-icon",39),t.qZA()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(1),t.hij(" ",o.getLocalizedLabel(e)," "),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden)}}function Ln(i,a){if(1&i&&(t.TgZ(0,"mat-icon",40),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function Rn(i,a){if(1&i&&(t.TgZ(0,"mat-icon",40),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function wn(i,a){if(1&i&&(t.TgZ(0,"div")(1,"button",38),t._uU(2),t.qZA(),t.YNc(3,Ln,2,1,"mat-icon",39),t.YNc(4,Rn,2,1,"mat-icon",39),t.qZA()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(1),t.hij(" ",o.getLocalizedLabel(e)," "),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden)}}function Gn(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function Un(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function Pn(i,a){if(1&i&&(t.TgZ(0,"div",16)(1,"div",17)(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18)(5,"select",41)(6,"option",42),t._uU(7),t.ALo(8,"translate"),t.qZA(),t.TgZ(9,"option",43),t._uU(10,"(GMT -12:00) Eniwetok, Kwajalein"),t.qZA(),t.TgZ(11,"option",44),t._uU(12,"(GMT -11:00) Midway Island, Samoa"),t.qZA(),t.TgZ(13,"option",45),t._uU(14,"(GMT -10:00) Hawaii"),t.qZA(),t.TgZ(15,"option",46),t._uU(16,"(GMT -9:30) Taiohae"),t.qZA(),t.TgZ(17,"option",47),t._uU(18,"(GMT -9:00) Alaska"),t.qZA(),t.TgZ(19,"option",48),t._uU(20,"(GMT -8:00) Pacific Time (US & Canada)"),t.qZA(),t.TgZ(21,"option",49),t._uU(22,"(GMT -7:00) Mountain Time (US & Canada)"),t.qZA(),t.TgZ(23,"option",50),t._uU(24," (GMT -6:00) Central Time (US & Canada), Mexico City "),t.qZA(),t.TgZ(25,"option",51),t._uU(26," (GMT -5:00) Eastern Time (US & Canada), Bogota, Lima "),t.qZA(),t.TgZ(27,"option",52),t._uU(28,"(GMT -4:30) Caracas"),t.qZA(),t.TgZ(29,"option",53),t._uU(30,"(GMT -4:00) Atlantic Time (Canada), Caracas, La Paz"),t.qZA(),t.TgZ(31,"option",54),t._uU(32,"(GMT -3:30) Newfoundland"),t.qZA(),t.TgZ(33,"option",55),t._uU(34,"(GMT -3:00) Brazil, Buenos Aires, Georgetown"),t.qZA(),t.TgZ(35,"option",56),t._uU(36,"(GMT -2:00) Mid-Atlantic"),t.qZA(),t.TgZ(37,"option",57),t._uU(38,"(GMT -1:00) Azores, Cape Verde Islands"),t.qZA(),t.TgZ(39,"option",58),t._uU(40," (GMT) Western Europe Time, London, Lisbon, Casablanca "),t.qZA(),t.TgZ(41,"option",59),t._uU(42,"(GMT +1:00) Brussels, Copenhagen, Madrid, Paris"),t.qZA(),t.TgZ(43,"option",60),t._uU(44,"(GMT +2:00) Kaliningrad, South Africa"),t.qZA(),t.TgZ(45,"option",61),t._uU(46,"(GMT +3:00) Baghdad, Riyadh, Moscow, St. Petersburg"),t.qZA(),t.TgZ(47,"option",62),t._uU(48,"(GMT +3:30) Tehran"),t.qZA(),t.TgZ(49,"option",63),t._uU(50,"(GMT +4:00) Abu Dhabi, Muscat, Baku, Tbilisi"),t.qZA(),t.TgZ(51,"option",64),t._uU(52,"(GMT +4:30) Kabul"),t.qZA(),t.TgZ(53,"option",65),t._uU(54," (GMT +5:00) Ekaterinburg, Islamabad, Karachi, Tashkent "),t.qZA(),t.TgZ(55,"option",66),t._uU(56,"(GMT +5:30) Bombay, Calcutta, Madras, New Delhi"),t.qZA(),t.TgZ(57,"option",67),t._uU(58,"(GMT +5:45) Kathmandu, Pokhara"),t.qZA(),t.TgZ(59,"option",68),t._uU(60,"(GMT +6:00) Almaty, Dhaka, Colombo"),t.qZA(),t.TgZ(61,"option",69),t._uU(62,"(GMT +6:30) Yangon, Mandalay"),t.qZA(),t.TgZ(63,"option",70),t._uU(64,"(GMT +7:00) Bangkok, Hanoi, Jakarta"),t.qZA(),t.TgZ(65,"option",71),t._uU(66,"(GMT +8:00) Beijing, Perth, Singapore, Hong Kong"),t.qZA(),t.TgZ(67,"option",72),t._uU(68,"(GMT +8:45) Eucla"),t.qZA(),t.TgZ(69,"option",73),t._uU(70,"(GMT +9:00) Tokyo, Seoul, Osaka, Sapporo, Yakutsk"),t.qZA(),t.TgZ(71,"option",74),t._uU(72,"(GMT +9:30) Adelaide, Darwin"),t.qZA(),t.TgZ(73,"option",75),t._uU(74,"(GMT +10:00) Eastern Australia, Guam, Vladivostok"),t.qZA(),t.TgZ(75,"option",76),t._uU(76,"(GMT +10:30) Lord Howe Island"),t.qZA(),t.TgZ(77,"option",77),t._uU(78,"(GMT +11:00) Magadan, Solomon Islands, New Caledonia"),t.qZA(),t.TgZ(79,"option",78),t._uU(80,"(GMT +11:30) Norfolk Island"),t.qZA(),t.TgZ(81,"option",79),t._uU(82,"(GMT +12:00) Auckland, Wellington, Fiji, Kamchatka"),t.qZA(),t.TgZ(83,"option",80),t._uU(84,"(GMT +12:45) Chatham Islands"),t.qZA(),t.TgZ(85,"option",81),t._uU(86,"(GMT +13:00) Apia, Nukualofa"),t.qZA(),t.TgZ(87,"option",82),t._uU(88,"(GMT +14:00) Line Islands, Tokelau"),t.qZA()()()(),t.TgZ(89,"div",20),t.YNc(90,Gn,2,1,"mat-icon",21),t.YNc(91,Un,2,1,"mat-icon",21),t.TgZ(92,"span",22),t._uU(93),t.qZA()()()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(2),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(2),t.hij(" ",t.lcZ(8,6,"VO_DETAIL.SETTINGS.APPLICATION_FORM.NOT_SELECTED")," "),t.xp6(83),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function yn(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function Vn(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}const Fn=function(){return["Example 1","Example 2"]},Lt=function(i){return{id:0,beanName:"Attribute",namespace:"",value:i}};function Yn(i,a){if(1&i&&(t.TgZ(0,"div")(1,"div",17)(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18),t._UZ(5,"perun-web-apps-attribute-value-list",83),t.qZA()(),t.TgZ(6,"div",20),t.YNc(7,yn,2,1,"mat-icon",21),t.YNc(8,Vn,2,1,"mat-icon",21),t.TgZ(9,"span",22),t._uU(10),t.qZA()()()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(2),t.Q6J("attribute",t.VKq(6,Lt,t.DdM(5,Fn))),t.xp6(2),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function Jn(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function qn(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}const kn=function(){return{key1:"value 1",key2:"value 2"}};function Qn(i,a){if(1&i&&(t.TgZ(0,"div")(1,"div",17)(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18),t._UZ(5,"perun-web-apps-attribute-value-map",83),t.qZA()(),t.TgZ(6,"div",20),t.YNc(7,Jn,2,1,"mat-icon",21),t.YNc(8,qn,2,1,"mat-icon",21),t.TgZ(9,"span",22),t._uU(10),t.qZA()()()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(2),t.Q6J("attribute",t.VKq(6,Lt,t.DdM(5,kn))),t.xp6(2),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function Bn(i,a){if(1&i&&(t.TgZ(0,"div",14),t.YNc(1,Wo,11,5,"div",15),t.YNc(2,on,13,6,"div",15),t.YNc(3,rn,13,9,"div",15),t.YNc(4,ln,2,1,"div",2),t.YNc(5,cn,3,3,"div",2),t.YNc(6,_n,12,6,"div",15),t.YNc(7,hn,10,5,"div",15),t.YNc(8,bn,16,11,"div",15),t.YNc(9,Sn,12,5,"div",15),t.YNc(10,On,19,7,"div",15),t.YNc(11,Mn,5,4,"div",15),t.YNc(12,wn,5,4,"div",2),t.YNc(13,Pn,94,8,"div",15),t.YNc(14,Yn,11,8,"div",2),t.YNc(15,Qn,11,8,"div",2),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngIf",("TEXTFIELD"===e.type||"VALIDATED_EMAIL"===e.type||"USERNAME"===e.type)&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","PASSWORD"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","RADIO"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","HEADING"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","HTML_COMMENT"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","SELECTIONBOX"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","TEXTAREA"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","COMBOBOX"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","CHECKBOX"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","EMBEDDED_GROUP_APPLICATION"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","SUBMIT_BUTTON"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","AUTO_SUBMIT_BUTTON"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","TIMEZONE"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","LIST_INPUT_BOX"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","MAP_INPUT_BOX"===e.type&&"ALWAYS"!==e.hidden)}}function Hn(i,a){if(1&i&&(t.TgZ(0,"div"),t.YNc(1,Bn,16,15,"div",13),t.qZA()),2&i){const e=a.$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("ngIf",o.isValid(e))}}function jn(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div")(1,"div",4),t.YNc(2,jo,5,3,"button",5),t.YNc(3,zo,5,3,"button",5),t.TgZ(4,"mat-form-field")(5,"mat-label"),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"mat-select",6),t.NdJ("valueChange",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.currentLanguage=n)}),t.YNc(9,$o,4,6,"mat-option",7),t.qZA()()(),t.TgZ(10,"div",8),t.YNc(11,Hn,2,1,"div",9),t.qZA()()}if(2&i){const e=t.oxw();t.xp6(2),t.Q6J("ngIf",!e.initialPage),t.xp6(1),t.Q6J("ngIf",e.initialPage),t.xp6(3),t.Oqu(t.lcZ(7,6,"DIALOGS.PASSWORD_RESET_REQUEST.LANGUAGE")),t.xp6(2),t.Q6J("value",e.currentLanguage),t.xp6(1),t.Q6J("ngForOf",e.languages),t.xp6(2),t.Q6J("ngForOf",e.applicationFormItems)}}let Rt=(()=>{class i{constructor(e,o,n){this.route=e,this.translate=o,this.store=n,this.loading=!0,this.applicationFormItems=[],this.currentLanguage="en",this.languages=["en"],this.initialPage=!0,this.mapForCombobox=new Map}ngOnInit(){this.languages=this.store.getProperty("supported_languages"),this.route.queryParamMap.subscribe(e=>{this.applicationFormItems=JSON.parse(e.get("applicationFormItems")),this.loading=!1})}switchToInitial(){this.initialPage=!0}switchToExtension(){this.initialPage=!1}getLocalizedOptions(e){if(e.i18n[this.currentLanguage]){const o=e.i18n[this.currentLanguage].options;if(null!==o&&""!==o){const n=[];for(const s of o.split("|"))n.push(s.split("#")[1]);return n}}return[]}isValid(e){if(e.forDelete)return!1;for(const o of e.applicationTypes)if("INITIAL"===o&&this.initialPage||"EXTENSION"===o&&!this.initialPage)return!0;return!1}disabledTooltip(e){let o,n,s;switch(e.disabled){case"ALWAYS":return this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.ALWAYS_DISABLED");case"IF_PREFILLED":return o=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.DISABLED_WHEN"),n=null===e.hiddenDependencyItemId?"":this.applicationFormItems.find(r=>r.id===e.disabledDependencyItemId).shortname,s=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.IS_PREFILLED"),`${o} ${n} ${s}`;case"IF_EMPTY":return o=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.DISABLED_WHEN"),n=null===e.hiddenDependencyItemId?"":this.applicationFormItems.find(r=>r.id===e.disabledDependencyItemId).shortname,s=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.IS_EMPTY"),`${o} ${n} ${s}`;default:return""}}hiddenTooltip(e){let o,n,s;switch(e.hidden){case"ALWAYS":return this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.ALWAYS_HIDDEN");case"IF_PREFILLED":return o=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.HIDDEN_WHEN"),n=null===e.hiddenDependencyItemId?"":this.applicationFormItems.find(r=>r.id===e.hiddenDependencyItemId).shortname,s=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.IS_PREFILLED"),`${o} ${n} ${s}`;case"IF_EMPTY":return o=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.HIDDEN_WHEN"),n=null===e.hiddenDependencyItemId?"":this.applicationFormItems.find(r=>r.id===e.hiddenDependencyItemId).shortname,s=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.IS_EMPTY"),`${o} ${n} ${s}`;default:return""}}getLocalizedLabel(e){return e.i18n[this.currentLanguage]?.label?e.i18n[this.currentLanguage].label+(e.required?"*":""):e.shortname+(e.required?"*":"")}getLocalizedHint(e){return e.i18n[this.currentLanguage]?e.i18n[this.currentLanguage].help:""}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(b.gz),t.Y36(m.sK),t.Y36(p.d6))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-application-form-preview"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:5,vars:5,consts:[[1,"page-subtitle"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"w-100","mb-2"],["class","mr-2","mat-stroked-button","",3,"click",4,"ngIf"],[3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[1,"card","mb-4","p-5"],[4,"ngFor","ngForOf"],["mat-stroked-button","",1,"mr-2",3,"click"],[1,"material-icons"],[3,"value"],["class","mb-2",4,"ngIf"],[1,"mb-2"],["class","d-flex",4,"ngIf"],[1,"d-flex"],[1,"w-50","d-flex"],[1,"w-50"],["type","text",1,"w-100",3,"disabled"],[1,"w-50","d-flex","left"],["class","pointer",3,"matTooltip",4,"ngIf"],[1,"ml-2"],[1,"pointer",3,"matTooltip"],["type","text",1,"mb-1","w-100",3,"disabled"],["type","reset",3,"disabled","value"],["name","temp","type","radio",3,"disabled"],[3,"innerHTML"],[1,"w-100",3,"disabled"],[1,"w-50",3,"disabled"],[1,"w-100",3,"ngModel","disabled","ngModelChange"],["selected","","value","true"],["value","false",4,"ngFor","ngForOf"],["class","w-100",4,"ngIf"],["value","false"],[1,"w-100"],["type","text"],["type","checkbox",3,"disabled"],["color","accent","mat-flat-button","",3,"disabled"],["class","pointer left",3,"matTooltip",4,"ngIf"],[1,"pointer","left",3,"matTooltip"],["id","timezone-offset","name","timezone_offset",1,"w-100",3,"disabled"],["selected","selected","value","-12:00"],["value","-12:00"],["value","-11:00"],["value","-10:00"],["value","-09:50"],["value","-09:00"],["value","-08:00"],["value","-07:00"],["value","-06:00"],["value","-05:00"],["value","-04:50"],["value","-04:00"],["value","-03:50"],["value","-03:00"],["value","-02:00"],["value","-01:00"],["value","+00:00"],["value","+01:00"],["value","+02:00"],["value","+03:00"],["value","+03:50"],["value","+04:00"],["value","+04:50"],["value","+05:00"],["value","+05:50"],["value","+05:75"],["value","+06:00"],["value","+06:50"],["value","+07:00"],["value","+08:00"],["value","+08:75"],["value","+09:00"],["value","+09:50"],["value","+10:00"],["value","+10:50"],["value","+11:00"],["value","+11:50"],["value","+12:00"],["value","+12:75"],["value","+13:00"],["value","+14:00"],[3,"attribute"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.YNc(3,Ho,1,0,"mat-spinner",1),t.YNc(4,jn,12,8,"div",2)),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,3,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.TITLE"),"\n"),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[_.sg,_.O5,H.ey,x.KE,x.hX,f._Y,f.YN,f.Kr,f.EJ,f.JJ,f.JL,f.On,f.F,P.Hw,I.lW,z.gD,T.Ou,N.gM,ko.H,Qo.$,_.gd,m.X$,Bo.A],styles:[".left[_ngcontent-%COMP%]{margin-left:10px}.pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),i})();function zn(i,a){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.hij(" ",t.lcZ(1,1,"MEMBER_DETAIL.ENTITY")," ")}function $n(i,a){if(1&i&&t._UZ(0,"app-one-entity-attribute-page",5),2&i){const e=t.oxw();t.Q6J("entityId",e.memberId)("entity","member")}}function Xn(i,a){1&i&&(t._uU(0),t.ALo(1,"translate"),t.ALo(2,"translate")),2&i&&t.AsE(" ",t.lcZ(1,2,"MEMBER_DETAIL.ENTITY")," - ",t.lcZ(2,4,"GROUP_DETAIL.ENTITY")," ")}function Kn(i,a){if(1&i&&t._UZ(0,"app-two-entity-attribute-page",6),2&i){const e=t.oxw(2);t.Q6J("firstEntity","member")("firstEntityId",e.memberId)("secondEntity","group")}}function Wn(i,a){1&i&&(t.TgZ(0,"mat-tab"),t.YNc(1,Xn,3,6,"ng-template",1),t.YNc(2,Kn,1,3,"ng-template",2),t.qZA())}function ta(i,a){1&i&&(t._uU(0),t.ALo(1,"translate"),t.ALo(2,"translate")),2&i&&t.AsE(" ",t.lcZ(1,2,"MEMBER_DETAIL.ENTITY")," - ",t.lcZ(2,4,"RESOURCE_DETAIL.ENTITY")," ")}function ea(i,a){if(1&i&&t._UZ(0,"app-two-entity-attribute-page",6),2&i){const e=t.oxw(2);t.Q6J("firstEntity","member")("firstEntityId",e.memberId)("secondEntity","resource")}}function ia(i,a){1&i&&(t.TgZ(0,"mat-tab"),t.YNc(1,ta,3,6,"ng-template",1),t.YNc(2,ea,1,3,"ng-template",2),t.qZA())}function oa(i,a){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.hij(" ",t.lcZ(1,1,"ADMIN_USER.ENTITY")," ")}function na(i,a){if(1&i&&t._UZ(0,"app-one-entity-attribute-page",5),2&i){const e=t.oxw();t.Q6J("entityId",e.member.userId)("entity","user")}}function aa(i,a){1&i&&(t._uU(0),t.ALo(1,"translate"),t.ALo(2,"translate")),2&i&&t.AsE(" ",t.lcZ(1,2,"ADMIN_USER.ENTITY")," - ",t.lcZ(2,4,"FACILITY_DETAIL.ENTITY")," ")}function sa(i,a){if(1&i&&t._UZ(0,"app-two-entity-attribute-page",6),2&i){const e=t.oxw(2);t.Q6J("firstEntity","user")("firstEntityId",e.member.userId)("secondEntity","facility")}}function ra(i,a){1&i&&(t.TgZ(0,"mat-tab"),t.YNc(1,aa,3,6,"ng-template",1),t.YNc(2,sa,1,3,"ng-template",2),t.qZA())}let la=(()=>{class i{constructor(e,o,n){this.route=e,this.authResolver=o,this.memberManager=n}ngOnInit(){this.route.parent.params.subscribe(e=>{this.memberId=Number(e.memberId),this.memberManager.getMemberById(this.memberId).subscribe(o=>{this.member=o,this.memberGroupAttAuth=this.authResolver.isAuthorized("getMemberGroups_Member_policy",[this.member]),this.memberResourceAttAuth=this.authResolver.isAuthorized("getAssignedResourcesWithStatus_Member_policy",[this.member]),this.userFacilityAttAuth=this.authResolver.isAuthorized("getAssignedFacilities_User_policy",[{beanName:"User",id:o.userId}])})})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(b.gz),t.Y36(p.x4),t.Y36(h.uq))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-member-attributes"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:14,vars:6,consts:[[1,"page-subtitle"],["matTabLabel",""],["matTabContent",""],[4,"ngIf"],[1,"mb-2"],[3,"entityId","entity"],[3,"firstEntity","firstEntityId","secondEntity"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-tab-group")(5,"mat-tab"),t.YNc(6,zn,2,3,"ng-template",1),t.YNc(7,$n,1,2,"ng-template",2),t.qZA(),t.YNc(8,Wn,3,0,"mat-tab",3),t.YNc(9,ia,3,0,"mat-tab",3),t.TgZ(10,"mat-tab",4),t.YNc(11,oa,2,3,"ng-template",1),t.YNc(12,na,1,2,"ng-template",2),t.qZA(),t.YNc(13,ra,3,0,"mat-tab",3),t.qZA()()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,4,"MEMBER_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),t.xp6(6),t.Q6J("ngIf",o.memberGroupAttAuth),t.xp6(1),t.Q6J("ngIf",o.memberResourceAttAuth),t.xp6(4),t.Q6J("ngIf",o.userFacilityAttAuth))},dependencies:[_.O5,O.SP,O.uD,O.uX,O.Vc,Mt.Y,ot.t,m.X$]}),i})(),ca=(()=>{class i{constructor(e,o,n,s,r){this.sideMenuService=e,this.voService=o,this.authResolver=n,this.entityStorageService=s,this.routePolicyService=r,this.items=[]}ngOnInit(){this.vo=this.entityStorageService.getEntity(),this.initItems()}initItems(){this.routePolicyService.canNavigate("organizations-resources-preview",this.vo)&&this.items.push({cssIcon:"perun-resource",url:`/organizations/${this.vo.id}/resources/preview`,label:"MENU_ITEMS.VO.RESOURCE_PREVIEW",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-resources-tags",this.vo)&&this.items.push({cssIcon:"perun-resource-tags",url:`/organizations/${this.vo.id}/resources/tags`,label:"MENU_ITEMS.VO.RESOURCE_TAGS",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-resources-states",this.vo)&&this.items.push({cssIcon:"perun-resources-state",url:`/organizations/${this.vo.id}/resources/states`,label:"MENU_ITEMS.VO.RESOURCE_STATES",style:"vo-btn"})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(F.D),t.Y36(h.YF),t.Y36(p.x4),t.Y36(p.fb),t.Y36(p.Ip))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-resources-overview"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:2,vars:2,consts:[[3,"items","size"]],template:function(e,o){1&e&&(t.TgZ(0,"div"),t._UZ(1,"perun-web-apps-menu-buttons-field",0),t.qZA()),2&e&&(t.xp6(1),t.Q6J("items",o.items)("size","small"))},dependencies:[J.L]}),i})();var pa=l(68056),ua=l(24219),E=l(95017),da=l(17584);function _a(i,a){1&i&&t._UZ(0,"mat-spinner",6)}function ma(i,a){1&i&&t._UZ(0,"th",15)}function ga(i,a){if(1&i&&(t.TgZ(0,"td",16),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Oqu(e.tagName)}}function ha(i,a){1&i&&t._UZ(0,"tr",17)}function fa(i,a){1&i&&t._UZ(0,"tr",18)}function Aa(i,a){if(1&i&&(t.TgZ(0,"div",7)(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",8),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",9),t.ynx(8,10),t.YNc(9,ma,1,0,"th",11),t.YNc(10,ga,2,1,"td",12),t.BQk(),t.YNc(11,ha,1,0,"tr",13),t.YNc(12,fa,1,0,"tr",14),t.qZA()()),2&i){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,5,"DIALOGS.DELETE_RESOURCE_TAG.DESCRIPTION")," "),t.xp6(3),t.hij(" ",t.lcZ(6,7,"DIALOGS.DELETE_RESOURCE_TAG.ASK")," "),t.xp6(2),t.Q6J("dataSource",e.dataSource),t.xp6(4),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}let Ta=(()=>{class i{constructor(e,o,n){this.dialogRef=e,this.data=o,this.resourceManager=n,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new c.by(this.data.tagsForDelete)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;for(const e of this.data.tagsForDelete)this.resourceManager.deleteResourceTag({resourceTag:e}).subscribe(()=>{this.dialogRef.close(!0)},()=>this.dialogRef.close(!0))}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(h.xk))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-delete-resource-tag-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,_a,1,0,"mat-spinner",1),t.YNc(5,Aa,13,9,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return o.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return o.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.DELETE_RESOURCE_TAG.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.DELETE_RESOURCE_TAG.CANCEL")," "),t.xp6(2),t.Q6J("disabled",o.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.DELETE_RESOURCE_TAG.SUBMIT")," "))},dependencies:[_.O5,I.lW,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.ge,c.ev,c.XQ,c.Gk,u.uh,u.xY,u.H8,T.Ou,m.X$]}),i})();var C=l(10036),Ia=l(17672),Z=l(96214),L=l(7434);function ba(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.create())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.CREATE_BUTTON"),"\n"))}function va(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.deleteTag())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"VO_DETAIL.RESOURCES.TAGS.DELETE_BUTTON"),"\n")}}function Ea(i,a){1&i&&t._UZ(0,"mat-spinner",9)}function Ca(i,a){if(1&i&&t._UZ(0,"app-resources-tags-list",10),2&i){const e=t.oxw();t.Q6J("displayedColumns",e.displayedColumns)("entity","vo")("resourceTags",e.resourceTag)("filterValue",e.filterValue)("selection",e.selection)("tableId",e.tableId)}}let Sa=(()=>{class i{constructor(e,o,n,s,r,d){this.resourceManager=e,this.dialog=o,this.notificator=n,this.translator=s,this.authResolver=r,this.entityStorageService=d,this.loading=!1,this.resourceTag=[],this.selection=new E.Ov(!0,[]),this.tableId=C.O7,this.displayedColumns=[]}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.setAuthRights(),this.updateData()}deleteTag(){const e=(0,g.kZ)();e.width="450px",e.data={tagsForDelete:this.selection.selected,theme:"vo-theme"},this.dialog.open(Ta,e).afterClosed().subscribe(n=>{n&&(this.translator.get("VO_DETAIL.RESOURCES.TAGS.DELETE_SUCCESS").subscribe(s=>{this.notificator.showSuccess(s)}),this.updateData())})}create(){const e=(0,g.kZ)();e.width="450px",e.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(da.p,e).afterClosed().subscribe(n=>{n&&(this.translator.get("VO_DETAIL.RESOURCES.TAGS.CREATE_SUCCESS").subscribe(s=>{this.notificator.showSuccess(s)}),this.updateData())})}updateData(){this.loading=!0,this.selection.clear(),this.resourceManager.getAllResourcesTagsForVo(this.vo.id).subscribe(e=>{this.resourceTag=e,this.selection.clear(),this.setAuthRights(),this.loading=!1})}applyFilter(e){this.filterValue=e}setAuthRights(){this.displayedColumns=[],this.createAuth=this.authResolver.isAuthorized("createResourceTag_ResourceTag_Vo_policy",[this.vo]),this.deleteAuth=this.authResolver.isAuthorized("deleteResourceTag_ResourceTag_policy",[this.vo]),this.editAuth=this.authResolver.isAuthorized("updateResourceTag_ResourceTag_policy",[this.vo]),this.displayedColumns=this.deleteAuth?["select","id","name"]:["id","name"],this.editAuth&&this.displayedColumns.push("edit")}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.xk),t.Y36(u.uw),t.Y36(p.V6),t.Y36(m.sK),t.Y36(p.x4),t.Y36(p.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-resources-tags"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:9,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"displayedColumns","entity","resourceTags","filterValue","selection","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","entity","resourceTags","filterValue","selection","tableId"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return o.updateData()}),t.qZA(),t.YNc(4,ba,3,3,"button",2),t.YNc(5,va,3,4,"button",3),t.TgZ(6,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(s){return o.applyFilter(s)}),t.qZA(),t.YNc(7,Ea,1,0,"mat-spinner",5),t.YNc(8,Ca,1,6,"app-resources-tags-list",6)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"VO_DETAIL.RESOURCES.TAGS.TITLE")),t.xp6(3),t.Q6J("ngIf",o.createAuth),t.xp6(1),t.Q6J("ngIf",o.deleteAuth),t.xp6(1),t.Q6J("placeholder","VO_DETAIL.RESOURCES.TAGS.SEARCH"),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[_.O5,I.lW,T.Ou,Ia.o,Z.t,L.L,m.X$]}),i})();function xa(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"app-expiration-settings",1),t.NdJ("saveAttribute",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.saveExpirationAttribute(n))}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("expirationAttribute",e.expirationAttribute)}}let Na=(()=>{class i{constructor(e,o,n,s,r){this.attributesManager=e,this.translate=o,this.notificator=n,this.apiRequest=s,this.entityStorageService=r,this.translate.get("GROUP_DETAIL.SETTINGS.EXPIRATION.SUCCESS_MESSAGE").subscribe(d=>this.successMessage=d),this.translate.get("GROUP_DETAIL.SETTINGS.EXPIRATION.ERROR_MESSAGE").subscribe(d=>this.errorMessage=d)}ngOnInit(){this.group=this.entityStorageService.getEntity(),this.loadSettings()}saveExpirationAttribute(e){this.apiRequest.dontHandleErrorForNext(),this.attributesManager.setGroupAttribute({group:this.group.id,attribute:e}).subscribe({next:()=>{this.loadSettings(),this.notificator.showSuccess(this.successMessage)},error:o=>this.notificator.showRPCError(o,this.errorMessage)})}loadSettings(){this.attributesManager.getGroupAttributeByName(this.group.id,S.r.GROUP_DEF_EXPIRATION_RULES).subscribe(e=>{this.expirationAttribute=e})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.H8),t.Y36(m.sK),t.Y36(p.V6),t.Y36(p.F5),t.Y36(p.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-settings-expiration"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:1,vars:1,consts:[[3,"expirationAttribute","saveAttribute",4,"ngIf"],[3,"expirationAttribute","saveAttribute"]],template:function(e,o){1&e&&t.YNc(0,xa,1,1,"app-expiration-settings",0),2&e&&t.Q6J("ngIf",void 0!==o.expirationAttribute)},dependencies:[_.O5,Zt]}),i})(),Oa=(()=>{class i{constructor(e,o){this.guiAuthResolver=e,this.entityStorageService=o,this.availableRoles=[],this.selected="user",this.type="Group",this.theme="group-theme"}ngOnInit(){this.group=this.entityStorageService.getEntity(),this.guiAuthResolver.assignAvailableRoles(this.availableRoles,"Group")}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.x4),t.Y36(p.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-settings-managers"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:1,vars:4,consts:[[3,"complementaryObject","availableRoles","complementaryObjectType","theme"]],template:function(e,o){1&e&&t._UZ(0,"app-managers-page",0),2&e&&t.Q6J("complementaryObject",o.group)("availableRoles",o.availableRoles)("complementaryObjectType",o.type)("theme",o.theme)},dependencies:[Dt.s]}),i})();function Za(i,a){1&i&&t._UZ(0,"mat-spinner",6)}function Da(i,a){1&i&&t._UZ(0,"th",15)}function Ma(i,a){if(1&i&&(t.TgZ(0,"td",16),t._uU(1),t.qZA()),2&i){const e=a.$implicit,o=t.oxw(2);t.xp6(1),t.Oqu(o.getMailType(e))}}function La(i,a){1&i&&t._UZ(0,"tr",17)}function Ra(i,a){1&i&&t._UZ(0,"tr",18)}function wa(i,a){if(1&i&&(t.TgZ(0,"div",7)(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",8),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",9),t.ynx(8,10),t.YNc(9,Da,1,0,"th",11),t.YNc(10,Ma,2,1,"td",12),t.BQk(),t.YNc(11,La,1,0,"tr",13),t.YNc(12,Ra,1,0,"tr",14),t.qZA()()),2&i){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,5,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.DESCRIPTION")," "),t.xp6(3),t.hij(" ",t.lcZ(6,7,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.CONFIRMATION")," "),t.xp6(2),t.Q6J("dataSource",e.dataSource),t.xp6(4),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}let wt=(()=>{class i{constructor(e,o,n,s,r){this.dialogRef=e,this.data=o,this.notificator=n,this.translate=s,this.registrarService=r,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new c.by(this.data.mails)}onCancel(){this.dialogRef.close(!1)}onSubmit(){if(this.loading=!0,this.data.groupId)for(const e of this.data.mails)this.registrarService.deleteApplicationMailForGroup(this.data.groupId,e.id).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1);else for(const e of this.data.mails)this.registrarService.deleteApplicationMailForVo(this.data.voId,e.id).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1)}getMailType(e){let o="";return null==e.mailType||0===e.mailType.length?o="":this.translate.get("VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_"+e.mailType).subscribe(n=>{o=n}),o}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(p.V6),t.Y36(m.sK),t.Y36(h.tk))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-delete-notification-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Za,1,0,"mat-spinner",1),t.YNc(5,wa,13,9,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return o.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return o.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.CANCEL")," "),t.xp6(2),t.Q6J("disabled",o.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.SUBMIT")," "))},dependencies:[_.O5,I.lW,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.ge,c.ev,c.XQ,c.Gk,u.uh,u.xY,u.H8,T.Ou,m.X$]}),i})();var R=l(98380);function Ga(i,a){1&i&&t._UZ(0,"mat-spinner",7)}function Ua(i,a){1&i&&(t.TgZ(0,"perun-web-apps-alert",13),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.FORMAT_HTML_NOT_AUTHORIZED")," "))}const Pa=function(i){return{"disabled-label":i}};function ya(i,a){if(1&i&&(t.TgZ(0,"span",18),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"uppercase"),t.qZA()),2&i){const e=t.oxw().$implicit,o=t.oxw(2);t.Q6J("ngClass",t.VKq(6,Pa,"html"===e&&!o.htmlEditAuth)),t.xp6(1),t.hij(" ",t.lcZ(2,2,t.lcZ(3,4,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.FORMAT_"+e))," ")}}function Va(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"textarea",19),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw(3);return t.KtG(s.mailFooter=n)}),t._uU(1," "),t.qZA()}if(2&i){const e=t.oxw(3);t.Q6J("ngModel",e.mailFooter)}}function Fa(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"textarea",19),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw(3);return t.KtG(s.htmlMailFooter=n)}),t._uU(1," "),t.qZA()}if(2&i){const e=t.oxw(3);t.Q6J("ngModel",e.htmlMailFooter)}}function Ya(i,a){if(1&i&&(t.TgZ(0,"mat-tab",14),t.YNc(1,ya,4,8,"ng-template",15),t.TgZ(2,"mat-form-field",16),t.YNc(3,Va,2,1,"textarea",17),t.YNc(4,Fa,2,1,"textarea",17),t.qZA()()),2&i){const e=a.$implicit,o=t.oxw(2);t.Q6J("disabled","html"===e&&!o.htmlEditAuth),t.xp6(3),t.Q6J("ngIf","plain_text"===e),t.xp6(1),t.Q6J("ngIf","html"===e)}}function Ja(i,a){if(1&i&&(t.TgZ(0,"div",8),t.YNc(1,Ua,3,3,"perun-web-apps-alert",9),t.TgZ(2,"mat-tab-group",10),t.YNc(3,Ya,5,3,"mat-tab",11),t.qZA(),t.TgZ(4,"div",12),t._uU(5),t.ALo(6,"translate"),t.qZA()()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",e.plainEdithAuth&&!e.htmlEditAuth),t.xp6(2),t.Q6J("ngForOf",e.formats),t.xp6(2),t.hij(" ",t.lcZ(6,3,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.DESCRIPTION")," ")}}let Gt=(()=>{class i{constructor(e,o,n,s,r){this.dialogRef=e,this.attributesManager=o,this.translateService=n,this.notificator=s,this.data=r,this.mailFooter="",this.htmlMailFooter="",this.loading=!1,this.formats=["plain_text","html"]}ngOnInit(){this.theme=this.data.theme,this.loading=!0,this.data.groupId?this.getFooterForGroup():this.getFooterForVo(),this.loading=!1}submit(){this.loading=!0,this.mailAttribute.value=this.mailFooter,this.htmlMailAttribute.value=this.htmlMailFooter,this.data.groupId?this.attributesManager.setGroupAttribute({group:this.data.groupId,attribute:this.mailAttribute}).subscribe({next:()=>{this.htmlEditAuth&&this.attributesManager.setGroupAttribute({group:this.data.groupId,attribute:this.htmlMailAttribute}).subscribe({next:()=>{this.notificationSuccess(),this.dialogRef.close()},error:()=>this.loading=!1})},error:()=>this.loading=!1}):this.attributesManager.setVoAttribute({vo:this.data.voId,attribute:this.mailAttribute}).subscribe({next:()=>{this.htmlEditAuth&&this.attributesManager.setVoAttribute({vo:this.data.voId,attribute:this.htmlMailAttribute}).subscribe({next:()=>{this.notificationSuccess(),this.dialogRef.close()},error:()=>this.loading=!1})},error:()=>this.loading=!1})}cancel(){this.dialogRef.close()}getFooterForVo(){this.attributesManager.getVoAttributeByName(this.data.voId,S.r.VO_DEF_MAIL_FOOTER).subscribe(e=>{this.mailAttribute=e,this.plainEdithAuth=this.mailAttribute.writable,this.mailFooter=e.value?e.value:""}),this.attributesManager.getVoAttributeByName(this.data.voId,S.r.VO_DEF_MAIL_HTML_FOOTER).subscribe(e=>{this.htmlMailAttribute=e,this.htmlEditAuth=this.htmlMailAttribute.writable,this.htmlMailFooter=e.value?e.value:""})}getFooterForGroup(){this.attributesManager.getGroupAttributeByName(this.data.groupId,S.r.GROUP_DEF_MAIL_FOOTER).subscribe(e=>{this.mailAttribute=e,this.plainEdithAuth=this.mailAttribute.writable,this.mailFooter=e.value?e.value:""}),this.attributesManager.getGroupAttributeByName(this.data.groupId,S.r.GROUP_DEF_MAIL_HTML_FOOTER).subscribe(e=>{this.htmlMailAttribute=e,this.htmlEditAuth=this.htmlMailAttribute.writable,this.htmlMailFooter=e.value?e.value:""})}notificationSuccess(){this.translateService.get("DIALOGS.NOTIFICATIONS_EDIT_FOOTER.SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.dialogRef.close()})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(h.H8),t.Y36(m.sK),t.Y36(p.V6),t.Y36(u.WI))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-edit-email-footer-dialog"]],decls:15,vars:20,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],[3,"matTooltipDisabled","matTooltipPosition","matTooltip"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["alert_type","info",4,"ngIf"],["color","primary"],[3,"disabled",4,"ngFor","ngForOf"],[1,"mt-2","font-italic","text-muted"],["alert_type","info"],[3,"disabled"],["mat-tab-label",""],[1,"w-100"],["matInput","","rows","5",3,"ngModel","ngModelChange",4,"ngIf"],[3,"ngClass"],["matInput","","rows","5",3,"ngModel","ngModelChange"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Ga,1,0,"mat-spinner",1),t.YNc(5,Ja,7,5,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return o.cancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"div",5),t.ALo(11,"translate"),t.TgZ(12,"button",6),t.NdJ("click",function(){return o.submit()}),t._uU(13),t.ALo(14,"translate"),t.qZA()()()()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,12,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(9,14,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.CANCEL_BUTTON")," "),t.xp6(2),t.s9C("matTooltip",t.lcZ(11,16,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.HINT")),t.Q6J("matTooltipDisabled",o.plainEdithAuth)("matTooltipPosition","above"),t.xp6(2),t.Q6J("disabled",o.loading||!o.plainEdithAuth),t.xp6(1),t.hij(" ",t.lcZ(14,18,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.SUBMIT_BUTTON")," "))},dependencies:[_.mk,_.sg,_.O5,x.KE,y.Nt,f.Fj,f.JJ,f.On,I.lW,O.SP,O.uD,O.uX,u.uh,u.xY,u.H8,T.Ou,N.gM,R.w,_.gd,m.X$],styles:[".disabled-label[_ngcontent-%COMP%]{color:#00000061!important}"]}),i})();var qa=l(67376);function ka(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div")(1,"div",1)(2,"button",2),t.NdJ("click",function(){const s=t.CHM(e).$implicit,r=t.oxw();return t.KtG(r.addTag("{"+s[0]+"}"))}),t.ALo(3,"translate"),t._uU(4),t.qZA(),t.TgZ(5,"span",3),t._uU(6),t.ALo(7,"translate"),t.qZA()(),t._UZ(8,"mat-divider",4),t.qZA()}if(2&i){const e=a.$implicit;t.xp6(2),t.s9C("matTooltip",t.lcZ(3,3,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TAG_HINT")),t.xp6(2),t.hij(" ",e[0]," "),t.xp6(2),t.hij(" ",t.lcZ(7,5,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL."+e[1])," ")}}let Qa=(()=>{class i{constructor(){this.tags=[],this.addedTag=new t.vpe}addTag(e){this.addedTag.emit(e)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-tag-section"]],inputs:{tags:"tags"},outputs:{addedTag:"addedTag"},decls:1,vars:1,consts:[[4,"ngFor","ngForOf"],[1,"d-flex","flex-row"],["mat-flat-button","","matTooltipPosition","above",1,"tag-text","w-25",3,"matTooltip","click"],[1,"w-75"],[1,"mt-1","mb-1"]],template:function(e,o){1&e&&t.YNc(0,ka,9,7,"div",0),2&e&&t.Q6J("ngForOf",o.tags)},dependencies:[_.sg,I.lW,N.gM,at.d,m.X$],styles:[".tag-text[_ngcontent-%COMP%]{font-size:.9rem;font-weight:700}"]}),i})(),Ba=(()=>{class i{constructor(){this.addedTag=new t.vpe,this.applicationRelatedTags=[],this.userRelatedTags=[],this.validationLinksUsersTags=[],this.applicationLinksUsersTags=[],this.applicationLinksAdministratorsTags=[],this.perunLinksAdministratorsTags=[],this.userInvitationsTags=[]}ngOnInit(){this.getApplicationRelatedTags(),this.getUserRelatedTags(),this.getValidationLinksUsersTags(),this.getApplicationLinksUsersTags(),this.getApplicationLinksAdministratorsTags(),this.getPerunLinksAdministratorsTags(),this.getUserInvitationsTags()}getApplicationRelatedTags(){const e=[];e.push(["appId","APPID_DESCRIPTION"]),e.push(["actor","ACTOR_DESCRIPTION"]),e.push(["extSource","EXTSOURCE_DESCRIPTION"]),e.push(["voName","VONAME_DESCRIPTION"]),e.push(["groupName","GROUPNAME_DESCRIPTION"]),e.push(["mailFooter","MAILFOOTER_DESCRIPTION"]),e.push(["htmlMailFooter","HTMLMAILFOOTER_DESCRIPTION"]),e.push(["errors","ERRORS_DESCRIPTION"]),e.push(["customMessage","CUSTOMMESSAGE_DESCRIPTION"]),e.push(["fromApp-itemName","FROMAPPITEMNAME_DESCRIPTION"]),this.applicationRelatedTags=e}getUserRelatedTags(){const e=[];e.push(["firstName","FIRSTNAME_DESCRIPTION"]),e.push(["lastName","LASTNAME_DESCRIPTION"]),e.push(["displayName","DISPLAYNAME_DESCRIPTION"]),e.push(["mail","MAIL_DESCRIPTION"]),e.push(["phone","PHONE_DESCRIPTION"]),e.push(["login-namespace","LOGINNAMESPACE_DESCRIPTION"]),e.push(["membershipExpiration","MEMBERSHIPEXPIRATION_DESCRIPTION"]),this.userRelatedTags=e}getValidationLinksUsersTags(){const e=[];e.push(["validationLink","VALIDATIONLINK_DESCRIPTION"]),e.push(["validationLink-krb","VALIDATIONKRB_DESCRIPTION"]),e.push(["validationLink-fed","VALIDATIONFED_DESCRIPTION"]),e.push(["validationLink-cert","VALIDATIONCERT_DESCRIPTION"]),e.push(["validationLink-non","VALIDATIONNON_DESCRIPTION"]),e.push(["redirectUrl","REDIRECTURL_DESCRIPTION"]),this.validationLinksUsersTags=e}getApplicationLinksUsersTags(){const e=[];e.push(["appGuiUrl","APPGUIURL_DESCRIPTION"]),e.push(["appGuiUrl-krb","APPGUIURLKRB_DESCRIPTION"]),e.push(["appGuiUrl-fed","APPGUIURLFED_DESCRIPTION"]),e.push(["appGuiUrl-cert","APPGUIURLCERT_DESCRIPTION"]),e.push(["appGuiUrl-non","APPGUIURLNON_DESCRIPTION"]),this.applicationLinksUsersTags=e}getApplicationLinksAdministratorsTags(){const e=[];e.push(["appDetailUrl","APPDETAILURL_DESCRIPTION"]),e.push(["appDetailUrl-krb","APPDETAILURLKRB_DESCRIPTION"]),e.push(["appDetailUrl-fed","APPDETAILURLFED_DESCRIPTION"]),e.push(["appDetailUrl-cert","APPDETAILURLCERT_DESCRIPTION"]),e.push(["appDetailUrl-newGUI","APPDETAILURLNEWGUI_DESCRIPTION"]),this.applicationLinksAdministratorsTags=e}getPerunLinksAdministratorsTags(){const e=[];e.push(["perunGuiUrl","PERUNGUIURL_DESCRIPTION"]),e.push(["perunGuiUrl-krb","PERUNGUIURLKRB_DESCRIPTION"]),e.push(["perunGuiUrl-fed","PERUNGUIURLFED_DESCRIPTION"]),e.push(["perunGuiUrl-cert","PERUNGUIURLCERT_DESCRIPTION"]),e.push(["perunGuiUrl-newGUI","PERUNGUINEWGUI_DESCRIPTION"]),this.perunLinksAdministratorsTags=e}getUserInvitationsTags(){const e=[];e.push(["voName","USER_INVITATIONS_VONAME_DESCRIPTION"]),e.push(["groupName","USER_INVITATIONS_GROUPNAME_DESCRIPTION"]),e.push(["displayName","USER_INVITATIONS_DISPLAYNAME_DESCRIPTION"]),e.push(["mailFooter","USER_INVITATIONS_MAILFOOTER_DESCRIPTION"]),e.push(["htmlMailFooter","USER_INVITATIONS_HTMLMAILFOOTER_DESCRIPTION"]),e.push(["invitationLink","INVITATIONLINK_DESCRIPTION"]),e.push(["invitationLink-krb","INVITATIONLINKKRB_DESCRIPTION"]),e.push(["invitationLink-fed","INVITATIONLINKFED_DESCRIPTION"]),e.push(["invitationLink-cert","INVITATIONLINKCERT_DESCRIPTION"]),e.push(["invitationLink-non","INVITATIONLINKNON_DESCRIPTION"]),this.userInvitationsTags=e}addTag(e){this.addedTag.emit(e)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-tag-bar"]],outputs:{addedTag:"addedTag"},decls:47,vars:46,consts:[["alert_type","info"],["cdkScrollable","",1,"scrollable"],[1,"font-weight-bold"],[3,"tags","addedTag"],[1,"font-weight-bold","pt-2"],[1,"font-italic","text-muted"]],template:function(e,o){1&e&&(t.TgZ(0,"perun-web-apps-alert",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div",1)(4,"div",2),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"app-tag-section",3),t.NdJ("addedTag",function(s){return o.addTag(s)}),t.qZA(),t.TgZ(8,"div",4),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"app-tag-section",3),t.NdJ("addedTag",function(s){return o.addTag(s)}),t.qZA(),t.TgZ(12,"div",4),t._uU(13),t.ALo(14,"translate"),t.qZA(),t.TgZ(15,"div",5),t._uU(16),t.ALo(17,"translate"),t.qZA(),t.TgZ(18,"app-tag-section",3),t.NdJ("addedTag",function(s){return o.addTag(s)}),t.qZA(),t.TgZ(19,"div",4),t._uU(20),t.ALo(21,"translate"),t.qZA(),t.TgZ(22,"div",5),t._uU(23),t.ALo(24,"translate"),t.qZA(),t.TgZ(25,"app-tag-section",3),t.NdJ("addedTag",function(s){return o.addTag(s)}),t.qZA(),t.TgZ(26,"div",4),t._uU(27),t.ALo(28,"translate"),t.qZA(),t.TgZ(29,"div",5),t._uU(30),t.ALo(31,"translate"),t.qZA(),t.TgZ(32,"app-tag-section",3),t.NdJ("addedTag",function(s){return o.addTag(s)}),t.qZA(),t.TgZ(33,"div",4),t._uU(34),t.ALo(35,"translate"),t.qZA(),t.TgZ(36,"div",5),t._uU(37),t.ALo(38,"translate"),t.qZA(),t.TgZ(39,"app-tag-section",3),t.NdJ("addedTag",function(s){return o.addTag(s)}),t.qZA(),t.TgZ(40,"div",4),t._uU(41),t.ALo(42,"translate"),t.qZA(),t.TgZ(43,"div",5),t._uU(44),t.ALo(45,"translate"),t.qZA(),t.TgZ(46,"app-tag-section",3),t.NdJ("addedTag",function(s){return o.addTag(s)}),t.qZA()()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,20,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TAGS_DESCRIPTION"),"\n"),t.xp6(4),t.hij(" ",t.lcZ(6,22,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_RELATED_SECTION"),": "),t.xp6(2),t.Q6J("tags",o.applicationRelatedTags),t.xp6(2),t.hij(" ",t.lcZ(10,24,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.USER_RELATED_SECTION"),": "),t.xp6(2),t.Q6J("tags",o.userRelatedTags),t.xp6(2),t.hij(" ",t.lcZ(14,26,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.VALIDATION_LINKS_USERS_SECTION"),": "),t.xp6(3),t.hij(" ",t.lcZ(17,28,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.VALIDATION_LINKS_DESCRIPTION")," "),t.xp6(2),t.Q6J("tags",o.validationLinksUsersTags),t.xp6(2),t.hij(" ",t.lcZ(21,30,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_LINKS_USERS_SECTION"),": "),t.xp6(3),t.hij(" ",t.lcZ(24,32,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_LINKS_DESCRIPTION")," "),t.xp6(2),t.Q6J("tags",o.applicationLinksUsersTags),t.xp6(2),t.hij(" ",t.lcZ(28,34,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_LINKS_ADMINISTRATOR_SECTION"),": "),t.xp6(3),t.hij(" ",t.lcZ(31,36,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_LINKS_ADMINISTRATOR_DESCRIPTION")," "),t.xp6(2),t.Q6J("tags",o.applicationLinksAdministratorsTags),t.xp6(2),t.hij(" ",t.lcZ(35,38,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.PERUN_LINKS_ADMINISTRATOR_SECTION"),": "),t.xp6(3),t.hij(" ",t.lcZ(38,40,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.PERUN_LINKS_ADMINISTRATOR_DESCRIPTION")," "),t.xp6(2),t.Q6J("tags",o.perunLinksAdministratorsTags),t.xp6(2),t.hij(" ",t.lcZ(42,42,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.USER_INVITATIONS_SECTION"),": "),t.xp6(3),t.hij(" ",t.lcZ(45,44,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.USER_INVITATIONS_DESCRIPTION")," "),t.xp6(2),t.Q6J("tags",o.userInvitationsTags))},dependencies:[qa.PQ,R.w,Qa,m.X$],styles:[".scrollable[_ngcontent-%COMP%]{height:370px;overflow:auto}"]}),i})();function Ha(i,a){1&i&&(t.TgZ(0,"div")(1,"h1",9),t._uU(2),t.ALo(3,"translate"),t.qZA()()),2&i&&(t.xp6(2),t.Oqu(t.lcZ(3,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TITLE_CREATE")))}function ja(i,a){1&i&&(t.TgZ(0,"h1",9),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TITLE_EDIT")))}function za(i,a){1&i&&t._UZ(0,"mat-spinner",10)}function $a(i,a){1&i&&(t.TgZ(0,"mat-option",37),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APPROVABLE_GROUP_APP_USER")," "))}function Xa(i,a){1&i&&(t.TgZ(0,"div",35),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EMAIL_TYPE_DESCRIPTION_EDIT")," "))}function Ka(i,a){1&i&&(t.TgZ(0,"div",35),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EMAIL_TYPE_DESCRIPTION_CREATE")," "))}function Wa(i,a){1&i&&(t.TgZ(0,"mat-option",38),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EXTENSION")," "))}function ts(i,a){1&i&&(t.TgZ(0,"div",35),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_TYPE_DESCRIPTION_EDIT")," "))}function es(i,a){1&i&&(t.TgZ(0,"div",35),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_TYPE_DESCRIPTION_CREATE")," "))}function is(i,a){1&i&&(t.TgZ(0,"perun-web-apps-alert",42),t._UZ(1,"i",43),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Q6J("innerHTML",t.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.FORMAT_INFO"),t.oJD))}function os(i,a){1&i&&(t.TgZ(0,"perun-web-apps-alert",42),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.FORMAT_INFO_NOT_AUTHORIZED")," "))}const ns=function(i){return{"disabled-label":i}};function as(i,a){if(1&i&&(t.TgZ(0,"span",58),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"uppercase"),t.qZA()),2&i){const e=t.oxw().$implicit,o=t.oxw(4);t.Q6J("ngClass",t.VKq(6,ns,"html"===e&&!o.htmlAuth)),t.xp6(1),t.hij(" ",t.lcZ(2,2,t.lcZ(3,4,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.FORMAT_"+e))," ")}}function ss(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"input",59),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw(3).$implicit,r=t.oxw(2);return t.KtG(r.applicationMail.message[s].subject=n)})("focus",function(){t.CHM(e);const n=t.oxw(5);return t.KtG(n.isTextFocused=!1)}),t.qZA()}if(2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("ngModel",o.applicationMail.message[e].subject)}}function rs(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"input",59),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw(3).$implicit,r=t.oxw(2);return t.KtG(r.applicationMail.htmlMessage[s].subject=n)})("focus",function(){t.CHM(e);const n=t.oxw(5);return t.KtG(n.isTextFocused=!1)}),t.qZA()}if(2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("ngModel",o.applicationMail.htmlMessage[e].subject)}}function ls(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"textarea",60),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw(3).$implicit,r=t.oxw(2);return t.KtG(r.applicationMail.message[s].text=n)})("focus",function(){t.CHM(e);const n=t.oxw(5);return t.KtG(n.isTextFocused=!0)}),t._uU(1," "),t.qZA()}if(2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("ngModel",o.applicationMail.message[e].text)}}function cs(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"textarea",60),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw(3).$implicit,r=t.oxw(2);return t.KtG(r.applicationMail.htmlMessage[s].text=n)})("focus",function(){t.CHM(e);const n=t.oxw(5);return t.KtG(n.isTextFocused=!0)}),t._uU(1," "),t.qZA()}if(2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("ngModel",o.applicationMail.htmlMessage[e].text)}}function ps(i,a){1&i&&t._UZ(0,"mat-divider",61)}function us(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-tab",44),t.YNc(1,as,4,8,"ng-template",45),t.TgZ(2,"div",46)(3,"div",47)(4,"div",48)(5,"button",49),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(4);return t.KtG(n.showTags=!n.showTags)}),t._uU(6),t.ALo(7,"translate"),t.ALo(8,"translate"),t.qZA(),t.TgZ(9,"span",50),t._uU(10),t.ALo(11,"translate"),t.qZA(),t.TgZ(12,"mat-form-field",18)(13,"div",null,51),t.YNc(15,ss,1,1,"input",52),t.YNc(16,rs,1,1,"input",52),t.qZA()()(),t.TgZ(17,"div",53),t._uU(18),t.ALo(19,"translate"),t.qZA(),t.TgZ(20,"mat-form-field",18)(21,"div",null,54),t.YNc(23,ls,2,1,"textarea",55),t.YNc(24,cs,2,1,"textarea",55),t.qZA()()(),t.YNc(25,ps,1,0,"mat-divider",56),t.TgZ(26,"div")(27,"app-tag-bar",57),t.NdJ("addedTag",function(n){const r=t.CHM(e).$implicit,d=t.MAs(14),A=t.MAs(22),v=t.oxw(2).$implicit,D=t.oxw(2);return t.KtG(D.addTag(d,A,v,n,r))}),t.qZA()()()()}if(2&i){const e=a.$implicit,o=t.oxw(4);t.Q6J("disabled","html"===e&&!o.htmlAuth),t.xp6(6),t.hij(" ",o.showTags?t.lcZ(7,10,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.HIDE_TAGS"):t.lcZ(8,12,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SHOW_TAGS")," "),t.xp6(4),t.hij(" ",t.lcZ(11,14,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SUBJECT"),": "),t.xp6(5),t.Q6J("ngIf","plain_text"===e),t.xp6(1),t.Q6J("ngIf","html"===e),t.xp6(2),t.hij(" ",t.lcZ(19,16,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TEXT"),": "),t.xp6(5),t.Q6J("ngIf","plain_text"===e),t.xp6(1),t.Q6J("ngIf","html"===e),t.xp6(1),t.Q6J("ngIf",o.showTags),t.xp6(1),t.Q6J("@tagsOpenClose",o.showTags?"open":"closed")}}function ds(i,a){if(1&i&&(t.YNc(0,is,3,3,"perun-web-apps-alert",40),t.YNc(1,os,3,3,"perun-web-apps-alert",40),t.TgZ(2,"mat-tab-group",13),t.YNc(3,us,28,18,"mat-tab",41),t.qZA()),2&i){const e=t.oxw(3);t.Q6J("ngIf",e.htmlAuth),t.xp6(1),t.Q6J("ngIf",!e.htmlAuth),t.xp6(2),t.Q6J("ngForOf",e.formats)}}function _s(i,a){1&i&&(t.TgZ(0,"mat-tab",14),t.ALo(1,"translate"),t.ALo(2,"uppercase"),t.YNc(3,ds,4,3,"ng-template",39),t.qZA()),2&i&&t.s9C("label",t.lcZ(1,1,t.lcZ(2,3,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.LANG_"+a.$implicit)))}function ms(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",11)(1,"div")(2,"perun-web-apps-alert",12),t._uU(3),t.ALo(4,"translate"),t.qZA()(),t.TgZ(5,"mat-tab-group",13)(6,"mat-tab",14),t.ALo(7,"translate"),t.TgZ(8,"div",15)(9,"span",16),t._uU(10),t.ALo(11,"translate"),t.qZA(),t.TgZ(12,"div",17)(13,"mat-form-field",18)(14,"mat-select",19),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.applicationMail.mailType=n)})("selectionChange",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.notificationExist())}),t.TgZ(15,"mat-option",20),t._uU(16),t.ALo(17,"translate"),t.qZA(),t.YNc(18,$a,3,3,"mat-option",21),t.TgZ(19,"mat-option",22),t._uU(20),t.ALo(21,"translate"),t.qZA(),t.TgZ(22,"mat-option",23),t._uU(23),t.ALo(24,"translate"),t.qZA(),t.TgZ(25,"mat-option",24),t._uU(26),t.ALo(27,"translate"),t.qZA(),t.TgZ(28,"mat-option",25),t._uU(29),t.ALo(30,"translate"),t.qZA(),t.TgZ(31,"mat-option",26),t._uU(32),t.ALo(33,"translate"),t.qZA(),t.TgZ(34,"mat-option",27),t._uU(35),t.ALo(36,"translate"),t.qZA()()()()(),t.TgZ(37,"div",28),t._UZ(38,"span",29),t.YNc(39,Xa,3,3,"div",30),t.YNc(40,Ka,3,3,"div",30),t.qZA(),t.TgZ(41,"div",15)(42,"span",31),t._uU(43),t.ALo(44,"translate"),t.qZA(),t.TgZ(45,"div",17)(46,"mat-form-field",18)(47,"mat-select",19),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.applicationMail.appType=n)})("selectionChange",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.notificationExist())}),t.TgZ(48,"mat-option",32),t._uU(49),t.ALo(50,"translate"),t.qZA(),t.YNc(51,Wa,3,3,"mat-option",33),t.qZA()()()(),t.TgZ(52,"div",28),t._UZ(53,"span",29),t.YNc(54,ts,3,3,"div",30),t.YNc(55,es,3,3,"div",30),t.qZA(),t.TgZ(56,"div",15)(57,"span",31),t._uU(58),t.ALo(59,"translate"),t.qZA(),t.TgZ(60,"div",17)(61,"mat-checkbox",34),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.applicationMail.send=n)}),t.qZA()()(),t.TgZ(62,"div",28),t._UZ(63,"span",29),t.TgZ(64,"div",35),t._uU(65),t.ALo(66,"translate"),t.qZA()()(),t.YNc(67,_s,4,5,"mat-tab",36),t.qZA()()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("@openClose",e.invalidNotification?"open":"closed"),t.xp6(2),t.Oqu(t.lcZ(4,27,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.INVALID_NOTIFICATION")),t.xp6(3),t.s9C("label",t.lcZ(7,29,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.BASIC_SETTINGS")),t.xp6(4),t.hij("",t.lcZ(11,31,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EMAIL_TYPE")," :"),t.xp6(4),t.Q6J("ngModel",e.applicationMail.mailType)("disabled",!e.data.createMailNotification),t.xp6(2),t.hij(" ",t.lcZ(17,33,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_CREATED_USER")," "),t.xp6(2),t.Q6J("ngIf",e.data.groupId),t.xp6(2),t.hij(" ",t.lcZ(21,35,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_CREATED_VO_ADMIN")," "),t.xp6(3),t.hij(" ",t.lcZ(24,37,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_MAIL_VALIDATION")," "),t.xp6(3),t.hij(" ",t.lcZ(27,39,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_APPROVED_USER")," "),t.xp6(3),t.hij(" ",t.lcZ(30,41,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_REJECTED_USER")," "),t.xp6(3),t.hij(" ",t.lcZ(33,43,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_ERROR_VO_ADMIN")," "),t.xp6(3),t.hij(" ",t.lcZ(36,45,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_USER_INVITE")," "),t.xp6(4),t.Q6J("ngIf",!e.data.createMailNotification),t.xp6(1),t.Q6J("ngIf",e.data.createMailNotification),t.xp6(3),t.hij("",t.lcZ(44,47,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_TYPE")," :"),t.xp6(4),t.Q6J("ngModel",e.applicationMail.appType)("disabled",!e.data.createMailNotification),t.xp6(2),t.hij(" ",t.lcZ(50,49,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.INITIAL")," "),t.xp6(2),t.Q6J("ngIf","USER_INVITE"!==e.applicationMail.mailType),t.xp6(3),t.Q6J("ngIf",!e.data.createMailNotification),t.xp6(1),t.Q6J("ngIf",e.data.createMailNotification),t.xp6(3),t.hij("",t.lcZ(59,51,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SENDING_ENABLED")," :"),t.xp6(3),t.Q6J("ngModel",e.applicationMail.send),t.xp6(4),t.hij(" ",t.lcZ(66,53,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SENDING_ENABLED_DESCRIPTION")," "),t.xp6(2),t.Q6J("ngForOf",e.languages)}}function gs(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",62),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.create())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",e.invalidNotification||e.loading),t.xp6(1),t.hij(" ",t.lcZ(2,2,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.CREATE_BUTTON")," ")}}function hs(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",62),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.save())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",e.loading||!e.editAuth),t.xp6(1),t.hij(" ",t.lcZ(2,2,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SAVE_BUTTON")," ")}}let rt=(()=>{class i{constructor(e,o,n,s,r,d){this.dialogRef=e,this.registrarService=o,this.data=n,this.authResolver=s,this.groupsService=r,this.store=d,this.showTags=!1,this.isTextFocused=!0,this.invalidNotification=!1,this.loading=!1,this.languages=["en"],this.formats=["plain_text","html"]}ngOnInit(){this.languages=this.store.getProperty("supported_languages"),this.htmlAuth=this.authResolver.isPerunAdmin(),this.applicationMail=this.data.applicationMail,this.theme=this.data.theme,this.data.groupId?this.groupsService.getGroupById(this.data.groupId).subscribe(e=>{this.editAuth=this.authResolver.isAuthorized("group-addMail_ApplicationForm_ApplicationMail_policy",[e])}):this.data.voId&&(this.editAuth=this.authResolver.isAuthorized("vo-addMail_ApplicationForm_ApplicationMail_policy",[{id:this.data.voId,beanName:"Vo"}]))}cancel(){this.dialogRef.close()}create(){this.notificationExist(),!this.invalidNotification&&(this.loading=!0,this.data.groupId?this.registrarService.addApplicationMailForGroup({group:this.data.groupId,mail:this.applicationMail}).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1):this.registrarService.addApplicationMailForVo({vo:this.data.voId,mail:this.applicationMail}).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1))}save(){this.loading=!0,this.registrarService.updateApplicationMail({mail:this.applicationMail}).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1)}addTag(e,o,n,s,r){const d=this.isTextFocused?o.children.item(0):e.children.item(0),A=d.selectionStart;this.isTextFocused?"html"===r?this.applicationMail.htmlMessage[n].text=this.applicationMail.htmlMessage[n].text.substring(0,A)+s+this.applicationMail.htmlMessage[n].text.substring(A):this.applicationMail.message[n].text=this.applicationMail.message[n].text.substring(0,A)+s+this.applicationMail.message[n].text.substring(A):"html"===r?this.applicationMail.htmlMessage[n].subject=this.applicationMail.htmlMessage[n].subject.substring(0,A)+s+this.applicationMail.htmlMessage[n].subject.substring(A):this.applicationMail.message[n].subject=this.applicationMail.message[n].subject.substring(0,A)+s+this.applicationMail.message[n].subject.substring(A),d.focus()}notificationExist(){for(const e of this.data.applicationMails)if(e.mailType===this.applicationMail.mailType&&e.appType===this.applicationMail.appType)return void(this.invalidNotification=!0);this.invalidNotification=!1}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(h.tk),t.Y36(u.WI),t.Y36(p.x4),t.Y36(h.ff),t.Y36(p.d6))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-add-edit-notification-dialog"]],decls:15,vars:17,consts:[[1,"h-100","d-flex","flex-column"],[4,"ngIf","ngIfElse"],["edit",""],["class","mr-auto ml-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",1,"d-flex","mt-auto"],["mat-flat-button","",1,"ml-auto",3,"click"],["class","ml-2","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"matTooltipDisabled","matTooltipPosition","matTooltip"],["mat-dialog-title",""],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],["alert_type","error"],["color","primary"],[3,"label"],[1,"d-flex"],[1,"w-25","m-auto","font-weight-bold"],[1,"w-75"],[1,"w-100"],["disableOptionCentering","",3,"ngModel","disabled","ngModelChange","selectionChange"],["value","APP_CREATED_USER"],["value","APPROVABLE_GROUP_APP_USER",4,"ngIf"],["value","APP_CREATED_VO_ADMIN"],["value","MAIL_VALIDATION"],["value","APP_APPROVED_USER"],["value","APP_REJECTED_USER"],["value","APP_ERROR_VO_ADMIN"],["value","USER_INVITE"],[1,"d-flex","mb-3"],[1,"w-25"],["class","w-75 font-italic text-muted",4,"ngIf"],[1,"w-25","font-weight-bold"],["value","INITIAL"],["value","EXTENSION",4,"ngIf"],[3,"ngModel","ngModelChange"],[1,"w-75","font-italic","text-muted"],[3,"label",4,"ngFor","ngForOf"],["value","APPROVABLE_GROUP_APP_USER"],["value","EXTENSION"],["matTabContent",""],["alert_type","info",4,"ngIf"],[3,"disabled",4,"ngFor","ngForOf"],["alert_type","info"],[3,"innerHTML"],[3,"disabled"],["mat-tab-label",""],[1,"d-flex","w-100"],[1,"pr-2","w-100"],[1,"pt-2"],["mat-stroked-button","",1,"right-button",3,"click"],[1,"font-weight-bold","pr-2"],["Input",""],["matInput","",3,"ngModel","ngModelChange","focus",4,"ngIf"],[1,"font-weight-bold"],["Textarea",""],["matInput","","rows","17",3,"ngModel","ngModelChange","focus",4,"ngIf"],["class","ml-3 mr-3","vertical","true",4,"ngIf"],[3,"addedTag"],[3,"ngClass"],["matInput","",3,"ngModel","ngModelChange","focus"],["matInput","","rows","17",3,"ngModel","ngModelChange","focus"],["vertical","true",1,"ml-3","mr-3"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(e,o){if(1&e&&(t.TgZ(0,"div")(1,"div",0),t.YNc(2,Ha,4,3,"div",1),t.YNc(3,ja,3,3,"ng-template",null,2,t.W1O),t.YNc(5,za,1,0,"mat-spinner",3),t.YNc(6,ms,68,55,"div",4),t.TgZ(7,"div",5)(8,"button",6),t.NdJ("click",function(){return o.cancel()}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.YNc(11,gs,3,4,"button",7),t.TgZ(12,"div",8),t.ALo(13,"translate"),t.YNc(14,hs,3,4,"button",7),t.qZA()()()()),2&e){const n=t.MAs(4);t.Gre("",o.theme," h-100"),t.xp6(2),t.Q6J("ngIf",o.data.createMailNotification)("ngIfElse",n),t.xp6(3),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(10,13,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.CANCEL_BUTTON")," "),t.xp6(2),t.Q6J("ngIf",o.data.createMailNotification),t.xp6(1),t.s9C("matTooltip",t.lcZ(13,15,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EDIT_HINT")),t.Q6J("matTooltipDisabled",o.editAuth)("matTooltipPosition","above"),t.xp6(2),t.Q6J("ngIf",!o.data.createMailNotification)}},dependencies:[_.mk,_.sg,_.O5,H.ey,x.KE,y.Nt,f.Fj,f.JJ,f.On,I.lW,O.SP,O.uD,O.uX,O.Vc,j.oG,u.uh,u.xY,u.H8,z.gD,T.Ou,N.gM,at.d,R.w,Ba,_.gd,m.X$],styles:[".right-button[_ngcontent-%COMP%]{display:block;margin-left:auto}.disabled-label[_ngcontent-%COMP%]{color:#00000061!important}"],data:{animation:[M.es,M.BQ]}}),i})();var lt=l(62707),fs=l(82322);function As(i,a){1&i&&t._UZ(0,"mat-spinner",9)}let Ut=(()=>{class i{constructor(e,o,n,s,r,d,A){this.dialogRef=e,this.voService=o,this.groupService=n,this.translateService=s,this.registrarService=r,this.cd=d,this.data=A,this.vos=[],this.groups=[],this.selectedVo=null,this.selectedGroup=null,this.loading=!1,this.nameFunction=v=>v.name}ngOnInit(){this.theme=this.data.theme,this.loading=!0,this.translateService.get("DIALOGS.NOTIFICATIONS_COPY_MAILS.NO_GROUP_SELECTED").subscribe(e=>{this.fakeGroup={id:-1,name:e,voId:0,parentGroupId:0,shortName:"",description:"",beanName:"group"},this.selectedGroup=this.fakeGroup,this.voService.getAllVos().subscribe(o=>{this.vos=o,this.loading=!1})},()=>this.loading=!1)}cancel(){this.dialogRef.close(!1)}submit(){this.loading=!0,this.data.groupId?this.selectedGroup===this.fakeGroup?this.registrarService.copyMailsFromVoToGroup(this.selectedVo.id,this.data.groupId).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1):this.registrarService.copyMailsFromGroupToGroup(this.selectedGroup.id,this.data.groupId).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1):this.selectedGroup===this.fakeGroup?this.registrarService.copyMailsFromVoToVo(this.selectedVo.id,this.data.voId).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1):this.registrarService.copyMailsFromGroupToVo(this.selectedGroup.id,this.data.voId).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1)}voSelected(e){this.selectedVo=e,this.getGroups(),this.cd.detectChanges()}getGroups(){this.selectedVo?this.groupService.getAllGroups(this.selectedVo.id).subscribe(e=>{this.groups=[this.fakeGroup].concat(e)}):this.groups=[this.fakeGroup]}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(h.YF),t.Y36(h.ff),t.Y36(m.sK),t.Y36(h.tk),t.Y36(t.sBO),t.Y36(u.WI))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-notifications-copy-mails-dialog"]],decls:22,vars:27,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",1,"dialog-container",3,"hidden"],[1,"mb-2","font-italic"],[1,"long-input",3,"vos","voSelected"],[1,"long-input",3,"groups","disableAutoSelect","groupSelected"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,As,1,0,"mat-spinner",1),t.TgZ(5,"div",2)(6,"div",3),t._uU(7),t.ALo(8,"translate"),t.qZA(),t._uU(9),t.ALo(10,"translate"),t.TgZ(11,"perun-web-apps-vo-search-select",4),t.NdJ("voSelected",function(s){return o.voSelected(s)}),t.qZA(),t._uU(12),t.ALo(13,"translate"),t.TgZ(14,"perun-web-apps-group-search-select",5),t.NdJ("groupSelected",function(s){return o.selectedGroup=s}),t.qZA()(),t.TgZ(15,"div",6)(16,"button",7),t.NdJ("click",function(){return o.cancel()}),t._uU(17),t.ALo(18,"translate"),t.qZA(),t.TgZ(19,"button",8),t.NdJ("click",function(){return o.submit()}),t._uU(20),t.ALo(21,"translate"),t.qZA()()()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,15,"DIALOGS.NOTIFICATIONS_COPY_MAILS.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("hidden",o.loading),t.xp6(2),t.hij(" ",t.lcZ(8,17,"DIALOGS.NOTIFICATIONS_COPY_MAILS.DESCRIPTION")," "),t.xp6(2),t.hij(" ",t.lcZ(10,19,"DIALOGS.NOTIFICATIONS_COPY_MAILS.SOURCE_VO"),": "),t.xp6(2),t.Q6J("vos",o.vos),t.xp6(1),t.hij(" ",t.lcZ(13,21,"DIALOGS.NOTIFICATIONS_COPY_MAILS.SOURCE_GROUP"),": "),t.xp6(2),t.Q6J("groups",o.groups)("disableAutoSelect",!0),t.xp6(3),t.hij(" ",t.lcZ(18,23,"DIALOGS.NOTIFICATIONS_COPY_MAILS.CANCEL_BUTTON")," "),t.xp6(2),t.Q6J("disabled",null===o.selectedVo||null===o.selectedGroup||o.loading),t.xp6(1),t.hij(" ",t.lcZ(21,25,"DIALOGS.NOTIFICATIONS_COPY_MAILS.SUBMIT_BUTTON")," "))},dependencies:[_.O5,I.lW,u.uh,u.xY,u.H8,T.Ou,lt.M,fs.h,m.X$],data:{animation:[M.BQ]}}),i})();var q=l(96308),Pt=l(18750),yt=l(9185),Vt=l(8231),Ft=l(14849);function Ts(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"th",17)(1,"mat-checkbox",18),t.NdJ("change",function(n){t.CHM(e);const s=t.oxw(2);return t.KtG(n?s.masterToggle():null)}),t.ALo(2,"translate"),t.ALo(3,"masterCheckboxLabel"),t.qZA()()}if(2&i){const e=t.oxw().ngIf,o=t.oxw();t.xp6(1),t.Q6J("aria-label",t.lcZ(2,3,t.lcZ(3,5,e.all)))("checked",o.selection.hasValue()&&e.all)("indeterminate",o.selection.hasValue()&&!e.all)}}const Is=function(i){return{name:i}};function bs(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"td",19)(1,"mat-checkbox",20),t.NdJ("change",function(n){const r=t.CHM(e).$implicit,d=t.oxw(2);return t.KtG(n?d.toggle(r):null)})("click",function(n){return n.stopPropagation()}),t.ALo(2,"translate"),t.ALo(3,"checkboxLabel"),t.qZA()()}if(2&i){const e=a.$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("aria-label",t.xi3(2,2,t.lcZ(3,5,o.selection.isSelected(e)),t.VKq(7,Is,o.getMailType(e))))("checked",o.selection.isSelected(e))}}function vs(i,a){1&i&&(t.ynx(0,14),t.YNc(1,Ts,4,7,"th",15),t.YNc(2,bs,4,9,"td",16),t.BQk())}function Es(i,a){1&i&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_EMAIL_ID")," "))}function Cs(i,a){if(1&i&&(t.TgZ(0,"td",22),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.hij(" ",e.id," ")}}function Ss(i,a){1&i&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_EMAIL_TYPE")," "))}function xs(i,a){if(1&i&&(t.TgZ(0,"td",23),t._uU(1),t.qZA()),2&i){const e=a.$implicit,o=t.oxw();t.xp6(1),t.Oqu(o.getMailType(e))}}function Ns(i,a){1&i&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_APPLICATION_TYPE")," "))}function Os(i,a){1&i&&(t.TgZ(0,"div")(1,"mat-icon",26),t._uU(2,"arrow_right_alt"),t.qZA(),t._uU(3),t.ALo(4,"translate"),t.qZA()),2&i&&(t.xp6(3),t.hij(" ",t.lcZ(4,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_APPLICATION_TYPE_INITIAL")," "))}function Zs(i,a){1&i&&(t.TgZ(0,"mat-icon",27),t._uU(1,"cached"),t.qZA(),t._uU(2),t.ALo(3,"translate")),2&i&&(t.xp6(2),t.hij(" ",t.lcZ(3,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_APPLICATION_TYPE_EXTENSION")," "))}function Ds(i,a){if(1&i&&(t.TgZ(0,"td",23),t.YNc(1,Os,5,3,"div",24),t.YNc(2,Zs,4,3,"ng-template",null,25,t.W1O),t.qZA()),2&i){const e=a.$implicit,o=t.MAs(3);t.xp6(1),t.Q6J("ngIf","INITIAL"===e.appType)("ngIfElse",o)}}function Ms(i,a){1&i&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_SENDING_ENABLED")," "))}function Ls(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"td",23)(1,"section")(2,"mat-checkbox",28),t.NdJ("change",function(){const s=t.CHM(e).$implicit,r=t.oxw();return t.KtG(r.changeSending(s))})("click",function(n){return n.stopPropagation()}),t.ALo(3,"translate"),t.qZA()()()}if(2&i){const e=a.$implicit,o=t.oxw();t.xp6(2),t.s9C("matTooltip",t.lcZ(3,4,"VO_DETAIL.SETTINGS.NOTIFICATIONS.DISABLED_HINT")),t.Q6J("disabled",o.disableSend)("matTooltipDisabled",!o.disableSend)("ngModel",e.send)}}function Rs(i,a){1&i&&t._UZ(0,"tr",29)}function ws(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"tr",30),t.NdJ("click",function(){const s=t.CHM(e).$implicit,r=t.oxw();return t.KtG(r.openApplicationMailDetail(s))}),t.qZA()}2&i&&t.ekj("cursor-pointer",!0)}function Gs(i,a){1&i&&(t.TgZ(0,"perun-web-apps-alert",31),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.NO_EMAILS"),"\n"))}const Us=function(i){return{all:i}};let Yt=(()=>{class i{constructor(e,o,n,s,r,d){this.registrarService=e,this.translate=o,this.notificator=n,this.dialog=s,this.authResolver=r,this.tableCheckbox=d,this.displayedColumns=["select","id","mailType","appType","send"],this.disableSend=!1,this.selection=new E.Ov(!0,[]),this.selectionChange=new t.vpe,this.pageSizeOptions=g.f7}set matSort(e){this.sort=e,this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"id"!==e)),this.dataSource=new c.by(this.applicationMails),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,"",this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}changeSending(e){e.send?this.registrarService.setSendingEnabled({mails:[e],enabled:!1}).subscribe(()=>{e.send=!1}):this.registrarService.setSendingEnabled({mails:[e],enabled:!0}).subscribe(()=>{e.send=!0})}openApplicationMailDetail(e){const o=(0,g.kZ)();o.width="1400px",o.height="700px",o.data={theme:this.theme,voId:this.voId,groupId:this.groupId,createMailNotification:!1,applicationMail:e},this.dialog.open(rt,o).afterClosed().subscribe(s=>{s&&(this.translate.get("VO_DETAIL.SETTINGS.NOTIFICATIONS.EDIT_SUCCESS").subscribe(r=>{this.notificator.showSuccess(r)}),this.selection.clear(),this.selectionChange.emit(this.selection),this.update())})}getMailType(e){let o="";return null==e.mailType||0===e.mailType.length?o="":this.translate.get("VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_"+e.mailType).subscribe(n=>{o=n}),o}update(){this.groupId?this.registrarService.getApplicationMailsForGroup(this.groupId).subscribe(e=>{this.updateTable(e)}):this.registrarService.getApplicationMailsForVo(this.voId).subscribe(e=>{this.updateTable(e)})}toggle(e){this.selection.toggle(e),this.selectionChange.emit(this.selection)}updateTable(e){this.applicationMails=e,this.dataSource=new c.by(this.applicationMails),this.setDataSource()}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.tk),t.Y36(m.sK),t.Y36(p.V6),t.Y36(u.uw),t.Y36(p.x4),t.Y36(p.UA))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-notification-list"]],viewQuery:function(e,o){if(1&e&&(t.Gf(g.l9,7),t.Gf(q.YE,7)),2&e){let n;t.iGM(n=t.CRH())&&(o.child=n.first),t.iGM(n=t.CRH())&&(o.matSort=n.first)}},inputs:{applicationMails:"applicationMails",voId:"voId",groupId:"groupId",displayedColumns:"displayedColumns",disableSend:"disableSend",selection:"selection",tableId:"tableId",theme:"theme"},outputs:{selectionChange:"selectionChange"},features:[t.TTD],decls:20,vars:15,consts:[[1,"card","mt-2",3,"hidden"],[3,"pageSizeOptions","dataLength","hideExport","tableId"],["mat-table","","matSort","","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","mailType"],["mat-cell","",4,"matCellDef"],["matColumnDef","appType"],["matColumnDef","send"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","click",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],[4,"ngIf","ngIfElse"],["extension",""],["matTooltip","Initial","matTooltipPosition","above"],["matTooltip","Extension","matTooltipPosition","above"],[3,"disabled","matTooltipDisabled","ngModel","matTooltip","change","click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"click"],["alert_type","warn"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1)(2,"table",2),t.YNc(3,vs,3,0,"ng-container",3),t.ALo(4,"isAllSelected"),t.ynx(5,4),t.YNc(6,Es,3,3,"th",5),t.YNc(7,Cs,2,1,"td",6),t.BQk(),t.ynx(8,7),t.YNc(9,Ss,3,3,"th",5),t.YNc(10,xs,2,1,"td",8),t.BQk(),t.ynx(11,9),t.YNc(12,Ns,3,3,"th",5),t.YNc(13,Ds,4,2,"td",8),t.BQk(),t.ynx(14,10),t.YNc(15,Ms,3,3,"th",5),t.YNc(16,Ls,4,6,"td",8),t.BQk(),t.YNc(17,Rs,1,0,"tr",11),t.YNc(18,ws,1,2,"tr",12),t.qZA()()(),t.YNc(19,Gs,3,3,"perun-web-apps-alert",13)),2&e&&(t.Q6J("hidden",0===o.applicationMails.length),t.xp6(1),t.Q6J("pageSizeOptions",o.pageSizeOptions)("dataLength",o.dataSource.filteredData.length)("hideExport",!0)("tableId",o.tableId),t.xp6(1),t.Q6J("dataSource",o.dataSource),t.xp6(1),t.Q6J("ngIf",t.VKq(13,Us,t.xi3(4,10,o.dataSource,o.selection.selected.length))),t.xp6(14),t.Q6J("matHeaderRowDef",o.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",o.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===o.applicationMails.length))},dependencies:[_.O5,f.JJ,f.On,P.Hw,q.YE,q.nU,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.ge,c.ev,c.XQ,c.Gk,j.oG,N.gM,R.w,Pt.l,m.X$,yt.I,Vt.G,Ft.r],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),i})();function Ps(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",10),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.add())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.ADD")," "))}function ys(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.remove())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"VO_DETAIL.SETTINGS.NOTIFICATIONS.REMOVE")," ")}}function Vs(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.copy())}),t.TgZ(1,"i",6),t._uU(2,"file_copy"),t.qZA(),t._uU(3),t.ALo(4,"translate"),t.qZA()}2&i&&(t.xp6(3),t.hij(" ",t.lcZ(4,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.COPY_FROM_VO")," "))}function Fs(i,a){1&i&&t._UZ(0,"mat-spinner",13)}function Ys(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"app-notification-list",14),t.NdJ("selectionChange",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.changeSelection(n))}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("applicationMails",e.applicationMails)("disableSend",!e.addAuth)("displayedColumns",e.displayedColumns)("tableId",e.tableId)("selection",e.selection)("theme","vo-theme")("voId",e.vo.id)}}let Js=(()=>{class i{constructor(e,o,n,s,r,d,A,v,D){this.route=e,this.registrarService=o,this.translate=n,this.dialog=s,this.notificator=r,this.authResolver=d,this.voService=A,this.store=v,this.entityStorageService=D,this.loading=!1,this.applicationMails=[],this.selection=new E.Ov(!0,[]),this.tableId=C.VR,this.displayedColumns=[]}ngOnInit(){this.vo=this.entityStorageService.getEntity(),this.setAuthRights(),this.refresh()}refresh(){this.loading=!0,this.registrarService.getVoApplicationForm(this.vo.id).subscribe(e=>{this.applicationForm=e,this.registrarService.getApplicationMailsForVo(this.vo.id).subscribe(o=>{this.applicationMails=o,this.loading=!1})})}setAuthRights(){this.addAuth=this.authResolver.isAuthorized("vo-addMail_ApplicationForm_ApplicationMail_policy",[this.vo]),this.removeAuth=this.authResolver.isAuthorized("vo-deleteMailById_ApplicationForm_Integer_policy",[this.vo]),this.copyAuth=this.authResolver.isAuthorized("destination-copyMailsFromVoToVo_Vo_Vo_policy",[this.vo]),this.displayedColumns=this.removeAuth?["select","id","mailType","appType","send"]:["id","mailType","appType","send"]}add(){const e=this.store.getProperty("supported_languages"),o=(0,g.i5)(e);o.formId=this.applicationForm.id;const n=(0,g.kZ)();n.width="1400px",n.height="700px",n.data={theme:"vo-theme",voId:this.vo.id,createMailNotification:!0,applicationMail:o,applicationMails:this.applicationMails},this.dialog.open(rt,n).afterClosed().subscribe(r=>{r&&(this.translate.get("VO_DETAIL.SETTINGS.NOTIFICATIONS.ADD_SUCCESS").subscribe(d=>{this.notificator.showSuccess(d)}),this.selection.clear(),this.updateTable())})}remove(){const e=(0,g.kZ)();e.width="500px",e.data={voId:this.vo.id,mails:this.selection.selected,theme:"vo-theme"},this.dialog.open(wt,e).afterClosed().subscribe(n=>{n&&(this.translate.get("VO_DETAIL.SETTINGS.NOTIFICATIONS.DELETE_SUCCESS").subscribe(s=>{this.notificator.showSuccess(s)}),this.selection.clear(),this.updateTable())})}copy(){const e=(0,g.kZ)();e.width="500px",e.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(Ut,e).afterClosed().subscribe(n=>{n&&(this.selection.clear(),this.updateTable())})}changeEmailFooter(){const e=(0,g.kZ)();e.width="500px",e.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(Gt,e)}changeSelection(e){this.selection=e}updateTable(){this.loading=!0,this.registrarService.getApplicationMailsForVo(this.vo.id).subscribe(e=>{this.applicationMails=e,this.loading=!1})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(b.gz),t.Y36(h.tk),t.Y36(m.sK),t.Y36(u.uw),t.Y36(p.V6),t.Y36(p.x4),t.Y36(h.YF),t.Y36(p.d6),t.Y36(p.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-settings-notifications"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:15,vars:11,consts:[[1,"page-subtitle"],[1,"w-100","d-flex"],[3,"click"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["color","warn","class","mr-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],["mat-stroked-button","",1,"mr-2","action-button",3,"click"],[1,"material-icons"],["class","action-button","mat-stroked-button","",3,"click",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"applicationMails","disableSend","displayedColumns","tableId","selection","theme","voId","selectionChange",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],["mat-stroked-button","",1,"action-button",3,"click"],[1,"ml-auto","mr-auto"],[3,"applicationMails","disableSend","displayedColumns","tableId","selection","theme","voId","selectionChange"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div",1)(4,"perun-web-apps-refresh-button",2),t.NdJ("click",function(){return o.refresh()}),t.qZA(),t.YNc(5,Ps,3,3,"button",3),t.YNc(6,ys,3,4,"button",4),t.TgZ(7,"button",5),t.NdJ("click",function(){return o.changeEmailFooter()}),t.TgZ(8,"i",6),t._uU(9,"email"),t.qZA(),t._uU(10),t.ALo(11,"translate"),t.qZA(),t.YNc(12,Vs,5,3,"button",7),t.qZA(),t.YNc(13,Fs,1,0,"mat-spinner",8),t.YNc(14,Ys,1,7,"app-notification-list",9)),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,7,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TITLE"),"\n"),t.xp6(4),t.Q6J("ngIf",o.addAuth),t.xp6(1),t.Q6J("ngIf",o.removeAuth),t.xp6(4),t.hij(" ",t.lcZ(11,9,"VO_DETAIL.SETTINGS.NOTIFICATIONS.EMAIL_FOOTER")," "),t.xp6(2),t.Q6J("ngIf",o.copyAuth),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[_.O5,I.lW,T.Ou,Z.t,Yt,m.X$]}),i})();var qs=l(14336);function ks(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.add())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.ADD")," "))}function Qs(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.remove())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw(2);t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.REMOVE")," ")}}function Bs(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",13),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.copy())}),t.TgZ(1,"i",7),t._uU(2,"file_copy"),t.qZA(),t._uU(3),t.ALo(4,"translate"),t.qZA()}2&i&&(t.xp6(3),t.hij(" ",t.lcZ(4,1,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.COPY_FROM_VO")," "))}function Hs(i,a){1&i&&t._UZ(0,"mat-spinner",14)}function js(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"app-notification-list",15),t.NdJ("selectionChange",function(n){t.CHM(e);const s=t.oxw(2);return t.KtG(s.changeSelection(n))}),t.qZA()}if(2&i){const e=t.oxw(2);t.Q6J("disableSend",!e.addAuth)("displayedColumns",e.displayedColumns)("applicationMails",e.applicationMails)("groupId",e.group.id)("selection",e.selection)("tableId",e.tableId)("theme","group-theme")}}function zs(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div")(1,"div",2)(2,"perun-web-apps-refresh-button",3),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.refresh())}),t.qZA(),t.YNc(3,ks,3,3,"button",4),t.YNc(4,Qs,3,4,"button",5),t.TgZ(5,"button",6),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.changeEmailFooter())}),t.TgZ(6,"i",7),t._uU(7,"email"),t.qZA(),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.YNc(10,Bs,5,3,"button",8),t.qZA(),t.YNc(11,Hs,1,0,"mat-spinner",9),t.YNc(12,js,1,7,"app-notification-list",10),t.qZA()}if(2&i){const e=t.oxw();t.xp6(3),t.Q6J("ngIf",e.addAuth),t.xp6(1),t.Q6J("ngIf",e.removeAuth),t.xp6(4),t.hij(" ",t.lcZ(9,6,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.EMAIL_FOOTER")," "),t.xp6(2),t.Q6J("ngIf",e.copyAuth),t.xp6(1),t.Q6J("ngIf",e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading)}}function $s(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",18),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.createEmptyApplicationForm())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.CREATE_APPLICATION_FORM")," "))}function Xs(i,a){if(1&i&&(t.TgZ(0,"div")(1,"perun-web-apps-alert",16),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,$s,3,3,"button",17),t.qZA()),2&i){const e=t.oxw();t.xp6(2),t.Oqu(t.lcZ(3,2,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.NO_APPLICATION_FORM")),t.xp6(2),t.Q6J("ngIf",e.createFormAuth)}}let Ks=(()=>{class i{constructor(e,o,n,s,r,d,A,v){this.registrarService=e,this.translate=o,this.dialog=n,this.apiRequest=s,this.notificator=r,this.guiAuthResolver=d,this.attributesService=A,this.entityStorageService=v,this.loading=!1,this.applicationMails=[],this.selection=new E.Ov(!0,[]),this.noApplicationForm=!1,this.editEmailFooterAuth=!1,this.addAuth=!1,this.removeAuth=!1,this.copyAuth=!1,this.createFormAuth=!1,this.displayedColumns=[],this.tableId=C.AA}ngOnInit(){this.group=this.entityStorageService.getEntity(),this.setAuthRights(),this.refresh()}refresh(){this.loading=!0,this.apiRequest.dontHandleErrorForNext(),this.registrarService.getGroupApplicationForm(this.group.id).subscribe(e=>{this.applicationForm=e,this.registrarService.getApplicationMailsForGroup(this.group.id).subscribe(o=>{this.applicationMails=o,this.apiRequest.dontHandleErrorForNext(),this.attributesService.getGroupAttributeByName(this.group.id,S.r.GROUP_DEF_EXPIRATION_RULES).subscribe(()=>{this.setAuthRights(),this.loading=!1},n=>{"PrivilegeException"!==n.name&&this.notificator.showRPCError(n),this.setAuthRights(),this.loading=!1})})},e=>{"FormNotExistsException"===e.name?(this.noApplicationForm=!0,this.setAuthRights(),this.loading=!1):this.notificator.showRPCError(e)})}setAuthRights(){this.createFormAuth=this.guiAuthResolver.isAuthorized("createApplicationFormInGroup_Group_policy",[this.group]),this.addAuth=this.guiAuthResolver.isAuthorized("group-addMail_ApplicationForm_ApplicationMail_policy",[this.group]),this.removeAuth=this.guiAuthResolver.isAuthorized("group-deleteMailById_ApplicationForm_Integer_policy",[this.group]),this.copyAuth=this.guiAuthResolver.isAuthorized("destination-copyMailsFromVoToGroup_Vo_Group_boolean_policy",[this.group]),this.displayedColumns=this.removeAuth?["select","id","mailType","appType","send"]:["id","mailType","appType","send"]}add(){const e=(0,g.i5)();e.formId=this.applicationForm.id;const o=(0,g.kZ)();o.width="1400px",o.height="700px",o.data={theme:"group-theme",voId:this.group.voId,groupId:this.group.id,createMailNotification:!0,applicationMail:e,applicationMails:this.applicationMails},this.dialog.open(rt,o).afterClosed().subscribe(s=>{s&&(this.translate.get("GROUP_DETAIL.SETTINGS.NOTIFICATIONS.ADD_SUCCESS").subscribe(r=>{this.notificator.showSuccess(r)}),this.selection.clear(),this.updateTable())})}remove(){const e=(0,g.kZ)();e.width="500px",e.data={voId:this.group.voId,groupId:this.group.id,mails:this.selection.selected,theme:"group-theme"},this.dialog.open(wt,e).afterClosed().subscribe(n=>{n&&(this.translate.get("GROUP_DETAIL.SETTINGS.NOTIFICATIONS.DELETE_SUCCESS").subscribe(s=>{this.notificator.showSuccess(s)}),this.selection.clear(),this.updateTable())})}copy(){const e=(0,g.kZ)();e.width="500px",e.data={voId:this.group.voId,groupId:this.group.id,theme:"group-theme"},this.dialog.open(Ut,e).afterClosed().subscribe(n=>{n&&(this.selection.clear(),this.updateTable())})}updateTable(){this.loading=!0,this.registrarService.getApplicationMailsForGroup(this.group.id).subscribe(e=>{this.applicationMails=e,this.loading=!1})}changeEmailFooter(){const e=(0,g.kZ)();e.width="500px",e.data={voId:this.group.voId,groupId:this.group.id,theme:"group-theme"},this.dialog.open(Gt,e)}changeSelection(e){this.selection=e}createEmptyApplicationForm(){this.registrarService.createApplicationFormInGroup(this.group.id).subscribe(()=>{this.noApplicationForm=!1,this.ngOnInit()})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.tk),t.Y36(m.sK),t.Y36(u.uw),t.Y36(p.F5),t.Y36(p.V6),t.Y36(p.x4),t.Y36(h.H8),t.Y36(p.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-settings-notifications"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:5,vars:5,consts:[[1,"page-subtitle"],[4,"ngIf"],[1,"w-100","d-flex"],[3,"click"],["color","accent","class","mr-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],["color","warn","class","mr-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],["mat-stroked-button","",1,"mr-2","action-button",3,"click"],[1,"material-icons"],["class","action-button","mat-stroked-button","",3,"click",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableSend","displayedColumns","applicationMails","groupId","selection","tableId","theme","selectionChange",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],["mat-stroked-button","",1,"action-button",3,"click"],[1,"ml-auto","mr-auto"],[3,"disableSend","displayedColumns","applicationMails","groupId","selection","tableId","theme","selectionChange"],["alert_type","warn"],["mat-stroked-button","",3,"click",4,"ngIf"],["mat-stroked-button","",3,"click"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.YNc(3,zs,13,8,"div",1),t.YNc(4,Xs,5,4,"div",1)),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,3,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.TITLE"),"\n"),t.xp6(2),t.Q6J("ngIf",!o.noApplicationForm),t.xp6(1),t.Q6J("ngIf",o.noApplicationForm&&!o.loading))},dependencies:[_.O5,I.lW,T.Ou,R.w,Z.t,Yt,m.X$]}),i})();var ct=l(15935);function Ws(i,a){1&i&&t._UZ(0,"mat-spinner",8)}function tr(i,a){if(1&i&&(t.TgZ(0,"div",9),t._UZ(1,"app-ext-sources-list",10),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("selection",e.selection)("extSources",e.extSources)("filterValue",e.filterValue)("tableId",e.tableId)}}let Jt=(()=>{class i{constructor(e,o,n,s,r){this.dialogRef=e,this.data=o,this.extSourceService=n,this.notificator=s,this.translate=r,this.extSources=[],this.selection=new E.Ov(!0,[]),this.loading=!1,this.filterValue="",this.tableId=C.BV}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.data.groupId?this.extSourceService.getVoExtSources(this.data.voId).subscribe(e=>{this.extSources=e.filter(o=>!this.data.extSources.some(({id:n})=>n===o.id)),this.loading=!1},()=>this.loading=!1):this.extSourceService.getExtSources().subscribe(e=>{this.extSources=e.filter(o=>!this.data.extSources.some(({id:n})=>n===o.id)),this.loading=!1},()=>this.loading=!1)}applyFilter(e){this.filterValue=e}addVoExtSources(e){const o=e.map(n=>n.id);this.extSourceService.addExtSourcesWithVoSource(this.data.voId,o).subscribe({next:()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.ADD_EXT_SOURCES.SUCCESS_ADDED")),this.dialogRef.close(!0)},error:()=>this.loading=!1})}addGroupExtSources(e){const o=e.map(n=>n.id);this.extSourceService.addExtSourcesWithGroupSource(this.data.groupId,o).subscribe({next:()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.ADD_EXT_SOURCES.SUCCESS_ADDED")),this.dialogRef.close(!0)},error:()=>this.loading=!1})}onAdd(){this.loading=!0,this.data.groupId?this.addGroupExtSources(this.selection.selected):this.addVoExtSources(this.selection.selected)}onCancel(){this.dialogRef.close(!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(h.KG),t.Y36(p.V6),t.Y36(p.Te))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-add-ext-source-dialog"]],decls:15,vars:16,consts:[["mat-dialog-title",""],[1,"page-subtitle"],[1,"font-size-1rem",3,"placeholder","filter"],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[3,"selection","extSources","filterValue","tableId"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"div",0)(2,"h1",1),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"perun-web-apps-immediate-filter",2),t.NdJ("filter",function(s){return o.applyFilter(s)}),t.qZA()(),t.YNc(6,Ws,1,0,"mat-spinner",3),t.YNc(7,tr,2,4,"div",4),t.TgZ(8,"div",5)(9,"button",6),t.NdJ("click",function(){return o.onCancel()}),t._uU(10),t.ALo(11,"translate"),t.qZA(),t.TgZ(12,"button",7),t.NdJ("click",function(){return o.onAdd()}),t._uU(13),t.ALo(14,"translate"),t.qZA()()()),2&e&&(t.Tol(o.theme),t.xp6(3),t.Oqu(t.lcZ(4,10,"DIALOGS.ADD_EXT_SOURCES.TITLE")),t.xp6(2),t.Q6J("placeholder","DIALOGS.ADD_EXT_SOURCES.FILTER"),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(11,12,"DIALOGS.ADD_EXT_SOURCES.CANCEL")," "),t.xp6(2),t.Q6J("disabled",0===o.selection.selected.length||o.loading),t.xp6(1),t.hij(" ",t.lcZ(14,14,"DIALOGS.ADD_EXT_SOURCES.ADD")," "))},dependencies:[_.O5,I.lW,u.uh,u.xY,u.H8,T.Ou,L.L,ct.D,m.X$],styles:[".font-size-1rem[_ngcontent-%COMP%]{font-size:1rem!important}"]}),i})();function er(i,a){1&i&&t._UZ(0,"mat-spinner",7)}function ir(i,a){1&i&&(t.TgZ(0,"th",17),t._uU(1,"id"),t.qZA())}function or(i,a){if(1&i&&(t.TgZ(0,"td",18),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Oqu(e.id)}}function nr(i,a){1&i&&(t.TgZ(0,"th",17),t._uU(1,"name"),t.qZA())}function ar(i,a){if(1&i&&(t.TgZ(0,"td",18),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Oqu(e.name)}}function sr(i,a){1&i&&t._UZ(0,"tr",19)}function rr(i,a){1&i&&t._UZ(0,"tr",20)}function lr(i,a){if(1&i&&(t.TgZ(0,"div",8)(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",9),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",10),t.ynx(8,11),t.YNc(9,ir,2,0,"th",12),t.YNc(10,or,2,1,"td",13),t.BQk(),t.ynx(11,14),t.YNc(12,nr,2,0,"th",12),t.YNc(13,ar,2,1,"td",13),t.BQk(),t.YNc(14,sr,1,0,"tr",15),t.YNc(15,rr,1,0,"tr",16),t.qZA()()),2&i){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,5,"DIALOGS.REMOVE_EXT_SOURCES.DESCRIPTION")," "),t.xp6(3),t.hij(" ",t.lcZ(6,7,"DIALOGS.REMOVE_EXT_SOURCES.ASK")," "),t.xp6(2),t.Q6J("dataSource",e.extSources),t.xp6(7),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}let qt=(()=>{class i{constructor(e,o,n,s,r,d){this.dialogRef=e,this.data=o,this.extSourceService=n,this.notificator=s,this.tableConfigService=r,this.translate=d,this.extSources=[],this.displayedColumns=["id","name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.extSources=this.data.extSources}removeVoExtSources(){const e=this.extSources.map(o=>o.id);this.extSourceService.removeExtSourcesWithVoSource(this.data.voId,e).subscribe({next:()=>{this.translate.get("DIALOGS.REMOVE_EXT_SOURCES.SUCCESS_REMOVED").subscribe(o=>{this.notificator.showSuccess(o),this.dialogRef.close(!0)})},error:()=>this.loading=!1})}removeGroupExtSources(){const e=this.extSources.map(o=>o.id);this.extSourceService.removeExtSourcesWithGroupSource(this.data.groupId,e).subscribe({next:()=>{this.translate.get("DIALOGS.REMOVE_EXT_SOURCES.SUCCESS_REMOVED").subscribe(o=>{this.notificator.showSuccess(o),this.dialogRef.close(!0)})},error:()=>this.loading=!1})}onRemove(){this.loading=!0,this.data.groupId?this.removeGroupExtSources():this.removeVoExtSources()}onCancel(){this.dialogRef.close(!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(h.KG),t.Y36(p.V6),t.Y36(C.dB),t.Y36(m.sK))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-remove-ext-source-dialog"]],decls:14,vars:14,consts:[["mat-dialog-title",""],[1,"page-subtitle"],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"div",0)(2,"h1",1),t._uU(3),t.ALo(4,"translate"),t.qZA()(),t.YNc(5,er,1,0,"mat-spinner",2),t.YNc(6,lr,16,9,"div",3),t.TgZ(7,"div",4)(8,"button",5),t.NdJ("click",function(){return o.onCancel()}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"button",6),t.NdJ("click",function(){return o.onRemove()}),t._uU(12),t.ALo(13,"translate"),t.qZA()()()),2&e&&(t.Tol(o.theme),t.xp6(3),t.Oqu(t.lcZ(4,8,"DIALOGS.REMOVE_EXT_SOURCES.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(10,10,"DIALOGS.REMOVE_EXT_SOURCES.CANCEL")," "),t.xp6(3),t.hij(" ",t.lcZ(13,12,"DIALOGS.REMOVE_EXT_SOURCES.REMOVE")," "))},dependencies:[_.O5,I.lW,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.ge,c.ev,c.XQ,c.Gk,u.uh,u.xY,u.H8,T.Ou,m.X$]}),i})();function cr(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onAdd())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.EXT_SOURCES.ADD")," "))}function pr(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onRemove())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"VO_DETAIL.SETTINGS.EXT_SOURCES.REMOVE")," ")}}function ur(i,a){1&i&&t._UZ(0,"mat-spinner",9)}function dr(i,a){if(1&i&&t._UZ(0,"app-ext-sources-list",10),2&i){const e=t.oxw();t.Q6J("extSources",e.extSources)("selection",e.selection)("displayedColumns",e.displayedColumns)("filterValue",e.filterValue)("tableId",e.tableId)}}let _r=(()=>{class i{constructor(e,o,n,s,r,d){this.extSourceService=e,this.dialog=o,this.notificator=n,this.translate=s,this.authResolver=r,this.entityStorageService=d,this.extSources=[],this.selection=new E.Ov(!0,[]),this.filterValue="",this.tableId=C.qV,this.displayedColumns=[],this.translate.get("VO_DETAIL.SETTINGS.EXT_SOURCES.SUCCESS_REMOVED").subscribe(A=>this.successMessage=A)}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.setAuthRights(),this.refreshTable()}refreshTable(){this.loading=!0,this.extSourceService.getVoExtSources(this.vo.id).subscribe(e=>{this.extSources=e,this.selection.clear(),this.setAuthRights(),this.loading=!1})}applyFilter(e){this.filterValue=e}onAdd(){const e=(0,g.kZ)();e.width="1000px",e.data={voId:this.vo.id,extSources:this.extSources,theme:"vo-theme"},this.dialog.open(Jt,e).afterClosed().subscribe(n=>{n&&this.refreshTable()})}onRemove(){const e=(0,g.kZ)();e.width="600px",e.data={voId:this.vo.id,extSources:this.selection.selected,theme:"vo-theme"},this.dialog.open(qt,e).afterClosed().subscribe(n=>{n&&this.refreshTable()})}setAuthRights(){this.addAuth=this.authResolver.isAuthorized("addExtSource_Vo_ExtSource_policy",[this.vo]),this.removeAuth=this.authResolver.isAuthorized("removeExtSource_Vo_ExtSource_policy",[this.vo]),this.displayedColumns=this.removeAuth?["select","id","name","type"]:["id","name","type"]}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.KG),t.Y36(u.uw),t.Y36(p.V6),t.Y36(m.sK),t.Y36(p.x4),t.Y36(p.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-settings-extsources"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"extSources","selection","displayedColumns","filterValue","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"extSources","selection","displayedColumns","filterValue","tableId"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return o.refreshTable()}),t.qZA(),t.YNc(5,cr,3,3,"button",2),t.YNc(6,pr,3,4,"button",3),t.TgZ(7,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(s){return o.applyFilter(s)}),t.qZA(),t.YNc(8,ur,1,0,"mat-spinner",5),t.YNc(9,dr,1,5,"app-ext-sources-list",6),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,6,"VO_DETAIL.SETTINGS.EXT_SOURCES.TITLE")),t.xp6(3),t.Q6J("ngIf",o.addAuth),t.xp6(1),t.Q6J("ngIf",o.removeAuth),t.xp6(1),t.Q6J("placeholder","VO_DETAIL.SETTINGS.EXT_SOURCES.FILTER"),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[_.O5,I.lW,T.Ou,ct.D,Z.t,L.L,m.X$]}),i})();var V=l(25788);function mr(i,a){1&i&&t._UZ(0,"mat-spinner",3)}function gr(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"perun-web-apps-vo-search-select",11),t.NdJ("voSelected",function(n){t.CHM(e);const s=t.oxw(2);return t.KtG(s.getGroupsToInclude(n.id))}),t.qZA()}if(2&i){const e=t.oxw(2);t.Q6J("vo",e.thisVo.vo)("vos",e.vosToSelect)}}const hr=function(){return["select","id","name","description"]};function fr(i,a){if(1&i&&t._UZ(0,"perun-web-apps-groups-list",12),2&i){const e=t.oxw(2);t.Q6J("groupsToDisableCheckbox",e.groupsToDisable)("disableGroups",!0)("groups",e.groups)("selection",e.selection)("disableHeadCheckbox",!0)("disableRouting",!0)("displayedColumns",t.DdM(10,hr))("filter",e.filterValue)("tableId",e.tableId)("relation",!0)}}function Ar(i,a){1&i&&t._UZ(0,"mat-spinner",3)}function Tr(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div"),t.YNc(1,gr,1,2,"perun-web-apps-vo-search-select",4),t.TgZ(2,"perun-web-apps-immediate-filter",5),t.NdJ("filter",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.applyFilter(n))}),t.qZA(),t.TgZ(3,"div",6),t.YNc(4,fr,1,11,"perun-web-apps-groups-list",7),t.qZA(),t.YNc(5,Ar,1,0,"mat-spinner",1),t.TgZ(6,"div",8)(7,"button",9),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onCancel())}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",10),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onSubmit())}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()}if(2&i){const e=t.oxw();t.Tol(e.theme),t.xp6(1),t.Q6J("ngIf",e.vosToSelect.length>1),t.xp6(1),t.Q6J("placeholder","GROUP_DETAIL.SETTINGS.RELATIONS.FILTER"),t.xp6(2),t.Q6J("ngIf",!e.loading),t.xp6(1),t.Q6J("ngIf",e.loading),t.xp6(3),t.hij(" ",t.lcZ(9,10,"DIALOGS.CREATE_RELATION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",e.loading||e.initLoading||0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(12,12,"DIALOGS.CREATE_RELATION.CREATE")," ")}}let Ir=(()=>{class i{constructor(e,o,n,s,r,d,A){this.dialogRef=e,this.groupService=o,this.notificator=n,this.translate=s,this.guiAuthResolver=r,this.voService=d,this.data=A,this.selection=new E.Ov(!1,[]),this.filterValue="",this.tableId=C.RS,this.groupsToDisable=new Set,this.vosToSelect=[],s.get("DIALOGS.CREATE_RELATION.SUCCESS").subscribe(v=>this.successMessage=v)}ngOnInit(){this.initLoading=!0,this.groupService.getGroupUnions(this.data.group.id,!this.data.reverse).subscribe(e=>{e=e.concat(this.data.groups),this.groupsToNotInclude=e.map(o=>o.id),this.voService.getEnrichedVoById(this.data.voId).subscribe(o=>{this.thisVo=o,this.vosToSelect=o.memberVos.filter(n=>this.guiAuthResolver.isAuthorized("getAllAllowedGroupsToHierarchicalVo_Vo_policy",[n])),this.vosToSelect.push(o.vo),this.getGroupsToInclude(this.data.voId),this.initLoading=!1})},()=>this.initLoading=!1),this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}getGroupsToInclude(e){this.loading=!0,e===this.data.voId?this.groupService.getAllGroups(this.data.voId).subscribe(o=>{this.finishLoadingGroups(o)},()=>this.loading=!1):this.groupService.getVoAllAllowedGroupsToHierarchicalVo(this.data.voId,e).subscribe(o=>{this.finishLoadingGroups(o)},()=>this.loading=!1)}onSubmit(){this.loading=!0,this.groupService.createGroupUnion(this.data.group.id,this.selection.selected[0].id).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}applyFilter(e){this.filterValue=e}setGroupsToDisable(){for(const e of this.groups)(!this.guiAuthResolver.isAuthorized("result-createGroupUnion_Group_Group_policy",[this.data.group])||!this.guiAuthResolver.isAuthorized("operand-createGroupUnion_Group_Group_policy",[e]))&&this.groupsToDisable.add(e.id)}finishLoadingGroups(e){this.groups=e.filter(o=>!this.groupsToNotInclude.includes(o.id)&&o.id!==this.data.group.id),this.setGroupsToDisable(),this.selection.clear(),this.loading=!1}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(h.ff),t.Y36(p.V6),t.Y36(m.sK),t.Y36(p.x4),t.Y36(h.YF),t.Y36(u.WI))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-create-relation-dialog"]],decls:6,vars:8,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[3,"class",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"vo","vos","voSelected",4,"ngIf"],[3,"placeholder","filter"],["mat-dialog-content","",1,"dialog-container"],[3,"groupsToDisableCheckbox","disableGroups","groups","selection","disableHeadCheckbox","disableRouting","displayedColumns","filter","tableId","relation",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[3,"vo","vos","voSelected"],[3,"groupsToDisableCheckbox","disableGroups","groups","selection","disableHeadCheckbox","disableRouting","displayedColumns","filter","tableId","relation"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div"),t.YNc(4,mr,1,0,"mat-spinner",1),t.qZA(),t.YNc(5,Tr,13,14,"div",2)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"DIALOGS.CREATE_RELATION.TITLE")),t.xp6(2),t.Tol(o.theme),t.xp6(1),t.Q6J("ngIf",o.initLoading),t.xp6(1),t.Q6J("ngIf",!o.initLoading))},dependencies:[_.O5,I.lW,u.uh,u.xY,u.H8,T.Ou,V.W,L.L,lt.M,m.X$]}),i})();function br(i,a){1&i&&t._UZ(0,"mat-spinner",6)}function vr(i,a){1&i&&t._UZ(0,"th",15)}function Er(i,a){if(1&i&&(t.TgZ(0,"td",16),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Oqu(e.name)}}function Cr(i,a){1&i&&t._UZ(0,"tr",17)}function Sr(i,a){1&i&&t._UZ(0,"tr",18)}function xr(i,a){if(1&i&&(t.TgZ(0,"div",7)(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",8),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",9),t.ynx(8,10),t.YNc(9,vr,1,0,"th",11),t.YNc(10,Er,2,1,"td",12),t.BQk(),t.YNc(11,Cr,1,0,"tr",13),t.YNc(12,Sr,1,0,"tr",14),t.qZA()()),2&i){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,5,"DIALOGS.REMOVE_RELATION.DESCRIPTION")," "),t.xp6(3),t.hij(" ",t.lcZ(6,7,"DIALOGS.REMOVE_RELATION.ASK")," "),t.xp6(2),t.Q6J("dataSource",e.dataSource),t.xp6(4),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}let Nr=(()=>{class i{constructor(e,o,n,s,r){this.dialogRef=e,this.data=o,this.notificator=n,this.groupService=s,this.translate=r,this.displayedColumns=["name"],r.get("DIALOGS.REMOVE_RELATION.SUCCESS").subscribe(d=>this.successMessage=d)}ngOnInit(){this.theme=this.data.theme,this.dataSource=new c.by(this.data.groups)}onCancel(){this.dialogRef.close(!1)}onSubmit(){if(this.loading=!0,1===this.data.groups.length)this.groupService.removeGroupUnion(this.data.reverse?this.data.groups[0].id:this.data.groupId,this.data.reverse?this.data.groupId:this.data.groups[0].id).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1);else{const e=this.data.reverse?this.data.groups.shift().id:this.data.groupId,o=this.data.reverse?this.data.groupId:this.data.groups.shift().id;this.groupService.removeGroupUnion(e,o).subscribe(()=>{this.onSubmit(),this.dialogRef.close(!0)},()=>this.loading=!1)}}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(p.V6),t.Y36(h.ff),t.Y36(m.sK))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-remove-relation-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,br,1,0,"mat-spinner",1),t.YNc(5,xr,13,9,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return o.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return o.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.REMOVE_RELATION.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.REMOVE_RELATION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",o.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.REMOVE_RELATION.DELETE")," "))},dependencies:[_.O5,I.lW,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.ge,c.ev,c.XQ,c.Gk,u.uh,u.xY,u.H8,T.Ou,m.X$]}),i})();var K=l(54004);function Or(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"span",8),t.ALo(1,"translate"),t.TgZ(2,"button",9),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onDelete())}),t._uU(3),t.ALo(4,"translate"),t.qZA()()}if(2&i){const e=a.ngIf,o=t.oxw();t.s9C("matTooltip",t.lcZ(1,4,"GROUP_DETAIL.SETTINGS.RELATIONS.DELETE_TOOLTIP")),t.Q6J("matTooltipDisabled",0===o.selection.selected.length||e.removeAuth),t.xp6(2),t.Q6J("disabled",0===o.selection.selected.length||!e.removeAuth||o.reverse),t.xp6(1),t.hij(" ",t.lcZ(4,6,"GROUP_DETAIL.SETTINGS.RELATIONS.DELETE")," ")}}function Zr(i,a){1&i&&t._UZ(0,"mat-spinner",10)}const Dr=function(){return["select","id","vo","name","description"]};function Mr(i,a){if(1&i&&t._UZ(0,"perun-web-apps-groups-list",11),2&i){const e=t.oxw();t.Q6J("groups",e.groups)("parentGroup",e.group)("disableHeadCheckbox",!0)("selection",e.selection)("displayedColumns",t.DdM(7,Dr))("filter",e.filterValue)("tableId",e.tableId)}}const Lr=function(i){return{removeAuth:i}};let Rr=(()=>{class i{constructor(e,o,n,s){this.groupService=e,this.dialog=o,this.entityStorageService=n,this.authResolver=s,this.selection=new E.Ov(!0,[]),this.groups=[],this.reverse=!1,this.filterValue="",this.tableId=C._7,this.removeAuth$=this.selection.changed.pipe((0,K.U)(r=>r.source.selected.reduce((d,A)=>d&&this.authResolver.isAuthorized("result-removeGroupUnion_Group_Group_policy",[{id:this.group.id,beanName:"Group"}])&&this.authResolver.isAuthorized("operand-removeGroupUnion_Group_Group_policy",[A]),!0)))}ngOnInit(){this.group=this.entityStorageService.getEntity(),this.refreshTable()}onCreate(){const e=(0,g.kZ)();e.width="1050px",e.data={groups:this.groups,theme:"group-theme",group:this.group,voId:this.group.voId,reverse:this.reverse},this.dialog.open(Ir,e).afterClosed().subscribe(n=>{n&&this.refreshTable()})}onDelete(){const e=(0,g.kZ)();e.width="450px",e.data={groups:this.selection.selected,theme:"group-theme",groupId:this.group.id,reverse:this.reverse},this.dialog.open(Nr,e).afterClosed().subscribe(n=>{n&&this.refreshTable()})}refreshTable(){this.loading=!0,this.selection.clear(),this.groupService.getGroupUnions(this.group.id,this.reverse).subscribe(e=>{this.groups=e,this.loading=!1},()=>this.loading=!1)}applyFilter(e){this.filterValue=e}showReverseUnions(){this.reverse=!this.reverse,this.refreshTable()}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.ff),t.Y36(u.uw),t.Y36(p.fb),t.Y36(p.x4))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-settings-relations"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:16,vars:18,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"disabled","click"],[3,"matTooltip","matTooltipDisabled",4,"ngIf"],[3,"placeholder","filter"],[3,"change"],["class","ml-auto mr-auto",4,"ngIf"],[3,"groups","parentGroup","disableHeadCheckbox","selection","displayedColumns","filter","tableId",4,"ngIf"],[3,"matTooltip","matTooltipDisabled"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"groups","parentGroup","disableHeadCheckbox","selection","displayedColumns","filter","tableId"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return o.refreshTable()}),t.qZA(),t.TgZ(5,"button",2),t.NdJ("click",function(){return o.onCreate()}),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.YNc(8,Or,5,8,"span",3),t.ALo(9,"async"),t.TgZ(10,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(s){return o.applyFilter(s)}),t.qZA(),t.TgZ(11,"mat-checkbox",5),t.NdJ("change",function(){return o.showReverseUnions()}),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.YNc(14,Zr,1,0,"mat-spinner",6),t.YNc(15,Mr,1,8,"perun-web-apps-groups-list",7),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,8,"GROUP_DETAIL.SETTINGS.RELATIONS.TITLE")),t.xp6(3),t.Q6J("disabled",o.reverse),t.xp6(1),t.hij(" ",t.lcZ(7,10,"GROUP_DETAIL.SETTINGS.RELATIONS.CREATE")," "),t.xp6(2),t.Q6J("ngIf",t.VKq(16,Lr,t.lcZ(9,12,o.removeAuth$))),t.xp6(2),t.Q6J("placeholder","GROUP_DETAIL.SETTINGS.RELATIONS.FILTER"),t.xp6(2),t.Oqu(t.lcZ(13,14,"GROUP_DETAIL.SETTINGS.RELATIONS.REVERSE_UNIONS")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[_.O5,I.lW,j.oG,T.Ou,N.gM,V.W,Z.t,L.L,_.Ov,m.X$]}),i})();var $=l(64901),wr=l(99168);function Gr(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",6),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.showAllDetails=!0)}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBER_DETAIL.APPLICATIONS.SHOW_ALL_DETAILS")," "))}function Ur(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",6),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.showAllDetails=!1)}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBER_DETAIL.APPLICATIONS.SHOW_LESS_DETAILS")," "))}function Pr(i,a){1&i&&t._UZ(0,"mat-spinner",7)}function yr(i,a){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"app-applications-dynamic-list",8),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("tableId",e.showAllDetails?e.detailTableId:e.tableId)("searchString",e.filterValue)("member",e.member)("displayedColumns",e.showAllDetails?e.detailedDisplayedColumns:e.displayedColumns)("dateFrom",e.dateFrom)("refreshTable",e.refresh)}}let Vr=(()=>{class i{constructor(e,o,n){this.registrarManager=e,this.memberManager=o,this.route=n,this.loading=!1,this.displayedColumns=["id","createdAt","type","state","user","groupName","modifiedBy"],this.detailedDisplayedColumns=["id","createdAt","voId","voName","groupId","groupName","type","state","extSourceName","extSourceType","user","createdBy","modifiedBy","modifiedAt","fedInfo"],this.filterValue="",this.showAllDetails=!1,this.detailTableId=C.d7,this.tableId=C.vq,this.dateFrom=new Date("1970-01-01")}ngOnInit(){this.loading=!0,this.route.parent.params.subscribe(e=>{this.memberId=Number(e.memberId),this.memberManager.getMemberById(this.memberId).subscribe(o=>{this.member=o,this.loading=!1})})}applyFilter(e){this.filterValue=e}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.tk),t.Y36(h.uq),t.Y36(b.gz))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-member-applications"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2","mat-stroked-button","",3,"click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],["mat-stroked-button","",1,"mr-2",3,"click"],[1,"ml-auto","mr-auto"],[3,"tableId","searchString","member","displayedColumns","states","dateFrom","refreshTable"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div")(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return o.refresh=!o.refresh}),t.qZA(),t.YNc(5,Gr,3,3,"button",2),t.YNc(6,Ur,3,3,"button",2),t.TgZ(7,"perun-web-apps-debounce-filter",3),t.NdJ("filter",function(s){return o.applyFilter(s)}),t.qZA()(),t.YNc(8,Pr,1,0,"mat-spinner",4),t.YNc(9,yr,2,6,"div",5)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"MEMBER_DETAIL.APPLICATIONS.TITLE")),t.xp6(4),t.Q6J("ngIf",!o.showAllDetails),t.xp6(1),t.Q6J("ngIf",o.showAllDetails),t.xp6(1),t.Q6J("placeholder","MEMBER_DETAIL.APPLICATIONS.FILTER"),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[_.O5,I.lW,T.Ou,Z.t,$.P,wr.S,m.X$]}),i})();var pt=l(68675),w=l(86257),kt=l(47957);function Fr(i,a){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"DIALOGS.ADD_MEMBER_TO_RESOURCE.SELECT_RESOURCE"))}function Yr(i,a){1&i&&t._UZ(0,"mat-spinner",13)}function Jr(i,a){if(1&i&&(t.TgZ(0,"mat-option",24),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function qr(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-option",25),t.NdJ("click",function(){const s=t.CHM(e).$implicit,r=t.oxw(2);return r.setResource(s),t.KtG(r.stepper.selected.completed=!0)}),t._uU(1),t.qZA()}if(2&i){const e=a.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.name," ")}}function kr(i,a){if(1&i&&(t.TgZ(0,"div",22),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Oqu(e.name)}}function Qr(i,a){if(1&i&&(t.TgZ(0,"div")(1,"div")(2,"mat-form-field",14),t._UZ(3,"input",15),t.ALo(4,"translate"),t.TgZ(5,"mat-autocomplete",16,17),t.YNc(7,Jr,2,2,"mat-option",18),t.ALo(8,"async"),t.qZA()()(),t.TgZ(9,"div")(10,"mat-form-field",14)(11,"mat-select",19),t.ALo(12,"translate"),t.YNc(13,qr,2,2,"mat-option",20),t.ALo(14,"async"),t.qZA()()(),t.TgZ(15,"div")(16,"span",21),t._uU(17),t.ALo(18,"translate"),t.qZA(),t.TgZ(19,"div",22),t._uU(20),t.qZA()(),t.TgZ(21,"div")(22,"span",21),t._uU(23),t.ALo(24,"translate"),t.qZA(),t.YNc(25,kr,2,1,"div",23),t.qZA()()),2&i){const e=t.MAs(6),o=t.oxw();t.xp6(3),t.s9C("placeholder",t.lcZ(4,10,"DIALOGS.ADD_MEMBER_TO_RESOURCE.FILTER")),t.Q6J("formControl",o.facilityCtrl)("matAutocomplete",e),t.xp6(4),t.Q6J("ngForOf",t.lcZ(8,12,o.filteredFacilities)),t.xp6(4),t.s9C("placeholder",t.lcZ(12,14,"DIALOGS.ADD_MEMBER_TO_RESOURCE.SELECTED")),t.xp6(2),t.Q6J("ngForOf",t.lcZ(14,16,o.filteredResources)),t.xp6(4),t.Oqu(t.lcZ(18,18,"DIALOGS.ADD_MEMBER_TO_RESOURCE.DESCRIPTION")),t.xp6(3),t.Oqu(o.description),t.xp6(3),t.Oqu(t.lcZ(24,20,"DIALOGS.ADD_MEMBER_TO_RESOURCE.SERVICES")),t.xp6(2),t.Q6J("ngForOf",o.services)}}function Br(i,a){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"DIALOGS.ADD_MEMBER_TO_RESOURCE.ADD_GROUP"))}function Hr(i,a){1&i&&t._UZ(0,"mat-spinner",13)}const jr=function(){return["select","id","name","description"]};function zr(i,a){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"perun-web-apps-groups-list",26),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("disableGroups",!0)("disableHeadCheckbox",!0)("disableRouting",!0)("groupsToDisableCheckbox",e.membersGroupsId)("groups",e.groups)("displayedColumns",t.DdM(7,jr))("selection",e.selectedGroups)}}function $r(i,a){1&i&&(t.TgZ(0,"perun-web-apps-alert",27),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_MEMBER_TO_RESOURCE.NO_GROUPS")," "))}function Xr(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",28),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.stepperPrevious())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_MEMBER_TO_RESOURCE.BACK")," "))}function Kr(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",29),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return n.stepperNext(),t.KtG(n.loadGroups())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.ekj("ml-2",void 0!==e.stepper&&0!==e.stepper.selectedIndex)("ml-auto",!(void 0!==e.stepper&&0!==e.stepper.selectedIndex)),t.Q6J("disabled",null===e.selectedResource||e.processing||e.loading),t.xp6(1),t.hij(" ",t.lcZ(2,6,"DIALOGS.ADD_MEMBER_TO_RESOURCE.CONTINUE")," ")}}function Wr(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",30),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onFinish())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selectedGroups.selected.length||e.processing),t.xp6(1),t.hij(" ",t.lcZ(2,2,"DIALOGS.ADD_MEMBER_TO_RESOURCE.SUBMIT")," ")}}let tl=(()=>{class i{constructor(e,o,n,s,r,d,A,v){this.dialogRef=e,this.data=o,this.resourceManager=n,this.groupManager=s,this.notificator=r,this.translate=d,this.authResolver=A,this.cd=v,this.loading=!1,this.processing=!1,this.membersGroupsId=new Set,this.facilityCtrl=new f.p4,this.facilitiesNames=[],this.resources=[],this.selectedResource=null,this.services=[],this.description="",this.groups=[],this.selectedGroups=new E.Ov(!1,[])}ngAfterViewInit(){this.stepper.selectionChange.subscribe(()=>{this.selectedGroups.clear()}),this.cd.detectChanges()}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.resourceManager.getRichResources(this.data.voId).subscribe(e=>{this.resources=e,this.getResourceFacilities(),this.loading=!1},()=>this.loading=!1)}setResource(e){this.processing=!0,this.selectedResource=e,this.resourceManager.getAssignedServicesToResource(this.selectedResource.id).subscribe(o=>{this.services=o,this.processing=!1},()=>this.processing=!1),this.description=this.selectedResource.description}loadGroups(){this.processing=!0,this.resourceManager.getAssignedGroups(this.selectedResource.id).subscribe(e=>{this.groups=e,this.groupManager.getAllMemberGroups(this.data.memberId).subscribe(o=>{this.membersGroupsId=new Set(o.map(n=>n.id)),this.groups.forEach(n=>{this.authResolver.isAuthorized("addMember_Group_Member_policy",[n])||this.membersGroupsId.add(n.id)}),this.processing=!1},()=>this.processing=!1)})}onFinish(){this.processing=!0,this.groupManager.addMembers(this.selectedGroups.selected[0].id,[this.data.memberId]).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.ADD_MEMBER_TO_RESOURCE.SUCCESS")),this.dialogRef.close(!0)},()=>this.processing=!1)}onCancel(){this.dialogRef.close(!1)}stepperPrevious(){this.stepper.previous()}stepperNext(){this.stepper.next()}getResourceFacilities(){const e=new Set;for(const o of this.resources)e.add(o.facility.name);this.facilitiesNames=Array.from(e),this.filteredFacilities=this.facilityCtrl.valueChanges.pipe((0,pt.O)(""),(0,K.U)(o=>this.filterFacilities(o))),this.filteredResources=this.facilityCtrl.valueChanges.pipe((0,pt.O)(""),(0,K.U)(o=>this.filterResources(o)))}filterFacilities(e){const o=e.toLowerCase();return this.facilitiesNames.filter(s=>s.toLowerCase().includes(o)).sort((s,r)=>s.toLowerCase().localeCompare(r.toLowerCase()))}filterResources(e){if(null==e)return this.resources;const o=e.toLowerCase();return this.resources.filter(s=>s.facility.name.toLowerCase().startsWith(o)).sort((s,r)=>s.name.toLowerCase().localeCompare(r.name.toLowerCase()))}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(h.xk),t.Y36(h.ff),t.Y36(p.V6),t.Y36(m.sK),t.Y36(p.x4),t.Y36(t.sBO))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-add-member-to-resource-dialog"]],viewQuery:function(e,o){if(1&e&&t.Gf(w.Vq,5),2&e){let n;t.iGM(n=t.CRH())&&(o.stepper=n.first)}},decls:22,vars:18,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],[3,"linear"],["completed","false"],["matStepLabel",""],["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],["alert_type","warn",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",3,"click"],["class","ml-auto","mat-flat-button","",3,"click",4,"ngIf"],["color","accent","mat-flat-button","",3,"ml-2","ml-auto","disabled","click",4,"ngIf"],["class","ml-2","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],[1,"mr-auto","ml-auto"],[1,"input-style"],["aria-label","Number","matInput","","type","text",3,"formControl","matAutocomplete","placeholder"],["autoActiveFirstOption",""],["autoFacility","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],["disableOptionCentering","true","required","",3,"placeholder"],[3,"value","click",4,"ngFor","ngForOf"],[1,"font-weight-bold"],[1,"ml-5"],["class","ml-5",4,"ngFor","ngForOf"],[3,"value"],[3,"value","click"],[3,"disableGroups","disableHeadCheckbox","disableRouting","groupsToDisableCheckbox","groups","displayedColumns","selection"],["alert_type","warn"],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",3,"disabled","click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",1)(5,"mat-stepper",2)(6,"mat-step",3),t.YNc(7,Fr,2,3,"ng-template",4),t.YNc(8,Yr,1,0,"mat-spinner",5),t.YNc(9,Qr,26,22,"div",6),t.qZA(),t.TgZ(10,"mat-step"),t.YNc(11,Br,2,3,"ng-template",4),t.YNc(12,Hr,1,0,"mat-spinner",5),t.YNc(13,zr,2,8,"div",6),t.YNc(14,$r,3,3,"perun-web-apps-alert",7),t.qZA()()(),t.TgZ(15,"div",8)(16,"button",9),t.NdJ("click",function(){return o.onCancel()}),t._uU(17),t.ALo(18,"translate"),t.qZA(),t.YNc(19,Xr,3,3,"button",10),t.YNc(20,Kr,3,8,"button",11),t.YNc(21,Wr,3,4,"button",12),t.qZA()()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,14,"DIALOGS.ADD_MEMBER_TO_RESOURCE.TITLE")),t.xp6(3),t.Q6J("linear",!0),t.xp6(3),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.Q6J("ngIf",o.processing),t.xp6(1),t.Q6J("ngIf",0!==o.groups.length&&!o.processing),t.xp6(1),t.Q6J("ngIf",0===o.groups.length&&!o.processing),t.xp6(3),t.hij(" ",t.lcZ(18,16,"DIALOGS.ADD_MEMBER_TO_RESOURCE.CANCEL")," "),t.xp6(2),t.Q6J("ngIf",void 0!==o.stepper&&0!==o.stepper.selectedIndex),t.xp6(1),t.Q6J("ngIf",void 0!==o.stepper&&o.stepper.selectedIndex!==o.stepper._steps.length-1),t.xp6(1),t.Q6J("ngIf",void 0!==o.stepper&&o.stepper.selectedIndex===o.stepper._steps.length-1))},dependencies:[_.sg,_.O5,kt.XC,kt.ZL,H.ey,x.KE,y.Nt,f.Fj,f.JJ,f.oH,I.lW,u.uh,u.xY,u.H8,z.gD,T.Ou,w.C0,w.VY,w.Vq,R.w,V.W,_.Ov,m.X$],styles:[".input-style[_ngcontent-%COMP%]{margin-left:50px;width:75%}"]}),i})();var el=l(62109);function il(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",6),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.addResource())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBER_DETAIL.RESOURCES.ADD")," "))}function ol(i,a){if(1&i&&t._UZ(0,"perun-web-apps-resources-list",7),2&i){const e=t.oxw();t.Q6J("disableRouting",!e.routeAuth)("filterValue",e.filterValue)("displayedColumns",e.displayedColumns)("routingVo",!0)("resources",e.resources)("tableId",e.tableId)}}function nl(i,a){1&i&&t._UZ(0,"mat-spinner",8)}let al=(()=>{class i{constructor(e,o,n,s,r){this.dialog=e,this.memberManager=o,this.resourceManager=n,this.route=s,this.authResolver=r,this.resources=[],this.filterValue="",this.loading=!1,this.displayedColumns=["id","name","vo","facility","tags","description"],this.tableId=C.aL}ngOnInit(){this.route.parent.params.subscribe(e=>{const o=Number(e.memberId);this.memberManager.getMemberById(o).subscribe(n=>{this.member=n,this.refreshTable()})})}addResource(){const e=(0,g.kZ)();e.width="1200px",e.data={memberId:this.member.id,voId:this.member.voId,theme:"member-theme"},this.dialog.open(tl,e).afterClosed().subscribe(n=>{n&&this.refreshTable()})}refreshTable(){this.loading=!0,this.resourceManager.getAssignedRichResourcesWithMember(this.member.id).subscribe(e=>{this.resources=e,this.setAuthRights(),this.loading=!1})}setAuthRights(){const e={id:this.member.voId,beanName:"Vo"};this.addAuth=this.authResolver.isAuthorized("getRichResources_Vo_policy",[e])&&this.authResolver.isAuthorized("addMembers_Group_List_policy",[e]),0!==this.resources.length&&(this.routeAuth=this.authResolver.isAuthorized("getResourceById_int_policy",[e,this.resources[0]]))}applyFilter(e){this.filterValue=e}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.uw),t.Y36(h.uq),t.Y36(h.xk),t.Y36(b.gz),t.Y36(p.x4))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-member-resources"]],decls:9,vars:7,consts:[[1,"page-subtitle"],[3,"refresh"],["class","action-button","color","accent","class","mr-2","mat-flat-button","",3,"click",4,"ngIf"],[3,"placeholder","filter"],[3,"disableRouting","filterValue","displayedColumns","routingVo","resources","tableId",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2",3,"click"],[3,"disableRouting","filterValue","displayedColumns","routingVo","resources","tableId"],[1,"mr-auto","ml-auto"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return o.refreshTable()}),t.qZA(),t.YNc(5,il,3,3,"button",2),t.TgZ(6,"perun-web-apps-immediate-filter",3),t.NdJ("filter",function(s){return o.applyFilter(s)}),t.qZA(),t.YNc(7,ol,1,6,"perun-web-apps-resources-list",4),t.qZA(),t.YNc(8,nl,1,0,"mat-spinner",5)),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,5,"MEMBER_DETAIL.RESOURCES.TITLE")),t.xp6(3),t.Q6J("ngIf",o.addAuth),t.xp6(1),t.Q6J("placeholder","MEMBER_DETAIL.RESOURCES.FILTER"),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(1),t.Q6J("ngIf",o.loading))},dependencies:[_.O5,I.lW,T.Ou,Z.t,L.L,el.C,m.X$]}),i})();var sl=l(98918),rl=l(4675),ll=l(258),cl=l(60113),pl=l(16500),ul=l(92090),dl=l(20057),_l=l(49546),ml=l(76023),gl=l(11042);function hl(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onAdd())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"GROUP_DETAIL.SETTINGS.EXT_SOURCES.ADD")," "))}function fl(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onRemove())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"GROUP_DETAIL.SETTINGS.EXT_SOURCES.REMOVE")," ")}}function Al(i,a){1&i&&t._UZ(0,"mat-spinner",9)}function Tl(i,a){if(1&i&&t._UZ(0,"app-ext-sources-list",10),2&i){const e=t.oxw();t.Q6J("extSources",e.extSources)("selection",e.selection)("displayedColumns",e.displayedColumns)("filterValue",e.filterValue)("tableId",e.tableId)}}let Il=(()=>{class i{constructor(e,o,n,s,r,d){this.extSourceService=e,this.dialog=o,this.notificator=n,this.translate=s,this.authResolver=r,this.entityStorageService=d,this.extSources=[],this.selection=new E.Ov(!0,[]),this.filterValue="",this.tableId=C.S7,this.displayedColumns=[],this.translate.get("GROUP_DETAIL.SETTINGS.EXT_SOURCES.SUCCESS_REMOVED").subscribe(A=>this.successMessage=A)}ngOnInit(){this.group=this.entityStorageService.getEntity(),this.setAuthRights(),this.refreshTable()}setAuthRights(){this.addAuth=this.authResolver.isAuthorized("addExtSource_Group_ExtSource_policy",[this.group]),this.removeAuth=this.authResolver.isAuthorized("removeExtSource_Group_ExtSource_policy",[this.group]),this.displayedColumns=this.removeAuth?["select","id","name","type"]:["id","name","type"]}refreshTable(){this.loading=!0,this.extSourceService.getGroupExtSources(this.group.id).subscribe(e=>{this.extSources=e,this.selection.clear(),this.loading=!1})}applyFilter(e){this.filterValue=e}onAdd(){const e=(0,g.kZ)();e.width="1000px",e.data={voId:this.group.voId,groupId:this.group.id,extSources:this.extSources,theme:"group-theme"},this.dialog.open(Jt,e).afterClosed().subscribe(n=>{n&&this.refreshTable()})}onRemove(){const e=(0,g.kZ)();e.width="600px",e.data={voId:this.group.voId,groupId:this.group.id,extSources:this.selection.selected,theme:"group-theme"},this.dialog.open(qt,e).afterClosed().subscribe(n=>{n&&this.refreshTable()})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.KG),t.Y36(u.uw),t.Y36(p.V6),t.Y36(m.sK),t.Y36(p.x4),t.Y36(p.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-settings-extsources"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"extSources","selection","displayedColumns","filterValue","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"extSources","selection","displayedColumns","filterValue","tableId"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return o.refreshTable()}),t.qZA(),t.YNc(5,hl,3,3,"button",2),t.YNc(6,fl,3,4,"button",3),t.TgZ(7,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(s){return o.applyFilter(s)}),t.qZA(),t.YNc(8,Al,1,0,"mat-spinner",5),t.YNc(9,Tl,1,5,"app-ext-sources-list",6),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,6,"GROUP_DETAIL.SETTINGS.EXT_SOURCES.TITLE")),t.xp6(3),t.Q6J("ngIf",o.addAuth),t.xp6(1),t.Q6J("ngIf",o.removeAuth),t.xp6(1),t.Q6J("placeholder","GROUP_DETAIL.SETTINGS.EXT_SOURCES.FILTER"),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[_.O5,I.lW,T.Ou,ct.D,Z.t,L.L,m.X$]}),i})();function bl(i,a){1&i&&t._UZ(0,"th",9)}function vl(i,a){if(1&i&&(t.TgZ(0,"td",10),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.hij("",e,":")}}function El(i,a){1&i&&t._UZ(0,"th",9)}function Cl(i,a){if(1&i&&(t.TgZ(0,"td",11),t._uU(1),t.qZA()),2&i){const e=a.$implicit,o=t.oxw();t.xp6(1),t.hij(" ",o.statistics.get(e.toLowerCase())," ")}}function Sl(i,a){1&i&&t._UZ(0,"tr",12)}let Qt=(()=>{class i{constructor(){this.rowNames=[],this.title="",this.statistics=new Map,this.dataSource=null,this.displayedColumns=["name","value"]}ngOnInit(){this.dataSource=new c.by(this.rowNames)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-statistics-card"]],inputs:{rowNames:"rowNames",title:"title",statistics:"statistics"},decls:15,vars:5,consts:[[1,"mat-elevation-z3","align-card"],[1,"page-subtitle"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["class","font-weight-bold","mat-cell","",4,"matCellDef"],["matColumnDef","value"],["mat-cell","",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"font-weight-bold"],["mat-cell",""],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"mat-card",0)(1,"mat-card-header")(2,"mat-card-title")(3,"h1",1),t._uU(4),t.ALo(5,"translate"),t.qZA()()(),t.TgZ(6,"mat-card-content")(7,"table",2),t.ynx(8,3),t.YNc(9,bl,1,0,"th",4),t.YNc(10,vl,2,1,"td",5),t.BQk(),t.ynx(11,6),t.YNc(12,El,1,0,"th",4),t.YNc(13,Cl,2,1,"td",7),t.BQk(),t.YNc(14,Sl,1,0,"tr",8),t.qZA()()()),2&e&&(t.xp6(4),t.Oqu(t.lcZ(5,3,o.title)),t.xp6(3),t.Q6J("dataSource",o.dataSource),t.xp6(7),t.Q6J("matRowDefColumns",o.displayedColumns))},dependencies:[c.BZ,c.fO,c.w1,c.Dz,c.nj,c.ge,c.ev,c.Gk,U.a8,U.dk,U.dn,U.n5,m.X$],styles:[".align-card[_ngcontent-%COMP%]{margin:1rem 1rem 1rem 0rem;display:inline-block;vertical-align:top}"]}),i})();function xl(i,a){1&i&&t._UZ(0,"mat-spinner",3)}function Nl(i,a){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"app-statistics-card",4),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("rowNames",e.rowNames)("statistics",e.membersCount)("title","VO_DETAIL.STATISTICS.MEMBERS_COUNT")}}let Ol=(()=>{class i{constructor(e,o){this.voService=e,this.entityStorageService=o,this.loading=!1,this.rowNames=["Members","Valid","Invalid","Expired","Disabled"],this.membersCount=new Map([["members",0],["valid",0],["invalid",0],["expired",0],["disabled",0]]),this.dataSource=new c.by}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.dataSource=new c.by(this.rowNames),this.voService.getVoMembersCountsByStatus(this.vo.id).subscribe(e=>{this.allMembersCount=0;for(const o of Object.keys(e))this.membersCount.set(o.toLowerCase(),e[o]),this.allMembersCount+=e[o];this.membersCount.set("members",this.allMembersCount),this.loading=!1},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.YF),t.Y36(p.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-statistics"]],decls:5,vars:5,consts:[[1,"page-subtitle"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"rowNames","statistics","title"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.YNc(3,xl,1,0,"mat-spinner",1),t.YNc(4,Nl,2,3,"div",2)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,3,"VO_DETAIL.STATISTICS.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[_.O5,T.Ou,Qt,m.X$]}),i})();function Zl(i,a){1&i&&t._UZ(0,"mat-spinner",3)}function Dl(i,a){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"app-statistics-card",4)(2,"app-statistics-card",4),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("rowNames",e.voStatusCountsRowNames)("statistics",e.membersCountsByVoStatus)("title","GROUP_DETAIL.STATISTICS.VO_STATUS_COUNT"),t.xp6(1),t.Q6J("rowNames",e.groupStatusCountsRowNames)("statistics",e.membersCountsByGroupStatus)("title","GROUP_DETAIL.STATISTICS.GROUP_STATUS_COUNT")}}let Ml=(()=>{class i{constructor(e,o){this.groupService=e,this.entityStorageService=o,this.loading=!1,this.voStatusCountsRowNames=["Members","Valid","Invalid","Expired","Disabled"],this.membersCountsByVoStatus=new Map,this.groupStatusCountsRowNames=["Members","Valid","Expired"],this.membersCountsByGroupStatus=new Map}ngOnInit(){this.loading=!0,this.group=this.entityStorageService.getEntity(),this.groupService.getGroupMembersCount(this.group.id).subscribe(e=>{this.membersCountsByVoStatus.set("members",e),this.membersCountsByGroupStatus.set("members",e),this.groupService.getGroupMembersCountsByVoStatus(this.group.id).subscribe(o=>{Object.entries(o).forEach(([n,s])=>this.membersCountsByVoStatus.set(n.toLowerCase(),s)),this.groupService.getGroupMembersCountsByGroupStatus(this.group.id).subscribe(n=>{Object.entries(n).forEach(([s,r])=>this.membersCountsByGroupStatus.set(s.toLowerCase(),r)),this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.ff),t.Y36(p.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-statistics"]],decls:5,vars:5,consts:[[1,"page-subtitle"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"rowNames","statistics","title"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.YNc(3,Zl,1,0,"mat-spinner",1),t.YNc(4,Dl,3,6,"div",2)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,3,"GROUP_DETAIL.STATISTICS.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[_.O5,T.Ou,Qt,m.X$]}),i})();function Ll(i,a){1&i&&t._UZ(0,"mat-spinner",6)}const Rl=function(){return["select","id","name","description"]};function wl(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",7)(1,"perun-web-apps-debounce-filter",8),t.NdJ("filter",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.applyFilter(n))}),t.ALo(2,"translate"),t.qZA(),t._UZ(3,"perun-web-apps-groups-list",9),t.qZA()}if(2&i){const e=t.oxw();t.xp6(1),t.s9C("placeholder",t.lcZ(2,8,"DIALOGS.ADD_GROUP_TO_REGISTRATION.FILTER_DESCRIPTION")),t.xp6(2),t.Q6J("disableMembers",!0)("groups",e.unAssignedGroups)("selection",e.selection)("disableRouting",!0)("displayedColumns",t.DdM(10,Rl))("filter",e.filterValue)("tableId",e.tableId)}}let Gl=(()=>{class i{constructor(e,o,n,s){this.dialogRef=e,this.data=o,this.groupService=n,this.registrarService=s,this.loading=!1,this.selection=new E.Ov(!0,[]),this.filterValue="",this.tableId=C.Is}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.groupService.getAllGroups(this.data.voId).subscribe(e=>{this.unAssignedGroups=e.filter(o=>!this.data.assignedGroups.includes(o.id)),this.loading=!1})}applyFilter(e){this.filterValue=e}onCancel(){this.dialogRef.close(!1)}onAdd(){this.loading=!0,this.registrarService.addGroupsToAutoRegistration(this.selection.selected.map(e=>e.id)).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(h.ff),t.Y36(h.tk))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-add-group-to-registration"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"placeholder","filter"],[3,"disableMembers","groups","selection","disableRouting","displayedColumns","filter","tableId"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Ll,1,0,"mat-spinner",1),t.YNc(5,wl,4,11,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return o.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return o.onAdd()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.ADD_GROUP_TO_REGISTRATION.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.ADD_GROUP_TO_REGISTRATION.CANCEL_BUTTON")," "),t.xp6(2),t.Q6J("disabled",0===o.selection.selected.length||o.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.ADD_GROUP_TO_REGISTRATION.ADD_BUTTON")," "))},dependencies:[_.O5,I.lW,u.uh,u.xY,u.H8,T.Ou,V.W,$.P,m.X$]}),i})();function Ul(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onAddGroup())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.ADD"),"\n"))}function Pl(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"span",9),t.ALo(1,"translate"),t.TgZ(2,"button",10),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.removeGroup())}),t._uU(3),t.ALo(4,"translate"),t.qZA()()}if(2&i){const e=a.ngIf,o=t.oxw();t.s9C("matTooltip",t.lcZ(1,4,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.REMOVE_PERMISSION_HINT")),t.Q6J("matTooltipDisabled",0===o.selected.selected.length||e.removeAuth),t.xp6(2),t.Q6J("disabled",0===o.selected.selected.length||!e.removeAuth),t.xp6(1),t.hij(" ",t.lcZ(4,6,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.REMOVE")," ")}}function yl(i,a){1&i&&t._UZ(0,"mat-spinner",11)}const Vl=function(){return["select","id","name","description"]};function Fl(i,a){if(1&i&&t._UZ(0,"perun-web-apps-groups-list",12),2&i){const e=t.oxw();t.Q6J("displayedColumns",t.DdM(6,Vl))("disableRouting",!0)("groups",e.groups)("filter",e.filterValue)("selection",e.selected)("tableId",e.tableId)}}const Yl=function(i){return{removeAuth:i}};let Jl=(()=>{class i{constructor(e,o,n,s){this.registrarService=e,this.authResolver=o,this.dialog=n,this.route=s,this.groups=[],this.selected=new E.Ov(!0,[]),this.tableId=C.CE,this.filterValue="",this.removeAuth$=this.selected.changed.pipe((0,K.U)(r=>r.source.selected.reduce((d,A)=>d&&this.authResolver.isAuthorized("deleteGroupsFromAutoRegistration_List_policy",[{id:this.voId,beanName:"Vo"},A]),!0)),(0,pt.O)(!0))}ngOnInit(){this.loading=!0,this.route.parent.parent.params.subscribe(e=>{this.voId=Number(e.voId),this.loadGroups()})}loadGroups(){this.loading=!0,this.registrarService.getGroupsToAutoRegistration(this.voId).subscribe(e=>{this.groups=e,this.selected.clear(),this.setAuthRights(),this.loading=!1},()=>this.loading=!1)}onAddGroup(){const e=(0,g.kZ)();e.width="900px",e.data={voId:this.voId,assignedGroups:this.groups.map(n=>n.id),theme:"vo-theme"},this.dialog.open(Gl,e).afterClosed().subscribe(n=>{n&&this.loadGroups()})}removeGroup(){const e=(0,g.kZ)();e.width="450px",e.data={items:this.selected.selected.map(n=>n.name),title:"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.REMOVE_GROUP_DIALOG_TITLE",description:"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.REMOVE_GROUP_DIALOG_DESCRIPTION",theme:"vo-theme",type:"remove",showAsk:!0},this.dialog.open(G.Ts,e).afterClosed().subscribe(n=>{n&&this.registrarService.deleteGroupsFromAutoRegistration(this.selected.selected.map(s=>s.id)).subscribe(()=>{this.loadGroups()})})}setAuthRights(){this.addAuth=this.authResolver.isAuthorized("addGroupsToAutoRegistration_List_policy",[{id:this.voId,beanName:"Vo"}])}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.tk),t.Y36(p.x4),t.Y36(u.uw),t.Y36(b.gz))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-application-form-manage-groups"]],decls:14,vars:18,consts:[[1,"page-subtitle"],["alert_type","info"],[3,"refresh"],["class","mr-2","color","accent","mat-flat-button","",3,"click",4,"ngIf"],[3,"matTooltipDisabled","matTooltip",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],["theme","vo-theme",3,"displayedColumns","disableRouting","groups","filter","selection","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2",3,"click"],[3,"matTooltipDisabled","matTooltip"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["theme","vo-theme",3,"displayedColumns","disableRouting","groups","filter","selection","tableId"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-alert",1),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"perun-web-apps-refresh-button",2),t.NdJ("refresh",function(){return o.loadGroups()}),t.qZA(),t.YNc(8,Ul,3,3,"button",3),t.YNc(9,Pl,5,8,"span",4),t.ALo(10,"async"),t.TgZ(11,"perun-web-apps-immediate-filter",5),t.NdJ("filter",function(s){return o.filterValue=s}),t.qZA(),t.YNc(12,yl,1,0,"mat-spinner",6),t.YNc(13,Fl,1,7,"perun-web-apps-groups-list",7)),2&e&&(t.xp6(1),t.AsE(" ",t.lcZ(2,8,"VO_DETAIL.SETTINGS.APPLICATION_FORM.TITLE")," - ",t.lcZ(3,10,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.TITLE"),"\n"),t.xp6(4),t.hij(" ",t.lcZ(6,12,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.HELP"),"\n"),t.xp6(3),t.Q6J("ngIf",o.addAuth),t.xp6(1),t.Q6J("ngIf",t.VKq(16,Yl,t.lcZ(10,14,o.removeAuth$))),t.xp6(2),t.Q6J("placeholder","VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.FILTER"),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[_.O5,I.lW,T.Ou,N.gM,R.w,V.W,Z.t,L.L,_.Ov,m.X$]}),i})();var ql=l(20872),kl=l(28499),Bt=l(38383),Ht=l(96338),Ql=l(95406);const Bl=["stepper"];function Hl(i,a){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"DIALOGS.CREATE_SERVICE_MEMBER.CREATE_IDENTITY"))}function jl(i,a){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.FIELD_EMPTY")))}function zl(i,a){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.FIELD_EMPTY")))}function $l(i,a){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.EMAIL_INVALID")))}function Xl(i,a){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.FIELD_EMPTY")))}function Kl(i,a){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.FIELD_EMPTY")))}function Wl(i,a){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"DIALOGS.CREATE_SERVICE_MEMBER.SET_CREDENTIALS"))}function tc(i,a){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"DIALOGS.CREATE_SERVICE_MEMBER.ASSOCIATE_USERS"))}function ec(i,a){if(1&i&&(t.TgZ(0,"span",28),t._uU(1),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.hij("#",e.id,"")}}function ic(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-list-item")(1,"p",23),t._uU(2),t.ALo(3,"userFullName"),t.YNc(4,ec,2,1,"span",24),t.TgZ(5,"span",25),t.ALo(6,"translate"),t.TgZ(7,"button",26),t.NdJ("click",function(){const s=t.CHM(e).$implicit,r=t.oxw(2);return t.KtG(r.removeUser(s))}),t.TgZ(8,"mat-icon",27),t._uU(9,"close"),t.qZA()()()()()}if(2&i){const e=a.$implicit,o=t.oxw(2);t.xp6(2),t.hij(" ",t.lcZ(3,5,e.user)," "),t.xp6(2),t.Q6J("ngIf",e.id),t.xp6(1),t.Q6J("matTooltipDisabled",o.assignedMembers.length>1)("matTooltip",t.lcZ(6,7,"DIALOGS.CREATE_SERVICE_MEMBER.MINIMAL_USERS")),t.xp6(2),t.Q6J("disabled",1===o.assignedMembers.length)}}function oc(i,a){1&i&&t._UZ(0,"mat-spinner",29)}const nc=function(){return["checkbox","id","fullName"]};function ac(i,a){if(1&i&&t._UZ(0,"perun-web-apps-members-list",32),2&i){const e=t.oxw(3);t.Q6J("disableRouting",!0)("displayedColumns",t.DdM(5,nc))("members",e.members)("tableId",e.tableId)("selection",e.selection)}}function sc(i,a){1&i&&(t.TgZ(0,"perun-web-apps-alert",33),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.SEARCH_INFO")," "))}function rc(i,a){if(1&i&&(t.TgZ(0,"div"),t.YNc(1,ac,1,6,"perun-web-apps-members-list",30),t.YNc(2,sc,3,3,"perun-web-apps-alert",31),t.qZA()),2&i){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",e.firstSearchDone),t.xp6(1),t.Q6J("ngIf",!e.firstSearchDone)}}function lc(i,a){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.hij(" ",t.lcZ(1,1,"DIALOGS.CREATE_SERVICE_MEMBER.SPONSOR")," ")}function cc(i,a){1&i&&(t.TgZ(0,"mat-step"),t.YNc(1,lc,2,3,"ng-template",9),t.TgZ(2,"perun-web-apps-alert",33),t._uU(3),t.ALo(4,"translate"),t.qZA()()),2&i&&(t.xp6(3),t.hij(" ",t.lcZ(4,1,"DIALOGS.CREATE_SERVICE_MEMBER.MANAGE_LIFECYCLE_INFO")," "))}function pc(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",4)(1,"mat-stepper",5,6)(3,"mat-step",7)(4,"form",8),t.YNc(5,Hl,2,3,"ng-template",9),t.TgZ(6,"div",10)(7,"mat-form-field")(8,"mat-label"),t._uU(9),t.ALo(10,"translate"),t.qZA(),t._UZ(11,"input",11),t.YNc(12,jl,3,3,"mat-error",12),t.qZA(),t.TgZ(13,"mat-form-field")(14,"mat-label"),t._uU(15),t.ALo(16,"translate"),t.qZA(),t._UZ(17,"input",13),t.YNc(18,zl,3,3,"mat-error",12),t.YNc(19,$l,3,3,"mat-error",12),t.qZA(),t.TgZ(20,"mat-form-field")(21,"mat-label"),t._uU(22),t.ALo(23,"translate"),t.qZA(),t._UZ(24,"input",14),t.YNc(25,Xl,3,3,"mat-error",12),t.qZA(),t.TgZ(26,"mat-form-field")(27,"mat-label"),t._uU(28),t.ALo(29,"translate"),t.qZA(),t._UZ(30,"input",15),t.YNc(31,Kl,3,3,"mat-error",12),t.qZA()()()(),t.TgZ(32,"mat-step",7)(33,"form",8),t.YNc(34,Wl,2,3,"ng-template",9),t.TgZ(35,"app-login-password-form-with-generate-option",16),t.NdJ("parsedRulesOutput",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.parsedRules=n)}),t.qZA()()(),t.TgZ(36,"mat-step"),t.YNc(37,tc,2,3,"ng-template",9),t.TgZ(38,"h6"),t._uU(39),t.ALo(40,"translate"),t.qZA(),t.TgZ(41,"mat-list"),t.YNc(42,ic,10,9,"mat-list-item",17),t.qZA(),t.TgZ(43,"h6",18),t._uU(44),t.ALo(45,"translate"),t.qZA(),t.TgZ(46,"mat-form-field",19)(47,"input",20),t.NdJ("keyup.enter",function(){t.CHM(e);const n=t.oxw();return t.KtG(0!==n.searchCtrl.value.length&&n.onSearchByString())}),t.ALo(48,"translate"),t.qZA()(),t.TgZ(49,"button",21),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onSearchByString())}),t.TgZ(50,"mat-icon"),t._uU(51,"search"),t.qZA()(),t.TgZ(52,"button",22),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.addUsers())}),t._uU(53),t.ALo(54,"translate"),t.qZA(),t.YNc(55,oc,1,0,"mat-spinner",2),t.YNc(56,rc,3,2,"div",12),t.qZA(),t.YNc(57,cc,5,3,"mat-step",12),t.qZA()()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("linear",!0),t.xp6(2),t.Q6J("stepControl",e.firstFormGroup),t.xp6(1),t.Q6J("formGroup",e.firstFormGroup),t.xp6(5),t.Oqu(t.lcZ(10,28,"DIALOGS.CREATE_SERVICE_MEMBER.NAME")),t.xp6(3),t.Q6J("ngIf",e.firstFormGroup.get("nameCtrl").hasError("required")),t.xp6(3),t.Oqu(t.lcZ(16,30,"DIALOGS.CREATE_SERVICE_MEMBER.EMAIL")),t.xp6(3),t.Q6J("ngIf",e.firstFormGroup.get("emailCtrl").hasError("required")),t.xp6(1),t.Q6J("ngIf",e.firstFormGroup.get("emailCtrl").hasError("pattern")),t.xp6(3),t.Oqu(t.lcZ(23,32,"DIALOGS.CREATE_SERVICE_MEMBER.SUBJECT_DN")),t.xp6(2),t.Q6J("required",!!e.firstFormGroup.get("issuerCtrl").value&&0!==e.firstFormGroup.get("issuerCtrl").value.trim().length),t.xp6(1),t.Q6J("ngIf",e.firstFormGroup.get("subjectCtrl").hasError("required")),t.xp6(3),t.Oqu(t.lcZ(29,34,"DIALOGS.CREATE_SERVICE_MEMBER.ISSUER_DN")),t.xp6(2),t.Q6J("required",!!e.firstFormGroup.get("subjectCtrl").value&&0!==e.firstFormGroup.get("subjectCtrl").value.trim().length),t.xp6(1),t.Q6J("ngIf",e.firstFormGroup.get("issuerCtrl").hasError("required")),t.xp6(1),t.Q6J("stepControl",e.secondFormGroup),t.xp6(1),t.Q6J("formGroup",e.secondFormGroup),t.xp6(2),t.Q6J("formGroup",e.secondFormGroup),t.xp6(4),t.Oqu(t.lcZ(40,36,"DIALOGS.CREATE_SERVICE_MEMBER.ASSOCIATED_USERS")),t.xp6(3),t.Q6J("ngForOf",e.assignedMembers),t.xp6(2),t.Oqu(t.lcZ(45,38,"DIALOGS.CREATE_SERVICE_MEMBER.SEARCH_INFO")),t.xp6(3),t.s9C("placeholder",t.lcZ(48,40,"DIALOGS.CREATE_SERVICE_MEMBER.SEARCH_PLACEHOLDER")),t.Q6J("formControl",e.searchCtrl),t.xp6(2),t.Q6J("disabled",e.loading||0===e.searchCtrl.value.length),t.xp6(3),t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(54,42,"DIALOGS.CREATE_SERVICE_MEMBER.ADD_USER")," "),t.xp6(2),t.Q6J("ngIf",e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading),t.xp6(1),t.Q6J("ngIf",e.findSponsorsAuth&&0!==e.voSponsors.length&&e.setSponsorshipAuth)}}function uc(i,a){1&i&&t._UZ(0,"mat-spinner",29)}function dc(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",39),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.stepperPrevious())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.BACK")," "))}function _c(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",22),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.stepperNext())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw(2);t.ekj("ml-2",void 0!==e.stepper&&0!==e.stepper.selectedIndex)("ml-auto",!(void 0!==e.stepper&&0!==e.stepper.selectedIndex)),t.Q6J("disabled",e.getStepperNextConditions()),t.xp6(1),t.hij(" ",t.lcZ(2,6,"DIALOGS.CREATE_SERVICE_MEMBER.NEXT")," ")}}function mc(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",40),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.onCreate(!1))}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw(2);t.Q6J("disabled",e.firstFormGroup.invalid||"Not selected"!==e.secondFormGroup.get("namespaceCtrl").value&&e.secondFormGroup.invalid),t.xp6(1),t.hij(" ",t.lcZ(2,2,"DIALOGS.CREATE_SERVICE_MEMBER.CREATE")," ")}}function gc(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",40),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.onCreate(!0))}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw(2);t.Q6J("disabled",e.firstFormGroup.invalid||"Not selected"!==e.secondFormGroup.get("namespaceCtrl").value&&e.secondFormGroup.invalid),t.xp6(1),t.hij(" ",t.lcZ(2,2,"DIALOGS.CREATE_SERVICE_MEMBER.CREATE_AND_SPONSOR")," ")}}function hc(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",34)(1,"button",35),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onCancel())}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,dc,3,3,"button",36),t.TgZ(5,"span",25),t.ALo(6,"translate"),t.YNc(7,_c,3,8,"button",37),t.qZA(),t.YNc(8,mc,3,4,"button",38),t.YNc(9,gc,3,4,"button",38),t.qZA()}if(2&i){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,7,"DIALOGS.CREATE_SERVICE_MEMBER.CANCEL")," "),t.xp6(2),t.Q6J("ngIf",void 0!==e.stepper&&0!==e.stepper.selectedIndex),t.xp6(1),t.Q6J("matTooltipDisabled",0===e.selection.selected.length)("matTooltip",t.lcZ(6,9,"DIALOGS.CREATE_SERVICE_MEMBER.NEXT_BUTTON_DISABLED_TOOLTIP")),t.xp6(2),t.Q6J("ngIf",void 0!==e.stepper&&e.stepper.selectedIndex!==e.stepper._steps.length-1),t.xp6(1),t.Q6J("ngIf",void 0!==e.stepper&&e.stepper.selectedIndex===e.stepper._steps.length-1),t.xp6(1),t.Q6J("ngIf",e.findSponsorsAuth&&0!==e.voSponsors.length&&e.setSponsorshipAuth&&void 0!==e.stepper&&e.stepper.selectedIndex===e.stepper._steps.length-1)}}let fc=(()=>{class i{constructor(e,o,n,s,r,d,A,v,D,X,gt,_u){this.dialogRef=e,this.data=o,this.membersManagerService=n,this.usersManagerService=s,this.notificator=r,this.translate=d,this.store=A,this.apiRequestConfiguration=v,this._formBuilder=D,this.cd=X,this.authResolver=gt,this.findSponsors=_u,this.parsedRules=new Map,this.firstSearchDone=!1,this.searchCtrl=new f.p4(""),this.members=[],this.selection=new E.Ov(!0,[]),this.tableId=C.j1,this.assignedMembers=[],this.candidate={beanName:"",id:0},this.successMessageMember="",this.successMessagePwd="",this.processing=!1,this.voSponsors=[],d.get("DIALOGS.CREATE_SERVICE_MEMBER.SUCCESS_MEMBER").subscribe(ht=>this.successMessageMember=ht),d.get("DIALOGS.CREATE_SERVICE_MEMBER.SUCCESS_PWD").subscribe(ht=>this.successMessagePwd=ht)}ngAfterViewInit(){this.cd.detectChanges()}ngOnInit(){this.theme=this.data.theme,this.firstFormGroup=this._formBuilder.group({nameCtrl:["",f.kI.required],emailCtrl:["",[f.kI.required,f.kI.pattern("\\w+([.-]?\\w+)*@\\w+([.-]?\\w+)*(.\\w{2,3})+")]],subjectCtrl:[null],issuerCtrl:[null]}),this.secondFormGroup=this._formBuilder.group({namespaceCtrl:["Not selected"],loginCtrl:["",[f.kI.pattern("^[a-z][a-z0-9_-]+$"),f.kI.maxLength(15),f.kI.minLength(2)]],passwordCtrl:["",f.kI.required,[(0,kl.yT)(null,this.usersManagerService,this.apiRequestConfiguration)]],passwordAgainCtrl:[""],generatePasswordCtrl:[!0]},{validators:g.dN.passwordMatchValidator});const e=this.store.getPerunPrincipal().user;this.membersManagerService.getMembersByUser(e.id).subscribe(o=>{let n={};for(const s of o)s.voId===this.data.vo.id&&(n=s);n.user=e,this.assignedMembers.push(n)}),this.setSponsorshipAuth=this.authResolver.isAuthorized("setSponsorshipForMember_Member_User_LocalDate_policy",[this.data.vo,this.store.getPerunPrincipal().user]),this.findSponsorsAuth=this.findSponsors.findSponsorsAuth(this.data.vo),this.findSponsorsAuth&&this.findSponsors.getSponsors(this.data.vo.id).subscribe(o=>{this.voSponsors=o})}onCreate(e){this.processing=!0,this.candidate.firstName="",this.candidate.lastName=this.firstFormGroup.get("nameCtrl").value,this.candidate.attributes={},this.candidate.attributes["urn:perun:member:attribute-def:def:mail"]=this.firstFormGroup.get("emailCtrl").value;const o=this.firstFormGroup.get("subjectCtrl");o?.value&&(this.candidate.userExtSource={},this.candidate.userExtSource.login=o.value,this.candidate.userExtSource.loa=0,this.candidate.userExtSource.extSource={},this.candidate.userExtSource.extSource.name=this.firstFormGroup.get("issuerCtrl").value,this.candidate.userExtSource.extSource.type="cz.metacentrum.perun.core.impl.ExtSourceX509");const n=this.secondFormGroup.get("namespaceCtrl").value.toLowerCase(),s=this.parsedRules.get(n),r=`urn:perun:user:attribute-def:def:login-namespace:${n}`;"Not selected"!==this.secondFormGroup.get("namespaceCtrl").value&&"disabled"===s.login?this.usersManagerService.generateAccountForName(n,this.firstFormGroup.get("nameCtrl").value).subscribe(d=>{this.candidate.attributes[r]=d[r],this.createSpecificMember(e)},()=>this.processing=!1):("Not selected"!==this.secondFormGroup.get("namespaceCtrl").value&&(this.candidate.attributes[r]=this.secondFormGroup.get("loginCtrl").value),this.createSpecificMember(e))}createSpecificMember(e){this.membersManagerService.createSpecificMember({vo:this.data.vo.id,specificUserType:"SERVICE",specificUserOwners:this.assignedMembers.map(o=>o.user),candidate:this.candidate}).subscribe(o=>{this.membersManagerService.validateMemberAsync(o.id).subscribe(n=>{this.notificator.showSuccess(this.successMessageMember),"Not selected"!==this.secondFormGroup.get("namespaceCtrl").value?this.setPassword(n,this.secondFormGroup.get("generatePasswordCtrl").value,e):this.dialogRef.close({result:!0,sponsor:e,voSponsors:this.voSponsors,findSponsorsAuth:this.findSponsorsAuth,serviceMemberId:o.id})},()=>this.processing=!1)},()=>this.processing=!1)}setPassword(e,o,n){const s=this.secondFormGroup.get("namespaceCtrl").value.toLowerCase(),r=this.secondFormGroup.get("passwordCtrl").value;if(o){if("disabled"===this.parsedRules.get(s).login)return void this.validateMember(e.id,n);this.usersManagerService.reserveRandomPassword(e.userId,s).subscribe(()=>{this.usersManagerService.validatePasswordForUser(e.userId,s).subscribe(()=>{this.validateMember(e.id,n,!1)},()=>{this.processing=!1})},()=>{this.processing=!1})}else this.usersManagerService.reservePasswordForUser({user:e.userId,namespace:s,password:r}).subscribe(()=>{this.usersManagerService.validatePasswordForUser(e.userId,s).subscribe(()=>{this.validateMember(e.id,n)},()=>{this.processing=!1,this.dialogRef.close({result:!0,sponsor:n,voSponsors:this.voSponsors,findSponsorsAuth:this.findSponsorsAuth,serviceMemberId:e.id})})},()=>{this.processing=!1,this.dialogRef.close({result:!0,sponsor:n,voSponsors:this.voSponsors,findSponsorsAuth:this.findSponsorsAuth,serviceMemberId:e.id})})}validateMember(e,o,n=!0){this.membersManagerService.validateMemberAsync(e).subscribe(()=>{n&&this.notificator.showSuccess(this.successMessagePwd),this.dialogRef.close({result:!0,sponsor:o,voSponsors:this.voSponsors,findSponsorsAuth:this.findSponsorsAuth,serviceMemberId:e})},()=>{this.processing=!1})}onCancel(){this.dialogRef.close({result:!1,sponsor:!1})}onSearchByString(){this.loading=!0,this.membersManagerService.findCompleteRichMembersForVo(this.data.vo.id,[""],this.searchCtrl.value).subscribe(e=>{this.members=e.filter(o=>!o.user.specificUser),this.firstSearchDone=!0,this.loading=!1})}addUsers(){const e=this.assignedMembers.map(o=>o.id);this.selection.selected.forEach(o=>{e.includes(o.id)||this.assignedMembers.push(o)}),this.selection.clear()}removeUser(e){this.assignedMembers=this.assignedMembers.filter(o=>o.id!==e.id)}getStepperNextConditions(){switch(this.stepper.selectedIndex){case 0:return this.firstFormGroup.invalid||this.firstFormGroup.pending;case 1:return this.secondFormGroup.invalid||this.secondFormGroup.pending;case 2:return this.selection.selected.length>0;default:return!1}}stepperPrevious(){this.stepper.previous()}stepperNext(){this.stepper.next()}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(h.uq),t.Y36(h.Fv),t.Y36(p.V6),t.Y36(m.sK),t.Y36(p.d6),t.Y36(p.F5),t.Y36(f.QS),t.Y36(t.sBO),t.Y36(p.x4),t.Y36(p.Mf))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-create-service-member-dialog"]],viewQuery:function(e,o){if(1&e&&t.Gf(Bl,5),2&e){let n;t.iGM(n=t.CRH())&&(o.stepper=n.first)}},decls:7,vars:9,consts:[[1,"mat-dialog-title"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],["mat-dialog-content","",1,"dialog-container"],[3,"linear"],["stepper",""],[3,"stepControl"],[3,"formGroup"],["matStepLabel",""],[1,"display-flex"],["formControlName","nameCtrl","matInput","","required",""],[4,"ngIf"],["formControlName","emailCtrl","matInput","","required","","type","email"],["formControlName","subjectCtrl","matInput","",3,"required"],["formControlName","issuerCtrl","matInput","",3,"required"],[3,"formGroup","parsedRulesOutput"],[4,"ngFor","ngForOf"],[1,"mt-3"],[1,"mr-2","w-50"],["autocomplete","false","matInput","",3,"formControl","placeholder","keyup.enter"],["color","primary","mat-flat-button","",1,"mr-2",3,"disabled","click"],["color","accent","mat-flat-button","",3,"disabled","click"],[1,"truncate","center-content"],["class","text-muted",4,"ngIf"],[3,"matTooltipDisabled","matTooltip"],["color","warn","mat-icon-button","",1,"ml-1",3,"disabled","click"],[1,"margin-bottom"],[1,"text-muted"],[1,"ml-auto","mr-auto"],[3,"disableRouting","displayedColumns","members","tableId","selection",4,"ngIf"],["alert_type","info",4,"ngIf"],[3,"disableRouting","displayedColumns","members","tableId","selection"],["alert_type","info"],["mat-dialog-actions",""],["mat-flat-button","",3,"click"],["class","ml-auto","mat-flat-button","",3,"click",4,"ngIf"],["color","accent","mat-flat-button","",3,"ml-2","ml-auto","disabled","click",4,"ngIf"],["class","ml-2","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,pc,58,44,"div",1),t.YNc(5,uc,1,0,"mat-spinner",2),t.YNc(6,hc,10,11,"div",3),t.qZA()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,7,"DIALOGS.CREATE_SERVICE_MEMBER.TITLE")),t.xp6(2),t.Q6J("ngIf",!o.processing),t.xp6(1),t.Q6J("ngIf",o.processing),t.xp6(1),t.Q6J("ngIf",!o.processing))},dependencies:[_.sg,_.O5,x.TO,x.KE,x.hX,y.Nt,f._Y,f.Fj,f.JJ,f.JL,f.Q7,f.oH,f.sg,f.u,P.Hw,I.lW,u.xY,u.H8,T.Ou,N.gM,w.C0,w.VY,w.Vq,R.w,Bt.O,Ht.i$,Ht.Tg,Ql.r,m.X$,B.d],styles:[".display-flex[_ngcontent-%COMP%]{display:flex;flex-direction:column}.input-disabled[_ngcontent-%COMP%]{pointer-events:none;color:#888}.truncate[_ngcontent-%COMP%]{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap}.center-content[_ngcontent-%COMP%]{margin-bottom:auto;margin-top:auto}.white-space-pre[_ngcontent-%COMP%]{white-space:pre}.margin-bottom[_ngcontent-%COMP%]{margin-bottom:6px}"]}),i})();var Ac=l(53455),Tc=l(91828);function Ic(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onRemoveMembers())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",e.selection.isEmpty()),t.xp6(1),t.hij(" ",t.lcZ(2,2,"VO_DETAIL.SETTINGS.SERVICE_MEMBERS.DELETE"),"\n")}}function bc(i,a){1&i&&t._UZ(0,"mat-spinner",8)}const vc=function(){return["checkbox","id","type","fullName","status"]};function Ec(i,a){if(1&i&&t._UZ(0,"perun-web-apps-members-list",9),2&i){const e=t.oxw();t.Q6J("tableId",e.tableId)("displayedColumns",t.DdM(6,vc))("selection",e.selection)("disableStatusChange",!0)("filter",e.searchString)("members",e.members)}}let Cc=(()=>{class i{constructor(e,o,n,s,r){this.membersManager=e,this.dialog=o,this.authResolver=n,this.authzService=s,this.entityStorageService=r,this.members=[],this.selection=new E.Ov(!0,[]),this.searchString="",this.loading=!1,this.tableId=C._c}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.removeAuth=this.authzService.isAuthorized("deleteMembers_List_policy",[this.vo]),this.refresh()}createServiceMember(){const e=(0,g.kZ)();e.width="800px",e.data={vo:this.vo,theme:"vo-theme"},this.dialog.open(fc,e).afterClosed().subscribe(n=>{n.result&&(n.sponsor?(e.data={voId:this.vo.id,theme:"vo-theme",voSponsors:n.voSponsors,findSponsorsAuth:n.findSponsorsAuth,serviceMemberId:n.serviceMemberId},this.dialog.open(Tc.b,e).afterClosed().subscribe(()=>{this.refresh()})):this.refresh())})}onRemoveMembers(){const e=(0,g.kZ)();e.width="450px",e.data={members:this.selection.selected,theme:"vo-theme"},this.dialog.open(Ac.X,e).afterClosed().subscribe(n=>{n&&(this.refresh(),this.selection.clear())})}applyFilter(e){this.searchString=e}refresh(){this.loading=!0,this.membersManager.findCompleteRichMembersForVo(this.vo.id,[""],"(Service)").subscribe(e=>{this.members=e,this.loading=!1})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.uq),t.Y36(u.uw),t.Y36(p.x4),t.Y36(p.x4),t.Y36(p.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-settings-service-members"]],decls:11,vars:10,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"tableId","displayedColumns","selection","disableStatusChange","filter","members",4,"ngIf"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"tableId","displayedColumns","selection","disableStatusChange","filter","members"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return o.refresh()}),t.qZA(),t.TgZ(4,"button",2),t.NdJ("click",function(){return o.createServiceMember()}),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.YNc(7,Ic,3,4,"button",3),t.TgZ(8,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(s){return o.applyFilter(s)}),t.qZA(),t.YNc(9,bc,1,0,"mat-spinner",5),t.YNc(10,Ec,1,7,"perun-web-apps-members-list",6)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"VO_DETAIL.SETTINGS.SERVICE_MEMBERS.TITLE")),t.xp6(4),t.hij(" ",t.lcZ(6,8,"VO_DETAIL.SETTINGS.SERVICE_MEMBERS.CREATE"),"\n"),t.xp6(2),t.Q6J("ngIf",o.removeAuth),t.xp6(1),t.Q6J("placeholder","VO_DETAIL.SETTINGS.SERVICE_MEMBERS.FILTER"),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[_.O5,I.lW,T.Ou,Z.t,L.L,Bt.O,m.X$]}),i})();var W=l(71992),jt=l(87831);const Sc=["stepper"];function xc(i,a){1&i&&t._UZ(0,"mat-spinner",4)}function Nc(i,a){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.SELECTION_STEP"))}function Oc(i,a){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.CONFIRMATION_STEP"))}function Zc(i,a){1&i&&t._UZ(0,"th",19)}function Dc(i,a){if(1&i&&(t.TgZ(0,"td",20),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Oqu(e.name)}}function Mc(i,a){1&i&&t._UZ(0,"tr",21)}function Lc(i,a){1&i&&t._UZ(0,"tr",22)}function Rc(i,a){if(1&i&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"table",12),t.ynx(4,13),t.YNc(5,Zc,1,0,"th",14),t.YNc(6,Dc,2,1,"td",15),t.BQk(),t.YNc(7,Mc,1,0,"tr",16),t.YNc(8,Lc,1,0,"tr",17),t.qZA(),t.TgZ(9,"perun-web-apps-alert",18),t._uU(10),t.ALo(11,"translate"),t.qZA()),2&i){const e=t.oxw(2);t.xp6(1),t.Oqu(t.lcZ(2,6,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.CONFIRM")),t.xp6(2),t.Q6J("dataSource",e.voSelection.selected),t.xp6(4),t.Q6J("matHeaderRowDef",e.columns),t.xp6(1),t.Q6J("matRowDefColumns",e.columns),t.xp6(1),t.Q6J("alert_type","warn"),t.xp6(1),t.Oqu(t.lcZ(11,8,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.WARNING"))}}function wc(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",5)(1,"mat-stepper",6,7)(3,"mat-step"),t.YNc(4,Nc,2,3,"ng-template",8),t.TgZ(5,"perun-web-apps-immediate-filter",9),t.NdJ("filter",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.voFilter=n)}),t.qZA(),t._UZ(6,"perun-web-apps-vos-list",10),t.qZA(),t.TgZ(7,"mat-step"),t.YNc(8,Oc,2,3,"ng-template",8),t.YNc(9,Rc,12,10,"ng-template",11),t.qZA()()()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("linear",!0),t.xp6(4),t.Q6J("placeholder","VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.FILTER_VOS"),t.xp6(1),t.Q6J("vos",e.vos)("selection",e.voSelection)("displayedColumns",e.displayedColumns)("filterValue",e.voFilter)("disableRouting",!0)}}function Gc(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",24),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.stepperPrevious())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.BACK")," "))}function Uc(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",29),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.stepperNext())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw(2);t.Q6J("disabled",0===e.voSelection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.NEXT")," ")}}function Pc(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",30),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.addMemberOrganization())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.ADD")," "))}function yc(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",23)(1,"button",24),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.close())}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",25),t.YNc(5,Gc,3,3,"button",26),t.YNc(6,Uc,3,4,"button",27),t.YNc(7,Pc,3,3,"button",28),t.qZA()()}if(2&i){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,4,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.CANCEL")," "),t.xp6(3),t.Q6J("ngIf",void 0!==e.stepper&&0!==e.stepper.selectedIndex),t.xp6(1),t.Q6J("ngIf",1!==(null==e.stepper?null:e.stepper.selectedIndex)),t.xp6(1),t.Q6J("ngIf",1===(null==e.stepper?null:e.stepper.selectedIndex))}}let Vc=(()=>{class i{constructor(e,o,n,s,r){this.dialogRef=e,this.vosService=o,this.entityStorage=n,this.notificator=s,this.translator=r,this.loading=!1,this.theme="vo-theme",this.displayedColumns=["checkbox","id","name","shortName"],this.columns=["name"],this.vos=[],this.voSelection=new E.Ov(!1,[]),this.voFilter=""}ngOnInit(){this.loading=!0,this.voId=this.entityStorage.getEntity().id,this.vosService.getEnrichedVoById(this.voId).subscribe(e=>{this.vosService.getAllVos().subscribe(o=>{const n=e.memberVos.map(s=>s.id);this.vos=o.filter(s=>!n.includes(s.id)),this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)}close(){this.dialogRef.close(!1)}stepperNext(){this.stepper.next()}stepperPrevious(){this.stepper.previous()}addMemberOrganization(){this.loading=!0,this.vosService.addMemberVo(this.voId,this.voSelection.selected[0].id).subscribe(()=>{this.notificator.showSuccess(this.translator.instant("VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(h.YF),t.Y36(p.fb),t.Y36(p.V6),t.Y36(m.sK))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-add-member-organization-dialog"]],viewQuery:function(e,o){if(1&e&&t.Gf(Sc,5),2&e){let n;t.iGM(n=t.CRH())&&(o.stepper=n.first)}},decls:7,vars:9,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","","class","dialog-container",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"linear"],["stepper",""],["matStepLabel",""],[3,"placeholder","filter"],[3,"vos","selection","displayedColumns","filterValue","disableRouting"],["matStepContent",""],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[3,"alert_type"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""],["mat-dialog-actions",""],["mat-flat-button","",3,"click"],[1,"ml-auto"],["mat-flat-button","",3,"click",4,"ngIf"],["color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],["color","accent","mat-flat-button","",3,"click",4,"ngIf"],["color","accent","mat-flat-button","",3,"disabled","click"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,xc,1,0,"mat-spinner",1),t.YNc(5,wc,10,7,"div",2),t.YNc(6,yc,8,6,"div",3),t.qZA()),2&e&&(t.Tol(o.theme),t.xp6(2),t.hij(" ",t.lcZ(3,7,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.TITLE")," "),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[_.O5,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.ge,c.ev,c.XQ,c.Gk,I.lW,u.uh,u.xY,u.H8,T.Ou,w.C0,w.VY,w.Vq,w.BY,R.w,jt.Z,L.L,m.X$]}),i})();function Fc(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.addMemberOrganization())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD"),"\n"))}function Yc(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.removeMemberOrganization())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.voSelection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.REMOVE"),"\n")}}function Jc(i,a){1&i&&t._UZ(0,"mat-spinner",9)}function qc(i,a){if(1&i&&t._UZ(0,"perun-web-apps-vos-list",10),2&i){const e=t.oxw();t.Q6J("vos",e.memberVos)("selection",e.voSelection)("filterValue",e.filterValue)("disableRouting",!e.auth)("displayedColumns",e.displayedColumns)}}let kc=(()=>{class i{constructor(e,o,n,s,r,d,A){this.dialog=e,this.vosService=o,this.entityStorage=n,this.authResolver=s,this.reloadDetailService=r,this.notificator=d,this.translator=A,this.loading=!1,this.voSelection=new E.Ov(!1,[]),this.displayedColumns=["checkbox","id","shortName","name"],this.filterValue="",this.auth=!1,this.memberVos=[]}ngOnInit(){this.auth=this.authResolver.isPerunAdmin(),this.voId=this.entityStorage.getEntity().id,this.refresh()}refresh(){this.loading=!0,this.vosService.getEnrichedVoById(this.voId).subscribe(e=>{this.voId=e.vo.id,this.memberVos=e.memberVos,this.voSelection.clear(),this.loading=!1},()=>this.loading=!1)}addMemberOrganization(){const e=(0,g.kZ)();e.width="750px",this.dialog.open(Vc,e).afterClosed().subscribe(o=>{o&&(this.reloadDetailService.reloadEntityDetail(),this.refresh())})}removeMemberVos(){this.vosService.removeMemberVo(this.voId,this.voSelection.selected[0].id).subscribe(()=>{this.notificator.showSuccess(this.translator.instant("VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.REMOVE_MEMBER_ORGANIZATION.TITLE")),this.reloadDetailService.reloadEntityDetail(),this.refresh()})}removeMemberOrganization(){const e=(0,g.kZ)();e.width="550px",e.data={items:this.voSelection.selected.map(o=>o.name),title:"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.REMOVE_MEMBER_ORGANIZATION.TITLE",alert:"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.REMOVE_MEMBER_ORGANIZATION.WARNING",theme:"vo-theme",type:"remove",showAsk:!0},this.dialog.open(G.Ts,e).afterClosed().subscribe(o=>{o&&this.removeMemberVos()})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.uw),t.Y36(h.YF),t.Y36(p.fb),t.Y36(p.x4),t.Y36(et.G),t.Y36(p.V6),t.Y36(m.sK))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-settings-member-organizations"]],decls:9,vars:8,consts:[[1,"page-subtitle"],[3,"click"],["mat-flat-button","","class","mr-2 action-button","color","accent",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"vos","selection","filterValue","disableRouting","displayedColumns",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2","action-button",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"vos","selection","filterValue","disableRouting","displayedColumns"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-refresh-button",1),t.NdJ("click",function(){return o.refresh()}),t.qZA(),t.YNc(4,Fc,3,3,"button",2),t.YNc(5,Yc,3,4,"button",3),t.TgZ(6,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(s){return o.filterValue=s}),t.qZA(),t.YNc(7,Jc,1,0,"mat-spinner",5),t.YNc(8,qc,1,5,"perun-web-apps-vos-list",6)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.TITLE")),t.xp6(3),t.Q6J("ngIf",o.auth),t.xp6(1),t.Q6J("ngIf",o.auth),t.xp6(1),t.Q6J("placeholder","VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.FILTER"),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[_.O5,I.lW,T.Ou,jt.Z,Z.t,L.L,m.X$]}),i})();const Qc=function(){return["select","id","name","description"]};function Bc(i,a){if(1&i&&t._UZ(0,"perun-web-apps-groups-list",7),2&i){const e=t.oxw();t.Q6J("tableId",e.tableId)("groups",e.groups)("selection",e.selected)("filter",e.filterValue)("displayedColumns",t.DdM(7,Qc))("disableRouting",!0)("noGroupsAlert","DIALOGS.ADD_GROUPS_HIERARCHICAL_INCLUSION.NO_GROUPS_FOUND_ALERT")}}function Hc(i,a){1&i&&t._UZ(0,"mat-spinner",8)}function jc(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",9)(1,"button",10),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.close())}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"button",11),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.confirm())}),t._uU(5),t.ALo(6,"translate"),t.qZA()()}if(2&i){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,3,"DIALOGS.ADD_GROUPS_HIERARCHICAL_INCLUSION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",0===e.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(6,5,"DIALOGS.ADD_GROUPS_HIERARCHICAL_INCLUSION.ALLOW")," ")}}const zc=function(i){return{parentVo:i}};let $c=(()=>{class i{constructor(e,o,n,s,r){this.dialogRef=e,this.data=o,this.groupService=n,this.notificator=s,this.translate=r,this.loading=!1,this.selected=new E.Ov(!0,[]),this.tableId=C.uI,this.filterValue=""}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.voId=this.data.voId,this.parentVo=this.data.parentVo,this.groupService.getAllGroups(this.voId).subscribe(e=>{this.groups=e.filter(o=>!this.data.allowedGroupsIds.includes(o.id)),this.loading=!1})}applyFilter(e){this.filterValue=e}close(){this.dialogRef.close(!1)}confirm(){this.loading=!0;const e=this.selected.selected.map(o=>o.id);this.groupService.allowGroupsToHierarchicalVo(e,this.parentVo.id).subscribe({next:()=>{this.dialogRef.close(!0),this.notificator.showSuccess(this.translate.instant("DIALOGS.ADD_GROUPS_HIERARCHICAL_INCLUSION.SUCCESS")),this.loading=!1},error:()=>this.loading=!1})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(h.ff),t.Y36(p.V6),t.Y36(p.Te))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-add-group-hierarchical-include-dialog"]],decls:12,vars:16,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["alert_type","info"],[3,"placeholder","filter"],["theme","vo-theme",3,"tableId","groups","selection","filter","displayedColumns","disableRouting","noGroupsAlert",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],["theme","vo-theme",3,"tableId","groups","selection","filter","displayedColumns","disableRouting","noGroupsAlert"],[1,"ml-auto","mr-auto"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",3,"disabled","click"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",1)(5,"perun-web-apps-alert",2),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"perun-web-apps-immediate-filter",3),t.NdJ("filter",function(s){return o.applyFilter(s)}),t.qZA(),t.YNc(9,Bc,1,8,"perun-web-apps-groups-list",4),t.YNc(10,Hc,1,0,"mat-spinner",5),t.qZA(),t.YNc(11,jc,7,7,"div",6),t.qZA()),2&e&&(t.Tol(o.theme),t.xp6(2),t.hij(" ",t.lcZ(3,9,"DIALOGS.ADD_GROUPS_HIERARCHICAL_INCLUSION.TITLE")," "),t.xp6(4),t.hij(" ",t.xi3(7,11,"DIALOGS.ADD_GROUPS_HIERARCHICAL_INCLUSION.INFO",t.VKq(14,zc,o.parentVo.name))," "),t.xp6(2),t.Q6J("placeholder","DIALOGS.ADD_GROUPS_HIERARCHICAL_INCLUSION.SEARCH"),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[_.O5,I.lW,u.uh,u.xY,u.H8,T.Ou,R.w,V.W,L.L,m.X$]}),i})();function Xc(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"perun-web-apps-vo-search-select",9),t.NdJ("voSelected",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.voSelected(n))}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("vos",e.parentVos)}}const Kc=function(){return["select","id","name","description"]};function Wc(i,a){if(1&i&&t._UZ(0,"perun-web-apps-groups-list",10),2&i){const e=t.oxw();t.Q6J("tableId",e.tableId)("groups",e.allowedGroups)("selection",e.selected)("displayedColumns",t.DdM(5,Kc))("noGroupsAlert","VO_DETAIL.SETTINGS.HIERARCHICAL_INCLUSION.NO_GROUPS_ALLOWED_ALERT")}}function tp(i,a){1&i&&t._UZ(0,"mat-spinner",11)}let ep=(()=>{class i{constructor(e,o,n,s,r,d,A){this.dialog=e,this.entityStorage=o,this.voService=n,this.groupService=s,this.notificator=r,this.translate=d,this.changeDetector=A,this.loading=!1,this.parentVos=[],this.allowedGroups=[],this.selected=new E.Ov(!0,[]),this.tableId=C.$t}ngOnInit(){this.loading=!0,this.vo=this.entityStorage.getEntity(),this.voService.getEnrichedVoById(this.vo.id).subscribe(e=>{this.parentVos=e.parentVos,this.loading=!1},()=>this.loading=!1)}voSelected(e){this.selectedParentVo=e,this.loadAllowedGroups(),this.changeDetector.detectChanges()}loadAllowedGroups(){this.loading=!0,this.selected.clear(),this.groupService.getVoAllAllowedGroupsToHierarchicalVo(this.selectedParentVo.id,this.vo.id).subscribe(e=>{this.allowedGroups=e,this.loading=!1})}addGroupsInclusion(){const e=(0,g.kZ)();e.width="750px",e.data={theme:"vo-theme",voId:this.vo.id,parentVo:this.selectedParentVo,allowedGroupsIds:this.allowedGroups.map(o=>o.id)},this.dialog.open($c,e).afterClosed().subscribe(o=>{o&&this.loadAllowedGroups()})}removeGroupsInclusion(){const e=(0,g.kZ)();e.width="750px",e.data={theme:"vo-theme",title:"DIALOGS.REMOVE_GROUPS_HIERARCHICAL_INCLUSION.TITLE",description:"DIALOGS.REMOVE_GROUPS_HIERARCHICAL_INCLUSION.DESCRIPTION",items:this.selected.selected.map(o=>o.name),alert:this.translate.instant("DIALOGS.REMOVE_GROUPS_HIERARCHICAL_INCLUSION.ALERT",{parentVo:this.selectedParentVo.name}),type:"remove",showAsk:!0},this.dialog.open(G.Ts,e).afterClosed().subscribe(o=>{o&&this.disallowGroups()})}disallowGroups(){this.loading=!0;const e=this.selected.selected.map(o=>o.id);this.groupService.disallowGroupsToHierarchicalVo(e,this.selectedParentVo.id).subscribe({next:()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.REMOVE_GROUPS_HIERARCHICAL_INCLUSION.SUCCESS")),this.loadAllowedGroups()},error:()=>this.loading=!1})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.uw),t.Y36(p.fb),t.Y36(h.YF),t.Y36(h.ff),t.Y36(p.V6),t.Y36(p.Te),t.Y36(t.sBO))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-settings-hierarchical-inclusion"]],decls:15,vars:13,consts:[[1,"page-subtitle"],[1,"display-flex"],[3,"click"],["mat-flat-button","","color","accent",1,"mr-2","action-button",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[1,"vo-search-select"],[3,"vos","voSelected",4,"ngIf"],["theme","vo-theme",3,"tableId","groups","selection","displayedColumns","noGroupsAlert",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"vos","voSelected"],["theme","vo-theme",3,"tableId","groups","selection","displayedColumns","noGroupsAlert"],[1,"ml-auto","mr-auto"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div",1)(4,"perun-web-apps-refresh-button",2),t.NdJ("click",function(){return o.loadAllowedGroups()}),t.qZA(),t.TgZ(5,"button",3),t.NdJ("click",function(){return o.addGroupsInclusion()}),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"button",4),t.NdJ("click",function(){return o.removeGroupsInclusion()}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"div",5),t.YNc(12,Xc,1,1,"perun-web-apps-vo-search-select",6),t.qZA()(),t.YNc(13,Wc,1,6,"perun-web-apps-groups-list",7),t.YNc(14,tp,1,0,"mat-spinner",8)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,7,"VO_DETAIL.SETTINGS.HIERARCHICAL_INCLUSION.TITLE")),t.xp6(5),t.hij(" ",t.lcZ(7,9,"VO_DETAIL.SETTINGS.HIERARCHICAL_INCLUSION.ADD")," "),t.xp6(2),t.Q6J("disabled",0===o.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(10,11,"VO_DETAIL.SETTINGS.HIERARCHICAL_INCLUSION.REMOVE")," "),t.xp6(3),t.Q6J("ngIf",o.parentVos.length>0),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(1),t.Q6J("ngIf",o.loading))},dependencies:[_.O5,I.lW,T.Ou,V.W,Z.t,lt.M,m.X$],styles:[".display-flex[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:wrap}.vo-search-select[_ngcontent-%COMP%]{width:400px;padding-top:10px;margin-left:5px}"]}),i})();var ip=l(61639),op=l(4811),np=l(83370);let ap=(()=>{class i{constructor(e,o,n,s,r){this.data=e,this.dialogRef=o,this.store=n,this.voService=s,this.notificator=r,this.selection=new E.Ov(!1,[]),this.loading=!1,this.attrNames=[S.r.MEMBER_DEF_MAIL,S.r.USER_DEF_PREFERRED_MAIL].concat(this.store.getLoginAttributeNames()),this.displayedColumns=["checkbox","id","fullName","email","logins"],this.tableId=C.bj,this.filter=""}ngOnInit(){this.selection.changed.subscribe(e=>{this.ban=this.data.bans.find(o=>o.memberId===e.source.selected[0]?.id)})}cancel(){this.dialogRef.close(!1)}submitBan(e){this.ban?this.updateBan(e):this.banMember(e)}setFilter(e){this.filter=e,this.selection.clear()}banMember(e){this.loading=!0,this.voService.setVoBan({banOnVo:{memberId:this.selection.selected[0].id,description:e.description,validityTo:e.validity,id:0,beanName:"BanOnVo"}}).subscribe({next:()=>{this.notificator.showSuccess("DIALOGS.ADD_BAN.SUCCESS_MEMBER"),this.dialogRef.close(!0)},error:()=>this.loading=!1})}updateBan(e){this.loading=!0,this.voService.updateVoBan({banOnVo:{id:this.ban.id,beanName:"BanOnVo",voId:this.ban.voId,memberId:this.ban.memberId,description:e.description,validityTo:e.validity}}).subscribe({next:()=>{this.notificator.showSuccess("DIALOGS.UPDATE_BAN.SUCCESS"),this.dialogRef.close(!0)},error:()=>{this.loading=!1}})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.WI),t.Y36(u.so),t.Y36(p.d6),t.Y36(h.YF),t.Y36(p.V6))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-add-vo-ban-dialog"]],decls:3,vars:12,consts:[[3,"loading","disabled","theme","ban","add","cancel"],[3,"placeholder","filter"],[3,"attrNames","selection","tableId","disableRouting","displayedColumns","searchString","voId"]],template:function(e,o){1&e&&(t.TgZ(0,"app-add-ban-dialog",0),t.NdJ("add",function(s){return o.submitBan(s)})("cancel",function(){return o.cancel()}),t.TgZ(1,"perun-web-apps-debounce-filter",1),t.NdJ("filter",function(s){return o.setFilter(s)}),t.qZA(),t._UZ(2,"perun-web-apps-members-dynamic-list",2),t.qZA()),2&e&&(t.Q6J("loading",o.loading)("disabled",0===o.selection.selected.length)("theme",o.data.theme)("ban",o.ban),t.xp6(1),t.Q6J("placeholder","DIALOGS.ADD_BAN.FILTER"),t.xp6(1),t.Q6J("attrNames",o.attrNames)("selection",o.selection)("tableId",o.tableId)("disableRouting",!0)("displayedColumns",o.displayedColumns)("searchString",o.filter)("voId",o.data.entityId))},dependencies:[$.P,op.m,np.u]}),i})();var zt=l(32316),ut=l(19516),$t=l(73358),Xt=l(91880);function sp(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.add())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.BANS.ADD"),"\n"))}function rp(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.remove())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"VO_DETAIL.SETTINGS.BANS.REMOVE"),"\n")}}function lp(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"perun-web-apps-ban-on-entity-list",10),t.NdJ("updateBan",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.update(n))}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("bans",e.bans)("selection",e.selection)("updatePolicy","updateBan_BanOnVo_policy")("displayedColumns",e.displayedColumns)("filter",e.filter)}}function cp(i,a){1&i&&(t.TgZ(0,"div",11),t._UZ(1,"mat-spinner"),t.qZA())}let pp=(()=>{class i{constructor(e,o,n,s,r,d){this.voService=e,this.entityService=o,this.authResolver=n,this.dialog=s,this.notificator=r,this.userName=d,this.loading=!1,this.bans=[],this.removeAuth=!1,this.filter="",this.selection=new E.Ov(!1,[]),this.displayedColumns=["select","banId","subjectId","subjectName","description","expiration","edit"]}ngOnInit(){this.loading=!0,this.vo=this.entityService.getEntity(),this.addAuth=this.authResolver.isAuthorized("setBan_BanOnVo_policy",[this.vo]),this.removeAuth=this.authResolver.isAuthorized("vo-removeBan_int_policy",[this.vo]),this.refresh()}refresh(){this.loading=!0,this.voService.getEnrichedBansForVo(this.vo.id).subscribe({next:e=>{this.bans=e,this.selection.clear(),this.loading=!1},error:()=>this.loading=!1})}add(){const e=(0,g.kZ)();e.width="850px",e.data={entityId:this.vo.id,theme:"vo-theme",bans:this.bans.map(n=>n.ban)},this.dialog.open(ap,e).afterClosed().subscribe(n=>{n&&this.refresh()})}remove(){const e=(0,g.kZ)();e.width="550px",e.data={theme:"vo-theme",title:"DIALOGS.REMOVE_BAN.TITLE",description:"DIALOGS.REMOVE_BAN.DESCRIPTION",items:[this.userName.transform(this.selection.selected[0].member.user)],type:"remove",showAsk:!0},this.dialog.open(G.Ts,e).afterClosed().subscribe(n=>{n&&this.voService.removeVoBan(this.selection.selected[0].ban.id).subscribe(()=>{this.notificator.showSuccess("DIALOGS.REMOVE_BAN.SUCCESS"),this.refresh()})})}update(e){const o=(0,g.kZ)();o.width="600px",o.data={ban:e.ban,theme:"vo-theme"},this.dialog.open(zt.A,o).afterClosed().subscribe(s=>{s&&this.refresh()})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.YF),t.Y36(p.fb),t.Y36(p.x4),t.Y36(u.uw),t.Y36(p.V6),t.Y36(ut.dp))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-settings-bans"]],features:[t._Bn([ut.dp])],decls:11,vars:8,consts:[[1,"page-subtitle"],[3,"click"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["color","warn","class","mr-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],[1,"mt-2","search-field",3,"placeholder","filter"],[1,"position-relative"],[3,"bans","selection","updatePolicy","displayedColumns","filter","updateBan",4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["spinner",""],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[3,"bans","selection","updatePolicy","displayedColumns","filter","updateBan"],[1,"spinner-container"]],template:function(e,o){if(1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-refresh-button",1),t.NdJ("click",function(){return o.refresh()}),t.qZA(),t.YNc(4,sp,3,3,"button",2),t.YNc(5,rp,3,4,"button",3),t.TgZ(6,"perun-web-apps-debounce-filter",4),t.NdJ("filter",function(s){return o.filter=s}),t.qZA(),t.TgZ(7,"div",5),t.YNc(8,lp,1,5,"perun-web-apps-ban-on-entity-list",6),t.qZA(),t.YNc(9,cp,2,0,"ng-template",null,7,t.W1O)),2&e){const n=t.MAs(10);t.xp6(1),t.hij(" ",t.lcZ(2,6,"VO_DETAIL.SETTINGS.BANS.TITLE"),"\n"),t.xp6(3),t.Q6J("ngIf",o.addAuth),t.xp6(1),t.Q6J("ngIf",o.removeAuth),t.xp6(1),t.Q6J("placeholder","VO_DETAIL.SETTINGS.BANS.FILTER"),t.xp6(2),t.Q6J("perunWebAppsLoader",o.loading)("perunWebAppsLoaderIndicator",n)}},dependencies:[_.O5,I.lW,T.Ou,Z.t,$.P,$t.e,Xt.s,m.X$]}),i})();function up(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"perun-web-apps-ban-on-entity-list",5),t.NdJ("updateBan",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.update(n))}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("bans",e.bans)("updatePolicy","updateBan_BanOnVo_policy")("displayedColumns",e.displayedColumns)}}function dp(i,a){1&i&&(t.TgZ(0,"div",6),t._UZ(1,"mat-spinner"),t.qZA())}let _p=(()=>{class i{constructor(e,o,n){this.voService=e,this.entityService=o,this.dialog=n,this.loading=!1,this.bans=[],this.filter="",this.displayedColumns=["banId","description","expiration","edit"]}ngOnInit(){this.loading=!0,this.member=this.entityService.getEntity(),this.refresh()}refresh(){this.loading=!0,this.voService.getVoBanForMember(this.member.id).subscribe({next:e=>{this.bans=null===e?[]:[{ban:e,member:null,vo:null}],this.loading=!1},error:()=>this.loading=!1})}update(e){const o=(0,g.kZ)();o.width="600px",o.data={ban:e.ban,theme:"vo-theme"},this.dialog.open(zt.A,o).afterClosed().subscribe(s=>{s&&this.refresh()})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.YF),t.Y36(p.fb),t.Y36(u.uw))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-member-bans"]],decls:8,vars:5,consts:[[1,"page-subtitle"],[3,"click"],[1,"position-relative"],[3,"bans","updatePolicy","displayedColumns","updateBan",4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["spinner",""],[3,"bans","updatePolicy","displayedColumns","updateBan"],[1,"spinner-container"]],template:function(e,o){if(1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-refresh-button",1),t.NdJ("click",function(){return o.refresh()}),t.qZA(),t.TgZ(4,"div",2),t.YNc(5,up,1,3,"perun-web-apps-ban-on-entity-list",3),t.qZA(),t.YNc(6,dp,2,0,"ng-template",null,4,t.W1O)),2&e){const n=t.MAs(7);t.xp6(1),t.hij(" ",t.lcZ(2,3,"MEMBER_DETAIL.BANS.TITLE"),"\n"),t.xp6(4),t.Q6J("perunWebAppsLoader",o.loading)("perunWebAppsLoaderIndicator",n)}},dependencies:[T.Ou,Z.t,$t.e,Xt.s,m.X$]}),i})();var mp=l(35265);const gp=[{path:"",component:te.Y},{path:":voId",component:ye,canActivateChild:[W.a],children:[{path:"",component:be,data:{animation:"VoOverviewPage"}},{path:"attributes",component:Ti,data:{animation:"VoAttributesPage"}},{path:"groups",component:ve.G,data:{animation:"VoGroupsPage"}},{path:"members",component:Ee.y,data:{animation:"VoMembersPage"}},{path:"resources",component:hi,children:[{path:"",component:ca,data:{animation:"VoResourcesOverviewPage"}},{path:"preview",component:pa.z,data:{animation:"VoResourcesPreviewPage"}},{path:"states",component:ua.z,data:{animation:"VoResourcesStatesPage"}},{path:"tags",component:Sa,data:{animation:"VoResourcesTagsPage"}}]},{path:"applications",component:fi.c,data:{animation:"VoApplicationsPage"}},{path:"applications/:applicationId",component:st,data:{animation:"VoApplicationDetailPage"}},{path:"sponsoredMembers",component:gl.T,data:{animation:"VoSettingsSponsoredMembersPage"}},{path:"serviceAccounts",component:Cc,data:{animation:"VoSettingsServiceMembersPage"}},{path:"statistics",component:Ol,data:{animation:"VoStatisticsPage"}},{path:"settings",component:Ai,children:[{path:"",component:vi,data:{animation:"VoSettingsOverviewPage"}},{path:"expiration",component:yi,data:{animation:"VoSettingsExpirationPage"}},{path:"managers",component:Fi,data:{animation:"VoSettingsManagersPage"}},{path:"applicationForm",component:qo.w,data:{animation:"SettingsApplicationFormPage"}},{path:"applicationForm/preview",component:Rt,data:{animation:"SettingsApplicationFormPreviewPage"}},{path:"applicationForm/manageGroups",component:Jl},{path:"notifications",component:Js,data:{animation:"SettingsApplicationFormNotificationsPage"}},{path:"extsources",component:_r,data:{animation:"VoSettingsExtSourcesPage"}},{path:"memberOrganizations",component:kc,data:{animation:"VoSettingsMemberOrganizationsPage"}},{path:"hierarchicalInclusion",component:ep,data:{animation:"VoSettingsHierarchicalInclusionComponent"}},{path:"bans",component:pp,data:{animation:"VoSettingsBansComponent"}}]}]},{path:":voId/members/:memberId",component:Ae,canActivateChild:[W.a],children:[{path:"",component:ci,data:{animation:"MemberOverviewPage"}},{path:"attributes",component:la,data:{animation:"MemberAttributesPage"}},{path:"groups",component:pi.j,data:{animation:"MemberGroupsPage"}},{path:"applications",component:Vr,data:{animation:"MemberApplicationsPage"}},{path:"applications/:applicationId",component:st,data:{animation:"MemberApplicationDetailPage"}},{path:"resources",component:al,data:{animation:"MemberResourcesPage"}},{path:"bans",component:_p,data:{animation:"MemberBansPage"}}]},{path:":voId/groups/:groupId",component:de,canActivateChild:[W.a],children:[{path:"",component:mi,data:{animation:"GroupOverviewPage"}},{path:"members",component:Oo.y,data:{animation:"GroupMembersPage"}},{path:"subgroups",component:gi.u,data:{animation:"GroupSubgroupsPage"}},{path:"applications",component:Vi.W,data:{animation:"GroupApplicationsPage"}},{path:"resources",component:Zo.q,data:{animation:"GroupResourcesPage"}},{path:"attributes",component:Vo,data:{animation:"GroupAttributesPage"}},{path:"statistics",component:Ml,data:{animation:"GroupStatisticsPage"}},{path:"roles",component:ip.C,data:{animation:"GroupRolesPage"}},{path:"settings",component:Do,children:[{path:"",component:Jo,data:{animation:"GroupSettingsOverviewPage"}},{path:"expiration",component:Na,data:{animation:"GroupSettingsExpirationPage"}},{path:"managers",component:Oa,data:{animation:"GroupSettingsManagersPage"}},{path:"applicationForm",component:qs.Z,data:{animation:"GroupSettingsApplicationFormPage"}},{path:"applicationForm/preview",component:Rt},{path:"notifications",component:Ks,data:{animation:"GroupSettingsNotificationsPage"}},{path:"relations",component:Rr,data:{animation:"GroupSettingsRelationsPage"}},{path:"extsources",component:Il,data:{animation:"GroupSettingsExtsourcesPage"}}]},{path:"applications/:applicationId",component:st,data:{animation:"GroupApplicationDetailPage"}}]},{path:":voId/resources/:resourceId",component:sl.b,canActivateChild:[W.a],children:[{path:"",component:rl.H,data:{animation:"ResourceOverviewPage"}},{path:"groups",component:ll.K,data:{animation:"ResourceGroupsComponent"}},{path:"services",component:_l.D,data:{animation:"ResourceAssignedServicesComponent"}},{path:"attributes",component:ul.X,data:{animation:"ResourceAttributesPage"}},{path:"members",component:ml.y,data:{animation:"ResourceAssignedMembersComponent"}},{path:"tags",component:ql.v,data:{animation:"ResourceTagsComponent"}},{path:"settings",component:cl.t,children:[{path:"",component:pl.h,data:{animation:"ResourceSettingsOverviewPage"}},{path:"managers",component:dl.O,data:{animation:"ResourceSettingsManagersPage"}},{path:"bans",component:mp.I,data:{animation:"ResourceSettingsBansPage"}}]}]}];let hp=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[b.Bz.forChild(gp),b.Bz]}),i})();var fp=l(14264),Ap=l(63189),Tp=l(37433),Ip=l(51525),bp=l(45256),dt=l(28255);let _t=(()=>{class i{transform(e){return e?.member?.sourceGroupId&&"DIRECT"===e?.member?.membershipType?"Member of Group":e?.member?.sourceGroupId&&"INDIRECT"===e?.member?.membershipType?"Indirect member of Group":e.member?"Member of VO":""}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=t.Yjl({name:"memberType",type:i,pure:!0}),i})();var vp=l(86511);let mt=(()=>{class i{constructor(e){this.addMemberService=e}transform(e,o){return e.member?"vo"===this.addMemberService.getType()||e.member?.sourceGroupId&&"DIRECT"===e.member?.membershipType:o}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(vp.A,16))},i.\u0275pipe=t.Yjl({name:"disabledCandidate",type:i,pure:!0}),i})();var Ep=l(69773),Cp=l(21757),Sp=l(9954);let xp=(()=>{class i{transform(e){return e.member?"MEMBERS_CANDIDATES_LIST.ALREADY_MEMBER":"MEMBERS_CANDIDATES_LIST.ADDING_BLOCKED"}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=t.Yjl({name:"disabledCandidateTooltip",type:i,pure:!0}),i})();function Np(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"th",19)(1,"mat-checkbox",20),t.NdJ("change",function(n){t.CHM(e);const s=t.oxw(2);return t.KtG(n?s.masterToggle():null)}),t.ALo(2,"translate"),t.ALo(3,"masterCheckboxLabel"),t.qZA()()}if(2&i){const e=t.oxw().ngIf,o=t.oxw();t.xp6(1),t.Q6J("aria-label",t.lcZ(2,3,t.lcZ(3,5,e.all)))("checked",o.selection.hasValue()&&e.all)("indeterminate",o.selection.hasValue()&&!e.all)}}const Op=function(i){return{name:i}};function Zp(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"td",21)(1,"div",22),t.ALo(2,"translate"),t.ALo(3,"disabledCandidateTooltip"),t.ALo(4,"disabledCandidate"),t.TgZ(5,"mat-checkbox",23),t.NdJ("change",function(n){const r=t.CHM(e).$implicit,d=t.oxw(2);return t.KtG(n?d.itemSelectionToggle(r):null)})("click",function(n){return n.stopPropagation()}),t.ALo(6,"translate"),t.ALo(7,"checkboxLabel"),t.ALo(8,"userFullName"),t.ALo(9,"disabledCandidate"),t.ALo(10,"lowercase"),t.ALo(11,"translate"),t.qZA()()()}if(2&i){const e=a.$implicit,o=t.oxw(2);let n;t.xp6(1),t.Q6J("matTooltip",t.lcZ(2,6,t.lcZ(3,8,e)))("matTooltipDisabled",!t.xi3(4,10,e,o.blockManualAdding)),t.xp6(4),t.Q2q("data-cy","",t.lcZ(10,23,t.lcZ(11,25,e.richUser?e.richUser.firstName:e.candidate.firstName)),"-checkbox"),t.Q6J("aria-label",t.xi3(6,13,t.lcZ(7,16,o.selection.isSelected(e)),t.VKq(27,Op,t.lcZ(8,18,null!==(n=e.richUser)&&void 0!==n?n:e.candidate))))("checked",o.selection.isSelected(e))("disabled",t.xi3(9,20,e,o.blockManualAdding))}}function Dp(i,a){1&i&&(t.ynx(0,16),t.YNc(1,Np,4,7,"th",17),t.YNc(2,Zp,12,29,"td",18),t.BQk())}function Mp(i,a){1&i&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBERS_CANDIDATES_LIST.STATUS")," "))}function Lp(i,a){if(1&i&&(t.TgZ(0,"i",27),t.ALo(1,"memberStatusIconColor"),t._uU(2),t.ALo(3,"memberStatusIcon"),t.qZA()),2&i){const e=t.oxw().$implicit;t.Gre("material-icons ",t.lcZ(1,5,e.member),""),t.s9C("matTooltip",e.member.status),t.xp6(2),t.hij(" ",t.lcZ(3,7,e.member.status)," ")}}function Rp(i,a){if(1&i&&(t.TgZ(0,"td",25),t.YNc(1,Lp,4,9,"i",26),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Q6J("ngIf",e.member)}}function wp(i,a){1&i&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBERS_CANDIDATES_LIST.NAME")," "))}function Gp(i,a){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.ALo(2,"userFullName"),t.ALo(3,"userFullName"),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.hij(" ",e.richUser?t.lcZ(2,1,e.richUser):t.lcZ(3,3,e.candidate)," ")}}function Up(i,a){1&i&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBERS_CANDIDATES_LIST.ORGANIZATION")," "))}function Pp(i,a){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.ALo(2,"userVo"),t.qZA()),2&i){const e=a.$implicit,o=t.oxw();t.xp6(1),t.hij(" ",e.richUser?t.lcZ(2,1,e.richUser):o.getOrganization(e.candidate)," ")}}function yp(i,a){1&i&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBERS_CANDIDATES_LIST.EMAIL")," "))}function Vp(i,a){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&i){const e=a.$implicit,o=t.oxw();t.xp6(1),t.hij(" ",o.getEmail(e)," ")}}function Fp(i,a){1&i&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBERS_CANDIDATES_LIST.LOGINS")," "))}function Yp(i,a){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&i){const e=a.$implicit,o=t.oxw();t.xp6(1),t.hij(" ",o.getLogins(e)," ")}}function Jp(i,a){1&i&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBERS_CANDIDATES_LIST.ALREADY_MEMBER")," "))}function qp(i,a){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.ALo(2,"memberType"),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,e)," ")}}function kp(i,a){1&i&&t._UZ(0,"th",24)}function Qp(i,a){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.hij(" ",e.richUser?"Local":"External identity"," ")}}function Bp(i,a){1&i&&t._UZ(0,"tr",28)}function Hp(i,a){1&i&&t._UZ(0,"tr",29)}function jp(i,a){1&i&&(t.TgZ(0,"perun-web-apps-alert",30),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_MEMBERS.NO_USERS_FOUND"),"\n"))}const zp=function(i){return{all:i}};let $p=(()=>{class i{constructor(e,o,n){this.memberTypePipe=e,this.disabledCandidatePipe=o,this.tableCheckbox=n,this.blockManualAdding=!1,this.displayedColumns=["checkbox","status","fullName","voExtSource","email","logins","alreadyMember","local"],this.pageSizeOptions=g.f7,this.canBeSelected=s=>!this.disabledCandidatePipe.transform(s,this.blockManualAdding),this.getDataForColumnFun=(s,r)=>this.getDataForColumn(s,r),this.getExportDataForColumnFun=(s,r)=>this.getExportDataForColumn(s,r)}set matSort(e){this.sort=e,this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}ngOnChanges(){this.dataSource=new c.by(this.members),this.setDataSource()}getDataForColumn(e,o){switch(o){case"status":return e.member?e.member.status??"":"";case"fullName":{const n=e.richUser?e.richUser:e.candidate;return n.lastName?n.lastName:n.firstName??""}case"voExtSource":return e.richUser?(0,g.OV)(e.richUser):(0,g.v$)(e.candidate);case"email":return e.richUser||e.member?(0,g.kN)(e.richUser):this.getEmail(e);case"logins":return this.getLogins(e);case"alreadyMember":return this.memberTypePipe.transform(e);case"local":return e.richUser?"Local":"External identity";default:return e[o]}}getExportDataForColumn(e,o){switch(o){case"status":return e.member?e.member.status??"":"";case"fullName":return(0,g.bD)(e.richUser?e.richUser:e.candidate);case"voExtSource":return e.richUser?(0,g.OV)(e.richUser):(0,g.v$)(e.candidate);case"email":return e.richUser||e.member?(0,g.kN)(e.richUser):this.getEmail(e);case"logins":return this.getLogins(e);case"alreadyMember":return this.memberTypePipe.transform(e);case"local":return e.richUser?"Local":"External identity";default:return e[o]}}exportAllData(e){(0,g.O6)((0,g.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getExportDataForColumnFun),e)}exportDisplayedData(e){const o=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,n=o+this.dataSource.paginator.pageSize;(0,g.O6)((0,g.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(o,n),this.displayedColumns,this.getExportDataForColumnFun),e)}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.filterPredicate=(e,o)=>(0,g.Sd)(e,o,this.displayedColumns,this.getDataForColumnFun),this.dataSource.sortData=(e,o)=>(0,g.pR)(e,o,this.getDataForColumnFun),this.dataSource.paginator=this.child.paginator)}getEmail(e){let o;if(e.richUser){for(const n of e.richUser.userAttributes)if(n.namespace+":"+n.friendlyName=="urn:perun:user:attribute-def:def:preferredMail"){o=n;break}return null!=o?.value?o.value.replace(","," "):""}return(0,g.Jc)(e.candidate)}getOrganization(e){return(0,g.v$)(e)}getLogins(e){if(e.richUser)return this.getLoginsForRichUser(e.richUser);{let o=this.getLoginsForCandidate(e.candidate);return(null==o||""===o)&&(o=e.candidate.userExtSource.login),o}}getLoginsForRichUser(e){let o="";for(const n of e.userAttributes)n.friendlyName.startsWith("login-namespace")&&null!=n.value&&(o.length>0&&(o+=", "),o+=n.friendlyName.substring(16)+": "+n.value);return o}getLoginsForCandidate(e){let n="";for(const s in e.attributes)Object.prototype.hasOwnProperty.call(e.attributes,s)&&s.includes("urn:perun:user:attribute-def:def:login-namespace:")&&null!=e.attributes[s]&&(n.length>0&&(n+=", "),n+=s.substring(49)+": "+e.attributes[s]);return n}itemSelectionToggle(e){this.selection.toggle(e)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource,this.canBeSelected)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,"",this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!0,this.canBeSelected)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(_t),t.Y36(mt),t.Y36(p.UA))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-members-candidates-list"]],viewQuery:function(e,o){if(1&e&&(t.Gf(g.l9,7),t.Gf(q.YE,7)),2&e){let n;t.iGM(n=t.CRH())&&(o.child=n.first),t.iGM(n=t.CRH())&&(o.matSort=n.first)}},inputs:{members:"members",selection:"selection",tableId:"tableId",blockManualAdding:"blockManualAdding"},features:[t._Bn([_t,mt]),t.TTD],decls:29,vars:15,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","fullName","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox",4,"ngIf"],["matColumnDef","status"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","fullName"],["matColumnDef","voExtSource"],["matColumnDef","email"],["matColumnDef","logins"],["matColumnDef","alreadyMember"],["matColumnDef","local"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","checkbox"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["matTooltipPosition","left",3,"class","matTooltip",4,"ngIf"],["matTooltipPosition","left",3,"matTooltip"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportDisplayedData",function(s){return o.exportDisplayedData(s)})("exportAllData",function(s){return o.exportAllData(s)}),t.TgZ(2,"table",2),t.YNc(3,Dp,3,0,"ng-container",3),t.ALo(4,"isAllSelected"),t.ynx(5,4),t.YNc(6,Mp,3,3,"th",5),t.YNc(7,Rp,2,1,"td",6),t.BQk(),t.ynx(8,7),t.YNc(9,wp,3,3,"th",5),t.YNc(10,Gp,4,5,"td",6),t.BQk(),t.ynx(11,8),t.YNc(12,Up,3,3,"th",5),t.YNc(13,Pp,3,3,"td",6),t.BQk(),t.ynx(14,9),t.YNc(15,yp,3,3,"th",5),t.YNc(16,Vp,2,1,"td",6),t.BQk(),t.ynx(17,10),t.YNc(18,Fp,3,3,"th",5),t.YNc(19,Yp,2,1,"td",6),t.BQk(),t.ynx(20,11),t.YNc(21,Jp,3,3,"th",5),t.YNc(22,qp,3,3,"td",6),t.BQk(),t.ynx(23,12),t.YNc(24,kp,1,0,"th",5),t.YNc(25,Qp,2,1,"td",6),t.BQk(),t.YNc(26,Bp,1,0,"tr",13),t.YNc(27,Hp,1,0,"tr",14),t.qZA()()(),t.YNc(28,jp,3,3,"perun-web-apps-alert",15)),2&e&&(t.Q6J("hidden",0===o.members.length),t.xp6(1),t.Q6J("tableId",o.tableId)("dataLength",o.dataSource.filteredData.length)("pageSizeOptions",o.pageSizeOptions),t.xp6(1),t.Q6J("dataSource",o.dataSource),t.xp6(1),t.Q6J("ngIf",t.VKq(13,zp,t.Dn7(4,9,o.dataSource,o.selection.selected.length,o.canBeSelected))),t.xp6(23),t.Q6J("matHeaderRowDef",o.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",o.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===o.members.length))},dependencies:[_.O5,q.YE,q.nU,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.ge,c.ev,c.XQ,c.Gk,j.oG,N.gM,R.w,Pt.l,_.i8,m.X$,B.d,Ep.u,Cp.f,Sp.Z,xp,yt.I,Vt.G,Ft.r,_t,mt]}),i})();function Xp(i,a){1&i&&t._UZ(0,"mat-spinner",14)}function Kp(i,a){if(1&i&&(t.TgZ(0,"div",15),t._UZ(1,"app-members-candidates-list",16),t.qZA()),2&i){const e=t.oxw(2);t.xp6(1),t.Q6J("tableId",e.tableId)("members",e.members)("selection",e.selection)("blockManualAdding",e.manualAddingBlocked)}}function Wp(i,a){if(1&i&&(t.TgZ(0,"button",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i){t.oxw();const e=t.MAs(16),o=t.oxw();t.Q6J("disabled",0===o.selection.selected.length||!o.inviteAuth)("matMenuTriggerFor",e),t.xp6(1),t.hij(" ",t.lcZ(2,3,"DIALOGS.ADD_MEMBERS.INVITE")," ")}}function tu(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",18),t.NdJ("click",function(){const s=t.CHM(e).$implicit,r=t.oxw(2);return t.KtG(r.invite.emit(s))}),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.ALo(4,"uppercase"),t.ALo(5,"translate"),t.qZA()}if(2&i){const e=a.$implicit;t.xp6(1),t.lnq(" ",t.lcZ(2,3,"DIALOGS.ADD_MEMBERS.INVITE_IN_LANGUAGE")," ",t.lcZ(3,5,t.lcZ(4,7,"SHARED_LIB.LANGUAGES."+e))," ",t.lcZ(5,9,"DIALOGS.ADD_MEMBERS.LANGUAGE")," ")}}function eu(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div")(1,"div",2)(2,"perun-web-apps-debounce-filter",3),t.NdJ("filter",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.search.emit(n))}),t.ALo(3,"translate"),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"div",4),t.YNc(6,Xp,1,0,"mat-spinner",5),t.qZA(),t.YNc(7,Kp,2,4,"div",6),t.qZA(),t.TgZ(8,"div",7)(9,"button",8),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.cancel.emit(!1))}),t._uU(10),t.ALo(11,"translate"),t.qZA(),t.TgZ(12,"span",9),t.ALo(13,"translate"),t.YNc(14,Wp,3,5,"button",10),t.TgZ(15,"mat-menu",null,11),t.YNc(17,tu,6,11,"button",12),t.qZA()(),t.TgZ(18,"span",9),t.ALo(19,"translate"),t.TgZ(20,"button",13),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.add.emit())}),t._uU(21),t.ALo(22,"translate"),t.qZA()()()()}if(2&i){const e=t.oxw();t.xp6(2),t.s9C("error",t.lcZ(3,15,"DIALOGS.ADD_MEMBERS.EMPTY_SEARCH_MESSAGE")),t.s9C("placeholder",t.lcZ(4,17,"DIALOGS.ADD_MEMBERS.DESCRIPTION")),t.Q6J("autoFocus",!0)("control",e.searchCtrl),t.xp6(4),t.Q6J("ngIf",null===e.members||e.loading),t.xp6(1),t.Q6J("ngIf",!!e.members&&!e.loading),t.xp6(3),t.hij(" ",t.lcZ(11,19,"DIALOGS.ADD_MEMBERS.CANCEL")," "),t.xp6(2),t.s9C("matTooltip",t.lcZ(13,21,"DIALOGS.ADD_MEMBERS.ADD_MEMBER_PERMISSION_TOOLTIP")),t.Q6J("matTooltipDisabled",0===e.selection.selected.length||e.inviteAuth),t.xp6(2),t.Q6J("ngIf",e.inviteAuth),t.xp6(3),t.Q6J("ngForOf",e.languages),t.xp6(1),t.s9C("matTooltip",t.lcZ(19,23,"DIALOGS.ADD_MEMBERS.ADD_MEMBER_PERMISSION_TOOLTIP")),t.Q6J("matTooltipDisabled",0===e.selection.selected.length||e.addAuth),t.xp6(2),t.Q6J("disabled",0===e.selection.selected.length||!e.addAuth),t.xp6(1),t.hij(" ",t.lcZ(22,25,"DIALOGS.ADD_MEMBERS.CREATE")," ")}}function iu(i,a){1&i&&t._UZ(0,"mat-spinner",14)}function ou(i,a){1&i&&(t.TgZ(0,"th",29),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_MEMBERS.NAME_COLUMN")," "))}function nu(i,a){if(1&i&&(t.TgZ(0,"td",30),t._uU(1),t.ALo(2,"userFullName"),t.qZA()),2&i){const e=a.$implicit;let o;t.xp6(1),t.hij(" ",t.lcZ(2,1,null!==(o=e.candidate.candidate)&&void 0!==o?o:e.candidate.richUser)," ")}}function au(i,a){1&i&&(t.TgZ(0,"th",29),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_MEMBERS.ERROR_COLUMN")," "))}function su(i,a){if(1&i&&(t.TgZ(0,"td",30),t._uU(1),t.TgZ(2,"div",31),t._uU(3),t.qZA()()),2&i){const e=a.$implicit;t.xp6(1),t.hij(" ",e.errorMsg," "),t.xp6(2),t.hij(" ",e.errorName," ")}}function ru(i,a){1&i&&t._UZ(0,"tr",32)}function lu(i,a){1&i&&t._UZ(0,"tr",33)}const Kt=function(){return["userName","error"]};function cu(i,a){if(1&i&&(t.TgZ(0,"div",2)(1,"perun-web-apps-alert",21),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"table",22),t.ynx(5,23),t.YNc(6,ou,3,3,"th",24),t.YNc(7,nu,3,3,"td",25),t.BQk(),t.ynx(8,26),t.YNc(9,au,3,3,"th",24),t.YNc(10,su,4,2,"td",25),t.BQk(),t.YNc(11,ru,1,0,"tr",27),t.YNc(12,lu,1,0,"tr",28),t.qZA()()),2&i){const e=t.oxw(2);t.xp6(1),t.Q6J("alert_type","error"),t.xp6(1),t.Oqu(t.lcZ(3,5,"DIALOGS.ADD_MEMBERS.FAILED_DESC")),t.xp6(2),t.Q6J("dataSource",e.failedCandidateDataSource),t.xp6(7),t.Q6J("matHeaderRowDef",t.DdM(7,Kt)),t.xp6(1),t.Q6J("matRowDefColumns",t.DdM(8,Kt))}}function pu(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",7)(1,"button",8),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.cancel.emit(!0))}),t._uU(2),t.ALo(3,"translate"),t.qZA()()}2&i&&(t.xp6(2),t.hij(" ",t.lcZ(3,1,"DIALOGS.ADD_MEMBERS.CLOSE")," "))}function uu(i,a){if(1&i&&(t.TgZ(0,"div"),t.YNc(1,iu,1,0,"mat-spinner",5),t.YNc(2,cu,13,9,"div",19),t.YNc(3,pu,4,3,"div",20),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading)}}let Wt=(()=>{class i{constructor(){this.loading=!1,this.manualAddingBlocked=!1,this.inviteAuth=!0,this.addAuth=!0,this.members=[],this.selection=new E.Ov(!0,[]),this.add=new t.vpe,this.cancel=new t.vpe,this.search=new t.vpe,this.invite=new t.vpe,this.tableId=C.tY,this.searchCtrl=new f.p4("",[f.kI.required,f.kI.pattern(".*[\\S]+.*")])}ngOnInit(){this.failedCandidateDataSource=new c.by(this.failed)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-add-member-dialog"]],inputs:{loading:"loading",theme:"theme",languages:"languages",manualAddingBlocked:"manualAddingBlocked",inviteAuth:"inviteAuth",addAuth:"addAuth",members:"members",failed:"failed",selection:"selection"},outputs:{add:"add",cancel:"cancel",search:"search",invite:"invite"},decls:6,vars:8,consts:[["mat-dialog-title",""],[4,"ngIf"],["mat-dialog-content",""],["data-cy","search-members",3,"error","placeholder","autoFocus","control","filter"],[1,"no-bounce-scrollbar"],["class","mr-auto ml-auto",4,"ngIf"],["class","mt-3",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["class","ml-2 dropdown-toggle","color","accent","mat-flat-button","",3,"disabled","matMenuTriggerFor",4,"ngIf"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-flat-button","","color","accent","data-cy","add-button",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],[1,"mt-3"],[3,"tableId","members","selection","blockManualAdding"],["color","accent","mat-flat-button","",1,"ml-2","dropdown-toggle",3,"disabled","matMenuTriggerFor"],["mat-menu-item","",3,"click"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"mb-2",3,"alert_type"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","userName"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","error"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],[1,"text-muted"],["mat-header-row",""],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,eu,23,27,"div",1),t.YNc(5,uu,4,3,"div",1),t.qZA()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,6,"DIALOGS.ADD_MEMBERS.TITLE")),t.xp6(2),t.Q6J("ngIf",0===o.failed.length),t.xp6(1),t.Q6J("ngIf",0!==o.failed.length))},dependencies:[_.sg,_.O5,I.lW,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.ge,c.ev,c.XQ,c.Gk,u.uh,u.xY,u.H8,T.Ou,N.gM,dt.VK,dt.OP,dt.p6,R.w,$.P,$p,_.gd,m.X$,B.d],styles:[".adjust-width[_ngcontent-%COMP%]{width:270px}.no-bounce-scrollbar[_ngcontent-%COMP%]{overflow:hidden}.error-row[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap;width:100%;padding:1em 0}.error-column[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;width:50%}.divider[_ngcontent-%COMP%]{border-bottom:1px solid rgba(0,0,0,.12)}"]}),i})(),du=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[_.ez,hp,fp.m,Ap.r,Tp.ez,ut.d4,g.Je]}),i})();t.B6R(Ip.H,[Wt],[_.Ov]),t.B6R(bp.k,[Wt],[_.Ov])}}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/283.467873b8cf250687.js b/dist/apps/admin-gui/283.467873b8cf250687.js deleted file mode 100644 index 925a14b89..000000000 --- a/dist/apps/admin-gui/283.467873b8cf250687.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin_gui=self.webpackChunkadmin_gui||[]).push([[283],{61283:(J,L,s)=>{s.d(L,{A:()=>g});var e=s(36769),u=s(94650),I=s(94364);let g=(()=>{class i{prepareRoute(n){return n?.activatedRouteData&&null!==n?.activatedRouteData.animation}}return i.\u0275fac=function(n){return new(n||i)},i.\u0275cmp=u.Xpm({type:i,selectors:[["app-animated-router-outlet"]],decls:3,vars:0,consts:[["outlet","outlet"]],template:function(n,D){1&n&&(u.TgZ(0,"div"),u._UZ(1,"router-outlet",null,0),u.qZA())},dependencies:[I.lC],data:{animation:[e.Ji]}}),i})()},71103:(J,L,s)=>{s.d(L,{n:()=>p});var e=s(65412),u=s(95017),I=s(69723),g=s(32105),i=s(10036),n=(s(85147),s(94650)),D=s(89383),t=s(36895),M=s(4859),S=s(51572),T=s(98380),x=s(7434),b=s(53984);const O=["list"];function f(A,N){1&A&&(n.TgZ(0,"perun-web-apps-alert",10),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&A&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE.ERROR_EMPTY_VALUE")," "))}function E(A,N){1&A&&n._UZ(0,"mat-spinner",11)}function w(A,N){if(1&A&&n._UZ(0,"perun-web-apps-attributes-list",12,13),2&A){const d=n.oxw();n.Q6J("emptyListText","SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.EMPTY_ATTRIBUTES")("attributes",d.attributes)("filterValue",d.filterValue)("inDialog",!0)("selection",d.selected)("tableId",d.tableId)}}let p=(()=>{class A{constructor(d,y,l,C,v){this.dialogRef=d,this.data=y,this.attributesManager=l,this.notificator=C,this.translate=v,this.attributes=[],this.selected=new u.Ov(!0,[]),this.showError=!1,this.filterValue="",this.tableId=i.rF,this.translate.get("DIALOGS.CREATE_ATTRIBUTE.SUCCESS_SAVE").subscribe(F=>this.saveSuccessMessage=F)}ngOnInit(){const d=new Array;let y,l,C,v,F,W,h,U;switch(this.data.notEmptyAttributes.forEach(c=>{d.push(c.id)}),this.data.entity){case"member":y=this.data.entityId;break;case"user":l=this.data.entityId;break;case"vo":C=this.data.entityId;break;case"group":v=this.data.entityId;break;case"resource":F=this.data.entityId;break;case"facility":W=this.data.entityId;break;case"host":h=this.data.entityId;break;case"ues":U=this.data.entityId}switch(this.data.secondEntity){case"member":y=this.data.secondEntityId;break;case"user":l=this.data.secondEntityId;break;case"vo":C=this.data.secondEntityId;break;case"group":v=this.data.secondEntityId;break;case"resource":F=this.data.secondEntityId;break;case"facility":W=this.data.secondEntityId;break;case"host":h=this.data.secondEntityId;break;case"ues":U=this.data.secondEntityId}this.loading=!0,this.attributesManager.getAttributesDefinitionWithRights(y,l,C,v,F,W,h,U).subscribe(c=>{this.attributes=c,this.attributes=this.attributes.filter(o=>!d.includes(o.id)&&this.twoEntityValid(o)),this.loading=!1})}onCancel(){this.dialogRef.close()}onSave(){this.list.updateMapAttributes();let d=!1;for(const y of this.selected.selected)"java.util.ArrayList"===y.type&&0===y.value.length&&(d=!0),void 0===y.value&&(d=!0);if(d)return this.showError=!0,void setTimeout(()=>{this.showError=!1},5e3);switch(this.data.entity){case"facility":"user"===this.data.secondEntity?this.attributesManager.setUserFacilityAttributes({facility:this.data.entityId,user:this.data.secondEntityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()}):this.attributesManager.setFacilityAttributes({facility:this.data.entityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;case"group":"resource"===this.data.secondEntity?this.attributesManager.setGroupResourceAttributes({group:this.data.entityId,resource:this.data.secondEntityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()}):this.attributesManager.setGroupAttributes({group:this.data.entityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;case"member":switch(this.data.secondEntity){case"resource":this.attributesManager.setMemberResourceAttributes({member:this.data.entityId,resource:this.data.secondEntityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;case"group":this.attributesManager.setMemberGroupAttributes({member:this.data.entityId,group:this.data.secondEntityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;default:this.attributesManager.setMemberAttributes({member:this.data.entityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()})}break;case"resource":switch(this.data.secondEntity){case"member":this.attributesManager.setMemberResourceAttributes({resource:this.data.entityId,member:this.data.secondEntityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;case"group":this.attributesManager.setGroupResourceAttributes({resource:this.data.entityId,group:this.data.secondEntityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;default:this.attributesManager.setResourceAttributes({resource:this.data.entityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()})}break;case"user":"facility"===this.data.secondEntity?this.attributesManager.setUserFacilityAttributes({user:this.data.entityId,facility:this.data.secondEntityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()}):this.attributesManager.setUserAttributes({user:this.data.entityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;case"vo":this.attributesManager.setVoAttributes({vo:this.data.entityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;case"host":this.attributesManager.setHostAttributes({host:this.data.entityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;case"ues":this.attributesManager.setUserExtSourceAttributes({userExtSource:this.data.entityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()})}}applyFilter(d){this.filterValue=d}handleSuccess(){this.notificator.showSuccess(this.saveSuccessMessage),this.selected.clear(),this.dialogRef.close("saved")}twoEntityValid(d){return!this.data.secondEntity||d.entity===`${this.data.entity}_${this.data.secondEntity}`||d.entity===`${this.data.secondEntity}_${this.data.entity}`}}return A.\u0275fac=function(d){return new(d||A)(n.Y36(e.so),n.Y36(e.WI),n.Y36(g.H8),n.Y36(I.V6),n.Y36(D.sK))},A.\u0275cmp=n.Xpm({type:A,selectors:[["app-create-attribute-dialog"]],viewQuery:function(d,y){if(1&d&&n.Gf(O,5),2&d){let l;n.iGM(l=n.CRH())&&(y.list=l.first)}},decls:17,vars:17,consts:[["mat-dialog-title",""],[1,"page-subtitle"],["data-cy","filter-attributes",1,"font-size-1rem",3,"placeholder","filter"],["class","ml-3 font-size-1rem","alert_type","error",4,"ngIf"],["mat-dialog-content",""],["class","ml-auto mr-auto",4,"ngIf"],[3,"emptyListText","attributes","filterValue","inDialog","selection","tableId",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","data-cy","save-selected-attributes","mat-flat-button","",1,"ml-2",3,"disabled","click"],["alert_type","error",1,"ml-3","font-size-1rem"],[1,"ml-auto","mr-auto"],[3,"emptyListText","attributes","filterValue","inDialog","selection","tableId"],["list",""]],template:function(d,y){1&d&&(n.TgZ(0,"div")(1,"div",0)(2,"h1",1),n._uU(3),n.ALo(4,"translate"),n.qZA(),n.TgZ(5,"perun-web-apps-immediate-filter",2),n.NdJ("filter",function(C){return y.applyFilter(C)}),n.qZA(),n.YNc(6,f,3,3,"perun-web-apps-alert",3),n.qZA(),n.TgZ(7,"div",4),n.YNc(8,E,1,0,"mat-spinner",5),n.YNc(9,w,2,6,"perun-web-apps-attributes-list",6),n.qZA(),n.TgZ(10,"div",7)(11,"button",8),n.NdJ("click",function(){return y.onCancel()}),n._uU(12),n.ALo(13,"translate"),n.qZA(),n.TgZ(14,"button",9),n.NdJ("click",function(){return y.onSave()}),n._uU(15),n.ALo(16,"translate"),n.qZA()()()),2&d&&(n.Tol(y.data.style),n.xp6(3),n.Oqu(n.lcZ(4,11,"DIALOGS.CREATE_ATTRIBUTE.SET_NEW")),n.xp6(2),n.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.FILTER"),n.xp6(1),n.Q6J("ngIf",y.showError),n.xp6(2),n.Q6J("ngIf",y.loading),n.xp6(1),n.Q6J("ngIf",!y.loading),n.xp6(3),n.hij(" ",n.lcZ(13,13,"DIALOGS.CREATE_ATTRIBUTE.CANCEL")," "),n.xp6(2),n.Q6J("disabled",0===y.selected.selected.length),n.xp6(1),n.hij(" ",n.lcZ(16,15,"DIALOGS.CREATE_ATTRIBUTE.SAVE")," "))},dependencies:[t.O5,M.lW,e.uh,e.xY,e.H8,S.Ou,T.w,x.L,b.p,D.X$],styles:[".font-size-1rem[_ngcontent-%COMP%]{font-size:1rem!important}"]}),A})()},61365:(J,L,s)=>{s.d(L,{k:()=>f});var e=s(65412),u=s(30671),I=s(69723),g=s(32105),i=s(94650),P=s(89383),n=s(36895),D=s(4859),t=s(51572);function M(E,w){1&E&&i._UZ(0,"mat-spinner",6)}function S(E,w){1&E&&i._UZ(0,"th",15)}function T(E,w){if(1&E&&(i.TgZ(0,"td",16),i._uU(1),i.qZA()),2&E){const p=w.$implicit;i.xp6(1),i.Oqu(p.displayName)}}function x(E,w){1&E&&i._UZ(0,"tr",17)}function b(E,w){1&E&&i._UZ(0,"tr",18)}function O(E,w){if(1&E&&(i.TgZ(0,"div",7)(1,"div"),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"div",8),i._uU(5),i.ALo(6,"translate"),i.qZA(),i.TgZ(7,"table",9),i.ynx(8,10),i.YNc(9,S,1,0,"th",11),i.YNc(10,T,2,1,"td",12),i.BQk(),i.YNc(11,x,1,0,"tr",13),i.YNc(12,b,1,0,"tr",14),i.qZA()()),2&E){const p=i.oxw();i.xp6(2),i.hij(" ",i.lcZ(3,5,"DIALOGS.DELETE_ATTRIBUTES.DESCRIPTION")," "),i.xp6(3),i.hij(" ",i.lcZ(6,7,"DIALOGS.DELETE_ATTRIBUTES.ASK")," "),i.xp6(2),i.Q6J("dataSource",p.dataSource),i.xp6(4),i.Q6J("matHeaderRowDef",p.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",p.displayedColumns)}}let f=(()=>{class E{constructor(p,A,N,d,y){this.dialogRef=p,this.data=A,this.notificator=N,this.translate=d,this.attributesManager=y,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.dataSource=new u.by(this.data.attributes),this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}onSubmit(){const p=[];for(const N of this.data.attributes)p.push(N.id);const A={};switch(A[this.data.entity]=this.data.entityId,A.attributes=p,void 0!==this.data.secondEntity&&(A[this.data.secondEntity]=this.data.secondEntityId),this.loading=!0,this.data.entity){case"vo":this.attributesManager.removeVoAttributes(this.data.entityId,p).subscribe({next:()=>{this.onSuccess()},error:()=>this.loading=!1});break;case"group":"resource"===this.data.secondEntity?this.attributesManager.removeGroupResourceAttributes(this.data.entityId,this.data.secondEntityId,p).subscribe({next:()=>{this.onSuccess()},error:()=>this.loading=!1}):this.attributesManager.removeGroupAttributes(this.data.entityId,p).subscribe({next:()=>{this.onSuccess()},error:()=>this.loading=!1});break;case"user":"facility"===this.data.secondEntity?this.attributesManager.removeUserFacilityAttributes(this.data.entityId,this.data.secondEntityId,p).subscribe({next:()=>{this.onSuccess()},error:()=>this.loading=!1}):this.attributesManager.removeUserAttributes(this.data.entityId,p).subscribe({next:()=>{this.onSuccess()},error:()=>this.loading=!1});break;case"member":switch(this.data.secondEntity){case"resource":this.attributesManager.removeMemberResourceAttributes(this.data.entityId,this.data.secondEntityId,p).subscribe({next:()=>{this.onSuccess()},error:()=>this.loading=!1});break;case"group":this.attributesManager.removeMemberGroupAttributes(this.data.entityId,this.data.secondEntityId,p).subscribe({next:()=>{this.onSuccess()},error:()=>this.loading=!1});break;default:this.attributesManager.removeMemberAttributes(this.data.entityId,p).subscribe({next:()=>{this.onSuccess()},error:()=>this.loading=!1})}break;case"facility":"user"===this.data.secondEntity?this.attributesManager.removeUserFacilityAttributes(this.data.secondEntityId,this.data.entityId,p).subscribe({next:()=>{this.onSuccess()},error:()=>this.loading=!1}):this.attributesManager.removeFacilityAttributes(this.data.entityId,p).subscribe({next:()=>{this.onSuccess()},error:()=>this.loading=!1});break;case"host":this.attributesManager.removeHostAttributes(this.data.entityId,p).subscribe({next:()=>{this.onSuccess()},error:()=>this.loading=!1});break;case"ues":this.attributesManager.removeUesAttributes(this.data.entityId,p).subscribe({next:()=>{this.onSuccess()},error:()=>this.loading=!1});break;case"resource":switch(this.data.secondEntity){case"member":this.attributesManager.removeMemberResourceAttributes(this.data.secondEntityId,this.data.entityId,p).subscribe({next:()=>{this.onSuccess()},error:()=>this.loading=!1});break;case"group":this.attributesManager.removeGroupResourceAttributes(this.data.secondEntityId,this.data.entityId,p).subscribe({next:()=>{this.onSuccess()},error:()=>this.loading=!1});break;default:this.attributesManager.removeResourceAttributes(this.data.entityId,p).subscribe({next:()=>{this.onSuccess()},error:()=>this.loading=!1})}}}onSuccess(){this.translate.get("DIALOGS.DELETE_ATTRIBUTES.SUCCESS").subscribe(p=>{this.notificator.showSuccess(p),this.dialogRef.close(!0)})}}return E.\u0275fac=function(p){return new(p||E)(i.Y36(e.so),i.Y36(e.WI),i.Y36(I.V6),i.Y36(P.sK),i.Y36(g.H8))},E.\u0275cmp=i.Xpm({type:E,selectors:[["app-delete-attribute-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","data-cy","delete-attributes","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(p,A){1&p&&(i.TgZ(0,"div")(1,"h1",0),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.YNc(4,M,1,0,"mat-spinner",1),i.YNc(5,O,13,9,"div",2),i.TgZ(6,"div",3)(7,"button",4),i.NdJ("click",function(){return A.onCancel()}),i._uU(8),i.ALo(9,"translate"),i.qZA(),i.TgZ(10,"button",5),i.NdJ("click",function(){return A.onSubmit()}),i._uU(11),i.ALo(12,"translate"),i.qZA()()()),2&p&&(i.Tol(A.theme),i.xp6(2),i.Oqu(i.lcZ(3,9,"DIALOGS.DELETE_ATTRIBUTES.TITLE")),i.xp6(2),i.Q6J("ngIf",A.loading),i.xp6(1),i.Q6J("ngIf",!A.loading),i.xp6(3),i.hij(" ",i.lcZ(9,11,"DIALOGS.DELETE_ATTRIBUTES.CANCEL")," "),i.xp6(2),i.Q6J("disabled",A.loading),i.xp6(1),i.hij(" ",i.lcZ(12,13,"DIALOGS.DELETE_ATTRIBUTES.DELETE")," "))},dependencies:[n.O5,D.lW,u.BZ,u.fO,u.as,u.w1,u.Dz,u.nj,u.ge,u.ev,u.XQ,u.Gk,e.uh,e.xY,e.H8,t.Ou,P.X$]}),E})()},1415:(J,L,s)=>{s.d(L,{l:()=>S});var e=s(94650),u=s(85147),I=s(36895),g=s(4859),i=s(65412),P=s(51572),n=s(29926),D=s(89383);function t(T,x){1&T&&e._UZ(0,"mat-spinner",7)}function M(T,x){if(1&T&&e._UZ(0,"perun-web-apps-ban-specification",8),2&T){const b=e.oxw();e.Q6J("description",b.ban.description)("validity",b.ban.validityTo)}}let S=(()=>{class T{constructor(){this.loading=!1,this.cancel=new e.vpe,this.update=new e.vpe}updateBan(){this.update.emit({description:this.banForm.getDescription(),validity:this.banForm.getValidity()})}}return T.\u0275fac=function(b){return new(b||T)},T.\u0275cmp=e.Xpm({type:T,selectors:[["app-update-ban-dialog"]],viewQuery:function(b,O){if(1&b&&e.Gf(u.CZ,5),2&b){let f;e.iGM(f=e.CRH())&&(O.banForm=f.first)}},inputs:{loading:"loading",ban:"ban",theme:"theme"},outputs:{cancel:"cancel",update:"update"},decls:14,vars:14,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["class","ml-auto mr-auto",4,"ngIf"],[3,"description","validity",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["mat-flat-button","","color","accent",3,"click"],[1,"ml-auto","mr-auto"],[3,"description","validity"]],template:function(b,O){1&b&&(e.TgZ(0,"div")(1,"h1",0),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",1),e.YNc(5,t,1,0,"mat-spinner",2),e.YNc(6,M,1,2,"perun-web-apps-ban-specification",3),e.qZA(),e.TgZ(7,"div",4)(8,"button",5),e.NdJ("click",function(){return O.cancel.emit()}),e._uU(9),e.ALo(10,"translate"),e.qZA(),e.TgZ(11,"button",6),e.NdJ("click",function(){return O.updateBan()}),e._uU(12),e.ALo(13,"translate"),e.qZA()()()),2&b&&(e.Tol(O.theme),e.xp6(2),e.Oqu(e.lcZ(3,8,"DIALOGS.UPDATE_BAN.TITLE")),e.xp6(3),e.Q6J("ngIf",O.loading),e.xp6(1),e.Q6J("ngIf",!O.loading),e.xp6(3),e.hij(" ",e.lcZ(10,10,"DIALOGS.UPDATE_BAN.CANCEL")," "),e.xp6(3),e.hij(" ",e.lcZ(13,12,"DIALOGS.UPDATE_BAN.UPDATE")," "))},dependencies:[I.O5,g.lW,i.uh,i.xY,i.H8,P.Ou,n.C,D.X$]}),T})()},28943:(J,L,s)=>{s.d(L,{e:()=>P});var e=s(65412),u=s(32105),I=s(69723),g=s(94650),i=s(1415);let P=(()=>{class n{constructor(t,M,S,T){this.data=t,this.dialogRef=M,this.resourceService=S,this.notificator=T,this.loading=!1}update(t){this.loading=!0,this.resourceService.updateResourceBan({banOnResource:{id:this.data.ban.id,beanName:"BanOnFacility",resourceId:this.data.ban.resourceId,memberId:this.data.ban.memberId,description:t.description,validityTo:t.validity}}).subscribe({next:()=>{this.notificator.showSuccess("DIALOGS.UPDATE_BAN.SUCCESS"),this.dialogRef.close(!0)},error:()=>{this.loading=!1}})}cancel(){this.dialogRef.close(!1)}}return n.\u0275fac=function(t){return new(t||n)(g.Y36(e.WI),g.Y36(e.so),g.Y36(u.xk),g.Y36(I.V6))},n.\u0275cmp=g.Xpm({type:n,selectors:[["app-update-resource-ban-dialog"]],decls:1,vars:2,consts:[[3,"ban","theme","cancel","update"]],template:function(t,M){1&t&&(g.TgZ(0,"app-update-ban-dialog",0),g.NdJ("cancel",function(){return M.cancel()})("update",function(T){return M.update(T)}),g.qZA()),2&t&&g.Q6J("ban",M.data.ban)("theme","facility-theme")},dependencies:[i.l]}),n})()},32316:(J,L,s)=>{s.d(L,{A:()=>P});var e=s(65412),u=s(32105),I=s(69723),g=s(94650),i=s(1415);let P=(()=>{class n{constructor(t,M,S,T){this.data=t,this.dialogRef=M,this.voService=S,this.notificator=T,this.loading=!1}update(t){this.loading=!0,this.voService.updateVoBan({banOnVo:{id:this.data.ban.id,beanName:"BanOnVo",voId:this.data.ban.voId,memberId:this.data.ban.memberId,description:t.description,validityTo:t.validity}}).subscribe({next:()=>{this.notificator.showSuccess("DIALOGS.UPDATE_BAN.SUCCESS"),this.dialogRef.close(!0)},error:()=>{this.loading=!1}})}cancel(){this.dialogRef.close(!1)}}return n.\u0275fac=function(t){return new(t||n)(g.Y36(e.WI),g.Y36(e.so),g.Y36(u.YF),g.Y36(I.V6))},n.\u0275cmp=g.Xpm({type:n,selectors:[["app-update-vo-ban-dialog"]],decls:1,vars:2,consts:[[3,"ban","theme","cancel","update"]],template:function(t,M){1&t&&(g.TgZ(0,"app-update-ban-dialog",0),g.NdJ("cancel",function(){return M.cancel()})("update",function(T){return M.update(T)}),g.qZA()),2&t&&g.Q6J("ban",M.data.ban)("theme","vo-theme")},dependencies:[i.l]}),n})()},95406:(J,L,s)=>{s.d(L,{r:()=>W});var e=s(94650),u=s(24006),I=s(9244),g=s(28499),i=s(32105),P=s(69723),n=s(10266),D=s(71948),t=s(13469),M=s(78372),S=s(95698),T=s(63900),x=s(54004),b=s(36895),O=s(3238),f=s(59549),E=s(284),w=s(84385),p=s(89383);function A(h,U){if(1&h&&(e.TgZ(0,"mat-option",7),e._uU(1),e.qZA()),2&h){const c=U.$implicit;e.Q6J("value",c),e.xp6(1),e.hij(" ",c," ")}}function N(h,U){1&h&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&h&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"SHARED.COMPONENTS.LOGIN_FOR_NAMESPACE.FIELD_EMPTY")))}function d(h,U){1&h&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&h&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"SHARED.COMPONENTS.LOGIN_FOR_NAMESPACE.LOGIN_EXISTS")))}function y(h,U){1&h&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&h&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"SHARED.COMPONENTS.LOGIN_FOR_NAMESPACE.LOGIN_FORMAT")))}function l(h,U){1&h&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&h&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"SHARED.COMPONENTS.LOGIN_FOR_NAMESPACE.LOGIN_LONG")))}function C(h,U){1&h&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&h&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"SHARED.COMPONENTS.LOGIN_FOR_NAMESPACE.LOGIN_SHORT")))}function v(h,U){if(1&h&&(e.TgZ(0,"span",8),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&h){const c=e.oxw();e.xp6(1),e.hij(" ",e.lcZ(2,1,"Not selected"===c.formGroup.get("namespaceCtrl").value?"SHARED.COMPONENTS.LOGIN_FOR_NAMESPACE.LOGIN_DISABLED":"SHARED.COMPONENTS.LOGIN_FOR_NAMESPACE.LOGIN_DISABLED_FOR_NAMESPACE")," ")}}let F=(()=>{class h{constructor(c,o){this.membersManagerService=c,this.usersManagerService=o,this.filteredNamespaces=null,this.namespaceChanged=new e.vpe,this.parsedRulesChanged=new e.vpe,this.namespaceOptions=[],this.selectedNamespace=null,this.namespaceRules=[],this.parsedRules=new Map}ngOnInit(){this.namespaceOptions=["Not selected"],this.membersManagerService.getAllNamespacesRules().subscribe(c=>{this.namespaceRules=c,this.parseNamespaceRules()}),this.onNamespaceChanged("Not selected")}existingLoginValidator(){return c=>{let o=this.formGroup.get("namespaceCtrl").value.toLowerCase();return o="not selected"===o?"mu":o,c.valueChanges.pipe((0,M.b)(500),(0,S.q)(1),(0,T.w)(()=>this.usersManagerService.isLoginAvailable(o,c.value).pipe((0,x.U)(Z=>Z?null:{loginExists:!0}))))}}parseNamespaceRules(){for(const c of this.namespaceRules)if(null===this.filteredNamespaces||!this.filteredNamespaces.includes(c.namespaceName)){this.namespaceOptions.push(c.namespaceName);const o={login:"disabled"};this.parseAttributes(o,c.requiredAttributes,"required"),this.parseAttributes(o,c.optionalAttributes,"optional"),this.parsedRules.set(c.namespaceName,o)}this.parsedRulesChanged.emit(this.parsedRules)}parseAttributes(c,o,Z){for(const G of o)"login"===G&&(c.login=Z)}onNamespaceChanged(c){this.selectedNamespace=c.toLowerCase();const o=this.formGroup.get("loginCtrl");if("Not selected"!==c)if("disabled"===this.parsedRules.get(this.selectedNamespace).login)o.disable(),o.setValue("");else{const Z=[u.kI.required,u.kI.pattern("^[a-z][a-z0-9_-]+$"),u.kI.maxLength(15),u.kI.minLength(2)];(0,I.mH)(o,Z,[this.existingLoginValidator()])}else o.disable(),o.setValue("");this.namespaceChanged.emit(c)}}return h.\u0275fac=function(c){return new(c||h)(e.Y36(i.uq),e.Y36(i.Fv))},h.\u0275cmp=e.Xpm({type:h,selectors:[["app-login-for-namespace"]],inputs:{formGroup:"formGroup",filteredNamespaces:"filteredNamespaces"},outputs:{namespaceChanged:"namespaceChanged",parsedRulesChanged:"parsedRulesChanged"},decls:18,vars:16,consts:[[1,"display-flex",3,"formGroup"],["formControlName","namespaceCtrl",3,"valueChange"],[3,"value",4,"ngFor","ngForOf"],[3,"floatLabel"],["formControlName","loginCtrl","matInput","","required","",3,"hidden"],[4,"ngIf"],["class","input-disabled",4,"ngIf"],[3,"value"],[1,"input-disabled"]],template:function(c,o){1&c&&(e.TgZ(0,"div",0)(1,"mat-form-field")(2,"mat-label"),e._uU(3),e.ALo(4,"translate"),e.qZA(),e.TgZ(5,"mat-select",1),e.NdJ("valueChange",function(G){return o.onNamespaceChanged(G)}),e.YNc(6,A,2,2,"mat-option",2),e.qZA()(),e.TgZ(7,"mat-form-field",3)(8,"mat-label"),e._uU(9),e.ALo(10,"translate"),e.qZA(),e._UZ(11,"input",4),e.YNc(12,N,3,3,"mat-error",5),e.YNc(13,d,3,3,"mat-error",5),e.YNc(14,y,3,3,"mat-error",5),e.YNc(15,l,3,3,"mat-error",5),e.YNc(16,C,3,3,"mat-error",5),e.YNc(17,v,3,3,"span",6),e.qZA()()),2&c&&(e.Q6J("formGroup",o.formGroup),e.xp6(3),e.Oqu(e.lcZ(4,12,"SHARED.COMPONENTS.LOGIN_FOR_NAMESPACE.NAMESPACE")),e.xp6(3),e.Q6J("ngForOf",o.namespaceOptions),e.xp6(1),e.Q6J("floatLabel",o.formGroup.get("loginCtrl").disabled?"always":null),e.xp6(2),e.Oqu(e.lcZ(10,14,"SHARED.COMPONENTS.LOGIN_FOR_NAMESPACE.LOGIN")),e.xp6(2),e.Q6J("hidden",o.formGroup.get("loginCtrl").disabled),e.xp6(1),e.Q6J("ngIf",o.formGroup.get("loginCtrl").hasError("required")),e.xp6(1),e.Q6J("ngIf",o.formGroup.get("loginCtrl").hasError("loginExists")),e.xp6(1),e.Q6J("ngIf",o.formGroup.get("loginCtrl").hasError("pattern")&&!o.formGroup.get("loginCtrl").hasError("minlength")),e.xp6(1),e.Q6J("ngIf",o.formGroup.get("loginCtrl").hasError("maxlength")),e.xp6(1),e.Q6J("ngIf",o.formGroup.get("loginCtrl").hasError("minlength")),e.xp6(1),e.Q6J("ngIf",o.formGroup.get("loginCtrl").disabled))},dependencies:[b.sg,b.O5,O.ey,f.TO,f.KE,f.hX,E.Nt,u.Fj,u.JJ,u.JL,u.Q7,u.sg,u.u,w.gD,p.X$],styles:[".display-flex[_ngcontent-%COMP%]{display:flex;flex-direction:column}.input-disabled[_ngcontent-%COMP%]{pointer-events:none;color:#888}"]}),h})(),W=(()=>{class h{constructor(c,o,Z){this.membersManagerService=c,this.usersManagerService=o,this.apiRequestConfiguration=Z,this.filteredNamespace=null,this.parsedRulesOutput=new e.vpe,this.selectedNamespace=null,this.parsedRules=new Map}parsedRulesFunction(c){this.parsedRules=c,this.parsedRulesOutput.emit(c)}onNamespaceChanged(c){this.selectedNamespace=c.toLowerCase();const o=this.formGroup.get("passwordCtrl"),Z=this.formGroup.get("passwordAgainCtrl"),G=this.formGroup.get("generatePasswordCtrl");"Not selected"!==c?((0,I.mH)(G,[]),this.passwordOptionChanged()):(o.disable(),o.setValue(""),Z.disable(),Z.setValue(""),G.disable(),G.dirty||G.setValue(!0))}passwordOptionChanged(){const c=this.formGroup.get("passwordCtrl"),o=this.formGroup.get("passwordAgainCtrl");this.formGroup.get("generatePasswordCtrl").value?(c.disable(),c.setValue(""),o.disable(),o.setValue("")):((0,I.mH)(c,[u.kI.required],[(0,g.yT)(this.selectedNamespace,this.usersManagerService,this.apiRequestConfiguration)]),(0,I.mH)(o,[]))}}return h.\u0275fac=function(c){return new(c||h)(e.Y36(i.uq),e.Y36(i.Fv),e.Y36(P.F5))},h.\u0275cmp=e.Xpm({type:h,selectors:[["app-login-password-form-with-generate-option"]],inputs:{formGroup:"formGroup",filteredNamespace:"filteredNamespace"},outputs:{parsedRulesOutput:"parsedRulesOutput"},decls:12,vars:23,consts:[[1,"display-flex",3,"formGroup"],[3,"formGroup","filteredNamespaces","namespaceChanged","parsedRulesChanged"],["formControlName","generatePasswordCtrl","matTooltipPosition","left",1,"display-flex","mt-3",3,"matTooltipDisabled","matTooltip","ngModelChange"],[3,"checked","value"],[1,"display-flex"],[3,"formGroup","namespace","passwordRequired","tooltipPwdDisabledForNamespace"]],template:function(c,o){1&c&&(e.TgZ(0,"div",0)(1,"app-login-for-namespace",1),e.NdJ("namespaceChanged",function(G){return o.onNamespaceChanged(G)})("parsedRulesChanged",function(G){return o.parsedRulesFunction(G)}),e.qZA(),e.TgZ(2,"mat-radio-group",2),e.NdJ("ngModelChange",function(){return o.passwordOptionChanged()}),e.ALo(3,"translate"),e.TgZ(4,"mat-radio-button",3),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"mat-radio-button",3),e._uU(8),e.ALo(9,"translate"),e.qZA()(),e.TgZ(10,"div",4),e._UZ(11,"perun-web-apps-password-form",5),e.qZA()()),2&c&&(e.Q6J("formGroup",o.formGroup),e.xp6(1),e.Q6J("formGroup",o.formGroup)("filteredNamespaces",o.filteredNamespace),e.xp6(1),e.s9C("matTooltip",e.lcZ(3,17,"DIALOGS.CREATE_SERVICE_MEMBER.PASSWORD_NOT_SUPPORTED")),e.Q6J("matTooltipDisabled","Not selected"!==o.formGroup.get("namespaceCtrl").value),e.xp6(2),e.Q6J("checked",o.formGroup.get("generatePasswordCtrl").value&&o.formGroup.get("generatePasswordCtrl").enabled)("value",!0),e.xp6(1),e.hij(" ",e.lcZ(6,19,"DIALOGS.CREATE_SERVICE_MEMBER.PASSWORD_RANDOM")," "),e.xp6(2),e.Q6J("checked",!o.formGroup.get("generatePasswordCtrl").value&&o.formGroup.get("generatePasswordCtrl").enabled)("value",!1),e.xp6(1),e.hij(" ",e.lcZ(9,21,"DIALOGS.CREATE_SERVICE_MEMBER.ENTER_PASSWORD")," "),e.xp6(2),e.ekj("input-disabled",o.formGroup.get("generatePasswordCtrl").value),e.xp6(1),e.Q6J("formGroup",o.formGroup)("namespace",o.selectedNamespace)("passwordRequired",!o.formGroup.get("generatePasswordCtrl").value)("tooltipPwdDisabledForNamespace",o.formGroup.get("generatePasswordCtrl").enabled))},dependencies:[u.JJ,u.JL,u.sg,u.u,n.gM,D.VQ,D.U0,t.G,F,p.X$],styles:[".display-flex[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),h})()},12651:(J,L,s)=>{s.d(L,{t:()=>N});var e=s(32105),u=s(95017),I=s(9244),g=s(71103),i=s(21029),P=s(61365),D=(s(85147),s(10036)),t=s(94650),M=s(65412),S=s(36895),T=s(4859),x=s(51572),b=s(96214),O=s(7434),f=s(53984),E=s(89383);const w=["list"];function p(d,y){1&d&&t._UZ(0,"mat-spinner",7)}function A(d,y){if(1&d&&t._UZ(0,"perun-web-apps-attributes-list",8,9),2&d){const l=t.oxw();t.Q6J("attributes",l.attributes)("filterValue",l.filterValue)("selection",l.selection)("tableId",l.tableId)}}let N=(()=>{class d{constructor(l,C){this.attributesManagerService=l,this.dialog=C,this.attributes=[],this.selection=new u.Ov(!0,[]),this.filterValue="",this.tableId=D.rF,this.loading=!1}ngOnInit(){this.refreshTable()}refreshTable(){switch(this.loading=!0,this.entity){case"member":this.attributesManagerService.getMemberAttributes(this.entityId).subscribe(l=>{this.attributes=l,this.selection.clear(),this.loading=!1});break;case"group":this.attributesManagerService.getGroupAttributes(this.entityId).subscribe(l=>{this.attributes=l,this.selection.clear(),this.loading=!1});break;case"user":this.attributesManagerService.getUserAttributes(this.entityId).subscribe(l=>{this.attributes=l,this.selection.clear(),this.loading=!1});break;case"resource":this.attributesManagerService.getResourceAttributes(this.entityId).subscribe(l=>{this.attributes=l,this.selection.clear(),this.loading=!1});break;case"facility":this.attributesManagerService.getFacilityAttributes(this.entityId).subscribe(l=>{this.attributes=l,this.selection.clear(),this.loading=!1});break;case"vo":this.attributesManagerService.getVoAttributes(this.entityId).subscribe(l=>{this.attributes=l,this.selection.clear(),this.loading=!1})}}applyFilter(l){this.filterValue=l}onCreate(){const l=(0,I.kZ)();l.width="1050px",l.data={entityId:this.entityId,entity:this.entity,notEmptyAttributes:this.attributes,style:this.entity+"-theme"},this.dialog.open(g.n,l).afterClosed().subscribe(v=>{v&&this.refreshTable()})}onSave(){this.list.updateMapAttributes();const l=(0,I.kZ)();l.width="450px",l.data={entityId:this.entityId,entity:this.entity,attributes:this.selection.selected},this.dialog.open(i.wA,l).afterClosed().subscribe(v=>{v&&this.refreshTable()})}onDelete(){const l=(0,I.kZ)();l.width="450px",l.data={entityId:this.entityId,entity:this.entity,attributes:this.selection.selected},this.dialog.open(P.k,l).afterClosed().subscribe(v=>{v&&this.refreshTable()})}}return d.\u0275fac=function(l){return new(l||d)(t.Y36(e.H8),t.Y36(M.uw))},d.\u0275cmp=t.Xpm({type:d,selectors:[["app-one-entity-attribute-page"]],viewQuery:function(l,C){if(1&l&&t.Gf(w,5),2&l){let v;t.iGM(v=t.CRH())&&(C.list=v.first)}},inputs:{entity:"entity",entityId:"entityId"},decls:13,vars:14,consts:[[1,"mt-2",3,"refresh"],["color","accent","data-cy","add-attributes","mat-flat-button","",1,"mr-2","mt-2","action-button",3,"click"],["color","accent","mat-flat-button","",1,"mr-2","mt-2",3,"disabled","click"],["color","warn","data-cy","remove-attributes","mat-flat-button","",1,"mt-2","mr-2",3,"disabled","click"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"attributes","filterValue","selection","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"attributes","filterValue","selection","tableId"],["list",""]],template:function(l,C){1&l&&(t.TgZ(0,"perun-web-apps-refresh-button",0),t.NdJ("refresh",function(){return C.refreshTable()}),t.qZA(),t.TgZ(1,"button",1),t.NdJ("click",function(){return C.onCreate()}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"button",2),t.NdJ("click",function(){return C.onSave()}),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"button",3),t.NdJ("click",function(){return C.onDelete()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(F){return C.applyFilter(F)}),t.qZA(),t.YNc(11,p,1,0,"mat-spinner",5),t.YNc(12,A,2,4,"perun-web-apps-attributes-list",6)),2&l&&(t.xp6(2),t.hij(" ",t.lcZ(3,8,"USER_DETAIL.SETTINGS.ATTRIBUTES.CREATE"),"\n"),t.xp6(2),t.Q6J("disabled",0===C.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(6,10,"USER_DETAIL.SETTINGS.ATTRIBUTES.SAVE"),"\n"),t.xp6(2),t.Q6J("disabled",0===C.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(9,12,"USER_DETAIL.SETTINGS.ATTRIBUTES.DELETE"),"\n"),t.xp6(2),t.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.FILTER"),t.xp6(1),t.Q6J("ngIf",C.loading),t.xp6(1),t.Q6J("ngIf",!C.loading))},dependencies:[S.O5,T.lW,x.Ou,b.t,O.L,f.p,E.X$]}),d})()},48323:(J,L,s)=>{s.d(L,{Y:()=>V});var e=s(32105),I=(s(85147),s(95017)),g=s(61365),i=s(9244),P=s(21029),n=s(71103),D=s(64080),t=s(94650),M=s(65412),S=s(36895),T=s(4859),x=s(51572),b=s(98380),O=s(96214),f=s(7434),E=s(53984),w=s(82322),p=s(45703),A=s(42377),N=s(89383);let d=(()=>{class m{constructor(){this.memberSelected=new t.vpe,this.memberFullNameFunction=a=>(0,i.bD)(a.user)}ngOnInit(){this.members=this.members.sort(i.fx)}}return m.\u0275fac=function(a){return new(a||m)},m.\u0275cmp=t.Xpm({type:m,selectors:[["perun-web-apps-member-search-select"]],inputs:{members:"members"},outputs:{memberSelected:"memberSelected"},decls:4,vars:12,consts:[[3,"entities","searchFunction","mainTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(a,r){1&a&&(t.TgZ(0,"perun-web-apps-entity-search-select",0),t.NdJ("entitySelected",function(R){return r.memberSelected.emit(R)}),t.ALo(1,"translate"),t.ALo(2,"translate"),t.ALo(3,"translate"),t.qZA()),2&a&&t.Q6J("entities",r.members)("searchFunction",r.memberFullNameFunction)("mainTextFunction",r.memberFullNameFunction)("selectPlaceholder",t.lcZ(1,6,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_SEARCH_SELECT.SELECT_MEMBER"))("findPlaceholder",t.lcZ(2,8,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_SEARCH_SELECT.FIND_MEMBER"))("noEntriesText",t.lcZ(3,10,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_SEARCH_SELECT.NO_MEMBER_FOUND"))},dependencies:[A.i,N.X$]}),m})();var y=s(79707),l=s(74250);const C=["list"];function v(m,B){1&m&&t._UZ(0,"mat-spinner",4)}function F(m,B){if(1&m&&(t.TgZ(0,"perun-web-apps-alert",5),t._uU(1),t.qZA()),2&m){const a=t.oxw();t.xp6(1),t.Oqu(a.noEntityMessage)}}function W(m,B){if(1&m){const a=t.EpF();t.TgZ(0,"perun-web-apps-group-search-select",18),t.NdJ("groupSelected",function(_){t.CHM(a);const R=t.oxw(2);return t.KtG(R.specifySecondEntity(_))}),t.qZA()}if(2&m){const a=t.oxw(2);t.Q6J("firstSelectedGroup",a.specificSecondEntity)("displayStatus",!0)("groups",a.entityValues)}}function h(m,B){if(1&m){const a=t.EpF();t.TgZ(0,"perun-web-apps-resource-search-select",19),t.NdJ("resourceSelected",function(_){t.CHM(a);const R=t.oxw(2);return t.KtG(R.specifySecondEntity(_))}),t.qZA()}if(2&m){const a=t.oxw(2);t.Q6J("resources",a.entityValues)}}function U(m,B){if(1&m){const a=t.EpF();t.TgZ(0,"perun-web-apps-member-search-select",20),t.NdJ("memberSelected",function(_){t.CHM(a);const R=t.oxw(2);return t.KtG(R.specifySecondEntity(_))}),t.qZA()}if(2&m){const a=t.oxw(2);t.Q6J("members",a.entityValues)}}function c(m,B){if(1&m){const a=t.EpF();t.TgZ(0,"perun-web-apps-facility-search-select",21),t.NdJ("facilitySelected",function(_){t.CHM(a);const R=t.oxw(2);return t.KtG(R.specifySecondEntity(_))}),t.qZA()}if(2&m){const a=t.oxw(2);t.Q6J("facilities",a.entityValues)}}function o(m,B){if(1&m){const a=t.EpF();t.TgZ(0,"perun-web-apps-user-search-select",22),t.NdJ("userSelected",function(_){t.CHM(a);const R=t.oxw(2);return t.KtG(R.specifySecondEntity(_))}),t.qZA()}if(2&m){const a=t.oxw(2);t.Q6J("users",a.entityValues)}}function Z(m,B){1&m&&t._UZ(0,"mat-spinner",4)}function G(m,B){if(1&m&&t._UZ(0,"perun-web-apps-attributes-list",23,24),2&m){const a=t.oxw(2);t.Q6J("attributes",a.attributes)("filterValue",a.filterValue)("selection",a.selection)}}function K(m,B){if(1&m){const a=t.EpF();t.TgZ(0,"div")(1,"div",6),t.YNc(2,W,1,3,"perun-web-apps-group-search-select",7),t.YNc(3,h,1,1,"perun-web-apps-resource-search-select",8),t.YNc(4,U,1,1,"perun-web-apps-member-search-select",9),t.YNc(5,c,1,1,"perun-web-apps-facility-search-select",10),t.YNc(6,o,1,1,"perun-web-apps-user-search-select",11),t.qZA(),t.TgZ(7,"perun-web-apps-refresh-button",12),t.NdJ("refresh",function(){t.CHM(a);const _=t.oxw();return t.KtG(_.getAttributes(_.specificSecondEntity.id))}),t.qZA(),t.TgZ(8,"button",13),t.NdJ("click",function(){t.CHM(a);const _=t.oxw();return t.KtG(_.onAdd(_.specificSecondEntity.id))}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"button",14),t.NdJ("click",function(){t.CHM(a);const _=t.oxw();return t.KtG(_.onSave(_.specificSecondEntity.id))}),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.TgZ(14,"button",15),t.NdJ("click",function(){t.CHM(a);const _=t.oxw();return t.KtG(_.onDelete(_.specificSecondEntity.id))}),t._uU(15),t.ALo(16,"translate"),t.qZA(),t.TgZ(17,"perun-web-apps-immediate-filter",16),t.NdJ("filter",function(_){t.CHM(a);const R=t.oxw();return t.KtG(R.applyFilter(_))}),t.qZA(),t.YNc(18,Z,1,0,"mat-spinner",1),t.YNc(19,G,2,3,"perun-web-apps-attributes-list",17),t.qZA()}if(2&m){const a=t.oxw();t.xp6(2),t.Q6J("ngIf","group"===a.secondEntity),t.xp6(1),t.Q6J("ngIf","resource"===a.secondEntity),t.xp6(1),t.Q6J("ngIf","member"===a.secondEntity),t.xp6(1),t.Q6J("ngIf","facility"===a.secondEntity),t.xp6(1),t.Q6J("ngIf","user"===a.secondEntity),t.xp6(3),t.hij(" ",t.lcZ(10,13,"MEMBER_DETAIL.SETTINGS.ATTRIBUTES.CREATE")," "),t.xp6(2),t.Q6J("disabled",0===a.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(13,15,"MEMBER_DETAIL.SETTINGS.ATTRIBUTES.SAVE")," "),t.xp6(2),t.Q6J("disabled",0===a.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(16,17,"MEMBER_DETAIL.SETTINGS.ATTRIBUTES.DELETE")," "),t.xp6(2),t.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.FILTER"),t.xp6(1),t.Q6J("ngIf",a.innerLoading),t.xp6(1),t.Q6J("ngIf",!a.innerLoading)}}let V=(()=>{class m{constructor(a,r,_,R,Q,Y){this.attributesManagerService=a,this.resourcesManagerService=r,this.facilitiesManagerService=_,this.groupsManagerService=R,this.membersManager=Q,this.dialog=Y,this.entityValues=[],this.attributes=[],this.selection=new I.Ov(!0,[]),this.allowedStatuses=["INVALID","VALID"],this.loading=!1,this.innerLoading=!1,this.filterValue=""}ngOnInit(){this.loadEntityValues(),this.setMessages(this.secondEntity.toLowerCase())}loadEntityValues(){switch(this.loading=!0,this.firstEntity){case"member":switch(this.secondEntity){case"resource":this.resourcesManagerService.getAssignedResourcesWithStatus(this.firstEntityId).subscribe(a=>{this.entityValues=a.map(r=>r.enrichedResource.resource),this.preselectEntity(),this.loading=!1});break;case"group":this.groupsManagerService.getMemberGroups(this.firstEntityId).subscribe(a=>{this.entityValues=a,this.preselectEntity(),this.loading=!1})}break;case"group":switch(this.secondEntity){case"resource":this.resourcesManagerService.getResourceAssignments(this.firstEntityId).subscribe(a=>{this.entityValues=a.map(r=>{const _=r.enrichedResource.resource;return _.status=r.status,_}),this.preselectEntity(),this.loading=!1});break;case"member":this.membersManager.getCompleteRichMembersForGroup(this.firstEntityId,!1,this.allowedStatuses,null,[D.r.MEMBER_CORE_ID]).subscribe(a=>{this.entityValues=a,this.preselectEntity(),this.loading=!1})}break;case"user":this.facilitiesManagerService.getAssignedFacilitiesByUser(this.firstEntityId).subscribe(a=>{this.entityValues=a,this.preselectEntity(),this.loading=!1});break;case"resource":switch(this.secondEntity){case"member":this.resourcesManagerService.getAssignedMembersWithStatus(this.firstEntityId).subscribe(a=>{this.entityValues=a.map(r=>r.richMember),this.preselectEntity(),this.loading=!1});break;case"group":this.resourcesManagerService.getGroupAssignments(this.firstEntityId).subscribe(a=>{this.entityValues=a.map(r=>{const _=r.enrichedGroup.group;return _.status=r.status,_}),this.preselectEntity(),this.loading=!1})}break;case"facility":this.facilitiesManagerService.getAssignedUsers(this.firstEntityId).subscribe(a=>{this.entityValues=a,this.preselectEntity(),this.loading=!1})}}preselectEntity(){0!==this.entityValues.length&&this.findInitiallySelectedEntity()}findInitiallySelectedEntity(){let a=this.entityValues[0];const r=(0,i.vL)(this.entityKey());if(r)for(const _ of this.entityValues)if(_.id===r[0]){a=_;break}this.specifySecondEntity(a)}entityKey(){return"group"===this.secondEntity?"groups":""}getAttributes(a){switch(this.innerLoading=!0,this.selection.clear(),this.firstEntity){case"member":switch(this.secondEntity){case"resource":this.attributesManagerService.getMemberResourceAttributes(this.firstEntityId,a).subscribe(r=>{this.attributes=r,this.innerLoading=!1});break;case"group":this.attributesManagerService.getMemberGroupAttributes(this.firstEntityId,a).subscribe(r=>{this.attributes=r,this.innerLoading=!1})}break;case"group":switch(this.secondEntity){case"resource":this.attributesManagerService.getGroupResourceAttributes(this.firstEntityId,a).subscribe(r=>{this.attributes=r,this.innerLoading=!1});break;case"member":this.attributesManagerService.getMemberGroupAttributes(a,this.firstEntityId).subscribe(r=>{this.attributes=r,this.innerLoading=!1})}break;case"user":this.attributesManagerService.getUserFacilityAttributes(this.firstEntityId,a).subscribe(r=>{this.attributes=r,this.innerLoading=!1});break;case"resource":switch(this.secondEntity){case"member":this.attributesManagerService.getMemberResourceAttributes(a,this.firstEntityId).subscribe(r=>{this.attributes=r,this.innerLoading=!1});break;case"group":this.attributesManagerService.getGroupResourceAttributes(a,this.firstEntityId).subscribe(r=>{this.attributes=r,this.innerLoading=!1})}break;case"facility":this.attributesManagerService.getUserFacilityAttributes(a,this.firstEntityId).subscribe(r=>{this.attributes=r,this.innerLoading=!1})}}setMessages(a){this.noEntityMessage=`No ${a} assigned`}onSave(a){this.list.updateMapAttributes();const r=(0,i.kZ)();r.width="450px",r.data={entityId:this.firstEntityId,entity:this.firstEntity,secondEntity:this.secondEntity,secondEntityId:a,attributes:this.selection.selected},this.dialog.open(P.wA,r).afterClosed().subscribe(R=>{R&&(this.selection.clear(),this.getAttributes(a))})}onDelete(a){const r=(0,i.kZ)();r.width="450px",r.data={entityId:this.firstEntityId,entity:this.firstEntity,secondEntity:this.secondEntity,secondEntityId:a,attributes:this.selection.selected,theme:`${this.firstEntity}-theme`},this.dialog.open(g.k,r).afterClosed().subscribe(R=>{R&&(this.selection.clear(),this.getAttributes(a))})}onAdd(a){const r=(0,i.kZ)();r.width="1050px",r.data={entityId:this.firstEntityId,entity:this.firstEntity,secondEntity:this.secondEntity,secondEntityId:a,notEmptyAttributes:this.attributes,style:`${this.firstEntity}-theme`},this.dialog.open(n.n,r).afterClosed().subscribe(R=>{R&&(this.selection.clear(),this.getAttributes(a))})}specifySecondEntity(a){a&&(this.specificSecondEntity=a,this.getAttributes(this.specificSecondEntity.id))}applyFilter(a){this.filterValue=a}}return m.\u0275fac=function(a){return new(a||m)(t.Y36(e.H8),t.Y36(e.xk),t.Y36(e.IQ),t.Y36(e.ff),t.Y36(e.uq),t.Y36(M.uw))},m.\u0275cmp=t.Xpm({type:m,selectors:[["app-two-entity-attribute-page"]],viewQuery:function(a,r){if(1&a&&t.Gf(C,5),2&a){let _;t.iGM(_=t.CRH())&&(r.list=_.first)}},inputs:{firstEntityId:"firstEntityId",firstEntity:"firstEntity",secondEntity:"secondEntity"},decls:4,vars:3,consts:[[1,"mt-3"],["class","ml-auto mr-auto",4,"ngIf"],["alert_type","warn",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["alert_type","warn"],[1,"flex-row"],[3,"firstSelectedGroup","displayStatus","groups","groupSelected",4,"ngIf"],[3,"resources","resourceSelected",4,"ngIf"],[3,"members","memberSelected",4,"ngIf"],[3,"facilities","facilitySelected",4,"ngIf"],[3,"users","userSelected",4,"ngIf"],[3,"refresh"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","accent","mat-flat-button","",1,"mr-2",3,"disabled","click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[3,"placeholder","filter"],[3,"attributes","filterValue","selection",4,"ngIf"],[3,"firstSelectedGroup","displayStatus","groups","groupSelected"],[3,"resources","resourceSelected"],[3,"members","memberSelected"],[3,"facilities","facilitySelected"],[3,"users","userSelected"],[3,"attributes","filterValue","selection"],["list",""]],template:function(a,r){1&a&&(t.TgZ(0,"div",0),t.YNc(1,v,1,0,"mat-spinner",1),t.YNc(2,F,2,1,"perun-web-apps-alert",2),t.YNc(3,K,20,19,"div",3),t.qZA()),2&a&&(t.xp6(1),t.Q6J("ngIf",r.loading),t.xp6(1),t.Q6J("ngIf",0===r.entityValues.length&&!r.loading),t.xp6(1),t.Q6J("ngIf",0!==r.entityValues.length))},dependencies:[S.O5,T.lW,x.Ou,b.w,O.t,f.L,E.p,w.h,p.L,d,y.R,l.S,N.X$],styles:[".w-35[_ngcontent-%COMP%]{width:35%}"]}),m})()},71135:(J,L,s)=>{s.d(L,{L:()=>x});var e=s(94650),u=s(65412),I=s(94364),g=s(36895),i=s(97392),P=s(3238),n=s(94391),D=s(89383),t=s(64597);const M=function(b){return[b]};function S(b,O){if(1&b&&(e.TgZ(0,"div",3)(1,"a",4),e.NdJ("auxclick",function(E){return E.preventDefault()}),e.ALo(2,"multiWordDataCy"),e.ALo(3,"translate"),e._UZ(4,"mat-icon",5),e._uU(5),e.ALo(6,"translate"),e.qZA()()),2&b){const f=O.$implicit;e.xp6(1),e.Gre("",f.style," item-itself"),e.Q6J("perunWebAppsMiddleClickRouterLink",e.VKq(14,M,f.url))("routerLink",f.url),e.uIk("data-cy",e.lcZ(2,8,e.lcZ(3,10,f.label))),e.xp6(3),e.Q6J("svgIcon",f.cssIcon),e.xp6(1),e.hij(" ",e.lcZ(6,12,f.label)," ")}}function T(b,O){if(1&b&&(e.TgZ(0,"div",1),e.YNc(1,S,7,16,"div",2),e.qZA()),2&b){const f=e.oxw();e.xp6(1),e.Q6J("ngForOf",f.items)}}let x=(()=>{class b{constructor(f,E){this.dialog=f,this.route=E,this.size="large"}ngOnInit(){this.route.params.subscribe(f=>{this.voId=Number(f.voId)})}}return b.\u0275fac=function(f){return new(f||b)(e.Y36(u.uw),e.Y36(I.gz))},b.\u0275cmp=e.Xpm({type:b,selectors:[["perun-web-apps-menu-buttons-field"]],inputs:{items:"items",size:"size"},decls:1,vars:1,consts:[["class","items-container",4,"ngIf"],[1,"items-container"],["class","item-itself-container","mat-ripple","",4,"ngFor","ngForOf"],["mat-ripple","",1,"item-itself-container"],[3,"perunWebAppsMiddleClickRouterLink","routerLink","auxclick"],[1,"item-pic","perun-icon",3,"svgIcon"]],template:function(f,E){1&f&&e.YNc(0,T,2,1,"div",0),2&f&&e.Q6J("ngIf","small"===E.size)},dependencies:[g.sg,g.O5,I.yS,i.Hw,P.wG,n.YH,n.QG,D.X$,t.R],styles:[".items-container[_ngcontent-%COMP%]{display:grid;grid-gap:0;grid-template-columns:repeat(auto-fill,minmax(208px,1fr));margin:0 -8px}@media (max-width: 768px){.items-container[_ngcontent-%COMP%]{grid-template-columns:repeat(auto-fill,minmax(148px,1fr))}}.item-pic[_ngcontent-%COMP%]{color:currentColor;transform:scale(3);height:74px;margin-bottom:22px}.item-itself-container[_ngcontent-%COMP%]{margin:8px}.item-itself[_ngcontent-%COMP%]{text-align:center;min-height:186px;height:100%;padding:20px;display:flex;flex-direction:column;align-items:center;font-size:1.25rem}.item-itself[_ngcontent-%COMP%]:hover{text-decoration:none}.item-itself[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:120px;margin-bottom:10px}@media (max-width: 768px){.item-itself[_ngcontent-%COMP%]{min-height:150px;padding:10px}.item-itself[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:80px;margin-bottom:10px}}"]}),b})()}}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/338.7e518000e29cc874.js b/dist/apps/admin-gui/338.7e518000e29cc874.js deleted file mode 100644 index 34d4efb58..000000000 --- a/dist/apps/admin-gui/338.7e518000e29cc874.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin_gui=self.webpackChunkadmin_gui||[]).push([[338],{54668:(W,B,t)=>{t.d(B,{l:()=>p});var C=t(65412),c=t(32105),L=t(69723),n=t(10036),e=t(95017),D=t(64080),s=t(24006),i=t(94650),A=t(89383),d=t(36895),y=t(59549),S=t(284),b=t(97392),N=t(4859),U=t(51572),P=t(98380),T=t(64877);function v(o,_){if(1&o&&i._UZ(0,"app-users-list",14),2&o){const l=i.oxw(2);i.Q6J("displayedColumns",l.displayedColumns)("selection",l.selection)("tableId",l.tableId)("disableRouting",!0)("users",l.identities)}}function O(o,_){if(1&o&&(i.TgZ(0,"div"),i.YNc(1,v,1,5,"app-users-list",13),i.qZA()),2&o){const l=i.oxw();i.xp6(1),i.Q6J("ngIf",void 0!==l.identities&&l.identities.length>0)}}function g(o,_){1&o&&(i.TgZ(0,"perun-web-apps-alert",15),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&o&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"DIALOGS.CONNECT_IDENTITY.SEARCH_HINT")," "))}function h(o,_){1&o&&(i.TgZ(0,"perun-web-apps-alert",16),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&o&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"DIALOGS.CONNECT_IDENTITY.NO_IDENTITIES")," "))}function u(o,_){1&o&&i._UZ(0,"mat-spinner",17)}let p=(()=>{class o{constructor(l,I,f,R,Z,x){this.dialogRef=l,this.data=I,this.userManager=f,this.storeService=R,this.notificator=Z,this.translate=x,this.loading=!1,this.selection=new e.Ov(!1,[]),this.firstSearchDone=!1,this.displayedColumns=["select","id","user","name","email","logins","organization"],this.tableId=n.Iz}ngOnInit(){this.target=this.data.target,this.theme=this.data.theme,this.userId=this.data.userId,this.isService=this.data.isService,this.searchCtrl=new s.p4("",[s.kI.required,s.kI.pattern(".*[\\S]+.*")])}onAdd(){let l,I;this.loading=!0,this.isService?(l=this.selection.selected[0].id,I=this.userId):(l=this.userId,I=this.selection.selected[0].id),this.userManager.addSpecificUserOwner(l,I).subscribe({next:()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.CONNECT_IDENTITY.SUCCESS")),this.dialogRef.close(!0)},error:()=>this.loading=!1})}onCancel(){this.dialogRef.close(!1)}onSearchByString(){if(this.searchCtrl.invalid)return void this.searchCtrl.markAllAsTouched();this.loading=!0,this.firstSearchDone=!0;let l=[D.r.USER_DEF_ORGANIZATION,D.r.USER_DEF_PREFERRED_MAIL];l=l.concat(this.storeService.getLoginAttributeNames()),this.userManager.findRichUsersWithAttributes(this.searchCtrl.value,l).subscribe(I=>{this.identities=this.filterIdentities(I),this.loading=!1},()=>{this.loading=!1})}onKeyInput(l){"Enter"===l.key&&this.onSearchByString()}filterIdentities(l){return l.filter(this.isService?I=>!I.serviceUser:I=>I.serviceUser)}}return o.\u0275fac=function(l){return new(l||o)(i.Y36(C.so),i.Y36(C.WI),i.Y36(c.Fv),i.Y36(L.d6),i.Y36(L.V6),i.Y36(A.sK))},o.\u0275cmp=i.Xpm({type:o,selectors:[["app-connect-identity-dialog"]],decls:25,vars:25,consts:[[3,"keyup"],["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],[1,"mr-2","search-field","no-border-mat-input"],["matInput","","autocomplete","false",3,"placeholder","formControl"],["color","primary","mat-flat-button","",1,"mr-2","search-btn",3,"disabled","click"],[4,"ngIf"],["alert_type","info",4,"ngIf"],["alert_type","warn",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[3,"displayedColumns","selection","tableId","disableRouting","users",4,"ngIf"],[3,"displayedColumns","selection","tableId","disableRouting","users"],["alert_type","info"],["alert_type","warn"],[1,"ml-auto","mr-auto"]],template:function(l,I){1&l&&(i.TgZ(0,"div",0),i.NdJ("keyup",function(R){return I.onKeyInput(R)}),i.TgZ(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"div",2)(5,"mat-form-field",3),i._UZ(6,"input",4),i.ALo(7,"translate"),i.TgZ(8,"mat-error"),i._uU(9),i.ALo(10,"translate"),i.qZA()(),i.TgZ(11,"button",5),i.NdJ("click",function(){return I.onSearchByString()}),i.TgZ(12,"mat-icon"),i._uU(13,"search"),i.qZA()(),i.YNc(14,O,2,1,"div",6),i.YNc(15,g,3,3,"perun-web-apps-alert",7),i.YNc(16,h,3,3,"perun-web-apps-alert",8),i.qZA(),i.YNc(17,u,1,0,"mat-spinner",9),i.TgZ(18,"div",10)(19,"button",11),i.NdJ("click",function(){return I.onCancel()}),i._uU(20),i.ALo(21,"translate"),i.qZA(),i.TgZ(22,"button",12),i.NdJ("click",function(){return I.onAdd()}),i._uU(23),i.ALo(24,"translate"),i.qZA()()()),2&l&&(i.Tol(I.theme),i.xp6(2),i.Oqu(i.lcZ(3,15,"DIALOGS.CONNECT_IDENTITY.TITLE_"+I.target)),i.xp6(4),i.s9C("placeholder",i.lcZ(7,17,"DIALOGS.CONNECT_IDENTITY.SEARCH")),i.Q6J("formControl",I.searchCtrl),i.xp6(3),i.hij(" ",i.lcZ(10,19,"DIALOGS.CONNECT_IDENTITY.EMPTY_SEARCH_MESSAGE")," "),i.xp6(2),i.Q6J("disabled",I.loading),i.xp6(3),i.Q6J("ngIf",!I.loading),i.xp6(1),i.Q6J("ngIf",!I.firstSearchDone),i.xp6(1),i.Q6J("ngIf",!I.loading&&I.firstSearchDone&&0===I.identities.length),i.xp6(1),i.Q6J("ngIf",I.loading),i.xp6(3),i.hij(" ",i.lcZ(21,21,"DIALOGS.CONNECT_IDENTITY.CANCEL")," "),i.xp6(2),i.Q6J("disabled",0===I.selection.selected.length),i.xp6(1),i.hij(" ",i.lcZ(24,23,"DIALOGS.CONNECT_IDENTITY.CONNECT")," "))},dependencies:[d.O5,y.TO,y.KE,S.Nt,s.Fj,s.JJ,s.oH,b.Hw,N.lW,C.uh,C.xY,C.H8,U.Ou,P.w,T.C,A.X$],styles:[".search-field[_ngcontent-%COMP%]{width:300px}.search-btn[_ngcontent-%COMP%]{width:50px}"]}),o})()},94814:(W,B,t)=>{t.d(B,{B:()=>T});var C=t(32105),c=t(65412),L=t(69723),n=t(30671),e=t(94650),D=t(89383),s=t(36895),i=t(4859),A=t(98380),d=t(31359);function y(v,O){1&v&&e._UZ(0,"th",13)}function S(v,O){if(1&v&&(e.TgZ(0,"td",14),e._uU(1),e.ALo(2,"userFullName"),e.qZA()),2&v){const g=O.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,g))}}function b(v,O){1&v&&e._UZ(0,"tr",15)}function N(v,O){1&v&&e._UZ(0,"tr",16)}function U(v,O){1&v&&(e.TgZ(0,"perun-web-apps-alert",17),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&v&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"DIALOGS.DISCONNECT_IDENTITY.WARNING_DISCONNECT_YOURSELF")," "))}function P(v,O){1&v&&(e.TgZ(0,"perun-web-apps-alert",17),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&v&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"DIALOGS.DISCONNECT_IDENTITY.WARNING_LAST_USER")," "))}let T=(()=>{class v{constructor(g,h,u,p,o,_){this.dialogRef=g,this.data=h,this.userManager=u,this.notificator=p,this.translate=o,this.store=_,this.displayedColumns=["name"]}ngOnInit(){let g;this.targetTitle=this.data.targetTitle,this.targetDescription=this.data.targetDescription,this.theme=this.data.theme,this.userId=Number(this.data.userId),this.dataSource=new n.by([this.data.specificUser]),this.isService=this.data.isService,this.isService?(g=this.userId,this.disconnectingSelf=this.dataSource.data[0].id===this.store.getPerunPrincipal().userId):(g=this.dataSource.data[0].id,this.disconnectingSelf=this.userId===this.store.getPerunPrincipal().userId),this.userManager.getUsersBySpecificUser(g).subscribe(h=>{this.disconnectingLastOwner=1===h.length})}onConfirm(){let g,h;this.isService?(g=this.dataSource.data[0].id,h=this.userId):(g=this.userId,h=this.dataSource.data[0].id),this.userManager.removeSpecificUserOwner(g,h).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.DISCONNECT_IDENTITY.SUCCESS")),this.dialogRef.close(!0)})}onCancel(){this.dialogRef.close(!1)}}return v.\u0275fac=function(g){return new(g||v)(e.Y36(c.so),e.Y36(c.WI),e.Y36(C.Fv),e.Y36(L.V6),e.Y36(D.sK),e.Y36(L.d6))},v.\u0275cmp=e.Xpm({type:v,selectors:[["app-disconnect-identity-dialog"]],decls:26,vars:23,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"click"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""],["alert_type","warn"]],template:function(g,h){1&g&&(e.TgZ(0,"h1",0),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.TgZ(3,"div")(4,"div",1)(5,"p"),e._uU(6),e.ALo(7,"translate"),e.qZA(),e.TgZ(8,"div",2),e._uU(9),e.ALo(10,"translate"),e.qZA(),e.TgZ(11,"table",3),e.ynx(12,4),e.YNc(13,y,1,0,"th",5),e.YNc(14,S,3,3,"td",6),e.BQk(),e.YNc(15,b,1,0,"tr",7),e.YNc(16,N,1,0,"tr",8),e.qZA(),e.YNc(17,U,3,3,"perun-web-apps-alert",9),e.YNc(18,P,3,3,"perun-web-apps-alert",9),e.qZA(),e.TgZ(19,"div",10)(20,"button",11),e.NdJ("click",function(){return h.onCancel()}),e._uU(21),e.ALo(22,"translate"),e.qZA(),e.TgZ(23,"button",12),e.NdJ("click",function(){return h.onConfirm()}),e._uU(24),e.ALo(25,"translate"),e.qZA()()()),2&g&&(e.xp6(1),e.Oqu(e.lcZ(2,13,"DIALOGS.DISCONNECT_IDENTITY.TITLE_"+h.targetTitle)),e.xp6(2),e.Tol(h.theme),e.xp6(3),e.Oqu(e.lcZ(7,15,"DIALOGS.DISCONNECT_IDENTITY.DESCRIPTION_"+h.targetDescription)),e.xp6(3),e.hij(" ",e.lcZ(10,17,"DIALOGS.DISCONNECT_IDENTITY.ASK")," "),e.xp6(2),e.Q6J("dataSource",h.dataSource),e.xp6(4),e.Q6J("matHeaderRowDef",h.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",h.displayedColumns),e.xp6(1),e.Q6J("ngIf",h.disconnectingSelf),e.xp6(1),e.Q6J("ngIf",h.disconnectingLastOwner),e.xp6(3),e.hij(" ",e.lcZ(22,19,"DIALOGS.DISCONNECT_IDENTITY.CANCEL")," "),e.xp6(3),e.hij(" ",e.lcZ(25,21,"DIALOGS.DISCONNECT_IDENTITY.REMOVE")," "))},dependencies:[s.O5,i.lW,n.BZ,n.fO,n.as,n.w1,n.Dz,n.nj,n.ge,n.ev,n.XQ,n.Gk,c.uh,c.xY,c.H8,A.w,D.X$,d.d]}),v})()},29862:(W,B,t)=>{t.d(B,{x:()=>P});var C=t(32105),c=t(65412),L=t(69723),n=t(24006),e=t(94650),D=t(89383),s=t(36895),i=t(59549),A=t(284),d=t(4859);function y(T,v){1&T&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&T&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"DIALOGS.EDIT_USER.ERROR_LENGTH")))}function S(T,v){1&T&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&T&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"DIALOGS.EDIT_USER.ERROR_LENGTH")))}function b(T,v){1&T&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&T&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"DIALOGS.EDIT_USER.ERROR_FIRST_NAME")))}function N(T,v){1&T&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&T&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"DIALOGS.EDIT_USER.ERROR_LENGTH")))}function U(T,v){1&T&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&T&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"DIALOGS.EDIT_USER.ERROR_LAST_NAME")))}let P=(()=>{class T{constructor(O,g,h,u,p){this.dialogRef=O,this.data=g,this.userService=h,this.notificator=u,this.translateService=p,this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.titleBefore=new n.p4(this.data.user.titleBefore,[n.kI.pattern(".*[\\S]+.*"),n.kI.maxLength(129)]),this.titleAfter=new n.p4(this.data.user.titleAfter,[n.kI.pattern(".*[\\S]+.*"),n.kI.maxLength(129)]),this.firstName=new n.p4(this.data.user.firstName,[n.kI.required,n.kI.pattern(".*[\\S]+.*"),n.kI.maxLength(129)]),this.middleName=new n.p4(this.data.user.middleName,[n.kI.pattern(".*[\\S]+.*"),n.kI.maxLength(129)]),this.lastName=new n.p4(this.data.user.lastName,[n.kI.required,n.kI.pattern(".*[\\S]+.*"),n.kI.maxLength(129)])}onCancel(){this.dialogRef.close(!1)}onSave(){this.loading=!0,this.data.user.titleBefore=this.titleBefore.value,this.data.user.titleAfter=this.titleAfter.value,this.data.user.firstName=this.firstName.value,this.data.user.middleName=this.middleName.value,this.data.user.lastName=this.lastName.value,this.userService.updateUser({user:this.data.user}).subscribe(()=>{this.translateService.get("DIALOGS.EDIT_USER.SUCCESS").subscribe(O=>{this.notificator.showSuccess(O),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return T.\u0275fac=function(O){return new(O||T)(e.Y36(c.so),e.Y36(c.WI),e.Y36(C.Fv),e.Y36(L.V6),e.Y36(D.sK))},T.\u0275cmp=e.Xpm({type:T,selectors:[["app-edit-user-dialog"]],decls:32,vars:38,consts:[[1,"mat-dialog-title"],["mat-dialog-content","",1,"dialog-container"],["matInput","",3,"formControl","placeholder"],[4,"ngIf"],["matInput","","data-cy","user-first-name-input","required","",3,"placeholder","formControl"],["matInput","","required","",3,"formControl","placeholder"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","data-cy","user-save-button","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(O,g){1&O&&(e.TgZ(0,"div")(1,"h1",0),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",1)(5,"mat-form-field"),e._UZ(6,"input",2),e.ALo(7,"translate"),e.YNc(8,y,3,3,"mat-error",3),e.qZA(),e.TgZ(9,"mat-form-field"),e._UZ(10,"input",2),e.ALo(11,"translate"),e.YNc(12,S,3,3,"mat-error",3),e.qZA(),e.TgZ(13,"mat-form-field"),e._UZ(14,"input",4),e.ALo(15,"translate"),e.YNc(16,b,3,3,"mat-error",3),e.qZA(),e.TgZ(17,"mat-form-field"),e._UZ(18,"input",2),e.ALo(19,"translate"),e.YNc(20,N,3,3,"mat-error",3),e.qZA(),e.TgZ(21,"mat-form-field"),e._UZ(22,"input",5),e.ALo(23,"translate"),e.YNc(24,U,3,3,"mat-error",3),e.qZA()(),e.TgZ(25,"div",6)(26,"button",7),e.NdJ("click",function(){return g.onCancel()}),e._uU(27),e.ALo(28,"translate"),e.qZA(),e.TgZ(29,"button",8),e.NdJ("click",function(){return g.onSave()}),e._uU(30),e.ALo(31,"translate"),e.qZA()()()),2&O&&(e.Tol(g.theme),e.xp6(2),e.Oqu(e.lcZ(3,22,"DIALOGS.EDIT_USER.DIALOG_TITLE")),e.xp6(4),e.s9C("placeholder",e.lcZ(7,24,"DIALOGS.EDIT_USER.TITLE_BEFORE")),e.Q6J("formControl",g.titleBefore),e.xp6(2),e.Q6J("ngIf",g.titleBefore.invalid),e.xp6(2),e.s9C("placeholder",e.lcZ(11,26,"DIALOGS.EDIT_USER.TITLE_AFTER")),e.Q6J("formControl",g.titleAfter),e.xp6(2),e.Q6J("ngIf",g.titleAfter.invalid),e.xp6(2),e.s9C("placeholder",e.lcZ(15,28,"DIALOGS.EDIT_USER.FIRST_NAME")),e.Q6J("formControl",g.firstName),e.xp6(2),e.Q6J("ngIf",g.firstName.invalid),e.xp6(2),e.s9C("placeholder",e.lcZ(19,30,"DIALOGS.EDIT_USER.MIDDLE_NAME")),e.Q6J("formControl",g.middleName),e.xp6(2),e.Q6J("ngIf",g.middleName.invalid),e.xp6(2),e.s9C("placeholder",e.lcZ(23,32,"DIALOGS.EDIT_USER.LAST_NAME")),e.Q6J("formControl",g.lastName),e.xp6(2),e.Q6J("ngIf",g.lastName.invalid),e.xp6(3),e.hij(" ",e.lcZ(28,34,"DIALOGS.EDIT_USER.CANCEL")," "),e.xp6(2),e.Q6J("disabled",g.loading||g.firstName.invalid||g.lastName.invalid||g.titleBefore.invalid||g.titleAfter.invalid||g.middleName.invalid),e.xp6(1),e.hij(" ",e.lcZ(31,36,"DIALOGS.EDIT_USER.SAVE")," "))},dependencies:[s.O5,i.TO,i.KE,A.Nt,n.Fj,n.JJ,n.Q7,n.oH,d.lW,c.xY,c.H8,D.X$]}),T})()},90979:(W,B,t)=>{t.d(B,{G:()=>D});var C=t(65412),c=t(69723),L=t(32105),n=t(94650),e=t(1415);let D=(()=>{class s{constructor(A,d,y,S){this.data=A,this.dialogRef=d,this.facilityService=y,this.notificator=S,this.loading=!1}update(A){this.loading=!0,this.facilityService.updateFacilityBan({banOnFacility:{id:this.data.ban.id,beanName:"BanOnFacility",facilityId:this.data.ban.facilityId,userId:this.data.ban.userId,description:A.description,validityTo:A.validity}}).subscribe({next:()=>{this.notificator.showSuccess("DIALOGS.UPDATE_BAN.SUCCESS"),this.dialogRef.close(!0)},error:()=>{this.loading=!1}})}cancel(){this.dialogRef.close(!1)}}return s.\u0275fac=function(A){return new(A||s)(n.Y36(C.WI),n.Y36(C.so),n.Y36(L.IQ),n.Y36(c.V6))},s.\u0275cmp=n.Xpm({type:s,selectors:[["app-update-facility-ban-dialog"]],decls:1,vars:2,consts:[[3,"ban","theme","cancel","update"]],template:function(A,d){1&A&&(n.TgZ(0,"app-update-ban-dialog",0),n.NdJ("cancel",function(){return d.cancel()})("update",function(S){return d.update(S)}),n.qZA()),2&A&&n.Q6J("ban",d.data.ban)("theme","facility-theme")},dependencies:[e.l]}),s})()},98973:(W,B,t)=>{t.d(B,{u:()=>N});var C=t(69723),c=t(94650),L=t(94364),n=t(36895),e=t(3848),D=t(48323),s=t(12651),i=t(89383);function A(U,P){1&U&&(c._uU(0),c.ALo(1,"translate")),2&U&&c.hij(" ",c.lcZ(1,1,"ADMIN_USER.ENTITY")," ")}function d(U,P){if(1&U&&c._UZ(0,"app-one-entity-attribute-page",5),2&U){const T=c.oxw();c.Q6J("entityId",T.userId)("entity","user")}}function y(U,P){1&U&&(c._uU(0),c.ALo(1,"translate"),c.ALo(2,"translate")),2&U&&c.AsE(" ",c.lcZ(1,2,"ADMIN_USER.ENTITY")," - ",c.lcZ(2,4,"FACILITY_DETAIL.ENTITY")," ")}function S(U,P){if(1&U&&c._UZ(0,"app-two-entity-attribute-page",6),2&U){const T=c.oxw(2);c.Q6J("firstEntity","user")("firstEntityId",T.userId)("secondEntity","facility")}}function b(U,P){1&U&&(c.TgZ(0,"mat-tab"),c.YNc(1,y,3,6,"ng-template",2),c.YNc(2,S,1,3,"ng-template",3),c.qZA())}let N=(()=>{class U{constructor(T,v,O){this.route=T,this.store=v,this.authResolver=O}ngOnInit(){this.route.parent.params.subscribe(T=>{this.userId=Number(T.userId),this.userId||(this.userId=this.store.getPerunPrincipal().userId),this.userFacilityAttAuth=this.authResolver.isAuthorized("getAssignedFacilities_User_policy",[{id:this.userId,beanName:"User"}])})}}return U.\u0275fac=function(T){return new(T||U)(c.Y36(L.gz),c.Y36(C.d6),c.Y36(C.x4))},U.\u0275cmp=c.Xpm({type:U,selectors:[["app-user-settings-attributes"]],hostVars:2,hostBindings:function(T,v){2&T&&c.ekj("router-component",v.true)},decls:8,vars:4,consts:[[1,"page-subtitle"],[1,"mb-2"],["matTabLabel",""],["matTabContent",""],[4,"ngIf"],[3,"entityId","entity"],[3,"firstEntity","firstEntityId","secondEntity"]],template:function(T,v){1&T&&(c.TgZ(0,"h1",0),c._uU(1),c.ALo(2,"translate"),c.qZA(),c.TgZ(3,"mat-tab-group")(4,"mat-tab",1),c.YNc(5,A,2,3,"ng-template",2),c.YNc(6,d,1,2,"ng-template",3),c.qZA(),c.YNc(7,b,3,0,"mat-tab",4),c.qZA()),2&T&&(c.xp6(1),c.Oqu(c.lcZ(2,2,"USER_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),c.xp6(6),c.Q6J("ngIf",v.userFacilityAttAuth))},dependencies:[n.O5,e.SP,e.uD,e.uX,e.Vc,D.Y,s.t,i.X$]}),U})()},51403:(W,B,t)=>{t.d(B,{Q:()=>_});var C=t(32105),c=t(69723),L=t(9244),n=t(32316),e=t(28943),D=t(90979),s=t(94650),i=t(65412),A=t(3848),d=t(51572),y=t(64901),S=t(94391),b=t(91880),N=t(89383);function U(l,I){1&l&&(s._uU(0),s.ALo(1,"translate")),2&l&&s.hij(" ",s.lcZ(1,1,"USER_DETAIL.BANS.VO")," ")}function P(l,I){if(1&l){const f=s.EpF();s.TgZ(0,"perun-web-apps-ban-on-entity-list",8),s.NdJ("updateBan",function(Z){s.CHM(f);const x=s.oxw(2);return s.KtG(x.updateVoBan(Z))}),s.qZA()}if(2&l){const f=s.oxw(2);s.Q6J("bans",f.voBans)("displayedColumns",f.displayedColumns)("filter",f.filter)("updatePolicy","updateBan_BanOnVo_policy")}}function T(l,I){if(1&l){const f=s.EpF();s.TgZ(0,"perun-web-apps-debounce-filter",5),s.NdJ("filter",function(Z){s.CHM(f);const x=s.oxw();return s.KtG(x.filter=Z)}),s.qZA(),s.TgZ(1,"div",6),s.YNc(2,P,1,4,"perun-web-apps-ban-on-entity-list",7),s.qZA()}if(2&l){const f=s.oxw(),R=s.MAs(14);s.Q6J("placeholder","USER_DETAIL.BANS.FILTER"),s.xp6(2),s.Q6J("perunWebAppsLoader",f.loading)("perunWebAppsLoaderIndicator",R)}}function v(l,I){1&l&&(s._uU(0),s.ALo(1,"translate")),2&l&&s.hij(" ",s.lcZ(1,1,"USER_DETAIL.BANS.RESOURCE")," ")}function O(l,I){if(1&l){const f=s.EpF();s.TgZ(0,"perun-web-apps-ban-on-entity-list",8),s.NdJ("updateBan",function(Z){s.CHM(f);const x=s.oxw(2);return s.KtG(x.updateResourceBan(Z))}),s.qZA()}if(2&l){const f=s.oxw(2);s.Q6J("bans",f.resourceBans)("displayedColumns",f.displayedColumns)("filter",f.filter)("updatePolicy","updateBan_BanOnResource_policy")}}function g(l,I){if(1&l){const f=s.EpF();s.TgZ(0,"perun-web-apps-debounce-filter",5),s.NdJ("filter",function(Z){s.CHM(f);const x=s.oxw();return s.KtG(x.filter=Z)}),s.qZA(),s.TgZ(1,"div",6),s.YNc(2,O,1,4,"perun-web-apps-ban-on-entity-list",7),s.qZA()}if(2&l){const f=s.oxw(),R=s.MAs(14);s.Q6J("placeholder","USER_DETAIL.BANS.FILTER"),s.xp6(2),s.Q6J("perunWebAppsLoader",f.loading)("perunWebAppsLoaderIndicator",R)}}function h(l,I){1&l&&(s._uU(0),s.ALo(1,"translate")),2&l&&s.hij(" ",s.lcZ(1,1,"USER_DETAIL.BANS.FACILITY")," ")}function u(l,I){if(1&l){const f=s.EpF();s.TgZ(0,"perun-web-apps-ban-on-entity-list",8),s.NdJ("updateBan",function(Z){s.CHM(f);const x=s.oxw(2);return s.KtG(x.updateFacilityBan(Z))}),s.qZA()}if(2&l){const f=s.oxw(2);s.Q6J("bans",f.facilityBans)("displayedColumns",f.displayedColumns)("filter",f.filter)("updatePolicy","updateBan_BanOnFacility_policy")}}function p(l,I){if(1&l){const f=s.EpF();s.TgZ(0,"perun-web-apps-debounce-filter",5),s.NdJ("filter",function(Z){s.CHM(f);const x=s.oxw();return s.KtG(x.filter=Z)}),s.qZA(),s.TgZ(1,"div",6),s.YNc(2,u,1,4,"perun-web-apps-ban-on-entity-list",7),s.qZA()}if(2&l){const f=s.oxw(),R=s.MAs(14);s.Q6J("placeholder","USER_DETAIL.BANS.FILTER"),s.xp6(2),s.Q6J("perunWebAppsLoader",f.loading)("perunWebAppsLoaderIndicator",R)}}function o(l,I){1&l&&(s.TgZ(0,"div",9),s._UZ(1,"mat-spinner"),s.qZA())}let _=(()=>{class l{constructor(f,R,Z,x,z){this.voService=f,this.resourceService=R,this.facilityService=Z,this.entityService=x,this.dialog=z,this.loading=!1,this.voBans=[],this.resourceBans=[],this.facilityBans=[],this.filter="",this.displayedColumns=["banId","targetId","targetName","description","expiration","edit"]}ngOnInit(){this.loading=!0,this.user=this.entityService.getEntity(),this.refreshVoBans()}refreshVoBans(){this.loading=!0,this.voService.getEnrichedVoBansForUser(this.user.id).subscribe({next:f=>{this.voBans=f,this.loading=!1},error:()=>this.loading=!1})}refreshResourceBans(){this.loading=!0,this.resourceService.getEnrichedBansForUser(this.user.id).subscribe({next:f=>{this.resourceBans=f,this.loading=!1},error:()=>this.loading=!1})}refreshFacilityBans(){this.loading=!0,this.facilityService.getEnricheFacilitydBansForUser(this.user.id).subscribe({next:f=>{this.facilityBans=f,this.loading=!1},error:()=>this.loading=!1})}updateVoBan(f){this.dialog.open(n.A,this.getConfig(f)).afterClosed().subscribe(Z=>{Z&&this.refreshVoBans()})}updateResourceBan(f){this.dialog.open(e.e,this.getConfig(f)).afterClosed().subscribe(Z=>{Z&&this.refreshResourceBans()})}updateFacilityBan(f){this.dialog.open(D.G,this.getConfig(f)).afterClosed().subscribe(Z=>{Z&&this.refreshFacilityBans()})}getConfig(f){const R=(0,L.kZ)();return R.width="600px",R.data={ban:f.ban,theme:"user-theme"},R}refresh(f){0===f.index?this.refreshVoBans():1===f.index?this.refreshResourceBans():this.refreshFacilityBans()}}return l.\u0275fac=function(f){return new(f||l)(s.Y36(C.YF),s.Y36(C.xk),s.Y36(C.IQ),s.Y36(c.fb),s.Y36(i.uw))},l.\u0275cmp=s.Xpm({type:l,selectors:[["app-user-bans"]],decls:15,vars:3,consts:[[1,"page-subtitle"],[1,"mt-3",3,"selectedTabChange"],["matTabLabel",""],["matTabContent",""],["spinner",""],[1,"mt-2","search-field",3,"placeholder","filter"],[1,"position-relative"],[3,"bans","displayedColumns","filter","updatePolicy","updateBan",4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],[3,"bans","displayedColumns","filter","updatePolicy","updateBan"],[1,"spinner-container"]],template:function(f,R){1&f&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.TgZ(3,"mat-tab-group",1),s.NdJ("selectedTabChange",function(x){return R.refresh(x)}),s.TgZ(4,"mat-tab"),s.YNc(5,U,2,3,"ng-template",2),s.YNc(6,T,3,3,"ng-template",3),s.qZA(),s.TgZ(7,"mat-tab"),s.YNc(8,v,2,3,"ng-template",2),s.YNc(9,g,3,3,"ng-template",3),s.qZA(),s.TgZ(10,"mat-tab"),s.YNc(11,h,2,3,"ng-template",2),s.YNc(12,p,3,3,"ng-template",3),s.qZA()(),s.YNc(13,o,2,0,"ng-template",null,4,s.W1O)),2&f&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"USER_DETAIL.BANS.TITLE"),"\n"))},dependencies:[A.SP,A.uD,A.uX,A.Vc,d.Ou,y.P,S.e5,b.s,N.X$]}),l})()},85985:(W,B,t)=>{t.d(B,{u:()=>g});var C=t(69723),c=t(32105),L=t(10036),n=t(94650),e=t(94364),D=t(36895),s=t(51572),i=t(25788),A=t(96214),d=t(7434),y=t(89383);function S(h,u){1&h&&(n.TgZ(0,"h1",6),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&h&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED.COMPONENTS.USER_DETAIL.GROUPS.YOU_ARE_MEMBER"),"\n"))}function b(h,u){1&h&&(n.TgZ(0,"h1",6),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&h&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED.COMPONENTS.USER_DETAIL.GROUPS.USER_IS_MEMBER"),"\n"))}function N(h,u){1&h&&n._UZ(0,"mat-spinner",7)}const U=function(){return["id","vo","name","description"]};function P(h,u){if(1&h&&n._UZ(0,"perun-web-apps-groups-list",8),2&h){const p=n.oxw();n.Q6J("disableMembers",!1)("groups",p.membersGroups)("displayedColumns",n.DdM(5,U))("filter",p.memberFilterValue)("tableId",p.tableId)}}function T(h,u){1&h&&n._UZ(0,"mat-spinner",7)}function v(h,u){if(1&h&&n._UZ(0,"perun-web-apps-groups-list",8),2&h){const p=n.oxw(2);n.Q6J("disableMembers",!1)("groups",p.adminsGroups)("displayedColumns",n.DdM(5,U))("filter",p.adminFilterValue)("tableId",p.adminTableId)}}function O(h,u){if(1&h){const p=n.EpF();n.TgZ(0,"div",9)(1,"h1",6),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"perun-web-apps-refresh-button",1),n.NdJ("refresh",function(){n.CHM(p);const _=n.oxw();return n.KtG(_.refreshAdminTable())}),n.qZA(),n.TgZ(5,"perun-web-apps-immediate-filter",2),n.NdJ("filter",function(_){n.CHM(p);const l=n.oxw();return n.KtG(l.adminFilter(_))}),n.qZA(),n.YNc(6,T,1,0,"mat-spinner",3),n.YNc(7,v,1,6,"perun-web-apps-groups-list",4),n.qZA()}if(2&h){const p=n.oxw();n.xp6(2),n.hij(" ",n.lcZ(3,4,"SHARED.COMPONENTS.USER_DETAIL.GROUPS.USER_IS_ADMIN")," "),n.xp6(3),n.Q6J("placeholder","SHARED_LIB.PERUN.ORGANIZATIONS.FILTER"),n.xp6(1),n.Q6J("ngIf",p.adminRefresh),n.xp6(1),n.Q6J("ngIf",!p.adminRefresh)}}let g=(()=>{class h{constructor(p,o,_,l,I){this.usersService=p,this.memberService=o,this.groupService=_,this.store=l,this.route=I,this.memberFilterValue="",this.adminFilterValue="",this.vos=[],this.membersGroups=[],this.adminsGroups=[],this.tableId=L.KE,this.adminTableId=L.Sb}ngOnInit(){(this.showPrincipal=this.route.snapshot.data.showPrincipal)?this.userId=this.store.getPerunPrincipal().user.id:this.route.parent.params.subscribe(p=>this.userId=Number(p.userId)),this.refreshAdminTable(),this.refreshMemberTable()}memberFilter(p){this.memberFilterValue=p}adminFilter(p){this.adminFilterValue=p}refreshAdminTable(){this.adminRefresh=!0,this.usersService.getGroupsWhereUserIsAdmin(this.userId).subscribe(p=>{this.adminsGroups=p,this.adminRefresh=!1})}refreshMemberTable(){this.memberRefresh=!0,this.membersGroups=[],this.usersService.getVosWhereUserIsMember(this.userId).subscribe(p=>{this.vos=p;for(const o of this.vos)this.memberService.getMemberByUser(o.id,this.userId).subscribe(_=>{this.groupService.getMemberGroups(_.id).subscribe(l=>{this.membersGroups=this.membersGroups.concat(l),this.vos.indexOf(o)===this.vos.length-1&&(this.memberRefresh=!1)})});0===p.length&&(this.memberRefresh=!1)})}}return h.\u0275fac=function(p){return new(p||h)(n.Y36(c.Fv),n.Y36(c.uq),n.Y36(c.ff),n.Y36(C.d6),n.Y36(e.gz))},h.\u0275cmp=n.Xpm({type:h,selectors:[["app-user-groups"]],hostVars:2,hostBindings:function(p,o){2&p&&n.ekj("router-component",o.true)},decls:7,vars:6,consts:[["class","page-subtitle",4,"ngIf"],[3,"refresh"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableMembers","groups","displayedColumns","filter","tableId",4,"ngIf"],["class","mt-5",4,"ngIf"],[1,"page-subtitle"],[1,"ml-auto","mr-auto"],[3,"disableMembers","groups","displayedColumns","filter","tableId"],[1,"mt-5"]],template:function(p,o){1&p&&(n.YNc(0,S,3,3,"h1",0),n.YNc(1,b,3,3,"h1",0),n.TgZ(2,"perun-web-apps-refresh-button",1),n.NdJ("refresh",function(){return o.refreshMemberTable()}),n.qZA(),n.TgZ(3,"perun-web-apps-immediate-filter",2),n.NdJ("filter",function(l){return o.memberFilter(l)}),n.qZA(),n.YNc(4,N,1,0,"mat-spinner",3),n.YNc(5,P,1,6,"perun-web-apps-groups-list",4),n.YNc(6,O,8,6,"div",5)),2&p&&(n.Q6J("ngIf",o.showPrincipal),n.xp6(1),n.Q6J("ngIf",!o.showPrincipal),n.xp6(2),n.Q6J("placeholder","SHARED_LIB.PERUN.ORGANIZATIONS.FILTER"),n.xp6(1),n.Q6J("ngIf",o.memberRefresh),n.xp6(1),n.Q6J("ngIf",!o.memberRefresh),n.xp6(1),n.Q6J("ngIf",!o.showPrincipal))},dependencies:[D.O5,s.Ou,i.W,A.t,d.L,y.X$]}),h})()},74837:(W,B,t)=>{t.d(B,{j:()=>O});var C=t(32105),c=t(69723),L=t(10036),n=t(94650),e=t(94364),D=t(36895),s=t(51572),i=t(87831),A=t(96214),d=t(7434),y=t(89383);function S(g,h){1&g&&(n.TgZ(0,"h1",6),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&g&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.ORGANIZATIONS.YOU_ARE_MEMBER"),"\n"))}function b(g,h){1&g&&(n.TgZ(0,"h1",6),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&g&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.ORGANIZATIONS.USER_IS_MEMBER"),"\n"))}function N(g,h){1&g&&n._UZ(0,"mat-spinner",7)}function U(g,h){if(1&g&&n._UZ(0,"perun-web-apps-vos-list",8),2&g){const u=n.oxw();n.Q6J("displayedColumns",u.displayedColumns)("tableId",u.memberTableId)("filterValue",u.memberFilterValue)("vos",u.vosWhereIsMember)}}function P(g,h){1&g&&n._UZ(0,"mat-spinner",7)}function T(g,h){if(1&g&&n._UZ(0,"perun-web-apps-vos-list",8),2&g){const u=n.oxw(2);n.Q6J("displayedColumns",u.displayedColumns)("tableId",u.adminTableId)("filterValue",u.adminFilterValue)("vos",u.vosWhereIsAdmin)}}function v(g,h){if(1&g){const u=n.EpF();n.TgZ(0,"div",9)(1,"h1",6),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"perun-web-apps-refresh-button",1),n.NdJ("refresh",function(){n.CHM(u);const o=n.oxw();return n.KtG(o.refreshAdminTable())}),n.qZA(),n.TgZ(5,"perun-web-apps-immediate-filter",2),n.NdJ("filter",function(o){n.CHM(u);const _=n.oxw();return n.KtG(_.applyAdminFilter(o))}),n.qZA(),n.YNc(6,P,1,0,"mat-spinner",3),n.YNc(7,T,1,4,"perun-web-apps-vos-list",4),n.qZA()}if(2&g){const u=n.oxw();n.xp6(2),n.Oqu(n.lcZ(3,4,"SHARED_LIB.PERUN.ORGANIZATIONS.USER_IS_ADMIN")),n.xp6(3),n.Q6J("placeholder","SHARED_LIB.PERUN.ORGANIZATIONS.FILTER"),n.xp6(1),n.Q6J("ngIf",u.adminRefresh),n.xp6(1),n.Q6J("ngIf",!u.adminRefresh)}}let O=(()=>{class g{constructor(u,p,o,_){this.usersService=u,this.authResolver=p,this.store=o,this.route=_,this.adminFilterValue="",this.memberFilterValue="",this.displayedColumns=["id","name"],this.adminTableId=L.YF,this.memberTableId=L.gc}ngOnInit(){(this.isMyProfile=this.route.snapshot.data.showPrincipal)?this.userId=this.store.getPerunPrincipal().user.id:this.route.parent.params.subscribe(u=>this.userId=Number(u.userId)),this.refreshAdminTable(),this.refreshMemberTable()}refreshMemberTable(){this.memberRefresh=!0,this.usersService.getVosWhereUserIsMember(this.userId).subscribe(u=>{this.vosWhereIsMember=u,this.memberRefresh=!1},()=>this.memberRefresh=!1)}refreshAdminTable(){this.adminRefresh=!0,this.usersService.getVosWhereUserIsAdmin(this.userId).subscribe(u=>{this.vosWhereIsAdmin=u,this.adminRefresh=!1},()=>this.adminRefresh=!1)}applyMemberFilter(u){this.memberFilterValue=u}applyAdminFilter(u){this.adminFilterValue=u}}return g.\u0275fac=function(u){return new(u||g)(n.Y36(C.Fv),n.Y36(c.x4),n.Y36(c.d6),n.Y36(e.gz))},g.\u0275cmp=n.Xpm({type:g,selectors:[["app-user-organizations"]],hostVars:2,hostBindings:function(u,p){2&u&&n.ekj("router-component",p.true)},decls:7,vars:6,consts:[["class","page-subtitle",4,"ngIf"],[3,"refresh"],[3,"placeholder","filter"],["class","mr-auto ml-auto",4,"ngIf"],[3,"displayedColumns","tableId","filterValue","vos",4,"ngIf"],["class","mt-5",4,"ngIf"],[1,"page-subtitle"],[1,"mr-auto","ml-auto"],[3,"displayedColumns","tableId","filterValue","vos"],[1,"mt-5"]],template:function(u,p){1&u&&(n.YNc(0,S,3,3,"h1",0),n.YNc(1,b,3,3,"h1",0),n.TgZ(2,"perun-web-apps-refresh-button",1),n.NdJ("refresh",function(){return p.refreshMemberTable()}),n.qZA(),n.TgZ(3,"perun-web-apps-immediate-filter",2),n.NdJ("filter",function(_){return p.applyMemberFilter(_)}),n.qZA(),n.YNc(4,N,1,0,"mat-spinner",3),n.YNc(5,U,1,4,"perun-web-apps-vos-list",4),n.YNc(6,v,8,6,"div",5)),2&u&&(n.Q6J("ngIf",p.isMyProfile),n.xp6(1),n.Q6J("ngIf",!p.isMyProfile),n.xp6(2),n.Q6J("placeholder","SHARED_LIB.PERUN.ORGANIZATIONS.FILTER"),n.xp6(1),n.Q6J("ngIf",p.memberRefresh),n.xp6(1),n.Q6J("ngIf",!p.memberRefresh),n.xp6(1),n.Q6J("ngIf",!p.isMyProfile))},dependencies:[D.O5,s.Ou,i.Z,A.t,d.L,y.X$]}),g})()},17755:(W,B,t)=>{t.d(B,{Z:()=>u});var C=t(32105),c=t(30671),L=t(69723),n=t(64080),e=t(9244),D=t(21029),s=t(94650),i=t(94364),A=t(65412),d=t(36895),y=t(97392),S=t(4859),b=t(73546),N=t(71135),U=t(89383);function P(p,o){1&p&&s._UZ(0,"th",12)}function T(p,o){if(1&p&&(s.TgZ(0,"td",13),s._uU(1),s.qZA()),2&p){const _=o.$implicit;s.xp6(1),s.hij(" ",_.displayName,": ")}}function v(p,o){1&p&&s._UZ(0,"th",12)}function O(p,o){if(1&p){const _=s.EpF();s.TgZ(0,"td",14),s._uU(1),s.TgZ(2,"button",15),s.NdJ("click",function(){s.CHM(_);const I=s.oxw(2);return s.KtG(I.changeEmail())}),s.TgZ(3,"mat-icon"),s._uU(4,"edit"),s.qZA()()()}if(2&p){const _=o.$implicit;s.xp6(1),s.hij(" ",_.value," ")}}function g(p,o){1&p&&s._UZ(0,"tr",16)}function h(p,o){if(1&p&&(s.TgZ(0,"div",2)(1,"mat-card",3)(2,"mat-card-header")(3,"mat-card-title")(4,"h1",4),s._uU(5),s.ALo(6,"translate"),s.qZA()()(),s.TgZ(7,"mat-card-content")(8,"table",5),s.ynx(9,6),s.YNc(10,P,1,0,"th",7),s.YNc(11,T,2,1,"td",8),s.BQk(),s.ynx(12,9),s.YNc(13,v,1,0,"th",7),s.YNc(14,O,5,1,"td",10),s.BQk(),s.YNc(15,g,1,0,"tr",11),s.qZA()()()()),2&p){const _=s.oxw();s.xp6(5),s.Oqu(s.lcZ(6,3,"USER_DETAIL.OVERVIEW.GENERAL_SETTINGS")),s.xp6(3),s.Q6J("dataSource",_.mailDataSource),s.xp6(7),s.Q6J("matRowDefColumns",_.displayedColumns)}}let u=(()=>{class p{constructor(_,l,I,f,R){this.userService=_,this.attributeService=l,this.storeService=I,this.route=f,this.dialog=R,this.navItems=[],this.isServiceUser=!1,this.displayedColumns=["name","value"],this.inMyProfile=!1}ngOnInit(){this.route.params.subscribe(_=>{_.userId?this.userService.getUserById(Number(_.userId)).subscribe(l=>{this.user=l,this.isServiceUser=l.serviceUser,this.initNavItems(`/admin/users/${this.user.id}`)}):(this.inMyProfile=!0,this.userID=this.storeService.getPerunPrincipal().user.id,this.attributeService.getUserAttributeByName(this.userID,n.r.USER_DEF_PREFERRED_MAIL).subscribe(l=>{this.preferredMail=l,this.handleMailNotDefined(),this.mailDataSource=new c.by([this.preferredMail]),this.initNavItems("/myProfile")}))})}changeEmail(){const _=(0,e.kZ)();_.width="350px",_.data={userId:this.userID},this.dialog.open(D.gr,_).afterClosed().subscribe(I=>{I&&this.attributeService.getUserAttributeByName(this.userID,n.r.USER_DEF_PREFERRED_MAIL).subscribe(f=>{this.preferredMail=f,this.handleMailNotDefined(),this.mailDataSource=new c.by([this.preferredMail])})})}handleMailNotDefined(){null==this.preferredMail&&(this.preferredMail={id:-1,beanName:"Attribute",displayName:(0,e.Cz)(n.r.USER_DEF_PREFERRED_MAIL.split(":").pop()),value:new Object("-")})}initNavItems(_){this.navItems=[{cssIcon:"perun-vo",url:`${_}/organizations`,label:"MENU_ITEMS.ADMIN.ORGANIZATIONS",style:"user-btn"},{cssIcon:"perun-group",url:`${_}/groups`,label:"MENU_ITEMS.ADMIN.GROUPS",style:"user-btn"}],window.location.pathname.startsWith("/admin")&&this.navItems.push({cssIcon:"perun-user",url:`${_}/accounts`,label:"MENU_ITEMS.USER.ACCOUNTS",style:"user-btn"},{cssIcon:"perun-identity",url:`${_}/identities`,label:"MENU_ITEMS.USER.IDENTITIES",style:"user-btn"},{cssIcon:"perun-facility-white",url:`${_}/facilities`,label:"MENU_ITEMS.USER.FACILITIES",style:"user-btn"},{cssIcon:"perun-resource",url:`${_}/resources`,label:"MENU_ITEMS.USER.RESOURCES",style:"user-btn"}),this.navItems.push({cssIcon:"perun-attributes",url:`${_}/attributes`,label:"MENU_ITEMS.USER.ATTRIBUTES",style:"user-btn"}),this.navItems.push({cssIcon:"perun-roles",url:`${_}/roles`,label:"MENU_ITEMS.USER.ROLES",style:"user-btn"}),this.navItems.push(this.isServiceUser?{cssIcon:"perun-manager",url:`${_}/associated-users`,label:"MENU_ITEMS.USER.ASSOCIATED_USERS",style:"user-btn"}:{cssIcon:"perun-service-identity",url:`${_}/service-identities`,label:"MENU_ITEMS.USER.SERVICE_IDENTITIES",style:"user-btn"}),this.navItems.push({cssIcon:"perun-ban",url:"bans",label:"MENU_ITEMS.USER.BANS",style:"user-btn"}),window.location.pathname.startsWith("/admin")||this.navItems.push({cssIcon:"perun-settings2",url:`${_}/settings`,label:"MENU_ITEMS.ADMIN.SETTINGS",style:"user-btn"})}}return p.\u0275fac=function(_){return new(_||p)(s.Y36(C.Fv),s.Y36(C.H8),s.Y36(L.d6),s.Y36(i.gz),s.Y36(A.uw))},p.\u0275cmp=s.Xpm({type:p,selectors:[["app-user-overview"]],hostVars:2,hostBindings:function(_,l){2&_&&s.ekj("router-component",l.true)},decls:2,vars:3,consts:[["class","align-cards",4,"ngIf"],[3,"items","size"],[1,"align-cards"],[1,"mat-elevation-z3"],[1,"page-subtitle"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["class","font-weight-bold","mat-cell","",4,"matCellDef"],["matColumnDef","value"],["mat-cell","",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"font-weight-bold"],["mat-cell",""],["mat-icon-button","",1,"ml-3",3,"click"],["mat-row",""]],template:function(_,l){1&_&&(s.YNc(0,h,16,5,"div",0),s._UZ(1,"perun-web-apps-menu-buttons-field",1)),2&_&&(s.Q6J("ngIf",l.inMyProfile),s.xp6(1),s.Q6J("items",l.navItems)("size","small"))},dependencies:[d.O5,y.Hw,S.lW,c.BZ,c.fO,c.w1,c.Dz,c.nj,c.ge,c.ev,c.Gk,b.a8,b.dk,b.dn,b.n5,N.L,U.X$],styles:[".align-cards[_ngcontent-%COMP%]{margin:1rem;display:inline-block;vertical-align:top}"]}),p})()},6097:(W,B,t)=>{t.d(B,{t:()=>A});var C=t(32105),c=t(69723),L=t(39646),n=t(48382),e=t(86099),D=t(94650),s=t(94364),i=t(79394);let A=(()=>{class d{constructor(S,b,N,U){this.authzResolverService=S,this.route=b,this.store=N,this.roleService=U,this.roles=new Map,this.showDescription=!0}ngOnInit(){this.outerLoading=!0,this.route.parent.params.subscribe(S=>{S.userId?(this.entityType="USER",this.userId=Number(S.userId)):(this.userId=this.store.getPerunPrincipal().userId,this.entityType="SELF"),this.getData()})}getData(){this.outerLoading=!0,this.roles.clear(),(0,L.of)(this.entityType).pipe((0,e.z)(S=>(0,n.s)(()=>"SELF"===S,(0,L.of)(this.store.getPerunPrincipal().roles),this.authzResolverService.getUserRoles(this.userId)))).subscribe(S=>{const b=Object.keys(S).map(N=>N.toUpperCase());this.roles=this.roleService.prepareRoles(S,b),this.outerLoading=!1})}}return d.\u0275fac=function(S){return new(S||d)(D.Y36(C.Ct),D.Y36(s.gz),D.Y36(c.d6),D.Y36(c.Nj))},d.\u0275cmp=D.Xpm({type:d,selectors:[["app-user-roles"]],hostVars:2,hostBindings:function(S,b){2&S&&D.ekj("router-component",b.true)},decls:1,vars:5,consts:[[3,"outerLoading","roles","entityId","showDescription","entityType","reload","startLoading"]],template:function(S,b){1&S&&(D.TgZ(0,"app-perun-web-apps-roles-page",0),D.NdJ("reload",function(){return b.getData()})("startLoading",function(){return b.outerLoading=!0}),D.qZA()),2&S&&D.Q6J("outerLoading",b.outerLoading)("roles",b.roles)("entityId",b.userId)("showDescription",b.showDescription)("entityType",b.entityType)},dependencies:[i._]}),d})()},46597:(W,B,t)=>{t.d(B,{d:()=>h});var C=t(10036),c=t(32105),L=t(95017),n=t(9244),e=t(54668),D=t(94814),s=t(69723),i=t(54004),A=t(63900),d=t(94650),y=t(65412),S=t(94364),b=t(36895),N=t(4859),U=t(51572),P=t(96214),T=t(64877),v=t(89383);function O(u,p){if(1&u&&(d._UZ(0,"app-users-list",6),d.ALo(1,"translate")),2&u){const o=d.oxw();d.Q6J("noUsersFoundLabel",d.lcZ(1,6,"USER_DETAIL.SETTINGS.ASSOCIATED_USERS.NO_ASSOCIATED_USERS"))("disableRouting",o.disableRouting)("displayedColumns",o.displayedColumns)("selection",o.selection)("tableId",o.tableId)("users",o.associatedUsers)}}function g(u,p){1&u&&d._UZ(0,"mat-spinner",7)}let h=(()=>{class u{constructor(o,_,l,I,f){this.dialog=o,this.router=_,this.authResolver=l,this.userManager=I,this.entityStorageService=f,this.loading=!1,this.selection=new L.Ov(!1,[]),this.associatedUsers=[],this.tableId=C.It,this.displayedColumns=["select","id","user","name","email","logins","organization"]}ngOnInit(){this.loading=!0,this.user=this.entityStorageService.getEntity(),this.refreshTable()}refreshTable(){this.loading=!0,this.userManager.getUsersBySpecificUser(this.user.id).pipe((0,i.U)(o=>o.map(_=>_.id)),(0,A.w)(o=>this.userManager.getRichUsersWithAttributesByIds(o))).subscribe(o=>{this.associatedUsers=o,this.selection.clear(),this.setAuth(),this.loading=!1})}setAuth(){this.addAuth=this.authResolver.isAuthorized("addSpecificUserOwner_User_User_policy",[this.user]),this.removeAuth=this.authResolver.isAuthorized("removeSpecificUserOwner_User_User_policy",[this.user]),this.disableRouting=!this.authResolver.isPerunAdminOrObserver()}onAdd(){const o=(0,n.kZ)();o.width="1250px",o.data={userId:this.user.id,theme:"user-theme",isService:!0,target:"USER"},this.dialog.open(e.l,o).afterClosed().subscribe(l=>{l&&this.refreshTable()})}onRemove(){const o=(0,n.kZ)();o.width="650px",o.data={identities:this.selection.selected,userId:this.user.id,specificUser:this.selection.selected[0],isService:!0,theme:"user-theme",targetTitle:"USER",targetDescription:"SERVICE"},this.dialog.open(D.B,o).afterClosed().subscribe(l=>{l&&(this.authResolver.isAuthorized("getUsersBySpecificUser_User_policy",[this.user])?this.refreshTable():this.router.navigate(["/myProfile"],{queryParamsHandling:"preserve"}))})}}return u.\u0275fac=function(o){return new(o||u)(d.Y36(y.uw),d.Y36(S.F0),d.Y36(s.x4),d.Y36(c.Fv),d.Y36(s.fb))},u.\u0275cmp=d.Xpm({type:u,selectors:[["app-user-settings-associated-users"]],decls:13,vars:12,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[3,"noUsersFoundLabel","disableRouting","displayedColumns","selection","tableId","users",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],[3,"noUsersFoundLabel","disableRouting","displayedColumns","selection","tableId","users"],[1,"mr-auto","ml-auto"]],template:function(o,_){1&o&&(d.TgZ(0,"div")(1,"h1",0),d._uU(2),d.ALo(3,"translate"),d.qZA(),d.TgZ(4,"perun-web-apps-refresh-button",1),d.NdJ("refresh",function(){return _.refreshTable()}),d.qZA(),d.TgZ(5,"button",2),d.NdJ("click",function(){return _.onAdd()}),d._uU(6),d.ALo(7,"translate"),d.qZA(),d.TgZ(8,"button",3),d.NdJ("click",function(){return _.onRemove()}),d._uU(9),d.ALo(10,"translate"),d.qZA(),d.YNc(11,O,2,8,"app-users-list",4),d.qZA(),d.YNc(12,g,1,0,"mat-spinner",5)),2&o&&(d.xp6(2),d.Oqu(d.lcZ(3,6,"USER_DETAIL.SETTINGS.ASSOCIATED_USERS.TITLE")),d.xp6(4),d.hij(" ",d.lcZ(7,8,"USER_DETAIL.SETTINGS.ASSOCIATED_USERS.ADD")," "),d.xp6(2),d.Q6J("disabled",0===_.selection.selected.length),d.xp6(1),d.hij(" ",d.lcZ(10,10,"USER_DETAIL.SETTINGS.ASSOCIATED_USERS.REMOVE")," "),d.xp6(2),d.Q6J("ngIf",!_.loading),d.xp6(1),d.Q6J("ngIf",_.loading))},dependencies:[b.O5,N.lW,U.Ou,P.t,T.C,v.X$]}),u})()},97453:(W,B,t)=>{t.d(B,{R:()=>h});var C=t(95017),c=t(32105),L=t(10036),n=t(9244),e=t(54668),D=t(94814),s=t(69723),i=t(94650),A=t(94364),d=t(65412),y=t(36895),S=t(4859),b=t(51572),N=t(96214),U=t(64877),P=t(89383);function T(u,p){if(1&u){const o=i.EpF();i.TgZ(0,"button",6),i.NdJ("click",function(){i.CHM(o);const l=i.oxw();return i.KtG(l.onAdd())}),i._uU(1),i.ALo(2,"translate"),i.qZA()}2&u&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"USER_DETAIL.SETTINGS.SERVICE_IDENTITIES.CREATE"),"\n"))}function v(u,p){if(1&u){const o=i.EpF();i.TgZ(0,"button",7),i.NdJ("click",function(){i.CHM(o);const l=i.oxw();return i.KtG(l.onRemove())}),i._uU(1),i.ALo(2,"translate"),i.qZA()}if(2&u){const o=i.oxw();i.Q6J("disabled",0===o.selection.selected.length),i.xp6(1),i.hij(" ",i.lcZ(2,2,"USER_DETAIL.SETTINGS.SERVICE_IDENTITIES.DELETE"),"\n")}}function O(u,p){1&u&&i._UZ(0,"mat-spinner",8)}function g(u,p){if(1&u&&(i._UZ(0,"app-users-list",9),i.ALo(1,"translate")),2&u){const o=i.oxw();i.Q6J("noUsersFoundLabel",i.lcZ(1,6,"USER_DETAIL.SETTINGS.SERVICE_IDENTITIES.NO_IDENTITIES"))("displayedColumns",o.displayedColumns)("selection",o.selection)("tableId",o.tableId)("routeToAdmin",o.routeToAdminSection)("users",o.identities)}}let h=(()=>{class u{constructor(o,_,l,I,f,R){this.route=o,this.dialog=_,this.router=l,this.userManager=I,this.authResolver=f,this.store=R,this.loading=!1,this.selection=new C.Ov(!1,[]),this.identities=[],this.tableId=L.Iz,this.displayedColumns=["select","id","user","name"],this.routeToAdminSection=!0,this.targetTitle="SERVICE",this.targetDescription="SERVICE"}ngOnInit(){this.loading=!0,this.route.parent.params.subscribe(o=>{this.userId=Number(o.userId),this.userId||(this.targetTitle="SERVICE",this.targetDescription="SELF",this.userId=this.store.getPerunPrincipal().userId,this.routeToAdminSection=!1),this.setAuthRights(),this.refreshTable()})}refreshTable(){this.loading=!0,this.userManager.getSpecificUsersByUser(this.userId).subscribe(o=>{this.identities=o,this.selection.clear(),this.loading=!1})}setAuthRights(){this.addIdentity=this.authResolver.isPerunAdmin(),this.removeIdentity=this.authResolver.isAuthorized("removeSpecificUserOwner_User_User_policy",[{id:this.userId,beanName:"User"}])}onAdd(){const o=(0,n.kZ)();o.width="1250px",o.data={userId:this.userId,theme:"user-theme",isService:!1,target:this.targetTitle},this.dialog.open(e.l,o).afterClosed().subscribe(l=>{l&&this.refreshTable()})}onRemove(){const o=(0,n.kZ)();o.width="650px",o.data={identities:this.selection.selected,userId:this.userId,specificUser:this.selection.selected[0],theme:"user-theme",targetTitle:this.targetTitle,targetDescription:this.targetDescription},this.dialog.open(D.B,o).afterClosed().subscribe(l=>{l&&this.refreshTable()})}}return u.\u0275fac=function(o){return new(o||u)(i.Y36(A.gz),i.Y36(d.uw),i.Y36(A.F0),i.Y36(c.Fv),i.Y36(s.x4),i.Y36(s.d6))},u.\u0275cmp=i.Xpm({type:u,selectors:[["app-user-settings-service-identities"]],decls:8,vars:7,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","class","mr-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],["color","warn","class","mr-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],[3,"noUsersFoundLabel","displayedColumns","selection","tableId","routeToAdmin","users",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],[3,"noUsersFoundLabel","displayedColumns","selection","tableId","routeToAdmin","users"]],template:function(o,_){1&o&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.qZA(),i.TgZ(3,"perun-web-apps-refresh-button",1),i.NdJ("refresh",function(){return _.refreshTable()}),i.qZA(),i.YNc(4,T,3,3,"button",2),i.YNc(5,v,3,4,"button",3),i.YNc(6,O,1,0,"mat-spinner",4),i.YNc(7,g,2,8,"app-users-list",5)),2&o&&(i.xp6(1),i.Oqu(i.lcZ(2,5,"USER_DETAIL.SETTINGS.SERVICE_IDENTITIES.TITLE")),i.xp6(3),i.Q6J("ngIf",_.addIdentity),i.xp6(1),i.Q6J("ngIf",_.removeIdentity),i.xp6(1),i.Q6J("ngIf",_.loading),i.xp6(1),i.Q6J("ngIf",!_.loading))},dependencies:[y.O5,S.lW,b.Ou,N.t,U.C,P.X$]}),u})()},38338:(W,B,t)=>{t.r(B),t.d(B,{UsersModule:()=>lt});var C=t(36895),c=t(94364),L=t(74837),n=t(85985),e=t(94650),D=t(61283);let s=(()=>{class r{}return r.\u0275fac=function(a){return new(a||r)},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-user-settings"]],hostVars:2,hostBindings:function(a,m){2&a&&e.ekj("router-component",m.true)},decls:1,vars:0,template:function(a,m){1&a&&e._UZ(0,"app-animated-router-outlet")},dependencies:[D.A]}),r})();var i=t(32105),A=t(51572),d=t(71135);function y(r,E){1&r&&e._UZ(0,"mat-spinner",2)}function S(r,E){if(1&r&&(e.TgZ(0,"div"),e._UZ(1,"perun-web-apps-menu-buttons-field",3),e.qZA()),2&r){const a=e.oxw();e.xp6(1),e.Q6J("items",a.navItems)("size","small")}}let b=(()=>{class r{constructor(a,m){this.route=a,this.userManager=m,this.navItems=[],this.loading=!1}ngOnInit(){window.location.pathname.startsWith("/admin")?(this.loading=!0,this.route.parent.parent.params.subscribe(a=>{const m=Number(a.userId);this.userManager.getUserById(m).subscribe(M=>{this.isServiceUser=M.serviceUser,this.initNavItems(),this.loading=!1},()=>this.loading=!1)})):this.initNavItems()}initNavItems(){this.navItems=[],window.location.pathname.startsWith("/admin")||this.navItems.push({cssIcon:"perun-settings2",url:"/myProfile/settings/passwordReset",label:"MENU_ITEMS.USER.PASSWORD_RESET",style:"user-btn"},{cssIcon:"perun-settings1",url:"/myProfile/settings/guiConfig",label:"MENU_ITEMS.USER.GUI_CONFIG",style:"user-btn"})}}return r.\u0275fac=function(a){return new(a||r)(e.Y36(c.gz),e.Y36(i.Fv))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-user-settings-overview"]],hostVars:2,hostBindings:function(a,m){2&a&&e.ekj("router-component",m.true)},decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"items","size"]],template:function(a,m){1&a&&(e.YNc(0,y,1,0,"mat-spinner",0),e.YNc(1,S,2,2,"div",1)),2&a&&(e.Q6J("ngIf",m.loading),e.xp6(1),e.Q6J("ngIf",!m.loading))},dependencies:[C.O5,A.Ou,d.L]}),r})();var N=t(98973),U=t(85147),P=t(9244),T=t(6335),v=t(3238),O=t(59549),g=t(84385),h=t(89383);function u(r,E){if(1&r&&(e.TgZ(0,"mat-option",5),e._uU(1),e.qZA()),2&r){const a=E.$implicit;e.Q6J("value",a),e.xp6(1),e.hij(" ",a," ")}}let p=(()=>{class r{constructor(a){this.guiConfigService=a,this.tablePageSizeOptions=P.f7}ngOnInit(){this.preferredTablePageSize=this.guiConfigService.getNumber(T.Rc)}updatePreferredTablePageSize(){this.guiConfigService.setNumber(T.Rc,this.preferredTablePageSize)}}return r.\u0275fac=function(a){return new(a||r)(e.Y36(T.Ng))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-user-settings-app-configuration"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[1,"col-12","col-lg-6","p-0"],[1,"w-100"],[3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(a,m){1&a&&(e.TgZ(0,"h1",0),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.TgZ(3,"div",1)(4,"mat-form-field",2)(5,"mat-label"),e._uU(6),e.ALo(7,"translate"),e.qZA(),e.TgZ(8,"mat-select",3),e.NdJ("valueChange",function(){return m.updatePreferredTablePageSize()})("valueChange",function(Y){return m.preferredTablePageSize=Y}),e.YNc(9,u,2,2,"mat-option",4),e.qZA()()()),2&a&&(e.xp6(1),e.Oqu(e.lcZ(2,4,"USER_DETAIL.SETTINGS.GUI_CONFIG.TITLE")),e.xp6(5),e.Oqu(e.lcZ(7,6,"USER_DETAIL.SETTINGS.GUI_CONFIG.PREF_TABLE_PAGE_SIZE")),e.xp6(2),e.Q6J("value",m.preferredTablePageSize),e.xp6(1),e.Q6J("ngForOf",m.tablePageSizeOptions))},dependencies:[C.sg,v.ey,O.KE,O.hX,g.gD,h.X$]}),r})();var o=t(17755),_=t(69723),l=t(77968),I=t(97392),f=t(10266),R=t(4235),Z=t(94391),x=t(31359);const z=function(){return{color:"black"}},H=function(){return["/myProfile"]};function $(r,E){if(1&r&&(e.TgZ(0,"div",1),e._UZ(1,"perun-web-apps-back-button"),e.TgZ(2,"div",2),e._UZ(3,"mat-icon",3),e.ALo(4,"translate"),e.TgZ(5,"div",4)(6,"div",5)(7,"a",6),e.NdJ("auxclick",function(m){return m.preventDefault()}),e._uU(8),e.ALo(9,"userFullName"),e.qZA(),e.TgZ(10,"span",7),e._uU(11),e.qZA()(),e.TgZ(12,"span",8),e._uU(13),e.ALo(14,"translate"),e.ALo(15,"translate"),e.qZA()()(),e._UZ(16,"app-animated-router-outlet"),e.qZA()),2&r){const a=e.oxw();e.xp6(3),e.s9C("matTooltip",e.lcZ(4,9,"MENU_ITEMS.USER.ENTITY")),e.Q6J("ngStyle",e.DdM(17,z)),e.xp6(4),e.Q6J("perunWebAppsMiddleClickRouterLink",e.DdM(18,H))("routerLink",e.DdM(19,H)),e.xp6(1),e.hij(" ",e.lcZ(9,11,a.user)," "),e.xp6(3),e.hij(" \xa0#",a.user.id," "),e.xp6(2),e.lnq(" ",e.lcZ(14,13,"MENU_ITEMS.USER.ENTITY"),", ",e.lcZ(15,15,"MENU_ITEMS.USER.USER_TYPE"),": ",a.getUserType()," ")}}let k=(()=>{class r{constructor(a,m,M,Y){this.sideMenuService=a,this.store=m,this.entityStore=M,this.router=Y}ngOnInit(){this.path=this.router.url,this.router.events.subscribe(()=>{this.path=this.router.url}),this.principal=this.store.getPerunPrincipal(),this.user=this.principal.user,this.entityStore.setEntity(this.user),this.sideMenuService.setUserItems([])}getUserType(){return this.user.serviceUser?"Service":"Person"}}return r.\u0275fac=function(a){return new(a||r)(e.Y36(l.D),e.Y36(_.d6),e.Y36(_.fb),e.Y36(c.F0))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-user-profile"]],decls:1,vars:1,consts:[["class","container-fluid pl-xl-5 pr-xl-5 user-theme",4,"ngIf"],[1,"container-fluid","pl-xl-5","pr-xl-5","user-theme"],[1,"d-flex","page-title-headtitle"],["svgIcon","perun-user-dark",1,"perun-icon","perun-icon-detail",3,"matTooltip","ngStyle"],[1,"page-title-block"],[1,"page-title-headline","d-flex","align-items-center"],[1,"user-link",3,"perunWebAppsMiddleClickRouterLink","routerLink","auxclick"],[1,"text-muted"],[1,"mt-1","entity-info"]],template:function(a,m){1&a&&e.YNc(0,$,17,20,"div",0),2&a&&e.Q6J("ngIf",void 0!==m.user)},dependencies:[C.O5,C.PC,c.yS,I.Hw,f.gM,R.W,Z.YH,Z.QG,D.A,h.X$,x.d]}),r})();var q=t(6097),ee=t(97453),te=t(69024),ne=t(29862),G=t(65412),F=t(4859);function se(r,E){1&r&&e._UZ(0,"mat-spinner",11)}function ie(r,E){if(1&r){const a=e.EpF();e.TgZ(0,"button",12),e.NdJ("click",function(){e.CHM(a);const M=e.oxw(2);return e.KtG(M.editUser())}),e.TgZ(1,"mat-icon"),e._uU(2,"edit"),e.qZA()()}}const ae=function(){return{color:"black"}},V=function(r){return["/myProfile/service-identities",r]};function re(r,E){if(1&r&&(e.TgZ(0,"div",1),e._UZ(1,"perun-web-apps-back-button"),e.YNc(2,se,1,0,"mat-spinner",2),e.TgZ(3,"div",3),e._UZ(4,"mat-icon",4),e.ALo(5,"translate"),e.TgZ(6,"div",5)(7,"div",6)(8,"a",7),e.NdJ("auxclick",function(m){return m.preventDefault()}),e._uU(9),e.ALo(10,"userFullName"),e.qZA(),e.TgZ(11,"span",8),e._uU(12),e.qZA(),e.YNc(13,ie,3,0,"button",9),e.qZA(),e.TgZ(14,"div"),e._uU(15),e.ALo(16,"translate"),e.qZA(),e.TgZ(17,"span",10),e._uU(18),e.ALo(19,"translate"),e.ALo(20,"translate"),e.qZA()()(),e._UZ(21,"app-animated-router-outlet"),e.qZA()),2&r){const a=e.oxw();e.xp6(2),e.Q6J("ngIf",a.loading),e.xp6(2),e.s9C("matTooltip",e.lcZ(5,13,"MENU_ITEMS.USER.ENTITY")),e.Q6J("ngStyle",e.DdM(23,ae)),e.xp6(4),e.Q6J("perunWebAppsMiddleClickRouterLink",e.VKq(24,V,a.user.id.toString()))("routerLink",e.VKq(26,V,a.user.id)),e.xp6(1),e.hij(" ",e.lcZ(10,15,a.user)," "),e.xp6(3),e.hij(" \xa0#",a.user.id," "),e.xp6(1),e.Q6J("ngIf",a.authResolver.isPerunAdmin()),e.xp6(2),e.AsE("",e.lcZ(16,17,"ADMIN_USER.UUID"),": ",a.user.uuid,""),e.xp6(3),e.lnq(" ",e.lcZ(19,19,"MENU_ITEMS.USER.ENTITY"),", ",e.lcZ(20,21,"MENU_ITEMS.USER.USER_TYPE"),": ",a.getUserType()," ")}}let oe=(()=>{class r{constructor(a,m,M,Y,w,J,Q){this.sideMenuService=a,this.usersService=m,this.sideMenuItemService=M,this.route=Y,this.dialog=w,this.authResolver=J,this.entityStorageService=Q,this.loading=!1}ngOnInit(){this.loading=!0,this.route.params.subscribe(a=>{const m=Number(a.userId);this.entityStorageService.setEntity({id:m,beanName:"User"}),this.usersService.getUserById(m).subscribe(M=>{this.user=M;const Y=this.sideMenuItemService.parseServiceIdentity(M);this.sideMenuService.setUserItems([Y]),this.loading=!1},()=>this.loading=!1)})}getUserType(){return this.user.serviceUser?"Service":"Person"}editUser(){const a=(0,P.kZ)();a.width="450px",a.data={theme:"admin-theme",user:this.user},this.dialog.open(ne.x,a).afterClosed().subscribe(M=>{M&&this.usersService.getUserById(this.user.id).subscribe(Y=>{this.user=Y})})}}return r.\u0275fac=function(a){return new(a||r)(e.Y36(l.D),e.Y36(i.Fv),e.Y36(te.V),e.Y36(c.gz),e.Y36(G.uw),e.Y36(_.x4),e.Y36(_.fb))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-service-identity-detail-page"]],decls:1,vars:1,consts:[["class","container-fluid pl-xl-5 pr-xl-5 user-theme",4,"ngIf"],[1,"container-fluid","pl-xl-5","pr-xl-5","user-theme"],["class","mr-auto ml-auto",4,"ngIf"],[1,"d-flex","page-title-headtitle"],["svgIcon","perun-service-identity",1,"perun-icon","perun-icon-detail",3,"matTooltip","ngStyle"],[1,"page-title-block"],[1,"page-title-headline","d-flex","align-items-center"],[1,"user-link",3,"perunWebAppsMiddleClickRouterLink","routerLink","auxclick"],[1,"text-muted"],["mat-icon-button","",3,"click",4,"ngIf"],[1,"mt-1","entity-info"],[1,"mr-auto","ml-auto"],["mat-icon-button","",3,"click"]],template:function(a,m){1&a&&e.YNc(0,re,22,28,"div",0),2&a&&e.Q6J("ngIf",void 0!==m.user)},dependencies:[C.O5,C.PC,c.yS,I.Hw,F.lW,A.Ou,f.gM,R.W,Z.YH,Z.QG,D.A,h.X$,x.d]}),r})(),le=(()=>{class r{constructor(a){this.entityStorageService=a,this.navItems=[]}ngOnInit(){this.serviceAccount=this.entityStorageService.getEntity(),this.initNavItems()}initNavItems(){this.navItems=[{cssIcon:"perun-manager",url:`/myProfile/service-identities/${this.serviceAccount.id}/associated-users`,label:"MENU_ITEMS.USER.ASSOCIATED_USERS",style:"user-btn"},{cssIcon:"perun-notification",url:`/myProfile/service-identities/${this.serviceAccount.id}/mailing-lists`,label:"MENU_ITEMS.USER.MAILING_LISTS",style:"user-btn"},{cssIcon:"perun-statistics",url:`/myProfile/service-identities/${this.serviceAccount.id}/data-quotas`,label:"MENU_ITEMS.USER.DATA_QUOTAS",style:"user-btn"},{cssIcon:"perun-authentication",url:`/myProfile/service-identities/${this.serviceAccount.id}/authentication`,label:"MENU_ITEMS.USER.AUTHENTICATION",style:"user-btn"}]}}return r.\u0275fac=function(a){return new(a||r)(e.Y36(_.fb))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-service-identity-overview"]],decls:1,vars:2,consts:[[3,"items","size"]],template:function(a,m){1&a&&e._UZ(0,"perun-web-apps-menu-buttons-field",0),2&a&&e.Q6J("items",m.navItems)("size","small")},dependencies:[d.L]}),r})();var _e=t(46597),ce=t(74006);let pe=(()=>{class r{constructor(a){this.entityStorageService=a}ngOnInit(){this.user=this.entityStorageService.getEntity()}}return r.\u0275fac=function(a){return new(a||r)(e.Y36(_.fb))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-perun-web-apps-user-settings-mailing-lists"]],decls:1,vars:2,consts:[[3,"user","isService"]],template:function(a,m){1&a&&e._UZ(0,"perun-web-apps-mailing-lists",0),2&a&&e.Q6J("user",m.user)("isService",!0)},dependencies:[ce.E]}),r})();var ue=t(2541);let de=(()=>{class r{constructor(a){this.entityStorageService=a}ngOnInit(){this.user=this.entityStorageService.getEntity()}}return r.\u0275fac=function(a){return new(a||r)(e.Y36(_.fb))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-perun-web-apps-user-settings-data-quotas"]],decls:1,vars:1,consts:[[3,"user"]],template:function(a,m){1&a&&e._UZ(0,"perun-web-apps-data-quotas",0),2&a&&e.Q6J("user",m.user)},dependencies:[ue.m]}),r})(),me=(()=>{class r{constructor(a){this.entityStorageService=a,this.navItems=[]}ngOnInit(){this.serviceAccount=this.entityStorageService.getEntity(),this.initNavItems()}initNavItems(){this.navItems=[{cssIcon:"perun-logins",url:`/myProfile/service-identities/${this.serviceAccount.id}/authentication/logins`,label:"MENU_ITEMS.USER.LOGINS",style:"user-btn"},{cssIcon:"perun-certificates",url:`/myProfile/service-identities/${this.serviceAccount.id}/authentication/certificates`,label:"MENU_ITEMS.USER.CERTIFICATES",style:"user-btn"},{cssIcon:"perun-key",url:`/myProfile/service-identities/${this.serviceAccount.id}/authentication/ssh-keys`,label:"MENU_ITEMS.USER.SSH_KEYS",style:"user-btn"}]}}return r.\u0275fac=function(a){return new(a||r)(e.Y36(_.fb))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-service-identity-authentication-overview"]],decls:1,vars:2,consts:[[3,"items","size"]],template:function(a,m){1&a&&e._UZ(0,"perun-web-apps-menu-buttons-field",0),2&a&&e.Q6J("items",m.navItems)("size","small")},dependencies:[d.L]}),r})();var K=t(24006),ge=t(28499),he=t(95406);function fe(r,E){if(1&r&&(e.TgZ(0,"div",7),e._UZ(1,"app-login-password-form-with-generate-option",8),e.qZA()),2&r){const a=e.oxw();e.xp6(1),e.Q6J("formGroup",a.formGroup)("filteredNamespace",a.data.filteredNamespaces)}}function Ee(r,E){1&r&&e._UZ(0,"mat-spinner",9)}let Ie=(()=>{class r{constructor(a,m,M,Y,w,J,Q,_t,ct,pt){this.dialogRef=a,this.data=m,this.formBuilder=M,this.usersManagerService=Y,this.membersManagerService=w,this.attributesManagerService=J,this.apiRequestConfiguration=Q,this.notificator=_t,this.translate=ct,this.cd=pt,this.processing=!1}ngOnInit(){this.userId=this.data.userId,this.formGroup=this.formBuilder.group({namespaceCtrl:["Not selected"],loginCtrl:["",[K.kI.pattern("^[a-z][a-z0-9_-]+$"),K.kI.maxLength(15),K.kI.minLength(2)]],passwordCtrl:["",K.kI.required,[(0,ge.yT)(null,this.usersManagerService,this.apiRequestConfiguration)]],passwordAgainCtrl:[""],generatePasswordCtrl:[!0]},{validators:P.dN.passwordMatchValidator})}ngAfterViewInit(){this.cd.detectChanges()}onSetLogin(){this.processing=!0;const a=this.formGroup.get("namespaceCtrl").value.toLowerCase(),m=this.formGroup.get("loginCtrl").value;if(m)this.setLogin(a,m);else{const M=`urn:perun:user:attribute-def:def:login-namespace:${a}`;this.attributesManagerService.getUserAttributeByName(this.userId,"urn:perun:user:attribute-def:core:lastName").subscribe(Y=>{this.usersManagerService.generateAccountForName(a,Y.value).subscribe(J=>{this.setLogin(a,J[M])},()=>this.processing=!1)})}}setLogin(a,m){this.usersManagerService.setLogin(this.userId,m,a).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.SET_LOGIN.SUCCESS_LOGIN")),this.setPassword()},()=>{this.processing=!1})}setPassword(){const a=this.formGroup.get("namespaceCtrl").value.toLowerCase(),m=this.formGroup.get("passwordCtrl").value;if(this.formGroup.get("generatePasswordCtrl").value){if(!this.formGroup.get("loginCtrl").value)return;this.usersManagerService.reserveRandomPassword(this.userId,a).subscribe(()=>{this.usersManagerService.validatePasswordForUser(this.userId,a).subscribe(()=>{this.dialogRef.close(!0)},()=>{this.processing=!1})},()=>{this.processing=!1})}else this.usersManagerService.reservePasswordForUser({user:this.userId,namespace:a,password:m}).subscribe(()=>{this.usersManagerService.validatePasswordForUser(this.userId,a).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.SET_LOGIN.SUCCESS_PASSWORD")),this.dialogRef.close(!0)},()=>{this.processing=!1})},()=>{this.processing=!1})}onCancel(){this.dialogRef.close(!1)}}return r.\u0275fac=function(a){return new(a||r)(e.Y36(G.so),e.Y36(G.WI),e.Y36(K.QS),e.Y36(i.Fv),e.Y36(i.uq),e.Y36(i.H8),e.Y36(_.F5),e.Y36(_.V6),e.Y36(h.sK),e.Y36(e.sBO))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-perun-web-apps-set-login-dialog"]],decls:13,vars:12,consts:[[1,"vo-theme"],[1,"mat-dialog-title"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],["mat-dialog-content","",1,"dialog-container"],[3,"formGroup","filteredNamespace"],[1,"ml-auto","mr-auto"]],template:function(a,m){1&a&&(e.TgZ(0,"div",0)(1,"h1",1),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.YNc(4,fe,2,2,"div",2),e.YNc(5,Ee,1,0,"mat-spinner",3),e.TgZ(6,"div",4)(7,"button",5),e.NdJ("click",function(){return m.onCancel()}),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"button",6),e.NdJ("click",function(){return m.onSetLogin()}),e._uU(11),e.ALo(12,"translate"),e.qZA()()()),2&a&&(e.xp6(2),e.Oqu(e.lcZ(3,6,"DIALOGS.SET_LOGIN.TITLE")),e.xp6(2),e.Q6J("ngIf",!m.processing),e.xp6(1),e.Q6J("ngIf",m.processing),e.xp6(3),e.hij(" ",e.lcZ(9,8,"DIALOGS.SET_LOGIN.CANCEL")," "),e.xp6(2),e.Q6J("disabled","Not selected"===m.formGroup.get("namespaceCtrl").value||m.formGroup.invalid||m.formGroup.pending||m.processing),e.xp6(1),e.hij(" ",e.lcZ(12,10,"DIALOGS.SET_LOGIN.SET_LOGIN")," "))},dependencies:[C.O5,K.JL,K.sg,F.lW,G.xY,G.H8,A.Ou,he.r,h.X$]}),r})();var j=t(96214),Te=t(53599);const ve=["logins"];let Ue=(()=>{class r{constructor(a,m){this.dialog=a,this.entityStorageService=m,this.filteredNamespaces=[]}ngOnInit(){this.userId=this.entityStorageService.getEntity().id}onAdd(){const a=(0,P.kZ)();a.width="500px",a.data={userId:this.userId,filteredNamespaces:this.filteredNamespaces},this.dialog.open(Ie,a).afterClosed().subscribe(M=>{M&&this.logins.refreshTable()})}}return r.\u0275fac=function(a){return new(a||r)(e.Y36(G.uw),e.Y36(_.fb))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-perun-web-apps-user-settings-logins"]],viewQuery:function(a,m){if(1&a&&e.Gf(ve,5),2&a){let M;e.iGM(M=e.CRH())&&(m.logins=M.first)}},decls:9,vars:7,consts:[[1,"page-title"],[3,"refresh"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],[3,"authenticationPage","filteredNamespaces"],["logins",""]],template:function(a,m){if(1&a){const M=e.EpF();e.TgZ(0,"h1",0),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.TgZ(3,"perun-web-apps-refresh-button",1),e.NdJ("refresh",function(){e.CHM(M);const w=e.MAs(8);return e.KtG(w.refreshTable())}),e.qZA(),e.TgZ(4,"button",2),e.NdJ("click",function(){return m.onAdd()}),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"perun-web-apps-password-reset",3,4),e.NdJ("filteredNamespaces",function(w){return m.filteredNamespaces=w}),e.qZA()}2&a&&(e.xp6(1),e.Oqu(e.lcZ(2,3,"USER_DETAIL.SETTINGS.LOGINS.TITLE")),e.xp6(4),e.hij(" ",e.lcZ(6,5,"USER_DETAIL.SETTINGS.LOGINS.ADD"),"\n"),e.xp6(2),e.Q6J("authenticationPage",!0))},dependencies:[F.lW,j.t,Te.N,h.X$]}),r})(),Ce=(()=>{class r{}return r.\u0275fac=function(a){return new(a||r)},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-service-identity-authentication"]],hostVars:2,hostBindings:function(a,m){2&a&&e.ekj("router-component",m.true)},decls:1,vars:0,template:function(a,m){1&a&&e._UZ(0,"app-animated-router-outlet")},dependencies:[D.A]}),r})();var Ae=t(64080),Se=t(95017),De=t(21029),be=t(53984);const Oe=["list"];function Me(r,E){1&r&&e._UZ(0,"mat-spinner",5)}const Re=function(r){return[r]};function Pe(r,E){if(1&r&&e._UZ(0,"perun-web-apps-attributes-list",6,7),2&r){const a=e.oxw();e.Q6J("attributes",e.VKq(2,Re,a.certificates))("selection",a.selection)}}let Le=(()=>{class r{constructor(a,m,M){this.entityStorageService=a,this.attributesManagerService=m,this.dialog=M,this.selection=new Se.Ov(!0,[])}ngOnInit(){this.userId=this.entityStorageService.getEntity().id,this.refresh()}refresh(){this.loading=!0,this.attributesManagerService.getUserAttributeByName(this.userId,Ae.r.USER_DEF_CERTIFICATES).subscribe(a=>{this.certificates=a,this.selection.clear(),this.loading=!1})}save(){this.list.updateMapAttributes();const a=(0,P.kZ)();a.width="450px",a.data={entityId:this.userId,entity:"user",attributes:this.selection.selected},this.dialog.open(De.wA,a).afterClosed().subscribe(M=>{M&&this.refresh()})}}return r.\u0275fac=function(a){return new(a||r)(e.Y36(_.fb),e.Y36(i.H8),e.Y36(G.uw))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-service-identity-certificates"]],viewQuery:function(a,m){if(1&a&&e.Gf(Oe,5),2&a){let M;e.iGM(M=e.CRH())&&(m.list=M.first)}},decls:9,vars:9,consts:[[1,"page-title"],[1,"mt-2",3,"refresh"],["color","accent","mat-flat-button","",1,"mr-2","mt-2",3,"disabled","click"],["class","ml-auto mr-auto",4,"ngIf"],[3,"attributes","selection",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"attributes","selection"],["list",""]],template:function(a,m){1&a&&(e.TgZ(0,"h1",0),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.TgZ(3,"perun-web-apps-refresh-button",1),e.NdJ("refresh",function(){return m.refresh()}),e.qZA(),e.TgZ(4,"button",2),e.NdJ("click",function(){return m.save()}),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.YNc(7,Me,1,0,"mat-spinner",3),e.YNc(8,Pe,2,4,"perun-web-apps-attributes-list",4)),2&a&&(e.xp6(1),e.Oqu(e.lcZ(2,5,"USER_DETAIL.SETTINGS.CERTIFICATES.TITLE")),e.xp6(3),e.Q6J("disabled",0===m.selection.selected.length),e.xp6(1),e.hij(" ",e.lcZ(6,7,"USER_DETAIL.SETTINGS.CERTIFICATES.SAVE"),"\n"),e.xp6(2),e.Q6J("ngIf",m.loading),e.xp6(1),e.Q6J("ngIf",!m.loading))},dependencies:[C.O5,F.lW,A.Ou,j.t,be.p,h.X$]}),r})();var ye=t(51403);const Ne=[{path:"",component:k,children:[{path:"",component:o.Z,data:{animation:"UserOverviewPage"}},{path:"attributes",component:N.u,data:{animation:"UserAttributesPage"}},{path:"organizations",component:L.j,data:{animation:"UserOrganizationsPage",showPrincipal:!0}},{path:"groups",component:n.u,data:{animation:"UserGroupsPage",showPrincipal:!0}},{path:"roles",component:q.t,data:{animation:"UserRolesPage"}},{path:"service-identities",component:ee.R,data:{animation:"UserServiceIdentities"}},{path:"bans",component:ye.Q,data:{animation:"UserBansPage"}},{path:"settings",component:s,children:[{path:"",component:b,data:{animation:"UserSettingsOverviewPage"}},{path:"passwordReset",component:U.Nj,data:{animation:"PasswordResetPage"}},{path:"guiConfig",component:p,data:{animation:"UserAppConfigurationPage"}}]}]},{path:"service-identities/:userId",component:oe,children:[{path:"",component:le},{path:"associated-users",component:_e.d},{path:"authentication",component:Ce,children:[{path:"",component:me},{path:"logins",component:Ue},{path:"certificates",component:Le},{path:"ssh-keys",component:U.N7}]},{path:"mailing-lists",component:pe},{path:"data-quotas",component:de}]}];let Ze=(()=>{class r{}return r.\u0275fac=function(a){return new(a||r)},r.\u0275mod=e.oAB({type:r}),r.\u0275inj=e.cJS({imports:[c.Bz.forChild(Ne),c.Bz]}),r})();var Be=t(47957),xe=t(284),Ye=t(23267),We=t(37084),Ke=t(96308),we=t(30671),Ge=t(3848),Fe=t(35423),Je=t(56709),Qe=t(17009),ze=t(73162),He=t(90455),Ve=t(99602),je=t(71948),Xe=t(44850),$e=t(98739),X=t(73546),ke=t(86257),qe=t(73555),et=t(77331),tt=t(28255),nt=t(67376),st=t(63189),it=t(42673),at=t(11243),rt=t(19516),ot=t(14264);let lt=(()=>{class r{constructor(a){this.translate=a,a.addLangs(["en","cs"])}}return r.\u0275fac=function(a){return new(a||r)(e.LFG(h.sK))},r.\u0275mod=e.oAB({type:r}),r.\u0275inj=e.cJS({imports:[C.ez,Ze,Be.Bb,xe.c,O.lN,K.UX,K.u5,I.Ps,Ye.SJ,We.To,h.aw.forChild({}),F.ot,Ke.JX,we.p0,Ge.Nh,Fe.dp,F.ot,Je.p9,G.Is,g.LD,Qe.ZX,A.Cq,ze.Cv,f.AV,He.rP,Ve.FA,v.XK,je.Fk,Xe.t,v.si,$e.TU,X.QW,ke.T5,qe._t,X.QW,et.Hi,tt.Tx,nt.Cl,st.r,it.g,U.ez,at.r,rt.d4,ot.m]}),r})()}}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/338.eece52703f68413f.js b/dist/apps/admin-gui/338.eece52703f68413f.js new file mode 100644 index 000000000..2f091e95f --- /dev/null +++ b/dist/apps/admin-gui/338.eece52703f68413f.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin_gui=self.webpackChunkadmin_gui||[]).push([[338],{54668:(W,Z,t)=>{t.d(Z,{l:()=>p});var C=t(65412),c=t(61744),L=t(81591),n=t(10036),e=t(95017),D=t(64080),s=t(24006),i=t(94650),A=t(89383),d=t(36895),y=t(59549),S=t(284),b=t(97392),N=t(4859),U=t(51572),P=t(98380),T=t(64877);function v(o,_){if(1&o&&i._UZ(0,"app-users-list",14),2&o){const l=i.oxw(2);i.Q6J("displayedColumns",l.displayedColumns)("selection",l.selection)("tableId",l.tableId)("disableRouting",!0)("users",l.identities)}}function O(o,_){if(1&o&&(i.TgZ(0,"div"),i.YNc(1,v,1,5,"app-users-list",13),i.qZA()),2&o){const l=i.oxw();i.xp6(1),i.Q6J("ngIf",void 0!==l.identities&&l.identities.length>0)}}function g(o,_){1&o&&(i.TgZ(0,"perun-web-apps-alert",15),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&o&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"DIALOGS.CONNECT_IDENTITY.SEARCH_HINT")," "))}function h(o,_){1&o&&(i.TgZ(0,"perun-web-apps-alert",16),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&o&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"DIALOGS.CONNECT_IDENTITY.NO_IDENTITIES")," "))}function u(o,_){1&o&&i._UZ(0,"mat-spinner",17)}let p=(()=>{class o{constructor(l,I,f,R,B,x){this.dialogRef=l,this.data=I,this.userManager=f,this.storeService=R,this.notificator=B,this.translate=x,this.loading=!1,this.selection=new e.Ov(!1,[]),this.firstSearchDone=!1,this.displayedColumns=["select","id","user","name","email","logins","organization"],this.tableId=n.Iz}ngOnInit(){this.target=this.data.target,this.theme=this.data.theme,this.userId=this.data.userId,this.isService=this.data.isService,this.searchCtrl=new s.p4("",[s.kI.required,s.kI.pattern(".*[\\S]+.*")])}onAdd(){let l,I;this.loading=!0,this.isService?(l=this.selection.selected[0].id,I=this.userId):(l=this.userId,I=this.selection.selected[0].id),this.userManager.addSpecificUserOwner(l,I).subscribe({next:()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.CONNECT_IDENTITY.SUCCESS")),this.dialogRef.close(!0)},error:()=>this.loading=!1})}onCancel(){this.dialogRef.close(!1)}onSearchByString(){if(this.searchCtrl.invalid)return void this.searchCtrl.markAllAsTouched();this.loading=!0,this.firstSearchDone=!0;let l=[D.r.USER_DEF_ORGANIZATION,D.r.USER_DEF_PREFERRED_MAIL];l=l.concat(this.storeService.getLoginAttributeNames()),this.userManager.findRichUsersWithAttributes(this.searchCtrl.value,l).subscribe(I=>{this.identities=this.filterIdentities(I),this.loading=!1},()=>{this.loading=!1})}onKeyInput(l){"Enter"===l.key&&this.onSearchByString()}filterIdentities(l){return l.filter(this.isService?I=>!I.serviceUser:I=>I.serviceUser)}}return o.\u0275fac=function(l){return new(l||o)(i.Y36(C.so),i.Y36(C.WI),i.Y36(c.Fv),i.Y36(L.d6),i.Y36(L.V6),i.Y36(A.sK))},o.\u0275cmp=i.Xpm({type:o,selectors:[["app-connect-identity-dialog"]],decls:25,vars:25,consts:[[3,"keyup"],["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],[1,"mr-2","search-field","no-border-mat-input"],["matInput","","autocomplete","false",3,"placeholder","formControl"],["color","primary","mat-flat-button","",1,"mr-2","search-btn",3,"disabled","click"],[4,"ngIf"],["alert_type","info",4,"ngIf"],["alert_type","warn",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[3,"displayedColumns","selection","tableId","disableRouting","users",4,"ngIf"],[3,"displayedColumns","selection","tableId","disableRouting","users"],["alert_type","info"],["alert_type","warn"],[1,"ml-auto","mr-auto"]],template:function(l,I){1&l&&(i.TgZ(0,"div",0),i.NdJ("keyup",function(R){return I.onKeyInput(R)}),i.TgZ(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"div",2)(5,"mat-form-field",3),i._UZ(6,"input",4),i.ALo(7,"translate"),i.TgZ(8,"mat-error"),i._uU(9),i.ALo(10,"translate"),i.qZA()(),i.TgZ(11,"button",5),i.NdJ("click",function(){return I.onSearchByString()}),i.TgZ(12,"mat-icon"),i._uU(13,"search"),i.qZA()(),i.YNc(14,O,2,1,"div",6),i.YNc(15,g,3,3,"perun-web-apps-alert",7),i.YNc(16,h,3,3,"perun-web-apps-alert",8),i.qZA(),i.YNc(17,u,1,0,"mat-spinner",9),i.TgZ(18,"div",10)(19,"button",11),i.NdJ("click",function(){return I.onCancel()}),i._uU(20),i.ALo(21,"translate"),i.qZA(),i.TgZ(22,"button",12),i.NdJ("click",function(){return I.onAdd()}),i._uU(23),i.ALo(24,"translate"),i.qZA()()()),2&l&&(i.Tol(I.theme),i.xp6(2),i.Oqu(i.lcZ(3,15,"DIALOGS.CONNECT_IDENTITY.TITLE_"+I.target)),i.xp6(4),i.s9C("placeholder",i.lcZ(7,17,"DIALOGS.CONNECT_IDENTITY.SEARCH")),i.Q6J("formControl",I.searchCtrl),i.xp6(3),i.hij(" ",i.lcZ(10,19,"DIALOGS.CONNECT_IDENTITY.EMPTY_SEARCH_MESSAGE")," "),i.xp6(2),i.Q6J("disabled",I.loading),i.xp6(3),i.Q6J("ngIf",!I.loading),i.xp6(1),i.Q6J("ngIf",!I.firstSearchDone),i.xp6(1),i.Q6J("ngIf",!I.loading&&I.firstSearchDone&&0===I.identities.length),i.xp6(1),i.Q6J("ngIf",I.loading),i.xp6(3),i.hij(" ",i.lcZ(21,21,"DIALOGS.CONNECT_IDENTITY.CANCEL")," "),i.xp6(2),i.Q6J("disabled",0===I.selection.selected.length),i.xp6(1),i.hij(" ",i.lcZ(24,23,"DIALOGS.CONNECT_IDENTITY.CONNECT")," "))},dependencies:[d.O5,y.TO,y.KE,S.Nt,s.Fj,s.JJ,s.oH,b.Hw,N.lW,C.uh,C.xY,C.H8,U.Ou,P.w,T.C,A.X$],styles:[".search-field[_ngcontent-%COMP%]{width:300px}.search-btn[_ngcontent-%COMP%]{width:50px}"]}),o})()},94814:(W,Z,t)=>{t.d(Z,{B:()=>T});var C=t(61744),c=t(65412),L=t(81591),n=t(30671),e=t(94650),D=t(89383),s=t(36895),i=t(4859),A=t(98380),d=t(31359);function y(v,O){1&v&&e._UZ(0,"th",13)}function S(v,O){if(1&v&&(e.TgZ(0,"td",14),e._uU(1),e.ALo(2,"userFullName"),e.qZA()),2&v){const g=O.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,g))}}function b(v,O){1&v&&e._UZ(0,"tr",15)}function N(v,O){1&v&&e._UZ(0,"tr",16)}function U(v,O){1&v&&(e.TgZ(0,"perun-web-apps-alert",17),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&v&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"DIALOGS.DISCONNECT_IDENTITY.WARNING_DISCONNECT_YOURSELF")," "))}function P(v,O){1&v&&(e.TgZ(0,"perun-web-apps-alert",17),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&v&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"DIALOGS.DISCONNECT_IDENTITY.WARNING_LAST_USER")," "))}let T=(()=>{class v{constructor(g,h,u,p,o,_){this.dialogRef=g,this.data=h,this.userManager=u,this.notificator=p,this.translate=o,this.store=_,this.displayedColumns=["name"]}ngOnInit(){let g;this.targetTitle=this.data.targetTitle,this.targetDescription=this.data.targetDescription,this.theme=this.data.theme,this.userId=Number(this.data.userId),this.dataSource=new n.by([this.data.specificUser]),this.isService=this.data.isService,this.isService?(g=this.userId,this.disconnectingSelf=this.dataSource.data[0].id===this.store.getPerunPrincipal().userId):(g=this.dataSource.data[0].id,this.disconnectingSelf=this.userId===this.store.getPerunPrincipal().userId),this.userManager.getUsersBySpecificUser(g).subscribe(h=>{this.disconnectingLastOwner=1===h.length})}onConfirm(){let g,h;this.isService?(g=this.dataSource.data[0].id,h=this.userId):(g=this.userId,h=this.dataSource.data[0].id),this.userManager.removeSpecificUserOwner(g,h).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.DISCONNECT_IDENTITY.SUCCESS")),this.dialogRef.close(!0)})}onCancel(){this.dialogRef.close(!1)}}return v.\u0275fac=function(g){return new(g||v)(e.Y36(c.so),e.Y36(c.WI),e.Y36(C.Fv),e.Y36(L.V6),e.Y36(D.sK),e.Y36(L.d6))},v.\u0275cmp=e.Xpm({type:v,selectors:[["app-disconnect-identity-dialog"]],decls:26,vars:23,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"click"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""],["alert_type","warn"]],template:function(g,h){1&g&&(e.TgZ(0,"h1",0),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.TgZ(3,"div")(4,"div",1)(5,"p"),e._uU(6),e.ALo(7,"translate"),e.qZA(),e.TgZ(8,"div",2),e._uU(9),e.ALo(10,"translate"),e.qZA(),e.TgZ(11,"table",3),e.ynx(12,4),e.YNc(13,y,1,0,"th",5),e.YNc(14,S,3,3,"td",6),e.BQk(),e.YNc(15,b,1,0,"tr",7),e.YNc(16,N,1,0,"tr",8),e.qZA(),e.YNc(17,U,3,3,"perun-web-apps-alert",9),e.YNc(18,P,3,3,"perun-web-apps-alert",9),e.qZA(),e.TgZ(19,"div",10)(20,"button",11),e.NdJ("click",function(){return h.onCancel()}),e._uU(21),e.ALo(22,"translate"),e.qZA(),e.TgZ(23,"button",12),e.NdJ("click",function(){return h.onConfirm()}),e._uU(24),e.ALo(25,"translate"),e.qZA()()()),2&g&&(e.xp6(1),e.Oqu(e.lcZ(2,13,"DIALOGS.DISCONNECT_IDENTITY.TITLE_"+h.targetTitle)),e.xp6(2),e.Tol(h.theme),e.xp6(3),e.Oqu(e.lcZ(7,15,"DIALOGS.DISCONNECT_IDENTITY.DESCRIPTION_"+h.targetDescription)),e.xp6(3),e.hij(" ",e.lcZ(10,17,"DIALOGS.DISCONNECT_IDENTITY.ASK")," "),e.xp6(2),e.Q6J("dataSource",h.dataSource),e.xp6(4),e.Q6J("matHeaderRowDef",h.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",h.displayedColumns),e.xp6(1),e.Q6J("ngIf",h.disconnectingSelf),e.xp6(1),e.Q6J("ngIf",h.disconnectingLastOwner),e.xp6(3),e.hij(" ",e.lcZ(22,19,"DIALOGS.DISCONNECT_IDENTITY.CANCEL")," "),e.xp6(3),e.hij(" ",e.lcZ(25,21,"DIALOGS.DISCONNECT_IDENTITY.REMOVE")," "))},dependencies:[s.O5,i.lW,n.BZ,n.fO,n.as,n.w1,n.Dz,n.nj,n.ge,n.ev,n.XQ,n.Gk,c.uh,c.xY,c.H8,A.w,D.X$,d.d]}),v})()},29862:(W,Z,t)=>{t.d(Z,{x:()=>P});var C=t(61744),c=t(65412),L=t(81591),n=t(24006),e=t(94650),D=t(89383),s=t(36895),i=t(59549),A=t(284),d=t(4859);function y(T,v){1&T&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&T&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"DIALOGS.EDIT_USER.ERROR_LENGTH")))}function S(T,v){1&T&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&T&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"DIALOGS.EDIT_USER.ERROR_LENGTH")))}function b(T,v){1&T&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&T&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"DIALOGS.EDIT_USER.ERROR_FIRST_NAME")))}function N(T,v){1&T&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&T&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"DIALOGS.EDIT_USER.ERROR_LENGTH")))}function U(T,v){1&T&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&T&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"DIALOGS.EDIT_USER.ERROR_LAST_NAME")))}let P=(()=>{class T{constructor(O,g,h,u,p){this.dialogRef=O,this.data=g,this.userService=h,this.notificator=u,this.translateService=p,this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.titleBefore=new n.p4(this.data.user.titleBefore,[n.kI.pattern(".*[\\S]+.*"),n.kI.maxLength(129)]),this.titleAfter=new n.p4(this.data.user.titleAfter,[n.kI.pattern(".*[\\S]+.*"),n.kI.maxLength(129)]),this.firstName=new n.p4(this.data.user.firstName,[n.kI.required,n.kI.pattern(".*[\\S]+.*"),n.kI.maxLength(129)]),this.middleName=new n.p4(this.data.user.middleName,[n.kI.pattern(".*[\\S]+.*"),n.kI.maxLength(129)]),this.lastName=new n.p4(this.data.user.lastName,[n.kI.required,n.kI.pattern(".*[\\S]+.*"),n.kI.maxLength(129)])}onCancel(){this.dialogRef.close(!1)}onSave(){this.loading=!0,this.data.user.titleBefore=this.titleBefore.value,this.data.user.titleAfter=this.titleAfter.value,this.data.user.firstName=this.firstName.value,this.data.user.middleName=this.middleName.value,this.data.user.lastName=this.lastName.value,this.userService.updateUser({user:this.data.user}).subscribe(()=>{this.translateService.get("DIALOGS.EDIT_USER.SUCCESS").subscribe(O=>{this.notificator.showSuccess(O),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return T.\u0275fac=function(O){return new(O||T)(e.Y36(c.so),e.Y36(c.WI),e.Y36(C.Fv),e.Y36(L.V6),e.Y36(D.sK))},T.\u0275cmp=e.Xpm({type:T,selectors:[["app-edit-user-dialog"]],decls:32,vars:38,consts:[[1,"mat-dialog-title"],["mat-dialog-content","",1,"dialog-container"],["matInput","",3,"formControl","placeholder"],[4,"ngIf"],["matInput","","data-cy","user-first-name-input","required","",3,"placeholder","formControl"],["matInput","","required","",3,"formControl","placeholder"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","data-cy","user-save-button","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(O,g){1&O&&(e.TgZ(0,"div")(1,"h1",0),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",1)(5,"mat-form-field"),e._UZ(6,"input",2),e.ALo(7,"translate"),e.YNc(8,y,3,3,"mat-error",3),e.qZA(),e.TgZ(9,"mat-form-field"),e._UZ(10,"input",2),e.ALo(11,"translate"),e.YNc(12,S,3,3,"mat-error",3),e.qZA(),e.TgZ(13,"mat-form-field"),e._UZ(14,"input",4),e.ALo(15,"translate"),e.YNc(16,b,3,3,"mat-error",3),e.qZA(),e.TgZ(17,"mat-form-field"),e._UZ(18,"input",2),e.ALo(19,"translate"),e.YNc(20,N,3,3,"mat-error",3),e.qZA(),e.TgZ(21,"mat-form-field"),e._UZ(22,"input",5),e.ALo(23,"translate"),e.YNc(24,U,3,3,"mat-error",3),e.qZA()(),e.TgZ(25,"div",6)(26,"button",7),e.NdJ("click",function(){return g.onCancel()}),e._uU(27),e.ALo(28,"translate"),e.qZA(),e.TgZ(29,"button",8),e.NdJ("click",function(){return g.onSave()}),e._uU(30),e.ALo(31,"translate"),e.qZA()()()),2&O&&(e.Tol(g.theme),e.xp6(2),e.Oqu(e.lcZ(3,22,"DIALOGS.EDIT_USER.DIALOG_TITLE")),e.xp6(4),e.s9C("placeholder",e.lcZ(7,24,"DIALOGS.EDIT_USER.TITLE_BEFORE")),e.Q6J("formControl",g.titleBefore),e.xp6(2),e.Q6J("ngIf",g.titleBefore.invalid),e.xp6(2),e.s9C("placeholder",e.lcZ(11,26,"DIALOGS.EDIT_USER.TITLE_AFTER")),e.Q6J("formControl",g.titleAfter),e.xp6(2),e.Q6J("ngIf",g.titleAfter.invalid),e.xp6(2),e.s9C("placeholder",e.lcZ(15,28,"DIALOGS.EDIT_USER.FIRST_NAME")),e.Q6J("formControl",g.firstName),e.xp6(2),e.Q6J("ngIf",g.firstName.invalid),e.xp6(2),e.s9C("placeholder",e.lcZ(19,30,"DIALOGS.EDIT_USER.MIDDLE_NAME")),e.Q6J("formControl",g.middleName),e.xp6(2),e.Q6J("ngIf",g.middleName.invalid),e.xp6(2),e.s9C("placeholder",e.lcZ(23,32,"DIALOGS.EDIT_USER.LAST_NAME")),e.Q6J("formControl",g.lastName),e.xp6(2),e.Q6J("ngIf",g.lastName.invalid),e.xp6(3),e.hij(" ",e.lcZ(28,34,"DIALOGS.EDIT_USER.CANCEL")," "),e.xp6(2),e.Q6J("disabled",g.loading||g.firstName.invalid||g.lastName.invalid||g.titleBefore.invalid||g.titleAfter.invalid||g.middleName.invalid),e.xp6(1),e.hij(" ",e.lcZ(31,36,"DIALOGS.EDIT_USER.SAVE")," "))},dependencies:[s.O5,i.TO,i.KE,A.Nt,n.Fj,n.JJ,n.Q7,n.oH,d.lW,c.xY,c.H8,D.X$]}),T})()},90979:(W,Z,t)=>{t.d(Z,{G:()=>D});var C=t(65412),c=t(81591),L=t(61744),n=t(94650),e=t(1415);let D=(()=>{class s{constructor(A,d,y,S){this.data=A,this.dialogRef=d,this.facilityService=y,this.notificator=S,this.loading=!1}update(A){this.loading=!0,this.facilityService.updateFacilityBan({banOnFacility:{id:this.data.ban.id,beanName:"BanOnFacility",facilityId:this.data.ban.facilityId,userId:this.data.ban.userId,description:A.description,validityTo:A.validity}}).subscribe({next:()=>{this.notificator.showSuccess("DIALOGS.UPDATE_BAN.SUCCESS"),this.dialogRef.close(!0)},error:()=>{this.loading=!1}})}cancel(){this.dialogRef.close(!1)}}return s.\u0275fac=function(A){return new(A||s)(n.Y36(C.WI),n.Y36(C.so),n.Y36(L.IQ),n.Y36(c.V6))},s.\u0275cmp=n.Xpm({type:s,selectors:[["app-update-facility-ban-dialog"]],decls:1,vars:2,consts:[[3,"ban","theme","cancel","update"]],template:function(A,d){1&A&&(n.TgZ(0,"app-update-ban-dialog",0),n.NdJ("cancel",function(){return d.cancel()})("update",function(S){return d.update(S)}),n.qZA()),2&A&&n.Q6J("ban",d.data.ban)("theme","facility-theme")},dependencies:[e.l]}),s})()},98973:(W,Z,t)=>{t.d(Z,{u:()=>N});var C=t(81591),c=t(94650),L=t(94364),n=t(36895),e=t(3848),D=t(19191),s=t(12651),i=t(89383);function A(U,P){1&U&&(c._uU(0),c.ALo(1,"translate")),2&U&&c.hij(" ",c.lcZ(1,1,"ADMIN_USER.ENTITY")," ")}function d(U,P){if(1&U&&c._UZ(0,"app-one-entity-attribute-page",5),2&U){const T=c.oxw();c.Q6J("entityId",T.userId)("entity","user")}}function y(U,P){1&U&&(c._uU(0),c.ALo(1,"translate"),c.ALo(2,"translate")),2&U&&c.AsE(" ",c.lcZ(1,2,"ADMIN_USER.ENTITY")," - ",c.lcZ(2,4,"FACILITY_DETAIL.ENTITY")," ")}function S(U,P){if(1&U&&c._UZ(0,"app-two-entity-attribute-page",6),2&U){const T=c.oxw(2);c.Q6J("firstEntity","user")("firstEntityId",T.userId)("secondEntity","facility")}}function b(U,P){1&U&&(c.TgZ(0,"mat-tab"),c.YNc(1,y,3,6,"ng-template",2),c.YNc(2,S,1,3,"ng-template",3),c.qZA())}let N=(()=>{class U{constructor(T,v,O){this.route=T,this.store=v,this.authResolver=O}ngOnInit(){this.route.parent.params.subscribe(T=>{this.userId=Number(T.userId),this.userId||(this.userId=this.store.getPerunPrincipal().userId),this.userFacilityAttAuth=this.authResolver.isAuthorized("getAssignedFacilities_User_policy",[{id:this.userId,beanName:"User"}])})}}return U.\u0275fac=function(T){return new(T||U)(c.Y36(L.gz),c.Y36(C.d6),c.Y36(C.x4))},U.\u0275cmp=c.Xpm({type:U,selectors:[["app-user-settings-attributes"]],hostVars:2,hostBindings:function(T,v){2&T&&c.ekj("router-component",v.true)},decls:8,vars:4,consts:[[1,"page-subtitle"],[1,"mb-2"],["matTabLabel",""],["matTabContent",""],[4,"ngIf"],[3,"entityId","entity"],[3,"firstEntity","firstEntityId","secondEntity"]],template:function(T,v){1&T&&(c.TgZ(0,"h1",0),c._uU(1),c.ALo(2,"translate"),c.qZA(),c.TgZ(3,"mat-tab-group")(4,"mat-tab",1),c.YNc(5,A,2,3,"ng-template",2),c.YNc(6,d,1,2,"ng-template",3),c.qZA(),c.YNc(7,b,3,0,"mat-tab",4),c.qZA()),2&T&&(c.xp6(1),c.Oqu(c.lcZ(2,2,"USER_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),c.xp6(6),c.Q6J("ngIf",v.userFacilityAttAuth))},dependencies:[n.O5,e.SP,e.uD,e.uX,e.Vc,D.Y,s.t,i.X$]}),U})()},51403:(W,Z,t)=>{t.d(Z,{Q:()=>_});var C=t(61744),c=t(81591),L=t(9244),n=t(32316),e=t(28943),D=t(90979),s=t(94650),i=t(65412),A=t(3848),d=t(51572),y=t(64901),S=t(73358),b=t(91880),N=t(89383);function U(l,I){1&l&&(s._uU(0),s.ALo(1,"translate")),2&l&&s.hij(" ",s.lcZ(1,1,"USER_DETAIL.BANS.VO")," ")}function P(l,I){if(1&l){const f=s.EpF();s.TgZ(0,"perun-web-apps-ban-on-entity-list",8),s.NdJ("updateBan",function(B){s.CHM(f);const x=s.oxw(2);return s.KtG(x.updateVoBan(B))}),s.qZA()}if(2&l){const f=s.oxw(2);s.Q6J("bans",f.voBans)("displayedColumns",f.displayedColumns)("filter",f.filter)("updatePolicy","updateBan_BanOnVo_policy")}}function T(l,I){if(1&l){const f=s.EpF();s.TgZ(0,"perun-web-apps-debounce-filter",5),s.NdJ("filter",function(B){s.CHM(f);const x=s.oxw();return s.KtG(x.filter=B)}),s.qZA(),s.TgZ(1,"div",6),s.YNc(2,P,1,4,"perun-web-apps-ban-on-entity-list",7),s.qZA()}if(2&l){const f=s.oxw(),R=s.MAs(14);s.Q6J("placeholder","USER_DETAIL.BANS.FILTER"),s.xp6(2),s.Q6J("perunWebAppsLoader",f.loading)("perunWebAppsLoaderIndicator",R)}}function v(l,I){1&l&&(s._uU(0),s.ALo(1,"translate")),2&l&&s.hij(" ",s.lcZ(1,1,"USER_DETAIL.BANS.RESOURCE")," ")}function O(l,I){if(1&l){const f=s.EpF();s.TgZ(0,"perun-web-apps-ban-on-entity-list",8),s.NdJ("updateBan",function(B){s.CHM(f);const x=s.oxw(2);return s.KtG(x.updateResourceBan(B))}),s.qZA()}if(2&l){const f=s.oxw(2);s.Q6J("bans",f.resourceBans)("displayedColumns",f.displayedColumns)("filter",f.filter)("updatePolicy","updateBan_BanOnResource_policy")}}function g(l,I){if(1&l){const f=s.EpF();s.TgZ(0,"perun-web-apps-debounce-filter",5),s.NdJ("filter",function(B){s.CHM(f);const x=s.oxw();return s.KtG(x.filter=B)}),s.qZA(),s.TgZ(1,"div",6),s.YNc(2,O,1,4,"perun-web-apps-ban-on-entity-list",7),s.qZA()}if(2&l){const f=s.oxw(),R=s.MAs(14);s.Q6J("placeholder","USER_DETAIL.BANS.FILTER"),s.xp6(2),s.Q6J("perunWebAppsLoader",f.loading)("perunWebAppsLoaderIndicator",R)}}function h(l,I){1&l&&(s._uU(0),s.ALo(1,"translate")),2&l&&s.hij(" ",s.lcZ(1,1,"USER_DETAIL.BANS.FACILITY")," ")}function u(l,I){if(1&l){const f=s.EpF();s.TgZ(0,"perun-web-apps-ban-on-entity-list",8),s.NdJ("updateBan",function(B){s.CHM(f);const x=s.oxw(2);return s.KtG(x.updateFacilityBan(B))}),s.qZA()}if(2&l){const f=s.oxw(2);s.Q6J("bans",f.facilityBans)("displayedColumns",f.displayedColumns)("filter",f.filter)("updatePolicy","updateBan_BanOnFacility_policy")}}function p(l,I){if(1&l){const f=s.EpF();s.TgZ(0,"perun-web-apps-debounce-filter",5),s.NdJ("filter",function(B){s.CHM(f);const x=s.oxw();return s.KtG(x.filter=B)}),s.qZA(),s.TgZ(1,"div",6),s.YNc(2,u,1,4,"perun-web-apps-ban-on-entity-list",7),s.qZA()}if(2&l){const f=s.oxw(),R=s.MAs(14);s.Q6J("placeholder","USER_DETAIL.BANS.FILTER"),s.xp6(2),s.Q6J("perunWebAppsLoader",f.loading)("perunWebAppsLoaderIndicator",R)}}function o(l,I){1&l&&(s.TgZ(0,"div",9),s._UZ(1,"mat-spinner"),s.qZA())}let _=(()=>{class l{constructor(f,R,B,x,z){this.voService=f,this.resourceService=R,this.facilityService=B,this.entityService=x,this.dialog=z,this.loading=!1,this.voBans=[],this.resourceBans=[],this.facilityBans=[],this.filter="",this.displayedColumns=["banId","targetId","targetName","description","expiration","edit"]}ngOnInit(){this.loading=!0,this.user=this.entityService.getEntity(),this.refreshVoBans()}refreshVoBans(){this.loading=!0,this.voService.getEnrichedVoBansForUser(this.user.id).subscribe({next:f=>{this.voBans=f,this.loading=!1},error:()=>this.loading=!1})}refreshResourceBans(){this.loading=!0,this.resourceService.getEnrichedBansForUser(this.user.id).subscribe({next:f=>{this.resourceBans=f,this.loading=!1},error:()=>this.loading=!1})}refreshFacilityBans(){this.loading=!0,this.facilityService.getEnricheFacilitydBansForUser(this.user.id).subscribe({next:f=>{this.facilityBans=f,this.loading=!1},error:()=>this.loading=!1})}updateVoBan(f){this.dialog.open(n.A,this.getConfig(f)).afterClosed().subscribe(B=>{B&&this.refreshVoBans()})}updateResourceBan(f){this.dialog.open(e.e,this.getConfig(f)).afterClosed().subscribe(B=>{B&&this.refreshResourceBans()})}updateFacilityBan(f){this.dialog.open(D.G,this.getConfig(f)).afterClosed().subscribe(B=>{B&&this.refreshFacilityBans()})}getConfig(f){const R=(0,L.kZ)();return R.width="600px",R.data={ban:f.ban,theme:"user-theme"},R}refresh(f){0===f.index?this.refreshVoBans():1===f.index?this.refreshResourceBans():this.refreshFacilityBans()}}return l.\u0275fac=function(f){return new(f||l)(s.Y36(C.YF),s.Y36(C.xk),s.Y36(C.IQ),s.Y36(c.fb),s.Y36(i.uw))},l.\u0275cmp=s.Xpm({type:l,selectors:[["app-user-bans"]],decls:15,vars:3,consts:[[1,"page-subtitle"],[1,"mt-3",3,"selectedTabChange"],["matTabLabel",""],["matTabContent",""],["spinner",""],[1,"mt-2","search-field",3,"placeholder","filter"],[1,"position-relative"],[3,"bans","displayedColumns","filter","updatePolicy","updateBan",4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],[3,"bans","displayedColumns","filter","updatePolicy","updateBan"],[1,"spinner-container"]],template:function(f,R){1&f&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.TgZ(3,"mat-tab-group",1),s.NdJ("selectedTabChange",function(x){return R.refresh(x)}),s.TgZ(4,"mat-tab"),s.YNc(5,U,2,3,"ng-template",2),s.YNc(6,T,3,3,"ng-template",3),s.qZA(),s.TgZ(7,"mat-tab"),s.YNc(8,v,2,3,"ng-template",2),s.YNc(9,g,3,3,"ng-template",3),s.qZA(),s.TgZ(10,"mat-tab"),s.YNc(11,h,2,3,"ng-template",2),s.YNc(12,p,3,3,"ng-template",3),s.qZA()(),s.YNc(13,o,2,0,"ng-template",null,4,s.W1O)),2&f&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"USER_DETAIL.BANS.TITLE"),"\n"))},dependencies:[A.SP,A.uD,A.uX,A.Vc,d.Ou,y.P,S.e,b.s,N.X$]}),l})()},85985:(W,Z,t)=>{t.d(Z,{u:()=>g});var C=t(81591),c=t(61744),L=t(10036),n=t(94650),e=t(94364),D=t(36895),s=t(51572),i=t(25788),A=t(96214),d=t(7434),y=t(89383);function S(h,u){1&h&&(n.TgZ(0,"h1",6),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&h&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED.COMPONENTS.USER_DETAIL.GROUPS.YOU_ARE_MEMBER"),"\n"))}function b(h,u){1&h&&(n.TgZ(0,"h1",6),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&h&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED.COMPONENTS.USER_DETAIL.GROUPS.USER_IS_MEMBER"),"\n"))}function N(h,u){1&h&&n._UZ(0,"mat-spinner",7)}const U=function(){return["id","vo","name","description"]};function P(h,u){if(1&h&&n._UZ(0,"perun-web-apps-groups-list",8),2&h){const p=n.oxw();n.Q6J("disableMembers",!1)("groups",p.membersGroups)("displayedColumns",n.DdM(5,U))("filter",p.memberFilterValue)("tableId",p.tableId)}}function T(h,u){1&h&&n._UZ(0,"mat-spinner",7)}function v(h,u){if(1&h&&n._UZ(0,"perun-web-apps-groups-list",8),2&h){const p=n.oxw(2);n.Q6J("disableMembers",!1)("groups",p.adminsGroups)("displayedColumns",n.DdM(5,U))("filter",p.adminFilterValue)("tableId",p.adminTableId)}}function O(h,u){if(1&h){const p=n.EpF();n.TgZ(0,"div",9)(1,"h1",6),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"perun-web-apps-refresh-button",1),n.NdJ("refresh",function(){n.CHM(p);const _=n.oxw();return n.KtG(_.refreshAdminTable())}),n.qZA(),n.TgZ(5,"perun-web-apps-immediate-filter",2),n.NdJ("filter",function(_){n.CHM(p);const l=n.oxw();return n.KtG(l.adminFilter(_))}),n.qZA(),n.YNc(6,T,1,0,"mat-spinner",3),n.YNc(7,v,1,6,"perun-web-apps-groups-list",4),n.qZA()}if(2&h){const p=n.oxw();n.xp6(2),n.hij(" ",n.lcZ(3,4,"SHARED.COMPONENTS.USER_DETAIL.GROUPS.USER_IS_ADMIN")," "),n.xp6(3),n.Q6J("placeholder","SHARED_LIB.PERUN.ORGANIZATIONS.FILTER"),n.xp6(1),n.Q6J("ngIf",p.adminRefresh),n.xp6(1),n.Q6J("ngIf",!p.adminRefresh)}}let g=(()=>{class h{constructor(p,o,_,l,I){this.usersService=p,this.memberService=o,this.groupService=_,this.store=l,this.route=I,this.memberFilterValue="",this.adminFilterValue="",this.vos=[],this.membersGroups=[],this.adminsGroups=[],this.tableId=L.KE,this.adminTableId=L.Sb}ngOnInit(){(this.showPrincipal=this.route.snapshot.data.showPrincipal)?this.userId=this.store.getPerunPrincipal().user.id:this.route.parent.params.subscribe(p=>this.userId=Number(p.userId)),this.refreshAdminTable(),this.refreshMemberTable()}memberFilter(p){this.memberFilterValue=p}adminFilter(p){this.adminFilterValue=p}refreshAdminTable(){this.adminRefresh=!0,this.usersService.getGroupsWhereUserIsAdmin(this.userId).subscribe(p=>{this.adminsGroups=p,this.adminRefresh=!1})}refreshMemberTable(){this.memberRefresh=!0,this.membersGroups=[],this.usersService.getVosWhereUserIsMember(this.userId).subscribe(p=>{this.vos=p;for(const o of this.vos)this.memberService.getMemberByUser(o.id,this.userId).subscribe(_=>{this.groupService.getMemberGroups(_.id).subscribe(l=>{this.membersGroups=this.membersGroups.concat(l),this.vos.indexOf(o)===this.vos.length-1&&(this.memberRefresh=!1)})});0===p.length&&(this.memberRefresh=!1)})}}return h.\u0275fac=function(p){return new(p||h)(n.Y36(c.Fv),n.Y36(c.uq),n.Y36(c.ff),n.Y36(C.d6),n.Y36(e.gz))},h.\u0275cmp=n.Xpm({type:h,selectors:[["app-user-groups"]],hostVars:2,hostBindings:function(p,o){2&p&&n.ekj("router-component",o.true)},decls:7,vars:6,consts:[["class","page-subtitle",4,"ngIf"],[3,"refresh"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableMembers","groups","displayedColumns","filter","tableId",4,"ngIf"],["class","mt-5",4,"ngIf"],[1,"page-subtitle"],[1,"ml-auto","mr-auto"],[3,"disableMembers","groups","displayedColumns","filter","tableId"],[1,"mt-5"]],template:function(p,o){1&p&&(n.YNc(0,S,3,3,"h1",0),n.YNc(1,b,3,3,"h1",0),n.TgZ(2,"perun-web-apps-refresh-button",1),n.NdJ("refresh",function(){return o.refreshMemberTable()}),n.qZA(),n.TgZ(3,"perun-web-apps-immediate-filter",2),n.NdJ("filter",function(l){return o.memberFilter(l)}),n.qZA(),n.YNc(4,N,1,0,"mat-spinner",3),n.YNc(5,P,1,6,"perun-web-apps-groups-list",4),n.YNc(6,O,8,6,"div",5)),2&p&&(n.Q6J("ngIf",o.showPrincipal),n.xp6(1),n.Q6J("ngIf",!o.showPrincipal),n.xp6(2),n.Q6J("placeholder","SHARED_LIB.PERUN.ORGANIZATIONS.FILTER"),n.xp6(1),n.Q6J("ngIf",o.memberRefresh),n.xp6(1),n.Q6J("ngIf",!o.memberRefresh),n.xp6(1),n.Q6J("ngIf",!o.showPrincipal))},dependencies:[D.O5,s.Ou,i.W,A.t,d.L,y.X$]}),h})()},74837:(W,Z,t)=>{t.d(Z,{j:()=>O});var C=t(61744),c=t(81591),L=t(10036),n=t(94650),e=t(94364),D=t(36895),s=t(51572),i=t(87831),A=t(96214),d=t(7434),y=t(89383);function S(g,h){1&g&&(n.TgZ(0,"h1",6),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&g&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.ORGANIZATIONS.YOU_ARE_MEMBER"),"\n"))}function b(g,h){1&g&&(n.TgZ(0,"h1",6),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&g&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.ORGANIZATIONS.USER_IS_MEMBER"),"\n"))}function N(g,h){1&g&&n._UZ(0,"mat-spinner",7)}function U(g,h){if(1&g&&n._UZ(0,"perun-web-apps-vos-list",8),2&g){const u=n.oxw();n.Q6J("displayedColumns",u.displayedColumns)("tableId",u.memberTableId)("filterValue",u.memberFilterValue)("vos",u.vosWhereIsMember)}}function P(g,h){1&g&&n._UZ(0,"mat-spinner",7)}function T(g,h){if(1&g&&n._UZ(0,"perun-web-apps-vos-list",8),2&g){const u=n.oxw(2);n.Q6J("displayedColumns",u.displayedColumns)("tableId",u.adminTableId)("filterValue",u.adminFilterValue)("vos",u.vosWhereIsAdmin)}}function v(g,h){if(1&g){const u=n.EpF();n.TgZ(0,"div",9)(1,"h1",6),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"perun-web-apps-refresh-button",1),n.NdJ("refresh",function(){n.CHM(u);const o=n.oxw();return n.KtG(o.refreshAdminTable())}),n.qZA(),n.TgZ(5,"perun-web-apps-immediate-filter",2),n.NdJ("filter",function(o){n.CHM(u);const _=n.oxw();return n.KtG(_.applyAdminFilter(o))}),n.qZA(),n.YNc(6,P,1,0,"mat-spinner",3),n.YNc(7,T,1,4,"perun-web-apps-vos-list",4),n.qZA()}if(2&g){const u=n.oxw();n.xp6(2),n.Oqu(n.lcZ(3,4,"SHARED_LIB.PERUN.ORGANIZATIONS.USER_IS_ADMIN")),n.xp6(3),n.Q6J("placeholder","SHARED_LIB.PERUN.ORGANIZATIONS.FILTER"),n.xp6(1),n.Q6J("ngIf",u.adminRefresh),n.xp6(1),n.Q6J("ngIf",!u.adminRefresh)}}let O=(()=>{class g{constructor(u,p,o,_){this.usersService=u,this.authResolver=p,this.store=o,this.route=_,this.adminFilterValue="",this.memberFilterValue="",this.displayedColumns=["id","name"],this.adminTableId=L.YF,this.memberTableId=L.gc}ngOnInit(){(this.isMyProfile=this.route.snapshot.data.showPrincipal)?this.userId=this.store.getPerunPrincipal().user.id:this.route.parent.params.subscribe(u=>this.userId=Number(u.userId)),this.refreshAdminTable(),this.refreshMemberTable()}refreshMemberTable(){this.memberRefresh=!0,this.usersService.getVosWhereUserIsMember(this.userId).subscribe(u=>{this.vosWhereIsMember=u,this.memberRefresh=!1},()=>this.memberRefresh=!1)}refreshAdminTable(){this.adminRefresh=!0,this.usersService.getVosWhereUserIsAdmin(this.userId).subscribe(u=>{this.vosWhereIsAdmin=u,this.adminRefresh=!1},()=>this.adminRefresh=!1)}applyMemberFilter(u){this.memberFilterValue=u}applyAdminFilter(u){this.adminFilterValue=u}}return g.\u0275fac=function(u){return new(u||g)(n.Y36(C.Fv),n.Y36(c.x4),n.Y36(c.d6),n.Y36(e.gz))},g.\u0275cmp=n.Xpm({type:g,selectors:[["app-user-organizations"]],hostVars:2,hostBindings:function(u,p){2&u&&n.ekj("router-component",p.true)},decls:7,vars:6,consts:[["class","page-subtitle",4,"ngIf"],[3,"refresh"],[3,"placeholder","filter"],["class","mr-auto ml-auto",4,"ngIf"],[3,"displayedColumns","tableId","filterValue","vos",4,"ngIf"],["class","mt-5",4,"ngIf"],[1,"page-subtitle"],[1,"mr-auto","ml-auto"],[3,"displayedColumns","tableId","filterValue","vos"],[1,"mt-5"]],template:function(u,p){1&u&&(n.YNc(0,S,3,3,"h1",0),n.YNc(1,b,3,3,"h1",0),n.TgZ(2,"perun-web-apps-refresh-button",1),n.NdJ("refresh",function(){return p.refreshMemberTable()}),n.qZA(),n.TgZ(3,"perun-web-apps-immediate-filter",2),n.NdJ("filter",function(_){return p.applyMemberFilter(_)}),n.qZA(),n.YNc(4,N,1,0,"mat-spinner",3),n.YNc(5,U,1,4,"perun-web-apps-vos-list",4),n.YNc(6,v,8,6,"div",5)),2&u&&(n.Q6J("ngIf",p.isMyProfile),n.xp6(1),n.Q6J("ngIf",!p.isMyProfile),n.xp6(2),n.Q6J("placeholder","SHARED_LIB.PERUN.ORGANIZATIONS.FILTER"),n.xp6(1),n.Q6J("ngIf",p.memberRefresh),n.xp6(1),n.Q6J("ngIf",!p.memberRefresh),n.xp6(1),n.Q6J("ngIf",!p.isMyProfile))},dependencies:[D.O5,s.Ou,i.Z,A.t,d.L,y.X$]}),g})()},17755:(W,Z,t)=>{t.d(Z,{Z:()=>u});var C=t(61744),c=t(30671),L=t(81591),n=t(64080),e=t(9244),D=t(21029),s=t(94650),i=t(94364),A=t(65412),d=t(36895),y=t(97392),S=t(4859),b=t(73546),N=t(71135),U=t(89383);function P(p,o){1&p&&s._UZ(0,"th",12)}function T(p,o){if(1&p&&(s.TgZ(0,"td",13),s._uU(1),s.qZA()),2&p){const _=o.$implicit;s.xp6(1),s.hij(" ",_.displayName,": ")}}function v(p,o){1&p&&s._UZ(0,"th",12)}function O(p,o){if(1&p){const _=s.EpF();s.TgZ(0,"td",14),s._uU(1),s.TgZ(2,"button",15),s.NdJ("click",function(){s.CHM(_);const I=s.oxw(2);return s.KtG(I.changeEmail())}),s.TgZ(3,"mat-icon"),s._uU(4,"edit"),s.qZA()()()}if(2&p){const _=o.$implicit;s.xp6(1),s.hij(" ",_.value," ")}}function g(p,o){1&p&&s._UZ(0,"tr",16)}function h(p,o){if(1&p&&(s.TgZ(0,"div",2)(1,"mat-card",3)(2,"mat-card-header")(3,"mat-card-title")(4,"h1",4),s._uU(5),s.ALo(6,"translate"),s.qZA()()(),s.TgZ(7,"mat-card-content")(8,"table",5),s.ynx(9,6),s.YNc(10,P,1,0,"th",7),s.YNc(11,T,2,1,"td",8),s.BQk(),s.ynx(12,9),s.YNc(13,v,1,0,"th",7),s.YNc(14,O,5,1,"td",10),s.BQk(),s.YNc(15,g,1,0,"tr",11),s.qZA()()()()),2&p){const _=s.oxw();s.xp6(5),s.Oqu(s.lcZ(6,3,"USER_DETAIL.OVERVIEW.GENERAL_SETTINGS")),s.xp6(3),s.Q6J("dataSource",_.mailDataSource),s.xp6(7),s.Q6J("matRowDefColumns",_.displayedColumns)}}let u=(()=>{class p{constructor(_,l,I,f,R){this.userService=_,this.attributeService=l,this.storeService=I,this.route=f,this.dialog=R,this.navItems=[],this.isServiceUser=!1,this.displayedColumns=["name","value"],this.inMyProfile=!1}ngOnInit(){this.route.params.subscribe(_=>{_.userId?this.userService.getUserById(Number(_.userId)).subscribe(l=>{this.user=l,this.isServiceUser=l.serviceUser,this.initNavItems(`/admin/users/${this.user.id}`)}):(this.inMyProfile=!0,this.userID=this.storeService.getPerunPrincipal().user.id,this.attributeService.getUserAttributeByName(this.userID,n.r.USER_DEF_PREFERRED_MAIL).subscribe(l=>{this.preferredMail=l,this.handleMailNotDefined(),this.mailDataSource=new c.by([this.preferredMail]),this.initNavItems("/myProfile")}))})}changeEmail(){const _=(0,e.kZ)();_.width="350px",_.data={userId:this.userID},this.dialog.open(D.gr,_).afterClosed().subscribe(I=>{I&&this.attributeService.getUserAttributeByName(this.userID,n.r.USER_DEF_PREFERRED_MAIL).subscribe(f=>{this.preferredMail=f,this.handleMailNotDefined(),this.mailDataSource=new c.by([this.preferredMail])})})}handleMailNotDefined(){null==this.preferredMail&&(this.preferredMail={id:-1,beanName:"Attribute",displayName:(0,e.Cz)(n.r.USER_DEF_PREFERRED_MAIL.split(":").pop()),value:new Object("-")})}initNavItems(_){this.navItems=[{cssIcon:"perun-vo",url:`${_}/organizations`,label:"MENU_ITEMS.ADMIN.ORGANIZATIONS",style:"user-btn"},{cssIcon:"perun-group",url:`${_}/groups`,label:"MENU_ITEMS.ADMIN.GROUPS",style:"user-btn"}],window.location.pathname.startsWith("/admin")&&this.navItems.push({cssIcon:"perun-user",url:`${_}/accounts`,label:"MENU_ITEMS.USER.ACCOUNTS",style:"user-btn"},{cssIcon:"perun-identity",url:`${_}/identities`,label:"MENU_ITEMS.USER.IDENTITIES",style:"user-btn"},{cssIcon:"perun-facility-white",url:`${_}/facilities`,label:"MENU_ITEMS.USER.FACILITIES",style:"user-btn"},{cssIcon:"perun-resource",url:`${_}/resources`,label:"MENU_ITEMS.USER.RESOURCES",style:"user-btn"}),this.navItems.push({cssIcon:"perun-attributes",url:`${_}/attributes`,label:"MENU_ITEMS.USER.ATTRIBUTES",style:"user-btn"}),this.navItems.push({cssIcon:"perun-roles",url:`${_}/roles`,label:"MENU_ITEMS.USER.ROLES",style:"user-btn"}),this.navItems.push(this.isServiceUser?{cssIcon:"perun-manager",url:`${_}/associated-users`,label:"MENU_ITEMS.USER.ASSOCIATED_USERS",style:"user-btn"}:{cssIcon:"perun-service-identity",url:`${_}/service-identities`,label:"MENU_ITEMS.USER.SERVICE_IDENTITIES",style:"user-btn"}),this.navItems.push({cssIcon:"perun-ban",url:"bans",label:"MENU_ITEMS.USER.BANS",style:"user-btn"}),window.location.pathname.startsWith("/admin")||this.navItems.push({cssIcon:"perun-settings2",url:`${_}/settings`,label:"MENU_ITEMS.ADMIN.SETTINGS",style:"user-btn"})}}return p.\u0275fac=function(_){return new(_||p)(s.Y36(C.Fv),s.Y36(C.H8),s.Y36(L.d6),s.Y36(i.gz),s.Y36(A.uw))},p.\u0275cmp=s.Xpm({type:p,selectors:[["app-user-overview"]],hostVars:2,hostBindings:function(_,l){2&_&&s.ekj("router-component",l.true)},decls:2,vars:3,consts:[["class","align-cards",4,"ngIf"],[3,"items","size"],[1,"align-cards"],[1,"mat-elevation-z3"],[1,"page-subtitle"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["class","font-weight-bold","mat-cell","",4,"matCellDef"],["matColumnDef","value"],["mat-cell","",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"font-weight-bold"],["mat-cell",""],["mat-icon-button","",1,"ml-3",3,"click"],["mat-row",""]],template:function(_,l){1&_&&(s.YNc(0,h,16,5,"div",0),s._UZ(1,"perun-web-apps-menu-buttons-field",1)),2&_&&(s.Q6J("ngIf",l.inMyProfile),s.xp6(1),s.Q6J("items",l.navItems)("size","small"))},dependencies:[d.O5,y.Hw,S.lW,c.BZ,c.fO,c.w1,c.Dz,c.nj,c.ge,c.ev,c.Gk,b.a8,b.dk,b.dn,b.n5,N.L,U.X$],styles:[".align-cards[_ngcontent-%COMP%]{margin:1rem;display:inline-block;vertical-align:top}"]}),p})()},6097:(W,Z,t)=>{t.d(Z,{t:()=>A});var C=t(61744),c=t(81591),L=t(39646),n=t(48382),e=t(86099),D=t(94650),s=t(94364),i=t(90820);let A=(()=>{class d{constructor(S,b,N,U){this.authzResolverService=S,this.route=b,this.store=N,this.roleService=U,this.roles=new Map,this.showDescription=!0}ngOnInit(){this.outerLoading=!0,this.route.parent.params.subscribe(S=>{S.userId?(this.entityType="USER",this.userId=Number(S.userId)):(this.userId=this.store.getPerunPrincipal().userId,this.entityType="SELF"),this.getData()})}getData(){this.outerLoading=!0,this.roles.clear(),(0,L.of)(this.entityType).pipe((0,e.z)(S=>(0,n.s)(()=>"SELF"===S,(0,L.of)(this.store.getPerunPrincipal().roles),this.authzResolverService.getUserRoles(this.userId)))).subscribe(S=>{const b=Object.keys(S).map(N=>N.toUpperCase());this.roles=this.roleService.prepareRoles(S,b),this.outerLoading=!1})}}return d.\u0275fac=function(S){return new(S||d)(D.Y36(C.Ct),D.Y36(s.gz),D.Y36(c.d6),D.Y36(c.Nj))},d.\u0275cmp=D.Xpm({type:d,selectors:[["app-user-roles"]],hostVars:2,hostBindings:function(S,b){2&S&&D.ekj("router-component",b.true)},decls:1,vars:5,consts:[[3,"outerLoading","roles","entityId","showDescription","entityType","reload","startLoading"]],template:function(S,b){1&S&&(D.TgZ(0,"app-perun-web-apps-roles-page",0),D.NdJ("reload",function(){return b.getData()})("startLoading",function(){return b.outerLoading=!0}),D.qZA()),2&S&&D.Q6J("outerLoading",b.outerLoading)("roles",b.roles)("entityId",b.userId)("showDescription",b.showDescription)("entityType",b.entityType)},dependencies:[i._]}),d})()},46597:(W,Z,t)=>{t.d(Z,{d:()=>h});var C=t(10036),c=t(61744),L=t(95017),n=t(9244),e=t(54668),D=t(94814),s=t(81591),i=t(54004),A=t(63900),d=t(94650),y=t(65412),S=t(94364),b=t(36895),N=t(4859),U=t(51572),P=t(96214),T=t(64877),v=t(89383);function O(u,p){if(1&u&&(d._UZ(0,"app-users-list",6),d.ALo(1,"translate")),2&u){const o=d.oxw();d.Q6J("noUsersFoundLabel",d.lcZ(1,6,"USER_DETAIL.SETTINGS.ASSOCIATED_USERS.NO_ASSOCIATED_USERS"))("disableRouting",o.disableRouting)("displayedColumns",o.displayedColumns)("selection",o.selection)("tableId",o.tableId)("users",o.associatedUsers)}}function g(u,p){1&u&&d._UZ(0,"mat-spinner",7)}let h=(()=>{class u{constructor(o,_,l,I,f){this.dialog=o,this.router=_,this.authResolver=l,this.userManager=I,this.entityStorageService=f,this.loading=!1,this.selection=new L.Ov(!1,[]),this.associatedUsers=[],this.tableId=C.It,this.displayedColumns=["select","id","user","name","email","logins","organization"]}ngOnInit(){this.loading=!0,this.user=this.entityStorageService.getEntity(),this.refreshTable()}refreshTable(){this.loading=!0,this.userManager.getUsersBySpecificUser(this.user.id).pipe((0,i.U)(o=>o.map(_=>_.id)),(0,A.w)(o=>this.userManager.getRichUsersWithAttributesByIds(o))).subscribe(o=>{this.associatedUsers=o,this.selection.clear(),this.setAuth(),this.loading=!1})}setAuth(){this.addAuth=this.authResolver.isAuthorized("addSpecificUserOwner_User_User_policy",[this.user]),this.removeAuth=this.authResolver.isAuthorized("removeSpecificUserOwner_User_User_policy",[this.user]),this.disableRouting=!this.authResolver.isPerunAdminOrObserver()}onAdd(){const o=(0,n.kZ)();o.width="1250px",o.data={userId:this.user.id,theme:"user-theme",isService:!0,target:"USER"},this.dialog.open(e.l,o).afterClosed().subscribe(l=>{l&&this.refreshTable()})}onRemove(){const o=(0,n.kZ)();o.width="650px",o.data={identities:this.selection.selected,userId:this.user.id,specificUser:this.selection.selected[0],isService:!0,theme:"user-theme",targetTitle:"USER",targetDescription:"SERVICE"},this.dialog.open(D.B,o).afterClosed().subscribe(l=>{l&&(this.authResolver.isAuthorized("getUsersBySpecificUser_User_policy",[this.user])?this.refreshTable():this.router.navigate(["/myProfile"],{queryParamsHandling:"preserve"}))})}}return u.\u0275fac=function(o){return new(o||u)(d.Y36(y.uw),d.Y36(S.F0),d.Y36(s.x4),d.Y36(c.Fv),d.Y36(s.fb))},u.\u0275cmp=d.Xpm({type:u,selectors:[["app-user-settings-associated-users"]],decls:13,vars:12,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[3,"noUsersFoundLabel","disableRouting","displayedColumns","selection","tableId","users",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],[3,"noUsersFoundLabel","disableRouting","displayedColumns","selection","tableId","users"],[1,"mr-auto","ml-auto"]],template:function(o,_){1&o&&(d.TgZ(0,"div")(1,"h1",0),d._uU(2),d.ALo(3,"translate"),d.qZA(),d.TgZ(4,"perun-web-apps-refresh-button",1),d.NdJ("refresh",function(){return _.refreshTable()}),d.qZA(),d.TgZ(5,"button",2),d.NdJ("click",function(){return _.onAdd()}),d._uU(6),d.ALo(7,"translate"),d.qZA(),d.TgZ(8,"button",3),d.NdJ("click",function(){return _.onRemove()}),d._uU(9),d.ALo(10,"translate"),d.qZA(),d.YNc(11,O,2,8,"app-users-list",4),d.qZA(),d.YNc(12,g,1,0,"mat-spinner",5)),2&o&&(d.xp6(2),d.Oqu(d.lcZ(3,6,"USER_DETAIL.SETTINGS.ASSOCIATED_USERS.TITLE")),d.xp6(4),d.hij(" ",d.lcZ(7,8,"USER_DETAIL.SETTINGS.ASSOCIATED_USERS.ADD")," "),d.xp6(2),d.Q6J("disabled",0===_.selection.selected.length),d.xp6(1),d.hij(" ",d.lcZ(10,10,"USER_DETAIL.SETTINGS.ASSOCIATED_USERS.REMOVE")," "),d.xp6(2),d.Q6J("ngIf",!_.loading),d.xp6(1),d.Q6J("ngIf",_.loading))},dependencies:[b.O5,N.lW,U.Ou,P.t,T.C,v.X$]}),u})()},97453:(W,Z,t)=>{t.d(Z,{R:()=>h});var C=t(95017),c=t(61744),L=t(10036),n=t(9244),e=t(54668),D=t(94814),s=t(81591),i=t(94650),A=t(94364),d=t(65412),y=t(36895),S=t(4859),b=t(51572),N=t(96214),U=t(64877),P=t(89383);function T(u,p){if(1&u){const o=i.EpF();i.TgZ(0,"button",6),i.NdJ("click",function(){i.CHM(o);const l=i.oxw();return i.KtG(l.onAdd())}),i._uU(1),i.ALo(2,"translate"),i.qZA()}2&u&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"USER_DETAIL.SETTINGS.SERVICE_IDENTITIES.CREATE"),"\n"))}function v(u,p){if(1&u){const o=i.EpF();i.TgZ(0,"button",7),i.NdJ("click",function(){i.CHM(o);const l=i.oxw();return i.KtG(l.onRemove())}),i._uU(1),i.ALo(2,"translate"),i.qZA()}if(2&u){const o=i.oxw();i.Q6J("disabled",0===o.selection.selected.length),i.xp6(1),i.hij(" ",i.lcZ(2,2,"USER_DETAIL.SETTINGS.SERVICE_IDENTITIES.DELETE"),"\n")}}function O(u,p){1&u&&i._UZ(0,"mat-spinner",8)}function g(u,p){if(1&u&&(i._UZ(0,"app-users-list",9),i.ALo(1,"translate")),2&u){const o=i.oxw();i.Q6J("noUsersFoundLabel",i.lcZ(1,6,"USER_DETAIL.SETTINGS.SERVICE_IDENTITIES.NO_IDENTITIES"))("displayedColumns",o.displayedColumns)("selection",o.selection)("tableId",o.tableId)("routeToAdmin",o.routeToAdminSection)("users",o.identities)}}let h=(()=>{class u{constructor(o,_,l,I,f,R){this.route=o,this.dialog=_,this.router=l,this.userManager=I,this.authResolver=f,this.store=R,this.loading=!1,this.selection=new C.Ov(!1,[]),this.identities=[],this.tableId=L.Iz,this.displayedColumns=["select","id","user","name"],this.routeToAdminSection=!0,this.targetTitle="SERVICE",this.targetDescription="SERVICE"}ngOnDestroy(){this.subscription.unsubscribe()}ngOnInit(){this.loading=!0,this.subscription=this.route.parent.params.subscribe(o=>{this.userId=Number(o.userId),this.userId||(this.targetTitle="SERVICE",this.targetDescription="SELF",this.userId=this.store.getPerunPrincipal().userId,this.routeToAdminSection=!1),this.setAuthRights(),this.refreshTable()})}refreshTable(){this.loading=!0,this.userManager.getSpecificUsersByUser(this.userId).subscribe(o=>{this.identities=o,this.selection.clear(),this.loading=!1})}setAuthRights(){this.addIdentity=this.authResolver.isPerunAdmin(),this.removeIdentity=this.authResolver.isAuthorized("removeSpecificUserOwner_User_User_policy",[{id:this.userId,beanName:"User"}])}onAdd(){const o=(0,n.kZ)();o.width="1250px",o.data={userId:this.userId,theme:"user-theme",isService:!1,target:this.targetTitle},this.dialog.open(e.l,o).afterClosed().subscribe(l=>{l&&this.refreshTable()})}onRemove(){const o=(0,n.kZ)();o.width="650px",o.data={identities:this.selection.selected,userId:this.userId,specificUser:this.selection.selected[0],theme:"user-theme",targetTitle:this.targetTitle,targetDescription:this.targetDescription},this.dialog.open(D.B,o).afterClosed().subscribe(l=>{l&&this.refreshTable()})}}return u.\u0275fac=function(o){return new(o||u)(i.Y36(A.gz),i.Y36(d.uw),i.Y36(A.F0),i.Y36(c.Fv),i.Y36(s.x4),i.Y36(s.d6))},u.\u0275cmp=i.Xpm({type:u,selectors:[["app-user-settings-service-identities"]],decls:8,vars:7,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","class","mr-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],["color","warn","class","mr-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],[3,"noUsersFoundLabel","displayedColumns","selection","tableId","routeToAdmin","users",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],[3,"noUsersFoundLabel","displayedColumns","selection","tableId","routeToAdmin","users"]],template:function(o,_){1&o&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.qZA(),i.TgZ(3,"perun-web-apps-refresh-button",1),i.NdJ("refresh",function(){return _.refreshTable()}),i.qZA(),i.YNc(4,T,3,3,"button",2),i.YNc(5,v,3,4,"button",3),i.YNc(6,O,1,0,"mat-spinner",4),i.YNc(7,g,2,8,"app-users-list",5)),2&o&&(i.xp6(1),i.Oqu(i.lcZ(2,5,"USER_DETAIL.SETTINGS.SERVICE_IDENTITIES.TITLE")),i.xp6(3),i.Q6J("ngIf",_.addIdentity),i.xp6(1),i.Q6J("ngIf",_.removeIdentity),i.xp6(1),i.Q6J("ngIf",_.loading),i.xp6(1),i.Q6J("ngIf",!_.loading))},dependencies:[y.O5,S.lW,b.Ou,N.t,U.C,P.X$]}),u})()},38338:(W,Z,t)=>{t.r(Z),t.d(Z,{UsersModule:()=>_t});var C=t(36895),c=t(94364),L=t(74837),n=t(85985),e=t(94650),D=t(61283);let s=(()=>{class r{}return r.\u0275fac=function(a){return new(a||r)},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-user-settings"]],hostVars:2,hostBindings:function(a,m){2&a&&e.ekj("router-component",m.true)},decls:1,vars:0,template:function(a,m){1&a&&e._UZ(0,"app-animated-router-outlet")},dependencies:[D.A]}),r})();var i=t(61744),A=t(51572),d=t(71135);function y(r,E){1&r&&e._UZ(0,"mat-spinner",2)}function S(r,E){if(1&r&&(e.TgZ(0,"div"),e._UZ(1,"perun-web-apps-menu-buttons-field",3),e.qZA()),2&r){const a=e.oxw();e.xp6(1),e.Q6J("items",a.navItems)("size","small")}}let b=(()=>{class r{constructor(a,m){this.route=a,this.userManager=m,this.navItems=[],this.loading=!1}ngOnInit(){window.location.pathname.startsWith("/admin")?(this.loading=!0,this.route.parent.parent.params.subscribe(a=>{const m=Number(a.userId);this.userManager.getUserById(m).subscribe(M=>{this.isServiceUser=M.serviceUser,this.initNavItems(),this.loading=!1},()=>this.loading=!1)})):this.initNavItems()}initNavItems(){this.navItems=[],window.location.pathname.startsWith("/admin")||this.navItems.push({cssIcon:"perun-settings2",url:"/myProfile/settings/passwordReset",label:"MENU_ITEMS.USER.PASSWORD_RESET",style:"user-btn"},{cssIcon:"perun-settings1",url:"/myProfile/settings/guiConfig",label:"MENU_ITEMS.USER.GUI_CONFIG",style:"user-btn"})}}return r.\u0275fac=function(a){return new(a||r)(e.Y36(c.gz),e.Y36(i.Fv))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-user-settings-overview"]],hostVars:2,hostBindings:function(a,m){2&a&&e.ekj("router-component",m.true)},decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"items","size"]],template:function(a,m){1&a&&(e.YNc(0,y,1,0,"mat-spinner",0),e.YNc(1,S,2,2,"div",1)),2&a&&(e.Q6J("ngIf",m.loading),e.xp6(1),e.Q6J("ngIf",!m.loading))},dependencies:[C.O5,A.Ou,d.L]}),r})();var N=t(98973),U=t(37433),P=t(9244),T=t(6335),v=t(3238),O=t(59549),g=t(84385),h=t(89383);function u(r,E){if(1&r&&(e.TgZ(0,"mat-option",5),e._uU(1),e.qZA()),2&r){const a=E.$implicit;e.Q6J("value",a),e.xp6(1),e.hij(" ",a," ")}}let p=(()=>{class r{constructor(a){this.guiConfigService=a,this.tablePageSizeOptions=P.f7}ngOnInit(){this.preferredTablePageSize=this.guiConfigService.getNumber(T.Rc)}updatePreferredTablePageSize(){this.guiConfigService.setNumber(T.Rc,this.preferredTablePageSize)}}return r.\u0275fac=function(a){return new(a||r)(e.Y36(T.Ng))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-user-settings-app-configuration"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[1,"col-12","col-lg-6","p-0"],[1,"w-100"],[3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(a,m){1&a&&(e.TgZ(0,"h1",0),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.TgZ(3,"div",1)(4,"mat-form-field",2)(5,"mat-label"),e._uU(6),e.ALo(7,"translate"),e.qZA(),e.TgZ(8,"mat-select",3),e.NdJ("valueChange",function(Y){return m.preferredTablePageSize=Y})("valueChange",function(){return m.updatePreferredTablePageSize()}),e.YNc(9,u,2,2,"mat-option",4),e.qZA()()()),2&a&&(e.xp6(1),e.Oqu(e.lcZ(2,4,"USER_DETAIL.SETTINGS.GUI_CONFIG.TITLE")),e.xp6(5),e.Oqu(e.lcZ(7,6,"USER_DETAIL.SETTINGS.GUI_CONFIG.PREF_TABLE_PAGE_SIZE")),e.xp6(2),e.Q6J("value",m.preferredTablePageSize),e.xp6(1),e.Q6J("ngForOf",m.tablePageSizeOptions))},dependencies:[C.sg,v.ey,O.KE,O.hX,g.gD,h.X$]}),r})();var o=t(17755),_=t(81591),l=t(77968),I=t(97392),f=t(10266),R=t(4235),B=t(34198),x=t(55660),z=t(31359);const $=function(){return{color:"black"}},V=function(){return["/myProfile"]};function k(r,E){if(1&r&&(e.TgZ(0,"div",1),e._UZ(1,"perun-web-apps-back-button"),e.TgZ(2,"div",2),e._UZ(3,"mat-icon",3),e.ALo(4,"translate"),e.TgZ(5,"div",4)(6,"div",5)(7,"a",6),e.NdJ("auxclick",function(m){return m.preventDefault()}),e._uU(8),e.ALo(9,"userFullName"),e.qZA(),e.TgZ(10,"span",7),e._uU(11),e.qZA()(),e.TgZ(12,"span",8),e._uU(13),e.ALo(14,"translate"),e.ALo(15,"translate"),e.qZA()()(),e._UZ(16,"app-animated-router-outlet"),e.qZA()),2&r){const a=e.oxw();e.xp6(3),e.s9C("matTooltip",e.lcZ(4,9,"MENU_ITEMS.USER.ENTITY")),e.Q6J("ngStyle",e.DdM(17,$)),e.xp6(4),e.Q6J("perunWebAppsMiddleClickRouterLink",e.DdM(18,V))("routerLink",e.DdM(19,V)),e.xp6(1),e.hij(" ",e.lcZ(9,11,a.user)," "),e.xp6(3),e.hij(" \xa0#",a.user.id," "),e.xp6(2),e.lnq(" ",e.lcZ(14,13,"MENU_ITEMS.USER.ENTITY"),", ",e.lcZ(15,15,"MENU_ITEMS.USER.USER_TYPE"),": ",a.getUserType()," ")}}let q=(()=>{class r{constructor(a,m,M,Y){this.sideMenuService=a,this.store=m,this.entityStore=M,this.router=Y}ngOnInit(){this.path=this.router.url,this.router.events.subscribe(()=>{this.path=this.router.url}),this.principal=this.store.getPerunPrincipal(),this.user=this.principal.user,this.entityStore.setEntity(this.user),this.sideMenuService.setUserItems([])}getUserType(){return this.user.serviceUser?"Service":"Person"}}return r.\u0275fac=function(a){return new(a||r)(e.Y36(l.D),e.Y36(_.d6),e.Y36(_.fb),e.Y36(c.F0))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-user-profile"]],decls:1,vars:1,consts:[["class","container-fluid pl-xl-5 pr-xl-5 user-theme",4,"ngIf"],[1,"container-fluid","pl-xl-5","pr-xl-5","user-theme"],[1,"d-flex","page-title-headtitle"],["svgIcon","perun-user-dark",1,"perun-icon","perun-icon-detail",3,"matTooltip","ngStyle"],[1,"page-title-block"],[1,"page-title-headline","d-flex","align-items-center"],[1,"user-link",3,"perunWebAppsMiddleClickRouterLink","routerLink","auxclick"],[1,"text-muted"],[1,"mt-1","entity-info"]],template:function(a,m){1&a&&e.YNc(0,k,17,20,"div",0),2&a&&e.Q6J("ngIf",void 0!==m.user)},dependencies:[C.O5,C.PC,c.yS,I.Hw,f.gM,R.W,B.Y,x.Q,D.A,h.X$,z.d]}),r})();var ee=t(6097),te=t(97453),ne=t(69024),se=t(29862),G=t(65412),F=t(4859);function ie(r,E){1&r&&e._UZ(0,"mat-spinner",11)}function ae(r,E){if(1&r){const a=e.EpF();e.TgZ(0,"button",12),e.NdJ("click",function(){e.CHM(a);const M=e.oxw(2);return e.KtG(M.editUser())}),e.TgZ(1,"mat-icon"),e._uU(2,"edit"),e.qZA()()}}const re=function(){return{color:"black"}},H=function(r){return["/myProfile/service-identities",r]};function oe(r,E){if(1&r&&(e.TgZ(0,"div",1),e._UZ(1,"perun-web-apps-back-button"),e.YNc(2,ie,1,0,"mat-spinner",2),e.TgZ(3,"div",3),e._UZ(4,"mat-icon",4),e.ALo(5,"translate"),e.TgZ(6,"div",5)(7,"div",6)(8,"a",7),e.NdJ("auxclick",function(m){return m.preventDefault()}),e._uU(9),e.ALo(10,"userFullName"),e.qZA(),e.TgZ(11,"span",8),e._uU(12),e.qZA(),e.YNc(13,ae,3,0,"button",9),e.qZA(),e.TgZ(14,"div"),e._uU(15),e.ALo(16,"translate"),e.qZA(),e.TgZ(17,"span",10),e._uU(18),e.ALo(19,"translate"),e.ALo(20,"translate"),e.qZA()()(),e._UZ(21,"app-animated-router-outlet"),e.qZA()),2&r){const a=e.oxw();e.xp6(2),e.Q6J("ngIf",a.loading),e.xp6(2),e.s9C("matTooltip",e.lcZ(5,13,"MENU_ITEMS.USER.ENTITY")),e.Q6J("ngStyle",e.DdM(23,re)),e.xp6(4),e.Q6J("perunWebAppsMiddleClickRouterLink",e.VKq(24,H,a.user.id.toString()))("routerLink",e.VKq(26,H,a.user.id)),e.xp6(1),e.hij(" ",e.lcZ(10,15,a.user)," "),e.xp6(3),e.hij(" \xa0#",a.user.id," "),e.xp6(1),e.Q6J("ngIf",a.authResolver.isPerunAdmin()),e.xp6(2),e.AsE("",e.lcZ(16,17,"ADMIN_USER.UUID"),": ",a.user.uuid,""),e.xp6(3),e.lnq(" ",e.lcZ(19,19,"MENU_ITEMS.USER.ENTITY"),", ",e.lcZ(20,21,"MENU_ITEMS.USER.USER_TYPE"),": ",a.getUserType()," ")}}let le=(()=>{class r{constructor(a,m,M,Y,w,J,Q){this.sideMenuService=a,this.usersService=m,this.sideMenuItemService=M,this.route=Y,this.dialog=w,this.authResolver=J,this.entityStorageService=Q,this.loading=!1}ngOnInit(){this.loading=!0,this.route.params.subscribe(a=>{const m=Number(a.userId);this.entityStorageService.setEntity({id:m,beanName:"User"}),this.usersService.getUserById(m).subscribe(M=>{this.user=M;const Y=this.sideMenuItemService.parseServiceIdentity(M);this.sideMenuService.setUserItems([Y]),this.loading=!1},()=>this.loading=!1)})}getUserType(){return this.user.serviceUser?"Service":"Person"}editUser(){const a=(0,P.kZ)();a.width="450px",a.data={theme:"admin-theme",user:this.user},this.dialog.open(se.x,a).afterClosed().subscribe(M=>{M&&this.usersService.getUserById(this.user.id).subscribe(Y=>{this.user=Y})})}}return r.\u0275fac=function(a){return new(a||r)(e.Y36(l.D),e.Y36(i.Fv),e.Y36(ne.V),e.Y36(c.gz),e.Y36(G.uw),e.Y36(_.x4),e.Y36(_.fb))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-service-identity-detail-page"]],decls:1,vars:1,consts:[["class","container-fluid pl-xl-5 pr-xl-5 user-theme",4,"ngIf"],[1,"container-fluid","pl-xl-5","pr-xl-5","user-theme"],["class","mr-auto ml-auto",4,"ngIf"],[1,"d-flex","page-title-headtitle"],["svgIcon","perun-service-identity",1,"perun-icon","perun-icon-detail",3,"matTooltip","ngStyle"],[1,"page-title-block"],[1,"page-title-headline","d-flex","align-items-center"],[1,"user-link",3,"perunWebAppsMiddleClickRouterLink","routerLink","auxclick"],[1,"text-muted"],["mat-icon-button","",3,"click",4,"ngIf"],[1,"mt-1","entity-info"],[1,"mr-auto","ml-auto"],["mat-icon-button","",3,"click"]],template:function(a,m){1&a&&e.YNc(0,oe,22,28,"div",0),2&a&&e.Q6J("ngIf",void 0!==m.user)},dependencies:[C.O5,C.PC,c.yS,I.Hw,F.lW,A.Ou,f.gM,R.W,B.Y,x.Q,D.A,h.X$,z.d]}),r})(),_e=(()=>{class r{constructor(a){this.entityStorageService=a,this.navItems=[]}ngOnInit(){this.serviceAccount=this.entityStorageService.getEntity(),this.initNavItems()}initNavItems(){this.navItems=[{cssIcon:"perun-manager",url:`/myProfile/service-identities/${this.serviceAccount.id}/associated-users`,label:"MENU_ITEMS.USER.ASSOCIATED_USERS",style:"user-btn"},{cssIcon:"perun-notification",url:`/myProfile/service-identities/${this.serviceAccount.id}/mailing-lists`,label:"MENU_ITEMS.USER.MAILING_LISTS",style:"user-btn"},{cssIcon:"perun-statistics",url:`/myProfile/service-identities/${this.serviceAccount.id}/data-quotas`,label:"MENU_ITEMS.USER.DATA_QUOTAS",style:"user-btn"},{cssIcon:"perun-authentication",url:`/myProfile/service-identities/${this.serviceAccount.id}/authentication`,label:"MENU_ITEMS.USER.AUTHENTICATION",style:"user-btn"}]}}return r.\u0275fac=function(a){return new(a||r)(e.Y36(_.fb))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-service-identity-overview"]],decls:1,vars:2,consts:[[3,"items","size"]],template:function(a,m){1&a&&e._UZ(0,"perun-web-apps-menu-buttons-field",0),2&a&&e.Q6J("items",m.navItems)("size","small")},dependencies:[d.L]}),r})();var ce=t(46597),pe=t(74006);let ue=(()=>{class r{constructor(a){this.entityStorageService=a}ngOnInit(){this.user=this.entityStorageService.getEntity()}}return r.\u0275fac=function(a){return new(a||r)(e.Y36(_.fb))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-perun-web-apps-user-settings-mailing-lists"]],decls:1,vars:2,consts:[[3,"user","isService"]],template:function(a,m){1&a&&e._UZ(0,"perun-web-apps-mailing-lists",0),2&a&&e.Q6J("user",m.user)("isService",!0)},dependencies:[pe.E]}),r})();var de=t(2541);let me=(()=>{class r{constructor(a){this.entityStorageService=a}ngOnInit(){this.user=this.entityStorageService.getEntity()}}return r.\u0275fac=function(a){return new(a||r)(e.Y36(_.fb))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-perun-web-apps-user-settings-data-quotas"]],decls:1,vars:1,consts:[[3,"user"]],template:function(a,m){1&a&&e._UZ(0,"perun-web-apps-data-quotas",0),2&a&&e.Q6J("user",m.user)},dependencies:[de.m]}),r})(),ge=(()=>{class r{constructor(a){this.entityStorageService=a,this.navItems=[]}ngOnInit(){this.serviceAccount=this.entityStorageService.getEntity(),this.initNavItems()}initNavItems(){this.navItems=[{cssIcon:"perun-logins",url:`/myProfile/service-identities/${this.serviceAccount.id}/authentication/logins`,label:"MENU_ITEMS.USER.LOGINS",style:"user-btn"},{cssIcon:"perun-certificates",url:`/myProfile/service-identities/${this.serviceAccount.id}/authentication/certificates`,label:"MENU_ITEMS.USER.CERTIFICATES",style:"user-btn"},{cssIcon:"perun-key",url:`/myProfile/service-identities/${this.serviceAccount.id}/authentication/ssh-keys`,label:"MENU_ITEMS.USER.SSH_KEYS",style:"user-btn"}]}}return r.\u0275fac=function(a){return new(a||r)(e.Y36(_.fb))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-service-identity-authentication-overview"]],decls:1,vars:2,consts:[[3,"items","size"]],template:function(a,m){1&a&&e._UZ(0,"perun-web-apps-menu-buttons-field",0),2&a&&e.Q6J("items",m.navItems)("size","small")},dependencies:[d.L]}),r})();var K=t(24006),he=t(28499),fe=t(95406);function Ee(r,E){if(1&r&&(e.TgZ(0,"div",7),e._UZ(1,"app-login-password-form-with-generate-option",8),e.qZA()),2&r){const a=e.oxw();e.xp6(1),e.Q6J("formGroup",a.formGroup)("filteredNamespace",a.data.filteredNamespaces)}}function Ie(r,E){1&r&&e._UZ(0,"mat-spinner",9)}let Te=(()=>{class r{constructor(a,m,M,Y,w,J,Q,ct,pt,ut){this.dialogRef=a,this.data=m,this.formBuilder=M,this.usersManagerService=Y,this.membersManagerService=w,this.attributesManagerService=J,this.apiRequestConfiguration=Q,this.notificator=ct,this.translate=pt,this.cd=ut,this.processing=!1}ngOnInit(){this.userId=this.data.userId,this.formGroup=this.formBuilder.group({namespaceCtrl:["Not selected"],loginCtrl:["",[K.kI.pattern("^[a-z][a-z0-9_-]+$"),K.kI.maxLength(15),K.kI.minLength(2)]],passwordCtrl:["",K.kI.required,[(0,he.yT)(null,this.usersManagerService,this.apiRequestConfiguration)]],passwordAgainCtrl:[""],generatePasswordCtrl:[!0]},{validators:P.dN.passwordMatchValidator})}ngAfterViewInit(){this.cd.detectChanges()}onSetLogin(){this.processing=!0;const a=this.formGroup.get("namespaceCtrl").value.toLowerCase(),m=this.formGroup.get("loginCtrl").value;if(m)this.setLogin(a,m);else{const M=`urn:perun:user:attribute-def:def:login-namespace:${a}`;this.attributesManagerService.getUserAttributeByName(this.userId,"urn:perun:user:attribute-def:core:lastName").subscribe(Y=>{this.usersManagerService.generateAccountForName(a,Y.value).subscribe(J=>{this.setLogin(a,J[M])},()=>this.processing=!1)})}}setLogin(a,m){this.usersManagerService.setLogin(this.userId,m,a).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.SET_LOGIN.SUCCESS_LOGIN")),this.setPassword()},()=>{this.processing=!1})}setPassword(){const a=this.formGroup.get("namespaceCtrl").value.toLowerCase(),m=this.formGroup.get("passwordCtrl").value;if(this.formGroup.get("generatePasswordCtrl").value){if(!this.formGroup.get("loginCtrl").value)return;this.usersManagerService.reserveRandomPassword(this.userId,a).subscribe(()=>{this.usersManagerService.validatePasswordForUser(this.userId,a).subscribe(()=>{this.dialogRef.close(!0)},()=>{this.processing=!1})},()=>{this.processing=!1})}else this.usersManagerService.reservePasswordForUser({user:this.userId,namespace:a,password:m}).subscribe(()=>{this.usersManagerService.validatePasswordForUser(this.userId,a).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.SET_LOGIN.SUCCESS_PASSWORD")),this.dialogRef.close(!0)},()=>{this.processing=!1})},()=>{this.processing=!1})}onCancel(){this.dialogRef.close(!1)}}return r.\u0275fac=function(a){return new(a||r)(e.Y36(G.so),e.Y36(G.WI),e.Y36(K.QS),e.Y36(i.Fv),e.Y36(i.uq),e.Y36(i.H8),e.Y36(_.F5),e.Y36(_.V6),e.Y36(h.sK),e.Y36(e.sBO))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-perun-web-apps-set-login-dialog"]],decls:13,vars:12,consts:[[1,"vo-theme"],[1,"mat-dialog-title"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],["mat-dialog-content","",1,"dialog-container"],[3,"formGroup","filteredNamespace"],[1,"ml-auto","mr-auto"]],template:function(a,m){1&a&&(e.TgZ(0,"div",0)(1,"h1",1),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.YNc(4,Ee,2,2,"div",2),e.YNc(5,Ie,1,0,"mat-spinner",3),e.TgZ(6,"div",4)(7,"button",5),e.NdJ("click",function(){return m.onCancel()}),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"button",6),e.NdJ("click",function(){return m.onSetLogin()}),e._uU(11),e.ALo(12,"translate"),e.qZA()()()),2&a&&(e.xp6(2),e.Oqu(e.lcZ(3,6,"DIALOGS.SET_LOGIN.TITLE")),e.xp6(2),e.Q6J("ngIf",!m.processing),e.xp6(1),e.Q6J("ngIf",m.processing),e.xp6(3),e.hij(" ",e.lcZ(9,8,"DIALOGS.SET_LOGIN.CANCEL")," "),e.xp6(2),e.Q6J("disabled","Not selected"===m.formGroup.get("namespaceCtrl").value||m.formGroup.invalid||m.formGroup.pending||m.processing),e.xp6(1),e.hij(" ",e.lcZ(12,10,"DIALOGS.SET_LOGIN.SET_LOGIN")," "))},dependencies:[C.O5,K.JL,K.sg,F.lW,G.xY,G.H8,A.Ou,fe.r,h.X$]}),r})();var j=t(96214),ve=t(53599);const Ue=["logins"];let Ce=(()=>{class r{constructor(a,m){this.dialog=a,this.entityStorageService=m,this.filteredNamespaces=[]}ngOnInit(){this.userId=this.entityStorageService.getEntity().id}onAdd(){const a=(0,P.kZ)();a.width="500px",a.data={userId:this.userId,filteredNamespaces:this.filteredNamespaces},this.dialog.open(Te,a).afterClosed().subscribe(M=>{M&&this.logins.refreshTable()})}}return r.\u0275fac=function(a){return new(a||r)(e.Y36(G.uw),e.Y36(_.fb))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-perun-web-apps-user-settings-logins"]],viewQuery:function(a,m){if(1&a&&e.Gf(Ue,5),2&a){let M;e.iGM(M=e.CRH())&&(m.logins=M.first)}},decls:9,vars:7,consts:[[1,"page-title"],[3,"refresh"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],[3,"authenticationPage","filteredNamespaces"],["logins",""]],template:function(a,m){if(1&a){const M=e.EpF();e.TgZ(0,"h1",0),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.TgZ(3,"perun-web-apps-refresh-button",1),e.NdJ("refresh",function(){e.CHM(M);const w=e.MAs(8);return e.KtG(w.refreshTable())}),e.qZA(),e.TgZ(4,"button",2),e.NdJ("click",function(){return m.onAdd()}),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"perun-web-apps-password-reset",3,4),e.NdJ("filteredNamespaces",function(w){return m.filteredNamespaces=w}),e.qZA()}2&a&&(e.xp6(1),e.Oqu(e.lcZ(2,3,"USER_DETAIL.SETTINGS.LOGINS.TITLE")),e.xp6(4),e.hij(" ",e.lcZ(6,5,"USER_DETAIL.SETTINGS.LOGINS.ADD"),"\n"),e.xp6(2),e.Q6J("authenticationPage",!0))},dependencies:[F.lW,j.t,ve.N,h.X$]}),r})(),Ae=(()=>{class r{}return r.\u0275fac=function(a){return new(a||r)},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-service-identity-authentication"]],hostVars:2,hostBindings:function(a,m){2&a&&e.ekj("router-component",m.true)},decls:1,vars:0,template:function(a,m){1&a&&e._UZ(0,"app-animated-router-outlet")},dependencies:[D.A]}),r})();var Se=t(64080),De=t(95017),be=t(21029),Oe=t(53984);const Me=["list"];function Re(r,E){1&r&&e._UZ(0,"mat-spinner",5)}const Pe=function(r){return[r]};function Le(r,E){if(1&r&&e._UZ(0,"perun-web-apps-attributes-list",6,7),2&r){const a=e.oxw();e.Q6J("attributes",e.VKq(2,Pe,a.certificates))("selection",a.selection)}}let ye=(()=>{class r{constructor(a,m,M){this.entityStorageService=a,this.attributesManagerService=m,this.dialog=M,this.selection=new De.Ov(!0,[])}ngOnInit(){this.userId=this.entityStorageService.getEntity().id,this.refresh()}refresh(){this.loading=!0,this.attributesManagerService.getUserAttributeByName(this.userId,Se.r.USER_DEF_CERTIFICATES).subscribe(a=>{this.certificates=a,this.selection.clear(),this.loading=!1})}save(){this.list.updateMapAttributes();const a=(0,P.kZ)();a.width="450px",a.data={entityId:this.userId,entity:"user",attributes:this.selection.selected},this.dialog.open(be.wA,a).afterClosed().subscribe(M=>{M&&this.refresh()})}}return r.\u0275fac=function(a){return new(a||r)(e.Y36(_.fb),e.Y36(i.H8),e.Y36(G.uw))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-service-identity-certificates"]],viewQuery:function(a,m){if(1&a&&e.Gf(Me,5),2&a){let M;e.iGM(M=e.CRH())&&(m.list=M.first)}},decls:9,vars:9,consts:[[1,"page-title"],[1,"mt-2",3,"refresh"],["color","accent","mat-flat-button","",1,"mr-2","mt-2",3,"disabled","click"],["class","ml-auto mr-auto",4,"ngIf"],[3,"attributes","selection",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"attributes","selection"],["list",""]],template:function(a,m){1&a&&(e.TgZ(0,"h1",0),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.TgZ(3,"perun-web-apps-refresh-button",1),e.NdJ("refresh",function(){return m.refresh()}),e.qZA(),e.TgZ(4,"button",2),e.NdJ("click",function(){return m.save()}),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.YNc(7,Re,1,0,"mat-spinner",3),e.YNc(8,Le,2,4,"perun-web-apps-attributes-list",4)),2&a&&(e.xp6(1),e.Oqu(e.lcZ(2,5,"USER_DETAIL.SETTINGS.CERTIFICATES.TITLE")),e.xp6(3),e.Q6J("disabled",0===m.selection.selected.length),e.xp6(1),e.hij(" ",e.lcZ(6,7,"USER_DETAIL.SETTINGS.CERTIFICATES.SAVE"),"\n"),e.xp6(2),e.Q6J("ngIf",m.loading),e.xp6(1),e.Q6J("ngIf",!m.loading))},dependencies:[C.O5,F.lW,A.Ou,j.t,Oe.p,h.X$]}),r})();var Ne=t(51403);const Ze=[{path:"",component:q,children:[{path:"",component:o.Z,data:{animation:"UserOverviewPage"}},{path:"attributes",component:N.u,data:{animation:"UserAttributesPage"}},{path:"organizations",component:L.j,data:{animation:"UserOrganizationsPage",showPrincipal:!0}},{path:"groups",component:n.u,data:{animation:"UserGroupsPage",showPrincipal:!0}},{path:"roles",component:ee.t,data:{animation:"UserRolesPage"}},{path:"service-identities",component:te.R,data:{animation:"UserServiceIdentities"}},{path:"bans",component:Ne.Q,data:{animation:"UserBansPage"}},{path:"settings",component:s,children:[{path:"",component:b,data:{animation:"UserSettingsOverviewPage"}},{path:"passwordReset",component:U.Nj,data:{animation:"PasswordResetPage"}},{path:"guiConfig",component:p,data:{animation:"UserAppConfigurationPage"}}]}]},{path:"service-identities/:userId",component:le,children:[{path:"",component:_e},{path:"associated-users",component:ce.d},{path:"authentication",component:Ae,children:[{path:"",component:ge},{path:"logins",component:Ce},{path:"certificates",component:ye},{path:"ssh-keys",component:U.N7}]},{path:"mailing-lists",component:ue},{path:"data-quotas",component:me}]}];let Be=(()=>{class r{}return r.\u0275fac=function(a){return new(a||r)},r.\u0275mod=e.oAB({type:r}),r.\u0275inj=e.cJS({imports:[c.Bz.forChild(Ze),c.Bz]}),r})();var xe=t(47957),Ye=t(284),We=t(23267),Ke=t(37084),we=t(96308),Ge=t(30671),Fe=t(3848),Je=t(35423),Qe=t(56709),ze=t(17009),Ve=t(73162),He=t(90455),je=t(99602),Xe=t(71948),$e=t(44850),ke=t(98739),X=t(73546),qe=t(86257),et=t(73555),tt=t(77331),nt=t(28255),st=t(67376),it=t(63189),at=t(42673),rt=t(11243),ot=t(19516),lt=t(14264);let _t=(()=>{class r{constructor(a){this.translate=a,a.addLangs(["en","cs"])}}return r.\u0275fac=function(a){return new(a||r)(e.LFG(h.sK))},r.\u0275mod=e.oAB({type:r}),r.\u0275inj=e.cJS({imports:[C.ez,Be,xe.Bb,Ye.c,O.lN,K.UX,K.u5,I.Ps,We.SJ,Ke.To,h.aw.forChild({}),F.ot,we.JX,Ge.p0,Fe.Nh,Je.dp,F.ot,Qe.p9,G.Is,g.LD,ze.ZX,A.Cq,Ve.Cv,f.AV,He.rP,je.FA,v.XK,Xe.Fk,$e.t,v.si,ke.TU,X.QW,qe.T5,et._t,X.QW,tt.Hi,nt.Tx,st.Cl,it.r,at.g,U.ez,rt.r,ot.d4,lt.m]}),r})()}}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/462.6f501b5cb3f7f207.js b/dist/apps/admin-gui/462.6f501b5cb3f7f207.js deleted file mode 100644 index eb22b15ae..000000000 --- a/dist/apps/admin-gui/462.6f501b5cb3f7f207.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin_gui=self.webpackChunkadmin_gui||[]).push([[462],{15935:(T,v,n)=>{n.d(v,{D:()=>K});var f=n(95017),E=n(96308),c=n(30671),l=n(9244),d=n(69723),e=n(94650),t=n(36895),D=n(56709),h=n(98380),O=n(18750),p=n(89383),g=n(9185),s=n(8231),_=n(14849),b=n(37677);function C(i,o){if(1&i){const a=e.EpF();e.TgZ(0,"th",16)(1,"mat-checkbox",17),e.NdJ("change",function(u){e.CHM(a);const m=e.oxw(2);return e.KtG(u?m.masterToggle():null)}),e.ALo(2,"translate"),e.ALo(3,"masterCheckboxLabel"),e.qZA()()}if(2&i){const a=e.oxw().ngIf,r=e.oxw();e.xp6(1),e.Q6J("aria-label",e.lcZ(2,3,e.lcZ(3,5,a.all)))("checked",r.selection.hasValue()&&a.all)("indeterminate",r.selection.hasValue()&&!a.all)}}const M=function(i){return{name:i}};function x(i,o){if(1&i){const a=e.EpF();e.TgZ(0,"td",18)(1,"mat-checkbox",19),e.NdJ("change",function(u){const W=e.CHM(a).$implicit,Y=e.oxw(2);return e.KtG(u?Y.selection.toggle(W):null)})("click",function(u){return u.stopPropagation()}),e.ALo(2,"translate"),e.ALo(3,"checkboxLabel"),e.qZA()()}if(2&i){const a=o.$implicit,r=e.oxw(2);e.xp6(1),e.Q6J("aria-label",e.xi3(2,2,e.lcZ(3,5,r.selection.isSelected(a)),e.VKq(7,M,a.name)))("checked",r.selection.isSelected(a))}}function A(i,o){1&i&&(e.ynx(0,13),e.YNc(1,C,4,7,"th",14),e.YNc(2,x,4,9,"td",15),e.BQk())}function S(i,o){1&i&&(e.TgZ(0,"th",20),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&i&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.EXT_SOURCES_LIST.ID")," "))}function I(i,o){if(1&i&&(e.TgZ(0,"td",21),e._uU(1),e.qZA()),2&i){const a=o.$implicit;e.xp6(1),e.Oqu(a.id)}}function P(i,o){1&i&&(e.TgZ(0,"th",20),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&i&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.EXT_SOURCES_LIST.NAME")," "))}function L(i,o){if(1&i&&(e.TgZ(0,"td",22),e.ALo(1,"lowercase"),e._uU(2),e.qZA()),2&i){const a=o.$implicit;e.Q2q("data-cy","",e.lcZ(1,2,a.name),"-name-td"),e.xp6(2),e.hij(" ",a.name," ")}}function R(i,o){1&i&&(e.TgZ(0,"th",20),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&i&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.EXT_SOURCES_LIST.TYPE")," "))}function y(i,o){if(1&i&&(e.TgZ(0,"td",22),e._uU(1),e.ALo(2,"extSourceType"),e.qZA()),2&i){const a=o.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,a.type))}}function U(i,o){1&i&&e._UZ(0,"tr",23)}function Z(i,o){1&i&&e._UZ(0,"tr",24)}function w(i,o){1&i&&(e.TgZ(0,"perun-web-apps-alert",25),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&i&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.EXT_SOURCES_LIST.NO_EXT_SOURCES"),"\n"))}function B(i,o){1&i&&(e.TgZ(0,"perun-web-apps-alert",25),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&i&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.EXT_SOURCES_LIST.NO_FILTER_RESULTS"),"\n"))}const N=function(i){return{all:i}};let K=(()=>{class i{constructor(a,r){this.authResolver=a,this.tableCheckbox=r,this.selection=new f.Ov,this.filterValue="",this.displayedColumns=["select","id","name","type"],this.exporting=!1,this.pageSizeOptions=l.f7}set matSort(a){this.sort=a,this.setDataSource()}static getDataForColumn(a,r){switch(r){case"id":return a.id.toString();case"type":return a.type.substring(40);case"name":return a.name;default:return""}}ngAfterViewInit(){this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(a=>"id"!==a)),this.dataSource=new c.by(this.extSources),this.setDataSource()}exportAllData(a){(0,l.O6)((0,l.Xn)(this.dataSource.filteredData,this.displayedColumns,i.getDataForColumn),a)}exportDisplayedData(a){const r=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,u=r+this.dataSource.paginator.pageSize;(0,l.O6)((0,l.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(r,u),this.displayedColumns,i.getDataForColumn),a)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(a,r)=>(0,l.Sd)(a,r,this.displayedColumns,i.getDataForColumn),this.dataSource.sortData=(a,r)=>(0,l.pR)(a,r,i.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}}return i.\u0275fac=function(a){return new(a||i)(e.Y36(d.x4),e.Y36(d.UA))},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-ext-sources-list"]],viewQuery:function(a,r){if(1&a&&(e.Gf(l.l9,7),e.Gf(E.YE,7)),2&a){let u;e.iGM(u=e.CRH())&&(r.child=u.first),e.iGM(u=e.CRH())&&(r.matSort=u.first)}},inputs:{extSources:"extSources",selection:"selection",filterValue:"filterValue",displayedColumns:"displayedColumns",tableId:"tableId"},features:[e.TTD],decls:18,vars:15,consts:[[1,"card","mt-2",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","type"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(a,r){1&a&&(e.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),e.NdJ("exportDisplayedData",function(m){return r.exportDisplayedData(m)})("exportAllData",function(m){return r.exportAllData(m)}),e.TgZ(2,"table",2),e.YNc(3,A,3,0,"ng-container",3),e.ALo(4,"isAllSelected"),e.ynx(5,4),e.YNc(6,S,3,3,"th",5),e.YNc(7,I,2,1,"td",6),e.BQk(),e.ynx(8,7),e.YNc(9,P,3,3,"th",5),e.YNc(10,L,3,4,"td",8),e.BQk(),e.ynx(11,9),e.YNc(12,R,3,3,"th",5),e.YNc(13,y,3,3,"td",8),e.BQk(),e.YNc(14,U,1,0,"tr",10),e.YNc(15,Z,1,0,"tr",11),e.qZA()()(),e.YNc(16,w,3,3,"perun-web-apps-alert",12),e.YNc(17,B,3,3,"perun-web-apps-alert",12)),2&a&&(e.Q6J("hidden",0===r.extSources.length||0===r.dataSource.filteredData.length),e.xp6(1),e.Q6J("pageSizeOptions",r.pageSizeOptions)("dataLength",r.dataSource.filteredData.length)("tableId",r.tableId),e.xp6(1),e.Q6J("dataSource",r.dataSource),e.xp6(1),e.Q6J("ngIf",e.VKq(13,N,e.xi3(4,10,r.dataSource,r.selection.selected.length))),e.xp6(11),e.Q6J("matHeaderRowDef",r.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",r.displayedColumns),e.xp6(1),e.Q6J("ngIf",0===r.extSources.length),e.xp6(1),e.Q6J("ngIf",0===r.dataSource.filteredData.length&&0!==r.extSources.length))},dependencies:[t.O5,E.YE,E.nU,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.ge,c.ev,c.XQ,c.Gk,D.oG,h.w,O.l,t.i8,p.X$,g.I,s.G,_.r,b.A]}),i})()},60526:(T,v,n)=>{n.d(v,{b:()=>K});var f=n(32105),E=n(9244),c=n(21029),l=n(30671),d=n(69723),e=n(64080),t=n(94650),D=n(65412),h=n(89383),O=n(36895),p=n(97392),g=n(4859),s=n(51572),_=n(73546),b=n(69773),C=n(21757),M=n(38993),x=n(62383),A=n(21330);function S(i,o){1&i&&t._UZ(0,"mat-spinner",4)}function I(i,o){1&i&&t._UZ(0,"th",12)}function P(i,o){if(1&i&&(t.TgZ(0,"td",13),t._uU(1),t.qZA()),2&i){const a=o.$implicit;t.xp6(1),t.hij("",a,":")}}function L(i,o){1&i&&t._UZ(0,"th",12)}function R(i,o){if(1&i){const a=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(){t.CHM(a);const u=t.oxw(4);return t.KtG(u.changeStatus())}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA()()}}function y(i,o){if(1&i&&(t.TgZ(0,"div")(1,"i"),t.ALo(2,"memberStatusIconColor"),t._uU(3),t.ALo(4,"memberStatusIcon"),t.qZA(),t.TgZ(5,"b",15),t._uU(6),t.ALo(7,"transformMemberStatus"),t.qZA(),t.YNc(8,R,3,0,"button",16),t.ALo(9,"memberStatusDisabled"),t.qZA()),2&i){const a=t.oxw(3);t.xp6(1),t.Gre("material-icons vert-center mr-1 ",t.lcZ(2,6,a.member),""),t.xp6(2),t.hij(" ",t.lcZ(4,8,a.member.status)," "),t.xp6(3),t.hij(" ",t.lcZ(7,10,a.member.status)," "),t.xp6(2),t.Q6J("ngIf",a.authResolver.isThisVoAdmin(a.vo.id)&&!t.lcZ(9,12,a.member))}}function U(i,o){if(1&i){const a=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(){t.CHM(a);const u=t.oxw(4);return t.KtG(u.changeVoExpiration(!1))}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA()()}}function Z(i,o){if(1&i&&(t.TgZ(0,"div")(1,"i",18),t._uU(2),t.ALo(3,"parseDate"),t.qZA(),t.YNc(4,U,3,0,"button",16),t.ALo(5,"memberStatusDisabled"),t.qZA()),2&i){const a=t.oxw(3);t.xp6(2),t.hij(" ",t.lcZ(3,2,a.voExpiration)," "),t.xp6(2),t.Q6J("ngIf",a.authResolver.isThisVoAdmin(a.vo.id)&&!t.lcZ(5,4,a.member))}}function w(i,o){if(1&i&&(t.TgZ(0,"td",14),t.YNc(1,y,10,14,"div",3),t.YNc(2,Z,6,6,"div",3),t.qZA()),2&i){const a=o.$implicit;t.xp6(1),t.Q6J("ngIf","Status"===a),t.xp6(1),t.Q6J("ngIf","Expiration"===a)}}function B(i,o){1&i&&t._UZ(0,"tr",19)}function N(i,o){if(1&i&&(t.TgZ(0,"div")(1,"table",5),t.ynx(2,6),t.YNc(3,I,1,0,"th",7),t.YNc(4,P,2,1,"td",8),t.BQk(),t.ynx(5,9),t.YNc(6,L,1,0,"th",7),t.YNc(7,w,3,2,"td",10),t.BQk(),t.YNc(8,B,1,0,"tr",11),t.qZA()()),2&i){const a=t.oxw();t.xp6(1),t.Q6J("dataSource",a.voMembershipDataSource),t.xp6(7),t.Q6J("matRowDefColumns",a.displayedColumns)}}let K=(()=>{class i{constructor(a,r,u,m,W,Y){this.dialog=a,this.authResolver=r,this.apiRequest=u,this.attributesManager=m,this.translate=W,this.notificator=Y,this.voMembershipDataSource=new l.by,this.voExpiration="",this.displayedColumns=["attName","attValue"]}ngOnChanges(){this.voMembershipDataSource=new l.by(["Status","Expiration"]),this.refreshVoExpiration()}changeStatus(){const a=(0,E.kZ)();a.width="600px",a.data={member:this.member,voId:this.vo.id};const r=this.member.status;this.dialog.open(c.pf,a).afterClosed().subscribe(m=>{m&&(this.member=m,("VALID"===r&&("EXPIRED"===m.status||"DISABLED"===m.status)||"VALID"===m.status)&&this.changeVoExpiration(!0))})}changeVoExpiration(a){const r=(0,E.kZ)();r.width="400px",r.data={voId:this.vo.id,memberId:this.member.id,expirationAttr:this.voExpirationAtt,status:this.member.status,statusChanged:a},this.dialog.open(c.kZ,r).afterClosed().subscribe(m=>{m.success&&(m.member&&(this.member=m.member),this.refreshVoExpiration())})}refreshVoExpiration(){this.loading=!0,this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getMemberAttributeByName(this.member.id,e.r.MEMBER_DEF_EXPIRATION).subscribe(a=>{this.voExpirationAtt=a,this.voExpiration=a.value?a.value:this.translate.instant("MEMBER_DETAIL.OVERVIEW.NEVER_EXPIRES"),this.loading=!1},a=>{"PrivilegeException"!==a.name?this.notificator.showError(a.name):this.voMembershipDataSource=new l.by(["Status"]),this.loading=!1})}}return i.\u0275fac=function(a){return new(a||i)(t.Y36(D.uw),t.Y36(d.x4),t.Y36(d.F5),t.Y36(f.H8),t.Y36(h.sK),t.Y36(d.V6))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-member-overview-membership"]],inputs:{member:"member",vo:"vo"},features:[t.TTD],decls:9,vars:5,consts:[[1,"mat-elevation-z3","membership-card"],[1,"page-subtitle"],["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],["mat-table","",1,"ml-auto","mr-auto",3,"dataSource"],["matColumnDef","attName"],["mat-header-cell","",4,"matHeaderCellDef"],["class","font-weight-bold","mat-cell","",4,"matCellDef"],["matColumnDef","attValue"],["class","column-center","mat-cell","",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"font-weight-bold"],["mat-cell","",1,"column-center"],[1,"vert-top"],["mat-icon-button","",3,"click",4,"ngIf"],["mat-icon-button","",3,"click"],[1,"column-center"],["mat-row",""]],template:function(a,r){1&a&&(t.TgZ(0,"mat-card",0)(1,"mat-card-header")(2,"mat-card-title")(3,"h1",1),t._uU(4),t.ALo(5,"translate"),t.qZA()()(),t.TgZ(6,"mat-card-content"),t.YNc(7,S,1,0,"mat-spinner",2),t.YNc(8,N,9,2,"div",3),t.qZA()()),2&a&&(t.xp6(4),t.hij(" ",t.lcZ(5,3,"MEMBER_DETAIL.OVERVIEW.ORGANIZATION_MEMBERSHIP")," "),t.xp6(3),t.Q6J("ngIf",r.loading),t.xp6(1),t.Q6J("ngIf",!r.loading))},dependencies:[O.O5,p.Hw,g.lW,l.BZ,l.fO,l.w1,l.Dz,l.nj,l.ge,l.ev,l.Gk,s.Ou,_.a8,_.dk,_.dn,_.n5,h.X$,b.u,C.f,M.n,x.M,A.r],styles:[".membership-card[_ngcontent-%COMP%]{max-width:400px}.vert-center[_ngcontent-%COMP%]{vertical-align:middle!important}"]}),i})()},21330:(T,v,n)=>{n.d(v,{r:()=>E});var f=n(94650);let E=(()=>{class c{transform(d,e){return"valid"!==d.toLowerCase()||e&&"valid"!==d.toLowerCase()?d:"ACTIVE"}}return c.\u0275fac=function(d){return new(d||c)},c.\u0275pipe=f.Yjl({name:"transformMemberStatus",type:c,pure:!0}),c})()},71992:(T,v,n)=>{n.d(v,{a:()=>D});var f=n(69723),E=n(32105),c=n(54004),l=n(70262),d=n(39646),e=n(94650),t=n(94364);let D=(()=>{class h{constructor(p,g,s,_,b,C,M,x){this.authResolver=p,this.routePolicyService=g,this.router=s,this.notificator=_,this.apiRequest=b,this.memberManager=C,this.groupManager=M,this.resourceManager=x}static getBeanName(p){switch(p){case"organizations":return"Vo";case"groups":return"Group";case"facilities":case"services":return"Facility";case"resources":return"Resource";case"members":return"Member";default:return""}}static parseUrl(p){const g=p.slice(1).split("/").reverse(),s={key:"",entity:{id:-1,beanName:""}};for(const _ of g){if(Number(_)){if(-1===s.entity.id){s.entity.id=Number(_);continue}"services-status-"===s.key&&(s.entity.id=Number(_));break}s.key=_.concat("-",s.key)}return s.key=s.key.slice(0,s.key.length-1),s.entity.beanName=h.getBeanName(s.key.split("-")[0]),s}canActivateChild(p,g){if(this.authResolver.isPerunAdminOrObserver())return!0;const s=h.parseUrl(g.url);return s.key.startsWith("members")?(this.apiRequest.dontHandleErrorForNext(),this.memberManager.getMemberById(s.entity.id).pipe((0,c.U)(_=>(s.entity.userId=_.userId,s.entity.voId=_.voId,this.finalizeCanActivateChild(s))),(0,l.K)(_=>this.errorRedirectUrl(_)))):s.key.startsWith("groups")?(this.apiRequest.dontHandleErrorForNext(),this.groupManager.getGroupById(s.entity.id).pipe((0,c.U)(_=>(s.entity.voId=_.voId,this.finalizeCanActivateChild(s))),(0,l.K)(_=>this.errorRedirectUrl(_)))):s.key.startsWith("resources")?(this.apiRequest.dontHandleErrorForNext(),this.resourceManager.getResourceById(s.entity.id).pipe((0,c.U)(_=>(s.entity.facilityId=_.facilityId,s.entity.voId=_.voId,this.finalizeCanActivateChild(s))),(0,l.K)(_=>this.errorRedirectUrl(_)))):this.finalizeCanActivateChild(s)}finalizeCanActivateChild(p){return!!this.routePolicyService.canNavigate(p.key,p.entity)||(this.notificator.showRouteError(),this.router.parseUrl("/notAuthorized"))}errorRedirectUrl(p){if("PrivilegeException"===p.name)return this.notificator.showRouteError(),(0,d.of)(this.router.parseUrl("/notAuthorized"))}}return h.\u0275fac=function(p){return new(p||h)(e.LFG(f.x4),e.LFG(f.Ip),e.LFG(t.F0),e.LFG(f.V6),e.LFG(f.F5),e.LFG(E.uq),e.LFG(E.ff),e.LFG(E.xk))},h.\u0275prov=e.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"}),h})()}}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/525.cfe552e0f97a0401.js b/dist/apps/admin-gui/525.cfe552e0f97a0401.js deleted file mode 100644 index 27f2cb1ec..000000000 --- a/dist/apps/admin-gui/525.cfe552e0f97a0401.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin_gui=self.webpackChunkadmin_gui||[]).push([[525],{14525:(Ou,ht,c)=>{c.r(ht),c.d(ht,{VosModule:()=>xu});var m=c(36895),b=c(94364),te=c(25309),W=c(69024),R=c(36769),h=c(32105),g=c(9244),p=c(69723),S=c(64080),w=c(21029),ee=c(41656),ft=c(22158),At=c(82722),t=c(94650),Y=c(77968),u=c(65412),tt=c(15003),Tt=c(32597),y=c(97392),I=c(4859),T=c(51572),N=c(10266),J=c(61283),et=c(4235),G=c(94391),_=c(89383),ie=c(29218),oe=c(45942),ne=c(28764);function ae(i,a){1&i&&t._UZ(0,"mat-spinner",3)}function se(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",14),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.editGroup())}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA()()}}function re(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",15),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.deleteGroup())}),t.TgZ(1,"mat-icon"),t._uU(2,"delete_forever"),t.qZA()()}}function le(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",18),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(3);return t.KtG(n.onSyncDetail())}),t.ALo(1,"groupSyncIcon"),t.TgZ(2,"mat-icon"),t.ALo(3,"groupSyncIconColor"),t._uU(4),t.ALo(5,"groupSyncIcon"),t.qZA()()}if(2&i){const e=t.oxw(3);t.Q6J("disabled","sync_disabled"===t.lcZ(1,5,e.group)),t.xp6(2),t.Tol(t.lcZ(3,7,e.group)),t.xp6(2),t.hij(" ",t.lcZ(5,9,e.group)," ")}}function ce(i,a){if(1&i&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"span",16),t.ALo(4,"translate"),t.ALo(5,"groupSyncToolTip"),t.YNc(6,le,6,11,"button",17),t.qZA()()),2&i){const e=t.oxw(2);t.xp6(1),t.hij(" , ",t.lcZ(2,4,"GROUP_DETAIL.SYNCHRONIZATION"),": "),t.xp6(2),t.Q6J("matTooltipPosition","above")("matTooltip",t.lcZ(4,6,t.lcZ(5,8,e.group))),t.xp6(3),t.Q6J("ngIf",e.syncAuth)}}const pe=function(){return{color:"black"}},It=function(i,a){return["/organizations",i,"groups",a]},bt=function(i){return["/organizations",i]};function ue(i,a){if(1&i&&(t.TgZ(0,"div")(1,"div",4),t._UZ(2,"mat-icon",5),t.ALo(3,"translate"),t.TgZ(4,"div",6)(5,"div",7)(6,"a",8),t.NdJ("auxclick",function(o){return o.preventDefault()}),t._uU(7),t.qZA(),t.TgZ(8,"span",9),t._uU(9),t.qZA(),t.YNc(10,se,3,0,"button",10),t.YNc(11,re,3,0,"button",11),t.qZA(),t.TgZ(12,"div"),t._uU(13),t.ALo(14,"translate"),t.qZA(),t.TgZ(15,"span",12),t._uU(16),t.ALo(17,"translate"),t.ALo(18,"translate"),t.TgZ(19,"a",13),t.NdJ("auxclick",function(o){return o.preventDefault()}),t._uU(20),t.qZA(),t._uU(21),t.ALo(22,"translate"),t.YNc(23,ce,7,10,"span",2),t.qZA()()(),t._UZ(24,"app-animated-router-outlet"),t.qZA()),2&i){const e=t.oxw();t.xp6(2),t.s9C("matTooltip",t.lcZ(3,21,"GROUP_DETAIL.ENTITY")),t.Q6J("ngStyle",t.DdM(31,pe)),t.xp6(4),t.Q2q("data-cy","",e.group.shortName,"-shortName"),t.Q6J("perunWebAppsMiddleClickRouterLink",t.WLB(32,It,e.vo.id.toString(),e.group.id.toString()))("routerLink",t.WLB(35,It,e.vo.id,e.group.id))("queryParams",e.route.snapshot.queryParams),t.xp6(1),t.hij(" ",e.group.shortName," "),t.xp6(2),t.hij(" \xa0#",e.group.id," "),t.xp6(1),t.Q6J("ngIf","members"!==e.group.name&&e.editAuth),t.xp6(1),t.Q6J("ngIf","members"!==e.group.name&&e.deleteAuth),t.xp6(2),t.AsE("",t.lcZ(14,23,"GROUP_DETAIL.UUID"),": ",e.group.uuid,""),t.xp6(3),t.AsE(" ",t.lcZ(17,25,"GROUP_DETAIL.ENTITY"),", ",t.lcZ(18,27,"GROUP_DETAIL.VO_NAME"),": "),t.xp6(3),t.Q6J("perunWebAppsMiddleClickRouterLink",t.VKq(38,bt,e.vo.id.toString()))("routerLink",t.VKq(40,bt,e.vo.id))("queryParams",e.route.snapshot.queryParams),t.xp6(1),t.Oqu(e.vo.name),t.xp6(1),t.AsE(", ",t.lcZ(22,29,"GROUP_DETAIL.DESCRIPTION"),": ",e.group.description," "),t.xp6(2),t.Q6J("ngIf",e.syncEnabled)}}let de=(()=>{class i extends((0,ft.T)()){constructor(e,o,n,s,r,d,A,v,L,$,mt){super(),this.sideMenuService=e,this.voService=o,this.route=n,this.sideMenuItemService=s,this.groupService=r,this.dialog=d,this.guiAuthResolver=A,this.router=v,this.entityStorageService=L,this.reloadEntityDetail=$,this.queryParamsRouter=mt,this.editAuth=!1,this.deleteAuth=!1,this.loading=!1,this.syncAuth=!1,this.syncEnabled=!1,this.attrNames=[S.r.GROUP_SYNC_ENABLED,S.r.GROUP_LAST_SYNC_STATE,S.r.GROUP_LAST_SYNC_TIMESTAMP,S.r.GROUP_STRUCTURE_SYNC_ENABLED,S.r.GROUP_LAST_STRUCTURE_SYNC_STATE,S.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP]}ngOnInit(){this.reloadEntityDetail.entityDetailChange.pipe((0,At.R)(this.destroyed$)).subscribe(()=>{this.reloadData()}),this.reloadData()}onSyncDetail(){const e=(0,g.kZ)();e.width="450px",e.data={groupId:this.group.id,theme:"group-theme"},this.dialog.open(w.Bp,e)}editGroup(){const e=(0,g.kZ)();e.width="450px",e.data={theme:"group-theme",group:this.group,dialogType:w.Eg.GROUP},this.dialog.open(w.rd,e).afterClosed().subscribe(n=>{n&&this.groupService.getGroupById(this.group.id).subscribe(s=>{this.group=s,this.setMenuItems()})})}reloadData(){this.loading=!0,this.route.params.subscribe(e=>{const o=Number(e.voId),n=Number(e.groupId);this.voService.getVoById(o).subscribe(s=>{this.vo=s,this.groupService.getGroupById(n).subscribe(r=>{this.group=r,this.entityStorageService.setEntity(this.group),(0,g.sF)("groups",this.group),(0,g.XI)(this.group,s.name),this.guiAuthResolver.isAuthorized("getRichGroupByIdWithAttributesByNames_int_List_policy",[this.group])?this.groupService.getRichGroupByIdWithAttributesByNames(n,this.attrNames).subscribe(d=>{this.group=d,this.syncEnabled=(0,g.bx)(d),this.syncAuth=this.guiAuthResolver.isAuthorized("forceGroupSynchronization_Group_policy",[this.group])},()=>this.loading=!1):this.syncEnabled=!1,this.editAuth=this.guiAuthResolver.isAuthorized("updateGroup_Group_policy",[this.group]),this.deleteAuth=this.guiAuthResolver.isAuthorized("deleteGroup_Group_boolean_policy",[this.group]),this.setMenuItems(),this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)})}setMenuItems(){const e=this.sideMenuItemService.parseVo(this.vo),o=this.sideMenuItemService.parseGroup(this.group);this.sideMenuService.setAccessMenuItems([e,o])}deleteGroup(){const e=(0,g.kZ)();e.width="500px",e.data={theme:"group-theme",groups:[this.group]},this.dialog.open(ee.P,e).afterClosed().subscribe(n=>{n&&this.queryParamsRouter.navigate(["../"],this.route)})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(Y.D),t.Y36(h.YF),t.Y36(b.gz),t.Y36(W.V),t.Y36(h.ff),t.Y36(u.uw),t.Y36(p.x4),t.Y36(b.F0),t.Y36(p.fb),t.Y36(tt.G),t.Y36(Tt.g))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-detail-page"]],features:[t.qOj],decls:4,vars:2,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","group-theme"],["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[1,"d-flex","page-title-headtitle"],["svgIcon","perun-group-black",1,"perun-icon","perun-icon-detail",3,"matTooltip","ngStyle"],[1,"page-title-block"],[1,"page-title-headline","d-flex","align-items-center"],[1,"group-link",3,"perunWebAppsMiddleClickRouterLink","routerLink","queryParams","auxclick"],[1,"text-muted"],["aria-label","Edit group","mat-icon-button","",3,"click",4,"ngIf"],["mat-icon-button","",3,"click",4,"ngIf"],[1,"mt-1","entity-info"],["data-cy","vo-link",1,"group-link",3,"perunWebAppsMiddleClickRouterLink","routerLink","queryParams","auxclick"],["aria-label","Edit group","mat-icon-button","",3,"click"],["mat-icon-button","",3,"click"],[3,"matTooltipPosition","matTooltip"],["mat-icon-button","",3,"disabled","click",4,"ngIf"],["mat-icon-button","",3,"disabled","click"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"perun-web-apps-back-button"),t.YNc(2,ae,1,0,"mat-spinner",1),t.YNc(3,ue,25,42,"div",2),t.qZA()),2&e&&(t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading&&void 0!==o.vo&&void 0!==o.group))},dependencies:[m.O5,m.PC,b.yS,y.Hw,I.lW,T.Ou,N.gM,J.A,et.W,G.YH,G.QG,_.X$,ie.J,oe.r,ne.F],data:{animation:[R.Ji]}}),i})();function _e(i,a){1&i&&t._UZ(0,"mat-spinner",3)}const vt=function(i){return["/admin","users",i]};function me(i,a){if(1&i&&(t.TgZ(0,"a",8),t.NdJ("auxclick",function(o){return o.preventDefault()}),t._uU(1),t.qZA()),2&i){const e=t.oxw(2);t.Q6J("perunWebAppsMiddleClickRouterLink",t.VKq(3,vt,e.member.userId.toString()))("routerLink",t.VKq(5,vt,e.member.userId)),t.xp6(1),t.hij(" ",e.member.userId," ")}}function ge(i,a){if(1&i&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&i){const e=t.oxw(2);t.xp6(1),t.Oqu(e.member.userId)}}const he=function(){return{color:"black"}},Et=function(i,a){return["/organizations",i,"members",a]};function fe(i,a){if(1&i&&(t.TgZ(0,"div")(1,"div",4),t._UZ(2,"mat-icon",5),t.ALo(3,"translate"),t.TgZ(4,"div",6)(5,"div",7)(6,"a",8),t.NdJ("auxclick",function(o){return o.preventDefault()}),t._uU(7),t.qZA(),t.TgZ(8,"span",9),t._uU(9),t.qZA()(),t.TgZ(10,"span",10),t._uU(11),t.ALo(12,"translate"),t.ALo(13,"translate"),t.YNc(14,me,2,7,"a",11),t.YNc(15,ge,2,1,"span",2),t.qZA()()(),t._UZ(16,"app-animated-router-outlet"),t.qZA()),2&i){const e=t.oxw();t.xp6(2),t.s9C("matTooltip",t.lcZ(3,11,"MEMBER_DETAIL.ENTITY")),t.Q6J("ngStyle",t.DdM(17,he)),t.xp6(4),t.Q2q("data-cy","",e.member.user.firstName,"-firstName"),t.Q6J("perunWebAppsMiddleClickRouterLink",t.WLB(18,Et,e.vo.id.toString(),e.member.id.toString()))("routerLink",t.WLB(21,Et,e.vo.id,e.member.id)),t.xp6(1),t.hij(" ",e.fullName," "),t.xp6(2),t.hij(" \xa0#",e.member.id," "),t.xp6(2),t.AsE(" ",t.lcZ(12,13,"MEMBER_DETAIL.ENTITY"),", ",t.lcZ(13,15,"MEMBER_DETAIL.USER_ID"),": "),t.xp6(3),t.Q6J("ngIf",e.isAuthorized),t.xp6(1),t.Q6J("ngIf",!e.isAuthorized)}}let Ae=(()=>{class i{constructor(e,o,n,s,r,d,A,v){this.sideMenuItemService=e,this.translate=o,this.sideMenuService=n,this.membersService=s,this.voService=r,this.route=d,this.authResolver=A,this.entityService=v,this.fullName="",this.isAuthorized=!1,this.loading=!1}ngOnInit(){this.loading=!0,this.route.params.subscribe(e=>{const o=Number(e.voId),n=Number(e.memberId);this.isAuthorized=this.authResolver.isPerunAdminOrObserver(),this.voService.getVoById(o).subscribe(s=>{this.vo=s,this.membersService.getRichMemberWithAttributes(n).subscribe(r=>{this.member=r,this.entityService.setEntity({id:r.id,beanName:r.beanName,voId:r.voId,userId:r.userId});const d=this.sideMenuItemService.parseVo(this.vo),A=this.sideMenuItemService.parseMember(this.member);this.fullName=A.label,this.sideMenuService.setAccessMenuItems([d,A]),this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(W.V),t.Y36(_.sK),t.Y36(Y.D),t.Y36(h.uq),t.Y36(h.YF),t.Y36(b.gz),t.Y36(p.x4),t.Y36(p.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-member-detail-page"]],decls:4,vars:2,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","member-theme"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"d-flex","page-title-headtitle"],["svgIcon","perun-user-dark",1,"perun-icon","perun-icon-detail",3,"matTooltip","ngStyle"],[1,"page-title-block"],[1,"page-title-headline","d-flex","align-items-center"],[1,"member-link",3,"perunWebAppsMiddleClickRouterLink","routerLink","auxclick"],[1,"text-muted"],[1,"mt-1","entity-info"],["class","member-link",3,"perunWebAppsMiddleClickRouterLink","routerLink","auxclick",4,"ngIf"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"perun-web-apps-back-button"),t.YNc(2,_e,1,0,"mat-spinner",1),t.YNc(3,fe,17,24,"div",2),t.qZA()),2&e&&(t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading&&void 0!==o.vo&&void 0!==o.member))},dependencies:[m.O5,m.PC,b.yS,y.Hw,T.Ou,N.gM,J.A,et.W,G.YH,G.QG,_.X$],data:{animation:[R.Ji]}}),i})();var q=c(71135);function Te(i,a){1&i&&t._UZ(0,"mat-spinner",2)}function Ie(i,a){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"perun-web-apps-menu-buttons-field",3),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("items",e.navItems)("size","small")}}let be=(()=>{class i{constructor(e,o,n,s,r,d){this.sideMenuService=e,this.voService=o,this.router=n,this.authResolver=s,this.entityStorageService=r,this.routePolicyService=d,this.items=[],this.navItems=[],this.loading=!1}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.initNavItems(),this.loading=!1}initNavItems(){this.routePolicyService.canNavigate("organizations-members",this.vo)&&this.navItems.push({cssIcon:"perun-user",url:`/organizations/${this.vo.id}/members`,label:"MENU_ITEMS.VO.MEMBERS",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-groups",this.vo)&&this.navItems.push({cssIcon:"perun-group",url:`/organizations/${this.vo.id}/groups`,label:"MENU_ITEMS.VO.GROUPS",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-resources",this.vo)&&this.navItems.push({cssIcon:"perun-manage-facility",url:`/organizations/${this.vo.id}/resources`,label:"MENU_ITEMS.VO.RESOURCES",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-applications",this.vo)&&this.navItems.push({cssIcon:"perun-applications",url:`/organizations/${this.vo.id}/applications`,label:"MENU_ITEMS.VO.APPLICATIONS",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-sponsoredMembers",this.vo)&&this.navItems.push({cssIcon:"perun-user",url:`/organizations/${this.vo.id}/sponsoredMembers`,label:"MENU_ITEMS.VO.SPONSORED_MEMBERS",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-serviceAccounts",this.vo)&&this.navItems.push({cssIcon:"perun-service-identity",url:`/organizations/${this.vo.id}/serviceAccounts`,label:"MENU_ITEMS.VO.SERVICE_MEMBERS",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-attributes",this.vo)&&this.navItems.push({cssIcon:"perun-attributes",url:`/organizations/${this.vo.id}/attributes`,label:"MENU_ITEMS.VO.ATTRIBUTES",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-statistics",this.vo)&&this.navItems.push({cssIcon:"perun-statistics",url:`/organizations/${this.vo.id}/statistics`,label:"MENU_ITEMS.VO.STATISTICS",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-settings",this.vo)&&this.navItems.push({cssIcon:"perun-settings2",url:`/organizations/${this.vo.id}/settings`,label:"MENU_ITEMS.VO.SETTINGS",style:"vo-btn"})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(Y.D),t.Y36(h.YF),t.Y36(b.F0),t.Y36(p.x4),t.Y36(p.fb),t.Y36(p.Ip))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-overview"]],decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"items","size"]],template:function(e,o){1&e&&(t.YNc(0,Te,1,0,"mat-spinner",0),t.YNc(1,Ie,2,2,"div",1)),2&e&&(t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[m.O5,T.Ou,q.L]}),i})();var ve=c(4732),Ee=c(81847),Ce=c(11717);function Se(i,a){1&i&&(t.TgZ(0,"span"),t._uU(1,", "),t.qZA())}const xe=function(i){return["/organizations",i]},Ne=function(i){return["/organizations/",i]};function Oe(i,a){if(1&i&&(t.TgZ(0,"span")(1,"a",2),t.NdJ("auxclick",function(o){return o.preventDefault()}),t._uU(2),t.qZA(),t.YNc(3,Se,2,0,"span",1),t.qZA()),2&i){const e=a.$implicit,o=a.index,n=t.oxw();t.xp6(1),t.Q6J("perunWebAppsMiddleClickRouterLink",t.VKq(4,xe,e.id.toString()))("perunWebAppsForceRouterLink",t.VKq(6,Ne,e.id.toString())),t.xp6(1),t.hij(" ",e.name," "),t.xp6(1),t.Q6J("ngIf",n.vos.length>o+1)}}function Ze(i,a){1&i&&(t.TgZ(0,"span"),t._uU(1,"\u2026"),t.qZA())}let De=(()=>{class i{constructor(){this.vos=[]}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-related-vos"]],inputs:{title:"title",vos:"vos"},decls:4,vars:5,consts:[[4,"ngFor","ngForOf"],[4,"ngIf"],[1,"vo-link","pointer",3,"perunWebAppsMiddleClickRouterLink","perunWebAppsForceRouterLink","auxclick"]],template:function(e,o){1&e&&(t._uU(0),t.ALo(1,"translate"),t.YNc(2,Oe,4,8,"span",0),t.YNc(3,Ze,2,0,"span",1)),2&e&&(t.hij("",t.lcZ(1,3,o.title),":\n"),t.xp6(2),t.Q6J("ngForOf",o.vos.slice(0,3)),t.xp6(1),t.Q6J("ngIf",o.vos.length>3))},dependencies:[m.sg,m.O5,G.Kd,G.YH,_.X$],styles:[".pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),i})();function Me(i,a){1&i&&t._UZ(0,"mat-spinner",3)}function Le(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",14),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.editVo())}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA()()}}function Re(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",15),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.removeVo())}),t.TgZ(1,"mat-icon"),t._uU(2,"delete_forever"),t.qZA()()}}function we(i,a){if(1&i&&t._UZ(0,"app-related-vos",16),2&i){const e=t.oxw(2);t.Q6J("title","VO_DETAIL.RELATED_VOS.MEMBER_VOS")("vos",e.enrichedVo.memberVos)}}function Ge(i,a){if(1&i&&t._UZ(0,"app-related-vos",16),2&i){const e=t.oxw(2);t.Q6J("title","VO_DETAIL.RELATED_VOS.PARENT_VOS")("vos",e.enrichedVo.parentVos)}}const Ue=function(){return{color:"black"}},Pe=function(i){return["/organizations",i]},ye=function(i){return["/organizations/",i]};function Ve(i,a){if(1&i&&(t.TgZ(0,"div")(1,"div",4),t._UZ(2,"mat-icon",5),t.ALo(3,"translate"),t.TgZ(4,"div",6)(5,"div",7)(6,"a",8),t.NdJ("auxclick",function(o){return o.preventDefault()}),t._uU(7),t.qZA(),t.TgZ(8,"span",9),t._uU(9),t.qZA(),t.YNc(10,Le,3,0,"button",10),t.YNc(11,Re,3,0,"button",11),t.qZA(),t.TgZ(12,"span",12),t._uU(13),t.ALo(14,"translate"),t.ALo(15,"translate"),t.YNc(16,we,1,2,"app-related-vos",13),t.YNc(17,Ge,1,2,"app-related-vos",13),t.qZA()()(),t._UZ(18,"app-animated-router-outlet"),t.qZA()),2&i){const e=t.oxw();t.xp6(2),t.s9C("matTooltip",t.lcZ(3,15,"VO_DETAIL.ENTITY")),t.Q6J("ngStyle",t.DdM(21,Ue))("svgIcon",0!==e.enrichedVo.memberVos.length?"perun-hierarchical-vo":"perun-vo-black"),t.xp6(4),t.Q6J("perunWebAppsMiddleClickRouterLink",t.VKq(22,Pe,e.vo.id.toString()))("routerLink",t.VKq(24,ye,e.vo.id))("queryParams",e.route.snapshot.queryParams),t.xp6(1),t.hij(" ",e.vo.name," "),t.xp6(2),t.hij(" \xa0#",e.vo.id," "),t.xp6(1),t.Q6J("ngIf",e.editAuth),t.xp6(1),t.Q6J("ngIf",e.removeAuth),t.xp6(2),t.lnq(" ",t.lcZ(14,17,"VO_DETAIL.ENTITY"),", ",t.lcZ(15,19,"VO_DETAIL.SHORT_NAME"),": ",e.vo.shortName+(e.enrichedVo.memberVos.length+e.enrichedVo.parentVos.length?",":"")," "),t.xp6(3),t.Q6J("ngIf",0!==e.enrichedVo.memberVos.length),t.xp6(1),t.Q6J("ngIf",0!==e.enrichedVo.parentVos.length)}}let Fe=(()=>{class i extends((0,ft.T)()){constructor(e,o,n,s,r,d,A,v,L,$){super(),this.sideMenuService=e,this.voService=o,this.route=n,this.router=s,this.sideMenuItemService=r,this.dialog=d,this.authResolver=A,this.entityStorageService=v,this.reloadEntityDetail=L,this.queryParamsRouter=$,this.loading=!1}ngOnInit(){this.reloadData(),this.reloadEntityDetail.entityDetailChange.pipe((0,At.R)(this.destroyed$)).subscribe(()=>{this.reloadData()})}reloadData(){this.loading=!0,this.route.params.subscribe(e=>{const o=Number(e.voId);this.voService.getEnrichedVoById(o).subscribe(n=>{this.vo=n.vo,this.enrichedVo=n,this.entityStorageService.setEntity({id:this.vo.id,beanName:this.vo.beanName}),this.editAuth=this.authResolver.isAuthorized("updateVo_Vo_policy",[this.vo]),this.removeAuth=this.authResolver.isAuthorized("deleteVo_Vo_policy",[this.vo]),this.setMenuItems(),(0,g.sF)("vos",this.vo),(0,g.XI)(this.vo),this.loading=!1},()=>this.loading=!1)})}editVo(){const e=(0,g.kZ)();e.width="450px",e.data={theme:"vo-theme",vo:this.vo,dialogType:w.Eg.VO},this.dialog.open(w.rd,e).afterClosed().subscribe(n=>{n&&this.voService.getVoById(this.vo.id).subscribe(s=>{this.vo=s,this.setMenuItems()})})}setMenuItems(){const n=this.sideMenuItemService.parseVo(this.vo,0!==this.enrichedVo.memberVos.length,0!==this.enrichedVo.parentVos.length);this.sideMenuService.setAccessMenuItems([n])}removeVo(){const e=(0,g.kZ)();e.width="500px",e.data={theme:"vo-theme",vos:[this.vo]},this.dialog.open(Ce.o,e).afterClosed().subscribe(n=>{n&&this.queryParamsRouter.navigate([""])})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(Y.D),t.Y36(h.YF),t.Y36(b.gz),t.Y36(b.F0),t.Y36(W.V),t.Y36(u.uw),t.Y36(p.x4),t.Y36(p.fb),t.Y36(tt.G),t.Y36(Tt.g))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-detail-page"]],features:[t.qOj],decls:4,vars:2,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","vo-theme"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"d-flex","page-title-headtitle"],[1,"perun-icon","perun-icon-detail",3,"matTooltip","ngStyle","svgIcon"],[1,"page-title-block"],[1,"page-title-headline","d-flex","align-items-center"],["data-cy","vo-name-link",1,"vo-link",3,"perunWebAppsMiddleClickRouterLink","routerLink","queryParams","auxclick"],[1,"text-muted"],["mat-icon-button","","aria-label","Edit Vo",3,"click",4,"ngIf"],["mat-icon-button","","aria-label","Remove Vo","data-cy","delete-vo",3,"click",4,"ngIf"],[1,"mt-1","entity-info"],[3,"title","vos",4,"ngIf"],["mat-icon-button","","aria-label","Edit Vo",3,"click"],["mat-icon-button","","aria-label","Remove Vo","data-cy","delete-vo",3,"click"],[3,"title","vos"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"perun-web-apps-back-button"),t.YNc(2,Me,1,0,"mat-spinner",1),t.YNc(3,Ve,19,26,"div",2),t.qZA()),2&e&&(t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading&&void 0!==o.vo))},dependencies:[m.O5,m.PC,b.yS,y.Hw,I.lW,T.Ou,N.gM,J.A,et.W,G.YH,G.QG,De,_.X$],styles:[".shortname[_ngcontent-%COMP%]{font-size:medium}"],data:{animation:[R.Ji]}}),i})();var l=c(30671),Ye=c(58964),Je=c(19352),Z=c(73546),qe=c(60526),M=c(98380),Ct=c(82322),St=c(21757),ke=c(82514),xt=c(62383),Qe=c(21330);function Be(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"perun-web-apps-group-search-select",7),t.NdJ("groupSelected",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.groupIsSelected(n))}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("firstSelectedGroup",e.selectedGroup)("groups",e.groups)}}function He(i,a){1&i&&t._UZ(0,"mat-spinner",8)}function je(i,a){1&i&&(t.TgZ(0,"perun-web-apps-alert",9),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"MEMBER_DETAIL.OVERVIEW.NO_GROUPS_FOUND")))}function ze(i,a){1&i&&t._UZ(0,"th",17)}function $e(i,a){if(1&i&&(t.TgZ(0,"td",18),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.hij("",e,":")}}function Xe(i,a){1&i&&t._UZ(0,"th",17)}function Ke(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",22),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(4);return t.KtG(n.changeStatus())}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA()()}}function We(i,a){if(1&i&&(t.TgZ(0,"div")(1,"i"),t.ALo(2,"groupStatusIconColor"),t._uU(3),t.ALo(4,"memberStatusIcon"),t.qZA(),t.TgZ(5,"b",20),t._uU(6),t.ALo(7,"transformMemberStatus"),t.qZA(),t.YNc(8,Ke,3,0,"button",21),t.qZA()),2&i){const e=t.oxw(3);t.xp6(1),t.Gre("material-icons vert-center mr-1 ",t.lcZ(2,6,e.selectedMember.groupStatus),""),t.xp6(2),t.hij(" ",t.lcZ(4,8,e.selectedMember.groupStatus)," "),t.xp6(3),t.hij(" ",t.lcZ(7,10,e.selectedMember.groupStatus)," "),t.xp6(2),t.Q6J("ngIf",e.authResolver.isThisVoAdmin(e.vo.id)||e.authResolver.isThisGroupAdmin(e.selectedGroup.id))}}function ti(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",22),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(4);return t.KtG(n.changeExpiration())}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA()()}}function ei(i,a){if(1&i&&(t.TgZ(0,"div")(1,"i",2),t._uU(2),t.ALo(3,"parseDate"),t.qZA(),t.YNc(4,ti,3,0,"button",21),t.qZA()),2&i){const e=t.oxw(3);t.xp6(2),t.hij(" ",t.lcZ(3,2,e.expiration)," "),t.xp6(2),t.Q6J("ngIf",e.authResolver.isThisVoAdmin(e.vo.id)||e.authResolver.isThisGroupAdmin(e.selectedGroup.id))}}function ii(i,a){if(1&i&&(t.TgZ(0,"td",19),t.YNc(1,We,9,12,"div",6),t.YNc(2,ei,5,4,"div",6),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Q6J("ngIf","Status"===e),t.xp6(1),t.Q6J("ngIf","Expiration"===e)}}function oi(i,a){1&i&&t._UZ(0,"tr",23)}function ni(i,a){if(1&i&&(t.TgZ(0,"div")(1,"table",10),t.ynx(2,11),t.YNc(3,ze,1,0,"th",12),t.YNc(4,$e,2,1,"td",13),t.BQk(),t.ynx(5,14),t.YNc(6,Xe,1,0,"th",12),t.YNc(7,ii,3,2,"td",15),t.BQk(),t.YNc(8,oi,1,0,"tr",16),t.qZA()()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("dataSource",e.groupMembershipDataSource),t.xp6(7),t.Q6J("matRowDefColumns",e.displayedColumns)}}let ai=(()=>{class i{constructor(e,o,n,s){this.groupsManager=e,this.authResolver=o,this.translate=n,this.dialog=s,this.noGroups=!1,this.groupMembershipDataSource=new l.by,this.expiration="",this.displayedColumns=["attName","attValue"]}ngOnChanges(){this.loading=!0,this.initLoading=!0,this.groupMembershipDataSource=new l.by(["Status","Expiration"]),this.groupsManager.getMemberGroups(this.member.id).subscribe(e=>{if(this.groups=e,0===this.groups.length)return void(this.noGroups=!0);const o=this.findInitiallySelectedGroupId();this.groupIsSelected(o),this.initLoading=!1})}findInitiallySelectedGroupId(){if(this.recentIds=(0,g.vL)("groups"),this.recentIds){const e=this.groups.find(o=>o.id===this.recentIds[0]);if(e)return e}return this.groups[0]}groupIsSelected(e){this.loading=!0,this.selectedGroup=e,this.groupsManager.getGroupRichMembersByIds(this.selectedGroup.id,[this.member.id],[S.r.MEMBER_DEF_GROUP_EXPIRATION]).subscribe(o=>{this.selectedMember=o[0],this.expirationAtt=this.selectedMember.memberAttributes.find(n=>"groupMembershipExpiration"===n.baseFriendlyName),this.expirationAtt?(this.groupMembershipDataSource=new l.by(["Status","Expiration"]),this.expiration=this.expirationAtt.value?this.expirationAtt.value:this.translate.instant("MEMBER_DETAIL.OVERVIEW.NEVER_EXPIRES")):this.groupMembershipDataSource=new l.by(["Status"]),this.loading=!1})}changeExpiration(e=!1){const o=(0,g.kZ)();o.width="400px",o.data={memberId:this.member.id,groupId:this.selectedGroup.id,expirationAttr:this.expirationAtt,status:this.selectedMember.groupStatus,statusChanged:e},this.dialog.open(w.u3,o).afterClosed().subscribe(s=>{s&&this.groupIsSelected(this.selectedGroup)})}changeStatus(){const e=(0,g.kZ)();e.width="600px",e.data={member:this.selectedMember,voId:this.vo.id,groupId:this.selectedGroup.id},this.dialog.open(w.pf,e).afterClosed().subscribe(n=>{n&&(this.selectedMember=n,this.changeExpiration(!0))})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.ff),t.Y36(p.x4),t.Y36(_.sK),t.Y36(u.uw))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-member-overview-groups"]],inputs:{vo:"vo",member:"member"},features:[t.TTD],decls:11,vars:7,consts:[[1,"mat-elevation-z3","groups-card","mt-4"],[1,"page-subtitle"],[1,"column-center"],[3,"firstSelectedGroup","groups","groupSelected",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],["alert_type","warn",4,"ngIf"],[4,"ngIf"],[3,"firstSelectedGroup","groups","groupSelected"],[1,"mr-auto","ml-auto"],["alert_type","warn"],["mat-table","",1,"ml-auto","mr-auto",3,"dataSource"],["matColumnDef","attName"],["mat-header-cell","",4,"matHeaderCellDef"],["class","font-weight-bold","mat-cell","",4,"matCellDef"],["matColumnDef","attValue"],["class","column-center","mat-cell","",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"font-weight-bold"],["mat-cell","",1,"column-center"],[1,"vert-top"],["mat-icon-button","",3,"click",4,"ngIf"],["mat-icon-button","",3,"click"],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"mat-card",0)(1,"mat-card-header")(2,"mat-card-title")(3,"h1",1),t._uU(4),t.ALo(5,"translate"),t.qZA()()(),t.TgZ(6,"mat-card-content",2),t.YNc(7,Be,1,2,"perun-web-apps-group-search-select",3),t.YNc(8,He,1,0,"mat-spinner",4),t.YNc(9,je,3,3,"perun-web-apps-alert",5),t.YNc(10,ni,9,2,"div",6),t.qZA()()),2&e&&(t.xp6(4),t.Oqu(t.lcZ(5,5,"MEMBER_DETAIL.OVERVIEW.GROUP_MEMBERSHIP")),t.xp6(3),t.Q6J("ngIf",!o.initLoading),t.xp6(1),t.Q6J("ngIf",(o.loading||o.initLoading)&&!o.noGroups),t.xp6(1),t.Q6J("ngIf",o.noGroups),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[m.O5,y.Hw,I.lW,l.BZ,l.fO,l.w1,l.Dz,l.nj,l.ge,l.ev,l.Gk,T.Ou,Z.a8,Z.dk,Z.dn,Z.n5,M.w,Ct.h,_.X$,St.f,ke.F,xt.M,Qe.r],styles:[".groups-card[_ngcontent-%COMP%]{max-width:400px}.align-cards[_ngcontent-%COMP%]{margin:1rem;display:inline-block;vertical-align:top}.vert-center[_ngcontent-%COMP%]{vertical-align:middle!important}"]}),i})(),si=(()=>{class i{transform(e){return(0,g.Cz)(e)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=t.Yjl({name:"attributeFriendlyName",type:i,pure:!0}),i})();var Q=c(31359);function ri(i,a){1&i&&t._UZ(0,"mat-spinner",2)}function li(i,a){1&i&&t._UZ(0,"th",17)}function ci(i,a){if(1&i&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&i){const e=t.oxw().$implicit,o=t.oxw(2);t.xp6(1),t.hij(" ",o.attributes.get(e)[0],": ")}}function pi(i,a){if(1&i&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"attributeFriendlyName"),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,e),": ")}}function ui(i,a){if(1&i&&(t.TgZ(0,"td",18),t.YNc(1,ci,2,1,"span",1),t.YNc(2,pi,3,3,"span",1),t.qZA()),2&i){const e=a.$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("ngIf",null!==o.attributes.get(e)[0]),t.xp6(1),t.Q6J("ngIf",null===o.attributes.get(e)[0])}}function di(i,a){1&i&&t._UZ(0,"th",17)}function _i(i,a){if(1&i&&(t.TgZ(0,"td",19),t._uU(1),t.qZA()),2&i){const e=a.$implicit,o=t.oxw(2);t.xp6(1),t.hij(" ",o.attributes.get(e)[1]," ")}}function mi(i,a){1&i&&t._UZ(0,"tr",20)}function gi(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-card",5)(1,"mat-card-header")(2,"mat-card-title")(3,"h1",6),t._uU(4),t.ALo(5,"translate"),t.qZA()()(),t.TgZ(6,"mat-card-content",21)(7,"div",22),t.ALo(8,"translate"),t.TgZ(9,"button",23),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.requestPwdReset())}),t._uU(10),t.ALo(11,"translate"),t.qZA()()()()}if(2&i){const e=t.oxw(2);t.xp6(4),t.Oqu(t.lcZ(5,5,"MEMBER_DETAIL.OVERVIEW.RESET_PASSWORD")),t.xp6(3),t.Q6J("matTooltipDisabled",e.logins.length>0)("matTooltip",t.lcZ(8,7,"MEMBER_DETAIL.OVERVIEW.RESET_DISABLED")),t.xp6(2),t.Q6J("disabled",!e.logins.length),t.xp6(1),t.hij(" ",t.lcZ(11,9,"MEMBER_DETAIL.OVERVIEW.SEND_REQUEST")," ")}}function hi(i,a){1&i&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBER_DETAIL.OVERVIEW.SPONSOR_NAME")," "))}function fi(i,a){if(1&i&&(t.TgZ(0,"td",33),t._uU(1),t.ALo(2,"userFullName"),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,e.user)," ")}}function Ai(i,a){1&i&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBER_DETAIL.OVERVIEW.EXPIRATION_TABLE")," "))}function Ti(i,a){if(1&i&&(t.TgZ(0,"td",33)(1,"span",34),t._uU(2),t.ALo(3,"parseDate"),t.qZA()()),2&i){const e=a.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,e.validityTo))}}function Ii(i,a){1&i&&t._UZ(0,"tr",35)}function bi(i,a){1&i&&t._UZ(0,"tr",20)}const Nt=function(){return["sponsors","expiration"]};function vi(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-card-content")(1,"h6",26),t._uU(2),t.ALo(3,"translate"),t.TgZ(4,"button",27),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(3);return t.KtG(n.changeSponsors())}),t.TgZ(5,"mat-icon"),t._uU(6,"edit"),t.qZA()()(),t.TgZ(7,"table",28),t.ynx(8,29),t.YNc(9,hi,3,3,"th",9),t.YNc(10,fi,3,3,"td",30),t.BQk(),t.ynx(11,31),t.YNc(12,Ai,3,3,"th",9),t.YNc(13,Ti,4,3,"td",30),t.BQk(),t.YNc(14,Ii,1,0,"tr",32),t.YNc(15,bi,1,0,"tr",13),t.qZA()()}if(2&i){const e=t.oxw(3);t.xp6(2),t.hij(" ",t.lcZ(3,4,"MEMBER_DETAIL.OVERVIEW.SPONSORS"),": "),t.xp6(5),t.Q6J("dataSource",e.sponsorsDataSource),t.xp6(7),t.Q6J("matHeaderRowDef",t.DdM(6,Nt)),t.xp6(1),t.Q6J("matRowDefColumns",t.DdM(7,Nt))}}function Ei(i,a){if(1&i&&(t.TgZ(0,"div")(1,"mat-card",24)(2,"mat-card-header")(3,"mat-card-title")(4,"h1",6),t._uU(5),t.ALo(6,"translate"),t.qZA()(),t.TgZ(7,"mat-card-subtitle",25),t._uU(8),t.ALo(9,"translate"),t.qZA()(),t.YNc(10,vi,16,8,"mat-card-content",1),t.qZA()()),2&i){const e=t.oxw(2);t.xp6(5),t.Oqu(t.lcZ(6,3,"MEMBER_DETAIL.OVERVIEW.SPONSORSHIP")),t.xp6(3),t.hij(" ",t.lcZ(9,5,"MEMBER_DETAIL.OVERVIEW.SPONSORED_BY")," "),t.xp6(2),t.Q6J("ngIf",0!==e.sponsors.length)}}function Ci(i,a){if(1&i&&(t.TgZ(0,"div")(1,"div",3)(2,"div",4)(3,"mat-card",5)(4,"mat-card-header")(5,"mat-card-title")(6,"h1",6),t._uU(7),t.ALo(8,"translate"),t.qZA()()(),t.TgZ(9,"mat-card-content")(10,"table",7),t.ynx(11,8),t.YNc(12,li,1,0,"th",9),t.YNc(13,ui,3,2,"td",10),t.BQk(),t.ynx(14,11),t.YNc(15,di,1,0,"th",9),t.YNc(16,_i,2,1,"td",12),t.BQk(),t.YNc(17,mi,1,0,"tr",13),t.qZA()()()(),t.TgZ(18,"div",4),t._UZ(19,"app-member-overview-membership",14)(20,"app-member-overview-groups",14),t.qZA(),t.TgZ(21,"div",4),t.YNc(22,gi,12,11,"mat-card",15),t.YNc(23,Ei,11,7,"div",1),t.qZA()(),t.TgZ(24,"div"),t._UZ(25,"perun-web-apps-menu-buttons-field",16),t.qZA()()),2&i){const e=t.oxw();t.xp6(7),t.Oqu(t.lcZ(8,11,"MEMBER_DETAIL.OVERVIEW.PERSONAL")),t.xp6(3),t.Q6J("dataSource",e.dataSource),t.xp6(7),t.Q6J("matRowDefColumns",e.displayedColumns),t.xp6(2),t.Q6J("member",e.member)("vo",e.vo),t.xp6(1),t.Q6J("member",e.member)("vo",e.vo),t.xp6(2),t.Q6J("ngIf",e.pwdResetAuth),t.xp6(1),t.Q6J("ngIf",e.member.sponsored),t.xp6(2),t.Q6J("items",e.navItems)("size","small")}}let Si=(()=>{class i{constructor(e,o,n,s,r,d,A,v){this.attributesManager=e,this.membersService=o,this.usersManager=n,this.route=s,this.dialog=r,this.authResolver=d,this.storeService=A,this.routePolicyService=v,this.expiration="",this.logins=[],this.member=null,this.navItems=[],this.attributeNames=[],this.attributes=new Map,this.dataSource=new l.by,this.displayedColumns=["attName","attValue"],this.sponsors=[],this.sponsorsDataSource=new l.by,this.loading=!1}ngOnInit(){this.loading=!0,this.route.parent.params.subscribe(e=>{const o=Number(e.memberId);this.attributeNames=this.storeService.getMemberProfileAttributeNames(),this.membersService.getRichMemberWithAttributes(o).subscribe(n=>{this.attUrns=this.storeService.getProperty("password_namespace_attributes").map(s=>{const r=s.split(":");return r[r.length-1]}),this.attributesManager.getLogins(n.userId).subscribe(s=>{this.logins=s.filter(r=>this.attUrns.includes(r.friendlyNameParameter)),this.member=n,this.initAttributes(),this.dataSource=new l.by(Array.from(this.attributes.keys())),this.vo={id:n.voId,beanName:"Vo"},this.pwdResetAuth=this.authResolver.isAuthorized("sendPasswordResetLinkEmail_Member_String_String_String_String_policy",[this.vo,this.member]),this.member.sponsored&&this.authResolver.isAuthorized("getSponsorsForMember_Member_List_policy",[this.member])?this.usersManager.getSponsorsForMember(this.member.id,null).subscribe(r=>{this.sponsors=r,this.sponsorsDataSource=new l.by(this.sponsors),this.initNavItems(),this.refreshData()}):(this.initNavItems(),this.refreshData())},()=>this.loading=!1)})})}requestPwdReset(){const e=(0,g.kZ)();e.width="400px",e.data={userId:this.member.userId,memberId:this.member.id,logins:this.logins},this.dialog.open(Ye.m,e)}changeSponsors(){const e=(0,g.kZ)();e.width="650px",e.data={sponsors:this.sponsors,member:this.member,theme:"member-theme"},this.dialog.open(Je.H,e).afterClosed().subscribe(n=>{n&&(this.loading=!0,this.membersService.getRichMemberWithAttributes(this.member.id).subscribe(s=>{this.member=s,this.member.sponsored&&this.usersManager.getSponsorsForMember(this.member.id,null).subscribe(r=>{this.sponsors=r,this.sponsorsDataSource.data=this.sponsors}),this.loading=!1}))})}initAttributes(){this.attributeNames.forEach(e=>{this.attributes.set(e,[null,"-"])}),this.filterAttributes()}filterAttributes(){null!==this.member.memberAttributes&&this.member.memberAttributes.forEach(e=>{this.attributeNames.includes(e.friendlyName)&&this.attributes.set(e.friendlyName,[e.displayName,e.value])}),null!==this.member.userAttributes&&this.member.userAttributes.forEach(e=>{this.attributeNames.includes(e.friendlyName)&&this.attributes.set(e.friendlyName,[e.displayName,e.value])})}initNavItems(){this.navItems=[],this.routePolicyService.canNavigate("members-groups",this.member)&&this.navItems.push({cssIcon:"perun-group",url:`/organizations/${this.member.voId}/members/${this.member.id}/groups`,label:"MENU_ITEMS.MEMBER.GROUPS",style:"member-btn"}),this.routePolicyService.canNavigate("members-applications",this.member)&&this.navItems.push({cssIcon:"perun-applications",url:`/organizations/${this.member.voId}/members/${this.member.id}/applications`,label:"MENU_ITEMS.MEMBER.APPLICATIONS",style:"member-btn"}),this.routePolicyService.canNavigate("members-resources",this.member)&&this.navItems.push({cssIcon:"perun-resource",url:`/organizations/${this.member.voId}/members/${this.member.id}/resources`,label:"MENU_ITEMS.MEMBER.RESOURCES",style:"member-btn"}),this.routePolicyService.canNavigate("members-attributes",this.member)&&this.navItems.push({cssIcon:"perun-attributes",url:`/organizations/${this.vo.id}/members/${this.member.id}/attributes`,label:"MENU_ITEMS.MEMBER.ATTRIBUTES",style:"member-btn"}),this.routePolicyService.canNavigate("members-bans",this.member)&&this.navItems.push({cssIcon:"perun-ban",url:`/organizations/${this.vo.id}/members/${this.member.id}/bans`,label:"MENU_ITEMS.MEMBER.BANS",style:"member-btn"})}refreshData(){this.loading=!0,this.membersService.getRichMemberWithAttributes(this.member.id).subscribe(e=>{this.member=e,this.loading=!1},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.H8),t.Y36(h.uq),t.Y36(h.Fv),t.Y36(b.gz),t.Y36(u.uw),t.Y36(p.x4),t.Y36(p.d6),t.Y36(p.Ip))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-member-overview"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[1,"member-cards"],[1,"align-cards"],[1,"mat-elevation-z3"],[1,"page-subtitle"],["mat-table","",3,"dataSource"],["matColumnDef","attName"],["mat-header-cell","",4,"matHeaderCellDef"],["class","font-weight-bold","mat-cell","",4,"matCellDef"],["matColumnDef","attValue"],["class","column-center","mat-cell","",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[3,"member","vo"],["class","mat-elevation-z3",4,"ngIf"],[3,"items","size"],["mat-header-cell",""],["mat-cell","",1,"font-weight-bold"],["mat-cell","",1,"column-center"],["mat-row",""],[1,"column-center"],[3,"matTooltipDisabled","matTooltip"],["color","accent","mat-flat-button","",1,"action-button",3,"disabled","click"],[1,"mat-elevation-z3","mt-4"],[1,"mt-n3"],[1,"d-flex"],["mat-icon-button","",1,"ml-auto","mt-n2",3,"click"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","sponsors"],["mat-cell","",4,"matCellDef"],["matColumnDef","expiration"],["mat-header-row","",4,"matHeaderRowDef"],["mat-cell",""],[1,"font-italic"],["mat-header-row",""]],template:function(e,o){1&e&&(t.YNc(0,ri,1,0,"mat-spinner",0),t.YNc(1,Ci,26,13,"div",1)),2&e&&(t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[m.O5,y.Hw,l.BZ,l.fO,l.as,l.w1,l.Dz,l.nj,l.ge,l.ev,l.XQ,l.Gk,I.lW,T.Ou,N.gM,Z.a8,Z.dk,Z.dn,Z.n5,Z.$j,qe.b,ai,q.L,_.X$,si,Q.d,xt.M],styles:[".vert-center[_ngcontent-%COMP%]{vertical-align:inherit!important}.vert-top[_ngcontent-%COMP%]{vertical-align:top}.column-center[_ngcontent-%COMP%]{text-align:center}.align-cards[_ngcontent-%COMP%]{margin:1rem;display:inline-block;vertical-align:top}.member-cards[_ngcontent-%COMP%]{margin:0 -1rem}"]}),i})();var xi=c(85243);function Ni(i,a){1&i&&t._UZ(0,"mat-spinner",2)}const Ot=function(i,a){return["/organizations",i,"groups",a]};function Oi(i,a){if(1&i&&(t.TgZ(0,"p"),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"a",4),t.NdJ("auxclick",function(o){return o.preventDefault()}),t._uU(4),t.qZA()()),2&i){const e=t.oxw(2);t.xp6(1),t.hij(" ",t.lcZ(2,4,"GROUP_DETAIL.SUBGROUP_INFO")," "),t.xp6(2),t.Q6J("perunWebAppsMiddleClickRouterLink",t.WLB(6,Ot,e.parentGroup.voId.toString(),e.parentGroup.id.toString()))("routerLink",t.WLB(9,Ot,e.parentGroup.voId,e.parentGroup.id)),t.xp6(1),t.hij(" ",e.parentGroup.name," ")}}function Zi(i,a){if(1&i&&(t.TgZ(0,"div"),t.YNc(1,Oi,5,12,"p",1),t._UZ(2,"perun-web-apps-menu-buttons-field",3),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",null!==e.parentGroup),t.xp6(1),t.Q6J("items",e.navItems)("size","small")}}let Di=(()=>{class i{constructor(e,o,n,s,r,d,A,v,L){this.route=e,this.groupService=o,this.voService=n,this.guiAuthResolver=s,this.apiRequest=r,this.attributesManager=d,this.notificator=A,this.entityStorageService=v,this.routePolicyService=L,this.navItems=[],this.parentGroup=null,this.loading=!1}ngOnInit(){this.loading=!0,this.loadData()}loadData(){this.loading=!0,this.route.params.subscribe(e=>{const o=Number(e.voId),n=Number(e.groupId);this.voService.getVoById(o).subscribe(s=>{this.groupService.getGroupById(n).subscribe(r=>{if(this.group=r,this.entityStorageService.setEntity(this.group),(0,g.sF)("groups",this.group),(0,g.XI)(this.group,s.name),this.loadParentGroupData(this.group.parentGroupId),null==this.group.parentGroupId)return this.parentGroup=null,this.initNavItems(),void(this.loading=!1);this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)})}loadParentGroupData(e){null!=e&&this.groupService.getGroupById(e).subscribe(o=>{this.parentGroup=o,this.initNavItems(),this.loading=!1},()=>this.loading=!1)}initNavItems(){this.navItems=[],this.routePolicyService.canNavigate("groups-members",this.group)&&this.navItems.push({cssIcon:"perun-user",url:`/organizations/${this.group.voId}/groups/${this.group.id}/members`,label:"MENU_ITEMS.GROUP.MEMBERS",style:"group-btn"}),this.routePolicyService.canNavigate("groups-subgroups",this.group)&&"members"!==this.group.name&&this.navItems.push({cssIcon:"perun-group",url:`/organizations/${this.group.voId}/groups/${this.group.id}/subgroups`,label:"MENU_ITEMS.GROUP.SUBGROUPS",style:"group-btn"}),this.routePolicyService.canNavigate("groups-resources",this.group)&&this.navItems.push({cssIcon:"perun-manage-facility",url:`/organizations/${this.group.voId}/groups/${this.group.id}/resources`,label:"MENU_ITEMS.GROUP.RESOURCES",style:"group-btn"}),"members"!==this.group.name&&this.routePolicyService.canNavigate("groups-applications",this.group)&&this.navItems.push({cssIcon:"perun-applications",url:`/organizations/${this.group.voId}/groups/${this.group.id}/applications`,label:"MENU_ITEMS.GROUP.APPLICATIONS",style:"group-btn"}),this.routePolicyService.canNavigate("groups-attributes",this.group)&&this.navItems.push({cssIcon:"perun-attributes",url:`/organizations/${this.group.voId}/groups/${this.group.id}/attributes`,label:"MENU_ITEMS.GROUP.ATTRIBUTES",style:"group-btn"}),this.routePolicyService.canNavigate("groups-statistics",this.group)&&this.navItems.push({cssIcon:"perun-statistics",url:`/organizations/${this.group.voId}/groups/${this.group.id}/statistics`,label:"MENU_ITEMS.GROUP.STATISTICS",style:"group-btn"}),this.routePolicyService.canNavigate("groups-roles",this.group)&&this.navItems.push({cssIcon:"perun-roles",url:`/organizations/${this.group.voId}/groups/${this.group.id}/roles`,label:"MENU_ITEMS.GROUP.ROLES",style:"group-btn"});let e=!1;this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getGroupAttributeByName(this.group.id,S.r.GROUP_DEF_EXPIRATION_RULES).subscribe(()=>{e=!0},o=>{"PrivilegeException"!==o.name&&this.notificator.showRPCError(o)}),(e||this.routePolicyService.canNavigate("groups-settings",this.group))&&this.navItems.push({cssIcon:"perun-settings2",url:`/organizations/${this.group.voId}/groups/${this.group.id}/settings`,label:"MENU_ITEMS.GROUP.SETTINGS",style:"group-btn"})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(b.gz),t.Y36(h.ff),t.Y36(h.YF),t.Y36(p.x4),t.Y36(p.F5),t.Y36(h.H8),t.Y36(p.V6),t.Y36(p.fb),t.Y36(p.Ip))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-overview"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"items","size"],[1,"group-link",3,"perunWebAppsMiddleClickRouterLink","routerLink","auxclick"]],template:function(e,o){1&e&&(t.YNc(0,Ni,1,0,"mat-spinner",0),t.YNc(1,Zi,3,3,"div",1)),2&e&&(t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[m.O5,b.yS,T.Ou,q.L,G.YH,G.QG,_.X$]}),i})();var Mi=c(15592);let Li=(()=>{class i{constructor(e){this.route=e}ngOnInit(){this.route.parent.params.subscribe(e=>{this.voId=Number(e.voId)})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(b.gz))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-resources"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:1,vars:0,template:function(e,o){1&e&&t._UZ(0,"app-animated-router-outlet")},dependencies:[J.A],data:{animation:[R.Ji]}}),i})();var Ri=c(94856);let wi=(()=>{class i{constructor(e,o){this.route=e,this.router=o,this.backButtonRegex=new RegExp("/organizations/\\d+/settings/\\w+$"),this.backButtonDisplayed=!1,this.currentUrl=o.url,this.backButtonDisplayed=this.backButtonRegex.test(this.currentUrl),o.events.subscribe(n=>{n instanceof b.m2&&(this.currentUrl=n.url,this.backButtonDisplayed=this.backButtonRegex.test(this.currentUrl))})}ngOnInit(){this.route.parent.params.subscribe(e=>{this.voId=Number(e.voId)})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(b.gz),t.Y36(b.F0))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-settings"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:1,vars:0,template:function(e,o){1&e&&t._UZ(0,"app-animated-router-outlet")},dependencies:[J.A],data:{animation:[R.Ji]}}),i})();var it=c(12651);let Gi=(()=>{class i{constructor(e){this.entityStorageService=e}ngOnInit(){this.vo=this.entityStorageService.getEntity()}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-attributes"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:5,vars:5,consts:[[1,"page-subtitle"],[3,"entityId","entity"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t._UZ(4,"app-one-entity-attribute-page",1),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,3,"VO_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),t.xp6(2),t.Q6J("entityId",o.vo.id)("entity","vo"))},dependencies:[it.t,_.X$]}),i})();function Ui(i,a){1&i&&t._UZ(0,"mat-spinner",2)}function Pi(i,a){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"perun-web-apps-menu-buttons-field",3),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("items",e.items)("size","small")}}let yi=(()=>{class i{constructor(e,o,n,s){this.voService=e,this.router=o,this.entityStorageService=n,this.routePolicyService=s,this.items=[],this.loading=!1,this.isMemberOfSomeOrganization=!1}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.voService.getEnrichedVoById(this.vo.id).subscribe(e=>{this.isMemberOfSomeOrganization=0!==e.parentVos.length,this.initItems(),this.loading=!1})}initItems(){this.items=[],this.routePolicyService.canNavigate("organizations-settings-expiration",this.vo)&&this.items.push({cssIcon:"perun-group",url:`/organizations/${this.vo.id}/settings/expiration`,label:"MENU_ITEMS.VO.EXPIRATION",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-settings-managers",this.vo)&&this.items.push({cssIcon:"perun-manager",url:`/organizations/${this.vo.id}/settings/managers`,label:"MENU_ITEMS.VO.MANAGERS",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-settings-applicationForm",this.vo)&&this.items.push({cssIcon:"perun-application-form",url:`/organizations/${this.vo.id}/settings/applicationForm`,label:"MENU_ITEMS.VO.APPLICATION_FORM",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-settings-notifications",this.vo)&&this.items.push({cssIcon:"perun-notification",url:`/organizations/${this.vo.id}/settings/notifications`,label:"MENU_ITEMS.VO.NOTIFICATIONS",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-settings-extsources",this.vo)&&this.items.push({cssIcon:"perun-external-sources",url:`/organizations/${this.vo.id}/settings/extsources`,label:"MENU_ITEMS.VO.EXTSOURCES",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-settings-memberOrganizations",this.vo)&&this.items.push({cssIcon:"perun-hierarchical-vo",url:`/organizations/${this.vo.id}/settings/memberOrganizations`,label:"MENU_ITEMS.VO.MEMBER_ORGANIZATIONS",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-settings-hierarchicalInclusion",this.vo)&&this.isMemberOfSomeOrganization&&this.items.push({cssIcon:"perun-hierarchical-inclusion",url:`/organizations/${this.vo.id}/settings/hierarchicalInclusion`,label:"MENU_ITEMS.VO.HIERARCHICAL_INCLUSION",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-settings-bans",this.vo)&&this.items.push({cssIcon:"perun-ban",url:`/organizations/${this.vo.id}/settings/bans`,label:"MENU_ITEMS.VO.BANS",style:"vo-btn"})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.YF),t.Y36(b.F0),t.Y36(p.fb),t.Y36(p.Ip))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-settings-overview"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"items","size"]],template:function(e,o){1&e&&(t.YNc(0,Ui,1,0,"mat-spinner",0),t.YNc(1,Pi,2,2,"div",1)),2&e&&(t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[m.O5,T.Ou,q.L]}),i})();var B=c(3238),x=c(59549),V=c(284),f=c(24006),H=c(56709),j=c(84385),ot=c(90455),Zt=c(71948);const Vi=["*"];let Fi=(()=>{class i{constructor(){this.modelChange=new t.vpe}ngAfterViewInit(){this.toggle.change.subscribe(()=>this.valueChanged())}valueChanged(){this.modelChange.emit(this.toggle.checked)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-settings-toggle-item"]],viewQuery:function(e,o){if(1&e&&t.Gf(ot.Rr,7),2&e){let n;t.iGM(n=t.CRH())&&(o.toggle=n.first)}},inputs:{title:"title",modelValue:"modelValue"},outputs:{modelChange:"modelChange"},ngContentSelectors:Vi,decls:8,vars:5,consts:[[1,"mt-3"],[1,"d-flex","flex-row","align-items-baseline","justify-content-between"],[1,"setting-item","clickable",3,"click"],["color","primary",1,"ml-4",3,"ngModel","ngModelChange"],["toggle",""],[1,"ml-1"]],template:function(e,o){if(1&e){const n=t.EpF();t.F$t(),t.TgZ(0,"div",0)(1,"div",1)(2,"label",2),t.NdJ("click",function(){t.CHM(n);const r=t.MAs(5);return t.KtG(r.toggle()||o.valueChanged())}),t._uU(3),t.qZA(),t.TgZ(4,"mat-slide-toggle",3,4),t.NdJ("ngModelChange",function(r){return o.modelValue=r}),t.qZA()(),t.TgZ(6,"div",5),t.Hsn(7),t.qZA()()}if(2&e){const n=t.MAs(5);t.xp6(2),t.ekj("unselected-setting",!n.checked),t.xp6(1),t.hij(" ",o.title," "),t.xp6(1),t.Q6J("ngModel",o.modelValue),t.xp6(2),t.Q6J("@openClose",n.checked?"open":"closed")}},dependencies:[f.JJ,f.On,ot.Rr],data:{animation:[R.BQ]}}),i})();function Yi(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",25)(1,"mat-form-field",26)(2,"input",20),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw(2);return t.KtG(s.currentConfiguration.periodStatic=n)}),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-hint"),t._uU(5),t.ALo(6,"translate"),t.qZA()()()}if(2&i){const e=t.oxw(2);t.xp6(2),t.s9C("pattern",e.datePattern),t.s9C("placeholder",t.lcZ(3,4,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_INPUT_STATIC")),t.Q6J("ngModel",e.currentConfiguration.periodStatic),t.xp6(3),t.Oqu(t.lcZ(6,6,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DP_HINT"))}}function Ji(i,a){if(1&i&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.Q6J("value",e.value),t.xp6(1),t.Oqu(e.text)}}function qi(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",18)(1,"mat-form-field",19)(2,"input",27),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw(2);return t.KtG(s.currentConfiguration.periodDynamic=n)}),t.ALo(3,"translate"),t.qZA()(),t.TgZ(4,"mat-form-field")(5,"mat-label"),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"mat-select",8),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw(2);return t.KtG(s.currentConfiguration.periodDynamicUnit=n)}),t.YNc(9,Ji,2,2,"mat-option",17),t.qZA()()()}if(2&i){const e=t.oxw(2);t.xp6(2),t.s9C("pattern",e.dynamicAmountPattern),t.s9C("placeholder",t.lcZ(3,6,"VO_MANAGEMENT.SETTINGS.EXPIRATION.AMOUNT_VALUE")),t.Q6J("ngModel",e.currentConfiguration.periodDynamic),t.xp6(4),t.Oqu(t.lcZ(7,8,"VO_MANAGEMENT.SETTINGS.EXPIRATION.AMOUNT_TYPE")),t.xp6(2),t.Q6J("ngModel",e.currentConfiguration.periodDynamicUnit),t.xp6(1),t.Q6J("ngForOf",e.amountOptions)}}function ki(i,a){if(1&i&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.Q6J("value",e),t.xp6(1),t.Oqu(e)}}function Qi(i,a){if(1&i&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.Q6J("value",e),t.xp6(1),t.Oqu(e)}}function Bi(i,a){if(1&i&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.Q6J("value",e.value),t.xp6(1),t.Oqu(e.text)}}function Hi(i,a){if(1&i&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function ji(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",25)(1,"mat-form-field",26)(2,"input",20),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw(3);return t.KtG(s.currentConfiguration.specialLoaPeriodStatic=n)}),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-hint"),t._uU(5),t.ALo(6,"translate"),t.qZA()()()}if(2&i){const e=t.oxw(3);t.xp6(2),t.s9C("pattern",e.datePattern),t.s9C("placeholder",t.lcZ(3,4,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_INPUT_STATIC")),t.Q6J("ngModel",e.currentConfiguration.specialLoaPeriodStatic),t.xp6(3),t.Oqu(t.lcZ(6,6,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DP_HINT"))}}function zi(i,a){if(1&i&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.Q6J("value",e.value),t.xp6(1),t.Oqu(e.text)}}function $i(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",18)(1,"mat-form-field",19)(2,"input",20),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw(3);return t.KtG(s.currentConfiguration.specialLoaPeriodDynamic=n)}),t.ALo(3,"translate"),t.qZA()(),t.TgZ(4,"mat-form-field")(5,"mat-label"),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"mat-select",8),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw(3);return t.KtG(s.currentConfiguration.specialLoaPeriodDynamicUnit=n)}),t.YNc(9,zi,2,2,"mat-option",17),t.qZA()()()}if(2&i){const e=t.oxw(3);t.xp6(2),t.s9C("pattern",e.dynamicAmountPattern),t.s9C("placeholder",t.lcZ(3,6,"VO_MANAGEMENT.SETTINGS.EXPIRATION.AMOUNT_VALUE")),t.Q6J("ngModel",e.currentConfiguration.specialLoaPeriodDynamic),t.xp6(4),t.Oqu(t.lcZ(7,8,"VO_MANAGEMENT.SETTINGS.EXPIRATION.AMOUNT_TYPE")),t.xp6(2),t.Q6J("ngModel",e.currentConfiguration.specialLoaPeriodDynamicUnit),t.xp6(1),t.Q6J("ngForOf",e.amountOptions)}}function Xi(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",29)(1,"mat-radio-group",8),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw(2);return t.KtG(s.currentConfiguration.specialLoaPeriodType=n)}),t.TgZ(2,"mat-radio-button",9,30),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.TgZ(6,"mat-radio-button",11,31),t._uU(8),t.ALo(9,"translate"),t.qZA()(),t.YNc(10,ji,7,8,"div",13),t.YNc(11,$i,10,10,"div",14),t.TgZ(12,"div")(13,"mat-checkbox",32),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw(2);return t.KtG(s.currentConfiguration.specialLoaPeriodExtendExpiredMembers=n)}),t._uU(14),t.ALo(15,"translate"),t.qZA()()()}if(2&i){const e=t.MAs(3),o=t.MAs(7),n=t.oxw(2);t.xp6(1),t.Q6J("ngModel",n.currentConfiguration.specialLoaPeriodType),t.xp6(3),t.hij(" ",t.lcZ(5,7,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_TYPE_STATIC")," "),t.xp6(4),t.hij(" ",t.lcZ(9,9,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_TYPE_DYNAMIC")," "),t.xp6(2),t.Q6J("ngIf",e.checked),t.xp6(1),t.Q6J("ngIf",o.checked),t.xp6(2),t.Q6J("ngModel",n.currentConfiguration.specialLoaPeriodExtendExpiredMembers),t.xp6(1),t.hij(" ",t.lcZ(15,11,"VO_MANAGEMENT.SETTINGS.EXPIRATION.EXTEND_EXPIRED_MEMBERS_CHECKBOX")," ")}}function Ki(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",1)(1,"div",2)(2,"h1",3),t.NdJ("click",function(){t.CHM(e);const n=t.MAs(6);return t.KtG(n.toggle())}),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"mat-slide-toggle",4,5),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.currentConfiguration.enabled=n)}),t.qZA()(),t.TgZ(7,"div")(8,"label",6),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"div",7)(12,"mat-radio-group",8),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.currentConfiguration.periodType=n)}),t.TgZ(13,"mat-radio-button",9,10),t._uU(15),t.ALo(16,"translate"),t.qZA(),t.TgZ(17,"mat-radio-button",11,12),t._uU(19),t.ALo(20,"translate"),t.qZA()(),t.YNc(21,Yi,7,8,"div",13),t.YNc(22,qi,10,10,"div",14),t.qZA(),t.TgZ(23,"app-settings-toggle-item",15),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.currentConfiguration.doNotAllowLoasEnabled=n)}),t.ALo(24,"translate"),t.TgZ(25,"mat-form-field")(26,"mat-placeholder"),t._uU(27),t.ALo(28,"translate"),t.qZA(),t.TgZ(29,"mat-select",16),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.currentConfiguration.doNotAllowLoas=n)}),t.YNc(30,ki,2,2,"mat-option",17),t.qZA()()(),t.TgZ(31,"app-settings-toggle-item",15),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.currentConfiguration.doNotExtendLoasEnabled=n)}),t.ALo(32,"translate"),t.TgZ(33,"mat-form-field")(34,"mat-placeholder"),t._uU(35),t.ALo(36,"translate"),t.qZA(),t.TgZ(37,"mat-select",16),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.currentConfiguration.doNotExtendLoas=n)}),t.YNc(38,Qi,2,2,"mat-option",17),t.qZA()()(),t.TgZ(39,"app-settings-toggle-item",15),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.currentConfiguration.gracePeriodEnabled=n)}),t.ALo(40,"translate"),t.TgZ(41,"div",18)(42,"mat-form-field",19)(43,"input",20),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.currentConfiguration.gracePeriod=n)}),t.ALo(44,"translate"),t.qZA()(),t.TgZ(45,"mat-form-field")(46,"mat-label"),t._uU(47),t.ALo(48,"translate"),t.qZA(),t.TgZ(49,"mat-select",8),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.currentConfiguration.gracePeriodUnit=n)}),t.YNc(50,Bi,2,2,"mat-option",17),t.qZA()()()(),t.TgZ(51,"app-settings-toggle-item",15),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.currentConfiguration.specialLoaPeriodEnabled=n)}),t.ALo(52,"translate"),t.TgZ(53,"div",7)(54,"div")(55,"mat-form-field")(56,"mat-label"),t._uU(57),t.ALo(58,"translate"),t.qZA(),t.TgZ(59,"mat-select",8,21),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.currentConfiguration.specialLoa=n)}),t.YNc(61,Hi,2,2,"mat-option",17),t.qZA()(),t.YNc(62,Xi,16,13,"div",22),t.qZA()()()(),t.TgZ(63,"div",23),t.ALo(64,"translate"),t.TgZ(65,"button",24),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.saveChanges())}),t._uU(66),t.ALo(67,"translate"),t.qZA()()()}if(2&i){const e=t.MAs(6),o=t.MAs(14),n=t.MAs(18),s=t.oxw();t.xp6(2),t.ekj("unselected-setting",!e.checked),t.xp6(1),t.hij(" ",t.lcZ(4,44,"VO_MANAGEMENT.SETTINGS.EXPIRATION.TITLE")," "),t.xp6(2),t.Q6J("ngModel",s.currentConfiguration.enabled),t.xp6(2),t.Q6J("@openClose",e.checked?"open":"closed"),t.xp6(2),t.Oqu(t.lcZ(10,46,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_LABEL")),t.xp6(3),t.Q6J("ngModel",s.currentConfiguration.periodType),t.xp6(3),t.hij(" ",t.lcZ(16,48,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_TYPE_STATIC")," "),t.xp6(4),t.hij(" ",t.lcZ(20,50,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_TYPE_DYNAMIC")," "),t.xp6(2),t.Q6J("ngIf",o.checked),t.xp6(1),t.Q6J("ngIf",n.checked),t.xp6(1),t.Q6J("ngModel",s.currentConfiguration.doNotAllowLoasEnabled)("modelValue",s.currentConfiguration.doNotAllowLoasEnabled)("title",t.lcZ(24,52,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DONT_ALLOW_LOA_LABEL")),t.xp6(4),t.Oqu(t.lcZ(28,54,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DONT_ALLOW_LOA_SELECT")),t.xp6(2),t.Q6J("ngModel",s.currentConfiguration.doNotAllowLoas),t.xp6(1),t.Q6J("ngForOf",s.loas),t.xp6(1),t.Q6J("ngModel",s.currentConfiguration.doNotExtendLoasEnabled)("modelValue",s.currentConfiguration.doNotExtendLoasEnabled)("title",t.lcZ(32,56,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DONT_EXTEND_LOA_LABEL")),t.xp6(4),t.Oqu(t.lcZ(36,58,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DONT_EXTEND_LOA_SELECT")),t.xp6(2),t.Q6J("ngModel",s.currentConfiguration.doNotExtendLoas),t.xp6(1),t.Q6J("ngForOf",s.loas),t.xp6(1),t.Q6J("ngModel",s.currentConfiguration.gracePeriodEnabled)("modelValue",s.currentConfiguration.gracePeriodEnabled)("title",t.lcZ(40,60,"VO_MANAGEMENT.SETTINGS.EXPIRATION.GRACE_PERIOD_LABEL")),t.xp6(4),t.s9C("pattern",s.dynamicAmountPattern),t.s9C("placeholder",t.lcZ(44,62,"VO_MANAGEMENT.SETTINGS.EXPIRATION.GRACE_AMOUNT_VALUE")),t.Q6J("ngModel",s.currentConfiguration.gracePeriod),t.xp6(4),t.Oqu(t.lcZ(48,64,"VO_MANAGEMENT.SETTINGS.EXPIRATION.GRACE_AMOUNT_TYPE")),t.xp6(2),t.Q6J("ngModel",s.currentConfiguration.gracePeriodUnit),t.xp6(1),t.Q6J("ngForOf",s.amountOptions),t.xp6(1),t.Q6J("ngModel",s.currentConfiguration.specialLoaPeriodEnabled)("modelValue",s.currentConfiguration.specialLoaPeriodEnabled)("title",t.lcZ(52,66,"VO_MANAGEMENT.SETTINGS.EXPIRATION.LOA_PERIOD_LABEL")),t.xp6(6),t.Oqu(t.lcZ(58,68,"VO_MANAGEMENT.SETTINGS.EXPIRATION.SPECIAL_LOA_SELECT")),t.xp6(2),t.Q6J("ngModel",s.currentConfiguration.specialLoa),t.xp6(2),t.Q6J("ngForOf",s.loas),t.xp6(1),t.Q6J("ngIf",null!==s.currentConfiguration.specialLoa),t.xp6(1),t.s9C("matTooltip",t.lcZ(64,70,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERMISSION_DENIED_HINT")),t.Q6J("matTooltipDisabled",s.expirationAttribute.writable)("matTooltipPosition","above"),t.xp6(2),t.Q6J("disabled",!s.areChangesMade()||!s.expirationAttribute.writable),t.xp6(1),t.hij(" ",t.lcZ(67,72,"VO_MANAGEMENT.SETTINGS.EXPIRATION.SAVE")," ")}}let Dt=(()=>{class i{constructor(){this.saveAttribute=new t.vpe,this.loas=[0,1,2],this.datePattern="^(3[01]|[12][0-9]|0?[1-9])\\.(1[012]|0?[1-9])\\.$",this.dynamicAmountPattern="^[1-9]+$",this.amountOptions=[{value:"d",text:"Days"},{value:"m",text:"Months"},{value:"y",text:"Years"}]}ngOnInit(){const e=new Map;this.loas.forEach(o=>e.set(o,"")),this.initialConfiguration=this.unParseAttrValue(this.expirationAttribute.value),this.currentConfiguration=this.unParseAttrValue(this.expirationAttribute.value)}ngOnChanges(e){e.expirationAttribute&&(this.initialConfiguration=this.unParseAttrValue(this.expirationAttribute.value))}saveChanges(){this.saveAttribute.emit(this.parseExpirationRulesAttribute())}areChangesMade(){const e=this.parseAttributeValueFromConfig(this.currentConfiguration),o=this.parseAttributeValueFromConfig(this.initialConfiguration);return null===o?null!==e:null===e||e.period!==o.period||e.gracePeriod!==o.gracePeriod||e.doNotExtendLoa!==o.doNotExtendLoa||e.doNotAllowLoa!==o.doNotAllowLoa||e.periodLoa!==o.periodLoa}parseExpirationRulesAttribute(){return this.expirationAttribute.value=this.parseAttributeValueFromConfig(this.currentConfiguration),this.expirationAttribute}parsePeriod(e){switch(e.periodType){case"dynamic":return this.parseDynamicPeriod(e);case"static":return this.parseStaticPeriod(e)}}createInitConfiguration(){const e=new Map;return this.loas.forEach(o=>e.set(o,"")),{enabled:!1,periodType:null,periodStatic:"",periodDynamic:"",periodDynamicUnit:"m",doNotAllowLoas:[],doNotAllowLoasEnabled:!1,doNotExtendLoas:[],doNotExtendLoasEnabled:!1,gracePeriodEnabled:!1,gracePeriod:null,gracePeriodUnit:null,specialLoaPeriodEnabled:!1,specialLoaPeriod:"",specialLoa:null,specialLoaPeriodType:null,specialLoaPeriodDynamic:"",specialLoaPeriodDynamicUnit:"m",specialLoaPeriodStatic:"",specialLoaPeriodExtendExpiredMembers:!1}}unParseAttrValue(e){let o=this.createInitConfiguration();return null==e||(void 0!==e.period&&e.period.length>0&&(o=this.setPeriodValues(e,o)),void 0!==e.doNotAllowLoa&&e.doNotAllowLoa.length>0&&(o=this.setDoNotAllowLoasValues(e,o)),void 0!==e.doNotExtendLoa&&e.doNotExtendLoa.length>0&&(o=this.setDoNotExtendLoasValues(e,o)),void 0!==e.gracePeriod&&e.gracePeriod.length>0&&(o=this.setGracePeriodValues(e,o)),void 0!==e.periodLoa&&e.periodLoa.length>0&&(o=this.setSpecialLoaPeriodValues(e,o))),o}setPeriodValues(e,o){if(o.enabled=!0,e.period.startsWith("+")){o.periodType="dynamic";const n=e.period.charAt(e.period.length-1);o.periodDynamic=e.period.substring(1,e.period.length-1),o.periodDynamicUnit=n}else o.periodType="static",o.periodStatic=e.period;return o}setDoNotAllowLoasValues(e,o){const n=[];return e.doNotAllowLoa.split(",").forEach(s=>n.push(parseInt(s.trim(),10))),o.doNotAllowLoas=n,n.length>0&&(o.doNotAllowLoasEnabled=!0),o}setDoNotExtendLoasValues(e,o){const n=[];return e.doNotExtendLoa.split(",").forEach(s=>n.push(parseInt(s.trim(),10))),o.doNotExtendLoas=n,n.length>0&&(o.doNotExtendLoasEnabled=!0),o}setGracePeriodValues(e,o){o.gracePeriodEnabled=!0;const n=e.gracePeriod.charAt(e.gracePeriod.length-1);return o.gracePeriod=e.gracePeriod.substring(0,e.gracePeriod.length-1),o.gracePeriodUnit=n,o}setSpecialLoaPeriodValues(e,o){o.specialLoa=parseInt(e.periodLoa.substring(0,e.periodLoa.indexOf("|")),10),o.specialLoaPeriodEnabled=!0;let n=e.periodLoa.substring(e.periodLoa.indexOf("|")+1,e.periodLoa.length);if(n.startsWith("+")){n.endsWith(".")&&(o.specialLoaPeriodExtendExpiredMembers=!0,n=n.substring(0,n.length-1)),o.specialLoaPeriodType="dynamic";const s=n.charAt(n.length-1);o.specialLoaPeriodDynamic=n.substring(1,n.length-1),o.specialLoaPeriodDynamicUnit=s}else n.endsWith("..")&&(o.specialLoaPeriodExtendExpiredMembers=!0,n=n.substring(0,n.length-1)),o.specialLoaPeriodType="static",o.specialLoaPeriodStatic=n;return o}parseDynamicPeriod(e){return"+"+e.periodDynamic+e.periodDynamicUnit}parseStaticPeriod(e){return e.periodStatic}parseDontAllowLoas(e){if(!e.doNotAllowLoasEnabled)return null;let o="";return e.doNotAllowLoas.forEach(n=>o+=n.toString()+","),o.length>0&&(o=o.substring(0,o.length-1)),o.length>0?o:null}parseDontExtendLoas(e){if(!e.doNotExtendLoasEnabled)return null;let o="";return e.doNotExtendLoas.forEach(n=>o+=n.toString()+","),o.length>0&&(o=o.substring(0,o.length-1)),o.length>0?o:null}parseGracePeriod(e){return e.gracePeriodEnabled?e.gracePeriod+e.gracePeriodUnit:null}parseSpecialLoaPeriod(e){if(!e.specialLoaPeriodEnabled||!e.specialLoa)return null;let o=e.specialLoa.toString()+"|";switch(e.specialLoaPeriodType){case"static":o+=this.parseSpecialLoaPeriodStatic(e);break;case"dynamic":o+=this.parseSpecialLoaPeriodDynamic(e)}return null!=o&&e.specialLoaPeriodExtendExpiredMembers&&(o+="."),o}parseSpecialLoaPeriodStatic(e){return e.specialLoaPeriodStatic}parseSpecialLoaPeriodDynamic(e){return"+"+e.specialLoaPeriodDynamic+e.specialLoaPeriodDynamicUnit}parseAttributeValueFromConfig(e){if(!e.enabled)return null;const o=this.parsePeriod(e),n=this.parseDontAllowLoas(e),s=this.parseDontExtendLoas(e),r=this.parseGracePeriod(e),d=this.parseSpecialLoaPeriod(e),A={period:o};return null!==s&&(A.doNotExtendLoa=s),null!==n&&(A.doNotAllowLoa=n),null!==r&&(A.gracePeriod=r),null!==d&&(A.periodLoa=d),A}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-expiration-settings"]],inputs:{expirationAttribute:"expirationAttribute"},outputs:{saveAttribute:"saveAttribute"},features:[t.TTD],decls:1,vars:1,consts:[["class","card settings-card col-12 col-md-12 col-xl-6",4,"ngIf"],[1,"card","settings-card","col-12","col-md-12","col-xl-6"],[1,"d-flex","flex-row","align-items-baseline","justify-content-between"],[1,"settings-header",3,"click"],["color","primary",1,"ml-4",3,"ngModel","ngModelChange"],["mainToggle",""],[1,"setting-item","pt-2"],[1,"ml-1"],[3,"ngModel","ngModelChange"],["color","primary","value","static",1,"mr-3"],["staticPeriod",""],["color","primary","value","dynamic"],["dynamicPeriod",""],["class","form-container",4,"ngIf"],["class","d-flex flex-row",4,"ngIf"],["ngDefaultControl","",3,"ngModel","modelValue","title","ngModelChange"],["multiple","",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"d-flex","flex-row"],[1,"mr-2","amount-field"],["matInput","",3,"pattern","ngModel","placeholder","ngModelChange"],["specialLoaSelect",""],["class","mt-2",4,"ngIf"],[1,"ml-auto",3,"matTooltipDisabled","matTooltipPosition","matTooltip"],["color","primary","mat-flat-button","",1,"ml-auto",3,"disabled","click"],[1,"form-container"],[1,"date-field"],["matInput","",3,"ngModel","pattern","placeholder","ngModelChange"],[3,"value"],[1,"mt-2"],["loaStaticRadioButton",""],["loaDynamicRadioButton",""],["color","primary",3,"ngModel","ngModelChange"]],template:function(e,o){1&e&&t.YNc(0,Ki,68,74,"div",0),2&e&&t.Q6J("ngIf",o.currentConfiguration)},dependencies:[m.sg,m.O5,B.ey,x.KE,x.bx,x.hX,x.UY,V.Nt,f.Fj,f.JJ,f.c5,f.On,I.lW,H.oG,j.gD,N.gM,ot.Rr,Zt.VQ,Zt.U0,Fi,_.X$],styles:[".period-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin-top:1.5rem}.amount-field[_ngcontent-%COMP%]{width:80px}.date-field[_ngcontent-%COMP%]{width:100%}.settings-header[_ngcontent-%COMP%]{margin-top:.75rem;margin-bottom:.75rem;font-size:1.25rem;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.settings-card[_ngcontent-%COMP%]{padding:.5rem 1.5rem}"],data:{animation:[R.BQ]}}),i})();function Wi(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"app-expiration-settings",1),t.NdJ("saveAttribute",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.saveExpirationAttribute(n))}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("expirationAttribute",e.expirationAttribute)}}let to=(()=>{class i{constructor(e,o,n,s,r){this.attributesManager=e,this.translate=o,this.notificator=n,this.apiRequest=s,this.entityStorageService=r,this.translate.get("VO_DETAIL.SETTINGS.EXPIRATION.SUCCESS_MESSAGE").subscribe(d=>this.successMessage=d),this.translate.get("VO_DETAIL.SETTINGS.EXPIRATION.ERROR_MESSAGE").subscribe(d=>this.errorMessage=d)}ngOnInit(){this.vo=this.entityStorageService.getEntity(),this.loadSettings()}saveExpirationAttribute(e){this.apiRequest.dontHandleErrorForNext(),this.attributesManager.setVoAttribute({vo:this.vo.id,attribute:e}).subscribe({next:()=>{this.loadSettings(),this.notificator.showSuccess(this.successMessage)},error:o=>{this.notificator.showRPCError(o,this.errorMessage)}})}loadSettings(){this.attributesManager.getVoAttributeByName(this.vo.id,S.r.VO_DEF_EXPIRATION_RULES).subscribe(e=>{this.expirationAttribute=e})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.H8),t.Y36(_.sK),t.Y36(p.V6),t.Y36(p.F5),t.Y36(p.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-settings-expiration"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:1,vars:1,consts:[[3,"expirationAttribute","saveAttribute",4,"ngIf"],[3,"expirationAttribute","saveAttribute"]],template:function(e,o){1&e&&t.YNc(0,Wi,1,1,"app-expiration-settings",0),2&e&&t.Q6J("ngIf",void 0!==o.expirationAttribute)},dependencies:[m.O5,Dt],data:{animation:[R.BQ]}}),i})();var eo=c(55857),Mt=c(28361);let io=(()=>{class i{constructor(e,o,n,s){this.dialog=e,this.voService=o,this.guiAuthResolver=n,this.entityStorageService=s,this.availableRoles=[],this.type="Vo",this.theme="vo-theme"}ngOnInit(){this.vo=this.entityStorageService.getEntity(),this.guiAuthResolver.assignAvailableRoles(this.availableRoles,"Vo")}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.uw),t.Y36(h.YF),t.Y36(p.x4),t.Y36(p.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-settings-managers"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:1,vars:4,consts:[[3,"complementaryObject","availableRoles","complementaryObjectType","theme"]],template:function(e,o){1&e&&t._UZ(0,"app-managers-page",0),2&e&&t.Q6J("complementaryObject",o.vo)("availableRoles",o.availableRoles)("complementaryObjectType",o.type)("theme",o.theme)},dependencies:[Mt.s]}),i})();function oo(i,a){1&i&&t._UZ(0,"mat-spinner",6)}function no(i,a){1&i&&(t.TgZ(0,"mat-option",18),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APPROVABLE_GROUP_APP_USER")))}function ao(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div"),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"mat-form-field",8)(4,"textarea",19),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw(2);return t.KtG(s.reason=n)}),t.qZA()()()}if(2&i){const e=t.oxw(2);t.xp6(1),t.hij(" ",t.lcZ(2,2,"DIALOGS.RE_SEND_NOTIFICATION.REASON"),": "),t.xp6(3),t.Q6J("ngModel",e.reason)}}function so(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",7),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"mat-form-field",8)(4,"mat-select",9),t.NdJ("valueChange",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.mailType=n)}),t.TgZ(5,"mat-option",10),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.YNc(8,no,3,3,"mat-option",11),t.TgZ(9,"mat-option",12),t._uU(10),t.ALo(11,"translate"),t.qZA(),t.TgZ(12,"mat-option",13),t._uU(13),t.ALo(14,"translate"),t.qZA(),t.TgZ(15,"mat-option",14),t._uU(16),t.ALo(17,"translate"),t.qZA(),t.TgZ(18,"mat-option",15),t._uU(19),t.ALo(20,"translate"),t.qZA(),t.TgZ(21,"mat-option",16),t._uU(22),t.ALo(23,"translate"),t.qZA()()(),t.YNc(24,ao,5,4,"div",17),t.qZA()}if(2&i){const e=t.oxw();t.xp6(1),t.hij(" ",t.lcZ(2,10,"DIALOGS.RE_SEND_NOTIFICATION.SELECT"),": "),t.xp6(3),t.Q6J("value",e.mailType),t.xp6(2),t.Oqu(t.lcZ(7,12,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_CREATED_USER")),t.xp6(2),t.Q6J("ngIf",e.data.groupId),t.xp6(2),t.Oqu(t.lcZ(11,14,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_CREATED_VO_ADMIN")),t.xp6(3),t.Oqu(t.lcZ(14,16,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.MAIL_VALIDATION")),t.xp6(3),t.Oqu(t.lcZ(17,18,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_APPROVED_USER")),t.xp6(3),t.Oqu(t.lcZ(20,20,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_REJECTED_USER")),t.xp6(3),t.Oqu(t.lcZ(23,22,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_ERROR_VO_ADMIN")),t.xp6(2),t.Q6J("ngIf","APP_REJECTED_USER"===e.mailType)}}let ro=(()=>{class i{constructor(e,o,n,s,r){this.dialogRef=e,this.data=o,this.translate=n,this.notificator=s,this.registrarManager=r,this.mailType="APP_CREATED_USER",this.reason="",this.loading=!1}ngOnInit(){this.theme=this.data.theme}onCancel(){this.dialogRef.close()}onSubmit(){this.loading=!0,"APP_REJECTED_USER"===this.mailType?this.registrarManager.sendMessage({appId:this.data.applicationId,mailType:this.mailType,reason:this.reason}).subscribe(()=>{this.translate.get("DIALOGS.RE_SEND_NOTIFICATION.SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.dialogRef.close()})},()=>this.loading=!1):this.registrarManager.sendMessage({appId:this.data.applicationId,mailType:this.mailType}).subscribe(()=>{this.translate.get("DIALOGS.RE_SEND_NOTIFICATION.SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.dialogRef.close()})},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(_.sK),t.Y36(p.V6),t.Y36(h.tk))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-application-re-send-notification-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"w-100"],["disableOptionCentering","",3,"value","valueChange"],["value","APP_CREATED_USER"],["value","APPROVABLE_GROUP_APP_USER",4,"ngIf"],["value","APP_CREATED_VO_ADMIN"],["value","MAIL_VALIDATION"],["value","APP_APPROVED_USER"],["value","APP_REJECTED_USER"],["value","APP_ERROR_VO_ADMIN"],[4,"ngIf"],["value","APPROVABLE_GROUP_APP_USER"],["matInput","",3,"ngModel","ngModelChange"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,oo,1,0,"mat-spinner",1),t.YNc(5,so,25,24,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return o.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return o.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.Gre("",o.theme,"}"),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.RE_SEND_NOTIFICATION.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.RE_SEND_NOTIFICATION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",o.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.RE_SEND_NOTIFICATION.SEND")," "))},dependencies:[m.O5,B.ey,x.KE,V.Nt,f.Fj,f.JJ,f.On,I.lW,u.uh,u.xY,u.H8,j.gD,T.Ou,_.X$]}),i})();function lo(i,a){1&i&&t._UZ(0,"mat-spinner",6)}function co(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",7),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"mat-form-field",8)(4,"textarea",9),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.reason=n)}),t.qZA()()()}if(2&i){const e=t.oxw();t.xp6(1),t.hij(" ",t.lcZ(2,2,"DIALOGS.REJECT_APPLICATION.TEXT")," "),t.xp6(3),t.Q6J("ngModel",e.reason)}}let po=(()=>{class i{constructor(e,o,n,s,r){this.dialogRef=e,this.data=o,this.translate=n,this.notificator=s,this.registrarManager=r,this.reason="",this.loading=!1}ngOnInit(){this.theme=this.data.theme}onCancel(){this.dialogRef.close()}onSubmit(){this.loading=!0,this.registrarManager.rejectApplication(this.data.applicationId,this.reason).subscribe(()=>{this.translate.get("DIALOGS.REJECT_APPLICATION.SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.dialogRef.close()})},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(_.sK),t.Y36(p.V6),t.Y36(h.tk))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-application-reject-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"w-100"],["matInput","",3,"ngModel","ngModelChange"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,lo,1,0,"mat-spinner",1),t.YNc(5,co,5,4,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return o.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return o.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.REJECT_APPLICATION.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.REJECT_APPLICATION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",o.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.REJECT_APPLICATION.SUBMIT")," "))},dependencies:[m.O5,x.KE,V.Nt,f.Fj,f.JJ,f.On,I.lW,u.uh,u.xY,u.H8,T.Ou,_.X$]}),i})();function uo(i,a){1&i&&t._UZ(0,"mat-spinner",6)}function _o(i,a){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.INVALID_EMAIL")))}function mo(i,a){if(1&i&&(t.TgZ(0,"mat-form-field")(1,"label"),t._UZ(2,"input",9),t.qZA(),t.YNc(3,_o,3,3,"mat-error",8),t.qZA()),2&i){const e=t.oxw(2);t.xp6(2),t.Q6J("formControl",e.emailControl),t.xp6(1),t.Q6J("ngIf",e.emailControl.invalid)}}function go(i,a){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.EMPTY_INPUT")))}function ho(i,a){if(1&i&&(t.TgZ(0,"mat-form-field"),t._UZ(1,"input",10),t.YNc(2,go,3,3,"mat-error",8),t.qZA()),2&i){const e=t.oxw(2);t.xp6(1),t.Q6J("formControl",e.inputControl),t.xp6(1),t.Q6J("ngIf",e.inputControl.invalid)}}function fo(i,a){if(1&i&&(t.TgZ(0,"div",7),t.YNc(1,mo,4,2,"mat-form-field",8),t.YNc(2,ho,3,2,"mat-form-field",8),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",null!==e.emailControl),t.xp6(1),t.Q6J("ngIf",null!==e.inputControl)}}let Ao=(()=>{class i{constructor(e,o,n,s,r){this.dialogRef=e,this.data=o,this.notificator=n,this.translateService=s,this.registrarService=r,this.loading=!1,this.inputControl=null,this.emailControl=null}static getLabel(e){return null!==e.i18n.en.label&&0!==e.i18n.en.label.length?e.i18n.en.label:e.shortname}ngOnInit(){this.theme=this.data.theme,this.formItemData=this.data.formItemData,this.itemName=i.getLabel(this.formItemData.formItem),this.itemName.toLowerCase().includes("mail")?this.emailControl=new f.p4(this.formItemData.value,[f.kI.required,f.kI.email]):this.inputControl=new f.p4(this.formItemData.value,[f.kI.required])}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.formItemData.value=null!==this.inputControl?this.inputControl.value:this.emailControl.value,this.registrarService.updateFormItemData({appId:this.data.applicationId,data:{id:this.formItemData.id,formItem:this.formItemData.formItem,shortname:this.formItemData.shortname,value:this.formItemData.value,assuranceLevel:this.formItemData.assuranceLevel,prefilledValue:this.formItemData.prefilledValue}}).subscribe(()=>{this.notificator.showSuccess(this.translateService.instant("DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(p.V6),t.Y36(_.sK),t.Y36(h.tk))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-edit-application-form-item-data-dialog"]],decls:13,vars:16,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[4,"ngIf"],["matInput","","required","",3,"formControl"],["matInput","","required","","type","text",3,"formControl"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,uo,1,0,"mat-spinner",1),t.YNc(5,fo,3,2,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return o.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return o.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.Tol(o.theme),t.xp6(2),t.AsE(" ",t.lcZ(3,10,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.TITLE")," ",o.itemName," "),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(9,12,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.CANCEL")," "),t.xp6(2),t.Q6J("disabled",o.loading||null!==o.inputControl&&o.inputControl.invalid||null!==o.emailControl&&o.emailControl.invalid),t.xp6(1),t.hij(" ",t.lcZ(12,14,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.SUBMIT")," "))},dependencies:[m.O5,x.TO,x.KE,V.Nt,f.Fj,f.JJ,f.Q7,f.oH,I.lW,u.uh,u.xY,u.H8,T.Ou,_.X$]}),i})();var nt=c(44850),To=c(43157);function Io(i,a){if(1&i&&(t.TgZ(0,"span",5),t._uU(1),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.hij(" #",e.application.id," ")}}function bo(i,a){1&i&&t._UZ(0,"mat-spinner",6)}function vo(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",16),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.verifyApplication())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.VERIFY")," "))}function Eo(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",16),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.approveApplication())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPROVE")," "))}function Co(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.rejectApplication())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.REJECT")," "))}function So(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.deleteApplication())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DELETE")," "))}function xo(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",18),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.resendNotification())}),t.TgZ(1,"i",14),t._uU(2," mail_outline "),t.qZA(),t._uU(3),t.ALo(4,"translate"),t.qZA()}2&i&&(t.xp6(3),t.hij(" ",t.lcZ(4,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.SEND_NOTIFICATION")," "))}function No(i,a){if(1&i&&(t.TgZ(0,"div")(1,"span",10),t._uU(2),t.ALo(3,"translate"),t.qZA(),t._uU(4),t.qZA()),2&i){const e=t.oxw(2);t.xp6(2),t.Oqu(t.lcZ(3,2,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPLICATION_FOR_VO")),t.xp6(2),t.hij(": ",e.application.vo.name," ")}}function Oo(i,a){if(1&i&&(t.TgZ(0,"div")(1,"span",10),t._uU(2),t.ALo(3,"translate"),t.qZA(),t._uU(4),t.TgZ(5,"span",10),t._uU(6),t.ALo(7,"translate"),t.qZA(),t._uU(8),t.qZA()),2&i){const e=t.oxw(2);t.xp6(2),t.Oqu(t.lcZ(3,4,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPLICATION_FOR_GROUP")),t.xp6(2),t.hij(": ",e.application.group.name," "),t.xp6(2),t.Oqu(t.lcZ(7,6,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPLICATION_IN_VO")),t.xp6(2),t.hij(": ",e.application.vo.name," ")}}function Zo(i,a){1&i&&(t.TgZ(0,"span")(1,"mat-icon",19),t._uU(2,"arrow_right_alt"),t.qZA(),t._uU(3," Initial "),t.qZA())}function Do(i,a){1&i&&(t.TgZ(0,"span")(1,"mat-icon",19),t._uU(2,"restore"),t.qZA(),t._uU(3," Extension "),t.qZA())}function Mo(i,a){1&i&&(t.TgZ(0,"span")(1,"mat-icon",19),t._uU(2,"nat"),t.qZA(),t._uU(3," Embedded "),t.qZA())}function Lo(i,a){if(1&i&&(t.TgZ(0,"div",20)(1,"mat-card-title")(2,"i",21),t._uU(3,"clear"),t.qZA(),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.TgZ(6,"div")(7,"span",10),t._uU(8),t.ALo(9,"translate"),t.qZA(),t._uU(10),t.ALo(11,"date"),t.qZA()()),2&i){const e=t.oxw(2);t.xp6(4),t.AsE(" ",t.lcZ(5,4,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.REJECTED_BY"),": ",e.getModifiedAtName(e.application.modifiedBy),""),t.xp6(4),t.Oqu(t.lcZ(9,6,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DATE")),t.xp6(2),t.hij(": ",t.xi3(11,8,e.application.modifiedAt,"d.M.y H:mm:ss")," ")}}function Ro(i,a){if(1&i&&(t.TgZ(0,"div",20)(1,"mat-card-title")(2,"i",22),t._uU(3,"done"),t.qZA(),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.TgZ(6,"div")(7,"span",10),t._uU(8),t.ALo(9,"translate"),t.qZA(),t._uU(10),t.ALo(11,"date"),t.qZA()()),2&i){const e=t.oxw(2);t.xp6(4),t.AsE(" ",t.lcZ(5,4,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPROVED_BY"),": ",e.getModifiedAtName(e.application.modifiedBy),""),t.xp6(4),t.Oqu(t.lcZ(9,6,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DATE")),t.xp6(2),t.hij(": ",t.xi3(11,8,e.application.modifiedAt,"d.M.y H:mm:ss")," ")}}function wo(i,a){if(1&i&&(t.TgZ(0,"div")(1,"span",10),t._uU(2),t.ALo(3,"translate"),t.qZA(),t._uU(4),t.qZA()),2&i){const e=t.oxw(2);t.xp6(2),t.Oqu(t.lcZ(3,2,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.MAIL")),t.xp6(2),t.hij(": ",e.userMail," ")}}function Go(i,a){1&i&&t._UZ(0,"th",31)}function Uo(i,a){if(1&i&&(t.TgZ(0,"td",32),t._uU(1),t.qZA()),2&i){const e=a.$implicit,o=t.oxw(3);t.xp6(1),t.hij(" ",o.getLabel(e.formItem)," ")}}function Po(i,a){1&i&&t._UZ(0,"th",31)}function yo(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",35),t.NdJ("click",function(){t.CHM(e);const n=t.oxw().$implicit,s=t.oxw(3);return t.KtG(s.editApplicationData(n))}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA()()}}function Vo(i,a){if(1&i&&(t.TgZ(0,"td",33),t._uU(1),t.YNc(2,yo,3,0,"button",34),t.qZA()),2&i){const e=a.$implicit,o=t.oxw(3);t.xp6(1),t.hij(" ",e.value," "),t.xp6(1),t.Q6J("ngIf",("NEW"===o.application.state||"VERIFIED"===o.application.state)&&"EMBEDDED_GROUP_APPLICATION"!==e.formItem.type)}}function Fo(i,a){1&i&&t._UZ(0,"tr",36)}function Yo(i,a){1&i&&t._UZ(0,"tr",37)}function Jo(i,a){if(1&i&&(t.TgZ(0,"table",23),t.ynx(1,24),t.YNc(2,Go,1,0,"th",25),t.YNc(3,Uo,2,1,"td",26),t.BQk(),t.ynx(4,27),t.YNc(5,Po,1,0,"th",25),t.YNc(6,Vo,3,2,"td",28),t.BQk(),t.YNc(7,Fo,1,0,"tr",29),t.YNc(8,Yo,1,0,"tr",30),t.qZA()),2&i){const e=t.oxw(2);t.Q6J("dataSource",e.dataSource),t.xp6(7),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}function qo(i,a){if(1&i&&(t.TgZ(0,"div"),t.YNc(1,vo,3,3,"button",7),t.YNc(2,Eo,3,3,"button",7),t.YNc(3,Co,3,3,"button",8),t.YNc(4,So,3,3,"button",8),t.YNc(5,xo,5,3,"button",9),t.YNc(6,No,5,4,"div",4),t.YNc(7,Oo,9,8,"div",4),t.TgZ(8,"div")(9,"span",10),t._uU(10),t.ALo(11,"translate"),t.qZA(),t._uU(12,": "),t._UZ(13,"span",11),t.ALo(14,"applicationState"),t.qZA(),t.TgZ(15,"div")(16,"span",10),t._uU(17),t.ALo(18,"translate"),t.qZA(),t._uU(19,": "),t.YNc(20,Zo,4,0,"span",4),t.YNc(21,Do,4,0,"span",4),t.YNc(22,Mo,4,0,"span",4),t.qZA(),t.YNc(23,Lo,12,11,"div",12),t.YNc(24,Ro,12,11,"div",12),t.TgZ(25,"div",13)(26,"mat-card-title")(27,"i",14),t._uU(28,"redo"),t.qZA(),t._uU(29),t.ALo(30,"translate"),t.ALo(31,"userFullName"),t.qZA(),t.YNc(32,wo,5,4,"div",4),t.TgZ(33,"div")(34,"span",10),t.ALo(35,"lowercase"),t._uU(36),t.ALo(37,"translate"),t.qZA(),t._uU(38),t.qZA(),t.TgZ(39,"div")(40,"span",10),t._uU(41),t.ALo(42,"translate"),t.qZA(),t._uU(43),t.qZA(),t.TgZ(44,"div")(45,"span",10),t._uU(46),t.ALo(47,"translate"),t.qZA(),t._uU(48),t.ALo(49,"date"),t.qZA(),t.YNc(50,Jo,9,3,"table",15),t.qZA()()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("ngIf","NEW"===e.application.state&&e.verifyAuth),t.xp6(1),t.Q6J("ngIf",("VERIFIED"===e.application.state||"NEW"===e.application.state)&&e.approveAuth),t.xp6(1),t.Q6J("ngIf",("VERIFIED"===e.application.state||"NEW"===e.application.state)&&e.rejectAuth),t.xp6(1),t.Q6J("ngIf",("REJECTED"===e.application.state||"NEW"===e.application.state)&&e.deleteAuth),t.xp6(1),t.Q6J("ngIf",e.resendAuth),t.xp6(1),t.Q6J("ngIf",!e.application.group),t.xp6(1),t.Q6J("ngIf",e.application.group),t.xp6(3),t.Oqu(t.lcZ(11,26,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.STATE")),t.xp6(3),t.Q6J("outerHTML",t.lcZ(14,28,e.application.state),t.oJD),t.xp6(4),t.Oqu(t.lcZ(18,30,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.TYPE")),t.xp6(3),t.Q6J("ngIf","INITIAL"===e.application.type),t.xp6(1),t.Q6J("ngIf","EXTENSION"===e.application.type),t.xp6(1),t.Q6J("ngIf","EMBEDDED"===e.application.type),t.xp6(1),t.Q6J("ngIf","REJECTED"===e.application.state),t.xp6(1),t.Q6J("ngIf","APPROVED"===e.application.state),t.xp6(5),t.AsE(" ",t.lcZ(30,32,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.SUBMITTED_BY"),": ",null===e.application.user?e.submittedBy():t.lcZ(31,34,e.application.user),""),t.xp6(3),t.Q6J("ngIf",e.userMail),t.xp6(2),t.Q2q("data-cy","",t.lcZ(35,36,e.application.extSourceName),"-application-extsource"),t.xp6(2),t.Oqu(t.lcZ(37,38,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.EXT_SRC")),t.xp6(2),t.hij(": ",e.application.extSourceName," "),t.xp6(3),t.Oqu(t.lcZ(42,40,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.LOA")),t.xp6(2),t.hij(": ",e.application.extSourceLoa," "),t.xp6(3),t.Oqu(t.lcZ(47,42,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DATE")),t.xp6(2),t.hij(": ",t.xi3(49,44,e.application.createdAt,"d.M.y H:mm:ss")," "),t.xp6(2),t.Q6J("ngIf",0!==e.userData.length)}}let at=(()=>{class i{constructor(e,o,n,s,r,d,A,v){this.registrarManager=e,this.dialog=o,this.translate=n,this.route=s,this.notificator=r,this.router=d,this.authResolver=A,this.usersService=v,this.userData=[],this.displayedColumns=["label","value"],this.loading=!0}ngOnInit(){this.loading=!0,this.route.params.subscribe(e=>{this.route.parent.params.subscribe(o=>{this.dialogTheme=o.groupId?"group-theme":o.memberId?"member-theme":"vo-theme";const n=Number(e.applicationId);this.registrarManager.getApplicationById(n).subscribe(s=>{this.application=s,"EMBEDDED"===this.application.type&&this.application.user?this.usersService.getRichUserWithAttributes(this.application.user.id).subscribe(r=>{const d=r.userAttributes.find(A=>"preferredMail"===A.friendlyName);this.userMail=d?.value,this.setAuthRights(),this.loading=!1}):this.registrarManager.getApplicationDataById(this.application.id).subscribe(r=>{this.userData=r,this.dataSource=new l.by(this.userData),this.setAuthRights(),this.loading=!1})})})})}setAuthRights(){"group-theme"===this.dialogTheme?(this.verifyAuth=this.authResolver.isAuthorized("group-verifyApplication_int_policy",[this.application.group]),this.approveAuth=this.authResolver.isAuthorized("group-approveApplicationInternal_int_policy",[this.application.group]),this.rejectAuth=this.authResolver.isAuthorized("group-rejectApplication_int_String_policy",[this.application.group]),this.deleteAuth=this.authResolver.isAuthorized("group-deleteApplication_Application_policy",[this.application.group]),this.resendAuth=this.authResolver.isAuthorized("group-sendMessage_Application_MailType_String_policy",[this.application.group])):(this.verifyAuth=this.authResolver.isAuthorized("vo-verifyApplication_int_policy",[this.application.vo]),this.approveAuth=this.authResolver.isAuthorized("vo-approveApplicationInternal_int_policy",[this.application.vo]),this.rejectAuth=this.authResolver.isAuthorized("vo-rejectApplication_int_String_policy",[this.application.vo]),this.deleteAuth=this.authResolver.isAuthorized("vo-deleteApplication_Application_policy",[this.application.vo]),this.resendAuth=this.authResolver.isAuthorized("vo-sendMessage_Application_MailType_String_policy",[this.application.vo]))}getLabel(e){return null!==e.i18n.en.label&&0!==e.i18n.en.label.length?e.i18n.en.label:e.shortname}submittedBy(){return this.application.createdBy.slice(this.application.createdBy.lastIndexOf("=")+1,this.application.createdBy.length)}getModifiedAtName(e){const o=e.lastIndexOf("/CN=");if(-1!==o){const n=e.slice(o+4,e.length).replace("/unstructuredName="," ");return-1!==n.lastIndexOf("\\")?e.slice(e.lastIndexOf("=")+1,e.length):n}return e}resendNotification(){const e=(0,g.kZ)();e.width="500px",e.data={applicationId:this.application.id,theme:this.dialogTheme,groupId:this.application.group?.id},this.dialog.open(ro,e)}deleteApplication(){const e=(0,g.kZ)();e.width="450px",e.data={items:[this.application.id],title:"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DELETE_APPLICATION_TITLE",description:"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DELETE_APPLICATION_DESCRIPTION",theme:"vo-theme",type:"remove",showAsk:!0},this.dialog.open(w.Ts,e).afterClosed().subscribe(n=>{n&&this.registrarManager.deleteApplication(this.application.id).subscribe(()=>{this.translate.get("VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DELETE_MESSAGE").subscribe(s=>{this.notificator.showSuccess(s),this.router.navigateByUrl(this.router.url.substring(0,this.router.url.lastIndexOf("/")))})})})}rejectApplication(){const e=(0,g.kZ)();e.width="500px",e.data={applicationId:this.application.id,theme:this.dialogTheme},this.dialog.open(po,e).afterClosed().subscribe(()=>{this.loading=!0,this.registrarManager.getApplicationById(this.application.id).subscribe(n=>{this.application=n,this.loading=!1},()=>this.loading=!1)})}approveApplication(){this.loading=!0,this.registrarManager.approveApplication(this.application.id).subscribe(()=>{this.translate.get("VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPROVE_MESSAGE").subscribe(e=>{this.notificator.showSuccess(e)}),this.registrarManager.getApplicationById(this.application.id).subscribe(e=>{this.application=e,this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)}verifyApplication(){this.registrarManager.verifyApplication(this.application.id).subscribe(()=>{this.translate.get("VO_DETAIL.APPLICATION.APPLICATION_DETAIL.VERIFY_MESSAGE").subscribe(e=>{this.notificator.showSuccess(e)}),this.loading=!0,this.registrarManager.getApplicationById(this.application.id).subscribe({next:e=>{this.application=e,this.loading=!1},error:()=>this.loading=!1})})}editApplicationData(e){const o=(0,g.kZ)();o.width="600px",o.data={theme:this.dialogTheme,applicationId:this.application.id,formItemData:e},this.dialog.open(Ao,o)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.tk),t.Y36(u.uw),t.Y36(_.sK),t.Y36(b.gz),t.Y36(p.V6),t.Y36(b.F0),t.Y36(p.x4),t.Y36(h.Fv))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-application-detail"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:7,vars:6,consts:[[1,"page-subtitle"],["class","text-muted",4,"ngIf"],[1,"mb-4"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"text-muted"],[1,"ml-auto","mr-auto"],["color","accent","class","mr-2","mat-flat-button","",3,"click",4,"ngIf"],["color","warn","class","mr-2","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2 mb-2","mat-stroked-button","",3,"click",4,"ngIf"],[1,"font-weight-bold"],[3,"outerHTML"],["class","card p-3 mt-2",4,"ngIf"],[1,"card","p-4","mt-2"],[1,"material-icons"],["class","w-100","mat-table","",3,"dataSource",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"click"],["mat-stroked-button","",1,"mr-2","mb-2",3,"click"],[1,"align-text-top"],[1,"card","p-3","mt-2"],[1,"material-icons","red"],[1,"material-icons","green"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","label"],["mat-header-cell","",4,"matHeaderCellDef"],["class","font-weight-bold","mat-cell","",4,"matCellDef"],["matColumnDef","value"],["class","word-break-all","mat-cell","",4,"matCellDef"],["class","h-50","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"font-weight-bold"],["mat-cell","",1,"word-break-all"],["aria-label","Edit Application data","mat-icon-button","",3,"click",4,"ngIf"],["aria-label","Edit Application data","mat-icon-button","",3,"click"],["mat-header-row","",1,"h-50"],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"h2",0),t._uU(1),t.ALo(2,"translate"),t.YNc(3,Io,2,1,"span",1),t.qZA(),t._UZ(4,"mat-divider",2),t.YNc(5,bo,1,0,"mat-spinner",3),t.YNc(6,qo,51,47,"div",4)),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,4,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.TITLE")," "),t.xp6(2),t.Q6J("ngIf",!!o.application),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[m.O5,y.Hw,l.BZ,l.fO,l.as,l.w1,l.Dz,l.nj,l.ge,l.ev,l.XQ,l.Gk,I.lW,T.Ou,nt.d,Z.n5,m.i8,m.uU,_.X$,To.h,Q.d]}),i})();var ko=c(75234),Qo=c(37240);let Bo=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-settings"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:1,vars:0,template:function(e,o){1&e&&t._UZ(0,"app-animated-router-outlet")},dependencies:[J.A],data:{animation:[R.Ji]}}),i})();var O=c(3848),Lt=c(48323);function Ho(i,a){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.hij(" ",t.lcZ(1,1,"GROUP_DETAIL.ENTITY")," ")}function jo(i,a){if(1&i&&t._UZ(0,"app-one-entity-attribute-page",4),2&i){const e=t.oxw();t.Q6J("entityId",e.group.id)("entity","group")}}function zo(i,a){1&i&&(t._uU(0),t.ALo(1,"translate"),t.ALo(2,"translate")),2&i&&t.AsE(" ",t.lcZ(1,2,"GROUP_DETAIL.ENTITY")," - ",t.lcZ(2,4,"MEMBER_DETAIL.ENTITY")," ")}function $o(i,a){if(1&i&&t._UZ(0,"app-two-entity-attribute-page",5),2&i){const e=t.oxw(2);t.Q6J("firstEntity","group")("firstEntityId",e.group.id)("secondEntity","member")}}function Xo(i,a){1&i&&(t.TgZ(0,"mat-tab"),t.YNc(1,zo,3,6,"ng-template",1),t.YNc(2,$o,1,3,"ng-template",2),t.qZA())}function Ko(i,a){1&i&&(t._uU(0),t.ALo(1,"translate"),t.ALo(2,"translate")),2&i&&t.AsE(" ",t.lcZ(1,2,"GROUP_DETAIL.ENTITY")," - ",t.lcZ(2,4,"RESOURCE_DETAIL.ENTITY")," ")}function Wo(i,a){if(1&i&&t._UZ(0,"app-two-entity-attribute-page",5),2&i){const e=t.oxw(2);t.Q6J("firstEntity","group")("firstEntityId",e.group.id)("secondEntity","resource")}}function tn(i,a){1&i&&(t.TgZ(0,"mat-tab"),t.YNc(1,Ko,3,6,"ng-template",1),t.YNc(2,Wo,1,3,"ng-template",2),t.qZA())}let en=(()=>{class i{constructor(e,o){this.authResolver=e,this.entityStorageService=o}ngOnInit(){this.group=this.entityStorageService.getEntity(),this.groupResourceAttAuth=this.authResolver.isAuthorized("getResourceAssignments_Group_policy",[this.group]),this.groupMemberAttAuth=this.authResolver.isAuthorized("getCompleteRichMembers_Group_List_List_List_boolean_policy",[this.group])}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.x4),t.Y36(p.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-attributes"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:10,vars:5,consts:[[1,"page-subtitle"],["matTabLabel",""],["matTabContent",""],[4,"ngIf"],[3,"entityId","entity"],[3,"firstEntity","firstEntityId","secondEntity"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-tab-group")(5,"mat-tab"),t.YNc(6,Ho,2,3,"ng-template",1),t.YNc(7,jo,1,2,"ng-template",2),t.qZA(),t.YNc(8,Xo,3,0,"mat-tab",3),t.YNc(9,tn,3,0,"mat-tab",3),t.qZA()()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,3,"GROUP_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),t.xp6(6),t.Q6J("ngIf",o.groupMemberAttAuth),t.xp6(1),t.Q6J("ngIf",o.groupResourceAttAuth))},dependencies:[m.O5,O.SP,O.uD,O.uX,O.Vc,Lt.Y,it.t,_.X$]}),i})();function on(i,a){1&i&&t._UZ(0,"mat-spinner",2)}function nn(i,a){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"perun-web-apps-menu-buttons-field",3),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("items",e.items)("size","small")}}let an=(()=>{class i{constructor(e,o,n,s,r,d,A,v,L){this.sideMenuService=e,this.groupService=o,this.router=n,this.guiAuthResolver=s,this.apiRequest=r,this.attributesManager=d,this.notificator=A,this.entityStorageService=v,this.routePolicyService=L,this.items=[],this.loading=!1}ngOnInit(){this.loading=!0,this.group=this.entityStorageService.getEntity(),this.initItems(),this.loading=!1}initItems(){this.items=[],this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getGroupAttributeByName(this.group.id,S.r.GROUP_DEF_EXPIRATION_RULES).subscribe(()=>{this.items.push({cssIcon:"perun-group",url:`/organizations/${this.group.voId}/groups/${this.group.id}/settings/expiration`,label:"MENU_ITEMS.GROUP.EXPIRATION",style:"group-btn"})},e=>{"PrivilegeException"!==e.name&&this.notificator.showRPCError(e)}),this.routePolicyService.canNavigate("groups-settings-managers",this.group)&&this.items.push({cssIcon:"perun-manager",url:`/organizations/${this.group.voId}/groups/${this.group.id}/settings/managers`,label:"MENU_ITEMS.GROUP.MANAGERS",style:"group-btn"}),"members"!==this.group.name&&this.routePolicyService.canNavigate("groups-settings-applicationForm",this.group)&&this.items.push({cssIcon:"perun-application-form",url:`/organizations/${this.group.voId}/groups/${this.group.id}/settings/applicationForm`,label:"MENU_ITEMS.GROUP.APPLICATION_FORM",style:"group-btn"}),this.routePolicyService.canNavigate("groups-settings-notifications",this.group)&&this.items.push({cssIcon:"perun-notification",url:`/organizations/${this.group.voId}/groups/${this.group.id}/settings/notifications`,label:"MENU_ITEMS.GROUP.NOTIFICATIONS",style:"group-btn"}),this.routePolicyService.canNavigate("groups-settings-relations",this.group)&&this.items.push({cssIcon:"perun-group",url:`/organizations/${this.group.voId}/groups/${this.group.id}/settings/relations`,label:"MENU_ITEMS.GROUP.RELATIONS",style:"group-btn"}),this.routePolicyService.canNavigate("groups-settings-extsources",this.group)&&this.items.push({cssIcon:"perun-external-sources",url:`/organizations/${this.group.voId}/groups/${this.group.id}/settings/extsources`,label:"MENU_ITEMS.GROUP.EXTSOURCES",style:"group-btn"})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(Y.D),t.Y36(h.ff),t.Y36(b.F0),t.Y36(p.x4),t.Y36(p.F5),t.Y36(h.H8),t.Y36(p.V6),t.Y36(p.fb),t.Y36(p.Ip))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-settings-overview"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"items","size"]],template:function(e,o){1&e&&(t.YNc(0,on,1,0,"mat-spinner",0),t.YNc(1,nn,2,2,"div",1)),2&e&&(t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[m.O5,T.Ou,q.L]}),i})();var sn=c(10369),rn=c(21963),ln=c(28820),cn=c(30076);function pn(i,a){1&i&&t._UZ(0,"mat-spinner",3)}function un(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",10),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.switchToInitial())}),t.TgZ(1,"i",11),t._uU(2,"arrow_right_alt"),t.qZA(),t._uU(3),t.ALo(4,"translate"),t.qZA()}2&i&&(t.xp6(3),t.hij(" ",t.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.SWITCH_INITIAL")," "))}function dn(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",10),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.switchToExtension())}),t.TgZ(1,"i",11),t._uU(2,"cached"),t.qZA(),t._uU(3),t.ALo(4,"translate"),t.qZA()}2&i&&(t.xp6(3),t.hij(" ",t.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.SWITCH_EXTENSION")," "))}function _n(i,a){if(1&i&&(t.TgZ(0,"mat-option",12),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"uppercase"),t.qZA()),2&i){const e=a.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",t.lcZ(2,2,t.lcZ(3,4,"SHARED_LIB.LANGUAGES."+e))," ")}}function mn(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function gn(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function hn(i,a){if(1&i&&(t.TgZ(0,"div",16)(1,"div",17)(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18),t._UZ(5,"input",19),t.qZA()(),t.TgZ(6,"div",20),t.YNc(7,mn,2,1,"mat-icon",21),t.YNc(8,gn,2,1,"mat-icon",21),t.TgZ(9,"span",22),t._uU(10),t.qZA()()()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(2),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(2),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function fn(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function An(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function Tn(i,a){if(1&i&&(t.TgZ(0,"div",16)(1,"div",17)(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18),t._UZ(5,"input",24)(6,"br")(7,"input",19),t.qZA()(),t.TgZ(8,"div",20),t.YNc(9,fn,2,1,"mat-icon",21),t.YNc(10,An,2,1,"mat-icon",21),t.TgZ(11,"span",22),t._uU(12),t.qZA()()()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(2),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(2),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(2),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function In(i,a){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"input",26),t._uU(2),t._UZ(3,"br"),t.qZA()),2&i){const e=a.$implicit,o=t.oxw(3).$implicit;t.xp6(1),t.Q6J("disabled","ALWAYS"===o.disabled),t.xp6(1),t.hij(" ",e,"")}}function bn(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function vn(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function En(i,a){if(1&i&&(t.TgZ(0,"div",16)(1,"div",17)(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"form",18),t.YNc(5,In,4,2,"div",9),t._UZ(6,"input",25),t.ALo(7,"translate"),t.qZA()(),t.TgZ(8,"div",20),t.YNc(9,bn,2,1,"mat-icon",21),t.YNc(10,vn,2,1,"mat-icon",21),t.TgZ(11,"span",22),t._uU(12),t.qZA()()()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(2),t.Q6J("ngForOf",o.getLocalizedOptions(e)),t.xp6(1),t.s9C("value",t.lcZ(7,7,"VO_DETAIL.SETTINGS.APPLICATION_FORM.CLEAR_SELECTION")),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(3),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function Cn(i,a){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"span",27),t.qZA()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("innerHTML",o.getLocalizedLabel(e),t.oJD)}}function Sn(i,a){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"span",27),t.ALo(2,"sanitizeHtml"),t.qZA()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("innerHTML",t.lcZ(2,1,o.getLocalizedLabel(e)),t.oJD)}}function xn(i,a){if(1&i&&(t.TgZ(0,"option"),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.hij(" ",e," ")}}function Nn(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function On(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function Zn(i,a){if(1&i&&(t.TgZ(0,"div",16)(1,"div",17)(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18)(5,"select",28),t.YNc(6,xn,2,1,"option",9),t.qZA()()(),t.TgZ(7,"div",20),t.YNc(8,Nn,2,1,"mat-icon",21),t.YNc(9,On,2,1,"mat-icon",21),t.TgZ(10,"span",22),t._uU(11),t.qZA()()()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(2),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(1),t.Q6J("ngForOf",o.getLocalizedOptions(e)),t.xp6(2),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function Dn(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function Mn(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function Ln(i,a){if(1&i&&(t.TgZ(0,"div",16)(1,"div",17)(2,"span",18),t._uU(3),t.qZA(),t._UZ(4,"textarea",29),t.qZA(),t.TgZ(5,"div",20),t.YNc(6,Dn,2,1,"mat-icon",21),t.YNc(7,Mn,2,1,"mat-icon",21),t.TgZ(8,"span",22),t._uU(9),t.qZA()()()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(1),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(2),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function Rn(i,a){if(1&i&&(t.TgZ(0,"option",34),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.hij(" ",e," ")}}function wn(i,a){1&i&&(t.TgZ(0,"div",35)(1,"form"),t._UZ(2,"input",36),t.qZA()())}function Gn(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function Un(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function Pn(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",16)(1,"div",17)(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18)(5,"select",30),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw(2).$implicit,r=t.oxw(2);return t.KtG(r.mapForCombobox[s.id]=n)}),t.TgZ(6,"option",31),t._uU(7),t.ALo(8,"translate"),t.qZA(),t.YNc(9,Rn,2,1,"option",32),t.qZA(),t.YNc(10,wn,3,0,"div",33),t.qZA()(),t.TgZ(11,"div",20),t.YNc(12,Gn,2,1,"mat-icon",21),t.YNc(13,Un,2,1,"mat-icon",21),t.TgZ(14,"span",22),t._uU(15),t.qZA()()()}if(2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(2),t.Q6J("ngModel",o.mapForCombobox[e.id])("disabled","ALWAYS"===e.disabled),t.xp6(2),t.hij(" ",t.lcZ(8,9,"VO_DETAIL.SETTINGS.APPLICATION_FORM.OTHER_VALUE")," "),t.xp6(2),t.Q6J("ngForOf",o.getLocalizedOptions(e)),t.xp6(1),t.Q6J("ngIf","true"===o.mapForCombobox[e.id]),t.xp6(2),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function yn(i,a){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"input",37),t._uU(2),t.qZA()),2&i){const e=a.$implicit,o=t.oxw(3).$implicit;t.xp6(1),t.Q6J("disabled","ALWAYS"===o.disabled),t.xp6(1),t.hij(" ",e," ")}}function Vn(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function Fn(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function Yn(i,a){if(1&i&&(t.TgZ(0,"div",16)(1,"div",17)(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18)(5,"form",35),t.YNc(6,yn,3,2,"div",9),t.qZA()()(),t.TgZ(7,"div",20),t.YNc(8,Vn,2,1,"mat-icon",21),t.YNc(9,Fn,2,1,"mat-icon",21),t.TgZ(10,"span",22),t._uU(11),t.qZA()()()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(3),t.Q6J("ngForOf",o.getLocalizedOptions(e)),t.xp6(2),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function Jn(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function qn(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function kn(i,a){if(1&i&&(t.TgZ(0,"div",16)(1,"div",17)(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18)(5,"form",35),t._UZ(6,"input",37),t._uU(7," example group1 "),t._UZ(8,"br")(9,"input",37),t._uU(10," example group2 "),t._UZ(11,"br")(12,"input",37),t._uU(13," example group3 "),t.qZA()()(),t.TgZ(14,"div",20),t.YNc(15,Jn,2,1,"mat-icon",21),t.YNc(16,qn,2,1,"mat-icon",21),t.TgZ(17,"span",22),t._uU(18),t.qZA()()()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(3),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(3),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(3),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(3),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function Qn(i,a){if(1&i&&(t.TgZ(0,"mat-icon",40),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function Bn(i,a){if(1&i&&(t.TgZ(0,"mat-icon",40),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function Hn(i,a){if(1&i&&(t.TgZ(0,"div",16)(1,"button",38),t._uU(2),t.qZA(),t.YNc(3,Qn,2,1,"mat-icon",39),t.YNc(4,Bn,2,1,"mat-icon",39),t.qZA()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(1),t.hij(" ",o.getLocalizedLabel(e)," "),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden)}}function jn(i,a){if(1&i&&(t.TgZ(0,"mat-icon",40),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function zn(i,a){if(1&i&&(t.TgZ(0,"mat-icon",40),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function $n(i,a){if(1&i&&(t.TgZ(0,"div")(1,"button",38),t._uU(2),t.qZA(),t.YNc(3,jn,2,1,"mat-icon",39),t.YNc(4,zn,2,1,"mat-icon",39),t.qZA()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(1),t.hij(" ",o.getLocalizedLabel(e)," "),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden)}}function Xn(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function Kn(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function Wn(i,a){if(1&i&&(t.TgZ(0,"div",16)(1,"div",17)(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18)(5,"select",41)(6,"option",42),t._uU(7),t.ALo(8,"translate"),t.qZA(),t.TgZ(9,"option",43),t._uU(10,"(GMT -12:00) Eniwetok, Kwajalein"),t.qZA(),t.TgZ(11,"option",44),t._uU(12,"(GMT -11:00) Midway Island, Samoa"),t.qZA(),t.TgZ(13,"option",45),t._uU(14,"(GMT -10:00) Hawaii"),t.qZA(),t.TgZ(15,"option",46),t._uU(16,"(GMT -9:30) Taiohae"),t.qZA(),t.TgZ(17,"option",47),t._uU(18,"(GMT -9:00) Alaska"),t.qZA(),t.TgZ(19,"option",48),t._uU(20,"(GMT -8:00) Pacific Time (US & Canada)"),t.qZA(),t.TgZ(21,"option",49),t._uU(22,"(GMT -7:00) Mountain Time (US & Canada)"),t.qZA(),t.TgZ(23,"option",50),t._uU(24," (GMT -6:00) Central Time (US & Canada), Mexico City "),t.qZA(),t.TgZ(25,"option",51),t._uU(26," (GMT -5:00) Eastern Time (US & Canada), Bogota, Lima "),t.qZA(),t.TgZ(27,"option",52),t._uU(28,"(GMT -4:30) Caracas"),t.qZA(),t.TgZ(29,"option",53),t._uU(30,"(GMT -4:00) Atlantic Time (Canada), Caracas, La Paz"),t.qZA(),t.TgZ(31,"option",54),t._uU(32,"(GMT -3:30) Newfoundland"),t.qZA(),t.TgZ(33,"option",55),t._uU(34,"(GMT -3:00) Brazil, Buenos Aires, Georgetown"),t.qZA(),t.TgZ(35,"option",56),t._uU(36,"(GMT -2:00) Mid-Atlantic"),t.qZA(),t.TgZ(37,"option",57),t._uU(38,"(GMT -1:00) Azores, Cape Verde Islands"),t.qZA(),t.TgZ(39,"option",58),t._uU(40," (GMT) Western Europe Time, London, Lisbon, Casablanca "),t.qZA(),t.TgZ(41,"option",59),t._uU(42,"(GMT +1:00) Brussels, Copenhagen, Madrid, Paris"),t.qZA(),t.TgZ(43,"option",60),t._uU(44,"(GMT +2:00) Kaliningrad, South Africa"),t.qZA(),t.TgZ(45,"option",61),t._uU(46,"(GMT +3:00) Baghdad, Riyadh, Moscow, St. Petersburg"),t.qZA(),t.TgZ(47,"option",62),t._uU(48,"(GMT +3:30) Tehran"),t.qZA(),t.TgZ(49,"option",63),t._uU(50,"(GMT +4:00) Abu Dhabi, Muscat, Baku, Tbilisi"),t.qZA(),t.TgZ(51,"option",64),t._uU(52,"(GMT +4:30) Kabul"),t.qZA(),t.TgZ(53,"option",65),t._uU(54," (GMT +5:00) Ekaterinburg, Islamabad, Karachi, Tashkent "),t.qZA(),t.TgZ(55,"option",66),t._uU(56,"(GMT +5:30) Bombay, Calcutta, Madras, New Delhi"),t.qZA(),t.TgZ(57,"option",67),t._uU(58,"(GMT +5:45) Kathmandu, Pokhara"),t.qZA(),t.TgZ(59,"option",68),t._uU(60,"(GMT +6:00) Almaty, Dhaka, Colombo"),t.qZA(),t.TgZ(61,"option",69),t._uU(62,"(GMT +6:30) Yangon, Mandalay"),t.qZA(),t.TgZ(63,"option",70),t._uU(64,"(GMT +7:00) Bangkok, Hanoi, Jakarta"),t.qZA(),t.TgZ(65,"option",71),t._uU(66,"(GMT +8:00) Beijing, Perth, Singapore, Hong Kong"),t.qZA(),t.TgZ(67,"option",72),t._uU(68,"(GMT +8:45) Eucla"),t.qZA(),t.TgZ(69,"option",73),t._uU(70,"(GMT +9:00) Tokyo, Seoul, Osaka, Sapporo, Yakutsk"),t.qZA(),t.TgZ(71,"option",74),t._uU(72,"(GMT +9:30) Adelaide, Darwin"),t.qZA(),t.TgZ(73,"option",75),t._uU(74,"(GMT +10:00) Eastern Australia, Guam, Vladivostok"),t.qZA(),t.TgZ(75,"option",76),t._uU(76,"(GMT +10:30) Lord Howe Island"),t.qZA(),t.TgZ(77,"option",77),t._uU(78,"(GMT +11:00) Magadan, Solomon Islands, New Caledonia"),t.qZA(),t.TgZ(79,"option",78),t._uU(80,"(GMT +11:30) Norfolk Island"),t.qZA(),t.TgZ(81,"option",79),t._uU(82,"(GMT +12:00) Auckland, Wellington, Fiji, Kamchatka"),t.qZA(),t.TgZ(83,"option",80),t._uU(84,"(GMT +12:45) Chatham Islands"),t.qZA(),t.TgZ(85,"option",81),t._uU(86,"(GMT +13:00) Apia, Nukualofa"),t.qZA(),t.TgZ(87,"option",82),t._uU(88,"(GMT +14:00) Line Islands, Tokelau"),t.qZA()()()(),t.TgZ(89,"div",20),t.YNc(90,Xn,2,1,"mat-icon",21),t.YNc(91,Kn,2,1,"mat-icon",21),t.TgZ(92,"span",22),t._uU(93),t.qZA()()()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(2),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(2),t.hij(" ",t.lcZ(8,6,"VO_DETAIL.SETTINGS.APPLICATION_FORM.NOT_SELECTED")," "),t.xp6(83),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function ta(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function ea(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}const ia=function(){return["Example 1","Example 2"]},Rt=function(i){return{id:0,beanName:"Attribute",namespace:"",value:i}};function oa(i,a){if(1&i&&(t.TgZ(0,"div")(1,"div",17)(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18),t._UZ(5,"perun-web-apps-attribute-value-list",83),t.qZA()(),t.TgZ(6,"div",20),t.YNc(7,ta,2,1,"mat-icon",21),t.YNc(8,ea,2,1,"mat-icon",21),t.TgZ(9,"span",22),t._uU(10),t.qZA()()()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(2),t.Q6J("attribute",t.VKq(6,Rt,t.DdM(5,ia))),t.xp6(2),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function na(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function aa(i,a){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}const sa=function(){return{key1:"value 1",key2:"value 2"}};function ra(i,a){if(1&i&&(t.TgZ(0,"div")(1,"div",17)(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18),t._UZ(5,"perun-web-apps-attribute-value-map",83),t.qZA()(),t.TgZ(6,"div",20),t.YNc(7,na,2,1,"mat-icon",21),t.YNc(8,aa,2,1,"mat-icon",21),t.TgZ(9,"span",22),t._uU(10),t.qZA()()()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(2),t.Q6J("attribute",t.VKq(6,Rt,t.DdM(5,sa))),t.xp6(2),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function la(i,a){if(1&i&&(t.TgZ(0,"div",14),t.YNc(1,hn,11,5,"div",15),t.YNc(2,Tn,13,6,"div",15),t.YNc(3,En,13,9,"div",15),t.YNc(4,Cn,2,1,"div",2),t.YNc(5,Sn,3,3,"div",2),t.YNc(6,Zn,12,6,"div",15),t.YNc(7,Ln,10,5,"div",15),t.YNc(8,Pn,16,11,"div",15),t.YNc(9,Yn,12,5,"div",15),t.YNc(10,kn,19,7,"div",15),t.YNc(11,Hn,5,4,"div",15),t.YNc(12,$n,5,4,"div",2),t.YNc(13,Wn,94,8,"div",15),t.YNc(14,oa,11,8,"div",2),t.YNc(15,ra,11,8,"div",2),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngIf",("TEXTFIELD"===e.type||"VALIDATED_EMAIL"===e.type||"USERNAME"===e.type)&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","PASSWORD"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","RADIO"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","HEADING"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","HTML_COMMENT"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","SELECTIONBOX"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","TEXTAREA"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","COMBOBOX"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","CHECKBOX"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","EMBEDDED_GROUP_APPLICATION"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","SUBMIT_BUTTON"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","AUTO_SUBMIT_BUTTON"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","TIMEZONE"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","LIST_INPUT_BOX"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","MAP_INPUT_BOX"===e.type&&"ALWAYS"!==e.hidden)}}function ca(i,a){if(1&i&&(t.TgZ(0,"div"),t.YNc(1,la,16,15,"div",13),t.qZA()),2&i){const e=a.$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("ngIf",o.isValid(e))}}function pa(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div")(1,"div",4),t.YNc(2,un,5,3,"button",5),t.YNc(3,dn,5,3,"button",5),t.TgZ(4,"mat-form-field")(5,"mat-label"),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"mat-select",6),t.NdJ("valueChange",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.currentLanguage=n)}),t.YNc(9,_n,4,6,"mat-option",7),t.qZA()()(),t.TgZ(10,"div",8),t.YNc(11,ca,2,1,"div",9),t.qZA()()}if(2&i){const e=t.oxw();t.xp6(2),t.Q6J("ngIf",!e.initialPage),t.xp6(1),t.Q6J("ngIf",e.initialPage),t.xp6(3),t.Oqu(t.lcZ(7,6,"DIALOGS.PASSWORD_RESET_REQUEST.LANGUAGE")),t.xp6(2),t.Q6J("value",e.currentLanguage),t.xp6(1),t.Q6J("ngForOf",e.languages),t.xp6(2),t.Q6J("ngForOf",e.applicationFormItems)}}let wt=(()=>{class i{constructor(e,o,n){this.route=e,this.translate=o,this.store=n,this.loading=!0,this.applicationFormItems=[],this.currentLanguage="en",this.languages=["en"],this.initialPage=!0,this.mapForCombobox=new Map}ngOnInit(){this.languages=this.store.getProperty("supported_languages"),this.route.queryParamMap.subscribe(e=>{this.applicationFormItems=JSON.parse(e.get("applicationFormItems")),this.loading=!1})}switchToInitial(){this.initialPage=!0}switchToExtension(){this.initialPage=!1}getLocalizedOptions(e){if(e.i18n[this.currentLanguage]){const o=e.i18n[this.currentLanguage].options;if(null!==o&&""!==o){const n=[];for(const s of o.split("|"))n.push(s.split("#")[1]);return n}}return[]}isValid(e){if(e.forDelete)return!1;for(const o of e.applicationTypes)if("INITIAL"===o&&this.initialPage||"EXTENSION"===o&&!this.initialPage)return!0;return!1}disabledTooltip(e){let o,n,s;switch(e.disabled){case"ALWAYS":return this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.ALWAYS_DISABLED");case"IF_PREFILLED":return o=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.DISABLED_WHEN"),n=null===e.hiddenDependencyItemId?"":this.applicationFormItems.find(r=>r.id===e.disabledDependencyItemId).shortname,s=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.IS_PREFILLED"),`${o} ${n} ${s}`;case"IF_EMPTY":return o=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.DISABLED_WHEN"),n=null===e.hiddenDependencyItemId?"":this.applicationFormItems.find(r=>r.id===e.disabledDependencyItemId).shortname,s=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.IS_EMPTY"),`${o} ${n} ${s}`;default:return""}}hiddenTooltip(e){let o,n,s;switch(e.hidden){case"ALWAYS":return this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.ALWAYS_HIDDEN");case"IF_PREFILLED":return o=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.HIDDEN_WHEN"),n=null===e.hiddenDependencyItemId?"":this.applicationFormItems.find(r=>r.id===e.hiddenDependencyItemId).shortname,s=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.IS_PREFILLED"),`${o} ${n} ${s}`;case"IF_EMPTY":return o=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.HIDDEN_WHEN"),n=null===e.hiddenDependencyItemId?"":this.applicationFormItems.find(r=>r.id===e.hiddenDependencyItemId).shortname,s=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.IS_EMPTY"),`${o} ${n} ${s}`;default:return""}}getLocalizedLabel(e){return e.i18n[this.currentLanguage]?.label?e.i18n[this.currentLanguage].label+(e.required?"*":""):e.shortname+(e.required?"*":"")}getLocalizedHint(e){return e.i18n[this.currentLanguage]?e.i18n[this.currentLanguage].help:""}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(b.gz),t.Y36(_.sK),t.Y36(p.d6))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-application-form-preview"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:5,vars:5,consts:[[1,"page-subtitle"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"w-100","mb-2"],["class","mr-2","mat-stroked-button","",3,"click",4,"ngIf"],[3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[1,"card","mb-4","p-5"],[4,"ngFor","ngForOf"],["mat-stroked-button","",1,"mr-2",3,"click"],[1,"material-icons"],[3,"value"],["class","mb-2",4,"ngIf"],[1,"mb-2"],["class","d-flex",4,"ngIf"],[1,"d-flex"],[1,"w-50","d-flex"],[1,"w-50"],["type","text",1,"w-100",3,"disabled"],[1,"w-50","d-flex","left"],["class","pointer",3,"matTooltip",4,"ngIf"],[1,"ml-2"],[1,"pointer",3,"matTooltip"],["type","text",1,"mb-1","w-100",3,"disabled"],["type","reset",3,"disabled","value"],["name","temp","type","radio",3,"disabled"],[3,"innerHTML"],[1,"w-100",3,"disabled"],[1,"w-50",3,"disabled"],[1,"w-100",3,"ngModel","disabled","ngModelChange"],["selected","","value","true"],["value","false",4,"ngFor","ngForOf"],["class","w-100",4,"ngIf"],["value","false"],[1,"w-100"],["type","text"],["type","checkbox",3,"disabled"],["color","accent","mat-flat-button","",3,"disabled"],["class","pointer left",3,"matTooltip",4,"ngIf"],[1,"pointer","left",3,"matTooltip"],["id","timezone-offset","name","timezone_offset",1,"w-100",3,"disabled"],["selected","selected","value","-12:00"],["value","-12:00"],["value","-11:00"],["value","-10:00"],["value","-09:50"],["value","-09:00"],["value","-08:00"],["value","-07:00"],["value","-06:00"],["value","-05:00"],["value","-04:50"],["value","-04:00"],["value","-03:50"],["value","-03:00"],["value","-02:00"],["value","-01:00"],["value","+00:00"],["value","+01:00"],["value","+02:00"],["value","+03:00"],["value","+03:50"],["value","+04:00"],["value","+04:50"],["value","+05:00"],["value","+05:50"],["value","+05:75"],["value","+06:00"],["value","+06:50"],["value","+07:00"],["value","+08:00"],["value","+08:75"],["value","+09:00"],["value","+09:50"],["value","+10:00"],["value","+10:50"],["value","+11:00"],["value","+11:50"],["value","+12:00"],["value","+12:75"],["value","+13:00"],["value","+14:00"],[3,"attribute"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.YNc(3,pn,1,0,"mat-spinner",1),t.YNc(4,pa,12,8,"div",2)),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,3,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.TITLE"),"\n"),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[m.sg,m.O5,B.ey,x.KE,x.hX,f._Y,f.YN,f.Kr,f.EJ,f.JJ,f.JL,f.On,f.F,y.Hw,I.lW,j.gD,T.Ou,N.gM,rn.H,ln.$,m.gd,_.X$,cn.A],styles:[".left[_ngcontent-%COMP%]{margin-left:10px}.pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),i})();function ua(i,a){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.hij(" ",t.lcZ(1,1,"MEMBER_DETAIL.ENTITY")," ")}function da(i,a){if(1&i&&t._UZ(0,"app-one-entity-attribute-page",5),2&i){const e=t.oxw();t.Q6J("entityId",e.memberId)("entity","member")}}function _a(i,a){1&i&&(t._uU(0),t.ALo(1,"translate"),t.ALo(2,"translate")),2&i&&t.AsE(" ",t.lcZ(1,2,"MEMBER_DETAIL.ENTITY")," - ",t.lcZ(2,4,"GROUP_DETAIL.ENTITY")," ")}function ma(i,a){if(1&i&&t._UZ(0,"app-two-entity-attribute-page",6),2&i){const e=t.oxw(2);t.Q6J("firstEntity","member")("firstEntityId",e.memberId)("secondEntity","group")}}function ga(i,a){1&i&&(t.TgZ(0,"mat-tab"),t.YNc(1,_a,3,6,"ng-template",1),t.YNc(2,ma,1,3,"ng-template",2),t.qZA())}function ha(i,a){1&i&&(t._uU(0),t.ALo(1,"translate"),t.ALo(2,"translate")),2&i&&t.AsE(" ",t.lcZ(1,2,"MEMBER_DETAIL.ENTITY")," - ",t.lcZ(2,4,"RESOURCE_DETAIL.ENTITY")," ")}function fa(i,a){if(1&i&&t._UZ(0,"app-two-entity-attribute-page",6),2&i){const e=t.oxw(2);t.Q6J("firstEntity","member")("firstEntityId",e.memberId)("secondEntity","resource")}}function Aa(i,a){1&i&&(t.TgZ(0,"mat-tab"),t.YNc(1,ha,3,6,"ng-template",1),t.YNc(2,fa,1,3,"ng-template",2),t.qZA())}function Ta(i,a){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.hij(" ",t.lcZ(1,1,"ADMIN_USER.ENTITY")," ")}function Ia(i,a){if(1&i&&t._UZ(0,"app-one-entity-attribute-page",5),2&i){const e=t.oxw();t.Q6J("entityId",e.member.userId)("entity","user")}}function ba(i,a){1&i&&(t._uU(0),t.ALo(1,"translate"),t.ALo(2,"translate")),2&i&&t.AsE(" ",t.lcZ(1,2,"ADMIN_USER.ENTITY")," - ",t.lcZ(2,4,"FACILITY_DETAIL.ENTITY")," ")}function va(i,a){if(1&i&&t._UZ(0,"app-two-entity-attribute-page",6),2&i){const e=t.oxw(2);t.Q6J("firstEntity","user")("firstEntityId",e.member.userId)("secondEntity","facility")}}function Ea(i,a){1&i&&(t.TgZ(0,"mat-tab"),t.YNc(1,ba,3,6,"ng-template",1),t.YNc(2,va,1,3,"ng-template",2),t.qZA())}let Ca=(()=>{class i{constructor(e,o,n){this.route=e,this.authResolver=o,this.memberManager=n}ngOnInit(){this.route.parent.params.subscribe(e=>{this.memberId=Number(e.memberId),this.memberManager.getMemberById(this.memberId).subscribe(o=>{this.member=o,this.memberGroupAttAuth=this.authResolver.isAuthorized("getMemberGroups_Member_policy",[this.member]),this.memberResourceAttAuth=this.authResolver.isAuthorized("getAssignedResourcesWithStatus_Member_policy",[this.member]),this.userFacilityAttAuth=this.authResolver.isAuthorized("getAssignedFacilities_User_policy",[{beanName:"User",id:o.userId}])})})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(b.gz),t.Y36(p.x4),t.Y36(h.uq))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-member-attributes"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:14,vars:6,consts:[[1,"page-subtitle"],["matTabLabel",""],["matTabContent",""],[4,"ngIf"],[1,"mb-2"],[3,"entityId","entity"],[3,"firstEntity","firstEntityId","secondEntity"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-tab-group")(5,"mat-tab"),t.YNc(6,ua,2,3,"ng-template",1),t.YNc(7,da,1,2,"ng-template",2),t.qZA(),t.YNc(8,ga,3,0,"mat-tab",3),t.YNc(9,Aa,3,0,"mat-tab",3),t.TgZ(10,"mat-tab",4),t.YNc(11,Ta,2,3,"ng-template",1),t.YNc(12,Ia,1,2,"ng-template",2),t.qZA(),t.YNc(13,Ea,3,0,"mat-tab",3),t.qZA()()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,4,"MEMBER_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),t.xp6(6),t.Q6J("ngIf",o.memberGroupAttAuth),t.xp6(1),t.Q6J("ngIf",o.memberResourceAttAuth),t.xp6(4),t.Q6J("ngIf",o.userFacilityAttAuth))},dependencies:[m.O5,O.SP,O.uD,O.uX,O.Vc,Lt.Y,it.t,_.X$]}),i})(),Sa=(()=>{class i{constructor(e,o,n,s,r){this.sideMenuService=e,this.voService=o,this.authResolver=n,this.entityStorageService=s,this.routePolicyService=r,this.items=[]}ngOnInit(){this.vo=this.entityStorageService.getEntity(),this.initItems()}initItems(){this.routePolicyService.canNavigate("organizations-resources-preview",this.vo)&&this.items.push({cssIcon:"perun-resource",url:`/organizations/${this.vo.id}/resources/preview`,label:"MENU_ITEMS.VO.RESOURCE_PREVIEW",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-resources-tags",this.vo)&&this.items.push({cssIcon:"perun-resource-tags",url:`/organizations/${this.vo.id}/resources/tags`,label:"MENU_ITEMS.VO.RESOURCE_TAGS",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-resources-states",this.vo)&&this.items.push({cssIcon:"perun-resources-state",url:`/organizations/${this.vo.id}/resources/states`,label:"MENU_ITEMS.VO.RESOURCE_STATES",style:"vo-btn"})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(Y.D),t.Y36(h.YF),t.Y36(p.x4),t.Y36(p.fb),t.Y36(p.Ip))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-resources-overview"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:2,vars:2,consts:[[3,"items","size"]],template:function(e,o){1&e&&(t.TgZ(0,"div"),t._UZ(1,"perun-web-apps-menu-buttons-field",0),t.qZA()),2&e&&(t.xp6(1),t.Q6J("items",o.items)("size","small"))},dependencies:[q.L]}),i})();var xa=c(68056),Na=c(24219),E=c(95017),Oa=c(17584);function Za(i,a){1&i&&t._UZ(0,"mat-spinner",6)}function Da(i,a){1&i&&t._UZ(0,"th",15)}function Ma(i,a){if(1&i&&(t.TgZ(0,"td",16),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Oqu(e.tagName)}}function La(i,a){1&i&&t._UZ(0,"tr",17)}function Ra(i,a){1&i&&t._UZ(0,"tr",18)}function wa(i,a){if(1&i&&(t.TgZ(0,"div",7)(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",8),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",9),t.ynx(8,10),t.YNc(9,Da,1,0,"th",11),t.YNc(10,Ma,2,1,"td",12),t.BQk(),t.YNc(11,La,1,0,"tr",13),t.YNc(12,Ra,1,0,"tr",14),t.qZA()()),2&i){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,5,"DIALOGS.DELETE_RESOURCE_TAG.DESCRIPTION")," "),t.xp6(3),t.hij(" ",t.lcZ(6,7,"DIALOGS.DELETE_RESOURCE_TAG.ASK")," "),t.xp6(2),t.Q6J("dataSource",e.dataSource),t.xp6(4),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}let Ga=(()=>{class i{constructor(e,o,n){this.dialogRef=e,this.data=o,this.resourceManager=n,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new l.by(this.data.tagsForDelete)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;for(const e of this.data.tagsForDelete)this.resourceManager.deleteResourceTag({resourceTag:e}).subscribe(()=>{this.dialogRef.close(!0)},()=>this.dialogRef.close(!0))}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(h.xk))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-delete-resource-tag-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Za,1,0,"mat-spinner",1),t.YNc(5,wa,13,9,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return o.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return o.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.DELETE_RESOURCE_TAG.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.DELETE_RESOURCE_TAG.CANCEL")," "),t.xp6(2),t.Q6J("disabled",o.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.DELETE_RESOURCE_TAG.SUBMIT")," "))},dependencies:[m.O5,I.lW,l.BZ,l.fO,l.as,l.w1,l.Dz,l.nj,l.ge,l.ev,l.XQ,l.Gk,u.uh,u.xY,u.H8,T.Ou,_.X$]}),i})();var C=c(10036),Ua=c(17672),D=c(96214),U=c(7434);function Pa(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.create())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.CREATE_BUTTON"),"\n"))}function ya(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.deleteTag())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"VO_DETAIL.RESOURCES.TAGS.DELETE_BUTTON"),"\n")}}function Va(i,a){1&i&&t._UZ(0,"mat-spinner",9)}function Fa(i,a){if(1&i&&t._UZ(0,"app-resources-tags-list",10),2&i){const e=t.oxw();t.Q6J("displayedColumns",e.displayedColumns)("entity","vo")("resourceTags",e.resourceTag)("filterValue",e.filterValue)("selection",e.selection)("tableId",e.tableId)}}let Ya=(()=>{class i{constructor(e,o,n,s,r,d){this.resourceManager=e,this.dialog=o,this.notificator=n,this.translator=s,this.authResolver=r,this.entityStorageService=d,this.loading=!1,this.resourceTag=[],this.selection=new E.Ov(!0,[]),this.tableId=C.O7,this.displayedColumns=[]}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.setAuthRights(),this.updateData()}deleteTag(){const e=(0,g.kZ)();e.width="450px",e.data={tagsForDelete:this.selection.selected,theme:"vo-theme"},this.dialog.open(Ga,e).afterClosed().subscribe(n=>{n&&(this.translator.get("VO_DETAIL.RESOURCES.TAGS.DELETE_SUCCESS").subscribe(s=>{this.notificator.showSuccess(s)}),this.updateData())})}create(){const e=(0,g.kZ)();e.width="450px",e.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(Oa.p,e).afterClosed().subscribe(n=>{n&&(this.translator.get("VO_DETAIL.RESOURCES.TAGS.CREATE_SUCCESS").subscribe(s=>{this.notificator.showSuccess(s)}),this.updateData())})}updateData(){this.loading=!0,this.selection.clear(),this.resourceManager.getAllResourcesTagsForVo(this.vo.id).subscribe(e=>{this.resourceTag=e,this.selection.clear(),this.setAuthRights(),this.loading=!1})}applyFilter(e){this.filterValue=e}setAuthRights(){this.displayedColumns=[],this.createAuth=this.authResolver.isAuthorized("createResourceTag_ResourceTag_Vo_policy",[this.vo]),this.deleteAuth=this.authResolver.isAuthorized("deleteResourceTag_ResourceTag_policy",[this.vo]),this.editAuth=this.authResolver.isAuthorized("updateResourceTag_ResourceTag_policy",[this.vo]),this.displayedColumns=this.deleteAuth?["select","id","name"]:["id","name"],this.editAuth&&this.displayedColumns.push("edit")}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.xk),t.Y36(u.uw),t.Y36(p.V6),t.Y36(_.sK),t.Y36(p.x4),t.Y36(p.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-resources-tags"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:9,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"displayedColumns","entity","resourceTags","filterValue","selection","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","entity","resourceTags","filterValue","selection","tableId"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return o.updateData()}),t.qZA(),t.YNc(4,Pa,3,3,"button",2),t.YNc(5,ya,3,4,"button",3),t.TgZ(6,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(s){return o.applyFilter(s)}),t.qZA(),t.YNc(7,Va,1,0,"mat-spinner",5),t.YNc(8,Fa,1,6,"app-resources-tags-list",6)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"VO_DETAIL.RESOURCES.TAGS.TITLE")),t.xp6(3),t.Q6J("ngIf",o.createAuth),t.xp6(1),t.Q6J("ngIf",o.deleteAuth),t.xp6(1),t.Q6J("placeholder","VO_DETAIL.RESOURCES.TAGS.SEARCH"),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[m.O5,I.lW,T.Ou,Ua.o,D.t,U.L,_.X$]}),i})();function Ja(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"app-expiration-settings",1),t.NdJ("saveAttribute",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.saveExpirationAttribute(n))}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("expirationAttribute",e.expirationAttribute)}}let qa=(()=>{class i{constructor(e,o,n,s,r){this.attributesManager=e,this.translate=o,this.notificator=n,this.apiRequest=s,this.entityStorageService=r,this.translate.get("GROUP_DETAIL.SETTINGS.EXPIRATION.SUCCESS_MESSAGE").subscribe(d=>this.successMessage=d),this.translate.get("GROUP_DETAIL.SETTINGS.EXPIRATION.ERROR_MESSAGE").subscribe(d=>this.errorMessage=d)}ngOnInit(){this.group=this.entityStorageService.getEntity(),this.loadSettings()}saveExpirationAttribute(e){this.apiRequest.dontHandleErrorForNext(),this.attributesManager.setGroupAttribute({group:this.group.id,attribute:e}).subscribe({next:()=>{this.loadSettings(),this.notificator.showSuccess(this.successMessage)},error:o=>this.notificator.showRPCError(o,this.errorMessage)})}loadSettings(){this.attributesManager.getGroupAttributeByName(this.group.id,S.r.GROUP_DEF_EXPIRATION_RULES).subscribe(e=>{this.expirationAttribute=e})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.H8),t.Y36(_.sK),t.Y36(p.V6),t.Y36(p.F5),t.Y36(p.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-settings-expiration"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:1,vars:1,consts:[[3,"expirationAttribute","saveAttribute",4,"ngIf"],[3,"expirationAttribute","saveAttribute"]],template:function(e,o){1&e&&t.YNc(0,Ja,1,1,"app-expiration-settings",0),2&e&&t.Q6J("ngIf",void 0!==o.expirationAttribute)},dependencies:[m.O5,Dt]}),i})(),ka=(()=>{class i{constructor(e,o){this.guiAuthResolver=e,this.entityStorageService=o,this.availableRoles=[],this.selected="user",this.type="Group",this.theme="group-theme"}ngOnInit(){this.group=this.entityStorageService.getEntity(),this.guiAuthResolver.assignAvailableRoles(this.availableRoles,"Group")}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.x4),t.Y36(p.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-settings-managers"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:1,vars:4,consts:[[3,"complementaryObject","availableRoles","complementaryObjectType","theme"]],template:function(e,o){1&e&&t._UZ(0,"app-managers-page",0),2&e&&t.Q6J("complementaryObject",o.group)("availableRoles",o.availableRoles)("complementaryObjectType",o.type)("theme",o.theme)},dependencies:[Mt.s]}),i})();function Qa(i,a){1&i&&t._UZ(0,"mat-spinner",6)}function Ba(i,a){1&i&&t._UZ(0,"th",15)}function Ha(i,a){if(1&i&&(t.TgZ(0,"td",16),t._uU(1),t.qZA()),2&i){const e=a.$implicit,o=t.oxw(2);t.xp6(1),t.Oqu(o.getMailType(e))}}function ja(i,a){1&i&&t._UZ(0,"tr",17)}function za(i,a){1&i&&t._UZ(0,"tr",18)}function $a(i,a){if(1&i&&(t.TgZ(0,"div",7)(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",8),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",9),t.ynx(8,10),t.YNc(9,Ba,1,0,"th",11),t.YNc(10,Ha,2,1,"td",12),t.BQk(),t.YNc(11,ja,1,0,"tr",13),t.YNc(12,za,1,0,"tr",14),t.qZA()()),2&i){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,5,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.DESCRIPTION")," "),t.xp6(3),t.hij(" ",t.lcZ(6,7,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.CONFIRMATION")," "),t.xp6(2),t.Q6J("dataSource",e.dataSource),t.xp6(4),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}let Gt=(()=>{class i{constructor(e,o,n,s,r){this.dialogRef=e,this.data=o,this.notificator=n,this.translate=s,this.registrarService=r,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new l.by(this.data.mails)}onCancel(){this.dialogRef.close(!1)}onSubmit(){if(this.loading=!0,this.data.groupId)for(const e of this.data.mails)this.registrarService.deleteApplicationMailForGroup(this.data.groupId,e.id).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1);else for(const e of this.data.mails)this.registrarService.deleteApplicationMailForVo(this.data.voId,e.id).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1)}getMailType(e){let o="";return null==e.mailType||0===e.mailType.length?o="":this.translate.get("VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_"+e.mailType).subscribe(n=>{o=n}),o}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(p.V6),t.Y36(_.sK),t.Y36(h.tk))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-delete-notification-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Qa,1,0,"mat-spinner",1),t.YNc(5,$a,13,9,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return o.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return o.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.CANCEL")," "),t.xp6(2),t.Q6J("disabled",o.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.SUBMIT")," "))},dependencies:[m.O5,I.lW,l.BZ,l.fO,l.as,l.w1,l.Dz,l.nj,l.ge,l.ev,l.XQ,l.Gk,u.uh,u.xY,u.H8,T.Ou,_.X$]}),i})();function Xa(i,a){1&i&&t._UZ(0,"mat-spinner",7)}function Ka(i,a){1&i&&(t.TgZ(0,"perun-web-apps-alert",13),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.FORMAT_HTML_NOT_AUTHORIZED")," "))}const Wa=function(i){return{"disabled-label":i}};function ts(i,a){if(1&i&&(t.TgZ(0,"span",18),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"uppercase"),t.qZA()),2&i){const e=t.oxw().$implicit,o=t.oxw(2);t.Q6J("ngClass",t.VKq(6,Wa,"html"===e&&!o.htmlEditAuth)),t.xp6(1),t.hij(" ",t.lcZ(2,2,t.lcZ(3,4,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.FORMAT_"+e))," ")}}function es(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"textarea",19),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw(3);return t.KtG(s.mailFooter=n)}),t._uU(1," "),t.qZA()}if(2&i){const e=t.oxw(3);t.Q6J("ngModel",e.mailFooter)}}function is(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"textarea",19),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw(3);return t.KtG(s.htmlMailFooter=n)}),t._uU(1," "),t.qZA()}if(2&i){const e=t.oxw(3);t.Q6J("ngModel",e.htmlMailFooter)}}function os(i,a){if(1&i&&(t.TgZ(0,"mat-tab",14),t.YNc(1,ts,4,8,"ng-template",15),t.TgZ(2,"mat-form-field",16),t.YNc(3,es,2,1,"textarea",17),t.YNc(4,is,2,1,"textarea",17),t.qZA()()),2&i){const e=a.$implicit,o=t.oxw(2);t.Q6J("disabled","html"===e&&!o.htmlEditAuth),t.xp6(3),t.Q6J("ngIf","plain_text"===e),t.xp6(1),t.Q6J("ngIf","html"===e)}}function ns(i,a){if(1&i&&(t.TgZ(0,"div",8),t.YNc(1,Ka,3,3,"perun-web-apps-alert",9),t.TgZ(2,"mat-tab-group",10),t.YNc(3,os,5,3,"mat-tab",11),t.qZA(),t.TgZ(4,"div",12),t._uU(5),t.ALo(6,"translate"),t.qZA()()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",e.plainEdithAuth&&!e.htmlEditAuth),t.xp6(2),t.Q6J("ngForOf",e.formats),t.xp6(2),t.hij(" ",t.lcZ(6,3,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.DESCRIPTION")," ")}}let Ut=(()=>{class i{constructor(e,o,n,s,r){this.dialogRef=e,this.attributesManager=o,this.translateService=n,this.notificator=s,this.data=r,this.mailFooter="",this.htmlMailFooter="",this.loading=!1,this.formats=["plain_text","html"]}ngOnInit(){this.theme=this.data.theme,this.loading=!0,this.data.groupId?this.getFooterForGroup():this.getFooterForVo(),this.loading=!1}submit(){this.loading=!0,this.mailAttribute.value=this.mailFooter,this.htmlMailAttribute.value=this.htmlMailFooter,this.data.groupId?this.attributesManager.setGroupAttribute({group:this.data.groupId,attribute:this.mailAttribute}).subscribe({next:()=>{this.htmlEditAuth&&this.attributesManager.setGroupAttribute({group:this.data.groupId,attribute:this.htmlMailAttribute}).subscribe({next:()=>{this.notificationSuccess(),this.dialogRef.close()},error:()=>this.loading=!1})},error:()=>this.loading=!1}):this.attributesManager.setVoAttribute({vo:this.data.voId,attribute:this.mailAttribute}).subscribe({next:()=>{this.htmlEditAuth&&this.attributesManager.setVoAttribute({vo:this.data.voId,attribute:this.htmlMailAttribute}).subscribe({next:()=>{this.notificationSuccess(),this.dialogRef.close()},error:()=>this.loading=!1})},error:()=>this.loading=!1})}cancel(){this.dialogRef.close()}getFooterForVo(){this.attributesManager.getVoAttributeByName(this.data.voId,S.r.VO_DEF_MAIL_FOOTER).subscribe(e=>{this.mailAttribute=e,this.plainEdithAuth=this.mailAttribute.writable,this.mailFooter=e.value?e.value:""}),this.attributesManager.getVoAttributeByName(this.data.voId,S.r.VO_DEF_MAIL_HTML_FOOTER).subscribe(e=>{this.htmlMailAttribute=e,this.htmlEditAuth=this.htmlMailAttribute.writable,this.htmlMailFooter=e.value?e.value:""})}getFooterForGroup(){this.attributesManager.getGroupAttributeByName(this.data.groupId,S.r.GROUP_DEF_MAIL_FOOTER).subscribe(e=>{this.mailAttribute=e,this.plainEdithAuth=this.mailAttribute.writable,this.mailFooter=e.value?e.value:""}),this.attributesManager.getGroupAttributeByName(this.data.groupId,S.r.GROUP_DEF_MAIL_HTML_FOOTER).subscribe(e=>{this.htmlMailAttribute=e,this.htmlEditAuth=this.htmlMailAttribute.writable,this.htmlMailFooter=e.value?e.value:""})}notificationSuccess(){this.translateService.get("DIALOGS.NOTIFICATIONS_EDIT_FOOTER.SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.dialogRef.close()})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(h.H8),t.Y36(_.sK),t.Y36(p.V6),t.Y36(u.WI))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-edit-email-footer-dialog"]],decls:15,vars:20,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],[3,"matTooltipDisabled","matTooltipPosition","matTooltip"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["alert_type","info",4,"ngIf"],["color","primary"],[3,"disabled",4,"ngFor","ngForOf"],[1,"mt-2","font-italic","text-muted"],["alert_type","info"],[3,"disabled"],["mat-tab-label",""],[1,"w-100"],["matInput","","rows","5",3,"ngModel","ngModelChange",4,"ngIf"],[3,"ngClass"],["matInput","","rows","5",3,"ngModel","ngModelChange"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Xa,1,0,"mat-spinner",1),t.YNc(5,ns,7,5,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return o.cancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"div",5),t.ALo(11,"translate"),t.TgZ(12,"button",6),t.NdJ("click",function(){return o.submit()}),t._uU(13),t.ALo(14,"translate"),t.qZA()()()()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,12,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(9,14,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.CANCEL_BUTTON")," "),t.xp6(2),t.s9C("matTooltip",t.lcZ(11,16,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.HINT")),t.Q6J("matTooltipDisabled",o.plainEdithAuth)("matTooltipPosition","above"),t.xp6(2),t.Q6J("disabled",o.loading||!o.plainEdithAuth),t.xp6(1),t.hij(" ",t.lcZ(14,18,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.SUBMIT_BUTTON")," "))},dependencies:[m.mk,m.sg,m.O5,x.KE,V.Nt,f.Fj,f.JJ,f.On,I.lW,O.SP,O.uD,O.uX,u.uh,u.xY,u.H8,T.Ou,N.gM,M.w,m.gd,_.X$],styles:[".disabled-label[_ngcontent-%COMP%]{color:#00000061!important}"]}),i})();var as=c(67376);function ss(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div")(1,"div",1)(2,"button",2),t.NdJ("click",function(){const s=t.CHM(e).$implicit,r=t.oxw();return t.KtG(r.addTag("{"+s[0]+"}"))}),t.ALo(3,"translate"),t._uU(4),t.qZA(),t.TgZ(5,"span",3),t._uU(6),t.ALo(7,"translate"),t.qZA()(),t._UZ(8,"mat-divider",4),t.qZA()}if(2&i){const e=a.$implicit;t.xp6(2),t.s9C("matTooltip",t.lcZ(3,3,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TAG_HINT")),t.xp6(2),t.hij(" ",e[0]," "),t.xp6(2),t.hij(" ",t.lcZ(7,5,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL."+e[1])," ")}}let rs=(()=>{class i{constructor(){this.tags=[],this.addedTag=new t.vpe}addTag(e){this.addedTag.emit(e)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-tag-section"]],inputs:{tags:"tags"},outputs:{addedTag:"addedTag"},decls:1,vars:1,consts:[[4,"ngFor","ngForOf"],[1,"d-flex","flex-row"],["mat-flat-button","","matTooltipPosition","above",1,"tag-text","w-25",3,"matTooltip","click"],[1,"w-75"],[1,"mt-1","mb-1"]],template:function(e,o){1&e&&t.YNc(0,ss,9,7,"div",0),2&e&&t.Q6J("ngForOf",o.tags)},dependencies:[m.sg,I.lW,N.gM,nt.d,_.X$],styles:[".tag-text[_ngcontent-%COMP%]{font-size:.9rem;font-weight:700}"]}),i})(),ls=(()=>{class i{constructor(){this.addedTag=new t.vpe,this.applicationRelatedTags=[],this.userRelatedTags=[],this.validationLinksUsersTags=[],this.applicationLinksUsersTags=[],this.applicationLinksAdministratorsTags=[],this.perunLinksAdministratorsTags=[],this.userInvitationsTags=[]}ngOnInit(){this.getApplicationRelatedTags(),this.getUserRelatedTags(),this.getValidationLinksUsersTags(),this.getApplicationLinksUsersTags(),this.getApplicationLinksAdministratorsTags(),this.getPerunLinksAdministratorsTags(),this.getUserInvitationsTags()}getApplicationRelatedTags(){const e=[];e.push(["appId","APPID_DESCRIPTION"]),e.push(["actor","ACTOR_DESCRIPTION"]),e.push(["extSource","EXTSOURCE_DESCRIPTION"]),e.push(["voName","VONAME_DESCRIPTION"]),e.push(["groupName","GROUPNAME_DESCRIPTION"]),e.push(["mailFooter","MAILFOOTER_DESCRIPTION"]),e.push(["htmlMailFooter","HTMLMAILFOOTER_DESCRIPTION"]),e.push(["errors","ERRORS_DESCRIPTION"]),e.push(["customMessage","CUSTOMMESSAGE_DESCRIPTION"]),e.push(["fromApp-itemName","FROMAPPITEMNAME_DESCRIPTION"]),this.applicationRelatedTags=e}getUserRelatedTags(){const e=[];e.push(["firstName","FIRSTNAME_DESCRIPTION"]),e.push(["lastName","LASTNAME_DESCRIPTION"]),e.push(["displayName","DISPLAYNAME_DESCRIPTION"]),e.push(["mail","MAIL_DESCRIPTION"]),e.push(["phone","PHONE_DESCRIPTION"]),e.push(["login-namespace","LOGINNAMESPACE_DESCRIPTION"]),e.push(["membershipExpiration","MEMBERSHIPEXPIRATION_DESCRIPTION"]),this.userRelatedTags=e}getValidationLinksUsersTags(){const e=[];e.push(["validationLink","VALIDATIONLINK_DESCRIPTION"]),e.push(["validationLink-krb","VALIDATIONKRB_DESCRIPTION"]),e.push(["validationLink-fed","VALIDATIONFED_DESCRIPTION"]),e.push(["validationLink-cert","VALIDATIONCERT_DESCRIPTION"]),e.push(["validationLink-non","VALIDATIONNON_DESCRIPTION"]),e.push(["redirectUrl","REDIRECTURL_DESCRIPTION"]),this.validationLinksUsersTags=e}getApplicationLinksUsersTags(){const e=[];e.push(["appGuiUrl","APPGUIURL_DESCRIPTION"]),e.push(["appGuiUrl-krb","APPGUIURLKRB_DESCRIPTION"]),e.push(["appGuiUrl-fed","APPGUIURLFED_DESCRIPTION"]),e.push(["appGuiUrl-cert","APPGUIURLCERT_DESCRIPTION"]),e.push(["appGuiUrl-non","APPGUIURLNON_DESCRIPTION"]),this.applicationLinksUsersTags=e}getApplicationLinksAdministratorsTags(){const e=[];e.push(["appDetailUrl","APPDETAILURL_DESCRIPTION"]),e.push(["appDetailUrl-krb","APPDETAILURLKRB_DESCRIPTION"]),e.push(["appDetailUrl-fed","APPDETAILURLFED_DESCRIPTION"]),e.push(["appDetailUrl-cert","APPDETAILURLCERT_DESCRIPTION"]),e.push(["appDetailUrl-newGUI","APPDETAILURLNEWGUI_DESCRIPTION"]),this.applicationLinksAdministratorsTags=e}getPerunLinksAdministratorsTags(){const e=[];e.push(["perunGuiUrl","PERUNGUIURL_DESCRIPTION"]),e.push(["perunGuiUrl-krb","PERUNGUIURLKRB_DESCRIPTION"]),e.push(["perunGuiUrl-fed","PERUNGUIURLFED_DESCRIPTION"]),e.push(["perunGuiUrl-cert","PERUNGUIURLCERT_DESCRIPTION"]),e.push(["perunGuiUrl-newGUI","PERUNGUINEWGUI_DESCRIPTION"]),this.perunLinksAdministratorsTags=e}getUserInvitationsTags(){const e=[];e.push(["voName","USER_INVITATIONS_VONAME_DESCRIPTION"]),e.push(["groupName","USER_INVITATIONS_GROUPNAME_DESCRIPTION"]),e.push(["displayName","USER_INVITATIONS_DISPLAYNAME_DESCRIPTION"]),e.push(["mailFooter","USER_INVITATIONS_MAILFOOTER_DESCRIPTION"]),e.push(["htmlMailFooter","USER_INVITATIONS_HTMLMAILFOOTER_DESCRIPTION"]),e.push(["invitationLink","INVITATIONLINK_DESCRIPTION"]),e.push(["invitationLink-krb","INVITATIONLINKKRB_DESCRIPTION"]),e.push(["invitationLink-fed","INVITATIONLINKFED_DESCRIPTION"]),e.push(["invitationLink-cert","INVITATIONLINKCERT_DESCRIPTION"]),e.push(["invitationLink-non","INVITATIONLINKNON_DESCRIPTION"]),this.userInvitationsTags=e}addTag(e){this.addedTag.emit(e)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-tag-bar"]],outputs:{addedTag:"addedTag"},decls:47,vars:46,consts:[["alert_type","info"],["cdkScrollable","",1,"scrollable"],[1,"font-weight-bold"],[3,"tags","addedTag"],[1,"font-weight-bold","pt-2"],[1,"font-italic","text-muted"]],template:function(e,o){1&e&&(t.TgZ(0,"perun-web-apps-alert",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div",1)(4,"div",2),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"app-tag-section",3),t.NdJ("addedTag",function(s){return o.addTag(s)}),t.qZA(),t.TgZ(8,"div",4),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"app-tag-section",3),t.NdJ("addedTag",function(s){return o.addTag(s)}),t.qZA(),t.TgZ(12,"div",4),t._uU(13),t.ALo(14,"translate"),t.qZA(),t.TgZ(15,"div",5),t._uU(16),t.ALo(17,"translate"),t.qZA(),t.TgZ(18,"app-tag-section",3),t.NdJ("addedTag",function(s){return o.addTag(s)}),t.qZA(),t.TgZ(19,"div",4),t._uU(20),t.ALo(21,"translate"),t.qZA(),t.TgZ(22,"div",5),t._uU(23),t.ALo(24,"translate"),t.qZA(),t.TgZ(25,"app-tag-section",3),t.NdJ("addedTag",function(s){return o.addTag(s)}),t.qZA(),t.TgZ(26,"div",4),t._uU(27),t.ALo(28,"translate"),t.qZA(),t.TgZ(29,"div",5),t._uU(30),t.ALo(31,"translate"),t.qZA(),t.TgZ(32,"app-tag-section",3),t.NdJ("addedTag",function(s){return o.addTag(s)}),t.qZA(),t.TgZ(33,"div",4),t._uU(34),t.ALo(35,"translate"),t.qZA(),t.TgZ(36,"div",5),t._uU(37),t.ALo(38,"translate"),t.qZA(),t.TgZ(39,"app-tag-section",3),t.NdJ("addedTag",function(s){return o.addTag(s)}),t.qZA(),t.TgZ(40,"div",4),t._uU(41),t.ALo(42,"translate"),t.qZA(),t.TgZ(43,"div",5),t._uU(44),t.ALo(45,"translate"),t.qZA(),t.TgZ(46,"app-tag-section",3),t.NdJ("addedTag",function(s){return o.addTag(s)}),t.qZA()()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,20,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TAGS_DESCRIPTION"),"\n"),t.xp6(4),t.hij(" ",t.lcZ(6,22,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_RELATED_SECTION"),": "),t.xp6(2),t.Q6J("tags",o.applicationRelatedTags),t.xp6(2),t.hij(" ",t.lcZ(10,24,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.USER_RELATED_SECTION"),": "),t.xp6(2),t.Q6J("tags",o.userRelatedTags),t.xp6(2),t.hij(" ",t.lcZ(14,26,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.VALIDATION_LINKS_USERS_SECTION"),": "),t.xp6(3),t.hij(" ",t.lcZ(17,28,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.VALIDATION_LINKS_DESCRIPTION")," "),t.xp6(2),t.Q6J("tags",o.validationLinksUsersTags),t.xp6(2),t.hij(" ",t.lcZ(21,30,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_LINKS_USERS_SECTION"),": "),t.xp6(3),t.hij(" ",t.lcZ(24,32,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_LINKS_DESCRIPTION")," "),t.xp6(2),t.Q6J("tags",o.applicationLinksUsersTags),t.xp6(2),t.hij(" ",t.lcZ(28,34,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_LINKS_ADMINISTRATOR_SECTION"),": "),t.xp6(3),t.hij(" ",t.lcZ(31,36,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_LINKS_ADMINISTRATOR_DESCRIPTION")," "),t.xp6(2),t.Q6J("tags",o.applicationLinksAdministratorsTags),t.xp6(2),t.hij(" ",t.lcZ(35,38,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.PERUN_LINKS_ADMINISTRATOR_SECTION"),": "),t.xp6(3),t.hij(" ",t.lcZ(38,40,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.PERUN_LINKS_ADMINISTRATOR_DESCRIPTION")," "),t.xp6(2),t.Q6J("tags",o.perunLinksAdministratorsTags),t.xp6(2),t.hij(" ",t.lcZ(42,42,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.USER_INVITATIONS_SECTION"),": "),t.xp6(3),t.hij(" ",t.lcZ(45,44,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.USER_INVITATIONS_DESCRIPTION")," "),t.xp6(2),t.Q6J("tags",o.userInvitationsTags))},dependencies:[as.PQ,M.w,rs,_.X$],styles:[".scrollable[_ngcontent-%COMP%]{height:370px;overflow:auto}"]}),i})();function cs(i,a){1&i&&(t.TgZ(0,"div")(1,"h1",9),t._uU(2),t.ALo(3,"translate"),t.qZA()()),2&i&&(t.xp6(2),t.Oqu(t.lcZ(3,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TITLE_CREATE")))}function ps(i,a){1&i&&(t.TgZ(0,"h1",9),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TITLE_EDIT")))}function us(i,a){1&i&&t._UZ(0,"mat-spinner",10)}function ds(i,a){1&i&&(t.TgZ(0,"mat-option",37),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APPROVABLE_GROUP_APP_USER")," "))}function _s(i,a){1&i&&(t.TgZ(0,"div",35),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EMAIL_TYPE_DESCRIPTION_EDIT")," "))}function ms(i,a){1&i&&(t.TgZ(0,"div",35),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EMAIL_TYPE_DESCRIPTION_CREATE")," "))}function gs(i,a){1&i&&(t.TgZ(0,"mat-option",38),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EXTENSION")," "))}function hs(i,a){1&i&&(t.TgZ(0,"div",35),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_TYPE_DESCRIPTION_EDIT")," "))}function fs(i,a){1&i&&(t.TgZ(0,"div",35),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_TYPE_DESCRIPTION_CREATE")," "))}function As(i,a){1&i&&(t.TgZ(0,"perun-web-apps-alert",42),t._UZ(1,"i",43),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Q6J("innerHTML",t.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.FORMAT_INFO"),t.oJD))}function Ts(i,a){1&i&&(t.TgZ(0,"perun-web-apps-alert",42),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.FORMAT_INFO_NOT_AUTHORIZED")," "))}const Is=function(i){return{"disabled-label":i}};function bs(i,a){if(1&i&&(t.TgZ(0,"span",58),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"uppercase"),t.qZA()),2&i){const e=t.oxw().$implicit,o=t.oxw(4);t.Q6J("ngClass",t.VKq(6,Is,"html"===e&&!o.htmlAuth)),t.xp6(1),t.hij(" ",t.lcZ(2,2,t.lcZ(3,4,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.FORMAT_"+e))," ")}}function vs(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"input",59),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw(3).$implicit,r=t.oxw(2);return t.KtG(r.applicationMail.message[s].subject=n)})("focus",function(){t.CHM(e);const n=t.oxw(5);return t.KtG(n.isTextFocused=!1)}),t.qZA()}if(2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("ngModel",o.applicationMail.message[e].subject)}}function Es(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"input",59),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw(3).$implicit,r=t.oxw(2);return t.KtG(r.applicationMail.htmlMessage[s].subject=n)})("focus",function(){t.CHM(e);const n=t.oxw(5);return t.KtG(n.isTextFocused=!1)}),t.qZA()}if(2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("ngModel",o.applicationMail.htmlMessage[e].subject)}}function Cs(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"textarea",60),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw(3).$implicit,r=t.oxw(2);return t.KtG(r.applicationMail.message[s].text=n)})("focus",function(){t.CHM(e);const n=t.oxw(5);return t.KtG(n.isTextFocused=!0)}),t._uU(1," "),t.qZA()}if(2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("ngModel",o.applicationMail.message[e].text)}}function Ss(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"textarea",60),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw(3).$implicit,r=t.oxw(2);return t.KtG(r.applicationMail.htmlMessage[s].text=n)})("focus",function(){t.CHM(e);const n=t.oxw(5);return t.KtG(n.isTextFocused=!0)}),t._uU(1," "),t.qZA()}if(2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("ngModel",o.applicationMail.htmlMessage[e].text)}}function xs(i,a){1&i&&t._UZ(0,"mat-divider",61)}function Ns(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-tab",44),t.YNc(1,bs,4,8,"ng-template",45),t.TgZ(2,"div",46)(3,"div",47)(4,"div",48)(5,"button",49),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(4);return t.KtG(n.showTags=!n.showTags)}),t._uU(6),t.ALo(7,"translate"),t.ALo(8,"translate"),t.qZA(),t.TgZ(9,"span",50),t._uU(10),t.ALo(11,"translate"),t.qZA(),t.TgZ(12,"mat-form-field",18)(13,"div",null,51),t.YNc(15,vs,1,1,"input",52),t.YNc(16,Es,1,1,"input",52),t.qZA()()(),t.TgZ(17,"div",53),t._uU(18),t.ALo(19,"translate"),t.qZA(),t.TgZ(20,"mat-form-field",18)(21,"div",null,54),t.YNc(23,Cs,2,1,"textarea",55),t.YNc(24,Ss,2,1,"textarea",55),t.qZA()()(),t.YNc(25,xs,1,0,"mat-divider",56),t.TgZ(26,"div")(27,"app-tag-bar",57),t.NdJ("addedTag",function(n){const r=t.CHM(e).$implicit,d=t.MAs(14),A=t.MAs(22),v=t.oxw(2).$implicit,L=t.oxw(2);return t.KtG(L.addTag(d,A,v,n,r))}),t.qZA()()()()}if(2&i){const e=a.$implicit,o=t.oxw(4);t.Q6J("disabled","html"===e&&!o.htmlAuth),t.xp6(6),t.hij(" ",o.showTags?t.lcZ(7,10,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.HIDE_TAGS"):t.lcZ(8,12,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SHOW_TAGS")," "),t.xp6(4),t.hij(" ",t.lcZ(11,14,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SUBJECT"),": "),t.xp6(5),t.Q6J("ngIf","plain_text"===e),t.xp6(1),t.Q6J("ngIf","html"===e),t.xp6(2),t.hij(" ",t.lcZ(19,16,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TEXT"),": "),t.xp6(5),t.Q6J("ngIf","plain_text"===e),t.xp6(1),t.Q6J("ngIf","html"===e),t.xp6(1),t.Q6J("ngIf",o.showTags),t.xp6(1),t.Q6J("@tagsOpenClose",o.showTags?"open":"closed")}}function Os(i,a){if(1&i&&(t.YNc(0,As,3,3,"perun-web-apps-alert",40),t.YNc(1,Ts,3,3,"perun-web-apps-alert",40),t.TgZ(2,"mat-tab-group",13),t.YNc(3,Ns,28,18,"mat-tab",41),t.qZA()),2&i){const e=t.oxw(3);t.Q6J("ngIf",e.htmlAuth),t.xp6(1),t.Q6J("ngIf",!e.htmlAuth),t.xp6(2),t.Q6J("ngForOf",e.formats)}}function Zs(i,a){1&i&&(t.TgZ(0,"mat-tab",14),t.ALo(1,"translate"),t.ALo(2,"uppercase"),t.YNc(3,Os,4,3,"ng-template",39),t.qZA()),2&i&&t.s9C("label",t.lcZ(1,1,t.lcZ(2,3,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.LANG_"+a.$implicit)))}function Ds(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",11)(1,"div")(2,"perun-web-apps-alert",12),t._uU(3),t.ALo(4,"translate"),t.qZA()(),t.TgZ(5,"mat-tab-group",13)(6,"mat-tab",14),t.ALo(7,"translate"),t.TgZ(8,"div",15)(9,"span",16),t._uU(10),t.ALo(11,"translate"),t.qZA(),t.TgZ(12,"div",17)(13,"mat-form-field",18)(14,"mat-select",19),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.applicationMail.mailType=n)})("selectionChange",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.notificationExist())}),t.TgZ(15,"mat-option",20),t._uU(16),t.ALo(17,"translate"),t.qZA(),t.YNc(18,ds,3,3,"mat-option",21),t.TgZ(19,"mat-option",22),t._uU(20),t.ALo(21,"translate"),t.qZA(),t.TgZ(22,"mat-option",23),t._uU(23),t.ALo(24,"translate"),t.qZA(),t.TgZ(25,"mat-option",24),t._uU(26),t.ALo(27,"translate"),t.qZA(),t.TgZ(28,"mat-option",25),t._uU(29),t.ALo(30,"translate"),t.qZA(),t.TgZ(31,"mat-option",26),t._uU(32),t.ALo(33,"translate"),t.qZA(),t.TgZ(34,"mat-option",27),t._uU(35),t.ALo(36,"translate"),t.qZA()()()()(),t.TgZ(37,"div",28),t._UZ(38,"span",29),t.YNc(39,_s,3,3,"div",30),t.YNc(40,ms,3,3,"div",30),t.qZA(),t.TgZ(41,"div",15)(42,"span",31),t._uU(43),t.ALo(44,"translate"),t.qZA(),t.TgZ(45,"div",17)(46,"mat-form-field",18)(47,"mat-select",19),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.applicationMail.appType=n)})("selectionChange",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.notificationExist())}),t.TgZ(48,"mat-option",32),t._uU(49),t.ALo(50,"translate"),t.qZA(),t.YNc(51,gs,3,3,"mat-option",33),t.qZA()()()(),t.TgZ(52,"div",28),t._UZ(53,"span",29),t.YNc(54,hs,3,3,"div",30),t.YNc(55,fs,3,3,"div",30),t.qZA(),t.TgZ(56,"div",15)(57,"span",31),t._uU(58),t.ALo(59,"translate"),t.qZA(),t.TgZ(60,"div",17)(61,"mat-checkbox",34),t.NdJ("ngModelChange",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.applicationMail.send=n)}),t.qZA()()(),t.TgZ(62,"div",28),t._UZ(63,"span",29),t.TgZ(64,"div",35),t._uU(65),t.ALo(66,"translate"),t.qZA()()(),t.YNc(67,Zs,4,5,"mat-tab",36),t.qZA()()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("@openClose",e.invalidNotification?"open":"closed"),t.xp6(2),t.Oqu(t.lcZ(4,27,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.INVALID_NOTIFICATION")),t.xp6(3),t.s9C("label",t.lcZ(7,29,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.BASIC_SETTINGS")),t.xp6(4),t.hij("",t.lcZ(11,31,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EMAIL_TYPE")," :"),t.xp6(4),t.Q6J("ngModel",e.applicationMail.mailType)("disabled",!e.data.createMailNotification),t.xp6(2),t.hij(" ",t.lcZ(17,33,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_CREATED_USER")," "),t.xp6(2),t.Q6J("ngIf",e.data.groupId),t.xp6(2),t.hij(" ",t.lcZ(21,35,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_CREATED_VO_ADMIN")," "),t.xp6(3),t.hij(" ",t.lcZ(24,37,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_MAIL_VALIDATION")," "),t.xp6(3),t.hij(" ",t.lcZ(27,39,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_APPROVED_USER")," "),t.xp6(3),t.hij(" ",t.lcZ(30,41,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_REJECTED_USER")," "),t.xp6(3),t.hij(" ",t.lcZ(33,43,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_ERROR_VO_ADMIN")," "),t.xp6(3),t.hij(" ",t.lcZ(36,45,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_USER_INVITE")," "),t.xp6(4),t.Q6J("ngIf",!e.data.createMailNotification),t.xp6(1),t.Q6J("ngIf",e.data.createMailNotification),t.xp6(3),t.hij("",t.lcZ(44,47,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_TYPE")," :"),t.xp6(4),t.Q6J("ngModel",e.applicationMail.appType)("disabled",!e.data.createMailNotification),t.xp6(2),t.hij(" ",t.lcZ(50,49,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.INITIAL")," "),t.xp6(2),t.Q6J("ngIf","USER_INVITE"!==e.applicationMail.mailType),t.xp6(3),t.Q6J("ngIf",!e.data.createMailNotification),t.xp6(1),t.Q6J("ngIf",e.data.createMailNotification),t.xp6(3),t.hij("",t.lcZ(59,51,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SENDING_ENABLED")," :"),t.xp6(3),t.Q6J("ngModel",e.applicationMail.send),t.xp6(4),t.hij(" ",t.lcZ(66,53,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SENDING_ENABLED_DESCRIPTION")," "),t.xp6(2),t.Q6J("ngForOf",e.languages)}}function Ms(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",62),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.create())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",e.invalidNotification||e.loading),t.xp6(1),t.hij(" ",t.lcZ(2,2,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.CREATE_BUTTON")," ")}}function Ls(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",62),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.save())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",e.loading||!e.editAuth),t.xp6(1),t.hij(" ",t.lcZ(2,2,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SAVE_BUTTON")," ")}}let st=(()=>{class i{constructor(e,o,n,s,r,d){this.dialogRef=e,this.registrarService=o,this.data=n,this.authResolver=s,this.groupsService=r,this.store=d,this.showTags=!1,this.isTextFocused=!0,this.invalidNotification=!1,this.loading=!1,this.languages=["en"],this.formats=["plain_text","html"]}ngOnInit(){this.languages=this.store.getProperty("supported_languages"),this.htmlAuth=this.authResolver.isPerunAdmin(),this.applicationMail=this.data.applicationMail,this.theme=this.data.theme,this.data.groupId?this.groupsService.getGroupById(this.data.groupId).subscribe(e=>{this.editAuth=this.authResolver.isAuthorized("group-addMail_ApplicationForm_ApplicationMail_policy",[e])}):this.data.voId&&(this.editAuth=this.authResolver.isAuthorized("vo-addMail_ApplicationForm_ApplicationMail_policy",[{id:this.data.voId,beanName:"Vo"}]))}cancel(){this.dialogRef.close()}create(){this.notificationExist(),!this.invalidNotification&&(this.loading=!0,this.data.groupId?this.registrarService.addApplicationMailForGroup({group:this.data.groupId,mail:this.applicationMail}).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1):this.registrarService.addApplicationMailForVo({vo:this.data.voId,mail:this.applicationMail}).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1))}save(){this.loading=!0,this.registrarService.updateApplicationMail({mail:this.applicationMail}).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1)}addTag(e,o,n,s,r){const d=this.isTextFocused?o.children.item(0):e.children.item(0),A=d.selectionStart;this.isTextFocused?"html"===r?this.applicationMail.htmlMessage[n].text=this.applicationMail.htmlMessage[n].text.substring(0,A)+s+this.applicationMail.htmlMessage[n].text.substring(A):this.applicationMail.message[n].text=this.applicationMail.message[n].text.substring(0,A)+s+this.applicationMail.message[n].text.substring(A):"html"===r?this.applicationMail.htmlMessage[n].subject=this.applicationMail.htmlMessage[n].subject.substring(0,A)+s+this.applicationMail.htmlMessage[n].subject.substring(A):this.applicationMail.message[n].subject=this.applicationMail.message[n].subject.substring(0,A)+s+this.applicationMail.message[n].subject.substring(A),d.focus()}notificationExist(){for(const e of this.data.applicationMails)if(e.mailType===this.applicationMail.mailType&&e.appType===this.applicationMail.appType)return void(this.invalidNotification=!0);this.invalidNotification=!1}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(h.tk),t.Y36(u.WI),t.Y36(p.x4),t.Y36(h.ff),t.Y36(p.d6))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-add-edit-notification-dialog"]],decls:15,vars:17,consts:[[1,"h-100","d-flex","flex-column"],[4,"ngIf","ngIfElse"],["edit",""],["class","mr-auto ml-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",1,"d-flex","mt-auto"],["mat-flat-button","",1,"ml-auto",3,"click"],["class","ml-2","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"matTooltipDisabled","matTooltipPosition","matTooltip"],["mat-dialog-title",""],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],["alert_type","error"],["color","primary"],[3,"label"],[1,"d-flex"],[1,"w-25","m-auto","font-weight-bold"],[1,"w-75"],[1,"w-100"],["disableOptionCentering","",3,"ngModel","disabled","ngModelChange","selectionChange"],["value","APP_CREATED_USER"],["value","APPROVABLE_GROUP_APP_USER",4,"ngIf"],["value","APP_CREATED_VO_ADMIN"],["value","MAIL_VALIDATION"],["value","APP_APPROVED_USER"],["value","APP_REJECTED_USER"],["value","APP_ERROR_VO_ADMIN"],["value","USER_INVITE"],[1,"d-flex","mb-3"],[1,"w-25"],["class","w-75 font-italic text-muted",4,"ngIf"],[1,"w-25","font-weight-bold"],["value","INITIAL"],["value","EXTENSION",4,"ngIf"],[3,"ngModel","ngModelChange"],[1,"w-75","font-italic","text-muted"],[3,"label",4,"ngFor","ngForOf"],["value","APPROVABLE_GROUP_APP_USER"],["value","EXTENSION"],["matTabContent",""],["alert_type","info",4,"ngIf"],[3,"disabled",4,"ngFor","ngForOf"],["alert_type","info"],[3,"innerHTML"],[3,"disabled"],["mat-tab-label",""],[1,"d-flex","w-100"],[1,"pr-2","w-100"],[1,"pt-2"],["mat-stroked-button","",1,"right-button",3,"click"],[1,"font-weight-bold","pr-2"],["Input",""],["matInput","",3,"ngModel","ngModelChange","focus",4,"ngIf"],[1,"font-weight-bold"],["Textarea",""],["matInput","","rows","17",3,"ngModel","ngModelChange","focus",4,"ngIf"],["class","ml-3 mr-3","vertical","true",4,"ngIf"],[3,"addedTag"],[3,"ngClass"],["matInput","",3,"ngModel","ngModelChange","focus"],["matInput","","rows","17",3,"ngModel","ngModelChange","focus"],["vertical","true",1,"ml-3","mr-3"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(e,o){if(1&e&&(t.TgZ(0,"div")(1,"div",0),t.YNc(2,cs,4,3,"div",1),t.YNc(3,ps,3,3,"ng-template",null,2,t.W1O),t.YNc(5,us,1,0,"mat-spinner",3),t.YNc(6,Ds,68,55,"div",4),t.TgZ(7,"div",5)(8,"button",6),t.NdJ("click",function(){return o.cancel()}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.YNc(11,Ms,3,4,"button",7),t.TgZ(12,"div",8),t.ALo(13,"translate"),t.YNc(14,Ls,3,4,"button",7),t.qZA()()()()),2&e){const n=t.MAs(4);t.Gre("",o.theme," h-100"),t.xp6(2),t.Q6J("ngIf",o.data.createMailNotification)("ngIfElse",n),t.xp6(3),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(10,13,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.CANCEL_BUTTON")," "),t.xp6(2),t.Q6J("ngIf",o.data.createMailNotification),t.xp6(1),t.s9C("matTooltip",t.lcZ(13,15,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EDIT_HINT")),t.Q6J("matTooltipDisabled",o.editAuth)("matTooltipPosition","above"),t.xp6(2),t.Q6J("ngIf",!o.data.createMailNotification)}},dependencies:[m.mk,m.sg,m.O5,B.ey,x.KE,V.Nt,f.Fj,f.JJ,f.On,I.lW,O.SP,O.uD,O.uX,O.Vc,H.oG,u.uh,u.xY,u.H8,j.gD,T.Ou,N.gM,nt.d,M.w,ls,m.gd,_.X$],styles:[".right-button[_ngcontent-%COMP%]{display:block;margin-left:auto}.disabled-label[_ngcontent-%COMP%]{color:#00000061!important}"],data:{animation:[R.es,R.BQ]}}),i})();var rt=c(62707);function Rs(i,a){1&i&&t._UZ(0,"mat-spinner",9)}let Pt=(()=>{class i{constructor(e,o,n,s,r,d,A){this.dialogRef=e,this.voService=o,this.groupService=n,this.translateService=s,this.registrarService=r,this.cd=d,this.data=A,this.vos=[],this.groups=[],this.selectedVo=null,this.selectedGroup=null,this.loading=!1,this.nameFunction=v=>v.name}ngOnInit(){this.theme=this.data.theme,this.loading=!0,this.translateService.get("DIALOGS.NOTIFICATIONS_COPY_MAILS.NO_GROUP_SELECTED").subscribe(e=>{this.fakeGroup={id:-1,name:e,voId:0,parentGroupId:0,shortName:"",description:"",beanName:"group"},this.selectedGroup=this.fakeGroup,this.voService.getAllVos().subscribe(o=>{this.vos=o,this.loading=!1})},()=>this.loading=!1)}cancel(){this.dialogRef.close(!1)}submit(){this.loading=!0,this.data.groupId?this.selectedGroup===this.fakeGroup?this.registrarService.copyMailsFromVoToGroup(this.selectedVo.id,this.data.groupId).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1):this.registrarService.copyMailsFromGroupToGroup(this.selectedGroup.id,this.data.groupId).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1):this.selectedGroup===this.fakeGroup?this.registrarService.copyMailsFromVoToVo(this.selectedVo.id,this.data.voId).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1):this.registrarService.copyMailsFromGroupToVo(this.selectedGroup.id,this.data.voId).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1)}voSelected(e){this.selectedVo=e,this.getGroups(),this.cd.detectChanges()}getGroups(){this.selectedVo?this.groupService.getAllGroups(this.selectedVo.id).subscribe(e=>{this.groups=[this.fakeGroup].concat(e)}):this.groups=[this.fakeGroup]}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(h.YF),t.Y36(h.ff),t.Y36(_.sK),t.Y36(h.tk),t.Y36(t.sBO),t.Y36(u.WI))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-notifications-copy-mails-dialog"]],decls:22,vars:27,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",1,"dialog-container",3,"hidden"],[1,"mb-2","font-italic"],[1,"long-input",3,"vos","voSelected"],[1,"long-input",3,"groups","disableAutoSelect","groupSelected"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Rs,1,0,"mat-spinner",1),t.TgZ(5,"div",2)(6,"div",3),t._uU(7),t.ALo(8,"translate"),t.qZA(),t._uU(9),t.ALo(10,"translate"),t.TgZ(11,"perun-web-apps-vo-search-select",4),t.NdJ("voSelected",function(s){return o.voSelected(s)}),t.qZA(),t._uU(12),t.ALo(13,"translate"),t.TgZ(14,"perun-web-apps-group-search-select",5),t.NdJ("groupSelected",function(s){return o.selectedGroup=s}),t.qZA()(),t.TgZ(15,"div",6)(16,"button",7),t.NdJ("click",function(){return o.cancel()}),t._uU(17),t.ALo(18,"translate"),t.qZA(),t.TgZ(19,"button",8),t.NdJ("click",function(){return o.submit()}),t._uU(20),t.ALo(21,"translate"),t.qZA()()()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,15,"DIALOGS.NOTIFICATIONS_COPY_MAILS.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("hidden",o.loading),t.xp6(2),t.hij(" ",t.lcZ(8,17,"DIALOGS.NOTIFICATIONS_COPY_MAILS.DESCRIPTION")," "),t.xp6(2),t.hij(" ",t.lcZ(10,19,"DIALOGS.NOTIFICATIONS_COPY_MAILS.SOURCE_VO"),": "),t.xp6(2),t.Q6J("vos",o.vos),t.xp6(1),t.hij(" ",t.lcZ(13,21,"DIALOGS.NOTIFICATIONS_COPY_MAILS.SOURCE_GROUP"),": "),t.xp6(2),t.Q6J("groups",o.groups)("disableAutoSelect",!0),t.xp6(3),t.hij(" ",t.lcZ(18,23,"DIALOGS.NOTIFICATIONS_COPY_MAILS.CANCEL_BUTTON")," "),t.xp6(2),t.Q6J("disabled",null===o.selectedVo||null===o.selectedGroup||o.loading),t.xp6(1),t.hij(" ",t.lcZ(21,25,"DIALOGS.NOTIFICATIONS_COPY_MAILS.SUBMIT_BUTTON")," "))},dependencies:[m.O5,I.lW,u.uh,u.xY,u.H8,T.Ou,rt.M,Ct.h,_.X$],data:{animation:[R.BQ]}}),i})();var k=c(96308),yt=c(18750),Vt=c(9185),Ft=c(8231),Yt=c(14849);function ws(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"th",17)(1,"mat-checkbox",18),t.NdJ("change",function(n){t.CHM(e);const s=t.oxw(2);return t.KtG(n?s.masterToggle():null)}),t.ALo(2,"translate"),t.ALo(3,"masterCheckboxLabel"),t.qZA()()}if(2&i){const e=t.oxw().ngIf,o=t.oxw();t.xp6(1),t.Q6J("aria-label",t.lcZ(2,3,t.lcZ(3,5,e.all)))("checked",o.selection.hasValue()&&e.all)("indeterminate",o.selection.hasValue()&&!e.all)}}const Gs=function(i){return{name:i}};function Us(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"td",19)(1,"mat-checkbox",20),t.NdJ("change",function(n){const r=t.CHM(e).$implicit,d=t.oxw(2);return t.KtG(n?d.toggle(r):null)})("click",function(n){return n.stopPropagation()}),t.ALo(2,"translate"),t.ALo(3,"checkboxLabel"),t.qZA()()}if(2&i){const e=a.$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("aria-label",t.xi3(2,2,t.lcZ(3,5,o.selection.isSelected(e)),t.VKq(7,Gs,o.getMailType(e))))("checked",o.selection.isSelected(e))}}function Ps(i,a){1&i&&(t.ynx(0,14),t.YNc(1,ws,4,7,"th",15),t.YNc(2,Us,4,9,"td",16),t.BQk())}function ys(i,a){1&i&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_EMAIL_ID")," "))}function Vs(i,a){if(1&i&&(t.TgZ(0,"td",22),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.hij(" ",e.id," ")}}function Fs(i,a){1&i&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_EMAIL_TYPE")," "))}function Ys(i,a){if(1&i&&(t.TgZ(0,"td",23),t._uU(1),t.qZA()),2&i){const e=a.$implicit,o=t.oxw();t.xp6(1),t.Oqu(o.getMailType(e))}}function Js(i,a){1&i&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_APPLICATION_TYPE")," "))}function qs(i,a){1&i&&(t.TgZ(0,"div")(1,"mat-icon",26),t._uU(2,"arrow_right_alt"),t.qZA(),t._uU(3),t.ALo(4,"translate"),t.qZA()),2&i&&(t.xp6(3),t.hij(" ",t.lcZ(4,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_APPLICATION_TYPE_INITIAL")," "))}function ks(i,a){1&i&&(t.TgZ(0,"mat-icon",27),t._uU(1,"cached"),t.qZA(),t._uU(2),t.ALo(3,"translate")),2&i&&(t.xp6(2),t.hij(" ",t.lcZ(3,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_APPLICATION_TYPE_EXTENSION")," "))}function Qs(i,a){if(1&i&&(t.TgZ(0,"td",23),t.YNc(1,qs,5,3,"div",24),t.YNc(2,ks,4,3,"ng-template",null,25,t.W1O),t.qZA()),2&i){const e=a.$implicit,o=t.MAs(3);t.xp6(1),t.Q6J("ngIf","INITIAL"===e.appType)("ngIfElse",o)}}function Bs(i,a){1&i&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_SENDING_ENABLED")," "))}function Hs(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"td",23)(1,"section")(2,"mat-checkbox",28),t.NdJ("change",function(){const s=t.CHM(e).$implicit,r=t.oxw();return t.KtG(r.changeSending(s))})("click",function(n){return n.stopPropagation()}),t.ALo(3,"translate"),t.qZA()()()}if(2&i){const e=a.$implicit,o=t.oxw();t.xp6(2),t.s9C("matTooltip",t.lcZ(3,4,"VO_DETAIL.SETTINGS.NOTIFICATIONS.DISABLED_HINT")),t.Q6J("disabled",o.disableSend)("matTooltipDisabled",!o.disableSend)("ngModel",e.send)}}function js(i,a){1&i&&t._UZ(0,"tr",29)}function zs(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"tr",30),t.NdJ("click",function(){const s=t.CHM(e).$implicit,r=t.oxw();return t.KtG(r.openApplicationMailDetail(s))}),t.qZA()}2&i&&t.ekj("cursor-pointer",!0)}function $s(i,a){1&i&&(t.TgZ(0,"perun-web-apps-alert",31),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.NO_EMAILS"),"\n"))}const Xs=function(i){return{all:i}};let Jt=(()=>{class i{constructor(e,o,n,s,r,d){this.registrarService=e,this.translate=o,this.notificator=n,this.dialog=s,this.authResolver=r,this.tableCheckbox=d,this.displayedColumns=["select","id","mailType","appType","send"],this.disableSend=!1,this.selection=new E.Ov(!0,[]),this.selectionChange=new t.vpe,this.pageSizeOptions=g.f7}set matSort(e){this.sort=e,this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"id"!==e)),this.dataSource=new l.by(this.applicationMails),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,"",this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}changeSending(e){e.send?this.registrarService.setSendingEnabled({mails:[e],enabled:!1}).subscribe(()=>{e.send=!1}):this.registrarService.setSendingEnabled({mails:[e],enabled:!0}).subscribe(()=>{e.send=!0})}openApplicationMailDetail(e){const o=(0,g.kZ)();o.width="1400px",o.height="700px",o.data={theme:this.theme,voId:this.voId,groupId:this.groupId,createMailNotification:!1,applicationMail:e},this.dialog.open(st,o).afterClosed().subscribe(s=>{s&&(this.translate.get("VO_DETAIL.SETTINGS.NOTIFICATIONS.EDIT_SUCCESS").subscribe(r=>{this.notificator.showSuccess(r)}),this.selection.clear(),this.selectionChange.emit(this.selection),this.update())})}getMailType(e){let o="";return null==e.mailType||0===e.mailType.length?o="":this.translate.get("VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_"+e.mailType).subscribe(n=>{o=n}),o}update(){this.groupId?this.registrarService.getApplicationMailsForGroup(this.groupId).subscribe(e=>{this.updateTable(e)}):this.registrarService.getApplicationMailsForVo(this.voId).subscribe(e=>{this.updateTable(e)})}toggle(e){this.selection.toggle(e),this.selectionChange.emit(this.selection)}updateTable(e){this.applicationMails=e,this.dataSource=new l.by(this.applicationMails),this.setDataSource()}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.tk),t.Y36(_.sK),t.Y36(p.V6),t.Y36(u.uw),t.Y36(p.x4),t.Y36(p.UA))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-notification-list"]],viewQuery:function(e,o){if(1&e&&(t.Gf(g.l9,7),t.Gf(k.YE,7)),2&e){let n;t.iGM(n=t.CRH())&&(o.child=n.first),t.iGM(n=t.CRH())&&(o.matSort=n.first)}},inputs:{applicationMails:"applicationMails",voId:"voId",groupId:"groupId",displayedColumns:"displayedColumns",disableSend:"disableSend",selection:"selection",tableId:"tableId",theme:"theme"},outputs:{selectionChange:"selectionChange"},features:[t.TTD],decls:20,vars:15,consts:[[1,"card","mt-2",3,"hidden"],[3,"pageSizeOptions","dataLength","hideExport","tableId"],["mat-table","","matSort","","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","mailType"],["mat-cell","",4,"matCellDef"],["matColumnDef","appType"],["matColumnDef","send"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","click",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],[4,"ngIf","ngIfElse"],["extension",""],["matTooltip","Initial","matTooltipPosition","above"],["matTooltip","Extension","matTooltipPosition","above"],[3,"disabled","matTooltipDisabled","ngModel","matTooltip","change","click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"click"],["alert_type","warn"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1)(2,"table",2),t.YNc(3,Ps,3,0,"ng-container",3),t.ALo(4,"isAllSelected"),t.ynx(5,4),t.YNc(6,ys,3,3,"th",5),t.YNc(7,Vs,2,1,"td",6),t.BQk(),t.ynx(8,7),t.YNc(9,Fs,3,3,"th",5),t.YNc(10,Ys,2,1,"td",8),t.BQk(),t.ynx(11,9),t.YNc(12,Js,3,3,"th",5),t.YNc(13,Qs,4,2,"td",8),t.BQk(),t.ynx(14,10),t.YNc(15,Bs,3,3,"th",5),t.YNc(16,Hs,4,6,"td",8),t.BQk(),t.YNc(17,js,1,0,"tr",11),t.YNc(18,zs,1,2,"tr",12),t.qZA()()(),t.YNc(19,$s,3,3,"perun-web-apps-alert",13)),2&e&&(t.Q6J("hidden",0===o.applicationMails.length),t.xp6(1),t.Q6J("pageSizeOptions",o.pageSizeOptions)("dataLength",o.dataSource.filteredData.length)("hideExport",!0)("tableId",o.tableId),t.xp6(1),t.Q6J("dataSource",o.dataSource),t.xp6(1),t.Q6J("ngIf",t.VKq(13,Xs,t.xi3(4,10,o.dataSource,o.selection.selected.length))),t.xp6(14),t.Q6J("matHeaderRowDef",o.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",o.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===o.applicationMails.length))},dependencies:[m.O5,f.JJ,f.On,y.Hw,k.YE,k.nU,l.BZ,l.fO,l.as,l.w1,l.Dz,l.nj,l.ge,l.ev,l.XQ,l.Gk,H.oG,N.gM,M.w,yt.l,_.X$,Vt.I,Ft.G,Yt.r],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),i})();function Ks(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",10),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.add())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.ADD")," "))}function Ws(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.remove())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"VO_DETAIL.SETTINGS.NOTIFICATIONS.REMOVE")," ")}}function tr(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.copy())}),t.TgZ(1,"i",6),t._uU(2,"file_copy"),t.qZA(),t._uU(3),t.ALo(4,"translate"),t.qZA()}2&i&&(t.xp6(3),t.hij(" ",t.lcZ(4,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.COPY_FROM_VO")," "))}function er(i,a){1&i&&t._UZ(0,"mat-spinner",13)}function ir(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"app-notification-list",14),t.NdJ("selectionChange",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.changeSelection(n))}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("applicationMails",e.applicationMails)("disableSend",!e.addAuth)("displayedColumns",e.displayedColumns)("tableId",e.tableId)("selection",e.selection)("theme","vo-theme")("voId",e.vo.id)}}let or=(()=>{class i{constructor(e,o,n,s,r,d,A,v,L){this.route=e,this.registrarService=o,this.translate=n,this.dialog=s,this.notificator=r,this.authResolver=d,this.voService=A,this.store=v,this.entityStorageService=L,this.loading=!1,this.applicationMails=[],this.selection=new E.Ov(!0,[]),this.tableId=C.VR,this.displayedColumns=[]}ngOnInit(){this.vo=this.entityStorageService.getEntity(),this.setAuthRights(),this.refresh()}refresh(){this.loading=!0,this.registrarService.getVoApplicationForm(this.vo.id).subscribe(e=>{this.applicationForm=e,this.registrarService.getApplicationMailsForVo(this.vo.id).subscribe(o=>{this.applicationMails=o,this.loading=!1})})}setAuthRights(){this.addAuth=this.authResolver.isAuthorized("vo-addMail_ApplicationForm_ApplicationMail_policy",[this.vo]),this.removeAuth=this.authResolver.isAuthorized("vo-deleteMailById_ApplicationForm_Integer_policy",[this.vo]),this.copyAuth=this.authResolver.isAuthorized("destination-copyMailsFromVoToVo_Vo_Vo_policy",[this.vo]),this.displayedColumns=this.removeAuth?["select","id","mailType","appType","send"]:["id","mailType","appType","send"]}add(){const e=this.store.getProperty("supported_languages"),o=(0,g.i5)(e);o.formId=this.applicationForm.id;const n=(0,g.kZ)();n.width="1400px",n.height="700px",n.data={theme:"vo-theme",voId:this.vo.id,createMailNotification:!0,applicationMail:o,applicationMails:this.applicationMails},this.dialog.open(st,n).afterClosed().subscribe(r=>{r&&(this.translate.get("VO_DETAIL.SETTINGS.NOTIFICATIONS.ADD_SUCCESS").subscribe(d=>{this.notificator.showSuccess(d)}),this.selection.clear(),this.updateTable())})}remove(){const e=(0,g.kZ)();e.width="500px",e.data={voId:this.vo.id,mails:this.selection.selected,theme:"vo-theme"},this.dialog.open(Gt,e).afterClosed().subscribe(n=>{n&&(this.translate.get("VO_DETAIL.SETTINGS.NOTIFICATIONS.DELETE_SUCCESS").subscribe(s=>{this.notificator.showSuccess(s)}),this.selection.clear(),this.updateTable())})}copy(){const e=(0,g.kZ)();e.width="500px",e.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(Pt,e).afterClosed().subscribe(n=>{n&&(this.selection.clear(),this.updateTable())})}changeEmailFooter(){const e=(0,g.kZ)();e.width="500px",e.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(Ut,e)}changeSelection(e){this.selection=e}updateTable(){this.loading=!0,this.registrarService.getApplicationMailsForVo(this.vo.id).subscribe(e=>{this.applicationMails=e,this.loading=!1})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(b.gz),t.Y36(h.tk),t.Y36(_.sK),t.Y36(u.uw),t.Y36(p.V6),t.Y36(p.x4),t.Y36(h.YF),t.Y36(p.d6),t.Y36(p.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-settings-notifications"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:15,vars:11,consts:[[1,"page-subtitle"],[1,"w-100","d-flex"],[3,"click"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["color","warn","class","mr-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],["mat-stroked-button","",1,"mr-2","action-button",3,"click"],[1,"material-icons"],["class","action-button","mat-stroked-button","",3,"click",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"applicationMails","disableSend","displayedColumns","tableId","selection","theme","voId","selectionChange",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],["mat-stroked-button","",1,"action-button",3,"click"],[1,"ml-auto","mr-auto"],[3,"applicationMails","disableSend","displayedColumns","tableId","selection","theme","voId","selectionChange"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div",1)(4,"perun-web-apps-refresh-button",2),t.NdJ("click",function(){return o.refresh()}),t.qZA(),t.YNc(5,Ks,3,3,"button",3),t.YNc(6,Ws,3,4,"button",4),t.TgZ(7,"button",5),t.NdJ("click",function(){return o.changeEmailFooter()}),t.TgZ(8,"i",6),t._uU(9,"email"),t.qZA(),t._uU(10),t.ALo(11,"translate"),t.qZA(),t.YNc(12,tr,5,3,"button",7),t.qZA(),t.YNc(13,er,1,0,"mat-spinner",8),t.YNc(14,ir,1,7,"app-notification-list",9)),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,7,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TITLE"),"\n"),t.xp6(4),t.Q6J("ngIf",o.addAuth),t.xp6(1),t.Q6J("ngIf",o.removeAuth),t.xp6(4),t.hij(" ",t.lcZ(11,9,"VO_DETAIL.SETTINGS.NOTIFICATIONS.EMAIL_FOOTER")," "),t.xp6(2),t.Q6J("ngIf",o.copyAuth),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[m.O5,I.lW,T.Ou,D.t,Jt,_.X$]}),i})();var nr=c(14336);function ar(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.add())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.ADD")," "))}function sr(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.remove())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw(2);t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.REMOVE")," ")}}function rr(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",13),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.copy())}),t.TgZ(1,"i",7),t._uU(2,"file_copy"),t.qZA(),t._uU(3),t.ALo(4,"translate"),t.qZA()}2&i&&(t.xp6(3),t.hij(" ",t.lcZ(4,1,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.COPY_FROM_VO")," "))}function lr(i,a){1&i&&t._UZ(0,"mat-spinner",14)}function cr(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"app-notification-list",15),t.NdJ("selectionChange",function(n){t.CHM(e);const s=t.oxw(2);return t.KtG(s.changeSelection(n))}),t.qZA()}if(2&i){const e=t.oxw(2);t.Q6J("disableSend",!e.addAuth)("displayedColumns",e.displayedColumns)("applicationMails",e.applicationMails)("groupId",e.group.id)("selection",e.selection)("tableId",e.tableId)("theme","group-theme")}}function pr(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div")(1,"div",2)(2,"perun-web-apps-refresh-button",3),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.refresh())}),t.qZA(),t.YNc(3,ar,3,3,"button",4),t.YNc(4,sr,3,4,"button",5),t.TgZ(5,"button",6),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.changeEmailFooter())}),t.TgZ(6,"i",7),t._uU(7,"email"),t.qZA(),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.YNc(10,rr,5,3,"button",8),t.qZA(),t.YNc(11,lr,1,0,"mat-spinner",9),t.YNc(12,cr,1,7,"app-notification-list",10),t.qZA()}if(2&i){const e=t.oxw();t.xp6(3),t.Q6J("ngIf",e.addAuth),t.xp6(1),t.Q6J("ngIf",e.removeAuth),t.xp6(4),t.hij(" ",t.lcZ(9,6,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.EMAIL_FOOTER")," "),t.xp6(2),t.Q6J("ngIf",e.copyAuth),t.xp6(1),t.Q6J("ngIf",e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading)}}function ur(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",18),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.createEmptyApplicationForm())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.CREATE_APPLICATION_FORM")," "))}function dr(i,a){if(1&i&&(t.TgZ(0,"div")(1,"perun-web-apps-alert",16),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,ur,3,3,"button",17),t.qZA()),2&i){const e=t.oxw();t.xp6(2),t.Oqu(t.lcZ(3,2,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.NO_APPLICATION_FORM")),t.xp6(2),t.Q6J("ngIf",e.createFormAuth)}}let _r=(()=>{class i{constructor(e,o,n,s,r,d,A,v){this.registrarService=e,this.translate=o,this.dialog=n,this.apiRequest=s,this.notificator=r,this.guiAuthResolver=d,this.attributesService=A,this.entityStorageService=v,this.loading=!1,this.applicationMails=[],this.selection=new E.Ov(!0,[]),this.noApplicationForm=!1,this.editEmailFooterAuth=!1,this.addAuth=!1,this.removeAuth=!1,this.copyAuth=!1,this.createFormAuth=!1,this.displayedColumns=[],this.tableId=C.AA}ngOnInit(){this.group=this.entityStorageService.getEntity(),this.setAuthRights(),this.refresh()}refresh(){this.loading=!0,this.apiRequest.dontHandleErrorForNext(),this.registrarService.getGroupApplicationForm(this.group.id).subscribe(e=>{this.applicationForm=e,this.registrarService.getApplicationMailsForGroup(this.group.id).subscribe(o=>{this.applicationMails=o,this.apiRequest.dontHandleErrorForNext(),this.attributesService.getGroupAttributeByName(this.group.id,S.r.GROUP_DEF_EXPIRATION_RULES).subscribe(()=>{this.setAuthRights(),this.loading=!1},n=>{"PrivilegeException"!==n.name&&this.notificator.showRPCError(n),this.setAuthRights(),this.loading=!1})})},e=>{"FormNotExistsException"===e.name?(this.noApplicationForm=!0,this.setAuthRights(),this.loading=!1):this.notificator.showRPCError(e)})}setAuthRights(){this.createFormAuth=this.guiAuthResolver.isAuthorized("createApplicationFormInGroup_Group_policy",[this.group]),this.addAuth=this.guiAuthResolver.isAuthorized("group-addMail_ApplicationForm_ApplicationMail_policy",[this.group]),this.removeAuth=this.guiAuthResolver.isAuthorized("group-deleteMailById_ApplicationForm_Integer_policy",[this.group]),this.copyAuth=this.guiAuthResolver.isAuthorized("destination-copyMailsFromVoToGroup_Vo_Group_boolean_policy",[this.group]),this.displayedColumns=this.removeAuth?["select","id","mailType","appType","send"]:["id","mailType","appType","send"]}add(){const e=(0,g.i5)();e.formId=this.applicationForm.id;const o=(0,g.kZ)();o.width="1400px",o.height="700px",o.data={theme:"group-theme",voId:this.group.voId,groupId:this.group.id,createMailNotification:!0,applicationMail:e,applicationMails:this.applicationMails},this.dialog.open(st,o).afterClosed().subscribe(s=>{s&&(this.translate.get("GROUP_DETAIL.SETTINGS.NOTIFICATIONS.ADD_SUCCESS").subscribe(r=>{this.notificator.showSuccess(r)}),this.selection.clear(),this.updateTable())})}remove(){const e=(0,g.kZ)();e.width="500px",e.data={voId:this.group.voId,groupId:this.group.id,mails:this.selection.selected,theme:"group-theme"},this.dialog.open(Gt,e).afterClosed().subscribe(n=>{n&&(this.translate.get("GROUP_DETAIL.SETTINGS.NOTIFICATIONS.DELETE_SUCCESS").subscribe(s=>{this.notificator.showSuccess(s)}),this.selection.clear(),this.updateTable())})}copy(){const e=(0,g.kZ)();e.width="500px",e.data={voId:this.group.voId,groupId:this.group.id,theme:"group-theme"},this.dialog.open(Pt,e).afterClosed().subscribe(n=>{n&&(this.selection.clear(),this.updateTable())})}updateTable(){this.loading=!0,this.registrarService.getApplicationMailsForGroup(this.group.id).subscribe(e=>{this.applicationMails=e,this.loading=!1})}changeEmailFooter(){const e=(0,g.kZ)();e.width="500px",e.data={voId:this.group.voId,groupId:this.group.id,theme:"group-theme"},this.dialog.open(Ut,e)}changeSelection(e){this.selection=e}createEmptyApplicationForm(){this.registrarService.createApplicationFormInGroup(this.group.id).subscribe(()=>{this.noApplicationForm=!1,this.ngOnInit()})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.tk),t.Y36(_.sK),t.Y36(u.uw),t.Y36(p.F5),t.Y36(p.V6),t.Y36(p.x4),t.Y36(h.H8),t.Y36(p.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-settings-notifications"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:5,vars:5,consts:[[1,"page-subtitle"],[4,"ngIf"],[1,"w-100","d-flex"],[3,"click"],["color","accent","class","mr-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],["color","warn","class","mr-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],["mat-stroked-button","",1,"mr-2","action-button",3,"click"],[1,"material-icons"],["class","action-button","mat-stroked-button","",3,"click",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableSend","displayedColumns","applicationMails","groupId","selection","tableId","theme","selectionChange",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],["mat-stroked-button","",1,"action-button",3,"click"],[1,"ml-auto","mr-auto"],[3,"disableSend","displayedColumns","applicationMails","groupId","selection","tableId","theme","selectionChange"],["alert_type","warn"],["mat-stroked-button","",3,"click",4,"ngIf"],["mat-stroked-button","",3,"click"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.YNc(3,pr,13,8,"div",1),t.YNc(4,dr,5,4,"div",1)),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,3,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.TITLE"),"\n"),t.xp6(2),t.Q6J("ngIf",!o.noApplicationForm),t.xp6(1),t.Q6J("ngIf",o.noApplicationForm&&!o.loading))},dependencies:[m.O5,I.lW,T.Ou,M.w,D.t,Jt,_.X$]}),i})();var lt=c(15935);function mr(i,a){1&i&&t._UZ(0,"mat-spinner",8)}function gr(i,a){if(1&i&&(t.TgZ(0,"div",9),t._UZ(1,"app-ext-sources-list",10),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("selection",e.selection)("extSources",e.extSources)("filterValue",e.filterValue)("tableId",e.tableId)}}let qt=(()=>{class i{constructor(e,o,n,s,r){this.dialogRef=e,this.data=o,this.extSourceService=n,this.notificator=s,this.translate=r,this.extSources=[],this.selection=new E.Ov(!0,[]),this.loading=!1,this.filterValue="",this.tableId=C.BV}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.data.groupId?this.extSourceService.getVoExtSources(this.data.voId).subscribe(e=>{this.extSources=e.filter(o=>!this.data.extSources.some(({id:n})=>n===o.id)),this.loading=!1},()=>this.loading=!1):this.extSourceService.getExtSources().subscribe(e=>{this.extSources=e.filter(o=>!this.data.extSources.some(({id:n})=>n===o.id)),this.loading=!1},()=>this.loading=!1)}applyFilter(e){this.filterValue=e}addVoExtSource(e){if(0===e.length)return void this.translate.get("DIALOGS.ADD_EXT_SOURCES.SUCCESS_ADDED").subscribe(n=>{this.notificator.showSuccess(n),this.dialogRef.close(!0)});const o=e.pop();this.extSourceService.addExtSourceWithVoSource(this.data.voId,o.id).subscribe(()=>{this.addVoExtSource(e)},()=>this.loading=!1)}addGroupExtSource(e){if(0===e.length)return void this.translate.get("DIALOGS.ADD_EXT_SOURCES.SUCCESS_ADDED").subscribe(n=>{this.notificator.showSuccess(n),this.dialogRef.close(!0)});const o=e.pop();this.extSourceService.addExtSourceWithGroupSource(this.data.groupId,o.id).subscribe(()=>{this.addGroupExtSource(e)},()=>this.loading=!1)}onAdd(){this.loading=!0,this.data.groupId?this.addGroupExtSource(this.selection.selected):this.addVoExtSource(this.selection.selected)}onCancel(){this.dialogRef.close(!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(h.KG),t.Y36(p.V6),t.Y36(_.sK))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-add-ext-source-dialog"]],decls:15,vars:16,consts:[["mat-dialog-title",""],[1,"page-subtitle"],[1,"font-size-1rem",3,"placeholder","filter"],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[3,"selection","extSources","filterValue","tableId"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"div",0)(2,"h1",1),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"perun-web-apps-immediate-filter",2),t.NdJ("filter",function(s){return o.applyFilter(s)}),t.qZA()(),t.YNc(6,mr,1,0,"mat-spinner",3),t.YNc(7,gr,2,4,"div",4),t.TgZ(8,"div",5)(9,"button",6),t.NdJ("click",function(){return o.onCancel()}),t._uU(10),t.ALo(11,"translate"),t.qZA(),t.TgZ(12,"button",7),t.NdJ("click",function(){return o.onAdd()}),t._uU(13),t.ALo(14,"translate"),t.qZA()()()),2&e&&(t.Tol(o.theme),t.xp6(3),t.Oqu(t.lcZ(4,10,"DIALOGS.ADD_EXT_SOURCES.TITLE")),t.xp6(2),t.Q6J("placeholder","DIALOGS.ADD_EXT_SOURCES.FILTER"),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(11,12,"DIALOGS.ADD_EXT_SOURCES.CANCEL")," "),t.xp6(2),t.Q6J("disabled",0===o.selection.selected.length||o.loading),t.xp6(1),t.hij(" ",t.lcZ(14,14,"DIALOGS.ADD_EXT_SOURCES.ADD")," "))},dependencies:[m.O5,I.lW,u.uh,u.xY,u.H8,T.Ou,U.L,lt.D,_.X$],styles:[".font-size-1rem[_ngcontent-%COMP%]{font-size:1rem!important}"]}),i})();function hr(i,a){1&i&&t._UZ(0,"mat-spinner",7)}function fr(i,a){1&i&&(t.TgZ(0,"th",17),t._uU(1,"id"),t.qZA())}function Ar(i,a){if(1&i&&(t.TgZ(0,"td",18),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Oqu(e.id)}}function Tr(i,a){1&i&&(t.TgZ(0,"th",17),t._uU(1,"name"),t.qZA())}function Ir(i,a){if(1&i&&(t.TgZ(0,"td",18),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Oqu(e.name)}}function br(i,a){1&i&&t._UZ(0,"tr",19)}function vr(i,a){1&i&&t._UZ(0,"tr",20)}function Er(i,a){if(1&i&&(t.TgZ(0,"div",8)(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",9),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",10),t.ynx(8,11),t.YNc(9,fr,2,0,"th",12),t.YNc(10,Ar,2,1,"td",13),t.BQk(),t.ynx(11,14),t.YNc(12,Tr,2,0,"th",12),t.YNc(13,Ir,2,1,"td",13),t.BQk(),t.YNc(14,br,1,0,"tr",15),t.YNc(15,vr,1,0,"tr",16),t.qZA()()),2&i){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,5,"DIALOGS.REMOVE_EXT_SOURCES.DESCRIPTION")," "),t.xp6(3),t.hij(" ",t.lcZ(6,7,"DIALOGS.REMOVE_EXT_SOURCES.ASK")," "),t.xp6(2),t.Q6J("dataSource",e.extSources),t.xp6(7),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}let kt=(()=>{class i{constructor(e,o,n,s,r,d){this.dialogRef=e,this.data=o,this.extSourceService=n,this.notificator=s,this.tableConfigService=r,this.translate=d,this.extSources=[],this.displayedColumns=["id","name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.extSources=this.data.extSources}removeVoExtSource(){if(0===this.extSources.length)return void this.translate.get("DIALOGS.REMOVE_EXT_SOURCES.SUCCESS_REMOVED").subscribe(o=>{this.notificator.showSuccess(o),this.dialogRef.close(!0)});const e=this.extSources.pop();this.extSourceService.removeExtSourceWithVoSource(this.data.voId,e.id).subscribe(()=>{this.onRemove()},()=>this.loading=!1)}removeGroupExtSource(){if(0===this.extSources.length)return void this.translate.get("DIALOGS.REMOVE_EXT_SOURCES.SUCCESS_REMOVED").subscribe(o=>{this.notificator.showSuccess(o),this.dialogRef.close(!0)});const e=this.extSources.pop();this.extSourceService.removeExtSourceWithGroupSource(this.data.groupId,e.id).subscribe(()=>{this.onRemove()},()=>this.loading=!1)}onRemove(){this.loading=!0,this.data.groupId?this.removeGroupExtSource():this.removeVoExtSource()}onCancel(){this.dialogRef.close(!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(h.KG),t.Y36(p.V6),t.Y36(C.dB),t.Y36(_.sK))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-remove-ext-source-dialog"]],decls:14,vars:14,consts:[["mat-dialog-title",""],[1,"page-subtitle"],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"div",0)(2,"h1",1),t._uU(3),t.ALo(4,"translate"),t.qZA()(),t.YNc(5,hr,1,0,"mat-spinner",2),t.YNc(6,Er,16,9,"div",3),t.TgZ(7,"div",4)(8,"button",5),t.NdJ("click",function(){return o.onCancel()}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"button",6),t.NdJ("click",function(){return o.onRemove()}),t._uU(12),t.ALo(13,"translate"),t.qZA()()()),2&e&&(t.Tol(o.theme),t.xp6(3),t.Oqu(t.lcZ(4,8,"DIALOGS.REMOVE_EXT_SOURCES.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(10,10,"DIALOGS.REMOVE_EXT_SOURCES.CANCEL")," "),t.xp6(3),t.hij(" ",t.lcZ(13,12,"DIALOGS.REMOVE_EXT_SOURCES.REMOVE")," "))},dependencies:[m.O5,I.lW,l.BZ,l.fO,l.as,l.w1,l.Dz,l.nj,l.ge,l.ev,l.XQ,l.Gk,u.uh,u.xY,u.H8,T.Ou,_.X$]}),i})();function Cr(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onAdd())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.EXT_SOURCES.ADD")," "))}function Sr(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onRemove())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"VO_DETAIL.SETTINGS.EXT_SOURCES.REMOVE")," ")}}function xr(i,a){1&i&&t._UZ(0,"mat-spinner",9)}function Nr(i,a){if(1&i&&t._UZ(0,"app-ext-sources-list",10),2&i){const e=t.oxw();t.Q6J("extSources",e.extSources)("selection",e.selection)("displayedColumns",e.displayedColumns)("filterValue",e.filterValue)("tableId",e.tableId)}}let Or=(()=>{class i{constructor(e,o,n,s,r,d){this.extSourceService=e,this.dialog=o,this.notificator=n,this.translate=s,this.authResolver=r,this.entityStorageService=d,this.extSources=[],this.selection=new E.Ov(!0,[]),this.filterValue="",this.tableId=C.qV,this.displayedColumns=[],this.translate.get("VO_DETAIL.SETTINGS.EXT_SOURCES.SUCCESS_REMOVED").subscribe(A=>this.successMessage=A)}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.setAuthRights(),this.refreshTable()}refreshTable(){this.loading=!0,this.extSourceService.getVoExtSources(this.vo.id).subscribe(e=>{this.extSources=e,this.selection.clear(),this.setAuthRights(),this.loading=!1})}applyFilter(e){this.filterValue=e}onAdd(){const e=(0,g.kZ)();e.width="1000px",e.data={voId:this.vo.id,extSources:this.extSources,theme:"vo-theme"},this.dialog.open(qt,e).afterClosed().subscribe(n=>{n&&this.refreshTable()})}onRemove(){const e=(0,g.kZ)();e.width="600px",e.data={voId:this.vo.id,extSources:this.selection.selected,theme:"vo-theme"},this.dialog.open(kt,e).afterClosed().subscribe(n=>{n&&this.refreshTable()})}setAuthRights(){this.addAuth=this.authResolver.isAuthorized("addExtSource_Vo_ExtSource_policy",[this.vo]),this.removeAuth=this.authResolver.isAuthorized("removeExtSource_Vo_ExtSource_policy",[this.vo]),this.displayedColumns=this.removeAuth?["select","id","name","type"]:["id","name","type"]}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.KG),t.Y36(u.uw),t.Y36(p.V6),t.Y36(_.sK),t.Y36(p.x4),t.Y36(p.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-settings-extsources"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"extSources","selection","displayedColumns","filterValue","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"extSources","selection","displayedColumns","filterValue","tableId"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return o.refreshTable()}),t.qZA(),t.YNc(5,Cr,3,3,"button",2),t.YNc(6,Sr,3,4,"button",3),t.TgZ(7,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(s){return o.applyFilter(s)}),t.qZA(),t.YNc(8,xr,1,0,"mat-spinner",5),t.YNc(9,Nr,1,5,"app-ext-sources-list",6),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,6,"VO_DETAIL.SETTINGS.EXT_SOURCES.TITLE")),t.xp6(3),t.Q6J("ngIf",o.addAuth),t.xp6(1),t.Q6J("ngIf",o.removeAuth),t.xp6(1),t.Q6J("placeholder","VO_DETAIL.SETTINGS.EXT_SOURCES.FILTER"),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[m.O5,I.lW,T.Ou,lt.D,D.t,U.L,_.X$]}),i})();var F=c(25788);function Zr(i,a){1&i&&t._UZ(0,"mat-spinner",3)}function Dr(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"perun-web-apps-vo-search-select",11),t.NdJ("voSelected",function(n){t.CHM(e);const s=t.oxw(2);return t.KtG(s.getGroupsToInclude(n.id))}),t.qZA()}if(2&i){const e=t.oxw(2);t.Q6J("vo",e.thisVo.vo)("vos",e.vosToSelect)}}const Mr=function(){return["select","id","name","description"]};function Lr(i,a){if(1&i&&t._UZ(0,"perun-web-apps-groups-list",12),2&i){const e=t.oxw(2);t.Q6J("groupsToDisableCheckbox",e.groupsToDisable)("disableGroups",!0)("groups",e.groups)("selection",e.selection)("disableHeadCheckbox",!0)("disableRouting",!0)("displayedColumns",t.DdM(10,Mr))("filter",e.filterValue)("tableId",e.tableId)("relation",!0)}}function Rr(i,a){1&i&&t._UZ(0,"mat-spinner",3)}function wr(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div"),t.YNc(1,Dr,1,2,"perun-web-apps-vo-search-select",4),t.TgZ(2,"perun-web-apps-immediate-filter",5),t.NdJ("filter",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.applyFilter(n))}),t.qZA(),t.TgZ(3,"div",6),t.YNc(4,Lr,1,11,"perun-web-apps-groups-list",7),t.qZA(),t.YNc(5,Rr,1,0,"mat-spinner",1),t.TgZ(6,"div",8)(7,"button",9),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onCancel())}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",10),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onSubmit())}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()}if(2&i){const e=t.oxw();t.Tol(e.theme),t.xp6(1),t.Q6J("ngIf",e.vosToSelect.length>1),t.xp6(1),t.Q6J("placeholder","GROUP_DETAIL.SETTINGS.RELATIONS.FILTER"),t.xp6(2),t.Q6J("ngIf",!e.loading),t.xp6(1),t.Q6J("ngIf",e.loading),t.xp6(3),t.hij(" ",t.lcZ(9,10,"DIALOGS.CREATE_RELATION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",e.loading||e.initLoading||0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(12,12,"DIALOGS.CREATE_RELATION.CREATE")," ")}}let Gr=(()=>{class i{constructor(e,o,n,s,r,d,A){this.dialogRef=e,this.groupService=o,this.notificator=n,this.translate=s,this.guiAuthResolver=r,this.voService=d,this.data=A,this.selection=new E.Ov(!1,[]),this.filterValue="",this.tableId=C.RS,this.groupsToDisable=new Set,this.vosToSelect=[],s.get("DIALOGS.CREATE_RELATION.SUCCESS").subscribe(v=>this.successMessage=v)}ngOnInit(){this.initLoading=!0,this.groupService.getGroupUnions(this.data.group.id,!this.data.reverse).subscribe(e=>{e=e.concat(this.data.groups),this.groupsToNotInclude=e.map(o=>o.id),this.voService.getEnrichedVoById(this.data.voId).subscribe(o=>{this.thisVo=o,this.vosToSelect=o.memberVos.filter(n=>this.guiAuthResolver.isAuthorized("getAllAllowedGroupsToHierarchicalVo_Vo_policy",[n])),this.vosToSelect.push(o.vo),this.getGroupsToInclude(this.data.voId),this.initLoading=!1})},()=>this.initLoading=!1),this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}getGroupsToInclude(e){this.loading=!0,e===this.data.voId?this.groupService.getAllGroups(this.data.voId).subscribe(o=>{this.finishLoadingGroups(o)},()=>this.loading=!1):this.groupService.getVoAllAllowedGroupsToHierarchicalVo(this.data.voId,e).subscribe(o=>{this.finishLoadingGroups(o)},()=>this.loading=!1)}onSubmit(){this.loading=!0,this.groupService.createGroupUnion(this.data.group.id,this.selection.selected[0].id).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}applyFilter(e){this.filterValue=e}setGroupsToDisable(){for(const e of this.groups)(!this.guiAuthResolver.isAuthorized("result-createGroupUnion_Group_Group_policy",[this.data.group])||!this.guiAuthResolver.isAuthorized("operand-createGroupUnion_Group_Group_policy",[e]))&&this.groupsToDisable.add(e.id)}finishLoadingGroups(e){this.groups=e.filter(o=>!this.groupsToNotInclude.includes(o.id)&&o.id!==this.data.group.id),this.setGroupsToDisable(),this.selection.clear(),this.loading=!1}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(h.ff),t.Y36(p.V6),t.Y36(_.sK),t.Y36(p.x4),t.Y36(h.YF),t.Y36(u.WI))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-create-relation-dialog"]],decls:6,vars:8,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[3,"class",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"vo","vos","voSelected",4,"ngIf"],[3,"placeholder","filter"],["mat-dialog-content","",1,"dialog-container"],[3,"groupsToDisableCheckbox","disableGroups","groups","selection","disableHeadCheckbox","disableRouting","displayedColumns","filter","tableId","relation",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[3,"vo","vos","voSelected"],[3,"groupsToDisableCheckbox","disableGroups","groups","selection","disableHeadCheckbox","disableRouting","displayedColumns","filter","tableId","relation"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div"),t.YNc(4,Zr,1,0,"mat-spinner",1),t.qZA(),t.YNc(5,wr,13,14,"div",2)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"DIALOGS.CREATE_RELATION.TITLE")),t.xp6(2),t.Tol(o.theme),t.xp6(1),t.Q6J("ngIf",o.initLoading),t.xp6(1),t.Q6J("ngIf",!o.initLoading))},dependencies:[m.O5,I.lW,u.uh,u.xY,u.H8,T.Ou,F.W,U.L,rt.M,_.X$]}),i})();function Ur(i,a){1&i&&t._UZ(0,"mat-spinner",6)}function Pr(i,a){1&i&&t._UZ(0,"th",15)}function yr(i,a){if(1&i&&(t.TgZ(0,"td",16),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Oqu(e.name)}}function Vr(i,a){1&i&&t._UZ(0,"tr",17)}function Fr(i,a){1&i&&t._UZ(0,"tr",18)}function Yr(i,a){if(1&i&&(t.TgZ(0,"div",7)(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",8),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",9),t.ynx(8,10),t.YNc(9,Pr,1,0,"th",11),t.YNc(10,yr,2,1,"td",12),t.BQk(),t.YNc(11,Vr,1,0,"tr",13),t.YNc(12,Fr,1,0,"tr",14),t.qZA()()),2&i){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,5,"DIALOGS.REMOVE_RELATION.DESCRIPTION")," "),t.xp6(3),t.hij(" ",t.lcZ(6,7,"DIALOGS.REMOVE_RELATION.ASK")," "),t.xp6(2),t.Q6J("dataSource",e.dataSource),t.xp6(4),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}let Jr=(()=>{class i{constructor(e,o,n,s,r){this.dialogRef=e,this.data=o,this.notificator=n,this.groupService=s,this.translate=r,this.displayedColumns=["name"],r.get("DIALOGS.REMOVE_RELATION.SUCCESS").subscribe(d=>this.successMessage=d)}ngOnInit(){this.theme=this.data.theme,this.dataSource=new l.by(this.data.groups)}onCancel(){this.dialogRef.close(!1)}onSubmit(){if(this.loading=!0,1===this.data.groups.length)this.groupService.removeGroupUnion(this.data.reverse?this.data.groups[0].id:this.data.groupId,this.data.reverse?this.data.groupId:this.data.groups[0].id).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1);else{const e=this.data.reverse?this.data.groups.shift().id:this.data.groupId,o=this.data.reverse?this.data.groupId:this.data.groups.shift().id;this.groupService.removeGroupUnion(e,o).subscribe(()=>{this.onSubmit(),this.dialogRef.close(!0)},()=>this.loading=!1)}}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(p.V6),t.Y36(h.ff),t.Y36(_.sK))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-remove-relation-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Ur,1,0,"mat-spinner",1),t.YNc(5,Yr,13,9,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return o.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return o.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.REMOVE_RELATION.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.REMOVE_RELATION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",o.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.REMOVE_RELATION.DELETE")," "))},dependencies:[m.O5,I.lW,l.BZ,l.fO,l.as,l.w1,l.Dz,l.nj,l.ge,l.ev,l.XQ,l.Gk,u.uh,u.xY,u.H8,T.Ou,_.X$]}),i})();var X=c(54004);function qr(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"span",8),t.ALo(1,"translate"),t.TgZ(2,"button",9),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onDelete())}),t._uU(3),t.ALo(4,"translate"),t.qZA()()}if(2&i){const e=a.ngIf,o=t.oxw();t.s9C("matTooltip",t.lcZ(1,4,"GROUP_DETAIL.SETTINGS.RELATIONS.DELETE_TOOLTIP")),t.Q6J("matTooltipDisabled",0===o.selection.selected.length||e.removeAuth),t.xp6(2),t.Q6J("disabled",0===o.selection.selected.length||!e.removeAuth||o.reverse),t.xp6(1),t.hij(" ",t.lcZ(4,6,"GROUP_DETAIL.SETTINGS.RELATIONS.DELETE")," ")}}function kr(i,a){1&i&&t._UZ(0,"mat-spinner",10)}const Qr=function(){return["select","id","vo","name","description"]};function Br(i,a){if(1&i&&t._UZ(0,"perun-web-apps-groups-list",11),2&i){const e=t.oxw();t.Q6J("groups",e.groups)("parentGroup",e.group)("disableHeadCheckbox",!0)("selection",e.selection)("displayedColumns",t.DdM(7,Qr))("filter",e.filterValue)("tableId",e.tableId)}}const Hr=function(i){return{removeAuth:i}};let jr=(()=>{class i{constructor(e,o,n,s){this.groupService=e,this.dialog=o,this.entityStorageService=n,this.authResolver=s,this.selection=new E.Ov(!0,[]),this.groups=[],this.reverse=!1,this.filterValue="",this.tableId=C._7,this.removeAuth$=this.selection.changed.pipe((0,X.U)(r=>r.source.selected.reduce((d,A)=>d&&this.authResolver.isAuthorized("result-removeGroupUnion_Group_Group_policy",[{id:this.group.id,beanName:"Group"}])&&this.authResolver.isAuthorized("operand-removeGroupUnion_Group_Group_policy",[A]),!0)))}ngOnInit(){this.group=this.entityStorageService.getEntity(),this.refreshTable()}onCreate(){const e=(0,g.kZ)();e.width="1050px",e.data={groups:this.groups,theme:"group-theme",group:this.group,voId:this.group.voId,reverse:this.reverse},this.dialog.open(Gr,e).afterClosed().subscribe(n=>{n&&this.refreshTable()})}onDelete(){const e=(0,g.kZ)();e.width="450px",e.data={groups:this.selection.selected,theme:"group-theme",groupId:this.group.id,reverse:this.reverse},this.dialog.open(Jr,e).afterClosed().subscribe(n=>{n&&this.refreshTable()})}refreshTable(){this.loading=!0,this.selection.clear(),this.groupService.getGroupUnions(this.group.id,this.reverse).subscribe(e=>{this.groups=e,this.loading=!1},()=>this.loading=!1)}applyFilter(e){this.filterValue=e}showReverseUnions(){this.reverse=!this.reverse,this.refreshTable()}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.ff),t.Y36(u.uw),t.Y36(p.fb),t.Y36(p.x4))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-settings-relations"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:16,vars:18,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"disabled","click"],[3,"matTooltip","matTooltipDisabled",4,"ngIf"],[3,"placeholder","filter"],[3,"change"],["class","ml-auto mr-auto",4,"ngIf"],[3,"groups","parentGroup","disableHeadCheckbox","selection","displayedColumns","filter","tableId",4,"ngIf"],[3,"matTooltip","matTooltipDisabled"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"groups","parentGroup","disableHeadCheckbox","selection","displayedColumns","filter","tableId"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return o.refreshTable()}),t.qZA(),t.TgZ(5,"button",2),t.NdJ("click",function(){return o.onCreate()}),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.YNc(8,qr,5,8,"span",3),t.ALo(9,"async"),t.TgZ(10,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(s){return o.applyFilter(s)}),t.qZA(),t.TgZ(11,"mat-checkbox",5),t.NdJ("change",function(){return o.showReverseUnions()}),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.YNc(14,kr,1,0,"mat-spinner",6),t.YNc(15,Br,1,8,"perun-web-apps-groups-list",7),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,8,"GROUP_DETAIL.SETTINGS.RELATIONS.TITLE")),t.xp6(3),t.Q6J("disabled",o.reverse),t.xp6(1),t.hij(" ",t.lcZ(7,10,"GROUP_DETAIL.SETTINGS.RELATIONS.CREATE")," "),t.xp6(2),t.Q6J("ngIf",t.VKq(16,Hr,t.lcZ(9,12,o.removeAuth$))),t.xp6(2),t.Q6J("placeholder","GROUP_DETAIL.SETTINGS.RELATIONS.FILTER"),t.xp6(2),t.Oqu(t.lcZ(13,14,"GROUP_DETAIL.SETTINGS.RELATIONS.REVERSE_UNIONS")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[m.O5,I.lW,H.oG,T.Ou,N.gM,F.W,D.t,U.L,m.Ov,_.X$]}),i})();var z=c(64901),zr=c(99168);function $r(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",6),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.showAllDetails=!0)}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBER_DETAIL.APPLICATIONS.SHOW_ALL_DETAILS")," "))}function Xr(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",6),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.showAllDetails=!1)}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBER_DETAIL.APPLICATIONS.SHOW_LESS_DETAILS")," "))}function Kr(i,a){1&i&&t._UZ(0,"mat-spinner",7)}function Wr(i,a){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"app-applications-dynamic-list",8),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("tableId",e.showAllDetails?e.detailTableId:e.tableId)("searchString",e.filterValue)("member",e.member)("displayedColumns",e.showAllDetails?e.detailedDisplayedColumns:e.displayedColumns)("dateFrom",e.dateFrom)("refreshTable",e.refresh)}}let tl=(()=>{class i{constructor(e,o,n){this.registrarManager=e,this.memberManager=o,this.route=n,this.loading=!1,this.displayedColumns=["id","createdAt","type","state","user","groupName","modifiedBy"],this.detailedDisplayedColumns=["id","createdAt","voId","voName","groupId","groupName","type","state","extSourceName","extSourceType","user","createdBy","modifiedBy","modifiedAt","fedInfo"],this.filterValue="",this.showAllDetails=!1,this.detailTableId=C.d7,this.tableId=C.vq,this.dateFrom=new Date("1970-01-01")}ngOnInit(){this.loading=!0,this.route.parent.params.subscribe(e=>{this.memberId=Number(e.memberId),this.memberManager.getMemberById(this.memberId).subscribe(o=>{this.member=o,this.loading=!1})})}applyFilter(e){this.filterValue=e}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.tk),t.Y36(h.uq),t.Y36(b.gz))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-member-applications"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2","mat-stroked-button","",3,"click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],["mat-stroked-button","",1,"mr-2",3,"click"],[1,"ml-auto","mr-auto"],[3,"tableId","searchString","member","displayedColumns","states","dateFrom","refreshTable"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div")(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return o.refresh=!o.refresh}),t.qZA(),t.YNc(5,$r,3,3,"button",2),t.YNc(6,Xr,3,3,"button",2),t.TgZ(7,"perun-web-apps-debounce-filter",3),t.NdJ("filter",function(s){return o.applyFilter(s)}),t.qZA()(),t.YNc(8,Kr,1,0,"mat-spinner",4),t.YNc(9,Wr,2,6,"div",5)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"MEMBER_DETAIL.APPLICATIONS.TITLE")),t.xp6(4),t.Q6J("ngIf",!o.showAllDetails),t.xp6(1),t.Q6J("ngIf",o.showAllDetails),t.xp6(1),t.Q6J("placeholder","MEMBER_DETAIL.APPLICATIONS.FILTER"),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[m.O5,I.lW,T.Ou,D.t,z.P,zr.S,_.X$]}),i})();var ct=c(68675),P=c(86257),Qt=c(47957);function el(i,a){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"DIALOGS.ADD_MEMBER_TO_RESOURCE.SELECT_RESOURCE"))}function il(i,a){1&i&&t._UZ(0,"mat-spinner",13)}function ol(i,a){if(1&i&&(t.TgZ(0,"mat-option",24),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function nl(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-option",25),t.NdJ("click",function(){const s=t.CHM(e).$implicit,r=t.oxw(2);return r.setResource(s),t.KtG(r.stepper.selected.completed=!0)}),t._uU(1),t.qZA()}if(2&i){const e=a.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.name," ")}}function al(i,a){if(1&i&&(t.TgZ(0,"div",22),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Oqu(e.name)}}function sl(i,a){if(1&i&&(t.TgZ(0,"div")(1,"div")(2,"mat-form-field",14),t._UZ(3,"input",15),t.ALo(4,"translate"),t.TgZ(5,"mat-autocomplete",16,17),t.YNc(7,ol,2,2,"mat-option",18),t.ALo(8,"async"),t.qZA()()(),t.TgZ(9,"div")(10,"mat-form-field",14)(11,"mat-select",19),t.ALo(12,"translate"),t.YNc(13,nl,2,2,"mat-option",20),t.ALo(14,"async"),t.qZA()()(),t.TgZ(15,"div")(16,"span",21),t._uU(17),t.ALo(18,"translate"),t.qZA(),t.TgZ(19,"div",22),t._uU(20),t.qZA()(),t.TgZ(21,"div")(22,"span",21),t._uU(23),t.ALo(24,"translate"),t.qZA(),t.YNc(25,al,2,1,"div",23),t.qZA()()),2&i){const e=t.MAs(6),o=t.oxw();t.xp6(3),t.s9C("placeholder",t.lcZ(4,10,"DIALOGS.ADD_MEMBER_TO_RESOURCE.FILTER")),t.Q6J("formControl",o.facilityCtrl)("matAutocomplete",e),t.xp6(4),t.Q6J("ngForOf",t.lcZ(8,12,o.filteredFacilities)),t.xp6(4),t.s9C("placeholder",t.lcZ(12,14,"DIALOGS.ADD_MEMBER_TO_RESOURCE.SELECTED")),t.xp6(2),t.Q6J("ngForOf",t.lcZ(14,16,o.filteredResources)),t.xp6(4),t.Oqu(t.lcZ(18,18,"DIALOGS.ADD_MEMBER_TO_RESOURCE.DESCRIPTION")),t.xp6(3),t.Oqu(o.description),t.xp6(3),t.Oqu(t.lcZ(24,20,"DIALOGS.ADD_MEMBER_TO_RESOURCE.SERVICES")),t.xp6(2),t.Q6J("ngForOf",o.services)}}function rl(i,a){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"DIALOGS.ADD_MEMBER_TO_RESOURCE.ADD_GROUP"))}function ll(i,a){1&i&&t._UZ(0,"mat-spinner",13)}const cl=function(){return["select","id","name","description"]};function pl(i,a){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"perun-web-apps-groups-list",26),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("disableGroups",!0)("disableHeadCheckbox",!0)("disableRouting",!0)("groupsToDisableCheckbox",e.membersGroupsId)("groups",e.groups)("displayedColumns",t.DdM(7,cl))("selection",e.selectedGroups)}}function ul(i,a){1&i&&(t.TgZ(0,"perun-web-apps-alert",27),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_MEMBER_TO_RESOURCE.NO_GROUPS")," "))}function dl(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",28),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.stepperPrevious())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_MEMBER_TO_RESOURCE.BACK")," "))}function _l(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",29),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return n.stepperNext(),t.KtG(n.loadGroups())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.ekj("ml-2",void 0!==e.stepper&&0!==e.stepper.selectedIndex)("ml-auto",!(void 0!==e.stepper&&0!==e.stepper.selectedIndex)),t.Q6J("disabled",null===e.selectedResource||e.processing||e.loading),t.xp6(1),t.hij(" ",t.lcZ(2,6,"DIALOGS.ADD_MEMBER_TO_RESOURCE.CONTINUE")," ")}}function ml(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",30),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onFinish())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selectedGroups.selected.length||e.processing),t.xp6(1),t.hij(" ",t.lcZ(2,2,"DIALOGS.ADD_MEMBER_TO_RESOURCE.SUBMIT")," ")}}let gl=(()=>{class i{constructor(e,o,n,s,r,d,A,v){this.dialogRef=e,this.data=o,this.resourceManager=n,this.groupManager=s,this.notificator=r,this.translate=d,this.authResolver=A,this.cd=v,this.loading=!1,this.processing=!1,this.membersGroupsId=new Set,this.facilityCtrl=new f.p4,this.facilitiesNames=[],this.resources=[],this.selectedResource=null,this.services=[],this.description="",this.groups=[],this.selectedGroups=new E.Ov(!1,[])}ngAfterViewInit(){this.stepper.selectionChange.subscribe(()=>{this.selectedGroups.clear()}),this.cd.detectChanges()}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.resourceManager.getRichResources(this.data.voId).subscribe(e=>{this.resources=e,this.getResourceFacilities(),this.loading=!1},()=>this.loading=!1)}setResource(e){this.processing=!0,this.selectedResource=e,this.resourceManager.getAssignedServicesToResource(this.selectedResource.id).subscribe(o=>{this.services=o,this.processing=!1},()=>this.processing=!1),this.description=this.selectedResource.description}loadGroups(){this.processing=!0,this.resourceManager.getAssignedGroups(this.selectedResource.id).subscribe(e=>{this.groups=e,this.groupManager.getAllMemberGroups(this.data.memberId).subscribe(o=>{this.membersGroupsId=new Set(o.map(n=>n.id)),this.groups.forEach(n=>{this.authResolver.isAuthorized("addMember_Group_Member_policy",[n])||this.membersGroupsId.add(n.id)}),this.processing=!1},()=>this.processing=!1)})}onFinish(){this.processing=!0,this.groupManager.addMembers(this.selectedGroups.selected[0].id,[this.data.memberId]).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.ADD_MEMBER_TO_RESOURCE.SUCCESS")),this.dialogRef.close(!0)},()=>this.processing=!1)}onCancel(){this.dialogRef.close(!1)}stepperPrevious(){this.stepper.previous()}stepperNext(){this.stepper.next()}getResourceFacilities(){const e=new Set;for(const o of this.resources)e.add(o.facility.name);this.facilitiesNames=Array.from(e),this.filteredFacilities=this.facilityCtrl.valueChanges.pipe((0,ct.O)(""),(0,X.U)(o=>this.filterFacilities(o))),this.filteredResources=this.facilityCtrl.valueChanges.pipe((0,ct.O)(""),(0,X.U)(o=>this.filterResources(o)))}filterFacilities(e){const o=e.toLowerCase();return this.facilitiesNames.filter(s=>s.toLowerCase().includes(o)).sort((s,r)=>s.toLowerCase().localeCompare(r.toLowerCase()))}filterResources(e){if(null==e)return this.resources;const o=e.toLowerCase();return this.resources.filter(s=>s.facility.name.toLowerCase().startsWith(o)).sort((s,r)=>s.name.toLowerCase().localeCompare(r.name.toLowerCase()))}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(h.xk),t.Y36(h.ff),t.Y36(p.V6),t.Y36(_.sK),t.Y36(p.x4),t.Y36(t.sBO))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-add-member-to-resource-dialog"]],viewQuery:function(e,o){if(1&e&&t.Gf(P.Vq,5),2&e){let n;t.iGM(n=t.CRH())&&(o.stepper=n.first)}},decls:22,vars:18,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],[3,"linear"],["completed","false"],["matStepLabel",""],["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],["alert_type","warn",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",3,"click"],["class","ml-auto","mat-flat-button","",3,"click",4,"ngIf"],["color","accent","mat-flat-button","",3,"ml-2","ml-auto","disabled","click",4,"ngIf"],["class","ml-2","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],[1,"mr-auto","ml-auto"],[1,"input-style"],["aria-label","Number","matInput","","type","text",3,"formControl","matAutocomplete","placeholder"],["autoActiveFirstOption",""],["autoFacility","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],["disableOptionCentering","true","required","",3,"placeholder"],[3,"value","click",4,"ngFor","ngForOf"],[1,"font-weight-bold"],[1,"ml-5"],["class","ml-5",4,"ngFor","ngForOf"],[3,"value"],[3,"value","click"],[3,"disableGroups","disableHeadCheckbox","disableRouting","groupsToDisableCheckbox","groups","displayedColumns","selection"],["alert_type","warn"],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",3,"disabled","click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",1)(5,"mat-stepper",2)(6,"mat-step",3),t.YNc(7,el,2,3,"ng-template",4),t.YNc(8,il,1,0,"mat-spinner",5),t.YNc(9,sl,26,22,"div",6),t.qZA(),t.TgZ(10,"mat-step"),t.YNc(11,rl,2,3,"ng-template",4),t.YNc(12,ll,1,0,"mat-spinner",5),t.YNc(13,pl,2,8,"div",6),t.YNc(14,ul,3,3,"perun-web-apps-alert",7),t.qZA()()(),t.TgZ(15,"div",8)(16,"button",9),t.NdJ("click",function(){return o.onCancel()}),t._uU(17),t.ALo(18,"translate"),t.qZA(),t.YNc(19,dl,3,3,"button",10),t.YNc(20,_l,3,8,"button",11),t.YNc(21,ml,3,4,"button",12),t.qZA()()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,14,"DIALOGS.ADD_MEMBER_TO_RESOURCE.TITLE")),t.xp6(3),t.Q6J("linear",!0),t.xp6(3),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.Q6J("ngIf",o.processing),t.xp6(1),t.Q6J("ngIf",0!==o.groups.length&&!o.processing),t.xp6(1),t.Q6J("ngIf",0===o.groups.length&&!o.processing),t.xp6(3),t.hij(" ",t.lcZ(18,16,"DIALOGS.ADD_MEMBER_TO_RESOURCE.CANCEL")," "),t.xp6(2),t.Q6J("ngIf",void 0!==o.stepper&&0!==o.stepper.selectedIndex),t.xp6(1),t.Q6J("ngIf",void 0!==o.stepper&&o.stepper.selectedIndex!==o.stepper._steps.length-1),t.xp6(1),t.Q6J("ngIf",void 0!==o.stepper&&o.stepper.selectedIndex===o.stepper._steps.length-1))},dependencies:[m.sg,m.O5,Qt.XC,Qt.ZL,B.ey,x.KE,V.Nt,f.Fj,f.JJ,f.oH,I.lW,u.uh,u.xY,u.H8,j.gD,T.Ou,P.C0,P.VY,P.Vq,M.w,F.W,m.Ov,_.X$],styles:[".input-style[_ngcontent-%COMP%]{margin-left:50px;width:75%}"]}),i})();var hl=c(62109);function fl(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",6),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.addResource())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBER_DETAIL.RESOURCES.ADD")," "))}function Al(i,a){if(1&i&&t._UZ(0,"perun-web-apps-resources-list",7),2&i){const e=t.oxw();t.Q6J("disableRouting",!e.routeAuth)("filterValue",e.filterValue)("displayedColumns",e.displayedColumns)("routingVo",!0)("resources",e.resources)("tableId",e.tableId)}}function Tl(i,a){1&i&&t._UZ(0,"mat-spinner",8)}let Il=(()=>{class i{constructor(e,o,n,s,r){this.dialog=e,this.memberManager=o,this.resourceManager=n,this.route=s,this.authResolver=r,this.resources=[],this.filterValue="",this.loading=!1,this.displayedColumns=["id","name","vo","facility","tags","description"],this.tableId=C.aL}ngOnInit(){this.route.parent.params.subscribe(e=>{const o=Number(e.memberId);this.memberManager.getMemberById(o).subscribe(n=>{this.member=n,this.refreshTable()})})}addResource(){const e=(0,g.kZ)();e.width="1200px",e.data={memberId:this.member.id,voId:this.member.voId,theme:"member-theme"},this.dialog.open(gl,e).afterClosed().subscribe(n=>{n&&this.refreshTable()})}refreshTable(){this.loading=!0,this.resourceManager.getAssignedRichResourcesWithMember(this.member.id).subscribe(e=>{this.resources=e,this.setAuthRights(),this.loading=!1})}setAuthRights(){const e={id:this.member.voId,beanName:"Vo"};this.addAuth=this.authResolver.isAuthorized("getRichResources_Vo_policy",[e])&&this.authResolver.isAuthorized("addMembers_Group_List_policy",[e]),0!==this.resources.length&&(this.routeAuth=this.authResolver.isAuthorized("getResourceById_int_policy",[e,this.resources[0]]))}applyFilter(e){this.filterValue=e}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.uw),t.Y36(h.uq),t.Y36(h.xk),t.Y36(b.gz),t.Y36(p.x4))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-member-resources"]],decls:9,vars:7,consts:[[1,"page-subtitle"],[3,"refresh"],["class","action-button","color","accent","class","mr-2","mat-flat-button","",3,"click",4,"ngIf"],[3,"placeholder","filter"],[3,"disableRouting","filterValue","displayedColumns","routingVo","resources","tableId",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2",3,"click"],[3,"disableRouting","filterValue","displayedColumns","routingVo","resources","tableId"],[1,"mr-auto","ml-auto"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return o.refreshTable()}),t.qZA(),t.YNc(5,fl,3,3,"button",2),t.TgZ(6,"perun-web-apps-immediate-filter",3),t.NdJ("filter",function(s){return o.applyFilter(s)}),t.qZA(),t.YNc(7,Al,1,6,"perun-web-apps-resources-list",4),t.qZA(),t.YNc(8,Tl,1,0,"mat-spinner",5)),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,5,"MEMBER_DETAIL.RESOURCES.TITLE")),t.xp6(3),t.Q6J("ngIf",o.addAuth),t.xp6(1),t.Q6J("placeholder","MEMBER_DETAIL.RESOURCES.FILTER"),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(1),t.Q6J("ngIf",o.loading))},dependencies:[m.O5,I.lW,T.Ou,D.t,U.L,hl.C,_.X$]}),i})();var bl=c(98918),vl=c(4675),El=c(258),Cl=c(60113),Sl=c(16500),xl=c(92090),Nl=c(20057),Ol=c(49546),Zl=c(76023),Dl=c(11042);function Ml(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onAdd())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"GROUP_DETAIL.SETTINGS.EXT_SOURCES.ADD")," "))}function Ll(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onRemove())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"GROUP_DETAIL.SETTINGS.EXT_SOURCES.REMOVE")," ")}}function Rl(i,a){1&i&&t._UZ(0,"mat-spinner",9)}function wl(i,a){if(1&i&&t._UZ(0,"app-ext-sources-list",10),2&i){const e=t.oxw();t.Q6J("extSources",e.extSources)("selection",e.selection)("displayedColumns",e.displayedColumns)("filterValue",e.filterValue)("tableId",e.tableId)}}let Gl=(()=>{class i{constructor(e,o,n,s,r,d){this.extSourceService=e,this.dialog=o,this.notificator=n,this.translate=s,this.authResolver=r,this.entityStorageService=d,this.extSources=[],this.selection=new E.Ov(!0,[]),this.filterValue="",this.tableId=C.S7,this.displayedColumns=[],this.translate.get("GROUP_DETAIL.SETTINGS.EXT_SOURCES.SUCCESS_REMOVED").subscribe(A=>this.successMessage=A)}ngOnInit(){this.group=this.entityStorageService.getEntity(),this.setAuthRights(),this.refreshTable()}setAuthRights(){this.addAuth=this.authResolver.isAuthorized("addExtSource_Group_ExtSource_policy",[this.group]),this.removeAuth=this.authResolver.isAuthorized("removeExtSource_Group_ExtSource_policy",[this.group]),this.displayedColumns=this.removeAuth?["select","id","name","type"]:["id","name","type"]}refreshTable(){this.loading=!0,this.extSourceService.getGroupExtSources(this.group.id).subscribe(e=>{this.extSources=e,this.selection.clear(),this.loading=!1})}applyFilter(e){this.filterValue=e}onAdd(){const e=(0,g.kZ)();e.width="1000px",e.data={voId:this.group.voId,groupId:this.group.id,extSources:this.extSources,theme:"group-theme"},this.dialog.open(qt,e).afterClosed().subscribe(n=>{n&&this.refreshTable()})}onRemove(){const e=(0,g.kZ)();e.width="600px",e.data={voId:this.group.voId,groupId:this.group.id,extSources:this.selection.selected,theme:"group-theme"},this.dialog.open(kt,e).afterClosed().subscribe(n=>{n&&this.refreshTable()})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.KG),t.Y36(u.uw),t.Y36(p.V6),t.Y36(_.sK),t.Y36(p.x4),t.Y36(p.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-settings-extsources"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"extSources","selection","displayedColumns","filterValue","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"extSources","selection","displayedColumns","filterValue","tableId"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return o.refreshTable()}),t.qZA(),t.YNc(5,Ml,3,3,"button",2),t.YNc(6,Ll,3,4,"button",3),t.TgZ(7,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(s){return o.applyFilter(s)}),t.qZA(),t.YNc(8,Rl,1,0,"mat-spinner",5),t.YNc(9,wl,1,5,"app-ext-sources-list",6),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,6,"GROUP_DETAIL.SETTINGS.EXT_SOURCES.TITLE")),t.xp6(3),t.Q6J("ngIf",o.addAuth),t.xp6(1),t.Q6J("ngIf",o.removeAuth),t.xp6(1),t.Q6J("placeholder","GROUP_DETAIL.SETTINGS.EXT_SOURCES.FILTER"),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[m.O5,I.lW,T.Ou,lt.D,D.t,U.L,_.X$]}),i})();function Ul(i,a){1&i&&t._UZ(0,"th",9)}function Pl(i,a){if(1&i&&(t.TgZ(0,"td",10),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.hij("",e,":")}}function yl(i,a){1&i&&t._UZ(0,"th",9)}function Vl(i,a){if(1&i&&(t.TgZ(0,"td",11),t._uU(1),t.qZA()),2&i){const e=a.$implicit,o=t.oxw();t.xp6(1),t.hij(" ",o.statistics.get(e.toLowerCase())," ")}}function Fl(i,a){1&i&&t._UZ(0,"tr",12)}let Bt=(()=>{class i{constructor(){this.rowNames=[],this.title="",this.statistics=new Map,this.dataSource=null,this.displayedColumns=["name","value"]}ngOnInit(){this.dataSource=new l.by(this.rowNames)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-statistics-card"]],inputs:{rowNames:"rowNames",title:"title",statistics:"statistics"},decls:15,vars:5,consts:[[1,"mat-elevation-z3","align-card"],[1,"page-subtitle"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["class","font-weight-bold","mat-cell","",4,"matCellDef"],["matColumnDef","value"],["mat-cell","",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"font-weight-bold"],["mat-cell",""],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"mat-card",0)(1,"mat-card-header")(2,"mat-card-title")(3,"h1",1),t._uU(4),t.ALo(5,"translate"),t.qZA()()(),t.TgZ(6,"mat-card-content")(7,"table",2),t.ynx(8,3),t.YNc(9,Ul,1,0,"th",4),t.YNc(10,Pl,2,1,"td",5),t.BQk(),t.ynx(11,6),t.YNc(12,yl,1,0,"th",4),t.YNc(13,Vl,2,1,"td",7),t.BQk(),t.YNc(14,Fl,1,0,"tr",8),t.qZA()()()),2&e&&(t.xp6(4),t.Oqu(t.lcZ(5,3,o.title)),t.xp6(3),t.Q6J("dataSource",o.dataSource),t.xp6(7),t.Q6J("matRowDefColumns",o.displayedColumns))},dependencies:[l.BZ,l.fO,l.w1,l.Dz,l.nj,l.ge,l.ev,l.Gk,Z.a8,Z.dk,Z.dn,Z.n5,_.X$],styles:[".align-card[_ngcontent-%COMP%]{margin:1rem 1rem 1rem 0rem;display:inline-block;vertical-align:top}"]}),i})();function Yl(i,a){1&i&&t._UZ(0,"mat-spinner",3)}function Jl(i,a){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"app-statistics-card",4),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("rowNames",e.rowNames)("statistics",e.membersCount)("title","VO_DETAIL.STATISTICS.MEMBERS_COUNT")}}let ql=(()=>{class i{constructor(e,o){this.voService=e,this.entityStorageService=o,this.loading=!1,this.rowNames=["Members","Valid","Invalid","Expired","Disabled"],this.membersCount=new Map([["members",0],["valid",0],["invalid",0],["expired",0],["disabled",0]]),this.dataSource=new l.by}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.dataSource=new l.by(this.rowNames),this.voService.getVoMembersCountsByStatus(this.vo.id).subscribe(e=>{this.allMembersCount=0;for(const o of Object.keys(e))this.membersCount.set(o.toLowerCase(),e[o]),this.allMembersCount+=e[o];this.membersCount.set("members",this.allMembersCount),this.loading=!1},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.YF),t.Y36(p.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-statistics"]],decls:5,vars:5,consts:[[1,"page-subtitle"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"rowNames","statistics","title"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.YNc(3,Yl,1,0,"mat-spinner",1),t.YNc(4,Jl,2,3,"div",2)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,3,"VO_DETAIL.STATISTICS.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[m.O5,T.Ou,Bt,_.X$]}),i})();function kl(i,a){1&i&&t._UZ(0,"mat-spinner",3)}function Ql(i,a){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"app-statistics-card",4)(2,"app-statistics-card",4),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("rowNames",e.voStatusCountsRowNames)("statistics",e.membersCountsByVoStatus)("title","GROUP_DETAIL.STATISTICS.VO_STATUS_COUNT"),t.xp6(1),t.Q6J("rowNames",e.groupStatusCountsRowNames)("statistics",e.membersCountsByGroupStatus)("title","GROUP_DETAIL.STATISTICS.GROUP_STATUS_COUNT")}}let Bl=(()=>{class i{constructor(e,o){this.groupService=e,this.entityStorageService=o,this.loading=!1,this.voStatusCountsRowNames=["Members","Valid","Invalid","Expired","Disabled"],this.membersCountsByVoStatus=new Map,this.groupStatusCountsRowNames=["Members","Valid","Expired"],this.membersCountsByGroupStatus=new Map}ngOnInit(){this.loading=!0,this.group=this.entityStorageService.getEntity(),this.groupService.getGroupMembersCount(this.group.id).subscribe(e=>{this.membersCountsByVoStatus.set("members",e),this.membersCountsByGroupStatus.set("members",e),this.groupService.getGroupMembersCountsByVoStatus(this.group.id).subscribe(o=>{Object.entries(o).forEach(([n,s])=>this.membersCountsByVoStatus.set(n.toLowerCase(),s)),this.groupService.getGroupMembersCountsByGroupStatus(this.group.id).subscribe(n=>{Object.entries(n).forEach(([s,r])=>this.membersCountsByGroupStatus.set(s.toLowerCase(),r)),this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.ff),t.Y36(p.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-statistics"]],decls:5,vars:5,consts:[[1,"page-subtitle"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"rowNames","statistics","title"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.YNc(3,kl,1,0,"mat-spinner",1),t.YNc(4,Ql,3,6,"div",2)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,3,"GROUP_DETAIL.STATISTICS.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[m.O5,T.Ou,Bt,_.X$]}),i})();function Hl(i,a){1&i&&t._UZ(0,"mat-spinner",6)}const jl=function(){return["select","id","name","description"]};function zl(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",7)(1,"perun-web-apps-debounce-filter",8),t.NdJ("filter",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.applyFilter(n))}),t.ALo(2,"translate"),t.qZA(),t._UZ(3,"perun-web-apps-groups-list",9),t.qZA()}if(2&i){const e=t.oxw();t.xp6(1),t.s9C("placeholder",t.lcZ(2,8,"DIALOGS.ADD_GROUP_TO_REGISTRATION.FILTER_DESCRIPTION")),t.xp6(2),t.Q6J("disableMembers",!0)("groups",e.unAssignedGroups)("selection",e.selection)("disableRouting",!0)("displayedColumns",t.DdM(10,jl))("filter",e.filterValue)("tableId",e.tableId)}}let $l=(()=>{class i{constructor(e,o,n,s){this.dialogRef=e,this.data=o,this.groupService=n,this.registrarService=s,this.loading=!1,this.selection=new E.Ov(!0,[]),this.filterValue="",this.tableId=C.Is}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.groupService.getAllGroups(this.data.voId).subscribe(e=>{this.unAssignedGroups=e.filter(o=>!this.data.assignedGroups.includes(o.id)),this.loading=!1})}applyFilter(e){this.filterValue=e}onCancel(){this.dialogRef.close(!1)}onAdd(){this.loading=!0,this.registrarService.addGroupsToAutoRegistration(this.selection.selected.map(e=>e.id)).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(h.ff),t.Y36(h.tk))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-add-group-to-registration"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"placeholder","filter"],[3,"disableMembers","groups","selection","disableRouting","displayedColumns","filter","tableId"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Hl,1,0,"mat-spinner",1),t.YNc(5,zl,4,11,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return o.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return o.onAdd()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.ADD_GROUP_TO_REGISTRATION.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.ADD_GROUP_TO_REGISTRATION.CANCEL_BUTTON")," "),t.xp6(2),t.Q6J("disabled",0===o.selection.selected.length||o.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.ADD_GROUP_TO_REGISTRATION.ADD_BUTTON")," "))},dependencies:[m.O5,I.lW,u.uh,u.xY,u.H8,T.Ou,F.W,z.P,_.X$]}),i})();function Xl(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onAddGroup())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.ADD"),"\n"))}function Kl(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"span",9),t.ALo(1,"translate"),t.TgZ(2,"button",10),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.removeGroup())}),t._uU(3),t.ALo(4,"translate"),t.qZA()()}if(2&i){const e=a.ngIf,o=t.oxw();t.s9C("matTooltip",t.lcZ(1,4,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.REMOVE_PERMISSION_HINT")),t.Q6J("matTooltipDisabled",0===o.selected.selected.length||e.removeAuth),t.xp6(2),t.Q6J("disabled",0===o.selected.selected.length||!e.removeAuth),t.xp6(1),t.hij(" ",t.lcZ(4,6,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.REMOVE")," ")}}function Wl(i,a){1&i&&t._UZ(0,"mat-spinner",11)}const tc=function(){return["select","id","name","description"]};function ec(i,a){if(1&i&&t._UZ(0,"perun-web-apps-groups-list",12),2&i){const e=t.oxw();t.Q6J("displayedColumns",t.DdM(6,tc))("disableRouting",!0)("groups",e.groups)("filter",e.filterValue)("selection",e.selected)("tableId",e.tableId)}}const ic=function(i){return{removeAuth:i}};let oc=(()=>{class i{constructor(e,o,n,s){this.registrarService=e,this.authResolver=o,this.dialog=n,this.route=s,this.groups=[],this.selected=new E.Ov(!0,[]),this.tableId=C.CE,this.filterValue="",this.removeAuth$=this.selected.changed.pipe((0,X.U)(r=>r.source.selected.reduce((d,A)=>d&&this.authResolver.isAuthorized("deleteGroupsFromAutoRegistration_List_policy",[{id:this.voId,beanName:"Vo"},A]),!0)),(0,ct.O)(!0))}ngOnInit(){this.loading=!0,this.route.parent.parent.params.subscribe(e=>{this.voId=Number(e.voId),this.loadGroups()})}loadGroups(){this.loading=!0,this.registrarService.getGroupsToAutoRegistration(this.voId).subscribe(e=>{this.groups=e,this.selected.clear(),this.setAuthRights(),this.loading=!1},()=>this.loading=!1)}onAddGroup(){const e=(0,g.kZ)();e.width="900px",e.data={voId:this.voId,assignedGroups:this.groups.map(n=>n.id),theme:"vo-theme"},this.dialog.open($l,e).afterClosed().subscribe(n=>{n&&this.loadGroups()})}removeGroup(){const e=(0,g.kZ)();e.width="450px",e.data={items:this.selected.selected.map(n=>n.name),title:"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.REMOVE_GROUP_DIALOG_TITLE",description:"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.REMOVE_GROUP_DIALOG_DESCRIPTION",theme:"vo-theme",type:"remove",showAsk:!0},this.dialog.open(w.Ts,e).afterClosed().subscribe(n=>{n&&this.registrarService.deleteGroupsFromAutoRegistration(this.selected.selected.map(s=>s.id)).subscribe(()=>{this.loadGroups()})})}setAuthRights(){this.addAuth=this.authResolver.isAuthorized("addGroupsToAutoRegistration_List_policy",[{id:this.voId,beanName:"Vo"}])}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.tk),t.Y36(p.x4),t.Y36(u.uw),t.Y36(b.gz))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-application-form-manage-groups"]],decls:14,vars:18,consts:[[1,"page-subtitle"],["alert_type","info"],[3,"refresh"],["class","mr-2","color","accent","mat-flat-button","",3,"click",4,"ngIf"],[3,"matTooltipDisabled","matTooltip",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],["theme","vo-theme",3,"displayedColumns","disableRouting","groups","filter","selection","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2",3,"click"],[3,"matTooltipDisabled","matTooltip"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["theme","vo-theme",3,"displayedColumns","disableRouting","groups","filter","selection","tableId"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-alert",1),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"perun-web-apps-refresh-button",2),t.NdJ("refresh",function(){return o.loadGroups()}),t.qZA(),t.YNc(8,Xl,3,3,"button",3),t.YNc(9,Kl,5,8,"span",4),t.ALo(10,"async"),t.TgZ(11,"perun-web-apps-immediate-filter",5),t.NdJ("filter",function(s){return o.filterValue=s}),t.qZA(),t.YNc(12,Wl,1,0,"mat-spinner",6),t.YNc(13,ec,1,7,"perun-web-apps-groups-list",7)),2&e&&(t.xp6(1),t.AsE(" ",t.lcZ(2,8,"VO_DETAIL.SETTINGS.APPLICATION_FORM.TITLE")," - ",t.lcZ(3,10,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.TITLE"),"\n"),t.xp6(4),t.hij(" ",t.lcZ(6,12,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.HELP"),"\n"),t.xp6(3),t.Q6J("ngIf",o.addAuth),t.xp6(1),t.Q6J("ngIf",t.VKq(16,ic,t.lcZ(10,14,o.removeAuth$))),t.xp6(2),t.Q6J("placeholder","VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.FILTER"),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[m.O5,I.lW,T.Ou,N.gM,M.w,F.W,D.t,U.L,m.Ov,_.X$]}),i})();var nc=c(20872),ac=c(28499),Ht=c(38383),jt=c(96338),sc=c(95406);const rc=["stepper"];function lc(i,a){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"DIALOGS.CREATE_SERVICE_MEMBER.CREATE_IDENTITY"))}function cc(i,a){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.FIELD_EMPTY")))}function pc(i,a){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.FIELD_EMPTY")))}function uc(i,a){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.EMAIL_INVALID")))}function dc(i,a){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.FIELD_EMPTY")))}function _c(i,a){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.FIELD_EMPTY")))}function mc(i,a){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"DIALOGS.CREATE_SERVICE_MEMBER.SET_CREDENTIALS"))}function gc(i,a){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"DIALOGS.CREATE_SERVICE_MEMBER.ASSOCIATE_USERS"))}function hc(i,a){if(1&i&&(t.TgZ(0,"span",28),t._uU(1),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.hij("#",e.id,"")}}function fc(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-list-item")(1,"p",23),t._uU(2),t.ALo(3,"userFullName"),t.YNc(4,hc,2,1,"span",24),t.TgZ(5,"span",25),t.ALo(6,"translate"),t.TgZ(7,"button",26),t.NdJ("click",function(){const s=t.CHM(e).$implicit,r=t.oxw(2);return t.KtG(r.removeUser(s))}),t.TgZ(8,"mat-icon",27),t._uU(9,"close"),t.qZA()()()()()}if(2&i){const e=a.$implicit,o=t.oxw(2);t.xp6(2),t.hij(" ",t.lcZ(3,5,e.user)," "),t.xp6(2),t.Q6J("ngIf",e.id),t.xp6(1),t.Q6J("matTooltipDisabled",o.assignedMembers.length>1)("matTooltip",t.lcZ(6,7,"DIALOGS.CREATE_SERVICE_MEMBER.MINIMAL_USERS")),t.xp6(2),t.Q6J("disabled",1===o.assignedMembers.length)}}function Ac(i,a){1&i&&t._UZ(0,"mat-spinner",29)}const Tc=function(){return["checkbox","id","fullName"]};function Ic(i,a){if(1&i&&t._UZ(0,"perun-web-apps-members-list",32),2&i){const e=t.oxw(3);t.Q6J("disableRouting",!0)("displayedColumns",t.DdM(5,Tc))("members",e.members)("tableId",e.tableId)("selection",e.selection)}}function bc(i,a){1&i&&(t.TgZ(0,"perun-web-apps-alert",33),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.SEARCH_INFO")," "))}function vc(i,a){if(1&i&&(t.TgZ(0,"div"),t.YNc(1,Ic,1,6,"perun-web-apps-members-list",30),t.YNc(2,bc,3,3,"perun-web-apps-alert",31),t.qZA()),2&i){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",e.firstSearchDone),t.xp6(1),t.Q6J("ngIf",!e.firstSearchDone)}}function Ec(i,a){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.hij(" ",t.lcZ(1,1,"DIALOGS.CREATE_SERVICE_MEMBER.SPONSOR")," ")}function Cc(i,a){1&i&&(t.TgZ(0,"mat-step"),t.YNc(1,Ec,2,3,"ng-template",9),t.TgZ(2,"perun-web-apps-alert",33),t._uU(3),t.ALo(4,"translate"),t.qZA()()),2&i&&(t.xp6(3),t.hij(" ",t.lcZ(4,1,"DIALOGS.CREATE_SERVICE_MEMBER.MANAGE_LIFECYCLE_INFO")," "))}function Sc(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",4)(1,"mat-stepper",5,6)(3,"mat-step",7)(4,"form",8),t.YNc(5,lc,2,3,"ng-template",9),t.TgZ(6,"div",10)(7,"mat-form-field")(8,"mat-label"),t._uU(9),t.ALo(10,"translate"),t.qZA(),t._UZ(11,"input",11),t.YNc(12,cc,3,3,"mat-error",12),t.qZA(),t.TgZ(13,"mat-form-field")(14,"mat-label"),t._uU(15),t.ALo(16,"translate"),t.qZA(),t._UZ(17,"input",13),t.YNc(18,pc,3,3,"mat-error",12),t.YNc(19,uc,3,3,"mat-error",12),t.qZA(),t.TgZ(20,"mat-form-field")(21,"mat-label"),t._uU(22),t.ALo(23,"translate"),t.qZA(),t._UZ(24,"input",14),t.YNc(25,dc,3,3,"mat-error",12),t.qZA(),t.TgZ(26,"mat-form-field")(27,"mat-label"),t._uU(28),t.ALo(29,"translate"),t.qZA(),t._UZ(30,"input",15),t.YNc(31,_c,3,3,"mat-error",12),t.qZA()()()(),t.TgZ(32,"mat-step",7)(33,"form",8),t.YNc(34,mc,2,3,"ng-template",9),t.TgZ(35,"app-login-password-form-with-generate-option",16),t.NdJ("parsedRulesOutput",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.parsedRules=n)}),t.qZA()()(),t.TgZ(36,"mat-step"),t.YNc(37,gc,2,3,"ng-template",9),t.TgZ(38,"h6"),t._uU(39),t.ALo(40,"translate"),t.qZA(),t.TgZ(41,"mat-list"),t.YNc(42,fc,10,9,"mat-list-item",17),t.qZA(),t.TgZ(43,"h6",18),t._uU(44),t.ALo(45,"translate"),t.qZA(),t.TgZ(46,"mat-form-field",19)(47,"input",20),t.NdJ("keyup.enter",function(){t.CHM(e);const n=t.oxw();return t.KtG(0!==n.searchCtrl.value.length&&n.onSearchByString())}),t.ALo(48,"translate"),t.qZA()(),t.TgZ(49,"button",21),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onSearchByString())}),t.TgZ(50,"mat-icon"),t._uU(51,"search"),t.qZA()(),t.TgZ(52,"button",22),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.addUsers())}),t._uU(53),t.ALo(54,"translate"),t.qZA(),t.YNc(55,Ac,1,0,"mat-spinner",2),t.YNc(56,vc,3,2,"div",12),t.qZA(),t.YNc(57,Cc,5,3,"mat-step",12),t.qZA()()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("linear",!0),t.xp6(2),t.Q6J("stepControl",e.firstFormGroup),t.xp6(1),t.Q6J("formGroup",e.firstFormGroup),t.xp6(5),t.Oqu(t.lcZ(10,28,"DIALOGS.CREATE_SERVICE_MEMBER.NAME")),t.xp6(3),t.Q6J("ngIf",e.firstFormGroup.get("nameCtrl").hasError("required")),t.xp6(3),t.Oqu(t.lcZ(16,30,"DIALOGS.CREATE_SERVICE_MEMBER.EMAIL")),t.xp6(3),t.Q6J("ngIf",e.firstFormGroup.get("emailCtrl").hasError("required")),t.xp6(1),t.Q6J("ngIf",e.firstFormGroup.get("emailCtrl").hasError("pattern")),t.xp6(3),t.Oqu(t.lcZ(23,32,"DIALOGS.CREATE_SERVICE_MEMBER.SUBJECT_DN")),t.xp6(2),t.Q6J("required",!!e.firstFormGroup.get("issuerCtrl").value&&0!==e.firstFormGroup.get("issuerCtrl").value.trim().length),t.xp6(1),t.Q6J("ngIf",e.firstFormGroup.get("subjectCtrl").hasError("required")),t.xp6(3),t.Oqu(t.lcZ(29,34,"DIALOGS.CREATE_SERVICE_MEMBER.ISSUER_DN")),t.xp6(2),t.Q6J("required",!!e.firstFormGroup.get("subjectCtrl").value&&0!==e.firstFormGroup.get("subjectCtrl").value.trim().length),t.xp6(1),t.Q6J("ngIf",e.firstFormGroup.get("issuerCtrl").hasError("required")),t.xp6(1),t.Q6J("stepControl",e.secondFormGroup),t.xp6(1),t.Q6J("formGroup",e.secondFormGroup),t.xp6(2),t.Q6J("formGroup",e.secondFormGroup),t.xp6(4),t.Oqu(t.lcZ(40,36,"DIALOGS.CREATE_SERVICE_MEMBER.ASSOCIATED_USERS")),t.xp6(3),t.Q6J("ngForOf",e.assignedMembers),t.xp6(2),t.Oqu(t.lcZ(45,38,"DIALOGS.CREATE_SERVICE_MEMBER.SEARCH_INFO")),t.xp6(3),t.s9C("placeholder",t.lcZ(48,40,"DIALOGS.CREATE_SERVICE_MEMBER.SEARCH_PLACEHOLDER")),t.Q6J("formControl",e.searchCtrl),t.xp6(2),t.Q6J("disabled",e.loading||0===e.searchCtrl.value.length),t.xp6(3),t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(54,42,"DIALOGS.CREATE_SERVICE_MEMBER.ADD_USER")," "),t.xp6(2),t.Q6J("ngIf",e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading),t.xp6(1),t.Q6J("ngIf",e.findSponsorsAuth&&0!==e.voSponsors.length&&e.setSponsorshipAuth)}}function xc(i,a){1&i&&t._UZ(0,"mat-spinner",29)}function Nc(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",39),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.stepperPrevious())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.BACK")," "))}function Oc(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",22),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.stepperNext())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw(2);t.ekj("ml-2",void 0!==e.stepper&&0!==e.stepper.selectedIndex)("ml-auto",!(void 0!==e.stepper&&0!==e.stepper.selectedIndex)),t.Q6J("disabled",e.getStepperNextConditions()),t.xp6(1),t.hij(" ",t.lcZ(2,6,"DIALOGS.CREATE_SERVICE_MEMBER.NEXT")," ")}}function Zc(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",40),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.onCreate(!1))}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw(2);t.Q6J("disabled",e.firstFormGroup.invalid||"Not selected"!==e.secondFormGroup.get("namespaceCtrl").value&&e.secondFormGroup.invalid),t.xp6(1),t.hij(" ",t.lcZ(2,2,"DIALOGS.CREATE_SERVICE_MEMBER.CREATE")," ")}}function Dc(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",40),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.onCreate(!0))}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw(2);t.Q6J("disabled",e.firstFormGroup.invalid||"Not selected"!==e.secondFormGroup.get("namespaceCtrl").value&&e.secondFormGroup.invalid),t.xp6(1),t.hij(" ",t.lcZ(2,2,"DIALOGS.CREATE_SERVICE_MEMBER.CREATE_AND_SPONSOR")," ")}}function Mc(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",34)(1,"button",35),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onCancel())}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Nc,3,3,"button",36),t.TgZ(5,"span",25),t.ALo(6,"translate"),t.YNc(7,Oc,3,8,"button",37),t.qZA(),t.YNc(8,Zc,3,4,"button",38),t.YNc(9,Dc,3,4,"button",38),t.qZA()}if(2&i){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,7,"DIALOGS.CREATE_SERVICE_MEMBER.CANCEL")," "),t.xp6(2),t.Q6J("ngIf",void 0!==e.stepper&&0!==e.stepper.selectedIndex),t.xp6(1),t.Q6J("matTooltipDisabled",0===e.selection.selected.length)("matTooltip",t.lcZ(6,9,"DIALOGS.CREATE_SERVICE_MEMBER.NEXT_BUTTON_DISABLED_TOOLTIP")),t.xp6(2),t.Q6J("ngIf",void 0!==e.stepper&&e.stepper.selectedIndex!==e.stepper._steps.length-1),t.xp6(1),t.Q6J("ngIf",void 0!==e.stepper&&e.stepper.selectedIndex===e.stepper._steps.length-1),t.xp6(1),t.Q6J("ngIf",e.findSponsorsAuth&&0!==e.voSponsors.length&&e.setSponsorshipAuth&&void 0!==e.stepper&&e.stepper.selectedIndex===e.stepper._steps.length-1)}}let Lc=(()=>{class i{constructor(e,o,n,s,r,d,A,v,L,$,mt,Nu){this.dialogRef=e,this.data=o,this.membersManagerService=n,this.usersManagerService=s,this.notificator=r,this.translate=d,this.store=A,this.apiRequestConfiguration=v,this._formBuilder=L,this.cd=$,this.authResolver=mt,this.findSponsors=Nu,this.parsedRules=new Map,this.firstSearchDone=!1,this.searchCtrl=new f.p4(""),this.members=[],this.selection=new E.Ov(!0,[]),this.tableId=C.j1,this.assignedMembers=[],this.candidate={beanName:"",id:0},this.successMessageMember="",this.successMessagePwd="",this.processing=!1,this.voSponsors=[],d.get("DIALOGS.CREATE_SERVICE_MEMBER.SUCCESS_MEMBER").subscribe(gt=>this.successMessageMember=gt),d.get("DIALOGS.CREATE_SERVICE_MEMBER.SUCCESS_PWD").subscribe(gt=>this.successMessagePwd=gt)}ngAfterViewInit(){this.cd.detectChanges()}ngOnInit(){this.theme=this.data.theme,this.firstFormGroup=this._formBuilder.group({nameCtrl:["",f.kI.required],emailCtrl:["",[f.kI.required,f.kI.pattern("\\w+([.-]?\\w+)*@\\w+([.-]?\\w+)*(.\\w{2,3})+")]],subjectCtrl:[null],issuerCtrl:[null]}),this.secondFormGroup=this._formBuilder.group({namespaceCtrl:["Not selected"],loginCtrl:["",[f.kI.pattern("^[a-z][a-z0-9_-]+$"),f.kI.maxLength(15),f.kI.minLength(2)]],passwordCtrl:["",f.kI.required,[(0,ac.yT)(null,this.usersManagerService,this.apiRequestConfiguration)]],passwordAgainCtrl:[""],generatePasswordCtrl:[!0]},{validators:g.dN.passwordMatchValidator});const e=this.store.getPerunPrincipal().user;this.membersManagerService.getMembersByUser(e.id).subscribe(o=>{let n={};for(const s of o)s.voId===this.data.vo.id&&(n=s);n.user=e,this.assignedMembers.push(n)}),this.setSponsorshipAuth=this.authResolver.isAuthorized("setSponsorshipForMember_Member_User_LocalDate_policy",[this.data.vo,this.store.getPerunPrincipal().user]),this.findSponsorsAuth=this.findSponsors.findSponsorsAuth(this.data.vo),this.findSponsorsAuth&&this.findSponsors.getSponsors(this.data.vo.id).subscribe(o=>{this.voSponsors=o})}onCreate(e){this.processing=!0,this.candidate.firstName="",this.candidate.lastName=this.firstFormGroup.get("nameCtrl").value,this.candidate.attributes={},this.candidate.attributes["urn:perun:member:attribute-def:def:mail"]=this.firstFormGroup.get("emailCtrl").value;const o=this.firstFormGroup.get("subjectCtrl");o?.value&&(this.candidate.userExtSource={},this.candidate.userExtSource.login=o.value,this.candidate.userExtSource.loa=0,this.candidate.userExtSource.extSource={},this.candidate.userExtSource.extSource.name=this.firstFormGroup.get("issuerCtrl").value,this.candidate.userExtSource.extSource.type="cz.metacentrum.perun.core.impl.ExtSourceX509");const n=this.secondFormGroup.get("namespaceCtrl").value.toLowerCase(),s=this.parsedRules.get(n),r=`urn:perun:user:attribute-def:def:login-namespace:${n}`;"Not selected"!==this.secondFormGroup.get("namespaceCtrl").value&&"disabled"===s.login?this.usersManagerService.generateAccountForName(n,this.firstFormGroup.get("nameCtrl").value).subscribe(d=>{this.candidate.attributes[r]=d[r],this.createSpecificMember(e)},()=>this.processing=!1):("Not selected"!==this.secondFormGroup.get("namespaceCtrl").value&&(this.candidate.attributes[r]=this.secondFormGroup.get("loginCtrl").value),this.createSpecificMember(e))}createSpecificMember(e){this.membersManagerService.createSpecificMember({vo:this.data.vo.id,specificUserType:"SERVICE",specificUserOwners:this.assignedMembers.map(o=>o.user),candidate:this.candidate}).subscribe(o=>{this.membersManagerService.validateMemberAsync(o.id).subscribe(n=>{this.notificator.showSuccess(this.successMessageMember),"Not selected"!==this.secondFormGroup.get("namespaceCtrl").value?this.setPassword(n,this.secondFormGroup.get("generatePasswordCtrl").value,e):this.dialogRef.close({result:!0,sponsor:e,voSponsors:this.voSponsors,findSponsorsAuth:this.findSponsorsAuth,serviceMemberId:o.id})},()=>this.processing=!1)},()=>this.processing=!1)}setPassword(e,o,n){const s=this.secondFormGroup.get("namespaceCtrl").value.toLowerCase(),r=this.secondFormGroup.get("passwordCtrl").value;if(o){if("disabled"===this.parsedRules.get(s).login)return void this.validateMember(e.id,n);this.usersManagerService.reserveRandomPassword(e.userId,s).subscribe(()=>{this.usersManagerService.validatePasswordForUser(e.userId,s).subscribe(()=>{this.validateMember(e.id,n,!1)},()=>{this.processing=!1})},()=>{this.processing=!1})}else this.usersManagerService.reservePasswordForUser({user:e.userId,namespace:s,password:r}).subscribe(()=>{this.usersManagerService.validatePasswordForUser(e.userId,s).subscribe(()=>{this.validateMember(e.id,n)},()=>{this.processing=!1,this.dialogRef.close({result:!0,sponsor:n,voSponsors:this.voSponsors,findSponsorsAuth:this.findSponsorsAuth,serviceMemberId:e.id})})},()=>{this.processing=!1,this.dialogRef.close({result:!0,sponsor:n,voSponsors:this.voSponsors,findSponsorsAuth:this.findSponsorsAuth,serviceMemberId:e.id})})}validateMember(e,o,n=!0){this.membersManagerService.validateMemberAsync(e).subscribe(()=>{n&&this.notificator.showSuccess(this.successMessagePwd),this.dialogRef.close({result:!0,sponsor:o,voSponsors:this.voSponsors,findSponsorsAuth:this.findSponsorsAuth,serviceMemberId:e})},()=>{this.processing=!1})}onCancel(){this.dialogRef.close({result:!1,sponsor:!1})}onSearchByString(){this.loading=!0,this.membersManagerService.findCompleteRichMembersForVo(this.data.vo.id,[""],this.searchCtrl.value).subscribe(e=>{this.members=e.filter(o=>!o.user.specificUser),this.firstSearchDone=!0,this.loading=!1})}addUsers(){const e=this.assignedMembers.map(o=>o.id);this.selection.selected.forEach(o=>{e.includes(o.id)||this.assignedMembers.push(o)}),this.selection.clear()}removeUser(e){this.assignedMembers=this.assignedMembers.filter(o=>o.id!==e.id)}getStepperNextConditions(){switch(this.stepper.selectedIndex){case 0:return this.firstFormGroup.invalid||this.firstFormGroup.pending;case 1:return this.secondFormGroup.invalid||this.secondFormGroup.pending;case 2:return this.selection.selected.length>0;default:return!1}}stepperPrevious(){this.stepper.previous()}stepperNext(){this.stepper.next()}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(h.uq),t.Y36(h.Fv),t.Y36(p.V6),t.Y36(_.sK),t.Y36(p.d6),t.Y36(p.F5),t.Y36(f.QS),t.Y36(t.sBO),t.Y36(p.x4),t.Y36(p.Mf))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-create-service-member-dialog"]],viewQuery:function(e,o){if(1&e&&t.Gf(rc,5),2&e){let n;t.iGM(n=t.CRH())&&(o.stepper=n.first)}},decls:7,vars:9,consts:[[1,"mat-dialog-title"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],["mat-dialog-content","",1,"dialog-container"],[3,"linear"],["stepper",""],[3,"stepControl"],[3,"formGroup"],["matStepLabel",""],[1,"display-flex"],["formControlName","nameCtrl","matInput","","required",""],[4,"ngIf"],["formControlName","emailCtrl","matInput","","required","","type","email"],["formControlName","subjectCtrl","matInput","",3,"required"],["formControlName","issuerCtrl","matInput","",3,"required"],[3,"formGroup","parsedRulesOutput"],[4,"ngFor","ngForOf"],[1,"mt-3"],[1,"mr-2","w-50"],["autocomplete","false","matInput","",3,"formControl","placeholder","keyup.enter"],["color","primary","mat-flat-button","",1,"mr-2",3,"disabled","click"],["color","accent","mat-flat-button","",3,"disabled","click"],[1,"truncate","center-content"],["class","text-muted",4,"ngIf"],[3,"matTooltipDisabled","matTooltip"],["color","warn","mat-icon-button","",1,"ml-1",3,"disabled","click"],[1,"margin-bottom"],[1,"text-muted"],[1,"ml-auto","mr-auto"],[3,"disableRouting","displayedColumns","members","tableId","selection",4,"ngIf"],["alert_type","info",4,"ngIf"],[3,"disableRouting","displayedColumns","members","tableId","selection"],["alert_type","info"],["mat-dialog-actions",""],["mat-flat-button","",3,"click"],["class","ml-auto","mat-flat-button","",3,"click",4,"ngIf"],["color","accent","mat-flat-button","",3,"ml-2","ml-auto","disabled","click",4,"ngIf"],["class","ml-2","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Sc,58,44,"div",1),t.YNc(5,xc,1,0,"mat-spinner",2),t.YNc(6,Mc,10,11,"div",3),t.qZA()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,7,"DIALOGS.CREATE_SERVICE_MEMBER.TITLE")),t.xp6(2),t.Q6J("ngIf",!o.processing),t.xp6(1),t.Q6J("ngIf",o.processing),t.xp6(1),t.Q6J("ngIf",!o.processing))},dependencies:[m.sg,m.O5,x.TO,x.KE,x.hX,V.Nt,f._Y,f.Fj,f.JJ,f.JL,f.Q7,f.oH,f.sg,f.u,y.Hw,I.lW,u.xY,u.H8,T.Ou,N.gM,P.C0,P.VY,P.Vq,M.w,Ht.O,jt.i$,jt.Tg,sc.r,_.X$,Q.d],styles:[".display-flex[_ngcontent-%COMP%]{display:flex;flex-direction:column}.input-disabled[_ngcontent-%COMP%]{pointer-events:none;color:#888}.truncate[_ngcontent-%COMP%]{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap}.center-content[_ngcontent-%COMP%]{margin-bottom:auto;margin-top:auto}.white-space-pre[_ngcontent-%COMP%]{white-space:pre}.margin-bottom[_ngcontent-%COMP%]{margin-bottom:6px}"]}),i})();var Rc=c(53455),wc=c(91828);function Gc(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onRemoveMembers())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",e.selection.isEmpty()),t.xp6(1),t.hij(" ",t.lcZ(2,2,"VO_DETAIL.SETTINGS.SERVICE_MEMBERS.DELETE"),"\n")}}function Uc(i,a){1&i&&t._UZ(0,"mat-spinner",8)}const Pc=function(){return["checkbox","id","type","fullName","status"]};function yc(i,a){if(1&i&&t._UZ(0,"perun-web-apps-members-list",9),2&i){const e=t.oxw();t.Q6J("tableId",e.tableId)("displayedColumns",t.DdM(6,Pc))("selection",e.selection)("disableStatusChange",!0)("filter",e.searchString)("members",e.members)}}let Vc=(()=>{class i{constructor(e,o,n,s,r){this.membersManager=e,this.dialog=o,this.authResolver=n,this.authzService=s,this.entityStorageService=r,this.members=[],this.selection=new E.Ov(!0,[]),this.searchString="",this.loading=!1,this.tableId=C._c}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.removeAuth=this.authzService.isAuthorized("deleteMembers_List_policy",[this.vo]),this.refresh()}createServiceMember(){const e=(0,g.kZ)();e.width="800px",e.data={vo:this.vo,theme:"vo-theme"},this.dialog.open(Lc,e).afterClosed().subscribe(n=>{n.result&&(n.sponsor?(e.data={voId:this.vo.id,theme:"vo-theme",voSponsors:n.voSponsors,findSponsorsAuth:n.findSponsorsAuth,serviceMemberId:n.serviceMemberId},this.dialog.open(wc.b,e).afterClosed().subscribe(()=>{this.refresh()})):this.refresh())})}onRemoveMembers(){const e=(0,g.kZ)();e.width="450px",e.data={members:this.selection.selected,theme:"vo-theme"},this.dialog.open(Rc.X,e).afterClosed().subscribe(n=>{n&&(this.refresh(),this.selection.clear())})}applyFilter(e){this.searchString=e}refresh(){this.loading=!0,this.membersManager.findCompleteRichMembersForVo(this.vo.id,[""],"(Service)").subscribe(e=>{this.members=e,this.loading=!1})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.uq),t.Y36(u.uw),t.Y36(p.x4),t.Y36(p.x4),t.Y36(p.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-settings-service-members"]],decls:11,vars:10,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"tableId","displayedColumns","selection","disableStatusChange","filter","members",4,"ngIf"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"tableId","displayedColumns","selection","disableStatusChange","filter","members"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return o.refresh()}),t.qZA(),t.TgZ(4,"button",2),t.NdJ("click",function(){return o.createServiceMember()}),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.YNc(7,Gc,3,4,"button",3),t.TgZ(8,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(s){return o.applyFilter(s)}),t.qZA(),t.YNc(9,Uc,1,0,"mat-spinner",5),t.YNc(10,yc,1,7,"perun-web-apps-members-list",6)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"VO_DETAIL.SETTINGS.SERVICE_MEMBERS.TITLE")),t.xp6(4),t.hij(" ",t.lcZ(6,8,"VO_DETAIL.SETTINGS.SERVICE_MEMBERS.CREATE"),"\n"),t.xp6(2),t.Q6J("ngIf",o.removeAuth),t.xp6(1),t.Q6J("placeholder","VO_DETAIL.SETTINGS.SERVICE_MEMBERS.FILTER"),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[m.O5,I.lW,T.Ou,D.t,U.L,Ht.O,_.X$]}),i})();var K=c(71992),zt=c(87831);const Fc=["stepper"];function Yc(i,a){1&i&&t._UZ(0,"mat-spinner",4)}function Jc(i,a){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.SELECTION_STEP"))}function qc(i,a){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.CONFIRMATION_STEP"))}function kc(i,a){1&i&&t._UZ(0,"th",19)}function Qc(i,a){if(1&i&&(t.TgZ(0,"td",20),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Oqu(e.name)}}function Bc(i,a){1&i&&t._UZ(0,"tr",21)}function Hc(i,a){1&i&&t._UZ(0,"tr",22)}function jc(i,a){if(1&i&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"table",12),t.ynx(4,13),t.YNc(5,kc,1,0,"th",14),t.YNc(6,Qc,2,1,"td",15),t.BQk(),t.YNc(7,Bc,1,0,"tr",16),t.YNc(8,Hc,1,0,"tr",17),t.qZA(),t.TgZ(9,"perun-web-apps-alert",18),t._uU(10),t.ALo(11,"translate"),t.qZA()),2&i){const e=t.oxw(2);t.xp6(1),t.Oqu(t.lcZ(2,6,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.CONFIRM")),t.xp6(2),t.Q6J("dataSource",e.voSelection.selected),t.xp6(4),t.Q6J("matHeaderRowDef",e.columns),t.xp6(1),t.Q6J("matRowDefColumns",e.columns),t.xp6(1),t.Q6J("alert_type","warn"),t.xp6(1),t.Oqu(t.lcZ(11,8,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.WARNING"))}}function zc(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",5)(1,"mat-stepper",6,7)(3,"mat-step"),t.YNc(4,Jc,2,3,"ng-template",8),t.TgZ(5,"perun-web-apps-immediate-filter",9),t.NdJ("filter",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.voFilter=n)}),t.qZA(),t._UZ(6,"perun-web-apps-vos-list",10),t.qZA(),t.TgZ(7,"mat-step"),t.YNc(8,qc,2,3,"ng-template",8),t.YNc(9,jc,12,10,"ng-template",11),t.qZA()()()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("linear",!0),t.xp6(4),t.Q6J("placeholder","VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.FILTER_VOS"),t.xp6(1),t.Q6J("vos",e.vos)("selection",e.voSelection)("displayedColumns",e.displayedColumns)("filterValue",e.voFilter)("disableRouting",!0)}}function $c(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",24),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.stepperPrevious())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.BACK")," "))}function Xc(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",29),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.stepperNext())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw(2);t.Q6J("disabled",0===e.voSelection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.NEXT")," ")}}function Kc(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",30),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.addMemberOrganization())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.ADD")," "))}function Wc(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",23)(1,"button",24),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.close())}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",25),t.YNc(5,$c,3,3,"button",26),t.YNc(6,Xc,3,4,"button",27),t.YNc(7,Kc,3,3,"button",28),t.qZA()()}if(2&i){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,4,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.CANCEL")," "),t.xp6(3),t.Q6J("ngIf",void 0!==e.stepper&&0!==e.stepper.selectedIndex),t.xp6(1),t.Q6J("ngIf",1!==(null==e.stepper?null:e.stepper.selectedIndex)),t.xp6(1),t.Q6J("ngIf",1===(null==e.stepper?null:e.stepper.selectedIndex))}}let tp=(()=>{class i{constructor(e,o,n,s,r){this.dialogRef=e,this.vosService=o,this.entityStorage=n,this.notificator=s,this.translator=r,this.loading=!1,this.theme="vo-theme",this.displayedColumns=["checkbox","id","name","shortName"],this.columns=["name"],this.vos=[],this.voSelection=new E.Ov(!1,[]),this.voFilter=""}ngOnInit(){this.loading=!0,this.voId=this.entityStorage.getEntity().id,this.vosService.getEnrichedVoById(this.voId).subscribe(e=>{this.vosService.getAllVos().subscribe(o=>{const n=e.memberVos.map(s=>s.id);this.vos=o.filter(s=>!n.includes(s.id)),this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)}close(){this.dialogRef.close(!1)}stepperNext(){this.stepper.next()}stepperPrevious(){this.stepper.previous()}addMemberOrganization(){this.loading=!0,this.vosService.addMemberVo(this.voId,this.voSelection.selected[0].id).subscribe(()=>{this.notificator.showSuccess(this.translator.instant("VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(h.YF),t.Y36(p.fb),t.Y36(p.V6),t.Y36(_.sK))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-add-member-organization-dialog"]],viewQuery:function(e,o){if(1&e&&t.Gf(Fc,5),2&e){let n;t.iGM(n=t.CRH())&&(o.stepper=n.first)}},decls:7,vars:9,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","","class","dialog-container",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"linear"],["stepper",""],["matStepLabel",""],[3,"placeholder","filter"],[3,"vos","selection","displayedColumns","filterValue","disableRouting"],["matStepContent",""],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[3,"alert_type"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""],["mat-dialog-actions",""],["mat-flat-button","",3,"click"],[1,"ml-auto"],["mat-flat-button","",3,"click",4,"ngIf"],["color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],["color","accent","mat-flat-button","",3,"click",4,"ngIf"],["color","accent","mat-flat-button","",3,"disabled","click"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Yc,1,0,"mat-spinner",1),t.YNc(5,zc,10,7,"div",2),t.YNc(6,Wc,8,6,"div",3),t.qZA()),2&e&&(t.Tol(o.theme),t.xp6(2),t.hij(" ",t.lcZ(3,7,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.TITLE")," "),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[m.O5,l.BZ,l.fO,l.as,l.w1,l.Dz,l.nj,l.ge,l.ev,l.XQ,l.Gk,I.lW,u.uh,u.xY,u.H8,T.Ou,P.C0,P.VY,P.Vq,P.BY,M.w,zt.Z,U.L,_.X$]}),i})();function ep(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.addMemberOrganization())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD"),"\n"))}function ip(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.removeMemberOrganization())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.voSelection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.REMOVE"),"\n")}}function op(i,a){1&i&&t._UZ(0,"mat-spinner",9)}function np(i,a){if(1&i&&t._UZ(0,"perun-web-apps-vos-list",10),2&i){const e=t.oxw();t.Q6J("vos",e.memberVos)("selection",e.voSelection)("filterValue",e.filterValue)("disableRouting",!e.auth)("displayedColumns",e.displayedColumns)}}let ap=(()=>{class i{constructor(e,o,n,s,r,d,A){this.dialog=e,this.vosService=o,this.entityStorage=n,this.authResolver=s,this.reloadDetailService=r,this.notificator=d,this.translator=A,this.loading=!1,this.voSelection=new E.Ov(!1,[]),this.displayedColumns=["checkbox","id","shortName","name"],this.filterValue="",this.auth=!1,this.memberVos=[]}ngOnInit(){this.auth=this.authResolver.isPerunAdmin(),this.voId=this.entityStorage.getEntity().id,this.refresh()}refresh(){this.loading=!0,this.vosService.getEnrichedVoById(this.voId).subscribe(e=>{this.voId=e.vo.id,this.memberVos=e.memberVos,this.voSelection.clear(),this.loading=!1},()=>this.loading=!1)}addMemberOrganization(){const e=(0,g.kZ)();e.width="750px",this.dialog.open(tp,e).afterClosed().subscribe(o=>{o&&(this.reloadDetailService.reloadEntityDetail(),this.refresh())})}removeMemberVos(){this.vosService.removeMemberVo(this.voId,this.voSelection.selected[0].id).subscribe(()=>{this.notificator.showSuccess(this.translator.instant("VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.REMOVE_MEMBER_ORGANIZATION.TITLE")),this.reloadDetailService.reloadEntityDetail(),this.refresh()})}removeMemberOrganization(){const e=(0,g.kZ)();e.width="550px",e.data={items:this.voSelection.selected.map(o=>o.name),title:"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.REMOVE_MEMBER_ORGANIZATION.TITLE",alert:"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.REMOVE_MEMBER_ORGANIZATION.WARNING",theme:"vo-theme",type:"remove",showAsk:!0},this.dialog.open(w.Ts,e).afterClosed().subscribe(o=>{o&&this.removeMemberVos()})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.uw),t.Y36(h.YF),t.Y36(p.fb),t.Y36(p.x4),t.Y36(tt.G),t.Y36(p.V6),t.Y36(_.sK))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-settings-member-organizations"]],decls:9,vars:8,consts:[[1,"page-subtitle"],[3,"click"],["mat-flat-button","","class","mr-2 action-button","color","accent",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"vos","selection","filterValue","disableRouting","displayedColumns",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2","action-button",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"vos","selection","filterValue","disableRouting","displayedColumns"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-refresh-button",1),t.NdJ("click",function(){return o.refresh()}),t.qZA(),t.YNc(4,ep,3,3,"button",2),t.YNc(5,ip,3,4,"button",3),t.TgZ(6,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(s){return o.filterValue=s}),t.qZA(),t.YNc(7,op,1,0,"mat-spinner",5),t.YNc(8,np,1,5,"perun-web-apps-vos-list",6)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.TITLE")),t.xp6(3),t.Q6J("ngIf",o.auth),t.xp6(1),t.Q6J("ngIf",o.auth),t.xp6(1),t.Q6J("placeholder","VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.FILTER"),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[m.O5,I.lW,T.Ou,zt.Z,D.t,U.L,_.X$]}),i})();const sp=function(){return["select","id","name","description"]};function rp(i,a){if(1&i&&t._UZ(0,"perun-web-apps-groups-list",7),2&i){const e=t.oxw();t.Q6J("tableId",e.tableId)("groups",e.groups)("selection",e.selected)("filter",e.filterValue)("displayedColumns",t.DdM(7,sp))("disableRouting",!0)("noGroupsAlert","DIALOGS.ADD_GROUPS_HIERARCHICAL_INCLUSION.NO_GROUPS_FOUND_ALERT")}}function lp(i,a){1&i&&t._UZ(0,"mat-spinner",8)}function cp(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",9)(1,"button",10),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.close())}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"button",11),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.confirm())}),t._uU(5),t.ALo(6,"translate"),t.qZA()()}if(2&i){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,3,"DIALOGS.ADD_GROUPS_HIERARCHICAL_INCLUSION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",0===e.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(6,5,"DIALOGS.ADD_GROUPS_HIERARCHICAL_INCLUSION.ALLOW")," ")}}const pp=function(i){return{parentVo:i}};let up=(()=>{class i{constructor(e,o,n,s,r){this.dialogRef=e,this.data=o,this.groupService=n,this.notificator=s,this.translate=r,this.loading=!1,this.selected=new E.Ov(!0,[]),this.tableId=C.uI,this.filterValue=""}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.voId=this.data.voId,this.parentVo=this.data.parentVo,this.groupService.getAllGroups(this.voId).subscribe(e=>{this.groups=e.filter(o=>!this.data.allowedGroupsIds.includes(o.id)),this.loading=!1})}applyFilter(e){this.filterValue=e}close(){this.dialogRef.close(!1)}confirm(){if(0===this.selected.selected.length)return this.dialogRef.close(!0),void this.notificator.showSuccess(this.translate.instant("DIALOGS.ADD_GROUPS_HIERARCHICAL_INCLUSION.SUCCESS"));this.loading=!0,this.groupService.allowGroupToHierarchicalVo(this.selected.selected.pop().id,this.parentVo.id).subscribe(()=>{this.confirm(),this.loading=!1},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(h.ff),t.Y36(p.V6),t.Y36(_.sK))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-add-group-hierarchical-include-dialog"]],decls:12,vars:16,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["alert_type","info"],[3,"placeholder","filter"],["theme","vo-theme",3,"tableId","groups","selection","filter","displayedColumns","disableRouting","noGroupsAlert",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],["theme","vo-theme",3,"tableId","groups","selection","filter","displayedColumns","disableRouting","noGroupsAlert"],[1,"ml-auto","mr-auto"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",3,"disabled","click"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",1)(5,"perun-web-apps-alert",2),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"perun-web-apps-immediate-filter",3),t.NdJ("filter",function(s){return o.applyFilter(s)}),t.qZA(),t.YNc(9,rp,1,8,"perun-web-apps-groups-list",4),t.YNc(10,lp,1,0,"mat-spinner",5),t.qZA(),t.YNc(11,cp,7,7,"div",6),t.qZA()),2&e&&(t.Tol(o.theme),t.xp6(2),t.hij(" ",t.lcZ(3,9,"DIALOGS.ADD_GROUPS_HIERARCHICAL_INCLUSION.TITLE")," "),t.xp6(4),t.hij(" ",t.xi3(7,11,"DIALOGS.ADD_GROUPS_HIERARCHICAL_INCLUSION.INFO",t.VKq(14,pp,o.parentVo.name))," "),t.xp6(2),t.Q6J("placeholder","DIALOGS.ADD_GROUPS_HIERARCHICAL_INCLUSION.SEARCH"),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[m.O5,I.lW,u.uh,u.xY,u.H8,T.Ou,M.w,F.W,U.L,_.X$]}),i})();function dp(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"perun-web-apps-vo-search-select",9),t.NdJ("voSelected",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.voSelected(n))}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("vos",e.parentVos)}}const _p=function(){return["select","id","name","description"]};function mp(i,a){if(1&i&&t._UZ(0,"perun-web-apps-groups-list",10),2&i){const e=t.oxw();t.Q6J("tableId",e.tableId)("groups",e.allowedGroups)("selection",e.selected)("displayedColumns",t.DdM(5,_p))("noGroupsAlert","VO_DETAIL.SETTINGS.HIERARCHICAL_INCLUSION.NO_GROUPS_ALLOWED_ALERT")}}function gp(i,a){1&i&&t._UZ(0,"mat-spinner",11)}let hp=(()=>{class i{constructor(e,o,n,s,r,d,A){this.dialog=e,this.entityStorage=o,this.voService=n,this.groupService=s,this.notificator=r,this.translate=d,this.changeDetector=A,this.loading=!1,this.parentVos=[],this.allowedGroups=[],this.selected=new E.Ov(!0,[]),this.tableId=C.$t}ngOnInit(){this.loading=!0,this.vo=this.entityStorage.getEntity(),this.voService.getEnrichedVoById(this.vo.id).subscribe(e=>{this.parentVos=e.parentVos,this.loading=!1},()=>this.loading=!1)}voSelected(e){this.selectedParentVo=e,this.loadAllowedGroups(),this.changeDetector.detectChanges()}loadAllowedGroups(){this.loading=!0,this.selected.clear(),this.groupService.getVoAllAllowedGroupsToHierarchicalVo(this.selectedParentVo.id,this.vo.id).subscribe(e=>{this.allowedGroups=e,this.loading=!1})}addGroupsInclusion(){const e=(0,g.kZ)();e.width="750px",e.data={theme:"vo-theme",voId:this.vo.id,parentVo:this.selectedParentVo,allowedGroupsIds:this.allowedGroups.map(o=>o.id)},this.dialog.open(up,e).afterClosed().subscribe(o=>{o&&this.loadAllowedGroups()})}removeGroupsInclusion(){const e=(0,g.kZ)();e.width="750px",e.data={theme:"vo-theme",title:"DIALOGS.REMOVE_GROUPS_HIERARCHICAL_INCLUSION.TITLE",description:"DIALOGS.REMOVE_GROUPS_HIERARCHICAL_INCLUSION.DESCRIPTION",items:this.selected.selected.map(o=>o.name),alert:this.translate.instant("DIALOGS.REMOVE_GROUPS_HIERARCHICAL_INCLUSION.ALERT",{parentVo:this.selectedParentVo.name}),type:"remove",showAsk:!0},this.dialog.open(w.Ts,e).afterClosed().subscribe(o=>{o&&this.disallowGroup()})}disallowGroup(){if(0===this.selected.selected.length)return this.notificator.showSuccess(this.translate.instant("DIALOGS.REMOVE_GROUPS_HIERARCHICAL_INCLUSION.SUCCESS")),void this.loadAllowedGroups();this.loading=!0,this.groupService.disallowGroupToHierarchicalVo(this.selected.selected.pop().id,this.selectedParentVo.id).subscribe(()=>{this.disallowGroup(),this.loading=!1},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.uw),t.Y36(p.fb),t.Y36(h.YF),t.Y36(h.ff),t.Y36(p.V6),t.Y36(_.sK),t.Y36(t.sBO))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-settings-hierarchical-inclusion"]],decls:15,vars:13,consts:[[1,"page-subtitle"],[1,"display-flex"],[3,"click"],["mat-flat-button","","color","accent",1,"mr-2","action-button",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[1,"vo-search-select"],[3,"vos","voSelected",4,"ngIf"],["theme","vo-theme",3,"tableId","groups","selection","displayedColumns","noGroupsAlert",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"vos","voSelected"],["theme","vo-theme",3,"tableId","groups","selection","displayedColumns","noGroupsAlert"],[1,"ml-auto","mr-auto"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div",1)(4,"perun-web-apps-refresh-button",2),t.NdJ("click",function(){return o.loadAllowedGroups()}),t.qZA(),t.TgZ(5,"button",3),t.NdJ("click",function(){return o.addGroupsInclusion()}),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"button",4),t.NdJ("click",function(){return o.removeGroupsInclusion()}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"div",5),t.YNc(12,dp,1,1,"perun-web-apps-vo-search-select",6),t.qZA()(),t.YNc(13,mp,1,6,"perun-web-apps-groups-list",7),t.YNc(14,gp,1,0,"mat-spinner",8)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,7,"VO_DETAIL.SETTINGS.HIERARCHICAL_INCLUSION.TITLE")),t.xp6(5),t.hij(" ",t.lcZ(7,9,"VO_DETAIL.SETTINGS.HIERARCHICAL_INCLUSION.ADD")," "),t.xp6(2),t.Q6J("disabled",0===o.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(10,11,"VO_DETAIL.SETTINGS.HIERARCHICAL_INCLUSION.REMOVE")," "),t.xp6(3),t.Q6J("ngIf",o.parentVos.length>0),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(1),t.Q6J("ngIf",o.loading))},dependencies:[m.O5,I.lW,T.Ou,F.W,D.t,rt.M,_.X$],styles:[".display-flex[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:wrap}.vo-search-select[_ngcontent-%COMP%]{width:400px;padding-top:10px;margin-left:5px}"]}),i})();var fp=c(61639),Ap=c(4811),Tp=c(83370);let Ip=(()=>{class i{constructor(e,o,n,s,r){this.data=e,this.dialogRef=o,this.store=n,this.voService=s,this.notificator=r,this.selection=new E.Ov(!1,[]),this.loading=!1,this.attrNames=[S.r.MEMBER_DEF_MAIL,S.r.USER_DEF_PREFERRED_MAIL].concat(this.store.getLoginAttributeNames()),this.displayedColumns=["checkbox","id","fullName","email","logins"],this.tableId=C.bj,this.filter=""}ngOnInit(){this.selection.changed.subscribe(e=>{this.ban=this.data.bans.find(o=>o.memberId===e.source.selected[0]?.id)})}cancel(){this.dialogRef.close(!1)}submitBan(e){this.ban?this.updateBan(e):this.banMember(e)}setFilter(e){this.filter=e,this.selection.clear()}banMember(e){this.loading=!0,this.voService.setVoBan({banOnVo:{memberId:this.selection.selected[0].id,description:e.description,validityTo:e.validity,id:0,beanName:"BanOnVo"}}).subscribe({next:()=>{this.notificator.showSuccess("DIALOGS.ADD_BAN.SUCCESS_MEMBER"),this.dialogRef.close(!0)},error:()=>this.loading=!1})}updateBan(e){this.loading=!0,this.voService.updateVoBan({banOnVo:{id:this.ban.id,beanName:"BanOnVo",voId:this.ban.voId,memberId:this.ban.memberId,description:e.description,validityTo:e.validity}}).subscribe({next:()=>{this.notificator.showSuccess("DIALOGS.UPDATE_BAN.SUCCESS"),this.dialogRef.close(!0)},error:()=>{this.loading=!1}})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.WI),t.Y36(u.so),t.Y36(p.d6),t.Y36(h.YF),t.Y36(p.V6))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-add-vo-ban-dialog"]],decls:3,vars:12,consts:[[3,"loading","disabled","theme","ban","add","cancel"],[3,"placeholder","filter"],[3,"attrNames","selection","tableId","disableRouting","displayedColumns","searchString","voId"]],template:function(e,o){1&e&&(t.TgZ(0,"app-add-ban-dialog",0),t.NdJ("add",function(s){return o.submitBan(s)})("cancel",function(){return o.cancel()}),t.TgZ(1,"perun-web-apps-debounce-filter",1),t.NdJ("filter",function(s){return o.setFilter(s)}),t.qZA(),t._UZ(2,"perun-web-apps-members-dynamic-list",2),t.qZA()),2&e&&(t.Q6J("loading",o.loading)("disabled",0===o.selection.selected.length)("theme",o.data.theme)("ban",o.ban),t.xp6(1),t.Q6J("placeholder","DIALOGS.ADD_BAN.FILTER"),t.xp6(1),t.Q6J("attrNames",o.attrNames)("selection",o.selection)("tableId",o.tableId)("disableRouting",!0)("displayedColumns",o.displayedColumns)("searchString",o.filter)("voId",o.data.entityId))},dependencies:[z.P,Ap.m,Tp.u]}),i})();var $t=c(32316),pt=c(19516),Xt=c(91880);function bp(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.add())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.BANS.ADD"),"\n"))}function vp(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.remove())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"VO_DETAIL.SETTINGS.BANS.REMOVE"),"\n")}}function Ep(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"perun-web-apps-ban-on-entity-list",10),t.NdJ("updateBan",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.update(n))}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("bans",e.bans)("selection",e.selection)("updatePolicy","updateBan_BanOnVo_policy")("displayedColumns",e.displayedColumns)("filter",e.filter)}}function Cp(i,a){1&i&&(t.TgZ(0,"div",11),t._UZ(1,"mat-spinner"),t.qZA())}let Sp=(()=>{class i{constructor(e,o,n,s,r,d){this.voService=e,this.entityService=o,this.authResolver=n,this.dialog=s,this.notificator=r,this.userName=d,this.loading=!1,this.bans=[],this.removeAuth=!1,this.filter="",this.selection=new E.Ov(!1,[]),this.displayedColumns=["select","banId","subjectId","subjectName","description","expiration","edit"]}ngOnInit(){this.loading=!0,this.vo=this.entityService.getEntity(),this.addAuth=this.authResolver.isAuthorized("setBan_BanOnVo_policy",[this.vo]),this.removeAuth=this.authResolver.isAuthorized("vo-removeBan_int_policy",[this.vo]),this.refresh()}refresh(){this.loading=!0,this.voService.getEnrichedBansForVo(this.vo.id).subscribe({next:e=>{this.bans=e,this.selection.clear(),this.loading=!1},error:()=>this.loading=!1})}add(){const e=(0,g.kZ)();e.width="850px",e.data={entityId:this.vo.id,theme:"vo-theme",bans:this.bans.map(n=>n.ban)},this.dialog.open(Ip,e).afterClosed().subscribe(n=>{n&&this.refresh()})}remove(){const e=(0,g.kZ)();e.width="550px",e.data={theme:"vo-theme",title:"DIALOGS.REMOVE_BAN.TITLE",description:"DIALOGS.REMOVE_BAN.DESCRIPTION",items:[this.userName.transform(this.selection.selected[0].member.user)],type:"remove",showAsk:!0},this.dialog.open(w.Ts,e).afterClosed().subscribe(n=>{n&&this.voService.removeVoBan(this.selection.selected[0].ban.id).subscribe(()=>{this.notificator.showSuccess("DIALOGS.REMOVE_BAN.SUCCESS"),this.refresh()})})}update(e){const o=(0,g.kZ)();o.width="600px",o.data={ban:e.ban,theme:"vo-theme"},this.dialog.open($t.A,o).afterClosed().subscribe(s=>{s&&this.refresh()})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.YF),t.Y36(p.fb),t.Y36(p.x4),t.Y36(u.uw),t.Y36(p.V6),t.Y36(pt.dp))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-settings-bans"]],features:[t._Bn([pt.dp])],decls:11,vars:8,consts:[[1,"page-subtitle"],[3,"click"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["color","warn","class","mr-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],[1,"mt-2","search-field",3,"placeholder","filter"],[1,"position-relative"],[3,"bans","selection","updatePolicy","displayedColumns","filter","updateBan",4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["spinner",""],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[3,"bans","selection","updatePolicy","displayedColumns","filter","updateBan"],[1,"spinner-container"]],template:function(e,o){if(1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-refresh-button",1),t.NdJ("click",function(){return o.refresh()}),t.qZA(),t.YNc(4,bp,3,3,"button",2),t.YNc(5,vp,3,4,"button",3),t.TgZ(6,"perun-web-apps-debounce-filter",4),t.NdJ("filter",function(s){return o.filter=s}),t.qZA(),t.TgZ(7,"div",5),t.YNc(8,Ep,1,5,"perun-web-apps-ban-on-entity-list",6),t.qZA(),t.YNc(9,Cp,2,0,"ng-template",null,7,t.W1O)),2&e){const n=t.MAs(10);t.xp6(1),t.hij(" ",t.lcZ(2,6,"VO_DETAIL.SETTINGS.BANS.TITLE"),"\n"),t.xp6(3),t.Q6J("ngIf",o.addAuth),t.xp6(1),t.Q6J("ngIf",o.removeAuth),t.xp6(1),t.Q6J("placeholder","VO_DETAIL.SETTINGS.BANS.FILTER"),t.xp6(2),t.Q6J("perunWebAppsLoader",o.loading)("perunWebAppsLoaderIndicator",n)}},dependencies:[m.O5,I.lW,T.Ou,D.t,z.P,G.e5,Xt.s,_.X$]}),i})();function xp(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"perun-web-apps-ban-on-entity-list",5),t.NdJ("updateBan",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.update(n))}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("bans",e.bans)("updatePolicy","updateBan_BanOnVo_policy")("displayedColumns",e.displayedColumns)}}function Np(i,a){1&i&&(t.TgZ(0,"div",6),t._UZ(1,"mat-spinner"),t.qZA())}let Op=(()=>{class i{constructor(e,o,n){this.voService=e,this.entityService=o,this.dialog=n,this.loading=!1,this.bans=[],this.filter="",this.displayedColumns=["banId","description","expiration","edit"]}ngOnInit(){this.loading=!0,this.member=this.entityService.getEntity(),this.refresh()}refresh(){this.loading=!0,this.voService.getVoBanForMember(this.member.id).subscribe({next:e=>{this.bans=[{ban:e,member:null,vo:null}],this.loading=!1},error:()=>this.loading=!1})}update(e){const o=(0,g.kZ)();o.width="600px",o.data={ban:e.ban,theme:"vo-theme"},this.dialog.open($t.A,o).afterClosed().subscribe(s=>{s&&this.refresh()})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.YF),t.Y36(p.fb),t.Y36(u.uw))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-member-bans"]],decls:8,vars:5,consts:[[1,"page-subtitle"],[3,"click"],[1,"position-relative"],[3,"bans","updatePolicy","displayedColumns","updateBan",4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["spinner",""],[3,"bans","updatePolicy","displayedColumns","updateBan"],[1,"spinner-container"]],template:function(e,o){if(1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-refresh-button",1),t.NdJ("click",function(){return o.refresh()}),t.qZA(),t.TgZ(4,"div",2),t.YNc(5,xp,1,3,"perun-web-apps-ban-on-entity-list",3),t.qZA(),t.YNc(6,Np,2,0,"ng-template",null,4,t.W1O)),2&e){const n=t.MAs(7);t.xp6(1),t.hij(" ",t.lcZ(2,3,"MEMBER_DETAIL.BANS.TITLE"),"\n"),t.xp6(4),t.Q6J("perunWebAppsLoader",o.loading)("perunWebAppsLoaderIndicator",n)}},dependencies:[T.Ou,D.t,G.e5,Xt.s,_.X$]}),i})();var Zp=c(35265);const Dp=[{path:"",component:te.Y},{path:":voId",component:Fe,canActivateChild:[K.a],children:[{path:"",component:be,data:{animation:"VoOverviewPage"}},{path:"attributes",component:Gi,data:{animation:"VoAttributesPage"}},{path:"groups",component:ve.G,data:{animation:"VoGroupsPage"}},{path:"members",component:Ee.y,data:{animation:"VoMembersPage"}},{path:"resources",component:Li,children:[{path:"",component:Sa,data:{animation:"VoResourcesOverviewPage"}},{path:"preview",component:xa.z,data:{animation:"VoResourcesPreviewPage"}},{path:"states",component:Na.z,data:{animation:"VoResourcesStatesPage"}},{path:"tags",component:Ya,data:{animation:"VoResourcesTagsPage"}}]},{path:"applications",component:Ri.c,data:{animation:"VoApplicationsPage"}},{path:"applications/:applicationId",component:at,data:{animation:"VoApplicationDetailPage"}},{path:"sponsoredMembers",component:Dl.T,data:{animation:"VoSettingsSponsoredMembersPage"}},{path:"serviceAccounts",component:Vc,data:{animation:"VoSettingsServiceMembersPage"}},{path:"statistics",component:ql,data:{animation:"VoStatisticsPage"}},{path:"settings",component:wi,children:[{path:"",component:yi,data:{animation:"VoSettingsOverviewPage"}},{path:"expiration",component:to,data:{animation:"VoSettingsExpirationPage"}},{path:"managers",component:io,data:{animation:"VoSettingsManagersPage"}},{path:"applicationForm",component:sn.w,data:{animation:"SettingsApplicationFormPage"}},{path:"applicationForm/preview",component:wt,data:{animation:"SettingsApplicationFormPreviewPage"}},{path:"applicationForm/manageGroups",component:oc},{path:"notifications",component:or,data:{animation:"SettingsApplicationFormNotificationsPage"}},{path:"extsources",component:Or,data:{animation:"VoSettingsExtSourcesPage"}},{path:"memberOrganizations",component:ap,data:{animation:"VoSettingsMemberOrganizationsPage"}},{path:"hierarchicalInclusion",component:hp,data:{animation:"VoSettingsHierarchicalInclusionComponent"}},{path:"bans",component:Sp,data:{animation:"VoSettingsBansComponent"}}]}]},{path:":voId/members/:memberId",component:Ae,canActivateChild:[K.a],children:[{path:"",component:Si,data:{animation:"MemberOverviewPage"}},{path:"attributes",component:Ca,data:{animation:"MemberAttributesPage"}},{path:"groups",component:xi.j,data:{animation:"MemberGroupsPage"}},{path:"applications",component:tl,data:{animation:"MemberApplicationsPage"}},{path:"applications/:applicationId",component:at,data:{animation:"MemberApplicationDetailPage"}},{path:"resources",component:Il,data:{animation:"MemberResourcesPage"}},{path:"bans",component:Op,data:{animation:"MemberBansPage"}}]},{path:":voId/groups/:groupId",component:de,canActivateChild:[K.a],children:[{path:"",component:Di,data:{animation:"GroupOverviewPage"}},{path:"members",component:ko.y,data:{animation:"GroupMembersPage"}},{path:"subgroups",component:Mi.u,data:{animation:"GroupSubgroupsPage"}},{path:"applications",component:eo.W,data:{animation:"GroupApplicationsPage"}},{path:"resources",component:Qo.q,data:{animation:"GroupResourcesPage"}},{path:"attributes",component:en,data:{animation:"GroupAttributesPage"}},{path:"statistics",component:Bl,data:{animation:"GroupStatisticsPage"}},{path:"roles",component:fp.C,data:{animation:"GroupRolesPage"}},{path:"settings",component:Bo,children:[{path:"",component:an,data:{animation:"GroupSettingsOverviewPage"}},{path:"expiration",component:qa,data:{animation:"GroupSettingsExpirationPage"}},{path:"managers",component:ka,data:{animation:"GroupSettingsManagersPage"}},{path:"applicationForm",component:nr.Z,data:{animation:"GroupSettingsApplicationFormPage"}},{path:"applicationForm/preview",component:wt},{path:"notifications",component:_r,data:{animation:"GroupSettingsNotificationsPage"}},{path:"relations",component:jr,data:{animation:"GroupSettingsRelationsPage"}},{path:"extsources",component:Gl,data:{animation:"GroupSettingsExtsourcesPage"}}]},{path:"applications/:applicationId",component:at,data:{animation:"GroupApplicationDetailPage"}}]},{path:":voId/resources/:resourceId",component:bl.b,canActivateChild:[K.a],children:[{path:"",component:vl.H,data:{animation:"ResourceOverviewPage"}},{path:"groups",component:El.K,data:{animation:"ResourceGroupsComponent"}},{path:"services",component:Ol.D,data:{animation:"ResourceAssignedServicesComponent"}},{path:"attributes",component:xl.X,data:{animation:"ResourceAttributesPage"}},{path:"members",component:Zl.y,data:{animation:"ResourceAssignedMembersComponent"}},{path:"tags",component:nc.v,data:{animation:"ResourceTagsComponent"}},{path:"settings",component:Cl.t,children:[{path:"",component:Sl.h,data:{animation:"ResourceSettingsOverviewPage"}},{path:"managers",component:Nl.O,data:{animation:"ResourceSettingsManagersPage"}},{path:"bans",component:Zp.I,data:{animation:"ResourceSettingsBansPage"}}]}]}];let Mp=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[b.Bz.forChild(Dp),b.Bz]}),i})();var Lp=c(14264),Rp=c(63189),wp=c(85147),Gp=c(51525),Up=c(45256),ut=c(28255);let dt=(()=>{class i{transform(e){return e?.member?.sourceGroupId&&"DIRECT"===e?.member?.membershipType?"Member of Group":e?.member?.sourceGroupId&&"INDIRECT"===e?.member?.membershipType?"Indirect member of Group":e.member?"Member of VO":""}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=t.Yjl({name:"memberType",type:i,pure:!0}),i})();var Pp=c(86511);let _t=(()=>{class i{constructor(e){this.addMemberService=e}transform(e,o){return e.member?"vo"===this.addMemberService.getType()||e.member?.sourceGroupId&&"DIRECT"===e.member?.membershipType:o}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(Pp.A,16))},i.\u0275pipe=t.Yjl({name:"disabledCandidate",type:i,pure:!0}),i})();var yp=c(69773),Vp=c(9954);let Fp=(()=>{class i{transform(e){return e.member?"MEMBERS_CANDIDATES_LIST.ALREADY_MEMBER":"MEMBERS_CANDIDATES_LIST.ADDING_BLOCKED"}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=t.Yjl({name:"disabledCandidateTooltip",type:i,pure:!0}),i})();function Yp(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"th",19)(1,"mat-checkbox",20),t.NdJ("change",function(n){t.CHM(e);const s=t.oxw(2);return t.KtG(n?s.masterToggle():null)}),t.ALo(2,"translate"),t.ALo(3,"masterCheckboxLabel"),t.qZA()()}if(2&i){const e=t.oxw().ngIf,o=t.oxw();t.xp6(1),t.Q6J("aria-label",t.lcZ(2,3,t.lcZ(3,5,e.all)))("checked",o.selection.hasValue()&&e.all)("indeterminate",o.selection.hasValue()&&!e.all)}}const Jp=function(i){return{name:i}};function qp(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"td",21)(1,"div",22),t.ALo(2,"translate"),t.ALo(3,"disabledCandidateTooltip"),t.ALo(4,"disabledCandidate"),t.TgZ(5,"mat-checkbox",23),t.NdJ("change",function(n){const r=t.CHM(e).$implicit,d=t.oxw(2);return t.KtG(n?d.itemSelectionToggle(r):null)})("click",function(n){return n.stopPropagation()}),t.ALo(6,"translate"),t.ALo(7,"checkboxLabel"),t.ALo(8,"userFullName"),t.ALo(9,"disabledCandidate"),t.ALo(10,"lowercase"),t.ALo(11,"translate"),t.qZA()()()}if(2&i){const e=a.$implicit,o=t.oxw(2);let n;t.xp6(1),t.Q6J("matTooltip",t.lcZ(2,6,t.lcZ(3,8,e)))("matTooltipDisabled",!t.xi3(4,10,e,o.blockManualAdding)),t.xp6(4),t.Q2q("data-cy","",t.lcZ(10,23,t.lcZ(11,25,e.richUser?e.richUser.firstName:e.candidate.firstName)),"-checkbox"),t.Q6J("aria-label",t.xi3(6,13,t.lcZ(7,16,o.selection.isSelected(e)),t.VKq(27,Jp,t.lcZ(8,18,null!==(n=e.richUser)&&void 0!==n?n:e.candidate))))("checked",o.selection.isSelected(e))("disabled",t.xi3(9,20,e,o.blockManualAdding))}}function kp(i,a){1&i&&(t.ynx(0,16),t.YNc(1,Yp,4,7,"th",17),t.YNc(2,qp,12,29,"td",18),t.BQk())}function Qp(i,a){1&i&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBERS_CANDIDATES_LIST.STATUS")," "))}function Bp(i,a){if(1&i&&(t.TgZ(0,"i",27),t.ALo(1,"memberStatusIconColor"),t._uU(2),t.ALo(3,"memberStatusIcon"),t.qZA()),2&i){const e=t.oxw().$implicit;t.Gre("material-icons ",t.lcZ(1,5,e.member),""),t.s9C("matTooltip",e.member.status),t.xp6(2),t.hij(" ",t.lcZ(3,7,e.member.status)," ")}}function Hp(i,a){if(1&i&&(t.TgZ(0,"td",25),t.YNc(1,Bp,4,9,"i",26),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Q6J("ngIf",e.member)}}function jp(i,a){1&i&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBERS_CANDIDATES_LIST.NAME")," "))}function zp(i,a){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.ALo(2,"userFullName"),t.ALo(3,"userFullName"),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.hij(" ",e.richUser?t.lcZ(2,1,e.richUser):t.lcZ(3,3,e.candidate)," ")}}function $p(i,a){1&i&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBERS_CANDIDATES_LIST.ORGANIZATION")," "))}function Xp(i,a){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.ALo(2,"userVo"),t.qZA()),2&i){const e=a.$implicit,o=t.oxw();t.xp6(1),t.hij(" ",e.richUser?t.lcZ(2,1,e.richUser):o.getOrganization(e.candidate)," ")}}function Kp(i,a){1&i&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBERS_CANDIDATES_LIST.EMAIL")," "))}function Wp(i,a){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&i){const e=a.$implicit,o=t.oxw();t.xp6(1),t.hij(" ",o.getEmail(e)," ")}}function tu(i,a){1&i&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBERS_CANDIDATES_LIST.LOGINS")," "))}function eu(i,a){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&i){const e=a.$implicit,o=t.oxw();t.xp6(1),t.hij(" ",o.getLogins(e)," ")}}function iu(i,a){1&i&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBERS_CANDIDATES_LIST.ALREADY_MEMBER")," "))}function ou(i,a){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.ALo(2,"memberType"),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,e)," ")}}function nu(i,a){1&i&&t._UZ(0,"th",24)}function au(i,a){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.hij(" ",e.richUser?"Local":"External identity"," ")}}function su(i,a){1&i&&t._UZ(0,"tr",28)}function ru(i,a){1&i&&t._UZ(0,"tr",29)}function lu(i,a){1&i&&(t.TgZ(0,"perun-web-apps-alert",30),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_MEMBERS.NO_USERS_FOUND"),"\n"))}const cu=function(i){return{all:i}};let pu=(()=>{class i{constructor(e,o,n){this.memberTypePipe=e,this.disabledCandidatePipe=o,this.tableCheckbox=n,this.blockManualAdding=!1,this.displayedColumns=["checkbox","status","fullName","voExtSource","email","logins","alreadyMember","local"],this.pageSizeOptions=g.f7,this.canBeSelected=s=>!this.disabledCandidatePipe.transform(s,this.blockManualAdding),this.getDataForColumnFun=(s,r)=>this.getDataForColumn(s,r),this.getExportDataForColumnFun=(s,r)=>this.getExportDataForColumn(s,r)}set matSort(e){this.sort=e,this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}ngOnChanges(){this.dataSource=new l.by(this.members),this.setDataSource()}getDataForColumn(e,o){switch(o){case"status":return e.member?e.member.status??"":"";case"fullName":{const n=e.richUser?e.richUser:e.candidate;return n.lastName?n.lastName:n.firstName??""}case"voExtSource":return e.richUser?(0,g.OV)(e.richUser):(0,g.v$)(e.candidate);case"email":return e.richUser||e.member?(0,g.kN)(e.richUser):this.getEmail(e);case"logins":return this.getLogins(e);case"alreadyMember":return this.memberTypePipe.transform(e);case"local":return e.richUser?"Local":"External identity";default:return e[o]}}getExportDataForColumn(e,o){switch(o){case"status":return e.member?e.member.status??"":"";case"fullName":return(0,g.bD)(e.richUser?e.richUser:e.candidate);case"voExtSource":return e.richUser?(0,g.OV)(e.richUser):(0,g.v$)(e.candidate);case"email":return e.richUser||e.member?(0,g.kN)(e.richUser):this.getEmail(e);case"logins":return this.getLogins(e);case"alreadyMember":return this.memberTypePipe.transform(e);case"local":return e.richUser?"Local":"External identity";default:return e[o]}}exportAllData(e){(0,g.O6)((0,g.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getExportDataForColumnFun),e)}exportDisplayedData(e){const o=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,n=o+this.dataSource.paginator.pageSize;(0,g.O6)((0,g.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(o,n),this.displayedColumns,this.getExportDataForColumnFun),e)}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.filterPredicate=(e,o)=>(0,g.Sd)(e,o,this.displayedColumns,this.getDataForColumnFun),this.dataSource.sortData=(e,o)=>(0,g.pR)(e,o,this.getDataForColumnFun),this.dataSource.paginator=this.child.paginator)}getEmail(e){let o;if(e.richUser){for(const n of e.richUser.userAttributes)if(n.namespace+":"+n.friendlyName=="urn:perun:user:attribute-def:def:preferredMail"){o=n;break}return null!=o?.value?o.value.replace(","," "):""}return(0,g.Jc)(e.candidate)}getOrganization(e){return(0,g.v$)(e)}getLogins(e){if(e.richUser)return this.getLoginsForRichUser(e.richUser);{let o=this.getLoginsForCandidate(e.candidate);return(null==o||""===o)&&(o=e.candidate.userExtSource.login),o}}getLoginsForRichUser(e){let o="";for(const n of e.userAttributes)n.friendlyName.startsWith("login-namespace")&&null!=n.value&&(o.length>0&&(o+=", "),o+=n.friendlyName.substring(16)+": "+n.value);return o}getLoginsForCandidate(e){let n="";for(const s in e.attributes)Object.prototype.hasOwnProperty.call(e.attributes,s)&&s.includes("urn:perun:user:attribute-def:def:login-namespace:")&&null!=e.attributes[s]&&(n.length>0&&(n+=", "),n+=s.substring(49)+": "+e.attributes[s]);return n}itemSelectionToggle(e){this.selection.toggle(e)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource,this.canBeSelected)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,"",this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!0,this.canBeSelected)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(dt),t.Y36(_t),t.Y36(p.UA))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-members-candidates-list"]],viewQuery:function(e,o){if(1&e&&(t.Gf(g.l9,7),t.Gf(k.YE,7)),2&e){let n;t.iGM(n=t.CRH())&&(o.child=n.first),t.iGM(n=t.CRH())&&(o.matSort=n.first)}},inputs:{members:"members",selection:"selection",tableId:"tableId",blockManualAdding:"blockManualAdding"},features:[t._Bn([dt,_t]),t.TTD],decls:29,vars:15,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","fullName","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox",4,"ngIf"],["matColumnDef","status"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","fullName"],["matColumnDef","voExtSource"],["matColumnDef","email"],["matColumnDef","logins"],["matColumnDef","alreadyMember"],["matColumnDef","local"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","checkbox"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["matTooltipPosition","left",3,"class","matTooltip",4,"ngIf"],["matTooltipPosition","left",3,"matTooltip"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportDisplayedData",function(s){return o.exportDisplayedData(s)})("exportAllData",function(s){return o.exportAllData(s)}),t.TgZ(2,"table",2),t.YNc(3,kp,3,0,"ng-container",3),t.ALo(4,"isAllSelected"),t.ynx(5,4),t.YNc(6,Qp,3,3,"th",5),t.YNc(7,Hp,2,1,"td",6),t.BQk(),t.ynx(8,7),t.YNc(9,jp,3,3,"th",5),t.YNc(10,zp,4,5,"td",6),t.BQk(),t.ynx(11,8),t.YNc(12,$p,3,3,"th",5),t.YNc(13,Xp,3,3,"td",6),t.BQk(),t.ynx(14,9),t.YNc(15,Kp,3,3,"th",5),t.YNc(16,Wp,2,1,"td",6),t.BQk(),t.ynx(17,10),t.YNc(18,tu,3,3,"th",5),t.YNc(19,eu,2,1,"td",6),t.BQk(),t.ynx(20,11),t.YNc(21,iu,3,3,"th",5),t.YNc(22,ou,3,3,"td",6),t.BQk(),t.ynx(23,12),t.YNc(24,nu,1,0,"th",5),t.YNc(25,au,2,1,"td",6),t.BQk(),t.YNc(26,su,1,0,"tr",13),t.YNc(27,ru,1,0,"tr",14),t.qZA()()(),t.YNc(28,lu,3,3,"perun-web-apps-alert",15)),2&e&&(t.Q6J("hidden",0===o.members.length),t.xp6(1),t.Q6J("tableId",o.tableId)("dataLength",o.dataSource.filteredData.length)("pageSizeOptions",o.pageSizeOptions),t.xp6(1),t.Q6J("dataSource",o.dataSource),t.xp6(1),t.Q6J("ngIf",t.VKq(13,cu,t.Dn7(4,9,o.dataSource,o.selection.selected.length,o.canBeSelected))),t.xp6(23),t.Q6J("matHeaderRowDef",o.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",o.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===o.members.length))},dependencies:[m.O5,k.YE,k.nU,l.BZ,l.fO,l.as,l.w1,l.Dz,l.nj,l.ge,l.ev,l.XQ,l.Gk,H.oG,N.gM,M.w,yt.l,m.i8,_.X$,Q.d,yp.u,St.f,Vp.Z,Fp,Vt.I,Ft.G,Yt.r,dt,_t]}),i})();function uu(i,a){1&i&&t._UZ(0,"mat-spinner",14)}function du(i,a){if(1&i&&(t.TgZ(0,"div",15),t._UZ(1,"app-members-candidates-list",16),t.qZA()),2&i){const e=t.oxw(2);t.xp6(1),t.Q6J("tableId",e.tableId)("members",e.members)("selection",e.selection)("blockManualAdding",e.manualAddingBlocked)}}function _u(i,a){if(1&i&&(t.TgZ(0,"button",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i){t.oxw();const e=t.MAs(16),o=t.oxw();t.Q6J("disabled",0===o.selection.selected.length||!o.inviteAuth)("matMenuTriggerFor",e),t.xp6(1),t.hij(" ",t.lcZ(2,3,"DIALOGS.ADD_MEMBERS.INVITE")," ")}}function mu(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",18),t.NdJ("click",function(){const s=t.CHM(e).$implicit,r=t.oxw(2);return t.KtG(r.invite.emit(s))}),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.ALo(4,"uppercase"),t.ALo(5,"translate"),t.qZA()}if(2&i){const e=a.$implicit;t.xp6(1),t.lnq(" ",t.lcZ(2,3,"DIALOGS.ADD_MEMBERS.INVITE_IN_LANGUAGE")," ",t.lcZ(3,5,t.lcZ(4,7,"SHARED_LIB.LANGUAGES."+e))," ",t.lcZ(5,9,"DIALOGS.ADD_MEMBERS.LANGUAGE")," ")}}function gu(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div")(1,"div",2)(2,"perun-web-apps-debounce-filter",3),t.NdJ("filter",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.search.emit(n))}),t.ALo(3,"translate"),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"div",4),t.YNc(6,uu,1,0,"mat-spinner",5),t.qZA(),t.YNc(7,du,2,4,"div",6),t.qZA(),t.TgZ(8,"div",7)(9,"button",8),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.cancel.emit(!1))}),t._uU(10),t.ALo(11,"translate"),t.qZA(),t.TgZ(12,"span",9),t.ALo(13,"translate"),t.YNc(14,_u,3,5,"button",10),t.TgZ(15,"mat-menu",null,11),t.YNc(17,mu,6,11,"button",12),t.qZA()(),t.TgZ(18,"span",9),t.ALo(19,"translate"),t.TgZ(20,"button",13),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.add.emit())}),t._uU(21),t.ALo(22,"translate"),t.qZA()()()()}if(2&i){const e=t.oxw();t.xp6(2),t.s9C("error",t.lcZ(3,15,"DIALOGS.ADD_MEMBERS.EMPTY_SEARCH_MESSAGE")),t.s9C("placeholder",t.lcZ(4,17,"DIALOGS.ADD_MEMBERS.DESCRIPTION")),t.Q6J("autoFocus",!0)("control",e.searchCtrl),t.xp6(4),t.Q6J("ngIf",null===e.members||e.loading),t.xp6(1),t.Q6J("ngIf",!!e.members&&!e.loading),t.xp6(3),t.hij(" ",t.lcZ(11,19,"DIALOGS.ADD_MEMBERS.CANCEL")," "),t.xp6(2),t.s9C("matTooltip",t.lcZ(13,21,"DIALOGS.ADD_MEMBERS.ADD_MEMBER_PERMISSION_TOOLTIP")),t.Q6J("matTooltipDisabled",0===e.selection.selected.length||e.inviteAuth),t.xp6(2),t.Q6J("ngIf",e.inviteAuth),t.xp6(3),t.Q6J("ngForOf",e.languages),t.xp6(1),t.s9C("matTooltip",t.lcZ(19,23,"DIALOGS.ADD_MEMBERS.ADD_MEMBER_PERMISSION_TOOLTIP")),t.Q6J("matTooltipDisabled",0===e.selection.selected.length||e.addAuth),t.xp6(2),t.Q6J("disabled",0===e.selection.selected.length||!e.addAuth),t.xp6(1),t.hij(" ",t.lcZ(22,25,"DIALOGS.ADD_MEMBERS.CREATE")," ")}}function hu(i,a){1&i&&t._UZ(0,"mat-spinner",14)}function fu(i,a){1&i&&(t.TgZ(0,"th",29),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_MEMBERS.NAME_COLUMN")," "))}function Au(i,a){if(1&i&&(t.TgZ(0,"td",30),t._uU(1),t.ALo(2,"userFullName"),t.qZA()),2&i){const e=a.$implicit;let o;t.xp6(1),t.hij(" ",t.lcZ(2,1,null!==(o=e.candidate.candidate)&&void 0!==o?o:e.candidate.richUser)," ")}}function Tu(i,a){1&i&&(t.TgZ(0,"th",29),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_MEMBERS.ERROR_COLUMN")," "))}function Iu(i,a){if(1&i&&(t.TgZ(0,"td",30),t._uU(1),t.TgZ(2,"div",31),t._uU(3),t.qZA()()),2&i){const e=a.$implicit;t.xp6(1),t.hij(" ",e.errorMsg," "),t.xp6(2),t.hij(" ",e.errorName," ")}}function bu(i,a){1&i&&t._UZ(0,"tr",32)}function vu(i,a){1&i&&t._UZ(0,"tr",33)}const Kt=function(){return["userName","error"]};function Eu(i,a){if(1&i&&(t.TgZ(0,"div",2)(1,"perun-web-apps-alert",21),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"table",22),t.ynx(5,23),t.YNc(6,fu,3,3,"th",24),t.YNc(7,Au,3,3,"td",25),t.BQk(),t.ynx(8,26),t.YNc(9,Tu,3,3,"th",24),t.YNc(10,Iu,4,2,"td",25),t.BQk(),t.YNc(11,bu,1,0,"tr",27),t.YNc(12,vu,1,0,"tr",28),t.qZA()()),2&i){const e=t.oxw(2);t.xp6(1),t.Q6J("alert_type","error"),t.xp6(1),t.Oqu(t.lcZ(3,5,"DIALOGS.ADD_MEMBERS.FAILED_DESC")),t.xp6(2),t.Q6J("dataSource",e.failedCandidateDataSource),t.xp6(7),t.Q6J("matHeaderRowDef",t.DdM(7,Kt)),t.xp6(1),t.Q6J("matRowDefColumns",t.DdM(8,Kt))}}function Cu(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",7)(1,"button",8),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.cancel.emit(!0))}),t._uU(2),t.ALo(3,"translate"),t.qZA()()}2&i&&(t.xp6(2),t.hij(" ",t.lcZ(3,1,"DIALOGS.ADD_MEMBERS.CLOSE")," "))}function Su(i,a){if(1&i&&(t.TgZ(0,"div"),t.YNc(1,hu,1,0,"mat-spinner",5),t.YNc(2,Eu,13,9,"div",19),t.YNc(3,Cu,4,3,"div",20),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading)}}let Wt=(()=>{class i{constructor(){this.loading=!1,this.manualAddingBlocked=!1,this.inviteAuth=!0,this.addAuth=!0,this.members=[],this.selection=new E.Ov(!0,[]),this.add=new t.vpe,this.cancel=new t.vpe,this.search=new t.vpe,this.invite=new t.vpe,this.tableId=C.tY,this.searchCtrl=new f.p4("",[f.kI.required,f.kI.pattern(".*[\\S]+.*")])}ngOnInit(){this.failedCandidateDataSource=new l.by(this.failed)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-add-member-dialog"]],inputs:{loading:"loading",theme:"theme",languages:"languages",manualAddingBlocked:"manualAddingBlocked",inviteAuth:"inviteAuth",addAuth:"addAuth",members:"members",failed:"failed",selection:"selection"},outputs:{add:"add",cancel:"cancel",search:"search",invite:"invite"},decls:6,vars:8,consts:[["mat-dialog-title",""],[4,"ngIf"],["mat-dialog-content",""],["data-cy","search-members",3,"error","placeholder","autoFocus","control","filter"],[1,"no-bounce-scrollbar"],["class","mr-auto ml-auto",4,"ngIf"],["class","mt-3",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["class","ml-2 dropdown-toggle","color","accent","mat-flat-button","",3,"disabled","matMenuTriggerFor",4,"ngIf"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-flat-button","","color","accent","data-cy","add-button",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],[1,"mt-3"],[3,"tableId","members","selection","blockManualAdding"],["color","accent","mat-flat-button","",1,"ml-2","dropdown-toggle",3,"disabled","matMenuTriggerFor"],["mat-menu-item","",3,"click"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"mb-2",3,"alert_type"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","userName"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","error"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],[1,"text-muted"],["mat-header-row",""],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,gu,23,27,"div",1),t.YNc(5,Su,4,3,"div",1),t.qZA()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,6,"DIALOGS.ADD_MEMBERS.TITLE")),t.xp6(2),t.Q6J("ngIf",0===o.failed.length),t.xp6(1),t.Q6J("ngIf",0!==o.failed.length))},dependencies:[m.sg,m.O5,I.lW,l.BZ,l.fO,l.as,l.w1,l.Dz,l.nj,l.ge,l.ev,l.XQ,l.Gk,u.uh,u.xY,u.H8,T.Ou,N.gM,ut.VK,ut.OP,ut.p6,M.w,z.P,pu,m.gd,_.X$,Q.d],styles:[".adjust-width[_ngcontent-%COMP%]{width:270px}.no-bounce-scrollbar[_ngcontent-%COMP%]{overflow:hidden}.error-row[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap;width:100%;padding:1em 0}.error-column[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;width:50%}.divider[_ngcontent-%COMP%]{border-bottom:1px solid rgba(0,0,0,.12)}"]}),i})(),xu=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[m.ez,Mp,Lp.m,Rp.r,wp.ez,pt.d4,g.Je]}),i})();t.B6R(Gp.H,[Wt],[m.Ov]),t.B6R(Up.k,[Wt],[m.Ov])}}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/705.365601fe31be80ca.js b/dist/apps/admin-gui/705.365601fe31be80ca.js new file mode 100644 index 000000000..b10dbc9c5 --- /dev/null +++ b/dist/apps/admin-gui/705.365601fe31be80ca.js @@ -0,0 +1 @@ +(self.webpackChunkadmin_gui=self.webpackChunkadmin_gui||[]).push([[705],{89397:function(w,D){!function(s){"use strict";function c(Y,nt){return nt.forEach(function(rt){rt&&"string"!=typeof rt&&!Array.isArray(rt)&&Object.keys(rt).forEach(function(q){if("default"!==q&&!(q in Y)){var F=Object.getOwnPropertyDescriptor(rt,q);Object.defineProperty(Y,q,F.get?F:{enumerable:!0,get:function(){return rt[q]}})}})}),Object.freeze(Y)}var q,rt,x={exports:{}};q=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0,rt=function(F){var ut,ft,E=typeof(F=F||{})<"u"?F:{};E.ready=new Promise(function(b,k){ut=b,ft=k});var St,Dt={};for(St in E)E.hasOwnProperty(St)&&(Dt[St]=E[St]);var Nt,zt,Qt="./this.program",wt="";typeof document<"u"&&document.currentScript&&(wt=document.currentScript.src),q&&(wt=q),wt=0!==wt.indexOf("blob:")?wt.substr(0,wt.replace(/[?#].*/,"").lastIndexOf("/")+1):"",Nt=function(b){var k=new XMLHttpRequest;return k.open("GET",b,!1),k.send(null),k.responseText},zt=function(b,k,V){var it=new XMLHttpRequest;it.open("GET",b,!0),it.responseType="arraybuffer",it.onload=function(){200==it.status||0==it.status&&it.response?k(it.response):V()},it.onerror=V,it.send(null)};var te,ie=E.print||console.log.bind(console),Ot=E.printErr||console.warn.bind(console);for(St in Dt)Dt.hasOwnProperty(St)&&(E[St]=Dt[St]);Dt=null,E.thisProgram&&(Qt=E.thisProgram),E.wasmBinary&&(te=E.wasmBinary),"object"!=typeof WebAssembly&&_i("no native wasm support detected");var jt,se=!1;function At(b,k){b||_i("Assertion failed: "+k)}var He,Ge,an,be,ln,Ht=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function Zt(b,k,V){for(var it=k+V,ht=k;b[ht]&&!(ht>=it);)++ht;if(ht-k>16&&b.subarray&&Ht)return Ht.decode(b.subarray(k,ht));for(var xt="";k>10,56320|1023&Ae)}}else xt+=String.fromCharCode((31&Mt)<<6|Bt)}else xt+=String.fromCharCode(Mt)}return xt}function Kt(b,k){return b?Zt(an,b,k):""}function xe(b,k,V,it){if(!(it>0))return 0;for(var ht=V,xt=V+it-1,Mt=0;Mt=55296&&Bt<=57343&&(Bt=65536+((1023&Bt)<<10)|1023&b.charCodeAt(++Mt)),Bt<=127){if(V>=xt)break;k[V++]=Bt}else if(Bt<=2047){if(V+1>=xt)break;k[V++]=192|Bt>>6,k[V++]=128|63&Bt}else if(Bt<=65535){if(V+2>=xt)break;k[V++]=224|Bt>>12,k[V++]=128|Bt>>6&63,k[V++]=128|63&Bt}else{if(V+3>=xt)break;k[V++]=240|Bt>>18,k[V++]=128|Bt>>12&63,k[V++]=128|Bt>>6&63,k[V++]=128|63&Bt}}return k[V]=0,V-ht}function Le(b){for(var k=0,V=0;V=55296&&it<=57343&&(it=65536+((1023&it)<<10)|1023&b.charCodeAt(++V)),it<=127?++k:k+=it<=2047?2:it<=65535?3:4}return k}function Ee(b,k){return b%k>0&&(b+=k-b%k),b}function Tt(b){He=b,E.HEAP8=Ge=new Int8Array(b),E.HEAP16=new Int16Array(b),E.HEAP32=be=new Int32Array(b),E.HEAPU8=an=new Uint8Array(b),E.HEAPU16=new Uint16Array(b),E.HEAPU32=new Uint32Array(b),E.HEAPF32=new Float32Array(b),E.HEAPF64=ln=new Float64Array(b)}var Wt,ce=[],_e=[],ee=[];var gi=0,Si=null;function Fi(b){gi++,E.monitorRunDependencies&&E.monitorRunDependencies(gi)}function Ni(b){if(gi--,E.monitorRunDependencies&&E.monitorRunDependencies(gi),0==gi&&Si){var k=Si;Si=null,k()}}function _i(b){E.onAbort&&E.onAbort(b),Ot(b="Aborted("+b+")"),se=!0,b+=". Build with -s ASSERTIONS=1 for more info.";var k=new WebAssembly.RuntimeError(b);throw ft(k),k}E.preloadedImages={},E.preloadedAudios={};var fe;function Ri(b){return b.startsWith("data:application/octet-stream;base64,")}function Sn(b){try{if(b==fe&&te)return new Uint8Array(te);throw"both async and sync fetching of the wasm failed"}catch(k){_i(k)}}Ri(fe="expatlib.wasm")||(fe=function yt(b){return E.locateFile?E.locateFile(b,wt):wt+b}(fe));var gn,sn,zn={11694:function(b){var k=E.getCache(E.CExpatJS)[b];if(!k.hasOwnProperty("startElement"))throw"a JSImplementation must implement all functions, you forgot CExpatJS::startElement.";k.startElement()},11912:function(b){var k=E.getCache(E.CExpatJS)[b];if(!k.hasOwnProperty("endElement"))throw"a JSImplementation must implement all functions, you forgot CExpatJS::endElement.";k.endElement()},12124:function(b){var k=E.getCache(E.CExpatJS)[b];if(!k.hasOwnProperty("characterData"))throw"a JSImplementation must implement all functions, you forgot CExpatJS::characterData.";k.characterData()}};function li(b){for(;b.length>0;){var k=b.shift();if("function"!=typeof k){var V=k.func;"number"==typeof V?void 0===k.arg?Ln(V)():Ln(V)(k.arg):V(void 0===k.arg?null:k.arg)}else k(E)}}function Ln(b){return Wt.get(b)}var we={splitPath:function(b){return/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(b).slice(1)},normalizeArray:function(b,k){for(var V=0,it=b.length-1;it>=0;it--){var ht=b[it];"."===ht?b.splice(it,1):".."===ht?(b.splice(it,1),V++):V&&(b.splice(it,1),V--)}if(k)for(;V;V--)b.unshift("..");return b},normalize:function(b){var k="/"===b.charAt(0),V="/"===b.substr(-1);return!(b=we.normalizeArray(b.split("/").filter(function(it){return!!it}),!k).join("/"))&&!k&&(b="."),b&&V&&(b+="/"),(k?"/":"")+b},dirname:function(b){var k=we.splitPath(b),V=k[0],it=k[1];return V||it?(it&&(it=it.substr(0,it.length-1)),V+it):"."},basename:function(b){if("/"===b)return"/";var k=(b=(b=we.normalize(b)).replace(/\/$/,"")).lastIndexOf("/");return-1===k?b:b.substr(k+1)},extname:function(b){return we.splitPath(b)[3]},join:function(){var b=Array.prototype.slice.call(arguments,0);return we.normalize(b.join("/"))},join2:function(b,k){return we.normalize(b+"/"+k)}};var Nn={resolve:function(){for(var b="",k=!1,V=arguments.length-1;V>=-1&&!k;V--){var it=V>=0?arguments[V]:A.cwd();if("string"!=typeof it)throw new TypeError("Arguments to path.resolve must be strings");if(!it)return"";b=it+"/"+b,k="/"===it.charAt(0)}return(k?"/":"")+(b=we.normalizeArray(b.split("/").filter(function(ht){return!!ht}),!k).join("/"))||"."},relative:function(b,k){function V(Ae){for(var We=0;We=0&&""===Ae[qe];qe--);return We>qe?[]:Ae.slice(We,qe-We+1)}b=Nn.resolve(b).substr(1),k=Nn.resolve(k).substr(1);for(var it=V(b.split("/")),ht=V(k.split("/")),xt=Math.min(it.length,ht.length),Mt=xt,Bt=0;Bt0&&(ie(Zt(b.output,0)),b.output=[])}},default_tty1_ops:{put_char:function(b,k){null===k||10===k?(Ot(Zt(b.output,0)),b.output=[]):0!=k&&b.output.push(k)},flush:function(b){b.output&&b.output.length>0&&(Ot(Zt(b.output,0)),b.output=[])}}};var X={ops_table:null,mount:function(b){return X.createNode(null,"/",16895,0)},createNode:function(b,k,V,it){if(A.isBlkdev(V)||A.isFIFO(V))throw new A.ErrnoError(63);X.ops_table||(X.ops_table={dir:{node:{getattr:X.node_ops.getattr,setattr:X.node_ops.setattr,lookup:X.node_ops.lookup,mknod:X.node_ops.mknod,rename:X.node_ops.rename,unlink:X.node_ops.unlink,rmdir:X.node_ops.rmdir,readdir:X.node_ops.readdir,symlink:X.node_ops.symlink},stream:{llseek:X.stream_ops.llseek}},file:{node:{getattr:X.node_ops.getattr,setattr:X.node_ops.setattr},stream:{llseek:X.stream_ops.llseek,read:X.stream_ops.read,write:X.stream_ops.write,allocate:X.stream_ops.allocate,mmap:X.stream_ops.mmap,msync:X.stream_ops.msync}},link:{node:{getattr:X.node_ops.getattr,setattr:X.node_ops.setattr,readlink:X.node_ops.readlink},stream:{}},chrdev:{node:{getattr:X.node_ops.getattr,setattr:X.node_ops.setattr},stream:A.chrdev_stream_ops}});var ht=A.createNode(b,k,V,it);return A.isDir(ht.mode)?(ht.node_ops=X.ops_table.dir.node,ht.stream_ops=X.ops_table.dir.stream,ht.contents={}):A.isFile(ht.mode)?(ht.node_ops=X.ops_table.file.node,ht.stream_ops=X.ops_table.file.stream,ht.usedBytes=0,ht.contents=null):A.isLink(ht.mode)?(ht.node_ops=X.ops_table.link.node,ht.stream_ops=X.ops_table.link.stream):A.isChrdev(ht.mode)&&(ht.node_ops=X.ops_table.chrdev.node,ht.stream_ops=X.ops_table.chrdev.stream),ht.timestamp=Date.now(),b&&(b.contents[k]=ht,b.timestamp=ht.timestamp),ht},getFileDataAsTypedArray:function(b){return b.contents?b.contents.subarray?b.contents.subarray(0,b.usedBytes):new Uint8Array(b.contents):new Uint8Array(0)},expandFileStorage:function(b,k){var V=b.contents?b.contents.length:0;if(!(V>=k)){k=Math.max(k,V*(V<1048576?2:1.125)>>>0),0!=V&&(k=Math.max(k,256));var ht=b.contents;b.contents=new Uint8Array(k),b.usedBytes>0&&b.contents.set(ht.subarray(0,b.usedBytes),0)}},resizeFileStorage:function(b,k){if(b.usedBytes!=k)if(0==k)b.contents=null,b.usedBytes=0;else{var V=b.contents;b.contents=new Uint8Array(k),V&&b.contents.set(V.subarray(0,Math.min(k,b.usedBytes))),b.usedBytes=k}},node_ops:{getattr:function(b){var k={};return k.dev=A.isChrdev(b.mode)?b.id:1,k.ino=b.id,k.mode=b.mode,k.nlink=1,k.uid=0,k.gid=0,k.rdev=b.rdev,k.size=A.isDir(b.mode)?4096:A.isFile(b.mode)?b.usedBytes:A.isLink(b.mode)?b.link.length:0,k.atime=new Date(b.timestamp),k.mtime=new Date(b.timestamp),k.ctime=new Date(b.timestamp),k.blksize=4096,k.blocks=Math.ceil(k.size/k.blksize),k},setattr:function(b,k){void 0!==k.mode&&(b.mode=k.mode),void 0!==k.timestamp&&(b.timestamp=k.timestamp),void 0!==k.size&&X.resizeFileStorage(b,k.size)},lookup:function(b,k){throw A.genericErrors[44]},mknod:function(b,k,V,it){return X.createNode(b,k,V,it)},rename:function(b,k,V){if(A.isDir(b.mode)){var it;try{it=A.lookupNode(k,V)}catch{}if(it)for(var ht in it.contents)throw new A.ErrnoError(55)}delete b.parent.contents[b.name],b.parent.timestamp=Date.now(),b.name=V,k.contents[V]=b,k.timestamp=b.parent.timestamp,b.parent=k},unlink:function(b,k){delete b.contents[k],b.timestamp=Date.now()},rmdir:function(b,k){var V=A.lookupNode(b,k);for(var it in V.contents)throw new A.ErrnoError(55);delete b.contents[k],b.timestamp=Date.now()},readdir:function(b){var k=[".",".."];for(var V in b.contents)!b.contents.hasOwnProperty(V)||k.push(V);return k},symlink:function(b,k,V){var it=X.createNode(b,k,41471,0);return it.link=V,it},readlink:function(b){if(!A.isLink(b.mode))throw new A.ErrnoError(28);return b.link}},stream_ops:{read:function(b,k,V,it,ht){var xt=b.node.contents;if(ht>=b.node.usedBytes)return 0;var Mt=Math.min(b.node.usedBytes-ht,it);if(Mt>8&&xt.subarray)k.set(xt.subarray(ht,ht+Mt),V);else for(var Bt=0;Bt0||it+V8)throw new A.ErrnoError(32);for(var ht=we.normalizeArray(b.split("/").filter(function(Ie){return!!Ie}),!1),xt=A.root,Mt="/",Bt=0;Bt40)throw new A.ErrnoError(32)}}return{path:Mt,node:xt}},getPath:function(b){for(var k;;){if(A.isRoot(b)){var V=b.mount.mountpoint;return k?"/"!==V[V.length-1]?V+"/"+k:V+k:V}k=k?b.name+"/"+k:b.name,b=b.parent}},hashName:function(b,k){for(var V=0,it=0;it>>0)%A.nameTable.length},hashAddNode:function(b){var k=A.hashName(b.parent.id,b.name);b.name_next=A.nameTable[k],A.nameTable[k]=b},hashRemoveNode:function(b){var k=A.hashName(b.parent.id,b.name);if(A.nameTable[k]===b)A.nameTable[k]=b.name_next;else for(var V=A.nameTable[k];V;){if(V.name_next===b){V.name_next=b.name_next;break}V=V.name_next}},lookupNode:function(b,k){var V=A.mayLookup(b);if(V)throw new A.ErrnoError(V,b);for(var it=A.hashName(b.id,k),ht=A.nameTable[it];ht;ht=ht.name_next)if(ht.parent.id===b.id&&ht.name===k)return ht;return A.lookup(b,k)},createNode:function(b,k,V,it){var ht=new A.FSNode(b,k,V,it);return A.hashAddNode(ht),ht},destroyNode:function(b){A.hashRemoveNode(b)},isRoot:function(b){return b===b.parent},isMountpoint:function(b){return!!b.mounted},isFile:function(b){return 32768==(61440&b)},isDir:function(b){return 16384==(61440&b)},isLink:function(b){return 40960==(61440&b)},isChrdev:function(b){return 8192==(61440&b)},isBlkdev:function(b){return 24576==(61440&b)},isFIFO:function(b){return 4096==(61440&b)},isSocket:function(b){return 49152==(49152&b)},flagModes:{r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090},modeStringToFlags:function(b){var k=A.flagModes[b];if(typeof k>"u")throw new Error("Unknown file open mode: "+b);return k},flagsToPermissionString:function(b){var k=["r","w","rw"][3&b];return 512&b&&(k+="w"),k},nodePermissions:function(b,k){return A.ignorePermissions?0:k.includes("r")&&!(292&b.mode)||k.includes("w")&&!(146&b.mode)||k.includes("x")&&!(73&b.mode)?2:0},mayLookup:function(b){return A.nodePermissions(b,"x")||(b.node_ops.lookup?0:2)},mayCreate:function(b,k){try{return A.lookupNode(b,k),20}catch{}return A.nodePermissions(b,"wx")},mayDelete:function(b,k,V){var it;try{it=A.lookupNode(b,k)}catch(xt){return xt.errno}var ht=A.nodePermissions(b,"wx");if(ht)return ht;if(V){if(!A.isDir(it.mode))return 54;if(A.isRoot(it)||A.getPath(it)===A.cwd())return 10}else if(A.isDir(it.mode))return 31;return 0},mayOpen:function(b,k){return b?A.isLink(b.mode)?32:A.isDir(b.mode)&&("r"!==A.flagsToPermissionString(k)||512&k)?31:A.nodePermissions(b,A.flagsToPermissionString(k)):44},MAX_OPEN_FDS:4096,nextfd:function(b,k){k=k||A.MAX_OPEN_FDS;for(var V=b=b||0;V<=k;V++)if(!A.streams[V])return V;throw new A.ErrnoError(33)},getStream:function(b){return A.streams[b]},createStream:function(b,k,V){A.FSStream||(A.FSStream=function(){},A.FSStream.prototype={object:{get:function(){return this.node},set:function(Mt){this.node=Mt}},isRead:{get:function(){return 1!=(2097155&this.flags)}},isWrite:{get:function(){return 0!=(2097155&this.flags)}},isAppend:{get:function(){return 1024&this.flags}}});var it=new A.FSStream;for(var ht in b)it[ht]=b[ht];b=it;var xt=A.nextfd(k,V);return b.fd=xt,A.streams[xt]=b,b},closeStream:function(b){A.streams[b]=null},chrdev_stream_ops:{open:function(b){var k=A.getDevice(b.node.rdev);b.stream_ops=k.stream_ops,b.stream_ops.open&&b.stream_ops.open(b)},llseek:function(){throw new A.ErrnoError(70)}},major:function(b){return b>>8},minor:function(b){return 255&b},makedev:function(b,k){return b<<8|k},registerDevice:function(b,k){A.devices[b]={stream_ops:k}},getDevice:function(b){return A.devices[b]},getMounts:function(b){for(var k=[],V=[b];V.length;){var it=V.pop();k.push(it),V.push.apply(V,it.mounts)}return k},syncfs:function(b,k){"function"==typeof b&&(k=b,b=!1),A.syncFSRequests++,A.syncFSRequests>1&&Ot("warning: "+A.syncFSRequests+" FS.syncfs operations in flight at once, probably just doing extra work");var V=A.getMounts(A.root.mount),it=0;function ht(Mt){return A.syncFSRequests--,k(Mt)}function xt(Mt){if(Mt)return xt.errored?void 0:(xt.errored=!0,ht(Mt));++it>=V.length&&ht(null)}V.forEach(function(Mt){if(!Mt.type.syncfs)return xt(null);Mt.type.syncfs(Mt,b,xt)})},mount:function(b,k,V){var xt,it="/"===V,ht=!V;if(it&&A.root)throw new A.ErrnoError(10);if(!it&&!ht){var Mt=A.lookupPath(V,{follow_mount:!1});if(V=Mt.path,A.isMountpoint(xt=Mt.node))throw new A.ErrnoError(10);if(!A.isDir(xt.mode))throw new A.ErrnoError(54)}var Bt={type:b,opts:k,mountpoint:V,mounts:[]},ae=b.mount(Bt);return ae.mount=Bt,Bt.root=ae,it?A.root=ae:xt&&(xt.mounted=Bt,xt.mount&&xt.mount.mounts.push(Bt)),ae},unmount:function(b){var k=A.lookupPath(b,{follow_mount:!1});if(!A.isMountpoint(k.node))throw new A.ErrnoError(28);var V=k.node,it=V.mounted,ht=A.getMounts(it);Object.keys(A.nameTable).forEach(function(Mt){for(var Bt=A.nameTable[Mt];Bt;){var ae=Bt.name_next;ht.includes(Bt.mount)&&A.destroyNode(Bt),Bt=ae}}),V.mounted=null;var xt=V.mount.mounts.indexOf(it);V.mount.mounts.splice(xt,1)},lookup:function(b,k){return b.node_ops.lookup(b,k)},mknod:function(b,k,V){var ht=A.lookupPath(b,{parent:!0}).node,xt=we.basename(b);if(!xt||"."===xt||".."===xt)throw new A.ErrnoError(28);var Mt=A.mayCreate(ht,xt);if(Mt)throw new A.ErrnoError(Mt);if(!ht.node_ops.mknod)throw new A.ErrnoError(63);return ht.node_ops.mknod(ht,xt,k,V)},create:function(b,k){return k=void 0!==k?k:438,k&=4095,A.mknod(b,k|=32768,0)},mkdir:function(b,k){return k=void 0!==k?k:511,k&=1023,A.mknod(b,k|=16384,0)},mkdirTree:function(b,k){for(var V=b.split("/"),it="",ht=0;ht"u"&&(V=k,k=438),A.mknod(b,k|=8192,V)},symlink:function(b,k){if(!Nn.resolve(b))throw new A.ErrnoError(44);var it=A.lookupPath(k,{parent:!0}).node;if(!it)throw new A.ErrnoError(44);var ht=we.basename(k),xt=A.mayCreate(it,ht);if(xt)throw new A.ErrnoError(xt);if(!it.node_ops.symlink)throw new A.ErrnoError(63);return it.node_ops.symlink(it,ht,b)},rename:function(b,k){var Bt,ae,V=we.dirname(b),it=we.dirname(k),ht=we.basename(b),xt=we.basename(k);if(Bt=A.lookupPath(b,{parent:!0}).node,ae=A.lookupPath(k,{parent:!0}).node,!Bt||!ae)throw new A.ErrnoError(44);if(Bt.mount!==ae.mount)throw new A.ErrnoError(75);var qe,Ae=A.lookupNode(Bt,ht),We=Nn.relative(b,it);if("."!==We.charAt(0))throw new A.ErrnoError(28);if("."!==(We=Nn.relative(k,V)).charAt(0))throw new A.ErrnoError(55);try{qe=A.lookupNode(ae,xt)}catch{}if(Ae!==qe){var Ie=A.isDir(Ae.mode),Me=A.mayDelete(Bt,ht,Ie);if(Me)throw new A.ErrnoError(Me);if(Me=qe?A.mayDelete(ae,xt,Ie):A.mayCreate(ae,xt))throw new A.ErrnoError(Me);if(!Bt.node_ops.rename)throw new A.ErrnoError(63);if(A.isMountpoint(Ae)||qe&&A.isMountpoint(qe))throw new A.ErrnoError(10);if(ae!==Bt&&(Me=A.nodePermissions(Bt,"w")))throw new A.ErrnoError(Me);A.hashRemoveNode(Ae);try{Bt.node_ops.rename(Ae,ae,xt)}catch(_n){throw _n}finally{A.hashAddNode(Ae)}}},rmdir:function(b){var V=A.lookupPath(b,{parent:!0}).node,it=we.basename(b),ht=A.lookupNode(V,it),xt=A.mayDelete(V,it,!0);if(xt)throw new A.ErrnoError(xt);if(!V.node_ops.rmdir)throw new A.ErrnoError(63);if(A.isMountpoint(ht))throw new A.ErrnoError(10);V.node_ops.rmdir(V,it),A.destroyNode(ht)},readdir:function(b){var V=A.lookupPath(b,{follow:!0}).node;if(!V.node_ops.readdir)throw new A.ErrnoError(54);return V.node_ops.readdir(V)},unlink:function(b){var V=A.lookupPath(b,{parent:!0}).node,it=we.basename(b),ht=A.lookupNode(V,it),xt=A.mayDelete(V,it,!1);if(xt)throw new A.ErrnoError(xt);if(!V.node_ops.unlink)throw new A.ErrnoError(63);if(A.isMountpoint(ht))throw new A.ErrnoError(10);V.node_ops.unlink(V,it),A.destroyNode(ht)},readlink:function(b){var V=A.lookupPath(b).node;if(!V)throw new A.ErrnoError(44);if(!V.node_ops.readlink)throw new A.ErrnoError(28);return Nn.resolve(A.getPath(V.parent),V.node_ops.readlink(V))},stat:function(b,k){var it=A.lookupPath(b,{follow:!k}).node;if(!it)throw new A.ErrnoError(44);if(!it.node_ops.getattr)throw new A.ErrnoError(63);return it.node_ops.getattr(it)},lstat:function(b){return A.stat(b,!0)},chmod:function(b,k,V){var it;if(!(it="string"==typeof b?A.lookupPath(b,{follow:!V}).node:b).node_ops.setattr)throw new A.ErrnoError(63);it.node_ops.setattr(it,{mode:4095&k|-4096&it.mode,timestamp:Date.now()})},lchmod:function(b,k){A.chmod(b,k,!0)},fchmod:function(b,k){var V=A.getStream(b);if(!V)throw new A.ErrnoError(8);A.chmod(V.node,k)},chown:function(b,k,V,it){var ht;if(!(ht="string"==typeof b?A.lookupPath(b,{follow:!it}).node:b).node_ops.setattr)throw new A.ErrnoError(63);ht.node_ops.setattr(ht,{timestamp:Date.now()})},lchown:function(b,k,V){A.chown(b,k,V,!0)},fchown:function(b,k,V){var it=A.getStream(b);if(!it)throw new A.ErrnoError(8);A.chown(it.node,k,V)},truncate:function(b,k){if(k<0)throw new A.ErrnoError(28);var V;if(!(V="string"==typeof b?A.lookupPath(b,{follow:!0}).node:b).node_ops.setattr)throw new A.ErrnoError(63);if(A.isDir(V.mode))throw new A.ErrnoError(31);if(!A.isFile(V.mode))throw new A.ErrnoError(28);var ht=A.nodePermissions(V,"w");if(ht)throw new A.ErrnoError(ht);V.node_ops.setattr(V,{size:k,timestamp:Date.now()})},ftruncate:function(b,k){var V=A.getStream(b);if(!V)throw new A.ErrnoError(8);if(0==(2097155&V.flags))throw new A.ErrnoError(28);A.truncate(V.node,k)},utime:function(b,k,V){var ht=A.lookupPath(b,{follow:!0}).node;ht.node_ops.setattr(ht,{timestamp:Math.max(k,V)})},open:function(b,k,V,it,ht){if(""===b)throw new A.ErrnoError(44);var xt;if(V=typeof V>"u"?438:V,V=64&(k="string"==typeof k?A.modeStringToFlags(k):k)?4095&V|32768:0,"object"==typeof b)xt=b;else{b=we.normalize(b);try{xt=A.lookupPath(b,{follow:!(131072&k)}).node}catch{}}var Bt=!1;if(64&k)if(xt){if(128&k)throw new A.ErrnoError(20)}else xt=A.mknod(b,V,0),Bt=!0;if(!xt)throw new A.ErrnoError(44);if(A.isChrdev(xt.mode)&&(k&=-513),65536&k&&!A.isDir(xt.mode))throw new A.ErrnoError(54);if(!Bt){var ae=A.mayOpen(xt,k);if(ae)throw new A.ErrnoError(ae)}512&k&&A.truncate(xt,0),k&=-131713;var Ae=A.createStream({node:xt,path:A.getPath(xt),id:xt.id,flags:k,mode:xt.mode,seekable:!0,position:0,stream_ops:xt.stream_ops,node_ops:xt.node_ops,ungotten:[],error:!1},it,ht);return Ae.stream_ops.open&&Ae.stream_ops.open(Ae),E.logReadFiles&&!(1&k)&&(A.readFiles||(A.readFiles={}),b in A.readFiles||(A.readFiles[b]=1)),Ae},close:function(b){if(A.isClosed(b))throw new A.ErrnoError(8);b.getdents&&(b.getdents=null);try{b.stream_ops.close&&b.stream_ops.close(b)}catch(k){throw k}finally{A.closeStream(b.fd)}b.fd=null},isClosed:function(b){return null===b.fd},llseek:function(b,k,V){if(A.isClosed(b))throw new A.ErrnoError(8);if(!b.seekable||!b.stream_ops.llseek)throw new A.ErrnoError(70);if(0!=V&&1!=V&&2!=V)throw new A.ErrnoError(28);return b.position=b.stream_ops.llseek(b,k,V),b.ungotten=[],b.position},read:function(b,k,V,it,ht){if(it<0||ht<0)throw new A.ErrnoError(28);if(A.isClosed(b))throw new A.ErrnoError(8);if(1==(2097155&b.flags))throw new A.ErrnoError(8);if(A.isDir(b.node.mode))throw new A.ErrnoError(31);if(!b.stream_ops.read)throw new A.ErrnoError(28);var xt=typeof ht<"u";if(xt){if(!b.seekable)throw new A.ErrnoError(70)}else ht=b.position;var Mt=b.stream_ops.read(b,k,V,it,ht);return xt||(b.position+=Mt),Mt},write:function(b,k,V,it,ht,xt){if(it<0||ht<0)throw new A.ErrnoError(28);if(A.isClosed(b))throw new A.ErrnoError(8);if(0==(2097155&b.flags))throw new A.ErrnoError(8);if(A.isDir(b.node.mode))throw new A.ErrnoError(31);if(!b.stream_ops.write)throw new A.ErrnoError(28);b.seekable&&1024&b.flags&&A.llseek(b,0,2);var Mt=typeof ht<"u";if(Mt){if(!b.seekable)throw new A.ErrnoError(70)}else ht=b.position;var Bt=b.stream_ops.write(b,k,V,it,ht,xt);return Mt||(b.position+=Bt),Bt},allocate:function(b,k,V){if(A.isClosed(b))throw new A.ErrnoError(8);if(k<0||V<=0)throw new A.ErrnoError(28);if(0==(2097155&b.flags))throw new A.ErrnoError(8);if(!A.isFile(b.node.mode)&&!A.isDir(b.node.mode))throw new A.ErrnoError(43);if(!b.stream_ops.allocate)throw new A.ErrnoError(138);b.stream_ops.allocate(b,k,V)},mmap:function(b,k,V,it,ht,xt){if(0!=(2&ht)&&0==(2&xt)&&2!=(2097155&b.flags))throw new A.ErrnoError(2);if(1==(2097155&b.flags))throw new A.ErrnoError(2);if(!b.stream_ops.mmap)throw new A.ErrnoError(43);return b.stream_ops.mmap(b,k,V,it,ht,xt)},msync:function(b,k,V,it,ht){return b&&b.stream_ops.msync?b.stream_ops.msync(b,k,V,it,ht):0},munmap:function(b){return 0},ioctl:function(b,k,V){if(!b.stream_ops.ioctl)throw new A.ErrnoError(59);return b.stream_ops.ioctl(b,k,V)},readFile:function(b,k){if((k=k||{}).flags=k.flags||0,k.encoding=k.encoding||"binary","utf8"!==k.encoding&&"binary"!==k.encoding)throw new Error('Invalid encoding type "'+k.encoding+'"');var V,it=A.open(b,k.flags),xt=A.stat(b).size,Mt=new Uint8Array(xt);return A.read(it,Mt,0,xt,0),"utf8"===k.encoding?V=Zt(Mt,0):"binary"===k.encoding&&(V=Mt),A.close(it),V},writeFile:function(b,k,V){(V=V||{}).flags=V.flags||577;var it=A.open(b,V.flags,V.mode);if("string"==typeof k){var ht=new Uint8Array(Le(k)+1),xt=xe(k,ht,0,ht.length);A.write(it,ht,0,xt,void 0,V.canOwn)}else{if(!ArrayBuffer.isView(k))throw new Error("Unsupported data type");A.write(it,k,0,k.byteLength,void 0,V.canOwn)}A.close(it)},cwd:function(){return A.currentPath},chdir:function(b){var k=A.lookupPath(b,{follow:!0});if(null===k.node)throw new A.ErrnoError(44);if(!A.isDir(k.node.mode))throw new A.ErrnoError(54);var V=A.nodePermissions(k.node,"x");if(V)throw new A.ErrnoError(V);A.currentPath=k.path},createDefaultDirectories:function(){A.mkdir("/tmp"),A.mkdir("/home"),A.mkdir("/home/web_user")},createDefaultDevices:function(){A.mkdir("/dev"),A.registerDevice(A.makedev(1,3),{read:function(){return 0},write:function(k,V,it,ht,xt){return ht}}),A.mkdev("/dev/null",A.makedev(1,3)),pn.register(A.makedev(5,0),pn.default_tty_ops),pn.register(A.makedev(6,0),pn.default_tty1_ops),A.mkdev("/dev/tty",A.makedev(5,0)),A.mkdev("/dev/tty1",A.makedev(6,0));var b=function Bi(){if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues){var b=new Uint8Array(1);return function(){return crypto.getRandomValues(b),b[0]}}return function(){_i("randomDevice")}}();A.createDevice("/dev","random",b),A.createDevice("/dev","urandom",b),A.mkdir("/dev/shm"),A.mkdir("/dev/shm/tmp")},createSpecialDirectories:function(){A.mkdir("/proc");var b=A.mkdir("/proc/self");A.mkdir("/proc/self/fd"),A.mount({mount:function(){var k=A.createNode(b,"fd",16895,73);return k.node_ops={lookup:function(V,it){var xt=A.getStream(+it);if(!xt)throw new A.ErrnoError(8);var Mt={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:function(){return xt.path}}};return Mt.parent=Mt,Mt}},k}},{},"/proc/self/fd")},createStandardStreams:function(){E.stdin?A.createDevice("/dev","stdin",E.stdin):A.symlink("/dev/tty","/dev/stdin"),E.stdout?A.createDevice("/dev","stdout",null,E.stdout):A.symlink("/dev/tty","/dev/stdout"),E.stderr?A.createDevice("/dev","stderr",null,E.stderr):A.symlink("/dev/tty1","/dev/stderr"),A.open("/dev/stdin",0),A.open("/dev/stdout",1),A.open("/dev/stderr",1)},ensureErrnoError:function(){A.ErrnoError||(A.ErrnoError=function(k,V){this.node=V,this.setErrno=function(it){this.errno=it},this.setErrno(k),this.message="FS error"},A.ErrnoError.prototype=new Error,A.ErrnoError.prototype.constructor=A.ErrnoError,[44].forEach(function(b){A.genericErrors[b]=new A.ErrnoError(b),A.genericErrors[b].stack=""}))},staticInit:function(){A.ensureErrnoError(),A.nameTable=new Array(4096),A.mount(X,{},"/"),A.createDefaultDirectories(),A.createDefaultDevices(),A.createSpecialDirectories(),A.filesystems={MEMFS:X}},init:function(b,k,V){A.init.initialized=!0,A.ensureErrnoError(),E.stdin=b||E.stdin,E.stdout=k||E.stdout,E.stderr=V||E.stderr,A.createStandardStreams()},quit:function(){A.init.initialized=!1;var b=E._fflush;b&&b(0);for(var k=0;kthis.length-1||Ie<0)){var Me=Ie%this.chunkSize;return this.getter(Ie/this.chunkSize|0)[Me]}},xt.prototype.setDataGetter=function(Ie){this.getter=Ie},xt.prototype.cacheLength=function(){var Ie=new XMLHttpRequest;if(Ie.open("HEAD",V,!1),Ie.send(null),!(Ie.status>=200&&Ie.status<300||304===Ie.status))throw new Error("Couldn't load "+V+". Status: "+Ie.status);var _n,Me=Number(Ie.getResponseHeader("Content-length")),Jn=(_n=Ie.getResponseHeader("Accept-Ranges"))&&"bytes"===_n,tr=(_n=Ie.getResponseHeader("Content-Encoding"))&&"gzip"===_n,xi=1048576;Jn||(xi=Me);var Mn=this;Mn.setDataGetter(function(Kn){var sr=Kn*xi,Pn=(Kn+1)*xi-1;if(Pn=Math.min(Pn,Me-1),typeof Mn.chunks[Kn]>"u"&&(Mn.chunks[Kn]=function(Kn,sr){if(Kn>sr)throw new Error("invalid range ("+Kn+", "+sr+") or no bytes requested!");if(sr>Me-1)throw new Error("only "+Me+" bytes available! programmer error!");var Pn=new XMLHttpRequest;if(Pn.open("GET",V,!1),Me!==xi&&Pn.setRequestHeader("Range","bytes="+Kn+"-"+sr),typeof Uint8Array<"u"&&(Pn.responseType="arraybuffer"),Pn.overrideMimeType&&Pn.overrideMimeType("text/plain; charset=x-user-defined"),Pn.send(null),!(Pn.status>=200&&Pn.status<300||304===Pn.status))throw new Error("Couldn't load "+V+". Status: "+Pn.status);return void 0!==Pn.response?new Uint8Array(Pn.response||[]):me(Pn.responseText||"",!0)}(sr,Pn)),typeof Mn.chunks[Kn]>"u")throw new Error("doXHR failed!");return Mn.chunks[Kn]}),(tr||!Me)&&(xi=Me=1,Me=this.getter(0).length,xi=Me,ie("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=Me,this._chunkSize=xi,this.lengthKnown=!0},typeof XMLHttpRequest<"u")throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var Bt,ae=A.createFile(b,k,Bt={isDevice:!1,url:V},it,ht);Bt.contents?ae.contents=Bt.contents:Bt.url&&(ae.contents=null,ae.url=Bt.url),Object.defineProperties(ae,{usedBytes:{get:function(){return this.contents.length}}});var Ae={};return Object.keys(ae.stream_ops).forEach(function(qe){var Ie=ae.stream_ops[qe];Ae[qe]=function(){return A.forceLoadFile(ae),Ie.apply(null,arguments)}}),Ae.read=function(Ie,Me,_n,Jn,tr){A.forceLoadFile(ae);var xi=Ie.node.contents;if(tr>=xi.length)return 0;var Yn=Math.min(xi.length-tr,Jn);if(xi.slice)for(var Mn=0;Mn>2]=it.dev,be[V+4>>2]=0,be[V+8>>2]=it.ino,be[V+12>>2]=it.mode,be[V+16>>2]=it.nlink,be[V+20>>2]=it.uid,be[V+24>>2]=it.gid,be[V+28>>2]=it.rdev,be[V+32>>2]=0,sn=[it.size>>>0,(gn=it.size,+Math.abs(gn)>=1?gn>0?(0|Math.min(+Math.floor(gn/4294967296),4294967295))>>>0:~~+Math.ceil((gn-+(~~gn>>>0))/4294967296)>>>0:0)],be[V+40>>2]=sn[0],be[V+44>>2]=sn[1],be[V+48>>2]=4096,be[V+52>>2]=it.blocks,be[V+56>>2]=it.atime.getTime()/1e3|0,be[V+60>>2]=0,be[V+64>>2]=it.mtime.getTime()/1e3|0,be[V+68>>2]=0,be[V+72>>2]=it.ctime.getTime()/1e3|0,be[V+76>>2]=0,sn=[it.ino>>>0,(gn=it.ino,+Math.abs(gn)>=1?gn>0?(0|Math.min(+Math.floor(gn/4294967296),4294967295))>>>0:~~+Math.ceil((gn-+(~~gn>>>0))/4294967296)>>>0:0)],be[V+80>>2]=sn[0],be[V+84>>2]=sn[1],0},doMsync:function(b,k,V,it,ht){var xt=an.slice(b,b+V);A.msync(k,xt,ht,V,it)},doMkdir:function(b,k){return"/"===(b=we.normalize(b))[b.length-1]&&(b=b.substr(0,b.length-1)),A.mkdir(b,k,0),0},doMknod:function(b,k,V){switch(61440&k){case 32768:case 8192:case 24576:case 4096:case 49152:break;default:return-28}return A.mknod(b,k,V),0},doReadlink:function(b,k,V){if(V<=0)return-28;var it=A.readlink(b),ht=Math.min(V,Le(it)),xt=Ge[k+ht];return function Te(b,k,V){return xe(b,an,k,V)}(it,k,V+1),Ge[k+ht]=xt,ht},doAccess:function(b,k){if(-8&k)return-28;var it=A.lookupPath(b,{follow:!0}).node;if(!it)return-44;var ht="";return 4&k&&(ht+="r"),2&k&&(ht+="w"),1&k&&(ht+="x"),ht&&A.nodePermissions(it,ht)?-2:0},doDup:function(b,k,V){var it=A.getStream(V);return it&&A.close(it),A.open(b,k,0,V,V).fd},doReadv:function(b,k,V,it){for(var ht=0,xt=0;xt>2],ae=A.read(b,Ge,be[k+8*xt>>2],Bt,it);if(ae<0)return-1;if(ht+=ae,ae>2],be[k+(8*xt+4)>>2],it);if(ae<0)return-1;ht+=ae}return ht},varargs:void 0,get:function(){return bt.varargs+=4,be[bt.varargs-4>>2]},getStr:function(b){return Kt(b)},getStreamFromFD:function(b){var k=A.getStream(b);if(!k)throw new A.ErrnoError(8);return k},get64:function(b,k){return b}};var Gt=[];function pt(b){try{return jt.grow(b-He.byteLength+65535>>>16),Tt(jt.buffer),1}catch{}}var gt={};function Xt(){if(!Xt.strings){var k={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:Qt||"./this.program"};for(var V in gt)void 0===gt[V]?delete k[V]:k[V]=gt[V];var it=[];for(var V in k)it.push(V+"="+k[V]);Xt.strings=it}return Xt.strings}var Pe=function(b,k,V,it){b||(b=this),this.parent=b,this.mount=b.mount,this.mounted=null,this.id=A.nextInode++,this.name=k,this.mode=V,this.node_ops={},this.stream_ops={},this.rdev=it};function me(b,k,V){var it=V>0?V:Le(b)+1,ht=new Array(it),xt=xe(b,ht,0,ht.length);return k&&(ht.length=xt),ht}Object.defineProperties(Pe.prototype,{read:{get:function(){return 365==(365&this.mode)},set:function(b){b?this.mode|=365:this.mode&=-366}},write:{get:function(){return 146==(146&this.mode)},set:function(b){b?this.mode|=146:this.mode&=-147}},isFolder:{get:function(){return A.isDir(this.mode)}},isDevice:{get:function(){return A.isChrdev(this.mode)}}}),A.FSNode=Pe,A.staticInit();var Fe={h:function Lt(b,k,V){bt.varargs=V;try{var it=bt.getStr(b),ht=V?bt.get():0;return A.open(it,k,ht).fd}catch(Mt){if(typeof A>"u"||!(Mt instanceof A.ErrnoError))throw Mt;return-Mt.errno}},b:function Pt(){_i("")},a:function Yt(b,k,V){var it=function Jt(b,k){var V;for(Gt.length=0,k>>=2;V=an[b++];){var it=V<105;it&&1&k&&k++,Gt.push(it?ln[k++>>1]:be[k]),++k}return Gt}(k,V);return zn[b].apply(null,it)},k:function Q(b,k,V){an.copyWithin(b,k,k+V)},e:function mt(b){var k=an.length,V=2147483648;if((b>>>=0)>V)return!1;for(var it=1;it<=4;it*=2){var ht=k*(1+.2/it);if(ht=Math.min(ht,b+100663296),pt(Math.min(V,Ee(Math.max(b,ht),65536))))return!0}return!1},f:function kt(b,k){var V=0;return Xt().forEach(function(it,ht){var xt=k+V;be[b+4*ht>>2]=xt,function Oe(b,k,V){for(var it=0;it>0]=b.charCodeAt(it);V||(Ge[k>>0]=0)}(it,xt),V+=it.length+1}),0},g:function le(b,k){var V=Xt();be[b>>2]=V.length;var it=0;return V.forEach(function(ht){it+=ht.length+1}),be[k>>2]=it,0},d:function O(b){try{var k=bt.getStreamFromFD(b);return A.close(k),0}catch(V){if(typeof A>"u"||!(V instanceof A.ErrnoError))throw V;return V.errno}},i:function oe(b,k,V,it){try{var ht=bt.getStreamFromFD(b),xt=bt.doReadv(ht,k,V);return be[it>>2]=xt,0}catch(Mt){if(typeof A>"u"||!(Mt instanceof A.ErrnoError))throw Mt;return Mt.errno}},j:function Se(b,k,V,it,ht){try{var xt=bt.getStreamFromFD(b),Bt=4294967296*V+(k>>>0),ae=9007199254740992;return Bt<=-ae||Bt>=ae?-61:(A.llseek(xt,Bt,it),sn=[xt.position>>>0,(gn=xt.position,+Math.abs(gn)>=1?gn>0?(0|Math.min(+Math.floor(gn/4294967296),4294967295))>>>0:~~+Math.ceil((gn-+(~~gn>>>0))/4294967296)>>>0:0)],be[ht>>2]=sn[0],be[ht+4>>2]=sn[1],xt.getdents&&0===Bt&&0===it&&(xt.getdents=null),0)}catch(Ae){if(typeof A>"u"||!(Ae instanceof A.ErrnoError))throw Ae;return Ae.errno}},c:function Ce(b,k,V,it){try{var ht=bt.getStreamFromFD(b),xt=bt.doWritev(ht,k,V);return be[it>>2]=xt,0}catch(Mt){if(typeof A>"u"||!(Mt instanceof A.ErrnoError))throw Mt;return Mt.errno}},l:function Ke(b){var k=Date.now();return be[b>>2]=k/1e3|0,be[b+4>>2]=k%1e3*1e3|0,0}};(function In(){var b={a:Fe};function k(Mt,Bt){E.asm=Mt.exports,Tt((jt=E.asm.m).buffer),Wt=E.asm.G,function Mi(b){_e.unshift(b)}(E.asm.n),Ni()}function V(Mt){k(Mt.instance)}function it(Mt){return function ji(){return te||"function"!=typeof fetch?Promise.resolve().then(function(){return Sn(fe)}):fetch(fe,{credentials:"same-origin"}).then(function(b){if(!b.ok)throw"failed to load wasm binary file at '"+fe+"'";return b.arrayBuffer()}).catch(function(){return Sn(fe)})}().then(function(Bt){return WebAssembly.instantiate(Bt,b)}).then(function(Bt){return Bt}).then(Mt,function(Bt){Ot("failed to asynchronously prepare wasm: "+Bt),_i(Bt)})}if(Fi(),E.instantiateWasm)try{return E.instantiateWasm(b,k)}catch(Mt){return Ot("Module.instantiateWasm callback failed with error: "+Mt),!1}return function ht(){return te||"function"!=typeof WebAssembly.instantiateStreaming||Ri(fe)||"function"!=typeof fetch?it(V):fetch(fe,{credentials:"same-origin"}).then(function(Mt){return WebAssembly.instantiateStreaming(Mt,b).then(V,function(ae){return Ot("wasm streaming compile failed: "+ae),Ot("falling back to ArrayBuffer instantiation"),it(V)})})}().catch(ft),{}})(),E.___wasm_call_ctors=function(){return(E.___wasm_call_ctors=E.asm.n).apply(null,arguments)};var jn,fn=E._emscripten_bind_CExpat_CExpat_0=function(){return(fn=E._emscripten_bind_CExpat_CExpat_0=E.asm.o).apply(null,arguments)},cn=E._emscripten_bind_CExpat_version_0=function(){return(cn=E._emscripten_bind_CExpat_version_0=E.asm.p).apply(null,arguments)},$e=E._emscripten_bind_CExpat_create_0=function(){return($e=E._emscripten_bind_CExpat_create_0=E.asm.q).apply(null,arguments)},Qe=E._emscripten_bind_CExpat_destroy_0=function(){return(Qe=E._emscripten_bind_CExpat_destroy_0=E.asm.r).apply(null,arguments)},wn=E._emscripten_bind_CExpat_parse_1=function(){return(wn=E._emscripten_bind_CExpat_parse_1=E.asm.s).apply(null,arguments)},Bn=E._emscripten_bind_CExpat_tag_0=function(){return(Bn=E._emscripten_bind_CExpat_tag_0=E.asm.t).apply(null,arguments)},Zn=E._emscripten_bind_CExpat_attrs_0=function(){return(Zn=E._emscripten_bind_CExpat_attrs_0=E.asm.u).apply(null,arguments)},Hn=E._emscripten_bind_CExpat_content_0=function(){return(Hn=E._emscripten_bind_CExpat_content_0=E.asm.v).apply(null,arguments)},Pi=E._emscripten_bind_CExpat_startElement_0=function(){return(Pi=E._emscripten_bind_CExpat_startElement_0=E.asm.w).apply(null,arguments)},he=E._emscripten_bind_CExpat_endElement_0=function(){return(he=E._emscripten_bind_CExpat_endElement_0=E.asm.x).apply(null,arguments)},je=E._emscripten_bind_CExpat_characterData_0=function(){return(je=E._emscripten_bind_CExpat_characterData_0=E.asm.y).apply(null,arguments)},vn=E._emscripten_bind_CExpat___destroy___0=function(){return(vn=E._emscripten_bind_CExpat___destroy___0=E.asm.z).apply(null,arguments)},Cn=E._emscripten_bind_VoidPtr___destroy___0=function(){return(Cn=E._emscripten_bind_VoidPtr___destroy___0=E.asm.A).apply(null,arguments)},$n=E._emscripten_bind_CExpatJS_CExpatJS_0=function(){return($n=E._emscripten_bind_CExpatJS_CExpatJS_0=E.asm.B).apply(null,arguments)},ci=E._emscripten_bind_CExpatJS_startElement_0=function(){return(ci=E._emscripten_bind_CExpatJS_startElement_0=E.asm.C).apply(null,arguments)},vi=E._emscripten_bind_CExpatJS_endElement_0=function(){return(vi=E._emscripten_bind_CExpatJS_endElement_0=E.asm.D).apply(null,arguments)},Qn=E._emscripten_bind_CExpatJS_characterData_0=function(){return(Qn=E._emscripten_bind_CExpatJS_characterData_0=E.asm.E).apply(null,arguments)},Zi=E._emscripten_bind_CExpatJS___destroy___0=function(){return(Zi=E._emscripten_bind_CExpatJS___destroy___0=E.asm.F).apply(null,arguments)};function bi(b){function k(){jn||(jn=!0,E.calledRun=!0,!se&&(function Ye(){!E.noFSInit&&!A.init.initialized&&A.init(),A.ignorePermissions=!1,li(_e)}(),ut(E),E.onRuntimeInitialized&&E.onRuntimeInitialized(),function Tn(){if(E.postRun)for("function"==typeof E.postRun&&(E.postRun=[E.postRun]);E.postRun.length;)b=E.postRun.shift(),ee.unshift(b);var b;li(ee)}()))}gi>0||(function Ze(){if(E.preRun)for("function"==typeof E.preRun&&(E.preRun=[E.preRun]);E.preRun.length;)b=E.preRun.shift(),ce.unshift(b);var b;li(ce)}(),gi>0)||(E.setStatus?(E.setStatus("Running..."),setTimeout(function(){setTimeout(function(){E.setStatus("")},1),k()},1)):k())}if(E._malloc=function(){return(E._malloc=E.asm.H).apply(null,arguments)},Si=function b(){jn||bi(),jn||(Si=b)},E.run=bi,E.preInit)for("function"==typeof E.preInit&&(E.preInit=[E.preInit]);E.preInit.length>0;)E.preInit.pop()();function mn(){}function un(b){return(b||mn).__cache__}function ui(b,k){var V=un(k),it=V[b];return it||((it=Object.create((k||mn).prototype)).ptr=b,V[b]=it)}bi(),(mn.prototype=Object.create(mn.prototype)).constructor=mn,mn.prototype.__class__=mn,mn.__cache__={},E.WrapperObject=mn,E.getCache=un,E.wrapPointer=ui,E.castObject=function Ji(b,k){return ui(b.ptr,k)},E.NULL=ui(0),E.destroy=function hi(b){if(!b.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";b.__destroy__(),delete un(b.__class__)[b.ptr]},E.compare=function Hi(b,k){return b.ptr===k.ptr},E.getPointer=function On(b){return b.ptr},E.getClass=function di(b){return b.__class__};var Ue={buffer:0,size:0,pos:0,temps:[],needed:0,prepare:function(){if(Ue.needed){for(var b=0;b=Ue.size?(At(it>0),Ue.needed+=it,ht=E._malloc(it),Ue.temps.push(ht)):(ht=Ue.buffer+Ue.pos,Ue.pos+=it),ht},copy:function(b,k,V){switch(V>>>=0,k.BYTES_PER_ELEMENT){case 2:V>>>=1;break;case 4:V>>>=2;break;case 8:V>>>=3}for(var ht=0;ht=$);)++dt;if(dt-S>16&&y.subarray&&Le)return Le.decode(y.subarray(S,dt));for(var vt="";S>10,56320|1023&ke)}}else vt+=String.fromCharCode((31&Et)<<6|Rt)}else vt+=String.fromCharCode(Et)}return vt}function Ee(y,S){return y?Oe(ce,y,S):""}function He(y,S,P,$){if(!($>0))return 0;for(var dt=P,vt=P+$-1,Et=0;Et=55296&&Rt<=57343&&(Rt=65536+((1023&Rt)<<10)|1023&y.charCodeAt(++Et)),Rt<=127){if(P>=vt)break;S[P++]=Rt}else if(Rt<=2047){if(P+1>=vt)break;S[P++]=192|Rt>>6,S[P++]=128|63&Rt}else if(Rt<=65535){if(P+2>=vt)break;S[P++]=224|Rt>>12,S[P++]=128|Rt>>6&63,S[P++]=128|63&Rt}else{if(P+3>=vt)break;S[P++]=240|Rt>>18,S[P++]=128|Rt>>12&63,S[P++]=128|Rt>>6&63,S[P++]=128|63&Rt}}return S[P]=0,P-dt}function an(y){for(var S=0,P=0;P=55296&&$<=57343&&($=65536+((1023&$)<<10)|1023&y.charCodeAt(++P)),$<=127?++S:S+=$<=2047?2:$<=65535?3:4}return S}function ln(y,S){return y%S>0&&(y+=S-y%S),y}function Ye(y){Tt=y,E.HEAP8=Wt=new Int8Array(y),E.HEAP16=_e=new Int16Array(y),E.HEAP32=ee=new Int32Array(y),E.HEAPU8=ce=new Uint8Array(y),E.HEAPU16=new Uint16Array(y),E.HEAPU32=new Uint32Array(y),E.HEAPF32=new Float32Array(y),E.HEAPF64=Ze=new Float64Array(y)}var Tn,oi=[],Mi=[],mi=[];var fe=0,Sn=null;function In(y){fe++,E.monitorRunDependencies&&E.monitorRunDependencies(fe)}function gn(y){if(fe--,E.monitorRunDependencies&&E.monitorRunDependencies(fe),0==fe&&Sn){var S=Sn;Sn=null,S()}}function sn(y){E.onAbort&&E.onAbort(y),te(y="Aborted("+y+")"),xe=!0,y+=". Build with -s ASSERTIONS=1 for more info.";var S=new WebAssembly.RuntimeError(y);throw ft(S),S}E.preloadedImages={},E.preloadedAudios={};var Ln;function li(y){return y.startsWith("data:application/octet-stream;base64,")}function we(y){try{if(y==Ln&&Ht)return new Uint8Array(Ht);throw"both async and sync fetching of the wasm failed"}catch(S){sn(S)}}li(Ln="graphvizlib.wasm")||(Ln=function Nt(y){return E.locateFile?E.locateFile(y,yt):yt+y}(Ln));var pn,z,bt,X={161580:function(y,S){var P=Ee(y),$=Ee(S);O.createPath("/",Yt.dirname(P)),O.writeFile(Yt.join("/",P),$)}};function lt(y){for(;y.length>0;){var S=y.shift();if("function"!=typeof S){var P=S.func;"number"==typeof P?void 0===S.arg?A(P)():A(P)(S.arg):P(void 0===S.arg?null:S.arg)}else S(E)}}function A(y){return Tn.get(y)}bt=function(){return performance.now()};function Pt(y){return ee[Mt()>>2]=y,y}var Yt={splitPath:function(y){return/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(y).slice(1)},normalizeArray:function(y,S){for(var P=0,$=y.length-1;$>=0;$--){var dt=y[$];"."===dt?y.splice($,1):".."===dt?(y.splice($,1),P++):P&&(y.splice($,1),P--)}if(S)for(;P;P--)y.unshift("..");return y},normalize:function(y){var S="/"===y.charAt(0),P="/"===y.substr(-1);return!(y=Yt.normalizeArray(y.split("/").filter(function($){return!!$}),!S).join("/"))&&!S&&(y="."),y&&P&&(y+="/"),(S?"/":"")+y},dirname:function(y){var S=Yt.splitPath(y),P=S[0],$=S[1];return P||$?($&&($=$.substr(0,$.length-1)),P+$):"."},basename:function(y){if("/"===y)return"/";var S=(y=(y=Yt.normalize(y)).replace(/\/$/,"")).lastIndexOf("/");return-1===S?y:y.substr(S+1)},extname:function(y){return Yt.splitPath(y)[3]},join:function(){var y=Array.prototype.slice.call(arguments,0);return Yt.normalize(y.join("/"))},join2:function(y,S){return Yt.normalize(y+"/"+S)}};var pt={resolve:function(){for(var y="",S=!1,P=arguments.length-1;P>=-1&&!S;P--){var $=P>=0?arguments[P]:O.cwd();if("string"!=typeof $)throw new TypeError("Arguments to path.resolve must be strings");if(!$)return"";y=$+"/"+y,S="/"===$.charAt(0)}return(S?"/":"")+(y=Yt.normalizeArray(y.split("/").filter(function(dt){return!!dt}),!S).join("/"))||"."},relative:function(y,S){function P(ke){for(var tn=0;tn=0&&""===ke[hn];hn--);return tn>hn?[]:ke.slice(tn,hn-tn+1)}y=pt.resolve(y).substr(1),S=pt.resolve(S).substr(1);for(var $=P(y.split("/")),dt=P(S.split("/")),vt=Math.min($.length,dt.length),Et=vt,Rt=0;Rt0&&(Ot(Oe(y.output,0)),y.output=[])}},default_tty1_ops:{put_char:function(y,S){null===S||10===S?(te(Oe(y.output,0)),y.output=[]):0!=S&&y.output.push(S)},flush:function(y){y.output&&y.output.length>0&&(te(Oe(y.output,0)),y.output=[])}}};function Xt(y){y=function Ut(y,S){return Math.ceil(y/S)*S}(y,65536);var S=We(65536,y);return S?(function gt(y,S){ce.fill(0,y,y+S)}(S,y),S):0}var kt={ops_table:null,mount:function(y){return kt.createNode(null,"/",16895,0)},createNode:function(y,S,P,$){if(O.isBlkdev(P)||O.isFIFO(P))throw new O.ErrnoError(63);kt.ops_table||(kt.ops_table={dir:{node:{getattr:kt.node_ops.getattr,setattr:kt.node_ops.setattr,lookup:kt.node_ops.lookup,mknod:kt.node_ops.mknod,rename:kt.node_ops.rename,unlink:kt.node_ops.unlink,rmdir:kt.node_ops.rmdir,readdir:kt.node_ops.readdir,symlink:kt.node_ops.symlink},stream:{llseek:kt.stream_ops.llseek}},file:{node:{getattr:kt.node_ops.getattr,setattr:kt.node_ops.setattr},stream:{llseek:kt.stream_ops.llseek,read:kt.stream_ops.read,write:kt.stream_ops.write,allocate:kt.stream_ops.allocate,mmap:kt.stream_ops.mmap,msync:kt.stream_ops.msync}},link:{node:{getattr:kt.node_ops.getattr,setattr:kt.node_ops.setattr,readlink:kt.node_ops.readlink},stream:{}},chrdev:{node:{getattr:kt.node_ops.getattr,setattr:kt.node_ops.setattr},stream:O.chrdev_stream_ops}});var dt=O.createNode(y,S,P,$);return O.isDir(dt.mode)?(dt.node_ops=kt.ops_table.dir.node,dt.stream_ops=kt.ops_table.dir.stream,dt.contents={}):O.isFile(dt.mode)?(dt.node_ops=kt.ops_table.file.node,dt.stream_ops=kt.ops_table.file.stream,dt.usedBytes=0,dt.contents=null):O.isLink(dt.mode)?(dt.node_ops=kt.ops_table.link.node,dt.stream_ops=kt.ops_table.link.stream):O.isChrdev(dt.mode)&&(dt.node_ops=kt.ops_table.chrdev.node,dt.stream_ops=kt.ops_table.chrdev.stream),dt.timestamp=Date.now(),y&&(y.contents[S]=dt,y.timestamp=dt.timestamp),dt},getFileDataAsTypedArray:function(y){return y.contents?y.contents.subarray?y.contents.subarray(0,y.usedBytes):new Uint8Array(y.contents):new Uint8Array(0)},expandFileStorage:function(y,S){var P=y.contents?y.contents.length:0;if(!(P>=S)){S=Math.max(S,P*(P<1048576?2:1.125)>>>0),0!=P&&(S=Math.max(S,256));var dt=y.contents;y.contents=new Uint8Array(S),y.usedBytes>0&&y.contents.set(dt.subarray(0,y.usedBytes),0)}},resizeFileStorage:function(y,S){if(y.usedBytes!=S)if(0==S)y.contents=null,y.usedBytes=0;else{var P=y.contents;y.contents=new Uint8Array(S),P&&y.contents.set(P.subarray(0,Math.min(S,y.usedBytes))),y.usedBytes=S}},node_ops:{getattr:function(y){var S={};return S.dev=O.isChrdev(y.mode)?y.id:1,S.ino=y.id,S.mode=y.mode,S.nlink=1,S.uid=0,S.gid=0,S.rdev=y.rdev,S.size=O.isDir(y.mode)?4096:O.isFile(y.mode)?y.usedBytes:O.isLink(y.mode)?y.link.length:0,S.atime=new Date(y.timestamp),S.mtime=new Date(y.timestamp),S.ctime=new Date(y.timestamp),S.blksize=4096,S.blocks=Math.ceil(S.size/S.blksize),S},setattr:function(y,S){void 0!==S.mode&&(y.mode=S.mode),void 0!==S.timestamp&&(y.timestamp=S.timestamp),void 0!==S.size&&kt.resizeFileStorage(y,S.size)},lookup:function(y,S){throw O.genericErrors[44]},mknod:function(y,S,P,$){return kt.createNode(y,S,P,$)},rename:function(y,S,P){if(O.isDir(y.mode)){var $;try{$=O.lookupNode(S,P)}catch{}if($)for(var dt in $.contents)throw new O.ErrnoError(55)}delete y.parent.contents[y.name],y.parent.timestamp=Date.now(),y.name=P,S.contents[P]=y,S.timestamp=y.parent.timestamp,y.parent=S},unlink:function(y,S){delete y.contents[S],y.timestamp=Date.now()},rmdir:function(y,S){var P=O.lookupNode(y,S);for(var $ in P.contents)throw new O.ErrnoError(55);delete y.contents[S],y.timestamp=Date.now()},readdir:function(y){var S=[".",".."];for(var P in y.contents)!y.contents.hasOwnProperty(P)||S.push(P);return S},symlink:function(y,S,P){var $=kt.createNode(y,S,41471,0);return $.link=P,$},readlink:function(y){if(!O.isLink(y.mode))throw new O.ErrnoError(28);return y.link}},stream_ops:{read:function(y,S,P,$,dt){var vt=y.node.contents;if(dt>=y.node.usedBytes)return 0;var Et=Math.min(y.node.usedBytes-dt,$);if(Et>8&&vt.subarray)S.set(vt.subarray(dt,dt+Et),P);else for(var Rt=0;Rt0||$+P8)throw new O.ErrnoError(32);for(var dt=Yt.normalizeArray(y.split("/").filter(function(Ne){return!!Ne}),!1),vt=O.root,Et="/",Rt=0;Rt40)throw new O.ErrnoError(32)}}return{path:Et,node:vt}},getPath:function(y){for(var S;;){if(O.isRoot(y)){var P=y.mount.mountpoint;return S?"/"!==P[P.length-1]?P+"/"+S:P+S:P}S=S?y.name+"/"+S:y.name,y=y.parent}},hashName:function(y,S){for(var P=0,$=0;$>>0)%O.nameTable.length},hashAddNode:function(y){var S=O.hashName(y.parent.id,y.name);y.name_next=O.nameTable[S],O.nameTable[S]=y},hashRemoveNode:function(y){var S=O.hashName(y.parent.id,y.name);if(O.nameTable[S]===y)O.nameTable[S]=y.name_next;else for(var P=O.nameTable[S];P;){if(P.name_next===y){P.name_next=y.name_next;break}P=P.name_next}},lookupNode:function(y,S){var P=O.mayLookup(y);if(P)throw new O.ErrnoError(P,y);for(var $=O.hashName(y.id,S),dt=O.nameTable[$];dt;dt=dt.name_next)if(dt.parent.id===y.id&&dt.name===S)return dt;return O.lookup(y,S)},createNode:function(y,S,P,$){var dt=new O.FSNode(y,S,P,$);return O.hashAddNode(dt),dt},destroyNode:function(y){O.hashRemoveNode(y)},isRoot:function(y){return y===y.parent},isMountpoint:function(y){return!!y.mounted},isFile:function(y){return 32768==(61440&y)},isDir:function(y){return 16384==(61440&y)},isLink:function(y){return 40960==(61440&y)},isChrdev:function(y){return 8192==(61440&y)},isBlkdev:function(y){return 24576==(61440&y)},isFIFO:function(y){return 4096==(61440&y)},isSocket:function(y){return 49152==(49152&y)},flagModes:{r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090},modeStringToFlags:function(y){var S=O.flagModes[y];if(typeof S>"u")throw new Error("Unknown file open mode: "+y);return S},flagsToPermissionString:function(y){var S=["r","w","rw"][3&y];return 512&y&&(S+="w"),S},nodePermissions:function(y,S){return O.ignorePermissions?0:S.includes("r")&&!(292&y.mode)||S.includes("w")&&!(146&y.mode)||S.includes("x")&&!(73&y.mode)?2:0},mayLookup:function(y){return O.nodePermissions(y,"x")||(y.node_ops.lookup?0:2)},mayCreate:function(y,S){try{return O.lookupNode(y,S),20}catch{}return O.nodePermissions(y,"wx")},mayDelete:function(y,S,P){var $;try{$=O.lookupNode(y,S)}catch(vt){return vt.errno}var dt=O.nodePermissions(y,"wx");if(dt)return dt;if(P){if(!O.isDir($.mode))return 54;if(O.isRoot($)||O.getPath($)===O.cwd())return 10}else if(O.isDir($.mode))return 31;return 0},mayOpen:function(y,S){return y?O.isLink(y.mode)?32:O.isDir(y.mode)&&("r"!==O.flagsToPermissionString(S)||512&S)?31:O.nodePermissions(y,O.flagsToPermissionString(S)):44},MAX_OPEN_FDS:4096,nextfd:function(y,S){S=S||O.MAX_OPEN_FDS;for(var P=y=y||0;P<=S;P++)if(!O.streams[P])return P;throw new O.ErrnoError(33)},getStream:function(y){return O.streams[y]},createStream:function(y,S,P){O.FSStream||(O.FSStream=function(){},O.FSStream.prototype={object:{get:function(){return this.node},set:function(Et){this.node=Et}},isRead:{get:function(){return 1!=(2097155&this.flags)}},isWrite:{get:function(){return 0!=(2097155&this.flags)}},isAppend:{get:function(){return 1024&this.flags}}});var $=new O.FSStream;for(var dt in y)$[dt]=y[dt];y=$;var vt=O.nextfd(S,P);return y.fd=vt,O.streams[vt]=y,y},closeStream:function(y){O.streams[y]=null},chrdev_stream_ops:{open:function(y){var S=O.getDevice(y.node.rdev);y.stream_ops=S.stream_ops,y.stream_ops.open&&y.stream_ops.open(y)},llseek:function(){throw new O.ErrnoError(70)}},major:function(y){return y>>8},minor:function(y){return 255&y},makedev:function(y,S){return y<<8|S},registerDevice:function(y,S){O.devices[y]={stream_ops:S}},getDevice:function(y){return O.devices[y]},getMounts:function(y){for(var S=[],P=[y];P.length;){var $=P.pop();S.push($),P.push.apply(P,$.mounts)}return S},syncfs:function(y,S){"function"==typeof y&&(S=y,y=!1),O.syncFSRequests++,O.syncFSRequests>1&&te("warning: "+O.syncFSRequests+" FS.syncfs operations in flight at once, probably just doing extra work");var P=O.getMounts(O.root.mount),$=0;function dt(Et){return O.syncFSRequests--,S(Et)}function vt(Et){if(Et)return vt.errored?void 0:(vt.errored=!0,dt(Et));++$>=P.length&&dt(null)}P.forEach(function(Et){if(!Et.type.syncfs)return vt(null);Et.type.syncfs(Et,y,vt)})},mount:function(y,S,P){var vt,$="/"===P,dt=!P;if($&&O.root)throw new O.ErrnoError(10);if(!$&&!dt){var Et=O.lookupPath(P,{follow_mount:!1});if(P=Et.path,O.isMountpoint(vt=Et.node))throw new O.ErrnoError(10);if(!O.isDir(vt.mode))throw new O.ErrnoError(54)}var Rt={type:y,opts:S,mountpoint:P,mounts:[]},ne=y.mount(Rt);return ne.mount=Rt,Rt.root=ne,$?O.root=ne:vt&&(vt.mounted=Rt,vt.mount&&vt.mount.mounts.push(Rt)),ne},unmount:function(y){var S=O.lookupPath(y,{follow_mount:!1});if(!O.isMountpoint(S.node))throw new O.ErrnoError(28);var P=S.node,$=P.mounted,dt=O.getMounts($);Object.keys(O.nameTable).forEach(function(Et){for(var Rt=O.nameTable[Et];Rt;){var ne=Rt.name_next;dt.includes(Rt.mount)&&O.destroyNode(Rt),Rt=ne}}),P.mounted=null;var vt=P.mount.mounts.indexOf($);P.mount.mounts.splice(vt,1)},lookup:function(y,S){return y.node_ops.lookup(y,S)},mknod:function(y,S,P){var dt=O.lookupPath(y,{parent:!0}).node,vt=Yt.basename(y);if(!vt||"."===vt||".."===vt)throw new O.ErrnoError(28);var Et=O.mayCreate(dt,vt);if(Et)throw new O.ErrnoError(Et);if(!dt.node_ops.mknod)throw new O.ErrnoError(63);return dt.node_ops.mknod(dt,vt,S,P)},create:function(y,S){return S=void 0!==S?S:438,S&=4095,O.mknod(y,S|=32768,0)},mkdir:function(y,S){return S=void 0!==S?S:511,S&=1023,O.mknod(y,S|=16384,0)},mkdirTree:function(y,S){for(var P=y.split("/"),$="",dt=0;dt"u"&&(P=S,S=438),O.mknod(y,S|=8192,P)},symlink:function(y,S){if(!pt.resolve(y))throw new O.ErrnoError(44);var $=O.lookupPath(S,{parent:!0}).node;if(!$)throw new O.ErrnoError(44);var dt=Yt.basename(S),vt=O.mayCreate($,dt);if(vt)throw new O.ErrnoError(vt);if(!$.node_ops.symlink)throw new O.ErrnoError(63);return $.node_ops.symlink($,dt,y)},rename:function(y,S){var Rt,ne,P=Yt.dirname(y),$=Yt.dirname(S),dt=Yt.basename(y),vt=Yt.basename(S);if(Rt=O.lookupPath(y,{parent:!0}).node,ne=O.lookupPath(S,{parent:!0}).node,!Rt||!ne)throw new O.ErrnoError(44);if(Rt.mount!==ne.mount)throw new O.ErrnoError(75);var hn,ke=O.lookupNode(Rt,dt),tn=pt.relative(y,$);if("."!==tn.charAt(0))throw new O.ErrnoError(28);if("."!==(tn=pt.relative(S,P)).charAt(0))throw new O.ErrnoError(55);try{hn=O.lookupNode(ne,vt)}catch{}if(ke!==hn){var Ne=O.isDir(ke.mode),ze=O.mayDelete(Rt,dt,Ne);if(ze)throw new O.ErrnoError(ze);if(ze=hn?O.mayDelete(ne,vt,Ne):O.mayCreate(ne,vt))throw new O.ErrnoError(ze);if(!Rt.node_ops.rename)throw new O.ErrnoError(63);if(O.isMountpoint(ke)||hn&&O.isMountpoint(hn))throw new O.ErrnoError(10);if(ne!==Rt&&(ze=O.nodePermissions(Rt,"w")))throw new O.ErrnoError(ze);O.hashRemoveNode(ke);try{Rt.node_ops.rename(ke,ne,vt)}catch(bn){throw bn}finally{O.hashAddNode(ke)}}},rmdir:function(y){var P=O.lookupPath(y,{parent:!0}).node,$=Yt.basename(y),dt=O.lookupNode(P,$),vt=O.mayDelete(P,$,!0);if(vt)throw new O.ErrnoError(vt);if(!P.node_ops.rmdir)throw new O.ErrnoError(63);if(O.isMountpoint(dt))throw new O.ErrnoError(10);P.node_ops.rmdir(P,$),O.destroyNode(dt)},readdir:function(y){var P=O.lookupPath(y,{follow:!0}).node;if(!P.node_ops.readdir)throw new O.ErrnoError(54);return P.node_ops.readdir(P)},unlink:function(y){var P=O.lookupPath(y,{parent:!0}).node,$=Yt.basename(y),dt=O.lookupNode(P,$),vt=O.mayDelete(P,$,!1);if(vt)throw new O.ErrnoError(vt);if(!P.node_ops.unlink)throw new O.ErrnoError(63);if(O.isMountpoint(dt))throw new O.ErrnoError(10);P.node_ops.unlink(P,$),O.destroyNode(dt)},readlink:function(y){var P=O.lookupPath(y).node;if(!P)throw new O.ErrnoError(44);if(!P.node_ops.readlink)throw new O.ErrnoError(28);return pt.resolve(O.getPath(P.parent),P.node_ops.readlink(P))},stat:function(y,S){var $=O.lookupPath(y,{follow:!S}).node;if(!$)throw new O.ErrnoError(44);if(!$.node_ops.getattr)throw new O.ErrnoError(63);return $.node_ops.getattr($)},lstat:function(y){return O.stat(y,!0)},chmod:function(y,S,P){var $;if(!($="string"==typeof y?O.lookupPath(y,{follow:!P}).node:y).node_ops.setattr)throw new O.ErrnoError(63);$.node_ops.setattr($,{mode:4095&S|-4096&$.mode,timestamp:Date.now()})},lchmod:function(y,S){O.chmod(y,S,!0)},fchmod:function(y,S){var P=O.getStream(y);if(!P)throw new O.ErrnoError(8);O.chmod(P.node,S)},chown:function(y,S,P,$){var dt;if(!(dt="string"==typeof y?O.lookupPath(y,{follow:!$}).node:y).node_ops.setattr)throw new O.ErrnoError(63);dt.node_ops.setattr(dt,{timestamp:Date.now()})},lchown:function(y,S,P){O.chown(y,S,P,!0)},fchown:function(y,S,P){var $=O.getStream(y);if(!$)throw new O.ErrnoError(8);O.chown($.node,S,P)},truncate:function(y,S){if(S<0)throw new O.ErrnoError(28);var P;if(!(P="string"==typeof y?O.lookupPath(y,{follow:!0}).node:y).node_ops.setattr)throw new O.ErrnoError(63);if(O.isDir(P.mode))throw new O.ErrnoError(31);if(!O.isFile(P.mode))throw new O.ErrnoError(28);var dt=O.nodePermissions(P,"w");if(dt)throw new O.ErrnoError(dt);P.node_ops.setattr(P,{size:S,timestamp:Date.now()})},ftruncate:function(y,S){var P=O.getStream(y);if(!P)throw new O.ErrnoError(8);if(0==(2097155&P.flags))throw new O.ErrnoError(28);O.truncate(P.node,S)},utime:function(y,S,P){var dt=O.lookupPath(y,{follow:!0}).node;dt.node_ops.setattr(dt,{timestamp:Math.max(S,P)})},open:function(y,S,P,$,dt){if(""===y)throw new O.ErrnoError(44);var vt;if(P=typeof P>"u"?438:P,P=64&(S="string"==typeof S?O.modeStringToFlags(S):S)?4095&P|32768:0,"object"==typeof y)vt=y;else{y=Yt.normalize(y);try{vt=O.lookupPath(y,{follow:!(131072&S)}).node}catch{}}var Rt=!1;if(64&S)if(vt){if(128&S)throw new O.ErrnoError(20)}else vt=O.mknod(y,P,0),Rt=!0;if(!vt)throw new O.ErrnoError(44);if(O.isChrdev(vt.mode)&&(S&=-513),65536&S&&!O.isDir(vt.mode))throw new O.ErrnoError(54);if(!Rt){var ne=O.mayOpen(vt,S);if(ne)throw new O.ErrnoError(ne)}512&S&&O.truncate(vt,0),S&=-131713;var ke=O.createStream({node:vt,path:O.getPath(vt),id:vt.id,flags:S,mode:vt.mode,seekable:!0,position:0,stream_ops:vt.stream_ops,node_ops:vt.node_ops,ungotten:[],error:!1},$,dt);return ke.stream_ops.open&&ke.stream_ops.open(ke),E.logReadFiles&&!(1&S)&&(O.readFiles||(O.readFiles={}),y in O.readFiles||(O.readFiles[y]=1)),ke},close:function(y){if(O.isClosed(y))throw new O.ErrnoError(8);y.getdents&&(y.getdents=null);try{y.stream_ops.close&&y.stream_ops.close(y)}catch(S){throw S}finally{O.closeStream(y.fd)}y.fd=null},isClosed:function(y){return null===y.fd},llseek:function(y,S,P){if(O.isClosed(y))throw new O.ErrnoError(8);if(!y.seekable||!y.stream_ops.llseek)throw new O.ErrnoError(70);if(0!=P&&1!=P&&2!=P)throw new O.ErrnoError(28);return y.position=y.stream_ops.llseek(y,S,P),y.ungotten=[],y.position},read:function(y,S,P,$,dt){if($<0||dt<0)throw new O.ErrnoError(28);if(O.isClosed(y))throw new O.ErrnoError(8);if(1==(2097155&y.flags))throw new O.ErrnoError(8);if(O.isDir(y.node.mode))throw new O.ErrnoError(31);if(!y.stream_ops.read)throw new O.ErrnoError(28);var vt=typeof dt<"u";if(vt){if(!y.seekable)throw new O.ErrnoError(70)}else dt=y.position;var Et=y.stream_ops.read(y,S,P,$,dt);return vt||(y.position+=Et),Et},write:function(y,S,P,$,dt,vt){if($<0||dt<0)throw new O.ErrnoError(28);if(O.isClosed(y))throw new O.ErrnoError(8);if(0==(2097155&y.flags))throw new O.ErrnoError(8);if(O.isDir(y.node.mode))throw new O.ErrnoError(31);if(!y.stream_ops.write)throw new O.ErrnoError(28);y.seekable&&1024&y.flags&&O.llseek(y,0,2);var Et=typeof dt<"u";if(Et){if(!y.seekable)throw new O.ErrnoError(70)}else dt=y.position;var Rt=y.stream_ops.write(y,S,P,$,dt,vt);return Et||(y.position+=Rt),Rt},allocate:function(y,S,P){if(O.isClosed(y))throw new O.ErrnoError(8);if(S<0||P<=0)throw new O.ErrnoError(28);if(0==(2097155&y.flags))throw new O.ErrnoError(8);if(!O.isFile(y.node.mode)&&!O.isDir(y.node.mode))throw new O.ErrnoError(43);if(!y.stream_ops.allocate)throw new O.ErrnoError(138);y.stream_ops.allocate(y,S,P)},mmap:function(y,S,P,$,dt,vt){if(0!=(2&dt)&&0==(2&vt)&&2!=(2097155&y.flags))throw new O.ErrnoError(2);if(1==(2097155&y.flags))throw new O.ErrnoError(2);if(!y.stream_ops.mmap)throw new O.ErrnoError(43);return y.stream_ops.mmap(y,S,P,$,dt,vt)},msync:function(y,S,P,$,dt){return y&&y.stream_ops.msync?y.stream_ops.msync(y,S,P,$,dt):0},munmap:function(y){return 0},ioctl:function(y,S,P){if(!y.stream_ops.ioctl)throw new O.ErrnoError(59);return y.stream_ops.ioctl(y,S,P)},readFile:function(y,S){if((S=S||{}).flags=S.flags||0,S.encoding=S.encoding||"binary","utf8"!==S.encoding&&"binary"!==S.encoding)throw new Error('Invalid encoding type "'+S.encoding+'"');var P,$=O.open(y,S.flags),vt=O.stat(y).size,Et=new Uint8Array(vt);return O.read($,Et,0,vt,0),"utf8"===S.encoding?P=Oe(Et,0):"binary"===S.encoding&&(P=Et),O.close($),P},writeFile:function(y,S,P){(P=P||{}).flags=P.flags||577;var $=O.open(y,P.flags,P.mode);if("string"==typeof S){var dt=new Uint8Array(an(S)+1),vt=He(S,dt,0,dt.length);O.write($,dt,0,vt,void 0,P.canOwn)}else{if(!ArrayBuffer.isView(S))throw new Error("Unsupported data type");O.write($,S,0,S.byteLength,void 0,P.canOwn)}O.close($)},cwd:function(){return O.currentPath},chdir:function(y){var S=O.lookupPath(y,{follow:!0});if(null===S.node)throw new O.ErrnoError(44);if(!O.isDir(S.node.mode))throw new O.ErrnoError(54);var P=O.nodePermissions(S.node,"x");if(P)throw new O.ErrnoError(P);O.currentPath=S.path},createDefaultDirectories:function(){O.mkdir("/tmp"),O.mkdir("/home"),O.mkdir("/home/web_user")},createDefaultDevices:function(){O.mkdir("/dev"),O.registerDevice(O.makedev(1,3),{read:function(){return 0},write:function(S,P,$,dt,vt){return dt}}),O.mkdev("/dev/null",O.makedev(1,3)),mt.register(O.makedev(5,0),mt.default_tty_ops),mt.register(O.makedev(6,0),mt.default_tty1_ops),O.mkdev("/dev/tty",O.makedev(5,0)),O.mkdev("/dev/tty1",O.makedev(6,0));var y=function Q(){if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues){var y=new Uint8Array(1);return function(){return crypto.getRandomValues(y),y[0]}}return function(){sn("randomDevice")}}();O.createDevice("/dev","random",y),O.createDevice("/dev","urandom",y),O.mkdir("/dev/shm"),O.mkdir("/dev/shm/tmp")},createSpecialDirectories:function(){O.mkdir("/proc");var y=O.mkdir("/proc/self");O.mkdir("/proc/self/fd"),O.mount({mount:function(){var S=O.createNode(y,"fd",16895,73);return S.node_ops={lookup:function(P,$){var vt=O.getStream(+$);if(!vt)throw new O.ErrnoError(8);var Et={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:function(){return vt.path}}};return Et.parent=Et,Et}},S}},{},"/proc/self/fd")},createStandardStreams:function(){E.stdin?O.createDevice("/dev","stdin",E.stdin):O.symlink("/dev/tty","/dev/stdin"),E.stdout?O.createDevice("/dev","stdout",null,E.stdout):O.symlink("/dev/tty","/dev/stdout"),E.stderr?O.createDevice("/dev","stderr",null,E.stderr):O.symlink("/dev/tty1","/dev/stderr"),O.open("/dev/stdin",0),O.open("/dev/stdout",1),O.open("/dev/stderr",1)},ensureErrnoError:function(){O.ErrnoError||(O.ErrnoError=function(S,P){this.node=P,this.setErrno=function($){this.errno=$},this.setErrno(S),this.message="FS error"},O.ErrnoError.prototype=new Error,O.ErrnoError.prototype.constructor=O.ErrnoError,[44].forEach(function(y){O.genericErrors[y]=new O.ErrnoError(y),O.genericErrors[y].stack=""}))},staticInit:function(){O.ensureErrnoError(),O.nameTable=new Array(4096),O.mount(kt,{},"/"),O.createDefaultDirectories(),O.createDefaultDevices(),O.createSpecialDirectories(),O.filesystems={MEMFS:kt}},init:function(y,S,P){O.init.initialized=!0,O.ensureErrnoError(),E.stdin=y||E.stdin,E.stdout=S||E.stdout,E.stderr=P||E.stderr,O.createStandardStreams()},quit:function(){O.init.initialized=!1;var y=E._fflush;y&&y(0);for(var S=0;Sthis.length-1||Ne<0)){var ze=Ne%this.chunkSize;return this.getter(Ne/this.chunkSize|0)[ze]}},vt.prototype.setDataGetter=function(Ne){this.getter=Ne},vt.prototype.cacheLength=function(){var Ne=new XMLHttpRequest;if(Ne.open("HEAD",P,!1),Ne.send(null),!(Ne.status>=200&&Ne.status<300||304===Ne.status))throw new Error("Couldn't load "+P+". Status: "+Ne.status);var bn,ze=Number(Ne.getResponseHeader("Content-length")),Ei=(bn=Ne.getResponseHeader("Accept-Ranges"))&&"bytes"===bn,mr=(bn=Ne.getResponseHeader("Content-Encoding"))&&"gzip"===bn,Di=1048576;Ei||(Di=ze);var yi=this;yi.setDataGetter(function(Yi){var gr=Yi*Di,qn=(Yi+1)*Di-1;if(qn=Math.min(qn,ze-1),typeof yi.chunks[Yi]>"u"&&(yi.chunks[Yi]=function(Yi,gr){if(Yi>gr)throw new Error("invalid range ("+Yi+", "+gr+") or no bytes requested!");if(gr>ze-1)throw new Error("only "+ze+" bytes available! programmer error!");var qn=new XMLHttpRequest;if(qn.open("GET",P,!1),ze!==Di&&qn.setRequestHeader("Range","bytes="+Yi+"-"+gr),typeof Uint8Array<"u"&&(qn.responseType="arraybuffer"),qn.overrideMimeType&&qn.overrideMimeType("text/plain; charset=x-user-defined"),qn.send(null),!(qn.status>=200&&qn.status<300||304===qn.status))throw new Error("Couldn't load "+P+". Status: "+qn.status);return void 0!==qn.response?new Uint8Array(qn.response||[]):Vn(qn.responseText||"",!0)}(gr,qn)),typeof yi.chunks[Yi]>"u")throw new Error("doXHR failed!");return yi.chunks[Yi]}),(mr||!ze)&&(Di=ze=1,ze=this.getter(0).length,Di=ze,Ot("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=ze,this._chunkSize=Di,this.lengthKnown=!0},typeof XMLHttpRequest<"u")throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var Rt,ne=O.createFile(y,S,Rt={isDevice:!1,url:P},$,dt);Rt.contents?ne.contents=Rt.contents:Rt.url&&(ne.contents=null,ne.url=Rt.url),Object.defineProperties(ne,{usedBytes:{get:function(){return this.contents.length}}});var ke={};return Object.keys(ne.stream_ops).forEach(function(hn){var Ne=ne.stream_ops[hn];ke[hn]=function(){return O.forceLoadFile(ne),Ne.apply(null,arguments)}}),ke.read=function(Ne,ze,bn,Ei,mr){O.forceLoadFile(ne);var Di=Ne.node.contents;if(mr>=Di.length)return 0;var wr=Math.min(Di.length-mr,Ei);if(Di.slice)for(var yi=0;yi>2]=$.dev,ee[P+4>>2]=0,ee[P+8>>2]=$.ino,ee[P+12>>2]=$.mode,ee[P+16>>2]=$.nlink,ee[P+20>>2]=$.uid,ee[P+24>>2]=$.gid,ee[P+28>>2]=$.rdev,ee[P+32>>2]=0,z=[$.size>>>0,(pn=$.size,+Math.abs(pn)>=1?pn>0?(0|Math.min(+Math.floor(pn/4294967296),4294967295))>>>0:~~+Math.ceil((pn-+(~~pn>>>0))/4294967296)>>>0:0)],ee[P+40>>2]=z[0],ee[P+44>>2]=z[1],ee[P+48>>2]=4096,ee[P+52>>2]=$.blocks,ee[P+56>>2]=$.atime.getTime()/1e3|0,ee[P+60>>2]=0,ee[P+64>>2]=$.mtime.getTime()/1e3|0,ee[P+68>>2]=0,ee[P+72>>2]=$.ctime.getTime()/1e3|0,ee[P+76>>2]=0,z=[$.ino>>>0,(pn=$.ino,+Math.abs(pn)>=1?pn>0?(0|Math.min(+Math.floor(pn/4294967296),4294967295))>>>0:~~+Math.ceil((pn-+(~~pn>>>0))/4294967296)>>>0:0)],ee[P+80>>2]=z[0],ee[P+84>>2]=z[1],0},doMsync:function(y,S,P,$,dt){var vt=ce.slice(y,y+P);O.msync(S,vt,dt,P,$)},doMkdir:function(y,S){return"/"===(y=Yt.normalize(y))[y.length-1]&&(y=y.substr(0,y.length-1)),O.mkdir(y,S,0),0},doMknod:function(y,S,P){switch(61440&S){case 32768:case 8192:case 24576:case 4096:case 49152:break;default:return-28}return O.mknod(y,S,P),0},doReadlink:function(y,S,P){if(P<=0)return-28;var $=O.readlink(y),dt=Math.min(P,an($)),vt=Wt[S+dt];return function Ge(y,S,P){return He(y,ce,S,P)}($,S,P+1),Wt[S+dt]=vt,dt},doAccess:function(y,S){if(-8&S)return-28;var $=O.lookupPath(y,{follow:!0}).node;if(!$)return-44;var dt="";return 4&S&&(dt+="r"),2&S&&(dt+="w"),1&S&&(dt+="x"),dt&&O.nodePermissions($,dt)?-2:0},doDup:function(y,S,P){var $=O.getStream(P);return $&&O.close($),O.open(y,S,0,P,P).fd},doReadv:function(y,S,P,$){for(var dt=0,vt=0;vt>2],ne=O.read(y,Wt,ee[S+8*vt>>2],Rt,$);if(ne<0)return-1;if(dt+=ne,ne>2],ee[S+(8*vt+4)>>2],$);if(ne<0)return-1;dt+=ne}return dt},varargs:void 0,get:function(){return oe.varargs+=4,ee[oe.varargs-4>>2]},getStr:function(y){return Ee(y)},getStreamFromFD:function(y){var S=O.getStream(y);if(!S)throw new O.ErrnoError(8);return S},get64:function(y,S){return y}};var Zn=[];function je(y){try{return Kt.grow(y-Tt.byteLength+65535>>>16),Ye(Kt.buffer),1}catch{}}var Cn={};function ci(){if(!ci.strings){var S={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:Qt||"./this.program"};for(var P in Cn)void 0===Cn[P]?delete S[P]:S[P]=Cn[P];var $=[];for(var P in S)$.push(P+"="+S[P]);ci.strings=$}return ci.strings}var On=function(y,S,P,$){y||(y=this),this.parent=y,this.mount=y.mount,this.mounted=null,this.id=O.nextInode++,this.name=S,this.mode=P,this.node_ops={},this.stream_ops={},this.rdev=$};function Vn(y,S,P){var $=P>0?P:an(y)+1,dt=new Array($),vt=He(y,dt,0,dt.length);return S&&(dt.length=vt),dt}Object.defineProperties(On.prototype,{read:{get:function(){return 365==(365&this.mode)},set:function(y){y?this.mode|=365:this.mode&=-366}},write:{get:function(){return 146==(146&this.mode)},set:function(y){y?this.mode|=146:this.mode&=-147}},isFolder:{get:function(){return O.isDir(this.mode)}},isDevice:{get:function(){return O.isChrdev(this.mode)}}}),O.FSNode=On,O.staticInit();var nn={A:function Jt(y,S){return function Gt(y,S){var P;if(0===y)P=Date.now();else{if(1!==y&&4!==y)return Pt(28),-1;P=bt()}return ee[S>>2]=P/1e3|0,ee[S+4>>2]=P%1e3*1e3*1e3|0,0}(y,S)},B:function Se(y,S){try{return y=oe.getStr(y),oe.doAccess(y,S)}catch(P){if(typeof O>"u"||!(P instanceof O.ErrnoError))throw P;return-P.errno}},h:function Ce(y,S,P){oe.varargs=P;try{var $=oe.getStreamFromFD(y);switch(S){case 0:return(dt=oe.get())<0?-28:O.open($.path,$.flags,0,dt).fd;case 1:case 2:case 6:case 7:return 0;case 3:return $.flags;case 4:var dt=oe.get();return $.flags|=dt,0;case 5:return dt=oe.get(),_e[dt+0>>1]=2,0;case 16:case 8:default:return-28;case 9:return Pt(28),-1}}catch(Rt){if(typeof O>"u"||!(Rt instanceof O.ErrnoError))throw Rt;return-Rt.errno}},x:function Ke(y,S){try{var P=oe.getStreamFromFD(y);return oe.doStat(O.stat,P.path,S)}catch($){if(typeof O>"u"||!($ instanceof O.ErrnoError))throw $;return-$.errno}},u:function Pe(y,S,P,$){try{S=oe.getStr(S);var dt=256&$,vt=4096&$;return $&=-4353,S=oe.calculateAt(y,S,vt),oe.doStat(dt?O.lstat:O.stat,S,P)}catch(Et){if(typeof O>"u"||!(Et instanceof O.ErrnoError))throw Et;return-Et.errno}},y:function Be(y,S,P){oe.varargs=P;try{var $=oe.getStreamFromFD(y);switch(S){case 21509:case 21505:case 21510:case 21511:case 21512:case 21506:case 21507:case 21508:case 21523:case 21524:return $.tty?0:-59;case 21519:if(!$.tty)return-59;var dt=oe.get();return ee[dt>>2]=0,0;case 21520:return $.tty?-28:-59;case 21531:return dt=oe.get(),O.ioctl($,S,dt);default:sn("bad ioctl syscall "+S)}}catch(vt){if(typeof O>"u"||!(vt instanceof O.ErrnoError))throw vt;return-vt.errno}},k:function me(y,S,P,$,dt,vt){try{return function ue(y,S,P,$,dt,vt){vt<<=12;var Et,Rt=!1;if(0!=(16&$)&&y%65536!=0)return-28;if(0!=(32&$)){if(!(Et=Xt(S)))return-48;Rt=!0}else{var ne=O.getStream(dt);if(!ne)return-8;var ke=O.mmap(ne,y,S,vt,P,$);Et=ke.ptr,Rt=ke.allocated}return oe.mappings[Et]={malloc:Et,len:S,allocated:Rt,fd:dt,prot:P,flags:$,offset:vt},Et}(y,S,P,$,dt,vt)}catch(Et){if(typeof O>"u"||!(Et instanceof O.ErrnoError))throw Et;return-Et.errno}},j:function fn(y,S){try{return function Fe(y,S){var P=oe.mappings[y];if(0===S||!P)return-28;if(S===P.len){var $=O.getStream(P.fd);$&&2&P.prot&&oe.doMsync(y,$,S,P.flags,P.offset),oe.mappings[y]=null,P.allocated&&xt(P.malloc)}return 0}(y,S)}catch(P){if(typeof O>"u"||!(P instanceof O.ErrnoError))throw P;return-P.errno}},e:function cn(y,S,P){oe.varargs=P;try{var $=oe.getStr(y),dt=P?oe.get():0;return O.open($,S,dt).fd}catch(Et){if(typeof O>"u"||!(Et instanceof O.ErrnoError))throw Et;return-Et.errno}},v:function $e(y,S){try{return y=oe.getStr(y),oe.doStat(O.stat,y,S)}catch(P){if(typeof O>"u"||!(P instanceof O.ErrnoError))throw P;return-P.errno}},z:function Qe(y){try{return y=oe.getStr(y),O.unlink(y),0}catch(S){if(typeof O>"u"||!(S instanceof O.ErrnoError))throw S;return-S.errno}},r:function wn(){throw"longjmp"},q:function Bn(){sn("")},C:function Pi(y,S,P){var $=function Hn(y,S){var P;for(Zn.length=0,S>>=2;P=ce[y++];){var $=P<105;$&&1&S&&S++,Zn.push($?Ze[S++>>1]:ee[S]),++S}return Zn}(S,P);return X[y].apply(null,$)},o:function he(y,S,P){ce.copyWithin(y,S,S+P)},p:function vn(y){var S=ce.length,P=2147483648;if((y>>>=0)>P)return!1;for(var $=1;$<=4;$*=2){var dt=S*(1+.2/$);if(dt=Math.min(dt,y+100663296),je(Math.min(P,ln(Math.max(y,dt),65536))))return!0}return!1},s:function vi(y,S){var P=0;return ci().forEach(function($,dt){var vt=S+P;ee[y+4*dt>>2]=vt,function be(y,S,P){for(var $=0;$>0]=y.charCodeAt($);P||(Wt[S>>0]=0)}($,vt),P+=$.length+1}),0},t:function Qn(y,S){var P=ci();ee[y>>2]=P.length;var $=0;return P.forEach(function(dt){$+=dt.length+1}),ee[S>>2]=$,0},a:function Zi(y){!function tr(y,S){!function xi(y){(function Si(){return Zt||!1})()||(E.onExit&&E.onExit(y),xe=!0),pe(y,new _n(y))}(y)}(y)},d:function jn(y){try{var S=oe.getStreamFromFD(y);return O.close(S),0}catch(P){if(typeof O>"u"||!(P instanceof O.ErrnoError))throw P;return P.errno}},i:function bi(y,S,P,$){try{var dt=oe.getStreamFromFD(y),vt=oe.doReadv(dt,S,P);return ee[$>>2]=vt,0}catch(Et){if(typeof O>"u"||!(Et instanceof O.ErrnoError))throw Et;return Et.errno}},n:function mn(y,S,P,$,dt){try{var vt=oe.getStreamFromFD(y),Rt=4294967296*P+(S>>>0),ne=9007199254740992;return Rt<=-ne||Rt>=ne?-61:(O.llseek(vt,Rt,$),z=[vt.position>>>0,(pn=vt.position,+Math.abs(pn)>=1?pn>0?(0|Math.min(+Math.floor(pn/4294967296),4294967295))>>>0:~~+Math.ceil((pn-+(~~pn>>>0))/4294967296)>>>0:0)],ee[dt>>2]=z[0],ee[dt+4>>2]=z[1],vt.getdents&&0===Rt&&0===$&&(vt.getdents=null),0)}catch(ke){if(typeof O>"u"||!(ke instanceof O.ErrnoError))throw ke;return ke.errno}},g:function un(y,S,P,$){try{var dt=oe.getStreamFromFD(y),vt=oe.doWritev(dt,S,P);return ee[$>>2]=vt,0}catch(Et){if(typeof O>"u"||!(Et instanceof O.ErrnoError))throw Et;return Et.errno}},c:function ui(){return jt},w:function Ji(y){var S=Date.now();return ee[y>>2]=S/1e3|0,ee[y+4>>2]=S%1e3*1e3|0,0},l:function Ie(y,S,P,$,dt,vt,Et){var Rt=Bt();try{return A(y)(S,P,$,dt,vt,Et)}catch(ne){if(ae(Rt),ne!==ne+0&&"longjmp"!==ne)throw ne;Ae(1,0)}},m:function qe(y,S){var P=Bt();try{A(y)(S)}catch($){if(ae(P),$!==$+0&&"longjmp"!==$)throw $;Ae(1,0)}},b:function hi(y){!function(y){jt=y}(y)},f:function Hi(y){var S=Date.now()/1e3|0;return y&&(ee[y>>2]=S),S}};(function Nn(){var y={a:nn};function S(Et,Rt){E.asm=Et.exports,Ye((Kt=E.asm.D).buffer),Tn=E.asm.M,function Qi(y){Mi.unshift(y)}(E.asm.E),gn()}function P(Et){S(Et.instance)}function $(Et){return function Bi(){return Ht||"function"!=typeof fetch?Promise.resolve().then(function(){return we(Ln)}):fetch(Ln,{credentials:"same-origin"}).then(function(y){if(!y.ok)throw"failed to load wasm binary file at '"+Ln+"'";return y.arrayBuffer()}).catch(function(){return we(Ln)})}().then(function(Rt){return WebAssembly.instantiate(Rt,y)}).then(function(Rt){return Rt}).then(Et,function(Rt){te("failed to asynchronously prepare wasm: "+Rt),sn(Rt)})}if(In(),E.instantiateWasm)try{return E.instantiateWasm(y,S)}catch(Et){return te("Module.instantiateWasm callback failed with error: "+Et),!1}return function dt(){return Ht||"function"!=typeof WebAssembly.instantiateStreaming||li(Ln)||"function"!=typeof fetch?$(P):fetch(Ln,{credentials:"same-origin"}).then(function(Et){return WebAssembly.instantiateStreaming(Et,y).then(P,function(ne){return te("wasm streaming compile failed: "+ne),te("falling back to ArrayBuffer instantiation"),$(P)})})}().catch(ft),{}})(),E.___wasm_call_ctors=function(){return(E.___wasm_call_ctors=E.asm.E).apply(null,arguments)};var Ti=E._emscripten_bind_VoidPtr___destroy___0=function(){return(Ti=E._emscripten_bind_VoidPtr___destroy___0=E.asm.F).apply(null,arguments)},kn=E._emscripten_bind_Graphviz_Graphviz_2=function(){return(kn=E._emscripten_bind_Graphviz_Graphviz_2=E.asm.G).apply(null,arguments)},b=E._emscripten_bind_Graphviz_version_0=function(){return(b=E._emscripten_bind_Graphviz_version_0=E.asm.H).apply(null,arguments)},k=E._emscripten_bind_Graphviz_lastError_0=function(){return(k=E._emscripten_bind_Graphviz_lastError_0=E.asm.I).apply(null,arguments)},V=E._emscripten_bind_Graphviz_layout_3=function(){return(V=E._emscripten_bind_Graphviz_layout_3=E.asm.J).apply(null,arguments)},it=E._emscripten_bind_Graphviz_createFile_2=function(){return(it=E._emscripten_bind_Graphviz_createFile_2=E.asm.K).apply(null,arguments)},ht=E._emscripten_bind_Graphviz___destroy___0=function(){return(ht=E._emscripten_bind_Graphviz___destroy___0=E.asm.L).apply(null,arguments)};E._malloc=function(){return(E._malloc=E.asm.N).apply(null,arguments)};var Me,xt=E._free=function(){return(xt=E._free=E.asm.O).apply(null,arguments)},Mt=E.___errno_location=function(){return(Mt=E.___errno_location=E.asm.P).apply(null,arguments)},Bt=E.stackSave=function(){return(Bt=E.stackSave=E.asm.Q).apply(null,arguments)},ae=E.stackRestore=function(){return(ae=E.stackRestore=E.asm.R).apply(null,arguments)},Ae=E._setThrew=function(){return(Ae=E._setThrew=E.asm.S).apply(null,arguments)},We=E._memalign=function(){return(We=E._memalign=E.asm.T).apply(null,arguments)};function _n(y){this.name="ExitStatus",this.message="Program terminated with exit("+y+")",this.status=y}function Jn(y){function S(){Me||(Me=!0,E.calledRun=!0,!xe&&(function Fi(){!E.noFSInit&&!O.init.initialized&&O.init(),O.ignorePermissions=!1,lt(Mi)}(),ut(E),E.onRuntimeInitialized&&E.onRuntimeInitialized(),function Ni(){if(E.postRun)for("function"==typeof E.postRun&&(E.postRun=[E.postRun]);E.postRun.length;)y=E.postRun.shift(),mi.unshift(y);var y;lt(mi)}()))}fe>0||(function qi(){if(E.preRun)for("function"==typeof E.preRun&&(E.preRun=[E.preRun]);E.preRun.length;)y=E.preRun.shift(),oi.unshift(y);var y;lt(oi)}(),fe>0)||(E.setStatus?(E.setStatus("Running..."),setTimeout(function(){setTimeout(function(){E.setStatus("")},1),S()},1)):S())}if(Sn=function y(){Me||Jn(),Me||(Sn=y)},E.run=Jn,E.preInit)for("function"==typeof E.preInit&&(E.preInit=[E.preInit]);E.preInit.length>0;)E.preInit.pop()();function Yn(){}function Mn(y){return(y||Yn).__cache__}function Kn(y,S){var P=Mn(S),$=P[y];return $||(($=Object.create((S||Yn).prototype)).ptr=y,P[y]=$)}Jn(),(Yn.prototype=Object.create(Yn.prototype)).constructor=Yn,Yn.prototype.__class__=Yn,Yn.__cache__={},E.WrapperObject=Yn,E.getCache=Mn,E.wrapPointer=Kn,E.castObject=function sr(y,S){return Kn(y.ptr,S)},E.NULL=Kn(0),E.destroy=function Pn(y){if(!y.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";y.__destroy__(),delete Mn(y.__class__)[y.ptr]},E.compare=function Ha(y,S){return y.ptr===S.ptr},E.getPointer=function ea(y){return y.ptr},E.getClass=function va(y){return y.__class__};var Ve={buffer:0,size:0,pos:0,temps:[],needed:0,prepare:function(){if(Ve.needed){for(var y=0;y=Ve.size?(Te($>0),Ve.needed+=$,dt=E._malloc($),Ve.temps.push(dt)):(dt=Ve.buffer+Ve.pos,Ve.pos+=$),dt},copy:function(y,S,P){switch(P>>>=0,S.BYTES_PER_ELEMENT){case 2:P>>>=1;break;case 4:P>>>=2;break;case 8:P>>>=3}for(var dt=0;dt\n\n')}}function st(Y,nt){var rt=H({images:[],files:[]},nt);G(G([],rt.files,!0),function K(Y){return Y.map(tt)}(rt.images),!0).forEach(function(q){return Y.createFile(q.path,q.data)})}var W={layout:function(Y,nt,rt,q){return void 0===nt&&(nt="svg"),void 0===rt&&(rt="dot"),Y?u(Z,q?.wasmFolder,q?.wasmBinary).then(function(F){var E=new F.Graphviz(void 0!==q?.yInvert&&q?.yInvert,void 0!==q?.nop?q?.nop:0);st(E,q);var ut=E.layout(Y,nt,rt);if(F.destroy(E),!ut)throw new Error(F.Graphviz.prototype.lastError());return ut}):Promise.resolve("")},circo:function(Y,nt,rt){return void 0===nt&&(nt="svg"),this.layout(Y,nt,"circo",rt)},dot:function(Y,nt,rt){return void 0===nt&&(nt="svg"),this.layout(Y,nt,"dot",rt)},fdp:function(Y,nt,rt){return void 0===nt&&(nt="svg"),this.layout(Y,nt,"fdp",rt)},sfdp:function(Y,nt,rt){return void 0===nt&&(nt="svg"),this.layout(Y,nt,"sfdp",rt)},neato:function(Y,nt,rt){return void 0===nt&&(nt="svg"),this.layout(Y,nt,"neato",rt)},osage:function(Y,nt,rt){return void 0===nt&&(nt="svg"),this.layout(Y,nt,"osage",rt)},patchwork:function(Y,nt,rt){return void 0===nt&&(nt="svg"),this.layout(Y,nt,"patchwork",rt)},twopi:function(Y,nt,rt){return void 0===nt&&(nt="svg"),this.layout(Y,nt,"twopi",rt)}},et=function(){function Y(nt){this._wasm=nt}return Y.prototype.layout=function(nt,rt,q,F){if(void 0===rt&&(rt="svg"),void 0===q&&(q="dot"),!nt)return"";var E=new this._wasm.Graphviz(F?.yInvert?1:0,F?.nop?F?.nop:0);st(E,F);var ut=E.layout(nt,rt,q);if(this._wasm.destroy(E),!ut)throw new Error(this._wasm.Graphviz.prototype.lastError());return ut},Y.prototype.circo=function(nt,rt,q){return void 0===rt&&(rt="svg"),this.layout(nt,rt,"circo",q)},Y.prototype.dot=function(nt,rt,q){return void 0===rt&&(rt="svg"),this.layout(nt,rt,"dot",q)},Y.prototype.fdp=function(nt,rt,q){return void 0===rt&&(rt="svg"),this.layout(nt,rt,"fdp",q)},Y.prototype.sfdp=function(nt,rt,q){return void 0===rt&&(rt="svg"),this.layout(nt,rt,"sfdp",q)},Y.prototype.neato=function(nt,rt,q){return void 0===rt&&(rt="svg"),this.layout(nt,rt,"neato",q)},Y.prototype.osage=function(nt,rt,q){return void 0===rt&&(rt="svg"),this.layout(nt,rt,"osage",q)},Y.prototype.patchwork=function(nt,rt,q){return void 0===rt&&(rt="svg"),this.layout(nt,rt,"patchwork",q)},Y.prototype.twopi=function(nt,rt,q){return void 0===rt&&(rt="svg"),this.layout(nt,rt,"twopi",q)},Y}();s.GraphvizSync=et,s.StackElement=g,s.StackParser=C,s.expatVersion=function I(Y,nt){return u(m,Y,nt).then(function(rt){return rt.CExpat.prototype.version()})},s.graphviz=W,s.graphvizSync=function at(Y,nt){return u(Z,Y,nt).then(function(rt){return new et(rt)})},s.graphvizVersion=function j(Y,nt){return u(Z,Y,nt).then(function(rt){return rt.Graphviz.prototype.version()})},s.parse=B,s.wasmFolder=l,Object.defineProperty(s,"__esModule",{value:!0})}(D)},72705:(w,D,s)=>{"use strict";s.r(D),s.d(D,{AdminModule:()=>Wy});var c={};s.r(c),s.d(c,{forceCenter:()=>Td,forceCollide:()=>Ho,forceLink:()=>Qo,forceManyBody:()=>Jo,forceRadial:()=>Qd,forceSimulation:()=>jo,forceX:()=>jd,forceY:()=>Jd});var x={};s.r(x),s.d(x,{dispatch:()=>Ta.Z});var _={};s.r(_),s.d(_,{interval:()=>qd,now:()=>or.zO,timeout:()=>ja.Z,timer:()=>or.HT,timerFlush:()=>or.R8});var m=s(36895),p=s(94364),t=s(94650),d=s(77968),l=s(97392),h=s(61283),f=s(4235),u=s(89383);const g=function(){return{color:"black"}};let C=(()=>{class n{constructor(e){this.sideMenuService=e}ngOnInit(){this.sideMenuService.setAdminItems([])}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(d.D))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-admin-page"]],decls:7,vars:5,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","admin-theme"],[1,"page-title","d-flex"],["svgIcon","perun-perun-admin",1,"perun-icon","icon-scale",3,"ngStyle"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"perun-web-apps-back-button"),t.TgZ(2,"h1",1),t._UZ(3,"mat-icon",2),t._uU(4),t.ALo(5,"translate"),t.qZA(),t._UZ(6,"app-animated-router-outlet"),t.qZA()),2&e&&(t.xp6(3),t.Q6J("ngStyle",t.DdM(4,g)),t.xp6(1),t.hij(" ",t.lcZ(5,2,"ADMIN.TITLE")," "))},dependencies:[m.PC,l.Hw,h.A,f.W,u.X$]}),n})();var L=s(71135);let I=(()=>{class n{constructor(){this.navItems=[{cssIcon:"perun-attributes",url:"/admin/attributes",label:"MENU_ITEMS.ADMIN.ATTRIBUTES",style:"admin-btn"},{cssIcon:"perun-user",url:"/admin/users",label:"MENU_ITEMS.ADMIN.USERS",style:"admin-btn"},{cssIcon:"perun-owner-grey",url:"/admin/owners",label:"MENU_ITEMS.ADMIN.OWNERS",style:"admin-btn"},{cssIcon:"perun-service",url:"/admin/services",label:"MENU_ITEMS.ADMIN.SERVICES",style:"admin-btn"},{cssIcon:"perun-preview",url:"/admin/visualizer",label:"MENU_ITEMS.ADMIN.VISUALIZER",style:"admin-btn"},{cssIcon:"perun-external-sources",url:"/admin/ext_sources",label:"MENU_ITEMS.ADMIN.EXT_SOURCES",style:"admin-btn"},{cssIcon:"perun-audit-log",url:"/admin/audit_log",label:"MENU_ITEMS.ADMIN.AUDIT_LOG",style:"admin-btn"},{cssIcon:"perun-consent-hubs",url:"/admin/consent_hubs",label:"MENU_ITEMS.ADMIN.CONSENT_HUBS",style:"admin-btn"},{cssIcon:"perun-searcher",url:"/admin/searcher",label:"MENU_ITEMS.ADMIN.SEARCHER",style:"admin-btn"}]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-admin-overview"]],hostVars:2,hostBindings:function(e,i){2&e&&t.ekj("router-component",i.true)},decls:2,vars:2,consts:[[3,"items","size"]],template:function(e,i){1&e&&(t.TgZ(0,"div"),t._UZ(1,"perun-web-apps-menu-buttons-field",0),t.qZA()),2&e&&(t.xp6(1),t.Q6J("items",i.navItems)("size","small"))},dependencies:[L.L]}),n})();var B=s(95017),M=s(65412),R=s(30671),Z=s(81591),H=s(61744),G=s(4859),tt=s(51572),K=s(98380);function st(n,r){1&n&&t._UZ(0,"mat-spinner",6)}function j(n,r){1&n&&t._UZ(0,"th",16)}function W(n,r){if(1&n&&(t.TgZ(0,"td",17),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(e.friendlyName)}}function et(n,r){1&n&&t._UZ(0,"tr",18)}function at(n,r){1&n&&t._UZ(0,"tr",19)}function Y(n,r){if(1&n&&(t.TgZ(0,"div",7)(1,"div"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",8),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",9),t.ynx(8,10),t.YNc(9,j,1,0,"th",11),t.YNc(10,W,2,1,"td",12),t.BQk(),t.YNc(11,et,1,0,"tr",13),t.YNc(12,at,1,0,"tr",14),t.qZA(),t.TgZ(13,"perun-web-apps-alert",15),t._uU(14),t.ALo(15,"translate"),t.qZA()()),2&n){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,6,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.TEXT_LINE1")," "),t.xp6(3),t.hij(" ",t.lcZ(6,8,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.TEXT_LINE2")," "),t.xp6(2),t.Q6J("dataSource",e.dataSource),t.xp6(4),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns),t.xp6(2),t.hij(" ",t.lcZ(15,10,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.WARNING")," ")}}let nt=(()=>{class n{constructor(e,i,a,o,v){this.dialogRef=e,this.data=i,this.notificator=a,this.translate=o,this.attributesManager=v,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new R.by(this.data.attributes)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;const e=[];for(const i of this.data.attributes)e.push(i.id);this.attributesManager.deleteAttributeDefinitions(e).subscribe(()=>{this.translate.get("DIALOGS.DELETE_ATTRIBUTE_DEFINITION.SUCCESS").subscribe(i=>{this.notificator.showSuccess(i),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(M.WI),t.Y36(Z.V6),t.Y36(u.sK),t.Y36(H.H8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-delete-attribute-definition-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",1,"mt-3"],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","","data-cy","confirm-delete-attr-definition-button",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",1,"mt-3"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,st,1,0,"mat-spinner",1),t.YNc(5,Y,16,12,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return i.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return i.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.Tol(i.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.TITLE")),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",i.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.CONFIRM")," "))},dependencies:[m.O5,G.lW,R.BZ,R.fO,R.as,R.w1,R.Dz,R.nj,R.ge,R.ev,R.XQ,R.Gk,M.uh,M.xY,M.H8,tt.Ou,K.w,u.X$]}),n})();var rt=s(24006),q=s(78372),F=s(63900),E=s(61135),ut=s(69751),ft=s(38421),Dt=s(75797),St=s(60515),Qt=s(25403),pe=s(63269);function wt(...n){const r=(0,pe.jO)(n),e=(0,Dt.k)(n);return e.length?new ut.y(i=>{let a=e.map(()=>[]),o=e.map(()=>!1);i.add(()=>{a=o=null});for(let v=0;!i.closed&&v{if(a[v].push(T),a.every(N=>N.length)){const N=a.map(U=>U.shift());i.next(r?r(...N):N),a.some((U,J)=>!U.length&&o[J])&&i.complete()}},()=>{o[v]=!0,!a[v].length&&i.complete()}));return()=>{a=o=null}}):St.E}var yt=s(39646),Nt=s(19516),zt=s(3238),de=s(39349),ie=s(59549),Ot=s(284),te=s(84385),jt=s(3848),se=s(23123);function At(n,r){if(1&n&&(t.TgZ(0,"mat-option",7),t._uU(1),t.ALo(2,"displayedRole"),t.qZA()),2&n){const e=r.$implicit;t.Q6J("value",e.roleName),t.xp6(1),t.hij(" ",t.lcZ(2,2,e)," ")}}function Ht(n,r){if(1&n&&(t.TgZ(0,"mat-option",7),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.Oqu(e)}}let Zt=(()=>{class n{constructor(e){this.attrRightsService=e,this.policyRemoved=new t.vpe,this.roles=this.attrRightsService.getRoles()}ngOnInit(){this.selectedRole=new E.X(this.policy.role),this.objects=this.selectedRole.pipe((0,F.w)(e=>this.attrRightsService.getObjects(e)))}changeRole(e){this.selectedRole.next(e.value),this.policy.object="None"}remove(){this.policyRemoved.emit()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Z.eE))},n.\u0275cmp=t.Xpm({type:n,selectors:[["perun-web-apps-attribute-rights-item"]],inputs:{policy:"policy"},outputs:{policyRemoved:"policyRemoved"},decls:14,vars:14,consts:[[1,"flex-row"],[1,"grow-item"],[3,"ngModel","placeholder","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModel","placeholder","ngModelChange"],["color","warn","mat-icon-button","",1,"close-button",3,"click"],["inline","true"],[3,"value"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"mat-form-field",1)(2,"mat-select",2),t.NdJ("ngModelChange",function(o){return i.policy.role=o})("selectionChange",function(o){return i.changeRole(o)}),t.ALo(3,"translate"),t.YNc(4,At,3,4,"mat-option",3),t.ALo(5,"async"),t.qZA()(),t.TgZ(6,"mat-form-field")(7,"mat-select",4),t.NdJ("ngModelChange",function(o){return i.policy.object=o}),t.ALo(8,"translate"),t.YNc(9,Ht,2,2,"mat-option",3),t.ALo(10,"async"),t.qZA()(),t.TgZ(11,"button",5),t.NdJ("click",function(){return i.remove()}),t.TgZ(12,"mat-icon",6),t._uU(13,"remove_circle"),t.qZA()()()),2&e&&(t.xp6(2),t.s9C("placeholder",t.lcZ(3,6,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_RIGHTS.ROLE")),t.Q6J("ngModel",i.policy.role),t.xp6(2),t.Q6J("ngForOf",t.lcZ(5,8,i.roles)),t.xp6(3),t.s9C("placeholder",t.lcZ(8,10,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_RIGHTS.ENTITY")),t.Q6J("ngModel",i.policy.object),t.xp6(2),t.Q6J("ngForOf",t.lcZ(10,12,i.objects)))},dependencies:[m.sg,rt.JJ,rt.On,l.Hw,G.lW,ie.KE,zt.ey,te.gD,m.Ov,u.X$,se.i],styles:[".flex-row[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:row;justify-content:flex-start;align-items:flex-start;background:white;border-radius:1em;padding:1em 1em 0}.grow-item[_ngcontent-%COMP%]{flex-grow:2;margin:0 1em}.close-button[_ngcontent-%COMP%]{position:absolute;font-size:1.3em;top:-15px;right:-15px;z-index:100}"]}),n})();function Kt(n,r){1&n&&(t.TgZ(0,"div",9),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_RIGHTS.AND")," "))}function xe(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div")(1,"perun-web-apps-attribute-rights-item",7),t.NdJ("policyRemoved",function(){const o=t.CHM(e).index,v=t.oxw(2);return t.KtG(v.removePolicy(o))}),t.qZA(),t.YNc(2,Kt,3,3,"div",8),t.qZA()}if(2&n){const e=r.$implicit,i=r.index,a=t.oxw(2);t.xp6(1),t.Q6J("policy",e),t.xp6(1),t.Q6J("ngIf",i!==a.collection.policies.length-1)}}function Te(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",1)(1,"div",2),t.YNc(2,xe,3,2,"div",3),t.qZA(),t.TgZ(3,"div",4)(4,"button",5),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.removeCollection())}),t.TgZ(5,"mat-icon"),t._uU(6,"delete"),t.qZA()(),t.TgZ(7,"button",6),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.addPolicy())}),t.TgZ(8,"mat-icon"),t._uU(9,"add_circle"),t.qZA()()()()}if(2&n){const e=t.oxw();t.xp6(2),t.Q6J("ngForOf",e.collection.policies)}}let Le=(()=>{class n{constructor(){this.collectionRemoved=new t.vpe}addPolicy(){this.collection.policies.push({id:-1,role:null,object:null,policyCollectionId:this.collection.id})}removePolicy(e){this.collection.policies.splice(e,1),0===this.collection.policies.length&&this.removeCollection()}removeCollection(){this.collectionRemoved.emit()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["perun-web-apps-attribute-rights-collection"]],inputs:{collection:"collection"},outputs:{collectionRemoved:"collectionRemoved"},decls:1,vars:1,consts:[["class","collection",4,"ngIf"],[1,"collection"],[1,"column","role-selection"],[4,"ngFor","ngForOf"],[1,"column","controls"],["mat-icon-button","",3,"click"],["color","accent","mat-icon-button","",3,"click"],[3,"policy","policyRemoved"],["class","divider",4,"ngIf"],[1,"divider"]],template:function(e,i){1&e&&t.YNc(0,Te,10,1,"div",0),2&e&&t.Q6J("ngIf",i.collection)},dependencies:[m.sg,m.O5,l.Hw,G.lW,Zt,u.X$],styles:[".collection[_ngcontent-%COMP%]{background-color:#0000001a;padding:1em;border-radius:1em;margin-top:1em;display:flex;flex-direction:row;justify-content:center;align-items:center;gap:1em}.column[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1em}.role-selection[_ngcontent-%COMP%]{flex-grow:2}.controls[_ngcontent-%COMP%]{align-items:flex-end;justify-content:center}.divider[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-top:1em}"]}),n})();function Oe(n,r){1&n&&(t.TgZ(0,"div",7),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_RIGHTS.OR")," "))}function Ee(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div")(1,"perun-web-apps-attribute-rights-collection",5),t.NdJ("collectionRemoved",function(){const o=t.CHM(e).index,v=t.oxw();return t.KtG(v.removeCollection(o))}),t.qZA(),t.YNc(2,Oe,3,3,"div",6),t.qZA()}if(2&n){const e=r.$implicit,i=r.index,a=t.oxw();t.xp6(1),t.Q6J("collection",e.action===a.action?e:null),t.xp6(1),t.Q6J("ngIf",i!==a.lastIndex&&e.action===a.action)}}let He=(()=>{class n{ngOnChanges(){this.lastIndex=this.findLastIndex()}addCollection(){this.collections.push({id:-1,attributeId:this.attributeId,action:this.action,policies:[{id:-1,role:null,object:null,policyCollectionId:-1}]}),this.lastIndex=this.findLastIndex()}removeCollection(e){this.collections.splice(e,1),this.lastIndex=this.findLastIndex()}findLastIndex(){let e=0;for(let i=0;i{class n{constructor(){this.collections=[],this.actionTabs=["READ","WRITE"]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["perun-web-apps-attribute-rights-tab-group"]],inputs:{attDef:"attDef",collections:"collections"},decls:2,vars:1,consts:[[4,"ngFor","ngForOf"],["matTabLabel",""],[3,"attributeId","collections","action"]],template:function(e,i){1&e&&(t.TgZ(0,"mat-tab-group"),t.YNc(1,an,3,3,"mat-tab",0),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngForOf",i.actionTabs))},dependencies:[m.sg,jt.SP,jt.uD,jt.uX,He,u.X$]}),n})();var ln=s(10266),Tt=s(90455),Wt=s(4765);function ce(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",1),t.ALo(1,"translate"),t.TgZ(2,"mat-slide-toggle",2),t.NdJ("ngModelChange",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.attDef.unique=a)}),t._uU(3),t.ALo(4,"translate"),t.qZA()()}if(2&n){const e=r.ngIf,i=t.oxw();t.s9C("matTooltip",t.lcZ(1,5,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_UNIQUE_TOGGLE.TOOLTIP")),t.Q6J("matTooltipDisabled",!e.disable),t.xp6(2),t.Q6J("ngModel",i.attDef.unique)("disabled",e.disable),t.xp6(1),t.hij(" ",t.lcZ(4,7,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_UNIQUE_TOGGLE.UNIQUE")," ")}}const _e=function(n){return{disable:n}};let ee=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["perun-web-apps-attribute-unique-toggle"]],inputs:{attDef:"attDef"},decls:2,vars:5,consts:[["class","unique-toggle-container","matTooltipPosition","above",3,"matTooltipDisabled","matTooltip",4,"ngIf"],["matTooltipPosition","above",1,"unique-toggle-container",3,"matTooltipDisabled","matTooltip"],["color","accent","labelPosition","before",3,"ngModel","disabled","ngModelChange"]],template:function(e,i){1&e&&(t.YNc(0,ce,5,9,"div",0),t.ALo(1,"disableUniqueAttribute")),2&e&&t.Q6J("ngIf",t.VKq(3,_e,t.lcZ(1,1,i.attDef)))},dependencies:[m.O5,rt.JJ,rt.On,ln.gM,Tt.Rr,u.X$,Wt.b],styles:[".unique-toggle-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;margin:1em 0;width:-moz-fit-content;width:fit-content;font-size:1.125rem}"]}),n})(),Ze=(()=>{class n{constructor(){this.readOperation=!1,this.writeOperation=!1,this.readOperationChanged=new t.vpe,this.writeOperationChanged=new t.vpe}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["perun-web-apps-attribute-critical-operations-toggles"]],inputs:{readOperation:"readOperation",writeOperation:"writeOperation"},outputs:{readOperationChanged:"readOperationChanged",writeOperationChanged:"writeOperationChanged"},decls:10,vars:11,consts:[["color","accent","labelPosition","before",1,"toggle-font",3,"ngModel","ngModelChange","toggleChange"],["alert_type","info"]],template:function(e,i){1&e&&(t.TgZ(0,"mat-slide-toggle",0),t.NdJ("ngModelChange",function(o){return i.readOperation=o})("toggleChange",function(){return i.readOperationChanged.emit(!i.readOperation)}),t._uU(1),t.ALo(2,"translate"),t.qZA(),t._UZ(3,"br"),t.TgZ(4,"mat-slide-toggle",0),t.NdJ("ngModelChange",function(o){return i.writeOperation=o})("toggleChange",function(){return i.writeOperationChanged.emit(!i.writeOperation)}),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"perun-web-apps-alert",1),t._uU(8),t.ALo(9,"translate"),t.qZA()),2&e&&(t.Q6J("ngModel",i.readOperation),t.xp6(1),t.hij(" ",t.lcZ(2,5,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_CRITICAL_OPERATIONS_TOGGLE.READ"),"\n"),t.xp6(3),t.Q6J("ngModel",i.writeOperation),t.xp6(1),t.hij(" ",t.lcZ(6,7,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_CRITICAL_OPERATIONS_TOGGLE.WRITE"),"\n"),t.xp6(3),t.hij(" ",t.lcZ(9,9,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_CRITICAL_OPERATIONS_TOGGLE.INFO"),"\n"))},dependencies:[rt.JJ,rt.On,K.w,Tt.Rr,u.X$],styles:[".toggle-font[_ngcontent-%COMP%]{font-size:1.125rem}"]}),n})(),Ye=(()=>{class n{transform(e){if(null===e)return null;const i=e;return i.substring(i.lastIndexOf(".")+1,i.length)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"attributeTypeClean",type:n,pure:!0}),n})();function Tn(n,r){1&n&&t._UZ(0,"mat-spinner",7)}function oi(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")," "))}function Mi(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")," "))}function mi(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")," "))}function gi(n,r){if(1&n&&(t.TgZ(0,"mat-option",21),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.Oqu(e)}}function Si(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")," "))}function qi(n,r){if(1&n&&(t.TgZ(0,"mat-option",21),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij("",e," ")}}function Fi(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")," "))}function Ni(n,r){if(1&n&&(t.TgZ(0,"mat-option",21),t._uU(1),t.ALo(2,"attributeTypeClean"),t.qZA()),2&n){const e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",t.lcZ(2,2,e)," ")}}function _i(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")," "))}function Qi(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",8)(1,"form",9)(2,"mat-form-field"),t._UZ(3,"input",10),t.ALo(4,"translate"),t.YNc(5,oi,3,3,"mat-error",11),t.qZA(),t.TgZ(6,"mat-form-field"),t._UZ(7,"input",12),t.ALo(8,"translate"),t.YNc(9,Mi,3,3,"mat-error",11),t.qZA(),t.TgZ(10,"mat-form-field")(11,"textarea",13),t.ALo(12,"translate"),t._uU(13," "),t.qZA(),t.YNc(14,mi,3,3,"mat-error",11),t.qZA(),t.TgZ(15,"mat-form-field")(16,"mat-select",14),t.ALo(17,"translate"),t.YNc(18,gi,2,2,"mat-option",15),t.qZA(),t.YNc(19,Si,3,3,"mat-error",11),t.qZA(),t.TgZ(20,"mat-form-field")(21,"mat-select",16),t.ALo(22,"translate"),t.YNc(23,qi,2,2,"mat-option",15),t.qZA(),t.YNc(24,Fi,3,3,"mat-error",11),t.qZA(),t.TgZ(25,"mat-form-field")(26,"mat-select",17),t.ALo(27,"translate"),t.YNc(28,Ni,3,4,"mat-option",15),t.qZA(),t.YNc(29,_i,3,3,"mat-error",11),t.qZA()(),t._UZ(30,"perun-web-apps-attribute-unique-toggle",18),t.ALo(31,"async"),t.TgZ(32,"perun-web-apps-attribute-critical-operations-toggles",19),t.NdJ("readOperationChanged",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.finalReadOperations=a)})("writeOperationChanged",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.finalWriteOperations=a)}),t.qZA(),t._UZ(33,"perun-web-apps-attribute-rights-tab-group",20),t.qZA()}if(2&n){const e=t.oxw();t.xp6(1),t.Q6J("formGroup",e.attributeControl),t.xp6(2),t.s9C("placeholder",t.lcZ(4,18,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.FRIENDLY_NAME")),t.xp6(2),t.Q6J("ngIf",e.attributeControl.hasError("required","friendlyName")),t.xp6(2),t.s9C("placeholder",t.lcZ(8,20,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.DISPLAY_NAME")),t.xp6(2),t.Q6J("ngIf",e.attributeControl.hasError("required","displayName")),t.xp6(2),t.s9C("placeholder",t.lcZ(12,22,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.DESCRIPTION")),t.xp6(3),t.Q6J("ngIf",e.attributeControl.hasError("required","description")),t.xp6(2),t.s9C("placeholder",t.lcZ(17,24,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ENTITY")),t.xp6(2),t.Q6J("ngForOf",e.entities),t.xp6(1),t.Q6J("ngIf",e.attributeControl.hasError("required","entity")),t.xp6(2),t.s9C("placeholder",t.lcZ(22,26,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.DEFINITION")),t.xp6(2),t.Q6J("ngForOf",e.definitionTypes),t.xp6(1),t.Q6J("ngIf",e.attributeControl.hasError("required","definitionType")),t.xp6(2),t.s9C("placeholder",t.lcZ(27,28,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.VALUE_TYPE")),t.xp6(2),t.Q6J("ngForOf",e.valueTypes),t.xp6(1),t.Q6J("ngIf",e.attributeControl.hasError("required","valueType")),t.xp6(1),t.Q6J("attDef",t.lcZ(31,30,e.attDef)),t.xp6(3),t.Q6J("collections",e.collections)}}let Ri=(()=>{class n{constructor(e,i,a,o,v,T,N){this.dialogRef=e,this.formBuilder=i,this.attributeService=a,this.attributeRightsService=o,this.notificator=v,this.translate=T,this.uniqueAttPipe=N,this.loading=!1,this.attributeControl=this.formBuilder.group({friendlyName:["",rt.kI.required],displayName:["",rt.kI.required],description:["",rt.kI.required],entity:["",rt.kI.required],definitionType:["",rt.kI.required],valueType:["",rt.kI.required]}),this.entities=["facility","resource","group","group_resource","host","member","member_group","member_resource","user","ues","user_facility","vo","entityless"],this.definitionTypes=["def","opt","virt","core"],this.valueTypes=["java.lang.String","java.lang.Integer","java.lang.Boolean","java.util.ArrayList","java.util.LinkedHashMap"],this.attDef=new E.X({id:0,beanName:"",namespace:"",unique:!1}),this.collections=[],this.attributeControl.valueChanges.pipe((0,q.b)(200)).subscribe(U=>{this.setAttribute(U)})}submit(){this.loading=!0,this.attributeService.createAttributeDefinition({attribute:this.attDef.getValue()}).pipe((0,F.w)(e=>(this.attDefCreated=e,wt((0,yt.of)(e.id),(0,yt.of)(this.collections)))),this.attributeRightsService.addAttributeId(),this.attributeRightsService.filterNullInPolicy(),(0,F.w)(e=>this.attributeService.setAttributePolicyCollections({policyCollections:e})),(0,F.w)(()=>this.attributeRightsService.updateAttributeAction(this.finalReadOperations,!1,this.attDefCreated.id,H.oW.READ)),(0,F.w)(()=>this.attributeRightsService.updateAttributeAction(this.finalWriteOperations,!0,this.attDefCreated.id,H.oW.WRITE))).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.CREATE_ATTRIBUTE_DEFINITION.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}cancel(){this.dialogRef.close(!1)}setAttribute(e){const i={id:0,beanName:"",friendlyName:e.friendlyName,displayName:e.displayName,description:e.description,type:e.valueType,namespace:this.createNamespace(e.entity,e.definitionType)};i.unique=this.attDef.getValue().unique&&!this.uniqueAttPipe.transform(i),this.attDef.next(i)}createNamespace(e,i){return"urn:perun:"+e+":attribute-def:"+i}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(rt.QS),t.Y36(H.H8),t.Y36(Z.eE),t.Y36(Z.V6),t.Y36(u.sK),t.Y36(Nt.bY))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-create-attribute-definition-dialog"]],features:[t._Bn([Nt.bY])],decls:13,vars:12,consts:[[1,"admin-theme"],["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","data-cy","create-attr-definition-button","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[1,"dialog-container",3,"formGroup"],["matInput","","formControlName","friendlyName","data-cy","attribute-friendly-name-input","required","",3,"placeholder"],[4,"ngIf"],["matInput","","formControlName","displayName","data-cy","attribute-display-name-input","required","",3,"placeholder"],["matInput","","formControlName","description","cdkTextareaAutosize","","data-cy","attribute-description-input","required","",3,"placeholder"],["formControlName","entity","data-cy","attribute-entity-input","required","",3,"placeholder"],[3,"value",4,"ngFor","ngForOf"],["formControlName","definitionType","data-cy","attribute-definition-type-input","required","",3,"placeholder"],["formControlName","valueType","data-cy","attribute-value-type-input","required","",3,"placeholder"],[3,"attDef"],[3,"readOperationChanged","writeOperationChanged"],[3,"collections"],[3,"value"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"h1",1),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Tn,1,0,"mat-spinner",2),t.YNc(5,Qi,34,32,"div",3),t.TgZ(6,"div",4)(7,"button",5),t.NdJ("click",function(){return i.cancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",6),t.NdJ("click",function(){return i.submit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,6,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.TITLE")),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading),t.xp6(3),t.hij(" ",t.lcZ(9,8,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",i.loading||i.attributeControl.invalid),t.xp6(1),t.hij(" ",t.lcZ(12,10,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.CONFIRM")," "))},dependencies:[m.sg,m.O5,zt.ey,de.IC,ie.TO,ie.KE,Ot.Nt,rt._Y,rt.Fj,rt.JJ,rt.JL,rt.Q7,rt.sg,rt.u,G.lW,M.uh,M.xY,M.H8,te.gD,tt.Ou,be,ee,Ze,m.Ov,u.X$,Ye]}),n})();var fe=s(9244),Sn=s(10036);function ji(n,r){1&n&&t._UZ(0,"mat-spinner",7)}function In(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",8)(1,"perun-web-apps-alert",9),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-form-field",10)(5,"input",11),t.NdJ("ngModelChange",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.value=a)}),t.ALo(6,"translate"),t.qZA()()()}if(2&n){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,3,"DIALOGS.IMPORT_ATTRIBUTE.INFO")," "),t.xp6(3),t.Q6J("ngModel",e.value)("placeholder",t.lcZ(6,5,"DIALOGS.IMPORT_ATTRIBUTE.HINT"))}}let gn=(()=>{class n{constructor(e,i,a,o,v){this.dialogRef=e,this.notificator=i,this.translate=a,this.attributesManager=o,this.attributesRightsService=v,this.value="",this.loading=!1}create(){this.loading=!0,this.attributeData=JSON.parse(this.value),this.attributesManager.createAttributeDefinition({attribute:this.attributeData.attributeDefinition}).pipe((0,F.w)(e=>wt((0,yt.of)(e.id),(0,yt.of)(this.attributeData.attributeRights))),this.attributesRightsService.addAttributeId(),(0,F.w)(e=>this.attributesManager.setAttributePolicyCollections({policyCollections:e}))).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.IMPORT_ATTRIBUTE_DEFINITION.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(Z.V6),t.Y36(u.sK),t.Y36(H.H8),t.Y36(Z.eE))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-attribute-import-dialog"]],decls:13,vars:12,consts:[[1,"admin-theme"],["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],["alert_type","info"],[1,"w-100"],["matInput","","required","",3,"ngModel","placeholder","ngModelChange"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"h1",1),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,ji,1,0,"mat-spinner",2),t.YNc(5,In,7,7,"div",3),t.TgZ(6,"div",4)(7,"button",5),t.NdJ("click",function(){return i.dialogRef.close()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",6),t.NdJ("click",function(){return i.create()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.xp6(2),t.hij(" ",t.lcZ(3,6,"DIALOGS.IMPORT_ATTRIBUTE.TITLE")," "),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading),t.xp6(3),t.hij(" ",t.lcZ(9,8,"DIALOGS.IMPORT_ATTRIBUTE.CANCEL")," "),t.xp6(2),t.Q6J("disabled",0===i.value.trim().length||i.loading),t.xp6(1),t.hij(" ",t.lcZ(12,10,"DIALOGS.IMPORT_ATTRIBUTE.CREATE")," "))},dependencies:[m.O5,ie.KE,Ot.Nt,rt.Fj,rt.JJ,rt.Q7,rt.On,G.lW,M.uh,M.xY,M.H8,tt.Ou,K.w,u.X$]}),n})();var sn=s(96308),zn=s(36769),li=s(68675),Ln=s(64425),we=s(37084),Bi=s(37433),Nn=s(56709),pn=s(43532),z=s(18750),X=s(9185),lt=s(8231),A=s(14849);function bt(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"th",23)(1,"mat-checkbox",24),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw(3);return t.KtG(a?o.masterToggle():null)}),t.ALo(2,"translate"),t.ALo(3,"masterCheckboxLabel"),t.qZA()()}if(2&n){const e=t.oxw().ngIf,i=t.oxw(2);t.xp6(1),t.Q6J("aria-label",t.lcZ(2,3,t.lcZ(3,5,e.all)))("checked",i.selection.hasValue()&&e.all)("indeterminate",i.selection.hasValue()&&!e.all)}}const Lt=function(n){return{name:n}};function Pt(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"td",25)(1,"mat-checkbox",26),t.NdJ("change",function(a){const v=t.CHM(e).$implicit,T=t.oxw(3);return t.KtG(a?T.selection.toggle(v):null)})("click",function(a){return a.stopPropagation()}),t.ALo(2,"translate"),t.ALo(3,"checkboxLabel"),t.qZA()()}if(2&n){const e=r.$implicit,i=t.oxw(3);t.xp6(1),t.Q6J("aria-label",t.xi3(2,2,t.lcZ(3,5,i.selection.isSelected(e)),t.VKq(7,Lt,e[0])))("checked",i.selection.isSelected(e))}}function Gt(n,r){1&n&&(t.ynx(0,20),t.YNc(1,bt,4,7,"th",21),t.YNc(2,Pt,4,9,"td",22),t.BQk())}function Jt(n,r){1&n&&(t.TgZ(0,"th",27),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.KEY")," "))}function Yt(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"td",28)(1,"label")(2,"input",29),t.NdJ("ngModelChange",function(){const o=t.CHM(e).$implicit,v=t.oxw(2);return t.KtG(v.onValueChange(o))})("ngModelChange",function(a){const v=t.CHM(e).$implicit;return t.KtG(v[0]=a)}),t.qZA()()()}if(2&n){const e=r.$implicit;t.xp6(2),t.Q6J("ngModel",e[0])}}function Q(n,r){1&n&&(t.TgZ(0,"th",27),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.VALUE")," "))}function pt(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"td",28)(1,"perun-web-apps-attribute-value",30),t.NdJ("sendEventToParent2",function(){const o=t.CHM(e).$implicit,v=t.oxw(2);return t.KtG(v.onValueChange(o))}),t.qZA()()}if(2&n){const e=r.$implicit;t.xp6(1),t.Q6J("attribute",e[1])}}function mt(n,r){1&n&&t._UZ(0,"tr",31)}function gt(n,r){1&n&&t._UZ(0,"tr",32)}const Ut=function(n){return{all:n}};function Xt(n,r){if(1&n&&(t.TgZ(0,"div",10)(1,"perun-web-apps-table-wrapper",11)(2,"table",12),t.YNc(3,Gt,3,0,"ng-container",13),t.ALo(4,"isAllSelected"),t.ynx(5,14),t.YNc(6,Jt,3,3,"th",15),t.YNc(7,Yt,3,1,"td",16),t.BQk(),t.ynx(8,17),t.YNc(9,Q,3,3,"th",15),t.YNc(10,pt,2,1,"td",16),t.BQk(),t.YNc(11,mt,1,0,"tr",18),t.YNc(12,gt,1,0,"tr",19),t.qZA()()()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("pageSizeOptions",e.pageSizeOptions)("dataLength",e.dataSource.filteredData.length)("hideExport",!0)("tableId",e.tableId),t.xp6(1),t.Q6J("dataSource",e.dataSource),t.xp6(1),t.Q6J("ngIf",t.VKq(11,Ut,t.xi3(4,8,e.dataSource,e.selection.selected.length))),t.xp6(8),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}function kt(n,r){1&n&&t._UZ(0,"mat-spinner",33)}function le(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",34),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.NO_KEYS_WARNING")," "))}let O=(()=>{class n{constructor(e,i,a,o,v){this.dialogRef=e,this.data=i,this.notificator=a,this.translate=o,this.attributesManager=v,this.switchView=new t.vpe,this.records=[],this.displayedColumns=["select","key","value"],this.dataSource=new R.by,this.selection=new B.Ov(!0,[]),this.isAddButtonDisabled=!1,this.pageSizeOptions=fe.f7}set matSort(e){this.sort=e}ngOnChanges(){this.ngOnInit()}ngOnInit(){this.loading=!0,this.attDef=this.data.attDef,this.attributesManager.getEntitylessKeys(this.attDef.id).subscribe(e=>{this.attributesManager.getEntitylessAttributesByName(`${this.attDef.namespace}:${this.attDef.friendlyName}`).subscribe(i=>{let a=0;this.records=[];for(const o of e)this.records.push([o,i[a]]),a++;this.dataSource=new R.by(this.records),this.setDataSource(),this.loading=!1})})}setDataSource(){!this.child||!this.child.paginator||this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}onSave(){this.updateMapAttributes();for(const e of this.selection.selected)this.attributesManager.setEntitylessAttribute({key:e[0],attribute:e[1]}).subscribe(()=>{this.translate.get("SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.SAVE_SUCCESS").subscribe(i=>{this.notificator.showSuccess(i),this.ngOnInit()})});this.selection.clear(),this.isAddButtonDisabled=!1}onRemove(){for(const e of this.selection.selected)this.attributesManager.removeEntitylessAttribute(e[0],e[1].id).subscribe(()=>{this.translate.get("SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.REMOVE_SUCCESS").subscribe(i=>{this.notificator.showSuccess(i),this.ngOnInit()})});this.ngOnInit(),this.selection.clear(),this.isAddButtonDisabled=!1}onAdd(){const e=["",this.attDef];e[1].value=void 0,this.records.unshift(e),this.dataSource.data=this.records,this.setDataSource(),this.selection.clear(),this.selection.select(e),this.isAddButtonDisabled=!0}onCancel(){this.dialogRef.close(!1)}isAllSelected(){return this.selection.selected.length===this.dataSource.data.length}masterToggle(){this.isAllSelected()?this.selection.clear():this.dataSource.data.forEach(e=>this.selection.select(e))}onValueChange(e){this.selection.select(e)}updateMapAttributes(){for(const e of this.items.toArray())"java.util.LinkedHashMap"===e.attribute.type&&e.updateMapAttribute()}ngAfterViewInit(){this.children.changes.subscribe(e=>{this.child=e.first,this.dataSource.paginator=this.child.paginator})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(M.WI),t.Y36(Z.V6),t.Y36(u.sK),t.Y36(H.H8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-entityless-attribute-keys-list"]],viewQuery:function(e,i){if(1&e&&(t.Gf(sn.YE,7),t.Gf(Bi.Mw,5),t.Gf(fe.l9,5)),2&e){let a;t.iGM(a=t.CRH())&&(i.matSort=a.first),t.iGM(a=t.CRH())&&(i.items=a),t.iGM(a=t.CRH())&&(i.children=a)}},inputs:{attDef:"attDef",tableId:"tableId"},outputs:{switchView:"switchView"},features:[t.TTD],decls:19,vars:19,consts:[["mat-dialog-title",""],["mat-dialog-actions","",1,"mt-3"],["mat-stroked-button","",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"],["color","accent","matTooltip","save or remove new attribute first","mat-flat-button","","matTooltipPosition","above",1,"ml-2",3,"disabled","matTooltipDisabled","click"],["color","warn","mat-flat-button","",1,"ml-2",3,"click"],["mat-dialog-content","",1,"mt-3",3,"hidden"],["class","card mt-3",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["alert_type","warn","class","mt-3",4,"ngIf"],[1,"card","mt-3"],[3,"pageSizeOptions","dataLength","hideExport","tableId"],["mat-table","","matSort","","matSortActive","key","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","key"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","value"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["matInput","","placeholder","New key",1,"mt-2",3,"ngModel","ngModelChange"],[3,"attribute","sendEventToParent2"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],[1,"ml-auto","mr-auto"],["alert_type","warn",1,"mt-3"]],template:function(e,i){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.TgZ(2,"div",1)(3,"button",2),t.NdJ("click",function(){return i.switchView.emit()}),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.TgZ(6,"button",3),t.NdJ("click",function(){return i.onSave()}),t._uU(7),t.ALo(8,"translate"),t.qZA(),t.TgZ(9,"button",4),t.NdJ("click",function(){return i.onAdd()}),t._uU(10),t.ALo(11,"translate"),t.qZA(),t.TgZ(12,"button",5),t.NdJ("click",function(){return i.onRemove()}),t._uU(13),t.ALo(14,"translate"),t.qZA()(),t.TgZ(15,"div",6),t.YNc(16,Xt,13,13,"div",7),t.YNc(17,kt,1,0,"mat-spinner",8),t.YNc(18,le,3,3,"perun-web-apps-alert",9),t.qZA()),2&e&&(t.xp6(1),t.Oqu(i.attDef.namespace+":"+i.attDef.friendlyName),t.xp6(3),t.hij(" ",t.lcZ(5,11,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.CANCEL")," "),t.xp6(3),t.hij(" ",t.lcZ(8,13,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.SAVE")," "),t.xp6(2),t.Q6J("disabled",i.isAddButtonDisabled)("matTooltipDisabled",!i.isAddButtonDisabled),t.xp6(1),t.hij(" ",t.lcZ(11,15,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.ADD")," "),t.xp6(3),t.hij(" ",t.lcZ(14,17,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.REMOVE")," "),t.xp6(2),t.Q6J("hidden",i.loading),t.xp6(1),t.Q6J("ngIf",i.records&&i.records.length),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",0===i.records.length))},dependencies:[m.O5,Ot.Nt,rt.Fj,rt.JJ,rt.On,G.lW,sn.YE,sn.nU,R.BZ,R.fO,R.as,R.w1,R.Dz,R.nj,R.ge,R.ev,R.XQ,R.Gk,Nn.oG,M.uh,M.xY,M.H8,tt.Ou,ln.gM,K.w,pn.M,z.l,u.X$,X.I,lt.G,A.r],styles:[".mat-cell[_ngcontent-%COMP%]{padding:8px 8px 8px 0}"]}),n})();var oe=s(60205);function Se(n,r){1&n&&t._UZ(0,"mat-spinner",10)}function Ce(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")," "))}function Ke(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")," "))}const Pe=function(){return["id","name","enabled","script"]};function Be(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",11)(1,"form",12)(2,"mat-form-field"),t._UZ(3,"input",13),t.ALo(4,"translate"),t.YNc(5,Ce,3,3,"mat-error",1),t.qZA(),t.TgZ(6,"mat-form-field")(7,"textarea",14),t.ALo(8,"translate"),t._uU(9," "),t.qZA(),t.YNc(10,Ke,3,3,"mat-error",1),t.qZA()(),t.TgZ(11,"label",15),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.TgZ(14,"div",16),t._uU(15),t.TgZ(16,"mat-icon",17),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.copyUrn())}),t.ALo(17,"translate"),t._uU(18,"content_copy"),t.qZA()(),t._UZ(19,"perun-web-apps-attribute-unique-toggle",18),t.TgZ(20,"perun-web-apps-attribute-critical-operations-toggles",19),t.NdJ("readOperationChanged",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(o.finalReadOperations=a)})("writeOperationChanged",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(o.finalWriteOperations=a)}),t.qZA(),t._UZ(21,"perun-web-apps-attribute-rights-tab-group",20),t.ALo(22,"async"),t.TgZ(23,"mat-accordion")(24,"mat-expansion-panel",21)(25,"mat-expansion-panel-header")(26,"mat-panel-title"),t._uU(27),t.ALo(28,"translate"),t.qZA()(),t._UZ(29,"app-services-list",22),t.ALo(30,"async"),t.qZA()()()}if(2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("formGroup",e.attributeControl),t.xp6(2),t.s9C("placeholder",t.lcZ(4,17,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.DISPLAY_NAME")),t.xp6(2),t.Q6J("ngIf",e.attributeControl.hasError("required","name")),t.xp6(2),t.s9C("placeholder",t.lcZ(8,19,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.DESCRIPTION")),t.xp6(3),t.Q6J("ngIf",e.attributeControl.hasError("required","description")),t.xp6(2),t.hij(" ",t.lcZ(13,21,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.URN")," "),t.xp6(3),t.hij(" ",e.urn," "),t.xp6(1),t.s9C("matTooltip",t.lcZ(17,23,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.URN_TOOLTIP")),t.xp6(3),t.Q6J("attDef",e.attDef),t.xp6(1),t.Q6J("readOperation",e.initReadOperations)("writeOperation",e.initWriteOperations),t.xp6(1),t.Q6J("attDef",e.attDef)("collections",t.lcZ(22,25,e.collections$)),t.xp6(6),t.hij(" ",t.lcZ(28,27,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.SERVICES")," "),t.xp6(2),t.Q6J("disableRouting",!0)("displayedColumns",t.DdM(31,Pe))("services",t.lcZ(30,29,e.services$))}}function ue(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",23),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.switchShowKeys())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.SHOW_KEYS")," "))}function me(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div")(1,"h1",2),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Se,1,0,"mat-spinner",3),t.YNc(5,Be,31,32,"div",4),t.TgZ(6,"div",5),t.YNc(7,ue,3,3,"button",6),t.TgZ(8,"button",7),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onCopy())}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onCancel())}),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.TgZ(14,"button",9),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onSubmit())}),t._uU(15),t.ALo(16,"translate"),t.qZA()()()}if(2&n){const e=t.oxw();t.xp6(2),t.Oqu(t.lcZ(3,8,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.TITLE")),t.xp6(2),t.Q6J("ngIf",e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading),t.xp6(2),t.Q6J("ngIf","entityless"===(null==e.attDef?null:e.attDef.entity)),t.xp6(2),t.hij(" ",t.lcZ(10,10,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.COPY_FOR_IMPORT")," "),t.xp6(3),t.hij(" ",t.lcZ(13,12,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",e.loading||e.attributeControl.invalid),t.xp6(1),t.hij(" ",t.lcZ(16,14,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.CONFIRM")," ")}}function Fe(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div")(1,"app-entityless-attribute-keys-list",24),t.NdJ("switchView",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.switchShowKeys())}),t.qZA()()}if(2&n){const e=t.oxw();t.xp6(1),t.Q6J("attDef",e.attDef)("tableId",e.tableId)}}let fn=(()=>{class n{constructor(e,i,a,o,v,T,N,U,J){this.dialogRef=e,this.data=i,this.notificator=a,this.translate=o,this.clipboard=v,this.attributesManager=T,this.serviceService=N,this.formBuilder=U,this.attributeRightsService=J,this.tableId=Sn.Wv,this.loading=!1,this.showKeys=!1,this.attDef=this.data.attDef,this.attributeControl=this.formBuilder.group({name:[this.attDef.displayName,rt.kI.required],description:[this.attDef.description,rt.kI.required]}),this.urn=`${this.attDef.namespace}:${this.attDef.friendlyName}`,this.collections$=new E.X([]),this.services$=this.serviceService.getServicesByAttributeDefinition(this.attDef.id).pipe((0,li.O)([]))}ngOnInit(){this.dialogRef.addPanelClass("mat-dialog-height-transition"),this.attributesManager.getAttributeRules(this.attDef.id).subscribe(e=>{this.collections$=new E.X(e.attributePolicyCollections),this.initReadOperations=e.criticalActions.includes("READ"),this.initWriteOperations=e.criticalActions.includes("WRITE")})}onSubmit(){this.loading=!0,this.updateAttribute(),this.attributesManager.updateAttributeDefinition({attributeDefinition:this.attDef}).pipe((0,F.w)(()=>(0,yt.of)(this.collections$.getValue())),this.attributeRightsService.filterNullInPolicy(),(0,F.w)(e=>this.attributesManager.setAttributePolicyCollections({policyCollections:e})),(0,F.w)(()=>this.attributeRightsService.updateAttributeAction(this.finalReadOperations,this.initReadOperations,this.attDef.id,H.oW.READ)),(0,F.w)(()=>this.attributeRightsService.updateAttributeAction(this.finalWriteOperations,this.initWriteOperations,this.attDef.id,H.oW.WRITE))).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.EDIT_ATTRIBUTE_DEFINITION.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}switchShowKeys(){this.showKeys=!this.showKeys,this.dialogRef.updateSize(this.showKeys?"800px":"700px")}copyUrn(){this.clipboard.copy(this.urn)?this.notificator.showSuccess(this.translate.instant("DIALOGS.EDIT_ATTRIBUTE_DEFINITION.COPIED")):this.notificator.showError(this.translate.instant("DIALOGS.EDIT_ATTRIBUTE_DEFINITION.COPY_FAILED"))}onCopy(){this.updateAttribute();const e={attributeDefinition:this.attDef,attributeRights:this.collections$.getValue()};this.clipboard.copy(JSON.stringify(e))?this.notificator.showSuccess(this.translate.instant("DIALOGS.EDIT_ATTRIBUTE_DEFINITION.COPIED")):this.notificator.showError(this.translate.instant("DIALOGS.EDIT_ATTRIBUTE_DEFINITION.COPY_FAILED"))}updateAttribute(){this.attDef.displayName=this.attributeControl.get("name").value,this.attDef.description=this.attributeControl.get("description").value}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(M.WI),t.Y36(Z.V6),t.Y36(u.sK),t.Y36(Ln.TU),t.Y36(H.H8),t.Y36(H.KK),t.Y36(rt.QS),t.Y36(Z.eE))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-edit-attribute-definition-dialog"]],decls:3,vars:2,consts:[[1,"admin-theme"],[4,"ngIf"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",3,"click",4,"ngIf"],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","",1,"ml-2",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"fields-container",3,"formGroup"],["matInput","","data-cy","display-name-input","formControlName","name","required","",3,"placeholder"],["matInput","","formControlName","description","cdkTextareaAutosize","","required","",3,"placeholder"],[1,"urn-name"],[1,"urn-row"],["matSuffix","",1,"copy-urn",3,"matTooltip","click"],[3,"attDef"],[3,"readOperation","writeOperation","readOperationChanged","writeOperationChanged"],[3,"attDef","collections"],[1,"mt-4","mb-4"],[3,"disableRouting","displayedColumns","services"],["mat-flat-button","",3,"click"],[3,"attDef","tableId","switchView"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t.YNc(1,me,17,16,"div",1),t.YNc(2,Fe,2,2,"div",1),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngIf",!i.showKeys),t.xp6(1),t.Q6J("ngIf",i.showKeys))},dependencies:[m.O5,de.IC,ie.TO,ie.KE,ie.R9,Ot.Nt,rt._Y,rt.Fj,rt.JJ,rt.JL,rt.Q7,rt.sg,rt.u,l.Hw,we.pp,we.ib,we.yz,we.yK,G.lW,M.uh,M.xY,M.H8,tt.Ou,ln.gM,be,ee,Ze,O,oe.Q,m.Ov,u.X$],styles:[".fields-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}.urn-name[_ngcontent-%COMP%]{color:#0000008a;margin-bottom:0;font-size:small}.urn-row[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.copy-urn[_ngcontent-%COMP%]{cursor:pointer}"],data:{animation:[zn.SG,zn.GH,zn.Ls]}}),n})();var cn=s(70844),$e=s(64597);let Qe=(()=>{class n{transform(e){if(null===e)return null;const i=e;return i.substring(i.lastIndexOf(":")+1,i.length)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"nameSpaceToDef",type:n,pure:!0}),n})();function wn(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"th",21)(1,"mat-checkbox",22),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(a?o.masterToggle():null)}),t.ALo(2,"translate"),t.ALo(3,"masterCheckboxLabel"),t.qZA()()}if(2&n){const e=t.oxw().ngIf,i=t.oxw();t.xp6(1),t.Q6J("aria-label",t.lcZ(2,3,t.lcZ(3,5,e.all)))("checked",i.selection.hasValue()&&e.all)("indeterminate",i.selection.hasValue()&&!e.all)}}const Bn=function(n){return{name:n}};function Zn(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"td",23)(1,"mat-checkbox",24),t.NdJ("change",function(a){const v=t.CHM(e).$implicit,T=t.oxw(2);return t.KtG(a?T.selection.toggle(v):null)})("click",function(a){return a.stopPropagation()}),t.ALo(2,"multiWordDataCy"),t.ALo(3,"translate"),t.ALo(4,"checkboxLabel"),t.ALo(5,"consentRelatedAttribute"),t.ALo(6,"translate"),t.ALo(7,"consentRelatedAttribute"),t.qZA()()}if(2&n){const e=r.$implicit,i=t.oxw(2);t.xp6(1),t.Q2q("data-cy","",t.lcZ(2,6,e.displayName),"-checkbox"),t.Q6J("aria-label",t.xi3(3,8,t.lcZ(4,11,i.selection.isSelected(e)),t.VKq(23,Bn,e.displayName)))("checked",i.selection.isSelected(e))("disabled",t.Dn7(5,13,e.namespace,i.serviceEnabled,i.consentRequired))("matTooltip",t.lcZ(6,17,"ADMIN.ATTRIBUTES.CONSENT_RELATED_DISABLED"))("matTooltipDisabled",!t.Dn7(7,19,e.namespace,i.serviceEnabled,i.consentRequired))}}function Hn(n,r){1&n&&(t.ynx(0,18),t.YNc(1,wn,4,7,"th",19),t.YNc(2,Zn,8,25,"td",20),t.BQk())}function Pi(n,r){1&n&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.ATTRIBUTES.TABLE_ATTR_ID")," "))}function he(n,r){if(1&n&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(e.id)}}function je(n,r){1&n&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.ATTRIBUTES.TABLE_ATTR_FRIENDLY_NAME")," "))}function vn(n,r){if(1&n&&(t.TgZ(0,"td",27),t.ALo(1,"multiWordDataCy"),t._uU(2),t.qZA()),2&n){const e=r.$implicit;t.Q2q("data-cy","",t.lcZ(1,2,e.friendlyName),"-friendly-name"),t.xp6(2),t.hij(" ",e.friendlyName," ")}}function Cn(n,r){1&n&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.ATTRIBUTES.TABLE_ATTR_DISPLAY_NAME")," "))}function $n(n,r){if(1&n&&(t.TgZ(0,"td",27),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.hij(" ",e.displayName," ")}}function ci(n,r){1&n&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.ATTRIBUTES.TABLE_ATTR_ENTITY")," "))}function vi(n,r){if(1&n&&(t.TgZ(0,"td",27),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(e.entity)}}function Qn(n,r){1&n&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.ATTRIBUTES.TABLE_ATTR_DEF")," "))}function Zi(n,r){if(1&n&&(t.TgZ(0,"td",27),t._uU(1),t.ALo(2,"nameSpaceToDef"),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(t.lcZ(2,1,e.namespace))}}function jn(n,r){1&n&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.ATTRIBUTES.TABLE_ATTR_TYPE")," "))}function bi(n,r){if(1&n&&(t.TgZ(0,"td",27),t._uU(1),t.ALo(2,"attributeTypeClean"),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(t.lcZ(2,1,e.type))}}function mn(n,r){1&n&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.ATTRIBUTES.TABLE_ATTR_UNIQUE")," "))}function un(n,r){if(1&n&&(t.TgZ(0,"td",27),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(e.unique)}}function ui(n,r){1&n&&t._UZ(0,"tr",28)}function Ji(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"tr",29),t.NdJ("click",function(){const o=t.CHM(e).$implicit,v=t.oxw();return t.KtG(v.onRowClick(o))}),t.qZA()}if(2&n){const e=t.oxw();t.ekj("cursor-pointer",!e.disableRouting)}}function hi(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",30),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.ATTRIBUTES.NO_ATTRIBUTES"),"\n"))}function Hi(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",30),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}const On=function(n){return{all:n}};let di=(()=>{class n{constructor(e,i,a,o){this.dialog=e,this.authResolver=i,this.tableCheckbox=a,this.consentRelatedPipe=o,this.selection=new B.Ov(!0,[]),this.displayedColumns=["select","id","friendlyName","displayName","entity","namespace","type","unique"],this.disableRouting=!1,this.consentRequired=!1,this.serviceEnabled=!1,this.refreshEvent=new t.vpe,this.pageSizeOptions=fe.f7,this.canBeSelected=v=>!this.consentRelatedPipe.transform(v.namespace,this.serviceEnabled,this.consentRequired)}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,i){switch(i){case"id":return e.id.toString();case"friendlyName":return e.friendlyName;case"displayName":return e.displayName;case"entity":return e.entity;case"namespace":if(e.namespace){const a=e.namespace;return a.substring(a.lastIndexOf(":")+1,a.length)}return"";case"type":if(e.type){const a=e.type;return a.substring(a.lastIndexOf(".")+1,a.length)}return"";case"unique":return e.unique?"true":"false";default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"id"!==e)),this.dataSource=new R.by(this.definitions),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}exportAllData(e){(0,fe.O6)((0,fe.Xn)(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}exportDisplayedData(e){const i=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,a=i+this.dataSource.paginator.pageSize;(0,fe.O6)((0,fe.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(i,a),this.displayedColumns,n.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filter=this.filterValue,this.dataSource.sort=this.sort,this.dataSource.filterPredicate=(e,i)=>(0,fe.Sd)(e,i,this.displayedColumns,n.getDataForColumn),this.dataSource.sortData=(e,i)=>(0,fe.pR)(e,i,n.getDataForColumn),this.dataSource.paginator=this.child.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource,this.canBeSelected)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!0,this.canBeSelected)}onRowClick(e){if(!this.disableRouting){const i=(0,fe.kZ)();i.width="700px",i.data={attDef:e},this.dialog.open(fn,i).afterClosed().subscribe(o=>{o&&(this.selection.clear(),this.refreshEvent.emit())})}}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.uw),t.Y36(Z.x4),t.Y36(Z.UA),t.Y36(cn.u))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-attr-def-list"]],viewQuery:function(e,i){if(1&e&&(t.Gf(fe.l9,7),t.Gf(sn.YE,7)),2&e){let a;t.iGM(a=t.CRH())&&(i.child=a.first),t.iGM(a=t.CRH())&&(i.matSort=a.first)}},inputs:{definitions:"definitions",selection:"selection",displayedColumns:"displayedColumns",filterValue:"filterValue",tableId:"tableId",disableRouting:"disableRouting",consentRequired:"consentRequired",serviceEnabled:"serviceEnabled"},outputs:{refreshEvent:"refreshEvent"},features:[t.TTD],decls:31,vars:16,consts:[[1,"card","mt-2",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportDisplayedData","exportAllData"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","displayName","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","friendlyName"],["mat-cell","",4,"matCellDef"],["matColumnDef","displayName"],["matColumnDef","entity"],["matColumnDef","namespace"],["matColumnDef","type"],["matColumnDef","unique"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","click",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["matTooltipPosition","left","color","primary",3,"aria-label","checked","disabled","matTooltip","matTooltipDisabled","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"click"],["alert_type","warn"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportDisplayedData",function(o){return i.exportDisplayedData(o)})("exportAllData",function(o){return i.exportAllData(o)}),t.TgZ(2,"div",2)(3,"table",3),t.YNc(4,Hn,3,0,"ng-container",4),t.ALo(5,"isAllSelected"),t.ynx(6,5),t.YNc(7,Pi,3,3,"th",6),t.YNc(8,he,2,1,"td",7),t.BQk(),t.ynx(9,8),t.YNc(10,je,3,3,"th",6),t.YNc(11,vn,3,4,"td",9),t.BQk(),t.ynx(12,10),t.YNc(13,Cn,3,3,"th",6),t.YNc(14,$n,2,1,"td",9),t.BQk(),t.ynx(15,11),t.YNc(16,ci,3,3,"th",6),t.YNc(17,vi,2,1,"td",9),t.BQk(),t.ynx(18,12),t.YNc(19,Qn,3,3,"th",6),t.YNc(20,Zi,3,3,"td",9),t.BQk(),t.ynx(21,13),t.YNc(22,jn,3,3,"th",6),t.YNc(23,bi,3,3,"td",9),t.BQk(),t.ynx(24,14),t.YNc(25,mn,3,3,"th",6),t.YNc(26,un,2,1,"td",9),t.BQk(),t.YNc(27,ui,1,0,"tr",15),t.YNc(28,Ji,1,2,"tr",16),t.qZA()()()(),t.YNc(29,hi,3,3,"perun-web-apps-alert",17),t.YNc(30,Hi,3,3,"perun-web-apps-alert",17)),2&e&&(t.Q6J("hidden",0===i.dataSource.filteredData.length||0===i.definitions.length),t.xp6(1),t.Q6J("pageSizeOptions",i.pageSizeOptions)("dataLength",i.dataSource.filteredData.length)("tableId",i.tableId),t.xp6(2),t.Q6J("dataSource",i.dataSource),t.xp6(1),t.Q6J("ngIf",t.VKq(14,On,t.Dn7(5,10,i.dataSource,i.selection.selected.length,i.canBeSelected))),t.xp6(23),t.Q6J("matHeaderRowDef",i.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",i.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===i.definitions.length),t.xp6(1),t.Q6J("ngIf",0===i.dataSource.filteredData.length&&0!==i.definitions.length))},dependencies:[m.O5,sn.YE,sn.nU,R.BZ,R.fO,R.as,R.w1,R.Dz,R.nj,R.ge,R.ev,R.XQ,R.Gk,Nn.oG,ln.gM,K.w,z.l,u.X$,$e.R,X.I,lt.G,A.r,Ye,Qe,cn.u],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),n})();var Ue=s(96214),Vn=s(7434);function nn(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onCreate())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.ATTRIBUTES.CREATE")," "))}function Ti(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onImport())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.ATTRIBUTES.IMPORT")," "))}function kn(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",10),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onDelete())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",0===e.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"ADMIN.ATTRIBUTES.DELETE")," ")}}function b(n,r){1&n&&t._UZ(0,"mat-spinner",11)}function k(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"app-attr-def-list",12),t.NdJ("refreshEvent",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.refreshTable())}),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("definitions",e.attrDefinitions)("disableRouting",!e.authResolver.isPerunAdminOrObserver())("filterValue",e.filterValue)("selection",e.selected)("tableId",e.tableId)}}let V=(()=>{class n{constructor(e,i,a){this.dialog=e,this.attributesManager=i,this.authResolver=a,this.attrDefinitions=[],this.selected=new B.Ov(!0,[]),this.filterValue="",this.tableId=Sn.uM}ngOnInit(){this.refreshTable()}onCreate(){const e=(0,fe.kZ)();e.width="650px",this.dialog.open(Ri,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}onDelete(){const e=(0,fe.kZ)();e.width="450px",e.data={attributes:this.selected.selected,theme:"admin-theme"},this.dialog.open(nt,e).afterClosed().subscribe(a=>{a&&(this.refreshTable(),this.selected.clear())})}refreshTable(){this.loading=!0,this.attributesManager.getAllAttributeDefinitions().subscribe(e=>{this.attrDefinitions=e,this.loading=!1})}applyFilter(e){this.filterValue=e}onImport(){const e=(0,fe.kZ)();e.width="700px",this.dialog.open(gn,e).afterClosed().subscribe(a=>{!0===a&&this.refreshTable()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.uw),t.Y36(H.H8),t.Y36(Z.x4))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-admin-attributes"]],hostVars:2,hostBindings:function(e,i){2&e&&t.ekj("router-component",i.true)},decls:11,vars:9,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2 action-button","color","accent","data-cy","new-attr-definition-button","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["color","warn","class","mr-2","data-cy","delete-attr-definition-button","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"definitions","disableRouting","filterValue","selection","tableId","refreshEvent",4,"ngIf"],["color","accent","data-cy","new-attr-definition-button","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","data-cy","delete-attr-definition-button","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"definitions","disableRouting","filterValue","selection","tableId","refreshEvent"]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.YNc(5,nn,3,3,"button",2),t.YNc(6,Ti,3,3,"button",3),t.YNc(7,kn,3,4,"button",4),t.TgZ(8,"perun-web-apps-immediate-filter",5),t.NdJ("filter",function(o){return i.applyFilter(o)}),t.qZA(),t.YNc(9,b,1,0,"mat-spinner",6),t.YNc(10,k,1,5,"app-attr-def-list",7),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,7,"ADMIN.ATTRIBUTES.TITLE")),t.xp6(3),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("placeholder","ADMIN.ATTRIBUTES.SEARCH"),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,G.lW,tt.Ou,di,Ue.t,Vn.L,u.X$]}),n})(),it=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-admin-visualizer"]],hostVars:2,hostBindings:function(e,i){2&e&&t.ekj("router-component",i.true)},decls:1,vars:0,template:function(e,i){1&e&&t._UZ(0,"app-animated-router-outlet")},dependencies:[h.A]}),n})();var ht=s(9921);let xt=(()=>{class n{constructor(e){this.attributesManager=e}ngOnInit(){this.attributesManager.getAttributeModulesDependenciesGraphText("DOT").subscribe(e=>{const i=e.graph.replace("\\t","").replace("\\n","").replace("\\","");(0,ht.graphviz)("#dependenciesGraph",{zoom:!1}).renderDot(i)})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(H.H8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-visualizer-attr-modules"]],hostVars:2,hostBindings:function(e,i){2&e&&t.ekj("router-component",i.true)},decls:4,vars:3,consts:[[1,"page-subtitle"],["id","dependenciesGraph",1,"card"]],template:function(e,i){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t._UZ(3,"div",1)),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.VISUALIZER.ATTR_DEPENDENCIES.TITLE"),"\n"))},dependencies:[u.X$],styles:["#dependenciesGraph[_ngcontent-%COMP%]{overflow-y:scroll}"]}),n})(),Mt=(()=>{class n{constructor(){this.items=[{cssIcon:"perun-module-dependencies",url:"attrDependencies",label:"MENU_ITEMS.VISUALIZER.ATTR_DEPENDENCIES",style:"admin-btn"},{cssIcon:"perun-user-destination-relationship",url:"userDestinationRelationship",label:"MENU_ITEMS.VISUALIZER.USER_DESTINATION",style:"admin-btn"}]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-visualizer-overview"]],hostVars:2,hostBindings:function(e,i){2&e&&t.ekj("router-component",i.true)},decls:2,vars:2,consts:[[3,"items","size"]],template:function(e,i){1&e&&(t.TgZ(0,"div"),t._UZ(1,"perun-web-apps-menu-buttons-field",0),t.qZA()),2&e&&(t.xp6(1),t.Q6J("items",i.items)("size","small"))},dependencies:[L.L]}),n})();var Bt=s(71884),ae=s(18505),Ae=s(47957),We=s(71948),qe=s(86257);function Ie(n,r){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.Oqu(t.lcZ(1,1,"ADMIN.VISUALIZER.USER_DESTINATION.SELECT_USER"))}function Me(n,r){1&n&&t._UZ(0,"mat-spinner",17),2&n&&t.Q6J("diameter",20)("strokeWidth",2)}function _n(n,r){if(1&n&&(t.TgZ(0,"mat-option",18)(1,"span",19),t._uU(2),t.qZA(),t._uU(3),t.qZA()),2&n){const e=r.$implicit;t.Q6J("value",e.firstName+" "+e.lastName),t.xp6(2),t.hij("#",e.id,""),t.xp6(1),t.AsE(" ",e.firstName," ",e.lastName," ")}}function Jn(n,r){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.Oqu(t.lcZ(1,1,"ADMIN.VISUALIZER.USER_DESTINATION.SELECT_DESTINATION"))}function tr(n,r){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.Oqu(t.lcZ(1,1,"ADMIN.VISUALIZER.USER_DESTINATION.SELECT_SERVICE"))}function xi(n,r){if(1&n&&(t.TgZ(0,"mat-radio-button",20),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}let Yn=(()=>{class n{constructor(e,i,a,o,v,T){this.usersService=e,this.translate=i,this.facilityManager=a,this.serviceService=o,this.router=v,this.notificator=T,this.searchField=new rt.p4,this.chosenService="",this.availableServices=[],this.loading=!1,this.destination=""}ngOnInit(){this.searchField.setValue(""),this.users=this.searchField.valueChanges.pipe((0,q.b)(400),(0,Bt.x)(),(0,ae.b)(()=>this.loading=!0),(0,F.w)(e=>this.usersService.findUsers(e)),(0,ae.b)(()=>this.loading=!1)),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.SELECT_NO_SERVICE").subscribe(e=>{this.noServiceText=e,this.availableServices.push(this.noServiceText)})}validateName(e){""!==this.searchField.value?this.usersService.findUsers(this.searchField.value).subscribe(i=>{for(const a of i){if((a.firstName+" "+a.lastName).toLowerCase()===this.searchField.value.toLowerCase()){this.selectedUser=a,e.selected.completed=!0,e.next();break}this.selectedUser=null}this.selectedUser||this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.ERROR_WRONG_NAME").subscribe(a=>{this.notificator.showError(a)})}):this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.ERROR_NO_NAME").subscribe(i=>{this.notificator.showError(i)})}validateDestination(e){""!==this.destination?(this.availableServices=[],this.availableServices.push(this.noServiceText),this.chosenService="",this.facilityManager.getFacilitiesByDestination(this.destination).subscribe(i=>{if(0!==i.length){e.selected.completed=!0,e.next();for(const a of i)this.serviceService.getAllRichDestinationsForFacility(a.id).subscribe(o=>{for(const v of o)v.destination===this.destination&&(this.availableServices.includes(v.service.name)||this.availableServices.push(v.service.name))})}else this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.ERROR_WRONG_DESTINATION").subscribe(a=>{this.notificator.showError(a)})})):this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.ERROR_NO_DESTINATION").subscribe(i=>{this.notificator.showError(i)})}getGraph(){""!==this.chosenService?this.router.navigate(["admin/visualizer/userDestinationRelationship/graph"],this.chosenService===this.noServiceText?{queryParams:{user:this.selectedUser.id,destination:this.destination,service:"noService"},queryParamsHandling:"merge"}:{queryParams:{user:this.selectedUser.id,destination:this.destination,service:this.chosenService},queryParamsHandling:"merge"}):this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.ERROR_NOT_CHOSEN_SERVICE").subscribe(e=>{this.notificator.showError(e)})}notCompleted(e){e.selected.completed=!1}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(H.Fv),t.Y36(u.sK),t.Y36(H.IQ),t.Y36(H.KK),t.Y36(p.F0),t.Y36(Z.V6))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-user-destination-relationship"]],hostVars:2,hostBindings:function(e,i){2&e&&t.ekj("router-component",i.true)},decls:46,vars:36,consts:[[1,"p-3","card","settings-card","col-12","col-xl-5"],[1,"page-subtitle"],["linear",""],["stepper",""],["completed","false"],["matStepLabel",""],[1,"w-100"],["matInput","","type","text",3,"placeholder","formControl","matAutocomplete","keydown.enter","ngModelChange"],["matSuffix","",3,"diameter","strokeWidth",4,"ngIf"],["align","start"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],["mat-stroked-button","",1,"mt-2",3,"click"],["matInput","","type","text",3,"placeholder","ngModel","keydown.enter","ngModelChange"],["mat-stroked-button","","matStepperPrevious","",1,"mt-2"],[1,"mb-2",3,"ngModel","ngModelChange"],["class","flex-column d-flex","color","primary",3,"value",4,"ngFor","ngForOf"],["matSuffix","",3,"diameter","strokeWidth"],[3,"value"],[1,"text-muted"],["color","primary",1,"flex-column","d-flex",3,"value"]],template:function(e,i){if(1&e){const a=t.EpF();t.TgZ(0,"div",0)(1,"h1",1),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-vertical-stepper",2,3)(6,"mat-step",4),t.YNc(7,Ie,2,3,"ng-template",5),t.TgZ(8,"mat-form-field",6)(9,"input",7),t.NdJ("keydown.enter",function(){t.CHM(a);const v=t.MAs(5);return t.KtG(i.validateName(v))})("ngModelChange",function(){t.CHM(a);const v=t.MAs(5);return t.KtG(i.notCompleted(v))}),t.ALo(10,"translate"),t.qZA(),t.YNc(11,Me,1,2,"mat-spinner",8),t.TgZ(12,"mat-hint",9),t._uU(13),t.ALo(14,"translate"),t.qZA(),t.TgZ(15,"mat-autocomplete",null,10),t.YNc(17,_n,4,4,"mat-option",11),t.ALo(18,"async"),t.qZA()(),t.TgZ(19,"div")(20,"button",12),t.NdJ("click",function(){t.CHM(a);const v=t.MAs(5);return t.KtG(i.validateName(v))}),t._uU(21),t.ALo(22,"translate"),t.qZA()()(),t.TgZ(23,"mat-step",4),t.YNc(24,Jn,2,3,"ng-template",5),t.TgZ(25,"mat-form-field",6)(26,"input",13),t.NdJ("keydown.enter",function(){t.CHM(a);const v=t.MAs(5);return t.KtG(i.validateDestination(v))})("ngModelChange",function(){t.CHM(a);const v=t.MAs(5);return t.KtG(i.notCompleted(v))})("ngModelChange",function(v){return i.destination=v}),t.ALo(27,"translate"),t.qZA()(),t.TgZ(28,"div")(29,"button",14),t._uU(30),t.ALo(31,"translate"),t.qZA(),t.TgZ(32,"button",12),t.NdJ("click",function(){t.CHM(a);const v=t.MAs(5);return t.KtG(i.validateDestination(v))}),t._uU(33),t.ALo(34,"translate"),t.qZA()()(),t.TgZ(35,"mat-step"),t.YNc(36,tr,2,3,"ng-template",5),t.TgZ(37,"mat-radio-group",15),t.NdJ("ngModelChange",function(v){return i.chosenService=v}),t.YNc(38,xi,2,2,"mat-radio-button",16),t.qZA(),t.TgZ(39,"div")(40,"button",14),t._uU(41),t.ALo(42,"translate"),t.qZA(),t.TgZ(43,"button",12),t.NdJ("click",function(){return i.getGraph()}),t._uU(44),t.ALo(45,"translate"),t.qZA()()()()()}if(2&e){const a=t.MAs(16);t.xp6(2),t.hij(" ",t.lcZ(3,16,"ADMIN.VISUALIZER.USER_DESTINATION.TITLE")," "),t.xp6(7),t.s9C("placeholder",t.lcZ(10,18,"ADMIN.VISUALIZER.USER_DESTINATION.USER_EXAMPLE")),t.Q6J("formControl",i.searchField)("matAutocomplete",a),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(2),t.Oqu(t.lcZ(14,20,"ADMIN.VISUALIZER.USER_DESTINATION.USER_HINT")),t.xp6(4),t.Q6J("ngForOf",t.lcZ(18,22,i.users)),t.xp6(4),t.hij(" ",t.lcZ(22,24,"ADMIN.VISUALIZER.USER_DESTINATION.BUTTON_NEXT")," "),t.xp6(5),t.s9C("placeholder",t.lcZ(27,26,"ADMIN.VISUALIZER.USER_DESTINATION.DESTINATION_EXAMPLE")),t.Q6J("ngModel",i.destination),t.xp6(4),t.hij(" ",t.lcZ(31,28,"ADMIN.VISUALIZER.USER_DESTINATION.BUTTON_BACK")," "),t.xp6(3),t.hij(" ",t.lcZ(34,30,"ADMIN.VISUALIZER.USER_DESTINATION.BUTTON_NEXT")," "),t.xp6(4),t.Q6J("ngModel",i.chosenService),t.xp6(1),t.Q6J("ngForOf",i.availableServices),t.xp6(3),t.hij(" ",t.lcZ(42,32,"ADMIN.VISUALIZER.USER_DESTINATION.BUTTON_BACK")," "),t.xp6(3),t.hij(" ",t.lcZ(45,34,"ADMIN.VISUALIZER.USER_DESTINATION.SUBMIT_BUTTON")," ")}},dependencies:[m.sg,m.O5,Ae.XC,Ae.ZL,zt.ey,ie.KE,ie.bx,ie.R9,Ot.Nt,rt.Fj,rt.JJ,rt.oH,rt.On,G.lW,tt.Ou,We.VQ,We.U0,qe.C0,qe.VY,qe.Vq,qe.fd,m.Ov,u.X$]}),n})();function Mn(n,r,e){n._context.bezierCurveTo((2*n._x0+n._x1)/3,(2*n._y0+n._y1)/3,(n._x0+2*n._x1)/3,(n._y0+2*n._y1)/3,(n._x0+4*n._x1+r)/6,(n._y0+4*n._y1+e)/6)}function Kn(n){this._context=n}function Pn(n,r){this._basis=new Kn(n),this._beta=r}Kn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Mn(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(n,r){switch(n=+n,r=+r,this._point){case 0:this._point=1,this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Mn(this,n,r)}this._x0=this._x1,this._x1=n,this._y0=this._y1,this._y1=r}},Pn.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var n=this._x,r=this._y,e=n.length-1;if(e>0)for(var N,i=n[0],a=r[0],o=n[e]-i,v=r[e]-a,T=-1;++T<=e;)this._basis.point(this._beta*n[T]+(1-this._beta)*(i+(N=T/e)*o),this._beta*r[T]+(1-this._beta)*(a+N*v));this._x=this._y=null,this._basis.lineEnd()},point:function(n,r){this._x.push(+n),this._y.push(+r)}};const Ha=function n(r){function e(i){return 1===r?new Kn(i):new Pn(i,r)}return e.beta=function(i){return n(+i)},e}(.85);var ea=s(77579),va=s(70655),Ve=s(37340);function Cr(){}function Vi(n){return null==n?Cr:function(){return this.querySelector(n)}}function y(){return[]}function S(n){return null==n?y:function(){return this.querySelectorAll(n)}}function $(n){return function(){return this.matches(n)}}function vt(n){return new Array(n.length)}function Rt(n,r){this.ownerDocument=n.ownerDocument,this.namespaceURI=n.namespaceURI,this._next=null,this._parent=n,this.__data__=r}function tn(n,r,e,i,a,o){for(var T,v=0,N=r.length,U=o.length;vr?1:n>=r?0:NaN}Rt.prototype={constructor:Rt,appendChild:function(n){return this._parent.insertBefore(n,this._next)},insertBefore:function(n,r){return this._parent.insertBefore(n,r)},querySelector:function(n){return this._parent.querySelector(n)},querySelectorAll:function(n){return this._parent.querySelectorAll(n)}};var Ya="http://www.w3.org/1999/xhtml";const Hs={svg:"http://www.w3.org/2000/svg",xhtml:Ya,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function xa(n){var r=n+="",e=r.indexOf(":");return e>=0&&"xmlns"!==(r=n.slice(0,e))&&(n=n.slice(e+1)),Hs.hasOwnProperty(r)?{space:Hs[r],local:n}:n}function Lc(n){return function(){this.removeAttribute(n)}}function kc(n){return function(){this.removeAttributeNS(n.space,n.local)}}function Ic(n,r){return function(){this.setAttribute(n,r)}}function Oc(n,r){return function(){this.setAttributeNS(n.space,n.local,r)}}function Mc(n,r){return function(){var e=r.apply(this,arguments);null==e?this.removeAttribute(n):this.setAttribute(n,e)}}function Nc(n,r){return function(){var e=r.apply(this,arguments);null==e?this.removeAttributeNS(n.space,n.local):this.setAttributeNS(n.space,n.local,e)}}function Ys(n){return n.ownerDocument&&n.ownerDocument.defaultView||n.document&&n||n.defaultView}function Fc(n){return function(){this.style.removeProperty(n)}}function Rc(n,r,e){return function(){this.style.setProperty(n,r,e)}}function Bc(n,r,e){return function(){var i=r.apply(this,arguments);null==i?this.style.removeProperty(n):this.style.setProperty(n,i,e)}}function Mr(n,r){return n.style.getPropertyValue(r)||Ys(n).getComputedStyle(n,null).getPropertyValue(r)}function Vc(n){return function(){delete this[n]}}function Gc(n,r){return function(){this[n]=r}}function Uc(n,r){return function(){var e=r.apply(this,arguments);null==e?delete this[n]:this[n]=e}}function Ws(n){return n.trim().split(/^|\s+/)}function Wa(n){return n.classList||new Xs(n)}function Xs(n){this._node=n,this._names=Ws(n.getAttribute("class")||"")}function $s(n,r){for(var e=Wa(n),i=-1,a=r.length;++i=0&&(this._names.splice(r,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(n){return this._names.indexOf(n)>=0}};var Js={},Ar=null;function vu(n,r,e){return n=Ks(n,r,e),function(i){var a=i.relatedTarget;(!a||a!==this&&!(8&a.compareDocumentPosition(this)))&&n.call(this,i)}}function Ks(n,r,e){return function(i){var a=Ar;Ar=i;try{n.call(this,this.__data__,r,e)}finally{Ar=a}}}function xu(n){return n.trim().split(/^|\s+/).map(function(r){var e="",i=r.indexOf(".");return i>=0&&(e=r.slice(i+1),r=r.slice(0,i)),{type:r,name:e}})}function yu(n){return function(){var r=this.__on;if(r){for(var o,e=0,i=-1,a=r.length;e=$t&&($t=qt+1);!(De=_t[$t])&&++$t=0;)(v=i[a])&&(o&&4^v.compareDocumentPosition(o)&&o.parentNode.insertBefore(v,o),o=v);return this},sort:function Di(n){function r(ct,ot){return ct&&ot?n(ct.__data__,ot.__data__):!ct-!ot}n||(n=wr);for(var e=this._groups,i=e.length,a=new Array(i),o=0;o1?this.each((null==r?Fc:"function"==typeof r?Bc:Rc)(n,r,e??"")):Mr(this.node(),n)},property:function zc(n,r){return arguments.length>1?this.each((null==r?Vc:"function"==typeof r?Uc:Gc)(n,r)):this.node()[n]},classed:function Xc(n,r){var e=Ws(n+"");if(arguments.length<2){for(var i=Wa(this.node()),a=-1,o=e.length;++a0)for(var N,i=n[0],a=r[0],o=n[e]-i,v=r[e]-a,T=-1;++T<=e;)this._basis.point(this._beta*n[T]+(1-this._beta)*(i+(N=T/e)*o),this._beta*r[T]+(1-this._beta)*(a+N*v));this._x=this._y=null,this._basis.lineEnd()},point:function(n,r){this._x.push(+n),this._y.push(+r)}};const Su=function n(r){function e(i){return 1===r?new ya(i):new ro(i,r)}return e.beta=function(i){return n(+i)},e}(.85);var Xa=Math.PI,$a=2*Xa,Sr=1e-6,Eu=$a-Sr;function Qa(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function ao(){return new Qa}Qa.prototype=ao.prototype={constructor:Qa,moveTo:function(n,r){this._+="M"+(this._x0=this._x1=+n)+","+(this._y0=this._y1=+r)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(n,r){this._+="L"+(this._x1=+n)+","+(this._y1=+r)},quadraticCurveTo:function(n,r,e,i){this._+="Q"+ +n+","+ +r+","+(this._x1=+e)+","+(this._y1=+i)},bezierCurveTo:function(n,r,e,i,a,o){this._+="C"+ +n+","+ +r+","+ +e+","+ +i+","+(this._x1=+a)+","+(this._y1=+o)},arcTo:function(n,r,e,i,a){var o=this._x1,v=this._y1,T=(e=+e)-(n=+n),N=(i=+i)-(r=+r),U=o-n,J=v-r,ct=U*U+J*J;if((a=+a)<0)throw new Error("negative radius: "+a);if(null===this._x1)this._+="M"+(this._x1=n)+","+(this._y1=r);else if(ct>Sr)if(Math.abs(J*T-N*U)>Sr&&a){var ot=e-o,Ct=i-v,It=T*T+N*N,Ft=ot*ot+Ct*Ct,_t=Math.sqrt(It),Vt=Math.sqrt(ct),qt=a*Math.tan((Xa-Math.acos((It+ct-Ft)/(2*_t*Vt)))/2),$t=qt/Vt,ye=qt/_t;Math.abs($t-1)>Sr&&(this._+="L"+(n+$t*U)+","+(r+$t*J)),this._+="A"+a+","+a+",0,0,"+ +(J*ot>U*Ct)+","+(this._x1=n+ye*T)+","+(this._y1=r+ye*N)}else this._+="L"+(this._x1=n)+","+(this._y1=r)},arc:function(n,r,e,i,a,o){n=+n,r=+r,o=!!o;var v=(e=+e)*Math.cos(i),T=e*Math.sin(i),N=n+v,U=r+T,J=1^o,ct=o?i-a:a-i;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+N+","+U:(Math.abs(this._x1-N)>Sr||Math.abs(this._y1-U)>Sr)&&(this._+="L"+N+","+U),e&&(ct<0&&(ct=ct%$a+$a),ct>Eu?this._+="A"+e+","+e+",0,1,"+J+","+(n-v)+","+(r-T)+"A"+e+","+e+",0,1,"+J+","+(this._x1=N)+","+(this._y1=U):ct>Sr&&(this._+="A"+e+","+e+",0,"+ +(ct>=Xa)+","+J+","+(this._x1=n+e*Math.cos(a))+","+(this._y1=r+e*Math.sin(a))))},rect:function(n,r,e,i){this._+="M"+(this._x0=this._x1=+n)+","+(this._y0=this._y1=+r)+"h"+ +e+"v"+ +i+"h"+-e+"Z"},toString:function(){return this._}};const Du=ao;function ba(n){return function(){return n}}function so(n){this._context=n}function Lu(n){return new so(n)}function ku(n){return n[0]}function Iu(n){return n[1]}so.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(n,r){switch(n=+n,r=+r,this._point){case 0:this._point=1,this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 1:this._point=2;default:this._context.lineTo(n,r)}}};var oo=Math.PI;function co(n){return(1-Math.cos(oo*n))/2}var Ta=s(25922),or=s(49194),ja=s(73339),Mu=(0,Ta.Z)("start","end","cancel","interrupt"),Nu=[];function Aa(n,r,e,i,a,o){var v=n.__transition;if(v){if(e in v)return}else n.__transition={};!function Pu(n,r,e){var a,i=n.__transition;function v(U){var J,ct,ot,Ct;if(1!==e.state)return N();for(J in i)if((Ct=i[J]).name===e.name){if(3===Ct.state)return(0,ja.Z)(v);4===Ct.state?(Ct.state=6,Ct.timer.stop(),Ct.on.call("interrupt",n,n.__data__,Ct.index,Ct.group),delete i[J]):+J0)throw new Error("too late; already scheduled");return e}function lr(n,r){var e=Ki(n,r);if(e.state>3)throw new Error("too late; already running");return e}function Ki(n,r){var e=n.__transition;if(!e||!(e=e[r]))throw new Error("transition not found");return e}function _r(n,r){return n=+n,r=+r,function(e){return n*(1-e)+r*e}}var ia,es,go,Sa,fo=180/Math.PI,ts={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function mo(n,r,e,i,a,o){var v,T,N;return(v=Math.sqrt(n*n+r*r))&&(n/=v,r/=v),(N=n*e+r*i)&&(e-=n*N,i-=r*N),(T=Math.sqrt(e*e+i*i))&&(e/=T,i/=T,N/=T),n*i180?J+=360:J-U>180&&(U+=360),ot.push({i:ct.push(a(ct)+"rotate(",null,i)-2,x:_r(U,J)})):J&&ct.push(a(ct)+"rotate("+J+i)}(U.rotate,J.rotate,ct,ot),function T(U,J,ct,ot){U!==J?ot.push({i:ct.push(a(ct)+"skewX(",null,i)-2,x:_r(U,J)}):J&&ct.push(a(ct)+"skewX("+J+i)}(U.skewX,J.skewX,ct,ot),function N(U,J,ct,ot,Ct,It){if(U!==ct||J!==ot){var Ft=Ct.push(a(Ct)+"scale(",null,",",null,")");It.push({i:Ft-4,x:_r(U,ct)},{i:Ft-2,x:_r(J,ot)})}else(1!==ct||1!==ot)&&Ct.push(a(Ct)+"scale("+ct+","+ot+")")}(U.scaleX,U.scaleY,J.scaleX,J.scaleY,ct,ot),U=J=null,function(Ct){for(var _t,It=-1,Ft=ot.length;++It>8&15|r>>4&240,r>>4&15|240&r,(15&r)<<4|15&r,1):8===e?Da(r>>24&255,r>>16&255,r>>8&255,(255&r)/255):4===e?Da(r>>12&15|r>>8&240,r>>8&15|r>>4&240,r>>4&15|240&r,((15&r)<<4|15&r)/255):null):(r=Wu.exec(n))?new Ui(r[1],r[2],r[3],1):(r=Xu.exec(n))?new Ui(255*r[1]/100,255*r[2]/100,255*r[3]/100,1):(r=$u.exec(n))?Da(r[1],r[2],r[3],r[4]):(r=Qu.exec(n))?Da(255*r[1]/100,255*r[2]/100,255*r[3]/100,r[4]):(r=ju.exec(n))?Ao(r[1],r[2]/100,r[3]/100,1):(r=Ju.exec(n))?Ao(r[1],r[2]/100,r[3]/100,r[4]):xo.hasOwnProperty(n)?To(xo[n]):"transparent"===n?new Ui(NaN,NaN,NaN,0):null}function To(n){return new Ui(n>>16&255,n>>8&255,255&n,1)}function Da(n,r,e,i){return i<=0&&(n=r=e=NaN),new Ui(n,r,e,i)}function qu(n){return n instanceof ra||(n=oa(n)),n?new Ui((n=n.rgb()).r,n.g,n.b,n.opacity):new Ui}function La(n,r,e,i){return 1===arguments.length?qu(n):new Ui(n,r,e,i??1)}function Ui(n,r,e,i){this.r=+n,this.g=+r,this.b=+e,this.opacity=+i}function Co(){return"#"+rs(this.r)+rs(this.g)+rs(this.b)}function wo(){var n=this.opacity;return(1===(n=isNaN(n)?1:Math.max(0,Math.min(1,n)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===n?")":", "+n+")")}function rs(n){return((n=Math.max(0,Math.min(255,Math.round(n)||0)))<16?"0":"")+n.toString(16)}function Ao(n,r,e,i){return i<=0?n=r=e=NaN:e<=0||e>=1?n=r=NaN:r<=0&&(n=NaN),new nr(n,r,e,i)}function So(n){if(n instanceof nr)return new nr(n.h,n.s,n.l,n.opacity);if(n instanceof ra||(n=oa(n)),!n)return new nr;if(n instanceof nr)return n;var r=(n=n.rgb()).r/255,e=n.g/255,i=n.b/255,a=Math.min(r,e,i),o=Math.max(r,e,i),v=NaN,T=o-a,N=(o+a)/2;return T?(v=r===o?(e-i)/T+6*(e0&&N<1?0:v,new nr(v,T,N,n.opacity)}function nr(n,r,e,i){this.h=+n,this.s=+r,this.l=+e,this.opacity=+i}function as(n,r,e){return 255*(n<60?r+(e-r)*n/60:n<180?e:n<240?r+(e-r)*(240-n)/60:r)}function Eo(n,r,e,i,a){var o=n*n,v=o*n;return((1-3*n+3*o-v)*r+(4-6*o+3*v)*e+(1+3*n+3*o-3*v)*i+v*a)/6}function Do(n){return function(){return n}}function ko(n,r){var e=r-n;return e?function Lo(n,r){return function(e){return n+e*r}}(n,e):Do(isNaN(n)?r:n)}is(ra,oa,{copy:function(n){return Object.assign(new this.constructor,this,n)},displayable:function(){return this.rgb().displayable()},hex:yo,formatHex:yo,formatHsl:function Ku(){return So(this).formatHsl()},formatRgb:bo,toString:bo}),is(Ui,La,vo(ra,{brighter:function(n){return n=null==n?Ea:Math.pow(Ea,n),new Ui(this.r*n,this.g*n,this.b*n,this.opacity)},darker:function(n){return n=null==n?.7:Math.pow(.7,n),new Ui(this.r*n,this.g*n,this.b*n,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Co,formatHex:Co,formatRgb:wo,toString:wo})),is(nr,function th(n,r,e,i){return 1===arguments.length?So(n):new nr(n,r,e,i??1)},vo(ra,{brighter:function(n){return n=null==n?Ea:Math.pow(Ea,n),new nr(this.h,this.s,this.l*n,this.opacity)},darker:function(n){return n=null==n?.7:Math.pow(.7,n),new nr(this.h,this.s,this.l*n,this.opacity)},rgb:function(){var n=this.h%360+360*(this.h<0),r=isNaN(n)||isNaN(this.s)?0:this.s,e=this.l,i=e+(e<.5?e:1-e)*r,a=2*e-i;return new Ui(as(n>=240?n-240:n+120,a,i),as(n,a,i),as(n<120?n+240:n-120,a,i),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var n=this.opacity;return(1===(n=isNaN(n)?1:Math.max(0,Math.min(1,n)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===n?")":", "+n+")")}}));const Io=function n(r){var e=function rh(n){return 1==(n=+n)?ko:function(r,e){return e-r?function ih(n,r,e){return n=Math.pow(n,e),r=Math.pow(r,e)-n,e=1/e,function(i){return Math.pow(n+i*r,e)}}(r,e,n):Do(isNaN(r)?e:r)}}(r);function i(a,o){var v=e((a=La(a)).r,(o=La(o)).r),T=e(a.g,o.g),N=e(a.b,o.b),U=ko(a.opacity,o.opacity);return function(J){return a.r=v(J),a.g=T(J),a.b=N(J),a.opacity=U(J),a+""}}return i.gamma=n,i}(1);function Oo(n){return function(r){var v,T,e=r.length,i=new Array(e),a=new Array(e),o=new Array(e);for(v=0;v=1?(e=1,r-1):Math.floor(e*r),a=n[i],o=n[i+1];return Eo((e-i/r)*r,i>0?n[i-1]:2*a-o,a,o,ie&&(o=r.slice(e,o),T[v]?T[v]+=o:T[++v]=o),(i=i[0])===(a=a[0])?T[v]?T[v]+=a:T[++v]=a:(T[++v]=null,N.push({i:v,x:_r(i,a)})),e=os.lastIndex;return e=0&&(r=r.slice(0,e)),!r||"start"===r})}(r)?qa:lr;return function(){var v=o(this,n),T=v.on;T!==i&&(a=(i=T).copy()).on(r,e),v.on=a}}var Rh=na.prototype.constructor;function No(n){return function(){this.style.removeProperty(n)}}function Hh(n,r,e){return function(i){this.style.setProperty(n,r.call(this,i),e)}}function Yh(n,r,e){var i,a;function o(){var v=r.apply(this,arguments);return v!==a&&(i=(a=v)&&Hh(n,v,e)),i}return o._value=r,o}function jh(n){return function(r){this.textContent=n.call(this,r)}}function Jh(n){var r,e;function i(){var a=n.apply(this,arguments);return a!==e&&(r=(e=a)&&jh(a)),r}return i._value=n,i}var ed=0;function cr(n,r,e,i){this._groups=n,this._parents=r,this._name=e,this._id=i}function Po(){return++ed}var Pr=na.prototype;cr.prototype=function nd(n){return na().transition(n)}.prototype={constructor:cr,select:function Ph(n){var r=this._name,e=this._id;"function"!=typeof n&&(n=Vi(n));for(var i=this._groups,a=i.length,o=new Array(a),v=0;v2&&i.state<5,i.state=6,i.timer.stop(),i.on.call(a?"interrupt":"cancel",n,n.__data__,i.index,i.group),delete e[v]):o=!1;o&&delete n.__transition}}(this,n)})},na.prototype.transition=function ad(n){var r,e;n instanceof cr?(r=n._id,n=n._name):(r=Po(),(e=ls).time=(0,or.zO)(),n=null==n?null:n+"");for(var i=this._groups,a=i.length,o=0;o"u"}function xd(n){if(Array.isArray(n)){for(var r=0,e=Array(n.length);r1&&void 0!==arguments[1]?arguments[1]:0;return{a:1,c:0,e:n,b:0,d:1,f:r}}function ka(n,r){switch(arguments.length){case 0:break;case 1:this.range(n);break;default:this.range(r).domain(n)}return this}"function"==typeof Symbol&&Symbol,Math,Math,Math,Math;const Go=Symbol("implicit");function cs(){var n=new Map,r=[],e=[],i=Go;function a(o){var v=o+"",T=n.get(v);if(!T){if(i!==Go)return i;n.set(v,T=r.push(o))}return e[(T-1)%e.length]}return a.domain=function(o){if(!arguments.length)return r.slice();r=[],n=new Map;for(const v of o){const T=v+"";n.has(T)||n.set(T,r.push(v))}return a},a.range=function(o){return arguments.length?(e=Array.from(o),a):e.slice()},a.unknown=function(o){return arguments.length?(i=o,a):i},a.copy=function(){return cs(r,e).unknown(i)},ka.apply(a,arguments),a}var Rr=s(59695);function Td(n,r){var e;function i(){var a,v,o=e.length,T=0,N=0;for(a=0;a=(ct=(T+U)/2))?T=ct:U=ct,(_t=e>=(ot=(N+J)/2))?N=ot:J=ot,a=o,!(o=o[Vt=_t<<1|Ft]))return a[Vt]=v,n;if(Ct=+n._x.call(null,o.data),It=+n._y.call(null,o.data),r===Ct&&e===It)return v.next=o,a?a[Vt]=v:n._root=v,n;do{a=a?a[Vt]=new Array(4):n._root=new Array(4),(Ft=r>=(ct=(T+U)/2))?T=ct:U=ct,(_t=e>=(ot=(N+J)/2))?N=ot:J=ot}while((Vt=_t<<1|Ft)==(qt=(It>=ot)<<1|Ct>=ct));return a[qt]=o,a[Vt]=v,n}function Li(n,r,e,i,a){this.node=n,this.x0=r,this.y0=e,this.x1=i,this.y1=a}function Pd(n){return n[0]}function Rd(n){return n[1]}function us(n,r,e){var i=new hs(r??Pd,e??Rd,NaN,NaN,NaN,NaN);return null==n?i:i.addAll(n)}function hs(n,r,e,i,a,o){this._x=n,this._y=r,this._x0=e,this._y0=i,this._x1=a,this._y1=o,this._root=void 0}function zo(n){for(var r={data:n.data},e=r;n=n.next;)e=e.next={data:n.data};return r}var ki=us.prototype=hs.prototype;function Zd(n){return n.x+n.vx}function Vd(n){return n.y+n.vy}function Ho(n){var r,e,i=1,a=1;function o(){for(var N,J,ct,ot,Ct,It,Ft,U=r.length,_t=0;_tot+yn||DeCt+yn||gect.index){var En=ot-en.x-en.vx,Dn=Ct-en.y-en.vy,Xn=En*En+Dn*Dn;XnN.r&&(N.r=N[U].r)}function T(){if(r){var N,J,U=r.length;for(e=new Array(U),N=0;NJ&&(J=a),oct&&(ct=o));if(N>J||U>ct)return this;for(this.cover(N,U).cover(J,ct),e=0;en||n>=a||i>r||r>=o;)switch(U=(rJ||(T=It.y0)>ct||(N=It.x1)=Vt)<<1|n>=_t)&&(It=ot[ot.length-1],ot[ot.length-1]=ot[ot.length-1-Ft],ot[ot.length-1-Ft]=It)}else{var qt=n-+this._x.call(null,Ct.data),$t=r-+this._y.call(null,Ct.data),ye=qt*qt+$t*$t;if(ye=(ot=(v+N)/2))?v=ot:N=ot,(Ft=ct>=(Ct=(T+U)/2))?T=Ct:U=Ct,r=e,!(e=e[_t=Ft<<1|It]))return this;if(!e.length)break;(r[_t+1&3]||r[_t+2&3]||r[_t+3&3])&&(i=r,Vt=_t)}for(;e.data!==n;)if(a=e,!(e=e.next))return this;return(o=e.next)&&delete e.next,a?(o?a.next=o:delete a.next,this):r?(o?r[_t]=o:delete r[_t],(e=r[0]||r[1]||r[2]||r[3])&&e===(r[3]||r[2]||r[1]||r[0])&&!e.length&&(i?i[Vt]=e:this._root=e),this):(this._root=o,this)},ki.removeAll=function kd(n){for(var r=0,e=n.length;r1?(null==Ft?T.remove(It):T.set(It,Ct(Ft)),r):T.get(It)},find:function(It,Ft,_t){var $t,ye,De,ge,en,Vt=0,qt=n.length;for(null==_t?_t=1/0:_t*=_t,Vt=0;Vt1?(U.on(It,Ft),r):U.on(It)}}}function Jo(){var n,r,e,a,i=ti(-30),o=1,v=1/0,T=.81;function N(ot){var Ct,It=n.length,Ft=us(n,Yd,Wd).visitAfter(J);for(e=ot,Ct=0;Ct=v)){(ot.data!==r||ot.next)&&(0===_t&&($t+=(_t=vr())*_t),0===Vt&&($t+=(Vt=vr())*Vt),$t{return(n=Br||(Br={})).Both="both",n.Horizontal="horizontal",n.Vertical="vertical",Br;var n})(),Zr=(()=>{return(n=Zr||(Zr={})).UpperLeft="UpperLeft",n.UpperRight="UpperRight",Zr;var n})();function Ap(n,r,e){e=e||{};let i,a,o,v=null,T=0;function N(){T=!1===e.leading?0:+new Date,v=null,o=n.apply(i,a)}return function(...U){const J=+new Date;!T&&!1===e.leading&&(T=J);const ct=r-(J-T);return i=this,a=U,ct<=0?(clearTimeout(v),v=null,T=J,o=n.apply(i,a)):!v&&!1!==e.trailing&&(v=setTimeout(N,ct)),o}}function Sp(n,r){return function(i,a,o){return{configurable:!0,enumerable:o.enumerable,get:function(){return Object.defineProperty(this,a,{configurable:!0,enumerable:o.enumerable,value:Ap(o.value,n,r)}),this[a]}}}}const qo=[{name:"vivid",selectable:!0,group:"Ordinal",domain:["#647c8a","#3f51b5","#2196f3","#00b862","#afdf0a","#a7b61a","#f3e562","#ff9800","#ff5722","#ff4514"]},{name:"natural",selectable:!0,group:"Ordinal",domain:["#bf9d76","#e99450","#d89f59","#f2dfa7","#a5d7c6","#7794b1","#afafaf","#707160","#ba9383","#d9d5c3"]},{name:"cool",selectable:!0,group:"Ordinal",domain:["#a8385d","#7aa3e5","#a27ea8","#aae3f5","#adcded","#a95963","#8796c0","#7ed3ed","#50abcc","#ad6886"]},{name:"fire",selectable:!0,group:"Ordinal",domain:["#ff3d00","#bf360c","#ff8f00","#ff6f00","#ff5722","#e65100","#ffca28","#ffab00"]},{name:"solar",selectable:!0,group:"Continuous",domain:["#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00"]},{name:"air",selectable:!0,group:"Continuous",domain:["#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b"]},{name:"aqua",selectable:!0,group:"Continuous",domain:["#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064"]},{name:"flame",selectable:!1,group:"Ordinal",domain:["#A10A28","#D3342D","#EF6D49","#FAAD67","#FDDE90","#DBED91","#A9D770","#6CBA67","#2C9653","#146738"]},{name:"ocean",selectable:!1,group:"Ordinal",domain:["#1D68FB","#33C0FC","#4AFFFE","#AFFFFF","#FFFC63","#FDBD2D","#FC8A25","#FA4F1E","#FA141B","#BA38D1"]},{name:"forest",selectable:!1,group:"Ordinal",domain:["#55C22D","#C1F33D","#3CC099","#AFFFFF","#8CFC9D","#76CFFA","#BA60FB","#EE6490","#C42A1C","#FC9F32"]},{name:"horizon",selectable:!1,group:"Ordinal",domain:["#2597FB","#65EBFD","#99FDD0","#FCEE4B","#FEFCFA","#FDD6E3","#FCB1A8","#EF6F7B","#CB96E8","#EFDEE0"]},{name:"neons",selectable:!1,group:"Ordinal",domain:["#FF3333","#FF33FF","#CC33FF","#0000FF","#33CCFF","#33FFFF","#33FF66","#CCFF33","#FFCC00","#FF6600"]},{name:"picnic",selectable:!1,group:"Ordinal",domain:["#FAC51D","#66BD6D","#FAA026","#29BB9C","#E96B56","#55ACD2","#B7332F","#2C83C9","#9166B8","#92E7E8"]},{name:"night",selectable:!1,group:"Ordinal",domain:["#2B1B5A","#501356","#183356","#28203F","#391B3C","#1E2B3C","#120634","#2D0432","#051932","#453080","#75267D","#2C507D","#4B3880","#752F7D","#35547D"]},{name:"nightLights",selectable:!1,group:"Ordinal",domain:["#4e31a5","#9c25a7","#3065ab","#57468b","#904497","#46648b","#32118d","#a00fb3","#1052a2","#6e51bd","#b63cc3","#6c97cb","#8671c1","#b455be","#7496c3"]}];class Ep{constructor(r,e,i){"string"==typeof r&&(r=qo.find(a=>a.name===r)),this.colorDomain=r.domain,this.domain=e,this.customColors=i,this.scale=this.generateColorScheme(r,this.domain)}generateColorScheme(r,e){return"string"==typeof r&&(r=qo.find(i=>i.name===r)),cs().range(r.domain).domain(e)}getColor(r){if(null==r)throw new Error("Value can not be null");if("function"==typeof this.customColors)return this.customColors(r);const e=r.toString();let i;return this.customColors&&this.customColors.length>0&&(i=this.customColors.find(a=>a.name.toLowerCase()===e.toLowerCase())),i?i.value:this.scale(r)}}let Lp=(()=>{class n{constructor(e,i){this.element=e,this.zone=i,this.visible=new t.vpe,this.isVisible=!1,this.runCheck()}destroy(){clearTimeout(this.timeout)}onVisibilityChange(){this.zone.run(()=>{this.isVisible=!0,this.visible.emit(!0)})}runCheck(){const e=()=>{if(!this.element)return;const{offsetHeight:i,offsetWidth:a}=this.element.nativeElement;i&&a?(clearTimeout(this.timeout),this.onVisibilityChange()):(clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>e(),100)}))};this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>e())})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(t.R0b))},n.\u0275dir=t.lG2({type:n,selectors:[["visibility-observer"]],outputs:{visible:"visible"}}),n})();var Vr=(()=>{return(n=Vr||(Vr={})).LEFT_TO_RIGHT="LR",n.RIGHT_TO_LEFT="RL",n.TOP_TO_BOTTOM="TB",n.BOTTOM_TO_TOM="BT",Vr;var n})();function Gr(n){return"string"==typeof n?{id:n,x:0,y:0}:n}function el(n,r){return"number"==typeof r?n[r]:r}const nl={dagre:class kp{constructor(){this.defaultSettings={orientation:Vr.LEFT_TO_RIGHT,marginX:20,marginY:20,edgePadding:100,rankPadding:100,nodePadding:50,multigraph:!0,compound:!0},this.settings={}}run(r){this.createDagreGraph(r),Rr.layout(this.dagreGraph),r.edgeLabels=this.dagreGraph._edgeLabels;for(const e in this.dagreGraph._nodes){const i=this.dagreGraph._nodes[e],a=r.nodes.find(o=>o.id===i.id);a.position={x:i.x,y:i.y},a.dimension={width:i.width,height:i.height}}return r}updateEdge(r,e){const i=r.nodes.find(N=>N.id===e.source),a=r.nodes.find(N=>N.id===e.target),o=i.position.y<=a.position.y?-1:1;return e.points=[{x:i.position.x,y:i.position.y-o*(i.dimension.height/2)},{x:a.position.x,y:a.position.y+o*(a.dimension.height/2)}],r}createDagreGraph(r){const e=Object.assign({},this.defaultSettings,this.settings);this.dagreGraph=new Rr.graphlib.Graph({compound:e.compound,multigraph:e.multigraph}),this.dagreGraph.setGraph({rankdir:e.orientation,marginx:e.marginX,marginy:e.marginY,edgesep:e.edgePadding,ranksep:e.rankPadding,nodesep:e.nodePadding,align:e.align,acyclicer:e.acyclicer,ranker:e.ranker,multigraph:e.multigraph,compound:e.compound}),this.dagreGraph.setDefaultEdgeLabel(()=>({})),this.dagreNodes=r.nodes.map(i=>{const a=Object.assign({},i);return a.width=i.dimension.width,a.height=i.dimension.height,a.x=i.position.x,a.y=i.position.y,a}),this.dagreEdges=r.edges.map(i=>{const a=Object.assign({},i);return a.id||(a.id=ur()),a});for(const i of this.dagreNodes)i.width||(i.width=20),i.height||(i.height=30),this.dagreGraph.setNode(i.id,i);for(const i of this.dagreEdges)e.multigraph?this.dagreGraph.setEdge(i.source,i.target,i,i.id):this.dagreGraph.setEdge(i.source,i.target);return this.dagreGraph}},dagreCluster:class Ip{constructor(){this.defaultSettings={orientation:Vr.LEFT_TO_RIGHT,marginX:20,marginY:20,edgePadding:100,rankPadding:100,nodePadding:50,multigraph:!0,compound:!0},this.settings={}}run(r){this.createDagreGraph(r),Rr.layout(this.dagreGraph),r.edgeLabels=this.dagreGraph._edgeLabels;const e=i=>{const a=this.dagreGraph._nodes[i.id];return{...i,position:{x:a.x,y:a.y},dimension:{width:a.width,height:a.height}}};return r.clusters=(r.clusters||[]).map(e),r.nodes=r.nodes.map(e),r}updateEdge(r,e){const i=r.nodes.find(N=>N.id===e.source),a=r.nodes.find(N=>N.id===e.target),o=i.position.y<=a.position.y?-1:1;return e.points=[{x:i.position.x,y:i.position.y-o*(i.dimension.height/2)},{x:a.position.x,y:a.position.y+o*(a.dimension.height/2)}],r}createDagreGraph(r){const e=Object.assign({},this.defaultSettings,this.settings);this.dagreGraph=new Rr.graphlib.Graph({compound:e.compound,multigraph:e.multigraph}),this.dagreGraph.setGraph({rankdir:e.orientation,marginx:e.marginX,marginy:e.marginY,edgesep:e.edgePadding,ranksep:e.rankPadding,nodesep:e.nodePadding,align:e.align,acyclicer:e.acyclicer,ranker:e.ranker,multigraph:e.multigraph,compound:e.compound}),this.dagreGraph.setDefaultEdgeLabel(()=>({})),this.dagreNodes=r.nodes.map(i=>{const a=Object.assign({},i);return a.width=i.dimension.width,a.height=i.dimension.height,a.x=i.position.x,a.y=i.position.y,a}),this.dagreClusters=r.clusters||[],this.dagreEdges=r.edges.map(i=>{const a=Object.assign({},i);return a.id||(a.id=ur()),a});for(const i of this.dagreNodes)this.dagreGraph.setNode(i.id,i);for(const i of this.dagreClusters)this.dagreGraph.setNode(i.id,i),i.childNodeIds.forEach(a=>{this.dagreGraph.setParent(a,i.id)});for(const i of this.dagreEdges)e.multigraph?this.dagreGraph.setEdge(i.source,i.target,i,i.id):this.dagreGraph.setEdge(i.source,i.target);return this.dagreGraph}},dagreNodesOnly:class Mp{constructor(){this.defaultSettings={orientation:Vr.LEFT_TO_RIGHT,marginX:20,marginY:20,edgePadding:100,rankPadding:100,nodePadding:50,curveDistance:20,multigraph:!0,compound:!0},this.settings={}}run(r){this.createDagreGraph(r),Rr.layout(this.dagreGraph),r.edgeLabels=this.dagreGraph._edgeLabels;for(const e in this.dagreGraph._nodes){const i=this.dagreGraph._nodes[e],a=r.nodes.find(o=>o.id===i.id);a.position={x:i.x,y:i.y},a.dimension={width:i.width,height:i.height}}for(const e of r.edges)this.updateEdge(r,e);return r}updateEdge(r,e){const i=r.nodes.find(It=>It.id===e.source),a=r.nodes.find(It=>It.id===e.target),o="BT"===this.settings.orientation||"TB"===this.settings.orientation?"y":"x",v="y"===o?"x":"y",T="y"===o?"height":"width",N=i.position[o]<=a.position[o]?-1:1,U={[v]:i.position[v],[o]:i.position[o]-N*(i.dimension[T]/2)},J={[v]:a.position[v],[o]:a.position[o]+N*(a.dimension[T]/2)},ct=this.settings.curveDistance||this.defaultSettings.curveDistance;e.points=[U,{[v]:U[v],[o]:U[o]-N*ct},{[v]:J[v],[o]:J[o]+N*ct},J];const Ct=r.edgeLabels[`${e.source}\x01${e.target}\x01\0`];return Ct&&(Ct.points=e.points),r}createDagreGraph(r){const e=Object.assign({},this.defaultSettings,this.settings);this.dagreGraph=new Rr.graphlib.Graph({compound:e.compound,multigraph:e.multigraph}),this.dagreGraph.setGraph({rankdir:e.orientation,marginx:e.marginX,marginy:e.marginY,edgesep:e.edgePadding,ranksep:e.rankPadding,nodesep:e.nodePadding,align:e.align,acyclicer:e.acyclicer,ranker:e.ranker,multigraph:e.multigraph,compound:e.compound}),this.dagreGraph.setDefaultEdgeLabel(()=>({})),this.dagreNodes=r.nodes.map(i=>{const a=Object.assign({},i);return a.width=i.dimension.width,a.height=i.dimension.height,a.x=i.position.x,a.y=i.position.y,a}),this.dagreEdges=r.edges.map(i=>{const a=Object.assign({},i);return a.id||(a.id=ur()),a});for(const i of this.dagreNodes)i.width||(i.width=20),i.height||(i.height=30),this.dagreGraph.setNode(i.id,i);for(const i of this.dagreEdges)e.multigraph?this.dagreGraph.setEdge(i.source,i.target,i,i.id):this.dagreGraph.setEdge(i.source,i.target);return this.dagreGraph}},d3ForceDirected:class Np{constructor(){this.defaultSettings={force:jo().force("charge",Jo().strength(-150)).force("collide",Ho(5)),forceLink:Qo().id(r=>r.id).distance(()=>100)},this.settings={},this.outputGraph$=new ea.x}run(r){return this.inputGraph=r,this.d3Graph={nodes:[...this.inputGraph.nodes.map(e=>({...e}))],edges:[...this.inputGraph.edges.map(e=>({...e}))]},this.outputGraph={nodes:[],edges:[],edgeLabels:[]},this.outputGraph$.next(this.outputGraph),this.settings=Object.assign({},this.defaultSettings,this.settings),this.settings.force&&this.settings.force.nodes(this.d3Graph.nodes).force("link",this.settings.forceLink.links(this.d3Graph.edges)).alpha(.5).restart().on("tick",()=>{this.outputGraph$.next(this.d3GraphToOutputGraph(this.d3Graph))}),this.outputGraph$.asObservable()}updateEdge(r,e){const i=Object.assign({},this.defaultSettings,this.settings);return i.force&&i.force.nodes(this.d3Graph.nodes).force("link",i.forceLink.links(this.d3Graph.edges)).alpha(.5).restart().on("tick",()=>{this.outputGraph$.next(this.d3GraphToOutputGraph(this.d3Graph))}),this.outputGraph$.asObservable()}d3GraphToOutputGraph(r){return this.outputGraph.nodes=this.d3Graph.nodes.map(e=>({...e,id:e.id||ur(),position:{x:e.x,y:e.y},dimension:{width:e.dimension&&e.dimension.width||20,height:e.dimension&&e.dimension.height||20},transform:`translate(${e.x-(e.dimension&&e.dimension.width||20)/2||0}, ${e.y-(e.dimension&&e.dimension.height||20)/2||0})`})),this.outputGraph.edges=this.d3Graph.edges.map(e=>({...e,source:Gr(e.source).id,target:Gr(e.target).id,points:[{x:Gr(e.source).x,y:Gr(e.source).y},{x:Gr(e.target).x,y:Gr(e.target).y}]})),this.outputGraph.edgeLabels=this.outputGraph.edges,this.outputGraph}onDragStart(r,e){this.settings.force.alphaTarget(.3).restart();const i=this.d3Graph.nodes.find(a=>a.id===r.id);!i||(this.draggingStart={x:e.x-i.x,y:e.y-i.y},i.fx=e.x-this.draggingStart.x,i.fy=e.y-this.draggingStart.y)}onDrag(r,e){if(!r)return;const i=this.d3Graph.nodes.find(a=>a.id===r.id);!i||(i.fx=e.x-this.draggingStart.x,i.fy=e.y-this.draggingStart.y)}onDragEnd(r,e){if(!r)return;const i=this.d3Graph.nodes.find(a=>a.id===r.id);!i||(this.settings.force.alphaTarget(0),i.fx=void 0,i.fy=void 0)}},colaForceDirected:class Pp{constructor(){this.defaultSettings={force:(0,Kd.d3adaptor)({...x,...c,..._}).linkDistance(150).avoidOverlaps(!0),viewDimensions:{width:600,height:600}},this.settings={},this.outputGraph$=new ea.x}run(r){return this.inputGraph=r,this.inputGraph.clusters||(this.inputGraph.clusters=[]),this.internalGraph={nodes:[...this.inputGraph.nodes.map(e=>({...e,width:e.dimension?e.dimension.width:20,height:e.dimension?e.dimension.height:20}))],groups:[...this.inputGraph.clusters.map(e=>({padding:5,groups:e.childNodeIds.map(i=>this.inputGraph.clusters.findIndex(a=>a.id===i)).filter(i=>i>=0),leaves:e.childNodeIds.map(i=>this.inputGraph.nodes.findIndex(a=>a.id===i)).filter(i=>i>=0)}))],links:[...this.inputGraph.edges.map(e=>{const i=this.inputGraph.nodes.findIndex(o=>e.source===o.id),a=this.inputGraph.nodes.findIndex(o=>e.target===o.id);if(-1!==i&&-1!==a)return{...e,source:i,target:a}}).filter(e=>!!e)],groupLinks:[...this.inputGraph.edges.map(e=>{const i=this.inputGraph.nodes.findIndex(o=>e.source===o.id),a=this.inputGraph.nodes.findIndex(o=>e.target===o.id);if(!(i>=0&&a>=0))return e}).filter(e=>!!e)]},this.outputGraph={nodes:[],clusters:[],edges:[],edgeLabels:[]},this.outputGraph$.next(this.outputGraph),this.settings=Object.assign({},this.defaultSettings,this.settings),this.settings.force&&(this.settings.force=this.settings.force.nodes(this.internalGraph.nodes).groups(this.internalGraph.groups).links(this.internalGraph.links).alpha(.5).on("tick",()=>{this.settings.onTickListener&&this.settings.onTickListener(this.internalGraph),this.outputGraph$.next(this.internalGraphToOutputGraph(this.internalGraph))}),this.settings.viewDimensions&&(this.settings.force=this.settings.force.size([this.settings.viewDimensions.width,this.settings.viewDimensions.height])),this.settings.forceModifierFn&&(this.settings.force=this.settings.forceModifierFn(this.settings.force)),this.settings.force.start()),this.outputGraph$.asObservable()}updateEdge(r,e){const i=Object.assign({},this.defaultSettings,this.settings);return i.force&&i.force.start(),this.outputGraph$.asObservable()}internalGraphToOutputGraph(r){return this.outputGraph.nodes=r.nodes.map(e=>({...e,id:e.id||ur(),position:{x:e.x,y:e.y},dimension:{width:e.dimension&&e.dimension.width||20,height:e.dimension&&e.dimension.height||20},transform:`translate(${e.x-(e.dimension&&e.dimension.width||20)/2||0}, ${e.y-(e.dimension&&e.dimension.height||20)/2||0})`})),this.outputGraph.edges=r.links.map(e=>{const i=el(r.nodes,e.source),a=el(r.nodes,e.target);return{...e,source:i.id,target:a.id,points:[i.bounds.rayIntersection(a.bounds.cx(),a.bounds.cy()),a.bounds.rayIntersection(i.bounds.cx(),i.bounds.cy())]}}).concat(r.groupLinks.map(e=>{const i=r.nodes.find(T=>T.id===e.source),a=r.nodes.find(T=>T.id===e.target),o=i||r.groups.find(T=>T.id===e.source),v=a||r.groups.find(T=>T.id===e.target);return{...e,source:o.id,target:v.id,points:[o.bounds.rayIntersection(v.bounds.cx(),v.bounds.cy()),v.bounds.rayIntersection(o.bounds.cx(),o.bounds.cy())]}})),this.outputGraph.clusters=r.groups.map((e,i)=>({...this.inputGraph.clusters[i],dimension:{width:e.bounds?e.bounds.width():20,height:e.bounds?e.bounds.height():20},position:{x:e.bounds?e.bounds.x+e.bounds.width()/2:0,y:e.bounds?e.bounds.y+e.bounds.height()/2:0}})),this.outputGraph.edgeLabels=this.outputGraph.edges,this.outputGraph}onDragStart(r,e){const i=this.outputGraph.nodes.findIndex(o=>o.id===r.id),a=this.internalGraph.nodes[i];!a||(this.draggingStart={x:a.x-e.x,y:a.y-e.y},a.fixed=1,this.settings.force.start())}onDrag(r,e){if(!r)return;const i=this.outputGraph.nodes.findIndex(o=>o.id===r.id),a=this.internalGraph.nodes[i];!a||(a.x=this.draggingStart.x+e.x,a.y=this.draggingStart.y+e.y)}onDragEnd(r,e){if(!r)return;const i=this.outputGraph.nodes.findIndex(o=>o.id===r.id),a=this.internalGraph.nodes[i];!a||(a.fixed=0)}}};let il=(()=>{class n{getLayout(e){if(nl[e])return new nl[e];throw new Error(`Unknown layout type '${e}'`)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),Fp=(()=>{class n{constructor(){this.mouseWheelUp=new t.vpe,this.mouseWheelDown=new t.vpe}onMouseWheelChrome(e){this.mouseWheelFunc(e)}onMouseWheelFirefox(e){this.mouseWheelFunc(e)}onWheel(e){this.mouseWheelFunc(e)}onMouseWheelIE(e){this.mouseWheelFunc(e)}mouseWheelFunc(e){window.event&&(e=window.event);const i=Math.max(-1,Math.min(1,e.wheelDelta||-e.detail||e.deltaY||e.deltaX)),o=e.wheelDelta?i<0:i>0;(e.wheelDelta?i>0:i<0)?this.mouseWheelUp.emit(e):o&&this.mouseWheelDown.emit(e),e.returnValue=!1,e.preventDefault&&e.preventDefault()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=t.lG2({type:n,selectors:[["","mouseWheel",""]],hostBindings:function(e,i){1&e&&t.NdJ("mousewheel",function(o){return i.onMouseWheelChrome(o)})("DOMMouseScroll",function(o){return i.onMouseWheelFirefox(o)})("wheel",function(o){return i.onWheel(o)})("onmousewheel",function(o){return i.onMouseWheelIE(o)})},outputs:{mouseWheelUp:"mouseWheelUp",mouseWheelDown:"mouseWheelDown"}}),n})(),Rp=(()=>{class n{constructor(e,i,a,o){this.el=e,this.zone=i,this.cd=a,this.layoutService=o,this.nodes=[],this.clusters=[],this.links=[],this.activeEntries=[],this.draggingEnabled=!0,this.panningEnabled=!0,this.panningAxis=Br.Both,this.enableZoom=!0,this.zoomSpeed=.1,this.minZoomLevel=.1,this.maxZoomLevel=4,this.autoZoom=!1,this.panOnZoom=!0,this.animate=!1,this.autoCenter=!1,this.enableTrackpadSupport=!1,this.showMiniMap=!1,this.miniMapMaxWidth=100,this.miniMapPosition=Zr.UpperRight,this.scheme="cool",this.animations=!0,this.select=new t.vpe,this.activate=new t.vpe,this.deactivate=new t.vpe,this.zoomChange=new t.vpe,this.clickHandler=new t.vpe,this.isMouseMoveCalled=!1,this.graphSubscription=new Fo.w0,this.subscriptions=[],this.isPanning=!1,this.isDragging=!1,this.initialized=!1,this.graphDims={width:0,height:0},this._oldLinks=[],this.oldNodes=new Set,this.oldClusters=new Set,this.transformationMatrix={a:1,c:0,e:0,b:0,d:1,f:0},this._touchLastX=null,this._touchLastY=null,this.minimapScaleCoefficient=3,this.minimapOffsetX=0,this.minimapOffsetY=0,this.isMinimapPanning=!1,this.groupResultsBy=v=>v.label}get zoomLevel(){return this.transformationMatrix.a}set zoomLevel(e){this.zoomTo(Number(e))}get panOffsetX(){return this.transformationMatrix.e}set panOffsetX(e){this.panTo(Number(e),null)}get panOffsetY(){return this.transformationMatrix.f}set panOffsetY(e){this.panTo(null,Number(e))}ngOnInit(){this.update$&&this.subscriptions.push(this.update$.subscribe(()=>{this.update()})),this.center$&&this.subscriptions.push(this.center$.subscribe(()=>{this.center()})),this.zoomToFit$&&this.subscriptions.push(this.zoomToFit$.subscribe(()=>{this.zoomToFit()})),this.panToNode$&&this.subscriptions.push(this.panToNode$.subscribe(e=>{this.panToNodeId(e)})),this.minimapClipPathId=`minimapClip${ur()}`}ngOnChanges(e){this.basicUpdate();const{layoutSettings:a}=e;this.setLayout(this.layout),a&&this.setLayoutSettings(this.layoutSettings),this.update()}setLayout(e){this.initialized=!1,e||(e="dagre"),"string"==typeof e&&(this.layout=this.layoutService.getLayout(e),this.setLayoutSettings(this.layoutSettings))}setLayoutSettings(e){this.layout&&"string"!=typeof this.layout&&(this.layout.settings=e)}ngOnDestroy(){this.unbindEvents(),this.visibilityObserver&&(this.visibilityObserver.visible.unsubscribe(),this.visibilityObserver.destroy());for(const e of this.subscriptions)e.unsubscribe();this.subscriptions=null}ngAfterViewInit(){this.bindWindowResizeEvent(),this.visibilityObserver=new Lp(this.el,this.zone),this.visibilityObserver.visible.subscribe(this.update.bind(this)),setTimeout(()=>this.update())}update(){this.basicUpdate(),this.curve||(this.curve=Su.beta(1)),this.zone.run(()=>{this.dims=function Dp({width:n,height:r}){let e=n,i=r;return e=Math.max(0,e),i=Math.max(0,i),{width:Math.floor(e),height:Math.floor(i)}}({width:this.width,height:this.height}),this.seriesDomain=this.getSeriesDomain(),this.setColors(),this.createGraph(),this.updateTransform(),this.initialized=!0})}createGraph(){this.graphSubscription.unsubscribe(),this.graphSubscription=new Fo.w0;const e=i=>(i.meta||(i.meta={}),i.id||(i.id=ur()),i.dimension?i.meta.forceDimensions=void 0===i.meta.forceDimensions||i.meta.forceDimensions:(i.dimension={width:this.nodeWidth?this.nodeWidth:30,height:this.nodeHeight?this.nodeHeight:30},i.meta.forceDimensions=!1),i.position={x:0,y:0},i.data=i.data?i.data:{},i);this.graph={nodes:this.nodes.length>0?[...this.nodes].map(e):[],clusters:this.clusters&&this.clusters.length>0?[...this.clusters].map(e):[],edges:this.links.length>0?[...this.links].map(i=>(i.id||(i.id=ur()),i)):[]},requestAnimationFrame(()=>this.draw())}draw(){if(!this.layout||"string"==typeof this.layout)return;this.applyNodeDimensions();const e=this.layout.run(this.graph),i=e instanceof ut.y?e:(0,yt.of)(e);this.graphSubscription.add(i.subscribe(a=>{this.graph=a,this.tick()})),0!==this.graph.nodes.length&&i.pipe((0,od.P)()).subscribe(()=>this.applyNodeDimensions())}tick(){const e=new Set;this.graph.nodes.map(o=>{o.transform=`translate(${o.position.x-o.dimension.width/2||0}, ${o.position.y-o.dimension.height/2||0})`,o.data||(o.data={}),o.data.color=this.colors.getColor(this.groupResultsBy(o)),e.add(o.id)});const i=new Set;(this.graph.clusters||[]).map(o=>{o.transform=`translate(${o.position.x-o.dimension.width/2||0}, ${o.position.y-o.dimension.height/2||0})`,o.data||(o.data={}),o.data.color=this.colors.getColor(this.groupResultsBy(o)),i.add(o.id)}),setTimeout(()=>{this.oldNodes=e,this.oldClusters=i},500);const a=[];for(const o in this.graph.edgeLabels){const v=this.graph.edgeLabels[o],T=o.replace(/[^\w-]*/g,""),N=this.layout&&"string"!=typeof this.layout&&this.layout.settings&&this.layout.settings.multigraph;let U=this._oldLinks.find(N?Ft=>`${Ft.source}${Ft.target}${Ft.id}`===T:Ft=>`${Ft.source}${Ft.target}`===T);const J=this.graph.edges.find(N?Ft=>`${Ft.source}${Ft.target}${Ft.id}`===T:Ft=>`${Ft.source}${Ft.target}`===T);U?U.data&&J&&J.data&&JSON.stringify(U.data)!==JSON.stringify(J.data)&&(U.data=J.data):U=J||v,U.oldLine=U.line;const ct=v.points,ot=this.generateLine(ct),Ct=Object.assign({},U);Ct.line=ot,Ct.points=ct,this.updateMidpointOnEdge(Ct,ct);const It=ct[Math.floor(ct.length/2)];It&&(Ct.textTransform=`translate(${It.x||0},${It.y||0})`),Ct.textAngle=0,Ct.oldLine||(Ct.oldLine=Ct.line),this.calcDominantBaseline(Ct),a.push(Ct)}this.graph.edges=a,this.graph.edges&&(this._oldLinks=this.graph.edges.map(o=>{const v=Object.assign({},o);return v.oldLine=o.line,v})),this.updateMinimap(),this.autoZoom&&this.zoomToFit(),this.autoCenter&&this.center(),requestAnimationFrame(()=>this.redrawLines()),this.cd.markForCheck()}getMinimapTransform(){switch(this.miniMapPosition){case Zr.UpperLeft:return"";case Zr.UpperRight:return"translate("+(this.dims.width-this.graphDims.width/this.minimapScaleCoefficient)+",0)";default:return""}}updateGraphDims(){let e=1/0,i=-1/0,a=1/0,o=-1/0;for(let v=0;vi?T.position.x+T.dimension.width:i,o=T.position.y+T.dimension.height>o?T.position.y+T.dimension.height:o}e-=100,a-=100,i+=100,o+=100,this.graphDims.width=i-e,this.graphDims.height=o-a,this.minimapOffsetX=e,this.minimapOffsetY=a}updateMinimap(){this.graph.nodes&&this.graph.nodes.length&&(this.updateGraphDims(),this.miniMapMaxWidth&&(this.minimapScaleCoefficient=this.graphDims.width/this.miniMapMaxWidth),this.miniMapMaxHeight&&(this.minimapScaleCoefficient=Math.max(this.minimapScaleCoefficient,this.graphDims.height/this.miniMapMaxHeight)),this.minimapTransform=this.getMinimapTransform())}applyNodeDimensions(){this.nodeElements&&this.nodeElements.length&&this.nodeElements.map(e=>{const i=e.nativeElement,a=this.graph.nodes.find(v=>v.id===i.id);if(!a)return;let o;try{if(o=i.getBBox(),!o.width||!o.height)return}catch{return}if(a.dimension.height=this.nodeHeight?a.dimension.height&&a.meta.forceDimensions?a.dimension.height:this.nodeHeight:a.dimension.height&&a.meta.forceDimensions?a.dimension.height:o.height,this.nodeMaxHeight&&(a.dimension.height=Math.max(a.dimension.height,this.nodeMaxHeight)),this.nodeMinHeight&&(a.dimension.height=Math.min(a.dimension.height,this.nodeMinHeight)),this.nodeWidth)a.dimension.width=a.dimension.width&&a.meta.forceDimensions?a.dimension.width:this.nodeWidth;else if(i.getElementsByTagName("text").length){let v;try{for(const T of i.getElementsByTagName("text")){const N=T.getBBox();v?(N.width>v.width&&(v.width=N.width),N.height>v.height&&(v.height=N.height)):v=N}}catch{return}a.dimension.width=a.dimension.width&&a.meta.forceDimensions?a.dimension.width:v.width+20}else a.dimension.width=a.dimension.width&&a.meta.forceDimensions?a.dimension.width:o.width;this.nodeMaxWidth&&(a.dimension.width=Math.max(a.dimension.width,this.nodeMaxWidth)),this.nodeMinWidth&&(a.dimension.width=Math.min(a.dimension.width,this.nodeMinWidth))})}redrawLines(e=this.animate){this.linkElements.map(i=>{const a=this.graph.edges.find(o=>o.id===i.nativeElement.id);a&&(no(i.nativeElement).select(".line").attr("d",a.oldLine).transition().ease(co).duration(e?500:0).attr("d",a.line),no(this.el.nativeElement).select(`#${a.id}`).attr("d",a.oldTextPath).transition().ease(co).duration(e?500:0).attr("d",a.textPath),this.updateMidpointOnEdge(a,a.points))})}calcDominantBaseline(e){const i=e.points[0],a=e.points[e.points.length-1];e.oldTextPath=e.textPath,a.xa.x).y(a=>a.y).curve(this.curve)(e)}onZoom(e,i){if(this.enableTrackpadSupport&&!e.ctrlKey)return void this.pan(-1*e.deltaX,-1*e.deltaY);const a=1+("in"===i?this.zoomSpeed:-this.zoomSpeed),o=this.zoomLevel*a;if(!(o<=this.minZoomLevel||o>=this.maxZoomLevel)&&this.enableZoom)if(!0===this.panOnZoom&&e){const v=e.clientX,T=e.clientY,N=this.el.nativeElement.querySelector("svg"),U=N.querySelector("g.chart"),J=N.createSVGPoint();J.x=v,J.y=T;const ct=J.matrixTransform(U.getScreenCTM().inverse());this.pan(ct.x,ct.y,!0),this.zoom(a),this.pan(-ct.x,-ct.y,!0)}else this.zoom(a)}pan(e,i,a=!1){const o=a?1:this.zoomLevel;this.transformationMatrix=la(this.transformationMatrix,Vo(e/o,i/o)),this.updateTransform()}panTo(e,i){null==e||isNaN(e)||null==i||isNaN(i)||(this.transformationMatrix=la(this.transformationMatrix,Vo((-this.panOffsetX-e*this.zoomLevel+this.dims.width/2)/this.zoomLevel,(-this.panOffsetY-i*this.zoomLevel+this.dims.height/2)/this.zoomLevel)),this.updateTransform())}zoom(e){this.transformationMatrix=la(this.transformationMatrix,function gd(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return md(r)&&(r=n),{a:n,c:0,e:0,b:0,d:r,f:0}}(e,e)),this.zoomChange.emit(this.zoomLevel),this.updateTransform()}zoomTo(e){this.transformationMatrix.a=isNaN(e)?this.transformationMatrix.a:Number(e),this.transformationMatrix.d=isNaN(e)?this.transformationMatrix.d:Number(e),this.zoomChange.emit(this.zoomLevel),this.updateTransform(),this.update()}onDrag(e){if(!this.draggingEnabled)return;const i=this.draggingNode;this.layout&&"string"!=typeof this.layout&&this.layout.onDrag&&this.layout.onDrag(i,e),i.position.x+=e.movementX/this.zoomLevel,i.position.y+=e.movementY/this.zoomLevel,i.transform=`translate(${i.position.x-i.dimension.width/2}, ${i.position.y-i.dimension.height/2})`;for(const v of this.graph.edges)if((v.target===i.id||v.source===i.id||v.target.id===i.id||v.source.id===i.id)&&this.layout&&"string"!=typeof this.layout){const T=this.layout.updateEdge(this.graph,v),N=T instanceof ut.y?T:(0,yt.of)(T);this.graphSubscription.add(N.subscribe(U=>{this.graph=U,this.redrawEdge(v)}))}this.redrawLines(!1),this.updateMinimap()}redrawEdge(e){const i=this.generateLine(e.points);this.calcDominantBaseline(e),e.oldLine=e.line,e.line=i}updateTransform(){this.transform=function vd(n){return function Zo(n){return"matrix("+n.a+","+n.b+","+n.c+","+n.d+","+n.e+","+n.f+")"}(n)}(function bd(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e10;return{a:Math.round(n.a*r)/r,b:Math.round(n.b*r)/r,c:Math.round(n.c*r)/r,d:Math.round(n.d*r)/r,e:Math.round(n.e*r)/r,f:Math.round(n.f*r)/r}}(this.transformationMatrix,100))}onClick(e){this.select.emit(e)}onActivate(e){this.activeEntries.indexOf(e)>-1||(this.activeEntries=[e,...this.activeEntries],this.activate.emit({value:e,entries:this.activeEntries}))}onDeactivate(e){const i=this.activeEntries.indexOf(e);this.activeEntries.splice(i,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:e,entries:this.activeEntries})}getSeriesDomain(){return this.nodes.map(e=>this.groupResultsBy(e)).reduce((e,i)=>-1!==e.indexOf(i)?e:e.concat([i]),[]).sort()}trackLinkBy(e,i){return i.id}trackNodeBy(e,i){return i.id}setColors(){this.colors=new Ep(this.scheme,this.seriesDomain,this.customColors)}onMouseMove(e){this.isMouseMoveCalled=!0,(this.isPanning||this.isMinimapPanning)&&this.panningEnabled?this.panWithConstraints(this.panningAxis,e):this.isDragging&&this.draggingEnabled&&this.onDrag(e)}onMouseDown(e){this.isMouseMoveCalled=!1}graphClick(e){this.isMouseMoveCalled||this.clickHandler.emit(e)}onTouchStart(e){this._touchLastX=e.changedTouches[0].clientX,this._touchLastY=e.changedTouches[0].clientY,this.isPanning=!0}onTouchMove(e){if(this.isPanning&&this.panningEnabled){const i=e.changedTouches[0].clientX,a=e.changedTouches[0].clientY,o=i-this._touchLastX,v=a-this._touchLastY;this._touchLastX=i,this._touchLastY=a,this.pan(o,v)}}onTouchEnd(e){this.isPanning=!1}onMouseUp(e){this.isDragging=!1,this.isPanning=!1,this.isMinimapPanning=!1,this.layout&&"string"!=typeof this.layout&&this.layout.onDragEnd&&this.layout.onDragEnd(this.draggingNode,e)}onNodeMouseDown(e,i){!this.draggingEnabled||(this.isDragging=!0,this.draggingNode=i,this.layout&&"string"!=typeof this.layout&&this.layout.onDragStart&&this.layout.onDragStart(i,e))}onMinimapDragMouseDown(){this.isMinimapPanning=!0}onMinimapPanTo(e){this.panTo((e.offsetX-(this.dims.width-(this.graphDims.width+this.minimapOffsetX)/this.minimapScaleCoefficient))*this.minimapScaleCoefficient,(e.offsetY+this.minimapOffsetY/this.minimapScaleCoefficient)*this.minimapScaleCoefficient),this.isMinimapPanning=!0}center(){this.panTo(this.graphDims.width/2,this.graphDims.height/2)}zoomToFit(){let a=Math.min(this.dims.height/this.graphDims.height,this.dims.width/this.graphDims.width,1);athis.maxZoomLevel&&(a=this.maxZoomLevel),a!==this.zoomLevel&&(this.zoomLevel=a,this.updateTransform(),this.zoomChange.emit(this.zoomLevel))}panToNodeId(e){const i=this.graph.nodes.find(a=>a.id===e);!i||this.panTo(i.position.x,i.position.y)}panWithConstraints(e,i){let a=i.movementX,o=i.movementY;switch(this.isMinimapPanning&&(a=-this.minimapScaleCoefficient*a*this.zoomLevel,o=-this.minimapScaleCoefficient*o*this.zoomLevel),e){case Br.Horizontal:this.pan(a,0);break;case Br.Vertical:this.pan(0,o);break;default:this.pan(a,o)}}updateMidpointOnEdge(e,i){if(e&&i)if(i.length%2==1)e.midPoint=i[Math.floor(i.length/2)];else{const a=i[i.length/2],o=i[i.length/2-1];e.midPoint={x:(a.x+o.x)/2,y:(a.y+o.y)/2}}}basicUpdate(){if(this.view)this.width=this.view[0],this.height=this.view[1];else{const e=this.getContainerDims();e&&(this.width=e.width,this.height=e.height)}this.width||(this.width=600),this.height||(this.height=400),this.width=Math.floor(this.width),this.height=Math.floor(this.height),this.cd&&this.cd.markForCheck()}getContainerDims(){let e,i;const a=this.el.nativeElement;if(null!==a.parentNode){const o=a.parentNode.getBoundingClientRect();e=o.width,i=o.height}return e&&i?{width:e,height:i}:null}unbindEvents(){this.resizeSubscription&&this.resizeSubscription.unsubscribe()}bindWindowResizeEvent(){const i=(0,Ro.R)(window,"resize").pipe((0,q.b)(200)).subscribe(a=>{this.update(),this.cd&&this.cd.markForCheck()});this.resizeSubscription=i}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(t.sBO),t.Y36(il))},n.\u0275cmp=t.Xpm({type:n,selectors:[["ngx-graph"]],contentQueries:function(e,i,a){if(1&e&&(t.Suo(a,tp,5),t.Suo(a,ep,5),t.Suo(a,np,5),t.Suo(a,ip,5),t.Suo(a,rp,5)),2&e){let o;t.iGM(o=t.CRH())&&(i.linkTemplate=o.first),t.iGM(o=t.CRH())&&(i.nodeTemplate=o.first),t.iGM(o=t.CRH())&&(i.clusterTemplate=o.first),t.iGM(o=t.CRH())&&(i.defsTemplate=o.first),t.iGM(o=t.CRH())&&(i.miniMapNodeTemplate=o.first)}},viewQuery:function(e,i){if(1&e&&(t.Gf(ap,5),t.Gf(sp,5)),2&e){let a;t.iGM(a=t.CRH())&&(i.nodeElements=a),t.iGM(a=t.CRH())&&(i.linkElements=a)}},hostBindings:function(e,i){1&e&&t.NdJ("mousemove",function(o){return i.onMouseMove(o)},!1,t.evT)("mousedown",function(o){return i.onMouseDown(o)},!1,t.evT)("click",function(o){return i.graphClick(o)},!1,t.evT)("touchmove",function(o){return i.onTouchMove(o)},!1,t.evT)("mouseup",function(o){return i.onMouseUp(o)},!1,t.evT)},inputs:{nodes:"nodes",clusters:"clusters",links:"links",activeEntries:"activeEntries",curve:"curve",draggingEnabled:"draggingEnabled",nodeHeight:"nodeHeight",nodeMaxHeight:"nodeMaxHeight",nodeMinHeight:"nodeMinHeight",nodeWidth:"nodeWidth",nodeMinWidth:"nodeMinWidth",nodeMaxWidth:"nodeMaxWidth",panningEnabled:"panningEnabled",panningAxis:"panningAxis",enableZoom:"enableZoom",zoomSpeed:"zoomSpeed",minZoomLevel:"minZoomLevel",maxZoomLevel:"maxZoomLevel",autoZoom:"autoZoom",panOnZoom:"panOnZoom",animate:"animate",autoCenter:"autoCenter",update$:"update$",center$:"center$",zoomToFit$:"zoomToFit$",panToNode$:"panToNode$",layout:"layout",layoutSettings:"layoutSettings",enableTrackpadSupport:"enableTrackpadSupport",showMiniMap:"showMiniMap",miniMapMaxWidth:"miniMapMaxWidth",miniMapMaxHeight:"miniMapMaxHeight",miniMapPosition:"miniMapPosition",view:"view",scheme:"scheme",customColors:"customColors",animations:"animations",groupResultsBy:"groupResultsBy",zoomLevel:"zoomLevel",panOffsetX:"panOffsetX",panOffsetY:"panOffsetY"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",zoomChange:"zoomChange",clickHandler:"clickHandler"},features:[t.TTD],ngContentSelectors:wp,decls:6,vars:11,consts:[["mouseWheel","",1,"ngx-charts-outer",3,"mouseWheelUp","mouseWheelDown"],[1,"ngx-charts"],["class","graph chart",3,"touchstart","touchend",4,"ngIf"],["class","minimap",4,"ngIf"],[1,"graph","chart",3,"touchstart","touchend"],[3,"ngTemplateOutlet",4,"ngIf"],["class","text-path",4,"ngFor","ngForOf"],[1,"panning-rect",3,"mousedown"],[1,"clusters"],["class","node-group",3,"old-node","id","click",4,"ngFor","ngForOf","ngForTrackBy"],[1,"links"],["class","link-group",3,"id",4,"ngFor","ngForOf","ngForTrackBy"],[1,"nodes"],["class","node-group",3,"old-node","id","click","mousedown",4,"ngFor","ngForOf","ngForTrackBy"],[3,"ngTemplateOutlet"],[1,"text-path"],[1,"node-group",3,"id","click"],["clusterElement",""],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],["class","node cluster",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"node","cluster"],["alignment-baseline","central"],[1,"link-group",3,"id"],["linkElement",""],["class","edge",4,"ngIf"],[1,"edge"],[1,"node-group",3,"id","click","mousedown"],["nodeElement",""],["r","10",4,"ngIf"],["r","10"],[1,"minimap"],[1,"minimap-background",3,"mousedown"],[1,"minimap-nodes"],["class","node-group",3,"old-node","id",4,"ngFor","ngForOf","ngForTrackBy"],[1,"minimap-drag",3,"mousedown"],[1,"node-group",3,"id"]],template:function(e,i){1&e&&(t.F$t(),t.TgZ(0,"div",0),t.NdJ("mouseWheelUp",function(o){return i.onZoom(o,"in")})("mouseWheelDown",function(o){return i.onZoom(o,"out")}),t.O4$(),t.TgZ(1,"svg",1),t.YNc(2,vp,12,12,"g",2),t.TgZ(3,"clipPath"),t._UZ(4,"rect"),t.qZA(),t.YNc(5,Cp,6,15,"g",3),t.qZA()()),2&e&&(t.Udp("width",i.width,"px"),t.Q6J("@animationState","active")("@.disabled",!i.animations),t.xp6(1),t.uIk("width",i.width)("height",i.height),t.xp6(1),t.Q6J("ngIf",i.initialized&&i.graph),t.xp6(1),t.uIk("id",i.minimapClipPathId),t.xp6(1),t.uIk("width",i.graphDims.width/i.minimapScaleCoefficient)("height",i.graphDims.height/i.minimapScaleCoefficient),t.xp6(1),t.Q6J("ngIf",i.showMiniMap))},dependencies:[Fp,m.O5,m.tP,m.sg],styles:[".minimap .minimap-background{fill:#0000001a}.minimap .minimap-drag{fill:#0003;stroke:#fff;stroke-width:1px;stroke-dasharray:2px;stroke-dashoffset:2px;cursor:pointer}.minimap .minimap-drag.panning{fill:#0000004d}.minimap .minimap-nodes{opacity:.5;pointer-events:none}.graph{-webkit-user-select:none;user-select:none}.graph .edge{stroke:#666;fill:none}.graph .edge .edge-label{stroke:none;font-size:12px;fill:#251e1e}.graph .panning-rect{fill:#0000;cursor:move}.graph .node-group.old-node{transition:transform .5s ease-in-out}.graph .node-group .node:focus{outline:none}.graph .cluster rect{opacity:.2}\n"],encapsulation:2,data:{animation:[(0,Ve.X$)("animationState",[(0,Ve.eR)(":enter",[(0,Ve.oB)({opacity:0}),(0,Ve.jt)("500ms 100ms",(0,Ve.oB)({opacity:1}))])])]},changeDetection:0}),(0,va.gn)([Sp(500)],n.prototype,"updateMinimap",null),n})(),Bp=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({providers:[il],imports:[[m.ez]]}),n})(),Zp=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[m.ez],Bp]}),n})();var rl=s(84080);s(52016),s(56758),s(37656),s(29132),s(18429);Math;function ua(n){return{type:n}}function fl(n,r){return nr?1:n>=r?0:NaN}function xs(n){let r=n,e=n;function i(v,T,N,U){for(null==N&&(N=0),null==U&&(U=v.length);N>>1;e(v[J],T)<0?N=J+1:U=J}return N}return 1===n.length&&(r=(v,T)=>n(v)-T,e=function jp(n){return(r,e)=>fl(n(r),e)}(n)),{left:i,center:function o(v,T,N,U){null==N&&(N=0),null==U&&(U=v.length);const J=i(v,T,N,U-1);return J>N&&r(v[J-1],T)>-r(v[J],T)?J-1:J},right:function a(v,T,N,U){for(null==N&&(N=0),null==U&&(U=v.length);N>>1;e(v[J],T)>0?U=J:N=J+1}return N}}}["w","e"].map(ua),["n","s"].map(ua),["n","w","e","s","nw","ne","sw","se"].map(ua);var ys=Math.sqrt(50),bs=Math.sqrt(10),Ts=Math.sqrt(2);function Cs(n,r,e){var i=Math.abs(r-n)/Math.max(0,e),a=Math.pow(10,Math.floor(Math.log(i)/Math.LN10)),o=i/a;return o>=ys?a*=10:o>=bs?a*=5:o>=Ts&&(a*=2),r0))return N;do{N.push(U=new Date(+o)),r(o,T),n(o)}while(U=v)for(;n(v),!o(v);)v.setTime(v-1)},function(v,T){if(v>=v)if(T<0)for(;++T<=0;)for(;r(v,-1),!o(v););else for(;--T>=0;)for(;r(v,1),!o(v););})},e&&(a.count=function(o,v){return Ss.setTime(+o),Es.setTime(+v),n(Ss),n(Es),Math.floor(e(Ss,Es))},a.every=function(o){return o=Math.floor(o),isFinite(o)&&o>0?o>1?a.filter(i?function(v){return i(v)%o==0}:function(v){return a.count(0,v)%o==0}):a:null}),a}var Pa=pi(function(){},function(n,r){n.setTime(+n+r)},function(n,r){return r-n});Pa.every=function(n){return n=Math.floor(n),isFinite(n)&&n>0?n>1?pi(function(r){r.setTime(Math.floor(r/n)*n)},function(r,e){r.setTime(+r+e*n)},function(r,e){return(e-r)/n}):Pa:null};const Kp=Pa;const ha=pi(function(n){n.setTime(n-n.getMilliseconds())},function(n,r){n.setTime(+n+r*pr)},function(n,r){return(r-n)/pr},function(n){return n.getUTCSeconds()});const xl=pi(function(n){n.setTime(n-n.getMilliseconds()-n.getSeconds()*pr)},function(n,r){n.setTime(+n+r*Xi)},function(n,r){return(r-n)/Xi},function(n){return n.getMinutes()});const bl=pi(function(n){n.setTime(n-n.getMilliseconds()-n.getSeconds()*pr-n.getMinutes()*Xi)},function(n,r){n.setTime(+n+r*fr)},function(n,r){return(r-n)/fr},function(n){return n.getHours()});const Fa=pi(n=>n.setHours(0,0,0,0),(n,r)=>n.setDate(n.getDate()+r),(n,r)=>(r-n-(r.getTimezoneOffset()-n.getTimezoneOffset())*Xi)/Dr,n=>n.getDate()-1);function Lr(n){return pi(function(r){r.setDate(r.getDate()-(r.getDay()+7-n)%7),r.setHours(0,0,0,0)},function(r,e){r.setDate(r.getDate()+7*e)},function(r,e){return(e-r-(e.getTimezoneOffset()-r.getTimezoneOffset())*Xi)/ws})}var Ra=Lr(0),Ba=Lr(1),Hr=(Lr(2),Lr(3),Lr(4));const wl=(Lr(5),Lr(6),pi(function(n){n.setDate(1),n.setHours(0,0,0,0)},function(n,r){n.setMonth(n.getMonth()+r)},function(n,r){return r.getMonth()-n.getMonth()+12*(r.getFullYear()-n.getFullYear())},function(n){return n.getMonth()}));var Ds=pi(function(n){n.setMonth(0,1),n.setHours(0,0,0,0)},function(n,r){n.setFullYear(n.getFullYear()+r)},function(n,r){return r.getFullYear()-n.getFullYear()},function(n){return n.getFullYear()});Ds.every=function(n){return isFinite(n=Math.floor(n))&&n>0?pi(function(r){r.setFullYear(Math.floor(r.getFullYear()/n)*n),r.setMonth(0,1),r.setHours(0,0,0,0)},function(r,e){r.setFullYear(r.getFullYear()+e*n)}):null};const kr=Ds;const rf=pi(function(n){n.setUTCSeconds(0,0)},function(n,r){n.setTime(+n+r*Xi)},function(n,r){return(r-n)/Xi},function(n){return n.getUTCMinutes()});const af=pi(function(n){n.setUTCMinutes(0,0,0)},function(n,r){n.setTime(+n+r*fr)},function(n,r){return(r-n)/fr},function(n){return n.getUTCHours()});const Ls=pi(function(n){n.setUTCHours(0,0,0,0)},function(n,r){n.setUTCDate(n.getUTCDate()+r)},function(n,r){return(r-n)/Dr},function(n){return n.getUTCDate()-1});function Ir(n){return pi(function(r){r.setUTCDate(r.getUTCDate()-(r.getUTCDay()+7-n)%7),r.setUTCHours(0,0,0,0)},function(r,e){r.setUTCDate(r.getUTCDate()+7*e)},function(r,e){return(e-r)/ws})}var ks=Ir(0),Za=Ir(1),Yr=(Ir(2),Ir(3),Ir(4));const uf=(Ir(5),Ir(6),pi(function(n){n.setUTCDate(1),n.setUTCHours(0,0,0,0)},function(n,r){n.setUTCMonth(n.getUTCMonth()+r)},function(n,r){return r.getUTCMonth()-n.getUTCMonth()+12*(r.getUTCFullYear()-n.getUTCFullYear())},function(n){return n.getUTCMonth()}));var Is=pi(function(n){n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},function(n,r){n.setUTCFullYear(n.getUTCFullYear()+r)},function(n,r){return r.getUTCFullYear()-n.getUTCFullYear()},function(n){return n.getUTCFullYear()});Is.every=function(n){return isFinite(n=Math.floor(n))&&n>0?pi(function(r){r.setUTCFullYear(Math.floor(r.getUTCFullYear()/n)*n),r.setUTCMonth(0,1),r.setUTCHours(0,0,0,0)},function(r,e){r.setUTCFullYear(r.getUTCFullYear()+e*n)}):null};const Wr=Is;function Ll(n,r,e,i,a,o){const v=[[ha,1,pr],[ha,5,5e3],[ha,15,15e3],[ha,30,3e4],[o,1,Xi],[o,5,5*Xi],[o,15,15*Xi],[o,30,30*Xi],[a,1,fr],[a,3,3*fr],[a,6,6*fr],[a,12,12*fr],[i,1,Dr],[i,2,2*Dr],[e,1,ws],[r,1,gl],[r,3,3*gl],[n,1,As]];function N(U,J,ct){const ot=Math.abs(J-U)/ct,Ct=xs(([,,_t])=>_t).right(v,ot);if(Ct===v.length)return n.every(Cs(U/As,J/As,ct));if(0===Ct)return Kp.every(Math.max(Cs(U,J,ct),1));const[It,Ft]=v[ot/v[Ct-1][2][r.toLowerCase(),e]))}function _f(n,r,e){var i=fi.exec(r.slice(e,e+1));return i?(n.w=+i[0],e+i[0].length):-1}function vf(n,r,e){var i=fi.exec(r.slice(e,e+1));return i?(n.u=+i[0],e+i[0].length):-1}function xf(n,r,e){var i=fi.exec(r.slice(e,e+2));return i?(n.U=+i[0],e+i[0].length):-1}function yf(n,r,e){var i=fi.exec(r.slice(e,e+2));return i?(n.V=+i[0],e+i[0].length):-1}function bf(n,r,e){var i=fi.exec(r.slice(e,e+2));return i?(n.W=+i[0],e+i[0].length):-1}function Il(n,r,e){var i=fi.exec(r.slice(e,e+4));return i?(n.y=+i[0],e+i[0].length):-1}function Ol(n,r,e){var i=fi.exec(r.slice(e,e+2));return i?(n.y=+i[0]+(+i[0]>68?1900:2e3),e+i[0].length):-1}function Tf(n,r,e){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(r.slice(e,e+6));return i?(n.Z=i[1]?0:-(i[2]+(i[3]||"00")),e+i[0].length):-1}function Cf(n,r,e){var i=fi.exec(r.slice(e,e+1));return i?(n.q=3*i[0]-3,e+i[0].length):-1}function wf(n,r,e){var i=fi.exec(r.slice(e,e+2));return i?(n.m=i[0]-1,e+i[0].length):-1}function Ml(n,r,e){var i=fi.exec(r.slice(e,e+2));return i?(n.d=+i[0],e+i[0].length):-1}function Af(n,r,e){var i=fi.exec(r.slice(e,e+3));return i?(n.m=0,n.d=+i[0],e+i[0].length):-1}function Nl(n,r,e){var i=fi.exec(r.slice(e,e+2));return i?(n.H=+i[0],e+i[0].length):-1}function Sf(n,r,e){var i=fi.exec(r.slice(e,e+2));return i?(n.M=+i[0],e+i[0].length):-1}function Ef(n,r,e){var i=fi.exec(r.slice(e,e+2));return i?(n.S=+i[0],e+i[0].length):-1}function Df(n,r,e){var i=fi.exec(r.slice(e,e+3));return i?(n.L=+i[0],e+i[0].length):-1}function Lf(n,r,e){var i=fi.exec(r.slice(e,e+6));return i?(n.L=Math.floor(i[0]/1e3),e+i[0].length):-1}function kf(n,r,e){var i=ff.exec(r.slice(e,e+1));return i?e+i[0].length:-1}function If(n,r,e){var i=fi.exec(r.slice(e));return i?(n.Q=+i[0],e+i[0].length):-1}function Of(n,r,e){var i=fi.exec(r.slice(e));return i?(n.s=+i[0],e+i[0].length):-1}function Pl(n,r){return xn(n.getDate(),r,2)}function Mf(n,r){return xn(n.getHours(),r,2)}function Nf(n,r){return xn(n.getHours()%12||12,r,2)}function Pf(n,r){return xn(1+Fa.count(kr(n),n),r,3)}function Fl(n,r){return xn(n.getMilliseconds(),r,3)}function Ff(n,r){return Fl(n,r)+"000"}function Rf(n,r){return xn(n.getMonth()+1,r,2)}function Bf(n,r){return xn(n.getMinutes(),r,2)}function Zf(n,r){return xn(n.getSeconds(),r,2)}function Vf(n){var r=n.getDay();return 0===r?7:r}function Gf(n,r){return xn(Ra.count(kr(n)-1,n),r,2)}function Rl(n){var r=n.getDay();return r>=4||0===r?Hr(n):Hr.ceil(n)}function Uf(n,r){return n=Rl(n),xn(Hr.count(kr(n),n)+(4===kr(n).getDay()),r,2)}function zf(n){return n.getDay()}function Hf(n,r){return xn(Ba.count(kr(n)-1,n),r,2)}function Yf(n,r){return xn(n.getFullYear()%100,r,2)}function Wf(n,r){return xn((n=Rl(n)).getFullYear()%100,r,2)}function Xf(n,r){return xn(n.getFullYear()%1e4,r,4)}function $f(n,r){var e=n.getDay();return xn((n=e>=4||0===e?Hr(n):Hr.ceil(n)).getFullYear()%1e4,r,4)}function Qf(n){var r=n.getTimezoneOffset();return(r>0?"-":(r*=-1,"+"))+xn(r/60|0,"0",2)+xn(r%60,"0",2)}function Bl(n,r){return xn(n.getUTCDate(),r,2)}function jf(n,r){return xn(n.getUTCHours(),r,2)}function Jf(n,r){return xn(n.getUTCHours()%12||12,r,2)}function Kf(n,r){return xn(1+Ls.count(Wr(n),n),r,3)}function Zl(n,r){return xn(n.getUTCMilliseconds(),r,3)}function qf(n,r){return Zl(n,r)+"000"}function tm(n,r){return xn(n.getUTCMonth()+1,r,2)}function em(n,r){return xn(n.getUTCMinutes(),r,2)}function nm(n,r){return xn(n.getUTCSeconds(),r,2)}function im(n){var r=n.getUTCDay();return 0===r?7:r}function rm(n,r){return xn(ks.count(Wr(n)-1,n),r,2)}function Vl(n){var r=n.getUTCDay();return r>=4||0===r?Yr(n):Yr.ceil(n)}function am(n,r){return n=Vl(n),xn(Yr.count(Wr(n),n)+(4===Wr(n).getUTCDay()),r,2)}function sm(n){return n.getUTCDay()}function om(n,r){return xn(Za.count(Wr(n)-1,n),r,2)}function lm(n,r){return xn(n.getUTCFullYear()%100,r,2)}function cm(n,r){return xn((n=Vl(n)).getUTCFullYear()%100,r,2)}function um(n,r){return xn(n.getUTCFullYear()%1e4,r,4)}function hm(n,r){var e=n.getUTCDay();return xn((n=e>=4||0===e?Yr(n):Yr.ceil(n)).getUTCFullYear()%1e4,r,4)}function dm(){return"+0000"}function Gl(){return"%"}function Ul(n){return+n}function zl(n){return Math.floor(+n/1e3)}!function gm(n){(function pf(n){var r=n.dateTime,e=n.date,i=n.time,a=n.periods,o=n.days,v=n.shortDays,T=n.months,N=n.shortMonths,U=pa(a),J=fa(a),ct=pa(o),ot=fa(o),Ct=pa(v),It=fa(v),Ft=pa(T),_t=fa(T),Vt=pa(N),qt=fa(N),$t={a:function ri(ve){return v[ve.getDay()]},A:function ar(ve){return o[ve.getDay()]},b:function ai(ve){return N[ve.getMonth()]},B:function si(ve){return T[ve.getMonth()]},c:null,d:Pl,e:Pl,f:Ff,g:Wf,G:$f,H:Mf,I:Nf,j:Pf,L:Fl,m:Rf,M:Bf,p:function Gn(ve){return a[+(ve.getHours()>=12)]},q:function Un(ve){return 1+~~(ve.getMonth()/3)},Q:Ul,s:zl,S:Zf,u:Vf,U:Gf,V:Uf,w:zf,W:Hf,x:null,X:null,y:Yf,Y:Xf,Z:Qf,"%":Gl},ye={a:function ga(ve){return v[ve.getUTCDay()]},A:function Kr(ve){return o[ve.getUTCDay()]},b:function qr(ve){return N[ve.getUTCMonth()]},B:function ta(ve){return T[ve.getUTCMonth()]},c:null,d:Bl,e:Bl,f:qf,g:cm,G:hm,H:jf,I:Jf,j:Kf,L:Zl,m:tm,M:em,p:function Ai(ve){return a[+(ve.getUTCHours()>=12)]},q:function za(ve){return 1+~~(ve.getUTCMonth()/3)},Q:Ul,s:zl,S:nm,u:im,U:rm,V:am,w:sm,W:om,x:null,X:null,y:lm,Y:um,Z:dm,"%":Gl},De={a:function En(ve,Je,dn){var re=Ct.exec(Je.slice(dn));return re?(ve.w=It.get(re[0].toLowerCase()),dn+re[0].length):-1},A:function Dn(ve,Je,dn){var re=ct.exec(Je.slice(dn));return re?(ve.w=ot.get(re[0].toLowerCase()),dn+re[0].length):-1},b:function Xn(ve,Je,dn){var re=Vt.exec(Je.slice(dn));return re?(ve.m=qt.get(re[0].toLowerCase()),dn+re[0].length):-1},B:function ei(ve,Je,dn){var re=Ft.exec(Je.slice(dn));return re?(ve.m=_t.get(re[0].toLowerCase()),dn+re[0].length):-1},c:function ni(ve,Je,dn){return on(ve,r,Je,dn)},d:Ml,e:Ml,f:Lf,g:Ol,G:Il,H:Nl,I:Nl,j:Af,L:Df,m:wf,M:Sf,p:function yn(ve,Je,dn){var re=U.exec(Je.slice(dn));return re?(ve.p=J.get(re[0].toLowerCase()),dn+re[0].length):-1},q:Cf,Q:If,s:Of,S:Ef,u:vf,U:xf,V:yf,w:_f,W:bf,x:function rr(ve,Je,dn){return on(ve,e,Je,dn)},X:function ii(ve,Je,dn){return on(ve,i,Je,dn)},y:Ol,Y:Il,Z:Tf,"%":kf};function ge(ve,Je){return function(dn){var Oi,Xe,Rn,re=[],Fn=-1,An=0,Ii=ve.length;for(dn instanceof Date||(dn=new Date(+dn));++Fn53)return null;"w"in re||(re.w=1),"Z"in re?(Ii=(An=Ms(da(re.y,0,1))).getUTCDay(),An=Ii>4||0===Ii?Za.ceil(An):Za(An),An=Ls.offset(An,7*(re.V-1)),re.y=An.getUTCFullYear(),re.m=An.getUTCMonth(),re.d=An.getUTCDate()+(re.w+6)%7):(Ii=(An=Os(da(re.y,0,1))).getDay(),An=Ii>4||0===Ii?Ba.ceil(An):Ba(An),An=Fa.offset(An,7*(re.V-1)),re.y=An.getFullYear(),re.m=An.getMonth(),re.d=An.getDate()+(re.w+6)%7)}else("W"in re||"U"in re)&&("w"in re||(re.w="u"in re?re.u%7:"W"in re?1:0),Ii="Z"in re?Ms(da(re.y,0,1)).getUTCDay():Os(da(re.y,0,1)).getDay(),re.m=0,re.d="W"in re?(re.w+6)%7+7*re.W-(Ii+5)%7:re.w+7*re.U-(Ii+6)%7);return"Z"in re?(re.H+=re.Z/100|0,re.M+=re.Z%100,Ms(re)):Os(re)}}function on(ve,Je,dn,re){for(var Oi,Xe,Fn=0,An=Je.length,Ii=dn.length;Fn=Ii)return-1;if(37===(Oi=Je.charCodeAt(Fn++))){if(Oi=Je.charAt(Fn++),!(Xe=De[Oi in kl?Je.charAt(Fn++):Oi])||(re=Xe(ve,dn,re))<0)return-1}else if(Oi!=dn.charCodeAt(re++))return-1}return re}return $t.x=ge(e,$t),$t.X=ge(i,$t),$t.c=ge(r,$t),ye.x=ge(e,ye),ye.X=ge(i,ye),ye.c=ge(r,ye),{format:function(ve){var Je=ge(ve+="",$t);return Je.toString=function(){return ve},Je},parse:function(ve){var Je=en(ve+="",!1);return Je.toString=function(){return ve},Je},utcFormat:function(ve){var Je=ge(ve+="",ye);return Je.toString=function(){return ve},Je},utcParse:function(ve){var Je=en(ve+="",!0);return Je.toString=function(){return ve},Je}}})(n)}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),xs(fl),xs(function _m(n){return null===n?NaN:+n}),s(6738),s(84067),s(32517),s(38914),s(22910),s(65142),s(78986),s(16087);const Vm=["caretElm"];function Gm(n,r){}const Um=function(n){return{model:n}};function zm(n,r){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,Gm,0,0,"ng-template",5),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngTemplateOutlet",e.template)("ngTemplateOutletContext",t.VKq(2,Um,e.context))}}function Hm(n,r){if(1&n&&t._UZ(0,"span",6),2&n){const e=t.oxw();t.Q6J("innerHTML",e.title,t.oJD)}}function v_(n,r,e){e=e||{};let i,a,o,v=null,T=0;function N(){T=!1===e.leading?0:+new Date,v=null,o=n.apply(i,a)}return function(){const U=+new Date;!T&&!1===e.leading&&(T=U);const J=r-(U-T);return i=this,a=arguments,J<=0?(clearTimeout(v),v=null,T=U,o=n.apply(i,a)):!v&&!1!==e.trailing&&(v=setTimeout(N,J)),o}}function x_(n,r){return function(i,a,o){return{configurable:!0,enumerable:o.enumerable,get:function(){return Object.defineProperty(this,a,{configurable:!0,enumerable:o.enumerable,value:v_(o.value,n,r)}),this[a]}}}}var rn=(()=>{return(n=rn||(rn={})).Top="top",n.Bottom="bottom",n.Left="left",n.Right="right",n.Center="center",rn;var n})();function ec(n,r,e){return e===rn.Top?n.top-7:e===rn.Bottom?n.top+n.height-r.height+7:e===rn.Center?n.top+n.height/2-r.height/2:void 0}function nc(n,r,e){return e===rn.Left?n.left-7:e===rn.Right?n.left+n.width-r.width+7:e===rn.Center?n.left+n.width/2-r.width/2:void 0}class zi{static calculateVerticalAlignment(r,e,i){let a=ec(r,e,i);return a+e.height>window.innerHeight&&(a=window.innerHeight-e.height),a}static calculateVerticalCaret(r,e,i,a){let o;a===rn.Top&&(o=r.height/2-i.height/2+7),a===rn.Bottom&&(o=e.height-r.height/2-i.height/2-7),a===rn.Center&&(o=e.height/2-i.height/2);const v=ec(r,e,a);return v+e.height>window.innerHeight&&(o+=v+e.height-window.innerHeight),o}static calculateHorizontalAlignment(r,e,i){let a=nc(r,e,i);return a+e.width>window.innerWidth&&(a=window.innerWidth-e.width),a}static calculateHorizontalCaret(r,e,i,a){let o;a===rn.Left&&(o=r.width/2-i.width/2+7),a===rn.Right&&(o=e.width-r.width/2-i.width/2-7),a===rn.Center&&(o=e.width/2-i.width/2);const v=nc(r,e,a);return v+e.width>window.innerWidth&&(o+=v+e.width-window.innerWidth),o}static shouldFlip(r,e,i,a){let o=!1;return i===rn.Right&&r.left+r.width+e.width+a>window.innerWidth&&(o=!0),i===rn.Left&&r.left-e.width-a<0&&(o=!0),i===rn.Top&&r.top-e.height-a<0&&(o=!0),i===rn.Bottom&&r.top+r.height+e.height+a>window.innerHeight&&(o=!0),o}static positionCaret(r,e,i,a,o){let v=0,T=0;return r===rn.Right?(T=-7,v=zi.calculateVerticalCaret(i,e,a,o)):r===rn.Left?(T=e.width,v=zi.calculateVerticalCaret(i,e,a,o)):r===rn.Top?(v=e.height,T=zi.calculateHorizontalCaret(i,e,a,o)):r===rn.Bottom&&(v=-7,T=zi.calculateHorizontalCaret(i,e,a,o)),{top:v,left:T}}static positionContent(r,e,i,a,o){let v=0,T=0;return r===rn.Right?(T=i.left+i.width+a,v=zi.calculateVerticalAlignment(i,e,o)):r===rn.Left?(T=i.left-e.width-a,v=zi.calculateVerticalAlignment(i,e,o)):r===rn.Top?(v=i.top-e.height-a,T=zi.calculateHorizontalAlignment(i,e,o)):r===rn.Bottom&&(v=i.top+i.height+a,T=zi.calculateHorizontalAlignment(i,e,o)),{top:v,left:T}}static determinePlacement(r,e,i,a){if(zi.shouldFlip(i,e,r,a)){if(r===rn.Right)return rn.Left;if(r===rn.Left)return rn.Right;if(r===rn.Top)return rn.Bottom;if(r===rn.Bottom)return rn.Top}return r}}let y_=(()=>{class n{constructor(e,i,a){this.element=e,this.renderer=i,this.platformId=a}get cssClasses(){let e="ngx-charts-tooltip-content";return e+=` position-${this.placement}`,e+=` type-${this.type}`,e+=` ${this.cssClass}`,e}ngAfterViewInit(){setTimeout(this.position.bind(this))}position(){if(!(0,m.NF)(this.platformId))return;const e=this.element.nativeElement,i=this.host.nativeElement.getBoundingClientRect();if(!i.height&&!i.width)return;const a=e.getBoundingClientRect();this.checkFlip(i,a),this.positionContent(e,i,a),this.showCaret&&this.positionCaret(i,a),setTimeout(()=>this.renderer.addClass(e,"animate"),1)}positionContent(e,i,a){const{top:o,left:v}=zi.positionContent(this.placement,a,i,this.spacing,this.alignment);this.renderer.setStyle(e,"top",`${o}px`),this.renderer.setStyle(e,"left",`${v}px`)}positionCaret(e,i){const a=this.caretElm.nativeElement,o=a.getBoundingClientRect(),{top:v,left:T}=zi.positionCaret(this.placement,i,e,o,this.alignment);this.renderer.setStyle(a,"top",`${v}px`),this.renderer.setStyle(a,"left",`${T}px`)}checkFlip(e,i){this.placement=zi.determinePlacement(this.placement,i,e,this.spacing)}onWindowResize(){this.position()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(t.Lbi))},n.\u0275cmp=t.Xpm({type:n,selectors:[["ngx-tooltip-content"]],viewQuery:function(e,i){if(1&e&&t.Gf(Vm,5),2&e){let a;t.iGM(a=t.CRH())&&(i.caretElm=a.first)}},hostVars:2,hostBindings:function(e,i){1&e&&t.NdJ("resize",function(){return i.onWindowResize()},!1,t.Jf7),2&e&&t.Tol(i.cssClasses)},inputs:{host:"host",showCaret:"showCaret",type:"type",placement:"placement",alignment:"alignment",spacing:"spacing",cssClass:"cssClass",title:"title",template:"template",context:"context"},decls:6,vars:6,consts:[[3,"hidden"],["caretElm",""],[1,"tooltip-content"],[4,"ngIf"],[3,"innerHTML",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"innerHTML"]],template:function(e,i){1&e&&(t.TgZ(0,"div"),t._UZ(1,"span",0,1),t.TgZ(3,"div",2),t.YNc(4,zm,2,4,"span",3),t.YNc(5,Hm,1,1,"span",4),t.qZA()()),2&e&&(t.xp6(1),t.Gre("tooltip-caret position-",i.placement,""),t.Q6J("hidden",!i.showCaret),t.xp6(3),t.Q6J("ngIf",!i.title),t.xp6(1),t.Q6J("ngIf",i.title))},dependencies:[m.O5,m.tP],styles:[".ngx-charts-tooltip-content{position:fixed;border-radius:3px;z-index:5000;display:block;font-weight:400;opacity:0;pointer-events:none!important}.ngx-charts-tooltip-content.type-popover{background:#fff;color:#060709;border:1px solid #72809b;box-shadow:0 1px 3px #0003,0 1px 1px #00000024,0 2px 1px -1px #0000001f;font-size:13px;padding:4px}.ngx-charts-tooltip-content.type-popover .tooltip-caret{position:absolute;z-index:5001;width:0;height:0}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-left{border-top:7px solid transparent;border-bottom:7px solid transparent;border-left:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-right{border-top:7px solid transparent;border-bottom:7px solid transparent;border-right:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-bottom{border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid #fff}.ngx-charts-tooltip-content.type-tooltip{color:#fff;background:rgba(0,0,0,.75);font-size:12px;padding:0 10px;text-align:center;pointer-events:auto}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-left{border-top:7px solid transparent;border-bottom:7px solid transparent;border-left:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-right{border-top:7px solid transparent;border-bottom:7px solid transparent;border-right:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-bottom{border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content .tooltip-label{display:block;line-height:1em;padding:8px 5px 5px;font-size:1em}.ngx-charts-tooltip-content .tooltip-val{display:block;font-size:1.3em;line-height:1em;padding:0 5px 8px}.ngx-charts-tooltip-content .tooltip-caret{position:absolute;z-index:5001;width:0;height:0}.ngx-charts-tooltip-content.position-right{transform:translate(10px)}.ngx-charts-tooltip-content.position-left{transform:translate(-10px)}.ngx-charts-tooltip-content.position-top{transform:translateY(-10px)}.ngx-charts-tooltip-content.position-bottom{transform:translateY(10px)}.ngx-charts-tooltip-content.animate{opacity:1;transition:opacity .3s,transform .3s;transform:translate(0);pointer-events:auto}.area-tooltip-container{padding:5px 0;pointer-events:none}.tooltip-item{text-align:left;line-height:1.2em;padding:5px 0}.tooltip-item .tooltip-item-color{display:inline-block;height:12px;width:12px;margin-right:5px;color:#5b646b;border-radius:3px}\n"],encapsulation:2}),(0,va.gn)([x_(100)],n.prototype,"onWindowResize",null),n})(),ic=(()=>{class n{constructor(e,i,a){this.applicationRef=e,this.componentFactoryResolver=i,this.injector=a}static setGlobalRootViewContainer(e){n.globalRootViewContainer=e}getRootViewContainer(){if(this._container)return this._container;if(n.globalRootViewContainer)return n.globalRootViewContainer;if(this.applicationRef.components.length)return this.applicationRef.components[0];throw new Error("View Container not found! ngUpgrade needs to manually set this via setRootViewContainer or setGlobalRootViewContainer.")}setRootViewContainer(e){this._container=e}getComponentRootNode(e){return function T_(n){return n.element}(e)?e.element.nativeElement:e.hostView&&e.hostView.rootNodes.length>0?e.hostView.rootNodes[0]:e.location.nativeElement}getRootViewContainerNode(e){return this.getComponentRootNode(e)}projectComponentBindings(e,i){if(i){if(void 0!==i.inputs){const a=Object.getOwnPropertyNames(i.inputs);for(const o of a)e.instance[o]=i.inputs[o]}if(void 0!==i.outputs){const a=Object.getOwnPropertyNames(i.outputs);for(const o of a)e.instance[o]=i.outputs[o]}}return e}appendComponent(e,i={},a){a||(a=this.getRootViewContainer());const o=this.getComponentRootNode(a),v=new rl.u0(o,this.componentFactoryResolver,this.applicationRef,this.injector),T=new rl.C5(e),N=v.attach(T);return this.projectComponentBindings(N,i),N}}return n.globalRootViewContainer=null,n.\u0275fac=function(e){return new(e||n)(t.LFG(t.z2F),t.LFG(t._Vd),t.LFG(t.zs3))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),Ps=(()=>{class n extends class b_{constructor(r){this.injectionService=r,this.defaults={},this.components=new Map}getByType(r=this.type){return this.components.get(r)}create(r){return this.createByType(this.type,r)}createByType(r,e){e=this.assignDefaults(e);const i=this.injectComponent(r,e);return this.register(r,i),i}destroy(r){const e=this.components.get(r.componentType);if(e&&e.length){const i=e.indexOf(r);i>-1&&(e[i].destroy(),e.splice(i,1))}}destroyAll(){this.destroyByType(this.type)}destroyByType(r){const e=this.components.get(r);if(e&&e.length){let i=e.length-1;for(;i>=0;)this.destroy(e[i--])}}injectComponent(r,e){return this.injectionService.appendComponent(r,e)}assignDefaults(r){const e={...this.defaults.inputs},i={...this.defaults.outputs};return!r.inputs&&!r.outputs&&(r={inputs:r}),e&&(r.inputs={...e,...r.inputs}),i&&(r.outputs={...i,...r.outputs}),r}register(r,e){this.components.has(r)||this.components.set(r,[]),this.components.get(r).push(e)}}{constructor(e){super(e),this.type=y_}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(ic))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),cc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[m.ez]]}),n})();var Qr=(()=>{return(n=Qr||(Qr={})).popover="popover",n.tooltip="tooltip",Qr;var n})(),br=(()=>{return(n=br||(br={}))[n.all="all"]="all",n[n.focus="focus"]="focus",n[n.mouseover="mouseover"]="mouseover",br;var n})();let Zs,Rs=(()=>{class n{constructor(e,i,a){this.tooltipService=e,this.viewContainerRef=i,this.renderer=a,this.tooltipCssClass="",this.tooltipAppendToBody=!0,this.tooltipSpacing=10,this.tooltipDisabled=!1,this.tooltipShowCaret=!0,this.tooltipPlacement=rn.Top,this.tooltipAlignment=rn.Center,this.tooltipType=Qr.popover,this.tooltipCloseOnClickOutside=!0,this.tooltipCloseOnMouseLeave=!0,this.tooltipHideTimeout=300,this.tooltipShowTimeout=100,this.tooltipShowEvent=br.all,this.tooltipImmediateExit=!1,this.show=new t.vpe,this.hide=new t.vpe}get listensForFocus(){return this.tooltipShowEvent===br.all||this.tooltipShowEvent===br.focus}get listensForHover(){return this.tooltipShowEvent===br.all||this.tooltipShowEvent===br.mouseover}ngOnDestroy(){this.hideTooltip(!0)}onFocus(){this.listensForFocus&&this.showTooltip()}onBlur(){this.listensForFocus&&this.hideTooltip(!0)}onMouseEnter(){this.listensForHover&&this.showTooltip()}onMouseLeave(e){if(this.listensForHover&&this.tooltipCloseOnMouseLeave){if(clearTimeout(this.timeout),this.component&&this.component.instance.element.nativeElement.contains(e))return;this.hideTooltip(this.tooltipImmediateExit)}}onMouseClick(){this.listensForHover&&this.hideTooltip(!0)}showTooltip(e){if(this.component||this.tooltipDisabled)return;const i=e?0:this.tooltipShowTimeout+(navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)?300:0);clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.tooltipService.destroyAll();const a=this.createBoundOptions();this.component=this.tooltipService.create(a),setTimeout(()=>{this.component&&this.addHideListeners(this.component.instance.element.nativeElement)},10),this.show.emit(!0)},i)}addHideListeners(e){this.mouseEnterContentEvent=this.renderer.listen(e,"mouseenter",()=>{clearTimeout(this.timeout)}),this.tooltipCloseOnMouseLeave&&(this.mouseLeaveContentEvent=this.renderer.listen(e,"mouseleave",()=>{this.hideTooltip(this.tooltipImmediateExit)})),this.tooltipCloseOnClickOutside&&(this.documentClickEvent=this.renderer.listen("window","click",i=>{e.contains(i.target)||this.hideTooltip()}))}hideTooltip(e=!1){if(!this.component)return;const i=()=>{this.mouseLeaveContentEvent&&this.mouseLeaveContentEvent(),this.mouseEnterContentEvent&&this.mouseEnterContentEvent(),this.documentClickEvent&&this.documentClickEvent(),this.hide.emit(!0),this.tooltipService.destroy(this.component),this.component=void 0};clearTimeout(this.timeout),e?i():this.timeout=setTimeout(i,this.tooltipHideTimeout)}createBoundOptions(){return{title:this.tooltipTitle,template:this.tooltipTemplate,host:this.viewContainerRef.element,placement:this.tooltipPlacement,alignment:this.tooltipAlignment,type:this.tooltipType,showCaret:this.tooltipShowCaret,cssClass:this.tooltipCssClass,spacing:this.tooltipSpacing,context:this.tooltipContext}}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Ps),t.Y36(t.s_b),t.Y36(t.Qsj))},n.\u0275dir=t.lG2({type:n,selectors:[["","ngx-tooltip",""]],hostBindings:function(e,i){1&e&&t.NdJ("focusin",function(){return i.onFocus()})("blur",function(){return i.onBlur()})("mouseenter",function(){return i.onMouseEnter()})("mouseleave",function(o){return i.onMouseLeave(o.target)})("click",function(){return i.onMouseClick()})},inputs:{tooltipCssClass:"tooltipCssClass",tooltipTitle:"tooltipTitle",tooltipAppendToBody:"tooltipAppendToBody",tooltipSpacing:"tooltipSpacing",tooltipDisabled:"tooltipDisabled",tooltipShowCaret:"tooltipShowCaret",tooltipPlacement:"tooltipPlacement",tooltipAlignment:"tooltipAlignment",tooltipType:"tooltipType",tooltipCloseOnClickOutside:"tooltipCloseOnClickOutside",tooltipCloseOnMouseLeave:"tooltipCloseOnMouseLeave",tooltipHideTimeout:"tooltipHideTimeout",tooltipShowTimeout:"tooltipShowTimeout",tooltipTemplate:"tooltipTemplate",tooltipShowEvent:"tooltipShowEvent",tooltipContext:"tooltipContext",tooltipImmediateExit:"tooltipImmediateExit"},outputs:{show:"show",hide:"hide"}}),n})(),uc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({providers:[ic,Ps],imports:[[m.ez]]}),n})();typeof window<"u"?Zs=window:typeof global<"u"&&(Zs=global);let $i=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[m.ez,cc,uc],m.ez,cc,uc]}),n})(),N_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i]]}),n})(),vc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i]]}),n})(),P_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i]]}),n})(),F_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i]]}),n})(),R_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i]]}),n})(),xc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i]]}),n})();Math;let Gs=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i]]}),n})(),V_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i,Gs,xc]]}),n})(),U_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i]]}),n})(),z_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i]]}),n})(),H_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i,Gs,vc]]}),n})(),W_=(()=>{class n{constructor(){!function Y_(){typeof SVGElement<"u"&&typeof SVGElement.prototype.contains>"u"&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)}()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[$i,N_,vc,P_,F_,R_,xc,V_,U_,Gs,z_,H_]}),n})();function X_(n,r){1&n&&(t.TgZ(0,"div"),t._UZ(1,"mat-spinner",3),t.qZA())}function $_(n,r){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"strong"),t._uU(4),t.qZA()()),2&n){const e=t.oxw(3);t.xp6(1),t.hij(" ",t.lcZ(2,2,"ADMIN.VISUALIZER.USER_DESTINATION.FOUND_3")," "),t.xp6(3),t.Oqu(e.service)}}function Q_(n,r){1&n&&(t.O4$(),t.TgZ(0,"marker",10),t._UZ(1,"path",11),t.qZA())}function j_(n,r){if(1&n&&(t.O4$(),t.TgZ(0,"g",12),t._UZ(1,"rect"),t.TgZ(2,"text",13),t._uU(3),t.qZA()()),2&n){const e=r.$implicit;t.Q6J("tooltipTitle",e.tooltip)("tooltipPlacement","top")("tooltipType","tooltip"),t.xp6(1),t.uIk("fill",e.color)("height",e.dimension.height)("width",e.dimension.width),t.xp6(1),t.uIk("y",e.dimension.height/2)("x",10),t.xp6(1),t.hij(" ",e.label," ")}}function J_(n,r){if(1&n&&(t.O4$(),t.TgZ(0,"g",14),t._UZ(1,"path",15),t.TgZ(2,"text",16)(3,"textPath",17),t._uU(4),t.qZA()()()),2&n){const e=r.$implicit;t.xp6(3),t.uIk("href","#"+e.id),t.xp6(1),t.hij(" ",e.label," ")}}const K_=function(n,r){return[n,r]};function q_(n,r){if(1&n&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"strong"),t._uU(4),t.qZA(),t._uU(5),t.ALo(6,"translate"),t.TgZ(7,"strong"),t._uU(8),t.qZA(),t.YNc(9,$_,5,4,"span",4),t.TgZ(10,"div",5)(11,"ngx-graph",6),t.YNc(12,Q_,2,0,"ng-template",null,7,t.W1O),t.YNc(14,j_,4,9,"ng-template",null,8,t.W1O),t.YNc(16,J_,5,2,"ng-template",null,9,t.W1O),t.qZA()()()),2&n){const e=t.oxw(2);t.xp6(1),t.hij(" ",t.lcZ(2,12,"ADMIN.VISUALIZER.USER_DESTINATION.FOUND_1")," "),t.xp6(3),t.AsE("",e.user.firstName," ",e.user.lastName,""),t.xp6(1),t.hij(" ",t.lcZ(6,14,"ADMIN.VISUALIZER.USER_DESTINATION.FOUND_2")," "),t.xp6(3),t.Oqu(e.destination),t.xp6(1),t.Q6J("ngIf","noService"!==e.service),t.xp6(2),t.Q6J("links",e.hierarchialGraph.links)("nodes",e.hierarchialGraph.nodes)("view",t.WLB(16,K_,e.innerWidth,e.innerHeight))("curve",e.curve)("draggingEnabled",!1)("zoomToFit$",e.zoomToFit$)}}function tv(n,r){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"strong"),t._uU(4),t.qZA()()),2&n){const e=t.oxw(3);t.xp6(1),t.hij(" ",t.lcZ(2,2,"ADMIN.VISUALIZER.USER_DESTINATION.NOT_FOUND_3")," "),t.xp6(3),t.Oqu(e.service)}}function ev(n,r){if(1&n&&(t._uU(0),t.ALo(1,"translate"),t.TgZ(2,"strong"),t._uU(3),t.qZA(),t._uU(4),t.ALo(5,"translate"),t.TgZ(6,"strong"),t._uU(7),t.qZA(),t.YNc(8,tv,5,4,"span",4),t._uU(9),t.ALo(10,"translate")),2&n){const e=t.oxw(2);t.hij(" ",t.lcZ(1,7,"ADMIN.VISUALIZER.USER_DESTINATION.NOT_FOUND_1")," "),t.xp6(3),t.AsE("",e.user.firstName," ",e.user.lastName,""),t.xp6(1),t.hij(" ",t.lcZ(5,9,"ADMIN.VISUALIZER.USER_DESTINATION.NOT_FOUND_2")," "),t.xp6(3),t.Oqu(e.destination),t.xp6(1),t.Q6J("ngIf","noService"!==e.service),t.xp6(1),t.hij(" ",t.lcZ(10,11,"ADMIN.VISUALIZER.USER_DESTINATION.NOT_FOUND_4")," ")}}function nv(n,r){if(1&n&&(t.YNc(0,q_,18,19,"div",1),t.YNc(1,ev,11,13,"ng-template",null,2,t.W1O)),2&n){const e=t.MAs(2),i=t.oxw();t.Q6J("ngIf",i.isConnected)("ngIfElse",e)}}let iv=(()=>{class n{constructor(e,i,a,o,v,T,N,U,J){this.route=e,this.facilityManager=i,this.userService=a,this.membersService=o,this.serviceService=v,this.resourceManager=T,this.groupService=N,this.voService=U,this.translate=J,this.isConnected=!1,this.loading=!0,this.hierarchialGraph={nodes:[],links:[]},this.curve=Ha,this.zoomToFit$=new ea.x,this.idCounter=0}static findConnectedGroups(e,i){const a=[];for(const o of e)for(const v of i)o.id===v.id&&a.push(o);return a}static findConnectedResources(e,i){const a=[];for(const o of e)for(const v of i)o.id===v.id&&a.push(o);return a}onResize(){this.innerWidth=window.innerWidth<600?window.innerWidth:window.innerWidth-420,this.innerHeight=window.innerHeight}ngOnInit(){this.innerWidth=window.innerWidth<600?window.innerWidth:window.innerWidth-420,this.innerHeight=window.innerHeight,this.getLocalizedNames(),this.route.queryParams.subscribe(e=>{this.destination=String(e.destination),this.service=String(e.service),this.userService.getUserById(Number(e.user)).subscribe(i=>{this.user=i,this.facilityManager.getFacilitiesByDestination(this.destination).subscribe(a=>{this.facilities=a,this.membersService.getMembersByUser(this.user.id).subscribe(o=>{if(this.membership=o,0===this.membership.length||0===this.facilities.length)return this.loading=!1,void(this.isConnected=!1);this.showGraph()})})})})}showGraph(){const e=""+this.id().toString(),i=this.user.firstName??" "+this.user.lastName??"",a=this.localUser,o="user: "+this.user.id.toString();this.hierarchialGraph.nodes.push({id:e,label:i,tooltip:a,color:"#FFFFCC",tip:o});const T=""+this.id().toString(),N="destination no id";this.hierarchialGraph.nodes.push("noService"===this.service?{id:T,label:this.destination,tooltip:this.localDestination+": "+this.destination,color:"#E0E0E0",tip:N}:{id:T,label:this.service+": "+this.destination,tooltip:this.localService+": "+this.service+", "+this.localDestination+": "+this.destination,color:"#E0E0E0",tip:N});for(const U of this.facilities)this.serviceService.getAllRichDestinationsForFacility(U.id).subscribe(J=>{this.connectToService(U,J),setTimeout(()=>{this.zoomToFit$.next(!0),this.loading=!1},2e3)})}connectToService(e,i){this.isConnectedToService(i)&&this.facilityManager.getAssignedResourcesForFacility(e.id).subscribe(a=>{for(const o of this.membership)this.connectToGroups(e,o,a)})}connectToGroups(e,i,a){this.facilityManager.getAllowedGroups(e.id,i.voId).subscribe(o=>{0!==o.length&&this.groupService.getMemberGroups(i.id).subscribe(v=>{const T=n.findConnectedGroups(o,v);if(0!==T.length)for(const N of T)this.connectToResource(e,N,a)})})}haveService(e){if("noService"===this.service)return!0;for(const i of e)if(this.service===i.name)return!0;return!1}connectToResource(e,i,a){this.resourceManager.getAssignedResourcesWithGroup(i.id).subscribe(o=>{const v=n.findConnectedResources(o,a);for(const T of v)this.resourceManager.getAssignedServicesToResource(T.id).subscribe(N=>{this.haveService(N)&&(this.isConnected=!0,this.addNodesToGraph(i.voId,i,T,e))})})}addNodesToGraph(e,i,a,o){if(-1===this.findEntityInGraph("Facility: "+o.id.toString())){const v=""+this.id().toString(),T=this.localFacility+": "+o.name,N=o.description,U="Facility: "+o.id.toString();this.hierarchialGraph.nodes.push({id:v,label:T,tooltip:N,color:"#FFCCFF",tip:U});const ct={source:v,target:this.hierarchialGraph.nodes[this.findEntityInGraph("destination no id")].id};this.hierarchialGraph.links.push(ct)}this.voService.getVoById(e).subscribe(v=>{if(-1===this.findEntityInGraph("Vo: "+v.id.toString())){const N=this.id().toString(),U=this.localVo+": "+v.shortName,J=v.name,ct="Vo: "+v.id.toString();this.hierarchialGraph.nodes.push({id:N,label:U,tooltip:J,color:"#E5FFCC",tip:ct});const Ct={source:this.hierarchialGraph.nodes[this.findEntityInGraph("user: "+this.user.id.toString())].id,target:N};this.hierarchialGraph.links.push(Ct)}if(-1===this.findEntityInGraph("Group: "+i.id.toString())){const N=this.id().toString(),U=this.localGroup+": "+i.name,J=i.description,ct="Group: "+i.id.toString();this.hierarchialGraph.nodes.push({id:N,label:U,tooltip:J,color:"#CCE5FF",tip:ct});const Ct={source:this.hierarchialGraph.nodes[this.findEntityInGraph("Vo: "+v.id.toString())].id,target:N};this.hierarchialGraph.links.push(Ct)}const T=this.findEntityInGraph("Resource: "+a.id.toString());if(-1!==T){const N={source:this.hierarchialGraph.nodes[this.findEntityInGraph("Group: "+i.id.toString())].id,target:this.hierarchialGraph.nodes[T].id};this.hierarchialGraph.links.push(N)}else{const N=this.id().toString(),U=this.localResource+": "+a.name,J=a.description,ct="Resource: "+a.id.toString();this.hierarchialGraph.nodes.push({id:N,label:U,tooltip:J,color:"#FFCCCC",tip:ct});const Ct={source:this.hierarchialGraph.nodes[this.findEntityInGraph("Group: "+i.id.toString())].id,target:N};this.hierarchialGraph.links.push(Ct);const It={source:N,target:this.hierarchialGraph.nodes[this.findEntityInGraph("Facility: "+o.id.toString())].id};this.hierarchialGraph.links.push(It)}})}findEntityInGraph(e){for(let i=0;i{this.localUser=e}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.VO").subscribe(e=>{this.localVo=e}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.GROUP").subscribe(e=>{this.localGroup=e}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.RESOURCE").subscribe(e=>{this.localResource=e}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.FACILITY").subscribe(e=>{this.localFacility=e}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.SERVICE").subscribe(e=>{this.localService=e}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.DESTINATION").subscribe(e=>{this.localDestination=e})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(p.gz),t.Y36(H.IQ),t.Y36(H.Fv),t.Y36(H.uq),t.Y36(H.KK),t.Y36(H.xk),t.Y36(H.ff),t.Y36(H.YF),t.Y36(u.sK))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-user-destination-graph"]],hostVars:2,hostBindings:function(e,i){1&e&&t.NdJ("resize",function(o){return i.onResize(o)},!1,t.Jf7),2&e&&t.ekj("router-component",i.true)},decls:6,vars:5,consts:[[1,"page-subtitle"],[4,"ngIf","ngIfElse"],["elseBlock",""],[1,"ml-auto","mr-auto"],[4,"ngIf"],[1,"card","w-100","h-100"],[1,"chart-container",3,"links","nodes","view","curve","draggingEnabled","zoomToFit$"],["defsTemplate",""],["nodeTemplate",""],["linkTemplate",""],["id","arrow","markerHeight","4","refX","8","refY","0","markerWidth","4","orient","auto","viewBox","0 -5 10 10"],["d","M0,-5L10,0L0,5",1,"arrow-head"],["ngx-tooltip","",1,"node",3,"tooltipTitle","tooltipPlacement","tooltipType"],["alignment-baseline","central"],[1,"edge"],["marker-end","url(#arrow)","stroke-width","2",1,"line"],["text-anchor","end",1,"edge-label"],["startOffset","60%",2,"fill","#000"]],template:function(e,i){if(1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.YNc(3,X_,2,0,"div",1),t.YNc(4,nv,3,2,"ng-template",null,2,t.W1O)),2&e){const a=t.MAs(5);t.xp6(1),t.hij(" ",t.lcZ(2,3,"ADMIN.VISUALIZER.USER_DESTINATION.TITLE"),"\n"),t.xp6(2),t.Q6J("ngIf",i.loading)("ngIfElse",a)}},dependencies:[Rp,m.O5,Rs,tt.Ou,u.X$]}),n})();var rv=s(25828),yc=s(69024),av=s(29862),ma=s(21029),Us=s(55660),sv=s(31359);function ov(n,r){1&n&&t._UZ(0,"mat-spinner",3)}function lv(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",15),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(3);return t.KtG(a.editUser())}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA()()}}function cv(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",16),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(3);return t.KtG(a.anonymizeUser())}),t.TgZ(1,"mat-icon"),t._uU(2,"no_accounts"),t.qZA()()}}function uv(n,r){1&n&&(t.TgZ(0,"mat-icon",17),t.ALo(1,"translate"),t._uU(2," blur_off "),t.qZA()),2&n&&t.s9C("matTooltip",t.lcZ(1,1,"USER_DETAIL.DASHBOARD.ANONYMIZED"))}function hv(n,r){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,lv,3,0,"button",12),t.YNc(2,cv,3,0,"button",13),t.YNc(3,uv,3,3,"mat-icon",14),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",!e.anonymized),t.xp6(1),t.Q6J("ngIf",!e.anonymized),t.xp6(1),t.Q6J("ngIf",e.anonymized)}}const dv=function(){return{color:"black"}},pv=function(n){return["/admin/users",n]};function fv(n,r){if(1&n&&(t.TgZ(0,"div",4),t._UZ(1,"mat-icon",5),t.ALo(2,"translate"),t.TgZ(3,"div",6)(4,"div",7)(5,"a",8),t._uU(6),t.ALo(7,"userFullName"),t.qZA(),t.TgZ(8,"span",9),t._uU(9),t.qZA(),t.YNc(10,hv,4,3,"span",10),t.qZA(),t.TgZ(11,"div"),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.TgZ(14,"span",11),t._uU(15),t.ALo(16,"translate"),t.ALo(17,"translate"),t.qZA()()()),2&n){const e=t.oxw();t.xp6(1),t.s9C("matTooltip",t.lcZ(2,12,"ADMIN_USER.ENTITY")),t.Q6J("ngStyle",t.DdM(22,dv))("svgIcon",e.svgIcon),t.xp6(4),t.Q6J("routerLink",t.VKq(23,pv,e.user.id)),t.xp6(1),t.hij(" ",t.lcZ(7,14,e.user)," "),t.xp6(3),t.hij(" \xa0#",e.user.id," "),t.xp6(1),t.Q6J("ngIf",e.authResolver.isPerunAdmin()),t.xp6(2),t.AsE("",t.lcZ(13,16,"ADMIN_USER.UUID"),": ",e.user.uuid,""),t.xp6(3),t.lnq(" ",t.lcZ(16,18,"ADMIN_USER.ENTITY"),", ",t.lcZ(17,20,"ADMIN_USER.USER_TYPE"),": ",e.getUserType()," ")}}let mv=(()=>{class n{constructor(e,i,a,o,v,T,N,U,J){this.route=e,this.attributesService=i,this.usersService=a,this.sideMenuService=o,this.sideMenuItemService=v,this.dialog=T,this.authResolver=N,this.entityStorageService=U,this.router=J,this.loading=!1,this.svgIcon="perun-user-dark"}ngOnInit(){this.loading=!0,this.route.params.subscribe(e=>{const i=Number(e.userId);this.entityStorageService.setEntity({id:Number(i),beanName:"User"}),this.path=`/admin/users/${i}`,this.regex="/admin/users/\\d+",this.usersService.getUserById(i).subscribe(o=>{this.user=o,this.user.serviceUser&&(this.svgIcon="perun-service-identity");const v=this.sideMenuItemService.parseUser(o,this.path,this.regex);this.sideMenuService.setAdminItems([v]),this.loading=!1},()=>this.loading=!1),this.attributesService.getAttribute("urn:perun:user:attribute-def:virt:anonymized",void 0,void 0,i).subscribe(o=>{this.anonymized=Boolean(o.value)})})}editUser(){const e=(0,fe.kZ)();e.width="450px",e.data={theme:"admin-theme",user:this.user},this.dialog.open(av.x,e).afterClosed().subscribe(a=>{a&&this.usersService.getUserById(this.user.id).subscribe(o=>{this.user=o})})}getUserType(){return this.user.serviceUser?"Service":"Person"}anonymizeUser(){const e=(0,fe.kZ)();e.width="550px",e.data={theme:"admin-theme",user:this.user},this.dialog.open(ma.GI,e).afterClosed().subscribe(a=>{a&&this.router.navigate(["/admin","users"],{queryParamsHandling:"merge"})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(p.gz),t.Y36(H.H8),t.Y36(H.Fv),t.Y36(d.D),t.Y36(yc.V),t.Y36(M.uw),t.Y36(Z.x4),t.Y36(Z.fb),t.Y36(p.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-admin-user-detail-page"]],decls:5,vars:2,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","user-theme"],["class","mr-auto ml-auto",4,"ngIf"],["class","d-flex page-title-headtitle",4,"ngIf"],[1,"mr-auto","ml-auto"],[1,"d-flex","page-title-headtitle"],[1,"perun-icon","perun-icon-detail",3,"ngStyle","svgIcon","matTooltip"],[1,"page-title-block"],[1,"page-title-headline","d-flex","align-items-center"],["data-cy","user-name-link",1,"user-link",3,"routerLink"],[1,"text-muted"],[4,"ngIf"],[1,"mt-1","entity-info"],["mat-icon-button","","data-cy","edit-user-button",3,"click",4,"ngIf"],["mat-icon-button","",3,"click",4,"ngIf"],["class","mat-icon-war ml-2",3,"matTooltip",4,"ngIf"],["mat-icon-button","","data-cy","edit-user-button",3,"click"],["mat-icon-button","",3,"click"],[1,"mat-icon-war","ml-2",3,"matTooltip"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"perun-web-apps-back-button"),t.YNc(2,ov,1,0,"mat-spinner",1),t.YNc(3,fv,18,25,"div",2),t._UZ(4,"app-animated-router-outlet"),t.qZA()),2&e&&(t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading&&void 0!==i.user))},dependencies:[m.O5,m.PC,p.yS,l.Hw,G.lW,tt.Ou,ln.gM,h.A,f.W,Us.Q,u.X$,sv.d]}),n})();var gv=s(17755),_v=s(74837),vv=s(85985),xv=s(98973),yv=s(15935);function bv(n,r){1&n&&t._UZ(0,"mat-spinner",5)}const Tv=function(){return["id","name","type"]};function Cv(n,r){if(1&n&&t._UZ(0,"app-ext-sources-list",6),2&n){const e=t.oxw();t.Q6J("extSources",e.extSources)("filterValue",e.filterValue)("displayedColumns",t.DdM(4,Tv))("tableId",e.tableId)}}let wv=(()=>{class n{constructor(e,i,a,o){this.extSourceService=e,this.notificator=i,this.translate=a,this.authResolver=o,this.extSources=[],this.filterValue="",this.loading=!1,this.tableId=Sn.qy,this.translate.get("ADMIN.EXT_SOURCES.LOAD_SUCCESS").subscribe(v=>this.loadSuccess=v)}ngOnInit(){this.refreshTable()}applyFilter(e){this.filterValue=e}onLoad(){this.extSourceService.loadExtSourcesDefinitions().subscribe(()=>{this.notificator.showSuccess(this.loadSuccess),this.refreshTable()})}refreshTable(){this.loading=!0,this.extSourceService.getExtSources().subscribe(e=>{this.extSources=e,this.loading=!1})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(H.KG),t.Y36(Z.V6),t.Y36(u.sK),t.Y36(Z.x4))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-admin-ext-sources"]],decls:8,vars:6,consts:[[1,"page-subtitle"],[3,"click"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"extSources","filterValue","displayedColumns","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"extSources","filterValue","displayedColumns","tableId"]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("click",function(){return i.onLoad()}),t.qZA(),t.TgZ(5,"perun-web-apps-immediate-filter",2),t.NdJ("filter",function(o){return i.applyFilter(o)}),t.qZA(),t.YNc(6,bv,1,0,"mat-spinner",3),t.YNc(7,Cv,1,5,"app-ext-sources-list",4),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,4,"ADMIN.EXT_SOURCES.TITLE")),t.xp6(3),t.Q6J("placeholder","ADMIN.EXT_SOURCES.SEARCH"),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,tt.Ou,yv.D,Ue.t,Vn.L,u.X$]}),n})();var Av=s(6097),Sv=s(97453),Ua=s(54004);function Ev(n,r){1&n&&t._UZ(0,"mat-spinner",7)}function Dv(n,r){if(1&n&&(t.TgZ(0,"mat-option",14),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.name," ")}}function Lv(n,r){if(1&n&&(t.TgZ(0,"div")(1,"mat-form-field",8),t._UZ(2,"input",9),t.ALo(3,"translate"),t.TgZ(4,"mat-error"),t._uU(5),t.ALo(6,"translate"),t.qZA()(),t.TgZ(7,"mat-form-field",8),t._UZ(8,"input",10),t.ALo(9,"translate"),t.TgZ(10,"mat-error"),t._uU(11),t.ALo(12,"translate"),t.qZA(),t.TgZ(13,"mat-autocomplete",11,12),t.YNc(15,Dv,2,2,"mat-option",13),t.ALo(16,"async"),t.qZA()()()),2&n){const e=t.MAs(14),i=t.oxw();t.xp6(2),t.s9C("placeholder",t.lcZ(3,9,"DIALOGS.ADD_USER_EXT_SOURCE.LOGIN")),t.Q6J("formControl",i.loginControl),t.xp6(3),t.hij(" ",t.lcZ(6,11,"DIALOGS.ADD_USER_EXT_SOURCE.EMPTY_LOGIN")," "),t.xp6(3),t.s9C("placeholder",t.lcZ(9,13,"DIALOGS.ADD_USER_EXT_SOURCE.EXT_SOURCE")),t.Q6J("formControl",i.extSourcesControl)("matAutocomplete",e),t.xp6(3),t.hij(" ",t.lcZ(12,15,"DIALOGS.ADD_USER_EXT_SOURCE.EMPTY_EXT_SOURCE")," "),t.xp6(2),t.Q6J("displayWith",i.displayFn),t.xp6(2),t.Q6J("ngForOf",t.lcZ(16,17,i.filteredExtSources))}}let kv=(()=>{class n{constructor(e,i,a,o,v,T){this.dialogRef=e,this.data=i,this.extSourcesManagerService=a,this.usersManagerService=o,this.translate=v,this.notificator=T,this.extSources=[],v.get("DIALOGS.ADD_USER_EXT_SOURCE.SUCCESS").subscribe(N=>this.successMessage=N)}ngOnInit(){this.loading=!0,this.loginControl=new rt.p4("",[rt.kI.required,rt.kI.pattern(".*[\\S]+.*")]),this.extSourcesControl=new rt.p4("",[rt.kI.required]),this.loginControl.markAllAsTouched(),this.extSourcesControl.markAllAsTouched(),this.filteredExtSources=this.extSourcesControl.valueChanges.pipe((0,li.O)(""),(0,Ua.U)(e=>this._filter(e))),this.extSourcesManagerService.getExtSources().subscribe(e=>{this.extSources=e,this.filteredExtSources=this.extSourcesControl.valueChanges.pipe((0,li.O)(""),(0,Ua.U)(i=>this._filter(i))),this.loading=!1},()=>this.loading=!1)}displayFn(e){return e?e.name:null}onCancel(){this.dialogRef.close(!1)}onAdd(){this.loading=!0,this.usersManagerService.addUserExtSource({user:this.data.userId,userExtSource:{beanName:"",extSource:this.extSourcesControl.value,id:0,login:this.loginControl.value,userId:this.data.userId}}).subscribe(()=>{this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0)},()=>this.loading=!1)}_filter(e){const i="string"==typeof e?e.toLowerCase():e.name.toLowerCase();return this.extSources.filter(a=>a.name.toLowerCase().includes(i))}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(M.WI),t.Y36(H.KG),t.Y36(H.Fv),t.Y36(u.sK),t.Y36(Z.V6))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-add-user-ext-source-dialog"]],decls:13,vars:12,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","user-theme"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[1,"center-self","w-100"],["matInput","","required","",3,"formControl","placeholder"],["matInput","","required","","type","text",3,"formControl","matAutocomplete","placeholder"],[3,"displayWith"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(e,i){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div",1),t.YNc(4,Ev,1,0,"mat-spinner",2),t.YNc(5,Lv,17,19,"div",3),t.qZA(),t.TgZ(6,"div",4)(7,"button",5),t.NdJ("click",function(){return i.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",6),t.NdJ("click",function(){return i.onAdd()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"DIALOGS.ADD_USER_EXT_SOURCE.TITLE")),t.xp6(3),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading),t.xp6(3),t.hij(" ",t.lcZ(9,8,"DIALOGS.ADD_USER_EXT_SOURCE.CANCEL")," "),t.xp6(2),t.Q6J("disabled",i.loginControl.invalid||i.extSourcesControl.invalid||i.loading),t.xp6(1),t.hij(" ",t.lcZ(12,10,"DIALOGS.ADD_USER_EXT_SOURCE.ADD")," "))},dependencies:[m.sg,m.O5,Ae.XC,Ae.ZL,zt.ey,ie.TO,ie.KE,Ot.Nt,rt.Fj,rt.JJ,rt.Q7,rt.oH,G.lW,M.uh,M.xY,M.H8,tt.Ou,m.Ov,u.X$],styles:[".column-size[_ngcontent-%COMP%]{width:10rem!important;font-weight:700}.center-self[_ngcontent-%COMP%]{margin-top:auto;margin-bottom:auto}.auto-width[_ngcontent-%COMP%] .mat-form-field[_ngcontent-%COMP%]{width:auto!important}.auto-width[_ngcontent-%COMP%] .mat-select-value[_ngcontent-%COMP%]{max-width:100%;width:auto}.pre-wrap[_ngcontent-%COMP%]{white-space:pre-wrap}"]}),n})();var Iv=s(80275);function Ov(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.addIdentity())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"USER_DETAIL.IDENTITIES.ADD"),"\n"))}function Mv(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.removeIdentity())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"USER_DETAIL.IDENTITIES.REMOVE"),"\n")}}function Nv(n,r){1&n&&t._UZ(0,"mat-spinner",10)}function Pv(n,r){if(1&n&&(t.TgZ(0,"div"),t._UZ(1,"perun-web-apps-user-ext-sources-list",11),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("displayedColumns",e.displayedColumns)("filterValue",e.filterValue)("selection",e.selection)("tableId",e.tableId)("userExtSources",e.userExtSources)}}let Fv=(()=>{class n{constructor(e,i,a,o,v,T){this.usersManagerService=e,this.storage=i,this.registrarManagerService=a,this.dialog=o,this.route=v,this.authResolver=T,this.userExtSources=[],this.selection=new B.Ov(!1,[]),this.displayedColumns=["select","id","extSourceName","login","lastAccess"],this.tableId=Sn.gG,this.filterValue=""}ngOnInit(){this.route.parent.params.subscribe(e=>{this.userId=Number(e.userId)}),this.refreshTable()}refreshTable(){this.loading=!0,this.selection.clear(),this.usersManagerService.getRichUserExtSources(this.userId).subscribe(e=>{this.userExtSources=e,this.loading=!1},()=>this.loading=!1)}addIdentity(){const e=(0,fe.kZ)();e.width="1000px",e.data={userId:this.userId},this.dialog.open(kv,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}removeIdentity(){const e=(0,fe.kZ)();e.width="450px",e.data={showSuccess:!0,theme:"user-theme",userId:this.userId,extSources:this.selection.selected},this.dialog.open(ma.Lc,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}applyFilter(e){this.filterValue=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(H.Fv),t.Y36(Z.d6),t.Y36(H.tk),t.Y36(M.uw),t.Y36(p.gz),t.Y36(Z.x4))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-user-identities"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],[1,"admin-theme"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","filterValue","selection","tableId","userExtSources"]],template:function(e,i){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.YNc(4,Ov,3,3,"button",2),t.YNc(5,Mv,3,4,"button",3),t.TgZ(6,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(o){return i.applyFilter(o)}),t.qZA(),t.TgZ(7,"div",5),t.YNc(8,Nv,1,0,"mat-spinner",6),t.qZA(),t.YNc(9,Pv,2,5,"div",7)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"USER_DETAIL.IDENTITIES.TITLE")),t.xp6(3),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("placeholder","USER_DETAIL.IDENTITIES.FILTER_PLACEHOLDER"),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,G.lW,tt.Ou,Ue.t,Vn.L,Iv.j,u.X$]}),n})();var Rv=s(80774),Bv=s(62109);function Zv(n,r){1&n&&t._UZ(0,"mat-spinner",5)}const Vv=function(){return["id","name","vo","facility","description"]};function Gv(n,r){if(1&n&&t._UZ(0,"perun-web-apps-resources-list",6),2&n){const e=t.oxw();t.Q6J("displayedColumns",t.DdM(4,Vv))("resources",e.resources)("filterValue",e.filterValue)("tableId",e.tableId)}}let Uv=(()=>{class n{constructor(e,i){this.userManager=e,this.route=i,this.resources=[],this.tableId=Sn.kO,this.filterValue=""}ngOnInit(){this.refreshTable()}refreshTable(){this.loading=!0,this.route.parent.params.subscribe(e=>{const i=Number(e.userId);this.userManager.getAssignedRichResourcesForUser(i).subscribe(a=>{this.resources=a,this.loading=!1})})}resourceFilter(e){this.filterValue=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(H.Fv),t.Y36(p.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-perun-web-apps-user-resources"]],decls:8,vars:6,consts:[[1,"page-subtitle"],[3,"refresh"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"displayedColumns","resources","filterValue","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","resources","filterValue","tableId"]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.TgZ(5,"perun-web-apps-immediate-filter",2),t.NdJ("filter",function(o){return i.resourceFilter(o)}),t.qZA(),t.YNc(6,Zv,1,0,"mat-spinner",3),t.YNc(7,Gv,1,5,"perun-web-apps-resources-list",4),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,4,"USER_DETAIL.RESOURCES.TITLE")),t.xp6(3),t.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,tt.Ou,Ue.t,Vn.L,Bv.C,u.X$]}),n})();var zv=s(61365),Hv=s(71103),Yv=s(53984);const Wv=["list"];function Xv(n,r){1&n&&t._UZ(0,"mat-spinner",8)}function $v(n,r){if(1&n&&t._UZ(0,"perun-web-apps-attributes-list",9,10),2&n){const e=t.oxw();t.Q6J("selection",e.selection)("attributes",e.attributes)("tableId",e.tableId)}}let Qv=(()=>{class n{constructor(e,i,a,o){this.dialog=e,this.attributesManager=i,this.userService=a,this.route=o,this.loading=!1,this.selection=new B.Ov(!0,[]),this.tableId=Sn.rF,this.attributes=[]}ngOnInit(){this.route.params.subscribe(e=>{const i=Number(e.identityId);this.userService.getUserExtSourceById(i).subscribe(a=>{this.userExtSource=a,this.refreshTable()})})}refreshTable(){this.loading=!0,this.attributesManager.getUserExtSourceAttributes(this.userExtSource.id).subscribe(e=>{this.attributes=(0,fe.MX)(e),this.selection.clear(),this.loading=!1})}onAdd(){const e=(0,fe.kZ)();e.width="1050px",e.data={entityId:this.userExtSource.id,entity:"ues",notEmptyAttributes:this.attributes,style:"user-theme"},this.dialog.open(Hv.n,e).afterClosed().subscribe(a=>{"saved"===a&&this.refreshTable()})}onSave(){this.list.updateMapAttributes();const e=(0,fe.kZ)();e.width="450px",e.data={entityId:this.userExtSource.id,entity:"ues",attributes:this.selection.selected},this.dialog.open(ma.wA,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}onRemove(){const e=(0,fe.kZ)();e.width="450px",e.data={entityId:this.userExtSource.id,entity:"ues",attributes:this.selection.selected},this.dialog.open(zv.k,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.uw),t.Y36(H.H8),t.Y36(H.Fv),t.Y36(p.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-identity-detail"]],viewQuery:function(e,i){if(1&e&&t.Gf(Wv,5),2&e){let a;t.iGM(a=t.CRH())&&(i.list=a.first)}},decls:26,vars:32,consts:[[1,"page-subtitle"],[1,"mb-2"],[3,"refresh"],["color","accent","mat-flat-button","",1,"mr-2",3,"disabled","click"],["color","accent","mat-flat-button","",1,"mr-2",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],["class","ml-auto mr-auto",4,"ngIf"],[3,"selection","attributes","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"selection","attributes","tableId"],["list",""]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"div"),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"div",1),t._uU(11),t.ALo(12,"translate"),t.ALo(13,"date"),t.qZA(),t.TgZ(14,"perun-web-apps-refresh-button",2),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.TgZ(15,"button",3),t.NdJ("click",function(){return i.onSave()}),t._uU(16),t.ALo(17,"translate"),t.qZA(),t.TgZ(18,"button",4),t.NdJ("click",function(){return i.onAdd()}),t._uU(19),t.ALo(20,"translate"),t.qZA(),t.TgZ(21,"button",5),t.NdJ("click",function(){return i.onRemove()}),t._uU(22),t.ALo(23,"translate"),t.qZA(),t.YNc(24,Xv,1,0,"mat-spinner",6),t.YNc(25,$v,2,3,"perun-web-apps-attributes-list",7),t.qZA()),2&e&&(t.xp6(2),t.AsE(" ",t.lcZ(3,15,"SHARED.IDENTITY_DETAIL.TITLE")," - ",i.userExtSource?i.userExtSource.extSource.name:""," "),t.xp6(3),t.AsE(" ",t.lcZ(6,17,"SHARED.IDENTITY_DETAIL.TYPE"),": ",i.userExtSource?i.userExtSource.extSource.type:""," "),t.xp6(3),t.AsE(" ",t.lcZ(9,19,"SHARED.IDENTITY_DETAIL.LOGIN"),": ",i.userExtSource?i.userExtSource.login:""," "),t.xp6(3),t.AsE(" ",t.lcZ(12,21,"SHARED.IDENTITY_DETAIL.LAST_ACCESS"),": ",i.userExtSource?t.xi3(13,23,i.userExtSource.lastAccess,"d.M.y H:mm:ss"):""," "),t.xp6(4),t.Q6J("disabled",0===i.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(17,26,"SHARED.IDENTITY_DETAIL.SAVE")," "),t.xp6(3),t.hij(" ",t.lcZ(20,28,"SHARED.IDENTITY_DETAIL.ADD")," "),t.xp6(2),t.Q6J("disabled",0===i.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(23,30,"SHARED.IDENTITY_DETAIL.REMOVE")," "),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,G.lW,tt.Ou,Ue.t,Yv.p,m.uU,u.X$]}),n})();var jv=s(40009),Jv=s(90719),bc=s(34198);function Kv(n,r){1&n&&t._UZ(0,"mat-spinner",3)}function qv(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",18),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.editService())}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA()()}}function t0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",19),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.removeService())}),t.TgZ(1,"mat-icon"),t._uU(2,"delete_forever"),t.qZA()()}}function e0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",20),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.evaluateConsents())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SERVICE_DETAIL.EVALUATE_CONSENTS")," "))}const n0=function(){return{color:"black"}},Tc=function(n){return["/admin/services",n]};function r0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",4),t._UZ(1,"mat-icon",5),t.ALo(2,"translate"),t.TgZ(3,"div",6)(4,"div",7)(5,"div",8)(6,"div",9)(7,"a",10),t.NdJ("auxclick",function(a){return a.preventDefault()}),t._uU(8),t.qZA(),t.TgZ(9,"span",11),t._uU(10),t.qZA(),t.YNc(11,qv,3,0,"button",12),t.YNc(12,t0,3,0,"button",13),t.qZA(),t.TgZ(13,"span",14),t._uU(14),t.ALo(15,"translate"),t.qZA()()(),t.TgZ(16,"div",15)(17,"mat-slide-toggle",16),t.NdJ("toggleChange",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.changeServiceStatus())}),t._uU(18),t.ALo(19,"translate"),t.qZA(),t.TgZ(20,"mat-slide-toggle",16),t.NdJ("toggleChange",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.propagationChange())}),t._uU(21),t.ALo(22,"translate"),t.qZA(),t.YNc(23,e0,3,3,"button",17),t.qZA()()()}if(2&n){const e=t.oxw();t.xp6(1),t.s9C("matTooltip",t.lcZ(2,15,"SERVICE_DETAIL.ENTITY")),t.Q6J("ngStyle",t.DdM(23,n0)),t.xp6(6),t.Q6J("perunWebAppsMiddleClickRouterLink",t.VKq(24,Tc,e.service.id.toString()))("routerLink",t.VKq(26,Tc,e.service.id)),t.xp6(1),t.hij(" ",e.service.name," "),t.xp6(2),t.hij(" \xa0 #",e.service.id," "),t.xp6(1),t.Q6J("ngIf",e.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("ngIf",e.authResolver.isPerunAdmin()),t.xp6(2),t.AsE(" ",t.lcZ(15,17,"SERVICE_DETAIL.DESCRIPTION"),": ",e.service.description," "),t.xp6(3),t.Q6J("checked",e.service.enabled),t.xp6(1),t.hij(" ",t.lcZ(19,19,"SERVICE_DETAIL.ENABLE")," "),t.xp6(2),t.Q6J("checked",e.service.useExpiredMembers),t.xp6(1),t.hij(" ",t.lcZ(22,21,"SERVICE_DETAIL.PROPAGATE")," "),t.xp6(2),t.Q6J("ngIf",e.authResolver.isPerunAdmin())}}let a0=(()=>{class n{constructor(e,i,a,o,v,T,N,U,J,ct,ot){this.route=e,this.router=i,this.consentsManager=a,this.serviceManager=o,this.sideMenuService=v,this.sideMenuItemService=T,this.dialog=N,this.authResolver=U,this.translate=J,this.notificator=ct,this.entityStorageService=ot,this.loading=!1}ngOnInit(){this.loading=!0,this.route.params.subscribe(e=>{this.serviceId=Number(e.serviceId),this.entityStorageService.setEntity({id:this.serviceId,beanName:"Service"}),this.refresh()})}editService(){const e=(0,fe.kZ)();e.width="600px",e.data={theme:"service-theme",service:this.service},this.dialog.open(jv.R,e).afterClosed().subscribe(a=>{a&&this.refresh()})}removeService(){const e=(0,fe.kZ)();e.width="600px",e.data={theme:"service-theme",services:[this.service]},this.dialog.open(Jv.m,e).afterClosed().subscribe(a=>{a&&this.router.navigate(["/admin/services"],{queryParamsHandling:"preserve"})})}changeServiceStatus(){this.service.enabled=!this.service.enabled,this.serviceManager.updateService({service:this.service}).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("SERVICE_DETAIL.STATUS_CHANGE_SUCCESS"))},()=>this.service.enabled=!this.service.enabled)}propagationChange(){this.service.useExpiredMembers=!this.service.useExpiredMembers,this.serviceManager.updateService({service:this.service}).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("SERVICE_DETAIL.PROPAGATION_CHANGE_SUCCESS"))},()=>this.service.useExpiredMembers=!this.service.useExpiredMembers)}evaluateConsents(){const e=(0,fe.kZ)();e.width="500px",e.data={title:this.translate.instant("SERVICE_DETAIL.CONFIRM_DIALOG_TITLE"),theme:"service-theme",description:this.translate.instant("SERVICE_DETAIL.CONFIRM_DIALOG_DESCRIPTION"),items:[this.service.name],type:"confirmation",showAsk:!1},this.dialog.open(ma.Ts,e).afterClosed().subscribe(a=>{a&&this.consentsManager.evaluateConsentsForService(this.service.id).subscribe(()=>this.notificator.showSuccess(this.translate.instant("SERVICE_DETAIL.EVALUATION_FINISH")))})}refresh(){this.serviceManager.getServiceById(this.serviceId).subscribe(e=>{this.service=e;const i=this.sideMenuItemService.parseService(this.service);this.sideMenuService.setAdminItems([i]),this.loading=!1},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(p.gz),t.Y36(p.F0),t.Y36(H.WY),t.Y36(H.KK),t.Y36(d.D),t.Y36(yc.V),t.Y36(M.uw),t.Y36(Z.x4),t.Y36(u.sK),t.Y36(Z.V6),t.Y36(Z.fb))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-service-detail-page"]],decls:5,vars:2,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","service-theme"],["class","ml-auto mr-auto",4,"ngIf"],["class","page-title-headtitle detail-layout",4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"page-title-headtitle","detail-layout"],["svgIcon","perun-service",1,"perun-icon","perun-icon-detail",3,"matTooltip","ngStyle"],[1,"wrap-container"],[1,"detail-info"],[1,"flex-column"],[1,"page-title-headline","d-flex","align-items-center"],["data-cy","service-name-link",1,"service-link",3,"perunWebAppsMiddleClickRouterLink","routerLink","auxclick"],[1,"text-muted"],["aria-label","Edit service","data-cy","service-edit-button","mat-icon-button","",3,"click",4,"ngIf"],["aria-label","Remove service","mat-icon-button","",3,"click",4,"ngIf"],[1,"mt-1","entity-info"],[1,"detail-actions"],["labelPosition","before",3,"checked","toggleChange"],["class","action-button evaluate-button","mat-stroked-button","",3,"click",4,"ngIf"],["aria-label","Edit service","data-cy","service-edit-button","mat-icon-button","",3,"click"],["aria-label","Remove service","mat-icon-button","",3,"click"],["mat-stroked-button","",1,"action-button","evaluate-button",3,"click"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"perun-web-apps-back-button"),t.YNc(2,Kv,1,0,"mat-spinner",1),t.YNc(3,r0,24,28,"div",2),t._UZ(4,"app-animated-router-outlet"),t.qZA()),2&e&&(t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,m.PC,p.yS,l.Hw,G.lW,tt.Ou,ln.gM,Tt.Rr,h.A,f.W,bc.Y,Us.Q,u.X$],styles:[".detail-layout[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:1.2em}.detail-info[_ngcontent-%COMP%]{display:flex;flex-direction:row;margin-right:1.2em}.wrap-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap;gap:.3em}.detail-actions[_ngcontent-%COMP%]{display:flex;flex-direction:column;border-left:1px solid rgba(0,0,0,.2);padding-left:.5em}.evaluate-button[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content}"],data:{animation:[zn.Ji]}}),n})(),s0=(()=>{class n{constructor(e){this.entityStorageService=e,this.navItems=[]}ngOnInit(){this.service=this.entityStorageService.getEntity(),this.initNavItems()}initNavItems(){this.navItems=[{cssIcon:"perun-attributes",url:`/admin/services/${this.service.id}/required-attributes`,label:"MENU_ITEMS.SERVICE.REQUIRED_ATTRIBUTES",style:"service-btn"},{cssIcon:"perun-service_destination",url:`/admin/services/${this.service.id}/destinations`,label:"MENU_ITEMS.SERVICE.DESTINATIONS",style:"service-btn"}]}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Z.fb))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-service-overview"]],decls:1,vars:2,consts:[[3,"items","size"]],template:function(e,i){1&e&&t._UZ(0,"perun-web-apps-menu-buttons-field",0),2&e&&t.Q6J("items",i.navItems)("size","small")},dependencies:[L.L]}),n})();var o0=s(32076),l0=s(24351),Cc=s(54482),c0=s(25032),h0=s(86099),d0=s(57359);function f0(n,r){1&n&&t._UZ(0,"mat-spinner",4)}function m0(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",9),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.Q6J("alert_type","warn"),t.xp6(1),t.Oqu(t.lcZ(2,2,"DIALOGS.ADD_REQUIRED_ATTRIBUTES.ACTIVE_WARN")))}function g0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",5),t.YNc(1,m0,3,4,"perun-web-apps-alert",6),t.ALo(2,"async"),t.TgZ(3,"perun-web-apps-immediate-filter",7),t.NdJ("filter",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.applyFilter(a))}),t.qZA(),t._UZ(4,"app-attr-def-list",8),t.ALo(5,"async"),t.ALo(6,"async"),t.qZA()}if(2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",t.lcZ(2,8,e.serviceEnabled$)),t.xp6(2),t.Q6J("placeholder","DIALOGS.ADD_REQUIRED_ATTRIBUTES.FILTER"),t.xp6(1),t.Q6J("selection",e.selection)("definitions",e.attrDefinitions)("disableRouting",!0)("filterValue",e.filterValue)("serviceEnabled",t.lcZ(5,10,e.serviceEnabled$))("consentRequired",t.lcZ(6,12,e.consentRequired$))}}function _0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",10)(1,"button",11),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onCancel())}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"button",12),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onAdd())}),t._uU(5),t.ALo(6,"translate"),t.qZA()()}if(2&n){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,3,"DIALOGS.ADD_REQUIRED_ATTRIBUTES.CANCEL")," "),t.xp6(2),t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(6,5,"DIALOGS.ADD_REQUIRED_ATTRIBUTES.ADD")," ")}}let v0=(()=>{class n{constructor(e,i,a,o,v,T,N,U){this.dialogRef=e,this.data=i,this.serviceManager=a,this.attributesManager=o,this.facilitiesService=v,this.consentHubService=T,this.notificator=N,this.translate=U,this.consentRequired$=this.facilitiesService.getAssignedFacilitiesByService(this.data.serviceId).pipe((0,l0.b)(o0.D),(0,Ua.U)(J=>J.id),function u0(n,r){return(0,Cc.e)((e,i)=>{const a=new Set;e.subscribe((0,Qt.x)(i,o=>{const v=n?n(o):o;a.has(v)||(a.add(v),i.next(o))})),r?.subscribe((0,Qt.x)(i,()=>a.clear(),c0.Z))})}(),(0,h0.z)(J=>this.consentHubService.getConsentHubByFacility(J)),function p0(n,r){return(0,Cc.e)((0,d0.U)(n,r,arguments.length>=2,!1,!0))}((J,ct)=>J||ct.enforceConsents,!1),(0,li.O)(!0)),this.serviceEnabled$=this.serviceManager.getServiceById(this.data.serviceId).pipe((0,Ua.U)(J=>J.enabled),(0,li.O)(!0)),this.attrDefinitions=[],this.selection=new B.Ov(!0,[]),this.filterValue="",this.loading=!1}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.serviceId=this.data.serviceId,this.attributesManager.getAllAttributeDefinitions().subscribe(e=>{this.attrDefinitions=e,this.loading=!1})}onAdd(){this.loading=!0;const e=this.selection.selected.map(i=>i.id);this.serviceManager.addRequiredAttributes(this.serviceId,e).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.ADD_REQUIRED_ATTRIBUTES.SUCCESS")),this.dialogRef.close(!0),this.loading=!1},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}applyFilter(e){this.filterValue=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(M.WI),t.Y36(H.KK),t.Y36(H.H8),t.Y36(H.IQ),t.Y36(H.WY),t.Y36(Z.V6),t.Y36(u.sK))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-add-required-attributes"]],decls:7,vars:9,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","","class","dialog-container",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"alert_type",4,"ngIf"],[3,"placeholder","filter"],[3,"selection","definitions","disableRouting","filterValue","serviceEnabled","consentRequired"],[3,"alert_type"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,f0,1,0,"mat-spinner",1),t.YNc(5,g0,7,14,"div",2),t.YNc(6,_0,7,7,"div",3),t.qZA()),2&e&&(t.Tol(i.theme),t.xp6(2),t.Oqu(t.lcZ(3,7,"DIALOGS.ADD_REQUIRED_ATTRIBUTES.TITLE")),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,G.lW,M.uh,M.xY,M.H8,tt.Ou,K.w,Vn.L,di,m.Ov,u.X$]}),n})();function x0(n,r){1&n&&t._UZ(0,"mat-spinner",6)}function y0(n,r){1&n&&t._UZ(0,"th",15)}function b0(n,r){if(1&n&&(t.TgZ(0,"td",16),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(e.friendlyName)}}function T0(n,r){1&n&&t._UZ(0,"tr",17)}function C0(n,r){1&n&&t._UZ(0,"tr",18)}function w0(n,r){if(1&n&&(t.TgZ(0,"div",7)(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",8),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",9),t.ynx(8,10),t.YNc(9,y0,1,0,"th",11),t.YNc(10,b0,2,1,"td",12),t.BQk(),t.YNc(11,T0,1,0,"tr",13),t.YNc(12,C0,1,0,"tr",14),t.qZA()()),2&n){const e=t.oxw();t.xp6(2),t.Oqu(t.lcZ(3,5,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.DESCRIPTION")),t.xp6(3),t.hij(" ",t.lcZ(6,7,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.ASK")," "),t.xp6(2),t.Q6J("dataSource",e.dataSource),t.xp6(4),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}let A0=(()=>{class n{constructor(e,i,a,o,v){this.dialogRef=e,this.data=i,this.serviceManager=a,this.notificator=o,this.translate=v,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.serviceId=this.data.serviceId,this.dataSource=new R.by(this.data.attrDefinitions)}onConfirm(){this.loading=!0;const e=this.dataSource.data.map(i=>i.id);this.serviceManager.removeRequiredAttributes(this.serviceId,e).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.SUCCESS")),this.dialogRef.close(!0),this.loading=!1},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(M.WI),t.Y36(H.KK),t.Y36(Z.V6),t.Y36(u.sK))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-remove-required-attributes"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,i){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div"),t.YNc(4,x0,1,0,"mat-spinner",1),t.YNc(5,w0,13,9,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return i.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return i.onConfirm()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,9,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.TITLE")),t.xp6(2),t.Tol(i.theme),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.CANCEL")," "),t.xp6(2),t.Q6J("disabled",i.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.REMOVE")," "))},dependencies:[m.O5,G.lW,R.BZ,R.fO,R.as,R.w1,R.Dz,R.nj,R.ge,R.ev,R.XQ,R.Gk,M.uh,M.xY,M.H8,tt.Ou,u.X$]}),n})();function S0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onAdd())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SERVICE_DETAIL.REQUIRED_ATTRIBUTES.ADD")," "))}function E0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onRemove())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"SERVICE_DETAIL.REQUIRED_ATTRIBUTES.REMOVE")," ")}}function D0(n,r){1&n&&t._UZ(0,"mat-spinner",9)}function L0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"app-attr-def-list",10),t.NdJ("refreshEvent",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.refreshTable())}),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("definitions",e.attrDefinitions)("filterValue",e.filterValue)("selection",e.selection)("disableRouting",!e.authResolver.isPerunAdmin())("tableId",e.tableId)}}let k0=(()=>{class n{constructor(e,i,a,o){this.attributeManager=e,this.dialog=i,this.authResolver=a,this.entityStorageService=o,this.loading=!1,this.filterValue="",this.selection=new B.Ov(!0,[]),this.attrDefinitions=[],this.tableId=Sn.JO}ngOnInit(){this.loading=!0,this.service=this.entityStorageService.getEntity(),this.refreshTable()}refreshTable(){this.loading=!0,this.attributeManager.getRequiredAttributesDefinition(this.service.id).subscribe(e=>{this.selection.clear(),this.attrDefinitions=e,this.loading=!1})}onAdd(){const e=(0,fe.kZ)();e.width="950px",e.data={serviceId:this.service.id,theme:"service-theme"},this.dialog.open(v0,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}onRemove(){const e=(0,fe.kZ)();e.width="650px",e.data={serviceId:this.service.id,attrDefinitions:this.selection.selected,theme:"service-theme"},this.dialog.open(A0,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}applyFilter(e){this.filterValue=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(H.H8),t.Y36(M.uw),t.Y36(Z.x4),t.Y36(Z.fb))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-service-required-attributes"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","class","mr-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"definitions","filterValue","selection","disableRouting","tableId","refreshEvent",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"definitions","filterValue","selection","disableRouting","tableId","refreshEvent"]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.YNc(5,S0,3,3,"button",2),t.YNc(6,E0,3,4,"button",3),t.TgZ(7,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(o){return i.applyFilter(o)}),t.qZA(),t.YNc(8,D0,1,0,"mat-spinner",5),t.YNc(9,L0,1,5,"app-attr-def-list",6),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,6,"SERVICE_DETAIL.REQUIRED_ATTRIBUTES.TITLE")),t.xp6(3),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("placeholder","SERVICE_DETAIL.REQUIRED_ATTRIBUTES.FILTER"),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,G.lW,tt.Ou,di,Ue.t,Vn.L,u.X$]}),n})();var I0=s(46597),O0=s(89466),M0=s(70242);function N0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onRemove())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"SERVICE_DETAIL.DESTINATIONS.REMOVE")," ")}}function P0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onAllow())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"SERVICE_DETAIL.DESTINATIONS.ALLOW")," ")}}function F0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onBlock())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"SERVICE_DETAIL.DESTINATIONS.BLOCK")," ")}}function R0(n,r){1&n&&t._UZ(0,"mat-spinner",10)}const B0=function(){return["select","destinationId","facility","destination","type","status","propagationType"]};function Z0(n,r){if(1&n&&t._UZ(0,"app-perun-web-apps-destination-list",11),2&n){const e=t.oxw();t.Q6J("destinations",e.destinations)("filterValue",e.filterValue)("selection",e.selection)("displayedColumns",t.DdM(5,B0))("tableId",e.tableId)}}let V0=(()=>{class n{constructor(e,i,a,o,v,T){this.serviceManager=e,this.notificator=i,this.translate=a,this.dialog=o,this.authResolver=v,this.entityStorageService=T,this.loading=!1,this.filterValue="",this.destinations=[],this.selection=new B.Ov(!0,[]),this.tableId=Sn.Cf}ngOnInit(){this.loading=!0,this.service=this.entityStorageService.getEntity(),this.refreshTable()}refreshTable(){this.loading=!0,this.serviceManager.getAllRichDestinationsForService(this.service.id).subscribe(e=>{this.selection.clear(),this.filterValue="",this.destinations=e,this.loading=!1})}onBlock(){this.loading=!0,this.blockServiceOnDestinations(this.selection.selected)}onAllow(){this.loading=!0,this.allowServiceOnDestinations(this.selection.selected)}onRemove(){const e=(0,fe.kZ)();e.width="500px",e.data={destinations:this.selection.selected,theme:"admin-theme"},this.dialog.open(O0.u,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}applyFilter(e){this.filterValue=e}blockServiceOnDestinations(e){this.serviceManager.blockServicesOnDestinations({richDestinations:e}).subscribe({next:()=>{this.notificator.showSuccess(this.translate.instant("SERVICE_DETAIL.DESTINATIONS.BLOCK_SUCCESS")),this.refreshTable()},error:()=>this.loading=!1})}allowServiceOnDestinations(e){this.serviceManager.unblockServicesOnDestinations({richDestinations:e}).subscribe({next:()=>{this.notificator.showSuccess(this.translate.instant("SERVICE_DETAIL.DESTINATIONS.ALLOW_SUCCESS")),this.refreshTable()},error:()=>this.loading=!1})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(H.KK),t.Y36(Z.V6),t.Y36(Z.Te),t.Y36(M.uw),t.Y36(Z.x4),t.Y36(Z.fb))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-service-destinations"]],decls:11,vars:9,consts:[[1,"page-subtitle"],[3,"refresh"],["color","warn","class","mr-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","mr-2","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"destinations","filterValue","selection","displayedColumns","tableId",4,"ngIf"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],["color","accent","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"destinations","filterValue","selection","displayedColumns","tableId"]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.YNc(5,N0,3,4,"button",2),t.YNc(6,P0,3,4,"button",3),t.YNc(7,F0,3,4,"button",4),t.TgZ(8,"perun-web-apps-immediate-filter",5),t.NdJ("filter",function(o){return i.applyFilter(o)}),t.qZA(),t.YNc(9,R0,1,0,"mat-spinner",6),t.YNc(10,Z0,1,6,"app-perun-web-apps-destination-list",7),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,7,"SERVICE_DETAIL.DESTINATIONS.TITLE")),t.xp6(3),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("placeholder","SERVICE_DETAIL.DESTINATIONS.FILTER"),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,G.lW,tt.Ou,M0.q,Ue.t,Vn.L,u.X$]}),n})();function G0(n,r){1&n&&t._UZ(0,"mat-spinner",4)}function U0(n,r){1&n&&t._UZ(0,"th",13)}function z0(n,r){if(1&n&&(t.TgZ(0,"td",14),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(e.name)}}function H0(n,r){1&n&&t._UZ(0,"tr",15)}function Y0(n,r){1&n&&t._UZ(0,"tr",16)}function W0(n,r){if(1&n&&(t.TgZ(0,"div",5)(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",6),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",7),t.ynx(8,8),t.YNc(9,U0,1,0,"th",9),t.YNc(10,z0,2,1,"td",10),t.BQk(),t.YNc(11,H0,1,0,"tr",11),t.YNc(12,Y0,1,0,"tr",12),t.qZA()()),2&n){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,5,"DIALOGS.DELETE_OWNER.DESCRIPTION")," "),t.xp6(3),t.hij(" ",t.lcZ(6,7,"DIALOGS.DELETE_OWNER.ASK")," "),t.xp6(2),t.Q6J("dataSource",e.dataSource),t.xp6(4),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}function X0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",17)(1,"button",18),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onCancel())}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"button",19),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onSubmit())}),t._uU(5),t.ALo(6,"translate"),t.qZA()()}if(2&n){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,3,"DIALOGS.DELETE_OWNER.CANCEL")," "),t.xp6(2),t.Q6J("disabled",e.loading),t.xp6(1),t.hij(" ",t.lcZ(6,5,"DIALOGS.DELETE_OWNER.DELETE")," ")}}let $0=(()=>{class n{constructor(e,i,a,o,v){this.dialogRef=e,this.data=i,this.notificator=a,this.translate=o,this.ownersManagerService=v,this.displayedColumns=["name"],this.owners=[]}ngOnInit(){this.dataSource=new R.by(this.data),this.owners=this.data}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;const e=this.owners.map(i=>i.id);this.ownersManagerService.deleteOwners(e).subscribe({next:()=>{this.loading=!1,this.notificator.showSuccess(this.translate.instant("DIALOGS.DELETE_OWNER.SUCCESS")),this.dialogRef.close(!0)},error:()=>this.loading=!1})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(M.WI),t.Y36(Z.V6),t.Y36(Z.Te),t.Y36(H.aC))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-delete-owner-dialog"]],decls:6,vars:6,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(e,i){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.YNc(3,G0,1,0,"mat-spinner",1),t.YNc(4,W0,13,9,"div",2),t.YNc(5,X0,7,7,"div",3)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,4,"DIALOGS.DELETE_OWNER.TITLE")),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,G.lW,R.BZ,R.fO,R.as,R.w1,R.Dz,R.nj,R.ge,R.ev,R.XQ,R.Gk,M.uh,M.xY,M.H8,tt.Ou,u.X$]}),n})();function Q0(n,r){1&n&&t._UZ(0,"mat-spinner",4)}function j0(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_OWNER.FILL_CONTACT")," "))}function J0(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_OWNER.CONTACT_FORMAT")," "))}function K0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div")(1,"div",5)(2,"mat-form-field"),t._UZ(3,"input",6),t.ALo(4,"translate"),t.TgZ(5,"mat-error"),t._uU(6),t.ALo(7,"translate"),t.qZA()(),t.TgZ(8,"mat-form-field"),t._UZ(9,"input",6),t.ALo(10,"translate"),t.YNc(11,j0,3,3,"mat-error",3),t.YNc(12,J0,3,3,"mat-error",3),t.qZA(),t.TgZ(13,"mat-form-field")(14,"mat-select",7),t.NdJ("valueChange",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.type=a)}),t.TgZ(15,"mat-option",8),t._uU(16),t.ALo(17,"translate"),t.qZA(),t.TgZ(18,"mat-option",9),t._uU(19),t.ALo(20,"translate"),t.qZA()()()(),t.TgZ(21,"div",10)(22,"button",11),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onCancel())}),t._uU(23),t.ALo(24,"translate"),t.qZA(),t.TgZ(25,"div",12),t.ALo(26,"translate"),t.TgZ(27,"button",13),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onSubmit())}),t._uU(28),t.ALo(29,"translate"),t.qZA()()()()}if(2&n){const e=t.oxw();t.xp6(3),t.s9C("placeholder",t.lcZ(4,15,"DIALOGS.ADD_OWNER.NAME")),t.Q6J("formControl",e.nameCtrl),t.xp6(3),t.hij(" ",t.lcZ(7,17,"DIALOGS.ADD_OWNER.FILL_NAME")," "),t.xp6(3),t.s9C("placeholder",t.lcZ(10,19,"DIALOGS.ADD_OWNER.CONTACT")),t.Q6J("formControl",e.contactCtrl),t.xp6(2),t.Q6J("ngIf",e.contactCtrl.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.contactCtrl.invalid&&!e.contactCtrl.hasError("required")),t.xp6(2),t.Q6J("value",e.type),t.xp6(2),t.Oqu(t.lcZ(17,21,"DIALOGS.ADD_OWNER.TYPE1")),t.xp6(3),t.Oqu(t.lcZ(20,23,"DIALOGS.ADD_OWNER.TYPE2")),t.xp6(4),t.hij(" ",t.lcZ(24,25,"DIALOGS.ADD_OWNER.CANCEL")," "),t.xp6(2),t.s9C("matTooltip",t.lcZ(26,27,"DIALOGS.ADD_OWNER.TOOLTIP")),t.Q6J("matTooltipDisabled",e.nameCtrl.valid&&e.contactCtrl.valid),t.xp6(2),t.Q6J("disabled",e.nameCtrl.invalid||e.contactCtrl.invalid),t.xp6(1),t.hij(" ",t.lcZ(29,29,"DIALOGS.ADD_OWNER.CREATE")," ")}}let q0=(()=>{class n{constructor(e,i,a,o){this.dialogRef=e,this.notificator=i,this.ownersManagerService=a,this.translate=o,this.type="1",o.get("DIALOGS.ADD_OWNER.SUCCESS").subscribe(v=>this.successMessage=v)}ngOnInit(){this.nameCtrl=new rt.p4(null,[rt.kI.required,rt.kI.pattern("^[\\w.-]+( [\\w.-]+)*$")]),this.contactCtrl=new rt.p4(null,[rt.kI.required,rt.kI.pattern(fe.B2)])}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.ownersManagerService.createOwner({name:this.nameCtrl.value,contact:this.contactCtrl.value,ownerType:Number(this.type)}).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(Z.V6),t.Y36(H.aC),t.Y36(u.sK))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-add-owner-dialog"]],decls:6,vars:5,consts:[[1,"admin-theme"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","",3,"formControl","placeholder"],[3,"value","valueChange"],["value","1"],["value","0"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"h1",1),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Q0,1,0,"mat-spinner",2),t.YNc(5,K0,30,31,"div",3),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,3,"DIALOGS.ADD_OWNER.TITLE")),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,zt.ey,ie.TO,ie.KE,Ot.Nt,rt.Fj,rt.JJ,rt.Q7,rt.oH,G.lW,M.uh,M.xY,M.H8,te.gD,tt.Ou,ln.gM,u.X$]}),n})();var tx=s(23256);function ex(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.addOwner())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.OWNERS.ADD")," "))}function nx(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.removeOwner())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",!e.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"ADMIN.OWNERS.DELETE")," ")}}function ix(n,r){1&n&&t._UZ(0,"mat-spinner",9)}function rx(n,r){if(1&n&&t._UZ(0,"perun-web-apps-owners-list",10),2&n){const e=t.oxw();t.Q6J("selection",e.selected)("filterValue",e.filterValue)("owners",e.owners)("tableId",e.tableId)}}let ax=(()=>{class n{constructor(e,i,a){this.ownersManagerService=e,this.dialog=i,this.guiAuthResolver=a,this.owners=[],this.selected=new B.Ov(!0,[]),this.filterValue="",this.tableId=Sn.v1}ngOnInit(){this.setAuth(),this.refreshTable()}setAuth(){this.removeAuth=this.guiAuthResolver.isAuthorized("deleteOwner_Owner_policy",[]),this.addAuth=this.guiAuthResolver.isAuthorized("createOwner_Owner_policy",[])}refreshTable(){this.loading=!0,this.ownersManagerService.getAllOwners().subscribe(e=>{this.owners=e,this.selected.clear(),this.loading=!1})}applyFilter(e){this.filterValue=e}addOwner(){const e=(0,fe.kZ)();e.width="400px",e.data={},this.dialog.open(q0,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}removeOwner(){const e=(0,fe.kZ)();e.width="400px",e.data=this.selected.selected,this.dialog.open($0,e).afterClosed().subscribe(a=>{a&&(this.selected.clear(),this.refreshTable())})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(H.aC),t.Y36(M.uw),t.Y36(Z.x4))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-admin-owners"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","class","mr-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"selection","filterValue","owners","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"selection","filterValue","owners","tableId"]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.YNc(5,ex,3,3,"button",2),t.YNc(6,nx,3,4,"button",3),t.TgZ(7,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(o){return i.applyFilter(o)}),t.qZA(),t.YNc(8,ix,1,0,"mat-spinner",5),t.YNc(9,rx,1,4,"perun-web-apps-owners-list",6),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,6,"ADMIN.OWNERS.TITLE")),t.xp6(3),t.Q6J("ngIf",i.addAuth),t.xp6(1),t.Q6J("ngIf",i.removeAuth),t.xp6(1),t.Q6J("placeholder","ADMIN.OWNERS.FILTER"),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,G.lW,tt.Ou,Ue.t,Vn.L,tx.Q,u.X$]}),n})();var sx=s(74010);function ox(n,r){1&n&&t._UZ(0,"mat-spinner",5)}function lx(n,r){if(1&n&&t._UZ(0,"perun-web-apps-facilities-list",6),2&n){const e=t.oxw();t.Q6J("displayedColumns",e.displayedColumns)("filterValue",e.filterValue)("facilities",e.facilities)("tableId",e.tableId)}}let cx=(()=>{class n{constructor(e,i){this.facilityManager=e,this.route=i,this.facilities=[],this.filterValue="",this.tableId=Sn.zW,this.displayedColumns=["id","name","description"]}ngOnInit(){this.loading=!0,this.route.parent.params.subscribe(e=>{this.userId=Number(e.userId),this.refreshTable()})}refreshTable(){this.loading=!0,this.facilityManager.getAssignedFacilitiesByUser(this.userId).subscribe(e=>{this.facilities=e.map(i=>({facility:i})),this.loading=!1})}applyFilter(e){this.filterValue=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(H.IQ),t.Y36(p.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-user-facilities"]],decls:8,vars:6,consts:[[1,"page-subtitle"],[3,"refresh"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"displayedColumns","filterValue","facilities","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","filterValue","facilities","tableId"]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.TgZ(5,"perun-web-apps-immediate-filter",2),t.NdJ("filter",function(o){return i.applyFilter(o)}),t.qZA(),t.YNc(6,ox,1,0,"mat-spinner",3),t.YNc(7,lx,1,4,"perun-web-apps-facilities-list",4),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,4,"USER_DETAIL.FACILITIES.TITLE")),t.xp6(3),t.Q6J("placeholder","USER_DETAIL.FACILITIES.FILTER_PLACEHOLDER"),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,tt.Ou,Ue.t,Vn.L,sx.X,u.X$]}),n})();var wc=s(64080),ux=s(73546),hx=s(25788),dx=s(62707),px=s(12488),fx=s(19191),mx=s(12651);function gx(n,r){1&n&&t._UZ(0,"mat-spinner",6)}function _x(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"perun-web-apps-vo-search-select",7),t.NdJ("voSelected",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.loadMember(a))}),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("vos",e.vos)}}function vx(n,r){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.hij(" ",t.lcZ(1,1,"USER_DETAIL.ACCOUNTS.STATUS")," ")}function xx(n,r){1&n&&t._UZ(0,"mat-spinner",6)}const yx=function(){return["id","recent","name","description","expiration","groupStatus"]};function bx(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"perun-web-apps-groups-list",17),t.NdJ("refreshTable",function(){t.CHM(e);const a=t.oxw(4);return t.KtG(a.loadMember(a.selectedVo))}),t.qZA()}if(2&n){const e=t.oxw(4);t.Q6J("groups",e.groups)("memberId",e.member.id)("memberGroupStatus",e.member.groupStatus)("displayedColumns",t.DdM(4,yx))}}const Ac=function(n,r){return["/organizations",n,"members",r]};function Tx(n,r){if(1&n&&(t.TgZ(0,"div")(1,"div",10)(2,"span",11),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"a",12),t.NdJ("auxclick",function(i){return i.preventDefault()}),t._uU(6),t.qZA()(),t.TgZ(7,"mat-card",13),t._UZ(8,"perun-web-apps-member-overview-membership",14),t.qZA(),t.TgZ(9,"p",15),t._uU(10),t.ALo(11,"translate"),t.qZA(),t.YNc(12,bx,1,5,"perun-web-apps-groups-list",16),t.qZA()),2&n){const e=t.oxw(3);t.xp6(3),t.hij("",t.lcZ(4,8,"USER_DETAIL.ACCOUNTS.MEMBER"),":"),t.xp6(2),t.Q6J("perunWebAppsMiddleClickRouterLink",t.WLB(12,Ac,e.selectedVo.id.toString(),e.member.id.toString()))("routerLink",t.WLB(15,Ac,e.selectedVo.id,e.member.id)),t.xp6(1),t.hij("",e.member.id," "),t.xp6(2),t.Q6J("member",e.member)("voId",e.selectedVo.id),t.xp6(2),t.Oqu(t.lcZ(11,10,"USER_DETAIL.ACCOUNTS.GROUPS")),t.xp6(2),t.Q6J("ngIf",!e.loading)}}function Cx(n,r){if(1&n&&(t.YNc(0,xx,1,0,"mat-spinner",1),t.YNc(1,Tx,13,18,"div",4)),2&n){const e=t.oxw(2);t.Q6J("ngIf",e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading)}}function wx(n,r){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.hij(" ",t.lcZ(1,1,"USER_DETAIL.ACCOUNTS.MEMBER_ATT")," ")}function Ax(n,r){1&n&&t._UZ(0,"mat-spinner")}function Sx(n,r){if(1&n&&t._UZ(0,"app-one-entity-attribute-page",19),2&n){const e=t.oxw(3);t.Q6J("entity","member")("entityId",e.member.id)}}function Ex(n,r){if(1&n&&(t.YNc(0,Ax,1,0,"mat-spinner",4),t.YNc(1,Sx,1,2,"app-one-entity-attribute-page",18)),2&n){const e=t.oxw(2);t.Q6J("ngIf",e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading)}}function Dx(n,r){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.hij(" ",t.lcZ(1,1,"USER_DETAIL.ACCOUNTS.MEMBER_GROUP_ATT")," ")}function Lx(n,r){1&n&&t._UZ(0,"mat-spinner")}function kx(n,r){if(1&n&&t._UZ(0,"app-two-entity-attribute-page",21),2&n){const e=t.oxw(3);t.Q6J("firstEntity","member")("firstEntityId",e.member.id)("secondEntity","group")}}function Ix(n,r){if(1&n&&(t.YNc(0,Lx,1,0,"mat-spinner",4),t.YNc(1,kx,1,3,"app-two-entity-attribute-page",20)),2&n){const e=t.oxw(2);t.Q6J("ngIf",e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading)}}function Ox(n,r){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.hij(" ",t.lcZ(1,1,"USER_DETAIL.ACCOUNTS.MEMBER_RESOURCE_ATT")," ")}function Mx(n,r){1&n&&t._UZ(0,"mat-spinner")}function Nx(n,r){if(1&n&&t._UZ(0,"app-two-entity-attribute-page",21),2&n){const e=t.oxw(3);t.Q6J("firstEntity","member")("firstEntityId",e.member.id)("secondEntity","resource")}}function Px(n,r){if(1&n&&(t.YNc(0,Mx,1,0,"mat-spinner",4),t.YNc(1,Nx,1,3,"app-two-entity-attribute-page",20)),2&n){const e=t.oxw(2);t.Q6J("ngIf",e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading)}}function Fx(n,r){1&n&&(t.TgZ(0,"mat-tab-group")(1,"mat-tab"),t.YNc(2,vx,2,3,"ng-template",8),t.YNc(3,Cx,2,2,"ng-template",9),t.qZA(),t.TgZ(4,"mat-tab"),t.YNc(5,wx,2,3,"ng-template",8),t.YNc(6,Ex,2,2,"ng-template",9),t.qZA(),t.TgZ(7,"mat-tab"),t.YNc(8,Dx,2,3,"ng-template",8),t.YNc(9,Ix,2,2,"ng-template",9),t.qZA(),t.TgZ(10,"mat-tab"),t.YNc(11,Ox,2,3,"ng-template",8),t.YNc(12,Px,2,2,"ng-template",9),t.qZA()())}function Rx(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",22),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"USER_DETAIL.ACCOUNTS.NO_VOS")))}let Bx=(()=>{class n{constructor(e,i,a,o){this.route=e,this.usersService=i,this.membersService=a,this.groupService=o,this.initLoading=!1,this.loading=!1,this.vos=[],this.selectedVo=null,this.member=null,this.groups=[]}ngOnInit(){this.initLoading=!0,this.route.parent.params.subscribe(e=>{this.userId=Number(e.userId),this.usersService.getVosWhereUserIsMember(this.userId).subscribe(i=>{this.vos=i,this.vos.length&&this.loadMember(this.vos[0]),this.initLoading=!1},()=>this.initLoading=!1)})}loadMember(e){this.loading=!0,this.selectedVo=e,this.membersService.getMemberByUser(this.selectedVo.id,this.userId).subscribe(i=>{this.membersService.getRichMemberWithAttributes(i.id).subscribe(a=>{this.member=a,this.groupService.getMemberRichGroupsWithAttributesByNames(this.member.id,[wc.r.MEMBER_DEF_GROUP_EXPIRATION,wc.r.MEMBER_GROUP_STATUS]).subscribe(o=>{this.groups=o,this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(p.gz),t.Y36(H.Fv),t.Y36(H.uq),t.Y36(H.ff))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-perun-web-apps-user-accounts"]],decls:8,vars:7,consts:[[1,"page-title"],["class","ml-auto mr-auto",4,"ngIf"],[1,"d-flex"],["class","w-50",3,"vos","voSelected",4,"ngIf"],[4,"ngIf"],["alert_type","warn",4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"w-50",3,"vos","voSelected"],["matTabLabel",""],["matTabContent",""],[1,"mt-4","mb-4"],[1,"subtitle","mr-2"],[1,"member-link",3,"perunWebAppsMiddleClickRouterLink","routerLink","auxclick"],[1,"mat-elevation-z3","membership-card"],[3,"member","voId"],[1,"mt-4","subtitle"],[3,"groups","memberId","memberGroupStatus","displayedColumns","refreshTable",4,"ngIf"],[3,"groups","memberId","memberGroupStatus","displayedColumns","refreshTable"],[3,"entity","entityId",4,"ngIf"],[3,"entity","entityId"],[3,"firstEntity","firstEntityId","secondEntity",4,"ngIf"],[3,"firstEntity","firstEntityId","secondEntity"],["alert_type","warn"]],template:function(e,i){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.YNc(3,gx,1,0,"mat-spinner",1),t.TgZ(4,"div",2),t.YNc(5,_x,1,1,"perun-web-apps-vo-search-select",3),t.qZA(),t.YNc(6,Fx,13,0,"mat-tab-group",4),t.YNc(7,Rx,3,3,"perun-web-apps-alert",5)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,5,"USER_DETAIL.ACCOUNTS.TITLE")),t.xp6(2),t.Q6J("ngIf",i.initLoading),t.xp6(2),t.Q6J("ngIf",!(i.initLoading||0===i.vos.length)),t.xp6(1),t.Q6J("ngIf",!(i.initLoading||0===i.vos.length)),t.xp6(1),t.Q6J("ngIf",!i.initLoading&&0===i.vos.length))},dependencies:[m.O5,p.yS,jt.SP,jt.uD,jt.uX,jt.Vc,tt.Ou,ux.a8,K.w,hx.W,dx.M,bc.Y,Us.Q,px.b,fx.Y,mx.t,u.X$],styles:[".subtitle[_ngcontent-%COMP%]{font-size:1.2rem}.membership-card[_ngcontent-%COMP%]{max-width:400px}"]}),n})(),Sc=(()=>{class n{transform(e){if(e)return e.split(".").pop()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"parseEventName",type:n,pure:!0}),n})();function Zx(n,r){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.hij(" ",t.lcZ(1,1,"DIALOGS.AUDIT_MESSAGE_DETAIL.OBJECTS")," ")}function Vx(n,r){if(1&n&&t._UZ(0,"pre",9),2&n){const e=t.oxw();t.Q6J("innerHTML",e.syntaxHighlight(e.eventData),t.oJD)}}function Gx(n,r){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.hij(" ",t.lcZ(1,1,"DIALOGS.AUDIT_MESSAGE_DETAIL.MESSAGE")," ")}function Ux(n,r){if(1&n&&(t.TgZ(0,"div",10),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Oqu(e.message)}}let zx=(()=>{class n{constructor(e,i,a){this.dialogRef=e,this.data=i,this.clipboard=a,this.tabIndex=0,this.eventData={}}ngOnInit(){const e=this.data.message.event;this.actor=this.data.message.actor,this.createdAt=this.data.message.createdAt,e.message&&(this.message=e.message,delete e.message),e.name&&(this.title=e.name,delete e.name),this.eventData=e}tabChanged(e){this.tabIndex=e.index}copyObjects(){this.clipboard.copy(JSON.stringify(this.eventData,null,2))}copyMessage(){this.clipboard.copy(this.message)}syntaxHighlight(e){return"string"!=typeof e&&(e=JSON.stringify(e,void 0,2)),(e=e.replace(/&/g,"&").replace(//g,">")).replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)/g,function(i){let a="number";return i.startsWith('"')?a=i.endsWith(":")?"key":"string":/true|false/.test(i)?a="boolean":i.includes("null")&&(a="null"),''+i+""})}onClose(){this.dialogRef.close()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(M.WI),t.Y36(Ln.TU))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-audit-message-detail-dialog"]],decls:26,vars:19,consts:[[1,"admin-theme"],["mat-dialog-title",""],["mat-dialog-content",""],[3,"selectedTabChange"],["matTabLabel",""],["matTabContent",""],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-button","",3,"click"],[3,"innerHTML"],["data-cy","audit-message-text"]],template:function(e,i){if(1&e&&(t.TgZ(0,"div",0)(1,"h1",1),t._uU(2),t.ALo(3,"translate"),t.ALo(4,"parseEventName"),t.qZA(),t.TgZ(5,"div",2)(6,"div"),t._uU(7),t.ALo(8,"translate"),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"mat-tab-group",3),t.NdJ("selectedTabChange",function(o){return i.tabChanged(o)}),t.TgZ(11,"mat-tab"),t.YNc(12,Zx,2,3,"ng-template",4),t.YNc(13,Vx,1,1,"ng-template",5),t.qZA(),t.TgZ(14,"mat-tab"),t.YNc(15,Gx,2,3,"ng-template",4),t.YNc(16,Ux,2,1,"ng-template",5),t.qZA()()(),t.TgZ(17,"div",6)(18,"button",7),t.NdJ("click",function(){return i.onClose()}),t._uU(19),t.ALo(20,"translate"),t.qZA(),t.TgZ(21,"button",8),t.NdJ("click",function(){return 0===i.tabIndex?i.copyObjects():i.copyMessage()}),t._uU(22),t.ALo(23,"translate"),t.TgZ(24,"mat-icon"),t._uU(25,"content_copy"),t.qZA()()()()),2&e){let a;t.xp6(2),t.hij(" ",t.lcZ(3,7,null!==(a=t.lcZ(4,9,i.title))&&void 0!==a?a:"DIALOGS.AUDIT_MESSAGE_DETAIL.TITLE")," "),t.xp6(5),t.HOy(" ",t.lcZ(8,11,"DIALOGS.AUDIT_MESSAGE_DETAIL.ACTOR"),": ",i.actor,", ",t.lcZ(9,13,"DIALOGS.AUDIT_MESSAGE_DETAIL.CREATED_AT"),": ",i.createdAt," "),t.xp6(12),t.hij(" ",t.lcZ(20,15,"DIALOGS.AUDIT_MESSAGE_DETAIL.CLOSE")," "),t.xp6(3),t.hij(" ",t.lcZ(23,17,"DIALOGS.AUDIT_MESSAGE_DETAIL.COPY")," ")}},dependencies:[l.Hw,G.lW,jt.SP,jt.uD,jt.uX,jt.Vc,M.uh,M.xY,M.H8,u.X$,Sc],styles:[".key{color:brown}.string{color:green}.number{color:#ff8c00}.boolean{color:#00f}.null{color:#f0f}\n"],encapsulation:2}),n})();var Hx=s(98739),Yx=s(56451),Wx=s(62383);function Xx(n,r){1&n&&(t.TgZ(0,"div",16),t._UZ(1,"mat-spinner",17),t.qZA())}function $x(n,r){1&n&&(t.TgZ(0,"th",18),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"AUDIT_MESSAGES_LIST.ID")," "))}function Qx(n,r){if(1&n&&(t.TgZ(0,"td",19),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.hij(" ",e.id," ")}}function jx(n,r){1&n&&(t.TgZ(0,"th",18),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"AUDIT_MESSAGES_LIST.TIMESTAMP")," "))}function Jx(n,r){if(1&n&&(t.TgZ(0,"td",19),t._uU(1),t.ALo(2,"parseDate"),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,e.createdAt,!0)," ")}}function Kx(n,r){1&n&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"AUDIT_MESSAGES_LIST.EVENT_NAME")))}function qx(n,r){if(1&n&&(t.TgZ(0,"td",19),t._uU(1),t.ALo(2,"parseEventName"),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,e.event.name)," ")}}function ty(n,r){1&n&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"AUDIT_MESSAGES_LIST.ACTOR")))}function ey(n,r){if(1&n&&(t.TgZ(0,"td",19),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.hij(" ",e.actor," ")}}function ny(n,r){1&n&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"AUDIT_MESSAGES_LIST.MESSAGE")))}function iy(n,r){if(1&n&&(t.TgZ(0,"td",19),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.hij(" ",e.event.message," ")}}function ry(n,r){1&n&&t._UZ(0,"th",20)}function ay(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"td",19)(1,"button",21),t.NdJ("click",function(){const o=t.CHM(e).$implicit,v=t.oxw();return t.KtG(v.viewDetails(o))}),t._uU(2),t.ALo(3,"translate"),t.qZA()()}2&n&&(t.xp6(2),t.hij(" ",t.lcZ(3,1,"AUDIT_MESSAGES_LIST.VIEW_DETAIL")," "))}function sy(n,r){1&n&&t._UZ(0,"tr",22)}function oy(n,r){1&n&&t._UZ(0,"tr",23)}function ly(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_AUDIT_MESSAGES"),"\n"))}let cy=(()=>{class n{constructor(e,i,a){this.dialog=e,this.dynamicPaginatingService=i,this.tableConfigService=a,this.displayedColumns=["id","timestamp","name","actor","event.message","detail"],this.pageSizeOptions=fe.f7}static getExportDataForColumn(e,i){switch(i){case"id":return e.id.toString();case"timestamp":return(0,m.p6)(e.createdAt,"d.M.y H.mm.ss","en");case"name":return e.event.name.split(".").pop();case"actor":return e.actor;case"event.message":return e.event.message;default:return""}}ngAfterViewInit(){this.sort.sortChange.subscribe(()=>this.child.paginator.pageIndex=0),(0,Yx.T)(this.sort.sortChange,this.child.paginator.page).pipe((0,ae.b)(()=>this.loadAuditMessagesPage())).subscribe()}ngOnInit(){this.dataSource=new Z.Hy(this.dynamicPaginatingService,null),this.dataSource.loadAuditMessages(this.tableConfigService.getTablePageSize(this.tableId),0,"DESCENDING",this.selectedEvents)}ngOnChanges(){this.dataSource&&(this.child.paginator.pageIndex=0,this.loadAuditMessagesPage())}loadAuditMessagesPage(){this.dataSource.loadAuditMessages(this.child.paginator.pageSize,this.child.paginator.pageIndex,"asc"===this.sort.direction?"ASCENDING":"DESCENDING",this.selectedEvents)}viewDetails(e){const i=(0,fe.kZ)(),a=JSON.parse(JSON.stringify(e));i.minWidth="700px",i.maxWidth="1000px",i.data={message:a},this.dialog.open(zx,i)}exportDisplayedData(e){(0,fe.O6)((0,fe.Xn)(this.dataSource.getData(),this.displayedColumns.filter(i=>"detail"!==i),n.getExportDataForColumn),e)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.uw),t.Y36(Z.ly),t.Y36(Sn.dB))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-audit-messages-list"]],viewQuery:function(e,i){if(1&e&&(t.Gf(fe.l9,7),t.Gf(sn.YE,5)),2&e){let a;t.iGM(a=t.CRH())&&(i.child=a.first),t.iGM(a=t.CRH())&&(i.sort=a.first)}},inputs:{tableId:"tableId",refresh:"refresh",displayedColumns:"displayedColumns",selectedEvents:"selectedEvents"},features:[t._Bn([{provide:Hx.ye,useClass:Z.Be}]),t.TTD],decls:28,vars:16,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","tableId","allowExportAll","exportDisplayedData"],["class","spinner-container",4,"ngIf"],["mat-table","","matSort","","matSortActive","id","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","timestamp"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","actor"],["matColumnDef","event.message"],["matColumnDef","detail"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],[1,"spinner-container"],[1,"ml-auto","mr-auto"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-header-cell",""],["data-cy","audit-message-detail-button","color","accent","mat-flat-button","",3,"click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t.ALo(1,"async"),t.TgZ(2,"perun-web-apps-table-wrapper",1),t.NdJ("exportDisplayedData",function(o){return i.exportDisplayedData(o)}),t.YNc(3,Xx,2,0,"div",2),t.ALo(4,"async"),t.TgZ(5,"table",3),t.ynx(6,4),t.YNc(7,$x,3,3,"th",5),t.YNc(8,Qx,2,1,"td",6),t.BQk(),t.ynx(9,7),t.YNc(10,jx,3,3,"th",5),t.YNc(11,Jx,3,4,"td",6),t.BQk(),t.ynx(12,8),t.YNc(13,Kx,3,3,"th",9),t.YNc(14,qx,3,3,"td",6),t.BQk(),t.ynx(15,10),t.YNc(16,ty,3,3,"th",9),t.YNc(17,ey,2,1,"td",6),t.BQk(),t.ynx(18,11),t.YNc(19,ny,3,3,"th",9),t.YNc(20,iy,2,1,"td",6),t.BQk(),t.ynx(21,12),t.YNc(22,ry,1,0,"th",9),t.YNc(23,ay,4,3,"td",6),t.BQk(),t.YNc(24,sy,1,0,"tr",13),t.YNc(25,oy,1,0,"tr",14),t.qZA()()(),t.YNc(26,ly,3,3,"perun-web-apps-alert",15),t.ALo(27,"async")),2&e&&(t.Q6J("hidden",0===i.dataSource.allObjectCount&&!1===t.lcZ(1,10,i.dataSource.loading$)),t.xp6(2),t.Q6J("dataLength",i.dataSource.allObjectCount)("pageSizeOptions",i.pageSizeOptions)("tableId",i.tableId)("allowExportAll",!1),t.xp6(1),t.Q6J("ngIf",t.lcZ(4,12,i.dataSource.loading$)),t.xp6(2),t.Q6J("dataSource",i.dataSource),t.xp6(19),t.Q6J("matHeaderRowDef",i.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",i.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===i.dataSource.allObjectCount&&!1===t.lcZ(27,14,i.dataSource.loading$)))},dependencies:[m.O5,G.lW,sn.YE,sn.nU,R.BZ,R.fO,R.as,R.w1,R.Dz,R.nj,R.ge,R.ev,R.XQ,R.Gk,tt.Ou,K.w,z.l,m.Ov,u.X$,Wx.M,Sc]}),n})();var uy=s(89593);let hy=(()=>{class n{constructor(){this.auditLogsSelected=new t.vpe,this.selectClosed=new t.vpe,this.searchFunction=e=>e,this.mainTextFunction=e=>e,this.secondaryTextFunction=()=>""}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["perun-web-apps-audit-log-search-select"]],inputs:{auditLogs:"auditLogs"},outputs:{auditLogsSelected:"auditLogsSelected",selectClosed:"selectClosed"},decls:3,vars:10,consts:[[1,"w-450"],[3,"entities","searchFunction","shouldRefresh","mainTextFunction","secondaryTextFunction","multiple","disableAutoSelect","selectPlaceholder","entitySelected","selectClosed"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"perun-web-apps-entity-search-select",1),t.NdJ("entitySelected",function(o){return i.auditLogsSelected.emit(o)})("selectClosed",function(o){return i.selectClosed.emit(o)}),t.ALo(2,"translate"),t.qZA()()),2&e&&(t.xp6(1),t.Q6J("entities",i.auditLogs)("searchFunction",i.searchFunction)("shouldRefresh",!0)("mainTextFunction",i.mainTextFunction)("secondaryTextFunction",i.secondaryTextFunction)("multiple",!0)("disableAutoSelect",!0)("selectPlaceholder",t.lcZ(2,8,"ADMIN.AUDIT_LOG.SEARCH_DESCRIPTION")))},dependencies:[uy.i,u.X$],styles:[".w-450[_ngcontent-%COMP%]{width:450px}"]}),n})(),dy=(()=>{class n{constructor(e){this.auditMessagesManagerService=e,this.tableId=Sn.yW,this.refresh=!1,this.selectedEvents=[],this.eventOptions=[]}ngOnInit(){this.auditMessagesManagerService.findAllPossibleEvents().subscribe(e=>{this.eventOptions=e.sort()})}refreshTable(){this.refresh=!this.refresh}toggleEvent(e){this.selectedEvents.splice(0,this.selectedEvents.length,...e)}refreshOnClosed(){this.selectedEvents=[...this.selectedEvents]}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(H.jw))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-admin-audit-log"]],decls:8,vars:7,consts:[[1,"page-subtitle"],[1,"align-elements"],[1,"d-flex","align-items-center"],[3,"refresh"],[3,"auditLogs","auditLogsSelected","selectClosed"],[3,"refresh","tableId","selectedEvents"]],template:function(e,i){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div",1)(4,"div",2)(5,"perun-web-apps-refresh-button",3),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.TgZ(6,"perun-web-apps-audit-log-search-select",4),t.NdJ("auditLogsSelected",function(o){return i.toggleEvent(o)})("selectClosed",function(){return i.refreshOnClosed()}),t.qZA()(),t._UZ(7,"app-audit-messages-list",5),t.qZA()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,5,"ADMIN.AUDIT_LOG.TITLE")),t.xp6(5),t.Q6J("auditLogs",i.eventOptions),t.xp6(1),t.Q6J("refresh",i.refresh)("tableId",i.tableId)("selectedEvents",i.selectedEvents))},dependencies:[cy,Ue.t,hy,u.X$]}),n})();var py=s(44850);let fy=(()=>{class n{constructor(e,i){this.dialogRef=e,this.data=i}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.dialogRef.close(!0)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(M.WI))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-perun-web-apps-edit-enforce-consents-dialog"]],decls:26,vars:27,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"mt-2","mb-2"],["alert_type","warn"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"click"]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"div",1)(6,"p"),t._uU(7),t.ALo(8,"translate"),t.ALo(9,"translate"),t.qZA(),t._UZ(10,"mat-divider"),t.TgZ(11,"p",2),t._uU(12),t.qZA(),t._UZ(13,"mat-divider"),t.TgZ(14,"perun-web-apps-alert",3),t._uU(15),t.ALo(16,"translate"),t.ALo(17,"translate"),t.qZA()(),t.TgZ(18,"div",4)(19,"button",5),t.NdJ("click",function(){return i.onCancel()}),t._uU(20),t.ALo(21,"translate"),t.qZA(),t.TgZ(22,"button",6),t.NdJ("click",function(){return i.onSubmit()}),t._uU(23),t.ALo(24,"translate"),t.ALo(25,"translate"),t.qZA()()()),2&e&&(t.Tol(i.data.theme),t.xp6(2),t.hij(" ",i.data.enforceConsents?t.lcZ(3,9,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.DISABLE_TITLE"):t.lcZ(4,11,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.ENFORCE_TITLE")," "),t.xp6(5),t.hij(" ",i.data.enforceConsents?t.lcZ(8,13,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.DISABLE_DESCRIPTION"):t.lcZ(9,15,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.ENFORCE_DESCRIPTION")," "),t.xp6(5),t.Oqu(i.data.consentHubName),t.xp6(3),t.hij(" ",i.data.enforceConsents?t.lcZ(16,17,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.DISABLE_BOLD_DESCRIPTION"):t.lcZ(17,19,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.ENFORCE_BOLD_DESCRIPTION")," "),t.xp6(5),t.hij(" ",t.lcZ(21,21,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.CANCEL_BUTTON")," "),t.xp6(3),t.hij(" ",i.data.enforceConsents?t.lcZ(24,23,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.DISABLE_BUTTON"):t.lcZ(25,25,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.ENFORCE_BUTTON")," "))},dependencies:[G.lW,M.uh,M.xY,M.H8,py.d,K.w,u.X$]}),n})();function my(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"th",17)(1,"mat-checkbox",18),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(a?o.masterToggle():null)}),t.ALo(2,"translate"),t.ALo(3,"masterCheckboxLabel"),t.qZA()()}if(2&n){const e=t.oxw().ngIf,i=t.oxw();t.xp6(1),t.Q6J("aria-label",t.lcZ(2,3,t.lcZ(3,5,e.all)))("checked",i.selection.hasValue()&&e.all)("indeterminate",i.selection.hasValue()&&!e.all)}}const gy=function(n){return{name:n}};function _y(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"td",19)(1,"mat-checkbox",20),t.NdJ("change",function(a){const v=t.CHM(e).$implicit,T=t.oxw(2);return t.KtG(a?T.selection.toggle(v):null)})("click",function(a){return a.stopPropagation()}),t.ALo(2,"translate"),t.ALo(3,"checkboxLabel"),t.qZA()()}if(2&n){const e=r.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("aria-label",t.xi3(2,2,t.lcZ(3,5,i.selection.isSelected(e)),t.VKq(7,gy,e.name)))("checked",i.selection.isSelected(e))}}function vy(n,r){1&n&&(t.ynx(0,14),t.YNc(1,my,4,7,"th",15),t.YNc(2,_y,4,9,"td",16),t.BQk())}function xy(n,r){1&n&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.CONSENT_HUBS_LIST.ID")," "))}function yy(n,r){if(1&n&&(t.TgZ(0,"td",22),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(e.id)}}function by(n,r){1&n&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.CONSENT_HUBS_LIST.NAME")," "))}function Ty(n,r){if(1&n&&(t.TgZ(0,"td",23),t.ALo(1,"multiWordDataCy"),t._uU(2),t.qZA()),2&n){const e=r.$implicit;t.Q2q("data-cy","",t.lcZ(1,2,e.name),"-name-td"),t.xp6(2),t.hij(" ",e.name," ")}}function Cy(n,r){1&n&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.CONSENT_HUBS_LIST.ENFORCE_CONSENTS")," "))}function wy(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"td",23)(1,"mat-slide-toggle",24),t.NdJ("change",function(a){const v=t.CHM(e).$implicit,T=t.oxw();return t.KtG(T.changeEnforceFlag(v,a))}),t.qZA()()}if(2&n){const e=r.$implicit;t.xp6(1),t.Q6J("checked",e.enforceConsents)}}function Ay(n,r){1&n&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.CONSENT_HUBS_LIST.FACILITIES")," "))}function Sy(n,r){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.TgZ(2,"span",26),t._uU(3),t.qZA(),t._UZ(4,"br"),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.hij(" ",e.name," "),t.xp6(2),t.hij(" #",e.id,"")}}function Ey(n,r){if(1&n&&(t.TgZ(0,"td",23),t.YNc(1,Sy,5,2,"span",25),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Q6J("ngForOf",e.facilities)}}function Dy(n,r){1&n&&t._UZ(0,"tr",27)}function Ly(n,r){1&n&&t._UZ(0,"tr",28)}function ky(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",29),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.CONSENT_HUBS_LIST.NO_CONSENT_HUBS"),"\n"))}function Iy(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",29),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.CONSENT_HUBS_LIST.NO_FILTER_RESULTS"),"\n"))}const Oy=function(n){return{all:n}};let My=(()=>{class n{constructor(e,i,a,o,v){this.tableCheckbox=e,this.dialog=i,this.notificator=a,this.translate=o,this.consentsManager=v,this.filterValue="",this.displayedColumns=["select","id","name","enforceConsents","facilities"],this.selection=new B.Ov(!0,[]),this.exporting=!1,this.pageSizeOptions=fe.f7}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,i){switch(i){case"id":return e.id.toString();case"name":return e.name;case"enforceConsents":return e.enforceConsents?"true":"false";case"facilities":{let a="";return e.facilities.forEach(o=>a+=o.name+" #"+String(o.id)+";"),a.slice(0,-1)}default:return""}}ngOnChanges(){this.dataSource=new R.by(this.consentHubs),this.setDataSource()}exportAllData(e){(0,fe.O6)((0,fe.Xn)(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}exportDisplayedData(e){const i=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,a=i+this.dataSource.paginator.pageSize;(0,fe.O6)((0,fe.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(i,a),this.displayedColumns,n.getDataForColumn),e)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,i)=>(0,fe.Sd)(e,i,this.displayedColumns,n.getDataForColumn),this.dataSource.sortData=(e,i)=>(0,fe.pR)(e,i,n.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}changeEnforceFlag(e,i){i.source.checked=e.enforceConsents;const a=(0,fe.kZ)();a.width="550px",a.data={theme:"admin-theme",enforceConsents:e.enforceConsents,consentHubName:e.name},this.dialog.open(fy,a).afterClosed().subscribe(v=>{v&&(e.enforceConsents=!e.enforceConsents,this.consentsManager.updateConsentHub({consentHub:e}).subscribe(T=>{i.source.checked=T.enforceConsents,e.enforceConsents=T.enforceConsents,this.translate.get("SHARED.COMPONENTS.CONSENT_HUBS_LIST.CHANGE_ENFORCE_CONSENTS_SUCCESS").subscribe(N=>{this.notificator.showSuccess(N)})},()=>e.enforceConsents=!e.enforceConsents))})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Z.UA),t.Y36(M.uw),t.Y36(Z.V6),t.Y36(u.sK),t.Y36(H.WY))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-perun-web-apps-consent-hubs-list"]],viewQuery:function(e,i){if(1&e&&(t.Gf(fe.l9,7),t.Gf(sn.YE,7)),2&e){let a;t.iGM(a=t.CRH())&&(i.child=a.first),t.iGM(a=t.CRH())&&(i.matSort=a.first)}},inputs:{consentHubs:"consentHubs",filterValue:"filterValue",displayedColumns:"displayedColumns",tableId:"tableId",selection:"selection"},features:[t.TTD],decls:21,vars:15,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","enforceConsents"],["matColumnDef","facilities"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],[3,"checked","change"],[4,"ngFor","ngForOf"],[1,"text-muted"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportDisplayedData",function(o){return i.exportDisplayedData(o)})("exportAllData",function(o){return i.exportAllData(o)}),t.TgZ(2,"table",2),t.YNc(3,vy,3,0,"ng-container",3),t.ALo(4,"isAllSelected"),t.ynx(5,4),t.YNc(6,xy,3,3,"th",5),t.YNc(7,yy,2,1,"td",6),t.BQk(),t.ynx(8,7),t.YNc(9,by,3,3,"th",5),t.YNc(10,Ty,3,4,"td",8),t.BQk(),t.ynx(11,9),t.YNc(12,Cy,3,3,"th",5),t.YNc(13,wy,2,1,"td",8),t.BQk(),t.ynx(14,10),t.YNc(15,Ay,3,3,"th",5),t.YNc(16,Ey,2,1,"td",8),t.BQk(),t.YNc(17,Dy,1,0,"tr",11),t.YNc(18,Ly,1,0,"tr",12),t.qZA()()(),t.YNc(19,ky,3,3,"perun-web-apps-alert",13),t.YNc(20,Iy,3,3,"perun-web-apps-alert",13)),2&e&&(t.Q6J("hidden",0===i.consentHubs.length||0===i.dataSource.filteredData.length),t.xp6(1),t.Q6J("tableId",i.tableId)("dataLength",i.dataSource.filteredData.length)("pageSizeOptions",i.pageSizeOptions),t.xp6(1),t.Q6J("dataSource",i.dataSource),t.xp6(1),t.Q6J("ngIf",t.VKq(13,Oy,t.xi3(4,10,i.dataSource,i.selection.selected.length))),t.xp6(14),t.Q6J("matHeaderRowDef",i.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",i.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===i.consentHubs.length),t.xp6(1),t.Q6J("ngIf",0===i.dataSource.filteredData.length&&0!==i.consentHubs.length))},dependencies:[m.sg,m.O5,sn.YE,sn.nU,R.BZ,R.fO,R.as,R.w1,R.Dz,R.nj,R.ge,R.ev,R.XQ,R.Gk,Nn.oG,Tt.Rr,K.w,z.l,u.X$,$e.R,X.I,lt.G,A.r]}),n})();function Ny(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",8),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.CONSENT_HUBS.GLOBAL_DISABLED")," "))}function Py(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.evaluateConsents())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",!e.globalForceConsents||0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"ADMIN.CONSENT_HUBS.EVALUATE_CONSENTS")," ")}}function Fy(n,r){1&n&&t._UZ(0,"mat-spinner",10)}function Ry(n,r){if(1&n&&t._UZ(0,"app-perun-web-apps-consent-hubs-list",11),2&n){const e=t.oxw();t.Q6J("consentHubs",e.consentHubs)("selection",e.selection)("filterValue",e.filterValue)("tableId",e.tableId)}}let By=(()=>{class n{constructor(e,i,a,o,v,T){this.consentsManager=e,this.authResolver=i,this.notificator=a,this.translate=o,this.store=v,this.dialog=T,this.loading=!1,this.tableId=Sn.HE,this.selection=new B.Ov(!0,[]),this.filterValue="",this.consentHubs=[]}ngOnInit(){this.globalForceConsents=this.store.getProperty("enforce_consents"),this.refreshTable()}applyFilter(e){this.filterValue=e}refreshTable(){this.loading=!0,this.consentsManager.getAllConsentHubs().subscribe(e=>{this.consentHubs=e,this.loading=!1})}evaluateConsents(){const e=(0,fe.kZ)();e.width="500px",e.data={title:this.translate.instant("ADMIN.CONSENT_HUBS.CONFIRM_DIALOG_TITLE"),theme:"admin-theme",description:this.translate.instant("ADMIN.CONSENT_HUBS.CONFIRM_DIALOG_DESCRIPTION"),items:this.selection.selected.map(a=>a.name),type:"confirmation",showAsk:!1},this.dialog.open(ma.Ts,e).afterClosed().subscribe(a=>{a&&this.evaluateConsentsForConsentHubs()})}evaluateConsentsForConsentHubs(){this.loading=!0;const e=this.selection.selected.map(i=>i.id);this.consentsManager.evaluateConsentsForConsentHubs(e).subscribe({next:()=>{this.notificator.showSuccess(this.translate.instant("ADMIN.CONSENT_HUBS.EVALUATION_FINISH")),this.selection.clear(),this.loading=!1},error:()=>this.loading=!1})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(H.WY),t.Y36(Z.x4),t.Y36(Z.V6),t.Y36(Z.Te),t.Y36(Z.d6),t.Y36(M.uw))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-perun-web-apps-admin-consent-hubs"]],decls:12,vars:12,consts:[[1,"page-subtitle"],["alert_type","warn",4,"ngIf"],[3,"refresh"],[3,"matTooltipDisabled","matTooltip"],["color","accent","class","action-button mr-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"consentHubs","selection","filterValue","tableId",4,"ngIf"],["alert_type","warn"],["color","accent","mat-flat-button","",1,"action-button","mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"consentHubs","selection","filterValue","tableId"]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Ny,3,3,"perun-web-apps-alert",1),t.TgZ(5,"perun-web-apps-refresh-button",2),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.TgZ(6,"span",3),t.ALo(7,"translate"),t.YNc(8,Py,3,4,"button",4),t.qZA(),t.TgZ(9,"perun-web-apps-immediate-filter",5),t.NdJ("filter",function(o){return i.applyFilter(o)}),t.qZA(),t.YNc(10,Fy,1,0,"mat-spinner",6),t.YNc(11,Ry,1,4,"app-perun-web-apps-consent-hubs-list",7),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,8,"ADMIN.CONSENT_HUBS.TITLE")),t.xp6(2),t.Q6J("ngIf",!i.globalForceConsents),t.xp6(2),t.s9C("matTooltip",t.lcZ(7,10,"ADMIN.CONSENT_HUBS.TOOLTIP")),t.Q6J("matTooltipDisabled",i.globalForceConsents),t.xp6(2),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("placeholder","ADMIN.CONSENT_HUBS.SEARCH"),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,G.lW,tt.Ou,ln.gM,My,K.w,Ue.t,Vn.L,u.X$]}),n})();var Zy=s(57788),zs=s(71992),Vy=s(51403);const Gy=[{path:"",component:C,canActivateChild:[zs.a],children:[{path:"",component:I,data:{animation:"AdminOverviewPage"}},{path:"attributes",component:V,data:{animation:"AdminAttributesPage"}},{path:"users",component:rv.t,data:{animation:"AdminUsersPage"}},{path:"owners",component:ax,data:{animation:"AdminOwnersPage"}},{path:"services",component:Rv.F,data:{animation:"AdminServicesPage"}},{path:"audit_log",component:dy,data:{animation:"AdminAuditLogPage"}},{path:"visualizer",component:it,children:[{path:"",component:Mt,data:{animation:"VisualizerOverviewPage"}},{path:"attrDependencies",component:xt,data:{animation:"VisualizerAttrModulesPage"}},{path:"userDestinationRelationship",component:Yn,data:{animation:"UserDestinationRelationshipPage"}},{path:"userDestinationRelationship/graph",component:iv,data:{animation:"UserDestinationGraphPage"}}]},{path:"ext_sources",component:wv,data:{animation:"AdminExtSourcesPage"}},{path:"consent_hubs",component:By,data:{animation:"AdminConsentHubsPage"}},{path:"searcher",component:Zy.g,data:{animation:"AdminSearcherPage"}}]},{path:"users/:userId",component:mv,canActivateChild:[zs.a],children:[{path:"",component:gv.Z,data:{animation:"UserOverviewPage"}},{path:"accounts",component:Bx,data:{animation:"UserAccountsPage"}},{path:"attributes",component:xv.u,data:{animation:"UserAttributesPage"}},{path:"organizations",component:_v.j,data:{animation:"UserOrganizationsPage",showPrincipal:!1}},{path:"groups",component:vv.u,data:{animation:"UserGroupsPage",showPrincipal:!1}},{path:"identities",component:Fv,data:{animation:"UserIdentitiesPage"}},{path:"facilities",component:cx,data:{animation:"UserFacilitiesPage"}},{path:"resources",component:Uv,data:{animation:"UserRoles"}},{path:"identities/:identityId",component:Qv,data:{animation:"UserIdentityDetailPage"}},{path:"roles",component:Av.t,data:{animation:"UserRolesPage"}},{path:"service-identities",component:Sv.R,data:{animation:"UserServiceIdentities"}},{path:"associated-users",component:I0.d,data:{animation:"AssociatedUsersPage"}},{path:"bans",component:Vy.Q,data:{animation:"UserBansPage"}}]},{path:"services/:serviceId",component:a0,canActivateChild:[zs.a],children:[{path:"",component:s0,data:{animation:"ServiceOverviewPage"}},{path:"required-attributes",component:k0,data:{animation:"ServiceRequiredAttributesPage"}},{path:"destinations",component:V0,data:{animation:"ServiceDestinationsPage"}}]}];let Uy=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[p.Bz.forChild(Gy),p.Bz]}),n})();var zy=s(14264),Hy=s(63189),Yy=s(38338);let Wy=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[Zp,W_,m.ez,Uy,zy.m,Hy.r,Bi.ez,Nt.d4,Yy.UsersModule]}),n})()},70242:(w,D,s)=>{"use strict";s.d(D,{q:()=>ie});var c=s(96308),x=s(95017),_=s(30671),m=s(9244),p=s(81591),t=s(94650),d=s(36895),l=s(97392),h=s(56709),f=s(10266),u=s(98380),g=s(18750),C=s(89383),L=s(64597),I=s(9185),B=s(8231),M=s(14849);function R(Ot,te){if(1&Ot){const jt=t.EpF();t.TgZ(0,"th",22)(1,"mat-checkbox",23),t.NdJ("change",function(At){t.CHM(jt);const Ht=t.oxw(2);return t.KtG(At?Ht.masterToggle():null)}),t.ALo(2,"translate"),t.ALo(3,"masterCheckboxLabel"),t.qZA()()}if(2&Ot){const jt=t.oxw().ngIf,se=t.oxw();t.xp6(1),t.Q6J("aria-label",t.lcZ(2,3,t.lcZ(3,5,jt.all)))("checked",se.selection.hasValue()&&jt.all)("indeterminate",se.selection.hasValue()&&!jt.all)}}const Z=function(Ot){return{name:Ot}};function H(Ot,te){if(1&Ot){const jt=t.EpF();t.TgZ(0,"td",24)(1,"mat-checkbox",25),t.NdJ("change",function(At){const Zt=t.CHM(jt).$implicit,Kt=t.oxw(2);return t.KtG(At?Kt.selection.toggle(Zt):null)})("click",function(At){return At.stopPropagation()}),t.ALo(2,"translate"),t.ALo(3,"checkboxLabel"),t.qZA()()}if(2&Ot){const jt=te.$implicit,se=t.oxw(2);t.xp6(1),t.Q6J("aria-label",t.xi3(2,2,t.lcZ(3,5,se.selection.isSelected(jt)),t.VKq(7,Z,jt.destination)))("checked",se.selection.isSelected(jt))}}function G(Ot,te){1&Ot&&(t.ynx(0,19),t.YNc(1,R,4,7,"th",20),t.YNc(2,H,4,9,"td",21),t.BQk())}function tt(Ot,te){1&Ot&&(t.TgZ(0,"th",26),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Ot&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.DESTINATION_ID")," "))}function K(Ot,te){if(1&Ot&&(t.TgZ(0,"td",27),t._uU(1),t.qZA()),2&Ot){const jt=te.$implicit;t.xp6(1),t.hij(" ",jt.id," ")}}function st(Ot,te){1&Ot&&(t.TgZ(0,"th",26),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Ot&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.SERVICE")," "))}function j(Ot,te){if(1&Ot&&(t.TgZ(0,"td",28),t._uU(1),t.qZA()),2&Ot){const jt=te.$implicit;t.xp6(1),t.Oqu(jt.service.name)}}function W(Ot,te){1&Ot&&t._UZ(0,"th",29)}function et(Ot,te){1&Ot&&(t.TgZ(0,"mat-icon",31),t.ALo(1,"translate"),t._uU(2," warning "),t.qZA()),2&Ot&&t.s9C("matTooltip",t.lcZ(1,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.WARN"))}function at(Ot,te){if(1&Ot&&(t.TgZ(0,"td",28),t.YNc(1,et,3,3,"mat-icon",30),t.qZA()),2&Ot){const jt=te.$implicit,se=t.oxw();t.xp6(1),t.Q6J("ngIf",!se.services.has(jt.service.id))}}function Y(Ot,te){1&Ot&&(t.TgZ(0,"th",26),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Ot&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.FACILITY")," "))}function nt(Ot,te){if(1&Ot&&(t.TgZ(0,"td",28),t._uU(1),t.qZA()),2&Ot){const jt=te.$implicit;t.xp6(1),t.Oqu(jt.facility.name)}}function rt(Ot,te){1&Ot&&(t.TgZ(0,"th",26),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Ot&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.DESTINATION")," "))}function q(Ot,te){if(1&Ot&&(t.TgZ(0,"td",28),t.ALo(1,"multiWordDataCy"),t._uU(2),t.qZA()),2&Ot){const jt=te.$implicit;t.uIk("data-cy",t.lcZ(1,2,jt.destination)),t.xp6(2),t.hij(" ",jt.destination," ")}}function F(Ot,te){1&Ot&&(t.TgZ(0,"th",26),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Ot&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.TYPE")," "))}function E(Ot,te){if(1&Ot&&(t.TgZ(0,"td",28),t._uU(1),t.qZA()),2&Ot){const jt=te.$implicit;t.xp6(1),t.Oqu(jt.type.toUpperCase())}}function ut(Ot,te){1&Ot&&t._UZ(0,"th",29)}function ft(Ot,te){1&Ot&&(t.TgZ(0,"mat-icon",33),t.ALo(1,"translate"),t._uU(2," check_circle_outline "),t.qZA()),2&Ot&&t.s9C("matTooltip",t.lcZ(1,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.ALLOWED"))}function Dt(Ot,te){1&Ot&&(t.TgZ(0,"mat-icon",33),t.ALo(1,"translate"),t._uU(2," block "),t.qZA()),2&Ot&&t.s9C("matTooltip",t.lcZ(1,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.BLOCKED"))}function St(Ot,te){if(1&Ot&&(t.TgZ(0,"td",28),t.YNc(1,ft,3,3,"mat-icon",32),t.YNc(2,Dt,3,3,"mat-icon",32),t.qZA()),2&Ot){const jt=te.$implicit;t.xp6(1),t.Q6J("ngIf",!jt.blocked),t.xp6(1),t.Q6J("ngIf",jt.blocked)}}function Qt(Ot,te){1&Ot&&(t.TgZ(0,"th",26),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Ot&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.PROPAGATION_TYPE")," "))}function pe(Ot,te){if(1&Ot&&(t.TgZ(0,"td",28),t._uU(1),t.qZA()),2&Ot){const jt=te.$implicit;t.xp6(1),t.Oqu(jt.propagationType)}}function wt(Ot,te){1&Ot&&t._UZ(0,"tr",34)}function yt(Ot,te){1&Ot&&t._UZ(0,"tr",35)}function Nt(Ot,te){1&Ot&&(t.TgZ(0,"perun-web-apps-alert",36),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Ot&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function zt(Ot,te){1&Ot&&(t.TgZ(0,"perun-web-apps-alert",36),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Ot&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.NO_DESTINATIONS"),"\n"))}const de=function(Ot){return{all:Ot}};let ie=(()=>{class Ot{constructor(jt,se){this.authResolver=jt,this.tableCheckbox=se,this.destinations=[],this.selection=new x.Ov(!0,[]),this.filterValue="",this.pageSizeOptions=m.f7}set matSort(jt){this.sort=jt,this.setDataSource()}static getDataForColumn(jt,se){switch(se){case"destinationId":return jt.id.toString();case"service":return jt.service.name;case"facility":return jt.facility.name;case"destination":return jt.destination;case"type":return jt.type;case"status":return jt.blocked?"blocked":"allowed";case"propagationType":return jt.propagationType;default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(jt=>"destinationId"!==jt)),this.dataSource=new _.by(this.destinations),this.setDataSource(),this.dataSource.filter=this.filterValue.toLowerCase()}exportAllData(jt){(0,m.O6)((0,m.Xn)(this.dataSource.filteredData,this.displayedColumns,Ot.getDataForColumn),jt)}exportDisplayedData(jt){const se=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,At=se+this.dataSource.paginator.pageSize;(0,m.O6)((0,m.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(se,At),this.displayedColumns,Ot.getDataForColumn),jt)}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.filterPredicate=(jt,se)=>(0,m.Sd)(jt,se,this.displayedColumns,Ot.getDataForColumn),this.dataSource.sortData=(jt,se)=>(0,m.pR)(jt,se,Ot.getDataForColumn),this.dataSource.paginator=this.child.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return Ot.\u0275fac=function(jt){return new(jt||Ot)(t.Y36(p.x4),t.Y36(p.UA))},Ot.\u0275cmp=t.Xpm({type:Ot,selectors:[["app-perun-web-apps-destination-list"]],viewQuery:function(jt,se){if(1&jt&&(t.Gf(m.l9,7),t.Gf(c.YE,7)),2&jt){let At;t.iGM(At=t.CRH())&&(se.child=At.first),t.iGM(At=t.CRH())&&(se.matSort=At.first)}},inputs:{destinations:"destinations",selection:"selection",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",services:"services"},features:[t.TTD],decls:33,vars:15,consts:[[1,"card","mt-3",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","destinationId"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","service"],["mat-cell","",4,"matCellDef"],["matColumnDef","warn"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","facility"],["matColumnDef","destination"],["matColumnDef","type"],["matColumnDef","status"],["matColumnDef","propagationType"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-cell",""],["class","warn","matTooltipPosition","above",3,"matTooltip",4,"ngIf"],["matTooltipPosition","above",1,"warn",3,"matTooltip"],["class","align-bottom",3,"matTooltip",4,"ngIf"],[1,"align-bottom",3,"matTooltip"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(jt,se){1&jt&&(t.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportDisplayedData",function(Ht){return se.exportDisplayedData(Ht)})("exportAllData",function(Ht){return se.exportAllData(Ht)}),t.TgZ(2,"table",2),t.YNc(3,G,3,0,"ng-container",3),t.ALo(4,"isAllSelected"),t.ynx(5,4),t.YNc(6,tt,3,3,"th",5),t.YNc(7,K,2,1,"td",6),t.BQk(),t.ynx(8,7),t.YNc(9,st,3,3,"th",5),t.YNc(10,j,2,1,"td",8),t.BQk(),t.ynx(11,9),t.YNc(12,W,1,0,"th",10),t.YNc(13,at,2,1,"td",8),t.BQk(),t.ynx(14,11),t.YNc(15,Y,3,3,"th",5),t.YNc(16,nt,2,1,"td",8),t.BQk(),t.ynx(17,12),t.YNc(18,rt,3,3,"th",5),t.YNc(19,q,3,4,"td",8),t.BQk(),t.ynx(20,13),t.YNc(21,F,3,3,"th",5),t.YNc(22,E,2,1,"td",8),t.BQk(),t.ynx(23,14),t.YNc(24,ut,1,0,"th",10),t.YNc(25,St,3,2,"td",8),t.BQk(),t.ynx(26,15),t.YNc(27,Qt,3,3,"th",5),t.YNc(28,pe,2,1,"td",8),t.BQk(),t.YNc(29,wt,1,0,"tr",16),t.YNc(30,yt,1,0,"tr",17),t.qZA()()(),t.YNc(31,Nt,3,3,"perun-web-apps-alert",18),t.YNc(32,zt,3,3,"perun-web-apps-alert",18)),2&jt&&(t.Q6J("hidden",0===se.dataSource.filteredData.length||0===se.destinations.length),t.xp6(1),t.Q6J("pageSizeOptions",se.pageSizeOptions)("dataLength",se.dataSource.filteredData.length)("tableId",se.tableId),t.xp6(1),t.Q6J("dataSource",se.dataSource),t.xp6(1),t.Q6J("ngIf",t.VKq(13,de,t.xi3(4,10,se.dataSource,se.selection.selected.length))),t.xp6(26),t.Q6J("matHeaderRowDef",se.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",se.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===se.dataSource.filteredData.length&&0!==se.destinations.length),t.xp6(1),t.Q6J("ngIf",0===se.destinations.length))},dependencies:[d.O5,l.Hw,c.YE,c.nU,_.BZ,_.fO,_.as,_.w1,_.Dz,_.nj,_.ge,_.ev,_.XQ,_.Gk,h.oG,f.gM,u.w,g.l,C.X$,L.R,I.I,B.G,M.r],styles:[".warn[_ngcontent-%COMP%]{color:#ebe134}"]}),Ot})()},89466:(w,D,s)=>{"use strict";s.d(D,{u:()=>I});var c=s(61744),x=s(65412),_=s(30671),m=s(81591),p=s(94650),t=s(36895),d=s(4859),l=s(51572),h=s(98380),f=s(70242),u=s(89383);function g(B,M){1&B&&p._UZ(0,"mat-spinner",6)}function C(B,M){if(1&B&&p._UZ(0,"app-perun-web-apps-destination-list",11),2&B){const R=p.oxw(2);p.Q6J("destinations",R.destinations)("displayedColumns",R.displayedColumns)}}function L(B,M){if(1&B&&(p.TgZ(0,"div",7)(1,"perun-web-apps-alert",8),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"p"),p._uU(5),p.ALo(6,"translate"),p.qZA(),p.TgZ(7,"div",9),p._uU(8),p.ALo(9,"translate"),p.qZA(),p.YNc(10,C,1,2,"app-perun-web-apps-destination-list",10),p.qZA()),2&B){const R=p.oxw();p.xp6(2),p.Oqu(p.lcZ(3,4,"DIALOGS.REMOVE_DESTINATIONS.WARNING")),p.xp6(3),p.Oqu(p.lcZ(6,6,"DIALOGS.REMOVE_DESTINATIONS.DESCRIPTION")),p.xp6(3),p.hij(" ",p.lcZ(9,8,"DIALOGS.REMOVE_DESTINATIONS.ASK")," "),p.xp6(2),p.Q6J("ngIf",!R.loading)}}let I=(()=>{class B{constructor(R,Z,H,G,tt){this.dialogRef=R,this.data=Z,this.notificator=H,this.translate=G,this.serviceManager=tt,this.displayedColumns=[],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.destinations=this.data.destinations,this.displayedColumns="admin-theme"===this.theme?["destinationId","facility","destination","type","propagationType"]:["destinationId","service","destination","type","propagationType"],this.dataSource=new _.by(this.data.destinations)}onCancel(){this.dialogRef.close(!1)}deleteDestinations(){this.serviceManager.removeDestinationsByRichDestinations({richDestinations:this.destinations}).subscribe({next:()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.REMOVE_DESTINATIONS.SUCCESS")),this.dialogRef.close(!0)},error:()=>this.loading=!1})}onConfirm(){this.loading=!0,this.deleteDestinations()}}return B.\u0275fac=function(R){return new(R||B)(p.Y36(x.so),p.Y36(x.WI),p.Y36(m.V6),p.Y36(m.Te),p.Y36(c.KK))},B.\u0275cmp=p.Xpm({type:B,selectors:[["app-perun-web-apps-remove-destination-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],["alert_type","warn"],[1,"font-weight-bold"],[3,"destinations","displayedColumns",4,"ngIf"],[3,"destinations","displayedColumns"]],template:function(R,Z){1&R&&(p.TgZ(0,"h1",0),p._uU(1),p.ALo(2,"translate"),p.qZA(),p.TgZ(3,"div"),p.YNc(4,g,1,0,"mat-spinner",1),p.YNc(5,L,11,10,"div",2),p.TgZ(6,"div",3)(7,"button",4),p.NdJ("click",function(){return Z.onCancel()}),p._uU(8),p.ALo(9,"translate"),p.qZA(),p.TgZ(10,"button",5),p.NdJ("click",function(){return Z.onConfirm()}),p._uU(11),p.ALo(12,"translate"),p.qZA()()()),2&R&&(p.xp6(1),p.Oqu(p.lcZ(2,9,"DIALOGS.REMOVE_DESTINATIONS.TITLE")),p.xp6(2),p.Tol(Z.theme),p.xp6(1),p.Q6J("ngIf",Z.loading),p.xp6(1),p.Q6J("ngIf",!Z.loading),p.xp6(3),p.hij(" ",p.lcZ(9,11,"DIALOGS.REMOVE_DESTINATIONS.CANCEL")," "),p.xp6(2),p.Q6J("disabled",Z.loading),p.xp6(1),p.hij(" ",p.lcZ(12,13,"DIALOGS.REMOVE_DESTINATIONS.CONFIRM")," "))},dependencies:[t.O5,d.lW,x.uh,x.xY,x.H8,l.Ou,h.w,f.q,u.X$]}),B})()},23256:(w,D,s)=>{"use strict";s.d(D,{Q:()=>q});var c=s(96308),x=s(95017),_=s(30671),m=s(9244),p=s(81591),t=s(94650),d=s(36895),l=s(56709),h=s(98380),f=s(18750),u=s(89383),g=s(9185),C=s(8231),L=s(14849);function I(F,E){if(1&F){const ut=t.EpF();t.TgZ(0,"th",17)(1,"mat-checkbox",18),t.NdJ("change",function(Dt){t.CHM(ut);const St=t.oxw(2);return t.KtG(Dt?St.masterToggle():null)}),t.ALo(2,"translate"),t.ALo(3,"masterCheckboxLabel"),t.qZA()()}if(2&F){const ut=t.oxw().ngIf,ft=t.oxw();t.xp6(1),t.Q6J("aria-label",t.lcZ(2,3,t.lcZ(3,5,ut.all)))("checked",ft.selection.hasValue()&&ut.all)("indeterminate",ft.selection.hasValue()&&!ut.all)}}const B=function(F){return{name:F}};function M(F,E){if(1&F){const ut=t.EpF();t.TgZ(0,"td",19)(1,"mat-checkbox",20),t.NdJ("change",function(Dt){const Qt=t.CHM(ut).$implicit,pe=t.oxw(2);return t.KtG(Dt?pe.selection.toggle(Qt):null)})("click",function(Dt){return Dt.stopPropagation()}),t.ALo(2,"translate"),t.ALo(3,"checkboxLabel"),t.qZA()()}if(2&F){const ut=E.$implicit,ft=t.oxw(2);t.xp6(1),t.Q6J("aria-label",t.xi3(2,2,t.lcZ(3,5,ft.selection.isSelected(ut)),t.VKq(7,B,ut.name)))("checked",ft.selection.isSelected(ut))}}function R(F,E){1&F&&(t.ynx(0,14),t.YNc(1,I,4,7,"th",15),t.YNc(2,M,4,9,"td",16),t.BQk())}function Z(F,E){1&F&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&F&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.ID")," "))}function H(F,E){if(1&F&&(t.TgZ(0,"td",22),t._uU(1),t.qZA()),2&F){const ut=E.$implicit;t.xp6(1),t.hij(" ",ut.id," ")}}function G(F,E){1&F&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&F&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NAME")," "))}function tt(F,E){if(1&F&&(t.TgZ(0,"td",23),t._uU(1),t.qZA()),2&F){const ut=E.$implicit;t.uIk("data-cy",ut.name),t.xp6(1),t.Oqu(ut.name)}}function K(F,E){1&F&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&F&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.CONTACT")," "))}function st(F,E){if(1&F&&(t.TgZ(0,"td",23),t._uU(1),t.qZA()),2&F){const ut=E.$implicit;t.xp6(1),t.Oqu(ut.contact)}}function j(F,E){1&F&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&F&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.TYPE")," "))}function W(F,E){if(1&F&&(t.TgZ(0,"td",23),t._uU(1),t.qZA()),2&F){const ut=E.$implicit;t.xp6(1),t.Oqu(ut.type)}}function et(F,E){1&F&&t._UZ(0,"tr",24)}function at(F,E){1&F&&t._UZ(0,"tr",25)}function Y(F,E){1&F&&(t.TgZ(0,"perun-web-apps-alert",26),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&F&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NO_OWNERS"),"\n"))}function nt(F,E){1&F&&(t.TgZ(0,"perun-web-apps-alert",26),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&F&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NO_FILTER_OWNERS"),"\n"))}const rt=function(F){return{all:F}};let q=(()=>{class F{constructor(ut,ft){this.authResolver=ut,this.tableCheckbox=ft,this.owners=[],this.selection=new x.Ov(!0,[]),this.filterValue="",this.displayedColumns=["select","id","name","contact","type"],this.pageSizeOptions=m.f7}set matSort(ut){this.sort=ut,this.setDataSource()}static getDataForColumn(ut,ft){switch(ft){case"id":return ut.id.toString();case"name":return ut.name;case"contact":return ut.contact;case"type":return ut.type;default:return""}}ngAfterViewInit(){this.setDataSource()}exportAllData(ut){(0,m.O6)((0,m.Xn)(this.dataSource.filteredData,this.displayedColumns,F.getDataForColumn),ut)}exportDisplayedData(ut){const ft=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,Dt=ft+this.dataSource.paginator.pageSize;(0,m.O6)((0,m.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(ft,Dt),this.displayedColumns,F.getDataForColumn),ut)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(ut,ft)=>(0,m.Sd)(ut,ft,this.displayedColumns,F.getDataForColumn),this.dataSource.sortData=(ut,ft)=>(0,m.pR)(ut,ft,F.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(ut=>"id"!==ut)),this.dataSource=new _.by(this.owners),this.setDataSource()}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}}return F.\u0275fac=function(ut){return new(ut||F)(t.Y36(p.x4),t.Y36(p.UA))},F.\u0275cmp=t.Xpm({type:F,selectors:[["perun-web-apps-owners-list"]],viewQuery:function(ut,ft){if(1&ut&&(t.Gf(m.l9,7),t.Gf(c.YE,7)),2&ut){let Dt;t.iGM(Dt=t.CRH())&&(ft.child=Dt.first),t.iGM(Dt=t.CRH())&&(ft.matSort=Dt.first)}},inputs:{owners:"owners",selection:"selection",tableId:"tableId",filterValue:"filterValue",displayedColumns:"displayedColumns"},features:[t.TTD],decls:21,vars:15,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","contact"],["matColumnDef","type"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(ut,ft){1&ut&&(t.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportDisplayedData",function(St){return ft.exportDisplayedData(St)})("exportAllData",function(St){return ft.exportAllData(St)}),t.TgZ(2,"table",2),t.YNc(3,R,3,0,"ng-container",3),t.ALo(4,"isAllSelected"),t.ynx(5,4),t.YNc(6,Z,3,3,"th",5),t.YNc(7,H,2,1,"td",6),t.BQk(),t.ynx(8,7),t.YNc(9,G,3,3,"th",5),t.YNc(10,tt,2,2,"td",8),t.BQk(),t.ynx(11,9),t.YNc(12,K,3,3,"th",5),t.YNc(13,st,2,1,"td",8),t.BQk(),t.ynx(14,10),t.YNc(15,j,3,3,"th",5),t.YNc(16,W,2,1,"td",8),t.BQk(),t.YNc(17,et,1,0,"tr",11),t.YNc(18,at,1,0,"tr",12),t.qZA()()(),t.YNc(19,Y,3,3,"perun-web-apps-alert",13),t.YNc(20,nt,3,3,"perun-web-apps-alert",13)),2&ut&&(t.Q6J("hidden",0===ft.owners.length||0===ft.dataSource.filteredData.length),t.xp6(1),t.Q6J("tableId",ft.tableId)("dataLength",ft.dataSource.filteredData.length)("pageSizeOptions",ft.pageSizeOptions),t.xp6(1),t.Q6J("dataSource",ft.dataSource),t.xp6(1),t.Q6J("ngIf",t.VKq(13,rt,t.xi3(4,10,ft.dataSource,ft.selection.selected.length))),t.xp6(14),t.Q6J("matHeaderRowDef",ft.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",ft.displayedColumns),t.xp6(1),t.Q6J("ngIf",!ft.owners.length),t.xp6(1),t.Q6J("ngIf",!ft.dataSource.filteredData.length&&ft.owners.length))},dependencies:[d.O5,l.oG,_.BZ,_.fO,_.as,_.w1,_.Dz,_.nj,_.ge,_.ev,_.XQ,_.Gk,c.YE,c.nU,h.w,f.l,u.X$,g.I,C.G,L.r]}),F})()},16087:(w,D,s)=>{"use strict";const c=s(34315),x=s(52872),_=s(60929);w.exports=function m(d,l){switch(x(d)){case"object":return function p(d,l){if("function"==typeof l)return l(d);if(l||_(d)){const h=new d.constructor;for(let f in d)h[f]=m(d[f],l);return h}return d}(d,l);case"array":return function t(d,l){const h=new d.constructor(d.length);for(let f=0;f{"use strict";var c=s(50623);function x(_){return!0===c(_)&&"[object Object]"===Object.prototype.toString.call(_)}w.exports=function(m){var p,t;return!(!1===x(m)||(p=m.constructor,"function"!=typeof p)||(t=p.prototype,!1===x(t))||!1===t.hasOwnProperty("isPrototypeOf"))}},52786:(w,D,s)=>{"use strict";s.d(D,{B8:()=>K,Il:()=>x,J5:()=>m,SU:()=>tt,Ss:()=>st,Ym:()=>nt,ZP:()=>Z,xV:()=>_});var c=s(68884);function x(){}var _=.7,m=1/_,p="\\s*([+-]?\\d+)\\s*",t="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",d="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",l=/^#([0-9a-f]{3,8})$/,h=new RegExp("^rgb\\("+[p,p,p]+"\\)$"),f=new RegExp("^rgb\\("+[d,d,d]+"\\)$"),u=new RegExp("^rgba\\("+[p,p,p,t]+"\\)$"),g=new RegExp("^rgba\\("+[d,d,d,t]+"\\)$"),C=new RegExp("^hsl\\("+[t,d,d]+"\\)$"),L=new RegExp("^hsla\\("+[t,d,d,t]+"\\)$"),I={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function B(){return this.rgb().formatHex()}function R(){return this.rgb().formatRgb()}function Z(F){var E,ut;return F=(F+"").trim().toLowerCase(),(E=l.exec(F))?(ut=E[1].length,E=parseInt(E[1],16),6===ut?H(E):3===ut?new st(E>>8&15|E>>4&240,E>>4&15|240&E,(15&E)<<4|15&E,1):8===ut?G(E>>24&255,E>>16&255,E>>8&255,(255&E)/255):4===ut?G(E>>12&15|E>>8&240,E>>8&15|E>>4&240,E>>4&15|240&E,((15&E)<<4|15&E)/255):null):(E=h.exec(F))?new st(E[1],E[2],E[3],1):(E=f.exec(F))?new st(255*E[1]/100,255*E[2]/100,255*E[3]/100,1):(E=u.exec(F))?G(E[1],E[2],E[3],E[4]):(E=g.exec(F))?G(255*E[1]/100,255*E[2]/100,255*E[3]/100,E[4]):(E=C.exec(F))?at(E[1],E[2]/100,E[3]/100,1):(E=L.exec(F))?at(E[1],E[2]/100,E[3]/100,E[4]):I.hasOwnProperty(F)?H(I[F]):"transparent"===F?new st(NaN,NaN,NaN,0):null}function H(F){return new st(F>>16&255,F>>8&255,255&F,1)}function G(F,E,ut,ft){return ft<=0&&(F=E=ut=NaN),new st(F,E,ut,ft)}function tt(F){return F instanceof x||(F=Z(F)),F?new st((F=F.rgb()).r,F.g,F.b,F.opacity):new st}function K(F,E,ut,ft){return 1===arguments.length?tt(F):new st(F,E,ut,ft??1)}function st(F,E,ut,ft){this.r=+F,this.g=+E,this.b=+ut,this.opacity=+ft}function j(){return"#"+et(this.r)+et(this.g)+et(this.b)}function W(){var F=this.opacity;return(1===(F=isNaN(F)?1:Math.max(0,Math.min(1,F)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===F?")":", "+F+")")}function et(F){return((F=Math.max(0,Math.min(255,Math.round(F)||0)))<16?"0":"")+F.toString(16)}function at(F,E,ut,ft){return ft<=0?F=E=ut=NaN:ut<=0||ut>=1?F=E=NaN:E<=0&&(F=NaN),new rt(F,E,ut,ft)}function Y(F){if(F instanceof rt)return new rt(F.h,F.s,F.l,F.opacity);if(F instanceof x||(F=Z(F)),!F)return new rt;if(F instanceof rt)return F;var E=(F=F.rgb()).r/255,ut=F.g/255,ft=F.b/255,Dt=Math.min(E,ut,ft),St=Math.max(E,ut,ft),Qt=NaN,pe=St-Dt,wt=(St+Dt)/2;return pe?(Qt=E===St?(ut-ft)/pe+6*(ut0&&wt<1?0:Qt,new rt(Qt,pe,wt,F.opacity)}function nt(F,E,ut,ft){return 1===arguments.length?Y(F):new rt(F,E,ut,ft??1)}function rt(F,E,ut,ft){this.h=+F,this.s=+E,this.l=+ut,this.opacity=+ft}function q(F,E,ut){return 255*(F<60?E+(ut-E)*F/60:F<180?ut:F<240?E+(ut-E)*(240-F)/60:E)}(0,c.Z)(x,Z,{copy:function(F){return Object.assign(new this.constructor,this,F)},displayable:function(){return this.rgb().displayable()},hex:B,formatHex:B,formatHsl:function M(){return Y(this).formatHsl()},formatRgb:R,toString:R}),(0,c.Z)(st,K,(0,c.l)(x,{brighter:function(F){return F=null==F?m:Math.pow(m,F),new st(this.r*F,this.g*F,this.b*F,this.opacity)},darker:function(F){return F=null==F?_:Math.pow(_,F),new st(this.r*F,this.g*F,this.b*F,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:j,formatHex:j,formatRgb:W,toString:W})),(0,c.Z)(rt,nt,(0,c.l)(x,{brighter:function(F){return F=null==F?m:Math.pow(m,F),new rt(this.h,this.s,this.l*F,this.opacity)},darker:function(F){return F=null==F?_:Math.pow(_,F),new rt(this.h,this.s,this.l*F,this.opacity)},rgb:function(){var F=this.h%360+360*(this.h<0),E=isNaN(F)||isNaN(this.s)?0:this.s,ut=this.l,ft=ut+(ut<.5?ut:1-ut)*E,Dt=2*ut-ft;return new st(q(F>=240?F-240:F+120,Dt,ft),q(F,Dt,ft),q(F<120?F+240:F-120,Dt,ft),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var F=this.opacity;return(1===(F=isNaN(F)?1:Math.max(0,Math.min(1,F)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===F?")":", "+F+")")}}))},68884:(w,D,s)=>{"use strict";function c(_,m,p){_.prototype=m.prototype=p,p.constructor=_}function x(_,m){var p=Object.create(_.prototype);for(var t in m)p[t]=m[t];return p}s.d(D,{Z:()=>c,l:()=>x})},25922:(w,D,s)=>{"use strict";s.d(D,{Z:()=>d});var c={value:function(){}};function x(){for(var u,l=0,h=arguments.length,f={};l=0&&(u=f.slice(g+1),f=f.slice(0,g)),f&&!h.hasOwnProperty(f))throw new Error("unknown type: "+f);return{type:f,name:u}})}function p(l,h){for(var g,f=0,u=l.length;f0)for(var g,C,f=new Array(g),u=0;u{"use strict";s.d(D,{Z:()=>m,D:()=>p});var c=s(52016);function _(t){t.preventDefault(),t.stopImmediatePropagation()}function m(t){var d=t.document.documentElement,l=(0,c.Z)(t).on("dragstart.drag",_,!0);"onselectstart"in d?l.on("selectstart.drag",_,!0):(d.__noselect=d.style.MozUserSelect,d.style.MozUserSelect="none")}function p(t,d){var l=t.document.documentElement,h=(0,c.Z)(t).on("dragstart.drag",null);d&&(h.on("click.drag",_,!0),setTimeout(function(){h.on("click.drag",null)},0)),"onselectstart"in l?h.on("selectstart.drag",null):(l.style.MozUserSelect=l.__noselect,delete l.__noselect)}},27065:(w,D,s)=>{"use strict";function _(m){return((m*=2)<=1?m*m*m:(m-=2)*m*m+2)/2}s.d(D,{tw:()=>_})},22910:(w,D,s)=>{"use strict";s.d(D,{WU:()=>_,ZP:()=>p,jH:()=>m});var x,_,m,c=s(4753);function p(t){return x=(0,c.Z)(t),_=x.format,m=x.formatPrefix,x}p({thousands:",",grouping:[3],currency:["$",""]})},68520:(w,D,s)=>{"use strict";s.d(D,{Z:()=>x});var c=s(5326);function x(_){return(_=(0,c.V)(Math.abs(_)))?_[1]:NaN}},5326:(w,D,s)=>{"use strict";function c(_){return Math.abs(_=Math.round(_))>=1e21?_.toLocaleString("en").replace(/,/g,""):_.toString(10)}function x(_,m){if((p=(_=m?_.toExponential(m-1):_.toExponential()).indexOf("e"))<0)return null;var p,t=_.slice(0,p);return[t.length>1?t[0]+t.slice(2):t,+_.slice(p+1)]}s.d(D,{V:()=>x,Z:()=>c})},32517:(w,D,s)=>{"use strict";s.d(D,{Z:()=>x,v:()=>_});var c=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function x(m){if(!(p=c.exec(m)))throw new Error("invalid format: "+m);var p;return new _({fill:p[1],align:p[2],sign:p[3],symbol:p[4],zero:p[5],width:p[6],comma:p[7],precision:p[8]&&p[8].slice(1),trim:p[9],type:p[10]})}function _(m){this.fill=void 0===m.fill?" ":m.fill+"",this.align=void 0===m.align?">":m.align+"",this.sign=void 0===m.sign?"-":m.sign+"",this.symbol=void 0===m.symbol?"":m.symbol+"",this.zero=!!m.zero,this.width=void 0===m.width?void 0:+m.width,this.comma=!!m.comma,this.precision=void 0===m.precision?void 0:+m.precision,this.trim=!!m.trim,this.type=void 0===m.type?"":m.type+""}x.prototype=_.prototype,_.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type}},41129:(w,D,s)=>{"use strict";s.r(D),s.d(D,{FormatSpecifier:()=>_.v,format:()=>c.WU,formatDefaultLocale:()=>c.ZP,formatLocale:()=>x.Z,formatPrefix:()=>c.jH,formatSpecifier:()=>_.Z,precisionFixed:()=>m.Z,precisionPrefix:()=>p.Z,precisionRound:()=>t.Z});var c=s(22910),x=s(4753),_=s(32517),m=s(78986),p=s(38914),t=s(65142)},4753:(w,D,s)=>{"use strict";s.d(D,{Z:()=>L});var d,c=s(68520),m=s(32517),t=s(5326);function h(I,B){var M=(0,t.V)(I,B);if(!M)return I+"";var R=M[0],Z=M[1];return Z<0?"0."+new Array(-Z).join("0")+R:R.length>Z+1?R.slice(0,Z+1)+"."+R.slice(Z+1):R+new Array(Z-R.length+2).join("0")}const f={"%":(I,B)=>(100*I).toFixed(B),b:I=>Math.round(I).toString(2),c:I=>I+"",d:t.Z,e:(I,B)=>I.toExponential(B),f:(I,B)=>I.toFixed(B),g:(I,B)=>I.toPrecision(B),o:I=>Math.round(I).toString(8),p:(I,B)=>h(100*I,B),r:h,s:function l(I,B){var M=(0,t.V)(I,B);if(!M)return I+"";var R=M[0],Z=M[1],H=Z-(d=3*Math.max(-8,Math.min(8,Math.floor(Z/3))))+1,G=R.length;return H===G?R:H>G?R+new Array(H-G+1).join("0"):H>0?R.slice(0,H)+"."+R.slice(H):"0."+new Array(1-H).join("0")+(0,t.V)(I,Math.max(0,B+H-1))[0]},X:I=>Math.round(I).toString(16).toUpperCase(),x:I=>Math.round(I).toString(16)};function u(I){return I}var g=Array.prototype.map,C=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function L(I){var B=void 0===I.grouping||void 0===I.thousands?u:function x(I,B){return function(M,R){for(var Z=M.length,H=[],G=0,tt=I[0],K=0;Z>0&&tt>0&&(K+tt+1>R&&(tt=Math.max(1,R-K)),H.push(M.substring(Z-=tt,Z+tt)),!((K+=tt+1)>R));)tt=I[G=(G+1)%I.length];return H.reverse().join(B)}}(g.call(I.grouping,Number),I.thousands+""),M=void 0===I.currency?"":I.currency[0]+"",R=void 0===I.currency?"":I.currency[1]+"",Z=void 0===I.decimal?".":I.decimal+"",H=void 0===I.numerals?u:function _(I){return function(B){return B.replace(/[0-9]/g,function(M){return I[+M]})}}(g.call(I.numerals,String)),G=void 0===I.percent?"%":I.percent+"",tt=void 0===I.minus?"\u2212":I.minus+"",K=void 0===I.nan?"NaN":I.nan+"";function st(W){var et=(W=(0,m.Z)(W)).fill,at=W.align,Y=W.sign,nt=W.symbol,rt=W.zero,q=W.width,F=W.comma,E=W.precision,ut=W.trim,ft=W.type;"n"===ft?(F=!0,ft="g"):f[ft]||(void 0===E&&(E=12),ut=!0,ft="g"),(rt||"0"===et&&"="===at)&&(rt=!0,et="0",at="=");var Dt="$"===nt?M:"#"===nt&&/[boxX]/.test(ft)?"0"+ft.toLowerCase():"",St="$"===nt?R:/[%p]/.test(ft)?G:"",Qt=f[ft],pe=/[defgprs%]/.test(ft);function wt(yt){var de,ie,Ot,Nt=Dt,zt=St;if("c"===ft)zt=Qt(yt)+zt,yt="";else{var te=(yt=+yt)<0||1/yt<0;if(yt=isNaN(yt)?K:Qt(Math.abs(yt),E),ut&&(yt=function p(I){t:for(var Z,B=I.length,M=1,R=-1;M0&&(R=0)}return R>0?I.slice(0,R)+I.slice(Z+1):I}(yt)),te&&0==+yt&&"+"!==Y&&(te=!1),Nt=(te?"("===Y?Y:tt:"-"===Y||"("===Y?"":Y)+Nt,zt=("s"===ft?C[8+d/3]:"")+zt+(te&&"("===Y?")":""),pe)for(de=-1,ie=yt.length;++de(Ot=yt.charCodeAt(de))||Ot>57){zt=(46===Ot?Z+yt.slice(de+1):yt.slice(de))+zt,yt=yt.slice(0,de);break}}F&&!rt&&(yt=B(yt,1/0));var jt=Nt.length+yt.length+zt.length,se=jt>1)+Nt+yt+zt+se.slice(jt);break;default:yt=se+Nt+yt+zt}return H(yt)}return E=void 0===E?6:/[gprs]/.test(ft)?Math.max(1,Math.min(21,E)):Math.max(0,Math.min(20,E)),wt.toString=function(){return W+""},wt}return{format:st,formatPrefix:function j(W,et){var at=st(((W=(0,m.Z)(W)).type="f",W)),Y=3*Math.max(-8,Math.min(8,Math.floor((0,c.Z)(et)/3))),nt=Math.pow(10,-Y),rt=C[8+Y/3];return function(q){return at(nt*q)+rt}}}}},78986:(w,D,s)=>{"use strict";s.d(D,{Z:()=>x});var c=s(68520);function x(_){return Math.max(0,-(0,c.Z)(Math.abs(_)))}},38914:(w,D,s)=>{"use strict";s.d(D,{Z:()=>x});var c=s(68520);function x(_,m){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor((0,c.Z)(m)/3)))-(0,c.Z)(Math.abs(_)))}},65142:(w,D,s)=>{"use strict";s.d(D,{Z:()=>x});var c=s(68520);function x(_,m){return _=Math.abs(_),m=Math.abs(m)-_,Math.max(0,(0,c.Z)(m)-(0,c.Z)(_))+1}},9921:function(w,D,s){!function(c,x,_,m,p,t,d,l,h,f){"use strict";function u(Q){if(Q&&Q.__esModule)return Q;var pt=Object.create(null);return Q&&Object.keys(Q).forEach(function(mt){if("default"!==mt){var gt=Object.getOwnPropertyDescriptor(Q,mt);Object.defineProperty(pt,mt,gt.get?gt:{enumerable:!0,get:function(){return Q[mt]}})}}),pt.default=Q,Object.freeze(pt)}var Lt,g=u(x);function C(Q,pt,mt){return pt in Q?Object.defineProperty(Q,pt,{value:mt,enumerable:!0,configurable:!0,writable:!0}):Q[pt]=mt,Q}function L(Q){return function I(Q){if(Array.isArray(Q))return R(Q)}(Q)||function B(Q){if(typeof Symbol<"u"&&null!=Q[Symbol.iterator]||null!=Q["@@iterator"])return Array.from(Q)}(Q)||function M(Q,pt){if(Q){if("string"==typeof Q)return R(Q,pt);var mt=Object.prototype.toString.call(Q).slice(8,-1);if("Object"===mt&&Q.constructor&&(mt=Q.constructor.name),"Map"===mt||"Set"===mt)return Array.from(Q);if("Arguments"===mt||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(mt))return R(Q,pt)}}(Q)||function Z(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function R(Q,pt){(null==pt||pt>Q.length)&&(pt=Q.length);for(var mt=0,gt=new Array(pt);mt1&&void 0!==arguments[1]?arguments[1]:0,mt=g.select(this),gt=Q.attributes,Ut=mt.node().attributes;if(Ut)for(var Xt=0;Xt0?Cn.children[0].text:"")}null==he.key&&(Ut&&("ellipse"==vn||"polygon"==vn)&&(vn="path"),he.key=vn+"-"+je)}function Pe(he,je){he.id=(je?je.id+".":"")+he.key}function Be(he){O[he.id]=he}function ue(he,je){Ut&&he.id in oe&&("polygon"==je.tag||"ellipse"==je.tag||"path"==je.tag)&&(je.tag!=he.tag||"polygon"==he.tag)&&("path"!=je.tag&&(he.alternativeOld=se(je,he)),"path"!=he.tag&&(he.alternativeNew=se(he,je)))}function me(he,je){if(gt&&je&&("path"==je.tag||he.alternativeOld&&"path"==he.alternativeOld.tag)){var vn=(he.alternativeNew||he).attributes.d;if(he.alternativeOld)var Cn=K(he.alternativeOld);else Cn=K(je);(he.alternativeOld||(he.alternativeOld={})).points=function wt(Q,pt,mt,gt){for(var Ut=Q,Xt=Ut.cloneNode(),kt=Ut.getTotalLength(),le=(Xt.setAttribute("d",pt),Xt).getTotalLength(),O=[0],oe=0,Se=gt?mt:mt/Math.max(kt,le);(oe+=Se)<1;)O.push(oe);return O.push(1),O.map(function(Ke){var Pe=Ut.getPointAtLength(Ke*kt),Be=Xt.getPointAtLength(Ke*le);return[[Pe.x,Pe.y],[Be.x,Be.y]]})}(Cn,vn,Xt,kt)}}function Fe(he){var vn=arguments.length>2?arguments[2]:void 0;Ke(he,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),Pe(he,vn);var $n=oe[he.id];Be(he),ue(he,$n),me(he,$n);var ci={};he.children.forEach(function(vi){var Qn=vi.tag;("ellipse"==Qn||"polygon"==Qn)&&(Qn="path"),null==ci[Qn]&&(ci[Qn]=0),Fe(vi,ci[Qn]++,he)})}function $e(he){(function fn(he){if(le&&he.parent&&"node"==he.parent.attributes.class&&"title"==he.tag){if(he.children.length>0)var Cn=he.children[0].text;else Cn="";Se[Cn]=he.parent}})(he),function cn(he){var vn=he.tag;if(le&&!oe[he.id]&&he.parent&&zt(he)&&("path"==vn||"polygon"==vn)){if("polygon"==vn){var $n=he.parent.children.find(function(On){return"path"==On.tag});$n&&(he.totalLength=$n.totalLength)}var vi=function ie(Q){return function de(Q){return"edge"==Q.parent.attributes.class?Q.parent:Q.parent.parent.parent}(Q).children.find(function(pt){return"title"==pt.tag})}(he).children[0],Qn=vi.text.split("->");2!=Qn.length&&(Qn=vi.text.split("--"));var Zi=Qn[0],jn=Se[Zi],bi=Ce[Zi];if(bi){if((un=jn.children.findIndex(function(On,di){return"g"==On.tag}))>=0){var mn=jn.children[un].children.findIndex(function(On,di){return"a"==On.tag});jn=jn.children[un].children[mn]}(un=bi.children.findIndex(function(On,di){return"g"==On.tag}))>=0&&(mn=bi.children[un].children.findIndex(function(di,Ue){return"a"==di.tag}),bi=bi.children[un].children[mn]);for(var ui=jn.children,un=0;un0&&this._queue.shift().call(this)}function Ni(Q,pt,mt,gt){var Ut=[Q*mt-(pt=-pt)*(gt=-gt),Q*gt+pt*mt];return[Q=Ut[0],pt=-(pt=Ut[1])]}function Ri(Q,pt,mt,gt,Ut,Xt,kt){var O=G(sn.call(this,Xt));Q.data([O]),at.call(Q.node(),O),fe(Q,pt,mt,gt,Ut,Xt,kt)}function fe(Q,pt,mt,gt,Ut,Xt,kt){var le=kt.shortening||0,Ce=[[0,-3.5],[10,0],[0,3.5],[0,-3.5]],Ke=gt-pt,Pe=Ut-mt,Be=Math.sqrt(Ke*Ke+Pe*Pe);if(0==Be)var ue=1,me=0;else ue=Ke/Be,me=Pe/Be;if(gt=pt+(Be-le-10-.1)*ue,Ut=mt+(Be-le-10-.1)*me,Xt.URL||Xt.tooltip)var Fe=Q.selectWithoutDataPropagation("g").selectWithoutDataPropagation("a"),fn=Fe.selectWithoutDataPropagation("path"),cn=Fe.selectWithoutDataPropagation("polygon");else fn=Q.selectWithoutDataPropagation("path"),cn=Q.selectWithoutDataPropagation("polygon");var $e=f.path();$e.moveTo(pt,mt),$e.lineTo(gt,Ut),fn.attr("d",$e),gt=pt+(Be-le-10)*ue,Ut=mt+(Be-le-10)*me;for(var Qe=0;Qe b ["+pt+"]}","svg","dot"),O=(new window.DOMParser).parseFromString(kt,"image/svg+xml");return g.select(document.createDocumentFragment()).append(function(){return O.documentElement}).select(".edge")}function Ln(Q,pt,mt,gt,Ut,Xt){var le=G(X.call(this,gt,Ut));return Q.data([le]),at.call(Q.node(),le),we(Q,pt,mt,Ut),this}function we(Q,pt,mt,gt,Ut){if(gt.URL||gt.tooltip)var Xt=Q.selectWithoutDataPropagation("g").selectWithoutDataPropagation("a");else Xt=Q;var kt=Xt.selectAll("ellipse,polygon,path,polyline"),le=Q.selectWithoutDataPropagation("text");if(0!=kt.size()){var O=kt.node().getBBox();O.cx=O.x+O.width/2,O.cy=O.y+O.height/2}else 0!=le.size()&&(O={x:+le.attr("x"),y:+le.attr("y"),width:0,height:0,cx:+le.attr("x"),cy:+le.attr("y")});return kt.each(function(oe,Se){var Ce=g.select(this);if(Ce.attr("cx"))Ce.attr("cx",nt(pt)).attr("cy",nt(mt));else if(Ce.attr("points")){var Ke=Ce.attr("points").trim();Ce.attr("points",function At(Xt,pt,mt){var Ut,gt=(Ut=Xt.split(" ")).map(function(kt){return kt.split(",")});return gt=Ut.map(function(kt){return[nt(+pt+ +kt.split(",")[0]),nt(+mt+ +kt.split(",")[1])]}),(Ut=gt.map(function(kt){return kt.join(",")})).join(" ")}(Ke,pt-O.cx,mt-O.cy))}else{var Pe=Ce.attr("d");Ce.attr("d",function Ht(Q,pt,mt){(Xt=Q.split(/[A-Z ]/)).shift();var gt=Q.split(/[^[A-Z ]+/),Xt=(Xt.map(function(kt){return kt.split(",")}),Xt.map(function(kt){return[nt(+pt+ +kt.split(",")[0]),nt(+mt+ +kt.split(",")[1])]}).map(function(kt){return kt.join(",")}));return gt.reduce(function(kt,le,O){return kt.concat(le,Xt[O])},[]).join("")}(Pe,pt-O.cx,mt-O.cy))}}),0!=le.size()&&le.attr("x",nt(+le.attr("x")+pt-O.cx)).attr("y",nt(+le.attr("y")+mt-O.cy)),this}function Nn(){if(!this._drawnNode)return this;var Q=this._drawnNode.g;return Q.empty()||Q.remove(),this._drawnNode=null,this}function z(){return this._drawnNode?this._drawnNode.g:g.select(null)}function X(Q,pt){for(var mt="",gt=0,Ut=Object.keys(pt);gt"u"&&(kt=!1),typeof SharedWorker>"u"&&(le=!1),kt||le){var oe=g.selectAll("script").filter(function(){return"javascript/worker"==g.select(this).attr("type")||g.select(this).attr("src")&&g.select(this).attr("src").match(/.*\/@hpcc-js\/wasm/)});0==oe.size()?(console.warn('No script tag of type "javascript/worker" was found and "useWorker" is true. Not using web worker.'),kt=!1,le=!1):(this._vizURL=oe.attr("src"),this._vizURL||(console.warn('No "src" attribute of was found on the "javascript/worker" script tag and "useWorker" is true. Not using web worker.'),kt=!1,le=!1))}if(le){var Se="data:application/javascript;base64,"+btoa(lt.toString()+"("+bt.toString()+")()");this._worker=this._worker=new SharedWorker(Se),this._workerPort=this._worker.port,this._workerPortClose=this._worker.port.close.bind(this._workerPort),this._worker.port.start(),this._workerCallbacks=[]}else if(kt){var Ce=new Blob([lt.toString()+"("+A.toString()+")()"]),Ke=window.URL.createObjectURL(Ce);this._worker=new Worker(Ke),this._workerPort=this._worker,this._workerPortClose=this._worker.terminate.bind(this._worker),this._workerCallbacks=[]}else l.graphvizVersion().then(function(Pe){mt._graphvizVersion=Pe}.bind(this));this._selection=Q,this._active=!1,this._busy=!1,this._jobs=[],this._queue=[],this._keyModes=new Set(["title","id","tag-index","index"]),this._images=[],this._translation=void 0,this._scale=void 0,this._eventTypes=["initEnd","start","layoutStart","layoutEnd","dataExtractEnd","dataProcessPass1End","dataProcessPass2End","dataProcessEnd","renderStart","renderEnd","transitionStart","transitionEnd","restoreEnd","end","zoom"],this._dispatch=_.dispatch.apply(void 0,L(this._eventTypes)),Zt.call(this),Q.node().__graphviz__=this}function Gt(Q,pt){return g.select(Q).graphviz(pt)}Pt.prototype=Gt.prototype=(C(Lt={constructor:Pt,engine:function ce(Q){return this._options.engine=Q,this},addImage:function _e(Q,pt,mt){return this._images.push({path:Q,width:pt,height:mt}),this},keyMode:function ee(Q){if(!this._keyModes.has(Q))throw Error("Illegal keyMode: "+Q);if(Q!=this._options.keyMode&&null!=this._data)throw Error("Too late to change keyMode");return this._options.keyMode=Q,this},fade:function Ze(Q){return this._options.fade=Q,this},tweenPaths:function Ye(Q){return this._options.tweenPaths=Q,this},tweenShapes:function Tn(Q){return this._options.tweenShapes=Q,Q&&(this._options.tweenPaths=!0),this},convertEqualSidedPolygons:function oi(Q){return this._options.convertEqualSidedPolygons=Q,this},tweenPrecision:function Mi(Q){return this._options.tweenPrecision=Q,this},growEnteringEdges:function mi(Q){return this._options.growEnteringEdges=Q,this},zoom:function rt(Q){return this._options.zoom=Q,this._options.zoom&&!this._zoomBehavior?q.call(this):!this._options.zoom&&this._zoomBehavior&&(this._zoomSelection.on(".zoom",null),this._zoomBehavior=null),this},resetZoom:function ut(Q){var pt=this._zoomSelection;return Q&&(pt=pt.transition(Q)),pt.call(this._zoomBehavior.transform,this._originalTransform),this},zoomBehavior:function St(){return this._zoomBehavior||null},zoomSelection:function Qt(){return this._zoomSelection||null},zoomScaleExtent:function ft(Q){return this._options.zoomScaleExtent=Q,this},zoomTranslateExtent:function Dt(Q){return this._options.zoomTranslateExtent=Q,this},render:function Ot(Q){return this._busy?(this._queue.push(this.render.bind(this,Q)),this):(this._dispatch.call("renderStart",this),this._transitionFactory?p.timeout(function(){this._transition=m.transition(this._transitionFactory()),te.call(this,Q)}.bind(this),0):te.call(this,Q),this)},layout:function xe(Q,pt,mt,gt){if(this._worker)Kt.call(this,{type:"layout",dot:Q,engine:pt,options:mt},function(Xt){gt.call(this,Xt.data)});else try{var Ut=this.layoutSync(Q,"svg",pt,mt);gt.call(this,{type:"done",svg:Ut})}catch(Xt){gt.call(this,{type:"error",error:Xt.message})}},dot:function Te(Q,pt){var mt=this,gt=this._options.engine,Ut=this._images;return this._dispatch.call("start",this),this._busy=!0,this._dispatch.call("layoutStart",this),this._worker||null!=this.layoutSync?(this.layout(Q,gt,{images:Ut},function(kt){switch(kt.type){case"error":if(!mt._onerror)throw kt.error.message;mt._onerror(kt.error);break;case"done":Le.call(this,kt.svg,pt)}}),this):(this._afterInit=this.dot.bind(this,Q,pt),this)},data:function yt(){return this._data||null},renderDot:function Oe(Q,pt){var mt=this;return this.dot(Q,function gt(){mt.render(pt)}),this},transition:function Ee(Q){return Q instanceof Function?this._transitionFactory=Q:this._transition=m.transition(Q),this},active:function He(Q){var mt=this._selection.selectWithoutDataPropagation("svg");return 0!=mt.size()?m.active(mt.node(),Q):null},options:function Ge(Q){if(typeof Q>"u")return Object.assign({},this._options);for(var pt=0,mt=Object.keys(Q);pt2")(Ke)+" ",me+=Pe+" ".repeat(Xt-Pe.length),me+=h.format(" >5")(Be-mt)+" ","initEnd"!=Pe&&(me+=h.format(" >5")(Be-gt.start[ue])),"dataProcessEnd"==Pe&&(me+=" prepare "+h.format(" >5")(Be-gt.layoutEnd[ue])),"renderEnd"==Pe&&O._transition&&(me+=" transition start margin "+h.format(" >5")(O._transition.delay()-(Be-gt.renderStart[ue])),oe=O._transition.delay(),Se=O._transition.duration()),"transitionStart"==Pe){var Fe=Be-gt.renderStart[ue];me+=" transition delay "+h.format(" >5")(Be-gt.renderStart[ue]),me+=" expected "+h.format(" >5")(oe),me+=" diff "+h.format(" >5")(Fe-oe)}if("transitionEnd"==Pe){var fn=Be-gt.transitionStart[ue];me+=" transition duration "+h.format(" >5")(fn),me+=" expected "+h.format(" >5")(Se),me+=" diff "+h.format(" >5")(fn-Se)}console.log(me),mt=Be}:null)},le=0;le5&&void 0!==arguments[5]?arguments[5]:{};if((Ut=Object.assign({},Ut)).style&&Ut.style.includes("invis"))var kt=g.select(null);else{var oe=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),Ce=G(sn.call(this,Ut));kt=oe.append("g").data([Ce]),at.call(kt.node(),Ce),Ri.call(this,kt,Q,pt,mt,gt,Ut,Xt)}return this._drawnEdge={g:kt,x1:Q,y1:pt,x2:mt,y2:gt,attributes:Ut},this},updateDrawnEdge:function Qi(Q,pt,mt,gt){var Ut=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},Xt=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};if(!this._drawnEdge)throw Error("No edge has been drawn");var kt=this._drawnEdge.g;return Ut=Object.assign(this._drawnEdge.attributes,Ut),this._drawnEdge.x1=Q,this._drawnEdge.y1=pt,this._drawnEdge.x2=mt,this._drawnEdge.y2=gt,!kt.empty()||Ut.style&&Ut.style.includes("invis")||(kt=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g").append("g"),this._drawnEdge.g=kt),kt.empty()||Ri.call(this,kt,Q,pt,mt,gt,Ut,Xt),this},moveDrawnEdgeEndPoint:function Sn(Q,pt){var mt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!this._drawnEdge)throw Error("No edge has been drawn");var gt=this._drawnEdge.g,Ut=this._drawnEdge.x1,Xt=this._drawnEdge.y1,kt=this._drawnEdge.attributes;return this._drawnEdge.x2=Q,this._drawnEdge.y2=pt,fe(gt,Ut,Xt,Q,pt,kt,mt),this},insertDrawnEdge:function In(Q){if(!this._drawnEdge)throw Error("No edge has been drawn");var pt=this._drawnEdge.g;if(pt.empty())return this;pt.selectWithoutDataPropagation("title").text(Q);var Xt=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),kt=Xt.datum(),le=this._extractData(pt,kt.children.length,Xt.datum());return kt.children.push(le),W(pt,le),this._drawnEdge=null,this},removeDrawnEdge:ji},"removeDrawnEdge",ji),C(Lt,"drawnEdgeSelection",gn),C(Lt,"drawnEdgeSelection",gn),C(Lt,"drawNode",function zn(Q,pt,mt){var gt=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},Ut=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if((gt=Object.assign({},gt)).style&>.style.includes("invis"))var Xt=g.select(null);else{var O=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),Se=G(X.call(this,mt,gt));Xt=O.append("g").data([Se]),at.call(Xt.node(),Se),Ln.call(this,Xt,Q,pt,mt,gt,Ut)}return this._drawnNode={g:Xt,nodeId:mt,x:Q,y:pt,attributes:gt},this}),C(Lt,"updateDrawnNode",function li(Q,pt,mt){var gt=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},Ut=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if(!this._drawnNode)throw Error("No node has been drawn");var Xt=this._drawnNode.g;return null==mt&&(mt=this._drawnNode.nodeId),gt=Object.assign(this._drawnNode.attributes,gt),this._drawnNode.nodeId=mt,this._drawnNode.x=Q,this._drawnNode.y=pt,!Xt.empty()||gt.style&>.style.includes("invis")||(Xt=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g").append("g"),this._drawnNode.g=Xt),Xt.empty()||Ln.call(this,Xt,Q,pt,mt,gt,Ut),this}),C(Lt,"moveDrawnNode",function Bi(Q,pt){if(!this._drawnNode)throw Error("No node has been drawn");var mt=this._drawnNode.g,gt=this._drawnNode.attributes;return this._drawnNode.x=Q,this._drawnNode.y=pt,mt.empty()||we(mt,Q,pt,gt),this}),C(Lt,"insertDrawnNode",function pn(Q){if(!this._drawnNode)throw Error("No node has been drawn");null==Q&&(Q=this._drawnNode.nodeId);var pt=this._drawnNode.g;if(pt.empty())return this;var mt=this._drawnNode.attributes;if(pt.selectWithoutDataPropagation("title").text(Q),mt.URL||mt.tooltip){var Xt=pt.selectWithoutDataPropagation("g").selectWithoutDataPropagation("a");Xt.selectWithoutDataPropagation("ellipse,polygon,path,polyline");var kt=Xt.selectWithoutDataPropagation("text")}else pt.selectWithoutDataPropagation("ellipse,polygon,path,polyline"),kt=pt.selectWithoutDataPropagation("text");kt.text(mt.label||Q);var oe=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),Se=oe.datum(),Ce=this._extractData(pt,Se.children.length,oe.datum());return Se.children.push(Ce),W(pt,Ce),this._drawnNode=null,this}),C(Lt,"removeDrawnNode",Nn),C(Lt,"removeDrawnNode",Nn),C(Lt,"drawnNodeSelection",z),C(Lt,"drawnNodeSelection",z),C(Lt,"graphvizVersion",function jt(){return this._graphvizVersion}),Lt),x.selection.prototype.graphviz=function Jt(Q){var pt=this.node().__graphviz__;return pt?(pt.options(Q),p.timeout(function(){pt._dispatch.call("initEnd",this)}.bind(this),0)):pt=new Pt(this,Q),pt},x.selection.prototype.selectWithoutDataPropagation=function Yt(Q){return g.select(this.size()>0?this.node().querySelector(Q):null)},c.graphviz=Gt,Object.defineProperty(c,"__esModule",{value:!0})}(D,s(68557),s(75143),s(18429),s(65894),s(46176),s(46041),s(89397),s(41129),s(38184))},75143:(w,D,s)=>{"use strict";s.r(D),s.d(D,{dispatch:()=>d});var c={value:()=>{}};function x(){for(var u,l=0,h=arguments.length,f={};l=0&&(u=f.slice(g+1),f=f.slice(0,g)),f&&!h.hasOwnProperty(f))throw new Error("unknown type: "+f);return{type:f,name:u}})}function p(l,h){for(var g,f=0,u=l.length;f0)for(var g,C,f=new Array(g),u=0;u{"use strict";s.r(D),s.d(D,{interval:()=>tt,now:()=>g,timeout:()=>G,timer:()=>I,timerFlush:()=>B});var p,t,c=0,x=0,_=0,d=0,l=0,h=0,f="object"==typeof performance&&performance.now?performance:Date,u="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(K){setTimeout(K,17)};function g(){return l||(u(C),l=f.now()+h)}function C(){l=0}function L(){this._call=this._time=this._next=null}function I(K,st,j){var W=new L;return W.restart(K,st,j),W}function B(){g(),++c;for(var st,K=p;K;)(st=l-K._time)>=0&&K._call.call(null,st),K=K._next;--c}function M(){l=(d=f.now())+h,c=x=0;try{B()}finally{c=0,function Z(){for(var K,j,st=p,W=1/0;st;)st._call?(W>st._time&&(W=st._time),K=st,st=st._next):(j=st._next,st._next=null,st=K?K._next=j:p=j);t=K,H(W)}(),l=0}}function R(){var K=f.now(),st=K-d;st>1e3&&(h-=st,d=K)}function H(K){c||(x&&(x=clearTimeout(x)),K-l>24?(K<1/0&&(x=setTimeout(M,K-f.now()-h)),_&&(_=clearInterval(_))):(_||(d=f.now(),_=setInterval(R,1e3)),c=1,u(M)))}function G(K,st,j){var W=new L;return W.restart(et=>{W.stop(),K(et+st)},st=null==st?0:+st,j),W}function tt(K,st,j){var W=new L,et=st;return null==st?(W.restart(K,st,j),W):(W._restart=W.restart,W.restart=function(at,Y,nt){Y=+Y,nt=null==nt?g():+nt,W._restart(function rt(q){q+=et,W._restart(rt,et+=Y,nt),at(q)},Y,nt)},W.restart(K,st,j),W)}L.prototype=I.prototype={constructor:L,restart:function(K,st,j){if("function"!=typeof K)throw new TypeError("callback is not a function");j=(null==j?g():+j)+(null==st?0:+st),!this._next&&t!==this&&(t?t._next=this:p=this,t=this),this._call=K,this._time=j,H()},stop:function(){this._call&&(this._call=null,this._time=1/0,H())}}},90268:(w,D,s)=>{"use strict";s.d(D,{M:()=>m,Z:()=>_});var c=s(37656),x=s(62681);function _(p,t){return((0,x.v)(t)?x.Z:m)(p,t)}function m(p,t){var u,d=t?t.length:0,l=p?Math.min(d,p.length):0,h=new Array(l),f=new Array(d);for(u=0;u{"use strict";function c(_,m,p,t,d){var l=_*_,h=l*_;return((1-3*_+3*l-h)*m+(4-6*l+3*h)*p+(1+3*_+3*l-3*h)*t+h*d)/6}function x(_){var m=_.length-1;return function(p){var t=p<=0?p=0:p>=1?(p=1,m-1):Math.floor(p*m),d=_[t],l=_[t+1];return c((p-t/m)*m,t>0?_[t-1]:2*d-l,d,l,tx,t:()=>c})},68523:(w,D,s)=>{"use strict";s.d(D,{Z:()=>x});var c=s(16712);function x(_){var m=_.length;return function(p){var t=Math.floor(((p%=1)<0?++p:p)*m);return(0,c.t)((p-t/m)*m,_[(t+m-1)%m],_[t%m],_[(t+1)%m],_[(t+2)%m])}}},35147:(w,D,s)=>{"use strict";s.d(D,{ZP:()=>t,wx:()=>m,yi:()=>p});var c=s(47927);function x(d,l){return function(h){return d+h*l}}function m(d,l){var h=l-d;return h?x(d,h>180||h<-180?h-360*Math.round(h/360):h):(0,c.Z)(isNaN(d)?l:d)}function p(d){return 1==(d=+d)?t:function(l,h){return h-l?function _(d,l,h){return d=Math.pow(d,h),l=Math.pow(l,h)-d,h=1/h,function(f){return Math.pow(d+f*l,h)}}(l,h,d):(0,c.Z)(isNaN(l)?h:l)}}function t(d,l){var h=l-d;return h?x(d,h):(0,c.Z)(isNaN(d)?l:d)}},47927:(w,D,s)=>{"use strict";s.d(D,{Z:()=>c});const c=x=>()=>x},15629:(w,D,s)=>{"use strict";function c(x,_){var m=new Date;return x=+x,_=+_,function(p){return m.setTime(x*(1-p)+_*p),m}}s.d(D,{Z:()=>c})},46176:(w,D,s)=>{"use strict";s.r(D),s.d(D,{interpolate:()=>c.Z,interpolateArray:()=>x.Z,interpolateBasis:()=>_.Z,interpolateBasisClosed:()=>m.Z,interpolateCubehelix:()=>Ge,interpolateCubehelixLong:()=>an,interpolateDate:()=>p.Z,interpolateDiscrete:()=>t,interpolateHcl:()=>Ot,interpolateHclLong:()=>te,interpolateHsl:()=>Z,interpolateHslLong:()=>H,interpolateHue:()=>l,interpolateLab:()=>de,interpolateNumber:()=>h.Z,interpolateNumberArray:()=>f.Z,interpolateObject:()=>u.Z,interpolateRgb:()=>B.ZP,interpolateRgbBasis:()=>B.hD,interpolateRgbBasisClosed:()=>B.YD,interpolateRound:()=>g.Z,interpolateString:()=>C.Z,interpolateTransformCss:()=>L.Y,interpolateTransformSvg:()=>L.w,interpolateZoom:()=>I.Z,piecewise:()=>be,quantize:()=>ln});var c=s(37656),x=s(90268),_=s(16712),m=s(68523),p=s(15629);function t(Tt){var Wt=Tt.length;return function(ce){return Tt[Math.max(0,Math.min(Wt-1,Math.floor(ce*Wt)))]}}var d=s(35147);function l(Tt,Wt){var ce=(0,d.wx)(+Tt,+Wt);return function(_e){var ee=ce(_e);return ee-360*Math.floor(ee/360)}}var h=s(6738),f=s(62681),u=s(84858),g=s(84067),C=s(23096),L=s(75349),I=s(76257),B=s(86811),M=s(52786);function R(Tt){return function(Wt,ce){var _e=Tt((Wt=(0,M.Ym)(Wt)).h,(ce=(0,M.Ym)(ce)).h),ee=(0,d.ZP)(Wt.s,ce.s),Ze=(0,d.ZP)(Wt.l,ce.l),Ye=(0,d.ZP)(Wt.opacity,ce.opacity);return function(Tn){return Wt.h=_e(Tn),Wt.s=ee(Tn),Wt.l=Ze(Tn),Wt.opacity=Ye(Tn),Wt+""}}}const Z=R(d.wx);var H=R(d.ZP),G=s(68884);const tt=Math.PI/180,K=180/Math.PI,j=.96422,at=4/29,Y=6/29,nt=3*Y*Y;function q(Tt){if(Tt instanceof ut)return new ut(Tt.l,Tt.a,Tt.b,Tt.opacity);if(Tt instanceof Nt)return zt(Tt);Tt instanceof M.Ss||(Tt=(0,M.SU)(Tt));var Ze,Ye,Wt=Qt(Tt.r),ce=Qt(Tt.g),_e=Qt(Tt.b),ee=ft((.2225045*Wt+.7168786*ce+.0606169*_e)/1);return Wt===ce&&ce===_e?Ze=Ye=ee:(Ze=ft((.4360747*Wt+.3850649*ce+.1430804*_e)/j),Ye=ft((.0139322*Wt+.0971045*ce+.7141733*_e)/.82521)),new ut(116*ee-16,500*(Ze-ee),200*(ee-Ye),Tt.opacity)}function E(Tt,Wt,ce,_e){return 1===arguments.length?q(Tt):new ut(Tt,Wt,ce,_e??1)}function ut(Tt,Wt,ce,_e){this.l=+Tt,this.a=+Wt,this.b=+ce,this.opacity=+_e}function ft(Tt){return Tt>.008856451679035631?Math.pow(Tt,1/3):Tt/nt+at}function Dt(Tt){return Tt>Y?Tt*Tt*Tt:nt*(Tt-at)}function St(Tt){return 255*(Tt<=.0031308?12.92*Tt:1.055*Math.pow(Tt,1/2.4)-.055)}function Qt(Tt){return(Tt/=255)<=.04045?Tt/12.92:Math.pow((Tt+.055)/1.055,2.4)}function pe(Tt){if(Tt instanceof Nt)return new Nt(Tt.h,Tt.c,Tt.l,Tt.opacity);if(Tt instanceof ut||(Tt=q(Tt)),0===Tt.a&&0===Tt.b)return new Nt(NaN,0{"use strict";function c(x,_){return x=+x,_=+_,function(m){return x*(1-m)+_*m}}s.d(D,{Z:()=>c})},62681:(w,D,s)=>{"use strict";function c(_,m){m||(m=[]);var d,p=_?Math.min(m.length,_.length):0,t=m.slice();return function(l){for(d=0;dc,v:()=>x})},84858:(w,D,s)=>{"use strict";s.d(D,{Z:()=>x});var c=s(37656);function x(_,m){var d,p={},t={};for(d in(null===_||"object"!=typeof _)&&(_={}),(null===m||"object"!=typeof m)&&(m={}),m)d in _?p[d]=(0,c.Z)(_[d],m[d]):t[d]=m[d];return function(l){for(d in p)t[d]=p[d](l);return t}}},86811:(w,D,s)=>{"use strict";s.d(D,{YD:()=>l,ZP:()=>p,hD:()=>d});var c=s(52786),x=s(16712),_=s(68523),m=s(35147);const p=function h(f){var u=(0,m.yi)(f);function g(C,L){var I=u((C=(0,c.B8)(C)).r,(L=(0,c.B8)(L)).r),B=u(C.g,L.g),M=u(C.b,L.b),R=(0,m.ZP)(C.opacity,L.opacity);return function(Z){return C.r=I(Z),C.g=B(Z),C.b=M(Z),C.opacity=R(Z),C+""}}return g.gamma=h,g}(1);function t(h){return function(f){var I,B,u=f.length,g=new Array(u),C=new Array(u),L=new Array(u);for(I=0;I{"use strict";function c(x,_){return x=+x,_=+_,function(m){return Math.round(x*(1-m)+_*m)}}s.d(D,{Z:()=>c})},23096:(w,D,s)=>{"use strict";s.d(D,{Z:()=>t});var c=s(6738),x=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,_=new RegExp(x.source,"g");function t(d,l){var f,u,g,h=x.lastIndex=_.lastIndex=0,C=-1,L=[],I=[];for(d+="",l+="";(f=x.exec(d))&&(u=_.exec(l));)(g=u.index)>h&&(g=l.slice(h,g),L[C]?L[C]+=g:L[++C]=g),(f=f[0])===(u=u[0])?L[C]?L[C]+=u:L[++C]=u:(L[++C]=null,I.push({i:C,x:(0,c.Z)(f,u)})),h=_.lastIndex;return h{"use strict";s.d(D,{Y:()=>h,w:()=>f});var p,c=s(6738),x=180/Math.PI,_={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function m(u,g,C,L,I,B){var M,R,Z;return(M=Math.sqrt(u*u+g*g))&&(u/=M,g/=M),(Z=u*C+g*L)&&(C-=u*Z,L-=g*Z),(R=Math.sqrt(C*C+L*L))&&(C/=R,L/=R,Z/=R),u*L180?G+=360:G-H>180&&(H+=360),K.push({i:tt.push(I(tt)+"rotate(",null,L)-2,x:(0,c.Z)(H,G)})):G&&tt.push(I(tt)+"rotate("+G+L)}(H.rotate,G.rotate,tt,K),function R(H,G,tt,K){H!==G?K.push({i:tt.push(I(tt)+"skewX(",null,L)-2,x:(0,c.Z)(H,G)}):G&&tt.push(I(tt)+"skewX("+G+L)}(H.skewX,G.skewX,tt,K),function Z(H,G,tt,K,st,j){if(H!==tt||G!==K){var W=st.push(I(st)+"scale(",null,",",null,")");j.push({i:W-4,x:(0,c.Z)(H,tt)},{i:W-2,x:(0,c.Z)(G,K)})}else(1!==tt||1!==K)&&st.push(I(st)+"scale("+tt+","+K+")")}(H.scaleX,H.scaleY,G.scaleX,G.scaleY,tt,K),H=G=null,function(st){for(var et,j=-1,W=K.length;++j{"use strict";s.d(D,{Z:()=>f});var c=s(52786),x=s(86811),_=s(90268),m=s(15629),p=s(6738),t=s(84858),d=s(23096),l=s(47927),h=s(62681);function f(u,g){var L,C=typeof g;return null==g||"boolean"===C?(0,l.Z)(g):("number"===C?p.Z:"string"===C?(L=(0,c.ZP)(g))?(g=L,x.ZP):d.Z:g instanceof c.ZP?x.ZP:g instanceof Date?m.Z:(0,h.v)(g)?h.Z:Array.isArray(g)?_.M:"function"!=typeof g.valueOf&&"function"!=typeof g.toString||isNaN(g)?t.Z:p.Z)(u,g)}},76257:(w,D,s)=>{"use strict";function x(t){return((t=Math.exp(t))+1/t)/2}s.d(D,{Z:()=>p});const p=function t(d,l,h){function f(u,g){var tt,K,C=u[0],L=u[1],I=u[2],R=g[2],Z=g[0]-C,H=g[1]-L,G=Z*Z+H*H;if(G<1e-12)K=Math.log(R/I)/d,tt=function(Y){return[C+Y*Z,L+Y*H,I*Math.exp(d*Y*K)]};else{var st=Math.sqrt(G),j=(R*R-I*I+h*G)/(2*I*l*st),W=(R*R-I*I-h*G)/(2*R*l*st),et=Math.log(Math.sqrt(j*j+1)-j),at=Math.log(Math.sqrt(W*W+1)-W);K=(at-et)/d,tt=function(Y){var nt=Y*K,rt=x(et),q=I/(l*st)*(rt*function m(t){return((t=Math.exp(2*t))-1)/(t+1)}(d*nt+et)-function _(t){return((t=Math.exp(t))-1/t)/2}(et));return[C+q*Z,L+q*H,I*rt/x(d*nt+et)]}}return tt.duration=1e3*K*d/Math.SQRT2,tt}return f.rho=function(u){var g=Math.max(.001,+u),C=g*g;return t(g,C,C*C)},f}(Math.SQRT2,2,4)},38184:(w,D,s)=>{"use strict";s.r(D),s.d(D,{path:()=>d});const c=Math.PI,x=2*c,_=1e-6,m=x-_;function p(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function t(){return new p}p.prototype=t.prototype={constructor:p,moveTo:function(l,h){this._+="M"+(this._x0=this._x1=+l)+","+(this._y0=this._y1=+h)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(l,h){this._+="L"+(this._x1=+l)+","+(this._y1=+h)},quadraticCurveTo:function(l,h,f,u){this._+="Q"+ +l+","+ +h+","+(this._x1=+f)+","+(this._y1=+u)},bezierCurveTo:function(l,h,f,u,g,C){this._+="C"+ +l+","+ +h+","+ +f+","+ +u+","+(this._x1=+g)+","+(this._y1=+C)},arcTo:function(l,h,f,u,g){var C=this._x1,L=this._y1,I=(f=+f)-(l=+l),B=(u=+u)-(h=+h),M=C-l,R=L-h,Z=M*M+R*R;if((g=+g)<0)throw new Error("negative radius: "+g);if(null===this._x1)this._+="M"+(this._x1=l)+","+(this._y1=h);else if(Z>_)if(Math.abs(R*I-B*M)>_&&g){var H=f-C,G=u-L,tt=I*I+B*B,K=H*H+G*G,st=Math.sqrt(tt),j=Math.sqrt(Z),W=g*Math.tan((c-Math.acos((tt+Z-K)/(2*st*j)))/2),et=W/j,at=W/st;Math.abs(et-1)>_&&(this._+="L"+(l+et*M)+","+(h+et*R)),this._+="A"+g+","+g+",0,0,"+ +(R*H>M*G)+","+(this._x1=l+at*I)+","+(this._y1=h+at*B)}else this._+="L"+(this._x1=l)+","+(this._y1=h)},arc:function(l,h,f,u,g,C){l=+l,h=+h,C=!!C;var L=(f=+f)*Math.cos(u),I=f*Math.sin(u),B=l+L,M=h+I,R=1^C,Z=C?u-g:g-u;if(f<0)throw new Error("negative radius: "+f);null===this._x1?this._+="M"+B+","+M:(Math.abs(this._x1-B)>_||Math.abs(this._y1-M)>_)&&(this._+="L"+B+","+M),f&&(Z<0&&(Z=Z%x+x),Z>m?this._+="A"+f+","+f+",0,1,"+R+","+(l-L)+","+(h-I)+"A"+f+","+f+",0,1,"+R+","+(this._x1=B)+","+(this._y1=M):Z>_&&(this._+="A"+f+","+f+",0,"+ +(Z>=c)+","+R+","+(this._x1=l+f*Math.cos(g))+","+(this._y1=h+f*Math.sin(g))))},rect:function(l,h,f,u){this._+="M"+(this._x0=this._x1=+l)+","+(this._y0=this._y1=+h)+"h"+ +f+"v"+ +u+"h"+-f+"Z"},toString:function(){return this._}};const d=t},34638:(w,D,s)=>{"use strict";function c(x){return"object"==typeof x&&"length"in x?x:Array.from(x)}s.d(D,{Z:()=>c})},7500:(w,D,s)=>{"use strict";s.d(D,{Z:()=>p});var c=s(36175),x=s(53517);function _(t){return function(){var d=this.ownerDocument,l=this.namespaceURI;return l===x.P&&d.documentElement.namespaceURI===x.P?d.createElement(t):d.createElementNS(l,t)}}function m(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function p(t){var d=(0,c.Z)(t);return(d.local?m:_)(d)}},68557:(w,D,s)=>{"use strict";s.r(D),s.d(D,{create:()=>_,creator:()=>c.Z,local:()=>p,matcher:()=>d.Z,namespace:()=>l.Z,namespaces:()=>h.Z,pointer:()=>f.Z,pointers:()=>g,select:()=>x.Z,selectAll:()=>I,selection:()=>L.ZP,selector:()=>B.Z,selectorAll:()=>M.Z,style:()=>R.S,window:()=>Z.Z});var c=s(7500),x=s(52016);function _(H){return(0,x.Z)((0,c.Z)(H).call(document.documentElement))}var m=0;function p(){return new t}function t(){this._="@"+(++m).toString(36)}t.prototype=p.prototype={constructor:t,get:function(H){for(var G=this._;!(G in H);)if(!(H=H.parentNode))return;return H[G]},set:function(H,G){return H[this._]=G},remove:function(H){return this._ in H&&delete H[this._]},toString:function(){return this._}};var d=s(97905),l=s(36175),h=s(53517),f=s(29132),u=s(75819);function g(H,G){return H.target&&(H=(0,u.Z)(H),void 0===G&&(G=H.currentTarget),H=H.touches||[H]),Array.from(H,tt=>(0,f.Z)(tt,G))}var C=s(34638),L=s(37853);function I(H){return"string"==typeof H?new L.Y1([document.querySelectorAll(H)],[document.documentElement]):new L.Y1([null==H?[]:(0,C.Z)(H)],L.Jz)}var B=s(29742),M=s(32037),R=s(24476),Z=s(2442)},97905:(w,D,s)=>{"use strict";function c(_){return function(){return this.matches(_)}}function x(_){return function(m){return m.matches(_)}}s.d(D,{P:()=>x,Z:()=>c})},36175:(w,D,s)=>{"use strict";s.d(D,{Z:()=>x});var c=s(53517);function x(_){var m=_+="",p=m.indexOf(":");return p>=0&&"xmlns"!==(m=_.slice(0,p))&&(_=_.slice(p+1)),c.Z.hasOwnProperty(m)?{space:c.Z[m],local:_}:_}},53517:(w,D,s)=>{"use strict";s.d(D,{P:()=>c,Z:()=>x});var c="http://www.w3.org/1999/xhtml";const x={svg:"http://www.w3.org/2000/svg",xhtml:c,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}},29132:(w,D,s)=>{"use strict";s.d(D,{Z:()=>x});var c=s(75819);function x(_,m){if(_=(0,c.Z)(_),void 0===m&&(m=_.currentTarget),m){var p=m.ownerSVGElement||m;if(p.createSVGPoint){var t=p.createSVGPoint();return t.x=_.clientX,t.y=_.clientY,[(t=t.matrixTransform(m.getScreenCTM().inverse())).x,t.y]}if(m.getBoundingClientRect){var d=m.getBoundingClientRect();return[_.clientX-d.left-m.clientLeft,_.clientY-d.top-m.clientTop]}}return[_.pageX,_.pageY]}},52016:(w,D,s)=>{"use strict";s.d(D,{Z:()=>x});var c=s(37853);function x(_){return"string"==typeof _?new c.Y1([[document.querySelector(_)]],[document.documentElement]):new c.Y1([[_]],c.Jz)}},37853:(w,D,s)=>{"use strict";s.d(D,{Y1:()=>we,ZP:()=>pn,Jz:()=>Ln});var c=s(29742),_=s(34638),m=s(32037),d=s(97905),l=Array.prototype.find;function f(){return this.firstElementChild}var g=Array.prototype.filter;function C(){return this.children}function M(z){return new Array(z.length)}function Z(z,X){this.ownerDocument=z.ownerDocument,this.namespaceURI=z.namespaceURI,this._next=null,this._parent=z,this.__data__=X}function H(z){return function(){return z}}function G(z,X,lt,A,bt,Lt){for(var Gt,Pt=0,Jt=X.length,Yt=Lt.length;PtX?1:z>=X?0:NaN}Z.prototype={constructor:Z,appendChild:function(z){return this._parent.insertBefore(z,this._next)},insertBefore:function(z,X){return this._parent.insertBefore(z,X)},querySelector:function(z){return this._parent.querySelector(z)},querySelectorAll:function(z){return this._parent.querySelectorAll(z)}};var Dt=s(36175);function St(z){return function(){this.removeAttribute(z)}}function Qt(z){return function(){this.removeAttributeNS(z.space,z.local)}}function pe(z,X){return function(){this.setAttribute(z,X)}}function wt(z,X){return function(){this.setAttributeNS(z.space,z.local,X)}}function yt(z,X){return function(){var lt=X.apply(this,arguments);null==lt?this.removeAttribute(z):this.setAttribute(z,lt)}}function Nt(z,X){return function(){var lt=X.apply(this,arguments);null==lt?this.removeAttributeNS(z.space,z.local):this.setAttributeNS(z.space,z.local,lt)}}var de=s(24476);function ie(z){return function(){delete this[z]}}function Ot(z,X){return function(){this[z]=X}}function te(z,X){return function(){var lt=X.apply(this,arguments);null==lt?delete this[z]:this[z]=lt}}function se(z){return z.trim().split(/^|\s+/)}function At(z){return z.classList||new Ht(z)}function Ht(z){this._node=z,this._names=se(z.getAttribute("class")||"")}function Zt(z,X){for(var lt=At(z),A=-1,bt=X.length;++A=0&&(this._names.splice(X,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(z){return this._names.indexOf(z)>=0}};var Ye=s(7500);function oi(){return null}function mi(){var z=this.parentNode;z&&z.removeChild(this)}function Si(){var z=this.cloneNode(!1),X=this.parentNode;return X?X.insertBefore(z,this.nextSibling):z}function qi(){var z=this.cloneNode(!0),X=this.parentNode;return X?X.insertBefore(z,this.nextSibling):z}function Qi(z){return z.trim().split(/^|\s+/).map(function(X){var lt="",A=X.indexOf(".");return A>=0&&(lt=X.slice(A+1),X=X.slice(0,A)),{type:X,name:lt}})}function Ri(z){return function(){var X=this.__on;if(X){for(var Lt,lt=0,A=-1,bt=X.length;lt=oe&&(oe=O+1);!(Ce=kt[oe])&&++oe=0;)(Pt=A[bt])&&(Lt&&4^Pt.compareDocumentPosition(Lt)&&Lt.parentNode.insertBefore(Pt,Lt),Lt=Pt);return this},sort:function Y(z){function X(pt,mt){return pt&&mt?z(pt.__data__,mt.__data__):!pt-!mt}z||(z=nt);for(var lt=this._groups,A=lt.length,bt=new Array(A),Lt=0;Lt1?this.each((null==X?ie:"function"==typeof X?te:Ot)(z,X)):this.node()[z]},classed:function Oe(z,X){var lt=se(z+"");if(arguments.length<2){for(var A=At(this.node()),bt=-1,Lt=lt.length;++bt{"use strict";s.d(D,{S:()=>t,Z:()=>p});var c=s(2442);function x(d){return function(){this.style.removeProperty(d)}}function _(d,l,h){return function(){this.style.setProperty(d,l,h)}}function m(d,l,h){return function(){var f=l.apply(this,arguments);null==f?this.style.removeProperty(d):this.style.setProperty(d,f,h)}}function p(d,l,h){return arguments.length>1?this.each((null==l?x:"function"==typeof l?m:_)(d,l,h??"")):t(this.node(),d)}function t(d,l){return d.style.getPropertyValue(l)||(0,c.Z)(d).getComputedStyle(d,null).getPropertyValue(l)}},29742:(w,D,s)=>{"use strict";function c(){}function x(_){return null==_?c:function(){return this.querySelector(_)}}s.d(D,{Z:()=>x})},32037:(w,D,s)=>{"use strict";function c(){return[]}function x(_){return null==_?c:function(){return this.querySelectorAll(_)}}s.d(D,{Z:()=>x})},75819:(w,D,s)=>{"use strict";function c(x){let _;for(;_=x.sourceEvent;)x=_;return x}s.d(D,{Z:()=>c})},2442:(w,D,s)=>{"use strict";function c(x){return x.ownerDocument&&x.ownerDocument.defaultView||x.document&&x||x.defaultView}s.d(D,{Z:()=>c})},73339:(w,D,s)=>{"use strict";s.d(D,{Z:()=>x});var c=s(49194);function x(_,m,p){var t=new c.B7;return t.restart(function(d){t.stop(),_(d+m)},m=null==m?0:+m,p),t}},49194:(w,D,s)=>{"use strict";s.d(D,{B7:()=>L,HT:()=>I,R8:()=>B,zO:()=>g});var p,t,c=0,x=0,_=0,d=0,l=0,h=0,f="object"==typeof performance&&performance.now?performance:Date,u="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(G){setTimeout(G,17)};function g(){return l||(u(C),l=f.now()+h)}function C(){l=0}function L(){this._call=this._time=this._next=null}function I(G,tt,K){var st=new L;return st.restart(G,tt,K),st}function B(){g(),++c;for(var tt,G=p;G;)(tt=l-G._time)>=0&&G._call.call(null,tt),G=G._next;--c}function M(){l=(d=f.now())+h,c=x=0;try{B()}finally{c=0,function Z(){for(var G,K,tt=p,st=1/0;tt;)tt._call?(st>tt._time&&(st=tt._time),G=tt,tt=tt._next):(K=tt._next,tt._next=null,tt=G?G._next=K:p=K);t=G,H(st)}(),l=0}}function R(){var G=f.now(),tt=G-d;tt>1e3&&(h-=tt,d=G)}function H(G){c||(x&&(x=clearTimeout(x)),G-l>24?(G<1/0&&(x=setTimeout(M,G-f.now()-h)),_&&(_=clearInterval(_))):(_||(d=f.now(),_=setInterval(R,1e3)),c=1,u(M)))}L.prototype=I.prototype={constructor:L,restart:function(G,tt,K){if("function"!=typeof G)throw new TypeError("callback is not a function");K=(null==K?g():+K)+(null==tt?0:+tt),!this._next&&t!==this&&(t?t._next=this:p=this,t=this),this._call=G,this._time=K,H()},stop:function(){this._call&&(this._call=null,this._time=1/0,H())}}},18429:(w,D,s)=>{"use strict";s.r(D),s.d(D,{active:()=>pn,interrupt:()=>Z,transition:()=>gn});var c=s(37853),x=s(25922),_=s(49194),m=s(73339),p=(0,x.Z)("start","end","cancel","interrupt"),t=[];function L(z,X,lt,A,bt,Lt){var Pt=z.__transition;if(Pt){if(lt in Pt)return}else z.__transition={};!function R(z,X,lt){var bt,A=z.__transition;function Pt(Yt){var Q,pt,mt,gt;if(1!==lt.state)return Jt();for(Q in A)if((gt=A[Q]).name===lt.name){if(3===gt.state)return(0,m.Z)(Pt);4===gt.state?(gt.state=6,gt.timer.stop(),gt.on.call("interrupt",z,z.__data__,gt.index,gt.group),delete A[Q]):+Q0)throw new Error("too late; already scheduled");return lt}function B(z,X){var lt=M(z,X);if(lt.state>3)throw new Error("too late; already running");return lt}function M(z,X){var lt=z.__transition;if(!lt||!(lt=lt[X]))throw new Error("transition not found");return lt}function Z(z,X){var A,bt,Pt,lt=z.__transition,Lt=!0;if(lt){for(Pt in X=null==X?null:X+"",lt)(A=lt[Pt]).name===X?(bt=A.state>2&&A.state<5,A.state=6,A.timer.stop(),A.on.call(bt?"interrupt":"cancel",z,z.__data__,A.index,A.group),delete lt[Pt]):Lt=!1;Lt&&delete z.__transition}}var G=s(75349),tt=s(36175);function K(z,X){var lt,A;return function(){var bt=B(this,z),Lt=bt.tween;if(Lt!==lt)for(var Pt=0,Gt=(A=lt=Lt).length;Pt=0&&(X=X.slice(0,lt)),!X||"start"===X})}(X)?I:B;return function(){var Pt=Lt(this,z),Gt=Pt.on;Gt!==A&&(bt=(A=Gt).copy()).on(X,lt),Pt.on=bt}}var an=s(29742),ln=s(32037),Wt=c.ZP.prototype.constructor,_e=s(24476);function Ze(z){return function(){this.style.removeProperty(z)}}function mi(z,X,lt){return function(A){this.style.setProperty(z,X.call(this,A),lt)}}function gi(z,X,lt){var A,bt;function Lt(){var Pt=X.apply(this,arguments);return Pt!==bt&&(A=(bt=Pt)&&mi(z,Pt,lt)),A}return Lt._value=X,Lt}function _i(z){return function(X){this.textContent=z.call(this,X)}}function Qi(z){var X,lt;function A(){var bt=z.apply(this,arguments);return bt!==lt&&(X=(lt=bt)&&_i(bt)),X}return A._value=z,A}var ji=0;function In(z,X,lt,A){this._groups=z,this._parents=X,this._name=lt,this._id=A}function gn(z){return(0,c.ZP)().transition(z)}function sn(){return++ji}var zn=c.ZP.prototype;In.prototype=gn.prototype={constructor:In,select:function be(z){var X=this._name,lt=this._id;"function"!=typeof z&&(z=(0,an.Z)(z));for(var A=this._groups,bt=A.length,Lt=new Array(bt),Pt=0;Pt1&&A.name===X)return new In([[z]],Nn,X,+bt);return null}},46041:(w,D,s)=>{"use strict";s.r(D),s.d(D,{zoom:()=>H,zoomIdentity:()=>f,zoomTransform:()=>u});var c=s(25922),x=s(56758),_=s(76257),m=s(52016),p=s(29132),t=s(18429);const d=G=>()=>G;function l(G,{sourceEvent:tt,target:K,transform:st,dispatch:j}){Object.defineProperties(this,{type:{value:G,enumerable:!0,configurable:!0},sourceEvent:{value:tt,enumerable:!0,configurable:!0},target:{value:K,enumerable:!0,configurable:!0},transform:{value:st,enumerable:!0,configurable:!0},_:{value:j}})}function h(G,tt,K){this.k=G,this.x=tt,this.y=K}h.prototype={constructor:h,scale:function(G){return 1===G?this:new h(this.k*G,this.x,this.y)},translate:function(G,tt){return 0===G&0===tt?this:new h(this.k,this.x+this.k*G,this.y+this.k*tt)},apply:function(G){return[G[0]*this.k+this.x,G[1]*this.k+this.y]},applyX:function(G){return G*this.k+this.x},applyY:function(G){return G*this.k+this.y},invert:function(G){return[(G[0]-this.x)/this.k,(G[1]-this.y)/this.k]},invertX:function(G){return(G-this.x)/this.k},invertY:function(G){return(G-this.y)/this.k},rescaleX:function(G){return G.copy().domain(G.range().map(this.invertX,this).map(G.invert,G))},rescaleY:function(G){return G.copy().domain(G.range().map(this.invertY,this).map(G.invert,G))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var f=new h(1,0,0);function u(G){for(;!G.__zoom;)if(!(G=G.parentNode))return f;return G.__zoom}function g(G){G.stopImmediatePropagation()}function C(G){G.preventDefault(),G.stopImmediatePropagation()}function L(G){return!(G.ctrlKey&&"wheel"!==G.type||G.button)}function I(){var G=this;return G instanceof SVGElement?(G=G.ownerSVGElement||G).hasAttribute("viewBox")?[[(G=G.viewBox.baseVal).x,G.y],[G.x+G.width,G.y+G.height]]:[[0,0],[G.width.baseVal.value,G.height.baseVal.value]]:[[0,0],[G.clientWidth,G.clientHeight]]}function B(){return this.__zoom||f}function M(G){return-G.deltaY*(1===G.deltaMode?.05:G.deltaMode?1:.002)*(G.ctrlKey?10:1)}function R(){return navigator.maxTouchPoints||"ontouchstart"in this}function Z(G,tt,K){var st=G.invertX(tt[0][0])-K[0][0],j=G.invertX(tt[1][0])-K[1][0],W=G.invertY(tt[0][1])-K[0][1],et=G.invertY(tt[1][1])-K[1][1];return G.translate(j>st?(st+j)/2:Math.min(0,st)||Math.max(0,j),et>W?(W+et)/2:Math.min(0,W)||Math.max(0,et))}function H(){var rt,q,F,G=L,tt=I,K=Z,st=M,j=R,W=[0,1/0],et=[[-1/0,-1/0],[1/0,1/0]],at=250,Y=_.Z,nt=(0,c.Z)("start","zoom","end"),E=500,ft=0,Dt=10;function St(At){At.property("__zoom",B).on("wheel.zoom",de).on("mousedown.zoom",ie).on("dblclick.zoom",Ot).filter(j).on("touchstart.zoom",te).on("touchmove.zoom",jt).on("touchend.zoom touchcancel.zoom",se).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function Qt(At,Ht){return(Ht=Math.max(W[0],Math.min(W[1],Ht)))===At.k?At:new h(Ht,At.x,At.y)}function pe(At,Ht,Zt){var Kt=Ht[0]-Zt[0]*At.k,xe=Ht[1]-Zt[1]*At.k;return Kt===At.x&&xe===At.y?At:new h(At.k,Kt,xe)}function wt(At){return[(+At[0][0]+ +At[1][0])/2,(+At[0][1]+ +At[1][1])/2]}function yt(At,Ht,Zt,Kt){At.on("start.zoom",function(){Nt(this,arguments).event(Kt).start()}).on("interrupt.zoom end.zoom",function(){Nt(this,arguments).event(Kt).end()}).tween("zoom",function(){var xe=this,Te=arguments,Le=Nt(xe,Te).event(Kt),Oe=tt.apply(xe,Te),Ee=null==Zt?wt(Oe):"function"==typeof Zt?Zt.apply(xe,Te):Zt,He=Math.max(Oe[1][0]-Oe[0][0],Oe[1][1]-Oe[0][1]),Ge=xe.__zoom,an="function"==typeof Ht?Ht.apply(xe,Te):Ht,be=Y(Ge.invert(Ee).concat(He/Ge.k),an.invert(Ee).concat(He/an.k));return function(ln){if(1===ln)ln=an;else{var Tt=be(ln),Wt=He/Tt[2];ln=new h(Wt,Ee[0]-Tt[0]*Wt,Ee[1]-Tt[1]*Wt)}Le.zoom(null,ln)}})}function Nt(At,Ht,Zt){return!Zt&&At.__zooming||new zt(At,Ht)}function zt(At,Ht){this.that=At,this.args=Ht,this.active=0,this.sourceEvent=null,this.extent=tt.apply(At,Ht),this.taps=0}function de(At,...Ht){if(G.apply(this,arguments)){var Zt=Nt(this,Ht).event(At),Kt=this.__zoom,xe=Math.max(W[0],Math.min(W[1],Kt.k*Math.pow(2,st.apply(this,arguments)))),Te=(0,p.Z)(At);if(Zt.wheel)(Zt.mouse[0][0]!==Te[0]||Zt.mouse[0][1]!==Te[1])&&(Zt.mouse[1]=Kt.invert(Zt.mouse[0]=Te)),clearTimeout(Zt.wheel);else{if(Kt.k===xe)return;Zt.mouse=[Te,Kt.invert(Te)],(0,t.interrupt)(this),Zt.start()}C(At),Zt.wheel=setTimeout(Le,150),Zt.zoom("mouse",K(pe(Qt(Kt,xe),Zt.mouse[0],Zt.mouse[1]),Zt.extent,et))}function Le(){Zt.wheel=null,Zt.end()}}function ie(At,...Ht){if(!F&&G.apply(this,arguments)){var Zt=Nt(this,Ht,!0).event(At),Kt=(0,m.Z)(At.view).on("mousemove.zoom",Ee,!0).on("mouseup.zoom",He,!0),xe=(0,p.Z)(At,Te),Te=At.currentTarget,Le=At.clientX,Oe=At.clientY;(0,x.Z)(At.view),g(At),Zt.mouse=[xe,this.__zoom.invert(xe)],(0,t.interrupt)(this),Zt.start()}function Ee(Ge){if(C(Ge),!Zt.moved){var an=Ge.clientX-Le,be=Ge.clientY-Oe;Zt.moved=an*an+be*be>ft}Zt.event(Ge).zoom("mouse",K(pe(Zt.that.__zoom,Zt.mouse[0]=(0,p.Z)(Ge,Te),Zt.mouse[1]),Zt.extent,et))}function He(Ge){Kt.on("mousemove.zoom mouseup.zoom",null),(0,x.D)(Ge.view,Zt.moved),C(Ge),Zt.event(Ge).end()}}function Ot(At,...Ht){if(G.apply(this,arguments)){var Zt=this.__zoom,Kt=(0,p.Z)(At.changedTouches?At.changedTouches[0]:At,this),xe=Zt.invert(Kt),Te=Zt.k*(At.shiftKey?.5:2),Le=K(pe(Qt(Zt,Te),Kt,xe),tt.apply(this,Ht),et);C(At),at>0?(0,m.Z)(this).transition().duration(at).call(yt,Le,Kt,At):(0,m.Z)(this).call(St.transform,Le,Kt,At)}}function te(At,...Ht){if(G.apply(this,arguments)){var Te,Le,Oe,Ee,Zt=At.touches,Kt=Zt.length,xe=Nt(this,Ht,At.changedTouches.length===Kt).event(At);for(g(At),Le=0;Le{w.exports={graphlib:s(36456),layout:s(14850),debug:s(71914),util:{time:s(11510).time,notime:s(11510).notime},version:s(28126)}},12234:(w,D,s)=>{"use strict";var c=s(45760),x=s(67365);w.exports={run:function _(t){var d="greedy"===t.graph().acyclicer?x(t,function l(h){return function(f){return h.edge(f).weight}}(t)):function m(t){var d=[],l={},h={};return c.forEach(t.nodes(),function f(u){c.has(h,u)||(h[u]=!0,l[u]=!0,c.forEach(t.outEdges(u),function(g){c.has(l,g.w)?d.push(g):f(g.w)}),delete l[u])}),d}(t);c.forEach(d,function(h){var f=t.edge(h);t.removeEdge(h),f.forwardName=h.name,f.reversed=!0,t.setEdge(h.w,h.v,f,c.uniqueId("rev"))})},undo:function p(t){c.forEach(t.edges(),function(d){var l=t.edge(d);if(l.reversed){t.removeEdge(d);var h=l.forwardName;delete l.reversed,delete l.forwardName,t.setEdge(d.w,d.v,l,h)}})}}},79999:(w,D,s)=>{var c=s(45760),x=s(11510);function m(p,t,d,l,h,f){var g=h[t][f-1],C=x.addDummyNode(p,"border",{width:0,height:0,rank:f,borderType:t},d);h[t][f]=C,p.setParent(C,l),g&&p.setEdge(g,C,{weight:1})}w.exports=function _(p){c.forEach(p.children(),function t(d){var l=p.children(d),h=p.node(d);if(l.length&&c.forEach(l,t),c.has(h,"minRank")){h.borderLeft=[],h.borderRight=[];for(var f=h.minRank,u=h.maxRank+1;f{"use strict";var c=s(45760);function m(f){c.forEach(f.nodes(),function(u){p(f.node(u))}),c.forEach(f.edges(),function(u){p(f.edge(u))})}function p(f){var u=f.width;f.width=f.height,f.height=u}function d(f){f.y=-f.y}function h(f){var u=f.x;f.x=f.y,f.y=u}w.exports={adjust:function x(f){var u=f.graph().rankdir.toLowerCase();("lr"===u||"rl"===u)&&m(f)},undo:function _(f){var u=f.graph().rankdir.toLowerCase();("bt"===u||"rl"===u)&&function t(f){c.forEach(f.nodes(),function(u){d(f.node(u))}),c.forEach(f.edges(),function(u){var g=f.edge(u);c.forEach(g.points,d),c.has(g,"y")&&d(g)})}(f),("lr"===u||"rl"===u)&&(function l(f){c.forEach(f.nodes(),function(u){h(f.node(u))}),c.forEach(f.edges(),function(u){var g=f.edge(u);c.forEach(g.points,h),c.has(g,"x")&&h(g)})}(f),m(f))}}},3226:w=>{function D(){var x={};x._next=x._prev=x,this._sentinel=x}function s(x){x._prev._next=x._next,x._next._prev=x._prev,delete x._next,delete x._prev}function c(x,_){if("_next"!==x&&"_prev"!==x)return _}w.exports=D,D.prototype.dequeue=function(){var x=this._sentinel,_=x._prev;if(_!==x)return s(_),_},D.prototype.enqueue=function(x){var _=this._sentinel;x._prev&&x._next&&s(x),x._next=_._next,_._next._prev=x,_._next=x,x._prev=_},D.prototype.toString=function(){for(var x=[],_=this._sentinel,m=_._prev;m!==_;)x.push(JSON.stringify(m,c)),m=m._prev;return"["+x.join(", ")+"]"}},71914:(w,D,s)=>{var c=s(45760),x=s(11510),_=s(36456).Graph;w.exports={debugOrdering:function m(p){var t=x.buildLayerMatrix(p),d=new _({compound:!0,multigraph:!0}).setGraph({});return c.forEach(p.nodes(),function(l){d.setNode(l,{label:l}),d.setParent(l,"layer"+p.node(l).rank)}),c.forEach(p.edges(),function(l){d.setEdge(l.v,l.w,{},l.name)}),c.forEach(t,function(l,h){d.setNode("layer"+h,{rank:"same"}),c.reduce(l,function(u,g){return d.setEdge(u,g,{style:"invis"}),g})}),d}}},36456:(w,D,s)=>{var c;try{c=s(85510)}catch{}c||(c=window.graphlib),w.exports=c},67365:(w,D,s)=>{var c=s(45760),x=s(36456).Graph,_=s(3226);w.exports=function p(f,u){if(f.nodeCount()<=1)return[];var g=function l(f,u){var g=new x,C=0,L=0;c.forEach(f.nodes(),function(M){g.setNode(M,{v:M,in:0,out:0})}),c.forEach(f.edges(),function(M){var R=g.edge(M.v,M.w)||0,Z=u(M);g.setEdge(M.v,M.w,R+Z),L=Math.max(L,g.node(M.v).out+=Z),C=Math.max(C,g.node(M.w).in+=Z)});var I=c.range(L+C+3).map(function(){return new _}),B=C+1;return c.forEach(g.nodes(),function(M){h(I,B,g.node(M))}),{graph:g,buckets:I,zeroIdx:B}}(f,u||m),C=function t(f,u,g){for(var B,C=[],L=u[u.length-1],I=u[0];f.nodeCount();){for(;B=I.dequeue();)d(f,u,g,B);for(;B=L.dequeue();)d(f,u,g,B);if(f.nodeCount())for(var M=u.length-2;M>0;--M)if(B=u[M].dequeue()){C=C.concat(d(f,u,g,B,!0));break}}return C}(g.graph,g.buckets,g.zeroIdx);return c.flatten(c.map(C,function(L){return f.outEdges(L.v,L.w)}),!0)};var m=c.constant(1);function d(f,u,g,C,L){var I=L?[]:void 0;return c.forEach(f.inEdges(C.v),function(B){var M=f.edge(B),R=f.node(B.v);L&&I.push({v:B.v,w:B.w}),R.out-=M,h(u,g,R)}),c.forEach(f.outEdges(C.v),function(B){var M=f.edge(B),Z=f.node(B.w);Z.in-=M,h(u,g,Z)}),f.removeNode(C.v),I}function h(f,u,g){g.out?g.in?f[g.out-g.in+u].enqueue(g):f[f.length-1].enqueue(g):f[0].enqueue(g)}},14850:(w,D,s)=>{"use strict";var c=s(45760),x=s(12234),_=s(91496),m=s(94124),p=s(11510).normalizeRanks,t=s(60162),d=s(11510).removeEmptyRanks,l=s(1230),h=s(79999),f=s(83870),u=s(32974),g=s(78226),C=s(11510),L=s(36456).Graph;w.exports=function I(wt,yt){var Nt=yt&&yt.debugTiming?C.time:C.notime;Nt("layout",function(){var zt=Nt(" buildLayoutGraph",function(){return function W(wt){var yt=new L({multigraph:!0,compound:!0}),Nt=pe(wt.graph());return yt.setGraph(c.merge({},Z,Qt(Nt,R),c.pick(Nt,H))),c.forEach(wt.nodes(),function(zt){var de=pe(wt.node(zt));yt.setNode(zt,c.defaults(Qt(de,G),tt)),yt.setParent(zt,wt.parent(zt))}),c.forEach(wt.edges(),function(zt){var de=pe(wt.edge(zt));yt.setEdge(zt,c.merge({},st,Qt(de,K),c.pick(de,j)))}),yt}(wt)});Nt(" runLayout",function(){!function B(wt,yt){yt(" makeSpaceForEdgeLabels",function(){!function et(wt){var yt=wt.graph();yt.ranksep/=2,c.forEach(wt.edges(),function(Nt){var zt=wt.edge(Nt);zt.minlen*=2,"c"!==zt.labelpos.toLowerCase()&&("TB"===yt.rankdir||"BT"===yt.rankdir?zt.width+=zt.labeloffset:zt.height+=zt.labeloffset)})}(wt)}),yt(" removeSelfEdges",function(){!function ft(wt){c.forEach(wt.edges(),function(yt){if(yt.v===yt.w){var Nt=wt.node(yt.v);Nt.selfEdges||(Nt.selfEdges=[]),Nt.selfEdges.push({e:yt,label:wt.edge(yt)}),wt.removeEdge(yt)}})}(wt)}),yt(" acyclic",function(){x.run(wt)}),yt(" nestingGraph.run",function(){l.run(wt)}),yt(" rank",function(){m(C.asNonCompoundGraph(wt))}),yt(" injectEdgeLabelProxies",function(){!function at(wt){c.forEach(wt.edges(),function(yt){var Nt=wt.edge(yt);if(Nt.width&&Nt.height){var zt=wt.node(yt.v),de=wt.node(yt.w);C.addDummyNode(wt,"edge-proxy",{rank:(de.rank-zt.rank)/2+zt.rank,e:yt},"_ep")}})}(wt)}),yt(" removeEmptyRanks",function(){d(wt)}),yt(" nestingGraph.cleanup",function(){l.cleanup(wt)}),yt(" normalizeRanks",function(){p(wt)}),yt(" assignRankMinMax",function(){!function Y(wt){var yt=0;c.forEach(wt.nodes(),function(Nt){var zt=wt.node(Nt);zt.borderTop&&(zt.minRank=wt.node(zt.borderTop).rank,zt.maxRank=wt.node(zt.borderBottom).rank,yt=c.max(yt,zt.maxRank))}),wt.graph().maxRank=yt}(wt)}),yt(" removeEdgeLabelProxies",function(){!function nt(wt){c.forEach(wt.nodes(),function(yt){var Nt=wt.node(yt);"edge-proxy"===Nt.dummy&&(wt.edge(Nt.e).labelRank=Nt.rank,wt.removeNode(yt))})}(wt)}),yt(" normalize.run",function(){_.run(wt)}),yt(" parentDummyChains",function(){t(wt)}),yt(" addBorderSegments",function(){h(wt)}),yt(" order",function(){u(wt)}),yt(" insertSelfEdges",function(){!function Dt(wt){var yt=C.buildLayerMatrix(wt);c.forEach(yt,function(Nt){var zt=0;c.forEach(Nt,function(de,ie){var Ot=wt.node(de);Ot.order=ie+zt,c.forEach(Ot.selfEdges,function(te){C.addDummyNode(wt,"selfedge",{width:te.label.width,height:te.label.height,rank:Ot.rank,order:ie+ ++zt,e:te.e,label:te.label},"_se")}),delete Ot.selfEdges})})}(wt)}),yt(" adjustCoordinateSystem",function(){f.adjust(wt)}),yt(" position",function(){g(wt)}),yt(" positionSelfEdges",function(){!function St(wt){c.forEach(wt.nodes(),function(yt){var Nt=wt.node(yt);if("selfedge"===Nt.dummy){var zt=wt.node(Nt.e.v),de=zt.x+zt.width/2,ie=zt.y,Ot=Nt.x-de,te=zt.height/2;wt.setEdge(Nt.e,Nt.label),wt.removeNode(yt),Nt.label.points=[{x:de+2*Ot/3,y:ie-te},{x:de+5*Ot/6,y:ie-te},{x:de+Ot,y:ie},{x:de+5*Ot/6,y:ie+te},{x:de+2*Ot/3,y:ie+te}],Nt.label.x=Nt.x,Nt.label.y=Nt.y}})}(wt)}),yt(" removeBorderNodes",function(){!function ut(wt){c.forEach(wt.nodes(),function(yt){if(wt.children(yt).length){var Nt=wt.node(yt),zt=wt.node(Nt.borderTop),de=wt.node(Nt.borderBottom),ie=wt.node(c.last(Nt.borderLeft)),Ot=wt.node(c.last(Nt.borderRight));Nt.width=Math.abs(Ot.x-ie.x),Nt.height=Math.abs(de.y-zt.y),Nt.x=ie.x+Nt.width/2,Nt.y=zt.y+Nt.height/2}}),c.forEach(wt.nodes(),function(yt){"border"===wt.node(yt).dummy&&wt.removeNode(yt)})}(wt)}),yt(" normalize.undo",function(){_.undo(wt)}),yt(" fixupEdgeLabelCoords",function(){!function F(wt){c.forEach(wt.edges(),function(yt){var Nt=wt.edge(yt);if(c.has(Nt,"x"))switch(("l"===Nt.labelpos||"r"===Nt.labelpos)&&(Nt.width-=Nt.labeloffset),Nt.labelpos){case"l":Nt.x-=Nt.width/2+Nt.labeloffset;break;case"r":Nt.x+=Nt.width/2+Nt.labeloffset}})}(wt)}),yt(" undoCoordinateSystem",function(){f.undo(wt)}),yt(" translateGraph",function(){!function rt(wt){var yt=Number.POSITIVE_INFINITY,Nt=0,zt=Number.POSITIVE_INFINITY,de=0,ie=wt.graph(),Ot=ie.marginx||0,te=ie.marginy||0;function jt(se){var At=se.x,Ht=se.y,Zt=se.width,Kt=se.height;yt=Math.min(yt,At-Zt/2),Nt=Math.max(Nt,At+Zt/2),zt=Math.min(zt,Ht-Kt/2),de=Math.max(de,Ht+Kt/2)}c.forEach(wt.nodes(),function(se){jt(wt.node(se))}),c.forEach(wt.edges(),function(se){var At=wt.edge(se);c.has(At,"x")&&jt(At)}),yt-=Ot,zt-=te,c.forEach(wt.nodes(),function(se){var At=wt.node(se);At.x-=yt,At.y-=zt}),c.forEach(wt.edges(),function(se){var At=wt.edge(se);c.forEach(At.points,function(Ht){Ht.x-=yt,Ht.y-=zt}),c.has(At,"x")&&(At.x-=yt),c.has(At,"y")&&(At.y-=zt)}),ie.width=Nt-yt+Ot,ie.height=de-zt+te}(wt)}),yt(" assignNodeIntersects",function(){!function q(wt){c.forEach(wt.edges(),function(yt){var ie,Ot,Nt=wt.edge(yt),zt=wt.node(yt.v),de=wt.node(yt.w);Nt.points?(ie=Nt.points[0],Ot=Nt.points[Nt.points.length-1]):(Nt.points=[],ie=de,Ot=zt),Nt.points.unshift(C.intersectRect(zt,ie)),Nt.points.push(C.intersectRect(de,Ot))})}(wt)}),yt(" reversePoints",function(){!function E(wt){c.forEach(wt.edges(),function(yt){var Nt=wt.edge(yt);Nt.reversed&&Nt.points.reverse()})}(wt)}),yt(" acyclic.undo",function(){x.undo(wt)})}(zt,Nt)}),Nt(" updateInputGraph",function(){!function M(wt,yt){c.forEach(wt.nodes(),function(Nt){var zt=wt.node(Nt),de=yt.node(Nt);zt&&(zt.x=de.x,zt.y=de.y,yt.children(Nt).length&&(zt.width=de.width,zt.height=de.height))}),c.forEach(wt.edges(),function(Nt){var zt=wt.edge(Nt),de=yt.edge(Nt);zt.points=de.points,c.has(de,"x")&&(zt.x=de.x,zt.y=de.y)}),wt.graph().width=yt.graph().width,wt.graph().height=yt.graph().height}(wt,zt)})})};var R=["nodesep","edgesep","ranksep","marginx","marginy"],Z={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},H=["acyclicer","ranker","rankdir","align"],G=["width","height"],tt={width:0,height:0},K=["minlen","weight","width","height","labeloffset"],st={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},j=["labelpos"];function Qt(wt,yt){return c.mapValues(c.pick(wt,yt),Number)}function pe(wt){var yt={};return c.forEach(wt,function(Nt,zt){yt[zt.toLowerCase()]=Nt}),yt}},45760:(w,D,s)=>{var c;try{c={cloneDeep:s(90733),constant:s(76684),defaults:s(28800),each:s(35474),filter:s(35281),find:s(62516),flatten:s(22274),forEach:s(89851),forIn:s(41176),has:s(54842),isUndefined:s(34235),last:s(25809),map:s(19984),mapValues:s(10203),max:s(18176),merge:s(80567),min:s(29439),minBy:s(29525),now:s(31710),pick:s(16372),range:s(90361),reduce:s(81337),sortBy:s(12906),uniqueId:s(51541),values:s(90377),zipObject:s(21617)}}catch{}c||(c=window._),w.exports=c},1230:(w,D,s)=>{var c=s(45760),x=s(11510);function m(l,h,f,u,g,C,L){var I=l.children(L);if(I.length){var B=x.addBorderNode(l,"_bt"),M=x.addBorderNode(l,"_bb"),R=l.node(L);l.setParent(B,L),R.borderTop=B,l.setParent(M,L),R.borderBottom=M,c.forEach(I,function(Z){m(l,h,f,u,g,C,Z);var H=l.node(Z),G=H.borderTop?H.borderTop:Z,tt=H.borderBottom?H.borderBottom:Z,K=H.borderTop?u:2*u,st=G!==tt?1:g-C[L]+1;l.setEdge(B,G,{weight:K,minlen:st,nestingEdge:!0}),l.setEdge(tt,M,{weight:K,minlen:st,nestingEdge:!0})}),l.parent(L)||l.setEdge(h,B,{weight:0,minlen:g+C[L]})}else L!==h&&l.setEdge(h,L,{weight:0,minlen:f})}w.exports={run:function _(l){var h=x.addDummyNode(l,"root",{},"_root"),f=function p(l){var h={};function f(u,g){var C=l.children(u);C&&C.length&&c.forEach(C,function(L){f(L,g+1)}),h[u]=g}return c.forEach(l.children(),function(u){f(u,1)}),h}(l),u=c.max(c.values(f))-1,g=2*u+1;l.graph().nestingRoot=h,c.forEach(l.edges(),function(L){l.edge(L).minlen*=g});var C=function t(l){return c.reduce(l.edges(),function(h,f){return h+l.edge(f).weight},0)}(l)+1;c.forEach(l.children(),function(L){m(l,h,g,C,u,f,L)}),l.graph().nodeRankFactor=g},cleanup:function d(l){var h=l.graph();l.removeNode(h.nestingRoot),delete h.nestingRoot,c.forEach(l.edges(),function(f){l.edge(f).nestingEdge&&l.removeEdge(f)})}}},91496:(w,D,s)=>{"use strict";var c=s(45760),x=s(11510);w.exports={run:function _(t){t.graph().dummyChains=[],c.forEach(t.edges(),function(d){!function m(t,d){var l=d.v,h=t.node(l).rank,f=d.w,u=t.node(f).rank,g=d.name,C=t.edge(d),L=C.labelRank;if(u!==h+1){var I,B,M;for(t.removeEdge(d),M=0,++h;h{var c=s(45760);w.exports=function x(_,m,p){var d,t={};c.forEach(p,function(l){for(var f,u,h=_.parent(l);h;){if((f=_.parent(h))?(u=t[f],t[f]=h):(u=d,d=h),u&&u!==h)return void m.setEdge(u,h);h=f}})}},81323:(w,D,s)=>{var c=s(45760);w.exports=function x(_,m){return c.map(m,function(p){var t=_.inEdges(p);if(t.length){var d=c.reduce(t,function(l,h){var f=_.edge(h),u=_.node(h.v);return{sum:l.sum+f.weight*u.order,weight:l.weight+f.weight}},{sum:0,weight:0});return{v:p,barycenter:d.sum/d.weight,weight:d.weight}}return{v:p}})}},1686:(w,D,s)=>{var c=s(45760),x=s(36456).Graph;w.exports=function _(p,t,d){var l=function m(p){for(var t;p.hasNode(t=c.uniqueId("_root")););return t}(p),h=new x({compound:!0}).setGraph({root:l}).setDefaultNodeLabel(function(f){return p.node(f)});return c.forEach(p.nodes(),function(f){var u=p.node(f),g=p.parent(f);(u.rank===t||u.minRank<=t&&t<=u.maxRank)&&(h.setNode(f),h.setParent(f,g||l),c.forEach(p[d](f),function(C){var L=C.v===f?C.w:C.v,I=h.edge(L,f),B=c.isUndefined(I)?0:I.weight;h.setEdge(L,f,{weight:p.edge(C).weight+B})}),c.has(u,"minRank")&&h.setNode(f,{borderLeft:u.borderLeft[t],borderRight:u.borderRight[t]}))}),h}},18796:(w,D,s)=>{"use strict";var c=s(45760);function _(m,p,t){for(var d=c.zipObject(t,c.map(t,function(C,L){return L})),l=c.flatten(c.map(p,function(C){return c.sortBy(c.map(m.outEdges(C),function(L){return{pos:d[L.w],weight:m.edge(L).weight}}),"pos")}),!0),h=1;h0;)L%2&&(I+=u[L+1]),u[L=L-1>>1]+=C.weight;g+=C.weight*I})),g}w.exports=function x(m,p){for(var t=0,d=1;d{"use strict";var c=s(45760),x=s(49402),_=s(18796),m=s(61057),p=s(1686),t=s(33034),d=s(36456).Graph,l=s(11510);function f(C,L,I){return c.map(L,function(B){return p(C,B,I)})}function u(C,L){var I=new d;c.forEach(C,function(B){var M=B.graph().root,R=m(B,M,I,L);c.forEach(R.vs,function(Z,H){B.node(Z).order=H}),t(B,I,R.vs)})}function g(C,L){c.forEach(L,function(I){c.forEach(I,function(B,M){C.node(B).order=M})})}w.exports=function h(C){var L=l.maxRank(C),I=f(C,c.range(1,L+1),"inEdges"),B=f(C,c.range(L-1,-1,-1),"outEdges"),M=x(C);g(C,M);for(var Z,R=Number.POSITIVE_INFINITY,H=0,G=0;G<4;++H,++G){u(H%2?I:B,H%4>=2),M=l.buildLayerMatrix(C);var tt=_(C,M);tt{"use strict";var c=s(45760);w.exports=function x(_){var m={},p=c.filter(_.nodes(),function(f){return!_.children(f).length}),t=c.max(c.map(p,function(f){return _.node(f).rank})),d=c.map(c.range(t+1),function(){return[]}),h=c.sortBy(p,function(f){return _.node(f).rank});return c.forEach(h,function l(f){if(!c.has(m,f)){m[f]=!0;var u=_.node(f);d[u.rank].push(f),c.forEach(_.successors(f),l)}}),d}},83826:(w,D,s)=>{"use strict";var c=s(45760);w.exports=function x(p,t){var d={};return c.forEach(p,function(h,f){var u=d[h.v]={indegree:0,in:[],out:[],vs:[h.v],i:f};c.isUndefined(h.barycenter)||(u.barycenter=h.barycenter,u.weight=h.weight)}),c.forEach(t.edges(),function(h){var f=d[h.v],u=d[h.w];!c.isUndefined(f)&&!c.isUndefined(u)&&(u.indegree++,f.out.push(d[h.w]))}),function _(p){var t=[];function d(f){return function(u){u.merged||(c.isUndefined(u.barycenter)||c.isUndefined(f.barycenter)||u.barycenter>=f.barycenter)&&function m(p,t){var d=0,l=0;p.weight&&(d+=p.barycenter*p.weight,l+=p.weight),t.weight&&(d+=t.barycenter*t.weight,l+=t.weight),p.vs=t.vs.concat(p.vs),p.barycenter=d/l,p.weight=l,p.i=Math.min(t.i,p.i),t.merged=!0}(f,u)}}function l(f){return function(u){u.in.push(f),0==--u.indegree&&p.push(u)}}for(;p.length;){var h=p.pop();t.push(h),c.forEach(h.in.reverse(),d(h)),c.forEach(h.out,l(h))}return c.map(c.filter(t,function(f){return!f.merged}),function(f){return c.pick(f,["vs","i","barycenter","weight"])})}(c.filter(d,function(h){return!h.indegree}))}},61057:(w,D,s)=>{var c=s(45760),x=s(81323),_=s(83826),m=s(93803);w.exports=function p(l,h,f,u){var g=l.children(h),C=l.node(h),L=C?C.borderLeft:void 0,I=C?C.borderRight:void 0,B={};L&&(g=c.filter(g,function(tt){return tt!==L&&tt!==I}));var M=x(l,g);c.forEach(M,function(tt){if(l.children(tt.v).length){var K=p(l,tt.v,f,u);B[tt.v]=K,c.has(K,"barycenter")&&function d(l,h){c.isUndefined(l.barycenter)?(l.barycenter=h.barycenter,l.weight=h.weight):(l.barycenter=(l.barycenter*l.weight+h.barycenter*h.weight)/(l.weight+h.weight),l.weight+=h.weight)}(tt,K)}});var R=_(M,f);!function t(l,h){c.forEach(l,function(f){f.vs=c.flatten(f.vs.map(function(u){return h[u]?h[u].vs:u}),!0)})}(R,B);var Z=m(R,u);if(L&&(Z.vs=c.flatten([L,Z.vs,I],!0),l.predecessors(L).length)){var H=l.node(l.predecessors(L)[0]),G=l.node(l.predecessors(I)[0]);c.has(Z,"barycenter")||(Z.barycenter=0,Z.weight=0),Z.barycenter=(Z.barycenter*Z.weight+H.order+G.order)/(Z.weight+2),Z.weight+=2}return Z}},93803:(w,D,s)=>{var c=s(45760),x=s(11510);function m(t,d,l){for(var h;d.length&&(h=c.last(d)).i<=l;)d.pop(),t.push(h.vs),l++;return l}w.exports=function _(t,d){var l=x.partition(t,function(B){return c.has(B,"barycenter")}),h=l.lhs,f=c.sortBy(l.rhs,function(B){return-B.i}),u=[],g=0,C=0,L=0;h.sort(function p(t){return function(d,l){return d.barycenterl.barycenter?1:t?l.i-d.i:d.i-l.i}}(!!d)),L=m(u,f,L),c.forEach(h,function(B){L+=B.vs.length,u.push(B.vs),g+=B.barycenter*B.weight,C+=B.weight,L=m(u,f,L)});var I={vs:c.flatten(u,!0)};return C&&(I.barycenter=g/C,I.weight=C),I}},60162:(w,D,s)=>{var c=s(45760);w.exports=function x(p){var t=function m(p){var t={},d=0;return c.forEach(p.children(),function l(h){var f=d;c.forEach(p.children(h),l),t[h]={low:f,lim:d++}}),t}(p);c.forEach(p.graph().dummyChains,function(d){for(var l=p.node(d),h=l.edgeObj,f=function _(p,t,d,l){var C,L,h=[],f=[],u=Math.min(t[d].low,t[l].low),g=Math.max(t[d].lim,t[l].lim);C=d;do{C=p.parent(C),h.push(C)}while(C&&(t[C].low>u||g>t[C].lim));for(L=C,C=l;(C=p.parent(C))!==L;)f.push(C);return{path:h.concat(f.reverse()),lca:L}}(p,t,h.v,h.w),u=f.path,g=f.lca,C=0,L=u[C],I=!0;d!==h.w;){if(l=p.node(d),I){for(;(L=u[C])!==g&&p.node(L).maxRank{"use strict";var c=s(45760),x=s(36456).Graph,_=s(11510);function m(R,Z){var H={};return c.reduce(Z,function G(tt,K){var st=0,j=0,W=tt.length,et=c.last(K);return c.forEach(K,function(at,Y){var nt=function t(R,Z){if(R.node(Z).dummy)return c.find(R.predecessors(Z),function(H){return R.node(H).dummy})}(R,at),rt=nt?R.node(nt).order:W;(nt||at===et)&&(c.forEach(K.slice(j,Y+1),function(q){c.forEach(R.predecessors(q),function(F){var E=R.node(F),ut=E.order;(utet)&&d(H,nt,at)})})}return c.reduce(Z,function tt(K,st){var W,j=-1,et=0;return c.forEach(st,function(at,Y){if("border"===R.node(at).dummy){var nt=R.predecessors(at);nt.length&&(W=R.node(nt[0]).order,G(st,et,Y,j,W),et=Y,j=W)}G(st,et,st.length,W,K.length)}),st}),H}function d(R,Z,H){if(Z>H){var G=Z;Z=H,H=G}var tt=R[Z];tt||(R[Z]=tt={}),tt[H]=!0}function l(R,Z,H){if(Z>H){var G=Z;Z=H,H=G}return c.has(R[Z],H)}function h(R,Z,H,G){var tt={},K={},st={};return c.forEach(Z,function(j){c.forEach(j,function(W,et){tt[W]=W,K[W]=W,st[W]=et})}),c.forEach(Z,function(j){var W=-1;c.forEach(j,function(et){var at=G(et);if(at.length)for(var Y=((at=c.sortBy(at,function(F){return st[F]})).length-1)/2,nt=Math.floor(Y),rt=Math.ceil(Y);nt<=rt;++nt){var q=at[nt];K[et]===et&&W{"use strict";var c=s(45760),x=s(11510),_=s(54058).positionX;w.exports=function m(t){(function p(t){var d=x.buildLayerMatrix(t),l=t.graph().ranksep,h=0;c.forEach(d,function(f){var u=c.max(c.map(f,function(g){return t.node(g).height}));c.forEach(f,function(g){t.node(g).y=h+u/2}),h+=u+l})})(t=x.asNonCompoundGraph(t)),c.forEach(_(t),function(d,l){t.node(l).x=d})}},96632:(w,D,s)=>{"use strict";var c=s(45760),x=s(36456).Graph,_=s(1916).slack;function p(l,h){return c.forEach(l.nodes(),function f(u){c.forEach(h.nodeEdges(u),function(g){var C=g.v,L=u===C?g.w:C;!l.hasNode(L)&&!_(h,g)&&(l.setNode(L,{}),l.setEdge(u,L,{}),f(L))})}),l.nodeCount()}function t(l,h){return c.minBy(h.edges(),function(f){if(l.hasNode(f.v)!==l.hasNode(f.w))return _(h,f)})}function d(l,h,f){c.forEach(l.nodes(),function(u){h.node(u).rank+=f})}w.exports=function m(l){var g,C,h=new x({directed:!1}),f=l.nodes()[0],u=l.nodeCount();for(h.setNode(f,{});p(h,l){"use strict";var x=s(1916).longestPath,_=s(96632),m=s(63804);w.exports=function p(h){switch(h.graph().ranker){case"network-simplex":default:!function l(h){m(h)}(h);break;case"tight-tree":!function d(h){x(h),_(h)}(h);break;case"longest-path":t(h)}};var t=x},63804:(w,D,s)=>{"use strict";var c=s(45760),x=s(96632),_=s(1916).slack,m=s(1916).longestPath,p=s(36456).alg.preorder,t=s(36456).alg.postorder,d=s(11510).simplify;function l(H){H=d(H),m(H);var tt,G=x(H);for(g(G),h(G,H);tt=L(G);)B(G,H,tt,I(G,H,tt))}function h(H,G){var tt=t(H,H.nodes());tt=tt.slice(0,tt.length-1),c.forEach(tt,function(K){!function f(H,G,tt){var K=H.node(tt);H.edge(tt,K.parent).cutvalue=u(H,G,tt)}(H,G,K)})}function u(H,G,tt){var st=H.node(tt).parent,j=!0,W=G.edge(tt,st),et=0;return W||(j=!1,W=G.edge(st,tt)),et=W.weight,c.forEach(G.nodeEdges(tt),function(at){var Y=at.v===tt,nt=Y?at.w:at.v;if(nt!==st){var rt=Y===j,q=G.edge(at).weight;if(et+=rt?q:-q,function R(H,G,tt){return H.hasEdge(G,tt)}(H,tt,nt)){var F=H.edge(tt,nt).cutvalue;et+=rt?-F:F}}}),et}function g(H,G){arguments.length<2&&(G=H.nodes()[0]),C(H,{},1,G)}function C(H,G,tt,K,st){var j=tt,W=H.node(K);return G[K]=!0,c.forEach(H.neighbors(K),function(et){c.has(G,et)||(tt=C(H,G,tt,et,K))}),W.low=j,W.lim=tt++,st?W.parent=st:delete W.parent,tt}function L(H){return c.find(H.edges(),function(G){return H.edge(G).cutvalue<0})}function I(H,G,tt){var K=tt.v,st=tt.w;G.hasEdge(K,st)||(K=tt.w,st=tt.v);var j=H.node(K),W=H.node(st),et=j,at=!1;j.lim>W.lim&&(et=W,at=!0);var Y=c.filter(G.edges(),function(nt){return at===Z(0,H.node(nt.v),et)&&at!==Z(0,H.node(nt.w),et)});return c.minBy(Y,function(nt){return _(G,nt)})}function B(H,G,tt,K){H.removeEdge(tt.v,tt.w),H.setEdge(K.v,K.w,{}),g(H),h(H,G),function M(H,G){var tt=c.find(H.nodes(),function(st){return!G.node(st).parent}),K=p(H,tt);K=K.slice(1),c.forEach(K,function(st){var j=H.node(st).parent,W=G.edge(st,j),et=!1;W||(W=G.edge(j,st),et=!0),G.node(st).rank=G.node(j).rank+(et?W.minlen:-W.minlen)})}(H,G)}function Z(H,G,tt){return tt.low<=G.lim&&G.lim<=tt.lim}w.exports=l,l.initLowLimValues=g,l.initCutValues=h,l.calcCutValue=u,l.leaveEdge=L,l.enterEdge=I,l.exchangeEdges=B},1916:(w,D,s)=>{"use strict";var c=s(45760);w.exports={longestPath:function x(m){var p={};c.forEach(m.sources(),function t(d){var l=m.node(d);if(c.has(p,d))return l.rank;p[d]=!0;var h=c.min(c.map(m.outEdges(d),function(f){return t(f.w)-m.edge(f).minlen}));return(h===Number.POSITIVE_INFINITY||null==h)&&(h=0),l.rank=h})},slack:function _(m,p){return m.node(p.w).rank-m.node(p.v).rank-m.edge(p).minlen}}},11510:(w,D,s)=>{"use strict";var c=s(45760),x=s(36456).Graph;function _(M,R,Z,H){var G;do{G=c.uniqueId(H)}while(M.hasNode(G));return Z.dummy=R,M.setNode(G,Z),G}function C(M){return c.max(c.map(M.nodes(),function(R){var Z=M.node(R).rank;if(!c.isUndefined(Z))return Z}))}w.exports={addDummyNode:_,simplify:function m(M){var R=(new x).setGraph(M.graph());return c.forEach(M.nodes(),function(Z){R.setNode(Z,M.node(Z))}),c.forEach(M.edges(),function(Z){var H=R.edge(Z.v,Z.w)||{weight:0,minlen:1},G=M.edge(Z);R.setEdge(Z.v,Z.w,{weight:H.weight+G.weight,minlen:Math.max(H.minlen,G.minlen)})}),R},asNonCompoundGraph:function p(M){var R=new x({multigraph:M.isMultigraph()}).setGraph(M.graph());return c.forEach(M.nodes(),function(Z){M.children(Z).length||R.setNode(Z,M.node(Z))}),c.forEach(M.edges(),function(Z){R.setEdge(Z,M.edge(Z))}),R},successorWeights:function t(M){var R=c.map(M.nodes(),function(Z){var H={};return c.forEach(M.outEdges(Z),function(G){H[G.w]=(H[G.w]||0)+M.edge(G).weight}),H});return c.zipObject(M.nodes(),R)},predecessorWeights:function d(M){var R=c.map(M.nodes(),function(Z){var H={};return c.forEach(M.inEdges(Z),function(G){H[G.v]=(H[G.v]||0)+M.edge(G).weight}),H});return c.zipObject(M.nodes(),R)},intersectRect:function l(M,R){var j,W,Z=M.x,H=M.y,G=R.x-Z,tt=R.y-H,K=M.width/2,st=M.height/2;if(!G&&!tt)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(tt)*K>Math.abs(G)*st?(tt<0&&(st=-st),j=st*G/tt,W=st):(G<0&&(K=-K),j=K,W=K*tt/G),{x:Z+j,y:H+W}},buildLayerMatrix:function h(M){var R=c.map(c.range(C(M)+1),function(){return[]});return c.forEach(M.nodes(),function(Z){var H=M.node(Z),G=H.rank;c.isUndefined(G)||(R[G][H.order]=Z)}),R},normalizeRanks:function f(M){var R=c.min(c.map(M.nodes(),function(Z){return M.node(Z).rank}));c.forEach(M.nodes(),function(Z){var H=M.node(Z);c.has(H,"rank")&&(H.rank-=R)})},removeEmptyRanks:function u(M){var R=c.min(c.map(M.nodes(),function(tt){return M.node(tt).rank})),Z=[];c.forEach(M.nodes(),function(tt){var K=M.node(tt).rank-R;Z[K]||(Z[K]=[]),Z[K].push(tt)});var H=0,G=M.graph().nodeRankFactor;c.forEach(Z,function(tt,K){c.isUndefined(tt)&&K%G!=0?--H:H&&c.forEach(tt,function(st){M.node(st).rank+=H})})},addBorderNode:function g(M,R,Z,H){var G={width:0,height:0};return arguments.length>=4&&(G.rank=Z,G.order=H),_(M,"border",G,R)},maxRank:C,partition:function L(M,R){var Z={lhs:[],rhs:[]};return c.forEach(M,function(H){R(H)?Z.lhs.push(H):Z.rhs.push(H)}),Z},time:function I(M,R){var Z=c.now();try{return R()}finally{console.log(M+" time: "+(c.now()-Z)+"ms")}},notime:function B(M,R){return R()}}},28126:w=>{w.exports="0.8.5"},85510:(w,D,s)=>{var c=s(51838);w.exports={Graph:c.Graph,json:s(21088),alg:s(83430),version:c.version}},86730:(w,D,s)=>{var c=s(79138);w.exports=function x(_){var t,m={},p=[];function d(l){c.has(m,l)||(m[l]=!0,t.push(l),c.each(_.successors(l),d),c.each(_.predecessors(l),d))}return c.each(_.nodes(),function(l){t=[],d(l),t.length&&p.push(t)}),p}},22163:(w,D,s)=>{var c=s(79138);function _(m,p,t,d,l,h){c.has(d,p)||(d[p]=!0,t||h.push(p),c.each(l(p),function(f){_(m,f,t,d,l,h)}),t&&h.push(p))}w.exports=function x(m,p,t){c.isArray(p)||(p=[p]);var d=(m.isDirected()?m.successors:m.neighbors).bind(m),l=[],h={};return c.each(p,function(f){if(!m.hasNode(f))throw new Error("Graph does not have node: "+f);_(m,f,"post"===t,h,d,l)}),l}},25668:(w,D,s)=>{var c=s(61718),x=s(79138);w.exports=function _(m,p,t){return x.transform(m.nodes(),function(d,l){d[l]=c(m,l,p,t)},{})}},61718:(w,D,s)=>{var c=s(79138),x=s(31919);w.exports=function m(t,d,l,h){return function p(t,d,l,h){var g,C,f={},u=new x,L=function(I){var B=I.v!==g?I.v:I.w,M=f[B],R=l(I),Z=C.distance+R;if(R<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+I+" Weight: "+R);Z0&&(g=u.removeMin(),(C=f[g]).distance!==Number.POSITIVE_INFINITY);)h(g).forEach(L);return f}(t,String(d),l||_,h||function(f){return t.outEdges(f)})};var _=c.constant(1)},9611:(w,D,s)=>{var c=s(79138),x=s(73585);w.exports=function _(m){return c.filter(x(m),function(p){return p.length>1||1===p.length&&m.hasEdge(p[0],p[0])})}},22881:(w,D,s)=>{var c=s(79138);w.exports=function _(p,t,d){return function m(p,t,d){var l={},h=p.nodes();return h.forEach(function(f){l[f]={},l[f][f]={distance:0},h.forEach(function(u){f!==u&&(l[f][u]={distance:Number.POSITIVE_INFINITY})}),d(f).forEach(function(u){var g=u.v===f?u.w:u.v,C=t(u);l[f][g]={distance:C,predecessor:f}})}),h.forEach(function(f){var u=l[f];h.forEach(function(g){var C=l[g];h.forEach(function(L){var B=u[L],M=C[L],R=C[f].distance+B.distance;R{w.exports={components:s(86730),dijkstra:s(61718),dijkstraAll:s(25668),findCycles:s(9611),floydWarshall:s(22881),isAcyclic:s(46693),postorder:s(46694),preorder:s(5330),prim:s(46823),tarjan:s(73585),topsort:s(52180)}},46693:(w,D,s)=>{var c=s(52180);w.exports=function x(_){try{c(_)}catch(m){if(m instanceof c.CycleException)return!1;throw m}return!0}},46694:(w,D,s)=>{var c=s(22163);w.exports=function x(_,m){return c(_,m,"post")}},5330:(w,D,s)=>{var c=s(22163);w.exports=function x(_,m){return c(_,m,"pre")}},46823:(w,D,s)=>{var c=s(79138),x=s(66568),_=s(31919);w.exports=function m(p,t){var f,d=new x,l={},h=new _;function u(C){var L=C.v===f?C.w:C.v,I=h.priority(L);if(void 0!==I){var B=t(C);B0;){if(f=h.removeMin(),c.has(l,f))d.setEdge(f,l[f]);else{if(g)throw new Error("Input graph is not connected: "+p);g=!0}p.nodeEdges(f).forEach(u)}return d}},73585:(w,D,s)=>{var c=s(79138);w.exports=function x(_){var m=0,p=[],t={},d=[];function l(h){var f=t[h]={onStack:!0,lowlink:m,index:m++};if(p.push(h),_.successors(h).forEach(function(C){c.has(t,C)?t[C].onStack&&(f.lowlink=Math.min(f.lowlink,t[C].index)):(l(C),f.lowlink=Math.min(f.lowlink,t[C].lowlink))}),f.lowlink===f.index){var g,u=[];do{g=p.pop(),t[g].onStack=!1,u.push(g)}while(h!==g);d.push(u)}}return _.nodes().forEach(function(h){c.has(t,h)||l(h)}),d}},52180:(w,D,s)=>{var c=s(79138);function x(m){var p={},t={},d=[];if(c.each(m.sinks(),function l(h){if(c.has(t,h))throw new _;c.has(p,h)||(t[h]=!0,p[h]=!0,c.each(m.predecessors(h),l),delete t[h],d.push(h))}),c.size(p)!==m.nodeCount())throw new _;return d}function _(){}w.exports=x,x.CycleException=_,_.prototype=new Error},31919:(w,D,s)=>{var c=s(79138);function x(){this._arr=[],this._keyIndices={}}w.exports=x,x.prototype.size=function(){return this._arr.length},x.prototype.keys=function(){return this._arr.map(function(_){return _.key})},x.prototype.has=function(_){return c.has(this._keyIndices,_)},x.prototype.priority=function(_){var m=this._keyIndices[_];if(void 0!==m)return this._arr[m].priority},x.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},x.prototype.add=function(_,m){var p=this._keyIndices;if(_=String(_),!c.has(p,_)){var t=this._arr,d=t.length;return p[_]=d,t.push({key:_,priority:m}),this._decrease(d),!0}return!1},x.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var _=this._arr.pop();return delete this._keyIndices[_.key],this._heapify(0),_.key},x.prototype.decrease=function(_,m){var p=this._keyIndices[_];if(m>this._arr[p].priority)throw new Error("New priority is greater than current priority. Key: "+_+" Old: "+this._arr[p].priority+" New: "+m);this._arr[p].priority=m,this._decrease(p)},x.prototype._heapify=function(_){var m=this._arr,p=2*_,t=p+1,d=_;p>1].priority{"use strict";var c=s(79138);w.exports=p;var _="\0";function p(u){this._isDirected=!c.has(u,"directed")||u.directed,this._isMultigraph=!!c.has(u,"multigraph")&&u.multigraph,this._isCompound=!!c.has(u,"compound")&&u.compound,this._label=void 0,this._defaultNodeLabelFn=c.constant(void 0),this._defaultEdgeLabelFn=c.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[_]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function t(u,g){u[g]?u[g]++:u[g]=1}function d(u,g){--u[g]||delete u[g]}function l(u,g,C,L){var I=""+g,B=""+C;if(!u&&I>B){var M=I;I=B,B=M}return I+"\x01"+B+"\x01"+(c.isUndefined(L)?"\0":L)}function h(u,g,C,L){var I=""+g,B=""+C;if(!u&&I>B){var M=I;I=B,B=M}var R={v:I,w:B};return L&&(R.name=L),R}function f(u,g){return l(u,g.v,g.w,g.name)}p.prototype._nodeCount=0,p.prototype._edgeCount=0,p.prototype.isDirected=function(){return this._isDirected},p.prototype.isMultigraph=function(){return this._isMultigraph},p.prototype.isCompound=function(){return this._isCompound},p.prototype.setGraph=function(u){return this._label=u,this},p.prototype.graph=function(){return this._label},p.prototype.setDefaultNodeLabel=function(u){return c.isFunction(u)||(u=c.constant(u)),this._defaultNodeLabelFn=u,this},p.prototype.nodeCount=function(){return this._nodeCount},p.prototype.nodes=function(){return c.keys(this._nodes)},p.prototype.sources=function(){var u=this;return c.filter(this.nodes(),function(g){return c.isEmpty(u._in[g])})},p.prototype.sinks=function(){var u=this;return c.filter(this.nodes(),function(g){return c.isEmpty(u._out[g])})},p.prototype.setNodes=function(u,g){var C=arguments,L=this;return c.each(u,function(I){C.length>1?L.setNode(I,g):L.setNode(I)}),this},p.prototype.setNode=function(u,g){return c.has(this._nodes,u)?(arguments.length>1&&(this._nodes[u]=g),this):(this._nodes[u]=arguments.length>1?g:this._defaultNodeLabelFn(u),this._isCompound&&(this._parent[u]=_,this._children[u]={},this._children[_][u]=!0),this._in[u]={},this._preds[u]={},this._out[u]={},this._sucs[u]={},++this._nodeCount,this)},p.prototype.node=function(u){return this._nodes[u]},p.prototype.hasNode=function(u){return c.has(this._nodes,u)},p.prototype.removeNode=function(u){var g=this;if(c.has(this._nodes,u)){var C=function(L){g.removeEdge(g._edgeObjs[L])};delete this._nodes[u],this._isCompound&&(this._removeFromParentsChildList(u),delete this._parent[u],c.each(this.children(u),function(L){g.setParent(L)}),delete this._children[u]),c.each(c.keys(this._in[u]),C),delete this._in[u],delete this._preds[u],c.each(c.keys(this._out[u]),C),delete this._out[u],delete this._sucs[u],--this._nodeCount}return this},p.prototype.setParent=function(u,g){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(c.isUndefined(g))g=_;else{for(var C=g+="";!c.isUndefined(C);C=this.parent(C))if(C===u)throw new Error("Setting "+g+" as parent of "+u+" would create a cycle");this.setNode(g)}return this.setNode(u),this._removeFromParentsChildList(u),this._parent[u]=g,this._children[g][u]=!0,this},p.prototype._removeFromParentsChildList=function(u){delete this._children[this._parent[u]][u]},p.prototype.parent=function(u){if(this._isCompound){var g=this._parent[u];if(g!==_)return g}},p.prototype.children=function(u){if(c.isUndefined(u)&&(u=_),this._isCompound){var g=this._children[u];if(g)return c.keys(g)}else{if(u===_)return this.nodes();if(this.hasNode(u))return[]}},p.prototype.predecessors=function(u){var g=this._preds[u];if(g)return c.keys(g)},p.prototype.successors=function(u){var g=this._sucs[u];if(g)return c.keys(g)},p.prototype.neighbors=function(u){var g=this.predecessors(u);if(g)return c.union(g,this.successors(u))},p.prototype.isLeaf=function(u){return 0===(this.isDirected()?this.successors(u):this.neighbors(u)).length},p.prototype.filterNodes=function(u){var g=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});g.setGraph(this.graph());var C=this;c.each(this._nodes,function(B,M){u(M)&&g.setNode(M,B)}),c.each(this._edgeObjs,function(B){g.hasNode(B.v)&&g.hasNode(B.w)&&g.setEdge(B,C.edge(B))});var L={};function I(B){var M=C.parent(B);return void 0===M||g.hasNode(M)?(L[B]=M,M):M in L?L[M]:I(M)}return this._isCompound&&c.each(g.nodes(),function(B){g.setParent(B,I(B))}),g},p.prototype.setDefaultEdgeLabel=function(u){return c.isFunction(u)||(u=c.constant(u)),this._defaultEdgeLabelFn=u,this},p.prototype.edgeCount=function(){return this._edgeCount},p.prototype.edges=function(){return c.values(this._edgeObjs)},p.prototype.setPath=function(u,g){var C=this,L=arguments;return c.reduce(u,function(I,B){return L.length>1?C.setEdge(I,B,g):C.setEdge(I,B),B}),this},p.prototype.setEdge=function(){var u,g,C,L,I=!1,B=arguments[0];"object"==typeof B&&null!==B&&"v"in B?(u=B.v,g=B.w,C=B.name,2===arguments.length&&(L=arguments[1],I=!0)):(u=B,g=arguments[1],C=arguments[3],arguments.length>2&&(L=arguments[2],I=!0)),u=""+u,g=""+g,c.isUndefined(C)||(C=""+C);var M=l(this._isDirected,u,g,C);if(c.has(this._edgeLabels,M))return I&&(this._edgeLabels[M]=L),this;if(!c.isUndefined(C)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(u),this.setNode(g),this._edgeLabels[M]=I?L:this._defaultEdgeLabelFn(u,g,C);var R=h(this._isDirected,u,g,C);return u=R.v,g=R.w,Object.freeze(R),this._edgeObjs[M]=R,t(this._preds[g],u),t(this._sucs[u],g),this._in[g][M]=R,this._out[u][M]=R,this._edgeCount++,this},p.prototype.edge=function(u,g,C){var L=1===arguments.length?f(this._isDirected,arguments[0]):l(this._isDirected,u,g,C);return this._edgeLabels[L]},p.prototype.hasEdge=function(u,g,C){var L=1===arguments.length?f(this._isDirected,arguments[0]):l(this._isDirected,u,g,C);return c.has(this._edgeLabels,L)},p.prototype.removeEdge=function(u,g,C){var L=1===arguments.length?f(this._isDirected,arguments[0]):l(this._isDirected,u,g,C),I=this._edgeObjs[L];return I&&(u=I.v,g=I.w,delete this._edgeLabels[L],delete this._edgeObjs[L],d(this._preds[g],u),d(this._sucs[u],g),delete this._in[g][L],delete this._out[u][L],this._edgeCount--),this},p.prototype.inEdges=function(u,g){var C=this._in[u];if(C){var L=c.values(C);return g?c.filter(L,function(I){return I.v===g}):L}},p.prototype.outEdges=function(u,g){var C=this._out[u];if(C){var L=c.values(C);return g?c.filter(L,function(I){return I.w===g}):L}},p.prototype.nodeEdges=function(u,g){var C=this.inEdges(u,g);if(C)return C.concat(this.outEdges(u,g))}},51838:(w,D,s)=>{w.exports={Graph:s(66568),version:s(75089)}},21088:(w,D,s)=>{var c=s(79138),x=s(66568);function m(d){return c.map(d.nodes(),function(l){var h=d.node(l),f=d.parent(l),u={v:l};return c.isUndefined(h)||(u.value=h),c.isUndefined(f)||(u.parent=f),u})}function p(d){return c.map(d.edges(),function(l){var h=d.edge(l),f={v:l.v,w:l.w};return c.isUndefined(l.name)||(f.name=l.name),c.isUndefined(h)||(f.value=h),f})}w.exports={write:function _(d){var l={options:{directed:d.isDirected(),multigraph:d.isMultigraph(),compound:d.isCompound()},nodes:m(d),edges:p(d)};return c.isUndefined(d.graph())||(l.value=c.clone(d.graph())),l},read:function t(d){var l=new x(d.options).setGraph(d.value);return c.each(d.nodes,function(h){l.setNode(h.v,h.value),h.parent&&l.setParent(h.v,h.parent)}),c.each(d.edges,function(h){l.setEdge({v:h.v,w:h.w,name:h.name},h.value)}),l}}},79138:(w,D,s)=>{var c;try{c={clone:s(11094),constant:s(76684),each:s(35474),filter:s(35281),has:s(54842),isArray:s(21503),isEmpty:s(71973),isFunction:s(75946),isUndefined:s(34235),keys:s(118),map:s(19984),reduce:s(81337),size:s(55637),transform:s(89416),union:s(68921),values:s(90377)}}catch{}c||(c=window._),w.exports=c},75089:w=>{w.exports="2.1.8"},50623:w=>{"use strict";w.exports=function(s){return null!=s&&"object"==typeof s&&!1===Array.isArray(s)}},52872:w=>{var D=Object.prototype.toString;function s(h){return"function"==typeof h.constructor?h.constructor.name:null}w.exports=function(f){if(void 0===f)return"undefined";if(null===f)return"null";var u=typeof f;if("boolean"===u)return"boolean";if("string"===u)return"string";if("number"===u)return"number";if("symbol"===u)return"symbol";if("function"===u)return function p(h,f){return"GeneratorFunction"===s(h)}(f)?"generatorfunction":"function";if(function c(h){return Array.isArray?Array.isArray(h):h instanceof Array}(f))return"array";if(function l(h){return!(!h.constructor||"function"!=typeof h.constructor.isBuffer)&&h.constructor.isBuffer(h)}(f))return"buffer";if(function d(h){try{if("number"==typeof h.length&&"function"==typeof h.callee)return!0}catch(f){if(-1!==f.message.indexOf("callee"))return!0}return!1}(f))return"arguments";if(function _(h){return h instanceof Date||"function"==typeof h.toDateString&&"function"==typeof h.getDate&&"function"==typeof h.setDate}(f))return"date";if(function x(h){return h instanceof Error||"string"==typeof h.message&&h.constructor&&"number"==typeof h.constructor.stackTraceLimit}(f))return"error";if(function m(h){return h instanceof RegExp||"string"==typeof h.flags&&"boolean"==typeof h.ignoreCase&&"boolean"==typeof h.multiline&&"boolean"==typeof h.global}(f))return"regexp";switch(s(f)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(function t(h){return"function"==typeof h.throw&&"function"==typeof h.return&&"function"==typeof h.next}(f))return"generator";switch(u=D.call(f)){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return u.slice(8,-1).toLowerCase().replace(/\s/g,"")}},37244:(w,D,s)=>{var _=s(53436)(s(12119),"DataView");w.exports=_},54994:(w,D,s)=>{var c=s(64312),x=s(46421),_=s(15764),m=s(18685),p=s(26676);function t(d){var l=-1,h=null==d?0:d.length;for(this.clear();++l{var c=s(41840),x=s(34378),_=s(54981),m=s(67343),p=s(98895);function t(d){var l=-1,h=null==d?0:d.length;for(this.clear();++l{var _=s(53436)(s(12119),"Map");w.exports=_},99850:(w,D,s)=>{var c=s(10638),x=s(11184),_=s(70866),m=s(43771),p=s(51772);function t(d){var l=-1,h=null==d?0:d.length;for(this.clear();++l{var _=s(53436)(s(12119),"Promise");w.exports=_},46323:(w,D,s)=>{var _=s(53436)(s(12119),"Set");w.exports=_},58849:(w,D,s)=>{var c=s(99850),x=s(4600),_=s(31387);function m(p){var t=-1,d=null==p?0:p.length;for(this.__data__=new c;++t{var c=s(9215),x=s(13720),_=s(64410),m=s(45576),p=s(22247),t=s(41585);function d(l){var h=this.__data__=new c(l);this.size=h.size}d.prototype.clear=x,d.prototype.delete=_,d.prototype.get=m,d.prototype.has=p,d.prototype.set=t,w.exports=d},60443:(w,D,s)=>{var c=s(12119);w.exports=c.Symbol},73457:(w,D,s)=>{var c=s(12119);w.exports=c.Uint8Array},24243:(w,D,s)=>{var _=s(53436)(s(12119),"WeakMap");w.exports=_},26999:w=>{w.exports=function D(s,c,x){switch(x.length){case 0:return s.call(c);case 1:return s.call(c,x[0]);case 2:return s.call(c,x[0],x[1]);case 3:return s.call(c,x[0],x[1],x[2])}return s.apply(c,x)}},96837:w=>{w.exports=function D(s,c){for(var x=-1,_=null==s?0:s.length;++x<_&&!1!==c(s[x],x,s););return s}},69779:w=>{w.exports=function D(s,c){for(var x=-1,_=null==s?0:s.length,m=0,p=[];++x<_;){var t=s[x];c(t,x,s)&&(p[m++]=t)}return p}},61253:(w,D,s)=>{var c=s(14164);w.exports=function x(_,m){return!(null==_||!_.length)&&c(_,m,0)>-1}},37609:w=>{w.exports=function D(s,c,x){for(var _=-1,m=null==s?0:s.length;++_{var c=s(85334),x=s(77151),_=s(21503),m=s(80891),p=s(58442),t=s(48159),l=Object.prototype.hasOwnProperty;w.exports=function h(f,u){var g=_(f),C=!g&&x(f),L=!g&&!C&&m(f),I=!g&&!C&&!L&&t(f),B=g||C||L||I,M=B?c(f.length,String):[],R=M.length;for(var Z in f)(u||l.call(f,Z))&&(!B||!("length"==Z||L&&("offset"==Z||"parent"==Z)||I&&("buffer"==Z||"byteLength"==Z||"byteOffset"==Z)||p(Z,R)))&&M.push(Z);return M}},84633:w=>{w.exports=function D(s,c){for(var x=-1,_=null==s?0:s.length,m=Array(_);++x<_;)m[x]=c(s[x],x,s);return m}},85059:w=>{w.exports=function D(s,c){for(var x=-1,_=c.length,m=s.length;++x<_;)s[m+x]=c[x];return s}},8745:w=>{w.exports=function D(s,c,x,_){var m=-1,p=null==s?0:s.length;for(_&&p&&(x=s[++m]);++m{w.exports=function D(s,c){for(var x=-1,_=null==s?0:s.length;++x<_;)if(c(s[x],x,s))return!0;return!1}},75481:(w,D,s)=>{var x=s(11847)("length");w.exports=x},49276:(w,D,s)=>{var c=s(85683),x=s(20217);w.exports=function _(m,p,t){(void 0!==t&&!x(m[p],t)||void 0===t&&!(p in m))&&c(m,p,t)}},89719:(w,D,s)=>{var c=s(85683),x=s(20217),m=Object.prototype.hasOwnProperty;w.exports=function p(t,d,l){var h=t[d];(!m.call(t,d)||!x(h,l)||void 0===l&&!(d in t))&&c(t,d,l)}},43503:(w,D,s)=>{var c=s(20217);w.exports=function x(_,m){for(var p=_.length;p--;)if(c(_[p][0],m))return p;return-1}},94121:(w,D,s)=>{var c=s(31989),x=s(118);w.exports=function _(m,p){return m&&c(p,x(p),m)}},99287:(w,D,s)=>{var c=s(31989),x=s(16555);w.exports=function _(m,p){return m&&c(p,x(p),m)}},85683:(w,D,s)=>{var c=s(56713);w.exports=function x(_,m,p){"__proto__"==m&&c?c(_,m,{configurable:!0,enumerable:!0,value:p,writable:!0}):_[m]=p}},44462:(w,D,s)=>{var c=s(2858),x=s(96837),_=s(89719),m=s(94121),p=s(99287),t=s(19292),d=s(99454),l=s(84444),h=s(59905),f=s(47597),u=s(6967),g=s(28794),C=s(76782),L=s(37878),I=s(4264),B=s(21503),M=s(80891),R=s(13222),Z=s(25940),H=s(90799),G=s(118),tt=s(16555),W="[object Arguments]",rt="[object Function]",ut="[object Object]",Ht={};Ht[W]=Ht["[object Array]"]=Ht["[object ArrayBuffer]"]=Ht["[object DataView]"]=Ht["[object Boolean]"]=Ht["[object Date]"]=Ht["[object Float32Array]"]=Ht["[object Float64Array]"]=Ht["[object Int8Array]"]=Ht["[object Int16Array]"]=Ht["[object Int32Array]"]=Ht["[object Map]"]=Ht["[object Number]"]=Ht[ut]=Ht["[object RegExp]"]=Ht["[object Set]"]=Ht["[object String]"]=Ht["[object Symbol]"]=Ht["[object Uint8Array]"]=Ht["[object Uint8ClampedArray]"]=Ht["[object Uint16Array]"]=Ht["[object Uint32Array]"]=!0,Ht["[object Error]"]=Ht[rt]=Ht["[object WeakMap]"]=!1,w.exports=function Zt(Kt,xe,Te,Le,Oe,Ee){var He,Ge=1&xe,an=2&xe,be=4&xe;if(Te&&(He=Oe?Te(Kt,Le,Oe,Ee):Te(Kt)),void 0!==He)return He;if(!Z(Kt))return Kt;var ln=B(Kt);if(ln){if(He=C(Kt),!Ge)return d(Kt,He)}else{var Tt=g(Kt),Wt=Tt==rt||"[object GeneratorFunction]"==Tt;if(M(Kt))return t(Kt,Ge);if(Tt==ut||Tt==W||Wt&&!Oe){if(He=an||Wt?{}:I(Kt),!Ge)return an?h(Kt,p(He,Kt)):l(Kt,m(He,Kt))}else{if(!Ht[Tt])return Oe?Kt:{};He=L(Kt,Tt,Ge)}}Ee||(Ee=new c);var ce=Ee.get(Kt);if(ce)return ce;Ee.set(Kt,He),H(Kt)?Kt.forEach(function(Ze){He.add(Zt(Ze,xe,Te,Ze,Kt,Ee))}):R(Kt)&&Kt.forEach(function(Ze,Ye){He.set(Ye,Zt(Ze,xe,Te,Ye,Kt,Ee))});var ee=ln?void 0:(be?an?u:f:an?tt:G)(Kt);return x(ee||Kt,function(Ze,Ye){ee&&(Ze=Kt[Ye=Ze]),_(He,Ye,Zt(Ze,xe,Te,Ye,Kt,Ee))}),He}},78858:(w,D,s)=>{var c=s(25940),x=Object.create,_=function(){function m(){}return function(p){if(!c(p))return{};if(x)return x(p);m.prototype=p;var t=new m;return m.prototype=void 0,t}}();w.exports=_},43132:(w,D,s)=>{var c=s(45184),_=s(16539)(c);w.exports=_},67308:(w,D,s)=>{var c=s(44129);w.exports=function x(_,m,p){for(var t=-1,d=_.length;++t{var c=s(43132);w.exports=function x(_,m){var p=[];return c(_,function(t,d,l){m(t,d,l)&&p.push(t)}),p}},65317:w=>{w.exports=function D(s,c,x,_){for(var m=s.length,p=x+(_?1:-1);_?p--:++p{var c=s(85059),x=s(75039);w.exports=function _(m,p,t,d,l){var h=-1,f=m.length;for(t||(t=x),l||(l=[]);++h0&&t(u)?p>1?_(u,p-1,t,d,l):c(l,u):d||(l[l.length]=u)}return l}},30755:(w,D,s)=>{var x=s(40456)();w.exports=x},45184:(w,D,s)=>{var c=s(30755),x=s(118);w.exports=function _(m,p){return m&&c(m,p,x)}},15456:(w,D,s)=>{var c=s(65456),x=s(68533);w.exports=function _(m,p){for(var t=0,d=(p=c(p,m)).length;null!=m&&t{var c=s(85059),x=s(21503);w.exports=function _(m,p,t){var d=p(m);return x(m)?d:c(d,t(m))}},93337:(w,D,s)=>{var c=s(60443),x=s(21318),_=s(92902),t=c?c.toStringTag:void 0;w.exports=function d(l){return null==l?void 0===l?"[object Undefined]":"[object Null]":t&&t in Object(l)?x(l):_(l)}},31100:w=>{w.exports=function D(s,c){return s>c}},84781:w=>{var s=Object.prototype.hasOwnProperty;w.exports=function c(x,_){return null!=x&&s.call(x,_)}},69989:w=>{w.exports=function D(s,c){return null!=s&&c in Object(s)}},14164:(w,D,s)=>{var c=s(65317),x=s(70968),_=s(24977);w.exports=function m(p,t,d){return t==t?_(p,t,d):c(p,x,d)}},60186:(w,D,s)=>{var c=s(93337),x=s(72671);w.exports=function m(p){return x(p)&&"[object Arguments]"==c(p)}},85740:(w,D,s)=>{var c=s(58325),x=s(72671);w.exports=function _(m,p,t,d,l){return m===p||(null==m||null==p||!x(m)&&!x(p)?m!=m&&p!=p:c(m,p,t,d,_,l))}},58325:(w,D,s)=>{var c=s(2858),x=s(63914),_=s(78583),m=s(32286),p=s(28794),t=s(21503),d=s(80891),l=s(48159),f="[object Arguments]",u="[object Array]",g="[object Object]",L=Object.prototype.hasOwnProperty;w.exports=function I(B,M,R,Z,H,G){var tt=t(B),K=t(M),st=tt?u:p(B),j=K?u:p(M),W=(st=st==f?g:st)==g,et=(j=j==f?g:j)==g,at=st==j;if(at&&d(B)){if(!d(M))return!1;tt=!0,W=!1}if(at&&!W)return G||(G=new c),tt||l(B)?x(B,M,R,Z,H,G):_(B,M,st,R,Z,H,G);if(!(1&R)){var Y=W&&L.call(B,"__wrapped__"),nt=et&&L.call(M,"__wrapped__");if(Y||nt){var rt=Y?B.value():B,q=nt?M.value():M;return G||(G=new c),H(rt,q,R,Z,G)}}return!!at&&(G||(G=new c),m(B,M,R,Z,H,G))}},97021:(w,D,s)=>{var c=s(28794),x=s(72671);w.exports=function m(p){return x(p)&&"[object Map]"==c(p)}},40431:(w,D,s)=>{var c=s(2858),x=s(85740);w.exports=function p(t,d,l,h){var f=l.length,u=f,g=!h;if(null==t)return!u;for(t=Object(t);f--;){var C=l[f];if(g&&C[2]?C[1]!==t[C[0]]:!(C[0]in t))return!1}for(;++f{w.exports=function D(s){return s!=s}},37304:(w,D,s)=>{var c=s(75946),x=s(91943),_=s(25940),m=s(52827),t=/^\[object .+?Constructor\]$/,u=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");w.exports=function g(C){return!(!_(C)||x(C))&&(c(C)?u:t).test(m(C))}},771:(w,D,s)=>{var c=s(28794),x=s(72671);w.exports=function m(p){return x(p)&&"[object Set]"==c(p)}},1083:(w,D,s)=>{var c=s(93337),x=s(96231),_=s(72671),at={};at["[object Float32Array]"]=at["[object Float64Array]"]=at["[object Int8Array]"]=at["[object Int16Array]"]=at["[object Int32Array]"]=at["[object Uint8Array]"]=at["[object Uint8ClampedArray]"]=at["[object Uint16Array]"]=at["[object Uint32Array]"]=!0,at["[object Arguments]"]=at["[object Array]"]=at["[object ArrayBuffer]"]=at["[object Boolean]"]=at["[object DataView]"]=at["[object Date]"]=at["[object Error]"]=at["[object Function]"]=at["[object Map]"]=at["[object Number]"]=at["[object Object]"]=at["[object RegExp]"]=at["[object Set]"]=at["[object String]"]=at["[object WeakMap]"]=!1,w.exports=function Y(nt){return _(nt)&&x(nt.length)&&!!at[c(nt)]}},96517:(w,D,s)=>{var c=s(98133),x=s(9458),_=s(32608),m=s(21503),p=s(87495);w.exports=function t(d){return"function"==typeof d?d:null==d?_:"object"==typeof d?m(d)?x(d[0],d[1]):c(d):p(d)}},81172:(w,D,s)=>{var c=s(45488),x=s(85491),m=Object.prototype.hasOwnProperty;w.exports=function p(t){if(!c(t))return x(t);var d=[];for(var l in Object(t))m.call(t,l)&&"constructor"!=l&&d.push(l);return d}},92809:(w,D,s)=>{var c=s(25940),x=s(45488),_=s(32158),p=Object.prototype.hasOwnProperty;w.exports=function t(d){if(!c(d))return _(d);var l=x(d),h=[];for(var f in d)"constructor"==f&&(l||!p.call(d,f))||h.push(f);return h}},99069:w=>{w.exports=function D(s,c){return s{var c=s(43132),x=s(56507);w.exports=function _(m,p){var t=-1,d=x(m)?Array(m.length):[];return c(m,function(l,h,f){d[++t]=p(l,h,f)}),d}},98133:(w,D,s)=>{var c=s(40431),x=s(22379),_=s(642);w.exports=function m(p){var t=x(p);return 1==t.length&&t[0][2]?_(t[0][0],t[0][1]):function(d){return d===p||c(d,p,t)}}},9458:(w,D,s)=>{var c=s(85740),x=s(8817),_=s(11172),m=s(45352),p=s(22442),t=s(642),d=s(68533);w.exports=function f(u,g){return m(u)&&p(g)?t(d(u),g):function(C){var L=x(C,u);return void 0===L&&L===g?_(C,u):c(g,L,3)}}},73842:(w,D,s)=>{var c=s(2858),x=s(49276),_=s(30755),m=s(33675),p=s(25940),t=s(16555),d=s(99351);w.exports=function l(h,f,u,g,C){h!==f&&_(f,function(L,I){if(C||(C=new c),p(L))m(h,f,I,u,l,g,C);else{var B=g?g(d(h,I),L,I+"",h,f,C):void 0;void 0===B&&(B=L),x(h,I,B)}},t)}},33675:(w,D,s)=>{var c=s(49276),x=s(19292),_=s(65208),m=s(99454),p=s(4264),t=s(77151),d=s(21503),l=s(21330),h=s(80891),f=s(75946),u=s(25940),g=s(97614),C=s(48159),L=s(99351),I=s(8067);w.exports=function B(M,R,Z,H,G,tt,K){var st=L(M,Z),j=L(R,Z),W=K.get(j);if(W)c(M,Z,W);else{var et=tt?tt(st,j,Z+"",M,R,K):void 0,at=void 0===et;if(at){var Y=d(j),nt=!Y&&h(j),rt=!Y&&!nt&&C(j);et=j,Y||nt||rt?d(st)?et=st:l(st)?et=m(st):nt?(at=!1,et=x(j,!0)):rt?(at=!1,et=_(j,!0)):et=[]:g(j)||t(j)?(et=st,t(st)?et=I(st):(!u(st)||f(st))&&(et=p(j))):at=!1}at&&(K.set(j,et),G(et,j,H,tt,K),K.delete(j)),c(M,Z,et)}}},6119:(w,D,s)=>{var c=s(84633),x=s(15456),_=s(96517),m=s(92046),p=s(42061),t=s(85647),d=s(41215),l=s(32608),h=s(21503);w.exports=function f(u,g,C){g=g.length?c(g,function(B){return h(B)?function(M){return x(M,1===B.length?B[0]:B)}:B}):[l];var L=-1;g=c(g,t(_));var I=m(u,function(B,M,R){return{criteria:c(g,function(H){return H(B)}),index:++L,value:B}});return p(I,function(B,M){return d(B,M,C)})}},83021:(w,D,s)=>{var c=s(95495),x=s(11172);w.exports=function _(m,p){return c(m,p,function(t,d){return x(m,d)})}},95495:(w,D,s)=>{var c=s(15456),x=s(55963),_=s(65456);w.exports=function m(p,t,d){for(var l=-1,h=t.length,f={};++l{w.exports=function D(s){return function(c){return c?.[s]}}},39222:(w,D,s)=>{var c=s(15456);w.exports=function x(_){return function(m){return c(m,_)}}},16307:w=>{var D=Math.ceil,s=Math.max;w.exports=function c(x,_,m,p){for(var t=-1,d=s(D((_-x)/(m||1)),0),l=Array(d);d--;)l[p?d:++t]=x,x+=m;return l}},13570:w=>{w.exports=function D(s,c,x,_,m){return m(s,function(p,t,d){x=_?(_=!1,p):c(x,p,t,d)}),x}},23269:(w,D,s)=>{var c=s(32608),x=s(53983),_=s(72185);w.exports=function m(p,t){return _(x(p,t,c),p+"")}},55963:(w,D,s)=>{var c=s(89719),x=s(65456),_=s(58442),m=s(25940),p=s(68533);w.exports=function t(d,l,h,f){if(!m(d))return d;for(var u=-1,g=(l=x(l,d)).length,C=g-1,L=d;null!=L&&++u{var c=s(76684),x=s(56713),_=s(32608);w.exports=x?function(p,t){return x(p,"toString",{configurable:!0,enumerable:!1,value:c(t),writable:!0})}:_},42061:w=>{w.exports=function D(s,c){var x=s.length;for(s.sort(c);x--;)s[x]=s[x].value;return s}},85334:w=>{w.exports=function D(s,c){for(var x=-1,_=Array(s);++x{var c=s(60443),x=s(84633),_=s(21503),m=s(44129),t=c?c.prototype:void 0,d=t?t.toString:void 0;w.exports=function l(h){if("string"==typeof h)return h;if(_(h))return x(h,l)+"";if(m(h))return d?d.call(h):"";var f=h+"";return"0"==f&&1/h==-1/0?"-0":f}},83348:(w,D,s)=>{var c=s(42760),x=/^\s+/;w.exports=function _(m){return m&&m.slice(0,c(m)+1).replace(x,"")}},85647:w=>{w.exports=function D(s){return function(c){return s(c)}}},80707:(w,D,s)=>{var c=s(58849),x=s(61253),_=s(37609),m=s(25972),p=s(14575),t=s(24174);w.exports=function l(h,f,u){var g=-1,C=x,L=h.length,I=!0,B=[],M=B;if(u)I=!1,C=_;else if(L>=200){var R=f?null:p(h);if(R)return t(R);I=!1,C=m,M=new c}else M=f?[]:B;t:for(;++g{var c=s(84633);w.exports=function x(_,m){return c(m,function(p){return _[p]})}},38645:w=>{w.exports=function D(s,c,x){for(var _=-1,m=s.length,p=c.length,t={};++_{w.exports=function D(s,c){return s.has(c)}},21481:(w,D,s)=>{var c=s(32608);w.exports=function x(_){return"function"==typeof _?_:c}},65456:(w,D,s)=>{var c=s(21503),x=s(45352),_=s(32855),m=s(73943);w.exports=function p(t,d){return c(t)?t:x(t,d)?[t]:_(m(t))}},43362:(w,D,s)=>{var c=s(73457);w.exports=function x(_){var m=new _.constructor(_.byteLength);return new c(m).set(new c(_)),m}},19292:(w,D,s)=>{w=s.nmd(w);var c=s(12119),x=D&&!D.nodeType&&D,_=x&&w&&!w.nodeType&&w,p=_&&_.exports===x?c.Buffer:void 0,t=p?p.allocUnsafe:void 0;w.exports=function d(l,h){if(h)return l.slice();var f=l.length,u=t?t(f):new l.constructor(f);return l.copy(u),u}},17e3:(w,D,s)=>{var c=s(43362);w.exports=function x(_,m){var p=m?c(_.buffer):_.buffer;return new _.constructor(p,_.byteOffset,_.byteLength)}},74098:w=>{var D=/\w*$/;w.exports=function s(c){var x=new c.constructor(c.source,D.exec(c));return x.lastIndex=c.lastIndex,x}},62533:(w,D,s)=>{var c=s(60443),x=c?c.prototype:void 0,_=x?x.valueOf:void 0;w.exports=function m(p){return _?Object(_.call(p)):{}}},65208:(w,D,s)=>{var c=s(43362);w.exports=function x(_,m){var p=m?c(_.buffer):_.buffer;return new _.constructor(p,_.byteOffset,_.length)}},13443:(w,D,s)=>{var c=s(44129);w.exports=function x(_,m){if(_!==m){var p=void 0!==_,t=null===_,d=_==_,l=c(_),h=void 0!==m,f=null===m,u=m==m,g=c(m);if(!f&&!g&&!l&&_>m||l&&h&&u&&!f&&!g||t&&h&&u||!p&&u||!d)return 1;if(!t&&!l&&!g&&_{var c=s(13443);w.exports=function x(_,m,p){for(var t=-1,d=_.criteria,l=m.criteria,h=d.length,f=p.length;++t=f?u:u*("desc"==p[t]?-1:1)}return _.index-m.index}},99454:w=>{w.exports=function D(s,c){var x=-1,_=s.length;for(c||(c=Array(_));++x<_;)c[x]=s[x];return c}},31989:(w,D,s)=>{var c=s(89719),x=s(85683);w.exports=function _(m,p,t,d){var l=!t;t||(t={});for(var h=-1,f=p.length;++h{var c=s(31989),x=s(39383);w.exports=function _(m,p){return c(m,x(m),p)}},59905:(w,D,s)=>{var c=s(31989),x=s(53051);w.exports=function _(m,p){return c(m,x(m),p)}},24610:(w,D,s)=>{var c=s(12119);w.exports=c["__core-js_shared__"]},84944:(w,D,s)=>{var c=s(23269),x=s(93342);w.exports=function _(m){return c(function(p,t){var d=-1,l=t.length,h=l>1?t[l-1]:void 0,f=l>2?t[2]:void 0;for(h=m.length>3&&"function"==typeof h?(l--,h):void 0,f&&x(t[0],t[1],f)&&(h=l<3?void 0:h,l=1),p=Object(p);++d{var c=s(56507);w.exports=function x(_,m){return function(p,t){if(null==p)return p;if(!c(p))return _(p,t);for(var d=p.length,l=m?d:-1,h=Object(p);(m?l--:++l{w.exports=function D(s){return function(c,x,_){for(var m=-1,p=Object(c),t=_(c),d=t.length;d--;){var l=t[s?d:++m];if(!1===x(p[l],l,p))break}return c}}},24653:(w,D,s)=>{var c=s(96517),x=s(56507),_=s(118);w.exports=function m(p){return function(t,d,l){var h=Object(t);if(!x(t)){var f=c(d,3);t=_(t),d=function(g){return f(h[g],g,h)}}var u=p(t,d,l);return u>-1?h[f?t[u]:u]:void 0}}},97509:(w,D,s)=>{var c=s(16307),x=s(93342),_=s(12232);w.exports=function m(p){return function(t,d,l){return l&&"number"!=typeof l&&x(t,d,l)&&(d=l=void 0),t=_(t),void 0===d?(d=t,t=0):d=_(d),l=void 0===l?t{var c=s(46323),x=s(12552),_=s(24174),p=c&&1/_(new c([,-0]))[1]==1/0?function(t){return new c(t)}:x;w.exports=p},56713:(w,D,s)=>{var c=s(53436),x=function(){try{var _=c(Object,"defineProperty");return _({},"",{}),_}catch{}}();w.exports=x},63914:(w,D,s)=>{var c=s(58849),x=s(79503),_=s(25972);w.exports=function t(d,l,h,f,u,g){var C=1&h,L=d.length,I=l.length;if(L!=I&&!(C&&I>L))return!1;var B=g.get(d),M=g.get(l);if(B&&M)return B==l&&M==d;var R=-1,Z=!0,H=2&h?new c:void 0;for(g.set(d,l),g.set(l,d);++R{var c=s(60443),x=s(73457),_=s(20217),m=s(63914),p=s(83205),t=s(24174),H=c?c.prototype:void 0,G=H?H.valueOf:void 0;w.exports=function tt(K,st,j,W,et,at,Y){switch(j){case"[object DataView]":if(K.byteLength!=st.byteLength||K.byteOffset!=st.byteOffset)return!1;K=K.buffer,st=st.buffer;case"[object ArrayBuffer]":return!(K.byteLength!=st.byteLength||!at(new x(K),new x(st)));case"[object Boolean]":case"[object Date]":case"[object Number]":return _(+K,+st);case"[object Error]":return K.name==st.name&&K.message==st.message;case"[object RegExp]":case"[object String]":return K==st+"";case"[object Map]":var nt=p;case"[object Set]":if(nt||(nt=t),K.size!=st.size&&!(1&W))return!1;var q=Y.get(K);if(q)return q==st;W|=2,Y.set(K,st);var F=m(nt(K),nt(st),W,et,at,Y);return Y.delete(K),F;case"[object Symbol]":if(G)return G.call(K)==G.call(st)}return!1}},32286:(w,D,s)=>{var c=s(47597),m=Object.prototype.hasOwnProperty;w.exports=function p(t,d,l,h,f,u){var g=1&l,C=c(t),L=C.length;if(L!=c(d).length&&!g)return!1;for(var M=L;M--;){var R=C[M];if(!(g?R in d:m.call(d,R)))return!1}var Z=u.get(t),H=u.get(d);if(Z&&H)return Z==d&&H==t;var G=!0;u.set(t,d),u.set(d,t);for(var tt=g;++M{var c=s(22274),x=s(53983),_=s(72185);w.exports=function m(p){return _(x(p,void 0,c),p+"")}},79122:w=>{var D="object"==typeof global&&global&&global.Object===Object&&global;w.exports=D},47597:(w,D,s)=>{var c=s(38247),x=s(39383),_=s(118);w.exports=function m(p){return c(p,_,x)}},6967:(w,D,s)=>{var c=s(38247),x=s(53051),_=s(16555);w.exports=function m(p){return c(p,_,x)}},54537:(w,D,s)=>{var c=s(23819);w.exports=function x(_,m){var p=_.__data__;return c(m)?p["string"==typeof m?"string":"hash"]:p.map}},22379:(w,D,s)=>{var c=s(22442),x=s(118);w.exports=function _(m){for(var p=x(m),t=p.length;t--;){var d=p[t],l=m[d];p[t]=[d,l,c(l)]}return p}},53436:(w,D,s)=>{var c=s(37304),x=s(51990);w.exports=function _(m,p){var t=x(m,p);return c(t)?t:void 0}},29519:(w,D,s)=>{var x=s(69385)(Object.getPrototypeOf,Object);w.exports=x},21318:(w,D,s)=>{var c=s(60443),x=Object.prototype,_=x.hasOwnProperty,m=x.toString,p=c?c.toStringTag:void 0;w.exports=function t(d){var l=_.call(d,p),h=d[p];try{d[p]=void 0;var f=!0}catch{}var u=m.call(d);return f&&(l?d[p]=h:delete d[p]),u}},39383:(w,D,s)=>{var c=s(69779),x=s(49975),m=Object.prototype.propertyIsEnumerable,p=Object.getOwnPropertySymbols;w.exports=p?function(d){return null==d?[]:(d=Object(d),c(p(d),function(l){return m.call(d,l)}))}:x},53051:(w,D,s)=>{var c=s(85059),x=s(29519),_=s(39383),m=s(49975);w.exports=Object.getOwnPropertySymbols?function(d){for(var l=[];d;)c(l,_(d)),d=x(d);return l}:m},28794:(w,D,s)=>{var c=s(37244),x=s(51501),_=s(44267),m=s(46323),p=s(24243),t=s(93337),d=s(52827),l="[object Map]",f="[object Promise]",u="[object Set]",g="[object WeakMap]",C="[object DataView]",L=d(c),I=d(x),B=d(_),M=d(m),R=d(p),Z=t;(c&&Z(new c(new ArrayBuffer(1)))!=C||x&&Z(new x)!=l||_&&Z(_.resolve())!=f||m&&Z(new m)!=u||p&&Z(new p)!=g)&&(Z=function(H){var G=t(H),tt="[object Object]"==G?H.constructor:void 0,K=tt?d(tt):"";if(K)switch(K){case L:return C;case I:return l;case B:return f;case M:return u;case R:return g}return G}),w.exports=Z},51990:w=>{w.exports=function D(s,c){return s?.[c]}},47283:(w,D,s)=>{var c=s(65456),x=s(77151),_=s(21503),m=s(58442),p=s(96231),t=s(68533);w.exports=function d(l,h,f){for(var u=-1,g=(h=c(h,l)).length,C=!1;++u{var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");w.exports=function d(l){return t.test(l)}},64312:(w,D,s)=>{var c=s(60862);w.exports=function x(){this.__data__=c?c(null):{},this.size=0}},46421:w=>{w.exports=function D(s){var c=this.has(s)&&delete this.__data__[s];return this.size-=c?1:0,c}},15764:(w,D,s)=>{var c=s(60862),m=Object.prototype.hasOwnProperty;w.exports=function p(t){var d=this.__data__;if(c){var l=d[t];return"__lodash_hash_undefined__"===l?void 0:l}return m.call(d,t)?d[t]:void 0}},18685:(w,D,s)=>{var c=s(60862),_=Object.prototype.hasOwnProperty;w.exports=function m(p){var t=this.__data__;return c?void 0!==t[p]:_.call(t,p)}},26676:(w,D,s)=>{var c=s(60862);w.exports=function _(m,p){var t=this.__data__;return this.size+=this.has(m)?0:1,t[m]=c&&void 0===p?"__lodash_hash_undefined__":p,this}},76782:w=>{var s=Object.prototype.hasOwnProperty;w.exports=function c(x){var _=x.length,m=new x.constructor(_);return _&&"string"==typeof x[0]&&s.call(x,"index")&&(m.index=x.index,m.input=x.input),m}},37878:(w,D,s)=>{var c=s(43362),x=s(17e3),_=s(74098),m=s(62533),p=s(65208);w.exports=function j(W,et,at){var Y=W.constructor;switch(et){case"[object ArrayBuffer]":return c(W);case"[object Boolean]":case"[object Date]":return new Y(+W);case"[object DataView]":return x(W,at);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return p(W,at);case"[object Map]":case"[object Set]":return new Y;case"[object Number]":case"[object String]":return new Y(W);case"[object RegExp]":return _(W);case"[object Symbol]":return m(W)}}},4264:(w,D,s)=>{var c=s(78858),x=s(29519),_=s(45488);w.exports=function m(p){return"function"!=typeof p.constructor||_(p)?{}:c(x(p))}},75039:(w,D,s)=>{var c=s(60443),x=s(77151),_=s(21503),m=c?c.isConcatSpreadable:void 0;w.exports=function p(t){return _(t)||x(t)||!!(m&&t&&t[m])}},58442:w=>{var s=/^(?:0|[1-9]\d*)$/;w.exports=function c(x,_){var m=typeof x;return!!(_=_??9007199254740991)&&("number"==m||"symbol"!=m&&s.test(x))&&x>-1&&x%1==0&&x<_}},93342:(w,D,s)=>{var c=s(20217),x=s(56507),_=s(58442),m=s(25940);w.exports=function p(t,d,l){if(!m(l))return!1;var h=typeof d;return!!("number"==h?x(l)&&_(d,l.length):"string"==h&&d in l)&&c(l[d],t)}},45352:(w,D,s)=>{var c=s(21503),x=s(44129),_=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,m=/^\w*$/;w.exports=function p(t,d){if(c(t))return!1;var l=typeof t;return!("number"!=l&&"symbol"!=l&&"boolean"!=l&&null!=t&&!x(t))||m.test(t)||!_.test(t)||null!=d&&t in Object(d)}},23819:w=>{w.exports=function D(s){var c=typeof s;return"string"==c||"number"==c||"symbol"==c||"boolean"==c?"__proto__"!==s:null===s}},91943:(w,D,s)=>{var m,c=s(24610),x=(m=/[^.]+$/.exec(c&&c.keys&&c.keys.IE_PROTO||""))?"Symbol(src)_1."+m:"";w.exports=function _(m){return!!x&&x in m}},45488:w=>{var D=Object.prototype;w.exports=function s(c){var x=c&&c.constructor;return c===("function"==typeof x&&x.prototype||D)}},22442:(w,D,s)=>{var c=s(25940);w.exports=function x(_){return _==_&&!c(_)}},41840:w=>{w.exports=function D(){this.__data__=[],this.size=0}},34378:(w,D,s)=>{var c=s(43503),_=Array.prototype.splice;w.exports=function m(p){var t=this.__data__,d=c(t,p);return!(d<0||(d==t.length-1?t.pop():_.call(t,d,1),--this.size,0))}},54981:(w,D,s)=>{var c=s(43503);w.exports=function x(_){var m=this.__data__,p=c(m,_);return p<0?void 0:m[p][1]}},67343:(w,D,s)=>{var c=s(43503);w.exports=function x(_){return c(this.__data__,_)>-1}},98895:(w,D,s)=>{var c=s(43503);w.exports=function x(_,m){var p=this.__data__,t=c(p,_);return t<0?(++this.size,p.push([_,m])):p[t][1]=m,this}},10638:(w,D,s)=>{var c=s(54994),x=s(9215),_=s(51501);w.exports=function m(){this.size=0,this.__data__={hash:new c,map:new(_||x),string:new c}}},11184:(w,D,s)=>{var c=s(54537);w.exports=function x(_){var m=c(this,_).delete(_);return this.size-=m?1:0,m}},70866:(w,D,s)=>{var c=s(54537);w.exports=function x(_){return c(this,_).get(_)}},43771:(w,D,s)=>{var c=s(54537);w.exports=function x(_){return c(this,_).has(_)}},51772:(w,D,s)=>{var c=s(54537);w.exports=function x(_,m){var p=c(this,_),t=p.size;return p.set(_,m),this.size+=p.size==t?0:1,this}},83205:w=>{w.exports=function D(s){var c=-1,x=Array(s.size);return s.forEach(function(_,m){x[++c]=[m,_]}),x}},642:w=>{w.exports=function D(s,c){return function(x){return null!=x&&x[s]===c&&(void 0!==c||s in Object(x))}}},15144:(w,D,s)=>{var c=s(30535);w.exports=function _(m){var p=c(m,function(d){return 500===t.size&&t.clear(),d}),t=p.cache;return p}},60862:(w,D,s)=>{var x=s(53436)(Object,"create");w.exports=x},85491:(w,D,s)=>{var x=s(69385)(Object.keys,Object);w.exports=x},32158:w=>{w.exports=function D(s){var c=[];if(null!=s)for(var x in Object(s))c.push(x);return c}},73597:(w,D,s)=>{w=s.nmd(w);var c=s(79122),x=D&&!D.nodeType&&D,_=x&&w&&!w.nodeType&&w,p=_&&_.exports===x&&c.process,t=function(){try{return _&&_.require&&_.require("util").types||p&&p.binding&&p.binding("util")}catch{}}();w.exports=t},92902:w=>{var s=Object.prototype.toString;w.exports=function c(x){return s.call(x)}},69385:w=>{w.exports=function D(s,c){return function(x){return s(c(x))}}},53983:(w,D,s)=>{var c=s(26999),x=Math.max;w.exports=function _(m,p,t){return p=x(void 0===p?m.length-1:p,0),function(){for(var d=arguments,l=-1,h=x(d.length-p,0),f=Array(h);++l{var c=s(79122),x="object"==typeof self&&self&&self.Object===Object&&self,_=c||x||Function("return this")();w.exports=_},99351:w=>{w.exports=function D(s,c){if(("constructor"!==c||"function"!=typeof s[c])&&"__proto__"!=c)return s[c]}},4600:w=>{w.exports=function s(c){return this.__data__.set(c,"__lodash_hash_undefined__"),this}},31387:w=>{w.exports=function D(s){return this.__data__.has(s)}},24174:w=>{w.exports=function D(s){var c=-1,x=Array(s.size);return s.forEach(function(_){x[++c]=_}),x}},72185:(w,D,s)=>{var c=s(69510),_=s(10029)(c);w.exports=_},10029:w=>{var c=Date.now;w.exports=function x(_){var m=0,p=0;return function(){var t=c(),d=16-(t-p);if(p=t,d>0){if(++m>=800)return arguments[0]}else m=0;return _.apply(void 0,arguments)}}},13720:(w,D,s)=>{var c=s(9215);w.exports=function x(){this.__data__=new c,this.size=0}},64410:w=>{w.exports=function D(s){var c=this.__data__,x=c.delete(s);return this.size=c.size,x}},45576:w=>{w.exports=function D(s){return this.__data__.get(s)}},22247:w=>{w.exports=function D(s){return this.__data__.has(s)}},41585:(w,D,s)=>{var c=s(9215),x=s(51501),_=s(99850);w.exports=function p(t,d){var l=this.__data__;if(l instanceof c){var h=l.__data__;if(!x||h.length<199)return h.push([t,d]),this.size=++l.size,this;l=this.__data__=new _(h)}return l.set(t,d),this.size=l.size,this}},24977:w=>{w.exports=function D(s,c,x){for(var _=x-1,m=s.length;++_{var c=s(75481),x=s(77609),_=s(81149);w.exports=function m(p){return x(p)?_(p):c(p)}},32855:(w,D,s)=>{var c=s(15144),x=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_=/\\(\\)?/g,m=c(function(p){var t=[];return 46===p.charCodeAt(0)&&t.push(""),p.replace(x,function(d,l,h,f){t.push(h?f.replace(_,"$1"):l||d)}),t});w.exports=m},68533:(w,D,s)=>{var c=s(44129);w.exports=function _(m){if("string"==typeof m||c(m))return m;var p=m+"";return"0"==p&&1/m==-1/0?"-0":p}},52827:w=>{var s=Function.prototype.toString;w.exports=function c(x){if(null!=x){try{return s.call(x)}catch{}try{return x+""}catch{}}return""}},42760:w=>{var D=/\s/;w.exports=function s(c){for(var x=c.length;x--&&D.test(c.charAt(x)););return x}},81149:w=>{var D="\\ud800-\\udfff",p="["+D+"]",t="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",d="\\ud83c[\\udffb-\\udfff]",h="[^"+D+"]",f="(?:\\ud83c[\\udde6-\\uddff]){2}",u="[\\ud800-\\udbff][\\udc00-\\udfff]",C="(?:"+t+"|"+d+")?",L="[\\ufe0e\\ufe0f]?",B=L+C+"(?:\\u200d(?:"+[h,f,u].join("|")+")"+L+C+")*",M="(?:"+[h+t+"?",t,f,u,p].join("|")+")",R=RegExp(d+"(?="+d+")|"+M+B,"g");w.exports=function Z(H){for(var G=R.lastIndex=0;R.test(H);)++G;return G}},11094:(w,D,s)=>{var c=s(44462);w.exports=function _(m){return c(m,4)}},90733:(w,D,s)=>{var c=s(44462);w.exports=function m(p){return c(p,5)}},76684:w=>{w.exports=function D(s){return function(){return s}}},28800:(w,D,s)=>{var c=s(23269),x=s(20217),_=s(93342),m=s(16555),p=Object.prototype,t=p.hasOwnProperty,d=c(function(l,h){l=Object(l);var f=-1,u=h.length,g=u>2?h[2]:void 0;for(g&&_(h[0],h[1],g)&&(u=1);++f{w.exports=s(89851)},20217:w=>{w.exports=function D(s,c){return s===c||s!=s&&c!=c}},35281:(w,D,s)=>{var c=s(69779),x=s(33609),_=s(96517),m=s(21503);w.exports=function p(t,d){return(m(t)?c:x)(t,_(d,3))}},62516:(w,D,s)=>{var _=s(24653)(s(36397));w.exports=_},36397:(w,D,s)=>{var c=s(65317),x=s(96517),_=s(44401),m=Math.max;w.exports=function p(t,d,l){var h=null==t?0:t.length;if(!h)return-1;var f=null==l?0:_(l);return f<0&&(f=m(h+f,0)),c(t,x(d,3),f)}},22274:(w,D,s)=>{var c=s(50686);w.exports=function x(_){return null!=_&&_.length?c(_,1):[]}},89851:(w,D,s)=>{var c=s(96837),x=s(43132),_=s(21481),m=s(21503);w.exports=function p(t,d){return(m(t)?c:x)(t,_(d))}},41176:(w,D,s)=>{var c=s(30755),x=s(21481),_=s(16555);w.exports=function m(p,t){return null==p?p:c(p,x(t),_)}},8817:(w,D,s)=>{var c=s(15456);w.exports=function x(_,m,p){var t=null==_?void 0:c(_,m);return void 0===t?p:t}},54842:(w,D,s)=>{var c=s(84781),x=s(47283);w.exports=function _(m,p){return null!=m&&x(m,p,c)}},11172:(w,D,s)=>{var c=s(69989),x=s(47283);w.exports=function _(m,p){return null!=m&&x(m,p,c)}},32608:w=>{w.exports=function D(s){return s}},77151:(w,D,s)=>{var c=s(60186),x=s(72671),_=Object.prototype,m=_.hasOwnProperty,p=_.propertyIsEnumerable,t=c(function(){return arguments}())?c:function(d){return x(d)&&m.call(d,"callee")&&!p.call(d,"callee")};w.exports=t},21503:w=>{w.exports=Array.isArray},56507:(w,D,s)=>{var c=s(75946),x=s(96231);w.exports=function _(m){return null!=m&&x(m.length)&&!c(m)}},21330:(w,D,s)=>{var c=s(56507),x=s(72671);w.exports=function _(m){return x(m)&&c(m)}},80891:(w,D,s)=>{w=s.nmd(w);var c=s(12119),x=s(63580),_=D&&!D.nodeType&&D,m=_&&w&&!w.nodeType&&w,t=m&&m.exports===_?c.Buffer:void 0;w.exports=(t?t.isBuffer:void 0)||x},71973:(w,D,s)=>{var c=s(81172),x=s(28794),_=s(77151),m=s(21503),p=s(56507),t=s(80891),d=s(45488),l=s(48159),g=Object.prototype.hasOwnProperty;w.exports=function C(L){if(null==L)return!0;if(p(L)&&(m(L)||"string"==typeof L||"function"==typeof L.splice||t(L)||l(L)||_(L)))return!L.length;var I=x(L);if("[object Map]"==I||"[object Set]"==I)return!L.size;if(d(L))return!c(L).length;for(var B in L)if(g.call(L,B))return!1;return!0}},75946:(w,D,s)=>{var c=s(93337),x=s(25940);w.exports=function d(l){if(!x(l))return!1;var h=c(l);return"[object Function]"==h||"[object GeneratorFunction]"==h||"[object AsyncFunction]"==h||"[object Proxy]"==h}},96231:w=>{w.exports=function s(c){return"number"==typeof c&&c>-1&&c%1==0&&c<=9007199254740991}},13222:(w,D,s)=>{var c=s(97021),x=s(85647),_=s(73597),m=_&&_.isMap,p=m?x(m):c;w.exports=p},25940:w=>{w.exports=function D(s){var c=typeof s;return null!=s&&("object"==c||"function"==c)}},72671:w=>{w.exports=function D(s){return null!=s&&"object"==typeof s}},97614:(w,D,s)=>{var c=s(93337),x=s(29519),_=s(72671),d=Function.prototype.toString,l=Object.prototype.hasOwnProperty,h=d.call(Object);w.exports=function f(u){if(!_(u)||"[object Object]"!=c(u))return!1;var g=x(u);if(null===g)return!0;var C=l.call(g,"constructor")&&g.constructor;return"function"==typeof C&&C instanceof C&&d.call(C)==h}},90799:(w,D,s)=>{var c=s(771),x=s(85647),_=s(73597),m=_&&_.isSet,p=m?x(m):c;w.exports=p},30248:(w,D,s)=>{var c=s(93337),x=s(21503),_=s(72671);w.exports=function p(t){return"string"==typeof t||!x(t)&&_(t)&&"[object String]"==c(t)}},44129:(w,D,s)=>{var c=s(93337),x=s(72671);w.exports=function m(p){return"symbol"==typeof p||x(p)&&"[object Symbol]"==c(p)}},48159:(w,D,s)=>{var c=s(1083),x=s(85647),_=s(73597),m=_&&_.isTypedArray,p=m?x(m):c;w.exports=p},34235:w=>{w.exports=function D(s){return void 0===s}},118:(w,D,s)=>{var c=s(72271),x=s(81172),_=s(56507);w.exports=function m(p){return _(p)?c(p):x(p)}},16555:(w,D,s)=>{var c=s(72271),x=s(92809),_=s(56507);w.exports=function m(p){return _(p)?c(p,!0):x(p)}},25809:w=>{w.exports=function D(s){var c=null==s?0:s.length;return c?s[c-1]:void 0}},19984:(w,D,s)=>{var c=s(84633),x=s(96517),_=s(92046),m=s(21503);w.exports=function p(t,d){return(m(t)?c:_)(t,x(d,3))}},10203:(w,D,s)=>{var c=s(85683),x=s(45184),_=s(96517);w.exports=function m(p,t){var d={};return t=_(t,3),x(p,function(l,h,f){c(d,h,t(l,h,f))}),d}},18176:(w,D,s)=>{var c=s(67308),x=s(31100),_=s(32608);w.exports=function m(p){return p&&p.length?c(p,_,x):void 0}},30535:(w,D,s)=>{var c=s(99850);function _(m,p){if("function"!=typeof m||null!=p&&"function"!=typeof p)throw new TypeError("Expected a function");var t=function(){var d=arguments,l=p?p.apply(this,d):d[0],h=t.cache;if(h.has(l))return h.get(l);var f=m.apply(this,d);return t.cache=h.set(l,f)||h,f};return t.cache=new(_.Cache||c),t}_.Cache=c,w.exports=_},80567:(w,D,s)=>{var c=s(73842),_=s(84944)(function(m,p,t){c(m,p,t)});w.exports=_},29439:(w,D,s)=>{var c=s(67308),x=s(99069),_=s(32608);w.exports=function m(p){return p&&p.length?c(p,_,x):void 0}},29525:(w,D,s)=>{var c=s(67308),x=s(96517),_=s(99069);w.exports=function m(p,t){return p&&p.length?c(p,x(t,2),_):void 0}},12552:w=>{w.exports=function D(){}},31710:(w,D,s)=>{var c=s(12119);w.exports=function(){return c.Date.now()}},16372:(w,D,s)=>{var c=s(83021),_=s(3975)(function(m,p){return null==m?{}:c(m,p)});w.exports=_},87495:(w,D,s)=>{var c=s(11847),x=s(39222),_=s(45352),m=s(68533);w.exports=function p(t){return _(t)?c(m(t)):x(t)}},90361:(w,D,s)=>{var x=s(97509)();w.exports=x},81337:(w,D,s)=>{var c=s(8745),x=s(43132),_=s(96517),m=s(13570),p=s(21503);w.exports=function t(d,l,h){var f=p(d)?c:m,u=arguments.length<3;return f(d,_(l,4),h,u,x)}},55637:(w,D,s)=>{var c=s(81172),x=s(28794),_=s(56507),m=s(30248),p=s(52315);w.exports=function l(h){if(null==h)return 0;if(_(h))return m(h)?p(h):h.length;var f=x(h);return"[object Map]"==f||"[object Set]"==f?h.size:c(h).length}},12906:(w,D,s)=>{var c=s(50686),x=s(6119),_=s(23269),m=s(93342),p=_(function(t,d){if(null==t)return[];var l=d.length;return l>1&&m(t,d[0],d[1])?d=[]:l>2&&m(d[0],d[1],d[2])&&(d=[d[0]]),x(t,c(d,1),[])});w.exports=p},49975:w=>{w.exports=function D(){return[]}},63580:w=>{w.exports=function D(){return!1}},12232:(w,D,s)=>{var c=s(51467),x=1/0;w.exports=function m(p){return p?(p=c(p))===x||p===-x?17976931348623157e292*(p<0?-1:1):p==p?p:0:0===p?p:0}},44401:(w,D,s)=>{var c=s(12232);w.exports=function x(_){var m=c(_),p=m%1;return m==m?p?m-p:m:0}},51467:(w,D,s)=>{var c=s(83348),x=s(25940),_=s(44129),p=/^[-+]0x[0-9a-f]+$/i,t=/^0b[01]+$/i,d=/^0o[0-7]+$/i,l=parseInt;w.exports=function h(f){if("number"==typeof f)return f;if(_(f))return NaN;if(x(f)){var u="function"==typeof f.valueOf?f.valueOf():f;f=x(u)?u+"":u}if("string"!=typeof f)return 0===f?f:+f;f=c(f);var g=t.test(f);return g||d.test(f)?l(f.slice(2),g?2:8):p.test(f)?NaN:+f}},8067:(w,D,s)=>{var c=s(31989),x=s(16555);w.exports=function _(m){return c(m,x(m))}},73943:(w,D,s)=>{var c=s(93935);w.exports=function x(_){return null==_?"":c(_)}},89416:(w,D,s)=>{var c=s(96837),x=s(78858),_=s(45184),m=s(96517),p=s(29519),t=s(21503),d=s(80891),l=s(75946),h=s(25940),f=s(48159);w.exports=function u(g,C,L){var I=t(g),B=I||d(g)||f(g);if(C=m(C,4),null==L){var M=g&&g.constructor;L=B?I?new M:[]:h(g)&&l(M)?x(p(g)):{}}return(B?c:_)(g,function(R,Z,H){return C(L,R,Z,H)}),L}},68921:(w,D,s)=>{var c=s(50686),x=s(23269),_=s(80707),m=s(21330),p=x(function(t){return _(c(t,1,m,!0))});w.exports=p},51541:(w,D,s)=>{var c=s(73943),x=0;w.exports=function _(m){var p=++x;return c(m)+p}},90377:(w,D,s)=>{var c=s(19179),x=s(118);w.exports=function _(m){return null==m?[]:c(m,x(m))}},21617:(w,D,s)=>{var c=s(89719),x=s(38645);w.exports=function _(m,p){return x(m||[],p||[],c)}},34315:(w,D,s)=>{"use strict";const c=Symbol.prototype.valueOf,x=s(52872);w.exports=function _(h,f){switch(x(h)){case"array":return h.slice();case"object":return Object.assign({},h);case"date":return new h.constructor(Number(h));case"map":return new Map(h);case"set":return new Set(h);case"buffer":return function d(h){const f=h.length,u=Buffer.allocUnsafe?Buffer.allocUnsafe(f):Buffer.from(f);return h.copy(u),u}(h);case"symbol":return function l(h){return c?Object(c.call(h)):{}}(h);case"arraybuffer":return function p(h){const f=new h.constructor(h.byteLength);return new Uint8Array(f).set(new Uint8Array(h)),f}(h);case"float32array":case"float64array":case"int16array":case"int32array":case"int8array":case"uint16array":case"uint32array":case"uint8clampedarray":case"uint8array":return function t(h,f){return new h.constructor(h.buffer,h.byteOffset,h.length)}(h);case"regexp":return function m(h){const f=void 0!==h.flags?h.flags:/\w+$/.exec(h)||void 0,u=new h.constructor(h.source,f);return u.lastIndex=h.lastIndex,u}(h);case"error":return Object.create(h);default:return h}}},67824:(w,D,s)=>{"use strict";function c(x){for(var _ in x)D.hasOwnProperty(_)||(D[_]=x[_])}Object.defineProperty(D,"__esModule",{value:!0}),c(s(95085)),c(s(26243)),c(s(91786)),c(s(30225)),c(s(76767)),c(s(30345)),c(s(15675)),c(s(86461)),c(s(58802)),c(s(33900)),c(s(88866)),c(s(94655)),c(s(4068)),c(s(33858)),c(s(98237)),c(s(83292))},95085:function(w,D,s){"use strict";var p,c=this&&this.__extends||(p=function(t,d){return(p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,h){l.__proto__=h}||function(l,h){for(var f in h)h.hasOwnProperty(f)&&(l[f]=h[f])})(t,d)},function(t,d){function l(){this.constructor=t}p(t,d),t.prototype=null===d?Object.create(d):(l.prototype=d.prototype,new l)});Object.defineProperty(D,"__esModule",{value:!0});var x=s(15675),_=function(p){function t(d){var l=p.call(this)||this,f=d;return f.trigger&&(l.trigger=f.trigger),f.kick&&(l.kick=f.kick),f.drag&&(l.drag=f.drag),f.on&&(l.on=f.on),l.dragstart=l.dragStart=x.Layout.dragStart,l.dragend=l.dragEnd=x.Layout.dragEnd,l}return c(t,p),t.prototype.trigger=function(d){},t.prototype.kick=function(){},t.prototype.drag=function(){},t.prototype.on=function(d,l){return this},t}(x.Layout);D.LayoutAdaptor=_,D.adaptor=function m(p){return new _(p)}},83292:(w,D,s)=>{"use strict";Object.defineProperty(D,"__esModule",{value:!0});var c=s(15675),x=s(76767);D.gridify=function _(t,d,l,h){t.cola.start(0,0,0,10,!1);var f=function m(t,d,l,h){t.forEach(function(u){u.routerNode={name:u.name,bounds:u.bounds.inflate(-l)}}),d.forEach(function(u){u.routerNode={bounds:u.bounds.inflate(-h),children:(typeof u.groups<"u"?u.groups.map(function(g){return t.length+g.id}):[]).concat(typeof u.leaves<"u"?u.leaves.map(function(g){return g.index}):[])}});var f=t.concat(d).map(function(u,g){return u.routerNode.id=g,u.routerNode});return new x.GridRouter(f,{getChildren:function(u){return u.children},getBounds:function(u){return u.bounds}},l-h)}(t.cola.nodes(),t.cola.groups(),l,h);return f.routeEdges(t.powerGraph.powerEdges,d,function(u){return u.source.routerNode.id},function(u){return u.target.routerNode.id})},D.powerGraphGridLayout=function p(t,d,l){var h;t.nodes.forEach(function(C,L){return C.index=L}),(new c.Layout).avoidOverlaps(!1).nodes(t.nodes).links(t.links).powerGraphGroups(function(C){(h=C).groups.forEach(function(L){return L.padding=l})});var f=t.nodes.length,u=[],g=t.nodes.slice(0);return g.forEach(function(C,L){return C.index=L}),h.groups.forEach(function(C){var L=C.index=C.id+f;g.push(C),typeof C.leaves<"u"&&C.leaves.forEach(function(I){return u.push({source:L,target:I.index})}),typeof C.groups<"u"&&C.groups.forEach(function(I){return u.push({source:L,target:I.id+f})})}),h.powerEdges.forEach(function(C){u.push({source:C.source.index,target:C.target.index})}),(new c.Layout).size(d).nodes(g).links(u).avoidOverlaps(!1).linkDistance(30).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(100,0,0,0,!1),{cola:(new c.Layout).convergenceThreshold(.001).size(d).avoidOverlaps(!0).nodes(t.nodes).links(t.links).groupCompactness(1e-4).linkDistance(30).symmetricDiffLinkLengths(5).powerGraphGroups(function(C){(h=C).groups.forEach(function(L){L.padding=l})}).start(50,0,100,0,!1),powerGraph:h}}},26243:(w,D,s)=>{"use strict";Object.defineProperty(D,"__esModule",{value:!0});var c=s(49346),x=s(22487);D.d3adaptor=function _(p){return!p||function m(p){return p.version&&null!==p.version.match(/^3\./)}(p)?new c.D3StyleLayoutAdaptor:new x.D3StyleLayoutAdaptor(p)}},49346:function(w,D,s){"use strict";var p,c=this&&this.__extends||(p=function(t,d){return(p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,h){l.__proto__=h}||function(l,h){for(var f in h)h.hasOwnProperty(f)&&(l[f]=h[f])})(t,d)},function(t,d){function l(){this.constructor=t}p(t,d),t.prototype=null===d?Object.create(d):(l.prototype=d.prototype,new l)});Object.defineProperty(D,"__esModule",{value:!0});var x=s(15675),_=function(p){function t(){var d=p.call(this)||this;d.event=d3.dispatch(x.EventType[x.EventType.start],x.EventType[x.EventType.tick],x.EventType[x.EventType.end]);var l=d;return d.drag=function(){if(!f)var f=d3.behavior.drag().origin(x.Layout.dragOrigin).on("dragstart.d3adaptor",x.Layout.dragStart).on("drag.d3adaptor",function(u){x.Layout.drag(u,d3.event),l.resume()}).on("dragend.d3adaptor",x.Layout.dragEnd);if(!arguments.length)return f;this.call(f)},d}return c(t,p),t.prototype.trigger=function(d){var l={type:x.EventType[d.type],alpha:d.alpha,stress:d.stress};this.event[l.type](l)},t.prototype.kick=function(){var d=this;d3.timer(function(){return p.prototype.tick.call(d)})},t.prototype.on=function(d,l){return this.event.on("string"==typeof d?d:x.EventType[d],l),this},t}(x.Layout);D.D3StyleLayoutAdaptor=_,D.d3adaptor=function m(){return new _}},22487:function(w,D,s){"use strict";var m,c=this&&this.__extends||(m=function(p,t){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,l){d.__proto__=l}||function(d,l){for(var h in l)l.hasOwnProperty(h)&&(d[h]=l[h])})(p,t)},function(p,t){function d(){this.constructor=p}m(p,t),p.prototype=null===t?Object.create(t):(d.prototype=t.prototype,new d)});Object.defineProperty(D,"__esModule",{value:!0});var x=s(15675),_=function(m){function p(t){var d=m.call(this)||this;d.d3Context=t,d.event=t.dispatch(x.EventType[x.EventType.start],x.EventType[x.EventType.tick],x.EventType[x.EventType.end]);var l=d;return d.drag=function(){if(!f)var f=t.drag().subject(x.Layout.dragOrigin).on("start.d3adaptor",x.Layout.dragStart).on("drag.d3adaptor",function(u){x.Layout.drag(u,t.event),l.resume()}).on("end.d3adaptor",x.Layout.dragEnd);if(!arguments.length)return f;arguments[0].call(f)},d}return c(p,m),p.prototype.trigger=function(t){var d={type:x.EventType[t.type],alpha:t.alpha,stress:t.stress};this.event.call(d.type,d)},p.prototype.kick=function(){var t=this,d=this.d3Context.timer(function(){return m.prototype.tick.call(t)&&d.stop()})},p.prototype.on=function(t,d){return this.event.on("string"==typeof t?t:x.EventType[t],d),this},p}(x.Layout);D.D3StyleLayoutAdaptor=_},91786:(w,D)=>{"use strict";Object.defineProperty(D,"__esModule",{value:!0});var s=function(){function _(){this.locks={}}return _.prototype.add=function(m,p){this.locks[m]=p},_.prototype.clear=function(){this.locks={}},_.prototype.isEmpty=function(){for(var m in this.locks)return!1;return!0},_.prototype.apply=function(m){for(var p in this.locks)m(Number(p),this.locks[p])},_}();D.Locks=s;var c=function(){function _(m,p,t){void 0===t&&(t=null),this.D=p,this.G=t,this.threshold=1e-4,this.numGridSnapNodes=0,this.snapGridSize=100,this.snapStrength=1e3,this.scaleSnapByMaxH=!1,this.random=new x,this.project=null,this.x=m,this.k=m.length;var d=this.n=m[0].length;this.H=new Array(this.k),this.g=new Array(this.k),this.Hd=new Array(this.k),this.a=new Array(this.k),this.b=new Array(this.k),this.c=new Array(this.k),this.d=new Array(this.k),this.e=new Array(this.k),this.ia=new Array(this.k),this.ib=new Array(this.k),this.xtmp=new Array(this.k),this.locks=new s,this.minD=Number.MAX_VALUE;for(var h,l=d;l--;)for(h=d;--h>l;){var f=p[l][h];f>0&&f1e-9)break;var M=this.offsetDir();for(d=0;d1&&R>Z||!isFinite(Z)){for(d=0;d1&&(H=1);var G=Z*Z,tt=2*H*(R-Z)/(G*R),K=R*R*R,st=2*-H/(G*K);for(isFinite(tt)||console.log(tt),d=0;d0?nt-(F+1)*W:nt-(F-1)*W)&&B<=j&&(this.scaleSnapByMaxH?(this.g[d][g]+=u*at*B,this.H[d][g][g]+=u*at):(this.g[d][g]+=at*B,this.H[d][g][g]+=at))}this.locks.isEmpty()||this.locks.apply(function(ut,ft){for(d=0;d0;)for(var l=p;l-- >0;)t(d,l)},_.prototype.matrixApply=function(m){_.mApply(this.k,this.n,m)},_.prototype.computeNextPosition=function(m,p){var t=this;this.computeDerivatives(m);var d=this.computeStepSize(this.g);if(this.stepAndProject(m,p,this.g,d),this.project){this.matrixApply(function(h,f){return t.e[h][f]=m[h][f]-p[h][f]});var l=this.computeStepSize(this.e);l=Math.max(.2,Math.min(l,1)),this.stepAndProject(m,p,this.e,l)}},_.prototype.run=function(m){for(var p=Number.MAX_VALUE,t=!1;!t&&m-- >0;){var d=this.rungeKutta();t=Math.abs(p/d-1)>16)/this.range},_.prototype.getNextBetween=function(m,p){return m+this.getNext()*(p-m)},_}();D.PseudoRandom=x},30225:function(w,D,s){"use strict";var q,c=this&&this.__extends||(q=function(F,E){return(q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ut,ft){ut.__proto__=ft}||function(ut,ft){for(var Dt in ft)ft.hasOwnProperty(Dt)&&(ut[Dt]=ft[Dt])})(F,E)},function(F,E){function ut(){this.constructor=F}q(F,E),F.prototype=null===E?Object.create(E):(ut.prototype=E.prototype,new ut)});Object.defineProperty(D,"__esModule",{value:!0});var x=s(4068),_=function q(){};D.Point=_;var m=function q(F,E,ut,ft){this.x1=F,this.y1=E,this.x2=ut,this.y2=ft};D.LineSegment=m;var p=function(q){function F(){return null!==q&&q.apply(this,arguments)||this}return c(F,q),F}(_);function t(q,F,E){return(F.x-q.x)*(E.y-q.y)-(E.x-q.x)*(F.y-q.y)}function d(q,F,E){return t(q,F,E)>0}function l(q,F,E){return t(q,F,E)<0}function C(q,F){var E=F.slice(0);return E.push(F[0]),{rtan:L(q,E),ltan:I(q,E)}}function L(q,F){var ut,ft,Dt,Qt,E=F.length-1;if(l(q,F[1],F[0])&&!d(q,F[E-1],F[0]))return 0;for(ut=0,ft=E;;){if(ft-ut==1)return d(q,F[ut],F[ft])?ut:ft;if((Qt=l(q,F[(Dt=Math.floor((ut+ft)/2))+1],F[Dt]))&&!d(q,F[Dt-1],F[Dt]))return Dt;d(q,F[ut+1],F[ut])?Qt||d(q,F[ut],F[Dt])?ft=Dt:ut=Dt:Qt&&l(q,F[ut],F[Dt])?ft=Dt:ut=Dt}}function I(q,F){var ut,ft,Dt,Qt,E=F.length-1;if(d(q,F[E-1],F[0])&&!l(q,F[1],F[0]))return 0;for(ut=0,ft=E;;){if(ft-ut==1)return l(q,F[ut],F[ft])?ut:ft;if(Qt=l(q,F[(Dt=Math.floor((ut+ft)/2))+1],F[Dt]),d(q,F[Dt-1],F[Dt])&&!Qt)return Dt;l(q,F[ut+1],F[ut])?Qt?l(q,F[ut],F[Dt])?ft=Dt:ut=Dt:ft=Dt:Qt?ut=Dt:d(q,F[ut],F[Dt])?ft=Dt:ut=Dt}}function B(q,F,E,ut,ft,Dt){var St,Qt;Qt=ut(q[St=E(F[0],q)],F);for(var pe=!1;!pe;){for(pe=!0;St===q.length-1&&(St=0),!ft(F[Qt],q[St],q[St+1]);)++St;for(;0===Qt&&(Qt=F.length-1),!Dt(q[St],F[Qt],F[Qt-1]);)--Qt,pe=!1}return{t1:St,t2:Qt}}function R(q,F){return B(q,F,L,I,d,l)}D.PolyPoint=p,D.isLeft=t,D.ConvexHull=function h(q){var ut,F=q.slice(0).sort(function(zt,de){return zt.x!==de.x?de.x-zt.x:de.y-zt.y}),E=q.length,Dt=F[0].x;for(ut=1;ut=0&&F[ut].x===yt;ut--);for(pe=ut+1,ut=St;++ut<=pe;)if(!(t(F[0],F[pe],F[ut])>=0&&ut1&&!(t(Qt[Qt.length-2],Qt[Qt.length-1],F[ut])>0);)Qt.length-=1;0!=ut&&Qt.push(F[ut])}wt!=pe&&Qt.push(F[wt]);var Nt=Qt.length;for(ut=pe;--ut>=St;)if(!(t(F[wt],F[St],F[ut])>=0&&ut>St)){for(;Qt.length>Nt&&!(t(Qt[Qt.length-2],Qt[Qt.length-1],F[ut])>0);)Qt.length-=1;0!=ut&&Qt.push(F[ut])}}return Qt},D.clockwiseRadialSweep=function f(q,F,E){F.slice(0).sort(function(ut,ft){return Math.atan2(ut.y-q.y,ut.x-q.x)-Math.atan2(ft.y-q.y,ft.x-q.x)}).forEach(E)},D.tangent_PolyPolyC=B,D.LRtangent_PolyPolyC=function M(q,F){var E=R(F,q);return{t1:E.t2,t2:E.t1}},D.RLtangent_PolyPolyC=R,D.LLtangent_PolyPolyC=function Z(q,F){return B(q,F,I,I,l,l)},D.RRtangent_PolyPolyC=function H(q,F){return B(q,F,L,L,d,d)};var G=function q(F,E){this.t1=F,this.t2=E};D.BiTangent=G;var tt=function q(){};D.BiTangents=tt;var K=function(q){function F(){return null!==q&&q.apply(this,arguments)||this}return c(F,q),F}(_);D.TVGPoint=K;var st=function q(F,E,ut,ft){this.id=F,this.polyid=E,this.polyvertid=ut,this.p=ft,ft.vv=this};D.VisibilityVertex=st;var j=function(){function q(F,E){this.source=F,this.target=E}return q.prototype.length=function(){var F=this.source.p.x-this.target.p.x,E=this.source.p.y-this.target.p.y;return Math.sqrt(F*F+E*E)},q}();D.VisibilityEdge=j;var W=function(){function q(F,E){if(this.P=F,this.V=[],this.E=[],E)this.V=E.V.slice(0),this.E=E.E.slice(0);else{for(var ut=F.length,ft=0;ft0&&this.E.push(new j(Dt[St-1].vv,pe))}Dt.length>1&&this.E.push(new j(Dt[0].vv,Dt[Dt.length-1].vv))}for(ft=0;ft0)return!0;return!1},q}();function et(q,F){for(var E=[],ut=1,ft=F.length;ut=0&&ie>=0&&Ot<0&&te>=0&&jt>=0&&se<0?ft.ll=new G(Dt,St):de<=0&&ie<=0&&Ot>0&&te<=0&&jt<=0&&se>0?ft.rr=new G(Dt,St):de<=0&&ie>0&&Ot<=0&&te>=0&&jt<0&&se>=0?ft.rl=new G(Dt,St):de>=0&&ie<0&&Ot>=0&&te<=0&&jt>0&&se<=0&&(ft.lr=new G(Dt,St))}return ft}function nt(q,F){return!q.every(function(E){return!function Y(q,F){for(var E=1,ut=F.length;E0)return!0}return!1}},76767:(w,D,s)=>{"use strict";Object.defineProperty(D,"__esModule",{value:!0});var c=s(4068),x=s(98237),_=s(33858),m=function l(h,f,u){this.id=h,this.rect=f,this.children=u,this.leaf=typeof u>"u"||0===u.length};D.NodeWrapper=m;var p=function l(h,f,u,g,C){void 0===g&&(g=null),void 0===C&&(C=null),this.id=h,this.x=f,this.y=u,this.node=g,this.line=C};D.Vert=p;var t=function(){function l(h,f){this.s=h,this.t=f;var u=l.findMatch(h,f),g=f.slice(0).reverse(),C=l.findMatch(h,g);u.length>=C.length?(this.length=u.length,this.si=u.si,this.ti=u.ti,this.reversed=!1):(this.length=C.length,this.si=C.si,this.ti=f.length-C.ti-C.length,this.reversed=!0)}return l.findMatch=function(h,f){for(var u=h.length,g=f.length,C={length:0,si:-1,ti:-1},L=new Array(u),I=0;IC.length&&(C.length=M,C.si=I-M+1,C.ti=B-M+1)}else L[I][B]=0}return C},l.prototype.getSequence=function(){return this.length>=0?this.s.slice(this.si,this.si+this.length):[]},l}();D.LongestCommonSubsequence=t;var d=function(){function l(h,f,u){var g=this;void 0===u&&(u=12),this.originalnodes=h,this.groupPadding=u,this.leaves=null,this.nodes=h.map(function(K,st){return new m(st,f.getBounds(K),f.getChildren(K))}),this.leaves=this.nodes.filter(function(K){return K.leaf}),this.groups=this.nodes.filter(function(K){return!K.leaf}),this.cols=this.getGridLines("x"),this.rows=this.getGridLines("y"),this.groups.forEach(function(K){return K.children.forEach(function(st){return g.nodes[st].parent=K})}),this.root={children:[]},this.nodes.forEach(function(K){typeof K.parent>"u"&&(K.parent=g.root,g.root.children.push(K.id)),K.ports=[]}),this.backToFront=this.nodes.slice(0),this.backToFront.sort(function(K,st){return g.getDepth(K)-g.getDepth(st)}),this.backToFront.slice(0).reverse().filter(function(K){return!K.leaf}).forEach(function(K){var st=c.Rectangle.empty();K.children.forEach(function(j){return st=st.union(g.nodes[j].rect)}),K.rect=st.inflate(g.groupPadding)});var L=this.midPoints(this.cols.map(function(K){return K.pos})),I=this.midPoints(this.rows.map(function(K){return K.pos})),B=L[0],M=L[L.length-1],R=I[0],Z=I[I.length-1],H=this.rows.map(function(K){return{x1:B,x2:M,y1:K.pos,y2:K.pos}}).concat(I.map(function(K){return{x1:B,x2:M,y1:K,y2:K}})),G=this.cols.map(function(K){return{x1:K.pos,x2:K.pos,y1:R,y2:Z}}).concat(L.map(function(K){return{x1:K,x2:K,y1:R,y2:Z}})),tt=H.concat(G);tt.forEach(function(K){return K.verts=[]}),this.verts=[],this.edges=[],H.forEach(function(K){return G.forEach(function(st){var j=new p(g.verts.length,st.x1,K.y1);K.verts.push(j),st.verts.push(j),g.verts.push(j);for(var W=g.backToFront.length;W-- >0;){var et=g.backToFront[W],at=et.rect,Y=Math.abs(j.x-at.cx()),nt=Math.abs(j.y-at.cy());if(Y0;){var g=u.filter(function(L){return L.rect["overlap"+h.toUpperCase()](u[0].rect)}),C={nodes:g,pos:this.avg(g.map(function(L){return L.rect["c"+h]()}))};f.push(C),C.nodes.forEach(function(L){return u.splice(u.indexOf(L),1)})}return f.sort(function(L,I){return L.pos-I.pos}),f},l.prototype.getDepth=function(h){for(var f=0;h.parent!==this.root;)f++,h=h.parent;return f},l.prototype.midPoints=function(h){for(var f=h[1]-h[0],u=[h[0]-f/2],g=1;g.1)&&R.push(Z={pos:B[0][f],segments:[]}),Z.segments.push(B)}return R},l.nudgeSegs=function(h,f,u,g,C,L){var I=g.length;if(!(I<=1)){for(var B=g.map(function(et){return new x.Variable(et[0][h])}),M=[],R=0;R=0&&M.push(new x.Constraint(B[st],B[j],L))}new x.Solver(B,M).solve(),B.forEach(function(et,at){var Y=g[at],nt=et.position();Y[0][h]=Y[1][h]=nt;var rt=u[Y.edgeid];Y.i>0&&(rt[Y.i-1][1][h]=nt),Y.iMath.PI||C<-Math.PI)&&(C=g-u),C},l.isLeft=function(h,f,u){return(f.x-h.x)*(u.y-h.y)-(f.y-h.y)*(u.x-h.x)<=0},l.getOrder=function(h){for(var f={},u=0;u"u"&&(f[g.l]={}),f[g.l][g.r]=!0}return function(C,L){return typeof f[C]<"u"&&f[C][L]}},l.orderEdges=function(h){for(var f=[],u=0;u=C.length||I.ti+I.length>=L.length)){f.push({l:u,r:g});continue}I.si+I.length>=C.length||I.ti+I.length>=L.length?(B=C[I.si+1],R=C[I.si-1],M=L[I.ti-1]):(B=C[I.si+I.length-2],M=C[I.si+I.length],R=L[I.ti+I.length]),l.isLeft(B,M,R)?f.push({l:g,r:u}):f.push({l:u,r:g})}}return l.getOrder(f)},l.makeSegments=function(h){function f(M){return{x:M.x,y:M.y}}for(var g=[],C=f(h[0]),L=1;L1&&q>1?1e3:0}).reverse().map(function(j){return u.verts[j]});return st.push(this.nodes[C.id].ports[0]),st.filter(function(j,W){return!(W0&&j.node===C&&st[W-1].node===C)})},l.getRoutePath=function(h,f,u,g){var I,B,M,rt,q,C={routepath:"M "+h[0][0].x+" "+h[0][0].y+" ",arrowpath:""};if(h.length>1)for(var L=0;L0?B-=R/Math.abs(R)*f:M-=Z/Math.abs(Z)*f,C.routepath+="L "+B+" "+M+" ";var H=h[L+1],G=H[0].x,tt=H[0].y;R=H[1].x-G,Z=H[1].y-tt;var W,et,j=l.angleBetween2Lines(I,H)<0?1:0;Math.abs(R)>0?(W=G+R/Math.abs(R)*f,et=tt):(W=G,et=tt+Z/Math.abs(Z)*f);var at=Math.abs(W-B),Y=Math.abs(et-M);C.routepath+="A "+at+" "+Y+" 0 0 "+j+" "+W+" "+et+" "}else{var nt=[B,M];Math.abs(R)>0?(rt=[B-=R/Math.abs(R)*g,M+u],q=[B,M-u]):(rt=[B+u,M-=Z/Math.abs(Z)*g],q=[B-u,M]),C.routepath+="L "+B+" "+M+" ",g>0&&(C.arrowpath="M "+nt[0]+" "+nt[1]+" L "+rt[0]+" "+rt[1]+" L "+q[0]+" "+q[1])}}else R=(B=(I=h[0])[1].x)-I[0].x,Z=(M=I[1].y)-I[0].y,nt=[B,M],Math.abs(R)>0?(rt=[B-=R/Math.abs(R)*g,M+u],q=[B,M-u]):(rt=[B+u,M-=Z/Math.abs(Z)*g],q=[B-u,M]),C.routepath+="L "+B+" "+M+" ",g>0&&(C.arrowpath="M "+nt[0]+" "+nt[1]+" L "+rt[0]+" "+rt[1]+" L "+q[0]+" "+q[1]);return C},l}();D.GridRouter=d},30345:(w,D)=>{"use strict";Object.defineProperty(D,"__esModule",{value:!0});var s_GOLDEN_SECTION=(1+Math.sqrt(5))/2;D.applyPacking=function c(_,m,p,L,C,l){void 0===C&&(C=1),void 0===l&&(l=!0);var u=m,g=p,I=(C=typeof C<"u"?C:1,L=typeof L<"u"?L:0,0),B=0,M=0,R=0,Z=[];function K(et,at){Z=[],I=0,B=0,R=0;for(var Y=0;Y=et.height&&Z[nt].x+Z[nt].width+et.width+10-at<=1e-4){Y=Z[nt];break}Z.push(et),void 0!==Y?(et.x=Y.x+Y.width+10,et.y=Y.bottom,et.space_left=et.height,et.bottom=et.y,Y.space_left-=et.height+10,Y.bottom+=et.height+10):(et.y=R,R+=et.height+10,et.x=0,et.bottom=et.y,et.space_left=et.height),et.y+et.height-B>-1e-4&&(B=et.y+et.height-0),et.x+et.width-I>-1e-4&&(I=et.x+et.width-0)}0!=_.length&&(function H(et){et.forEach(function(Y){!function at(Y){var nt=Number.MAX_VALUE,rt=Number.MAX_VALUE,q=0,F=0;Y.array.forEach(function(E){var ut=typeof E.width<"u"?E.width:L,ft=typeof E.height<"u"?E.height:L;ut/=2,ft/=2,q=Math.max(E.x+ut,q),nt=Math.min(E.x-ut,nt),F=Math.max(E.y+ft,F),rt=Math.min(E.y-ft,rt)}),Y.width=q-nt,Y.height=F-rt}(Y)})}(_),function tt(et,at){var Y=Number.POSITIVE_INFINITY,nt=0;et.sort(function(wt,yt){return yt.height-wt.height});for(var rt=Qt=M=et.reduce(function(wt,yt){return wt.widthM||St>1e-4;){if(1!=ft){var Qt=q-(q-rt)/s_GOLDEN_SECTION;E=K(et,Qt)}if(0!=ft){var pe=rt+(q-rt)/s_GOLDEN_SECTION;ut=K(et,pe)}if(Dt=Math.abs(Qt-pe),St=Math.abs(E-ut),Eut?(rt=Qt,Qt=pe,E=ut,ft=1):(q=pe,pe=Qt,ut=E,ft=0),F++>100)break}K(et,nt)}(_),l&&function G(et){et.forEach(function(at){var Y={x:0,y:0};at.array.forEach(function(q){Y.x+=q.x,Y.y+=q.y}),Y.x/=at.array.length,Y.y/=at.array.length;var rt_x=at.x-(Y.x-at.width/2)+u/2-I/2,rt_y=at.y-(Y.y-at.height/2)+g/2-B/2;at.array.forEach(function(q){q.x+=rt_x,q.y+=rt_y})})}(_))},D.separateGraphs=function x(_,m){for(var p={},t={},d=[],l=0,h=0;h{"use strict";Object.defineProperty(D,"__esModule",{value:!0});var l,u,c=s(33900),x=s(58802),_=s(91786),m=s(4068),p=s(33858),t=s(30225),d=s(30345);function h(u){return typeof u.leaves<"u"||typeof u.groups<"u"}(u=l=D.EventType||(D.EventType={}))[u.start=0]="start",u[u.tick=1]="tick",u[u.end=2]="end";var f=function(){function u(){var g=this;this._canvasSize=[1,1],this._linkDistance=20,this._defaultNodeSize=10,this._linkLengthCalculator=null,this._linkType=null,this._avoidOverlaps=!1,this._handleDisconnected=!0,this._running=!1,this._nodes=[],this._groups=[],this._rootGroup=null,this._links=[],this._constraints=[],this._distanceMatrix=null,this._descent=null,this._directedLinkConstraints=null,this._threshold=.01,this._visibilityGraph=null,this._groupCompactness=1e-6,this.event=null,this.linkAccessor={getSourceIndex:u.getSourceIndex,getTargetIndex:u.getTargetIndex,setLength:u.setLinkLength,getType:function(C){return"function"==typeof g._linkType?g._linkType(C):0}}}return u.prototype.on=function(g,C){return this.event||(this.event={}),"string"==typeof g?this.event[l[g]]=C:this.event[g]=C,this},u.prototype.trigger=function(g){this.event&&typeof this.event[g.type]<"u"&&this.event[g.type](g)},u.prototype.kick=function(){for(;!this.tick(););},u.prototype.tick=function(){if(this._alpha"u"||typeof L.py>"u")&&(L.px=L.x,L.py=L.y),this._descent.locks.add(I,[L.px,L.py]));var M=this._descent.rungeKutta();return 0===M?this._alpha=0:typeof this._lastStress<"u"&&(this._alpha=M),this._lastStress=M,this.updateNodePositions(),this.trigger({type:l.tick,alpha:this._alpha,stress:this._lastStress}),!1},u.prototype.updateNodePositions=function(){for(var L,g=this._descent.x[0],C=this._descent.x[1],I=this._nodes.length;I--;)(L=this._nodes[I]).x=g[I],L.y=C[I]},u.prototype.nodes=function(g){if(!g){if(0===this._nodes.length&&this._links.length>0){var C=0;this._links.forEach(function(I){C=Math.max(C,I.source,I.target)}),this._nodes=new Array(++C);for(var L=0;L"u"&&(L.padding=1),typeof L.leaves<"u"&&L.leaves.forEach(function(I,B){"number"==typeof I&&((L.leaves[B]=C._nodes[I]).parent=L)}),typeof L.groups<"u"&&L.groups.forEach(function(I,B){"number"==typeof I&&((L.groups[B]=C._groups[I]).parent=L)})}),this._rootGroup.leaves=this._nodes.filter(function(L){return typeof L.parent>"u"}),this._rootGroup.groups=this._groups.filter(function(L){return typeof L.parent>"u"}),this):this._groups},u.prototype.powerGraphGroups=function(g){var C=c.getGroups(this._nodes,this._links,this.linkAccessor,this._rootGroup);return this.groups(C.groups),g(C),this},u.prototype.avoidOverlaps=function(g){return arguments.length?(this._avoidOverlaps=g,this):this._avoidOverlaps},u.prototype.handleDisconnected=function(g){return arguments.length?(this._handleDisconnected=g,this):this._handleDisconnected},u.prototype.flowLayout=function(g,C){return arguments.length||(g="y"),this._directedLinkConstraints={axis:g,getMinSeparation:"number"==typeof C?function(){return C}:C},this},u.prototype.links=function(g){return arguments.length?(this._links=g,this):this._links},u.prototype.constraints=function(g){return arguments.length?(this._constraints=g,this):this._constraints},u.prototype.distanceMatrix=function(g){return arguments.length?(this._distanceMatrix=g,this):this._distanceMatrix},u.prototype.size=function(g){return g?(this._canvasSize=g,this):this._canvasSize},u.prototype.defaultNodeSize=function(g){return g?(this._defaultNodeSize=g,this):this._defaultNodeSize},u.prototype.groupCompactness=function(g){return g?(this._groupCompactness=g,this):this._groupCompactness},u.prototype.linkDistance=function(g){return g?(this._linkDistance="function"==typeof g?g:+g,this._linkLengthCalculator=null,this):this._linkDistance},u.prototype.linkType=function(g){return this._linkType=g,this},u.prototype.convergenceThreshold=function(g){return g?(this._threshold="function"==typeof g?g:+g,this):this._threshold},u.prototype.alpha=function(g){return arguments.length?(g=+g,this._alpha?this._alpha=g>0?g:0:g>0&&(this._running||(this._running=!0,this.trigger({type:l.start,alpha:this._alpha=g}),this.kick())),this):this._alpha},u.prototype.getLinkLength=function(g){return"function"==typeof this._linkDistance?+this._linkDistance(g):this._linkDistance},u.setLinkLength=function(g,C){g.length=C},u.prototype.getLinkType=function(g){return"function"==typeof this._linkType?this._linkType(g):0},u.prototype.symmetricDiffLinkLengths=function(g,C){var L=this;return void 0===C&&(C=1),this.linkDistance(function(I){return g*I.length}),this._linkLengthCalculator=function(){return x.symmetricDiffLinkLengths(L._links,L.linkAccessor,C)},this},u.prototype.jaccardLinkLengths=function(g,C){var L=this;return void 0===C&&(C=1),this.linkDistance(function(I){return g*I.length}),this._linkLengthCalculator=function(){return x.jaccardLinkLengths(L._links,L.linkAccessor,C)},this},u.prototype.start=function(g,C,L,I,B,M){var R=this;void 0===g&&(g=0),void 0===C&&(C=0),void 0===L&&(L=0),void 0===I&&(I=0),void 0===B&&(B=!0),void 0===M&&(M=!0);var nt,G=this.nodes().length,tt=G+2*this._groups.length,st=this._canvasSize[0],j=this._canvasSize[1],W=new Array(tt),et=new Array(tt),at=null,Y=this._avoidOverlaps;this._nodes.forEach(function(Dt,St){Dt.index=St,typeof Dt.x>"u"&&(Dt.x=st/2,Dt.y=j/2),W[St]=Dt.x,et[St]=Dt.y}),this._linkLengthCalculator&&this._linkLengthCalculator(),this._distanceMatrix?nt=this._distanceMatrix:(nt=new p.Calculator(tt,this._links,u.getSourceIndex,u.getTargetIndex,function(Dt){return R.getLinkLength(Dt)}).DistanceMatrix(),at=_.Descent.createSquareMatrix(tt,function(){return 2}),this._links.forEach(function(Dt){"number"==typeof Dt.source&&(Dt.source=R._nodes[Dt.source]),"number"==typeof Dt.target&&(Dt.target=R._nodes[Dt.target])}),this._links.forEach(function(Dt){var St=u.getSourceIndex(Dt),Qt=u.getTargetIndex(Dt);at[St][Qt]=at[Qt][St]=Dt.weight||1}));var rt=_.Descent.createSquareMatrix(tt,function(Dt,St){return nt[Dt][St]});if(this._rootGroup&&typeof this._rootGroup.groups<"u"){var Z=G;this._groups.forEach(function(St){(function(St,Qt,pe,wt){at[St][Qt]=at[Qt][St]=pe,rt[St][Qt]=rt[Qt][St]=.1})(Z,Z+1,R._groupCompactness),W[Z]=0,et[Z++]=0,W[Z]=0,et[Z++]=0})}else this._rootGroup={leaves:this._nodes,groups:[]};var F=this._constraints||[];for(this._directedLinkConstraints&&(this.linkAccessor.getMinSeparation=this._directedLinkConstraints.getMinSeparation,F=F.concat(x.generateDirectedEdgeConstraints(G,this._links,this._directedLinkConstraints.axis,this.linkAccessor))),this.avoidOverlaps(!1),this._descent=new _.Descent([W,et],rt),this._descent.locks.clear(),Z=0;Z0&&(this._descent.project=new m.Projection(this._nodes,this._groups,this._rootGroup,F).projectFunctions()),this._descent.run(C),this.separateOverlappingComponents(st,j,M),this.avoidOverlaps(Y),Y&&(this._nodes.forEach(function(Dt,St){Dt.x=W[St],Dt.y=et[St]}),this._descent.project=new m.Projection(this._nodes,this._groups,this._rootGroup,F,!0).projectFunctions(),this._nodes.forEach(function(Dt,St){W[St]=Dt.x,et[St]=Dt.y})),this._descent.G=at,this._descent.run(L),I){this._descent.snapStrength=1e3,this._descent.snapGridSize=this._nodes[0].width,this._descent.numGridSnapNodes=G,this._descent.scaleSnapByMaxH=G!=tt;var ft=_.Descent.createSquareMatrix(tt,function(Dt,St){return Dt>=G||St>=G?at[Dt][St]:0});this._descent.G=ft,this._descent.run(I)}return this.updateNodePositions(),this.separateOverlappingComponents(st,j,M),B?this.resume():this},u.prototype.initialLayout=function(g,C,L){if(this._groups.length>0&&g>0){var I=this._nodes.length,B=this._links.map(function(R){return{source:R.source.index,target:R.target.index}}),M=this._nodes.map(function(R){return{index:R.index}});this._groups.forEach(function(R,Z){M.push({index:R.index=I+Z})}),this._groups.forEach(function(R,Z){typeof R.leaves<"u"&&R.leaves.forEach(function(H){return B.push({source:R.index,target:H.index})}),typeof R.groups<"u"&&R.groups.forEach(function(H){return B.push({source:R.index,target:H.index})})}),(new u).size(this.size()).nodes(M).links(B).avoidOverlaps(!1).linkDistance(this.linkDistance()).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(g,0,0,0,!1),this._nodes.forEach(function(R){C[R.index]=M[R.index].x,L[R.index]=M[R.index].y})}else this._descent.run(g)},u.prototype.separateOverlappingComponents=function(g,C,L){var I=this;if(void 0===L&&(L=!0),!this._distanceMatrix&&this._handleDisconnected){var B=this._descent.x[0],M=this._descent.x[1];this._nodes.forEach(function(Z,H){Z.x=B[H],Z.y=M[H]});var R=d.separateGraphs(this._nodes,this._links);d.applyPacking(R,g,C,this._defaultNodeSize,1,L),this._nodes.forEach(function(Z,H){I._descent.x[0][H]=Z.x,I._descent.x[1][H]=Z.y,Z.bounds&&(Z.bounds.setXCentre(Z.x),Z.bounds.setYCentre(Z.y))})}},u.prototype.resume=function(){return this.alpha(.1)},u.prototype.stop=function(){return this.alpha(0)},u.prototype.prepareEdgeRouting=function(g){void 0===g&&(g=0),this._visibilityGraph=new t.TangentVisibilityGraph(this._nodes.map(function(C){return C.bounds.inflate(-g).vertices()}))},u.prototype.routeEdge=function(g,C,L){void 0===C&&(C=5);var I=[],B=new t.TangentVisibilityGraph(this._visibilityGraph.P,{V:this._visibilityGraph.V,E:this._visibilityGraph.E}),M={x:g.source.x,y:g.source.y},R={x:g.target.x,y:g.target.y},Z=B.addPoint(M,g.source.index),H=B.addPoint(R,g.target.index);B.addEdgeIfVisible(M,R,g.source.index,g.target.index),typeof L<"u"&&L(B);var j=new p.Calculator(B.V.length,B.E,function(rt){return rt.source.id},function(rt){return rt.target.id},function(rt){return rt.length()}).PathFromNodeToNode(Z.id,H.id);if(1===j.length||j.length===B.V.length){var W=m.makeEdgeBetween(g.source.innerBounds,g.target.innerBounds,C);I=[W.sourceIntersection,W.arrowStart]}else{for(var et=j.length-2,at=B.V[j[et]].p,Y=B.V[j[0]].p,nt=(I=[g.source.innerBounds.rayIntersection(at.x,at.y)],et);nt>=0;--nt)I.push(B.V[j[nt]].p);I.push(m.makeEdgeTo(Y,g.target.innerBounds,C))}return I},u.getSourceIndex=function(g){return"number"==typeof g.source?g.source:g.source.index},u.getTargetIndex=function(g){return"number"==typeof g.target?g.target:g.target.index},u.linkId=function(g){return u.getSourceIndex(g)+"-"+u.getTargetIndex(g)},u.dragStart=function(g){h(g)?u.storeOffset(g,u.dragOrigin(g)):(u.stopNode(g),g.fixed|=2)},u.stopNode=function(g){g.px=g.x,g.py=g.y},u.storeOffset=function(g,C){typeof g.leaves<"u"&&g.leaves.forEach(function(L){L.fixed|=2,u.stopNode(L),L._dragGroupOffsetX=L.x-C.x,L._dragGroupOffsetY=L.y-C.y}),typeof g.groups<"u"&&g.groups.forEach(function(L){return u.storeOffset(L,C)})},u.dragOrigin=function(g){return h(g)?{x:g.bounds.cx(),y:g.bounds.cy()}:g},u.drag=function(g,C){h(g)?(typeof g.leaves<"u"&&g.leaves.forEach(function(L){g.bounds.setXCentre(C.x),g.bounds.setYCentre(C.y),L.px=L._dragGroupOffsetX+C.x,L.py=L._dragGroupOffsetY+C.y}),typeof g.groups<"u"&&g.groups.forEach(function(L){return u.drag(L,C)})):(g.px=C.x,g.py=C.y)},u.dragEnd=function(g){h(g)?(typeof g.leaves<"u"&&g.leaves.forEach(function(C){u.dragEnd(C),delete C._dragGroupOffsetX,delete C._dragGroupOffsetY}),typeof g.groups<"u"&&g.groups.forEach(u.dragEnd)):g.fixed&=-7},u.mouseOver=function(g){g.fixed|=4,g.px=g.x,g.py=g.y},u.mouseOut=function(g){g.fixed&=-5},u}();D.Layout=f},86461:(w,D,s)=>{"use strict";Object.defineProperty(D,"__esModule",{value:!0});var c=s(33858),x=s(91786),_=s(4068),m=s(58802),p=function(){function h(f,u){this.source=f,this.target=u}return h.prototype.actualLength=function(f){var u=this;return Math.sqrt(f.reduce(function(g,C){var L=C[u.target]-C[u.source];return g+L*L},0))},h}();D.Link3D=p,D.Node3D=function h(f,u,g){void 0===f&&(f=0),void 0===u&&(u=0),void 0===g&&(g=0),this.x=f,this.y=u,this.z=g};var d=function(){function h(f,u,g){var C=this;void 0===g&&(g=1),this.nodes=f,this.links=u,this.idealLinkLength=g,this.constraints=null,this.useJaccardLinkLengths=!0,this.result=new Array(h.k);for(var L=0;L"u"&&(I[Z]=Math.random())}C.result[0][B]=I.x,C.result[1][B]=I.y,C.result[2][B]=I.z})}return h.prototype.linkLength=function(f){return f.actualLength(this.result)},h.prototype.start=function(f){var u=this;void 0===f&&(f=100);var g=this.nodes.length,C=new l;this.useJaccardLinkLengths&&m.jaccardLinkLengths(this.links,C,1.5),this.links.forEach(function(Z){return Z.length*=u.idealLinkLength});var L=new c.Calculator(g,this.links,function(Z){return Z.source},function(Z){return Z.target},function(Z){return Z.length}).DistanceMatrix(),I=x.Descent.createSquareMatrix(g,function(Z,H){return L[Z][H]}),B=x.Descent.createSquareMatrix(g,function(){return 2});this.links.forEach(function(Z){var H=Z.source,G=Z.target;return B[H][G]=B[G][H]=1}),this.descent=new x.Descent(this.result,I),this.descent.threshold=.001,this.descent.G=B,this.constraints&&(this.descent.project=new _.Projection(this.nodes,null,null,this.constraints).projectFunctions());for(var M=0;M{"use strict";function s(l,h){var f={};for(var u in l)f[u]={};for(var u in h)f[u]={};return Object.keys(f).length}function c(l,h){var f=0;for(var u in l)typeof h[u]<"u"&&++f;return f}function _(l,h,f,u){var g=function x(l,h){var f={},u=function(g,C){typeof f[g]>"u"&&(f[g]={}),f[g][C]={}};return l.forEach(function(g){var C=h.getSourceIndex(g),L=h.getTargetIndex(g);u(C,L),u(L,C)}),f}(l,u);l.forEach(function(C){var L=g[u.getSourceIndex(C)],I=g[u.getTargetIndex(C)];u.setLength(C,1+h*f(L,I))})}function d(l,h,f){var u=[],g=0,C=[],L=[];function I(j){j.index=j.lowlink=g++,C.push(j),j.onStack=!0;for(var W=0,et=j.out;W"u"?(I(at),j.lowlink=Math.min(j.lowlink,at.lowlink)):at.onStack&&(j.lowlink=Math.min(j.lowlink,at.index))}if(j.lowlink===j.index){for(var Y=[];C.length&&((at=C.pop()).onStack=!1,Y.push(at),at!==j););L.push(Y.map(function(nt){return nt.id}))}}for(var B=0;B"u"&&I(st)}return L}Object.defineProperty(D,"__esModule",{value:!0}),D.symmetricDiffLinkLengths=function m(l,h,f){void 0===f&&(f=1),_(l,f,function(u,g){return Math.sqrt(s(u,g)-c(u,g))},h)},D.jaccardLinkLengths=function p(l,h,f){void 0===f&&(f=1),_(l,f,function(u,g){return Math.min(Object.keys(u).length,Object.keys(g).length)<1.1?0:c(u,g)/s(u,g)},h)},D.generateDirectedEdgeConstraints=function t(l,h,f,u){var g=d(l,h,u),C={};g.forEach(function(I,B){return I.forEach(function(M){return C[M]=B})});var L=[];return h.forEach(function(I){var B=u.getSourceIndex(I),M=u.getTargetIndex(I);C[B]!==C[M]&&L.push({axis:f,left:B,right:M,gap:u.getMinSeparation(I)})}),L},D.stronglyConnectedComponents=d},33900:(w,D)=>{"use strict";Object.defineProperty(D,"__esModule",{value:!0});var s=function h(f,u,g){this.source=f,this.target=u,this.type=g};D.PowerEdge=s;var c=function(){function h(f,u,g,C){var L=this;if(this.linkAccessor=g,this.modules=new Array(f),this.roots=[],C)this.initModulesFromGroup(C);else{this.roots.push(new p);for(var I=0;I=this.R))return this.merge(g.a,g.b,f),!0}},h.prototype.nEdges=function(f,u){var g=f.incoming.intersection(u.incoming),C=f.outgoing.intersection(u.outgoing);return this.R-g.count()-C.count()},h.prototype.getGroupHierarchy=function(f){var u=this,g=[];return x(this.roots[0],{},g),this.allEdges().forEach(function(I){var B=u.modules[I.source],M=u.modules[I.target];f.push(new s(typeof B.gid>"u"?I.source:g[B.gid],typeof M.gid>"u"?I.target:g[M.gid],I.type))}),g},h.prototype.allEdges=function(){var f=[];return h.getEdges(this.roots[0],f),f},h.getEdges=function(f,u){f.forAll(function(g){g.getEdges(u),h.getEdges(g.children,u)})},h}();function x(h,f,u){h.forAll(function(g){if(g.isLeaf())f.leaves||(f.leaves=[]),f.leaves.push(g.id);else{var C=f;if(g.gid=u.length,!g.isIsland()||g.isPredefined()){if(C={id:g.gid},g.isPredefined())for(var L in g.definition)C[L]=g.definition[L];f.groups||(f.groups=[]),f.groups.push(g.gid),u.push(C)}x(g.children,C,u)}})}D.Configuration=c;var _=function(){function h(f,u,g,C,L){void 0===u&&(u=new t),void 0===g&&(g=new t),void 0===C&&(C=new p),this.id=f,this.outgoing=u,this.incoming=g,this.children=C,this.definition=L}return h.prototype.getEdges=function(f){var u=this;this.outgoing.forAll(function(g,C){g.forAll(function(L){f.push(new s(u.id,L.id,C))})})},h.prototype.isLeaf=function(){return 0===this.children.count()},h.prototype.isIsland=function(){return 0===this.outgoing.count()&&0===this.incoming.count()},h.prototype.isPredefined=function(){return typeof this.definition<"u"},h}();D.Module=_;var p=function(){function h(){this.table={}}return h.prototype.count=function(){return Object.keys(this.table).length},h.prototype.intersection=function(f){var u=new h;return u.table=function m(h,f){var u={};for(var g in h)g in f&&(u[g]=h[g]);return u}(this.table,f.table),u},h.prototype.intersectionCount=function(f){return this.intersection(f).count()},h.prototype.contains=function(f){return f in this.table},h.prototype.add=function(f){this.table[f.id]=f},h.prototype.remove=function(f){delete this.table[f.id]},h.prototype.forAll=function(f){for(var u in this.table)f(this.table[u])},h.prototype.modules=function(){var f=[];return this.forAll(function(u){u.isPredefined()||f.push(u)}),f},h}();D.ModuleSet=p;var t=function(){function h(){this.sets={},this.n=0}return h.prototype.count=function(){return this.n},h.prototype.contains=function(f){var u=!1;return this.forAllModules(function(g){!u&&g.id==f&&(u=!0)}),u},h.prototype.add=function(f,u){(f in this.sets?this.sets[f]:this.sets[f]=new p).add(u),++this.n},h.prototype.remove=function(f,u){var g=this.sets[f];g.remove(u),0===g.count()&&delete this.sets[f],--this.n},h.prototype.forAll=function(f){for(var u in this.sets)f(this.sets[u],Number(u))},h.prototype.forAllModules=function(f){this.forAll(function(u,g){return u.forAll(f)})},h.prototype.intersection=function(f){var u=new h;return this.forAll(function(g,C){if(C in f.sets){var L=g.intersection(f.sets[C]),I=L.count();I>0&&(u.sets[C]=L,u.n+=I)}}),u},h}();D.LinkSets=t,D.getGroups=function l(h,f,u,g){for(var L=new c(h.length,f,u,g);L.greedyMerge(););var I=[],B=L.getGroupHierarchy(I);return I.forEach(function(M){var R=function(Z){var H=M[Z];"number"==typeof H&&(M[Z]=h[H])};R("source"),R("target")}),{groups:B,powerEdges:I}}},88866:(w,D)=>{"use strict";Object.defineProperty(D,"__esModule",{value:!0});var s=function(){function x(_){this.elem=_,this.subheaps=[]}return x.prototype.toString=function(_){for(var m="",p=!1,t=0;t0)}return null}}return p.prototype.clear=function(){this._root=null,this.size=0},p.prototype.find=function(t){for(var d=this._root;null!==d;){var l=this._comparator(t,d.data);if(0===l)return d.data;d=d.get_child(l>0)}return null},p.prototype.lowerBound=function(t){return this._bound(t,this._comparator)},p.prototype.upperBound=function(t){var d=this._comparator;return this._bound(t,function l(h,f){return d(f,h)})},p.prototype.min=function(){var t=this._root;if(null===t)return null;for(;null!==t.left;)t=t.left;return t.data},p.prototype.max=function(){var t=this._root;if(null===t)return null;for(;null!==t.right;)t=t.right;return t.data},p.prototype.iterator=function(){return new x(this)},p.prototype.each=function(t){for(var l,d=this.iterator();null!==(l=d.next());)t(l)},p.prototype.reach=function(t){for(var l,d=this.iterator();null!==(l=d.prev());)t(l)},p.prototype._bound=function(t,d){for(var l=this._root,h=this.iterator();null!==l;){var f=this._comparator(t,l.data);if(0===f)return h._cursor=l,h;h._ancestors.push(l),l=l.get_child(f>0)}for(var u=h._ancestors.length-1;u>=0;--u)if(d(t,(l=h._ancestors[u]).data)>0)return h._cursor=l,h._ancestors.length=u,h;return h._ancestors.length=0,h},p}();D.TreeBase=c;var x=function(){function p(t){this._tree=t,this._ancestors=[],this._cursor=null}return p.prototype.data=function(){return null!==this._cursor?this._cursor.data:null},p.prototype.next=function(){if(null===this._cursor){var t=this._tree._root;null!==t&&this._minNode(t)}else if(null===this._cursor.right){var d;do{if(d=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.right===d)}else this._ancestors.push(this._cursor),this._minNode(this._cursor.right);return null!==this._cursor?this._cursor.data:null},p.prototype.prev=function(){if(null===this._cursor){var t=this._tree._root;null!==t&&this._maxNode(t)}else if(null===this._cursor.left){var d;do{if(d=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.left===d)}else this._ancestors.push(this._cursor),this._maxNode(this._cursor.left);return null!==this._cursor?this._cursor.data:null},p.prototype._minNode=function(t){for(;null!==t.left;)this._ancestors.push(t),t=t.left;this._cursor=t},p.prototype._maxNode=function(t){for(;null!==t.right;)this._ancestors.push(t),t=t.right;this._cursor=t},p}();D.Iterator=x;var _=function(){function p(t){this.data=t,this.left=null,this.right=null,this.red=!0}return p.prototype.get_child=function(t){return t?this.right:this.left},p.prototype.set_child=function(t,d){t?this.right=d:this.left=d},p}(),m=function(p){function t(d){var l=p.call(this)||this;return l._root=null,l._comparator=d,l.size=0,l}return s(t,p),t.prototype.insert=function(d){var l=!1;if(null===this._root)this._root=new _(d),l=!0,this.size++;else{var h=new _(void 0),f=!1,u=!1,g=null,C=h,L=null,I=this._root;for(C.right=this._root;;){if(null===I?(I=new _(d),L.set_child(f,I),l=!0,this.size++):t.is_red(I.left)&&t.is_red(I.right)&&(I.red=!0,I.left.red=!1,I.right.red=!1),t.is_red(I)&&t.is_red(L)){var B=C.right===g;I===L.get_child(u)?C.set_child(B,t.single_rotate(g,!u)):C.set_child(B,t.double_rotate(g,!u))}var M=this._comparator(I.data,d);if(0===M)break;u=f,null!==g&&(C=g),g=L,L=I,I=I.get_child(f=M<0)}this._root=h.right}return this._root.red=!1,l},t.prototype.remove=function(d){if(null===this._root)return!1;var l=new _(void 0),h=l;h.right=this._root;for(var f=null,u=null,g=null,C=!0;null!==h.get_child(C);){var L=C;u=f,f=h,h=h.get_child(C);var I=this._comparator(d,h.data);if(C=I>0,0===I&&(g=h),!t.is_red(h)&&!t.is_red(h.get_child(C)))if(t.is_red(h.get_child(!C))){var B=t.single_rotate(h,C);f.set_child(L,B),f=B}else if(!t.is_red(h.get_child(!C))){var M=f.get_child(!L);if(null!==M)if(t.is_red(M.get_child(!L))||t.is_red(M.get_child(L))){var R=u.right===f;t.is_red(M.get_child(L))?u.set_child(R,t.double_rotate(f,L)):t.is_red(M.get_child(!L))&&u.set_child(R,t.single_rotate(f,L));var Z=u.get_child(R);Z.red=!0,h.red=!0,Z.left.red=!1,Z.right.red=!1}else f.red=!1,M.red=!0,h.red=!0}}return null!==g&&(g.data=h.data,f.set_child(f.right===h,h.get_child(null===h.left)),this.size--),this._root=l.right,null!==this._root&&(this._root.red=!1),null!==g},t.is_red=function(d){return null!==d&&d.red},t.single_rotate=function(d,l){var h=d.get_child(!l);return d.set_child(!l,h.get_child(l)),h.set_child(l,d),d.red=!0,h.red=!1,h},t.double_rotate=function(d,l){return d.set_child(!l,t.single_rotate(d.get_child(!l),!l)),t.single_rotate(d,l)},t}(c);D.RBTree=m},4068:function(w,D,s){"use strict";var j,c=this&&this.__extends||(j=function(W,et){return(j=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(at,Y){at.__proto__=Y}||function(at,Y){for(var nt in Y)Y.hasOwnProperty(nt)&&(at[nt]=Y[nt])})(W,et)},function(W,et){function at(){this.constructor=W}j(W,et),W.prototype=null===et?Object.create(et):(at.prototype=et.prototype,new at)});Object.defineProperty(D,"__esModule",{value:!0});var x=s(98237),_=s(94655);function m(j){return j.bounds=typeof j.leaves<"u"?j.leaves.reduce(function(W,et){return et.bounds.union(W)},p.empty()):p.empty(),typeof j.groups<"u"&&(j.bounds=j.groups.reduce(function(W,et){return m(et).union(W)},j.bounds)),j.bounds=j.bounds.inflate(j.padding),j.bounds}D.computeGroupBounds=m;var p=function(){function j(W,et,at,Y){this.x=W,this.X=et,this.y=at,this.Y=Y}return j.empty=function(){return new j(Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY)},j.prototype.cx=function(){return(this.x+this.X)/2},j.prototype.cy=function(){return(this.y+this.Y)/2},j.prototype.overlapX=function(W){var et=this.cx(),at=W.cx();return et<=at&&W.x0?at[0]:null},j.prototype.vertices=function(){return[{x:this.x,y:this.y},{x:this.X,y:this.y},{x:this.X,y:this.Y},{x:this.x,y:this.Y}]},j.lineIntersection=function(W,et,at,Y,nt,rt,q,F){var E=at-W,ut=q-nt,ft=Y-et,Dt=F-rt,St=Dt*E-ut*ft;if(0==St)return null;var Qt=W-nt,pe=et-rt,yt=(ut*pe-Dt*Qt)/St,zt=(E*pe-ft*Qt)/St;return yt>=0&&yt<=1&&zt>=0&&zt<=1?{x:W+yt*E,y:et+yt*ft}:null},j.prototype.inflate=function(W){return new j(this.x-W,this.X+W,this.y-W,this.Y+W)},j}();D.Rectangle=p,D.makeEdgeBetween=function t(j,W,et){var at=j.rayIntersection(W.cx(),W.cy())||{x:j.cx(),y:j.cy()},Y=W.rayIntersection(j.cx(),j.cy())||{x:W.cx(),y:W.cy()},nt=Y.x-at.x,rt=Y.y-at.y,q=Math.sqrt(nt*nt+rt*rt),F=q-et;return{sourceIntersection:at,targetIntersection:Y,arrowStart:{x:at.x+F*nt/q,y:at.y+F*rt/q}}},D.makeEdgeTo=function d(j,W,et){var at=W.rayIntersection(j.x,j.y);at||(at={x:W.cx(),y:W.cy()});var Y=at.x-j.x,nt=at.y-j.y,rt=Math.sqrt(Y*Y+nt*nt);return{x:at.x-et*Y/rt,y:at.y-et*nt/rt}};var l=function j(W,et,at){this.v=W,this.r=et,this.pos=at,this.prev=u(),this.next=u()},h=function j(W,et,at){this.isOpen=W,this.v=et,this.pos=at};function f(j,W){return j.pos>W.pos?1:j.pos0&&(j[at].insert(nt),nt[Y].insert(j))};et("next","prev"),et("prev","next")}};function L(j,W,et,at){void 0===at&&(at=!1);var Y=j.padding,nt=typeof j.groups<"u"?j.groups.length:0,rt=typeof j.leaves<"u"?j.leaves.length:0,q=nt?j.groups.reduce(function(ie,Ot){return ie.concat(L(Ot,W,et,!0))},[]):[],F=(at?2:0)+rt+nt,E=new Array(F),ut=new Array(F),ft=0,Dt=function(ie,Ot){ut[ft]=ie,E[ft++]=Ot};if(at){var St=j.bounds,Qt=W.getCentre(St),pe=W.getSize(St)/2,wt=W.getOpen(St),yt=W.getClose(St),Nt=Qt-pe+Y/2,zt=Qt+pe-Y/2;j.minVar.desiredPosition=Nt,Dt(W.makeRect(wt,yt,Nt,Y),j.minVar),j.maxVar.desiredPosition=zt,Dt(W.makeRect(wt,yt,zt,Y),j.maxVar)}rt&&j.leaves.forEach(function(ie){return Dt(ie.bounds,ie.variable)}),nt&&j.groups.forEach(function(ie){var Ot=ie.bounds;Dt(W.makeRect(W.getOpen(Ot),W.getClose(Ot),W.getCentre(Ot),W.getSize(Ot)),ie.minVar)});var de=I(ut,E,W,et);return nt&&(E.forEach(function(ie){ie.cOut=[],ie.cIn=[]}),de.forEach(function(ie){ie.left.cOut.push(ie),ie.right.cIn.push(ie)}),j.groups.forEach(function(ie){var Ot=(ie.padding-W.getSize(ie.bounds))/2;ie.minVar.cIn.forEach(function(te){return te.gap+=Ot}),ie.minVar.cOut.forEach(function(te){te.left=ie.maxVar,te.gap+=Ot})})),q.concat(de)}function I(j,W,et,at){var Y,nt=j.length,rt=2*nt;console.assert(W.length>=nt);var q=new Array(rt);for(Y=0;Yq[at]&&(q[at]=F)}rt=q})}},j.prototype.createAlignment=function(W){var et=this,at=this.nodes[W.offsets[0].node].variable;this.makeFeasible(W);var Y="x"===W.axis?this.xConstraints:this.yConstraints;W.offsets.slice(1).forEach(function(nt){Y.push(new x.Constraint(at,et.nodes[nt.node].variable,nt.offset,!0))})},j.prototype.createConstraints=function(W){var et=this,at=function(Y){return typeof Y.type>"u"||"separation"===Y.type};this.xConstraints=W.filter(function(Y){return"x"===Y.axis&&at(Y)}).map(function(Y){return et.createSeparation(Y)}),this.yConstraints=W.filter(function(Y){return"y"===Y.axis&&at(Y)}).map(function(Y){return et.createSeparation(Y)}),W.filter(function(Y){return"alignment"===Y.type}).forEach(function(Y){return et.createAlignment(Y)})},j.prototype.setupVariablesAndBounds=function(W,et,at,Y){this.nodes.forEach(function(nt,rt){nt.fixed?(nt.variable.weight=nt.fixedWeight?nt.fixedWeight:1e3,at[rt]=Y(nt)):nt.variable.weight=1;var q=(nt.width||0)/2,F=(nt.height||0)/2,E=W[rt],ut=et[rt];nt.bounds=new p(E-q,E+q,ut-F,ut+F)})},j.prototype.xProject=function(W,et,at){!this.rootGroup&&!this.avoidOverlaps&&!this.xConstraints||this.project(W,et,W,at,function(Y){return Y.px},this.xConstraints,H,function(Y){return Y.bounds.setXCentre(at[Y.variable.index]=Y.variable.position())},function(Y){var nt=at[Y.minVar.index]=Y.minVar.position(),rt=at[Y.maxVar.index]=Y.maxVar.position(),q=Y.padding/2;Y.bounds.x=nt-q,Y.bounds.X=rt+q})},j.prototype.yProject=function(W,et,at){!this.rootGroup&&!this.yConstraints||this.project(W,et,et,at,function(Y){return Y.py},this.yConstraints,G,function(Y){return Y.bounds.setYCentre(at[Y.variable.index]=Y.variable.position())},function(Y){var nt=at[Y.minVar.index]=Y.minVar.position(),rt=at[Y.maxVar.index]=Y.maxVar.position(),q=Y.padding/2;Y.bounds.y=nt-q,Y.bounds.Y=rt+q})},j.prototype.projectFunctions=function(){var W=this;return[function(et,at,Y){return W.xProject(et,at,Y)},function(et,at,Y){return W.yProject(et,at,Y)}]},j.prototype.project=function(W,et,at,Y,nt,rt,q,F,E){this.setupVariablesAndBounds(W,et,Y,nt),this.rootGroup&&this.avoidOverlaps&&(m(this.rootGroup),rt=rt.concat(q(this.rootGroup))),this.solve(this.variables,rt,at,Y),this.nodes.forEach(F),this.rootGroup&&this.avoidOverlaps&&(this.groups.forEach(E),m(this.rootGroup))},j.prototype.solve=function(W,et,at,Y){var nt=new x.Solver(W,et);nt.setStartingPositions(at),nt.setDesiredPositions(Y),nt.solve()},j}();D.Projection=st},33858:(w,D,s)=>{"use strict";Object.defineProperty(D,"__esModule",{value:!0});var c=s(88866),x=function t(d,l){this.id=d,this.distance=l},_=function t(d){this.id=d,this.neighbours=[]},m=function t(d,l,h){this.node=d,this.prev=l,this.d=h},p=function(){function t(d,l,h,f,u){this.n=d,this.es=l,this.neighbours=new Array(this.n);for(var g=this.n;g--;)this.neighbours[g]=new _(g);for(g=this.es.length;g--;){var C=this.es[g],L=h(C),I=f(C),B=u(C);this.neighbours[L].neighbours.push(new x(I,B)),this.neighbours[I].neighbours.push(new x(L,B))}}return t.prototype.DistanceMatrix=function(){for(var d=new Array(this.n),l=0;lM&&(I.d=M,I.prev=C,h.reduceKey(I.q,I,function(Z,H){return Z.q=H}))}}return u},t}();D.Calculator=p},98237:(w,D)=>{"use strict";Object.defineProperty(D,"__esModule",{value:!0});var s=function(){function d(l){this.scale=l,this.AB=0,this.AD=0,this.A2=0}return d.prototype.addVariable=function(l){var h=this.scale/l.scale,u=l.weight;this.AB+=u*h*(l.offset/l.scale),this.AD+=u*h*l.desiredPosition,this.A2+=u*h*h},d.prototype.getPosn=function(){return(this.AD-this.AB)/this.A2},d}();D.PositionStats=s;var c=function(){function d(l,h,f,u){void 0===u&&(u=!1),this.left=l,this.right=h,this.gap=f,this.equality=u,this.active=!1,this.unsatisfiable=!1,this.left=l,this.right=h,this.gap=f,this.equality=u}return d.prototype.slack=function(){return this.unsatisfiable?Number.MAX_VALUE:this.right.scale*this.right.position()-this.gap-this.left.scale*this.left.position()},d}();D.Constraint=c;var x=function(){function d(l,h,f){void 0===h&&(h=1),void 0===f&&(f=1),this.desiredPosition=l,this.weight=h,this.scale=f,this.offset=0}return d.prototype.dfdv=function(){return 2*this.weight*(this.position()-this.desiredPosition)},d.prototype.position=function(){return(this.block.ps.scale*this.block.posn+this.offset)/this.scale},d.prototype.visitNeighbours=function(l,h){var f=function(u,g){return u.active&&l!==g&&h(u,g)};this.cOut.forEach(function(u){return f(u,u.right)}),this.cIn.forEach(function(u){return f(u,u.left)})},d}();D.Variable=x;var _=function(){function d(l){this.vars=[],l.offset=0,this.ps=new s(l.scale),this.addVariable(l)}return d.prototype.addVariable=function(l){l.block=this,this.vars.push(l),this.ps.addVariable(l),this.posn=this.ps.getPosn()},d.prototype.updateWeightedPosition=function(){this.ps.AB=this.ps.AD=this.ps.A2=0;for(var l=0,h=this.vars.length;l=0?this.inactive.push(l):this.bs.merge(l)}}},d.prototype.solve=function(){this.satisfy();for(var l=Number.MAX_VALUE,h=this.bs.cost();Math.abs(l-h)>1e-4;)this.satisfy(),l=h,h=this.bs.cost();return h},d.LAGRANGIAN_TOLERANCE=-1e-4,d.ZERO_UPPERBOUND=-1e-10,d}();D.Solver=p,D.removeOverlapInOneDimension=function t(d,l,h){for(var f=d.map(function(K){return new x(K.desiredCenter)}),u=[],g=d.length,C=0;C=it);)++ht;if(ht-k>16&&b.subarray&&Ht)return Ht.decode(b.subarray(k,ht));for(var xt="";k>10,56320|1023&Ae)}}else xt+=String.fromCharCode((31&Ot)<<6|Rt)}else xt+=String.fromCharCode(Ot)}return xt}function Kt(b,k){return b?Zt(en,b,k):""}function xe(b,k,V,it){if(!(it>0))return 0;for(var ht=V,xt=V+it-1,Ot=0;Ot=55296&&Rt<=57343&&(Rt=65536+((1023&Rt)<<10)|1023&b.charCodeAt(++Ot)),Rt<=127){if(V>=xt)break;k[V++]=Rt}else if(Rt<=2047){if(V+1>=xt)break;k[V++]=192|Rt>>6,k[V++]=128|63&Rt}else if(Rt<=65535){if(V+2>=xt)break;k[V++]=224|Rt>>12,k[V++]=128|Rt>>6&63,k[V++]=128|63&Rt}else{if(V+3>=xt)break;k[V++]=240|Rt>>18,k[V++]=128|Rt>>12&63,k[V++]=128|Rt>>6&63,k[V++]=128|63&Rt}}return k[V]=0,V-ht}function Le(b){for(var k=0,V=0;V=55296&&it<=57343&&(it=65536+((1023&it)<<10)|1023&b.charCodeAt(++V)),it<=127?++k:k+=it<=2047?2:it<=65535?3:4}return k}function Ee(b,k){return b%k>0&&(b+=k-b%k),b}function Tt(b){Ue=b,E.HEAP8=Ve=new Int8Array(b),E.HEAP16=new Int16Array(b),E.HEAP32=be=new Int32Array(b),E.HEAPU8=en=new Uint8Array(b),E.HEAPU16=new Uint16Array(b),E.HEAPU32=new Uint32Array(b),E.HEAPF32=new Float32Array(b),E.HEAPF64=sn=new Float64Array(b)}var Wt,ce=[],_e=[],ee=[];var gi=0,Si=null;function Ri(b){gi++,E.monitorRunDependencies&&E.monitorRunDependencies(gi)}function Ni(b){if(gi--,E.monitorRunDependencies&&E.monitorRunDependencies(gi),0==gi&&Si){var k=Si;Si=null,k()}}function _i(b){E.onAbort&&E.onAbort(b),Mt(b="Aborted("+b+")"),ae=!0,b+=". Build with -s ASSERTIONS=1 for more info.";var k=new WebAssembly.RuntimeError(b);throw ft(k),k}E.preloadedImages={},E.preloadedAudios={};var fe;function Bi(b){return b.startsWith("data:application/octet-stream;base64,")}function En(b){try{if(b==fe&&te)return new Uint8Array(te);throw"both async and sync fetching of the wasm failed"}catch(k){_i(k)}}Bi(fe="expatlib.wasm")||(fe=function yt(b){return E.locateFile?E.locateFile(b,wt):wt+b}(fe));var mn,nn,Wn={11694:function(b){var k=E.getCache(E.CExpatJS)[b];if(!k.hasOwnProperty("startElement"))throw"a JSImplementation must implement all functions, you forgot CExpatJS::startElement.";k.startElement()},11912:function(b){var k=E.getCache(E.CExpatJS)[b];if(!k.hasOwnProperty("endElement"))throw"a JSImplementation must implement all functions, you forgot CExpatJS::endElement.";k.endElement()},12124:function(b){var k=E.getCache(E.CExpatJS)[b];if(!k.hasOwnProperty("characterData"))throw"a JSImplementation must implement all functions, you forgot CExpatJS::characterData.";k.characterData()}};function li(b){for(;b.length>0;){var k=b.shift();if("function"!=typeof k){var V=k.func;"number"==typeof V?void 0===k.arg?kn(V)():kn(V)(k.arg):V(void 0===k.arg?null:k.arg)}else k(E)}}function kn(b){return Wt.get(b)}var we={splitPath:function(b){return/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(b).slice(1)},normalizeArray:function(b,k){for(var V=0,it=b.length-1;it>=0;it--){var ht=b[it];"."===ht?b.splice(it,1):".."===ht?(b.splice(it,1),V++):V&&(b.splice(it,1),V--)}if(k)for(;V;V--)b.unshift("..");return b},normalize:function(b){var k="/"===b.charAt(0),V="/"===b.substr(-1);return!(b=we.normalizeArray(b.split("/").filter(function(it){return!!it}),!k).join("/"))&&!k&&(b="."),b&&V&&(b+="/"),(k?"/":"")+b},dirname:function(b){var k=we.splitPath(b),V=k[0],it=k[1];return V||it?(it&&(it=it.substr(0,it.length-1)),V+it):"."},basename:function(b){if("/"===b)return"/";var k=(b=(b=we.normalize(b)).replace(/\/$/,"")).lastIndexOf("/");return-1===k?b:b.substr(k+1)},extname:function(b){return we.splitPath(b)[3]},join:function(){var b=Array.prototype.slice.call(arguments,0);return we.normalize(b.join("/"))},join2:function(b,k){return we.normalize(b+"/"+k)}};var Fn={resolve:function(){for(var b="",k=!1,V=arguments.length-1;V>=-1&&!k;V--){var it=V>=0?arguments[V]:A.cwd();if("string"!=typeof it)throw new TypeError("Arguments to path.resolve must be strings");if(!it)return"";b=it+"/"+b,k="/"===it.charAt(0)}return(k?"/":"")+(b=we.normalizeArray(b.split("/").filter(function(ht){return!!ht}),!k).join("/"))||"."},relative:function(b,k){function V(Ae){for(var $e=0;$e=0&&""===Ae[rn];rn--);return $e>rn?[]:Ae.slice($e,rn-$e+1)}b=Fn.resolve(b).substr(1),k=Fn.resolve(k).substr(1);for(var it=V(b.split("/")),ht=V(k.split("/")),xt=Math.min(it.length,ht.length),Ot=xt,Rt=0;Rt0&&(ie(Zt(b.output,0)),b.output=[])}},default_tty1_ops:{put_char:function(b,k){null===k||10===k?(Mt(Zt(b.output,0)),b.output=[]):0!=k&&b.output.push(k)},flush:function(b){b.output&&b.output.length>0&&(Mt(Zt(b.output,0)),b.output=[])}}};var X={ops_table:null,mount:function(b){return X.createNode(null,"/",16895,0)},createNode:function(b,k,V,it){if(A.isBlkdev(V)||A.isFIFO(V))throw new A.ErrnoError(63);X.ops_table||(X.ops_table={dir:{node:{getattr:X.node_ops.getattr,setattr:X.node_ops.setattr,lookup:X.node_ops.lookup,mknod:X.node_ops.mknod,rename:X.node_ops.rename,unlink:X.node_ops.unlink,rmdir:X.node_ops.rmdir,readdir:X.node_ops.readdir,symlink:X.node_ops.symlink},stream:{llseek:X.stream_ops.llseek}},file:{node:{getattr:X.node_ops.getattr,setattr:X.node_ops.setattr},stream:{llseek:X.stream_ops.llseek,read:X.stream_ops.read,write:X.stream_ops.write,allocate:X.stream_ops.allocate,mmap:X.stream_ops.mmap,msync:X.stream_ops.msync}},link:{node:{getattr:X.node_ops.getattr,setattr:X.node_ops.setattr,readlink:X.node_ops.readlink},stream:{}},chrdev:{node:{getattr:X.node_ops.getattr,setattr:X.node_ops.setattr},stream:A.chrdev_stream_ops}});var ht=A.createNode(b,k,V,it);return A.isDir(ht.mode)?(ht.node_ops=X.ops_table.dir.node,ht.stream_ops=X.ops_table.dir.stream,ht.contents={}):A.isFile(ht.mode)?(ht.node_ops=X.ops_table.file.node,ht.stream_ops=X.ops_table.file.stream,ht.usedBytes=0,ht.contents=null):A.isLink(ht.mode)?(ht.node_ops=X.ops_table.link.node,ht.stream_ops=X.ops_table.link.stream):A.isChrdev(ht.mode)&&(ht.node_ops=X.ops_table.chrdev.node,ht.stream_ops=X.ops_table.chrdev.stream),ht.timestamp=Date.now(),b&&(b.contents[k]=ht,b.timestamp=ht.timestamp),ht},getFileDataAsTypedArray:function(b){return b.contents?b.contents.subarray?b.contents.subarray(0,b.usedBytes):new Uint8Array(b.contents):new Uint8Array(0)},expandFileStorage:function(b,k){var V=b.contents?b.contents.length:0;if(!(V>=k)){k=Math.max(k,V*(V<1048576?2:1.125)>>>0),0!=V&&(k=Math.max(k,256));var ht=b.contents;b.contents=new Uint8Array(k),b.usedBytes>0&&b.contents.set(ht.subarray(0,b.usedBytes),0)}},resizeFileStorage:function(b,k){if(b.usedBytes!=k)if(0==k)b.contents=null,b.usedBytes=0;else{var V=b.contents;b.contents=new Uint8Array(k),V&&b.contents.set(V.subarray(0,Math.min(k,b.usedBytes))),b.usedBytes=k}},node_ops:{getattr:function(b){var k={};return k.dev=A.isChrdev(b.mode)?b.id:1,k.ino=b.id,k.mode=b.mode,k.nlink=1,k.uid=0,k.gid=0,k.rdev=b.rdev,k.size=A.isDir(b.mode)?4096:A.isFile(b.mode)?b.usedBytes:A.isLink(b.mode)?b.link.length:0,k.atime=new Date(b.timestamp),k.mtime=new Date(b.timestamp),k.ctime=new Date(b.timestamp),k.blksize=4096,k.blocks=Math.ceil(k.size/k.blksize),k},setattr:function(b,k){void 0!==k.mode&&(b.mode=k.mode),void 0!==k.timestamp&&(b.timestamp=k.timestamp),void 0!==k.size&&X.resizeFileStorage(b,k.size)},lookup:function(b,k){throw A.genericErrors[44]},mknod:function(b,k,V,it){return X.createNode(b,k,V,it)},rename:function(b,k,V){if(A.isDir(b.mode)){var it;try{it=A.lookupNode(k,V)}catch{}if(it)for(var ht in it.contents)throw new A.ErrnoError(55)}delete b.parent.contents[b.name],b.parent.timestamp=Date.now(),b.name=V,k.contents[V]=b,k.timestamp=b.parent.timestamp,b.parent=k},unlink:function(b,k){delete b.contents[k],b.timestamp=Date.now()},rmdir:function(b,k){var V=A.lookupNode(b,k);for(var it in V.contents)throw new A.ErrnoError(55);delete b.contents[k],b.timestamp=Date.now()},readdir:function(b){var k=[".",".."];for(var V in b.contents)!b.contents.hasOwnProperty(V)||k.push(V);return k},symlink:function(b,k,V){var it=X.createNode(b,k,41471,0);return it.link=V,it},readlink:function(b){if(!A.isLink(b.mode))throw new A.ErrnoError(28);return b.link}},stream_ops:{read:function(b,k,V,it,ht){var xt=b.node.contents;if(ht>=b.node.usedBytes)return 0;var Ot=Math.min(b.node.usedBytes-ht,it);if(Ot>8&&xt.subarray)k.set(xt.subarray(ht,ht+Ot),V);else for(var Rt=0;Rt0||it+V8)throw new A.ErrnoError(32);for(var ht=we.normalizeArray(b.split("/").filter(function(ke){return!!ke}),!1),xt=A.root,Ot="/",Rt=0;Rt40)throw new A.ErrnoError(32)}}return{path:Ot,node:xt}},getPath:function(b){for(var k;;){if(A.isRoot(b)){var V=b.mount.mountpoint;return k?"/"!==V[V.length-1]?V+"/"+k:V+k:V}k=k?b.name+"/"+k:b.name,b=b.parent}},hashName:function(b,k){for(var V=0,it=0;it>>0)%A.nameTable.length},hashAddNode:function(b){var k=A.hashName(b.parent.id,b.name);b.name_next=A.nameTable[k],A.nameTable[k]=b},hashRemoveNode:function(b){var k=A.hashName(b.parent.id,b.name);if(A.nameTable[k]===b)A.nameTable[k]=b.name_next;else for(var V=A.nameTable[k];V;){if(V.name_next===b){V.name_next=b.name_next;break}V=V.name_next}},lookupNode:function(b,k){var V=A.mayLookup(b);if(V)throw new A.ErrnoError(V,b);for(var it=A.hashName(b.id,k),ht=A.nameTable[it];ht;ht=ht.name_next)if(ht.parent.id===b.id&&ht.name===k)return ht;return A.lookup(b,k)},createNode:function(b,k,V,it){var ht=new A.FSNode(b,k,V,it);return A.hashAddNode(ht),ht},destroyNode:function(b){A.hashRemoveNode(b)},isRoot:function(b){return b===b.parent},isMountpoint:function(b){return!!b.mounted},isFile:function(b){return 32768==(61440&b)},isDir:function(b){return 16384==(61440&b)},isLink:function(b){return 40960==(61440&b)},isChrdev:function(b){return 8192==(61440&b)},isBlkdev:function(b){return 24576==(61440&b)},isFIFO:function(b){return 4096==(61440&b)},isSocket:function(b){return 49152==(49152&b)},flagModes:{r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090},modeStringToFlags:function(b){var k=A.flagModes[b];if(typeof k>"u")throw new Error("Unknown file open mode: "+b);return k},flagsToPermissionString:function(b){var k=["r","w","rw"][3&b];return 512&b&&(k+="w"),k},nodePermissions:function(b,k){return A.ignorePermissions?0:k.includes("r")&&!(292&b.mode)||k.includes("w")&&!(146&b.mode)||k.includes("x")&&!(73&b.mode)?2:0},mayLookup:function(b){return A.nodePermissions(b,"x")||(b.node_ops.lookup?0:2)},mayCreate:function(b,k){try{return A.lookupNode(b,k),20}catch{}return A.nodePermissions(b,"wx")},mayDelete:function(b,k,V){var it;try{it=A.lookupNode(b,k)}catch(xt){return xt.errno}var ht=A.nodePermissions(b,"wx");if(ht)return ht;if(V){if(!A.isDir(it.mode))return 54;if(A.isRoot(it)||A.getPath(it)===A.cwd())return 10}else if(A.isDir(it.mode))return 31;return 0},mayOpen:function(b,k){return b?A.isLink(b.mode)?32:A.isDir(b.mode)&&("r"!==A.flagsToPermissionString(k)||512&k)?31:A.nodePermissions(b,A.flagsToPermissionString(k)):44},MAX_OPEN_FDS:4096,nextfd:function(b,k){k=k||A.MAX_OPEN_FDS;for(var V=b=b||0;V<=k;V++)if(!A.streams[V])return V;throw new A.ErrnoError(33)},getStream:function(b){return A.streams[b]},createStream:function(b,k,V){A.FSStream||(A.FSStream=function(){},A.FSStream.prototype={object:{get:function(){return this.node},set:function(Ot){this.node=Ot}},isRead:{get:function(){return 1!=(2097155&this.flags)}},isWrite:{get:function(){return 0!=(2097155&this.flags)}},isAppend:{get:function(){return 1024&this.flags}}});var it=new A.FSStream;for(var ht in b)it[ht]=b[ht];b=it;var xt=A.nextfd(k,V);return b.fd=xt,A.streams[xt]=b,b},closeStream:function(b){A.streams[b]=null},chrdev_stream_ops:{open:function(b){var k=A.getDevice(b.node.rdev);b.stream_ops=k.stream_ops,b.stream_ops.open&&b.stream_ops.open(b)},llseek:function(){throw new A.ErrnoError(70)}},major:function(b){return b>>8},minor:function(b){return 255&b},makedev:function(b,k){return b<<8|k},registerDevice:function(b,k){A.devices[b]={stream_ops:k}},getDevice:function(b){return A.devices[b]},getMounts:function(b){for(var k=[],V=[b];V.length;){var it=V.pop();k.push(it),V.push.apply(V,it.mounts)}return k},syncfs:function(b,k){"function"==typeof b&&(k=b,b=!1),A.syncFSRequests++,A.syncFSRequests>1&&Mt("warning: "+A.syncFSRequests+" FS.syncfs operations in flight at once, probably just doing extra work");var V=A.getMounts(A.root.mount),it=0;function ht(Ot){return A.syncFSRequests--,k(Ot)}function xt(Ot){if(Ot)return xt.errored?void 0:(xt.errored=!0,ht(Ot));++it>=V.length&&ht(null)}V.forEach(function(Ot){if(!Ot.type.syncfs)return xt(null);Ot.type.syncfs(Ot,b,xt)})},mount:function(b,k,V){var xt,it="/"===V,ht=!V;if(it&&A.root)throw new A.ErrnoError(10);if(!it&&!ht){var Ot=A.lookupPath(V,{follow_mount:!1});if(V=Ot.path,A.isMountpoint(xt=Ot.node))throw new A.ErrnoError(10);if(!A.isDir(xt.mode))throw new A.ErrnoError(54)}var Rt={type:b,opts:k,mountpoint:V,mounts:[]},oe=b.mount(Rt);return oe.mount=Rt,Rt.root=oe,it?A.root=oe:xt&&(xt.mounted=Rt,xt.mount&&xt.mount.mounts.push(Rt)),oe},unmount:function(b){var k=A.lookupPath(b,{follow_mount:!1});if(!A.isMountpoint(k.node))throw new A.ErrnoError(28);var V=k.node,it=V.mounted,ht=A.getMounts(it);Object.keys(A.nameTable).forEach(function(Ot){for(var Rt=A.nameTable[Ot];Rt;){var oe=Rt.name_next;ht.includes(Rt.mount)&&A.destroyNode(Rt),Rt=oe}}),V.mounted=null;var xt=V.mount.mounts.indexOf(it);V.mount.mounts.splice(xt,1)},lookup:function(b,k){return b.node_ops.lookup(b,k)},mknod:function(b,k,V){var ht=A.lookupPath(b,{parent:!0}).node,xt=we.basename(b);if(!xt||"."===xt||".."===xt)throw new A.ErrnoError(28);var Ot=A.mayCreate(ht,xt);if(Ot)throw new A.ErrnoError(Ot);if(!ht.node_ops.mknod)throw new A.ErrnoError(63);return ht.node_ops.mknod(ht,xt,k,V)},create:function(b,k){return k=void 0!==k?k:438,k&=4095,A.mknod(b,k|=32768,0)},mkdir:function(b,k){return k=void 0!==k?k:511,k&=1023,A.mknod(b,k|=16384,0)},mkdirTree:function(b,k){for(var V=b.split("/"),it="",ht=0;ht"u"&&(V=k,k=438),A.mknod(b,k|=8192,V)},symlink:function(b,k){if(!Fn.resolve(b))throw new A.ErrnoError(44);var it=A.lookupPath(k,{parent:!0}).node;if(!it)throw new A.ErrnoError(44);var ht=we.basename(k),xt=A.mayCreate(it,ht);if(xt)throw new A.ErrnoError(xt);if(!it.node_ops.symlink)throw new A.ErrnoError(63);return it.node_ops.symlink(it,ht,b)},rename:function(b,k){var Rt,oe,V=we.dirname(b),it=we.dirname(k),ht=we.basename(b),xt=we.basename(k);if(Rt=A.lookupPath(b,{parent:!0}).node,oe=A.lookupPath(k,{parent:!0}).node,!Rt||!oe)throw new A.ErrnoError(44);if(Rt.mount!==oe.mount)throw new A.ErrnoError(75);var rn,Ae=A.lookupNode(Rt,ht),$e=Fn.relative(b,it);if("."!==$e.charAt(0))throw new A.ErrnoError(28);if("."!==($e=Fn.relative(k,V)).charAt(0))throw new A.ErrnoError(55);try{rn=A.lookupNode(oe,xt)}catch{}if(Ae!==rn){var ke=A.isDir(Ae.mode),Me=A.mayDelete(Rt,ht,ke);if(Me)throw new A.ErrnoError(Me);if(Me=rn?A.mayDelete(oe,xt,ke):A.mayCreate(oe,xt))throw new A.ErrnoError(Me);if(!Rt.node_ops.rename)throw new A.ErrnoError(63);if(A.isMountpoint(Ae)||rn&&A.isMountpoint(rn))throw new A.ErrnoError(10);if(oe!==Rt&&(Me=A.nodePermissions(Rt,"w")))throw new A.ErrnoError(Me);A.hashRemoveNode(Ae);try{Rt.node_ops.rename(Ae,oe,xt)}catch(_n){throw _n}finally{A.hashAddNode(Ae)}}},rmdir:function(b){var V=A.lookupPath(b,{parent:!0}).node,it=we.basename(b),ht=A.lookupNode(V,it),xt=A.mayDelete(V,it,!0);if(xt)throw new A.ErrnoError(xt);if(!V.node_ops.rmdir)throw new A.ErrnoError(63);if(A.isMountpoint(ht))throw new A.ErrnoError(10);V.node_ops.rmdir(V,it),A.destroyNode(ht)},readdir:function(b){var V=A.lookupPath(b,{follow:!0}).node;if(!V.node_ops.readdir)throw new A.ErrnoError(54);return V.node_ops.readdir(V)},unlink:function(b){var V=A.lookupPath(b,{parent:!0}).node,it=we.basename(b),ht=A.lookupNode(V,it),xt=A.mayDelete(V,it,!1);if(xt)throw new A.ErrnoError(xt);if(!V.node_ops.unlink)throw new A.ErrnoError(63);if(A.isMountpoint(ht))throw new A.ErrnoError(10);V.node_ops.unlink(V,it),A.destroyNode(ht)},readlink:function(b){var V=A.lookupPath(b).node;if(!V)throw new A.ErrnoError(44);if(!V.node_ops.readlink)throw new A.ErrnoError(28);return Fn.resolve(A.getPath(V.parent),V.node_ops.readlink(V))},stat:function(b,k){var it=A.lookupPath(b,{follow:!k}).node;if(!it)throw new A.ErrnoError(44);if(!it.node_ops.getattr)throw new A.ErrnoError(63);return it.node_ops.getattr(it)},lstat:function(b){return A.stat(b,!0)},chmod:function(b,k,V){var it;if(!(it="string"==typeof b?A.lookupPath(b,{follow:!V}).node:b).node_ops.setattr)throw new A.ErrnoError(63);it.node_ops.setattr(it,{mode:4095&k|-4096&it.mode,timestamp:Date.now()})},lchmod:function(b,k){A.chmod(b,k,!0)},fchmod:function(b,k){var V=A.getStream(b);if(!V)throw new A.ErrnoError(8);A.chmod(V.node,k)},chown:function(b,k,V,it){var ht;if(!(ht="string"==typeof b?A.lookupPath(b,{follow:!it}).node:b).node_ops.setattr)throw new A.ErrnoError(63);ht.node_ops.setattr(ht,{timestamp:Date.now()})},lchown:function(b,k,V){A.chown(b,k,V,!0)},fchown:function(b,k,V){var it=A.getStream(b);if(!it)throw new A.ErrnoError(8);A.chown(it.node,k,V)},truncate:function(b,k){if(k<0)throw new A.ErrnoError(28);var V;if(!(V="string"==typeof b?A.lookupPath(b,{follow:!0}).node:b).node_ops.setattr)throw new A.ErrnoError(63);if(A.isDir(V.mode))throw new A.ErrnoError(31);if(!A.isFile(V.mode))throw new A.ErrnoError(28);var ht=A.nodePermissions(V,"w");if(ht)throw new A.ErrnoError(ht);V.node_ops.setattr(V,{size:k,timestamp:Date.now()})},ftruncate:function(b,k){var V=A.getStream(b);if(!V)throw new A.ErrnoError(8);if(0==(2097155&V.flags))throw new A.ErrnoError(28);A.truncate(V.node,k)},utime:function(b,k,V){var ht=A.lookupPath(b,{follow:!0}).node;ht.node_ops.setattr(ht,{timestamp:Math.max(k,V)})},open:function(b,k,V,it,ht){if(""===b)throw new A.ErrnoError(44);var xt;if(V=typeof V>"u"?438:V,V=64&(k="string"==typeof k?A.modeStringToFlags(k):k)?4095&V|32768:0,"object"==typeof b)xt=b;else{b=we.normalize(b);try{xt=A.lookupPath(b,{follow:!(131072&k)}).node}catch{}}var Rt=!1;if(64&k)if(xt){if(128&k)throw new A.ErrnoError(20)}else xt=A.mknod(b,V,0),Rt=!0;if(!xt)throw new A.ErrnoError(44);if(A.isChrdev(xt.mode)&&(k&=-513),65536&k&&!A.isDir(xt.mode))throw new A.ErrnoError(54);if(!Rt){var oe=A.mayOpen(xt,k);if(oe)throw new A.ErrnoError(oe)}512&k&&A.truncate(xt,0),k&=-131713;var Ae=A.createStream({node:xt,path:A.getPath(xt),id:xt.id,flags:k,mode:xt.mode,seekable:!0,position:0,stream_ops:xt.stream_ops,node_ops:xt.node_ops,ungotten:[],error:!1},it,ht);return Ae.stream_ops.open&&Ae.stream_ops.open(Ae),E.logReadFiles&&!(1&k)&&(A.readFiles||(A.readFiles={}),b in A.readFiles||(A.readFiles[b]=1)),Ae},close:function(b){if(A.isClosed(b))throw new A.ErrnoError(8);b.getdents&&(b.getdents=null);try{b.stream_ops.close&&b.stream_ops.close(b)}catch(k){throw k}finally{A.closeStream(b.fd)}b.fd=null},isClosed:function(b){return null===b.fd},llseek:function(b,k,V){if(A.isClosed(b))throw new A.ErrnoError(8);if(!b.seekable||!b.stream_ops.llseek)throw new A.ErrnoError(70);if(0!=V&&1!=V&&2!=V)throw new A.ErrnoError(28);return b.position=b.stream_ops.llseek(b,k,V),b.ungotten=[],b.position},read:function(b,k,V,it,ht){if(it<0||ht<0)throw new A.ErrnoError(28);if(A.isClosed(b))throw new A.ErrnoError(8);if(1==(2097155&b.flags))throw new A.ErrnoError(8);if(A.isDir(b.node.mode))throw new A.ErrnoError(31);if(!b.stream_ops.read)throw new A.ErrnoError(28);var xt=typeof ht<"u";if(xt){if(!b.seekable)throw new A.ErrnoError(70)}else ht=b.position;var Ot=b.stream_ops.read(b,k,V,it,ht);return xt||(b.position+=Ot),Ot},write:function(b,k,V,it,ht,xt){if(it<0||ht<0)throw new A.ErrnoError(28);if(A.isClosed(b))throw new A.ErrnoError(8);if(0==(2097155&b.flags))throw new A.ErrnoError(8);if(A.isDir(b.node.mode))throw new A.ErrnoError(31);if(!b.stream_ops.write)throw new A.ErrnoError(28);b.seekable&&1024&b.flags&&A.llseek(b,0,2);var Ot=typeof ht<"u";if(Ot){if(!b.seekable)throw new A.ErrnoError(70)}else ht=b.position;var Rt=b.stream_ops.write(b,k,V,it,ht,xt);return Ot||(b.position+=Rt),Rt},allocate:function(b,k,V){if(A.isClosed(b))throw new A.ErrnoError(8);if(k<0||V<=0)throw new A.ErrnoError(28);if(0==(2097155&b.flags))throw new A.ErrnoError(8);if(!A.isFile(b.node.mode)&&!A.isDir(b.node.mode))throw new A.ErrnoError(43);if(!b.stream_ops.allocate)throw new A.ErrnoError(138);b.stream_ops.allocate(b,k,V)},mmap:function(b,k,V,it,ht,xt){if(0!=(2&ht)&&0==(2&xt)&&2!=(2097155&b.flags))throw new A.ErrnoError(2);if(1==(2097155&b.flags))throw new A.ErrnoError(2);if(!b.stream_ops.mmap)throw new A.ErrnoError(43);return b.stream_ops.mmap(b,k,V,it,ht,xt)},msync:function(b,k,V,it,ht){return b&&b.stream_ops.msync?b.stream_ops.msync(b,k,V,it,ht):0},munmap:function(b){return 0},ioctl:function(b,k,V){if(!b.stream_ops.ioctl)throw new A.ErrnoError(59);return b.stream_ops.ioctl(b,k,V)},readFile:function(b,k){if((k=k||{}).flags=k.flags||0,k.encoding=k.encoding||"binary","utf8"!==k.encoding&&"binary"!==k.encoding)throw new Error('Invalid encoding type "'+k.encoding+'"');var V,it=A.open(b,k.flags),xt=A.stat(b).size,Ot=new Uint8Array(xt);return A.read(it,Ot,0,xt,0),"utf8"===k.encoding?V=Zt(Ot,0):"binary"===k.encoding&&(V=Ot),A.close(it),V},writeFile:function(b,k,V){(V=V||{}).flags=V.flags||577;var it=A.open(b,V.flags,V.mode);if("string"==typeof k){var ht=new Uint8Array(Le(k)+1),xt=xe(k,ht,0,ht.length);A.write(it,ht,0,xt,void 0,V.canOwn)}else{if(!ArrayBuffer.isView(k))throw new Error("Unsupported data type");A.write(it,k,0,k.byteLength,void 0,V.canOwn)}A.close(it)},cwd:function(){return A.currentPath},chdir:function(b){var k=A.lookupPath(b,{follow:!0});if(null===k.node)throw new A.ErrnoError(44);if(!A.isDir(k.node.mode))throw new A.ErrnoError(54);var V=A.nodePermissions(k.node,"x");if(V)throw new A.ErrnoError(V);A.currentPath=k.path},createDefaultDirectories:function(){A.mkdir("/tmp"),A.mkdir("/home"),A.mkdir("/home/web_user")},createDefaultDevices:function(){A.mkdir("/dev"),A.registerDevice(A.makedev(1,3),{read:function(){return 0},write:function(k,V,it,ht,xt){return ht}}),A.mkdev("/dev/null",A.makedev(1,3)),dn.register(A.makedev(5,0),dn.default_tty_ops),dn.register(A.makedev(6,0),dn.default_tty1_ops),A.mkdev("/dev/tty",A.makedev(5,0)),A.mkdev("/dev/tty1",A.makedev(6,0));var b=function Zi(){if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues){var b=new Uint8Array(1);return function(){return crypto.getRandomValues(b),b[0]}}return function(){_i("randomDevice")}}();A.createDevice("/dev","random",b),A.createDevice("/dev","urandom",b),A.mkdir("/dev/shm"),A.mkdir("/dev/shm/tmp")},createSpecialDirectories:function(){A.mkdir("/proc");var b=A.mkdir("/proc/self");A.mkdir("/proc/self/fd"),A.mount({mount:function(){var k=A.createNode(b,"fd",16895,73);return k.node_ops={lookup:function(V,it){var xt=A.getStream(+it);if(!xt)throw new A.ErrnoError(8);var Ot={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:function(){return xt.path}}};return Ot.parent=Ot,Ot}},k}},{},"/proc/self/fd")},createStandardStreams:function(){E.stdin?A.createDevice("/dev","stdin",E.stdin):A.symlink("/dev/tty","/dev/stdin"),E.stdout?A.createDevice("/dev","stdout",null,E.stdout):A.symlink("/dev/tty","/dev/stdout"),E.stderr?A.createDevice("/dev","stderr",null,E.stderr):A.symlink("/dev/tty1","/dev/stderr"),A.open("/dev/stdin",0),A.open("/dev/stdout",1),A.open("/dev/stderr",1)},ensureErrnoError:function(){A.ErrnoError||(A.ErrnoError=function(k,V){this.node=V,this.setErrno=function(it){this.errno=it},this.setErrno(k),this.message="FS error"},A.ErrnoError.prototype=new Error,A.ErrnoError.prototype.constructor=A.ErrnoError,[44].forEach(function(b){A.genericErrors[b]=new A.ErrnoError(b),A.genericErrors[b].stack=""}))},staticInit:function(){A.ensureErrnoError(),A.nameTable=new Array(4096),A.mount(X,{},"/"),A.createDefaultDirectories(),A.createDefaultDevices(),A.createSpecialDirectories(),A.filesystems={MEMFS:X}},init:function(b,k,V){A.init.initialized=!0,A.ensureErrnoError(),E.stdin=b||E.stdin,E.stdout=k||E.stdout,E.stderr=V||E.stderr,A.createStandardStreams()},quit:function(){A.init.initialized=!1;var b=E._fflush;b&&b(0);for(var k=0;kthis.length-1||ke<0)){var Me=ke%this.chunkSize;return this.getter(ke/this.chunkSize|0)[Me]}},xt.prototype.setDataGetter=function(ke){this.getter=ke},xt.prototype.cacheLength=function(){var ke=new XMLHttpRequest;if(ke.open("HEAD",V,!1),ke.send(null),!(ke.status>=200&&ke.status<300||304===ke.status))throw new Error("Couldn't load "+V+". Status: "+ke.status);var _n,Me=Number(ke.getResponseHeader("Content-length")),Kn=(_n=ke.getResponseHeader("Accept-Ranges"))&&"bytes"===_n,er=(_n=ke.getResponseHeader("Content-Encoding"))&&"gzip"===_n,di=1048576;Kn||(di=Me);var Gn=this;Gn.setDataGetter(function(xi){var nr=xi*di,Pn=(xi+1)*di-1;if(Pn=Math.min(Pn,Me-1),typeof Gn.chunks[xi]>"u"&&(Gn.chunks[xi]=function(xi,nr){if(xi>nr)throw new Error("invalid range ("+xi+", "+nr+") or no bytes requested!");if(nr>Me-1)throw new Error("only "+Me+" bytes available! programmer error!");var Pn=new XMLHttpRequest;if(Pn.open("GET",V,!1),Me!==di&&Pn.setRequestHeader("Range","bytes="+xi+"-"+nr),typeof Uint8Array<"u"&&(Pn.responseType="arraybuffer"),Pn.overrideMimeType&&Pn.overrideMimeType("text/plain; charset=x-user-defined"),Pn.send(null),!(Pn.status>=200&&Pn.status<300||304===Pn.status))throw new Error("Couldn't load "+V+". Status: "+Pn.status);return void 0!==Pn.response?new Uint8Array(Pn.response||[]):me(Pn.responseText||"",!0)}(nr,Pn)),typeof Gn.chunks[xi]>"u")throw new Error("doXHR failed!");return Gn.chunks[xi]}),(er||!Me)&&(di=Me=1,Me=this.getter(0).length,di=Me,ie("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=Me,this._chunkSize=di,this.lengthKnown=!0},typeof XMLHttpRequest<"u")throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var Rt,oe=A.createFile(b,k,Rt={isDevice:!1,url:V},it,ht);Rt.contents?oe.contents=Rt.contents:Rt.url&&(oe.contents=null,oe.url=Rt.url),Object.defineProperties(oe,{usedBytes:{get:function(){return this.contents.length}}});var Ae={};return Object.keys(oe.stream_ops).forEach(function(rn){var ke=oe.stream_ops[rn];Ae[rn]=function(){return A.forceLoadFile(oe),ke.apply(null,arguments)}}),Ae.read=function(ke,Me,_n,Kn,er){A.forceLoadFile(oe);var di=ke.node.contents;if(er>=di.length)return 0;var Nn=Math.min(di.length-er,Kn);if(di.slice)for(var Gn=0;Gn>2]=it.dev,be[V+4>>2]=0,be[V+8>>2]=it.ino,be[V+12>>2]=it.mode,be[V+16>>2]=it.nlink,be[V+20>>2]=it.uid,be[V+24>>2]=it.gid,be[V+28>>2]=it.rdev,be[V+32>>2]=0,nn=[it.size>>>0,(mn=it.size,+Math.abs(mn)>=1?mn>0?(0|Math.min(+Math.floor(mn/4294967296),4294967295))>>>0:~~+Math.ceil((mn-+(~~mn>>>0))/4294967296)>>>0:0)],be[V+40>>2]=nn[0],be[V+44>>2]=nn[1],be[V+48>>2]=4096,be[V+52>>2]=it.blocks,be[V+56>>2]=it.atime.getTime()/1e3|0,be[V+60>>2]=0,be[V+64>>2]=it.mtime.getTime()/1e3|0,be[V+68>>2]=0,be[V+72>>2]=it.ctime.getTime()/1e3|0,be[V+76>>2]=0,nn=[it.ino>>>0,(mn=it.ino,+Math.abs(mn)>=1?mn>0?(0|Math.min(+Math.floor(mn/4294967296),4294967295))>>>0:~~+Math.ceil((mn-+(~~mn>>>0))/4294967296)>>>0:0)],be[V+80>>2]=nn[0],be[V+84>>2]=nn[1],0},doMsync:function(b,k,V,it,ht){var xt=en.slice(b,b+V);A.msync(k,xt,ht,V,it)},doMkdir:function(b,k){return"/"===(b=we.normalize(b))[b.length-1]&&(b=b.substr(0,b.length-1)),A.mkdir(b,k,0),0},doMknod:function(b,k,V){switch(61440&k){case 32768:case 8192:case 24576:case 4096:case 49152:break;default:return-28}return A.mknod(b,k,V),0},doReadlink:function(b,k,V){if(V<=0)return-28;var it=A.readlink(b),ht=Math.min(V,Le(it)),xt=Ve[k+ht];return function Te(b,k,V){return xe(b,en,k,V)}(it,k,V+1),Ve[k+ht]=xt,ht},doAccess:function(b,k){if(-8&k)return-28;var it=A.lookupPath(b,{follow:!0}).node;if(!it)return-44;var ht="";return 4&k&&(ht+="r"),2&k&&(ht+="w"),1&k&&(ht+="x"),ht&&A.nodePermissions(it,ht)?-2:0},doDup:function(b,k,V){var it=A.getStream(V);return it&&A.close(it),A.open(b,k,0,V,V).fd},doReadv:function(b,k,V,it){for(var ht=0,xt=0;xt>2],oe=A.read(b,Ve,be[k+8*xt>>2],Rt,it);if(oe<0)return-1;if(ht+=oe,oe>2],be[k+(8*xt+4)>>2],it);if(oe<0)return-1;ht+=oe}return ht},varargs:void 0,get:function(){return bt.varargs+=4,be[bt.varargs-4>>2]},getStr:function(b){return Kt(b)},getStreamFromFD:function(b){var k=A.getStream(b);if(!k)throw new A.ErrnoError(8);return k},get64:function(b,k){return b}};var Gt=[];function pt(b){try{return jt.grow(b-Ue.byteLength+65535>>>16),Tt(jt.buffer),1}catch{}}var gt={};function Xt(){if(!Xt.strings){var k={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:Qt||"./this.program"};for(var V in gt)void 0===gt[V]?delete k[V]:k[V]=gt[V];var it=[];for(var V in k)it.push(V+"="+k[V]);Xt.strings=it}return Xt.strings}var Pe=function(b,k,V,it){b||(b=this),this.parent=b,this.mount=b.mount,this.mounted=null,this.id=A.nextInode++,this.name=k,this.mode=V,this.node_ops={},this.stream_ops={},this.rdev=it};function me(b,k,V){var it=V>0?V:Le(b)+1,ht=new Array(it),xt=xe(b,ht,0,ht.length);return k&&(ht.length=xt),ht}Object.defineProperties(Pe.prototype,{read:{get:function(){return 365==(365&this.mode)},set:function(b){b?this.mode|=365:this.mode&=-366}},write:{get:function(){return 146==(146&this.mode)},set:function(b){b?this.mode|=146:this.mode&=-147}},isFolder:{get:function(){return A.isDir(this.mode)}},isDevice:{get:function(){return A.isChrdev(this.mode)}}}),A.FSNode=Pe,A.staticInit();var Fe={h:function Lt(b,k,V){bt.varargs=V;try{var it=bt.getStr(b),ht=V?bt.get():0;return A.open(it,k,ht).fd}catch(Ot){if(typeof A>"u"||!(Ot instanceof A.ErrnoError))throw Ot;return-Ot.errno}},b:function Pt(){_i("")},a:function Yt(b,k,V){var it=function Jt(b,k){var V;for(Gt.length=0,k>>=2;V=en[b++];){var it=V<105;it&&1&k&&k++,Gt.push(it?sn[k++>>1]:be[k]),++k}return Gt}(k,V);return Wn[b].apply(null,it)},k:function Q(b,k,V){en.copyWithin(b,k,k+V)},e:function mt(b){var k=en.length,V=2147483648;if((b>>>=0)>V)return!1;for(var it=1;it<=4;it*=2){var ht=k*(1+.2/it);if(ht=Math.min(ht,b+100663296),pt(Math.min(V,Ee(Math.max(b,ht),65536))))return!0}return!1},f:function kt(b,k){var V=0;return Xt().forEach(function(it,ht){var xt=k+V;be[b+4*ht>>2]=xt,function Oe(b,k,V){for(var it=0;it>0]=b.charCodeAt(it);V||(Ve[k>>0]=0)}(it,xt),V+=it.length+1}),0},g:function le(b,k){var V=Xt();be[b>>2]=V.length;var it=0;return V.forEach(function(ht){it+=ht.length+1}),be[k>>2]=it,0},d:function O(b){try{var k=bt.getStreamFromFD(b);return A.close(k),0}catch(V){if(typeof A>"u"||!(V instanceof A.ErrnoError))throw V;return V.errno}},i:function se(b,k,V,it){try{var ht=bt.getStreamFromFD(b),xt=bt.doReadv(ht,k,V);return be[it>>2]=xt,0}catch(Ot){if(typeof A>"u"||!(Ot instanceof A.ErrnoError))throw Ot;return Ot.errno}},j:function Se(b,k,V,it,ht){try{var xt=bt.getStreamFromFD(b),Rt=4294967296*V+(k>>>0),oe=9007199254740992;return Rt<=-oe||Rt>=oe?-61:(A.llseek(xt,Rt,it),nn=[xt.position>>>0,(mn=xt.position,+Math.abs(mn)>=1?mn>0?(0|Math.min(+Math.floor(mn/4294967296),4294967295))>>>0:~~+Math.ceil((mn-+(~~mn>>>0))/4294967296)>>>0:0)],be[ht>>2]=nn[0],be[ht+4>>2]=nn[1],xt.getdents&&0===Rt&&0===it&&(xt.getdents=null),0)}catch(Ae){if(typeof A>"u"||!(Ae instanceof A.ErrnoError))throw Ae;return Ae.errno}},c:function Ce(b,k,V,it){try{var ht=bt.getStreamFromFD(b),xt=bt.doWritev(ht,k,V);return be[it>>2]=xt,0}catch(Ot){if(typeof A>"u"||!(Ot instanceof A.ErrnoError))throw Ot;return Ot.errno}},l:function je(b){var k=Date.now();return be[b>>2]=k/1e3|0,be[b+4>>2]=k%1e3*1e3|0,0}};(function Mn(){var b={a:Fe};function k(Ot,Rt){E.asm=Ot.exports,Tt((jt=E.asm.m).buffer),Wt=E.asm.G,function Mi(b){_e.unshift(b)}(E.asm.n),Ni()}function V(Ot){k(Ot.instance)}function it(Ot){return function ji(){return te||"function"!=typeof fetch?Promise.resolve().then(function(){return En(fe)}):fetch(fe,{credentials:"same-origin"}).then(function(b){if(!b.ok)throw"failed to load wasm binary file at '"+fe+"'";return b.arrayBuffer()}).catch(function(){return En(fe)})}().then(function(Rt){return WebAssembly.instantiate(Rt,b)}).then(function(Rt){return Rt}).then(Ot,function(Rt){Mt("failed to asynchronously prepare wasm: "+Rt),_i(Rt)})}if(Ri(),E.instantiateWasm)try{return E.instantiateWasm(b,k)}catch(Ot){return Mt("Module.instantiateWasm callback failed with error: "+Ot),!1}return function ht(){return te||"function"!=typeof WebAssembly.instantiateStreaming||Bi(fe)||"function"!=typeof fetch?it(V):fetch(fe,{credentials:"same-origin"}).then(function(Ot){return WebAssembly.instantiateStreaming(Ot,b).then(V,function(oe){return Mt("wasm streaming compile failed: "+oe),Mt("falling back to ArrayBuffer instantiation"),it(V)})})}().catch(ft),{}})(),E.___wasm_call_ctors=function(){return(E.___wasm_call_ctors=E.asm.n).apply(null,arguments)};var Jn,pn=E._emscripten_bind_CExpat_CExpat_0=function(){return(pn=E._emscripten_bind_CExpat_CExpat_0=E.asm.o).apply(null,arguments)},ln=E._emscripten_bind_CExpat_version_0=function(){return(ln=E._emscripten_bind_CExpat_version_0=E.asm.p).apply(null,arguments)},Ye=E._emscripten_bind_CExpat_create_0=function(){return(Ye=E._emscripten_bind_CExpat_create_0=E.asm.q).apply(null,arguments)},We=E._emscripten_bind_CExpat_destroy_0=function(){return(We=E._emscripten_bind_CExpat_destroy_0=E.asm.r).apply(null,arguments)},An=E._emscripten_bind_CExpat_parse_1=function(){return(An=E._emscripten_bind_CExpat_parse_1=E.asm.s).apply(null,arguments)},Zn=E._emscripten_bind_CExpat_tag_0=function(){return(Zn=E._emscripten_bind_CExpat_tag_0=E.asm.t).apply(null,arguments)},Vn=E._emscripten_bind_CExpat_attrs_0=function(){return(Vn=E._emscripten_bind_CExpat_attrs_0=E.asm.u).apply(null,arguments)},Xn=E._emscripten_bind_CExpat_content_0=function(){return(Xn=E._emscripten_bind_CExpat_content_0=E.asm.v).apply(null,arguments)},Pi=E._emscripten_bind_CExpat_startElement_0=function(){return(Pi=E._emscripten_bind_CExpat_startElement_0=E.asm.w).apply(null,arguments)},he=E._emscripten_bind_CExpat_endElement_0=function(){return(he=E._emscripten_bind_CExpat_endElement_0=E.asm.x).apply(null,arguments)},Xe=E._emscripten_bind_CExpat_characterData_0=function(){return(Xe=E._emscripten_bind_CExpat_characterData_0=E.asm.y).apply(null,arguments)},vn=E._emscripten_bind_CExpat___destroy___0=function(){return(vn=E._emscripten_bind_CExpat___destroy___0=E.asm.z).apply(null,arguments)},wn=E._emscripten_bind_VoidPtr___destroy___0=function(){return(wn=E._emscripten_bind_VoidPtr___destroy___0=E.asm.A).apply(null,arguments)},Qn=E._emscripten_bind_CExpatJS_CExpatJS_0=function(){return(Qn=E._emscripten_bind_CExpatJS_CExpatJS_0=E.asm.B).apply(null,arguments)},ci=E._emscripten_bind_CExpatJS_startElement_0=function(){return(ci=E._emscripten_bind_CExpatJS_startElement_0=E.asm.C).apply(null,arguments)},vi=E._emscripten_bind_CExpatJS_endElement_0=function(){return(vi=E._emscripten_bind_CExpatJS_endElement_0=E.asm.D).apply(null,arguments)},jn=E._emscripten_bind_CExpatJS_characterData_0=function(){return(jn=E._emscripten_bind_CExpatJS_characterData_0=E.asm.E).apply(null,arguments)},Vi=E._emscripten_bind_CExpatJS___destroy___0=function(){return(Vi=E._emscripten_bind_CExpatJS___destroy___0=E.asm.F).apply(null,arguments)};function bi(b){function k(){Jn||(Jn=!0,E.calledRun=!0,!ae&&(function ze(){!E.noFSInit&&!A.init.initialized&&A.init(),A.ignorePermissions=!1,li(_e)}(),ut(E),E.onRuntimeInitialized&&E.onRuntimeInitialized(),function Cn(){if(E.postRun)for("function"==typeof E.postRun&&(E.postRun=[E.postRun]);E.postRun.length;)b=E.postRun.shift(),ee.unshift(b);var b;li(ee)}()))}gi>0||(function Ze(){if(E.preRun)for("function"==typeof E.preRun&&(E.preRun=[E.preRun]);E.preRun.length;)b=E.preRun.shift(),ce.unshift(b);var b;li(ce)}(),gi>0)||(E.setStatus?(E.setStatus("Running..."),setTimeout(function(){setTimeout(function(){E.setStatus("")},1),k()},1)):k())}if(E._malloc=function(){return(E._malloc=E.asm.H).apply(null,arguments)},Si=function b(){Jn||bi(),Jn||(Si=b)},E.run=bi,E.preInit)for("function"==typeof E.preInit&&(E.preInit=[E.preInit]);E.preInit.length>0;)E.preInit.pop()();function fn(){}function cn(b){return(b||fn).__cache__}function ui(b,k){var V=cn(k),it=V[b];return it||((it=Object.create((k||fn).prototype)).ptr=b,V[b]=it)}bi(),(fn.prototype=Object.create(fn.prototype)).constructor=fn,fn.prototype.__class__=fn,fn.__cache__={},E.WrapperObject=fn,E.getCache=cn,E.wrapPointer=ui,E.castObject=function Ji(b,k){return ui(b.ptr,k)},E.NULL=ui(0),E.destroy=function hi(b){if(!b.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";b.__destroy__(),delete cn(b.__class__)[b.ptr]},E.compare=function Fi(b,k){return b.ptr===k.ptr},E.getPointer=function gn(b){return b.ptr},E.getClass=function In(b){return b.__class__};var on={buffer:0,size:0,pos:0,temps:[],needed:0,prepare:function(){if(on.needed){for(var b=0;b=on.size?(At(it>0),on.needed+=it,ht=E._malloc(it),on.temps.push(ht)):(ht=on.buffer+on.pos,on.pos+=it),ht},copy:function(b,k,V){switch(V>>>=0,k.BYTES_PER_ELEMENT){case 2:V>>>=1;break;case 4:V>>>=2;break;case 8:V>>>=3}for(var ht=0;ht=$);)++dt;if(dt-S>16&&y.subarray&&Le)return Le.decode(y.subarray(S,dt));for(var vt="";S>10,56320|1023&Ie)}}else vt+=String.fromCharCode((31&Et)<<6|Bt)}else vt+=String.fromCharCode(Et)}return vt}function Ee(y,S){return y?Oe(ce,y,S):""}function Ue(y,S,P,$){if(!($>0))return 0;for(var dt=P,vt=P+$-1,Et=0;Et=55296&&Bt<=57343&&(Bt=65536+((1023&Bt)<<10)|1023&y.charCodeAt(++Et)),Bt<=127){if(P>=vt)break;S[P++]=Bt}else if(Bt<=2047){if(P+1>=vt)break;S[P++]=192|Bt>>6,S[P++]=128|63&Bt}else if(Bt<=65535){if(P+2>=vt)break;S[P++]=224|Bt>>12,S[P++]=128|Bt>>6&63,S[P++]=128|63&Bt}else{if(P+3>=vt)break;S[P++]=240|Bt>>18,S[P++]=128|Bt>>12&63,S[P++]=128|Bt>>6&63,S[P++]=128|63&Bt}}return S[P]=0,P-dt}function en(y){for(var S=0,P=0;P=55296&&$<=57343&&($=65536+((1023&$)<<10)|1023&y.charCodeAt(++P)),$<=127?++S:S+=$<=2047?2:$<=65535?3:4}return S}function sn(y,S){return y%S>0&&(y+=S-y%S),y}function ze(y){Tt=y,E.HEAP8=Wt=new Int8Array(y),E.HEAP16=_e=new Int16Array(y),E.HEAP32=ee=new Int32Array(y),E.HEAPU8=ce=new Uint8Array(y),E.HEAPU16=new Uint16Array(y),E.HEAPU32=new Uint32Array(y),E.HEAPF32=new Float32Array(y),E.HEAPF64=Ze=new Float64Array(y)}var Cn,oi=[],Mi=[],mi=[];var fe=0,En=null;function Mn(y){fe++,E.monitorRunDependencies&&E.monitorRunDependencies(fe)}function mn(y){if(fe--,E.monitorRunDependencies&&E.monitorRunDependencies(fe),0==fe&&En){var S=En;En=null,S()}}function nn(y){E.onAbort&&E.onAbort(y),te(y="Aborted("+y+")"),xe=!0,y+=". Build with -s ASSERTIONS=1 for more info.";var S=new WebAssembly.RuntimeError(y);throw ft(S),S}E.preloadedImages={},E.preloadedAudios={};var kn;function li(y){return y.startsWith("data:application/octet-stream;base64,")}function we(y){try{if(y==kn&&Ht)return new Uint8Array(Ht);throw"both async and sync fetching of the wasm failed"}catch(S){nn(S)}}li(kn="graphvizlib.wasm")||(kn=function Nt(y){return E.locateFile?E.locateFile(y,yt):yt+y}(kn));var dn,z,bt,X={161580:function(y,S){var P=Ee(y),$=Ee(S);O.createPath("/",Yt.dirname(P)),O.writeFile(Yt.join("/",P),$)}};function lt(y){for(;y.length>0;){var S=y.shift();if("function"!=typeof S){var P=S.func;"number"==typeof P?void 0===S.arg?A(P)():A(P)(S.arg):P(void 0===S.arg?null:S.arg)}else S(E)}}function A(y){return Cn.get(y)}bt=function(){return performance.now()};function Pt(y){return ee[Ot()>>2]=y,y}var Yt={splitPath:function(y){return/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(y).slice(1)},normalizeArray:function(y,S){for(var P=0,$=y.length-1;$>=0;$--){var dt=y[$];"."===dt?y.splice($,1):".."===dt?(y.splice($,1),P++):P&&(y.splice($,1),P--)}if(S)for(;P;P--)y.unshift("..");return y},normalize:function(y){var S="/"===y.charAt(0),P="/"===y.substr(-1);return!(y=Yt.normalizeArray(y.split("/").filter(function($){return!!$}),!S).join("/"))&&!S&&(y="."),y&&P&&(y+="/"),(S?"/":"")+y},dirname:function(y){var S=Yt.splitPath(y),P=S[0],$=S[1];return P||$?($&&($=$.substr(0,$.length-1)),P+$):"."},basename:function(y){if("/"===y)return"/";var S=(y=(y=Yt.normalize(y)).replace(/\/$/,"")).lastIndexOf("/");return-1===S?y:y.substr(S+1)},extname:function(y){return Yt.splitPath(y)[3]},join:function(){var y=Array.prototype.slice.call(arguments,0);return Yt.normalize(y.join("/"))},join2:function(y,S){return Yt.normalize(y+"/"+S)}};var pt={resolve:function(){for(var y="",S=!1,P=arguments.length-1;P>=-1&&!S;P--){var $=P>=0?arguments[P]:O.cwd();if("string"!=typeof $)throw new TypeError("Arguments to path.resolve must be strings");if(!$)return"";y=$+"/"+y,S="/"===$.charAt(0)}return(S?"/":"")+(y=Yt.normalizeArray(y.split("/").filter(function(dt){return!!dt}),!S).join("/"))||"."},relative:function(y,S){function P(Ie){for(var Je=0;Je=0&&""===Ie[un];un--);return Je>un?[]:Ie.slice(Je,un-Je+1)}y=pt.resolve(y).substr(1),S=pt.resolve(S).substr(1);for(var $=P(y.split("/")),dt=P(S.split("/")),vt=Math.min($.length,dt.length),Et=vt,Bt=0;Bt0&&(Mt(Oe(y.output,0)),y.output=[])}},default_tty1_ops:{put_char:function(y,S){null===S||10===S?(te(Oe(y.output,0)),y.output=[]):0!=S&&y.output.push(S)},flush:function(y){y.output&&y.output.length>0&&(te(Oe(y.output,0)),y.output=[])}}};function Xt(y){y=function Ut(y,S){return Math.ceil(y/S)*S}(y,65536);var S=$e(65536,y);return S?(function gt(y,S){ce.fill(0,y,y+S)}(S,y),S):0}var kt={ops_table:null,mount:function(y){return kt.createNode(null,"/",16895,0)},createNode:function(y,S,P,$){if(O.isBlkdev(P)||O.isFIFO(P))throw new O.ErrnoError(63);kt.ops_table||(kt.ops_table={dir:{node:{getattr:kt.node_ops.getattr,setattr:kt.node_ops.setattr,lookup:kt.node_ops.lookup,mknod:kt.node_ops.mknod,rename:kt.node_ops.rename,unlink:kt.node_ops.unlink,rmdir:kt.node_ops.rmdir,readdir:kt.node_ops.readdir,symlink:kt.node_ops.symlink},stream:{llseek:kt.stream_ops.llseek}},file:{node:{getattr:kt.node_ops.getattr,setattr:kt.node_ops.setattr},stream:{llseek:kt.stream_ops.llseek,read:kt.stream_ops.read,write:kt.stream_ops.write,allocate:kt.stream_ops.allocate,mmap:kt.stream_ops.mmap,msync:kt.stream_ops.msync}},link:{node:{getattr:kt.node_ops.getattr,setattr:kt.node_ops.setattr,readlink:kt.node_ops.readlink},stream:{}},chrdev:{node:{getattr:kt.node_ops.getattr,setattr:kt.node_ops.setattr},stream:O.chrdev_stream_ops}});var dt=O.createNode(y,S,P,$);return O.isDir(dt.mode)?(dt.node_ops=kt.ops_table.dir.node,dt.stream_ops=kt.ops_table.dir.stream,dt.contents={}):O.isFile(dt.mode)?(dt.node_ops=kt.ops_table.file.node,dt.stream_ops=kt.ops_table.file.stream,dt.usedBytes=0,dt.contents=null):O.isLink(dt.mode)?(dt.node_ops=kt.ops_table.link.node,dt.stream_ops=kt.ops_table.link.stream):O.isChrdev(dt.mode)&&(dt.node_ops=kt.ops_table.chrdev.node,dt.stream_ops=kt.ops_table.chrdev.stream),dt.timestamp=Date.now(),y&&(y.contents[S]=dt,y.timestamp=dt.timestamp),dt},getFileDataAsTypedArray:function(y){return y.contents?y.contents.subarray?y.contents.subarray(0,y.usedBytes):new Uint8Array(y.contents):new Uint8Array(0)},expandFileStorage:function(y,S){var P=y.contents?y.contents.length:0;if(!(P>=S)){S=Math.max(S,P*(P<1048576?2:1.125)>>>0),0!=P&&(S=Math.max(S,256));var dt=y.contents;y.contents=new Uint8Array(S),y.usedBytes>0&&y.contents.set(dt.subarray(0,y.usedBytes),0)}},resizeFileStorage:function(y,S){if(y.usedBytes!=S)if(0==S)y.contents=null,y.usedBytes=0;else{var P=y.contents;y.contents=new Uint8Array(S),P&&y.contents.set(P.subarray(0,Math.min(S,y.usedBytes))),y.usedBytes=S}},node_ops:{getattr:function(y){var S={};return S.dev=O.isChrdev(y.mode)?y.id:1,S.ino=y.id,S.mode=y.mode,S.nlink=1,S.uid=0,S.gid=0,S.rdev=y.rdev,S.size=O.isDir(y.mode)?4096:O.isFile(y.mode)?y.usedBytes:O.isLink(y.mode)?y.link.length:0,S.atime=new Date(y.timestamp),S.mtime=new Date(y.timestamp),S.ctime=new Date(y.timestamp),S.blksize=4096,S.blocks=Math.ceil(S.size/S.blksize),S},setattr:function(y,S){void 0!==S.mode&&(y.mode=S.mode),void 0!==S.timestamp&&(y.timestamp=S.timestamp),void 0!==S.size&&kt.resizeFileStorage(y,S.size)},lookup:function(y,S){throw O.genericErrors[44]},mknod:function(y,S,P,$){return kt.createNode(y,S,P,$)},rename:function(y,S,P){if(O.isDir(y.mode)){var $;try{$=O.lookupNode(S,P)}catch{}if($)for(var dt in $.contents)throw new O.ErrnoError(55)}delete y.parent.contents[y.name],y.parent.timestamp=Date.now(),y.name=P,S.contents[P]=y,S.timestamp=y.parent.timestamp,y.parent=S},unlink:function(y,S){delete y.contents[S],y.timestamp=Date.now()},rmdir:function(y,S){var P=O.lookupNode(y,S);for(var $ in P.contents)throw new O.ErrnoError(55);delete y.contents[S],y.timestamp=Date.now()},readdir:function(y){var S=[".",".."];for(var P in y.contents)!y.contents.hasOwnProperty(P)||S.push(P);return S},symlink:function(y,S,P){var $=kt.createNode(y,S,41471,0);return $.link=P,$},readlink:function(y){if(!O.isLink(y.mode))throw new O.ErrnoError(28);return y.link}},stream_ops:{read:function(y,S,P,$,dt){var vt=y.node.contents;if(dt>=y.node.usedBytes)return 0;var Et=Math.min(y.node.usedBytes-dt,$);if(Et>8&&vt.subarray)S.set(vt.subarray(dt,dt+Et),P);else for(var Bt=0;Bt0||$+P8)throw new O.ErrnoError(32);for(var dt=Yt.normalizeArray(y.split("/").filter(function(Ne){return!!Ne}),!1),vt=O.root,Et="/",Bt=0;Bt40)throw new O.ErrnoError(32)}}return{path:Et,node:vt}},getPath:function(y){for(var S;;){if(O.isRoot(y)){var P=y.mount.mountpoint;return S?"/"!==P[P.length-1]?P+"/"+S:P+S:P}S=S?y.name+"/"+S:y.name,y=y.parent}},hashName:function(y,S){for(var P=0,$=0;$>>0)%O.nameTable.length},hashAddNode:function(y){var S=O.hashName(y.parent.id,y.name);y.name_next=O.nameTable[S],O.nameTable[S]=y},hashRemoveNode:function(y){var S=O.hashName(y.parent.id,y.name);if(O.nameTable[S]===y)O.nameTable[S]=y.name_next;else for(var P=O.nameTable[S];P;){if(P.name_next===y){P.name_next=y.name_next;break}P=P.name_next}},lookupNode:function(y,S){var P=O.mayLookup(y);if(P)throw new O.ErrnoError(P,y);for(var $=O.hashName(y.id,S),dt=O.nameTable[$];dt;dt=dt.name_next)if(dt.parent.id===y.id&&dt.name===S)return dt;return O.lookup(y,S)},createNode:function(y,S,P,$){var dt=new O.FSNode(y,S,P,$);return O.hashAddNode(dt),dt},destroyNode:function(y){O.hashRemoveNode(y)},isRoot:function(y){return y===y.parent},isMountpoint:function(y){return!!y.mounted},isFile:function(y){return 32768==(61440&y)},isDir:function(y){return 16384==(61440&y)},isLink:function(y){return 40960==(61440&y)},isChrdev:function(y){return 8192==(61440&y)},isBlkdev:function(y){return 24576==(61440&y)},isFIFO:function(y){return 4096==(61440&y)},isSocket:function(y){return 49152==(49152&y)},flagModes:{r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090},modeStringToFlags:function(y){var S=O.flagModes[y];if(typeof S>"u")throw new Error("Unknown file open mode: "+y);return S},flagsToPermissionString:function(y){var S=["r","w","rw"][3&y];return 512&y&&(S+="w"),S},nodePermissions:function(y,S){return O.ignorePermissions?0:S.includes("r")&&!(292&y.mode)||S.includes("w")&&!(146&y.mode)||S.includes("x")&&!(73&y.mode)?2:0},mayLookup:function(y){return O.nodePermissions(y,"x")||(y.node_ops.lookup?0:2)},mayCreate:function(y,S){try{return O.lookupNode(y,S),20}catch{}return O.nodePermissions(y,"wx")},mayDelete:function(y,S,P){var $;try{$=O.lookupNode(y,S)}catch(vt){return vt.errno}var dt=O.nodePermissions(y,"wx");if(dt)return dt;if(P){if(!O.isDir($.mode))return 54;if(O.isRoot($)||O.getPath($)===O.cwd())return 10}else if(O.isDir($.mode))return 31;return 0},mayOpen:function(y,S){return y?O.isLink(y.mode)?32:O.isDir(y.mode)&&("r"!==O.flagsToPermissionString(S)||512&S)?31:O.nodePermissions(y,O.flagsToPermissionString(S)):44},MAX_OPEN_FDS:4096,nextfd:function(y,S){S=S||O.MAX_OPEN_FDS;for(var P=y=y||0;P<=S;P++)if(!O.streams[P])return P;throw new O.ErrnoError(33)},getStream:function(y){return O.streams[y]},createStream:function(y,S,P){O.FSStream||(O.FSStream=function(){},O.FSStream.prototype={object:{get:function(){return this.node},set:function(Et){this.node=Et}},isRead:{get:function(){return 1!=(2097155&this.flags)}},isWrite:{get:function(){return 0!=(2097155&this.flags)}},isAppend:{get:function(){return 1024&this.flags}}});var $=new O.FSStream;for(var dt in y)$[dt]=y[dt];y=$;var vt=O.nextfd(S,P);return y.fd=vt,O.streams[vt]=y,y},closeStream:function(y){O.streams[y]=null},chrdev_stream_ops:{open:function(y){var S=O.getDevice(y.node.rdev);y.stream_ops=S.stream_ops,y.stream_ops.open&&y.stream_ops.open(y)},llseek:function(){throw new O.ErrnoError(70)}},major:function(y){return y>>8},minor:function(y){return 255&y},makedev:function(y,S){return y<<8|S},registerDevice:function(y,S){O.devices[y]={stream_ops:S}},getDevice:function(y){return O.devices[y]},getMounts:function(y){for(var S=[],P=[y];P.length;){var $=P.pop();S.push($),P.push.apply(P,$.mounts)}return S},syncfs:function(y,S){"function"==typeof y&&(S=y,y=!1),O.syncFSRequests++,O.syncFSRequests>1&&te("warning: "+O.syncFSRequests+" FS.syncfs operations in flight at once, probably just doing extra work");var P=O.getMounts(O.root.mount),$=0;function dt(Et){return O.syncFSRequests--,S(Et)}function vt(Et){if(Et)return vt.errored?void 0:(vt.errored=!0,dt(Et));++$>=P.length&&dt(null)}P.forEach(function(Et){if(!Et.type.syncfs)return vt(null);Et.type.syncfs(Et,y,vt)})},mount:function(y,S,P){var vt,$="/"===P,dt=!P;if($&&O.root)throw new O.ErrnoError(10);if(!$&&!dt){var Et=O.lookupPath(P,{follow_mount:!1});if(P=Et.path,O.isMountpoint(vt=Et.node))throw new O.ErrnoError(10);if(!O.isDir(vt.mode))throw new O.ErrnoError(54)}var Bt={type:y,opts:S,mountpoint:P,mounts:[]},ne=y.mount(Bt);return ne.mount=Bt,Bt.root=ne,$?O.root=ne:vt&&(vt.mounted=Bt,vt.mount&&vt.mount.mounts.push(Bt)),ne},unmount:function(y){var S=O.lookupPath(y,{follow_mount:!1});if(!O.isMountpoint(S.node))throw new O.ErrnoError(28);var P=S.node,$=P.mounted,dt=O.getMounts($);Object.keys(O.nameTable).forEach(function(Et){for(var Bt=O.nameTable[Et];Bt;){var ne=Bt.name_next;dt.includes(Bt.mount)&&O.destroyNode(Bt),Bt=ne}}),P.mounted=null;var vt=P.mount.mounts.indexOf($);P.mount.mounts.splice(vt,1)},lookup:function(y,S){return y.node_ops.lookup(y,S)},mknod:function(y,S,P){var dt=O.lookupPath(y,{parent:!0}).node,vt=Yt.basename(y);if(!vt||"."===vt||".."===vt)throw new O.ErrnoError(28);var Et=O.mayCreate(dt,vt);if(Et)throw new O.ErrnoError(Et);if(!dt.node_ops.mknod)throw new O.ErrnoError(63);return dt.node_ops.mknod(dt,vt,S,P)},create:function(y,S){return S=void 0!==S?S:438,S&=4095,O.mknod(y,S|=32768,0)},mkdir:function(y,S){return S=void 0!==S?S:511,S&=1023,O.mknod(y,S|=16384,0)},mkdirTree:function(y,S){for(var P=y.split("/"),$="",dt=0;dt"u"&&(P=S,S=438),O.mknod(y,S|=8192,P)},symlink:function(y,S){if(!pt.resolve(y))throw new O.ErrnoError(44);var $=O.lookupPath(S,{parent:!0}).node;if(!$)throw new O.ErrnoError(44);var dt=Yt.basename(S),vt=O.mayCreate($,dt);if(vt)throw new O.ErrnoError(vt);if(!$.node_ops.symlink)throw new O.ErrnoError(63);return $.node_ops.symlink($,dt,y)},rename:function(y,S){var Bt,ne,P=Yt.dirname(y),$=Yt.dirname(S),dt=Yt.basename(y),vt=Yt.basename(S);if(Bt=O.lookupPath(y,{parent:!0}).node,ne=O.lookupPath(S,{parent:!0}).node,!Bt||!ne)throw new O.ErrnoError(44);if(Bt.mount!==ne.mount)throw new O.ErrnoError(75);var un,Ie=O.lookupNode(Bt,dt),Je=pt.relative(y,$);if("."!==Je.charAt(0))throw new O.ErrnoError(28);if("."!==(Je=pt.relative(S,P)).charAt(0))throw new O.ErrnoError(55);try{un=O.lookupNode(ne,vt)}catch{}if(Ie!==un){var Ne=O.isDir(Ie.mode),Ge=O.mayDelete(Bt,dt,Ne);if(Ge)throw new O.ErrnoError(Ge);if(Ge=un?O.mayDelete(ne,vt,Ne):O.mayCreate(ne,vt))throw new O.ErrnoError(Ge);if(!Bt.node_ops.rename)throw new O.ErrnoError(63);if(O.isMountpoint(Ie)||un&&O.isMountpoint(un))throw new O.ErrnoError(10);if(ne!==Bt&&(Ge=O.nodePermissions(Bt,"w")))throw new O.ErrnoError(Ge);O.hashRemoveNode(Ie);try{Bt.node_ops.rename(Ie,ne,vt)}catch(Tn){throw Tn}finally{O.hashAddNode(Ie)}}},rmdir:function(y){var P=O.lookupPath(y,{parent:!0}).node,$=Yt.basename(y),dt=O.lookupNode(P,$),vt=O.mayDelete(P,$,!0);if(vt)throw new O.ErrnoError(vt);if(!P.node_ops.rmdir)throw new O.ErrnoError(63);if(O.isMountpoint(dt))throw new O.ErrnoError(10);P.node_ops.rmdir(P,$),O.destroyNode(dt)},readdir:function(y){var P=O.lookupPath(y,{follow:!0}).node;if(!P.node_ops.readdir)throw new O.ErrnoError(54);return P.node_ops.readdir(P)},unlink:function(y){var P=O.lookupPath(y,{parent:!0}).node,$=Yt.basename(y),dt=O.lookupNode(P,$),vt=O.mayDelete(P,$,!1);if(vt)throw new O.ErrnoError(vt);if(!P.node_ops.unlink)throw new O.ErrnoError(63);if(O.isMountpoint(dt))throw new O.ErrnoError(10);P.node_ops.unlink(P,$),O.destroyNode(dt)},readlink:function(y){var P=O.lookupPath(y).node;if(!P)throw new O.ErrnoError(44);if(!P.node_ops.readlink)throw new O.ErrnoError(28);return pt.resolve(O.getPath(P.parent),P.node_ops.readlink(P))},stat:function(y,S){var $=O.lookupPath(y,{follow:!S}).node;if(!$)throw new O.ErrnoError(44);if(!$.node_ops.getattr)throw new O.ErrnoError(63);return $.node_ops.getattr($)},lstat:function(y){return O.stat(y,!0)},chmod:function(y,S,P){var $;if(!($="string"==typeof y?O.lookupPath(y,{follow:!P}).node:y).node_ops.setattr)throw new O.ErrnoError(63);$.node_ops.setattr($,{mode:4095&S|-4096&$.mode,timestamp:Date.now()})},lchmod:function(y,S){O.chmod(y,S,!0)},fchmod:function(y,S){var P=O.getStream(y);if(!P)throw new O.ErrnoError(8);O.chmod(P.node,S)},chown:function(y,S,P,$){var dt;if(!(dt="string"==typeof y?O.lookupPath(y,{follow:!$}).node:y).node_ops.setattr)throw new O.ErrnoError(63);dt.node_ops.setattr(dt,{timestamp:Date.now()})},lchown:function(y,S,P){O.chown(y,S,P,!0)},fchown:function(y,S,P){var $=O.getStream(y);if(!$)throw new O.ErrnoError(8);O.chown($.node,S,P)},truncate:function(y,S){if(S<0)throw new O.ErrnoError(28);var P;if(!(P="string"==typeof y?O.lookupPath(y,{follow:!0}).node:y).node_ops.setattr)throw new O.ErrnoError(63);if(O.isDir(P.mode))throw new O.ErrnoError(31);if(!O.isFile(P.mode))throw new O.ErrnoError(28);var dt=O.nodePermissions(P,"w");if(dt)throw new O.ErrnoError(dt);P.node_ops.setattr(P,{size:S,timestamp:Date.now()})},ftruncate:function(y,S){var P=O.getStream(y);if(!P)throw new O.ErrnoError(8);if(0==(2097155&P.flags))throw new O.ErrnoError(28);O.truncate(P.node,S)},utime:function(y,S,P){var dt=O.lookupPath(y,{follow:!0}).node;dt.node_ops.setattr(dt,{timestamp:Math.max(S,P)})},open:function(y,S,P,$,dt){if(""===y)throw new O.ErrnoError(44);var vt;if(P=typeof P>"u"?438:P,P=64&(S="string"==typeof S?O.modeStringToFlags(S):S)?4095&P|32768:0,"object"==typeof y)vt=y;else{y=Yt.normalize(y);try{vt=O.lookupPath(y,{follow:!(131072&S)}).node}catch{}}var Bt=!1;if(64&S)if(vt){if(128&S)throw new O.ErrnoError(20)}else vt=O.mknod(y,P,0),Bt=!0;if(!vt)throw new O.ErrnoError(44);if(O.isChrdev(vt.mode)&&(S&=-513),65536&S&&!O.isDir(vt.mode))throw new O.ErrnoError(54);if(!Bt){var ne=O.mayOpen(vt,S);if(ne)throw new O.ErrnoError(ne)}512&S&&O.truncate(vt,0),S&=-131713;var Ie=O.createStream({node:vt,path:O.getPath(vt),id:vt.id,flags:S,mode:vt.mode,seekable:!0,position:0,stream_ops:vt.stream_ops,node_ops:vt.node_ops,ungotten:[],error:!1},$,dt);return Ie.stream_ops.open&&Ie.stream_ops.open(Ie),E.logReadFiles&&!(1&S)&&(O.readFiles||(O.readFiles={}),y in O.readFiles||(O.readFiles[y]=1)),Ie},close:function(y){if(O.isClosed(y))throw new O.ErrnoError(8);y.getdents&&(y.getdents=null);try{y.stream_ops.close&&y.stream_ops.close(y)}catch(S){throw S}finally{O.closeStream(y.fd)}y.fd=null},isClosed:function(y){return null===y.fd},llseek:function(y,S,P){if(O.isClosed(y))throw new O.ErrnoError(8);if(!y.seekable||!y.stream_ops.llseek)throw new O.ErrnoError(70);if(0!=P&&1!=P&&2!=P)throw new O.ErrnoError(28);return y.position=y.stream_ops.llseek(y,S,P),y.ungotten=[],y.position},read:function(y,S,P,$,dt){if($<0||dt<0)throw new O.ErrnoError(28);if(O.isClosed(y))throw new O.ErrnoError(8);if(1==(2097155&y.flags))throw new O.ErrnoError(8);if(O.isDir(y.node.mode))throw new O.ErrnoError(31);if(!y.stream_ops.read)throw new O.ErrnoError(28);var vt=typeof dt<"u";if(vt){if(!y.seekable)throw new O.ErrnoError(70)}else dt=y.position;var Et=y.stream_ops.read(y,S,P,$,dt);return vt||(y.position+=Et),Et},write:function(y,S,P,$,dt,vt){if($<0||dt<0)throw new O.ErrnoError(28);if(O.isClosed(y))throw new O.ErrnoError(8);if(0==(2097155&y.flags))throw new O.ErrnoError(8);if(O.isDir(y.node.mode))throw new O.ErrnoError(31);if(!y.stream_ops.write)throw new O.ErrnoError(28);y.seekable&&1024&y.flags&&O.llseek(y,0,2);var Et=typeof dt<"u";if(Et){if(!y.seekable)throw new O.ErrnoError(70)}else dt=y.position;var Bt=y.stream_ops.write(y,S,P,$,dt,vt);return Et||(y.position+=Bt),Bt},allocate:function(y,S,P){if(O.isClosed(y))throw new O.ErrnoError(8);if(S<0||P<=0)throw new O.ErrnoError(28);if(0==(2097155&y.flags))throw new O.ErrnoError(8);if(!O.isFile(y.node.mode)&&!O.isDir(y.node.mode))throw new O.ErrnoError(43);if(!y.stream_ops.allocate)throw new O.ErrnoError(138);y.stream_ops.allocate(y,S,P)},mmap:function(y,S,P,$,dt,vt){if(0!=(2&dt)&&0==(2&vt)&&2!=(2097155&y.flags))throw new O.ErrnoError(2);if(1==(2097155&y.flags))throw new O.ErrnoError(2);if(!y.stream_ops.mmap)throw new O.ErrnoError(43);return y.stream_ops.mmap(y,S,P,$,dt,vt)},msync:function(y,S,P,$,dt){return y&&y.stream_ops.msync?y.stream_ops.msync(y,S,P,$,dt):0},munmap:function(y){return 0},ioctl:function(y,S,P){if(!y.stream_ops.ioctl)throw new O.ErrnoError(59);return y.stream_ops.ioctl(y,S,P)},readFile:function(y,S){if((S=S||{}).flags=S.flags||0,S.encoding=S.encoding||"binary","utf8"!==S.encoding&&"binary"!==S.encoding)throw new Error('Invalid encoding type "'+S.encoding+'"');var P,$=O.open(y,S.flags),vt=O.stat(y).size,Et=new Uint8Array(vt);return O.read($,Et,0,vt,0),"utf8"===S.encoding?P=Oe(Et,0):"binary"===S.encoding&&(P=Et),O.close($),P},writeFile:function(y,S,P){(P=P||{}).flags=P.flags||577;var $=O.open(y,P.flags,P.mode);if("string"==typeof S){var dt=new Uint8Array(en(S)+1),vt=Ue(S,dt,0,dt.length);O.write($,dt,0,vt,void 0,P.canOwn)}else{if(!ArrayBuffer.isView(S))throw new Error("Unsupported data type");O.write($,S,0,S.byteLength,void 0,P.canOwn)}O.close($)},cwd:function(){return O.currentPath},chdir:function(y){var S=O.lookupPath(y,{follow:!0});if(null===S.node)throw new O.ErrnoError(44);if(!O.isDir(S.node.mode))throw new O.ErrnoError(54);var P=O.nodePermissions(S.node,"x");if(P)throw new O.ErrnoError(P);O.currentPath=S.path},createDefaultDirectories:function(){O.mkdir("/tmp"),O.mkdir("/home"),O.mkdir("/home/web_user")},createDefaultDevices:function(){O.mkdir("/dev"),O.registerDevice(O.makedev(1,3),{read:function(){return 0},write:function(S,P,$,dt,vt){return dt}}),O.mkdev("/dev/null",O.makedev(1,3)),mt.register(O.makedev(5,0),mt.default_tty_ops),mt.register(O.makedev(6,0),mt.default_tty1_ops),O.mkdev("/dev/tty",O.makedev(5,0)),O.mkdev("/dev/tty1",O.makedev(6,0));var y=function Q(){if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues){var y=new Uint8Array(1);return function(){return crypto.getRandomValues(y),y[0]}}return function(){nn("randomDevice")}}();O.createDevice("/dev","random",y),O.createDevice("/dev","urandom",y),O.mkdir("/dev/shm"),O.mkdir("/dev/shm/tmp")},createSpecialDirectories:function(){O.mkdir("/proc");var y=O.mkdir("/proc/self");O.mkdir("/proc/self/fd"),O.mount({mount:function(){var S=O.createNode(y,"fd",16895,73);return S.node_ops={lookup:function(P,$){var vt=O.getStream(+$);if(!vt)throw new O.ErrnoError(8);var Et={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:function(){return vt.path}}};return Et.parent=Et,Et}},S}},{},"/proc/self/fd")},createStandardStreams:function(){E.stdin?O.createDevice("/dev","stdin",E.stdin):O.symlink("/dev/tty","/dev/stdin"),E.stdout?O.createDevice("/dev","stdout",null,E.stdout):O.symlink("/dev/tty","/dev/stdout"),E.stderr?O.createDevice("/dev","stderr",null,E.stderr):O.symlink("/dev/tty1","/dev/stderr"),O.open("/dev/stdin",0),O.open("/dev/stdout",1),O.open("/dev/stderr",1)},ensureErrnoError:function(){O.ErrnoError||(O.ErrnoError=function(S,P){this.node=P,this.setErrno=function($){this.errno=$},this.setErrno(S),this.message="FS error"},O.ErrnoError.prototype=new Error,O.ErrnoError.prototype.constructor=O.ErrnoError,[44].forEach(function(y){O.genericErrors[y]=new O.ErrnoError(y),O.genericErrors[y].stack=""}))},staticInit:function(){O.ensureErrnoError(),O.nameTable=new Array(4096),O.mount(kt,{},"/"),O.createDefaultDirectories(),O.createDefaultDevices(),O.createSpecialDirectories(),O.filesystems={MEMFS:kt}},init:function(y,S,P){O.init.initialized=!0,O.ensureErrnoError(),E.stdin=y||E.stdin,E.stdout=S||E.stdout,E.stderr=P||E.stderr,O.createStandardStreams()},quit:function(){O.init.initialized=!1;var y=E._fflush;y&&y(0);for(var S=0;Sthis.length-1||Ne<0)){var Ge=Ne%this.chunkSize;return this.getter(Ne/this.chunkSize|0)[Ge]}},vt.prototype.setDataGetter=function(Ne){this.getter=Ne},vt.prototype.cacheLength=function(){var Ne=new XMLHttpRequest;if(Ne.open("HEAD",P,!1),Ne.send(null),!(Ne.status>=200&&Ne.status<300||304===Ne.status))throw new Error("Couldn't load "+P+". Status: "+Ne.status);var Tn,Ge=Number(Ne.getResponseHeader("Content-length")),Ei=(Tn=Ne.getResponseHeader("Accept-Ranges"))&&"bytes"===Tn,gr=(Tn=Ne.getResponseHeader("Content-Encoding"))&&"gzip"===Tn,Di=1048576;Ei||(Di=Ge);var yi=this;yi.setDataGetter(function(Yi){var _r=Yi*Di,qn=(Yi+1)*Di-1;if(qn=Math.min(qn,Ge-1),typeof yi.chunks[Yi]>"u"&&(yi.chunks[Yi]=function(Yi,_r){if(Yi>_r)throw new Error("invalid range ("+Yi+", "+_r+") or no bytes requested!");if(_r>Ge-1)throw new Error("only "+Ge+" bytes available! programmer error!");var qn=new XMLHttpRequest;if(qn.open("GET",P,!1),Ge!==Di&&qn.setRequestHeader("Range","bytes="+Yi+"-"+_r),typeof Uint8Array<"u"&&(qn.responseType="arraybuffer"),qn.overrideMimeType&&qn.overrideMimeType("text/plain; charset=x-user-defined"),qn.send(null),!(qn.status>=200&&qn.status<300||304===qn.status))throw new Error("Couldn't load "+P+". Status: "+qn.status);return void 0!==qn.response?new Uint8Array(qn.response||[]):Hi(qn.responseText||"",!0)}(_r,qn)),typeof yi.chunks[Yi]>"u")throw new Error("doXHR failed!");return yi.chunks[Yi]}),(gr||!Ge)&&(Di=Ge=1,Ge=this.getter(0).length,Di=Ge,Mt("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=Ge,this._chunkSize=Di,this.lengthKnown=!0},typeof XMLHttpRequest<"u")throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var Bt,ne=O.createFile(y,S,Bt={isDevice:!1,url:P},$,dt);Bt.contents?ne.contents=Bt.contents:Bt.url&&(ne.contents=null,ne.url=Bt.url),Object.defineProperties(ne,{usedBytes:{get:function(){return this.contents.length}}});var Ie={};return Object.keys(ne.stream_ops).forEach(function(un){var Ne=ne.stream_ops[un];Ie[un]=function(){return O.forceLoadFile(ne),Ne.apply(null,arguments)}}),Ie.read=function(Ne,Ge,Tn,Ei,gr){O.forceLoadFile(ne);var Di=Ne.node.contents;if(gr>=Di.length)return 0;var Ar=Math.min(Di.length-gr,Ei);if(Di.slice)for(var yi=0;yi>2]=$.dev,ee[P+4>>2]=0,ee[P+8>>2]=$.ino,ee[P+12>>2]=$.mode,ee[P+16>>2]=$.nlink,ee[P+20>>2]=$.uid,ee[P+24>>2]=$.gid,ee[P+28>>2]=$.rdev,ee[P+32>>2]=0,z=[$.size>>>0,(dn=$.size,+Math.abs(dn)>=1?dn>0?(0|Math.min(+Math.floor(dn/4294967296),4294967295))>>>0:~~+Math.ceil((dn-+(~~dn>>>0))/4294967296)>>>0:0)],ee[P+40>>2]=z[0],ee[P+44>>2]=z[1],ee[P+48>>2]=4096,ee[P+52>>2]=$.blocks,ee[P+56>>2]=$.atime.getTime()/1e3|0,ee[P+60>>2]=0,ee[P+64>>2]=$.mtime.getTime()/1e3|0,ee[P+68>>2]=0,ee[P+72>>2]=$.ctime.getTime()/1e3|0,ee[P+76>>2]=0,z=[$.ino>>>0,(dn=$.ino,+Math.abs(dn)>=1?dn>0?(0|Math.min(+Math.floor(dn/4294967296),4294967295))>>>0:~~+Math.ceil((dn-+(~~dn>>>0))/4294967296)>>>0:0)],ee[P+80>>2]=z[0],ee[P+84>>2]=z[1],0},doMsync:function(y,S,P,$,dt){var vt=ce.slice(y,y+P);O.msync(S,vt,dt,P,$)},doMkdir:function(y,S){return"/"===(y=Yt.normalize(y))[y.length-1]&&(y=y.substr(0,y.length-1)),O.mkdir(y,S,0),0},doMknod:function(y,S,P){switch(61440&S){case 32768:case 8192:case 24576:case 4096:case 49152:break;default:return-28}return O.mknod(y,S,P),0},doReadlink:function(y,S,P){if(P<=0)return-28;var $=O.readlink(y),dt=Math.min(P,en($)),vt=Wt[S+dt];return function Ve(y,S,P){return Ue(y,ce,S,P)}($,S,P+1),Wt[S+dt]=vt,dt},doAccess:function(y,S){if(-8&S)return-28;var $=O.lookupPath(y,{follow:!0}).node;if(!$)return-44;var dt="";return 4&S&&(dt+="r"),2&S&&(dt+="w"),1&S&&(dt+="x"),dt&&O.nodePermissions($,dt)?-2:0},doDup:function(y,S,P){var $=O.getStream(P);return $&&O.close($),O.open(y,S,0,P,P).fd},doReadv:function(y,S,P,$){for(var dt=0,vt=0;vt>2],ne=O.read(y,Wt,ee[S+8*vt>>2],Bt,$);if(ne<0)return-1;if(dt+=ne,ne>2],ee[S+(8*vt+4)>>2],$);if(ne<0)return-1;dt+=ne}return dt},varargs:void 0,get:function(){return se.varargs+=4,ee[se.varargs-4>>2]},getStr:function(y){return Ee(y)},getStreamFromFD:function(y){var S=O.getStream(y);if(!S)throw new O.ErrnoError(8);return S},get64:function(y,S){return y}};var Vn=[];function Xe(y){try{return Kt.grow(y-Tt.byteLength+65535>>>16),ze(Kt.buffer),1}catch{}}var wn={};function ci(){if(!ci.strings){var S={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:Qt||"./this.program"};for(var P in wn)void 0===wn[P]?delete S[P]:S[P]=wn[P];var $=[];for(var P in S)$.push(P+"="+S[P]);ci.strings=$}return ci.strings}var gn=function(y,S,P,$){y||(y=this),this.parent=y,this.mount=y.mount,this.mounted=null,this.id=O.nextInode++,this.name=S,this.mode=P,this.node_ops={},this.stream_ops={},this.rdev=$};function Hi(y,S,P){var $=P>0?P:en(y)+1,dt=new Array($),vt=Ue(y,dt,0,dt.length);return S&&(dt.length=vt),dt}Object.defineProperties(gn.prototype,{read:{get:function(){return 365==(365&this.mode)},set:function(y){y?this.mode|=365:this.mode&=-366}},write:{get:function(){return 146==(146&this.mode)},set:function(y){y?this.mode|=146:this.mode&=-147}},isFolder:{get:function(){return O.isDir(this.mode)}},isDevice:{get:function(){return O.isChrdev(this.mode)}}}),O.FSNode=gn,O.staticInit();var qe={A:function Jt(y,S){return function Gt(y,S){var P;if(0===y)P=Date.now();else{if(1!==y&&4!==y)return Pt(28),-1;P=bt()}return ee[S>>2]=P/1e3|0,ee[S+4>>2]=P%1e3*1e3*1e3|0,0}(y,S)},B:function Se(y,S){try{return y=se.getStr(y),se.doAccess(y,S)}catch(P){if(typeof O>"u"||!(P instanceof O.ErrnoError))throw P;return-P.errno}},h:function Ce(y,S,P){se.varargs=P;try{var $=se.getStreamFromFD(y);switch(S){case 0:return(dt=se.get())<0?-28:O.open($.path,$.flags,0,dt).fd;case 1:case 2:case 6:case 7:return 0;case 3:return $.flags;case 4:var dt=se.get();return $.flags|=dt,0;case 5:return dt=se.get(),_e[dt+0>>1]=2,0;case 16:case 8:default:return-28;case 9:return Pt(28),-1}}catch(Bt){if(typeof O>"u"||!(Bt instanceof O.ErrnoError))throw Bt;return-Bt.errno}},x:function je(y,S){try{var P=se.getStreamFromFD(y);return se.doStat(O.stat,P.path,S)}catch($){if(typeof O>"u"||!($ instanceof O.ErrnoError))throw $;return-$.errno}},u:function Pe(y,S,P,$){try{S=se.getStr(S);var dt=256&$,vt=4096&$;return $&=-4353,S=se.calculateAt(y,S,vt),se.doStat(dt?O.lstat:O.stat,S,P)}catch(Et){if(typeof O>"u"||!(Et instanceof O.ErrnoError))throw Et;return-Et.errno}},y:function Be(y,S,P){se.varargs=P;try{var $=se.getStreamFromFD(y);switch(S){case 21509:case 21505:case 21510:case 21511:case 21512:case 21506:case 21507:case 21508:case 21523:case 21524:return $.tty?0:-59;case 21519:if(!$.tty)return-59;var dt=se.get();return ee[dt>>2]=0,0;case 21520:return $.tty?-28:-59;case 21531:return dt=se.get(),O.ioctl($,S,dt);default:nn("bad ioctl syscall "+S)}}catch(vt){if(typeof O>"u"||!(vt instanceof O.ErrnoError))throw vt;return-vt.errno}},k:function me(y,S,P,$,dt,vt){try{return function ue(y,S,P,$,dt,vt){vt<<=12;var Et,Bt=!1;if(0!=(16&$)&&y%65536!=0)return-28;if(0!=(32&$)){if(!(Et=Xt(S)))return-48;Bt=!0}else{var ne=O.getStream(dt);if(!ne)return-8;var Ie=O.mmap(ne,y,S,vt,P,$);Et=Ie.ptr,Bt=Ie.allocated}return se.mappings[Et]={malloc:Et,len:S,allocated:Bt,fd:dt,prot:P,flags:$,offset:vt},Et}(y,S,P,$,dt,vt)}catch(Et){if(typeof O>"u"||!(Et instanceof O.ErrnoError))throw Et;return-Et.errno}},j:function pn(y,S){try{return function Fe(y,S){var P=se.mappings[y];if(0===S||!P)return-28;if(S===P.len){var $=O.getStream(P.fd);$&&2&P.prot&&se.doMsync(y,$,S,P.flags,P.offset),se.mappings[y]=null,P.allocated&&xt(P.malloc)}return 0}(y,S)}catch(P){if(typeof O>"u"||!(P instanceof O.ErrnoError))throw P;return-P.errno}},e:function ln(y,S,P){se.varargs=P;try{var $=se.getStr(y),dt=P?se.get():0;return O.open($,S,dt).fd}catch(Et){if(typeof O>"u"||!(Et instanceof O.ErrnoError))throw Et;return-Et.errno}},v:function Ye(y,S){try{return y=se.getStr(y),se.doStat(O.stat,y,S)}catch(P){if(typeof O>"u"||!(P instanceof O.ErrnoError))throw P;return-P.errno}},z:function We(y){try{return y=se.getStr(y),O.unlink(y),0}catch(S){if(typeof O>"u"||!(S instanceof O.ErrnoError))throw S;return-S.errno}},r:function An(){throw"longjmp"},q:function Zn(){nn("")},C:function Pi(y,S,P){var $=function Xn(y,S){var P;for(Vn.length=0,S>>=2;P=ce[y++];){var $=P<105;$&&1&S&&S++,Vn.push($?Ze[S++>>1]:ee[S]),++S}return Vn}(S,P);return X[y].apply(null,$)},o:function he(y,S,P){ce.copyWithin(y,S,S+P)},p:function vn(y){var S=ce.length,P=2147483648;if((y>>>=0)>P)return!1;for(var $=1;$<=4;$*=2){var dt=S*(1+.2/$);if(dt=Math.min(dt,y+100663296),Xe(Math.min(P,sn(Math.max(y,dt),65536))))return!0}return!1},s:function vi(y,S){var P=0;return ci().forEach(function($,dt){var vt=S+P;ee[y+4*dt>>2]=vt,function be(y,S,P){for(var $=0;$>0]=y.charCodeAt($);P||(Wt[S>>0]=0)}($,vt),P+=$.length+1}),0},t:function jn(y,S){var P=ci();ee[y>>2]=P.length;var $=0;return P.forEach(function(dt){$+=dt.length+1}),ee[S>>2]=$,0},a:function Vi(y){!function er(y,S){!function di(y){(function Si(){return Zt||!1})()||(E.onExit&&E.onExit(y),xe=!0),pe(y,new _n(y))}(y)}(y)},d:function Jn(y){try{var S=se.getStreamFromFD(y);return O.close(S),0}catch(P){if(typeof O>"u"||!(P instanceof O.ErrnoError))throw P;return P.errno}},i:function bi(y,S,P,$){try{var dt=se.getStreamFromFD(y),vt=se.doReadv(dt,S,P);return ee[$>>2]=vt,0}catch(Et){if(typeof O>"u"||!(Et instanceof O.ErrnoError))throw Et;return Et.errno}},n:function fn(y,S,P,$,dt){try{var vt=se.getStreamFromFD(y),Bt=4294967296*P+(S>>>0),ne=9007199254740992;return Bt<=-ne||Bt>=ne?-61:(O.llseek(vt,Bt,$),z=[vt.position>>>0,(dn=vt.position,+Math.abs(dn)>=1?dn>0?(0|Math.min(+Math.floor(dn/4294967296),4294967295))>>>0:~~+Math.ceil((dn-+(~~dn>>>0))/4294967296)>>>0:0)],ee[dt>>2]=z[0],ee[dt+4>>2]=z[1],vt.getdents&&0===Bt&&0===$&&(vt.getdents=null),0)}catch(Ie){if(typeof O>"u"||!(Ie instanceof O.ErrnoError))throw Ie;return Ie.errno}},g:function cn(y,S,P,$){try{var dt=se.getStreamFromFD(y),vt=se.doWritev(dt,S,P);return ee[$>>2]=vt,0}catch(Et){if(typeof O>"u"||!(Et instanceof O.ErrnoError))throw Et;return Et.errno}},c:function ui(){return jt},w:function Ji(y){var S=Date.now();return ee[y>>2]=S/1e3|0,ee[y+4>>2]=S%1e3*1e3|0,0},l:function ke(y,S,P,$,dt,vt,Et){var Bt=Rt();try{return A(y)(S,P,$,dt,vt,Et)}catch(ne){if(oe(Bt),ne!==ne+0&&"longjmp"!==ne)throw ne;Ae(1,0)}},m:function rn(y,S){var P=Rt();try{A(y)(S)}catch($){if(oe(P),$!==$+0&&"longjmp"!==$)throw $;Ae(1,0)}},b:function hi(y){!function(y){jt=y}(y)},f:function Fi(y){var S=Date.now()/1e3|0;return y&&(ee[y>>2]=S),S}};(function Fn(){var y={a:qe};function S(Et,Bt){E.asm=Et.exports,ze((Kt=E.asm.D).buffer),Cn=E.asm.M,function Qi(y){Mi.unshift(y)}(E.asm.E),mn()}function P(Et){S(Et.instance)}function $(Et){return function Zi(){return Ht||"function"!=typeof fetch?Promise.resolve().then(function(){return we(kn)}):fetch(kn,{credentials:"same-origin"}).then(function(y){if(!y.ok)throw"failed to load wasm binary file at '"+kn+"'";return y.arrayBuffer()}).catch(function(){return we(kn)})}().then(function(Bt){return WebAssembly.instantiate(Bt,y)}).then(function(Bt){return Bt}).then(Et,function(Bt){te("failed to asynchronously prepare wasm: "+Bt),nn(Bt)})}if(Mn(),E.instantiateWasm)try{return E.instantiateWasm(y,S)}catch(Et){return te("Module.instantiateWasm callback failed with error: "+Et),!1}return function dt(){return Ht||"function"!=typeof WebAssembly.instantiateStreaming||li(kn)||"function"!=typeof fetch?$(P):fetch(kn,{credentials:"same-origin"}).then(function(Et){return WebAssembly.instantiateStreaming(Et,y).then(P,function(ne){return te("wasm streaming compile failed: "+ne),te("falling back to ArrayBuffer instantiation"),$(P)})})}().catch(ft),{}})(),E.___wasm_call_ctors=function(){return(E.___wasm_call_ctors=E.asm.E).apply(null,arguments)};var Ti=E._emscripten_bind_VoidPtr___destroy___0=function(){return(Ti=E._emscripten_bind_VoidPtr___destroy___0=E.asm.F).apply(null,arguments)},On=E._emscripten_bind_Graphviz_Graphviz_2=function(){return(On=E._emscripten_bind_Graphviz_Graphviz_2=E.asm.G).apply(null,arguments)},b=E._emscripten_bind_Graphviz_version_0=function(){return(b=E._emscripten_bind_Graphviz_version_0=E.asm.H).apply(null,arguments)},k=E._emscripten_bind_Graphviz_lastError_0=function(){return(k=E._emscripten_bind_Graphviz_lastError_0=E.asm.I).apply(null,arguments)},V=E._emscripten_bind_Graphviz_layout_3=function(){return(V=E._emscripten_bind_Graphviz_layout_3=E.asm.J).apply(null,arguments)},it=E._emscripten_bind_Graphviz_createFile_2=function(){return(it=E._emscripten_bind_Graphviz_createFile_2=E.asm.K).apply(null,arguments)},ht=E._emscripten_bind_Graphviz___destroy___0=function(){return(ht=E._emscripten_bind_Graphviz___destroy___0=E.asm.L).apply(null,arguments)};E._malloc=function(){return(E._malloc=E.asm.N).apply(null,arguments)};var Me,xt=E._free=function(){return(xt=E._free=E.asm.O).apply(null,arguments)},Ot=E.___errno_location=function(){return(Ot=E.___errno_location=E.asm.P).apply(null,arguments)},Rt=E.stackSave=function(){return(Rt=E.stackSave=E.asm.Q).apply(null,arguments)},oe=E.stackRestore=function(){return(oe=E.stackRestore=E.asm.R).apply(null,arguments)},Ae=E._setThrew=function(){return(Ae=E._setThrew=E.asm.S).apply(null,arguments)},$e=E._memalign=function(){return($e=E._memalign=E.asm.T).apply(null,arguments)};function _n(y){this.name="ExitStatus",this.message="Program terminated with exit("+y+")",this.status=y}function Kn(y){function S(){Me||(Me=!0,E.calledRun=!0,!xe&&(function Ri(){!E.noFSInit&&!O.init.initialized&&O.init(),O.ignorePermissions=!1,lt(Mi)}(),ut(E),E.onRuntimeInitialized&&E.onRuntimeInitialized(),function Ni(){if(E.postRun)for("function"==typeof E.postRun&&(E.postRun=[E.postRun]);E.postRun.length;)y=E.postRun.shift(),mi.unshift(y);var y;lt(mi)}()))}fe>0||(function tr(){if(E.preRun)for("function"==typeof E.preRun&&(E.preRun=[E.preRun]);E.preRun.length;)y=E.preRun.shift(),oi.unshift(y);var y;lt(oi)}(),fe>0)||(E.setStatus?(E.setStatus("Running..."),setTimeout(function(){setTimeout(function(){E.setStatus("")},1),S()},1)):S())}if(En=function y(){Me||Kn(),Me||(En=y)},E.run=Kn,E.preInit)for("function"==typeof E.preInit&&(E.preInit=[E.preInit]);E.preInit.length>0;)E.preInit.pop()();function Nn(){}function Gn(y){return(y||Nn).__cache__}function xi(y,S){var P=Gn(S),$=P[y];return $||(($=Object.create((S||Nn).prototype)).ptr=y,P[y]=$)}Kn(),(Nn.prototype=Object.create(Nn.prototype)).constructor=Nn,Nn.prototype.__class__=Nn,Nn.__cache__={},E.WrapperObject=Nn,E.getCache=Gn,E.wrapPointer=xi,E.castObject=function nr(y,S){return xi(y.ptr,S)},E.NULL=xi(0),E.destroy=function Pn(y){if(!y.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";y.__destroy__(),delete Gn(y.__class__)[y.ptr]},E.compare=function xa(y,S){return y.ptr===S.ptr},E.getPointer=function Un(y){return y.ptr},E.getClass=function Ya(y){return y.__class__};var bn={buffer:0,size:0,pos:0,temps:[],needed:0,prepare:function(){if(bn.needed){for(var y=0;y=bn.size?(Te($>0),bn.needed+=$,dt=E._malloc($),bn.temps.push(dt)):(dt=bn.buffer+bn.pos,bn.pos+=$),dt},copy:function(y,S,P){switch(P>>>=0,S.BYTES_PER_ELEMENT){case 2:P>>>=1;break;case 4:P>>>=2;break;case 8:P>>>=3}for(var dt=0;dt\n\n')}}function st(Y,nt){var rt=H({images:[],files:[]},nt);G(G([],rt.files,!0),function K(Y){return Y.map(tt)}(rt.images),!0).forEach(function(q){return Y.createFile(q.path,q.data)})}var W={layout:function(Y,nt,rt,q){return void 0===nt&&(nt="svg"),void 0===rt&&(rt="dot"),Y?u(Z,q?.wasmFolder,q?.wasmBinary).then(function(F){var E=new F.Graphviz(void 0!==q?.yInvert&&q?.yInvert,void 0!==q?.nop?q?.nop:0);st(E,q);var ut=E.layout(Y,nt,rt);if(F.destroy(E),!ut)throw new Error(F.Graphviz.prototype.lastError());return ut}):Promise.resolve("")},circo:function(Y,nt,rt){return void 0===nt&&(nt="svg"),this.layout(Y,nt,"circo",rt)},dot:function(Y,nt,rt){return void 0===nt&&(nt="svg"),this.layout(Y,nt,"dot",rt)},fdp:function(Y,nt,rt){return void 0===nt&&(nt="svg"),this.layout(Y,nt,"fdp",rt)},sfdp:function(Y,nt,rt){return void 0===nt&&(nt="svg"),this.layout(Y,nt,"sfdp",rt)},neato:function(Y,nt,rt){return void 0===nt&&(nt="svg"),this.layout(Y,nt,"neato",rt)},osage:function(Y,nt,rt){return void 0===nt&&(nt="svg"),this.layout(Y,nt,"osage",rt)},patchwork:function(Y,nt,rt){return void 0===nt&&(nt="svg"),this.layout(Y,nt,"patchwork",rt)},twopi:function(Y,nt,rt){return void 0===nt&&(nt="svg"),this.layout(Y,nt,"twopi",rt)}},et=function(){function Y(nt){this._wasm=nt}return Y.prototype.layout=function(nt,rt,q,F){if(void 0===rt&&(rt="svg"),void 0===q&&(q="dot"),!nt)return"";var E=new this._wasm.Graphviz(F?.yInvert?1:0,F?.nop?F?.nop:0);st(E,F);var ut=E.layout(nt,rt,q);if(this._wasm.destroy(E),!ut)throw new Error(this._wasm.Graphviz.prototype.lastError());return ut},Y.prototype.circo=function(nt,rt,q){return void 0===rt&&(rt="svg"),this.layout(nt,rt,"circo",q)},Y.prototype.dot=function(nt,rt,q){return void 0===rt&&(rt="svg"),this.layout(nt,rt,"dot",q)},Y.prototype.fdp=function(nt,rt,q){return void 0===rt&&(rt="svg"),this.layout(nt,rt,"fdp",q)},Y.prototype.sfdp=function(nt,rt,q){return void 0===rt&&(rt="svg"),this.layout(nt,rt,"sfdp",q)},Y.prototype.neato=function(nt,rt,q){return void 0===rt&&(rt="svg"),this.layout(nt,rt,"neato",q)},Y.prototype.osage=function(nt,rt,q){return void 0===rt&&(rt="svg"),this.layout(nt,rt,"osage",q)},Y.prototype.patchwork=function(nt,rt,q){return void 0===rt&&(rt="svg"),this.layout(nt,rt,"patchwork",q)},Y.prototype.twopi=function(nt,rt,q){return void 0===rt&&(rt="svg"),this.layout(nt,rt,"twopi",q)},Y}();s.GraphvizSync=et,s.StackElement=g,s.StackParser=C,s.expatVersion=function I(Y,nt){return u(m,Y,nt).then(function(rt){return rt.CExpat.prototype.version()})},s.graphviz=W,s.graphvizSync=function at(Y,nt){return u(Z,Y,nt).then(function(rt){return new et(rt)})},s.graphvizVersion=function j(Y,nt){return u(Z,Y,nt).then(function(rt){return rt.Graphviz.prototype.version()})},s.parse=B,s.wasmFolder=l,Object.defineProperty(s,"__esModule",{value:!0})}(D)},82745:(w,D,s)=>{"use strict";s.r(D),s.d(D,{AdminModule:()=>Vy});var c={};s.r(c),s.d(c,{forceCenter:()=>xd,forceCollide:()=>Ho,forceLink:()=>Qo,forceManyBody:()=>Jo,forceRadial:()=>Wd,forceSimulation:()=>jo,forceX:()=>Xd,forceY:()=>$d});var x={};s.r(x),s.d(x,{dispatch:()=>Ca.Z});var _={};s.r(_),s.d(_,{interval:()=>jd,now:()=>lr.zO,timeout:()=>Ja.Z,timer:()=>lr.HT,timerFlush:()=>lr.R8});var m=s(36895),p=s(94364),t=s(94650),d=s(77968),l=s(97392),h=s(61283),f=s(4235),u=s(89383);const g=function(){return{color:"black"}};let C=(()=>{class n{constructor(e){this.sideMenuService=e}ngOnInit(){this.sideMenuService.setAdminItems([])}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(d.D))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-admin-page"]],decls:7,vars:5,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","admin-theme"],[1,"page-title","d-flex"],["svgIcon","perun-perun-admin",1,"perun-icon","icon-scale",3,"ngStyle"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"perun-web-apps-back-button"),t.TgZ(2,"h1",1),t._UZ(3,"mat-icon",2),t._uU(4),t.ALo(5,"translate"),t.qZA(),t._UZ(6,"app-animated-router-outlet"),t.qZA()),2&e&&(t.xp6(3),t.Q6J("ngStyle",t.DdM(4,g)),t.xp6(1),t.hij(" ",t.lcZ(5,2,"ADMIN.TITLE")," "))},dependencies:[m.PC,l.Hw,h.A,f.W,u.X$]}),n})();var L=s(71135);let I=(()=>{class n{constructor(){this.navItems=[{cssIcon:"perun-attributes",url:"/admin/attributes",label:"MENU_ITEMS.ADMIN.ATTRIBUTES",style:"admin-btn"},{cssIcon:"perun-user",url:"/admin/users",label:"MENU_ITEMS.ADMIN.USERS",style:"admin-btn"},{cssIcon:"perun-owner-grey",url:"/admin/owners",label:"MENU_ITEMS.ADMIN.OWNERS",style:"admin-btn"},{cssIcon:"perun-service",url:"/admin/services",label:"MENU_ITEMS.ADMIN.SERVICES",style:"admin-btn"},{cssIcon:"perun-preview",url:"/admin/visualizer",label:"MENU_ITEMS.ADMIN.VISUALIZER",style:"admin-btn"},{cssIcon:"perun-external-sources",url:"/admin/ext_sources",label:"MENU_ITEMS.ADMIN.EXT_SOURCES",style:"admin-btn"},{cssIcon:"perun-audit-log",url:"/admin/audit_log",label:"MENU_ITEMS.ADMIN.AUDIT_LOG",style:"admin-btn"},{cssIcon:"perun-consent-hubs",url:"/admin/consent_hubs",label:"MENU_ITEMS.ADMIN.CONSENT_HUBS",style:"admin-btn"},{cssIcon:"perun-searcher",url:"/admin/searcher",label:"MENU_ITEMS.ADMIN.SEARCHER",style:"admin-btn"}]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-admin-overview"]],hostVars:2,hostBindings:function(e,i){2&e&&t.ekj("router-component",i.true)},decls:2,vars:2,consts:[[3,"items","size"]],template:function(e,i){1&e&&(t.TgZ(0,"div"),t._UZ(1,"perun-web-apps-menu-buttons-field",0),t.qZA()),2&e&&(t.xp6(1),t.Q6J("items",i.navItems)("size","small"))},dependencies:[L.L]}),n})();var B=s(95017),M=s(65412),R=s(30671),Z=s(69723),H=s(32105),G=s(4859),tt=s(51572),K=s(98380);function st(n,r){1&n&&t._UZ(0,"mat-spinner",6)}function j(n,r){1&n&&t._UZ(0,"th",16)}function W(n,r){if(1&n&&(t.TgZ(0,"td",17),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(e.friendlyName)}}function et(n,r){1&n&&t._UZ(0,"tr",18)}function at(n,r){1&n&&t._UZ(0,"tr",19)}function Y(n,r){if(1&n&&(t.TgZ(0,"div",7)(1,"div"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",8),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",9),t.ynx(8,10),t.YNc(9,j,1,0,"th",11),t.YNc(10,W,2,1,"td",12),t.BQk(),t.YNc(11,et,1,0,"tr",13),t.YNc(12,at,1,0,"tr",14),t.qZA(),t.TgZ(13,"perun-web-apps-alert",15),t._uU(14),t.ALo(15,"translate"),t.qZA()()),2&n){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,6,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.TEXT_LINE1")," "),t.xp6(3),t.hij(" ",t.lcZ(6,8,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.TEXT_LINE2")," "),t.xp6(2),t.Q6J("dataSource",e.dataSource),t.xp6(4),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns),t.xp6(2),t.hij(" ",t.lcZ(15,10,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.WARNING")," ")}}let nt=(()=>{class n{constructor(e,i,a,o,v){this.dialogRef=e,this.data=i,this.notificator=a,this.translate=o,this.attributesManager=v,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new R.by(this.data.attributes)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;const e=[];for(const i of this.data.attributes)e.push(i.id);this.attributesManager.deleteAttributeDefinitions(e).subscribe(()=>{this.translate.get("DIALOGS.DELETE_ATTRIBUTE_DEFINITION.SUCCESS").subscribe(i=>{this.notificator.showSuccess(i),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(M.WI),t.Y36(Z.V6),t.Y36(u.sK),t.Y36(H.H8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-delete-attribute-definition-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",1,"mt-3"],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","","data-cy","confirm-delete-attr-definition-button",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",1,"mt-3"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,st,1,0,"mat-spinner",1),t.YNc(5,Y,16,12,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return i.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return i.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.Tol(i.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.TITLE")),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",i.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.CONFIRM")," "))},dependencies:[m.O5,G.lW,R.BZ,R.fO,R.as,R.w1,R.Dz,R.nj,R.ge,R.ev,R.XQ,R.Gk,M.uh,M.xY,M.H8,tt.Ou,K.w,u.X$]}),n})();var rt=s(24006),q=s(78372),F=s(63900),E=s(61135),ut=s(69751),ft=s(38421),Dt=s(75797),St=s(60515),Qt=s(25403),pe=s(63269);function wt(...n){const r=(0,pe.jO)(n),e=(0,Dt.k)(n);return e.length?new ut.y(i=>{let a=e.map(()=>[]),o=e.map(()=>!1);i.add(()=>{a=o=null});for(let v=0;!i.closed&&v{if(a[v].push(T),a.every(N=>N.length)){const N=a.map(U=>U.shift());i.next(r?r(...N):N),a.some((U,J)=>!U.length&&o[J])&&i.complete()}},()=>{o[v]=!0,!a[v].length&&i.complete()}));return()=>{a=o=null}}):St.E}var yt=s(39646),Nt=s(19516),zt=s(3238),de=s(39349),ie=s(59549),Mt=s(284),te=s(84385),jt=s(3848),ae=s(23123);function At(n,r){if(1&n&&(t.TgZ(0,"mat-option",7),t._uU(1),t.ALo(2,"displayedRole"),t.qZA()),2&n){const e=r.$implicit;t.Q6J("value",e.roleName),t.xp6(1),t.hij(" ",t.lcZ(2,2,e)," ")}}function Ht(n,r){if(1&n&&(t.TgZ(0,"mat-option",7),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.Oqu(e)}}let Zt=(()=>{class n{constructor(e){this.attrRightsService=e,this.policyRemoved=new t.vpe,this.roles=this.attrRightsService.getRoles()}ngOnInit(){this.selectedRole=new E.X(this.policy.role),this.objects=this.selectedRole.pipe((0,F.w)(e=>this.attrRightsService.getObjects(e)))}changeRole(e){this.selectedRole.next(e.value),this.policy.object="None"}remove(){this.policyRemoved.emit()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Z.eE))},n.\u0275cmp=t.Xpm({type:n,selectors:[["perun-web-apps-attribute-rights-item"]],inputs:{policy:"policy"},outputs:{policyRemoved:"policyRemoved"},decls:14,vars:14,consts:[[1,"flex-row"],[1,"grow-item"],[3,"ngModel","placeholder","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModel","placeholder","ngModelChange"],["color","warn","mat-icon-button","",1,"close-button",3,"click"],["inline","true"],[3,"value"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"mat-form-field",1)(2,"mat-select",2),t.NdJ("ngModelChange",function(o){return i.policy.role=o})("selectionChange",function(o){return i.changeRole(o)}),t.ALo(3,"translate"),t.YNc(4,At,3,4,"mat-option",3),t.ALo(5,"async"),t.qZA()(),t.TgZ(6,"mat-form-field")(7,"mat-select",4),t.NdJ("ngModelChange",function(o){return i.policy.object=o}),t.ALo(8,"translate"),t.YNc(9,Ht,2,2,"mat-option",3),t.ALo(10,"async"),t.qZA()(),t.TgZ(11,"button",5),t.NdJ("click",function(){return i.remove()}),t.TgZ(12,"mat-icon",6),t._uU(13,"remove_circle"),t.qZA()()()),2&e&&(t.xp6(2),t.s9C("placeholder",t.lcZ(3,6,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_RIGHTS.ROLE")),t.Q6J("ngModel",i.policy.role),t.xp6(2),t.Q6J("ngForOf",t.lcZ(5,8,i.roles)),t.xp6(3),t.s9C("placeholder",t.lcZ(8,10,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_RIGHTS.ENTITY")),t.Q6J("ngModel",i.policy.object),t.xp6(2),t.Q6J("ngForOf",t.lcZ(10,12,i.objects)))},dependencies:[m.sg,rt.JJ,rt.On,l.Hw,G.lW,ie.KE,zt.ey,te.gD,m.Ov,u.X$,ae.i],styles:[".flex-row[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:row;justify-content:flex-start;align-items:flex-start;background:white;border-radius:1em;padding:1em 1em 0}.grow-item[_ngcontent-%COMP%]{flex-grow:2;margin:0 1em}.close-button[_ngcontent-%COMP%]{position:absolute;font-size:1.3em;top:-15px;right:-15px;z-index:100}"]}),n})();function Kt(n,r){1&n&&(t.TgZ(0,"div",9),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_RIGHTS.AND")," "))}function xe(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div")(1,"perun-web-apps-attribute-rights-item",7),t.NdJ("policyRemoved",function(){const o=t.CHM(e).index,v=t.oxw(2);return t.KtG(v.removePolicy(o))}),t.qZA(),t.YNc(2,Kt,3,3,"div",8),t.qZA()}if(2&n){const e=r.$implicit,i=r.index,a=t.oxw(2);t.xp6(1),t.Q6J("policy",e),t.xp6(1),t.Q6J("ngIf",i!==a.collection.policies.length-1)}}function Te(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",1)(1,"div",2),t.YNc(2,xe,3,2,"div",3),t.qZA(),t.TgZ(3,"div",4)(4,"button",5),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.removeCollection())}),t.TgZ(5,"mat-icon"),t._uU(6,"delete"),t.qZA()(),t.TgZ(7,"button",6),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.addPolicy())}),t.TgZ(8,"mat-icon"),t._uU(9,"add_circle"),t.qZA()()()()}if(2&n){const e=t.oxw();t.xp6(2),t.Q6J("ngForOf",e.collection.policies)}}let Le=(()=>{class n{constructor(){this.collectionRemoved=new t.vpe}addPolicy(){this.collection.policies.push({id:-1,role:null,object:null,policyCollectionId:this.collection.id})}removePolicy(e){this.collection.policies.splice(e,1),0===this.collection.policies.length&&this.removeCollection()}removeCollection(){this.collectionRemoved.emit()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["perun-web-apps-attribute-rights-collection"]],inputs:{collection:"collection"},outputs:{collectionRemoved:"collectionRemoved"},decls:1,vars:1,consts:[["class","collection",4,"ngIf"],[1,"collection"],[1,"column","role-selection"],[4,"ngFor","ngForOf"],[1,"column","controls"],["mat-icon-button","",3,"click"],["color","accent","mat-icon-button","",3,"click"],[3,"policy","policyRemoved"],["class","divider",4,"ngIf"],[1,"divider"]],template:function(e,i){1&e&&t.YNc(0,Te,10,1,"div",0),2&e&&t.Q6J("ngIf",i.collection)},dependencies:[m.sg,m.O5,l.Hw,G.lW,Zt,u.X$],styles:[".collection[_ngcontent-%COMP%]{background-color:#0000001a;padding:1em;border-radius:1em;margin-top:1em;display:flex;flex-direction:row;justify-content:center;align-items:center;gap:1em}.column[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1em}.role-selection[_ngcontent-%COMP%]{flex-grow:2}.controls[_ngcontent-%COMP%]{align-items:flex-end;justify-content:center}.divider[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-top:1em}"]}),n})();function Oe(n,r){1&n&&(t.TgZ(0,"div",7),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_RIGHTS.OR")," "))}function Ee(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div")(1,"perun-web-apps-attribute-rights-collection",5),t.NdJ("collectionRemoved",function(){const o=t.CHM(e).index,v=t.oxw();return t.KtG(v.removeCollection(o))}),t.qZA(),t.YNc(2,Oe,3,3,"div",6),t.qZA()}if(2&n){const e=r.$implicit,i=r.index,a=t.oxw();t.xp6(1),t.Q6J("collection",e.action===a.action?e:null),t.xp6(1),t.Q6J("ngIf",i!==a.lastIndex&&e.action===a.action)}}let Ue=(()=>{class n{ngOnChanges(){this.lastIndex=this.findLastIndex()}addCollection(){this.collections.push({id:-1,attributeId:this.attributeId,action:this.action,policies:[{id:-1,role:null,object:null,policyCollectionId:-1}]}),this.lastIndex=this.findLastIndex()}removeCollection(e){this.collections.splice(e,1),this.lastIndex=this.findLastIndex()}findLastIndex(){let e=0;for(let i=0;i{class n{constructor(){this.collections=[],this.actionTabs=["READ","WRITE"]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["perun-web-apps-attribute-rights-tab-group"]],inputs:{attDef:"attDef",collections:"collections"},decls:2,vars:1,consts:[[4,"ngFor","ngForOf"],["matTabLabel",""],[3,"attributeId","collections","action"]],template:function(e,i){1&e&&(t.TgZ(0,"mat-tab-group"),t.YNc(1,en,3,3,"mat-tab",0),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngForOf",i.actionTabs))},dependencies:[m.sg,jt.SP,jt.uD,jt.uX,Ue,u.X$]}),n})();var sn=s(10266),Tt=s(90455),Wt=s(4765);function ce(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",1),t.ALo(1,"translate"),t.TgZ(2,"mat-slide-toggle",2),t.NdJ("ngModelChange",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.attDef.unique=a)}),t._uU(3),t.ALo(4,"translate"),t.qZA()()}if(2&n){const e=r.ngIf,i=t.oxw();t.s9C("matTooltip",t.lcZ(1,5,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_UNIQUE_TOGGLE.TOOLTIP")),t.Q6J("matTooltipDisabled",!e.disable),t.xp6(2),t.Q6J("ngModel",i.attDef.unique)("disabled",e.disable),t.xp6(1),t.hij(" ",t.lcZ(4,7,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_UNIQUE_TOGGLE.UNIQUE")," ")}}const _e=function(n){return{disable:n}};let ee=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["perun-web-apps-attribute-unique-toggle"]],inputs:{attDef:"attDef"},decls:2,vars:5,consts:[["class","unique-toggle-container","matTooltipPosition","above",3,"matTooltipDisabled","matTooltip",4,"ngIf"],["matTooltipPosition","above",1,"unique-toggle-container",3,"matTooltipDisabled","matTooltip"],["color","accent","labelPosition","before",3,"ngModel","disabled","ngModelChange"]],template:function(e,i){1&e&&(t.YNc(0,ce,5,9,"div",0),t.ALo(1,"disableUniqueAttribute")),2&e&&t.Q6J("ngIf",t.VKq(3,_e,t.lcZ(1,1,i.attDef)))},dependencies:[m.O5,rt.JJ,rt.On,sn.gM,Tt.Rr,u.X$,Wt.b],styles:[".unique-toggle-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;margin:1em 0;width:-moz-fit-content;width:fit-content;font-size:1.125rem}"]}),n})(),Ze=(()=>{class n{constructor(){this.readOperation=!1,this.writeOperation=!1,this.readOperationChanged=new t.vpe,this.writeOperationChanged=new t.vpe}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["perun-web-apps-attribute-critical-operations-toggles"]],inputs:{readOperation:"readOperation",writeOperation:"writeOperation"},outputs:{readOperationChanged:"readOperationChanged",writeOperationChanged:"writeOperationChanged"},decls:10,vars:11,consts:[["color","accent","labelPosition","before",1,"toggle-font",3,"ngModel","ngModelChange","toggleChange"],["alert_type","info"]],template:function(e,i){1&e&&(t.TgZ(0,"mat-slide-toggle",0),t.NdJ("ngModelChange",function(o){return i.readOperation=o})("toggleChange",function(){return i.readOperationChanged.emit(!i.readOperation)}),t._uU(1),t.ALo(2,"translate"),t.qZA(),t._UZ(3,"br"),t.TgZ(4,"mat-slide-toggle",0),t.NdJ("ngModelChange",function(o){return i.writeOperation=o})("toggleChange",function(){return i.writeOperationChanged.emit(!i.writeOperation)}),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"perun-web-apps-alert",1),t._uU(8),t.ALo(9,"translate"),t.qZA()),2&e&&(t.Q6J("ngModel",i.readOperation),t.xp6(1),t.hij(" ",t.lcZ(2,5,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_CRITICAL_OPERATIONS_TOGGLE.READ"),"\n"),t.xp6(3),t.Q6J("ngModel",i.writeOperation),t.xp6(1),t.hij(" ",t.lcZ(6,7,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_CRITICAL_OPERATIONS_TOGGLE.WRITE"),"\n"),t.xp6(3),t.hij(" ",t.lcZ(9,9,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_CRITICAL_OPERATIONS_TOGGLE.INFO"),"\n"))},dependencies:[rt.JJ,rt.On,K.w,Tt.Rr,u.X$],styles:[".toggle-font[_ngcontent-%COMP%]{font-size:1.125rem}"]}),n})(),ze=(()=>{class n{transform(e){if(null===e)return null;const i=e;return i.substring(i.lastIndexOf(".")+1,i.length)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"attributeTypeClean",type:n,pure:!0}),n})();function Cn(n,r){1&n&&t._UZ(0,"mat-spinner",7)}function oi(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")," "))}function Mi(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")," "))}function mi(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")," "))}function gi(n,r){if(1&n&&(t.TgZ(0,"mat-option",21),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.Oqu(e)}}function Si(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")," "))}function tr(n,r){if(1&n&&(t.TgZ(0,"mat-option",21),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij("",e," ")}}function Ri(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")," "))}function Ni(n,r){if(1&n&&(t.TgZ(0,"mat-option",21),t._uU(1),t.ALo(2,"attributeTypeClean"),t.qZA()),2&n){const e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",t.lcZ(2,2,e)," ")}}function _i(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")," "))}function Qi(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",8)(1,"form",9)(2,"mat-form-field"),t._UZ(3,"input",10),t.ALo(4,"translate"),t.YNc(5,oi,3,3,"mat-error",11),t.qZA(),t.TgZ(6,"mat-form-field"),t._UZ(7,"input",12),t.ALo(8,"translate"),t.YNc(9,Mi,3,3,"mat-error",11),t.qZA(),t.TgZ(10,"mat-form-field")(11,"textarea",13),t.ALo(12,"translate"),t._uU(13," "),t.qZA(),t.YNc(14,mi,3,3,"mat-error",11),t.qZA(),t.TgZ(15,"mat-form-field")(16,"mat-select",14),t.ALo(17,"translate"),t.YNc(18,gi,2,2,"mat-option",15),t.qZA(),t.YNc(19,Si,3,3,"mat-error",11),t.qZA(),t.TgZ(20,"mat-form-field")(21,"mat-select",16),t.ALo(22,"translate"),t.YNc(23,tr,2,2,"mat-option",15),t.qZA(),t.YNc(24,Ri,3,3,"mat-error",11),t.qZA(),t.TgZ(25,"mat-form-field")(26,"mat-select",17),t.ALo(27,"translate"),t.YNc(28,Ni,3,4,"mat-option",15),t.qZA(),t.YNc(29,_i,3,3,"mat-error",11),t.qZA()(),t._UZ(30,"perun-web-apps-attribute-unique-toggle",18),t.ALo(31,"async"),t.TgZ(32,"perun-web-apps-attribute-critical-operations-toggles",19),t.NdJ("readOperationChanged",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.finalReadOperations=a)})("writeOperationChanged",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.finalWriteOperations=a)}),t.qZA(),t._UZ(33,"perun-web-apps-attribute-rights-tab-group",20),t.qZA()}if(2&n){const e=t.oxw();t.xp6(1),t.Q6J("formGroup",e.attributeControl),t.xp6(2),t.s9C("placeholder",t.lcZ(4,18,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.FRIENDLY_NAME")),t.xp6(2),t.Q6J("ngIf",e.attributeControl.hasError("required","friendlyName")),t.xp6(2),t.s9C("placeholder",t.lcZ(8,20,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.DISPLAY_NAME")),t.xp6(2),t.Q6J("ngIf",e.attributeControl.hasError("required","displayName")),t.xp6(2),t.s9C("placeholder",t.lcZ(12,22,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.DESCRIPTION")),t.xp6(3),t.Q6J("ngIf",e.attributeControl.hasError("required","description")),t.xp6(2),t.s9C("placeholder",t.lcZ(17,24,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ENTITY")),t.xp6(2),t.Q6J("ngForOf",e.entities),t.xp6(1),t.Q6J("ngIf",e.attributeControl.hasError("required","entity")),t.xp6(2),t.s9C("placeholder",t.lcZ(22,26,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.DEFINITION")),t.xp6(2),t.Q6J("ngForOf",e.definitionTypes),t.xp6(1),t.Q6J("ngIf",e.attributeControl.hasError("required","definitionType")),t.xp6(2),t.s9C("placeholder",t.lcZ(27,28,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.VALUE_TYPE")),t.xp6(2),t.Q6J("ngForOf",e.valueTypes),t.xp6(1),t.Q6J("ngIf",e.attributeControl.hasError("required","valueType")),t.xp6(1),t.Q6J("attDef",t.lcZ(31,30,e.attDef)),t.xp6(3),t.Q6J("collections",e.collections)}}let Bi=(()=>{class n{constructor(e,i,a,o,v,T,N){this.dialogRef=e,this.formBuilder=i,this.attributeService=a,this.attributeRightsService=o,this.notificator=v,this.translate=T,this.uniqueAttPipe=N,this.loading=!1,this.attributeControl=this.formBuilder.group({friendlyName:["",rt.kI.required],displayName:["",rt.kI.required],description:["",rt.kI.required],entity:["",rt.kI.required],definitionType:["",rt.kI.required],valueType:["",rt.kI.required]}),this.entities=["facility","resource","group","group_resource","host","member","member_group","member_resource","user","ues","user_facility","vo","entityless"],this.definitionTypes=["def","opt","virt","core"],this.valueTypes=["java.lang.String","java.lang.Integer","java.lang.Boolean","java.util.ArrayList","java.util.LinkedHashMap"],this.attDef=new E.X({id:0,beanName:"",namespace:"",unique:!1}),this.collections=[],this.attributeControl.valueChanges.pipe((0,q.b)(200)).subscribe(U=>{this.setAttribute(U)})}submit(){this.loading=!0,this.attributeService.createAttributeDefinition({attribute:this.attDef.getValue()}).pipe((0,F.w)(e=>(this.attDefCreated=e,wt((0,yt.of)(e.id),(0,yt.of)(this.collections)))),this.attributeRightsService.addAttributeId(),this.attributeRightsService.filterNullInPolicy(),(0,F.w)(e=>this.attributeService.setAttributePolicyCollections({policyCollections:e})),(0,F.w)(()=>this.attributeRightsService.updateAttributeAction(this.finalReadOperations,!1,this.attDefCreated.id,H.oW.READ)),(0,F.w)(()=>this.attributeRightsService.updateAttributeAction(this.finalWriteOperations,!0,this.attDefCreated.id,H.oW.WRITE))).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.CREATE_ATTRIBUTE_DEFINITION.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}cancel(){this.dialogRef.close(!1)}setAttribute(e){const i={id:0,beanName:"",friendlyName:e.friendlyName,displayName:e.displayName,description:e.description,type:e.valueType,namespace:this.createNamespace(e.entity,e.definitionType)};i.unique=this.attDef.getValue().unique&&!this.uniqueAttPipe.transform(i),this.attDef.next(i)}createNamespace(e,i){return"urn:perun:"+e+":attribute-def:"+i}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(rt.QS),t.Y36(H.H8),t.Y36(Z.eE),t.Y36(Z.V6),t.Y36(u.sK),t.Y36(Nt.bY))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-create-attribute-definition-dialog"]],features:[t._Bn([Nt.bY])],decls:13,vars:12,consts:[[1,"admin-theme"],["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","data-cy","create-attr-definition-button","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[1,"dialog-container",3,"formGroup"],["matInput","","formControlName","friendlyName","data-cy","attribute-friendly-name-input","required","",3,"placeholder"],[4,"ngIf"],["matInput","","formControlName","displayName","data-cy","attribute-display-name-input","required","",3,"placeholder"],["matInput","","formControlName","description","cdkTextareaAutosize","","data-cy","attribute-description-input","required","",3,"placeholder"],["formControlName","entity","data-cy","attribute-entity-input","required","",3,"placeholder"],[3,"value",4,"ngFor","ngForOf"],["formControlName","definitionType","data-cy","attribute-definition-type-input","required","",3,"placeholder"],["formControlName","valueType","data-cy","attribute-value-type-input","required","",3,"placeholder"],[3,"attDef"],[3,"readOperationChanged","writeOperationChanged"],[3,"collections"],[3,"value"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"h1",1),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Cn,1,0,"mat-spinner",2),t.YNc(5,Qi,34,32,"div",3),t.TgZ(6,"div",4)(7,"button",5),t.NdJ("click",function(){return i.cancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",6),t.NdJ("click",function(){return i.submit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,6,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.TITLE")),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading),t.xp6(3),t.hij(" ",t.lcZ(9,8,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",i.loading||i.attributeControl.invalid),t.xp6(1),t.hij(" ",t.lcZ(12,10,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.CONFIRM")," "))},dependencies:[m.sg,m.O5,zt.ey,de.IC,ie.TO,ie.KE,Mt.Nt,rt._Y,rt.Fj,rt.JJ,rt.JL,rt.Q7,rt.sg,rt.u,G.lW,M.uh,M.xY,M.H8,te.gD,tt.Ou,be,ee,Ze,m.Ov,u.X$,ze]}),n})();var fe=s(9244),En=s(10036);function ji(n,r){1&n&&t._UZ(0,"mat-spinner",7)}function Mn(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",8)(1,"perun-web-apps-alert",9),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-form-field",10)(5,"input",11),t.NdJ("ngModelChange",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.value=a)}),t.ALo(6,"translate"),t.qZA()()()}if(2&n){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,3,"DIALOGS.IMPORT_ATTRIBUTE.INFO")," "),t.xp6(3),t.Q6J("ngModel",e.value)("placeholder",t.lcZ(6,5,"DIALOGS.IMPORT_ATTRIBUTE.HINT"))}}let mn=(()=>{class n{constructor(e,i,a,o,v){this.dialogRef=e,this.notificator=i,this.translate=a,this.attributesManager=o,this.attributesRightsService=v,this.value="",this.loading=!1}create(){this.loading=!0,this.attributeData=JSON.parse(this.value),this.attributesManager.createAttributeDefinition({attribute:this.attributeData.attributeDefinition}).pipe((0,F.w)(e=>wt((0,yt.of)(e.id),(0,yt.of)(this.attributeData.attributeRights))),this.attributesRightsService.addAttributeId(),(0,F.w)(e=>this.attributesManager.setAttributePolicyCollections({policyCollections:e}))).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.IMPORT_ATTRIBUTE_DEFINITION.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(Z.V6),t.Y36(u.sK),t.Y36(H.H8),t.Y36(Z.eE))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-attribute-import-dialog"]],decls:13,vars:12,consts:[[1,"admin-theme"],["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],["alert_type","info"],[1,"w-100"],["matInput","","required","",3,"ngModel","placeholder","ngModelChange"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"h1",1),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,ji,1,0,"mat-spinner",2),t.YNc(5,Mn,7,7,"div",3),t.TgZ(6,"div",4)(7,"button",5),t.NdJ("click",function(){return i.dialogRef.close()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",6),t.NdJ("click",function(){return i.create()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.xp6(2),t.hij(" ",t.lcZ(3,6,"DIALOGS.IMPORT_ATTRIBUTE.TITLE")," "),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading),t.xp6(3),t.hij(" ",t.lcZ(9,8,"DIALOGS.IMPORT_ATTRIBUTE.CANCEL")," "),t.xp6(2),t.Q6J("disabled",0===i.value.trim().length||i.loading),t.xp6(1),t.hij(" ",t.lcZ(12,10,"DIALOGS.IMPORT_ATTRIBUTE.CREATE")," "))},dependencies:[m.O5,ie.KE,Mt.Nt,rt.Fj,rt.JJ,rt.Q7,rt.On,G.lW,M.uh,M.xY,M.H8,tt.Ou,K.w,u.X$]}),n})();var nn=s(96308),Wn=s(36769),li=s(68675),kn=s(64425),we=s(37084),Zi=s(85147),Fn=s(56709),dn=s(43532),z=s(18750),X=s(9185),lt=s(8231),A=s(14849);function bt(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"th",23)(1,"mat-checkbox",24),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw(3);return t.KtG(a?o.masterToggle():null)}),t.ALo(2,"translate"),t.ALo(3,"masterCheckboxLabel"),t.qZA()()}if(2&n){const e=t.oxw().ngIf,i=t.oxw(2);t.xp6(1),t.Q6J("aria-label",t.lcZ(2,3,t.lcZ(3,5,e.all)))("checked",i.selection.hasValue()&&e.all)("indeterminate",i.selection.hasValue()&&!e.all)}}const Lt=function(n){return{name:n}};function Pt(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"td",25)(1,"mat-checkbox",26),t.NdJ("change",function(a){const v=t.CHM(e).$implicit,T=t.oxw(3);return t.KtG(a?T.selection.toggle(v):null)})("click",function(a){return a.stopPropagation()}),t.ALo(2,"translate"),t.ALo(3,"checkboxLabel"),t.qZA()()}if(2&n){const e=r.$implicit,i=t.oxw(3);t.xp6(1),t.Q6J("aria-label",t.xi3(2,2,t.lcZ(3,5,i.selection.isSelected(e)),t.VKq(7,Lt,e[0])))("checked",i.selection.isSelected(e))}}function Gt(n,r){1&n&&(t.ynx(0,20),t.YNc(1,bt,4,7,"th",21),t.YNc(2,Pt,4,9,"td",22),t.BQk())}function Jt(n,r){1&n&&(t.TgZ(0,"th",27),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.KEY")," "))}function Yt(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"td",28)(1,"label")(2,"input",29),t.NdJ("ngModelChange",function(){const o=t.CHM(e).$implicit,v=t.oxw(2);return t.KtG(v.onValueChange(o))})("ngModelChange",function(a){const v=t.CHM(e).$implicit;return t.KtG(v[0]=a)}),t.qZA()()()}if(2&n){const e=r.$implicit;t.xp6(2),t.Q6J("ngModel",e[0])}}function Q(n,r){1&n&&(t.TgZ(0,"th",27),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.VALUE")," "))}function pt(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"td",28)(1,"perun-web-apps-attribute-value",30),t.NdJ("sendEventToParent2",function(){const o=t.CHM(e).$implicit,v=t.oxw(2);return t.KtG(v.onValueChange(o))}),t.qZA()()}if(2&n){const e=r.$implicit;t.xp6(1),t.Q6J("attribute",e[1])}}function mt(n,r){1&n&&t._UZ(0,"tr",31)}function gt(n,r){1&n&&t._UZ(0,"tr",32)}const Ut=function(n){return{all:n}};function Xt(n,r){if(1&n&&(t.TgZ(0,"div",10)(1,"perun-web-apps-table-wrapper",11)(2,"table",12),t.YNc(3,Gt,3,0,"ng-container",13),t.ALo(4,"isAllSelected"),t.ynx(5,14),t.YNc(6,Jt,3,3,"th",15),t.YNc(7,Yt,3,1,"td",16),t.BQk(),t.ynx(8,17),t.YNc(9,Q,3,3,"th",15),t.YNc(10,pt,2,1,"td",16),t.BQk(),t.YNc(11,mt,1,0,"tr",18),t.YNc(12,gt,1,0,"tr",19),t.qZA()()()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("pageSizeOptions",e.pageSizeOptions)("dataLength",e.dataSource.filteredData.length)("hideExport",!0)("tableId",e.tableId),t.xp6(1),t.Q6J("dataSource",e.dataSource),t.xp6(1),t.Q6J("ngIf",t.VKq(11,Ut,t.xi3(4,8,e.dataSource,e.selection.selected.length))),t.xp6(8),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}function kt(n,r){1&n&&t._UZ(0,"mat-spinner",33)}function le(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",34),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.NO_KEYS_WARNING")," "))}let O=(()=>{class n{constructor(e,i,a,o,v){this.dialogRef=e,this.data=i,this.notificator=a,this.translate=o,this.attributesManager=v,this.switchView=new t.vpe,this.records=[],this.displayedColumns=["select","key","value"],this.dataSource=new R.by,this.selection=new B.Ov(!0,[]),this.isAddButtonDisabled=!1,this.pageSizeOptions=fe.f7}set matSort(e){this.sort=e}ngOnChanges(){this.ngOnInit()}ngOnInit(){this.loading=!0,this.attDef=this.data.attDef,this.attributesManager.getEntitylessKeys(this.attDef.id).subscribe(e=>{this.attributesManager.getEntitylessAttributesByName(`${this.attDef.namespace}:${this.attDef.friendlyName}`).subscribe(i=>{let a=0;this.records=[];for(const o of e)this.records.push([o,i[a]]),a++;this.dataSource=new R.by(this.records),this.setDataSource(),this.loading=!1})})}setDataSource(){!this.child||!this.child.paginator||this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}onSave(){this.updateMapAttributes();for(const e of this.selection.selected)this.attributesManager.setEntitylessAttribute({key:e[0],attribute:e[1]}).subscribe(()=>{this.translate.get("SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.SAVE_SUCCESS").subscribe(i=>{this.notificator.showSuccess(i),this.ngOnInit()})});this.selection.clear(),this.isAddButtonDisabled=!1}onRemove(){for(const e of this.selection.selected)this.attributesManager.removeEntitylessAttribute(e[0],e[1].id).subscribe(()=>{this.translate.get("SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.REMOVE_SUCCESS").subscribe(i=>{this.notificator.showSuccess(i),this.ngOnInit()})});this.ngOnInit(),this.selection.clear(),this.isAddButtonDisabled=!1}onAdd(){const e=["",this.attDef];e[1].value=void 0,this.records.unshift(e),this.dataSource.data=this.records,this.setDataSource(),this.selection.clear(),this.selection.select(e),this.isAddButtonDisabled=!0}onCancel(){this.dialogRef.close(!1)}isAllSelected(){return this.selection.selected.length===this.dataSource.data.length}masterToggle(){this.isAllSelected()?this.selection.clear():this.dataSource.data.forEach(e=>this.selection.select(e))}onValueChange(e){this.selection.select(e)}updateMapAttributes(){for(const e of this.items.toArray())"java.util.LinkedHashMap"===e.attribute.type&&e.updateMapAttribute()}ngAfterViewInit(){this.children.changes.subscribe(e=>{this.child=e.first,this.dataSource.paginator=this.child.paginator})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(M.WI),t.Y36(Z.V6),t.Y36(u.sK),t.Y36(H.H8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-entityless-attribute-keys-list"]],viewQuery:function(e,i){if(1&e&&(t.Gf(nn.YE,7),t.Gf(Zi.Mw,5),t.Gf(fe.l9,5)),2&e){let a;t.iGM(a=t.CRH())&&(i.matSort=a.first),t.iGM(a=t.CRH())&&(i.items=a),t.iGM(a=t.CRH())&&(i.children=a)}},inputs:{attDef:"attDef",tableId:"tableId"},outputs:{switchView:"switchView"},features:[t.TTD],decls:19,vars:19,consts:[["mat-dialog-title",""],["mat-dialog-actions","",1,"mt-3"],["mat-stroked-button","",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"],["color","accent","matTooltip","save or remove new attribute first","mat-flat-button","","matTooltipPosition","above",1,"ml-2",3,"disabled","matTooltipDisabled","click"],["color","warn","mat-flat-button","",1,"ml-2",3,"click"],["mat-dialog-content","",1,"mt-3",3,"hidden"],["class","card mt-3",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["alert_type","warn","class","mt-3",4,"ngIf"],[1,"card","mt-3"],[3,"pageSizeOptions","dataLength","hideExport","tableId"],["mat-table","","matSort","","matSortActive","key","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","key"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","value"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["matInput","","placeholder","New key",1,"mt-2",3,"ngModel","ngModelChange"],[3,"attribute","sendEventToParent2"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],[1,"ml-auto","mr-auto"],["alert_type","warn",1,"mt-3"]],template:function(e,i){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.TgZ(2,"div",1)(3,"button",2),t.NdJ("click",function(){return i.switchView.emit()}),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.TgZ(6,"button",3),t.NdJ("click",function(){return i.onSave()}),t._uU(7),t.ALo(8,"translate"),t.qZA(),t.TgZ(9,"button",4),t.NdJ("click",function(){return i.onAdd()}),t._uU(10),t.ALo(11,"translate"),t.qZA(),t.TgZ(12,"button",5),t.NdJ("click",function(){return i.onRemove()}),t._uU(13),t.ALo(14,"translate"),t.qZA()(),t.TgZ(15,"div",6),t.YNc(16,Xt,13,13,"div",7),t.YNc(17,kt,1,0,"mat-spinner",8),t.YNc(18,le,3,3,"perun-web-apps-alert",9),t.qZA()),2&e&&(t.xp6(1),t.Oqu(i.attDef.namespace+":"+i.attDef.friendlyName),t.xp6(3),t.hij(" ",t.lcZ(5,11,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.CANCEL")," "),t.xp6(3),t.hij(" ",t.lcZ(8,13,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.SAVE")," "),t.xp6(2),t.Q6J("disabled",i.isAddButtonDisabled)("matTooltipDisabled",!i.isAddButtonDisabled),t.xp6(1),t.hij(" ",t.lcZ(11,15,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.ADD")," "),t.xp6(3),t.hij(" ",t.lcZ(14,17,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.REMOVE")," "),t.xp6(2),t.Q6J("hidden",i.loading),t.xp6(1),t.Q6J("ngIf",i.records&&i.records.length),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",0===i.records.length))},dependencies:[m.O5,Mt.Nt,rt.Fj,rt.JJ,rt.On,G.lW,nn.YE,nn.nU,R.BZ,R.fO,R.as,R.w1,R.Dz,R.nj,R.ge,R.ev,R.XQ,R.Gk,Fn.oG,M.uh,M.xY,M.H8,tt.Ou,sn.gM,K.w,dn.M,z.l,u.X$,X.I,lt.G,A.r],styles:[".mat-cell[_ngcontent-%COMP%]{padding:8px 8px 8px 0}"]}),n})();var se=s(60205);function Se(n,r){1&n&&t._UZ(0,"mat-spinner",10)}function Ce(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")," "))}function je(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")," "))}const Pe=function(){return["id","name","enabled","script"]};function Be(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",11)(1,"form",12)(2,"mat-form-field"),t._UZ(3,"input",13),t.ALo(4,"translate"),t.YNc(5,Ce,3,3,"mat-error",1),t.qZA(),t.TgZ(6,"mat-form-field")(7,"textarea",14),t.ALo(8,"translate"),t._uU(9," "),t.qZA(),t.YNc(10,je,3,3,"mat-error",1),t.qZA()(),t.TgZ(11,"label",15),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.TgZ(14,"div",16),t._uU(15),t.TgZ(16,"mat-icon",17),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.copyUrn())}),t.ALo(17,"translate"),t._uU(18,"content_copy"),t.qZA()(),t._UZ(19,"perun-web-apps-attribute-unique-toggle",18),t.TgZ(20,"perun-web-apps-attribute-critical-operations-toggles",19),t.NdJ("readOperationChanged",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(o.finalReadOperations=a)})("writeOperationChanged",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(o.finalWriteOperations=a)}),t.qZA(),t._UZ(21,"perun-web-apps-attribute-rights-tab-group",20),t.ALo(22,"async"),t.TgZ(23,"mat-accordion")(24,"mat-expansion-panel",21)(25,"mat-expansion-panel-header")(26,"mat-panel-title"),t._uU(27),t.ALo(28,"translate"),t.qZA()(),t._UZ(29,"app-services-list",22),t.ALo(30,"async"),t.qZA()()()}if(2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("formGroup",e.attributeControl),t.xp6(2),t.s9C("placeholder",t.lcZ(4,17,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.DISPLAY_NAME")),t.xp6(2),t.Q6J("ngIf",e.attributeControl.hasError("required","name")),t.xp6(2),t.s9C("placeholder",t.lcZ(8,19,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.DESCRIPTION")),t.xp6(3),t.Q6J("ngIf",e.attributeControl.hasError("required","description")),t.xp6(2),t.hij(" ",t.lcZ(13,21,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.URN")," "),t.xp6(3),t.hij(" ",e.urn," "),t.xp6(1),t.s9C("matTooltip",t.lcZ(17,23,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.URN_TOOLTIP")),t.xp6(3),t.Q6J("attDef",e.attDef),t.xp6(1),t.Q6J("readOperation",e.initReadOperations)("writeOperation",e.initWriteOperations),t.xp6(1),t.Q6J("attDef",e.attDef)("collections",t.lcZ(22,25,e.collections$)),t.xp6(6),t.hij(" ",t.lcZ(28,27,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.SERVICES")," "),t.xp6(2),t.Q6J("disableRouting",!0)("displayedColumns",t.DdM(31,Pe))("services",t.lcZ(30,29,e.services$))}}function ue(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",23),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.switchShowKeys())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.SHOW_KEYS")," "))}function me(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div")(1,"h1",2),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Se,1,0,"mat-spinner",3),t.YNc(5,Be,31,32,"div",4),t.TgZ(6,"div",5),t.YNc(7,ue,3,3,"button",6),t.TgZ(8,"button",7),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onCopy())}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onCancel())}),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.TgZ(14,"button",9),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onSubmit())}),t._uU(15),t.ALo(16,"translate"),t.qZA()()()}if(2&n){const e=t.oxw();t.xp6(2),t.Oqu(t.lcZ(3,8,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.TITLE")),t.xp6(2),t.Q6J("ngIf",e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading),t.xp6(2),t.Q6J("ngIf","entityless"===(null==e.attDef?null:e.attDef.entity)),t.xp6(2),t.hij(" ",t.lcZ(10,10,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.COPY_FOR_IMPORT")," "),t.xp6(3),t.hij(" ",t.lcZ(13,12,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",e.loading||e.attributeControl.invalid),t.xp6(1),t.hij(" ",t.lcZ(16,14,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.CONFIRM")," ")}}function Fe(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div")(1,"app-entityless-attribute-keys-list",24),t.NdJ("switchView",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.switchShowKeys())}),t.qZA()()}if(2&n){const e=t.oxw();t.xp6(1),t.Q6J("attDef",e.attDef)("tableId",e.tableId)}}let pn=(()=>{class n{constructor(e,i,a,o,v,T,N,U,J){this.dialogRef=e,this.data=i,this.notificator=a,this.translate=o,this.clipboard=v,this.attributesManager=T,this.serviceService=N,this.formBuilder=U,this.attributeRightsService=J,this.tableId=En.Wv,this.loading=!1,this.showKeys=!1,this.attDef=this.data.attDef,this.attributeControl=this.formBuilder.group({name:[this.attDef.displayName,rt.kI.required],description:[this.attDef.description,rt.kI.required]}),this.urn=`${this.attDef.namespace}:${this.attDef.friendlyName}`,this.collections$=new E.X([]),this.services$=this.serviceService.getServicesByAttributeDefinition(this.attDef.id).pipe((0,li.O)([]))}ngOnInit(){this.dialogRef.addPanelClass("mat-dialog-height-transition"),this.attributesManager.getAttributeRules(this.attDef.id).subscribe(e=>{this.collections$=new E.X(e.attributePolicyCollections),this.initReadOperations=e.criticalActions.includes("READ"),this.initWriteOperations=e.criticalActions.includes("WRITE")})}onSubmit(){this.loading=!0,this.updateAttribute(),this.attributesManager.updateAttributeDefinition({attributeDefinition:this.attDef}).pipe((0,F.w)(()=>(0,yt.of)(this.collections$.getValue())),this.attributeRightsService.filterNullInPolicy(),(0,F.w)(e=>this.attributesManager.setAttributePolicyCollections({policyCollections:e})),(0,F.w)(()=>this.attributeRightsService.updateAttributeAction(this.finalReadOperations,this.initReadOperations,this.attDef.id,H.oW.READ)),(0,F.w)(()=>this.attributeRightsService.updateAttributeAction(this.finalWriteOperations,this.initWriteOperations,this.attDef.id,H.oW.WRITE))).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.EDIT_ATTRIBUTE_DEFINITION.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}switchShowKeys(){this.showKeys=!this.showKeys,this.dialogRef.updateSize(this.showKeys?"800px":"700px")}copyUrn(){this.clipboard.copy(this.urn)?this.notificator.showSuccess(this.translate.instant("DIALOGS.EDIT_ATTRIBUTE_DEFINITION.COPIED")):this.notificator.showError(this.translate.instant("DIALOGS.EDIT_ATTRIBUTE_DEFINITION.COPY_FAILED"))}onCopy(){this.updateAttribute();const e={attributeDefinition:this.attDef,attributeRights:this.collections$.getValue()};this.clipboard.copy(JSON.stringify(e))?this.notificator.showSuccess(this.translate.instant("DIALOGS.EDIT_ATTRIBUTE_DEFINITION.COPIED")):this.notificator.showError(this.translate.instant("DIALOGS.EDIT_ATTRIBUTE_DEFINITION.COPY_FAILED"))}updateAttribute(){this.attDef.displayName=this.attributeControl.get("name").value,this.attDef.description=this.attributeControl.get("description").value}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(M.WI),t.Y36(Z.V6),t.Y36(u.sK),t.Y36(kn.TU),t.Y36(H.H8),t.Y36(H.KK),t.Y36(rt.QS),t.Y36(Z.eE))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-edit-attribute-definition-dialog"]],decls:3,vars:2,consts:[[1,"admin-theme"],[4,"ngIf"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",3,"click",4,"ngIf"],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","",1,"ml-2",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"fields-container",3,"formGroup"],["matInput","","data-cy","display-name-input","formControlName","name","required","",3,"placeholder"],["matInput","","formControlName","description","cdkTextareaAutosize","","required","",3,"placeholder"],[1,"urn-name"],[1,"urn-row"],["matSuffix","",1,"copy-urn",3,"matTooltip","click"],[3,"attDef"],[3,"readOperation","writeOperation","readOperationChanged","writeOperationChanged"],[3,"attDef","collections"],[1,"mt-4","mb-4"],[3,"disableRouting","displayedColumns","services"],["mat-flat-button","",3,"click"],[3,"attDef","tableId","switchView"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t.YNc(1,me,17,16,"div",1),t.YNc(2,Fe,2,2,"div",1),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngIf",!i.showKeys),t.xp6(1),t.Q6J("ngIf",i.showKeys))},dependencies:[m.O5,de.IC,ie.TO,ie.KE,ie.R9,Mt.Nt,rt._Y,rt.Fj,rt.JJ,rt.JL,rt.Q7,rt.sg,rt.u,l.Hw,we.pp,we.ib,we.yz,we.yK,G.lW,M.uh,M.xY,M.H8,tt.Ou,sn.gM,be,ee,Ze,O,se.Q,m.Ov,u.X$],styles:[".fields-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}.urn-name[_ngcontent-%COMP%]{color:#0000008a;margin-bottom:0;font-size:small}.urn-row[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.copy-urn[_ngcontent-%COMP%]{cursor:pointer}"],data:{animation:[Wn.SG,Wn.GH,Wn.Ls]}}),n})();var ln=s(70844),Ye=s(64597);let We=(()=>{class n{transform(e){if(null===e)return null;const i=e;return i.substring(i.lastIndexOf(":")+1,i.length)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"nameSpaceToDef",type:n,pure:!0}),n})();function An(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"th",20)(1,"mat-checkbox",21),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(a?o.masterToggle():null)}),t.ALo(2,"translate"),t.ALo(3,"masterCheckboxLabel"),t.qZA()()}if(2&n){const e=t.oxw().ngIf,i=t.oxw();t.xp6(1),t.Q6J("aria-label",t.lcZ(2,3,t.lcZ(3,5,e.all)))("checked",i.selection.hasValue()&&e.all)("indeterminate",i.selection.hasValue()&&!e.all)}}const Zn=function(n){return{name:n}};function Vn(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"td",22)(1,"mat-checkbox",23),t.NdJ("change",function(a){const v=t.CHM(e).$implicit,T=t.oxw(2);return t.KtG(a?T.selection.toggle(v):null)})("click",function(a){return a.stopPropagation()}),t.ALo(2,"multiWordDataCy"),t.ALo(3,"translate"),t.ALo(4,"checkboxLabel"),t.ALo(5,"consentRelatedAttribute"),t.ALo(6,"translate"),t.ALo(7,"consentRelatedAttribute"),t.qZA()()}if(2&n){const e=r.$implicit,i=t.oxw(2);t.xp6(1),t.Q2q("data-cy","",t.lcZ(2,6,e.displayName),"-checkbox"),t.Q6J("aria-label",t.xi3(3,8,t.lcZ(4,11,i.selection.isSelected(e)),t.VKq(23,Zn,e.displayName)))("checked",i.selection.isSelected(e))("disabled",t.Dn7(5,13,e.namespace,i.serviceEnabled,i.consentRequired))("matTooltip",t.lcZ(6,17,"ADMIN.ATTRIBUTES.CONSENT_RELATED_DISABLED"))("matTooltipDisabled",!t.Dn7(7,19,e.namespace,i.serviceEnabled,i.consentRequired))}}function Xn(n,r){1&n&&(t.ynx(0,17),t.YNc(1,An,4,7,"th",18),t.YNc(2,Vn,8,25,"td",19),t.BQk())}function Pi(n,r){1&n&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.ATTRIBUTES.TABLE_ATTR_ID")," "))}function he(n,r){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(e.id)}}function Xe(n,r){1&n&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.ATTRIBUTES.TABLE_ATTR_FRIENDLY_NAME")," "))}function vn(n,r){if(1&n&&(t.TgZ(0,"td",26),t.ALo(1,"multiWordDataCy"),t._uU(2),t.qZA()),2&n){const e=r.$implicit;t.Q2q("data-cy","",t.lcZ(1,2,e.friendlyName),"-friendly-name"),t.xp6(2),t.hij(" ",e.friendlyName," ")}}function wn(n,r){1&n&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.ATTRIBUTES.TABLE_ATTR_ENTITY")," "))}function Qn(n,r){if(1&n&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(e.entity)}}function ci(n,r){1&n&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.ATTRIBUTES.TABLE_ATTR_DEF")," "))}function vi(n,r){if(1&n&&(t.TgZ(0,"td",26),t._uU(1),t.ALo(2,"nameSpaceToDef"),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(t.lcZ(2,1,e.namespace))}}function jn(n,r){1&n&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.ATTRIBUTES.TABLE_ATTR_TYPE")," "))}function Vi(n,r){if(1&n&&(t.TgZ(0,"td",26),t._uU(1),t.ALo(2,"attributeTypeClean"),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(t.lcZ(2,1,e.type))}}function Jn(n,r){1&n&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.ATTRIBUTES.TABLE_ATTR_UNIQUE")," "))}function bi(n,r){if(1&n&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(e.unique)}}function fn(n,r){1&n&&t._UZ(0,"tr",27)}function cn(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"tr",28),t.NdJ("click",function(){const o=t.CHM(e).$implicit,v=t.oxw();return t.KtG(v.onRowClick(o))}),t.qZA()}if(2&n){const e=t.oxw();t.ekj("cursor-pointer",!e.disableRouting)}}function ui(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",29),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.ATTRIBUTES.NO_ATTRIBUTES"),"\n"))}function Ji(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",29),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}const hi=function(n){return{all:n}};let Fi=(()=>{class n{constructor(e,i,a,o){this.dialog=e,this.authResolver=i,this.tableCheckbox=a,this.consentRelatedPipe=o,this.selection=new B.Ov(!0,[]),this.displayedColumns=["select","id","friendlyName","entity","namespace","type","unique"],this.disableRouting=!1,this.consentRequired=!1,this.serviceEnabled=!1,this.refreshEvent=new t.vpe,this.pageSizeOptions=fe.f7,this.canBeSelected=v=>!this.consentRelatedPipe.transform(v.namespace,this.serviceEnabled,this.consentRequired)}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,i){switch(i){case"id":return e.id.toString();case"friendlyName":return e.friendlyName;case"entity":return e.entity;case"namespace":if(e.namespace){const a=e.namespace;return a.substring(a.lastIndexOf(":")+1,a.length)}return"";case"type":if(e.type){const a=e.type;return a.substring(a.lastIndexOf(".")+1,a.length)}return"";case"unique":return e.unique?"true":"false";default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"id"!==e)),this.dataSource=new R.by(this.definitions),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}exportAllData(e){(0,fe.O6)((0,fe.Xn)(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}exportDisplayedData(e){const i=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,a=i+this.dataSource.paginator.pageSize;(0,fe.O6)((0,fe.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(i,a),this.displayedColumns,n.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filter=this.filterValue,this.dataSource.sort=this.sort,this.dataSource.filterPredicate=(e,i)=>(0,fe.Sd)(e,i,this.displayedColumns,n.getDataForColumn),this.dataSource.sortData=(e,i)=>(0,fe.pR)(e,i,n.getDataForColumn),this.dataSource.paginator=this.child.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource,this.canBeSelected)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!0,this.canBeSelected)}onRowClick(e){if(!this.disableRouting){const i=(0,fe.kZ)();i.width="700px",i.data={attDef:e},this.dialog.open(pn,i).afterClosed().subscribe(o=>{o&&(this.selection.clear(),this.refreshEvent.emit())})}}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.uw),t.Y36(Z.x4),t.Y36(Z.UA),t.Y36(ln.u))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-attr-def-list"]],viewQuery:function(e,i){if(1&e&&(t.Gf(fe.l9,7),t.Gf(nn.YE,7)),2&e){let a;t.iGM(a=t.CRH())&&(i.child=a.first),t.iGM(a=t.CRH())&&(i.matSort=a.first)}},inputs:{definitions:"definitions",selection:"selection",displayedColumns:"displayedColumns",filterValue:"filterValue",tableId:"tableId",disableRouting:"disableRouting",consentRequired:"consentRequired",serviceEnabled:"serviceEnabled"},outputs:{refreshEvent:"refreshEvent"},features:[t.TTD],decls:28,vars:16,consts:[[1,"card","mt-2",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportDisplayedData","exportAllData"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","friendlyName"],["mat-cell","",4,"matCellDef"],["matColumnDef","entity"],["matColumnDef","namespace"],["matColumnDef","type"],["matColumnDef","unique"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","click",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["matTooltipPosition","left","color","primary",3,"aria-label","checked","disabled","matTooltip","matTooltipDisabled","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"click"],["alert_type","warn"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportDisplayedData",function(o){return i.exportDisplayedData(o)})("exportAllData",function(o){return i.exportAllData(o)}),t.TgZ(2,"div",2)(3,"table",3),t.YNc(4,Xn,3,0,"ng-container",4),t.ALo(5,"isAllSelected"),t.ynx(6,5),t.YNc(7,Pi,3,3,"th",6),t.YNc(8,he,2,1,"td",7),t.BQk(),t.ynx(9,8),t.YNc(10,Xe,3,3,"th",6),t.YNc(11,vn,3,4,"td",9),t.BQk(),t.ynx(12,10),t.YNc(13,wn,3,3,"th",6),t.YNc(14,Qn,2,1,"td",9),t.BQk(),t.ynx(15,11),t.YNc(16,ci,3,3,"th",6),t.YNc(17,vi,3,3,"td",9),t.BQk(),t.ynx(18,12),t.YNc(19,jn,3,3,"th",6),t.YNc(20,Vi,3,3,"td",9),t.BQk(),t.ynx(21,13),t.YNc(22,Jn,3,3,"th",6),t.YNc(23,bi,2,1,"td",9),t.BQk(),t.YNc(24,fn,1,0,"tr",14),t.YNc(25,cn,1,2,"tr",15),t.qZA()()()(),t.YNc(26,ui,3,3,"perun-web-apps-alert",16),t.YNc(27,Ji,3,3,"perun-web-apps-alert",16)),2&e&&(t.Q6J("hidden",0===i.dataSource.filteredData.length||0===i.definitions.length),t.xp6(1),t.Q6J("pageSizeOptions",i.pageSizeOptions)("dataLength",i.dataSource.filteredData.length)("tableId",i.tableId),t.xp6(2),t.Q6J("dataSource",i.dataSource),t.xp6(1),t.Q6J("ngIf",t.VKq(14,hi,t.Dn7(5,10,i.dataSource,i.selection.selected.length,i.canBeSelected))),t.xp6(20),t.Q6J("matHeaderRowDef",i.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",i.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===i.definitions.length),t.xp6(1),t.Q6J("ngIf",0===i.dataSource.filteredData.length&&0!==i.definitions.length))},dependencies:[m.O5,nn.YE,nn.nU,R.BZ,R.fO,R.as,R.w1,R.Dz,R.nj,R.ge,R.ev,R.XQ,R.Gk,Fn.oG,sn.gM,K.w,z.l,u.X$,Ye.R,X.I,lt.G,A.r,ze,We,ln.u],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),n})();var gn=s(96214),In=s(7434);function on(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onCreate())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.ATTRIBUTES.CREATE")," "))}function Hi(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onImport())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.ATTRIBUTES.IMPORT")," "))}function qe(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",10),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onDelete())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",0===e.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"ADMIN.ATTRIBUTES.DELETE")," ")}}function Ti(n,r){1&n&&t._UZ(0,"mat-spinner",11)}function On(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"app-attr-def-list",12),t.NdJ("refreshEvent",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.refreshTable())}),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("definitions",e.attrDefinitions)("disableRouting",!e.authResolver.isPerunAdminOrObserver())("filterValue",e.filterValue)("selection",e.selected)("tableId",e.tableId)}}let b=(()=>{class n{constructor(e,i,a){this.dialog=e,this.attributesManager=i,this.authResolver=a,this.attrDefinitions=[],this.selected=new B.Ov(!0,[]),this.filterValue="",this.tableId=En.uM}ngOnInit(){this.refreshTable()}onCreate(){const e=(0,fe.kZ)();e.width="650px",this.dialog.open(Bi,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}onDelete(){const e=(0,fe.kZ)();e.width="450px",e.data={attributes:this.selected.selected,theme:"admin-theme"},this.dialog.open(nt,e).afterClosed().subscribe(a=>{a&&(this.refreshTable(),this.selected.clear())})}refreshTable(){this.loading=!0,this.attributesManager.getAllAttributeDefinitions().subscribe(e=>{this.attrDefinitions=e,this.loading=!1})}applyFilter(e){this.filterValue=e}onImport(){const e=(0,fe.kZ)();e.width="700px",this.dialog.open(mn,e).afterClosed().subscribe(a=>{!0===a&&this.refreshTable()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.uw),t.Y36(H.H8),t.Y36(Z.x4))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-admin-attributes"]],hostVars:2,hostBindings:function(e,i){2&e&&t.ekj("router-component",i.true)},decls:11,vars:9,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2 action-button","color","accent","data-cy","new-attr-definition-button","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["color","warn","class","mr-2","data-cy","delete-attr-definition-button","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"definitions","disableRouting","filterValue","selection","tableId","refreshEvent",4,"ngIf"],["color","accent","data-cy","new-attr-definition-button","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","data-cy","delete-attr-definition-button","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"definitions","disableRouting","filterValue","selection","tableId","refreshEvent"]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.YNc(5,on,3,3,"button",2),t.YNc(6,Hi,3,3,"button",3),t.YNc(7,qe,3,4,"button",4),t.TgZ(8,"perun-web-apps-immediate-filter",5),t.NdJ("filter",function(o){return i.applyFilter(o)}),t.qZA(),t.YNc(9,Ti,1,0,"mat-spinner",6),t.YNc(10,On,1,5,"app-attr-def-list",7),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,7,"ADMIN.ATTRIBUTES.TITLE")),t.xp6(3),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("placeholder","ADMIN.ATTRIBUTES.SEARCH"),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,G.lW,tt.Ou,Fi,gn.t,In.L,u.X$]}),n})(),k=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-admin-visualizer"]],hostVars:2,hostBindings:function(e,i){2&e&&t.ekj("router-component",i.true)},decls:1,vars:0,template:function(e,i){1&e&&t._UZ(0,"app-animated-router-outlet")},dependencies:[h.A]}),n})();var V=s(9921);let it=(()=>{class n{constructor(e){this.attributesManager=e}ngOnInit(){this.attributesManager.getAttributeModulesDependenciesGraphText("DOT").subscribe(e=>{const i=e.graph.replace("\\t","").replace("\\n","").replace("\\","");(0,V.graphviz)("#dependenciesGraph",{zoom:!1}).renderDot(i)})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(H.H8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-visualizer-attr-modules"]],hostVars:2,hostBindings:function(e,i){2&e&&t.ekj("router-component",i.true)},decls:4,vars:3,consts:[[1,"page-subtitle"],["id","dependenciesGraph",1,"card"]],template:function(e,i){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t._UZ(3,"div",1)),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.VISUALIZER.ATTR_DEPENDENCIES.TITLE"),"\n"))},dependencies:[u.X$],styles:["#dependenciesGraph[_ngcontent-%COMP%]{overflow-y:scroll}"]}),n})(),ht=(()=>{class n{constructor(){this.items=[{cssIcon:"perun-module-dependencies",url:"attrDependencies",label:"MENU_ITEMS.VISUALIZER.ATTR_DEPENDENCIES",style:"admin-btn"},{cssIcon:"perun-user-destination-relationship",url:"userDestinationRelationship",label:"MENU_ITEMS.VISUALIZER.USER_DESTINATION",style:"admin-btn"}]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-visualizer-overview"]],hostVars:2,hostBindings:function(e,i){2&e&&t.ekj("router-component",i.true)},decls:2,vars:2,consts:[[3,"items","size"]],template:function(e,i){1&e&&(t.TgZ(0,"div"),t._UZ(1,"perun-web-apps-menu-buttons-field",0),t.qZA()),2&e&&(t.xp6(1),t.Q6J("items",i.items)("size","small"))},dependencies:[L.L]}),n})();var xt=s(71884),Ot=s(18505),Rt=s(47957),oe=s(71948),Ae=s(86257);function $e(n,r){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.Oqu(t.lcZ(1,1,"ADMIN.VISUALIZER.USER_DESTINATION.SELECT_USER"))}function rn(n,r){1&n&&t._UZ(0,"mat-spinner",17),2&n&&t.Q6J("diameter",20)("strokeWidth",2)}function ke(n,r){if(1&n&&(t.TgZ(0,"mat-option",18)(1,"span",19),t._uU(2),t.qZA(),t._uU(3),t.qZA()),2&n){const e=r.$implicit;t.Q6J("value",e.firstName+" "+e.lastName),t.xp6(2),t.hij("#",e.id,""),t.xp6(1),t.AsE(" ",e.firstName," ",e.lastName," ")}}function Me(n,r){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.Oqu(t.lcZ(1,1,"ADMIN.VISUALIZER.USER_DESTINATION.SELECT_DESTINATION"))}function _n(n,r){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.Oqu(t.lcZ(1,1,"ADMIN.VISUALIZER.USER_DESTINATION.SELECT_SERVICE"))}function Kn(n,r){if(1&n&&(t.TgZ(0,"mat-radio-button",20),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}let er=(()=>{class n{constructor(e,i,a,o,v,T){this.usersService=e,this.translate=i,this.facilityManager=a,this.serviceService=o,this.router=v,this.notificator=T,this.searchField=new rt.p4,this.chosenService="",this.availableServices=[],this.loading=!1,this.destination=""}ngOnInit(){this.searchField.setValue(""),this.users=this.searchField.valueChanges.pipe((0,q.b)(400),(0,xt.x)(),(0,Ot.b)(()=>this.loading=!0),(0,F.w)(e=>this.usersService.findUsers(e)),(0,Ot.b)(()=>this.loading=!1)),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.SELECT_NO_SERVICE").subscribe(e=>{this.noServiceText=e,this.availableServices.push(this.noServiceText)})}validateName(e){""!==this.searchField.value?this.usersService.findUsers(this.searchField.value).subscribe(i=>{for(const a of i){if((a.firstName+" "+a.lastName).toLowerCase()===this.searchField.value.toLowerCase()){this.selectedUser=a,e.selected.completed=!0,e.next();break}this.selectedUser=null}this.selectedUser||this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.ERROR_WRONG_NAME").subscribe(a=>{this.notificator.showError(a)})}):this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.ERROR_NO_NAME").subscribe(i=>{this.notificator.showError(i)})}validateDestination(e){""!==this.destination?(this.availableServices=[],this.availableServices.push(this.noServiceText),this.chosenService="",this.facilityManager.getFacilitiesByDestination(this.destination).subscribe(i=>{if(0!==i.length){e.selected.completed=!0,e.next();for(const a of i)this.serviceService.getAllRichDestinationsForFacility(a.id).subscribe(o=>{for(const v of o)v.destination===this.destination&&(this.availableServices.includes(v.service.name)||this.availableServices.push(v.service.name))})}else this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.ERROR_WRONG_DESTINATION").subscribe(a=>{this.notificator.showError(a)})})):this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.ERROR_NO_DESTINATION").subscribe(i=>{this.notificator.showError(i)})}getGraph(){""!==this.chosenService?this.router.navigate(["admin/visualizer/userDestinationRelationship/graph"],this.chosenService===this.noServiceText?{queryParams:{user:this.selectedUser.id,destination:this.destination,service:"noService"},queryParamsHandling:"merge"}:{queryParams:{user:this.selectedUser.id,destination:this.destination,service:this.chosenService},queryParamsHandling:"merge"}):this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.ERROR_NOT_CHOSEN_SERVICE").subscribe(e=>{this.notificator.showError(e)})}notCompleted(e){e.selected.completed=!1}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(H.Fv),t.Y36(u.sK),t.Y36(H.IQ),t.Y36(H.KK),t.Y36(p.F0),t.Y36(Z.V6))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-user-destination-relationship"]],hostVars:2,hostBindings:function(e,i){2&e&&t.ekj("router-component",i.true)},decls:46,vars:36,consts:[[1,"p-3","card","settings-card","col-12","col-xl-5"],[1,"page-subtitle"],["linear",""],["stepper",""],["completed","false"],["matStepLabel",""],[1,"w-100"],["matInput","","type","text",3,"placeholder","formControl","matAutocomplete","keydown.enter","ngModelChange"],["matSuffix","",3,"diameter","strokeWidth",4,"ngIf"],["align","start"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],["mat-stroked-button","",1,"mt-2",3,"click"],["matInput","","type","text",3,"placeholder","ngModel","keydown.enter","ngModelChange"],["mat-stroked-button","","matStepperPrevious","",1,"mt-2"],[1,"mb-2",3,"ngModel","ngModelChange"],["class","flex-column d-flex","color","primary",3,"value",4,"ngFor","ngForOf"],["matSuffix","",3,"diameter","strokeWidth"],[3,"value"],[1,"text-muted"],["color","primary",1,"flex-column","d-flex",3,"value"]],template:function(e,i){if(1&e){const a=t.EpF();t.TgZ(0,"div",0)(1,"h1",1),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-vertical-stepper",2,3)(6,"mat-step",4),t.YNc(7,$e,2,3,"ng-template",5),t.TgZ(8,"mat-form-field",6)(9,"input",7),t.NdJ("keydown.enter",function(){t.CHM(a);const v=t.MAs(5);return t.KtG(i.validateName(v))})("ngModelChange",function(){t.CHM(a);const v=t.MAs(5);return t.KtG(i.notCompleted(v))}),t.ALo(10,"translate"),t.qZA(),t.YNc(11,rn,1,2,"mat-spinner",8),t.TgZ(12,"mat-hint",9),t._uU(13),t.ALo(14,"translate"),t.qZA(),t.TgZ(15,"mat-autocomplete",null,10),t.YNc(17,ke,4,4,"mat-option",11),t.ALo(18,"async"),t.qZA()(),t.TgZ(19,"div")(20,"button",12),t.NdJ("click",function(){t.CHM(a);const v=t.MAs(5);return t.KtG(i.validateName(v))}),t._uU(21),t.ALo(22,"translate"),t.qZA()()(),t.TgZ(23,"mat-step",4),t.YNc(24,Me,2,3,"ng-template",5),t.TgZ(25,"mat-form-field",6)(26,"input",13),t.NdJ("keydown.enter",function(){t.CHM(a);const v=t.MAs(5);return t.KtG(i.validateDestination(v))})("ngModelChange",function(){t.CHM(a);const v=t.MAs(5);return t.KtG(i.notCompleted(v))})("ngModelChange",function(v){return i.destination=v}),t.ALo(27,"translate"),t.qZA()(),t.TgZ(28,"div")(29,"button",14),t._uU(30),t.ALo(31,"translate"),t.qZA(),t.TgZ(32,"button",12),t.NdJ("click",function(){t.CHM(a);const v=t.MAs(5);return t.KtG(i.validateDestination(v))}),t._uU(33),t.ALo(34,"translate"),t.qZA()()(),t.TgZ(35,"mat-step"),t.YNc(36,_n,2,3,"ng-template",5),t.TgZ(37,"mat-radio-group",15),t.NdJ("ngModelChange",function(v){return i.chosenService=v}),t.YNc(38,Kn,2,2,"mat-radio-button",16),t.qZA(),t.TgZ(39,"div")(40,"button",14),t._uU(41),t.ALo(42,"translate"),t.qZA(),t.TgZ(43,"button",12),t.NdJ("click",function(){return i.getGraph()}),t._uU(44),t.ALo(45,"translate"),t.qZA()()()()()}if(2&e){const a=t.MAs(16);t.xp6(2),t.hij(" ",t.lcZ(3,16,"ADMIN.VISUALIZER.USER_DESTINATION.TITLE")," "),t.xp6(7),t.s9C("placeholder",t.lcZ(10,18,"ADMIN.VISUALIZER.USER_DESTINATION.USER_EXAMPLE")),t.Q6J("formControl",i.searchField)("matAutocomplete",a),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(2),t.Oqu(t.lcZ(14,20,"ADMIN.VISUALIZER.USER_DESTINATION.USER_HINT")),t.xp6(4),t.Q6J("ngForOf",t.lcZ(18,22,i.users)),t.xp6(4),t.hij(" ",t.lcZ(22,24,"ADMIN.VISUALIZER.USER_DESTINATION.BUTTON_NEXT")," "),t.xp6(5),t.s9C("placeholder",t.lcZ(27,26,"ADMIN.VISUALIZER.USER_DESTINATION.DESTINATION_EXAMPLE")),t.Q6J("ngModel",i.destination),t.xp6(4),t.hij(" ",t.lcZ(31,28,"ADMIN.VISUALIZER.USER_DESTINATION.BUTTON_BACK")," "),t.xp6(3),t.hij(" ",t.lcZ(34,30,"ADMIN.VISUALIZER.USER_DESTINATION.BUTTON_NEXT")," "),t.xp6(4),t.Q6J("ngModel",i.chosenService),t.xp6(1),t.Q6J("ngForOf",i.availableServices),t.xp6(3),t.hij(" ",t.lcZ(42,32,"ADMIN.VISUALIZER.USER_DESTINATION.BUTTON_BACK")," "),t.xp6(3),t.hij(" ",t.lcZ(45,34,"ADMIN.VISUALIZER.USER_DESTINATION.SUBMIT_BUTTON")," ")}},dependencies:[m.sg,m.O5,Rt.XC,Rt.ZL,zt.ey,ie.KE,ie.bx,ie.R9,Mt.Nt,rt.Fj,rt.JJ,rt.oH,rt.On,G.lW,tt.Ou,oe.VQ,oe.U0,Ae.C0,Ae.VY,Ae.Vq,Ae.fd,m.Ov,u.X$]}),n})();function di(n,r,e){n._context.bezierCurveTo((2*n._x0+n._x1)/3,(2*n._y0+n._y1)/3,(n._x0+2*n._x1)/3,(n._y0+2*n._y1)/3,(n._x0+4*n._x1+r)/6,(n._y0+4*n._y1+e)/6)}function Nn(n){this._context=n}function xi(n,r){this._basis=new Nn(n),this._beta=r}Nn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:di(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(n,r){switch(n=+n,r=+r,this._point){case 0:this._point=1,this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:di(this,n,r)}this._x0=this._x1,this._x1=n,this._y0=this._y1,this._y1=r}},xi.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var n=this._x,r=this._y,e=n.length-1;if(e>0)for(var N,i=n[0],a=r[0],o=n[e]-i,v=r[e]-a,T=-1;++T<=e;)this._basis.point(this._beta*n[T]+(1-this._beta)*(i+(N=T/e)*o),this._beta*r[T]+(1-this._beta)*(a+N*v));this._x=this._y=null,this._basis.lineEnd()},point:function(n,r){this._x.push(+n),this._y.push(+r)}};const nr=function n(r){function e(i){return 1===r?new Nn(i):new xi(i,r)}return e.beta=function(i){return n(+i)},e}(.85);var Pn=s(77579),xa=s(70655),Un=s(37340);function Ya(){}function bn(n){return null==n?Ya:function(){return this.querySelector(n)}}function Ki(){return[]}function zn(n){return null==n?Ki:function(){return this.querySelectorAll(n)}}function S(n){return function(){return this.matches(n)}}function $(n){return new Array(n.length)}function vt(n,r){this.ownerDocument=n.ownerDocument,this.namespaceURI=n.namespaceURI,this._next=null,this._parent=n,this.__data__=r}function ne(n,r,e,i,a,o){for(var T,v=0,N=r.length,U=o.length;vr?1:n>=r?0:NaN}vt.prototype={constructor:vt,appendChild:function(n){return this._parent.insertBefore(n,this._next)},insertBefore:function(n,r){return this._parent.insertBefore(n,r)},querySelector:function(n){return this._parent.querySelector(n)},querySelectorAll:function(n){return this._parent.querySelectorAll(n)}};var Wa="http://www.w3.org/1999/xhtml";const Hs={svg:"http://www.w3.org/2000/svg",xhtml:Wa,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function ya(n){var r=n+="",e=r.indexOf(":");return e>=0&&"xmlns"!==(r=n.slice(0,e))&&(n=n.slice(e+1)),Hs.hasOwnProperty(r)?{space:Hs[r],local:n}:n}function Sc(n){return function(){this.removeAttribute(n)}}function Ec(n){return function(){this.removeAttributeNS(n.space,n.local)}}function Dc(n,r){return function(){this.setAttribute(n,r)}}function Lc(n,r){return function(){this.setAttributeNS(n.space,n.local,r)}}function kc(n,r){return function(){var e=r.apply(this,arguments);null==e?this.removeAttribute(n):this.setAttribute(n,e)}}function Ic(n,r){return function(){var e=r.apply(this,arguments);null==e?this.removeAttributeNS(n.space,n.local):this.setAttributeNS(n.space,n.local,e)}}function Ys(n){return n.ownerDocument&&n.ownerDocument.defaultView||n.document&&n||n.defaultView}function Mc(n){return function(){this.style.removeProperty(n)}}function Nc(n,r,e){return function(){this.style.setProperty(n,r,e)}}function Pc(n,r,e){return function(){var i=r.apply(this,arguments);null==i?this.style.removeProperty(n):this.style.setProperty(n,i,e)}}function Nr(n,r){return n.style.getPropertyValue(r)||Ys(n).getComputedStyle(n,null).getPropertyValue(r)}function Rc(n){return function(){delete this[n]}}function Bc(n,r){return function(){this[n]=r}}function Zc(n,r){return function(){var e=r.apply(this,arguments);null==e?delete this[n]:this[n]=e}}function Ws(n){return n.trim().split(/^|\s+/)}function Xa(n){return n.classList||new Xs(n)}function Xs(n){this._node=n,this._names=Ws(n.getAttribute("class")||"")}function $s(n,r){for(var e=Xa(n),i=-1,a=r.length;++i=0&&(this._names.splice(r,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(n){return this._names.indexOf(n)>=0}};var Js={},Sr=null;function mu(n,r,e){return n=Ks(n,r,e),function(i){var a=i.relatedTarget;(!a||a!==this&&!(8&a.compareDocumentPosition(this)))&&n.call(this,i)}}function Ks(n,r,e){return function(i){var a=Sr;Sr=i;try{n.call(this,this.__data__,r,e)}finally{Sr=a}}}function gu(n){return n.trim().split(/^|\s+/).map(function(r){var e="",i=r.indexOf(".");return i>=0&&(e=r.slice(i+1),r=r.slice(0,i)),{type:r,name:e}})}function _u(n){return function(){var r=this.__on;if(r){for(var o,e=0,i=-1,a=r.length;e=$t&&($t=qt+1);!(De=_t[$t])&&++$t=0;)(v=i[a])&&(o&&4^v.compareDocumentPosition(o)&&o.parentNode.insertBefore(v,o),o=v);return this},sort:function Ei(n){function r(ct,ot){return ct&&ot?n(ct.__data__,ot.__data__):!ct-!ot}n||(n=gr);for(var e=this._groups,i=e.length,a=new Array(i),o=0;o1?this.each((null==r?Mc:"function"==typeof r?Pc:Nc)(n,r,e??"")):Nr(this.node(),n)},property:function Vc(n,r){return arguments.length>1?this.each((null==r?Rc:"function"==typeof r?Zc:Bc)(n,r)):this.node()[n]},classed:function Hc(n,r){var e=Ws(n+"");if(arguments.length<2){for(var i=Xa(this.node()),a=-1,o=e.length;++a0)for(var N,i=n[0],a=r[0],o=n[e]-i,v=r[e]-a,T=-1;++T<=e;)this._basis.point(this._beta*n[T]+(1-this._beta)*(i+(N=T/e)*o),this._beta*r[T]+(1-this._beta)*(a+N*v));this._x=this._y=null,this._basis.lineEnd()},point:function(n,r){this._x.push(+n),this._y.push(+r)}};const Cu=function n(r){function e(i){return 1===r?new ba(i):new ro(i,r)}return e.beta=function(i){return n(+i)},e}(.85);var $a=Math.PI,Qa=2*$a,Er=1e-6,wu=Qa-Er;function ja(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function ao(){return new ja}ja.prototype=ao.prototype={constructor:ja,moveTo:function(n,r){this._+="M"+(this._x0=this._x1=+n)+","+(this._y0=this._y1=+r)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(n,r){this._+="L"+(this._x1=+n)+","+(this._y1=+r)},quadraticCurveTo:function(n,r,e,i){this._+="Q"+ +n+","+ +r+","+(this._x1=+e)+","+(this._y1=+i)},bezierCurveTo:function(n,r,e,i,a,o){this._+="C"+ +n+","+ +r+","+ +e+","+ +i+","+(this._x1=+a)+","+(this._y1=+o)},arcTo:function(n,r,e,i,a){var o=this._x1,v=this._y1,T=(e=+e)-(n=+n),N=(i=+i)-(r=+r),U=o-n,J=v-r,ct=U*U+J*J;if((a=+a)<0)throw new Error("negative radius: "+a);if(null===this._x1)this._+="M"+(this._x1=n)+","+(this._y1=r);else if(ct>Er)if(Math.abs(J*T-N*U)>Er&&a){var ot=e-o,Ct=i-v,It=T*T+N*N,Ft=ot*ot+Ct*Ct,_t=Math.sqrt(It),Vt=Math.sqrt(ct),qt=a*Math.tan(($a-Math.acos((It+ct-Ft)/(2*_t*Vt)))/2),$t=qt/Vt,ye=qt/_t;Math.abs($t-1)>Er&&(this._+="L"+(n+$t*U)+","+(r+$t*J)),this._+="A"+a+","+a+",0,0,"+ +(J*ot>U*Ct)+","+(this._x1=n+ye*T)+","+(this._y1=r+ye*N)}else this._+="L"+(this._x1=n)+","+(this._y1=r)},arc:function(n,r,e,i,a,o){n=+n,r=+r,o=!!o;var v=(e=+e)*Math.cos(i),T=e*Math.sin(i),N=n+v,U=r+T,J=1^o,ct=o?i-a:a-i;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+N+","+U:(Math.abs(this._x1-N)>Er||Math.abs(this._y1-U)>Er)&&(this._+="L"+N+","+U),e&&(ct<0&&(ct=ct%Qa+Qa),ct>wu?this._+="A"+e+","+e+",0,1,"+J+","+(n-v)+","+(r-T)+"A"+e+","+e+",0,1,"+J+","+(this._x1=N)+","+(this._y1=U):ct>Er&&(this._+="A"+e+","+e+",0,"+ +(ct>=$a)+","+J+","+(this._x1=n+e*Math.cos(a))+","+(this._y1=r+e*Math.sin(a))))},rect:function(n,r,e,i){this._+="M"+(this._x0=this._x1=+n)+","+(this._y0=this._y1=+r)+"h"+ +e+"v"+ +i+"h"+-e+"Z"},toString:function(){return this._}};const Au=ao;function Ta(n){return function(){return n}}function so(n){this._context=n}function Su(n){return new so(n)}function Eu(n){return n[0]}function Du(n){return n[1]}so.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(n,r){switch(n=+n,r=+r,this._point){case 0:this._point=1,this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 1:this._point=2;default:this._context.lineTo(n,r)}}};var oo=Math.PI;function co(n){return(1-Math.cos(oo*n))/2}var Ca=s(25922),lr=s(49194),Ja=s(73339),ku=(0,Ca.Z)("start","end","cancel","interrupt"),Iu=[];function Sa(n,r,e,i,a,o){var v=n.__transition;if(v){if(e in v)return}else n.__transition={};!function Ou(n,r,e){var a,i=n.__transition;function v(U){var J,ct,ot,Ct;if(1!==e.state)return N();for(J in i)if((Ct=i[J]).name===e.name){if(3===Ct.state)return(0,Ja.Z)(v);4===Ct.state?(Ct.state=6,Ct.timer.stop(),Ct.on.call("interrupt",n,n.__data__,Ct.index,Ct.group),delete i[J]):+J0)throw new Error("too late; already scheduled");return e}function cr(n,r){var e=qi(n,r);if(e.state>3)throw new Error("too late; already running");return e}function qi(n,r){var e=n.__transition;if(!e||!(e=e[r]))throw new Error("transition not found");return e}function vr(n,r){return n=+n,r=+r,function(e){return n*(1-e)+r*e}}var ia,ns,go,Ea,fo=180/Math.PI,es={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function mo(n,r,e,i,a,o){var v,T,N;return(v=Math.sqrt(n*n+r*r))&&(n/=v,r/=v),(N=n*e+r*i)&&(e-=n*N,i-=r*N),(T=Math.sqrt(e*e+i*i))&&(e/=T,i/=T,N/=T),n*i180?J+=360:J-U>180&&(U+=360),ot.push({i:ct.push(a(ct)+"rotate(",null,i)-2,x:vr(U,J)})):J&&ct.push(a(ct)+"rotate("+J+i)}(U.rotate,J.rotate,ct,ot),function T(U,J,ct,ot){U!==J?ot.push({i:ct.push(a(ct)+"skewX(",null,i)-2,x:vr(U,J)}):J&&ct.push(a(ct)+"skewX("+J+i)}(U.skewX,J.skewX,ct,ot),function N(U,J,ct,ot,Ct,It){if(U!==ct||J!==ot){var Ft=Ct.push(a(Ct)+"scale(",null,",",null,")");It.push({i:Ft-4,x:vr(U,ct)},{i:Ft-2,x:vr(J,ot)})}else(1!==ct||1!==ot)&&Ct.push(a(Ct)+"scale("+ct+","+ot+")")}(U.scaleX,U.scaleY,J.scaleX,J.scaleY,ct,ot),U=J=null,function(Ct){for(var _t,It=-1,Ft=ot.length;++It>8&15|r>>4&240,r>>4&15|240&r,(15&r)<<4|15&r,1):8===e?La(r>>24&255,r>>16&255,r>>8&255,(255&r)/255):4===e?La(r>>12&15|r>>8&240,r>>8&15|r>>4&240,r>>4&15|240&r,((15&r)<<4|15&r)/255):null):(r=zu.exec(n))?new Ui(r[1],r[2],r[3],1):(r=Hu.exec(n))?new Ui(255*r[1]/100,255*r[2]/100,255*r[3]/100,1):(r=Yu.exec(n))?La(r[1],r[2],r[3],r[4]):(r=Wu.exec(n))?La(255*r[1]/100,255*r[2]/100,255*r[3]/100,r[4]):(r=Xu.exec(n))?Ao(r[1],r[2]/100,r[3]/100,1):(r=$u.exec(n))?Ao(r[1],r[2]/100,r[3]/100,r[4]):xo.hasOwnProperty(n)?To(xo[n]):"transparent"===n?new Ui(NaN,NaN,NaN,0):null}function To(n){return new Ui(n>>16&255,n>>8&255,255&n,1)}function La(n,r,e,i){return i<=0&&(n=r=e=NaN),new Ui(n,r,e,i)}function ju(n){return n instanceof ra||(n=oa(n)),n?new Ui((n=n.rgb()).r,n.g,n.b,n.opacity):new Ui}function ka(n,r,e,i){return 1===arguments.length?ju(n):new Ui(n,r,e,i??1)}function Ui(n,r,e,i){this.r=+n,this.g=+r,this.b=+e,this.opacity=+i}function Co(){return"#"+as(this.r)+as(this.g)+as(this.b)}function wo(){var n=this.opacity;return(1===(n=isNaN(n)?1:Math.max(0,Math.min(1,n)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===n?")":", "+n+")")}function as(n){return((n=Math.max(0,Math.min(255,Math.round(n)||0)))<16?"0":"")+n.toString(16)}function Ao(n,r,e,i){return i<=0?n=r=e=NaN:e<=0||e>=1?n=r=NaN:r<=0&&(n=NaN),new rr(n,r,e,i)}function So(n){if(n instanceof rr)return new rr(n.h,n.s,n.l,n.opacity);if(n instanceof ra||(n=oa(n)),!n)return new rr;if(n instanceof rr)return n;var r=(n=n.rgb()).r/255,e=n.g/255,i=n.b/255,a=Math.min(r,e,i),o=Math.max(r,e,i),v=NaN,T=o-a,N=(o+a)/2;return T?(v=r===o?(e-i)/T+6*(e0&&N<1?0:v,new rr(v,T,N,n.opacity)}function rr(n,r,e,i){this.h=+n,this.s=+r,this.l=+e,this.opacity=+i}function ss(n,r,e){return 255*(n<60?r+(e-r)*n/60:n<180?e:n<240?r+(e-r)*(240-n)/60:r)}function Eo(n,r,e,i,a){var o=n*n,v=o*n;return((1-3*n+3*o-v)*r+(4-6*o+3*v)*e+(1+3*n+3*o-3*v)*i+v*a)/6}function Do(n){return function(){return n}}function ko(n,r){var e=r-n;return e?function Lo(n,r){return function(e){return n+e*r}}(n,e):Do(isNaN(n)?r:n)}rs(ra,oa,{copy:function(n){return Object.assign(new this.constructor,this,n)},displayable:function(){return this.rgb().displayable()},hex:yo,formatHex:yo,formatHsl:function Qu(){return So(this).formatHsl()},formatRgb:bo,toString:bo}),rs(Ui,ka,vo(ra,{brighter:function(n){return n=null==n?Da:Math.pow(Da,n),new Ui(this.r*n,this.g*n,this.b*n,this.opacity)},darker:function(n){return n=null==n?.7:Math.pow(.7,n),new Ui(this.r*n,this.g*n,this.b*n,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Co,formatHex:Co,formatRgb:wo,toString:wo})),rs(rr,function Ju(n,r,e,i){return 1===arguments.length?So(n):new rr(n,r,e,i??1)},vo(ra,{brighter:function(n){return n=null==n?Da:Math.pow(Da,n),new rr(this.h,this.s,this.l*n,this.opacity)},darker:function(n){return n=null==n?.7:Math.pow(.7,n),new rr(this.h,this.s,this.l*n,this.opacity)},rgb:function(){var n=this.h%360+360*(this.h<0),r=isNaN(n)||isNaN(this.s)?0:this.s,e=this.l,i=e+(e<.5?e:1-e)*r,a=2*e-i;return new Ui(ss(n>=240?n-240:n+120,a,i),ss(n,a,i),ss(n<120?n+240:n-120,a,i),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var n=this.opacity;return(1===(n=isNaN(n)?1:Math.max(0,Math.min(1,n)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===n?")":", "+n+")")}}));const Io=function n(r){var e=function eh(n){return 1==(n=+n)?ko:function(r,e){return e-r?function th(n,r,e){return n=Math.pow(n,e),r=Math.pow(r,e)-n,e=1/e,function(i){return Math.pow(n+i*r,e)}}(r,e,n):Do(isNaN(r)?e:r)}}(r);function i(a,o){var v=e((a=ka(a)).r,(o=ka(o)).r),T=e(a.g,o.g),N=e(a.b,o.b),U=ko(a.opacity,o.opacity);return function(J){return a.r=v(J),a.g=T(J),a.b=N(J),a.opacity=U(J),a+""}}return i.gamma=n,i}(1);function Oo(n){return function(r){var v,T,e=r.length,i=new Array(e),a=new Array(e),o=new Array(e);for(v=0;v=1?(e=1,r-1):Math.floor(e*r),a=n[i],o=n[i+1];return Eo((e-i/r)*r,i>0?n[i-1]:2*a-o,a,o,ie&&(o=r.slice(e,o),T[v]?T[v]+=o:T[++v]=o),(i=i[0])===(a=a[0])?T[v]?T[v]+=a:T[++v]=a:(T[++v]=null,N.push({i:v,x:vr(i,a)})),e=ls.lastIndex;return e=0&&(r=r.slice(0,e)),!r||"start"===r})}(r)?ts:cr;return function(){var v=o(this,n),T=v.on;T!==i&&(a=(i=T).copy()).on(r,e),v.on=a}}var Nh=na.prototype.constructor;function No(n){return function(){this.style.removeProperty(n)}}function Gh(n,r,e){return function(i){this.style.setProperty(n,r.call(this,i),e)}}function Uh(n,r,e){var i,a;function o(){var v=r.apply(this,arguments);return v!==a&&(i=(a=v)&&Gh(n,v,e)),i}return o._value=r,o}function Xh(n){return function(r){this.textContent=n.call(this,r)}}function $h(n){var r,e;function i(){var a=n.apply(this,arguments);return a!==e&&(r=(e=a)&&Xh(a)),r}return i._value=n,i}var Kh=0;function ur(n,r,e,i){this._groups=n,this._parents=r,this._name=e,this._id=i}function Po(){return++Kh}var Fr=na.prototype;ur.prototype=function qh(n){return na().transition(n)}.prototype={constructor:ur,select:function Oh(n){var r=this._name,e=this._id;"function"!=typeof n&&(n=bn(n));for(var i=this._groups,a=i.length,o=new Array(a),v=0;v2&&i.state<5,i.state=6,i.timer.stop(),i.on.call(a?"interrupt":"cancel",n,n.__data__,i.index,i.group),delete e[v]):o=!1;o&&delete n.__transition}}(this,n)})},na.prototype.transition=function nd(n){var r,e;n instanceof ur?(r=n._id,n=n._name):(r=Po(),(e=cs).time=(0,lr.zO)(),n=null==n?null:n+"");for(var i=this._groups,a=i.length,o=0;o"u"}function gd(n){if(Array.isArray(n)){for(var r=0,e=Array(n.length);r1&&void 0!==arguments[1]?arguments[1]:0;return{a:1,c:0,e:n,b:0,d:1,f:r}}function Ia(n,r){switch(arguments.length){case 0:break;case 1:this.range(n);break;default:this.range(r).domain(n)}return this}"function"==typeof Symbol&&Symbol,Math,Math,Math,Math;const Go=Symbol("implicit");function us(){var n=new Map,r=[],e=[],i=Go;function a(o){var v=o+"",T=n.get(v);if(!T){if(i!==Go)return i;n.set(v,T=r.push(o))}return e[(T-1)%e.length]}return a.domain=function(o){if(!arguments.length)return r.slice();r=[],n=new Map;for(const v of o){const T=v+"";n.has(T)||n.set(T,r.push(v))}return a},a.range=function(o){return arguments.length?(e=Array.from(o),a):e.slice()},a.unknown=function(o){return arguments.length?(i=o,a):i},a.copy=function(){return us(r,e).unknown(i)},Ia.apply(a,arguments),a}var Br=s(59695);function xd(n,r){var e;function i(){var a,v,o=e.length,T=0,N=0;for(a=0;a=(ct=(T+U)/2))?T=ct:U=ct,(_t=e>=(ot=(N+J)/2))?N=ot:J=ot,a=o,!(o=o[Vt=_t<<1|Ft]))return a[Vt]=v,n;if(Ct=+n._x.call(null,o.data),It=+n._y.call(null,o.data),r===Ct&&e===It)return v.next=o,a?a[Vt]=v:n._root=v,n;do{a=a?a[Vt]=new Array(4):n._root=new Array(4),(Ft=r>=(ct=(T+U)/2))?T=ct:U=ct,(_t=e>=(ot=(N+J)/2))?N=ot:J=ot}while((Vt=_t<<1|Ft)==(qt=(It>=ot)<<1|Ct>=ct));return a[qt]=o,a[Vt]=v,n}function Li(n,r,e,i,a){this.node=n,this.x0=r,this.y0=e,this.x1=i,this.y1=a}function Od(n){return n[0]}function Nd(n){return n[1]}function hs(n,r,e){var i=new ds(r??Od,e??Nd,NaN,NaN,NaN,NaN);return null==n?i:i.addAll(n)}function ds(n,r,e,i,a,o){this._x=n,this._y=r,this._x0=e,this._y0=i,this._x1=a,this._y1=o,this._root=void 0}function zo(n){for(var r={data:n.data},e=r;n=n.next;)e=e.next={data:n.data};return r}var ki=hs.prototype=ds.prototype;function Fd(n){return n.x+n.vx}function Rd(n){return n.y+n.vy}function Ho(n){var r,e,i=1,a=1;function o(){for(var N,J,ct,ot,Ct,It,Ft,U=r.length,_t=0;_tot+yn||DeCt+yn||gect.index){var Dn=ot-Ke.x-Ke.vx,Ln=Ct-Ke.y-Ke.vy,$n=Dn*Dn+Ln*Ln;$nN.r&&(N.r=N[U].r)}function T(){if(r){var N,J,U=r.length;for(e=new Array(U),N=0;NJ&&(J=a),oct&&(ct=o));if(N>J||U>ct)return this;for(this.cover(N,U).cover(J,ct),e=0;en||n>=a||i>r||r>=o;)switch(U=(rJ||(T=It.y0)>ct||(N=It.x1)=Vt)<<1|n>=_t)&&(It=ot[ot.length-1],ot[ot.length-1]=ot[ot.length-1-Ft],ot[ot.length-1-Ft]=It)}else{var qt=n-+this._x.call(null,Ct.data),$t=r-+this._y.call(null,Ct.data),ye=qt*qt+$t*$t;if(ye=(ot=(v+N)/2))?v=ot:N=ot,(Ft=ct>=(Ct=(T+U)/2))?T=Ct:U=Ct,r=e,!(e=e[_t=Ft<<1|It]))return this;if(!e.length)break;(r[_t+1&3]||r[_t+2&3]||r[_t+3&3])&&(i=r,Vt=_t)}for(;e.data!==n;)if(a=e,!(e=e.next))return this;return(o=e.next)&&delete e.next,a?(o?a.next=o:delete a.next,this):r?(o?r[_t]=o:delete r[_t],(e=r[0]||r[1]||r[2]||r[3])&&e===(r[3]||r[2]||r[1]||r[0])&&!e.length&&(i?i[Vt]=e:this._root=e),this):(this._root=o,this)},ki.removeAll=function Ed(n){for(var r=0,e=n.length;r1?(null==Ft?T.remove(It):T.set(It,Ct(Ft)),r):T.get(It)},find:function(It,Ft,_t){var $t,ye,De,ge,Ke,Vt=0,qt=n.length;for(null==_t?_t=1/0:_t*=_t,Vt=0;Vt1?(U.on(It,Ft),r):U.on(It)}}}function Jo(){var n,r,e,a,i=ti(-30),o=1,v=1/0,T=.81;function N(ot){var Ct,It=n.length,Ft=hs(n,Ud,zd).visitAfter(J);for(e=ot,Ct=0;Ct=v)){(ot.data!==r||ot.next)&&(0===_t&&($t+=(_t=xr())*_t),0===Vt&&($t+=(Vt=xr())*Vt),$t{return(n=Zr||(Zr={})).Both="both",n.Horizontal="horizontal",n.Vertical="vertical",Zr;var n})(),Vr=(()=>{return(n=Vr||(Vr={})).UpperLeft="UpperLeft",n.UpperRight="UpperRight",Vr;var n})();function Tp(n,r,e){e=e||{};let i,a,o,v=null,T=0;function N(){T=!1===e.leading?0:+new Date,v=null,o=n.apply(i,a)}return function(...U){const J=+new Date;!T&&!1===e.leading&&(T=J);const ct=r-(J-T);return i=this,a=U,ct<=0?(clearTimeout(v),v=null,T=J,o=n.apply(i,a)):!v&&!1!==e.trailing&&(v=setTimeout(N,ct)),o}}function Cp(n,r){return function(i,a,o){return{configurable:!0,enumerable:o.enumerable,get:function(){return Object.defineProperty(this,a,{configurable:!0,enumerable:o.enumerable,value:Tp(o.value,n,r)}),this[a]}}}}const qo=[{name:"vivid",selectable:!0,group:"Ordinal",domain:["#647c8a","#3f51b5","#2196f3","#00b862","#afdf0a","#a7b61a","#f3e562","#ff9800","#ff5722","#ff4514"]},{name:"natural",selectable:!0,group:"Ordinal",domain:["#bf9d76","#e99450","#d89f59","#f2dfa7","#a5d7c6","#7794b1","#afafaf","#707160","#ba9383","#d9d5c3"]},{name:"cool",selectable:!0,group:"Ordinal",domain:["#a8385d","#7aa3e5","#a27ea8","#aae3f5","#adcded","#a95963","#8796c0","#7ed3ed","#50abcc","#ad6886"]},{name:"fire",selectable:!0,group:"Ordinal",domain:["#ff3d00","#bf360c","#ff8f00","#ff6f00","#ff5722","#e65100","#ffca28","#ffab00"]},{name:"solar",selectable:!0,group:"Continuous",domain:["#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00"]},{name:"air",selectable:!0,group:"Continuous",domain:["#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b"]},{name:"aqua",selectable:!0,group:"Continuous",domain:["#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064"]},{name:"flame",selectable:!1,group:"Ordinal",domain:["#A10A28","#D3342D","#EF6D49","#FAAD67","#FDDE90","#DBED91","#A9D770","#6CBA67","#2C9653","#146738"]},{name:"ocean",selectable:!1,group:"Ordinal",domain:["#1D68FB","#33C0FC","#4AFFFE","#AFFFFF","#FFFC63","#FDBD2D","#FC8A25","#FA4F1E","#FA141B","#BA38D1"]},{name:"forest",selectable:!1,group:"Ordinal",domain:["#55C22D","#C1F33D","#3CC099","#AFFFFF","#8CFC9D","#76CFFA","#BA60FB","#EE6490","#C42A1C","#FC9F32"]},{name:"horizon",selectable:!1,group:"Ordinal",domain:["#2597FB","#65EBFD","#99FDD0","#FCEE4B","#FEFCFA","#FDD6E3","#FCB1A8","#EF6F7B","#CB96E8","#EFDEE0"]},{name:"neons",selectable:!1,group:"Ordinal",domain:["#FF3333","#FF33FF","#CC33FF","#0000FF","#33CCFF","#33FFFF","#33FF66","#CCFF33","#FFCC00","#FF6600"]},{name:"picnic",selectable:!1,group:"Ordinal",domain:["#FAC51D","#66BD6D","#FAA026","#29BB9C","#E96B56","#55ACD2","#B7332F","#2C83C9","#9166B8","#92E7E8"]},{name:"night",selectable:!1,group:"Ordinal",domain:["#2B1B5A","#501356","#183356","#28203F","#391B3C","#1E2B3C","#120634","#2D0432","#051932","#453080","#75267D","#2C507D","#4B3880","#752F7D","#35547D"]},{name:"nightLights",selectable:!1,group:"Ordinal",domain:["#4e31a5","#9c25a7","#3065ab","#57468b","#904497","#46648b","#32118d","#a00fb3","#1052a2","#6e51bd","#b63cc3","#6c97cb","#8671c1","#b455be","#7496c3"]}];class wp{constructor(r,e,i){"string"==typeof r&&(r=qo.find(a=>a.name===r)),this.colorDomain=r.domain,this.domain=e,this.customColors=i,this.scale=this.generateColorScheme(r,this.domain)}generateColorScheme(r,e){return"string"==typeof r&&(r=qo.find(i=>i.name===r)),us().range(r.domain).domain(e)}getColor(r){if(null==r)throw new Error("Value can not be null");if("function"==typeof this.customColors)return this.customColors(r);const e=r.toString();let i;return this.customColors&&this.customColors.length>0&&(i=this.customColors.find(a=>a.name.toLowerCase()===e.toLowerCase())),i?i.value:this.scale(r)}}let Sp=(()=>{class n{constructor(e,i){this.element=e,this.zone=i,this.visible=new t.vpe,this.isVisible=!1,this.runCheck()}destroy(){clearTimeout(this.timeout)}onVisibilityChange(){this.zone.run(()=>{this.isVisible=!0,this.visible.emit(!0)})}runCheck(){const e=()=>{if(!this.element)return;const{offsetHeight:i,offsetWidth:a}=this.element.nativeElement;i&&a?(clearTimeout(this.timeout),this.onVisibilityChange()):(clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>e(),100)}))};this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>e())})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(t.R0b))},n.\u0275dir=t.lG2({type:n,selectors:[["visibility-observer"]],outputs:{visible:"visible"}}),n})();var Gr=(()=>{return(n=Gr||(Gr={})).LEFT_TO_RIGHT="LR",n.RIGHT_TO_LEFT="RL",n.TOP_TO_BOTTOM="TB",n.BOTTOM_TO_TOM="BT",Gr;var n})();function Ur(n){return"string"==typeof n?{id:n,x:0,y:0}:n}function el(n,r){return"number"==typeof r?n[r]:r}const nl={dagre:class Ep{constructor(){this.defaultSettings={orientation:Gr.LEFT_TO_RIGHT,marginX:20,marginY:20,edgePadding:100,rankPadding:100,nodePadding:50,multigraph:!0,compound:!0},this.settings={}}run(r){this.createDagreGraph(r),Br.layout(this.dagreGraph),r.edgeLabels=this.dagreGraph._edgeLabels;for(const e in this.dagreGraph._nodes){const i=this.dagreGraph._nodes[e],a=r.nodes.find(o=>o.id===i.id);a.position={x:i.x,y:i.y},a.dimension={width:i.width,height:i.height}}return r}updateEdge(r,e){const i=r.nodes.find(N=>N.id===e.source),a=r.nodes.find(N=>N.id===e.target),o=i.position.y<=a.position.y?-1:1;return e.points=[{x:i.position.x,y:i.position.y-o*(i.dimension.height/2)},{x:a.position.x,y:a.position.y+o*(a.dimension.height/2)}],r}createDagreGraph(r){const e=Object.assign({},this.defaultSettings,this.settings);this.dagreGraph=new Br.graphlib.Graph({compound:e.compound,multigraph:e.multigraph}),this.dagreGraph.setGraph({rankdir:e.orientation,marginx:e.marginX,marginy:e.marginY,edgesep:e.edgePadding,ranksep:e.rankPadding,nodesep:e.nodePadding,align:e.align,acyclicer:e.acyclicer,ranker:e.ranker,multigraph:e.multigraph,compound:e.compound}),this.dagreGraph.setDefaultEdgeLabel(()=>({})),this.dagreNodes=r.nodes.map(i=>{const a=Object.assign({},i);return a.width=i.dimension.width,a.height=i.dimension.height,a.x=i.position.x,a.y=i.position.y,a}),this.dagreEdges=r.edges.map(i=>{const a=Object.assign({},i);return a.id||(a.id=hr()),a});for(const i of this.dagreNodes)i.width||(i.width=20),i.height||(i.height=30),this.dagreGraph.setNode(i.id,i);for(const i of this.dagreEdges)e.multigraph?this.dagreGraph.setEdge(i.source,i.target,i,i.id):this.dagreGraph.setEdge(i.source,i.target);return this.dagreGraph}},dagreCluster:class Dp{constructor(){this.defaultSettings={orientation:Gr.LEFT_TO_RIGHT,marginX:20,marginY:20,edgePadding:100,rankPadding:100,nodePadding:50,multigraph:!0,compound:!0},this.settings={}}run(r){this.createDagreGraph(r),Br.layout(this.dagreGraph),r.edgeLabels=this.dagreGraph._edgeLabels;const e=i=>{const a=this.dagreGraph._nodes[i.id];return{...i,position:{x:a.x,y:a.y},dimension:{width:a.width,height:a.height}}};return r.clusters=(r.clusters||[]).map(e),r.nodes=r.nodes.map(e),r}updateEdge(r,e){const i=r.nodes.find(N=>N.id===e.source),a=r.nodes.find(N=>N.id===e.target),o=i.position.y<=a.position.y?-1:1;return e.points=[{x:i.position.x,y:i.position.y-o*(i.dimension.height/2)},{x:a.position.x,y:a.position.y+o*(a.dimension.height/2)}],r}createDagreGraph(r){const e=Object.assign({},this.defaultSettings,this.settings);this.dagreGraph=new Br.graphlib.Graph({compound:e.compound,multigraph:e.multigraph}),this.dagreGraph.setGraph({rankdir:e.orientation,marginx:e.marginX,marginy:e.marginY,edgesep:e.edgePadding,ranksep:e.rankPadding,nodesep:e.nodePadding,align:e.align,acyclicer:e.acyclicer,ranker:e.ranker,multigraph:e.multigraph,compound:e.compound}),this.dagreGraph.setDefaultEdgeLabel(()=>({})),this.dagreNodes=r.nodes.map(i=>{const a=Object.assign({},i);return a.width=i.dimension.width,a.height=i.dimension.height,a.x=i.position.x,a.y=i.position.y,a}),this.dagreClusters=r.clusters||[],this.dagreEdges=r.edges.map(i=>{const a=Object.assign({},i);return a.id||(a.id=hr()),a});for(const i of this.dagreNodes)this.dagreGraph.setNode(i.id,i);for(const i of this.dagreClusters)this.dagreGraph.setNode(i.id,i),i.childNodeIds.forEach(a=>{this.dagreGraph.setParent(a,i.id)});for(const i of this.dagreEdges)e.multigraph?this.dagreGraph.setEdge(i.source,i.target,i,i.id):this.dagreGraph.setEdge(i.source,i.target);return this.dagreGraph}},dagreNodesOnly:class kp{constructor(){this.defaultSettings={orientation:Gr.LEFT_TO_RIGHT,marginX:20,marginY:20,edgePadding:100,rankPadding:100,nodePadding:50,curveDistance:20,multigraph:!0,compound:!0},this.settings={}}run(r){this.createDagreGraph(r),Br.layout(this.dagreGraph),r.edgeLabels=this.dagreGraph._edgeLabels;for(const e in this.dagreGraph._nodes){const i=this.dagreGraph._nodes[e],a=r.nodes.find(o=>o.id===i.id);a.position={x:i.x,y:i.y},a.dimension={width:i.width,height:i.height}}for(const e of r.edges)this.updateEdge(r,e);return r}updateEdge(r,e){const i=r.nodes.find(It=>It.id===e.source),a=r.nodes.find(It=>It.id===e.target),o="BT"===this.settings.orientation||"TB"===this.settings.orientation?"y":"x",v="y"===o?"x":"y",T="y"===o?"height":"width",N=i.position[o]<=a.position[o]?-1:1,U={[v]:i.position[v],[o]:i.position[o]-N*(i.dimension[T]/2)},J={[v]:a.position[v],[o]:a.position[o]+N*(a.dimension[T]/2)},ct=this.settings.curveDistance||this.defaultSettings.curveDistance;e.points=[U,{[v]:U[v],[o]:U[o]-N*ct},{[v]:J[v],[o]:J[o]+N*ct},J];const Ct=r.edgeLabels[`${e.source}\x01${e.target}\x01\0`];return Ct&&(Ct.points=e.points),r}createDagreGraph(r){const e=Object.assign({},this.defaultSettings,this.settings);this.dagreGraph=new Br.graphlib.Graph({compound:e.compound,multigraph:e.multigraph}),this.dagreGraph.setGraph({rankdir:e.orientation,marginx:e.marginX,marginy:e.marginY,edgesep:e.edgePadding,ranksep:e.rankPadding,nodesep:e.nodePadding,align:e.align,acyclicer:e.acyclicer,ranker:e.ranker,multigraph:e.multigraph,compound:e.compound}),this.dagreGraph.setDefaultEdgeLabel(()=>({})),this.dagreNodes=r.nodes.map(i=>{const a=Object.assign({},i);return a.width=i.dimension.width,a.height=i.dimension.height,a.x=i.position.x,a.y=i.position.y,a}),this.dagreEdges=r.edges.map(i=>{const a=Object.assign({},i);return a.id||(a.id=hr()),a});for(const i of this.dagreNodes)i.width||(i.width=20),i.height||(i.height=30),this.dagreGraph.setNode(i.id,i);for(const i of this.dagreEdges)e.multigraph?this.dagreGraph.setEdge(i.source,i.target,i,i.id):this.dagreGraph.setEdge(i.source,i.target);return this.dagreGraph}},d3ForceDirected:class Ip{constructor(){this.defaultSettings={force:jo().force("charge",Jo().strength(-150)).force("collide",Ho(5)),forceLink:Qo().id(r=>r.id).distance(()=>100)},this.settings={},this.outputGraph$=new Pn.x}run(r){return this.inputGraph=r,this.d3Graph={nodes:[...this.inputGraph.nodes.map(e=>({...e}))],edges:[...this.inputGraph.edges.map(e=>({...e}))]},this.outputGraph={nodes:[],edges:[],edgeLabels:[]},this.outputGraph$.next(this.outputGraph),this.settings=Object.assign({},this.defaultSettings,this.settings),this.settings.force&&this.settings.force.nodes(this.d3Graph.nodes).force("link",this.settings.forceLink.links(this.d3Graph.edges)).alpha(.5).restart().on("tick",()=>{this.outputGraph$.next(this.d3GraphToOutputGraph(this.d3Graph))}),this.outputGraph$.asObservable()}updateEdge(r,e){const i=Object.assign({},this.defaultSettings,this.settings);return i.force&&i.force.nodes(this.d3Graph.nodes).force("link",i.forceLink.links(this.d3Graph.edges)).alpha(.5).restart().on("tick",()=>{this.outputGraph$.next(this.d3GraphToOutputGraph(this.d3Graph))}),this.outputGraph$.asObservable()}d3GraphToOutputGraph(r){return this.outputGraph.nodes=this.d3Graph.nodes.map(e=>({...e,id:e.id||hr(),position:{x:e.x,y:e.y},dimension:{width:e.dimension&&e.dimension.width||20,height:e.dimension&&e.dimension.height||20},transform:`translate(${e.x-(e.dimension&&e.dimension.width||20)/2||0}, ${e.y-(e.dimension&&e.dimension.height||20)/2||0})`})),this.outputGraph.edges=this.d3Graph.edges.map(e=>({...e,source:Ur(e.source).id,target:Ur(e.target).id,points:[{x:Ur(e.source).x,y:Ur(e.source).y},{x:Ur(e.target).x,y:Ur(e.target).y}]})),this.outputGraph.edgeLabels=this.outputGraph.edges,this.outputGraph}onDragStart(r,e){this.settings.force.alphaTarget(.3).restart();const i=this.d3Graph.nodes.find(a=>a.id===r.id);!i||(this.draggingStart={x:e.x-i.x,y:e.y-i.y},i.fx=e.x-this.draggingStart.x,i.fy=e.y-this.draggingStart.y)}onDrag(r,e){if(!r)return;const i=this.d3Graph.nodes.find(a=>a.id===r.id);!i||(i.fx=e.x-this.draggingStart.x,i.fy=e.y-this.draggingStart.y)}onDragEnd(r,e){if(!r)return;const i=this.d3Graph.nodes.find(a=>a.id===r.id);!i||(this.settings.force.alphaTarget(0),i.fx=void 0,i.fy=void 0)}},colaForceDirected:class Op{constructor(){this.defaultSettings={force:(0,Qd.d3adaptor)({...x,...c,..._}).linkDistance(150).avoidOverlaps(!0),viewDimensions:{width:600,height:600}},this.settings={},this.outputGraph$=new Pn.x}run(r){return this.inputGraph=r,this.inputGraph.clusters||(this.inputGraph.clusters=[]),this.internalGraph={nodes:[...this.inputGraph.nodes.map(e=>({...e,width:e.dimension?e.dimension.width:20,height:e.dimension?e.dimension.height:20}))],groups:[...this.inputGraph.clusters.map(e=>({padding:5,groups:e.childNodeIds.map(i=>this.inputGraph.clusters.findIndex(a=>a.id===i)).filter(i=>i>=0),leaves:e.childNodeIds.map(i=>this.inputGraph.nodes.findIndex(a=>a.id===i)).filter(i=>i>=0)}))],links:[...this.inputGraph.edges.map(e=>{const i=this.inputGraph.nodes.findIndex(o=>e.source===o.id),a=this.inputGraph.nodes.findIndex(o=>e.target===o.id);if(-1!==i&&-1!==a)return{...e,source:i,target:a}}).filter(e=>!!e)],groupLinks:[...this.inputGraph.edges.map(e=>{const i=this.inputGraph.nodes.findIndex(o=>e.source===o.id),a=this.inputGraph.nodes.findIndex(o=>e.target===o.id);if(!(i>=0&&a>=0))return e}).filter(e=>!!e)]},this.outputGraph={nodes:[],clusters:[],edges:[],edgeLabels:[]},this.outputGraph$.next(this.outputGraph),this.settings=Object.assign({},this.defaultSettings,this.settings),this.settings.force&&(this.settings.force=this.settings.force.nodes(this.internalGraph.nodes).groups(this.internalGraph.groups).links(this.internalGraph.links).alpha(.5).on("tick",()=>{this.settings.onTickListener&&this.settings.onTickListener(this.internalGraph),this.outputGraph$.next(this.internalGraphToOutputGraph(this.internalGraph))}),this.settings.viewDimensions&&(this.settings.force=this.settings.force.size([this.settings.viewDimensions.width,this.settings.viewDimensions.height])),this.settings.forceModifierFn&&(this.settings.force=this.settings.forceModifierFn(this.settings.force)),this.settings.force.start()),this.outputGraph$.asObservable()}updateEdge(r,e){const i=Object.assign({},this.defaultSettings,this.settings);return i.force&&i.force.start(),this.outputGraph$.asObservable()}internalGraphToOutputGraph(r){return this.outputGraph.nodes=r.nodes.map(e=>({...e,id:e.id||hr(),position:{x:e.x,y:e.y},dimension:{width:e.dimension&&e.dimension.width||20,height:e.dimension&&e.dimension.height||20},transform:`translate(${e.x-(e.dimension&&e.dimension.width||20)/2||0}, ${e.y-(e.dimension&&e.dimension.height||20)/2||0})`})),this.outputGraph.edges=r.links.map(e=>{const i=el(r.nodes,e.source),a=el(r.nodes,e.target);return{...e,source:i.id,target:a.id,points:[i.bounds.rayIntersection(a.bounds.cx(),a.bounds.cy()),a.bounds.rayIntersection(i.bounds.cx(),i.bounds.cy())]}}).concat(r.groupLinks.map(e=>{const i=r.nodes.find(T=>T.id===e.source),a=r.nodes.find(T=>T.id===e.target),o=i||r.groups.find(T=>T.id===e.source),v=a||r.groups.find(T=>T.id===e.target);return{...e,source:o.id,target:v.id,points:[o.bounds.rayIntersection(v.bounds.cx(),v.bounds.cy()),v.bounds.rayIntersection(o.bounds.cx(),o.bounds.cy())]}})),this.outputGraph.clusters=r.groups.map((e,i)=>({...this.inputGraph.clusters[i],dimension:{width:e.bounds?e.bounds.width():20,height:e.bounds?e.bounds.height():20},position:{x:e.bounds?e.bounds.x+e.bounds.width()/2:0,y:e.bounds?e.bounds.y+e.bounds.height()/2:0}})),this.outputGraph.edgeLabels=this.outputGraph.edges,this.outputGraph}onDragStart(r,e){const i=this.outputGraph.nodes.findIndex(o=>o.id===r.id),a=this.internalGraph.nodes[i];!a||(this.draggingStart={x:a.x-e.x,y:a.y-e.y},a.fixed=1,this.settings.force.start())}onDrag(r,e){if(!r)return;const i=this.outputGraph.nodes.findIndex(o=>o.id===r.id),a=this.internalGraph.nodes[i];!a||(a.x=this.draggingStart.x+e.x,a.y=this.draggingStart.y+e.y)}onDragEnd(r,e){if(!r)return;const i=this.outputGraph.nodes.findIndex(o=>o.id===r.id),a=this.internalGraph.nodes[i];!a||(a.fixed=0)}}};let il=(()=>{class n{getLayout(e){if(nl[e])return new nl[e];throw new Error(`Unknown layout type '${e}'`)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),Mp=(()=>{class n{constructor(){this.mouseWheelUp=new t.vpe,this.mouseWheelDown=new t.vpe}onMouseWheelChrome(e){this.mouseWheelFunc(e)}onMouseWheelFirefox(e){this.mouseWheelFunc(e)}onWheel(e){this.mouseWheelFunc(e)}onMouseWheelIE(e){this.mouseWheelFunc(e)}mouseWheelFunc(e){window.event&&(e=window.event);const i=Math.max(-1,Math.min(1,e.wheelDelta||-e.detail||e.deltaY||e.deltaX)),o=e.wheelDelta?i<0:i>0;(e.wheelDelta?i>0:i<0)?this.mouseWheelUp.emit(e):o&&this.mouseWheelDown.emit(e),e.returnValue=!1,e.preventDefault&&e.preventDefault()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=t.lG2({type:n,selectors:[["","mouseWheel",""]],hostBindings:function(e,i){1&e&&t.NdJ("mousewheel",function(o){return i.onMouseWheelChrome(o)})("DOMMouseScroll",function(o){return i.onMouseWheelFirefox(o)})("wheel",function(o){return i.onWheel(o)})("onmousewheel",function(o){return i.onMouseWheelIE(o)})},outputs:{mouseWheelUp:"mouseWheelUp",mouseWheelDown:"mouseWheelDown"}}),n})(),Np=(()=>{class n{constructor(e,i,a,o){this.el=e,this.zone=i,this.cd=a,this.layoutService=o,this.nodes=[],this.clusters=[],this.links=[],this.activeEntries=[],this.draggingEnabled=!0,this.panningEnabled=!0,this.panningAxis=Zr.Both,this.enableZoom=!0,this.zoomSpeed=.1,this.minZoomLevel=.1,this.maxZoomLevel=4,this.autoZoom=!1,this.panOnZoom=!0,this.animate=!1,this.autoCenter=!1,this.enableTrackpadSupport=!1,this.showMiniMap=!1,this.miniMapMaxWidth=100,this.miniMapPosition=Vr.UpperRight,this.scheme="cool",this.animations=!0,this.select=new t.vpe,this.activate=new t.vpe,this.deactivate=new t.vpe,this.zoomChange=new t.vpe,this.clickHandler=new t.vpe,this.isMouseMoveCalled=!1,this.graphSubscription=new Fo.w0,this.subscriptions=[],this.isPanning=!1,this.isDragging=!1,this.initialized=!1,this.graphDims={width:0,height:0},this._oldLinks=[],this.oldNodes=new Set,this.oldClusters=new Set,this.transformationMatrix={a:1,c:0,e:0,b:0,d:1,f:0},this._touchLastX=null,this._touchLastY=null,this.minimapScaleCoefficient=3,this.minimapOffsetX=0,this.minimapOffsetY=0,this.isMinimapPanning=!1,this.groupResultsBy=v=>v.label}get zoomLevel(){return this.transformationMatrix.a}set zoomLevel(e){this.zoomTo(Number(e))}get panOffsetX(){return this.transformationMatrix.e}set panOffsetX(e){this.panTo(Number(e),null)}get panOffsetY(){return this.transformationMatrix.f}set panOffsetY(e){this.panTo(null,Number(e))}ngOnInit(){this.update$&&this.subscriptions.push(this.update$.subscribe(()=>{this.update()})),this.center$&&this.subscriptions.push(this.center$.subscribe(()=>{this.center()})),this.zoomToFit$&&this.subscriptions.push(this.zoomToFit$.subscribe(()=>{this.zoomToFit()})),this.panToNode$&&this.subscriptions.push(this.panToNode$.subscribe(e=>{this.panToNodeId(e)})),this.minimapClipPathId=`minimapClip${hr()}`}ngOnChanges(e){this.basicUpdate();const{layoutSettings:a}=e;this.setLayout(this.layout),a&&this.setLayoutSettings(this.layoutSettings),this.update()}setLayout(e){this.initialized=!1,e||(e="dagre"),"string"==typeof e&&(this.layout=this.layoutService.getLayout(e),this.setLayoutSettings(this.layoutSettings))}setLayoutSettings(e){this.layout&&"string"!=typeof this.layout&&(this.layout.settings=e)}ngOnDestroy(){this.unbindEvents(),this.visibilityObserver&&(this.visibilityObserver.visible.unsubscribe(),this.visibilityObserver.destroy());for(const e of this.subscriptions)e.unsubscribe();this.subscriptions=null}ngAfterViewInit(){this.bindWindowResizeEvent(),this.visibilityObserver=new Sp(this.el,this.zone),this.visibilityObserver.visible.subscribe(this.update.bind(this)),setTimeout(()=>this.update())}update(){this.basicUpdate(),this.curve||(this.curve=Cu.beta(1)),this.zone.run(()=>{this.dims=function Ap({width:n,height:r}){let e=n,i=r;return e=Math.max(0,e),i=Math.max(0,i),{width:Math.floor(e),height:Math.floor(i)}}({width:this.width,height:this.height}),this.seriesDomain=this.getSeriesDomain(),this.setColors(),this.createGraph(),this.updateTransform(),this.initialized=!0})}createGraph(){this.graphSubscription.unsubscribe(),this.graphSubscription=new Fo.w0;const e=i=>(i.meta||(i.meta={}),i.id||(i.id=hr()),i.dimension?i.meta.forceDimensions=void 0===i.meta.forceDimensions||i.meta.forceDimensions:(i.dimension={width:this.nodeWidth?this.nodeWidth:30,height:this.nodeHeight?this.nodeHeight:30},i.meta.forceDimensions=!1),i.position={x:0,y:0},i.data=i.data?i.data:{},i);this.graph={nodes:this.nodes.length>0?[...this.nodes].map(e):[],clusters:this.clusters&&this.clusters.length>0?[...this.clusters].map(e):[],edges:this.links.length>0?[...this.links].map(i=>(i.id||(i.id=hr()),i)):[]},requestAnimationFrame(()=>this.draw())}draw(){if(!this.layout||"string"==typeof this.layout)return;this.applyNodeDimensions();const e=this.layout.run(this.graph),i=e instanceof ut.y?e:(0,yt.of)(e);this.graphSubscription.add(i.subscribe(a=>{this.graph=a,this.tick()})),0!==this.graph.nodes.length&&i.pipe((0,rd.P)()).subscribe(()=>this.applyNodeDimensions())}tick(){const e=new Set;this.graph.nodes.map(o=>{o.transform=`translate(${o.position.x-o.dimension.width/2||0}, ${o.position.y-o.dimension.height/2||0})`,o.data||(o.data={}),o.data.color=this.colors.getColor(this.groupResultsBy(o)),e.add(o.id)});const i=new Set;(this.graph.clusters||[]).map(o=>{o.transform=`translate(${o.position.x-o.dimension.width/2||0}, ${o.position.y-o.dimension.height/2||0})`,o.data||(o.data={}),o.data.color=this.colors.getColor(this.groupResultsBy(o)),i.add(o.id)}),setTimeout(()=>{this.oldNodes=e,this.oldClusters=i},500);const a=[];for(const o in this.graph.edgeLabels){const v=this.graph.edgeLabels[o],T=o.replace(/[^\w-]*/g,""),N=this.layout&&"string"!=typeof this.layout&&this.layout.settings&&this.layout.settings.multigraph;let U=this._oldLinks.find(N?Ft=>`${Ft.source}${Ft.target}${Ft.id}`===T:Ft=>`${Ft.source}${Ft.target}`===T);const J=this.graph.edges.find(N?Ft=>`${Ft.source}${Ft.target}${Ft.id}`===T:Ft=>`${Ft.source}${Ft.target}`===T);U?U.data&&J&&J.data&&JSON.stringify(U.data)!==JSON.stringify(J.data)&&(U.data=J.data):U=J||v,U.oldLine=U.line;const ct=v.points,ot=this.generateLine(ct),Ct=Object.assign({},U);Ct.line=ot,Ct.points=ct,this.updateMidpointOnEdge(Ct,ct);const It=ct[Math.floor(ct.length/2)];It&&(Ct.textTransform=`translate(${It.x||0},${It.y||0})`),Ct.textAngle=0,Ct.oldLine||(Ct.oldLine=Ct.line),this.calcDominantBaseline(Ct),a.push(Ct)}this.graph.edges=a,this.graph.edges&&(this._oldLinks=this.graph.edges.map(o=>{const v=Object.assign({},o);return v.oldLine=o.line,v})),this.updateMinimap(),this.autoZoom&&this.zoomToFit(),this.autoCenter&&this.center(),requestAnimationFrame(()=>this.redrawLines()),this.cd.markForCheck()}getMinimapTransform(){switch(this.miniMapPosition){case Vr.UpperLeft:return"";case Vr.UpperRight:return"translate("+(this.dims.width-this.graphDims.width/this.minimapScaleCoefficient)+",0)";default:return""}}updateGraphDims(){let e=1/0,i=-1/0,a=1/0,o=-1/0;for(let v=0;vi?T.position.x+T.dimension.width:i,o=T.position.y+T.dimension.height>o?T.position.y+T.dimension.height:o}e-=100,a-=100,i+=100,o+=100,this.graphDims.width=i-e,this.graphDims.height=o-a,this.minimapOffsetX=e,this.minimapOffsetY=a}updateMinimap(){this.graph.nodes&&this.graph.nodes.length&&(this.updateGraphDims(),this.miniMapMaxWidth&&(this.minimapScaleCoefficient=this.graphDims.width/this.miniMapMaxWidth),this.miniMapMaxHeight&&(this.minimapScaleCoefficient=Math.max(this.minimapScaleCoefficient,this.graphDims.height/this.miniMapMaxHeight)),this.minimapTransform=this.getMinimapTransform())}applyNodeDimensions(){this.nodeElements&&this.nodeElements.length&&this.nodeElements.map(e=>{const i=e.nativeElement,a=this.graph.nodes.find(v=>v.id===i.id);if(!a)return;let o;try{if(o=i.getBBox(),!o.width||!o.height)return}catch{return}if(a.dimension.height=this.nodeHeight?a.dimension.height&&a.meta.forceDimensions?a.dimension.height:this.nodeHeight:a.dimension.height&&a.meta.forceDimensions?a.dimension.height:o.height,this.nodeMaxHeight&&(a.dimension.height=Math.max(a.dimension.height,this.nodeMaxHeight)),this.nodeMinHeight&&(a.dimension.height=Math.min(a.dimension.height,this.nodeMinHeight)),this.nodeWidth)a.dimension.width=a.dimension.width&&a.meta.forceDimensions?a.dimension.width:this.nodeWidth;else if(i.getElementsByTagName("text").length){let v;try{for(const T of i.getElementsByTagName("text")){const N=T.getBBox();v?(N.width>v.width&&(v.width=N.width),N.height>v.height&&(v.height=N.height)):v=N}}catch{return}a.dimension.width=a.dimension.width&&a.meta.forceDimensions?a.dimension.width:v.width+20}else a.dimension.width=a.dimension.width&&a.meta.forceDimensions?a.dimension.width:o.width;this.nodeMaxWidth&&(a.dimension.width=Math.max(a.dimension.width,this.nodeMaxWidth)),this.nodeMinWidth&&(a.dimension.width=Math.min(a.dimension.width,this.nodeMinWidth))})}redrawLines(e=this.animate){this.linkElements.map(i=>{const a=this.graph.edges.find(o=>o.id===i.nativeElement.id);a&&(no(i.nativeElement).select(".line").attr("d",a.oldLine).transition().ease(co).duration(e?500:0).attr("d",a.line),no(this.el.nativeElement).select(`#${a.id}`).attr("d",a.oldTextPath).transition().ease(co).duration(e?500:0).attr("d",a.textPath),this.updateMidpointOnEdge(a,a.points))})}calcDominantBaseline(e){const i=e.points[0],a=e.points[e.points.length-1];e.oldTextPath=e.textPath,a.xa.x).y(a=>a.y).curve(this.curve)(e)}onZoom(e,i){if(this.enableTrackpadSupport&&!e.ctrlKey)return void this.pan(-1*e.deltaX,-1*e.deltaY);const a=1+("in"===i?this.zoomSpeed:-this.zoomSpeed),o=this.zoomLevel*a;if(!(o<=this.minZoomLevel||o>=this.maxZoomLevel)&&this.enableZoom)if(!0===this.panOnZoom&&e){const v=e.clientX,T=e.clientY,N=this.el.nativeElement.querySelector("svg"),U=N.querySelector("g.chart"),J=N.createSVGPoint();J.x=v,J.y=T;const ct=J.matrixTransform(U.getScreenCTM().inverse());this.pan(ct.x,ct.y,!0),this.zoom(a),this.pan(-ct.x,-ct.y,!0)}else this.zoom(a)}pan(e,i,a=!1){const o=a?1:this.zoomLevel;this.transformationMatrix=la(this.transformationMatrix,Vo(e/o,i/o)),this.updateTransform()}panTo(e,i){null==e||isNaN(e)||null==i||isNaN(i)||(this.transformationMatrix=la(this.transformationMatrix,Vo((-this.panOffsetX-e*this.zoomLevel+this.dims.width/2)/this.zoomLevel,(-this.panOffsetY-i*this.zoomLevel+this.dims.height/2)/this.zoomLevel)),this.updateTransform())}zoom(e){this.transformationMatrix=la(this.transformationMatrix,function pd(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return dd(r)&&(r=n),{a:n,c:0,e:0,b:0,d:r,f:0}}(e,e)),this.zoomChange.emit(this.zoomLevel),this.updateTransform()}zoomTo(e){this.transformationMatrix.a=isNaN(e)?this.transformationMatrix.a:Number(e),this.transformationMatrix.d=isNaN(e)?this.transformationMatrix.d:Number(e),this.zoomChange.emit(this.zoomLevel),this.updateTransform(),this.update()}onDrag(e){if(!this.draggingEnabled)return;const i=this.draggingNode;this.layout&&"string"!=typeof this.layout&&this.layout.onDrag&&this.layout.onDrag(i,e),i.position.x+=e.movementX/this.zoomLevel,i.position.y+=e.movementY/this.zoomLevel,i.transform=`translate(${i.position.x-i.dimension.width/2}, ${i.position.y-i.dimension.height/2})`;for(const v of this.graph.edges)if((v.target===i.id||v.source===i.id||v.target.id===i.id||v.source.id===i.id)&&this.layout&&"string"!=typeof this.layout){const T=this.layout.updateEdge(this.graph,v),N=T instanceof ut.y?T:(0,yt.of)(T);this.graphSubscription.add(N.subscribe(U=>{this.graph=U,this.redrawEdge(v)}))}this.redrawLines(!1),this.updateMinimap()}redrawEdge(e){const i=this.generateLine(e.points);this.calcDominantBaseline(e),e.oldLine=e.line,e.line=i}updateTransform(){this.transform=function md(n){return function Zo(n){return"matrix("+n.a+","+n.b+","+n.c+","+n.d+","+n.e+","+n.f+")"}(n)}(function vd(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e10;return{a:Math.round(n.a*r)/r,b:Math.round(n.b*r)/r,c:Math.round(n.c*r)/r,d:Math.round(n.d*r)/r,e:Math.round(n.e*r)/r,f:Math.round(n.f*r)/r}}(this.transformationMatrix,100))}onClick(e){this.select.emit(e)}onActivate(e){this.activeEntries.indexOf(e)>-1||(this.activeEntries=[e,...this.activeEntries],this.activate.emit({value:e,entries:this.activeEntries}))}onDeactivate(e){const i=this.activeEntries.indexOf(e);this.activeEntries.splice(i,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:e,entries:this.activeEntries})}getSeriesDomain(){return this.nodes.map(e=>this.groupResultsBy(e)).reduce((e,i)=>-1!==e.indexOf(i)?e:e.concat([i]),[]).sort()}trackLinkBy(e,i){return i.id}trackNodeBy(e,i){return i.id}setColors(){this.colors=new wp(this.scheme,this.seriesDomain,this.customColors)}onMouseMove(e){this.isMouseMoveCalled=!0,(this.isPanning||this.isMinimapPanning)&&this.panningEnabled?this.panWithConstraints(this.panningAxis,e):this.isDragging&&this.draggingEnabled&&this.onDrag(e)}onMouseDown(e){this.isMouseMoveCalled=!1}graphClick(e){this.isMouseMoveCalled||this.clickHandler.emit(e)}onTouchStart(e){this._touchLastX=e.changedTouches[0].clientX,this._touchLastY=e.changedTouches[0].clientY,this.isPanning=!0}onTouchMove(e){if(this.isPanning&&this.panningEnabled){const i=e.changedTouches[0].clientX,a=e.changedTouches[0].clientY,o=i-this._touchLastX,v=a-this._touchLastY;this._touchLastX=i,this._touchLastY=a,this.pan(o,v)}}onTouchEnd(e){this.isPanning=!1}onMouseUp(e){this.isDragging=!1,this.isPanning=!1,this.isMinimapPanning=!1,this.layout&&"string"!=typeof this.layout&&this.layout.onDragEnd&&this.layout.onDragEnd(this.draggingNode,e)}onNodeMouseDown(e,i){!this.draggingEnabled||(this.isDragging=!0,this.draggingNode=i,this.layout&&"string"!=typeof this.layout&&this.layout.onDragStart&&this.layout.onDragStart(i,e))}onMinimapDragMouseDown(){this.isMinimapPanning=!0}onMinimapPanTo(e){this.panTo((e.offsetX-(this.dims.width-(this.graphDims.width+this.minimapOffsetX)/this.minimapScaleCoefficient))*this.minimapScaleCoefficient,(e.offsetY+this.minimapOffsetY/this.minimapScaleCoefficient)*this.minimapScaleCoefficient),this.isMinimapPanning=!0}center(){this.panTo(this.graphDims.width/2,this.graphDims.height/2)}zoomToFit(){let a=Math.min(this.dims.height/this.graphDims.height,this.dims.width/this.graphDims.width,1);athis.maxZoomLevel&&(a=this.maxZoomLevel),a!==this.zoomLevel&&(this.zoomLevel=a,this.updateTransform(),this.zoomChange.emit(this.zoomLevel))}panToNodeId(e){const i=this.graph.nodes.find(a=>a.id===e);!i||this.panTo(i.position.x,i.position.y)}panWithConstraints(e,i){let a=i.movementX,o=i.movementY;switch(this.isMinimapPanning&&(a=-this.minimapScaleCoefficient*a*this.zoomLevel,o=-this.minimapScaleCoefficient*o*this.zoomLevel),e){case Zr.Horizontal:this.pan(a,0);break;case Zr.Vertical:this.pan(0,o);break;default:this.pan(a,o)}}updateMidpointOnEdge(e,i){if(e&&i)if(i.length%2==1)e.midPoint=i[Math.floor(i.length/2)];else{const a=i[i.length/2],o=i[i.length/2-1];e.midPoint={x:(a.x+o.x)/2,y:(a.y+o.y)/2}}}basicUpdate(){if(this.view)this.width=this.view[0],this.height=this.view[1];else{const e=this.getContainerDims();e&&(this.width=e.width,this.height=e.height)}this.width||(this.width=600),this.height||(this.height=400),this.width=Math.floor(this.width),this.height=Math.floor(this.height),this.cd&&this.cd.markForCheck()}getContainerDims(){let e,i;const a=this.el.nativeElement;if(null!==a.parentNode){const o=a.parentNode.getBoundingClientRect();e=o.width,i=o.height}return e&&i?{width:e,height:i}:null}unbindEvents(){this.resizeSubscription&&this.resizeSubscription.unsubscribe()}bindWindowResizeEvent(){const i=(0,Ro.R)(window,"resize").pipe((0,q.b)(200)).subscribe(a=>{this.update(),this.cd&&this.cd.markForCheck()});this.resizeSubscription=i}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(t.sBO),t.Y36(il))},n.\u0275cmp=t.Xpm({type:n,selectors:[["ngx-graph"]],contentQueries:function(e,i,a){if(1&e&&(t.Suo(a,Jd,5),t.Suo(a,Kd,5),t.Suo(a,qd,5),t.Suo(a,tp,5),t.Suo(a,ep,5)),2&e){let o;t.iGM(o=t.CRH())&&(i.linkTemplate=o.first),t.iGM(o=t.CRH())&&(i.nodeTemplate=o.first),t.iGM(o=t.CRH())&&(i.clusterTemplate=o.first),t.iGM(o=t.CRH())&&(i.defsTemplate=o.first),t.iGM(o=t.CRH())&&(i.miniMapNodeTemplate=o.first)}},viewQuery:function(e,i){if(1&e&&(t.Gf(np,5),t.Gf(ip,5)),2&e){let a;t.iGM(a=t.CRH())&&(i.nodeElements=a),t.iGM(a=t.CRH())&&(i.linkElements=a)}},hostBindings:function(e,i){1&e&&t.NdJ("mousemove",function(o){return i.onMouseMove(o)},!1,t.evT)("mousedown",function(o){return i.onMouseDown(o)},!1,t.evT)("click",function(o){return i.graphClick(o)},!1,t.evT)("touchmove",function(o){return i.onTouchMove(o)},!1,t.evT)("mouseup",function(o){return i.onMouseUp(o)},!1,t.evT)},inputs:{nodes:"nodes",clusters:"clusters",links:"links",activeEntries:"activeEntries",curve:"curve",draggingEnabled:"draggingEnabled",nodeHeight:"nodeHeight",nodeMaxHeight:"nodeMaxHeight",nodeMinHeight:"nodeMinHeight",nodeWidth:"nodeWidth",nodeMinWidth:"nodeMinWidth",nodeMaxWidth:"nodeMaxWidth",panningEnabled:"panningEnabled",panningAxis:"panningAxis",enableZoom:"enableZoom",zoomSpeed:"zoomSpeed",minZoomLevel:"minZoomLevel",maxZoomLevel:"maxZoomLevel",autoZoom:"autoZoom",panOnZoom:"panOnZoom",animate:"animate",autoCenter:"autoCenter",update$:"update$",center$:"center$",zoomToFit$:"zoomToFit$",panToNode$:"panToNode$",layout:"layout",layoutSettings:"layoutSettings",enableTrackpadSupport:"enableTrackpadSupport",showMiniMap:"showMiniMap",miniMapMaxWidth:"miniMapMaxWidth",miniMapMaxHeight:"miniMapMaxHeight",miniMapPosition:"miniMapPosition",view:"view",scheme:"scheme",customColors:"customColors",animations:"animations",groupResultsBy:"groupResultsBy",zoomLevel:"zoomLevel",panOffsetX:"panOffsetX",panOffsetY:"panOffsetY"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",zoomChange:"zoomChange",clickHandler:"clickHandler"},features:[t.TTD],ngContentSelectors:bp,decls:6,vars:11,consts:[["mouseWheel","",1,"ngx-charts-outer",3,"mouseWheelUp","mouseWheelDown"],[1,"ngx-charts"],["class","graph chart",3,"touchstart","touchend",4,"ngIf"],["class","minimap",4,"ngIf"],[1,"graph","chart",3,"touchstart","touchend"],[3,"ngTemplateOutlet",4,"ngIf"],["class","text-path",4,"ngFor","ngForOf"],[1,"panning-rect",3,"mousedown"],[1,"clusters"],["class","node-group",3,"old-node","id","click",4,"ngFor","ngForOf","ngForTrackBy"],[1,"links"],["class","link-group",3,"id",4,"ngFor","ngForOf","ngForTrackBy"],[1,"nodes"],["class","node-group",3,"old-node","id","click","mousedown",4,"ngFor","ngForOf","ngForTrackBy"],[3,"ngTemplateOutlet"],[1,"text-path"],[1,"node-group",3,"id","click"],["clusterElement",""],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],["class","node cluster",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"node","cluster"],["alignment-baseline","central"],[1,"link-group",3,"id"],["linkElement",""],["class","edge",4,"ngIf"],[1,"edge"],[1,"node-group",3,"id","click","mousedown"],["nodeElement",""],["r","10",4,"ngIf"],["r","10"],[1,"minimap"],[1,"minimap-background",3,"mousedown"],[1,"minimap-nodes"],["class","node-group",3,"old-node","id",4,"ngFor","ngForOf","ngForTrackBy"],[1,"minimap-drag",3,"mousedown"],[1,"node-group",3,"id"]],template:function(e,i){1&e&&(t.F$t(),t.TgZ(0,"div",0),t.NdJ("mouseWheelUp",function(o){return i.onZoom(o,"in")})("mouseWheelDown",function(o){return i.onZoom(o,"out")}),t.O4$(),t.TgZ(1,"svg",1),t.YNc(2,mp,12,12,"g",2),t.TgZ(3,"clipPath"),t._UZ(4,"rect"),t.qZA(),t.YNc(5,yp,6,15,"g",3),t.qZA()()),2&e&&(t.Udp("width",i.width,"px"),t.Q6J("@animationState","active")("@.disabled",!i.animations),t.xp6(1),t.uIk("width",i.width)("height",i.height),t.xp6(1),t.Q6J("ngIf",i.initialized&&i.graph),t.xp6(1),t.uIk("id",i.minimapClipPathId),t.xp6(1),t.uIk("width",i.graphDims.width/i.minimapScaleCoefficient)("height",i.graphDims.height/i.minimapScaleCoefficient),t.xp6(1),t.Q6J("ngIf",i.showMiniMap))},dependencies:[Mp,m.O5,m.tP,m.sg],styles:[".minimap .minimap-background{fill:#0000001a}.minimap .minimap-drag{fill:#0003;stroke:#fff;stroke-width:1px;stroke-dasharray:2px;stroke-dashoffset:2px;cursor:pointer}.minimap .minimap-drag.panning{fill:#0000004d}.minimap .minimap-nodes{opacity:.5;pointer-events:none}.graph{-webkit-user-select:none;user-select:none}.graph .edge{stroke:#666;fill:none}.graph .edge .edge-label{stroke:none;font-size:12px;fill:#251e1e}.graph .panning-rect{fill:#0000;cursor:move}.graph .node-group.old-node{transition:transform .5s ease-in-out}.graph .node-group .node:focus{outline:none}.graph .cluster rect{opacity:.2}\n"],encapsulation:2,data:{animation:[(0,Un.X$)("animationState",[(0,Un.eR)(":enter",[(0,Un.oB)({opacity:0}),(0,Un.jt)("500ms 100ms",(0,Un.oB)({opacity:1}))])])]},changeDetection:0}),(0,xa.gn)([Cp(500)],n.prototype,"updateMinimap",null),n})(),Pp=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({providers:[il],imports:[[m.ez]]}),n})(),Fp=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[m.ez],Pp]}),n})();var rl=s(84080);s(52016),s(56758),s(37656),s(29132),s(18429);Math;function ua(n){return{type:n}}function fl(n,r){return nr?1:n>=r?0:NaN}function ys(n){let r=n,e=n;function i(v,T,N,U){for(null==N&&(N=0),null==U&&(U=v.length);N>>1;e(v[J],T)<0?N=J+1:U=J}return N}return 1===n.length&&(r=(v,T)=>n(v)-T,e=function Xp(n){return(r,e)=>fl(n(r),e)}(n)),{left:i,center:function o(v,T,N,U){null==N&&(N=0),null==U&&(U=v.length);const J=i(v,T,N,U-1);return J>N&&r(v[J-1],T)>-r(v[J],T)?J-1:J},right:function a(v,T,N,U){for(null==N&&(N=0),null==U&&(U=v.length);N>>1;e(v[J],T)>0?U=J:N=J+1}return N}}}["w","e"].map(ua),["n","s"].map(ua),["n","w","e","s","nw","ne","sw","se"].map(ua);var bs=Math.sqrt(50),Ts=Math.sqrt(10),Cs=Math.sqrt(2);function ws(n,r,e){var i=Math.abs(r-n)/Math.max(0,e),a=Math.pow(10,Math.floor(Math.log(i)/Math.LN10)),o=i/a;return o>=bs?a*=10:o>=Ts?a*=5:o>=Cs&&(a*=2),r0))return N;do{N.push(U=new Date(+o)),r(o,T),n(o)}while(U=v)for(;n(v),!o(v);)v.setTime(v-1)},function(v,T){if(v>=v)if(T<0)for(;++T<=0;)for(;r(v,-1),!o(v););else for(;--T>=0;)for(;r(v,1),!o(v););})},e&&(a.count=function(o,v){return Es.setTime(+o),Ds.setTime(+v),n(Es),n(Ds),Math.floor(e(Es,Ds))},a.every=function(o){return o=Math.floor(o),isFinite(o)&&o>0?o>1?a.filter(i?function(v){return i(v)%o==0}:function(v){return a.count(0,v)%o==0}):a:null}),a}var Fa=pi(function(){},function(n,r){n.setTime(+n+r)},function(n,r){return r-n});Fa.every=function(n){return n=Math.floor(n),isFinite(n)&&n>0?n>1?pi(function(r){r.setTime(Math.floor(r/n)*n)},function(r,e){r.setTime(+r+e*n)},function(r,e){return(e-r)/n}):Fa:null};const Qp=Fa;const ha=pi(function(n){n.setTime(n-n.getMilliseconds())},function(n,r){n.setTime(+n+r*fr)},function(n,r){return(r-n)/fr},function(n){return n.getUTCSeconds()});const xl=pi(function(n){n.setTime(n-n.getMilliseconds()-n.getSeconds()*fr)},function(n,r){n.setTime(+n+r*Xi)},function(n,r){return(r-n)/Xi},function(n){return n.getMinutes()});const bl=pi(function(n){n.setTime(n-n.getMilliseconds()-n.getSeconds()*fr-n.getMinutes()*Xi)},function(n,r){n.setTime(+n+r*mr)},function(n,r){return(r-n)/mr},function(n){return n.getHours()});const Ra=pi(n=>n.setHours(0,0,0,0),(n,r)=>n.setDate(n.getDate()+r),(n,r)=>(r-n-(r.getTimezoneOffset()-n.getTimezoneOffset())*Xi)/Lr,n=>n.getDate()-1);function kr(n){return pi(function(r){r.setDate(r.getDate()-(r.getDay()+7-n)%7),r.setHours(0,0,0,0)},function(r,e){r.setDate(r.getDate()+7*e)},function(r,e){return(e-r-(e.getTimezoneOffset()-r.getTimezoneOffset())*Xi)/As})}var Ba=kr(0),Za=kr(1),Yr=(kr(2),kr(3),kr(4));const wl=(kr(5),kr(6),pi(function(n){n.setDate(1),n.setHours(0,0,0,0)},function(n,r){n.setMonth(n.getMonth()+r)},function(n,r){return r.getMonth()-n.getMonth()+12*(r.getFullYear()-n.getFullYear())},function(n){return n.getMonth()}));var Ls=pi(function(n){n.setMonth(0,1),n.setHours(0,0,0,0)},function(n,r){n.setFullYear(n.getFullYear()+r)},function(n,r){return r.getFullYear()-n.getFullYear()},function(n){return n.getFullYear()});Ls.every=function(n){return isFinite(n=Math.floor(n))&&n>0?pi(function(r){r.setFullYear(Math.floor(r.getFullYear()/n)*n),r.setMonth(0,1),r.setHours(0,0,0,0)},function(r,e){r.setFullYear(r.getFullYear()+e*n)}):null};const Ir=Ls;const tf=pi(function(n){n.setUTCSeconds(0,0)},function(n,r){n.setTime(+n+r*Xi)},function(n,r){return(r-n)/Xi},function(n){return n.getUTCMinutes()});const ef=pi(function(n){n.setUTCMinutes(0,0,0)},function(n,r){n.setTime(+n+r*mr)},function(n,r){return(r-n)/mr},function(n){return n.getUTCHours()});const ks=pi(function(n){n.setUTCHours(0,0,0,0)},function(n,r){n.setUTCDate(n.getUTCDate()+r)},function(n,r){return(r-n)/Lr},function(n){return n.getUTCDate()-1});function Or(n){return pi(function(r){r.setUTCDate(r.getUTCDate()-(r.getUTCDay()+7-n)%7),r.setUTCHours(0,0,0,0)},function(r,e){r.setUTCDate(r.getUTCDate()+7*e)},function(r,e){return(e-r)/As})}var Is=Or(0),Va=Or(1),Wr=(Or(2),Or(3),Or(4));const of=(Or(5),Or(6),pi(function(n){n.setUTCDate(1),n.setUTCHours(0,0,0,0)},function(n,r){n.setUTCMonth(n.getUTCMonth()+r)},function(n,r){return r.getUTCMonth()-n.getUTCMonth()+12*(r.getUTCFullYear()-n.getUTCFullYear())},function(n){return n.getUTCMonth()}));var Os=pi(function(n){n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},function(n,r){n.setUTCFullYear(n.getUTCFullYear()+r)},function(n,r){return r.getUTCFullYear()-n.getUTCFullYear()},function(n){return n.getUTCFullYear()});Os.every=function(n){return isFinite(n=Math.floor(n))&&n>0?pi(function(r){r.setUTCFullYear(Math.floor(r.getUTCFullYear()/n)*n),r.setUTCMonth(0,1),r.setUTCHours(0,0,0,0)},function(r,e){r.setUTCFullYear(r.getUTCFullYear()+e*n)}):null};const Xr=Os;function Ll(n,r,e,i,a,o){const v=[[ha,1,fr],[ha,5,5e3],[ha,15,15e3],[ha,30,3e4],[o,1,Xi],[o,5,5*Xi],[o,15,15*Xi],[o,30,30*Xi],[a,1,mr],[a,3,3*mr],[a,6,6*mr],[a,12,12*mr],[i,1,Lr],[i,2,2*Lr],[e,1,As],[r,1,gl],[r,3,3*gl],[n,1,Ss]];function N(U,J,ct){const ot=Math.abs(J-U)/ct,Ct=ys(([,,_t])=>_t).right(v,ot);if(Ct===v.length)return n.every(ws(U/Ss,J/Ss,ct));if(0===Ct)return Qp.every(Math.max(ws(U,J,ct),1));const[It,Ft]=v[ot/v[Ct-1][2][r.toLowerCase(),e]))}function ff(n,r,e){var i=fi.exec(r.slice(e,e+1));return i?(n.w=+i[0],e+i[0].length):-1}function mf(n,r,e){var i=fi.exec(r.slice(e,e+1));return i?(n.u=+i[0],e+i[0].length):-1}function gf(n,r,e){var i=fi.exec(r.slice(e,e+2));return i?(n.U=+i[0],e+i[0].length):-1}function _f(n,r,e){var i=fi.exec(r.slice(e,e+2));return i?(n.V=+i[0],e+i[0].length):-1}function vf(n,r,e){var i=fi.exec(r.slice(e,e+2));return i?(n.W=+i[0],e+i[0].length):-1}function Il(n,r,e){var i=fi.exec(r.slice(e,e+4));return i?(n.y=+i[0],e+i[0].length):-1}function Ol(n,r,e){var i=fi.exec(r.slice(e,e+2));return i?(n.y=+i[0]+(+i[0]>68?1900:2e3),e+i[0].length):-1}function xf(n,r,e){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(r.slice(e,e+6));return i?(n.Z=i[1]?0:-(i[2]+(i[3]||"00")),e+i[0].length):-1}function yf(n,r,e){var i=fi.exec(r.slice(e,e+1));return i?(n.q=3*i[0]-3,e+i[0].length):-1}function bf(n,r,e){var i=fi.exec(r.slice(e,e+2));return i?(n.m=i[0]-1,e+i[0].length):-1}function Ml(n,r,e){var i=fi.exec(r.slice(e,e+2));return i?(n.d=+i[0],e+i[0].length):-1}function Tf(n,r,e){var i=fi.exec(r.slice(e,e+3));return i?(n.m=0,n.d=+i[0],e+i[0].length):-1}function Nl(n,r,e){var i=fi.exec(r.slice(e,e+2));return i?(n.H=+i[0],e+i[0].length):-1}function Cf(n,r,e){var i=fi.exec(r.slice(e,e+2));return i?(n.M=+i[0],e+i[0].length):-1}function wf(n,r,e){var i=fi.exec(r.slice(e,e+2));return i?(n.S=+i[0],e+i[0].length):-1}function Af(n,r,e){var i=fi.exec(r.slice(e,e+3));return i?(n.L=+i[0],e+i[0].length):-1}function Sf(n,r,e){var i=fi.exec(r.slice(e,e+6));return i?(n.L=Math.floor(i[0]/1e3),e+i[0].length):-1}function Ef(n,r,e){var i=hf.exec(r.slice(e,e+1));return i?e+i[0].length:-1}function Df(n,r,e){var i=fi.exec(r.slice(e));return i?(n.Q=+i[0],e+i[0].length):-1}function Lf(n,r,e){var i=fi.exec(r.slice(e));return i?(n.s=+i[0],e+i[0].length):-1}function Pl(n,r){return xn(n.getDate(),r,2)}function kf(n,r){return xn(n.getHours(),r,2)}function If(n,r){return xn(n.getHours()%12||12,r,2)}function Of(n,r){return xn(1+Ra.count(Ir(n),n),r,3)}function Fl(n,r){return xn(n.getMilliseconds(),r,3)}function Mf(n,r){return Fl(n,r)+"000"}function Nf(n,r){return xn(n.getMonth()+1,r,2)}function Pf(n,r){return xn(n.getMinutes(),r,2)}function Ff(n,r){return xn(n.getSeconds(),r,2)}function Rf(n){var r=n.getDay();return 0===r?7:r}function Bf(n,r){return xn(Ba.count(Ir(n)-1,n),r,2)}function Rl(n){var r=n.getDay();return r>=4||0===r?Yr(n):Yr.ceil(n)}function Zf(n,r){return n=Rl(n),xn(Yr.count(Ir(n),n)+(4===Ir(n).getDay()),r,2)}function Vf(n){return n.getDay()}function Gf(n,r){return xn(Za.count(Ir(n)-1,n),r,2)}function Uf(n,r){return xn(n.getFullYear()%100,r,2)}function zf(n,r){return xn((n=Rl(n)).getFullYear()%100,r,2)}function Hf(n,r){return xn(n.getFullYear()%1e4,r,4)}function Yf(n,r){var e=n.getDay();return xn((n=e>=4||0===e?Yr(n):Yr.ceil(n)).getFullYear()%1e4,r,4)}function Wf(n){var r=n.getTimezoneOffset();return(r>0?"-":(r*=-1,"+"))+xn(r/60|0,"0",2)+xn(r%60,"0",2)}function Bl(n,r){return xn(n.getUTCDate(),r,2)}function Xf(n,r){return xn(n.getUTCHours(),r,2)}function $f(n,r){return xn(n.getUTCHours()%12||12,r,2)}function Qf(n,r){return xn(1+ks.count(Xr(n),n),r,3)}function Zl(n,r){return xn(n.getUTCMilliseconds(),r,3)}function jf(n,r){return Zl(n,r)+"000"}function Jf(n,r){return xn(n.getUTCMonth()+1,r,2)}function Kf(n,r){return xn(n.getUTCMinutes(),r,2)}function qf(n,r){return xn(n.getUTCSeconds(),r,2)}function tm(n){var r=n.getUTCDay();return 0===r?7:r}function em(n,r){return xn(Is.count(Xr(n)-1,n),r,2)}function Vl(n){var r=n.getUTCDay();return r>=4||0===r?Wr(n):Wr.ceil(n)}function nm(n,r){return n=Vl(n),xn(Wr.count(Xr(n),n)+(4===Xr(n).getUTCDay()),r,2)}function im(n){return n.getUTCDay()}function rm(n,r){return xn(Va.count(Xr(n)-1,n),r,2)}function am(n,r){return xn(n.getUTCFullYear()%100,r,2)}function sm(n,r){return xn((n=Vl(n)).getUTCFullYear()%100,r,2)}function om(n,r){return xn(n.getUTCFullYear()%1e4,r,4)}function lm(n,r){var e=n.getUTCDay();return xn((n=e>=4||0===e?Wr(n):Wr.ceil(n)).getUTCFullYear()%1e4,r,4)}function cm(){return"+0000"}function Gl(){return"%"}function Ul(n){return+n}function zl(n){return Math.floor(+n/1e3)}!function pm(n){(function uf(n){var r=n.dateTime,e=n.date,i=n.time,a=n.periods,o=n.days,v=n.shortDays,T=n.months,N=n.shortMonths,U=pa(a),J=fa(a),ct=pa(o),ot=fa(o),Ct=pa(v),It=fa(v),Ft=pa(T),_t=fa(T),Vt=pa(N),qt=fa(N),$t={a:function ri(ve){return v[ve.getDay()]},A:function or(ve){return o[ve.getDay()]},b:function ai(ve){return N[ve.getMonth()]},B:function si(ve){return T[ve.getMonth()]},c:null,d:Pl,e:Pl,f:Mf,g:zf,G:Yf,H:kf,I:If,j:Of,L:Fl,m:Nf,M:Pf,p:function Hn(ve){return a[+(ve.getHours()>=12)]},q:function Yn(ve){return 1+~~(ve.getMonth()/3)},Q:Ul,s:zl,S:Ff,u:Rf,U:Bf,V:Zf,w:Vf,W:Gf,x:null,X:null,y:Uf,Y:Hf,Z:Wf,"%":Gl},ye={a:function _a(ve){return v[ve.getUTCDay()]},A:function qr(ve){return o[ve.getUTCDay()]},b:function ta(ve){return N[ve.getUTCMonth()]},B:function ea(ve){return T[ve.getUTCMonth()]},c:null,d:Bl,e:Bl,f:jf,g:sm,G:lm,H:Xf,I:$f,j:Qf,L:Zl,m:Jf,M:Kf,p:function Ai(ve){return a[+(ve.getUTCHours()>=12)]},q:function Ha(ve){return 1+~~(ve.getUTCMonth()/3)},Q:Ul,s:zl,S:qf,u:tm,U:em,V:nm,w:im,W:rm,x:null,X:null,y:am,Y:om,Z:cm,"%":Gl},De={a:function Dn(ve,Qe,hn){var re=Ct.exec(Qe.slice(hn));return re?(ve.w=It.get(re[0].toLowerCase()),hn+re[0].length):-1},A:function Ln(ve,Qe,hn){var re=ct.exec(Qe.slice(hn));return re?(ve.w=ot.get(re[0].toLowerCase()),hn+re[0].length):-1},b:function $n(ve,Qe,hn){var re=Vt.exec(Qe.slice(hn));return re?(ve.m=qt.get(re[0].toLowerCase()),hn+re[0].length):-1},B:function ei(ve,Qe,hn){var re=Ft.exec(Qe.slice(hn));return re?(ve.m=_t.get(re[0].toLowerCase()),hn+re[0].length):-1},c:function ni(ve,Qe,hn){return an(ve,r,Qe,hn)},d:Ml,e:Ml,f:Sf,g:Ol,G:Il,H:Nl,I:Nl,j:Tf,L:Af,m:bf,M:Cf,p:function yn(ve,Qe,hn){var re=U.exec(Qe.slice(hn));return re?(ve.p=J.get(re[0].toLowerCase()),hn+re[0].length):-1},q:yf,Q:Df,s:Lf,S:wf,u:mf,U:gf,V:_f,w:ff,W:vf,x:function sr(ve,Qe,hn){return an(ve,e,Qe,hn)},X:function ii(ve,Qe,hn){return an(ve,i,Qe,hn)},y:Ol,Y:Il,Z:xf,"%":Ef};function ge(ve,Qe){return function(hn){var Oi,He,Bn,re=[],Rn=-1,Sn=0,Ii=ve.length;for(hn instanceof Date||(hn=new Date(+hn));++Rn53)return null;"w"in re||(re.w=1),"Z"in re?(Ii=(Sn=Ns(da(re.y,0,1))).getUTCDay(),Sn=Ii>4||0===Ii?Va.ceil(Sn):Va(Sn),Sn=ks.offset(Sn,7*(re.V-1)),re.y=Sn.getUTCFullYear(),re.m=Sn.getUTCMonth(),re.d=Sn.getUTCDate()+(re.w+6)%7):(Ii=(Sn=Ms(da(re.y,0,1))).getDay(),Sn=Ii>4||0===Ii?Za.ceil(Sn):Za(Sn),Sn=Ra.offset(Sn,7*(re.V-1)),re.y=Sn.getFullYear(),re.m=Sn.getMonth(),re.d=Sn.getDate()+(re.w+6)%7)}else("W"in re||"U"in re)&&("w"in re||(re.w="u"in re?re.u%7:"W"in re?1:0),Ii="Z"in re?Ns(da(re.y,0,1)).getUTCDay():Ms(da(re.y,0,1)).getDay(),re.m=0,re.d="W"in re?(re.w+6)%7+7*re.W-(Ii+5)%7:re.w+7*re.U-(Ii+6)%7);return"Z"in re?(re.H+=re.Z/100|0,re.M+=re.Z%100,Ns(re)):Ms(re)}}function an(ve,Qe,hn,re){for(var Oi,He,Rn=0,Sn=Qe.length,Ii=hn.length;Rn=Ii)return-1;if(37===(Oi=Qe.charCodeAt(Rn++))){if(Oi=Qe.charAt(Rn++),!(He=De[Oi in kl?Qe.charAt(Rn++):Oi])||(re=He(ve,hn,re))<0)return-1}else if(Oi!=hn.charCodeAt(re++))return-1}return re}return $t.x=ge(e,$t),$t.X=ge(i,$t),$t.c=ge(r,$t),ye.x=ge(e,ye),ye.X=ge(i,ye),ye.c=ge(r,ye),{format:function(ve){var Qe=ge(ve+="",$t);return Qe.toString=function(){return ve},Qe},parse:function(ve){var Qe=Ke(ve+="",!1);return Qe.toString=function(){return ve},Qe},utcFormat:function(ve){var Qe=ge(ve+="",ye);return Qe.toString=function(){return ve},Qe},utcParse:function(ve){var Qe=Ke(ve+="",!0);return Qe.toString=function(){return ve},Qe}}})(n)}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),ys(fl),ys(function fm(n){return null===n?NaN:+n}),s(6738),s(84067),s(32517),s(38914),s(22910),s(65142),s(78986),s(16087);const Rm=["caretElm"];function Bm(n,r){}const Zm=function(n){return{model:n}};function Vm(n,r){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,Bm,0,0,"ng-template",5),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngTemplateOutlet",e.template)("ngTemplateOutletContext",t.VKq(2,Zm,e.context))}}function Gm(n,r){if(1&n&&t._UZ(0,"span",6),2&n){const e=t.oxw();t.Q6J("innerHTML",e.title,t.oJD)}}function m_(n,r,e){e=e||{};let i,a,o,v=null,T=0;function N(){T=!1===e.leading?0:+new Date,v=null,o=n.apply(i,a)}return function(){const U=+new Date;!T&&!1===e.leading&&(T=U);const J=r-(U-T);return i=this,a=arguments,J<=0?(clearTimeout(v),v=null,T=U,o=n.apply(i,a)):!v&&!1!==e.trailing&&(v=setTimeout(N,J)),o}}function g_(n,r){return function(i,a,o){return{configurable:!0,enumerable:o.enumerable,get:function(){return Object.defineProperty(this,a,{configurable:!0,enumerable:o.enumerable,value:m_(o.value,n,r)}),this[a]}}}}var tn=(()=>{return(n=tn||(tn={})).Top="top",n.Bottom="bottom",n.Left="left",n.Right="right",n.Center="center",tn;var n})();function ec(n,r,e){return e===tn.Top?n.top-7:e===tn.Bottom?n.top+n.height-r.height+7:e===tn.Center?n.top+n.height/2-r.height/2:void 0}function nc(n,r,e){return e===tn.Left?n.left-7:e===tn.Right?n.left+n.width-r.width+7:e===tn.Center?n.left+n.width/2-r.width/2:void 0}class zi{static calculateVerticalAlignment(r,e,i){let a=ec(r,e,i);return a+e.height>window.innerHeight&&(a=window.innerHeight-e.height),a}static calculateVerticalCaret(r,e,i,a){let o;a===tn.Top&&(o=r.height/2-i.height/2+7),a===tn.Bottom&&(o=e.height-r.height/2-i.height/2-7),a===tn.Center&&(o=e.height/2-i.height/2);const v=ec(r,e,a);return v+e.height>window.innerHeight&&(o+=v+e.height-window.innerHeight),o}static calculateHorizontalAlignment(r,e,i){let a=nc(r,e,i);return a+e.width>window.innerWidth&&(a=window.innerWidth-e.width),a}static calculateHorizontalCaret(r,e,i,a){let o;a===tn.Left&&(o=r.width/2-i.width/2+7),a===tn.Right&&(o=e.width-r.width/2-i.width/2-7),a===tn.Center&&(o=e.width/2-i.width/2);const v=nc(r,e,a);return v+e.width>window.innerWidth&&(o+=v+e.width-window.innerWidth),o}static shouldFlip(r,e,i,a){let o=!1;return i===tn.Right&&r.left+r.width+e.width+a>window.innerWidth&&(o=!0),i===tn.Left&&r.left-e.width-a<0&&(o=!0),i===tn.Top&&r.top-e.height-a<0&&(o=!0),i===tn.Bottom&&r.top+r.height+e.height+a>window.innerHeight&&(o=!0),o}static positionCaret(r,e,i,a,o){let v=0,T=0;return r===tn.Right?(T=-7,v=zi.calculateVerticalCaret(i,e,a,o)):r===tn.Left?(T=e.width,v=zi.calculateVerticalCaret(i,e,a,o)):r===tn.Top?(v=e.height,T=zi.calculateHorizontalCaret(i,e,a,o)):r===tn.Bottom&&(v=-7,T=zi.calculateHorizontalCaret(i,e,a,o)),{top:v,left:T}}static positionContent(r,e,i,a,o){let v=0,T=0;return r===tn.Right?(T=i.left+i.width+a,v=zi.calculateVerticalAlignment(i,e,o)):r===tn.Left?(T=i.left-e.width-a,v=zi.calculateVerticalAlignment(i,e,o)):r===tn.Top?(v=i.top-e.height-a,T=zi.calculateHorizontalAlignment(i,e,o)):r===tn.Bottom&&(v=i.top+i.height+a,T=zi.calculateHorizontalAlignment(i,e,o)),{top:v,left:T}}static determinePlacement(r,e,i,a){if(zi.shouldFlip(i,e,r,a)){if(r===tn.Right)return tn.Left;if(r===tn.Left)return tn.Right;if(r===tn.Top)return tn.Bottom;if(r===tn.Bottom)return tn.Top}return r}}let __=(()=>{class n{constructor(e,i,a){this.element=e,this.renderer=i,this.platformId=a}get cssClasses(){let e="ngx-charts-tooltip-content";return e+=` position-${this.placement}`,e+=` type-${this.type}`,e+=` ${this.cssClass}`,e}ngAfterViewInit(){setTimeout(this.position.bind(this))}position(){if(!(0,m.NF)(this.platformId))return;const e=this.element.nativeElement,i=this.host.nativeElement.getBoundingClientRect();if(!i.height&&!i.width)return;const a=e.getBoundingClientRect();this.checkFlip(i,a),this.positionContent(e,i,a),this.showCaret&&this.positionCaret(i,a),setTimeout(()=>this.renderer.addClass(e,"animate"),1)}positionContent(e,i,a){const{top:o,left:v}=zi.positionContent(this.placement,a,i,this.spacing,this.alignment);this.renderer.setStyle(e,"top",`${o}px`),this.renderer.setStyle(e,"left",`${v}px`)}positionCaret(e,i){const a=this.caretElm.nativeElement,o=a.getBoundingClientRect(),{top:v,left:T}=zi.positionCaret(this.placement,i,e,o,this.alignment);this.renderer.setStyle(a,"top",`${v}px`),this.renderer.setStyle(a,"left",`${T}px`)}checkFlip(e,i){this.placement=zi.determinePlacement(this.placement,i,e,this.spacing)}onWindowResize(){this.position()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(t.Lbi))},n.\u0275cmp=t.Xpm({type:n,selectors:[["ngx-tooltip-content"]],viewQuery:function(e,i){if(1&e&&t.Gf(Rm,5),2&e){let a;t.iGM(a=t.CRH())&&(i.caretElm=a.first)}},hostVars:2,hostBindings:function(e,i){1&e&&t.NdJ("resize",function(){return i.onWindowResize()},!1,t.Jf7),2&e&&t.Tol(i.cssClasses)},inputs:{host:"host",showCaret:"showCaret",type:"type",placement:"placement",alignment:"alignment",spacing:"spacing",cssClass:"cssClass",title:"title",template:"template",context:"context"},decls:6,vars:6,consts:[[3,"hidden"],["caretElm",""],[1,"tooltip-content"],[4,"ngIf"],[3,"innerHTML",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"innerHTML"]],template:function(e,i){1&e&&(t.TgZ(0,"div"),t._UZ(1,"span",0,1),t.TgZ(3,"div",2),t.YNc(4,Vm,2,4,"span",3),t.YNc(5,Gm,1,1,"span",4),t.qZA()()),2&e&&(t.xp6(1),t.Gre("tooltip-caret position-",i.placement,""),t.Q6J("hidden",!i.showCaret),t.xp6(3),t.Q6J("ngIf",!i.title),t.xp6(1),t.Q6J("ngIf",i.title))},dependencies:[m.O5,m.tP],styles:[".ngx-charts-tooltip-content{position:fixed;border-radius:3px;z-index:5000;display:block;font-weight:400;opacity:0;pointer-events:none!important}.ngx-charts-tooltip-content.type-popover{background:#fff;color:#060709;border:1px solid #72809b;box-shadow:0 1px 3px #0003,0 1px 1px #00000024,0 2px 1px -1px #0000001f;font-size:13px;padding:4px}.ngx-charts-tooltip-content.type-popover .tooltip-caret{position:absolute;z-index:5001;width:0;height:0}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-left{border-top:7px solid transparent;border-bottom:7px solid transparent;border-left:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-right{border-top:7px solid transparent;border-bottom:7px solid transparent;border-right:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-bottom{border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid #fff}.ngx-charts-tooltip-content.type-tooltip{color:#fff;background:rgba(0,0,0,.75);font-size:12px;padding:0 10px;text-align:center;pointer-events:auto}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-left{border-top:7px solid transparent;border-bottom:7px solid transparent;border-left:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-right{border-top:7px solid transparent;border-bottom:7px solid transparent;border-right:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-bottom{border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content .tooltip-label{display:block;line-height:1em;padding:8px 5px 5px;font-size:1em}.ngx-charts-tooltip-content .tooltip-val{display:block;font-size:1.3em;line-height:1em;padding:0 5px 8px}.ngx-charts-tooltip-content .tooltip-caret{position:absolute;z-index:5001;width:0;height:0}.ngx-charts-tooltip-content.position-right{transform:translate(10px)}.ngx-charts-tooltip-content.position-left{transform:translate(-10px)}.ngx-charts-tooltip-content.position-top{transform:translateY(-10px)}.ngx-charts-tooltip-content.position-bottom{transform:translateY(10px)}.ngx-charts-tooltip-content.animate{opacity:1;transition:opacity .3s,transform .3s;transform:translate(0);pointer-events:auto}.area-tooltip-container{padding:5px 0;pointer-events:none}.tooltip-item{text-align:left;line-height:1.2em;padding:5px 0}.tooltip-item .tooltip-item-color{display:inline-block;height:12px;width:12px;margin-right:5px;color:#5b646b;border-radius:3px}\n"],encapsulation:2}),(0,xa.gn)([g_(100)],n.prototype,"onWindowResize",null),n})(),ic=(()=>{class n{constructor(e,i,a){this.applicationRef=e,this.componentFactoryResolver=i,this.injector=a}static setGlobalRootViewContainer(e){n.globalRootViewContainer=e}getRootViewContainer(){if(this._container)return this._container;if(n.globalRootViewContainer)return n.globalRootViewContainer;if(this.applicationRef.components.length)return this.applicationRef.components[0];throw new Error("View Container not found! ngUpgrade needs to manually set this via setRootViewContainer or setGlobalRootViewContainer.")}setRootViewContainer(e){this._container=e}getComponentRootNode(e){return function x_(n){return n.element}(e)?e.element.nativeElement:e.hostView&&e.hostView.rootNodes.length>0?e.hostView.rootNodes[0]:e.location.nativeElement}getRootViewContainerNode(e){return this.getComponentRootNode(e)}projectComponentBindings(e,i){if(i){if(void 0!==i.inputs){const a=Object.getOwnPropertyNames(i.inputs);for(const o of a)e.instance[o]=i.inputs[o]}if(void 0!==i.outputs){const a=Object.getOwnPropertyNames(i.outputs);for(const o of a)e.instance[o]=i.outputs[o]}}return e}appendComponent(e,i={},a){a||(a=this.getRootViewContainer());const o=this.getComponentRootNode(a),v=new rl.u0(o,this.componentFactoryResolver,this.applicationRef,this.injector),T=new rl.C5(e),N=v.attach(T);return this.projectComponentBindings(N,i),N}}return n.globalRootViewContainer=null,n.\u0275fac=function(e){return new(e||n)(t.LFG(t.z2F),t.LFG(t._Vd),t.LFG(t.zs3))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),Fs=(()=>{class n extends class v_{constructor(r){this.injectionService=r,this.defaults={},this.components=new Map}getByType(r=this.type){return this.components.get(r)}create(r){return this.createByType(this.type,r)}createByType(r,e){e=this.assignDefaults(e);const i=this.injectComponent(r,e);return this.register(r,i),i}destroy(r){const e=this.components.get(r.componentType);if(e&&e.length){const i=e.indexOf(r);i>-1&&(e[i].destroy(),e.splice(i,1))}}destroyAll(){this.destroyByType(this.type)}destroyByType(r){const e=this.components.get(r);if(e&&e.length){let i=e.length-1;for(;i>=0;)this.destroy(e[i--])}}injectComponent(r,e){return this.injectionService.appendComponent(r,e)}assignDefaults(r){const e={...this.defaults.inputs},i={...this.defaults.outputs};return!r.inputs&&!r.outputs&&(r={inputs:r}),e&&(r.inputs={...e,...r.inputs}),i&&(r.outputs={...i,...r.outputs}),r}register(r,e){this.components.has(r)||this.components.set(r,[]),this.components.get(r).push(e)}}{constructor(e){super(e),this.type=__}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(ic))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),cc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[m.ez]]}),n})();var jr=(()=>{return(n=jr||(jr={})).popover="popover",n.tooltip="tooltip",jr;var n})(),Tr=(()=>{return(n=Tr||(Tr={}))[n.all="all"]="all",n[n.focus="focus"]="focus",n[n.mouseover="mouseover"]="mouseover",Tr;var n})();let Vs,Bs=(()=>{class n{constructor(e,i,a){this.tooltipService=e,this.viewContainerRef=i,this.renderer=a,this.tooltipCssClass="",this.tooltipAppendToBody=!0,this.tooltipSpacing=10,this.tooltipDisabled=!1,this.tooltipShowCaret=!0,this.tooltipPlacement=tn.Top,this.tooltipAlignment=tn.Center,this.tooltipType=jr.popover,this.tooltipCloseOnClickOutside=!0,this.tooltipCloseOnMouseLeave=!0,this.tooltipHideTimeout=300,this.tooltipShowTimeout=100,this.tooltipShowEvent=Tr.all,this.tooltipImmediateExit=!1,this.show=new t.vpe,this.hide=new t.vpe}get listensForFocus(){return this.tooltipShowEvent===Tr.all||this.tooltipShowEvent===Tr.focus}get listensForHover(){return this.tooltipShowEvent===Tr.all||this.tooltipShowEvent===Tr.mouseover}ngOnDestroy(){this.hideTooltip(!0)}onFocus(){this.listensForFocus&&this.showTooltip()}onBlur(){this.listensForFocus&&this.hideTooltip(!0)}onMouseEnter(){this.listensForHover&&this.showTooltip()}onMouseLeave(e){if(this.listensForHover&&this.tooltipCloseOnMouseLeave){if(clearTimeout(this.timeout),this.component&&this.component.instance.element.nativeElement.contains(e))return;this.hideTooltip(this.tooltipImmediateExit)}}onMouseClick(){this.listensForHover&&this.hideTooltip(!0)}showTooltip(e){if(this.component||this.tooltipDisabled)return;const i=e?0:this.tooltipShowTimeout+(navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)?300:0);clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.tooltipService.destroyAll();const a=this.createBoundOptions();this.component=this.tooltipService.create(a),setTimeout(()=>{this.component&&this.addHideListeners(this.component.instance.element.nativeElement)},10),this.show.emit(!0)},i)}addHideListeners(e){this.mouseEnterContentEvent=this.renderer.listen(e,"mouseenter",()=>{clearTimeout(this.timeout)}),this.tooltipCloseOnMouseLeave&&(this.mouseLeaveContentEvent=this.renderer.listen(e,"mouseleave",()=>{this.hideTooltip(this.tooltipImmediateExit)})),this.tooltipCloseOnClickOutside&&(this.documentClickEvent=this.renderer.listen("window","click",i=>{e.contains(i.target)||this.hideTooltip()}))}hideTooltip(e=!1){if(!this.component)return;const i=()=>{this.mouseLeaveContentEvent&&this.mouseLeaveContentEvent(),this.mouseEnterContentEvent&&this.mouseEnterContentEvent(),this.documentClickEvent&&this.documentClickEvent(),this.hide.emit(!0),this.tooltipService.destroy(this.component),this.component=void 0};clearTimeout(this.timeout),e?i():this.timeout=setTimeout(i,this.tooltipHideTimeout)}createBoundOptions(){return{title:this.tooltipTitle,template:this.tooltipTemplate,host:this.viewContainerRef.element,placement:this.tooltipPlacement,alignment:this.tooltipAlignment,type:this.tooltipType,showCaret:this.tooltipShowCaret,cssClass:this.tooltipCssClass,spacing:this.tooltipSpacing,context:this.tooltipContext}}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Fs),t.Y36(t.s_b),t.Y36(t.Qsj))},n.\u0275dir=t.lG2({type:n,selectors:[["","ngx-tooltip",""]],hostBindings:function(e,i){1&e&&t.NdJ("focusin",function(){return i.onFocus()})("blur",function(){return i.onBlur()})("mouseenter",function(){return i.onMouseEnter()})("mouseleave",function(o){return i.onMouseLeave(o.target)})("click",function(){return i.onMouseClick()})},inputs:{tooltipCssClass:"tooltipCssClass",tooltipTitle:"tooltipTitle",tooltipAppendToBody:"tooltipAppendToBody",tooltipSpacing:"tooltipSpacing",tooltipDisabled:"tooltipDisabled",tooltipShowCaret:"tooltipShowCaret",tooltipPlacement:"tooltipPlacement",tooltipAlignment:"tooltipAlignment",tooltipType:"tooltipType",tooltipCloseOnClickOutside:"tooltipCloseOnClickOutside",tooltipCloseOnMouseLeave:"tooltipCloseOnMouseLeave",tooltipHideTimeout:"tooltipHideTimeout",tooltipShowTimeout:"tooltipShowTimeout",tooltipTemplate:"tooltipTemplate",tooltipShowEvent:"tooltipShowEvent",tooltipContext:"tooltipContext",tooltipImmediateExit:"tooltipImmediateExit"},outputs:{show:"show",hide:"hide"}}),n})(),uc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({providers:[ic,Fs],imports:[[m.ez]]}),n})();typeof window<"u"?Vs=window:typeof global<"u"&&(Vs=global);let $i=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[m.ez,cc,uc],m.ez,cc,uc]}),n})(),I_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i]]}),n})(),vc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i]]}),n})(),O_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i]]}),n})(),M_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i]]}),n})(),N_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i]]}),n})(),xc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i]]}),n})();Math;let Us=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i]]}),n})(),R_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i,Us,xc]]}),n})(),Z_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i]]}),n})(),V_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i]]}),n})(),G_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i,Us,vc]]}),n})(),z_=(()=>{class n{constructor(){!function U_(){typeof SVGElement<"u"&&typeof SVGElement.prototype.contains>"u"&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)}()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[$i,I_,vc,O_,M_,N_,xc,R_,Z_,Us,V_,G_]}),n})();function H_(n,r){1&n&&(t.TgZ(0,"div"),t._UZ(1,"mat-spinner",3),t.qZA())}function Y_(n,r){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"strong"),t._uU(4),t.qZA()()),2&n){const e=t.oxw(3);t.xp6(1),t.hij(" ",t.lcZ(2,2,"ADMIN.VISUALIZER.USER_DESTINATION.FOUND_3")," "),t.xp6(3),t.Oqu(e.service)}}function W_(n,r){1&n&&(t.O4$(),t.TgZ(0,"marker",10),t._UZ(1,"path",11),t.qZA())}function X_(n,r){if(1&n&&(t.O4$(),t.TgZ(0,"g",12),t._UZ(1,"rect"),t.TgZ(2,"text",13),t._uU(3),t.qZA()()),2&n){const e=r.$implicit;t.Q6J("tooltipTitle",e.tooltip)("tooltipPlacement","top")("tooltipType","tooltip"),t.xp6(1),t.uIk("fill",e.color)("height",e.dimension.height)("width",e.dimension.width),t.xp6(1),t.uIk("y",e.dimension.height/2)("x",10),t.xp6(1),t.hij(" ",e.label," ")}}function $_(n,r){if(1&n&&(t.O4$(),t.TgZ(0,"g",14),t._UZ(1,"path",15),t.TgZ(2,"text",16)(3,"textPath",17),t._uU(4),t.qZA()()()),2&n){const e=r.$implicit;t.xp6(3),t.uIk("href","#"+e.id),t.xp6(1),t.hij(" ",e.label," ")}}const Q_=function(n,r){return[n,r]};function j_(n,r){if(1&n&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"strong"),t._uU(4),t.qZA(),t._uU(5),t.ALo(6,"translate"),t.TgZ(7,"strong"),t._uU(8),t.qZA(),t.YNc(9,Y_,5,4,"span",4),t.TgZ(10,"div",5)(11,"ngx-graph",6),t.YNc(12,W_,2,0,"ng-template",null,7,t.W1O),t.YNc(14,X_,4,9,"ng-template",null,8,t.W1O),t.YNc(16,$_,5,2,"ng-template",null,9,t.W1O),t.qZA()()()),2&n){const e=t.oxw(2);t.xp6(1),t.hij(" ",t.lcZ(2,12,"ADMIN.VISUALIZER.USER_DESTINATION.FOUND_1")," "),t.xp6(3),t.AsE("",e.user.firstName," ",e.user.lastName,""),t.xp6(1),t.hij(" ",t.lcZ(6,14,"ADMIN.VISUALIZER.USER_DESTINATION.FOUND_2")," "),t.xp6(3),t.Oqu(e.destination),t.xp6(1),t.Q6J("ngIf","noService"!==e.service),t.xp6(2),t.Q6J("links",e.hierarchialGraph.links)("nodes",e.hierarchialGraph.nodes)("view",t.WLB(16,Q_,e.innerWidth,e.innerHeight))("curve",e.curve)("draggingEnabled",!1)("zoomToFit$",e.zoomToFit$)}}function J_(n,r){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"strong"),t._uU(4),t.qZA()()),2&n){const e=t.oxw(3);t.xp6(1),t.hij(" ",t.lcZ(2,2,"ADMIN.VISUALIZER.USER_DESTINATION.NOT_FOUND_3")," "),t.xp6(3),t.Oqu(e.service)}}function K_(n,r){if(1&n&&(t._uU(0),t.ALo(1,"translate"),t.TgZ(2,"strong"),t._uU(3),t.qZA(),t._uU(4),t.ALo(5,"translate"),t.TgZ(6,"strong"),t._uU(7),t.qZA(),t.YNc(8,J_,5,4,"span",4),t._uU(9),t.ALo(10,"translate")),2&n){const e=t.oxw(2);t.hij(" ",t.lcZ(1,7,"ADMIN.VISUALIZER.USER_DESTINATION.NOT_FOUND_1")," "),t.xp6(3),t.AsE("",e.user.firstName," ",e.user.lastName,""),t.xp6(1),t.hij(" ",t.lcZ(5,9,"ADMIN.VISUALIZER.USER_DESTINATION.NOT_FOUND_2")," "),t.xp6(3),t.Oqu(e.destination),t.xp6(1),t.Q6J("ngIf","noService"!==e.service),t.xp6(1),t.hij(" ",t.lcZ(10,11,"ADMIN.VISUALIZER.USER_DESTINATION.NOT_FOUND_4")," ")}}function q_(n,r){if(1&n&&(t.YNc(0,j_,18,19,"div",1),t.YNc(1,K_,11,13,"ng-template",null,2,t.W1O)),2&n){const e=t.MAs(2),i=t.oxw();t.Q6J("ngIf",i.isConnected)("ngIfElse",e)}}let tv=(()=>{class n{constructor(e,i,a,o,v,T,N,U,J){this.route=e,this.facilityManager=i,this.userService=a,this.membersService=o,this.serviceService=v,this.resourceManager=T,this.groupService=N,this.voService=U,this.translate=J,this.isConnected=!1,this.loading=!0,this.hierarchialGraph={nodes:[],links:[]},this.curve=nr,this.zoomToFit$=new Pn.x,this.idCounter=0}static findConnectedGroups(e,i){const a=[];for(const o of e)for(const v of i)o.id===v.id&&a.push(o);return a}static findConnectedResources(e,i){const a=[];for(const o of e)for(const v of i)o.id===v.id&&a.push(o);return a}onResize(){this.innerWidth=window.innerWidth<600?window.innerWidth:window.innerWidth-420,this.innerHeight=window.innerHeight}ngOnInit(){this.innerWidth=window.innerWidth<600?window.innerWidth:window.innerWidth-420,this.innerHeight=window.innerHeight,this.getLocalizedNames(),this.route.queryParams.subscribe(e=>{this.destination=String(e.destination),this.service=String(e.service),this.userService.getUserById(Number(e.user)).subscribe(i=>{this.user=i,this.facilityManager.getFacilitiesByDestination(this.destination).subscribe(a=>{this.facilities=a,this.membersService.getMembersByUser(this.user.id).subscribe(o=>{if(this.membership=o,0===this.membership.length||0===this.facilities.length)return this.loading=!1,void(this.isConnected=!1);this.showGraph()})})})})}showGraph(){const e=""+this.id().toString(),i=this.user.firstName??" "+this.user.lastName??"",a=this.localUser,o="user: "+this.user.id.toString();this.hierarchialGraph.nodes.push({id:e,label:i,tooltip:a,color:"#FFFFCC",tip:o});const T=""+this.id().toString(),N="destination no id";this.hierarchialGraph.nodes.push("noService"===this.service?{id:T,label:this.destination,tooltip:this.localDestination+": "+this.destination,color:"#E0E0E0",tip:N}:{id:T,label:this.service+": "+this.destination,tooltip:this.localService+": "+this.service+", "+this.localDestination+": "+this.destination,color:"#E0E0E0",tip:N});for(const U of this.facilities)this.serviceService.getAllRichDestinationsForFacility(U.id).subscribe(J=>{this.connectToService(U,J),setTimeout(()=>{this.zoomToFit$.next(!0),this.loading=!1},2e3)})}connectToService(e,i){this.isConnectedToService(i)&&this.facilityManager.getAssignedResourcesForFacility(e.id).subscribe(a=>{for(const o of this.membership)this.connectToGroups(e,o,a)})}connectToGroups(e,i,a){this.facilityManager.getAllowedGroups(e.id,i.voId).subscribe(o=>{0!==o.length&&this.groupService.getMemberGroups(i.id).subscribe(v=>{const T=n.findConnectedGroups(o,v);if(0!==T.length)for(const N of T)this.connectToResource(e,N,a)})})}haveService(e){if("noService"===this.service)return!0;for(const i of e)if(this.service===i.name)return!0;return!1}connectToResource(e,i,a){this.resourceManager.getAssignedResourcesWithGroup(i.id).subscribe(o=>{const v=n.findConnectedResources(o,a);for(const T of v)this.resourceManager.getAssignedServicesToResource(T.id).subscribe(N=>{this.haveService(N)&&(this.isConnected=!0,this.addNodesToGraph(i.voId,i,T,e))})})}addNodesToGraph(e,i,a,o){if(-1===this.findEntityInGraph("Facility: "+o.id.toString())){const v=""+this.id().toString(),T=this.localFacility+": "+o.name,N=o.description,U="Facility: "+o.id.toString();this.hierarchialGraph.nodes.push({id:v,label:T,tooltip:N,color:"#FFCCFF",tip:U});const ct={source:v,target:this.hierarchialGraph.nodes[this.findEntityInGraph("destination no id")].id};this.hierarchialGraph.links.push(ct)}this.voService.getVoById(e).subscribe(v=>{if(-1===this.findEntityInGraph("Vo: "+v.id.toString())){const N=this.id().toString(),U=this.localVo+": "+v.shortName,J=v.name,ct="Vo: "+v.id.toString();this.hierarchialGraph.nodes.push({id:N,label:U,tooltip:J,color:"#E5FFCC",tip:ct});const Ct={source:this.hierarchialGraph.nodes[this.findEntityInGraph("user: "+this.user.id.toString())].id,target:N};this.hierarchialGraph.links.push(Ct)}if(-1===this.findEntityInGraph("Group: "+i.id.toString())){const N=this.id().toString(),U=this.localGroup+": "+i.name,J=i.description,ct="Group: "+i.id.toString();this.hierarchialGraph.nodes.push({id:N,label:U,tooltip:J,color:"#CCE5FF",tip:ct});const Ct={source:this.hierarchialGraph.nodes[this.findEntityInGraph("Vo: "+v.id.toString())].id,target:N};this.hierarchialGraph.links.push(Ct)}const T=this.findEntityInGraph("Resource: "+a.id.toString());if(-1!==T){const N={source:this.hierarchialGraph.nodes[this.findEntityInGraph("Group: "+i.id.toString())].id,target:this.hierarchialGraph.nodes[T].id};this.hierarchialGraph.links.push(N)}else{const N=this.id().toString(),U=this.localResource+": "+a.name,J=a.description,ct="Resource: "+a.id.toString();this.hierarchialGraph.nodes.push({id:N,label:U,tooltip:J,color:"#FFCCCC",tip:ct});const Ct={source:this.hierarchialGraph.nodes[this.findEntityInGraph("Group: "+i.id.toString())].id,target:N};this.hierarchialGraph.links.push(Ct);const It={source:N,target:this.hierarchialGraph.nodes[this.findEntityInGraph("Facility: "+o.id.toString())].id};this.hierarchialGraph.links.push(It)}})}findEntityInGraph(e){for(let i=0;i{this.localUser=e}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.VO").subscribe(e=>{this.localVo=e}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.GROUP").subscribe(e=>{this.localGroup=e}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.RESOURCE").subscribe(e=>{this.localResource=e}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.FACILITY").subscribe(e=>{this.localFacility=e}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.SERVICE").subscribe(e=>{this.localService=e}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.DESTINATION").subscribe(e=>{this.localDestination=e})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(p.gz),t.Y36(H.IQ),t.Y36(H.Fv),t.Y36(H.uq),t.Y36(H.KK),t.Y36(H.xk),t.Y36(H.ff),t.Y36(H.YF),t.Y36(u.sK))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-user-destination-graph"]],hostVars:2,hostBindings:function(e,i){1&e&&t.NdJ("resize",function(o){return i.onResize(o)},!1,t.Jf7),2&e&&t.ekj("router-component",i.true)},decls:6,vars:5,consts:[[1,"page-subtitle"],[4,"ngIf","ngIfElse"],["elseBlock",""],[1,"ml-auto","mr-auto"],[4,"ngIf"],[1,"card","w-100","h-100"],[1,"chart-container",3,"links","nodes","view","curve","draggingEnabled","zoomToFit$"],["defsTemplate",""],["nodeTemplate",""],["linkTemplate",""],["id","arrow","markerHeight","4","refX","8","refY","0","markerWidth","4","orient","auto","viewBox","0 -5 10 10"],["d","M0,-5L10,0L0,5",1,"arrow-head"],["ngx-tooltip","",1,"node",3,"tooltipTitle","tooltipPlacement","tooltipType"],["alignment-baseline","central"],[1,"edge"],["marker-end","url(#arrow)","stroke-width","2",1,"line"],["text-anchor","end",1,"edge-label"],["startOffset","60%",2,"fill","#000"]],template:function(e,i){if(1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.YNc(3,H_,2,0,"div",1),t.YNc(4,q_,3,2,"ng-template",null,2,t.W1O)),2&e){const a=t.MAs(5);t.xp6(1),t.hij(" ",t.lcZ(2,3,"ADMIN.VISUALIZER.USER_DESTINATION.TITLE"),"\n"),t.xp6(2),t.Q6J("ngIf",i.loading)("ngIfElse",a)}},dependencies:[Np,m.O5,Bs,tt.Ou,u.X$]}),n})();var ev=s(25828),yc=s(69024),nv=s(29862),ma=s(21029),ga=s(94391),iv=s(31359);function rv(n,r){1&n&&t._UZ(0,"mat-spinner",3)}function av(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",15),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(3);return t.KtG(a.editUser())}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA()()}}function sv(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",16),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(3);return t.KtG(a.anonymizeUser())}),t.TgZ(1,"mat-icon"),t._uU(2,"no_accounts"),t.qZA()()}}function ov(n,r){1&n&&(t.TgZ(0,"mat-icon",17),t.ALo(1,"translate"),t._uU(2," blur_off "),t.qZA()),2&n&&t.s9C("matTooltip",t.lcZ(1,1,"USER_DETAIL.DASHBOARD.ANONYMIZED"))}function lv(n,r){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,av,3,0,"button",12),t.YNc(2,sv,3,0,"button",13),t.YNc(3,ov,3,3,"mat-icon",14),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",!e.anonymized),t.xp6(1),t.Q6J("ngIf",!e.anonymized),t.xp6(1),t.Q6J("ngIf",e.anonymized)}}const cv=function(){return{color:"black"}},uv=function(n){return["/admin/users",n]};function hv(n,r){if(1&n&&(t.TgZ(0,"div",4),t._UZ(1,"mat-icon",5),t.ALo(2,"translate"),t.TgZ(3,"div",6)(4,"div",7)(5,"a",8),t._uU(6),t.ALo(7,"userFullName"),t.qZA(),t.TgZ(8,"span",9),t._uU(9),t.qZA(),t.YNc(10,lv,4,3,"span",10),t.qZA(),t.TgZ(11,"div"),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.TgZ(14,"span",11),t._uU(15),t.ALo(16,"translate"),t.ALo(17,"translate"),t.qZA()()()),2&n){const e=t.oxw();t.xp6(1),t.s9C("matTooltip",t.lcZ(2,12,"ADMIN_USER.ENTITY")),t.Q6J("ngStyle",t.DdM(22,cv))("svgIcon",e.svgIcon),t.xp6(4),t.Q6J("routerLink",t.VKq(23,uv,e.user.id)),t.xp6(1),t.hij(" ",t.lcZ(7,14,e.user)," "),t.xp6(3),t.hij(" \xa0#",e.user.id," "),t.xp6(1),t.Q6J("ngIf",e.authResolver.isPerunAdmin()),t.xp6(2),t.AsE("",t.lcZ(13,16,"ADMIN_USER.UUID"),": ",e.user.uuid,""),t.xp6(3),t.lnq(" ",t.lcZ(16,18,"ADMIN_USER.ENTITY"),", ",t.lcZ(17,20,"ADMIN_USER.USER_TYPE"),": ",e.getUserType()," ")}}let dv=(()=>{class n{constructor(e,i,a,o,v,T,N,U,J){this.route=e,this.attributesService=i,this.usersService=a,this.sideMenuService=o,this.sideMenuItemService=v,this.dialog=T,this.authResolver=N,this.entityStorageService=U,this.router=J,this.loading=!1,this.svgIcon="perun-user-dark"}ngOnInit(){this.loading=!0,this.route.params.subscribe(e=>{const i=Number(e.userId);this.entityStorageService.setEntity({id:Number(i),beanName:"User"}),this.path=`/admin/users/${i}`,this.regex="/admin/users/\\d+",this.usersService.getUserById(i).subscribe(o=>{this.user=o,this.user.serviceUser&&(this.svgIcon="perun-service-identity");const v=this.sideMenuItemService.parseUser(o,this.path,this.regex);this.sideMenuService.setAdminItems([v]),this.loading=!1},()=>this.loading=!1),this.attributesService.getAttribute("urn:perun:user:attribute-def:virt:anonymized",void 0,void 0,i).subscribe(o=>{this.anonymized=Boolean(o.value)})})}editUser(){const e=(0,fe.kZ)();e.width="450px",e.data={theme:"admin-theme",user:this.user},this.dialog.open(nv.x,e).afterClosed().subscribe(a=>{a&&this.usersService.getUserById(this.user.id).subscribe(o=>{this.user=o})})}getUserType(){return this.user.serviceUser?"Service":"Person"}anonymizeUser(){const e=(0,fe.kZ)();e.width="550px",e.data={theme:"admin-theme",user:this.user},this.dialog.open(ma.GI,e).afterClosed().subscribe(a=>{a&&this.router.navigate(["/admin","users"],{queryParamsHandling:"merge"})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(p.gz),t.Y36(H.H8),t.Y36(H.Fv),t.Y36(d.D),t.Y36(yc.V),t.Y36(M.uw),t.Y36(Z.x4),t.Y36(Z.fb),t.Y36(p.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-admin-user-detail-page"]],decls:5,vars:2,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","user-theme"],["class","mr-auto ml-auto",4,"ngIf"],["class","d-flex page-title-headtitle",4,"ngIf"],[1,"mr-auto","ml-auto"],[1,"d-flex","page-title-headtitle"],[1,"perun-icon","perun-icon-detail",3,"ngStyle","svgIcon","matTooltip"],[1,"page-title-block"],[1,"page-title-headline","d-flex","align-items-center"],["data-cy","user-name-link",1,"user-link",3,"routerLink"],[1,"text-muted"],[4,"ngIf"],[1,"mt-1","entity-info"],["mat-icon-button","","data-cy","edit-user-button",3,"click",4,"ngIf"],["mat-icon-button","",3,"click",4,"ngIf"],["class","mat-icon-war ml-2",3,"matTooltip",4,"ngIf"],["mat-icon-button","","data-cy","edit-user-button",3,"click"],["mat-icon-button","",3,"click"],[1,"mat-icon-war","ml-2",3,"matTooltip"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"perun-web-apps-back-button"),t.YNc(2,rv,1,0,"mat-spinner",1),t.YNc(3,hv,18,25,"div",2),t._UZ(4,"app-animated-router-outlet"),t.qZA()),2&e&&(t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading&&void 0!==i.user))},dependencies:[m.O5,m.PC,p.yS,l.Hw,G.lW,tt.Ou,sn.gM,h.A,f.W,ga.QG,u.X$,iv.d]}),n})();var pv=s(17755),fv=s(74837),mv=s(85985),gv=s(98973),_v=s(15935);function vv(n,r){1&n&&t._UZ(0,"mat-spinner",5)}const xv=function(){return["id","name","type"]};function yv(n,r){if(1&n&&t._UZ(0,"app-ext-sources-list",6),2&n){const e=t.oxw();t.Q6J("extSources",e.extSources)("filterValue",e.filterValue)("displayedColumns",t.DdM(4,xv))("tableId",e.tableId)}}let bv=(()=>{class n{constructor(e,i,a,o){this.extSourceService=e,this.notificator=i,this.translate=a,this.authResolver=o,this.extSources=[],this.filterValue="",this.loading=!1,this.tableId=En.qy,this.translate.get("ADMIN.EXT_SOURCES.LOAD_SUCCESS").subscribe(v=>this.loadSuccess=v)}ngOnInit(){this.refreshTable()}applyFilter(e){this.filterValue=e}onLoad(){this.extSourceService.loadExtSourcesDefinitions().subscribe(()=>{this.notificator.showSuccess(this.loadSuccess),this.refreshTable()})}refreshTable(){this.loading=!0,this.extSourceService.getExtSources().subscribe(e=>{this.extSources=e,this.loading=!1})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(H.KG),t.Y36(Z.V6),t.Y36(u.sK),t.Y36(Z.x4))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-admin-ext-sources"]],decls:8,vars:6,consts:[[1,"page-subtitle"],[3,"click"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"extSources","filterValue","displayedColumns","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"extSources","filterValue","displayedColumns","tableId"]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("click",function(){return i.onLoad()}),t.qZA(),t.TgZ(5,"perun-web-apps-immediate-filter",2),t.NdJ("filter",function(o){return i.applyFilter(o)}),t.qZA(),t.YNc(6,vv,1,0,"mat-spinner",3),t.YNc(7,yv,1,5,"app-ext-sources-list",4),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,4,"ADMIN.EXT_SOURCES.TITLE")),t.xp6(3),t.Q6J("placeholder","ADMIN.EXT_SOURCES.SEARCH"),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,tt.Ou,_v.D,gn.t,In.L,u.X$]}),n})();var Tv=s(6097),Cv=s(97453),za=s(54004);function wv(n,r){1&n&&t._UZ(0,"mat-spinner",7)}function Av(n,r){if(1&n&&(t.TgZ(0,"mat-option",14),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.name," ")}}function Sv(n,r){if(1&n&&(t.TgZ(0,"div")(1,"mat-form-field",8),t._UZ(2,"input",9),t.ALo(3,"translate"),t.TgZ(4,"mat-error"),t._uU(5),t.ALo(6,"translate"),t.qZA()(),t.TgZ(7,"mat-form-field",8),t._UZ(8,"input",10),t.ALo(9,"translate"),t.TgZ(10,"mat-error"),t._uU(11),t.ALo(12,"translate"),t.qZA(),t.TgZ(13,"mat-autocomplete",11,12),t.YNc(15,Av,2,2,"mat-option",13),t.ALo(16,"async"),t.qZA()()()),2&n){const e=t.MAs(14),i=t.oxw();t.xp6(2),t.s9C("placeholder",t.lcZ(3,9,"DIALOGS.ADD_USER_EXT_SOURCE.LOGIN")),t.Q6J("formControl",i.loginControl),t.xp6(3),t.hij(" ",t.lcZ(6,11,"DIALOGS.ADD_USER_EXT_SOURCE.EMPTY_LOGIN")," "),t.xp6(3),t.s9C("placeholder",t.lcZ(9,13,"DIALOGS.ADD_USER_EXT_SOURCE.EXT_SOURCE")),t.Q6J("formControl",i.extSourcesControl)("matAutocomplete",e),t.xp6(3),t.hij(" ",t.lcZ(12,15,"DIALOGS.ADD_USER_EXT_SOURCE.EMPTY_EXT_SOURCE")," "),t.xp6(2),t.Q6J("displayWith",i.displayFn),t.xp6(2),t.Q6J("ngForOf",t.lcZ(16,17,i.filteredExtSources))}}let Ev=(()=>{class n{constructor(e,i,a,o,v,T){this.dialogRef=e,this.data=i,this.extSourcesManagerService=a,this.usersManagerService=o,this.translate=v,this.notificator=T,this.extSources=[],v.get("DIALOGS.ADD_USER_EXT_SOURCE.SUCCESS").subscribe(N=>this.successMessage=N)}ngOnInit(){this.loading=!0,this.loginControl=new rt.p4("",[rt.kI.required,rt.kI.pattern(".*[\\S]+.*")]),this.extSourcesControl=new rt.p4("",[rt.kI.required]),this.loginControl.markAllAsTouched(),this.extSourcesControl.markAllAsTouched(),this.filteredExtSources=this.extSourcesControl.valueChanges.pipe((0,li.O)(""),(0,za.U)(e=>this._filter(e))),this.extSourcesManagerService.getExtSources().subscribe(e=>{this.extSources=e,this.filteredExtSources=this.extSourcesControl.valueChanges.pipe((0,li.O)(""),(0,za.U)(i=>this._filter(i))),this.loading=!1},()=>this.loading=!1)}displayFn(e){return e?e.name:null}onCancel(){this.dialogRef.close(!1)}onAdd(){this.loading=!0,this.usersManagerService.addUserExtSource({user:this.data.userId,userExtSource:{beanName:"",extSource:this.extSourcesControl.value,id:0,login:this.loginControl.value,userId:this.data.userId}}).subscribe(()=>{this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0)},()=>this.loading=!1)}_filter(e){const i="string"==typeof e?e.toLowerCase():e.name.toLowerCase();return this.extSources.filter(a=>a.name.toLowerCase().includes(i))}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(M.WI),t.Y36(H.KG),t.Y36(H.Fv),t.Y36(u.sK),t.Y36(Z.V6))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-add-user-ext-source-dialog"]],decls:13,vars:12,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","user-theme"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[1,"center-self","w-100"],["matInput","","required","",3,"formControl","placeholder"],["matInput","","required","","type","text",3,"formControl","matAutocomplete","placeholder"],[3,"displayWith"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(e,i){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div",1),t.YNc(4,wv,1,0,"mat-spinner",2),t.YNc(5,Sv,17,19,"div",3),t.qZA(),t.TgZ(6,"div",4)(7,"button",5),t.NdJ("click",function(){return i.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",6),t.NdJ("click",function(){return i.onAdd()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"DIALOGS.ADD_USER_EXT_SOURCE.TITLE")),t.xp6(3),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading),t.xp6(3),t.hij(" ",t.lcZ(9,8,"DIALOGS.ADD_USER_EXT_SOURCE.CANCEL")," "),t.xp6(2),t.Q6J("disabled",i.loginControl.invalid||i.extSourcesControl.invalid||i.loading),t.xp6(1),t.hij(" ",t.lcZ(12,10,"DIALOGS.ADD_USER_EXT_SOURCE.ADD")," "))},dependencies:[m.sg,m.O5,Rt.XC,Rt.ZL,zt.ey,ie.TO,ie.KE,Mt.Nt,rt.Fj,rt.JJ,rt.Q7,rt.oH,G.lW,M.uh,M.xY,M.H8,tt.Ou,m.Ov,u.X$],styles:[".column-size[_ngcontent-%COMP%]{width:10rem!important;font-weight:700}.center-self[_ngcontent-%COMP%]{margin-top:auto;margin-bottom:auto}.auto-width[_ngcontent-%COMP%] .mat-form-field[_ngcontent-%COMP%]{width:auto!important}.auto-width[_ngcontent-%COMP%] .mat-select-value[_ngcontent-%COMP%]{max-width:100%;width:auto}.pre-wrap[_ngcontent-%COMP%]{white-space:pre-wrap}"]}),n})();var Dv=s(80275);function Lv(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.addIdentity())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"USER_DETAIL.IDENTITIES.ADD"),"\n"))}function kv(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.removeIdentity())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"USER_DETAIL.IDENTITIES.REMOVE"),"\n")}}function Iv(n,r){1&n&&t._UZ(0,"mat-spinner",10)}function Ov(n,r){if(1&n&&(t.TgZ(0,"div"),t._UZ(1,"perun-web-apps-user-ext-sources-list",11),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("displayedColumns",e.displayedColumns)("filterValue",e.filterValue)("selection",e.selection)("tableId",e.tableId)("userExtSources",e.userExtSources)}}let Mv=(()=>{class n{constructor(e,i,a,o,v,T){this.usersManagerService=e,this.storage=i,this.registrarManagerService=a,this.dialog=o,this.route=v,this.authResolver=T,this.userExtSources=[],this.selection=new B.Ov(!1,[]),this.displayedColumns=["select","id","extSourceName","login","lastAccess"],this.tableId=En.gG,this.filterValue=""}ngOnInit(){this.route.parent.params.subscribe(e=>{this.userId=Number(e.userId)}),this.refreshTable()}refreshTable(){this.loading=!0,this.selection.clear(),this.usersManagerService.getRichUserExtSources(this.userId).subscribe(e=>{this.userExtSources=e,this.loading=!1},()=>this.loading=!1)}addIdentity(){const e=(0,fe.kZ)();e.width="1000px",e.data={userId:this.userId},this.dialog.open(Ev,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}removeIdentity(){const e=(0,fe.kZ)();e.width="450px",e.data={showSuccess:!0,theme:"user-theme",userId:this.userId,extSources:this.selection.selected},this.dialog.open(ma.Lc,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}applyFilter(e){this.filterValue=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(H.Fv),t.Y36(Z.d6),t.Y36(H.tk),t.Y36(M.uw),t.Y36(p.gz),t.Y36(Z.x4))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-user-identities"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],[1,"admin-theme"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","filterValue","selection","tableId","userExtSources"]],template:function(e,i){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.YNc(4,Lv,3,3,"button",2),t.YNc(5,kv,3,4,"button",3),t.TgZ(6,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(o){return i.applyFilter(o)}),t.qZA(),t.TgZ(7,"div",5),t.YNc(8,Iv,1,0,"mat-spinner",6),t.qZA(),t.YNc(9,Ov,2,5,"div",7)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"USER_DETAIL.IDENTITIES.TITLE")),t.xp6(3),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("placeholder","USER_DETAIL.IDENTITIES.FILTER_PLACEHOLDER"),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,G.lW,tt.Ou,gn.t,In.L,Dv.j,u.X$]}),n})();var Nv=s(80774),Pv=s(62109);function Fv(n,r){1&n&&t._UZ(0,"mat-spinner",5)}const Rv=function(){return["id","name","vo","facility","description"]};function Bv(n,r){if(1&n&&t._UZ(0,"perun-web-apps-resources-list",6),2&n){const e=t.oxw();t.Q6J("displayedColumns",t.DdM(4,Rv))("resources",e.resources)("filterValue",e.filterValue)("tableId",e.tableId)}}let Zv=(()=>{class n{constructor(e,i){this.userManager=e,this.route=i,this.resources=[],this.tableId=En.kO,this.filterValue=""}ngOnInit(){this.refreshTable()}refreshTable(){this.loading=!0,this.route.parent.params.subscribe(e=>{const i=Number(e.userId);this.userManager.getAssignedRichResourcesForUser(i).subscribe(a=>{this.resources=a,this.loading=!1})})}resourceFilter(e){this.filterValue=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(H.Fv),t.Y36(p.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-perun-web-apps-user-resources"]],decls:8,vars:6,consts:[[1,"page-subtitle"],[3,"refresh"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"displayedColumns","resources","filterValue","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","resources","filterValue","tableId"]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.TgZ(5,"perun-web-apps-immediate-filter",2),t.NdJ("filter",function(o){return i.resourceFilter(o)}),t.qZA(),t.YNc(6,Fv,1,0,"mat-spinner",3),t.YNc(7,Bv,1,5,"perun-web-apps-resources-list",4),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,4,"USER_DETAIL.RESOURCES.TITLE")),t.xp6(3),t.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,tt.Ou,gn.t,In.L,Pv.C,u.X$]}),n})();var Vv=s(61365),Gv=s(71103),Uv=s(53984);const zv=["list"];function Hv(n,r){1&n&&t._UZ(0,"mat-spinner",8)}function Yv(n,r){if(1&n&&t._UZ(0,"perun-web-apps-attributes-list",9,10),2&n){const e=t.oxw();t.Q6J("selection",e.selection)("attributes",e.attributes)("tableId",e.tableId)}}let Wv=(()=>{class n{constructor(e,i,a,o){this.dialog=e,this.attributesManager=i,this.userService=a,this.route=o,this.loading=!1,this.selection=new B.Ov(!0,[]),this.tableId=En.rF,this.attributes=[]}ngOnInit(){this.route.params.subscribe(e=>{const i=Number(e.identityId);this.userService.getUserExtSourceById(i).subscribe(a=>{this.userExtSource=a,this.refreshTable()})})}refreshTable(){this.loading=!0,this.attributesManager.getUserExtSourceAttributes(this.userExtSource.id).subscribe(e=>{this.attributes=(0,fe.MX)(e),this.selection.clear(),this.loading=!1})}onAdd(){const e=(0,fe.kZ)();e.width="1050px",e.data={entityId:this.userExtSource.id,entity:"ues",notEmptyAttributes:this.attributes,style:"user-theme"},this.dialog.open(Gv.n,e).afterClosed().subscribe(a=>{"saved"===a&&this.refreshTable()})}onSave(){this.list.updateMapAttributes();const e=(0,fe.kZ)();e.width="450px",e.data={entityId:this.userExtSource.id,entity:"ues",attributes:this.selection.selected},this.dialog.open(ma.wA,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}onRemove(){const e=(0,fe.kZ)();e.width="450px",e.data={entityId:this.userExtSource.id,entity:"ues",attributes:this.selection.selected},this.dialog.open(Vv.k,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.uw),t.Y36(H.H8),t.Y36(H.Fv),t.Y36(p.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-identity-detail"]],viewQuery:function(e,i){if(1&e&&t.Gf(zv,5),2&e){let a;t.iGM(a=t.CRH())&&(i.list=a.first)}},decls:26,vars:32,consts:[[1,"page-subtitle"],[1,"mb-2"],[3,"refresh"],["color","accent","mat-flat-button","",1,"mr-2",3,"disabled","click"],["color","accent","mat-flat-button","",1,"mr-2",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],["class","ml-auto mr-auto",4,"ngIf"],[3,"selection","attributes","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"selection","attributes","tableId"],["list",""]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"div"),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"div",1),t._uU(11),t.ALo(12,"translate"),t.ALo(13,"date"),t.qZA(),t.TgZ(14,"perun-web-apps-refresh-button",2),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.TgZ(15,"button",3),t.NdJ("click",function(){return i.onSave()}),t._uU(16),t.ALo(17,"translate"),t.qZA(),t.TgZ(18,"button",4),t.NdJ("click",function(){return i.onAdd()}),t._uU(19),t.ALo(20,"translate"),t.qZA(),t.TgZ(21,"button",5),t.NdJ("click",function(){return i.onRemove()}),t._uU(22),t.ALo(23,"translate"),t.qZA(),t.YNc(24,Hv,1,0,"mat-spinner",6),t.YNc(25,Yv,2,3,"perun-web-apps-attributes-list",7),t.qZA()),2&e&&(t.xp6(2),t.AsE(" ",t.lcZ(3,15,"SHARED.IDENTITY_DETAIL.TITLE")," - ",i.userExtSource?i.userExtSource.extSource.name:""," "),t.xp6(3),t.AsE(" ",t.lcZ(6,17,"SHARED.IDENTITY_DETAIL.TYPE"),": ",i.userExtSource?i.userExtSource.extSource.type:""," "),t.xp6(3),t.AsE(" ",t.lcZ(9,19,"SHARED.IDENTITY_DETAIL.LOGIN"),": ",i.userExtSource?i.userExtSource.login:""," "),t.xp6(3),t.AsE(" ",t.lcZ(12,21,"SHARED.IDENTITY_DETAIL.LAST_ACCESS"),": ",i.userExtSource?t.xi3(13,23,i.userExtSource.lastAccess,"d.M.y H:mm:ss"):""," "),t.xp6(4),t.Q6J("disabled",0===i.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(17,26,"SHARED.IDENTITY_DETAIL.SAVE")," "),t.xp6(3),t.hij(" ",t.lcZ(20,28,"SHARED.IDENTITY_DETAIL.ADD")," "),t.xp6(2),t.Q6J("disabled",0===i.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(23,30,"SHARED.IDENTITY_DETAIL.REMOVE")," "),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,G.lW,tt.Ou,gn.t,Uv.p,m.uU,u.X$]}),n})();var Xv=s(40009),$v=s(90719);function Qv(n,r){1&n&&t._UZ(0,"mat-spinner",3)}function jv(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",18),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.editService())}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA()()}}function Jv(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",19),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.removeService())}),t.TgZ(1,"mat-icon"),t._uU(2,"delete_forever"),t.qZA()()}}function Kv(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",20),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.evaluateConsents())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SERVICE_DETAIL.EVALUATE_CONSENTS")," "))}const qv=function(){return{color:"black"}},bc=function(n){return["/admin/services",n]};function t0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",4),t._UZ(1,"mat-icon",5),t.ALo(2,"translate"),t.TgZ(3,"div",6)(4,"div",7)(5,"div",8)(6,"div",9)(7,"a",10),t.NdJ("auxclick",function(a){return a.preventDefault()}),t._uU(8),t.qZA(),t.TgZ(9,"span",11),t._uU(10),t.qZA(),t.YNc(11,jv,3,0,"button",12),t.YNc(12,Jv,3,0,"button",13),t.qZA(),t.TgZ(13,"span",14),t._uU(14),t.ALo(15,"translate"),t.qZA()()(),t.TgZ(16,"div",15)(17,"mat-slide-toggle",16),t.NdJ("toggleChange",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.changeServiceStatus())}),t._uU(18),t.ALo(19,"translate"),t.qZA(),t.TgZ(20,"mat-slide-toggle",16),t.NdJ("toggleChange",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.propagationChange())}),t._uU(21),t.ALo(22,"translate"),t.qZA(),t.YNc(23,Kv,3,3,"button",17),t.qZA()()()}if(2&n){const e=t.oxw();t.xp6(1),t.s9C("matTooltip",t.lcZ(2,15,"SERVICE_DETAIL.ENTITY")),t.Q6J("ngStyle",t.DdM(23,qv)),t.xp6(6),t.Q6J("perunWebAppsMiddleClickRouterLink",t.VKq(24,bc,e.service.id.toString()))("routerLink",t.VKq(26,bc,e.service.id)),t.xp6(1),t.hij(" ",e.service.name," "),t.xp6(2),t.hij(" \xa0 #",e.service.id," "),t.xp6(1),t.Q6J("ngIf",e.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("ngIf",e.authResolver.isPerunAdmin()),t.xp6(2),t.AsE(" ",t.lcZ(15,17,"SERVICE_DETAIL.DESCRIPTION"),": ",e.service.description," "),t.xp6(3),t.Q6J("checked",e.service.enabled),t.xp6(1),t.hij(" ",t.lcZ(19,19,"SERVICE_DETAIL.ENABLE")," "),t.xp6(2),t.Q6J("checked",e.service.useExpiredMembers),t.xp6(1),t.hij(" ",t.lcZ(22,21,"SERVICE_DETAIL.PROPAGATE")," "),t.xp6(2),t.Q6J("ngIf",e.authResolver.isPerunAdmin())}}let e0=(()=>{class n{constructor(e,i,a,o,v,T,N,U,J,ct,ot){this.route=e,this.router=i,this.consentsManager=a,this.serviceManager=o,this.sideMenuService=v,this.sideMenuItemService=T,this.dialog=N,this.authResolver=U,this.translate=J,this.notificator=ct,this.entityStorageService=ot,this.loading=!1}ngOnInit(){this.loading=!0,this.route.params.subscribe(e=>{this.serviceId=Number(e.serviceId),this.entityStorageService.setEntity({id:this.serviceId,beanName:"Service"}),this.refresh()})}editService(){const e=(0,fe.kZ)();e.width="600px",e.data={theme:"service-theme",service:this.service},this.dialog.open(Xv.R,e).afterClosed().subscribe(a=>{a&&this.refresh()})}removeService(){const e=(0,fe.kZ)();e.width="600px",e.data={theme:"service-theme",services:[this.service]},this.dialog.open($v.m,e).afterClosed().subscribe(a=>{a&&this.router.navigate(["/admin/services"],{queryParamsHandling:"preserve"})})}changeServiceStatus(){this.service.enabled=!this.service.enabled,this.serviceManager.updateService({service:this.service}).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("SERVICE_DETAIL.STATUS_CHANGE_SUCCESS"))},()=>this.service.enabled=!this.service.enabled)}propagationChange(){this.service.useExpiredMembers=!this.service.useExpiredMembers,this.serviceManager.updateService({service:this.service}).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("SERVICE_DETAIL.PROPAGATION_CHANGE_SUCCESS"))},()=>this.service.useExpiredMembers=!this.service.useExpiredMembers)}evaluateConsents(){const e=(0,fe.kZ)();e.width="500px",e.data={title:this.translate.instant("SERVICE_DETAIL.CONFIRM_DIALOG_TITLE"),theme:"service-theme",description:this.translate.instant("SERVICE_DETAIL.CONFIRM_DIALOG_DESCRIPTION"),items:[this.service.name],type:"confirmation",showAsk:!1},this.dialog.open(ma.Ts,e).afterClosed().subscribe(a=>{a&&this.consentsManager.evaluateConsentsForService(this.service.id).subscribe(()=>this.notificator.showSuccess(this.translate.instant("SERVICE_DETAIL.EVALUATION_FINISH")))})}refresh(){this.serviceManager.getServiceById(this.serviceId).subscribe(e=>{this.service=e;const i=this.sideMenuItemService.parseService(this.service);this.sideMenuService.setAdminItems([i]),this.loading=!1},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(p.gz),t.Y36(p.F0),t.Y36(H.WY),t.Y36(H.KK),t.Y36(d.D),t.Y36(yc.V),t.Y36(M.uw),t.Y36(Z.x4),t.Y36(u.sK),t.Y36(Z.V6),t.Y36(Z.fb))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-service-detail-page"]],decls:5,vars:2,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","service-theme"],["class","ml-auto mr-auto",4,"ngIf"],["class","page-title-headtitle detail-layout",4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"page-title-headtitle","detail-layout"],["svgIcon","perun-service",1,"perun-icon","perun-icon-detail",3,"matTooltip","ngStyle"],[1,"wrap-container"],[1,"detail-info"],[1,"flex-column"],[1,"page-title-headline","d-flex","align-items-center"],["data-cy","service-name-link",1,"service-link",3,"perunWebAppsMiddleClickRouterLink","routerLink","auxclick"],[1,"text-muted"],["aria-label","Edit service","data-cy","service-edit-button","mat-icon-button","",3,"click",4,"ngIf"],["aria-label","Remove service","mat-icon-button","",3,"click",4,"ngIf"],[1,"mt-1","entity-info"],[1,"detail-actions"],["labelPosition","before",3,"checked","toggleChange"],["class","action-button evaluate-button","mat-stroked-button","",3,"click",4,"ngIf"],["aria-label","Edit service","data-cy","service-edit-button","mat-icon-button","",3,"click"],["aria-label","Remove service","mat-icon-button","",3,"click"],["mat-stroked-button","",1,"action-button","evaluate-button",3,"click"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"perun-web-apps-back-button"),t.YNc(2,Qv,1,0,"mat-spinner",1),t.YNc(3,t0,24,28,"div",2),t._UZ(4,"app-animated-router-outlet"),t.qZA()),2&e&&(t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,m.PC,p.yS,l.Hw,G.lW,tt.Ou,sn.gM,Tt.Rr,h.A,f.W,ga.YH,ga.QG,u.X$],styles:[".detail-layout[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:1.2em}.detail-info[_ngcontent-%COMP%]{display:flex;flex-direction:row;margin-right:1.2em}.wrap-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap;gap:.3em}.detail-actions[_ngcontent-%COMP%]{display:flex;flex-direction:column;border-left:1px solid rgba(0,0,0,.2);padding-left:.5em}.evaluate-button[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content}"],data:{animation:[Wn.Ji]}}),n})(),n0=(()=>{class n{constructor(e){this.entityStorageService=e,this.navItems=[]}ngOnInit(){this.service=this.entityStorageService.getEntity(),this.initNavItems()}initNavItems(){this.navItems=[{cssIcon:"perun-attributes",url:`/admin/services/${this.service.id}/required-attributes`,label:"MENU_ITEMS.SERVICE.REQUIRED_ATTRIBUTES",style:"service-btn"},{cssIcon:"perun-service_destination",url:`/admin/services/${this.service.id}/destinations`,label:"MENU_ITEMS.SERVICE.DESTINATIONS",style:"service-btn"}]}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Z.fb))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-service-overview"]],decls:1,vars:2,consts:[[3,"items","size"]],template:function(e,i){1&e&&t._UZ(0,"perun-web-apps-menu-buttons-field",0),2&e&&t.Q6J("items",i.navItems)("size","small")},dependencies:[L.L]}),n})();var r0=s(32076),a0=s(24351),Tc=s(54482),s0=s(25032),l0=s(86099),c0=s(57359);function h0(n,r){1&n&&t._UZ(0,"mat-spinner",4)}function d0(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",9),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.Q6J("alert_type","warn"),t.xp6(1),t.Oqu(t.lcZ(2,2,"DIALOGS.ADD_REQUIRED_ATTRIBUTES.ACTIVE_WARN")))}function p0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",5),t.YNc(1,d0,3,4,"perun-web-apps-alert",6),t.ALo(2,"async"),t.TgZ(3,"perun-web-apps-immediate-filter",7),t.NdJ("filter",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.applyFilter(a))}),t.qZA(),t._UZ(4,"app-attr-def-list",8),t.ALo(5,"async"),t.ALo(6,"async"),t.qZA()}if(2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",t.lcZ(2,8,e.serviceEnabled$)),t.xp6(2),t.Q6J("placeholder","DIALOGS.ADD_REQUIRED_ATTRIBUTES.FILTER"),t.xp6(1),t.Q6J("selection",e.selection)("definitions",e.attrDefinitions)("disableRouting",!0)("filterValue",e.filterValue)("serviceEnabled",t.lcZ(5,10,e.serviceEnabled$))("consentRequired",t.lcZ(6,12,e.consentRequired$))}}function f0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",10)(1,"button",11),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onCancel())}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"button",12),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onAdd())}),t._uU(5),t.ALo(6,"translate"),t.qZA()()}if(2&n){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,3,"DIALOGS.ADD_REQUIRED_ATTRIBUTES.CANCEL")," "),t.xp6(2),t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(6,5,"DIALOGS.ADD_REQUIRED_ATTRIBUTES.ADD")," ")}}let m0=(()=>{class n{constructor(e,i,a,o,v,T,N,U){this.dialogRef=e,this.data=i,this.serviceManager=a,this.attributesManager=o,this.facilitiesService=v,this.consentHubService=T,this.notificator=N,this.translate=U,this.consentRequired$=this.facilitiesService.getAssignedFacilitiesByService(this.data.serviceId).pipe((0,a0.b)(r0.D),(0,za.U)(J=>J.id),function o0(n,r){return(0,Tc.e)((e,i)=>{const a=new Set;e.subscribe((0,Qt.x)(i,o=>{const v=n?n(o):o;a.has(v)||(a.add(v),i.next(o))})),r?.subscribe((0,Qt.x)(i,()=>a.clear(),s0.Z))})}(),(0,l0.z)(J=>this.consentHubService.getConsentHubByFacility(J)),function u0(n,r){return(0,Tc.e)((0,c0.U)(n,r,arguments.length>=2,!1,!0))}((J,ct)=>J||ct.enforceConsents,!1),(0,li.O)(!0)),this.serviceEnabled$=this.serviceManager.getServiceById(this.data.serviceId).pipe((0,za.U)(J=>J.enabled),(0,li.O)(!0)),this.attrDefinitions=[],this.selection=new B.Ov(!0,[]),this.filterValue="",this.loading=!1}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.serviceId=this.data.serviceId,this.attributesManager.getAllAttributeDefinitions().subscribe(e=>{this.attrDefinitions=e,this.loading=!1})}onAdd(){this.loading=!0;const e=this.selection.selected.map(i=>i.id);this.serviceManager.addRequiredAttributes(this.serviceId,e).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.ADD_REQUIRED_ATTRIBUTES.SUCCESS")),this.dialogRef.close(!0),this.loading=!1},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}applyFilter(e){this.filterValue=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(M.WI),t.Y36(H.KK),t.Y36(H.H8),t.Y36(H.IQ),t.Y36(H.WY),t.Y36(Z.V6),t.Y36(u.sK))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-add-required-attributes"]],decls:7,vars:9,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","","class","dialog-container",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"alert_type",4,"ngIf"],[3,"placeholder","filter"],[3,"selection","definitions","disableRouting","filterValue","serviceEnabled","consentRequired"],[3,"alert_type"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,h0,1,0,"mat-spinner",1),t.YNc(5,p0,7,14,"div",2),t.YNc(6,f0,7,7,"div",3),t.qZA()),2&e&&(t.Tol(i.theme),t.xp6(2),t.Oqu(t.lcZ(3,7,"DIALOGS.ADD_REQUIRED_ATTRIBUTES.TITLE")),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,G.lW,M.uh,M.xY,M.H8,tt.Ou,K.w,In.L,Fi,m.Ov,u.X$]}),n})();function g0(n,r){1&n&&t._UZ(0,"mat-spinner",6)}function _0(n,r){1&n&&t._UZ(0,"th",15)}function v0(n,r){if(1&n&&(t.TgZ(0,"td",16),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(e.friendlyName)}}function x0(n,r){1&n&&t._UZ(0,"tr",17)}function y0(n,r){1&n&&t._UZ(0,"tr",18)}function b0(n,r){if(1&n&&(t.TgZ(0,"div",7)(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",8),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",9),t.ynx(8,10),t.YNc(9,_0,1,0,"th",11),t.YNc(10,v0,2,1,"td",12),t.BQk(),t.YNc(11,x0,1,0,"tr",13),t.YNc(12,y0,1,0,"tr",14),t.qZA()()),2&n){const e=t.oxw();t.xp6(2),t.Oqu(t.lcZ(3,5,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.DESCRIPTION")),t.xp6(3),t.hij(" ",t.lcZ(6,7,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.ASK")," "),t.xp6(2),t.Q6J("dataSource",e.dataSource),t.xp6(4),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}let T0=(()=>{class n{constructor(e,i,a,o,v){this.dialogRef=e,this.data=i,this.serviceManager=a,this.notificator=o,this.translate=v,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.serviceId=this.data.serviceId,this.dataSource=new R.by(this.data.attrDefinitions)}onConfirm(){this.loading=!0;const e=this.dataSource.data.map(i=>i.id);this.serviceManager.removeRequiredAttributes(this.serviceId,e).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.SUCCESS")),this.dialogRef.close(!0),this.loading=!1},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(M.WI),t.Y36(H.KK),t.Y36(Z.V6),t.Y36(u.sK))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-remove-required-attributes"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,i){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div"),t.YNc(4,g0,1,0,"mat-spinner",1),t.YNc(5,b0,13,9,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return i.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return i.onConfirm()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,9,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.TITLE")),t.xp6(2),t.Tol(i.theme),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.CANCEL")," "),t.xp6(2),t.Q6J("disabled",i.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.REMOVE")," "))},dependencies:[m.O5,G.lW,R.BZ,R.fO,R.as,R.w1,R.Dz,R.nj,R.ge,R.ev,R.XQ,R.Gk,M.uh,M.xY,M.H8,tt.Ou,u.X$]}),n})();function C0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onAdd())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SERVICE_DETAIL.REQUIRED_ATTRIBUTES.ADD")," "))}function w0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onRemove())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"SERVICE_DETAIL.REQUIRED_ATTRIBUTES.REMOVE")," ")}}function A0(n,r){1&n&&t._UZ(0,"mat-spinner",9)}function S0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"app-attr-def-list",10),t.NdJ("refreshEvent",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.refreshTable())}),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("definitions",e.attrDefinitions)("filterValue",e.filterValue)("selection",e.selection)("disableRouting",!e.authResolver.isPerunAdmin())("tableId",e.tableId)}}let E0=(()=>{class n{constructor(e,i,a,o){this.attributeManager=e,this.dialog=i,this.authResolver=a,this.entityStorageService=o,this.loading=!1,this.filterValue="",this.selection=new B.Ov(!0,[]),this.attrDefinitions=[],this.tableId=En.JO}ngOnInit(){this.loading=!0,this.service=this.entityStorageService.getEntity(),this.refreshTable()}refreshTable(){this.loading=!0,this.attributeManager.getRequiredAttributesDefinition(this.service.id).subscribe(e=>{this.selection.clear(),this.attrDefinitions=e,this.loading=!1})}onAdd(){const e=(0,fe.kZ)();e.width="950px",e.data={serviceId:this.service.id,theme:"service-theme"},this.dialog.open(m0,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}onRemove(){const e=(0,fe.kZ)();e.width="650px",e.data={serviceId:this.service.id,attrDefinitions:this.selection.selected,theme:"service-theme"},this.dialog.open(T0,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}applyFilter(e){this.filterValue=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(H.H8),t.Y36(M.uw),t.Y36(Z.x4),t.Y36(Z.fb))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-service-required-attributes"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","class","mr-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"definitions","filterValue","selection","disableRouting","tableId","refreshEvent",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"definitions","filterValue","selection","disableRouting","tableId","refreshEvent"]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.YNc(5,C0,3,3,"button",2),t.YNc(6,w0,3,4,"button",3),t.TgZ(7,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(o){return i.applyFilter(o)}),t.qZA(),t.YNc(8,A0,1,0,"mat-spinner",5),t.YNc(9,S0,1,5,"app-attr-def-list",6),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,6,"SERVICE_DETAIL.REQUIRED_ATTRIBUTES.TITLE")),t.xp6(3),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("placeholder","SERVICE_DETAIL.REQUIRED_ATTRIBUTES.FILTER"),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,G.lW,tt.Ou,Fi,gn.t,In.L,u.X$]}),n})();var D0=s(46597),L0=s(89466),k0=s(70242);function I0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onRemove())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"SERVICE_DETAIL.DESTINATIONS.REMOVE")," ")}}function O0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onAllow())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"SERVICE_DETAIL.DESTINATIONS.ALLOW")," ")}}function M0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onBlock())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"SERVICE_DETAIL.DESTINATIONS.BLOCK")," ")}}function N0(n,r){1&n&&t._UZ(0,"mat-spinner",10)}const P0=function(){return["select","destinationId","facility","destination","type","status","propagationType"]};function F0(n,r){if(1&n&&t._UZ(0,"app-perun-web-apps-destination-list",11),2&n){const e=t.oxw();t.Q6J("destinations",e.destinations)("filterValue",e.filterValue)("selection",e.selection)("displayedColumns",t.DdM(5,P0))("tableId",e.tableId)}}let R0=(()=>{class n{constructor(e,i,a,o,v,T){this.serviceManager=e,this.notificator=i,this.translate=a,this.dialog=o,this.authResolver=v,this.entityStorageService=T,this.loading=!1,this.filterValue="",this.destinations=[],this.selection=new B.Ov(!0,[]),this.tableId=En.Cf}ngOnInit(){this.loading=!0,this.service=this.entityStorageService.getEntity(),this.refreshTable()}refreshTable(){this.loading=!0,this.serviceManager.getAllRichDestinationsForService(this.service.id).subscribe(e=>{this.selection.clear(),this.filterValue="",this.destinations=e,this.loading=!1})}onBlock(){this.loading=!0,this.blockServiceOnDestinations(this.selection.selected)}onAllow(){this.loading=!0,this.allowServiceOnDestinations(this.selection.selected)}onRemove(){const e=(0,fe.kZ)();e.width="500px",e.data={destinations:this.selection.selected,theme:"admin-theme"},this.dialog.open(L0.u,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}applyFilter(e){this.filterValue=e}blockServiceOnDestinations(e){if(0===e.length)return this.notificator.showSuccess(this.translate.instant("SERVICE_DETAIL.DESTINATIONS.BLOCK_SUCCESS")),void this.refreshTable();const i=e.pop();this.serviceManager.blockServiceOnDestination(this.service.id,i.id).subscribe(()=>{this.blockServiceOnDestinations(e)},()=>this.loading=!1)}allowServiceOnDestinations(e){if(0===e.length)return this.notificator.showSuccess(this.translate.instant("SERVICE_DETAIL.DESTINATIONS.ALLOW_SUCCESS")),void this.refreshTable();const i=e.pop();this.serviceManager.unblockServiceOnDestinationById(this.service.id,i.id).subscribe(()=>{this.allowServiceOnDestinations(e)},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(H.KK),t.Y36(Z.V6),t.Y36(u.sK),t.Y36(M.uw),t.Y36(Z.x4),t.Y36(Z.fb))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-service-destinations"]],decls:11,vars:9,consts:[[1,"page-subtitle"],[3,"refresh"],["color","warn","class","mr-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","mr-2","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"destinations","filterValue","selection","displayedColumns","tableId",4,"ngIf"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],["color","accent","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"destinations","filterValue","selection","displayedColumns","tableId"]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.YNc(5,I0,3,4,"button",2),t.YNc(6,O0,3,4,"button",3),t.YNc(7,M0,3,4,"button",4),t.TgZ(8,"perun-web-apps-immediate-filter",5),t.NdJ("filter",function(o){return i.applyFilter(o)}),t.qZA(),t.YNc(9,N0,1,0,"mat-spinner",6),t.YNc(10,F0,1,6,"app-perun-web-apps-destination-list",7),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,7,"SERVICE_DETAIL.DESTINATIONS.TITLE")),t.xp6(3),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("placeholder","SERVICE_DETAIL.DESTINATIONS.FILTER"),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,G.lW,tt.Ou,k0.q,gn.t,In.L,u.X$]}),n})();function B0(n,r){1&n&&t._UZ(0,"mat-spinner",4)}function Z0(n,r){1&n&&t._UZ(0,"th",13)}function V0(n,r){if(1&n&&(t.TgZ(0,"td",14),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(e.name)}}function G0(n,r){1&n&&t._UZ(0,"tr",15)}function U0(n,r){1&n&&t._UZ(0,"tr",16)}function z0(n,r){if(1&n&&(t.TgZ(0,"div",5)(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",6),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",7),t.ynx(8,8),t.YNc(9,Z0,1,0,"th",9),t.YNc(10,V0,2,1,"td",10),t.BQk(),t.YNc(11,G0,1,0,"tr",11),t.YNc(12,U0,1,0,"tr",12),t.qZA()()),2&n){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,5,"DIALOGS.DELETE_OWNER.DESCRIPTION")," "),t.xp6(3),t.hij(" ",t.lcZ(6,7,"DIALOGS.DELETE_OWNER.ASK")," "),t.xp6(2),t.Q6J("dataSource",e.dataSource),t.xp6(4),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}function H0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",17)(1,"button",18),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onCancel())}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"button",19),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onSubmit())}),t._uU(5),t.ALo(6,"translate"),t.qZA()()}if(2&n){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,3,"DIALOGS.DELETE_OWNER.CANCEL")," "),t.xp6(2),t.Q6J("disabled",e.loading),t.xp6(1),t.hij(" ",t.lcZ(6,5,"DIALOGS.DELETE_OWNER.DELETE")," ")}}let Y0=(()=>{class n{constructor(e,i,a,o,v){this.dialogRef=e,this.data=i,this.notificator=a,this.translate=o,this.ownersManagerService=v,this.displayedColumns=["name"],this.owners=[]}ngOnInit(){this.dataSource=new R.by(this.data),this.owners=this.data}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.owners.length?this.ownersManagerService.deleteOwner(this.owners.pop().id).subscribe(()=>{this.onSubmit()},()=>this.loading=!1):this.translate.get("DIALOGS.DELETE_OWNER.SUCCESS").subscribe(e=>{this.loading=!1,this.notificator.showSuccess(e),this.dialogRef.close(!0)})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(M.WI),t.Y36(Z.V6),t.Y36(u.sK),t.Y36(H.aC))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-delete-owner-dialog"]],decls:6,vars:6,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(e,i){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.YNc(3,B0,1,0,"mat-spinner",1),t.YNc(4,z0,13,9,"div",2),t.YNc(5,H0,7,7,"div",3)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,4,"DIALOGS.DELETE_OWNER.TITLE")),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,G.lW,R.BZ,R.fO,R.as,R.w1,R.Dz,R.nj,R.ge,R.ev,R.XQ,R.Gk,M.uh,M.xY,M.H8,tt.Ou,u.X$]}),n})();function W0(n,r){1&n&&t._UZ(0,"mat-spinner",4)}function X0(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_OWNER.FILL_CONTACT")," "))}function $0(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_OWNER.CONTACT_FORMAT")," "))}function Q0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div")(1,"div",5)(2,"mat-form-field"),t._UZ(3,"input",6),t.ALo(4,"translate"),t.TgZ(5,"mat-error"),t._uU(6),t.ALo(7,"translate"),t.qZA()(),t.TgZ(8,"mat-form-field"),t._UZ(9,"input",6),t.ALo(10,"translate"),t.YNc(11,X0,3,3,"mat-error",3),t.YNc(12,$0,3,3,"mat-error",3),t.qZA(),t.TgZ(13,"mat-form-field")(14,"mat-select",7),t.NdJ("valueChange",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.type=a)}),t.TgZ(15,"mat-option",8),t._uU(16),t.ALo(17,"translate"),t.qZA(),t.TgZ(18,"mat-option",9),t._uU(19),t.ALo(20,"translate"),t.qZA()()()(),t.TgZ(21,"div",10)(22,"button",11),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onCancel())}),t._uU(23),t.ALo(24,"translate"),t.qZA(),t.TgZ(25,"div",12),t.ALo(26,"translate"),t.TgZ(27,"button",13),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onSubmit())}),t._uU(28),t.ALo(29,"translate"),t.qZA()()()()}if(2&n){const e=t.oxw();t.xp6(3),t.s9C("placeholder",t.lcZ(4,15,"DIALOGS.ADD_OWNER.NAME")),t.Q6J("formControl",e.nameCtrl),t.xp6(3),t.hij(" ",t.lcZ(7,17,"DIALOGS.ADD_OWNER.FILL_NAME")," "),t.xp6(3),t.s9C("placeholder",t.lcZ(10,19,"DIALOGS.ADD_OWNER.CONTACT")),t.Q6J("formControl",e.contactCtrl),t.xp6(2),t.Q6J("ngIf",e.contactCtrl.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.contactCtrl.invalid&&!e.contactCtrl.hasError("required")),t.xp6(2),t.Q6J("value",e.type),t.xp6(2),t.Oqu(t.lcZ(17,21,"DIALOGS.ADD_OWNER.TYPE1")),t.xp6(3),t.Oqu(t.lcZ(20,23,"DIALOGS.ADD_OWNER.TYPE2")),t.xp6(4),t.hij(" ",t.lcZ(24,25,"DIALOGS.ADD_OWNER.CANCEL")," "),t.xp6(2),t.s9C("matTooltip",t.lcZ(26,27,"DIALOGS.ADD_OWNER.TOOLTIP")),t.Q6J("matTooltipDisabled",e.nameCtrl.valid&&e.contactCtrl.valid),t.xp6(2),t.Q6J("disabled",e.nameCtrl.invalid||e.contactCtrl.invalid),t.xp6(1),t.hij(" ",t.lcZ(29,29,"DIALOGS.ADD_OWNER.CREATE")," ")}}let j0=(()=>{class n{constructor(e,i,a,o){this.dialogRef=e,this.notificator=i,this.ownersManagerService=a,this.translate=o,this.type="1",o.get("DIALOGS.ADD_OWNER.SUCCESS").subscribe(v=>this.successMessage=v)}ngOnInit(){this.nameCtrl=new rt.p4(null,[rt.kI.required,rt.kI.pattern("^[\\w.-]+( [\\w.-]+)*$")]),this.contactCtrl=new rt.p4(null,[rt.kI.required,rt.kI.pattern(fe.B2)])}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.ownersManagerService.createOwner({name:this.nameCtrl.value,contact:this.contactCtrl.value,ownerType:Number(this.type)}).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(Z.V6),t.Y36(H.aC),t.Y36(u.sK))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-add-owner-dialog"]],decls:6,vars:5,consts:[[1,"admin-theme"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","",3,"formControl","placeholder"],[3,"value","valueChange"],["value","1"],["value","0"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"h1",1),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,W0,1,0,"mat-spinner",2),t.YNc(5,Q0,30,31,"div",3),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,3,"DIALOGS.ADD_OWNER.TITLE")),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,zt.ey,ie.TO,ie.KE,Mt.Nt,rt.Fj,rt.JJ,rt.Q7,rt.oH,G.lW,M.uh,M.xY,M.H8,te.gD,tt.Ou,sn.gM,u.X$]}),n})();var J0=s(23256);function K0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.addOwner())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.OWNERS.ADD")," "))}function q0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.removeOwner())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",!e.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"ADMIN.OWNERS.DELETE")," ")}}function tx(n,r){1&n&&t._UZ(0,"mat-spinner",9)}function ex(n,r){if(1&n&&t._UZ(0,"perun-web-apps-owners-list",10),2&n){const e=t.oxw();t.Q6J("selection",e.selected)("filterValue",e.filterValue)("owners",e.owners)("tableId",e.tableId)}}let nx=(()=>{class n{constructor(e,i,a){this.ownersManagerService=e,this.dialog=i,this.guiAuthResolver=a,this.owners=[],this.selected=new B.Ov(!0,[]),this.filterValue="",this.tableId=En.v1}ngOnInit(){this.setAuth(),this.refreshTable()}setAuth(){this.removeAuth=this.guiAuthResolver.isAuthorized("deleteOwner_Owner_policy",[]),this.addAuth=this.guiAuthResolver.isAuthorized("createOwner_Owner_policy",[])}refreshTable(){this.loading=!0,this.ownersManagerService.getAllOwners().subscribe(e=>{this.owners=e,this.selected.clear(),this.loading=!1})}applyFilter(e){this.filterValue=e}addOwner(){const e=(0,fe.kZ)();e.width="400px",e.data={},this.dialog.open(j0,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}removeOwner(){const e=(0,fe.kZ)();e.width="400px",e.data=this.selected.selected,this.dialog.open(Y0,e).afterClosed().subscribe(a=>{a&&(this.selected.clear(),this.refreshTable())})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(H.aC),t.Y36(M.uw),t.Y36(Z.x4))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-admin-owners"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","class","mr-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"selection","filterValue","owners","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"selection","filterValue","owners","tableId"]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.YNc(5,K0,3,3,"button",2),t.YNc(6,q0,3,4,"button",3),t.TgZ(7,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(o){return i.applyFilter(o)}),t.qZA(),t.YNc(8,tx,1,0,"mat-spinner",5),t.YNc(9,ex,1,4,"perun-web-apps-owners-list",6),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,6,"ADMIN.OWNERS.TITLE")),t.xp6(3),t.Q6J("ngIf",i.addAuth),t.xp6(1),t.Q6J("ngIf",i.removeAuth),t.xp6(1),t.Q6J("placeholder","ADMIN.OWNERS.FILTER"),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,G.lW,tt.Ou,gn.t,In.L,J0.Q,u.X$]}),n})();var ix=s(74010);function rx(n,r){1&n&&t._UZ(0,"mat-spinner",5)}function ax(n,r){if(1&n&&t._UZ(0,"perun-web-apps-facilities-list",6),2&n){const e=t.oxw();t.Q6J("displayedColumns",e.displayedColumns)("filterValue",e.filterValue)("facilities",e.facilities)("tableId",e.tableId)}}let sx=(()=>{class n{constructor(e,i){this.facilityManager=e,this.route=i,this.facilities=[],this.filterValue="",this.tableId=En.zW,this.displayedColumns=["id","name","description"]}ngOnInit(){this.loading=!0,this.route.parent.params.subscribe(e=>{this.userId=Number(e.userId),this.refreshTable()})}refreshTable(){this.loading=!0,this.facilityManager.getAssignedFacilitiesByUser(this.userId).subscribe(e=>{this.facilities=e.map(i=>({facility:i})),this.loading=!1})}applyFilter(e){this.filterValue=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(H.IQ),t.Y36(p.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-user-facilities"]],decls:8,vars:6,consts:[[1,"page-subtitle"],[3,"refresh"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"displayedColumns","filterValue","facilities","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","filterValue","facilities","tableId"]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.TgZ(5,"perun-web-apps-immediate-filter",2),t.NdJ("filter",function(o){return i.applyFilter(o)}),t.qZA(),t.YNc(6,rx,1,0,"mat-spinner",3),t.YNc(7,ax,1,4,"perun-web-apps-facilities-list",4),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,4,"USER_DETAIL.FACILITIES.TITLE")),t.xp6(3),t.Q6J("placeholder","USER_DETAIL.FACILITIES.FILTER_PLACEHOLDER"),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,tt.Ou,gn.t,In.L,ix.X,u.X$]}),n})();var Cc=s(64080),ox=s(25788),lx=s(62707),cx=s(48323),ux=s(12651),hx=s(60526);function dx(n,r){1&n&&t._UZ(0,"mat-spinner",6)}function px(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"perun-web-apps-vo-search-select",7),t.NdJ("voSelected",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.loadMember(a))}),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("vos",e.vos)}}function fx(n,r){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.hij(" ",t.lcZ(1,1,"USER_DETAIL.ACCOUNTS.STATUS")," ")}function mx(n,r){1&n&&t._UZ(0,"mat-spinner",6)}const gx=function(){return["id","recent","name","description","expiration","groupStatus"]};function _x(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"perun-web-apps-groups-list",16),t.NdJ("refreshTable",function(){t.CHM(e);const a=t.oxw(4);return t.KtG(a.loadMember(a.selectedVo))}),t.qZA()}if(2&n){const e=t.oxw(4);t.Q6J("groups",e.groups)("memberId",e.member.id)("memberGroupStatus",e.member.groupStatus)("displayedColumns",t.DdM(4,gx))}}const wc=function(n,r){return["/organizations",n,"members",r]};function vx(n,r){if(1&n&&(t.TgZ(0,"div")(1,"div",10)(2,"span",11),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"a",12),t.NdJ("auxclick",function(i){return i.preventDefault()}),t._uU(6),t.qZA()(),t._UZ(7,"app-member-overview-membership",13),t.TgZ(8,"p",14),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.YNc(11,_x,1,5,"perun-web-apps-groups-list",15),t.qZA()),2&n){const e=t.oxw(3);t.xp6(3),t.hij("",t.lcZ(4,8,"USER_DETAIL.ACCOUNTS.MEMBER"),":"),t.xp6(2),t.Q6J("perunWebAppsMiddleClickRouterLink",t.WLB(12,wc,e.selectedVo.id.toString(),e.member.id.toString()))("routerLink",t.WLB(15,wc,e.selectedVo.id,e.member.id)),t.xp6(1),t.hij("",e.member.id," "),t.xp6(1),t.Q6J("member",e.member)("vo",e.selectedVo),t.xp6(2),t.Oqu(t.lcZ(10,10,"USER_DETAIL.ACCOUNTS.GROUPS")),t.xp6(2),t.Q6J("ngIf",!e.loading)}}function xx(n,r){if(1&n&&(t.YNc(0,mx,1,0,"mat-spinner",1),t.YNc(1,vx,12,18,"div",4)),2&n){const e=t.oxw(2);t.Q6J("ngIf",e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading)}}function yx(n,r){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.hij(" ",t.lcZ(1,1,"USER_DETAIL.ACCOUNTS.MEMBER_ATT")," ")}function bx(n,r){1&n&&t._UZ(0,"mat-spinner")}function Tx(n,r){if(1&n&&t._UZ(0,"app-one-entity-attribute-page",18),2&n){const e=t.oxw(3);t.Q6J("entity","member")("entityId",e.member.id)}}function Cx(n,r){if(1&n&&(t.YNc(0,bx,1,0,"mat-spinner",4),t.YNc(1,Tx,1,2,"app-one-entity-attribute-page",17)),2&n){const e=t.oxw(2);t.Q6J("ngIf",e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading)}}function wx(n,r){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.hij(" ",t.lcZ(1,1,"USER_DETAIL.ACCOUNTS.MEMBER_GROUP_ATT")," ")}function Ax(n,r){1&n&&t._UZ(0,"mat-spinner")}function Sx(n,r){if(1&n&&t._UZ(0,"app-two-entity-attribute-page",20),2&n){const e=t.oxw(3);t.Q6J("firstEntity","member")("firstEntityId",e.member.id)("secondEntity","group")}}function Ex(n,r){if(1&n&&(t.YNc(0,Ax,1,0,"mat-spinner",4),t.YNc(1,Sx,1,3,"app-two-entity-attribute-page",19)),2&n){const e=t.oxw(2);t.Q6J("ngIf",e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading)}}function Dx(n,r){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.hij(" ",t.lcZ(1,1,"USER_DETAIL.ACCOUNTS.MEMBER_RESOURCE_ATT")," ")}function Lx(n,r){1&n&&t._UZ(0,"mat-spinner")}function kx(n,r){if(1&n&&t._UZ(0,"app-two-entity-attribute-page",20),2&n){const e=t.oxw(3);t.Q6J("firstEntity","member")("firstEntityId",e.member.id)("secondEntity","resource")}}function Ix(n,r){if(1&n&&(t.YNc(0,Lx,1,0,"mat-spinner",4),t.YNc(1,kx,1,3,"app-two-entity-attribute-page",19)),2&n){const e=t.oxw(2);t.Q6J("ngIf",e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading)}}function Ox(n,r){1&n&&(t.TgZ(0,"mat-tab-group")(1,"mat-tab"),t.YNc(2,fx,2,3,"ng-template",8),t.YNc(3,xx,2,2,"ng-template",9),t.qZA(),t.TgZ(4,"mat-tab"),t.YNc(5,yx,2,3,"ng-template",8),t.YNc(6,Cx,2,2,"ng-template",9),t.qZA(),t.TgZ(7,"mat-tab"),t.YNc(8,wx,2,3,"ng-template",8),t.YNc(9,Ex,2,2,"ng-template",9),t.qZA(),t.TgZ(10,"mat-tab"),t.YNc(11,Dx,2,3,"ng-template",8),t.YNc(12,Ix,2,2,"ng-template",9),t.qZA()())}function Mx(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"USER_DETAIL.ACCOUNTS.NO_VOS")))}let Nx=(()=>{class n{constructor(e,i,a,o){this.route=e,this.usersService=i,this.membersService=a,this.groupService=o,this.initLoading=!1,this.loading=!1,this.vos=[],this.selectedVo=null,this.member=null,this.groups=[]}ngOnInit(){this.initLoading=!0,this.route.parent.params.subscribe(e=>{this.userId=Number(e.userId),this.usersService.getVosWhereUserIsMember(this.userId).subscribe(i=>{this.vos=i,this.initLoading=!1},()=>this.initLoading=!1)})}loadMember(e){this.loading=!0,this.selectedVo=e,this.membersService.getMemberByUser(this.selectedVo.id,this.userId).subscribe(i=>{this.membersService.getRichMemberWithAttributes(i.id).subscribe(a=>{this.member=a,this.groupService.getMemberRichGroupsWithAttributesByNames(this.member.id,[Cc.r.MEMBER_DEF_GROUP_EXPIRATION,Cc.r.MEMBER_GROUP_STATUS]).subscribe(o=>{this.groups=o,this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(p.gz),t.Y36(H.Fv),t.Y36(H.uq),t.Y36(H.ff))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-perun-web-apps-user-accounts"]],decls:8,vars:7,consts:[[1,"page-title"],["class","ml-auto mr-auto",4,"ngIf"],[1,"d-flex"],["class","w-50",3,"vos","voSelected",4,"ngIf"],[4,"ngIf"],["alert_type","warn",4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"w-50",3,"vos","voSelected"],["matTabLabel",""],["matTabContent",""],[1,"mt-4","mb-4"],[1,"subtitle","mr-2"],[1,"member-link",3,"perunWebAppsMiddleClickRouterLink","routerLink","auxclick"],[3,"member","vo"],[1,"mt-4","subtitle"],[3,"groups","memberId","memberGroupStatus","displayedColumns","refreshTable",4,"ngIf"],[3,"groups","memberId","memberGroupStatus","displayedColumns","refreshTable"],[3,"entity","entityId",4,"ngIf"],[3,"entity","entityId"],[3,"firstEntity","firstEntityId","secondEntity",4,"ngIf"],[3,"firstEntity","firstEntityId","secondEntity"],["alert_type","warn"]],template:function(e,i){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.YNc(3,dx,1,0,"mat-spinner",1),t.TgZ(4,"div",2),t.YNc(5,px,1,1,"perun-web-apps-vo-search-select",3),t.qZA(),t.YNc(6,Ox,13,0,"mat-tab-group",4),t.YNc(7,Mx,3,3,"perun-web-apps-alert",5)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,5,"USER_DETAIL.ACCOUNTS.TITLE")),t.xp6(2),t.Q6J("ngIf",i.initLoading),t.xp6(2),t.Q6J("ngIf",!(i.initLoading||0===i.vos.length)),t.xp6(1),t.Q6J("ngIf",!(i.initLoading||0===i.vos.length)),t.xp6(1),t.Q6J("ngIf",!i.initLoading&&0===i.vos.length))},dependencies:[m.O5,p.yS,jt.SP,jt.uD,jt.uX,jt.Vc,tt.Ou,K.w,ox.W,lx.M,ga.YH,ga.QG,cx.Y,ux.t,hx.b,u.X$],styles:[".subtitle[_ngcontent-%COMP%]{font-size:1.2rem}"]}),n})(),Ac=(()=>{class n{transform(e){if(e)return e.split(".").pop()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"parseEventName",type:n,pure:!0}),n})();function Px(n,r){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.hij(" ",t.lcZ(1,1,"DIALOGS.AUDIT_MESSAGE_DETAIL.OBJECTS")," ")}function Fx(n,r){if(1&n&&t._UZ(0,"pre",9),2&n){const e=t.oxw();t.Q6J("innerHTML",e.syntaxHighlight(e.eventData),t.oJD)}}function Rx(n,r){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.hij(" ",t.lcZ(1,1,"DIALOGS.AUDIT_MESSAGE_DETAIL.MESSAGE")," ")}function Bx(n,r){if(1&n&&(t.TgZ(0,"div",10),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Oqu(e.message)}}let Zx=(()=>{class n{constructor(e,i,a){this.dialogRef=e,this.data=i,this.clipboard=a,this.tabIndex=0,this.eventData={}}ngOnInit(){const e=this.data.message.event;this.actor=this.data.message.actor,this.createdAt=this.data.message.createdAt,e.message&&(this.message=e.message,delete e.message),e.name&&(this.title=e.name,delete e.name),this.eventData=e}tabChanged(e){this.tabIndex=e.index}copyObjects(){this.clipboard.copy(JSON.stringify(this.eventData,null,2))}copyMessage(){this.clipboard.copy(this.message)}syntaxHighlight(e){return"string"!=typeof e&&(e=JSON.stringify(e,void 0,2)),(e=e.replace(/&/g,"&").replace(//g,">")).replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)/g,function(i){let a="number";return i.startsWith('"')?a=i.endsWith(":")?"key":"string":/true|false/.test(i)?a="boolean":i.includes("null")&&(a="null"),''+i+""})}onClose(){this.dialogRef.close()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(M.WI),t.Y36(kn.TU))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-audit-message-detail-dialog"]],decls:26,vars:19,consts:[[1,"admin-theme"],["mat-dialog-title",""],["mat-dialog-content",""],[3,"selectedTabChange"],["matTabLabel",""],["matTabContent",""],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-button","",3,"click"],[3,"innerHTML"],["data-cy","audit-message-text"]],template:function(e,i){if(1&e&&(t.TgZ(0,"div",0)(1,"h1",1),t._uU(2),t.ALo(3,"translate"),t.ALo(4,"parseEventName"),t.qZA(),t.TgZ(5,"div",2)(6,"div"),t._uU(7),t.ALo(8,"translate"),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"mat-tab-group",3),t.NdJ("selectedTabChange",function(o){return i.tabChanged(o)}),t.TgZ(11,"mat-tab"),t.YNc(12,Px,2,3,"ng-template",4),t.YNc(13,Fx,1,1,"ng-template",5),t.qZA(),t.TgZ(14,"mat-tab"),t.YNc(15,Rx,2,3,"ng-template",4),t.YNc(16,Bx,2,1,"ng-template",5),t.qZA()()(),t.TgZ(17,"div",6)(18,"button",7),t.NdJ("click",function(){return i.onClose()}),t._uU(19),t.ALo(20,"translate"),t.qZA(),t.TgZ(21,"button",8),t.NdJ("click",function(){return 0===i.tabIndex?i.copyObjects():i.copyMessage()}),t._uU(22),t.ALo(23,"translate"),t.TgZ(24,"mat-icon"),t._uU(25,"content_copy"),t.qZA()()()()),2&e){let a;t.xp6(2),t.hij(" ",t.lcZ(3,7,null!==(a=t.lcZ(4,9,i.title))&&void 0!==a?a:"DIALOGS.AUDIT_MESSAGE_DETAIL.TITLE")," "),t.xp6(5),t.HOy(" ",t.lcZ(8,11,"DIALOGS.AUDIT_MESSAGE_DETAIL.ACTOR"),": ",i.actor,", ",t.lcZ(9,13,"DIALOGS.AUDIT_MESSAGE_DETAIL.CREATED_AT"),": ",i.createdAt," "),t.xp6(12),t.hij(" ",t.lcZ(20,15,"DIALOGS.AUDIT_MESSAGE_DETAIL.CLOSE")," "),t.xp6(3),t.hij(" ",t.lcZ(23,17,"DIALOGS.AUDIT_MESSAGE_DETAIL.COPY")," ")}},dependencies:[l.Hw,G.lW,jt.SP,jt.uD,jt.uX,jt.Vc,M.uh,M.xY,M.H8,u.X$,Ac],styles:[".key{color:brown}.string{color:green}.number{color:#ff8c00}.boolean{color:#00f}.null{color:#f0f}\n"],encapsulation:2}),n})();var Vx=s(98739),Gx=s(56451),Ux=s(62383);function zx(n,r){1&n&&(t.TgZ(0,"div",16),t._UZ(1,"mat-spinner",17),t.qZA())}function Hx(n,r){1&n&&(t.TgZ(0,"th",18),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"AUDIT_MESSAGES_LIST.ID")," "))}function Yx(n,r){if(1&n&&(t.TgZ(0,"td",19),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.hij(" ",e.id," ")}}function Wx(n,r){1&n&&(t.TgZ(0,"th",18),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"AUDIT_MESSAGES_LIST.TIMESTAMP")," "))}function Xx(n,r){if(1&n&&(t.TgZ(0,"td",19),t._uU(1),t.ALo(2,"parseDate"),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,e.createdAt,!0)," ")}}function $x(n,r){1&n&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"AUDIT_MESSAGES_LIST.EVENT_NAME")))}function Qx(n,r){if(1&n&&(t.TgZ(0,"td",19),t._uU(1),t.ALo(2,"parseEventName"),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,e.event.name)," ")}}function jx(n,r){1&n&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"AUDIT_MESSAGES_LIST.ACTOR")))}function Jx(n,r){if(1&n&&(t.TgZ(0,"td",19),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.hij(" ",e.actor," ")}}function Kx(n,r){1&n&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"AUDIT_MESSAGES_LIST.MESSAGE")))}function qx(n,r){if(1&n&&(t.TgZ(0,"td",19),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.hij(" ",e.event.message," ")}}function ty(n,r){1&n&&t._UZ(0,"th",20)}function ey(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"td",19)(1,"button",21),t.NdJ("click",function(){const o=t.CHM(e).$implicit,v=t.oxw();return t.KtG(v.viewDetails(o))}),t._uU(2),t.ALo(3,"translate"),t.qZA()()}2&n&&(t.xp6(2),t.hij(" ",t.lcZ(3,1,"AUDIT_MESSAGES_LIST.VIEW_DETAIL")," "))}function ny(n,r){1&n&&t._UZ(0,"tr",22)}function iy(n,r){1&n&&t._UZ(0,"tr",23)}function ry(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_AUDIT_MESSAGES"),"\n"))}let ay=(()=>{class n{constructor(e,i,a){this.dialog=e,this.dynamicPaginatingService=i,this.tableConfigService=a,this.displayedColumns=["id","timestamp","name","actor","event.message","detail"],this.pageSizeOptions=fe.f7}static getExportDataForColumn(e,i){switch(i){case"id":return e.id.toString();case"timestamp":return(0,m.p6)(e.createdAt,"d.M.y H.mm.ss","en");case"name":return e.event.name.split(".").pop();case"actor":return e.actor;case"event.message":return e.event.message;default:return""}}ngAfterViewInit(){this.sort.sortChange.subscribe(()=>this.child.paginator.pageIndex=0),(0,Gx.T)(this.sort.sortChange,this.child.paginator.page).pipe((0,Ot.b)(()=>this.loadAuditMessagesPage())).subscribe()}ngOnInit(){this.dataSource=new Z.Hy(this.dynamicPaginatingService,null),this.dataSource.loadAuditMessages(this.tableConfigService.getTablePageSize(this.tableId),0,"DESCENDING")}ngOnChanges(){this.dataSource&&(this.child.paginator.pageIndex=0,this.loadAuditMessagesPage())}loadAuditMessagesPage(){this.dataSource.loadAuditMessages(this.child.paginator.pageSize,this.child.paginator.pageIndex,"asc"===this.sort.direction?"ASCENDING":"DESCENDING")}viewDetails(e){const i=(0,fe.kZ)(),a=JSON.parse(JSON.stringify(e));i.minWidth="700px",i.maxWidth="1000px",i.data={message:a},this.dialog.open(Zx,i)}exportDisplayedData(e){(0,fe.O6)((0,fe.Xn)(this.dataSource.getData(),this.displayedColumns.filter(i=>"detail"!==i),n.getExportDataForColumn),e)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.uw),t.Y36(Z.ly),t.Y36(En.dB))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-audit-messages-list"]],viewQuery:function(e,i){if(1&e&&(t.Gf(fe.l9,7),t.Gf(nn.YE,5)),2&e){let a;t.iGM(a=t.CRH())&&(i.child=a.first),t.iGM(a=t.CRH())&&(i.sort=a.first)}},inputs:{tableId:"tableId",refresh:"refresh",displayedColumns:"displayedColumns",searchString:"searchString"},features:[t._Bn([{provide:Vx.ye,useClass:Z.Be}]),t.TTD],decls:28,vars:16,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","tableId","allowExportAll","exportDisplayedData"],["class","spinner-container",4,"ngIf"],["mat-table","","matSort","","matSortActive","id","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","timestamp"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","actor"],["matColumnDef","event.message"],["matColumnDef","detail"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],[1,"spinner-container"],[1,"ml-auto","mr-auto"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-header-cell",""],["data-cy","audit-message-detail-button","color","accent","mat-flat-button","",3,"click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t.ALo(1,"async"),t.TgZ(2,"perun-web-apps-table-wrapper",1),t.NdJ("exportDisplayedData",function(o){return i.exportDisplayedData(o)}),t.YNc(3,zx,2,0,"div",2),t.ALo(4,"async"),t.TgZ(5,"table",3),t.ynx(6,4),t.YNc(7,Hx,3,3,"th",5),t.YNc(8,Yx,2,1,"td",6),t.BQk(),t.ynx(9,7),t.YNc(10,Wx,3,3,"th",5),t.YNc(11,Xx,3,4,"td",6),t.BQk(),t.ynx(12,8),t.YNc(13,$x,3,3,"th",9),t.YNc(14,Qx,3,3,"td",6),t.BQk(),t.ynx(15,10),t.YNc(16,jx,3,3,"th",9),t.YNc(17,Jx,2,1,"td",6),t.BQk(),t.ynx(18,11),t.YNc(19,Kx,3,3,"th",9),t.YNc(20,qx,2,1,"td",6),t.BQk(),t.ynx(21,12),t.YNc(22,ty,1,0,"th",9),t.YNc(23,ey,4,3,"td",6),t.BQk(),t.YNc(24,ny,1,0,"tr",13),t.YNc(25,iy,1,0,"tr",14),t.qZA()()(),t.YNc(26,ry,3,3,"perun-web-apps-alert",15),t.ALo(27,"async")),2&e&&(t.Q6J("hidden",0===i.dataSource.allObjectCount&&!1===t.lcZ(1,10,i.dataSource.loading$)),t.xp6(2),t.Q6J("dataLength",i.dataSource.allObjectCount)("pageSizeOptions",i.pageSizeOptions)("tableId",i.tableId)("allowExportAll",!1),t.xp6(1),t.Q6J("ngIf",t.lcZ(4,12,i.dataSource.loading$)),t.xp6(2),t.Q6J("dataSource",i.dataSource),t.xp6(19),t.Q6J("matHeaderRowDef",i.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",i.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===i.dataSource.allObjectCount&&!1===t.lcZ(27,14,i.dataSource.loading$)))},dependencies:[m.O5,G.lW,nn.YE,nn.nU,R.BZ,R.fO,R.as,R.w1,R.Dz,R.nj,R.ge,R.ev,R.XQ,R.Gk,tt.Ou,K.w,z.l,m.Ov,u.X$,Ux.M,Ac]}),n})(),sy=(()=>{class n{constructor(){this.tableId=En.yW,this.refresh=!1}refreshTable(){this.refresh=!this.refresh}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-admin-audit-log"]],decls:5,vars:5,consts:[[1,"page-subtitle"],[3,"refresh"],[3,"refresh","tableId"]],template:function(e,i){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t._UZ(4,"app-audit-messages-list",2)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,3,"ADMIN.AUDIT_LOG.TITLE")),t.xp6(3),t.Q6J("refresh",i.refresh)("tableId",i.tableId))},dependencies:[ay,gn.t,u.X$]}),n})();var oy=s(44850);let ly=(()=>{class n{constructor(e,i){this.dialogRef=e,this.data=i}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.dialogRef.close(!0)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(M.WI))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-perun-web-apps-edit-enforce-consents-dialog"]],decls:26,vars:27,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"mt-2","mb-2"],["alert_type","warn"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"click"]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"div",1)(6,"p"),t._uU(7),t.ALo(8,"translate"),t.ALo(9,"translate"),t.qZA(),t._UZ(10,"mat-divider"),t.TgZ(11,"p",2),t._uU(12),t.qZA(),t._UZ(13,"mat-divider"),t.TgZ(14,"perun-web-apps-alert",3),t._uU(15),t.ALo(16,"translate"),t.ALo(17,"translate"),t.qZA()(),t.TgZ(18,"div",4)(19,"button",5),t.NdJ("click",function(){return i.onCancel()}),t._uU(20),t.ALo(21,"translate"),t.qZA(),t.TgZ(22,"button",6),t.NdJ("click",function(){return i.onSubmit()}),t._uU(23),t.ALo(24,"translate"),t.ALo(25,"translate"),t.qZA()()()),2&e&&(t.Tol(i.data.theme),t.xp6(2),t.hij(" ",i.data.enforceConsents?t.lcZ(3,9,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.DISABLE_TITLE"):t.lcZ(4,11,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.ENFORCE_TITLE")," "),t.xp6(5),t.hij(" ",i.data.enforceConsents?t.lcZ(8,13,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.DISABLE_DESCRIPTION"):t.lcZ(9,15,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.ENFORCE_DESCRIPTION")," "),t.xp6(5),t.Oqu(i.data.consentHubName),t.xp6(3),t.hij(" ",i.data.enforceConsents?t.lcZ(16,17,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.DISABLE_BOLD_DESCRIPTION"):t.lcZ(17,19,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.ENFORCE_BOLD_DESCRIPTION")," "),t.xp6(5),t.hij(" ",t.lcZ(21,21,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.CANCEL_BUTTON")," "),t.xp6(3),t.hij(" ",i.data.enforceConsents?t.lcZ(24,23,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.DISABLE_BUTTON"):t.lcZ(25,25,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.ENFORCE_BUTTON")," "))},dependencies:[G.lW,M.uh,M.xY,M.H8,oy.d,K.w,u.X$]}),n})();function cy(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"th",17)(1,"mat-checkbox",18),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(a?o.masterToggle():null)}),t.ALo(2,"translate"),t.ALo(3,"masterCheckboxLabel"),t.qZA()()}if(2&n){const e=t.oxw().ngIf,i=t.oxw();t.xp6(1),t.Q6J("aria-label",t.lcZ(2,3,t.lcZ(3,5,e.all)))("checked",i.selection.hasValue()&&e.all)("indeterminate",i.selection.hasValue()&&!e.all)}}const uy=function(n){return{name:n}};function hy(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"td",19)(1,"mat-checkbox",20),t.NdJ("change",function(a){const v=t.CHM(e).$implicit,T=t.oxw(2);return t.KtG(a?T.selection.toggle(v):null)})("click",function(a){return a.stopPropagation()}),t.ALo(2,"translate"),t.ALo(3,"checkboxLabel"),t.qZA()()}if(2&n){const e=r.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("aria-label",t.xi3(2,2,t.lcZ(3,5,i.selection.isSelected(e)),t.VKq(7,uy,e.name)))("checked",i.selection.isSelected(e))}}function dy(n,r){1&n&&(t.ynx(0,14),t.YNc(1,cy,4,7,"th",15),t.YNc(2,hy,4,9,"td",16),t.BQk())}function py(n,r){1&n&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.CONSENT_HUBS_LIST.ID")," "))}function fy(n,r){if(1&n&&(t.TgZ(0,"td",22),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(e.id)}}function my(n,r){1&n&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.CONSENT_HUBS_LIST.NAME")," "))}function gy(n,r){if(1&n&&(t.TgZ(0,"td",23),t.ALo(1,"multiWordDataCy"),t._uU(2),t.qZA()),2&n){const e=r.$implicit;t.Q2q("data-cy","",t.lcZ(1,2,e.name),"-name-td"),t.xp6(2),t.hij(" ",e.name," ")}}function _y(n,r){1&n&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.CONSENT_HUBS_LIST.ENFORCE_CONSENTS")," "))}function vy(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"td",23)(1,"mat-slide-toggle",24),t.NdJ("change",function(a){const v=t.CHM(e).$implicit,T=t.oxw();return t.KtG(T.changeEnforceFlag(v,a))}),t.qZA()()}if(2&n){const e=r.$implicit;t.xp6(1),t.Q6J("checked",e.enforceConsents)}}function xy(n,r){1&n&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.CONSENT_HUBS_LIST.FACILITIES")," "))}function yy(n,r){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.TgZ(2,"span",26),t._uU(3),t.qZA(),t._UZ(4,"br"),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.hij(" ",e.name," "),t.xp6(2),t.hij(" #",e.id,"")}}function by(n,r){if(1&n&&(t.TgZ(0,"td",23),t.YNc(1,yy,5,2,"span",25),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Q6J("ngForOf",e.facilities)}}function Ty(n,r){1&n&&t._UZ(0,"tr",27)}function Cy(n,r){1&n&&t._UZ(0,"tr",28)}function wy(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",29),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.CONSENT_HUBS_LIST.NO_CONSENT_HUBS"),"\n"))}function Ay(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",29),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.CONSENT_HUBS_LIST.NO_FILTER_RESULTS"),"\n"))}const Sy=function(n){return{all:n}};let Ey=(()=>{class n{constructor(e,i,a,o,v){this.tableCheckbox=e,this.dialog=i,this.notificator=a,this.translate=o,this.consentsManager=v,this.filterValue="",this.displayedColumns=["select","id","name","enforceConsents","facilities"],this.selection=new B.Ov(!0,[]),this.exporting=!1,this.pageSizeOptions=fe.f7}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,i){switch(i){case"id":return e.id.toString();case"name":return e.name;case"enforceConsents":return e.enforceConsents?"true":"false";case"facilities":{let a="";return e.facilities.forEach(o=>a+=o.name+" #"+String(o.id)+";"),a.slice(0,-1)}default:return""}}ngOnChanges(){this.dataSource=new R.by(this.consentHubs),this.setDataSource()}exportAllData(e){(0,fe.O6)((0,fe.Xn)(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}exportDisplayedData(e){const i=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,a=i+this.dataSource.paginator.pageSize;(0,fe.O6)((0,fe.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(i,a),this.displayedColumns,n.getDataForColumn),e)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,i)=>(0,fe.Sd)(e,i,this.displayedColumns,n.getDataForColumn),this.dataSource.sortData=(e,i)=>(0,fe.pR)(e,i,n.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}changeEnforceFlag(e,i){i.source.checked=e.enforceConsents;const a=(0,fe.kZ)();a.width="550px",a.data={theme:"admin-theme",enforceConsents:e.enforceConsents,consentHubName:e.name},this.dialog.open(ly,a).afterClosed().subscribe(v=>{v&&(e.enforceConsents=!e.enforceConsents,this.consentsManager.updateConsentHub({consentHub:e}).subscribe(T=>{i.source.checked=T.enforceConsents,e.enforceConsents=T.enforceConsents,this.translate.get("SHARED.COMPONENTS.CONSENT_HUBS_LIST.CHANGE_ENFORCE_CONSENTS_SUCCESS").subscribe(N=>{this.notificator.showSuccess(N)})},()=>e.enforceConsents=!e.enforceConsents))})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Z.UA),t.Y36(M.uw),t.Y36(Z.V6),t.Y36(u.sK),t.Y36(H.WY))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-perun-web-apps-consent-hubs-list"]],viewQuery:function(e,i){if(1&e&&(t.Gf(fe.l9,7),t.Gf(nn.YE,7)),2&e){let a;t.iGM(a=t.CRH())&&(i.child=a.first),t.iGM(a=t.CRH())&&(i.matSort=a.first)}},inputs:{consentHubs:"consentHubs",filterValue:"filterValue",displayedColumns:"displayedColumns",tableId:"tableId",selection:"selection"},features:[t.TTD],decls:21,vars:15,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","enforceConsents"],["matColumnDef","facilities"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],[3,"checked","change"],[4,"ngFor","ngForOf"],[1,"text-muted"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportDisplayedData",function(o){return i.exportDisplayedData(o)})("exportAllData",function(o){return i.exportAllData(o)}),t.TgZ(2,"table",2),t.YNc(3,dy,3,0,"ng-container",3),t.ALo(4,"isAllSelected"),t.ynx(5,4),t.YNc(6,py,3,3,"th",5),t.YNc(7,fy,2,1,"td",6),t.BQk(),t.ynx(8,7),t.YNc(9,my,3,3,"th",5),t.YNc(10,gy,3,4,"td",8),t.BQk(),t.ynx(11,9),t.YNc(12,_y,3,3,"th",5),t.YNc(13,vy,2,1,"td",8),t.BQk(),t.ynx(14,10),t.YNc(15,xy,3,3,"th",5),t.YNc(16,by,2,1,"td",8),t.BQk(),t.YNc(17,Ty,1,0,"tr",11),t.YNc(18,Cy,1,0,"tr",12),t.qZA()()(),t.YNc(19,wy,3,3,"perun-web-apps-alert",13),t.YNc(20,Ay,3,3,"perun-web-apps-alert",13)),2&e&&(t.Q6J("hidden",0===i.consentHubs.length||0===i.dataSource.filteredData.length),t.xp6(1),t.Q6J("tableId",i.tableId)("dataLength",i.dataSource.filteredData.length)("pageSizeOptions",i.pageSizeOptions),t.xp6(1),t.Q6J("dataSource",i.dataSource),t.xp6(1),t.Q6J("ngIf",t.VKq(13,Sy,t.xi3(4,10,i.dataSource,i.selection.selected.length))),t.xp6(14),t.Q6J("matHeaderRowDef",i.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",i.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===i.consentHubs.length),t.xp6(1),t.Q6J("ngIf",0===i.dataSource.filteredData.length&&0!==i.consentHubs.length))},dependencies:[m.sg,m.O5,nn.YE,nn.nU,R.BZ,R.fO,R.as,R.w1,R.Dz,R.nj,R.ge,R.ev,R.XQ,R.Gk,Fn.oG,Tt.Rr,K.w,z.l,u.X$,Ye.R,X.I,lt.G,A.r]}),n})();function Dy(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",8),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.CONSENT_HUBS.GLOBAL_DISABLED")," "))}function Ly(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.evaluateConsents())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",!e.globalForceConsents||0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"ADMIN.CONSENT_HUBS.EVALUATE_CONSENTS")," ")}}function ky(n,r){1&n&&t._UZ(0,"mat-spinner",10)}function Iy(n,r){if(1&n&&t._UZ(0,"app-perun-web-apps-consent-hubs-list",11),2&n){const e=t.oxw();t.Q6J("consentHubs",e.consentHubs)("selection",e.selection)("filterValue",e.filterValue)("tableId",e.tableId)}}let Oy=(()=>{class n{constructor(e,i,a,o,v,T){this.consentsManager=e,this.authResolver=i,this.notificator=a,this.translate=o,this.store=v,this.dialog=T,this.loading=!1,this.tableId=En.HE,this.selection=new B.Ov(!0,[]),this.filterValue="",this.consentHubs=[]}ngOnInit(){this.globalForceConsents=this.store.getProperty("enforce_consents"),this.refreshTable()}applyFilter(e){this.filterValue=e}refreshTable(){this.loading=!0,this.consentsManager.getAllConsentHubs().subscribe(e=>{this.consentHubs=e,this.loading=!1})}evaluateConsents(){const e=(0,fe.kZ)();e.width="500px",e.data={title:this.translate.instant("ADMIN.CONSENT_HUBS.CONFIRM_DIALOG_TITLE"),theme:"admin-theme",description:this.translate.instant("ADMIN.CONSENT_HUBS.CONFIRM_DIALOG_DESCRIPTION"),items:this.selection.selected.map(a=>a.name),type:"confirmation",showAsk:!1},this.dialog.open(ma.Ts,e).afterClosed().subscribe(a=>{a&&this.evaluateConsentsForConsentHub(0)})}evaluateConsentsForConsentHub(e){if(e===this.selection.selected.length)return this.notificator.showSuccess(this.translate.instant("ADMIN.CONSENT_HUBS.EVALUATION_FINISH")),void this.selection.clear();this.consentsManager.evaluateConsentsForConsentHub(this.selection.selected[e].id).subscribe(()=>{this.evaluateConsentsForConsentHub(++e)})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(H.WY),t.Y36(Z.x4),t.Y36(Z.V6),t.Y36(u.sK),t.Y36(Z.d6),t.Y36(M.uw))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-perun-web-apps-admin-consent-hubs"]],decls:12,vars:12,consts:[[1,"page-subtitle"],["alert_type","warn",4,"ngIf"],[3,"refresh"],[3,"matTooltipDisabled","matTooltip"],["color","accent","class","action-button mr-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"consentHubs","selection","filterValue","tableId",4,"ngIf"],["alert_type","warn"],["color","accent","mat-flat-button","",1,"action-button","mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"consentHubs","selection","filterValue","tableId"]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Dy,3,3,"perun-web-apps-alert",1),t.TgZ(5,"perun-web-apps-refresh-button",2),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.TgZ(6,"span",3),t.ALo(7,"translate"),t.YNc(8,Ly,3,4,"button",4),t.qZA(),t.TgZ(9,"perun-web-apps-immediate-filter",5),t.NdJ("filter",function(o){return i.applyFilter(o)}),t.qZA(),t.YNc(10,ky,1,0,"mat-spinner",6),t.YNc(11,Iy,1,4,"app-perun-web-apps-consent-hubs-list",7),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,8,"ADMIN.CONSENT_HUBS.TITLE")),t.xp6(2),t.Q6J("ngIf",!i.globalForceConsents),t.xp6(2),t.s9C("matTooltip",t.lcZ(7,10,"ADMIN.CONSENT_HUBS.TOOLTIP")),t.Q6J("matTooltipDisabled",i.globalForceConsents),t.xp6(2),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("placeholder","ADMIN.CONSENT_HUBS.SEARCH"),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,G.lW,tt.Ou,sn.gM,Ey,K.w,gn.t,In.L,u.X$]}),n})();var My=s(57788),zs=s(71992),Ny=s(51403);const Py=[{path:"",component:C,canActivateChild:[zs.a],children:[{path:"",component:I,data:{animation:"AdminOverviewPage"}},{path:"attributes",component:b,data:{animation:"AdminAttributesPage"}},{path:"users",component:ev.t,data:{animation:"AdminUsersPage"}},{path:"owners",component:nx,data:{animation:"AdminOwnersPage"}},{path:"services",component:Nv.F,data:{animation:"AdminServicesPage"}},{path:"audit_log",component:sy,data:{animation:"AdminAuditLogPage"}},{path:"visualizer",component:k,children:[{path:"",component:ht,data:{animation:"VisualizerOverviewPage"}},{path:"attrDependencies",component:it,data:{animation:"VisualizerAttrModulesPage"}},{path:"userDestinationRelationship",component:er,data:{animation:"UserDestinationRelationshipPage"}},{path:"userDestinationRelationship/graph",component:tv,data:{animation:"UserDestinationGraphPage"}}]},{path:"ext_sources",component:bv,data:{animation:"AdminExtSourcesPage"}},{path:"consent_hubs",component:Oy,data:{animation:"AdminConsentHubsPage"}},{path:"searcher",component:My.g,data:{animation:"AdminSearcherPage"}}]},{path:"users/:userId",component:dv,canActivateChild:[zs.a],children:[{path:"",component:pv.Z,data:{animation:"UserOverviewPage"}},{path:"accounts",component:Nx,data:{animation:"UserAccountsPage"}},{path:"attributes",component:gv.u,data:{animation:"UserAttributesPage"}},{path:"organizations",component:fv.j,data:{animation:"UserOrganizationsPage",showPrincipal:!1}},{path:"groups",component:mv.u,data:{animation:"UserGroupsPage",showPrincipal:!1}},{path:"identities",component:Mv,data:{animation:"UserIdentitiesPage"}},{path:"facilities",component:sx,data:{animation:"UserFacilitiesPage"}},{path:"resources",component:Zv,data:{animation:"UserRoles"}},{path:"identities/:identityId",component:Wv,data:{animation:"UserIdentityDetailPage"}},{path:"roles",component:Tv.t,data:{animation:"UserRolesPage"}},{path:"service-identities",component:Cv.R,data:{animation:"UserServiceIdentities"}},{path:"associated-users",component:D0.d,data:{animation:"AssociatedUsersPage"}},{path:"bans",component:Ny.Q,data:{animation:"UserBansPage"}}]},{path:"services/:serviceId",component:e0,canActivateChild:[zs.a],children:[{path:"",component:n0,data:{animation:"ServiceOverviewPage"}},{path:"required-attributes",component:E0,data:{animation:"ServiceRequiredAttributesPage"}},{path:"destinations",component:R0,data:{animation:"ServiceDestinationsPage"}}]}];let Fy=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[p.Bz.forChild(Py),p.Bz]}),n})();var Ry=s(14264),By=s(63189),Zy=s(38338);let Vy=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[Fp,z_,m.ez,Fy,Ry.m,By.r,Zi.ez,Nt.d4,Zy.UsersModule]}),n})()},70242:(w,D,s)=>{"use strict";s.d(D,{q:()=>ie});var c=s(96308),x=s(95017),_=s(30671),m=s(9244),p=s(69723),t=s(94650),d=s(36895),l=s(97392),h=s(56709),f=s(10266),u=s(98380),g=s(18750),C=s(89383),L=s(64597),I=s(9185),B=s(8231),M=s(14849);function R(Mt,te){if(1&Mt){const jt=t.EpF();t.TgZ(0,"th",22)(1,"mat-checkbox",23),t.NdJ("change",function(At){t.CHM(jt);const Ht=t.oxw(2);return t.KtG(At?Ht.masterToggle():null)}),t.ALo(2,"translate"),t.ALo(3,"masterCheckboxLabel"),t.qZA()()}if(2&Mt){const jt=t.oxw().ngIf,ae=t.oxw();t.xp6(1),t.Q6J("aria-label",t.lcZ(2,3,t.lcZ(3,5,jt.all)))("checked",ae.selection.hasValue()&&jt.all)("indeterminate",ae.selection.hasValue()&&!jt.all)}}const Z=function(Mt){return{name:Mt}};function H(Mt,te){if(1&Mt){const jt=t.EpF();t.TgZ(0,"td",24)(1,"mat-checkbox",25),t.NdJ("change",function(At){const Zt=t.CHM(jt).$implicit,Kt=t.oxw(2);return t.KtG(At?Kt.selection.toggle(Zt):null)})("click",function(At){return At.stopPropagation()}),t.ALo(2,"translate"),t.ALo(3,"checkboxLabel"),t.qZA()()}if(2&Mt){const jt=te.$implicit,ae=t.oxw(2);t.xp6(1),t.Q6J("aria-label",t.xi3(2,2,t.lcZ(3,5,ae.selection.isSelected(jt)),t.VKq(7,Z,jt.destination)))("checked",ae.selection.isSelected(jt))}}function G(Mt,te){1&Mt&&(t.ynx(0,19),t.YNc(1,R,4,7,"th",20),t.YNc(2,H,4,9,"td",21),t.BQk())}function tt(Mt,te){1&Mt&&(t.TgZ(0,"th",26),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Mt&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.DESTINATION_ID")," "))}function K(Mt,te){if(1&Mt&&(t.TgZ(0,"td",27),t._uU(1),t.qZA()),2&Mt){const jt=te.$implicit;t.xp6(1),t.hij(" ",jt.id," ")}}function st(Mt,te){1&Mt&&(t.TgZ(0,"th",26),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Mt&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.SERVICE")," "))}function j(Mt,te){if(1&Mt&&(t.TgZ(0,"td",28),t._uU(1),t.qZA()),2&Mt){const jt=te.$implicit;t.xp6(1),t.Oqu(jt.service.name)}}function W(Mt,te){1&Mt&&t._UZ(0,"th",29)}function et(Mt,te){1&Mt&&(t.TgZ(0,"mat-icon",31),t.ALo(1,"translate"),t._uU(2," warning "),t.qZA()),2&Mt&&t.s9C("matTooltip",t.lcZ(1,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.WARN"))}function at(Mt,te){if(1&Mt&&(t.TgZ(0,"td",28),t.YNc(1,et,3,3,"mat-icon",30),t.qZA()),2&Mt){const jt=te.$implicit,ae=t.oxw();t.xp6(1),t.Q6J("ngIf",!ae.services.has(jt.service.id))}}function Y(Mt,te){1&Mt&&(t.TgZ(0,"th",26),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Mt&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.FACILITY")," "))}function nt(Mt,te){if(1&Mt&&(t.TgZ(0,"td",28),t._uU(1),t.qZA()),2&Mt){const jt=te.$implicit;t.xp6(1),t.Oqu(jt.facility.name)}}function rt(Mt,te){1&Mt&&(t.TgZ(0,"th",26),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Mt&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.DESTINATION")," "))}function q(Mt,te){if(1&Mt&&(t.TgZ(0,"td",28),t.ALo(1,"multiWordDataCy"),t._uU(2),t.qZA()),2&Mt){const jt=te.$implicit;t.uIk("data-cy",t.lcZ(1,2,jt.destination)),t.xp6(2),t.hij(" ",jt.destination," ")}}function F(Mt,te){1&Mt&&(t.TgZ(0,"th",26),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Mt&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.TYPE")," "))}function E(Mt,te){if(1&Mt&&(t.TgZ(0,"td",28),t._uU(1),t.qZA()),2&Mt){const jt=te.$implicit;t.xp6(1),t.Oqu(jt.type.toUpperCase())}}function ut(Mt,te){1&Mt&&t._UZ(0,"th",29)}function ft(Mt,te){1&Mt&&(t.TgZ(0,"mat-icon",33),t.ALo(1,"translate"),t._uU(2," check_circle_outline "),t.qZA()),2&Mt&&t.s9C("matTooltip",t.lcZ(1,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.ALLOWED"))}function Dt(Mt,te){1&Mt&&(t.TgZ(0,"mat-icon",33),t.ALo(1,"translate"),t._uU(2," block "),t.qZA()),2&Mt&&t.s9C("matTooltip",t.lcZ(1,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.BLOCKED"))}function St(Mt,te){if(1&Mt&&(t.TgZ(0,"td",28),t.YNc(1,ft,3,3,"mat-icon",32),t.YNc(2,Dt,3,3,"mat-icon",32),t.qZA()),2&Mt){const jt=te.$implicit;t.xp6(1),t.Q6J("ngIf",!jt.blocked),t.xp6(1),t.Q6J("ngIf",jt.blocked)}}function Qt(Mt,te){1&Mt&&(t.TgZ(0,"th",26),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Mt&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.PROPAGATION_TYPE")," "))}function pe(Mt,te){if(1&Mt&&(t.TgZ(0,"td",28),t._uU(1),t.qZA()),2&Mt){const jt=te.$implicit;t.xp6(1),t.Oqu(jt.propagationType)}}function wt(Mt,te){1&Mt&&t._UZ(0,"tr",34)}function yt(Mt,te){1&Mt&&t._UZ(0,"tr",35)}function Nt(Mt,te){1&Mt&&(t.TgZ(0,"perun-web-apps-alert",36),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Mt&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function zt(Mt,te){1&Mt&&(t.TgZ(0,"perun-web-apps-alert",36),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Mt&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.NO_DESTINATIONS"),"\n"))}const de=function(Mt){return{all:Mt}};let ie=(()=>{class Mt{constructor(jt,ae){this.authResolver=jt,this.tableCheckbox=ae,this.destinations=[],this.selection=new x.Ov(!0,[]),this.filterValue="",this.pageSizeOptions=m.f7}set matSort(jt){this.sort=jt,this.setDataSource()}static getDataForColumn(jt,ae){switch(ae){case"destinationId":return jt.id.toString();case"service":return jt.service.name;case"facility":return jt.facility.name;case"destination":return jt.destination;case"type":return jt.type;case"status":return jt.blocked?"blocked":"allowed";case"propagationType":return jt.propagationType;default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(jt=>"destinationId"!==jt)),this.dataSource=new _.by(this.destinations),this.setDataSource(),this.dataSource.filter=this.filterValue.toLowerCase()}exportAllData(jt){(0,m.O6)((0,m.Xn)(this.dataSource.filteredData,this.displayedColumns,Mt.getDataForColumn),jt)}exportDisplayedData(jt){const ae=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,At=ae+this.dataSource.paginator.pageSize;(0,m.O6)((0,m.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(ae,At),this.displayedColumns,Mt.getDataForColumn),jt)}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.filterPredicate=(jt,ae)=>(0,m.Sd)(jt,ae,this.displayedColumns,Mt.getDataForColumn),this.dataSource.sortData=(jt,ae)=>(0,m.pR)(jt,ae,Mt.getDataForColumn),this.dataSource.paginator=this.child.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return Mt.\u0275fac=function(jt){return new(jt||Mt)(t.Y36(p.x4),t.Y36(p.UA))},Mt.\u0275cmp=t.Xpm({type:Mt,selectors:[["app-perun-web-apps-destination-list"]],viewQuery:function(jt,ae){if(1&jt&&(t.Gf(m.l9,7),t.Gf(c.YE,7)),2&jt){let At;t.iGM(At=t.CRH())&&(ae.child=At.first),t.iGM(At=t.CRH())&&(ae.matSort=At.first)}},inputs:{destinations:"destinations",selection:"selection",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",services:"services"},features:[t.TTD],decls:33,vars:15,consts:[[1,"card","mt-3",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","destinationId"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","service"],["mat-cell","",4,"matCellDef"],["matColumnDef","warn"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","facility"],["matColumnDef","destination"],["matColumnDef","type"],["matColumnDef","status"],["matColumnDef","propagationType"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-cell",""],["class","warn","matTooltipPosition","above",3,"matTooltip",4,"ngIf"],["matTooltipPosition","above",1,"warn",3,"matTooltip"],["class","align-bottom",3,"matTooltip",4,"ngIf"],[1,"align-bottom",3,"matTooltip"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(jt,ae){1&jt&&(t.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportDisplayedData",function(Ht){return ae.exportDisplayedData(Ht)})("exportAllData",function(Ht){return ae.exportAllData(Ht)}),t.TgZ(2,"table",2),t.YNc(3,G,3,0,"ng-container",3),t.ALo(4,"isAllSelected"),t.ynx(5,4),t.YNc(6,tt,3,3,"th",5),t.YNc(7,K,2,1,"td",6),t.BQk(),t.ynx(8,7),t.YNc(9,st,3,3,"th",5),t.YNc(10,j,2,1,"td",8),t.BQk(),t.ynx(11,9),t.YNc(12,W,1,0,"th",10),t.YNc(13,at,2,1,"td",8),t.BQk(),t.ynx(14,11),t.YNc(15,Y,3,3,"th",5),t.YNc(16,nt,2,1,"td",8),t.BQk(),t.ynx(17,12),t.YNc(18,rt,3,3,"th",5),t.YNc(19,q,3,4,"td",8),t.BQk(),t.ynx(20,13),t.YNc(21,F,3,3,"th",5),t.YNc(22,E,2,1,"td",8),t.BQk(),t.ynx(23,14),t.YNc(24,ut,1,0,"th",10),t.YNc(25,St,3,2,"td",8),t.BQk(),t.ynx(26,15),t.YNc(27,Qt,3,3,"th",5),t.YNc(28,pe,2,1,"td",8),t.BQk(),t.YNc(29,wt,1,0,"tr",16),t.YNc(30,yt,1,0,"tr",17),t.qZA()()(),t.YNc(31,Nt,3,3,"perun-web-apps-alert",18),t.YNc(32,zt,3,3,"perun-web-apps-alert",18)),2&jt&&(t.Q6J("hidden",0===ae.dataSource.filteredData.length||0===ae.destinations.length),t.xp6(1),t.Q6J("pageSizeOptions",ae.pageSizeOptions)("dataLength",ae.dataSource.filteredData.length)("tableId",ae.tableId),t.xp6(1),t.Q6J("dataSource",ae.dataSource),t.xp6(1),t.Q6J("ngIf",t.VKq(13,de,t.xi3(4,10,ae.dataSource,ae.selection.selected.length))),t.xp6(26),t.Q6J("matHeaderRowDef",ae.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",ae.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===ae.dataSource.filteredData.length&&0!==ae.destinations.length),t.xp6(1),t.Q6J("ngIf",0===ae.destinations.length))},dependencies:[d.O5,l.Hw,c.YE,c.nU,_.BZ,_.fO,_.as,_.w1,_.Dz,_.nj,_.ge,_.ev,_.XQ,_.Gk,h.oG,f.gM,u.w,g.l,C.X$,L.R,I.I,B.G,M.r],styles:[".warn[_ngcontent-%COMP%]{color:#ebe134}"]}),Mt})()},89466:(w,D,s)=>{"use strict";s.d(D,{u:()=>I});var c=s(32105),x=s(65412),_=s(30671),m=s(69723),p=s(94650),t=s(89383),d=s(36895),l=s(4859),h=s(51572),f=s(98380),u=s(70242);function g(B,M){1&B&&p._UZ(0,"mat-spinner",6)}function C(B,M){if(1&B&&p._UZ(0,"app-perun-web-apps-destination-list",11),2&B){const R=p.oxw(2);p.Q6J("destinations",R.destinations)("displayedColumns",R.displayedColumns)}}function L(B,M){if(1&B&&(p.TgZ(0,"div",7)(1,"perun-web-apps-alert",8),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"p"),p._uU(5),p.ALo(6,"translate"),p.qZA(),p.TgZ(7,"div",9),p._uU(8),p.ALo(9,"translate"),p.qZA(),p.YNc(10,C,1,2,"app-perun-web-apps-destination-list",10),p.qZA()),2&B){const R=p.oxw();p.xp6(2),p.Oqu(p.lcZ(3,4,"DIALOGS.REMOVE_DESTINATIONS.WARNING")),p.xp6(3),p.Oqu(p.lcZ(6,6,"DIALOGS.REMOVE_DESTINATIONS.DESCRIPTION")),p.xp6(3),p.hij(" ",p.lcZ(9,8,"DIALOGS.REMOVE_DESTINATIONS.ASK")," "),p.xp6(2),p.Q6J("ngIf",!R.loading)}}let I=(()=>{class B{constructor(R,Z,H,G,tt){this.dialogRef=R,this.data=Z,this.notificator=H,this.translate=G,this.serviceManager=tt,this.displayedColumns=[],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.destinations=this.data.destinations,this.displayedColumns="admin-theme"===this.theme?["destinationId","facility","destination","type","propagationType"]:["destinationId","service","destination","type","propagationType"],this.dataSource=new _.by(this.data.destinations)}onCancel(){this.dialogRef.close(!1)}deleteDestinations(){if(0===this.destinations.length)return this.notificator.showSuccess(this.translate.instant("DIALOGS.REMOVE_DESTINATIONS.SUCCESS")),void this.dialogRef.close(!0);const R=this.destinations.pop();this.serviceManager.removeDestination(R.service.id,R.facility.id,R.destination,R.type).subscribe(()=>{this.deleteDestinations()},()=>this.loading=!1)}onConfirm(){this.loading=!0,this.deleteDestinations()}}return B.\u0275fac=function(R){return new(R||B)(p.Y36(x.so),p.Y36(x.WI),p.Y36(m.V6),p.Y36(t.sK),p.Y36(c.KK))},B.\u0275cmp=p.Xpm({type:B,selectors:[["app-perun-web-apps-remove-destination-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],["alert_type","warn"],[1,"font-weight-bold"],[3,"destinations","displayedColumns",4,"ngIf"],[3,"destinations","displayedColumns"]],template:function(R,Z){1&R&&(p.TgZ(0,"h1",0),p._uU(1),p.ALo(2,"translate"),p.qZA(),p.TgZ(3,"div"),p.YNc(4,g,1,0,"mat-spinner",1),p.YNc(5,L,11,10,"div",2),p.TgZ(6,"div",3)(7,"button",4),p.NdJ("click",function(){return Z.onCancel()}),p._uU(8),p.ALo(9,"translate"),p.qZA(),p.TgZ(10,"button",5),p.NdJ("click",function(){return Z.onConfirm()}),p._uU(11),p.ALo(12,"translate"),p.qZA()()()),2&R&&(p.xp6(1),p.Oqu(p.lcZ(2,9,"DIALOGS.REMOVE_DESTINATIONS.TITLE")),p.xp6(2),p.Tol(Z.theme),p.xp6(1),p.Q6J("ngIf",Z.loading),p.xp6(1),p.Q6J("ngIf",!Z.loading),p.xp6(3),p.hij(" ",p.lcZ(9,11,"DIALOGS.REMOVE_DESTINATIONS.CANCEL")," "),p.xp6(2),p.Q6J("disabled",Z.loading),p.xp6(1),p.hij(" ",p.lcZ(12,13,"DIALOGS.REMOVE_DESTINATIONS.CONFIRM")," "))},dependencies:[d.O5,l.lW,x.uh,x.xY,x.H8,h.Ou,f.w,u.q,t.X$]}),B})()},23256:(w,D,s)=>{"use strict";s.d(D,{Q:()=>q});var c=s(96308),x=s(95017),_=s(30671),m=s(9244),p=s(69723),t=s(94650),d=s(36895),l=s(56709),h=s(98380),f=s(18750),u=s(89383),g=s(9185),C=s(8231),L=s(14849);function I(F,E){if(1&F){const ut=t.EpF();t.TgZ(0,"th",17)(1,"mat-checkbox",18),t.NdJ("change",function(Dt){t.CHM(ut);const St=t.oxw(2);return t.KtG(Dt?St.masterToggle():null)}),t.ALo(2,"translate"),t.ALo(3,"masterCheckboxLabel"),t.qZA()()}if(2&F){const ut=t.oxw().ngIf,ft=t.oxw();t.xp6(1),t.Q6J("aria-label",t.lcZ(2,3,t.lcZ(3,5,ut.all)))("checked",ft.selection.hasValue()&&ut.all)("indeterminate",ft.selection.hasValue()&&!ut.all)}}const B=function(F){return{name:F}};function M(F,E){if(1&F){const ut=t.EpF();t.TgZ(0,"td",19)(1,"mat-checkbox",20),t.NdJ("change",function(Dt){const Qt=t.CHM(ut).$implicit,pe=t.oxw(2);return t.KtG(Dt?pe.selection.toggle(Qt):null)})("click",function(Dt){return Dt.stopPropagation()}),t.ALo(2,"translate"),t.ALo(3,"checkboxLabel"),t.qZA()()}if(2&F){const ut=E.$implicit,ft=t.oxw(2);t.xp6(1),t.Q6J("aria-label",t.xi3(2,2,t.lcZ(3,5,ft.selection.isSelected(ut)),t.VKq(7,B,ut.name)))("checked",ft.selection.isSelected(ut))}}function R(F,E){1&F&&(t.ynx(0,14),t.YNc(1,I,4,7,"th",15),t.YNc(2,M,4,9,"td",16),t.BQk())}function Z(F,E){1&F&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&F&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.ID")," "))}function H(F,E){if(1&F&&(t.TgZ(0,"td",22),t._uU(1),t.qZA()),2&F){const ut=E.$implicit;t.xp6(1),t.hij(" ",ut.id," ")}}function G(F,E){1&F&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&F&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NAME")," "))}function tt(F,E){if(1&F&&(t.TgZ(0,"td",23),t._uU(1),t.qZA()),2&F){const ut=E.$implicit;t.uIk("data-cy",ut.name),t.xp6(1),t.Oqu(ut.name)}}function K(F,E){1&F&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&F&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.CONTACT")," "))}function st(F,E){if(1&F&&(t.TgZ(0,"td",23),t._uU(1),t.qZA()),2&F){const ut=E.$implicit;t.xp6(1),t.Oqu(ut.contact)}}function j(F,E){1&F&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&F&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.TYPE")," "))}function W(F,E){if(1&F&&(t.TgZ(0,"td",23),t._uU(1),t.qZA()),2&F){const ut=E.$implicit;t.xp6(1),t.Oqu(ut.type)}}function et(F,E){1&F&&t._UZ(0,"tr",24)}function at(F,E){1&F&&t._UZ(0,"tr",25)}function Y(F,E){1&F&&(t.TgZ(0,"perun-web-apps-alert",26),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&F&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NO_OWNERS"),"\n"))}function nt(F,E){1&F&&(t.TgZ(0,"perun-web-apps-alert",26),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&F&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NO_FILTER_OWNERS"),"\n"))}const rt=function(F){return{all:F}};let q=(()=>{class F{constructor(ut,ft){this.authResolver=ut,this.tableCheckbox=ft,this.owners=[],this.selection=new x.Ov(!0,[]),this.filterValue="",this.displayedColumns=["select","id","name","contact","type"],this.pageSizeOptions=m.f7}set matSort(ut){this.sort=ut,this.setDataSource()}static getDataForColumn(ut,ft){switch(ft){case"id":return ut.id.toString();case"name":return ut.name;case"contact":return ut.contact;case"type":return ut.type;default:return""}}ngAfterViewInit(){this.setDataSource()}exportAllData(ut){(0,m.O6)((0,m.Xn)(this.dataSource.filteredData,this.displayedColumns,F.getDataForColumn),ut)}exportDisplayedData(ut){const ft=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,Dt=ft+this.dataSource.paginator.pageSize;(0,m.O6)((0,m.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(ft,Dt),this.displayedColumns,F.getDataForColumn),ut)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(ut,ft)=>(0,m.Sd)(ut,ft,this.displayedColumns,F.getDataForColumn),this.dataSource.sortData=(ut,ft)=>(0,m.pR)(ut,ft,F.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(ut=>"id"!==ut)),this.dataSource=new _.by(this.owners),this.setDataSource()}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}}return F.\u0275fac=function(ut){return new(ut||F)(t.Y36(p.x4),t.Y36(p.UA))},F.\u0275cmp=t.Xpm({type:F,selectors:[["perun-web-apps-owners-list"]],viewQuery:function(ut,ft){if(1&ut&&(t.Gf(m.l9,7),t.Gf(c.YE,7)),2&ut){let Dt;t.iGM(Dt=t.CRH())&&(ft.child=Dt.first),t.iGM(Dt=t.CRH())&&(ft.matSort=Dt.first)}},inputs:{owners:"owners",selection:"selection",tableId:"tableId",filterValue:"filterValue",displayedColumns:"displayedColumns"},features:[t.TTD],decls:21,vars:15,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","contact"],["matColumnDef","type"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(ut,ft){1&ut&&(t.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportDisplayedData",function(St){return ft.exportDisplayedData(St)})("exportAllData",function(St){return ft.exportAllData(St)}),t.TgZ(2,"table",2),t.YNc(3,R,3,0,"ng-container",3),t.ALo(4,"isAllSelected"),t.ynx(5,4),t.YNc(6,Z,3,3,"th",5),t.YNc(7,H,2,1,"td",6),t.BQk(),t.ynx(8,7),t.YNc(9,G,3,3,"th",5),t.YNc(10,tt,2,2,"td",8),t.BQk(),t.ynx(11,9),t.YNc(12,K,3,3,"th",5),t.YNc(13,st,2,1,"td",8),t.BQk(),t.ynx(14,10),t.YNc(15,j,3,3,"th",5),t.YNc(16,W,2,1,"td",8),t.BQk(),t.YNc(17,et,1,0,"tr",11),t.YNc(18,at,1,0,"tr",12),t.qZA()()(),t.YNc(19,Y,3,3,"perun-web-apps-alert",13),t.YNc(20,nt,3,3,"perun-web-apps-alert",13)),2&ut&&(t.Q6J("hidden",0===ft.owners.length||0===ft.dataSource.filteredData.length),t.xp6(1),t.Q6J("tableId",ft.tableId)("dataLength",ft.dataSource.filteredData.length)("pageSizeOptions",ft.pageSizeOptions),t.xp6(1),t.Q6J("dataSource",ft.dataSource),t.xp6(1),t.Q6J("ngIf",t.VKq(13,rt,t.xi3(4,10,ft.dataSource,ft.selection.selected.length))),t.xp6(14),t.Q6J("matHeaderRowDef",ft.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",ft.displayedColumns),t.xp6(1),t.Q6J("ngIf",!ft.owners.length),t.xp6(1),t.Q6J("ngIf",!ft.dataSource.filteredData.length&&ft.owners.length))},dependencies:[d.O5,l.oG,_.BZ,_.fO,_.as,_.w1,_.Dz,_.nj,_.ge,_.ev,_.XQ,_.Gk,c.YE,c.nU,h.w,f.l,u.X$,g.I,C.G,L.r]}),F})()},16087:(w,D,s)=>{"use strict";const c=s(34315),x=s(52872),_=s(60929);w.exports=function m(d,l){switch(x(d)){case"object":return function p(d,l){if("function"==typeof l)return l(d);if(l||_(d)){const h=new d.constructor;for(let f in d)h[f]=m(d[f],l);return h}return d}(d,l);case"array":return function t(d,l){const h=new d.constructor(d.length);for(let f=0;f{"use strict";var c=s(50623);function x(_){return!0===c(_)&&"[object Object]"===Object.prototype.toString.call(_)}w.exports=function(m){var p,t;return!(!1===x(m)||(p=m.constructor,"function"!=typeof p)||(t=p.prototype,!1===x(t))||!1===t.hasOwnProperty("isPrototypeOf"))}},52786:(w,D,s)=>{"use strict";s.d(D,{B8:()=>K,Il:()=>x,J5:()=>m,SU:()=>tt,Ss:()=>st,Ym:()=>nt,ZP:()=>Z,xV:()=>_});var c=s(68884);function x(){}var _=.7,m=1/_,p="\\s*([+-]?\\d+)\\s*",t="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",d="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",l=/^#([0-9a-f]{3,8})$/,h=new RegExp("^rgb\\("+[p,p,p]+"\\)$"),f=new RegExp("^rgb\\("+[d,d,d]+"\\)$"),u=new RegExp("^rgba\\("+[p,p,p,t]+"\\)$"),g=new RegExp("^rgba\\("+[d,d,d,t]+"\\)$"),C=new RegExp("^hsl\\("+[t,d,d]+"\\)$"),L=new RegExp("^hsla\\("+[t,d,d,t]+"\\)$"),I={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function B(){return this.rgb().formatHex()}function R(){return this.rgb().formatRgb()}function Z(F){var E,ut;return F=(F+"").trim().toLowerCase(),(E=l.exec(F))?(ut=E[1].length,E=parseInt(E[1],16),6===ut?H(E):3===ut?new st(E>>8&15|E>>4&240,E>>4&15|240&E,(15&E)<<4|15&E,1):8===ut?G(E>>24&255,E>>16&255,E>>8&255,(255&E)/255):4===ut?G(E>>12&15|E>>8&240,E>>8&15|E>>4&240,E>>4&15|240&E,((15&E)<<4|15&E)/255):null):(E=h.exec(F))?new st(E[1],E[2],E[3],1):(E=f.exec(F))?new st(255*E[1]/100,255*E[2]/100,255*E[3]/100,1):(E=u.exec(F))?G(E[1],E[2],E[3],E[4]):(E=g.exec(F))?G(255*E[1]/100,255*E[2]/100,255*E[3]/100,E[4]):(E=C.exec(F))?at(E[1],E[2]/100,E[3]/100,1):(E=L.exec(F))?at(E[1],E[2]/100,E[3]/100,E[4]):I.hasOwnProperty(F)?H(I[F]):"transparent"===F?new st(NaN,NaN,NaN,0):null}function H(F){return new st(F>>16&255,F>>8&255,255&F,1)}function G(F,E,ut,ft){return ft<=0&&(F=E=ut=NaN),new st(F,E,ut,ft)}function tt(F){return F instanceof x||(F=Z(F)),F?new st((F=F.rgb()).r,F.g,F.b,F.opacity):new st}function K(F,E,ut,ft){return 1===arguments.length?tt(F):new st(F,E,ut,ft??1)}function st(F,E,ut,ft){this.r=+F,this.g=+E,this.b=+ut,this.opacity=+ft}function j(){return"#"+et(this.r)+et(this.g)+et(this.b)}function W(){var F=this.opacity;return(1===(F=isNaN(F)?1:Math.max(0,Math.min(1,F)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===F?")":", "+F+")")}function et(F){return((F=Math.max(0,Math.min(255,Math.round(F)||0)))<16?"0":"")+F.toString(16)}function at(F,E,ut,ft){return ft<=0?F=E=ut=NaN:ut<=0||ut>=1?F=E=NaN:E<=0&&(F=NaN),new rt(F,E,ut,ft)}function Y(F){if(F instanceof rt)return new rt(F.h,F.s,F.l,F.opacity);if(F instanceof x||(F=Z(F)),!F)return new rt;if(F instanceof rt)return F;var E=(F=F.rgb()).r/255,ut=F.g/255,ft=F.b/255,Dt=Math.min(E,ut,ft),St=Math.max(E,ut,ft),Qt=NaN,pe=St-Dt,wt=(St+Dt)/2;return pe?(Qt=E===St?(ut-ft)/pe+6*(ut0&&wt<1?0:Qt,new rt(Qt,pe,wt,F.opacity)}function nt(F,E,ut,ft){return 1===arguments.length?Y(F):new rt(F,E,ut,ft??1)}function rt(F,E,ut,ft){this.h=+F,this.s=+E,this.l=+ut,this.opacity=+ft}function q(F,E,ut){return 255*(F<60?E+(ut-E)*F/60:F<180?ut:F<240?E+(ut-E)*(240-F)/60:E)}(0,c.Z)(x,Z,{copy:function(F){return Object.assign(new this.constructor,this,F)},displayable:function(){return this.rgb().displayable()},hex:B,formatHex:B,formatHsl:function M(){return Y(this).formatHsl()},formatRgb:R,toString:R}),(0,c.Z)(st,K,(0,c.l)(x,{brighter:function(F){return F=null==F?m:Math.pow(m,F),new st(this.r*F,this.g*F,this.b*F,this.opacity)},darker:function(F){return F=null==F?_:Math.pow(_,F),new st(this.r*F,this.g*F,this.b*F,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:j,formatHex:j,formatRgb:W,toString:W})),(0,c.Z)(rt,nt,(0,c.l)(x,{brighter:function(F){return F=null==F?m:Math.pow(m,F),new rt(this.h,this.s,this.l*F,this.opacity)},darker:function(F){return F=null==F?_:Math.pow(_,F),new rt(this.h,this.s,this.l*F,this.opacity)},rgb:function(){var F=this.h%360+360*(this.h<0),E=isNaN(F)||isNaN(this.s)?0:this.s,ut=this.l,ft=ut+(ut<.5?ut:1-ut)*E,Dt=2*ut-ft;return new st(q(F>=240?F-240:F+120,Dt,ft),q(F,Dt,ft),q(F<120?F+240:F-120,Dt,ft),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var F=this.opacity;return(1===(F=isNaN(F)?1:Math.max(0,Math.min(1,F)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===F?")":", "+F+")")}}))},68884:(w,D,s)=>{"use strict";function c(_,m,p){_.prototype=m.prototype=p,p.constructor=_}function x(_,m){var p=Object.create(_.prototype);for(var t in m)p[t]=m[t];return p}s.d(D,{Z:()=>c,l:()=>x})},25922:(w,D,s)=>{"use strict";s.d(D,{Z:()=>d});var c={value:function(){}};function x(){for(var u,l=0,h=arguments.length,f={};l=0&&(u=f.slice(g+1),f=f.slice(0,g)),f&&!h.hasOwnProperty(f))throw new Error("unknown type: "+f);return{type:f,name:u}})}function p(l,h){for(var g,f=0,u=l.length;f0)for(var g,C,f=new Array(g),u=0;u{"use strict";s.d(D,{Z:()=>m,D:()=>p});var c=s(52016);function _(t){t.preventDefault(),t.stopImmediatePropagation()}function m(t){var d=t.document.documentElement,l=(0,c.Z)(t).on("dragstart.drag",_,!0);"onselectstart"in d?l.on("selectstart.drag",_,!0):(d.__noselect=d.style.MozUserSelect,d.style.MozUserSelect="none")}function p(t,d){var l=t.document.documentElement,h=(0,c.Z)(t).on("dragstart.drag",null);d&&(h.on("click.drag",_,!0),setTimeout(function(){h.on("click.drag",null)},0)),"onselectstart"in l?h.on("selectstart.drag",null):(l.style.MozUserSelect=l.__noselect,delete l.__noselect)}},27065:(w,D,s)=>{"use strict";function _(m){return((m*=2)<=1?m*m*m:(m-=2)*m*m+2)/2}s.d(D,{tw:()=>_})},22910:(w,D,s)=>{"use strict";s.d(D,{WU:()=>_,ZP:()=>p,jH:()=>m});var x,_,m,c=s(4753);function p(t){return x=(0,c.Z)(t),_=x.format,m=x.formatPrefix,x}p({thousands:",",grouping:[3],currency:["$",""]})},68520:(w,D,s)=>{"use strict";s.d(D,{Z:()=>x});var c=s(5326);function x(_){return(_=(0,c.V)(Math.abs(_)))?_[1]:NaN}},5326:(w,D,s)=>{"use strict";function c(_){return Math.abs(_=Math.round(_))>=1e21?_.toLocaleString("en").replace(/,/g,""):_.toString(10)}function x(_,m){if((p=(_=m?_.toExponential(m-1):_.toExponential()).indexOf("e"))<0)return null;var p,t=_.slice(0,p);return[t.length>1?t[0]+t.slice(2):t,+_.slice(p+1)]}s.d(D,{V:()=>x,Z:()=>c})},32517:(w,D,s)=>{"use strict";s.d(D,{Z:()=>x,v:()=>_});var c=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function x(m){if(!(p=c.exec(m)))throw new Error("invalid format: "+m);var p;return new _({fill:p[1],align:p[2],sign:p[3],symbol:p[4],zero:p[5],width:p[6],comma:p[7],precision:p[8]&&p[8].slice(1),trim:p[9],type:p[10]})}function _(m){this.fill=void 0===m.fill?" ":m.fill+"",this.align=void 0===m.align?">":m.align+"",this.sign=void 0===m.sign?"-":m.sign+"",this.symbol=void 0===m.symbol?"":m.symbol+"",this.zero=!!m.zero,this.width=void 0===m.width?void 0:+m.width,this.comma=!!m.comma,this.precision=void 0===m.precision?void 0:+m.precision,this.trim=!!m.trim,this.type=void 0===m.type?"":m.type+""}x.prototype=_.prototype,_.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type}},41129:(w,D,s)=>{"use strict";s.r(D),s.d(D,{FormatSpecifier:()=>_.v,format:()=>c.WU,formatDefaultLocale:()=>c.ZP,formatLocale:()=>x.Z,formatPrefix:()=>c.jH,formatSpecifier:()=>_.Z,precisionFixed:()=>m.Z,precisionPrefix:()=>p.Z,precisionRound:()=>t.Z});var c=s(22910),x=s(4753),_=s(32517),m=s(78986),p=s(38914),t=s(65142)},4753:(w,D,s)=>{"use strict";s.d(D,{Z:()=>L});var d,c=s(68520),m=s(32517),t=s(5326);function h(I,B){var M=(0,t.V)(I,B);if(!M)return I+"";var R=M[0],Z=M[1];return Z<0?"0."+new Array(-Z).join("0")+R:R.length>Z+1?R.slice(0,Z+1)+"."+R.slice(Z+1):R+new Array(Z-R.length+2).join("0")}const f={"%":(I,B)=>(100*I).toFixed(B),b:I=>Math.round(I).toString(2),c:I=>I+"",d:t.Z,e:(I,B)=>I.toExponential(B),f:(I,B)=>I.toFixed(B),g:(I,B)=>I.toPrecision(B),o:I=>Math.round(I).toString(8),p:(I,B)=>h(100*I,B),r:h,s:function l(I,B){var M=(0,t.V)(I,B);if(!M)return I+"";var R=M[0],Z=M[1],H=Z-(d=3*Math.max(-8,Math.min(8,Math.floor(Z/3))))+1,G=R.length;return H===G?R:H>G?R+new Array(H-G+1).join("0"):H>0?R.slice(0,H)+"."+R.slice(H):"0."+new Array(1-H).join("0")+(0,t.V)(I,Math.max(0,B+H-1))[0]},X:I=>Math.round(I).toString(16).toUpperCase(),x:I=>Math.round(I).toString(16)};function u(I){return I}var g=Array.prototype.map,C=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function L(I){var B=void 0===I.grouping||void 0===I.thousands?u:function x(I,B){return function(M,R){for(var Z=M.length,H=[],G=0,tt=I[0],K=0;Z>0&&tt>0&&(K+tt+1>R&&(tt=Math.max(1,R-K)),H.push(M.substring(Z-=tt,Z+tt)),!((K+=tt+1)>R));)tt=I[G=(G+1)%I.length];return H.reverse().join(B)}}(g.call(I.grouping,Number),I.thousands+""),M=void 0===I.currency?"":I.currency[0]+"",R=void 0===I.currency?"":I.currency[1]+"",Z=void 0===I.decimal?".":I.decimal+"",H=void 0===I.numerals?u:function _(I){return function(B){return B.replace(/[0-9]/g,function(M){return I[+M]})}}(g.call(I.numerals,String)),G=void 0===I.percent?"%":I.percent+"",tt=void 0===I.minus?"\u2212":I.minus+"",K=void 0===I.nan?"NaN":I.nan+"";function st(W){var et=(W=(0,m.Z)(W)).fill,at=W.align,Y=W.sign,nt=W.symbol,rt=W.zero,q=W.width,F=W.comma,E=W.precision,ut=W.trim,ft=W.type;"n"===ft?(F=!0,ft="g"):f[ft]||(void 0===E&&(E=12),ut=!0,ft="g"),(rt||"0"===et&&"="===at)&&(rt=!0,et="0",at="=");var Dt="$"===nt?M:"#"===nt&&/[boxX]/.test(ft)?"0"+ft.toLowerCase():"",St="$"===nt?R:/[%p]/.test(ft)?G:"",Qt=f[ft],pe=/[defgprs%]/.test(ft);function wt(yt){var de,ie,Mt,Nt=Dt,zt=St;if("c"===ft)zt=Qt(yt)+zt,yt="";else{var te=(yt=+yt)<0||1/yt<0;if(yt=isNaN(yt)?K:Qt(Math.abs(yt),E),ut&&(yt=function p(I){t:for(var Z,B=I.length,M=1,R=-1;M0&&(R=0)}return R>0?I.slice(0,R)+I.slice(Z+1):I}(yt)),te&&0==+yt&&"+"!==Y&&(te=!1),Nt=(te?"("===Y?Y:tt:"-"===Y||"("===Y?"":Y)+Nt,zt=("s"===ft?C[8+d/3]:"")+zt+(te&&"("===Y?")":""),pe)for(de=-1,ie=yt.length;++de(Mt=yt.charCodeAt(de))||Mt>57){zt=(46===Mt?Z+yt.slice(de+1):yt.slice(de))+zt,yt=yt.slice(0,de);break}}F&&!rt&&(yt=B(yt,1/0));var jt=Nt.length+yt.length+zt.length,ae=jt>1)+Nt+yt+zt+ae.slice(jt);break;default:yt=ae+Nt+yt+zt}return H(yt)}return E=void 0===E?6:/[gprs]/.test(ft)?Math.max(1,Math.min(21,E)):Math.max(0,Math.min(20,E)),wt.toString=function(){return W+""},wt}return{format:st,formatPrefix:function j(W,et){var at=st(((W=(0,m.Z)(W)).type="f",W)),Y=3*Math.max(-8,Math.min(8,Math.floor((0,c.Z)(et)/3))),nt=Math.pow(10,-Y),rt=C[8+Y/3];return function(q){return at(nt*q)+rt}}}}},78986:(w,D,s)=>{"use strict";s.d(D,{Z:()=>x});var c=s(68520);function x(_){return Math.max(0,-(0,c.Z)(Math.abs(_)))}},38914:(w,D,s)=>{"use strict";s.d(D,{Z:()=>x});var c=s(68520);function x(_,m){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor((0,c.Z)(m)/3)))-(0,c.Z)(Math.abs(_)))}},65142:(w,D,s)=>{"use strict";s.d(D,{Z:()=>x});var c=s(68520);function x(_,m){return _=Math.abs(_),m=Math.abs(m)-_,Math.max(0,(0,c.Z)(m)-(0,c.Z)(_))+1}},9921:function(w,D,s){!function(c,x,_,m,p,t,d,l,h,f){"use strict";function u(Q){if(Q&&Q.__esModule)return Q;var pt=Object.create(null);return Q&&Object.keys(Q).forEach(function(mt){if("default"!==mt){var gt=Object.getOwnPropertyDescriptor(Q,mt);Object.defineProperty(pt,mt,gt.get?gt:{enumerable:!0,get:function(){return Q[mt]}})}}),pt.default=Q,Object.freeze(pt)}var Lt,g=u(x);function C(Q,pt,mt){return pt in Q?Object.defineProperty(Q,pt,{value:mt,enumerable:!0,configurable:!0,writable:!0}):Q[pt]=mt,Q}function L(Q){return function I(Q){if(Array.isArray(Q))return R(Q)}(Q)||function B(Q){if(typeof Symbol<"u"&&null!=Q[Symbol.iterator]||null!=Q["@@iterator"])return Array.from(Q)}(Q)||function M(Q,pt){if(Q){if("string"==typeof Q)return R(Q,pt);var mt=Object.prototype.toString.call(Q).slice(8,-1);if("Object"===mt&&Q.constructor&&(mt=Q.constructor.name),"Map"===mt||"Set"===mt)return Array.from(Q);if("Arguments"===mt||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(mt))return R(Q,pt)}}(Q)||function Z(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function R(Q,pt){(null==pt||pt>Q.length)&&(pt=Q.length);for(var mt=0,gt=new Array(pt);mt1&&void 0!==arguments[1]?arguments[1]:0,mt=g.select(this),gt=Q.attributes,Ut=mt.node().attributes;if(Ut)for(var Xt=0;Xt0?wn.children[0].text:"")}null==he.key&&(Ut&&("ellipse"==vn||"polygon"==vn)&&(vn="path"),he.key=vn+"-"+Xe)}function Pe(he,Xe){he.id=(Xe?Xe.id+".":"")+he.key}function Be(he){O[he.id]=he}function ue(he,Xe){Ut&&he.id in se&&("polygon"==Xe.tag||"ellipse"==Xe.tag||"path"==Xe.tag)&&(Xe.tag!=he.tag||"polygon"==he.tag)&&("path"!=Xe.tag&&(he.alternativeOld=ae(Xe,he)),"path"!=he.tag&&(he.alternativeNew=ae(he,Xe)))}function me(he,Xe){if(gt&&Xe&&("path"==Xe.tag||he.alternativeOld&&"path"==he.alternativeOld.tag)){var vn=(he.alternativeNew||he).attributes.d;if(he.alternativeOld)var wn=K(he.alternativeOld);else wn=K(Xe);(he.alternativeOld||(he.alternativeOld={})).points=function wt(Q,pt,mt,gt){for(var Ut=Q,Xt=Ut.cloneNode(),kt=Ut.getTotalLength(),le=(Xt.setAttribute("d",pt),Xt).getTotalLength(),O=[0],se=0,Se=gt?mt:mt/Math.max(kt,le);(se+=Se)<1;)O.push(se);return O.push(1),O.map(function(je){var Pe=Ut.getPointAtLength(je*kt),Be=Xt.getPointAtLength(je*le);return[[Pe.x,Pe.y],[Be.x,Be.y]]})}(wn,vn,Xt,kt)}}function Fe(he){var vn=arguments.length>2?arguments[2]:void 0;je(he,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),Pe(he,vn);var Qn=se[he.id];Be(he),ue(he,Qn),me(he,Qn);var ci={};he.children.forEach(function(vi){var jn=vi.tag;("ellipse"==jn||"polygon"==jn)&&(jn="path"),null==ci[jn]&&(ci[jn]=0),Fe(vi,ci[jn]++,he)})}function Ye(he){(function pn(he){if(le&&he.parent&&"node"==he.parent.attributes.class&&"title"==he.tag){if(he.children.length>0)var wn=he.children[0].text;else wn="";Se[wn]=he.parent}})(he),function ln(he){var vn=he.tag;if(le&&!se[he.id]&&he.parent&&zt(he)&&("path"==vn||"polygon"==vn)){if("polygon"==vn){var Qn=he.parent.children.find(function(gn){return"path"==gn.tag});Qn&&(he.totalLength=Qn.totalLength)}var vi=function ie(Q){return function de(Q){return"edge"==Q.parent.attributes.class?Q.parent:Q.parent.parent.parent}(Q).children.find(function(pt){return"title"==pt.tag})}(he).children[0],jn=vi.text.split("->");2!=jn.length&&(jn=vi.text.split("--"));var Vi=jn[0],Jn=Se[Vi],bi=Ce[Vi];if(bi){if((cn=Jn.children.findIndex(function(gn,In){return"g"==gn.tag}))>=0){var fn=Jn.children[cn].children.findIndex(function(gn,In){return"a"==gn.tag});Jn=Jn.children[cn].children[fn]}(cn=bi.children.findIndex(function(gn,In){return"g"==gn.tag}))>=0&&(fn=bi.children[cn].children.findIndex(function(In,on){return"a"==In.tag}),bi=bi.children[cn].children[fn]);for(var ui=Jn.children,cn=0;cn0&&this._queue.shift().call(this)}function Ni(Q,pt,mt,gt){var Ut=[Q*mt-(pt=-pt)*(gt=-gt),Q*gt+pt*mt];return[Q=Ut[0],pt=-(pt=Ut[1])]}function Bi(Q,pt,mt,gt,Ut,Xt,kt){var O=G(nn.call(this,Xt));Q.data([O]),at.call(Q.node(),O),fe(Q,pt,mt,gt,Ut,Xt,kt)}function fe(Q,pt,mt,gt,Ut,Xt,kt){var le=kt.shortening||0,Ce=[[0,-3.5],[10,0],[0,3.5],[0,-3.5]],je=gt-pt,Pe=Ut-mt,Be=Math.sqrt(je*je+Pe*Pe);if(0==Be)var ue=1,me=0;else ue=je/Be,me=Pe/Be;if(gt=pt+(Be-le-10-.1)*ue,Ut=mt+(Be-le-10-.1)*me,Xt.URL||Xt.tooltip)var Fe=Q.selectWithoutDataPropagation("g").selectWithoutDataPropagation("a"),pn=Fe.selectWithoutDataPropagation("path"),ln=Fe.selectWithoutDataPropagation("polygon");else pn=Q.selectWithoutDataPropagation("path"),ln=Q.selectWithoutDataPropagation("polygon");var Ye=f.path();Ye.moveTo(pt,mt),Ye.lineTo(gt,Ut),pn.attr("d",Ye),gt=pt+(Be-le-10)*ue,Ut=mt+(Be-le-10)*me;for(var We=0;We b ["+pt+"]}","svg","dot"),O=(new window.DOMParser).parseFromString(kt,"image/svg+xml");return g.select(document.createDocumentFragment()).append(function(){return O.documentElement}).select(".edge")}function kn(Q,pt,mt,gt,Ut,Xt){var le=G(X.call(this,gt,Ut));return Q.data([le]),at.call(Q.node(),le),we(Q,pt,mt,Ut),this}function we(Q,pt,mt,gt,Ut){if(gt.URL||gt.tooltip)var Xt=Q.selectWithoutDataPropagation("g").selectWithoutDataPropagation("a");else Xt=Q;var kt=Xt.selectAll("ellipse,polygon,path,polyline"),le=Q.selectWithoutDataPropagation("text");if(0!=kt.size()){var O=kt.node().getBBox();O.cx=O.x+O.width/2,O.cy=O.y+O.height/2}else 0!=le.size()&&(O={x:+le.attr("x"),y:+le.attr("y"),width:0,height:0,cx:+le.attr("x"),cy:+le.attr("y")});return kt.each(function(se,Se){var Ce=g.select(this);if(Ce.attr("cx"))Ce.attr("cx",nt(pt)).attr("cy",nt(mt));else if(Ce.attr("points")){var je=Ce.attr("points").trim();Ce.attr("points",function At(Xt,pt,mt){var Ut,gt=(Ut=Xt.split(" ")).map(function(kt){return kt.split(",")});return gt=Ut.map(function(kt){return[nt(+pt+ +kt.split(",")[0]),nt(+mt+ +kt.split(",")[1])]}),(Ut=gt.map(function(kt){return kt.join(",")})).join(" ")}(je,pt-O.cx,mt-O.cy))}else{var Pe=Ce.attr("d");Ce.attr("d",function Ht(Q,pt,mt){(Xt=Q.split(/[A-Z ]/)).shift();var gt=Q.split(/[^[A-Z ]+/),Xt=(Xt.map(function(kt){return kt.split(",")}),Xt.map(function(kt){return[nt(+pt+ +kt.split(",")[0]),nt(+mt+ +kt.split(",")[1])]}).map(function(kt){return kt.join(",")}));return gt.reduce(function(kt,le,O){return kt.concat(le,Xt[O])},[]).join("")}(Pe,pt-O.cx,mt-O.cy))}}),0!=le.size()&&le.attr("x",nt(+le.attr("x")+pt-O.cx)).attr("y",nt(+le.attr("y")+mt-O.cy)),this}function Fn(){if(!this._drawnNode)return this;var Q=this._drawnNode.g;return Q.empty()||Q.remove(),this._drawnNode=null,this}function z(){return this._drawnNode?this._drawnNode.g:g.select(null)}function X(Q,pt){for(var mt="",gt=0,Ut=Object.keys(pt);gt"u"&&(kt=!1),typeof SharedWorker>"u"&&(le=!1),kt||le){var se=g.selectAll("script").filter(function(){return"javascript/worker"==g.select(this).attr("type")||g.select(this).attr("src")&&g.select(this).attr("src").match(/.*\/@hpcc-js\/wasm/)});0==se.size()?(console.warn('No script tag of type "javascript/worker" was found and "useWorker" is true. Not using web worker.'),kt=!1,le=!1):(this._vizURL=se.attr("src"),this._vizURL||(console.warn('No "src" attribute of was found on the "javascript/worker" script tag and "useWorker" is true. Not using web worker.'),kt=!1,le=!1))}if(le){var Se="data:application/javascript;base64,"+btoa(lt.toString()+"("+bt.toString()+")()");this._worker=this._worker=new SharedWorker(Se),this._workerPort=this._worker.port,this._workerPortClose=this._worker.port.close.bind(this._workerPort),this._worker.port.start(),this._workerCallbacks=[]}else if(kt){var Ce=new Blob([lt.toString()+"("+A.toString()+")()"]),je=window.URL.createObjectURL(Ce);this._worker=new Worker(je),this._workerPort=this._worker,this._workerPortClose=this._worker.terminate.bind(this._worker),this._workerCallbacks=[]}else l.graphvizVersion().then(function(Pe){mt._graphvizVersion=Pe}.bind(this));this._selection=Q,this._active=!1,this._busy=!1,this._jobs=[],this._queue=[],this._keyModes=new Set(["title","id","tag-index","index"]),this._images=[],this._translation=void 0,this._scale=void 0,this._eventTypes=["initEnd","start","layoutStart","layoutEnd","dataExtractEnd","dataProcessPass1End","dataProcessPass2End","dataProcessEnd","renderStart","renderEnd","transitionStart","transitionEnd","restoreEnd","end","zoom"],this._dispatch=_.dispatch.apply(void 0,L(this._eventTypes)),Zt.call(this),Q.node().__graphviz__=this}function Gt(Q,pt){return g.select(Q).graphviz(pt)}Pt.prototype=Gt.prototype=(C(Lt={constructor:Pt,engine:function ce(Q){return this._options.engine=Q,this},addImage:function _e(Q,pt,mt){return this._images.push({path:Q,width:pt,height:mt}),this},keyMode:function ee(Q){if(!this._keyModes.has(Q))throw Error("Illegal keyMode: "+Q);if(Q!=this._options.keyMode&&null!=this._data)throw Error("Too late to change keyMode");return this._options.keyMode=Q,this},fade:function Ze(Q){return this._options.fade=Q,this},tweenPaths:function ze(Q){return this._options.tweenPaths=Q,this},tweenShapes:function Cn(Q){return this._options.tweenShapes=Q,Q&&(this._options.tweenPaths=!0),this},convertEqualSidedPolygons:function oi(Q){return this._options.convertEqualSidedPolygons=Q,this},tweenPrecision:function Mi(Q){return this._options.tweenPrecision=Q,this},growEnteringEdges:function mi(Q){return this._options.growEnteringEdges=Q,this},zoom:function rt(Q){return this._options.zoom=Q,this._options.zoom&&!this._zoomBehavior?q.call(this):!this._options.zoom&&this._zoomBehavior&&(this._zoomSelection.on(".zoom",null),this._zoomBehavior=null),this},resetZoom:function ut(Q){var pt=this._zoomSelection;return Q&&(pt=pt.transition(Q)),pt.call(this._zoomBehavior.transform,this._originalTransform),this},zoomBehavior:function St(){return this._zoomBehavior||null},zoomSelection:function Qt(){return this._zoomSelection||null},zoomScaleExtent:function ft(Q){return this._options.zoomScaleExtent=Q,this},zoomTranslateExtent:function Dt(Q){return this._options.zoomTranslateExtent=Q,this},render:function Mt(Q){return this._busy?(this._queue.push(this.render.bind(this,Q)),this):(this._dispatch.call("renderStart",this),this._transitionFactory?p.timeout(function(){this._transition=m.transition(this._transitionFactory()),te.call(this,Q)}.bind(this),0):te.call(this,Q),this)},layout:function xe(Q,pt,mt,gt){if(this._worker)Kt.call(this,{type:"layout",dot:Q,engine:pt,options:mt},function(Xt){gt.call(this,Xt.data)});else try{var Ut=this.layoutSync(Q,"svg",pt,mt);gt.call(this,{type:"done",svg:Ut})}catch(Xt){gt.call(this,{type:"error",error:Xt.message})}},dot:function Te(Q,pt){var mt=this,gt=this._options.engine,Ut=this._images;return this._dispatch.call("start",this),this._busy=!0,this._dispatch.call("layoutStart",this),this._worker||null!=this.layoutSync?(this.layout(Q,gt,{images:Ut},function(kt){switch(kt.type){case"error":if(!mt._onerror)throw kt.error.message;mt._onerror(kt.error);break;case"done":Le.call(this,kt.svg,pt)}}),this):(this._afterInit=this.dot.bind(this,Q,pt),this)},data:function yt(){return this._data||null},renderDot:function Oe(Q,pt){var mt=this;return this.dot(Q,function gt(){mt.render(pt)}),this},transition:function Ee(Q){return Q instanceof Function?this._transitionFactory=Q:this._transition=m.transition(Q),this},active:function Ue(Q){var mt=this._selection.selectWithoutDataPropagation("svg");return 0!=mt.size()?m.active(mt.node(),Q):null},options:function Ve(Q){if(typeof Q>"u")return Object.assign({},this._options);for(var pt=0,mt=Object.keys(Q);pt2")(je)+" ",me+=Pe+" ".repeat(Xt-Pe.length),me+=h.format(" >5")(Be-mt)+" ","initEnd"!=Pe&&(me+=h.format(" >5")(Be-gt.start[ue])),"dataProcessEnd"==Pe&&(me+=" prepare "+h.format(" >5")(Be-gt.layoutEnd[ue])),"renderEnd"==Pe&&O._transition&&(me+=" transition start margin "+h.format(" >5")(O._transition.delay()-(Be-gt.renderStart[ue])),se=O._transition.delay(),Se=O._transition.duration()),"transitionStart"==Pe){var Fe=Be-gt.renderStart[ue];me+=" transition delay "+h.format(" >5")(Be-gt.renderStart[ue]),me+=" expected "+h.format(" >5")(se),me+=" diff "+h.format(" >5")(Fe-se)}if("transitionEnd"==Pe){var pn=Be-gt.transitionStart[ue];me+=" transition duration "+h.format(" >5")(pn),me+=" expected "+h.format(" >5")(Se),me+=" diff "+h.format(" >5")(pn-Se)}console.log(me),mt=Be}:null)},le=0;le5&&void 0!==arguments[5]?arguments[5]:{};if((Ut=Object.assign({},Ut)).style&&Ut.style.includes("invis"))var kt=g.select(null);else{var se=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),Ce=G(nn.call(this,Ut));kt=se.append("g").data([Ce]),at.call(kt.node(),Ce),Bi.call(this,kt,Q,pt,mt,gt,Ut,Xt)}return this._drawnEdge={g:kt,x1:Q,y1:pt,x2:mt,y2:gt,attributes:Ut},this},updateDrawnEdge:function Qi(Q,pt,mt,gt){var Ut=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},Xt=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};if(!this._drawnEdge)throw Error("No edge has been drawn");var kt=this._drawnEdge.g;return Ut=Object.assign(this._drawnEdge.attributes,Ut),this._drawnEdge.x1=Q,this._drawnEdge.y1=pt,this._drawnEdge.x2=mt,this._drawnEdge.y2=gt,!kt.empty()||Ut.style&&Ut.style.includes("invis")||(kt=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g").append("g"),this._drawnEdge.g=kt),kt.empty()||Bi.call(this,kt,Q,pt,mt,gt,Ut,Xt),this},moveDrawnEdgeEndPoint:function En(Q,pt){var mt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!this._drawnEdge)throw Error("No edge has been drawn");var gt=this._drawnEdge.g,Ut=this._drawnEdge.x1,Xt=this._drawnEdge.y1,kt=this._drawnEdge.attributes;return this._drawnEdge.x2=Q,this._drawnEdge.y2=pt,fe(gt,Ut,Xt,Q,pt,kt,mt),this},insertDrawnEdge:function Mn(Q){if(!this._drawnEdge)throw Error("No edge has been drawn");var pt=this._drawnEdge.g;if(pt.empty())return this;pt.selectWithoutDataPropagation("title").text(Q);var Xt=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),kt=Xt.datum(),le=this._extractData(pt,kt.children.length,Xt.datum());return kt.children.push(le),W(pt,le),this._drawnEdge=null,this},removeDrawnEdge:ji},"removeDrawnEdge",ji),C(Lt,"drawnEdgeSelection",mn),C(Lt,"drawnEdgeSelection",mn),C(Lt,"drawNode",function Wn(Q,pt,mt){var gt=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},Ut=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if((gt=Object.assign({},gt)).style&>.style.includes("invis"))var Xt=g.select(null);else{var O=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),Se=G(X.call(this,mt,gt));Xt=O.append("g").data([Se]),at.call(Xt.node(),Se),kn.call(this,Xt,Q,pt,mt,gt,Ut)}return this._drawnNode={g:Xt,nodeId:mt,x:Q,y:pt,attributes:gt},this}),C(Lt,"updateDrawnNode",function li(Q,pt,mt){var gt=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},Ut=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if(!this._drawnNode)throw Error("No node has been drawn");var Xt=this._drawnNode.g;return null==mt&&(mt=this._drawnNode.nodeId),gt=Object.assign(this._drawnNode.attributes,gt),this._drawnNode.nodeId=mt,this._drawnNode.x=Q,this._drawnNode.y=pt,!Xt.empty()||gt.style&>.style.includes("invis")||(Xt=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g").append("g"),this._drawnNode.g=Xt),Xt.empty()||kn.call(this,Xt,Q,pt,mt,gt,Ut),this}),C(Lt,"moveDrawnNode",function Zi(Q,pt){if(!this._drawnNode)throw Error("No node has been drawn");var mt=this._drawnNode.g,gt=this._drawnNode.attributes;return this._drawnNode.x=Q,this._drawnNode.y=pt,mt.empty()||we(mt,Q,pt,gt),this}),C(Lt,"insertDrawnNode",function dn(Q){if(!this._drawnNode)throw Error("No node has been drawn");null==Q&&(Q=this._drawnNode.nodeId);var pt=this._drawnNode.g;if(pt.empty())return this;var mt=this._drawnNode.attributes;if(pt.selectWithoutDataPropagation("title").text(Q),mt.URL||mt.tooltip){var Xt=pt.selectWithoutDataPropagation("g").selectWithoutDataPropagation("a");Xt.selectWithoutDataPropagation("ellipse,polygon,path,polyline");var kt=Xt.selectWithoutDataPropagation("text")}else pt.selectWithoutDataPropagation("ellipse,polygon,path,polyline"),kt=pt.selectWithoutDataPropagation("text");kt.text(mt.label||Q);var se=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),Se=se.datum(),Ce=this._extractData(pt,Se.children.length,se.datum());return Se.children.push(Ce),W(pt,Ce),this._drawnNode=null,this}),C(Lt,"removeDrawnNode",Fn),C(Lt,"removeDrawnNode",Fn),C(Lt,"drawnNodeSelection",z),C(Lt,"drawnNodeSelection",z),C(Lt,"graphvizVersion",function jt(){return this._graphvizVersion}),Lt),x.selection.prototype.graphviz=function Jt(Q){var pt=this.node().__graphviz__;return pt?(pt.options(Q),p.timeout(function(){pt._dispatch.call("initEnd",this)}.bind(this),0)):pt=new Pt(this,Q),pt},x.selection.prototype.selectWithoutDataPropagation=function Yt(Q){return g.select(this.size()>0?this.node().querySelector(Q):null)},c.graphviz=Gt,Object.defineProperty(c,"__esModule",{value:!0})}(D,s(68557),s(75143),s(18429),s(65894),s(46176),s(46041),s(89397),s(41129),s(38184))},75143:(w,D,s)=>{"use strict";s.r(D),s.d(D,{dispatch:()=>d});var c={value:()=>{}};function x(){for(var u,l=0,h=arguments.length,f={};l=0&&(u=f.slice(g+1),f=f.slice(0,g)),f&&!h.hasOwnProperty(f))throw new Error("unknown type: "+f);return{type:f,name:u}})}function p(l,h){for(var g,f=0,u=l.length;f0)for(var g,C,f=new Array(g),u=0;u{"use strict";s.r(D),s.d(D,{interval:()=>tt,now:()=>g,timeout:()=>G,timer:()=>I,timerFlush:()=>B});var p,t,c=0,x=0,_=0,d=0,l=0,h=0,f="object"==typeof performance&&performance.now?performance:Date,u="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(K){setTimeout(K,17)};function g(){return l||(u(C),l=f.now()+h)}function C(){l=0}function L(){this._call=this._time=this._next=null}function I(K,st,j){var W=new L;return W.restart(K,st,j),W}function B(){g(),++c;for(var st,K=p;K;)(st=l-K._time)>=0&&K._call.call(null,st),K=K._next;--c}function M(){l=(d=f.now())+h,c=x=0;try{B()}finally{c=0,function Z(){for(var K,j,st=p,W=1/0;st;)st._call?(W>st._time&&(W=st._time),K=st,st=st._next):(j=st._next,st._next=null,st=K?K._next=j:p=j);t=K,H(W)}(),l=0}}function R(){var K=f.now(),st=K-d;st>1e3&&(h-=st,d=K)}function H(K){c||(x&&(x=clearTimeout(x)),K-l>24?(K<1/0&&(x=setTimeout(M,K-f.now()-h)),_&&(_=clearInterval(_))):(_||(d=f.now(),_=setInterval(R,1e3)),c=1,u(M)))}function G(K,st,j){var W=new L;return W.restart(et=>{W.stop(),K(et+st)},st=null==st?0:+st,j),W}function tt(K,st,j){var W=new L,et=st;return null==st?(W.restart(K,st,j),W):(W._restart=W.restart,W.restart=function(at,Y,nt){Y=+Y,nt=null==nt?g():+nt,W._restart(function rt(q){q+=et,W._restart(rt,et+=Y,nt),at(q)},Y,nt)},W.restart(K,st,j),W)}L.prototype=I.prototype={constructor:L,restart:function(K,st,j){if("function"!=typeof K)throw new TypeError("callback is not a function");j=(null==j?g():+j)+(null==st?0:+st),!this._next&&t!==this&&(t?t._next=this:p=this,t=this),this._call=K,this._time=j,H()},stop:function(){this._call&&(this._call=null,this._time=1/0,H())}}},90268:(w,D,s)=>{"use strict";s.d(D,{M:()=>m,Z:()=>_});var c=s(37656),x=s(62681);function _(p,t){return((0,x.v)(t)?x.Z:m)(p,t)}function m(p,t){var u,d=t?t.length:0,l=p?Math.min(d,p.length):0,h=new Array(l),f=new Array(d);for(u=0;u{"use strict";function c(_,m,p,t,d){var l=_*_,h=l*_;return((1-3*_+3*l-h)*m+(4-6*l+3*h)*p+(1+3*_+3*l-3*h)*t+h*d)/6}function x(_){var m=_.length-1;return function(p){var t=p<=0?p=0:p>=1?(p=1,m-1):Math.floor(p*m),d=_[t],l=_[t+1];return c((p-t/m)*m,t>0?_[t-1]:2*d-l,d,l,tx,t:()=>c})},68523:(w,D,s)=>{"use strict";s.d(D,{Z:()=>x});var c=s(16712);function x(_){var m=_.length;return function(p){var t=Math.floor(((p%=1)<0?++p:p)*m);return(0,c.t)((p-t/m)*m,_[(t+m-1)%m],_[t%m],_[(t+1)%m],_[(t+2)%m])}}},35147:(w,D,s)=>{"use strict";s.d(D,{ZP:()=>t,wx:()=>m,yi:()=>p});var c=s(47927);function x(d,l){return function(h){return d+h*l}}function m(d,l){var h=l-d;return h?x(d,h>180||h<-180?h-360*Math.round(h/360):h):(0,c.Z)(isNaN(d)?l:d)}function p(d){return 1==(d=+d)?t:function(l,h){return h-l?function _(d,l,h){return d=Math.pow(d,h),l=Math.pow(l,h)-d,h=1/h,function(f){return Math.pow(d+f*l,h)}}(l,h,d):(0,c.Z)(isNaN(l)?h:l)}}function t(d,l){var h=l-d;return h?x(d,h):(0,c.Z)(isNaN(d)?l:d)}},47927:(w,D,s)=>{"use strict";s.d(D,{Z:()=>c});const c=x=>()=>x},15629:(w,D,s)=>{"use strict";function c(x,_){var m=new Date;return x=+x,_=+_,function(p){return m.setTime(x*(1-p)+_*p),m}}s.d(D,{Z:()=>c})},46176:(w,D,s)=>{"use strict";s.r(D),s.d(D,{interpolate:()=>c.Z,interpolateArray:()=>x.Z,interpolateBasis:()=>_.Z,interpolateBasisClosed:()=>m.Z,interpolateCubehelix:()=>Ve,interpolateCubehelixLong:()=>en,interpolateDate:()=>p.Z,interpolateDiscrete:()=>t,interpolateHcl:()=>Mt,interpolateHclLong:()=>te,interpolateHsl:()=>Z,interpolateHslLong:()=>H,interpolateHue:()=>l,interpolateLab:()=>de,interpolateNumber:()=>h.Z,interpolateNumberArray:()=>f.Z,interpolateObject:()=>u.Z,interpolateRgb:()=>B.ZP,interpolateRgbBasis:()=>B.hD,interpolateRgbBasisClosed:()=>B.YD,interpolateRound:()=>g.Z,interpolateString:()=>C.Z,interpolateTransformCss:()=>L.Y,interpolateTransformSvg:()=>L.w,interpolateZoom:()=>I.Z,piecewise:()=>be,quantize:()=>sn});var c=s(37656),x=s(90268),_=s(16712),m=s(68523),p=s(15629);function t(Tt){var Wt=Tt.length;return function(ce){return Tt[Math.max(0,Math.min(Wt-1,Math.floor(ce*Wt)))]}}var d=s(35147);function l(Tt,Wt){var ce=(0,d.wx)(+Tt,+Wt);return function(_e){var ee=ce(_e);return ee-360*Math.floor(ee/360)}}var h=s(6738),f=s(62681),u=s(84858),g=s(84067),C=s(23096),L=s(75349),I=s(76257),B=s(86811),M=s(52786);function R(Tt){return function(Wt,ce){var _e=Tt((Wt=(0,M.Ym)(Wt)).h,(ce=(0,M.Ym)(ce)).h),ee=(0,d.ZP)(Wt.s,ce.s),Ze=(0,d.ZP)(Wt.l,ce.l),ze=(0,d.ZP)(Wt.opacity,ce.opacity);return function(Cn){return Wt.h=_e(Cn),Wt.s=ee(Cn),Wt.l=Ze(Cn),Wt.opacity=ze(Cn),Wt+""}}}const Z=R(d.wx);var H=R(d.ZP),G=s(68884);const tt=Math.PI/180,K=180/Math.PI,j=.96422,at=4/29,Y=6/29,nt=3*Y*Y;function q(Tt){if(Tt instanceof ut)return new ut(Tt.l,Tt.a,Tt.b,Tt.opacity);if(Tt instanceof Nt)return zt(Tt);Tt instanceof M.Ss||(Tt=(0,M.SU)(Tt));var Ze,ze,Wt=Qt(Tt.r),ce=Qt(Tt.g),_e=Qt(Tt.b),ee=ft((.2225045*Wt+.7168786*ce+.0606169*_e)/1);return Wt===ce&&ce===_e?Ze=ze=ee:(Ze=ft((.4360747*Wt+.3850649*ce+.1430804*_e)/j),ze=ft((.0139322*Wt+.0971045*ce+.7141733*_e)/.82521)),new ut(116*ee-16,500*(Ze-ee),200*(ee-ze),Tt.opacity)}function E(Tt,Wt,ce,_e){return 1===arguments.length?q(Tt):new ut(Tt,Wt,ce,_e??1)}function ut(Tt,Wt,ce,_e){this.l=+Tt,this.a=+Wt,this.b=+ce,this.opacity=+_e}function ft(Tt){return Tt>.008856451679035631?Math.pow(Tt,1/3):Tt/nt+at}function Dt(Tt){return Tt>Y?Tt*Tt*Tt:nt*(Tt-at)}function St(Tt){return 255*(Tt<=.0031308?12.92*Tt:1.055*Math.pow(Tt,1/2.4)-.055)}function Qt(Tt){return(Tt/=255)<=.04045?Tt/12.92:Math.pow((Tt+.055)/1.055,2.4)}function pe(Tt){if(Tt instanceof Nt)return new Nt(Tt.h,Tt.c,Tt.l,Tt.opacity);if(Tt instanceof ut||(Tt=q(Tt)),0===Tt.a&&0===Tt.b)return new Nt(NaN,0{"use strict";function c(x,_){return x=+x,_=+_,function(m){return x*(1-m)+_*m}}s.d(D,{Z:()=>c})},62681:(w,D,s)=>{"use strict";function c(_,m){m||(m=[]);var d,p=_?Math.min(m.length,_.length):0,t=m.slice();return function(l){for(d=0;dc,v:()=>x})},84858:(w,D,s)=>{"use strict";s.d(D,{Z:()=>x});var c=s(37656);function x(_,m){var d,p={},t={};for(d in(null===_||"object"!=typeof _)&&(_={}),(null===m||"object"!=typeof m)&&(m={}),m)d in _?p[d]=(0,c.Z)(_[d],m[d]):t[d]=m[d];return function(l){for(d in p)t[d]=p[d](l);return t}}},86811:(w,D,s)=>{"use strict";s.d(D,{YD:()=>l,ZP:()=>p,hD:()=>d});var c=s(52786),x=s(16712),_=s(68523),m=s(35147);const p=function h(f){var u=(0,m.yi)(f);function g(C,L){var I=u((C=(0,c.B8)(C)).r,(L=(0,c.B8)(L)).r),B=u(C.g,L.g),M=u(C.b,L.b),R=(0,m.ZP)(C.opacity,L.opacity);return function(Z){return C.r=I(Z),C.g=B(Z),C.b=M(Z),C.opacity=R(Z),C+""}}return g.gamma=h,g}(1);function t(h){return function(f){var I,B,u=f.length,g=new Array(u),C=new Array(u),L=new Array(u);for(I=0;I{"use strict";function c(x,_){return x=+x,_=+_,function(m){return Math.round(x*(1-m)+_*m)}}s.d(D,{Z:()=>c})},23096:(w,D,s)=>{"use strict";s.d(D,{Z:()=>t});var c=s(6738),x=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,_=new RegExp(x.source,"g");function t(d,l){var f,u,g,h=x.lastIndex=_.lastIndex=0,C=-1,L=[],I=[];for(d+="",l+="";(f=x.exec(d))&&(u=_.exec(l));)(g=u.index)>h&&(g=l.slice(h,g),L[C]?L[C]+=g:L[++C]=g),(f=f[0])===(u=u[0])?L[C]?L[C]+=u:L[++C]=u:(L[++C]=null,I.push({i:C,x:(0,c.Z)(f,u)})),h=_.lastIndex;return h{"use strict";s.d(D,{Y:()=>h,w:()=>f});var p,c=s(6738),x=180/Math.PI,_={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function m(u,g,C,L,I,B){var M,R,Z;return(M=Math.sqrt(u*u+g*g))&&(u/=M,g/=M),(Z=u*C+g*L)&&(C-=u*Z,L-=g*Z),(R=Math.sqrt(C*C+L*L))&&(C/=R,L/=R,Z/=R),u*L180?G+=360:G-H>180&&(H+=360),K.push({i:tt.push(I(tt)+"rotate(",null,L)-2,x:(0,c.Z)(H,G)})):G&&tt.push(I(tt)+"rotate("+G+L)}(H.rotate,G.rotate,tt,K),function R(H,G,tt,K){H!==G?K.push({i:tt.push(I(tt)+"skewX(",null,L)-2,x:(0,c.Z)(H,G)}):G&&tt.push(I(tt)+"skewX("+G+L)}(H.skewX,G.skewX,tt,K),function Z(H,G,tt,K,st,j){if(H!==tt||G!==K){var W=st.push(I(st)+"scale(",null,",",null,")");j.push({i:W-4,x:(0,c.Z)(H,tt)},{i:W-2,x:(0,c.Z)(G,K)})}else(1!==tt||1!==K)&&st.push(I(st)+"scale("+tt+","+K+")")}(H.scaleX,H.scaleY,G.scaleX,G.scaleY,tt,K),H=G=null,function(st){for(var et,j=-1,W=K.length;++j{"use strict";s.d(D,{Z:()=>f});var c=s(52786),x=s(86811),_=s(90268),m=s(15629),p=s(6738),t=s(84858),d=s(23096),l=s(47927),h=s(62681);function f(u,g){var L,C=typeof g;return null==g||"boolean"===C?(0,l.Z)(g):("number"===C?p.Z:"string"===C?(L=(0,c.ZP)(g))?(g=L,x.ZP):d.Z:g instanceof c.ZP?x.ZP:g instanceof Date?m.Z:(0,h.v)(g)?h.Z:Array.isArray(g)?_.M:"function"!=typeof g.valueOf&&"function"!=typeof g.toString||isNaN(g)?t.Z:p.Z)(u,g)}},76257:(w,D,s)=>{"use strict";function x(t){return((t=Math.exp(t))+1/t)/2}s.d(D,{Z:()=>p});const p=function t(d,l,h){function f(u,g){var tt,K,C=u[0],L=u[1],I=u[2],R=g[2],Z=g[0]-C,H=g[1]-L,G=Z*Z+H*H;if(G<1e-12)K=Math.log(R/I)/d,tt=function(Y){return[C+Y*Z,L+Y*H,I*Math.exp(d*Y*K)]};else{var st=Math.sqrt(G),j=(R*R-I*I+h*G)/(2*I*l*st),W=(R*R-I*I-h*G)/(2*R*l*st),et=Math.log(Math.sqrt(j*j+1)-j),at=Math.log(Math.sqrt(W*W+1)-W);K=(at-et)/d,tt=function(Y){var nt=Y*K,rt=x(et),q=I/(l*st)*(rt*function m(t){return((t=Math.exp(2*t))-1)/(t+1)}(d*nt+et)-function _(t){return((t=Math.exp(t))-1/t)/2}(et));return[C+q*Z,L+q*H,I*rt/x(d*nt+et)]}}return tt.duration=1e3*K*d/Math.SQRT2,tt}return f.rho=function(u){var g=Math.max(.001,+u),C=g*g;return t(g,C,C*C)},f}(Math.SQRT2,2,4)},38184:(w,D,s)=>{"use strict";s.r(D),s.d(D,{path:()=>d});const c=Math.PI,x=2*c,_=1e-6,m=x-_;function p(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function t(){return new p}p.prototype=t.prototype={constructor:p,moveTo:function(l,h){this._+="M"+(this._x0=this._x1=+l)+","+(this._y0=this._y1=+h)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(l,h){this._+="L"+(this._x1=+l)+","+(this._y1=+h)},quadraticCurveTo:function(l,h,f,u){this._+="Q"+ +l+","+ +h+","+(this._x1=+f)+","+(this._y1=+u)},bezierCurveTo:function(l,h,f,u,g,C){this._+="C"+ +l+","+ +h+","+ +f+","+ +u+","+(this._x1=+g)+","+(this._y1=+C)},arcTo:function(l,h,f,u,g){var C=this._x1,L=this._y1,I=(f=+f)-(l=+l),B=(u=+u)-(h=+h),M=C-l,R=L-h,Z=M*M+R*R;if((g=+g)<0)throw new Error("negative radius: "+g);if(null===this._x1)this._+="M"+(this._x1=l)+","+(this._y1=h);else if(Z>_)if(Math.abs(R*I-B*M)>_&&g){var H=f-C,G=u-L,tt=I*I+B*B,K=H*H+G*G,st=Math.sqrt(tt),j=Math.sqrt(Z),W=g*Math.tan((c-Math.acos((tt+Z-K)/(2*st*j)))/2),et=W/j,at=W/st;Math.abs(et-1)>_&&(this._+="L"+(l+et*M)+","+(h+et*R)),this._+="A"+g+","+g+",0,0,"+ +(R*H>M*G)+","+(this._x1=l+at*I)+","+(this._y1=h+at*B)}else this._+="L"+(this._x1=l)+","+(this._y1=h)},arc:function(l,h,f,u,g,C){l=+l,h=+h,C=!!C;var L=(f=+f)*Math.cos(u),I=f*Math.sin(u),B=l+L,M=h+I,R=1^C,Z=C?u-g:g-u;if(f<0)throw new Error("negative radius: "+f);null===this._x1?this._+="M"+B+","+M:(Math.abs(this._x1-B)>_||Math.abs(this._y1-M)>_)&&(this._+="L"+B+","+M),f&&(Z<0&&(Z=Z%x+x),Z>m?this._+="A"+f+","+f+",0,1,"+R+","+(l-L)+","+(h-I)+"A"+f+","+f+",0,1,"+R+","+(this._x1=B)+","+(this._y1=M):Z>_&&(this._+="A"+f+","+f+",0,"+ +(Z>=c)+","+R+","+(this._x1=l+f*Math.cos(g))+","+(this._y1=h+f*Math.sin(g))))},rect:function(l,h,f,u){this._+="M"+(this._x0=this._x1=+l)+","+(this._y0=this._y1=+h)+"h"+ +f+"v"+ +u+"h"+-f+"Z"},toString:function(){return this._}};const d=t},34638:(w,D,s)=>{"use strict";function c(x){return"object"==typeof x&&"length"in x?x:Array.from(x)}s.d(D,{Z:()=>c})},7500:(w,D,s)=>{"use strict";s.d(D,{Z:()=>p});var c=s(36175),x=s(53517);function _(t){return function(){var d=this.ownerDocument,l=this.namespaceURI;return l===x.P&&d.documentElement.namespaceURI===x.P?d.createElement(t):d.createElementNS(l,t)}}function m(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function p(t){var d=(0,c.Z)(t);return(d.local?m:_)(d)}},68557:(w,D,s)=>{"use strict";s.r(D),s.d(D,{create:()=>_,creator:()=>c.Z,local:()=>p,matcher:()=>d.Z,namespace:()=>l.Z,namespaces:()=>h.Z,pointer:()=>f.Z,pointers:()=>g,select:()=>x.Z,selectAll:()=>I,selection:()=>L.ZP,selector:()=>B.Z,selectorAll:()=>M.Z,style:()=>R.S,window:()=>Z.Z});var c=s(7500),x=s(52016);function _(H){return(0,x.Z)((0,c.Z)(H).call(document.documentElement))}var m=0;function p(){return new t}function t(){this._="@"+(++m).toString(36)}t.prototype=p.prototype={constructor:t,get:function(H){for(var G=this._;!(G in H);)if(!(H=H.parentNode))return;return H[G]},set:function(H,G){return H[this._]=G},remove:function(H){return this._ in H&&delete H[this._]},toString:function(){return this._}};var d=s(97905),l=s(36175),h=s(53517),f=s(29132),u=s(75819);function g(H,G){return H.target&&(H=(0,u.Z)(H),void 0===G&&(G=H.currentTarget),H=H.touches||[H]),Array.from(H,tt=>(0,f.Z)(tt,G))}var C=s(34638),L=s(37853);function I(H){return"string"==typeof H?new L.Y1([document.querySelectorAll(H)],[document.documentElement]):new L.Y1([null==H?[]:(0,C.Z)(H)],L.Jz)}var B=s(29742),M=s(32037),R=s(24476),Z=s(2442)},97905:(w,D,s)=>{"use strict";function c(_){return function(){return this.matches(_)}}function x(_){return function(m){return m.matches(_)}}s.d(D,{P:()=>x,Z:()=>c})},36175:(w,D,s)=>{"use strict";s.d(D,{Z:()=>x});var c=s(53517);function x(_){var m=_+="",p=m.indexOf(":");return p>=0&&"xmlns"!==(m=_.slice(0,p))&&(_=_.slice(p+1)),c.Z.hasOwnProperty(m)?{space:c.Z[m],local:_}:_}},53517:(w,D,s)=>{"use strict";s.d(D,{P:()=>c,Z:()=>x});var c="http://www.w3.org/1999/xhtml";const x={svg:"http://www.w3.org/2000/svg",xhtml:c,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}},29132:(w,D,s)=>{"use strict";s.d(D,{Z:()=>x});var c=s(75819);function x(_,m){if(_=(0,c.Z)(_),void 0===m&&(m=_.currentTarget),m){var p=m.ownerSVGElement||m;if(p.createSVGPoint){var t=p.createSVGPoint();return t.x=_.clientX,t.y=_.clientY,[(t=t.matrixTransform(m.getScreenCTM().inverse())).x,t.y]}if(m.getBoundingClientRect){var d=m.getBoundingClientRect();return[_.clientX-d.left-m.clientLeft,_.clientY-d.top-m.clientTop]}}return[_.pageX,_.pageY]}},52016:(w,D,s)=>{"use strict";s.d(D,{Z:()=>x});var c=s(37853);function x(_){return"string"==typeof _?new c.Y1([[document.querySelector(_)]],[document.documentElement]):new c.Y1([[_]],c.Jz)}},37853:(w,D,s)=>{"use strict";s.d(D,{Y1:()=>we,ZP:()=>dn,Jz:()=>kn});var c=s(29742),_=s(34638),m=s(32037),d=s(97905),l=Array.prototype.find;function f(){return this.firstElementChild}var g=Array.prototype.filter;function C(){return this.children}function M(z){return new Array(z.length)}function Z(z,X){this.ownerDocument=z.ownerDocument,this.namespaceURI=z.namespaceURI,this._next=null,this._parent=z,this.__data__=X}function H(z){return function(){return z}}function G(z,X,lt,A,bt,Lt){for(var Gt,Pt=0,Jt=X.length,Yt=Lt.length;PtX?1:z>=X?0:NaN}Z.prototype={constructor:Z,appendChild:function(z){return this._parent.insertBefore(z,this._next)},insertBefore:function(z,X){return this._parent.insertBefore(z,X)},querySelector:function(z){return this._parent.querySelector(z)},querySelectorAll:function(z){return this._parent.querySelectorAll(z)}};var Dt=s(36175);function St(z){return function(){this.removeAttribute(z)}}function Qt(z){return function(){this.removeAttributeNS(z.space,z.local)}}function pe(z,X){return function(){this.setAttribute(z,X)}}function wt(z,X){return function(){this.setAttributeNS(z.space,z.local,X)}}function yt(z,X){return function(){var lt=X.apply(this,arguments);null==lt?this.removeAttribute(z):this.setAttribute(z,lt)}}function Nt(z,X){return function(){var lt=X.apply(this,arguments);null==lt?this.removeAttributeNS(z.space,z.local):this.setAttributeNS(z.space,z.local,lt)}}var de=s(24476);function ie(z){return function(){delete this[z]}}function Mt(z,X){return function(){this[z]=X}}function te(z,X){return function(){var lt=X.apply(this,arguments);null==lt?delete this[z]:this[z]=lt}}function ae(z){return z.trim().split(/^|\s+/)}function At(z){return z.classList||new Ht(z)}function Ht(z){this._node=z,this._names=ae(z.getAttribute("class")||"")}function Zt(z,X){for(var lt=At(z),A=-1,bt=X.length;++A=0&&(this._names.splice(X,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(z){return this._names.indexOf(z)>=0}};var ze=s(7500);function oi(){return null}function mi(){var z=this.parentNode;z&&z.removeChild(this)}function Si(){var z=this.cloneNode(!1),X=this.parentNode;return X?X.insertBefore(z,this.nextSibling):z}function tr(){var z=this.cloneNode(!0),X=this.parentNode;return X?X.insertBefore(z,this.nextSibling):z}function Qi(z){return z.trim().split(/^|\s+/).map(function(X){var lt="",A=X.indexOf(".");return A>=0&&(lt=X.slice(A+1),X=X.slice(0,A)),{type:X,name:lt}})}function Bi(z){return function(){var X=this.__on;if(X){for(var Lt,lt=0,A=-1,bt=X.length;lt=se&&(se=O+1);!(Ce=kt[se])&&++se=0;)(Pt=A[bt])&&(Lt&&4^Pt.compareDocumentPosition(Lt)&&Lt.parentNode.insertBefore(Pt,Lt),Lt=Pt);return this},sort:function Y(z){function X(pt,mt){return pt&&mt?z(pt.__data__,mt.__data__):!pt-!mt}z||(z=nt);for(var lt=this._groups,A=lt.length,bt=new Array(A),Lt=0;Lt1?this.each((null==X?ie:"function"==typeof X?te:Mt)(z,X)):this.node()[z]},classed:function Oe(z,X){var lt=ae(z+"");if(arguments.length<2){for(var A=At(this.node()),bt=-1,Lt=lt.length;++bt{"use strict";s.d(D,{S:()=>t,Z:()=>p});var c=s(2442);function x(d){return function(){this.style.removeProperty(d)}}function _(d,l,h){return function(){this.style.setProperty(d,l,h)}}function m(d,l,h){return function(){var f=l.apply(this,arguments);null==f?this.style.removeProperty(d):this.style.setProperty(d,f,h)}}function p(d,l,h){return arguments.length>1?this.each((null==l?x:"function"==typeof l?m:_)(d,l,h??"")):t(this.node(),d)}function t(d,l){return d.style.getPropertyValue(l)||(0,c.Z)(d).getComputedStyle(d,null).getPropertyValue(l)}},29742:(w,D,s)=>{"use strict";function c(){}function x(_){return null==_?c:function(){return this.querySelector(_)}}s.d(D,{Z:()=>x})},32037:(w,D,s)=>{"use strict";function c(){return[]}function x(_){return null==_?c:function(){return this.querySelectorAll(_)}}s.d(D,{Z:()=>x})},75819:(w,D,s)=>{"use strict";function c(x){let _;for(;_=x.sourceEvent;)x=_;return x}s.d(D,{Z:()=>c})},2442:(w,D,s)=>{"use strict";function c(x){return x.ownerDocument&&x.ownerDocument.defaultView||x.document&&x||x.defaultView}s.d(D,{Z:()=>c})},73339:(w,D,s)=>{"use strict";s.d(D,{Z:()=>x});var c=s(49194);function x(_,m,p){var t=new c.B7;return t.restart(function(d){t.stop(),_(d+m)},m=null==m?0:+m,p),t}},49194:(w,D,s)=>{"use strict";s.d(D,{B7:()=>L,HT:()=>I,R8:()=>B,zO:()=>g});var p,t,c=0,x=0,_=0,d=0,l=0,h=0,f="object"==typeof performance&&performance.now?performance:Date,u="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(G){setTimeout(G,17)};function g(){return l||(u(C),l=f.now()+h)}function C(){l=0}function L(){this._call=this._time=this._next=null}function I(G,tt,K){var st=new L;return st.restart(G,tt,K),st}function B(){g(),++c;for(var tt,G=p;G;)(tt=l-G._time)>=0&&G._call.call(null,tt),G=G._next;--c}function M(){l=(d=f.now())+h,c=x=0;try{B()}finally{c=0,function Z(){for(var G,K,tt=p,st=1/0;tt;)tt._call?(st>tt._time&&(st=tt._time),G=tt,tt=tt._next):(K=tt._next,tt._next=null,tt=G?G._next=K:p=K);t=G,H(st)}(),l=0}}function R(){var G=f.now(),tt=G-d;tt>1e3&&(h-=tt,d=G)}function H(G){c||(x&&(x=clearTimeout(x)),G-l>24?(G<1/0&&(x=setTimeout(M,G-f.now()-h)),_&&(_=clearInterval(_))):(_||(d=f.now(),_=setInterval(R,1e3)),c=1,u(M)))}L.prototype=I.prototype={constructor:L,restart:function(G,tt,K){if("function"!=typeof G)throw new TypeError("callback is not a function");K=(null==K?g():+K)+(null==tt?0:+tt),!this._next&&t!==this&&(t?t._next=this:p=this,t=this),this._call=G,this._time=K,H()},stop:function(){this._call&&(this._call=null,this._time=1/0,H())}}},18429:(w,D,s)=>{"use strict";s.r(D),s.d(D,{active:()=>dn,interrupt:()=>Z,transition:()=>mn});var c=s(37853),x=s(25922),_=s(49194),m=s(73339),p=(0,x.Z)("start","end","cancel","interrupt"),t=[];function L(z,X,lt,A,bt,Lt){var Pt=z.__transition;if(Pt){if(lt in Pt)return}else z.__transition={};!function R(z,X,lt){var bt,A=z.__transition;function Pt(Yt){var Q,pt,mt,gt;if(1!==lt.state)return Jt();for(Q in A)if((gt=A[Q]).name===lt.name){if(3===gt.state)return(0,m.Z)(Pt);4===gt.state?(gt.state=6,gt.timer.stop(),gt.on.call("interrupt",z,z.__data__,gt.index,gt.group),delete A[Q]):+Q0)throw new Error("too late; already scheduled");return lt}function B(z,X){var lt=M(z,X);if(lt.state>3)throw new Error("too late; already running");return lt}function M(z,X){var lt=z.__transition;if(!lt||!(lt=lt[X]))throw new Error("transition not found");return lt}function Z(z,X){var A,bt,Pt,lt=z.__transition,Lt=!0;if(lt){for(Pt in X=null==X?null:X+"",lt)(A=lt[Pt]).name===X?(bt=A.state>2&&A.state<5,A.state=6,A.timer.stop(),A.on.call(bt?"interrupt":"cancel",z,z.__data__,A.index,A.group),delete lt[Pt]):Lt=!1;Lt&&delete z.__transition}}var G=s(75349),tt=s(36175);function K(z,X){var lt,A;return function(){var bt=B(this,z),Lt=bt.tween;if(Lt!==lt)for(var Pt=0,Gt=(A=lt=Lt).length;Pt=0&&(X=X.slice(0,lt)),!X||"start"===X})}(X)?I:B;return function(){var Pt=Lt(this,z),Gt=Pt.on;Gt!==A&&(bt=(A=Gt).copy()).on(X,lt),Pt.on=bt}}var en=s(29742),sn=s(32037),Wt=c.ZP.prototype.constructor,_e=s(24476);function Ze(z){return function(){this.style.removeProperty(z)}}function mi(z,X,lt){return function(A){this.style.setProperty(z,X.call(this,A),lt)}}function gi(z,X,lt){var A,bt;function Lt(){var Pt=X.apply(this,arguments);return Pt!==bt&&(A=(bt=Pt)&&mi(z,Pt,lt)),A}return Lt._value=X,Lt}function _i(z){return function(X){this.textContent=z.call(this,X)}}function Qi(z){var X,lt;function A(){var bt=z.apply(this,arguments);return bt!==lt&&(X=(lt=bt)&&_i(bt)),X}return A._value=z,A}var ji=0;function Mn(z,X,lt,A){this._groups=z,this._parents=X,this._name=lt,this._id=A}function mn(z){return(0,c.ZP)().transition(z)}function nn(){return++ji}var Wn=c.ZP.prototype;Mn.prototype=mn.prototype={constructor:Mn,select:function be(z){var X=this._name,lt=this._id;"function"!=typeof z&&(z=(0,en.Z)(z));for(var A=this._groups,bt=A.length,Lt=new Array(bt),Pt=0;Pt1&&A.name===X)return new Mn([[z]],Fn,X,+bt);return null}},46041:(w,D,s)=>{"use strict";s.r(D),s.d(D,{zoom:()=>H,zoomIdentity:()=>f,zoomTransform:()=>u});var c=s(25922),x=s(56758),_=s(76257),m=s(52016),p=s(29132),t=s(18429);const d=G=>()=>G;function l(G,{sourceEvent:tt,target:K,transform:st,dispatch:j}){Object.defineProperties(this,{type:{value:G,enumerable:!0,configurable:!0},sourceEvent:{value:tt,enumerable:!0,configurable:!0},target:{value:K,enumerable:!0,configurable:!0},transform:{value:st,enumerable:!0,configurable:!0},_:{value:j}})}function h(G,tt,K){this.k=G,this.x=tt,this.y=K}h.prototype={constructor:h,scale:function(G){return 1===G?this:new h(this.k*G,this.x,this.y)},translate:function(G,tt){return 0===G&0===tt?this:new h(this.k,this.x+this.k*G,this.y+this.k*tt)},apply:function(G){return[G[0]*this.k+this.x,G[1]*this.k+this.y]},applyX:function(G){return G*this.k+this.x},applyY:function(G){return G*this.k+this.y},invert:function(G){return[(G[0]-this.x)/this.k,(G[1]-this.y)/this.k]},invertX:function(G){return(G-this.x)/this.k},invertY:function(G){return(G-this.y)/this.k},rescaleX:function(G){return G.copy().domain(G.range().map(this.invertX,this).map(G.invert,G))},rescaleY:function(G){return G.copy().domain(G.range().map(this.invertY,this).map(G.invert,G))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var f=new h(1,0,0);function u(G){for(;!G.__zoom;)if(!(G=G.parentNode))return f;return G.__zoom}function g(G){G.stopImmediatePropagation()}function C(G){G.preventDefault(),G.stopImmediatePropagation()}function L(G){return!(G.ctrlKey&&"wheel"!==G.type||G.button)}function I(){var G=this;return G instanceof SVGElement?(G=G.ownerSVGElement||G).hasAttribute("viewBox")?[[(G=G.viewBox.baseVal).x,G.y],[G.x+G.width,G.y+G.height]]:[[0,0],[G.width.baseVal.value,G.height.baseVal.value]]:[[0,0],[G.clientWidth,G.clientHeight]]}function B(){return this.__zoom||f}function M(G){return-G.deltaY*(1===G.deltaMode?.05:G.deltaMode?1:.002)*(G.ctrlKey?10:1)}function R(){return navigator.maxTouchPoints||"ontouchstart"in this}function Z(G,tt,K){var st=G.invertX(tt[0][0])-K[0][0],j=G.invertX(tt[1][0])-K[1][0],W=G.invertY(tt[0][1])-K[0][1],et=G.invertY(tt[1][1])-K[1][1];return G.translate(j>st?(st+j)/2:Math.min(0,st)||Math.max(0,j),et>W?(W+et)/2:Math.min(0,W)||Math.max(0,et))}function H(){var rt,q,F,G=L,tt=I,K=Z,st=M,j=R,W=[0,1/0],et=[[-1/0,-1/0],[1/0,1/0]],at=250,Y=_.Z,nt=(0,c.Z)("start","zoom","end"),E=500,ft=0,Dt=10;function St(At){At.property("__zoom",B).on("wheel.zoom",de).on("mousedown.zoom",ie).on("dblclick.zoom",Mt).filter(j).on("touchstart.zoom",te).on("touchmove.zoom",jt).on("touchend.zoom touchcancel.zoom",ae).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function Qt(At,Ht){return(Ht=Math.max(W[0],Math.min(W[1],Ht)))===At.k?At:new h(Ht,At.x,At.y)}function pe(At,Ht,Zt){var Kt=Ht[0]-Zt[0]*At.k,xe=Ht[1]-Zt[1]*At.k;return Kt===At.x&&xe===At.y?At:new h(At.k,Kt,xe)}function wt(At){return[(+At[0][0]+ +At[1][0])/2,(+At[0][1]+ +At[1][1])/2]}function yt(At,Ht,Zt,Kt){At.on("start.zoom",function(){Nt(this,arguments).event(Kt).start()}).on("interrupt.zoom end.zoom",function(){Nt(this,arguments).event(Kt).end()}).tween("zoom",function(){var xe=this,Te=arguments,Le=Nt(xe,Te).event(Kt),Oe=tt.apply(xe,Te),Ee=null==Zt?wt(Oe):"function"==typeof Zt?Zt.apply(xe,Te):Zt,Ue=Math.max(Oe[1][0]-Oe[0][0],Oe[1][1]-Oe[0][1]),Ve=xe.__zoom,en="function"==typeof Ht?Ht.apply(xe,Te):Ht,be=Y(Ve.invert(Ee).concat(Ue/Ve.k),en.invert(Ee).concat(Ue/en.k));return function(sn){if(1===sn)sn=en;else{var Tt=be(sn),Wt=Ue/Tt[2];sn=new h(Wt,Ee[0]-Tt[0]*Wt,Ee[1]-Tt[1]*Wt)}Le.zoom(null,sn)}})}function Nt(At,Ht,Zt){return!Zt&&At.__zooming||new zt(At,Ht)}function zt(At,Ht){this.that=At,this.args=Ht,this.active=0,this.sourceEvent=null,this.extent=tt.apply(At,Ht),this.taps=0}function de(At,...Ht){if(G.apply(this,arguments)){var Zt=Nt(this,Ht).event(At),Kt=this.__zoom,xe=Math.max(W[0],Math.min(W[1],Kt.k*Math.pow(2,st.apply(this,arguments)))),Te=(0,p.Z)(At);if(Zt.wheel)(Zt.mouse[0][0]!==Te[0]||Zt.mouse[0][1]!==Te[1])&&(Zt.mouse[1]=Kt.invert(Zt.mouse[0]=Te)),clearTimeout(Zt.wheel);else{if(Kt.k===xe)return;Zt.mouse=[Te,Kt.invert(Te)],(0,t.interrupt)(this),Zt.start()}C(At),Zt.wheel=setTimeout(Le,150),Zt.zoom("mouse",K(pe(Qt(Kt,xe),Zt.mouse[0],Zt.mouse[1]),Zt.extent,et))}function Le(){Zt.wheel=null,Zt.end()}}function ie(At,...Ht){if(!F&&G.apply(this,arguments)){var Zt=Nt(this,Ht,!0).event(At),Kt=(0,m.Z)(At.view).on("mousemove.zoom",Ee,!0).on("mouseup.zoom",Ue,!0),xe=(0,p.Z)(At,Te),Te=At.currentTarget,Le=At.clientX,Oe=At.clientY;(0,x.Z)(At.view),g(At),Zt.mouse=[xe,this.__zoom.invert(xe)],(0,t.interrupt)(this),Zt.start()}function Ee(Ve){if(C(Ve),!Zt.moved){var en=Ve.clientX-Le,be=Ve.clientY-Oe;Zt.moved=en*en+be*be>ft}Zt.event(Ve).zoom("mouse",K(pe(Zt.that.__zoom,Zt.mouse[0]=(0,p.Z)(Ve,Te),Zt.mouse[1]),Zt.extent,et))}function Ue(Ve){Kt.on("mousemove.zoom mouseup.zoom",null),(0,x.D)(Ve.view,Zt.moved),C(Ve),Zt.event(Ve).end()}}function Mt(At,...Ht){if(G.apply(this,arguments)){var Zt=this.__zoom,Kt=(0,p.Z)(At.changedTouches?At.changedTouches[0]:At,this),xe=Zt.invert(Kt),Te=Zt.k*(At.shiftKey?.5:2),Le=K(pe(Qt(Zt,Te),Kt,xe),tt.apply(this,Ht),et);C(At),at>0?(0,m.Z)(this).transition().duration(at).call(yt,Le,Kt,At):(0,m.Z)(this).call(St.transform,Le,Kt,At)}}function te(At,...Ht){if(G.apply(this,arguments)){var Te,Le,Oe,Ee,Zt=At.touches,Kt=Zt.length,xe=Nt(this,Ht,At.changedTouches.length===Kt).event(At);for(g(At),Le=0;Le{w.exports={graphlib:s(36456),layout:s(14850),debug:s(71914),util:{time:s(11510).time,notime:s(11510).notime},version:s(28126)}},12234:(w,D,s)=>{"use strict";var c=s(45760),x=s(67365);w.exports={run:function _(t){var d="greedy"===t.graph().acyclicer?x(t,function l(h){return function(f){return h.edge(f).weight}}(t)):function m(t){var d=[],l={},h={};return c.forEach(t.nodes(),function f(u){c.has(h,u)||(h[u]=!0,l[u]=!0,c.forEach(t.outEdges(u),function(g){c.has(l,g.w)?d.push(g):f(g.w)}),delete l[u])}),d}(t);c.forEach(d,function(h){var f=t.edge(h);t.removeEdge(h),f.forwardName=h.name,f.reversed=!0,t.setEdge(h.w,h.v,f,c.uniqueId("rev"))})},undo:function p(t){c.forEach(t.edges(),function(d){var l=t.edge(d);if(l.reversed){t.removeEdge(d);var h=l.forwardName;delete l.reversed,delete l.forwardName,t.setEdge(d.w,d.v,l,h)}})}}},79999:(w,D,s)=>{var c=s(45760),x=s(11510);function m(p,t,d,l,h,f){var g=h[t][f-1],C=x.addDummyNode(p,"border",{width:0,height:0,rank:f,borderType:t},d);h[t][f]=C,p.setParent(C,l),g&&p.setEdge(g,C,{weight:1})}w.exports=function _(p){c.forEach(p.children(),function t(d){var l=p.children(d),h=p.node(d);if(l.length&&c.forEach(l,t),c.has(h,"minRank")){h.borderLeft=[],h.borderRight=[];for(var f=h.minRank,u=h.maxRank+1;f{"use strict";var c=s(45760);function m(f){c.forEach(f.nodes(),function(u){p(f.node(u))}),c.forEach(f.edges(),function(u){p(f.edge(u))})}function p(f){var u=f.width;f.width=f.height,f.height=u}function d(f){f.y=-f.y}function h(f){var u=f.x;f.x=f.y,f.y=u}w.exports={adjust:function x(f){var u=f.graph().rankdir.toLowerCase();("lr"===u||"rl"===u)&&m(f)},undo:function _(f){var u=f.graph().rankdir.toLowerCase();("bt"===u||"rl"===u)&&function t(f){c.forEach(f.nodes(),function(u){d(f.node(u))}),c.forEach(f.edges(),function(u){var g=f.edge(u);c.forEach(g.points,d),c.has(g,"y")&&d(g)})}(f),("lr"===u||"rl"===u)&&(function l(f){c.forEach(f.nodes(),function(u){h(f.node(u))}),c.forEach(f.edges(),function(u){var g=f.edge(u);c.forEach(g.points,h),c.has(g,"x")&&h(g)})}(f),m(f))}}},3226:w=>{function D(){var x={};x._next=x._prev=x,this._sentinel=x}function s(x){x._prev._next=x._next,x._next._prev=x._prev,delete x._next,delete x._prev}function c(x,_){if("_next"!==x&&"_prev"!==x)return _}w.exports=D,D.prototype.dequeue=function(){var x=this._sentinel,_=x._prev;if(_!==x)return s(_),_},D.prototype.enqueue=function(x){var _=this._sentinel;x._prev&&x._next&&s(x),x._next=_._next,_._next._prev=x,_._next=x,x._prev=_},D.prototype.toString=function(){for(var x=[],_=this._sentinel,m=_._prev;m!==_;)x.push(JSON.stringify(m,c)),m=m._prev;return"["+x.join(", ")+"]"}},71914:(w,D,s)=>{var c=s(45760),x=s(11510),_=s(36456).Graph;w.exports={debugOrdering:function m(p){var t=x.buildLayerMatrix(p),d=new _({compound:!0,multigraph:!0}).setGraph({});return c.forEach(p.nodes(),function(l){d.setNode(l,{label:l}),d.setParent(l,"layer"+p.node(l).rank)}),c.forEach(p.edges(),function(l){d.setEdge(l.v,l.w,{},l.name)}),c.forEach(t,function(l,h){d.setNode("layer"+h,{rank:"same"}),c.reduce(l,function(u,g){return d.setEdge(u,g,{style:"invis"}),g})}),d}}},36456:(w,D,s)=>{var c;try{c=s(85510)}catch{}c||(c=window.graphlib),w.exports=c},67365:(w,D,s)=>{var c=s(45760),x=s(36456).Graph,_=s(3226);w.exports=function p(f,u){if(f.nodeCount()<=1)return[];var g=function l(f,u){var g=new x,C=0,L=0;c.forEach(f.nodes(),function(M){g.setNode(M,{v:M,in:0,out:0})}),c.forEach(f.edges(),function(M){var R=g.edge(M.v,M.w)||0,Z=u(M);g.setEdge(M.v,M.w,R+Z),L=Math.max(L,g.node(M.v).out+=Z),C=Math.max(C,g.node(M.w).in+=Z)});var I=c.range(L+C+3).map(function(){return new _}),B=C+1;return c.forEach(g.nodes(),function(M){h(I,B,g.node(M))}),{graph:g,buckets:I,zeroIdx:B}}(f,u||m),C=function t(f,u,g){for(var B,C=[],L=u[u.length-1],I=u[0];f.nodeCount();){for(;B=I.dequeue();)d(f,u,g,B);for(;B=L.dequeue();)d(f,u,g,B);if(f.nodeCount())for(var M=u.length-2;M>0;--M)if(B=u[M].dequeue()){C=C.concat(d(f,u,g,B,!0));break}}return C}(g.graph,g.buckets,g.zeroIdx);return c.flatten(c.map(C,function(L){return f.outEdges(L.v,L.w)}),!0)};var m=c.constant(1);function d(f,u,g,C,L){var I=L?[]:void 0;return c.forEach(f.inEdges(C.v),function(B){var M=f.edge(B),R=f.node(B.v);L&&I.push({v:B.v,w:B.w}),R.out-=M,h(u,g,R)}),c.forEach(f.outEdges(C.v),function(B){var M=f.edge(B),Z=f.node(B.w);Z.in-=M,h(u,g,Z)}),f.removeNode(C.v),I}function h(f,u,g){g.out?g.in?f[g.out-g.in+u].enqueue(g):f[f.length-1].enqueue(g):f[0].enqueue(g)}},14850:(w,D,s)=>{"use strict";var c=s(45760),x=s(12234),_=s(91496),m=s(94124),p=s(11510).normalizeRanks,t=s(60162),d=s(11510).removeEmptyRanks,l=s(1230),h=s(79999),f=s(83870),u=s(32974),g=s(78226),C=s(11510),L=s(36456).Graph;w.exports=function I(wt,yt){var Nt=yt&&yt.debugTiming?C.time:C.notime;Nt("layout",function(){var zt=Nt(" buildLayoutGraph",function(){return function W(wt){var yt=new L({multigraph:!0,compound:!0}),Nt=pe(wt.graph());return yt.setGraph(c.merge({},Z,Qt(Nt,R),c.pick(Nt,H))),c.forEach(wt.nodes(),function(zt){var de=pe(wt.node(zt));yt.setNode(zt,c.defaults(Qt(de,G),tt)),yt.setParent(zt,wt.parent(zt))}),c.forEach(wt.edges(),function(zt){var de=pe(wt.edge(zt));yt.setEdge(zt,c.merge({},st,Qt(de,K),c.pick(de,j)))}),yt}(wt)});Nt(" runLayout",function(){!function B(wt,yt){yt(" makeSpaceForEdgeLabels",function(){!function et(wt){var yt=wt.graph();yt.ranksep/=2,c.forEach(wt.edges(),function(Nt){var zt=wt.edge(Nt);zt.minlen*=2,"c"!==zt.labelpos.toLowerCase()&&("TB"===yt.rankdir||"BT"===yt.rankdir?zt.width+=zt.labeloffset:zt.height+=zt.labeloffset)})}(wt)}),yt(" removeSelfEdges",function(){!function ft(wt){c.forEach(wt.edges(),function(yt){if(yt.v===yt.w){var Nt=wt.node(yt.v);Nt.selfEdges||(Nt.selfEdges=[]),Nt.selfEdges.push({e:yt,label:wt.edge(yt)}),wt.removeEdge(yt)}})}(wt)}),yt(" acyclic",function(){x.run(wt)}),yt(" nestingGraph.run",function(){l.run(wt)}),yt(" rank",function(){m(C.asNonCompoundGraph(wt))}),yt(" injectEdgeLabelProxies",function(){!function at(wt){c.forEach(wt.edges(),function(yt){var Nt=wt.edge(yt);if(Nt.width&&Nt.height){var zt=wt.node(yt.v),de=wt.node(yt.w);C.addDummyNode(wt,"edge-proxy",{rank:(de.rank-zt.rank)/2+zt.rank,e:yt},"_ep")}})}(wt)}),yt(" removeEmptyRanks",function(){d(wt)}),yt(" nestingGraph.cleanup",function(){l.cleanup(wt)}),yt(" normalizeRanks",function(){p(wt)}),yt(" assignRankMinMax",function(){!function Y(wt){var yt=0;c.forEach(wt.nodes(),function(Nt){var zt=wt.node(Nt);zt.borderTop&&(zt.minRank=wt.node(zt.borderTop).rank,zt.maxRank=wt.node(zt.borderBottom).rank,yt=c.max(yt,zt.maxRank))}),wt.graph().maxRank=yt}(wt)}),yt(" removeEdgeLabelProxies",function(){!function nt(wt){c.forEach(wt.nodes(),function(yt){var Nt=wt.node(yt);"edge-proxy"===Nt.dummy&&(wt.edge(Nt.e).labelRank=Nt.rank,wt.removeNode(yt))})}(wt)}),yt(" normalize.run",function(){_.run(wt)}),yt(" parentDummyChains",function(){t(wt)}),yt(" addBorderSegments",function(){h(wt)}),yt(" order",function(){u(wt)}),yt(" insertSelfEdges",function(){!function Dt(wt){var yt=C.buildLayerMatrix(wt);c.forEach(yt,function(Nt){var zt=0;c.forEach(Nt,function(de,ie){var Mt=wt.node(de);Mt.order=ie+zt,c.forEach(Mt.selfEdges,function(te){C.addDummyNode(wt,"selfedge",{width:te.label.width,height:te.label.height,rank:Mt.rank,order:ie+ ++zt,e:te.e,label:te.label},"_se")}),delete Mt.selfEdges})})}(wt)}),yt(" adjustCoordinateSystem",function(){f.adjust(wt)}),yt(" position",function(){g(wt)}),yt(" positionSelfEdges",function(){!function St(wt){c.forEach(wt.nodes(),function(yt){var Nt=wt.node(yt);if("selfedge"===Nt.dummy){var zt=wt.node(Nt.e.v),de=zt.x+zt.width/2,ie=zt.y,Mt=Nt.x-de,te=zt.height/2;wt.setEdge(Nt.e,Nt.label),wt.removeNode(yt),Nt.label.points=[{x:de+2*Mt/3,y:ie-te},{x:de+5*Mt/6,y:ie-te},{x:de+Mt,y:ie},{x:de+5*Mt/6,y:ie+te},{x:de+2*Mt/3,y:ie+te}],Nt.label.x=Nt.x,Nt.label.y=Nt.y}})}(wt)}),yt(" removeBorderNodes",function(){!function ut(wt){c.forEach(wt.nodes(),function(yt){if(wt.children(yt).length){var Nt=wt.node(yt),zt=wt.node(Nt.borderTop),de=wt.node(Nt.borderBottom),ie=wt.node(c.last(Nt.borderLeft)),Mt=wt.node(c.last(Nt.borderRight));Nt.width=Math.abs(Mt.x-ie.x),Nt.height=Math.abs(de.y-zt.y),Nt.x=ie.x+Nt.width/2,Nt.y=zt.y+Nt.height/2}}),c.forEach(wt.nodes(),function(yt){"border"===wt.node(yt).dummy&&wt.removeNode(yt)})}(wt)}),yt(" normalize.undo",function(){_.undo(wt)}),yt(" fixupEdgeLabelCoords",function(){!function F(wt){c.forEach(wt.edges(),function(yt){var Nt=wt.edge(yt);if(c.has(Nt,"x"))switch(("l"===Nt.labelpos||"r"===Nt.labelpos)&&(Nt.width-=Nt.labeloffset),Nt.labelpos){case"l":Nt.x-=Nt.width/2+Nt.labeloffset;break;case"r":Nt.x+=Nt.width/2+Nt.labeloffset}})}(wt)}),yt(" undoCoordinateSystem",function(){f.undo(wt)}),yt(" translateGraph",function(){!function rt(wt){var yt=Number.POSITIVE_INFINITY,Nt=0,zt=Number.POSITIVE_INFINITY,de=0,ie=wt.graph(),Mt=ie.marginx||0,te=ie.marginy||0;function jt(ae){var At=ae.x,Ht=ae.y,Zt=ae.width,Kt=ae.height;yt=Math.min(yt,At-Zt/2),Nt=Math.max(Nt,At+Zt/2),zt=Math.min(zt,Ht-Kt/2),de=Math.max(de,Ht+Kt/2)}c.forEach(wt.nodes(),function(ae){jt(wt.node(ae))}),c.forEach(wt.edges(),function(ae){var At=wt.edge(ae);c.has(At,"x")&&jt(At)}),yt-=Mt,zt-=te,c.forEach(wt.nodes(),function(ae){var At=wt.node(ae);At.x-=yt,At.y-=zt}),c.forEach(wt.edges(),function(ae){var At=wt.edge(ae);c.forEach(At.points,function(Ht){Ht.x-=yt,Ht.y-=zt}),c.has(At,"x")&&(At.x-=yt),c.has(At,"y")&&(At.y-=zt)}),ie.width=Nt-yt+Mt,ie.height=de-zt+te}(wt)}),yt(" assignNodeIntersects",function(){!function q(wt){c.forEach(wt.edges(),function(yt){var ie,Mt,Nt=wt.edge(yt),zt=wt.node(yt.v),de=wt.node(yt.w);Nt.points?(ie=Nt.points[0],Mt=Nt.points[Nt.points.length-1]):(Nt.points=[],ie=de,Mt=zt),Nt.points.unshift(C.intersectRect(zt,ie)),Nt.points.push(C.intersectRect(de,Mt))})}(wt)}),yt(" reversePoints",function(){!function E(wt){c.forEach(wt.edges(),function(yt){var Nt=wt.edge(yt);Nt.reversed&&Nt.points.reverse()})}(wt)}),yt(" acyclic.undo",function(){x.undo(wt)})}(zt,Nt)}),Nt(" updateInputGraph",function(){!function M(wt,yt){c.forEach(wt.nodes(),function(Nt){var zt=wt.node(Nt),de=yt.node(Nt);zt&&(zt.x=de.x,zt.y=de.y,yt.children(Nt).length&&(zt.width=de.width,zt.height=de.height))}),c.forEach(wt.edges(),function(Nt){var zt=wt.edge(Nt),de=yt.edge(Nt);zt.points=de.points,c.has(de,"x")&&(zt.x=de.x,zt.y=de.y)}),wt.graph().width=yt.graph().width,wt.graph().height=yt.graph().height}(wt,zt)})})};var R=["nodesep","edgesep","ranksep","marginx","marginy"],Z={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},H=["acyclicer","ranker","rankdir","align"],G=["width","height"],tt={width:0,height:0},K=["minlen","weight","width","height","labeloffset"],st={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},j=["labelpos"];function Qt(wt,yt){return c.mapValues(c.pick(wt,yt),Number)}function pe(wt){var yt={};return c.forEach(wt,function(Nt,zt){yt[zt.toLowerCase()]=Nt}),yt}},45760:(w,D,s)=>{var c;try{c={cloneDeep:s(90733),constant:s(76684),defaults:s(28800),each:s(35474),filter:s(35281),find:s(62516),flatten:s(22274),forEach:s(89851),forIn:s(41176),has:s(54842),isUndefined:s(34235),last:s(25809),map:s(19984),mapValues:s(10203),max:s(18176),merge:s(80567),min:s(29439),minBy:s(29525),now:s(31710),pick:s(16372),range:s(90361),reduce:s(81337),sortBy:s(12906),uniqueId:s(51541),values:s(90377),zipObject:s(21617)}}catch{}c||(c=window._),w.exports=c},1230:(w,D,s)=>{var c=s(45760),x=s(11510);function m(l,h,f,u,g,C,L){var I=l.children(L);if(I.length){var B=x.addBorderNode(l,"_bt"),M=x.addBorderNode(l,"_bb"),R=l.node(L);l.setParent(B,L),R.borderTop=B,l.setParent(M,L),R.borderBottom=M,c.forEach(I,function(Z){m(l,h,f,u,g,C,Z);var H=l.node(Z),G=H.borderTop?H.borderTop:Z,tt=H.borderBottom?H.borderBottom:Z,K=H.borderTop?u:2*u,st=G!==tt?1:g-C[L]+1;l.setEdge(B,G,{weight:K,minlen:st,nestingEdge:!0}),l.setEdge(tt,M,{weight:K,minlen:st,nestingEdge:!0})}),l.parent(L)||l.setEdge(h,B,{weight:0,minlen:g+C[L]})}else L!==h&&l.setEdge(h,L,{weight:0,minlen:f})}w.exports={run:function _(l){var h=x.addDummyNode(l,"root",{},"_root"),f=function p(l){var h={};function f(u,g){var C=l.children(u);C&&C.length&&c.forEach(C,function(L){f(L,g+1)}),h[u]=g}return c.forEach(l.children(),function(u){f(u,1)}),h}(l),u=c.max(c.values(f))-1,g=2*u+1;l.graph().nestingRoot=h,c.forEach(l.edges(),function(L){l.edge(L).minlen*=g});var C=function t(l){return c.reduce(l.edges(),function(h,f){return h+l.edge(f).weight},0)}(l)+1;c.forEach(l.children(),function(L){m(l,h,g,C,u,f,L)}),l.graph().nodeRankFactor=g},cleanup:function d(l){var h=l.graph();l.removeNode(h.nestingRoot),delete h.nestingRoot,c.forEach(l.edges(),function(f){l.edge(f).nestingEdge&&l.removeEdge(f)})}}},91496:(w,D,s)=>{"use strict";var c=s(45760),x=s(11510);w.exports={run:function _(t){t.graph().dummyChains=[],c.forEach(t.edges(),function(d){!function m(t,d){var l=d.v,h=t.node(l).rank,f=d.w,u=t.node(f).rank,g=d.name,C=t.edge(d),L=C.labelRank;if(u!==h+1){var I,B,M;for(t.removeEdge(d),M=0,++h;h{var c=s(45760);w.exports=function x(_,m,p){var d,t={};c.forEach(p,function(l){for(var f,u,h=_.parent(l);h;){if((f=_.parent(h))?(u=t[f],t[f]=h):(u=d,d=h),u&&u!==h)return void m.setEdge(u,h);h=f}})}},81323:(w,D,s)=>{var c=s(45760);w.exports=function x(_,m){return c.map(m,function(p){var t=_.inEdges(p);if(t.length){var d=c.reduce(t,function(l,h){var f=_.edge(h),u=_.node(h.v);return{sum:l.sum+f.weight*u.order,weight:l.weight+f.weight}},{sum:0,weight:0});return{v:p,barycenter:d.sum/d.weight,weight:d.weight}}return{v:p}})}},1686:(w,D,s)=>{var c=s(45760),x=s(36456).Graph;w.exports=function _(p,t,d){var l=function m(p){for(var t;p.hasNode(t=c.uniqueId("_root")););return t}(p),h=new x({compound:!0}).setGraph({root:l}).setDefaultNodeLabel(function(f){return p.node(f)});return c.forEach(p.nodes(),function(f){var u=p.node(f),g=p.parent(f);(u.rank===t||u.minRank<=t&&t<=u.maxRank)&&(h.setNode(f),h.setParent(f,g||l),c.forEach(p[d](f),function(C){var L=C.v===f?C.w:C.v,I=h.edge(L,f),B=c.isUndefined(I)?0:I.weight;h.setEdge(L,f,{weight:p.edge(C).weight+B})}),c.has(u,"minRank")&&h.setNode(f,{borderLeft:u.borderLeft[t],borderRight:u.borderRight[t]}))}),h}},18796:(w,D,s)=>{"use strict";var c=s(45760);function _(m,p,t){for(var d=c.zipObject(t,c.map(t,function(C,L){return L})),l=c.flatten(c.map(p,function(C){return c.sortBy(c.map(m.outEdges(C),function(L){return{pos:d[L.w],weight:m.edge(L).weight}}),"pos")}),!0),h=1;h0;)L%2&&(I+=u[L+1]),u[L=L-1>>1]+=C.weight;g+=C.weight*I})),g}w.exports=function x(m,p){for(var t=0,d=1;d{"use strict";var c=s(45760),x=s(49402),_=s(18796),m=s(61057),p=s(1686),t=s(33034),d=s(36456).Graph,l=s(11510);function f(C,L,I){return c.map(L,function(B){return p(C,B,I)})}function u(C,L){var I=new d;c.forEach(C,function(B){var M=B.graph().root,R=m(B,M,I,L);c.forEach(R.vs,function(Z,H){B.node(Z).order=H}),t(B,I,R.vs)})}function g(C,L){c.forEach(L,function(I){c.forEach(I,function(B,M){C.node(B).order=M})})}w.exports=function h(C){var L=l.maxRank(C),I=f(C,c.range(1,L+1),"inEdges"),B=f(C,c.range(L-1,-1,-1),"outEdges"),M=x(C);g(C,M);for(var Z,R=Number.POSITIVE_INFINITY,H=0,G=0;G<4;++H,++G){u(H%2?I:B,H%4>=2),M=l.buildLayerMatrix(C);var tt=_(C,M);tt{"use strict";var c=s(45760);w.exports=function x(_){var m={},p=c.filter(_.nodes(),function(f){return!_.children(f).length}),t=c.max(c.map(p,function(f){return _.node(f).rank})),d=c.map(c.range(t+1),function(){return[]}),h=c.sortBy(p,function(f){return _.node(f).rank});return c.forEach(h,function l(f){if(!c.has(m,f)){m[f]=!0;var u=_.node(f);d[u.rank].push(f),c.forEach(_.successors(f),l)}}),d}},83826:(w,D,s)=>{"use strict";var c=s(45760);w.exports=function x(p,t){var d={};return c.forEach(p,function(h,f){var u=d[h.v]={indegree:0,in:[],out:[],vs:[h.v],i:f};c.isUndefined(h.barycenter)||(u.barycenter=h.barycenter,u.weight=h.weight)}),c.forEach(t.edges(),function(h){var f=d[h.v],u=d[h.w];!c.isUndefined(f)&&!c.isUndefined(u)&&(u.indegree++,f.out.push(d[h.w]))}),function _(p){var t=[];function d(f){return function(u){u.merged||(c.isUndefined(u.barycenter)||c.isUndefined(f.barycenter)||u.barycenter>=f.barycenter)&&function m(p,t){var d=0,l=0;p.weight&&(d+=p.barycenter*p.weight,l+=p.weight),t.weight&&(d+=t.barycenter*t.weight,l+=t.weight),p.vs=t.vs.concat(p.vs),p.barycenter=d/l,p.weight=l,p.i=Math.min(t.i,p.i),t.merged=!0}(f,u)}}function l(f){return function(u){u.in.push(f),0==--u.indegree&&p.push(u)}}for(;p.length;){var h=p.pop();t.push(h),c.forEach(h.in.reverse(),d(h)),c.forEach(h.out,l(h))}return c.map(c.filter(t,function(f){return!f.merged}),function(f){return c.pick(f,["vs","i","barycenter","weight"])})}(c.filter(d,function(h){return!h.indegree}))}},61057:(w,D,s)=>{var c=s(45760),x=s(81323),_=s(83826),m=s(93803);w.exports=function p(l,h,f,u){var g=l.children(h),C=l.node(h),L=C?C.borderLeft:void 0,I=C?C.borderRight:void 0,B={};L&&(g=c.filter(g,function(tt){return tt!==L&&tt!==I}));var M=x(l,g);c.forEach(M,function(tt){if(l.children(tt.v).length){var K=p(l,tt.v,f,u);B[tt.v]=K,c.has(K,"barycenter")&&function d(l,h){c.isUndefined(l.barycenter)?(l.barycenter=h.barycenter,l.weight=h.weight):(l.barycenter=(l.barycenter*l.weight+h.barycenter*h.weight)/(l.weight+h.weight),l.weight+=h.weight)}(tt,K)}});var R=_(M,f);!function t(l,h){c.forEach(l,function(f){f.vs=c.flatten(f.vs.map(function(u){return h[u]?h[u].vs:u}),!0)})}(R,B);var Z=m(R,u);if(L&&(Z.vs=c.flatten([L,Z.vs,I],!0),l.predecessors(L).length)){var H=l.node(l.predecessors(L)[0]),G=l.node(l.predecessors(I)[0]);c.has(Z,"barycenter")||(Z.barycenter=0,Z.weight=0),Z.barycenter=(Z.barycenter*Z.weight+H.order+G.order)/(Z.weight+2),Z.weight+=2}return Z}},93803:(w,D,s)=>{var c=s(45760),x=s(11510);function m(t,d,l){for(var h;d.length&&(h=c.last(d)).i<=l;)d.pop(),t.push(h.vs),l++;return l}w.exports=function _(t,d){var l=x.partition(t,function(B){return c.has(B,"barycenter")}),h=l.lhs,f=c.sortBy(l.rhs,function(B){return-B.i}),u=[],g=0,C=0,L=0;h.sort(function p(t){return function(d,l){return d.barycenterl.barycenter?1:t?l.i-d.i:d.i-l.i}}(!!d)),L=m(u,f,L),c.forEach(h,function(B){L+=B.vs.length,u.push(B.vs),g+=B.barycenter*B.weight,C+=B.weight,L=m(u,f,L)});var I={vs:c.flatten(u,!0)};return C&&(I.barycenter=g/C,I.weight=C),I}},60162:(w,D,s)=>{var c=s(45760);w.exports=function x(p){var t=function m(p){var t={},d=0;return c.forEach(p.children(),function l(h){var f=d;c.forEach(p.children(h),l),t[h]={low:f,lim:d++}}),t}(p);c.forEach(p.graph().dummyChains,function(d){for(var l=p.node(d),h=l.edgeObj,f=function _(p,t,d,l){var C,L,h=[],f=[],u=Math.min(t[d].low,t[l].low),g=Math.max(t[d].lim,t[l].lim);C=d;do{C=p.parent(C),h.push(C)}while(C&&(t[C].low>u||g>t[C].lim));for(L=C,C=l;(C=p.parent(C))!==L;)f.push(C);return{path:h.concat(f.reverse()),lca:L}}(p,t,h.v,h.w),u=f.path,g=f.lca,C=0,L=u[C],I=!0;d!==h.w;){if(l=p.node(d),I){for(;(L=u[C])!==g&&p.node(L).maxRank{"use strict";var c=s(45760),x=s(36456).Graph,_=s(11510);function m(R,Z){var H={};return c.reduce(Z,function G(tt,K){var st=0,j=0,W=tt.length,et=c.last(K);return c.forEach(K,function(at,Y){var nt=function t(R,Z){if(R.node(Z).dummy)return c.find(R.predecessors(Z),function(H){return R.node(H).dummy})}(R,at),rt=nt?R.node(nt).order:W;(nt||at===et)&&(c.forEach(K.slice(j,Y+1),function(q){c.forEach(R.predecessors(q),function(F){var E=R.node(F),ut=E.order;(utet)&&d(H,nt,at)})})}return c.reduce(Z,function tt(K,st){var W,j=-1,et=0;return c.forEach(st,function(at,Y){if("border"===R.node(at).dummy){var nt=R.predecessors(at);nt.length&&(W=R.node(nt[0]).order,G(st,et,Y,j,W),et=Y,j=W)}G(st,et,st.length,W,K.length)}),st}),H}function d(R,Z,H){if(Z>H){var G=Z;Z=H,H=G}var tt=R[Z];tt||(R[Z]=tt={}),tt[H]=!0}function l(R,Z,H){if(Z>H){var G=Z;Z=H,H=G}return c.has(R[Z],H)}function h(R,Z,H,G){var tt={},K={},st={};return c.forEach(Z,function(j){c.forEach(j,function(W,et){tt[W]=W,K[W]=W,st[W]=et})}),c.forEach(Z,function(j){var W=-1;c.forEach(j,function(et){var at=G(et);if(at.length)for(var Y=((at=c.sortBy(at,function(F){return st[F]})).length-1)/2,nt=Math.floor(Y),rt=Math.ceil(Y);nt<=rt;++nt){var q=at[nt];K[et]===et&&W{"use strict";var c=s(45760),x=s(11510),_=s(54058).positionX;w.exports=function m(t){(function p(t){var d=x.buildLayerMatrix(t),l=t.graph().ranksep,h=0;c.forEach(d,function(f){var u=c.max(c.map(f,function(g){return t.node(g).height}));c.forEach(f,function(g){t.node(g).y=h+u/2}),h+=u+l})})(t=x.asNonCompoundGraph(t)),c.forEach(_(t),function(d,l){t.node(l).x=d})}},96632:(w,D,s)=>{"use strict";var c=s(45760),x=s(36456).Graph,_=s(1916).slack;function p(l,h){return c.forEach(l.nodes(),function f(u){c.forEach(h.nodeEdges(u),function(g){var C=g.v,L=u===C?g.w:C;!l.hasNode(L)&&!_(h,g)&&(l.setNode(L,{}),l.setEdge(u,L,{}),f(L))})}),l.nodeCount()}function t(l,h){return c.minBy(h.edges(),function(f){if(l.hasNode(f.v)!==l.hasNode(f.w))return _(h,f)})}function d(l,h,f){c.forEach(l.nodes(),function(u){h.node(u).rank+=f})}w.exports=function m(l){var g,C,h=new x({directed:!1}),f=l.nodes()[0],u=l.nodeCount();for(h.setNode(f,{});p(h,l){"use strict";var x=s(1916).longestPath,_=s(96632),m=s(63804);w.exports=function p(h){switch(h.graph().ranker){case"network-simplex":default:!function l(h){m(h)}(h);break;case"tight-tree":!function d(h){x(h),_(h)}(h);break;case"longest-path":t(h)}};var t=x},63804:(w,D,s)=>{"use strict";var c=s(45760),x=s(96632),_=s(1916).slack,m=s(1916).longestPath,p=s(36456).alg.preorder,t=s(36456).alg.postorder,d=s(11510).simplify;function l(H){H=d(H),m(H);var tt,G=x(H);for(g(G),h(G,H);tt=L(G);)B(G,H,tt,I(G,H,tt))}function h(H,G){var tt=t(H,H.nodes());tt=tt.slice(0,tt.length-1),c.forEach(tt,function(K){!function f(H,G,tt){var K=H.node(tt);H.edge(tt,K.parent).cutvalue=u(H,G,tt)}(H,G,K)})}function u(H,G,tt){var st=H.node(tt).parent,j=!0,W=G.edge(tt,st),et=0;return W||(j=!1,W=G.edge(st,tt)),et=W.weight,c.forEach(G.nodeEdges(tt),function(at){var Y=at.v===tt,nt=Y?at.w:at.v;if(nt!==st){var rt=Y===j,q=G.edge(at).weight;if(et+=rt?q:-q,function R(H,G,tt){return H.hasEdge(G,tt)}(H,tt,nt)){var F=H.edge(tt,nt).cutvalue;et+=rt?-F:F}}}),et}function g(H,G){arguments.length<2&&(G=H.nodes()[0]),C(H,{},1,G)}function C(H,G,tt,K,st){var j=tt,W=H.node(K);return G[K]=!0,c.forEach(H.neighbors(K),function(et){c.has(G,et)||(tt=C(H,G,tt,et,K))}),W.low=j,W.lim=tt++,st?W.parent=st:delete W.parent,tt}function L(H){return c.find(H.edges(),function(G){return H.edge(G).cutvalue<0})}function I(H,G,tt){var K=tt.v,st=tt.w;G.hasEdge(K,st)||(K=tt.w,st=tt.v);var j=H.node(K),W=H.node(st),et=j,at=!1;j.lim>W.lim&&(et=W,at=!0);var Y=c.filter(G.edges(),function(nt){return at===Z(0,H.node(nt.v),et)&&at!==Z(0,H.node(nt.w),et)});return c.minBy(Y,function(nt){return _(G,nt)})}function B(H,G,tt,K){H.removeEdge(tt.v,tt.w),H.setEdge(K.v,K.w,{}),g(H),h(H,G),function M(H,G){var tt=c.find(H.nodes(),function(st){return!G.node(st).parent}),K=p(H,tt);K=K.slice(1),c.forEach(K,function(st){var j=H.node(st).parent,W=G.edge(st,j),et=!1;W||(W=G.edge(j,st),et=!0),G.node(st).rank=G.node(j).rank+(et?W.minlen:-W.minlen)})}(H,G)}function Z(H,G,tt){return tt.low<=G.lim&&G.lim<=tt.lim}w.exports=l,l.initLowLimValues=g,l.initCutValues=h,l.calcCutValue=u,l.leaveEdge=L,l.enterEdge=I,l.exchangeEdges=B},1916:(w,D,s)=>{"use strict";var c=s(45760);w.exports={longestPath:function x(m){var p={};c.forEach(m.sources(),function t(d){var l=m.node(d);if(c.has(p,d))return l.rank;p[d]=!0;var h=c.min(c.map(m.outEdges(d),function(f){return t(f.w)-m.edge(f).minlen}));return(h===Number.POSITIVE_INFINITY||null==h)&&(h=0),l.rank=h})},slack:function _(m,p){return m.node(p.w).rank-m.node(p.v).rank-m.edge(p).minlen}}},11510:(w,D,s)=>{"use strict";var c=s(45760),x=s(36456).Graph;function _(M,R,Z,H){var G;do{G=c.uniqueId(H)}while(M.hasNode(G));return Z.dummy=R,M.setNode(G,Z),G}function C(M){return c.max(c.map(M.nodes(),function(R){var Z=M.node(R).rank;if(!c.isUndefined(Z))return Z}))}w.exports={addDummyNode:_,simplify:function m(M){var R=(new x).setGraph(M.graph());return c.forEach(M.nodes(),function(Z){R.setNode(Z,M.node(Z))}),c.forEach(M.edges(),function(Z){var H=R.edge(Z.v,Z.w)||{weight:0,minlen:1},G=M.edge(Z);R.setEdge(Z.v,Z.w,{weight:H.weight+G.weight,minlen:Math.max(H.minlen,G.minlen)})}),R},asNonCompoundGraph:function p(M){var R=new x({multigraph:M.isMultigraph()}).setGraph(M.graph());return c.forEach(M.nodes(),function(Z){M.children(Z).length||R.setNode(Z,M.node(Z))}),c.forEach(M.edges(),function(Z){R.setEdge(Z,M.edge(Z))}),R},successorWeights:function t(M){var R=c.map(M.nodes(),function(Z){var H={};return c.forEach(M.outEdges(Z),function(G){H[G.w]=(H[G.w]||0)+M.edge(G).weight}),H});return c.zipObject(M.nodes(),R)},predecessorWeights:function d(M){var R=c.map(M.nodes(),function(Z){var H={};return c.forEach(M.inEdges(Z),function(G){H[G.v]=(H[G.v]||0)+M.edge(G).weight}),H});return c.zipObject(M.nodes(),R)},intersectRect:function l(M,R){var j,W,Z=M.x,H=M.y,G=R.x-Z,tt=R.y-H,K=M.width/2,st=M.height/2;if(!G&&!tt)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(tt)*K>Math.abs(G)*st?(tt<0&&(st=-st),j=st*G/tt,W=st):(G<0&&(K=-K),j=K,W=K*tt/G),{x:Z+j,y:H+W}},buildLayerMatrix:function h(M){var R=c.map(c.range(C(M)+1),function(){return[]});return c.forEach(M.nodes(),function(Z){var H=M.node(Z),G=H.rank;c.isUndefined(G)||(R[G][H.order]=Z)}),R},normalizeRanks:function f(M){var R=c.min(c.map(M.nodes(),function(Z){return M.node(Z).rank}));c.forEach(M.nodes(),function(Z){var H=M.node(Z);c.has(H,"rank")&&(H.rank-=R)})},removeEmptyRanks:function u(M){var R=c.min(c.map(M.nodes(),function(tt){return M.node(tt).rank})),Z=[];c.forEach(M.nodes(),function(tt){var K=M.node(tt).rank-R;Z[K]||(Z[K]=[]),Z[K].push(tt)});var H=0,G=M.graph().nodeRankFactor;c.forEach(Z,function(tt,K){c.isUndefined(tt)&&K%G!=0?--H:H&&c.forEach(tt,function(st){M.node(st).rank+=H})})},addBorderNode:function g(M,R,Z,H){var G={width:0,height:0};return arguments.length>=4&&(G.rank=Z,G.order=H),_(M,"border",G,R)},maxRank:C,partition:function L(M,R){var Z={lhs:[],rhs:[]};return c.forEach(M,function(H){R(H)?Z.lhs.push(H):Z.rhs.push(H)}),Z},time:function I(M,R){var Z=c.now();try{return R()}finally{console.log(M+" time: "+(c.now()-Z)+"ms")}},notime:function B(M,R){return R()}}},28126:w=>{w.exports="0.8.5"},85510:(w,D,s)=>{var c=s(51838);w.exports={Graph:c.Graph,json:s(21088),alg:s(83430),version:c.version}},86730:(w,D,s)=>{var c=s(79138);w.exports=function x(_){var t,m={},p=[];function d(l){c.has(m,l)||(m[l]=!0,t.push(l),c.each(_.successors(l),d),c.each(_.predecessors(l),d))}return c.each(_.nodes(),function(l){t=[],d(l),t.length&&p.push(t)}),p}},22163:(w,D,s)=>{var c=s(79138);function _(m,p,t,d,l,h){c.has(d,p)||(d[p]=!0,t||h.push(p),c.each(l(p),function(f){_(m,f,t,d,l,h)}),t&&h.push(p))}w.exports=function x(m,p,t){c.isArray(p)||(p=[p]);var d=(m.isDirected()?m.successors:m.neighbors).bind(m),l=[],h={};return c.each(p,function(f){if(!m.hasNode(f))throw new Error("Graph does not have node: "+f);_(m,f,"post"===t,h,d,l)}),l}},25668:(w,D,s)=>{var c=s(61718),x=s(79138);w.exports=function _(m,p,t){return x.transform(m.nodes(),function(d,l){d[l]=c(m,l,p,t)},{})}},61718:(w,D,s)=>{var c=s(79138),x=s(31919);w.exports=function m(t,d,l,h){return function p(t,d,l,h){var g,C,f={},u=new x,L=function(I){var B=I.v!==g?I.v:I.w,M=f[B],R=l(I),Z=C.distance+R;if(R<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+I+" Weight: "+R);Z0&&(g=u.removeMin(),(C=f[g]).distance!==Number.POSITIVE_INFINITY);)h(g).forEach(L);return f}(t,String(d),l||_,h||function(f){return t.outEdges(f)})};var _=c.constant(1)},9611:(w,D,s)=>{var c=s(79138),x=s(73585);w.exports=function _(m){return c.filter(x(m),function(p){return p.length>1||1===p.length&&m.hasEdge(p[0],p[0])})}},22881:(w,D,s)=>{var c=s(79138);w.exports=function _(p,t,d){return function m(p,t,d){var l={},h=p.nodes();return h.forEach(function(f){l[f]={},l[f][f]={distance:0},h.forEach(function(u){f!==u&&(l[f][u]={distance:Number.POSITIVE_INFINITY})}),d(f).forEach(function(u){var g=u.v===f?u.w:u.v,C=t(u);l[f][g]={distance:C,predecessor:f}})}),h.forEach(function(f){var u=l[f];h.forEach(function(g){var C=l[g];h.forEach(function(L){var B=u[L],M=C[L],R=C[f].distance+B.distance;R{w.exports={components:s(86730),dijkstra:s(61718),dijkstraAll:s(25668),findCycles:s(9611),floydWarshall:s(22881),isAcyclic:s(46693),postorder:s(46694),preorder:s(5330),prim:s(46823),tarjan:s(73585),topsort:s(52180)}},46693:(w,D,s)=>{var c=s(52180);w.exports=function x(_){try{c(_)}catch(m){if(m instanceof c.CycleException)return!1;throw m}return!0}},46694:(w,D,s)=>{var c=s(22163);w.exports=function x(_,m){return c(_,m,"post")}},5330:(w,D,s)=>{var c=s(22163);w.exports=function x(_,m){return c(_,m,"pre")}},46823:(w,D,s)=>{var c=s(79138),x=s(66568),_=s(31919);w.exports=function m(p,t){var f,d=new x,l={},h=new _;function u(C){var L=C.v===f?C.w:C.v,I=h.priority(L);if(void 0!==I){var B=t(C);B0;){if(f=h.removeMin(),c.has(l,f))d.setEdge(f,l[f]);else{if(g)throw new Error("Input graph is not connected: "+p);g=!0}p.nodeEdges(f).forEach(u)}return d}},73585:(w,D,s)=>{var c=s(79138);w.exports=function x(_){var m=0,p=[],t={},d=[];function l(h){var f=t[h]={onStack:!0,lowlink:m,index:m++};if(p.push(h),_.successors(h).forEach(function(C){c.has(t,C)?t[C].onStack&&(f.lowlink=Math.min(f.lowlink,t[C].index)):(l(C),f.lowlink=Math.min(f.lowlink,t[C].lowlink))}),f.lowlink===f.index){var g,u=[];do{g=p.pop(),t[g].onStack=!1,u.push(g)}while(h!==g);d.push(u)}}return _.nodes().forEach(function(h){c.has(t,h)||l(h)}),d}},52180:(w,D,s)=>{var c=s(79138);function x(m){var p={},t={},d=[];if(c.each(m.sinks(),function l(h){if(c.has(t,h))throw new _;c.has(p,h)||(t[h]=!0,p[h]=!0,c.each(m.predecessors(h),l),delete t[h],d.push(h))}),c.size(p)!==m.nodeCount())throw new _;return d}function _(){}w.exports=x,x.CycleException=_,_.prototype=new Error},31919:(w,D,s)=>{var c=s(79138);function x(){this._arr=[],this._keyIndices={}}w.exports=x,x.prototype.size=function(){return this._arr.length},x.prototype.keys=function(){return this._arr.map(function(_){return _.key})},x.prototype.has=function(_){return c.has(this._keyIndices,_)},x.prototype.priority=function(_){var m=this._keyIndices[_];if(void 0!==m)return this._arr[m].priority},x.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},x.prototype.add=function(_,m){var p=this._keyIndices;if(_=String(_),!c.has(p,_)){var t=this._arr,d=t.length;return p[_]=d,t.push({key:_,priority:m}),this._decrease(d),!0}return!1},x.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var _=this._arr.pop();return delete this._keyIndices[_.key],this._heapify(0),_.key},x.prototype.decrease=function(_,m){var p=this._keyIndices[_];if(m>this._arr[p].priority)throw new Error("New priority is greater than current priority. Key: "+_+" Old: "+this._arr[p].priority+" New: "+m);this._arr[p].priority=m,this._decrease(p)},x.prototype._heapify=function(_){var m=this._arr,p=2*_,t=p+1,d=_;p>1].priority{"use strict";var c=s(79138);w.exports=p;var _="\0";function p(u){this._isDirected=!c.has(u,"directed")||u.directed,this._isMultigraph=!!c.has(u,"multigraph")&&u.multigraph,this._isCompound=!!c.has(u,"compound")&&u.compound,this._label=void 0,this._defaultNodeLabelFn=c.constant(void 0),this._defaultEdgeLabelFn=c.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[_]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function t(u,g){u[g]?u[g]++:u[g]=1}function d(u,g){--u[g]||delete u[g]}function l(u,g,C,L){var I=""+g,B=""+C;if(!u&&I>B){var M=I;I=B,B=M}return I+"\x01"+B+"\x01"+(c.isUndefined(L)?"\0":L)}function h(u,g,C,L){var I=""+g,B=""+C;if(!u&&I>B){var M=I;I=B,B=M}var R={v:I,w:B};return L&&(R.name=L),R}function f(u,g){return l(u,g.v,g.w,g.name)}p.prototype._nodeCount=0,p.prototype._edgeCount=0,p.prototype.isDirected=function(){return this._isDirected},p.prototype.isMultigraph=function(){return this._isMultigraph},p.prototype.isCompound=function(){return this._isCompound},p.prototype.setGraph=function(u){return this._label=u,this},p.prototype.graph=function(){return this._label},p.prototype.setDefaultNodeLabel=function(u){return c.isFunction(u)||(u=c.constant(u)),this._defaultNodeLabelFn=u,this},p.prototype.nodeCount=function(){return this._nodeCount},p.prototype.nodes=function(){return c.keys(this._nodes)},p.prototype.sources=function(){var u=this;return c.filter(this.nodes(),function(g){return c.isEmpty(u._in[g])})},p.prototype.sinks=function(){var u=this;return c.filter(this.nodes(),function(g){return c.isEmpty(u._out[g])})},p.prototype.setNodes=function(u,g){var C=arguments,L=this;return c.each(u,function(I){C.length>1?L.setNode(I,g):L.setNode(I)}),this},p.prototype.setNode=function(u,g){return c.has(this._nodes,u)?(arguments.length>1&&(this._nodes[u]=g),this):(this._nodes[u]=arguments.length>1?g:this._defaultNodeLabelFn(u),this._isCompound&&(this._parent[u]=_,this._children[u]={},this._children[_][u]=!0),this._in[u]={},this._preds[u]={},this._out[u]={},this._sucs[u]={},++this._nodeCount,this)},p.prototype.node=function(u){return this._nodes[u]},p.prototype.hasNode=function(u){return c.has(this._nodes,u)},p.prototype.removeNode=function(u){var g=this;if(c.has(this._nodes,u)){var C=function(L){g.removeEdge(g._edgeObjs[L])};delete this._nodes[u],this._isCompound&&(this._removeFromParentsChildList(u),delete this._parent[u],c.each(this.children(u),function(L){g.setParent(L)}),delete this._children[u]),c.each(c.keys(this._in[u]),C),delete this._in[u],delete this._preds[u],c.each(c.keys(this._out[u]),C),delete this._out[u],delete this._sucs[u],--this._nodeCount}return this},p.prototype.setParent=function(u,g){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(c.isUndefined(g))g=_;else{for(var C=g+="";!c.isUndefined(C);C=this.parent(C))if(C===u)throw new Error("Setting "+g+" as parent of "+u+" would create a cycle");this.setNode(g)}return this.setNode(u),this._removeFromParentsChildList(u),this._parent[u]=g,this._children[g][u]=!0,this},p.prototype._removeFromParentsChildList=function(u){delete this._children[this._parent[u]][u]},p.prototype.parent=function(u){if(this._isCompound){var g=this._parent[u];if(g!==_)return g}},p.prototype.children=function(u){if(c.isUndefined(u)&&(u=_),this._isCompound){var g=this._children[u];if(g)return c.keys(g)}else{if(u===_)return this.nodes();if(this.hasNode(u))return[]}},p.prototype.predecessors=function(u){var g=this._preds[u];if(g)return c.keys(g)},p.prototype.successors=function(u){var g=this._sucs[u];if(g)return c.keys(g)},p.prototype.neighbors=function(u){var g=this.predecessors(u);if(g)return c.union(g,this.successors(u))},p.prototype.isLeaf=function(u){return 0===(this.isDirected()?this.successors(u):this.neighbors(u)).length},p.prototype.filterNodes=function(u){var g=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});g.setGraph(this.graph());var C=this;c.each(this._nodes,function(B,M){u(M)&&g.setNode(M,B)}),c.each(this._edgeObjs,function(B){g.hasNode(B.v)&&g.hasNode(B.w)&&g.setEdge(B,C.edge(B))});var L={};function I(B){var M=C.parent(B);return void 0===M||g.hasNode(M)?(L[B]=M,M):M in L?L[M]:I(M)}return this._isCompound&&c.each(g.nodes(),function(B){g.setParent(B,I(B))}),g},p.prototype.setDefaultEdgeLabel=function(u){return c.isFunction(u)||(u=c.constant(u)),this._defaultEdgeLabelFn=u,this},p.prototype.edgeCount=function(){return this._edgeCount},p.prototype.edges=function(){return c.values(this._edgeObjs)},p.prototype.setPath=function(u,g){var C=this,L=arguments;return c.reduce(u,function(I,B){return L.length>1?C.setEdge(I,B,g):C.setEdge(I,B),B}),this},p.prototype.setEdge=function(){var u,g,C,L,I=!1,B=arguments[0];"object"==typeof B&&null!==B&&"v"in B?(u=B.v,g=B.w,C=B.name,2===arguments.length&&(L=arguments[1],I=!0)):(u=B,g=arguments[1],C=arguments[3],arguments.length>2&&(L=arguments[2],I=!0)),u=""+u,g=""+g,c.isUndefined(C)||(C=""+C);var M=l(this._isDirected,u,g,C);if(c.has(this._edgeLabels,M))return I&&(this._edgeLabels[M]=L),this;if(!c.isUndefined(C)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(u),this.setNode(g),this._edgeLabels[M]=I?L:this._defaultEdgeLabelFn(u,g,C);var R=h(this._isDirected,u,g,C);return u=R.v,g=R.w,Object.freeze(R),this._edgeObjs[M]=R,t(this._preds[g],u),t(this._sucs[u],g),this._in[g][M]=R,this._out[u][M]=R,this._edgeCount++,this},p.prototype.edge=function(u,g,C){var L=1===arguments.length?f(this._isDirected,arguments[0]):l(this._isDirected,u,g,C);return this._edgeLabels[L]},p.prototype.hasEdge=function(u,g,C){var L=1===arguments.length?f(this._isDirected,arguments[0]):l(this._isDirected,u,g,C);return c.has(this._edgeLabels,L)},p.prototype.removeEdge=function(u,g,C){var L=1===arguments.length?f(this._isDirected,arguments[0]):l(this._isDirected,u,g,C),I=this._edgeObjs[L];return I&&(u=I.v,g=I.w,delete this._edgeLabels[L],delete this._edgeObjs[L],d(this._preds[g],u),d(this._sucs[u],g),delete this._in[g][L],delete this._out[u][L],this._edgeCount--),this},p.prototype.inEdges=function(u,g){var C=this._in[u];if(C){var L=c.values(C);return g?c.filter(L,function(I){return I.v===g}):L}},p.prototype.outEdges=function(u,g){var C=this._out[u];if(C){var L=c.values(C);return g?c.filter(L,function(I){return I.w===g}):L}},p.prototype.nodeEdges=function(u,g){var C=this.inEdges(u,g);if(C)return C.concat(this.outEdges(u,g))}},51838:(w,D,s)=>{w.exports={Graph:s(66568),version:s(75089)}},21088:(w,D,s)=>{var c=s(79138),x=s(66568);function m(d){return c.map(d.nodes(),function(l){var h=d.node(l),f=d.parent(l),u={v:l};return c.isUndefined(h)||(u.value=h),c.isUndefined(f)||(u.parent=f),u})}function p(d){return c.map(d.edges(),function(l){var h=d.edge(l),f={v:l.v,w:l.w};return c.isUndefined(l.name)||(f.name=l.name),c.isUndefined(h)||(f.value=h),f})}w.exports={write:function _(d){var l={options:{directed:d.isDirected(),multigraph:d.isMultigraph(),compound:d.isCompound()},nodes:m(d),edges:p(d)};return c.isUndefined(d.graph())||(l.value=c.clone(d.graph())),l},read:function t(d){var l=new x(d.options).setGraph(d.value);return c.each(d.nodes,function(h){l.setNode(h.v,h.value),h.parent&&l.setParent(h.v,h.parent)}),c.each(d.edges,function(h){l.setEdge({v:h.v,w:h.w,name:h.name},h.value)}),l}}},79138:(w,D,s)=>{var c;try{c={clone:s(11094),constant:s(76684),each:s(35474),filter:s(35281),has:s(54842),isArray:s(21503),isEmpty:s(71973),isFunction:s(75946),isUndefined:s(34235),keys:s(118),map:s(19984),reduce:s(81337),size:s(55637),transform:s(89416),union:s(68921),values:s(90377)}}catch{}c||(c=window._),w.exports=c},75089:w=>{w.exports="2.1.8"},50623:w=>{"use strict";w.exports=function(s){return null!=s&&"object"==typeof s&&!1===Array.isArray(s)}},52872:w=>{var D=Object.prototype.toString;function s(h){return"function"==typeof h.constructor?h.constructor.name:null}w.exports=function(f){if(void 0===f)return"undefined";if(null===f)return"null";var u=typeof f;if("boolean"===u)return"boolean";if("string"===u)return"string";if("number"===u)return"number";if("symbol"===u)return"symbol";if("function"===u)return function p(h,f){return"GeneratorFunction"===s(h)}(f)?"generatorfunction":"function";if(function c(h){return Array.isArray?Array.isArray(h):h instanceof Array}(f))return"array";if(function l(h){return!(!h.constructor||"function"!=typeof h.constructor.isBuffer)&&h.constructor.isBuffer(h)}(f))return"buffer";if(function d(h){try{if("number"==typeof h.length&&"function"==typeof h.callee)return!0}catch(f){if(-1!==f.message.indexOf("callee"))return!0}return!1}(f))return"arguments";if(function _(h){return h instanceof Date||"function"==typeof h.toDateString&&"function"==typeof h.getDate&&"function"==typeof h.setDate}(f))return"date";if(function x(h){return h instanceof Error||"string"==typeof h.message&&h.constructor&&"number"==typeof h.constructor.stackTraceLimit}(f))return"error";if(function m(h){return h instanceof RegExp||"string"==typeof h.flags&&"boolean"==typeof h.ignoreCase&&"boolean"==typeof h.multiline&&"boolean"==typeof h.global}(f))return"regexp";switch(s(f)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(function t(h){return"function"==typeof h.throw&&"function"==typeof h.return&&"function"==typeof h.next}(f))return"generator";switch(u=D.call(f)){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return u.slice(8,-1).toLowerCase().replace(/\s/g,"")}},37244:(w,D,s)=>{var _=s(53436)(s(12119),"DataView");w.exports=_},54994:(w,D,s)=>{var c=s(64312),x=s(46421),_=s(15764),m=s(18685),p=s(26676);function t(d){var l=-1,h=null==d?0:d.length;for(this.clear();++l{var c=s(41840),x=s(34378),_=s(54981),m=s(67343),p=s(98895);function t(d){var l=-1,h=null==d?0:d.length;for(this.clear();++l{var _=s(53436)(s(12119),"Map");w.exports=_},99850:(w,D,s)=>{var c=s(10638),x=s(11184),_=s(70866),m=s(43771),p=s(51772);function t(d){var l=-1,h=null==d?0:d.length;for(this.clear();++l{var _=s(53436)(s(12119),"Promise");w.exports=_},46323:(w,D,s)=>{var _=s(53436)(s(12119),"Set");w.exports=_},58849:(w,D,s)=>{var c=s(99850),x=s(4600),_=s(31387);function m(p){var t=-1,d=null==p?0:p.length;for(this.__data__=new c;++t{var c=s(9215),x=s(13720),_=s(64410),m=s(45576),p=s(22247),t=s(41585);function d(l){var h=this.__data__=new c(l);this.size=h.size}d.prototype.clear=x,d.prototype.delete=_,d.prototype.get=m,d.prototype.has=p,d.prototype.set=t,w.exports=d},60443:(w,D,s)=>{var c=s(12119);w.exports=c.Symbol},73457:(w,D,s)=>{var c=s(12119);w.exports=c.Uint8Array},24243:(w,D,s)=>{var _=s(53436)(s(12119),"WeakMap");w.exports=_},26999:w=>{w.exports=function D(s,c,x){switch(x.length){case 0:return s.call(c);case 1:return s.call(c,x[0]);case 2:return s.call(c,x[0],x[1]);case 3:return s.call(c,x[0],x[1],x[2])}return s.apply(c,x)}},96837:w=>{w.exports=function D(s,c){for(var x=-1,_=null==s?0:s.length;++x<_&&!1!==c(s[x],x,s););return s}},69779:w=>{w.exports=function D(s,c){for(var x=-1,_=null==s?0:s.length,m=0,p=[];++x<_;){var t=s[x];c(t,x,s)&&(p[m++]=t)}return p}},61253:(w,D,s)=>{var c=s(14164);w.exports=function x(_,m){return!(null==_||!_.length)&&c(_,m,0)>-1}},37609:w=>{w.exports=function D(s,c,x){for(var _=-1,m=null==s?0:s.length;++_{var c=s(85334),x=s(77151),_=s(21503),m=s(80891),p=s(58442),t=s(48159),l=Object.prototype.hasOwnProperty;w.exports=function h(f,u){var g=_(f),C=!g&&x(f),L=!g&&!C&&m(f),I=!g&&!C&&!L&&t(f),B=g||C||L||I,M=B?c(f.length,String):[],R=M.length;for(var Z in f)(u||l.call(f,Z))&&(!B||!("length"==Z||L&&("offset"==Z||"parent"==Z)||I&&("buffer"==Z||"byteLength"==Z||"byteOffset"==Z)||p(Z,R)))&&M.push(Z);return M}},84633:w=>{w.exports=function D(s,c){for(var x=-1,_=null==s?0:s.length,m=Array(_);++x<_;)m[x]=c(s[x],x,s);return m}},85059:w=>{w.exports=function D(s,c){for(var x=-1,_=c.length,m=s.length;++x<_;)s[m+x]=c[x];return s}},8745:w=>{w.exports=function D(s,c,x,_){var m=-1,p=null==s?0:s.length;for(_&&p&&(x=s[++m]);++m{w.exports=function D(s,c){for(var x=-1,_=null==s?0:s.length;++x<_;)if(c(s[x],x,s))return!0;return!1}},75481:(w,D,s)=>{var x=s(11847)("length");w.exports=x},49276:(w,D,s)=>{var c=s(85683),x=s(20217);w.exports=function _(m,p,t){(void 0!==t&&!x(m[p],t)||void 0===t&&!(p in m))&&c(m,p,t)}},89719:(w,D,s)=>{var c=s(85683),x=s(20217),m=Object.prototype.hasOwnProperty;w.exports=function p(t,d,l){var h=t[d];(!m.call(t,d)||!x(h,l)||void 0===l&&!(d in t))&&c(t,d,l)}},43503:(w,D,s)=>{var c=s(20217);w.exports=function x(_,m){for(var p=_.length;p--;)if(c(_[p][0],m))return p;return-1}},94121:(w,D,s)=>{var c=s(31989),x=s(118);w.exports=function _(m,p){return m&&c(p,x(p),m)}},99287:(w,D,s)=>{var c=s(31989),x=s(16555);w.exports=function _(m,p){return m&&c(p,x(p),m)}},85683:(w,D,s)=>{var c=s(56713);w.exports=function x(_,m,p){"__proto__"==m&&c?c(_,m,{configurable:!0,enumerable:!0,value:p,writable:!0}):_[m]=p}},44462:(w,D,s)=>{var c=s(2858),x=s(96837),_=s(89719),m=s(94121),p=s(99287),t=s(19292),d=s(99454),l=s(84444),h=s(59905),f=s(47597),u=s(6967),g=s(28794),C=s(76782),L=s(37878),I=s(4264),B=s(21503),M=s(80891),R=s(13222),Z=s(25940),H=s(90799),G=s(118),tt=s(16555),W="[object Arguments]",rt="[object Function]",ut="[object Object]",Ht={};Ht[W]=Ht["[object Array]"]=Ht["[object ArrayBuffer]"]=Ht["[object DataView]"]=Ht["[object Boolean]"]=Ht["[object Date]"]=Ht["[object Float32Array]"]=Ht["[object Float64Array]"]=Ht["[object Int8Array]"]=Ht["[object Int16Array]"]=Ht["[object Int32Array]"]=Ht["[object Map]"]=Ht["[object Number]"]=Ht[ut]=Ht["[object RegExp]"]=Ht["[object Set]"]=Ht["[object String]"]=Ht["[object Symbol]"]=Ht["[object Uint8Array]"]=Ht["[object Uint8ClampedArray]"]=Ht["[object Uint16Array]"]=Ht["[object Uint32Array]"]=!0,Ht["[object Error]"]=Ht[rt]=Ht["[object WeakMap]"]=!1,w.exports=function Zt(Kt,xe,Te,Le,Oe,Ee){var Ue,Ve=1&xe,en=2&xe,be=4&xe;if(Te&&(Ue=Oe?Te(Kt,Le,Oe,Ee):Te(Kt)),void 0!==Ue)return Ue;if(!Z(Kt))return Kt;var sn=B(Kt);if(sn){if(Ue=C(Kt),!Ve)return d(Kt,Ue)}else{var Tt=g(Kt),Wt=Tt==rt||"[object GeneratorFunction]"==Tt;if(M(Kt))return t(Kt,Ve);if(Tt==ut||Tt==W||Wt&&!Oe){if(Ue=en||Wt?{}:I(Kt),!Ve)return en?h(Kt,p(Ue,Kt)):l(Kt,m(Ue,Kt))}else{if(!Ht[Tt])return Oe?Kt:{};Ue=L(Kt,Tt,Ve)}}Ee||(Ee=new c);var ce=Ee.get(Kt);if(ce)return ce;Ee.set(Kt,Ue),H(Kt)?Kt.forEach(function(Ze){Ue.add(Zt(Ze,xe,Te,Ze,Kt,Ee))}):R(Kt)&&Kt.forEach(function(Ze,ze){Ue.set(ze,Zt(Ze,xe,Te,ze,Kt,Ee))});var ee=sn?void 0:(be?en?u:f:en?tt:G)(Kt);return x(ee||Kt,function(Ze,ze){ee&&(Ze=Kt[ze=Ze]),_(Ue,ze,Zt(Ze,xe,Te,ze,Kt,Ee))}),Ue}},78858:(w,D,s)=>{var c=s(25940),x=Object.create,_=function(){function m(){}return function(p){if(!c(p))return{};if(x)return x(p);m.prototype=p;var t=new m;return m.prototype=void 0,t}}();w.exports=_},43132:(w,D,s)=>{var c=s(45184),_=s(16539)(c);w.exports=_},67308:(w,D,s)=>{var c=s(44129);w.exports=function x(_,m,p){for(var t=-1,d=_.length;++t{var c=s(43132);w.exports=function x(_,m){var p=[];return c(_,function(t,d,l){m(t,d,l)&&p.push(t)}),p}},65317:w=>{w.exports=function D(s,c,x,_){for(var m=s.length,p=x+(_?1:-1);_?p--:++p{var c=s(85059),x=s(75039);w.exports=function _(m,p,t,d,l){var h=-1,f=m.length;for(t||(t=x),l||(l=[]);++h0&&t(u)?p>1?_(u,p-1,t,d,l):c(l,u):d||(l[l.length]=u)}return l}},30755:(w,D,s)=>{var x=s(40456)();w.exports=x},45184:(w,D,s)=>{var c=s(30755),x=s(118);w.exports=function _(m,p){return m&&c(m,p,x)}},15456:(w,D,s)=>{var c=s(65456),x=s(68533);w.exports=function _(m,p){for(var t=0,d=(p=c(p,m)).length;null!=m&&t{var c=s(85059),x=s(21503);w.exports=function _(m,p,t){var d=p(m);return x(m)?d:c(d,t(m))}},93337:(w,D,s)=>{var c=s(60443),x=s(21318),_=s(92902),t=c?c.toStringTag:void 0;w.exports=function d(l){return null==l?void 0===l?"[object Undefined]":"[object Null]":t&&t in Object(l)?x(l):_(l)}},31100:w=>{w.exports=function D(s,c){return s>c}},84781:w=>{var s=Object.prototype.hasOwnProperty;w.exports=function c(x,_){return null!=x&&s.call(x,_)}},69989:w=>{w.exports=function D(s,c){return null!=s&&c in Object(s)}},14164:(w,D,s)=>{var c=s(65317),x=s(70968),_=s(24977);w.exports=function m(p,t,d){return t==t?_(p,t,d):c(p,x,d)}},60186:(w,D,s)=>{var c=s(93337),x=s(72671);w.exports=function m(p){return x(p)&&"[object Arguments]"==c(p)}},85740:(w,D,s)=>{var c=s(58325),x=s(72671);w.exports=function _(m,p,t,d,l){return m===p||(null==m||null==p||!x(m)&&!x(p)?m!=m&&p!=p:c(m,p,t,d,_,l))}},58325:(w,D,s)=>{var c=s(2858),x=s(63914),_=s(78583),m=s(32286),p=s(28794),t=s(21503),d=s(80891),l=s(48159),f="[object Arguments]",u="[object Array]",g="[object Object]",L=Object.prototype.hasOwnProperty;w.exports=function I(B,M,R,Z,H,G){var tt=t(B),K=t(M),st=tt?u:p(B),j=K?u:p(M),W=(st=st==f?g:st)==g,et=(j=j==f?g:j)==g,at=st==j;if(at&&d(B)){if(!d(M))return!1;tt=!0,W=!1}if(at&&!W)return G||(G=new c),tt||l(B)?x(B,M,R,Z,H,G):_(B,M,st,R,Z,H,G);if(!(1&R)){var Y=W&&L.call(B,"__wrapped__"),nt=et&&L.call(M,"__wrapped__");if(Y||nt){var rt=Y?B.value():B,q=nt?M.value():M;return G||(G=new c),H(rt,q,R,Z,G)}}return!!at&&(G||(G=new c),m(B,M,R,Z,H,G))}},97021:(w,D,s)=>{var c=s(28794),x=s(72671);w.exports=function m(p){return x(p)&&"[object Map]"==c(p)}},40431:(w,D,s)=>{var c=s(2858),x=s(85740);w.exports=function p(t,d,l,h){var f=l.length,u=f,g=!h;if(null==t)return!u;for(t=Object(t);f--;){var C=l[f];if(g&&C[2]?C[1]!==t[C[0]]:!(C[0]in t))return!1}for(;++f{w.exports=function D(s){return s!=s}},37304:(w,D,s)=>{var c=s(75946),x=s(91943),_=s(25940),m=s(52827),t=/^\[object .+?Constructor\]$/,u=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");w.exports=function g(C){return!(!_(C)||x(C))&&(c(C)?u:t).test(m(C))}},771:(w,D,s)=>{var c=s(28794),x=s(72671);w.exports=function m(p){return x(p)&&"[object Set]"==c(p)}},1083:(w,D,s)=>{var c=s(93337),x=s(96231),_=s(72671),at={};at["[object Float32Array]"]=at["[object Float64Array]"]=at["[object Int8Array]"]=at["[object Int16Array]"]=at["[object Int32Array]"]=at["[object Uint8Array]"]=at["[object Uint8ClampedArray]"]=at["[object Uint16Array]"]=at["[object Uint32Array]"]=!0,at["[object Arguments]"]=at["[object Array]"]=at["[object ArrayBuffer]"]=at["[object Boolean]"]=at["[object DataView]"]=at["[object Date]"]=at["[object Error]"]=at["[object Function]"]=at["[object Map]"]=at["[object Number]"]=at["[object Object]"]=at["[object RegExp]"]=at["[object Set]"]=at["[object String]"]=at["[object WeakMap]"]=!1,w.exports=function Y(nt){return _(nt)&&x(nt.length)&&!!at[c(nt)]}},96517:(w,D,s)=>{var c=s(98133),x=s(9458),_=s(32608),m=s(21503),p=s(87495);w.exports=function t(d){return"function"==typeof d?d:null==d?_:"object"==typeof d?m(d)?x(d[0],d[1]):c(d):p(d)}},81172:(w,D,s)=>{var c=s(45488),x=s(85491),m=Object.prototype.hasOwnProperty;w.exports=function p(t){if(!c(t))return x(t);var d=[];for(var l in Object(t))m.call(t,l)&&"constructor"!=l&&d.push(l);return d}},92809:(w,D,s)=>{var c=s(25940),x=s(45488),_=s(32158),p=Object.prototype.hasOwnProperty;w.exports=function t(d){if(!c(d))return _(d);var l=x(d),h=[];for(var f in d)"constructor"==f&&(l||!p.call(d,f))||h.push(f);return h}},99069:w=>{w.exports=function D(s,c){return s{var c=s(43132),x=s(56507);w.exports=function _(m,p){var t=-1,d=x(m)?Array(m.length):[];return c(m,function(l,h,f){d[++t]=p(l,h,f)}),d}},98133:(w,D,s)=>{var c=s(40431),x=s(22379),_=s(642);w.exports=function m(p){var t=x(p);return 1==t.length&&t[0][2]?_(t[0][0],t[0][1]):function(d){return d===p||c(d,p,t)}}},9458:(w,D,s)=>{var c=s(85740),x=s(8817),_=s(11172),m=s(45352),p=s(22442),t=s(642),d=s(68533);w.exports=function f(u,g){return m(u)&&p(g)?t(d(u),g):function(C){var L=x(C,u);return void 0===L&&L===g?_(C,u):c(g,L,3)}}},73842:(w,D,s)=>{var c=s(2858),x=s(49276),_=s(30755),m=s(33675),p=s(25940),t=s(16555),d=s(99351);w.exports=function l(h,f,u,g,C){h!==f&&_(f,function(L,I){if(C||(C=new c),p(L))m(h,f,I,u,l,g,C);else{var B=g?g(d(h,I),L,I+"",h,f,C):void 0;void 0===B&&(B=L),x(h,I,B)}},t)}},33675:(w,D,s)=>{var c=s(49276),x=s(19292),_=s(65208),m=s(99454),p=s(4264),t=s(77151),d=s(21503),l=s(92377),h=s(80891),f=s(75946),u=s(25940),g=s(97614),C=s(48159),L=s(99351),I=s(8067);w.exports=function B(M,R,Z,H,G,tt,K){var st=L(M,Z),j=L(R,Z),W=K.get(j);if(W)c(M,Z,W);else{var et=tt?tt(st,j,Z+"",M,R,K):void 0,at=void 0===et;if(at){var Y=d(j),nt=!Y&&h(j),rt=!Y&&!nt&&C(j);et=j,Y||nt||rt?d(st)?et=st:l(st)?et=m(st):nt?(at=!1,et=x(j,!0)):rt?(at=!1,et=_(j,!0)):et=[]:g(j)||t(j)?(et=st,t(st)?et=I(st):(!u(st)||f(st))&&(et=p(j))):at=!1}at&&(K.set(j,et),G(et,j,H,tt,K),K.delete(j)),c(M,Z,et)}}},6119:(w,D,s)=>{var c=s(84633),x=s(15456),_=s(96517),m=s(92046),p=s(42061),t=s(85647),d=s(41215),l=s(32608),h=s(21503);w.exports=function f(u,g,C){g=g.length?c(g,function(B){return h(B)?function(M){return x(M,1===B.length?B[0]:B)}:B}):[l];var L=-1;g=c(g,t(_));var I=m(u,function(B,M,R){return{criteria:c(g,function(H){return H(B)}),index:++L,value:B}});return p(I,function(B,M){return d(B,M,C)})}},83021:(w,D,s)=>{var c=s(95495),x=s(11172);w.exports=function _(m,p){return c(m,p,function(t,d){return x(m,d)})}},95495:(w,D,s)=>{var c=s(15456),x=s(55963),_=s(65456);w.exports=function m(p,t,d){for(var l=-1,h=t.length,f={};++l{w.exports=function D(s){return function(c){return c?.[s]}}},39222:(w,D,s)=>{var c=s(15456);w.exports=function x(_){return function(m){return c(m,_)}}},16307:w=>{var D=Math.ceil,s=Math.max;w.exports=function c(x,_,m,p){for(var t=-1,d=s(D((_-x)/(m||1)),0),l=Array(d);d--;)l[p?d:++t]=x,x+=m;return l}},13570:w=>{w.exports=function D(s,c,x,_,m){return m(s,function(p,t,d){x=_?(_=!1,p):c(x,p,t,d)}),x}},23269:(w,D,s)=>{var c=s(32608),x=s(53983),_=s(72185);w.exports=function m(p,t){return _(x(p,t,c),p+"")}},55963:(w,D,s)=>{var c=s(89719),x=s(65456),_=s(58442),m=s(25940),p=s(68533);w.exports=function t(d,l,h,f){if(!m(d))return d;for(var u=-1,g=(l=x(l,d)).length,C=g-1,L=d;null!=L&&++u{var c=s(76684),x=s(56713),_=s(32608);w.exports=x?function(p,t){return x(p,"toString",{configurable:!0,enumerable:!1,value:c(t),writable:!0})}:_},42061:w=>{w.exports=function D(s,c){var x=s.length;for(s.sort(c);x--;)s[x]=s[x].value;return s}},85334:w=>{w.exports=function D(s,c){for(var x=-1,_=Array(s);++x{var c=s(60443),x=s(84633),_=s(21503),m=s(44129),t=c?c.prototype:void 0,d=t?t.toString:void 0;w.exports=function l(h){if("string"==typeof h)return h;if(_(h))return x(h,l)+"";if(m(h))return d?d.call(h):"";var f=h+"";return"0"==f&&1/h==-1/0?"-0":f}},83348:(w,D,s)=>{var c=s(42760),x=/^\s+/;w.exports=function _(m){return m&&m.slice(0,c(m)+1).replace(x,"")}},85647:w=>{w.exports=function D(s){return function(c){return s(c)}}},80707:(w,D,s)=>{var c=s(58849),x=s(61253),_=s(37609),m=s(25972),p=s(14575),t=s(24174);w.exports=function l(h,f,u){var g=-1,C=x,L=h.length,I=!0,B=[],M=B;if(u)I=!1,C=_;else if(L>=200){var R=f?null:p(h);if(R)return t(R);I=!1,C=m,M=new c}else M=f?[]:B;t:for(;++g{var c=s(84633);w.exports=function x(_,m){return c(m,function(p){return _[p]})}},38645:w=>{w.exports=function D(s,c,x){for(var _=-1,m=s.length,p=c.length,t={};++_{w.exports=function D(s,c){return s.has(c)}},21481:(w,D,s)=>{var c=s(32608);w.exports=function x(_){return"function"==typeof _?_:c}},65456:(w,D,s)=>{var c=s(21503),x=s(45352),_=s(32855),m=s(73943);w.exports=function p(t,d){return c(t)?t:x(t,d)?[t]:_(m(t))}},43362:(w,D,s)=>{var c=s(73457);w.exports=function x(_){var m=new _.constructor(_.byteLength);return new c(m).set(new c(_)),m}},19292:(w,D,s)=>{w=s.nmd(w);var c=s(12119),x=D&&!D.nodeType&&D,_=x&&w&&!w.nodeType&&w,p=_&&_.exports===x?c.Buffer:void 0,t=p?p.allocUnsafe:void 0;w.exports=function d(l,h){if(h)return l.slice();var f=l.length,u=t?t(f):new l.constructor(f);return l.copy(u),u}},17e3:(w,D,s)=>{var c=s(43362);w.exports=function x(_,m){var p=m?c(_.buffer):_.buffer;return new _.constructor(p,_.byteOffset,_.byteLength)}},74098:w=>{var D=/\w*$/;w.exports=function s(c){var x=new c.constructor(c.source,D.exec(c));return x.lastIndex=c.lastIndex,x}},62533:(w,D,s)=>{var c=s(60443),x=c?c.prototype:void 0,_=x?x.valueOf:void 0;w.exports=function m(p){return _?Object(_.call(p)):{}}},65208:(w,D,s)=>{var c=s(43362);w.exports=function x(_,m){var p=m?c(_.buffer):_.buffer;return new _.constructor(p,_.byteOffset,_.length)}},13443:(w,D,s)=>{var c=s(44129);w.exports=function x(_,m){if(_!==m){var p=void 0!==_,t=null===_,d=_==_,l=c(_),h=void 0!==m,f=null===m,u=m==m,g=c(m);if(!f&&!g&&!l&&_>m||l&&h&&u&&!f&&!g||t&&h&&u||!p&&u||!d)return 1;if(!t&&!l&&!g&&_{var c=s(13443);w.exports=function x(_,m,p){for(var t=-1,d=_.criteria,l=m.criteria,h=d.length,f=p.length;++t=f?u:u*("desc"==p[t]?-1:1)}return _.index-m.index}},99454:w=>{w.exports=function D(s,c){var x=-1,_=s.length;for(c||(c=Array(_));++x<_;)c[x]=s[x];return c}},31989:(w,D,s)=>{var c=s(89719),x=s(85683);w.exports=function _(m,p,t,d){var l=!t;t||(t={});for(var h=-1,f=p.length;++h{var c=s(31989),x=s(39383);w.exports=function _(m,p){return c(m,x(m),p)}},59905:(w,D,s)=>{var c=s(31989),x=s(53051);w.exports=function _(m,p){return c(m,x(m),p)}},24610:(w,D,s)=>{var c=s(12119);w.exports=c["__core-js_shared__"]},84944:(w,D,s)=>{var c=s(23269),x=s(93342);w.exports=function _(m){return c(function(p,t){var d=-1,l=t.length,h=l>1?t[l-1]:void 0,f=l>2?t[2]:void 0;for(h=m.length>3&&"function"==typeof h?(l--,h):void 0,f&&x(t[0],t[1],f)&&(h=l<3?void 0:h,l=1),p=Object(p);++d{var c=s(56507);w.exports=function x(_,m){return function(p,t){if(null==p)return p;if(!c(p))return _(p,t);for(var d=p.length,l=m?d:-1,h=Object(p);(m?l--:++l{w.exports=function D(s){return function(c,x,_){for(var m=-1,p=Object(c),t=_(c),d=t.length;d--;){var l=t[s?d:++m];if(!1===x(p[l],l,p))break}return c}}},24653:(w,D,s)=>{var c=s(96517),x=s(56507),_=s(118);w.exports=function m(p){return function(t,d,l){var h=Object(t);if(!x(t)){var f=c(d,3);t=_(t),d=function(g){return f(h[g],g,h)}}var u=p(t,d,l);return u>-1?h[f?t[u]:u]:void 0}}},97509:(w,D,s)=>{var c=s(16307),x=s(93342),_=s(12232);w.exports=function m(p){return function(t,d,l){return l&&"number"!=typeof l&&x(t,d,l)&&(d=l=void 0),t=_(t),void 0===d?(d=t,t=0):d=_(d),l=void 0===l?t{var c=s(46323),x=s(12552),_=s(24174),p=c&&1/_(new c([,-0]))[1]==1/0?function(t){return new c(t)}:x;w.exports=p},56713:(w,D,s)=>{var c=s(53436),x=function(){try{var _=c(Object,"defineProperty");return _({},"",{}),_}catch{}}();w.exports=x},63914:(w,D,s)=>{var c=s(58849),x=s(79503),_=s(25972);w.exports=function t(d,l,h,f,u,g){var C=1&h,L=d.length,I=l.length;if(L!=I&&!(C&&I>L))return!1;var B=g.get(d),M=g.get(l);if(B&&M)return B==l&&M==d;var R=-1,Z=!0,H=2&h?new c:void 0;for(g.set(d,l),g.set(l,d);++R{var c=s(60443),x=s(73457),_=s(20217),m=s(63914),p=s(83205),t=s(24174),H=c?c.prototype:void 0,G=H?H.valueOf:void 0;w.exports=function tt(K,st,j,W,et,at,Y){switch(j){case"[object DataView]":if(K.byteLength!=st.byteLength||K.byteOffset!=st.byteOffset)return!1;K=K.buffer,st=st.buffer;case"[object ArrayBuffer]":return!(K.byteLength!=st.byteLength||!at(new x(K),new x(st)));case"[object Boolean]":case"[object Date]":case"[object Number]":return _(+K,+st);case"[object Error]":return K.name==st.name&&K.message==st.message;case"[object RegExp]":case"[object String]":return K==st+"";case"[object Map]":var nt=p;case"[object Set]":if(nt||(nt=t),K.size!=st.size&&!(1&W))return!1;var q=Y.get(K);if(q)return q==st;W|=2,Y.set(K,st);var F=m(nt(K),nt(st),W,et,at,Y);return Y.delete(K),F;case"[object Symbol]":if(G)return G.call(K)==G.call(st)}return!1}},32286:(w,D,s)=>{var c=s(47597),m=Object.prototype.hasOwnProperty;w.exports=function p(t,d,l,h,f,u){var g=1&l,C=c(t),L=C.length;if(L!=c(d).length&&!g)return!1;for(var M=L;M--;){var R=C[M];if(!(g?R in d:m.call(d,R)))return!1}var Z=u.get(t),H=u.get(d);if(Z&&H)return Z==d&&H==t;var G=!0;u.set(t,d),u.set(d,t);for(var tt=g;++M{var c=s(22274),x=s(53983),_=s(72185);w.exports=function m(p){return _(x(p,void 0,c),p+"")}},79122:w=>{var D="object"==typeof global&&global&&global.Object===Object&&global;w.exports=D},47597:(w,D,s)=>{var c=s(38247),x=s(39383),_=s(118);w.exports=function m(p){return c(p,_,x)}},6967:(w,D,s)=>{var c=s(38247),x=s(53051),_=s(16555);w.exports=function m(p){return c(p,_,x)}},54537:(w,D,s)=>{var c=s(23819);w.exports=function x(_,m){var p=_.__data__;return c(m)?p["string"==typeof m?"string":"hash"]:p.map}},22379:(w,D,s)=>{var c=s(22442),x=s(118);w.exports=function _(m){for(var p=x(m),t=p.length;t--;){var d=p[t],l=m[d];p[t]=[d,l,c(l)]}return p}},53436:(w,D,s)=>{var c=s(37304),x=s(51990);w.exports=function _(m,p){var t=x(m,p);return c(t)?t:void 0}},29519:(w,D,s)=>{var x=s(69385)(Object.getPrototypeOf,Object);w.exports=x},21318:(w,D,s)=>{var c=s(60443),x=Object.prototype,_=x.hasOwnProperty,m=x.toString,p=c?c.toStringTag:void 0;w.exports=function t(d){var l=_.call(d,p),h=d[p];try{d[p]=void 0;var f=!0}catch{}var u=m.call(d);return f&&(l?d[p]=h:delete d[p]),u}},39383:(w,D,s)=>{var c=s(69779),x=s(49975),m=Object.prototype.propertyIsEnumerable,p=Object.getOwnPropertySymbols;w.exports=p?function(d){return null==d?[]:(d=Object(d),c(p(d),function(l){return m.call(d,l)}))}:x},53051:(w,D,s)=>{var c=s(85059),x=s(29519),_=s(39383),m=s(49975);w.exports=Object.getOwnPropertySymbols?function(d){for(var l=[];d;)c(l,_(d)),d=x(d);return l}:m},28794:(w,D,s)=>{var c=s(37244),x=s(51501),_=s(44267),m=s(46323),p=s(24243),t=s(93337),d=s(52827),l="[object Map]",f="[object Promise]",u="[object Set]",g="[object WeakMap]",C="[object DataView]",L=d(c),I=d(x),B=d(_),M=d(m),R=d(p),Z=t;(c&&Z(new c(new ArrayBuffer(1)))!=C||x&&Z(new x)!=l||_&&Z(_.resolve())!=f||m&&Z(new m)!=u||p&&Z(new p)!=g)&&(Z=function(H){var G=t(H),tt="[object Object]"==G?H.constructor:void 0,K=tt?d(tt):"";if(K)switch(K){case L:return C;case I:return l;case B:return f;case M:return u;case R:return g}return G}),w.exports=Z},51990:w=>{w.exports=function D(s,c){return s?.[c]}},47283:(w,D,s)=>{var c=s(65456),x=s(77151),_=s(21503),m=s(58442),p=s(96231),t=s(68533);w.exports=function d(l,h,f){for(var u=-1,g=(h=c(h,l)).length,C=!1;++u{var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");w.exports=function d(l){return t.test(l)}},64312:(w,D,s)=>{var c=s(60862);w.exports=function x(){this.__data__=c?c(null):{},this.size=0}},46421:w=>{w.exports=function D(s){var c=this.has(s)&&delete this.__data__[s];return this.size-=c?1:0,c}},15764:(w,D,s)=>{var c=s(60862),m=Object.prototype.hasOwnProperty;w.exports=function p(t){var d=this.__data__;if(c){var l=d[t];return"__lodash_hash_undefined__"===l?void 0:l}return m.call(d,t)?d[t]:void 0}},18685:(w,D,s)=>{var c=s(60862),_=Object.prototype.hasOwnProperty;w.exports=function m(p){var t=this.__data__;return c?void 0!==t[p]:_.call(t,p)}},26676:(w,D,s)=>{var c=s(60862);w.exports=function _(m,p){var t=this.__data__;return this.size+=this.has(m)?0:1,t[m]=c&&void 0===p?"__lodash_hash_undefined__":p,this}},76782:w=>{var s=Object.prototype.hasOwnProperty;w.exports=function c(x){var _=x.length,m=new x.constructor(_);return _&&"string"==typeof x[0]&&s.call(x,"index")&&(m.index=x.index,m.input=x.input),m}},37878:(w,D,s)=>{var c=s(43362),x=s(17e3),_=s(74098),m=s(62533),p=s(65208);w.exports=function j(W,et,at){var Y=W.constructor;switch(et){case"[object ArrayBuffer]":return c(W);case"[object Boolean]":case"[object Date]":return new Y(+W);case"[object DataView]":return x(W,at);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return p(W,at);case"[object Map]":case"[object Set]":return new Y;case"[object Number]":case"[object String]":return new Y(W);case"[object RegExp]":return _(W);case"[object Symbol]":return m(W)}}},4264:(w,D,s)=>{var c=s(78858),x=s(29519),_=s(45488);w.exports=function m(p){return"function"!=typeof p.constructor||_(p)?{}:c(x(p))}},75039:(w,D,s)=>{var c=s(60443),x=s(77151),_=s(21503),m=c?c.isConcatSpreadable:void 0;w.exports=function p(t){return _(t)||x(t)||!!(m&&t&&t[m])}},58442:w=>{var s=/^(?:0|[1-9]\d*)$/;w.exports=function c(x,_){var m=typeof x;return!!(_=_??9007199254740991)&&("number"==m||"symbol"!=m&&s.test(x))&&x>-1&&x%1==0&&x<_}},93342:(w,D,s)=>{var c=s(20217),x=s(56507),_=s(58442),m=s(25940);w.exports=function p(t,d,l){if(!m(l))return!1;var h=typeof d;return!!("number"==h?x(l)&&_(d,l.length):"string"==h&&d in l)&&c(l[d],t)}},45352:(w,D,s)=>{var c=s(21503),x=s(44129),_=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,m=/^\w*$/;w.exports=function p(t,d){if(c(t))return!1;var l=typeof t;return!("number"!=l&&"symbol"!=l&&"boolean"!=l&&null!=t&&!x(t))||m.test(t)||!_.test(t)||null!=d&&t in Object(d)}},23819:w=>{w.exports=function D(s){var c=typeof s;return"string"==c||"number"==c||"symbol"==c||"boolean"==c?"__proto__"!==s:null===s}},91943:(w,D,s)=>{var m,c=s(24610),x=(m=/[^.]+$/.exec(c&&c.keys&&c.keys.IE_PROTO||""))?"Symbol(src)_1."+m:"";w.exports=function _(m){return!!x&&x in m}},45488:w=>{var D=Object.prototype;w.exports=function s(c){var x=c&&c.constructor;return c===("function"==typeof x&&x.prototype||D)}},22442:(w,D,s)=>{var c=s(25940);w.exports=function x(_){return _==_&&!c(_)}},41840:w=>{w.exports=function D(){this.__data__=[],this.size=0}},34378:(w,D,s)=>{var c=s(43503),_=Array.prototype.splice;w.exports=function m(p){var t=this.__data__,d=c(t,p);return!(d<0||(d==t.length-1?t.pop():_.call(t,d,1),--this.size,0))}},54981:(w,D,s)=>{var c=s(43503);w.exports=function x(_){var m=this.__data__,p=c(m,_);return p<0?void 0:m[p][1]}},67343:(w,D,s)=>{var c=s(43503);w.exports=function x(_){return c(this.__data__,_)>-1}},98895:(w,D,s)=>{var c=s(43503);w.exports=function x(_,m){var p=this.__data__,t=c(p,_);return t<0?(++this.size,p.push([_,m])):p[t][1]=m,this}},10638:(w,D,s)=>{var c=s(54994),x=s(9215),_=s(51501);w.exports=function m(){this.size=0,this.__data__={hash:new c,map:new(_||x),string:new c}}},11184:(w,D,s)=>{var c=s(54537);w.exports=function x(_){var m=c(this,_).delete(_);return this.size-=m?1:0,m}},70866:(w,D,s)=>{var c=s(54537);w.exports=function x(_){return c(this,_).get(_)}},43771:(w,D,s)=>{var c=s(54537);w.exports=function x(_){return c(this,_).has(_)}},51772:(w,D,s)=>{var c=s(54537);w.exports=function x(_,m){var p=c(this,_),t=p.size;return p.set(_,m),this.size+=p.size==t?0:1,this}},83205:w=>{w.exports=function D(s){var c=-1,x=Array(s.size);return s.forEach(function(_,m){x[++c]=[m,_]}),x}},642:w=>{w.exports=function D(s,c){return function(x){return null!=x&&x[s]===c&&(void 0!==c||s in Object(x))}}},15144:(w,D,s)=>{var c=s(30535);w.exports=function _(m){var p=c(m,function(d){return 500===t.size&&t.clear(),d}),t=p.cache;return p}},60862:(w,D,s)=>{var x=s(53436)(Object,"create");w.exports=x},85491:(w,D,s)=>{var x=s(69385)(Object.keys,Object);w.exports=x},32158:w=>{w.exports=function D(s){var c=[];if(null!=s)for(var x in Object(s))c.push(x);return c}},73597:(w,D,s)=>{w=s.nmd(w);var c=s(79122),x=D&&!D.nodeType&&D,_=x&&w&&!w.nodeType&&w,p=_&&_.exports===x&&c.process,t=function(){try{return _&&_.require&&_.require("util").types||p&&p.binding&&p.binding("util")}catch{}}();w.exports=t},92902:w=>{var s=Object.prototype.toString;w.exports=function c(x){return s.call(x)}},69385:w=>{w.exports=function D(s,c){return function(x){return s(c(x))}}},53983:(w,D,s)=>{var c=s(26999),x=Math.max;w.exports=function _(m,p,t){return p=x(void 0===p?m.length-1:p,0),function(){for(var d=arguments,l=-1,h=x(d.length-p,0),f=Array(h);++l{var c=s(79122),x="object"==typeof self&&self&&self.Object===Object&&self,_=c||x||Function("return this")();w.exports=_},99351:w=>{w.exports=function D(s,c){if(("constructor"!==c||"function"!=typeof s[c])&&"__proto__"!=c)return s[c]}},4600:w=>{w.exports=function s(c){return this.__data__.set(c,"__lodash_hash_undefined__"),this}},31387:w=>{w.exports=function D(s){return this.__data__.has(s)}},24174:w=>{w.exports=function D(s){var c=-1,x=Array(s.size);return s.forEach(function(_){x[++c]=_}),x}},72185:(w,D,s)=>{var c=s(69510),_=s(10029)(c);w.exports=_},10029:w=>{var c=Date.now;w.exports=function x(_){var m=0,p=0;return function(){var t=c(),d=16-(t-p);if(p=t,d>0){if(++m>=800)return arguments[0]}else m=0;return _.apply(void 0,arguments)}}},13720:(w,D,s)=>{var c=s(9215);w.exports=function x(){this.__data__=new c,this.size=0}},64410:w=>{w.exports=function D(s){var c=this.__data__,x=c.delete(s);return this.size=c.size,x}},45576:w=>{w.exports=function D(s){return this.__data__.get(s)}},22247:w=>{w.exports=function D(s){return this.__data__.has(s)}},41585:(w,D,s)=>{var c=s(9215),x=s(51501),_=s(99850);w.exports=function p(t,d){var l=this.__data__;if(l instanceof c){var h=l.__data__;if(!x||h.length<199)return h.push([t,d]),this.size=++l.size,this;l=this.__data__=new _(h)}return l.set(t,d),this.size=l.size,this}},24977:w=>{w.exports=function D(s,c,x){for(var _=x-1,m=s.length;++_{var c=s(75481),x=s(77609),_=s(81149);w.exports=function m(p){return x(p)?_(p):c(p)}},32855:(w,D,s)=>{var c=s(15144),x=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_=/\\(\\)?/g,m=c(function(p){var t=[];return 46===p.charCodeAt(0)&&t.push(""),p.replace(x,function(d,l,h,f){t.push(h?f.replace(_,"$1"):l||d)}),t});w.exports=m},68533:(w,D,s)=>{var c=s(44129);w.exports=function _(m){if("string"==typeof m||c(m))return m;var p=m+"";return"0"==p&&1/m==-1/0?"-0":p}},52827:w=>{var s=Function.prototype.toString;w.exports=function c(x){if(null!=x){try{return s.call(x)}catch{}try{return x+""}catch{}}return""}},42760:w=>{var D=/\s/;w.exports=function s(c){for(var x=c.length;x--&&D.test(c.charAt(x)););return x}},81149:w=>{var D="\\ud800-\\udfff",p="["+D+"]",t="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",d="\\ud83c[\\udffb-\\udfff]",h="[^"+D+"]",f="(?:\\ud83c[\\udde6-\\uddff]){2}",u="[\\ud800-\\udbff][\\udc00-\\udfff]",C="(?:"+t+"|"+d+")?",L="[\\ufe0e\\ufe0f]?",B=L+C+"(?:\\u200d(?:"+[h,f,u].join("|")+")"+L+C+")*",M="(?:"+[h+t+"?",t,f,u,p].join("|")+")",R=RegExp(d+"(?="+d+")|"+M+B,"g");w.exports=function Z(H){for(var G=R.lastIndex=0;R.test(H);)++G;return G}},11094:(w,D,s)=>{var c=s(44462);w.exports=function _(m){return c(m,4)}},90733:(w,D,s)=>{var c=s(44462);w.exports=function m(p){return c(p,5)}},76684:w=>{w.exports=function D(s){return function(){return s}}},28800:(w,D,s)=>{var c=s(23269),x=s(20217),_=s(93342),m=s(16555),p=Object.prototype,t=p.hasOwnProperty,d=c(function(l,h){l=Object(l);var f=-1,u=h.length,g=u>2?h[2]:void 0;for(g&&_(h[0],h[1],g)&&(u=1);++f{w.exports=s(89851)},20217:w=>{w.exports=function D(s,c){return s===c||s!=s&&c!=c}},35281:(w,D,s)=>{var c=s(69779),x=s(33609),_=s(96517),m=s(21503);w.exports=function p(t,d){return(m(t)?c:x)(t,_(d,3))}},62516:(w,D,s)=>{var _=s(24653)(s(36397));w.exports=_},36397:(w,D,s)=>{var c=s(65317),x=s(96517),_=s(44401),m=Math.max;w.exports=function p(t,d,l){var h=null==t?0:t.length;if(!h)return-1;var f=null==l?0:_(l);return f<0&&(f=m(h+f,0)),c(t,x(d,3),f)}},22274:(w,D,s)=>{var c=s(50686);w.exports=function x(_){return null!=_&&_.length?c(_,1):[]}},89851:(w,D,s)=>{var c=s(96837),x=s(43132),_=s(21481),m=s(21503);w.exports=function p(t,d){return(m(t)?c:x)(t,_(d))}},41176:(w,D,s)=>{var c=s(30755),x=s(21481),_=s(16555);w.exports=function m(p,t){return null==p?p:c(p,x(t),_)}},8817:(w,D,s)=>{var c=s(15456);w.exports=function x(_,m,p){var t=null==_?void 0:c(_,m);return void 0===t?p:t}},54842:(w,D,s)=>{var c=s(84781),x=s(47283);w.exports=function _(m,p){return null!=m&&x(m,p,c)}},11172:(w,D,s)=>{var c=s(69989),x=s(47283);w.exports=function _(m,p){return null!=m&&x(m,p,c)}},32608:w=>{w.exports=function D(s){return s}},77151:(w,D,s)=>{var c=s(60186),x=s(72671),_=Object.prototype,m=_.hasOwnProperty,p=_.propertyIsEnumerable,t=c(function(){return arguments}())?c:function(d){return x(d)&&m.call(d,"callee")&&!p.call(d,"callee")};w.exports=t},21503:w=>{w.exports=Array.isArray},56507:(w,D,s)=>{var c=s(75946),x=s(96231);w.exports=function _(m){return null!=m&&x(m.length)&&!c(m)}},92377:(w,D,s)=>{var c=s(56507),x=s(72671);w.exports=function _(m){return x(m)&&c(m)}},80891:(w,D,s)=>{w=s.nmd(w);var c=s(12119),x=s(63580),_=D&&!D.nodeType&&D,m=_&&w&&!w.nodeType&&w,t=m&&m.exports===_?c.Buffer:void 0;w.exports=(t?t.isBuffer:void 0)||x},71973:(w,D,s)=>{var c=s(81172),x=s(28794),_=s(77151),m=s(21503),p=s(56507),t=s(80891),d=s(45488),l=s(48159),g=Object.prototype.hasOwnProperty;w.exports=function C(L){if(null==L)return!0;if(p(L)&&(m(L)||"string"==typeof L||"function"==typeof L.splice||t(L)||l(L)||_(L)))return!L.length;var I=x(L);if("[object Map]"==I||"[object Set]"==I)return!L.size;if(d(L))return!c(L).length;for(var B in L)if(g.call(L,B))return!1;return!0}},75946:(w,D,s)=>{var c=s(93337),x=s(25940);w.exports=function d(l){if(!x(l))return!1;var h=c(l);return"[object Function]"==h||"[object GeneratorFunction]"==h||"[object AsyncFunction]"==h||"[object Proxy]"==h}},96231:w=>{w.exports=function s(c){return"number"==typeof c&&c>-1&&c%1==0&&c<=9007199254740991}},13222:(w,D,s)=>{var c=s(97021),x=s(85647),_=s(73597),m=_&&_.isMap,p=m?x(m):c;w.exports=p},25940:w=>{w.exports=function D(s){var c=typeof s;return null!=s&&("object"==c||"function"==c)}},72671:w=>{w.exports=function D(s){return null!=s&&"object"==typeof s}},97614:(w,D,s)=>{var c=s(93337),x=s(29519),_=s(72671),d=Function.prototype.toString,l=Object.prototype.hasOwnProperty,h=d.call(Object);w.exports=function f(u){if(!_(u)||"[object Object]"!=c(u))return!1;var g=x(u);if(null===g)return!0;var C=l.call(g,"constructor")&&g.constructor;return"function"==typeof C&&C instanceof C&&d.call(C)==h}},90799:(w,D,s)=>{var c=s(771),x=s(85647),_=s(73597),m=_&&_.isSet,p=m?x(m):c;w.exports=p},30248:(w,D,s)=>{var c=s(93337),x=s(21503),_=s(72671);w.exports=function p(t){return"string"==typeof t||!x(t)&&_(t)&&"[object String]"==c(t)}},44129:(w,D,s)=>{var c=s(93337),x=s(72671);w.exports=function m(p){return"symbol"==typeof p||x(p)&&"[object Symbol]"==c(p)}},48159:(w,D,s)=>{var c=s(1083),x=s(85647),_=s(73597),m=_&&_.isTypedArray,p=m?x(m):c;w.exports=p},34235:w=>{w.exports=function D(s){return void 0===s}},118:(w,D,s)=>{var c=s(72271),x=s(81172),_=s(56507);w.exports=function m(p){return _(p)?c(p):x(p)}},16555:(w,D,s)=>{var c=s(72271),x=s(92809),_=s(56507);w.exports=function m(p){return _(p)?c(p,!0):x(p)}},25809:w=>{w.exports=function D(s){var c=null==s?0:s.length;return c?s[c-1]:void 0}},19984:(w,D,s)=>{var c=s(84633),x=s(96517),_=s(92046),m=s(21503);w.exports=function p(t,d){return(m(t)?c:_)(t,x(d,3))}},10203:(w,D,s)=>{var c=s(85683),x=s(45184),_=s(96517);w.exports=function m(p,t){var d={};return t=_(t,3),x(p,function(l,h,f){c(d,h,t(l,h,f))}),d}},18176:(w,D,s)=>{var c=s(67308),x=s(31100),_=s(32608);w.exports=function m(p){return p&&p.length?c(p,_,x):void 0}},30535:(w,D,s)=>{var c=s(99850);function _(m,p){if("function"!=typeof m||null!=p&&"function"!=typeof p)throw new TypeError("Expected a function");var t=function(){var d=arguments,l=p?p.apply(this,d):d[0],h=t.cache;if(h.has(l))return h.get(l);var f=m.apply(this,d);return t.cache=h.set(l,f)||h,f};return t.cache=new(_.Cache||c),t}_.Cache=c,w.exports=_},80567:(w,D,s)=>{var c=s(73842),_=s(84944)(function(m,p,t){c(m,p,t)});w.exports=_},29439:(w,D,s)=>{var c=s(67308),x=s(99069),_=s(32608);w.exports=function m(p){return p&&p.length?c(p,_,x):void 0}},29525:(w,D,s)=>{var c=s(67308),x=s(96517),_=s(99069);w.exports=function m(p,t){return p&&p.length?c(p,x(t,2),_):void 0}},12552:w=>{w.exports=function D(){}},31710:(w,D,s)=>{var c=s(12119);w.exports=function(){return c.Date.now()}},16372:(w,D,s)=>{var c=s(83021),_=s(3975)(function(m,p){return null==m?{}:c(m,p)});w.exports=_},87495:(w,D,s)=>{var c=s(11847),x=s(39222),_=s(45352),m=s(68533);w.exports=function p(t){return _(t)?c(m(t)):x(t)}},90361:(w,D,s)=>{var x=s(97509)();w.exports=x},81337:(w,D,s)=>{var c=s(8745),x=s(43132),_=s(96517),m=s(13570),p=s(21503);w.exports=function t(d,l,h){var f=p(d)?c:m,u=arguments.length<3;return f(d,_(l,4),h,u,x)}},55637:(w,D,s)=>{var c=s(81172),x=s(28794),_=s(56507),m=s(30248),p=s(52315);w.exports=function l(h){if(null==h)return 0;if(_(h))return m(h)?p(h):h.length;var f=x(h);return"[object Map]"==f||"[object Set]"==f?h.size:c(h).length}},12906:(w,D,s)=>{var c=s(50686),x=s(6119),_=s(23269),m=s(93342),p=_(function(t,d){if(null==t)return[];var l=d.length;return l>1&&m(t,d[0],d[1])?d=[]:l>2&&m(d[0],d[1],d[2])&&(d=[d[0]]),x(t,c(d,1),[])});w.exports=p},49975:w=>{w.exports=function D(){return[]}},63580:w=>{w.exports=function D(){return!1}},12232:(w,D,s)=>{var c=s(51467),x=1/0;w.exports=function m(p){return p?(p=c(p))===x||p===-x?17976931348623157e292*(p<0?-1:1):p==p?p:0:0===p?p:0}},44401:(w,D,s)=>{var c=s(12232);w.exports=function x(_){var m=c(_),p=m%1;return m==m?p?m-p:m:0}},51467:(w,D,s)=>{var c=s(83348),x=s(25940),_=s(44129),p=/^[-+]0x[0-9a-f]+$/i,t=/^0b[01]+$/i,d=/^0o[0-7]+$/i,l=parseInt;w.exports=function h(f){if("number"==typeof f)return f;if(_(f))return NaN;if(x(f)){var u="function"==typeof f.valueOf?f.valueOf():f;f=x(u)?u+"":u}if("string"!=typeof f)return 0===f?f:+f;f=c(f);var g=t.test(f);return g||d.test(f)?l(f.slice(2),g?2:8):p.test(f)?NaN:+f}},8067:(w,D,s)=>{var c=s(31989),x=s(16555);w.exports=function _(m){return c(m,x(m))}},73943:(w,D,s)=>{var c=s(93935);w.exports=function x(_){return null==_?"":c(_)}},89416:(w,D,s)=>{var c=s(96837),x=s(78858),_=s(45184),m=s(96517),p=s(29519),t=s(21503),d=s(80891),l=s(75946),h=s(25940),f=s(48159);w.exports=function u(g,C,L){var I=t(g),B=I||d(g)||f(g);if(C=m(C,4),null==L){var M=g&&g.constructor;L=B?I?new M:[]:h(g)&&l(M)?x(p(g)):{}}return(B?c:_)(g,function(R,Z,H){return C(L,R,Z,H)}),L}},68921:(w,D,s)=>{var c=s(50686),x=s(23269),_=s(80707),m=s(92377),p=x(function(t){return _(c(t,1,m,!0))});w.exports=p},51541:(w,D,s)=>{var c=s(73943),x=0;w.exports=function _(m){var p=++x;return c(m)+p}},90377:(w,D,s)=>{var c=s(19179),x=s(118);w.exports=function _(m){return null==m?[]:c(m,x(m))}},21617:(w,D,s)=>{var c=s(89719),x=s(38645);w.exports=function _(m,p){return x(m||[],p||[],c)}},34315:(w,D,s)=>{"use strict";const c=Symbol.prototype.valueOf,x=s(52872);w.exports=function _(h,f){switch(x(h)){case"array":return h.slice();case"object":return Object.assign({},h);case"date":return new h.constructor(Number(h));case"map":return new Map(h);case"set":return new Set(h);case"buffer":return function d(h){const f=h.length,u=Buffer.allocUnsafe?Buffer.allocUnsafe(f):Buffer.from(f);return h.copy(u),u}(h);case"symbol":return function l(h){return c?Object(c.call(h)):{}}(h);case"arraybuffer":return function p(h){const f=new h.constructor(h.byteLength);return new Uint8Array(f).set(new Uint8Array(h)),f}(h);case"float32array":case"float64array":case"int16array":case"int32array":case"int8array":case"uint16array":case"uint32array":case"uint8clampedarray":case"uint8array":return function t(h,f){return new h.constructor(h.buffer,h.byteOffset,h.length)}(h);case"regexp":return function m(h){const f=void 0!==h.flags?h.flags:/\w+$/.exec(h)||void 0,u=new h.constructor(h.source,f);return u.lastIndex=h.lastIndex,u}(h);case"error":return Object.create(h);default:return h}}},67824:(w,D,s)=>{"use strict";function c(x){for(var _ in x)D.hasOwnProperty(_)||(D[_]=x[_])}Object.defineProperty(D,"__esModule",{value:!0}),c(s(95085)),c(s(26243)),c(s(91786)),c(s(30225)),c(s(76767)),c(s(30345)),c(s(15675)),c(s(86461)),c(s(58802)),c(s(33900)),c(s(88866)),c(s(94655)),c(s(4068)),c(s(33858)),c(s(98237)),c(s(83292))},95085:function(w,D,s){"use strict";var p,c=this&&this.__extends||(p=function(t,d){return(p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,h){l.__proto__=h}||function(l,h){for(var f in h)h.hasOwnProperty(f)&&(l[f]=h[f])})(t,d)},function(t,d){function l(){this.constructor=t}p(t,d),t.prototype=null===d?Object.create(d):(l.prototype=d.prototype,new l)});Object.defineProperty(D,"__esModule",{value:!0});var x=s(15675),_=function(p){function t(d){var l=p.call(this)||this,f=d;return f.trigger&&(l.trigger=f.trigger),f.kick&&(l.kick=f.kick),f.drag&&(l.drag=f.drag),f.on&&(l.on=f.on),l.dragstart=l.dragStart=x.Layout.dragStart,l.dragend=l.dragEnd=x.Layout.dragEnd,l}return c(t,p),t.prototype.trigger=function(d){},t.prototype.kick=function(){},t.prototype.drag=function(){},t.prototype.on=function(d,l){return this},t}(x.Layout);D.LayoutAdaptor=_,D.adaptor=function m(p){return new _(p)}},83292:(w,D,s)=>{"use strict";Object.defineProperty(D,"__esModule",{value:!0});var c=s(15675),x=s(76767);D.gridify=function _(t,d,l,h){t.cola.start(0,0,0,10,!1);var f=function m(t,d,l,h){t.forEach(function(u){u.routerNode={name:u.name,bounds:u.bounds.inflate(-l)}}),d.forEach(function(u){u.routerNode={bounds:u.bounds.inflate(-h),children:(typeof u.groups<"u"?u.groups.map(function(g){return t.length+g.id}):[]).concat(typeof u.leaves<"u"?u.leaves.map(function(g){return g.index}):[])}});var f=t.concat(d).map(function(u,g){return u.routerNode.id=g,u.routerNode});return new x.GridRouter(f,{getChildren:function(u){return u.children},getBounds:function(u){return u.bounds}},l-h)}(t.cola.nodes(),t.cola.groups(),l,h);return f.routeEdges(t.powerGraph.powerEdges,d,function(u){return u.source.routerNode.id},function(u){return u.target.routerNode.id})},D.powerGraphGridLayout=function p(t,d,l){var h;t.nodes.forEach(function(C,L){return C.index=L}),(new c.Layout).avoidOverlaps(!1).nodes(t.nodes).links(t.links).powerGraphGroups(function(C){(h=C).groups.forEach(function(L){return L.padding=l})});var f=t.nodes.length,u=[],g=t.nodes.slice(0);return g.forEach(function(C,L){return C.index=L}),h.groups.forEach(function(C){var L=C.index=C.id+f;g.push(C),typeof C.leaves<"u"&&C.leaves.forEach(function(I){return u.push({source:L,target:I.index})}),typeof C.groups<"u"&&C.groups.forEach(function(I){return u.push({source:L,target:I.id+f})})}),h.powerEdges.forEach(function(C){u.push({source:C.source.index,target:C.target.index})}),(new c.Layout).size(d).nodes(g).links(u).avoidOverlaps(!1).linkDistance(30).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(100,0,0,0,!1),{cola:(new c.Layout).convergenceThreshold(.001).size(d).avoidOverlaps(!0).nodes(t.nodes).links(t.links).groupCompactness(1e-4).linkDistance(30).symmetricDiffLinkLengths(5).powerGraphGroups(function(C){(h=C).groups.forEach(function(L){L.padding=l})}).start(50,0,100,0,!1),powerGraph:h}}},26243:(w,D,s)=>{"use strict";Object.defineProperty(D,"__esModule",{value:!0});var c=s(49346),x=s(22487);D.d3adaptor=function _(p){return!p||function m(p){return p.version&&null!==p.version.match(/^3\./)}(p)?new c.D3StyleLayoutAdaptor:new x.D3StyleLayoutAdaptor(p)}},49346:function(w,D,s){"use strict";var p,c=this&&this.__extends||(p=function(t,d){return(p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,h){l.__proto__=h}||function(l,h){for(var f in h)h.hasOwnProperty(f)&&(l[f]=h[f])})(t,d)},function(t,d){function l(){this.constructor=t}p(t,d),t.prototype=null===d?Object.create(d):(l.prototype=d.prototype,new l)});Object.defineProperty(D,"__esModule",{value:!0});var x=s(15675),_=function(p){function t(){var d=p.call(this)||this;d.event=d3.dispatch(x.EventType[x.EventType.start],x.EventType[x.EventType.tick],x.EventType[x.EventType.end]);var l=d;return d.drag=function(){if(!f)var f=d3.behavior.drag().origin(x.Layout.dragOrigin).on("dragstart.d3adaptor",x.Layout.dragStart).on("drag.d3adaptor",function(u){x.Layout.drag(u,d3.event),l.resume()}).on("dragend.d3adaptor",x.Layout.dragEnd);if(!arguments.length)return f;this.call(f)},d}return c(t,p),t.prototype.trigger=function(d){var l={type:x.EventType[d.type],alpha:d.alpha,stress:d.stress};this.event[l.type](l)},t.prototype.kick=function(){var d=this;d3.timer(function(){return p.prototype.tick.call(d)})},t.prototype.on=function(d,l){return this.event.on("string"==typeof d?d:x.EventType[d],l),this},t}(x.Layout);D.D3StyleLayoutAdaptor=_,D.d3adaptor=function m(){return new _}},22487:function(w,D,s){"use strict";var m,c=this&&this.__extends||(m=function(p,t){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,l){d.__proto__=l}||function(d,l){for(var h in l)l.hasOwnProperty(h)&&(d[h]=l[h])})(p,t)},function(p,t){function d(){this.constructor=p}m(p,t),p.prototype=null===t?Object.create(t):(d.prototype=t.prototype,new d)});Object.defineProperty(D,"__esModule",{value:!0});var x=s(15675),_=function(m){function p(t){var d=m.call(this)||this;d.d3Context=t,d.event=t.dispatch(x.EventType[x.EventType.start],x.EventType[x.EventType.tick],x.EventType[x.EventType.end]);var l=d;return d.drag=function(){if(!f)var f=t.drag().subject(x.Layout.dragOrigin).on("start.d3adaptor",x.Layout.dragStart).on("drag.d3adaptor",function(u){x.Layout.drag(u,t.event),l.resume()}).on("end.d3adaptor",x.Layout.dragEnd);if(!arguments.length)return f;arguments[0].call(f)},d}return c(p,m),p.prototype.trigger=function(t){var d={type:x.EventType[t.type],alpha:t.alpha,stress:t.stress};this.event.call(d.type,d)},p.prototype.kick=function(){var t=this,d=this.d3Context.timer(function(){return m.prototype.tick.call(t)&&d.stop()})},p.prototype.on=function(t,d){return this.event.on("string"==typeof t?t:x.EventType[t],d),this},p}(x.Layout);D.D3StyleLayoutAdaptor=_},91786:(w,D)=>{"use strict";Object.defineProperty(D,"__esModule",{value:!0});var s=function(){function _(){this.locks={}}return _.prototype.add=function(m,p){this.locks[m]=p},_.prototype.clear=function(){this.locks={}},_.prototype.isEmpty=function(){for(var m in this.locks)return!1;return!0},_.prototype.apply=function(m){for(var p in this.locks)m(Number(p),this.locks[p])},_}();D.Locks=s;var c=function(){function _(m,p,t){void 0===t&&(t=null),this.D=p,this.G=t,this.threshold=1e-4,this.numGridSnapNodes=0,this.snapGridSize=100,this.snapStrength=1e3,this.scaleSnapByMaxH=!1,this.random=new x,this.project=null,this.x=m,this.k=m.length;var d=this.n=m[0].length;this.H=new Array(this.k),this.g=new Array(this.k),this.Hd=new Array(this.k),this.a=new Array(this.k),this.b=new Array(this.k),this.c=new Array(this.k),this.d=new Array(this.k),this.e=new Array(this.k),this.ia=new Array(this.k),this.ib=new Array(this.k),this.xtmp=new Array(this.k),this.locks=new s,this.minD=Number.MAX_VALUE;for(var h,l=d;l--;)for(h=d;--h>l;){var f=p[l][h];f>0&&f1e-9)break;var M=this.offsetDir();for(d=0;d1&&R>Z||!isFinite(Z)){for(d=0;d1&&(H=1);var G=Z*Z,tt=2*H*(R-Z)/(G*R),K=R*R*R,st=2*-H/(G*K);for(isFinite(tt)||console.log(tt),d=0;d0?nt-(F+1)*W:nt-(F-1)*W)&&B<=j&&(this.scaleSnapByMaxH?(this.g[d][g]+=u*at*B,this.H[d][g][g]+=u*at):(this.g[d][g]+=at*B,this.H[d][g][g]+=at))}this.locks.isEmpty()||this.locks.apply(function(ut,ft){for(d=0;d0;)for(var l=p;l-- >0;)t(d,l)},_.prototype.matrixApply=function(m){_.mApply(this.k,this.n,m)},_.prototype.computeNextPosition=function(m,p){var t=this;this.computeDerivatives(m);var d=this.computeStepSize(this.g);if(this.stepAndProject(m,p,this.g,d),this.project){this.matrixApply(function(h,f){return t.e[h][f]=m[h][f]-p[h][f]});var l=this.computeStepSize(this.e);l=Math.max(.2,Math.min(l,1)),this.stepAndProject(m,p,this.e,l)}},_.prototype.run=function(m){for(var p=Number.MAX_VALUE,t=!1;!t&&m-- >0;){var d=this.rungeKutta();t=Math.abs(p/d-1)>16)/this.range},_.prototype.getNextBetween=function(m,p){return m+this.getNext()*(p-m)},_}();D.PseudoRandom=x},30225:function(w,D,s){"use strict";var q,c=this&&this.__extends||(q=function(F,E){return(q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ut,ft){ut.__proto__=ft}||function(ut,ft){for(var Dt in ft)ft.hasOwnProperty(Dt)&&(ut[Dt]=ft[Dt])})(F,E)},function(F,E){function ut(){this.constructor=F}q(F,E),F.prototype=null===E?Object.create(E):(ut.prototype=E.prototype,new ut)});Object.defineProperty(D,"__esModule",{value:!0});var x=s(4068),_=function q(){};D.Point=_;var m=function q(F,E,ut,ft){this.x1=F,this.y1=E,this.x2=ut,this.y2=ft};D.LineSegment=m;var p=function(q){function F(){return null!==q&&q.apply(this,arguments)||this}return c(F,q),F}(_);function t(q,F,E){return(F.x-q.x)*(E.y-q.y)-(E.x-q.x)*(F.y-q.y)}function d(q,F,E){return t(q,F,E)>0}function l(q,F,E){return t(q,F,E)<0}function C(q,F){var E=F.slice(0);return E.push(F[0]),{rtan:L(q,E),ltan:I(q,E)}}function L(q,F){var ut,ft,Dt,Qt,E=F.length-1;if(l(q,F[1],F[0])&&!d(q,F[E-1],F[0]))return 0;for(ut=0,ft=E;;){if(ft-ut==1)return d(q,F[ut],F[ft])?ut:ft;if((Qt=l(q,F[(Dt=Math.floor((ut+ft)/2))+1],F[Dt]))&&!d(q,F[Dt-1],F[Dt]))return Dt;d(q,F[ut+1],F[ut])?Qt||d(q,F[ut],F[Dt])?ft=Dt:ut=Dt:Qt&&l(q,F[ut],F[Dt])?ft=Dt:ut=Dt}}function I(q,F){var ut,ft,Dt,Qt,E=F.length-1;if(d(q,F[E-1],F[0])&&!l(q,F[1],F[0]))return 0;for(ut=0,ft=E;;){if(ft-ut==1)return l(q,F[ut],F[ft])?ut:ft;if(Qt=l(q,F[(Dt=Math.floor((ut+ft)/2))+1],F[Dt]),d(q,F[Dt-1],F[Dt])&&!Qt)return Dt;l(q,F[ut+1],F[ut])?Qt?l(q,F[ut],F[Dt])?ft=Dt:ut=Dt:ft=Dt:Qt?ut=Dt:d(q,F[ut],F[Dt])?ft=Dt:ut=Dt}}function B(q,F,E,ut,ft,Dt){var St,Qt;Qt=ut(q[St=E(F[0],q)],F);for(var pe=!1;!pe;){for(pe=!0;St===q.length-1&&(St=0),!ft(F[Qt],q[St],q[St+1]);)++St;for(;0===Qt&&(Qt=F.length-1),!Dt(q[St],F[Qt],F[Qt-1]);)--Qt,pe=!1}return{t1:St,t2:Qt}}function R(q,F){return B(q,F,L,I,d,l)}D.PolyPoint=p,D.isLeft=t,D.ConvexHull=function h(q){var ut,F=q.slice(0).sort(function(zt,de){return zt.x!==de.x?de.x-zt.x:de.y-zt.y}),E=q.length,Dt=F[0].x;for(ut=1;ut=0&&F[ut].x===yt;ut--);for(pe=ut+1,ut=St;++ut<=pe;)if(!(t(F[0],F[pe],F[ut])>=0&&ut1&&!(t(Qt[Qt.length-2],Qt[Qt.length-1],F[ut])>0);)Qt.length-=1;0!=ut&&Qt.push(F[ut])}wt!=pe&&Qt.push(F[wt]);var Nt=Qt.length;for(ut=pe;--ut>=St;)if(!(t(F[wt],F[St],F[ut])>=0&&ut>St)){for(;Qt.length>Nt&&!(t(Qt[Qt.length-2],Qt[Qt.length-1],F[ut])>0);)Qt.length-=1;0!=ut&&Qt.push(F[ut])}}return Qt},D.clockwiseRadialSweep=function f(q,F,E){F.slice(0).sort(function(ut,ft){return Math.atan2(ut.y-q.y,ut.x-q.x)-Math.atan2(ft.y-q.y,ft.x-q.x)}).forEach(E)},D.tangent_PolyPolyC=B,D.LRtangent_PolyPolyC=function M(q,F){var E=R(F,q);return{t1:E.t2,t2:E.t1}},D.RLtangent_PolyPolyC=R,D.LLtangent_PolyPolyC=function Z(q,F){return B(q,F,I,I,l,l)},D.RRtangent_PolyPolyC=function H(q,F){return B(q,F,L,L,d,d)};var G=function q(F,E){this.t1=F,this.t2=E};D.BiTangent=G;var tt=function q(){};D.BiTangents=tt;var K=function(q){function F(){return null!==q&&q.apply(this,arguments)||this}return c(F,q),F}(_);D.TVGPoint=K;var st=function q(F,E,ut,ft){this.id=F,this.polyid=E,this.polyvertid=ut,this.p=ft,ft.vv=this};D.VisibilityVertex=st;var j=function(){function q(F,E){this.source=F,this.target=E}return q.prototype.length=function(){var F=this.source.p.x-this.target.p.x,E=this.source.p.y-this.target.p.y;return Math.sqrt(F*F+E*E)},q}();D.VisibilityEdge=j;var W=function(){function q(F,E){if(this.P=F,this.V=[],this.E=[],E)this.V=E.V.slice(0),this.E=E.E.slice(0);else{for(var ut=F.length,ft=0;ft0&&this.E.push(new j(Dt[St-1].vv,pe))}Dt.length>1&&this.E.push(new j(Dt[0].vv,Dt[Dt.length-1].vv))}for(ft=0;ft0)return!0;return!1},q}();function et(q,F){for(var E=[],ut=1,ft=F.length;ut=0&&ie>=0&&Mt<0&&te>=0&&jt>=0&&ae<0?ft.ll=new G(Dt,St):de<=0&&ie<=0&&Mt>0&&te<=0&&jt<=0&&ae>0?ft.rr=new G(Dt,St):de<=0&&ie>0&&Mt<=0&&te>=0&&jt<0&&ae>=0?ft.rl=new G(Dt,St):de>=0&&ie<0&&Mt>=0&&te<=0&&jt>0&&ae<=0&&(ft.lr=new G(Dt,St))}return ft}function nt(q,F){return!q.every(function(E){return!function Y(q,F){for(var E=1,ut=F.length;E0)return!0}return!1}},76767:(w,D,s)=>{"use strict";Object.defineProperty(D,"__esModule",{value:!0});var c=s(4068),x=s(98237),_=s(33858),m=function l(h,f,u){this.id=h,this.rect=f,this.children=u,this.leaf=typeof u>"u"||0===u.length};D.NodeWrapper=m;var p=function l(h,f,u,g,C){void 0===g&&(g=null),void 0===C&&(C=null),this.id=h,this.x=f,this.y=u,this.node=g,this.line=C};D.Vert=p;var t=function(){function l(h,f){this.s=h,this.t=f;var u=l.findMatch(h,f),g=f.slice(0).reverse(),C=l.findMatch(h,g);u.length>=C.length?(this.length=u.length,this.si=u.si,this.ti=u.ti,this.reversed=!1):(this.length=C.length,this.si=C.si,this.ti=f.length-C.ti-C.length,this.reversed=!0)}return l.findMatch=function(h,f){for(var u=h.length,g=f.length,C={length:0,si:-1,ti:-1},L=new Array(u),I=0;IC.length&&(C.length=M,C.si=I-M+1,C.ti=B-M+1)}else L[I][B]=0}return C},l.prototype.getSequence=function(){return this.length>=0?this.s.slice(this.si,this.si+this.length):[]},l}();D.LongestCommonSubsequence=t;var d=function(){function l(h,f,u){var g=this;void 0===u&&(u=12),this.originalnodes=h,this.groupPadding=u,this.leaves=null,this.nodes=h.map(function(K,st){return new m(st,f.getBounds(K),f.getChildren(K))}),this.leaves=this.nodes.filter(function(K){return K.leaf}),this.groups=this.nodes.filter(function(K){return!K.leaf}),this.cols=this.getGridLines("x"),this.rows=this.getGridLines("y"),this.groups.forEach(function(K){return K.children.forEach(function(st){return g.nodes[st].parent=K})}),this.root={children:[]},this.nodes.forEach(function(K){typeof K.parent>"u"&&(K.parent=g.root,g.root.children.push(K.id)),K.ports=[]}),this.backToFront=this.nodes.slice(0),this.backToFront.sort(function(K,st){return g.getDepth(K)-g.getDepth(st)}),this.backToFront.slice(0).reverse().filter(function(K){return!K.leaf}).forEach(function(K){var st=c.Rectangle.empty();K.children.forEach(function(j){return st=st.union(g.nodes[j].rect)}),K.rect=st.inflate(g.groupPadding)});var L=this.midPoints(this.cols.map(function(K){return K.pos})),I=this.midPoints(this.rows.map(function(K){return K.pos})),B=L[0],M=L[L.length-1],R=I[0],Z=I[I.length-1],H=this.rows.map(function(K){return{x1:B,x2:M,y1:K.pos,y2:K.pos}}).concat(I.map(function(K){return{x1:B,x2:M,y1:K,y2:K}})),G=this.cols.map(function(K){return{x1:K.pos,x2:K.pos,y1:R,y2:Z}}).concat(L.map(function(K){return{x1:K,x2:K,y1:R,y2:Z}})),tt=H.concat(G);tt.forEach(function(K){return K.verts=[]}),this.verts=[],this.edges=[],H.forEach(function(K){return G.forEach(function(st){var j=new p(g.verts.length,st.x1,K.y1);K.verts.push(j),st.verts.push(j),g.verts.push(j);for(var W=g.backToFront.length;W-- >0;){var et=g.backToFront[W],at=et.rect,Y=Math.abs(j.x-at.cx()),nt=Math.abs(j.y-at.cy());if(Y0;){var g=u.filter(function(L){return L.rect["overlap"+h.toUpperCase()](u[0].rect)}),C={nodes:g,pos:this.avg(g.map(function(L){return L.rect["c"+h]()}))};f.push(C),C.nodes.forEach(function(L){return u.splice(u.indexOf(L),1)})}return f.sort(function(L,I){return L.pos-I.pos}),f},l.prototype.getDepth=function(h){for(var f=0;h.parent!==this.root;)f++,h=h.parent;return f},l.prototype.midPoints=function(h){for(var f=h[1]-h[0],u=[h[0]-f/2],g=1;g.1)&&R.push(Z={pos:B[0][f],segments:[]}),Z.segments.push(B)}return R},l.nudgeSegs=function(h,f,u,g,C,L){var I=g.length;if(!(I<=1)){for(var B=g.map(function(et){return new x.Variable(et[0][h])}),M=[],R=0;R=0&&M.push(new x.Constraint(B[st],B[j],L))}new x.Solver(B,M).solve(),B.forEach(function(et,at){var Y=g[at],nt=et.position();Y[0][h]=Y[1][h]=nt;var rt=u[Y.edgeid];Y.i>0&&(rt[Y.i-1][1][h]=nt),Y.iMath.PI||C<-Math.PI)&&(C=g-u),C},l.isLeft=function(h,f,u){return(f.x-h.x)*(u.y-h.y)-(f.y-h.y)*(u.x-h.x)<=0},l.getOrder=function(h){for(var f={},u=0;u"u"&&(f[g.l]={}),f[g.l][g.r]=!0}return function(C,L){return typeof f[C]<"u"&&f[C][L]}},l.orderEdges=function(h){for(var f=[],u=0;u=C.length||I.ti+I.length>=L.length)){f.push({l:u,r:g});continue}I.si+I.length>=C.length||I.ti+I.length>=L.length?(B=C[I.si+1],R=C[I.si-1],M=L[I.ti-1]):(B=C[I.si+I.length-2],M=C[I.si+I.length],R=L[I.ti+I.length]),l.isLeft(B,M,R)?f.push({l:g,r:u}):f.push({l:u,r:g})}}return l.getOrder(f)},l.makeSegments=function(h){function f(M){return{x:M.x,y:M.y}}for(var g=[],C=f(h[0]),L=1;L1&&q>1?1e3:0}).reverse().map(function(j){return u.verts[j]});return st.push(this.nodes[C.id].ports[0]),st.filter(function(j,W){return!(W0&&j.node===C&&st[W-1].node===C)})},l.getRoutePath=function(h,f,u,g){var I,B,M,rt,q,C={routepath:"M "+h[0][0].x+" "+h[0][0].y+" ",arrowpath:""};if(h.length>1)for(var L=0;L0?B-=R/Math.abs(R)*f:M-=Z/Math.abs(Z)*f,C.routepath+="L "+B+" "+M+" ";var H=h[L+1],G=H[0].x,tt=H[0].y;R=H[1].x-G,Z=H[1].y-tt;var W,et,j=l.angleBetween2Lines(I,H)<0?1:0;Math.abs(R)>0?(W=G+R/Math.abs(R)*f,et=tt):(W=G,et=tt+Z/Math.abs(Z)*f);var at=Math.abs(W-B),Y=Math.abs(et-M);C.routepath+="A "+at+" "+Y+" 0 0 "+j+" "+W+" "+et+" "}else{var nt=[B,M];Math.abs(R)>0?(rt=[B-=R/Math.abs(R)*g,M+u],q=[B,M-u]):(rt=[B+u,M-=Z/Math.abs(Z)*g],q=[B-u,M]),C.routepath+="L "+B+" "+M+" ",g>0&&(C.arrowpath="M "+nt[0]+" "+nt[1]+" L "+rt[0]+" "+rt[1]+" L "+q[0]+" "+q[1])}}else R=(B=(I=h[0])[1].x)-I[0].x,Z=(M=I[1].y)-I[0].y,nt=[B,M],Math.abs(R)>0?(rt=[B-=R/Math.abs(R)*g,M+u],q=[B,M-u]):(rt=[B+u,M-=Z/Math.abs(Z)*g],q=[B-u,M]),C.routepath+="L "+B+" "+M+" ",g>0&&(C.arrowpath="M "+nt[0]+" "+nt[1]+" L "+rt[0]+" "+rt[1]+" L "+q[0]+" "+q[1]);return C},l}();D.GridRouter=d},30345:(w,D)=>{"use strict";Object.defineProperty(D,"__esModule",{value:!0});var s_GOLDEN_SECTION=(1+Math.sqrt(5))/2;D.applyPacking=function c(_,m,p,L,C,l){void 0===C&&(C=1),void 0===l&&(l=!0);var u=m,g=p,I=(C=typeof C<"u"?C:1,L=typeof L<"u"?L:0,0),B=0,M=0,R=0,Z=[];function K(et,at){Z=[],I=0,B=0,R=0;for(var Y=0;Y=et.height&&Z[nt].x+Z[nt].width+et.width+10-at<=1e-4){Y=Z[nt];break}Z.push(et),void 0!==Y?(et.x=Y.x+Y.width+10,et.y=Y.bottom,et.space_left=et.height,et.bottom=et.y,Y.space_left-=et.height+10,Y.bottom+=et.height+10):(et.y=R,R+=et.height+10,et.x=0,et.bottom=et.y,et.space_left=et.height),et.y+et.height-B>-1e-4&&(B=et.y+et.height-0),et.x+et.width-I>-1e-4&&(I=et.x+et.width-0)}0!=_.length&&(function H(et){et.forEach(function(Y){!function at(Y){var nt=Number.MAX_VALUE,rt=Number.MAX_VALUE,q=0,F=0;Y.array.forEach(function(E){var ut=typeof E.width<"u"?E.width:L,ft=typeof E.height<"u"?E.height:L;ut/=2,ft/=2,q=Math.max(E.x+ut,q),nt=Math.min(E.x-ut,nt),F=Math.max(E.y+ft,F),rt=Math.min(E.y-ft,rt)}),Y.width=q-nt,Y.height=F-rt}(Y)})}(_),function tt(et,at){var Y=Number.POSITIVE_INFINITY,nt=0;et.sort(function(wt,yt){return yt.height-wt.height});for(var rt=Qt=M=et.reduce(function(wt,yt){return wt.widthM||St>1e-4;){if(1!=ft){var Qt=q-(q-rt)/s_GOLDEN_SECTION;E=K(et,Qt)}if(0!=ft){var pe=rt+(q-rt)/s_GOLDEN_SECTION;ut=K(et,pe)}if(Dt=Math.abs(Qt-pe),St=Math.abs(E-ut),Eut?(rt=Qt,Qt=pe,E=ut,ft=1):(q=pe,pe=Qt,ut=E,ft=0),F++>100)break}K(et,nt)}(_),l&&function G(et){et.forEach(function(at){var Y={x:0,y:0};at.array.forEach(function(q){Y.x+=q.x,Y.y+=q.y}),Y.x/=at.array.length,Y.y/=at.array.length;var rt_x=at.x-(Y.x-at.width/2)+u/2-I/2,rt_y=at.y-(Y.y-at.height/2)+g/2-B/2;at.array.forEach(function(q){q.x+=rt_x,q.y+=rt_y})})}(_))},D.separateGraphs=function x(_,m){for(var p={},t={},d=[],l=0,h=0;h{"use strict";Object.defineProperty(D,"__esModule",{value:!0});var l,u,c=s(33900),x=s(58802),_=s(91786),m=s(4068),p=s(33858),t=s(30225),d=s(30345);function h(u){return typeof u.leaves<"u"||typeof u.groups<"u"}(u=l=D.EventType||(D.EventType={}))[u.start=0]="start",u[u.tick=1]="tick",u[u.end=2]="end";var f=function(){function u(){var g=this;this._canvasSize=[1,1],this._linkDistance=20,this._defaultNodeSize=10,this._linkLengthCalculator=null,this._linkType=null,this._avoidOverlaps=!1,this._handleDisconnected=!0,this._running=!1,this._nodes=[],this._groups=[],this._rootGroup=null,this._links=[],this._constraints=[],this._distanceMatrix=null,this._descent=null,this._directedLinkConstraints=null,this._threshold=.01,this._visibilityGraph=null,this._groupCompactness=1e-6,this.event=null,this.linkAccessor={getSourceIndex:u.getSourceIndex,getTargetIndex:u.getTargetIndex,setLength:u.setLinkLength,getType:function(C){return"function"==typeof g._linkType?g._linkType(C):0}}}return u.prototype.on=function(g,C){return this.event||(this.event={}),"string"==typeof g?this.event[l[g]]=C:this.event[g]=C,this},u.prototype.trigger=function(g){this.event&&typeof this.event[g.type]<"u"&&this.event[g.type](g)},u.prototype.kick=function(){for(;!this.tick(););},u.prototype.tick=function(){if(this._alpha"u"||typeof L.py>"u")&&(L.px=L.x,L.py=L.y),this._descent.locks.add(I,[L.px,L.py]));var M=this._descent.rungeKutta();return 0===M?this._alpha=0:typeof this._lastStress<"u"&&(this._alpha=M),this._lastStress=M,this.updateNodePositions(),this.trigger({type:l.tick,alpha:this._alpha,stress:this._lastStress}),!1},u.prototype.updateNodePositions=function(){for(var L,g=this._descent.x[0],C=this._descent.x[1],I=this._nodes.length;I--;)(L=this._nodes[I]).x=g[I],L.y=C[I]},u.prototype.nodes=function(g){if(!g){if(0===this._nodes.length&&this._links.length>0){var C=0;this._links.forEach(function(I){C=Math.max(C,I.source,I.target)}),this._nodes=new Array(++C);for(var L=0;L"u"&&(L.padding=1),typeof L.leaves<"u"&&L.leaves.forEach(function(I,B){"number"==typeof I&&((L.leaves[B]=C._nodes[I]).parent=L)}),typeof L.groups<"u"&&L.groups.forEach(function(I,B){"number"==typeof I&&((L.groups[B]=C._groups[I]).parent=L)})}),this._rootGroup.leaves=this._nodes.filter(function(L){return typeof L.parent>"u"}),this._rootGroup.groups=this._groups.filter(function(L){return typeof L.parent>"u"}),this):this._groups},u.prototype.powerGraphGroups=function(g){var C=c.getGroups(this._nodes,this._links,this.linkAccessor,this._rootGroup);return this.groups(C.groups),g(C),this},u.prototype.avoidOverlaps=function(g){return arguments.length?(this._avoidOverlaps=g,this):this._avoidOverlaps},u.prototype.handleDisconnected=function(g){return arguments.length?(this._handleDisconnected=g,this):this._handleDisconnected},u.prototype.flowLayout=function(g,C){return arguments.length||(g="y"),this._directedLinkConstraints={axis:g,getMinSeparation:"number"==typeof C?function(){return C}:C},this},u.prototype.links=function(g){return arguments.length?(this._links=g,this):this._links},u.prototype.constraints=function(g){return arguments.length?(this._constraints=g,this):this._constraints},u.prototype.distanceMatrix=function(g){return arguments.length?(this._distanceMatrix=g,this):this._distanceMatrix},u.prototype.size=function(g){return g?(this._canvasSize=g,this):this._canvasSize},u.prototype.defaultNodeSize=function(g){return g?(this._defaultNodeSize=g,this):this._defaultNodeSize},u.prototype.groupCompactness=function(g){return g?(this._groupCompactness=g,this):this._groupCompactness},u.prototype.linkDistance=function(g){return g?(this._linkDistance="function"==typeof g?g:+g,this._linkLengthCalculator=null,this):this._linkDistance},u.prototype.linkType=function(g){return this._linkType=g,this},u.prototype.convergenceThreshold=function(g){return g?(this._threshold="function"==typeof g?g:+g,this):this._threshold},u.prototype.alpha=function(g){return arguments.length?(g=+g,this._alpha?this._alpha=g>0?g:0:g>0&&(this._running||(this._running=!0,this.trigger({type:l.start,alpha:this._alpha=g}),this.kick())),this):this._alpha},u.prototype.getLinkLength=function(g){return"function"==typeof this._linkDistance?+this._linkDistance(g):this._linkDistance},u.setLinkLength=function(g,C){g.length=C},u.prototype.getLinkType=function(g){return"function"==typeof this._linkType?this._linkType(g):0},u.prototype.symmetricDiffLinkLengths=function(g,C){var L=this;return void 0===C&&(C=1),this.linkDistance(function(I){return g*I.length}),this._linkLengthCalculator=function(){return x.symmetricDiffLinkLengths(L._links,L.linkAccessor,C)},this},u.prototype.jaccardLinkLengths=function(g,C){var L=this;return void 0===C&&(C=1),this.linkDistance(function(I){return g*I.length}),this._linkLengthCalculator=function(){return x.jaccardLinkLengths(L._links,L.linkAccessor,C)},this},u.prototype.start=function(g,C,L,I,B,M){var R=this;void 0===g&&(g=0),void 0===C&&(C=0),void 0===L&&(L=0),void 0===I&&(I=0),void 0===B&&(B=!0),void 0===M&&(M=!0);var nt,G=this.nodes().length,tt=G+2*this._groups.length,st=this._canvasSize[0],j=this._canvasSize[1],W=new Array(tt),et=new Array(tt),at=null,Y=this._avoidOverlaps;this._nodes.forEach(function(Dt,St){Dt.index=St,typeof Dt.x>"u"&&(Dt.x=st/2,Dt.y=j/2),W[St]=Dt.x,et[St]=Dt.y}),this._linkLengthCalculator&&this._linkLengthCalculator(),this._distanceMatrix?nt=this._distanceMatrix:(nt=new p.Calculator(tt,this._links,u.getSourceIndex,u.getTargetIndex,function(Dt){return R.getLinkLength(Dt)}).DistanceMatrix(),at=_.Descent.createSquareMatrix(tt,function(){return 2}),this._links.forEach(function(Dt){"number"==typeof Dt.source&&(Dt.source=R._nodes[Dt.source]),"number"==typeof Dt.target&&(Dt.target=R._nodes[Dt.target])}),this._links.forEach(function(Dt){var St=u.getSourceIndex(Dt),Qt=u.getTargetIndex(Dt);at[St][Qt]=at[Qt][St]=Dt.weight||1}));var rt=_.Descent.createSquareMatrix(tt,function(Dt,St){return nt[Dt][St]});if(this._rootGroup&&typeof this._rootGroup.groups<"u"){var Z=G;this._groups.forEach(function(St){(function(St,Qt,pe,wt){at[St][Qt]=at[Qt][St]=pe,rt[St][Qt]=rt[Qt][St]=.1})(Z,Z+1,R._groupCompactness),W[Z]=0,et[Z++]=0,W[Z]=0,et[Z++]=0})}else this._rootGroup={leaves:this._nodes,groups:[]};var F=this._constraints||[];for(this._directedLinkConstraints&&(this.linkAccessor.getMinSeparation=this._directedLinkConstraints.getMinSeparation,F=F.concat(x.generateDirectedEdgeConstraints(G,this._links,this._directedLinkConstraints.axis,this.linkAccessor))),this.avoidOverlaps(!1),this._descent=new _.Descent([W,et],rt),this._descent.locks.clear(),Z=0;Z0&&(this._descent.project=new m.Projection(this._nodes,this._groups,this._rootGroup,F).projectFunctions()),this._descent.run(C),this.separateOverlappingComponents(st,j,M),this.avoidOverlaps(Y),Y&&(this._nodes.forEach(function(Dt,St){Dt.x=W[St],Dt.y=et[St]}),this._descent.project=new m.Projection(this._nodes,this._groups,this._rootGroup,F,!0).projectFunctions(),this._nodes.forEach(function(Dt,St){W[St]=Dt.x,et[St]=Dt.y})),this._descent.G=at,this._descent.run(L),I){this._descent.snapStrength=1e3,this._descent.snapGridSize=this._nodes[0].width,this._descent.numGridSnapNodes=G,this._descent.scaleSnapByMaxH=G!=tt;var ft=_.Descent.createSquareMatrix(tt,function(Dt,St){return Dt>=G||St>=G?at[Dt][St]:0});this._descent.G=ft,this._descent.run(I)}return this.updateNodePositions(),this.separateOverlappingComponents(st,j,M),B?this.resume():this},u.prototype.initialLayout=function(g,C,L){if(this._groups.length>0&&g>0){var I=this._nodes.length,B=this._links.map(function(R){return{source:R.source.index,target:R.target.index}}),M=this._nodes.map(function(R){return{index:R.index}});this._groups.forEach(function(R,Z){M.push({index:R.index=I+Z})}),this._groups.forEach(function(R,Z){typeof R.leaves<"u"&&R.leaves.forEach(function(H){return B.push({source:R.index,target:H.index})}),typeof R.groups<"u"&&R.groups.forEach(function(H){return B.push({source:R.index,target:H.index})})}),(new u).size(this.size()).nodes(M).links(B).avoidOverlaps(!1).linkDistance(this.linkDistance()).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(g,0,0,0,!1),this._nodes.forEach(function(R){C[R.index]=M[R.index].x,L[R.index]=M[R.index].y})}else this._descent.run(g)},u.prototype.separateOverlappingComponents=function(g,C,L){var I=this;if(void 0===L&&(L=!0),!this._distanceMatrix&&this._handleDisconnected){var B=this._descent.x[0],M=this._descent.x[1];this._nodes.forEach(function(Z,H){Z.x=B[H],Z.y=M[H]});var R=d.separateGraphs(this._nodes,this._links);d.applyPacking(R,g,C,this._defaultNodeSize,1,L),this._nodes.forEach(function(Z,H){I._descent.x[0][H]=Z.x,I._descent.x[1][H]=Z.y,Z.bounds&&(Z.bounds.setXCentre(Z.x),Z.bounds.setYCentre(Z.y))})}},u.prototype.resume=function(){return this.alpha(.1)},u.prototype.stop=function(){return this.alpha(0)},u.prototype.prepareEdgeRouting=function(g){void 0===g&&(g=0),this._visibilityGraph=new t.TangentVisibilityGraph(this._nodes.map(function(C){return C.bounds.inflate(-g).vertices()}))},u.prototype.routeEdge=function(g,C,L){void 0===C&&(C=5);var I=[],B=new t.TangentVisibilityGraph(this._visibilityGraph.P,{V:this._visibilityGraph.V,E:this._visibilityGraph.E}),M={x:g.source.x,y:g.source.y},R={x:g.target.x,y:g.target.y},Z=B.addPoint(M,g.source.index),H=B.addPoint(R,g.target.index);B.addEdgeIfVisible(M,R,g.source.index,g.target.index),typeof L<"u"&&L(B);var j=new p.Calculator(B.V.length,B.E,function(rt){return rt.source.id},function(rt){return rt.target.id},function(rt){return rt.length()}).PathFromNodeToNode(Z.id,H.id);if(1===j.length||j.length===B.V.length){var W=m.makeEdgeBetween(g.source.innerBounds,g.target.innerBounds,C);I=[W.sourceIntersection,W.arrowStart]}else{for(var et=j.length-2,at=B.V[j[et]].p,Y=B.V[j[0]].p,nt=(I=[g.source.innerBounds.rayIntersection(at.x,at.y)],et);nt>=0;--nt)I.push(B.V[j[nt]].p);I.push(m.makeEdgeTo(Y,g.target.innerBounds,C))}return I},u.getSourceIndex=function(g){return"number"==typeof g.source?g.source:g.source.index},u.getTargetIndex=function(g){return"number"==typeof g.target?g.target:g.target.index},u.linkId=function(g){return u.getSourceIndex(g)+"-"+u.getTargetIndex(g)},u.dragStart=function(g){h(g)?u.storeOffset(g,u.dragOrigin(g)):(u.stopNode(g),g.fixed|=2)},u.stopNode=function(g){g.px=g.x,g.py=g.y},u.storeOffset=function(g,C){typeof g.leaves<"u"&&g.leaves.forEach(function(L){L.fixed|=2,u.stopNode(L),L._dragGroupOffsetX=L.x-C.x,L._dragGroupOffsetY=L.y-C.y}),typeof g.groups<"u"&&g.groups.forEach(function(L){return u.storeOffset(L,C)})},u.dragOrigin=function(g){return h(g)?{x:g.bounds.cx(),y:g.bounds.cy()}:g},u.drag=function(g,C){h(g)?(typeof g.leaves<"u"&&g.leaves.forEach(function(L){g.bounds.setXCentre(C.x),g.bounds.setYCentre(C.y),L.px=L._dragGroupOffsetX+C.x,L.py=L._dragGroupOffsetY+C.y}),typeof g.groups<"u"&&g.groups.forEach(function(L){return u.drag(L,C)})):(g.px=C.x,g.py=C.y)},u.dragEnd=function(g){h(g)?(typeof g.leaves<"u"&&g.leaves.forEach(function(C){u.dragEnd(C),delete C._dragGroupOffsetX,delete C._dragGroupOffsetY}),typeof g.groups<"u"&&g.groups.forEach(u.dragEnd)):g.fixed&=-7},u.mouseOver=function(g){g.fixed|=4,g.px=g.x,g.py=g.y},u.mouseOut=function(g){g.fixed&=-5},u}();D.Layout=f},86461:(w,D,s)=>{"use strict";Object.defineProperty(D,"__esModule",{value:!0});var c=s(33858),x=s(91786),_=s(4068),m=s(58802),p=function(){function h(f,u){this.source=f,this.target=u}return h.prototype.actualLength=function(f){var u=this;return Math.sqrt(f.reduce(function(g,C){var L=C[u.target]-C[u.source];return g+L*L},0))},h}();D.Link3D=p,D.Node3D=function h(f,u,g){void 0===f&&(f=0),void 0===u&&(u=0),void 0===g&&(g=0),this.x=f,this.y=u,this.z=g};var d=function(){function h(f,u,g){var C=this;void 0===g&&(g=1),this.nodes=f,this.links=u,this.idealLinkLength=g,this.constraints=null,this.useJaccardLinkLengths=!0,this.result=new Array(h.k);for(var L=0;L"u"&&(I[Z]=Math.random())}C.result[0][B]=I.x,C.result[1][B]=I.y,C.result[2][B]=I.z})}return h.prototype.linkLength=function(f){return f.actualLength(this.result)},h.prototype.start=function(f){var u=this;void 0===f&&(f=100);var g=this.nodes.length,C=new l;this.useJaccardLinkLengths&&m.jaccardLinkLengths(this.links,C,1.5),this.links.forEach(function(Z){return Z.length*=u.idealLinkLength});var L=new c.Calculator(g,this.links,function(Z){return Z.source},function(Z){return Z.target},function(Z){return Z.length}).DistanceMatrix(),I=x.Descent.createSquareMatrix(g,function(Z,H){return L[Z][H]}),B=x.Descent.createSquareMatrix(g,function(){return 2});this.links.forEach(function(Z){var H=Z.source,G=Z.target;return B[H][G]=B[G][H]=1}),this.descent=new x.Descent(this.result,I),this.descent.threshold=.001,this.descent.G=B,this.constraints&&(this.descent.project=new _.Projection(this.nodes,null,null,this.constraints).projectFunctions());for(var M=0;M{"use strict";function s(l,h){var f={};for(var u in l)f[u]={};for(var u in h)f[u]={};return Object.keys(f).length}function c(l,h){var f=0;for(var u in l)typeof h[u]<"u"&&++f;return f}function _(l,h,f,u){var g=function x(l,h){var f={},u=function(g,C){typeof f[g]>"u"&&(f[g]={}),f[g][C]={}};return l.forEach(function(g){var C=h.getSourceIndex(g),L=h.getTargetIndex(g);u(C,L),u(L,C)}),f}(l,u);l.forEach(function(C){var L=g[u.getSourceIndex(C)],I=g[u.getTargetIndex(C)];u.setLength(C,1+h*f(L,I))})}function d(l,h,f){var u=[],g=0,C=[],L=[];function I(j){j.index=j.lowlink=g++,C.push(j),j.onStack=!0;for(var W=0,et=j.out;W"u"?(I(at),j.lowlink=Math.min(j.lowlink,at.lowlink)):at.onStack&&(j.lowlink=Math.min(j.lowlink,at.index))}if(j.lowlink===j.index){for(var Y=[];C.length&&((at=C.pop()).onStack=!1,Y.push(at),at!==j););L.push(Y.map(function(nt){return nt.id}))}}for(var B=0;B"u"&&I(st)}return L}Object.defineProperty(D,"__esModule",{value:!0}),D.symmetricDiffLinkLengths=function m(l,h,f){void 0===f&&(f=1),_(l,f,function(u,g){return Math.sqrt(s(u,g)-c(u,g))},h)},D.jaccardLinkLengths=function p(l,h,f){void 0===f&&(f=1),_(l,f,function(u,g){return Math.min(Object.keys(u).length,Object.keys(g).length)<1.1?0:c(u,g)/s(u,g)},h)},D.generateDirectedEdgeConstraints=function t(l,h,f,u){var g=d(l,h,u),C={};g.forEach(function(I,B){return I.forEach(function(M){return C[M]=B})});var L=[];return h.forEach(function(I){var B=u.getSourceIndex(I),M=u.getTargetIndex(I);C[B]!==C[M]&&L.push({axis:f,left:B,right:M,gap:u.getMinSeparation(I)})}),L},D.stronglyConnectedComponents=d},33900:(w,D)=>{"use strict";Object.defineProperty(D,"__esModule",{value:!0});var s=function h(f,u,g){this.source=f,this.target=u,this.type=g};D.PowerEdge=s;var c=function(){function h(f,u,g,C){var L=this;if(this.linkAccessor=g,this.modules=new Array(f),this.roots=[],C)this.initModulesFromGroup(C);else{this.roots.push(new p);for(var I=0;I=this.R))return this.merge(g.a,g.b,f),!0}},h.prototype.nEdges=function(f,u){var g=f.incoming.intersection(u.incoming),C=f.outgoing.intersection(u.outgoing);return this.R-g.count()-C.count()},h.prototype.getGroupHierarchy=function(f){var u=this,g=[];return x(this.roots[0],{},g),this.allEdges().forEach(function(I){var B=u.modules[I.source],M=u.modules[I.target];f.push(new s(typeof B.gid>"u"?I.source:g[B.gid],typeof M.gid>"u"?I.target:g[M.gid],I.type))}),g},h.prototype.allEdges=function(){var f=[];return h.getEdges(this.roots[0],f),f},h.getEdges=function(f,u){f.forAll(function(g){g.getEdges(u),h.getEdges(g.children,u)})},h}();function x(h,f,u){h.forAll(function(g){if(g.isLeaf())f.leaves||(f.leaves=[]),f.leaves.push(g.id);else{var C=f;if(g.gid=u.length,!g.isIsland()||g.isPredefined()){if(C={id:g.gid},g.isPredefined())for(var L in g.definition)C[L]=g.definition[L];f.groups||(f.groups=[]),f.groups.push(g.gid),u.push(C)}x(g.children,C,u)}})}D.Configuration=c;var _=function(){function h(f,u,g,C,L){void 0===u&&(u=new t),void 0===g&&(g=new t),void 0===C&&(C=new p),this.id=f,this.outgoing=u,this.incoming=g,this.children=C,this.definition=L}return h.prototype.getEdges=function(f){var u=this;this.outgoing.forAll(function(g,C){g.forAll(function(L){f.push(new s(u.id,L.id,C))})})},h.prototype.isLeaf=function(){return 0===this.children.count()},h.prototype.isIsland=function(){return 0===this.outgoing.count()&&0===this.incoming.count()},h.prototype.isPredefined=function(){return typeof this.definition<"u"},h}();D.Module=_;var p=function(){function h(){this.table={}}return h.prototype.count=function(){return Object.keys(this.table).length},h.prototype.intersection=function(f){var u=new h;return u.table=function m(h,f){var u={};for(var g in h)g in f&&(u[g]=h[g]);return u}(this.table,f.table),u},h.prototype.intersectionCount=function(f){return this.intersection(f).count()},h.prototype.contains=function(f){return f in this.table},h.prototype.add=function(f){this.table[f.id]=f},h.prototype.remove=function(f){delete this.table[f.id]},h.prototype.forAll=function(f){for(var u in this.table)f(this.table[u])},h.prototype.modules=function(){var f=[];return this.forAll(function(u){u.isPredefined()||f.push(u)}),f},h}();D.ModuleSet=p;var t=function(){function h(){this.sets={},this.n=0}return h.prototype.count=function(){return this.n},h.prototype.contains=function(f){var u=!1;return this.forAllModules(function(g){!u&&g.id==f&&(u=!0)}),u},h.prototype.add=function(f,u){(f in this.sets?this.sets[f]:this.sets[f]=new p).add(u),++this.n},h.prototype.remove=function(f,u){var g=this.sets[f];g.remove(u),0===g.count()&&delete this.sets[f],--this.n},h.prototype.forAll=function(f){for(var u in this.sets)f(this.sets[u],Number(u))},h.prototype.forAllModules=function(f){this.forAll(function(u,g){return u.forAll(f)})},h.prototype.intersection=function(f){var u=new h;return this.forAll(function(g,C){if(C in f.sets){var L=g.intersection(f.sets[C]),I=L.count();I>0&&(u.sets[C]=L,u.n+=I)}}),u},h}();D.LinkSets=t,D.getGroups=function l(h,f,u,g){for(var L=new c(h.length,f,u,g);L.greedyMerge(););var I=[],B=L.getGroupHierarchy(I);return I.forEach(function(M){var R=function(Z){var H=M[Z];"number"==typeof H&&(M[Z]=h[H])};R("source"),R("target")}),{groups:B,powerEdges:I}}},88866:(w,D)=>{"use strict";Object.defineProperty(D,"__esModule",{value:!0});var s=function(){function x(_){this.elem=_,this.subheaps=[]}return x.prototype.toString=function(_){for(var m="",p=!1,t=0;t0)}return null}}return p.prototype.clear=function(){this._root=null,this.size=0},p.prototype.find=function(t){for(var d=this._root;null!==d;){var l=this._comparator(t,d.data);if(0===l)return d.data;d=d.get_child(l>0)}return null},p.prototype.lowerBound=function(t){return this._bound(t,this._comparator)},p.prototype.upperBound=function(t){var d=this._comparator;return this._bound(t,function l(h,f){return d(f,h)})},p.prototype.min=function(){var t=this._root;if(null===t)return null;for(;null!==t.left;)t=t.left;return t.data},p.prototype.max=function(){var t=this._root;if(null===t)return null;for(;null!==t.right;)t=t.right;return t.data},p.prototype.iterator=function(){return new x(this)},p.prototype.each=function(t){for(var l,d=this.iterator();null!==(l=d.next());)t(l)},p.prototype.reach=function(t){for(var l,d=this.iterator();null!==(l=d.prev());)t(l)},p.prototype._bound=function(t,d){for(var l=this._root,h=this.iterator();null!==l;){var f=this._comparator(t,l.data);if(0===f)return h._cursor=l,h;h._ancestors.push(l),l=l.get_child(f>0)}for(var u=h._ancestors.length-1;u>=0;--u)if(d(t,(l=h._ancestors[u]).data)>0)return h._cursor=l,h._ancestors.length=u,h;return h._ancestors.length=0,h},p}();D.TreeBase=c;var x=function(){function p(t){this._tree=t,this._ancestors=[],this._cursor=null}return p.prototype.data=function(){return null!==this._cursor?this._cursor.data:null},p.prototype.next=function(){if(null===this._cursor){var t=this._tree._root;null!==t&&this._minNode(t)}else if(null===this._cursor.right){var d;do{if(d=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.right===d)}else this._ancestors.push(this._cursor),this._minNode(this._cursor.right);return null!==this._cursor?this._cursor.data:null},p.prototype.prev=function(){if(null===this._cursor){var t=this._tree._root;null!==t&&this._maxNode(t)}else if(null===this._cursor.left){var d;do{if(d=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.left===d)}else this._ancestors.push(this._cursor),this._maxNode(this._cursor.left);return null!==this._cursor?this._cursor.data:null},p.prototype._minNode=function(t){for(;null!==t.left;)this._ancestors.push(t),t=t.left;this._cursor=t},p.prototype._maxNode=function(t){for(;null!==t.right;)this._ancestors.push(t),t=t.right;this._cursor=t},p}();D.Iterator=x;var _=function(){function p(t){this.data=t,this.left=null,this.right=null,this.red=!0}return p.prototype.get_child=function(t){return t?this.right:this.left},p.prototype.set_child=function(t,d){t?this.right=d:this.left=d},p}(),m=function(p){function t(d){var l=p.call(this)||this;return l._root=null,l._comparator=d,l.size=0,l}return s(t,p),t.prototype.insert=function(d){var l=!1;if(null===this._root)this._root=new _(d),l=!0,this.size++;else{var h=new _(void 0),f=!1,u=!1,g=null,C=h,L=null,I=this._root;for(C.right=this._root;;){if(null===I?(I=new _(d),L.set_child(f,I),l=!0,this.size++):t.is_red(I.left)&&t.is_red(I.right)&&(I.red=!0,I.left.red=!1,I.right.red=!1),t.is_red(I)&&t.is_red(L)){var B=C.right===g;I===L.get_child(u)?C.set_child(B,t.single_rotate(g,!u)):C.set_child(B,t.double_rotate(g,!u))}var M=this._comparator(I.data,d);if(0===M)break;u=f,null!==g&&(C=g),g=L,L=I,I=I.get_child(f=M<0)}this._root=h.right}return this._root.red=!1,l},t.prototype.remove=function(d){if(null===this._root)return!1;var l=new _(void 0),h=l;h.right=this._root;for(var f=null,u=null,g=null,C=!0;null!==h.get_child(C);){var L=C;u=f,f=h,h=h.get_child(C);var I=this._comparator(d,h.data);if(C=I>0,0===I&&(g=h),!t.is_red(h)&&!t.is_red(h.get_child(C)))if(t.is_red(h.get_child(!C))){var B=t.single_rotate(h,C);f.set_child(L,B),f=B}else if(!t.is_red(h.get_child(!C))){var M=f.get_child(!L);if(null!==M)if(t.is_red(M.get_child(!L))||t.is_red(M.get_child(L))){var R=u.right===f;t.is_red(M.get_child(L))?u.set_child(R,t.double_rotate(f,L)):t.is_red(M.get_child(!L))&&u.set_child(R,t.single_rotate(f,L));var Z=u.get_child(R);Z.red=!0,h.red=!0,Z.left.red=!1,Z.right.red=!1}else f.red=!1,M.red=!0,h.red=!0}}return null!==g&&(g.data=h.data,f.set_child(f.right===h,h.get_child(null===h.left)),this.size--),this._root=l.right,null!==this._root&&(this._root.red=!1),null!==g},t.is_red=function(d){return null!==d&&d.red},t.single_rotate=function(d,l){var h=d.get_child(!l);return d.set_child(!l,h.get_child(l)),h.set_child(l,d),d.red=!0,h.red=!1,h},t.double_rotate=function(d,l){return d.set_child(!l,t.single_rotate(d.get_child(!l),!l)),t.single_rotate(d,l)},t}(c);D.RBTree=m},4068:function(w,D,s){"use strict";var j,c=this&&this.__extends||(j=function(W,et){return(j=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(at,Y){at.__proto__=Y}||function(at,Y){for(var nt in Y)Y.hasOwnProperty(nt)&&(at[nt]=Y[nt])})(W,et)},function(W,et){function at(){this.constructor=W}j(W,et),W.prototype=null===et?Object.create(et):(at.prototype=et.prototype,new at)});Object.defineProperty(D,"__esModule",{value:!0});var x=s(98237),_=s(94655);function m(j){return j.bounds=typeof j.leaves<"u"?j.leaves.reduce(function(W,et){return et.bounds.union(W)},p.empty()):p.empty(),typeof j.groups<"u"&&(j.bounds=j.groups.reduce(function(W,et){return m(et).union(W)},j.bounds)),j.bounds=j.bounds.inflate(j.padding),j.bounds}D.computeGroupBounds=m;var p=function(){function j(W,et,at,Y){this.x=W,this.X=et,this.y=at,this.Y=Y}return j.empty=function(){return new j(Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY)},j.prototype.cx=function(){return(this.x+this.X)/2},j.prototype.cy=function(){return(this.y+this.Y)/2},j.prototype.overlapX=function(W){var et=this.cx(),at=W.cx();return et<=at&&W.x0?at[0]:null},j.prototype.vertices=function(){return[{x:this.x,y:this.y},{x:this.X,y:this.y},{x:this.X,y:this.Y},{x:this.x,y:this.Y}]},j.lineIntersection=function(W,et,at,Y,nt,rt,q,F){var E=at-W,ut=q-nt,ft=Y-et,Dt=F-rt,St=Dt*E-ut*ft;if(0==St)return null;var Qt=W-nt,pe=et-rt,yt=(ut*pe-Dt*Qt)/St,zt=(E*pe-ft*Qt)/St;return yt>=0&&yt<=1&&zt>=0&&zt<=1?{x:W+yt*E,y:et+yt*ft}:null},j.prototype.inflate=function(W){return new j(this.x-W,this.X+W,this.y-W,this.Y+W)},j}();D.Rectangle=p,D.makeEdgeBetween=function t(j,W,et){var at=j.rayIntersection(W.cx(),W.cy())||{x:j.cx(),y:j.cy()},Y=W.rayIntersection(j.cx(),j.cy())||{x:W.cx(),y:W.cy()},nt=Y.x-at.x,rt=Y.y-at.y,q=Math.sqrt(nt*nt+rt*rt),F=q-et;return{sourceIntersection:at,targetIntersection:Y,arrowStart:{x:at.x+F*nt/q,y:at.y+F*rt/q}}},D.makeEdgeTo=function d(j,W,et){var at=W.rayIntersection(j.x,j.y);at||(at={x:W.cx(),y:W.cy()});var Y=at.x-j.x,nt=at.y-j.y,rt=Math.sqrt(Y*Y+nt*nt);return{x:at.x-et*Y/rt,y:at.y-et*nt/rt}};var l=function j(W,et,at){this.v=W,this.r=et,this.pos=at,this.prev=u(),this.next=u()},h=function j(W,et,at){this.isOpen=W,this.v=et,this.pos=at};function f(j,W){return j.pos>W.pos?1:j.pos0&&(j[at].insert(nt),nt[Y].insert(j))};et("next","prev"),et("prev","next")}};function L(j,W,et,at){void 0===at&&(at=!1);var Y=j.padding,nt=typeof j.groups<"u"?j.groups.length:0,rt=typeof j.leaves<"u"?j.leaves.length:0,q=nt?j.groups.reduce(function(ie,Mt){return ie.concat(L(Mt,W,et,!0))},[]):[],F=(at?2:0)+rt+nt,E=new Array(F),ut=new Array(F),ft=0,Dt=function(ie,Mt){ut[ft]=ie,E[ft++]=Mt};if(at){var St=j.bounds,Qt=W.getCentre(St),pe=W.getSize(St)/2,wt=W.getOpen(St),yt=W.getClose(St),Nt=Qt-pe+Y/2,zt=Qt+pe-Y/2;j.minVar.desiredPosition=Nt,Dt(W.makeRect(wt,yt,Nt,Y),j.minVar),j.maxVar.desiredPosition=zt,Dt(W.makeRect(wt,yt,zt,Y),j.maxVar)}rt&&j.leaves.forEach(function(ie){return Dt(ie.bounds,ie.variable)}),nt&&j.groups.forEach(function(ie){var Mt=ie.bounds;Dt(W.makeRect(W.getOpen(Mt),W.getClose(Mt),W.getCentre(Mt),W.getSize(Mt)),ie.minVar)});var de=I(ut,E,W,et);return nt&&(E.forEach(function(ie){ie.cOut=[],ie.cIn=[]}),de.forEach(function(ie){ie.left.cOut.push(ie),ie.right.cIn.push(ie)}),j.groups.forEach(function(ie){var Mt=(ie.padding-W.getSize(ie.bounds))/2;ie.minVar.cIn.forEach(function(te){return te.gap+=Mt}),ie.minVar.cOut.forEach(function(te){te.left=ie.maxVar,te.gap+=Mt})})),q.concat(de)}function I(j,W,et,at){var Y,nt=j.length,rt=2*nt;console.assert(W.length>=nt);var q=new Array(rt);for(Y=0;Yq[at]&&(q[at]=F)}rt=q})}},j.prototype.createAlignment=function(W){var et=this,at=this.nodes[W.offsets[0].node].variable;this.makeFeasible(W);var Y="x"===W.axis?this.xConstraints:this.yConstraints;W.offsets.slice(1).forEach(function(nt){Y.push(new x.Constraint(at,et.nodes[nt.node].variable,nt.offset,!0))})},j.prototype.createConstraints=function(W){var et=this,at=function(Y){return typeof Y.type>"u"||"separation"===Y.type};this.xConstraints=W.filter(function(Y){return"x"===Y.axis&&at(Y)}).map(function(Y){return et.createSeparation(Y)}),this.yConstraints=W.filter(function(Y){return"y"===Y.axis&&at(Y)}).map(function(Y){return et.createSeparation(Y)}),W.filter(function(Y){return"alignment"===Y.type}).forEach(function(Y){return et.createAlignment(Y)})},j.prototype.setupVariablesAndBounds=function(W,et,at,Y){this.nodes.forEach(function(nt,rt){nt.fixed?(nt.variable.weight=nt.fixedWeight?nt.fixedWeight:1e3,at[rt]=Y(nt)):nt.variable.weight=1;var q=(nt.width||0)/2,F=(nt.height||0)/2,E=W[rt],ut=et[rt];nt.bounds=new p(E-q,E+q,ut-F,ut+F)})},j.prototype.xProject=function(W,et,at){!this.rootGroup&&!this.avoidOverlaps&&!this.xConstraints||this.project(W,et,W,at,function(Y){return Y.px},this.xConstraints,H,function(Y){return Y.bounds.setXCentre(at[Y.variable.index]=Y.variable.position())},function(Y){var nt=at[Y.minVar.index]=Y.minVar.position(),rt=at[Y.maxVar.index]=Y.maxVar.position(),q=Y.padding/2;Y.bounds.x=nt-q,Y.bounds.X=rt+q})},j.prototype.yProject=function(W,et,at){!this.rootGroup&&!this.yConstraints||this.project(W,et,et,at,function(Y){return Y.py},this.yConstraints,G,function(Y){return Y.bounds.setYCentre(at[Y.variable.index]=Y.variable.position())},function(Y){var nt=at[Y.minVar.index]=Y.minVar.position(),rt=at[Y.maxVar.index]=Y.maxVar.position(),q=Y.padding/2;Y.bounds.y=nt-q,Y.bounds.Y=rt+q})},j.prototype.projectFunctions=function(){var W=this;return[function(et,at,Y){return W.xProject(et,at,Y)},function(et,at,Y){return W.yProject(et,at,Y)}]},j.prototype.project=function(W,et,at,Y,nt,rt,q,F,E){this.setupVariablesAndBounds(W,et,Y,nt),this.rootGroup&&this.avoidOverlaps&&(m(this.rootGroup),rt=rt.concat(q(this.rootGroup))),this.solve(this.variables,rt,at,Y),this.nodes.forEach(F),this.rootGroup&&this.avoidOverlaps&&(this.groups.forEach(E),m(this.rootGroup))},j.prototype.solve=function(W,et,at,Y){var nt=new x.Solver(W,et);nt.setStartingPositions(at),nt.setDesiredPositions(Y),nt.solve()},j}();D.Projection=st},33858:(w,D,s)=>{"use strict";Object.defineProperty(D,"__esModule",{value:!0});var c=s(88866),x=function t(d,l){this.id=d,this.distance=l},_=function t(d){this.id=d,this.neighbours=[]},m=function t(d,l,h){this.node=d,this.prev=l,this.d=h},p=function(){function t(d,l,h,f,u){this.n=d,this.es=l,this.neighbours=new Array(this.n);for(var g=this.n;g--;)this.neighbours[g]=new _(g);for(g=this.es.length;g--;){var C=this.es[g],L=h(C),I=f(C),B=u(C);this.neighbours[L].neighbours.push(new x(I,B)),this.neighbours[I].neighbours.push(new x(L,B))}}return t.prototype.DistanceMatrix=function(){for(var d=new Array(this.n),l=0;lM&&(I.d=M,I.prev=C,h.reduceKey(I.q,I,function(Z,H){return Z.q=H}))}}return u},t}();D.Calculator=p},98237:(w,D)=>{"use strict";Object.defineProperty(D,"__esModule",{value:!0});var s=function(){function d(l){this.scale=l,this.AB=0,this.AD=0,this.A2=0}return d.prototype.addVariable=function(l){var h=this.scale/l.scale,u=l.weight;this.AB+=u*h*(l.offset/l.scale),this.AD+=u*h*l.desiredPosition,this.A2+=u*h*h},d.prototype.getPosn=function(){return(this.AD-this.AB)/this.A2},d}();D.PositionStats=s;var c=function(){function d(l,h,f,u){void 0===u&&(u=!1),this.left=l,this.right=h,this.gap=f,this.equality=u,this.active=!1,this.unsatisfiable=!1,this.left=l,this.right=h,this.gap=f,this.equality=u}return d.prototype.slack=function(){return this.unsatisfiable?Number.MAX_VALUE:this.right.scale*this.right.position()-this.gap-this.left.scale*this.left.position()},d}();D.Constraint=c;var x=function(){function d(l,h,f){void 0===h&&(h=1),void 0===f&&(f=1),this.desiredPosition=l,this.weight=h,this.scale=f,this.offset=0}return d.prototype.dfdv=function(){return 2*this.weight*(this.position()-this.desiredPosition)},d.prototype.position=function(){return(this.block.ps.scale*this.block.posn+this.offset)/this.scale},d.prototype.visitNeighbours=function(l,h){var f=function(u,g){return u.active&&l!==g&&h(u,g)};this.cOut.forEach(function(u){return f(u,u.right)}),this.cIn.forEach(function(u){return f(u,u.left)})},d}();D.Variable=x;var _=function(){function d(l){this.vars=[],l.offset=0,this.ps=new s(l.scale),this.addVariable(l)}return d.prototype.addVariable=function(l){l.block=this,this.vars.push(l),this.ps.addVariable(l),this.posn=this.ps.getPosn()},d.prototype.updateWeightedPosition=function(){this.ps.AB=this.ps.AD=this.ps.A2=0;for(var l=0,h=this.vars.length;l=0?this.inactive.push(l):this.bs.merge(l)}}},d.prototype.solve=function(){this.satisfy();for(var l=Number.MAX_VALUE,h=this.bs.cost();Math.abs(l-h)>1e-4;)this.satisfy(),l=h,h=this.bs.cost();return h},d.LAGRANGIAN_TOLERANCE=-1e-4,d.ZERO_UPPERBOUND=-1e-10,d}();D.Solver=p,D.removeOverlapInOneDimension=function t(d,l,h){for(var f=d.map(function(K){return new x(K.desiredCenter)}),u=[],g=d.length,C=0;C{l.r(et),l.d(et,{FacilitiesModule:()=>So});var m=l(36895),v=l(94364),it=l(86353),V=l(36769),bt=l(69024),h=l(61744),p=l(9244),d=l(81591),M=l(21029),yt=l(54037),vt=l(22158),xt=l(82722),t=l(94650),u=l(65412),Et=l(77968),Dt=l(15003),R=l(97392),S=l(4859),T=l(51572),J=l(10266),st=l(61283),Lt=l(4235),B=l(34198),j=l(55660),f=l(89383);function Zt(i,n){1&i&&t._UZ(0,"mat-spinner",3)}function Ot(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.editFacility())}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA()()}}function Rt(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.deleteFacility())}),t.TgZ(1,"mat-icon"),t._uU(2,"delete_forever"),t.qZA()()}}const Ft=function(){return{color:"black"}},at=function(i){return["/facilities",i]};function Nt(i,n){if(1&i&&(t.TgZ(0,"div")(1,"div",4),t._UZ(2,"mat-icon",5),t.ALo(3,"translate"),t.TgZ(4,"div",6)(5,"div",7)(6,"a",8),t.NdJ("auxclick",function(s){return s.preventDefault()}),t._uU(7),t.qZA(),t.TgZ(8,"span",9),t._uU(9),t.qZA(),t.YNc(10,Ot,3,0,"button",10),t.YNc(11,Rt,3,0,"button",10),t.qZA(),t.TgZ(12,"span",11),t._uU(13),t.ALo(14,"translate"),t.ALo(15,"translate"),t.qZA()()(),t._UZ(16,"app-animated-router-outlet"),t.qZA()),2&i){const e=t.oxw();t.xp6(2),t.s9C("matTooltip",t.lcZ(3,11,"FACILITY_DETAIL.ENTITY")),t.Q6J("ngStyle",t.DdM(17,Ft)),t.xp6(4),t.Q6J("perunWebAppsMiddleClickRouterLink",t.VKq(18,at,e.facility.id.toString()))("routerLink",t.VKq(20,at,e.facility.id)),t.xp6(1),t.Oqu(e.facility.name),t.xp6(2),t.hij(" \xa0#",e.facility.id," "),t.xp6(1),t.Q6J("ngIf",e.editFacilityAuth),t.xp6(1),t.Q6J("ngIf",e.deleteAuth),t.xp6(2),t.lnq(" ",t.lcZ(14,13,"FACILITY_DETAIL.ENTITY"),", ",t.lcZ(15,15,"FACILITY_DETAIL.DESCRIPTION"),": ",e.facility.description," ")}}let kt=(()=>{class i extends((0,vt.T)()){constructor(e,s,a,o,r,_,C,b,L){super(),this.dialog=e,this.facilityManager=s,this.route=a,this.sideMenuService=o,this.sideMenuItemService=r,this.guiAuthResolver=_,this.router=C,this.entityStorageService=b,this.reloadEntityDetail=L,this.editFacilityAuth=!1,this.deleteAuth=!1,this.loading=!1}ngOnInit(){this.reloadData(),this.reloadEntityDetail.entityDetailChange.pipe((0,xt.R)(this.destroyed$)).subscribe(()=>{this.reloadData()})}reloadData(){this.loading=!0,this.route.params.subscribe(e=>{const s=Number(e.facilityId);this.facilityManager.getFacilityById(s).subscribe(a=>{this.facility=a,this.entityStorageService.setEntity({id:a.id,beanName:a.beanName}),this.setMenuItems(),this.editFacilityAuth=this.guiAuthResolver.isAuthorized("updateFacility_Facility_policy",[this.facility]),this.deleteAuth=this.guiAuthResolver.isAuthorized("deleteFacility_Facility_Boolean_policy",[this.facility]),(0,p.sF)("facilities",this.facility),(0,p.XI)(this.facility),this.loading=!1},()=>this.loading=!1)})}setMenuItems(){const e=this.sideMenuItemService.parseFacility(this.facility);this.sideMenuService.setFacilityMenuItems([e])}editFacility(){const e=(0,p.kZ)();e.width="450px",e.data={theme:"facility-theme",facility:this.facility,dialogType:M.Eg.FACILITY},this.dialog.open(M.rd,e).afterClosed().subscribe(a=>{a&&this.facilityManager.getFacilityById(this.facility.id).subscribe(o=>{this.facility=o,this.setMenuItems()})})}deleteFacility(){const e=(0,p.kZ)();e.width="500px",e.data={theme:"facility-theme",facility:this.facility},this.dialog.open(yt.Y,e).afterClosed().subscribe(a=>{a&&this.router.navigate([""],{queryParamsHandling:"preserve"})})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.uw),t.Y36(h.IQ),t.Y36(v.gz),t.Y36(Et.D),t.Y36(bt.V),t.Y36(d.x4),t.Y36(v.F0),t.Y36(d.fb),t.Y36(Dt.G))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-detail-page"]],features:[t.qOj],decls:4,vars:2,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","facility-theme"],["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[1,"d-flex","page-title-headtitle"],["svgIcon","perun-facility-black",1,"perun-icon","perun-icon-detail",3,"matTooltip","ngStyle"],[1,"page-title-block"],[1,"page-title-headline","d-flex","align-items-center"],[1,"facility-link",3,"perunWebAppsMiddleClickRouterLink","routerLink","auxclick"],[1,"text-muted"],["mat-icon-button","",3,"click",4,"ngIf"],[1,"mt-1","entity-info"],["mat-icon-button","",3,"click"]],template:function(e,s){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"perun-web-apps-back-button"),t.YNc(2,Zt,1,0,"mat-spinner",1),t.YNc(3,Nt,17,22,"div",2),t.qZA()),2&e&&(t.xp6(2),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading&&void 0!==s.facility))},dependencies:[m.O5,m.PC,v.yS,R.Hw,S.lW,T.Ou,J.gM,st.A,Lt.W,B.Y,j.Q,f.X$],data:{animation:[V.Ji]}}),i})();var nt=l(71135);function wt(i,n){1&i&&t._UZ(0,"mat-spinner",2)}function Yt(i,n){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"perun-web-apps-menu-buttons-field",3),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("items",e.navItems)("size","small")}}let Ut=(()=>{class i{constructor(e,s,a,o){this.facilityManager=e,this.authResolver=s,this.entityStorageService=a,this.routePolicyService=o,this.navItems=[],this.loading=!1}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.initItems(),this.loading=!1}initItems(){this.navItems=[],this.routePolicyService.canNavigate("facilities-resources",this.facility)&&this.navItems.push({cssIcon:"perun-manage-facility",url:`/facilities/${this.facility.id}/resources`,label:"MENU_ITEMS.FACILITY.RESOURCES",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-allowed-users",this.facility)&&this.navItems.push({cssIcon:"perun-user",url:`/facilities/${this.facility.id}/allowed-users`,label:"MENU_ITEMS.FACILITY.ALLOWED_USERS",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-allowed-groups",this.facility)&&this.navItems.push({cssIcon:"perun-group",url:`/facilities/${this.facility.id}/allowed-groups`,label:"MENU_ITEMS.FACILITY.ALLOWED_GROUPS",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-services-status",this.facility)&&this.navItems.push({cssIcon:"perun-service-status",url:`/facilities/${this.facility.id}/services-status`,label:"MENU_ITEMS.FACILITY.SERVICES_STATUS",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-services-destinations",this.facility)&&this.navItems.push({cssIcon:"perun-service_destination",url:`/facilities/${this.facility.id}/services-destinations`,label:"MENU_ITEMS.FACILITY.SERVICES_DESTINATIONS",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-hosts",this.facility)&&this.navItems.push({cssIcon:"perun-hosts",url:`/facilities/${this.facility.id}/hosts`,label:"MENU_ITEMS.FACILITY.HOSTS",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-attributes",this.facility)&&this.navItems.push({cssIcon:"perun-attributes",url:`/facilities/${this.facility.id}/attributes`,label:"MENU_ITEMS.FACILITY.ATTRIBUTES",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-settings",this.facility)&&this.navItems.push({cssIcon:"perun-settings2",url:`/facilities/${this.facility.id}/settings`,label:"MENU_ITEMS.FACILITY.SETTINGS",style:"facility-btn"})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.IQ),t.Y36(d.x4),t.Y36(d.fb),t.Y36(d.Ip))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-overview"]],hostVars:2,hostBindings:function(e,s){2&e&&t.ekj("router-component",s.true)},decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"items","size"]],template:function(e,s){1&e&&(t.YNc(0,wt,1,0,"mat-spinner",0),t.YNc(1,Yt,2,2,"div",1)),2&e&&(t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[m.O5,T.Ou,nt.L]}),i})();var Mt=l(34904),Jt=l(37380),Qt=l(98918),Ht=l(4675);let Gt=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-settings"]],hostVars:2,hostBindings:function(e,s){2&e&&t.ekj("router-component",s.true)},decls:1,vars:0,template:function(e,s){1&e&&t._UZ(0,"app-animated-router-outlet")},dependencies:[st.A],data:{animation:[V.Ji]}}),i})();function Pt(i,n){1&i&&t._UZ(0,"mat-spinner",2)}function qt(i,n){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"perun-web-apps-menu-buttons-field",3),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("items",e.items)("size","small")}}let Vt=(()=>{class i{constructor(e,s,a,o){this.facilityManager=e,this.authResolver=s,this.entityStorageService=a,this.routePolicyService=o,this.items=[],this.loading=!1}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.initItems(),this.loading=!1}initItems(){this.items=[],this.routePolicyService.canNavigate("facilities-settings-owners",this.facility)&&this.items.push({cssIcon:"perun-owner-grey",url:`/facilities/${this.facility.id}/settings/owners`,label:"MENU_ITEMS.FACILITY.OWNERS",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-settings-managers",this.facility)&&this.items.push({cssIcon:"perun-manager",url:`/facilities/${this.facility.id}/settings/managers`,label:"MENU_ITEMS.FACILITY.MANAGERS",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-settings-security-teams",this.facility)&&this.items.push({cssIcon:"perun-security-teams",url:`/facilities/${this.facility.id}/settings/security-teams`,label:"MENU_ITEMS.FACILITY.SECURITY_TEAMS",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-settings-blacklist",this.facility)&&this.items.push({cssIcon:"perun-black-list",url:`/facilities/${this.facility.id}/settings/blacklist`,label:"MENU_ITEMS.FACILITY.BLACKLIST",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-settings-bans",this.facility)&&this.items.push({cssIcon:"perun-ban",url:`/facilities/${this.facility.id}/settings/bans`,label:"MENU_ITEMS.FACILITY.BANS",style:"facility-btn"})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.IQ),t.Y36(d.x4),t.Y36(d.fb),t.Y36(d.Ip))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-settings-overview"]],hostVars:2,hostBindings:function(e,s){2&e&&t.ekj("router-component",s.true)},decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"items","size"]],template:function(e,s){1&e&&(t.YNc(0,Pt,1,0,"mat-spinner",0),t.YNc(1,qt,2,2,"div",1)),2&e&&(t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[m.O5,T.Ou,nt.L]}),i})();var Q=l(3848),Bt=l(19191),jt=l(12651);function Kt(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.hij(" ",t.lcZ(1,1,"FACILITY_DETAIL.ENTITY")," ")}function zt(i,n){if(1&i&&t._UZ(0,"app-one-entity-attribute-page",4),2&i){const e=t.oxw();t.Q6J("entityId",e.facility.id)("entity","facility")}}function $t(i,n){1&i&&(t._uU(0),t.ALo(1,"translate"),t.ALo(2,"translate")),2&i&&t.AsE(" ",t.lcZ(1,2,"FACILITY_DETAIL.ENTITY")," - ",t.lcZ(2,4,"ADMIN_USER.ENTITY")," ")}function Wt(i,n){if(1&i&&t._UZ(0,"app-two-entity-attribute-page",5),2&i){const e=t.oxw(2);t.Q6J("firstEntity","facility")("firstEntityId",e.facility.id)("secondEntity","user")}}function Xt(i,n){1&i&&(t.TgZ(0,"mat-tab"),t.YNc(1,$t,3,6,"ng-template",1),t.YNc(2,Wt,1,3,"ng-template",2),t.qZA())}let te=(()=>{class i{constructor(e,s){this.authResolver=e,this.entityStorageService=s}ngOnInit(){this.facility=this.entityStorageService.getEntity(),this.facilityUserAttAuth=this.authResolver.isAuthorized("getAssignedUsers_Facility_policy",[this.facility])}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(d.x4),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-attributes"]],hostVars:2,hostBindings:function(e,s){2&e&&t.ekj("router-component",s.true)},decls:9,vars:4,consts:[[1,"page-subtitle"],["matTabLabel",""],["matTabContent",""],[4,"ngIf"],[3,"entityId","entity"],[3,"firstEntity","firstEntityId","secondEntity"]],template:function(e,s){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-tab-group")(5,"mat-tab"),t.YNc(6,Kt,2,3,"ng-template",1),t.YNc(7,zt,1,2,"ng-template",2),t.qZA(),t.YNc(8,Xt,3,0,"mat-tab",3),t.qZA()()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,2,"FACILITY_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),t.xp6(6),t.Q6J("ngIf",s.facilityUserAttAuth))},dependencies:[m.O5,Q.SP,Q.uD,Q.uX,Q.Vc,Bt.Y,jt.t,f.X$]}),i})();var ee=l(60113),ie=l(16500),se=l(92090),ae=l(258),g=l(24006),H=l(68675),G=l(54004),F=l(19516),ot=l(47957),lt=l(3238),N=l(59549),K=l(284),Z=l(56709),ct=l(31359);function ne(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-option",10),t.NdJ("onSelectionChange",function(){const o=t.CHM(e).$implicit,r=t.oxw(3);return t.KtG(r.onSelectedService(o))}),t._uU(1),t.qZA()}if(2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.name," ")}}function oe(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-form-field",6)(1,"input",7),t.NdJ("keyup",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(o.updatedSerVal(a))}),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"mat-autocomplete",8,9)(5,"mat-option",10),t.NdJ("onSelectionChange",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.onSelectedService("NOT_SELECTED"))}),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"mat-option",10),t.NdJ("onSelectionChange",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.onSelectedService("ALL"))}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.YNc(11,ne,2,2,"mat-option",11),t.ALo(12,"async"),t.qZA()()}if(2&i){const e=t.MAs(4),s=t.oxw(2);t.xp6(1),t.s9C("placeholder",t.lcZ(2,9,"FACILITY_DETAIL.SERVICE_CONFIG.SERVICE_SELECT")),t.Q6J("formControl",s.serviceField)("matAutocomplete",e),t.xp6(2),t.Q6J("displayWith",s.serviceDisplayFn.bind(s)),t.xp6(2),t.Q6J("value","NOT_SELECTED"),t.xp6(1),t.hij(" ",t.lcZ(7,11,"FACILITY_DETAIL.SERVICE_CONFIG.NOT_SELECTED")," "),t.xp6(2),t.Q6J("value","ALL"),t.xp6(1),t.hij(" ",t.lcZ(10,13,"FACILITY_DETAIL.SERVICE_CONFIG.ALL")," "),t.xp6(2),t.Q6J("ngForOf",t.lcZ(12,15,s.filteredServices))}}function le(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-option",10),t.NdJ("onSelectionChange",function(){const o=t.CHM(e).$implicit,r=t.oxw(3);return t.KtG(r.onSelectedResource(o))}),t._uU(1),t.qZA()}if(2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.name," ")}}function ce(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-form-field",6)(1,"input",12),t.NdJ("keyup",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(o.updatedResVal(a))}),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"mat-autocomplete",8,9),t.YNc(5,le,2,2,"mat-option",11),t.ALo(6,"async"),t.qZA()()}if(2&i){const e=t.MAs(4),s=t.oxw(2);t.xp6(1),t.s9C("placeholder",t.lcZ(2,5,"FACILITY_DETAIL.SERVICE_CONFIG.RES_SELECT")),t.Q6J("formControl",s.resourceField)("matAutocomplete",e),t.xp6(2),t.Q6J("displayWith",s.resourceDisplayFn.bind(s)),t.xp6(2),t.Q6J("ngForOf",t.lcZ(6,7,s.filteredResources))}}function re(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-option",10),t.NdJ("onSelectionChange",function(){const o=t.CHM(e).$implicit,r=t.oxw(3);return t.KtG(r.onSelectedGroup(o))}),t._uU(1),t.qZA()}if(2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.name," ")}}function ue(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-form-field",6)(1,"input",12),t.NdJ("keyup",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(o.updatedGroupVal(a))}),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"mat-autocomplete",13,9),t.YNc(5,re,2,2,"mat-option",11),t.ALo(6,"async"),t.qZA()()}if(2&i){const e=t.MAs(4),s=t.oxw(2);t.xp6(1),t.s9C("placeholder",t.lcZ(2,5,"FACILITY_DETAIL.SERVICE_CONFIG.GROUP_SELECT")),t.Q6J("formControl",s.groupField)("matAutocomplete",e),t.xp6(2),t.Q6J("displayWith",s.groupDisplayFn.bind(s)),t.xp6(2),t.Q6J("ngForOf",t.lcZ(6,7,s.filteredGroups))}}function pe(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-option",10),t.NdJ("onSelectionChange",function(){const o=t.CHM(e).$implicit,r=t.oxw(3);return t.KtG(r.onSelectedMember(o))}),t._uU(1),t.ALo(2,"userFullName"),t.qZA()}if(2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",t.lcZ(2,2,e.user)," ")}}function de(i,n){if(1&i&&(t.TgZ(0,"mat-form-field",6),t._UZ(1,"input",14),t.ALo(2,"translate"),t.TgZ(3,"mat-autocomplete",8,9),t.YNc(5,pe,3,4,"mat-option",11),t.ALo(6,"async"),t.qZA()()),2&i){const e=t.MAs(4),s=t.oxw(2);t.xp6(1),t.s9C("placeholder",t.lcZ(2,5,"FACILITY_DETAIL.SERVICE_CONFIG.MEMBER_SELECT")),t.Q6J("matAutocomplete",e)("formControl",s.memberField),t.xp6(2),t.Q6J("displayWith",s.memberDisplayFn.bind(s)),t.xp6(2),t.Q6J("ngForOf",t.lcZ(6,7,s.filteredMembers))}}function _e(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",3),t.YNc(1,oe,13,17,"mat-form-field",4),t.TgZ(2,"mat-checkbox",5),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.onOfferAllServices(a))}),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.YNc(5,ce,7,9,"mat-form-field",4),t.YNc(6,ue,7,9,"mat-form-field",4),t.YNc(7,de,7,9,"mat-form-field",4),t.qZA()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",void 0!==e.services),t.xp6(2),t.hij(" ",t.lcZ(4,5,"FACILITY_DETAIL.SERVICE_CONFIG.ALL_SERVICES")," "),t.xp6(2),t.Q6J("ngIf",void 0!==e.resources&&0!==e.resources.length),t.xp6(1),t.Q6J("ngIf",void 0!==e.selectedResource&&void 0!==e.groups&&0!==e.groups.length),t.xp6(1),t.Q6J("ngIf",void 0!==e.selectedGroup&&void 0!==e.members&&0!==e.members.length)}}function me(i,n){if(1&i&&t._UZ(0,"perun-web-apps-service-configurator",15),2&i){const e=t.oxw();t.Q6J("facility",e.facility)("resource",e.selectedResource)("group",e.selectedGroup)("member",e.selectedMember)("service",e.selectedService)}}let he=(()=>{class i{constructor(e,s,a,o,r,_,C){this.facilityManager=e,this.resourceManager=s,this.serviceManager=a,this.membersManager=o,this.namePipe=r,this.translate=_,this.entityStorageService=C,this.serviceField=new g.p4,this.resourceField=new g.p4,this.groupField=new g.p4,this.memberField=new g.p4,this.allowedStatuses=["INVALID","VALID"],this.selectedService="NOT_SELECTED",this.attrNames=[],this.translate.get("FACILITY_DETAIL.SERVICE_CONFIG.ALL").subscribe(b=>this.serviceAllTranslation=b),this.translate.get("FACILITY_DETAIL.SERVICE_CONFIG.NOT_SELECTED").subscribe(b=>this.serviceNotSelectedTranslation=b)}ngOnInit(){this.facility=this.entityStorageService.getEntity(),this.facilityManager.getFacilityById(this.facility.id).subscribe(e=>{this.facility=e,this.facilityManager.getAssignedResourcesForFacility(e.id).subscribe(s=>this.resources=s),this.serviceManager.getAssignedServices(e.id).subscribe(s=>this.services=s)}),this.filteredServices=this.serviceField.valueChanges.pipe((0,H.O)(""),(0,G.U)(e=>this._filterServices(e))),this.filteredResources=this.resourceField.valueChanges.pipe((0,H.O)(""),(0,G.U)(e=>this._filterResources(e))),this.filteredGroups=this.groupField.valueChanges.pipe((0,H.O)(""),(0,G.U)(e=>this._filterGroups(e))),this.filteredMembers=this.memberField.valueChanges.pipe((0,H.O)(""),(0,G.U)(e=>this._filterMembers(e)))}onSelectedService(e){this.selectedService=e}onSelectedResource(e){this.selectedResource=e,void 0!==this.selectedResource?(this.resourceManager.getAssignedGroups(this.selectedResource.id).subscribe(s=>this.groups=s),this.selectedGroup=void 0,this.selectedMember=void 0):this.groups=void 0}onOfferAllServices(e){e.checked||this.serviceManager.getAssignedServices(this.facility.id).subscribe(s=>this.services=s)}onSelectedGroup(e){this.selectedGroup=e,void 0!==this.selectedGroup?(this.membersManager.getCompleteRichMembersForGroup(this.selectedGroup.id,!1,this.allowedStatuses,[],this.attrNames).subscribe(s=>this.members=s),this.selectedMember=void 0):this.members=void 0}onSelectedMember(e){this.selectedMember=e}serviceDisplayFn(e){if(null!==e)return"ALL"===e?this.serviceAllTranslation:"NOT_SELECTED"===e?this.serviceNotSelectedTranslation:"string"!=typeof e?e.name:e}resourceDisplayFn(e){if(null!==e)return e.name}groupDisplayFn(e){if(null!==e)return e.name}memberDisplayFn(e){if(null!==e)return this.namePipe.transform(e.user)}updatedSerVal(e){""===e.target.value&&(this.selectedService="NOT_SELECTED")}updatedResVal(e){""===e.target.value&&(this.groups=void 0,this.members=void 0)}updatedGroupVal(e){""===e.target.value&&(this.members=void 0)}_filterServices(e){const s=e.toString().toLowerCase();return this.services.filter(a=>a.name.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").includes(s))}_filterResources(e){const s=e.toString().toLowerCase();return this.resources.filter(a=>a.name.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").includes(s))}_filterGroups(e){const s=e.toString().toLowerCase();return this.groups.filter(a=>a.name.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").includes(s))}_filterMembers(e){const s=e.toString().toLowerCase();return this.members.filter(a=>this.namePipe.transform(a.user).toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").includes(s))}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.IQ),t.Y36(h.xk),t.Y36(h.KK),t.Y36(h.uq),t.Y36(F.dp),t.Y36(f.sK),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-service-config"]],decls:6,vars:5,consts:[[1,"page-subtitle"],["class","col-12 col-lg-6 mb-2",4,"ngIf"],[3,"facility","resource","group","member","service",4,"ngIf"],[1,"col-12","col-lg-6","mb-2"],["class","w-100",4,"ngIf"],[3,"change"],[1,"w-100"],["matInput","","type","text",3,"placeholder","formControl","matAutocomplete","keyup"],["autoActiveFirstOption","",3,"displayWith"],["auto","matAutocomplete"],[3,"value","onSelectionChange"],[3,"value","onSelectionChange",4,"ngFor","ngForOf"],["matInput","","type","text",3,"formControl","matAutocomplete","placeholder","keyup"],["autoActiveFirstOption","",3,"displayWith","ngClass"],["matInput","","type","text",3,"matAutocomplete","placeholder","formControl"],[3,"facility","resource","group","member","service"]],template:function(e,s){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,_e,8,7,"div",1),t.YNc(5,me,1,5,"perun-web-apps-service-configurator",2),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,3,"FACILITY_DETAIL.SERVICE_CONFIG.TITLE")),t.xp6(2),t.Q6J("ngIf",!!s.facility),t.xp6(1),t.Q6J("ngIf",!!s.facility))},dependencies:[m.mk,m.sg,m.O5,ot.XC,ot.ZL,lt.ey,N.KE,K.Nt,g.Fj,g.JJ,g.oH,Z.oG,m.Ov,f.X$,ct.d]}),i})();var rt=l(28361);let ut=(()=>{class i{constructor(e,s,a){this.facilityService=e,this.guiAuthResolver=s,this.entityStorageService=a,this.disableRouting=!1,this.disableSelf=!1,this.availableRoles=[],this.selected="user",this.type="Facility",this.theme="facility-theme"}ngOnInit(){this.facility=this.entityStorageService.getEntity(),this.guiAuthResolver.assignAvailableRoles(this.availableRoles,"Facility")}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.IQ),t.Y36(d.x4),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-perun-web-apps-facility-settings-managers"]],hostVars:2,hostBindings:function(e,s){2&e&&t.ekj("router-component",s.true)},inputs:{disableRouting:"disableRouting",disableSelf:"disableSelf"},decls:1,vars:6,consts:[[3,"complementaryObject","availableRoles","complementaryObjectType","disableSelf","disableRouting","theme"]],template:function(e,s){1&e&&t._UZ(0,"app-managers-page",0),2&e&&t.Q6J("complementaryObject",s.facility)("availableRoles",s.availableRoles)("complementaryObjectType",s.type)("disableSelf",s.disableSelf)("disableRouting",s.disableRouting)("theme",s.theme)},dependencies:[rt.s]}),i})();var x=l(10036),A=l(95017),fe=l(89466),ge=l(84385);function Te(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function Se(i,n){1&i&&(t.TgZ(0,"mat-option",19),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.ADD_SERVICE_DESTINATION.SELECTION_ALL")))}function Ce(i,n){1&i&&(t.TgZ(0,"mat-option",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.ADD_SERVICE_DESTINATION.NO_SERVICE")))}function Ae(i,n){if(1&i&&(t.TgZ(0,"mat-option",21),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.name," ")}}function Ie(i,n){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_SERVICE_DESTINATION.CHOOSE_SERVICE")," "))}function be(i,n){if(1&i&&(t.TgZ(0,"mat-option",21),t._uU(1),t.qZA()),2&i){const e=n.$implicit,s=t.oxw(2);t.Q6J("value",e),t.xp6(1),t.hij(" ",s.getTypeForView(e)," ")}}function ye(i,n){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_SERVICE_DESTINATION.REQUIRED_FIELD")," "))}function ve(i,n){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_SERVICE_DESTINATION.INVALID_DESTINATION")," "))}function xe(i,n){if(1&i&&(t.TgZ(0,"mat-form-field",22),t._UZ(1,"input",23),t.YNc(2,ye,3,3,"mat-error",13),t.YNc(3,ve,3,3,"mat-error",13),t.qZA()),2&i){const e=t.oxw(2);t.xp6(1),t.s9C("placeholder",e.getTypeForView(e.selectedType)),t.Q6J("formControl",e.destinationControl),t.xp6(1),t.Q6J("ngIf","host"===e.selectedType&&!e.useFacilityHost&&e.destinationControl.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.destinationControl.hasError("invalidDestination"))}}function Ee(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-checkbox",24),t.NdJ("ngModelChange",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(o.useFacilityHost=a)}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw(2);t.Q6J("ngModel",e.useFacilityHost),t.xp6(1),t.hij(" ",t.lcZ(2,2,"DIALOGS.ADD_SERVICE_DESTINATION.USE_FACILITY_HOST")," ")}}function De(i,n){if(1&i&&(t.TgZ(0,"mat-option",21),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function Le(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",7)(1,"div",8),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-form-field")(5,"mat-select",9),t.ALo(6,"translate"),t.YNc(7,Se,3,3,"mat-option",10),t.YNc(8,Ce,3,3,"mat-option",11),t.YNc(9,Ae,2,2,"mat-option",12),t.qZA(),t.YNc(10,Ie,3,3,"mat-error",13),t.qZA(),t.TgZ(11,"mat-checkbox",14),t.NdJ("change",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.getServices())})("ngModelChange",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.servicesOnFacility=a)}),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.TgZ(14,"mat-form-field")(15,"mat-select",15),t.NdJ("ngModelChange",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.selectedType=a)})("selectionChange",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.destinationControl.updateValueAndValidity())}),t.ALo(16,"translate"),t.YNc(17,be,2,2,"mat-option",12),t.qZA()(),t.YNc(18,xe,4,4,"mat-form-field",16),t.YNc(19,Ee,3,4,"mat-checkbox",17),t.TgZ(20,"mat-form-field")(21,"mat-select",18),t.NdJ("ngModelChange",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.selectedPropagation=a)}),t.ALo(22,"translate"),t.YNc(23,De,2,2,"mat-option",12),t.qZA()(),t.TgZ(24,"div",8),t._uU(25),t.ALo(26,"translate"),t.qZA()()}if(2&i){const e=t.oxw();t.xp6(2),t.Oqu(t.lcZ(3,18,"DIALOGS.ADD_SERVICE_DESTINATION.DESCRIPTION")),t.xp6(3),t.s9C("placeholder",t.lcZ(6,20,"DIALOGS.ADD_SERVICE_DESTINATION.SERVICE")),t.Q6J("formControl",e.serviceControl),t.xp6(2),t.Q6J("ngIf",0!==e.services.length),t.xp6(1),t.Q6J("ngIf",0===e.services.length),t.xp6(1),t.Q6J("ngForOf",e.services),t.xp6(1),t.Q6J("ngIf",void 0===e.serviceControl.value),t.xp6(1),t.Q6J("ngModel",e.servicesOnFacility),t.xp6(1),t.Oqu(t.lcZ(13,22,"DIALOGS.ADD_SERVICE_DESTINATION.IS_SERVICES_ONLY_ON_FACILITY")),t.xp6(3),t.s9C("placeholder",t.lcZ(16,24,"DIALOGS.ADD_SERVICE_DESTINATION.TYPE")),t.Q6J("ngModel",e.selectedType),t.xp6(2),t.Q6J("ngForOf",e.types),t.xp6(1),t.Q6J("ngIf",!("host"===e.selectedType&&e.useFacilityHost)),t.xp6(1),t.Q6J("ngIf","host"===e.selectedType),t.xp6(2),t.s9C("placeholder",t.lcZ(22,26,"DIALOGS.ADD_SERVICE_DESTINATION.PROPAGATION")),t.Q6J("ngModel",e.selectedPropagation),t.xp6(2),t.Q6J("ngForOf",e.propagations),t.xp6(2),t.hij(" ",t.lcZ(26,28,"DIALOGS.ADD_SERVICE_DESTINATION.PROPAGATION_TYPE_"+e.selectedPropagation)," ")}}let Ze=(()=>{class i{constructor(e,s,a,o){this.dialogRef=e,this.data=s,this.facilitiesManager=a,this.servicesManager=o,this.services=[],this.types=["host","user@host","user@host:port","user@host-windows","host-windows-proxy","url","email","semail","service-specific"],this.selectedType="host",this.propagations=["PARALLEL","DUMMY"],this.selectedPropagation="PARALLEL",this.useFacilityHost=!1,this.loading=!1,this.emailRegex=new RegExp(p.B2),this.hostPattern=new RegExp("^(?!:\\/\\/)(?=.{1,255}$)((.{1,63}\\.){1,127}(?![0-9]*$)[a-z0-9-]+\\.?)$|^(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(\\.(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)){3}$"),this.urlPattern=new RegExp("^(https?|ftp|file)://[-a-zA-Z0-9+&@#/%?=~_|!:,.;()*$']*[-a-zA-Z0-9+&@#/%=~_|()*$']$"),this.userAtHostPattern=new RegExp("^[a-z_]([a-z0-9_-]{0,31}|[a-z0-9_-]{0,30}\\$)@(?:(?!:\\/\\/)(?=.{1,255}$)((.{1,63}\\.){1,127}(?![0-9]*$)[a-z0-9-]+\\.?)$|(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(\\.(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)){3}$)"),this.userAtHostPortPattern=new RegExp("^[a-z_]([a-z0-9_-]{0,31}|[a-z0-9_-]{0,30}\\$)@(?:(?!:\\/\\/)(?=.{1,255}$)((.{1,63}\\.){1,127}(?![0-9]*$)[a-z0-9-]+\\.?)|(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(\\.(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)){3}):[0-9]+"),this.serviceSpecificPattern=new RegExp("^(?!-)[a-zA-Z0-9-_.:/]*$")}ngOnInit(){this.serviceControl=new g.p4(void 0,g.kI.required),this.destinationControl=new g.p4("",this.getDestinationValidator()),this.emailControl=new g.p4("",[g.kI.required,g.kI.pattern(this.emailRegex)]),this.servicesOnFacility=!0,this.getServices()}onCancel(){this.dialogRef.close()}onSubmit(){this.loading=!0,"all"===this.serviceControl.value?this.useFacilityHost?this.servicesManager.addDestinationsDefinedByHostsOnFacilityWithListOfServiceAndFacility({services:this.services,facility:this.data.facility.id}).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1):this.servicesManager.addDestinationToMultipleServices({services:this.services,facility:this.data.facility.id,destination:this.destinationControl.value,type:this.selectedType,propagationType:this.selectedPropagation}).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1):this.useFacilityHost?this.servicesManager.addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility(this.serviceControl.value.id,this.data.facility.id).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1):this.servicesManager.addDestination(this.serviceControl.value.id,this.data.facility.id,this.destinationControl.value,this.selectedType,this.selectedPropagation).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1)}getServices(){this.loading=!0,this.servicesOnFacility?0!==this.data.configServices.length?this.services=this.data.configServices:this.servicesManager.getAssignedServices(this.data.facility.id).subscribe(e=>{this.services=e},()=>this.loading=!1):this.servicesManager.getServices().subscribe(e=>{this.services=e},()=>this.loading=!1),this.loading=!1,this.serviceControl.setValue(void 0)}getTypeForView(e){return"semail"===e?"Send Mail":"service-specific"===e?"Service Specific":e}invalidDestination(){return("host"!==this.selectedType||!this.useFacilityHost)&&this.destinationControl.invalid}getDestinationValidator(){return e=>{if(!e.value)return null;let s;switch(this.selectedType){case"host":case"host-windows-proxy":s=this.hostPattern;break;case"email":case"semail":s=this.emailRegex;break;case"url":s=this.urlPattern;break;case"user@host":case"user@host-windows":s=this.userAtHostPattern;break;case"user@host:port":s=this.userAtHostPortPattern;break;case"service-specific":s=this.serviceSpecificPattern;break;default:return null}return s.test(e.value)?null:{invalidDestination:{value:e.value}}}}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(h.IQ),t.Y36(h.KK))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-perun-web-apps-add-services-destination-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],[1,"font-italic"],["required","",3,"formControl","placeholder"],["value","all",4,"ngIf"],["value","noService",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],[3,"ngModel","change","ngModelChange"],[3,"ngModel","placeholder","ngModelChange","selectionChange"],["class","w-100",4,"ngIf"],[3,"ngModel","ngModelChange",4,"ngIf"],[3,"ngModel","placeholder","ngModelChange"],["value","all"],["value","noService"],[3,"value"],[1,"w-100"],["matInput","","required","",3,"formControl","placeholder"],[3,"ngModel","ngModelChange"]],template:function(e,s){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Te,1,0,"mat-spinner",1),t.YNc(5,Le,27,30,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return s.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return s.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.Tol(s.data.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.ADD_SERVICE_DESTINATION.TITLE")),t.xp6(2),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.ADD_SERVICE_DESTINATION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",s.loading||s.invalidDestination()||s.serviceControl.invalid||"noService"===s.serviceControl.value),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.ADD_SERVICE_DESTINATION.ADD")," "))},dependencies:[m.sg,m.O5,lt.ey,N.TO,N.KE,K.Nt,g.Fj,g.JJ,g.Q7,g.oH,g.On,S.lW,Z.oG,u.uh,u.xY,u.H8,ge.gD,T.Ou,f.X$],data:{animation:[V.BQ]}}),i})();var pt=l(70242),O=l(98380),E=l(96214),D=l(7434);function Oe(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",9),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"FACILITY_DETAIL.SERVICES_DESTINATIONS.DESTINATIONS_INFO")," "))}function Re(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",10),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.addDestination())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"FACILITY_DETAIL.SERVICES_DESTINATIONS.ADD")," "))}function Fe(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.removeDestination())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"FACILITY_DETAIL.SERVICES_DESTINATIONS.REMOVE")," ")}}function Ne(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onAllow())}),t.TgZ(1,"mat-icon"),t._uU(2," check_circle_outline "),t.qZA(),t._uU(3),t.ALo(4,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selected.selected.length||e.allSelectedAllowed()),t.xp6(3),t.hij(" ",t.lcZ(4,2,"FACILITY_DETAIL.SERVICES_DESTINATIONS.ALLOW")," ")}}function ke(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onBlock())}),t.TgZ(1,"mat-icon"),t._uU(2," block "),t.qZA(),t._uU(3),t.ALo(4,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selected.selected.length||e.allSelectedBlocked()),t.xp6(3),t.hij(" ",t.lcZ(4,2,"FACILITY_DETAIL.SERVICES_DESTINATIONS.BLOCK")," ")}}function we(i,n){1&i&&t._UZ(0,"mat-spinner",13)}function Ye(i,n){if(1&i&&t._UZ(0,"app-perun-web-apps-destination-list",14),2&i){const e=t.oxw();t.Q6J("filterValue",e.filterValue)("selection",e.selected)("destinations",e.destinations)("services",e.configServicesIds)("displayedColumns",e.displayedColumns)("tableId",e.tableId)}}let dt=(()=>{class i{constructor(e,s,a,o,r,_,C,b){this.dialog=e,this.facilitiesManager=s,this.servicesManager=a,this.translate=o,this.notificator=r,this.authResolver=_,this.serviceManager=C,this.entityStorageService=b,this.displayedColumns=["select","destinationId","service","destination","type","status","propagationType"],this.configServices=[],this.configServicesIds=new Set,this.title="FACILITY_DETAIL.SERVICES_DESTINATIONS.TITLE",this.destinationEmitter=new t.vpe,this.selected=new A.Ov(!0,[]),this.filterValue="",this.tableId=x.Cf}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.setAuthRights(),this.refreshTable()}refreshTable(){this.loading=!0,this.servicesManager.getAllRichDestinationsForFacility(this.facility.id).subscribe(e=>{this.destinations=e,this.destinationEmitter.emit(this.destinations),this.selected.clear(),this.setAuthRights(),this.loading=!1})}setAuthRights(){this.addAuth=this.authResolver.isAuthorized("addDestination_Service_Facility_Destination_policy",[this.facility]),this.removeAuth=this.authResolver.isAuthorized("removeDestination_Service_Facility_Destination_policy",[this.facility]),this.allowAuth=this.authResolver.isAuthorized("unblockServiceOnDestination_Service_int_policy",[this.facility]),this.blockAuth=this.authResolver.isAuthorized("blockServiceOnDestination_Service_int_policy",[this.facility]),this.displayedColumns=this.removeAuth?this.displayedColumns:this.displayedColumns.filter(e=>"select"!==e)}addDestination(){const e=(0,p.kZ)();e.width="600px",e.data={facility:this.facility,theme:"facility-theme",configServices:this.configServices},this.dialog.open(Ze,e).afterClosed().subscribe(a=>{a&&(this.refreshTable(),this.notificator.showSuccess(this.translate.instant("FACILITY_DETAIL.SERVICES_DESTINATIONS.ADD_SUCCESS")))})}removeDestination(){const e=(0,p.kZ)();e.width="600px",e.data={destinations:this.selected.selected,theme:"facility-theme"},this.dialog.open(fe.u,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}blockServicesOnDestinations(e){this.serviceManager.blockServicesOnDestinations({richDestinations:e}).subscribe({next:()=>{this.notificator.showSuccess(this.translate.instant("FACILITY_DETAIL.SERVICES_DESTINATIONS.BLOCK_SUCCESS")),this.refreshTable()},error:()=>this.loading=!1})}onBlock(){this.loading=!0,this.blockServicesOnDestinations(this.selected.selected)}allowServicesOnDestinations(e){this.serviceManager.unblockServicesOnDestinations({richDestinations:e}).subscribe({next:()=>{this.notificator.showSuccess(this.translate.instant("FACILITY_DETAIL.SERVICES_DESTINATIONS.ALLOW_SUCCESS")),this.refreshTable()},error:()=>this.loading=!1})}onAllow(){this.loading=!0,this.allowServicesOnDestinations(this.selected.selected)}applyFilter(e){this.filterValue=e}allSelectedAllowed(){return this.selected.selected.reduce((e,s)=>e&&!s.blocked,!0)}allSelectedBlocked(){return this.selected.selected.reduce((e,s)=>e&&s.blocked,!0)}}return i.id="FacilityServicesDestinationsComponent",i.\u0275fac=function(e){return new(e||i)(t.Y36(u.uw),t.Y36(h.IQ),t.Y36(h.KK),t.Y36(d.Te),t.Y36(d.V6),t.Y36(d.x4),t.Y36(h.KK),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-perun-web-apps-facility-services-destinations"]],hostVars:2,hostBindings:function(e,s){2&e&&t.ekj("router-component",s.true)},inputs:{displayedColumns:"displayedColumns",configServices:"configServices",configServicesIds:"configServicesIds",title:"title",loading:"loading"},outputs:{destinationEmitter:"destinationEmitter"},decls:13,vars:11,consts:[[1,"page-subtitle"],["alert_type","info",4,"ngIf"],[3,"refresh"],["color","accent","class","mr-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","mr-2","mat-stroked-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"filterValue","selection","destinations","services","displayedColumns","tableId",4,"ngIf"],["alert_type","info"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],["mat-stroked-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"filterValue","selection","destinations","services","displayedColumns","tableId"]],template:function(e,s){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Oe,3,3,"perun-web-apps-alert",1),t.TgZ(5,"perun-web-apps-refresh-button",2),t.NdJ("refresh",function(){return s.refreshTable()}),t.qZA(),t.YNc(6,Re,3,3,"button",3),t.YNc(7,Fe,3,4,"button",4),t.YNc(8,Ne,5,4,"button",5),t.YNc(9,ke,5,4,"button",5),t.TgZ(10,"perun-web-apps-immediate-filter",6),t.NdJ("filter",function(o){return s.applyFilter(o)}),t.qZA(),t.YNc(11,we,1,0,"mat-spinner",7),t.YNc(12,Ye,1,6,"app-perun-web-apps-destination-list",8),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,9,s.title)),t.xp6(2),t.Q6J("ngIf",s.title.includes("CONFIG")),t.xp6(2),t.Q6J("ngIf",s.addAuth),t.xp6(1),t.Q6J("ngIf",s.removeAuth),t.xp6(1),t.Q6J("ngIf",s.allowAuth),t.xp6(1),t.Q6J("ngIf",s.blockAuth),t.xp6(1),t.Q6J("placeholder","FACILITY_DETAIL.SERVICES_DESTINATIONS.FILTER"),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[m.O5,R.Hw,S.lW,T.Ou,pt.q,O.w,E.t,D.L,f.X$]}),i})();var z=l(23256);function Ue(i,n){1&i&&t._UZ(0,"mat-spinner",3)}function Me(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div")(1,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.applyFilter(a))}),t.qZA(),t.TgZ(2,"div",5),t._UZ(3,"perun-web-apps-owners-list",6),t.qZA(),t.TgZ(4,"div",7)(5,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onCancel())}),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"button",9),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onAdd())}),t._uU(9),t.ALo(10,"translate"),t.qZA()()()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("placeholder","DIALOGS.ADD_OWNERS.FILTER"),t.xp6(2),t.Q6J("filterValue",e.filterValue)("selection",e.selection)("owners",e.owners)("tableId",e.tableId),t.xp6(3),t.hij(" ",t.lcZ(7,8,"DIALOGS.ADD_OWNERS.CANCEL")," "),t.xp6(2),t.Q6J("disabled",0===e.selection.selected.length||e.loading),t.xp6(1),t.hij(" ",t.lcZ(10,10,"DIALOGS.ADD_OWNERS.ADD")," ")}}let Je=(()=>{class i{constructor(e,s,a,o,r,_){this.dialogRef=e,this.data=s,this.notificator=a,this.translate=o,this.ownersManagerService=r,this.facilitiesManagerService=_,this.extSources=[],this.selection=new A.Ov(!0,[]),this.filterValue="",this.tableId=x.BV,this.owners=[]}ngOnInit(){this.theme=this.data.theme,this.loading=!0,this.ownersManagerService.getAllOwners().subscribe(e=>{this.owners=e.filter(s=>!this.data.forbiddenOwners.includes(s.id)),this.loading=!1},()=>this.loading=!1)}applyFilter(e){this.filterValue=e}onAdd(){this.loading=!0;const e=this.selection.selected.map(s=>s.id);this.facilitiesManagerService.addFacilityOwners(this.data.facilityId,e).subscribe({next:()=>{this.loading=!1,this.notificator.showSuccess(this.translate.instant("DIALOGS.ADD_OWNERS.SUCCESS")),this.dialogRef.close(!0)},error:()=>this.loading=!1})}onCancel(){this.dialogRef.close(!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(d.V6),t.Y36(d.Te),t.Y36(h.aC),t.Y36(h.IQ))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-add-facility-owner-dialog"]],decls:6,vars:8,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[1,"font-size-1rem",3,"placeholder","filter"],["mat-dialog-content",""],[3,"filterValue","selection","owners","tableId"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(e,s){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div"),t.YNc(4,Ue,1,0,"mat-spinner",1),t.YNc(5,Me,11,12,"div",2),t.qZA()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"DIALOGS.ADD_OWNERS.TITLE")),t.xp6(2),t.Tol(s.theme),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[m.O5,S.lW,u.uh,u.xY,u.H8,T.Ou,D.L,z.Q,f.X$]}),i})();var c=l(30671);function Qe(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function He(i,n){1&i&&t._UZ(0,"th",15)}function Ge(i,n){if(1&i&&(t.TgZ(0,"td",16),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Oqu(e.name)}}function Pe(i,n){1&i&&t._UZ(0,"tr",17)}function qe(i,n){1&i&&t._UZ(0,"tr",18)}function Ve(i,n){if(1&i&&(t.TgZ(0,"div",7)(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",8),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",9),t.ynx(8,10),t.YNc(9,He,1,0,"th",11),t.YNc(10,Ge,2,1,"td",12),t.BQk(),t.YNc(11,Pe,1,0,"tr",13),t.YNc(12,qe,1,0,"tr",14),t.qZA()()),2&i){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,5,"DIALOGS.REMOVE_OWNERS.DESCRIPTION")," "),t.xp6(3),t.hij(" ",t.lcZ(6,7,"DIALOGS.REMOVE_OWNERS.ASK")," "),t.xp6(2),t.Q6J("dataSource",e.dataSource),t.xp6(4),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}let Be=(()=>{class i{constructor(e,s,a,o,r){this.dialogRef=e,this.data=s,this.notificator=a,this.translate=o,this.facilitiesManagerService=r,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new c.by(this.data.owners),this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;const e=this.data.owners.map(s=>s.id);this.facilitiesManagerService.removeFacilityOwners(this.data.facilityId,e).subscribe({next:()=>{this.loading=!1,this.notificator.showSuccess(this.translate.instant("DIALOGS.REMOVE_OWNERS.SUCCESS")),this.dialogRef.close(!0)},error:()=>this.loading=!1})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(d.V6),t.Y36(d.Te),t.Y36(h.IQ))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-remove-facility-owner-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,s){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div"),t.YNc(4,Qe,1,0,"mat-spinner",1),t.YNc(5,Ve,13,9,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return s.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return s.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,9,"DIALOGS.REMOVE_OWNERS.TITLE")),t.xp6(2),t.Tol(s.theme),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.REMOVE_OWNERS.CANCEL")," "),t.xp6(2),t.Q6J("disabled",s.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.REMOVE_OWNERS.DELETE")," "))},dependencies:[m.O5,S.lW,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.ge,c.ev,c.XQ,c.Gk,u.uh,u.xY,u.H8,T.Ou,f.X$]}),i})();function je(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onCreate())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"FACILITY_DETAIL.SETTINGS.OWNERS.ADD"),"\n"))}function Ke(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onRemove())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"FACILITY_DETAIL.SETTINGS.OWNERS.DELETE"),"\n")}}function ze(i,n){1&i&&t._UZ(0,"mat-spinner",9)}function $e(i,n){if(1&i&&t._UZ(0,"perun-web-apps-owners-list",10),2&i){const e=t.oxw();t.Q6J("displayedColumns",e.displayedColumns)("filterValue",e.filterValue)("owners",e.owners)("selection",e.selection)("tableId",e.tableId)}}let _t=(()=>{class i{constructor(e,s,a,o){this.facilitiesManagerService=e,this.dialog=s,this.authResolver=a,this.entityStorageService=o,this.ownerEmitter=new t.vpe,this.owners=[],this.selection=new A.Ov(!0,[]),this.displayedColumns=["id","name","contact","type"],this.tableId=x.zp}ngOnInit(){this.filterValue="",this.facility=this.entityStorageService.getEntity(),this.setAuthRights(),this.refreshTable()}refreshTable(){this.loading=!0,this.selection.clear(),this.facilitiesManagerService.getFacilityOwners(this.facility.id).subscribe(e=>{this.owners=e,this.ownerEmitter.emit(this.owners),this.loading=!1})}setAuthRights(){this.addAuth=this.authResolver.isAuthorized("addOwner_Facility_Owner_policy",[this.facility]),this.removeAuth=this.authResolver.isAuthorized("removeOwner_Facility_Owner_policy",[this.facility]),this.displayedColumns=this.removeAuth?["select","id","name","contact","type"]:["id","name","contact","type"]}applyFilter(e){this.filterValue=e}onCreate(){const e=(0,p.kZ)();e.width="800px",e.data={theme:"facility-theme",facilityId:this.facility.id,forbiddenOwners:this.owners.map(a=>a.id)},this.dialog.open(Je,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}onRemove(){const e=(0,p.kZ)();e.width="600px",e.data={theme:"facility-theme",owners:this.selection.selected,facilityId:this.facility.id},this.dialog.open(Be,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.IQ),t.Y36(u.uw),t.Y36(d.x4),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-settings-owners"]],outputs:{ownerEmitter:"ownerEmitter"},decls:9,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"displayedColumns","filterValue","owners","selection","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","filterValue","owners","selection","tableId"]],template:function(e,s){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return s.refreshTable()}),t.qZA(),t.YNc(4,je,3,3,"button",2),t.YNc(5,Ke,3,4,"button",3),t.TgZ(6,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(o){return s.applyFilter(o)}),t.qZA(),t.YNc(7,ze,1,0,"mat-spinner",5),t.YNc(8,$e,1,5,"perun-web-apps-owners-list",6)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"FACILITY_DETAIL.SETTINGS.OWNERS.TITLE")),t.xp6(3),t.Q6J("ngIf",s.addAuth),t.xp6(1),t.Q6J("ngIf",s.removeAuth),t.xp6(1),t.Q6J("placeholder","VO_MANAGEMENT.FILTER_PLACEHOLDER"),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[m.O5,S.lW,T.Ou,E.t,D.L,z.Q,f.X$]}),i})();var We=l(22308);function Xe(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function ti(i,n){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_HOST.EMPTY_MESSAGE")," "))}function ei(i,n){if(1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i){const e=t.oxw(2);t.xp6(1),t.AsE(" ",t.lcZ(2,2,"DIALOGS.ADD_HOST.INVALID_HOST")," ",e.hostsCtrl.getError("invalidHost").value," ")}}function ii(i,n){if(1&i&&(t.TgZ(0,"div",7)(1,"mat-form-field")(2,"textarea",8),t.ALo(3,"translate"),t._uU(4," "),t.qZA(),t.YNc(5,ti,3,3,"mat-error",9),t.YNc(6,ei,3,4,"mat-error",9),t.qZA(),t.TgZ(7,"perun-web-apps-alert",10),t._uU(8),t.ALo(9,"translate"),t.qZA()()),2&i){const e=t.oxw();t.xp6(2),t.Q6J("formControl",e.hostsCtrl)("placeholder",t.lcZ(3,5,"DIALOGS.ADD_HOST.SUBTITLE")),t.xp6(3),t.Q6J("ngIf",e.hostsCtrl.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.hostsCtrl.hasError("invalidHost")),t.xp6(2),t.Oqu(t.lcZ(9,7,"DIALOGS.ADD_HOST.HINT"))}}let si=(()=>{class i{constructor(e,s,a,o,r){this.dialogRef=e,this.data=s,this.facilitiesManager=a,this.notificator=o,this.translate=r,this.loading=!1,this.hostPattern=new RegExp("^(?!:\\/\\/)(?=.{1,255}$)((.{1,63}\\.){1,127}(?![0-9]*$)[a-z0-9-]+\\.?)$|^(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(\\.(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)){3}$")}static parseRange(e){const[s,a]=e.split("-");return[parseInt(s.substring(1,s.length),10),parseInt(a.substring(0,a.length),10)]}ngOnInit(){this.theme=this.data.theme,this.hostsCtrl=new g.p4("",[g.kI.required,this.hostsNameValidator()]),this.hostsCtrl.markAllAsTouched()}onAdd(){this.loading=!0;const e=this.hostsCtrl.value.split("\n");let s=[];for(const a of e)s=s.concat(this.parseHostName(a));this.facilitiesManager.addHosts(this.data.facilityId,s).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.ADD_HOST.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}hostsNameValidator(){return e=>{let s=[];const a=e.value.split("\n");for(const o of a)s=s.concat(this.parseHostName(o));for(const o of s)if(!this.hostPattern.test(o))return{invalidHost:{value:o}};return null}}parseHostName(e){const s=new RegExp("[[0-9]+-[0-9]+]","g"),a=e.split(s),o=e.match(s);if(null==o)return""===e?[]:[e];let r=[];for(let _=0;_{class i{constructor(e,s,a,o,r){this.dialogRef=e,this.data=s,this.facilitiesManager=a,this.notificator=o,this.translate=r,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.hosts=this.data.hosts,this.dataSource=new c.by(this.data.hosts)}onConfirm(){this.loading=!0,this.facilitiesManager.removeHosts(this.data.facilityId,this.hosts.map(e=>e.id)).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.REMOVE_HOST.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(h.IQ),t.Y36(d.V6),t.Y36(f.sK))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-remove-host-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,s){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div"),t.YNc(4,ai,1,0,"mat-spinner",1),t.YNc(5,ri,13,9,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return s.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return s.onConfirm()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,9,"DIALOGS.REMOVE_HOST.TITLE")),t.xp6(2),t.Tol(s.theme),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.REMOVE_HOST.CANCEL")," "),t.xp6(2),t.Q6J("disabled",s.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.REMOVE_HOST.CONFIRM")," "))},dependencies:[m.O5,S.lW,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.ge,c.ev,c.XQ,c.Gk,u.uh,u.xY,u.H8,T.Ou,f.X$]}),i})();var I=l(96308),k=l(18750),mt=l(64597),w=l(9185),Y=l(8231),U=l(14849);function pi(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"th",15)(1,"mat-checkbox",16),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(a?o.masterToggle():null)}),t.ALo(2,"translate"),t.ALo(3,"masterCheckboxLabel"),t.qZA()()}if(2&i){const e=t.oxw().ngIf,s=t.oxw();t.xp6(1),t.Q6J("aria-label",t.lcZ(2,3,t.lcZ(3,5,e.all)))("checked",s.selection.hasValue()&&e.all)("indeterminate",s.selection.hasValue()&&!e.all)}}const di=function(i){return{name:i}};function _i(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"td",17)(1,"mat-checkbox",18),t.NdJ("change",function(a){const r=t.CHM(e).$implicit,_=t.oxw(2);return t.KtG(a?_.selection.toggle(r):null)})("click",function(a){return a.stopPropagation()}),t.ALo(2,"translate"),t.ALo(3,"checkboxLabel"),t.qZA()()}if(2&i){const e=n.$implicit,s=t.oxw(2);t.xp6(1),t.Q6J("aria-label",t.xi3(2,2,t.lcZ(3,5,s.selection.isSelected(e)),t.VKq(7,di,e.hostname)))("checked",s.selection.isSelected(e))}}function mi(i,n){1&i&&(t.ynx(0,12),t.YNc(1,pi,4,7,"th",13),t.YNc(2,_i,4,9,"td",14),t.BQk())}function hi(i,n){1&i&&(t.TgZ(0,"th",19),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.HOSTS_LIST.TABLE_HOST_ID")," "))}function fi(i,n){if(1&i&&(t.TgZ(0,"td",20),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Oqu(e.id)}}function gi(i,n){1&i&&(t.TgZ(0,"th",19),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.HOSTS_LIST.TABLE_HOST_NAME")," "))}function Ti(i,n){if(1&i&&(t.TgZ(0,"td",21),t.ALo(1,"multiWordDataCy"),t._uU(2),t.qZA()),2&i){const e=n.$implicit;t.uIk("data-cy",t.lcZ(1,2,e.hostname)),t.xp6(2),t.hij(" ",e.hostname," ")}}function Si(i,n){1&i&&t._UZ(0,"tr",22)}const ht=function(i,n){return["/facilities",i,"hosts",n]};function Ci(i,n){if(1&i&&t._UZ(0,"tr",23),2&i){const e=n.$implicit,s=t.oxw();t.Q6J("perunWebAppsMiddleClickRouterLink",s.disableRouting?null:t.WLB(2,ht,s.facilityId.toString(),e.id.toString()))("routerLink",s.disableRouting?null:t.WLB(5,ht,s.facilityId,e.id))}}function Ai(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function Ii(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.HOSTS_LIST.NO_HOST_WARNING"),"\n"))}const bi=function(i){return{all:i}};let ft=(()=>{class i{constructor(e,s){this.authResolver=e,this.tableCheckbox=s,this.hosts=[],this.selection=new A.Ov(!0,[]),this.disableRouting=!1,this.displayedColumns=["select","id","name"],this.pageSizeOptions=p.f7}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,s){switch(s){case"id":return e.id.toString();case"name":return e.hostname;default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"id"!==e)),this.dataSource=new c.by(this.hosts),this.setDataSource(),this.dataSource.filter=this.filterValue}exportAllData(e){(0,p.O6)((0,p.Xn)(this.dataSource.filteredData,this.displayedColumns,i.getDataForColumn),e)}exportDisplayedData(e){const s=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,a=s+this.dataSource.paginator.pageSize;(0,p.O6)((0,p.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(s,a),this.displayedColumns,i.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.filterPredicate=(e,s)=>(0,p.Sd)(e,s,this.displayedColumns,i.getDataForColumn),this.dataSource.sortData=(e,s)=>(0,p.pR)(e,s,i.getDataForColumn),this.dataSource.paginator=this.child.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(d.x4),t.Y36(d.UA))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-hosts-list"]],viewQuery:function(e,s){if(1&e&&(t.Gf(p.l9,7),t.Gf(I.YE,7)),2&e){let a;t.iGM(a=t.CRH())&&(s.child=a.first),t.iGM(a=t.CRH())&&(s.matSort=a.first)}},inputs:{hosts:"hosts",selection:"selection",filterValue:"filterValue",tableId:"tableId",facilityId:"facilityId",disableRouting:"disableRouting",displayedColumns:"displayedColumns"},features:[t.TTD],decls:15,vars:15,consts:[[1,"card","mt-3",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(e,s){1&e&&(t.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportDisplayedData",function(o){return s.exportDisplayedData(o)})("exportAllData",function(o){return s.exportAllData(o)}),t.TgZ(2,"table",2),t.YNc(3,mi,3,0,"ng-container",3),t.ALo(4,"isAllSelected"),t.ynx(5,4),t.YNc(6,hi,3,3,"th",5),t.YNc(7,fi,2,1,"td",6),t.BQk(),t.ynx(8,7),t.YNc(9,gi,3,3,"th",5),t.YNc(10,Ti,3,4,"td",8),t.BQk(),t.YNc(11,Si,1,0,"tr",9),t.YNc(12,Ci,1,8,"tr",10),t.qZA()()(),t.YNc(13,Ai,3,3,"perun-web-apps-alert",11),t.YNc(14,Ii,3,3,"perun-web-apps-alert",11)),2&e&&(t.Q6J("hidden",0===s.dataSource.filteredData.length||0===s.hosts.length),t.xp6(1),t.Q6J("pageSizeOptions",s.pageSizeOptions)("dataLength",s.dataSource.filteredData.length)("tableId",s.tableId),t.xp6(1),t.Q6J("dataSource",s.dataSource),t.xp6(1),t.Q6J("ngIf",t.VKq(13,bi,t.xi3(4,10,s.dataSource,s.selection.selected.length))),t.xp6(8),t.Q6J("matHeaderRowDef",s.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",s.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===s.dataSource.filteredData.length&&0!==s.hosts.length),t.xp6(1),t.Q6J("ngIf",0===s.hosts.length))},dependencies:[m.O5,v.rH,I.YE,I.nU,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.ge,c.ev,c.XQ,c.Gk,Z.oG,O.w,B.Y,j.Q,k.l,f.X$,mt.R,w.I,Y.G,U.r],styles:[".disable-outline[_ngcontent-%COMP%]{outline:none!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),i})();function yi(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.addHost())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"FACILITY_DETAIL.HOSTS.ADD")," "))}function vi(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.removeHost())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"FACILITY_DETAIL.HOSTS.REMOVE")," ")}}function xi(i,n){1&i&&t._UZ(0,"mat-spinner",9)}function Ei(i,n){if(1&i&&t._UZ(0,"app-hosts-list",10),2&i){const e=t.oxw();t.Q6J("disableRouting",!e.routeAuth||e.disableRouting)("filterValue",e.filterValue)("hosts",e.hosts)("selection",e.selected)("displayedColumns",e.displayedColumns)("facilityId",e.facility.id)("tableId",e.tableId)}}let gt=(()=>{class i{constructor(e,s,a,o){this.dialog=e,this.facilitiesManager=s,this.authResolver=a,this.entityStorageService=o,this.disableRouting=!1,this.hostEmitter=new t.vpe,this.hosts=[],this.selected=new A.Ov(!0,[]),this.filterValue="",this.tableId=x.eq,this.displayedColumns=["id","name"]}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.setAuthRights(),this.facilitiesManager.getFacilityById(this.facility.id).subscribe(e=>{this.facility=e,this.refreshTable()})}refreshTable(){this.loading=!0,this.facilitiesManager.getHosts(this.facility.id).subscribe(e=>{this.hosts=e,this.hostEmitter.emit(this.hosts),this.selected.clear(),this.setAuthRights(),this.loading=!1})}setAuthRights(){this.addAuth=this.authResolver.isAuthorized("addHosts_Facility_List_policy",[this.facility]),this.removeAuth=this.authResolver.isAuthorized("removeHosts_List_Facility_policy",[this.facility]),this.displayedColumns=this.removeAuth?["select","id","name"]:["id","name"],0!==this.hosts.length&&(this.routeAuth=this.authResolver.isAuthorized("getHostById_int_policy",[this.facility,this.hosts[0]]))}addHost(){const e=(0,p.kZ)();e.width="600px",e.data={facilityId:this.facility.id,theme:"facility-theme"},this.dialog.open(si,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}removeHost(){const e=(0,p.kZ)();e.width="600px",e.data={facilityId:this.facility.id,theme:"facility-theme",hosts:this.selected.selected},this.dialog.open(ui,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}applyFilter(e){this.filterValue=e}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.uw),t.Y36(h.IQ),t.Y36(d.x4),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-hosts"]],inputs:{disableRouting:"disableRouting"},outputs:{hostEmitter:"hostEmitter"},decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","class","mr-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableRouting","filterValue","hosts","selection","displayedColumns","facilityId","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"disableRouting","filterValue","hosts","selection","displayedColumns","facilityId","tableId"]],template:function(e,s){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return s.refreshTable()}),t.qZA(),t.YNc(5,yi,3,3,"button",2),t.YNc(6,vi,3,4,"button",3),t.TgZ(7,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(o){return s.applyFilter(o)}),t.qZA(),t.YNc(8,xi,1,0,"mat-spinner",5),t.YNc(9,Ei,1,7,"app-hosts-list",6),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,6,"FACILITY_DETAIL.HOSTS.TITLE")),t.xp6(3),t.Q6J("ngIf",s.addAuth),t.xp6(1),t.Q6J("ngIf",s.removeAuth),t.xp6(1),t.Q6J("placeholder","FACILITY_DETAIL.HOSTS.FILTER"),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[m.O5,S.lW,T.Ou,ft,E.t,D.L,f.X$]}),i})();function Di(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"th",16)(1,"mat-checkbox",17),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(a?o.masterToggle():null)}),t.ALo(2,"translate"),t.ALo(3,"masterCheckboxLabel"),t.qZA()()}if(2&i){const e=t.oxw().ngIf,s=t.oxw();t.xp6(1),t.Q6J("aria-label",t.lcZ(2,3,t.lcZ(3,5,e.all)))("checked",s.selection.hasValue()&&e.all)("indeterminate",s.selection.hasValue()&&!e.all)}}const Li=function(i){return{name:i}};function Zi(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"td",18)(1,"mat-checkbox",19),t.NdJ("change",function(a){const r=t.CHM(e).$implicit,_=t.oxw(2);return t.KtG(a?_.selection.toggle(r):null)})("click",function(a){return a.stopPropagation()}),t.ALo(2,"translate"),t.ALo(3,"checkboxLabel"),t.ALo(4,"userFullName"),t.qZA()()}if(2&i){const e=n.$implicit,s=t.oxw(2);t.xp6(1),t.Q6J("aria-label",t.xi3(2,2,t.lcZ(3,5,s.selection.isSelected(e)),t.VKq(9,Li,t.lcZ(4,7,e[1]))))("checked",s.selection.isSelected(e))}}function Oi(i,n){1&i&&(t.ynx(0,13),t.YNc(1,Di,4,7,"th",14),t.YNc(2,Zi,5,11,"td",15),t.BQk())}function Ri(i,n){1&i&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.BLACKLIST_LIST.USER_ID")," "))}function Fi(i,n){if(1&i&&(t.TgZ(0,"td",21),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e[1].id," ")}}function Ni(i,n){1&i&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.BLACKLIST_LIST.NAME")," "))}function ki(i,n){if(1&i&&(t.TgZ(0,"td",22),t._uU(1),t.ALo(2,"userFullName"),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,e[1])," ")}}function wi(i,n){1&i&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.BLACKLIST_LIST.REASON")," "))}function Yi(i,n){if(1&i&&(t.TgZ(0,"td",22),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e[0].description," ")}}function Ui(i,n){1&i&&t._UZ(0,"tr",23)}function Mi(i,n){1&i&&t._UZ(0,"tr",24)}function Ji(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function Qi(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.BLACKLIST_LIST.NO_BANS_WARNING"),"\n"))}const Hi=function(i){return{all:i}};let Gi=(()=>{class i{constructor(e,s){this.authResolver=e,this.tableCheckbox=s,this.bansOnFacilitiesWithUsers=[],this.selection=new A.Ov(!0,[]),this.pageSizeOptions=p.f7,this.displayedColumns=["select","userId","name","reason"]}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,s){switch(s){case"userId":return e[1].id.toString();case"reason":return e[0].description;case"name":return(0,p.hu)(e[1]);default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"userId"!==e)),this.dataSource=new c.by(this.bansOnFacilitiesWithUsers),this.setDataSource(),this.dataSource.filter=this.filterValue}exportAllData(e){(0,p.O6)((0,p.Xn)(this.dataSource.filteredData,this.displayedColumns,i.getDataForColumn),e)}exportDisplayedData(e){const s=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,a=s+this.dataSource.paginator.pageSize;(0,p.O6)((0,p.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(s,a),this.displayedColumns,i.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,s)=>(0,p.Sd)(e,s,this.displayedColumns,i.getDataForColumn),this.dataSource.sortData=(e,s)=>(0,p.pR)(e,s,i.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(d.x4),t.Y36(d.UA))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-perun-web-apps-blacklist-list"]],viewQuery:function(e,s){if(1&e&&(t.Gf(p.l9,7),t.Gf(I.YE,7)),2&e){let a;t.iGM(a=t.CRH())&&(s.child=a.first),t.iGM(a=t.CRH())&&(s.matSort=a.first)}},inputs:{bansOnFacilitiesWithUsers:"bansOnFacilitiesWithUsers",selection:"selection",filterValue:"filterValue",tableId:"tableId"},features:[t.TTD],decls:18,vars:15,consts:[[1,"card","mt-3",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","userId"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","reason"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,s){1&e&&(t.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportDisplayedData",function(o){return s.exportDisplayedData(o)})("exportAllData",function(o){return s.exportAllData(o)}),t.TgZ(2,"table",2),t.YNc(3,Oi,3,0,"ng-container",3),t.ALo(4,"isAllSelected"),t.ynx(5,4),t.YNc(6,Ri,3,3,"th",5),t.YNc(7,Fi,2,1,"td",6),t.BQk(),t.ynx(8,7),t.YNc(9,Ni,3,3,"th",5),t.YNc(10,ki,3,3,"td",8),t.BQk(),t.ynx(11,9),t.YNc(12,wi,3,3,"th",5),t.YNc(13,Yi,2,1,"td",8),t.BQk(),t.YNc(14,Ui,1,0,"tr",10),t.YNc(15,Mi,1,0,"tr",11),t.qZA()()(),t.YNc(16,Ji,3,3,"perun-web-apps-alert",12),t.YNc(17,Qi,3,3,"perun-web-apps-alert",12)),2&e&&(t.Q6J("hidden",0===s.dataSource.filteredData.length||0===s.bansOnFacilitiesWithUsers.length),t.xp6(1),t.Q6J("pageSizeOptions",s.pageSizeOptions)("dataLength",s.dataSource.filteredData.length)("tableId",s.tableId),t.xp6(1),t.Q6J("dataSource",s.dataSource),t.xp6(1),t.Q6J("ngIf",t.VKq(13,Hi,t.xi3(4,10,s.dataSource,s.selection.selected.length))),t.xp6(11),t.Q6J("matHeaderRowDef",s.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",s.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===s.dataSource.filteredData.length&&0!==s.bansOnFacilitiesWithUsers.length),t.xp6(1),t.Q6J("ngIf",0===s.bansOnFacilitiesWithUsers.length))},dependencies:[m.O5,I.YE,I.nU,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.ge,c.ev,c.XQ,c.Gk,Z.oG,O.w,k.l,f.X$,ct.d,w.I,Y.G,U.r]}),i})();function Pi(i,n){1&i&&t._UZ(0,"mat-spinner",5)}function qi(i,n){if(1&i&&t._UZ(0,"app-perun-web-apps-blacklist-list",6),2&i){const e=t.oxw();t.Q6J("bansOnFacilitiesWithUsers",e.bansOnFacilitiesWithUsers)("filterValue",e.filterValue)("selection",e.selected)("tableId",e.tableId)}}let Vi=(()=>{class i{constructor(e,s,a){this.facilitiesManager=e,this.usersManager=s,this.entityStorageService=a,this.bansOnFacilitiesWithUsers=[],this.selected=new A.Ov(!0,[]),this.filterValue="",this.tableId=x.NG}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.refreshTable()}refreshTable(){this.loading=!0,this.facilitiesManager.getBansForFacility(this.facility.id).subscribe(e=>{const s=e;for(const a of s){let o;this.usersManager.getUserById(a.userId).subscribe(r=>{o=r}),this.bansOnFacilitiesWithUsers.push([a,o])}this.selected.clear(),this.loading=!1})}applyFilter(e){this.filterValue=e}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.IQ),t.Y36(h.Fv),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-perun-web-apps-facility-settings-blacklist"]],decls:9,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"bansOnFacilitiesWithUsers","filterValue","selection","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"bansOnFacilitiesWithUsers","filterValue","selection","tableId"]],template:function(e,s){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return s.refreshTable()}),t.qZA(),t.TgZ(5,"perun-web-apps-immediate-filter",2),t.NdJ("filter",function(o){return s.applyFilter(o)}),t.ALo(6,"translate"),t.qZA(),t.YNc(7,Pi,1,0,"mat-spinner",3),t.YNc(8,qi,1,4,"app-perun-web-apps-blacklist-list",4),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,4,"FACILITY_DETAIL.SETTINGS.BLACKLIST.TITLE")),t.xp6(3),t.Q6J("placeholder",t.lcZ(6,6,"FACILITY_DETAIL.SETTINGS.BLACKLIST.FILTER")),t.xp6(2),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[m.O5,T.Ou,Gi,E.t,D.L,f.X$]}),i})();var Bi=l(37433),ji=l(61365),Ki=l(71103),Tt=l(53984);const zi=["list"];function $i(i,n){1&i&&t._UZ(0,"mat-spinner",7)}function Wi(i,n){if(1&i&&t._UZ(0,"perun-web-apps-attributes-list",8,9),2&i){const e=t.oxw();t.Q6J("selection",e.selected)("attributes",e.attributes)("tableId",e.tableId)}}let Xi=(()=>{class i{constructor(e,s,a,o){this.dialog=e,this.attributesManager=s,this.facilityManager=a,this.route=o,this.attributes=[],this.selected=new A.Ov(!0,[]),this.host={beanName:"",id:0},this.tableId=x.rF}ngOnInit(){this.route.params.subscribe(e=>{this.hostId=Number(e.hostId),this.facilityManager.getHostById(this.hostId).subscribe(s=>{this.host=s}),this.refreshTable()})}refreshTable(){this.loading=!0,this.attributesManager.getHostAttributes(this.hostId).subscribe(e=>{this.attributes=(0,p.MX)(e),this.selected.clear(),this.loading=!1})}onSave(){this.list.updateMapAttributes();const e=(0,p.kZ)();e.width="450px",e.data={entityId:this.hostId,entity:"host",attributes:this.selected.selected},this.dialog.open(M.wA,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}addAttribute(){const e=(0,p.kZ)();e.width="1050px",e.data={entityId:this.hostId,entity:"host",notEmptyAttributes:this.attributes,style:"facility-theme"},this.dialog.open(Ki.n,e).afterClosed().subscribe(a=>{"saved"===a&&this.refreshTable()})}removeAttribute(){const e=(0,p.kZ)();e.width="450px",e.data={entityId:this.hostId,entity:"host",attributes:this.selected.selected,theme:"facility-theme"},this.dialog.open(ji.k,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.uw),t.Y36(h.H8),t.Y36(h.IQ),t.Y36(v.gz))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-hosts-detail"]],viewQuery:function(e,s){if(1&e&&t.Gf(zi,5),2&e){let a;t.iGM(a=t.CRH())&&(s.list=a.first)}},decls:16,vars:17,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","mat-flat-button","",1,"mr-2",3,"click"],["color","accent","mat-flat-button","",1,"mr-2",3,"disabled","click"],["color","warn","mat-flat-button","",3,"disabled","click"],["class","ml-auto mr-auto",4,"ngIf"],[3,"selection","attributes","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"selection","attributes","tableId"],["list",""]],template:function(e,s){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return s.refreshTable()}),t.qZA(),t.TgZ(5,"button",2),t.NdJ("click",function(){return s.addAttribute()}),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"button",3),t.NdJ("click",function(){return s.onSave()}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"button",4),t.NdJ("click",function(){return s.removeAttribute()}),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.YNc(14,$i,1,0,"mat-spinner",5),t.YNc(15,Wi,2,3,"perun-web-apps-attributes-list",6),t.qZA()),2&e&&(t.xp6(2),t.AsE(" ",t.lcZ(3,9,"FACILITY_DETAIL.HOSTS.HOSTS_DETAIL.TITLE")," ",s.host.hostname," "),t.xp6(4),t.hij(" ",t.lcZ(7,11,"FACILITY_DETAIL.HOSTS.HOSTS_DETAIL.ADD")," "),t.xp6(2),t.Q6J("disabled",0===s.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(10,13,"FACILITY_DETAIL.HOSTS.HOSTS_DETAIL.SAVE")," "),t.xp6(2),t.Q6J("disabled",0===s.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(13,15,"FACILITY_DETAIL.HOSTS.HOSTS_DETAIL.REMOVE")," "),t.xp6(2),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[m.O5,S.lW,T.Ou,E.t,Tt.p,f.X$]}),i})();function ts(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"th",16)(1,"mat-checkbox",17),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(a?o.masterToggle():null)}),t.ALo(2,"translate"),t.ALo(3,"masterCheckboxLabel"),t.qZA()()}if(2&i){const e=t.oxw().ngIf,s=t.oxw();t.xp6(1),t.Q6J("aria-label",t.lcZ(2,3,t.lcZ(3,5,e.all)))("checked",s.selection.hasValue()&&e.all)("indeterminate",s.selection.hasValue()&&!e.all)}}const es=function(i){return{name:i}};function is(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"td",18)(1,"mat-checkbox",19),t.NdJ("change",function(a){const r=t.CHM(e).$implicit,_=t.oxw(2);return t.KtG(a?_.selection.toggle(r):null)})("click",function(a){return a.stopPropagation()}),t.ALo(2,"translate"),t.ALo(3,"checkboxLabel"),t.qZA()()}if(2&i){const e=n.$implicit,s=t.oxw(2);t.xp6(1),t.Q6J("aria-label",t.xi3(2,2,t.lcZ(3,5,s.selection.isSelected(e)),t.VKq(7,es,e.name)))("checked",s.selection.isSelected(e))}}function ss(i,n){1&i&&(t.ynx(0,13),t.YNc(1,ts,4,7,"th",14),t.YNc(2,is,4,9,"td",15),t.BQk())}function as(i,n){1&i&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.SECURITY_TEAMS_LIST.ID")," "))}function ns(i,n){if(1&i&&(t.TgZ(0,"td",21),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e.id," ")}}function os(i,n){1&i&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.SECURITY_TEAMS_LIST.NAME")," "))}function ls(i,n){if(1&i&&(t.TgZ(0,"td",22),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Oqu(e.name)}}function cs(i,n){1&i&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.SECURITY_TEAMS_LIST.DESCRIPTION")," "))}function rs(i,n){if(1&i&&(t.TgZ(0,"td",22),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Oqu(e.description)}}function us(i,n){1&i&&t._UZ(0,"tr",23)}function ps(i,n){1&i&&t._UZ(0,"tr",24)}function ds(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function _s(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.SECURITY_TEAMS_LIST.NO_SECURITY_TEAMS_WARNING"),"\n"))}const ms=function(i){return{all:i}};let hs=(()=>{class i{constructor(e,s){this.authResolver=e,this.tableCheckbox=s,this.securityTeams=[],this.selection=new A.Ov(!0,[]),this.displayedColumns=["select","id","name","description"],this.pageSizeOptions=p.f7}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,s){switch(s){case"id":return e.id.toString();case"name":return e.name;case"description":return e.description;default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"id"!==e)),this.dataSource=new c.by(this.securityTeams),this.setDataSource(),this.dataSource.filter=this.filterValue}exportAllData(e){(0,p.O6)((0,p.Xn)(this.dataSource.filteredData,this.displayedColumns,i.getDataForColumn),e)}exportDisplayedData(e){const s=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,a=s+this.dataSource.paginator.pageSize;(0,p.O6)((0,p.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(s,a),this.displayedColumns,i.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,s)=>(0,p.Sd)(e,s,this.displayedColumns,i.getDataForColumn),this.dataSource.sortData=(e,s)=>(0,p.pR)(e,s,i.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(d.x4),t.Y36(d.UA))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-security-teams-list"]],viewQuery:function(e,s){if(1&e&&(t.Gf(p.l9,7),t.Gf(I.YE,7)),2&e){let a;t.iGM(a=t.CRH())&&(s.child=a.first),t.iGM(a=t.CRH())&&(s.matSort=a.first)}},inputs:{securityTeams:"securityTeams",selection:"selection",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns"},features:[t.TTD],decls:18,vars:15,consts:[[1,"card","mt-3",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","description"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,s){1&e&&(t.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportDisplayedData",function(o){return s.exportDisplayedData(o)})("exportAllData",function(o){return s.exportAllData(o)}),t.TgZ(2,"table",2),t.YNc(3,ss,3,0,"ng-container",3),t.ALo(4,"isAllSelected"),t.ynx(5,4),t.YNc(6,as,3,3,"th",5),t.YNc(7,ns,2,1,"td",6),t.BQk(),t.ynx(8,7),t.YNc(9,os,3,3,"th",5),t.YNc(10,ls,2,1,"td",8),t.BQk(),t.ynx(11,9),t.YNc(12,cs,3,3,"th",5),t.YNc(13,rs,2,1,"td",8),t.BQk(),t.YNc(14,us,1,0,"tr",10),t.YNc(15,ps,1,0,"tr",11),t.qZA()()(),t.YNc(16,ds,3,3,"perun-web-apps-alert",12),t.YNc(17,_s,3,3,"perun-web-apps-alert",12)),2&e&&(t.Q6J("hidden",0===s.dataSource.filteredData.length||0===s.securityTeams.length),t.xp6(1),t.Q6J("pageSizeOptions",s.pageSizeOptions)("dataLength",s.dataSource.filteredData.length)("tableId",s.tableId),t.xp6(1),t.Q6J("dataSource",s.dataSource),t.xp6(1),t.Q6J("ngIf",t.VKq(13,ms,t.xi3(4,10,s.dataSource,s.selection.selected.length))),t.xp6(11),t.Q6J("matHeaderRowDef",s.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",s.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===s.dataSource.filteredData.length&&0!==s.securityTeams.length),t.xp6(1),t.Q6J("ngIf",0===s.securityTeams.length))},dependencies:[m.O5,I.YE,I.nU,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.ge,c.ev,c.XQ,c.Gk,Z.oG,O.w,k.l,f.X$,w.I,Y.G,U.r]}),i})();function fs(i,n){1&i&&t._UZ(0,"mat-spinner",5)}function gs(i,n){if(1&i&&t._UZ(0,"app-security-teams-list",6),2&i){const e=t.oxw();t.Q6J("displayedColumns",e.displayedColumns)("filterValue",e.filterValue)("securityTeams",e.securityTeams)("selection",e.selected)("tableId",e.tableId)}}let Ts=(()=>{class i{constructor(e,s,a,o){this.dialog=e,this.facilitiesManager=s,this.authResolver=a,this.entityStorageService=o,this.securityTeams=[],this.selected=new A.Ov(!0,[]),this.filterValue="",this.tableId=x.O9,this.displayedColumns=[]}ngOnInit(){this.facility=this.entityStorageService.getEntity(),this.refreshTable()}refreshTable(){this.loading=!0,this.facilitiesManager.getAssignedSecurityTeams(this.facility.id).subscribe(e=>{this.securityTeams=e,this.selected.clear(),this.setAuthRights(),this.loading=!1})}setAuthRights(){this.addAuth=this.authResolver.isAuthorized("assignSecurityTeam_Facility_SecurityTeam_policy",[this.facility]),this.removeAuth=this.authResolver.isAuthorized("removeSecurityTeam_Facility_SecurityTeam_policy",[this.facility]),this.displayedColumns=this.removeAuth?["select","id","name","description"]:["id","name","description"]}applyFilter(e){this.filterValue=e}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.uw),t.Y36(h.IQ),t.Y36(d.x4),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-security-teams"]],decls:8,vars:6,consts:[[1,"page-subtitle"],[3,"refresh"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"displayedColumns","filterValue","securityTeams","selection","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","filterValue","securityTeams","selection","tableId"]],template:function(e,s){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return s.refreshTable()}),t.qZA(),t.TgZ(5,"perun-web-apps-immediate-filter",2),t.NdJ("filter",function(o){return s.applyFilter(o)}),t.qZA(),t.YNc(6,fs,1,0,"mat-spinner",3),t.YNc(7,gs,1,5,"app-security-teams-list",4),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,4,"FACILITY_DETAIL.SECURITY_TEAMS.TITLE")),t.xp6(3),t.Q6J("placeholder","FACILITY_DETAIL.SECURITY_TEAMS.FILTER"),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[m.O5,T.Ou,hs,E.t,D.L,f.X$]}),i})();var Ss=l(20057),Cs=l(49546);function As(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function Is(i,n){1&i&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.DELETE_TASK_RESULT.RESULT_ID")," "))}function bs(i,n){if(1&i&&(t.TgZ(0,"td",18),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Oqu(e.id)}}function ys(i,n){1&i&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.DELETE_TASK_RESULT.DESTINATION")," "))}function vs(i,n){if(1&i&&(t.TgZ(0,"td",18),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Oqu(e.destination.destination)}}function xs(i,n){1&i&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.DELETE_TASK_RESULT.TIME")))}function Es(i,n){if(1&i&&(t.TgZ(0,"td",18),t._uU(1),t.ALo(2,"date"),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,e.timestamp,"d.M.y H:mm:ss")," ")}}function Ds(i,n){1&i&&t._UZ(0,"tr",19)}function Ls(i,n){1&i&&t._UZ(0,"tr",20)}function Zs(i,n){if(1&i&&(t.TgZ(0,"div",7)(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",8),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",9),t.ynx(8,10),t.YNc(9,Is,3,3,"th",11),t.YNc(10,bs,2,1,"td",12),t.BQk(),t.ynx(11,13),t.YNc(12,ys,3,3,"th",11),t.YNc(13,vs,2,1,"td",12),t.BQk(),t.ynx(14,14),t.YNc(15,xs,3,3,"th",11),t.YNc(16,Es,3,4,"td",12),t.BQk(),t.YNc(17,Ds,1,0,"tr",15),t.YNc(18,Ls,1,0,"tr",16),t.qZA()()),2&i){const e=t.oxw();t.xp6(2),t.Oqu(t.lcZ(3,5,"DIALOGS.DELETE_TASK_RESULT.DESCRIPTION")),t.xp6(3),t.hij(" ",t.lcZ(6,7,"DIALOGS.DELETE_TASK_RESULT.ASK")," "),t.xp6(2),t.Q6J("dataSource",e.dataSource),t.xp6(10),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}let St=(()=>{class i{constructor(e,s,a,o,r){this.dialogRef=e,this.data=s,this.taskManager=a,this.notificator=o,this.translate=r,this.loading=!1,this.dataSource=new c.by(this.data.taskResults),this.displayedColumns=["id","destination","time"]}ngOnInit(){this.theme=this.data.theme,this.taskResults=this.data.taskResults}onDelete(){this.loading=!0;const e=this.taskResults.map(s=>s.id);this.taskManager.deleteTaskResultsByIds(e).subscribe({next:()=>{this.dialogRef.close(!0),this.loading=!1,this.notificator.showSuccess(this.translate.instant("DIALOGS.DELETE_TASK_RESULT.SUCCESS"))},error:()=>this.loading=!1})}onCancel(){this.dialogRef.close(!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(h.Ob),t.Y36(d.V6),t.Y36(d.Te))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-delete-task-result-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","destination"],["matColumnDef","time"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,s){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div"),t.YNc(4,As,1,0,"mat-spinner",1),t.YNc(5,Zs,19,9,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return s.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return s.onDelete()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,9,"DIALOGS.DELETE_TASK_RESULT.TITLE")),t.xp6(2),t.Tol(s.theme),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.DELETE_TASK_RESULT.CANCEL")," "),t.xp6(2),t.Q6J("disabled",s.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.DELETE_TASK_RESULT.REMOVE")," "))},dependencies:[m.O5,S.lW,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.ge,c.ev,c.XQ,c.Gk,u.uh,u.xY,u.H8,T.Ou,m.uU,f.X$]}),i})();var Os=l(62109);function Rs(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function Fs(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-checkbox",13),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(o.change(a))}),t.ALo(1,"translate"),t._uU(2),t.ALo(3,"translate"),t.qZA()}if(2&i){const e=t.oxw(2);t.s9C("matTooltip",t.lcZ(1,5,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DISABLED")),t.Q6J("checked",e.taskChecked)("disabled",e.checkboxesDisabled)("matTooltipDisabled",!e.checkboxesDisabled),t.xp6(2),t.hij(" ",t.lcZ(3,7,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOX_TASK_AND_TASK_RESULTS")," ")}}function Ns(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-checkbox",14),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(o.change(a))}),t.ALo(1,"translate"),t._uU(2),t.ALo(3,"translate"),t.qZA()}if(2&i){const e=t.oxw(2);t.s9C("matTooltip",t.lcZ(1,5,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DISABLED")),t.Q6J("checked",e.taskResultsChecked)("disabled",e.checkboxesDisabled)("matTooltipDisabled",!e.checkboxesDisabled),t.xp6(2),t.hij(" ",t.lcZ(3,7,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOX_TASK_RESULTS")," ")}}function ks(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"perun-web-apps-resources-list",15),t.NdJ("allSelected",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(o.disableCheckboxes(a))}),t.qZA()}if(2&i){const e=t.oxw(2);t.Q6J("displayedColumns",e.displayedColumns)("disableRouting",!0)("resources",e.resources)("selection",e.selected)("tableId",e.tableId)}}function ws(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",7)(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div"),t.YNc(5,Fs,4,9,"mat-checkbox",8),t.YNc(6,Ns,4,9,"mat-checkbox",9),t.TgZ(7,"mat-checkbox",10),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.change(a))}),t.ALo(8,"translate"),t._uU(9),t.ALo(10,"translate"),t.qZA()(),t.TgZ(11,"p"),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.TgZ(14,"div",11),t._uU(15),t.ALo(16,"translate"),t.qZA(),t.YNc(17,ks,1,5,"perun-web-apps-resources-list",12),t.qZA()}if(2&i){const e=t.oxw();t.xp6(2),t.Oqu(t.lcZ(3,11,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DESCRIPTION")),t.xp6(3),t.Q6J("ngIf",null!==e.taskId),t.xp6(1),t.Q6J("ngIf",null!==e.taskId),t.xp6(1),t.s9C("matTooltip",t.lcZ(8,13,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DISABLED")),t.Q6J("disabled",e.checkboxesDisabled)("matTooltipDisabled",!e.checkboxesDisabled)("checked",e.destinationChecked),t.xp6(2),t.hij(" ",t.lcZ(10,15,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOX_DESTINATION")," "),t.xp6(3),t.Oqu(t.lcZ(13,17,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.DESCRIPTION")),t.xp6(3),t.hij(" ",t.lcZ(16,19,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.ASK")," "),t.xp6(2),t.Q6J("ngIf",!e.loading)}}let Ys=(()=>{class i{constructor(e,s,a,o,r,_,C,b){this.dialogRef=e,this.data=s,this.resourcesManager=a,this.tasksManager=o,this.serviceManager=r,this.translate=_,this.notificator=C,this.cd=b,this.loading=!1,this.resources=[],this.displayedColumns=["select","id","vo","name"],this.checkboxesDisabled=!1,this.taskChecked=!0,this.taskResultsChecked=!0,this.destinationChecked=!0,this.tableId=x.$V,this.dataSource=new c.by(this.data.resource),this.selected=new A.Ov(!0,[...this.dataSource.data])}ngOnInit(){this.theme=this.data.theme,this.taskId=this.data.taskId,this.serviceId=this.data.serviceId,this.facilityId=this.data.facilityId,this.resources=this.data.resource}remove(){this.loading=!0,this.taskResultsChecked&&!this.taskChecked&&null!==this.taskId&&this.tasksManager.getTaskResultsForGUIByTask(this.taskId).subscribe(e=>{this.tasksManager.deleteTaskResultsByIds(e.map(s=>s.id)).subscribe()}),this.taskChecked&&null!==this.taskId&&this.tasksManager.deleteTask({task:this.taskId}).subscribe(),this.destinationChecked&&this.serviceManager.getRichDestinations(this.serviceId,this.facilityId).subscribe(e=>{this.serviceManager.removeDestinationsByRichDestinations({richDestinations:e}).subscribe()}),this.resourcesManager.removeServiceForResources(this.selected.selected.map(e=>e.id),this.serviceId).subscribe({next:()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.REMOVE_SERVICE_FROM_FACILITY.SUCCESS")),this.dialogRef.close(!0)},error:()=>this.loading=!1})}cancel(){this.dialogRef.close(!1)}disableCheckboxes(e){e&&this.checkboxesDisabled&&this.changeCheckboxes(!0),!e&&!this.checkboxesDisabled&&this.changeCheckboxes(!1)}changeCheckboxes(e){this.checkboxesDisabled=!e,this.taskChecked=e,this.taskResultsChecked=e,this.destinationChecked=e,this.cd.detectChanges()}change(e){switch(e.source.id){case"task":this.taskChecked=e.checked;break;case"taskResults":this.taskResultsChecked=e.checked;break;case"destination":this.destinationChecked=e.checked}}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(h.xk),t.Y36(h.Ob),t.Y36(h.KK),t.Y36(d.Te),t.Y36(d.V6),t.Y36(t.sBO))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-delete-service-from-facility"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],["class","right-space","color","warn","id","task",3,"checked","disabled","matTooltipDisabled","matTooltip","change",4,"ngIf"],["class","right-space","color","warn","id","taskResults",3,"checked","disabled","matTooltipDisabled","matTooltip","change",4,"ngIf"],["color","warn","id","destination",3,"disabled","matTooltipDisabled","checked","matTooltip","change"],[1,"font-weight-bold"],[3,"displayedColumns","disableRouting","resources","selection","tableId","allSelected",4,"ngIf"],["color","warn","id","task",1,"right-space",3,"checked","disabled","matTooltipDisabled","matTooltip","change"],["color","warn","id","taskResults",1,"right-space",3,"checked","disabled","matTooltipDisabled","matTooltip","change"],[3,"displayedColumns","disableRouting","resources","selection","tableId","allSelected"]],template:function(e,s){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div"),t.YNc(4,Rs,1,0,"mat-spinner",1),t.YNc(5,ws,18,21,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return s.cancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return s.remove()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,9,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.TITLE")),t.xp6(2),t.Tol(s.theme),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CANCEL")," "),t.xp6(2),t.Q6J("disabled",s.loading||0===s.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.REMOVE")," "))},dependencies:[m.O5,S.lW,Z.oG,u.uh,u.xY,u.H8,T.Ou,J.gM,Os.C,f.X$],styles:[".right-space[_ngcontent-%COMP%]{margin-right:40px}"]}),i})();function Us(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function Ms(i,n){1&i&&(t.TgZ(0,"div",7)(1,"div",8),t._uU(2),t.ALo(3,"translate"),t.qZA()()),2&i&&(t.xp6(2),t.hij(" ",t.lcZ(3,1,"DIALOGS.DELETE_TASK.DESCRIPTION")," "))}let Js=(()=>{class i{constructor(e,s,a,o,r){this.dialogRef=e,this.data=s,this.tasksManager=a,this.translate=o,this.notificator=r,this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.taskId=this.data.taskId}remove(){this.loading=!0,this.tasksManager.deleteTask({task:this.taskId}).subscribe(()=>{this.translate.get("DIALOGS.DELETE_TASK.SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.dialogRef.close(!0)})},()=>this.loading=!1)}cancel(){this.dialogRef.close(!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(h.Ob),t.Y36(f.sK),t.Y36(d.V6))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-delete-task-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"]],template:function(e,s){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div"),t.YNc(4,Us,1,0,"mat-spinner",1),t.YNc(5,Ms,4,3,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return s.cancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return s.remove()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,9,"DIALOGS.DELETE_TASK.TITLE")),t.xp6(2),t.Tol(s.theme),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.DELETE_TASK.CANCEL")," "),t.xp6(2),t.Q6J("disabled",s.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.DELETE_TASK.DELETE")," "))},dependencies:[m.O5,S.lW,u.uh,u.xY,u.H8,T.Ou,f.X$]}),i})();var $=l(28255);let Qs=(()=>{class i{transform(e){return e.blockedOnFacility?"BLOCKED":e.blockedGlobally?"BLOCKED GLOBALLY":"ALLOWED"}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=t.Yjl({name:"serviceStateBlockedToString",type:i,pure:!0}),i})();function Hs(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"th",19)(1,"mat-checkbox",20),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw(2);return a&&o.masterToggle(),t.KtG(o.selectionChange.emit())}),t.ALo(2,"translate"),t.ALo(3,"masterCheckboxLabel"),t.qZA()()}if(2&i){const e=t.oxw().ngIf,s=t.oxw();t.xp6(1),t.Q6J("checked",s.selection.hasValue()&&e.all)("indeterminate",s.selection.hasValue()&&!e.all)("aria-label",t.lcZ(2,3,t.lcZ(3,5,e.all)))}}const Gs=function(i){return{name:i}};function Ps(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"td",21)(1,"mat-checkbox",22),t.NdJ("click",function(a){return a.stopPropagation()})("change",function(a){const r=t.CHM(e).$implicit,_=t.oxw(2);return a&&_.selection.toggle(r),t.KtG(_.selectionChange.emit())}),t.ALo(2,"translate"),t.ALo(3,"checkboxLabel"),t.qZA()()}if(2&i){const e=n.$implicit,s=t.oxw(2);t.xp6(1),t.Q6J("checked",s.selection.isSelected(e))("aria-label",t.xi3(2,2,t.lcZ(3,5,s.selection.isSelected(e)),t.VKq(7,Gs,e.service.name)))}}function qs(i,n){1&i&&(t.ynx(0,16),t.YNc(1,Hs,4,7,"th",17),t.YNc(2,Ps,4,9,"td",18),t.BQk())}function Vs(i,n){1&i&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.TASK_ID")," "))}function Bs(i,n){if(1&i&&(t.TgZ(0,"div"),t._uU(1),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.Oqu(e.task.id)}}function js(i,n){1&i&&(t.TgZ(0,"div"),t._uU(1,"0"),t.qZA())}function Ks(i,n){if(1&i&&(t.TgZ(0,"td",24),t.YNc(1,Bs,2,1,"div",25),t.YNc(2,js,2,0,"div",25),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Q6J("ngIf",e.task),t.xp6(1),t.Q6J("ngIf",!e.task)}}function zs(i,n){1&i&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.SERVICE_NAME")," "))}function $s(i,n){if(1&i&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.uIk("data-cy",e.service.name),t.xp6(1),t.hij(" ",e.service.name," ")}}function Ws(i,n){1&i&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.STATUS")," "))}function Xs(i,n){1&i&&(t.TgZ(0,"mat-icon",28),t.ALo(1,"translate"),t._uU(2," warning "),t.qZA()),2&i&&t.Q6J("matTooltip",t.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.NO_DESTINATIONS_TOOLTIP"))}function ta(i,n){if(1&i&&(t.TgZ(0,"td",26),t._uU(1),t.YNc(2,Xs,3,3,"mat-icon",27),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e.status," "),t.xp6(1),t.Q6J("ngIf",!e.hasDestinations)}}function ea(i,n){1&i&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.BLOCKED")," "))}function ia(i,n){if(1&i&&(t.TgZ(0,"td",26),t._uU(1),t.ALo(2,"serviceStateBlockedToString"),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,e)," ")}}function sa(i,n){1&i&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.STARTED")," "))}function aa(i,n){if(1&i&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"date"),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,e.task.startTime,"d.M.y H:mm:ss")," ")}}function na(i,n){1&i&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.NOT_YET")," "))}function oa(i,n){if(1&i&&(t.TgZ(0,"td",26),t.YNc(1,aa,3,4,"div",25),t.YNc(2,na,3,3,"div",25),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Q6J("ngIf",e.task&&e.task.startTime),t.xp6(1),t.Q6J("ngIf",!e.task||!e.task.startTime)}}function la(i,n){1&i&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.ENDED")," "))}function ca(i,n){if(1&i&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"date"),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,e.task.endTime,"d.M.y H:mm:ss")," ")}}function ra(i,n){1&i&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.NOT_YET")," "))}function ua(i,n){if(1&i&&(t.TgZ(0,"td",26),t.YNc(1,ca,3,4,"div",25),t.YNc(2,ra,3,3,"div",25),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Q6J("ngIf",e.task&&e.task.endTime),t.xp6(1),t.Q6J("ngIf",!e.task||!e.task.endTime)}}function pa(i,n){1&i&&t._UZ(0,"tr",29)}const Ct=function(i,n){return["/facilities",i,"services-status",n]};function da(i,n){if(1&i&&t._UZ(0,"tr",30),2&i){const e=n.$implicit,s=t.oxw();t.ekj("disable-outline",s.disableRouting||!e.task)("make-yellow","WARNING"===e.status)("make-green","DONE"===e.status)("make-red","GENERROR"===e.status||"SENDERROR"===e.status||"ERROR"===e.status)("cursor-pointer",!s.disableRouting&&null!==e.task),t.Q6J("routerLink",s.disableRouting||null===e.task?null:t.WLB(12,Ct,e.facility.id,e.taskId))("perunWebAppsMiddleClickRouterLink",s.disableRouting||null===e.task?null:t.WLB(15,Ct,e.facility.id,e.taskId))}}function _a(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",31),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function ma(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",31),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.NO_SERVICES_STATUS_WARNING"),"\n"))}const ha=function(i){return{all:i}};let fa=(()=>{class i{constructor(e,s){this.authResolver=e,this.tableCheckbox=s,this.servicesStatus=[],this.displayedColumns=["select","task.id","service.name","status","blocked","task.startTime","task.endTime"],this.selection=new A.Ov(!0,[]),this.disableRouting=!0,this.selectionChange=new t.vpe,this.pageSizeOptions=p.f7}set matSort(e){this.sort=e,this.setDataSource()}static getSortDataForColumn(e,s){switch(s){case"task.id":return e.task?e.task.id.toString():e[s];case"service.name":return e.service.name;case"status":return e.status;case"blocked":return e.blockedOnFacility?"BLOCKED":e.blockedGlobally?"BLOCKED GLOBALLY":"ALLOWED";case"task.startTime":return e.task?.startTime?(0,m.p6)(e.task.startTime,"yyyy.MM.dd HH:mm:ss","en"):e[s];case"task.endTime":return e.task?.endTime?(0,m.p6)(e.task.endTime,"yyyy.MM.dd HH:mm:ss","en"):e[s];default:return e[s]}}static getDataForColumn(e,s){switch(s){case"task.id":return e.task?e.task.id.toString():e[s];case"service.name":return e.service.name;case"status":return e.status;case"blocked":return e.blockedOnFacility?"BLOCKED":e.blockedGlobally?"BLOCKED GLOBALLY":"ALLOWED";case"task.startTime":return e.task?.startTime?(0,m.p6)(e.task.startTime,"d.M.y H:mm:ss","en"):e[s];case"task.endTime":return e.task?.endTime?(0,m.p6)(e.task.endTime,"d.M.y H:mm:ss","en"):e[s];default:return e[s]}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"task.id"!==e)),this.dataSource=new c.by(this.servicesStatus),this.setDataSource(),this.dataSource.filterPredicate=(e,s)=>{const a=s.trim().toLowerCase(),o=r=>{let _="";return Object.values(r).forEach(C=>{"object"!=typeof C?_=_+" "+String(C):null!==C&&(_=_+" "+o(C))}),_.trim().toLowerCase()};return o(e).includes(a)},this.dataSource.filter=this.filterValue}exportAllData(e){(0,p.O6)((0,p.Xn)(this.dataSource.filteredData,this.displayedColumns,i.getDataForColumn),e)}exportDisplayedData(e){const s=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,a=s+this.dataSource.paginator.pageSize;(0,p.O6)((0,p.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(s,a),this.displayedColumns,i.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,s)=>(0,p.Sd)(e,s,this.displayedColumns,i.getDataForColumn),this.dataSource.sortData=(e,s)=>(0,p.pR)(e,s,i.getSortDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(d.x4),t.Y36(d.UA))},i.\u0275cmp=t.Xpm({type:i,selectors:[["perun-web-apps-services-status-list"]],viewQuery:function(e,s){if(1&e&&(t.Gf(p.l9,7),t.Gf(I.YE,7)),2&e){let a;t.iGM(a=t.CRH())&&(s.child=a.first),t.iGM(a=t.CRH())&&(s.matSort=a.first)}},inputs:{servicesStatus:"servicesStatus",displayedColumns:"displayedColumns",selection:"selection",filterValue:"filterValue",tableId:"tableId",disableRouting:"disableRouting"},outputs:{selectionChange:"selectionChange"},features:[t.TTD],decls:27,vars:15,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","service.name","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","task.id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size",4,"matCellDef"],["matColumnDef","service.name"],["mat-cell","",4,"matCellDef"],["matColumnDef","status"],["matColumnDef","blocked"],["matColumnDef","task.startTime"],["matColumnDef","task.endTime"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","dark-hover-list-item",3,"disable-outline","make-yellow","make-green","make-red","cursor-pointer","routerLink","perunWebAppsMiddleClickRouterLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size align-checkbox",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"checked","indeterminate","aria-label","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"checked","aria-label","click","change"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],[4,"ngIf"],["mat-cell",""],["class","align-text-bottom ml-1",3,"matTooltip",4,"ngIf"],[1,"align-text-bottom","ml-1",3,"matTooltip"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"routerLink","perunWebAppsMiddleClickRouterLink"],["alert_type","warn"]],template:function(e,s){1&e&&(t.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportDisplayedData",function(o){return s.exportDisplayedData(o)})("exportAllData",function(o){return s.exportAllData(o)}),t.TgZ(2,"table",2),t.YNc(3,qs,3,0,"ng-container",3),t.ALo(4,"isAllSelected"),t.ynx(5,4),t.YNc(6,Vs,3,3,"th",5),t.YNc(7,Ks,3,2,"td",6),t.BQk(),t.ynx(8,7),t.YNc(9,zs,3,3,"th",5),t.YNc(10,$s,2,2,"td",8),t.BQk(),t.ynx(11,9),t.YNc(12,Ws,3,3,"th",5),t.YNc(13,ta,3,2,"td",8),t.BQk(),t.ynx(14,10),t.YNc(15,ea,3,3,"th",5),t.YNc(16,ia,3,3,"td",8),t.BQk(),t.ynx(17,11),t.YNc(18,sa,3,3,"th",5),t.YNc(19,oa,3,2,"td",8),t.BQk(),t.ynx(20,12),t.YNc(21,la,3,3,"th",5),t.YNc(22,ua,3,2,"td",8),t.BQk(),t.YNc(23,pa,1,0,"tr",13),t.YNc(24,da,1,18,"tr",14),t.qZA()()(),t.YNc(25,_a,3,3,"perun-web-apps-alert",15),t.YNc(26,ma,3,3,"perun-web-apps-alert",15)),2&e&&(t.Q6J("hidden",0===s.dataSource.filteredData.length||0===s.servicesStatus.length),t.xp6(1),t.Q6J("tableId",s.tableId)("dataLength",s.dataSource.filteredData.length)("pageSizeOptions",s.pageSizeOptions),t.xp6(1),t.Q6J("dataSource",s.dataSource),t.xp6(1),t.Q6J("ngIf",t.VKq(13,ha,t.xi3(4,10,s.dataSource,s.selection.selected.length))),t.xp6(20),t.Q6J("matHeaderRowDef",s.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",s.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===s.dataSource.filteredData.length&&0!==s.servicesStatus.length),t.xp6(1),t.Q6J("ngIf",0===s.servicesStatus.length))},dependencies:[m.O5,Z.oG,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.ge,c.ev,c.XQ,c.Gk,v.rH,I.YE,I.nU,O.w,R.Hw,J.gM,k.l,B.Y,j.Q,m.uU,f.X$,Qs,w.I,Y.G,U.r],styles:[".disable-outline[_ngcontent-%COMP%]{outline:none!important}.make-green[_ngcontent-%COMP%]{background-color:#c4ffcb}.make-yellow[_ngcontent-%COMP%]{background-color:#fffde7}.make-red[_ngcontent-%COMP%]{background-color:#ffcdd2}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),i})();function ga(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.forcePropagation())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"FACILITY_DETAIL.SERVICES_STATUS.FORCE_PROPAGATION")," ")}}function Ta(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.allow())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selected.selected.length||e.disableAllowButton),t.xp6(1),t.hij(" ",t.lcZ(2,2,"FACILITY_DETAIL.SERVICES_STATUS.ALLOW")," ")}}function Sa(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.block())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selected.selected.length||e.disableBlockButton),t.xp6(1),t.hij(" ",t.lcZ(2,2,"FACILITY_DETAIL.SERVICES_STATUS.BLOCK")," ")}}function Ca(i,n){if(1&i&&(t.TgZ(0,"button",13),t.ALo(1,"translate"),t._uU(2),t.ALo(3,"translate"),t.qZA()),2&i){const e=t.oxw(),s=t.MAs(10);t.s9C("matTooltip",t.lcZ(1,5,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DISABLED")),t.Q6J("disabled",e.disableRemoveButton)("matMenuTriggerFor",s)("matTooltipDisabled",!e.disableRemoveButton),t.xp6(2),t.hij(" ",t.lcZ(3,7,"FACILITY_DETAIL.SERVICES_STATUS.REMOVE")," ")}}function Aa(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.removeTaskResults())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"FACILITY_DETAIL.SERVICES_STATUS.REMOVE_TASK_RESULTS")," "))}function Ia(i,n){1&i&&t._UZ(0,"mat-spinner",14)}function ba(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"perun-web-apps-services-status-list",15),t.NdJ("selectionChange",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.selectionChanged())}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disableRouting",!e.routeAuth)("filterValue",e.filterValue)("servicesStatus",e.servicesStates)("selection",e.selected)("tableId",e.tableId)}}let ya=(()=>{class i{constructor(e,s,a,o,r,_,C,b,L){this.tasksManager=e,this.servicesManager=s,this.notificator=a,this.translate=o,this.authResolver=r,this.facilityManager=_,this.resourcesManager=C,this.dialog=b,this.entityStorageService=L,this.servicesStates=[],this.selected=new A.Ov(!0,[]),this.filterValue="",this.tableId=x.oK,this.disableAllowButton=!0,this.disableBlockButton=!0,this.disableRemoveButton=!0,o.get("FACILITY_DETAIL.SERVICES_STATUS.SUCCESS_FORCE_PROPAGATION").subscribe(y=>this.successFPMessage=y),o.get("FACILITY_DETAIL.SERVICES_STATUS.SUCCESS_ALLOW").subscribe(y=>this.successAllowMessage=y),o.get("FACILITY_DETAIL.SERVICES_STATUS.SUCCESS_BLOCK").subscribe(y=>this.successBlockMessage=y),o.get("FACILITY_DETAIL.SERVICES_STATUS.SUCCESS_DELETE").subscribe(y=>this.successDeleteMessage=y),o.get("FACILITY_DETAIL.SERVICES_STATUS.ALREADY_DELETED").subscribe(y=>this.allreadyDeletedMessage=y)}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.setAuthRights(),this.refreshTable()}forcePropagation(){for(const e of this.selected.selected)this.servicesManager.forceServicePropagation(e.service.id,e.facility.id).subscribe(()=>{this.refreshTable(),this.notificator.showSuccess(this.successFPMessage)})}allow(){for(const e of this.selected.selected)this.servicesManager.unblockServiceOnFacility(e.service.id,e.facility.id).subscribe(()=>{this.refreshTable(),this.notificator.showSuccess(this.successAllowMessage)})}block(){for(const e of this.selected.selected)this.servicesManager.blockServiceOnFacility(e.service.id,e.facility.id).subscribe(()=>{this.refreshTable(),this.notificator.showSuccess(this.successBlockMessage)})}removeTaskResults(){this.tasksManager.getTaskResultsForGUIByTask(this.selected.selected[0].task.id).subscribe(e=>{const s=(0,p.kZ)();s.width="600px",s.data={theme:"facility-theme",taskResults:e},this.dialog.open(St,s)})}removeServiceFromFacility(){this.facilityManager.getAssignedResourcesByAssignedServiceForFacility(this.selected.selected[0].facility.id,this.selected.selected[0].service.id).subscribe(e=>{const s=(0,p.kZ)();s.width="600px",this.taskId=this.taskIsNull?null:this.selected.selected[0].task.id,0===e.length?(s.data={theme:"facility-theme",taskId:this.taskId},this.dialog.open(Js,s).afterClosed().subscribe(o=>{o&&(this.disableRemoveButton=!0,this.refreshTable())})):this.resourcesManager.getRichResourcesByIds(e.map(a=>a.id)).subscribe(a=>{s.data={theme:"facility-theme",taskId:this.taskId,serviceId:this.selected.selected[0].service.id,facilityId:this.selected.selected[0].facility.id,resource:a},this.dialog.open(Ys,s).afterClosed().subscribe(r=>{r&&(this.disableRemoveButton=!0,this.refreshTable())})})})}refreshTable(){this.loading=!0,this.tasksManager.getFacilityServicesState(this.facility.id).subscribe(e=>{this.servicesStates=e,this.selected.clear(),this.setAuthRights(),this.loading=!1})}setAuthRights(){this.propagationAuth=this.authResolver.isAuthorized("forceServicePropagation_Facility_Service_policy",[this.facility]),this.blockAuth=this.authResolver.isAuthorized("blockServiceOnFacility_Service_Facility_policy",[this.facility]),this.allowAuth=this.authResolver.isAuthorized("unblockServiceOnFacility_Service_Facility_policy",[this.facility]),this.deleteAuth=this.authResolver.isAuthorized("deleteTask_Task_policy",[this.facility]),this.routeAuth=this.authResolver.isAuthorized("getTaskResultsByTask_int_policy",[this.facility])}applyFilter(e){this.filterValue=e}selectionChanged(){this.disableBlockButton=!0,this.disableAllowButton=!0,this.disableRemoveButton=1!==this.selected.selected.length,this.disableRemoveButton||(this.taskIsNull=null===this.selected.selected[0].task);for(const e of this.selected.selected)e.blockedOnFacility?this.disableAllowButton=!1:this.disableBlockButton=!1}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.Ob),t.Y36(h.KK),t.Y36(d.V6),t.Y36(f.sK),t.Y36(d.x4),t.Y36(h.IQ),t.Y36(h.xk),t.Y36(u.uw),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-service-status"]],decls:18,vars:14,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],["mat-flat-button","","class","mr-2 dropdown-toggle","color","warn",3,"disabled","matMenuTriggerFor","matTooltipDisabled","matTooltip",4,"ngIf"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableRouting","filterValue","servicesStatus","selection","tableId","selectionChange",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2",3,"disabled","click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],["mat-flat-button","","color","warn",1,"mr-2","dropdown-toggle",3,"disabled","matMenuTriggerFor","matTooltipDisabled","matTooltip"],[1,"ml-auto","mr-auto"],[3,"disableRouting","filterValue","servicesStatus","selection","tableId","selectionChange"]],template:function(e,s){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return s.refreshTable()}),t.qZA(),t.YNc(5,ga,3,4,"button",2),t.YNc(6,Ta,3,4,"button",2),t.YNc(7,Sa,3,4,"button",3),t.YNc(8,Ca,4,9,"button",4),t.TgZ(9,"mat-menu",null,5),t.YNc(11,Aa,3,3,"button",6),t.TgZ(12,"button",7),t.NdJ("click",function(){return s.removeServiceFromFacility()}),t._uU(13),t.ALo(14,"translate"),t.qZA()(),t.TgZ(15,"perun-web-apps-immediate-filter",8),t.NdJ("filter",function(o){return s.applyFilter(o)}),t.qZA(),t.YNc(16,Ia,1,0,"mat-spinner",9),t.YNc(17,ba,1,5,"perun-web-apps-services-status-list",10),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,10,"FACILITY_DETAIL.SERVICES_STATUS.TITLE")),t.xp6(3),t.Q6J("ngIf",s.propagationAuth),t.xp6(1),t.Q6J("ngIf",s.allowAuth),t.xp6(1),t.Q6J("ngIf",s.blockAuth),t.xp6(1),t.Q6J("ngIf",s.deleteAuth),t.xp6(3),t.Q6J("ngIf",!s.taskIsNull),t.xp6(2),t.hij(" ",t.lcZ(14,12,"FACILITY_DETAIL.SERVICES_STATUS.REMOVE_SERVICE_FROM_FACILITY")," "),t.xp6(2),t.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.TABLE_SEARCH"),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[m.O5,S.lW,T.Ou,J.gM,$.VK,$.OP,$.p6,E.t,D.L,fa,f.X$]}),i})();var va=l(25610),xa=l(76023);function Ea(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"th",21)(1,"mat-checkbox",22),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(a?o.masterToggle():null)}),t.ALo(2,"translate"),t.ALo(3,"masterCheckboxLabel"),t.qZA()()}if(2&i){const e=t.oxw().ngIf,s=t.oxw();t.xp6(1),t.Q6J("aria-label",t.lcZ(2,3,t.lcZ(3,5,e.all)))("checked",s.selection.hasValue()&&e.all)("indeterminate",s.selection.hasValue()&&!e.all)}}const Da=function(i){return{name:i}};function La(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"td",23)(1,"mat-checkbox",24),t.NdJ("change",function(a){const r=t.CHM(e).$implicit,_=t.oxw(2);return t.KtG(a?_.selection.toggle(r):null)})("click",function(a){return a.stopPropagation()}),t.ALo(2,"translate"),t.ALo(3,"checkboxLabel"),t.qZA()()}if(2&i){const e=n.$implicit,s=t.oxw(2);t.xp6(1),t.Q6J("aria-label",t.xi3(2,2,t.lcZ(3,5,s.selection.isSelected(e)),t.VKq(7,Da,e.destination.destination)))("checked",s.selection.isSelected(e))}}function Za(i,n){1&i&&(t.ynx(0,18),t.YNc(1,Ea,4,7,"th",19),t.YNc(2,La,4,9,"td",20),t.BQk())}function Oa(i,n){1&i&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.RESULT_ID")," "))}function Ra(i,n){if(1&i&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Oqu(e.id)}}function Fa(i,n){1&i&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.DESTINATION")," "))}function Na(i,n){if(1&i&&(t.TgZ(0,"td",26),t.ALo(1,"multiWordDataCy"),t._uU(2),t.qZA()),2&i){const e=n.$implicit;t.uIk("data-cy",t.lcZ(1,2,e.destination.destination)),t.xp6(2),t.hij(" ",e.destination.destination," ")}}function ka(i,n){1&i&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.TYPE")," "))}function wa(i,n){if(1&i&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e.destination.type.toUpperCase()," ")}}function Ya(i,n){1&i&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.SERVICE")," "))}function Ua(i,n){if(1&i&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e.service.name," ")}}function Ma(i,n){1&i&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.STATUS")," "))}function Ja(i,n){if(1&i&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e.status," ")}}function Qa(i,n){1&i&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.TIME")," "))}function Ha(i,n){if(1&i&&(t.TgZ(0,"td",26),t._uU(1),t.ALo(2,"date"),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,e.timestamp,"d.M.y H:mm:ss")," ")}}function Ga(i,n){1&i&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.RETURN_CODE")," "))}function Pa(i,n){if(1&i&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e.returnCode," ")}}function qa(i,n){1&i&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.STANDARD_MESSAGE")," "))}function Va(i,n){if(1&i&&(t.TgZ(0,"span"),t._uU(1),t._UZ(2,"br"),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Oqu(e)}}function Ba(i,n){if(1&i&&(t.TgZ(0,"td",26),t.YNc(1,Va,3,1,"span",27),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Q6J("ngForOf",e.standardMessage.split("\n"))}}function ja(i,n){1&i&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.ERROR_MESSAGE")," "))}function Ka(i,n){if(1&i&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e.errorMessage," ")}}function za(i,n){1&i&&t._UZ(0,"tr",28)}function $a(i,n){if(1&i&&t._UZ(0,"tr",29),2&i){const e=n.$implicit;t.ekj("greenTableItem","DONE"===e.status)("redTableItem","ERROR"===e.status||"DENIED"===e.status)("yellowTableItem","WARNING"===e.status)}}function Wa(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",30),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function Xa(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",30),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.NO_RESULTS_WARNING"),"\n"))}const tn=function(i){return{all:i}};let en=(()=>{class i{constructor(e,s){this.authResolver=e,this.tableCheckbox=s,this.taskResults=[],this.selection=new A.Ov(!0,[]),this.displayedColumns=["select","id","destination","type","service","status","time","returnCode","standardMessage","errorMessage"],this.pageSizeOptions=p.f7}set matSort(e){this.sort=e,this.setDataSource()}static getSortDataForColumn(e,s){switch(s){case"id":return e.id.toString();case"destination":return e.destination.destination;case"type":return e.destination.type;case"service":return e.service.name;case"status":return e.status;case"time":return(0,m.p6)(e.timestamp.toString(),"yyyy.MM.dd HH:mm:ss","en");case"returnCode":return e.returnCode.toString();case"standardMessage":return e.standardMessage;case"errorMessage":return e.errorMessage;default:return""}}static getDataForColumn(e,s){switch(s){case"id":return e.id.toString();case"destination":return e.destination.destination;case"type":return e.destination.type;case"service":return e.service.name;case"status":return e.status;case"time":return(0,m.p6)(e.timestamp.toString(),"d.M.y H:mm:ss","en");case"returnCode":return e.returnCode.toString();case"standardMessage":return e.standardMessage;case"errorMessage":return e.errorMessage;default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"id"!==e)),this.dataSource=new c.by(this.taskResults),this.setDataSource(),this.dataSource.filter=this.filterValue}exportAllData(e){(0,p.O6)((0,p.Xn)(this.dataSource.filteredData,this.displayedColumns,i.getDataForColumn),e)}exportDisplayedData(e){const s=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,a=s+this.dataSource.paginator.pageSize;(0,p.O6)((0,p.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(s,a),this.displayedColumns,i.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue,this.dataSource.filterPredicate=(e,s)=>(0,p.Sd)(e,s,this.displayedColumns,i.getDataForColumn),this.dataSource.sortData=(e,s)=>(0,p.pR)(e,s,i.getSortDataForColumn))}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(d.x4),t.Y36(d.UA))},i.\u0275cmp=t.Xpm({type:i,selectors:[["perun-web-apps-task-results-list"]],viewQuery:function(e,s){if(1&e&&(t.Gf(p.l9,7),t.Gf(I.YE,7)),2&e){let a;t.iGM(a=t.CRH())&&(s.child=a.first),t.iGM(a=t.CRH())&&(s.matSort=a.first)}},inputs:{taskResults:"taskResults",selection:"selection",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns"},features:[t.TTD],decls:36,vars:15,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","time","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","destination"],["matColumnDef","type"],["matColumnDef","service"],["matColumnDef","status"],["matColumnDef","time"],["matColumnDef","returnCode"],["matColumnDef","standardMessage"],["matColumnDef","errorMessage"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"greenTableItem","redTableItem","yellowTableItem",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],[4,"ngFor","ngForOf"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,s){1&e&&(t.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportDisplayedData",function(o){return s.exportDisplayedData(o)})("exportAllData",function(o){return s.exportAllData(o)}),t.TgZ(2,"table",2),t.YNc(3,Za,3,0,"ng-container",3),t.ALo(4,"isAllSelected"),t.ynx(5,4),t.YNc(6,Oa,3,3,"th",5),t.YNc(7,Ra,2,1,"td",6),t.BQk(),t.ynx(8,7),t.YNc(9,Fa,3,3,"th",5),t.YNc(10,Na,3,4,"td",6),t.BQk(),t.ynx(11,8),t.YNc(12,ka,3,3,"th",5),t.YNc(13,wa,2,1,"td",6),t.BQk(),t.ynx(14,9),t.YNc(15,Ya,3,3,"th",5),t.YNc(16,Ua,2,1,"td",6),t.BQk(),t.ynx(17,10),t.YNc(18,Ma,3,3,"th",5),t.YNc(19,Ja,2,1,"td",6),t.BQk(),t.ynx(20,11),t.YNc(21,Qa,3,3,"th",5),t.YNc(22,Ha,3,4,"td",6),t.BQk(),t.ynx(23,12),t.YNc(24,Ga,3,3,"th",5),t.YNc(25,Pa,2,1,"td",6),t.BQk(),t.ynx(26,13),t.YNc(27,qa,3,3,"th",5),t.YNc(28,Ba,2,1,"td",6),t.BQk(),t.ynx(29,14),t.YNc(30,ja,3,3,"th",5),t.YNc(31,Ka,2,1,"td",6),t.BQk(),t.YNc(32,za,1,0,"tr",15),t.YNc(33,$a,1,6,"tr",16),t.qZA()()(),t.YNc(34,Wa,3,3,"perun-web-apps-alert",17),t.YNc(35,Xa,3,3,"perun-web-apps-alert",17)),2&e&&(t.Q6J("hidden",0===s.dataSource.filteredData.length||0===s.taskResults.length),t.xp6(1),t.Q6J("tableId",s.tableId)("dataLength",s.dataSource.filteredData.length)("pageSizeOptions",s.pageSizeOptions),t.xp6(1),t.Q6J("dataSource",s.dataSource),t.xp6(1),t.Q6J("ngIf",t.VKq(13,tn,t.xi3(4,10,s.dataSource,s.selection.selected.length))),t.xp6(29),t.Q6J("matHeaderRowDef",s.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",s.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===s.dataSource.filteredData.length&&0!==s.taskResults.length),t.xp6(1),t.Q6J("ngIf",0===s.taskResults.length))},dependencies:[m.sg,m.O5,Z.oG,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.ge,c.ev,c.XQ,c.Gk,I.YE,I.nU,O.w,k.l,m.uU,f.X$,mt.R,w.I,Y.G,U.r],styles:[".greenTableItem[_ngcontent-%COMP%]{background-color:#c4ffcb}.yellowTableItem[_ngcontent-%COMP%]{background-color:#fffde7}.redTableItem[_ngcontent-%COMP%]{background-color:#ffcdd2}"]}),i})();function sn(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.removeTaskResult())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"FACILITY_DETAIL.TASK_RESULTS.REMOVE"),"\n")}}function an(i,n){1&i&&t._UZ(0,"mat-spinner",8)}function nn(i,n){if(1&i&&t._UZ(0,"perun-web-apps-task-results-list",9),2&i){const e=t.oxw();t.Q6J("tableId",e.tableId)("displayedColumns",e.displayedColumns)("filterValue",e.filterValue)("selection",e.selection)("taskResults",e.taskResults)}}let on=(()=>{class i{constructor(e,s,a,o,r){this.route=e,this.taskManager=s,this.authResolver=a,this.dialog=o,this.entityStorageService=r,this.loading=!1,this.filterValue="",this.selection=new A.Ov(!0,[]),this.task={id:0},this.tableId=x.e5,this.displayedColumns=["select","id","destination","type","service","status","time","returnCode","standardMessage","errorMessage"],this.removeAuth=!1}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.removeAuth=this.authResolver.isAuthorized("deleteTask_Task_policy",[this.facility]),this.removeAuth||(this.displayedColumns=["id","destination","type","service","status","time","returnCode","standardMessage","errorMessage"]),this.route.params.subscribe(e=>{this.taskId=Number(e.taskId),this.taskManager.getTaskById(this.taskId).subscribe(s=>{this.task=s,this.refreshTable()})})}refreshTable(){this.loading=!0,this.taskManager.getTaskResultsForGUIByTask(this.taskId).subscribe(e=>{this.selection.clear(),this.taskResults=e,this.loading=!1})}removeTaskResult(){const e=(0,p.kZ)();e.width="600px",e.data={theme:"facility-theme",taskResults:this.selection.selected},this.dialog.open(St,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}applyFilter(e){this.filterValue=e}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(v.gz),t.Y36(h.Ob),t.Y36(d.x4),t.Y36(u.uw),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-task-results"]],decls:10,vars:9,consts:[[1,"page-subtitle"],[1,"text-muted"],[3,"refresh"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"tableId","displayedColumns","filterValue","selection","taskResults",4,"ngIf"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"tableId","displayedColumns","filterValue","selection","taskResults"]],template:function(e,s){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"span",1),t._uU(4),t.qZA()(),t.TgZ(5,"perun-web-apps-refresh-button",2),t.NdJ("refresh",function(){return s.refreshTable()}),t.qZA(),t.YNc(6,sn,3,4,"button",3),t.TgZ(7,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(o){return s.applyFilter(o)}),t.qZA(),t.YNc(8,an,1,0,"mat-spinner",5),t.YNc(9,nn,1,5,"perun-web-apps-task-results-list",6)),2&e&&(t.xp6(1),t.AsE(" ",t.lcZ(2,7,"FACILITY_DETAIL.TASK_RESULTS.TITLE")," - ",s.task.service?s.task.service.name:""," "),t.xp6(3),t.hij(" \xa0#",s.task.id," "),t.xp6(2),t.Q6J("ngIf",s.removeAuth),t.xp6(1),t.Q6J("placeholder","FACILITY_DETAIL.TASK_RESULTS.FILTER"),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[m.O5,S.lW,T.Ou,E.t,D.L,en,f.X$]}),i})();var ln=l(20872);let cn=(()=>{class i{constructor(e,s){this.dialogRef=e,this.data=s,this.theme=""}ngOnInit(){this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}onSkip(){this.dialogRef.close(!0)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-no-service-dialog"]],decls:14,vars:15,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["matDialogActions",""],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,s){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",1),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"div",2)(8,"button",3),t.NdJ("click",function(){return s.onCancel()}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"button",4),t.NdJ("click",function(){return s.onSkip()}),t._uU(12),t.ALo(13,"translate"),t.qZA()()()),2&e&&(t.Tol(s.theme),t.xp6(2),t.Oqu(t.lcZ(3,7,"DIALOGS.NO_SERVICE.TITLE")),t.xp6(3),t.hij(" ",t.lcZ(6,9,"DIALOGS.NO_SERVICE.INFO")," "),t.xp6(4),t.hij(" ",t.lcZ(10,11,"DIALOGS.NO_SERVICE.CANCEL")," "),t.xp6(3),t.hij(" ",t.lcZ(13,13,"DIALOGS.NO_SERVICE.SKIP")," "))},dependencies:[S.lW,u.uh,u.xY,u.H8,f.X$]}),i})(),rn=(()=>{class i{constructor(e,s){this.dialogRef=e,this.data=s,this.theme=""}ngOnInit(){this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}onSkip(){this.dialogRef.close(!0)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-config-unsaved-dialog"]],decls:14,vars:15,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["matDialogActions",""],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,s){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",1),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"div",2)(8,"button",3),t.NdJ("click",function(){return s.onCancel()}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"button",4),t.NdJ("click",function(){return s.onSkip()}),t._uU(12),t.ALo(13,"translate"),t.qZA()()()),2&e&&(t.Tol(s.theme),t.xp6(2),t.Oqu(t.lcZ(3,7,"DIALOGS.CONFIG_UNSAVED.TITLE")),t.xp6(3),t.hij(" ",t.lcZ(6,9,"DIALOGS.CONFIG_UNSAVED.INFO")," "),t.xp6(4),t.hij(" ",t.lcZ(10,11,"DIALOGS.CONFIG_UNSAVED.CANCEL")," "),t.xp6(3),t.hij(" ",t.lcZ(13,13,"DIALOGS.CONFIG_UNSAVED.SKIP")," "))},dependencies:[S.lW,u.uh,u.xY,u.H8,f.X$]}),i})();function un(i,n){if(1&i&&(t.TgZ(0,"div",3),t._UZ(1,"i",4),t.ALo(2,"translate"),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("innerHTML",t.lcZ(2,1,e.info),t.oJD)}}function pn(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.onKeep())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CANCEL_CONFIG.KEEP")," "))}function dn(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",5)(1,"button",6),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onCancel())}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"button",7),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onDelete())}),t.TgZ(5,"mat-icon"),t._uU(6," warning "),t.qZA(),t._uU(7),t.ALo(8,"translate"),t.qZA(),t.YNc(9,pn,3,3,"button",8),t.qZA()}if(2&i){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,3,"DIALOGS.CANCEL_CONFIG.CANCEL")," "),t.xp6(5),t.hij(" ",t.lcZ(8,5,"DIALOGS.CANCEL_CONFIG.DELETE")," "),t.xp6(2),t.Q6J("ngIf",!e.lastStep)}}let _n=(()=>{class i{constructor(e,s,a,o,r){this.dialogRef=e,this.data=s,this.facilityService=a,this.notificator=o,this.translate=r,this.theme="",this.title="",this.info="",this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.lastStep=this.data.lastStep,this.lastStep?(this.title="DIALOGS.CANCEL_CONFIG.TITLE_COMPLETE",this.info="DIALOGS.CANCEL_CONFIG.INFO_COMPLETE"):(this.title="DIALOGS.CANCEL_CONFIG.TITLE_INCOMPLETE",this.info="DIALOGS.CANCEL_CONFIG.INFO_INCOMPLETE")}onCancel(){this.dialogRef.close(!1)}onDelete(){this.loading=!0,this.facilityService.deleteFacility(this.data.facilityId,!0).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.CANCEL_CONFIG.SUCCESS")),this.dialogRef.close(!0),this.loading=!1},()=>this.loading=!1)}onKeep(){this.dialogRef.close(!0)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(h.IQ),t.Y36(d.V6),t.Y36(f.sK))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-cancel-configuration-dialog"]],decls:6,vars:8,consts:[["mat-dialog-title",""],["mat-dialog-content","",4,"ngIf"],["matDialogActions","",4,"ngIf"],["mat-dialog-content",""],[3,"innerHTML"],["matDialogActions",""],["mat-flat-button","",1,"mr-2",3,"click"],["color","warn","mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["color","accent","mat-flat-button","",3,"click",4,"ngIf"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,s){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,un,3,3,"div",1),t.YNc(5,dn,10,7,"div",2),t.qZA()),2&e&&(t.Tol(s.theme),t.xp6(2),t.Oqu(t.lcZ(3,6,s.title)),t.xp6(2),t.Q6J("ngIf",!s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[m.O5,R.Hw,S.lW,u.uh,u.xY,u.H8,f.X$]}),i})();var P=l(86257),q=l(37084),mn=l(60205),hn=l(90439),fn=l(30540);const gn=["stepper"];function Tn(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"FACILITY_CONFIGURATION.OWNERS"))}function Sn(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"app-facility-settings-owners",14),t.NdJ("ownerEmitter",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.owners=a)}),t.qZA()}}function Cn(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"FACILITY_CONFIGURATION.HOSTS"))}function An(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"app-facility-hosts",15),t.NdJ("hostEmitter",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.hosts=a)}),t.qZA()}2&i&&t.Q6J("disableRouting",!0)}function In(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"FACILITY_CONFIGURATION.SERVICES"))}const bn=function(){return["select","id","name","enabled","description"]};function yn(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"h1",16),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-alert",17),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.TgZ(6,"div",18)(7,"perun-web-apps-immediate-filter",19),t.NdJ("filter",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.applyFilter(a))}),t.qZA(),t.TgZ(8,"perun-web-apps-service-package-search-select",20),t.NdJ("packageSelected",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.packagesSelected(a))}),t.qZA()(),t.TgZ(9,"app-services-list",21),t.NdJ("selectionChanged",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.singleServiceSelected())}),t.qZA()}if(2&i){const e=t.oxw();t.xp6(1),t.Oqu(t.lcZ(2,13,"FACILITY_CONFIGURATION.SERVICES")),t.xp6(3),t.hij(" ",t.lcZ(5,15,"FACILITY_CONFIGURATION.SERVICES_INFO")," "),t.xp6(3),t.Q6J("placeholder","FACILITY_CONFIGURATION.SERVICES_FILTER"),t.xp6(1),t.Q6J("disableAutoSelect",!0)("selectedPackage",e.selectedPackages)("multiple",!0)("servicePackages",e.servicePackages)("theme","facility-theme"),t.xp6(1),t.Q6J("disableRouting",!0)("displayedColumns",t.DdM(17,bn))("selection",e.selection)("filterValue",e.filterValue)("services",e.services)}}function vn(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"FACILITY_CONFIGURATION.SERVICE_CONFIG"))}function xn(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"perun-web-apps-service-search-select",27),t.NdJ("serviceSelected",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(o.filterAttributes(a))}),t.qZA()}if(2&i){const e=t.oxw(2);t.Q6J("disableAutoSelect",!0)("services",e.selection.selected)("multiple",!0)("theme","facility-theme")}}function En(i,n){1&i&&t._UZ(0,"mat-spinner",28)}function Dn(i,n){if(1&i&&t._UZ(0,"perun-web-apps-attributes-list",29),2&i){const e=t.oxw(2);t.Q6J("emptyListText","FACILITY_CONFIGURATION.EMPTY_REQ_ATT")("attributes",e.filteredAttributes)("selection",e.attSelection)}}function Ln(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"h1",16),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-alert",17),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.TgZ(6,"div",18)(7,"button",22),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onRemoveAttributes())}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",23),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onSaveAttributes())}),t._uU(11),t.ALo(12,"translate"),t.qZA(),t.YNc(13,xn,1,4,"perun-web-apps-service-search-select",24),t.qZA(),t.YNc(14,En,1,0,"mat-spinner",25),t.YNc(15,Dn,1,3,"perun-web-apps-attributes-list",26)}if(2&i){const e=t.oxw(),s=t.MAs(5);t.xp6(1),t.Oqu(t.lcZ(2,9,"FACILITY_CONFIGURATION.SERVICE_CONFIG")),t.xp6(3),t.hij(" ",t.lcZ(5,11,"FACILITY_CONFIGURATION.ATT_INFO")," "),t.xp6(3),t.Q6J("disabled",0===e.attSelection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(9,13,"FACILITY_CONFIGURATION.REMOVE")," "),t.xp6(2),t.Q6J("disabled",0===e.attSelection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(12,15,"FACILITY_CONFIGURATION.SAVE")," "),t.xp6(2),t.Q6J("ngIf",s.selectedIndex===e.ATTRIBUTES_IDX),t.xp6(1),t.Q6J("ngIf",e.processing),t.xp6(1),t.Q6J("ngIf",!e.processing)}}function Zn(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"FACILITY_CONFIGURATION.DESTINATION_CONFIG"))}const On=function(){return["select","destinationId","service","warn","destination","type","propagationType"]};function Rn(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"app-perun-web-apps-facility-services-destinations",30),t.NdJ("destinationEmitter",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.destinations=a)}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("configServicesIds",e.serviceIds)("displayedColumns",t.DdM(5,On))("configServices",e.selection.selected)("loading",e.processing)("title","FACILITY_CONFIGURATION.DESTINATION_CONFIG")}}function Fn(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"FACILITY_CONFIGURATION.MANAGERS"))}function Nn(i,n){1&i&&t._UZ(0,"app-perun-web-apps-facility-settings-managers",31),2&i&&t.Q6J("disableRouting",!0)("disableSelf",!0)}function kn(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"FACILITY_CONFIGURATION.SUMMARY"))}function wn(i,n){1&i&&t._UZ(0,"mat-spinner",28)}const Yn=function(){return["id","name","contact","type"]};function Un(i,n){if(1&i&&t._UZ(0,"perun-web-apps-owners-list",48),2&i){const e=t.oxw(3);t.Q6J("displayedColumns",t.DdM(2,Yn))("owners",e.owners)}}function Mn(i,n){1&i&&t._UZ(0,"mat-spinner",28)}const Jn=function(){return["id","name"]};function Qn(i,n){if(1&i&&t._UZ(0,"app-hosts-list",49),2&i){const e=t.oxw(3);t.Q6J("disableRouting",!0)("displayedColumns",t.DdM(3,Jn))("hosts",e.hosts)}}function Hn(i,n){1&i&&t._UZ(0,"mat-spinner",28)}const Gn=function(){return["id","name","enabled","script","description"]},Pn=function(){return["id","displayName","value","description"]},qn=function(){return["destinationId","service","warn","destination","type","propagationType"]},Vn=function(){return["id","vo","name","description"]},Bn=function(){return["id","name","email","logins","organization"]};function jn(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-accordion")(1,"mat-expansion-panel",34)(2,"mat-expansion-panel-header")(3,"mat-panel-title"),t._UZ(4,"mat-icon",35),t._uU(5),t.ALo(6,"translate"),t.qZA()(),t.TgZ(7,"h1",16),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.YNc(10,wn,1,0,"mat-spinner",25),t.YNc(11,Un,1,3,"perun-web-apps-owners-list",36),t.qZA(),t.TgZ(12,"mat-expansion-panel",34)(13,"mat-expansion-panel-header")(14,"mat-panel-title"),t._UZ(15,"mat-icon",37),t._uU(16),t.ALo(17,"translate"),t.qZA()(),t.TgZ(18,"h1",16),t._uU(19),t.ALo(20,"translate"),t.qZA(),t.YNc(21,Mn,1,0,"mat-spinner",25),t.YNc(22,Qn,1,4,"app-hosts-list",38),t.qZA(),t.TgZ(23,"mat-expansion-panel",34)(24,"mat-expansion-panel-header")(25,"mat-panel-title"),t._UZ(26,"mat-icon",39),t._uU(27),t.ALo(28,"translate"),t.qZA()(),t.TgZ(29,"h1",16),t._uU(30),t.ALo(31,"translate"),t.qZA(),t._UZ(32,"app-services-list",40),t.qZA(),t.TgZ(33,"mat-expansion-panel",41),t.NdJ("opened",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.getNonEmptyAttributes())}),t.TgZ(34,"mat-expansion-panel-header")(35,"mat-panel-title"),t._UZ(36,"mat-icon",37),t._uU(37),t.ALo(38,"translate"),t.qZA()(),t.TgZ(39,"h1",16),t._uU(40),t.ALo(41,"translate"),t.qZA(),t._UZ(42,"perun-web-apps-attributes-list",42),t.qZA(),t.TgZ(43,"mat-expansion-panel",43),t.NdJ("expandedChange",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(o.destinationServiceMissing=a)}),t.TgZ(44,"mat-expansion-panel-header")(45,"mat-panel-title"),t._UZ(46,"mat-icon",44),t._uU(47),t.ALo(48,"translate"),t.qZA()(),t.TgZ(49,"h1",16),t._uU(50),t.ALo(51,"translate"),t.qZA(),t.YNc(52,Hn,1,0,"mat-spinner",25),t._UZ(53,"app-perun-web-apps-destination-list",45),t.qZA(),t.TgZ(54,"mat-expansion-panel")(55,"mat-expansion-panel-header")(56,"mat-panel-title"),t._UZ(57,"mat-icon",46),t._uU(58),t.ALo(59,"translate"),t.qZA()(),t._UZ(60,"app-managers-page",47),t.qZA()()}if(2&i){const e=t.oxw(2);t.Q6J("@.disabled",!0),t.xp6(1),t.Q6J("disabled",0===e.owners.length),t.xp6(1),t.ekj("cursor-default",0===e.owners.length),t.xp6(3),t.hij(" ",t.lcZ(6,49,"FACILITY_CONFIGURATION.OWNERS")," "),t.xp6(3),t.Oqu(t.lcZ(9,51,"FACILITY_CONFIGURATION.OWNERS")),t.xp6(2),t.Q6J("ngIf",e.processing),t.xp6(1),t.Q6J("ngIf",!e.processing),t.xp6(1),t.Q6J("disabled",0===e.hosts.length),t.xp6(1),t.ekj("cursor-default",0===e.hosts.length),t.xp6(3),t.hij(" ",t.lcZ(17,53,"FACILITY_CONFIGURATION.HOSTS")," "),t.xp6(3),t.Oqu(t.lcZ(20,55,"FACILITY_CONFIGURATION.HOSTS")),t.xp6(2),t.Q6J("ngIf",e.processing),t.xp6(1),t.Q6J("ngIf",!e.processing),t.xp6(1),t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.ekj("cursor-default",0===e.selection.selected.length),t.xp6(3),t.hij(" ",t.lcZ(28,57,"FACILITY_CONFIGURATION.SERVICES")," "),t.xp6(3),t.Oqu(t.lcZ(31,59,"FACILITY_CONFIGURATION.SERVICES")),t.xp6(2),t.Q6J("disableRouting",!0)("displayedColumns",t.DdM(71,Gn))("services",e.selection.selected),t.xp6(1),t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.ekj("cursor-default",0===e.selection.selected.length),t.xp6(3),t.hij(" ",t.lcZ(38,61,"FACILITY_CONFIGURATION.SERVICE_CONFIG")," "),t.xp6(3),t.Oqu(t.lcZ(41,63,"FACILITY_CONFIGURATION.ATTS")),t.xp6(2),t.Q6J("displayedColumns",t.DdM(72,Pn))("attributes",e.filteredAttributes)("emptyListText","FACILITY_CONFIGURATION.EMPTY_REQ_ATT"),t.xp6(1),t.Q6J("expanded",e.destinationServiceMissing)("disabled",0===e.selection.selected.length&&0===e.destinations.length),t.xp6(1),t.ekj("cursor-default",0===e.selection.selected.length&&0===e.destinations.length),t.xp6(3),t.hij(" ",t.lcZ(48,65,"FACILITY_CONFIGURATION.DESTINATION_CONFIG")," "),t.xp6(3),t.Oqu(t.lcZ(51,67,"FACILITY_CONFIGURATION.DESTINATION")),t.xp6(2),t.Q6J("ngIf",e.processing),t.xp6(1),t.Q6J("destinations",e.destinations)("displayedColumns",t.DdM(73,qn))("services",e.serviceIds),t.xp6(5),t.hij(" ",t.lcZ(59,69,"FACILITY_CONFIGURATION.MANAGERS")," "),t.xp6(2),t.Q6J("complementaryObject",e.facility)("configMode",!0)("disableRouting",!0)("availableRoles",e.availableRoles)("complementaryObjectType","Facility")("displayedGroupColumns",t.DdM(74,Vn))("displayedUserColumns",t.DdM(75,Bn))}}function Kn(i,n){if(1&i&&(t.TgZ(0,"perun-web-apps-alert",17),t._UZ(1,"i",32),t.ALo(2,"translate"),t.qZA(),t.YNc(3,jn,61,76,"mat-accordion",33)),2&i){t.oxw();const e=t.MAs(5);t.xp6(1),t.Q6J("innerHTML",t.lcZ(2,2,"FACILITY_CONFIGURATION.SUMMARY_INFO"),t.oJD),t.xp6(2),t.Q6J("ngIf",e.selectedIndex===e.steps.length-1)}}function zn(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",50),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.back())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"FACILITY_CONFIGURATION.BACK")," "))}function $n(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",51),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.next())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){t.oxw();const e=t.MAs(5);t.ekj("mr-2",void 0!==e&&0!==e.selectedIndex)("ml-auto",!(void 0!==e&&0!==e.selectedIndex)),t.xp6(1),t.hij(" ",t.lcZ(2,5,"FACILITY_CONFIGURATION.NEXT")," ")}}function Wn(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",52),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onFinish())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"FACILITY_CONFIGURATION.FINISH")," "))}let Xn=(()=>{class i{constructor(e,s,a,o,r,_,C,b,L,y){this.attributesManager=e,this.serviceManager=s,this.facilityService=a,this.cd=o,this.dialog=r,this.notificator=_,this.translate=C,this.router=b,this.guiAuthResolver=L,this.entityStorageService=y,this.processing=!1,this.filteredAttributes=[],this.attSelection=new A.Ov(!0,[]),this.services=[],this.serviceIds=new Set,this.servicePackages=[],this.selectedPackages=[],this.selection=new A.Ov(!0,[]),this.owners=[],this.hosts=[],this.destinations=[],this.destinationServiceMissing=!1,this.availableRoles=[],this.filterValue="",this.ATTRIBUTES_IDX=3,this.serviceControl=new g.p4(!1,g.kI.requiredTrue),this.attributesControl=new g.p4(!0,g.kI.requiredTrue),this.allowNavigate=!1,this.attributes=[],this.attributeIds=new Set,this.attributesPerService=new Map,this.servicesPerPackage=new Map,this.saveMsg="",this.removeMsg="",this.BEFORE_OPTIONAL_IDX=2,this.DESTINATIONS_IDX=4,this.AFTER_OPTIONAL_IDX=5,this.translate.get("FACILITY_CONFIGURATION.ATT_SAVED").subscribe(tt=>this.saveMsg=tt),this.translate.get("FACILITY_CONFIGURATION.ATT_REMOVED").subscribe(tt=>this.removeMsg=tt)}ngOnInit(){this.facility=this.entityStorageService.getEntity(),this.guiAuthResolver.assignAvailableRoles(this.availableRoles,"Facility"),this.serviceManager.getServicesPackages().subscribe(e=>{this.servicePackages=e,this.getServicePackageServices(e,0)})}ngAfterViewInit(){this.cd.detectChanges(),this.attSelection.changed.subscribe(()=>{this.attributesControl.setValue(0===this.attSelection.selected.length)})}onCancel(){const e=(0,p.kZ)();e.width="550px",e.data={facilityId:this.facility.id,lastStep:this.stepper.selectedIndex===this.stepper.steps.length-1,theme:"facility-theme"},this.dialog.open(_n,e).afterClosed().subscribe(a=>{a&&(this.allowNavigate=!0,sessionStorage.removeItem("newFacilityId"),this.router.navigate(["facilities"],{queryParamsHandling:"merge"}))})}packagesSelected(e){if(this.packageSelectionEqual(e))return;this.processing=!0;let s=new Set;if(e&&0!==e.length?s=this.setSymDif(this.selectedPackages,e):this.selectedPackages.forEach(r=>{this.servicesPerPackage.get(r.id).forEach(_=>s.add(_))}),0===s.size)return;const a=this.filterService(s,e.filter(r=>this.selectedPackages.findIndex(_=>_.id===r.id)<0)),o=this.filterService(s,this.selectedPackages.filter(r=>e.findIndex(_=>_.id===r.id)<0));for(const r of this.services)a.has(r.id)?this.selection.select(r):o.has(r.id)&&this.selection.deselect(r);this.selectedPackages=e,this.setServiceControl(),this.processing=!1}singleServiceSelected(){this.setServiceControl(),!this.processing&&this.checkPackageComplete()}back(){this.stepper.selectedIndex<=this.BEFORE_OPTIONAL_IDX&&this.setServiceControl(),this.stepper.selectedIndex===this.AFTER_OPTIONAL_IDX&&0===this.selection.selected.length?this.stepper.selectedIndex=this.BEFORE_OPTIONAL_IDX:this.stepper.previous()}onSaveAttributes(){return new Promise((e,s)=>{this.processing=!0,this.attributesManager.setFacilityAttributes({facility:this.facility.id,attributes:this.attSelection.selected}).subscribe({next:()=>{this.notificator.showSuccess(this.saveMsg),this.attSelection.clear(),this.processing=!1,e()},error:()=>{this.processing=!1,s()}})})}next(){this.checkDestinationDependency(this.stepper.selectedIndex),this.stepper.selectedIndex===this.BEFORE_OPTIONAL_IDX?0===this.selection.selected.length?this.openSkipDialog():(this.getRequiredAttributes(),this.stepper.next()):this.stepper.selectedIndex===this.ATTRIBUTES_IDX&&0!==this.attSelection.selected.length?this.openUnsavedAttsDialog():this.stepper.next()}onFinish(){this.allowNavigate=!0,sessionStorage.removeItem("newFacilityId"),this.router.navigate(["facilities",this.facility.id],{queryParamsHandling:"merge"})}onRemoveAttributes(){this.processing=!0;const e=this.attSelection.selected.map(s=>s.id);this.attributesManager.removeFacilityAttributes(this.facility.id,e).subscribe({next:()=>{this.notificator.showSuccess(this.removeMsg),this.getRequiredAttributes(),this.processing=!1},error:()=>this.processing=!1})}filterAttributes(e){if(void 0===e||0===e.length)return void(this.filteredAttributes=this.attributes);const s=new Set;for(const a of e)this.attributesPerService.get(a.id).forEach(o=>s.add(o));this.filteredAttributes=[];for(const a of this.attributes)s.has(a.id)&&this.filteredAttributes.push(a)}getNonEmptyAttributes(){this.filteredAttributes=this.attributes.filter(e=>{if(e.value&&(!Array.isArray(e.value)||0!==e.value.length))return e})}navigationStep(e){this.checkDestinationDependency(e.previouslySelectedIndex),e.selectedIndex===this.ATTRIBUTES_IDX?this.getRequiredAttributes():e.selectedIndex===this.DESTINATIONS_IDX?this.processing=!1:e.selectedIndex<=this.BEFORE_OPTIONAL_IDX&&this.setServiceControl()}applyFilter(e){this.filterValue=e}canDeactivate(){return this.allowNavigate||this.onCancel(),this.allowNavigate}getServicePackageServices(e,s){s===e.length?this.serviceManager.getServices().subscribe(a=>{this.services=a}):this.serviceManager.getServicesFromServicesPackage(e[s].id).subscribe(a=>{this.servicesPerPackage.set(e[s].id,new Set([...a.map(o=>o.id)])),this.getServicePackageServices(e,s+1)})}getServiceRequiredAttributes(e,s){s!==e.length&&this.attributesManager.getRequiredAttributesDefinition(e[s].id).subscribe(a=>{a=a.filter(o=>this.attributeIds.has(o.id)),this.attributesPerService.set(e[s].id,a.map(o=>o.id)),this.getServiceRequiredAttributes(e,s+1)})}setServiceControl(){this.serviceControl.setValue(0!==this.selection.selected.length)}buildServiceSet(e){const s=new Set;return e.forEach(a=>{this.servicesPerPackage.get(a.id).forEach(o=>s.add(o))}),s}setDiff(e,s){return new Set([...e].filter(a=>!s.has(a)))}setIntersect(e,s){return new Set([...e].filter(a=>s.has(a)))}setSymDif(e,s){const a=this.buildServiceSet(e),o=this.buildServiceSet(s),r=this.setDiff(a,o),_=this.setDiff(o,a);return new Set([...r,..._])}filterService(e,s){const a=new Set;for(const o of s){const r=this.setIntersect(e,this.servicesPerPackage.get(o.id));0!==r.size&&r.forEach(_=>a.add(_))}return a}packageSelectionEqual(e){return e.length===this.selectedPackages.length&&(e.forEach(s=>{if(-1===this.selectedPackages.findIndex(a=>a.id===s.id))return!1}),!0)}checkPackageComplete(){const e=[];for(const s of this.selectedPackages){let a=!0;for(const o of this.servicesPerPackage.get(s.id))if(-1===this.selection.selected.findIndex(r=>r.id===o)){a=!1;break}a&&e.push(s)}this.selectedPackages=e}openSkipDialog(){const e=(0,p.kZ)();e.width="400px",e.data={theme:"facility-theme"},this.dialog.open(cn,e).afterClosed().subscribe(a=>{a&&(this.serviceControl.setValue(!0),this.stepper.selectedIndex=this.AFTER_OPTIONAL_IDX)})}getRequiredAttributes(){this.processing=!0,this.attributesManager.getRequiredAttributesFacilityServices(this.selection.selected.map(e=>e.id),this.facility.id).subscribe(e=>{this.attSelection.clear(),this.attributes=e.filter(s=>!(0,p.Hm)(s)),this.filteredAttributes=this.attributes,this.attributes.forEach(s=>this.attributeIds.add(s.id)),this.getServiceRequiredAttributes(this.selection.selected,0),this.processing=!1})}openUnsavedAttsDialog(){const e=(0,p.kZ)();e.width="400px",e.data={theme:"facility-theme"},this.dialog.open(rn,e).afterClosed().subscribe(a=>{a&&this.onSaveAttributes().then(()=>{this.stepper.next()},()=>this.getRequiredAttributes())})}checkDestinationDependency(e){(e===this.BEFORE_OPTIONAL_IDX||e===this.DESTINATIONS_IDX)&&(this.serviceIds=new Set([...this.selection.selected.map(s=>s.id)]),this.destinationServicePresent())}destinationServicePresent(){for(const e of this.destinations)if(!this.serviceIds.has(e.service.id))return void(this.destinationServiceMissing=!0);this.destinationServiceMissing=!1}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.H8),t.Y36(h.KK),t.Y36(h.IQ),t.Y36(t.sBO),t.Y36(u.uw),t.Y36(d.V6),t.Y36(f.sK),t.Y36(v.F0),t.Y36(d.x4),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-configuration-page"]],viewQuery:function(e,s){if(1&e&&t.Gf(gn,5),2&e){let a;t.iGM(a=t.CRH())&&(s.stepper=a.first)}},decls:34,vars:15,consts:[[1,"facility-theme"],[1,"page-title"],[3,"linear","selectionChange"],["stepper",""],["matStepLabel",""],["matStepContent",""],[3,"stepControl"],["optional","true",3,"editable","stepControl"],[3,"editable","optional"],[1,"actions"],["mat-flat-button","",3,"click"],["class","ml-auto mr-2","mat-flat-button","",3,"click",4,"ngIf"],["color","accent","mat-flat-button","",3,"mr-2","ml-auto","click",4,"ngIf"],["class","mr-2","color","accent","mat-flat-button","",3,"click",4,"ngIf"],[3,"ownerEmitter"],[3,"disableRouting","hostEmitter"],[1,"page-subtitle"],["alert_type","info"],[1,"filters"],[1,"filter",3,"placeholder","filter"],[1,"package-search-select",3,"disableAutoSelect","selectedPackage","multiple","servicePackages","theme","packageSelected"],[3,"disableRouting","displayedColumns","selection","filterValue","services","selectionChanged"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],["color","accent","mat-flat-button","",1,"mr-2",3,"disabled","click"],["class","service-search-select",3,"disableAutoSelect","services","multiple","theme","serviceSelected",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"emptyListText","attributes","selection",4,"ngIf"],[1,"service-search-select",3,"disableAutoSelect","services","multiple","theme","serviceSelected"],[1,"ml-auto","mr-auto"],[3,"emptyListText","attributes","selection"],[3,"configServicesIds","displayedColumns","configServices","loading","title","destinationEmitter"],[3,"disableRouting","disableSelf"],[3,"innerHTML"],[4,"ngIf"],[3,"disabled"],["svgIcon","perun-owner-grey",1,"mr-2"],[3,"displayedColumns","owners",4,"ngIf"],["svgIcon","perun-hosts",1,"mr-2"],[3,"disableRouting","displayedColumns","hosts",4,"ngIf"],["svgIcon","perun-service",1,"mr-2"],[3,"disableRouting","displayedColumns","services"],[3,"disabled","opened"],[3,"displayedColumns","attributes","emptyListText"],[3,"expanded","disabled","expandedChange"],["svgIcon","perun-service_destination",1,"mr-2"],[3,"destinations","displayedColumns","services"],["svgIcon","perun-manager",1,"mr-2"],[3,"complementaryObject","configMode","disableRouting","availableRoles","complementaryObjectType","displayedGroupColumns","displayedUserColumns"],[3,"displayedColumns","owners"],[3,"disableRouting","displayedColumns","hosts"],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["color","accent","mat-flat-button","",3,"click"],["color","accent","mat-flat-button","",1,"mr-2",3,"click"]],template:function(e,s){if(1&e&&(t.TgZ(0,"div",0)(1,"div",1),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-stepper",2,3),t.NdJ("selectionChange",function(o){return s.navigationStep(o)}),t.TgZ(6,"mat-step"),t.YNc(7,Tn,2,3,"ng-template",4),t.YNc(8,Sn,1,0,"ng-template",5),t.qZA(),t.TgZ(9,"mat-step"),t.YNc(10,Cn,2,3,"ng-template",4),t.YNc(11,An,1,1,"ng-template",5),t.qZA(),t.TgZ(12,"mat-step",6),t.YNc(13,In,2,3,"ng-template",4),t.YNc(14,yn,10,18,"ng-template",5),t.qZA(),t.TgZ(15,"mat-step",7),t.YNc(16,vn,2,3,"ng-template",4),t.YNc(17,Ln,16,17,"ng-template",5),t.qZA(),t.TgZ(18,"mat-step",8),t.YNc(19,Zn,2,3,"ng-template",4),t.YNc(20,Rn,1,6,"ng-template",5),t.qZA(),t.TgZ(21,"mat-step"),t.YNc(22,Fn,2,3,"ng-template",4),t.YNc(23,Nn,1,2,"ng-template",5),t.qZA(),t.TgZ(24,"mat-step"),t.YNc(25,kn,2,3,"ng-template",4),t.YNc(26,Kn,4,4,"ng-template",5),t.qZA()(),t.TgZ(27,"div",9)(28,"button",10),t.NdJ("click",function(){return s.onCancel()}),t._uU(29),t.ALo(30,"translate"),t.qZA(),t.YNc(31,zn,3,3,"button",11),t.YNc(32,$n,3,7,"button",12),t.YNc(33,Wn,3,3,"button",13),t.qZA()()),2&e){const a=t.MAs(5);t.xp6(2),t.hij(" ",t.lcZ(3,11,"FACILITY_CONFIGURATION.TITLE")," "),t.xp6(2),t.Q6J("linear",!0),t.xp6(8),t.Q6J("stepControl",s.serviceControl),t.xp6(3),t.Q6J("editable",0!==s.selection.selected.length)("stepControl",s.attributesControl),t.xp6(3),t.Q6J("editable",0!==s.selection.selected.length||0!==s.destinations.length)("optional",0===s.destinations.length),t.xp6(11),t.hij(" ",t.lcZ(30,13,"FACILITY_CONFIGURATION.CANCEL")," "),t.xp6(2),t.Q6J("ngIf",void 0!==a&&0!==a.selectedIndex),t.xp6(1),t.Q6J("ngIf",void 0!==a&&a.selectedIndex!==a.steps.length-1),t.xp6(1),t.Q6J("ngIf",void 0!==a&&a.selectedIndex===a.steps.length-1)}},dependencies:[m.O5,R.Hw,S.lW,T.Ou,P.C0,P.VY,P.Vq,P.BY,q.pp,q.ib,q.yz,q.yK,rt.s,pt.q,ft,mn.Q,O.w,D.L,Tt.p,z.Q,hn.F,fn.J,ut,dt,_t,gt,f.X$],styles:[".icon-scale[_ngcontent-%COMP%]{transform:scale(1.7);margin-left:.5rem;margin-top:-.6rem;margin-right:.9rem}.filters[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:baseline}.package-search-select[_ngcontent-%COMP%]{width:650px}.service-search-select[_ngcontent-%COMP%]{width:400px}.filter[_ngcontent-%COMP%]{width:350px;margin-right:20px}.actions[_ngcontent-%COMP%]{background-color:#fff;display:flex;padding:20px}.cursor-default[_ngcontent-%COMP%]{cursor:default}"]}),i})(),At=(()=>{class i{constructor(e){this.router=e}canActivate(e){return e.parent.params.facilityId===sessionStorage.getItem("newFacilityId")||(this.router.navigate(["/home"],{queryParamsHandling:"merge"}),!1)}canDeactivate(e){return e.canDeactivate()}}return i.\u0275fac=function(e){return new(e||i)(t.LFG(v.F0))},i.\u0275prov=t.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();var W=l(71992),X=l(64080),It=l(64901),to=l(11447),eo=l(83370);let io=(()=>{class i{constructor(e,s,a,o,r){this.data=e,this.dialogRef=s,this.store=a,this.facilityService=o,this.notificator=r,this.selection=new A.Ov(!1,[]),this.loading=!1,this.attrNames=[X.r.USER_DEF_PREFERRED_MAIL].concat(this.store.getLoginAttributeNames()),this.displayedColumns=["select","id","name","email","logins"],this.tableId=x.bj,this.filter=""}ngOnInit(){this.selection.changed.subscribe(e=>{this.ban=this.data.bans.find(s=>s.userId===e.source.selected[0]?.id)})}cancel(){this.dialogRef.close(!1)}submitBan(e){this.ban?this.updateBan(e):this.banUser(e)}setFilter(e){this.filter=e,this.selection.clear()}banUser(e){this.loading=!0,this.facilityService.setFacilityBan({banOnFacility:{userId:this.selection.selected[0].id,facilityId:this.data.entityId,description:e.description,validityTo:e.validity,id:0,beanName:"BanOnVo"}}).subscribe({next:()=>{this.notificator.showSuccess("DIALOGS.ADD_BAN.SUCCESS_USER"),this.dialogRef.close(!0)},error:()=>this.loading=!1})}updateBan(e){this.loading=!0,this.facilityService.updateFacilityBan({banOnFacility:{id:this.ban.id,beanName:"BanOnFacility",facilityId:this.ban.facilityId,userId:this.ban.userId,description:e.description,validityTo:e.validity}}).subscribe({next:()=>{this.notificator.showSuccess("DIALOGS.UPDATE_BAN.SUCCESS"),this.dialogRef.close(!0)},error:()=>{this.loading=!1}})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.WI),t.Y36(u.so),t.Y36(d.d6),t.Y36(h.IQ),t.Y36(d.V6))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-add-facility-ban-dialog"]],decls:3,vars:12,consts:[[3,"loading","disabled","theme","ban","add","cancel"],[3,"placeholder","filter"],[3,"attrNames","selection","tableId","disableRouting","displayedColumns","searchString","facilityId"]],template:function(e,s){1&e&&(t.TgZ(0,"app-add-ban-dialog",0),t.NdJ("add",function(o){return s.submitBan(o)})("cancel",function(){return s.cancel()}),t.TgZ(1,"perun-web-apps-debounce-filter",1),t.NdJ("filter",function(o){return s.setFilter(o)}),t.qZA(),t._UZ(2,"perun-web-apps-users-dynamic-list",2),t.qZA()),2&e&&(t.Q6J("loading",s.loading)("disabled",0===s.selection.selected.length)("theme",s.data.theme)("ban",s.ban),t.xp6(1),t.Q6J("placeholder","DIALOGS.ADD_BAN.FILTER"),t.xp6(1),t.Q6J("attrNames",s.attrNames)("selection",s.selection)("tableId",s.tableId)("disableRouting",!0)("displayedColumns",s.displayedColumns)("searchString",s.filter)("facilityId",s.data.entityId))},dependencies:[It.P,to.M,eo.u]}),i})();var so=l(90979),ao=l(73358),no=l(91880);function oo(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.add())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"FACILITY_DETAIL.SETTINGS.BANS.ADD"),"\n"))}function lo(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.remove())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"FACILITY_DETAIL.SETTINGS.BANS.REMOVE"),"\n")}}function co(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"perun-web-apps-ban-on-entity-list",10),t.NdJ("updateBan",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.update(a))}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("bans",e.bans)("selection",e.selection)("displayedColumns",e.displayedColumns)("filter",e.filter)("updatePolicy","updateBan_BanOnFacility_policy")}}function ro(i,n){1&i&&(t.TgZ(0,"div",11),t._UZ(1,"mat-spinner"),t.qZA())}let uo=(()=>{class i{constructor(e,s,a,o,r,_,C){this.facilityService=e,this.entityService=s,this.authResolver=a,this.dialog=o,this.notificator=r,this.store=_,this.userName=C,this.loading=!1,this.bans=[],this.removeAuth=!1,this.filter="",this.selection=new A.Ov(!1,[]),this.attrNames=[X.r.MEMBER_DEF_MAIL,X.r.USER_DEF_PREFERRED_MAIL].concat(this.store.getLoginAttributeNames()),this.displayedColumns=["select","banId","subjectId","subjectName","description","expiration","edit"]}ngOnInit(){this.loading=!0,this.facility=this.entityService.getEntity(),this.addAuth=this.authResolver.isAuthorized("setBan_BanOnFacility_policy",[this.facility]),this.removeAuth=this.authResolver.isAuthorized("removeBan_int_policy",[this.facility]),this.refresh()}refresh(){this.loading=!0,this.facilityService.getEnrichedBansForFacility(this.facility.id,this.attrNames).subscribe({next:e=>{this.bans=e,this.selection.clear(),this.loading=!1},error:()=>this.loading=!1})}add(){const e=(0,p.kZ)();e.width="850px",e.data={entityId:this.facility.id,theme:"facility-theme",bans:this.bans.map(a=>a.ban)},this.dialog.open(io,e).afterClosed().subscribe(a=>{a&&this.refresh()})}remove(){const e=(0,p.kZ)();e.width="550px",e.data={theme:"facility-theme",title:"DIALOGS.REMOVE_BAN.TITLE",description:"DIALOGS.REMOVE_BAN.DESCRIPTION",items:[this.userName.transform(this.selection.selected[0].user)],type:"remove",showAsk:!0},this.dialog.open(M.Ts,e).afterClosed().subscribe(a=>{a&&this.facilityService.removeFacilityBanById(this.selection.selected[0].ban.id).subscribe(()=>{this.notificator.showSuccess("DIALOGS.REMOVE_BAN.SUCCESS"),this.refresh()})})}update(e){const s=(0,p.kZ)();s.width="600px",s.data={ban:e.ban,theme:"facility-theme"},this.dialog.open(so.G,s).afterClosed().subscribe(o=>{o&&this.refresh()})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.IQ),t.Y36(d.fb),t.Y36(d.x4),t.Y36(u.uw),t.Y36(d.V6),t.Y36(d.d6),t.Y36(F.dp))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-settings-bans"]],features:[t._Bn([F.dp])],decls:11,vars:8,consts:[[1,"page-subtitle"],[3,"click"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["color","warn","class","mr-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],[1,"mt-2","search-field",3,"placeholder","filter"],[1,"position-relative"],[3,"bans","selection","displayedColumns","filter","updatePolicy","updateBan",4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["spinner",""],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[3,"bans","selection","displayedColumns","filter","updatePolicy","updateBan"],[1,"spinner-container"]],template:function(e,s){if(1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-refresh-button",1),t.NdJ("click",function(){return s.refresh()}),t.qZA(),t.YNc(4,oo,3,3,"button",2),t.YNc(5,lo,3,4,"button",3),t.TgZ(6,"perun-web-apps-debounce-filter",4),t.NdJ("filter",function(o){return s.filter=o}),t.qZA(),t.TgZ(7,"div",5),t.YNc(8,co,1,5,"perun-web-apps-ban-on-entity-list",6),t.qZA(),t.YNc(9,ro,2,0,"ng-template",null,7,t.W1O)),2&e){const a=t.MAs(10);t.xp6(1),t.hij(" ",t.lcZ(2,6,"FACILITY_DETAIL.SETTINGS.BANS.TITLE"),"\n"),t.xp6(3),t.Q6J("ngIf",s.addAuth),t.xp6(1),t.Q6J("ngIf",s.removeAuth),t.xp6(1),t.Q6J("placeholder","FACILITY_DETAIL.SETTINGS.BANS.FILTER"),t.xp6(2),t.Q6J("perunWebAppsLoader",s.loading)("perunWebAppsLoaderIndicator",a)}},dependencies:[m.O5,S.lW,T.Ou,E.t,It.P,ao.e,no.s,f.X$]}),i})();var po=l(35265);const _o=[{path:"",component:it.P,canActivateChild:[W.a],children:[{path:"",component:it.P,data:{animation:"FacilitySelectPage"}}]},{path:":facilityId",component:kt,canActivateChild:[W.a],children:[{path:"",component:Ut,data:{animation:"FacilityOverviewPage"}},{path:"attributes",component:te,data:{animation:"FacilityAttributesPage"}},{path:"resources",component:Mt.f,data:{animation:"FacilityResourcesPage"}},{path:"allowed-users",component:va._,data:{animation:"FacilityAllowedUsersPage"}},{path:"allowed-groups",component:Jt.o,data:{animation:"FacilityAllowedGroupsPage"}},{path:"services-status",component:ya,data:{animation:"FacilityServiceStatusPage"}},{path:"services-status/:taskId",component:on,data:{animation:"FacilityTaskResultsPage"}},{path:"service-config",component:he,data:{animation:"FacilityServiceConfigPage"}},{path:"services-destinations",component:dt,data:{animation:"FacilityServicesDestinationsPage"}},{path:"hosts",component:gt,data:{animation:"FacilityHostsPage"}},{path:"hosts/:hostId",component:Xi,data:{animation:"FacilityHostsDetailPage"}},{path:"settings",component:Gt,children:[{path:"",component:Vt,data:{animation:"FacilitySettingsOverviewPage"}},{path:"owners",component:_t,data:{animation:"FacilitySettingOwnersPage"}},{path:"managers",component:ut,data:{animation:"FacilitySettingsManagersPage"}},{path:"security-teams",component:Ts,data:{animation:"FacilitySecurityTeamsPage"}},{path:"blacklist",component:Vi,data:{animation:"FacilitySettingsBlackListPage"}},{path:"bans",component:uo,data:{animation:"FacilitySettingsBansPage"}}]},{path:"configuration",component:Xn,canActivate:[At],canDeactivate:[At]}]},{path:":facilityId/resources/:resourceId",component:Qt.b,canActivateChild:[W.a],children:[{path:"",component:Ht.H,data:{animation:"ResourceOverviewPage"}},{path:"attributes",component:se.X,data:{animation:"ResourceAttributesPage"}},{path:"groups",component:ae.K,data:{animation:"ResourceGroupsComponent"}},{path:"services",component:Cs.D,data:{animation:"ResourceAssignedServicesComponent"}},{path:"members",component:xa.y,data:{animation:"ResourceAssignedMembersComponent"}},{path:"tags",component:ln.v,data:{animation:"ResourceTagsComponent"}},{path:"settings",component:ee.t,children:[{path:"",component:ie.h,data:{animation:"ResourceSettingsOverviewPage"}},{path:"managers",component:Ss.O,data:{animation:"ResourceSettingsManagersPage"}},{path:"bans",component:po.I,data:{animation:"ResourceSettingsBansPage"}}]}]}];let mo=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[v.Bz.forChild(_o),v.Bz]}),i})();var ho=l(14264),fo=l(63189),go=l(38338),To=l(72705);let So=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({providers:[F.dp],imports:[m.ez,mo,ho.m,fo.r,Bi.ez,F.d4,go.UsersModule,To.AdminModule]}),i})()}}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/775.d03b5f65f6c4a6cd.js b/dist/apps/admin-gui/775.d03b5f65f6c4a6cd.js deleted file mode 100644 index 95461988e..000000000 --- a/dist/apps/admin-gui/775.d03b5f65f6c4a6cd.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin_gui=self.webpackChunkadmin_gui||[]).push([[775],{27775:(go,tt,l)=>{l.r(tt),l.d(tt,{FacilitiesModule:()=>fo});var m=l(36895),v=l(94364),et=l(86353),B=l(36769),It=l(69024),h=l(32105),p=l(9244),d=l(69723),J=l(21029),bt=l(54037),yt=l(22158),vt=l(82722),t=l(94650),u=l(65412),xt=l(77968),Et=l(15003),F=l(97392),C=l(4859),S=l(51572),Q=l(10266),it=l(61283),Dt=l(4235),Z=l(94391),f=l(89383);function Lt(i,n){1&i&&t._UZ(0,"mat-spinner",3)}function Zt(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.editFacility())}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA()()}}function Ot(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.deleteFacility())}),t.TgZ(1,"mat-icon"),t._uU(2,"delete_forever"),t.qZA()()}}const Rt=function(){return{color:"black"}},st=function(i){return["/facilities",i]};function Ft(i,n){if(1&i&&(t.TgZ(0,"div")(1,"div",4),t._UZ(2,"mat-icon",5),t.ALo(3,"translate"),t.TgZ(4,"div",6)(5,"div",7)(6,"a",8),t.NdJ("auxclick",function(s){return s.preventDefault()}),t._uU(7),t.qZA(),t.TgZ(8,"span",9),t._uU(9),t.qZA(),t.YNc(10,Zt,3,0,"button",10),t.YNc(11,Ot,3,0,"button",10),t.qZA(),t.TgZ(12,"span",11),t._uU(13),t.ALo(14,"translate"),t.ALo(15,"translate"),t.qZA()()(),t._UZ(16,"app-animated-router-outlet"),t.qZA()),2&i){const e=t.oxw();t.xp6(2),t.s9C("matTooltip",t.lcZ(3,11,"FACILITY_DETAIL.ENTITY")),t.Q6J("ngStyle",t.DdM(17,Rt)),t.xp6(4),t.Q6J("perunWebAppsMiddleClickRouterLink",t.VKq(18,st,e.facility.id.toString()))("routerLink",t.VKq(20,st,e.facility.id)),t.xp6(1),t.Oqu(e.facility.name),t.xp6(2),t.hij(" \xa0#",e.facility.id," "),t.xp6(1),t.Q6J("ngIf",e.editFacilityAuth),t.xp6(1),t.Q6J("ngIf",e.deleteAuth),t.xp6(2),t.lnq(" ",t.lcZ(14,13,"FACILITY_DETAIL.ENTITY"),", ",t.lcZ(15,15,"FACILITY_DETAIL.DESCRIPTION"),": ",e.facility.description," ")}}let Nt=(()=>{class i extends((0,yt.T)()){constructor(e,s,a,o,r,_,T,b,L){super(),this.dialog=e,this.facilityManager=s,this.route=a,this.sideMenuService=o,this.sideMenuItemService=r,this.guiAuthResolver=_,this.router=T,this.entityStorageService=b,this.reloadEntityDetail=L,this.editFacilityAuth=!1,this.deleteAuth=!1,this.loading=!1}ngOnInit(){this.reloadData(),this.reloadEntityDetail.entityDetailChange.pipe((0,vt.R)(this.destroyed$)).subscribe(()=>{this.reloadData()})}reloadData(){this.loading=!0,this.route.params.subscribe(e=>{const s=Number(e.facilityId);this.facilityManager.getFacilityById(s).subscribe(a=>{this.facility=a,this.entityStorageService.setEntity({id:a.id,beanName:a.beanName}),this.setMenuItems(),this.editFacilityAuth=this.guiAuthResolver.isAuthorized("updateFacility_Facility_policy",[this.facility]),this.deleteAuth=this.guiAuthResolver.isAuthorized("deleteFacility_Facility_Boolean_policy",[this.facility]),(0,p.sF)("facilities",this.facility),(0,p.XI)(this.facility),this.loading=!1},()=>this.loading=!1)})}setMenuItems(){const e=this.sideMenuItemService.parseFacility(this.facility);this.sideMenuService.setFacilityMenuItems([e])}editFacility(){const e=(0,p.kZ)();e.width="450px",e.data={theme:"facility-theme",facility:this.facility,dialogType:J.Eg.FACILITY},this.dialog.open(J.rd,e).afterClosed().subscribe(a=>{a&&this.facilityManager.getFacilityById(this.facility.id).subscribe(o=>{this.facility=o,this.setMenuItems()})})}deleteFacility(){const e=(0,p.kZ)();e.width="500px",e.data={theme:"facility-theme",facility:this.facility},this.dialog.open(bt.Y,e).afterClosed().subscribe(a=>{a&&this.router.navigate([""],{queryParamsHandling:"preserve"})})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.uw),t.Y36(h.IQ),t.Y36(v.gz),t.Y36(xt.D),t.Y36(It.V),t.Y36(d.x4),t.Y36(v.F0),t.Y36(d.fb),t.Y36(Et.G))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-detail-page"]],features:[t.qOj],decls:4,vars:2,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","facility-theme"],["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[1,"d-flex","page-title-headtitle"],["svgIcon","perun-facility-black",1,"perun-icon","perun-icon-detail",3,"matTooltip","ngStyle"],[1,"page-title-block"],[1,"page-title-headline","d-flex","align-items-center"],[1,"facility-link",3,"perunWebAppsMiddleClickRouterLink","routerLink","auxclick"],[1,"text-muted"],["mat-icon-button","",3,"click",4,"ngIf"],[1,"mt-1","entity-info"],["mat-icon-button","",3,"click"]],template:function(e,s){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"perun-web-apps-back-button"),t.YNc(2,Lt,1,0,"mat-spinner",1),t.YNc(3,Ft,17,22,"div",2),t.qZA()),2&e&&(t.xp6(2),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading&&void 0!==s.facility))},dependencies:[m.O5,m.PC,v.yS,F.Hw,C.lW,S.Ou,Q.gM,it.A,Dt.W,Z.YH,Z.QG,f.X$],data:{animation:[B.Ji]}}),i})();var at=l(71135);function kt(i,n){1&i&&t._UZ(0,"mat-spinner",2)}function wt(i,n){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"perun-web-apps-menu-buttons-field",3),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("items",e.navItems)("size","small")}}let Yt=(()=>{class i{constructor(e,s,a,o){this.facilityManager=e,this.authResolver=s,this.entityStorageService=a,this.routePolicyService=o,this.navItems=[],this.loading=!1}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.initItems(),this.loading=!1}initItems(){this.navItems=[],this.routePolicyService.canNavigate("facilities-resources",this.facility)&&this.navItems.push({cssIcon:"perun-manage-facility",url:`/facilities/${this.facility.id}/resources`,label:"MENU_ITEMS.FACILITY.RESOURCES",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-allowed-users",this.facility)&&this.navItems.push({cssIcon:"perun-user",url:`/facilities/${this.facility.id}/allowed-users`,label:"MENU_ITEMS.FACILITY.ALLOWED_USERS",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-allowed-groups",this.facility)&&this.navItems.push({cssIcon:"perun-group",url:`/facilities/${this.facility.id}/allowed-groups`,label:"MENU_ITEMS.FACILITY.ALLOWED_GROUPS",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-services-status",this.facility)&&this.navItems.push({cssIcon:"perun-service-status",url:`/facilities/${this.facility.id}/services-status`,label:"MENU_ITEMS.FACILITY.SERVICES_STATUS",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-services-destinations",this.facility)&&this.navItems.push({cssIcon:"perun-service_destination",url:`/facilities/${this.facility.id}/services-destinations`,label:"MENU_ITEMS.FACILITY.SERVICES_DESTINATIONS",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-hosts",this.facility)&&this.navItems.push({cssIcon:"perun-hosts",url:`/facilities/${this.facility.id}/hosts`,label:"MENU_ITEMS.FACILITY.HOSTS",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-attributes",this.facility)&&this.navItems.push({cssIcon:"perun-attributes",url:`/facilities/${this.facility.id}/attributes`,label:"MENU_ITEMS.FACILITY.ATTRIBUTES",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-settings",this.facility)&&this.navItems.push({cssIcon:"perun-settings2",url:`/facilities/${this.facility.id}/settings`,label:"MENU_ITEMS.FACILITY.SETTINGS",style:"facility-btn"})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.IQ),t.Y36(d.x4),t.Y36(d.fb),t.Y36(d.Ip))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-overview"]],hostVars:2,hostBindings:function(e,s){2&e&&t.ekj("router-component",s.true)},decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"items","size"]],template:function(e,s){1&e&&(t.YNc(0,kt,1,0,"mat-spinner",0),t.YNc(1,wt,2,2,"div",1)),2&e&&(t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[m.O5,S.Ou,at.L]}),i})();var Ut=l(34904),Mt=l(37380),Jt=l(98918),Qt=l(4675);let Ht=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-settings"]],hostVars:2,hostBindings:function(e,s){2&e&&t.ekj("router-component",s.true)},decls:1,vars:0,template:function(e,s){1&e&&t._UZ(0,"app-animated-router-outlet")},dependencies:[it.A],data:{animation:[B.Ji]}}),i})();function Gt(i,n){1&i&&t._UZ(0,"mat-spinner",2)}function Pt(i,n){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"perun-web-apps-menu-buttons-field",3),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("items",e.items)("size","small")}}let qt=(()=>{class i{constructor(e,s,a,o){this.facilityManager=e,this.authResolver=s,this.entityStorageService=a,this.routePolicyService=o,this.items=[],this.loading=!1}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.initItems(),this.loading=!1}initItems(){this.items=[],this.routePolicyService.canNavigate("facilities-settings-owners",this.facility)&&this.items.push({cssIcon:"perun-owner-grey",url:`/facilities/${this.facility.id}/settings/owners`,label:"MENU_ITEMS.FACILITY.OWNERS",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-settings-managers",this.facility)&&this.items.push({cssIcon:"perun-manager",url:`/facilities/${this.facility.id}/settings/managers`,label:"MENU_ITEMS.FACILITY.MANAGERS",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-settings-security-teams",this.facility)&&this.items.push({cssIcon:"perun-security-teams",url:`/facilities/${this.facility.id}/settings/security-teams`,label:"MENU_ITEMS.FACILITY.SECURITY_TEAMS",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-settings-blacklist",this.facility)&&this.items.push({cssIcon:"perun-black-list",url:`/facilities/${this.facility.id}/settings/blacklist`,label:"MENU_ITEMS.FACILITY.BLACKLIST",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-settings-bans",this.facility)&&this.items.push({cssIcon:"perun-ban",url:`/facilities/${this.facility.id}/settings/bans`,label:"MENU_ITEMS.FACILITY.BANS",style:"facility-btn"})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.IQ),t.Y36(d.x4),t.Y36(d.fb),t.Y36(d.Ip))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-settings-overview"]],hostVars:2,hostBindings:function(e,s){2&e&&t.ekj("router-component",s.true)},decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"items","size"]],template:function(e,s){1&e&&(t.YNc(0,Gt,1,0,"mat-spinner",0),t.YNc(1,Pt,2,2,"div",1)),2&e&&(t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[m.O5,S.Ou,at.L]}),i})();var H=l(3848),Vt=l(48323),Bt=l(12651);function jt(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.hij(" ",t.lcZ(1,1,"FACILITY_DETAIL.ENTITY")," ")}function Kt(i,n){if(1&i&&t._UZ(0,"app-one-entity-attribute-page",4),2&i){const e=t.oxw();t.Q6J("entityId",e.facility.id)("entity","facility")}}function zt(i,n){1&i&&(t._uU(0),t.ALo(1,"translate"),t.ALo(2,"translate")),2&i&&t.AsE(" ",t.lcZ(1,2,"FACILITY_DETAIL.ENTITY")," - ",t.lcZ(2,4,"ADMIN_USER.ENTITY")," ")}function $t(i,n){if(1&i&&t._UZ(0,"app-two-entity-attribute-page",5),2&i){const e=t.oxw(2);t.Q6J("firstEntity","facility")("firstEntityId",e.facility.id)("secondEntity","user")}}function Wt(i,n){1&i&&(t.TgZ(0,"mat-tab"),t.YNc(1,zt,3,6,"ng-template",1),t.YNc(2,$t,1,3,"ng-template",2),t.qZA())}let Xt=(()=>{class i{constructor(e,s){this.authResolver=e,this.entityStorageService=s}ngOnInit(){this.facility=this.entityStorageService.getEntity(),this.facilityUserAttAuth=this.authResolver.isAuthorized("getAssignedUsers_Facility_policy",[this.facility])}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(d.x4),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-attributes"]],hostVars:2,hostBindings:function(e,s){2&e&&t.ekj("router-component",s.true)},decls:9,vars:4,consts:[[1,"page-subtitle"],["matTabLabel",""],["matTabContent",""],[4,"ngIf"],[3,"entityId","entity"],[3,"firstEntity","firstEntityId","secondEntity"]],template:function(e,s){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-tab-group")(5,"mat-tab"),t.YNc(6,jt,2,3,"ng-template",1),t.YNc(7,Kt,1,2,"ng-template",2),t.qZA(),t.YNc(8,Wt,3,0,"mat-tab",3),t.qZA()()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,2,"FACILITY_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),t.xp6(6),t.Q6J("ngIf",s.facilityUserAttAuth))},dependencies:[m.O5,H.SP,H.uD,H.uX,H.Vc,Vt.Y,Bt.t,f.X$]}),i})();var te=l(60113),ee=l(16500),ie=l(92090),se=l(258),g=l(24006),G=l(68675),P=l(54004),N=l(19516),nt=l(47957),ot=l(3238),k=l(59549),j=l(284),O=l(56709),lt=l(31359);function ae(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-option",10),t.NdJ("onSelectionChange",function(){const o=t.CHM(e).$implicit,r=t.oxw(3);return t.KtG(r.onSelectedService(o))}),t._uU(1),t.qZA()}if(2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.name," ")}}function ne(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-form-field",6)(1,"input",7),t.NdJ("keyup",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(o.updatedSerVal(a))}),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"mat-autocomplete",8,9)(5,"mat-option",10),t.NdJ("onSelectionChange",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.onSelectedService("NOT_SELECTED"))}),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"mat-option",10),t.NdJ("onSelectionChange",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.onSelectedService("ALL"))}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.YNc(11,ae,2,2,"mat-option",11),t.ALo(12,"async"),t.qZA()()}if(2&i){const e=t.MAs(4),s=t.oxw(2);t.xp6(1),t.s9C("placeholder",t.lcZ(2,9,"FACILITY_DETAIL.SERVICE_CONFIG.SERVICE_SELECT")),t.Q6J("formControl",s.serviceField)("matAutocomplete",e),t.xp6(2),t.Q6J("displayWith",s.serviceDisplayFn.bind(s)),t.xp6(2),t.Q6J("value","NOT_SELECTED"),t.xp6(1),t.hij(" ",t.lcZ(7,11,"FACILITY_DETAIL.SERVICE_CONFIG.NOT_SELECTED")," "),t.xp6(2),t.Q6J("value","ALL"),t.xp6(1),t.hij(" ",t.lcZ(10,13,"FACILITY_DETAIL.SERVICE_CONFIG.ALL")," "),t.xp6(2),t.Q6J("ngForOf",t.lcZ(12,15,s.filteredServices))}}function oe(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-option",10),t.NdJ("onSelectionChange",function(){const o=t.CHM(e).$implicit,r=t.oxw(3);return t.KtG(r.onSelectedResource(o))}),t._uU(1),t.qZA()}if(2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.name," ")}}function le(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-form-field",6)(1,"input",12),t.NdJ("keyup",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(o.updatedResVal(a))}),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"mat-autocomplete",8,9),t.YNc(5,oe,2,2,"mat-option",11),t.ALo(6,"async"),t.qZA()()}if(2&i){const e=t.MAs(4),s=t.oxw(2);t.xp6(1),t.s9C("placeholder",t.lcZ(2,5,"FACILITY_DETAIL.SERVICE_CONFIG.RES_SELECT")),t.Q6J("formControl",s.resourceField)("matAutocomplete",e),t.xp6(2),t.Q6J("displayWith",s.resourceDisplayFn.bind(s)),t.xp6(2),t.Q6J("ngForOf",t.lcZ(6,7,s.filteredResources))}}function ce(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-option",10),t.NdJ("onSelectionChange",function(){const o=t.CHM(e).$implicit,r=t.oxw(3);return t.KtG(r.onSelectedGroup(o))}),t._uU(1),t.qZA()}if(2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.name," ")}}function re(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-form-field",6)(1,"input",12),t.NdJ("keyup",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(o.updatedGroupVal(a))}),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"mat-autocomplete",13,9),t.YNc(5,ce,2,2,"mat-option",11),t.ALo(6,"async"),t.qZA()()}if(2&i){const e=t.MAs(4),s=t.oxw(2);t.xp6(1),t.s9C("placeholder",t.lcZ(2,5,"FACILITY_DETAIL.SERVICE_CONFIG.GROUP_SELECT")),t.Q6J("formControl",s.groupField)("matAutocomplete",e),t.xp6(2),t.Q6J("displayWith",s.groupDisplayFn.bind(s)),t.xp6(2),t.Q6J("ngForOf",t.lcZ(6,7,s.filteredGroups))}}function ue(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-option",10),t.NdJ("onSelectionChange",function(){const o=t.CHM(e).$implicit,r=t.oxw(3);return t.KtG(r.onSelectedMember(o))}),t._uU(1),t.ALo(2,"userFullName"),t.qZA()}if(2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",t.lcZ(2,2,e.user)," ")}}function pe(i,n){if(1&i&&(t.TgZ(0,"mat-form-field",6),t._UZ(1,"input",14),t.ALo(2,"translate"),t.TgZ(3,"mat-autocomplete",8,9),t.YNc(5,ue,3,4,"mat-option",11),t.ALo(6,"async"),t.qZA()()),2&i){const e=t.MAs(4),s=t.oxw(2);t.xp6(1),t.s9C("placeholder",t.lcZ(2,5,"FACILITY_DETAIL.SERVICE_CONFIG.MEMBER_SELECT")),t.Q6J("matAutocomplete",e)("formControl",s.memberField),t.xp6(2),t.Q6J("displayWith",s.memberDisplayFn.bind(s)),t.xp6(2),t.Q6J("ngForOf",t.lcZ(6,7,s.filteredMembers))}}function de(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",3),t.YNc(1,ne,13,17,"mat-form-field",4),t.TgZ(2,"mat-checkbox",5),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.onOfferAllServices(a))}),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.YNc(5,le,7,9,"mat-form-field",4),t.YNc(6,re,7,9,"mat-form-field",4),t.YNc(7,pe,7,9,"mat-form-field",4),t.qZA()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",void 0!==e.services),t.xp6(2),t.hij(" ",t.lcZ(4,5,"FACILITY_DETAIL.SERVICE_CONFIG.ALL_SERVICES")," "),t.xp6(2),t.Q6J("ngIf",void 0!==e.resources&&0!==e.resources.length),t.xp6(1),t.Q6J("ngIf",void 0!==e.selectedResource&&void 0!==e.groups&&0!==e.groups.length),t.xp6(1),t.Q6J("ngIf",void 0!==e.selectedGroup&&void 0!==e.members&&0!==e.members.length)}}function _e(i,n){if(1&i&&t._UZ(0,"perun-web-apps-service-configurator",15),2&i){const e=t.oxw();t.Q6J("facility",e.facility)("resource",e.selectedResource)("group",e.selectedGroup)("member",e.selectedMember)("service",e.selectedService)}}let me=(()=>{class i{constructor(e,s,a,o,r,_,T){this.facilityManager=e,this.resourceManager=s,this.serviceManager=a,this.membersManager=o,this.namePipe=r,this.translate=_,this.entityStorageService=T,this.serviceField=new g.p4,this.resourceField=new g.p4,this.groupField=new g.p4,this.memberField=new g.p4,this.allowedStatuses=["INVALID","VALID"],this.selectedService="NOT_SELECTED",this.attrNames=[],this.translate.get("FACILITY_DETAIL.SERVICE_CONFIG.ALL").subscribe(b=>this.serviceAllTranslation=b),this.translate.get("FACILITY_DETAIL.SERVICE_CONFIG.NOT_SELECTED").subscribe(b=>this.serviceNotSelectedTranslation=b)}ngOnInit(){this.facility=this.entityStorageService.getEntity(),this.facilityManager.getFacilityById(this.facility.id).subscribe(e=>{this.facility=e,this.facilityManager.getAssignedResourcesForFacility(e.id).subscribe(s=>this.resources=s),this.serviceManager.getAssignedServices(e.id).subscribe(s=>this.services=s)}),this.filteredServices=this.serviceField.valueChanges.pipe((0,G.O)(""),(0,P.U)(e=>this._filterServices(e))),this.filteredResources=this.resourceField.valueChanges.pipe((0,G.O)(""),(0,P.U)(e=>this._filterResources(e))),this.filteredGroups=this.groupField.valueChanges.pipe((0,G.O)(""),(0,P.U)(e=>this._filterGroups(e))),this.filteredMembers=this.memberField.valueChanges.pipe((0,G.O)(""),(0,P.U)(e=>this._filterMembers(e)))}onSelectedService(e){this.selectedService=e}onSelectedResource(e){this.selectedResource=e,void 0!==this.selectedResource?(this.resourceManager.getAssignedGroups(this.selectedResource.id).subscribe(s=>this.groups=s),this.selectedGroup=void 0,this.selectedMember=void 0):this.groups=void 0}onOfferAllServices(e){e.checked||this.serviceManager.getAssignedServices(this.facility.id).subscribe(s=>this.services=s)}onSelectedGroup(e){this.selectedGroup=e,void 0!==this.selectedGroup?(this.membersManager.getCompleteRichMembersForGroup(this.selectedGroup.id,!1,this.allowedStatuses,[],this.attrNames).subscribe(s=>this.members=s),this.selectedMember=void 0):this.members=void 0}onSelectedMember(e){this.selectedMember=e}serviceDisplayFn(e){if(null!==e)return"ALL"===e?this.serviceAllTranslation:"NOT_SELECTED"===e?this.serviceNotSelectedTranslation:"string"!=typeof e?e.name:e}resourceDisplayFn(e){if(null!==e)return e.name}groupDisplayFn(e){if(null!==e)return e.name}memberDisplayFn(e){if(null!==e)return this.namePipe.transform(e.user)}updatedSerVal(e){""===e.target.value&&(this.selectedService="NOT_SELECTED")}updatedResVal(e){""===e.target.value&&(this.groups=void 0,this.members=void 0)}updatedGroupVal(e){""===e.target.value&&(this.members=void 0)}_filterServices(e){const s=e.toString().toLowerCase();return this.services.filter(a=>a.name.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").includes(s))}_filterResources(e){const s=e.toString().toLowerCase();return this.resources.filter(a=>a.name.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").includes(s))}_filterGroups(e){const s=e.toString().toLowerCase();return this.groups.filter(a=>a.name.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").includes(s))}_filterMembers(e){const s=e.toString().toLowerCase();return this.members.filter(a=>this.namePipe.transform(a.user).toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").includes(s))}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.IQ),t.Y36(h.xk),t.Y36(h.KK),t.Y36(h.uq),t.Y36(N.dp),t.Y36(f.sK),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-service-config"]],decls:6,vars:5,consts:[[1,"page-subtitle"],["class","col-12 col-lg-6 mb-2",4,"ngIf"],[3,"facility","resource","group","member","service",4,"ngIf"],[1,"col-12","col-lg-6","mb-2"],["class","w-100",4,"ngIf"],[3,"change"],[1,"w-100"],["matInput","","type","text",3,"placeholder","formControl","matAutocomplete","keyup"],["autoActiveFirstOption","",3,"displayWith"],["auto","matAutocomplete"],[3,"value","onSelectionChange"],[3,"value","onSelectionChange",4,"ngFor","ngForOf"],["matInput","","type","text",3,"formControl","matAutocomplete","placeholder","keyup"],["autoActiveFirstOption","",3,"displayWith","ngClass"],["matInput","","type","text",3,"matAutocomplete","placeholder","formControl"],[3,"facility","resource","group","member","service"]],template:function(e,s){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,de,8,7,"div",1),t.YNc(5,_e,1,5,"perun-web-apps-service-configurator",2),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,3,"FACILITY_DETAIL.SERVICE_CONFIG.TITLE")),t.xp6(2),t.Q6J("ngIf",!!s.facility),t.xp6(1),t.Q6J("ngIf",!!s.facility))},dependencies:[m.mk,m.sg,m.O5,nt.XC,nt.ZL,ot.ey,k.KE,j.Nt,g.Fj,g.JJ,g.oH,O.oG,m.Ov,f.X$,lt.d]}),i})();var ct=l(28361);let rt=(()=>{class i{constructor(e,s,a){this.facilityService=e,this.guiAuthResolver=s,this.entityStorageService=a,this.disableRouting=!1,this.disableSelf=!1,this.availableRoles=[],this.selected="user",this.type="Facility",this.theme="facility-theme"}ngOnInit(){this.facility=this.entityStorageService.getEntity(),this.guiAuthResolver.assignAvailableRoles(this.availableRoles,"Facility")}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.IQ),t.Y36(d.x4),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-perun-web-apps-facility-settings-managers"]],hostVars:2,hostBindings:function(e,s){2&e&&t.ekj("router-component",s.true)},inputs:{disableRouting:"disableRouting",disableSelf:"disableSelf"},decls:1,vars:6,consts:[[3,"complementaryObject","availableRoles","complementaryObjectType","disableSelf","disableRouting","theme"]],template:function(e,s){1&e&&t._UZ(0,"app-managers-page",0),2&e&&t.Q6J("complementaryObject",s.facility)("availableRoles",s.availableRoles)("complementaryObjectType",s.type)("disableSelf",s.disableSelf)("disableRouting",s.disableRouting)("theme",s.theme)},dependencies:[ct.s]}),i})();var x=l(10036),A=l(95017),he=l(89466),fe=l(84385);function ge(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function Te(i,n){1&i&&(t.TgZ(0,"mat-option",19),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.ADD_SERVICE_DESTINATION.SELECTION_ALL")))}function Se(i,n){1&i&&(t.TgZ(0,"mat-option",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.ADD_SERVICE_DESTINATION.NO_SERVICE")))}function Ce(i,n){if(1&i&&(t.TgZ(0,"mat-option",21),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.name," ")}}function Ae(i,n){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_SERVICE_DESTINATION.CHOOSE_SERVICE")," "))}function Ie(i,n){if(1&i&&(t.TgZ(0,"mat-option",21),t._uU(1),t.qZA()),2&i){const e=n.$implicit,s=t.oxw(2);t.Q6J("value",e),t.xp6(1),t.hij(" ",s.getTypeForView(e)," ")}}function be(i,n){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_SERVICE_DESTINATION.REQUIRED_FIELD")," "))}function ye(i,n){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_SERVICE_DESTINATION.INVALID_DESTINATION")," "))}function ve(i,n){if(1&i&&(t.TgZ(0,"mat-form-field",22),t._UZ(1,"input",23),t.YNc(2,be,3,3,"mat-error",13),t.YNc(3,ye,3,3,"mat-error",13),t.qZA()),2&i){const e=t.oxw(2);t.xp6(1),t.s9C("placeholder",e.getTypeForView(e.selectedType)),t.Q6J("formControl",e.destinationControl),t.xp6(1),t.Q6J("ngIf","host"===e.selectedType&&!e.useFacilityHost&&e.destinationControl.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.destinationControl.hasError("invalidDestination"))}}function xe(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-checkbox",24),t.NdJ("ngModelChange",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(o.useFacilityHost=a)}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw(2);t.Q6J("ngModel",e.useFacilityHost),t.xp6(1),t.hij(" ",t.lcZ(2,2,"DIALOGS.ADD_SERVICE_DESTINATION.USE_FACILITY_HOST")," ")}}function Ee(i,n){if(1&i&&(t.TgZ(0,"mat-option",21),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function De(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",7)(1,"div",8),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-form-field")(5,"mat-select",9),t.ALo(6,"translate"),t.YNc(7,Te,3,3,"mat-option",10),t.YNc(8,Se,3,3,"mat-option",11),t.YNc(9,Ce,2,2,"mat-option",12),t.qZA(),t.YNc(10,Ae,3,3,"mat-error",13),t.qZA(),t.TgZ(11,"mat-checkbox",14),t.NdJ("change",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.getServices())})("ngModelChange",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.servicesOnFacility=a)}),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.TgZ(14,"mat-form-field")(15,"mat-select",15),t.NdJ("ngModelChange",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.selectedType=a)})("selectionChange",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.destinationControl.updateValueAndValidity())}),t.ALo(16,"translate"),t.YNc(17,Ie,2,2,"mat-option",12),t.qZA()(),t.YNc(18,ve,4,4,"mat-form-field",16),t.YNc(19,xe,3,4,"mat-checkbox",17),t.TgZ(20,"mat-form-field")(21,"mat-select",18),t.NdJ("ngModelChange",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.selectedPropagation=a)}),t.ALo(22,"translate"),t.YNc(23,Ee,2,2,"mat-option",12),t.qZA()(),t.TgZ(24,"div",8),t._uU(25),t.ALo(26,"translate"),t.qZA()()}if(2&i){const e=t.oxw();t.xp6(2),t.Oqu(t.lcZ(3,18,"DIALOGS.ADD_SERVICE_DESTINATION.DESCRIPTION")),t.xp6(3),t.s9C("placeholder",t.lcZ(6,20,"DIALOGS.ADD_SERVICE_DESTINATION.SERVICE")),t.Q6J("formControl",e.serviceControl),t.xp6(2),t.Q6J("ngIf",0!==e.services.length),t.xp6(1),t.Q6J("ngIf",0===e.services.length),t.xp6(1),t.Q6J("ngForOf",e.services),t.xp6(1),t.Q6J("ngIf",void 0===e.serviceControl.value),t.xp6(1),t.Q6J("ngModel",e.servicesOnFacility),t.xp6(1),t.Oqu(t.lcZ(13,22,"DIALOGS.ADD_SERVICE_DESTINATION.IS_SERVICES_ONLY_ON_FACILITY")),t.xp6(3),t.s9C("placeholder",t.lcZ(16,24,"DIALOGS.ADD_SERVICE_DESTINATION.TYPE")),t.Q6J("ngModel",e.selectedType),t.xp6(2),t.Q6J("ngForOf",e.types),t.xp6(1),t.Q6J("ngIf",!("host"===e.selectedType&&e.useFacilityHost)),t.xp6(1),t.Q6J("ngIf","host"===e.selectedType),t.xp6(2),t.s9C("placeholder",t.lcZ(22,26,"DIALOGS.ADD_SERVICE_DESTINATION.PROPAGATION")),t.Q6J("ngModel",e.selectedPropagation),t.xp6(2),t.Q6J("ngForOf",e.propagations),t.xp6(2),t.hij(" ",t.lcZ(26,28,"DIALOGS.ADD_SERVICE_DESTINATION.PROPAGATION_TYPE_"+e.selectedPropagation)," ")}}let Le=(()=>{class i{constructor(e,s,a,o){this.dialogRef=e,this.data=s,this.facilitiesManager=a,this.servicesManager=o,this.services=[],this.types=["host","user@host","user@host:port","user@host-windows","host-windows-proxy","url","email","semail","service-specific"],this.selectedType="host",this.propagations=["PARALLEL","DUMMY"],this.selectedPropagation="PARALLEL",this.useFacilityHost=!1,this.loading=!1,this.emailRegex=new RegExp(p.B2),this.hostPattern=new RegExp("^(?!:\\/\\/)(?=.{1,255}$)((.{1,63}\\.){1,127}(?![0-9]*$)[a-z0-9-]+\\.?)$|^(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(\\.(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)){3}$"),this.urlPattern=new RegExp("^(https?|ftp|file)://[-a-zA-Z0-9+&@#/%?=~_|!:,.;()*$']*[-a-zA-Z0-9+&@#/%=~_|()*$']$"),this.userAtHostPattern=new RegExp("^[a-z_]([a-z0-9_-]{0,31}|[a-z0-9_-]{0,30}\\$)@(?:(?!:\\/\\/)(?=.{1,255}$)((.{1,63}\\.){1,127}(?![0-9]*$)[a-z0-9-]+\\.?)$|(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(\\.(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)){3}$)"),this.userAtHostPortPattern=new RegExp("^[a-z_]([a-z0-9_-]{0,31}|[a-z0-9_-]{0,30}\\$)@(?:(?!:\\/\\/)(?=.{1,255}$)((.{1,63}\\.){1,127}(?![0-9]*$)[a-z0-9-]+\\.?)|(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(\\.(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)){3}):[0-9]+"),this.serviceSpecificPattern=new RegExp("^(?!-)[a-zA-Z0-9-_.:/]*$")}ngOnInit(){this.serviceControl=new g.p4(void 0,g.kI.required),this.destinationControl=new g.p4("",this.getDestinationValidator()),this.emailControl=new g.p4("",[g.kI.required,g.kI.pattern(this.emailRegex)]),this.servicesOnFacility=!0,this.getServices()}onCancel(){this.dialogRef.close()}onSubmit(){this.loading=!0,"all"===this.serviceControl.value?this.useFacilityHost?this.servicesManager.addDestinationsDefinedByHostsOnFacilityWithListOfServiceAndFacility({services:this.services,facility:this.data.facility.id}).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1):this.servicesManager.addDestinationToMultipleServices({services:this.services,facility:this.data.facility.id,destination:this.destinationControl.value,type:this.selectedType,propagationType:this.selectedPropagation}).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1):this.useFacilityHost?this.servicesManager.addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility(this.serviceControl.value.id,this.data.facility.id).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1):this.servicesManager.addDestination(this.serviceControl.value.id,this.data.facility.id,this.destinationControl.value,this.selectedType,this.selectedPropagation).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1)}getServices(){this.loading=!0,this.servicesOnFacility?0!==this.data.configServices.length?this.services=this.data.configServices:this.servicesManager.getAssignedServices(this.data.facility.id).subscribe(e=>{this.services=e},()=>this.loading=!1):this.servicesManager.getServices().subscribe(e=>{this.services=e},()=>this.loading=!1),this.loading=!1,this.serviceControl.setValue(void 0)}getTypeForView(e){return"semail"===e?"Send Mail":"service-specific"===e?"Service Specific":e}invalidDestination(){return("host"!==this.selectedType||!this.useFacilityHost)&&this.destinationControl.invalid}getDestinationValidator(){return e=>{if(!e.value)return null;let s;switch(this.selectedType){case"host":case"host-windows-proxy":s=this.hostPattern;break;case"email":case"semail":s=this.emailRegex;break;case"url":s=this.urlPattern;break;case"user@host":case"user@host-windows":s=this.userAtHostPattern;break;case"user@host:port":s=this.userAtHostPortPattern;break;case"service-specific":s=this.serviceSpecificPattern;break;default:return null}return s.test(e.value)?null:{invalidDestination:{value:e.value}}}}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(h.IQ),t.Y36(h.KK))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-perun-web-apps-add-services-destination-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],[1,"font-italic"],["required","",3,"formControl","placeholder"],["value","all",4,"ngIf"],["value","noService",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],[3,"ngModel","change","ngModelChange"],[3,"ngModel","placeholder","ngModelChange","selectionChange"],["class","w-100",4,"ngIf"],[3,"ngModel","ngModelChange",4,"ngIf"],[3,"ngModel","placeholder","ngModelChange"],["value","all"],["value","noService"],[3,"value"],[1,"w-100"],["matInput","","required","",3,"formControl","placeholder"],[3,"ngModel","ngModelChange"]],template:function(e,s){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,ge,1,0,"mat-spinner",1),t.YNc(5,De,27,30,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return s.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return s.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.Tol(s.data.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.ADD_SERVICE_DESTINATION.TITLE")),t.xp6(2),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.ADD_SERVICE_DESTINATION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",s.loading||s.invalidDestination()||s.serviceControl.invalid||"noService"===s.serviceControl.value),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.ADD_SERVICE_DESTINATION.ADD")," "))},dependencies:[m.sg,m.O5,ot.ey,k.TO,k.KE,j.Nt,g.Fj,g.JJ,g.Q7,g.oH,g.On,C.lW,O.oG,u.uh,u.xY,u.H8,fe.gD,S.Ou,f.X$],data:{animation:[B.BQ]}}),i})();var ut=l(70242),R=l(98380),E=l(96214),D=l(7434);function Ze(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",9),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"FACILITY_DETAIL.SERVICES_DESTINATIONS.DESTINATIONS_INFO")," "))}function Oe(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",10),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.addDestination())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"FACILITY_DETAIL.SERVICES_DESTINATIONS.ADD")," "))}function Re(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.removeDestination())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"FACILITY_DETAIL.SERVICES_DESTINATIONS.REMOVE")," ")}}function Fe(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onAllow())}),t.TgZ(1,"mat-icon"),t._uU(2," check_circle_outline "),t.qZA(),t._uU(3),t.ALo(4,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selected.selected.length||e.allSelectedAllowed()),t.xp6(3),t.hij(" ",t.lcZ(4,2,"FACILITY_DETAIL.SERVICES_DESTINATIONS.ALLOW")," ")}}function Ne(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onBlock())}),t.TgZ(1,"mat-icon"),t._uU(2," block "),t.qZA(),t._uU(3),t.ALo(4,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selected.selected.length||e.allSelectedBlocked()),t.xp6(3),t.hij(" ",t.lcZ(4,2,"FACILITY_DETAIL.SERVICES_DESTINATIONS.BLOCK")," ")}}function ke(i,n){1&i&&t._UZ(0,"mat-spinner",13)}function we(i,n){if(1&i&&t._UZ(0,"app-perun-web-apps-destination-list",14),2&i){const e=t.oxw();t.Q6J("filterValue",e.filterValue)("selection",e.selected)("destinations",e.destinations)("services",e.configServicesIds)("displayedColumns",e.displayedColumns)("tableId",e.tableId)}}let pt=(()=>{class i{constructor(e,s,a,o,r,_,T,b){this.dialog=e,this.facilitiesManager=s,this.servicesManager=a,this.translate=o,this.notificator=r,this.authResolver=_,this.serviceManager=T,this.entityStorageService=b,this.displayedColumns=["select","destinationId","service","destination","type","status","propagationType"],this.configServices=[],this.configServicesIds=new Set,this.title="FACILITY_DETAIL.SERVICES_DESTINATIONS.TITLE",this.destinationEmitter=new t.vpe,this.selected=new A.Ov(!0,[]),this.filterValue="",this.tableId=x.Cf}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.setAuthRights(),this.refreshTable()}refreshTable(){this.loading=!0,this.servicesManager.getAllRichDestinationsForFacility(this.facility.id).subscribe(e=>{this.destinations=e,this.destinationEmitter.emit(this.destinations),this.selected.clear(),this.setAuthRights(),this.loading=!1})}setAuthRights(){this.addAuth=this.authResolver.isAuthorized("addDestination_Service_Facility_Destination_policy",[this.facility]),this.removeAuth=this.authResolver.isAuthorized("removeDestination_Service_Facility_Destination_policy",[this.facility]),this.allowAuth=this.authResolver.isAuthorized("unblockServiceOnDestination_Service_int_policy",[this.facility]),this.blockAuth=this.authResolver.isAuthorized("blockServiceOnDestination_Service_int_policy",[this.facility]),this.displayedColumns=this.removeAuth?this.displayedColumns:this.displayedColumns.filter(e=>"select"!==e)}addDestination(){const e=(0,p.kZ)();e.width="600px",e.data={facility:this.facility,theme:"facility-theme",configServices:this.configServices},this.dialog.open(Le,e).afterClosed().subscribe(a=>{a&&this.translate.get("FACILITY_DETAIL.SERVICES_DESTINATIONS.ADD_SUCCESS").subscribe(o=>{this.refreshTable(),this.notificator.showSuccess(o)})})}removeDestination(){const e=(0,p.kZ)();e.width="600px",e.data={destinations:this.selected.selected,theme:"facility-theme"},this.dialog.open(he.u,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}blockServiceOnDestinations(e){if(0===e.length)return this.notificator.showSuccess(this.translate.instant("FACILITY_DETAIL.SERVICES_DESTINATIONS.BLOCK_SUCCESS")),void this.refreshTable();const s=e.pop();this.serviceManager.blockServiceOnDestination(s.service.id,s.id).subscribe(()=>{this.blockServiceOnDestinations(e)},()=>this.loading=!1)}onBlock(){this.loading=!0,this.blockServiceOnDestinations(this.selected.selected)}allowServiceOnDestinations(e){if(0===e.length)return this.notificator.showSuccess(this.translate.instant("FACILITY_DETAIL.SERVICES_DESTINATIONS.ALLOW_SUCCESS")),void this.refreshTable();const s=e.pop();this.serviceManager.unblockServiceOnDestinationById(s.service.id,s.id).subscribe(()=>{this.allowServiceOnDestinations(e)},()=>this.loading=!1)}onAllow(){this.loading=!0,this.allowServiceOnDestinations(this.selected.selected)}applyFilter(e){this.filterValue=e}allSelectedAllowed(){return this.selected.selected.reduce((e,s)=>e&&!s.blocked,!0)}allSelectedBlocked(){return this.selected.selected.reduce((e,s)=>e&&s.blocked,!0)}}return i.id="FacilityServicesDestinationsComponent",i.\u0275fac=function(e){return new(e||i)(t.Y36(u.uw),t.Y36(h.IQ),t.Y36(h.KK),t.Y36(f.sK),t.Y36(d.V6),t.Y36(d.x4),t.Y36(h.KK),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-perun-web-apps-facility-services-destinations"]],hostVars:2,hostBindings:function(e,s){2&e&&t.ekj("router-component",s.true)},inputs:{displayedColumns:"displayedColumns",configServices:"configServices",configServicesIds:"configServicesIds",title:"title",loading:"loading"},outputs:{destinationEmitter:"destinationEmitter"},decls:13,vars:11,consts:[[1,"page-subtitle"],["alert_type","info",4,"ngIf"],[3,"refresh"],["color","accent","class","mr-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","mr-2","mat-stroked-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"filterValue","selection","destinations","services","displayedColumns","tableId",4,"ngIf"],["alert_type","info"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],["mat-stroked-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"filterValue","selection","destinations","services","displayedColumns","tableId"]],template:function(e,s){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Ze,3,3,"perun-web-apps-alert",1),t.TgZ(5,"perun-web-apps-refresh-button",2),t.NdJ("refresh",function(){return s.refreshTable()}),t.qZA(),t.YNc(6,Oe,3,3,"button",3),t.YNc(7,Re,3,4,"button",4),t.YNc(8,Fe,5,4,"button",5),t.YNc(9,Ne,5,4,"button",5),t.TgZ(10,"perun-web-apps-immediate-filter",6),t.NdJ("filter",function(o){return s.applyFilter(o)}),t.qZA(),t.YNc(11,ke,1,0,"mat-spinner",7),t.YNc(12,we,1,6,"app-perun-web-apps-destination-list",8),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,9,s.title)),t.xp6(2),t.Q6J("ngIf",s.title.includes("CONFIG")),t.xp6(2),t.Q6J("ngIf",s.addAuth),t.xp6(1),t.Q6J("ngIf",s.removeAuth),t.xp6(1),t.Q6J("ngIf",s.allowAuth),t.xp6(1),t.Q6J("ngIf",s.blockAuth),t.xp6(1),t.Q6J("placeholder","FACILITY_DETAIL.SERVICES_DESTINATIONS.FILTER"),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[m.O5,F.Hw,C.lW,S.Ou,ut.q,R.w,E.t,D.L,f.X$]}),i})();var K=l(23256);function Ye(i,n){1&i&&t._UZ(0,"mat-spinner",3)}function Ue(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div")(1,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.applyFilter(a))}),t.qZA(),t.TgZ(2,"div",5),t._UZ(3,"perun-web-apps-owners-list",6),t.qZA(),t.TgZ(4,"div",7)(5,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onCancel())}),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"button",9),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onAdd())}),t._uU(9),t.ALo(10,"translate"),t.qZA()()()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("placeholder","DIALOGS.ADD_OWNERS.FILTER"),t.xp6(2),t.Q6J("filterValue",e.filterValue)("selection",e.selection)("owners",e.owners)("tableId",e.tableId),t.xp6(3),t.hij(" ",t.lcZ(7,8,"DIALOGS.ADD_OWNERS.CANCEL")," "),t.xp6(2),t.Q6J("disabled",0===e.selection.selected.length||e.loading),t.xp6(1),t.hij(" ",t.lcZ(10,10,"DIALOGS.ADD_OWNERS.ADD")," ")}}let Me=(()=>{class i{constructor(e,s,a,o,r,_){this.dialogRef=e,this.data=s,this.notificator=a,this.translate=o,this.ownersManagerService=r,this.facilitiesManagerService=_,this.extSources=[],this.selection=new A.Ov(!0,[]),this.filterValue="",this.tableId=x.BV,this.owners=[],this.translate.get("DIALOGS.ADD_OWNERS.SUCCESS").subscribe(T=>this.successMessage=T)}ngOnInit(){this.theme=this.data.theme,this.loading=!0,this.ownersManagerService.getAllOwners().subscribe(e=>{this.owners=e.filter(s=>!this.data.forbiddenOwners.includes(s.id)),this.loading=!1},()=>this.loading=!1)}applyFilter(e){this.filterValue=e}onAdd(){this.loading=!0,0!==this.selection.selected.length?this.facilitiesManagerService.addFacilityOwner(this.data.facilityId,this.selection.selected.pop().id).subscribe(()=>this.onAdd(),()=>this.loading=!1):(this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0))}onCancel(){this.dialogRef.close(!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(d.V6),t.Y36(f.sK),t.Y36(h.aC),t.Y36(h.IQ))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-add-facility-owner-dialog"]],decls:6,vars:8,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[1,"font-size-1rem",3,"placeholder","filter"],["mat-dialog-content",""],[3,"filterValue","selection","owners","tableId"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(e,s){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div"),t.YNc(4,Ye,1,0,"mat-spinner",1),t.YNc(5,Ue,11,12,"div",2),t.qZA()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"DIALOGS.ADD_OWNERS.TITLE")),t.xp6(2),t.Tol(s.theme),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[m.O5,C.lW,u.uh,u.xY,u.H8,S.Ou,D.L,K.Q,f.X$]}),i})();var c=l(30671);function Je(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function Qe(i,n){1&i&&t._UZ(0,"th",15)}function He(i,n){if(1&i&&(t.TgZ(0,"td",16),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Oqu(e.name)}}function Ge(i,n){1&i&&t._UZ(0,"tr",17)}function Pe(i,n){1&i&&t._UZ(0,"tr",18)}function qe(i,n){if(1&i&&(t.TgZ(0,"div",7)(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",8),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",9),t.ynx(8,10),t.YNc(9,Qe,1,0,"th",11),t.YNc(10,He,2,1,"td",12),t.BQk(),t.YNc(11,Ge,1,0,"tr",13),t.YNc(12,Pe,1,0,"tr",14),t.qZA()()),2&i){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,5,"DIALOGS.REMOVE_OWNERS.DESCRIPTION")," "),t.xp6(3),t.hij(" ",t.lcZ(6,7,"DIALOGS.REMOVE_OWNERS.ASK")," "),t.xp6(2),t.Q6J("dataSource",e.dataSource),t.xp6(4),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}let Ve=(()=>{class i{constructor(e,s,a,o,r){this.dialogRef=e,this.data=s,this.notificator=a,this.translate=o,this.facilitiesManagerService=r,this.displayedColumns=["name"],o.get("DIALOGS.REMOVE_OWNERS.SUCCESS").subscribe(_=>this.successMessage=_)}ngOnInit(){this.dataSource=new c.by(this.data.owners),this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,0!==this.data.owners.length?this.facilitiesManagerService.removeFacilityOwner(this.data.facilityId,this.data.owners.pop().id).subscribe(()=>this.onSubmit(),()=>this.loading=!1):(this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0))}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(d.V6),t.Y36(f.sK),t.Y36(h.IQ))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-remove-facility-owner-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,s){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div"),t.YNc(4,Je,1,0,"mat-spinner",1),t.YNc(5,qe,13,9,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return s.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return s.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,9,"DIALOGS.REMOVE_OWNERS.TITLE")),t.xp6(2),t.Tol(s.theme),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.REMOVE_OWNERS.CANCEL")," "),t.xp6(2),t.Q6J("disabled",s.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.REMOVE_OWNERS.DELETE")," "))},dependencies:[m.O5,C.lW,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.ge,c.ev,c.XQ,c.Gk,u.uh,u.xY,u.H8,S.Ou,f.X$]}),i})();function Be(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onCreate())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"FACILITY_DETAIL.SETTINGS.OWNERS.ADD"),"\n"))}function je(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onRemove())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"FACILITY_DETAIL.SETTINGS.OWNERS.DELETE"),"\n")}}function Ke(i,n){1&i&&t._UZ(0,"mat-spinner",9)}function ze(i,n){if(1&i&&t._UZ(0,"perun-web-apps-owners-list",10),2&i){const e=t.oxw();t.Q6J("displayedColumns",e.displayedColumns)("filterValue",e.filterValue)("owners",e.owners)("selection",e.selection)("tableId",e.tableId)}}let dt=(()=>{class i{constructor(e,s,a,o){this.facilitiesManagerService=e,this.dialog=s,this.authResolver=a,this.entityStorageService=o,this.ownerEmitter=new t.vpe,this.owners=[],this.selection=new A.Ov(!0,[]),this.displayedColumns=["id","name","contact","type"],this.tableId=x.zp}ngOnInit(){this.filterValue="",this.facility=this.entityStorageService.getEntity(),this.setAuthRights(),this.refreshTable()}refreshTable(){this.loading=!0,this.selection.clear(),this.facilitiesManagerService.getFacilityOwners(this.facility.id).subscribe(e=>{this.owners=e,this.ownerEmitter.emit(this.owners),this.loading=!1})}setAuthRights(){this.addAuth=this.authResolver.isAuthorized("addOwner_Facility_Owner_policy",[this.facility]),this.removeAuth=this.authResolver.isAuthorized("removeOwner_Facility_Owner_policy",[this.facility]),this.displayedColumns=this.removeAuth?["select","id","name","contact","type"]:["id","name","contact","type"]}applyFilter(e){this.filterValue=e}onCreate(){const e=(0,p.kZ)();e.width="800px",e.data={theme:"facility-theme",facilityId:this.facility.id,forbiddenOwners:this.owners.map(a=>a.id)},this.dialog.open(Me,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}onRemove(){const e=(0,p.kZ)();e.width="600px",e.data={theme:"facility-theme",owners:this.selection.selected,facilityId:this.facility.id},this.dialog.open(Ve,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.IQ),t.Y36(u.uw),t.Y36(d.x4),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-settings-owners"]],outputs:{ownerEmitter:"ownerEmitter"},decls:9,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"displayedColumns","filterValue","owners","selection","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","filterValue","owners","selection","tableId"]],template:function(e,s){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return s.refreshTable()}),t.qZA(),t.YNc(4,Be,3,3,"button",2),t.YNc(5,je,3,4,"button",3),t.TgZ(6,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(o){return s.applyFilter(o)}),t.qZA(),t.YNc(7,Ke,1,0,"mat-spinner",5),t.YNc(8,ze,1,5,"perun-web-apps-owners-list",6)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"FACILITY_DETAIL.SETTINGS.OWNERS.TITLE")),t.xp6(3),t.Q6J("ngIf",s.addAuth),t.xp6(1),t.Q6J("ngIf",s.removeAuth),t.xp6(1),t.Q6J("placeholder","VO_MANAGEMENT.FILTER_PLACEHOLDER"),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[m.O5,C.lW,S.Ou,E.t,D.L,K.Q,f.X$]}),i})();function $e(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function We(i,n){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_HOST.EMPTY_MESSAGE")," "))}function Xe(i,n){if(1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i){const e=t.oxw(2);t.xp6(1),t.AsE(" ",t.lcZ(2,2,"DIALOGS.ADD_HOST.INVALID_HOST")," ",e.hostsCtrl.getError("invalidHost").value," ")}}function ti(i,n){if(1&i&&(t.TgZ(0,"div",7)(1,"mat-form-field")(2,"textarea",8),t.ALo(3,"translate"),t._uU(4," "),t.qZA(),t.YNc(5,We,3,3,"mat-error",9),t.YNc(6,Xe,3,4,"mat-error",9),t.qZA(),t.TgZ(7,"perun-web-apps-alert",10),t._uU(8),t.ALo(9,"translate"),t.qZA()()),2&i){const e=t.oxw();t.xp6(2),t.Q6J("formControl",e.hostsCtrl)("placeholder",t.lcZ(3,5,"DIALOGS.ADD_HOST.SUBTITLE")),t.xp6(3),t.Q6J("ngIf",e.hostsCtrl.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.hostsCtrl.hasError("invalidHost")),t.xp6(2),t.Oqu(t.lcZ(9,7,"DIALOGS.ADD_HOST.HINT"))}}let ei=(()=>{class i{constructor(e,s,a,o,r){this.dialogRef=e,this.data=s,this.facilitiesManager=a,this.notificator=o,this.translate=r,this.loading=!1,this.hostPattern=new RegExp("^(?!:\\/\\/)(?=.{1,255}$)((.{1,63}\\.){1,127}(?![0-9]*$)[a-z0-9-]+\\.?)$|^(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(\\.(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)){3}$")}static parseRange(e){const[s,a]=e.split("-");return[parseInt(s.substring(1,s.length),10),parseInt(a.substring(0,a.length),10)]}ngOnInit(){this.theme=this.data.theme,this.hostsCtrl=new g.p4("",[g.kI.required,this.hostsNameValidator()]),this.hostsCtrl.markAllAsTouched()}onAdd(){this.loading=!0;const e=this.hostsCtrl.value.split("\n");let s=[];for(const a of e)s=s.concat(this.parseHostName(a));this.facilitiesManager.addHosts(this.data.facilityId,s).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.ADD_HOST.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}hostsNameValidator(){return e=>{let s=[];const a=e.value.split("\n");for(const o of a)s=s.concat(this.parseHostName(o));for(const o of s)if(!this.hostPattern.test(o))return{invalidHost:{value:o}};return null}}parseHostName(e){const s=new RegExp("[[0-9]+-[0-9]+]","g"),a=e.split(s),o=e.match(s);if(null==o)return""===e?[]:[e];let r=[];for(let _=0;_{class i{constructor(e,s,a,o,r){this.dialogRef=e,this.data=s,this.facilitiesManager=a,this.notificator=o,this.translate=r,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.hosts=this.data.hosts,this.dataSource=new c.by(this.data.hosts)}onConfirm(){this.loading=!0,this.facilitiesManager.removeHosts(this.data.facilityId,this.hosts.map(e=>e.id)).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.REMOVE_HOST.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(h.IQ),t.Y36(d.V6),t.Y36(f.sK))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-remove-host-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,s){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div"),t.YNc(4,ii,1,0,"mat-spinner",1),t.YNc(5,li,13,9,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return s.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return s.onConfirm()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,9,"DIALOGS.REMOVE_HOST.TITLE")),t.xp6(2),t.Tol(s.theme),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.REMOVE_HOST.CANCEL")," "),t.xp6(2),t.Q6J("disabled",s.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.REMOVE_HOST.CONFIRM")," "))},dependencies:[m.O5,C.lW,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.ge,c.ev,c.XQ,c.Gk,u.uh,u.xY,u.H8,S.Ou,f.X$]}),i})();var I=l(96308),w=l(18750),_t=l(64597),Y=l(9185),U=l(8231),M=l(14849);function ri(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"th",15)(1,"mat-checkbox",16),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(a?o.masterToggle():null)}),t.ALo(2,"translate"),t.ALo(3,"masterCheckboxLabel"),t.qZA()()}if(2&i){const e=t.oxw().ngIf,s=t.oxw();t.xp6(1),t.Q6J("aria-label",t.lcZ(2,3,t.lcZ(3,5,e.all)))("checked",s.selection.hasValue()&&e.all)("indeterminate",s.selection.hasValue()&&!e.all)}}const ui=function(i){return{name:i}};function pi(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"td",17)(1,"mat-checkbox",18),t.NdJ("change",function(a){const r=t.CHM(e).$implicit,_=t.oxw(2);return t.KtG(a?_.selection.toggle(r):null)})("click",function(a){return a.stopPropagation()}),t.ALo(2,"translate"),t.ALo(3,"checkboxLabel"),t.qZA()()}if(2&i){const e=n.$implicit,s=t.oxw(2);t.xp6(1),t.Q6J("aria-label",t.xi3(2,2,t.lcZ(3,5,s.selection.isSelected(e)),t.VKq(7,ui,e.hostname)))("checked",s.selection.isSelected(e))}}function di(i,n){1&i&&(t.ynx(0,12),t.YNc(1,ri,4,7,"th",13),t.YNc(2,pi,4,9,"td",14),t.BQk())}function _i(i,n){1&i&&(t.TgZ(0,"th",19),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.HOSTS_LIST.TABLE_HOST_ID")," "))}function mi(i,n){if(1&i&&(t.TgZ(0,"td",20),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Oqu(e.id)}}function hi(i,n){1&i&&(t.TgZ(0,"th",19),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.HOSTS_LIST.TABLE_HOST_NAME")," "))}function fi(i,n){if(1&i&&(t.TgZ(0,"td",21),t.ALo(1,"multiWordDataCy"),t._uU(2),t.qZA()),2&i){const e=n.$implicit;t.uIk("data-cy",t.lcZ(1,2,e.hostname)),t.xp6(2),t.hij(" ",e.hostname," ")}}function gi(i,n){1&i&&t._UZ(0,"tr",22)}const mt=function(i,n){return["/facilities",i,"hosts",n]};function Ti(i,n){if(1&i&&t._UZ(0,"tr",23),2&i){const e=n.$implicit,s=t.oxw();t.Q6J("perunWebAppsMiddleClickRouterLink",s.disableRouting?null:t.WLB(2,mt,s.facilityId.toString(),e.id.toString()))("routerLink",s.disableRouting?null:t.WLB(5,mt,s.facilityId,e.id))}}function Si(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function Ci(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.HOSTS_LIST.NO_HOST_WARNING"),"\n"))}const Ai=function(i){return{all:i}};let ht=(()=>{class i{constructor(e,s){this.authResolver=e,this.tableCheckbox=s,this.hosts=[],this.selection=new A.Ov(!0,[]),this.disableRouting=!1,this.displayedColumns=["select","id","name"],this.pageSizeOptions=p.f7}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,s){switch(s){case"id":return e.id.toString();case"name":return e.hostname;default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"id"!==e)),this.dataSource=new c.by(this.hosts),this.setDataSource(),this.dataSource.filter=this.filterValue}exportAllData(e){(0,p.O6)((0,p.Xn)(this.dataSource.filteredData,this.displayedColumns,i.getDataForColumn),e)}exportDisplayedData(e){const s=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,a=s+this.dataSource.paginator.pageSize;(0,p.O6)((0,p.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(s,a),this.displayedColumns,i.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.filterPredicate=(e,s)=>(0,p.Sd)(e,s,this.displayedColumns,i.getDataForColumn),this.dataSource.sortData=(e,s)=>(0,p.pR)(e,s,i.getDataForColumn),this.dataSource.paginator=this.child.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(d.x4),t.Y36(d.UA))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-hosts-list"]],viewQuery:function(e,s){if(1&e&&(t.Gf(p.l9,7),t.Gf(I.YE,7)),2&e){let a;t.iGM(a=t.CRH())&&(s.child=a.first),t.iGM(a=t.CRH())&&(s.matSort=a.first)}},inputs:{hosts:"hosts",selection:"selection",filterValue:"filterValue",tableId:"tableId",facilityId:"facilityId",disableRouting:"disableRouting",displayedColumns:"displayedColumns"},features:[t.TTD],decls:15,vars:15,consts:[[1,"card","mt-3",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(e,s){1&e&&(t.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportDisplayedData",function(o){return s.exportDisplayedData(o)})("exportAllData",function(o){return s.exportAllData(o)}),t.TgZ(2,"table",2),t.YNc(3,di,3,0,"ng-container",3),t.ALo(4,"isAllSelected"),t.ynx(5,4),t.YNc(6,_i,3,3,"th",5),t.YNc(7,mi,2,1,"td",6),t.BQk(),t.ynx(8,7),t.YNc(9,hi,3,3,"th",5),t.YNc(10,fi,3,4,"td",8),t.BQk(),t.YNc(11,gi,1,0,"tr",9),t.YNc(12,Ti,1,8,"tr",10),t.qZA()()(),t.YNc(13,Si,3,3,"perun-web-apps-alert",11),t.YNc(14,Ci,3,3,"perun-web-apps-alert",11)),2&e&&(t.Q6J("hidden",0===s.dataSource.filteredData.length||0===s.hosts.length),t.xp6(1),t.Q6J("pageSizeOptions",s.pageSizeOptions)("dataLength",s.dataSource.filteredData.length)("tableId",s.tableId),t.xp6(1),t.Q6J("dataSource",s.dataSource),t.xp6(1),t.Q6J("ngIf",t.VKq(13,Ai,t.xi3(4,10,s.dataSource,s.selection.selected.length))),t.xp6(8),t.Q6J("matHeaderRowDef",s.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",s.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===s.dataSource.filteredData.length&&0!==s.hosts.length),t.xp6(1),t.Q6J("ngIf",0===s.hosts.length))},dependencies:[m.O5,v.rH,I.YE,I.nU,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.ge,c.ev,c.XQ,c.Gk,O.oG,R.w,Z.YH,Z.QG,w.l,f.X$,_t.R,Y.I,U.G,M.r],styles:[".disable-outline[_ngcontent-%COMP%]{outline:none!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),i})();function Ii(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.addHost())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"FACILITY_DETAIL.HOSTS.ADD")," "))}function bi(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.removeHost())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"FACILITY_DETAIL.HOSTS.REMOVE")," ")}}function yi(i,n){1&i&&t._UZ(0,"mat-spinner",9)}function vi(i,n){if(1&i&&t._UZ(0,"app-hosts-list",10),2&i){const e=t.oxw();t.Q6J("disableRouting",!e.routeAuth||e.disableRouting)("filterValue",e.filterValue)("hosts",e.hosts)("selection",e.selected)("displayedColumns",e.displayedColumns)("facilityId",e.facility.id)("tableId",e.tableId)}}let ft=(()=>{class i{constructor(e,s,a,o){this.dialog=e,this.facilitiesManager=s,this.authResolver=a,this.entityStorageService=o,this.disableRouting=!1,this.hostEmitter=new t.vpe,this.hosts=[],this.selected=new A.Ov(!0,[]),this.filterValue="",this.tableId=x.eq,this.displayedColumns=["id","name"]}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.setAuthRights(),this.facilitiesManager.getFacilityById(this.facility.id).subscribe(e=>{this.facility=e,this.refreshTable()})}refreshTable(){this.loading=!0,this.facilitiesManager.getHosts(this.facility.id).subscribe(e=>{this.hosts=e,this.hostEmitter.emit(this.hosts),this.selected.clear(),this.setAuthRights(),this.loading=!1})}setAuthRights(){this.addAuth=this.authResolver.isAuthorized("addHosts_Facility_List_policy",[this.facility]),this.removeAuth=this.authResolver.isAuthorized("removeHosts_List_Facility_policy",[this.facility]),this.displayedColumns=this.removeAuth?["select","id","name"]:["id","name"],0!==this.hosts.length&&(this.routeAuth=this.authResolver.isAuthorized("getHostById_int_policy",[this.facility,this.hosts[0]]))}addHost(){const e=(0,p.kZ)();e.width="600px",e.data={facilityId:this.facility.id,theme:"facility-theme"},this.dialog.open(ei,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}removeHost(){const e=(0,p.kZ)();e.width="600px",e.data={facilityId:this.facility.id,theme:"facility-theme",hosts:this.selected.selected},this.dialog.open(ci,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}applyFilter(e){this.filterValue=e}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.uw),t.Y36(h.IQ),t.Y36(d.x4),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-hosts"]],inputs:{disableRouting:"disableRouting"},outputs:{hostEmitter:"hostEmitter"},decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","class","mr-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableRouting","filterValue","hosts","selection","displayedColumns","facilityId","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"disableRouting","filterValue","hosts","selection","displayedColumns","facilityId","tableId"]],template:function(e,s){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return s.refreshTable()}),t.qZA(),t.YNc(5,Ii,3,3,"button",2),t.YNc(6,bi,3,4,"button",3),t.TgZ(7,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(o){return s.applyFilter(o)}),t.qZA(),t.YNc(8,yi,1,0,"mat-spinner",5),t.YNc(9,vi,1,7,"app-hosts-list",6),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,6,"FACILITY_DETAIL.HOSTS.TITLE")),t.xp6(3),t.Q6J("ngIf",s.addAuth),t.xp6(1),t.Q6J("ngIf",s.removeAuth),t.xp6(1),t.Q6J("placeholder","FACILITY_DETAIL.HOSTS.FILTER"),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[m.O5,C.lW,S.Ou,ht,E.t,D.L,f.X$]}),i})();function xi(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"th",16)(1,"mat-checkbox",17),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(a?o.masterToggle():null)}),t.ALo(2,"translate"),t.ALo(3,"masterCheckboxLabel"),t.qZA()()}if(2&i){const e=t.oxw().ngIf,s=t.oxw();t.xp6(1),t.Q6J("aria-label",t.lcZ(2,3,t.lcZ(3,5,e.all)))("checked",s.selection.hasValue()&&e.all)("indeterminate",s.selection.hasValue()&&!e.all)}}const Ei=function(i){return{name:i}};function Di(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"td",18)(1,"mat-checkbox",19),t.NdJ("change",function(a){const r=t.CHM(e).$implicit,_=t.oxw(2);return t.KtG(a?_.selection.toggle(r):null)})("click",function(a){return a.stopPropagation()}),t.ALo(2,"translate"),t.ALo(3,"checkboxLabel"),t.ALo(4,"userFullName"),t.qZA()()}if(2&i){const e=n.$implicit,s=t.oxw(2);t.xp6(1),t.Q6J("aria-label",t.xi3(2,2,t.lcZ(3,5,s.selection.isSelected(e)),t.VKq(9,Ei,t.lcZ(4,7,e[1]))))("checked",s.selection.isSelected(e))}}function Li(i,n){1&i&&(t.ynx(0,13),t.YNc(1,xi,4,7,"th",14),t.YNc(2,Di,5,11,"td",15),t.BQk())}function Zi(i,n){1&i&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.BLACKLIST_LIST.USER_ID")," "))}function Oi(i,n){if(1&i&&(t.TgZ(0,"td",21),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e[1].id," ")}}function Ri(i,n){1&i&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.BLACKLIST_LIST.NAME")," "))}function Fi(i,n){if(1&i&&(t.TgZ(0,"td",22),t._uU(1),t.ALo(2,"userFullName"),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,e[1])," ")}}function Ni(i,n){1&i&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.BLACKLIST_LIST.REASON")," "))}function ki(i,n){if(1&i&&(t.TgZ(0,"td",22),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e[0].description," ")}}function wi(i,n){1&i&&t._UZ(0,"tr",23)}function Yi(i,n){1&i&&t._UZ(0,"tr",24)}function Ui(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function Mi(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.BLACKLIST_LIST.NO_BANS_WARNING"),"\n"))}const Ji=function(i){return{all:i}};let Qi=(()=>{class i{constructor(e,s){this.authResolver=e,this.tableCheckbox=s,this.bansOnFacilitiesWithUsers=[],this.selection=new A.Ov(!0,[]),this.pageSizeOptions=p.f7,this.displayedColumns=["select","userId","name","reason"]}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,s){switch(s){case"userId":return e[1].id.toString();case"reason":return e[0].description;case"name":return(0,p.hu)(e[1]);default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"userId"!==e)),this.dataSource=new c.by(this.bansOnFacilitiesWithUsers),this.setDataSource(),this.dataSource.filter=this.filterValue}exportAllData(e){(0,p.O6)((0,p.Xn)(this.dataSource.filteredData,this.displayedColumns,i.getDataForColumn),e)}exportDisplayedData(e){const s=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,a=s+this.dataSource.paginator.pageSize;(0,p.O6)((0,p.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(s,a),this.displayedColumns,i.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,s)=>(0,p.Sd)(e,s,this.displayedColumns,i.getDataForColumn),this.dataSource.sortData=(e,s)=>(0,p.pR)(e,s,i.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(d.x4),t.Y36(d.UA))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-perun-web-apps-blacklist-list"]],viewQuery:function(e,s){if(1&e&&(t.Gf(p.l9,7),t.Gf(I.YE,7)),2&e){let a;t.iGM(a=t.CRH())&&(s.child=a.first),t.iGM(a=t.CRH())&&(s.matSort=a.first)}},inputs:{bansOnFacilitiesWithUsers:"bansOnFacilitiesWithUsers",selection:"selection",filterValue:"filterValue",tableId:"tableId"},features:[t.TTD],decls:18,vars:15,consts:[[1,"card","mt-3",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","userId"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","reason"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,s){1&e&&(t.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportDisplayedData",function(o){return s.exportDisplayedData(o)})("exportAllData",function(o){return s.exportAllData(o)}),t.TgZ(2,"table",2),t.YNc(3,Li,3,0,"ng-container",3),t.ALo(4,"isAllSelected"),t.ynx(5,4),t.YNc(6,Zi,3,3,"th",5),t.YNc(7,Oi,2,1,"td",6),t.BQk(),t.ynx(8,7),t.YNc(9,Ri,3,3,"th",5),t.YNc(10,Fi,3,3,"td",8),t.BQk(),t.ynx(11,9),t.YNc(12,Ni,3,3,"th",5),t.YNc(13,ki,2,1,"td",8),t.BQk(),t.YNc(14,wi,1,0,"tr",10),t.YNc(15,Yi,1,0,"tr",11),t.qZA()()(),t.YNc(16,Ui,3,3,"perun-web-apps-alert",12),t.YNc(17,Mi,3,3,"perun-web-apps-alert",12)),2&e&&(t.Q6J("hidden",0===s.dataSource.filteredData.length||0===s.bansOnFacilitiesWithUsers.length),t.xp6(1),t.Q6J("pageSizeOptions",s.pageSizeOptions)("dataLength",s.dataSource.filteredData.length)("tableId",s.tableId),t.xp6(1),t.Q6J("dataSource",s.dataSource),t.xp6(1),t.Q6J("ngIf",t.VKq(13,Ji,t.xi3(4,10,s.dataSource,s.selection.selected.length))),t.xp6(11),t.Q6J("matHeaderRowDef",s.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",s.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===s.dataSource.filteredData.length&&0!==s.bansOnFacilitiesWithUsers.length),t.xp6(1),t.Q6J("ngIf",0===s.bansOnFacilitiesWithUsers.length))},dependencies:[m.O5,I.YE,I.nU,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.ge,c.ev,c.XQ,c.Gk,O.oG,R.w,w.l,f.X$,lt.d,Y.I,U.G,M.r]}),i})();function Hi(i,n){1&i&&t._UZ(0,"mat-spinner",5)}function Gi(i,n){if(1&i&&t._UZ(0,"app-perun-web-apps-blacklist-list",6),2&i){const e=t.oxw();t.Q6J("bansOnFacilitiesWithUsers",e.bansOnFacilitiesWithUsers)("filterValue",e.filterValue)("selection",e.selected)("tableId",e.tableId)}}let Pi=(()=>{class i{constructor(e,s,a){this.facilitiesManager=e,this.usersManager=s,this.entityStorageService=a,this.bansOnFacilitiesWithUsers=[],this.selected=new A.Ov(!0,[]),this.filterValue="",this.tableId=x.NG}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.refreshTable()}refreshTable(){this.loading=!0,this.facilitiesManager.getBansForFacility(this.facility.id).subscribe(e=>{const s=e;for(const a of s){let o;this.usersManager.getUserById(a.userId).subscribe(r=>{o=r}),this.bansOnFacilitiesWithUsers.push([a,o])}this.selected.clear(),this.loading=!1})}applyFilter(e){this.filterValue=e}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.IQ),t.Y36(h.Fv),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-perun-web-apps-facility-settings-blacklist"]],decls:9,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"bansOnFacilitiesWithUsers","filterValue","selection","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"bansOnFacilitiesWithUsers","filterValue","selection","tableId"]],template:function(e,s){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return s.refreshTable()}),t.qZA(),t.TgZ(5,"perun-web-apps-immediate-filter",2),t.NdJ("filter",function(o){return s.applyFilter(o)}),t.ALo(6,"translate"),t.qZA(),t.YNc(7,Hi,1,0,"mat-spinner",3),t.YNc(8,Gi,1,4,"app-perun-web-apps-blacklist-list",4),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,4,"FACILITY_DETAIL.SETTINGS.BLACKLIST.TITLE")),t.xp6(3),t.Q6J("placeholder",t.lcZ(6,6,"FACILITY_DETAIL.SETTINGS.BLACKLIST.FILTER")),t.xp6(2),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[m.O5,S.Ou,Qi,E.t,D.L,f.X$]}),i})();var qi=l(85147),Vi=l(61365),Bi=l(71103),gt=l(53984);const ji=["list"];function Ki(i,n){1&i&&t._UZ(0,"mat-spinner",7)}function zi(i,n){if(1&i&&t._UZ(0,"perun-web-apps-attributes-list",8,9),2&i){const e=t.oxw();t.Q6J("selection",e.selected)("attributes",e.attributes)("tableId",e.tableId)}}let $i=(()=>{class i{constructor(e,s,a,o){this.dialog=e,this.attributesManager=s,this.facilityManager=a,this.route=o,this.attributes=[],this.selected=new A.Ov(!0,[]),this.host={beanName:"",id:0},this.tableId=x.rF}ngOnInit(){this.route.params.subscribe(e=>{this.hostId=Number(e.hostId),this.facilityManager.getHostById(this.hostId).subscribe(s=>{this.host=s}),this.refreshTable()})}refreshTable(){this.loading=!0,this.attributesManager.getHostAttributes(this.hostId).subscribe(e=>{this.attributes=(0,p.MX)(e),this.selected.clear(),this.loading=!1})}onSave(){this.list.updateMapAttributes();const e=(0,p.kZ)();e.width="450px",e.data={entityId:this.hostId,entity:"host",attributes:this.selected.selected},this.dialog.open(J.wA,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}addAttribute(){const e=(0,p.kZ)();e.width="1050px",e.data={entityId:this.hostId,entity:"host",notEmptyAttributes:this.attributes,style:"facility-theme"},this.dialog.open(Bi.n,e).afterClosed().subscribe(a=>{"saved"===a&&this.refreshTable()})}removeAttribute(){const e=(0,p.kZ)();e.width="450px",e.data={entityId:this.hostId,entity:"host",attributes:this.selected.selected,theme:"facility-theme"},this.dialog.open(Vi.k,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.uw),t.Y36(h.H8),t.Y36(h.IQ),t.Y36(v.gz))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-hosts-detail"]],viewQuery:function(e,s){if(1&e&&t.Gf(ji,5),2&e){let a;t.iGM(a=t.CRH())&&(s.list=a.first)}},decls:16,vars:17,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","mat-flat-button","",1,"mr-2",3,"click"],["color","accent","mat-flat-button","",1,"mr-2",3,"disabled","click"],["color","warn","mat-flat-button","",3,"disabled","click"],["class","ml-auto mr-auto",4,"ngIf"],[3,"selection","attributes","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"selection","attributes","tableId"],["list",""]],template:function(e,s){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return s.refreshTable()}),t.qZA(),t.TgZ(5,"button",2),t.NdJ("click",function(){return s.addAttribute()}),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"button",3),t.NdJ("click",function(){return s.onSave()}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"button",4),t.NdJ("click",function(){return s.removeAttribute()}),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.YNc(14,Ki,1,0,"mat-spinner",5),t.YNc(15,zi,2,3,"perun-web-apps-attributes-list",6),t.qZA()),2&e&&(t.xp6(2),t.AsE(" ",t.lcZ(3,9,"FACILITY_DETAIL.HOSTS.HOSTS_DETAIL.TITLE")," ",s.host.hostname," "),t.xp6(4),t.hij(" ",t.lcZ(7,11,"FACILITY_DETAIL.HOSTS.HOSTS_DETAIL.ADD")," "),t.xp6(2),t.Q6J("disabled",0===s.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(10,13,"FACILITY_DETAIL.HOSTS.HOSTS_DETAIL.SAVE")," "),t.xp6(2),t.Q6J("disabled",0===s.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(13,15,"FACILITY_DETAIL.HOSTS.HOSTS_DETAIL.REMOVE")," "),t.xp6(2),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[m.O5,C.lW,S.Ou,E.t,gt.p,f.X$]}),i})();function Wi(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"th",16)(1,"mat-checkbox",17),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(a?o.masterToggle():null)}),t.ALo(2,"translate"),t.ALo(3,"masterCheckboxLabel"),t.qZA()()}if(2&i){const e=t.oxw().ngIf,s=t.oxw();t.xp6(1),t.Q6J("aria-label",t.lcZ(2,3,t.lcZ(3,5,e.all)))("checked",s.selection.hasValue()&&e.all)("indeterminate",s.selection.hasValue()&&!e.all)}}const Xi=function(i){return{name:i}};function ts(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"td",18)(1,"mat-checkbox",19),t.NdJ("change",function(a){const r=t.CHM(e).$implicit,_=t.oxw(2);return t.KtG(a?_.selection.toggle(r):null)})("click",function(a){return a.stopPropagation()}),t.ALo(2,"translate"),t.ALo(3,"checkboxLabel"),t.qZA()()}if(2&i){const e=n.$implicit,s=t.oxw(2);t.xp6(1),t.Q6J("aria-label",t.xi3(2,2,t.lcZ(3,5,s.selection.isSelected(e)),t.VKq(7,Xi,e.name)))("checked",s.selection.isSelected(e))}}function es(i,n){1&i&&(t.ynx(0,13),t.YNc(1,Wi,4,7,"th",14),t.YNc(2,ts,4,9,"td",15),t.BQk())}function is(i,n){1&i&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.SECURITY_TEAMS_LIST.ID")," "))}function ss(i,n){if(1&i&&(t.TgZ(0,"td",21),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e.id," ")}}function as(i,n){1&i&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.SECURITY_TEAMS_LIST.NAME")," "))}function ns(i,n){if(1&i&&(t.TgZ(0,"td",22),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Oqu(e.name)}}function os(i,n){1&i&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.SECURITY_TEAMS_LIST.DESCRIPTION")," "))}function ls(i,n){if(1&i&&(t.TgZ(0,"td",22),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Oqu(e.description)}}function cs(i,n){1&i&&t._UZ(0,"tr",23)}function rs(i,n){1&i&&t._UZ(0,"tr",24)}function us(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function ps(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.SECURITY_TEAMS_LIST.NO_SECURITY_TEAMS_WARNING"),"\n"))}const ds=function(i){return{all:i}};let _s=(()=>{class i{constructor(e,s){this.authResolver=e,this.tableCheckbox=s,this.securityTeams=[],this.selection=new A.Ov(!0,[]),this.displayedColumns=["select","id","name","description"],this.pageSizeOptions=p.f7}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,s){switch(s){case"id":return e.id.toString();case"name":return e.name;case"description":return e.description;default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"id"!==e)),this.dataSource=new c.by(this.securityTeams),this.setDataSource(),this.dataSource.filter=this.filterValue}exportAllData(e){(0,p.O6)((0,p.Xn)(this.dataSource.filteredData,this.displayedColumns,i.getDataForColumn),e)}exportDisplayedData(e){const s=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,a=s+this.dataSource.paginator.pageSize;(0,p.O6)((0,p.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(s,a),this.displayedColumns,i.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,s)=>(0,p.Sd)(e,s,this.displayedColumns,i.getDataForColumn),this.dataSource.sortData=(e,s)=>(0,p.pR)(e,s,i.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(d.x4),t.Y36(d.UA))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-security-teams-list"]],viewQuery:function(e,s){if(1&e&&(t.Gf(p.l9,7),t.Gf(I.YE,7)),2&e){let a;t.iGM(a=t.CRH())&&(s.child=a.first),t.iGM(a=t.CRH())&&(s.matSort=a.first)}},inputs:{securityTeams:"securityTeams",selection:"selection",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns"},features:[t.TTD],decls:18,vars:15,consts:[[1,"card","mt-3",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","description"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,s){1&e&&(t.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportDisplayedData",function(o){return s.exportDisplayedData(o)})("exportAllData",function(o){return s.exportAllData(o)}),t.TgZ(2,"table",2),t.YNc(3,es,3,0,"ng-container",3),t.ALo(4,"isAllSelected"),t.ynx(5,4),t.YNc(6,is,3,3,"th",5),t.YNc(7,ss,2,1,"td",6),t.BQk(),t.ynx(8,7),t.YNc(9,as,3,3,"th",5),t.YNc(10,ns,2,1,"td",8),t.BQk(),t.ynx(11,9),t.YNc(12,os,3,3,"th",5),t.YNc(13,ls,2,1,"td",8),t.BQk(),t.YNc(14,cs,1,0,"tr",10),t.YNc(15,rs,1,0,"tr",11),t.qZA()()(),t.YNc(16,us,3,3,"perun-web-apps-alert",12),t.YNc(17,ps,3,3,"perun-web-apps-alert",12)),2&e&&(t.Q6J("hidden",0===s.dataSource.filteredData.length||0===s.securityTeams.length),t.xp6(1),t.Q6J("pageSizeOptions",s.pageSizeOptions)("dataLength",s.dataSource.filteredData.length)("tableId",s.tableId),t.xp6(1),t.Q6J("dataSource",s.dataSource),t.xp6(1),t.Q6J("ngIf",t.VKq(13,ds,t.xi3(4,10,s.dataSource,s.selection.selected.length))),t.xp6(11),t.Q6J("matHeaderRowDef",s.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",s.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===s.dataSource.filteredData.length&&0!==s.securityTeams.length),t.xp6(1),t.Q6J("ngIf",0===s.securityTeams.length))},dependencies:[m.O5,I.YE,I.nU,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.ge,c.ev,c.XQ,c.Gk,O.oG,R.w,w.l,f.X$,Y.I,U.G,M.r]}),i})();function ms(i,n){1&i&&t._UZ(0,"mat-spinner",5)}function hs(i,n){if(1&i&&t._UZ(0,"app-security-teams-list",6),2&i){const e=t.oxw();t.Q6J("displayedColumns",e.displayedColumns)("filterValue",e.filterValue)("securityTeams",e.securityTeams)("selection",e.selected)("tableId",e.tableId)}}let fs=(()=>{class i{constructor(e,s,a,o){this.dialog=e,this.facilitiesManager=s,this.authResolver=a,this.entityStorageService=o,this.securityTeams=[],this.selected=new A.Ov(!0,[]),this.filterValue="",this.tableId=x.O9,this.displayedColumns=[]}ngOnInit(){this.facility=this.entityStorageService.getEntity(),this.refreshTable()}refreshTable(){this.loading=!0,this.facilitiesManager.getAssignedSecurityTeams(this.facility.id).subscribe(e=>{this.securityTeams=e,this.selected.clear(),this.setAuthRights(),this.loading=!1})}setAuthRights(){this.addAuth=this.authResolver.isAuthorized("assignSecurityTeam_Facility_SecurityTeam_policy",[this.facility]),this.removeAuth=this.authResolver.isAuthorized("removeSecurityTeam_Facility_SecurityTeam_policy",[this.facility]),this.displayedColumns=this.removeAuth?["select","id","name","description"]:["id","name","description"]}applyFilter(e){this.filterValue=e}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.uw),t.Y36(h.IQ),t.Y36(d.x4),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-security-teams"]],decls:8,vars:6,consts:[[1,"page-subtitle"],[3,"refresh"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"displayedColumns","filterValue","securityTeams","selection","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","filterValue","securityTeams","selection","tableId"]],template:function(e,s){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return s.refreshTable()}),t.qZA(),t.TgZ(5,"perun-web-apps-immediate-filter",2),t.NdJ("filter",function(o){return s.applyFilter(o)}),t.qZA(),t.YNc(6,ms,1,0,"mat-spinner",3),t.YNc(7,hs,1,5,"app-security-teams-list",4),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,4,"FACILITY_DETAIL.SECURITY_TEAMS.TITLE")),t.xp6(3),t.Q6J("placeholder","FACILITY_DETAIL.SECURITY_TEAMS.FILTER"),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[m.O5,S.Ou,_s,E.t,D.L,f.X$]}),i})();var gs=l(20057),Ts=l(49546);function Ss(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function Cs(i,n){1&i&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.DELETE_TASK_RESULT.RESULT_ID")," "))}function As(i,n){if(1&i&&(t.TgZ(0,"td",18),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Oqu(e.id)}}function Is(i,n){1&i&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.DELETE_TASK_RESULT.DESTINATION")," "))}function bs(i,n){if(1&i&&(t.TgZ(0,"td",18),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Oqu(e.destination.destination)}}function ys(i,n){1&i&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.DELETE_TASK_RESULT.TIME")))}function vs(i,n){if(1&i&&(t.TgZ(0,"td",18),t._uU(1),t.ALo(2,"date"),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,e.timestamp,"d.M.y H:mm:ss")," ")}}function xs(i,n){1&i&&t._UZ(0,"tr",19)}function Es(i,n){1&i&&t._UZ(0,"tr",20)}function Ds(i,n){if(1&i&&(t.TgZ(0,"div",7)(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",8),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",9),t.ynx(8,10),t.YNc(9,Cs,3,3,"th",11),t.YNc(10,As,2,1,"td",12),t.BQk(),t.ynx(11,13),t.YNc(12,Is,3,3,"th",11),t.YNc(13,bs,2,1,"td",12),t.BQk(),t.ynx(14,14),t.YNc(15,ys,3,3,"th",11),t.YNc(16,vs,3,4,"td",12),t.BQk(),t.YNc(17,xs,1,0,"tr",15),t.YNc(18,Es,1,0,"tr",16),t.qZA()()),2&i){const e=t.oxw();t.xp6(2),t.Oqu(t.lcZ(3,5,"DIALOGS.DELETE_TASK_RESULT.DESCRIPTION")),t.xp6(3),t.hij(" ",t.lcZ(6,7,"DIALOGS.DELETE_TASK_RESULT.ASK")," "),t.xp6(2),t.Q6J("dataSource",e.dataSource),t.xp6(10),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}let Tt=(()=>{class i{constructor(e,s,a,o,r){this.dialogRef=e,this.data=s,this.taskManager=a,this.notificator=o,this.translate=r,this.loading=!1,this.dataSource=new c.by(this.data.taskResults),this.displayedColumns=["id","destination","time"]}ngOnInit(){this.theme=this.data.theme,this.taskResults=this.data.taskResults}onDelete(){if(this.loading=!0,0===this.taskResults.length)return this.dialogRef.close(!0),this.loading=!1,void this.notificator.showSuccess(this.translate.instant("DIALOGS.DELETE_TASK_RESULT.SUCCESS"));this.taskManager.deleteTaskResultById({taskResultId:this.taskResults.pop().id}).subscribe(()=>{this.onDelete()},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(h.Ob),t.Y36(d.V6),t.Y36(f.sK))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-delete-task-result-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","destination"],["matColumnDef","time"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,s){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div"),t.YNc(4,Ss,1,0,"mat-spinner",1),t.YNc(5,Ds,19,9,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return s.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return s.onDelete()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,9,"DIALOGS.DELETE_TASK_RESULT.TITLE")),t.xp6(2),t.Tol(s.theme),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.DELETE_TASK_RESULT.CANCEL")," "),t.xp6(2),t.Q6J("disabled",s.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.DELETE_TASK_RESULT.REMOVE")," "))},dependencies:[m.O5,C.lW,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.ge,c.ev,c.XQ,c.Gk,u.uh,u.xY,u.H8,S.Ou,m.uU,f.X$]}),i})();var Ls=l(62109);function Zs(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function Os(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-checkbox",13),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(o.change(a))}),t.ALo(1,"translate"),t._uU(2),t.ALo(3,"translate"),t.qZA()}if(2&i){const e=t.oxw(2);t.s9C("matTooltip",t.lcZ(1,5,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DISABLED")),t.Q6J("checked",e.taskChecked)("disabled",e.checkboxesDisabled)("matTooltipDisabled",!e.checkboxesDisabled),t.xp6(2),t.hij(" ",t.lcZ(3,7,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOX_TASK_AND_TASK_RESULTS")," ")}}function Rs(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-checkbox",14),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(o.change(a))}),t.ALo(1,"translate"),t._uU(2),t.ALo(3,"translate"),t.qZA()}if(2&i){const e=t.oxw(2);t.s9C("matTooltip",t.lcZ(1,5,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DISABLED")),t.Q6J("checked",e.taskResultsChecked)("disabled",e.checkboxesDisabled)("matTooltipDisabled",!e.checkboxesDisabled),t.xp6(2),t.hij(" ",t.lcZ(3,7,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOX_TASK_RESULTS")," ")}}function Fs(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"perun-web-apps-resources-list",15),t.NdJ("allSelected",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(o.disableCheckboxes(a))}),t.qZA()}if(2&i){const e=t.oxw(2);t.Q6J("displayedColumns",e.displayedColumns)("disableRouting",!0)("resources",e.resources)("selection",e.selected)("tableId",e.tableId)}}function Ns(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",7)(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div"),t.YNc(5,Os,4,9,"mat-checkbox",8),t.YNc(6,Rs,4,9,"mat-checkbox",9),t.TgZ(7,"mat-checkbox",10),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.change(a))}),t.ALo(8,"translate"),t._uU(9),t.ALo(10,"translate"),t.qZA()(),t.TgZ(11,"p"),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.TgZ(14,"div",11),t._uU(15),t.ALo(16,"translate"),t.qZA(),t.YNc(17,Fs,1,5,"perun-web-apps-resources-list",12),t.qZA()}if(2&i){const e=t.oxw();t.xp6(2),t.Oqu(t.lcZ(3,11,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DESCRIPTION")),t.xp6(3),t.Q6J("ngIf",null!==e.taskId),t.xp6(1),t.Q6J("ngIf",null!==e.taskId),t.xp6(1),t.s9C("matTooltip",t.lcZ(8,13,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DISABLED")),t.Q6J("disabled",e.checkboxesDisabled)("matTooltipDisabled",!e.checkboxesDisabled)("checked",e.destinationChecked),t.xp6(2),t.hij(" ",t.lcZ(10,15,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOX_DESTINATION")," "),t.xp6(3),t.Oqu(t.lcZ(13,17,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.DESCRIPTION")),t.xp6(3),t.hij(" ",t.lcZ(16,19,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.ASK")," "),t.xp6(2),t.Q6J("ngIf",!e.loading)}}let ks=(()=>{class i{constructor(e,s,a,o,r,_,T,b){this.dialogRef=e,this.data=s,this.resourcesManager=a,this.tasksManager=o,this.serviceManager=r,this.translate=_,this.notificator=T,this.cd=b,this.loading=!1,this.resources=[],this.displayedColumns=["select","id","vo","name"],this.checkboxesDisabled=!1,this.taskChecked=!0,this.taskResultsChecked=!0,this.destinationChecked=!0,this.tableId=x.$V,this.dataSource=new c.by(this.data.resource),this.selected=new A.Ov(!0,[...this.dataSource.data])}ngOnInit(){this.theme=this.data.theme,this.taskId=this.data.taskId,this.serviceId=this.data.serviceId,this.facilityId=this.data.facilityId,this.resources=this.data.resource}remove(){this.loading=!0,this.taskResultsChecked&&!this.taskChecked&&null!==this.taskId&&this.tasksManager.getTaskResultsForGUIByTask(this.taskId).subscribe(e=>{e.forEach(s=>{this.tasksManager.deleteTaskResultById({taskResultId:s.id}).subscribe()})}),this.taskChecked&&null!==this.taskId&&this.tasksManager.deleteTask({task:this.taskId}).subscribe(),this.destinationChecked&&this.serviceManager.getDestinations(this.serviceId,this.facilityId).subscribe(e=>{e.forEach(s=>{this.serviceManager.removeDestination(this.serviceId,this.facilityId,s.destination,s.type).subscribe()})}),this.selected.selected.forEach(e=>{this.resourcesManager.removeService(e.id,this.serviceId).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_SERVICE_FROM_FACILITY.SUCCESS").subscribe(s=>{this.notificator.showSuccess(s),this.dialogRef.close(!0)})},()=>this.loading=!1)})}cancel(){this.dialogRef.close(!1)}disableCheckboxes(e){e&&this.checkboxesDisabled&&this.changeCheckboxes(!0),!e&&!this.checkboxesDisabled&&this.changeCheckboxes(!1)}changeCheckboxes(e){this.checkboxesDisabled=!e,this.taskChecked=e,this.taskResultsChecked=e,this.destinationChecked=e,this.cd.detectChanges()}change(e){switch(e.source.id){case"task":this.taskChecked=e.checked;break;case"taskResults":this.taskResultsChecked=e.checked;break;case"destination":this.destinationChecked=e.checked}}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(h.xk),t.Y36(h.Ob),t.Y36(h.KK),t.Y36(f.sK),t.Y36(d.V6),t.Y36(t.sBO))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-delete-service-from-facility"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],["class","right-space","color","warn","id","task",3,"checked","disabled","matTooltipDisabled","matTooltip","change",4,"ngIf"],["class","right-space","color","warn","id","taskResults",3,"checked","disabled","matTooltipDisabled","matTooltip","change",4,"ngIf"],["color","warn","id","destination",3,"disabled","matTooltipDisabled","checked","matTooltip","change"],[1,"font-weight-bold"],[3,"displayedColumns","disableRouting","resources","selection","tableId","allSelected",4,"ngIf"],["color","warn","id","task",1,"right-space",3,"checked","disabled","matTooltipDisabled","matTooltip","change"],["color","warn","id","taskResults",1,"right-space",3,"checked","disabled","matTooltipDisabled","matTooltip","change"],[3,"displayedColumns","disableRouting","resources","selection","tableId","allSelected"]],template:function(e,s){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div"),t.YNc(4,Zs,1,0,"mat-spinner",1),t.YNc(5,Ns,18,21,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return s.cancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return s.remove()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,9,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.TITLE")),t.xp6(2),t.Tol(s.theme),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CANCEL")," "),t.xp6(2),t.Q6J("disabled",s.loading||0===s.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.REMOVE")," "))},dependencies:[m.O5,C.lW,O.oG,u.uh,u.xY,u.H8,S.Ou,Q.gM,Ls.C,f.X$],styles:[".right-space[_ngcontent-%COMP%]{margin-right:40px}"]}),i})();function ws(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function Ys(i,n){1&i&&(t.TgZ(0,"div",7)(1,"div",8),t._uU(2),t.ALo(3,"translate"),t.qZA()()),2&i&&(t.xp6(2),t.hij(" ",t.lcZ(3,1,"DIALOGS.DELETE_TASK.DESCRIPTION")," "))}let Us=(()=>{class i{constructor(e,s,a,o,r){this.dialogRef=e,this.data=s,this.tasksManager=a,this.translate=o,this.notificator=r,this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.taskId=this.data.taskId}remove(){this.loading=!0,this.tasksManager.deleteTask({task:this.taskId}).subscribe(()=>{this.translate.get("DIALOGS.DELETE_TASK.SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.dialogRef.close(!0)})},()=>this.loading=!1)}cancel(){this.dialogRef.close(!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(h.Ob),t.Y36(f.sK),t.Y36(d.V6))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-delete-task-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"]],template:function(e,s){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div"),t.YNc(4,ws,1,0,"mat-spinner",1),t.YNc(5,Ys,4,3,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return s.cancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return s.remove()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,9,"DIALOGS.DELETE_TASK.TITLE")),t.xp6(2),t.Tol(s.theme),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.DELETE_TASK.CANCEL")," "),t.xp6(2),t.Q6J("disabled",s.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.DELETE_TASK.DELETE")," "))},dependencies:[m.O5,C.lW,u.uh,u.xY,u.H8,S.Ou,f.X$]}),i})();var z=l(28255);let Ms=(()=>{class i{transform(e){return e.blockedOnFacility?"BLOCKED":e.blockedGlobally?"BLOCKED GLOBALLY":"ALLOWED"}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=t.Yjl({name:"serviceStateBlockedToString",type:i,pure:!0}),i})();function Js(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"th",19)(1,"mat-checkbox",20),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw(2);return a&&o.masterToggle(),t.KtG(o.selectionChange.emit())}),t.ALo(2,"translate"),t.ALo(3,"masterCheckboxLabel"),t.qZA()()}if(2&i){const e=t.oxw().ngIf,s=t.oxw();t.xp6(1),t.Q6J("checked",s.selection.hasValue()&&e.all)("indeterminate",s.selection.hasValue()&&!e.all)("aria-label",t.lcZ(2,3,t.lcZ(3,5,e.all)))}}const Qs=function(i){return{name:i}};function Hs(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"td",21)(1,"mat-checkbox",22),t.NdJ("click",function(a){return a.stopPropagation()})("change",function(a){const r=t.CHM(e).$implicit,_=t.oxw(2);return a&&_.selection.toggle(r),t.KtG(_.selectionChange.emit())}),t.ALo(2,"translate"),t.ALo(3,"checkboxLabel"),t.qZA()()}if(2&i){const e=n.$implicit,s=t.oxw(2);t.xp6(1),t.Q6J("checked",s.selection.isSelected(e))("aria-label",t.xi3(2,2,t.lcZ(3,5,s.selection.isSelected(e)),t.VKq(7,Qs,e.service.name)))}}function Gs(i,n){1&i&&(t.ynx(0,16),t.YNc(1,Js,4,7,"th",17),t.YNc(2,Hs,4,9,"td",18),t.BQk())}function Ps(i,n){1&i&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.TASK_ID")," "))}function qs(i,n){if(1&i&&(t.TgZ(0,"div"),t._uU(1),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.Oqu(e.task.id)}}function Vs(i,n){1&i&&(t.TgZ(0,"div"),t._uU(1,"0"),t.qZA())}function Bs(i,n){if(1&i&&(t.TgZ(0,"td",24),t.YNc(1,qs,2,1,"div",25),t.YNc(2,Vs,2,0,"div",25),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Q6J("ngIf",e.task),t.xp6(1),t.Q6J("ngIf",!e.task)}}function js(i,n){1&i&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.SERVICE_NAME")," "))}function Ks(i,n){if(1&i&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.uIk("data-cy",e.service.name),t.xp6(1),t.hij(" ",e.service.name," ")}}function zs(i,n){1&i&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.STATUS")," "))}function $s(i,n){1&i&&(t.TgZ(0,"mat-icon",28),t.ALo(1,"translate"),t._uU(2," warning "),t.qZA()),2&i&&t.Q6J("matTooltip",t.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.NO_DESTINATIONS_TOOLTIP"))}function Ws(i,n){if(1&i&&(t.TgZ(0,"td",26),t._uU(1),t.YNc(2,$s,3,3,"mat-icon",27),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e.status," "),t.xp6(1),t.Q6J("ngIf",!e.hasDestinations)}}function Xs(i,n){1&i&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.BLOCKED")," "))}function ta(i,n){if(1&i&&(t.TgZ(0,"td",26),t._uU(1),t.ALo(2,"serviceStateBlockedToString"),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,e)," ")}}function ea(i,n){1&i&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.STARTED")," "))}function ia(i,n){if(1&i&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"date"),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,e.task.startTime,"d.M.y H:mm:ss")," ")}}function sa(i,n){1&i&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.NOT_YET")," "))}function aa(i,n){if(1&i&&(t.TgZ(0,"td",26),t.YNc(1,ia,3,4,"div",25),t.YNc(2,sa,3,3,"div",25),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Q6J("ngIf",e.task&&e.task.startTime),t.xp6(1),t.Q6J("ngIf",!e.task||!e.task.startTime)}}function na(i,n){1&i&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.ENDED")," "))}function oa(i,n){if(1&i&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"date"),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,e.task.endTime,"d.M.y H:mm:ss")," ")}}function la(i,n){1&i&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.NOT_YET")," "))}function ca(i,n){if(1&i&&(t.TgZ(0,"td",26),t.YNc(1,oa,3,4,"div",25),t.YNc(2,la,3,3,"div",25),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Q6J("ngIf",e.task&&e.task.endTime),t.xp6(1),t.Q6J("ngIf",!e.task||!e.task.endTime)}}function ra(i,n){1&i&&t._UZ(0,"tr",29)}const St=function(i,n){return["/facilities",i,"services-status",n]};function ua(i,n){if(1&i&&t._UZ(0,"tr",30),2&i){const e=n.$implicit,s=t.oxw();t.ekj("disable-outline",s.disableRouting||!e.task)("make-yellow","WARNING"===e.status)("make-green","DONE"===e.status)("make-red","GENERROR"===e.status||"SENDERROR"===e.status||"ERROR"===e.status)("cursor-pointer",!s.disableRouting&&null!==e.task),t.Q6J("routerLink",s.disableRouting||null===e.task?null:t.WLB(12,St,e.facility.id,e.taskId))("perunWebAppsMiddleClickRouterLink",s.disableRouting||null===e.task?null:t.WLB(15,St,e.facility.id,e.taskId))}}function pa(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",31),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function da(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",31),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.NO_SERVICES_STATUS_WARNING"),"\n"))}const _a=function(i){return{all:i}};let ma=(()=>{class i{constructor(e,s){this.authResolver=e,this.tableCheckbox=s,this.servicesStatus=[],this.displayedColumns=["select","task.id","service.name","status","blocked","task.startTime","task.endTime"],this.selection=new A.Ov(!0,[]),this.disableRouting=!0,this.selectionChange=new t.vpe,this.pageSizeOptions=p.f7}set matSort(e){this.sort=e,this.setDataSource()}static getSortDataForColumn(e,s){switch(s){case"task.id":return e.task?e.task.id.toString():e[s];case"service.name":return e.service.name;case"status":return e.status;case"blocked":return e.blockedOnFacility?"BLOCKED":e.blockedGlobally?"BLOCKED GLOBALLY":"ALLOWED";case"task.startTime":return e.task?.startTime?(0,m.p6)(e.task.startTime,"yyyy.MM.dd HH:mm:ss","en"):e[s];case"task.endTime":return e.task?.endTime?(0,m.p6)(e.task.endTime,"yyyy.MM.dd HH:mm:ss","en"):e[s];default:return e[s]}}static getDataForColumn(e,s){switch(s){case"task.id":return e.task?e.task.id.toString():e[s];case"service.name":return e.service.name;case"status":return e.status;case"blocked":return e.blockedOnFacility?"BLOCKED":e.blockedGlobally?"BLOCKED GLOBALLY":"ALLOWED";case"task.startTime":return e.task?.startTime?(0,m.p6)(e.task.startTime,"d.M.y H:mm:ss","en"):e[s];case"task.endTime":return e.task?.endTime?(0,m.p6)(e.task.endTime,"d.M.y H:mm:ss","en"):e[s];default:return e[s]}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"task.id"!==e)),this.dataSource=new c.by(this.servicesStatus),this.setDataSource(),this.dataSource.filterPredicate=(e,s)=>{const a=s.trim().toLowerCase(),o=r=>{let _="";return Object.values(r).forEach(T=>{"object"!=typeof T?_=_+" "+String(T):null!==T&&(_=_+" "+o(T))}),_.trim().toLowerCase()};return o(e).includes(a)},this.dataSource.filter=this.filterValue}exportAllData(e){(0,p.O6)((0,p.Xn)(this.dataSource.filteredData,this.displayedColumns,i.getDataForColumn),e)}exportDisplayedData(e){const s=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,a=s+this.dataSource.paginator.pageSize;(0,p.O6)((0,p.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(s,a),this.displayedColumns,i.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,s)=>(0,p.Sd)(e,s,this.displayedColumns,i.getDataForColumn),this.dataSource.sortData=(e,s)=>(0,p.pR)(e,s,i.getSortDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(d.x4),t.Y36(d.UA))},i.\u0275cmp=t.Xpm({type:i,selectors:[["perun-web-apps-services-status-list"]],viewQuery:function(e,s){if(1&e&&(t.Gf(p.l9,7),t.Gf(I.YE,7)),2&e){let a;t.iGM(a=t.CRH())&&(s.child=a.first),t.iGM(a=t.CRH())&&(s.matSort=a.first)}},inputs:{servicesStatus:"servicesStatus",displayedColumns:"displayedColumns",selection:"selection",filterValue:"filterValue",tableId:"tableId",disableRouting:"disableRouting"},outputs:{selectionChange:"selectionChange"},features:[t.TTD],decls:27,vars:15,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","service.name","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","task.id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size",4,"matCellDef"],["matColumnDef","service.name"],["mat-cell","",4,"matCellDef"],["matColumnDef","status"],["matColumnDef","blocked"],["matColumnDef","task.startTime"],["matColumnDef","task.endTime"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","dark-hover-list-item",3,"disable-outline","make-yellow","make-green","make-red","cursor-pointer","routerLink","perunWebAppsMiddleClickRouterLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size align-checkbox",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"checked","indeterminate","aria-label","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"checked","aria-label","click","change"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],[4,"ngIf"],["mat-cell",""],["class","align-text-bottom ml-1",3,"matTooltip",4,"ngIf"],[1,"align-text-bottom","ml-1",3,"matTooltip"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"routerLink","perunWebAppsMiddleClickRouterLink"],["alert_type","warn"]],template:function(e,s){1&e&&(t.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportDisplayedData",function(o){return s.exportDisplayedData(o)})("exportAllData",function(o){return s.exportAllData(o)}),t.TgZ(2,"table",2),t.YNc(3,Gs,3,0,"ng-container",3),t.ALo(4,"isAllSelected"),t.ynx(5,4),t.YNc(6,Ps,3,3,"th",5),t.YNc(7,Bs,3,2,"td",6),t.BQk(),t.ynx(8,7),t.YNc(9,js,3,3,"th",5),t.YNc(10,Ks,2,2,"td",8),t.BQk(),t.ynx(11,9),t.YNc(12,zs,3,3,"th",5),t.YNc(13,Ws,3,2,"td",8),t.BQk(),t.ynx(14,10),t.YNc(15,Xs,3,3,"th",5),t.YNc(16,ta,3,3,"td",8),t.BQk(),t.ynx(17,11),t.YNc(18,ea,3,3,"th",5),t.YNc(19,aa,3,2,"td",8),t.BQk(),t.ynx(20,12),t.YNc(21,na,3,3,"th",5),t.YNc(22,ca,3,2,"td",8),t.BQk(),t.YNc(23,ra,1,0,"tr",13),t.YNc(24,ua,1,18,"tr",14),t.qZA()()(),t.YNc(25,pa,3,3,"perun-web-apps-alert",15),t.YNc(26,da,3,3,"perun-web-apps-alert",15)),2&e&&(t.Q6J("hidden",0===s.dataSource.filteredData.length||0===s.servicesStatus.length),t.xp6(1),t.Q6J("tableId",s.tableId)("dataLength",s.dataSource.filteredData.length)("pageSizeOptions",s.pageSizeOptions),t.xp6(1),t.Q6J("dataSource",s.dataSource),t.xp6(1),t.Q6J("ngIf",t.VKq(13,_a,t.xi3(4,10,s.dataSource,s.selection.selected.length))),t.xp6(20),t.Q6J("matHeaderRowDef",s.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",s.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===s.dataSource.filteredData.length&&0!==s.servicesStatus.length),t.xp6(1),t.Q6J("ngIf",0===s.servicesStatus.length))},dependencies:[m.O5,O.oG,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.ge,c.ev,c.XQ,c.Gk,v.rH,I.YE,I.nU,R.w,F.Hw,Q.gM,w.l,Z.YH,Z.QG,m.uU,f.X$,Ms,Y.I,U.G,M.r],styles:[".disable-outline[_ngcontent-%COMP%]{outline:none!important}.make-green[_ngcontent-%COMP%]{background-color:#c4ffcb}.make-yellow[_ngcontent-%COMP%]{background-color:#fffde7}.make-red[_ngcontent-%COMP%]{background-color:#ffcdd2}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),i})();function ha(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.forcePropagation())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"FACILITY_DETAIL.SERVICES_STATUS.FORCE_PROPAGATION")," ")}}function fa(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.allow())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selected.selected.length||e.disableAllowButton),t.xp6(1),t.hij(" ",t.lcZ(2,2,"FACILITY_DETAIL.SERVICES_STATUS.ALLOW")," ")}}function ga(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.block())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selected.selected.length||e.disableBlockButton),t.xp6(1),t.hij(" ",t.lcZ(2,2,"FACILITY_DETAIL.SERVICES_STATUS.BLOCK")," ")}}function Ta(i,n){if(1&i&&(t.TgZ(0,"button",13),t.ALo(1,"translate"),t._uU(2),t.ALo(3,"translate"),t.qZA()),2&i){const e=t.oxw(),s=t.MAs(10);t.s9C("matTooltip",t.lcZ(1,5,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DISABLED")),t.Q6J("disabled",e.disableRemoveButton)("matMenuTriggerFor",s)("matTooltipDisabled",!e.disableRemoveButton),t.xp6(2),t.hij(" ",t.lcZ(3,7,"FACILITY_DETAIL.SERVICES_STATUS.REMOVE")," ")}}function Sa(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.removeTaskResults())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"FACILITY_DETAIL.SERVICES_STATUS.REMOVE_TASK_RESULTS")," "))}function Ca(i,n){1&i&&t._UZ(0,"mat-spinner",14)}function Aa(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"perun-web-apps-services-status-list",15),t.NdJ("selectionChange",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.selectionChanged())}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disableRouting",!e.routeAuth)("filterValue",e.filterValue)("servicesStatus",e.servicesStates)("selection",e.selected)("tableId",e.tableId)}}let Ia=(()=>{class i{constructor(e,s,a,o,r,_,T,b,L){this.tasksManager=e,this.servicesManager=s,this.notificator=a,this.translate=o,this.authResolver=r,this.facilityManager=_,this.resourcesManager=T,this.dialog=b,this.entityStorageService=L,this.servicesStates=[],this.selected=new A.Ov(!0,[]),this.filterValue="",this.tableId=x.oK,this.disableAllowButton=!0,this.disableBlockButton=!0,this.disableRemoveButton=!0,o.get("FACILITY_DETAIL.SERVICES_STATUS.SUCCESS_FORCE_PROPAGATION").subscribe(y=>this.successFPMessage=y),o.get("FACILITY_DETAIL.SERVICES_STATUS.SUCCESS_ALLOW").subscribe(y=>this.successAllowMessage=y),o.get("FACILITY_DETAIL.SERVICES_STATUS.SUCCESS_BLOCK").subscribe(y=>this.successBlockMessage=y),o.get("FACILITY_DETAIL.SERVICES_STATUS.SUCCESS_DELETE").subscribe(y=>this.successDeleteMessage=y),o.get("FACILITY_DETAIL.SERVICES_STATUS.ALREADY_DELETED").subscribe(y=>this.allreadyDeletedMessage=y)}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.setAuthRights(),this.refreshTable()}forcePropagation(){for(const e of this.selected.selected)this.servicesManager.forceServicePropagation(e.service.id,e.facility.id).subscribe(()=>{this.refreshTable(),this.notificator.showSuccess(this.successFPMessage)})}allow(){for(const e of this.selected.selected)this.servicesManager.unblockServiceOnFacility(e.service.id,e.facility.id).subscribe(()=>{this.refreshTable(),this.notificator.showSuccess(this.successAllowMessage)})}block(){for(const e of this.selected.selected)this.servicesManager.blockServiceOnFacility(e.service.id,e.facility.id).subscribe(()=>{this.refreshTable(),this.notificator.showSuccess(this.successBlockMessage)})}removeTaskResults(){this.tasksManager.getTaskResultsForGUIByTask(this.selected.selected[0].task.id).subscribe(e=>{const s=(0,p.kZ)();s.width="600px",s.data={theme:"facility-theme",taskResults:e},this.dialog.open(Tt,s)})}removeServiceFromFacility(){this.facilityManager.getAssignedResourcesByAssignedServiceForFacility(this.selected.selected[0].facility.id,this.selected.selected[0].service.id).subscribe(e=>{const s=(0,p.kZ)();s.width="600px",this.taskId=this.taskIsNull?null:this.selected.selected[0].task.id,0===e.length?(s.data={theme:"facility-theme",taskId:this.taskId},this.dialog.open(Us,s).afterClosed().subscribe(o=>{o&&(this.disableRemoveButton=!0,this.refreshTable())})):this.resourcesManager.getRichResourcesByIds(e.map(a=>a.id)).subscribe(a=>{s.data={theme:"facility-theme",taskId:this.taskId,serviceId:this.selected.selected[0].service.id,facilityId:this.selected.selected[0].facility.id,resource:a},this.dialog.open(ks,s).afterClosed().subscribe(r=>{r&&(this.disableRemoveButton=!0,this.refreshTable())})})})}refreshTable(){this.loading=!0,this.tasksManager.getFacilityServicesState(this.facility.id).subscribe(e=>{this.servicesStates=e,this.selected.clear(),this.setAuthRights(),this.loading=!1})}setAuthRights(){this.propagationAuth=this.authResolver.isAuthorized("forceServicePropagation_Facility_Service_policy",[this.facility]),this.blockAuth=this.authResolver.isAuthorized("blockServiceOnFacility_Service_Facility_policy",[this.facility]),this.allowAuth=this.authResolver.isAuthorized("unblockServiceOnFacility_Service_Facility_policy",[this.facility]),this.deleteAuth=this.authResolver.isAuthorized("deleteTask_Task_policy",[this.facility]),this.routeAuth=this.authResolver.isAuthorized("getTaskResultsByTask_int_policy",[this.facility])}applyFilter(e){this.filterValue=e}selectionChanged(){this.disableBlockButton=!0,this.disableAllowButton=!0,this.disableRemoveButton=1!==this.selected.selected.length,this.disableRemoveButton||(this.taskIsNull=null===this.selected.selected[0].task);for(const e of this.selected.selected)e.blockedOnFacility?this.disableAllowButton=!1:this.disableBlockButton=!1}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.Ob),t.Y36(h.KK),t.Y36(d.V6),t.Y36(f.sK),t.Y36(d.x4),t.Y36(h.IQ),t.Y36(h.xk),t.Y36(u.uw),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-service-status"]],decls:18,vars:14,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],["mat-flat-button","","class","mr-2 dropdown-toggle","color","warn",3,"disabled","matMenuTriggerFor","matTooltipDisabled","matTooltip",4,"ngIf"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableRouting","filterValue","servicesStatus","selection","tableId","selectionChange",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2",3,"disabled","click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],["mat-flat-button","","color","warn",1,"mr-2","dropdown-toggle",3,"disabled","matMenuTriggerFor","matTooltipDisabled","matTooltip"],[1,"ml-auto","mr-auto"],[3,"disableRouting","filterValue","servicesStatus","selection","tableId","selectionChange"]],template:function(e,s){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return s.refreshTable()}),t.qZA(),t.YNc(5,ha,3,4,"button",2),t.YNc(6,fa,3,4,"button",2),t.YNc(7,ga,3,4,"button",3),t.YNc(8,Ta,4,9,"button",4),t.TgZ(9,"mat-menu",null,5),t.YNc(11,Sa,3,3,"button",6),t.TgZ(12,"button",7),t.NdJ("click",function(){return s.removeServiceFromFacility()}),t._uU(13),t.ALo(14,"translate"),t.qZA()(),t.TgZ(15,"perun-web-apps-immediate-filter",8),t.NdJ("filter",function(o){return s.applyFilter(o)}),t.qZA(),t.YNc(16,Ca,1,0,"mat-spinner",9),t.YNc(17,Aa,1,5,"perun-web-apps-services-status-list",10),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,10,"FACILITY_DETAIL.SERVICES_STATUS.TITLE")),t.xp6(3),t.Q6J("ngIf",s.propagationAuth),t.xp6(1),t.Q6J("ngIf",s.allowAuth),t.xp6(1),t.Q6J("ngIf",s.blockAuth),t.xp6(1),t.Q6J("ngIf",s.deleteAuth),t.xp6(3),t.Q6J("ngIf",!s.taskIsNull),t.xp6(2),t.hij(" ",t.lcZ(14,12,"FACILITY_DETAIL.SERVICES_STATUS.REMOVE_SERVICE_FROM_FACILITY")," "),t.xp6(2),t.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.TABLE_SEARCH"),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[m.O5,C.lW,S.Ou,Q.gM,z.VK,z.OP,z.p6,E.t,D.L,ma,f.X$]}),i})();var ba=l(25610),ya=l(76023);function va(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"th",21)(1,"mat-checkbox",22),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(a?o.masterToggle():null)}),t.ALo(2,"translate"),t.ALo(3,"masterCheckboxLabel"),t.qZA()()}if(2&i){const e=t.oxw().ngIf,s=t.oxw();t.xp6(1),t.Q6J("aria-label",t.lcZ(2,3,t.lcZ(3,5,e.all)))("checked",s.selection.hasValue()&&e.all)("indeterminate",s.selection.hasValue()&&!e.all)}}const xa=function(i){return{name:i}};function Ea(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"td",23)(1,"mat-checkbox",24),t.NdJ("change",function(a){const r=t.CHM(e).$implicit,_=t.oxw(2);return t.KtG(a?_.selection.toggle(r):null)})("click",function(a){return a.stopPropagation()}),t.ALo(2,"translate"),t.ALo(3,"checkboxLabel"),t.qZA()()}if(2&i){const e=n.$implicit,s=t.oxw(2);t.xp6(1),t.Q6J("aria-label",t.xi3(2,2,t.lcZ(3,5,s.selection.isSelected(e)),t.VKq(7,xa,e.destination.destination)))("checked",s.selection.isSelected(e))}}function Da(i,n){1&i&&(t.ynx(0,18),t.YNc(1,va,4,7,"th",19),t.YNc(2,Ea,4,9,"td",20),t.BQk())}function La(i,n){1&i&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.RESULT_ID")," "))}function Za(i,n){if(1&i&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Oqu(e.id)}}function Oa(i,n){1&i&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.DESTINATION")," "))}function Ra(i,n){if(1&i&&(t.TgZ(0,"td",26),t.ALo(1,"multiWordDataCy"),t._uU(2),t.qZA()),2&i){const e=n.$implicit;t.uIk("data-cy",t.lcZ(1,2,e.destination.destination)),t.xp6(2),t.hij(" ",e.destination.destination," ")}}function Fa(i,n){1&i&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.TYPE")," "))}function Na(i,n){if(1&i&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e.destination.type.toUpperCase()," ")}}function ka(i,n){1&i&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.SERVICE")," "))}function wa(i,n){if(1&i&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e.service.name," ")}}function Ya(i,n){1&i&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.STATUS")," "))}function Ua(i,n){if(1&i&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e.status," ")}}function Ma(i,n){1&i&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.TIME")," "))}function Ja(i,n){if(1&i&&(t.TgZ(0,"td",26),t._uU(1),t.ALo(2,"date"),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,e.timestamp,"d.M.y H:mm:ss")," ")}}function Qa(i,n){1&i&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.RETURN_CODE")," "))}function Ha(i,n){if(1&i&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e.returnCode," ")}}function Ga(i,n){1&i&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.STANDARD_MESSAGE")," "))}function Pa(i,n){if(1&i&&(t.TgZ(0,"span"),t._uU(1),t._UZ(2,"br"),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Oqu(e)}}function qa(i,n){if(1&i&&(t.TgZ(0,"td",26),t.YNc(1,Pa,3,1,"span",27),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Q6J("ngForOf",e.standardMessage.split("\n"))}}function Va(i,n){1&i&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.ERROR_MESSAGE")," "))}function Ba(i,n){if(1&i&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e.errorMessage," ")}}function ja(i,n){1&i&&t._UZ(0,"tr",28)}function Ka(i,n){if(1&i&&t._UZ(0,"tr",29),2&i){const e=n.$implicit;t.ekj("greenTableItem","DONE"===e.status)("redTableItem","ERROR"===e.status||"DENIED"===e.status)("yellowTableItem","WARNING"===e.status)}}function za(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",30),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function $a(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",30),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.NO_RESULTS_WARNING"),"\n"))}const Wa=function(i){return{all:i}};let Xa=(()=>{class i{constructor(e,s){this.authResolver=e,this.tableCheckbox=s,this.taskResults=[],this.selection=new A.Ov(!0,[]),this.displayedColumns=["select","id","destination","type","service","status","time","returnCode","standardMessage","errorMessage"],this.pageSizeOptions=p.f7}set matSort(e){this.sort=e,this.setDataSource()}static getSortDataForColumn(e,s){switch(s){case"id":return e.id.toString();case"destination":return e.destination.destination;case"type":return e.destination.type;case"service":return e.service.name;case"status":return e.status;case"time":return(0,m.p6)(e.timestamp.toString(),"yyyy.MM.dd HH:mm:ss","en");case"returnCode":return e.returnCode.toString();case"standardMessage":return e.standardMessage;case"errorMessage":return e.errorMessage;default:return""}}static getDataForColumn(e,s){switch(s){case"id":return e.id.toString();case"destination":return e.destination.destination;case"type":return e.destination.type;case"service":return e.service.name;case"status":return e.status;case"time":return(0,m.p6)(e.timestamp.toString(),"d.M.y H:mm:ss","en");case"returnCode":return e.returnCode.toString();case"standardMessage":return e.standardMessage;case"errorMessage":return e.errorMessage;default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"id"!==e)),this.dataSource=new c.by(this.taskResults),this.setDataSource(),this.dataSource.filter=this.filterValue}exportAllData(e){(0,p.O6)((0,p.Xn)(this.dataSource.filteredData,this.displayedColumns,i.getDataForColumn),e)}exportDisplayedData(e){const s=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,a=s+this.dataSource.paginator.pageSize;(0,p.O6)((0,p.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(s,a),this.displayedColumns,i.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue,this.dataSource.filterPredicate=(e,s)=>(0,p.Sd)(e,s,this.displayedColumns,i.getDataForColumn),this.dataSource.sortData=(e,s)=>(0,p.pR)(e,s,i.getSortDataForColumn))}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(d.x4),t.Y36(d.UA))},i.\u0275cmp=t.Xpm({type:i,selectors:[["perun-web-apps-task-results-list"]],viewQuery:function(e,s){if(1&e&&(t.Gf(p.l9,7),t.Gf(I.YE,7)),2&e){let a;t.iGM(a=t.CRH())&&(s.child=a.first),t.iGM(a=t.CRH())&&(s.matSort=a.first)}},inputs:{taskResults:"taskResults",selection:"selection",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns"},features:[t.TTD],decls:36,vars:15,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","time","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","destination"],["matColumnDef","type"],["matColumnDef","service"],["matColumnDef","status"],["matColumnDef","time"],["matColumnDef","returnCode"],["matColumnDef","standardMessage"],["matColumnDef","errorMessage"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"greenTableItem","redTableItem","yellowTableItem",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],[4,"ngFor","ngForOf"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,s){1&e&&(t.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportDisplayedData",function(o){return s.exportDisplayedData(o)})("exportAllData",function(o){return s.exportAllData(o)}),t.TgZ(2,"table",2),t.YNc(3,Da,3,0,"ng-container",3),t.ALo(4,"isAllSelected"),t.ynx(5,4),t.YNc(6,La,3,3,"th",5),t.YNc(7,Za,2,1,"td",6),t.BQk(),t.ynx(8,7),t.YNc(9,Oa,3,3,"th",5),t.YNc(10,Ra,3,4,"td",6),t.BQk(),t.ynx(11,8),t.YNc(12,Fa,3,3,"th",5),t.YNc(13,Na,2,1,"td",6),t.BQk(),t.ynx(14,9),t.YNc(15,ka,3,3,"th",5),t.YNc(16,wa,2,1,"td",6),t.BQk(),t.ynx(17,10),t.YNc(18,Ya,3,3,"th",5),t.YNc(19,Ua,2,1,"td",6),t.BQk(),t.ynx(20,11),t.YNc(21,Ma,3,3,"th",5),t.YNc(22,Ja,3,4,"td",6),t.BQk(),t.ynx(23,12),t.YNc(24,Qa,3,3,"th",5),t.YNc(25,Ha,2,1,"td",6),t.BQk(),t.ynx(26,13),t.YNc(27,Ga,3,3,"th",5),t.YNc(28,qa,2,1,"td",6),t.BQk(),t.ynx(29,14),t.YNc(30,Va,3,3,"th",5),t.YNc(31,Ba,2,1,"td",6),t.BQk(),t.YNc(32,ja,1,0,"tr",15),t.YNc(33,Ka,1,6,"tr",16),t.qZA()()(),t.YNc(34,za,3,3,"perun-web-apps-alert",17),t.YNc(35,$a,3,3,"perun-web-apps-alert",17)),2&e&&(t.Q6J("hidden",0===s.dataSource.filteredData.length||0===s.taskResults.length),t.xp6(1),t.Q6J("tableId",s.tableId)("dataLength",s.dataSource.filteredData.length)("pageSizeOptions",s.pageSizeOptions),t.xp6(1),t.Q6J("dataSource",s.dataSource),t.xp6(1),t.Q6J("ngIf",t.VKq(13,Wa,t.xi3(4,10,s.dataSource,s.selection.selected.length))),t.xp6(29),t.Q6J("matHeaderRowDef",s.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",s.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===s.dataSource.filteredData.length&&0!==s.taskResults.length),t.xp6(1),t.Q6J("ngIf",0===s.taskResults.length))},dependencies:[m.sg,m.O5,O.oG,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.ge,c.ev,c.XQ,c.Gk,I.YE,I.nU,R.w,w.l,m.uU,f.X$,_t.R,Y.I,U.G,M.r],styles:[".greenTableItem[_ngcontent-%COMP%]{background-color:#c4ffcb}.yellowTableItem[_ngcontent-%COMP%]{background-color:#fffde7}.redTableItem[_ngcontent-%COMP%]{background-color:#ffcdd2}"]}),i})();function tn(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.removeTaskResult())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"FACILITY_DETAIL.TASK_RESULTS.REMOVE"),"\n")}}function en(i,n){1&i&&t._UZ(0,"mat-spinner",8)}function sn(i,n){if(1&i&&t._UZ(0,"perun-web-apps-task-results-list",9),2&i){const e=t.oxw();t.Q6J("tableId",e.tableId)("displayedColumns",e.displayedColumns)("filterValue",e.filterValue)("selection",e.selection)("taskResults",e.taskResults)}}let an=(()=>{class i{constructor(e,s,a,o,r){this.route=e,this.taskManager=s,this.authResolver=a,this.dialog=o,this.entityStorageService=r,this.loading=!1,this.filterValue="",this.selection=new A.Ov(!0,[]),this.task={id:0},this.tableId=x.e5,this.displayedColumns=["select","id","destination","type","service","status","time","returnCode","standardMessage","errorMessage"],this.removeAuth=!1}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.removeAuth=this.authResolver.isAuthorized("deleteTask_Task_policy",[this.facility]),this.removeAuth||(this.displayedColumns=["id","destination","type","service","status","time","returnCode","standardMessage","errorMessage"]),this.route.params.subscribe(e=>{this.taskId=Number(e.taskId),this.taskManager.getTaskById(this.taskId).subscribe(s=>{this.task=s,this.refreshTable()})})}refreshTable(){this.loading=!0,this.taskManager.getTaskResultsForGUIByTask(this.taskId).subscribe(e=>{this.selection.clear(),this.taskResults=e,this.loading=!1})}removeTaskResult(){const e=(0,p.kZ)();e.width="600px",e.data={theme:"facility-theme",taskResults:this.selection.selected},this.dialog.open(Tt,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}applyFilter(e){this.filterValue=e}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(v.gz),t.Y36(h.Ob),t.Y36(d.x4),t.Y36(u.uw),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-task-results"]],decls:10,vars:9,consts:[[1,"page-subtitle"],[1,"text-muted"],[3,"refresh"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"tableId","displayedColumns","filterValue","selection","taskResults",4,"ngIf"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"tableId","displayedColumns","filterValue","selection","taskResults"]],template:function(e,s){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"span",1),t._uU(4),t.qZA()(),t.TgZ(5,"perun-web-apps-refresh-button",2),t.NdJ("refresh",function(){return s.refreshTable()}),t.qZA(),t.YNc(6,tn,3,4,"button",3),t.TgZ(7,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(o){return s.applyFilter(o)}),t.qZA(),t.YNc(8,en,1,0,"mat-spinner",5),t.YNc(9,sn,1,5,"perun-web-apps-task-results-list",6)),2&e&&(t.xp6(1),t.AsE(" ",t.lcZ(2,7,"FACILITY_DETAIL.TASK_RESULTS.TITLE")," - ",s.task.service?s.task.service.name:""," "),t.xp6(3),t.hij(" \xa0#",s.task.id," "),t.xp6(2),t.Q6J("ngIf",s.removeAuth),t.xp6(1),t.Q6J("placeholder","FACILITY_DETAIL.TASK_RESULTS.FILTER"),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[m.O5,C.lW,S.Ou,E.t,D.L,Xa,f.X$]}),i})();var nn=l(20872);let on=(()=>{class i{constructor(e,s){this.dialogRef=e,this.data=s,this.theme=""}ngOnInit(){this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}onSkip(){this.dialogRef.close(!0)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-no-service-dialog"]],decls:14,vars:15,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["matDialogActions",""],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,s){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",1),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"div",2)(8,"button",3),t.NdJ("click",function(){return s.onCancel()}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"button",4),t.NdJ("click",function(){return s.onSkip()}),t._uU(12),t.ALo(13,"translate"),t.qZA()()()),2&e&&(t.Tol(s.theme),t.xp6(2),t.Oqu(t.lcZ(3,7,"DIALOGS.NO_SERVICE.TITLE")),t.xp6(3),t.hij(" ",t.lcZ(6,9,"DIALOGS.NO_SERVICE.INFO")," "),t.xp6(4),t.hij(" ",t.lcZ(10,11,"DIALOGS.NO_SERVICE.CANCEL")," "),t.xp6(3),t.hij(" ",t.lcZ(13,13,"DIALOGS.NO_SERVICE.SKIP")," "))},dependencies:[C.lW,u.uh,u.xY,u.H8,f.X$]}),i})(),ln=(()=>{class i{constructor(e,s){this.dialogRef=e,this.data=s,this.theme=""}ngOnInit(){this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}onSkip(){this.dialogRef.close(!0)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-config-unsaved-dialog"]],decls:14,vars:15,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["matDialogActions",""],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,s){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",1),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"div",2)(8,"button",3),t.NdJ("click",function(){return s.onCancel()}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"button",4),t.NdJ("click",function(){return s.onSkip()}),t._uU(12),t.ALo(13,"translate"),t.qZA()()()),2&e&&(t.Tol(s.theme),t.xp6(2),t.Oqu(t.lcZ(3,7,"DIALOGS.CONFIG_UNSAVED.TITLE")),t.xp6(3),t.hij(" ",t.lcZ(6,9,"DIALOGS.CONFIG_UNSAVED.INFO")," "),t.xp6(4),t.hij(" ",t.lcZ(10,11,"DIALOGS.CONFIG_UNSAVED.CANCEL")," "),t.xp6(3),t.hij(" ",t.lcZ(13,13,"DIALOGS.CONFIG_UNSAVED.SKIP")," "))},dependencies:[C.lW,u.uh,u.xY,u.H8,f.X$]}),i})();function cn(i,n){if(1&i&&(t.TgZ(0,"div",3),t._UZ(1,"i",4),t.ALo(2,"translate"),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("innerHTML",t.lcZ(2,1,e.info),t.oJD)}}function rn(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.onKeep())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CANCEL_CONFIG.KEEP")," "))}function un(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",5)(1,"button",6),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onCancel())}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"button",7),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onDelete())}),t.TgZ(5,"mat-icon"),t._uU(6," warning "),t.qZA(),t._uU(7),t.ALo(8,"translate"),t.qZA(),t.YNc(9,rn,3,3,"button",8),t.qZA()}if(2&i){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,3,"DIALOGS.CANCEL_CONFIG.CANCEL")," "),t.xp6(5),t.hij(" ",t.lcZ(8,5,"DIALOGS.CANCEL_CONFIG.DELETE")," "),t.xp6(2),t.Q6J("ngIf",!e.lastStep)}}let pn=(()=>{class i{constructor(e,s,a,o,r){this.dialogRef=e,this.data=s,this.facilityService=a,this.notificator=o,this.translate=r,this.theme="",this.title="",this.info="",this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.lastStep=this.data.lastStep,this.lastStep?(this.title="DIALOGS.CANCEL_CONFIG.TITLE_COMPLETE",this.info="DIALOGS.CANCEL_CONFIG.INFO_COMPLETE"):(this.title="DIALOGS.CANCEL_CONFIG.TITLE_INCOMPLETE",this.info="DIALOGS.CANCEL_CONFIG.INFO_INCOMPLETE")}onCancel(){this.dialogRef.close(!1)}onDelete(){this.loading=!0,this.facilityService.deleteFacility(this.data.facilityId,!0).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.CANCEL_CONFIG.SUCCESS")),this.dialogRef.close(!0),this.loading=!1},()=>this.loading=!1)}onKeep(){this.dialogRef.close(!0)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(h.IQ),t.Y36(d.V6),t.Y36(f.sK))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-cancel-configuration-dialog"]],decls:6,vars:8,consts:[["mat-dialog-title",""],["mat-dialog-content","",4,"ngIf"],["matDialogActions","",4,"ngIf"],["mat-dialog-content",""],[3,"innerHTML"],["matDialogActions",""],["mat-flat-button","",1,"mr-2",3,"click"],["color","warn","mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["color","accent","mat-flat-button","",3,"click",4,"ngIf"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,s){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,cn,3,3,"div",1),t.YNc(5,un,10,7,"div",2),t.qZA()),2&e&&(t.Tol(s.theme),t.xp6(2),t.Oqu(t.lcZ(3,6,s.title)),t.xp6(2),t.Q6J("ngIf",!s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[m.O5,F.Hw,C.lW,u.uh,u.xY,u.H8,f.X$]}),i})();var q=l(86257),V=l(37084),dn=l(60205),_n=l(90439),mn=l(30540);const hn=["stepper"];function fn(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"FACILITY_CONFIGURATION.OWNERS"))}function gn(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"app-facility-settings-owners",14),t.NdJ("ownerEmitter",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.owners=a)}),t.qZA()}}function Tn(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"FACILITY_CONFIGURATION.HOSTS"))}function Sn(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"app-facility-hosts",15),t.NdJ("hostEmitter",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.hosts=a)}),t.qZA()}2&i&&t.Q6J("disableRouting",!0)}function Cn(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"FACILITY_CONFIGURATION.SERVICES"))}const An=function(){return["select","id","name","enabled","description"]};function In(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"h1",16),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-alert",17),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.TgZ(6,"div",18)(7,"perun-web-apps-immediate-filter",19),t.NdJ("filter",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.applyFilter(a))}),t.qZA(),t.TgZ(8,"perun-web-apps-service-package-search-select",20),t.NdJ("packageSelected",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.packagesSelected(a))}),t.qZA()(),t.TgZ(9,"app-services-list",21),t.NdJ("selectionChanged",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.singleServiceSelected())}),t.qZA()}if(2&i){const e=t.oxw();t.xp6(1),t.Oqu(t.lcZ(2,13,"FACILITY_CONFIGURATION.SERVICES")),t.xp6(3),t.hij(" ",t.lcZ(5,15,"FACILITY_CONFIGURATION.SERVICES_INFO")," "),t.xp6(3),t.Q6J("placeholder","FACILITY_CONFIGURATION.SERVICES_FILTER"),t.xp6(1),t.Q6J("disableAutoSelect",!0)("selectedPackage",e.selectedPackages)("multiple",!0)("servicePackages",e.servicePackages)("theme","facility-theme"),t.xp6(1),t.Q6J("disableRouting",!0)("displayedColumns",t.DdM(17,An))("selection",e.selection)("filterValue",e.filterValue)("services",e.services)}}function bn(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"FACILITY_CONFIGURATION.SERVICE_CONFIG"))}function yn(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"perun-web-apps-service-search-select",27),t.NdJ("serviceSelected",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(o.filterAttributes(a))}),t.qZA()}if(2&i){const e=t.oxw(2);t.Q6J("disableAutoSelect",!0)("services",e.selection.selected)("multiple",!0)("theme","facility-theme")}}function vn(i,n){1&i&&t._UZ(0,"mat-spinner",28)}function xn(i,n){if(1&i&&t._UZ(0,"perun-web-apps-attributes-list",29),2&i){const e=t.oxw(2);t.Q6J("emptyListText","FACILITY_CONFIGURATION.EMPTY_REQ_ATT")("attributes",e.filteredAttributes)("selection",e.attSelection)}}function En(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"h1",16),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-alert",17),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.TgZ(6,"div",18)(7,"button",22),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onRemoveAttributes())}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",23),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onSaveAttributes())}),t._uU(11),t.ALo(12,"translate"),t.qZA(),t.YNc(13,yn,1,4,"perun-web-apps-service-search-select",24),t.qZA(),t.YNc(14,vn,1,0,"mat-spinner",25),t.YNc(15,xn,1,3,"perun-web-apps-attributes-list",26)}if(2&i){const e=t.oxw(),s=t.MAs(5);t.xp6(1),t.Oqu(t.lcZ(2,9,"FACILITY_CONFIGURATION.SERVICE_CONFIG")),t.xp6(3),t.hij(" ",t.lcZ(5,11,"FACILITY_CONFIGURATION.ATT_INFO")," "),t.xp6(3),t.Q6J("disabled",0===e.attSelection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(9,13,"FACILITY_CONFIGURATION.REMOVE")," "),t.xp6(2),t.Q6J("disabled",0===e.attSelection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(12,15,"FACILITY_CONFIGURATION.SAVE")," "),t.xp6(2),t.Q6J("ngIf",s.selectedIndex===e.ATTRIBUTES_IDX),t.xp6(1),t.Q6J("ngIf",e.processing),t.xp6(1),t.Q6J("ngIf",!e.processing)}}function Dn(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"FACILITY_CONFIGURATION.DESTINATION_CONFIG"))}const Ln=function(){return["select","destinationId","service","warn","destination","type","propagationType"]};function Zn(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"app-perun-web-apps-facility-services-destinations",30),t.NdJ("destinationEmitter",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.destinations=a)}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("configServicesIds",e.serviceIds)("displayedColumns",t.DdM(5,Ln))("configServices",e.selection.selected)("loading",e.processing)("title","FACILITY_CONFIGURATION.DESTINATION_CONFIG")}}function On(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"FACILITY_CONFIGURATION.MANAGERS"))}function Rn(i,n){1&i&&t._UZ(0,"app-perun-web-apps-facility-settings-managers",31),2&i&&t.Q6J("disableRouting",!0)("disableSelf",!0)}function Fn(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"FACILITY_CONFIGURATION.SUMMARY"))}function Nn(i,n){1&i&&t._UZ(0,"mat-spinner",28)}const kn=function(){return["id","name","contact","type"]};function wn(i,n){if(1&i&&t._UZ(0,"perun-web-apps-owners-list",48),2&i){const e=t.oxw(3);t.Q6J("displayedColumns",t.DdM(2,kn))("owners",e.owners)}}function Yn(i,n){1&i&&t._UZ(0,"mat-spinner",28)}const Un=function(){return["id","name"]};function Mn(i,n){if(1&i&&t._UZ(0,"app-hosts-list",49),2&i){const e=t.oxw(3);t.Q6J("disableRouting",!0)("displayedColumns",t.DdM(3,Un))("hosts",e.hosts)}}function Jn(i,n){1&i&&t._UZ(0,"mat-spinner",28)}const Qn=function(){return["id","name","enabled","script","description"]},Hn=function(){return["id","displayName","value","description"]},Gn=function(){return["destinationId","service","warn","destination","type","propagationType"]},Pn=function(){return["id","vo","name","description"]},qn=function(){return["id","name","email","logins","organization"]};function Vn(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-accordion")(1,"mat-expansion-panel",34)(2,"mat-expansion-panel-header")(3,"mat-panel-title"),t._UZ(4,"mat-icon",35),t._uU(5),t.ALo(6,"translate"),t.qZA()(),t.TgZ(7,"h1",16),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.YNc(10,Nn,1,0,"mat-spinner",25),t.YNc(11,wn,1,3,"perun-web-apps-owners-list",36),t.qZA(),t.TgZ(12,"mat-expansion-panel",34)(13,"mat-expansion-panel-header")(14,"mat-panel-title"),t._UZ(15,"mat-icon",37),t._uU(16),t.ALo(17,"translate"),t.qZA()(),t.TgZ(18,"h1",16),t._uU(19),t.ALo(20,"translate"),t.qZA(),t.YNc(21,Yn,1,0,"mat-spinner",25),t.YNc(22,Mn,1,4,"app-hosts-list",38),t.qZA(),t.TgZ(23,"mat-expansion-panel",34)(24,"mat-expansion-panel-header")(25,"mat-panel-title"),t._UZ(26,"mat-icon",39),t._uU(27),t.ALo(28,"translate"),t.qZA()(),t.TgZ(29,"h1",16),t._uU(30),t.ALo(31,"translate"),t.qZA(),t._UZ(32,"app-services-list",40),t.qZA(),t.TgZ(33,"mat-expansion-panel",41),t.NdJ("opened",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.getNonEmptyAttributes())}),t.TgZ(34,"mat-expansion-panel-header")(35,"mat-panel-title"),t._UZ(36,"mat-icon",37),t._uU(37),t.ALo(38,"translate"),t.qZA()(),t.TgZ(39,"h1",16),t._uU(40),t.ALo(41,"translate"),t.qZA(),t._UZ(42,"perun-web-apps-attributes-list",42),t.qZA(),t.TgZ(43,"mat-expansion-panel",43),t.NdJ("expandedChange",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(o.destinationServiceMissing=a)}),t.TgZ(44,"mat-expansion-panel-header")(45,"mat-panel-title"),t._UZ(46,"mat-icon",44),t._uU(47),t.ALo(48,"translate"),t.qZA()(),t.TgZ(49,"h1",16),t._uU(50),t.ALo(51,"translate"),t.qZA(),t.YNc(52,Jn,1,0,"mat-spinner",25),t._UZ(53,"app-perun-web-apps-destination-list",45),t.qZA(),t.TgZ(54,"mat-expansion-panel")(55,"mat-expansion-panel-header")(56,"mat-panel-title"),t._UZ(57,"mat-icon",46),t._uU(58),t.ALo(59,"translate"),t.qZA()(),t._UZ(60,"app-managers-page",47),t.qZA()()}if(2&i){const e=t.oxw(2);t.Q6J("@.disabled",!0),t.xp6(1),t.Q6J("disabled",0===e.owners.length),t.xp6(1),t.ekj("cursor-default",0===e.owners.length),t.xp6(3),t.hij(" ",t.lcZ(6,49,"FACILITY_CONFIGURATION.OWNERS")," "),t.xp6(3),t.Oqu(t.lcZ(9,51,"FACILITY_CONFIGURATION.OWNERS")),t.xp6(2),t.Q6J("ngIf",e.processing),t.xp6(1),t.Q6J("ngIf",!e.processing),t.xp6(1),t.Q6J("disabled",0===e.hosts.length),t.xp6(1),t.ekj("cursor-default",0===e.hosts.length),t.xp6(3),t.hij(" ",t.lcZ(17,53,"FACILITY_CONFIGURATION.HOSTS")," "),t.xp6(3),t.Oqu(t.lcZ(20,55,"FACILITY_CONFIGURATION.HOSTS")),t.xp6(2),t.Q6J("ngIf",e.processing),t.xp6(1),t.Q6J("ngIf",!e.processing),t.xp6(1),t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.ekj("cursor-default",0===e.selection.selected.length),t.xp6(3),t.hij(" ",t.lcZ(28,57,"FACILITY_CONFIGURATION.SERVICES")," "),t.xp6(3),t.Oqu(t.lcZ(31,59,"FACILITY_CONFIGURATION.SERVICES")),t.xp6(2),t.Q6J("disableRouting",!0)("displayedColumns",t.DdM(71,Qn))("services",e.selection.selected),t.xp6(1),t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.ekj("cursor-default",0===e.selection.selected.length),t.xp6(3),t.hij(" ",t.lcZ(38,61,"FACILITY_CONFIGURATION.SERVICE_CONFIG")," "),t.xp6(3),t.Oqu(t.lcZ(41,63,"FACILITY_CONFIGURATION.ATTS")),t.xp6(2),t.Q6J("displayedColumns",t.DdM(72,Hn))("attributes",e.filteredAttributes)("emptyListText","FACILITY_CONFIGURATION.EMPTY_REQ_ATT"),t.xp6(1),t.Q6J("expanded",e.destinationServiceMissing)("disabled",0===e.selection.selected.length&&0===e.destinations.length),t.xp6(1),t.ekj("cursor-default",0===e.selection.selected.length&&0===e.destinations.length),t.xp6(3),t.hij(" ",t.lcZ(48,65,"FACILITY_CONFIGURATION.DESTINATION_CONFIG")," "),t.xp6(3),t.Oqu(t.lcZ(51,67,"FACILITY_CONFIGURATION.DESTINATION")),t.xp6(2),t.Q6J("ngIf",e.processing),t.xp6(1),t.Q6J("destinations",e.destinations)("displayedColumns",t.DdM(73,Gn))("services",e.serviceIds),t.xp6(5),t.hij(" ",t.lcZ(59,69,"FACILITY_CONFIGURATION.MANAGERS")," "),t.xp6(2),t.Q6J("complementaryObject",e.facility)("configMode",!0)("disableRouting",!0)("availableRoles",e.availableRoles)("complementaryObjectType","Facility")("displayedGroupColumns",t.DdM(74,Pn))("displayedUserColumns",t.DdM(75,qn))}}function Bn(i,n){if(1&i&&(t.TgZ(0,"perun-web-apps-alert",17),t._UZ(1,"i",32),t.ALo(2,"translate"),t.qZA(),t.YNc(3,Vn,61,76,"mat-accordion",33)),2&i){t.oxw();const e=t.MAs(5);t.xp6(1),t.Q6J("innerHTML",t.lcZ(2,2,"FACILITY_CONFIGURATION.SUMMARY_INFO"),t.oJD),t.xp6(2),t.Q6J("ngIf",e.selectedIndex===e.steps.length-1)}}function jn(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",50),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.back())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"FACILITY_CONFIGURATION.BACK")," "))}function Kn(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",51),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.next())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){t.oxw();const e=t.MAs(5);t.ekj("mr-2",void 0!==e&&0!==e.selectedIndex)("ml-auto",!(void 0!==e&&0!==e.selectedIndex)),t.xp6(1),t.hij(" ",t.lcZ(2,5,"FACILITY_CONFIGURATION.NEXT")," ")}}function zn(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",52),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onFinish())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"FACILITY_CONFIGURATION.FINISH")," "))}let $n=(()=>{class i{constructor(e,s,a,o,r,_,T,b,L,y){this.attributesManager=e,this.serviceManager=s,this.facilityService=a,this.cd=o,this.dialog=r,this.notificator=_,this.translate=T,this.router=b,this.guiAuthResolver=L,this.entityStorageService=y,this.processing=!1,this.filteredAttributes=[],this.attSelection=new A.Ov(!0,[]),this.services=[],this.serviceIds=new Set,this.servicePackages=[],this.selectedPackages=[],this.selection=new A.Ov(!0,[]),this.owners=[],this.hosts=[],this.destinations=[],this.destinationServiceMissing=!1,this.availableRoles=[],this.filterValue="",this.ATTRIBUTES_IDX=3,this.serviceControl=new g.p4(!1,g.kI.requiredTrue),this.attributesControl=new g.p4(!0,g.kI.requiredTrue),this.allowNavigate=!1,this.attributes=[],this.attributeIds=new Set,this.attributesPerService=new Map,this.servicesPerPackage=new Map,this.saveMsg="",this.removeMsg="",this.BEFORE_OPTIONAL_IDX=2,this.DESTINATIONS_IDX=4,this.AFTER_OPTIONAL_IDX=5,this.translate.get("FACILITY_CONFIGURATION.ATT_SAVED").subscribe(X=>this.saveMsg=X),this.translate.get("FACILITY_CONFIGURATION.ATT_REMOVED").subscribe(X=>this.removeMsg=X)}ngOnInit(){this.facility=this.entityStorageService.getEntity(),this.guiAuthResolver.assignAvailableRoles(this.availableRoles,"Facility"),this.serviceManager.getServicesPackages().subscribe(e=>{this.servicePackages=e,this.getServicePackageServices(e,0)})}ngAfterViewInit(){this.cd.detectChanges(),this.attSelection.changed.subscribe(()=>{this.attributesControl.setValue(0===this.attSelection.selected.length)})}onCancel(){const e=(0,p.kZ)();e.width="550px",e.data={facilityId:this.facility.id,lastStep:this.stepper.selectedIndex===this.stepper.steps.length-1,theme:"facility-theme"},this.dialog.open(pn,e).afterClosed().subscribe(a=>{a&&(this.allowNavigate=!0,sessionStorage.removeItem("newFacilityId"),this.router.navigate(["facilities"],{queryParamsHandling:"merge"}))})}packagesSelected(e){if(this.packageSelectionEqual(e))return;this.processing=!0;let s=new Set;if(e&&0!==e.length?s=this.setSymDif(this.selectedPackages,e):this.selectedPackages.forEach(r=>{this.servicesPerPackage.get(r.id).forEach(_=>s.add(_))}),0===s.size)return;const a=this.filterService(s,e.filter(r=>this.selectedPackages.findIndex(_=>_.id===r.id)<0)),o=this.filterService(s,this.selectedPackages.filter(r=>e.findIndex(_=>_.id===r.id)<0));for(const r of this.services)a.has(r.id)?this.selection.select(r):o.has(r.id)&&this.selection.deselect(r);this.selectedPackages=e,this.setServiceControl(),this.processing=!1}singleServiceSelected(){this.setServiceControl(),!this.processing&&this.checkPackageComplete()}back(){this.stepper.selectedIndex<=this.BEFORE_OPTIONAL_IDX&&this.setServiceControl(),this.stepper.selectedIndex===this.AFTER_OPTIONAL_IDX&&0===this.selection.selected.length?this.stepper.selectedIndex=this.BEFORE_OPTIONAL_IDX:this.stepper.previous()}onSaveAttributes(){return new Promise((e,s)=>{this.processing=!0,this.attributesManager.setFacilityAttributes({facility:this.facility.id,attributes:this.attSelection.selected}).subscribe({next:()=>{this.notificator.showSuccess(this.saveMsg),this.attSelection.clear(),this.processing=!1,e()},error:()=>{this.processing=!1,s()}})})}next(){this.checkDestinationDependency(this.stepper.selectedIndex),this.stepper.selectedIndex===this.BEFORE_OPTIONAL_IDX?0===this.selection.selected.length?this.openSkipDialog():(this.getRequiredAttributes(),this.stepper.next()):this.stepper.selectedIndex===this.ATTRIBUTES_IDX&&0!==this.attSelection.selected.length?this.openUnsavedAttsDialog():this.stepper.next()}onFinish(){this.allowNavigate=!0,sessionStorage.removeItem("newFacilityId"),this.router.navigate(["facilities",this.facility.id],{queryParamsHandling:"merge"})}onRemoveAttributes(){this.processing=!0;const e=this.attSelection.selected.map(s=>s.id);this.attributesManager.removeFacilityAttributes(this.facility.id,e).subscribe({next:()=>{this.notificator.showSuccess(this.removeMsg),this.getRequiredAttributes(),this.processing=!1},error:()=>this.processing=!1})}filterAttributes(e){if(void 0===e||0===e.length)return void(this.filteredAttributes=this.attributes);const s=new Set;for(const a of e)this.attributesPerService.get(a.id).forEach(o=>s.add(o));this.filteredAttributes=[];for(const a of this.attributes)s.has(a.id)&&this.filteredAttributes.push(a)}getNonEmptyAttributes(){this.filteredAttributes=this.attributes.filter(e=>{if(e.value&&(!Array.isArray(e.value)||0!==e.value.length))return e})}navigationStep(e){this.checkDestinationDependency(e.previouslySelectedIndex),e.selectedIndex===this.ATTRIBUTES_IDX?this.getRequiredAttributes():e.selectedIndex===this.DESTINATIONS_IDX?this.processing=!1:e.selectedIndex<=this.BEFORE_OPTIONAL_IDX&&this.setServiceControl()}applyFilter(e){this.filterValue=e}canDeactivate(){return this.allowNavigate||this.onCancel(),this.allowNavigate}getServicePackageServices(e,s){s===e.length?this.serviceManager.getServices().subscribe(a=>{this.services=a}):this.serviceManager.getServicesFromServicesPackage(e[s].id).subscribe(a=>{this.servicesPerPackage.set(e[s].id,new Set([...a.map(o=>o.id)])),this.getServicePackageServices(e,s+1)})}getServiceRequiredAttributes(e,s){s!==e.length&&this.attributesManager.getRequiredAttributesDefinition(e[s].id).subscribe(a=>{a=a.filter(o=>this.attributeIds.has(o.id)),this.attributesPerService.set(e[s].id,a.map(o=>o.id)),this.getServiceRequiredAttributes(e,s+1)})}setServiceControl(){this.serviceControl.setValue(0!==this.selection.selected.length)}buildServiceSet(e){const s=new Set;return e.forEach(a=>{this.servicesPerPackage.get(a.id).forEach(o=>s.add(o))}),s}setDiff(e,s){return new Set([...e].filter(a=>!s.has(a)))}setIntersect(e,s){return new Set([...e].filter(a=>s.has(a)))}setSymDif(e,s){const a=this.buildServiceSet(e),o=this.buildServiceSet(s),r=this.setDiff(a,o),_=this.setDiff(o,a);return new Set([...r,..._])}filterService(e,s){const a=new Set;for(const o of s){const r=this.setIntersect(e,this.servicesPerPackage.get(o.id));0!==r.size&&r.forEach(_=>a.add(_))}return a}packageSelectionEqual(e){return e.length===this.selectedPackages.length&&(e.forEach(s=>{if(-1===this.selectedPackages.findIndex(a=>a.id===s.id))return!1}),!0)}checkPackageComplete(){const e=[];for(const s of this.selectedPackages){let a=!0;for(const o of this.servicesPerPackage.get(s.id))if(-1===this.selection.selected.findIndex(r=>r.id===o)){a=!1;break}a&&e.push(s)}this.selectedPackages=e}openSkipDialog(){const e=(0,p.kZ)();e.width="400px",e.data={theme:"facility-theme"},this.dialog.open(on,e).afterClosed().subscribe(a=>{a&&(this.serviceControl.setValue(!0),this.stepper.selectedIndex=this.AFTER_OPTIONAL_IDX)})}getRequiredAttributes(){this.processing=!0,this.attributesManager.getRequiredAttributesFacilityServices(this.selection.selected.map(e=>e.id),this.facility.id).subscribe(e=>{this.attSelection.clear(),this.attributes=e.filter(s=>!(0,p.Hm)(s)),this.filteredAttributes=this.attributes,this.attributes.forEach(s=>this.attributeIds.add(s.id)),this.getServiceRequiredAttributes(this.selection.selected,0),this.processing=!1})}openUnsavedAttsDialog(){const e=(0,p.kZ)();e.width="400px",e.data={theme:"facility-theme"},this.dialog.open(ln,e).afterClosed().subscribe(a=>{a&&this.onSaveAttributes().then(()=>{this.stepper.next()},()=>this.getRequiredAttributes())})}checkDestinationDependency(e){(e===this.BEFORE_OPTIONAL_IDX||e===this.DESTINATIONS_IDX)&&(this.serviceIds=new Set([...this.selection.selected.map(s=>s.id)]),this.destinationServicePresent())}destinationServicePresent(){for(const e of this.destinations)if(!this.serviceIds.has(e.service.id))return void(this.destinationServiceMissing=!0);this.destinationServiceMissing=!1}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.H8),t.Y36(h.KK),t.Y36(h.IQ),t.Y36(t.sBO),t.Y36(u.uw),t.Y36(d.V6),t.Y36(f.sK),t.Y36(v.F0),t.Y36(d.x4),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-configuration-page"]],viewQuery:function(e,s){if(1&e&&t.Gf(hn,5),2&e){let a;t.iGM(a=t.CRH())&&(s.stepper=a.first)}},decls:34,vars:15,consts:[[1,"facility-theme"],[1,"page-title"],[3,"linear","selectionChange"],["stepper",""],["matStepLabel",""],["matStepContent",""],[3,"stepControl"],["optional","true",3,"editable","stepControl"],[3,"editable","optional"],[1,"actions"],["mat-flat-button","",3,"click"],["class","ml-auto mr-2","mat-flat-button","",3,"click",4,"ngIf"],["color","accent","mat-flat-button","",3,"mr-2","ml-auto","click",4,"ngIf"],["class","mr-2","color","accent","mat-flat-button","",3,"click",4,"ngIf"],[3,"ownerEmitter"],[3,"disableRouting","hostEmitter"],[1,"page-subtitle"],["alert_type","info"],[1,"filters"],[1,"filter",3,"placeholder","filter"],[1,"package-search-select",3,"disableAutoSelect","selectedPackage","multiple","servicePackages","theme","packageSelected"],[3,"disableRouting","displayedColumns","selection","filterValue","services","selectionChanged"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],["color","accent","mat-flat-button","",1,"mr-2",3,"disabled","click"],["class","service-search-select",3,"disableAutoSelect","services","multiple","theme","serviceSelected",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"emptyListText","attributes","selection",4,"ngIf"],[1,"service-search-select",3,"disableAutoSelect","services","multiple","theme","serviceSelected"],[1,"ml-auto","mr-auto"],[3,"emptyListText","attributes","selection"],[3,"configServicesIds","displayedColumns","configServices","loading","title","destinationEmitter"],[3,"disableRouting","disableSelf"],[3,"innerHTML"],[4,"ngIf"],[3,"disabled"],["svgIcon","perun-owner-grey",1,"mr-2"],[3,"displayedColumns","owners",4,"ngIf"],["svgIcon","perun-hosts",1,"mr-2"],[3,"disableRouting","displayedColumns","hosts",4,"ngIf"],["svgIcon","perun-service",1,"mr-2"],[3,"disableRouting","displayedColumns","services"],[3,"disabled","opened"],[3,"displayedColumns","attributes","emptyListText"],[3,"expanded","disabled","expandedChange"],["svgIcon","perun-service_destination",1,"mr-2"],[3,"destinations","displayedColumns","services"],["svgIcon","perun-manager",1,"mr-2"],[3,"complementaryObject","configMode","disableRouting","availableRoles","complementaryObjectType","displayedGroupColumns","displayedUserColumns"],[3,"displayedColumns","owners"],[3,"disableRouting","displayedColumns","hosts"],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["color","accent","mat-flat-button","",3,"click"],["color","accent","mat-flat-button","",1,"mr-2",3,"click"]],template:function(e,s){if(1&e&&(t.TgZ(0,"div",0)(1,"div",1),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-stepper",2,3),t.NdJ("selectionChange",function(o){return s.navigationStep(o)}),t.TgZ(6,"mat-step"),t.YNc(7,fn,2,3,"ng-template",4),t.YNc(8,gn,1,0,"ng-template",5),t.qZA(),t.TgZ(9,"mat-step"),t.YNc(10,Tn,2,3,"ng-template",4),t.YNc(11,Sn,1,1,"ng-template",5),t.qZA(),t.TgZ(12,"mat-step",6),t.YNc(13,Cn,2,3,"ng-template",4),t.YNc(14,In,10,18,"ng-template",5),t.qZA(),t.TgZ(15,"mat-step",7),t.YNc(16,bn,2,3,"ng-template",4),t.YNc(17,En,16,17,"ng-template",5),t.qZA(),t.TgZ(18,"mat-step",8),t.YNc(19,Dn,2,3,"ng-template",4),t.YNc(20,Zn,1,6,"ng-template",5),t.qZA(),t.TgZ(21,"mat-step"),t.YNc(22,On,2,3,"ng-template",4),t.YNc(23,Rn,1,2,"ng-template",5),t.qZA(),t.TgZ(24,"mat-step"),t.YNc(25,Fn,2,3,"ng-template",4),t.YNc(26,Bn,4,4,"ng-template",5),t.qZA()(),t.TgZ(27,"div",9)(28,"button",10),t.NdJ("click",function(){return s.onCancel()}),t._uU(29),t.ALo(30,"translate"),t.qZA(),t.YNc(31,jn,3,3,"button",11),t.YNc(32,Kn,3,7,"button",12),t.YNc(33,zn,3,3,"button",13),t.qZA()()),2&e){const a=t.MAs(5);t.xp6(2),t.hij(" ",t.lcZ(3,11,"FACILITY_CONFIGURATION.TITLE")," "),t.xp6(2),t.Q6J("linear",!0),t.xp6(8),t.Q6J("stepControl",s.serviceControl),t.xp6(3),t.Q6J("editable",0!==s.selection.selected.length)("stepControl",s.attributesControl),t.xp6(3),t.Q6J("editable",0!==s.selection.selected.length||0!==s.destinations.length)("optional",0===s.destinations.length),t.xp6(11),t.hij(" ",t.lcZ(30,13,"FACILITY_CONFIGURATION.CANCEL")," "),t.xp6(2),t.Q6J("ngIf",void 0!==a&&0!==a.selectedIndex),t.xp6(1),t.Q6J("ngIf",void 0!==a&&a.selectedIndex!==a.steps.length-1),t.xp6(1),t.Q6J("ngIf",void 0!==a&&a.selectedIndex===a.steps.length-1)}},dependencies:[m.O5,F.Hw,C.lW,S.Ou,q.C0,q.VY,q.Vq,q.BY,V.pp,V.ib,V.yz,V.yK,ct.s,ut.q,ht,dn.Q,R.w,D.L,gt.p,K.Q,_n.F,mn.J,rt,pt,dt,ft,f.X$],styles:[".icon-scale[_ngcontent-%COMP%]{transform:scale(1.7);margin-left:.5rem;margin-top:-.6rem;margin-right:.9rem}.filters[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:baseline}.package-search-select[_ngcontent-%COMP%]{width:650px}.service-search-select[_ngcontent-%COMP%]{width:400px}.filter[_ngcontent-%COMP%]{width:350px;margin-right:20px}.actions[_ngcontent-%COMP%]{background-color:#fff;display:flex;padding:20px}.cursor-default[_ngcontent-%COMP%]{cursor:default}"]}),i})(),Ct=(()=>{class i{constructor(e){this.router=e}canActivate(e){return e.parent.params.facilityId===sessionStorage.getItem("newFacilityId")||(this.router.navigate(["/home"],{queryParamsHandling:"merge"}),!1)}canDeactivate(e){return e.canDeactivate()}}return i.\u0275fac=function(e){return new(e||i)(t.LFG(v.F0))},i.\u0275prov=t.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();var $=l(71992),W=l(64080),At=l(64901),Wn=l(11447),Xn=l(83370);let to=(()=>{class i{constructor(e,s,a,o,r){this.data=e,this.dialogRef=s,this.store=a,this.facilityService=o,this.notificator=r,this.selection=new A.Ov(!1,[]),this.loading=!1,this.attrNames=[W.r.USER_DEF_PREFERRED_MAIL].concat(this.store.getLoginAttributeNames()),this.displayedColumns=["select","id","name","email","logins"],this.tableId=x.bj,this.filter=""}ngOnInit(){this.selection.changed.subscribe(e=>{this.ban=this.data.bans.find(s=>s.userId===e.source.selected[0]?.id)})}cancel(){this.dialogRef.close(!1)}submitBan(e){this.ban?this.updateBan(e):this.banUser(e)}setFilter(e){this.filter=e,this.selection.clear()}banUser(e){this.loading=!0,this.facilityService.setFacilityBan({banOnFacility:{userId:this.selection.selected[0].id,facilityId:this.data.entityId,description:e.description,validityTo:e.validity,id:0,beanName:"BanOnVo"}}).subscribe({next:()=>{this.notificator.showSuccess("DIALOGS.ADD_BAN.SUCCESS_USER"),this.dialogRef.close(!0)},error:()=>this.loading=!1})}updateBan(e){this.loading=!0,this.facilityService.updateFacilityBan({banOnFacility:{id:this.ban.id,beanName:"BanOnFacility",facilityId:this.ban.facilityId,userId:this.ban.userId,description:e.description,validityTo:e.validity}}).subscribe({next:()=>{this.notificator.showSuccess("DIALOGS.UPDATE_BAN.SUCCESS"),this.dialogRef.close(!0)},error:()=>{this.loading=!1}})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.WI),t.Y36(u.so),t.Y36(d.d6),t.Y36(h.IQ),t.Y36(d.V6))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-add-facility-ban-dialog"]],decls:3,vars:12,consts:[[3,"loading","disabled","theme","ban","add","cancel"],[3,"placeholder","filter"],[3,"attrNames","selection","tableId","disableRouting","displayedColumns","searchString","facilityId"]],template:function(e,s){1&e&&(t.TgZ(0,"app-add-ban-dialog",0),t.NdJ("add",function(o){return s.submitBan(o)})("cancel",function(){return s.cancel()}),t.TgZ(1,"perun-web-apps-debounce-filter",1),t.NdJ("filter",function(o){return s.setFilter(o)}),t.qZA(),t._UZ(2,"perun-web-apps-users-dynamic-list",2),t.qZA()),2&e&&(t.Q6J("loading",s.loading)("disabled",0===s.selection.selected.length)("theme",s.data.theme)("ban",s.ban),t.xp6(1),t.Q6J("placeholder","DIALOGS.ADD_BAN.FILTER"),t.xp6(1),t.Q6J("attrNames",s.attrNames)("selection",s.selection)("tableId",s.tableId)("disableRouting",!0)("displayedColumns",s.displayedColumns)("searchString",s.filter)("facilityId",s.data.entityId))},dependencies:[At.P,Wn.M,Xn.u]}),i})();var eo=l(90979),io=l(91880);function so(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.add())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"FACILITY_DETAIL.SETTINGS.BANS.ADD"),"\n"))}function ao(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.remove())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"FACILITY_DETAIL.SETTINGS.BANS.REMOVE"),"\n")}}function no(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"perun-web-apps-ban-on-entity-list",10),t.NdJ("updateBan",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.update(a))}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("bans",e.bans)("selection",e.selection)("displayedColumns",e.displayedColumns)("filter",e.filter)("updatePolicy","updateBan_BanOnFacility_policy")}}function oo(i,n){1&i&&(t.TgZ(0,"div",11),t._UZ(1,"mat-spinner"),t.qZA())}let lo=(()=>{class i{constructor(e,s,a,o,r,_,T){this.facilityService=e,this.entityService=s,this.authResolver=a,this.dialog=o,this.notificator=r,this.store=_,this.userName=T,this.loading=!1,this.bans=[],this.removeAuth=!1,this.filter="",this.selection=new A.Ov(!1,[]),this.attrNames=[W.r.MEMBER_DEF_MAIL,W.r.USER_DEF_PREFERRED_MAIL].concat(this.store.getLoginAttributeNames()),this.displayedColumns=["select","banId","subjectId","subjectName","description","expiration","edit"]}ngOnInit(){this.loading=!0,this.facility=this.entityService.getEntity(),this.addAuth=this.authResolver.isAuthorized("setBan_BanOnFacility_policy",[this.facility]),this.removeAuth=this.authResolver.isAuthorized("removeBan_int_policy",[this.facility]),this.refresh()}refresh(){this.loading=!0,this.facilityService.getEnrichedBansForFacility(this.facility.id,this.attrNames).subscribe({next:e=>{this.bans=e,this.selection.clear(),this.loading=!1},error:()=>this.loading=!1})}add(){const e=(0,p.kZ)();e.width="850px",e.data={entityId:this.facility.id,theme:"facility-theme",bans:this.bans.map(a=>a.ban)},this.dialog.open(to,e).afterClosed().subscribe(a=>{a&&this.refresh()})}remove(){const e=(0,p.kZ)();e.width="550px",e.data={theme:"facility-theme",title:"DIALOGS.REMOVE_BAN.TITLE",description:"DIALOGS.REMOVE_BAN.DESCRIPTION",items:[this.userName.transform(this.selection.selected[0].user)],type:"remove",showAsk:!0},this.dialog.open(J.Ts,e).afterClosed().subscribe(a=>{a&&this.facilityService.removeFacilityBanById(this.selection.selected[0].ban.id).subscribe(()=>{this.notificator.showSuccess("DIALOGS.REMOVE_BAN.SUCCESS"),this.refresh()})})}update(e){const s=(0,p.kZ)();s.width="600px",s.data={ban:e.ban,theme:"facility-theme"},this.dialog.open(eo.G,s).afterClosed().subscribe(o=>{o&&this.refresh()})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.IQ),t.Y36(d.fb),t.Y36(d.x4),t.Y36(u.uw),t.Y36(d.V6),t.Y36(d.d6),t.Y36(N.dp))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-settings-bans"]],features:[t._Bn([N.dp])],decls:11,vars:8,consts:[[1,"page-subtitle"],[3,"click"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["color","warn","class","mr-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],[1,"mt-2","search-field",3,"placeholder","filter"],[1,"position-relative"],[3,"bans","selection","displayedColumns","filter","updatePolicy","updateBan",4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["spinner",""],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[3,"bans","selection","displayedColumns","filter","updatePolicy","updateBan"],[1,"spinner-container"]],template:function(e,s){if(1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-refresh-button",1),t.NdJ("click",function(){return s.refresh()}),t.qZA(),t.YNc(4,so,3,3,"button",2),t.YNc(5,ao,3,4,"button",3),t.TgZ(6,"perun-web-apps-debounce-filter",4),t.NdJ("filter",function(o){return s.filter=o}),t.qZA(),t.TgZ(7,"div",5),t.YNc(8,no,1,5,"perun-web-apps-ban-on-entity-list",6),t.qZA(),t.YNc(9,oo,2,0,"ng-template",null,7,t.W1O)),2&e){const a=t.MAs(10);t.xp6(1),t.hij(" ",t.lcZ(2,6,"FACILITY_DETAIL.SETTINGS.BANS.TITLE"),"\n"),t.xp6(3),t.Q6J("ngIf",s.addAuth),t.xp6(1),t.Q6J("ngIf",s.removeAuth),t.xp6(1),t.Q6J("placeholder","FACILITY_DETAIL.SETTINGS.BANS.FILTER"),t.xp6(2),t.Q6J("perunWebAppsLoader",s.loading)("perunWebAppsLoaderIndicator",a)}},dependencies:[m.O5,C.lW,S.Ou,E.t,At.P,Z.e5,io.s,f.X$]}),i})();var co=l(35265);const ro=[{path:"",component:et.P,canActivateChild:[$.a],children:[{path:"",component:et.P,data:{animation:"FacilitySelectPage"}}]},{path:":facilityId",component:Nt,canActivateChild:[$.a],children:[{path:"",component:Yt,data:{animation:"FacilityOverviewPage"}},{path:"attributes",component:Xt,data:{animation:"FacilityAttributesPage"}},{path:"resources",component:Ut.f,data:{animation:"FacilityResourcesPage"}},{path:"allowed-users",component:ba._,data:{animation:"FacilityAllowedUsersPage"}},{path:"allowed-groups",component:Mt.o,data:{animation:"FacilityAllowedGroupsPage"}},{path:"services-status",component:Ia,data:{animation:"FacilityServiceStatusPage"}},{path:"services-status/:taskId",component:an,data:{animation:"FacilityTaskResultsPage"}},{path:"service-config",component:me,data:{animation:"FacilityServiceConfigPage"}},{path:"services-destinations",component:pt,data:{animation:"FacilityServicesDestinationsPage"}},{path:"hosts",component:ft,data:{animation:"FacilityHostsPage"}},{path:"hosts/:hostId",component:$i,data:{animation:"FacilityHostsDetailPage"}},{path:"settings",component:Ht,children:[{path:"",component:qt,data:{animation:"FacilitySettingsOverviewPage"}},{path:"owners",component:dt,data:{animation:"FacilitySettingOwnersPage"}},{path:"managers",component:rt,data:{animation:"FacilitySettingsManagersPage"}},{path:"security-teams",component:fs,data:{animation:"FacilitySecurityTeamsPage"}},{path:"blacklist",component:Pi,data:{animation:"FacilitySettingsBlackListPage"}},{path:"bans",component:lo,data:{animation:"FacilitySettingsBansPage"}}]},{path:"configuration",component:$n,canActivate:[Ct],canDeactivate:[Ct]}]},{path:":facilityId/resources/:resourceId",component:Jt.b,canActivateChild:[$.a],children:[{path:"",component:Qt.H,data:{animation:"ResourceOverviewPage"}},{path:"attributes",component:ie.X,data:{animation:"ResourceAttributesPage"}},{path:"groups",component:se.K,data:{animation:"ResourceGroupsComponent"}},{path:"services",component:Ts.D,data:{animation:"ResourceAssignedServicesComponent"}},{path:"members",component:ya.y,data:{animation:"ResourceAssignedMembersComponent"}},{path:"tags",component:nn.v,data:{animation:"ResourceTagsComponent"}},{path:"settings",component:te.t,children:[{path:"",component:ee.h,data:{animation:"ResourceSettingsOverviewPage"}},{path:"managers",component:gs.O,data:{animation:"ResourceSettingsManagersPage"}},{path:"bans",component:co.I,data:{animation:"ResourceSettingsBansPage"}}]}]}];let uo=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[v.Bz.forChild(ro),v.Bz]}),i})();var po=l(14264),_o=l(63189),mo=l(38338),ho=l(82745);let fo=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({providers:[N.dp],imports:[m.ez,uo,po.m,_o.r,qi.ez,N.d4,mo.UsersModule,ho.AdminModule]}),i})()}}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/839.7b40c505f923811d.js b/dist/apps/admin-gui/839.7b40c505f923811d.js new file mode 100644 index 000000000..150c4d573 --- /dev/null +++ b/dist/apps/admin-gui/839.7b40c505f923811d.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin_gui=self.webpackChunkadmin_gui||[]).push([[839],{61283:(J,U,s)=>{s.d(U,{A:()=>b});var e=s(36769),d=s(94650),C=s(94364);let b=(()=>{class a{prepareRoute(n){return n?.activatedRouteData&&null!==n?.activatedRouteData.animation}}return a.\u0275fac=function(n){return new(n||a)},a.\u0275cmp=d.Xpm({type:a,selectors:[["app-animated-router-outlet"]],decls:3,vars:0,consts:[["outlet","outlet"]],template:function(n,D){1&n&&(d.TgZ(0,"div"),d._UZ(1,"router-outlet",null,0),d.qZA())},dependencies:[C.lC],data:{animation:[e.Ji]}}),a})()},71103:(J,U,s)=>{s.d(U,{n:()=>h});var e=s(65412),d=s(95017),C=s(81591),b=s(61744),a=s(10036),n=(s(37433),s(94650)),D=s(89383),t=s(36895),I=s(4859),P=s(51572),T=s(98380),Z=s(7434),M=s(53984);const A=["list"];function R(f,N){1&f&&(n.TgZ(0,"perun-web-apps-alert",10),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&f&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE.ERROR_EMPTY_VALUE")," "))}function u(f,N){1&f&&n._UZ(0,"mat-spinner",11)}function O(f,N){if(1&f&&n._UZ(0,"perun-web-apps-attributes-list",12,13),2&f){const _=n.oxw();n.Q6J("emptyListText","SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.EMPTY_ATTRIBUTES")("attributes",_.attributes)("filterValue",_.filterValue)("inDialog",!0)("selection",_.selected)("tableId",_.tableId)}}let h=(()=>{class f{constructor(_,E,l,y,S){this.dialogRef=_,this.data=E,this.attributesManager=l,this.notificator=y,this.translate=S,this.attributes=[],this.selected=new d.Ov(!0,[]),this.showError=!1,this.filterValue="",this.tableId=a.rF,this.translate.get("DIALOGS.CREATE_ATTRIBUTE.SUCCESS_SAVE").subscribe(F=>this.saveSuccessMessage=F)}ngOnInit(){const _=new Array;let E,l,y,S,F,W,g,x;switch(this.data.notEmptyAttributes.forEach(c=>{_.push(c.id)}),this.data.entity){case"member":E=this.data.entityId;break;case"user":l=this.data.entityId;break;case"vo":y=this.data.entityId;break;case"group":S=this.data.entityId;break;case"resource":F=this.data.entityId;break;case"facility":W=this.data.entityId;break;case"host":g=this.data.entityId;break;case"ues":x=this.data.entityId}switch(this.data.secondEntity){case"member":E=this.data.secondEntityId;break;case"user":l=this.data.secondEntityId;break;case"vo":y=this.data.secondEntityId;break;case"group":S=this.data.secondEntityId;break;case"resource":F=this.data.secondEntityId;break;case"facility":W=this.data.secondEntityId;break;case"host":g=this.data.secondEntityId;break;case"ues":x=this.data.secondEntityId}this.loading=!0,this.attributesManager.getAttributesDefinitionWithRights(E,l,y,S,F,W,g,x).subscribe(c=>{this.attributes=c,this.attributes=this.attributes.filter(o=>!_.includes(o.id)&&this.twoEntityValid(o)),this.loading=!1})}onCancel(){this.dialogRef.close()}onSave(){this.list.updateMapAttributes();let _=!1;for(const E of this.selected.selected)"java.util.ArrayList"===E.type&&0===E.value.length&&(_=!0),void 0===E.value&&(_=!0);if(_)return this.showError=!0,void setTimeout(()=>{this.showError=!1},5e3);switch(this.data.entity){case"facility":"user"===this.data.secondEntity?this.attributesManager.setUserFacilityAttributes({facility:this.data.entityId,user:this.data.secondEntityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()}):this.attributesManager.setFacilityAttributes({facility:this.data.entityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;case"group":"resource"===this.data.secondEntity?this.attributesManager.setGroupResourceAttributes({group:this.data.entityId,resource:this.data.secondEntityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()}):this.attributesManager.setGroupAttributes({group:this.data.entityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;case"member":switch(this.data.secondEntity){case"resource":this.attributesManager.setMemberResourceAttributes({member:this.data.entityId,resource:this.data.secondEntityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;case"group":this.attributesManager.setMemberGroupAttributes({member:this.data.entityId,group:this.data.secondEntityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;default:this.attributesManager.setMemberAttributes({member:this.data.entityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()})}break;case"resource":switch(this.data.secondEntity){case"member":this.attributesManager.setMemberResourceAttributes({resource:this.data.entityId,member:this.data.secondEntityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;case"group":this.attributesManager.setGroupResourceAttributes({resource:this.data.entityId,group:this.data.secondEntityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;default:this.attributesManager.setResourceAttributes({resource:this.data.entityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()})}break;case"user":"facility"===this.data.secondEntity?this.attributesManager.setUserFacilityAttributes({user:this.data.entityId,facility:this.data.secondEntityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()}):this.attributesManager.setUserAttributes({user:this.data.entityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;case"vo":this.attributesManager.setVoAttributes({vo:this.data.entityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;case"host":this.attributesManager.setHostAttributes({host:this.data.entityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;case"ues":this.attributesManager.setUserExtSourceAttributes({userExtSource:this.data.entityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()})}}applyFilter(_){this.filterValue=_}handleSuccess(){this.notificator.showSuccess(this.saveSuccessMessage),this.selected.clear(),this.dialogRef.close("saved")}twoEntityValid(_){return!this.data.secondEntity||_.entity===`${this.data.entity}_${this.data.secondEntity}`||_.entity===`${this.data.secondEntity}_${this.data.entity}`}}return f.\u0275fac=function(_){return new(_||f)(n.Y36(e.so),n.Y36(e.WI),n.Y36(b.H8),n.Y36(C.V6),n.Y36(D.sK))},f.\u0275cmp=n.Xpm({type:f,selectors:[["app-create-attribute-dialog"]],viewQuery:function(_,E){if(1&_&&n.Gf(A,5),2&_){let l;n.iGM(l=n.CRH())&&(E.list=l.first)}},decls:17,vars:17,consts:[["mat-dialog-title",""],[1,"page-subtitle"],["data-cy","filter-attributes",1,"font-size-1rem",3,"placeholder","filter"],["class","ml-3 font-size-1rem","alert_type","error",4,"ngIf"],["mat-dialog-content",""],["class","ml-auto mr-auto",4,"ngIf"],[3,"emptyListText","attributes","filterValue","inDialog","selection","tableId",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","data-cy","save-selected-attributes","mat-flat-button","",1,"ml-2",3,"disabled","click"],["alert_type","error",1,"ml-3","font-size-1rem"],[1,"ml-auto","mr-auto"],[3,"emptyListText","attributes","filterValue","inDialog","selection","tableId"],["list",""]],template:function(_,E){1&_&&(n.TgZ(0,"div")(1,"div",0)(2,"h1",1),n._uU(3),n.ALo(4,"translate"),n.qZA(),n.TgZ(5,"perun-web-apps-immediate-filter",2),n.NdJ("filter",function(y){return E.applyFilter(y)}),n.qZA(),n.YNc(6,R,3,3,"perun-web-apps-alert",3),n.qZA(),n.TgZ(7,"div",4),n.YNc(8,u,1,0,"mat-spinner",5),n.YNc(9,O,2,6,"perun-web-apps-attributes-list",6),n.qZA(),n.TgZ(10,"div",7)(11,"button",8),n.NdJ("click",function(){return E.onCancel()}),n._uU(12),n.ALo(13,"translate"),n.qZA(),n.TgZ(14,"button",9),n.NdJ("click",function(){return E.onSave()}),n._uU(15),n.ALo(16,"translate"),n.qZA()()()),2&_&&(n.Tol(E.data.style),n.xp6(3),n.Oqu(n.lcZ(4,11,"DIALOGS.CREATE_ATTRIBUTE.SET_NEW")),n.xp6(2),n.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.FILTER"),n.xp6(1),n.Q6J("ngIf",E.showError),n.xp6(2),n.Q6J("ngIf",E.loading),n.xp6(1),n.Q6J("ngIf",!E.loading),n.xp6(3),n.hij(" ",n.lcZ(13,13,"DIALOGS.CREATE_ATTRIBUTE.CANCEL")," "),n.xp6(2),n.Q6J("disabled",0===E.selected.selected.length),n.xp6(1),n.hij(" ",n.lcZ(16,15,"DIALOGS.CREATE_ATTRIBUTE.SAVE")," "))},dependencies:[t.O5,I.lW,e.uh,e.xY,e.H8,P.Ou,T.w,Z.L,M.p,D.X$],styles:[".font-size-1rem[_ngcontent-%COMP%]{font-size:1rem!important}"]}),f})()},61365:(J,U,s)=>{s.d(U,{k:()=>R});var e=s(65412),d=s(30671),C=s(81591),b=s(61744),a=s(94650),L=s(89383),n=s(36895),D=s(4859),t=s(51572);function I(u,O){1&u&&a._UZ(0,"mat-spinner",6)}function P(u,O){1&u&&a._UZ(0,"th",15)}function T(u,O){if(1&u&&(a.TgZ(0,"td",16),a._uU(1),a.qZA()),2&u){const h=O.$implicit;a.xp6(1),a.Oqu(h.displayName)}}function Z(u,O){1&u&&a._UZ(0,"tr",17)}function M(u,O){1&u&&a._UZ(0,"tr",18)}function A(u,O){if(1&u&&(a.TgZ(0,"div",7)(1,"div"),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.TgZ(4,"div",8),a._uU(5),a.ALo(6,"translate"),a.qZA(),a.TgZ(7,"table",9),a.ynx(8,10),a.YNc(9,P,1,0,"th",11),a.YNc(10,T,2,1,"td",12),a.BQk(),a.YNc(11,Z,1,0,"tr",13),a.YNc(12,M,1,0,"tr",14),a.qZA()()),2&u){const h=a.oxw();a.xp6(2),a.hij(" ",a.lcZ(3,5,"DIALOGS.DELETE_ATTRIBUTES.DESCRIPTION")," "),a.xp6(3),a.hij(" ",a.lcZ(6,7,"DIALOGS.DELETE_ATTRIBUTES.ASK")," "),a.xp6(2),a.Q6J("dataSource",h.dataSource),a.xp6(4),a.Q6J("matHeaderRowDef",h.displayedColumns),a.xp6(1),a.Q6J("matRowDefColumns",h.displayedColumns)}}let R=(()=>{class u{constructor(h,f,N,_,E){this.dialogRef=h,this.data=f,this.notificator=N,this.translate=_,this.attributesManager=E,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.dataSource=new d.by(this.data.attributes),this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}onSubmit(){const h=[];for(const N of this.data.attributes)h.push(N.id);const f={};switch(f[this.data.entity]=this.data.entityId,f.attributes=h,void 0!==this.data.secondEntity&&(f[this.data.secondEntity]=this.data.secondEntityId),this.loading=!0,this.data.entity){case"vo":this.attributesManager.removeVoAttributes(this.data.entityId,h).subscribe({next:()=>{this.onSuccess()},error:()=>this.loading=!1});break;case"group":"resource"===this.data.secondEntity?this.attributesManager.removeGroupResourceAttributes(this.data.entityId,this.data.secondEntityId,h).subscribe({next:()=>{this.onSuccess()},error:()=>this.loading=!1}):this.attributesManager.removeGroupAttributes(this.data.entityId,h).subscribe({next:()=>{this.onSuccess()},error:()=>this.loading=!1});break;case"user":"facility"===this.data.secondEntity?this.attributesManager.removeUserFacilityAttributes(this.data.entityId,this.data.secondEntityId,h).subscribe({next:()=>{this.onSuccess()},error:()=>this.loading=!1}):this.attributesManager.removeUserAttributes(this.data.entityId,h).subscribe({next:()=>{this.onSuccess()},error:()=>this.loading=!1});break;case"member":switch(this.data.secondEntity){case"resource":this.attributesManager.removeMemberResourceAttributes(this.data.entityId,this.data.secondEntityId,h).subscribe({next:()=>{this.onSuccess()},error:()=>this.loading=!1});break;case"group":this.attributesManager.removeMemberGroupAttributes(this.data.entityId,this.data.secondEntityId,h).subscribe({next:()=>{this.onSuccess()},error:()=>this.loading=!1});break;default:this.attributesManager.removeMemberAttributes(this.data.entityId,h).subscribe({next:()=>{this.onSuccess()},error:()=>this.loading=!1})}break;case"facility":"user"===this.data.secondEntity?this.attributesManager.removeUserFacilityAttributes(this.data.secondEntityId,this.data.entityId,h).subscribe({next:()=>{this.onSuccess()},error:()=>this.loading=!1}):this.attributesManager.removeFacilityAttributes(this.data.entityId,h).subscribe({next:()=>{this.onSuccess()},error:()=>this.loading=!1});break;case"host":this.attributesManager.removeHostAttributes(this.data.entityId,h).subscribe({next:()=>{this.onSuccess()},error:()=>this.loading=!1});break;case"ues":this.attributesManager.removeUesAttributes(this.data.entityId,h).subscribe({next:()=>{this.onSuccess()},error:()=>this.loading=!1});break;case"resource":switch(this.data.secondEntity){case"member":this.attributesManager.removeMemberResourceAttributes(this.data.secondEntityId,this.data.entityId,h).subscribe({next:()=>{this.onSuccess()},error:()=>this.loading=!1});break;case"group":this.attributesManager.removeGroupResourceAttributes(this.data.secondEntityId,this.data.entityId,h).subscribe({next:()=>{this.onSuccess()},error:()=>this.loading=!1});break;default:this.attributesManager.removeResourceAttributes(this.data.entityId,h).subscribe({next:()=>{this.onSuccess()},error:()=>this.loading=!1})}}}onSuccess(){this.translate.get("DIALOGS.DELETE_ATTRIBUTES.SUCCESS").subscribe(h=>{this.notificator.showSuccess(h),this.dialogRef.close(!0)})}}return u.\u0275fac=function(h){return new(h||u)(a.Y36(e.so),a.Y36(e.WI),a.Y36(C.V6),a.Y36(L.sK),a.Y36(b.H8))},u.\u0275cmp=a.Xpm({type:u,selectors:[["app-delete-attribute-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","data-cy","delete-attributes","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(h,f){1&h&&(a.TgZ(0,"div")(1,"h1",0),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.YNc(4,I,1,0,"mat-spinner",1),a.YNc(5,A,13,9,"div",2),a.TgZ(6,"div",3)(7,"button",4),a.NdJ("click",function(){return f.onCancel()}),a._uU(8),a.ALo(9,"translate"),a.qZA(),a.TgZ(10,"button",5),a.NdJ("click",function(){return f.onSubmit()}),a._uU(11),a.ALo(12,"translate"),a.qZA()()()),2&h&&(a.Tol(f.theme),a.xp6(2),a.Oqu(a.lcZ(3,9,"DIALOGS.DELETE_ATTRIBUTES.TITLE")),a.xp6(2),a.Q6J("ngIf",f.loading),a.xp6(1),a.Q6J("ngIf",!f.loading),a.xp6(3),a.hij(" ",a.lcZ(9,11,"DIALOGS.DELETE_ATTRIBUTES.CANCEL")," "),a.xp6(2),a.Q6J("disabled",f.loading),a.xp6(1),a.hij(" ",a.lcZ(12,13,"DIALOGS.DELETE_ATTRIBUTES.DELETE")," "))},dependencies:[n.O5,D.lW,d.BZ,d.fO,d.as,d.w1,d.Dz,d.nj,d.ge,d.ev,d.XQ,d.Gk,e.uh,e.xY,e.H8,t.Ou,L.X$]}),u})()},1415:(J,U,s)=>{s.d(U,{l:()=>P});var e=s(94650),d=s(37433),C=s(36895),b=s(4859),a=s(65412),L=s(51572),n=s(29926),D=s(89383);function t(T,Z){1&T&&e._UZ(0,"mat-spinner",7)}function I(T,Z){if(1&T&&e._UZ(0,"perun-web-apps-ban-specification",8),2&T){const M=e.oxw();e.Q6J("description",M.ban.description)("validity",M.ban.validityTo)}}let P=(()=>{class T{constructor(){this.loading=!1,this.cancel=new e.vpe,this.update=new e.vpe}updateBan(){this.update.emit({description:this.banForm.getDescription(),validity:this.banForm.getValidity()})}}return T.\u0275fac=function(M){return new(M||T)},T.\u0275cmp=e.Xpm({type:T,selectors:[["app-update-ban-dialog"]],viewQuery:function(M,A){if(1&M&&e.Gf(d.CZ,5),2&M){let R;e.iGM(R=e.CRH())&&(A.banForm=R.first)}},inputs:{loading:"loading",ban:"ban",theme:"theme"},outputs:{cancel:"cancel",update:"update"},decls:14,vars:14,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["class","ml-auto mr-auto",4,"ngIf"],[3,"description","validity",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["mat-flat-button","","color","accent",3,"click"],[1,"ml-auto","mr-auto"],[3,"description","validity"]],template:function(M,A){1&M&&(e.TgZ(0,"div")(1,"h1",0),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",1),e.YNc(5,t,1,0,"mat-spinner",2),e.YNc(6,I,1,2,"perun-web-apps-ban-specification",3),e.qZA(),e.TgZ(7,"div",4)(8,"button",5),e.NdJ("click",function(){return A.cancel.emit()}),e._uU(9),e.ALo(10,"translate"),e.qZA(),e.TgZ(11,"button",6),e.NdJ("click",function(){return A.updateBan()}),e._uU(12),e.ALo(13,"translate"),e.qZA()()()),2&M&&(e.Tol(A.theme),e.xp6(2),e.Oqu(e.lcZ(3,8,"DIALOGS.UPDATE_BAN.TITLE")),e.xp6(3),e.Q6J("ngIf",A.loading),e.xp6(1),e.Q6J("ngIf",!A.loading),e.xp6(3),e.hij(" ",e.lcZ(10,10,"DIALOGS.UPDATE_BAN.CANCEL")," "),e.xp6(3),e.hij(" ",e.lcZ(13,12,"DIALOGS.UPDATE_BAN.UPDATE")," "))},dependencies:[C.O5,b.lW,a.uh,a.xY,a.H8,L.Ou,n.C,D.X$]}),T})()},28943:(J,U,s)=>{s.d(U,{e:()=>L});var e=s(65412),d=s(61744),C=s(81591),b=s(94650),a=s(1415);let L=(()=>{class n{constructor(t,I,P,T){this.data=t,this.dialogRef=I,this.resourceService=P,this.notificator=T,this.loading=!1}update(t){this.loading=!0,this.resourceService.updateResourceBan({banOnResource:{id:this.data.ban.id,beanName:"BanOnFacility",resourceId:this.data.ban.resourceId,memberId:this.data.ban.memberId,description:t.description,validityTo:t.validity}}).subscribe({next:()=>{this.notificator.showSuccess("DIALOGS.UPDATE_BAN.SUCCESS"),this.dialogRef.close(!0)},error:()=>{this.loading=!1}})}cancel(){this.dialogRef.close(!1)}}return n.\u0275fac=function(t){return new(t||n)(b.Y36(e.WI),b.Y36(e.so),b.Y36(d.xk),b.Y36(C.V6))},n.\u0275cmp=b.Xpm({type:n,selectors:[["app-update-resource-ban-dialog"]],decls:1,vars:2,consts:[[3,"ban","theme","cancel","update"]],template:function(t,I){1&t&&(b.TgZ(0,"app-update-ban-dialog",0),b.NdJ("cancel",function(){return I.cancel()})("update",function(T){return I.update(T)}),b.qZA()),2&t&&b.Q6J("ban",I.data.ban)("theme","facility-theme")},dependencies:[a.l]}),n})()},32316:(J,U,s)=>{s.d(U,{A:()=>L});var e=s(65412),d=s(61744),C=s(81591),b=s(94650),a=s(1415);let L=(()=>{class n{constructor(t,I,P,T){this.data=t,this.dialogRef=I,this.voService=P,this.notificator=T,this.loading=!1}update(t){this.loading=!0,this.voService.updateVoBan({banOnVo:{id:this.data.ban.id,beanName:"BanOnVo",voId:this.data.ban.voId,memberId:this.data.ban.memberId,description:t.description,validityTo:t.validity}}).subscribe({next:()=>{this.notificator.showSuccess("DIALOGS.UPDATE_BAN.SUCCESS"),this.dialogRef.close(!0)},error:()=>{this.loading=!1}})}cancel(){this.dialogRef.close(!1)}}return n.\u0275fac=function(t){return new(t||n)(b.Y36(e.WI),b.Y36(e.so),b.Y36(d.YF),b.Y36(C.V6))},n.\u0275cmp=b.Xpm({type:n,selectors:[["app-update-vo-ban-dialog"]],decls:1,vars:2,consts:[[3,"ban","theme","cancel","update"]],template:function(t,I){1&t&&(b.TgZ(0,"app-update-ban-dialog",0),b.NdJ("cancel",function(){return I.cancel()})("update",function(T){return I.update(T)}),b.qZA()),2&t&&b.Q6J("ban",I.data.ban)("theme","vo-theme")},dependencies:[a.l]}),n})()},95406:(J,U,s)=>{s.d(U,{r:()=>W});var e=s(94650),d=s(24006),C=s(9244),b=s(28499),a=s(61744),L=s(81591),n=s(10266),D=s(71948),t=s(13469),I=s(78372),P=s(95698),T=s(63900),Z=s(54004),M=s(36895),A=s(3238),R=s(59549),u=s(284),O=s(84385),h=s(89383);function f(g,x){if(1&g&&(e.TgZ(0,"mat-option",7),e._uU(1),e.qZA()),2&g){const c=x.$implicit;e.Q6J("value",c),e.xp6(1),e.hij(" ",c," ")}}function N(g,x){1&g&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&g&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"SHARED.COMPONENTS.LOGIN_FOR_NAMESPACE.FIELD_EMPTY")))}function _(g,x){1&g&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&g&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"SHARED.COMPONENTS.LOGIN_FOR_NAMESPACE.LOGIN_EXISTS")))}function E(g,x){1&g&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&g&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"SHARED.COMPONENTS.LOGIN_FOR_NAMESPACE.LOGIN_FORMAT")))}function l(g,x){1&g&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&g&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"SHARED.COMPONENTS.LOGIN_FOR_NAMESPACE.LOGIN_LONG")))}function y(g,x){1&g&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&g&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"SHARED.COMPONENTS.LOGIN_FOR_NAMESPACE.LOGIN_SHORT")))}function S(g,x){if(1&g&&(e.TgZ(0,"span",8),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&g){const c=e.oxw();e.xp6(1),e.hij(" ",e.lcZ(2,1,"Not selected"===c.formGroup.get("namespaceCtrl").value?"SHARED.COMPONENTS.LOGIN_FOR_NAMESPACE.LOGIN_DISABLED":"SHARED.COMPONENTS.LOGIN_FOR_NAMESPACE.LOGIN_DISABLED_FOR_NAMESPACE")," ")}}let F=(()=>{class g{constructor(c,o){this.membersManagerService=c,this.usersManagerService=o,this.filteredNamespaces=null,this.namespaceChanged=new e.vpe,this.parsedRulesChanged=new e.vpe,this.namespaceOptions=[],this.selectedNamespace=null,this.namespaceRules=[],this.parsedRules=new Map}ngOnInit(){this.namespaceOptions=["Not selected"],this.membersManagerService.getAllNamespacesRules().subscribe(c=>{this.namespaceRules=c,this.parseNamespaceRules()}),this.onNamespaceChanged("Not selected")}existingLoginValidator(){return c=>{let o=this.formGroup.get("namespaceCtrl").value.toLowerCase();return o="not selected"===o?"mu":o,c.valueChanges.pipe((0,I.b)(500),(0,P.q)(1),(0,T.w)(()=>this.usersManagerService.isLoginAvailable(o,c.value).pipe((0,Z.U)(B=>B?null:{loginExists:!0}))))}}parseNamespaceRules(){for(const c of this.namespaceRules)if(null===this.filteredNamespaces||!this.filteredNamespaces.includes(c.namespaceName)){this.namespaceOptions.push(c.namespaceName);const o={login:"disabled"};this.parseAttributes(o,c.requiredAttributes,"required"),this.parseAttributes(o,c.optionalAttributes,"optional"),this.parsedRules.set(c.namespaceName,o)}this.parsedRulesChanged.emit(this.parsedRules)}parseAttributes(c,o,B){for(const G of o)"login"===G&&(c.login=B)}onNamespaceChanged(c){this.selectedNamespace=c.toLowerCase();const o=this.formGroup.get("loginCtrl");if("Not selected"!==c)if("disabled"===this.parsedRules.get(this.selectedNamespace).login)o.disable(),o.setValue("");else{const B=[d.kI.required,d.kI.pattern("^[a-z][a-z0-9_-]+$"),d.kI.maxLength(15),d.kI.minLength(2)];(0,C.mH)(o,B,[this.existingLoginValidator()])}else o.disable(),o.setValue("");this.namespaceChanged.emit(c)}}return g.\u0275fac=function(c){return new(c||g)(e.Y36(a.uq),e.Y36(a.Fv))},g.\u0275cmp=e.Xpm({type:g,selectors:[["app-login-for-namespace"]],inputs:{formGroup:"formGroup",filteredNamespaces:"filteredNamespaces"},outputs:{namespaceChanged:"namespaceChanged",parsedRulesChanged:"parsedRulesChanged"},decls:18,vars:16,consts:[[1,"display-flex",3,"formGroup"],["formControlName","namespaceCtrl",3,"valueChange"],[3,"value",4,"ngFor","ngForOf"],[3,"floatLabel"],["formControlName","loginCtrl","matInput","","required","",3,"hidden"],[4,"ngIf"],["class","input-disabled",4,"ngIf"],[3,"value"],[1,"input-disabled"]],template:function(c,o){1&c&&(e.TgZ(0,"div",0)(1,"mat-form-field")(2,"mat-label"),e._uU(3),e.ALo(4,"translate"),e.qZA(),e.TgZ(5,"mat-select",1),e.NdJ("valueChange",function(G){return o.onNamespaceChanged(G)}),e.YNc(6,f,2,2,"mat-option",2),e.qZA()(),e.TgZ(7,"mat-form-field",3)(8,"mat-label"),e._uU(9),e.ALo(10,"translate"),e.qZA(),e._UZ(11,"input",4),e.YNc(12,N,3,3,"mat-error",5),e.YNc(13,_,3,3,"mat-error",5),e.YNc(14,E,3,3,"mat-error",5),e.YNc(15,l,3,3,"mat-error",5),e.YNc(16,y,3,3,"mat-error",5),e.YNc(17,S,3,3,"span",6),e.qZA()()),2&c&&(e.Q6J("formGroup",o.formGroup),e.xp6(3),e.Oqu(e.lcZ(4,12,"SHARED.COMPONENTS.LOGIN_FOR_NAMESPACE.NAMESPACE")),e.xp6(3),e.Q6J("ngForOf",o.namespaceOptions),e.xp6(1),e.Q6J("floatLabel",o.formGroup.get("loginCtrl").disabled?"always":null),e.xp6(2),e.Oqu(e.lcZ(10,14,"SHARED.COMPONENTS.LOGIN_FOR_NAMESPACE.LOGIN")),e.xp6(2),e.Q6J("hidden",o.formGroup.get("loginCtrl").disabled),e.xp6(1),e.Q6J("ngIf",o.formGroup.get("loginCtrl").hasError("required")),e.xp6(1),e.Q6J("ngIf",o.formGroup.get("loginCtrl").hasError("loginExists")),e.xp6(1),e.Q6J("ngIf",o.formGroup.get("loginCtrl").hasError("pattern")&&!o.formGroup.get("loginCtrl").hasError("minlength")),e.xp6(1),e.Q6J("ngIf",o.formGroup.get("loginCtrl").hasError("maxlength")),e.xp6(1),e.Q6J("ngIf",o.formGroup.get("loginCtrl").hasError("minlength")),e.xp6(1),e.Q6J("ngIf",o.formGroup.get("loginCtrl").disabled))},dependencies:[M.sg,M.O5,A.ey,R.TO,R.KE,R.hX,u.Nt,d.Fj,d.JJ,d.JL,d.Q7,d.sg,d.u,O.gD,h.X$],styles:[".display-flex[_ngcontent-%COMP%]{display:flex;flex-direction:column}.input-disabled[_ngcontent-%COMP%]{pointer-events:none;color:#888}"]}),g})(),W=(()=>{class g{constructor(c,o,B){this.membersManagerService=c,this.usersManagerService=o,this.apiRequestConfiguration=B,this.filteredNamespace=null,this.parsedRulesOutput=new e.vpe,this.selectedNamespace=null,this.parsedRules=new Map}parsedRulesFunction(c){this.parsedRules=c,this.parsedRulesOutput.emit(c)}onNamespaceChanged(c){this.selectedNamespace=c.toLowerCase();const o=this.formGroup.get("passwordCtrl"),B=this.formGroup.get("passwordAgainCtrl"),G=this.formGroup.get("generatePasswordCtrl");"Not selected"!==c?((0,C.mH)(G,[]),this.passwordOptionChanged()):(o.disable(),o.setValue(""),B.disable(),B.setValue(""),G.disable(),G.dirty||G.setValue(!0))}passwordOptionChanged(){const c=this.formGroup.get("passwordCtrl"),o=this.formGroup.get("passwordAgainCtrl");this.formGroup.get("generatePasswordCtrl").value?(c.disable(),c.setValue(""),o.disable(),o.setValue("")):((0,C.mH)(c,[d.kI.required],[(0,b.yT)(this.selectedNamespace,this.usersManagerService,this.apiRequestConfiguration)]),(0,C.mH)(o,[]))}}return g.\u0275fac=function(c){return new(c||g)(e.Y36(a.uq),e.Y36(a.Fv),e.Y36(L.F5))},g.\u0275cmp=e.Xpm({type:g,selectors:[["app-login-password-form-with-generate-option"]],inputs:{formGroup:"formGroup",filteredNamespace:"filteredNamespace"},outputs:{parsedRulesOutput:"parsedRulesOutput"},decls:12,vars:23,consts:[[1,"display-flex",3,"formGroup"],[3,"formGroup","filteredNamespaces","namespaceChanged","parsedRulesChanged"],["formControlName","generatePasswordCtrl","matTooltipPosition","left",1,"display-flex","mt-3",3,"matTooltipDisabled","matTooltip","ngModelChange"],[3,"checked","value"],[1,"display-flex"],[3,"formGroup","namespace","passwordRequired","tooltipPwdDisabledForNamespace"]],template:function(c,o){1&c&&(e.TgZ(0,"div",0)(1,"app-login-for-namespace",1),e.NdJ("namespaceChanged",function(G){return o.onNamespaceChanged(G)})("parsedRulesChanged",function(G){return o.parsedRulesFunction(G)}),e.qZA(),e.TgZ(2,"mat-radio-group",2),e.NdJ("ngModelChange",function(){return o.passwordOptionChanged()}),e.ALo(3,"translate"),e.TgZ(4,"mat-radio-button",3),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"mat-radio-button",3),e._uU(8),e.ALo(9,"translate"),e.qZA()(),e.TgZ(10,"div",4),e._UZ(11,"perun-web-apps-password-form",5),e.qZA()()),2&c&&(e.Q6J("formGroup",o.formGroup),e.xp6(1),e.Q6J("formGroup",o.formGroup)("filteredNamespaces",o.filteredNamespace),e.xp6(1),e.s9C("matTooltip",e.lcZ(3,17,"DIALOGS.CREATE_SERVICE_MEMBER.PASSWORD_NOT_SUPPORTED")),e.Q6J("matTooltipDisabled","Not selected"!==o.formGroup.get("namespaceCtrl").value),e.xp6(2),e.Q6J("checked",o.formGroup.get("generatePasswordCtrl").value&&o.formGroup.get("generatePasswordCtrl").enabled)("value",!0),e.xp6(1),e.hij(" ",e.lcZ(6,19,"DIALOGS.CREATE_SERVICE_MEMBER.PASSWORD_RANDOM")," "),e.xp6(2),e.Q6J("checked",!o.formGroup.get("generatePasswordCtrl").value&&o.formGroup.get("generatePasswordCtrl").enabled)("value",!1),e.xp6(1),e.hij(" ",e.lcZ(9,21,"DIALOGS.CREATE_SERVICE_MEMBER.ENTER_PASSWORD")," "),e.xp6(2),e.ekj("input-disabled",o.formGroup.get("generatePasswordCtrl").value),e.xp6(1),e.Q6J("formGroup",o.formGroup)("namespace",o.selectedNamespace)("passwordRequired",!o.formGroup.get("generatePasswordCtrl").value)("tooltipPwdDisabledForNamespace",o.formGroup.get("generatePasswordCtrl").enabled))},dependencies:[d.JJ,d.JL,d.sg,d.u,n.gM,D.VQ,D.U0,t.G,F,h.X$],styles:[".display-flex[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),g})()},12651:(J,U,s)=>{s.d(U,{t:()=>N});var e=s(61744),d=s(95017),C=s(9244),b=s(71103),a=s(21029),L=s(61365),D=(s(37433),s(10036)),t=s(94650),I=s(65412),P=s(36895),T=s(4859),Z=s(51572),M=s(96214),A=s(7434),R=s(53984),u=s(89383);const O=["list"];function h(_,E){1&_&&t._UZ(0,"mat-spinner",7)}function f(_,E){if(1&_&&t._UZ(0,"perun-web-apps-attributes-list",8,9),2&_){const l=t.oxw();t.Q6J("attributes",l.attributes)("filterValue",l.filterValue)("selection",l.selection)("tableId",l.tableId)}}let N=(()=>{class _{constructor(l,y){this.attributesManagerService=l,this.dialog=y,this.attributes=[],this.selection=new d.Ov(!0,[]),this.filterValue="",this.tableId=D.rF,this.loading=!1}ngOnInit(){this.refreshTable()}refreshTable(){switch(this.loading=!0,this.entity){case"member":this.attributesManagerService.getMemberAttributes(this.entityId).subscribe(l=>{this.attributes=l,this.selection.clear(),this.loading=!1});break;case"group":this.attributesManagerService.getGroupAttributes(this.entityId).subscribe(l=>{this.attributes=l,this.selection.clear(),this.loading=!1});break;case"user":this.attributesManagerService.getUserAttributes(this.entityId).subscribe(l=>{this.attributes=l,this.selection.clear(),this.loading=!1});break;case"resource":this.attributesManagerService.getResourceAttributes(this.entityId).subscribe(l=>{this.attributes=l,this.selection.clear(),this.loading=!1});break;case"facility":this.attributesManagerService.getFacilityAttributes(this.entityId).subscribe(l=>{this.attributes=l,this.selection.clear(),this.loading=!1});break;case"vo":this.attributesManagerService.getVoAttributes(this.entityId).subscribe(l=>{this.attributes=l,this.selection.clear(),this.loading=!1})}}applyFilter(l){this.filterValue=l}onCreate(){const l=(0,C.kZ)();l.width="1050px",l.data={entityId:this.entityId,entity:this.entity,notEmptyAttributes:this.attributes,style:this.entity+"-theme"},this.dialog.open(b.n,l).afterClosed().subscribe(S=>{S&&this.refreshTable()})}onSave(){this.list.updateMapAttributes();const l=(0,C.kZ)();l.width="450px",l.data={entityId:this.entityId,entity:this.entity,attributes:this.selection.selected},this.dialog.open(a.wA,l).afterClosed().subscribe(S=>{S&&this.refreshTable()})}onDelete(){const l=(0,C.kZ)();l.width="450px",l.data={entityId:this.entityId,entity:this.entity,attributes:this.selection.selected},this.dialog.open(L.k,l).afterClosed().subscribe(S=>{S&&this.refreshTable()})}}return _.\u0275fac=function(l){return new(l||_)(t.Y36(e.H8),t.Y36(I.uw))},_.\u0275cmp=t.Xpm({type:_,selectors:[["app-one-entity-attribute-page"]],viewQuery:function(l,y){if(1&l&&t.Gf(O,5),2&l){let S;t.iGM(S=t.CRH())&&(y.list=S.first)}},inputs:{entity:"entity",entityId:"entityId"},decls:13,vars:14,consts:[[1,"mt-2",3,"refresh"],["color","accent","data-cy","add-attributes","mat-flat-button","",1,"mr-2","mt-2","action-button",3,"click"],["color","accent","mat-flat-button","",1,"mr-2","mt-2",3,"disabled","click"],["color","warn","data-cy","remove-attributes","mat-flat-button","",1,"mt-2","mr-2",3,"disabled","click"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"attributes","filterValue","selection","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"attributes","filterValue","selection","tableId"],["list",""]],template:function(l,y){1&l&&(t.TgZ(0,"perun-web-apps-refresh-button",0),t.NdJ("refresh",function(){return y.refreshTable()}),t.qZA(),t.TgZ(1,"button",1),t.NdJ("click",function(){return y.onCreate()}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"button",2),t.NdJ("click",function(){return y.onSave()}),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"button",3),t.NdJ("click",function(){return y.onDelete()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(F){return y.applyFilter(F)}),t.qZA(),t.YNc(11,h,1,0,"mat-spinner",5),t.YNc(12,f,2,4,"perun-web-apps-attributes-list",6)),2&l&&(t.xp6(2),t.hij(" ",t.lcZ(3,8,"USER_DETAIL.SETTINGS.ATTRIBUTES.CREATE"),"\n"),t.xp6(2),t.Q6J("disabled",0===y.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(6,10,"USER_DETAIL.SETTINGS.ATTRIBUTES.SAVE"),"\n"),t.xp6(2),t.Q6J("disabled",0===y.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(9,12,"USER_DETAIL.SETTINGS.ATTRIBUTES.DELETE"),"\n"),t.xp6(2),t.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.FILTER"),t.xp6(1),t.Q6J("ngIf",y.loading),t.xp6(1),t.Q6J("ngIf",!y.loading))},dependencies:[P.O5,T.lW,Z.Ou,M.t,A.L,R.p,u.X$]}),_})()},19191:(J,U,s)=>{s.d(U,{Y:()=>V});var e=s(61744),C=(s(37433),s(95017)),b=s(61365),a=s(9244),L=s(21029),n=s(71103),D=s(64080),t=s(94650),I=s(65412),P=s(36895),T=s(4859),Z=s(51572),M=s(98380),A=s(96214),R=s(7434),u=s(53984),O=s(82322),h=s(45703),f=s(89593),N=s(89383);let _=(()=>{class p{constructor(){this.memberSelected=new t.vpe,this.memberFullNameFunction=i=>(0,a.bD)(i.user)}ngOnInit(){this.members=this.members.sort(a.fx)}}return p.\u0275fac=function(i){return new(i||p)},p.\u0275cmp=t.Xpm({type:p,selectors:[["perun-web-apps-member-search-select"]],inputs:{members:"members"},outputs:{memberSelected:"memberSelected"},decls:4,vars:12,consts:[[3,"entities","searchFunction","mainTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(i,r){1&i&&(t.TgZ(0,"perun-web-apps-entity-search-select",0),t.NdJ("entitySelected",function(v){return r.memberSelected.emit(v)}),t.ALo(1,"translate"),t.ALo(2,"translate"),t.ALo(3,"translate"),t.qZA()),2&i&&t.Q6J("entities",r.members)("searchFunction",r.memberFullNameFunction)("mainTextFunction",r.memberFullNameFunction)("selectPlaceholder",t.lcZ(1,6,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_SEARCH_SELECT.SELECT_MEMBER"))("findPlaceholder",t.lcZ(2,8,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_SEARCH_SELECT.FIND_MEMBER"))("noEntriesText",t.lcZ(3,10,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_SEARCH_SELECT.NO_MEMBER_FOUND"))},dependencies:[f.i,N.X$]}),p})(),E=(()=>{class p{constructor(){this.disableAutoSelect=!1,this.facilitySelected=new t.vpe,this.nameFunction=i=>i.name}ngOnInit(){this.facilities=this.facilities.sort(a.aC)}}return p.\u0275fac=function(i){return new(i||p)},p.\u0275cmp=t.Xpm({type:p,selectors:[["perun-web-apps-facility-search-select"]],inputs:{facilities:"facilities",disableAutoSelect:"disableAutoSelect"},outputs:{facilitySelected:"facilitySelected"},decls:4,vars:13,consts:[[3,"entities","disableAutoSelect","searchFunction","mainTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(i,r){1&i&&(t.TgZ(0,"perun-web-apps-entity-search-select",0),t.NdJ("entitySelected",function(v){return r.facilitySelected.emit(v)}),t.ALo(1,"translate"),t.ALo(2,"translate"),t.ALo(3,"translate"),t.qZA()),2&i&&t.Q6J("entities",r.facilities)("disableAutoSelect",r.disableAutoSelect)("searchFunction",r.nameFunction)("mainTextFunction",r.nameFunction)("selectPlaceholder",t.lcZ(1,7,"SHARED_LIB.PERUN.COMPONENTS.FACILITY_SEARCH_SELECT.SELECT_FACILITY"))("findPlaceholder",t.lcZ(2,9,"SHARED_LIB.PERUN.COMPONENTS.FACILITY_SEARCH_SELECT.FIND_FACILITY"))("noEntriesText",t.lcZ(3,11,"SHARED_LIB.PERUN.COMPONENTS.FACILITY_SEARCH_SELECT.NO_FACILITY_FOUND"))},dependencies:[f.i,N.X$]}),p})();var l=s(74250);const y=["list"];function S(p,w){1&p&&t._UZ(0,"mat-spinner",4)}function F(p,w){if(1&p&&(t.TgZ(0,"perun-web-apps-alert",5),t._uU(1),t.qZA()),2&p){const i=t.oxw();t.xp6(1),t.Oqu(i.noEntityMessage)}}function W(p,w){if(1&p){const i=t.EpF();t.TgZ(0,"perun-web-apps-group-search-select",18),t.NdJ("groupSelected",function(m){t.CHM(i);const v=t.oxw(2);return t.KtG(v.specifySecondEntity(m))}),t.qZA()}if(2&p){const i=t.oxw(2);t.Q6J("firstSelectedGroup",i.specificSecondEntity)("displayStatus",!0)("groups",i.entityValues)}}function g(p,w){if(1&p){const i=t.EpF();t.TgZ(0,"perun-web-apps-resource-search-select",19),t.NdJ("resourceSelected",function(m){t.CHM(i);const v=t.oxw(2);return t.KtG(v.specifySecondEntity(m))}),t.qZA()}if(2&p){const i=t.oxw(2);t.Q6J("resources",i.entityValues)}}function x(p,w){if(1&p){const i=t.EpF();t.TgZ(0,"perun-web-apps-member-search-select",20),t.NdJ("memberSelected",function(m){t.CHM(i);const v=t.oxw(2);return t.KtG(v.specifySecondEntity(m))}),t.qZA()}if(2&p){const i=t.oxw(2);t.Q6J("members",i.entityValues)}}function c(p,w){if(1&p){const i=t.EpF();t.TgZ(0,"perun-web-apps-facility-search-select",21),t.NdJ("facilitySelected",function(m){t.CHM(i);const v=t.oxw(2);return t.KtG(v.specifySecondEntity(m))}),t.qZA()}if(2&p){const i=t.oxw(2);t.Q6J("facilities",i.entityValues)}}function o(p,w){if(1&p){const i=t.EpF();t.TgZ(0,"perun-web-apps-user-search-select",22),t.NdJ("userSelected",function(m){t.CHM(i);const v=t.oxw(2);return t.KtG(v.specifySecondEntity(m))}),t.qZA()}if(2&p){const i=t.oxw(2);t.Q6J("users",i.entityValues)}}function B(p,w){1&p&&t._UZ(0,"mat-spinner",4)}function G(p,w){if(1&p&&t._UZ(0,"perun-web-apps-attributes-list",23,24),2&p){const i=t.oxw(2);t.Q6J("attributes",i.attributes)("filterValue",i.filterValue)("selection",i.selection)}}function K(p,w){if(1&p){const i=t.EpF();t.TgZ(0,"div")(1,"div",6),t.YNc(2,W,1,3,"perun-web-apps-group-search-select",7),t.YNc(3,g,1,1,"perun-web-apps-resource-search-select",8),t.YNc(4,x,1,1,"perun-web-apps-member-search-select",9),t.YNc(5,c,1,1,"perun-web-apps-facility-search-select",10),t.YNc(6,o,1,1,"perun-web-apps-user-search-select",11),t.qZA(),t.TgZ(7,"perun-web-apps-refresh-button",12),t.NdJ("refresh",function(){t.CHM(i);const m=t.oxw();return t.KtG(m.getAttributes(m.specificSecondEntity.id))}),t.qZA(),t.TgZ(8,"button",13),t.NdJ("click",function(){t.CHM(i);const m=t.oxw();return t.KtG(m.onAdd(m.specificSecondEntity.id))}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"button",14),t.NdJ("click",function(){t.CHM(i);const m=t.oxw();return t.KtG(m.onSave(m.specificSecondEntity.id))}),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.TgZ(14,"button",15),t.NdJ("click",function(){t.CHM(i);const m=t.oxw();return t.KtG(m.onDelete(m.specificSecondEntity.id))}),t._uU(15),t.ALo(16,"translate"),t.qZA(),t.TgZ(17,"perun-web-apps-immediate-filter",16),t.NdJ("filter",function(m){t.CHM(i);const v=t.oxw();return t.KtG(v.applyFilter(m))}),t.qZA(),t.YNc(18,B,1,0,"mat-spinner",1),t.YNc(19,G,2,3,"perun-web-apps-attributes-list",17),t.qZA()}if(2&p){const i=t.oxw();t.xp6(2),t.Q6J("ngIf","group"===i.secondEntity),t.xp6(1),t.Q6J("ngIf","resource"===i.secondEntity),t.xp6(1),t.Q6J("ngIf","member"===i.secondEntity),t.xp6(1),t.Q6J("ngIf","facility"===i.secondEntity),t.xp6(1),t.Q6J("ngIf","user"===i.secondEntity),t.xp6(3),t.hij(" ",t.lcZ(10,13,"MEMBER_DETAIL.SETTINGS.ATTRIBUTES.CREATE")," "),t.xp6(2),t.Q6J("disabled",0===i.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(13,15,"MEMBER_DETAIL.SETTINGS.ATTRIBUTES.SAVE")," "),t.xp6(2),t.Q6J("disabled",0===i.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(16,17,"MEMBER_DETAIL.SETTINGS.ATTRIBUTES.DELETE")," "),t.xp6(2),t.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.FILTER"),t.xp6(1),t.Q6J("ngIf",i.innerLoading),t.xp6(1),t.Q6J("ngIf",!i.innerLoading)}}let V=(()=>{class p{constructor(i,r,m,v,Y,Q){this.attributesManagerService=i,this.resourcesManagerService=r,this.facilitiesManagerService=m,this.groupsManagerService=v,this.membersManager=Y,this.dialog=Q,this.entityValues=[],this.attributes=[],this.selection=new C.Ov(!0,[]),this.allowedStatuses=["INVALID","VALID"],this.loading=!1,this.innerLoading=!1,this.filterValue=""}ngOnInit(){this.loadEntityValues(),this.setMessages(this.secondEntity.toLowerCase())}loadEntityValues(){switch(this.loading=!0,this.firstEntity){case"member":switch(this.secondEntity){case"resource":this.resourcesManagerService.getAssignedResourcesWithStatus(this.firstEntityId).subscribe(i=>{this.entityValues=i.map(r=>r.enrichedResource.resource),this.preselectEntity(),this.loading=!1});break;case"group":this.groupsManagerService.getMemberGroups(this.firstEntityId).subscribe(i=>{this.entityValues=i,this.preselectEntity(),this.loading=!1})}break;case"group":switch(this.secondEntity){case"resource":this.resourcesManagerService.getResourceAssignments(this.firstEntityId).subscribe(i=>{this.entityValues=i.map(r=>{const m=r.enrichedResource.resource;return m.status=r.status,m}),this.preselectEntity(),this.loading=!1});break;case"member":this.membersManager.getCompleteRichMembersForGroup(this.firstEntityId,!1,this.allowedStatuses,null,[D.r.MEMBER_CORE_ID]).subscribe(i=>{this.entityValues=i,this.preselectEntity(),this.loading=!1})}break;case"user":this.facilitiesManagerService.getAssignedFacilitiesByUser(this.firstEntityId).subscribe(i=>{this.entityValues=i,this.preselectEntity(),this.loading=!1});break;case"resource":switch(this.secondEntity){case"member":this.resourcesManagerService.getAssignedMembersWithStatus(this.firstEntityId).subscribe(i=>{this.entityValues=i.map(r=>r.richMember),this.preselectEntity(),this.loading=!1});break;case"group":this.resourcesManagerService.getGroupAssignments(this.firstEntityId).subscribe(i=>{this.entityValues=i.map(r=>{const m=r.enrichedGroup.group;return m.status=r.status,m}),this.preselectEntity(),this.loading=!1})}break;case"facility":this.facilitiesManagerService.getAssignedUsers(this.firstEntityId).subscribe(i=>{this.entityValues=i,this.preselectEntity(),this.loading=!1})}}preselectEntity(){0!==this.entityValues.length&&this.findInitiallySelectedEntity()}findInitiallySelectedEntity(){let i=this.entityValues[0];const r=(0,a.vL)(this.entityKey());if(r)for(const m of this.entityValues)if(m.id===r[0]){i=m;break}this.specifySecondEntity(i)}entityKey(){return"group"===this.secondEntity?"groups":""}getAttributes(i){switch(this.innerLoading=!0,this.selection.clear(),this.firstEntity){case"member":switch(this.secondEntity){case"resource":this.attributesManagerService.getMemberResourceAttributes(this.firstEntityId,i).subscribe(r=>{this.attributes=r,this.innerLoading=!1});break;case"group":this.attributesManagerService.getMemberGroupAttributes(this.firstEntityId,i).subscribe(r=>{this.attributes=r,this.innerLoading=!1})}break;case"group":switch(this.secondEntity){case"resource":this.attributesManagerService.getGroupResourceAttributes(this.firstEntityId,i).subscribe(r=>{this.attributes=r,this.innerLoading=!1});break;case"member":this.attributesManagerService.getMemberGroupAttributes(i,this.firstEntityId).subscribe(r=>{this.attributes=r,this.innerLoading=!1})}break;case"user":this.attributesManagerService.getUserFacilityAttributes(this.firstEntityId,i).subscribe(r=>{this.attributes=r,this.innerLoading=!1});break;case"resource":switch(this.secondEntity){case"member":this.attributesManagerService.getMemberResourceAttributes(i,this.firstEntityId).subscribe(r=>{this.attributes=r,this.innerLoading=!1});break;case"group":this.attributesManagerService.getGroupResourceAttributes(i,this.firstEntityId).subscribe(r=>{this.attributes=r,this.innerLoading=!1})}break;case"facility":this.attributesManagerService.getUserFacilityAttributes(i,this.firstEntityId).subscribe(r=>{this.attributes=r,this.innerLoading=!1})}}setMessages(i){this.noEntityMessage=`No ${i} assigned`}onSave(i){this.list.updateMapAttributes();const r=(0,a.kZ)();r.width="450px",r.data={entityId:this.firstEntityId,entity:this.firstEntity,secondEntity:this.secondEntity,secondEntityId:i,attributes:this.selection.selected},this.dialog.open(L.wA,r).afterClosed().subscribe(v=>{v&&(this.selection.clear(),this.getAttributes(i))})}onDelete(i){const r=(0,a.kZ)();r.width="450px",r.data={entityId:this.firstEntityId,entity:this.firstEntity,secondEntity:this.secondEntity,secondEntityId:i,attributes:this.selection.selected,theme:`${this.firstEntity}-theme`},this.dialog.open(b.k,r).afterClosed().subscribe(v=>{v&&(this.selection.clear(),this.getAttributes(i))})}onAdd(i){const r=(0,a.kZ)();r.width="1050px",r.data={entityId:this.firstEntityId,entity:this.firstEntity,secondEntity:this.secondEntity,secondEntityId:i,notEmptyAttributes:this.attributes,style:`${this.firstEntity}-theme`},this.dialog.open(n.n,r).afterClosed().subscribe(v=>{v&&(this.selection.clear(),this.getAttributes(i))})}specifySecondEntity(i){i&&(this.specificSecondEntity=i,this.getAttributes(this.specificSecondEntity.id))}applyFilter(i){this.filterValue=i}}return p.\u0275fac=function(i){return new(i||p)(t.Y36(e.H8),t.Y36(e.xk),t.Y36(e.IQ),t.Y36(e.ff),t.Y36(e.uq),t.Y36(I.uw))},p.\u0275cmp=t.Xpm({type:p,selectors:[["app-two-entity-attribute-page"]],viewQuery:function(i,r){if(1&i&&t.Gf(y,5),2&i){let m;t.iGM(m=t.CRH())&&(r.list=m.first)}},inputs:{firstEntityId:"firstEntityId",firstEntity:"firstEntity",secondEntity:"secondEntity"},decls:4,vars:3,consts:[[1,"mt-3"],["class","ml-auto mr-auto",4,"ngIf"],["alert_type","warn",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["alert_type","warn"],[1,"flex-row"],[3,"firstSelectedGroup","displayStatus","groups","groupSelected",4,"ngIf"],[3,"resources","resourceSelected",4,"ngIf"],[3,"members","memberSelected",4,"ngIf"],[3,"facilities","facilitySelected",4,"ngIf"],[3,"users","userSelected",4,"ngIf"],[3,"refresh"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","accent","mat-flat-button","",1,"mr-2",3,"disabled","click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[3,"placeholder","filter"],[3,"attributes","filterValue","selection",4,"ngIf"],[3,"firstSelectedGroup","displayStatus","groups","groupSelected"],[3,"resources","resourceSelected"],[3,"members","memberSelected"],[3,"facilities","facilitySelected"],[3,"users","userSelected"],[3,"attributes","filterValue","selection"],["list",""]],template:function(i,r){1&i&&(t.TgZ(0,"div",0),t.YNc(1,S,1,0,"mat-spinner",1),t.YNc(2,F,2,1,"perun-web-apps-alert",2),t.YNc(3,K,20,19,"div",3),t.qZA()),2&i&&(t.xp6(1),t.Q6J("ngIf",r.loading),t.xp6(1),t.Q6J("ngIf",0===r.entityValues.length&&!r.loading),t.xp6(1),t.Q6J("ngIf",0!==r.entityValues.length))},dependencies:[P.O5,T.lW,Z.Ou,M.w,A.t,R.L,u.p,O.h,h.L,_,E,l.S,N.X$],styles:[".w-35[_ngcontent-%COMP%]{width:35%}"]}),p})()},71135:(J,U,s)=>{s.d(U,{L:()=>M});var e=s(94650),d=s(65412),C=s(94364),b=s(36895),a=s(97392),L=s(3238),n=s(34198),D=s(55660),t=s(89383),I=s(64597);const P=function(A){return[A]};function T(A,R){if(1&A&&(e.TgZ(0,"div",3)(1,"a",4),e.NdJ("auxclick",function(O){return O.preventDefault()}),e.ALo(2,"multiWordDataCy"),e.ALo(3,"translate"),e._UZ(4,"mat-icon",5),e._uU(5),e.ALo(6,"translate"),e.qZA()()),2&A){const u=R.$implicit;e.xp6(1),e.Gre("",u.style," item-itself"),e.Q6J("perunWebAppsMiddleClickRouterLink",e.VKq(14,P,u.url))("routerLink",u.url),e.uIk("data-cy",e.lcZ(2,8,e.lcZ(3,10,u.label))),e.xp6(3),e.Q6J("svgIcon",u.cssIcon),e.xp6(1),e.hij(" ",e.lcZ(6,12,u.label)," ")}}function Z(A,R){if(1&A&&(e.TgZ(0,"div",1),e.YNc(1,T,7,16,"div",2),e.qZA()),2&A){const u=e.oxw();e.xp6(1),e.Q6J("ngForOf",u.items)}}let M=(()=>{class A{constructor(u,O){this.dialog=u,this.route=O,this.size="large"}ngOnInit(){this.route.params.subscribe(u=>{this.voId=Number(u.voId)})}}return A.\u0275fac=function(u){return new(u||A)(e.Y36(d.uw),e.Y36(C.gz))},A.\u0275cmp=e.Xpm({type:A,selectors:[["perun-web-apps-menu-buttons-field"]],inputs:{items:"items",size:"size"},decls:1,vars:1,consts:[["class","items-container",4,"ngIf"],[1,"items-container"],["class","item-itself-container","mat-ripple","",4,"ngFor","ngForOf"],["mat-ripple","",1,"item-itself-container"],[3,"perunWebAppsMiddleClickRouterLink","routerLink","auxclick"],[1,"item-pic","perun-icon",3,"svgIcon"]],template:function(u,O){1&u&&e.YNc(0,Z,2,1,"div",0),2&u&&e.Q6J("ngIf","small"===O.size)},dependencies:[b.sg,b.O5,C.yS,a.Hw,L.wG,n.Y,D.Q,t.X$,I.R],styles:[".items-container[_ngcontent-%COMP%]{display:grid;grid-gap:0;grid-template-columns:repeat(auto-fill,minmax(208px,1fr));margin:0 -8px}@media (max-width: 768px){.items-container[_ngcontent-%COMP%]{grid-template-columns:repeat(auto-fill,minmax(148px,1fr))}}.item-pic[_ngcontent-%COMP%]{color:currentColor;transform:scale(3);height:74px;margin-bottom:22px}.item-itself-container[_ngcontent-%COMP%]{margin:8px}.item-itself[_ngcontent-%COMP%]{text-align:center;min-height:186px;height:100%;padding:20px;display:flex;flex-direction:column;align-items:center;font-size:1.25rem}.item-itself[_ngcontent-%COMP%]:hover{text-decoration:none}.item-itself[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:120px;margin-bottom:10px}@media (max-width: 768px){.item-itself[_ngcontent-%COMP%]{min-height:150px;padding:10px}.item-itself[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:80px;margin-bottom:10px}}"]}),A})()}}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/907.92a494ce92a3e7ab.js b/dist/apps/admin-gui/907.92a494ce92a3e7ab.js new file mode 100644 index 000000000..3a4f9ed9c --- /dev/null +++ b/dist/apps/admin-gui/907.92a494ce92a3e7ab.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin_gui=self.webpackChunkadmin_gui||[]).push([[907],{15003:(te,j,o)=>{o.d(j,{G:()=>A});var r=o(94650);let A=(()=>{class n{constructor(){this.entityDetailChange=new r.vpe}reloadEntityDetail(){this.entityDetailChange.emit()}}return n.\u0275fac=function(R){return new(R||n)},n.\u0275prov=r.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})()},76023:(te,j,o)=>{o.d(j,{y:()=>H});var r=o(61744),A=o(10036),n=o(81591),m=o(94650),R=o(94364),s=o(36895),t=o(51572),e=o(96214),Q=o(38383),K=o(64901),a=o(89383);function w(G,F){1&G&&m._UZ(0,"mat-spinner",5)}const y=function(){return["id","fullName"]};function U(G,F){if(1&G){const E=m.EpF();m.TgZ(0,"perun-web-apps-members-list",6),m.NdJ("updateTable",function(){m.CHM(E);const P=m.oxw();return m.KtG(P.refreshTable())}),m.qZA()}if(2&G){const E=m.oxw();m.Q6J("displayedColumns",m.DdM(5,y))("disableRouting",!E.routeAuth)("filter",E.filterValue)("members",E.members)("tableId",E.tableId)}}let H=(()=>{class G{constructor(E,I,P,L){this.route=E,this.resourceService=I,this.authResolver=P,this.entityStorageService=L,this.loading=!1,this.filterValue="",this.tableId=A.iQ}ngOnInit(){this.loading=!0,this.resource=this.entityStorageService.getEntity(),this.refreshTable()}refreshTable(){this.loading=!0,this.resourceService.getAssignedRichMembers(this.resource.id).subscribe(E=>{this.members=E,this.setAuthRights(),this.loading=!1})}setAuthRights(){0!==this.members.length&&(this.routeAuth=this.authResolver.isAuthorized("getMemberById_int_policy",[this.members[0]]))}applyFilter(E){this.filterValue=E}}return G.\u0275fac=function(E){return new(E||G)(m.Y36(R.gz),m.Y36(r.xk),m.Y36(n.x4),m.Y36(n.fb))},G.\u0275cmp=m.Xpm({type:G,selectors:[["app-resource-assigned-members"]],decls:7,vars:6,consts:[[1,"page-subtitle"],[3,"refresh"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"displayedColumns","disableRouting","filter","members","tableId","updateTable",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","disableRouting","filter","members","tableId","updateTable"]],template:function(E,I){1&E&&(m.TgZ(0,"h1",0),m._uU(1),m.ALo(2,"translate"),m.qZA(),m.TgZ(3,"perun-web-apps-refresh-button",1),m.NdJ("refresh",function(){return I.refreshTable()}),m.qZA(),m.TgZ(4,"perun-web-apps-debounce-filter",2),m.NdJ("filter",function(L){return I.applyFilter(L)}),m.qZA(),m.YNc(5,w,1,0,"mat-spinner",3),m.YNc(6,U,1,6,"perun-web-apps-members-list",4)),2&E&&(m.xp6(1),m.Oqu(m.lcZ(2,4,"RESOURCE_DETAIL.ASSIGNED_MEMBERS.TITLE")),m.xp6(3),m.Q6J("placeholder","RESOURCE_DETAIL.ASSIGNED_MEMBERS.FILTER"),m.xp6(1),m.Q6J("ngIf",I.loading),m.xp6(1),m.Q6J("ngIf",!I.loading))},dependencies:[s.O5,t.Ou,e.t,Q.O,K.P,a.X$]}),G})()},49546:(te,j,o)=>{o.d(j,{D:()=>re});var r=o(61744),A=o(10036),n=o(95017),m=o(9244),R=o(65412),s=o(81591),t=o(94650),e=o(89383),Q=o(36895),K=o(4859),a=o(3848),w=o(51572),y=o(64901),U=o(90439),H=o(60205);function G(M,S){1&M&&t._UZ(0,"mat-spinner",6)}const F=function(){return["id","name","enabled","description"]};function E(M,S){if(1&M&&t._UZ(0,"app-services-list",16),2&M){const p=t.oxw(2);t.Q6J("disableRouting",!0)("services",p.filteredServices)("displayedColumns",t.DdM(5,F))("selection",p.selection)("tableId",p.tableId)}}const I=function(){return["select","id","name","enabled","description"]};function P(M,S){if(1&M){const p=t.EpF();t.TgZ(0,"div",7)(1,"mat-tab-group",8),t.NdJ("selectedTabChange",function(){t.CHM(p);const u=t.oxw();return t.KtG(u.tabChanged())}),t.TgZ(2,"mat-tab",9),t.ALo(3,"translate"),t.TgZ(4,"div",10)(5,"perun-web-apps-debounce-filter",11),t.NdJ("filter",function(u){t.CHM(p);const v=t.oxw();return t.KtG(v.applyFilter(u))}),t.ALo(6,"translate"),t.qZA()(),t._UZ(7,"app-services-list",12),t.qZA(),t.TgZ(8,"mat-tab",9),t.ALo(9,"translate"),t.TgZ(10,"div",13)(11,"perun-web-apps-service-package-search-select",14),t.NdJ("packageSelected",function(u){t.CHM(p);const v=t.oxw();return t.KtG(v.servicePackageSelected(u))}),t.qZA()(),t.YNc(12,E,1,6,"app-services-list",15),t.qZA()()()}if(2&M){const p=t.oxw();t.xp6(2),t.s9C("label",t.lcZ(3,12,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.SELECT_SERVICE")),t.xp6(3),t.s9C("placeholder",t.lcZ(6,14,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.FILTER_DESCRIPTION")),t.xp6(2),t.Q6J("services",p.unAssignedServices)("disableRouting",!0)("displayedColumns",t.DdM(18,I))("filterValue",p.filterValue)("selection",p.selection)("tableId",p.tableId),t.xp6(1),t.s9C("label",t.lcZ(9,16,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.SELECT_PACKAGE")),t.xp6(3),t.Q6J("selectedPackage",p.selectedPackage)("servicePackages",p.servicePackages),t.xp6(1),t.Q6J("ngIf",-1!==p.selectedPackage.id)}}let L=(()=>{class M{constructor(p,_,u,v,f,D){this.dialogRef=p,this.data=_,this.notificator=u,this.translate=v,this.resourceManager=f,this.servicesManager=D,this.loading=!1,this.unAssignedServices=[],this.filteredServices=[],this.servicePackages=[],this.selectedPackage={name:"Not selected",description:"",id:-1,beanName:"ServicePackage"},this.selection=new n.Ov(!0,[]),this.tableId=A.DR,this.filterValue=""}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.resourceManager.getAssignedServicesToResource(this.data.resourceId).subscribe(p=>{this.servicesManager.getServices().subscribe(_=>{this.servicesManager.getServicesPackages().subscribe(u=>{this.servicePackages.push(this.selectedPackage),this.servicePackages=this.servicePackages.concat(u),this.unAssignedServices=_;for(const v of p)for(const f of _)v.id===f.id&&this.unAssignedServices.splice(this.unAssignedServices.indexOf(f),1);this.loading=!1})})})}onCancel(){this.dialogRef.close()}onAdd(){this.loading=!0,-1!==this.selectedPackage.id?this.addServicePackage():this.addServices()}applyFilter(p){this.filterValue=p}servicePackageSelected(p){this.selectedPackage=p,-1!==p.id?this.servicesManager.getServicesFromServicesPackage(p.id).subscribe(_=>{this.filteredServices=_}):this.filteredServices=[]}tabChanged(){this.selection.clear(),this.filterValue="",this.selectedPackage=this.servicePackages[0]}addServicePackage(){this.resourceManager.assignServicesPackage(this.data.resourceId,this.selectedPackage.id).subscribe(()=>{this.translate.get("DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.PACKAGE_SUCCESS_MESSAGE").subscribe(p=>{this.notificator.showSuccess(p),0!==this.selection.selected.length?this.addServices():this.dialogRef.close(!0)})},()=>this.loading=!1)}addServices(){const p=[];for(const _ of this.selection.selected)p.push(_.id);this.resourceManager.assignServices(this.data.resourceId,p).subscribe(()=>{this.translate.get("DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.SERVICE_SUCCESS_MESSAGE").subscribe(_=>{this.notificator.showSuccess(_),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return M.\u0275fac=function(p){return new(p||M)(t.Y36(R.so),t.Y36(R.WI),t.Y36(s.V6),t.Y36(e.sK),t.Y36(r.xk),t.Y36(r.KK))},M.\u0275cmp=t.Xpm({type:M,selectors:[["app-perun-web-apps-assign-service-to-resource-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[3,"selectedTabChange"],[3,"label"],[1,"mt-2"],[3,"placeholder","filter"],[3,"services","disableRouting","displayedColumns","filterValue","selection","tableId"],[1,"mt-3"],[3,"selectedPackage","servicePackages","packageSelected"],[3,"disableRouting","services","displayedColumns","selection","tableId",4,"ngIf"],[3,"disableRouting","services","displayedColumns","selection","tableId"]],template:function(p,_){1&p&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,G,1,0,"mat-spinner",1),t.YNc(5,P,13,19,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return _.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return _.onAdd()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&p&&(t.Tol(_.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.TITLE")),t.xp6(2),t.Q6J("ngIf",_.loading),t.xp6(1),t.Q6J("ngIf",!_.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.CANCEL_BUTTON")," "),t.xp6(2),t.Q6J("disabled",0===_.selection.selected.length&&-1===_.selectedPackage.id||_.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE."+(-1===_.selectedPackage.id?"ADD_SERVICES":"ADD_PACKAGE"))," "))},dependencies:[Q.O5,K.lW,a.SP,a.uX,R.uh,R.xY,R.H8,w.Ou,y.P,U.F,H.Q,e.X$]}),M})();var V=o(30671);function W(M,S){1&M&&t._UZ(0,"mat-spinner",6)}function oe(M,S){1&M&&t._UZ(0,"th",15)}function ne(M,S){if(1&M&&(t.TgZ(0,"td",16),t._uU(1),t.qZA()),2&M){const p=S.$implicit;t.xp6(1),t.Oqu(p.name)}}function B(M,S){1&M&&t._UZ(0,"tr",17)}function $(M,S){1&M&&t._UZ(0,"tr",18)}function b(M,S){if(1&M&&(t.TgZ(0,"div",7)(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",8),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",9),t.ynx(8,10),t.YNc(9,oe,1,0,"th",11),t.YNc(10,ne,2,1,"td",12),t.BQk(),t.YNc(11,B,1,0,"tr",13),t.YNc(12,$,1,0,"tr",14),t.qZA()()),2&M){const p=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,5,"DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.DESCRIPTION")," "),t.xp6(3),t.hij(" ",t.lcZ(6,7,"DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.ASK")," "),t.xp6(2),t.Q6J("dataSource",p.dataSource),t.xp6(4),t.Q6J("matHeaderRowDef",p.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",p.displayedColumns)}}let h=(()=>{class M{constructor(p,_,u,v,f){this.dialogRef=p,this.data=_,this.notificator=u,this.translate=v,this.resourcesManager=f,this.displayedColumns=["name"]}ngOnInit(){this.theme=this.data.theme,this.dataSource=new V.by(this.data.services)}onSubmit(){this.loading=!0;const p=[];for(const _ of this.data.services)p.push(_.id);this.resourcesManager.removeServices(this.data.resourceId,p).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.SUCCESS").subscribe(_=>{this.notificator.showSuccess(_),this.dialogRef.close(!0)})},()=>this.loading=!1)}onCancel(){this.dialogRef.close()}}return M.\u0275fac=function(p){return new(p||M)(t.Y36(R.so),t.Y36(R.WI),t.Y36(s.V6),t.Y36(e.sK),t.Y36(r.xk))},M.\u0275cmp=t.Xpm({type:M,selectors:[["app-perun-web-apps-remove-service-from-resource-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(p,_){1&p&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,W,1,0,"mat-spinner",1),t.YNc(5,b,13,9,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return _.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return _.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&p&&(t.Tol(_.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.TITLE")),t.xp6(2),t.Q6J("ngIf",_.loading),t.xp6(1),t.Q6J("ngIf",!_.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.CANCEL")," "),t.xp6(2),t.Q6J("disabled",_.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.DELETE")," "))},dependencies:[Q.O5,K.lW,V.BZ,V.fO,V.as,V.w1,V.Dz,V.nj,V.ge,V.ev,V.XQ,V.Gk,R.uh,R.xY,R.H8,w.Ou,e.X$]}),M})();var J=o(94364),C=o(96214),Y=o(7434);function k(M,S){if(1&M){const p=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(p);const u=t.oxw();return t.KtG(u.addService())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&M&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"RESOURCE_DETAIL.ASSIGNED_SERVICES.ADD_SERVICE"),"\n"))}function X(M,S){if(1&M){const p=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(p);const u=t.oxw();return t.KtG(u.removeServices())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&M){const p=t.oxw();t.Q6J("disabled",0===p.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"RESOURCE_DETAIL.ASSIGNED_SERVICES.REMOVE_SERVICE"),"\n")}}function se(M,S){1&M&&t._UZ(0,"mat-spinner",9)}function ae(M,S){if(1&M&&t._UZ(0,"app-services-list",10),2&M){const p=t.oxw();t.Q6J("disableRouting",!p.serviceRoutingAuth)("selection",p.selected)("displayedColumns",p.displayedColumns)("filterValue",p.filterValue)("services",p.assignedServices)("tableId",p.tableId)}}let re=(()=>{class M{constructor(p,_,u,v,f){this.route=p,this.resourcesManager=_,this.dialog=u,this.guiAuthResolver=v,this.entityStorageService=f,this.assignedServices=[],this.selected=new n.Ov(!0,[]),this.tableId=A.uC,this.filterValue="",this.displayedColumns=["select","id","name","enabled","script","description"]}ngOnInit(){this.loading=!0,this.resource=this.entityStorageService.getEntity(),this.getDataForAuthorization(),this.loadAllServices()}loadAllServices(){this.loading=!0,this.resourcesManager.getAssignedServicesToResource(this.resource.id).subscribe(p=>{this.assignedServices=p,this.selected.clear(),this.loading=!1})}addService(){const p=(0,m.kZ)();p.width="800px",p.data={theme:"resource-theme",resourceId:this.resource.id},this.dialog.open(L,p).afterClosed().subscribe(u=>{u&&this.loadAllServices()})}removeServices(){const p=(0,m.kZ)();p.width="500px",p.data={theme:"resource-theme",resourceId:this.resource.id,services:this.selected.selected},this.dialog.open(h,p).afterClosed().subscribe(u=>{u&&this.loadAllServices()})}applyFilter(p){this.filterValue=p}getDataForAuthorization(){this.assignServiceAuth=this.guiAuthResolver.isAuthorized("assignServices_Resource_List_policy",[this.resource]),this.removeServiceAuth=this.guiAuthResolver.isAuthorized("removeServices_Resource_List_policy",[this.resource]),this.displayedColumns=this.removeServiceAuth?["select","id","name","enabled","script","description"]:["id","name","enabled","script","description"],this.serviceRoutingAuth=this.guiAuthResolver.isPerunAdminOrObserver()}}return M.\u0275fac=function(p){return new(p||M)(t.Y36(J.gz),t.Y36(r.xk),t.Y36(R.uw),t.Y36(s.x4),t.Y36(s.fb))},M.\u0275cmp=t.Xpm({type:M,selectors:[["app-perun-web-apps-resource-assigned-services"]],decls:9,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["class","action-button mr-2","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableRouting","selection","displayedColumns","filterValue","services","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"action-button","mr-2",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"disableRouting","selection","displayedColumns","filterValue","services","tableId"]],template:function(p,_){1&p&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return _.loadAllServices()}),t.qZA(),t.YNc(4,k,3,3,"button",2),t.YNc(5,X,3,4,"button",3),t.TgZ(6,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(v){return _.applyFilter(v)}),t.qZA(),t.YNc(7,se,1,0,"mat-spinner",5),t.YNc(8,ae,1,6,"app-services-list",6)),2&p&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"RESOURCE_DETAIL.ASSIGNED_SERVICES.TITLE")),t.xp6(3),t.Q6J("ngIf",_.assignServiceAuth),t.xp6(1),t.Q6J("ngIf",_.removeServiceAuth),t.xp6(1),t.Q6J("placeholder","RESOURCE_DETAIL.ASSIGNED_SERVICES.FILTER_SERVICES"),t.xp6(1),t.Q6J("ngIf",_.loading),t.xp6(1),t.Q6J("ngIf",!_.loading))},dependencies:[Q.O5,K.lW,w.Ou,H.Q,C.t,Y.L,e.X$]}),M})()},92090:(te,j,o)=>{o.d(j,{X:()=>F});var r=o(81591),A=o(61744),n=o(94650),m=o(36895),R=o(3848),s=o(19191),t=o(12651),e=o(89383);function Q(E,I){1&E&&(n._uU(0),n.ALo(1,"translate")),2&E&&n.hij(" ",n.lcZ(1,1,"RESOURCE_DETAIL.ENTITY")," ")}function K(E,I){if(1&E&&n._UZ(0,"app-one-entity-attribute-page",4),2&E){const P=n.oxw();n.Q6J("entityId",P.resource.id)("entity","resource")}}function a(E,I){1&E&&(n._uU(0),n.ALo(1,"translate"),n.ALo(2,"translate")),2&E&&n.AsE(" ",n.lcZ(1,2,"RESOURCE_DETAIL.ENTITY")," - ",n.lcZ(2,4,"MEMBER_DETAIL.ENTITY")," ")}function w(E,I){if(1&E&&n._UZ(0,"app-two-entity-attribute-page",5),2&E){const P=n.oxw(2);n.Q6J("firstEntity","resource")("firstEntityId",P.resource.id)("secondEntity","member")}}function y(E,I){1&E&&(n.TgZ(0,"mat-tab"),n.YNc(1,a,3,6,"ng-template",1),n.YNc(2,w,1,3,"ng-template",2),n.qZA())}function U(E,I){1&E&&(n._uU(0),n.ALo(1,"translate"),n.ALo(2,"translate")),2&E&&n.AsE(" ",n.lcZ(1,2,"RESOURCE_DETAIL.ENTITY")," - ",n.lcZ(2,4,"GROUP_DETAIL.ENTITY")," ")}function H(E,I){if(1&E&&n._UZ(0,"app-two-entity-attribute-page",5),2&E){const P=n.oxw(2);n.Q6J("firstEntity","resource")("firstEntityId",P.resource.id)("secondEntity","group")}}function G(E,I){1&E&&(n.TgZ(0,"mat-tab"),n.YNc(1,U,3,6,"ng-template",1),n.YNc(2,H,1,3,"ng-template",2),n.qZA())}let F=(()=>{class E{constructor(P,L,V){this.authResolver=P,this.resourceManager=L,this.entityStorageService=V}ngOnInit(){this.resource=this.entityStorageService.getEntity(),this.resourceGroupAttAuth=this.authResolver.isAuthorized("getGroupAssignments_Resource_policy",[this.resource]),this.resourceMemberAttAuth=this.authResolver.isAuthorized("getAssignedMembersWithStatus_Resource_policy",[this.resource])}}return E.\u0275fac=function(P){return new(P||E)(n.Y36(r.x4),n.Y36(A.xk),n.Y36(r.fb))},E.\u0275cmp=n.Xpm({type:E,selectors:[["app-resource-attributes"]],hostVars:2,hostBindings:function(P,L){2&P&&n.ekj("router-component",L.true)},decls:10,vars:5,consts:[[1,"page-subtitle"],["matTabLabel",""],["matTabContent",""],[4,"ngIf"],[3,"entityId","entity"],[3,"firstEntity","firstEntityId","secondEntity"]],template:function(P,L){1&P&&(n.TgZ(0,"div")(1,"h1",0),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"mat-tab-group")(5,"mat-tab"),n.YNc(6,Q,2,3,"ng-template",1),n.YNc(7,K,1,2,"ng-template",2),n.qZA(),n.YNc(8,y,3,0,"mat-tab",3),n.YNc(9,G,3,0,"mat-tab",3),n.qZA()()),2&P&&(n.xp6(2),n.Oqu(n.lcZ(3,3,"RESOURCE_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),n.xp6(6),n.Q6J("ngIf",L.resourceMemberAttAuth),n.xp6(1),n.Q6J("ngIf",L.resourceGroupAttAuth))},dependencies:[m.O5,R.SP,R.uD,R.uX,R.Vc,s.Y,t.t,e.X$]}),E})()},98918:(te,j,o)=>{o.d(j,{b:()=>M});var r=o(36769),A=o(69024),n=o(61744),m=o(9244),R=o(81591),s=o(19516),t=o(21029),e=o(533),Q=o(22158),K=o(82722),a=o(94650),w=o(94364),y=o(77968),U=o(65412),H=o(15003),G=o(36895),F=o(97392),E=o(4859),I=o(51572),P=o(10266),L=o(61283),V=o(4235),W=o(34198),oe=o(55660),ne=o(89383);function B(S,p){1&S&&a._UZ(0,"mat-spinner",3)}function $(S,p){if(1&S){const _=a.EpF();a.TgZ(0,"button",14),a.NdJ("click",function(){a.CHM(_);const v=a.oxw(2);return a.KtG(v.editResource())}),a.TgZ(1,"mat-icon"),a._uU(2,"edit"),a.qZA()()}}function b(S,p){if(1&S){const _=a.EpF();a.TgZ(0,"button",15),a.NdJ("click",function(){a.CHM(_);const v=a.oxw(2);return a.KtG(v.deleteResource())}),a.TgZ(1,"mat-icon"),a._uU(2,"delete_forever"),a.qZA()()}}const h=function(S){return["/organizations",S]};function J(S,p){if(1&S&&(a.TgZ(0,"a",8),a.NdJ("auxclick",function(u){return u.preventDefault()}),a._uU(1),a.qZA()),2&S){const _=a.oxw(2);a.Q6J("perunWebAppsMiddleClickRouterLink",a.VKq(4,h,_.resource.vo.id.toString()))("routerLink",a.VKq(6,h,_.resource.vo.id)),a.uIk("data-cy",_.resource.vo.name),a.xp6(1),a.Oqu(_.resource.vo.name)}}function C(S,p){if(1&S&&(a.TgZ(0,"span"),a._uU(1),a.qZA()),2&S){const _=a.oxw(2);a.xp6(1),a.hij(" ",_.resource.vo.name," ")}}const Y=function(S){return["/facilities",S]};function k(S,p){if(1&S&&(a.TgZ(0,"a",8),a.NdJ("auxclick",function(u){return u.preventDefault()}),a._uU(1),a.qZA()),2&S){const _=a.oxw(2);a.Q6J("perunWebAppsMiddleClickRouterLink",a.VKq(4,Y,_.resource.facilityId.toString()))("routerLink",a.VKq(6,Y,_.resource.facilityId)),a.uIk("data-cy",_.resource.facility.name),a.xp6(1),a.Oqu(_.resource.facility.name)}}function X(S,p){if(1&S&&(a.TgZ(0,"span"),a._uU(1),a.qZA()),2&S){const _=a.oxw(2);a.xp6(1),a.hij(" ",_.resource.facility.name," ")}}const se=function(){return{color:"black"}},ae=function(S){return[S]};function re(S,p){if(1&S&&(a.TgZ(0,"div")(1,"div",4),a._UZ(2,"mat-icon",5),a.ALo(3,"translate"),a.TgZ(4,"div",6)(5,"div",7)(6,"a",8),a.NdJ("auxclick",function(u){return u.preventDefault()}),a._uU(7),a.qZA(),a.TgZ(8,"span",9),a._uU(9),a.qZA(),a.YNc(10,$,3,0,"button",10),a.YNc(11,b,3,0,"button",11),a.qZA(),a.TgZ(12,"div"),a._uU(13),a.ALo(14,"translate"),a.qZA(),a.TgZ(15,"span",12),a._uU(16),a.ALo(17,"translate"),a.ALo(18,"translate"),a.YNc(19,J,2,8,"a",13),a.YNc(20,C,2,1,"span",2),a._uU(21),a.ALo(22,"translate"),a.YNc(23,k,2,8,"a",13),a.YNc(24,X,2,1,"span",2),a._uU(25),a.ALo(26,"translate"),a.qZA()()(),a._UZ(27,"app-animated-router-outlet"),a.qZA()),2&S){const _=a.oxw();a.xp6(2),a.s9C("matTooltip",a.lcZ(3,21,"RESOURCE_DETAIL.ENTITY")),a.Q6J("ngStyle",a.DdM(33,se)),a.xp6(4),a.Q6J("perunWebAppsMiddleClickRouterLink",a.VKq(34,ae,_.baseUrl))("routerLink",a.VKq(36,ae,_.baseUrl)),a.xp6(1),a.hij(" ",_.resource.name," "),a.xp6(2),a.hij(" \xa0#",_.resource.id," "),a.xp6(1),a.Q6J("ngIf",_.editResourceAuth),a.xp6(1),a.Q6J("ngIf",_.deleteAuth),a.xp6(2),a.AsE("",a.lcZ(14,23,"RESOURCE_DETAIL.UUID"),": ",_.resource.uuid,""),a.xp6(3),a.AsE(" ",a.lcZ(17,25,"RESOURCE_DETAIL.ENTITY"),", ",a.lcZ(18,27,"RESOURCE_DETAIL.VO"),": "),a.xp6(3),a.Q6J("ngIf",_.voLinkAuth),a.xp6(1),a.Q6J("ngIf",!_.voLinkAuth),a.xp6(1),a.AsE(" #",_.resource.voId,", ",a.lcZ(22,29,"RESOURCE_DETAIL.FACILITY"),": "),a.xp6(2),a.Q6J("ngIf",_.facilityLinkAuth),a.xp6(1),a.Q6J("ngIf",!_.facilityLinkAuth),a.xp6(1),a.lnq(" #",_.resource.facilityId,", ",a.lcZ(26,31,"RESOURCE_DETAIL.DESCRIPTION"),": ",_.resource.description," ")}}let M=(()=>{class S extends((0,Q.T)()){constructor(_,u,v,f,D,g,N,c,T,Z,q){super(),this.route=_,this.facilityManager=u,this.vosManagerService=v,this.resourcesManager=f,this.sideMenuService=D,this.sideMenuItemService=g,this.dialog=N,this.guiAuthResolver=c,this.router=T,this.entityStorageService=Z,this.reloadEntityDetail=q,this.underVoUrl=!1,this.deleteAuth=!1,this.baseUrl="",this.loading=!1}ngOnInit(){this.reloadData(),this.reloadEntityDetail.entityDetailChange.pipe((0,K.R)(this.destroyed$)).subscribe(()=>{this.reloadData()})}reloadData(){this.loading=!0,this.route.params.subscribe(_=>{const u=Number(_.resourceId);this.resourcesManager.getRichResourceById(u).subscribe(v=>{this.resource=v,this.entityStorageService.setEntity({id:v.id,voId:v.voId,facilityId:v.facilityId,beanName:"Resource"}),this.setAuth(),"facilities"===this.route.parent.snapshot.url[0].path?(this.baseUrl=(new s.r5).transform(v,!1),this.facilityManager.getFacilityById(v.facilityId).subscribe(f=>{this.facility=f,this.setMenuItems(),this.loading=!1},()=>this.loading=!1)):(this.baseUrl=(new s.r5).transform(v,!0),this.vosManagerService.getVoById(v.voId).subscribe(f=>{this.vo=f,this.underVoUrl=!0,this.setMenuItems(),this.loading=!1},()=>this.loading=!1)),(0,m.sF)("resources",this.resource)})})}setMenuItems(){let _;const u=this.sideMenuItemService.parseResource(this.resource,this.underVoUrl);this.underVoUrl?(_=this.sideMenuItemService.parseVo(this.vo),this.sideMenuService.setAccessMenuItems([_,u])):(_=this.sideMenuItemService.parseFacility(this.facility),this.sideMenuService.setFacilityMenuItems([_,u]))}editResource(){let _;this.resourcesManager.getResourceById(this.resource.id).subscribe(u=>{_=u;const v=(0,m.kZ)();v.width="450px",v.data={theme:"resource-theme",resource:_,dialogType:t.Eg.RESOURCE},this.dialog.open(t.rd,v).afterClosed().subscribe(D=>{D&&this.resourcesManager.getRichResourceById(this.resource.id).subscribe(g=>{this.resource=g,this.setMenuItems()})})})}deleteResource(){const _=(0,m.kZ)();_.width="500px",_.data={theme:"resource-theme",resources:[this.resource]},this.dialog.open(e.f,_).afterClosed().subscribe(v=>{v&&this.router.navigate(["../"],{relativeTo:this.route,queryParamsHandling:"preserve"})})}setAuth(){this.facilityLinkAuth=this.guiAuthResolver.isAuthorized("getFacilityById_int_policy",[this.resource]),this.editResourceAuth=this.guiAuthResolver.isAuthorized("updateResource_Resource_policy",[this.resource]),this.voLinkAuth=this.guiAuthResolver.isAuthorized("getVoById_int_policy",[this.resource]),this.deleteAuth=this.guiAuthResolver.isAuthorized("deleteResource_Resource_policy",[this.resource])}}return S.\u0275fac=function(_){return new(_||S)(a.Y36(w.gz),a.Y36(n.IQ),a.Y36(n.YF),a.Y36(n.xk),a.Y36(y.D),a.Y36(A.V),a.Y36(U.uw),a.Y36(R.x4),a.Y36(w.F0),a.Y36(R.fb),a.Y36(H.G))},S.\u0275cmp=a.Xpm({type:S,selectors:[["app-resource-detail-page"]],features:[a.qOj],decls:4,vars:2,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","resource-theme"],["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[1,"d-flex","page-title-headtitle"],["svgIcon","perun-resource-black",1,"perun-icon","perun-icon-detail",3,"matTooltip","ngStyle"],[1,"page-title-block"],[1,"page-title-headline","d-flex","align-items-center"],[1,"resource-link",3,"perunWebAppsMiddleClickRouterLink","routerLink","auxclick"],[1,"text-muted"],["aria-label","Edit resource","mat-icon-button","",3,"click",4,"ngIf"],["mat-icon-button","",3,"click",4,"ngIf"],[1,"mt-1","entity-info"],["class","resource-link",3,"perunWebAppsMiddleClickRouterLink","routerLink","auxclick",4,"ngIf"],["aria-label","Edit resource","mat-icon-button","",3,"click"],["mat-icon-button","",3,"click"]],template:function(_,u){1&_&&(a.TgZ(0,"div",0),a._UZ(1,"perun-web-apps-back-button"),a.YNc(2,B,1,0,"mat-spinner",1),a.YNc(3,re,28,38,"div",2),a.qZA()),2&_&&(a.xp6(2),a.Q6J("ngIf",u.loading),a.xp6(1),a.Q6J("ngIf",!u.loading&&void 0!==u.resource))},dependencies:[G.O5,G.PC,w.yS,F.Hw,E.lW,I.Ou,P.gM,L.A,V.W,W.Y,oe.Q,ne.X$],styles:[".break-line[_ngcontent-%COMP%]{display:inline-block}"],data:{animation:[r.Ji]}}),S})()},258:(te,j,o)=>{o.d(j,{K:()=>D});var r=o(61744),A=o(95017),n=o(65412),m=o(30671),R=o(81591),s=o(94650),t=o(89383),e=o(36895),Q=o(4859),K=o(51572);function a(g,N){1&g&&s._UZ(0,"mat-spinner",6)}function w(g,N){1&g&&s._UZ(0,"th",15)}function y(g,N){if(1&g&&(s.TgZ(0,"td",16),s._uU(1),s.qZA()),2&g){const c=N.$implicit;s.xp6(1),s.Oqu(c.name)}}function U(g,N){1&g&&s._UZ(0,"tr",17)}function H(g,N){1&g&&s._UZ(0,"tr",18)}function G(g,N){if(1&g&&(s.TgZ(0,"div",7)(1,"p"),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"div",8),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.TgZ(7,"table",9),s.ynx(8,10),s.YNc(9,w,1,0,"th",11),s.YNc(10,y,2,1,"td",12),s.BQk(),s.YNc(11,U,1,0,"tr",13),s.YNc(12,H,1,0,"tr",14),s.qZA()()),2&g){const c=s.oxw();s.xp6(2),s.hij(" ",s.lcZ(3,5,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.DESCRIPTION")," "),s.xp6(3),s.hij(" ",s.lcZ(6,7,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.ASK")," "),s.xp6(2),s.Q6J("dataSource",c.dataSource),s.xp6(4),s.Q6J("matHeaderRowDef",c.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",c.displayedColumns)}}let F=(()=>{class g{constructor(c,T,Z,q,z){this.dialogRef=c,this.data=T,this.notificator=Z,this.translate=q,this.resourceManager=z,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new m.by(this.data.groups)}onCancel(){this.dialogRef.close()}onSubmit(){const c=[];for(const T of this.data.groups)c.push(T.id);this.loading=!0,this.resourceManager.removeGroupsFromResource(c,this.data.resourceId).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_GROUP_FROM_RESOURCE.SUCCESS").subscribe(T=>{this.notificator.showSuccess(T),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return g.\u0275fac=function(c){return new(c||g)(s.Y36(n.so),s.Y36(n.WI),s.Y36(R.V6),s.Y36(t.sK),s.Y36(r.xk))},g.\u0275cmp=s.Xpm({type:g,selectors:[["app-perun-web-apps-remove-group-from-resource-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","","data-cy","delete-button",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(c,T){1&c&&(s.TgZ(0,"div")(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,a,1,0,"mat-spinner",1),s.YNc(5,G,13,9,"div",2),s.TgZ(6,"div",3)(7,"button",4),s.NdJ("click",function(){return T.onCancel()}),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.TgZ(10,"button",5),s.NdJ("click",function(){return T.onSubmit()}),s._uU(11),s.ALo(12,"translate"),s.qZA()()()),2&c&&(s.Tol(T.theme),s.xp6(2),s.Oqu(s.lcZ(3,9,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.TITLE")),s.xp6(2),s.Q6J("ngIf",T.loading),s.xp6(1),s.Q6J("ngIf",!T.loading),s.xp6(3),s.hij(" ",s.lcZ(9,11,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.CANCEL")," "),s.xp6(2),s.Q6J("disabled",T.loading),s.xp6(1),s.hij(" ",s.lcZ(12,13,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.DELETE")," "))},dependencies:[e.O5,Q.lW,m.BZ,m.fO,m.as,m.w1,m.Dz,m.nj,m.ge,m.ev,m.XQ,m.Gk,n.uh,n.xY,n.H8,K.Ou,t.X$]}),g})();var E=o(10036),I=o(24006),P=o(90455),L=o(86257),V=o(25788),W=o(64901);const oe=["stepper"];function ne(g,N){1&g&&s._UZ(0,"mat-spinner",4)}function B(g,N){1&g&&(s._uU(0),s.ALo(1,"translate")),2&g&&s.Oqu(s.lcZ(1,1,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.GROUPS"))}function $(g,N){1&g&&(s._uU(0),s.ALo(1,"translate")),2&g&&s.Oqu(s.lcZ(1,1,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.OPTIONS"))}const b=function(){return["select","id","name","description"]};function h(g,N){if(1&g){const c=s.EpF();s.TgZ(0,"div",5)(1,"mat-stepper",6,7)(3,"mat-step",8),s.YNc(4,B,2,3,"ng-template",9),s.TgZ(5,"perun-web-apps-debounce-filter",10),s.NdJ("filter",function(Z){s.CHM(c);const q=s.oxw();return s.KtG(q.applyFilter(Z))}),s.ALo(6,"translate"),s.qZA(),s._UZ(7,"perun-web-apps-groups-list",11),s.qZA(),s.TgZ(8,"mat-step"),s.YNc(9,$,2,3,"ng-template",9),s.TgZ(10,"mat-slide-toggle",12),s.NdJ("toggleChange",function(){s.CHM(c);const Z=s.oxw();return s.KtG(Z.changeSubgroupsMessage())})("ngModelChange",function(Z){s.CHM(c);const q=s.oxw();return s.KtG(q.autoAssignSubgroups=Z)}),s._uU(11),s.ALo(12,"translate"),s.qZA(),s.TgZ(13,"div",13),s._UZ(14,"i",14),s.qZA(),s.TgZ(15,"mat-slide-toggle",12),s.NdJ("toggleChange",function(){s.CHM(c);const Z=s.oxw();return s.KtG(Z.changeInactiveMessage())})("ngModelChange",function(Z){s.CHM(c);const q=s.oxw();return s.KtG(q.asActive=Z)}),s._uU(16),s.ALo(17,"translate"),s.qZA(),s.TgZ(18,"div",13),s._uU(19),s.qZA(),s.TgZ(20,"mat-slide-toggle",12),s.NdJ("toggleChange",function(){s.CHM(c);const Z=s.oxw();return s.KtG(Z.changeAsyncMessage())})("ngModelChange",function(Z){s.CHM(c);const q=s.oxw();return s.KtG(q.async=Z)}),s._uU(21),s.ALo(22,"translate"),s.qZA(),s.TgZ(23,"div",13),s._uU(24),s.qZA()()()()}if(2&g){const c=s.oxw();s.xp6(1),s.Q6J("linear",!0),s.xp6(2),s.Q6J("completed",0!==c.selection.selected.length&&c.canAddGroups()),s.xp6(2),s.s9C("placeholder",s.lcZ(6,19,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.FILTER_DESCRIPTION")),s.xp6(2),s.Q6J("disableMembers",!1)("groups",c.unAssignedGroups)("selection",c.selection)("disableRouting",!0)("displayedColumns",s.DdM(27,b))("filter",c.filterValue)("tableId",c.tableId),s.xp6(3),s.Q6J("ngModel",c.autoAssignSubgroups),s.xp6(1),s.hij(" ",s.lcZ(12,21,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.AUTO_SUBGROUPS")," "),s.xp6(3),s.Q6J("innerHTML",c.autoAssignHint,s.oJD),s.xp6(1),s.Q6J("ngModel",c.asActive),s.xp6(1),s.hij(" ",s.lcZ(17,23,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.AS_ACTIVE")," "),s.xp6(3),s.hij(" ",c.asActiveHint," "),s.xp6(1),s.Q6J("ngModel",c.async),s.xp6(1),s.hij(" ",s.lcZ(22,25,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ASYNC_OPT")," "),s.xp6(3),s.hij(" ",c.asyncHint," ")}}function J(g,N){if(1&g){const c=s.EpF();s.TgZ(0,"button",20),s.NdJ("click",function(){s.CHM(c);const Z=s.oxw(2);return s.KtG(Z.stepperPrevious())}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&g&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.BACK")," "))}function C(g,N){if(1&g){const c=s.EpF();s.TgZ(0,"button",21),s.NdJ("click",function(){s.CHM(c);const Z=s.oxw(2);return s.KtG(Z.stepperNext())}),s._uU(1),s.ALo(2,"translate"),s.qZA()}if(2&g){const c=s.oxw(2);s.ekj("ml-2",void 0!==c.stepper&&0!==c.stepper.selectedIndex)("ml-auto",!(void 0!==c.stepper&&0!==c.stepper.selectedIndex)),s.Q6J("disabled",0===c.selection.selected.length||!c.canAddGroups()),s.xp6(1),s.hij(" ",s.lcZ(2,6,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.NEXT")," ")}}function Y(g,N){if(1&g){const c=s.EpF();s.TgZ(0,"button",22),s.NdJ("click",function(){s.CHM(c);const Z=s.oxw(2);return s.KtG(Z.onAdd())}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&g&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ADD_BUTTON")," "))}function k(g,N){if(1&g){const c=s.EpF();s.TgZ(0,"div",15)(1,"button",16),s.NdJ("click",function(){s.CHM(c);const Z=s.oxw();return s.KtG(Z.onCancel())}),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,J,3,3,"button",17),s.YNc(5,C,3,8,"button",18),s.YNc(6,Y,3,3,"button",19),s.qZA()}if(2&g){const c=s.oxw();s.xp6(2),s.hij(" ",s.lcZ(3,4,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.CANCEL_BUTTON")," "),s.xp6(2),s.Q6J("ngIf",void 0!==c.stepper&&0!==c.stepper.selectedIndex),s.xp6(1),s.Q6J("ngIf",void 0!==c.stepper&&c.stepper.selectedIndex!==c.stepper._steps.length-1),s.xp6(1),s.Q6J("ngIf",void 0!==c.stepper&&c.stepper.selectedIndex===c.stepper._steps.length-1)}}let X=(()=>{class g{constructor(c,T,Z,q,z,ie,pe,ge){this.dialogRef=c,this.data=T,this.notificator=Z,this.translate=q,this.resourceManager=z,this.groupService=ie,this.guiAuthResolver=pe,this.cd=ge,this.loading=!1,this.unAssignedGroups=this.data.onlyAutoAssignedGroups,this.async=!0,this.autoAssignSubgroups=!1,this.asActive=!0,this.selection=new A.Ov(!0,[]),this.filterValue="",this.tableId=E.cL}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.resource=this.data.resource,this.autoAssignHint=this.translate.instant("DIALOGS.ASSIGN_GROUP_TO_RESOURCE.AUTO_SUBGROUPS_OFF_HINT"),this.asActiveHint=this.translate.instant("DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ACTIVE_ON_HINT"),this.asyncHint=this.translate.instant("DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ASYNC_ON_HINT"),this.resourceManager.getAssignedGroups(this.resource.id).subscribe(c=>{this.groupService.getAllGroups(this.resource.voId).subscribe(T=>{for(const Z of T)-1===c.findIndex(q=>q.id===Z.id)&&this.guiAuthResolver.isAuthorized("assignGroupsToResource_List_Resource_policy",[this.resource,Z])&&this.unAssignedGroups.push(Z);this.loading=!1,this.cd.detectChanges()},()=>this.loading=!1)},()=>this.loading=!1)}onCancel(){this.dialogRef.close()}onAdd(){this.loading=!0;const c=[];for(const T of this.selection.selected)c.push(T.id);this.resourceManager.assignGroupsToResource(c,this.resource.id,this.async,!this.asActive,this.autoAssignSubgroups).subscribe(()=>{this.translate.get("DIALOGS.ASSIGN_GROUP_TO_RESOURCE.SUCCESS_MESSAGE").subscribe(T=>{this.notificator.showSuccess(T),this.dialogRef.close(!0)})},()=>this.loading=!1)}applyFilter(c){this.filterValue=c}canAddGroups(){let c=!0;return this.selection.selected.forEach(T=>{this.guiAuthResolver.isAuthorized("assignGroupsToResource_List_Resource_policy",[this.resource,T])||(c=!1)}),c}changeSubgroupsMessage(){this.autoAssignHint=this.translate.instant(this.autoAssignSubgroups?"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.AUTO_SUBGROUPS_OFF_HINT":"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.AUTO_SUBGROUPS_ON_HINT")}changeInactiveMessage(){this.asActiveHint=this.translate.instant(this.asActive?"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ACTIVE_OFF_HINT":"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ACTIVE_ON_HINT")}changeAsyncMessage(){this.asyncHint=this.translate.instant(this.async?"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ASYNC_OFF_HINT":"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ASYNC_ON_HINT")}stepperPrevious(){this.stepper.previous()}stepperNext(){this.stepper.next()}}return g.\u0275fac=function(c){return new(c||g)(s.Y36(n.so),s.Y36(n.WI),s.Y36(R.V6),s.Y36(t.sK),s.Y36(r.xk),s.Y36(r.ff),s.Y36(R.x4),s.Y36(s.sBO))},g.\u0275cmp=s.Xpm({type:g,selectors:[["app-perun-web-apps-assign-group-to-resource-dialog"]],viewQuery:function(c,T){if(1&c&&s.Gf(oe,5),2&c){let Z;s.iGM(Z=s.CRH())&&(T.stepper=Z.first)}},decls:7,vars:9,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"linear"],["stepper",""],[3,"completed"],["matStepLabel",""],[3,"placeholder","filter"],[3,"disableMembers","groups","selection","disableRouting","displayedColumns","filter","tableId"],["labelPosition","before",1,"mt-3","slide-text",3,"ngModel","toggleChange","ngModelChange"],[1,"text-muted","new-line","mt-2"],[3,"innerHTML"],["mat-dialog-actions",""],["mat-flat-button","",3,"click"],["class","ml-auto","mat-flat-button","",3,"click",4,"ngIf"],["color","accent","mat-flat-button","","type","button","data-cy","next-button",3,"ml-2","ml-auto","disabled","click",4,"ngIf"],["class","ml-2","color","accent","mat-flat-button","","type","button","data-cy","assign-button",3,"click",4,"ngIf"],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","","type","button","data-cy","next-button",3,"disabled","click"],["color","accent","mat-flat-button","","type","button","data-cy","assign-button",1,"ml-2",3,"click"]],template:function(c,T){1&c&&(s.TgZ(0,"div")(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,ne,1,0,"mat-spinner",1),s.YNc(5,h,25,28,"div",2),s.YNc(6,k,7,6,"div",3),s.qZA()),2&c&&(s.Tol(T.theme),s.xp6(2),s.Oqu(s.lcZ(3,7,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.TITLE")),s.xp6(2),s.Q6J("ngIf",T.loading),s.xp6(1),s.Q6J("ngIf",!T.loading),s.xp6(1),s.Q6J("ngIf",!T.loading&&T.stepper))},dependencies:[e.O5,I.JJ,I.On,Q.lW,n.uh,n.xY,n.H8,K.Ou,P.Rr,L.C0,L.VY,L.Vq,V.W,W.P,t.X$],styles:[".slide-text[_ngcontent-%COMP%]{font-size:1.1rem}"]}),g})();var se=o(9244),ae=o(64080),re=o(94364),M=o(10266),S=o(96214);function p(g,N){if(1&g){const c=s.EpF();s.TgZ(0,"button",8),s.NdJ("click",function(){s.CHM(c);const Z=s.oxw();return s.KtG(Z.addGroup())}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&g&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"RESOURCE_DETAIL.ASSIGNED_GROUPS.ADD_GROUP"),"\n"))}function _(g,N){1&g&&s._UZ(0,"mat-spinner",9)}const u=function(g){return[g]},v=function(){return["select","id","indirectGroupAssigment","name","status","description"]};function f(g,N){if(1&g){const c=s.EpF();s.TgZ(0,"perun-web-apps-groups-list",10),s.NdJ("refreshTable",function(){s.CHM(c);const Z=s.oxw();return s.KtG(Z.loadAllGroups())}),s.qZA()}if(2&g){const c=s.oxw();s.Q6J("disableGroups",!0)("groupsToDisableCheckbox",c.groupsToDisable)("disableMembers",!1)("groups",c.assignedGroups)("disableRouting",!!c.assignedGroups[0]&&!c.guiAuthResolver.isAuthorized("getGroupById_int_policy",s.VKq(10,u,c.assignedGroups[0])))("displayedColumns",s.DdM(12,v))("filter",c.filteredValue)("resourceId",c.resource.id)("selection",c.selected)("tableId",c.tableId)}}let D=(()=>{class g{constructor(c,T,Z,q,z){this.route=c,this.resourcesManager=T,this.dialog=Z,this.guiAuthResolver=q,this.entityStorageService=z,this.assignedGroups=[],this.selected=new A.Ov(!0,[]),this.filteredValue="",this.tableId=E.Ad}ngOnInit(){this.loading=!0,this.resource=this.entityStorageService.getEntity(),this.loadAllGroups()}loadAllGroups(){this.loading=!0,this.resourcesManager.getGroupAssignments(this.resource.id,[ae.r.GROUP_SYNC_ENABLED]).subscribe(c=>{this.assignedGroups=c.map(z=>{const ie=z.enrichedGroup.group;return ie.status=z.status,ie.failureCause=z.failureCause,ie.sourceGroupId=z.sourceGroupId,ie});const T=this.assignedGroups.map(z=>z.id),Z=this.assignedGroups.filter((z,ie)=>T.indexOf(z.id)===ie),q=this.assignedGroups.filter((z,ie)=>{const pe=T.indexOf(z.id);return pe!==ie&&(null===z.sourceGroupId||null===this.assignedGroups[pe].sourceGroupId)}).map(z=>z.id);Z.forEach(z=>{q.includes(z.id)&&(z.moreTypesOfAssignment=!0)}),this.assignedGroups=Z,this.groupsToDisable=new Set(this.assignedGroups.filter(z=>!!z.sourceGroupId&&!z.moreTypesOfAssignment).map(z=>z.id)),this.selected.clear(),this.loading=!1})}addGroup(){const c=(0,se.kZ)();c.width="1000px",c.data={theme:"resource-theme",resource:this.resource,onlyAutoAssignedGroups:this.assignedGroups.filter(Z=>this.groupsToDisable.has(Z.id))},this.dialog.open(X,c).afterClosed().subscribe(Z=>{Z&&this.loadAllGroups()})}removeGroups(){const c=(0,se.kZ)();c.width="500px",c.data={resourceId:this.resource.id,groups:this.selected.selected,theme:"resource-theme"},this.dialog.open(F,c).afterClosed().subscribe(Z=>{Z&&this.loadAllGroups()})}canRemoveGroups(){let c=!0;return this.selected.selected.forEach(T=>{this.guiAuthResolver.isAuthorized("removeGroupsFromResource_List_Resource_policy",[this.resource,T])||(c=!1)}),c}applyFilter(c){this.filteredValue=c}}return g.\u0275fac=function(c){return new(c||g)(s.Y36(re.gz),s.Y36(r.xk),s.Y36(n.uw),s.Y36(R.x4),s.Y36(R.fb))},g.\u0275cmp=s.Xpm({type:g,selectors:[["app-perun-web-apps-resource-groups"]],decls:13,vars:17,consts:[[1,"page-subtitle"],[3,"refresh"],["class","action-button","color","accent","mat-flat-button","","data-cy","add-group-button",3,"click",4,"ngIf"],["color","warn","mat-flat-button","","data-cy","remove-group-button",1,"ml-2","mr-2",3,"disabled","click"],[3,"matTooltipDisabled","matTooltip"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableGroups","groupsToDisableCheckbox","disableMembers","groups","disableRouting","displayedColumns","filter","resourceId","selection","tableId","refreshTable",4,"ngIf"],["color","accent","mat-flat-button","","data-cy","add-group-button",1,"action-button",3,"click"],[1,"ml-auto","mr-auto"],[3,"disableGroups","groupsToDisableCheckbox","disableMembers","groups","disableRouting","displayedColumns","filter","resourceId","selection","tableId","refreshTable"]],template:function(c,T){1&c&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.TgZ(3,"perun-web-apps-refresh-button",1),s.NdJ("refresh",function(){return T.loadAllGroups()}),s.qZA(),s.YNc(4,p,3,3,"button",2),s.TgZ(5,"button",3),s.NdJ("click",function(){return T.removeGroups()}),s.TgZ(6,"span",4),s.ALo(7,"translate"),s._uU(8),s.ALo(9,"translate"),s.qZA()(),s.TgZ(10,"perun-web-apps-debounce-filter",5),s.NdJ("filter",function(q){return T.applyFilter(q)}),s.qZA(),s.YNc(11,_,1,0,"mat-spinner",6),s.YNc(12,f,1,13,"perun-web-apps-groups-list",7)),2&c&&(s.xp6(1),s.Oqu(s.lcZ(2,9,"RESOURCE_DETAIL.ASSIGNED_GROUPS.TITLE")),s.xp6(3),s.Q6J("ngIf",T.guiAuthResolver.isAuthorized("getAllGroups_Vo_policy",s.VKq(15,u,T.resource))),s.xp6(1),s.Q6J("disabled",0===T.selected.selected.length||!T.canRemoveGroups()),s.xp6(1),s.s9C("matTooltip",s.lcZ(7,11,"RESOURCE_DETAIL.ASSIGNED_GROUPS.REMOVE_TOOLTIP")),s.Q6J("matTooltipDisabled",T.canRemoveGroups()),s.xp6(2),s.hij(" ",s.lcZ(9,13,"RESOURCE_DETAIL.ASSIGNED_GROUPS.REMOVE_GROUP")," "),s.xp6(2),s.Q6J("placeholder","RESOURCE_DETAIL.ASSIGNED_GROUPS.FILTER_GROUPS"),s.xp6(1),s.Q6J("ngIf",T.loading),s.xp6(1),s.Q6J("ngIf",!T.loading))},dependencies:[e.O5,Q.lW,K.Ou,M.gM,V.W,S.t,W.P,t.X$]}),g})()},4675:(te,j,o)=>{o.d(j,{H:()=>K});var r=o(61744),A=o(81591),n=o(94650),m=o(94364),R=o(36895),s=o(51572),t=o(71135);function e(a,w){1&a&&n._UZ(0,"mat-spinner",2)}function Q(a,w){if(1&a&&(n.TgZ(0,"div"),n._UZ(1,"perun-web-apps-menu-buttons-field",3),n.qZA()),2&a){const y=n.oxw();n.xp6(1),n.Q6J("items",y.navItems)("size","small")}}let K=(()=>{class a{constructor(y,U,H,G,F){this.resourcesManager=y,this.route=U,this.guiAuthResolver=H,this.entityStorageService=G,this.routePolicyService=F,this.navItems=[],this.loading=!1}ngOnInit(){this.loading=!0,this.resource=this.entityStorageService.getEntity(),this.initItems("facilities"!==this.route.parent.parent.snapshot.url[0].path),this.loading=!1}initItems(y){const U=y?`/organizations/${this.resource.voId}`:`/facilities/${this.resource.facilityId}`;this.navItems=[],this.routePolicyService.canNavigate("resources-groups",this.resource)&&this.navItems.push({cssIcon:"perun-group",url:`${U}/resources/${this.resource.id}/groups`,label:"MENU_ITEMS.RESOURCE.ASSIGNED_GROUPS",style:"resource-btn"}),this.routePolicyService.canNavigate("resources-services",this.resource)&&this.navItems.push({cssIcon:"perun-service",url:`${U}/resources/${this.resource.id}/services`,label:"MENU_ITEMS.RESOURCE.ASSIGNED_SERVICES",style:"resource-btn"}),this.routePolicyService.canNavigate("resources-members",this.resource)&&this.navItems.push({cssIcon:"perun-user",url:`${U}/resources/${this.resource.id}/members`,label:"MENU_ITEMS.RESOURCE.ASSIGNED_MEMBERS",style:"resource-btn"}),this.routePolicyService.canNavigate("resources-tags",this.resource)&&this.navItems.push({cssIcon:"perun-resource-tags",url:`${U}/resources/${this.resource.id}/tags`,label:"MENU_ITEMS.RESOURCE.RESOURCE_TAGS",style:"resource-btn"}),this.routePolicyService.canNavigate("resources-attributes",this.resource)&&this.navItems.push({cssIcon:"perun-attributes",url:`${U}/resources/${this.resource.id}/attributes`,label:"MENU_ITEMS.RESOURCE.ATTRIBUTES",style:"resource-btn"}),this.routePolicyService.canNavigate("resources-settings",this.resource)&&this.navItems.push({cssIcon:"perun-settings2",url:`${U}/resources/${this.resource.id}/settings`,label:"MENU_ITEMS.RESOURCE.SETTINGS",style:"resource-btn"})}}return a.\u0275fac=function(y){return new(y||a)(n.Y36(r.xk),n.Y36(m.gz),n.Y36(A.x4),n.Y36(A.fb),n.Y36(A.Ip))},a.\u0275cmp=n.Xpm({type:a,selectors:[["app-resource-overview"]],hostVars:2,hostBindings:function(y,U){2&y&&n.ekj("router-component",U.true)},decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"items","size"]],template:function(y,U){1&y&&(n.YNc(0,e,1,0,"mat-spinner",0),n.YNc(1,Q,2,2,"div",1)),2&y&&(n.Q6J("ngIf",U.loading),n.xp6(1),n.Q6J("ngIf",!U.loading))},dependencies:[R.O5,s.Ou,t.L]}),a})()},35265:(te,j,o)=>{o.d(j,{I:()=>b});var r=o(61744),A=o(95017),n=o(81591),m=o(9244),R=o(21029),s=o(10036),t=o(65412),e=o(94650),Q=o(38383),K=o(64901),a=o(83370);const w=function(){return["checkbox","id","fullName"]};let y=(()=>{class h{constructor(C,Y,k,X,se){this.data=C,this.dialogRef=Y,this.store=k,this.resourceService=X,this.notificator=se,this.selection=new A.Ov(!1,[]),this.loading=!1,this.displayedColumns=["checkbox","id","fullName","organization","email","logins"],this.members=[],this.tableId=s.bj,this.filter=""}ngOnInit(){this.loading=!0,this.resourceService.getAssignedRichMembers(this.data.entityId).subscribe({next:C=>{this.members=C,this.loading=!1},error:()=>this.loading=!1}),this.selection.changed.subscribe(C=>{this.ban=this.data.bans.find(Y=>Y.memberId===C.source.selected[0]?.id)})}cancel(){this.dialogRef.close(!1)}submitBan(C){this.ban?this.updateBan(C):this.banMember(C)}banMember(C){this.loading=!0,this.resourceService.setResourceBan({banOnResource:{memberId:this.selection.selected[0].id,resourceId:this.data.entityId,description:C.description,validityTo:C.validity,id:0,beanName:"BanOnResource"}}).subscribe({next:()=>{this.notificator.showSuccess("DIALOGS.ADD_BAN.SUCCESS_MEMBER"),this.dialogRef.close(!0)},error:()=>this.loading=!1})}updateBan(C){this.loading=!0,this.resourceService.updateResourceBan({banOnResource:{id:this.ban.id,beanName:"BanOnFacility",resourceId:this.ban.resourceId,memberId:this.ban.memberId,description:C.description,validityTo:C.validity}}).subscribe({next:()=>{this.notificator.showSuccess("DIALOGS.UPDATE_BAN.SUCCESS"),this.dialogRef.close(!0)},error:()=>{this.loading=!1}})}}return h.\u0275fac=function(C){return new(C||h)(e.Y36(t.WI),e.Y36(t.so),e.Y36(n.d6),e.Y36(r.xk),e.Y36(n.V6))},h.\u0275cmp=e.Xpm({type:h,selectors:[["app-add-resource-ban-dialog"]],decls:3,vars:13,consts:[[3,"loading","disabled","theme","ban","add","cancel"],[3,"placeholder","filter"],[3,"displayedColumns","selection","disableRouting","allowCheckboxDisabled","filter","members","tableId"]],template:function(C,Y){1&C&&(e.TgZ(0,"app-add-ban-dialog",0),e.NdJ("add",function(X){return Y.submitBan(X)})("cancel",function(){return Y.cancel()}),e.TgZ(1,"perun-web-apps-debounce-filter",1),e.NdJ("filter",function(X){return Y.filter=X}),e.qZA(),e._UZ(2,"perun-web-apps-members-list",2),e.qZA()),2&C&&(e.Q6J("loading",Y.loading)("disabled",0===Y.selection.selected.length)("theme",Y.data.theme)("ban",Y.ban),e.xp6(1),e.Q6J("placeholder","DIALOGS.ADD_BAN.FILTER"),e.xp6(1),e.Q6J("displayedColumns",e.DdM(12,w))("selection",Y.selection)("disableRouting",!0)("allowCheckboxDisabled",!1)("filter",Y.filter)("members",Y.members)("tableId",Y.tableId))},dependencies:[Q.O,K.P,a.u]}),h})();var U=o(64080),H=o(28943),G=o(19516),F=o(36895),E=o(4859),I=o(51572),P=o(96214),L=o(73358),V=o(91880),W=o(89383);function oe(h,J){if(1&h){const C=e.EpF();e.TgZ(0,"button",8),e.NdJ("click",function(){e.CHM(C);const k=e.oxw();return e.KtG(k.add())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&h&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"RESOURCE_DETAIL.SETTINGS.BANS.ADD"),"\n"))}function ne(h,J){if(1&h){const C=e.EpF();e.TgZ(0,"button",9),e.NdJ("click",function(){e.CHM(C);const k=e.oxw();return e.KtG(k.remove())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}if(2&h){const C=e.oxw();e.Q6J("disabled",0===C.selection.selected.length),e.xp6(1),e.hij(" ",e.lcZ(2,2,"RESOURCE_DETAIL.SETTINGS.BANS.REMOVE"),"\n")}}function B(h,J){if(1&h){const C=e.EpF();e.TgZ(0,"perun-web-apps-ban-on-entity-list",10),e.NdJ("updateBan",function(k){e.CHM(C);const X=e.oxw();return e.KtG(X.update(k))}),e.qZA()}if(2&h){const C=e.oxw();e.Q6J("bans",C.bans)("selection",C.selection)("displayedColumns",C.displayedColumns)("filter",C.filter)("updatePolicy","updateBan_BanOnResource_policy")}}function $(h,J){1&h&&(e.TgZ(0,"div",11),e._UZ(1,"mat-spinner"),e.qZA())}let b=(()=>{class h{constructor(C,Y,k,X,se,ae,re){this.resourceService=C,this.entityService=Y,this.authResolver=k,this.dialog=X,this.notificator=se,this.store=ae,this.userName=re,this.loading=!1,this.bans=[],this.removeAuth=!1,this.filter="",this.selection=new A.Ov(!1,[]),this.attrNames=[U.r.MEMBER_DEF_MAIL,U.r.USER_DEF_PREFERRED_MAIL].concat(this.store.getLoginAttributeNames()),this.displayedColumns=["select","banId","subjectId","subjectName","description","expiration","edit"]}ngOnInit(){this.loading=!0,this.resource=this.entityService.getEntity(),this.addAuth=this.authResolver.isAuthorized("setBan_BanOnResource_policy",[this.resource]),this.removeAuth=this.authResolver.isAuthorized("resource-removeBan_int_policy",[this.resource]),this.refresh()}refresh(){this.loading=!0,this.resourceService.getEnrichedBansForResource(this.resource.id,this.attrNames).subscribe({next:C=>{this.bans=C,this.selection.clear(),this.loading=!1},error:()=>this.loading=!1})}add(){const C=(0,m.kZ)();C.width="850px",C.data={entityId:this.resource.id,theme:"resource-theme",bans:this.bans.map(k=>k.ban)},this.dialog.open(y,C).afterClosed().subscribe(k=>{k&&this.refresh()})}remove(){const C=(0,m.kZ)();C.width="550px",C.data={theme:"resource-theme",title:"DIALOGS.REMOVE_BAN.TITLE",description:"DIALOGS.REMOVE_BAN.DESCRIPTION",items:[this.userName.transform(this.selection.selected[0].member.user)],type:"remove",showAsk:!0},this.dialog.open(R.Ts,C).afterClosed().subscribe(k=>{k&&this.resourceService.removeResourceBanById(this.selection.selected[0].ban.id).subscribe(()=>{this.notificator.showSuccess("DIALOGS.REMOVE_BAN.SUCCESS"),this.refresh()})})}update(C){const Y=(0,m.kZ)();Y.width="600px",Y.data={ban:C.ban,theme:"facility-theme"},this.dialog.open(H.e,Y).afterClosed().subscribe(X=>{X&&this.refresh()})}}return h.\u0275fac=function(C){return new(C||h)(e.Y36(r.xk),e.Y36(n.fb),e.Y36(n.x4),e.Y36(t.uw),e.Y36(n.V6),e.Y36(n.d6),e.Y36(G.dp))},h.\u0275cmp=e.Xpm({type:h,selectors:[["app-resource-settings-bans"]],features:[e._Bn([G.dp])],decls:11,vars:8,consts:[[1,"page-subtitle"],[3,"click"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["color","warn","class","mr-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],[1,"mt-2","search-field",3,"placeholder","filter"],[1,"position-relative"],[3,"bans","selection","displayedColumns","filter","updatePolicy","updateBan",4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["spinner",""],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[3,"bans","selection","displayedColumns","filter","updatePolicy","updateBan"],[1,"spinner-container"]],template:function(C,Y){if(1&C&&(e.TgZ(0,"h1",0),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.TgZ(3,"perun-web-apps-refresh-button",1),e.NdJ("click",function(){return Y.refresh()}),e.qZA(),e.YNc(4,oe,3,3,"button",2),e.YNc(5,ne,3,4,"button",3),e.TgZ(6,"perun-web-apps-debounce-filter",4),e.NdJ("filter",function(X){return Y.filter=X}),e.qZA(),e.TgZ(7,"div",5),e.YNc(8,B,1,5,"perun-web-apps-ban-on-entity-list",6),e.qZA(),e.YNc(9,$,2,0,"ng-template",null,7,e.W1O)),2&C){const k=e.MAs(10);e.xp6(1),e.hij(" ",e.lcZ(2,6,"RESOURCE_DETAIL.SETTINGS.BANS.TITLE"),"\n"),e.xp6(3),e.Q6J("ngIf",Y.addAuth),e.xp6(1),e.Q6J("ngIf",Y.removeAuth),e.xp6(1),e.Q6J("placeholder","RESOURCE_DETAIL.SETTINGS.BANS.FILTER"),e.xp6(2),e.Q6J("perunWebAppsLoader",Y.loading)("perunWebAppsLoaderIndicator",k)}},dependencies:[F.O5,E.lW,I.Ou,P.t,K.P,L.e,V.s,W.X$]}),h})()},20057:(te,j,o)=>{o.d(j,{O:()=>m});var r=o(81591),A=o(94650),n=o(28361);let m=(()=>{class R{constructor(t,e){this.guiAuthResolver=t,this.entityStorageService=e,this.availableRoles=[],this.type="Resource",this.theme="resource-theme"}ngOnInit(){this.resource=this.entityStorageService.getEntity(),this.guiAuthResolver.assignAvailableRoles(this.availableRoles,"Resource")}}return R.\u0275fac=function(t){return new(t||R)(A.Y36(r.x4),A.Y36(r.fb))},R.\u0275cmp=A.Xpm({type:R,selectors:[["app-resource-settings-managers"]],decls:1,vars:4,consts:[[3,"complementaryObject","availableRoles","complementaryObjectType","theme"]],template:function(t,e){1&t&&A._UZ(0,"app-managers-page",0),2&t&&A.Q6J("complementaryObject",e.resource)("availableRoles",e.availableRoles)("complementaryObjectType",e.type)("theme",e.theme)},dependencies:[n.s]}),R})()},16500:(te,j,o)=>{o.d(j,{h:()=>K});var r=o(61744),A=o(81591),n=o(94650),m=o(94364),R=o(36895),s=o(51572),t=o(71135);function e(a,w){1&a&&n._UZ(0,"mat-spinner",2)}function Q(a,w){if(1&a&&(n.TgZ(0,"div"),n._UZ(1,"perun-web-apps-menu-buttons-field",3),n.qZA()),2&a){const y=n.oxw();n.xp6(1),n.Q6J("items",y.items)("size","small")}}let K=(()=>{class a{constructor(y,U,H,G,F){this.route=y,this.resourceManager=U,this.authResolver=H,this.entityStorageService=G,this.routePolicyService=F,this.items=[],this.loading=!1}ngOnInit(){this.loading=!0,this.resource=this.entityStorageService.getEntity(),this.initItems("facilities"!==this.route.parent.parent.parent.snapshot.url[0].path),this.loading=!1}initItems(y){this.items=[],this.routePolicyService.canNavigate("resources-settings-managers",this.resource)&&this.items.push({cssIcon:"perun-manager",url:`${y?`/organizations/${this.resource.voId}`:`/facilities/${this.resource.facilityId}`}/resources/${this.resource.id}/settings/managers`,label:"MENU_ITEMS.RESOURCE.MANAGERS",style:"resource-btn"}),this.routePolicyService.canNavigate("resources-settings-bans",this.resource)&&this.items.push({cssIcon:"perun-ban",url:`${y?`/organizations/${this.resource.voId}`:`/facilities/${this.resource.facilityId}`}/resources/${this.resource.id}/settings/bans`,label:"MENU_ITEMS.RESOURCE.BANS",style:"resource-btn"})}}return a.\u0275fac=function(y){return new(y||a)(n.Y36(m.gz),n.Y36(r.xk),n.Y36(A.x4),n.Y36(A.fb),n.Y36(A.Ip))},a.\u0275cmp=n.Xpm({type:a,selectors:[["app-resource-settings-overview"]],hostVars:2,hostBindings:function(y,U){2&y&&n.ekj("router-component",U.true)},decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"items","size"]],template:function(y,U){1&y&&(n.YNc(0,e,1,0,"mat-spinner",0),n.YNc(1,Q,2,2,"div",1)),2&y&&(n.Q6J("ngIf",U.loading),n.xp6(1),n.Q6J("ngIf",!U.loading))},dependencies:[R.O5,s.Ou,t.L]}),a})()},60113:(te,j,o)=>{o.d(j,{t:()=>m});var r=o(36769),A=o(94650),n=o(61283);let m=(()=>{class R{}return R.\u0275fac=function(t){return new(t||R)},R.\u0275cmp=A.Xpm({type:R,selectors:[["app-resource-settings"]],hostVars:2,hostBindings:function(t,e){2&t&&A.ekj("router-component",e.true)},decls:1,vars:0,template:function(t,e){1&t&&A._UZ(0,"app-animated-router-outlet")},dependencies:[n.A],data:{animation:[r.Ji]}}),R})()},20872:(te,j,o)=>{o.d(j,{v:()=>ne});var r=o(61744),A=o(95017),n=o(10036),m=o(9244),R=o(81591),s=o(21029),t=o(65412),e=o(94650),Q=o(36895),K=o(4859),a=o(51572),w=o(17672),y=o(89383);function U(B,$){1&B&&e._UZ(0,"mat-spinner",8)}function H(B,$){if(1&B&&e._UZ(0,"app-resources-tags-list",9),2&B){const b=e.oxw();e.Q6J("selection",b.selection)("displayedColumns",b.displayedColumns)("entity","resource")("filterValue",b.filterValue)("resourceTags",b.resourceTags)("tableId",b.tableId)}}let G=(()=>{class B{constructor(b,h,J){this.dialogRef=b,this.data=h,this.resourcesManager=J,this.tableId=n.g,this.selection=new A.Ov(!0,[]),this.resourceTags=[],this.displayedColumns=["select","id","name"]}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.voId=this.data.voId,this.resourceId=this.data.resourceId,this.assignedTags=this.data.assignedTags,this.resourcesManager.getAllResourcesTagsForVo(this.voId).subscribe(b=>{this.resourceTags=b.filter(h=>!this.assignedTags.map(J=>J.id).includes(h.id)),this.loading=!1})}onCancel(){this.dialogRef.close(!1)}onSubmit(b){this.resourcesManager.assignResourceTagsToResource({resource:this.resourceId,resourceTags:b}).subscribe(()=>{this.dialogRef.close(!0)})}applyFilter(b){this.filterValue=b}}return B.\u0275fac=function(b){return new(b||B)(e.Y36(t.so),e.Y36(t.WI),e.Y36(r.xk))},B.\u0275cmp=e.Xpm({type:B,selectors:[["app-add-resource-tag-to-resource-dialog"]],decls:15,vars:15,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"overflow-hidden"],["class","mr-auto ml-auto",4,"ngIf"],[3,"selection","displayedColumns","entity","filterValue","resourceTags","tableId",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],[3,"selection","displayedColumns","entity","filterValue","resourceTags","tableId"]],template:function(b,h){1&b&&(e.TgZ(0,"div")(1,"h1",0),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",1)(5,"div",2),e.YNc(6,U,1,0,"mat-spinner",3),e.qZA(),e.YNc(7,H,1,6,"app-resources-tags-list",4),e.qZA(),e.TgZ(8,"div",5)(9,"button",6),e.NdJ("click",function(){return h.onCancel()}),e._uU(10),e.ALo(11,"translate"),e.qZA(),e.TgZ(12,"button",7),e.NdJ("click",function(){return h.onSubmit(h.selection.selected)}),e._uU(13),e.ALo(14,"translate"),e.qZA()()()),2&b&&(e.Tol(h.theme),e.xp6(2),e.Oqu(e.lcZ(3,9,"RESOURCE_DETAIL.TAGS.ADD_TAGS")),e.xp6(4),e.Q6J("ngIf",h.loading),e.xp6(1),e.Q6J("ngIf",!h.loading),e.xp6(3),e.hij(" ",e.lcZ(11,11,"RESOURCE_DETAIL.TAGS.CANCEL")," "),e.xp6(2),e.Q6J("disabled",h.loading||0===h.resourceTags.length),e.xp6(1),e.hij(" ",e.lcZ(14,13,"RESOURCE_DETAIL.TAGS.ADD_BUTTON")," "))},dependencies:[Q.O5,K.lW,t.uh,t.xY,t.H8,a.Ou,w.o,y.X$]}),B})();var F=o(17584),E=o(96214),I=o(7434);function P(B,$){if(1&B){const b=e.EpF();e.TgZ(0,"button",7),e.NdJ("click",function(){e.CHM(b);const J=e.oxw();return e.KtG(J.create())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&B&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.CREATE_BUTTON"),"\n"))}function L(B,$){if(1&B){const b=e.EpF();e.TgZ(0,"button",7),e.NdJ("click",function(){e.CHM(b);const J=e.oxw();return e.KtG(J.addTag())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&B&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"RESOURCE_DETAIL.TAGS.ADD_BUTTON"),"\n"))}function V(B,$){if(1&B){const b=e.EpF();e.TgZ(0,"button",8),e.NdJ("click",function(){e.CHM(b);const J=e.oxw();return e.KtG(J.removeTags())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}if(2&B){const b=e.oxw();e.Q6J("disabled",0===b.selection.selected.length),e.xp6(1),e.hij(" ",e.lcZ(2,2,"RESOURCE_DETAIL.TAGS.REMOVE_BUTTON"),"\n")}}function W(B,$){1&B&&e._UZ(0,"mat-spinner",9)}function oe(B,$){if(1&B&&e._UZ(0,"app-resources-tags-list",10),2&B){const b=e.oxw();e.Q6J("displayedColumns",b.displayedColumns)("entity","resource")("resourceTags",b.resourceTags)("filterValue",b.filterValue)("selection",b.selection)("tableId",b.tableId)}}let ne=(()=>{class B{constructor(b,h,J,C,Y,k){this.authResolver=b,this.resourcesManager=h,this.dialog=J,this.notificator=C,this.translate=Y,this.entityStorageService=k,this.loading=!1,this.resourceTags=[],this.selection=new A.Ov(!0,[]),this.tableId=n.M8,this.displayedColumns=[]}ngOnInit(){this.loading=!0,this.resource=this.entityStorageService.getEntity(),this.setAuthRights(),this.updateData()}removeTags(){const b=(0,m.kZ)();b.width="450px",b.data={items:this.selection.selected.map(J=>J.tagName),title:"RESOURCE_DETAIL.TAGS.REMOVE_TAGS_DIALOG_TITLE",description:"RESOURCE_DETAIL.TAGS.REMOVE_TAGS_DIALOG_DESCRIPTION",theme:"resource-theme",type:"remove",showAsk:!0},this.dialog.open(s.Ts,b).afterClosed().subscribe(J=>{J&&this.resourcesManager.removeResourceTagsFromResource({resource:this.resource.id,resourceTags:this.selection.selected}).subscribe(()=>(this.notificator.showSuccess(this.translate.instant("RESOURCE_DETAIL.TAGS.REMOVED_SUCCESSFULLY")),this.updateData()))})}addTag(){const b=(0,m.kZ)();b.width="600px",b.data={voId:this.resource.voId,resourceId:this.resource.id,assignedTags:this.resourceTags,theme:"resource-theme"},this.dialog.open(G,b).afterClosed().subscribe(J=>{J&&(this.notificator.showSuccess(this.translate.instant("RESOURCE_DETAIL.TAGS.ADDED_SUCCESSFULLY")),this.updateData())})}create(){const b=(0,m.kZ)();b.width="450px",b.data={voId:this.resource.voId,theme:"resource-theme"},this.dialog.open(F.p,b).afterClosed().subscribe(J=>{J&&(this.notificator.showSuccess(this.translate.instant("VO_DETAIL.RESOURCES.TAGS.CREATE_SUCCESS")),this.updateData())})}updateData(){this.loading=!0,this.selection.clear(),this.resourcesManager.getAllResourcesTagsForResource(this.resource.id).subscribe(b=>{this.resourceTags=b,this.selection.clear(),this.loading=!1})}setAuthRights(){const b={id:this.resource.voId,beanName:"Vo"};this.displayedColumns=[],this.createAuth=this.authResolver.isAuthorized("createResourceTag_ResourceTag_Vo_policy",[b]),this.addAuth=this.authResolver.isAuthorized("assignResourceTagToResource_ResourceTag_Resource_policy",[this.resource]),this.removeAuth=this.authResolver.isAuthorized("removeResourceTagFromResource_ResourceTag_Resource_policy",[this.resource]),this.displayedColumns=this.removeAuth?["select","id","name"]:["id","name"]}applyFilter(b){this.filterValue=b}}return B.\u0275fac=function(b){return new(b||B)(e.Y36(R.x4),e.Y36(r.xk),e.Y36(t.uw),e.Y36(R.V6),e.Y36(R.Te),e.Y36(R.fb))},B.\u0275cmp=e.Xpm({type:B,selectors:[["app-perun-web-apps-resource-tags"]],decls:10,vars:9,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"displayedColumns","entity","resourceTags","filterValue","selection","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","entity","resourceTags","filterValue","selection","tableId"]],template:function(b,h){1&b&&(e.TgZ(0,"h1",0),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.TgZ(3,"perun-web-apps-refresh-button",1),e.NdJ("refresh",function(){return h.updateData()}),e.qZA(),e.YNc(4,P,3,3,"button",2),e.YNc(5,L,3,3,"button",2),e.YNc(6,V,3,4,"button",3),e.TgZ(7,"perun-web-apps-immediate-filter",4),e.NdJ("filter",function(C){return h.applyFilter(C)}),e.qZA(),e.YNc(8,W,1,0,"mat-spinner",5),e.YNc(9,oe,1,6,"app-resources-tags-list",6)),2&b&&(e.xp6(1),e.Oqu(e.lcZ(2,7,"RESOURCE_DETAIL.TAGS.TITLE")),e.xp6(3),e.Q6J("ngIf",h.createAuth),e.xp6(1),e.Q6J("ngIf",h.addAuth),e.xp6(1),e.Q6J("ngIf",h.removeAuth),e.xp6(1),e.Q6J("placeholder","RESOURCE_DETAIL.TAGS.SEARCH"),e.xp6(1),e.Q6J("ngIf",h.loading),e.xp6(1),e.Q6J("ngIf",!h.loading))},dependencies:[Q.O5,K.lW,a.Ou,w.o,E.t,I.L,y.X$]}),B})()},83370:(te,j,o)=>{o.d(j,{u:()=>E});var r=o(94650),A=o(37433),n=o(36895),m=o(4859),R=o(65412),s=o(51572),t=o(86257),e=o(98380),Q=o(29926),K=o(89383);function a(I,P){1&I&&r._UZ(0,"mat-spinner",13)}function w(I,P){1&I&&(r.TgZ(0,"perun-web-apps-alert",16),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&I&&(r.Q6J("alert_type","info"),r.xp6(1),r.hij(" ",r.lcZ(2,2,"DIALOGS.ADD_BAN.ALREADY_BANNED")," "))}function y(I,P){if(1&I&&(r.TgZ(0,"div"),r.YNc(1,w,3,4,"perun-web-apps-alert",14),r._UZ(2,"perun-web-apps-ban-specification",15),r.qZA()),2&I){const L=r.oxw();r.xp6(1),r.Q6J("ngIf",L.ban),r.xp6(1),r.Q6J("description",null==L.ban?null:L.ban.description)("validity",null==L.ban?null:L.ban.validityTo)}}function U(I,P){if(1&I){const L=r.EpF();r.TgZ(0,"button",17),r.NdJ("click",function(){r.CHM(L),r.oxw();const W=r.MAs(6);return r.KtG(W.next())}),r._uU(1),r.ALo(2,"translate"),r.qZA()}if(2&I){const L=r.oxw();r.Q6J("disabled",L.disabled),r.xp6(1),r.hij(" ",r.lcZ(2,2,"DIALOGS.ADD_BAN.NEXT")," ")}}function H(I,P){if(1&I){const L=r.EpF();r.TgZ(0,"button",18),r.NdJ("click",function(){r.CHM(L),r.oxw();const W=r.MAs(6);return r.KtG(W.previous())}),r._uU(1),r.ALo(2,"translate"),r.qZA()}2&I&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"DIALOGS.ADD_BAN.BACK")," "))}function G(I,P){if(1&I){const L=r.EpF();r.TgZ(0,"button",19),r.NdJ("click",function(){r.CHM(L);const W=r.oxw();return r.KtG(W.addBan())}),r._uU(1),r.ALo(2,"translate"),r.qZA()}if(2&I){const L=r.oxw();r.xp6(1),r.hij(" ",r.lcZ(2,1,L.ban?"DIALOGS.ADD_BAN.UPDATE":"DIALOGS.ADD_BAN.ADD")," ")}}const F=["*"];let E=(()=>{class I{constructor(){this.loading=!1,this.disabled=!1,this.add=new r.vpe,this.cancel=new r.vpe}addBan(){this.add.emit({description:this.banForm.getDescription(),validity:this.banForm.getValidity()})}}return I.\u0275fac=function(L){return new(L||I)},I.\u0275cmp=r.Xpm({type:I,selectors:[["app-add-ban-dialog"]],viewQuery:function(L,V){if(1&L&&r.Gf(A.CZ,5),2&L){let W;r.iGM(W=r.CRH())&&(V.banForm=W.first)}},inputs:{loading:"loading",disabled:"disabled",theme:"theme",ban:"ban"},outputs:{add:"add",cancel:"cancel"},ngContentSelectors:F,decls:21,vars:22,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[3,"linear"],["stepper",""],[3,"completed","label"],[3,"label"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["mat-flat-button","","class","mr-2","color","accent",3,"disabled","click",4,"ngIf"],["mat-flat-button","","class","mr-2",3,"click",4,"ngIf"],["mat-flat-button","","color","accent",3,"click",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"alert_type",4,"ngIf"],[3,"description","validity"],[3,"alert_type"],["mat-flat-button","","color","accent",1,"mr-2",3,"disabled","click"],["mat-flat-button","",1,"mr-2",3,"click"],["mat-flat-button","","color","accent",3,"click"]],template:function(L,V){if(1&L&&(r.F$t(),r.TgZ(0,"div")(1,"h1",0),r._uU(2),r.ALo(3,"translate"),r.qZA(),r.TgZ(4,"div",1)(5,"mat-stepper",2,3)(7,"mat-step",4),r.ALo(8,"translate"),r.Hsn(9),r.qZA(),r.TgZ(10,"mat-step",5),r.ALo(11,"translate"),r.YNc(12,a,1,0,"mat-spinner",6),r.YNc(13,y,3,3,"div",7),r.qZA()()(),r.TgZ(14,"div",8)(15,"button",9),r.NdJ("click",function(){return V.cancel.emit()}),r._uU(16),r.ALo(17,"translate"),r.qZA(),r.YNc(18,U,3,4,"button",10),r.YNc(19,H,3,3,"button",11),r.YNc(20,G,3,3,"button",12),r.qZA()()),2&L){const W=r.MAs(6);r.Tol(V.theme),r.xp6(2),r.Oqu(r.lcZ(3,14,"DIALOGS.ADD_BAN.TITLE")),r.xp6(3),r.Q6J("linear",!0),r.xp6(2),r.Q6J("completed",!V.disabled)("label",r.lcZ(8,16,"DIALOGS.ADD_BAN.SELECTION")),r.xp6(3),r.Q6J("label",r.lcZ(11,18,"DIALOGS.ADD_BAN.SPECIFICATION")),r.xp6(2),r.Q6J("ngIf",V.loading),r.xp6(1),r.Q6J("ngIf",!V.loading),r.xp6(3),r.hij(" ",r.lcZ(17,20,"DIALOGS.ADD_BAN.CANCEL")," "),r.xp6(2),r.Q6J("ngIf",W.selectedIndex!==(null==W||null==W._steps?null:W._steps.length)-1),r.xp6(1),r.Q6J("ngIf",W.selectedIndex===(null==W||null==W._steps?null:W._steps.length)-1),r.xp6(1),r.Q6J("ngIf",W.selectedIndex===(null==W||null==W._steps?null:W._steps.length)-1)}},dependencies:[n.O5,m.lW,R.uh,R.xY,R.H8,s.Ou,t.C0,t.Vq,e.w,Q.C,K.X$]}),I})()},17584:(te,j,o)=>{o.d(j,{p:()=>y});var r=o(65412),A=o(61744),n=o(94650),m=o(36895),R=o(59549),s=o(284),t=o(24006),e=o(4859),Q=o(51572),K=o(89383);function a(U,H){1&U&&n._UZ(0,"mat-spinner",6)}function w(U,H){if(1&U){const G=n.EpF();n.TgZ(0,"div",7)(1,"mat-form-field")(2,"input",8),n.NdJ("ngModelChange",function(E){n.CHM(G);const I=n.oxw();return n.KtG(I.name=E)}),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"mat-error"),n._uU(5),n.ALo(6,"translate"),n.qZA()()()}if(2&U){const G=n.oxw();n.xp6(2),n.s9C("placeholder",n.lcZ(3,3,"DIALOGS.CREATE_RESOURCE_TAG.NAME")),n.Q6J("ngModel",G.name),n.xp6(3),n.Oqu(n.lcZ(6,5,"DIALOGS.CREATE_RESOURCE_TAG.EMPTY_NAME"))}}let y=(()=>{class U{constructor(G,F,E){this.dialogRef=G,this.data=F,this.resourceManager=E,this.name="",this.loading=!1}ngOnInit(){this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}onSubmit(){""!==this.name&&(this.loading=!0,this.resourceManager.createResourceTagWithTagName(this.name,this.data.voId).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1))}}return U.\u0275fac=function(G){return new(G||U)(n.Y36(r.so),n.Y36(r.WI),n.Y36(A.xk))},U.\u0275cmp=n.Xpm({type:U,selectors:[["app-create-resource-tag-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","",3,"placeholder","ngModel","ngModelChange"]],template:function(G,F){1&G&&(n.TgZ(0,"div")(1,"h1",0),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.YNc(4,a,1,0,"mat-spinner",1),n.YNc(5,w,7,7,"div",2),n.TgZ(6,"div",3)(7,"button",4),n.NdJ("click",function(){return F.onCancel()}),n._uU(8),n.ALo(9,"translate"),n.qZA(),n.TgZ(10,"button",5),n.NdJ("click",function(){return F.onSubmit()}),n._uU(11),n.ALo(12,"translate"),n.qZA()()()),2&G&&(n.Tol(F.theme),n.xp6(2),n.Oqu(n.lcZ(3,9,"DIALOGS.CREATE_RESOURCE_TAG.TITLE")),n.xp6(2),n.Q6J("ngIf",F.loading),n.xp6(1),n.Q6J("ngIf",!F.loading),n.xp6(3),n.hij(" ",n.lcZ(9,11,"DIALOGS.CREATE_RESOURCE_TAG.CANCEL")," "),n.xp6(2),n.Q6J("disabled",F.loading),n.xp6(1),n.hij(" ",n.lcZ(12,13,"DIALOGS.CREATE_RESOURCE_TAG.CREATE")," "))},dependencies:[m.O5,R.TO,R.KE,s.Nt,t.Fj,t.JJ,t.Q7,t.On,e.lW,r.uh,r.xY,r.H8,Q.Ou,K.X$]}),U})()},28361:(te,j,o)=>{o.d(j,{s:()=>Pe});var r=o(95017),A=o(65412),n=o(81591),m=o(61744),R=o(10036),s=o(64080),t=o(24006),e=o(94650),Q=o(89383),K=o(94364),a=o(36895),w=o(3238),y=o(59549),U=o(284),H=o(4859),G=o(84385),F=o(51572),E=o(98380),I=o(22308),P=o(64877),L=o(23123);function V(l,O){if(1&l&&(e.TgZ(0,"mat-option",15),e._uU(1),e.ALo(2,"displayedRole"),e.qZA()),2&l){const i=O.$implicit;e.Q6J("value",i.roleName),e.xp6(1),e.hij(" ",e.lcZ(2,2,i)," ")}}function W(l,O){1&l&&e._UZ(0,"mat-spinner",16)}function oe(l,O){1&l&&(e.TgZ(0,"perun-web-apps-alert",20),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&l&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"DIALOGS.ADD_MANAGERS.NO_USERS_FOUND")," "))}const ne=function(){return["select","id","name","email","logins","organization"]};function B(l,O){if(1&l&&e._UZ(0,"app-users-list",21),2&l){const i=e.oxw(2);e.Q6J("disableRouting",!0)("selection",i.selection)("displayedColumns",e.DdM(5,ne))("tableId",i.tableId)("users",i.users)}}function $(l,O){if(1&l&&(e.TgZ(0,"div",17),e.YNc(1,oe,3,3,"perun-web-apps-alert",18),e.YNc(2,B,1,6,"app-users-list",19),e.qZA()),2&l){const i=e.oxw();e.xp6(1),e.Q6J("ngIf",0===i.users.length&&i.firstSearchDone),e.xp6(1),e.Q6J("ngIf",0!==i.users.length)}}let b=(()=>{class l{constructor(i,d,x,ee,le,ce,ue,he,fe){this.dialogRef=i,this.data=d,this.authzService=x,this.usersService=ee,this.translate=le,this.notificator=ce,this.storeService=ue,this.route=he,this.router=fe,this.selection=new r.Ov(!0,[]),this.users=[],this.firstSearchDone=!1,this.tableId=R.H2,le.get("DIALOGS.ADD_MANAGERS.TITLE").subscribe(_e=>this.title=_e),le.get("DIALOGS.ADD_MANAGERS.SUCCESS").subscribe(_e=>this.successMessage=_e)}ngOnInit(){this.theme=this.data.theme,this.availableRoles=this.data.availableRoles,this.selectedRole=this.data.selectedRole,this.searchCtrl=new t.p4("",[t.kI.required,t.kI.pattern(".*[\\S]+.*")])}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.authzService.setRoleWithUserComplementaryObject({role:this.selectedRole,users:this.selection.selected.map(i=>i.id),complementaryObject:this.data.complementaryObject}).subscribe({next:()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},error:()=>this.loading=!1})}onSearchByString(){if(this.searchCtrl.invalid)return void this.searchCtrl.markAllAsTouched();this.loading=!0,this.selection.clear();let i=[s.r.USER_DEF_ORGANIZATION,s.r.USER_DEF_PREFERRED_MAIL];i=i.concat(this.storeService.getLoginAttributeNames()),this.usersService.findRichUsersWithAttributes(this.searchCtrl.value,i).subscribe({next:d=>{this.users=d,this.loading=!1,this.firstSearchDone=!0},error:()=>this.loading=!1})}}return l.\u0275fac=function(i){return new(i||l)(e.Y36(A.so),e.Y36(A.WI),e.Y36(m.Ct),e.Y36(m.Fv),e.Y36(Q.sK),e.Y36(n.V6),e.Y36(n.d6),e.Y36(K.gz),e.Y36(K.F0))},l.\u0275cmp=e.Xpm({type:l,selectors:[["app-add-manager-dialog"]],decls:31,vars:31,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"inline-dialog-items"],[1,"mr-2"],[3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[1,"mr-2","w-100"],["matInput","","autocomplete","false","data-cy","search-manager-input","perunWebAppsAutoFocus","",3,"placeholder","formControl","keyup.enter"],["color","accent","data-cy","search-manager-button","mat-flat-button","",1,"ml-auto",3,"disabled","click"],[1,"overflow-hidden"],["class","mr-auto ml-auto",4,"ngIf"],["class","mt-3",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","data-cy","add-manager-button-dialog","mat-flat-button","",1,"ml-2",3,"disabled","click"],[3,"value"],[1,"mr-auto","ml-auto"],[1,"mt-3"],["alert_type","warn",4,"ngIf"],[3,"disableRouting","selection","displayedColumns","tableId","users",4,"ngIf"],["alert_type","warn"],[3,"disableRouting","selection","displayedColumns","tableId","users"]],template:function(i,d){1&i&&(e.TgZ(0,"div")(1,"h1",0),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",1)(5,"div",2)(6,"mat-form-field",3)(7,"mat-label"),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"mat-select",4),e.NdJ("valueChange",function(ee){return d.selectedRole=ee}),e.YNc(11,V,3,4,"mat-option",5),e.qZA()(),e.TgZ(12,"mat-form-field",6)(13,"input",7),e.NdJ("keyup.enter",function(){return d.onSearchByString()}),e.ALo(14,"translate"),e.qZA(),e.TgZ(15,"mat-error"),e._uU(16),e.ALo(17,"translate"),e.qZA()()(),e.TgZ(18,"button",8),e.NdJ("click",function(){return d.onSearchByString()}),e._uU(19),e.ALo(20,"translate"),e.qZA(),e.TgZ(21,"div",9),e.YNc(22,W,1,0,"mat-spinner",10),e.qZA(),e.YNc(23,$,3,2,"div",11),e.qZA(),e.TgZ(24,"div",12)(25,"button",13),e.NdJ("click",function(){return d.onCancel()}),e._uU(26),e.ALo(27,"translate"),e.qZA(),e.TgZ(28,"button",14),e.NdJ("click",function(){return d.onSubmit()}),e._uU(29),e.ALo(30,"translate"),e.qZA()()()),2&i&&(e.Tol(d.theme),e.xp6(2),e.Oqu(e.lcZ(3,17,"DIALOGS.ADD_MANAGERS.TITLE")),e.xp6(6),e.Oqu(e.lcZ(9,19,"SHARED.COMPONENTS.MANAGERS_PAGE.SELECT_ROLE")),e.xp6(2),e.Q6J("value",d.selectedRole),e.xp6(1),e.Q6J("ngForOf",d.availableRoles),e.xp6(2),e.s9C("placeholder",e.lcZ(14,21,"DIALOGS.ADD_MANAGERS.DESCRIPTION")),e.Q6J("formControl",d.searchCtrl),e.xp6(3),e.hij(" ",e.lcZ(17,23,"DIALOGS.ADD_MANAGERS.EMPTY_SEARCH_MESSAGE")," "),e.xp6(2),e.Q6J("disabled",d.loading),e.xp6(1),e.hij(" ",e.lcZ(20,25,"DIALOGS.ADD_MANAGERS.SEARCH")," "),e.xp6(3),e.Q6J("ngIf",d.loading),e.xp6(1),e.Q6J("ngIf",null!==d.users&&!d.loading),e.xp6(3),e.hij(" ",e.lcZ(27,27,"DIALOGS.ADD_MANAGERS.CANCEL")," "),e.xp6(2),e.Q6J("disabled",0===d.selection.selected.length||void 0===d.selectedRole||d.loading),e.xp6(1),e.hij(" ",e.lcZ(30,29,"DIALOGS.ADD_MANAGERS.CREATE")," "))},dependencies:[a.sg,a.O5,w.ey,y.TO,y.KE,y.hX,U.Nt,t.Fj,t.JJ,t.oH,H.lW,A.uh,A.xY,A.H8,G.gD,F.Ou,E.w,I.h,P.C,Q.X$,L.i],styles:[".inline-dialog-items[_ngcontent-%COMP%]{display:flex;align-items:flex-end}"]}),l})();var h=o(30671);function J(l,O){1&l&&e._UZ(0,"th",15)}function C(l,O){if(1&l&&(e.TgZ(0,"td",16),e._uU(1),e.qZA()),2&l){const i=O.$implicit;e.xp6(1),e.AsE("",i.firstName," ",i.lastName,"")}}function Y(l,O){1&l&&e._UZ(0,"tr",17)}function k(l,O){1&l&&e._UZ(0,"tr",18)}const X=function(l){return{role:l}};function se(l,O){if(1&l&&(e.TgZ(0,"perun-web-apps-alert",19),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"displayedRole"),e.qZA()),2&l){const i=e.oxw(2);e.xp6(1),e.hij(" ",e.xi3(2,1,"DIALOGS.REMOVE_MANAGERS.WARNING_REMOVE_YOURSELF",e.VKq(6,X,e.lcZ(3,4,i.data.role)))," ")}}function ae(l,O){if(1&l&&(e.TgZ(0,"div",6)(1,"p"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",7),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"table",8),e.ynx(8,9),e.YNc(9,J,1,0,"th",10),e.YNc(10,C,2,2,"td",11),e.BQk(),e.YNc(11,Y,1,0,"tr",12),e.YNc(12,k,1,0,"tr",13),e.qZA(),e.YNc(13,se,4,8,"perun-web-apps-alert",14),e.qZA()),2&l){const i=e.oxw();e.xp6(2),e.hij(" ",e.lcZ(3,6,"DIALOGS.REMOVE_MANAGERS.DESCRIPTION")," "),e.xp6(3),e.hij(" ",e.lcZ(6,8,"DIALOGS.REMOVE_MANAGERS.ASK")," "),e.xp6(2),e.Q6J("dataSource",i.dataSource),e.xp6(4),e.Q6J("matHeaderRowDef",i.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",i.displayedColumns),e.xp6(1),e.Q6J("ngIf",i.removeSelf)}}function re(l,O){1&l&&e._UZ(0,"mat-spinner",20)}let M=(()=>{class l{constructor(i,d,x,ee,le,ce,ue){this.dialogRef=i,this.data=d,this.notificator=x,this.translate=ee,this.authzService=le,this.store=ce,this.authService=ue,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new h.by(this.data.managers),this.theme=this.data.theme,this.removeSelf=this.data.managers.map(i=>i.id).includes(this.store.getPerunPrincipal().userId)&&!this.authService.isPerunAdmin()}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.authzService.unsetRoleWithUserComplementaryObject({role:this.data.role,users:this.data.managers.map(i=>i.id),complementaryObject:this.data.complementaryObject}).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_MANAGERS.SUCCESS").subscribe(i=>{this.notificator.showSuccess(i),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)},()=>this.loading=!1)}}return l.\u0275fac=function(i){return new(i||l)(e.Y36(A.so),e.Y36(A.WI),e.Y36(n.V6),e.Y36(Q.sK),e.Y36(m.Ct),e.Y36(n.d6),e.Y36(n.x4))},l.\u0275cmp=e.Xpm({type:l,selectors:[["app-remove-manager-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["mat-dialog-content","",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","data-cy","remove-manager-button-dialog","mat-flat-button","",1,"ml-2",3,"disabled","click"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""],["alert_type","warn"],[1,"mr-auto","ml-auto"]],template:function(i,d){1&i&&(e.TgZ(0,"div")(1,"h1",0),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.YNc(4,ae,14,10,"div",1),e.YNc(5,re,1,0,"mat-spinner",2),e.TgZ(6,"div",3)(7,"button",4),e.NdJ("click",function(){return d.onCancel()}),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"button",5),e.NdJ("click",function(){return d.onSubmit()}),e._uU(11),e.ALo(12,"translate"),e.qZA()()()),2&i&&(e.Tol(d.theme),e.xp6(2),e.Oqu(e.lcZ(3,9,"DIALOGS.REMOVE_MANAGERS.TITLE")),e.xp6(2),e.Q6J("ngIf",!d.loading),e.xp6(1),e.Q6J("ngIf",d.loading),e.xp6(3),e.hij(" ",e.lcZ(9,11,"DIALOGS.REMOVE_MANAGERS.CANCEL")," "),e.xp6(2),e.Q6J("disabled",d.loading),e.xp6(1),e.hij(" ",e.lcZ(12,13,"DIALOGS.REMOVE_MANAGERS.DELETE")," "))},dependencies:[a.O5,H.lW,h.BZ,h.fO,h.as,h.w1,h.Dz,h.nj,h.ge,h.ev,h.XQ,h.Gk,A.uh,A.xY,A.H8,F.Ou,E.w,Q.X$,L.i]}),l})();function S(l,O){1&l&&e._UZ(0,"mat-spinner",6)}function p(l,O){1&l&&e._UZ(0,"th",15)}function _(l,O){if(1&l&&(e.TgZ(0,"td",16),e._uU(1),e.qZA()),2&l){const i=O.$implicit;e.xp6(1),e.Oqu(i.name)}}function u(l,O){1&l&&e._UZ(0,"tr",17)}function v(l,O){1&l&&e._UZ(0,"tr",18)}function f(l,O){if(1&l&&(e.TgZ(0,"div",7)(1,"p"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",8),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"table",9),e.ynx(8,10),e.YNc(9,p,1,0,"th",11),e.YNc(10,_,2,1,"td",12),e.BQk(),e.YNc(11,u,1,0,"tr",13),e.YNc(12,v,1,0,"tr",14),e.qZA()()),2&l){const i=e.oxw();e.xp6(2),e.hij(" ",e.lcZ(3,5,"DIALOGS.REMOVE_GROUPS.DESCRIPTION")," "),e.xp6(3),e.hij(" ",e.lcZ(6,7,"DIALOGS.REMOVE_GROUPS.ASK")," "),e.xp6(2),e.Q6J("dataSource",i.dataSource),e.xp6(4),e.Q6J("matHeaderRowDef",i.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",i.displayedColumns)}}let D=(()=>{class l{constructor(i,d,x,ee,le){this.dialogRef=i,this.data=d,this.notificator=x,this.translate=ee,this.authzService=le,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new h.by(this.data.groups),this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.authzService.unsetRoleWithGroupComplementaryObject({role:this.data.role,authorizedGroups:this.data.groups.map(i=>i.id),complementaryObject:this.data.complementaryObject}).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_GROUPS.SUCCESS").subscribe(i=>{this.notificator.showSuccess(i),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)},()=>this.loading=!1)}}return l.\u0275fac=function(i){return new(i||l)(e.Y36(A.so),e.Y36(A.WI),e.Y36(n.V6),e.Y36(Q.sK),e.Y36(m.Ct))},l.\u0275cmp=e.Xpm({type:l,selectors:[["app-remove-group-manager-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(i,d){1&i&&(e.TgZ(0,"div")(1,"h1",0),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.YNc(4,S,1,0,"mat-spinner",1),e.YNc(5,f,13,9,"div",2),e.TgZ(6,"div",3)(7,"button",4),e.NdJ("click",function(){return d.onCancel()}),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"button",5),e.NdJ("click",function(){return d.onSubmit()}),e._uU(11),e.ALo(12,"translate"),e.qZA()()()),2&i&&(e.Tol(d.theme),e.xp6(2),e.Oqu(e.lcZ(3,9,"DIALOGS.REMOVE_GROUPS.TITLE")),e.xp6(2),e.Q6J("ngIf",d.loading),e.xp6(1),e.Q6J("ngIf",!d.loading),e.xp6(3),e.hij(" ",e.lcZ(9,11,"DIALOGS.REMOVE_GROUPS.CANCEL")," "),e.xp6(2),e.Q6J("disabled",d.loading),e.xp6(1),e.hij(" ",e.lcZ(12,13,"DIALOGS.REMOVE_GROUPS.DELETE")," "))},dependencies:[a.O5,H.lW,h.BZ,h.fO,h.as,h.w1,h.Dz,h.nj,h.ge,h.ev,h.XQ,h.Gk,A.uh,A.xY,A.H8,F.Ou,Q.X$]}),l})();var g=o(68675),N=o(54004),c=o(47957),T=o(25788),Z=o(64901);function q(l,O){if(1&l&&(e.TgZ(0,"mat-option",17),e._uU(1),e.ALo(2,"displayedRole"),e.qZA()),2&l){const i=O.$implicit;e.Q6J("value",i.roleName),e.xp6(1),e.hij(" ",e.lcZ(2,2,i)," ")}}function z(l,O){if(1&l&&(e.TgZ(0,"mat-option",17),e._uU(1),e.qZA()),2&l){const i=O.$implicit;e.Q6J("value",i),e.xp6(1),e.hij(" ",i.name," ")}}function ie(l,O){if(1&l){const i=e.EpF();e.TgZ(0,"perun-web-apps-debounce-filter",18),e.NdJ("filter",function(x){e.CHM(i);const ee=e.oxw();return e.KtG(ee.applyFilter(x))}),e.ALo(1,"translate"),e.qZA()}2&l&&e.s9C("placeholder",e.lcZ(1,1,"DIALOGS.ADD_GROUPS.FILTER_GROUPS"))}function pe(l,O){1&l&&e._UZ(0,"mat-spinner",19)}const ge=function(){return["select","id","name","description"]};function Ae(l,O){if(1&l&&(e.TgZ(0,"div",20),e._UZ(1,"perun-web-apps-groups-list",21),e.qZA()),2&l){const i=e.oxw();e.xp6(1),e.Q6J("disableMembers",!1)("disableRouting",!0)("displayedColumns",e.DdM(7,ge))("selection",i.selection)("groups",i.groups)("filter",i.filterValue)("tableId",i.tableId)}}let Re=(()=>{class l{constructor(i,d,x,ee,le,ce,ue,he,fe){this.dialogRef=i,this.data=d,this.authzService=x,this.voService=ee,this.groupService=le,this.translate=ce,this.notificator=ue,this.route=he,this.router=fe,this.searchString="",this.selection=new r.Ov(!0,[]),this.groups=[],this.vos=[],this.filterValue="",this.myControl=new t.p4,this.firstSearchDone=!1,this.tableId=R.kZ,ce.get("DIALOGS.ADD_GROUPS.TITLE").subscribe(_e=>this.title=_e),ce.get("DIALOGS.ADD_GROUPS.SUCCESS").subscribe(_e=>this.successMessage=_e)}displayFn(i){return i?i.name:null}onCancel(){this.dialogRef.close()}onSubmit(){this.loading=!0,this.authzService.setRoleWithGroupComplementaryObject({role:this.selectedRole,authorizedGroups:this.selection.selected.map(i=>i.id),complementaryObject:this.data.complementaryObject}).subscribe({next:()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},error:()=>this.loading=!1})}ngOnInit(){this.loading=!0,this.availableRoles=this.data.availableRoles,this.selectedRole=this.data.selectedRole,this.theme=this.data.theme,this.voService.getMyVos().subscribe({next:i=>{this.filteredOptions=this.myControl.valueChanges.pipe((0,g.O)(""),(0,N.U)(d=>this._filter(d))),this.vos=i,this.loading=!1},error:()=>this.loading=!1})}showVoGroups(i){this.loading=!0,this.groupService.getAllGroups(i.option.value.id).subscribe({next:d=>{this.groups=d,this.loading=!1,this.firstSearchDone=!0},error:()=>this.loading=!1})}applyFilter(i){this.filterValue=i}_filter(i){const d="string"==typeof i?i.toLowerCase():i.name.toLowerCase();return this.vos.filter(x=>x.name.toLowerCase().includes(d))}}return l.\u0275fac=function(i){return new(i||l)(e.Y36(A.so),e.Y36(A.WI),e.Y36(m.Ct),e.Y36(m.YF),e.Y36(m.ff),e.Y36(Q.sK),e.Y36(n.V6),e.Y36(K.gz),e.Y36(K.F0))},l.\u0275cmp=e.Xpm({type:l,selectors:[["app-add-group-manager-dialog"]],decls:33,vars:33,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"inline-dialog-items"],[1,"mr-2"],[3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[1,"mr-2","w-75"],["aria-label","Assignee","matInput","","type","text",3,"formControl","matAutocomplete","placeholder"],[3,"displayWith","optionSelected"],["auto","matAutocomplete"],[3,"placeholder","filter",4,"ngIf"],[1,"overflow-hidden"],["class","mr-auto ml-auto",4,"ngIf"],["class","mt-3",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[3,"value"],[3,"placeholder","filter"],[1,"mr-auto","ml-auto"],[1,"mt-3"],[3,"disableMembers","disableRouting","displayedColumns","selection","groups","filter","tableId"]],template:function(i,d){if(1&i&&(e.TgZ(0,"div")(1,"h1",0),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",1)(5,"div",2)(6,"mat-form-field",3)(7,"mat-label"),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"mat-select",4),e.NdJ("valueChange",function(ee){return d.selectedRole=ee}),e.YNc(11,q,3,4,"mat-option",5),e.qZA()(),e.TgZ(12,"mat-form-field",6)(13,"mat-label"),e._uU(14),e.ALo(15,"translate"),e.qZA(),e._UZ(16,"input",7),e.ALo(17,"translate"),e.TgZ(18,"mat-autocomplete",8,9),e.NdJ("optionSelected",function(ee){return d.showVoGroups(ee)}),e.YNc(20,z,2,2,"mat-option",5),e.ALo(21,"async"),e.qZA()()(),e.YNc(22,ie,2,3,"perun-web-apps-debounce-filter",10),e.TgZ(23,"div",11),e.YNc(24,pe,1,0,"mat-spinner",12),e.qZA(),e.YNc(25,Ae,2,8,"div",13),e.qZA(),e.TgZ(26,"div",14)(27,"button",15),e.NdJ("click",function(){return d.onCancel()}),e._uU(28),e.ALo(29,"translate"),e.qZA(),e.TgZ(30,"button",16),e.NdJ("click",function(){return d.onSubmit()}),e._uU(31),e.ALo(32,"translate"),e.qZA()()()),2&i){const x=e.MAs(19);e.Tol(d.theme),e.xp6(2),e.Oqu(e.lcZ(3,19,"DIALOGS.ADD_GROUPS.TITLE")),e.xp6(6),e.Oqu(e.lcZ(9,21,"SHARED.COMPONENTS.MANAGERS_PAGE.SELECT_ROLE")),e.xp6(2),e.Q6J("value",d.selectedRole),e.xp6(1),e.Q6J("ngForOf",d.availableRoles),e.xp6(3),e.Oqu(e.lcZ(15,23,"DIALOGS.ADD_GROUPS.SELECT_VO")),e.xp6(2),e.s9C("placeholder",e.lcZ(17,25,"DIALOGS.ADD_GROUPS.SELECT_VO")),e.Q6J("formControl",d.myControl)("matAutocomplete",x),e.xp6(2),e.Q6J("displayWith",d.displayFn),e.xp6(2),e.Q6J("ngForOf",e.lcZ(21,27,d.filteredOptions)),e.xp6(2),e.Q6J("ngIf",null!==d.groups&&d.groups.length>0&&!d.loading),e.xp6(2),e.Q6J("ngIf",d.loading),e.xp6(1),e.Q6J("ngIf",null!==d.groups&&!d.loading),e.xp6(3),e.hij(" ",e.lcZ(29,29,"DIALOGS.ADD_MANAGERS.CANCEL")," "),e.xp6(2),e.Q6J("disabled",0===d.selection.selected.length||d.loading),e.xp6(1),e.hij(" ",e.lcZ(32,31,"DIALOGS.ADD_MANAGERS.CREATE")," ")}},dependencies:[a.sg,a.O5,c.XC,c.ZL,w.ey,y.KE,y.hX,U.Nt,t.Fj,t.JJ,t.oH,H.lW,A.uh,A.xY,A.H8,G.gD,F.Ou,T.W,Z.P,a.Ov,Q.X$,L.i]}),l})();var de=o(9244),Ee=o(15003),me=o(3848),Te=o(96214);function be(l,O){1&l&&(e._uU(0),e.ALo(1,"translate")),2&l&&e.hij(" ",e.lcZ(1,1,"SHARED.COMPONENTS.MANAGERS_PAGE.USER")," ")}function Ce(l,O){if(1&l){const i=e.EpF();e.TgZ(0,"button",13),e.NdJ("click",function(){e.CHM(i);const x=e.oxw(2);return e.KtG(x.addManager())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&l&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.MANAGERS_PAGE.ADD")," "))}function ve(l,O){if(1&l){const i=e.EpF();e.TgZ(0,"button",14),e.NdJ("click",function(){e.CHM(i);const x=e.oxw(2);return e.KtG(x.removeManager())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}if(2&l){const i=e.oxw(2);e.Q6J("disabled",0===i.selectionUsers.selected.length),e.xp6(1),e.hij(" ",e.lcZ(2,2,"SHARED.COMPONENTS.MANAGERS_PAGE.REMOVE")," ")}}function Se(l,O){if(1&l&&(e.TgZ(0,"mat-option",15),e.ALo(1,"lowercase"),e._uU(2),e.ALo(3,"displayedRole"),e.qZA()),2&l){const i=O.$implicit;e.Q6J("value",i.roleName),e.uIk("data-cy",e.lcZ(1,3,i.roleName)),e.xp6(2),e.hij(" ",e.lcZ(3,5,i)," ")}}function Oe(l,O){1&l&&e._UZ(0,"mat-spinner",16)}function Ie(l,O){if(1&l&&e._UZ(0,"app-users-list",17),2&l){const i=e.oxw(2);e.Q6J("disableSelf",i.disableSelf)("tableId",i.tableId)("disableRouting",!i.routeAuth||i.disableRouting)("displayedColumns",i.displayedUserColumns)("selection",i.selectionUsers)("users",i.managers)}}function De(l,O){if(1&l){const i=e.EpF();e.TgZ(0,"perun-web-apps-refresh-button",5),e.NdJ("refresh",function(){e.CHM(i);const x=e.oxw();return e.KtG(x.refreshUsers())}),e.qZA(),e.YNc(1,Ce,3,3,"button",6),e.YNc(2,ve,3,4,"button",7),e.TgZ(3,"mat-form-field",8)(4,"mat-label"),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"mat-select",9),e.NdJ("selectionChange",function(){e.CHM(i);const x=e.oxw();return e.KtG(x.refreshUsers())})("valueChange",function(x){e.CHM(i);const ee=e.oxw();return e.KtG(ee.selectedRole=x)}),e.YNc(8,Se,4,7,"mat-option",10),e.qZA()(),e.YNc(9,Oe,1,0,"mat-spinner",11),e.YNc(10,Ie,1,6,"app-users-list",12)}if(2&l){const i=e.oxw();e.xp6(1),e.Q6J("ngIf",i.manageAuth&&!i.configMode),e.xp6(1),e.Q6J("ngIf",i.manageAuth&&!i.configMode),e.xp6(3),e.Oqu(e.lcZ(6,7,"SHARED.COMPONENTS.MANAGERS_PAGE.SELECT_ROLE")),e.xp6(2),e.Q6J("value",i.selectedRole),e.xp6(1),e.Q6J("ngForOf",i.availableRoles),e.xp6(1),e.Q6J("ngIf",i.loading),e.xp6(1),e.Q6J("ngIf",!i.loading&&i.managers)}}function Me(l,O){1&l&&(e._uU(0),e.ALo(1,"translate")),2&l&&e.hij(" ",e.lcZ(1,1,"SHARED.COMPONENTS.MANAGERS_PAGE.GROUP")," ")}function xe(l,O){if(1&l){const i=e.EpF();e.TgZ(0,"button",22),e.NdJ("click",function(){e.CHM(i);const x=e.oxw(2);return e.KtG(x.addGroup())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&l&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.MANAGERS_PAGE.ADD")," "))}function Ze(l,O){if(1&l){const i=e.EpF();e.TgZ(0,"button",23),e.NdJ("click",function(){e.CHM(i);const x=e.oxw(2);return e.KtG(x.removeGroup())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}if(2&l){const i=e.oxw(2);e.Q6J("disabled",0===i.selectionGroups.selected.length),e.xp6(1),e.hij(" ",e.lcZ(2,2,"SHARED.COMPONENTS.MANAGERS_PAGE.REMOVE")," ")}}function ye(l,O){if(1&l&&(e.TgZ(0,"mat-option",15),e._uU(1),e.ALo(2,"displayedRole"),e.qZA()),2&l){const i=O.$implicit;e.Q6J("value",i.roleName),e.xp6(1),e.Oqu(e.lcZ(2,2,i))}}function Ue(l,O){1&l&&e._UZ(0,"mat-spinner",16)}function Le(l,O){if(1&l&&e._UZ(0,"perun-web-apps-groups-list",24),2&l){const i=e.oxw(2);e.Q6J("disableMembers",!1)("disableRouting",i.disableRouting)("displayedColumns",i.displayedGroupColumns)("groups",i.groups)("selection",i.selectionGroups)("tableId",i.tableId)}}function Ge(l,O){if(1&l){const i=e.EpF();e.TgZ(0,"perun-web-apps-refresh-button",5),e.NdJ("refresh",function(){e.CHM(i);const x=e.oxw();return e.KtG(x.refreshGroups())}),e.qZA(),e.YNc(1,xe,3,3,"button",18),e.YNc(2,Ze,3,4,"button",19),e.TgZ(3,"mat-form-field",20)(4,"mat-label"),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"mat-select",9),e.NdJ("selectionChange",function(){e.CHM(i);const x=e.oxw();return e.KtG(x.refreshGroups())})("valueChange",function(x){e.CHM(i);const ee=e.oxw();return e.KtG(ee.selectedRole=x)}),e.YNc(8,ye,3,4,"mat-option",10),e.qZA()(),e.YNc(9,Ue,1,0,"mat-spinner",11),e.YNc(10,Le,1,6,"perun-web-apps-groups-list",21)}if(2&l){const i=e.oxw();e.xp6(1),e.Q6J("ngIf",i.manageAuth&&!i.configMode),e.xp6(1),e.Q6J("ngIf",i.manageAuth&&!i.configMode),e.xp6(3),e.Oqu(e.lcZ(6,7,"SHARED.COMPONENTS.MANAGERS_PAGE.SELECT_ROLE")),e.xp6(2),e.Q6J("value",i.selectedRole),e.xp6(1),e.Q6J("ngForOf",i.availableRoles),e.xp6(1),e.Q6J("ngIf",i.loading),e.xp6(1),e.Q6J("ngIf",!i.loading&&i.groups)}}function Ne(l,O){1&l&&(e.TgZ(0,"perun-web-apps-alert",25),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&l&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.MANAGERS_PAGE.NO_AVAILABLE_ROLES"),"\n"))}let Pe=(()=>{class l{constructor(i,d,x,ee,le,ce,ue){this.dialog=i,this.authzService=d,this.storeService=x,this.guiAuthResolver=ee,this.router=le,this.reloadEntityDetail=ce,this.route=ue,this.configMode=!1,this.disableRouting=!1,this.disableSelf=!1,this.displayedUserColumns=["select","id","name","email","logins","organization"],this.displayedGroupColumns=["select","id","vo","name","description"],this.groups=[],this.managers=null,this.selectionUsers=new r.Ov(!0,[]),this.selectionGroups=new r.Ov(!0,[]),this.selectedMode="",this.loading=!1,this.tableId=R.HC,this.availableRolesPrivileges=new Map}ngOnInit(){this.loading=!0,this.routeAuth=this.guiAuthResolver.isPerunAdminOrObserver(),this.guiAuthResolver.setRolesAuthorization(this.availableRoles,this.complementaryObject,this.availableRolesPrivileges),this.availableRoles=this.availableRoles.filter(i=>this.availableRolesPrivileges.get(i.roleName).readAuth),0!==this.availableRoles.length&&(this.selectedRole=this.availableRoles[0].roleName),this.refreshUsers()}changeRolePrivileges(){this.guiAuthResolver.setRolesAuthorization(this.availableRoles,this.complementaryObject,this.availableRolesPrivileges),this.availableRoles=this.availableRoles.filter(d=>this.availableRolesPrivileges.get(d.roleName).readAuth),this.manageAuth=this.availableRolesPrivileges.get(this.selectedRole).manageAuth,this.displayedUserColumns=this.manageAuth?this.displayedUserColumns:this.displayedUserColumns.filter(d=>"select"!==d),this.displayedGroupColumns=this.manageAuth?this.displayedGroupColumns:this.displayedGroupColumns.filter(d=>"select"!==d),this.roleModes=this.availableRolesPrivileges.get(this.selectedRole).modes;let i=!1;for(const d of this.roleModes)if(this.selectedMode===d.toLowerCase()){i=!0;break}i||(this.selectedMode=this.roleModes[0].toLowerCase())}tabChanged(i){this.loading=!0,0===i.index?(this.selectedMode="user",this.refreshUsers()):(this.selectedMode="group",this.refreshGroups())}refreshUsers(){this.loading=!0,this.changeRolePrivileges();let i=[s.r.USER_DEF_ORGANIZATION,s.r.USER_DEF_PREFERRED_MAIL];i=i.concat(this.storeService.getLoginAttributeNames()),this.authzService.getAuthzRichAdmins(this.selectedRole,this.complementaryObject.id,this.complementaryObjectType,i,!1,!0).subscribe({next:d=>{this.managers=d,this.selectionUsers.clear(),this.loading=!1},error:()=>{this.loading=!1}})}refreshGroups(){this.loading=!0,this.changeRolePrivileges(),this.authzService.getAuthzAdminGroups(this.selectedRole,this.complementaryObject.id,this.complementaryObjectType).subscribe({next:i=>{this.groups=i,this.selectionGroups.clear(),this.loading=!1},error:()=>{this.loading=!1}})}addManager(){const i=(0,de.kZ)();i.width="1000px",i.data={complementaryObject:this.complementaryObject,theme:this.theme,availableRoles:this.availableRoles,selectedRole:this.selectedRole},this.dialog.open(b,i).afterClosed().subscribe(x=>{x&&this.refreshUsers()})}removeManager(){const i=(0,de.kZ)();i.width="450px",i.data={managers:this.selectionUsers.selected,complementaryObject:this.complementaryObject,role:this.selectedRole,theme:this.theme},this.dialog.open(M,i).afterClosed().subscribe(x=>{x&&(this.guiAuthResolver.isManagerPagePrivileged(this.complementaryObject)?this.reloadEntityDetail.reloadEntityDetail():this.redirectToAuthRoute())})}removeGroup(){const i=(0,de.kZ)();i.width="450px",i.data={groups:this.selectionGroups.selected,complementaryObject:this.complementaryObject,role:this.selectedRole,theme:this.theme},this.dialog.open(D,i).afterClosed().subscribe(x=>{x&&(this.guiAuthResolver.isManagerPagePrivileged(this.complementaryObject)?this.refreshGroups():this.redirectToAuthRoute())})}addGroup(){const i=(0,de.kZ)();i.width="1000px",i.data={complementaryObject:this.complementaryObject,availableRoles:this.availableRoles,theme:this.theme,selectedRole:this.selectedRole},this.dialog.open(Re,i).afterClosed().subscribe(x=>{x&&this.refreshGroups()})}redirectToAuthRoute(){if("Group"===this.complementaryObjectType&&(this.guiAuthResolver.isAuthorized("getGroupById_int_policy",[this.complementaryObject])||this.guiAuthResolver.isAuthorized("getVoById_int_policy",[this.complementaryObject])))this.guiAuthResolver.isAuthorized("getGroupById_int_policy",[this.complementaryObject])?this.router.navigate(["/organizations",this.complementaryObject.voId,"groups",this.complementaryObject.id],{relativeTo:this.route,queryParamsHandling:"merge"}):this.guiAuthResolver.isAuthorized("getVoById_int_policy",[this.complementaryObject])&&this.router.navigate(["/organizations",this.complementaryObject.voId],{queryParamsHandling:"merge"});else if("Facility"===this.complementaryObjectType&&this.guiAuthResolver.isAuthorized("getFacilityById_int_policy",[this.complementaryObject]))this.router.navigate(["/facilities",this.complementaryObject.id],{relativeTo:this.route,queryParamsHandling:"merge"});else if("Vo"===this.complementaryObjectType&&this.guiAuthResolver.isAuthorized("getVoById_int_policy",[this.complementaryObject]))this.router.navigate(["/organizations",this.complementaryObject.id],{relativeTo:this.route,queryParamsHandling:"merge"});else{if("Resource"!==this.complementaryObjectType||!this.guiAuthResolver.isAuthorized("getRichResourceById_int_policy",[this.complementaryObject]))return void this.router.navigate(["/home"],{queryParamsHandling:"merge"});this.router.navigate(["../../"],{relativeTo:this.route,queryParamsHandling:"merge"})}this.reloadEntityDetail.reloadEntityDetail()}}return l.\u0275fac=function(i){return new(i||l)(e.Y36(A.uw),e.Y36(m.Ct),e.Y36(n.d6),e.Y36(n.x4),e.Y36(K.F0),e.Y36(Ee.G),e.Y36(K.gz))},l.\u0275cmp=e.Xpm({type:l,selectors:[["app-managers-page"]],hostVars:2,hostBindings:function(i,d){2&i&&e.ekj("router-component",d.true)},inputs:{complementaryObject:"complementaryObject",availableRoles:"availableRoles",complementaryObjectType:"complementaryObjectType",theme:"theme",configMode:"configMode",disableRouting:"disableRouting",disableSelf:"disableSelf",displayedUserColumns:"displayedUserColumns",displayedGroupColumns:"displayedGroupColumns"},decls:11,vars:4,consts:[[1,"page-subtitle"],[3,"selectedTabChange"],["matTabLabel",""],["matTabContent",""],["alert_type","warn",4,"ngIf"],[1,"mt-2",3,"refresh"],["color","accent","class","mr-2 mt-2 action-button","data-cy","add-manager-button","mat-flat-button","",3,"click",4,"ngIf"],["color","warn","data-cy","remove-manager-button","class","mr-2 mt-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],["data-cy","role-filter",1,"mr-2","mt-2"],[3,"value","selectionChange","valueChange"],[3,"value",4,"ngFor","ngForOf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableSelf","tableId","disableRouting","displayedColumns","selection","users",4,"ngIf"],["color","accent","data-cy","add-manager-button","mat-flat-button","",1,"mr-2","mt-2","action-button",3,"click"],["color","warn","data-cy","remove-manager-button","mat-flat-button","",1,"mr-2","mt-2",3,"disabled","click"],[3,"value"],[1,"ml-auto","mr-auto"],[3,"disableSelf","tableId","disableRouting","displayedColumns","selection","users"],["color","accent","class","mr-2 mt-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2 mt-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[1,"mr-2","mt-2"],[3,"disableMembers","disableRouting","displayedColumns","groups","selection","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","mt-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2","mt-2",3,"disabled","click"],[3,"disableMembers","disableRouting","displayedColumns","groups","selection","tableId"],["alert_type","warn"]],template:function(i,d){1&i&&(e.TgZ(0,"h1",0),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.TgZ(3,"mat-tab-group",1),e.NdJ("selectedTabChange",function(ee){return d.tabChanged(ee)}),e.TgZ(4,"mat-tab"),e.YNc(5,be,2,3,"ng-template",2),e.YNc(6,De,11,9,"ng-template",3),e.qZA(),e.TgZ(7,"mat-tab"),e.YNc(8,Me,2,3,"ng-template",2),e.YNc(9,Ge,11,9,"ng-template",3),e.qZA()(),e.YNc(10,Ne,3,3,"perun-web-apps-alert",4)),2&i&&(e.xp6(1),e.hij(" ",e.lcZ(2,2,"SHARED.COMPONENTS.MANAGERS_PAGE.TITLE"),"\n"),e.xp6(9),e.Q6J("ngIf",0===d.availableRoles.length))},dependencies:[a.sg,a.O5,w.ey,y.KE,y.hX,H.lW,me.SP,me.uD,me.uX,me.Vc,G.gD,F.Ou,E.w,T.W,Te.t,P.C,a.i8,Q.X$,L.i]}),l})()},17672:(te,j,o)=>{o.d(j,{o:()=>_});var r=o(96308),A=o(30671),n=o(95017),m=o(81591),R=o(61744),s=o(9244),t=o(94650),e=o(89383),Q=o(36895),K=o(59549),a=o(284),w=o(24006),y=o(97392),U=o(4859),H=o(56709),G=o(10266),F=o(98380),E=o(18750),I=o(9185),P=o(8231),L=o(14849);function V(u,v){if(1&u){const f=t.EpF();t.TgZ(0,"th",17)(1,"mat-checkbox",18),t.NdJ("change",function(g){t.CHM(f);const N=t.oxw(2);return t.KtG(g?N.masterToggle():null)}),t.ALo(2,"translate"),t.ALo(3,"masterCheckboxLabel"),t.qZA()()}if(2&u){const f=t.oxw().ngIf,D=t.oxw();t.xp6(1),t.Q6J("aria-label",t.lcZ(2,3,t.lcZ(3,5,f.all)))("checked",D.selection.hasValue()&&f.all)("indeterminate",D.selection.hasValue()&&!f.all)}}const W=function(u){return{name:u}};function oe(u,v){if(1&u){const f=t.EpF();t.TgZ(0,"td",19)(1,"mat-checkbox",20),t.NdJ("change",function(g){const c=t.CHM(f).$implicit,T=t.oxw(2);return t.KtG(g?T.selection.toggle(c):null)})("click",function(g){return g.stopPropagation()}),t.ALo(2,"translate"),t.ALo(3,"checkboxLabel"),t.qZA()()}if(2&u){const f=v.$implicit,D=t.oxw(2);t.xp6(1),t.Q6J("aria-label",t.xi3(2,2,t.lcZ(3,5,D.selection.isSelected(f)),t.VKq(7,W,f.tagName)))("checked",D.selection.isSelected(f))}}function ne(u,v){1&u&&(t.ynx(0,14),t.YNc(1,V,4,7,"th",15),t.YNc(2,oe,4,9,"td",16),t.BQk())}function B(u,v){1&u&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&u&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.TAG_ID")," "))}function $(u,v){if(1&u&&(t.TgZ(0,"td",22),t._uU(1),t.qZA()),2&u){const f=v.$implicit;t.xp6(1),t.Oqu(f.id)}}function b(u,v){1&u&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&u&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.TAG_NAME")," "))}function h(u,v){if(1&u&&(t.TgZ(0,"div"),t._uU(1),t.qZA()),2&u){const f=t.oxw().$implicit;t.xp6(1),t.hij(" ",f.tagName," ")}}function J(u,v){if(1&u){const f=t.EpF();t.TgZ(0,"div")(1,"mat-form-field")(2,"input",26),t.NdJ("ngModelChange",function(g){t.CHM(f);const N=t.oxw().$implicit;return t.KtG(N.tagName=g)}),t.qZA()()()}if(2&u){const f=t.oxw().$implicit;t.xp6(2),t.Q6J("ngModel",f.tagName)}}function C(u,v){if(1&u&&(t.TgZ(0,"td",24),t.YNc(1,h,2,1,"div",25),t.YNc(2,J,3,1,"div",25),t.qZA()),2&u){const f=v.$implicit,D=t.oxw();t.xp6(1),t.Q6J("ngIf",!D.isChanging.isSelected(f)),t.xp6(1),t.Q6J("ngIf",D.isChanging.isSelected(f))}}function Y(u,v){1&u&&t._UZ(0,"th",23)}function k(u,v){if(1&u){const f=t.EpF();t.TgZ(0,"button",29),t.NdJ("click",function(){t.CHM(f);const g=t.oxw().$implicit,N=t.oxw();return t.KtG(N.edit(g))}),t.ALo(1,"translate"),t.TgZ(2,"mat-icon"),t._uU(3,"edit"),t.qZA()()}2&u&&t.s9C("matTooltip",t.lcZ(1,1,"VO_DETAIL.RESOURCES.TAGS.EDIT_BUTTON"))}function X(u,v){if(1&u){const f=t.EpF();t.TgZ(0,"button",29),t.NdJ("click",function(){t.CHM(f);const g=t.oxw().$implicit,N=t.oxw();return t.KtG(N.save(g))}),t.ALo(1,"translate"),t.TgZ(2,"mat-icon"),t._uU(3,"save"),t.qZA()()}2&u&&t.s9C("matTooltip",t.lcZ(1,1,"VO_DETAIL.RESOURCES.TAGS.SAVE_BUTTON"))}function se(u,v){if(1&u&&(t.TgZ(0,"td",24)(1,"div",27),t.YNc(2,k,4,3,"button",28),t.YNc(3,X,4,3,"button",28),t.qZA()()),2&u){const f=v.$implicit,D=t.oxw();t.xp6(2),t.Q6J("ngIf",!D.isChanging.isSelected(f)),t.xp6(1),t.Q6J("ngIf",D.isChanging.isSelected(f))}}function ae(u,v){1&u&&t._UZ(0,"tr",30)}function re(u,v){1&u&&t._UZ(0,"tr",31)}function M(u,v){if(1&u&&(t.TgZ(0,"perun-web-apps-alert",32),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.qZA()),2&u){const f=t.oxw();t.xp6(1),t.hij(" ","vo"===f.entity?t.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.NO_TAGS"):t.lcZ(3,3,"RESOURCE_DETAIL.TAGS.NO_TAGS"),"\n")}}function S(u,v){1&u&&(t.TgZ(0,"perun-web-apps-alert",32),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&u&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}const p=function(u){return{all:u}};let _=(()=>{class u{constructor(f,D,g,N,c){this.resourceManager=f,this.notificator=D,this.translator=g,this.authResolver=N,this.tableCheckbox=c,this.resourceTags=[],this.selection=new n.Ov(!0,[]),this.displayedColumns=["select","id","name","edit"],this.isChanging=new n.Ov(!0,[]),this.pageSizeOptions=s.f7}set matSort(f){this.sort=f,this.setDataSource()}static getDataForColumn(f,D){switch(D){case"id":return f.id.toString();case"name":return f.tagName;default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(f=>"id"!==f)),this.dataSource=new A.by(this.resourceTags),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}exportAllData(f){(0,s.O6)((0,s.Xn)(this.dataSource.filteredData,this.displayedColumns,u.getDataForColumn),f)}exportDisplayedData(f){const D=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,g=D+this.dataSource.paginator.pageSize;(0,s.O6)((0,s.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(D,g),this.displayedColumns,u.getDataForColumn),f)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(f,D)=>(0,s.Sd)(f,D,this.displayedColumns,u.getDataForColumn),this.dataSource.sortData=(f,D)=>(0,s.pR)(f,D,u.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}save(f){this.resourceManager.updateResourceTag({resourceTag:f}).subscribe(()=>{this.translator.get("SHARED.COMPONENTS.RESOURCES_TAGS_LIST.EDIT_SUCCESS").subscribe(D=>{this.notificator.showSuccess(D)}),this.isChanging.deselect(f)})}edit(f){this.isChanging.select(f)}}return u.\u0275fac=function(f){return new(f||u)(t.Y36(R.xk),t.Y36(m.V6),t.Y36(e.sK),t.Y36(m.x4),t.Y36(m.UA))},u.\u0275cmp=t.Xpm({type:u,selectors:[["app-resources-tags-list"]],viewQuery:function(f,D){if(1&f&&(t.Gf(s.l9,7),t.Gf(r.YE,7)),2&f){let g;t.iGM(g=t.CRH())&&(D.child=g.first),t.iGM(g=t.CRH())&&(D.matSort=g.first)}},inputs:{resourceTags:"resourceTags",filterValue:"filterValue",selection:"selection",tableId:"tableId",displayedColumns:"displayedColumns",entity:"entity"},features:[t.TTD],decls:18,vars:15,consts:[[1,"card","mt-2",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","edit"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-header-cell",""],["mat-cell",""],[4,"ngIf"],["matInput","",3,"ngModel","ngModelChange"],[1,"d-flex","justify-content-end"],["mat-icon-button","",3,"matTooltip","click",4,"ngIf"],["mat-icon-button","",3,"matTooltip","click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(f,D){1&f&&(t.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportDisplayedData",function(N){return D.exportDisplayedData(N)})("exportAllData",function(N){return D.exportAllData(N)}),t.TgZ(2,"table",2),t.YNc(3,ne,3,0,"ng-container",3),t.ALo(4,"isAllSelected"),t.ynx(5,4),t.YNc(6,B,3,3,"th",5),t.YNc(7,$,2,1,"td",6),t.BQk(),t.ynx(8,7),t.YNc(9,b,3,3,"th",8),t.YNc(10,C,3,2,"td",9),t.BQk(),t.ynx(11,10),t.YNc(12,Y,1,0,"th",8),t.YNc(13,se,4,2,"td",9),t.BQk(),t.YNc(14,ae,1,0,"tr",11),t.YNc(15,re,1,0,"tr",12),t.qZA()()(),t.YNc(16,M,4,5,"perun-web-apps-alert",13),t.YNc(17,S,3,3,"perun-web-apps-alert",13)),2&f&&(t.Q6J("hidden",0===D.resourceTags.length||0===D.dataSource.filteredData.length),t.xp6(1),t.Q6J("pageSizeOptions",D.pageSizeOptions)("dataLength",D.dataSource.filteredData.length)("tableId",D.tableId),t.xp6(1),t.Q6J("dataSource",D.dataSource),t.xp6(1),t.Q6J("ngIf",t.VKq(13,p,t.xi3(4,10,D.dataSource,D.selection.selected.length))),t.xp6(11),t.Q6J("matHeaderRowDef",D.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",D.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===D.resourceTags.length),t.xp6(1),t.Q6J("ngIf",0===D.dataSource.filteredData.length&&0!==D.resourceTags.length))},dependencies:[Q.O5,K.KE,a.Nt,w.Fj,w.JJ,w.On,y.Hw,U.lW,r.YE,r.nU,A.BZ,A.fO,A.as,A.w1,A.Dz,A.nj,A.ge,A.ev,A.XQ,A.Gk,H.oG,G.gM,F.w,E.l,e.X$,I.I,P.G,L.r]}),u})()},22158:(te,j,o)=>{o.d(j,{T:()=>A});var r=o(77579);const A=(n=class{})=>class extends n{constructor(){super(...arguments),this.destroyed$=new r.x}ngOnDestroy(){this.destroyed$.next()}}},90439:(te,j,o)=>{o.d(j,{F:()=>m});var r=o(94650),A=o(89593),n=o(89383);let m=(()=>{class R{constructor(){this.servicePackages=[],this.selectedPackage=null,this.multiple=!1,this.disableAutoSelect=!1,this.theme="",this.packageSelected=new r.vpe,this.nameFunction=t=>t.name,this.shortNameFunction=t=>t.description,this.searchFunction=t=>t.name+t.description}}return R.\u0275fac=function(t){return new(t||R)},R.\u0275cmp=r.Xpm({type:R,selectors:[["perun-web-apps-service-package-search-select"]],inputs:{servicePackages:"servicePackages",selectedPackage:"selectedPackage",multiple:"multiple",disableAutoSelect:"disableAutoSelect",theme:"theme"},outputs:{packageSelected:"packageSelected"},decls:4,vars:17,consts:[[3,"entities","entity","multiple","disableAutoSelect","searchFunction","mainTextFunction","secondaryTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","theme","entitySelected"]],template:function(t,e){1&t&&(r.TgZ(0,"perun-web-apps-entity-search-select",0),r.NdJ("entitySelected",function(K){return e.packageSelected.emit(K)}),r.ALo(1,"translate"),r.ALo(2,"translate"),r.ALo(3,"translate"),r.qZA()),2&t&&r.Q6J("entities",e.servicePackages)("entity",e.selectedPackage)("multiple",e.multiple)("disableAutoSelect",e.disableAutoSelect)("searchFunction",e.searchFunction)("mainTextFunction",e.nameFunction)("secondaryTextFunction",e.shortNameFunction)("selectPlaceholder",r.lcZ(1,11,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_PACKAGE_SEARCH_SELECT.SELECT_PACKAGE"))("findPlaceholder",r.lcZ(2,13,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_PACKAGE_SEARCH_SELECT.FIND_PACKAGE"))("noEntriesText",r.lcZ(3,15,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_PACKAGE_SEARCH_SELECT.NO_PACKAGE_FOUND"))("theme",e.theme)},dependencies:[A.i,n.X$]}),R})()}}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/907.a215b601e8106d58.js b/dist/apps/admin-gui/907.a215b601e8106d58.js deleted file mode 100644 index 1dfa6a287..000000000 --- a/dist/apps/admin-gui/907.a215b601e8106d58.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin_gui=self.webpackChunkadmin_gui||[]).push([[907],{15003:(te,j,o)=>{o.d(j,{G:()=>f});var r=o(94650);let f=(()=>{class n{constructor(){this.entityDetailChange=new r.vpe}reloadEntityDetail(){this.entityDetailChange.emit()}}return n.\u0275fac=function(T){return new(T||n)},n.\u0275prov=r.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})()},76023:(te,j,o)=>{o.d(j,{y:()=>H});var r=o(32105),f=o(10036),n=o(69723),d=o(94650),T=o(94364),s=o(36895),t=o(51572),e=o(96214),F=o(38383),K=o(64901),a=o(89383);function J(L,B){1&L&&d._UZ(0,"mat-spinner",5)}const M=function(){return["id","fullName"]};function Z(L,B){if(1&L){const b=d.EpF();d.TgZ(0,"perun-web-apps-members-list",6),d.NdJ("updateTable",function(){d.CHM(b);const N=d.oxw();return d.KtG(N.refreshTable())}),d.qZA()}if(2&L){const b=d.oxw();d.Q6J("displayedColumns",d.DdM(5,M))("disableRouting",!b.routeAuth)("filter",b.filterValue)("members",b.members)("tableId",b.tableId)}}let H=(()=>{class L{constructor(b,O,N,y){this.route=b,this.resourceService=O,this.authResolver=N,this.entityStorageService=y,this.loading=!1,this.filterValue="",this.tableId=f.iQ}ngOnInit(){this.loading=!0,this.resource=this.entityStorageService.getEntity(),this.refreshTable()}refreshTable(){this.loading=!0,this.resourceService.getAssignedRichMembers(this.resource.id).subscribe(b=>{this.members=b,this.setAuthRights(),this.loading=!1})}setAuthRights(){0!==this.members.length&&(this.routeAuth=this.authResolver.isAuthorized("getMemberById_int_policy",[this.members[0]]))}applyFilter(b){this.filterValue=b}}return L.\u0275fac=function(b){return new(b||L)(d.Y36(T.gz),d.Y36(r.xk),d.Y36(n.x4),d.Y36(n.fb))},L.\u0275cmp=d.Xpm({type:L,selectors:[["app-resource-assigned-members"]],decls:7,vars:6,consts:[[1,"page-subtitle"],[3,"refresh"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"displayedColumns","disableRouting","filter","members","tableId","updateTable",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","disableRouting","filter","members","tableId","updateTable"]],template:function(b,O){1&b&&(d.TgZ(0,"h1",0),d._uU(1),d.ALo(2,"translate"),d.qZA(),d.TgZ(3,"perun-web-apps-refresh-button",1),d.NdJ("refresh",function(){return O.refreshTable()}),d.qZA(),d.TgZ(4,"perun-web-apps-debounce-filter",2),d.NdJ("filter",function(y){return O.applyFilter(y)}),d.qZA(),d.YNc(5,J,1,0,"mat-spinner",3),d.YNc(6,Z,1,6,"perun-web-apps-members-list",4)),2&b&&(d.xp6(1),d.Oqu(d.lcZ(2,4,"RESOURCE_DETAIL.ASSIGNED_MEMBERS.TITLE")),d.xp6(3),d.Q6J("placeholder","RESOURCE_DETAIL.ASSIGNED_MEMBERS.FILTER"),d.xp6(1),d.Q6J("ngIf",O.loading),d.xp6(1),d.Q6J("ngIf",!O.loading))},dependencies:[s.O5,t.Ou,e.t,F.O,K.P,a.X$]}),L})()},49546:(te,j,o)=>{o.d(j,{D:()=>re});var r=o(32105),f=o(10036),n=o(95017),d=o(9244),T=o(65412),s=o(69723),t=o(94650),e=o(89383),F=o(36895),K=o(4859),a=o(3848),J=o(51572),M=o(64901),Z=o(90439),H=o(60205);function L(g,Q){1&g&&t._UZ(0,"mat-spinner",6)}const B=function(){return["id","name","enabled","description"]};function b(g,Q){if(1&g&&t._UZ(0,"app-services-list",16),2&g){const l=t.oxw(2);t.Q6J("disableRouting",!0)("services",l.filteredServices)("displayedColumns",t.DdM(5,B))("selection",l.selection)("tableId",l.tableId)}}const O=function(){return["select","id","name","enabled","description"]};function N(g,Q){if(1&g){const l=t.EpF();t.TgZ(0,"div",7)(1,"mat-tab-group",8),t.NdJ("selectedTabChange",function(){t.CHM(l);const _=t.oxw();return t.KtG(_.tabChanged())}),t.TgZ(2,"mat-tab",9),t.ALo(3,"translate"),t.TgZ(4,"div",10)(5,"perun-web-apps-debounce-filter",11),t.NdJ("filter",function(_){t.CHM(l);const U=t.oxw();return t.KtG(U.applyFilter(_))}),t.ALo(6,"translate"),t.qZA()(),t._UZ(7,"app-services-list",12),t.qZA(),t.TgZ(8,"mat-tab",9),t.ALo(9,"translate"),t.TgZ(10,"div",13)(11,"perun-web-apps-service-package-search-select",14),t.NdJ("packageSelected",function(_){t.CHM(l);const U=t.oxw();return t.KtG(U.servicePackageSelected(_))}),t.qZA()(),t.YNc(12,b,1,6,"app-services-list",15),t.qZA()()()}if(2&g){const l=t.oxw();t.xp6(2),t.s9C("label",t.lcZ(3,12,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.SELECT_SERVICE")),t.xp6(3),t.s9C("placeholder",t.lcZ(6,14,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.FILTER_DESCRIPTION")),t.xp6(2),t.Q6J("services",l.unAssignedServices)("disableRouting",!0)("displayedColumns",t.DdM(18,O))("filterValue",l.filterValue)("selection",l.selection)("tableId",l.tableId),t.xp6(1),t.s9C("label",t.lcZ(9,16,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.SELECT_PACKAGE")),t.xp6(3),t.Q6J("selectedPackage",l.selectedPackage)("servicePackages",l.servicePackages),t.xp6(1),t.Q6J("ngIf",-1!==l.selectedPackage.id)}}let y=(()=>{class g{constructor(l,R,_,U,A,I){this.dialogRef=l,this.data=R,this.notificator=_,this.translate=U,this.resourceManager=A,this.servicesManager=I,this.loading=!1,this.unAssignedServices=[],this.filteredServices=[],this.servicePackages=[],this.selectedPackage={name:"Not selected",description:"",id:-1,beanName:"ServicePackage"},this.selection=new n.Ov(!0,[]),this.tableId=f.DR,this.filterValue=""}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.resourceManager.getAssignedServicesToResource(this.data.resourceId).subscribe(l=>{this.servicesManager.getServices().subscribe(R=>{this.servicesManager.getServicesPackages().subscribe(_=>{this.servicePackages.push(this.selectedPackage),this.servicePackages=this.servicePackages.concat(_),this.unAssignedServices=R;for(const U of l)for(const A of R)U.id===A.id&&this.unAssignedServices.splice(this.unAssignedServices.indexOf(A),1);this.loading=!1})})})}onCancel(){this.dialogRef.close()}onAdd(){this.loading=!0,-1!==this.selectedPackage.id?this.addServicePackage():this.addServices()}applyFilter(l){this.filterValue=l}servicePackageSelected(l){this.selectedPackage=l,-1!==l.id?this.servicesManager.getServicesFromServicesPackage(l.id).subscribe(R=>{this.filteredServices=R}):this.filteredServices=[]}tabChanged(){this.selection.clear(),this.filterValue="",this.selectedPackage=this.servicePackages[0]}addServicePackage(){this.resourceManager.assignServicesPackage(this.data.resourceId,this.selectedPackage.id).subscribe(()=>{this.translate.get("DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.PACKAGE_SUCCESS_MESSAGE").subscribe(l=>{this.notificator.showSuccess(l),0!==this.selection.selected.length?this.addServices():this.dialogRef.close(!0)})},()=>this.loading=!1)}addServices(){const l=[];for(const R of this.selection.selected)l.push(R.id);this.resourceManager.assignServices(this.data.resourceId,l).subscribe(()=>{this.translate.get("DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.SERVICE_SUCCESS_MESSAGE").subscribe(R=>{this.notificator.showSuccess(R),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return g.\u0275fac=function(l){return new(l||g)(t.Y36(T.so),t.Y36(T.WI),t.Y36(s.V6),t.Y36(e.sK),t.Y36(r.xk),t.Y36(r.KK))},g.\u0275cmp=t.Xpm({type:g,selectors:[["app-perun-web-apps-assign-service-to-resource-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[3,"selectedTabChange"],[3,"label"],[1,"mt-2"],[3,"placeholder","filter"],[3,"services","disableRouting","displayedColumns","filterValue","selection","tableId"],[1,"mt-3"],[3,"selectedPackage","servicePackages","packageSelected"],[3,"disableRouting","services","displayedColumns","selection","tableId",4,"ngIf"],[3,"disableRouting","services","displayedColumns","selection","tableId"]],template:function(l,R){1&l&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,L,1,0,"mat-spinner",1),t.YNc(5,N,13,19,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return R.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return R.onAdd()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&l&&(t.Tol(R.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.TITLE")),t.xp6(2),t.Q6J("ngIf",R.loading),t.xp6(1),t.Q6J("ngIf",!R.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.CANCEL_BUTTON")," "),t.xp6(2),t.Q6J("disabled",0===R.selection.selected.length&&-1===R.selectedPackage.id||R.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE."+(-1===R.selectedPackage.id?"ADD_SERVICES":"ADD_PACKAGE"))," "))},dependencies:[F.O5,K.lW,a.SP,a.uX,T.uh,T.xY,T.H8,J.Ou,M.P,Z.F,H.Q,e.X$]}),g})();var W=o(30671);function V(g,Q){1&g&&t._UZ(0,"mat-spinner",6)}function oe(g,Q){1&g&&t._UZ(0,"th",15)}function ne(g,Q){if(1&g&&(t.TgZ(0,"td",16),t._uU(1),t.qZA()),2&g){const l=Q.$implicit;t.xp6(1),t.Oqu(l.name)}}function w(g,Q){1&g&&t._UZ(0,"tr",17)}function $(g,Q){1&g&&t._UZ(0,"tr",18)}function E(g,Q){if(1&g&&(t.TgZ(0,"div",7)(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",8),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",9),t.ynx(8,10),t.YNc(9,oe,1,0,"th",11),t.YNc(10,ne,2,1,"td",12),t.BQk(),t.YNc(11,w,1,0,"tr",13),t.YNc(12,$,1,0,"tr",14),t.qZA()()),2&g){const l=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,5,"DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.DESCRIPTION")," "),t.xp6(3),t.hij(" ",t.lcZ(6,7,"DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.ASK")," "),t.xp6(2),t.Q6J("dataSource",l.dataSource),t.xp6(4),t.Q6J("matHeaderRowDef",l.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",l.displayedColumns)}}let h=(()=>{class g{constructor(l,R,_,U,A){this.dialogRef=l,this.data=R,this.notificator=_,this.translate=U,this.resourcesManager=A,this.displayedColumns=["name"]}ngOnInit(){this.theme=this.data.theme,this.dataSource=new W.by(this.data.services)}onSubmit(){this.loading=!0;const l=[];for(const R of this.data.services)l.push(R.id);this.resourcesManager.removeServices(this.data.resourceId,l).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.SUCCESS").subscribe(R=>{this.notificator.showSuccess(R),this.dialogRef.close(!0)})},()=>this.loading=!1)}onCancel(){this.dialogRef.close()}}return g.\u0275fac=function(l){return new(l||g)(t.Y36(T.so),t.Y36(T.WI),t.Y36(s.V6),t.Y36(e.sK),t.Y36(r.xk))},g.\u0275cmp=t.Xpm({type:g,selectors:[["app-perun-web-apps-remove-service-from-resource-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(l,R){1&l&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,V,1,0,"mat-spinner",1),t.YNc(5,E,13,9,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return R.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return R.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&l&&(t.Tol(R.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.TITLE")),t.xp6(2),t.Q6J("ngIf",R.loading),t.xp6(1),t.Q6J("ngIf",!R.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.CANCEL")," "),t.xp6(2),t.Q6J("disabled",R.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.DELETE")," "))},dependencies:[F.O5,K.lW,W.BZ,W.fO,W.as,W.w1,W.Dz,W.nj,W.ge,W.ev,W.XQ,W.Gk,T.uh,T.xY,T.H8,J.Ou,e.X$]}),g})();var Y=o(94364),v=o(96214),P=o(7434);function k(g,Q){if(1&g){const l=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(l);const _=t.oxw();return t.KtG(_.addService())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&g&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"RESOURCE_DETAIL.ASSIGNED_SERVICES.ADD_SERVICE"),"\n"))}function X(g,Q){if(1&g){const l=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(l);const _=t.oxw();return t.KtG(_.removeServices())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&g){const l=t.oxw();t.Q6J("disabled",0===l.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"RESOURCE_DETAIL.ASSIGNED_SERVICES.REMOVE_SERVICE"),"\n")}}function se(g,Q){1&g&&t._UZ(0,"mat-spinner",9)}function ie(g,Q){if(1&g&&t._UZ(0,"app-services-list",10),2&g){const l=t.oxw();t.Q6J("disableRouting",!l.serviceRoutingAuth)("selection",l.selected)("displayedColumns",l.displayedColumns)("filterValue",l.filterValue)("services",l.assignedServices)("tableId",l.tableId)}}let re=(()=>{class g{constructor(l,R,_,U,A){this.route=l,this.resourcesManager=R,this.dialog=_,this.guiAuthResolver=U,this.entityStorageService=A,this.assignedServices=[],this.selected=new n.Ov(!0,[]),this.tableId=f.uC,this.filterValue="",this.displayedColumns=["select","id","name","enabled","script","description"]}ngOnInit(){this.loading=!0,this.resource=this.entityStorageService.getEntity(),this.getDataForAuthorization(),this.loadAllServices()}loadAllServices(){this.loading=!0,this.resourcesManager.getAssignedServicesToResource(this.resource.id).subscribe(l=>{this.assignedServices=l,this.selected.clear(),this.loading=!1})}addService(){const l=(0,d.kZ)();l.width="800px",l.data={theme:"resource-theme",resourceId:this.resource.id},this.dialog.open(y,l).afterClosed().subscribe(_=>{_&&this.loadAllServices()})}removeServices(){const l=(0,d.kZ)();l.width="500px",l.data={theme:"resource-theme",resourceId:this.resource.id,services:this.selected.selected},this.dialog.open(h,l).afterClosed().subscribe(_=>{_&&this.loadAllServices()})}applyFilter(l){this.filterValue=l}getDataForAuthorization(){this.assignServiceAuth=this.guiAuthResolver.isAuthorized("assignServices_Resource_List_policy",[this.resource]),this.removeServiceAuth=this.guiAuthResolver.isAuthorized("removeServices_Resource_List_policy",[this.resource]),this.displayedColumns=this.removeServiceAuth?["select","id","name","enabled","script","description"]:["id","name","enabled","script","description"],this.serviceRoutingAuth=this.guiAuthResolver.isPerunAdminOrObserver()}}return g.\u0275fac=function(l){return new(l||g)(t.Y36(Y.gz),t.Y36(r.xk),t.Y36(T.uw),t.Y36(s.x4),t.Y36(s.fb))},g.\u0275cmp=t.Xpm({type:g,selectors:[["app-perun-web-apps-resource-assigned-services"]],decls:9,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["class","action-button mr-2","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableRouting","selection","displayedColumns","filterValue","services","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"action-button","mr-2",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"disableRouting","selection","displayedColumns","filterValue","services","tableId"]],template:function(l,R){1&l&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return R.loadAllServices()}),t.qZA(),t.YNc(4,k,3,3,"button",2),t.YNc(5,X,3,4,"button",3),t.TgZ(6,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(U){return R.applyFilter(U)}),t.qZA(),t.YNc(7,se,1,0,"mat-spinner",5),t.YNc(8,ie,1,6,"app-services-list",6)),2&l&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"RESOURCE_DETAIL.ASSIGNED_SERVICES.TITLE")),t.xp6(3),t.Q6J("ngIf",R.assignServiceAuth),t.xp6(1),t.Q6J("ngIf",R.removeServiceAuth),t.xp6(1),t.Q6J("placeholder","RESOURCE_DETAIL.ASSIGNED_SERVICES.FILTER_SERVICES"),t.xp6(1),t.Q6J("ngIf",R.loading),t.xp6(1),t.Q6J("ngIf",!R.loading))},dependencies:[F.O5,K.lW,J.Ou,H.Q,v.t,P.L,e.X$]}),g})()},92090:(te,j,o)=>{o.d(j,{X:()=>B});var r=o(69723),f=o(32105),n=o(94650),d=o(36895),T=o(3848),s=o(48323),t=o(12651),e=o(89383);function F(b,O){1&b&&(n._uU(0),n.ALo(1,"translate")),2&b&&n.hij(" ",n.lcZ(1,1,"RESOURCE_DETAIL.ENTITY")," ")}function K(b,O){if(1&b&&n._UZ(0,"app-one-entity-attribute-page",4),2&b){const N=n.oxw();n.Q6J("entityId",N.resource.id)("entity","resource")}}function a(b,O){1&b&&(n._uU(0),n.ALo(1,"translate"),n.ALo(2,"translate")),2&b&&n.AsE(" ",n.lcZ(1,2,"RESOURCE_DETAIL.ENTITY")," - ",n.lcZ(2,4,"MEMBER_DETAIL.ENTITY")," ")}function J(b,O){if(1&b&&n._UZ(0,"app-two-entity-attribute-page",5),2&b){const N=n.oxw(2);n.Q6J("firstEntity","resource")("firstEntityId",N.resource.id)("secondEntity","member")}}function M(b,O){1&b&&(n.TgZ(0,"mat-tab"),n.YNc(1,a,3,6,"ng-template",1),n.YNc(2,J,1,3,"ng-template",2),n.qZA())}function Z(b,O){1&b&&(n._uU(0),n.ALo(1,"translate"),n.ALo(2,"translate")),2&b&&n.AsE(" ",n.lcZ(1,2,"RESOURCE_DETAIL.ENTITY")," - ",n.lcZ(2,4,"GROUP_DETAIL.ENTITY")," ")}function H(b,O){if(1&b&&n._UZ(0,"app-two-entity-attribute-page",5),2&b){const N=n.oxw(2);n.Q6J("firstEntity","resource")("firstEntityId",N.resource.id)("secondEntity","group")}}function L(b,O){1&b&&(n.TgZ(0,"mat-tab"),n.YNc(1,Z,3,6,"ng-template",1),n.YNc(2,H,1,3,"ng-template",2),n.qZA())}let B=(()=>{class b{constructor(N,y,W){this.authResolver=N,this.resourceManager=y,this.entityStorageService=W}ngOnInit(){this.resource=this.entityStorageService.getEntity(),this.resourceGroupAttAuth=this.authResolver.isAuthorized("getGroupAssignments_Resource_policy",[this.resource]),this.resourceMemberAttAuth=this.authResolver.isAuthorized("getAssignedMembersWithStatus_Resource_policy",[this.resource])}}return b.\u0275fac=function(N){return new(N||b)(n.Y36(r.x4),n.Y36(f.xk),n.Y36(r.fb))},b.\u0275cmp=n.Xpm({type:b,selectors:[["app-resource-attributes"]],hostVars:2,hostBindings:function(N,y){2&N&&n.ekj("router-component",y.true)},decls:10,vars:5,consts:[[1,"page-subtitle"],["matTabLabel",""],["matTabContent",""],[4,"ngIf"],[3,"entityId","entity"],[3,"firstEntity","firstEntityId","secondEntity"]],template:function(N,y){1&N&&(n.TgZ(0,"div")(1,"h1",0),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"mat-tab-group")(5,"mat-tab"),n.YNc(6,F,2,3,"ng-template",1),n.YNc(7,K,1,2,"ng-template",2),n.qZA(),n.YNc(8,M,3,0,"mat-tab",3),n.YNc(9,L,3,0,"mat-tab",3),n.qZA()()),2&N&&(n.xp6(2),n.Oqu(n.lcZ(3,3,"RESOURCE_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),n.xp6(6),n.Q6J("ngIf",y.resourceMemberAttAuth),n.xp6(1),n.Q6J("ngIf",y.resourceGroupAttAuth))},dependencies:[d.O5,T.SP,T.uD,T.uX,T.Vc,s.Y,t.t,e.X$]}),b})()},98918:(te,j,o)=>{o.d(j,{b:()=>re});var r=o(36769),f=o(69024),n=o(32105),d=o(9244),T=o(69723),s=o(19516),t=o(21029),e=o(533),F=o(22158),K=o(82722),a=o(94650),J=o(94364),M=o(77968),Z=o(65412),H=o(15003),L=o(36895),B=o(97392),b=o(4859),O=o(51572),N=o(10266),y=o(61283),W=o(4235),V=o(94391),oe=o(89383);function ne(g,Q){1&g&&a._UZ(0,"mat-spinner",3)}function w(g,Q){if(1&g){const l=a.EpF();a.TgZ(0,"button",14),a.NdJ("click",function(){a.CHM(l);const _=a.oxw(2);return a.KtG(_.editResource())}),a.TgZ(1,"mat-icon"),a._uU(2,"edit"),a.qZA()()}}function $(g,Q){if(1&g){const l=a.EpF();a.TgZ(0,"button",15),a.NdJ("click",function(){a.CHM(l);const _=a.oxw(2);return a.KtG(_.deleteResource())}),a.TgZ(1,"mat-icon"),a._uU(2,"delete_forever"),a.qZA()()}}const E=function(g){return["/organizations",g]};function h(g,Q){if(1&g&&(a.TgZ(0,"a",8),a.NdJ("auxclick",function(R){return R.preventDefault()}),a._uU(1),a.qZA()),2&g){const l=a.oxw(2);a.Q6J("perunWebAppsMiddleClickRouterLink",a.VKq(4,E,l.resource.vo.id.toString()))("routerLink",a.VKq(6,E,l.resource.vo.id)),a.uIk("data-cy",l.resource.vo.name),a.xp6(1),a.Oqu(l.resource.vo.name)}}function Y(g,Q){if(1&g&&(a.TgZ(0,"span"),a._uU(1),a.qZA()),2&g){const l=a.oxw(2);a.xp6(1),a.hij(" ",l.resource.vo.name," ")}}const v=function(g){return["/facilities",g]};function P(g,Q){if(1&g&&(a.TgZ(0,"a",8),a.NdJ("auxclick",function(R){return R.preventDefault()}),a._uU(1),a.qZA()),2&g){const l=a.oxw(2);a.Q6J("perunWebAppsMiddleClickRouterLink",a.VKq(4,v,l.resource.facilityId.toString()))("routerLink",a.VKq(6,v,l.resource.facilityId)),a.uIk("data-cy",l.resource.facility.name),a.xp6(1),a.Oqu(l.resource.facility.name)}}function k(g,Q){if(1&g&&(a.TgZ(0,"span"),a._uU(1),a.qZA()),2&g){const l=a.oxw(2);a.xp6(1),a.hij(" ",l.resource.facility.name," ")}}const X=function(){return{color:"black"}},se=function(g){return[g]};function ie(g,Q){if(1&g&&(a.TgZ(0,"div")(1,"div",4),a._UZ(2,"mat-icon",5),a.ALo(3,"translate"),a.TgZ(4,"div",6)(5,"div",7)(6,"a",8),a.NdJ("auxclick",function(R){return R.preventDefault()}),a._uU(7),a.qZA(),a.TgZ(8,"span",9),a._uU(9),a.qZA(),a.YNc(10,w,3,0,"button",10),a.YNc(11,$,3,0,"button",11),a.qZA(),a.TgZ(12,"div"),a._uU(13),a.ALo(14,"translate"),a.qZA(),a.TgZ(15,"span",12),a._uU(16),a.ALo(17,"translate"),a.ALo(18,"translate"),a.YNc(19,h,2,8,"a",13),a.YNc(20,Y,2,1,"span",2),a._uU(21),a.ALo(22,"translate"),a.YNc(23,P,2,8,"a",13),a.YNc(24,k,2,1,"span",2),a._uU(25),a.ALo(26,"translate"),a.qZA()()(),a._UZ(27,"app-animated-router-outlet"),a.qZA()),2&g){const l=a.oxw();a.xp6(2),a.s9C("matTooltip",a.lcZ(3,21,"RESOURCE_DETAIL.ENTITY")),a.Q6J("ngStyle",a.DdM(33,X)),a.xp6(4),a.Q6J("perunWebAppsMiddleClickRouterLink",a.VKq(34,se,l.baseUrl))("routerLink",a.VKq(36,se,l.baseUrl)),a.xp6(1),a.hij(" ",l.resource.name," "),a.xp6(2),a.hij(" \xa0#",l.resource.id," "),a.xp6(1),a.Q6J("ngIf",l.editResourceAuth),a.xp6(1),a.Q6J("ngIf",l.deleteAuth),a.xp6(2),a.AsE("",a.lcZ(14,23,"RESOURCE_DETAIL.UUID"),": ",l.resource.uuid,""),a.xp6(3),a.AsE(" ",a.lcZ(17,25,"RESOURCE_DETAIL.ENTITY"),", ",a.lcZ(18,27,"RESOURCE_DETAIL.VO"),": "),a.xp6(3),a.Q6J("ngIf",l.voLinkAuth),a.xp6(1),a.Q6J("ngIf",!l.voLinkAuth),a.xp6(1),a.AsE(" #",l.resource.voId,", ",a.lcZ(22,29,"RESOURCE_DETAIL.FACILITY"),": "),a.xp6(2),a.Q6J("ngIf",l.facilityLinkAuth),a.xp6(1),a.Q6J("ngIf",!l.facilityLinkAuth),a.xp6(1),a.lnq(" #",l.resource.facilityId,", ",a.lcZ(26,31,"RESOURCE_DETAIL.DESCRIPTION"),": ",l.resource.description," ")}}let re=(()=>{class g extends((0,F.T)()){constructor(l,R,_,U,A,I,m,G,u,C,x){super(),this.route=l,this.facilityManager=R,this.vosManagerService=_,this.resourcesManager=U,this.sideMenuService=A,this.sideMenuItemService=I,this.dialog=m,this.guiAuthResolver=G,this.router=u,this.entityStorageService=C,this.reloadEntityDetail=x,this.underVoUrl=!1,this.deleteAuth=!1,this.baseUrl="",this.loading=!1}ngOnInit(){this.reloadData(),this.reloadEntityDetail.entityDetailChange.pipe((0,K.R)(this.destroyed$)).subscribe(()=>{this.reloadData()})}reloadData(){this.loading=!0,this.route.params.subscribe(l=>{const R=Number(l.resourceId);this.resourcesManager.getRichResourceById(R).subscribe(_=>{this.resource=_,this.entityStorageService.setEntity({id:_.id,voId:_.voId,facilityId:_.facilityId,beanName:"Resource"}),this.setAuth(),"facilities"===this.route.parent.snapshot.url[0].path?(this.baseUrl=(new s.r5).transform(_,!1),this.facilityManager.getFacilityById(_.facilityId).subscribe(U=>{this.facility=U,this.setMenuItems(),this.loading=!1},()=>this.loading=!1)):(this.baseUrl=(new s.r5).transform(_,!0),this.vosManagerService.getVoById(_.voId).subscribe(U=>{this.vo=U,this.underVoUrl=!0,this.setMenuItems(),this.loading=!1},()=>this.loading=!1)),(0,d.sF)("resources",this.resource)})})}setMenuItems(){let l;const R=this.sideMenuItemService.parseResource(this.resource,this.underVoUrl);this.underVoUrl?(l=this.sideMenuItemService.parseVo(this.vo),this.sideMenuService.setAccessMenuItems([l,R])):(l=this.sideMenuItemService.parseFacility(this.facility),this.sideMenuService.setFacilityMenuItems([l,R]))}editResource(){let l;this.resourcesManager.getResourceById(this.resource.id).subscribe(R=>{l=R;const _=(0,d.kZ)();_.width="450px",_.data={theme:"resource-theme",resource:l,dialogType:t.Eg.RESOURCE},this.dialog.open(t.rd,_).afterClosed().subscribe(A=>{A&&this.resourcesManager.getRichResourceById(this.resource.id).subscribe(I=>{this.resource=I,this.setMenuItems()})})})}deleteResource(){const l=(0,d.kZ)();l.width="500px",l.data={theme:"resource-theme",resources:[this.resource]},this.dialog.open(e.f,l).afterClosed().subscribe(_=>{_&&this.router.navigate(["../"],{relativeTo:this.route,queryParamsHandling:"preserve"})})}setAuth(){this.facilityLinkAuth=this.guiAuthResolver.isAuthorized("getFacilityById_int_policy",[this.resource]),this.editResourceAuth=this.guiAuthResolver.isAuthorized("updateResource_Resource_policy",[this.resource]),this.voLinkAuth=this.guiAuthResolver.isAuthorized("getVoById_int_policy",[this.resource]),this.deleteAuth=this.guiAuthResolver.isAuthorized("deleteResource_Resource_policy",[this.resource])}}return g.\u0275fac=function(l){return new(l||g)(a.Y36(J.gz),a.Y36(n.IQ),a.Y36(n.YF),a.Y36(n.xk),a.Y36(M.D),a.Y36(f.V),a.Y36(Z.uw),a.Y36(T.x4),a.Y36(J.F0),a.Y36(T.fb),a.Y36(H.G))},g.\u0275cmp=a.Xpm({type:g,selectors:[["app-resource-detail-page"]],features:[a.qOj],decls:4,vars:2,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","resource-theme"],["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[1,"d-flex","page-title-headtitle"],["svgIcon","perun-resource-black",1,"perun-icon","perun-icon-detail",3,"matTooltip","ngStyle"],[1,"page-title-block"],[1,"page-title-headline","d-flex","align-items-center"],[1,"resource-link",3,"perunWebAppsMiddleClickRouterLink","routerLink","auxclick"],[1,"text-muted"],["aria-label","Edit resource","mat-icon-button","",3,"click",4,"ngIf"],["mat-icon-button","",3,"click",4,"ngIf"],[1,"mt-1","entity-info"],["class","resource-link",3,"perunWebAppsMiddleClickRouterLink","routerLink","auxclick",4,"ngIf"],["aria-label","Edit resource","mat-icon-button","",3,"click"],["mat-icon-button","",3,"click"]],template:function(l,R){1&l&&(a.TgZ(0,"div",0),a._UZ(1,"perun-web-apps-back-button"),a.YNc(2,ne,1,0,"mat-spinner",1),a.YNc(3,ie,28,38,"div",2),a.qZA()),2&l&&(a.xp6(2),a.Q6J("ngIf",R.loading),a.xp6(1),a.Q6J("ngIf",!R.loading&&void 0!==R.resource))},dependencies:[L.O5,L.PC,J.yS,B.Hw,b.lW,O.Ou,N.gM,y.A,W.W,V.YH,V.QG,oe.X$],styles:[".break-line[_ngcontent-%COMP%]{display:inline-block}"],data:{animation:[r.Ji]}}),g})()},258:(te,j,o)=>{o.d(j,{K:()=>I});var r=o(32105),f=o(95017),n=o(65412),d=o(30671),T=o(69723),s=o(94650),t=o(89383),e=o(36895),F=o(4859),K=o(51572);function a(m,G){1&m&&s._UZ(0,"mat-spinner",6)}function J(m,G){1&m&&s._UZ(0,"th",15)}function M(m,G){if(1&m&&(s.TgZ(0,"td",16),s._uU(1),s.qZA()),2&m){const u=G.$implicit;s.xp6(1),s.Oqu(u.name)}}function Z(m,G){1&m&&s._UZ(0,"tr",17)}function H(m,G){1&m&&s._UZ(0,"tr",18)}function L(m,G){if(1&m&&(s.TgZ(0,"div",7)(1,"p"),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"div",8),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.TgZ(7,"table",9),s.ynx(8,10),s.YNc(9,J,1,0,"th",11),s.YNc(10,M,2,1,"td",12),s.BQk(),s.YNc(11,Z,1,0,"tr",13),s.YNc(12,H,1,0,"tr",14),s.qZA()()),2&m){const u=s.oxw();s.xp6(2),s.hij(" ",s.lcZ(3,5,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.DESCRIPTION")," "),s.xp6(3),s.hij(" ",s.lcZ(6,7,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.ASK")," "),s.xp6(2),s.Q6J("dataSource",u.dataSource),s.xp6(4),s.Q6J("matHeaderRowDef",u.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",u.displayedColumns)}}let B=(()=>{class m{constructor(u,C,x,ee,z){this.dialogRef=u,this.data=C,this.notificator=x,this.translate=ee,this.resourceManager=z,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new d.by(this.data.groups)}onCancel(){this.dialogRef.close()}onSubmit(){const u=[];for(const C of this.data.groups)u.push(C.id);this.loading=!0,this.resourceManager.removeGroupsFromResource(u,this.data.resourceId).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_GROUP_FROM_RESOURCE.SUCCESS").subscribe(C=>{this.notificator.showSuccess(C),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return m.\u0275fac=function(u){return new(u||m)(s.Y36(n.so),s.Y36(n.WI),s.Y36(T.V6),s.Y36(t.sK),s.Y36(r.xk))},m.\u0275cmp=s.Xpm({type:m,selectors:[["app-perun-web-apps-remove-group-from-resource-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","","data-cy","delete-button",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(u,C){1&u&&(s.TgZ(0,"div")(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,a,1,0,"mat-spinner",1),s.YNc(5,L,13,9,"div",2),s.TgZ(6,"div",3)(7,"button",4),s.NdJ("click",function(){return C.onCancel()}),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.TgZ(10,"button",5),s.NdJ("click",function(){return C.onSubmit()}),s._uU(11),s.ALo(12,"translate"),s.qZA()()()),2&u&&(s.Tol(C.theme),s.xp6(2),s.Oqu(s.lcZ(3,9,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.TITLE")),s.xp6(2),s.Q6J("ngIf",C.loading),s.xp6(1),s.Q6J("ngIf",!C.loading),s.xp6(3),s.hij(" ",s.lcZ(9,11,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.CANCEL")," "),s.xp6(2),s.Q6J("disabled",C.loading),s.xp6(1),s.hij(" ",s.lcZ(12,13,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.DELETE")," "))},dependencies:[e.O5,F.lW,d.BZ,d.fO,d.as,d.w1,d.Dz,d.nj,d.ge,d.ev,d.XQ,d.Gk,n.uh,n.xY,n.H8,K.Ou,t.X$]}),m})();var b=o(10036),O=o(24006),N=o(90455),y=o(86257),W=o(25788),V=o(64901);const oe=["stepper"];function ne(m,G){1&m&&s._UZ(0,"mat-spinner",4)}function w(m,G){1&m&&(s._uU(0),s.ALo(1,"translate")),2&m&&s.Oqu(s.lcZ(1,1,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.GROUPS"))}function $(m,G){1&m&&(s._uU(0),s.ALo(1,"translate")),2&m&&s.Oqu(s.lcZ(1,1,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.OPTIONS"))}const E=function(){return["select","id","name","description"]};function h(m,G){if(1&m){const u=s.EpF();s.TgZ(0,"div",5)(1,"mat-stepper",6,7)(3,"mat-step",8),s.YNc(4,w,2,3,"ng-template",9),s.TgZ(5,"perun-web-apps-debounce-filter",10),s.NdJ("filter",function(x){s.CHM(u);const ee=s.oxw();return s.KtG(ee.applyFilter(x))}),s.ALo(6,"translate"),s.qZA(),s._UZ(7,"perun-web-apps-groups-list",11),s.qZA(),s.TgZ(8,"mat-step"),s.YNc(9,$,2,3,"ng-template",9),s.TgZ(10,"mat-slide-toggle",12),s.NdJ("toggleChange",function(){s.CHM(u);const x=s.oxw();return s.KtG(x.changeSubgroupsMessage())})("ngModelChange",function(x){s.CHM(u);const ee=s.oxw();return s.KtG(ee.autoAssignSubgroups=x)}),s._uU(11),s.ALo(12,"translate"),s.qZA(),s.TgZ(13,"div",13),s._UZ(14,"i",14),s.qZA(),s.TgZ(15,"mat-slide-toggle",12),s.NdJ("toggleChange",function(){s.CHM(u);const x=s.oxw();return s.KtG(x.changeInactiveMessage())})("ngModelChange",function(x){s.CHM(u);const ee=s.oxw();return s.KtG(ee.asActive=x)}),s._uU(16),s.ALo(17,"translate"),s.qZA(),s.TgZ(18,"div",13),s._uU(19),s.qZA(),s.TgZ(20,"mat-slide-toggle",12),s.NdJ("toggleChange",function(){s.CHM(u);const x=s.oxw();return s.KtG(x.changeAsyncMessage())})("ngModelChange",function(x){s.CHM(u);const ee=s.oxw();return s.KtG(ee.async=x)}),s._uU(21),s.ALo(22,"translate"),s.qZA(),s.TgZ(23,"div",13),s._uU(24),s.qZA()()()()}if(2&m){const u=s.oxw();s.xp6(1),s.Q6J("linear",!0),s.xp6(2),s.Q6J("completed",0!==u.selection.selected.length&&u.canAddGroups()),s.xp6(2),s.s9C("placeholder",s.lcZ(6,19,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.FILTER_DESCRIPTION")),s.xp6(2),s.Q6J("disableMembers",!1)("groups",u.unAssignedGroups)("selection",u.selection)("disableRouting",!0)("displayedColumns",s.DdM(27,E))("filter",u.filterValue)("tableId",u.tableId),s.xp6(3),s.Q6J("ngModel",u.autoAssignSubgroups),s.xp6(1),s.hij(" ",s.lcZ(12,21,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.AUTO_SUBGROUPS")," "),s.xp6(3),s.Q6J("innerHTML",u.autoAssignHint,s.oJD),s.xp6(1),s.Q6J("ngModel",u.asActive),s.xp6(1),s.hij(" ",s.lcZ(17,23,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.AS_ACTIVE")," "),s.xp6(3),s.hij(" ",u.asActiveHint," "),s.xp6(1),s.Q6J("ngModel",u.async),s.xp6(1),s.hij(" ",s.lcZ(22,25,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ASYNC_OPT")," "),s.xp6(3),s.hij(" ",u.asyncHint," ")}}function Y(m,G){if(1&m){const u=s.EpF();s.TgZ(0,"button",20),s.NdJ("click",function(){s.CHM(u);const x=s.oxw(2);return s.KtG(x.stepperPrevious())}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&m&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.BACK")," "))}function v(m,G){if(1&m){const u=s.EpF();s.TgZ(0,"button",21),s.NdJ("click",function(){s.CHM(u);const x=s.oxw(2);return s.KtG(x.stepperNext())}),s._uU(1),s.ALo(2,"translate"),s.qZA()}if(2&m){const u=s.oxw(2);s.ekj("ml-2",void 0!==u.stepper&&0!==u.stepper.selectedIndex)("ml-auto",!(void 0!==u.stepper&&0!==u.stepper.selectedIndex)),s.Q6J("disabled",0===u.selection.selected.length||!u.canAddGroups()),s.xp6(1),s.hij(" ",s.lcZ(2,6,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.NEXT")," ")}}function P(m,G){if(1&m){const u=s.EpF();s.TgZ(0,"button",22),s.NdJ("click",function(){s.CHM(u);const x=s.oxw(2);return s.KtG(x.onAdd())}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&m&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ADD_BUTTON")," "))}function k(m,G){if(1&m){const u=s.EpF();s.TgZ(0,"div",15)(1,"button",16),s.NdJ("click",function(){s.CHM(u);const x=s.oxw();return s.KtG(x.onCancel())}),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,Y,3,3,"button",17),s.YNc(5,v,3,8,"button",18),s.YNc(6,P,3,3,"button",19),s.qZA()}if(2&m){const u=s.oxw();s.xp6(2),s.hij(" ",s.lcZ(3,4,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.CANCEL_BUTTON")," "),s.xp6(2),s.Q6J("ngIf",void 0!==u.stepper&&0!==u.stepper.selectedIndex),s.xp6(1),s.Q6J("ngIf",void 0!==u.stepper&&u.stepper.selectedIndex!==u.stepper._steps.length-1),s.xp6(1),s.Q6J("ngIf",void 0!==u.stepper&&u.stepper.selectedIndex===u.stepper._steps.length-1)}}let X=(()=>{class m{constructor(u,C,x,ee,z,ae,pe,ge){this.dialogRef=u,this.data=C,this.notificator=x,this.translate=ee,this.resourceManager=z,this.groupService=ae,this.guiAuthResolver=pe,this.cd=ge,this.loading=!1,this.unAssignedGroups=this.data.onlyAutoAssignedGroups,this.async=!0,this.autoAssignSubgroups=!1,this.asActive=!0,this.selection=new f.Ov(!0,[]),this.filterValue="",this.tableId=b.cL}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.resource=this.data.resource,this.autoAssignHint=this.translate.instant("DIALOGS.ASSIGN_GROUP_TO_RESOURCE.AUTO_SUBGROUPS_OFF_HINT"),this.asActiveHint=this.translate.instant("DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ACTIVE_ON_HINT"),this.asyncHint=this.translate.instant("DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ASYNC_ON_HINT"),this.resourceManager.getAssignedGroups(this.resource.id).subscribe(u=>{this.groupService.getAllGroups(this.resource.voId).subscribe(C=>{for(const x of C)-1===u.findIndex(ee=>ee.id===x.id)&&this.guiAuthResolver.isAuthorized("assignGroupsToResource_List_Resource_policy",[this.resource,x])&&this.unAssignedGroups.push(x);this.loading=!1,this.cd.detectChanges()},()=>this.loading=!1)},()=>this.loading=!1)}onCancel(){this.dialogRef.close()}onAdd(){this.loading=!0;const u=[];for(const C of this.selection.selected)u.push(C.id);this.resourceManager.assignGroupsToResource(u,this.resource.id,this.async,!this.asActive,this.autoAssignSubgroups).subscribe(()=>{this.translate.get("DIALOGS.ASSIGN_GROUP_TO_RESOURCE.SUCCESS_MESSAGE").subscribe(C=>{this.notificator.showSuccess(C),this.dialogRef.close(!0)})},()=>this.loading=!1)}applyFilter(u){this.filterValue=u}canAddGroups(){let u=!0;return this.selection.selected.forEach(C=>{this.guiAuthResolver.isAuthorized("assignGroupsToResource_List_Resource_policy",[this.resource,C])||(u=!1)}),u}changeSubgroupsMessage(){this.autoAssignHint=this.translate.instant(this.autoAssignSubgroups?"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.AUTO_SUBGROUPS_OFF_HINT":"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.AUTO_SUBGROUPS_ON_HINT")}changeInactiveMessage(){this.asActiveHint=this.translate.instant(this.asActive?"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ACTIVE_OFF_HINT":"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ACTIVE_ON_HINT")}changeAsyncMessage(){this.asyncHint=this.translate.instant(this.async?"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ASYNC_OFF_HINT":"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ASYNC_ON_HINT")}stepperPrevious(){this.stepper.previous()}stepperNext(){this.stepper.next()}}return m.\u0275fac=function(u){return new(u||m)(s.Y36(n.so),s.Y36(n.WI),s.Y36(T.V6),s.Y36(t.sK),s.Y36(r.xk),s.Y36(r.ff),s.Y36(T.x4),s.Y36(s.sBO))},m.\u0275cmp=s.Xpm({type:m,selectors:[["app-perun-web-apps-assign-group-to-resource-dialog"]],viewQuery:function(u,C){if(1&u&&s.Gf(oe,5),2&u){let x;s.iGM(x=s.CRH())&&(C.stepper=x.first)}},decls:7,vars:9,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"linear"],["stepper",""],[3,"completed"],["matStepLabel",""],[3,"placeholder","filter"],[3,"disableMembers","groups","selection","disableRouting","displayedColumns","filter","tableId"],["labelPosition","before",1,"mt-3","slide-text",3,"ngModel","toggleChange","ngModelChange"],[1,"text-muted","new-line","mt-2"],[3,"innerHTML"],["mat-dialog-actions",""],["mat-flat-button","",3,"click"],["class","ml-auto","mat-flat-button","",3,"click",4,"ngIf"],["color","accent","mat-flat-button","","type","button","data-cy","next-button",3,"ml-2","ml-auto","disabled","click",4,"ngIf"],["class","ml-2","color","accent","mat-flat-button","","type","button","data-cy","assign-button",3,"click",4,"ngIf"],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","","type","button","data-cy","next-button",3,"disabled","click"],["color","accent","mat-flat-button","","type","button","data-cy","assign-button",1,"ml-2",3,"click"]],template:function(u,C){1&u&&(s.TgZ(0,"div")(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,ne,1,0,"mat-spinner",1),s.YNc(5,h,25,28,"div",2),s.YNc(6,k,7,6,"div",3),s.qZA()),2&u&&(s.Tol(C.theme),s.xp6(2),s.Oqu(s.lcZ(3,7,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.TITLE")),s.xp6(2),s.Q6J("ngIf",C.loading),s.xp6(1),s.Q6J("ngIf",!C.loading),s.xp6(1),s.Q6J("ngIf",!C.loading&&C.stepper))},dependencies:[e.O5,O.JJ,O.On,F.lW,n.uh,n.xY,n.H8,K.Ou,N.Rr,y.C0,y.VY,y.Vq,W.W,V.P,t.X$],styles:[".slide-text[_ngcontent-%COMP%]{font-size:1.1rem}"]}),m})();var se=o(9244),ie=o(64080),re=o(94364),g=o(10266),Q=o(96214);function l(m,G){if(1&m){const u=s.EpF();s.TgZ(0,"button",8),s.NdJ("click",function(){s.CHM(u);const x=s.oxw();return s.KtG(x.addGroup())}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&m&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"RESOURCE_DETAIL.ASSIGNED_GROUPS.ADD_GROUP"),"\n"))}function R(m,G){1&m&&s._UZ(0,"mat-spinner",9)}const _=function(m){return[m]},U=function(){return["select","id","indirectGroupAssigment","name","status","description"]};function A(m,G){if(1&m){const u=s.EpF();s.TgZ(0,"perun-web-apps-groups-list",10),s.NdJ("refreshTable",function(){s.CHM(u);const x=s.oxw();return s.KtG(x.loadAllGroups())}),s.qZA()}if(2&m){const u=s.oxw();s.Q6J("disableGroups",!0)("groupsToDisableCheckbox",u.groupsToDisable)("disableMembers",!1)("groups",u.assignedGroups)("disableRouting",!!u.assignedGroups[0]&&!u.guiAuthResolver.isAuthorized("getGroupById_int_policy",s.VKq(10,_,u.assignedGroups[0])))("displayedColumns",s.DdM(12,U))("filter",u.filteredValue)("resourceId",u.resource.id)("selection",u.selected)("tableId",u.tableId)}}let I=(()=>{class m{constructor(u,C,x,ee,z){this.route=u,this.resourcesManager=C,this.dialog=x,this.guiAuthResolver=ee,this.entityStorageService=z,this.assignedGroups=[],this.selected=new f.Ov(!0,[]),this.filteredValue="",this.tableId=b.Ad}ngOnInit(){this.loading=!0,this.resource=this.entityStorageService.getEntity(),this.loadAllGroups()}loadAllGroups(){this.loading=!0,this.resourcesManager.getGroupAssignments(this.resource.id,[ie.r.GROUP_SYNC_ENABLED]).subscribe(u=>{this.assignedGroups=u.map(z=>{const ae=z.enrichedGroup.group;return ae.status=z.status,ae.failureCause=z.failureCause,ae.sourceGroupId=z.sourceGroupId,ae});const C=this.assignedGroups.map(z=>z.id),x=this.assignedGroups.filter((z,ae)=>C.indexOf(z.id)===ae),ee=this.assignedGroups.filter((z,ae)=>{const pe=C.indexOf(z.id);return pe!==ae&&(null===z.sourceGroupId||null===this.assignedGroups[pe].sourceGroupId)}).map(z=>z.id);x.forEach(z=>{ee.includes(z.id)&&(z.moreTypesOfAssignment=!0)}),this.assignedGroups=x,this.groupsToDisable=new Set(this.assignedGroups.filter(z=>!!z.sourceGroupId&&!z.moreTypesOfAssignment).map(z=>z.id)),this.selected.clear(),this.loading=!1})}addGroup(){const u=(0,se.kZ)();u.width="1000px",u.data={theme:"resource-theme",resource:this.resource,onlyAutoAssignedGroups:this.assignedGroups.filter(x=>this.groupsToDisable.has(x.id))},this.dialog.open(X,u).afterClosed().subscribe(x=>{x&&this.loadAllGroups()})}removeGroups(){const u=(0,se.kZ)();u.width="500px",u.data={resourceId:this.resource.id,groups:this.selected.selected,theme:"resource-theme"},this.dialog.open(B,u).afterClosed().subscribe(x=>{x&&this.loadAllGroups()})}canRemoveGroups(){let u=!0;return this.selected.selected.forEach(C=>{this.guiAuthResolver.isAuthorized("removeGroupsFromResource_List_Resource_policy",[this.resource,C])||(u=!1)}),u}applyFilter(u){this.filteredValue=u}}return m.\u0275fac=function(u){return new(u||m)(s.Y36(re.gz),s.Y36(r.xk),s.Y36(n.uw),s.Y36(T.x4),s.Y36(T.fb))},m.\u0275cmp=s.Xpm({type:m,selectors:[["app-perun-web-apps-resource-groups"]],decls:13,vars:17,consts:[[1,"page-subtitle"],[3,"refresh"],["class","action-button","color","accent","mat-flat-button","","data-cy","add-group-button",3,"click",4,"ngIf"],["color","warn","mat-flat-button","","data-cy","remove-group-button",1,"ml-2","mr-2",3,"disabled","click"],[3,"matTooltipDisabled","matTooltip"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableGroups","groupsToDisableCheckbox","disableMembers","groups","disableRouting","displayedColumns","filter","resourceId","selection","tableId","refreshTable",4,"ngIf"],["color","accent","mat-flat-button","","data-cy","add-group-button",1,"action-button",3,"click"],[1,"ml-auto","mr-auto"],[3,"disableGroups","groupsToDisableCheckbox","disableMembers","groups","disableRouting","displayedColumns","filter","resourceId","selection","tableId","refreshTable"]],template:function(u,C){1&u&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.TgZ(3,"perun-web-apps-refresh-button",1),s.NdJ("refresh",function(){return C.loadAllGroups()}),s.qZA(),s.YNc(4,l,3,3,"button",2),s.TgZ(5,"button",3),s.NdJ("click",function(){return C.removeGroups()}),s.TgZ(6,"span",4),s.ALo(7,"translate"),s._uU(8),s.ALo(9,"translate"),s.qZA()(),s.TgZ(10,"perun-web-apps-debounce-filter",5),s.NdJ("filter",function(ee){return C.applyFilter(ee)}),s.qZA(),s.YNc(11,R,1,0,"mat-spinner",6),s.YNc(12,A,1,13,"perun-web-apps-groups-list",7)),2&u&&(s.xp6(1),s.Oqu(s.lcZ(2,9,"RESOURCE_DETAIL.ASSIGNED_GROUPS.TITLE")),s.xp6(3),s.Q6J("ngIf",C.guiAuthResolver.isAuthorized("getAllGroups_Vo_policy",s.VKq(15,_,C.resource))),s.xp6(1),s.Q6J("disabled",0===C.selected.selected.length||!C.canRemoveGroups()),s.xp6(1),s.s9C("matTooltip",s.lcZ(7,11,"RESOURCE_DETAIL.ASSIGNED_GROUPS.REMOVE_TOOLTIP")),s.Q6J("matTooltipDisabled",C.canRemoveGroups()),s.xp6(2),s.hij(" ",s.lcZ(9,13,"RESOURCE_DETAIL.ASSIGNED_GROUPS.REMOVE_GROUP")," "),s.xp6(2),s.Q6J("placeholder","RESOURCE_DETAIL.ASSIGNED_GROUPS.FILTER_GROUPS"),s.xp6(1),s.Q6J("ngIf",C.loading),s.xp6(1),s.Q6J("ngIf",!C.loading))},dependencies:[e.O5,F.lW,K.Ou,g.gM,W.W,Q.t,V.P,t.X$]}),m})()},4675:(te,j,o)=>{o.d(j,{H:()=>K});var r=o(32105),f=o(69723),n=o(94650),d=o(94364),T=o(36895),s=o(51572),t=o(71135);function e(a,J){1&a&&n._UZ(0,"mat-spinner",2)}function F(a,J){if(1&a&&(n.TgZ(0,"div"),n._UZ(1,"perun-web-apps-menu-buttons-field",3),n.qZA()),2&a){const M=n.oxw();n.xp6(1),n.Q6J("items",M.navItems)("size","small")}}let K=(()=>{class a{constructor(M,Z,H,L,B){this.resourcesManager=M,this.route=Z,this.guiAuthResolver=H,this.entityStorageService=L,this.routePolicyService=B,this.navItems=[],this.loading=!1}ngOnInit(){this.loading=!0,this.resource=this.entityStorageService.getEntity(),this.initItems("facilities"!==this.route.parent.parent.snapshot.url[0].path),this.loading=!1}initItems(M){const Z=M?`/organizations/${this.resource.voId}`:`/facilities/${this.resource.facilityId}`;this.navItems=[],this.routePolicyService.canNavigate("resources-groups",this.resource)&&this.navItems.push({cssIcon:"perun-group",url:`${Z}/resources/${this.resource.id}/groups`,label:"MENU_ITEMS.RESOURCE.ASSIGNED_GROUPS",style:"resource-btn"}),this.routePolicyService.canNavigate("resources-services",this.resource)&&this.navItems.push({cssIcon:"perun-service",url:`${Z}/resources/${this.resource.id}/services`,label:"MENU_ITEMS.RESOURCE.ASSIGNED_SERVICES",style:"resource-btn"}),this.routePolicyService.canNavigate("resources-members",this.resource)&&this.navItems.push({cssIcon:"perun-user",url:`${Z}/resources/${this.resource.id}/members`,label:"MENU_ITEMS.RESOURCE.ASSIGNED_MEMBERS",style:"resource-btn"}),this.routePolicyService.canNavigate("resources-tags",this.resource)&&this.navItems.push({cssIcon:"perun-resource-tags",url:`${Z}/resources/${this.resource.id}/tags`,label:"MENU_ITEMS.RESOURCE.RESOURCE_TAGS",style:"resource-btn"}),this.routePolicyService.canNavigate("resources-attributes",this.resource)&&this.navItems.push({cssIcon:"perun-attributes",url:`${Z}/resources/${this.resource.id}/attributes`,label:"MENU_ITEMS.RESOURCE.ATTRIBUTES",style:"resource-btn"}),this.routePolicyService.canNavigate("resources-settings",this.resource)&&this.navItems.push({cssIcon:"perun-settings2",url:`${Z}/resources/${this.resource.id}/settings`,label:"MENU_ITEMS.RESOURCE.SETTINGS",style:"resource-btn"})}}return a.\u0275fac=function(M){return new(M||a)(n.Y36(r.xk),n.Y36(d.gz),n.Y36(f.x4),n.Y36(f.fb),n.Y36(f.Ip))},a.\u0275cmp=n.Xpm({type:a,selectors:[["app-resource-overview"]],hostVars:2,hostBindings:function(M,Z){2&M&&n.ekj("router-component",Z.true)},decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"items","size"]],template:function(M,Z){1&M&&(n.YNc(0,e,1,0,"mat-spinner",0),n.YNc(1,F,2,2,"div",1)),2&M&&(n.Q6J("ngIf",Z.loading),n.xp6(1),n.Q6J("ngIf",!Z.loading))},dependencies:[T.O5,s.Ou,t.L]}),a})()},35265:(te,j,o)=>{o.d(j,{I:()=>E});var r=o(32105),f=o(95017),n=o(69723),d=o(9244),T=o(21029),s=o(10036),t=o(65412),e=o(94650),F=o(38383),K=o(64901),a=o(83370);const J=function(){return["checkbox","id","fullName"]};let M=(()=>{class h{constructor(v,P,k,X,se){this.data=v,this.dialogRef=P,this.store=k,this.resourceService=X,this.notificator=se,this.selection=new f.Ov(!1,[]),this.loading=!1,this.displayedColumns=["checkbox","id","fullName","organization","email","logins"],this.members=[],this.tableId=s.bj,this.filter=""}ngOnInit(){this.loading=!0,this.resourceService.getAssignedRichMembers(this.data.entityId).subscribe({next:v=>{this.members=v,this.loading=!1},error:()=>this.loading=!1}),this.selection.changed.subscribe(v=>{this.ban=this.data.bans.find(P=>P.memberId===v.source.selected[0]?.id)})}cancel(){this.dialogRef.close(!1)}submitBan(v){this.ban?this.updateBan(v):this.banMember(v)}banMember(v){this.loading=!0,this.resourceService.setResourceBan({banOnResource:{memberId:this.selection.selected[0].id,resourceId:this.data.entityId,description:v.description,validityTo:v.validity,id:0,beanName:"BanOnResource"}}).subscribe({next:()=>{this.notificator.showSuccess("DIALOGS.ADD_BAN.SUCCESS_MEMBER"),this.dialogRef.close(!0)},error:()=>this.loading=!1})}updateBan(v){this.loading=!0,this.resourceService.updateResourceBan({banOnResource:{id:this.ban.id,beanName:"BanOnFacility",resourceId:this.ban.resourceId,memberId:this.ban.memberId,description:v.description,validityTo:v.validity}}).subscribe({next:()=>{this.notificator.showSuccess("DIALOGS.UPDATE_BAN.SUCCESS"),this.dialogRef.close(!0)},error:()=>{this.loading=!1}})}}return h.\u0275fac=function(v){return new(v||h)(e.Y36(t.WI),e.Y36(t.so),e.Y36(n.d6),e.Y36(r.xk),e.Y36(n.V6))},h.\u0275cmp=e.Xpm({type:h,selectors:[["app-add-resource-ban-dialog"]],decls:3,vars:13,consts:[[3,"loading","disabled","theme","ban","add","cancel"],[3,"placeholder","filter"],[3,"displayedColumns","selection","disableRouting","allowCheckboxDisabled","filter","members","tableId"]],template:function(v,P){1&v&&(e.TgZ(0,"app-add-ban-dialog",0),e.NdJ("add",function(X){return P.submitBan(X)})("cancel",function(){return P.cancel()}),e.TgZ(1,"perun-web-apps-debounce-filter",1),e.NdJ("filter",function(X){return P.filter=X}),e.qZA(),e._UZ(2,"perun-web-apps-members-list",2),e.qZA()),2&v&&(e.Q6J("loading",P.loading)("disabled",0===P.selection.selected.length)("theme",P.data.theme)("ban",P.ban),e.xp6(1),e.Q6J("placeholder","DIALOGS.ADD_BAN.FILTER"),e.xp6(1),e.Q6J("displayedColumns",e.DdM(12,J))("selection",P.selection)("disableRouting",!0)("allowCheckboxDisabled",!1)("filter",P.filter)("members",P.members)("tableId",P.tableId))},dependencies:[F.O,K.P,a.u]}),h})();var Z=o(64080),H=o(28943),L=o(19516),B=o(36895),b=o(4859),O=o(51572),N=o(96214),y=o(94391),W=o(91880),V=o(89383);function oe(h,Y){if(1&h){const v=e.EpF();e.TgZ(0,"button",8),e.NdJ("click",function(){e.CHM(v);const k=e.oxw();return e.KtG(k.add())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&h&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"RESOURCE_DETAIL.SETTINGS.BANS.ADD"),"\n"))}function ne(h,Y){if(1&h){const v=e.EpF();e.TgZ(0,"button",9),e.NdJ("click",function(){e.CHM(v);const k=e.oxw();return e.KtG(k.remove())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}if(2&h){const v=e.oxw();e.Q6J("disabled",0===v.selection.selected.length),e.xp6(1),e.hij(" ",e.lcZ(2,2,"RESOURCE_DETAIL.SETTINGS.BANS.REMOVE"),"\n")}}function w(h,Y){if(1&h){const v=e.EpF();e.TgZ(0,"perun-web-apps-ban-on-entity-list",10),e.NdJ("updateBan",function(k){e.CHM(v);const X=e.oxw();return e.KtG(X.update(k))}),e.qZA()}if(2&h){const v=e.oxw();e.Q6J("bans",v.bans)("selection",v.selection)("displayedColumns",v.displayedColumns)("filter",v.filter)("updatePolicy","updateBan_BanOnResource_policy")}}function $(h,Y){1&h&&(e.TgZ(0,"div",11),e._UZ(1,"mat-spinner"),e.qZA())}let E=(()=>{class h{constructor(v,P,k,X,se,ie,re){this.resourceService=v,this.entityService=P,this.authResolver=k,this.dialog=X,this.notificator=se,this.store=ie,this.userName=re,this.loading=!1,this.bans=[],this.removeAuth=!1,this.filter="",this.selection=new f.Ov(!1,[]),this.attrNames=[Z.r.MEMBER_DEF_MAIL,Z.r.USER_DEF_PREFERRED_MAIL].concat(this.store.getLoginAttributeNames()),this.displayedColumns=["select","banId","subjectId","subjectName","description","expiration","edit"]}ngOnInit(){this.loading=!0,this.resource=this.entityService.getEntity(),this.addAuth=this.authResolver.isAuthorized("setBan_BanOnResource_policy",[this.resource]),this.removeAuth=this.authResolver.isAuthorized("resource-removeBan_int_policy",[this.resource]),this.refresh()}refresh(){this.loading=!0,this.resourceService.getEnrichedBansForResource(this.resource.id,this.attrNames).subscribe({next:v=>{this.bans=v,this.selection.clear(),this.loading=!1},error:()=>this.loading=!1})}add(){const v=(0,d.kZ)();v.width="850px",v.data={entityId:this.resource.id,theme:"resource-theme",bans:this.bans.map(k=>k.ban)},this.dialog.open(M,v).afterClosed().subscribe(k=>{k&&this.refresh()})}remove(){const v=(0,d.kZ)();v.width="550px",v.data={theme:"resource-theme",title:"DIALOGS.REMOVE_BAN.TITLE",description:"DIALOGS.REMOVE_BAN.DESCRIPTION",items:[this.userName.transform(this.selection.selected[0].member.user)],type:"remove",showAsk:!0},this.dialog.open(T.Ts,v).afterClosed().subscribe(k=>{k&&this.resourceService.removeResourceBanById(this.selection.selected[0].ban.id).subscribe(()=>{this.notificator.showSuccess("DIALOGS.REMOVE_BAN.SUCCESS"),this.refresh()})})}update(v){const P=(0,d.kZ)();P.width="600px",P.data={ban:v.ban,theme:"facility-theme"},this.dialog.open(H.e,P).afterClosed().subscribe(X=>{X&&this.refresh()})}}return h.\u0275fac=function(v){return new(v||h)(e.Y36(r.xk),e.Y36(n.fb),e.Y36(n.x4),e.Y36(t.uw),e.Y36(n.V6),e.Y36(n.d6),e.Y36(L.dp))},h.\u0275cmp=e.Xpm({type:h,selectors:[["app-resource-settings-bans"]],features:[e._Bn([L.dp])],decls:11,vars:8,consts:[[1,"page-subtitle"],[3,"click"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["color","warn","class","mr-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],[1,"mt-2","search-field",3,"placeholder","filter"],[1,"position-relative"],[3,"bans","selection","displayedColumns","filter","updatePolicy","updateBan",4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["spinner",""],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[3,"bans","selection","displayedColumns","filter","updatePolicy","updateBan"],[1,"spinner-container"]],template:function(v,P){if(1&v&&(e.TgZ(0,"h1",0),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.TgZ(3,"perun-web-apps-refresh-button",1),e.NdJ("click",function(){return P.refresh()}),e.qZA(),e.YNc(4,oe,3,3,"button",2),e.YNc(5,ne,3,4,"button",3),e.TgZ(6,"perun-web-apps-debounce-filter",4),e.NdJ("filter",function(X){return P.filter=X}),e.qZA(),e.TgZ(7,"div",5),e.YNc(8,w,1,5,"perun-web-apps-ban-on-entity-list",6),e.qZA(),e.YNc(9,$,2,0,"ng-template",null,7,e.W1O)),2&v){const k=e.MAs(10);e.xp6(1),e.hij(" ",e.lcZ(2,6,"RESOURCE_DETAIL.SETTINGS.BANS.TITLE"),"\n"),e.xp6(3),e.Q6J("ngIf",P.addAuth),e.xp6(1),e.Q6J("ngIf",P.removeAuth),e.xp6(1),e.Q6J("placeholder","RESOURCE_DETAIL.SETTINGS.BANS.FILTER"),e.xp6(2),e.Q6J("perunWebAppsLoader",P.loading)("perunWebAppsLoaderIndicator",k)}},dependencies:[B.O5,b.lW,O.Ou,N.t,K.P,y.e5,W.s,V.X$]}),h})()},20057:(te,j,o)=>{o.d(j,{O:()=>d});var r=o(69723),f=o(94650),n=o(28361);let d=(()=>{class T{constructor(t,e){this.guiAuthResolver=t,this.entityStorageService=e,this.availableRoles=[],this.type="Resource",this.theme="resource-theme"}ngOnInit(){this.resource=this.entityStorageService.getEntity(),this.guiAuthResolver.assignAvailableRoles(this.availableRoles,"Resource")}}return T.\u0275fac=function(t){return new(t||T)(f.Y36(r.x4),f.Y36(r.fb))},T.\u0275cmp=f.Xpm({type:T,selectors:[["app-resource-settings-managers"]],decls:1,vars:4,consts:[[3,"complementaryObject","availableRoles","complementaryObjectType","theme"]],template:function(t,e){1&t&&f._UZ(0,"app-managers-page",0),2&t&&f.Q6J("complementaryObject",e.resource)("availableRoles",e.availableRoles)("complementaryObjectType",e.type)("theme",e.theme)},dependencies:[n.s]}),T})()},16500:(te,j,o)=>{o.d(j,{h:()=>K});var r=o(32105),f=o(69723),n=o(94650),d=o(94364),T=o(36895),s=o(51572),t=o(71135);function e(a,J){1&a&&n._UZ(0,"mat-spinner",2)}function F(a,J){if(1&a&&(n.TgZ(0,"div"),n._UZ(1,"perun-web-apps-menu-buttons-field",3),n.qZA()),2&a){const M=n.oxw();n.xp6(1),n.Q6J("items",M.items)("size","small")}}let K=(()=>{class a{constructor(M,Z,H,L,B){this.route=M,this.resourceManager=Z,this.authResolver=H,this.entityStorageService=L,this.routePolicyService=B,this.items=[],this.loading=!1}ngOnInit(){this.loading=!0,this.resource=this.entityStorageService.getEntity(),this.initItems("facilities"!==this.route.parent.parent.parent.snapshot.url[0].path),this.loading=!1}initItems(M){this.items=[],this.routePolicyService.canNavigate("resources-settings-managers",this.resource)&&this.items.push({cssIcon:"perun-manager",url:`${M?`/organizations/${this.resource.voId}`:`/facilities/${this.resource.facilityId}`}/resources/${this.resource.id}/settings/managers`,label:"MENU_ITEMS.RESOURCE.MANAGERS",style:"resource-btn"}),this.routePolicyService.canNavigate("resources-settings-bans",this.resource)&&this.items.push({cssIcon:"perun-ban",url:`${M?`/organizations/${this.resource.voId}`:`/facilities/${this.resource.facilityId}`}/resources/${this.resource.id}/settings/bans`,label:"MENU_ITEMS.RESOURCE.BANS",style:"resource-btn"})}}return a.\u0275fac=function(M){return new(M||a)(n.Y36(d.gz),n.Y36(r.xk),n.Y36(f.x4),n.Y36(f.fb),n.Y36(f.Ip))},a.\u0275cmp=n.Xpm({type:a,selectors:[["app-resource-settings-overview"]],hostVars:2,hostBindings:function(M,Z){2&M&&n.ekj("router-component",Z.true)},decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"items","size"]],template:function(M,Z){1&M&&(n.YNc(0,e,1,0,"mat-spinner",0),n.YNc(1,F,2,2,"div",1)),2&M&&(n.Q6J("ngIf",Z.loading),n.xp6(1),n.Q6J("ngIf",!Z.loading))},dependencies:[T.O5,s.Ou,t.L]}),a})()},60113:(te,j,o)=>{o.d(j,{t:()=>d});var r=o(36769),f=o(94650),n=o(61283);let d=(()=>{class T{}return T.\u0275fac=function(t){return new(t||T)},T.\u0275cmp=f.Xpm({type:T,selectors:[["app-resource-settings"]],hostVars:2,hostBindings:function(t,e){2&t&&f.ekj("router-component",e.true)},decls:1,vars:0,template:function(t,e){1&t&&f._UZ(0,"app-animated-router-outlet")},dependencies:[n.A],data:{animation:[r.Ji]}}),T})()},20872:(te,j,o)=>{o.d(j,{v:()=>ne});var r=o(32105),f=o(95017),n=o(10036),d=o(9244),T=o(69723),s=o(21029),t=o(65412),e=o(94650),F=o(36895),K=o(4859),a=o(51572),J=o(17672),M=o(89383);function Z(w,$){1&w&&e._UZ(0,"mat-spinner",8)}function H(w,$){if(1&w&&e._UZ(0,"app-resources-tags-list",9),2&w){const E=e.oxw();e.Q6J("selection",E.selection)("displayedColumns",E.displayedColumns)("entity","resource")("filterValue",E.filterValue)("resourceTags",E.resourceTags)("tableId",E.tableId)}}let L=(()=>{class w{constructor(E,h,Y){this.dialogRef=E,this.data=h,this.resourcesManager=Y,this.tableId=n.g,this.selection=new f.Ov(!0,[]),this.resourceTags=[],this.displayedColumns=["select","id","name"]}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.voId=this.data.voId,this.resourceId=this.data.resourceId,this.assignedTags=this.data.assignedTags,this.resourcesManager.getAllResourcesTagsForVo(this.voId).subscribe(E=>{this.resourceTags=E.filter(h=>!this.assignedTags.map(Y=>Y.id).includes(h.id)),this.loading=!1})}onCancel(){this.dialogRef.close(!1)}onSubmit(E){if(0===E.length)return this.dialogRef.close(!0);const h=E.pop();this.resourcesManager.assignResourceTagToResource({resource:this.resourceId,resourceTag:h}).subscribe(()=>{this.onSubmit(E)})}applyFilter(E){this.filterValue=E}}return w.\u0275fac=function(E){return new(E||w)(e.Y36(t.so),e.Y36(t.WI),e.Y36(r.xk))},w.\u0275cmp=e.Xpm({type:w,selectors:[["app-add-resource-tag-to-resource-dialog"]],decls:15,vars:15,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"overflow-hidden"],["class","mr-auto ml-auto",4,"ngIf"],[3,"selection","displayedColumns","entity","filterValue","resourceTags","tableId",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],[3,"selection","displayedColumns","entity","filterValue","resourceTags","tableId"]],template:function(E,h){1&E&&(e.TgZ(0,"div")(1,"h1",0),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",1)(5,"div",2),e.YNc(6,Z,1,0,"mat-spinner",3),e.qZA(),e.YNc(7,H,1,6,"app-resources-tags-list",4),e.qZA(),e.TgZ(8,"div",5)(9,"button",6),e.NdJ("click",function(){return h.onCancel()}),e._uU(10),e.ALo(11,"translate"),e.qZA(),e.TgZ(12,"button",7),e.NdJ("click",function(){return h.onSubmit(h.selection.selected)}),e._uU(13),e.ALo(14,"translate"),e.qZA()()()),2&E&&(e.Tol(h.theme),e.xp6(2),e.Oqu(e.lcZ(3,9,"RESOURCE_DETAIL.TAGS.ADD_TAGS")),e.xp6(4),e.Q6J("ngIf",h.loading),e.xp6(1),e.Q6J("ngIf",!h.loading),e.xp6(3),e.hij(" ",e.lcZ(11,11,"RESOURCE_DETAIL.TAGS.CANCEL")," "),e.xp6(2),e.Q6J("disabled",h.loading||0===h.resourceTags.length),e.xp6(1),e.hij(" ",e.lcZ(14,13,"RESOURCE_DETAIL.TAGS.ADD_BUTTON")," "))},dependencies:[F.O5,K.lW,t.uh,t.xY,t.H8,a.Ou,J.o,M.X$]}),w})();var B=o(17584),b=o(96214),O=o(7434);function N(w,$){if(1&w){const E=e.EpF();e.TgZ(0,"button",7),e.NdJ("click",function(){e.CHM(E);const Y=e.oxw();return e.KtG(Y.create())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&w&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.CREATE_BUTTON"),"\n"))}function y(w,$){if(1&w){const E=e.EpF();e.TgZ(0,"button",7),e.NdJ("click",function(){e.CHM(E);const Y=e.oxw();return e.KtG(Y.addTag())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&w&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"RESOURCE_DETAIL.TAGS.ADD_BUTTON"),"\n"))}function W(w,$){if(1&w){const E=e.EpF();e.TgZ(0,"button",8),e.NdJ("click",function(){e.CHM(E);const Y=e.oxw();return e.KtG(Y.removeTags())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}if(2&w){const E=e.oxw();e.Q6J("disabled",0===E.selection.selected.length),e.xp6(1),e.hij(" ",e.lcZ(2,2,"RESOURCE_DETAIL.TAGS.REMOVE_BUTTON"),"\n")}}function V(w,$){1&w&&e._UZ(0,"mat-spinner",9)}function oe(w,$){if(1&w&&e._UZ(0,"app-resources-tags-list",10),2&w){const E=e.oxw();e.Q6J("displayedColumns",E.displayedColumns)("entity","resource")("resourceTags",E.resourceTags)("filterValue",E.filterValue)("selection",E.selection)("tableId",E.tableId)}}let ne=(()=>{class w{constructor(E,h,Y,v,P,k){this.authResolver=E,this.resourcesManager=h,this.dialog=Y,this.notificator=v,this.translate=P,this.entityStorageService=k,this.loading=!1,this.resourceTags=[],this.selection=new f.Ov(!0,[]),this.tableId=n.M8,this.displayedColumns=[]}ngOnInit(){this.loading=!0,this.resource=this.entityStorageService.getEntity(),this.setAuthRights(),this.updateData()}removeTags(){const E=(0,d.kZ)();E.width="450px",E.data={items:this.selection.selected.map(Y=>Y.tagName),title:"RESOURCE_DETAIL.TAGS.REMOVE_TAGS_DIALOG_TITLE",description:"RESOURCE_DETAIL.TAGS.REMOVE_TAGS_DIALOG_DESCRIPTION",theme:"resource-theme",type:"remove",showAsk:!0},this.dialog.open(s.Ts,E).afterClosed().subscribe(Y=>{Y&&this.removeTag(this.selection.selected)})}removeTag(E){if(0===E.length)return this.notificator.showSuccess(this.translate.instant("RESOURCE_DETAIL.TAGS.REMOVED_SUCCESSFULLY")),this.updateData();const h=E.pop();this.resourcesManager.removeResourceTagFromResource({resource:this.resource.id,resourceTag:h}).subscribe(()=>{this.removeTag(E)})}addTag(){const E=(0,d.kZ)();E.width="600px",E.data={voId:this.resource.voId,resourceId:this.resource.id,assignedTags:this.resourceTags,theme:"resource-theme"},this.dialog.open(L,E).afterClosed().subscribe(Y=>{Y&&(this.notificator.showSuccess(this.translate.instant("RESOURCE_DETAIL.TAGS.ADDED_SUCCESSFULLY")),this.updateData())})}create(){const E=(0,d.kZ)();E.width="450px",E.data={voId:this.resource.voId,theme:"resource-theme"},this.dialog.open(B.p,E).afterClosed().subscribe(Y=>{Y&&(this.translate.get("VO_DETAIL.RESOURCES.TAGS.CREATE_SUCCESS").subscribe(v=>{this.notificator.showSuccess(v)}),this.updateData())})}updateData(){this.loading=!0,this.selection.clear(),this.resourcesManager.getAllResourcesTagsForResource(this.resource.id).subscribe(E=>{this.resourceTags=E,this.selection.clear(),this.loading=!1})}setAuthRights(){const E={id:this.resource.voId,beanName:"Vo"};this.displayedColumns=[],this.createAuth=this.authResolver.isAuthorized("createResourceTag_ResourceTag_Vo_policy",[E]),this.addAuth=this.authResolver.isAuthorized("assignResourceTagToResource_ResourceTag_Resource_policy",[this.resource]),this.removeAuth=this.authResolver.isAuthorized("removeResourceTagFromResource_ResourceTag_Resource_policy",[this.resource]),this.displayedColumns=this.removeAuth?["select","id","name"]:["id","name"]}applyFilter(E){this.filterValue=E}}return w.\u0275fac=function(E){return new(E||w)(e.Y36(T.x4),e.Y36(r.xk),e.Y36(t.uw),e.Y36(T.V6),e.Y36(M.sK),e.Y36(T.fb))},w.\u0275cmp=e.Xpm({type:w,selectors:[["app-perun-web-apps-resource-tags"]],decls:10,vars:9,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"displayedColumns","entity","resourceTags","filterValue","selection","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","entity","resourceTags","filterValue","selection","tableId"]],template:function(E,h){1&E&&(e.TgZ(0,"h1",0),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.TgZ(3,"perun-web-apps-refresh-button",1),e.NdJ("refresh",function(){return h.updateData()}),e.qZA(),e.YNc(4,N,3,3,"button",2),e.YNc(5,y,3,3,"button",2),e.YNc(6,W,3,4,"button",3),e.TgZ(7,"perun-web-apps-immediate-filter",4),e.NdJ("filter",function(v){return h.applyFilter(v)}),e.qZA(),e.YNc(8,V,1,0,"mat-spinner",5),e.YNc(9,oe,1,6,"app-resources-tags-list",6)),2&E&&(e.xp6(1),e.Oqu(e.lcZ(2,7,"RESOURCE_DETAIL.TAGS.TITLE")),e.xp6(3),e.Q6J("ngIf",h.createAuth),e.xp6(1),e.Q6J("ngIf",h.addAuth),e.xp6(1),e.Q6J("ngIf",h.removeAuth),e.xp6(1),e.Q6J("placeholder","RESOURCE_DETAIL.TAGS.SEARCH"),e.xp6(1),e.Q6J("ngIf",h.loading),e.xp6(1),e.Q6J("ngIf",!h.loading))},dependencies:[F.O5,K.lW,a.Ou,J.o,b.t,O.L,M.X$]}),w})()},83370:(te,j,o)=>{o.d(j,{u:()=>b});var r=o(94650),f=o(85147),n=o(36895),d=o(4859),T=o(65412),s=o(51572),t=o(86257),e=o(98380),F=o(29926),K=o(89383);function a(O,N){1&O&&r._UZ(0,"mat-spinner",13)}function J(O,N){1&O&&(r.TgZ(0,"perun-web-apps-alert",16),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&O&&(r.Q6J("alert_type","info"),r.xp6(1),r.hij(" ",r.lcZ(2,2,"DIALOGS.ADD_BAN.ALREADY_BANNED")," "))}function M(O,N){if(1&O&&(r.TgZ(0,"div"),r.YNc(1,J,3,4,"perun-web-apps-alert",14),r._UZ(2,"perun-web-apps-ban-specification",15),r.qZA()),2&O){const y=r.oxw();r.xp6(1),r.Q6J("ngIf",y.ban),r.xp6(1),r.Q6J("description",null==y.ban?null:y.ban.description)("validity",null==y.ban?null:y.ban.validityTo)}}function Z(O,N){if(1&O){const y=r.EpF();r.TgZ(0,"button",17),r.NdJ("click",function(){r.CHM(y),r.oxw();const V=r.MAs(6);return r.KtG(V.next())}),r._uU(1),r.ALo(2,"translate"),r.qZA()}if(2&O){const y=r.oxw();r.Q6J("disabled",y.disabled),r.xp6(1),r.hij(" ",r.lcZ(2,2,"DIALOGS.ADD_BAN.NEXT")," ")}}function H(O,N){if(1&O){const y=r.EpF();r.TgZ(0,"button",18),r.NdJ("click",function(){r.CHM(y),r.oxw();const V=r.MAs(6);return r.KtG(V.previous())}),r._uU(1),r.ALo(2,"translate"),r.qZA()}2&O&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"DIALOGS.ADD_BAN.BACK")," "))}function L(O,N){if(1&O){const y=r.EpF();r.TgZ(0,"button",19),r.NdJ("click",function(){r.CHM(y);const V=r.oxw();return r.KtG(V.addBan())}),r._uU(1),r.ALo(2,"translate"),r.qZA()}if(2&O){const y=r.oxw();r.xp6(1),r.hij(" ",r.lcZ(2,1,y.ban?"DIALOGS.ADD_BAN.UPDATE":"DIALOGS.ADD_BAN.ADD")," ")}}const B=["*"];let b=(()=>{class O{constructor(){this.loading=!1,this.disabled=!1,this.add=new r.vpe,this.cancel=new r.vpe}addBan(){this.add.emit({description:this.banForm.getDescription(),validity:this.banForm.getValidity()})}}return O.\u0275fac=function(y){return new(y||O)},O.\u0275cmp=r.Xpm({type:O,selectors:[["app-add-ban-dialog"]],viewQuery:function(y,W){if(1&y&&r.Gf(f.CZ,5),2&y){let V;r.iGM(V=r.CRH())&&(W.banForm=V.first)}},inputs:{loading:"loading",disabled:"disabled",theme:"theme",ban:"ban"},outputs:{add:"add",cancel:"cancel"},ngContentSelectors:B,decls:21,vars:22,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[3,"linear"],["stepper",""],[3,"completed","label"],[3,"label"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["mat-flat-button","","class","mr-2","color","accent",3,"disabled","click",4,"ngIf"],["mat-flat-button","","class","mr-2",3,"click",4,"ngIf"],["mat-flat-button","","color","accent",3,"click",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"alert_type",4,"ngIf"],[3,"description","validity"],[3,"alert_type"],["mat-flat-button","","color","accent",1,"mr-2",3,"disabled","click"],["mat-flat-button","",1,"mr-2",3,"click"],["mat-flat-button","","color","accent",3,"click"]],template:function(y,W){if(1&y&&(r.F$t(),r.TgZ(0,"div")(1,"h1",0),r._uU(2),r.ALo(3,"translate"),r.qZA(),r.TgZ(4,"div",1)(5,"mat-stepper",2,3)(7,"mat-step",4),r.ALo(8,"translate"),r.Hsn(9),r.qZA(),r.TgZ(10,"mat-step",5),r.ALo(11,"translate"),r.YNc(12,a,1,0,"mat-spinner",6),r.YNc(13,M,3,3,"div",7),r.qZA()()(),r.TgZ(14,"div",8)(15,"button",9),r.NdJ("click",function(){return W.cancel.emit()}),r._uU(16),r.ALo(17,"translate"),r.qZA(),r.YNc(18,Z,3,4,"button",10),r.YNc(19,H,3,3,"button",11),r.YNc(20,L,3,3,"button",12),r.qZA()()),2&y){const V=r.MAs(6);r.Tol(W.theme),r.xp6(2),r.Oqu(r.lcZ(3,14,"DIALOGS.ADD_BAN.TITLE")),r.xp6(3),r.Q6J("linear",!0),r.xp6(2),r.Q6J("completed",!W.disabled)("label",r.lcZ(8,16,"DIALOGS.ADD_BAN.SELECTION")),r.xp6(3),r.Q6J("label",r.lcZ(11,18,"DIALOGS.ADD_BAN.SPECIFICATION")),r.xp6(2),r.Q6J("ngIf",W.loading),r.xp6(1),r.Q6J("ngIf",!W.loading),r.xp6(3),r.hij(" ",r.lcZ(17,20,"DIALOGS.ADD_BAN.CANCEL")," "),r.xp6(2),r.Q6J("ngIf",V.selectedIndex!==(null==V||null==V._steps?null:V._steps.length)-1),r.xp6(1),r.Q6J("ngIf",V.selectedIndex===(null==V||null==V._steps?null:V._steps.length)-1),r.xp6(1),r.Q6J("ngIf",V.selectedIndex===(null==V||null==V._steps?null:V._steps.length)-1)}},dependencies:[n.O5,d.lW,T.uh,T.xY,T.H8,s.Ou,t.C0,t.Vq,e.w,F.C,K.X$]}),O})()},17584:(te,j,o)=>{o.d(j,{p:()=>M});var r=o(65412),f=o(32105),n=o(94650),d=o(36895),T=o(59549),s=o(284),t=o(24006),e=o(4859),F=o(51572),K=o(89383);function a(Z,H){1&Z&&n._UZ(0,"mat-spinner",6)}function J(Z,H){if(1&Z){const L=n.EpF();n.TgZ(0,"div",7)(1,"mat-form-field")(2,"input",8),n.NdJ("ngModelChange",function(b){n.CHM(L);const O=n.oxw();return n.KtG(O.name=b)}),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"mat-error"),n._uU(5),n.ALo(6,"translate"),n.qZA()()()}if(2&Z){const L=n.oxw();n.xp6(2),n.s9C("placeholder",n.lcZ(3,3,"DIALOGS.CREATE_RESOURCE_TAG.NAME")),n.Q6J("ngModel",L.name),n.xp6(3),n.Oqu(n.lcZ(6,5,"DIALOGS.CREATE_RESOURCE_TAG.EMPTY_NAME"))}}let M=(()=>{class Z{constructor(L,B,b){this.dialogRef=L,this.data=B,this.resourceManager=b,this.name="",this.loading=!1}ngOnInit(){this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}onSubmit(){""!==this.name&&(this.loading=!0,this.resourceManager.createResourceTagWithTagName(this.name,this.data.voId).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1))}}return Z.\u0275fac=function(L){return new(L||Z)(n.Y36(r.so),n.Y36(r.WI),n.Y36(f.xk))},Z.\u0275cmp=n.Xpm({type:Z,selectors:[["app-create-resource-tag-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","",3,"placeholder","ngModel","ngModelChange"]],template:function(L,B){1&L&&(n.TgZ(0,"div")(1,"h1",0),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.YNc(4,a,1,0,"mat-spinner",1),n.YNc(5,J,7,7,"div",2),n.TgZ(6,"div",3)(7,"button",4),n.NdJ("click",function(){return B.onCancel()}),n._uU(8),n.ALo(9,"translate"),n.qZA(),n.TgZ(10,"button",5),n.NdJ("click",function(){return B.onSubmit()}),n._uU(11),n.ALo(12,"translate"),n.qZA()()()),2&L&&(n.Tol(B.theme),n.xp6(2),n.Oqu(n.lcZ(3,9,"DIALOGS.CREATE_RESOURCE_TAG.TITLE")),n.xp6(2),n.Q6J("ngIf",B.loading),n.xp6(1),n.Q6J("ngIf",!B.loading),n.xp6(3),n.hij(" ",n.lcZ(9,11,"DIALOGS.CREATE_RESOURCE_TAG.CANCEL")," "),n.xp6(2),n.Q6J("disabled",B.loading),n.xp6(1),n.hij(" ",n.lcZ(12,13,"DIALOGS.CREATE_RESOURCE_TAG.CREATE")," "))},dependencies:[d.O5,T.TO,T.KE,s.Nt,t.Fj,t.JJ,t.Q7,t.On,e.lW,r.uh,r.xY,r.H8,F.Ou,K.X$]}),Z})()},28361:(te,j,o)=>{o.d(j,{s:()=>Pe});var r=o(95017),f=o(65412),n=o(69723),d=o(32105),T=o(10036),s=o(64080),t=o(24006),e=o(94650),F=o(89383),K=o(94364),a=o(36895),J=o(3238),M=o(59549),Z=o(284),H=o(4859),L=o(84385),B=o(51572),b=o(98380),O=o(94391),N=o(64877),y=o(23123);function W(c,S){if(1&c&&(e.TgZ(0,"mat-option",15),e._uU(1),e.ALo(2,"displayedRole"),e.qZA()),2&c){const i=S.$implicit;e.Q6J("value",i.roleName),e.xp6(1),e.hij(" ",e.lcZ(2,2,i)," ")}}function V(c,S){1&c&&e._UZ(0,"mat-spinner",16)}function oe(c,S){1&c&&(e.TgZ(0,"perun-web-apps-alert",20),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&c&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"DIALOGS.ADD_MANAGERS.NO_USERS_FOUND")," "))}const ne=function(){return["select","id","name","email","logins","organization"]};function w(c,S){if(1&c&&e._UZ(0,"app-users-list",21),2&c){const i=e.oxw(2);e.Q6J("disableRouting",!0)("selection",i.selection)("displayedColumns",e.DdM(5,ne))("tableId",i.tableId)("users",i.users)}}function $(c,S){if(1&c&&(e.TgZ(0,"div",17),e.YNc(1,oe,3,3,"perun-web-apps-alert",18),e.YNc(2,w,1,6,"app-users-list",19),e.qZA()),2&c){const i=e.oxw();e.xp6(1),e.Q6J("ngIf",0===i.users.length&&i.firstSearchDone),e.xp6(1),e.Q6J("ngIf",0!==i.users.length)}}let E=(()=>{class c{constructor(i,p,D,q,le,ce,ue,he,fe){this.dialogRef=i,this.data=p,this.authzService=D,this.usersService=q,this.translate=le,this.notificator=ce,this.storeService=ue,this.route=he,this.router=fe,this.selection=new r.Ov(!0,[]),this.users=[],this.firstSearchDone=!1,this.tableId=T.H2,le.get("DIALOGS.ADD_MANAGERS.TITLE").subscribe(_e=>this.title=_e),le.get("DIALOGS.ADD_MANAGERS.SUCCESS").subscribe(_e=>this.successMessage=_e)}ngOnInit(){this.theme=this.data.theme,this.availableRoles=this.data.availableRoles,this.selectedRole=this.data.selectedRole,this.searchCtrl=new t.p4("",[t.kI.required,t.kI.pattern(".*[\\S]+.*")])}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.authzService.setRoleWithUserComplementaryObject({role:this.selectedRole,users:this.selection.selected.map(i=>i.id),complementaryObject:this.data.complementaryObject}).subscribe({next:()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},error:()=>this.loading=!1})}onSearchByString(){if(this.searchCtrl.invalid)return void this.searchCtrl.markAllAsTouched();this.loading=!0,this.selection.clear();let i=[s.r.USER_DEF_ORGANIZATION,s.r.USER_DEF_PREFERRED_MAIL];i=i.concat(this.storeService.getLoginAttributeNames()),this.usersService.findRichUsersWithAttributes(this.searchCtrl.value,i).subscribe({next:p=>{this.users=p,this.loading=!1,this.firstSearchDone=!0},error:()=>this.loading=!1})}}return c.\u0275fac=function(i){return new(i||c)(e.Y36(f.so),e.Y36(f.WI),e.Y36(d.Ct),e.Y36(d.Fv),e.Y36(F.sK),e.Y36(n.V6),e.Y36(n.d6),e.Y36(K.gz),e.Y36(K.F0))},c.\u0275cmp=e.Xpm({type:c,selectors:[["app-add-manager-dialog"]],decls:31,vars:31,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"inline-dialog-items"],[1,"mr-2"],[3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[1,"mr-2","w-100"],["matInput","","autocomplete","false","data-cy","search-manager-input","perunWebAppsAutoFocus","",3,"placeholder","formControl","keyup.enter"],["color","accent","data-cy","search-manager-button","mat-flat-button","",1,"ml-auto",3,"disabled","click"],[1,"overflow-hidden"],["class","mr-auto ml-auto",4,"ngIf"],["class","mt-3",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","data-cy","add-manager-button-dialog","mat-flat-button","",1,"ml-2",3,"disabled","click"],[3,"value"],[1,"mr-auto","ml-auto"],[1,"mt-3"],["alert_type","warn",4,"ngIf"],[3,"disableRouting","selection","displayedColumns","tableId","users",4,"ngIf"],["alert_type","warn"],[3,"disableRouting","selection","displayedColumns","tableId","users"]],template:function(i,p){1&i&&(e.TgZ(0,"div")(1,"h1",0),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",1)(5,"div",2)(6,"mat-form-field",3)(7,"mat-label"),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"mat-select",4),e.NdJ("valueChange",function(q){return p.selectedRole=q}),e.YNc(11,W,3,4,"mat-option",5),e.qZA()(),e.TgZ(12,"mat-form-field",6)(13,"input",7),e.NdJ("keyup.enter",function(){return p.onSearchByString()}),e.ALo(14,"translate"),e.qZA(),e.TgZ(15,"mat-error"),e._uU(16),e.ALo(17,"translate"),e.qZA()()(),e.TgZ(18,"button",8),e.NdJ("click",function(){return p.onSearchByString()}),e._uU(19),e.ALo(20,"translate"),e.qZA(),e.TgZ(21,"div",9),e.YNc(22,V,1,0,"mat-spinner",10),e.qZA(),e.YNc(23,$,3,2,"div",11),e.qZA(),e.TgZ(24,"div",12)(25,"button",13),e.NdJ("click",function(){return p.onCancel()}),e._uU(26),e.ALo(27,"translate"),e.qZA(),e.TgZ(28,"button",14),e.NdJ("click",function(){return p.onSubmit()}),e._uU(29),e.ALo(30,"translate"),e.qZA()()()),2&i&&(e.Tol(p.theme),e.xp6(2),e.Oqu(e.lcZ(3,17,"DIALOGS.ADD_MANAGERS.TITLE")),e.xp6(6),e.Oqu(e.lcZ(9,19,"SHARED.COMPONENTS.MANAGERS_PAGE.SELECT_ROLE")),e.xp6(2),e.Q6J("value",p.selectedRole),e.xp6(1),e.Q6J("ngForOf",p.availableRoles),e.xp6(2),e.s9C("placeholder",e.lcZ(14,21,"DIALOGS.ADD_MANAGERS.DESCRIPTION")),e.Q6J("formControl",p.searchCtrl),e.xp6(3),e.hij(" ",e.lcZ(17,23,"DIALOGS.ADD_MANAGERS.EMPTY_SEARCH_MESSAGE")," "),e.xp6(2),e.Q6J("disabled",p.loading),e.xp6(1),e.hij(" ",e.lcZ(20,25,"DIALOGS.ADD_MANAGERS.SEARCH")," "),e.xp6(3),e.Q6J("ngIf",p.loading),e.xp6(1),e.Q6J("ngIf",null!==p.users&&!p.loading),e.xp6(3),e.hij(" ",e.lcZ(27,27,"DIALOGS.ADD_MANAGERS.CANCEL")," "),e.xp6(2),e.Q6J("disabled",0===p.selection.selected.length||void 0===p.selectedRole||p.loading),e.xp6(1),e.hij(" ",e.lcZ(30,29,"DIALOGS.ADD_MANAGERS.CREATE")," "))},dependencies:[a.sg,a.O5,J.ey,M.TO,M.KE,M.hX,Z.Nt,t.Fj,t.JJ,t.oH,H.lW,f.uh,f.xY,f.H8,L.gD,B.Ou,b.w,O.hT,N.C,F.X$,y.i],styles:[".inline-dialog-items[_ngcontent-%COMP%]{display:flex;align-items:flex-end}"]}),c})();var h=o(30671);function Y(c,S){1&c&&e._UZ(0,"th",15)}function v(c,S){if(1&c&&(e.TgZ(0,"td",16),e._uU(1),e.qZA()),2&c){const i=S.$implicit;e.xp6(1),e.AsE("",i.firstName," ",i.lastName,"")}}function P(c,S){1&c&&e._UZ(0,"tr",17)}function k(c,S){1&c&&e._UZ(0,"tr",18)}const X=function(c){return{role:c}};function se(c,S){if(1&c&&(e.TgZ(0,"perun-web-apps-alert",19),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"displayedRole"),e.qZA()),2&c){const i=e.oxw(2);e.xp6(1),e.hij(" ",e.xi3(2,1,"DIALOGS.REMOVE_MANAGERS.WARNING_REMOVE_YOURSELF",e.VKq(6,X,e.lcZ(3,4,i.data.role)))," ")}}function ie(c,S){if(1&c&&(e.TgZ(0,"div",6)(1,"p"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",7),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"table",8),e.ynx(8,9),e.YNc(9,Y,1,0,"th",10),e.YNc(10,v,2,2,"td",11),e.BQk(),e.YNc(11,P,1,0,"tr",12),e.YNc(12,k,1,0,"tr",13),e.qZA(),e.YNc(13,se,4,8,"perun-web-apps-alert",14),e.qZA()),2&c){const i=e.oxw();e.xp6(2),e.hij(" ",e.lcZ(3,6,"DIALOGS.REMOVE_MANAGERS.DESCRIPTION")," "),e.xp6(3),e.hij(" ",e.lcZ(6,8,"DIALOGS.REMOVE_MANAGERS.ASK")," "),e.xp6(2),e.Q6J("dataSource",i.dataSource),e.xp6(4),e.Q6J("matHeaderRowDef",i.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",i.displayedColumns),e.xp6(1),e.Q6J("ngIf",i.removeSelf)}}function re(c,S){1&c&&e._UZ(0,"mat-spinner",20)}let g=(()=>{class c{constructor(i,p,D,q,le,ce,ue){this.dialogRef=i,this.data=p,this.notificator=D,this.translate=q,this.authzService=le,this.store=ce,this.authService=ue,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new h.by(this.data.managers),this.theme=this.data.theme,this.removeSelf=this.data.managers.map(i=>i.id).includes(this.store.getPerunPrincipal().userId)&&!this.authService.isPerunAdmin()}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.authzService.unsetRoleWithUserComplementaryObject({role:this.data.role,users:this.data.managers.map(i=>i.id),complementaryObject:this.data.complementaryObject}).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_MANAGERS.SUCCESS").subscribe(i=>{this.notificator.showSuccess(i),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)},()=>this.loading=!1)}}return c.\u0275fac=function(i){return new(i||c)(e.Y36(f.so),e.Y36(f.WI),e.Y36(n.V6),e.Y36(F.sK),e.Y36(d.Ct),e.Y36(n.d6),e.Y36(n.x4))},c.\u0275cmp=e.Xpm({type:c,selectors:[["app-remove-manager-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["mat-dialog-content","",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","data-cy","remove-manager-button-dialog","mat-flat-button","",1,"ml-2",3,"disabled","click"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""],["alert_type","warn"],[1,"mr-auto","ml-auto"]],template:function(i,p){1&i&&(e.TgZ(0,"div")(1,"h1",0),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.YNc(4,ie,14,10,"div",1),e.YNc(5,re,1,0,"mat-spinner",2),e.TgZ(6,"div",3)(7,"button",4),e.NdJ("click",function(){return p.onCancel()}),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"button",5),e.NdJ("click",function(){return p.onSubmit()}),e._uU(11),e.ALo(12,"translate"),e.qZA()()()),2&i&&(e.Tol(p.theme),e.xp6(2),e.Oqu(e.lcZ(3,9,"DIALOGS.REMOVE_MANAGERS.TITLE")),e.xp6(2),e.Q6J("ngIf",!p.loading),e.xp6(1),e.Q6J("ngIf",p.loading),e.xp6(3),e.hij(" ",e.lcZ(9,11,"DIALOGS.REMOVE_MANAGERS.CANCEL")," "),e.xp6(2),e.Q6J("disabled",p.loading),e.xp6(1),e.hij(" ",e.lcZ(12,13,"DIALOGS.REMOVE_MANAGERS.DELETE")," "))},dependencies:[a.O5,H.lW,h.BZ,h.fO,h.as,h.w1,h.Dz,h.nj,h.ge,h.ev,h.XQ,h.Gk,f.uh,f.xY,f.H8,B.Ou,b.w,F.X$,y.i]}),c})();function Q(c,S){1&c&&e._UZ(0,"mat-spinner",6)}function l(c,S){1&c&&e._UZ(0,"th",15)}function R(c,S){if(1&c&&(e.TgZ(0,"td",16),e._uU(1),e.qZA()),2&c){const i=S.$implicit;e.xp6(1),e.Oqu(i.name)}}function _(c,S){1&c&&e._UZ(0,"tr",17)}function U(c,S){1&c&&e._UZ(0,"tr",18)}function A(c,S){if(1&c&&(e.TgZ(0,"div",7)(1,"p"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",8),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"table",9),e.ynx(8,10),e.YNc(9,l,1,0,"th",11),e.YNc(10,R,2,1,"td",12),e.BQk(),e.YNc(11,_,1,0,"tr",13),e.YNc(12,U,1,0,"tr",14),e.qZA()()),2&c){const i=e.oxw();e.xp6(2),e.hij(" ",e.lcZ(3,5,"DIALOGS.REMOVE_GROUPS.DESCRIPTION")," "),e.xp6(3),e.hij(" ",e.lcZ(6,7,"DIALOGS.REMOVE_GROUPS.ASK")," "),e.xp6(2),e.Q6J("dataSource",i.dataSource),e.xp6(4),e.Q6J("matHeaderRowDef",i.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",i.displayedColumns)}}let I=(()=>{class c{constructor(i,p,D,q,le){this.dialogRef=i,this.data=p,this.notificator=D,this.translate=q,this.authzService=le,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new h.by(this.data.groups),this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.authzService.unsetRoleWithGroupComplementaryObject({role:this.data.role,authorizedGroups:this.data.groups.map(i=>i.id),complementaryObject:this.data.complementaryObject}).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_GROUPS.SUCCESS").subscribe(i=>{this.notificator.showSuccess(i),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)},()=>this.loading=!1)}}return c.\u0275fac=function(i){return new(i||c)(e.Y36(f.so),e.Y36(f.WI),e.Y36(n.V6),e.Y36(F.sK),e.Y36(d.Ct))},c.\u0275cmp=e.Xpm({type:c,selectors:[["app-remove-group-manager-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(i,p){1&i&&(e.TgZ(0,"div")(1,"h1",0),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.YNc(4,Q,1,0,"mat-spinner",1),e.YNc(5,A,13,9,"div",2),e.TgZ(6,"div",3)(7,"button",4),e.NdJ("click",function(){return p.onCancel()}),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"button",5),e.NdJ("click",function(){return p.onSubmit()}),e._uU(11),e.ALo(12,"translate"),e.qZA()()()),2&i&&(e.Tol(p.theme),e.xp6(2),e.Oqu(e.lcZ(3,9,"DIALOGS.REMOVE_GROUPS.TITLE")),e.xp6(2),e.Q6J("ngIf",p.loading),e.xp6(1),e.Q6J("ngIf",!p.loading),e.xp6(3),e.hij(" ",e.lcZ(9,11,"DIALOGS.REMOVE_GROUPS.CANCEL")," "),e.xp6(2),e.Q6J("disabled",p.loading),e.xp6(1),e.hij(" ",e.lcZ(12,13,"DIALOGS.REMOVE_GROUPS.DELETE")," "))},dependencies:[a.O5,H.lW,h.BZ,h.fO,h.as,h.w1,h.Dz,h.nj,h.ge,h.ev,h.XQ,h.Gk,f.uh,f.xY,f.H8,B.Ou,F.X$]}),c})();var m=o(68675),G=o(54004),u=o(47957),C=o(25788),x=o(64901);function ee(c,S){if(1&c&&(e.TgZ(0,"mat-option",17),e._uU(1),e.ALo(2,"displayedRole"),e.qZA()),2&c){const i=S.$implicit;e.Q6J("value",i.roleName),e.xp6(1),e.hij(" ",e.lcZ(2,2,i)," ")}}function z(c,S){if(1&c&&(e.TgZ(0,"mat-option",17),e._uU(1),e.qZA()),2&c){const i=S.$implicit;e.Q6J("value",i),e.xp6(1),e.hij(" ",i.name," ")}}function ae(c,S){if(1&c){const i=e.EpF();e.TgZ(0,"perun-web-apps-debounce-filter",18),e.NdJ("filter",function(D){e.CHM(i);const q=e.oxw();return e.KtG(q.applyFilter(D))}),e.ALo(1,"translate"),e.qZA()}2&c&&e.s9C("placeholder",e.lcZ(1,1,"DIALOGS.ADD_GROUPS.FILTER_GROUPS"))}function pe(c,S){1&c&&e._UZ(0,"mat-spinner",19)}const ge=function(){return["select","id","name","description"]};function Ae(c,S){if(1&c&&(e.TgZ(0,"div",20),e._UZ(1,"perun-web-apps-groups-list",21),e.qZA()),2&c){const i=e.oxw();e.xp6(1),e.Q6J("disableMembers",!1)("disableRouting",!0)("displayedColumns",e.DdM(7,ge))("selection",i.selection)("groups",i.groups)("filter",i.filterValue)("tableId",i.tableId)}}let Re=(()=>{class c{constructor(i,p,D,q,le,ce,ue,he,fe){this.dialogRef=i,this.data=p,this.authzService=D,this.voService=q,this.groupService=le,this.translate=ce,this.notificator=ue,this.route=he,this.router=fe,this.searchString="",this.selection=new r.Ov(!0,[]),this.groups=[],this.vos=[],this.filterValue="",this.myControl=new t.p4,this.firstSearchDone=!1,this.tableId=T.kZ,ce.get("DIALOGS.ADD_GROUPS.TITLE").subscribe(_e=>this.title=_e),ce.get("DIALOGS.ADD_GROUPS.SUCCESS").subscribe(_e=>this.successMessage=_e)}displayFn(i){return i?i.name:null}onCancel(){this.dialogRef.close()}onSubmit(){this.loading=!0,this.authzService.setRoleWithGroupComplementaryObject({role:this.selectedRole,authorizedGroups:this.selection.selected.map(i=>i.id),complementaryObject:this.data.complementaryObject}).subscribe({next:()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},error:()=>this.loading=!1})}ngOnInit(){this.loading=!0,this.availableRoles=this.data.availableRoles,this.selectedRole=this.data.selectedRole,this.theme=this.data.theme,this.voService.getMyVos().subscribe({next:i=>{this.filteredOptions=this.myControl.valueChanges.pipe((0,m.O)(""),(0,G.U)(p=>this._filter(p))),this.vos=i,this.loading=!1},error:()=>this.loading=!1})}showVoGroups(i){this.loading=!0,this.groupService.getAllGroups(i.option.value.id).subscribe({next:p=>{this.groups=p,this.loading=!1,this.firstSearchDone=!0},error:()=>this.loading=!1})}applyFilter(i){this.filterValue=i}_filter(i){const p="string"==typeof i?i.toLowerCase():i.name.toLowerCase();return this.vos.filter(D=>D.name.toLowerCase().includes(p))}}return c.\u0275fac=function(i){return new(i||c)(e.Y36(f.so),e.Y36(f.WI),e.Y36(d.Ct),e.Y36(d.YF),e.Y36(d.ff),e.Y36(F.sK),e.Y36(n.V6),e.Y36(K.gz),e.Y36(K.F0))},c.\u0275cmp=e.Xpm({type:c,selectors:[["app-add-group-manager-dialog"]],decls:33,vars:33,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"inline-dialog-items"],[1,"mr-2"],[3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[1,"mr-2","w-75"],["aria-label","Assignee","matInput","","type","text",3,"formControl","matAutocomplete","placeholder"],[3,"displayWith","optionSelected"],["auto","matAutocomplete"],[3,"placeholder","filter",4,"ngIf"],[1,"overflow-hidden"],["class","mr-auto ml-auto",4,"ngIf"],["class","mt-3",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[3,"value"],[3,"placeholder","filter"],[1,"mr-auto","ml-auto"],[1,"mt-3"],[3,"disableMembers","disableRouting","displayedColumns","selection","groups","filter","tableId"]],template:function(i,p){if(1&i&&(e.TgZ(0,"div")(1,"h1",0),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",1)(5,"div",2)(6,"mat-form-field",3)(7,"mat-label"),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"mat-select",4),e.NdJ("valueChange",function(q){return p.selectedRole=q}),e.YNc(11,ee,3,4,"mat-option",5),e.qZA()(),e.TgZ(12,"mat-form-field",6)(13,"mat-label"),e._uU(14),e.ALo(15,"translate"),e.qZA(),e._UZ(16,"input",7),e.ALo(17,"translate"),e.TgZ(18,"mat-autocomplete",8,9),e.NdJ("optionSelected",function(q){return p.showVoGroups(q)}),e.YNc(20,z,2,2,"mat-option",5),e.ALo(21,"async"),e.qZA()()(),e.YNc(22,ae,2,3,"perun-web-apps-debounce-filter",10),e.TgZ(23,"div",11),e.YNc(24,pe,1,0,"mat-spinner",12),e.qZA(),e.YNc(25,Ae,2,8,"div",13),e.qZA(),e.TgZ(26,"div",14)(27,"button",15),e.NdJ("click",function(){return p.onCancel()}),e._uU(28),e.ALo(29,"translate"),e.qZA(),e.TgZ(30,"button",16),e.NdJ("click",function(){return p.onSubmit()}),e._uU(31),e.ALo(32,"translate"),e.qZA()()()),2&i){const D=e.MAs(19);e.Tol(p.theme),e.xp6(2),e.Oqu(e.lcZ(3,19,"DIALOGS.ADD_GROUPS.TITLE")),e.xp6(6),e.Oqu(e.lcZ(9,21,"SHARED.COMPONENTS.MANAGERS_PAGE.SELECT_ROLE")),e.xp6(2),e.Q6J("value",p.selectedRole),e.xp6(1),e.Q6J("ngForOf",p.availableRoles),e.xp6(3),e.Oqu(e.lcZ(15,23,"DIALOGS.ADD_GROUPS.SELECT_VO")),e.xp6(2),e.s9C("placeholder",e.lcZ(17,25,"DIALOGS.ADD_GROUPS.SELECT_VO")),e.Q6J("formControl",p.myControl)("matAutocomplete",D),e.xp6(2),e.Q6J("displayWith",p.displayFn),e.xp6(2),e.Q6J("ngForOf",e.lcZ(21,27,p.filteredOptions)),e.xp6(2),e.Q6J("ngIf",null!==p.groups&&p.groups.length>0&&!p.loading),e.xp6(2),e.Q6J("ngIf",p.loading),e.xp6(1),e.Q6J("ngIf",null!==p.groups&&!p.loading),e.xp6(3),e.hij(" ",e.lcZ(29,29,"DIALOGS.ADD_MANAGERS.CANCEL")," "),e.xp6(2),e.Q6J("disabled",0===p.selection.selected.length||p.loading),e.xp6(1),e.hij(" ",e.lcZ(32,31,"DIALOGS.ADD_MANAGERS.CREATE")," ")}},dependencies:[a.sg,a.O5,u.XC,u.ZL,J.ey,M.KE,M.hX,Z.Nt,t.Fj,t.JJ,t.oH,H.lW,f.uh,f.xY,f.H8,L.gD,B.Ou,C.W,x.P,a.Ov,F.X$,y.i]}),c})();var de=o(9244),Ee=o(15003),me=o(3848),Te=o(96214);function be(c,S){1&c&&(e._uU(0),e.ALo(1,"translate")),2&c&&e.hij(" ",e.lcZ(1,1,"SHARED.COMPONENTS.MANAGERS_PAGE.USER")," ")}function Ce(c,S){if(1&c){const i=e.EpF();e.TgZ(0,"button",13),e.NdJ("click",function(){e.CHM(i);const D=e.oxw(2);return e.KtG(D.addManager())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&c&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.MANAGERS_PAGE.ADD")," "))}function ve(c,S){if(1&c){const i=e.EpF();e.TgZ(0,"button",14),e.NdJ("click",function(){e.CHM(i);const D=e.oxw(2);return e.KtG(D.removeManager())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}if(2&c){const i=e.oxw(2);e.Q6J("disabled",0===i.selectionUsers.selected.length),e.xp6(1),e.hij(" ",e.lcZ(2,2,"SHARED.COMPONENTS.MANAGERS_PAGE.REMOVE")," ")}}function Se(c,S){if(1&c&&(e.TgZ(0,"mat-option",15),e.ALo(1,"lowercase"),e._uU(2),e.ALo(3,"displayedRole"),e.qZA()),2&c){const i=S.$implicit;e.Q6J("value",i.roleName),e.uIk("data-cy",e.lcZ(1,3,i.roleName)),e.xp6(2),e.hij(" ",e.lcZ(3,5,i)," ")}}function Oe(c,S){1&c&&e._UZ(0,"mat-spinner",16)}function Ie(c,S){if(1&c&&e._UZ(0,"app-users-list",17),2&c){const i=e.oxw(2);e.Q6J("disableSelf",i.disableSelf)("tableId",i.tableId)("disableRouting",!i.routeAuth||i.disableRouting)("displayedColumns",i.displayedUserColumns)("selection",i.selectionUsers)("users",i.managers)}}function De(c,S){if(1&c){const i=e.EpF();e.TgZ(0,"perun-web-apps-refresh-button",5),e.NdJ("refresh",function(){e.CHM(i);const D=e.oxw();return e.KtG(D.refreshUsers())}),e.qZA(),e.YNc(1,Ce,3,3,"button",6),e.YNc(2,ve,3,4,"button",7),e.TgZ(3,"mat-form-field",8)(4,"mat-label"),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"mat-select",9),e.NdJ("selectionChange",function(){e.CHM(i);const D=e.oxw();return e.KtG(D.refreshUsers())})("valueChange",function(D){e.CHM(i);const q=e.oxw();return e.KtG(q.selectedRole=D)}),e.YNc(8,Se,4,7,"mat-option",10),e.qZA()(),e.YNc(9,Oe,1,0,"mat-spinner",11),e.YNc(10,Ie,1,6,"app-users-list",12)}if(2&c){const i=e.oxw();e.xp6(1),e.Q6J("ngIf",i.manageAuth&&!i.configMode),e.xp6(1),e.Q6J("ngIf",i.manageAuth&&!i.configMode),e.xp6(3),e.Oqu(e.lcZ(6,7,"SHARED.COMPONENTS.MANAGERS_PAGE.SELECT_ROLE")),e.xp6(2),e.Q6J("value",i.selectedRole),e.xp6(1),e.Q6J("ngForOf",i.availableRoles),e.xp6(1),e.Q6J("ngIf",i.loading),e.xp6(1),e.Q6J("ngIf",!i.loading&&i.managers)}}function Me(c,S){1&c&&(e._uU(0),e.ALo(1,"translate")),2&c&&e.hij(" ",e.lcZ(1,1,"SHARED.COMPONENTS.MANAGERS_PAGE.GROUP")," ")}function xe(c,S){if(1&c){const i=e.EpF();e.TgZ(0,"button",22),e.NdJ("click",function(){e.CHM(i);const D=e.oxw(2);return e.KtG(D.addGroup())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&c&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.MANAGERS_PAGE.ADD")," "))}function Ze(c,S){if(1&c){const i=e.EpF();e.TgZ(0,"button",23),e.NdJ("click",function(){e.CHM(i);const D=e.oxw(2);return e.KtG(D.removeGroup())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}if(2&c){const i=e.oxw(2);e.Q6J("disabled",0===i.selectionGroups.selected.length),e.xp6(1),e.hij(" ",e.lcZ(2,2,"SHARED.COMPONENTS.MANAGERS_PAGE.REMOVE")," ")}}function ye(c,S){if(1&c&&(e.TgZ(0,"mat-option",15),e._uU(1),e.ALo(2,"displayedRole"),e.qZA()),2&c){const i=S.$implicit;e.Q6J("value",i.roleName),e.xp6(1),e.Oqu(e.lcZ(2,2,i))}}function Ue(c,S){1&c&&e._UZ(0,"mat-spinner",16)}function Le(c,S){if(1&c&&e._UZ(0,"perun-web-apps-groups-list",24),2&c){const i=e.oxw(2);e.Q6J("disableMembers",!1)("disableRouting",i.disableRouting)("displayedColumns",i.displayedGroupColumns)("groups",i.groups)("selection",i.selectionGroups)("tableId",i.tableId)}}function Ge(c,S){if(1&c){const i=e.EpF();e.TgZ(0,"perun-web-apps-refresh-button",5),e.NdJ("refresh",function(){e.CHM(i);const D=e.oxw();return e.KtG(D.refreshGroups())}),e.qZA(),e.YNc(1,xe,3,3,"button",18),e.YNc(2,Ze,3,4,"button",19),e.TgZ(3,"mat-form-field",20)(4,"mat-label"),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"mat-select",9),e.NdJ("selectionChange",function(){e.CHM(i);const D=e.oxw();return e.KtG(D.refreshGroups())})("valueChange",function(D){e.CHM(i);const q=e.oxw();return e.KtG(q.selectedRole=D)}),e.YNc(8,ye,3,4,"mat-option",10),e.qZA()(),e.YNc(9,Ue,1,0,"mat-spinner",11),e.YNc(10,Le,1,6,"perun-web-apps-groups-list",21)}if(2&c){const i=e.oxw();e.xp6(1),e.Q6J("ngIf",i.manageAuth&&!i.configMode),e.xp6(1),e.Q6J("ngIf",i.manageAuth&&!i.configMode),e.xp6(3),e.Oqu(e.lcZ(6,7,"SHARED.COMPONENTS.MANAGERS_PAGE.SELECT_ROLE")),e.xp6(2),e.Q6J("value",i.selectedRole),e.xp6(1),e.Q6J("ngForOf",i.availableRoles),e.xp6(1),e.Q6J("ngIf",i.loading),e.xp6(1),e.Q6J("ngIf",!i.loading&&i.groups)}}function Ne(c,S){1&c&&(e.TgZ(0,"perun-web-apps-alert",25),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&c&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.MANAGERS_PAGE.NO_AVAILABLE_ROLES"),"\n"))}let Pe=(()=>{class c{constructor(i,p,D,q,le,ce,ue){this.dialog=i,this.authzService=p,this.storeService=D,this.guiAuthResolver=q,this.router=le,this.reloadEntityDetail=ce,this.route=ue,this.configMode=!1,this.disableRouting=!1,this.disableSelf=!1,this.displayedUserColumns=["select","id","name","email","logins","organization"],this.displayedGroupColumns=["select","id","vo","name","description"],this.groups=[],this.managers=null,this.selectionUsers=new r.Ov(!0,[]),this.selectionGroups=new r.Ov(!0,[]),this.selectedMode="",this.loading=!1,this.tableId=T.HC,this.availableRolesPrivileges=new Map}ngOnInit(){this.loading=!0,this.routeAuth=this.guiAuthResolver.isPerunAdminOrObserver(),this.guiAuthResolver.setRolesAuthorization(this.availableRoles,this.complementaryObject,this.availableRolesPrivileges),this.availableRoles=this.availableRoles.filter(i=>this.availableRolesPrivileges.get(i.roleName).readAuth),0!==this.availableRoles.length&&(this.selectedRole=this.availableRoles[0].roleName),this.refreshUsers()}changeRolePrivileges(){this.guiAuthResolver.setRolesAuthorization(this.availableRoles,this.complementaryObject,this.availableRolesPrivileges),this.availableRoles=this.availableRoles.filter(p=>this.availableRolesPrivileges.get(p.roleName).readAuth),this.manageAuth=this.availableRolesPrivileges.get(this.selectedRole).manageAuth,this.displayedUserColumns=this.manageAuth?this.displayedUserColumns:this.displayedUserColumns.filter(p=>"select"!==p),this.displayedGroupColumns=this.manageAuth?this.displayedGroupColumns:this.displayedGroupColumns.filter(p=>"select"!==p),this.roleModes=this.availableRolesPrivileges.get(this.selectedRole).modes;let i=!1;for(const p of this.roleModes)if(this.selectedMode===p.toLowerCase()){i=!0;break}i||(this.selectedMode=this.roleModes[0].toLowerCase())}tabChanged(i){this.loading=!0,0===i.index?(this.selectedMode="user",this.refreshUsers()):(this.selectedMode="group",this.refreshGroups())}refreshUsers(){this.loading=!0,this.changeRolePrivileges();let i=[s.r.USER_DEF_ORGANIZATION,s.r.USER_DEF_PREFERRED_MAIL];i=i.concat(this.storeService.getLoginAttributeNames()),this.authzService.getAuthzRichAdmins(this.selectedRole,this.complementaryObject.id,this.complementaryObjectType,i,!1,!0).subscribe({next:p=>{this.managers=p,this.selectionUsers.clear(),this.loading=!1},error:()=>{this.loading=!1}})}refreshGroups(){this.loading=!0,this.changeRolePrivileges(),this.authzService.getAuthzAdminGroups(this.selectedRole,this.complementaryObject.id,this.complementaryObjectType).subscribe({next:i=>{this.groups=i,this.selectionGroups.clear(),this.loading=!1},error:()=>{this.loading=!1}})}addManager(){const i=(0,de.kZ)();i.width="1000px",i.data={complementaryObject:this.complementaryObject,theme:this.theme,availableRoles:this.availableRoles,selectedRole:this.selectedRole},this.dialog.open(E,i).afterClosed().subscribe(D=>{D&&this.refreshUsers()})}removeManager(){const i=(0,de.kZ)();i.width="450px",i.data={managers:this.selectionUsers.selected,complementaryObject:this.complementaryObject,role:this.selectedRole,theme:this.theme},this.dialog.open(g,i).afterClosed().subscribe(D=>{D&&(this.guiAuthResolver.isManagerPagePrivileged(this.complementaryObject)?this.reloadEntityDetail.reloadEntityDetail():this.redirectToAuthRoute())})}removeGroup(){const i=(0,de.kZ)();i.width="450px",i.data={groups:this.selectionGroups.selected,complementaryObject:this.complementaryObject,role:this.selectedRole,theme:this.theme},this.dialog.open(I,i).afterClosed().subscribe(D=>{D&&(this.guiAuthResolver.isManagerPagePrivileged(this.complementaryObject)?this.refreshGroups():this.redirectToAuthRoute())})}addGroup(){const i=(0,de.kZ)();i.width="1000px",i.data={complementaryObject:this.complementaryObject,availableRoles:this.availableRoles,theme:this.theme,selectedRole:this.selectedRole},this.dialog.open(Re,i).afterClosed().subscribe(D=>{D&&this.refreshGroups()})}redirectToAuthRoute(){if("Group"===this.complementaryObjectType&&(this.guiAuthResolver.isAuthorized("getGroupById_int_policy",[this.complementaryObject])||this.guiAuthResolver.isAuthorized("getVoById_int_policy",[this.complementaryObject])))this.guiAuthResolver.isAuthorized("getGroupById_int_policy",[this.complementaryObject])?this.router.navigate(["/organizations",this.complementaryObject.voId,"groups",this.complementaryObject.id],{relativeTo:this.route,queryParamsHandling:"merge"}):this.guiAuthResolver.isAuthorized("getVoById_int_policy",[this.complementaryObject])&&this.router.navigate(["/organizations",this.complementaryObject.voId],{queryParamsHandling:"merge"});else if("Facility"===this.complementaryObjectType&&this.guiAuthResolver.isAuthorized("getFacilityById_int_policy",[this.complementaryObject]))this.router.navigate(["/facilities",this.complementaryObject.id],{relativeTo:this.route,queryParamsHandling:"merge"});else if("Vo"===this.complementaryObjectType&&this.guiAuthResolver.isAuthorized("getVoById_int_policy",[this.complementaryObject]))this.router.navigate(["/organizations",this.complementaryObject.id],{relativeTo:this.route,queryParamsHandling:"merge"});else{if("Resource"!==this.complementaryObjectType||!this.guiAuthResolver.isAuthorized("getRichResourceById_int_policy",[this.complementaryObject]))return void this.router.navigate(["/home"],{queryParamsHandling:"merge"});this.router.navigate(["../../"],{relativeTo:this.route,queryParamsHandling:"merge"})}this.reloadEntityDetail.reloadEntityDetail()}}return c.\u0275fac=function(i){return new(i||c)(e.Y36(f.uw),e.Y36(d.Ct),e.Y36(n.d6),e.Y36(n.x4),e.Y36(K.F0),e.Y36(Ee.G),e.Y36(K.gz))},c.\u0275cmp=e.Xpm({type:c,selectors:[["app-managers-page"]],hostVars:2,hostBindings:function(i,p){2&i&&e.ekj("router-component",p.true)},inputs:{complementaryObject:"complementaryObject",availableRoles:"availableRoles",complementaryObjectType:"complementaryObjectType",theme:"theme",configMode:"configMode",disableRouting:"disableRouting",disableSelf:"disableSelf",displayedUserColumns:"displayedUserColumns",displayedGroupColumns:"displayedGroupColumns"},decls:11,vars:4,consts:[[1,"page-subtitle"],[3,"selectedTabChange"],["matTabLabel",""],["matTabContent",""],["alert_type","warn",4,"ngIf"],[1,"mt-2",3,"refresh"],["color","accent","class","mr-2 mt-2 action-button","data-cy","add-manager-button","mat-flat-button","",3,"click",4,"ngIf"],["color","warn","data-cy","remove-manager-button","class","mr-2 mt-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],["data-cy","role-filter",1,"mr-2","mt-2"],[3,"value","selectionChange","valueChange"],[3,"value",4,"ngFor","ngForOf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableSelf","tableId","disableRouting","displayedColumns","selection","users",4,"ngIf"],["color","accent","data-cy","add-manager-button","mat-flat-button","",1,"mr-2","mt-2","action-button",3,"click"],["color","warn","data-cy","remove-manager-button","mat-flat-button","",1,"mr-2","mt-2",3,"disabled","click"],[3,"value"],[1,"ml-auto","mr-auto"],[3,"disableSelf","tableId","disableRouting","displayedColumns","selection","users"],["color","accent","class","mr-2 mt-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2 mt-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[1,"mr-2","mt-2"],[3,"disableMembers","disableRouting","displayedColumns","groups","selection","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","mt-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2","mt-2",3,"disabled","click"],[3,"disableMembers","disableRouting","displayedColumns","groups","selection","tableId"],["alert_type","warn"]],template:function(i,p){1&i&&(e.TgZ(0,"h1",0),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.TgZ(3,"mat-tab-group",1),e.NdJ("selectedTabChange",function(q){return p.tabChanged(q)}),e.TgZ(4,"mat-tab"),e.YNc(5,be,2,3,"ng-template",2),e.YNc(6,De,11,9,"ng-template",3),e.qZA(),e.TgZ(7,"mat-tab"),e.YNc(8,Me,2,3,"ng-template",2),e.YNc(9,Ge,11,9,"ng-template",3),e.qZA()(),e.YNc(10,Ne,3,3,"perun-web-apps-alert",4)),2&i&&(e.xp6(1),e.hij(" ",e.lcZ(2,2,"SHARED.COMPONENTS.MANAGERS_PAGE.TITLE"),"\n"),e.xp6(9),e.Q6J("ngIf",0===p.availableRoles.length))},dependencies:[a.sg,a.O5,J.ey,M.KE,M.hX,H.lW,me.SP,me.uD,me.uX,me.Vc,L.gD,B.Ou,b.w,C.W,Te.t,N.C,a.i8,F.X$,y.i]}),c})()},17672:(te,j,o)=>{o.d(j,{o:()=>R});var r=o(96308),f=o(30671),n=o(95017),d=o(69723),T=o(32105),s=o(9244),t=o(94650),e=o(89383),F=o(36895),K=o(59549),a=o(284),J=o(24006),M=o(97392),Z=o(4859),H=o(56709),L=o(10266),B=o(98380),b=o(18750),O=o(9185),N=o(8231),y=o(14849);function W(_,U){if(1&_){const A=t.EpF();t.TgZ(0,"th",17)(1,"mat-checkbox",18),t.NdJ("change",function(m){t.CHM(A);const G=t.oxw(2);return t.KtG(m?G.masterToggle():null)}),t.ALo(2,"translate"),t.ALo(3,"masterCheckboxLabel"),t.qZA()()}if(2&_){const A=t.oxw().ngIf,I=t.oxw();t.xp6(1),t.Q6J("aria-label",t.lcZ(2,3,t.lcZ(3,5,A.all)))("checked",I.selection.hasValue()&&A.all)("indeterminate",I.selection.hasValue()&&!A.all)}}const V=function(_){return{name:_}};function oe(_,U){if(1&_){const A=t.EpF();t.TgZ(0,"td",19)(1,"mat-checkbox",20),t.NdJ("change",function(m){const u=t.CHM(A).$implicit,C=t.oxw(2);return t.KtG(m?C.selection.toggle(u):null)})("click",function(m){return m.stopPropagation()}),t.ALo(2,"translate"),t.ALo(3,"checkboxLabel"),t.qZA()()}if(2&_){const A=U.$implicit,I=t.oxw(2);t.xp6(1),t.Q6J("aria-label",t.xi3(2,2,t.lcZ(3,5,I.selection.isSelected(A)),t.VKq(7,V,A.tagName)))("checked",I.selection.isSelected(A))}}function ne(_,U){1&_&&(t.ynx(0,14),t.YNc(1,W,4,7,"th",15),t.YNc(2,oe,4,9,"td",16),t.BQk())}function w(_,U){1&_&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&_&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.TAG_ID")," "))}function $(_,U){if(1&_&&(t.TgZ(0,"td",22),t._uU(1),t.qZA()),2&_){const A=U.$implicit;t.xp6(1),t.Oqu(A.id)}}function E(_,U){1&_&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&_&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.TAG_NAME")," "))}function h(_,U){if(1&_&&(t.TgZ(0,"div"),t._uU(1),t.qZA()),2&_){const A=t.oxw().$implicit;t.xp6(1),t.hij(" ",A.tagName," ")}}function Y(_,U){if(1&_){const A=t.EpF();t.TgZ(0,"div")(1,"mat-form-field")(2,"input",26),t.NdJ("ngModelChange",function(m){t.CHM(A);const G=t.oxw().$implicit;return t.KtG(G.tagName=m)}),t.qZA()()()}if(2&_){const A=t.oxw().$implicit;t.xp6(2),t.Q6J("ngModel",A.tagName)}}function v(_,U){if(1&_&&(t.TgZ(0,"td",24),t.YNc(1,h,2,1,"div",25),t.YNc(2,Y,3,1,"div",25),t.qZA()),2&_){const A=U.$implicit,I=t.oxw();t.xp6(1),t.Q6J("ngIf",!I.isChanging.isSelected(A)),t.xp6(1),t.Q6J("ngIf",I.isChanging.isSelected(A))}}function P(_,U){1&_&&t._UZ(0,"th",23)}function k(_,U){if(1&_){const A=t.EpF();t.TgZ(0,"button",29),t.NdJ("click",function(){t.CHM(A);const m=t.oxw().$implicit,G=t.oxw();return t.KtG(G.edit(m))}),t.ALo(1,"translate"),t.TgZ(2,"mat-icon"),t._uU(3,"edit"),t.qZA()()}2&_&&t.s9C("matTooltip",t.lcZ(1,1,"VO_DETAIL.RESOURCES.TAGS.EDIT_BUTTON"))}function X(_,U){if(1&_){const A=t.EpF();t.TgZ(0,"button",29),t.NdJ("click",function(){t.CHM(A);const m=t.oxw().$implicit,G=t.oxw();return t.KtG(G.save(m))}),t.ALo(1,"translate"),t.TgZ(2,"mat-icon"),t._uU(3,"save"),t.qZA()()}2&_&&t.s9C("matTooltip",t.lcZ(1,1,"VO_DETAIL.RESOURCES.TAGS.SAVE_BUTTON"))}function se(_,U){if(1&_&&(t.TgZ(0,"td",24)(1,"div",27),t.YNc(2,k,4,3,"button",28),t.YNc(3,X,4,3,"button",28),t.qZA()()),2&_){const A=U.$implicit,I=t.oxw();t.xp6(2),t.Q6J("ngIf",!I.isChanging.isSelected(A)),t.xp6(1),t.Q6J("ngIf",I.isChanging.isSelected(A))}}function ie(_,U){1&_&&t._UZ(0,"tr",30)}function re(_,U){1&_&&t._UZ(0,"tr",31)}function g(_,U){if(1&_&&(t.TgZ(0,"perun-web-apps-alert",32),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.qZA()),2&_){const A=t.oxw();t.xp6(1),t.hij(" ","vo"===A.entity?t.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.NO_TAGS"):t.lcZ(3,3,"RESOURCE_DETAIL.TAGS.NO_TAGS"),"\n")}}function Q(_,U){1&_&&(t.TgZ(0,"perun-web-apps-alert",32),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&_&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}const l=function(_){return{all:_}};let R=(()=>{class _{constructor(A,I,m,G,u){this.resourceManager=A,this.notificator=I,this.translator=m,this.authResolver=G,this.tableCheckbox=u,this.resourceTags=[],this.selection=new n.Ov(!0,[]),this.displayedColumns=["select","id","name","edit"],this.isChanging=new n.Ov(!0,[]),this.pageSizeOptions=s.f7}set matSort(A){this.sort=A,this.setDataSource()}static getDataForColumn(A,I){switch(I){case"id":return A.id.toString();case"name":return A.tagName;default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(A=>"id"!==A)),this.dataSource=new f.by(this.resourceTags),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}exportAllData(A){(0,s.O6)((0,s.Xn)(this.dataSource.filteredData,this.displayedColumns,_.getDataForColumn),A)}exportDisplayedData(A){const I=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,m=I+this.dataSource.paginator.pageSize;(0,s.O6)((0,s.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(I,m),this.displayedColumns,_.getDataForColumn),A)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(A,I)=>(0,s.Sd)(A,I,this.displayedColumns,_.getDataForColumn),this.dataSource.sortData=(A,I)=>(0,s.pR)(A,I,_.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}save(A){this.resourceManager.updateResourceTag({resourceTag:A}).subscribe(()=>{this.translator.get("SHARED.COMPONENTS.RESOURCES_TAGS_LIST.EDIT_SUCCESS").subscribe(I=>{this.notificator.showSuccess(I)}),this.isChanging.deselect(A)})}edit(A){this.isChanging.select(A)}}return _.\u0275fac=function(A){return new(A||_)(t.Y36(T.xk),t.Y36(d.V6),t.Y36(e.sK),t.Y36(d.x4),t.Y36(d.UA))},_.\u0275cmp=t.Xpm({type:_,selectors:[["app-resources-tags-list"]],viewQuery:function(A,I){if(1&A&&(t.Gf(s.l9,7),t.Gf(r.YE,7)),2&A){let m;t.iGM(m=t.CRH())&&(I.child=m.first),t.iGM(m=t.CRH())&&(I.matSort=m.first)}},inputs:{resourceTags:"resourceTags",filterValue:"filterValue",selection:"selection",tableId:"tableId",displayedColumns:"displayedColumns",entity:"entity"},features:[t.TTD],decls:18,vars:15,consts:[[1,"card","mt-2",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","edit"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-header-cell",""],["mat-cell",""],[4,"ngIf"],["matInput","",3,"ngModel","ngModelChange"],[1,"d-flex","justify-content-end"],["mat-icon-button","",3,"matTooltip","click",4,"ngIf"],["mat-icon-button","",3,"matTooltip","click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(A,I){1&A&&(t.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportDisplayedData",function(G){return I.exportDisplayedData(G)})("exportAllData",function(G){return I.exportAllData(G)}),t.TgZ(2,"table",2),t.YNc(3,ne,3,0,"ng-container",3),t.ALo(4,"isAllSelected"),t.ynx(5,4),t.YNc(6,w,3,3,"th",5),t.YNc(7,$,2,1,"td",6),t.BQk(),t.ynx(8,7),t.YNc(9,E,3,3,"th",8),t.YNc(10,v,3,2,"td",9),t.BQk(),t.ynx(11,10),t.YNc(12,P,1,0,"th",8),t.YNc(13,se,4,2,"td",9),t.BQk(),t.YNc(14,ie,1,0,"tr",11),t.YNc(15,re,1,0,"tr",12),t.qZA()()(),t.YNc(16,g,4,5,"perun-web-apps-alert",13),t.YNc(17,Q,3,3,"perun-web-apps-alert",13)),2&A&&(t.Q6J("hidden",0===I.resourceTags.length||0===I.dataSource.filteredData.length),t.xp6(1),t.Q6J("pageSizeOptions",I.pageSizeOptions)("dataLength",I.dataSource.filteredData.length)("tableId",I.tableId),t.xp6(1),t.Q6J("dataSource",I.dataSource),t.xp6(1),t.Q6J("ngIf",t.VKq(13,l,t.xi3(4,10,I.dataSource,I.selection.selected.length))),t.xp6(11),t.Q6J("matHeaderRowDef",I.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",I.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===I.resourceTags.length),t.xp6(1),t.Q6J("ngIf",0===I.dataSource.filteredData.length&&0!==I.resourceTags.length))},dependencies:[F.O5,K.KE,a.Nt,J.Fj,J.JJ,J.On,M.Hw,Z.lW,r.YE,r.nU,f.BZ,f.fO,f.as,f.w1,f.Dz,f.nj,f.ge,f.ev,f.XQ,f.Gk,H.oG,L.gM,B.w,b.l,e.X$,O.I,N.G,y.r]}),_})()},22158:(te,j,o)=>{o.d(j,{T:()=>f});var r=o(77579);const f=(n=class{})=>class extends n{constructor(){super(...arguments),this.destroyed$=new r.x}ngOnDestroy(){this.destroyed$.next()}}},90439:(te,j,o)=>{o.d(j,{F:()=>d});var r=o(94650),f=o(42377),n=o(89383);let d=(()=>{class T{constructor(){this.servicePackages=[],this.selectedPackage=null,this.multiple=!1,this.disableAutoSelect=!1,this.theme="",this.packageSelected=new r.vpe,this.nameFunction=t=>t.name,this.shortNameFunction=t=>t.description,this.searchFunction=t=>t.name+t.description}}return T.\u0275fac=function(t){return new(t||T)},T.\u0275cmp=r.Xpm({type:T,selectors:[["perun-web-apps-service-package-search-select"]],inputs:{servicePackages:"servicePackages",selectedPackage:"selectedPackage",multiple:"multiple",disableAutoSelect:"disableAutoSelect",theme:"theme"},outputs:{packageSelected:"packageSelected"},decls:4,vars:17,consts:[[3,"entities","entity","multiple","disableAutoSelect","searchFunction","mainTextFunction","secondaryTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","theme","entitySelected"]],template:function(t,e){1&t&&(r.TgZ(0,"perun-web-apps-entity-search-select",0),r.NdJ("entitySelected",function(K){return e.packageSelected.emit(K)}),r.ALo(1,"translate"),r.ALo(2,"translate"),r.ALo(3,"translate"),r.qZA()),2&t&&r.Q6J("entities",e.servicePackages)("entity",e.selectedPackage)("multiple",e.multiple)("disableAutoSelect",e.disableAutoSelect)("searchFunction",e.searchFunction)("mainTextFunction",e.nameFunction)("secondaryTextFunction",e.shortNameFunction)("selectPlaceholder",r.lcZ(1,11,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_PACKAGE_SEARCH_SELECT.SELECT_PACKAGE"))("findPlaceholder",r.lcZ(2,13,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_PACKAGE_SEARCH_SELECT.FIND_PACKAGE"))("noEntriesText",r.lcZ(3,15,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_PACKAGE_SEARCH_SELECT.NO_PACKAGE_FOUND"))("theme",e.theme)},dependencies:[f.i,n.X$]}),T})()}}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/assets/config/version.json b/dist/apps/admin-gui/assets/config/version.json index 6b9303b3d..40f855fbc 100644 --- a/dist/apps/admin-gui/assets/config/version.json +++ b/dist/apps/admin-gui/assets/config/version.json @@ -1 +1 @@ -{"version":"10.3.0"} +{"version":"10.4.0"} diff --git a/dist/apps/admin-gui/assets/i18n/en.json b/dist/apps/admin-gui/assets/i18n/en.json index f1b3ca04f..d7503cabc 100644 --- a/dist/apps/admin-gui/assets/i18n/en.json +++ b/dist/apps/admin-gui/assets/i18n/en.json @@ -401,7 +401,7 @@ "CLEAR": "Clear form", "CLEAR_TOOLTIP": "Removes all form items", "TYPES": { - "HEADER": "Header", + "HEADING": "Header", "SUBMIT_BUTTON": "Submit button", "HTML_COMMENT": "Custom HTML text", "TEXTFIELD": "Input text field", @@ -432,7 +432,7 @@ "IF_EMPTY": "If empty (self or other item)" }, "WIDGET_DESCRIPTION": { - "HEADER": "Item is used to display customizable heading of the form. Can have any HTML content.", + "HEADING": "Item is used to display customizable heading of the form. Can have any HTML content.", "SUBMIT_BUTTON": "Button used to submit the form with a custom label. All other form items are checked on valid input before submission. If it fails, form is not sent.", "HTML_COMMENT": "Item is used to display custom HTML content anywhere on the form. Useful for explanation descriptions, dividing parts of form, etc.", "TEXTFIELD": "Editable text field useful to gather short text input, e.g. name, phone.", @@ -584,6 +584,7 @@ "APPLICATION": { "TITLE": "Application", "FILTER": "Filter", + "SET_COLUMN_SETTINGS": "Configure column settings", "SELECTION_ALL": "All", "SELECTION_WFMV": "Waiting for mail verification", "SELECTION_SUBMITTED": "Submitted", @@ -591,6 +592,7 @@ "SELECTION_APPROVED": "Approved", "SELECTION_REJECTED": "Rejected", "SHOW_GROUP_APPLICATIONS": "Show group applications", + "COLUMNS_TOOLTIP": "Detailed application view cannot be customized.", "NO_APPLICATION_FOUND": "No applications matching search criteria found.", "SHOW_ALL_DETAILS": "Show more details", "SHOW_LESS_DETAILS": "Show less details", @@ -664,6 +666,8 @@ "ADD_MEMBER": "Add", "ADD_MEMBER_DISABLED": "Manual adding of members is blocked for this group.", "REMOVE_MEMBERS": "Remove", + "COPY_MEMBERS": "Copy", + "COPY_MEMBERS_DISABLED": "There aren't any direct members available to copy.", "SEARCH_DESCRIPTION": "Search by name, login, email or UUID", "LIST_ALL": "List all members", "INVITE": "Invite", @@ -780,7 +784,8 @@ "MODIFIED_AT": "Modified at", "USER": "User", "CREATED_BY": "Created by", - "VO_NAME": "Organization name" + "VO_NAME": "Organization name", + "CONFIGURE": "Configure applications view" }, "MEMBER_DETAIL": { "ENTITY": "Member", @@ -1175,6 +1180,19 @@ "NAME_COLUMN": "Name", "ERROR_COLUMN": "Error" }, + "COPY_MEMBERS": { + "TITLE": "Copy members", + "DISABLED_COPY_SELECTION": "No members selected", + "COPY_SELECTION": "Copy selected members of this group", + "COPY_ALL": "Copy all direct members of this group", + "SELECT_GROUPS": "Select groups to which members will be copied", + "ATTRIBUTES_WARN": "Member-group attributes of the members will not be copied!", + "CANCEL": "Cancel", + "COPY": "Copy", + "SUCCESS": "Members were successfully copied.", + "ERROR": "There was an error copying members, the operation was cancelled and none of the members were copied." + + }, "ADD_GROUPS": { "TITLE": "Add group", "SEARCH": "Search", @@ -1241,6 +1259,16 @@ "CANCEL": "Cancel", "SUCCESS": "Application was rejected" }, + "APPLICATIONS_LIST_COLUMNS_CHANGE": { + "TITLE": "Change applications view preferences", + "DEFAULT_TEXT": "The default setting of the columns is: 'createdAt', 'type', 'state', 'createdBy', 'modifiedBy' ", + "FILTER_COLUMNS": "Displayed columns", + "WARN": "Changes to displayed columns will be saved for everyone that views applications in this organization/group!", + "CANCEL": "Cancel", + "CONFIRM": "Confirm", + "DEFAULT": "Reset default settings", + "SUCCESS": "Displayed columns were successfully updated" + }, "UPDATE_APPLICATION_FORM": { "TITLE": "Change application form settings", "MODULE_NAME": "Module name", @@ -1550,6 +1578,7 @@ "CHANGE_NO_VALID_TO_DISABLED": "DISABLED status means that the member is archived and is not allowed to any services. Member can't enable/extend membership by himself.", "SUCCESS": "Member status was changed", "CANCEL": "Cancel", + "BACK": "Back", "CHANGE_STATUS": "Change status", "CHANGE_STATUS_WITH_EXPIRATION": "Change status and set expiration" }, @@ -1842,6 +1871,7 @@ "EXPIRATION_NEVER": "Never expire", "WRONG_FORMAT": "The date has to be in format yyyy-mm-dd", "CANCEL": "Cancel", + "BACK": "Back", "SAVE": "Save", "SUCCESS": "Expiration successfully changed", "SAVE_HINT": "You don't have permission to change the expiration date.", @@ -1950,6 +1980,14 @@ "SUBMIT": "Submit", "SUCCESS": "Application form item data edited successfully" }, + "CONFIGURE_APP_VIEW": { + "TITLE": "Configure applications view: ", + "DESCRIPTION": "You can configure which basic information will be shown in the application view. The settings can be reset later.", + "SAVE": "Save", + "CANCEL": "Cancel", + "RESET": "Reset", + "SAVED": "Configuration successfully updated" + }, "CREATE_SPONSORED_MEMBER": { "TITLE": "Create sponsored member", "FIRST_NAME": "First name", @@ -2296,7 +2334,7 @@ "NO_MEMBERS_ALERT": "No members present", "NO_FILTER_RESULTS_ALERT": "No members are matching your query", "INDIRECT_MEMBER": "Indirect member", - "CHECKBOX_TOOLTIP_INDIRECT": "Indirect members cannot be removed", + "CHECKBOX_TOOLTIP_INDIRECT": "Indirect members cannot be removed or copied", "CHECKBOX_TOOLTIP_UNALTERABLE": "Members from member organizations cannot be directly removed", "STATUS_TOOLTIP_INDIRECT": "Member status from member organization cannot be directly changed", "STATUS_TOOLTIP_GROUP_INDIRECT": "Indirect member status cannot be changed", @@ -2339,6 +2377,7 @@ "TITLE": "Attribute definitions", "TABLE_ATTR_ID": "Id", "TABLE_ATTR_FRIENDLY_NAME": "Friendly name", + "TABLE_ATTR_DISPLAY_NAME": "Display name", "TABLE_ATTR_ENTITY": "Entity", "TABLE_ATTR_DEF": "Def", "TABLE_ATTR_TYPE": "Type", @@ -2413,7 +2452,8 @@ "FILTER": "Filter" }, "AUDIT_LOG": { - "TITLE": "Audit log" + "TITLE": "Audit log", + "SEARCH_DESCRIPTION": "Search by event name" }, "CONSENT_HUBS": { "TITLE": "Consent hubs", @@ -2686,7 +2726,8 @@ "TITLE": "Roles", "ADD": "Add role", "REMOVE": "Remove role", - "REMOVE_DESC": "Following role will be removed", + "REMOVE_DESC": "{{role}} role will be removed.", + "REMOVE_DESC_WITH_OBJECTS": "{{role}} role will be removed from {{count}} following objects:", "REMOVE_SUCCESS": "Role {{ role}} was successfully removed", "REMOVE_DISABLED_TOOLTIP": "You don't have permission to remove selected role", "NO_ROLES": "No roles found", @@ -3023,7 +3064,7 @@ "SESSION_EXPIRATION": { "TITLE": "Session expiration", "DESCRIPTION": "Your session has expired. Please sign in to continue.", - "SIGN_IN": "Sign in" + "SIGN_IN": "Proceed" }, "RECENTLY_VIEWED_ICON": { "RECENT": "Recently viewed" @@ -3197,6 +3238,9 @@ "DESCRIPTION_HEADER": "Description", "EXPIRATION_HEADER": "Expiration", "NO_BANS": "No bans found." + }, + "UNIVERSAL_OBJECTS_LIST": { + "FILTER": "Filter objects by their properties" } }, "ORGANIZATIONS": { diff --git a/dist/apps/admin-gui/index.html b/dist/apps/admin-gui/index.html index 16a9367a8..0adb21439 100644 --- a/dist/apps/admin-gui/index.html +++ b/dist/apps/admin-gui/index.html @@ -14,5 +14,5 @@
- + diff --git a/dist/apps/admin-gui/main.030559d4641ab542.js b/dist/apps/admin-gui/main.030559d4641ab542.js new file mode 100644 index 000000000..033b86210 --- /dev/null +++ b/dist/apps/admin-gui/main.030559d4641ab542.js @@ -0,0 +1 @@ +(self.webpackChunkadmin_gui=self.webpackChunkadmin_gui||[]).push([[179],{57788:(Xe,ue,p)=>{"use strict";p.d(ue,{g:()=>ut});var e=p(61744),A=p(10036),C=p(94650),M=p(36895),m=p(3848),b=p(51572),D=p(64877),v=p(62109),R=p(62707),B=p(38383),w=p(74010),L=p(9244),O=p(97392),q=p(4859),te=p(10266),z=p(89593),ie=p(64901),Te=p(89383);function pe(tt,vt){if(1&tt){const X=C.EpF();C.TgZ(0,"div",6)(1,"div",7)(2,"perun-web-apps-entity-search-select",8),C.NdJ("entitySelected",function(Ae){const _e=C.CHM(X).$implicit;return C.KtG(_e[0]=Ae.namespace+":"+Ae.friendlyName)}),C.ALo(3,"translate"),C.ALo(4,"translate"),C.ALo(5,"translate"),C.qZA()(),C.TgZ(6,"div",9)(7,"perun-web-apps-debounce-filter",10),C.NdJ("filter",function(Ae){const _e=C.CHM(X).$implicit;return C.KtG(_e[1]=Ae)}),C.qZA()(),C.TgZ(8,"div",11)(9,"button",12),C.NdJ("click",function(){const ye=C.CHM(X).$implicit,_e=C.oxw(2);return C.KtG(_e.removeOption(ye))}),C.ALo(10,"translate"),C.TgZ(11,"mat-icon"),C._uU(12,"clear"),C.qZA()()()()}if(2&tt){const X=C.oxw(2);C.xp6(2),C.Q6J("entities",X.availableAttrDefs)("searchFunction",X.nameFunction)("mainTextFunction",X.nameFunction)("secondaryTextFunction",X.secondaryTextFunction)("selectPlaceholder",C.lcZ(3,10,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.SELECT_ATTR_DEF"))("findPlaceholder",C.lcZ(4,12,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.FIND_ATTR_DEF"))("noEntriesText",C.lcZ(5,14,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.NO_ATTR_DEF_FOUND")),C.xp6(5),C.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.SEARCH_PLACEHOLDER"),C.xp6(2),C.s9C("matTooltip",C.lcZ(10,16,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.REMOVE_PARAMETER")),C.Q6J("disabled",1===X.options.length)}}function Le(tt,vt){if(1&tt){const X=C.EpF();C.TgZ(0,"div",1),C.YNc(1,pe,13,18,"div",2),C.TgZ(2,"button",3),C.NdJ("click",function(){C.CHM(X);const Ae=C.oxw();return C.KtG(Ae.addOption())}),C._uU(3),C.ALo(4,"translate"),C.qZA(),C.TgZ(5,"span",4),C.ALo(6,"translate"),C.TgZ(7,"button",5),C.NdJ("click",function(){C.CHM(X);const Ae=C.oxw();return C.KtG(Ae.searchEntities())}),C.TgZ(8,"mat-icon"),C._uU(9,"search"),C.qZA(),C._uU(10),C.ALo(11,"translate"),C.qZA()()()}if(2&tt){const X=C.oxw();C.xp6(1),C.Q6J("ngForOf",X.options),C.xp6(2),C.hij(" ",C.lcZ(4,6,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.ADD_PARAMETER")," "),C.xp6(2),C.s9C("matTooltip",C.lcZ(6,8,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.SEARCH_BUTTON_TOOLTIP")),C.Q6J("matTooltipDisabled",!X.emptySearchString()),C.xp6(2),C.Q6J("disabled",X.emptySearchString()),C.xp6(3),C.hij(" ",C.lcZ(11,10,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.SEARCH_BUTTON")," ")}}let T=(()=>{class tt{constructor(){this.attributeSelected=new C.vpe,this.search=new C.vpe,this.availableAttrDefs=[],this.options=[],this.nameFunction=X=>X.displayName,this.secondaryTextFunction=X=>"#"+String(X.id)}ngOnInit(){this.availableAttrDefs=this.attributes.filter(X=>X.entity===this.attributesForEntity).sort(L.Xd)}ngOnChanges(){this.options=[],this.options.push([this.attributes[0].namespace+":"+this.attributes[0].friendlyName,""])}removeOption(X){this.options=this.options.filter(nt=>nt!==X)}addOption(){this.options.push([this.attributes[0].namespace+":"+this.attributes[0].friendlyName,""])}emptySearchString(){return this.options.some(X=>0===X[1].length)}searchEntities(){const X={};this.options.forEach(nt=>{X[nt[0]]=nt[1]}),this.search.emit(X)}}return tt.\u0275fac=function(X){return new(X||tt)},tt.\u0275cmp=C.Xpm({type:tt,selectors:[["perun-web-apps-attribute-search-select"]],inputs:{attributes:"attributes",attributesForEntity:"attributesForEntity"},outputs:{attributeSelected:"attributeSelected",search:"search"},features:[C.TTD],decls:1,vars:1,consts:[["class","container ml-0 mr-0 pl-0 pr-0 mt-3",4,"ngIf"],[1,"container","ml-0","mr-0","pl-0","pr-0","mt-3"],["class","row",4,"ngFor","ngForOf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["matTooltipPosition","below",3,"matTooltip","matTooltipDisabled"],["data-cy","searcher-search-button","mat-stroked-button","",1,"mr-2",3,"disabled","click"],[1,"row"],[1,"col-7"],[3,"entities","searchFunction","mainTextFunction","secondaryTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"],[1,"col-4","pr-0"],[3,"placeholder","filter"],[1,"col-1"],["mat-icon-button","","color","warn",1,"mt-2",3,"matTooltip","disabled","click"]],template:function(X,nt){1&X&&C.YNc(0,Le,12,12,"div",0),2&X&&C.Q6J("ngIf",void 0!==nt.options)},dependencies:[M.sg,M.O5,O.Hw,q.lW,te.gM,z.i,ie.P,Te.X$]}),tt})();function W(tt,vt){1&tt&&(C._uU(0),C.ALo(1,"translate")),2&tt&&C.hij(" ",C.lcZ(1,1,"ADMIN.SEARCHER.TAB_USERS")," ")}function F(tt,vt){if(1&tt){const X=C.EpF();C.TgZ(0,"perun-web-apps-attribute-search-select",8),C.NdJ("search",function(Ae){C.CHM(X);const ye=C.oxw(2);return C.KtG(ye.searchEntities(Ae,"user"))}),C.qZA()}if(2&tt){const X=C.oxw(2);C.Q6J("attributes",X.allAttrDefinitions)("attributesForEntity","user")}}const V=function(){return["user","id","name"]};function ee(tt,vt){if(1&tt&&C._UZ(0,"app-users-list",9),2&tt){const X=C.oxw(2);C.Q6J("tableId",X.tableId)("displayedColumns",C.DdM(3,V))("users",X.entities)}}function Q(tt,vt){if(1&tt&&(C.YNc(0,F,1,2,"perun-web-apps-attribute-search-select",6),C.YNc(1,ee,1,4,"app-users-list",7)),2&tt){const X=C.oxw();C.Q6J("ngIf",!X.loading),C.xp6(1),C.Q6J("ngIf",!X.loadingEntityData)}}function Ee(tt,vt){1&tt&&(C._uU(0),C.ALo(1,"translate")),2&tt&&C.hij(" ",C.lcZ(1,1,"ADMIN.SEARCHER.TAB_MEMBERS")," ")}function ge(tt,vt){if(1&tt){const X=C.EpF();C.TgZ(0,"perun-web-apps-vo-search-select",13),C.NdJ("voSelected",function(Ae){C.CHM(X);const ye=C.oxw(2);return C.KtG(ye.voSelected(Ae))}),C.qZA()}if(2&tt){const X=C.oxw(2);C.Q6J("vos",X.vos)}}function ve(tt,vt){if(1&tt){const X=C.EpF();C.TgZ(0,"perun-web-apps-attribute-search-select",8),C.NdJ("search",function(Ae){C.CHM(X);const ye=C.oxw(2);return C.KtG(ye.searchEntities(Ae,"member"))}),C.qZA()}if(2&tt){const X=C.oxw(2);C.Q6J("attributes",X.allAttrDefinitions)("attributesForEntity","user")}}const De=function(){return["id","voId","userId","status"]};function he(tt,vt){if(1&tt){const X=C.EpF();C.TgZ(0,"perun-web-apps-members-list",14),C.NdJ("updateTable",function(){C.CHM(X);const Ae=C.oxw(2);return C.KtG(Ae.searchEntities(Ae.searchInput,"member"))}),C.qZA()}if(2&tt){const X=C.oxw(2);C.Q6J("tableId",X.tableId)("displayedColumns",C.DdM(5,De))("disableStatusChange",!0)("disableExpirationChange",!0)("members",X.entities)}}function Ye(tt,vt){if(1&tt&&(C.TgZ(0,"div",10),C.YNc(1,ge,1,1,"perun-web-apps-vo-search-select",11),C.qZA(),C.YNc(2,ve,1,2,"perun-web-apps-attribute-search-select",6),C.YNc(3,he,1,6,"perun-web-apps-members-list",12)),2&tt){const X=C.oxw();C.xp6(1),C.Q6J("ngIf",X.vos.length>0),C.xp6(1),C.Q6J("ngIf",!X.loading),C.xp6(1),C.Q6J("ngIf",!X.loadingEntityData)}}function Be(tt,vt){1&tt&&(C._uU(0),C.ALo(1,"translate")),2&tt&&C.hij(" ",C.lcZ(1,1,"ADMIN.SEARCHER.TAB_FACILITIES")," ")}function se(tt,vt){if(1&tt){const X=C.EpF();C.TgZ(0,"perun-web-apps-attribute-search-select",8),C.NdJ("search",function(Ae){C.CHM(X);const ye=C.oxw(2);return C.KtG(ye.searchEntities(Ae,"facility"))}),C.qZA()}if(2&tt){const X=C.oxw(2);C.Q6J("attributes",X.allAttrDefinitions)("attributesForEntity","facility")}}const le=function(){return["id","name","description"]};function N(tt,vt){if(1&tt&&C._UZ(0,"perun-web-apps-facilities-list",16),2&tt){const X=C.oxw(2);C.Q6J("tableId",X.tableId)("displayedColumns",C.DdM(3,le))("facilities",X.entities)}}function k(tt,vt){if(1&tt&&(C.YNc(0,se,1,2,"perun-web-apps-attribute-search-select",6),C.YNc(1,N,1,4,"perun-web-apps-facilities-list",15)),2&tt){const X=C.oxw();C.Q6J("ngIf",!X.loading),C.xp6(1),C.Q6J("ngIf",!X.loadingEntityData)}}function be(tt,vt){1&tt&&(C._uU(0),C.ALo(1,"translate")),2&tt&&C.hij(" ",C.lcZ(1,1,"ADMIN.SEARCHER.TAB_RESOURCES")," ")}function Z(tt,vt){if(1&tt){const X=C.EpF();C.TgZ(0,"perun-web-apps-attribute-search-select",8),C.NdJ("search",function(Ae){C.CHM(X);const ye=C.oxw(2);return C.KtG(ye.searchEntities(Ae,"resource"))}),C.qZA()}if(2&tt){const X=C.oxw(2);C.Q6J("attributes",X.allAttrDefinitions)("attributesForEntity","resource")}}const ce=function(){return["id","name","description","voId","facilityId"]};function xe(tt,vt){if(1&tt&&C._UZ(0,"perun-web-apps-resources-list",18),2&tt){const X=C.oxw(2);C.Q6J("tableId",X.tableId)("displayedColumns",C.DdM(3,ce))("resources",X.entities)}}function ot(tt,vt){if(1&tt&&(C.YNc(0,Z,1,2,"perun-web-apps-attribute-search-select",6),C.YNc(1,xe,1,4,"perun-web-apps-resources-list",17)),2&tt){const X=C.oxw();C.Q6J("ngIf",!X.loading),C.xp6(1),C.Q6J("ngIf",!X.loadingEntityData)}}function Fe(tt,vt){1&tt&&C._UZ(0,"mat-spinner",19)}let ut=(()=>{class tt{constructor(X,nt,Ae){this.attributesManager=X,this.searcher=nt,this.voService=Ae,this.loadingEntityData=!1,this.allAttrDefinitions=[],this.tableId=A.ee,this.entities=[],this.vos=[]}ngOnInit(){this.loading=!0,this.attributesManager.getAllAttributeDefinitions().subscribe(X=>{this.allAttrDefinitions=X,this.loading=!1})}tabChanged(X){switch(this.entities=[],X){case 0:this.tableId=A.ee;break;case 1:this.loadingEntityData=!0,this.loadAllVos(),this.tableId=A.FF;break;case 2:this.tableId=A.$I;break;case 3:this.tableId=A.XH}}loadAllVos(){this.loadingEntityData=!0,this.voService.getAllVos().subscribe(X=>{this.vos=X,this.selectedVo=X[0],this.loadingEntityData=!1})}voSelected(X){void 0!==X&&(this.selectedVo=X)}searchEntities(X,nt){switch(this.searchInput=X,this.loadingEntityData=!0,nt){case"user":this.getUsers();break;case"member":this.getMembers();break;case"facility":this.getFacilities();break;case"resource":this.getResources()}}getUsers(){this.searcher.getUsersSearcher({attributesWithSearchingValues:this.searchInput}).subscribe(X=>{this.entities=X,this.loadingEntityData=!1})}getMembers(){this.searcher.getMembersByUserAttributes({vo:this.selectedVo.id,userAttributesWithSearchingValues:this.searchInput}).subscribe(X=>{this.entities=X,this.loadingEntityData=!1})}getFacilities(){this.searcher.getFacilities({attributesWithSearchingValues:this.searchInput}).subscribe(X=>{this.entities=X.map(nt=>({facility:nt})),this.loadingEntityData=!1})}getResources(){this.searcher.getAttributesResources({attributesWithSearchingValues:this.searchInput}).subscribe(X=>{this.entities=X,this.loadingEntityData=!1})}}return tt.id="AdminSearcherComponent",tt.\u0275fac=function(X){return new(X||tt)(C.Y36(e.H8),C.Y36(e.t7),C.Y36(e.YF))},tt.\u0275cmp=C.Xpm({type:tt,selectors:[["app-admin-searcher"]],hostVars:2,hostBindings:function(X,nt){2&X&&C.ekj("router-component",nt.true)},decls:17,vars:4,consts:[[1,"page-subtitle"],[3,"selectedIndexChange"],[1,"mb-2"],["matTabLabel",""],["matTabContent",""],["class","ml-auto mr-auto",4,"ngIf"],[3,"attributes","attributesForEntity","search",4,"ngIf"],[3,"tableId","displayedColumns","users",4,"ngIf"],[3,"attributes","attributesForEntity","search"],[3,"tableId","displayedColumns","users"],[1,"mt-3"],[3,"vos","voSelected",4,"ngIf"],[3,"tableId","displayedColumns","disableStatusChange","disableExpirationChange","members","updateTable",4,"ngIf"],[3,"vos","voSelected"],[3,"tableId","displayedColumns","disableStatusChange","disableExpirationChange","members","updateTable"],[3,"tableId","displayedColumns","facilities",4,"ngIf"],[3,"tableId","displayedColumns","facilities"],[3,"tableId","displayedColumns","resources",4,"ngIf"],[3,"tableId","displayedColumns","resources"],[1,"ml-auto","mr-auto"]],template:function(X,nt){1&X&&(C.TgZ(0,"h1",0),C._uU(1),C.ALo(2,"translate"),C.qZA(),C.TgZ(3,"mat-tab-group",1),C.NdJ("selectedIndexChange",function(ye){return nt.tabChanged(ye)}),C.TgZ(4,"mat-tab",2),C.YNc(5,W,2,3,"ng-template",3),C.YNc(6,Q,2,2,"ng-template",4),C.qZA(),C.TgZ(7,"mat-tab"),C.YNc(8,Ee,2,3,"ng-template",3),C.YNc(9,Ye,4,3,"ng-template",4),C.qZA(),C.TgZ(10,"mat-tab"),C.YNc(11,Be,2,3,"ng-template",3),C.YNc(12,k,2,2,"ng-template",4),C.qZA(),C.TgZ(13,"mat-tab"),C.YNc(14,be,2,3,"ng-template",3),C.YNc(15,ot,2,2,"ng-template",4),C.qZA()(),C.YNc(16,Fe,1,0,"mat-spinner",5)),2&X&&(C.xp6(1),C.Oqu(C.lcZ(2,2,"ADMIN.SEARCHER.TITLE")),C.xp6(15),C.Q6J("ngIf",nt.loading||nt.loadingEntityData))},dependencies:[M.O5,m.SP,m.uD,m.uX,m.Vc,b.Ou,D.C,v.C,R.M,B.O,w.X,T,Te.X$]}),tt})()},80774:(Xe,ue,p)=>{"use strict";p.d(ue,{F:()=>T});var e=p(95017),A=p(61744),C=p(10036),M=p(9244),m=p(40009),b=p(90719),D=p(81591),v=p(94650),R=p(65412),B=p(36895),w=p(4859),L=p(51572),O=p(60205),q=p(96214),te=p(7434),z=p(89383);function ie(W,F){if(1&W){const V=v.EpF();v.TgZ(0,"button",7),v.NdJ("click",function(){v.CHM(V);const Q=v.oxw();return v.KtG(Q.createService())}),v._uU(1),v.ALo(2,"translate"),v.qZA()}2&W&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"ADMIN.SERVICES.CREATE")," "))}function Te(W,F){if(1&W){const V=v.EpF();v.TgZ(0,"button",8),v.NdJ("click",function(){v.CHM(V);const Q=v.oxw();return v.KtG(Q.deleteService())}),v._uU(1),v.ALo(2,"translate"),v.qZA()}if(2&W){const V=v.oxw();v.Q6J("disabled",0===V.selection.selected.length),v.xp6(1),v.hij(" ",v.lcZ(2,2,"ADMIN.SERVICES.DELETE")," ")}}function pe(W,F){1&W&&v._UZ(0,"mat-spinner",9)}function Le(W,F){if(1&W&&v._UZ(0,"app-services-list",10),2&W){const V=v.oxw();v.Q6J("filterValue",V.filterValue)("selection",V.selection)("services",V.services)("tableId",V.tableId)}}let T=(()=>{class W{constructor(V,ee,Q){this.serviceManager=V,this.dialog=ee,this.authResolver=Q,this.selection=new e.Ov(!0,[]),this.loading=!1,this.filterValue="",this.tableId=C.NL}ngOnInit(){this.serviceManager.getServices().subscribe(V=>{this.services=V,this.refreshTable()})}createService(){const V=(0,M.kZ)();V.width="600px",V.data={theme:"admin-theme"},this.dialog.open(m.R,V).afterClosed().subscribe(Q=>{Q&&this.refreshTable()})}deleteService(){const V=(0,M.kZ)();V.width="600px",V.data={theme:"admin-theme",services:this.selection.selected},this.dialog.open(b.m,V).afterClosed().subscribe(Q=>{Q&&this.refreshTable()})}refreshTable(){this.loading=!0,this.serviceManager.getServices().subscribe(V=>{this.services=V,this.selection.clear(),this.loading=!1})}applyFilter(V){this.filterValue=V}}return W.id="AdminServicesComponent",W.\u0275fac=function(V){return new(V||W)(v.Y36(A.KK),v.Y36(R.uw),v.Y36(D.x4))},W.\u0275cmp=v.Xpm({type:W,selectors:[["app-admin-services"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","class","action-button mr-2","data-cy","service-create-button","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","data-cy","service-delete-button","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","mr-auto ml-auto",4,"ngIf"],[3,"filterValue","selection","services","tableId",4,"ngIf"],["color","accent","data-cy","service-create-button","mat-flat-button","",1,"action-button","mr-2",3,"click"],["color","warn","data-cy","service-delete-button","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],[3,"filterValue","selection","services","tableId"]],template:function(V,ee){1&V&&(v.TgZ(0,"div")(1,"h1",0),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.TgZ(4,"perun-web-apps-refresh-button",1),v.NdJ("refresh",function(){return ee.refreshTable()}),v.qZA(),v.YNc(5,ie,3,3,"button",2),v.YNc(6,Te,3,4,"button",3),v.TgZ(7,"perun-web-apps-immediate-filter",4),v.NdJ("filter",function(Ee){return ee.applyFilter(Ee)}),v.qZA(),v.YNc(8,pe,1,0,"mat-spinner",5),v.YNc(9,Le,1,4,"app-services-list",6),v.qZA()),2&V&&(v.xp6(2),v.Oqu(v.lcZ(3,6,"ADMIN.SERVICES.TITLE")),v.xp6(3),v.Q6J("ngIf",ee.authResolver.isPerunAdmin()),v.xp6(1),v.Q6J("ngIf",ee.authResolver.isPerunAdmin()),v.xp6(1),v.Q6J("placeholder","ADMIN.SERVICES.FILTER"),v.xp6(1),v.Q6J("ngIf",ee.loading),v.xp6(1),v.Q6J("ngIf",!ee.loading))},dependencies:[B.O5,w.lW,L.Ou,O.Q,q.t,te.L,z.X$]}),W})()},25828:(Xe,ue,p)=>{"use strict";p.d(ue,{t:()=>w});var e=p(10036),A=p(64080),C=p(81591),M=p(94650),m=p(56709),b=p(96214),D=p(64901),v=p(11447),R=p(89383);const B=function(){return["user","id","name","email","logins","organization"]};let w=(()=>{class L{constructor(q){this.storeService=q,this.usersWithoutVo=!1,this.tableId=e.xx,this.attributes=[],this.update=!1}ngOnInit(){this.attributes=[A.r.USER_DEF_ORGANIZATION,A.r.USER_DEF_PREFERRED_MAIL],this.attributes=this.attributes.concat(this.storeService.getLoginAttributeNames())}onSearchByString(q){this.searchString=q}findUsersWithoutVO(){this.usersWithoutVo=!this.usersWithoutVo}refresh(){this.update=!this.update}}return L.id="AdminUsersComponent",L.\u0275fac=function(q){return new(q||L)(M.Y36(C.d6))},L.\u0275cmp=M.Xpm({type:L,selectors:[["app-admin-users"]],hostVars:2,hostBindings:function(q,te){2&q&&M.ekj("router-component",te.true)},decls:9,vars:17,consts:[[1,"page-subtitle"],[3,"click"],[1,"mt-2","search-field",3,"autoFocus","placeholder","filter"],["color","primary",3,"checked","change"],[3,"disableRouting","searchString","attrNames","displayedColumns","tableId","withoutVo","updateTable"]],template:function(q,te){1&q&&(M.TgZ(0,"h1",0),M._uU(1),M.ALo(2,"translate"),M.qZA(),M.TgZ(3,"perun-web-apps-refresh-button",1),M.NdJ("click",function(){return te.refresh()}),M.qZA(),M.TgZ(4,"perun-web-apps-debounce-filter",2),M.NdJ("filter",function(ie){return te.onSearchByString(ie)}),M.qZA(),M.TgZ(5,"mat-checkbox",3),M.NdJ("change",function(){return te.findUsersWithoutVO()}),M._uU(6),M.ALo(7,"translate"),M.qZA(),M._UZ(8,"perun-web-apps-users-dynamic-list",4)),2&q&&(M.xp6(1),M.Oqu(M.lcZ(2,12,"ADMIN.USERS.TITLE")),M.xp6(3),M.Q6J("autoFocus",!0)("placeholder","ADMIN.USERS.SEARCH_PLACEHOLDER"),M.xp6(1),M.Q6J("checked",te.usersWithoutVo),M.xp6(1),M.hij(" ",M.lcZ(7,14,"ADMIN.USERS.USERS_WITHOUT_VO"),"\n"),M.xp6(2),M.Q6J("disableRouting",!1)("searchString",te.searchString)("attrNames",te.attributes)("displayedColumns",M.DdM(16,B))("tableId",te.tableId)("withoutVo",te.usersWithoutVo)("updateTable",te.update))},dependencies:[m.oG,b.t,D.P,v.M,R.X$],styles:[".search-field[_ngcontent-%COMP%]{width:325px}"]}),L})()},72077:(Xe,ue,p)=>{"use strict";p.d(ue,{y:()=>F});var e=p(81591),A=p(17445),C=p(80529),M=p(9244),m=p(94650),b=p(65412),D=p(4859),v=p(89383);let R=(()=>{class V{constructor(Q){this.dialogRef=Q}onReload(){location.reload()}onClose(){this.dialogRef.close()}}return V.\u0275fac=function(Q){return new(Q||V)(m.Y36(b.so))},V.\u0275cmp=m.Xpm({type:V,selectors:[["app-new-version-dialog"]],decls:15,vars:12,consts:[["mat-dialog-title",""],[1,"user-theme"],["mat-dialog-content",""],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"]],template:function(Q,Ee){1&Q&&(m.TgZ(0,"h1",0),m._uU(1),m.ALo(2,"translate"),m.qZA(),m.TgZ(3,"div",1)(4,"div",2)(5,"p"),m._uU(6),m.ALo(7,"translate"),m.qZA()(),m.TgZ(8,"div",3)(9,"button",4),m.NdJ("click",function(){return Ee.onClose()}),m._uU(10),m.ALo(11,"translate"),m.qZA(),m.TgZ(12,"button",5),m.NdJ("click",function(){return Ee.onReload()}),m._uU(13),m.ALo(14,"translate"),m.qZA()()()),2&Q&&(m.xp6(1),m.Oqu(m.lcZ(2,4,"DIALOGS.NEW_VERSION.TITLE")),m.xp6(5),m.hij(" ",m.lcZ(7,6,"DIALOGS.NEW_VERSION.DESCRIPTION")," "),m.xp6(4),m.hij(" ",m.lcZ(11,8,"DIALOGS.NEW_VERSION.LATER")," "),m.xp6(3),m.hij(" ",m.lcZ(14,10,"DIALOGS.NEW_VERSION.RELOAD")," "))},dependencies:[D.lW,b.uh,b.xY,b.H8,v.X$]}),V})();var B=p(94364),w=p(39300),L=p(40034);let O=(()=>{class V{constructor(Q,Ee){this.router=Q,this.routeReuseStrategy=Ee;const ge=Ee;Q.events.subscribe(ve=>{ve instanceof B.OD&&ge.setLastNavigationType("popstate"===ve.navigationTrigger?"back":"direct")})}init(){}}return V.\u0275fac=function(Q){return new(Q||V)(m.LFG(B.F0),m.LFG(B.wN))},V.\u0275prov=m.Yz7({token:V,factory:V.\u0275fac,providedIn:"root"}),V})();const q=["footer"];function te(V,ee){if(1&V&&(m.TgZ(0,"div",3)(1,"mat-icon"),m._uU(2,"alert"),m.qZA(),m._uU(3),m.qZA()),2&V){const Q=m.oxw();m.xp6(3),m.hij(" ",Q.warningMessage,"\n")}}const z=function(V,ee){return{top:V,background:ee}},ie=function(V,ee){return{"margin-top":V,"min-height":ee}},Te=function(V,ee){return{"border-color":V,background:ee}},pe=function(V){return{"background-color":V}},Le=function(V){return{"min-height":V}};function T(V,ee){if(1&V){const Q=m.EpF();m.TgZ(0,"perun-web-apps-header",4),m.NdJ("sidenavToggle",function(){m.CHM(Q);const ge=m.MAs(3);return m.KtG(ge.toggle())}),m.qZA(),m.TgZ(1,"mat-sidenav-container",5)(2,"mat-sidenav",6,7)(4,"ng-scrollbar"),m._UZ(5,"app-side-menu",8),m.qZA()(),m.TgZ(6,"mat-sidenav-content",9)(7,"div",10),m._UZ(8,"router-outlet"),m.qZA(),m.TgZ(9,"div",null,11),m._UZ(11,"perun-web-apps-footer"),m.qZA()()()}if(2&V){const Q=m.MAs(3),Ee=m.oxw();m.Q6J("ngStyle",m.WLB(12,z,Ee.getNavMenuTop(),Ee.navBackgroundColor))("otherApp",Ee.otherApp)("showNotifications",!0),m.xp6(1),m.Q6J("ngStyle",m.WLB(15,ie,Ee.getSideNavMarginTop(),Ee.getSideNavMinHeight())),m.xp6(1),m.Q6J("fixedInViewport",!0)("mode",Ee.sidebarMode)("fixedTopGap",Ee.getTopGap())("ngStyle",m.WLB(18,Te,Ee.sideBarBorderColor,Ee.sideMenubackgroundColor))("opened",!Ee.isMobile()),m.xp6(3),m.Q6J("sideNav",Q),m.xp6(1),m.Q6J("ngStyle",m.VKq(21,pe,Ee.contentBackgroundColor)),m.xp6(1),m.Q6J("ngStyle",m.VKq(23,Le,Ee.contentInnerMinHeight))}}function W(V,ee){1&V&&m._UZ(0,"perun-web-apps-login-screen-base",12),2&V&&m.Q6J("application","admin-gui")}let F=(()=>{class V{constructor(Q,Ee,ge,ve,De,he,Ye,Be){this.cache=Q,this.store=Ee,this.http=ge,this.dialog=ve,this.router=De,this.initAuth=he,this.authService=Ye,this.cd=Be,this.otherApp=L.p.Profile,this.sidebarMode="side",this.theme=this.store.getProperty("theme"),this.navBackgroundColor=this.theme.nav_bg_color,this.sideBarBorderColor=this.theme.sidemenu_border_color,this.contentBackgroundColor=this.theme.content_bg_color,this.sideMenubackgroundColor=this.theme.sidemenu_bg_color,this.displayWarning=this.store.getProperty("display_warning"),this.warningMessage=this.store.getProperty("warning_message"),this.version=p(4147).i8,this.contentInnerMinHeight=this.displayWarning?"calc(100vh - 112px)":"calc(100vh - 64px)",this.cache.init(),this.getScreenSize()}getScreenSize(){this.sidebarMode=this.isMobile()?"over":"side",this.lastScreenWidth=window.innerWidth}isLoggedIn(){return!this.authService.isLoggedIn()&&!this.initAuth.isServiceAccess()}isMobile(){return window.innerWidth<=V.minWidth}ngOnInit(){this.isLoginScreenShow=this.initAuth.isLoginScreenShown(),this.isServiceAccess=this.initAuth.isServiceAccessLoginScreenShown(),sessionStorage.removeItem("baLogout"),null===sessionStorage.getItem("initPage")&&(sessionStorage.setItem("initPage",location.pathname),sessionStorage.setItem("onInitPage","true")),this.store.setInitialPageId(1),this.principal=this.store.getPerunPrincipal(),this.loadAppVersion(),(0,A.F)(3e4).subscribe(()=>{this.loadAppVersion()}),this.router.events.pipe((0,w.h)(Q=>Q instanceof B.OD)).subscribe(Q=>{this.updateInitAccessedPage(Q)})}getTopGap(){return this.displayWarning?112:64}getSideNavMarginTop(){return this.displayWarning?"112px":"64px"}getSideNavMinHeight(){return this.displayWarning?"calc(100vh - 112px)":"calc(100vh - 64px)"}getNavMenuTop(){return this.displayWarning?"48px":"0"}ngAfterViewInit(){const Q=this.footer?.nativeElement?.offsetHeight?.toString()??"0";this.contentInnerMinHeight=this.displayWarning?"calc(100vh - "+Q+"px - 112px)":"calc(100vh - "+Q+"px - 64px)",this.cd.detectChanges()}updateInitAccessedPage(Q){Q.url===sessionStorage.getItem("initPage")?("imperative"===Q.navigationTrigger&&Q.id!==this.store.getInitialPageId()&&sessionStorage.setItem("onInitPage","false"),"popstate"===Q.navigationTrigger&&(Q.restoredState.navigationId===this.store.getInitialPageId()?(sessionStorage.setItem("onInitPage","true"),this.store.setInitialPageId(Q.id)):sessionStorage.setItem("onInitPage","false"))):sessionStorage.setItem("onInitPage","false")}loadAppVersion(){const Q=new C.WM({"Cache-Control":"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"});this.http.get("/assets/config/version.json",{headers:Q}).subscribe(Ee=>{const ge=Ee.version;if(ge)if(this.version&&"SNAPSHOT"!==ge&&this.version!==ge){const ve=(0,M.kZ)();this.dialog.open(R,ve)}else this.version=ge})}}return V.minWidth=992,V.\u0275fac=function(Q){return new(Q||V)(m.Y36(O),m.Y36(e.d6),m.Y36(C.eN),m.Y36(b.uw),m.Y36(B.F0),m.Y36(e.v0),m.Y36(e.e8),m.Y36(m.sBO))},V.\u0275cmp=m.Xpm({type:V,selectors:[["app-root"]],viewQuery:function(Q,Ee){if(1&Q&&m.Gf(q,5),2&Q){let ge;m.iGM(ge=m.CRH())&&(Ee.footer=ge.first)}},hostBindings:function(Q,Ee){1&Q&&m.NdJ("resize",function(ve){return Ee.getScreenSize(ve)},!1,m.Jf7)},decls:4,vars:4,consts:[["class","beta-warning",4,"ngIf"],[3,"displayWarning"],[3,"ngIf"],[1,"beta-warning"],["id","nav-menu",1,"mat-elevation-z3",3,"ngStyle","otherApp","showNotifications","sidenavToggle"],["autosize","true",3,"ngStyle"],[3,"fixedInViewport","mode","fixedTopGap","ngStyle","opened"],["sidenav",""],[3,"sideNav"],["id","content-inner",3,"ngStyle"],["id","content-wrap",3,"ngStyle"],["footer",""],[3,"application"]],template:function(Q,Ee){1&Q&&(m.YNc(0,te,4,1,"div",0),m._UZ(1,"perun-web-apps-notificator",1),m.YNc(2,T,12,25,"ng-template",2),m.YNc(3,W,1,1,"ng-template",2)),2&Q&&(m.Q6J("ngIf",Ee.displayWarning),m.xp6(1),m.Q6J("displayWarning",Ee.displayWarning),m.xp6(1),m.Q6J("ngIf",!Ee.isLoginScreenShow&&!Ee.isServiceAccess&&!Ee.isLoggedIn()),m.xp6(1),m.Q6J("ngIf",Ee.isLoginScreenShow||Ee.isServiceAccess||Ee.isLoggedIn()))},styles:["#content-inner[_ngcontent-%COMP%]{position:relative}#content-wrap[_ngcontent-%COMP%]{padding-bottom:25px;padding-top:10px}.beta-warning[_ngcontent-%COMP%]{overflow:hidden;height:48px;position:fixed;z-index:999;top:0;background-color:#ffbfc5;width:100%;color:#d32f2f;text-align:center;font-weight:500;padding:6px;line-height:36px;font-size:1rem}ng-scrollbar[_ngcontent-%COMP%]{--scrollbar-thumb-color: #6a6a6a;--scrollbar-thumb-hover-color: lightgrey}"]}),V})()},77968:(Xe,ue,p)=>{"use strict";p.d(ue,{D:()=>A});var e=p(94650);let A=(()=>{class C{constructor(){this.accessItemsChange=new e.vpe,this.facilityItemsChange=new e.vpe,this.adminItemsChange=new e.vpe,this.userItemsChange=new e.vpe,this.resetChange=new e.vpe,this.homeItemsChange=new e.vpe}setHomeItems(m){this.homeItemsChange.emit(m)}setAccessMenuItems(m){this.accessItemsChange.emit(m)}setFacilityMenuItems(m){this.facilityItemsChange.emit(m)}setAdminItems(m){this.adminItemsChange.emit(m)}setUserItems(m){this.userItemsChange.emit(m)}reset(){this.resetChange.emit()}}return C.\u0275fac=function(m){return new(m||C)},C.\u0275prov=e.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})()},37380:(Xe,ue,p)=>{"use strict";p.d(ue,{o:()=>Te});var e=p(61744),A=p(10036),C=p(81591),M=p(94650),m=p(36895),b=p(3238),D=p(59549),v=p(84385),R=p(51572),B=p(25788),w=p(96214),L=p(7434),O=p(89383);function q(pe,Le){if(1&pe&&(M.TgZ(0,"mat-option",9),M._uU(1),M.qZA()),2&pe){const T=Le.$implicit;M.Q6J("value",T.id),M.xp6(1),M.hij(" ",T.name," ")}}function te(pe,Le){1&pe&&M._UZ(0,"mat-spinner",10)}const z=function(){return["id","vo","name","description"]};function ie(pe,Le){if(1&pe&&M._UZ(0,"perun-web-apps-groups-list",11),2&pe){const T=M.oxw();M.Q6J("displayedColumns",M.DdM(6,z))("groups",T.groupsToShow)("disableMembers",!1)("filter",T.filterValue)("groupsToDisableRouting",T.groupsWithoutRouteAuth)("tableId",T.tableId)}}let Te=(()=>{class pe{constructor(T,W,F){this.facilityManager=T,this.authResolver=W,this.entityStorageService=F,this.groups=[],this.filterValue="",this.selected="all",this.groupsToShow=this.groups,this.tableId=A.Aj,this.groupsWithoutRouteAuth=new Set}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.facilityManager.getAllowedVos(this.facility.id).subscribe(T=>{this.vos=T,this.refreshTable()})}showGroup(){this.groupsToShow="all"!==this.selected?this.groups.filter(T=>T.voId===parseInt(this.selected,10)):this.groups}refreshTable(){this.loading=!0,this.groups=[],this.facilityManager.getAllowedGroups(this.facility.id).subscribe(T=>{this.groups=this.groups.concat(T),this.groupsToShow=this.groups,this.setAuthRights(T),this.loading=!1}),0===this.vos.length&&(this.loading=!1)}setAuthRights(T){T.forEach(W=>{this.authResolver.isAuthorized("getGroupById_int_policy",[W])||this.groupsWithoutRouteAuth.add(W.id)})}applyFilter(T){this.filterValue=T}}return pe.id="FacilityAllowedGroupsComponent",pe.\u0275fac=function(T){return new(T||pe)(M.Y36(e.IQ),M.Y36(C.x4),M.Y36(C.fb))},pe.\u0275cmp=M.Xpm({type:pe,selectors:[["app-facility-allowed-groups"]],hostVars:2,hostBindings:function(T,W){2&T&&M.ekj("router-component",W.true)},inputs:{groups:"groups"},decls:17,vars:14,consts:[[1,"page-subtitle"],[3,"refresh"],[1,"mr-2"],[3,"value","selectionChange","valueChange"],["value","all"],[3,"value",4,"ngFor","ngForOf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"displayedColumns","groups","disableMembers","filter","groupsToDisableRouting","tableId",4,"ngIf"],[3,"value"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","groups","disableMembers","filter","groupsToDisableRouting","tableId"]],template:function(T,W){1&T&&(M.TgZ(0,"div")(1,"h1",0),M._uU(2),M.ALo(3,"translate"),M.qZA(),M.TgZ(4,"perun-web-apps-refresh-button",1),M.NdJ("refresh",function(){return W.refreshTable()}),M.qZA(),M.TgZ(5,"mat-form-field",2)(6,"mat-label"),M._uU(7),M.ALo(8,"translate"),M.qZA(),M.TgZ(9,"mat-select",3),M.NdJ("selectionChange",function(){return W.showGroup()})("valueChange",function(V){return W.selected=V}),M.TgZ(10,"mat-option",4),M._uU(11),M.ALo(12,"translate"),M.qZA(),M.YNc(13,q,2,2,"mat-option",5),M.qZA()(),M.TgZ(14,"perun-web-apps-immediate-filter",6),M.NdJ("filter",function(V){return W.applyFilter(V)}),M.qZA(),M.YNc(15,te,1,0,"mat-spinner",7),M.YNc(16,ie,1,7,"perun-web-apps-groups-list",8),M.qZA()),2&T&&(M.xp6(2),M.Oqu(M.lcZ(3,8,"MENU_ITEMS.FACILITY.ALLOWED_GROUPS")),M.xp6(5),M.Oqu(M.lcZ(8,10,"FACILITY_DETAIL.ALLOWED_GROUPS.SHOW_VOS_GROUPS")),M.xp6(2),M.Q6J("value",W.selected),M.xp6(2),M.Oqu(M.lcZ(12,12,"FACILITY_DETAIL.ALLOWED_GROUPS.ALL")),M.xp6(2),M.Q6J("ngForOf",W.vos),M.xp6(1),M.Q6J("placeholder","FACILITY_DETAIL.ALLOWED_GROUPS.FILTER"),M.xp6(1),M.Q6J("ngIf",W.loading),M.xp6(1),M.Q6J("ngIf",!W.loading))},dependencies:[m.sg,m.O5,b.ey,D.KE,D.hX,v.gD,R.Ou,B.W,w.t,L.L,O.X$]}),pe})()},25610:(Xe,ue,p)=>{"use strict";p.d(ue,{_:()=>ve});var e=p(10036),A=p(61744),C=p(81591),M=p(64080),m=p(24006),b=p(94650),D=p(36895),v=p(3238),R=p(59549),B=p(84385),w=p(51572),L=p(90455),O=p(96214),q=p(62707),te=p(45703),z=p(64901),ie=p(11447),Te=p(30540),pe=p(97392),Le=p(4859),T=p(89383);let W=(()=>{class De{constructor(){this.changeAdvancedFilter=new b.vpe,this.clearFilters=new b.vpe}ngOnInit(){this.changeAdvancedFilter.emit(this.advancedFilter)}toggleAdvancedFilter(){this.advancedFilter=!this.advancedFilter,this.changeAdvancedFilter.emit(this.advancedFilter)}}return De.\u0275fac=function(Ye){return new(Ye||De)},De.\u0275cmp=b.Xpm({type:De,selectors:[["perun-web-apps-advanced-filter"]],inputs:{filtersCount:"filtersCount",advancedFilter:"advancedFilter"},outputs:{changeAdvancedFilter:"changeAdvancedFilter",clearFilters:"clearFilters"},decls:12,vars:11,consts:[["mat-stroked-button","",3,"click"]],template:function(Ye,Be){1&Ye&&(b.TgZ(0,"button",0),b.NdJ("click",function(){return Be.toggleAdvancedFilter()}),b.TgZ(1,"mat-icon"),b._uU(2,"filter_list"),b.qZA(),b._uU(3),b.ALo(4,"translate"),b.TgZ(5,"mat-icon"),b._uU(6),b.qZA()(),b.TgZ(7,"button",0),b.NdJ("click",function(){return Be.clearFilters.emit()}),b.TgZ(8,"mat-icon"),b._uU(9,"filter_list_off"),b.qZA(),b._uU(10),b.ALo(11,"translate"),b.qZA()),2&Ye&&(b.Gre("mr-2 ",Be.filtersCount?"grey":"no-color",""),b.xp6(3),b.AsE(" ",b.lcZ(4,7,"SHARED_LIB.PERUN.COMPONENTS.ADVANCED_FILTER.FILTERS")," ",Be.filtersCount?"("+Be.filtersCount+")":null," "),b.xp6(3),b.Oqu(Be.advancedFilter?"arrow_drop_up":"arrow_drop_down"),b.xp6(4),b.hij(" ",b.lcZ(11,9,"SHARED_LIB.PERUN.COMPONENTS.ADVANCED_FILTER.CLEAR_FILTERS"),"\n"))},dependencies:[pe.Hw,Le.lW,T.X$],styles:[".grey[_ngcontent-%COMP%]{color:#fff;background-color:gray}.no-color[_ngcontent-%COMP%]{color:#000;background-color:transparent}"]}),De})();function F(De,he){if(1&De&&(b.TgZ(0,"mat-option",19),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&De){const Ye=he.$implicit;b.Q6J("value",Ye),b.xp6(1),b.Oqu(b.lcZ(2,2,"CONSENTS.STATUS_"+Ye))}}function V(De,he){if(1&De){const Ye=b.EpF();b.TgZ(0,"mat-form-field",16)(1,"mat-label"),b._uU(2),b.ALo(3,"translate"),b.qZA(),b.TgZ(4,"mat-select",17),b.NdJ("closed",function(){b.CHM(Ye);const se=b.oxw(2);return b.KtG(se.consentStatusSelected())}),b.TgZ(5,"mat-select-trigger"),b._uU(6),b.qZA(),b.YNc(7,F,3,4,"mat-option",18),b.qZA()()}if(2&De){const Ye=b.oxw(2);b.xp6(2),b.Oqu(b.lcZ(3,4,"CONSENTS.STATUS")),b.xp6(2),b.Q6J("formControl",Ye.statuses),b.xp6(2),b.hij(" ",Ye.displaySelectedStatuses()," "),b.xp6(1),b.Q6J("ngForOf",Ye.consentStatusesList)}}function ee(De,he){if(1&De){const Ye=b.EpF();b.TgZ(0,"div",8)(1,"div",9)(2,"mat-slide-toggle",10),b.NdJ("ngModelChange",function(se){b.CHM(Ye);const le=b.oxw();return b.KtG(le.allowed=se)})("change",function(){b.CHM(Ye);const se=b.oxw();return b.KtG(se.changeFilter())}),b._uU(3),b.ALo(4,"translate"),b.qZA(),b.TgZ(5,"span",11),b._uU(6),b.ALo(7,"translate"),b.qZA()(),b.TgZ(8,"div",1)(9,"perun-web-apps-vo-search-select",12),b.NdJ("voSelected",function(se){b.CHM(Ye);const le=b.oxw();return b.KtG(le.voSelected(se))}),b.qZA(),b.TgZ(10,"perun-web-apps-resource-search-select",13),b.NdJ("resourceSelected",function(se){b.CHM(Ye);const le=b.oxw();return b.KtG(le.resourceSelected(se))}),b.qZA(),b.TgZ(11,"perun-web-apps-service-search-select",14),b.NdJ("serviceSelected",function(se){b.CHM(Ye);const le=b.oxw();return b.KtG(le.serviceSelected(se))}),b.qZA(),b.YNc(12,V,8,6,"mat-form-field",15),b.qZA()()}if(2&De){const Ye=b.oxw();b.xp6(2),b.Q6J("ngModel",Ye.allowed),b.xp6(1),b.hij(" ",b.lcZ(4,11,"FACILITY_DETAIL.ALLOWED_USERS.FILTER_ALLOWED")," "),b.xp6(3),b.Oqu(b.lcZ(7,13,Ye.toggle_messages[Ye.allowed?1:0])),b.xp6(3),b.Q6J("vos",Ye.vos)("vo",Ye.selectedVo),b.xp6(1),b.Q6J("resources",Ye.filteredResources)("displayStatus",!1)("resource",Ye.selectedResource),b.xp6(1),b.Q6J("services",Ye.filteredServices)("service",Ye.selectedService),b.xp6(1),b.Q6J("ngIf",Ye.globalForceConsents&&Ye.facilityForceConsents)}}function Q(De,he){1&De&&b._UZ(0,"mat-spinner",20)}const Ee=function(){return["id","name","email","logins","organization"]};function ge(De,he){if(1&De&&b._UZ(0,"perun-web-apps-users-dynamic-list",21),2&De){const Ye=b.oxw();b.Q6J("attrNames",Ye.attributes)("disableRouting",!Ye.routeAuth)("displayedColumns",b.DdM(12,Ee))("onlyAllowed",Ye.allowed)("facilityId",Ye.facility.id)("searchString",Ye.filterValue)("resourceId",-1===Ye.selectedResource.id?null:Ye.selectedResource.id)("serviceId",-1===Ye.selectedService.id?null:Ye.selectedService.id)("tableId",Ye.tableId)("voId",-1===Ye.selectedVo.id?null:Ye.selectedVo.id)("consentStatuses",Ye.selectedConsentStatuses)("includeConsents",Ye.globalForceConsents&&Ye.facilityForceConsents)}}let ve=(()=>{class De{constructor(Ye,Be,se,le,N,k,be,Z){this.facilityService=Ye,this.serviceService=Be,this.resourceService=se,this.authResolver=le,this.storeService=N,this.entityStorageService=k,this.consentService=be,this.translate=Z,this.loading=!1,this.filterValue="",this.attributes=[],this.allowed=!0,this.emptyResource={id:-1,beanName:"Resource",name:"No filter"},this.resources=[this.emptyResource],this.filteredResources=[this.emptyResource],this.selectedResource=this.emptyResource,this.emptyVo={id:-1,beanName:"Vo",name:"No filter"},this.vos=[this.emptyVo],this.selectedVo=this.emptyVo,this.emptyService={id:-1,beanName:"Service",name:"No filter"},this.services=[this.emptyService],this.filteredServices=[this.emptyService],this.selectedService=this.emptyService,this.consentStatusesList=["UNSIGNED","GRANTED","REVOKED"],this.selectedConsentStatuses=[],this.resourceAssignedServices=new Map,this.tableId=e.z6,this.toggle_messages=["FACILITY_DETAIL.ALLOWED_USERS.FILTER_ASSIGNED_MSG","FACILITY_DETAIL.ALLOWED_USERS.FILTER_ALLOWED_MSG"],this.advancedFilter=!1}ngOnInit(){this.loading=!0,this.statuses=new m.NI(this.selectedConsentStatuses),this.attributes=[M.r.USER_DEF_ORGANIZATION,M.r.USER_DEF_PREFERRED_MAIL],this.attributes=this.attributes.concat(this.storeService.getLoginAttributeNames()),this.facility=this.entityStorageService.getEntity(),this.globalForceConsents=this.storeService.getProperty("enforce_consents"),this.consentService.getConsentHubByFacility(this.facility.id).subscribe(Ye=>{this.facilityForceConsents=Ye.enforceConsents}),this.routeAuth=this.authResolver.isPerunAdminOrObserver(),this.changeFilter(),this.refreshPage()}changeFilter(){this.filtersCount=this.allowed?1:0,-1!==this.selectedVo.id&&(this.filtersCount+=1),-1!==this.selectedResource.id&&(this.filtersCount+=1),-1!==this.selectedService.id&&(this.filtersCount+=1),this.selectedConsentStatuses.length>0&&(this.filtersCount+=1)}clearFilters(){this.allowed=!1,this.selectedVo=this.emptyVo,this.selectedResource=this.emptyResource,this.selectedService=this.emptyService,this.selectedConsentStatuses=[],this.statuses.setValue(this.selectedConsentStatuses),this.filtersCount=0}refreshPage(){this.loading=!0,this.facilityService.getAssignedResourcesForFacility(this.facility.id).subscribe(Ye=>{this.resources=[this.emptyResource].concat(Ye),this.filteredResources=this.resources,this.facilityService.getAllowedVos(this.facility.id).subscribe(Be=>{this.vos=[this.emptyVo].concat(Be),this.serviceService.getAssignedServices(this.facility.id).subscribe(se=>{this.services=[this.emptyService].concat(se),this.filteredServices=this.services,this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)},()=>this.loading=!1)}applyFilter(Ye){this.filterValue=Ye}voSelected(Ye){this.selectedVo.id!==Ye.id&&(this.selectedVo=Ye,this.selectedResource=this.emptyResource,this.selectedService=this.emptyService,-1===Ye.id?(this.filteredResources=this.resources,this.filteredServices=this.services):(this.filteredResources=this.resources.filter(Be=>Be.voId===Ye.id),this.serviceService.getAssignedServicesVo(this.facility.id,Ye.id).subscribe(Be=>{this.filteredServices=[this.emptyService].concat(Be),this.loading=!1},()=>this.loading=!1),this.filteredResources=[this.emptyResource].concat(this.filteredResources)),this.changeFilter())}resourceSelected(Ye){this.selectedResource.id!==Ye.id&&(this.selectedResource=Ye,this.selectedService=this.emptyService,-1===Ye.id?this.filteredServices=this.services:this.resourceService.getAssignedServicesToResource(Ye.id).subscribe(Be=>{this.filteredServices=[this.emptyService].concat(Be),this.loading=!1},()=>this.loading=!1),this.changeFilter())}serviceSelected(Ye){this.selectedService=Ye,this.changeFilter()}consentStatusSelected(){this.selectedConsentStatuses=this.statuses.value,this.changeFilter()}displaySelectedStatuses(){if(this.selectedConsentStatuses.length===this.consentStatusesList.length)return"ALL";const Ye=this.statuses.value;return Ye?`${this.translate.instant("CONSENTS.STATUS_"+Ye[0])} ${Ye.length>1?"(+"+(Ye.length-1).toString()+" "+(2===Ye.length?"other)":"others)"):""}`:""}}return De.id="FacilityAllowedUsersComponent",De.\u0275fac=function(Ye){return new(Ye||De)(b.Y36(A.IQ),b.Y36(A.KK),b.Y36(A.xk),b.Y36(C.x4),b.Y36(C.d6),b.Y36(C.fb),b.Y36(A.WY),b.Y36(C.Te))},De.\u0275cmp=b.Xpm({type:De,selectors:[["app-facility-allowed-users"]],decls:11,vars:9,consts:[[1,"page-subtitle"],[1,"filters"],[1,"mr-2",3,"refresh"],[1,"mr-2","filter",3,"placeholder","filter"],[3,"advancedFilter","filtersCount","changeAdvancedFilter","clearFilters"],["class","advanced-filter",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"attrNames","disableRouting","displayedColumns","onlyAllowed","facilityId","searchString","resourceId","serviceId","tableId","voId","consentStatuses","includeConsents",4,"ngIf"],[1,"advanced-filter"],[1,"toggle","filters"],["labelPosition","before",1,"mr-2",3,"ngModel","ngModelChange","change"],[1,"text-muted"],[1,"search-select",3,"vos","vo","voSelected"],[1,"search-select",3,"resources","displayStatus","resource","resourceSelected"],[1,"search-select",3,"services","service","serviceSelected"],["class","search-select",4,"ngIf"],[1,"search-select"],["multiple","",3,"formControl","closed"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"ml-auto","mr-auto"],[3,"attrNames","disableRouting","displayedColumns","onlyAllowed","facilityId","searchString","resourceId","serviceId","tableId","voId","consentStatuses","includeConsents"]],template:function(Ye,Be){1&Ye&&(b.TgZ(0,"div")(1,"h1",0),b._uU(2),b.ALo(3,"translate"),b.qZA(),b.TgZ(4,"div",1)(5,"perun-web-apps-refresh-button",2),b.NdJ("refresh",function(){return Be.refreshPage()}),b.qZA(),b.TgZ(6,"perun-web-apps-debounce-filter",3),b.NdJ("filter",function(le){return Be.applyFilter(le)}),b.qZA(),b.TgZ(7,"perun-web-apps-advanced-filter",4),b.NdJ("changeAdvancedFilter",function(le){return Be.advancedFilter=le})("clearFilters",function(){return Be.clearFilters()}),b.qZA()(),b.YNc(8,ee,13,15,"div",5),b.YNc(9,Q,1,0,"mat-spinner",6),b.YNc(10,ge,1,13,"perun-web-apps-users-dynamic-list",7),b.qZA()),2&Ye&&(b.xp6(2),b.Oqu(b.lcZ(3,7,"FACILITY_DETAIL.ALLOWED_USERS.TITLE")),b.xp6(4),b.Q6J("placeholder","FACILITY_DETAIL.ALLOWED_USERS.FILTER"),b.xp6(1),b.Q6J("advancedFilter",Be.advancedFilter)("filtersCount",Be.filtersCount),b.xp6(1),b.Q6J("ngIf",Be.advancedFilter),b.xp6(1),b.Q6J("ngIf",Be.loading),b.xp6(1),b.Q6J("ngIf",!Be.loading))},dependencies:[D.sg,D.O5,v.ey,R.KE,R.hX,m.JJ,m.oH,m.On,B.gD,B.$L,w.Ou,L.Rr,O.t,q.M,te.L,z.P,ie.M,Te.J,W,T.X$],styles:[".filters[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:baseline}.filter[_ngcontent-%COMP%]{min-width:350px}.search-select[_ngcontent-%COMP%]{width:32%;margin-right:20px;margin-top:30px}.toggle[_ngcontent-%COMP%]{display:flex;flex-direction:column}.advanced-filter[_ngcontent-%COMP%]{border:1px solid lightgray;padding:15px}"]}),De})()},34904:(Xe,ue,p)=>{"use strict";p.d(ue,{f:()=>ge});var e=p(95017),A=p(533),C=p(61744),M=p(24006),m=p(65412),b=p(81591),D=p(94650),v=p(89383),R=p(36895),B=p(59549),w=p(284),L=p(4859),O=p(51572),q=p(62707);function te(ve,De){1&ve&&D._UZ(0,"mat-spinner",5)}function z(ve,De){if(1&ve){const he=D.EpF();D.TgZ(0,"div",6)(1,"perun-web-apps-vo-search-select",7),D.NdJ("voSelected",function(Be){D.CHM(he);const se=D.oxw();return D.KtG(se.selectedVo=Be)}),D.qZA(),D.TgZ(2,"mat-form-field"),D._UZ(3,"input",8),D.ALo(4,"translate"),D.TgZ(5,"mat-error"),D._uU(6),D.ALo(7,"translate"),D.qZA()(),D.TgZ(8,"mat-form-field"),D._UZ(9,"input",9),D.ALo(10,"translate"),D.TgZ(11,"mat-error"),D._uU(12),D.ALo(13,"translate"),D.qZA()()()}if(2&ve){const he=D.oxw();D.xp6(1),D.Q6J("vos",he.vos),D.xp6(2),D.s9C("placeholder",D.lcZ(4,7,"DIALOGS.CREATE_RESOURCE.NAME")),D.Q6J("formControl",he.nameCtrl),D.xp6(3),D.hij(" ",D.lcZ(7,9,"DIALOGS.CREATE_RESOURCE.INCORRECT_NAME")," "),D.xp6(3),D.s9C("placeholder",D.lcZ(10,11,"DIALOGS.CREATE_RESOURCE.DESCRIPTION")),D.Q6J("formControl",he.descriptionCtrl),D.xp6(3),D.hij(" ",D.lcZ(13,13,"DIALOGS.CREATE_RESOURCE.FILL_DESCRIPTION")," ")}}let ie=(()=>{class ve{constructor(he,Ye,Be,se,le,N){this.dialogRef=he,this.data=Ye,this.notificator=Be,this.voService=se,this.translate=le,this.resourcesManager=N,this.vos=[],this.selectedVo=null,le.get("DIALOGS.CREATE_RESOURCE.SUCCESS").subscribe(k=>this.successMessage=k)}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.voService.getAllVos().subscribe(he=>{this.vos=he,this.loading=!1},()=>this.loading=!1),this.nameCtrl=new M.p4(null,[M.kI.required,M.kI.pattern(".*[\\S]+.*")]),this.descriptionCtrl=new M.p4("")}onSubmit(){this.loading=!0,this.resourcesManager.createResource(this.selectedVo.id,this.data.facilityId,this.nameCtrl.value,this.descriptionCtrl.value).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}}return ve.\u0275fac=function(he){return new(he||ve)(D.Y36(m.so),D.Y36(m.WI),D.Y36(b.V6),D.Y36(C.YF),D.Y36(v.sK),D.Y36(C.xk))},ve.\u0275cmp=D.Xpm({type:ve,selectors:[["app-create-resource-dialog"]],decls:10,vars:12,consts:[["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["data-cy","create-resource-dialog-button","color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["data-cy","create-resource-select-vo",3,"vos","voSelected"],["matInput","","data-cy","create-resource-name-input","required","",3,"formControl","placeholder"],["matInput","",3,"formControl","placeholder"]],template:function(he,Ye){1&he&&(D.TgZ(0,"div"),D.YNc(1,te,1,0,"mat-spinner",0),D.YNc(2,z,14,15,"div",1),D.TgZ(3,"div",2)(4,"button",3),D.NdJ("click",function(){return Ye.onCancel()}),D._uU(5),D.ALo(6,"translate"),D.qZA(),D.TgZ(7,"button",4),D.NdJ("click",function(){return Ye.onSubmit()}),D._uU(8),D.ALo(9,"translate"),D.qZA()()()),2&he&&(D.Tol(Ye.theme),D.xp6(1),D.Q6J("ngIf",Ye.loading),D.xp6(1),D.Q6J("ngIf",!Ye.loading),D.xp6(3),D.hij(" ",D.lcZ(6,8,"DIALOGS.CREATE_RESOURCE.CANCEL")," "),D.xp6(2),D.Q6J("disabled",Ye.nameCtrl.invalid||Ye.descriptionCtrl.invalid||null===Ye.selectedVo||Ye.loading),D.xp6(1),D.hij(" ",D.lcZ(9,10,"DIALOGS.CREATE_RESOURCE.CREATE")," "))},dependencies:[R.O5,B.TO,B.KE,w.Nt,M.Fj,M.JJ,M.Q7,M.oH,L.lW,m.xY,m.H8,O.Ou,q.M,v.X$],styles:[".long-input[_ngcontent-%COMP%]{width:100%}"]}),ve})();var Te=p(10036),pe=p(9244),Le=p(96214),T=p(7434),W=p(62109),F=p(30540);function V(ve,De){if(1&ve){const he=D.EpF();D.TgZ(0,"button",9),D.NdJ("click",function(){D.CHM(he);const Be=D.oxw();return D.KtG(Be.createResource())}),D._uU(1),D.ALo(2,"translate"),D.qZA()}2&ve&&(D.xp6(1),D.hij(" ",D.lcZ(2,1,"FACILITY_DETAIL.RESOURCES.CREATE")," "))}function ee(ve,De){if(1&ve){const he=D.EpF();D.TgZ(0,"button",10),D.NdJ("click",function(){D.CHM(he);const Be=D.oxw();return D.KtG(Be.removeResource())}),D._uU(1),D.ALo(2,"translate"),D.qZA()}if(2&ve){const he=D.oxw();D.Q6J("disabled",0===he.selected.selected.length),D.xp6(1),D.hij(" ",D.lcZ(2,2,"FACILITY_DETAIL.RESOURCES.DELETE")," ")}}function Q(ve,De){1&ve&&D._UZ(0,"mat-spinner",11)}function Ee(ve,De){if(1&ve&&D._UZ(0,"perun-web-apps-resources-list",12),2&ve){const he=D.oxw();D.Q6J("tableId",he.tableId)("filterValue",he.filterValue)("resources",he.resources)("selection",he.selected)("disableRouting",!he.routeAuth)("displayedColumns",he.displayedColumns)}}let ge=(()=>{class ve{constructor(he,Ye,Be,se,le,N){this.dialog=he,this.facilitiesManager=Ye,this.servicesManager=Be,this.authResolver=se,this.entityStorageService=le,this.cd=N,this.resources=[],this.selected=new e.Ov(!0,[]),this.emptyService={id:-1,beanName:"Service",name:"All"},this.services=[this.emptyService],this.selectedService=this.emptyService,this.filterValue="",this.tableId=Te.CP,this.displayedColumns=["id","vo","facility","description"]}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.setAuthRights(),this.servicesManager.getAssignedServices(this.facility.id).subscribe(he=>{this.services=[this.emptyService].concat(he)}),this.loadResourcesForFacility()}ngAfterViewInit(){this.cd.detectChanges()}removeResource(){const he=(0,pe.kZ)();he.width="450px",he.data={theme:"facility-theme",resources:this.selected.selected},this.dialog.open(A.f,he).afterClosed().subscribe(Be=>{Be&&this.refreshTable()})}refreshTable(){this.loading=!0,-1===this.selectedService.id?this.loadResourcesForFacility():this.facilitiesManager.getAssignedRichResourcesForFacilityAndService(this.facility.id,this.selectedService.id).subscribe(he=>{this.resources=he,this.selected.clear(),this.setAuthRights(),this.loading=!1})}setAuthRights(){this.addAuth=this.authResolver.isAuthorized("createResource_Resource_Vo_Facility_policy",[this.facility]),this.removeAuth=this.authResolver.isAuthorized("deleteResource_Resource_policy",[this.facility]),this.displayedColumns=this.removeAuth?["select","id","name","vo","description"]:["id","name","vo","description"],0!==this.resources.length&&(this.routeAuth=this.authResolver.isAuthorized("getRichResourceById_int_policy",[this.facility,this.resources[0]]))}applyFilter(he){this.filterValue=he}createResource(){const he=(0,pe.kZ)();he.width="1350px",he.data={facilityId:this.facility.id,theme:"facility-theme"},this.dialog.open(ie,he).afterClosed().subscribe(Be=>{Be&&this.refreshTable()})}serviceSelected(he){this.selectedService=he,this.refreshTable()}loadResourcesForFacility(){this.facilitiesManager.getAssignedRichResourcesForFacility(this.facility.id).subscribe(he=>{this.resources=he,this.selected.clear(),this.setAuthRights(),this.loading=!1})}}return ve.id="FacilityResourcesComponent",ve.\u0275fac=function(he){return new(he||ve)(D.Y36(m.uw),D.Y36(C.IQ),D.Y36(C.KK),D.Y36(b.x4),D.Y36(b.fb),D.Y36(D.sBO))},ve.\u0275cmp=D.Xpm({type:ve,selectors:[["app-facility-resources"]],hostVars:2,hostBindings:function(he,Ye){2&he&&D.ekj("router-component",Ye.true)},decls:12,vars:10,consts:[[1,"page-subtitle"],[1,"align-elements"],[3,"refresh"],["mat-flat-button","","color","accent","data-cy","create-resource-button","class","mr-2 action-button",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2","data-cy","delete-resource-button",3,"disabled","click",4,"ngIf"],[1,"search-select","mr-2",3,"services","service","serviceSelected"],[1,"filter-field",3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"tableId","filterValue","resources","selection","disableRouting","displayedColumns",4,"ngIf"],["mat-flat-button","","color","accent","data-cy","create-resource-button",1,"mr-2","action-button",3,"click"],["mat-flat-button","","color","warn","data-cy","delete-resource-button",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"tableId","filterValue","resources","selection","disableRouting","displayedColumns"]],template:function(he,Ye){1&he&&(D.TgZ(0,"div")(1,"h1",0),D._uU(2),D.ALo(3,"translate"),D.qZA(),D.TgZ(4,"div",1)(5,"perun-web-apps-refresh-button",2),D.NdJ("refresh",function(){return Ye.refreshTable()}),D.qZA(),D.YNc(6,V,3,3,"button",3),D.YNc(7,ee,3,4,"button",4),D.TgZ(8,"perun-web-apps-service-search-select",5),D.NdJ("serviceSelected",function(se){return Ye.serviceSelected(se)}),D.qZA(),D.TgZ(9,"perun-web-apps-immediate-filter",6),D.NdJ("filter",function(se){return Ye.applyFilter(se)}),D.qZA()(),D.YNc(10,Q,1,0,"mat-spinner",7),D.YNc(11,Ee,1,6,"perun-web-apps-resources-list",8),D.qZA()),2&he&&(D.xp6(2),D.Oqu(D.lcZ(3,8,"FACILITY_DETAIL.RESOURCES.TITLE")),D.xp6(4),D.Q6J("ngIf",Ye.addAuth),D.xp6(1),D.Q6J("ngIf",Ye.removeAuth),D.xp6(1),D.Q6J("services",Ye.services)("service",Ye.selectedService),D.xp6(1),D.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),D.xp6(1),D.Q6J("ngIf",Ye.loading),D.xp6(1),D.Q6J("ngIf",!Ye.loading))},dependencies:[R.O5,L.lW,O.Ou,Le.t,T.L,W.C,F.J,v.X$],styles:[".search-select[_ngcontent-%COMP%]{min-width:325px}.filter-field[_ngcontent-%COMP%]{min-width:250px}.align-elements[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:baseline}"]}),ve})()},86353:(Xe,ue,p)=>{"use strict";p.d(ue,{P:()=>Be});var e=p(61744),A=p(9244),C=p(10036),M=p(95017),m=p(65412),b=p(81591),D=p(24006),v=p(94650),R=p(89383),B=p(94364),w=p(36895),L=p(3238),O=p(59549),q=p(284),te=p(4859),z=p(84385),ie=p(51572),Te=p(98380);function pe(se,le){1&se&&v._UZ(0,"mat-spinner",7)}function Le(se,le){if(1&se){const N=v.EpF();v.TgZ(0,"mat-option",16),v.NdJ("click",function(){const Z=v.CHM(N).$implicit,ce=v.oxw(2);return v.KtG(ce.srcFacility=Z)}),v._uU(1),v.qZA()}if(2&se){const N=le.$implicit;v.Q6J("value",N),v.xp6(1),v.hij(" ",N.name," ")}}function T(se,le){if(1&se){const N=v.EpF();v.TgZ(0,"div",8)(1,"mat-form-field"),v._UZ(2,"input",9),v.ALo(3,"translate"),v.TgZ(4,"mat-error"),v._uU(5),v.ALo(6,"translate"),v.qZA()(),v.TgZ(7,"mat-form-field"),v._UZ(8,"input",10),v.ALo(9,"translate"),v.qZA(),v.TgZ(10,"mat-form-field")(11,"mat-select",11),v.ALo(12,"translate"),v.TgZ(13,"mat-option",12),v.NdJ("click",function(){v.CHM(N);const be=v.oxw();return v.KtG(be.srcFacility=null)}),v._uU(14),v.ALo(15,"translate"),v.qZA(),v.YNc(16,Le,2,2,"mat-option",13),v.qZA()(),v.TgZ(17,"perun-web-apps-alert",14),v._UZ(18,"i",15),v.ALo(19,"translate"),v.qZA()()}if(2&se){const N=v.oxw();v.xp6(2),v.s9C("placeholder",v.lcZ(3,9,"DIALOGS.CREATE_FACILITY.NAME")),v.Q6J("formControl",N.nameControl),v.xp6(3),v.Oqu(v.lcZ(6,11,"DIALOGS.CREATE_FACILITY.REQUIRE_NAME")),v.xp6(3),v.s9C("placeholder",v.lcZ(9,13,"DIALOGS.CREATE_FACILITY.DESCRIPTION")),v.Q6J("formControl",N.descControl),v.xp6(3),v.s9C("placeholder",v.lcZ(12,15,"DIALOGS.CREATE_FACILITY.AS_COPY")),v.xp6(3),v.hij(" ",v.lcZ(15,17,"DIALOGS.CREATE_FACILITY.NO_COPY")," "),v.xp6(2),v.Q6J("ngForOf",N.facilities),v.xp6(2),v.Q6J("innerHTML",v.lcZ(19,19,"DIALOGS.CREATE_FACILITY.HINT"),v.oJD)}}let W=(()=>{class se{constructor(N,k,be,Z,ce,xe,ot){this.dialogRef=N,this.data=k,this.facilitiesManager=be,this.notificator=Z,this.translate=ce,this.router=xe,this.entityStorageService=ot,this.nameControl=new D.p4("",[D.kI.required]),this.descControl=new D.p4(""),this.srcFacility=null,this.loading=!1,this.configure=!1}ngOnInit(){this.theme=this.data.theme,this.loading=!0,this.facilitiesManager.getAllFacilities().subscribe(N=>{this.facilities=N,this.loading=!1},()=>this.loading=!1)}onCreate(N){this.loading=!0,this.configure=N,this.facilitiesManager.createFacility(this.nameControl.value,this.descControl.value).subscribe({next:k=>{this.entityStorageService.setEntity({id:k.id,beanName:k.beanName}),sessionStorage.setItem("newFacilityId",String(k.id)),null!==this.srcFacility?this.copyFacilitySettings(k.id):this.handleSuccess(k.id)},error:()=>this.loading=!1})}onCancel(){this.dialogRef.close(!1)}copyFacilitySettings(N){this.facilitiesManager.copyAttributes(this.srcFacility.id,N).subscribe(()=>{this.facilitiesManager.copyManagers(this.srcFacility.id,N).subscribe(()=>{this.facilitiesManager.copyOwners(this.srcFacility.id,N).subscribe(()=>{this.handleSuccess(N)},()=>this.loading=!1)},()=>this.loading=!1)},()=>this.loading=!1)}handleSuccess(N){this.notificator.showSuccess(this.translate.instant("DIALOGS.CREATE_FACILITY.SUCCESS")),this.configure&&this.router.navigate(["facilities",N.toString(),"configuration"],{queryParamsHandling:"preserve"}),this.dialogRef.close(!0)}}return se.\u0275fac=function(N){return new(N||se)(v.Y36(m.so),v.Y36(m.WI),v.Y36(e.IQ),v.Y36(b.V6),v.Y36(R.sK),v.Y36(B.F0),v.Y36(b.fb))},se.\u0275cmp=v.Xpm({type:se,selectors:[["app-create-facility-dialog"]],decls:16,vars:19,consts:[[1,"mat-dialog-title"],["class","mr-auto ml-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["data-cy","create-facility-button","color","accent","mat-flat-button","",1,"ml2",3,"disabled","click"],["color","accent","mat-flat-button","",1,"ml2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","","data-cy","facility-name-input",3,"formControl","placeholder"],["matInput","","data-cy","facility-description-input",3,"formControl","placeholder"],["disableOptionCentering","true",3,"placeholder"],[3,"click"],[3,"value","click",4,"ngFor","ngForOf"],["alert_type","info"],[3,"innerHTML"],[3,"value","click"]],template:function(N,k){1&N&&(v.TgZ(0,"div")(1,"h1",0),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.YNc(4,pe,1,0,"mat-spinner",1),v.YNc(5,T,20,21,"div",2),v.TgZ(6,"div",3)(7,"button",4),v.NdJ("click",function(){return k.onCancel()}),v._uU(8),v.ALo(9,"translate"),v.qZA(),v.TgZ(10,"button",5),v.NdJ("click",function(){return k.onCreate(!1)}),v._uU(11),v.ALo(12,"translate"),v.qZA(),v.TgZ(13,"button",6),v.NdJ("click",function(){return k.onCreate(!0)}),v._uU(14),v.ALo(15,"translate"),v.qZA()()()),2&N&&(v.Tol(k.theme),v.xp6(2),v.Oqu(v.lcZ(3,11,"DIALOGS.CREATE_FACILITY.TITLE")),v.xp6(2),v.Q6J("ngIf",k.loading),v.xp6(1),v.Q6J("ngIf",!k.loading),v.xp6(3),v.hij(" ",v.lcZ(9,13,"DIALOGS.CREATE_FACILITY.CANCEL")," "),v.xp6(2),v.Q6J("disabled",0===k.nameControl.value.trim().length||k.loading),v.xp6(1),v.hij(" ",v.lcZ(12,15,"DIALOGS.CREATE_FACILITY.CREATE")," "),v.xp6(2),v.Q6J("disabled",0===k.nameControl.value.trim().length||!!k.srcFacility||k.loading),v.xp6(1),v.hij(" ",v.lcZ(15,17,"DIALOGS.CREATE_FACILITY.CREATE_AND_CONFIGURE")," "))},dependencies:[w.sg,w.O5,L.ey,O.TO,O.KE,q.Nt,D.Fj,D.JJ,D.Q7,D.oH,te.lW,m.xY,m.H8,z.gD,ie.Ou,Te.w,R.X$]}),se})();var F=p(54037),V=p(77968),ee=p(97392),Q=p(96214),Ee=p(4235),ge=p(7434),ve=p(74010);function De(se,le){1&se&&v._UZ(0,"mat-spinner",9)}function he(se,le){if(1&se&&v._UZ(0,"perun-web-apps-facilities-list",10),2&se){const N=v.oxw();v.Q6J("tableId",N.tableId)("selection",N.selection)("filterValue",N.filterValue)("facilities",N.facilities)("recentIds",N.recentIds)}}const Ye=function(){return{color:"black"}};let Be=(()=>{class se{constructor(N,k,be){this.facilityManager=N,this.sideMenuService=k,this.dialog=be,this.facilities=[],this.recentIds=[],this.filterValue="",this.tableId=C.xt,this.selection=new M.Ov(!1,[])}ngOnInit(){this.refreshTable()}ngAfterViewChecked(){this.sideMenuService.setFacilityMenuItems([])}refreshTable(){this.loading=!0,this.facilityManager.getEnrichedFacilities().subscribe(N=>{this.selection.clear(),this.facilities=N,this.recentIds=(0,A.vL)("facilities"),this.loading=!1})}onCreate(){const N=(0,A.kZ)();N.width="800px",N.data={theme:"facility-theme"},this.dialog.open(W,N).afterClosed().subscribe(be=>{be&&(this.loading=!0,this.refreshTable())})}onDelete(){const N=(0,A.kZ)();N.width="500px",N.data={theme:"facility-theme",facility:this.selection.selected[0].facility},this.dialog.open(F.Y,N).afterClosed().subscribe(be=>{be&&this.refreshTable()})}applyFilter(N){this.filterValue=N}}return se.id="FacilitySelectPageComponent",se.\u0275fac=function(N){return new(N||se)(v.Y36(e.IQ),v.Y36(V.D),v.Y36(m.uw))},se.\u0275cmp=v.Xpm({type:se,selectors:[["app-facility-select-page"]],hostVars:2,hostBindings:function(N,k){2&N&&v.ekj("router-component",k.true)},decls:16,vars:16,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","facility-theme"],[1,"page-title","d-flex"],["svgIcon","perun-facility-black",1,"perun-icon","icon-scale",3,"ngStyle"],[3,"refresh"],["mat-flat-button","","data-cy","new-facility-button","color","accent",1,"action-button","mr-2",3,"click"],["mat-flat-button","","data-cy","delete-facility-button","color","warn",1,"mr-2",3,"disabled","click"],[3,"autoFocus","placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"tableId","selection","filterValue","facilities","recentIds",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"tableId","selection","filterValue","facilities","recentIds"]],template:function(N,k){1&N&&(v.TgZ(0,"div",0),v._UZ(1,"perun-web-apps-back-button"),v.TgZ(2,"h1",1),v._UZ(3,"mat-icon",2),v._uU(4),v.ALo(5,"translate"),v.qZA(),v.TgZ(6,"perun-web-apps-refresh-button",3),v.NdJ("refresh",function(){return k.refreshTable()}),v.qZA(),v.TgZ(7,"button",4),v.NdJ("click",function(){return k.onCreate()}),v._uU(8),v.ALo(9,"translate"),v.qZA(),v.TgZ(10,"button",5),v.NdJ("click",function(){return k.onDelete()}),v._uU(11),v.ALo(12,"translate"),v.qZA(),v.TgZ(13,"perun-web-apps-immediate-filter",6),v.NdJ("filter",function(Z){return k.applyFilter(Z)}),v.qZA(),v.YNc(14,De,1,0,"mat-spinner",7),v.YNc(15,he,1,5,"perun-web-apps-facilities-list",8),v.qZA()),2&N&&(v.xp6(3),v.Q6J("ngStyle",v.DdM(15,Ye)),v.xp6(1),v.hij(" ",v.lcZ(5,9,"FACILITY_MANAGEMENT.TITLE")," "),v.xp6(4),v.hij(" ",v.lcZ(9,11,"FACILITY_MANAGEMENT.CREATE")," "),v.xp6(2),v.Q6J("disabled",0===k.selection.selected.length),v.xp6(1),v.hij(" ",v.lcZ(12,13,"FACILITY_MANAGEMENT.DELETE")," "),v.xp6(2),v.Q6J("autoFocus",!0)("placeholder","FACILITY_MANAGEMENT.FILTER_PLACEHOLDER"),v.xp6(1),v.Q6J("ngIf",k.loading),v.xp6(1),v.Q6J("ngIf",!k.loading))},dependencies:[w.O5,w.PC,ee.Hw,te.lW,ie.Ou,Q.t,Ee.W,ge.L,ve.X,R.X$],styles:[".icon-scale[_ngcontent-%COMP%]{transform:scale(1.7);margin-left:.5rem;margin-top:-.4rem;margin-right:.9rem}"]}),se})()},39158:(Xe,ue,p)=>{"use strict";p.d(ue,{l:()=>w});var e=p(94650),A=p(45323),C=p(81591),M=p(36895),m=p(24006),b=p(10266),D=p(71948),v=p(74250),R=p(89383);function B(L,O){if(1&L){const q=e.EpF();e.TgZ(0,"div")(1,"perun-web-apps-user-search-select",6),e.NdJ("userSelected",function(z){e.CHM(q);const ie=e.oxw();return e.KtG(ie.selectSponsor(z))}),e.qZA()()}if(2&L){const q=e.oxw();e.xp6(1),e.Q6J("disableAutoSelect",!0)("users",q.voSponsors)}}let w=(()=>{class L{constructor(q){this.guiAuthResolver=q,this.voSponsors=[],this.sponsorTypeSelected=new e.vpe,this.sponsorSelected=new e.vpe,this.sponsorType="self",this.isSponsor=!1,this.isPerunAdmin=!1,this.selectedSponsor=null}ngOnInit(){this.isSponsor=this.guiAuthResolver.principalHasRole(A.u.SPONSOR,"Vo",this.voId),this.isPerunAdmin=this.guiAuthResolver.isPerunAdmin(),this.sponsorType=this.isSponsor?"self":"other",this.emitSponsorType()}emitSponsorType(){"self"===this.sponsorType&&this.selectSponsor(null),this.sponsorTypeSelected.emit(this.sponsorType)}selectSponsor(q){this.selectedSponsor=q,this.sponsorSelected.emit(q)}}return L.\u0275fac=function(q){return new(q||L)(e.Y36(C.x4))},L.\u0275cmp=e.Xpm({type:L,selectors:[["app-choose-sponsor"]],inputs:{voId:"voId",voSponsors:"voSponsors"},outputs:{sponsorTypeSelected:"sponsorTypeSelected",sponsorSelected:"sponsorSelected"},decls:16,vars:21,consts:[[1,"mt-4"],[1,"dialog-container",3,"ngModel","ngModelChange"],["matTooltipPosition","before",3,"matTooltip","matTooltipDisabled"],["value","self",3,"disabled","click"],["value","other",3,"disabled"],[4,"ngIf"],[3,"disableAutoSelect","users","userSelected"]],template:function(q,te){1&q&&(e.TgZ(0,"div",0)(1,"h6"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"mat-radio-group",1),e.NdJ("ngModelChange",function(ie){return te.sponsorType=ie})("ngModelChange",function(){return te.emitSponsorType()}),e.TgZ(5,"span",2),e.ALo(6,"translate"),e.TgZ(7,"mat-radio-button",3),e.NdJ("click",function(){return te.selectedSponsor=null}),e._uU(8),e.ALo(9,"translate"),e.qZA()(),e.TgZ(10,"span",2),e.ALo(11,"translate"),e.TgZ(12,"mat-radio-button",4),e._uU(13),e.ALo(14,"translate"),e.qZA()()(),e.YNc(15,B,2,2,"div",5),e.qZA()),2&q&&(e.xp6(2),e.Oqu(e.lcZ(3,11,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_SPONSOR")),e.xp6(2),e.Q6J("ngModel",te.sponsorType),e.xp6(1),e.s9C("matTooltip",e.lcZ(6,13,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_SELF_DISABLED")),e.Q6J("matTooltipDisabled",te.isSponsor),e.xp6(2),e.Q6J("disabled",!te.isSponsor),e.xp6(1),e.hij(" ",e.lcZ(9,15,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_SELF")," "),e.xp6(2),e.s9C("matTooltip",e.lcZ(11,17,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_OTHER_DISABLED")),e.Q6J("matTooltipDisabled",te.isPerunAdmin),e.xp6(2),e.Q6J("disabled",!te.isPerunAdmin),e.xp6(1),e.hij(" ",e.lcZ(14,19,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_OTHER")," "),e.xp6(2),e.Q6J("ngIf","other"===te.sponsorType))},dependencies:[M.O5,m.JJ,m.On,b.gM,D.VQ,D.U0,v.S,R.X$]}),L})()},93657:(Xe,ue,p)=>{"use strict";p.d(ue,{J:()=>Te});var e=p(65412),A=p(81591),C=p(61744),M=p(9244),m=p(24006),b=p(94650),D=p(89383),v=p(36895),R=p(3238),B=p(59549),w=p(284),L=p(4859),O=p(84385),q=p(57706);function te(pe,Le){if(1&pe&&(b.TgZ(0,"mat-option",9),b._uU(1),b.ALo(2,"applicationFormItemType"),b.qZA()),2&pe){const T=Le.$implicit;b.Q6J("value",T),b.xp6(1),b.hij(" ",b.lcZ(2,2,T)," ")}}function z(pe,Le){if(1&pe&&(b.TgZ(0,"mat-option",9),b._uU(1),b.qZA()),2&pe){const T=Le.$implicit;b.Q6J("value",T),b.xp6(1),b.hij(" ",T," ")}}const ie=function(pe){return{"height.rem":pe}};let Te=(()=>{class pe{constructor(T,W,F,V){this.dialogRef=T,this.data=W,this.translateService=F,this.store=V,this.languages=this.store.getProperty("supported_languages"),this.items=[],this.selectedWidget="HEADING",this.widgets=["HEADING","HTML_COMMENT","TEXTFIELD","VALIDATED_EMAIL","USERNAME","PASSWORD","SELECTIONBOX","TEXTAREA","COMBOBOX","CHECKBOX","SUBMIT_BUTTON","RADIO","TIMEZONE","AUTO_SUBMIT_BUTTON","EMBEDDED_GROUP_APPLICATION","LIST_INPUT_BOX","MAP_INPUT_BOX"]}ngOnInit(){this.translateService.get("DIALOGS.APPLICATION_FORM_ADD_ITEM.INSERT_TO_BEGINNING").subscribe(T=>{this.nameCtrl=new m.p4("",[m.kI.required,m.kI.pattern(".*[\\S]+.*"),m.kI.maxLength(129)]),this.nameCtrl.markAllAsTouched(),this.items.push(T);for(const W of this.data.applicationFormItems)this.items.push(W.shortname),W.type===C.Dy.EMBEDDED_GROUP_APPLICATION&&(this.widgets=this.widgets.filter(F=>F!==C.Dy.EMBEDDED_GROUP_APPLICATION));this.selectedItem=T})}setInputWidgetHeight(T){return Math.ceil(T/80)+2.5}cancel(){this.dialogRef.close(void 0)}submit(){const T=this.createApplicationItem();this.dialogRef.close([this.data.applicationFormItems,T])}createApplicationItem(){const T=(0,M.dv)(this.languages);T.id=this.data.fakeId,T.shortname=this.nameCtrl.value,T.type=this.selectedWidget;for(let W=0;W{"use strict";p.d(ue,{W:()=>L});var e=p(65412),A=p(61744),C=p(81591),M=p(94650),m=p(89383),b=p(36895),D=p(4859),v=p(51572),R=p(62707),B=p(82322);function w(O,q){1&O&&M._UZ(0,"mat-spinner",9)}let L=(()=>{class O{constructor(te,z,ie,Te,pe,Le,T,W,F){this.dialogRef=te,this.voService=z,this.groupService=ie,this.translateService=Te,this.registrarManager=pe,this.notificatorService=Le,this.apiRequest=T,this.cd=W,this.data=F,this.vos=[],this.groups=[],this.selectedGroup=null,this.loading=!1,this.nameFunction=V=>V.name,Te.get("DIALOGS.APPLICATION_FORM_COPY_ITEMS.SUCCESS").subscribe(V=>this.successMessage=V),Te.get("DIALOGS.APPLICATION_FORM_COPY_ITEMS.PRIVILEGE").subscribe(V=>this.privilegeMessage=V),Te.get("DIALOGS.APPLICATION_FORM_COPY_ITEMS.NO_FORM").subscribe(V=>this.noFormMessage=V)}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.translateService.get("DIALOGS.APPLICATION_FORM_COPY_ITEMS.NO_GROUP_SELECTED").subscribe(()=>{this.voService.getMyVos().subscribe(te=>{this.vos=te,this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)}cancel(){this.dialogRef.close(!1)}submit(){this.apiRequest.dontHandleErrorForNext(),this.loading=!0,this.data.groupId?null===this.selectedGroup?this.registrarManager.copyFormFromVoToGroup(this.selectedVo.id,this.data.groupId).subscribe(()=>{this.notificatorService.showSuccess(this.successMessage),this.dialogRef.close(!0)},te=>{"FormNotExistsException"===te.name&&this.notificatorService.showError(this.noFormMessage),"PrivilegeException"===te.name&&this.notificatorService.showError(this.privilegeMessage),this.loading=!1}):this.registrarManager.copyFormFromGroupToGroup(this.selectedGroup.id,this.data.groupId).subscribe(()=>{this.notificatorService.showSuccess(this.successMessage),this.dialogRef.close(!0)},te=>{"FormNotExistsException"===te.name&&this.notificatorService.showError(this.noFormMessage),"PrivilegeException"===te.name&&this.notificatorService.showError(this.privilegeMessage),this.loading=!1}):null===this.selectedGroup?this.registrarManager.copyFormFromVoToVo(this.selectedVo.id,this.data.voId).subscribe(()=>{this.notificatorService.showSuccess(this.successMessage),this.dialogRef.close(!0)},te=>{"FormNotExistsException"===te.name&&this.notificatorService.showError(this.noFormMessage),"PrivilegeException"===te.name&&this.notificatorService.showError(this.privilegeMessage),this.loading=!1}):this.registrarManager.copyFormFromGroupToVo(this.selectedGroup.id,this.data.voId).subscribe(()=>{this.notificatorService.showSuccess(this.successMessage),this.dialogRef.close(!0)},te=>{"FormNotExistsException"===te.name&&this.notificatorService.showError(this.noFormMessage),"PrivilegeException"===te.name&&this.notificatorService.showError(this.privilegeMessage),this.loading=!1})}voSelected(te){this.selectedVo=te,this.cd.detectChanges(),this.getGroups()}getGroups(){void 0!==this.selectedVo?this.groupService.getAllGroups(this.selectedVo.id).subscribe(te=>{this.groups=te}):this.groups=[],this.selectedGroup=null}}return O.\u0275fac=function(te){return new(te||O)(M.Y36(e.so),M.Y36(A.YF),M.Y36(A.ff),M.Y36(m.sK),M.Y36(A.tk),M.Y36(C.V6),M.Y36(C.F5),M.Y36(M.sBO),M.Y36(e.WI))},O.\u0275cmp=M.Xpm({type:O,selectors:[["app-application-form-copy-items-dialog"]],decls:22,vars:27,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",1,"dialog-container",3,"hidden"],[1,"mb-2","font-italic"],[1,"long-input",3,"vos","voSelected"],[1,"long-input",3,"groups","disableAutoSelect","groupSelected"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"]],template:function(te,z){1&te&&(M.TgZ(0,"div")(1,"h1",0),M._uU(2),M.ALo(3,"translate"),M.qZA(),M.YNc(4,w,1,0,"mat-spinner",1),M.TgZ(5,"div",2)(6,"div",3),M._uU(7),M.ALo(8,"translate"),M.qZA(),M._uU(9),M.ALo(10,"translate"),M.TgZ(11,"perun-web-apps-vo-search-select",4),M.NdJ("voSelected",function(Te){return z.voSelected(Te)}),M.qZA(),M._uU(12),M.ALo(13,"translate"),M.TgZ(14,"perun-web-apps-group-search-select",5),M.NdJ("groupSelected",function(Te){return z.selectedGroup=Te}),M.qZA()(),M.TgZ(15,"div",6)(16,"button",7),M.NdJ("click",function(){return z.cancel()}),M._uU(17),M.ALo(18,"translate"),M.qZA(),M.TgZ(19,"button",8),M.NdJ("click",function(){return z.submit()}),M._uU(20),M.ALo(21,"translate"),M.qZA()()()),2&te&&(M.Tol(z.theme),M.xp6(2),M.Oqu(M.lcZ(3,15,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.TITLE")),M.xp6(2),M.Q6J("ngIf",z.loading),M.xp6(1),M.Q6J("hidden",z.loading),M.xp6(2),M.hij(" ",M.lcZ(8,17,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.DESCRIPTION")," "),M.xp6(2),M.hij(" ",M.lcZ(10,19,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.SOURCE_VO"),": "),M.xp6(2),M.Q6J("vos",z.vos),M.xp6(1),M.hij(" ",M.lcZ(13,21,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.SOURCE_GROUP"),": "),M.xp6(2),M.Q6J("groups",z.groups)("disableAutoSelect",!0),M.xp6(3),M.hij(" ",M.lcZ(18,23,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.CANCEL_BUTTON")," "),M.xp6(2),M.Q6J("disabled",!z.selectedVo&&!z.selectedGroup||z.loading),M.xp6(1),M.hij(" ",M.lcZ(21,25,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.SUBMIT_BUTTON")," "))},dependencies:[b.O5,D.lW,e.uh,e.xY,e.H8,v.Ou,R.M,B.h,m.X$]}),O})()},23325:(Xe,ue,p)=>{"use strict";p.d(ue,{a:()=>Te});var e=p(61744),A=p(65412),C=p(81591),M=p(24006),m=p(94650),b=p(36895),D=p(3238),v=p(59549),R=p(4859),B=p(84385),w=p(51572),L=p(98380),O=p(89383),q=p(77749);function te(pe,Le){1&pe&&m._UZ(0,"mat-spinner",7)}function z(pe,Le){if(1&pe&&(m.TgZ(0,"mat-option",14),m._uU(1),m.ALo(2,"applicationColumnSelectLabel"),m.qZA()),2&pe){const T=Le.$implicit,W=m.oxw(2);m.Tol(W.theme),m.Q6J("value",T),m.xp6(1),m.hij(" ",m.lcZ(2,5,T)," ")}}function ie(pe,Le){if(1&pe){const T=m.EpF();m.TgZ(0,"div",8)(1,"perun-web-apps-alert",9),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.TgZ(4,"mat-form-field",10)(5,"mat-label"),m._uU(6),m.ALo(7,"translate"),m.qZA(),m.TgZ(8,"mat-select",11),m.NdJ("closed",function(){m.CHM(T);const F=m.oxw();return m.KtG(F.attribute.value=F.selectedColumns.value)}),m.YNc(9,z,3,7,"mat-option",12),m.qZA()(),m.TgZ(10,"perun-web-apps-alert",13),m._uU(11),m.ALo(12,"translate"),m.qZA()()}if(2&pe){const T=m.oxw();m.xp6(2),m.hij(" ",m.lcZ(3,5,"DIALOGS.APPLICATIONS_LIST_COLUMNS_CHANGE.WARN")," "),m.xp6(4),m.Oqu(m.lcZ(7,7,"DIALOGS.APPLICATIONS_LIST_COLUMNS_CHANGE.FILTER_COLUMNS")),m.xp6(2),m.Q6J("formControl",T.selectedColumns),m.xp6(1),m.Q6J("ngForOf",T.columnOptions),m.xp6(2),m.hij(" ",m.lcZ(12,9,"DIALOGS.APPLICATIONS_LIST_COLUMNS_CHANGE.DEFAULT_TEXT")," ")}}let Te=(()=>{class pe{constructor(T,W,F,V,ee){this.dialogRef=T,this.attributesManager=W,this.data=F,this.translate=V,this.notificator=ee,this.loading=!1,this.simpleColumns=["createdAt","type","state","createdBy","modifiedBy"],this.columnOptions=["createdAt","type","state","createdBy","modifiedBy"],this.selectedColumns=new M.NI([])}ngOnInit(){this.theme=this.data.theme,this.data.groupId?this.attributesManager.getIdpAttributeDefinitions().subscribe(T=>{T.forEach(W=>{this.columnOptions.push(W.friendlyName)}),this.attributesManager.getGroupAttributeByName(this.data.groupId,"urn:perun:group:attribute-def:def:applicationViewPreferences").subscribe(W=>{this.attribute=W;const F=W.value;this.selectedColumns.setValue(null!==F&&F.length>0?F:this.simpleColumns)})}):this.attributesManager.getIdpAttributeDefinitions().subscribe(T=>{T.forEach(W=>{this.columnOptions.push(W.friendlyName)}),this.attributesManager.getVoAttributeByName(this.data.voId,"urn:perun:vo:attribute-def:def:applicationViewPreferences").subscribe(W=>{this.attribute=W;const F=W.value;this.selectedColumns.setValue(null!==F&&F.length>0?F:this.simpleColumns)})})}confirm(){this.data.groupId?this.changeGroupAttribute():this.changeVoAttribute()}cancel(){this.dialogRef.close(!1)}default(){this.attribute.value=[],this.confirm()}changeVoAttribute(){this.loading=!0,this.attributesManager.setVoAttribute({vo:this.data.voId,attribute:this.attribute}).subscribe({next:()=>{this.loading=!1,this.dialogRef.close(!0),this.notificator.showSuccess(this.translate.instant("DIALOGS.APPLICATIONS_LIST_COLUMNS_CHANGE.SUCCESS"))},error:()=>{this.loading=!1}})}changeGroupAttribute(){this.loading=!0,this.attributesManager.setGroupAttribute({group:this.data.groupId,attribute:this.attribute}).subscribe({next:()=>{this.loading=!1,this.dialogRef.close(!0),this.notificator.showSuccess(this.translate.instant("DIALOGS.APPLICATIONS_LIST_COLUMNS_CHANGE.SUCCESS"))},error:()=>{this.loading=!1}})}}return pe.\u0275fac=function(T){return new(T||pe)(m.Y36(A.so),m.Y36(e.H8),m.Y36(A.WI),m.Y36(C.Te),m.Y36(C.V6))},pe.\u0275cmp=m.Xpm({type:pe,selectors:[["app-applications-list-columns-change-dialog"]],decls:16,vars:18,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",3,"click"],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],["alert_type","warn"],[1,"w-100"],["multiple","",3,"formControl","closed"],[3,"class","value",4,"ngFor","ngForOf"],["alert_type","info"],[3,"value"]],template:function(T,W){1&T&&(m.TgZ(0,"h1",0),m._uU(1),m.ALo(2,"translate"),m.qZA(),m.TgZ(3,"div"),m.YNc(4,te,1,0,"mat-spinner",1),m.YNc(5,ie,13,11,"div",2),m.TgZ(6,"div",3)(7,"button",4),m.NdJ("click",function(){return W.cancel()}),m._uU(8),m.ALo(9,"translate"),m.qZA(),m.TgZ(10,"button",5),m.NdJ("click",function(){return W.default()}),m._uU(11),m.ALo(12,"translate"),m.qZA(),m.TgZ(13,"button",6),m.NdJ("click",function(){return W.confirm()}),m._uU(14),m.ALo(15,"translate"),m.qZA()()()),2&T&&(m.xp6(1),m.Oqu(m.lcZ(2,10,"DIALOGS.APPLICATIONS_LIST_COLUMNS_CHANGE.TITLE")),m.xp6(2),m.Tol(W.theme),m.xp6(1),m.Q6J("ngIf",W.loading),m.xp6(1),m.Q6J("ngIf",!W.loading),m.xp6(3),m.hij(" ",m.lcZ(9,12,"DIALOGS.APPLICATIONS_LIST_COLUMNS_CHANGE.CANCEL")," "),m.xp6(3),m.hij(" ",m.lcZ(12,14,"DIALOGS.APPLICATIONS_LIST_COLUMNS_CHANGE.DEFAULT")," "),m.xp6(2),m.Q6J("disabled",W.loading),m.xp6(1),m.hij(" ",m.lcZ(15,16,"DIALOGS.APPLICATIONS_LIST_COLUMNS_CHANGE.CONFIRM")," "))},dependencies:[b.sg,b.O5,D.ey,v.KE,v.hX,M.JJ,M.oH,R.lW,A.uh,A.xY,A.H8,B.gD,w.Ou,L.w,O.X$,q.K]}),pe})()},94742:(Xe,ue,p)=>{"use strict";p.d(ue,{F:()=>De});var e=p(24006),A=p(9244),C=p(65412),M=p(81591),m=p(61744),b=p(94650),D=p(36895),v=p(3238),R=p(59549),B=p(284),w=p(4859),L=p(84385),O=p(51572),q=p(98380),te=p(89383);function z(he,Ye){1&he&&b._UZ(0,"mat-spinner",7)}function ie(he,Ye){1&he&&(b.TgZ(0,"div",16),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&he&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"DIALOGS.BULK_INVITE_MEMBERS.DESCRIPTION_VO")," "))}function Te(he,Ye){1&he&&(b.TgZ(0,"div",16),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&he&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"DIALOGS.BULK_INVITE_MEMBERS.DESCRIPTION_GROUP")," "))}function pe(he,Ye){if(1&he&&(b.TgZ(0,"mat-option",17),b._uU(1),b.ALo(2,"translate"),b.ALo(3,"uppercase"),b.qZA()),2&he){const Be=Ye.$implicit;b.s9C("value",Be),b.xp6(1),b.hij(" ",b.lcZ(2,2,b.lcZ(3,4,"SHARED_LIB.LANGUAGES."+Be))," ")}}function Le(he,Ye){1&he&&(b.TgZ(0,"mat-error"),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&he&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"DIALOGS.BULK_INVITE_MEMBERS.NAMES_ERROR")," "))}function T(he,Ye){if(1&he&&(b.TgZ(0,"mat-error"),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&he){const Be=b.oxw(3);b.xp6(1),b.AsE(" ",b.lcZ(2,2,"DIALOGS.BULK_INVITE_MEMBERS.ERROR_FORMAT"),": ",Be.invitedMembers.getError("invalidFormat").value," ")}}function W(he,Ye){if(1&he&&(b.TgZ(0,"mat-error"),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&he){const Be=b.oxw(3);b.xp6(1),b.AsE(" ",b.lcZ(2,2,"DIALOGS.BULK_INVITE_MEMBERS.ERROR_EMAIL"),": ",Be.invitedMembers.getError("invalidEmail").value," ")}}function F(he,Ye){if(1&he){const Be=b.EpF();b.TgZ(0,"div"),b.YNc(1,ie,3,3,"div",9),b.YNc(2,Te,3,3,"div",9),b.TgZ(3,"mat-form-field",10)(4,"mat-label"),b._uU(5),b.ALo(6,"translate"),b.qZA(),b.TgZ(7,"mat-select",11),b.NdJ("valueChange",function(le){b.CHM(Be);const N=b.oxw(2);return b.KtG(N.currentLanguage=le)}),b.YNc(8,pe,4,6,"mat-option",12),b.qZA()(),b._UZ(9,"p",13),b.ALo(10,"translate"),b.TgZ(11,"mat-form-field",14)(12,"mat-label"),b._uU(13),b.ALo(14,"translate"),b.qZA(),b.TgZ(15,"textarea",15),b.ALo(16,"translate"),b._uU(17," "),b.qZA(),b.YNc(18,Le,3,3,"mat-error",3),b.YNc(19,T,3,4,"mat-error",3),b.YNc(20,W,3,4,"mat-error",3),b.qZA()()}if(2&he){const Be=b.oxw(2);b.xp6(1),b.Q6J("ngIf",!Be.data.groupId),b.xp6(1),b.Q6J("ngIf",Be.data.groupId),b.xp6(3),b.Oqu(b.lcZ(6,12,"DIALOGS.BULK_INVITE_MEMBERS.LANGUAGE")),b.xp6(2),b.Q6J("value",Be.currentLanguage),b.xp6(1),b.Q6J("ngForOf",Be.languages),b.xp6(1),b.Q6J("innerHTML",b.lcZ(10,14,"DIALOGS.BULK_INVITE_MEMBERS.HINT"),b.oJD),b.xp6(4),b.Oqu(b.lcZ(14,16,"DIALOGS.BULK_INVITE_MEMBERS.INSERT_HERE")),b.xp6(2),b.s9C("placeholder",b.lcZ(16,18,"DIALOGS.BULK_INVITE_MEMBERS.PLACEHOLDER")),b.Q6J("formControl",Be.invitedMembers),b.xp6(3),b.Q6J("ngIf",Be.invitedMembers.hasError("required")),b.xp6(1),b.Q6J("ngIf",Be.invitedMembers.hasError("invalidFormat")),b.xp6(1),b.Q6J("ngIf",Be.invitedMembers.hasError("invalidEmail"))}}function V(he,Ye){if(1&he&&(b.TgZ(0,"div",8),b.YNc(1,F,21,20,"div",3),b.qZA()),2&he){const Be=b.oxw();b.xp6(1),b.Q6J("ngIf","input"===Be.state)}}function ee(he,Ye){1&he&&(b.TgZ(0,"perun-web-apps-alert",19),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&he&&(b.Q6J("alert_type","success"),b.xp6(1),b.hij(" ",b.lcZ(2,2,"DIALOGS.BULK_INVITE_MEMBERS.SUCCESS")," "))}function Q(he,Ye){1&he&&(b.TgZ(0,"perun-web-apps-alert",19),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&he&&(b.Q6J("alert_type","warn"),b.xp6(1),b.hij(" ",b.lcZ(2,2,"DIALOGS.BULK_INVITE_MEMBERS.FINISHED_WITH_ERRORS")," "))}function Ee(he,Ye){if(1&he&&(b.TgZ(0,"div"),b.YNc(1,ee,3,4,"perun-web-apps-alert",18),b.YNc(2,Q,3,4,"perun-web-apps-alert",18),b.qZA()),2&he){const Be=b.oxw();b.xp6(1),b.Q6J("ngIf",!Be.finishedWithErrors),b.xp6(1),b.Q6J("ngIf",Be.finishedWithErrors)}}function ge(he,Ye){if(1&he){const Be=b.EpF();b.TgZ(0,"button",20),b.NdJ("click",function(){b.CHM(Be);const le=b.oxw();return b.KtG(le.onSubmit())}),b._uU(1),b.ALo(2,"translate"),b.qZA()}if(2&he){const Be=b.oxw();b.Q6J("disabled",Be.loading||Be.invitedMembers.invalid),b.xp6(1),b.hij(" ",b.lcZ(2,2,"DIALOGS.BULK_INVITE_MEMBERS.INVITE")," ")}}function ve(he,Ye){if(1&he){const Be=b.EpF();b.TgZ(0,"button",20),b.NdJ("click",function(){b.CHM(Be);const le=b.oxw();return b.KtG(le.downloadCsv())}),b._uU(1),b.ALo(2,"translate"),b.qZA()}if(2&he){const Be=b.oxw();b.Q6J("disabled",!Be.resultData),b.xp6(1),b.hij(" ",b.lcZ(2,2,"DIALOGS.BULK_INVITE_MEMBERS.DOWNLOAD_CSV")," ")}}let De=(()=>{class he{constructor(Be,se,le,N){this.dialogRef=Be,this.data=se,this.store=le,this.registrarManager=N,this.invitedMembers=new e.NI("",[e.kI.required,this.userInputValidator()]),this.languages=this.store.getProperty("supported_languages"),this.currentLanguage="en",this.loading=!1,this.state="input"}static didSomeInviteFail(Be){for(const se in Be)if("OK"!==Be[se])return!0;return!1}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;const Be=this.invitedMembers.value.split("\n"),se=[];for(const N of Be)se.push(this.parseMemberLine(N));const le={invitationData:se,voId:this.data.voId,language:this.currentLanguage};void 0!==this.data.groupId&&(le.groupId=this.data.groupId),this.registrarManager.sendInvitationsFromCsv(le).subscribe({next:N=>{this.state="results",this.finishedWithErrors=he.didSomeInviteFail(N),this.resultData=N,this.loading=!1},error:()=>{this.loading=!1}})}downloadCsv(){(0,A.O6)(this.generateOutputData(this.resultData),"csv","member-invites")}generateOutputData(Be){const se=[];for(const le in Be)se.push({email:le,status:Be[le]});return se}parseMemberLine(Be){const se=Be.trim();if(""===se)return"";const le=se.split(";");if(le.length>2||0===le.length)return"format";if(!le[0].trim().match(A.B2))return"email";let N="";for(const k of le)N+=k.trim()+";";return N.slice(0,-1)}userInputValidator(){return Be=>{const se=Be.value.split("\n");for(const le of se){const N=this.parseMemberLine(le);let k=le;if(le.length>25&&(k=le.substring(0,25)+"..."),"format"===N)return{invalidFormat:{value:k}};if("email"===N)return{invalidEmail:{value:k}}}return null}}}return he.\u0275fac=function(Be){return new(Be||he)(b.Y36(C.so),b.Y36(C.WI),b.Y36(M.d6),b.Y36(m.tk))},he.\u0275cmp=b.Xpm({type:he,selectors:[["app-bulk-invite-members-dialog"]],decls:13,vars:14,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],[4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["class","ml-2","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["class","font-italic",4,"ngIf"],[1,"w-100","pt-2"],[3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[3,"innerHTML"],[1,"pt-2","flex-container"],["cols","50","required","","matInput","","rows","8",1,"md-textarea","form-control",3,"formControl","placeholder"],[1,"font-italic"],[3,"value"],[3,"alert_type",4,"ngIf"],[3,"alert_type"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(Be,se){1&Be&&(b.TgZ(0,"div")(1,"h1",0),b._uU(2),b.ALo(3,"translate"),b.qZA(),b.YNc(4,z,1,0,"mat-spinner",1),b.YNc(5,V,2,1,"div",2),b.YNc(6,Ee,3,2,"div",3),b.TgZ(7,"div",4)(8,"button",5),b.NdJ("click",function(){return se.onCancel()}),b._uU(9),b.ALo(10,"translate"),b.qZA(),b.YNc(11,ge,3,4,"button",6),b.YNc(12,ve,3,4,"button",6),b.qZA()()),2&Be&&(b.Tol(se.data.theme),b.xp6(2),b.Oqu(b.lcZ(3,10,"DIALOGS.BULK_INVITE_MEMBERS.TITLE")),b.xp6(2),b.Q6J("ngIf",se.loading),b.xp6(1),b.Q6J("ngIf",!se.loading),b.xp6(1),b.Q6J("ngIf","results"===se.state),b.xp6(3),b.hij(" ",b.lcZ(10,12,"DIALOGS.BULK_INVITE_MEMBERS.CANCEL")," "),b.xp6(2),b.Q6J("ngIf","input"===se.state),b.xp6(1),b.Q6J("ngIf","results"===se.state))},dependencies:[D.sg,D.O5,v.ey,R.TO,R.KE,R.hX,B.Nt,e.Fj,e.JJ,e.Q7,e.oH,w.lW,C.uh,C.xY,C.H8,L.gD,O.Ou,q.w,D.gd,te.X$],styles:[".flex-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),he})()},40009:(Xe,ue,p)=>{"use strict";p.d(ue,{R:()=>z});var e=p(65412),A=p(81591),C=p(24006),M=p(61744),m=p(94650),b=p(89383),D=p(36895),v=p(59549),R=p(284),B=p(4859),w=p(56709),L=p(51572);function O(ie,Te){1&ie&&m._UZ(0,"mat-spinner",4)}function q(ie,Te){if(1&ie){const pe=m.EpF();m.TgZ(0,"div",5)(1,"mat-form-field")(2,"input",6),m.NdJ("change",function(){m.CHM(pe);const T=m.oxw();return m.KtG(T.makePath())}),m.ALo(3,"translate"),m.qZA(),m.TgZ(4,"mat-error"),m._uU(5),m.ALo(6,"translate"),m.qZA()(),m.TgZ(7,"mat-form-field")(8,"input",7),m.NdJ("ngModelChange",function(T){m.CHM(pe);const W=m.oxw();return m.KtG(W.description=T)}),m.ALo(9,"translate"),m.qZA()(),m.TgZ(10,"mat-form-field"),m._UZ(11,"input",8),m.ALo(12,"translate"),m.TgZ(13,"mat-error"),m._uU(14),m.ALo(15,"translate"),m.qZA()(),m.TgZ(16,"mat-form-field"),m._UZ(17,"input",9),m.ALo(18,"translate"),m.TgZ(19,"mat-error"),m._uU(20),m.ALo(21,"translate"),m.qZA()(),m.TgZ(22,"mat-form-field"),m._UZ(23,"input",8),m.ALo(24,"translate"),m.TgZ(25,"mat-error"),m._uU(26),m.ALo(27,"translate"),m.qZA()(),m.TgZ(28,"span",10),m._uU(29),m.ALo(30,"translate"),m.TgZ(31,"mat-checkbox",11),m.NdJ("ngModelChange",function(T){m.CHM(pe);const W=m.oxw();return m.KtG(W.status=T)}),m._uU(32),m.ALo(33,"translate"),m.qZA()(),m.TgZ(34,"span",10),m._uU(35),m.ALo(36,"translate"),m.TgZ(37,"mat-checkbox",11),m.NdJ("ngModelChange",function(T){m.CHM(pe);const W=m.oxw();return m.KtG(W.propagateExpiredMembers=T)}),m._uU(38),m.ALo(39,"translate"),m.qZA()()()}if(2&ie){const pe=m.oxw();m.xp6(2),m.s9C("placeholder",m.lcZ(3,20,"DIALOGS.CREATE_EDIT_SERVICE.NAME")),m.Q6J("formControl",pe.nameControl),m.xp6(3),m.Oqu(m.lcZ(6,22,"DIALOGS.CREATE_EDIT_SERVICE.RESTRICTION_NAME")),m.xp6(3),m.s9C("placeholder",m.lcZ(9,24,"DIALOGS.CREATE_EDIT_SERVICE.DESCRIPTION")),m.Q6J("ngModel",pe.description),m.xp6(3),m.s9C("placeholder",m.lcZ(12,26,"DIALOGS.CREATE_EDIT_SERVICE.DELAY")),m.Q6J("formControl",pe.delayControl),m.xp6(3),m.Oqu(m.lcZ(15,28,"DIALOGS.CREATE_EDIT_SERVICE.INVALID_DELAY")),m.xp6(3),m.s9C("placeholder",m.lcZ(18,30,"DIALOGS.CREATE_EDIT_SERVICE.RECURRENCE")),m.Q6J("formControl",pe.recurrenceControl),m.xp6(3),m.Oqu(m.lcZ(21,32,"DIALOGS.CREATE_EDIT_SERVICE.INVALID_RECURRENCE")),m.xp6(3),m.s9C("placeholder",m.lcZ(24,34,"DIALOGS.CREATE_EDIT_SERVICE.PATH")),m.Q6J("formControl",pe.pathControl),m.xp6(3),m.Oqu(m.lcZ(27,36,"DIALOGS.CREATE_EDIT_SERVICE.REQUIRE_PATH")),m.xp6(3),m.hij("",m.lcZ(30,38,"DIALOGS.CREATE_EDIT_SERVICE.STATUS")," "),m.xp6(2),m.Q6J("ngModel",pe.status),m.xp6(1),m.Oqu(m.lcZ(33,40,"DIALOGS.CREATE_EDIT_SERVICE.STATUS_HINT")),m.xp6(3),m.hij("",m.lcZ(36,42,"DIALOGS.CREATE_EDIT_SERVICE.EXPIRED_MEMBERS")," "),m.xp6(2),m.Q6J("ngModel",pe.propagateExpiredMembers),m.xp6(1),m.Oqu(m.lcZ(39,44,"DIALOGS.CREATE_EDIT_SERVICE.EXPIRED_MEMBERS_HINT"))}}function te(ie,Te){if(1&ie){const pe=m.EpF();m.TgZ(0,"div",12)(1,"button",13),m.NdJ("click",function(){m.CHM(pe);const T=m.oxw();return m.KtG(T.onCancel())}),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.TgZ(4,"button",14),m.NdJ("click",function(){m.CHM(pe);const T=m.oxw();return m.KtG(T.asEdit?T.onEdit():T.onCreate())}),m._uU(5),m.qZA()()}if(2&ie){const pe=m.oxw();m.xp6(2),m.hij(" ",m.lcZ(3,3,"DIALOGS.CREATE_EDIT_SERVICE.CANCEL")," "),m.xp6(2),m.Q6J("disabled",pe.nameControl.invalid||pe.delayControl.invalid||pe.recurrenceControl.invalid||pe.pathControl.invalid),m.xp6(1),m.hij(" ",pe.buttonText," ")}}let z=(()=>{class ie{constructor(pe,Le,T,W,F){this.dialogRef=pe,this.data=Le,this.serviceManager=T,this.notificator=W,this.translate=F,this.loading=!1,this.status=!0,this.propagateExpiredMembers=!0,this.nameControl=new C.p4("",[C.kI.required,C.kI.pattern("^[a-zA-Z0-9_]+$")]),this.delayControl=new C.p4(10,[C.kI.pattern("^[0-9]*$")]),this.recurrenceControl=new C.p4(2,[C.kI.pattern("^[0-9]*$")]),this.pathControl=new C.p4("",[C.kI.required]),this.asEdit=!1}ngOnInit(){this.theme=this.data.theme,this.asEdit=void 0!==this.data.service,this.asEdit?(this.nameControl.setValue(this.data.service.name),this.description=this.data.service.description,this.delayControl.setValue(this.data.service.delay),this.recurrenceControl.setValue(this.data.service.recurrence),this.pathControl.setValue(this.data.service.script),this.status=this.data.service.enabled,this.propagateExpiredMembers=this.data.service.useExpiredMembers,this.title=this.translate.instant("DIALOGS.CREATE_EDIT_SERVICE.EDIT_TITLE"),this.buttonText=this.translate.instant("DIALOGS.CREATE_EDIT_SERVICE.EDIT")):(this.title=this.translate.instant("DIALOGS.CREATE_EDIT_SERVICE.CREATE_TITLE"),this.buttonText=this.translate.instant("DIALOGS.CREATE_EDIT_SERVICE.CREATE"))}onCreate(){this.loading=!0,this.serviceManager.createServiceWithService({service:{name:this.nameControl.value,description:this.description,delay:this.delayControl.value,recurrence:this.recurrenceControl.value,enabled:this.status,script:this.pathControl.value,useExpiredMembers:this.propagateExpiredMembers,id:0,beanName:""}}).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.CREATE_EDIT_SERVICE.CREATE_SUCCESS")),this.dialogRef.close(!0),this.loading=!1},()=>this.loading=!1)}onEdit(){this.loading=!0,this.serviceManager.updateService({service:{name:this.nameControl.value,description:this.description,delay:this.delayControl.value,recurrence:this.recurrenceControl.value,enabled:this.status,script:this.pathControl.value,useExpiredMembers:this.propagateExpiredMembers,id:this.data.service.id,beanName:this.data.service.beanName}}).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.CREATE_EDIT_SERVICE.EDIT_SUCCESS")),this.dialogRef.close(!0),this.loading=!1},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}makePath(){const pe="./".concat(this.nameControl.value);this.pathControl.setValue(pe)}}return ie.\u0275fac=function(pe){return new(pe||ie)(m.Y36(e.so),m.Y36(e.WI),m.Y36(M.KK),m.Y36(A.V6),m.Y36(b.sK))},ie.\u0275cmp=m.Xpm({type:ie,selectors:[["app-create-service-dialog"]],decls:6,vars:7,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","data-cy","service-name-input","required","",3,"placeholder","formControl","change"],["matInput","","data-cy","service-description-input",3,"ngModel","placeholder","ngModelChange"],["matInput","","required","",3,"formControl","placeholder"],["matInput","","required","",3,"placeholder","formControl"],[1,"d-flex"],[1,"ml-3",3,"ngModel","ngModelChange"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","data-cy","service-create-edit-dialog-button","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(pe,Le){1&pe&&(m.TgZ(0,"div")(1,"h1",0),m._uU(2),m.qZA(),m.YNc(3,O,1,0,"mat-spinner",1),m.YNc(4,q,40,46,"div",2),m.YNc(5,te,6,5,"div",3),m.qZA()),2&pe&&(m.Tol(Le.theme),m.xp6(2),m.Oqu(Le.title),m.xp6(1),m.Q6J("ngIf",Le.loading),m.xp6(1),m.Q6J("ngIf",!Le.loading),m.xp6(1),m.Q6J("ngIf",!Le.loading))},dependencies:[D.O5,v.TO,v.KE,R.Nt,C.Fj,C.JJ,C.Q7,C.oH,C.On,B.lW,w.oG,e.uh,e.xY,e.H8,L.Ou,b.X$]}),ie})()},81889:(Xe,ue,p)=>{"use strict";p.d(ue,{y:()=>Te});var e=p(65412),A=p(81591),C=p(61744),M=p(24006),m=p(94650),b=p(89383),D=p(36895),v=p(59549),R=p(284),B=p(4859),w=p(56709),L=p(51572),O=p(82322);function q(pe,Le){1&pe&&m._UZ(0,"mat-spinner",3)}function te(pe,Le){if(1&pe){const T=m.EpF();m.TgZ(0,"mat-checkbox",14),m.NdJ("ngModelChange",function(F){m.CHM(T);const V=m.oxw(2);return m.KtG(V.asSubgroup=F)})("click",function(){m.CHM(T);const F=m.oxw(2);return m.KtG(F.loadVoGroups())}),m._uU(1),m.ALo(2,"translate"),m.qZA()}if(2&pe){const T=m.oxw(2);m.Q6J("ngModel",T.asSubgroup)("labelPosition","before"),m.xp6(1),m.hij(" ",m.lcZ(2,3,"DIALOGS.CREATE_GROUP.AS_SUBGROUP")," ")}}function z(pe,Le){if(1&pe){const T=m.EpF();m.TgZ(0,"perun-web-apps-group-search-select",15),m.NdJ("groupSelected",function(F){m.CHM(T);const V=m.oxw(2);return m.KtG(V.selectedParent=F)}),m.qZA()}if(2&pe){const T=m.oxw(2);m.Q6J("disableAutoSelect",!0)("groups",T.voGroups)}}function ie(pe,Le){if(1&pe){const T=m.EpF();m.TgZ(0,"div")(1,"div",4)(2,"mat-form-field")(3,"label",5),m._UZ(4,"input",6),m.ALo(5,"translate"),m.qZA(),m.TgZ(6,"mat-error"),m._uU(7),m.ALo(8,"translate"),m.qZA()(),m.TgZ(9,"mat-form-field",7)(10,"label",5)(11,"textarea",8),m.ALo(12,"translate"),m._uU(13," "),m.qZA()()(),m.YNc(14,te,3,5,"mat-checkbox",9),m.YNc(15,z,1,2,"perun-web-apps-group-search-select",10),m.qZA(),m.TgZ(16,"div",11)(17,"button",12),m.NdJ("click",function(){m.CHM(T);const F=m.oxw();return m.KtG(F.onCancel())}),m._uU(18),m.ALo(19,"translate"),m.qZA(),m.TgZ(20,"button",13),m.NdJ("click",function(){m.CHM(T);const F=m.oxw();return m.KtG(F.onSubmit())}),m._uU(21),m.ALo(22,"translate"),m.qZA()()()}if(2&pe){const T=m.oxw();m.xp6(4),m.s9C("placeholder",m.lcZ(5,10,"DIALOGS.CREATE_GROUP.NAME")),m.Q6J("formControl",T.nameControl),m.xp6(3),m.hij(" ",T.invalidNameMessage.length?T.invalidNameMessage:m.lcZ(8,12,"DIALOGS.CREATE_GROUP.FILL_VALUE")," "),m.xp6(4),m.s9C("placeholder",m.lcZ(12,14,"DIALOGS.CREATE_GROUP.DESCRIPTION")),m.Q6J("formControl",T.descriptionControl),m.xp6(3),m.Q6J("ngIf",T.isNotSubGroup),m.xp6(1),m.Q6J("ngIf",T.asSubgroup),m.xp6(3),m.hij(" ",m.lcZ(19,16,"DIALOGS.CREATE_GROUP.CANCEL")," "),m.xp6(2),m.Q6J("disabled",T.nameControl.invalid||T.descriptionControl.invalid||T.asSubgroup&&null===T.selectedParent||T.loading),m.xp6(1),m.hij(" ",m.lcZ(22,18,"DIALOGS.CREATE_GROUP.CREATE")," ")}}let Te=(()=>{class pe{constructor(T,W,F,V,ee,Q){this.dialogRef=T,this.data=W,this.groupService=F,this.translate=V,this.notificator=ee,this.store=Q,this.asSubgroup=!1,this.invalidNameMessage=this.store.getProperty("group_name_error_message"),this.voGroups=[],this.secondaryRegex=this.store.getProperty("group_name_secondary_regex"),this.nameFunction=Ee=>Ee.name,this.isNotSubGroup=null===this.data.parentGroup,this.isNotSubGroup?V.get("DIALOGS.CREATE_GROUP.TITLE").subscribe(Ee=>this.title=Ee):V.get("DIALOGS.CREATE_GROUP.TITLE_SUB_GROUP").subscribe(Ee=>{this.title=Ee+this.data.parentGroup.name}),V.get("DIALOGS.CREATE_GROUP.SUCCESS").subscribe(Ee=>this.successMessage=Ee),V.get("DIALOGS.CREATE_GROUP.SUCCESS_SUBGROUP").subscribe(Ee=>this.successSubGroupMessage=Ee)}ngOnInit(){this.theme=this.data.theme,this.invalidNameMessage=this.invalidNameMessage&&this.secondaryRegex?this.invalidNameMessage:"",this.nameControl=new M.p4("",[M.kI.required,M.kI.pattern(this.secondaryRegex?this.secondaryRegex:""),M.kI.pattern(".*[\\S]+.*")]),this.descriptionControl=new M.p4(""),this.selectedParent=null}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.isNotSubGroup&&!this.asSubgroup?this.groupService.createGroupWithVoNameDescription(this.data.voId,this.nameControl.value,this.descriptionControl.value).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1):this.groupService.createGroupWithParentGroupNameDescription(this.asSubgroup?this.selectedParent.id:this.data.parentGroup.id,this.nameControl.value,this.descriptionControl.value).subscribe(()=>{this.notificator.showSuccess(this.successSubGroupMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}loadVoGroups(){this.groupService.getAllGroups(this.data.voId).subscribe(T=>{this.voGroups=T.filter(W=>"members"!==W.name)})}}return pe.\u0275fac=function(T){return new(T||pe)(m.Y36(e.so),m.Y36(e.WI),m.Y36(C.ff),m.Y36(b.sK),m.Y36(A.V6),m.Y36(A.d6))},pe.\u0275cmp=m.Xpm({type:pe,selectors:[["app-create-group-dialog"]],decls:5,vars:6,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[1,"w-100"],["matInput","","data-cy","group-name","required","",3,"formControl","placeholder"],[1,"mt-4"],["mat-autosize","","matInput","","data-cy","group-description",3,"formControl","placeholder"],[3,"ngModel","labelPosition","ngModelChange","click",4,"ngIf"],["class","long-input",3,"disableAutoSelect","groups","groupSelected",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","data-cy","create-group-button-dialog","mat-flat-button","",1,"ml-2",3,"disabled","click"],[3,"ngModel","labelPosition","ngModelChange","click"],[1,"long-input",3,"disableAutoSelect","groups","groupSelected"]],template:function(T,W){1&T&&(m.TgZ(0,"h1",0),m._uU(1),m.qZA(),m.TgZ(2,"div"),m.YNc(3,q,1,0,"mat-spinner",1),m.YNc(4,ie,23,20,"div",2),m.qZA()),2&T&&(m.xp6(1),m.Oqu(W.title),m.xp6(1),m.Tol(W.theme),m.xp6(1),m.Q6J("ngIf",W.loading),m.xp6(1),m.Q6J("ngIf",!W.loading))},dependencies:[D.O5,v.TO,v.KE,R.Nt,M.Fj,M.JJ,M.Q7,M.oH,M.On,B.lW,w.oG,e.uh,e.xY,e.H8,L.Ou,O.h,b.X$]}),pe})()},54037:(Xe,ue,p)=>{"use strict";p.d(ue,{Y:()=>v});var e=p(61744),A=p(65412),C=p(81591),M=p(30671),m=p(94650),b=p(89383),D=p(90995);let v=(()=>{class R{constructor(w,L,O,q,te){this.dialogRef=w,this.data=L,this.facilitiesManager=O,this.notificator=q,this.translate=te,this.displayedColumns=["name"],this.loading=!1,this.relations=[],this.force=!1}ngOnInit(){this.theme=this.data.theme,this.facility=this.data.facility,this.dataSource=new M.by([this.facility]),this.relations.push(this.translate.instant("DIALOGS.DELETE_FACILITY.RESOURCE_RELATION"))}onConfirm(){this.loading=!0,this.facilitiesManager.deleteFacility(this.facility.id,this.force).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.DELETE_FACILITY.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}onSubmit(w){this.force=w.force,w.deleted?this.onConfirm():this.onCancel()}}return R.\u0275fac=function(w){return new(w||R)(m.Y36(A.so),m.Y36(A.WI),m.Y36(e.IQ),m.Y36(C.V6),m.Y36(b.sK))},R.\u0275cmp=m.Xpm({type:R,selectors:[["app-delete-facility-dialog"]],decls:2,vars:7,consts:[[3,"entityNames","entityType","loading","relations","deleted"]],template:function(w,L){1&w&&(m.TgZ(0,"div")(1,"perun-web-apps-delete-entity-dialog",0),m.NdJ("deleted",function(q){return L.onSubmit(q)}),m.qZA()()),2&w&&(m.Tol(L.theme),m.xp6(1),m.Q6J("entityNames",L.dataSource)("entityType","facilities")("loading",L.loading)("relations",L.relations))},dependencies:[D.e]}),R})()},41656:(Xe,ue,p)=>{"use strict";p.d(ue,{P:()=>v});var e=p(65412),A=p(30671),C=p(81591),M=p(61744),m=p(94650),b=p(89383),D=p(90995);let v=(()=>{class R{constructor(w,L,O,q,te){this.dialogRef=w,this.data=L,this.notificator=O,this.translate=q,this.groupService=te,this.displayedColumns=["name"],this.loading=!1,this.relations=[],this.force=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new A.by(this.data.groups),this.relations.push(this.translate.instant("DIALOGS.DELETE_GROUP.SUBGROUP_RELATION")),this.relations.push(this.translate.instant("DIALOGS.DELETE_GROUP.MEMBER_RELATION"))}onCancel(){this.dialogRef.close(!1)}onDelete(){this.loading=!0;const w=this.data.groups.map(L=>L.id);this.groupService.deleteGroups({groups:w,forceDelete:this.force}).subscribe(()=>{this.translate.get("DIALOGS.DELETE_GROUP.SUCCESS").subscribe(L=>{this.notificator.showSuccess(L),this.dialogRef.close(!0)},()=>this.loading=!1)},()=>this.loading=!1)}onSubmit(w){this.force=w.force,w.deleted?this.onDelete():this.onCancel()}}return R.\u0275fac=function(w){return new(w||R)(m.Y36(e.so),m.Y36(e.WI),m.Y36(C.V6),m.Y36(b.sK),m.Y36(M.ff))},R.\u0275cmp=m.Xpm({type:R,selectors:[["app-delete-group-dialog"]],decls:2,vars:7,consts:[[3,"entityNames","entityType","loading","relations","deleted"]],template:function(w,L){1&w&&(m.TgZ(0,"div")(1,"perun-web-apps-delete-entity-dialog",0),m.NdJ("deleted",function(q){return L.onSubmit(q)}),m.qZA()()),2&w&&(m.Tol(L.theme),m.xp6(1),m.Q6J("entityNames",L.dataSource)("entityType","groups")("loading",L.loading)("relations",L.relations))},dependencies:[D.e]}),R})()},90719:(Xe,ue,p)=>{"use strict";p.d(ue,{m:()=>D});var e=p(61744),A=p(65412),C=p(81591),M=p(30671),m=p(94650),b=p(90995);let D=(()=>{class v{constructor(B,w,L,O,q){this.dialogRef=B,this.data=w,this.serviceManager=L,this.notificator=O,this.translate=q,this.dataSource=new M.by(this.data.services),this.loading=!1,this.relations=[],this.force=!1}ngOnInit(){this.theme=this.data.theme,this.services=this.data.services,this.relations.push(this.translate.instant("DIALOGS.DELETE_SERVICE.DESTINATION_RELATION")),this.anotherMessage=this.translate.instant("DIALOGS.DELETE_SERVICE.MORE_INFORMATION")}onConfirm(){this.loading=!0;const B=this.services.map(w=>w.id);this.serviceManager.deleteServices(B,this.force).subscribe({next:()=>{this.dialogRef.close(!0),this.notificator.showSuccess(this.translate.instant("DIALOGS.DELETE_SERVICE.SUCCESS")),this.loading=!1},error:()=>this.loading=!1})}onCancel(){this.dialogRef.close(!1)}onSubmit(B){this.force=B.force,B.deleted?this.onConfirm():this.onCancel()}}return v.\u0275fac=function(B){return new(B||v)(m.Y36(A.so),m.Y36(A.WI),m.Y36(e.KK),m.Y36(C.V6),m.Y36(C.Te))},v.\u0275cmp=m.Xpm({type:v,selectors:[["app-delete-service-dialog"]],decls:2,vars:8,consts:[[3,"entityNames","entityType","anotherMessage","loading","relations","deleted"]],template:function(B,w){1&B&&(m.TgZ(0,"div")(1,"perun-web-apps-delete-entity-dialog",0),m.NdJ("deleted",function(O){return w.onSubmit(O)}),m.qZA()()),2&B&&(m.Tol(w.theme),m.xp6(1),m.Q6J("entityNames",w.dataSource)("entityType","services")("anotherMessage",w.anotherMessage)("loading",w.loading)("relations",w.relations))},dependencies:[b.e]}),v})()},83491:(Xe,ue,p)=>{"use strict";p.d(ue,{_:()=>_e});var e=p(65412),A=p(61744),C=p(9244),M=p(37433),m=p(81591),b=p(94650),D=p(89383),v=p(36895),R=p(3238),B=p(39349),w=p(59549),L=p(284),O=p(24006),q=p(97392),te=p(4859),z=p(3848),ie=p(56709),Te=p(84385),pe=p(51572),Le=p(10266),T=p(63312),W=p(52170);const F=["*"];let V=(()=>{class Se{}return Se.\u0275fac=function(Ce){return new(Ce||Se)},Se.\u0275cmp=b.Xpm({type:Se,selectors:[["app-edit-application-form-item-line"]],inputs:{label:"label",description:"description"},ngContentSelectors:F,decls:9,vars:2,consts:[[1,"d-flex"],[1,"w-25","m-auto","font-weight-bold"],[1,"w-75"],[1,"d-flex","mb-3"],[1,"w-25"],[1,"w-75","font-italic","text-muted"]],template:function(Ce,fe){1&Ce&&(b.F$t(),b.TgZ(0,"div",0)(1,"span",1),b._uU(2),b.qZA(),b.TgZ(3,"div",2),b.Hsn(4),b.qZA()(),b.TgZ(5,"div",3),b._UZ(6,"span",4),b.TgZ(7,"div",5),b._uU(8),b.qZA()()),2&Ce&&(b.xp6(2),b.hij("",fe.label,":"),b.xp6(6),b.hij(" ",fe.description," "))}}),Se})();var ee=p(57706);let Q=(()=>{class Se{constructor(Ce){this.translateService=Ce}transform(Ce){switch(Ce){case"ALWAYS":case"NEVER":case"IF_PREFILLED":case"IF_EMPTY":return this.translateService.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED."+Ce);default:return Ce}}}return Se.\u0275fac=function(Ce){return new(Ce||Se)(b.Y36(D.sK,16))},Se.\u0275pipe=b.Yjl({name:"applicationFormItemDisabled",type:Se,pure:!0}),Se})(),Ee=(()=>{class Se{constructor(Ce){this.translateService=Ce}transform(Ce){switch(Ce){case"ALWAYS":case"NEVER":case"IF_PREFILLED":case"IF_EMPTY":return this.translateService.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.HIDDEN."+Ce);default:return Ce}}}return Se.\u0275fac=function(Ce){return new(Ce||Se)(b.Y36(D.sK,16))},Se.\u0275pipe=b.Yjl({name:"applicationFormItemHidden",type:Se,pure:!0}),Se})();function ge(Se,Ne){1&Se&&b._UZ(0,"mat-spinner",8)}function ve(Se,Ne){if(1&Se){const Ce=b.EpF();b.TgZ(0,"div")(1,"app-edit-application-form-item-line",12),b.ALo(2,"translate"),b.ALo(3,"translate"),b.TgZ(4,"section")(5,"mat-checkbox",22),b.NdJ("ngModelChange",function(r){b.CHM(Ce);const u=b.oxw(3);return b.KtG(u.applicationFormItem.updatable=r)}),b.qZA()()()()}if(2&Se){const Ce=b.oxw(3);b.xp6(1),b.Q6J("description",b.lcZ(2,3,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.UPDATABLE_DESCRIPTION"))("label",b.lcZ(3,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.UPDATABLE")),b.xp6(4),b.Q6J("ngModel",Ce.applicationFormItem.updatable)}}function De(Se,Ne){if(1&Se){const Ce=b.EpF();b.TgZ(0,"div",13)(1,"mat-form-field",13)(2,"input",14),b.NdJ("ngModelChange",function(r){b.CHM(Ce);const u=b.oxw(3);return b.KtG(u.applicationFormItem.federationAttribute=r)}),b.qZA()()()}if(2&Se){const Ce=b.oxw(3);b.xp6(2),b.Q6J("ngModel",Ce.applicationFormItem.federationAttribute)}}function he(Se,Ne){if(1&Se){const Ce=b.EpF();b.TgZ(0,"div")(1,"app-edit-application-form-item-line",12),b.ALo(2,"translate"),b.ALo(3,"translate"),b.TgZ(4,"section")(5,"mat-checkbox",22),b.NdJ("ngModelChange",function(r){b.CHM(Ce);const u=b.oxw(2);return b.KtG(u.applicationFormItem.required=r)}),b.qZA()()(),b.YNc(6,ve,6,7,"div",17),b.TgZ(7,"app-edit-application-form-item-line",12),b.ALo(8,"translate"),b.ALo(9,"translate"),b.TgZ(10,"div",13)(11,"perun-web-apps-selection-item-search-select",23),b.NdJ("itemSelected",function(r){b.CHM(Ce);const u=b.oxw(2);return b.KtG(u.applicationFormItem.perunSourceAttribute=r.value)}),b.qZA()()(),b.TgZ(12,"app-edit-application-form-item-line",12),b.ALo(13,"translate"),b.ALo(14,"translate"),b.TgZ(15,"div",13)(16,"perun-web-apps-selection-item-search-select",23),b.NdJ("itemSelected",function(r){b.CHM(Ce);const u=b.oxw(2);return b.KtG(u.applicationFormItem.perunDestinationAttribute=r.value)}),b.qZA()()(),b.TgZ(17,"app-edit-application-form-item-line",12),b.ALo(18,"translate"),b.ALo(19,"translate"),b.TgZ(20,"div",13)(21,"perun-web-apps-selection-item-search-select",24),b.NdJ("itemSelected",function(r){b.CHM(Ce);const u=b.oxw(2);return b.KtG(u.changeFederationAttribute(r))}),b.qZA()(),b.YNc(22,De,3,1,"div",25),b.qZA()()}if(2&Se){const Ce=b.oxw(2);b.xp6(1),b.Q6J("description",b.lcZ(2,22,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REQUIRED_DESCRIPTION"))("label",b.lcZ(3,24,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REQUIRED")),b.xp6(4),b.Q6J("ngModel",Ce.applicationFormItem.required),b.xp6(1),b.Q6J("ngIf",Ce.typesWithUpdatable.indexOf(Ce.applicationFormItem.type)>-1),b.xp6(1),b.Q6J("description",b.lcZ(8,26,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SOURCE_ATTRIBUTE_DESCRIPTION"))("label",b.lcZ(9,28,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SOURCE_ATTRIBUTE")),b.xp6(4),b.Q6J("attributes",Ce.sourceAttributes)("selectedAttribute",Ce.applicationFormItem.perunSourceAttribute)("asGroup",!!Ce.data.group)("type",Ce.itemType.SOURCE),b.xp6(1),b.Q6J("description",b.lcZ(13,30,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DESTINATION_ATTRIBUTE_DESCRIPTION"))("label",b.lcZ(14,32,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DESTINATION_ATTRIBUTE")),b.xp6(4),b.Q6J("attributes",Ce.destinationAttributes)("selectedAttribute",Ce.applicationFormItem.perunDestinationAttribute)("asGroup",!!Ce.data.group)("type",Ce.itemType.DESTINATION),b.xp6(1),b.Q6J("description",b.lcZ(18,34,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.FEDERATION_ATTRIBUTE_DESCRIPTION"))("label",b.lcZ(19,36,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.FEDERATION_ATTRIBUTE")),b.xp6(4),b.Q6J("selectedAttribute",Ce.applicationFormItem.federationAttribute)("asGroup",!!Ce.data.group)("type",Ce.itemType.FEDERATION),b.xp6(1),b.Q6J("ngIf"," -- custom value -- "===Ce.federationAttributeDN)}}function Ye(Se,Ne){if(1&Se){const Ce=b.EpF();b.TgZ(0,"div")(1,"app-edit-application-form-item-line",12),b.ALo(2,"translate"),b.ALo(3,"translate"),b.TgZ(4,"mat-form-field",13)(5,"input",14),b.NdJ("ngModelChange",function(r){b.CHM(Ce);const u=b.oxw(2);return b.KtG(u.applicationFormItem.regex=r)}),b.qZA()()()()}if(2&Se){const Ce=b.oxw(2);b.xp6(1),b.Q6J("description",b.lcZ(2,3,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REGEX_DESCRIPTION"))("label",b.lcZ(3,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REGEX")),b.xp6(4),b.Q6J("ngModel",Ce.applicationFormItem.regex)}}function Be(Se,Ne){if(1&Se&&(b.TgZ(0,"mat-option",26),b._uU(1),b.ALo(2,"applicationFormItemDisabled"),b.qZA()),2&Se){const Ce=Ne.$implicit;b.Q6J("value",Ce),b.xp6(1),b.hij(" ",b.lcZ(2,2,Ce)," ")}}function se(Se,Ne){if(1&Se){const Ce=b.EpF();b.TgZ(0,"perun-web-apps-app-form-item-search-select",27),b.NdJ("itemSelected",function(r){b.CHM(Ce);const u=b.oxw(3);return b.KtG(u.disabledDependencyItem=r)}),b.qZA()}if(2&Se){const Ce=b.oxw(3);b.Q6J("item",Ce.disabledDependencyItem)("items",Ce.possibleDependencyItems)}}function le(Se,Ne){if(1&Se){const Ce=b.EpF();b.TgZ(0,"div")(1,"app-edit-application-form-item-line",12),b.ALo(2,"translate"),b.ALo(3,"translate"),b.TgZ(4,"mat-form-field",13)(5,"mat-select",18),b.NdJ("valueChange",function(r){b.CHM(Ce);const u=b.oxw(2);return b.KtG(u.applicationFormItem.disabled=r)}),b.YNc(6,Be,3,4,"mat-option",19),b.qZA()()(),b.TgZ(7,"app-edit-application-form-item-line",12),b.ALo(8,"translate"),b.ALo(9,"translate"),b.TgZ(10,"div",13),b.YNc(11,se,1,2,"perun-web-apps-app-form-item-search-select",20),b.qZA()()()}if(2&Se){const Ce=b.oxw(2);b.xp6(1),b.Q6J("description",b.lcZ(2,7,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED_DESCRIPTION"))("label",b.lcZ(3,9,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED")),b.xp6(4),b.Q6J("value",Ce.applicationFormItem.disabled),b.xp6(1),b.Q6J("ngForOf",Ce.disabledValues),b.xp6(1),b.Q6J("description",b.lcZ(8,11,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED_DEPENDENCY_DESCRIPTION"))("label",b.lcZ(9,13,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED_DEPENDENCY")),b.xp6(4),b.Q6J("ngIf",null!==Ce.disabledDependencyItem)}}function N(Se,Ne){if(1&Se&&(b.TgZ(0,"mat-option",26),b._uU(1),b.ALo(2,"applicationFormItemHidden"),b.qZA()),2&Se){const Ce=Ne.$implicit;b.Q6J("value",Ce),b.xp6(1),b.hij(" ",b.lcZ(2,2,Ce)," ")}}function k(Se,Ne){if(1&Se){const Ce=b.EpF();b.TgZ(0,"perun-web-apps-app-form-item-search-select",27),b.NdJ("itemSelected",function(r){b.CHM(Ce);const u=b.oxw(2);return b.KtG(u.hiddenDependencyItem=r)}),b.qZA()}if(2&Se){const Ce=b.oxw(2);b.Q6J("item",Ce.hiddenDependencyItem)("items",Ce.possibleDependencyItems)}}function be(Se,Ne){if(1&Se){const Ce=b.EpF();b.TgZ(0,"div")(1,"app-edit-application-form-item-line",12),b.ALo(2,"translate"),b.ALo(3,"translate"),b.TgZ(4,"mat-form-field",13)(5,"textarea",28),b.NdJ("ngModelChange",function(r){b.CHM(Ce);const u=b.oxw().$implicit,_=b.oxw(2);return b.KtG(_.applicationFormItem.i18n[u].label=r)}),b.qZA()()()()}if(2&Se){const Ce=b.oxw().$implicit,fe=b.oxw(2);b.xp6(1),b.Q6J("description",b.lcZ(2,4,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.CONTENT_DESCRIPTION"))("label",b.lcZ(3,6,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.CONTENT")),b.xp6(4),b.Q6J("cdkTextareaAutosize",!0)("ngModel",fe.applicationFormItem.i18n[Ce].label)}}function Z(Se,Ne){if(1&Se){const Ce=b.EpF();b.TgZ(0,"div")(1,"app-edit-application-form-item-line",12),b.ALo(2,"translate"),b.ALo(3,"translate"),b.TgZ(4,"mat-form-field",13)(5,"textarea",14),b.NdJ("ngModelChange",function(r){b.CHM(Ce);const u=b.oxw().$implicit,_=b.oxw(2);return b.KtG(_.applicationFormItem.i18n[u].label=r)}),b.qZA()()(),b.TgZ(6,"app-edit-application-form-item-line",12),b.ALo(7,"translate"),b.ALo(8,"translate"),b.TgZ(9,"mat-form-field",13)(10,"textarea",14),b.NdJ("ngModelChange",function(r){b.CHM(Ce);const u=b.oxw().$implicit,_=b.oxw(2);return b.KtG(_.applicationFormItem.i18n[u].help=r)}),b.qZA()()(),b.TgZ(11,"app-edit-application-form-item-line",12),b.ALo(12,"translate"),b.ALo(13,"translate"),b.TgZ(14,"mat-form-field",13)(15,"textarea",14),b.NdJ("ngModelChange",function(r){b.CHM(Ce);const u=b.oxw().$implicit,_=b.oxw(2);return b.KtG(_.applicationFormItem.i18n[u].errorMessage=r)}),b.qZA()()()()}if(2&Se){const Ce=b.oxw().$implicit,fe=b.oxw(2);b.xp6(1),b.Q6J("description",b.lcZ(2,9,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL_DESCRIPTION"))("label",b.lcZ(3,11,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL")),b.xp6(4),b.Q6J("ngModel",fe.applicationFormItem.i18n[Ce].label),b.xp6(1),b.Q6J("description",b.lcZ(7,13,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HELP_DESCRIPTION"))("label",b.lcZ(8,15,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HELP")),b.xp6(4),b.Q6J("ngModel",fe.applicationFormItem.i18n[Ce].help),b.xp6(1),b.Q6J("description",b.lcZ(12,17,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.ERROR_DESCRIPTION"))("label",b.lcZ(13,19,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.ERROR")),b.xp6(4),b.Q6J("ngModel",fe.applicationFormItem.i18n[Ce].errorMessage)}}function ce(Se,Ne){if(1&Se){const Ce=b.EpF();b.TgZ(0,"div")(1,"app-edit-application-form-item-line",12),b.ALo(2,"translate"),b.ALo(3,"translate"),b.TgZ(4,"mat-form-field",13)(5,"textarea",14),b.NdJ("ngModelChange",function(r){b.CHM(Ce);const u=b.oxw().$implicit,_=b.oxw(2);return b.KtG(_.applicationFormItem.i18n[u].label=r)}),b.qZA()()()()}if(2&Se){const Ce=b.oxw().$implicit,fe=b.oxw(2);b.xp6(1),b.Q6J("description",b.lcZ(2,3,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL_BUTTON_DESCRIPTION"))("label",b.lcZ(3,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL")),b.xp6(4),b.Q6J("ngModel",fe.applicationFormItem.i18n[Ce].label)}}function xe(Se,Ne){if(1&Se){const Ce=b.EpF();b.TgZ(0,"div"),b._uU(1),b.ALo(2,"translate"),b.TgZ(3,"mat-form-field")(4,"input",14),b.NdJ("ngModelChange",function(r){const _=b.CHM(Ce).$implicit;return b.KtG(_[0]=r)}),b.qZA()(),b._uU(5),b.ALo(6,"translate"),b.TgZ(7,"mat-form-field")(8,"input",14),b.NdJ("ngModelChange",function(r){const _=b.CHM(Ce).$implicit;return b.KtG(_[1]=r)}),b.qZA()(),b.TgZ(9,"button",37),b.NdJ("click",function(){const u=b.CHM(Ce).$implicit,_=b.oxw(2).$implicit,E=b.oxw(2);return b.KtG(E.removeOption(u,_))}),b.ALo(10,"translate"),b.TgZ(11,"mat-icon"),b._uU(12,"clear"),b.qZA()()()}if(2&Se){const Ce=Ne.$implicit;b.xp6(1),b.hij(" ",b.lcZ(2,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.VALUE"),": "),b.xp6(3),b.Q6J("ngModel",Ce[0]),b.xp6(1),b.hij(" ",b.lcZ(6,7,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL"),": "),b.xp6(3),b.Q6J("ngModel",Ce[1]),b.xp6(1),b.s9C("matTooltip",b.lcZ(10,9,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REMOVE_OPTION"))}}function ot(Se,Ne){if(1&Se){const Ce=b.EpF();b.TgZ(0,"div")(1,"div",29),b._uU(2),b.ALo(3,"translate"),b.qZA(),b.TgZ(4,"div",30),b._uU(5),b.ALo(6,"translate"),b.qZA(),b.TgZ(7,"div",31)(8,"button",32),b.NdJ("click",function(){b.CHM(Ce);const r=b.oxw().$implicit,u=b.oxw(2);return b.KtG(u.sortOptionsAZ(r))}),b.TgZ(9,"i",33),b._uU(10,"arrow_downward"),b.qZA(),b._uU(11),b.ALo(12,"translate"),b.qZA(),b.TgZ(13,"button",34),b.NdJ("click",function(){b.CHM(Ce);const r=b.oxw().$implicit,u=b.oxw(2);return b.KtG(u.sortOptionsZA(r))}),b.TgZ(14,"i",33),b._uU(15,"arrow_upward"),b.qZA(),b._uU(16),b.ALo(17,"translate"),b.qZA()(),b.YNc(18,xe,13,11,"div",35),b.TgZ(19,"button",36),b.NdJ("click",function(){b.CHM(Ce);const r=b.oxw().$implicit,u=b.oxw(2);return b.KtG(u.addOption(r))}),b._uU(20),b.ALo(21,"translate"),b.qZA()()}if(2&Se){const Ce=b.oxw().$implicit,fe=b.oxw(2);b.xp6(2),b.hij(" ",b.lcZ(3,6,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.OPTIONS"),": "),b.xp6(3),b.hij(" ",b.lcZ(6,8,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.OPTIONS_DESCRIPTION")," "),b.xp6(6),b.hij(" ",b.lcZ(12,10,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SORT_BY_LABEL_AZ")," "),b.xp6(5),b.hij(" ",b.lcZ(17,12,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SORT_BY_LABEL_ZA")," "),b.xp6(2),b.Q6J("ngForOf",fe.options[Ce]),b.xp6(2),b.hij(" ",b.lcZ(21,14,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.ADD_OPTION")," ")}}const Fe=function(){return["HEADING","HTML_COMMENT"]},ut=function(){return["TEXTFIELD","VALIDATED_EMAIL","USERNAME","PASSWORD","RADIO","TEXTAREA","COMBOBOX","CHECKBOX","TIMEZONE","SELECTIONBOX","EMBEDDED_GROUP_APPLICATION","LIST_INPUT_BOX","MAP_INPUT_BOX"]},tt=function(){return["SUBMIT_BUTTON","AUTO_SUBMIT_BUTTON"]},vt=function(){return["RADIO","COMBOBOX","CHECKBOX","SELECTIONBOX"]};function X(Se,Ne){if(1&Se&&(b.TgZ(0,"mat-tab",11),b.ALo(1,"translate"),b.ALo(2,"uppercase"),b.YNc(3,be,6,8,"div",17),b.YNc(4,Z,16,21,"div",17),b.YNc(5,ce,6,7,"div",17),b.YNc(6,ot,22,16,"div",17),b.qZA()),2&Se){const Ce=Ne.$implicit,fe=b.oxw(2);b.s9C("label",b.lcZ(1,5,b.lcZ(2,7,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LANGUAGE_"+Ce))),b.xp6(3),b.Q6J("ngIf",fe.isApplicationFormItemOfType(b.DdM(9,Fe))),b.xp6(1),b.Q6J("ngIf",fe.isApplicationFormItemOfType(b.DdM(10,ut))),b.xp6(1),b.Q6J("ngIf",fe.isApplicationFormItemOfType(b.DdM(11,tt))),b.xp6(1),b.Q6J("ngIf",fe.isApplicationFormItemOfType(b.DdM(12,vt)))}}const nt=function(){return["TEXTFIELD","USERNAME","VALIDATED_EMAIL","PASSWORD","TEXTAREA","TIMEZONE","CHECKBOX","RADIO","COMBOBOX","SELECTIONBOX","LIST_INPUT_BOX","MAP_INPUT_BOX"]},Ae=function(){return["TEXTFIELD","USERNAME","PASSWORD","TEXTAREA","CHECKBOX","RADIO","COMBOBOX","SELECTIONBOX","LIST_INPUT_BOX","MAP_INPUT_BOX"]};function ye(Se,Ne){if(1&Se){const Ce=b.EpF();b.TgZ(0,"div",9)(1,"mat-tab-group",10)(2,"mat-tab",11),b.ALo(3,"translate"),b.TgZ(4,"app-edit-application-form-item-line",12),b.ALo(5,"translate"),b.ALo(6,"translate"),b.TgZ(7,"mat-form-field",13)(8,"input",14),b.NdJ("ngModelChange",function(r){b.CHM(Ce);const u=b.oxw();return b.KtG(u.applicationFormItem.shortname=r)}),b.qZA()()(),b.TgZ(9,"app-edit-application-form-item-line",12),b.ALo(10,"translate"),b.ALo(11,"translate"),b._uU(12),b.ALo(13,"applicationFormItemType"),b.qZA(),b.TgZ(14,"app-edit-application-form-item-line",12),b.ALo(15,"translate"),b.ALo(16,"translate"),b.TgZ(17,"section")(18,"mat-checkbox",15),b.NdJ("change",function(){b.CHM(Ce);const r=b.oxw();return b.KtG(r.onChangingType("INITIAL"))}),b._uU(19),b.ALo(20,"translate"),b.qZA(),b.TgZ(21,"mat-checkbox",16),b.NdJ("change",function(){b.CHM(Ce);const r=b.oxw();return b.KtG(r.onChangingType("EXTENSION"))}),b._uU(22),b.ALo(23,"translate"),b.qZA()()(),b.YNc(24,he,23,38,"div",17),b.YNc(25,Ye,6,7,"div",17),b.YNc(26,le,12,15,"div",17),b.TgZ(27,"app-edit-application-form-item-line",12),b.ALo(28,"translate"),b.ALo(29,"translate"),b.TgZ(30,"mat-form-field",13)(31,"mat-select",18),b.NdJ("valueChange",function(r){b.CHM(Ce);const u=b.oxw();return b.KtG(u.applicationFormItem.hidden=r)}),b.YNc(32,N,3,4,"mat-option",19),b.qZA()()(),b.TgZ(33,"app-edit-application-form-item-line",12),b.ALo(34,"translate"),b.ALo(35,"translate"),b.TgZ(36,"div",13),b.YNc(37,k,1,2,"perun-web-apps-app-form-item-search-select",20),b.qZA()()(),b.YNc(38,X,7,13,"mat-tab",21),b.qZA()()}if(2&Se){const Ce=b.oxw();b.xp6(2),b.s9C("label",b.lcZ(3,24,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.BASIC_SETTINGS")),b.xp6(2),b.Q6J("description",b.lcZ(5,26,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SHORT_NAME_DESCRIPTION"))("label",b.lcZ(6,28,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SHORT_NAME")),b.xp6(4),b.Q6J("ngModel",Ce.applicationFormItem.shortname),b.xp6(1),b.Q6J("description",b.lcZ(10,30,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.INPUT_WIDGET_DESCRIPTION"))("label",b.lcZ(11,32,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.INPUT_WIDGET")),b.xp6(3),b.hij(" ",b.lcZ(13,34,Ce.applicationFormItem.type)," "),b.xp6(2),b.Q6J("description",b.lcZ(15,36,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISPLAY_ON_APPLICATION_DESCRIPTION"))("label",b.lcZ(16,38,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISPLAY_ON_APPLICATION")),b.xp6(4),b.Q6J("ngModel",Ce.applicationFormItem.applicationTypes.includes("INITIAL")),b.xp6(1),b.hij(" ",b.lcZ(20,40,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.INITIAL")," "),b.xp6(2),b.Q6J("ngModel",Ce.applicationFormItem.applicationTypes.includes("EXTENSION")),b.xp6(1),b.hij(" ",b.lcZ(23,42,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.EXTENSION")," "),b.xp6(2),b.Q6J("ngIf",Ce.isApplicationFormItemOfType(b.DdM(52,nt))),b.xp6(1),b.Q6J("ngIf",Ce.isApplicationFormItemOfType(b.DdM(53,Ae))),b.xp6(1),b.Q6J("ngIf",Ce.typesWithDisabled.indexOf(Ce.applicationFormItem.type)>-1),b.xp6(1),b.Q6J("description",b.lcZ(28,44,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN_DESCRIPTION"))("label",b.lcZ(29,46,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN")),b.xp6(4),b.Q6J("value",Ce.applicationFormItem.hidden),b.xp6(1),b.Q6J("ngForOf",Ce.hiddenValues),b.xp6(1),b.Q6J("description",b.lcZ(34,48,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN_DEPENDENCY_DESCRIPTION"))("label",b.lcZ(35,50,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN_DEPENDENCY")),b.xp6(4),b.Q6J("ngIf",null!==Ce.hiddenDependencyItem),b.xp6(1),b.Q6J("ngForOf",Ce.languages)}}let _e=(()=>{class Se{constructor(Ce,fe,r,u,_,E){this.dialogRef=Ce,this.data=fe,this.attributesManager=r,this.translateService=u,this.store=_,this.cd=E,this.federationAttributeDN="",this.itemType=M.qG,this.loading=!1,this.hiddenValues=["NEVER","ALWAYS","IF_EMPTY","IF_PREFILLED"],this.disabledValues=["NEVER","ALWAYS","IF_EMPTY","IF_PREFILLED"],this.possibleDependencyItems=[],this.typesWithUpdatable=["VALIDATED_EMAIL","TEXTFIELD","TEXTAREA","CHECKBOX","RADIO","SELECTIONBOX","COMBOBOX","TIMEZONE"],this.typesWithDisabled=["USERNAME","PASSWORD","VALIDATED_EMAIL","TEXTFIELD","TEXTAREA","CHECKBOX","RADIO","SELECTIONBOX","COMBOBOX","LIST_INPUT_BOX","MAP_INPUT_BOX"],this.hiddenDependencyItem=null,this.disabledDependencyItem=null,this.languages=["en"],this.dependencyTypes=["PASSWORD","VALIDATED_EMAIL","TEXTFIELD","TEXTAREA","CHECKBOX","RADIO","SELECTIONBOX","COMBOBOX","USERNAME"]}ngOnInit(){this.languages=this.store.getProperty("supported_languages"),this.hiddenDependencyItem=this.data.allItems.find(Ce=>Ce.id===this.data.applicationFormItem.hiddenDependencyItemId),this.hiddenDependencyItem||(this.hiddenDependencyItem=M.Sx),this.disabledDependencyItem=this.data.allItems.find(Ce=>Ce.id===this.data.applicationFormItem.disabledDependencyItemId),this.disabledDependencyItem||(this.disabledDependencyItem=M.Sx),this.theme=this.data.theme,this.possibleDependencyItems=this.getPossibleDepItems(),this.applicationFormItem=(0,C.dv)(this.languages),this.copy(this.data.applicationFormItem,this.applicationFormItem),this.loading=!0,this.attributesManager.getAllAttributeDefinitions().subscribe(Ce=>{const fe=this.filterAttributesForWidget(Ce);this.sourceAttributes=fe.concat(this.findAttribute(Ce,this.applicationFormItem.perunSourceAttribute)),this.destinationAttributes=fe.concat(this.findAttribute(Ce,this.applicationFormItem.perunDestinationAttribute)),this.loading=!1},()=>this.loading=!1),null===this.applicationFormItem.perunDestinationAttribute&&(this.applicationFormItem.perunDestinationAttribute=""),null===this.applicationFormItem.perunSourceAttribute&&(this.applicationFormItem.perunSourceAttribute=""),this.getOptions()}cancel(){this.dialogRef.close()}submit(){this.applicationFormItem.hiddenDependencyItemId=this.hiddenDependencyItem===M.Sx?null:this.hiddenDependencyItem.id,this.applicationFormItem.disabledDependencyItemId=this.disabledDependencyItem===M.Sx?null:this.disabledDependencyItem.id,this.updateOptions(),this.copy(this.applicationFormItem,this.data.applicationFormItem),this.dialogRef.close(!0)}onChangingType(Ce){if(this.applicationFormItem.applicationTypes.includes(Ce)){const fe=this.applicationFormItem.applicationTypes.indexOf(Ce);this.applicationFormItem.applicationTypes.splice(fe,1)}else this.applicationFormItem.applicationTypes.push(Ce)}addOption(Ce){this.options[Ce].push(["",""])}removeOption(Ce,fe){this.options[fe]=this.options[fe].filter(r=>!(r[0]===Ce[0]&&r[1]===Ce[1]))}sortOptionsAZ(Ce){this.options[Ce]=this.options[Ce].sort((fe,r)=>fe[1]>r[1]?1:fe[1]fe[1]>r[1]?-1:fe[1]this.dependencyTypes.includes(Ce.type)).filter(Ce=>Ce.id!==this.data.applicationFormItem.id))}updateOption(Ce){let fe="";if(this.options[Ce])for(const r of this.options[Ce])""!==r[0]&&""!==r[1]&&(fe=""===fe?r[0]+"#"+r[1]:fe+"|"+r[0]+"#"+r[1]);this.applicationFormItem.i18n[Ce].options=fe}updateOptions(){for(const Ce of this.languages)this.updateOption(Ce)}findAttribute(Ce,fe){return Ce.find(r=>fe.includes(r.friendlyName))}filterAttributesForWidget(Ce){return Ce.filter("MAP_INPUT_BOX"===this.applicationFormItem.type?fe=>fe.type.includes("LinkedHashMap"):"LIST_INPUT_BOX"===this.applicationFormItem.type?fe=>fe.type.includes("ArrayList"):fe=>!fe.type.includes("ArrayList")&&!fe.type.includes("LinkedHashMap"))}}return Se.\u0275fac=function(Ce){return new(Ce||Se)(b.Y36(e.so),b.Y36(e.WI),b.Y36(A.H8),b.Y36(D.sK),b.Y36(m.d6),b.Y36(b.sBO))},Se.\u0275cmp=b.Xpm({type:Se,selectors:[["app-edit-application-form-item-dialog"]],decls:16,vars:20,consts:[[1,"h-100","d-flex","flex-column"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",1,"d-flex","mt-auto"],["mat-flat-button","",1,"ml-auto","mt-auto",3,"click"],[3,"matTooltipDisabled","matTooltip"],["mat-flat-button","","color","accent","data-cy","edit-form-item-button-dialog",1,"ml-2","mt-auto",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["color","primary"],[3,"label"],[3,"description","label"],[1,"w-100"],["matInput","",3,"ngModel","ngModelChange"],[1,"mr-2",3,"ngModel","change"],[3,"ngModel","change"],[4,"ngIf"],["disableOptionCentering","",3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[3,"item","items","itemSelected",4,"ngIf"],[3,"label",4,"ngFor","ngForOf"],[3,"ngModel","ngModelChange"],[3,"attributes","selectedAttribute","asGroup","type","itemSelected"],[3,"selectedAttribute","asGroup","type","itemSelected"],["class","w-100",4,"ngIf"],[3,"value"],[3,"item","items","itemSelected"],["matInput","",3,"cdkTextareaAutosize","ngModel","ngModelChange"],[1,"font-weight-bold"],[1,"text-muted","font-italic"],[1,"d-flex","mt-2","mb-2"],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],[1,"material-icons"],["mat-flat-button","",1,"mr-auto",3,"click"],[4,"ngFor","ngForOf"],["color","accent","mat-flat-button","",1,"mr-2",3,"click"],["color","warn","mat-icon-button","",3,"matTooltip","click"]],template:function(Ce,fe){1&Ce&&(b.TgZ(0,"div")(1,"div",0)(2,"h1",1),b._uU(3),b.ALo(4,"translate"),b.qZA(),b.YNc(5,ge,1,0,"mat-spinner",2),b.YNc(6,ye,39,54,"div",3),b.TgZ(7,"div",4)(8,"button",5),b.NdJ("click",function(){return fe.cancel()}),b._uU(9),b.ALo(10,"translate"),b.qZA(),b.TgZ(11,"div",6),b.ALo(12,"translate"),b.TgZ(13,"button",7),b.NdJ("click",function(){return fe.submit()}),b._uU(14),b.ALo(15,"translate"),b.qZA()()()()()),2&Ce&&(b.Gre("",fe.theme," h-100"),b.xp6(3),b.AsE(" ",b.lcZ(4,12,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.TITLE")," : ",fe.applicationFormItem.shortname," "),b.xp6(2),b.Q6J("ngIf",fe.loading),b.xp6(1),b.Q6J("ngIf",!fe.loading),b.xp6(3),b.hij(" ",b.lcZ(10,14,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.CANCEL_BUTTON")," "),b.xp6(2),b.s9C("matTooltip",b.lcZ(12,16,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SUBMIT_BUTTON_DISABLED_TOOLTIP")),b.Q6J("matTooltipDisabled",!fe.applicationFormItem.required||""!==fe.applicationFormItem.perunSourceAttribute||""!==fe.applicationFormItem.federationAttribute||"ALWAYS"!==fe.applicationFormItem.disabled&&"ALWAYS"!==fe.applicationFormItem.hidden),b.xp6(2),b.Q6J("disabled",fe.loading||fe.applicationFormItem.required&&""===fe.applicationFormItem.perunSourceAttribute&&""===fe.applicationFormItem.federationAttribute&&("ALWAYS"===fe.applicationFormItem.disabled||"ALWAYS"===fe.applicationFormItem.hidden)),b.xp6(1),b.hij(" ",b.lcZ(15,18,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SUBMIT_BUTTON")," "))},dependencies:[v.sg,v.O5,R.ey,B.IC,w.KE,L.Nt,O.Fj,O.JJ,O.On,q.Hw,te.lW,z.SP,z.uX,ie.oG,e.uh,e.xY,e.H8,Te.gD,pe.Ou,Le.gM,T.Y,W.$x,V,v.gd,D.X$,ee.c,Q,Ee]}),Se})()},19352:(Xe,ue,p)=>{"use strict";p.d(ue,{H:()=>De});var e=p(61744),A=p(65412),C=p(81591),M=p(30671),m=p(9244),b=p(21029),D=p(36895),v=p(94650),R=p(97392),B=p(4859),w=p(51572),L=p(10266),O=p(89383),q=p(31359);function te(he,Ye){1&he&&v._UZ(0,"mat-spinner",6)}function z(he,Ye){1&he&&(v.TgZ(0,"th",17),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&he&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"DIALOGS.EDIT_MEMBER_SPONSORS.TABLE_ID")," "))}function ie(he,Ye){if(1&he&&(v.TgZ(0,"td",18),v._uU(1),v.qZA()),2&he){const Be=Ye.$implicit;v.xp6(1),v.Oqu(Be.user.id)}}function Te(he,Ye){1&he&&(v.TgZ(0,"th",17),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&he&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"DIALOGS.EDIT_MEMBER_SPONSORS.TABLE_NAME")," "))}function pe(he,Ye){if(1&he&&(v.TgZ(0,"td",18),v._uU(1),v.ALo(2,"userFullName"),v.qZA()),2&he){const Be=Ye.$implicit;v.xp6(1),v.Oqu(v.lcZ(2,1,Be.user))}}function Le(he,Ye){1&he&&(v.TgZ(0,"th",17),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&he&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"DIALOGS.EDIT_MEMBER_SPONSORS.TABLE_EXPIRATION")," "))}function T(he,Ye){if(1&he){const Be=v.EpF();v.TgZ(0,"button",20),v.NdJ("click",function(){v.CHM(Be);const le=v.oxw().$implicit,N=v.oxw(2);return v.KtG(N.changeExpiration(le))}),v.TgZ(1,"mat-icon"),v._uU(2," today "),v.qZA()()}}function W(he,Ye){if(1&he&&(v.TgZ(0,"td",18)(1,"span"),v._uU(2),v.qZA(),v.YNc(3,T,3,0,"button",19),v.qZA()),2&he){const Be=Ye.$implicit,se=v.oxw(2);v.xp6(2),v.Oqu(se.parseDate(Be.validityTo)),v.xp6(1),v.Q6J("ngIf",se.isExpirationAuthorized(Be))}}function F(he,Ye){1&he&&v._UZ(0,"th",17)}function V(he,Ye){1&he&&(v.TgZ(0,"mat-icon",25),v._uU(1,"clear"),v.qZA())}function ee(he,Ye){1&he&&(v.TgZ(0,"mat-icon"),v._uU(1,"settings_backup_restore"),v.qZA())}function Q(he,Ye){if(1&he){const Be=v.EpF();v.TgZ(0,"td",18)(1,"div",21),v.ALo(2,"translate"),v.TgZ(3,"button",22),v.NdJ("click",function(){const N=v.CHM(Be).$implicit,k=v.oxw(2);return v.KtG(k.markSponsor(N))}),v.YNc(4,V,2,0,"mat-icon",23),v.YNc(5,ee,2,0,"mat-icon",24),v.qZA()()()}if(2&he){const Be=Ye.$implicit,se=v.oxw(2);v.xp6(1),v.s9C("matTooltip",v.lcZ(2,7,"DIALOGS.EDIT_MEMBER_SPONSORS.REMOVE_SPONSOR_DISABLED")),v.Q6J("matTooltipDisabled",se.isRemoveAuthorized(Be))("matTooltipPosition","above"),v.xp6(2),v.Q2q("data-cy","",Be.user.firstName,"-unsponsor-mark-button"),v.Q6J("disabled",!se.isRemoveAuthorized(Be)),v.xp6(1),v.Q6J("ngIf",!se.sponsorsToRemove.has(Be.user.id)),v.xp6(1),v.Q6J("ngIf",se.sponsorsToRemove.has(Be.user.id))}}function Ee(he,Ye){1&he&&v._UZ(0,"tr",26)}function ge(he,Ye){if(1&he&&v._UZ(0,"tr",27),2&he){const Be=Ye.$implicit,se=v.oxw(2);v.ekj("make-red",se.sponsorsToRemove.has(Be.user.id))}}function ve(he,Ye){if(1&he&&(v.TgZ(0,"div",7)(1,"table",8),v.ynx(2,9),v.YNc(3,z,3,3,"th",10),v.YNc(4,ie,2,1,"td",11),v.BQk(),v.ynx(5,12),v.YNc(6,Te,3,3,"th",10),v.YNc(7,pe,3,3,"td",11),v.BQk(),v.ynx(8,13),v.YNc(9,Le,3,3,"th",10),v.YNc(10,W,4,2,"td",11),v.BQk(),v.ynx(11,14),v.YNc(12,F,1,0,"th",10),v.YNc(13,Q,6,9,"td",11),v.BQk(),v.YNc(14,Ee,1,0,"tr",15),v.YNc(15,ge,1,2,"tr",16),v.qZA()()),2&he){const Be=v.oxw();v.xp6(1),v.Q6J("dataSource",Be.dataSource),v.xp6(13),v.Q6J("matHeaderRowDef",Be.displayedColumns),v.xp6(1),v.Q6J("matRowDefColumns",Be.displayedColumns)}}let De=(()=>{class he{constructor(Be,se,le,N,k,be,Z,ce){this.dialogRef=Be,this.data=se,this.memberService=le,this.userService=N,this.notificator=k,this.authResolver=be,this.translate=Z,this.dialog=ce,this.displayedColumns=["id","name","expiration","remove"],this.loading=!1,this.sponsorsToRemove=new Set,this.expirationChanged=!1}ngOnInit(){this.theme=this.data.theme,this.sponsors=this.data.sponsors,this.dataSource=new M.by(this.data.sponsors),this.vo={beanName:"Vo",id:this.data.member.voId}}markSponsor(Be){this.sponsorsToRemove.has(Be.user.id)?this.sponsorsToRemove.delete(Be.user.id):this.sponsorsToRemove.add(Be.user.id)}onSubmit(){this.loading=!0;const Be=Array.from(this.sponsorsToRemove);this.removeSponsors(Be)}onCancel(){this.dialogRef.close(this.expirationChanged)}isRemoveAuthorized(Be){return this.authResolver.isAuthorized("sponsored-removeSponsor_Member_User_policy",[this.data.member])&&this.authResolver.isAuthorized("sponsor-removeSponsor_Member_User_policy",[Be.user])}isExpirationAuthorized(Be){return this.authResolver.isAuthorized("updateSponsorshipValidity_Member_User_LocalDate",[Be.user,this.vo])}parseDate(Be){return null===Be?"Never expire":(0,D.p6)(Be,"d.M.y","en")}changeExpiration(Be){const se=(0,m.kZ)();se.width="400px",se.data={memberId:this.data.member.id,sponsor:Be},this.dialog.open(b.hd,se).afterClosed().subscribe(N=>{N&&(this.loading=!0,this.expirationChanged=!0,this.userService.getSponsorsForMember(this.data.member.id,[]).subscribe(k=>{this.sponsors=k,this.dataSource=new M.by(this.sponsors),this.loading=!1}))})}removeSponsors(Be){this.memberService.removeSponsors(this.data.member.id,Be).subscribe({next:()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.EDIT_MEMBER_SPONSORS.SUCCESS")),this.loading=!1,this.dialogRef.close(!0)},error:()=>this.loading=!1})}}return he.\u0275fac=function(Be){return new(Be||he)(v.Y36(A.so),v.Y36(A.WI),v.Y36(e.uq),v.Y36(e.Fv),v.Y36(C.V6),v.Y36(C.x4),v.Y36(C.Te),v.Y36(A.uw))},he.\u0275cmp=v.Xpm({type:he,selectors:[["app-edit-member-sponsors-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["data-cy","unsponsor-confirm-button","color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","expiration"],["matColumnDef","remove"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"make-red",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","",3,"click",4,"ngIf"],["mat-icon-button","",3,"click"],[3,"matTooltipDisabled","matTooltipPosition","matTooltip"],["mat-icon-button","",1,"btn-delete",3,"disabled","click"],["class","icn-delete","color","warn",4,"ngIf"],[4,"ngIf"],["color","warn",1,"icn-delete"],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(Be,se){1&Be&&(v.TgZ(0,"h1",0),v._uU(1),v.ALo(2,"translate"),v.qZA(),v.TgZ(3,"div"),v.YNc(4,te,1,0,"mat-spinner",1),v.YNc(5,ve,16,3,"div",2),v.TgZ(6,"div",3)(7,"button",4),v.NdJ("click",function(){return se.onCancel()}),v._uU(8),v.ALo(9,"translate"),v.qZA(),v.TgZ(10,"button",5),v.NdJ("click",function(){return se.onSubmit()}),v._uU(11),v.ALo(12,"translate"),v.qZA()()()),2&Be&&(v.xp6(1),v.Oqu(v.lcZ(2,9,"DIALOGS.EDIT_MEMBER_SPONSORS.TITLE")),v.xp6(2),v.Tol(se.theme),v.xp6(1),v.Q6J("ngIf",se.loading),v.xp6(1),v.Q6J("ngIf",!se.loading),v.xp6(3),v.hij(" ",v.lcZ(9,11,"DIALOGS.EDIT_MEMBER_SPONSORS.CANCEL")," "),v.xp6(2),v.Q6J("disabled",se.loading||0===se.sponsorsToRemove.size),v.xp6(1),v.hij(" ",v.lcZ(12,13,"DIALOGS.EDIT_MEMBER_SPONSORS.SUBMIT")," "))},dependencies:[D.O5,R.Hw,B.lW,M.BZ,M.fO,M.as,M.w1,M.Dz,M.nj,M.ge,M.ev,M.XQ,M.Gk,A.uh,A.xY,A.H8,w.Ou,L.gM,O.X$,q.d],styles:[".make-red[_ngcontent-%COMP%]{background-color:#ffcdd2}.btn-delete[_ngcontent-%COMP%]:disabled .icn-delete[_ngcontent-%COMP%]{color:gray}"]}),he})()},74414:(Xe,ue,p)=>{"use strict";p.d(ue,{R:()=>T});var e=p(65412),A=p(24006),C=p(61744),M=p(81591),m=p(94650),b=p(89383),D=p(36895),v=p(3238),R=p(59549),B=p(284),w=p(4859),L=p(84385),O=p(51572);function q(W,F){1&W&&m._UZ(0,"mat-spinner",6)}function te(W,F){1&W&&(m.TgZ(0,"div",14),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&W&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"DIALOGS.INVITE_MEMBER.DESCRIPTION_VO")," "))}function z(W,F){1&W&&(m.TgZ(0,"div",14),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&W&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"DIALOGS.INVITE_MEMBER.DESCRIPTION_GROUP")," "))}function ie(W,F){1&W&&(m.TgZ(0,"mat-error"),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&W&&(m.xp6(1),m.Oqu(m.lcZ(2,1,"DIALOGS.INVITE_MEMBER.NAME_ERROR")))}function Te(W,F){1&W&&(m.TgZ(0,"mat-error"),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&W&&(m.xp6(1),m.Oqu(m.lcZ(2,1,"DIALOGS.INVITE_MEMBER.EMAIL_ERROR")))}function pe(W,F){if(1&W&&(m.TgZ(0,"mat-option",15),m._uU(1),m.ALo(2,"translate"),m.ALo(3,"uppercase"),m.qZA()),2&W){const V=F.$implicit;m.s9C("value",V),m.xp6(1),m.Oqu(m.lcZ(2,2,m.lcZ(3,4,"SHARED_LIB.LANGUAGES."+V)))}}function Le(W,F){if(1&W){const V=m.EpF();m.TgZ(0,"div",7),m.YNc(1,te,3,3,"div",8),m.YNc(2,z,3,3,"div",8),m.TgZ(3,"mat-form-field",9),m._UZ(4,"input",10),m.ALo(5,"translate"),m.YNc(6,ie,3,3,"mat-error",11),m.qZA(),m.TgZ(7,"mat-form-field",9),m._UZ(8,"textarea",10),m.ALo(9,"translate"),m.YNc(10,Te,3,3,"mat-error",11),m.qZA(),m.TgZ(11,"mat-form-field",9)(12,"mat-label"),m._uU(13),m.ALo(14,"translate"),m.qZA(),m.TgZ(15,"mat-select",12),m.NdJ("valueChange",function(Q){m.CHM(V);const Ee=m.oxw();return m.KtG(Ee.currentLanguage=Q)}),m.YNc(16,pe,4,6,"mat-option",13),m.qZA()()()}if(2&W){const V=m.oxw();m.xp6(1),m.Q6J("ngIf",!V.data.groupId),m.xp6(1),m.Q6J("ngIf",V.data.groupId),m.xp6(2),m.s9C("placeholder",m.lcZ(5,11,"DIALOGS.INVITE_MEMBER.NAME")),m.Q6J("formControl",V.name),m.xp6(2),m.Q6J("ngIf",V.name.invalid),m.xp6(2),m.s9C("placeholder",m.lcZ(9,13,"DIALOGS.INVITE_MEMBER.EMAIL")),m.Q6J("formControl",V.emailForm),m.xp6(2),m.Q6J("ngIf",V.emailForm.invalid),m.xp6(3),m.Oqu(m.lcZ(14,15,"DIALOGS.INVITE_MEMBER.LANGUAGE")),m.xp6(2),m.Q6J("value",V.currentLanguage),m.xp6(1),m.Q6J("ngForOf",V.languages)}}let T=(()=>{class W{constructor(V,ee,Q,Ee,ge,ve){this.dialogRef=V,this.data=ee,this.registrarManager=Q,this.notificator=Ee,this.translate=ge,this.store=ve,this.emailForm=new A.p4("",[A.kI.required,A.kI.email.bind(this)]),this.languages=["en"],this.currentLanguage="en",this.name=new A.p4("",A.kI.required),this.loading=!1}ngOnInit(){this.languages=this.store.getProperty("supported_languages"),this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.emailForm.invalid||this.name.invalid||(this.data.voId&&!this.data.groupId?(this.loading=!0,this.registrarManager.sendInvitation(this.emailForm.value,this.currentLanguage,this.data.voId).subscribe(()=>{this.translate.get("DIALOGS.INVITE_MEMBER.SUCCESS").subscribe(V=>{this.notificator.showSuccess(V),this.dialogRef.close(!0)})},()=>this.loading=!1)):(this.loading=!0,this.registrarManager.sendInvitationForGroup(this.emailForm.value,this.currentLanguage,this.data.voId,this.data.groupId).subscribe(()=>{this.translate.get("DIALOGS.INVITE_MEMBER.SUCCESS").subscribe(V=>{this.notificator.showSuccess(V),this.dialogRef.close(!0)})},()=>this.loading=!1)))}}return W.\u0275fac=function(V){return new(V||W)(m.Y36(e.so),m.Y36(e.WI),m.Y36(C.tk),m.Y36(M.V6),m.Y36(b.sK),m.Y36(M.d6))},W.\u0275cmp=m.Xpm({type:W,selectors:[["app-invite-member-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],["class","font-italic",4,"ngIf"],[1,"w-100"],["matInput","","required","",3,"placeholder","formControl"],[4,"ngIf"],[3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[1,"font-italic"],[3,"value"]],template:function(V,ee){1&V&&(m.TgZ(0,"div")(1,"h1",0),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.YNc(4,q,1,0,"mat-spinner",1),m.YNc(5,Le,17,17,"div",2),m.TgZ(6,"div",3)(7,"button",4),m.NdJ("click",function(){return ee.onCancel()}),m._uU(8),m.ALo(9,"translate"),m.qZA(),m.TgZ(10,"button",5),m.NdJ("click",function(){return ee.onSubmit()}),m._uU(11),m.ALo(12,"translate"),m.qZA()()()),2&V&&(m.Tol(ee.theme),m.xp6(2),m.Oqu(m.lcZ(3,9,"DIALOGS.INVITE_MEMBER.TITLE")),m.xp6(2),m.Q6J("ngIf",ee.loading),m.xp6(1),m.Q6J("ngIf",!ee.loading),m.xp6(3),m.hij(" ",m.lcZ(9,11,"DIALOGS.INVITE_MEMBER.CANCEL")," "),m.xp6(2),m.Q6J("disabled",ee.emailForm.invalid||ee.name.invalid||ee.loading),m.xp6(1),m.hij(" ",m.lcZ(12,13,"DIALOGS.INVITE_MEMBER.INVITE")," "))},dependencies:[D.sg,D.O5,v.ey,R.TO,R.KE,R.hX,B.Nt,A.Fj,A.JJ,A.Q7,A.oH,w.lW,e.uh,e.xY,e.H8,L.gD,O.Ou,D.gd,b.X$]}),W})()},87842:(Xe,ue,p)=>{"use strict";p.d(ue,{c:()=>Q});var e=p(65412),A=p(24006),C=p(68675),M=p(54004),m=p(36769),b=p(81591),D=p(61744),v=p(94650),R=p(89383),B=p(36895),w=p(47957),L=p(3238),O=p(59549),q=p(284),te=p(4859),z=p(51572),ie=p(10266),Te=p(71948),pe=p(98380);function Le(Ee,ge){1&Ee&&(v.TgZ(0,"mat-radio-button",12),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&Ee&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"DIALOGS.MOVE_GROUP.NO_GROUP")," "))}function T(Ee,ge){1&Ee&&(v.TgZ(0,"mat-radio-button",13),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&Ee&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"DIALOGS.MOVE_GROUP.TO_GROUP")," "))}function W(Ee,ge){1&Ee&&(v.TgZ(0,"perun-web-apps-alert",14),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&Ee&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"DIALOGS.MOVE_GROUP.CANNOT_MOVE")," "))}function F(Ee,ge){if(1&Ee){const ve=v.EpF();v.TgZ(0,"mat-option",20),v.NdJ("click",function(){const Ye=v.CHM(ve).$implicit,Be=v.oxw(2);return v.KtG(Be.selectedGroup=Ye)}),v.TgZ(1,"span"),v._uU(2),v.qZA()()}if(2&Ee){const ve=ge.$implicit;v.Q6J("value",ve),v.xp6(2),v.Oqu(ve.name)}}function V(Ee,ge){if(1&Ee){const ve=v.EpF();v.TgZ(0,"mat-form-field",15)(1,"input",16),v.NdJ("change",function(){v.CHM(ve);const he=v.oxw();return v.KtG(he.selectedGroup=null)}),v.ALo(2,"translate"),v.qZA(),v.TgZ(3,"mat-autocomplete",17,18),v.YNc(5,F,3,2,"mat-option",19),v.ALo(6,"async"),v.qZA()()}if(2&Ee){const ve=v.MAs(4),De=v.oxw();v.Q6J("@openClose","toGroup"===De.moveOption?"open":"closed"),v.xp6(1),v.s9C("placeholder",v.lcZ(2,6,"DIALOGS.MOVE_GROUP.GROUP_SELECT")),v.Q6J("formControl",De.otherGroupsCtrl)("matAutocomplete",ve),v.xp6(2),v.Q6J("displayWith",De.displayFn),v.xp6(2),v.Q6J("ngForOf",v.lcZ(6,8,De.filteredGroups))}}function ee(Ee,ge){1&Ee&&v._UZ(0,"mat-spinner",21)}let Q=(()=>{class Ee{constructor(ve,De,he,Ye,Be,se,le){this.dialogRef=ve,this.data=De,this.groupService=he,this.notificator=Ye,this.translate=Be,this.apiRequest=se,this.authResolver=le,this.toRootOptionDisabled=!1,this.toGroupOptionDisabled=!1,this.otherGroups=[],this.otherGroupsCtrl=new A.p4(null,[A.kI.required.bind(this)]),this.loading=!1,this.selectedGroup=null,this.translate.get("DIALOGS.MOVE_GROUP.SUCCESS").subscribe(N=>this.successMessage=N),this.translate.get("DIALOGS.MOVE_GROUP.ERROR").subscribe(N=>this.errorMessage=N)}ngOnInit(){this.loading=!0,this.groupService.getAllGroups(this.data.group.voId).subscribe(ve=>{this.otherGroups=ve.filter(De=>De.id!==this.data.group.id&&"members"!==De.name&&this.canMove(De)),0===this.otherGroups.length&&(this.toGroupOptionDisabled=!0),(null===this.data.group.parentGroupId||!this.authResolver.isAuthorized("destination_null-moveGroup_Group_Group_policy",[this.data.group]))&&(this.toRootOptionDisabled=!0,this.moveOption="toGroup"),this.filteredGroups=this.otherGroupsCtrl.valueChanges.pipe((0,C.O)(""),(0,M.U)(De=>De?this._filterGroups(De):this.otherGroups.slice())),this.loading=!1},()=>this.loading=!1)}displayFn(ve){return ve&&ve.name}canMove(ve){return this.authResolver.isAuthorized("moveGroup_Group_Group_policy",[ve,this.data.group])&&this.authResolver.isAuthorized("moveGroup_Group_Group_policy",[this.data.group,ve])}close(){this.dialogRef.close()}confirm(){this.loading=!0,this.apiRequest.dontHandleErrorForNext(),this.groupService.moveGroupWithDestinationGroupMovingGroup(this.data.group.id,this.otherGroupsCtrl.value?this.otherGroupsCtrl.value.id:void 0).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0)},ve=>{this.notificator.showRPCError(ve,this.errorMessage),this.dialogRef.close(!1)})}_filterGroups(ve){if("object"==typeof ve)return[];const De=ve.toLowerCase();return ve?this.otherGroups.filter(he=>he.name.toLowerCase().includes(De)):this.otherGroups}}return Ee.\u0275fac=function(ve){return new(ve||Ee)(v.Y36(e.so),v.Y36(e.WI),v.Y36(D.ff),v.Y36(b.V6),v.Y36(R.sK),v.Y36(b.F5),v.Y36(b.x4))},Ee.\u0275cmp=v.Xpm({type:Ee,selectors:[["app-move-group-dialog"]],decls:23,vars:28,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[3,"ngModel","ngModelChange"],["color","primary","class","move-options","value","toRoot",4,"ngIf"],["color","primary","value","toGroup",4,"ngIf"],["alert_type","warn",4,"ngIf"],["class","w-100 mt-2",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],[3,"matTooltipDisabled","matTooltipPosition","matTooltip"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],["color","primary","value","toRoot",1,"move-options"],["color","primary","value","toGroup"],["alert_type","warn"],[1,"w-100","mt-2"],["matInput","","required","",3,"placeholder","formControl","matAutocomplete","change"],[3,"displayWith"],["groupSelectAutocomplete","matAutocomplete"],[3,"value","click",4,"ngFor","ngForOf"],[3,"value","click"],[1,"ml-auto","mr-auto"]],template:function(ve,De){1&ve&&(v.TgZ(0,"div")(1,"h1",0),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.TgZ(4,"div",1)(5,"p"),v._uU(6),v.ALo(7,"translate"),v.qZA(),v.TgZ(8,"mat-radio-group",2),v.NdJ("ngModelChange",function(Ye){return De.moveOption=Ye}),v.YNc(9,Le,3,3,"mat-radio-button",3),v.YNc(10,T,3,3,"mat-radio-button",4),v.qZA(),v.YNc(11,W,3,3,"perun-web-apps-alert",5),v.YNc(12,V,7,10,"mat-form-field",6),v.qZA(),v.YNc(13,ee,1,0,"mat-spinner",7),v.TgZ(14,"div",8)(15,"button",9),v.NdJ("click",function(){return De.close()}),v._uU(16),v.ALo(17,"translate"),v.qZA(),v.TgZ(18,"span",10),v.ALo(19,"translate"),v.TgZ(20,"button",11),v.NdJ("click",function(){return De.confirm()}),v._uU(21),v.ALo(22,"translate"),v.qZA()()()()),2&ve&&(v.Tol(De.data.theme),v.xp6(2),v.AsE("",v.lcZ(3,18,"DIALOGS.MOVE_GROUP.TITLE"),"",De.data.group.name,""),v.xp6(4),v.hij(" ",v.lcZ(7,20,"DIALOGS.MOVE_GROUP.INFO")," "),v.xp6(2),v.Q6J("ngModel",De.moveOption),v.xp6(1),v.Q6J("ngIf",!De.toRootOptionDisabled),v.xp6(1),v.Q6J("ngIf",!De.toGroupOptionDisabled),v.xp6(1),v.Q6J("ngIf",De.toRootOptionDisabled&&De.toGroupOptionDisabled),v.xp6(1),v.Q6J("ngIf",!De.toGroupOptionDisabled),v.xp6(1),v.Q6J("ngIf",De.loading),v.xp6(3),v.hij(" ",v.lcZ(17,22,"DIALOGS.MOVE_GROUP.CANCEL")," "),v.xp6(2),v.s9C("matTooltip",v.lcZ(19,24,"DIALOGS.MOVE_GROUP.DISABLED_HINT")),v.Q6J("matTooltipDisabled",null!==De.selectedGroup||"toRoot"===De.moveOption)("matTooltipPosition","above"),v.xp6(2),v.Q6J("disabled",(De.otherGroupsCtrl.invalid||null===De.selectedGroup)&&"toRoot"!==De.moveOption||De.loading),v.xp6(1),v.hij(" ",v.lcZ(22,26,"DIALOGS.MOVE_GROUP.CONFIRM")," "))},dependencies:[B.sg,B.O5,w.XC,w.ZL,L.ey,O.KE,q.Nt,A.Fj,A.JJ,A.Q7,A.oH,A.On,te.lW,e.uh,e.xY,e.H8,z.Ou,ie.gM,Te.VQ,Te.U0,pe.w,B.Ov,R.X$],styles:[".move-options[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:15px 0}"],data:{animation:[m.BQ]}}),Ee})()},58964:(Xe,ue,p)=>{"use strict";p.d(ue,{m:()=>ie});var e=p(65412),A=p(61744),C=p(81591),M=p(94650),m=p(89383),b=p(36895),D=p(3238),v=p(59549),R=p(4859),B=p(84385),w=p(51572);function L(Te,pe){1&Te&&M._UZ(0,"mat-spinner",7)}function O(Te,pe){if(1&Te&&(M.TgZ(0,"mat-option",13),M._uU(1),M.qZA()),2&Te){const Le=pe.$implicit;M.Q6J("value",Le),M.xp6(1),M.hij(" ",Le.friendlyNameParameter," ")}}function q(Te,pe){if(1&Te&&(M.TgZ(0,"mat-option",13),M._uU(1),M.ALo(2,"translate"),M.ALo(3,"uppercase"),M.qZA()),2&Te){const Le=pe.$implicit;M.Q6J("value",Le),M.xp6(1),M.hij(" ",M.lcZ(2,2,M.lcZ(3,4,"SHARED_LIB.LANGUAGES."+Le))," ")}}function te(Te,pe){if(1&Te&&(M.TgZ(0,"mat-option",13),M._uU(1),M.qZA()),2&Te){const Le=pe.$implicit;M.Q6J("value",Le),M.xp6(1),M.hij(" ",Le," ")}}function z(Te,pe){if(1&Te){const Le=M.EpF();M.TgZ(0,"div",8)(1,"mat-form-field")(2,"mat-label"),M._uU(3),M.ALo(4,"translate"),M.qZA(),M.TgZ(5,"mat-select",9),M.NdJ("valueChange",function(W){M.CHM(Le);const F=M.oxw();return M.KtG(F.selectedLogin=W)}),M.YNc(6,O,2,2,"mat-option",10),M.qZA()(),M.TgZ(7,"mat-form-field")(8,"mat-label"),M._uU(9),M.ALo(10,"translate"),M.qZA(),M.TgZ(11,"mat-select",9),M.NdJ("valueChange",function(W){M.CHM(Le);const F=M.oxw();return M.KtG(F.selectedLang=W)}),M.YNc(12,q,4,6,"mat-option",10),M.qZA()(),M.TgZ(13,"mat-form-field")(14,"mat-label"),M._uU(15),M.ALo(16,"translate"),M.qZA(),M.TgZ(17,"mat-select",9),M.NdJ("valueChange",function(W){M.CHM(Le);const F=M.oxw();return M.KtG(F.selectedMail=W)}),M.YNc(18,te,2,2,"mat-option",10),M.qZA()(),M.TgZ(19,"div",11)(20,"p",12),M._uU(21),M.ALo(22,"translate"),M.qZA(),M.TgZ(23,"p"),M._uU(24),M.qZA()()()}if(2&Te){const Le=M.oxw();M.xp6(3),M.Oqu(M.lcZ(4,11,"DIALOGS.PASSWORD_RESET_REQUEST.NAMESPACE")),M.xp6(2),M.Q6J("value",Le.selectedLogin),M.xp6(1),M.Q6J("ngForOf",Le.logins),M.xp6(3),M.Oqu(M.lcZ(10,13,"DIALOGS.PASSWORD_RESET_REQUEST.LANGUAGE")),M.xp6(2),M.Q6J("value",Le.selectedLang),M.xp6(1),M.Q6J("ngForOf",Le.languages),M.xp6(3),M.Oqu(M.lcZ(16,15,"DIALOGS.PASSWORD_RESET_REQUEST.EMAIL")),M.xp6(2),M.Q6J("value",Le.selectedMail),M.xp6(1),M.Q6J("ngForOf",Le.mails),M.xp6(3),M.Oqu(M.lcZ(22,17,"DIALOGS.PASSWORD_RESET_REQUEST.LOGIN")),M.xp6(3),M.Oqu(Le.selectedLogin.value)}}let ie=(()=>{class Te{constructor(Le,T,W,F,V,ee,Q){this.dialogRef=Le,this.data=T,this.membersManagerService=W,this.attributesManagerService=F,this.store=V,this.translate=ee,this.notificator=Q,this.languages=this.store.getProperty("supported_languages"),this.selectedLang="en",this.pwdMails=new Map,this.logins=[],this.selectedMail="user:preferredMail",this.mails=[],ee.get("DIALOGS.PASSWORD_RESET_REQUEST.SUCCESS").subscribe(Ee=>this.successMessage=Ee)}ngOnInit(){this.getMailAttributes(),this.logins=this.data.logins,this.selectedLogin=this.logins[0]}onCancel(){this.dialogRef.close()}onSubmit(){this.loading=!0;const Le=this.selectedLogin.friendlyNameParameter,W=window.location.href.split("/"),F=W[0]+"//"+W[2];this.membersManagerService.sendPasswordResetLinkEmail(this.data.memberId,Le,this.pwdMails.get(this.selectedMail),this.selectedLang,F).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close()},()=>this.loading=!1)}getMailAttributes(){this.pwdMails.set("user:preferredMail","urn:perun:user:attribute-def:def:preferredMail"),this.pwdMails.set("member:mail","urn:perun:member:attribute-def:def:mail"),this.mails=Array.from(this.pwdMails.keys()),this.selectedMail="user:preferredMail"}}return Te.\u0275fac=function(Le){return new(Le||Te)(M.Y36(e.so),M.Y36(e.WI),M.Y36(A.uq),M.Y36(A.H8),M.Y36(C.d6),M.Y36(m.sK),M.Y36(C.V6))},Te.\u0275cmp=M.Xpm({type:Te,selectors:[["app-password-reset-request-dialog"]],decls:13,vars:12,consts:[["mat-dialog-title",""],[1,"member-theme"],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container member-theme","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["data-cy","reset-passwd-confirm-button","color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container","member-theme"],[3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[1,"row"],[1,"column-size","ml-3"],[3,"value"]],template:function(Le,T){1&Le&&(M.TgZ(0,"h1",0),M._uU(1),M.ALo(2,"translate"),M.qZA(),M.TgZ(3,"div",1),M.YNc(4,L,1,0,"mat-spinner",2),M.qZA(),M.YNc(5,z,25,19,"div",3),M.TgZ(6,"div",4)(7,"button",5),M.NdJ("click",function(){return T.onCancel()}),M._uU(8),M.ALo(9,"translate"),M.qZA(),M.TgZ(10,"button",6),M.NdJ("click",function(){return T.onSubmit()}),M._uU(11),M.ALo(12,"translate"),M.qZA()()),2&Le&&(M.xp6(1),M.Oqu(M.lcZ(2,6,"DIALOGS.PASSWORD_RESET_REQUEST.TITLE")),M.xp6(3),M.Q6J("ngIf",T.loading),M.xp6(1),M.Q6J("ngIf",!T.loading),M.xp6(3),M.hij(" ",M.lcZ(9,8,"DIALOGS.PASSWORD_RESET_REQUEST.CANCEL")," "),M.xp6(2),M.Q6J("disabled",T.loading),M.xp6(1),M.hij(" ",M.lcZ(12,10,"DIALOGS.PASSWORD_RESET_REQUEST.SEND")," "))},dependencies:[b.sg,b.O5,D.ey,v.KE,v.hX,R.lW,e.uh,e.xY,e.H8,B.gD,w.Ou,b.gd,m.X$],styles:[".column-size[_ngcontent-%COMP%]{width:8rem}"]}),Te})()},53455:(Xe,ue,p)=>{"use strict";p.d(ue,{X:()=>Le});var e=p(65412),A=p(30671),C=p(81591),M=p(61744),m=p(94650),b=p(89383),D=p(36895),v=p(4859),R=p(51572),B=p(31359);function w(T,W){1&T&&m._UZ(0,"th",13)}function L(T,W){if(1&T&&(m.TgZ(0,"td",14),m._uU(1),m.qZA()),2&T){const F=W.$implicit;m.xp6(1),m.Oqu(F.id)}}function O(T,W){1&T&&m._UZ(0,"th",13)}function q(T,W){if(1&T&&(m.TgZ(0,"td",14),m._uU(1),m.ALo(2,"userFullName"),m.qZA()),2&T){const F=W.$implicit;m.xp6(1),m.Oqu(m.lcZ(2,1,F.user))}}function te(T,W){1&T&&m._UZ(0,"tr",15)}function z(T,W){1&T&&m._UZ(0,"tr",16)}function ie(T,W){if(1&T&&(m.TgZ(0,"div",4)(1,"p"),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.TgZ(4,"div",5),m._uU(5),m.ALo(6,"translate"),m.qZA(),m.TgZ(7,"table",6),m.ynx(8,7),m.YNc(9,w,1,0,"th",8),m.YNc(10,L,2,1,"td",9),m.BQk(),m.ynx(11,10),m.YNc(12,O,1,0,"th",8),m.YNc(13,q,3,3,"td",9),m.BQk(),m.YNc(14,te,1,0,"tr",11),m.YNc(15,z,1,0,"tr",12),m.qZA()()),2&T){const F=m.oxw();m.xp6(2),m.hij(" ",m.lcZ(3,5,F.data.groupId?"DIALOGS.REMOVE_MEMBERS.DESCRIPTION_GROUP":"DIALOGS.REMOVE_MEMBERS.DESCRIPTION")," "),m.xp6(3),m.hij(" ",m.lcZ(6,7,"DIALOGS.REMOVE_MEMBERS.ASK")," "),m.xp6(2),m.Q6J("dataSource",F.dataSource),m.xp6(7),m.Q6J("matHeaderRowDef",F.displayedColumns),m.xp6(1),m.Q6J("matRowDefColumns",F.displayedColumns)}}function Te(T,W){1&T&&m._UZ(0,"mat-spinner",17)}function pe(T,W){if(1&T){const F=m.EpF();m.TgZ(0,"div",18)(1,"button",19),m.NdJ("click",function(){m.CHM(F);const ee=m.oxw();return m.KtG(ee.onCancel())}),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.TgZ(4,"button",20),m.NdJ("click",function(){m.CHM(F);const ee=m.oxw();return m.KtG(ee.onSubmit())}),m._uU(5),m.ALo(6,"translate"),m.qZA()()}if(2&T){const F=m.oxw();m.xp6(2),m.hij(" ",m.lcZ(3,2,"DIALOGS.REMOVE_MEMBERS.CANCEL")," "),m.xp6(3),m.hij(" ",m.lcZ(6,4,F.data.groupId?"DIALOGS.REMOVE_MEMBERS.REMOVE_GROUP":"DIALOGS.REMOVE_MEMBERS.REMOVE")," ")}}let Le=(()=>{class T{constructor(F,V,ee,Q,Ee,ge){this.dialogRef=F,this.data=V,this.membersService=ee,this.groupService=Q,this.notificator=Ee,this.translate=ge,this.displayedColumns=["id","name"]}ngOnInit(){this.theme=this.data.theme,this.dataSource=new A.by(this.data.members)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.data.groupId?this.groupService.removeMembers(this.data.groupId,this.data.members.map(F=>F.id)).subscribe(()=>this.onSuccess(),()=>this.onError()):this.membersService.deleteMembers(this.data.members.map(F=>F.id)).subscribe(()=>this.onSuccess(),()=>this.onError())}onSuccess(){const F=this.translate.instant(this.data.groupId?"DIALOGS.REMOVE_MEMBERS.SUCCESS_GROUP":"DIALOGS.REMOVE_MEMBERS.SUCCESS");this.notificator.showSuccess(F),this.dialogRef.close(!0),this.loading=!1}onError(){this.loading=!1}}return T.\u0275fac=function(F){return new(F||T)(m.Y36(e.so),m.Y36(e.WI),m.Y36(M.uq),m.Y36(M.ff),m.Y36(C.V6),m.Y36(b.sK))},T.\u0275cmp=m.Xpm({type:T,selectors:[["app-remove-members-dialog"]],decls:7,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content","",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""],[1,"mr-auto","ml-auto"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","data-cy","remove-members-dialog","mat-flat-button","",1,"ml-2",3,"click"]],template:function(F,V){1&F&&(m.TgZ(0,"div")(1,"h1",0),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.YNc(4,ie,16,9,"div",1),m.YNc(5,Te,1,0,"mat-spinner",2),m.YNc(6,pe,7,6,"div",3),m.qZA()),2&F&&(m.Tol(V.theme),m.xp6(2),m.Oqu(m.lcZ(3,7,"DIALOGS.REMOVE_MEMBERS.TITLE")),m.xp6(2),m.Q6J("ngIf",!V.loading),m.xp6(1),m.Q6J("ngIf",V.loading),m.xp6(1),m.Q6J("ngIf",!V.loading))},dependencies:[D.O5,v.lW,A.BZ,A.fO,A.as,A.w1,A.Dz,A.nj,A.ge,A.ev,A.XQ,A.Gk,e.uh,e.xY,e.H8,R.Ou,b.X$,B.d]}),T})()},533:(Xe,ue,p)=>{"use strict";p.d(ue,{f:()=>v});var e=p(65412),A=p(30671),C=p(81591),M=p(61744),m=p(94650),b=p(89383),D=p(90995);let v=(()=>{class R{constructor(w,L,O,q,te){this.dialogRef=w,this.data=L,this.notificator=O,this.translate=q,this.resourcesManager=te,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new A.by(this.data.resources)}onCancel(){this.dialogRef.close(!1)}onDelete(){this.loading=!0,0===this.data.resources.length?this.translate.get("DIALOGS.REMOVE_RESOURCES.SUCCESS").subscribe(w=>{this.loading=!1,this.notificator.showSuccess(w),this.dialogRef.close(!0)}):this.resourcesManager.deleteResource(this.data.resources[0].id).subscribe(()=>{this.data.resources.shift(),this.onDelete()},()=>{this.dialogRef.close(!0)})}onSubmit(w){w.deleted?this.onDelete():this.onCancel()}}return R.\u0275fac=function(w){return new(w||R)(m.Y36(e.so),m.Y36(e.WI),m.Y36(C.V6),m.Y36(b.sK),m.Y36(M.xk))},R.\u0275cmp=m.Xpm({type:R,selectors:[["app-remove-resource-dialog"]],decls:2,vars:7,consts:[[3,"entityNames","entityType","disableForce","loading","deleted"]],template:function(w,L){1&w&&(m.TgZ(0,"div")(1,"perun-web-apps-delete-entity-dialog",0),m.NdJ("deleted",function(q){return L.onSubmit(q)}),m.qZA()()),2&w&&(m.Tol(L.theme),m.xp6(1),m.Q6J("entityNames",L.dataSource)("entityType","resources")("disableForce",!0)("loading",L.loading))},dependencies:[D.e]}),R})()},11717:(Xe,ue,p)=>{"use strict";p.d(ue,{o:()=>v});var e=p(65412),A=p(30671),C=p(81591),M=p(61744),m=p(94650),b=p(89383),D=p(90995);let v=(()=>{class R{constructor(w,L,O,q,te){this.dialogRef=w,this.data=L,this.notificator=O,this.voService=q,this.translate=te,this.force=!1,this.displayedColumns=["name"],this.relations=[],te.get("DIALOGS.REMOVE_VO.SUCCESS").subscribe(z=>this.successMessage=z)}ngOnInit(){this.theme=this.data.theme,this.dataSource=new A.by(this.data.vos),this.relations.push(this.translate.instant("DIALOGS.REMOVE_VO.GROUP_RELATION")),this.relations.push(this.translate.instant("DIALOGS.REMOVE_VO.MEMBER_RELATION")),this.relations.push(this.translate.instant("DIALOGS.REMOVE_VO.RESOURCE_RELATION"))}onCancel(){this.dialogRef.close(!1)}onDelete(){this.loading=!0,this.voService.deleteVo(this.data.vos[0].id,this.force).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}onSubmit(w){this.force=w.force,w.deleted?this.onDelete():this.onCancel()}}return R.\u0275fac=function(w){return new(w||R)(m.Y36(e.so),m.Y36(e.WI),m.Y36(C.V6),m.Y36(M.YF),m.Y36(b.sK))},R.\u0275cmp=m.Xpm({type:R,selectors:[["app-remove-vo-dialog"]],decls:2,vars:7,consts:[[3,"entityNames","entityType","loading","relations","deleted"]],template:function(w,L){1&w&&(m.TgZ(0,"div")(1,"perun-web-apps-delete-entity-dialog",0),m.NdJ("deleted",function(q){return L.onSubmit(q)}),m.qZA()()),2&w&&(m.Tol(L.theme),m.xp6(1),m.Q6J("entityNames",L.dataSource)("entityType","organizations")("loading",L.loading)("relations",L.relations))},dependencies:[D.e],styles:[".foo[_ngcontent-%COMP%]{margin-top:20px}"]}),R})()},91828:(Xe,ue,p)=>{"use strict";p.d(ue,{b:()=>V});var e=p(65412),A=p(81591),C=p(61744),M=p(36895),m=p(24006),b=p(95017),D=p(64080),v=p(10036),R=p(94650),B=p(59549),w=p(284),L=p(4859),O=p(51572),q=p(98380),te=p(38383),z=p(87488),ie=p(39158),Te=p(89383);function pe(ee,Q){if(1&ee){const Ee=R.EpF();R.TgZ(0,"mat-form-field",12)(1,"label")(2,"input",13),R.NdJ("keyup.enter",function(){R.CHM(Ee);const ve=R.oxw();return R.KtG(ve.onSearchByString())}),R.ALo(3,"translate"),R.qZA()(),R.TgZ(4,"mat-error"),R._uU(5),R.ALo(6,"translate"),R.qZA()()}if(2&ee){const Ee=R.oxw();R.xp6(2),R.s9C("placeholder",R.lcZ(3,3,"DIALOGS.SPONSOR_EXISTING_MEMBER.DESCRIPTION")),R.Q6J("formControl",Ee.searchCtrl),R.xp6(3),R.hij(" ",R.lcZ(6,5,"DIALOGS.SPONSOR_EXISTING_MEMBER.EMPTY_SEARCH_MESSAGE")," ")}}function Le(ee,Q){if(1&ee){const Ee=R.EpF();R.TgZ(0,"button",14),R.NdJ("click",function(){R.CHM(Ee);const ve=R.oxw();return R.KtG(ve.onSearchByString())}),R._uU(1),R.ALo(2,"translate"),R.qZA()}if(2&ee){const Ee=R.oxw();R.Q6J("disabled",Ee.loading),R.xp6(1),R.hij(" ",R.lcZ(2,2,"DIALOGS.SPONSOR_EXISTING_MEMBER.SEARCH")," ")}}function T(ee,Q){1&ee&&R._UZ(0,"mat-spinner",15)}function W(ee,Q){if(1&ee&&R._UZ(0,"perun-web-apps-members-list",16),2&ee){const Ee=R.oxw();R.Q6J("disableRouting",!0)("hidden",Ee.loading)("disableStatusChange",!0)("members",Ee.members)("selection",Ee.selection)("displayedColumns",Ee.displayedColumns)("tableId",Ee.tableId)}}function F(ee,Q){1&ee&&(R.TgZ(0,"perun-web-apps-alert",17),R._uU(1),R.ALo(2,"translate"),R.qZA()),2&ee&&(R.xp6(1),R.hij(" ",R.lcZ(2,1,"DIALOGS.SPONSOR_EXISTING_MEMBER.BEGIN_SEARCH")," "))}let V=(()=>{class ee{constructor(Ee,ge,ve,De,he,Ye){this.dialogRef=Ee,this.data=ge,this.store=ve,this.membersService=De,this.notificator=he,this.translate=Ye,this.loading=!1,this.tableId=v.US,this.expiration="never",this.searchCtrl=new m.p4("",[m.kI.required]),this.firstSearchDone=!1,this.members=[],this.selection=new b.Ov(!0,[]),this.selectedSponsor=null,this.sponsorType="self"}ngOnInit(){this.theme=this.data.theme,this.serviceMemberId=this.data.serviceMemberId,this.displayedColumns=this.serviceMemberId?["checkbox","id","fullName","sponsored","email"]:["checkbox","id","fullName","status","sponsored","email"],this.serviceMemberId&&(this.searchCtrl.setValue(this.serviceMemberId),this.onSearchByString())}onCancel(){this.dialogRef.close(!1)}sponsor(Ee){this.loading=!0;const ge="self"===this.sponsorType?this.store.getPerunPrincipal().user:this.selectedSponsor,ve=Ee.map(De=>De.id);this.membersService.sponsorMembers(ve,ge.id,this.expiration).subscribe({next:()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.SPONSOR_EXISTING_MEMBER.SUCCESS")),this.loading=!1,this.dialogRef.close(!0)},error:()=>this.loading=!1})}onSubmit(){this.loading=!0;const Ee=Array.from(this.selection.selected);this.expiration="never"===this.expiration?null:this.expiration,this.sponsor(Ee)}setExpiration(Ee){this.expiration="never"===Ee?"never":(0,M.p6)(Ee,"yyyy-MM-dd","en-GB")}onSearchByString(){this.searchCtrl.invalid?this.searchCtrl.markAllAsTouched():(this.firstSearchDone=!0,this.loading=!0,this.selection.clear(),this.membersService.findCompleteRichMembersForVo(this.data.voId,[D.r.MEMBER_DEF_EXPIRATION,D.r.USER_DEF_PREFERRED_MAIL],this.searchCtrl.value).subscribe({next:ge=>{this.members=ge,this.serviceMemberId&&this.selection.toggle(ge[0]),this.loading=!1},error:()=>this.loading=!1}))}}return ee.\u0275fac=function(Ee){return new(Ee||ee)(R.Y36(e.so),R.Y36(e.WI),R.Y36(A.d6),R.Y36(C.uq),R.Y36(A.V6),R.Y36(A.Te))},ee.\u0275cmp=R.Xpm({type:ee,selectors:[["app-sponsor-existing-member-dialog"]],decls:24,vars:23,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["class","mr-2 search-field adjust-width",4,"ngIf"],["data-cy","sponsor-search-button","class","ml-auto","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableRouting","hidden","disableStatusChange","members","selection","displayedColumns","tableId",4,"ngIf"],["alert_type","info",4,"ngIf"],[3,"voId","voSponsors","sponsorTypeSelected","sponsorSelected"],[3,"datePicker"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["data-cy","sponsor-member-button","color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-2","search-field","adjust-width"],["data-cy","sponsor-search-input","autocomplete","false","matInput","",3,"formControl","placeholder","keyup.enter"],["data-cy","sponsor-search-button","color","accent","mat-flat-button","",1,"ml-auto",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"disableRouting","hidden","disableStatusChange","members","selection","displayedColumns","tableId"],["alert_type","info"]],template:function(Ee,ge){1&Ee&&(R.TgZ(0,"div")(1,"h1",0),R._uU(2),R.ALo(3,"translate"),R.qZA(),R.TgZ(4,"div",1),R.YNc(5,pe,7,7,"mat-form-field",2),R.YNc(6,Le,3,4,"button",3),R.YNc(7,T,1,0,"mat-spinner",4),R.YNc(8,W,1,7,"perun-web-apps-members-list",5),R.YNc(9,F,3,3,"perun-web-apps-alert",6),R.TgZ(10,"app-choose-sponsor",7),R.NdJ("sponsorTypeSelected",function(De){return ge.sponsorType=De})("sponsorSelected",function(De){return ge.selectedSponsor=De}),R.qZA(),R.TgZ(11,"div"),R._UZ(12,"br"),R.TgZ(13,"h6"),R._uU(14),R.ALo(15,"translate"),R.qZA(),R.TgZ(16,"perun-web-apps-expiration-select",8),R.NdJ("datePicker",function(De){return ge.setExpiration(De)}),R.qZA()()(),R.TgZ(17,"div",9)(18,"button",10),R.NdJ("click",function(){return ge.onCancel()}),R._uU(19),R.ALo(20,"translate"),R.qZA(),R.TgZ(21,"button",11),R.NdJ("click",function(){return ge.onSubmit()}),R._uU(22),R.ALo(23,"translate"),R.qZA()()()),2&Ee&&(R.Tol(ge.theme),R.xp6(2),R.Oqu(R.lcZ(3,15,"DIALOGS.SPONSOR_EXISTING_MEMBER.TITLE")),R.xp6(3),R.Q6J("ngIf",!ge.serviceMemberId),R.xp6(1),R.Q6J("ngIf",!ge.serviceMemberId),R.xp6(1),R.Q6J("ngIf",ge.loading),R.xp6(1),R.Q6J("ngIf",ge.firstSearchDone),R.xp6(1),R.Q6J("ngIf",!ge.firstSearchDone),R.xp6(1),R.Q6J("voId",ge.data.voId)("voSponsors",ge.data.voSponsors),R.xp6(4),R.Oqu(R.lcZ(15,17,"DIALOGS.SPONSOR_EXISTING_MEMBER.EXPIRATION")),R.xp6(5),R.hij(" ",R.lcZ(20,19,"DIALOGS.SPONSOR_EXISTING_MEMBER.CANCEL")," "),R.xp6(2),R.Q6J("disabled",ge.loading||0===ge.selection.selected.length||"other"===ge.sponsorType&&!ge.selectedSponsor),R.xp6(1),R.hij(" ",R.lcZ(23,21,"DIALOGS.SPONSOR_EXISTING_MEMBER.SPONSOR")," "))},dependencies:[M.O5,B.TO,B.KE,w.Nt,m.Fj,m.JJ,m.oH,L.lW,e.uh,e.xY,e.H8,O.Ou,q.w,te.O,z.c,ie.l,Te.X$],styles:[".adjust-width[_ngcontent-%COMP%]{width:270px}"]}),ee})()},1186:(Xe,ue,p)=>{"use strict";p.d(ue,{E:()=>z});var e=p(65412),A=p(61744),C=p(94650),M=p(36895),m=p(3238),b=p(59549),D=p(284),v=p(24006),R=p(4859),B=p(84385),w=p(51572),L=p(89383);function O(ie,Te){1&ie&&C._UZ(0,"mat-spinner",6)}function q(ie,Te){if(1&ie){const pe=C.EpF();C.TgZ(0,"div")(1,"mat-form-field",9)(2,"mat-select",10),C.NdJ("valueChange",function(T){C.CHM(pe);const W=C.oxw(2);return C.KtG(W.embeddedState=T)}),C.ALo(3,"translate"),C.TgZ(4,"mat-option",11),C._uU(5),C.ALo(6,"translate"),C.qZA(),C.TgZ(7,"mat-option",12),C._uU(8),C.ALo(9,"translate"),C.qZA()()()()}if(2&ie){const pe=C.oxw(2);C.xp6(2),C.MGl("placeholder","",C.lcZ(3,4,"DIALOGS.UPDATE_APPLICATION_FORM.EMBEDDED"),":"),C.Q6J("value",pe.embeddedState),C.xp6(3),C.Oqu(C.lcZ(6,6,"DIALOGS.UPDATE_APPLICATION_FORM.AUTOMATIC")),C.xp6(3),C.Oqu(C.lcZ(9,8,"DIALOGS.UPDATE_APPLICATION_FORM.MANUAL"))}}function te(ie,Te){if(1&ie){const pe=C.EpF();C.TgZ(0,"div",7)(1,"mat-form-field")(2,"input",8),C.NdJ("ngModelChange",function(T){C.CHM(pe);const W=C.oxw();return C.KtG(W.moduleName=T)}),C.ALo(3,"translate"),C.qZA()(),C.TgZ(4,"mat-form-field",9)(5,"mat-select",10),C.NdJ("valueChange",function(T){C.CHM(pe);const W=C.oxw();return C.KtG(W.initialState=T)}),C.ALo(6,"translate"),C.TgZ(7,"mat-option",11),C._uU(8),C.ALo(9,"translate"),C.qZA(),C.TgZ(10,"mat-option",12),C._uU(11),C.ALo(12,"translate"),C.qZA()()(),C.TgZ(13,"mat-form-field",9)(14,"mat-select",10),C.NdJ("valueChange",function(T){C.CHM(pe);const W=C.oxw();return C.KtG(W.extensionState=T)}),C.ALo(15,"translate"),C.TgZ(16,"mat-option",11),C._uU(17),C.ALo(18,"translate"),C.qZA(),C.TgZ(19,"mat-option",12),C._uU(20),C.ALo(21,"translate"),C.qZA()()(),C.YNc(22,q,10,10,"div",13),C.qZA()}if(2&ie){const pe=C.oxw();C.xp6(2),C.s9C("placeholder",C.lcZ(3,11,"DIALOGS.UPDATE_APPLICATION_FORM.MODULE_NAME")),C.Q6J("ngModel",pe.moduleName),C.xp6(3),C.MGl("placeholder","",C.lcZ(6,13,"DIALOGS.UPDATE_APPLICATION_FORM.INITIAL"),":"),C.Q6J("value",pe.initialState),C.xp6(3),C.Oqu(C.lcZ(9,15,"DIALOGS.UPDATE_APPLICATION_FORM.AUTOMATIC")),C.xp6(3),C.Oqu(C.lcZ(12,17,"DIALOGS.UPDATE_APPLICATION_FORM.MANUAL")),C.xp6(3),C.MGl("placeholder","",C.lcZ(15,19,"DIALOGS.UPDATE_APPLICATION_FORM.EXTENSION"),":"),C.Q6J("value",pe.extensionState),C.xp6(3),C.Oqu(C.lcZ(18,21,"DIALOGS.UPDATE_APPLICATION_FORM.AUTOMATIC")),C.xp6(3),C.Oqu(C.lcZ(21,23,"DIALOGS.UPDATE_APPLICATION_FORM.MANUAL")),C.xp6(2),C.Q6J("ngIf","group"===pe.entity&&pe.autoRegistrationEnabled)}}let z=(()=>{class ie{constructor(pe,Le,T){this.dialogRef=pe,this.data=Le,this.registrarManager=T,this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.applicationForm=this.data.applicationForm,this.moduleName=this.applicationForm.moduleClassName,this.initialState=this.applicationForm.automaticApproval?"auto":"manual",this.extensionState=this.applicationForm.automaticApprovalExtension?"auto":"manual",this.embeddedState=this.applicationForm.automaticApprovalEmbedded?"auto":"manual",this.entity=this.data.entity,this.autoRegistrationEnabled=this.data.autoRegistrationEnabled}onCancel(){this.dialogRef.close()}submit(){this.loading=!0,this.applicationForm.moduleClassName=this.moduleName,this.applicationForm.automaticApproval="auto"===this.initialState,this.applicationForm.automaticApprovalExtension="auto"===this.extensionState,this.applicationForm.automaticApprovalEmbedded="auto"===this.embeddedState,this.registrarManager.updateForm({form:this.applicationForm}).subscribe(pe=>{this.dialogRef.close(pe)},()=>this.loading=!1)}}return ie.\u0275fac=function(pe){return new(pe||ie)(C.Y36(e.so),C.Y36(e.WI),C.Y36(A.tk))},ie.\u0275cmp=C.Xpm({type:ie,selectors:[["app-update-application-form-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","",3,"ngModel","placeholder","ngModelChange"],[1,"w-100"],["disableOptionCentering","",3,"value","placeholder","valueChange"],["value","auto"],["value","manual"],[4,"ngIf"]],template:function(pe,Le){1&pe&&(C.TgZ(0,"div")(1,"h1",0),C._uU(2),C.ALo(3,"translate"),C.qZA(),C.YNc(4,O,1,0,"mat-spinner",1),C.YNc(5,te,23,25,"div",2),C.TgZ(6,"div",3)(7,"button",4),C.NdJ("click",function(){return Le.onCancel()}),C._uU(8),C.ALo(9,"translate"),C.qZA(),C.TgZ(10,"button",5),C.NdJ("click",function(){return Le.submit()}),C._uU(11),C.ALo(12,"translate"),C.qZA()()()),2&pe&&(C.Tol(Le.theme),C.xp6(2),C.Oqu(C.lcZ(3,9,"DIALOGS.UPDATE_APPLICATION_FORM.TITLE")),C.xp6(2),C.Q6J("ngIf",Le.loading),C.xp6(1),C.Q6J("ngIf",!Le.loading),C.xp6(3),C.hij(" ",C.lcZ(9,11,"DIALOGS.UPDATE_APPLICATION_FORM.CANCEL_BUTTON")," "),C.xp6(2),C.Q6J("disabled",Le.loading),C.xp6(1),C.hij(" ",C.lcZ(12,13,"DIALOGS.UPDATE_APPLICATION_FORM.SUBMIT_BUTTON")," "))},dependencies:[M.O5,m.ey,b.KE,D.Nt,v.Fj,v.JJ,v.On,R.lW,e.uh,e.xY,e.H8,B.gD,w.Ou,L.X$]}),ie})()},90820:(Xe,ue,p)=>{"use strict";p.d(ue,{_:()=>Cn});var e=p(94650),A=p(61744),C=p(9244),M=p(65412),m=p(81591),b=p(95017),D=p(19516),v=p(37433),R=p(36895),B=p(4859),w=p(51572),L=p(87831),O=p(25788),q=p(7434),te=p(62109),z=p(74010),ie=p(89593),Te=p(89383);let pe=(()=>{class Tt{constructor(){this.role=null,this.disableAutoSelect=!1,this.roleSelected=new e.vpe,this.nameFunction=Ze=>Ze.displayName,this.secondaryTextFunction=()=>null}}return Tt.\u0275fac=function(Ze){return new(Ze||Tt)},Tt.\u0275cmp=e.Xpm({type:Tt,selectors:[["perun-web-apps-role-search-select"]],inputs:{role:"role",roles:"roles",disableAutoSelect:"disableAutoSelect"},outputs:{roleSelected:"roleSelected"},decls:4,vars:15,consts:[[3,"entity","entities","disableAutoSelect","mainTextFunction","searchFunction","secondaryTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(Ze,wt){1&Ze&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(ln){return wt.roleSelected.emit(ln)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&Ze&&e.Q6J("entity",wt.role)("entities",wt.roles)("disableAutoSelect",wt.disableAutoSelect)("mainTextFunction",wt.nameFunction)("searchFunction",wt.nameFunction)("secondaryTextFunction",wt.secondaryTextFunction)("selectPlaceholder",e.lcZ(1,9,"SHARED_LIB.PERUN.COMPONENTS.ROLE_SEARCH_SELECT.SELECT_ROLE"))("findPlaceholder",e.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.ROLE_SEARCH_SELECT.FIND_ROLE"))("noEntriesText",e.lcZ(3,13,"SHARED_LIB.PERUN.COMPONENTS.ROLE_SEARCH_SELECT.NO_ROLE_FOUND"))},dependencies:[ie.i,Te.X$]}),Tt})();var Le=p(56575);let T=(()=>{class Tt{transform(Ze,wt,Ft){return Ze.filter(ln=>!wt.get(Ft.roleName)?.get(Ft.primaryObject)?.includes(ln.id))}}return Tt.\u0275fac=function(Ze){return new(Ze||Tt)},Tt.\u0275pipe=e.Yjl({name:"unassignedRole",type:Tt,pure:!0}),Tt})(),W=(()=>{class Tt{transform(Ze){return Ze.map(wt=>wt.facility)}}return Tt.\u0275fac=function(Ze){return new(Ze||Tt)},Tt.\u0275pipe=e.Yjl({name:"extractFacility",type:Tt,pure:!0}),Tt})();var F=p(48524);function V(Tt,Dt){1&Tt&&e._UZ(0,"mat-spinner",5)}function ee(Tt,Dt){1&Tt&&e._UZ(0,"mat-spinner",14)}function Q(Tt,Dt){if(1&Tt){const Ze=e.EpF();e.TgZ(0,"perun-web-apps-immediate-filter",15),e.NdJ("filter",function(Ft){e.CHM(Ze);const ln=e.oxw(2);return e.KtG(ln.filterValue=Ft)}),e.qZA()}2&Tt&&e.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_OBJECTS_LIST.FILTER")}const Ee=function(){return["checkbox","id","shortName","name"]};function ge(Tt,Dt){if(1&Tt&&(e._UZ(0,"perun-web-apps-vos-list",16),e.ALo(1,"unassignedRole"),e.ALo(2,"manageableEntities")),2&Tt){const Ze=e.oxw(2);e.Q6J("filterValue",Ze.filterValue)("vos",e.Dn7(1,5,e.xi3(2,9,Ze.vos,Ze.selectedRule),Ze.roles,Ze.selectedRule))("displayedColumns",e.DdM(12,Ee))("selection",Ze.selected)("disableRouting",!0)}}const ve=function(){return["select","id","vo","name","description"]};function De(Tt,Dt){if(1&Tt&&(e._UZ(0,"perun-web-apps-groups-list",17),e.ALo(1,"unassignedRole"),e.ALo(2,"manageableEntities")),2&Tt){const Ze=e.oxw(2);e.Q6J("filterValue",Ze.filterValue)("groups",e.Dn7(1,5,e.xi3(2,9,Ze.groups,Ze.selectedRule),Ze.roles,Ze.selectedRule))("displayedColumns",e.DdM(12,ve))("selection",Ze.selected)("disableRouting",!0)}}const he=function(){return["select","id","name","description"]};function Ye(Tt,Dt){if(1&Tt&&(e._UZ(0,"perun-web-apps-facilities-list",18),e.ALo(1,"toEnrichedFacility"),e.ALo(2,"unassignedRole"),e.ALo(3,"manageableEntities"),e.ALo(4,"extractFacility")),2&Tt){const Ze=e.oxw(2);e.Q6J("filterValue",Ze.filterValue)("facilities",e.lcZ(1,5,e.Dn7(2,7,e.xi3(3,11,e.lcZ(4,14,Ze.facilities),Ze.selectedRule),Ze.roles,Ze.selectedRule)))("displayedColumns",e.DdM(16,he))("selection",Ze.selectedFacilities)("disableRouting",!0)}}const Be=function(){return["select","id","name"]};function se(Tt,Dt){if(1&Tt&&(e._UZ(0,"perun-web-apps-resources-list",19),e.ALo(1,"unassignedRole"),e.ALo(2,"manageableEntities")),2&Tt){const Ze=e.oxw(2);e.Q6J("filterValue",Ze.filterValue)("resources",e.Dn7(1,5,e.xi3(2,9,Ze.resources,Ze.selectedRule),Ze.roles,Ze.selectedRule))("displayedColumns",e.DdM(12,Be))("selection",Ze.selected)("disableRouting",!0)}}function le(Tt,Dt){if(1&Tt){const Ze=e.EpF();e.TgZ(0,"div",6),e.YNc(1,ee,1,0,"mat-spinner",7),e.TgZ(2,"perun-web-apps-role-search-select",8),e.NdJ("roleSelected",function(Ft){e.CHM(Ze);const ln=e.oxw();return e.KtG(ln.resetSelection(Ft))}),e.qZA(),e.YNc(3,Q,1,1,"perun-web-apps-immediate-filter",9),e.YNc(4,ge,3,13,"perun-web-apps-vos-list",10),e.YNc(5,De,3,13,"perun-web-apps-groups-list",11),e.YNc(6,Ye,5,17,"perun-web-apps-facilities-list",12),e.YNc(7,se,3,13,"perun-web-apps-resources-list",13),e.qZA()}if(2&Tt){const Ze=e.oxw();e.xp6(1),e.Q6J("ngIf",Ze.loading),e.xp6(1),e.Q6J("roles",Ze.rules),e.xp6(1),e.Q6J("ngIf",null==Ze.selectedRule?null:Ze.selectedRule.primaryObject),e.xp6(1),e.Q6J("ngIf",!Ze.loading&&"Vo"===(null==Ze.selectedRule?null:Ze.selectedRule.primaryObject)),e.xp6(1),e.Q6J("ngIf",!Ze.loading&&"Group"===(null==Ze.selectedRule?null:Ze.selectedRule.primaryObject)),e.xp6(1),e.Q6J("ngIf",!Ze.loading&&"Facility"===(null==Ze.selectedRule?null:Ze.selectedRule.primaryObject)),e.xp6(1),e.Q6J("ngIf",!Ze.loading&&"Resource"===(null==Ze.selectedRule?null:Ze.selectedRule.primaryObject))}}function N(Tt,Dt){if(1&Tt){const Ze=e.EpF();e.TgZ(0,"div",20)(1,"button",21),e.NdJ("click",function(){e.CHM(Ze);const Ft=e.oxw();return e.KtG(Ft.cancel())}),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"button",22),e.NdJ("click",function(){e.CHM(Ze);const Ft=e.oxw();return e.KtG(Ft.addRole())}),e._uU(5),e.ALo(6,"translate"),e.qZA()()}if(2&Tt){const Ze=e.oxw();e.xp6(2),e.hij(" ",e.lcZ(3,3,"DIALOGS.ADD_ROLE.CANCEL")," "),e.xp6(2),e.Q6J("disabled",null===Ze.selectedRule||"Facility"===Ze.selectedRule.primaryObject&&Ze.selectedFacilities.isEmpty()||Ze.selectedRule.primaryObject&&"Facility"!==Ze.selectedRule.primaryObject&&Ze.selected.isEmpty()),e.xp6(1),e.hij(" ",e.lcZ(6,5,"DIALOGS.ADD_ROLE.ADD")," ")}}function k(Tt,Dt){1&Tt&&(e.TgZ(0,"div",23),e._UZ(1,"mat-spinner"),e.qZA())}let be=(()=>{class Tt{constructor(Ze,wt,Ft,ln,bn){this.dialogRef=Ze,this.voService=wt,this.groupService=Ft,this.facilityService=ln,this.resourceService=bn,this.loading=!1,this.submitForm=new e.vpe,this.selected=new b.Ov(!0,[]),this.selectedFacilities=new b.Ov(!0,[]),this.filterValue="",this.vos=[],this.groups=[],this.facilities=[],this.resources=[]}ngOnInit(){this.selectedRule=this.rules[0],this.loadObjects()}loadObjects(){this.rules.some(Ze=>"Facility"===Ze.primaryObject)&&this.facilityService.getAllFacilities().subscribe({next:Ze=>this.facilities=(new D.E7).transform(Ze)}),this.rules.some(Ze=>"Vo"===Ze.primaryObject)&&this.voService.getMyVos().subscribe({next:Ze=>this.vos=Ze}),this.groupService.getAllGroupsFromAllVos().subscribe({next:Ze=>this.groups=Ze}),this.resourceService.getAllResources().subscribe({next:Ze=>this.resources=Ze})}cancel(){this.dialogRef.close(!1)}addRole(){this.submitForm.emit("Facility"===this.selectedRule.primaryObject?{role:this.selectedRule,entities:this.selectedFacilities.selected.map(Ze=>Ze.facility)}:{role:this.selectedRule,entities:this.selected.selected})}resetSelection(Ze){this.selectedRule=Ze,this.selected.clear(),this.selectedFacilities.clear(),this.filterValue="",this.loadObjects(),this.filterComponent&&this.filterComponent.formControl.setValue("")}}return Tt.\u0275fac=function(Ze){return new(Ze||Tt)(e.Y36(M.so),e.Y36(A.YF),e.Y36(A.ff),e.Y36(A.IQ),e.Y36(A.xk))},Tt.\u0275cmp=e.Xpm({type:Tt,selectors:[["app-add-role-dialog"]],viewQuery:function(Ze,wt){if(1&Ze&&e.Gf(v.Ld,5),2&Ze){let Ft;e.iGM(Ft=e.CRH())&&(wt.filterComponent=Ft.first)}},inputs:{loading:"loading",rules:"rules",roles:"roles",theme:"theme"},outputs:{submitForm:"submitForm"},decls:10,vars:9,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","","class","dialog-container",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],["spinner",""],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],["class","ml-auto mr-auto",4,"ngIf"],[3,"roles","roleSelected"],["class","font-size-1rem",3,"placeholder","filter",4,"ngIf"],[3,"filterValue","vos","displayedColumns","selection","disableRouting",4,"ngIf"],[3,"filterValue","groups","displayedColumns","selection","disableRouting",4,"ngIf"],[3,"filterValue","facilities","displayedColumns","selection","disableRouting",4,"ngIf"],[3,"filterValue","resources","displayedColumns","selection","disableRouting",4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"font-size-1rem",3,"placeholder","filter"],[3,"filterValue","vos","displayedColumns","selection","disableRouting"],[3,"filterValue","groups","displayedColumns","selection","disableRouting"],[3,"filterValue","facilities","displayedColumns","selection","disableRouting"],[3,"filterValue","resources","displayedColumns","selection","disableRouting"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"spinner-container"]],template:function(Ze,wt){1&Ze&&(e.TgZ(0,"div")(1,"div",0)(2,"h1",0),e._uU(3),e.ALo(4,"translate"),e.qZA()(),e.YNc(5,V,1,0,"mat-spinner",1),e.YNc(6,le,8,7,"div",2),e.YNc(7,N,7,7,"div",3),e.qZA(),e.YNc(8,k,2,0,"ng-template",null,4,e.W1O)),2&Ze&&(e.Tol(wt.theme),e.xp6(3),e.Oqu(e.lcZ(4,7,"DIALOGS.ADD_ROLE.TITLE")),e.xp6(2),e.Q6J("ngIf",wt.loading),e.xp6(1),e.Q6J("ngIf",!wt.loading),e.xp6(1),e.Q6J("ngIf",!wt.loading))},dependencies:[R.O5,B.lW,M.uh,M.xY,M.H8,w.Ou,L.Z,O.W,q.L,te.C,z.X,pe,Te.X$,Le.G,T,W,F.E]}),Tt})(),Z=(()=>{class Tt{constructor(Ze,wt,Ft,ln,bn,gn){this.dialogRef=Ze,this.data=wt,this.authResolver=Ft,this.authzService=ln,this.notificator=bn,this.translate=gn,this.loading=!1,this.rules=this.authResolver.getAssignableRoleRules("GROUP")}addRole(Ze){this.loading=!0,Ze.entities&&0!==Ze.entities.length?this.authzService.setRoleWithGroupComplementaryObjects({role:Ze.role.roleName,authorizedGroup:this.data.entityId,complementaryObjects:Ze.entities}).subscribe({next:()=>{this.showSuccess(Ze.role.displayName),this.dialogRef.close(!0)},error:()=>{this.loading=!1}}):this.authzService.setRoleForGroup({role:Ze.role.roleName,authorizedGroup:this.data.entityId}).subscribe({next:()=>{this.showSuccess(Ze.role.displayName),this.dialogRef.close(!0)},error:()=>{this.loading=!1}})}showSuccess(Ze){this.notificator.showSuccess(this.translate.instant("DIALOGS.ADD_ROLE.SUCCESS",{role:Ze}))}}return Tt.\u0275fac=function(Ze){return new(Ze||Tt)(e.Y36(M.so),e.Y36(M.WI),e.Y36(m.x4),e.Y36(A.Ct),e.Y36(m.V6),e.Y36(m.Te))},Tt.\u0275cmp=e.Xpm({type:Tt,selectors:[["app-add-group-role-dialog"]],decls:1,vars:4,consts:[[3,"loading","rules","roles","theme","submitForm"]],template:function(Ze,wt){1&Ze&&(e.TgZ(0,"app-add-role-dialog",0),e.NdJ("submitForm",function(ln){return wt.addRole(ln)}),e.qZA()),2&Ze&&e.Q6J("loading",wt.loading)("rules",wt.rules)("roles",wt.data.roles)("theme","group-theme")},dependencies:[be]}),Tt})(),ce=(()=>{class Tt{constructor(Ze,wt,Ft,ln,bn,gn,zn){this.dialogRef=Ze,this.data=wt,this.authResolver=Ft,this.authzService=ln,this.notificator=bn,this.translate=gn,this.displayedRole=zn,this.loading=!1,this.rules=this.authResolver.getAssignableRoleRules("USER")}addRole(Ze){this.loading=!0,Ze.entities&&0!==Ze.entities.length?this.authzService.setRoleWithUserComplementaryObjects({role:Ze.role.roleName,user:this.data.entityId,complementaryObjects:Ze.entities}).subscribe({next:()=>{this.showSuccess(Ze.role.displayName),this.dialogRef.close(!0)},error:()=>{this.loading=!1}}):this.authzService.setRoleForUser({role:Ze.role.roleName,user:this.data.entityId}).subscribe({next:()=>{this.showSuccess(Ze.role.displayName),this.dialogRef.close(!0)},error:()=>{this.loading=!1}})}showSuccess(Ze){this.notificator.showSuccess(this.translate.instant("DIALOGS.ADD_ROLE.SUCCESS",{role:Ze}))}}return Tt.\u0275fac=function(Ze){return new(Ze||Tt)(e.Y36(M.so),e.Y36(M.WI),e.Y36(m.x4),e.Y36(A.Ct),e.Y36(m.V6),e.Y36(m.Te),e.Y36(D.i2))},Tt.\u0275cmp=e.Xpm({type:Tt,selectors:[["app-add-user-role-dialog"]],features:[e._Bn([D.i2])],decls:1,vars:4,consts:[[3,"loading","rules","theme","roles","submitForm"]],template:function(Ze,wt){1&Ze&&(e.TgZ(0,"app-add-role-dialog",0),e.NdJ("submitForm",function(ln){return wt.addRole(ln)}),e.qZA()),2&Ze&&e.Q6J("loading",wt.loading)("rules",wt.rules)("theme","user-theme")("roles",wt.data.roles)},dependencies:[be]}),Tt})();var xe=p(21029),ot=p(61135),Fe=p(39646),ut=p(86099),tt=p(48382),vt=p(63900),X=p(18505),nt=p(68675),Ae=p(54004),ye=p(97392),_e=p(37084),Se=p(10266),Ne=p(73546),Ce=p(98380),fe=p(38383),r=p(73358),u=p(64877),_=p(23123);function E(Tt,Dt){if(1&Tt){const Ze=e.EpF();e.TgZ(0,"button",6),e.NdJ("click",function(){e.CHM(Ze);const Ft=e.oxw();return e.KtG(Ft.addRole())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&Tt&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"ROLES.ADD"),"\n"))}function h(Tt,Dt){1&Tt&&e._UZ(0,"mat-spinner",7)}const a=function(){return["Vo","Group","Resource"]};function i(Tt,Dt){if(1&Tt){const Ze=e.EpF();e.TgZ(0,"span",16),e.ALo(1,"translate"),e.TgZ(2,"button",17),e.NdJ("click",function(){e.CHM(Ze);const Ft=e.oxw(2).$implicit,ln=e.oxw(2);return e.KtG(ln.openConfirmDialog(Ft))}),e._uU(3),e.ALo(4,"translate"),e.qZA()()}if(2&Tt){const Ze=e.oxw(2).$implicit,wt=e.oxw(2);e.s9C("matTooltip",e.lcZ(1,4,"ROLES.REMOVE_DISABLED_TOOLTIP")),e.Q6J("matTooltipDisabled",0===wt.selection.selected.length&&0===wt.selectedFacilities.selected.length||!wt.disableRemove),e.xp6(2),e.Q6J("disabled","Facility"===Ze.primaryObject&&(0===wt.selectedFacilities.selected.length||wt.disableRemove)||e.DdM(8,a).includes(Ze.primaryObject)&&(0===wt.selection.selected.length||wt.disableRemove)),e.xp6(1),e.hij(" ",e.lcZ(4,6,"ROLES.REMOVE")," ")}}function t(Tt,Dt){if(1&Tt&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Tt){const Ze=e.oxw(5).$implicit,wt=e.oxw(2);e.xp6(1),e.hij(" ",e.lcZ(2,1,"ROLES."+Ze.roleName+"_VOS_"+wt.entityType)," ")}}const n=function(){return["id","name","shortName"]},o=function(){return["checkbox","id","name","shortName"]};function s(Tt,Dt){if(1&Tt&&(e.TgZ(0,"div",21),e.YNc(1,t,3,3,"div",3),e._UZ(2,"perun-web-apps-vos-list",22),e.ALo(3,"async"),e.qZA()),2&Tt){const Ze=e.oxw(4).$implicit,wt=e.oxw(2);e.xp6(1),e.Q6J("ngIf",wt.showDescription),e.xp6(1),e.Q6J("displayedColumns","MEMBERSHIP"===Ze.roleName?e.DdM(6,n):e.DdM(7,o))("vos",e.lcZ(3,4,wt.vos))("selection",wt.selection)}}function l(Tt,Dt){if(1&Tt&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Tt){const Ze=e.oxw(5).$implicit,wt=e.oxw(2);e.xp6(1),e.hij(" ",e.lcZ(2,1,"ROLES."+Ze.roleName+"_GROUPS_"+wt.entityType)," ")}}const d=function(){return["id","vo","name","description"]},c=function(){return["select","id","vo","name","description"]};function S(Tt,Dt){if(1&Tt&&(e.TgZ(0,"div",21),e.YNc(1,l,3,3,"div",3),e._UZ(2,"perun-web-apps-groups-list",23),e.ALo(3,"async"),e.qZA()),2&Tt){const Ze=e.oxw(4).$implicit,wt=e.oxw(2);e.xp6(1),e.Q6J("ngIf",wt.showDescription),e.xp6(1),e.Q6J("displayedColumns","MEMBERSHIP"===Ze.roleName?e.DdM(6,d):e.DdM(7,c))("groups",e.lcZ(3,4,wt.groups))("selection",wt.selection)}}function J(Tt,Dt){if(1&Tt&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Tt){const Ze=e.oxw(5).$implicit,wt=e.oxw(2);e.xp6(1),e.hij(" ",e.lcZ(2,1,"ROLES."+Ze.roleName+"_RESOURCES_"+wt.entityType)," ")}}const ht=function(){return["id","name","vo","facility","description"]},ze=function(){return["select","id","name","vo","facility","description"]};function et(Tt,Dt){if(1&Tt&&(e.TgZ(0,"div",21),e.YNc(1,J,3,3,"div",3),e._UZ(2,"perun-web-apps-resources-list",24),e.ALo(3,"async"),e.qZA()),2&Tt){const Ze=e.oxw(4).$implicit,wt=e.oxw(2);e.xp6(1),e.Q6J("ngIf",wt.showDescription),e.xp6(1),e.Q6J("resources",e.lcZ(3,5,wt.resources))("displayedColumns","MEMBERSHIP"===Ze.roleName?e.DdM(7,ht):e.DdM(8,ze))("routingVo",!0)("selection",wt.selection)}}function ne(Tt,Dt){if(1&Tt&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Tt){const Ze=e.oxw(5).$implicit,wt=e.oxw(2);e.xp6(1),e.hij(" ",e.lcZ(2,1,"ROLES."+Ze.roleName+"_FACILITIES_"+wt.entityType)," ")}}const Ue=function(){return["id","name","description"]},He=function(){return["select","id","name","description"]};function Pe(Tt,Dt){if(1&Tt&&(e.TgZ(0,"div",21),e.YNc(1,ne,3,3,"div",3),e._UZ(2,"perun-web-apps-facilities-list",25),e.ALo(3,"async"),e.qZA()),2&Tt){const Ze=e.oxw(4).$implicit,wt=e.oxw(2);e.xp6(1),e.Q6J("ngIf",wt.showDescription),e.xp6(1),e.Q6J("displayedColumns","MEMBERSHIP"===Ze.roleName?e.DdM(6,Ue):e.DdM(7,He))("facilities",e.lcZ(3,4,wt.facilities))("selection",wt.selectedFacilities)}}function Re(Tt,Dt){if(1&Tt&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Tt){const Ze=e.oxw(5).$implicit,wt=e.oxw(2);e.xp6(1),e.hij(" ",e.lcZ(2,1,"ROLES."+Ze.roleName+"_MEMBERS_"+wt.entityType)," ")}}const re=function(){return["id","fullName","sponsored"]};function we(Tt,Dt){if(1&Tt&&(e.TgZ(0,"div",21),e.YNc(1,Re,3,3,"div",3),e._UZ(2,"perun-web-apps-members-list",26),e.ALo(3,"async"),e.qZA()),2&Tt){const Ze=e.oxw(6);e.xp6(1),e.Q6J("ngIf",Ze.showDescription),e.xp6(1),e.Q6J("displayedColumns",e.DdM(5,re))("members",e.lcZ(3,3,Ze.members))}}function st(Tt,Dt){if(1&Tt&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Tt){const Ze=e.oxw(5).$implicit,wt=e.oxw(2);e.xp6(1),e.hij(" ",e.lcZ(2,1,"ROLES."+Ze.roleName+"_USERS_"+wt.entityType)," ")}}const Ke=function(){return["user","id","name"]};function Et(Tt,Dt){if(1&Tt&&(e.TgZ(0,"div",21),e.YNc(1,st,3,3,"div",3),e._UZ(2,"app-users-list",27),e.ALo(3,"async"),e.qZA()),2&Tt){const Ze=e.oxw(6);e.xp6(1),e.Q6J("ngIf",Ze.showDescription),e.xp6(1),e.Q6J("displayedColumns",e.DdM(6,Ke))("disableRouting",!0)("users",e.lcZ(3,4,Ze.users))}}function ke(Tt,Dt){if(1&Tt&&(e.TgZ(0,"div"),e.YNc(1,s,4,8,"div",20),e.YNc(2,S,4,8,"div",20),e.YNc(3,et,4,9,"div",20),e.YNc(4,Pe,4,8,"div",20),e.YNc(5,we,4,6,"div",20),e.YNc(6,Et,4,7,"div",20),e.qZA()),2&Tt){const Ze=e.oxw(3).$implicit;e.xp6(1),e.Q6J("ngIf","Vo"===Ze.primaryObject||"MEMBERSHIP"===Ze.roleName),e.xp6(1),e.Q6J("ngIf","Group"===Ze.primaryObject||"MEMBERSHIP"===Ze.roleName),e.xp6(1),e.Q6J("ngIf","Resource"===Ze.primaryObject||"MEMBERSHIP"===Ze.roleName),e.xp6(1),e.Q6J("ngIf","Facility"===Ze.primaryObject||"MEMBERSHIP"===Ze.roleName),e.xp6(1),e.Q6J("ngIf","SPONSORSHIP"===Ze.roleName),e.xp6(1),e.Q6J("ngIf","SELF"===Ze.roleName)}}function at(Tt,Dt){if(1&Tt&&(e.TgZ(0,"div",18),e.YNc(1,ke,7,6,"div",19),e.qZA()),2&Tt){const Ze=e.oxw(4),wt=e.MAs(8);e.xp6(1),e.Q6J("perunWebAppsLoader",Ze.loading)("perunWebAppsLoaderIndicator",wt)}}function It(Tt,Dt){if(1&Tt&&(e.YNc(0,i,5,9,"span",14),e.YNc(1,at,2,2,"div",15)),2&Tt){const Ze=e.oxw().$implicit,wt=e.MAs(1);e.Q6J("ngIf","SELF"!==Ze.roleName&&"MEMBERSHIP"!==Ze.roleName&&"SPONSORSHIP"!==Ze.roleName),e.xp6(1),e.Q6J("ngIf",wt.expanded)}}function jt(Tt,Dt){if(1&Tt){const Ze=e.EpF();e.TgZ(0,"mat-expansion-panel",9,10),e.NdJ("opened",function(){const ln=e.CHM(Ze).$implicit,bn=e.oxw(2);return e.KtG(bn.selectedRole.next(ln))})("closed",function(){e.CHM(Ze);const Ft=e.oxw(2);return e.KtG(Ft.selection.clear())}),e.TgZ(2,"mat-expansion-panel-header")(3,"mat-panel-title"),e._UZ(4,"mat-icon",11),e.TgZ(5,"p",12),e._uU(6),e.ALo(7,"displayedRole"),e.qZA()()(),e.YNc(8,It,2,2,"ng-template",13),e.qZA()}if(2&Tt){const Ze=Dt.$implicit;e.xp6(6),e.Oqu(e.lcZ(7,1,Ze))}}function an(Tt,Dt){if(1&Tt&&(e.TgZ(0,"mat-accordion"),e.YNc(1,jt,9,3,"mat-expansion-panel",8),e.qZA()),2&Tt){const Ze=e.oxw();e.xp6(1),e.Q6J("ngForOf",Ze.allRules)}}function Kt(Tt,Dt){1&Tt&&(e.TgZ(0,"perun-web-apps-alert",28),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Tt&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"ROLES.NO_ROLES"),"\n"))}function on(Tt,Dt){1&Tt&&(e.TgZ(0,"div",29),e._UZ(1,"mat-spinner"),e.qZA())}let Cn=(()=>{class Tt{constructor(Ze,wt,Ft,ln,bn,gn,zn,bt,Lt,pt,rt,St,$){this.authzResolverService=Ze,this.usersService=wt,this.vosService=Ft,this.facilitiesService=ln,this.resourcesService=bn,this.groupsService=gn,this.membersService=zn,this.dialog=bt,this.notification=Lt,this.translate=pt,this.rolePipe=rt,this.guiAuthResolver=St,this.manageableEntities=$,this.reload=new e.vpe,this.startLoading=new e.vpe,this.selection=new b.Ov(!0,[]),this.selectedFacilities=new b.Ov(!0,[]),this.assignableRules=[],this.allRules=[],this.disableRemove=!1,this.selectedRole=new ot.X(null),this.groups=this.selectedRole.pipe((0,vt.w)(We=>{this.loading=!0;const At=this.roles.get(We.roleName).get("Group");return At?.length?this.groupsService.getGroupsByIds(At):(0,Fe.of)([])}),(0,X.b)(()=>this.loading=!1),(0,nt.O)([])),this.vos=this.selectedRole.pipe((0,vt.w)(We=>{this.loading=!0;const At=this.roles.get(We.roleName).get("Vo");return At?.length?this.vosService.getVosByIds(At):(0,Fe.of)([])}),(0,X.b)(()=>this.loading=!1),(0,nt.O)([])),this.facilities=this.selectedRole.pipe((0,vt.w)(We=>{this.loading=!0;const At=this.roles.get(We.roleName).get("Facility");return At?.length?this.facilitiesService.getFacilitiesByIds(At):(0,Fe.of)([])}),(0,Ae.U)(We=>We.map(At=>({facility:At}))),(0,X.b)(()=>this.loading=!1),(0,nt.O)([])),this.resources=this.selectedRole.pipe((0,vt.w)(We=>{this.loading=!0;const At=this.roles.get(We.roleName).get("Resource");return At?.length?this.resourcesService.getRichResourcesByIds(At):(0,Fe.of)([])}),(0,X.b)(()=>this.loading=!1),(0,nt.O)([])),this.members=this.selectedRole.pipe((0,vt.w)(We=>this.membersService.getRichMembersByIds(this.roles.get(We.roleName).get("Member"))),(0,X.b)(()=>this.loading=!1),(0,nt.O)([])),this.users=this.selectedRole.pipe((0,vt.w)(We=>this.usersService.getRichUsersByIds([this.entityId].concat(this.roles.get(We.roleName).get("User")))),(0,X.b)(()=>this.loading=!1),(0,nt.O)([])),this._roles=new Map}get roles(){return this._roles}set roles(Ze){this._roles=Ze,this.allRules=this.guiAuthResolver.getAllRules().filter(wt=>this._roles.has(wt.roleName))}ngOnInit(){this.assignableRules=this.guiAuthResolver.getAssignableRoleRules("GROUP"===this.entityType?"GROUP":"USER"),this.selection.changed.subscribe(Ze=>{const wt=Ze.source.selected.map(ln=>{if("beanName"in ln)return ln}),Ft=this.manageableEntities.transform(wt,this.selectedRole.getValue()).length;this.disableRemove=Ze.source.selected.length!==Ft}),this.selectedFacilities.changed.subscribe(Ze=>{const wt=Ze.source.selected.map(ln=>{if("facility"in ln)return ln.facility}),Ft=this.manageableEntities.transform(wt,this.selectedRole.getValue()).length;this.disableRemove=Ze.source.selected.length!==Ft})}addRole(){const Ze=(0,C.kZ)();let wt;Ze.width="650px",Ze.data={entityId:this.entityId,roles:this.roles},wt=this.dialog.open("GROUP"===this.entityType?Z:ce,Ze),wt.afterClosed().subscribe({next:Ft=>{Ft&&(this.startLoading.emit(),this.refresh())}})}openConfirmDialog(Ze){const wt=(0,C.kZ)(),Ft=this.getItems();wt.width="550px",wt.data={theme:"GROUP"===this.entityType?"group-theme":"user-theme",title:"ROLES.REMOVE",description:this.selectedRole.getValue().primaryObject?this.translate.instant("ROLES.REMOVE_DESC_WITH_OBJECTS",{role:this.rolePipe.transform(Ze),count:Ft.length}):this.translate.instant("ROLES.REMOVE_DESC",{role:this.rolePipe.transform(Ze)}),items:Ft,alert:!1,type:"remove",showAsk:!0},this.dialog.open(xe.Ts,wt).afterClosed().subscribe({next:bn=>{bn&&(this.startLoading.emit(),Ze.primaryObject?this.removeRoleWithComplementaryObject(Ze):this.removeRole(Ze))}})}getItems(){return this.selectedRole.getValue().primaryObject?"Facility"===this.selectedRole.getValue().primaryObject?this.selectedFacilities.selected.map(Ze=>Ze.facility.name):this.selection.selected.map(Ze=>Ze.name):[]}removeRole(Ze){(0,Fe.of)(this.entityType).pipe((0,ut.z)(wt=>(0,tt.s)(()=>"GROUP"===wt,this.authzResolverService.unsetRoleForGroup({role:Ze.roleName,authorizedGroup:this.entityId}),this.authzResolverService.unsetRoleForUser({role:Ze.roleName,user:this.entityId})))).subscribe({next:()=>{this.showSuccess(Ze),this.refresh()},error:()=>{this.selection.clear(),this.outerLoading=!1}})}removeRoleWithComplementaryObject(Ze){let wt;0!==this.selection.selected.length&&"beanName"in this.selection.selected[0]?(wt=this.selection.selected,"RichResource"===wt[0].beanName&&(wt=wt.map(Ft=>this.parseResource(Ft)))):0!==this.selectedFacilities.selected.length&&"facility"in this.selectedFacilities.selected[0]&&(wt=this.selectedFacilities.selected.map(Ft=>this.parseFacility(Ft))),(0,Fe.of)(this.entityType).pipe((0,ut.z)(Ft=>(0,tt.s)(()=>"GROUP"===Ft,this.authzResolverService.unsetRoleWithGroupComplementaryObjects({role:Ze.roleName,complementaryObjects:wt,authorizedGroup:this.entityId}),this.authzResolverService.unsetRoleWithUserComplementaryObjects({role:Ze.roleName,complementaryObjects:wt,user:this.entityId})))).subscribe({next:()=>{this.showSuccess(Ze),this.refresh()},error:()=>{this.selection.clear(),this.outerLoading=!1}})}showSuccess(Ze){this.notification.showSuccess(this.translate.instant("ROLES.REMOVE_SUCCESS",{role:this.rolePipe.transform(Ze)}))}refresh(){this.selection.clear(),setTimeout(()=>{this.reload.emit(),this.outerLoading=!1},500)}parseFacility(Ze){return Ze.facility}parseResource(Ze){return{beanName:"Resource",id:Ze.id,description:Ze.description,createdByUid:Ze.createdByUid,createdAt:Ze.createdAt,facilityId:Ze.facilityId,createdBy:Ze.createdBy,modifiedAt:Ze.modifiedAt,modifiedBy:Ze.modifiedBy,name:Ze.name,uuid:Ze.uuid,voId:Ze.voId,modifiedByUid:Ze.modifiedByUid}}}return Tt.\u0275fac=function(Ze){return new(Ze||Tt)(e.Y36(A.Ct),e.Y36(A.Fv),e.Y36(A.YF),e.Y36(A.IQ),e.Y36(A.xk),e.Y36(A.ff),e.Y36(A.uq),e.Y36(M.uw),e.Y36(m.V6),e.Y36(m.Te),e.Y36(D.i2),e.Y36(m.x4),e.Y36(D.GY))},Tt.\u0275cmp=e.Xpm({type:Tt,selectors:[["app-perun-web-apps-roles-page"]],inputs:{outerLoading:"outerLoading",showDescription:"showDescription",entityId:"entityId",entityType:"entityType",roles:"roles"},outputs:{reload:"reload",startLoading:"startLoading"},features:[e._Bn([D.i2,D.GY])],decls:9,vars:7,consts:[[1,"page-subtitle","d-flex"],["mat-flat-button","","color","accent","class","mb-3 mr-2",3,"click",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],["alert_type","warn",4,"ngIf"],["spinner",""],["mat-flat-button","","color","accent",1,"mb-3","mr-2",3,"click"],[1,"ml-auto","mr-auto"],[3,"opened","closed",4,"ngFor","ngForOf"],[3,"opened","closed"],["panel",""],["mat-card-avatar","","svgIcon","perun-user-dark",1,"mr-2"],[1,"mt-auto","mb-auto"],["matExpansionPanelContent",""],["matTooltipPosition","left",3,"matTooltip","matTooltipDisabled",4,"ngIf"],["class","position-relative",4,"ngIf"],["matTooltipPosition","left",3,"matTooltip","matTooltipDisabled"],["mat-flat-button","","color","warn",1,"mt-2",3,"disabled","click"],[1,"position-relative"],[4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["class","mb-3",4,"ngIf"],[1,"mb-3"],[3,"displayedColumns","vos","selection"],[3,"displayedColumns","groups","selection"],[3,"resources","displayedColumns","routingVo","selection"],[3,"displayedColumns","facilities","selection"],[3,"displayedColumns","members"],[3,"displayedColumns","disableRouting","users"],["alert_type","warn"],[1,"spinner-container"]],template:function(Ze,wt){1&Ze&&(e.TgZ(0,"h1",0),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.YNc(3,E,3,3,"button",1),e.YNc(4,h,1,0,"mat-spinner",2),e.YNc(5,an,2,1,"mat-accordion",3),e.YNc(6,Kt,3,3,"perun-web-apps-alert",4),e.YNc(7,on,2,0,"ng-template",null,5,e.W1O)),2&Ze&&(e.xp6(1),e.Oqu(e.lcZ(2,5,"ROLES.TITLE")),e.xp6(2),e.Q6J("ngIf",0!==wt.assignableRules.length),e.xp6(1),e.Q6J("ngIf",wt.outerLoading),e.xp6(1),e.Q6J("ngIf",!wt.outerLoading&&wt.roles.size>0),e.xp6(1),e.Q6J("ngIf",!wt.outerLoading&&0===wt.roles.size))},dependencies:[R.sg,R.O5,ye.Hw,_e.pp,_e.ib,_e.yz,_e.yK,_e.HS,B.lW,w.Ou,Se.gM,Ne.kc,Ce.w,L.Z,O.W,te.C,fe.O,z.X,r.e,u.C,R.Ov,Te.X$,_.i],styles:[".role-content[_ngcontent-%COMP%]{overflow:auto;overflow-y:hidden}.info-icon[_ngcontent-%COMP%]{vertical-align:middle;transform:scale(.8)}"],changeDetection:0}),Tt})()},60205:(Xe,ue,p)=>{"use strict";p.d(ue,{Q:()=>ot});var e=p(94650),A=p(96308),C=p(30671),M=p(95017),m=p(9244),b=p(81591),D=p(36895),v=p(94364),R=p(97392),B=p(56709),w=p(10266),L=p(98380),O=p(34198),q=p(55660),te=p(18750),z=p(89383),ie=p(9185),Te=p(8231),pe=p(14849);function Le(Fe,ut){if(1&Fe){const tt=e.EpF();e.TgZ(0,"th",19)(1,"mat-checkbox",20),e.NdJ("change",function(X){e.CHM(tt);const nt=e.oxw(2);return e.KtG(X?nt.masterToggle():null)}),e.ALo(2,"translate"),e.ALo(3,"masterCheckboxLabel"),e.qZA()()}if(2&Fe){const tt=e.oxw().ngIf,vt=e.oxw();e.xp6(1),e.Q6J("aria-label",e.lcZ(2,3,e.lcZ(3,5,tt.all)))("checked",vt.selection.hasValue()&&tt.all)("indeterminate",vt.selection.hasValue()&&!tt.all)}}const T=function(Fe){return{name:Fe}};function W(Fe,ut){if(1&Fe){const tt=e.EpF();e.TgZ(0,"td",21)(1,"mat-checkbox",22),e.NdJ("change",function(X){const Ae=e.CHM(tt).$implicit,ye=e.oxw(2);return e.KtG(X?ye.selection.toggle(Ae):null)})("click",function(X){return X.stopPropagation()}),e.ALo(2,"lowercase"),e.ALo(3,"translate"),e.ALo(4,"checkboxLabel"),e.qZA()()}if(2&Fe){const tt=ut.$implicit,vt=e.oxw(2);e.xp6(1),e.Q2q("data-cy","",e.lcZ(2,3,tt.name),"-checkbox"),e.Q6J("aria-label",e.xi3(3,5,e.lcZ(4,8,vt.selection.isSelected(tt)),e.VKq(10,T,tt.name)))("checked",vt.selection.isSelected(tt))}}function F(Fe,ut){1&Fe&&(e.ynx(0,16),e.YNc(1,Le,4,7,"th",17),e.YNc(2,W,5,12,"td",18),e.BQk())}function V(Fe,ut){1&Fe&&(e.TgZ(0,"th",23),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Fe&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.ID")," "))}function ee(Fe,ut){if(1&Fe&&(e.TgZ(0,"td",24),e._uU(1),e.qZA()),2&Fe){const tt=ut.$implicit;e.xp6(1),e.Oqu(tt.id)}}function Q(Fe,ut){1&Fe&&(e.TgZ(0,"th",23),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Fe&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.NAME")," "))}function Ee(Fe,ut){if(1&Fe&&(e.TgZ(0,"td",25),e.ALo(1,"lowercase"),e._uU(2),e.qZA()),2&Fe){const tt=ut.$implicit;e.Q2q("data-cy","",e.lcZ(1,2,tt.name),"-name-td"),e.xp6(2),e.hij(" ",tt.name," ")}}function ge(Fe,ut){1&Fe&&e._UZ(0,"th",26)}function ve(Fe,ut){1&Fe&&(e.TgZ(0,"mat-icon",29),e.ALo(1,"translate"),e._uU(2," check_circle_outline "),e.qZA()),2&Fe&&e.s9C("matTooltip",e.lcZ(1,1,"SHARED.COMPONENTS.SERVICES_LIST.ENABLED"))}function De(Fe,ut){1&Fe&&(e.TgZ(0,"mat-icon",30),e.ALo(1,"translate"),e._uU(2," block "),e.qZA()),2&Fe&&e.s9C("matTooltip",e.lcZ(1,1,"SHARED.COMPONENTS.SERVICES_LIST.DISABLED"))}function he(Fe,ut){if(1&Fe&&(e.TgZ(0,"td",25),e.YNc(1,ve,3,3,"mat-icon",27),e.YNc(2,De,3,3,"mat-icon",28),e.qZA()),2&Fe){const tt=ut.$implicit;e.xp6(1),e.Q6J("ngIf",tt.enabled),e.xp6(1),e.Q6J("ngIf",!tt.enabled)}}function Ye(Fe,ut){1&Fe&&(e.TgZ(0,"th",26),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Fe&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.SCRIPT")," "))}function Be(Fe,ut){if(1&Fe&&(e.TgZ(0,"td",25),e._uU(1),e.qZA()),2&Fe){const tt=ut.$implicit;e.xp6(1),e.Oqu(tt.script)}}function se(Fe,ut){1&Fe&&(e.TgZ(0,"th",23),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Fe&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.DESCRIPTION")," "))}function le(Fe,ut){if(1&Fe&&(e.TgZ(0,"td",25),e._uU(1),e.qZA()),2&Fe){const tt=ut.$implicit;e.xp6(1),e.Oqu(tt.description)}}function N(Fe,ut){1&Fe&&e._UZ(0,"tr",31)}const k=function(Fe){return["/admin/services",Fe]};function be(Fe,ut){if(1&Fe&&e._UZ(0,"tr",32),2&Fe){const tt=ut.$implicit,vt=e.oxw();e.ekj("cursor-pointer",!vt.disableRouting)("disable-outline",vt.disableRouting),e.Q6J("perunWebAppsMiddleClickRouterLink",vt.disableRouting?null:e.VKq(6,k,tt.id))("routerLink",vt.disableRouting?null:e.VKq(8,k,tt.id))}}function Z(Fe,ut){1&Fe&&(e.TgZ(0,"perun-web-apps-alert",33),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Fe&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function ce(Fe,ut){1&Fe&&(e.TgZ(0,"perun-web-apps-alert",33),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Fe&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.NO_SERVICES_WARNING"),"\n"))}const xe=function(Fe){return{all:Fe}};let ot=(()=>{class Fe{constructor(tt,vt){this.authResolver=tt,this.tableCheckbox=vt,this.services=[],this.filterValue="",this.displayedColumns=["select","id","name","enabled","script","description"],this.selection=new M.Ov(!0,[]),this.disableRouting=!1,this.selectionChanged=new e.vpe,this.pageSizeOptions=m.f7}set matSort(tt){this.sort=tt,this.setDataSource()}static getDataForColumn(tt,vt){switch(vt){case"id":return tt.id.toString();case"name":return tt.name;case"enabled":return tt.enabled?"true":"false";case"script":return tt.script;case"description":return tt.description;default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(tt=>"id"!==tt)),this.dataSource=new C.by(this.services),this.setDataSource(),this.selection.changed.subscribe(()=>{this.selectionChanged.emit()})}exportAllData(tt){(0,m.O6)((0,m.Xn)(this.dataSource.filteredData,this.displayedColumns,Fe.getDataForColumn),tt)}exportDisplayedData(tt){const vt=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,X=vt+this.dataSource.paginator.pageSize;(0,m.O6)((0,m.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(vt,X),this.displayedColumns,Fe.getDataForColumn),tt)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(tt,vt)=>(0,m.Sd)(tt,vt,this.displayedColumns,Fe.getDataForColumn),this.dataSource.sortData=(tt,vt)=>(0,m.pR)(tt,vt,Fe.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return Fe.\u0275fac=function(tt){return new(tt||Fe)(e.Y36(b.x4),e.Y36(b.UA))},Fe.\u0275cmp=e.Xpm({type:Fe,selectors:[["app-services-list"]],viewQuery:function(tt,vt){if(1&tt&&(e.Gf(m.l9,7),e.Gf(A.YE,7)),2&tt){let X;e.iGM(X=e.CRH())&&(vt.child=X.first),e.iGM(X=e.CRH())&&(vt.matSort=X.first)}},inputs:{services:"services",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",selection:"selection",disableRouting:"disableRouting"},outputs:{selectionChanged:"selectionChanged"},features:[e.TTD],decls:24,vars:15,consts:[[1,"card","mt-3",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","enabled"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","script"],["matColumnDef","description"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-cell",""],["class","align-bottom green",3,"matTooltip",4,"ngIf"],["class","align-bottom red",3,"matTooltip",4,"ngIf"],[1,"align-bottom","green",3,"matTooltip"],[1,"align-bottom","red",3,"matTooltip"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(tt,vt){1&tt&&(e.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),e.NdJ("exportDisplayedData",function(nt){return vt.exportDisplayedData(nt)})("exportAllData",function(nt){return vt.exportAllData(nt)}),e.TgZ(2,"table",2),e.YNc(3,F,3,0,"ng-container",3),e.ALo(4,"isAllSelected"),e.ynx(5,4),e.YNc(6,V,3,3,"th",5),e.YNc(7,ee,2,1,"td",6),e.BQk(),e.ynx(8,7),e.YNc(9,Q,3,3,"th",5),e.YNc(10,Ee,3,4,"td",8),e.BQk(),e.ynx(11,9),e.YNc(12,ge,1,0,"th",10),e.YNc(13,he,3,2,"td",8),e.BQk(),e.ynx(14,11),e.YNc(15,Ye,3,3,"th",10),e.YNc(16,Be,2,1,"td",8),e.BQk(),e.ynx(17,12),e.YNc(18,se,3,3,"th",5),e.YNc(19,le,2,1,"td",8),e.BQk(),e.YNc(20,N,1,0,"tr",13),e.YNc(21,be,1,10,"tr",14),e.qZA()()(),e.YNc(22,Z,3,3,"perun-web-apps-alert",15),e.YNc(23,ce,3,3,"perun-web-apps-alert",15)),2&tt&&(e.Q6J("hidden",void 0===vt.services||0===vt.services.length||0===vt.dataSource.filteredData.length),e.xp6(1),e.Q6J("pageSizeOptions",vt.pageSizeOptions)("dataLength",vt.dataSource.filteredData.length)("tableId",vt.tableId),e.xp6(1),e.Q6J("dataSource",vt.dataSource),e.xp6(1),e.Q6J("ngIf",e.VKq(13,xe,e.xi3(4,10,vt.dataSource,vt.selection.selected.length))),e.xp6(17),e.Q6J("matHeaderRowDef",vt.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",vt.displayedColumns),e.xp6(1),e.Q6J("ngIf",0===vt.dataSource.filteredData.length&&void 0!==vt.services&&0!==vt.services.length),e.xp6(1),e.Q6J("ngIf",void 0===vt.services||0===vt.services.length))},dependencies:[D.O5,v.rH,R.Hw,A.YE,A.nU,C.BZ,C.fO,C.as,C.w1,C.Dz,C.nj,C.ge,C.ev,C.XQ,C.Gk,B.oG,w.gM,L.w,O.Y,q.Q,te.l,D.i8,z.X$,ie.I,Te.G,pe.r],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.disable-outline[_ngcontent-%COMP%]{outline:none!important}.green[_ngcontent-%COMP%]{color:green}.red[_ngcontent-%COMP%]{color:red}"]}),Fe})()},64877:(Xe,ue,p)=>{"use strict";p.d(ue,{C:()=>ye});var e=p(96308),A=p(30671),C=p(95017),M=p(9244),m=p(81591),b=p(94650),D=p(36895),v=p(94364),R=p(97392),B=p(56709),w=p(10266),L=p(98380),O=p(34198),q=p(55660),te=p(18750),z=p(89383),ie=p(31359),Te=p(16119),pe=p(7598),Le=p(9954),T=p(9185),W=p(8231),F=p(14849);function V(_e,Se){if(1&_e){const Ne=b.EpF();b.TgZ(0,"mat-checkbox",22),b.NdJ("change",function(fe){b.CHM(Ne);const r=b.oxw(3);return b.KtG(fe?r.masterToggle():null)}),b.ALo(1,"translate"),b.ALo(2,"masterCheckboxLabel"),b.qZA()}if(2&_e){const Ne=b.oxw(2).ngIf,Ce=b.oxw();b.Q6J("aria-label",b.lcZ(1,3,b.lcZ(2,5,Ne.all)))("checked",Ce.selection.hasValue()&&Ne.all)("indeterminate",Ce.selection.hasValue()&&!Ne.all)}}function ee(_e,Se){if(1&_e&&(b.TgZ(0,"th",20),b.YNc(1,V,3,7,"mat-checkbox",21),b.qZA()),2&_e){const Ne=b.oxw(2);b.xp6(1),b.Q6J("ngIf",Ne.selection.isMultipleSelection())}}const Q=function(_e){return{name:_e}};function Ee(_e,Se){if(1&_e){const Ne=b.EpF();b.TgZ(0,"td",23)(1,"mat-checkbox",24),b.NdJ("change",function(fe){const u=b.CHM(Ne).$implicit,_=b.oxw(2);return b.KtG(fe?_.selection.toggle(u):null)})("click",function(fe){return fe.stopPropagation()}),b.ALo(2,"translate"),b.ALo(3,"checkboxLabel"),b.ALo(4,"userFullName"),b.ALo(5,"lowercase"),b.qZA()()}if(2&_e){const Ne=Se.$implicit,Ce=b.oxw(2);b.xp6(1),b.Q2q("data-cy","",b.lcZ(5,11,Ne.firstName),"-checkbox"),b.Q6J("aria-label",b.xi3(2,4,b.lcZ(3,7,Ce.selection.isSelected(Ne)),b.VKq(13,Q,b.lcZ(4,9,Ne))))("checked",Ce.selection.isSelected(Ne))("disabled",Ce.disableSelf&&Ne.id===Ce.principalId&&!Ce.authResolver.isPerunAdmin())}}function ge(_e,Se){1&_e&&(b.ynx(0,17),b.YNc(1,ee,2,1,"th",18),b.YNc(2,Ee,6,15,"td",19),b.BQk())}function ve(_e,Se){1&_e&&b._UZ(0,"th",25)}function De(_e,Se){1&_e&&(b.TgZ(0,"mat-icon",29),b.ALo(1,"translate"),b._uU(2," account_circle "),b.qZA()),2&_e&&b.s9C("matTooltip",b.lcZ(1,1,"MANAGERS_LIST.PERSON"))}function he(_e,Se){if(1&_e&&(b._UZ(0,"mat-icon",30),b.ALo(1,"translate")),2&_e){const Ne=b.oxw(2);b.s9C("matTooltip",b.lcZ(1,2,"MANAGERS_LIST.SERVICE")),b.Q6J("svgIcon",Ne.svgIcon)}}function Ye(_e,Se){if(1&_e&&(b.TgZ(0,"td",26),b.YNc(1,De,3,3,"mat-icon",27),b.YNc(2,he,2,4,"mat-icon",28),b.qZA()),2&_e){const Ne=Se.$implicit;b.xp6(1),b.Q6J("ngIf",!Ne.serviceUser),b.xp6(1),b.Q6J("ngIf",Ne.serviceUser)}}function Be(_e,Se){1&_e&&(b.TgZ(0,"th",31),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&_e&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"MANAGERS_LIST.ID")," "))}function se(_e,Se){if(1&_e&&(b.TgZ(0,"td",26),b._uU(1),b.qZA()),2&_e){const Ne=Se.$implicit;b.xp6(1),b.hij(" ",Ne.id," ")}}function le(_e,Se){1&_e&&(b.TgZ(0,"th",31),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&_e&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"MANAGERS_LIST.NAME")," "))}function N(_e,Se){if(1&_e&&(b.TgZ(0,"td",32),b.ALo(1,"lowercase"),b._uU(2),b.ALo(3,"userFullName"),b.qZA()),2&_e){const Ne=Se.$implicit;b.Q2q("data-cy","",b.lcZ(1,2,Ne.firstName),"-firstName-td"),b.xp6(2),b.hij(" ",b.lcZ(3,4,Ne)," ")}}function k(_e,Se){1&_e&&(b.TgZ(0,"th",31),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&_e&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"MANAGERS_LIST.ORGANIZATION")," "))}function be(_e,Se){if(1&_e&&(b.TgZ(0,"td",32),b._uU(1),b.ALo(2,"userVo"),b.qZA()),2&_e){const Ne=Se.$implicit;b.xp6(1),b.Oqu(b.lcZ(2,1,Ne))}}function Z(_e,Se){1&_e&&(b.TgZ(0,"th",31),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&_e&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"MANAGERS_LIST.EMAIL")," "))}function ce(_e,Se){if(1&_e&&(b.TgZ(0,"td",32),b._uU(1),b.ALo(2,"userEmail"),b.qZA()),2&_e){const Ne=Se.$implicit;b.xp6(1),b.Oqu(b.lcZ(2,1,Ne))}}function xe(_e,Se){1&_e&&(b.TgZ(0,"th",31),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&_e&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"MANAGERS_LIST.LOGINS")," "))}function ot(_e,Se){if(1&_e&&(b.TgZ(0,"td",32),b._uU(1),b.ALo(2,"userLogins"),b.qZA()),2&_e){const Ne=Se.$implicit;b.xp6(1),b.Oqu(b.lcZ(2,1,Ne))}}function Fe(_e,Se){1&_e&&b._UZ(0,"tr",33)}const ut=function(_e){return["/admin/users",_e]},tt=function(_e){return["/myProfile/service-identities",_e]};function vt(_e,Se){if(1&_e&&b._UZ(0,"tr",34),2&_e){const Ne=Se.$implicit,Ce=b.oxw();b.ekj("cursor-pointer",!Ce.disableRouting),b.Q6J("routerLink",Ce.disableRouting?null:Ce.routeToAdmin?b.VKq(4,ut,Ne.id):b.VKq(6,tt,Ne.id))("perunWebAppsMiddleClickRouterLink",Ce.disableRouting?null:Ce.routeToAdmin?b.VKq(8,ut,Ne.id):b.VKq(10,tt,Ne.id))}}function X(_e,Se){if(1&_e&&(b.TgZ(0,"perun-web-apps-alert",35),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&_e){const Ne=b.oxw();b.xp6(1),b.hij(" ",Ne.noUsersFoundLabel?Ne.noUsersFoundLabel:b.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_USERS"),"\n")}}function nt(_e,Se){1&_e&&(b.TgZ(0,"perun-web-apps-alert",35),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&_e&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}const Ae=function(_e){return{all:_e}};let ye=(()=>{class _e{constructor(Ne,Ce,fe){this.authResolver=Ne,this.tableCheckbox=Ce,this.storeService=fe,this.selection=new C.Ov(!0,[]),this.displayedColumns=["select","user","id","name","email","logins","organization"],this.routeToAdmin=!0,this.disableRouting=!1,this.filter="",this.disableSelf=!1,this.svgIcon="perun-service-identity-black",this.pageSizeOptions=M.f7}set matSort(Ne){this.sort=Ne}static getDataForColumn(Ne,Ce){switch(Ce){case"id":return Ne.id.toString();case"user":return Ne.serviceUser?"true":"false";case"name":return Ne?Ne.lastName?Ne.lastName:Ne.firstName??"":"";case"organization":return(0,M.OV)(Ne);case"email":return(0,M.kN)(Ne);case"logins":return(0,M.lt)(Ne);default:return""}}static getExportDataForColumn(Ne,Ce){switch(Ce){case"id":return Ne.id.toString();case"user":return Ne.serviceUser?"service-user":"user";case"name":return Ne?(0,M.bD)(Ne):"";case"organization":return(0,M.OV)(Ne);case"email":return(0,M.kN)(Ne);case"logins":return(0,M.lt)(Ne);default:return""}}exportAllData(Ne){(0,M.O6)((0,M.Xn)(this.dataSource.filteredData,this.displayedColumns,_e.getExportDataForColumn),Ne)}exportDisplayedData(Ne){const Ce=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,fe=Ce+this.dataSource.paginator.pageSize;(0,M.O6)((0,M.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(Ce,fe),this.displayedColumns,_e.getExportDataForColumn),Ne)}setDataSource(){this.dataSource||(this.dataSource=new A.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(Ne,Ce)=>(0,M.Sd)(Ne,Ce,this.displayedColumns,_e.getDataForColumn),this.dataSource.sortData=(Ne,Ce)=>(0,M.pR)(Ne,Ce,_e.getDataForColumn)),this.dataSource.filter=this.filter,this.dataSource.data=this.users}ngOnChanges(){this.principalId=this.storeService.getPerunPrincipal().userId,this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(Ne=>"id"!==Ne)),this.setDataSource()}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filter,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}}return _e.\u0275fac=function(Ne){return new(Ne||_e)(b.Y36(m.x4),b.Y36(m.UA),b.Y36(m.d6))},_e.\u0275cmp=b.Xpm({type:_e,selectors:[["app-users-list"]],viewQuery:function(Ne,Ce){if(1&Ne&&(b.Gf(M.l9,7),b.Gf(e.YE,7)),2&Ne){let fe;b.iGM(fe=b.CRH())&&(Ce.child=fe.first),b.iGM(fe=b.CRH())&&(Ce.matSort=fe.first)}},inputs:{users:"users",selection:"selection",displayedColumns:"displayedColumns",routeToAdmin:"routeToAdmin",disableRouting:"disableRouting",filter:"filter",tableId:"tableId",noUsersFoundLabel:"noUsersFoundLabel",disableSelf:"disableSelf"},features:[b.TTD],decls:27,vars:15,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","tableId","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","user"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","organization"],["matColumnDef","email"],["matColumnDef","logins"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","routerLink","perunWebAppsMiddleClickRouterLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change",4,"ngIf"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell",""],["mat-cell","",1,"static-column-size"],["class","align-bottom",3,"matTooltip",4,"ngIf"],["class","align-bottom",3,"svgIcon","matTooltip",4,"ngIf"],[1,"align-bottom",3,"matTooltip"],[1,"align-bottom",3,"svgIcon","matTooltip"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"routerLink","perunWebAppsMiddleClickRouterLink"],["alert_type","warn"]],template:function(Ne,Ce){1&Ne&&(b.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),b.NdJ("exportDisplayedData",function(r){return Ce.exportDisplayedData(r)})("exportAllData",function(r){return Ce.exportAllData(r)}),b.TgZ(2,"table",2),b.YNc(3,ge,3,0,"ng-container",3),b.ALo(4,"isAllSelected"),b.ynx(5,4),b.YNc(6,ve,1,0,"th",5),b.YNc(7,Ye,3,2,"td",6),b.BQk(),b.ynx(8,7),b.YNc(9,Be,3,3,"th",8),b.YNc(10,se,2,1,"td",6),b.BQk(),b.ynx(11,9),b.YNc(12,le,3,3,"th",8),b.YNc(13,N,4,6,"td",10),b.BQk(),b.ynx(14,11),b.YNc(15,k,3,3,"th",8),b.YNc(16,be,3,3,"td",10),b.BQk(),b.ynx(17,12),b.YNc(18,Z,3,3,"th",8),b.YNc(19,ce,3,3,"td",10),b.BQk(),b.ynx(20,13),b.YNc(21,xe,3,3,"th",8),b.YNc(22,ot,3,3,"td",10),b.BQk(),b.YNc(23,Fe,1,0,"tr",14),b.YNc(24,vt,1,12,"tr",15),b.qZA()()(),b.YNc(25,X,3,3,"perun-web-apps-alert",16),b.YNc(26,nt,3,3,"perun-web-apps-alert",16)),2&Ne&&(b.Q6J("hidden",0===Ce.users.length||!Ce.dataSource||0===Ce.dataSource.filteredData.length),b.xp6(1),b.Q6J("dataLength",Ce.dataSource.filteredData.length)("pageSizeOptions",Ce.pageSizeOptions)("tableId",Ce.tableId),b.xp6(1),b.Q6J("dataSource",Ce.dataSource),b.xp6(1),b.Q6J("ngIf",b.VKq(13,Ae,b.xi3(4,10,Ce.dataSource,Ce.selection.selected.length))),b.xp6(20),b.Q6J("matHeaderRowDef",Ce.displayedColumns),b.xp6(1),b.Q6J("matRowDefColumns",Ce.displayedColumns),b.xp6(1),b.Q6J("ngIf",0===Ce.users.length),b.xp6(1),b.Q6J("ngIf",0===Ce.dataSource.filteredData.length&&0!==Ce.users.length))},dependencies:[D.O5,v.rH,R.Hw,e.YE,e.nU,A.BZ,A.fO,A.as,A.w1,A.Dz,A.nj,A.ge,A.ev,A.XQ,A.Gk,B.oG,w.gM,L.w,O.Y,q.Q,te.l,D.i8,z.X$,ie.d,Te.S,pe.g,Le.Z,T.I,W.G,F.r],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),_e})()},57706:(Xe,ue,p)=>{"use strict";p.d(ue,{c:()=>C});var e=p(94650),A=p(89383);let C=(()=>{class M{constructor(b){this.translateService=b,this.returnData=""}transform(b){return this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES."+b).subscribe(D=>{this.returnData=D}),this.returnData}}return M.\u0275fac=function(b){return new(b||M)(e.Y36(A.sK,16))},M.\u0275pipe=e.Yjl({name:"applicationFormItemType",type:M,pure:!0}),M})()},43157:(Xe,ue,p)=>{"use strict";p.d(ue,{h:()=>C});var e=p(94650),A=p(89383);let C=(()=>{class M{constructor(b){this.translate=b,this.returnData=""}transform(b){switch(b){case"APPROVED":this.translate.get("VO_DETAIL.APPLICATION.STATE.APPROVED").subscribe(D=>{this.returnData=`done${D}`});break;case"REJECTED":this.translate.get("VO_DETAIL.APPLICATION.STATE.REJECTED").subscribe(D=>{this.returnData=`clear${D}`});break;case"NEW":this.translate.get("VO_DETAIL.APPLICATION.STATE.NEW").subscribe(D=>{this.returnData=`contact_mail ${D}`});break;case"VERIFIED":this.translate.get("VO_DETAIL.APPLICATION.STATE.VERIFIED").subscribe(D=>{this.returnData=`gavel${D}`});break;default:this.returnData=b}return this.returnData}}return M.\u0275fac=function(b){return new(b||M)(e.Y36(A.sK,16))},M.\u0275pipe=e.Yjl({name:"applicationState",type:M,pure:!1}),M})()},70844:(Xe,ue,p)=>{"use strict";p.d(ue,{u:()=>C});var e=p(81591),A=p(94650);let C=(()=>{class M{constructor(b){this.storeService=b,this.USER_CONSENT_RELATED_ATT_NAMESPACE=["urn:perun:user_facility:attribute-def","urn:perun:user:attribute-def","urn:perun:member:attribute-def","urn:perun:member_group:attribute-def","urn:perun:member_resource:attribute-def","urn:perun:ues:attribute-def"]}transform(b,D,v){return!!(this.storeService.getProperty("enforce_consents")&&v&&D)&&this.USER_CONSENT_RELATED_ATT_NAMESPACE.reduce((B,w)=>B||b.startsWith(w),!1)}}return M.\u0275fac=function(b){return new(b||M)(A.Y36(e.d6,16))},M.\u0275pipe=A.Yjl({name:"consentRelatedAttribute",type:M,pure:!0}),M})()},37677:(Xe,ue,p)=>{"use strict";p.d(ue,{A:()=>A});var e=p(94650);let A=(()=>{class C{transform(m){return m.substring(40)}}return C.\u0275fac=function(m){return new(m||C)},C.\u0275pipe=e.Yjl({name:"extSourceType",type:C,pure:!0}),C})()},32597:(Xe,ue,p)=>{"use strict";p.d(ue,{g:()=>M});var e=p(95698),A=p(94650),C=p(94364);let M=(()=>{class m{constructor(D,v){this.router=D,this.route=v}navigate(D,v=null){this.route.queryParams.pipe((0,e.q)(1)).subscribe(R=>{let B="merge";const w=Object.assign({},R);location.pathname.endsWith("applicationForm/preview")&&(B="",delete w.applicationFormItems),this.router.navigate(D,{relativeTo:v,queryParams:w,queryParamsHandling:B})})}}return m.\u0275fac=function(D){return new(D||m)(A.LFG(C.F0),A.LFG(C.gz))},m.\u0275prov=A.Yz7({token:m,factory:m.\u0275fac,providedIn:"root"}),m})()},14264:(Xe,ue,p)=>{"use strict";p.d(ue,{m:()=>st});var e=p(36895),A=p(94364),C=p(47957),M=p(4859),m=p(56709),b=p(3238),D=p(99602),v=p(65412),R=p(44850),B=p(37084),w=p(59549),L=p(97392),O=p(284),q=p(98739),te=p(73162),z=p(51572),ie=p(71948),Te=p(84385),pe=p(23267),Le=p(90455),T=p(17009),W=p(96308),F=p(30671),V=p(3848),ee=p(10266),Q=p(35423),Ee=p(73546),ge=p(42673),ve=p(77331),De=p(28255),he=p(86257),Ye=p(24006),Be=p(73228),se=p(36769),le=p(81591),N=p(94650),k=p(32597),be=p(34198),Z=p(89383);const ce=["collapse"],xe=function(){return{color:"linkTextColor"}};function ot(Ke,Et){1&Ke&&(N.TgZ(0,"mat-icon",14),N._uU(1,"keyboard_arrow_right"),N.qZA()),2&Ke&&N.Q6J("ngStyle",N.DdM(1,xe))}function Fe(Ke,Et){1&Ke&&(N.TgZ(0,"mat-icon",14),N._uU(1,"keyboard_arrow_down"),N.qZA()),2&Ke&&N.Q6J("ngStyle",N.DdM(1,xe))}function ut(Ke,Et){if(1&Ke&&(N.TgZ(0,"span",12),N.YNc(1,ot,2,2,"mat-icon",13),N.YNc(2,Fe,2,2,"mat-icon",13),N.qZA()),2&Ke){const ke=N.oxw().$implicit,at=N.oxw(2);N.xp6(1),N.Q6J("ngIf",!at.isActive(at.currentUrl,ke.showChildrenRegex)),N.xp6(1),N.Q6J("ngIf",at.isActive(at.currentUrl,ke.showChildrenRegex))}}const tt=function(Ke,Et){return{color:Ke,"border-color":Et}};function vt(Ke,Et){if(1&Ke){const ke=N.EpF();N.TgZ(0,"a",17),N.NdJ("click",function(){const jt=N.CHM(ke).$implicit,an=N.oxw(4);return N.KtG(an.navigate(jt.url))}),N._uU(1),N.ALo(2,"translate"),N.qZA()}if(2&Ke){const ke=Et.$implicit,at=N.oxw(4);N.ekj("activated",at.isActive(at.currentUrl,ke.activatedRegex)&&void 0===at.item.activatedClass),N.Q6J("perunWebAppsMiddleClickRouterLink",ke.url)("matRippleColor","rgba(255, 255, 255, 0.1)")("ngClass",at.isActive(at.currentUrl,ke.activatedRegex)&&void 0!==at.item.activatedClass?at.item.activatedClass:"")("ngStyle",N.WLB(9,tt,at.linkTextColor,at.linkTextColor)),N.xp6(1),N.hij(" ",N.lcZ(2,7,ke.label)," ")}}function X(Ke,Et){if(1&Ke&&(N.TgZ(0,"div",15),N.YNc(1,vt,3,12,"a",16),N.qZA()),2&Ke){const ke=N.oxw().$implicit;N.Q6J("@rollInOut",void 0),N.xp6(1),N.Q6J("ngForOf",null==ke?null:ke.children)}}function nt(Ke,Et){if(1&Ke){const ke=N.EpF();N.TgZ(0,"div")(1,"a",9),N.NdJ("click",function(){const jt=N.CHM(ke).$implicit,an=N.oxw(2);return N.KtG(an.navigate(jt.url))}),N._uU(2),N.ALo(3,"translate"),N.YNc(4,ut,3,2,"span",10),N.qZA(),N.YNc(5,X,2,2,"div",11),N.qZA()}if(2&Ke){const ke=Et.$implicit,at=N.oxw(2);N.xp6(1),N.ekj("activated",at.isActive(at.currentUrl,ke.activatedRegex)&&void 0===at.item.activatedClass),N.Q6J("perunWebAppsMiddleClickRouterLink",ke.url)("matRippleColor","rgba(255, 255, 255, 0.1)")("ngClass",at.isActive(at.currentUrl,ke.activatedRegex)&&void 0!==at.item.activatedClass?at.item.activatedClass:"")("ngStyle",N.WLB(11,tt,at.linkTextColor,at.linkTextColor)),N.xp6(1),N.hij(" ",N.lcZ(3,9,ke.label)," "),N.xp6(2),N.Q6J("ngIf",ke.children),N.xp6(1),N.Q6J("ngIf",at.isActive(at.currentUrl,ke.showChildrenRegex))}}function Ae(Ke,Et){if(1&Ke&&(N.TgZ(0,"div"),N.YNc(1,nt,6,14,"div",8),N.qZA()),2&Ke){const ke=N.oxw();N.Q6J("@rollInOut",void 0),N.xp6(1),N.Q6J("ngForOf",ke.item.links)}}const ye=function(Ke,Et){return{background:Ke,"border-top":Et}},_e=function(Ke){return{color:Ke}},Se=function(){return{color:"currentColor"}},Ne=function(Ke){return{background:Ke}};let Ce=(()=>{class Ke{constructor(ke,at,It){this.router=ke,this.store=at,this.queryParamsRouter=It,this.expanded=!0,this.linkBgColor=this.store.getProperty("theme").sidemenu_submenu_bg_color,this.linkTextColor=this.store.getProperty("theme").sidemenu_submenu_text_color,this.dividerStyle="1px solid "+this.store.getProperty("theme").sidemenu_divider_color,this.currentUrl=ke.url,ke.events.subscribe(jt=>{jt instanceof A.m2&&(this.currentUrl=jt.url)})}toggle(){void 0!==this.item.baseLink&&this.navigate(this.item.baseLink)}isActive(ke,at){return new RegExp(at).test(ke.split("?")[0])}navigate(ke){"over"===this.sideNav.mode?this.sideNav.close().then(()=>this.queryParamsRouter.navigate(ke)):this.queryParamsRouter.navigate(ke)}}return Ke.\u0275fac=function(ke){return new(ke||Ke)(N.Y36(A.F0),N.Y36(le.d6),N.Y36(k.g))},Ke.\u0275cmp=N.Xpm({type:Ke,selectors:[["app-side-menu-item"]],viewQuery:function(ke,at){if(1&ke&&N.Gf(ce,5),2&ke){let It;N.iGM(It=N.CRH())&&(at.collapseDiv=It.first)}},inputs:{item:"item",index:"index",showLinks:"showLinks",sideNav:"sideNav"},decls:12,vars:26,consts:[[1,"entity-menu-item"],["matRipple","",1,"entity-menu-item-header",3,"matRippleColor","ngStyle","click"],["matRipple","",3,"perunWebAppsMiddleClickRouterLink"],[1,"entity-menu-item-label",3,"ngStyle"],[1,"perun-icon",3,"ngStyle","svgIcon"],[1,"ml-3"],[3,"ngStyle"],[4,"ngIf"],[4,"ngFor","ngForOf"],["matRipple","",1,"clickable","d-flex",3,"perunWebAppsMiddleClickRouterLink","matRippleColor","ngClass","ngStyle","click"],["class","ml-auto",4,"ngIf"],["class","entity-menu-item-sub-menu",4,"ngIf"],[1,"ml-auto"],["class","perun-icon icon-beak",3,"ngStyle",4,"ngIf"],[1,"perun-icon","icon-beak",3,"ngStyle"],[1,"entity-menu-item-sub-menu"],["class","entity-menu-item-sub-menu-item clickable","matRipple","",3,"perunWebAppsMiddleClickRouterLink","activated","matRippleColor","ngClass","ngStyle","click",4,"ngFor","ngForOf"],["matRipple","",1,"entity-menu-item-sub-menu-item","clickable",3,"perunWebAppsMiddleClickRouterLink","matRippleColor","ngClass","ngStyle","click"]],template:function(ke,at){1&ke&&(N.TgZ(0,"div",0)(1,"div",1),N.NdJ("click",function(){return at.toggle()}),N.TgZ(2,"div",2)(3,"a",3)(4,"div"),N._UZ(5,"mat-icon",4),N.qZA(),N.TgZ(6,"div",5),N._uU(7),N.ALo(8,"translate"),N.qZA()()()(),N.TgZ(9,"div")(10,"div",6),N.YNc(11,Ae,2,2,"div",7),N.qZA()()()),2&ke&&(N.xp6(1),N.Q6J("matRippleColor","rgba(255, 255, 255, 0.1)")("ngStyle",N.WLB(18,ye,at.item.backgroundColorCss,at.index?at.dividerStyle:"none")),N.xp6(1),N.Gre("entity-menu-item-link ",at.item.labelClass,""),N.Q6J("perunWebAppsMiddleClickRouterLink",at.item.baseLink),N.xp6(1),N.Q6J("ngStyle",N.VKq(21,_e,at.item.textColorCss)),N.xp6(2),N.Q6J("ngStyle",N.DdM(23,Se))("svgIcon",at.item.icon),N.xp6(2),N.Oqu(N.lcZ(8,16,at.item.label)),N.xp6(2),N.Q6J("@openClose",at.expanded?"open":"closed"),N.xp6(1),N.Gre("side-entity-menu ",at.item.linksClass,""),N.Q6J("ngStyle",N.VKq(24,Ne,at.linkBgColor)),N.xp6(1),N.Q6J("ngIf",at.showLinks))},dependencies:[e.mk,e.sg,e.O5,e.PC,L.Hw,b.wG,be.Y,Z.X$],styles:[".entity-menu-item[_ngcontent-%COMP%]{width:300px}.side-entity-menu[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{background:var(--side-link-hover)!important;color:var(--side-link-text-hover)!important}.side-entity-menu[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding:5px 8px 5px 40px;text-decoration:none;color:#fff;font-size:1rem;display:block}.activated[_ngcontent-%COMP%]{color:#313131!important;border-right:5px solid #313131}.entity-menu-item-header[_ngcontent-%COMP%]{padding:8px 5px 8px 25px;cursor:pointer;-moz-user-select:none;-webkit-user-select:none;user-select:none;-webkit-user-drag:none;-webkit-tap-highlight-color:transparent}.entity-menu-item-label[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;word-break:break-word}.entity-menu-item-label[_ngcontent-%COMP%]:hover{text-decoration:none}.entity-menu-item-link[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:space-between;color:#fff}.entity-menu-item-link[_ngcontent-%COMP%]:hover{text-decoration:none}.entity-menu-item-icon[_ngcontent-%COMP%]{height:2rem}.entity-menu-item-sub-menu[_ngcontent-%COMP%]{overflow:hidden}.entity-menu-item-sub-menu-item[_ngcontent-%COMP%]{padding-left:4rem!important}"],data:{animation:[se.BQ,se.Ly]}}),Ke})(),fe=(()=>{class Ke{transform(ke){if(void 0===ke.value)return"";switch(ke.type){case"java.lang.String":return ke.value;case"java.lang.Integer":case"java.lang.Boolean":default:return String(ke.value);case"java.util.ArrayList":return this.whenValueIsArray(ke.value);case"java.util.LinkedHashMap":return this.whenValueIsMap(ke.value)}}whenValueIsArray(ke){let at="";return ke.forEach(function(It){at=at.concat(It+", ")}),at}whenValueIsMap(ke){let at="";return ke.forEach((It,jt)=>{at=at.concat(jt+": "+It+", ")}),at}}return Ke.\u0275fac=function(ke){return new(ke||Ke)},Ke.\u0275pipe=N.Yjl({name:"anyToString",type:Ke,pure:!0}),Ke})();const r=["collapse"],u=function(){return{color:"linkTextColor"}};function _(Ke,Et){1&Ke&&(N.TgZ(0,"mat-icon",12),N._uU(1,"keyboard_arrow_right"),N.qZA()),2&Ke&&N.Q6J("ngStyle",N.DdM(1,u))}function E(Ke,Et){1&Ke&&(N.TgZ(0,"mat-icon",12),N._uU(1,"keyboard_arrow_down"),N.qZA()),2&Ke&&N.Q6J("ngStyle",N.DdM(1,u))}function h(Ke,Et){if(1&Ke&&(N.TgZ(0,"span",10),N.YNc(1,_,2,2,"mat-icon",11),N.YNc(2,E,2,2,"mat-icon",11),N.qZA()),2&Ke){const ke=N.oxw().$implicit,at=N.oxw();N.xp6(1),N.Q6J("ngIf",!at.isActive(at.currentUrl,ke.showChildrenRegex)),N.xp6(1),N.Q6J("ngIf",at.isActive(at.currentUrl,ke.showChildrenRegex))}}const a=function(Ke,Et){return{color:Ke,"border-color":Et}};function i(Ke,Et){if(1&Ke){const ke=N.EpF();N.TgZ(0,"a",14),N.NdJ("click",function(){const jt=N.CHM(ke).$implicit,an=N.oxw(3);return N.KtG(an.navigate(jt.url))}),N._uU(1),N.ALo(2,"translate"),N.qZA()}if(2&Ke){const ke=Et.$implicit,at=N.oxw(3);N.ekj("activated",at.isActive(at.currentUrl,ke.activatedRegex)&&void 0===at.item.activatedClass),N.Q6J("matRippleColor","rgba(255, 255, 255, 0.1)")("ngStyle",N.WLB(9,a,at.linkTextColor,at.linkTextColor))("ngClass",at.isActive(at.currentUrl,ke.activatedRegex)&&void 0!==at.item.activatedClass?at.item.activatedClass:"")("perunWebAppsMiddleClickRouterLink",ke.url),N.xp6(1),N.hij(" ",N.lcZ(2,7,ke.label)," ")}}function t(Ke,Et){if(1&Ke&&(N.TgZ(0,"div"),N.YNc(1,i,3,12,"a",13),N.qZA()),2&Ke){const ke=N.oxw().$implicit;N.Q6J("@rollInOut",void 0),N.xp6(1),N.Q6J("ngForOf",null==ke?null:ke.children)}}function n(Ke,Et){if(1&Ke){const ke=N.EpF();N.TgZ(0,"div")(1,"a",7),N.NdJ("click",function(){const jt=N.CHM(ke).$implicit,an=N.oxw();return N.KtG(an.navigate(jt.url))}),N._uU(2),N.ALo(3,"translate"),N.YNc(4,h,3,2,"span",8),N.qZA(),N.YNc(5,t,2,2,"div",9),N.qZA()}if(2&Ke){const ke=Et.$implicit,at=N.oxw();N.xp6(1),N.ekj("activated",at.isActive(at.currentUrl,ke.activatedRegex)&&void 0===at.item.activatedClass),N.Q6J("perunWebAppsMiddleClickRouterLink",ke.url)("matRippleColor","rgba(255, 255, 255, 0.1)")("ngClass",at.isActive(at.currentUrl,ke.activatedRegex)&&void 0!==at.item.activatedClass?at.item.activatedClass:"")("ngStyle",N.WLB(11,a,at.linkTextColor,at.linkTextColor)),N.xp6(1),N.hij(" ",N.lcZ(3,9,ke.label)," "),N.xp6(2),N.Q6J("ngIf",ke.children),N.xp6(1),N.Q6J("ngIf",at.isActive(at.currentUrl,ke.showChildrenRegex))}}const o=function(Ke){return{background:Ke}},s=function(Ke){return{color:Ke}},l=function(){return{color:"currentColor"}};let d=(()=>{class Ke{constructor(ke,at,It){this.router=ke,this.store=at,this.queryParamsRouter=It,this.id="",this.expanded=!1,this.linkBgColor=this.store.getProperty("theme").sidemenu_submenu_bg_color,this.linkTextColor=this.store.getProperty("theme").sidemenu_submenu_text_color,this.currentUrl=ke.url,ke.events.subscribe(jt=>{jt instanceof A.m2&&(this.currentUrl=jt.url)})}ngOnInit(){this.expanded=this.showOpen}ngOnChanges(){this.expanded=this.showOpen}toggle(){void 0!==this.item.baseLink?this.navigate(this.item.baseLink):this.expanded=!this.expanded}isActive(ke,at){return new RegExp(at).test(ke)}getBgClass(){return this.item.baseColorClass?this.isActive(this.currentUrl,this.item.baseColorClassRegex)?this.item.colorClass:this.item.baseColorClass:this.item.colorClass}navigate(ke){"over"===this.sideNav.mode?this.sideNav.close().then(()=>this.queryParamsRouter.navigate(ke)):this.queryParamsRouter.navigate(ke)}}return Ke.\u0275fac=function(ke){return new(ke||Ke)(N.Y36(A.F0),N.Y36(le.d6),N.Y36(k.g))},Ke.\u0275cmp=N.Xpm({type:Ke,selectors:[["app-side-menu-root-item"]],viewQuery:function(ke,at){if(1&ke&&N.Gf(r,5),2&ke){let It;N.iGM(It=N.CRH())&&(at.collapseDiv=It.first)}},inputs:{item:"item",index:"index",showOpen:"showOpen",id:"id",sideNav:"sideNav"},features:[N.TTD],decls:12,vars:28,consts:[[1,"entity-menu-item",3,"id"],["matRipple","",1,"entity-menu-item-header",3,"matRippleColor","ngStyle","perunWebAppsMiddleClickRouterLink","click"],[1,"entity-menu-item-label",3,"ngStyle"],[1,"perun-icon",3,"ngStyle","svgIcon"],[1,"ml-3"],[3,"ngStyle"],[4,"ngFor","ngForOf"],["matRipple","",1,"clickable","d-flex",3,"perunWebAppsMiddleClickRouterLink","matRippleColor","ngClass","ngStyle","click"],["class","ml-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto"],["class","perun-icon icon-beak",3,"ngStyle",4,"ngIf"],[1,"perun-icon","icon-beak",3,"ngStyle"],["class","pl-5 clickable","matRipple","",3,"activated","matRippleColor","ngStyle","ngClass","perunWebAppsMiddleClickRouterLink","click",4,"ngFor","ngForOf"],["matRipple","",1,"pl-5","clickable",3,"matRippleColor","ngStyle","ngClass","perunWebAppsMiddleClickRouterLink","click"]],template:function(ke,at){1&ke&&(N.TgZ(0,"div",0)(1,"div",1),N.NdJ("click",function(){return at.toggle()}),N.TgZ(2,"div")(3,"a",2)(4,"div"),N._UZ(5,"mat-icon",3),N.qZA(),N.TgZ(6,"div",4),N._uU(7),N.ALo(8,"translate"),N.qZA()()()(),N.TgZ(9,"div")(10,"div",5),N.YNc(11,n,6,14,"div",6),N.qZA()()()),2&ke&&(N.s9C("id",at.id),N.xp6(1),N.ekj("root-header-activated",at.isActive(at.currentUrl,at.item.baseColorClassRegex)),N.Q6J("matRippleColor","rgba(255, 255, 255, 0.1)")("ngStyle",N.VKq(21,o,at.item.backgroundColorCss))("perunWebAppsMiddleClickRouterLink",at.item.baseLink),N.xp6(1),N.Gre("entity-menu-item-link ",at.item.labelClass,""),N.xp6(1),N.Q6J("ngStyle",N.VKq(23,s,at.item.textColorCss)),N.xp6(2),N.Q6J("ngStyle",N.DdM(25,l))("svgIcon",at.item.icon),N.xp6(2),N.Oqu(N.lcZ(8,19,at.item.label)),N.xp6(2),N.Q6J("@openClose",at.expanded?"open":"closed"),N.xp6(1),N.Gre("side-entity-menu ",at.item.linksClass,""),N.Q6J("ngStyle",N.VKq(26,o,at.linkBgColor)),N.xp6(1),N.Q6J("ngForOf",at.item.links))},dependencies:[e.mk,e.sg,e.O5,e.PC,L.Hw,b.wG,be.Y,Z.X$],styles:[".entity-menu-item[_ngcontent-%COMP%]{width:300px}.side-entity-menu[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding:5px 8px 5px 32px;text-decoration:none;font-size:1rem;color:#fff;display:block}.side-entity-menu[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{background:var(--side-link-hover)!important;color:var(--side-link-text-hover)!important}.root-header-activated[_ngcontent-%COMP%]{background:var(--side-root-item-active)!important;color:var(--side-root-item-text-active)!important}.entity-menu-item-header[_ngcontent-%COMP%]{padding:.5rem .5rem .5rem 1rem;cursor:pointer;-moz-user-select:none;-webkit-user-select:none;user-select:none;-webkit-user-drag:none;-webkit-tap-highlight-color:transparent}.entity-menu-item-header[_ngcontent-%COMP%]:hover{background:var(--side-root-item-hover)!important;color:var(--side-root-item-text-hover)!important}.entity-menu-item-label[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;color:#fff}.entity-menu-item-label[_ngcontent-%COMP%]:hover{text-decoration:none}.entity-menu-item-link[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:space-between;color:#fff}.entity-menu-item-link[_ngcontent-%COMP%]:hover{text-decoration:none}.entity-menu-item-icon[_ngcontent-%COMP%]{height:2rem}"],data:{animation:[se.BQ,se.Ly]}}),Ke})();var c=p(73555),S=p(67376),J=p(63189),ht=p(37677),ze=p(37433),et=p(11243),ne=p(19516),Ue=p(33231),He=p(96338),Pe=p(9244),Re=p(28499),re=p(70844),we=p(21029);let st=(()=>{class Ke{constructor(ke){this.translate=ke,ke.addLangs(["en","cs"])}}return Ke.\u0275fac=function(ke){return new(ke||Ke)(N.LFG(Z.sK))},Ke.\u0275mod=N.oAB({type:Ke}),Ke.\u0275inj=N.cJS({providers:[fe,ht.A,re.u],imports:[e.ez,A.Bz,C.Bb,O.c,w.lN,Ye.UX,Ye.u5,L.Ps,pe.SJ,B.To,Z.aw.forChild({}),M.ot,W.JX,F.p0,V.Nh,Q.dp,M.ot,m.p9,v.Is,Te.LD,T.ZX,z.Cq,te.Cv,ee.AV,Le.rP,D.FA,b.XK,ie.Fk,R.t,b.si,q.TU,Ee.QW,he.T5,c._t,Ee.QW,ve.Hi,De.Tx,S.Cl,J.r,ge.g,ze.ez,et.r,ne.d4,Ue.Co,He.ie,Pe.Je,Re.E3,we.jD,Ue.Co,C.Bb,O.c,A.Bz,Ye.UX,Ye.u5,L.Ps,pe.SJ,Z.aw,W.JX,F.p0,V.Nh,Q.dp,M.ot,m.p9,v.Is,Te.LD,T.ZX,z.Cq,te.Cv,ee.AV,Le.rP,D.FA,b.XK,ie.Fk,R.t,Ee.QW,he.T5,b.si,q.TU,c._t,ve.Hi,ve.Hi,B.To,De.Tx,S.Cl,S.Cl,S.Cl,et.r]}),Ke})();N.B6R(Be.V,function(){return[e.sg,e.O5,Ce,d]},[])},69024:(Xe,ue,p)=>{"use strict";p.d(ue,{V:()=>v});var e=p(81591),A=p(61744),C=p(9244),M=p(19516),m=p(64080),b=p(94650),D=p(89383);let v=(()=>{class R{constructor(w,L,O,q,te,z,ie,Te){this.translate=w,this.authResolver=L,this.store=O,this.apiRequest=q,this.attributesManager=te,this.notificator=z,this.guiAuthResolver=ie,this.routePolicyService=Te,this.theme=this.store.getProperty("theme")}getFacilitiesManagementItem(){return{label:"MAIN_MENU.FACILITIES",colorClass:"base-item-color-activated",icon:"perun-facility-white",baseLink:["/facilities"],links:[],baseColorClass:"base-item-color",baseColorClassRegex:"^/facilities$",backgroundColorCss:this.theme.sidemenu_bg_color,textColorCss:this.theme.sidemenu_text_color}}getAccessManagementItem(){return{label:"MAIN_MENU.ACCESS",colorClass:"base-item-color-activated",icon:"perun-vo",links:[],baseLink:["/organizations"],baseColorClass:"base-item-color",baseColorClassRegex:"^/organizations$",backgroundColorCss:this.theme.sidemenu_bg_color,textColorCss:this.theme.sidemenu_text_color}}getHomeItem(){return{baseLink:["/home"],label:"MAIN_MENU.HOME",colorClass:"base-item-color-activated",icon:"perun-home-white",baseColorClass:"base-item-color",baseColorClassRegex:"^/home$",activatedClass:"dark-item-activated",linksClass:"dark-item-links",backgroundColorCss:this.theme.sidemenu_bg_color,textColorCss:this.theme.sidemenu_text_color,links:[]}}getUserItem(){return{baseLink:["/myProfile"],expandable:!1,label:"MAIN_MENU.MY_PROFILE",colorClass:"base-item-color-activated",icon:"perun-user",baseColorClass:"base-item-color",baseColorClassRegex:"^/dont-use$",activatedClass:"dark-item-activated",linksClass:"dark-item-links",backgroundColorCss:this.theme.sidemenu_bg_color,textColorCss:this.theme.sidemenu_text_color,links:[{label:"MENU_ITEMS.USER.OVERVIEW",url:["/myProfile"],activatedRegex:"^/myProfile$"},{label:"MENU_ITEMS.USER.ORGANIZATIONS",url:["/myProfile/organizations"],activatedRegex:"^/myProfile/organizations$"},{label:"MENU_ITEMS.USER.GROUPS",url:["/myProfile/groups"],activatedRegex:"^/myProfile/groups$"},{label:"MENU_ITEMS.USER.ATTRIBUTES",url:["/myProfile/attributes"],activatedRegex:"^/myProfile/attributes$"},{label:"MENU_ITEMS.USER.ROLES",url:["/myProfile/roles"],activatedRegex:"/myProfile/roles"},{label:"MENU_ITEMS.USER.SERVICE_IDENTITIES",url:["/myProfile/service-identities"],activatedRegex:"^/myProfile/service-identities"},{label:"MENU_ITEMS.USER.BANS",url:["/myProfile/bans"],activatedRegex:"^/myProfile/bans"},{label:"MENU_ITEMS.USER.SETTINGS",url:["/myProfile/settings"],activatedRegex:"^/myProfile/settings$",children:[{label:"MENU_ITEMS.USER.PASSWORD_RESET",url:["/myProfile/settings/passwordReset"],activatedRegex:"^/myProfile/settings/passwordReset"},{label:"MENU_ITEMS.USER.GUI_CONFIG",url:["/myProfile/settings/guiConfig"],activatedRegex:"/myProfile/settings/guiConfig"}],showChildrenRegex:"/myProfile/settings"}]}}getAdminItem(){return{baseLink:["/admin"],expandable:!1,label:"MAIN_MENU.ADMIN",colorClass:"base-item-color-activated",icon:"perun-perun-admin",baseColorClass:"base-item-color",baseColorClassRegex:"^/dont-use$",activatedClass:"dark-item-activated",linksClass:"dark-item-links",backgroundColorCss:this.theme.sidemenu_bg_color,textColorCss:this.theme.sidemenu_text_color,links:[{label:"MENU_ITEMS.ADMIN.OVERVIEW",url:["/admin"],activatedRegex:"^/admin$"},{label:"MENU_ITEMS.ADMIN.ATTRIBUTES",url:["/admin/attributes"],activatedRegex:"^/admin/attributes$"},{label:"MENU_ITEMS.ADMIN.USERS",url:["/admin/users"],activatedRegex:"^/admin/users$"},{label:"MENU_ITEMS.ADMIN.OWNERS",url:["/admin/owners"],activatedRegex:"^/admin/owners$"},{label:"MENU_ITEMS.ADMIN.SERVICES",url:["/admin/services"],activatedRegex:"^/admin/services$"},{label:"MENU_ITEMS.ADMIN.VISUALIZER",url:["/admin/visualizer"],activatedRegex:"^/admin/visualizer$",children:[{label:"MENU_ITEMS.VISUALIZER.ATTR_DEPENDENCIES",url:["/admin/visualizer/attrDependencies"],activatedRegex:"^/admin/visualizer/attrDependencies"},{label:this.translate.instant("MENU_ITEMS.VISUALIZER.USER_DESTINATION"),url:["/admin/visualizer/userDestinationRelationship"],activatedRegex:"^/admin/visualizer/userDestinationRelationship"}],showChildrenRegex:"/admin/visualizer"},{label:"MENU_ITEMS.ADMIN.EXT_SOURCES",url:["/admin/ext_sources"],activatedRegex:"^/admin/ext_sources$"},{label:"MENU_ITEMS.ADMIN.AUDIT_LOG",url:["/admin/audit_log"],activatedRegex:"^/admin/audit_log$"},{label:"MENU_ITEMS.ADMIN.CONSENT_HUBS",url:["/admin/consent_hubs"],activatedRegex:"^/admin/consent_hubs$"},{label:"MENU_ITEMS.ADMIN.SEARCHER",url:["/admin/searcher"],activatedRegex:"^/admin/searcher"}]}}parseFacility(w){return{label:w.name,baseLink:[`/facilities/${w.id}`],backgroundColorCss:this.theme.sidemenu_facility_bg_color,textColorCss:this.theme.sidemenu_facility_text_color,links:this.getFacilityLinks(w),colorClass:"facility-item",icon:"perun-facility-white",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseResource(w,L){const O=(new M.r5).transform(w,L);return{label:w.name,baseLink:[O],backgroundColorCss:this.theme.sidemenu_resource_bg_color,textColorCss:this.theme.sidemenu_resource_text_color,links:this.getResourceLinks(O,L?"/organizations":"/facilities",w),colorClass:"resource-item",icon:"perun-resource-white",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseGroup(w){return{label:w.name,baseLink:[`/organizations/${w.voId}/groups/${w.id}`],backgroundColorCss:this.theme.sidemenu_group_bg_color,textColorCss:this.theme.sidemenu_group_text_color,links:this.getGroupLinks(w),colorClass:"group-item",icon:"perun-group",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseVo(w,L=!1,O=!1){return{label:w.name,baseLink:[`/organizations/${w.id}`],links:this.getVoLinks(w,O),colorClass:"vo-item",icon:L?"perun-hierarchical-vo":"perun-vo",activatedClass:"dark-item-activated",linksClass:"dark-item-links",backgroundColorCss:this.theme.sidemenu_vo_bg_color,textColorCss:this.theme.sidemenu_vo_text_color}}parseMember(w){return{label:(0,C.bD)(w.user),baseLink:[`/organizations/${w.voId}/members/${w.id}`],backgroundColorCss:this.theme.sidemenu_member_bg_color,textColorCss:this.theme.sidemenu_member_text_color,links:this.getMemberLinks(w),colorClass:"member-item",icon:"perun-user",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseUser(w,L,O){return{label:(0,C.bD)(w),baseLink:[L],backgroundColorCss:this.theme.sidemenu_user_bg_color,textColorCss:this.theme.sidemenu_user_text_color,links:this.getUserLinks(w,L,O),colorClass:"user-bg-color",icon:"perun-user",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseServiceIdentity(w){return{label:(0,C.bD)(w),baseLink:[`/myProfile/service-identities/${w.id}`],backgroundColorCss:this.theme.sidemenu_user_bg_color,textColorCss:this.theme.sidemenu_user_text_color,links:[{label:"MENU_ITEMS.USER.OVERVIEW",url:[`/myProfile/service-identities/${w.id}`],activatedRegex:"/myProfile/service-identities/\\d+$"},{label:"MENU_ITEMS.USER.ASSOCIATED_USERS",url:[`/myProfile/service-identities/${w.id}/associated-users`],activatedRegex:"/myProfile/service-identities/\\d+/associated-users"},{label:"MENU_ITEMS.USER.MAILING_LISTS",url:[`/myProfile/service-identities/${w.id}/mailing-lists`],activatedRegex:"/myProfile/service-identities/\\d+/mailing-lists"},{label:"MENU_ITEMS.USER.DATA_QUOTAS",url:[`/myProfile/service-identities/${w.id}/data-quotas`],activatedRegex:"/myProfile/service-identities/\\d+/data-quotas"},{label:"MENU_ITEMS.USER.AUTHENTICATION",url:[`/myProfile/service-identities/${w.id}/authentication`],activatedRegex:"/myProfile/service-identities/\\d+/authentication$",children:[{label:"MENU_ITEMS.USER.LOGINS",url:[`/myProfile/service-identities/${w.id}/authentication/logins`],activatedRegex:"/myProfile/service-identities/\\d+/authentication/logins"},{label:"MENU_ITEMS.USER.CERTIFICATES",url:[`/myProfile/service-identities/${w.id}/authentication/certificates`],activatedRegex:"/myProfile/service-identities/\\d+/authentication/certificates"},{label:"MENU_ITEMS.USER.SSH_KEYS",url:[`/myProfile/service-identities/${w.id}/authentication/ssh-keys`],activatedRegex:"/myProfile/service-identities/\\d+/authentication/ssh-keys"}],showChildrenRegex:"/myProfile/service-identities/\\d+/authentication"}],colorClass:"user-bg-color",icon:"perun-service-identity",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseService(w){return{label:w.name,baseLink:[`/admin/services/${w.id}`],backgroundColorCss:this.theme.sidemenu_service_bg_color,textColorCss:this.theme.sidemenu_service_text_color,links:[{label:"MENU_ITEMS.SERVICE.OVERVIEW",url:[`/admin/services/${w.id}`],activatedRegex:"/admin/services/\\d+$"},{label:"MENU_ITEMS.SERVICE.REQUIRED_ATTRIBUTES",url:[`/admin/services/${w.id}/required-attributes`],activatedRegex:"/admin/services/\\d+/required-attributes"},{label:"MENU_ITEMS.SERVICE.DESTINATIONS",url:[`/admin/services/${w.id}/destinations`],activatedRegex:"/admin/services/\\d+/destinations"}],colorClass:"service-item",icon:"perun-service",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}getVoLinks(w,L){const O=[];if(O.push({label:"MENU_ITEMS.VO.OVERVIEW",url:[`/organizations/${w.id}`],activatedRegex:"/organizations/\\d+$"}),this.routePolicyService.canNavigate("organizations-members",w)&&O.push({label:"MENU_ITEMS.VO.MEMBERS",url:[`/organizations/${w.id}/members`],activatedRegex:"/organizations/\\d+/members$"}),this.routePolicyService.canNavigate("organizations-groups",w)&&O.push({label:"MENU_ITEMS.VO.GROUPS",url:[`/organizations/${w.id}/groups`],activatedRegex:"/organizations/\\d+/groups$"}),this.routePolicyService.canNavigate("organizations-resources",w)){const q=[];this.routePolicyService.canNavigate("organizations-resources-preview",w)&&q.push({label:"MENU_ITEMS.VO.RESOURCE_PREVIEW",url:[`/organizations/${w.id}/resources/preview`],activatedRegex:"/organizations/\\d+/resources/preview$"}),this.routePolicyService.canNavigate("organizations-resources-tags",w)&&q.push({label:"MENU_ITEMS.VO.RESOURCE_TAGS",url:[`/organizations/${w.id}/resources/tags`],activatedRegex:"/organizations/\\d+/resources/tags$"}),this.routePolicyService.canNavigate("organizations-resources-states",w)&&q.push({label:"MENU_ITEMS.VO.RESOURCE_STATES",url:[`/organizations/${w.id}/resources/states`],activatedRegex:"/organizations/\\d+/resources/states$"}),O.push({label:"MENU_ITEMS.VO.RESOURCES",url:[`/organizations/${w.id}/resources`],activatedRegex:"/organizations/\\d+/resources$",children:q,showChildrenRegex:"/organizations/\\d+/resources"})}if(this.routePolicyService.canNavigate("organizations-applications",w)&&O.push({label:"MENU_ITEMS.VO.APPLICATIONS",url:[`/organizations/${w.id}/applications`],activatedRegex:"/organizations/\\d+/applications"}),this.routePolicyService.canNavigate("organizations-sponsoredMembers",w)&&O.push({label:"MENU_ITEMS.VO.SPONSORED_MEMBERS",url:[`/organizations/${w.id}/sponsoredMembers`],activatedRegex:"/organizations/\\d+/sponsoredMembers$"}),this.routePolicyService.canNavigate("organizations-serviceAccounts",w)&&O.push({label:"MENU_ITEMS.VO.SERVICE_MEMBERS",url:[`/organizations/${w.id}/serviceAccounts`],activatedRegex:"/organizations/\\d+/serviceAccounts$"}),this.routePolicyService.canNavigate("organizations-attributes",w)&&O.push({label:"MENU_ITEMS.VO.ATTRIBUTES",url:[`/organizations/${w.id}/attributes`],activatedRegex:"/organizations/\\d+/attributes$"}),this.routePolicyService.canNavigate("organizations-statistics",w)&&O.push({label:"MENU_ITEMS.VO.STATISTICS",url:[`/organizations/${w.id}/statistics`],activatedRegex:"/organizations/\\d+/statistics"}),this.routePolicyService.canNavigate("organizations-settings",w)){const q=[];this.routePolicyService.canNavigate("organizations-settings-expiration",w)&&q.push({label:"MENU_ITEMS.VO.EXPIRATION",url:[`/organizations/${w.id}/settings/expiration`],activatedRegex:"/organizations/\\d+/settings/expiration$"}),this.routePolicyService.canNavigate("organizations-settings-managers",w)&&q.push({label:"MENU_ITEMS.VO.MANAGERS",url:[`/organizations/${w.id}/settings/managers`],activatedRegex:"/organizations/\\d+/settings/managers$"}),this.routePolicyService.canNavigate("organizations-settings-applicationForm",w)&&q.push({label:"MENU_ITEMS.VO.APPLICATION_FORM",url:[`/organizations/${w.id}/settings/applicationForm`],activatedRegex:"/organizations/\\d+/settings/applicationForm$"}),this.routePolicyService.canNavigate("organizations-settings-notifications",w)&&q.push({label:"MENU_ITEMS.VO.NOTIFICATIONS",url:[`/organizations/${w.id}/settings/notifications`],activatedRegex:"/organizations/\\d+/settings/notifications$"}),this.routePolicyService.canNavigate("organizations-settings-extsources",w)&&q.push({label:"MENU_ITEMS.VO.EXTSOURCES",url:[`/organizations/${w.id}/settings/extsources`],activatedRegex:"/organizations/\\d+/settings/extsources$"}),this.routePolicyService.canNavigate("organizations-settings-memberOrganizations",w)&&q.push({label:"MENU_ITEMS.VO.MEMBER_ORGANIZATIONS",url:[`/organizations/${w.id}/settings/memberOrganizations`],activatedRegex:"/organizations/\\d+/settings/memberOrganizations"}),this.routePolicyService.canNavigate("organizations-settings-hierarchicalInclusion",w)&&L&&q.push({label:"MENU_ITEMS.VO.HIERARCHICAL_INCLUSION",url:[`/organizations/${w.id}/settings/hierarchicalInclusion`],activatedRegex:"/organizations/\\d+/settings/hierarchicalInclusion"}),this.routePolicyService.canNavigate("organizations-settings-bans",w)&&q.push({label:"MENU_ITEMS.VO.BANS",url:[`/organizations/${w.id}/settings/bans`],activatedRegex:"/organizations/\\d+/settings/bans"}),O.push({label:"MENU_ITEMS.VO.SETTINGS",url:[`/organizations/${w.id}/settings`],activatedRegex:"/organizations/\\d+/settings$",children:q,showChildrenRegex:"/organizations/\\d+/settings"})}return O}getUserLinks(w,L,O){const q=[];return q.push({label:"MENU_ITEMS.USER.OVERVIEW",url:[L],activatedRegex:`${O}$`}),q.push({label:"MENU_ITEMS.ADMIN.ORGANIZATIONS",url:[`${L}/organizations`],activatedRegex:`${O}/organizations`}),q.push({label:"MENU_ITEMS.ADMIN.GROUPS",url:[`${L}/groups`],activatedRegex:`${O}/groups`}),q.push({label:"MENU_ITEMS.USER.ACCOUNTS",url:[`${L}/accounts`],activatedRegex:`${O}/accounts`}),q.push({label:"MENU_ITEMS.USER.IDENTITIES",url:[`${L}/identities`],activatedRegex:`${O}/identities`}),q.push({label:"MENU_ITEMS.USER.FACILITIES",url:[`${L}/facilities`],activatedRegex:`${O}/facilities`}),q.push({label:"MENU_ITEMS.USER.RESOURCES",url:[`${L}/resources`],activatedRegex:`${O}/resources`}),q.push({label:"MENU_ITEMS.MEMBER.ATTRIBUTES",url:[`${L}/attributes`],activatedRegex:`${O}/attributes`}),q.push({label:"MENU_ITEMS.USER.ROLES",url:[`${L}/roles`],activatedRegex:`^${L}/roles`}),q.push(w.serviceUser?{label:"MENU_ITEMS.USER.ASSOCIATED_USERS",url:[`${L}/associated-users`],activatedRegex:`^${L}/associated-users`}:{label:"MENU_ITEMS.USER.SERVICE_IDENTITIES",url:[`${L}/service-identities`],activatedRegex:`^${L}/service-identities`}),q.push({label:"MENU_ITEMS.USER.BANS",url:[`${L}/bans`],activatedRegex:`^${L}/bans`}),q}getMemberLinks(w){const L=[{label:"MENU_ITEMS.MEMBER.OVERVIEW",url:[`/organizations/${w.voId}/members/${w.id}`],activatedRegex:"/organizations/\\d+/members/\\d+$"}];return this.routePolicyService.canNavigate("members-groups",w)&&L.push({label:"MENU_ITEMS.MEMBER.GROUPS",url:[`/organizations/${w.voId}/members/${w.id}/groups`],activatedRegex:"/organizations/\\d+/members/\\d+/groups"}),this.routePolicyService.canNavigate("members-applications",w)&&L.push({label:"MENU_ITEMS.MEMBER.APPLICATIONS",url:[`/organizations/${w.voId}/members/${w.id}/applications`],activatedRegex:"/organizations/\\d+/members/\\d+/applications"}),this.routePolicyService.canNavigate("members-resources",w)&&L.push({label:"MENU_ITEMS.MEMBER.RESOURCES",url:[`/organizations/${w.voId}/members/${w.id}/resources`],activatedRegex:"/organizations/\\d+/members/\\d+/resources"}),this.routePolicyService.canNavigate("members-attributes",w)&&L.push({label:"MENU_ITEMS.MEMBER.ATTRIBUTES",url:[`/organizations/${w.voId}/members/${w.id}/attributes`],activatedRegex:"/organizations/\\d+/members/\\d+/attributes$"}),this.routePolicyService.canNavigate("members-bans",w)&&L.push({label:"MENU_ITEMS.MEMBER.BANS",url:[`/organizations/${w.voId}/members/${w.id}/bans`],activatedRegex:"/organizations/\\d+/members/\\d+/bans"}),L}getFacilityLinks(w){const L=[{label:"MENU_ITEMS.FACILITY.OVERVIEW",url:[`/facilities/${w.id}`],activatedRegex:"/facilities/\\d+$"}];if(this.routePolicyService.canNavigate("facilities-resources",w)&&L.push({label:"MENU_ITEMS.FACILITY.RESOURCES",url:[`/facilities/${w.id}/resources`],activatedRegex:"/facilities/\\d+/resources$"}),this.routePolicyService.canNavigate("facilities-allowed-users",w)&&L.push({label:"MENU_ITEMS.FACILITY.ALLOWED_USERS",url:[`/facilities/${w.id}/allowed-users`],activatedRegex:"/facilities/\\d+/allowed-users"}),this.routePolicyService.canNavigate("facilities-allowed-groups",w)&&L.push({label:"MENU_ITEMS.FACILITY.ALLOWED_GROUPS",url:[`/facilities/${w.id}/allowed-groups`],activatedRegex:"/facilities/\\d+/allowed-groups"}),this.routePolicyService.canNavigate("facilities-services-status",w)&&L.push({label:"MENU_ITEMS.FACILITY.SERVICES_STATUS",url:[`/facilities/${w.id}/services-status`],activatedRegex:"/facilities/\\d+/services-status"}),this.routePolicyService.canNavigate("facilities-services-destinations",w)&&L.push({label:"MENU_ITEMS.FACILITY.SERVICES_DESTINATIONS",url:[`/facilities/${w.id}/services-destinations`],activatedRegex:"facilities/\\d+/services-destinations"}),this.routePolicyService.canNavigate("facilities-hosts",w)&&L.push({label:"MENU_ITEMS.FACILITY.HOSTS",url:[`/facilities/${w.id}/hosts`],activatedRegex:"facilities/\\d+/hosts"}),this.routePolicyService.canNavigate("facilities-attributes",w)&&L.push({label:"MENU_ITEMS.FACILITY.ATTRIBUTES",url:["/facilities",w.id.toString(),"attributes"],activatedRegex:"/facilities/\\d+/attributes$"}),this.routePolicyService.canNavigate("facilities-settings",w)){const O=[];this.routePolicyService.canNavigate("facilities-settings-owners",w)&&O.push({label:"MENU_ITEMS.FACILITY.OWNERS",url:["/facilities",w.id.toString(),"settings","owners"],activatedRegex:"/facilities/\\d+/settings/owners$"}),this.routePolicyService.canNavigate("facilities-settings-managers",w)&&O.push({label:"MENU_ITEMS.FACILITY.MANAGERS",url:["/facilities",w.id.toString(),"settings","managers"],activatedRegex:"/facilities/\\d+/settings/managers$"}),this.routePolicyService.canNavigate("facilities-settings-security-teams",w)&&O.push({label:"MENU_ITEMS.FACILITY.SECURITY_TEAMS",url:[`/facilities/${w.id}/settings/security-teams`],activatedRegex:"facilities/\\d+/settings/security-teams"}),this.routePolicyService.canNavigate("facilities-settings-blacklist",w)&&O.push({label:"MENU_ITEMS.FACILITY.BLACKLIST",url:["facilities",w.id.toString(),"settings","blacklist"],activatedRegex:"/facilities/\\d+/settings/blacklist"}),this.routePolicyService.canNavigate("facilities-settings-bans",w)&&O.push({label:"MENU_ITEMS.FACILITY.BANS",url:[`/facilities/${w.id}/settings/bans`],activatedRegex:"/facilities/\\d+/settings/bans"}),L.push({label:"MENU_ITEMS.FACILITY.SETTINGS",url:["/facilities",w.id.toString(),"settings"],activatedRegex:"/facilities/\\d+/settings$",children:O,showChildrenRegex:"/facilities/\\d+/settings"})}return L}getGroupLinks(w){const L=[],O=[];return L.push({label:"MENU_ITEMS.GROUP.OVERVIEW",url:[`/organizations/${w.voId}/groups/${w.id}`],activatedRegex:"/organizations/\\d+/groups/\\d+$"}),this.routePolicyService.canNavigate("groups-members",w)&&L.push({label:"MENU_ITEMS.GROUP.MEMBERS",url:[`/organizations/${w.voId}/groups/${w.id}/members`],activatedRegex:"/organizations/\\d+/groups/\\d+/members$"}),this.routePolicyService.canNavigate("groups-subgroups",w)&&"members"!==w.name&&L.push({label:"MENU_ITEMS.GROUP.SUBGROUPS",url:[`/organizations/${w.voId}/groups/${w.id}/subgroups`],activatedRegex:"/organizations/\\d+/groups/\\d+/subgroups$"}),this.routePolicyService.canNavigate("groups-resources",w)&&L.push({label:"MENU_ITEMS.GROUP.RESOURCES",url:[`/organizations/${w.voId}/groups/${w.id}/resources`],activatedRegex:"/organizations/\\d+/groups/\\d+/resources$"}),"members"!==w.name&&this.routePolicyService.canNavigate("groups-applications",w)&&L.push({label:"MENU_ITEMS.GROUP.APPLICATIONS",url:[`/organizations/${w.voId}/groups/${w.id}/applications`],activatedRegex:"/organizations/\\d+/groups/\\d+/applications$"}),this.routePolicyService.canNavigate("groups-attributes",w)&&L.push({label:"MENU_ITEMS.GROUP.ATTRIBUTES",url:[`/organizations/${w.voId}/groups/${w.id}/attributes`],activatedRegex:"/organizations/\\d+/groups/\\d+/attributes$"}),this.routePolicyService.canNavigate("groups-statistics",w)&&L.push({label:"MENU_ITEMS.GROUP.STATISTICS",url:[`/organizations/${w.voId}/groups/${w.id}/statistics`],activatedRegex:"/organizations/\\d+/groups/\\d+/statistics"}),this.routePolicyService.canNavigate("groups-roles",w)&&L.push({label:"MENU_ITEMS.GROUP.ROLES",url:[`/organizations/${w.voId}/groups/${w.id}/roles`],activatedRegex:"/organizations/\\d+/groups/\\d+/roles"}),this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getGroupAttributeByName(w.id,m.r.GROUP_DEF_EXPIRATION_RULES).subscribe(()=>{O.push({label:"MENU_ITEMS.GROUP.EXPIRATION",url:[`/organizations/${w.voId}/groups/${w.id}/settings/expiration`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/expiration$"})},q=>{"PrivilegeException"!==q.name&&this.notificator.showRPCError(q)}),this.routePolicyService.canNavigate("groups-settings-managers",w)&&O.push({label:"MENU_ITEMS.GROUP.MANAGERS",url:[`/organizations/${w.voId}/groups/${w.id}/settings/managers`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/managers$"}),"members"!==w.name&&this.routePolicyService.canNavigate("groups-settings-applicationForm",w)&&O.push({label:"MENU_ITEMS.GROUP.APPLICATION_FORM",url:[`/organizations/${w.voId}/groups/${w.id}/settings/applicationForm`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/applicationForm$"}),this.routePolicyService.canNavigate("groups-settings-notifications",w)&&O.push({label:"MENU_ITEMS.GROUP.NOTIFICATIONS",url:[`/organizations/${w.voId}/groups/${w.id}/settings/notifications`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/notifications$"}),this.routePolicyService.canNavigate("groups-settings-relations",w)&&O.push({label:"MENU_ITEMS.GROUP.RELATIONS",url:[`/organizations/${w.voId}/groups/${w.id}/settings/relations`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/relations$"}),this.routePolicyService.canNavigate("groups-settings-extsources",w)&&O.push({label:"MENU_ITEMS.GROUP.EXTSOURCES",url:[`/organizations/${w.voId}/groups/${w.id}/settings/extsources`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/extsources$"}),0!==O.length&&L.push({label:"MENU_ITEMS.GROUP.SETTINGS",url:[`/organizations/${w.voId}/groups/${w.id}/settings`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings$",children:O,showChildrenRegex:"/organizations/\\d+/groups/\\d+/settings"}),L}getResourceLinks(w,L,O){const q=[{label:"MENU_ITEMS.RESOURCE.OVERVIEW",url:[w],activatedRegex:`${L}/\\d+/resources/\\d+$`}];if(this.routePolicyService.canNavigate("resources-groups",O)&&q.push({label:"MENU_ITEMS.RESOURCE.ASSIGNED_GROUPS",url:[w,"groups"],activatedRegex:`${L}/\\d+/resources/\\d+/groups$`}),this.routePolicyService.canNavigate("resources-services",O)&&q.push({label:"MENU_ITEMS.RESOURCE.ASSIGNED_SERVICES",url:[w,"services"],activatedRegex:`${L}/\\d+/resources/\\d+/services$`}),this.routePolicyService.canNavigate("resources-members",O)&&q.push({label:"MENU_ITEMS.RESOURCE.ASSIGNED_MEMBERS",url:[w,"members"],activatedRegex:`${L}/\\d+/resources/\\d+/members$`}),this.routePolicyService.canNavigate("resources-tags",O)&&q.push({label:"MENU_ITEMS.RESOURCE.RESOURCE_TAGS",url:[w,"tags"],activatedRegex:`${L}/\\d+/resources/\\d+/tags$`}),this.routePolicyService.canNavigate("resources-attributes",O)&&q.push({label:"MENU_ITEMS.RESOURCE.ATTRIBUTES",url:[w,"attributes"],activatedRegex:`${L}/\\d+/resources/\\d+/attributes$`}),this.routePolicyService.canNavigate("resources-settings",O)){const te=[];this.routePolicyService.canNavigate("resources-settings-managers",O)&&te.push({label:"MENU_ITEMS.RESOURCE.MANAGERS",url:[w,"settings","managers"],activatedRegex:`${L}/\\d+/resources/\\d+/settings/managers$`}),this.routePolicyService.canNavigate("resources-settings-bans",O)&&te.push({label:"MENU_ITEMS.RESOURCE.BANS",url:[w,"settings","bans"],activatedRegex:`${L}/\\d+/resources/\\d+/settings/bans`}),q.push({label:"MENU_ITEMS.RESOURCE.SETTINGS",url:[w,"settings"],activatedRegex:`${L}/\\d+/resources/\\d+/settings$`,children:te,showChildrenRegex:`${L}/\\d+/resources/\\d+/settings`})}return q}}return R.\u0275fac=function(w){return new(w||R)(b.LFG(D.sK),b.LFG(e.x4),b.LFG(e.d6),b.LFG(e.F5),b.LFG(A.H8),b.LFG(e.V6),b.LFG(e.x4),b.LFG(e.Ip))},R.\u0275prov=b.Yz7({token:R,factory:R.\u0275fac,providedIn:"root"}),R})()},73228:(Xe,ue,p)=>{"use strict";p.d(ue,{V:()=>z});var e=p(72077),A=p(69024),C=p(81591),M=p(36769),m=p(94650),b=p(77968);function D(ie,Te){if(1&ie&&(m.TgZ(0,"div",9),m._UZ(1,"app-side-menu-item",10),m.qZA()),2&ie){const pe=Te.$implicit,Le=Te.index,T=m.oxw();m.Q6J("@rollInOut",void 0),m.xp6(1),m.Q6J("index",Le)("item",pe)("sideNav",T.sideNav)}}function v(ie,Te){if(1&ie&&(m.TgZ(0,"div",9),m._UZ(1,"app-side-menu-item",11),m.qZA()),2&ie){const pe=Te.$implicit,Le=Te.index,T=m.oxw();m.Q6J("@rollInOut",void 0),m.xp6(1),m.Q6J("index",Le)("item",pe)("showLinks",Le===T.accessItems.length-1)("sideNav",T.sideNav)}}function R(ie,Te){if(1&ie&&m._UZ(0,"app-side-menu-root-item",12),2&ie){const pe=m.oxw();m.Q6J("id","facilities-item-btn")("item",pe.facilityItem)("sideNav",pe.sideNav)}}function B(ie,Te){if(1&ie&&(m.TgZ(0,"div",9),m._UZ(1,"app-side-menu-item",11),m.qZA()),2&ie){const pe=Te.$implicit,Le=Te.index,T=m.oxw(2);m.Q6J("@rollInOut",void 0),m.xp6(1),m.Q6J("index",Le)("item",pe)("showLinks",Le===T.facilityItems.length-1)("sideNav",T.sideNav)}}function w(ie,Te){if(1&ie&&(m.TgZ(0,"div"),m.YNc(1,B,2,5,"div",3),m.qZA()),2&ie){const pe=m.oxw();m.xp6(1),m.Q6J("ngForOf",pe.facilityItems)}}function L(ie,Te){if(1&ie&&(m.TgZ(0,"div",9),m._UZ(1,"app-side-menu-item",11),m.qZA()),2&ie){const pe=Te.$implicit,Le=Te.index,T=m.oxw();m.Q6J("@rollInOut",void 0),m.xp6(1),m.Q6J("index",Le)("item",pe)("showLinks",Le===T.userItems.length-1)("sideNav",T.sideNav)}}function O(ie,Te){if(1&ie&&m._UZ(0,"app-side-menu-root-item",13),2&ie){const pe=m.oxw();m.Q6J("id","admin-item-btn")("item",pe.adminItem)("showOpen",pe.adminItemOpened)("sideNav",pe.sideNav)}}function q(ie,Te){if(1&ie&&(m.TgZ(0,"div",9),m._UZ(1,"app-side-menu-item",11),m.qZA()),2&ie){const pe=Te.$implicit,Le=Te.index,T=m.oxw(2);m.Q6J("@rollInOut",void 0),m.xp6(1),m.Q6J("index",Le)("item",pe)("showLinks",!0)("sideNav",T.sideNav)}}function te(ie,Te){if(1&ie&&(m.TgZ(0,"div"),m.YNc(1,q,2,5,"div",3),m.qZA()),2&ie){const pe=m.oxw();m.xp6(1),m.Q6J("ngForOf",pe.adminItems)}}let z=(()=>{class ie{constructor(pe,Le,T){this.sideMenuService=pe,this.sideMenuItemService=Le,this.authResolver=T,this.accessItems=[],this.facilityItems=[],this.adminItems=[],this.homeItems=[],this.userItems=[],this.accessItem=this.sideMenuItemService.getAccessManagementItem(),this.adminItem=this.sideMenuItemService.getAdminItem(),this.facilityItem=this.sideMenuItemService.getFacilitiesManagementItem(),this.homeItem=this.sideMenuItemService.getHomeItem(),this.userItem=this.sideMenuItemService.getUserItem(),this.mobileView=!0,this.adminItemOpened=!1,this.userItemOpened=!1}static areSameItems(pe,Le){return pe.label===Le.label&&pe.labelClass===Le.labelClass}static areSameLinks(pe,Le){if(pe.links.length!==Le.links.length)return!1;for(let T=0;TLe.length?pe.length:Le.length;for(let W=0;Wpe.length-1)pe.push(Le[W]);else{if(W>Le.length-1){const F=pe.length;for(let V=0;V{this.setFacilityItems(pe)}),this.sideMenuService.accessItemsChange.subscribe(pe=>{this.setAccessItems(pe)}),this.sideMenuService.adminItemsChange.subscribe(pe=>{this.setAdminItems(pe)}),this.sideMenuService.userItemsChange.subscribe(pe=>{this.setUserItems(pe)}),this.sideMenuService.homeItemsChange.subscribe(pe=>{this.setHomeItems(pe)}),this.sideMenuService.resetChange.subscribe(()=>{this.reset()})}reset(){this.adminItemOpened=!1,this.userItemOpened=!1,ie.setNewItems(this.homeItems,[]),ie.setNewItems(this.adminItems,[]),ie.setNewItems(this.accessItems,[]),ie.setNewItems(this.facilityItems,[]),ie.setNewItems(this.userItems,[])}resetExceptHome(){this.adminItemOpened=!1,this.userItemOpened=!1,ie.setNewItems(this.adminItems,[]),ie.setNewItems(this.accessItems,[]),ie.setNewItems(this.facilityItems,[]),ie.setNewItems(this.userItems,[])}resetExceptFacility(){this.adminItemOpened=!1,this.userItemOpened=!1,ie.setNewItems(this.homeItems,[]),ie.setNewItems(this.adminItems,[]),ie.setNewItems(this.accessItems,[]),ie.setNewItems(this.userItems,[])}resetExceptAccess(){this.adminItemOpened=!1,this.userItemOpened=!1,ie.setNewItems(this.homeItems,[]),ie.setNewItems(this.adminItems,[]),ie.setNewItems(this.facilityItems,[]),ie.setNewItems(this.userItems,[])}resetExceptAdmin(){this.userItemOpened=!1,ie.setNewItems(this.homeItems,[]),ie.setNewItems(this.accessItems,[]),ie.setNewItems(this.facilityItems,[]),ie.setNewItems(this.userItems,[])}resetExceptUser(){this.adminItemOpened=!1,ie.setNewItems(this.accessItems,[]),ie.setNewItems(this.facilityItems,[]),ie.setNewItems(this.adminItems,[])}setHomeItems(pe){this.resetExceptHome(),ie.setNewItems(this.homeItems,pe)}setFacilityItems(pe){this.resetExceptFacility(),ie.setNewItems(this.facilityItems,pe)}setAccessItems(pe){this.resetExceptAccess(),ie.setNewItems(this.accessItems,pe)}setUserItems(pe){this.userItemOpened=0===pe.length,this.resetExceptUser(),ie.setNewItems(this.userItems,pe)}setAdminItems(pe){this.adminItemOpened=0===pe.length,this.resetExceptAdmin(),ie.setNewItems(this.adminItems,pe)}}return ie.\u0275fac=function(pe){return new(pe||ie)(m.Y36(b.D),m.Y36(A.V),m.Y36(C.x4))},ie.\u0275cmp=m.Xpm({type:ie,selectors:[["app-side-menu"]],inputs:{sideNav:"sideNav"},decls:13,vars:17,consts:[["id","sideMenuSpacer"],["id","sideMenuAccordion",1,"accordion","entity-menu-accordion"],[3,"id","item","sideNav"],["class","overflow-hidden",4,"ngFor","ngForOf"],["data-cy","access-item-button",3,"item","id","sideNav"],["data-cy","facilities-button",3,"id","item","sideNav",4,"ngIf"],[4,"ngIf"],[3,"id","item","showOpen","sideNav"],["data-cy","admin-button",3,"id","item","showOpen","sideNav",4,"ngIf"],[1,"overflow-hidden"],[3,"index","item","sideNav"],[3,"index","item","showLinks","sideNav"],["data-cy","facilities-button",3,"id","item","sideNav"],["data-cy","admin-button",3,"id","item","showOpen","sideNav"]],template:function(pe,Le){1&pe&&(m.TgZ(0,"div",0)(1,"div",1),m._UZ(2,"app-side-menu-root-item",2),m.YNc(3,D,2,4,"div",3),m._UZ(4,"app-side-menu-root-item",4),m.TgZ(5,"div"),m.YNc(6,v,2,5,"div",3),m.qZA(),m.YNc(7,R,1,3,"app-side-menu-root-item",5),m.YNc(8,w,2,1,"div",6),m._UZ(9,"app-side-menu-root-item",7),m.YNc(10,L,2,5,"div",3),m.YNc(11,O,1,4,"app-side-menu-root-item",8),m.YNc(12,te,2,1,"div",6),m.qZA()()),2&pe&&(m.xp6(2),m.Q6J("id","home-item-btn")("item",Le.homeItem)("sideNav",Le.sideNav),m.xp6(1),m.Q6J("ngForOf",Le.homeItems),m.xp6(1),m.Q6J("item",Le.accessItem)("id","access-item-btn")("sideNav",Le.sideNav),m.xp6(2),m.Q6J("ngForOf",Le.accessItems),m.xp6(1),m.Q6J("ngIf",Le.authResolver.canManageFacilities()),m.xp6(1),m.Q6J("ngIf",Le.authResolver.canManageFacilities()),m.xp6(1),m.Q6J("id","profile-item-btn")("item",Le.userItem)("showOpen",Le.userItemOpened)("sideNav",Le.sideNav),m.xp6(1),m.Q6J("ngForOf",Le.userItems),m.xp6(1),m.Q6J("ngIf",Le.authResolver.isPerunAdminOrObserver()),m.xp6(1),m.Q6J("ngIf",Le.authResolver.isPerunAdminOrObserver()))},styles:[".entity-menu-item-label[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center}.entity-menu-item-link[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:space-between;color:#fff}.entity-menu-item-link[_ngcontent-%COMP%]:hover{text-decoration:none}.entity-menu-item-icon[_ngcontent-%COMP%]{height:2rem}.entity-menu-accordion[_ngcontent-%COMP%]{background-color:#f4f4f4}#sideMenuAccordion[_ngcontent-%COMP%]{width:300px}#sideMenuSpacer[_ngcontent-%COMP%]{height:100%}"],data:{animation:[M.Ly]}}),ie})()},86511:(Xe,ue,p)=>{"use strict";p.d(ue,{A:()=>M});var e=p(81591),A=p(94650),C=p(89383);let M=(()=>{class m{constructor(D,v){this.notificator=D,this.translate=v}setDialogRef(D){this.dialogRef=D}setType(D){this.entityType=D}getType(){return this.entityType}createCandidate(D){return{userExtSource:D.userExtSource,additionalUserExtSources:D.additionalUserExtSources,attributes:D.attributes,firstName:D.firstName,lastName:D.lastName,middleName:D.middleName,titleBefore:D.titleBefore,titleAfter:D.titleAfter,id:D.id}}getFormattedGroup(D){return{id:D.id,beanName:D.beanName,name:D.name,voId:D.voId}}success(D){this.notificator.showSuccess(this.translate.instant(D)),this.dialogRef.close(!0)}getCandidateWithError(D,v){if("MfaPrivilegeException"===String(v.type))return null;{const R=v.message.split(":").splice(1).join();return{candidate:D,errorName:v.name,errorMsg:R}}}}return m.\u0275fac=function(D){return new(D||m)(A.LFG(e.V6),A.LFG(C.sK))},m.\u0275prov=A.Yz7({token:m,factory:m.\u0275fac,providedIn:"root"}),m})()},157:(Xe,ue,p)=>{"use strict";p.d(ue,{b:()=>He});var e=p(94650),A=p(73555),C=p(65412),M=p(4859),m=p(89383);let b=(()=>{class Pe{constructor(re){this.dialogRef=re}onCancel(){this.dialogRef.close(!1)}submit(){this.dialogRef.close(!0)}}return Pe.\u0275fac=function(re){return new(re||Pe)(e.Y36(C.so))},Pe.\u0275cmp=e.Xpm({type:Pe,selectors:[["app-delete-application-form-item-dialog"]],decls:20,vars:18,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],[1,"pb-2","font-weight-bold"],[1,"pb-4","pt-2"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","data-cy","delete-application-form-item-dialog","mat-flat-button","",1,"ml-2",3,"click"]],template:function(re,we){1&re&&(e.TgZ(0,"h1",0),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.TgZ(3,"div",1)(4,"div",2),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"div"),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"div",3),e._uU(11),e.ALo(12,"translate"),e.qZA()(),e.TgZ(13,"div",4)(14,"button",5),e.NdJ("click",function(){return we.onCancel()}),e._uU(15),e.ALo(16,"translate"),e.qZA(),e.TgZ(17,"button",6),e.NdJ("click",function(){return we.submit()}),e._uU(18),e.ALo(19,"translate"),e.qZA()()),2&re&&(e.xp6(1),e.Oqu(e.lcZ(2,6,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.TITLE")),e.xp6(4),e.hij(" ",e.lcZ(6,8,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.INFO_1")," "),e.xp6(3),e.Oqu(e.lcZ(9,10,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.INFO_2")),e.xp6(3),e.Oqu(e.lcZ(12,12,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.INFO_3")),e.xp6(4),e.hij(" ",e.lcZ(16,14,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.CANCEL_BUTTON")," "),e.xp6(3),e.hij(" ",e.lcZ(19,16,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.SUBMIT_BUTTON")," "))},dependencies:[M.lW,C.uh,C.xY,C.H8,m.X$]}),Pe})();var D=p(81591),v=p(83491),R=p(9244),B=p(94364),w=p(36895),L=p(24006),O=p(97392),q=p(30671),te=p(51572),z=p(10266),ie=p(98380),Te=p(21963),pe=p(28820),Le=p(57706),T=p(30076),W=p(64597);const F=["table"];function V(Pe,Re){1&Pe&&e._UZ(0,"mat-spinner",3)}function ee(Pe,Re){1&Pe&&e._UZ(0,"th",24)}function Q(Pe,Re){if(1&Pe){const re=e.EpF();e.TgZ(0,"td",25)(1,"button",26),e.NdJ("mousedown",function(){e.CHM(re);const st=e.oxw(2);return e.KtG(st.dragDisabled=!1)}),e.TgZ(2,"mat-icon"),e._uU(3,"drag_indicator"),e.qZA()()()}}function Ee(Pe,Re){1&Pe&&(e.TgZ(0,"th",24),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Pe&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SHORTNAME")," "))}function ge(Pe,Re){if(1&Pe&&(e.TgZ(0,"td",25),e.ALo(1,"multiWordDataCy"),e._uU(2),e.qZA()),2&Pe){const re=Re.$implicit;e.Q2q("data-cy","",e.lcZ(1,3,re.shortname),"-shortname-td"),e.xp6(2),e.AsE(" ",re.shortname,"",re.required?"*":""," ")}}function ve(Pe,Re){1&Pe&&(e.TgZ(0,"th",24),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Pe&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPE")," "))}function De(Pe,Re){if(1&Pe&&(e.TgZ(0,"td",25),e._uU(1),e.ALo(2,"applicationFormItemType"),e.qZA()),2&Pe){const re=Re.$implicit;e.xp6(1),e.hij(" ",e.lcZ(2,1,re.type)," ")}}function he(Pe,Re){1&Pe&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Pe&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HEADER")," "))}function Ye(Pe,Re){if(1&Pe&&(e.TgZ(0,"div")(1,"mat-icon",30),e._uU(2,"lock "),e.qZA(),e._UZ(3,"br"),e._uU(4),e.qZA()),2&Pe){const re=e.oxw().$implicit,we=e.oxw(2);e.xp6(1),e.Q6J("matTooltip",we.disabledTooltip(re)),e.xp6(3),e.hij(" ",we.disabledHiddenDependency(re,re.disabled,re.disabledDependencyItemId)," ")}}function Be(Pe,Re){if(1&Pe&&(e.TgZ(0,"td",28),e.YNc(1,Ye,5,2,"div",29),e.qZA()),2&Pe){const re=Re.$implicit;e.xp6(1),e.Q6J("ngIf","NEVER"!==re.disabled)}}function se(Pe,Re){1&Pe&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Pe&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.HIDDEN_HEADER")," "))}function le(Pe,Re){if(1&Pe&&(e.TgZ(0,"div")(1,"mat-icon",30),e._uU(2,"visibility_off "),e.qZA(),e._UZ(3,"br"),e._uU(4),e.qZA()),2&Pe){const re=e.oxw().$implicit,we=e.oxw(2);e.xp6(1),e.Q6J("matTooltip",we.hiddenTooltip(re)),e.xp6(3),e.hij(" ",we.disabledHiddenDependency(re,re.hidden,re.hiddenDependencyItemId)," ")}}function N(Pe,Re){if(1&Pe&&(e.TgZ(0,"td",28),e.YNc(1,le,5,2,"div",29),e.qZA()),2&Pe){const re=Re.$implicit;e.xp6(1),e.Q6J("ngIf","NEVER"!==re.hidden)}}function k(Pe,Re){1&Pe&&(e.TgZ(0,"th",24),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Pe&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW")," "))}function be(Pe,Re){1&Pe&&(e.TgZ(0,"div")(1,"form"),e._UZ(2,"input",31),e.qZA()())}function Z(Pe,Re){1&Pe&&(e.TgZ(0,"div")(1,"form"),e._UZ(2,"input",32)(3,"br")(4,"input",31),e.qZA()())}function ce(Pe,Re){if(1&Pe&&(e.TgZ(0,"div"),e._UZ(1,"input",35),e._uU(2),e._UZ(3,"br"),e.qZA()),2&Pe){const re=Re.$implicit;e.xp6(2),e.hij(" ",re,"")}}function xe(Pe,Re){if(1&Pe&&(e.TgZ(0,"div")(1,"form"),e.YNc(2,ce,4,1,"div",33),e._UZ(3,"input",34),e.ALo(4,"translate"),e.qZA()()),2&Pe){const re=e.oxw().$implicit,we=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",we.getLocalizedOptions(re)),e.xp6(1),e.s9C("value",e.lcZ(4,2,"VO_DETAIL.SETTINGS.APPLICATION_FORM.CLEAR_SELECTION"))}}function ot(Pe,Re){if(1&Pe&&(e.TgZ(0,"div"),e._UZ(1,"span",36),e.qZA()),2&Pe){const re=e.oxw().$implicit,we=e.oxw(2);e.xp6(1),e.Q6J("innerHTML",we.getLocalizedLabel(re),e.oJD)}}function Fe(Pe,Re){if(1&Pe&&(e.TgZ(0,"div"),e._UZ(1,"span",36),e.ALo(2,"sanitizeHtml"),e.qZA()),2&Pe){const re=e.oxw().$implicit,we=e.oxw(2);e.xp6(1),e.Q6J("innerHTML",e.lcZ(2,1,we.getLocalizedLabel(re)),e.oJD)}}function ut(Pe,Re){if(1&Pe&&(e.TgZ(0,"option"),e._uU(1),e.qZA()),2&Pe){const re=Re.$implicit;e.xp6(1),e.hij(" ",re," ")}}function tt(Pe,Re){if(1&Pe&&(e.TgZ(0,"div")(1,"select"),e.YNc(2,ut,2,1,"option",33),e.qZA()()),2&Pe){const re=e.oxw().$implicit,we=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",we.getLocalizedOptions(re))}}function vt(Pe,Re){1&Pe&&(e.TgZ(0,"div"),e._UZ(1,"textarea"),e.qZA())}function X(Pe,Re){if(1&Pe&&(e.TgZ(0,"option",40),e._uU(1),e.qZA()),2&Pe){const re=Re.$implicit;e.xp6(1),e.hij(" ",re," ")}}function nt(Pe,Re){1&Pe&&(e.TgZ(0,"div")(1,"form"),e._UZ(2,"input",31),e.qZA()())}function Ae(Pe,Re){if(1&Pe){const re=e.EpF();e.TgZ(0,"div")(1,"select",37),e.NdJ("ngModelChange",function(st){e.CHM(re);const Ke=e.oxw().$implicit,Et=e.oxw(2);return e.KtG(Et.mapForCombobox[Ke.id]=st)}),e.YNc(2,X,2,1,"option",38),e.TgZ(3,"option",39),e._uU(4),e.ALo(5,"translate"),e.qZA()(),e.YNc(6,nt,3,0,"div",29),e.qZA()}if(2&Pe){const re=e.oxw().$implicit,we=e.oxw(2);e.xp6(1),e.Q6J("ngModel",we.mapForCombobox[re.id]),e.xp6(1),e.Q6J("ngForOf",we.getLocalizedOptions(re)),e.xp6(2),e.hij(" ",e.lcZ(5,4,"VO_DETAIL.SETTINGS.APPLICATION_FORM.OTHER_VALUE")," "),e.xp6(2),e.Q6J("ngIf","true"===we.mapForCombobox[re.id])}}function ye(Pe,Re){if(1&Pe&&(e.TgZ(0,"div"),e._UZ(1,"input",41),e._uU(2),e.qZA()),2&Pe){const re=Re.$implicit;e.xp6(2),e.hij(" ",re," ")}}function _e(Pe,Re){if(1&Pe&&(e.TgZ(0,"div")(1,"form"),e.YNc(2,ye,3,1,"div",33),e.qZA()()),2&Pe){const re=e.oxw().$implicit,we=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",we.getLocalizedOptions(re))}}function Se(Pe,Re){if(1&Pe&&(e.TgZ(0,"div")(1,"button",42),e._uU(2),e.qZA()()),2&Pe){const re=e.oxw().$implicit,we=e.oxw(2);e.xp6(2),e.hij(" ",we.getLocalizedLabel(re)," ")}}function Ne(Pe,Re){1&Pe&&(e.TgZ(0,"div")(1,"select",43)(2,"option",44),e._uU(3),e.ALo(4,"translate"),e.qZA(),e.TgZ(5,"option",45),e._uU(6,"(GMT -12:00) Eniwetok, Kwajalein"),e.qZA(),e.TgZ(7,"option",46),e._uU(8,"(GMT -11:00) Midway Island, Samoa"),e.qZA(),e.TgZ(9,"option",47),e._uU(10,"(GMT -10:00) Hawaii"),e.qZA(),e.TgZ(11,"option",48),e._uU(12,"(GMT -9:30) Taiohae"),e.qZA(),e.TgZ(13,"option",49),e._uU(14,"(GMT -9:00) Alaska"),e.qZA(),e.TgZ(15,"option",50),e._uU(16,"(GMT -8:00) Pacific Time (US & Canada)"),e.qZA(),e.TgZ(17,"option",51),e._uU(18,"(GMT -7:00) Mountain Time (US & Canada)"),e.qZA(),e.TgZ(19,"option",52),e._uU(20," (GMT -6:00) Central Time (US & Canada), Mexico City "),e.qZA(),e.TgZ(21,"option",53),e._uU(22," (GMT -5:00) Eastern Time (US & Canada), Bogota, Lima "),e.qZA(),e.TgZ(23,"option",54),e._uU(24,"(GMT -4:30) Caracas"),e.qZA(),e.TgZ(25,"option",55),e._uU(26,"(GMT -4:00) Atlantic Time (Canada), Caracas, La Paz"),e.qZA(),e.TgZ(27,"option",56),e._uU(28,"(GMT -3:30) Newfoundland"),e.qZA(),e.TgZ(29,"option",57),e._uU(30,"(GMT -3:00) Brazil, Buenos Aires, Georgetown"),e.qZA(),e.TgZ(31,"option",58),e._uU(32,"(GMT -2:00) Mid-Atlantic"),e.qZA(),e.TgZ(33,"option",59),e._uU(34,"(GMT -1:00) Azores, Cape Verde Islands"),e.qZA(),e.TgZ(35,"option",60),e._uU(36," (GMT) Western Europe Time, London, Lisbon, Casablanca "),e.qZA(),e.TgZ(37,"option",61),e._uU(38,"(GMT +1:00) Brussels, Copenhagen, Madrid, Paris"),e.qZA(),e.TgZ(39,"option",62),e._uU(40,"(GMT +2:00) Kaliningrad, South Africa"),e.qZA(),e.TgZ(41,"option",63),e._uU(42,"(GMT +3:00) Baghdad, Riyadh, Moscow, St. Petersburg"),e.qZA(),e.TgZ(43,"option",64),e._uU(44,"(GMT +3:30) Tehran"),e.qZA(),e.TgZ(45,"option",65),e._uU(46,"(GMT +4:00) Abu Dhabi, Muscat, Baku, Tbilisi"),e.qZA(),e.TgZ(47,"option",66),e._uU(48,"(GMT +4:30) Kabul"),e.qZA(),e.TgZ(49,"option",67),e._uU(50," (GMT +5:00) Ekaterinburg, Islamabad, Karachi, Tashkent "),e.qZA(),e.TgZ(51,"option",68),e._uU(52,"(GMT +5:30) Bombay, Calcutta, Madras, New Delhi"),e.qZA(),e.TgZ(53,"option",69),e._uU(54,"(GMT +5:45) Kathmandu, Pokhara"),e.qZA(),e.TgZ(55,"option",70),e._uU(56,"(GMT +6:00) Almaty, Dhaka, Colombo"),e.qZA(),e.TgZ(57,"option",71),e._uU(58,"(GMT +6:30) Yangon, Mandalay"),e.qZA(),e.TgZ(59,"option",72),e._uU(60,"(GMT +7:00) Bangkok, Hanoi, Jakarta"),e.qZA(),e.TgZ(61,"option",73),e._uU(62,"(GMT +8:00) Beijing, Perth, Singapore, Hong Kong"),e.qZA(),e.TgZ(63,"option",74),e._uU(64,"(GMT +8:45) Eucla"),e.qZA(),e.TgZ(65,"option",75),e._uU(66,"(GMT +9:00) Tokyo, Seoul, Osaka, Sapporo, Yakutsk"),e.qZA(),e.TgZ(67,"option",76),e._uU(68,"(GMT +9:30) Adelaide, Darwin"),e.qZA(),e.TgZ(69,"option",77),e._uU(70,"(GMT +10:00) Eastern Australia, Guam, Vladivostok"),e.qZA(),e.TgZ(71,"option",78),e._uU(72,"(GMT +10:30) Lord Howe Island"),e.qZA(),e.TgZ(73,"option",79),e._uU(74,"(GMT +11:00) Magadan, Solomon Islands, New Caledonia"),e.qZA(),e.TgZ(75,"option",80),e._uU(76,"(GMT +11:30) Norfolk Island"),e.qZA(),e.TgZ(77,"option",81),e._uU(78,"(GMT +12:00) Auckland, Wellington, Fiji, Kamchatka"),e.qZA(),e.TgZ(79,"option",82),e._uU(80,"(GMT +12:45) Chatham Islands"),e.qZA(),e.TgZ(81,"option",83),e._uU(82,"(GMT +13:00) Apia, Nukualofa"),e.qZA(),e.TgZ(83,"option",84),e._uU(84,"(GMT +14:00) Line Islands, Tokelau"),e.qZA()()()),2&Pe&&(e.xp6(3),e.hij(" ",e.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.NOT_SELECTED")," "))}function Ce(Pe,Re){if(1&Pe&&(e.TgZ(0,"div")(1,"button",42),e._uU(2),e.qZA()()),2&Pe){const re=e.oxw().$implicit,we=e.oxw(2);e.xp6(2),e.hij(" ",we.getLocalizedLabel(re)," ")}}function fe(Pe,Re){1&Pe&&(e.TgZ(0,"div")(1,"form"),e._UZ(2,"input",41),e._uU(3," example group1 "),e._UZ(4,"br")(5,"input",41),e._uU(6," example group2 "),e._UZ(7,"br")(8,"input",41),e._uU(9," example group3 "),e.qZA()())}const r=function(){return["Example 1","Example 2"]},u=function(Pe){return{id:0,beanName:"Attribute",namespace:"",value:Pe}};function _(Pe,Re){1&Pe&&(e.TgZ(0,"div"),e._UZ(1,"perun-web-apps-attribute-value-list",85),e.qZA()),2&Pe&&(e.xp6(1),e.Q6J("attribute",e.VKq(2,u,e.DdM(1,r))))}const E=function(){return{key1:"value 1",key2:"value 2"}};function h(Pe,Re){1&Pe&&(e.TgZ(0,"div"),e._UZ(1,"perun-web-apps-attribute-value-map",85),e.qZA()),2&Pe&&(e.xp6(1),e.Q6J("attribute",e.VKq(2,u,e.DdM(1,E))))}function a(Pe,Re){if(1&Pe&&(e.TgZ(0,"td",25),e.YNc(1,be,3,0,"div",29),e.YNc(2,Z,5,0,"div",29),e.YNc(3,xe,5,4,"div",29),e.YNc(4,ot,2,1,"div",29),e.YNc(5,Fe,3,3,"div",29),e.YNc(6,tt,3,1,"div",29),e.YNc(7,vt,2,0,"div",29),e.YNc(8,Ae,7,6,"div",29),e.YNc(9,_e,3,1,"div",29),e.YNc(10,Se,3,1,"div",29),e.YNc(11,Ne,85,3,"div",29),e.YNc(12,Ce,3,1,"div",29),e.YNc(13,fe,10,0,"div",29),e.YNc(14,_,2,4,"div",29),e.YNc(15,h,2,4,"div",29),e.qZA()),2&Pe){const re=Re.$implicit;e.xp6(1),e.Q6J("ngIf","TEXTFIELD"===re.type||"VALIDATED_EMAIL"===re.type||"USERNAME"===re.type),e.xp6(1),e.Q6J("ngIf","PASSWORD"===re.type),e.xp6(1),e.Q6J("ngIf","RADIO"===re.type),e.xp6(1),e.Q6J("ngIf","HEADING"===re.type),e.xp6(1),e.Q6J("ngIf","HTML_COMMENT"===re.type),e.xp6(1),e.Q6J("ngIf","SELECTIONBOX"===re.type),e.xp6(1),e.Q6J("ngIf","TEXTAREA"===re.type),e.xp6(1),e.Q6J("ngIf","COMBOBOX"===re.type),e.xp6(1),e.Q6J("ngIf","CHECKBOX"===re.type),e.xp6(1),e.Q6J("ngIf","SUBMIT_BUTTON"===re.type),e.xp6(1),e.Q6J("ngIf","TIMEZONE"===re.type),e.xp6(1),e.Q6J("ngIf","AUTO_SUBMIT_BUTTON"===re.type),e.xp6(1),e.Q6J("ngIf","EMBEDDED_GROUP_APPLICATION"===re.type),e.xp6(1),e.Q6J("ngIf","LIST_INPUT_BOX"===re.type),e.xp6(1),e.Q6J("ngIf","MAP_INPUT_BOX"===re.type)}}function i(Pe,Re){1&Pe&&e._UZ(0,"th",24)}function t(Pe,Re){if(1&Pe){const re=e.EpF();e.TgZ(0,"button",87),e.NdJ("click",function(){e.CHM(re);const st=e.oxw(3);return e.KtG(st.openManagingGroups())}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon"),e._uU(3,"supervised_user_circle"),e.qZA()()}2&Pe&&e.s9C("matTooltip",e.lcZ(1,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS"))}function n(Pe,Re){if(1&Pe&&(e.TgZ(0,"td",25),e.YNc(1,t,4,3,"button",86),e.qZA()),2&Pe){const re=Re.$implicit;e.xp6(1),e.Q6J("ngIf","EMBEDDED_GROUP_APPLICATION"===re.type&&!re.forDelete)}}function o(Pe,Re){1&Pe&&e._UZ(0,"th",24)}function s(Pe,Re){if(1&Pe){const re=e.EpF();e.TgZ(0,"button",90),e.NdJ("click",function(){e.CHM(re);const st=e.oxw().$implicit,Ke=e.oxw(2);return e.KtG(Ke.edit(st))}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon"),e._uU(3,"edit"),e.qZA()()}2&Pe&&e.s9C("matTooltip",e.lcZ(1,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.EDIT"))}function l(Pe,Re){1&Pe&&(e.TgZ(0,"div",91),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Pe&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MARK_DELETE")," "))}function d(Pe,Re){if(1&Pe&&(e.TgZ(0,"td",25),e.YNc(1,s,4,3,"button",88),e.YNc(2,l,3,3,"div",89),e.qZA()),2&Pe){const re=Re.$implicit;e.xp6(1),e.Q6J("ngIf",!re.forDelete),e.xp6(1),e.Q6J("ngIf",re.forDelete)}}function c(Pe,Re){1&Pe&&e._UZ(0,"th",24)}function S(Pe,Re){if(1&Pe){const re=e.EpF();e.TgZ(0,"button",93),e.NdJ("click",function(){e.CHM(re);const st=e.oxw().$implicit,Ke=e.oxw(2);return e.KtG(Ke.delete(st))}),e.ALo(1,"multiWordDataCy"),e.ALo(2,"translate"),e.TgZ(3,"mat-icon"),e._uU(4,"delete"),e.qZA()()}if(2&Pe){const re=e.oxw().$implicit;e.Q2q("data-cy","",e.lcZ(1,2,re.shortname),"-delete"),e.s9C("matTooltip",e.lcZ(2,4,"VO_DETAIL.SETTINGS.APPLICATION_FORM.DELETE"))}}function J(Pe,Re){if(1&Pe){const re=e.EpF();e.TgZ(0,"button",87),e.NdJ("click",function(){e.CHM(re);const st=e.oxw().$implicit,Ke=e.oxw(2);return e.KtG(Ke.restore(st))}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon"),e._uU(3,"settings_backup_restore"),e.qZA()()}2&Pe&&e.s9C("matTooltip",e.lcZ(1,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.REVERT_DELETE"))}function ht(Pe,Re){if(1&Pe&&(e.TgZ(0,"td",25),e.YNc(1,S,5,6,"button",92),e.YNc(2,J,4,3,"button",86),e.qZA()),2&Pe){const re=Re.$implicit;e.xp6(1),e.Q6J("ngIf",!re.forDelete),e.xp6(1),e.Q6J("ngIf",re.forDelete)}}function ze(Pe,Re){1&Pe&&e._UZ(0,"tr",94)}function et(Pe,Re){if(1&Pe&&e._UZ(0,"tr",95),2&Pe){const re=Re.$implicit,we=e.oxw(2);e.ekj("make-green",re.id<=0)("make-red",re.forDelete)("make-yellow",-1!==we.itemsChanged.indexOf(re.id)&&!re.forDelete&&re.id>0),e.Q6J("cdkDragData",re)}}function ne(Pe,Re){if(1&Pe){const re=e.EpF();e.TgZ(0,"div",4)(1,"div",5)(2,"div",6)(3,"table",7,8),e.NdJ("cdkDropListDropped",function(st){e.CHM(re);const Ke=e.oxw();return e.KtG(Ke.drop(st))}),e.ynx(5,9),e.YNc(6,ee,1,0,"th",10),e.YNc(7,Q,4,0,"td",11),e.BQk(),e.ynx(8,12),e.YNc(9,Ee,3,3,"th",10),e.YNc(10,ge,3,5,"td",11),e.BQk(),e.ynx(11,13),e.YNc(12,ve,3,3,"th",10),e.YNc(13,De,3,3,"td",11),e.BQk(),e.ynx(14,14),e.YNc(15,he,3,3,"th",15),e.YNc(16,Be,2,1,"td",16),e.BQk(),e.ynx(17,17),e.YNc(18,se,3,3,"th",15),e.YNc(19,N,2,1,"td",16),e.BQk(),e.ynx(20,18),e.YNc(21,k,3,3,"th",10),e.YNc(22,a,16,15,"td",11),e.BQk(),e.ynx(23,19),e.YNc(24,i,1,0,"th",10),e.YNc(25,n,2,1,"td",11),e.BQk(),e.ynx(26,20),e.YNc(27,o,1,0,"th",10),e.YNc(28,d,3,2,"td",11),e.BQk(),e.ynx(29,21),e.YNc(30,c,1,0,"th",10),e.YNc(31,ht,3,2,"td",11),e.BQk(),e.YNc(32,ze,1,0,"tr",22),e.YNc(33,et,1,7,"tr",23),e.qZA()()()()}if(2&Pe){const re=e.oxw();e.xp6(3),e.Q6J("cdkDropListDisabled",re.dragDisabled)("dataSource",re.dataSource),e.xp6(29),e.Q6J("matHeaderRowDef",re.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",re.displayedColumns)}}function Ue(Pe,Re){1&Pe&&(e.TgZ(0,"perun-web-apps-alert",96),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Pe&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.NO_APPLICATION_FORM"),"\n"))}let He=(()=>{class Pe{constructor(re,we,st,Ke){this.dialog=re,this.notificator=we,this.router=st,this.translate=Ke,this.applicationFormItems=[],this.displayedColumns=["drag","shortname","type","disabled","hidden","preview","managegroups","edit","delete"],this.applicationFormItemsChange=new e.vpe,this.itemsChanged=[],this.dataSource=this.applicationFormItems,this.mapForCombobox=new Map,this.dragDisabled=!0}ngOnInit(){this.ifEmpty=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HIDDEN_ICON.IF_EMPTY"),this.ifPrefilled=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HIDDEN_ICON.IF_PREFILLED"),this.alwaysDisabled=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HIDDEN_ICON.ALWAYS_DISABLED_HINT"),this.alwaysHidden=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HIDDEN_ICON.ALWAYS_HIDDEN_HINT"),this.isDisabledIf=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HIDDEN_ICON.DISABLED_IF_HINT"),this.isHiddenIf=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HIDDEN_ICON.HIDDEN_IF_HINT"),this.isEmpty=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HIDDEN_ICON.IS_EMPTY_HINT"),this.isPrefilled=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HIDDEN_ICON.IS_PREFILLED_HINT")}ngOnChanges(){this.dataSource=this.applicationFormItems,this.refreshApplicationForm&&(this.itemsChanged=[])}disabledHiddenDependency(re,we,st){let Ke="";if("IF_EMPTY"===we||"IF_PREFILLED"===we){const Et=null===st?"":this.applicationFormItems.find(ke=>ke.id===st).shortname;Ke="IF_EMPTY"===we?`(${this.ifEmpty} ${Et})`:`(${this.ifPrefilled} ${Et})`}return Ke}disabledTooltip(re){let we;switch(re.disabled){case"ALWAYS":return this.alwaysDisabled;case"IF_EMPTY":return we=null===re.disabledDependencyItemId?"":this.applicationFormItems.find(st=>st.id===re.disabledDependencyItemId).shortname,`${this.isDisabledIf} ${we} ${this.isEmpty}`;case"IF_PREFILLED":return we=null===re.disabledDependencyItemId?"":this.applicationFormItems.find(st=>st.id===re.disabledDependencyItemId).shortname,`${this.isDisabledIf} ${we} ${this.isPrefilled}`}}hiddenTooltip(re){let we;switch(re.hidden){case"ALWAYS":return this.alwaysHidden;case"IF_EMPTY":return we=null===re.hiddenDependencyItemId?"":this.applicationFormItems.find(st=>st.id===re.hiddenDependencyItemId).shortname,`${this.isHiddenIf} ${we} ${this.isEmpty}`;case"IF_PREFILLED":return we=null===re.hiddenDependencyItemId?"":this.applicationFormItems.find(st=>st.id===re.hiddenDependencyItemId).shortname,`${this.isHiddenIf} ${we} ${this.isPrefilled}`}}edit(re){const we=(0,R.kZ)();we.width="600px",we.height="600px",we.data={voId:this.applicationForm.vo.id,group:this.applicationForm.group,applicationFormItem:re,theme:this.theme,allItems:this.applicationFormItems},this.dialog.open(v._,we).afterClosed().subscribe(Ke=>{Ke&&(this.itemsChanged.push(re.id),this.applicationFormItemsChange.emit())})}delete(re){const we=(0,R.kZ)();we.width="500px",this.dialog.open(b,we).afterClosed().subscribe(Ke=>{Ke&&(re.forDelete=!0,0===re.id&&(this.applicationFormItems.splice(this.applicationFormItems.indexOf(re),1),this.table.renderRows()),this.applicationFormItemsChange.emit())})}drop(re){this.dragDisabled=!0;const we=this.applicationFormItems.indexOf(re.item.data);(0,A.bA)(this.applicationFormItems,we,re.currentIndex),this.itemsChanged.push(this.applicationFormItems[re.currentIndex].id),this.applicationFormItemsChange.emit(),this.table.renderRows()}getLocalizedOptions(re){if(re.i18n[this.translate.getDefaultLang()]){const we=re.i18n[this.translate.getDefaultLang()].options;if(null!==we&&""!==we){const st=[];for(const Ke of we.split("|"))st.push(Ke.split("#")[1]);return st}}return[]}getLocalizedLabel(re){return re.i18n[this.translate.getDefaultLang()]?re.i18n[this.translate.getDefaultLang()].label:re.shortname}restore(re){re.forDelete=!1}openManagingGroups(){this.router.navigate(["/organizations",this.applicationForm.vo.id,"settings","applicationForm","manageGroups"],{queryParamsHandling:"preserve"})}}return Pe.\u0275fac=function(re){return new(re||Pe)(e.Y36(C.uw),e.Y36(D.V6),e.Y36(B.F0),e.Y36(m.sK))},Pe.\u0275cmp=e.Xpm({type:Pe,selectors:[["app-application-form-list"]],viewQuery:function(re,we){if(1&re&&e.Gf(F,5),2&re){let st;e.iGM(st=e.CRH())&&(we.table=st.first)}},inputs:{loading:"loading",applicationForm:"applicationForm",applicationFormItems:"applicationFormItems",theme:"theme",displayedColumns:"displayedColumns",refreshApplicationForm:"refreshApplicationForm"},outputs:{applicationFormItemsChange:"applicationFormItemsChange"},features:[e.TTD],decls:3,vars:3,consts:[["class","ml-auto mr-auto",4,"ngIf"],["class","card mt-2",4,"ngIf"],["alert_type","warn",4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"card","mt-2"],[1,"card-body","table-theme"],[1,"overflow-auto"],["cdkDropList","","cdkDropListData","dataSource","mat-table","",1,"w-100",3,"cdkDropListDisabled","dataSource","cdkDropListDropped"],["table",""],["matColumnDef","drag"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","shortname"],["matColumnDef","type"],["matColumnDef","disabled"],["class","center","mat-header-cell","",4,"matHeaderCellDef"],["class","center","mat-cell","",4,"matCellDef"],["matColumnDef","hidden"],["matColumnDef","preview"],["matColumnDef","managegroups"],["matColumnDef","edit"],["matColumnDef","delete"],["mat-header-row","",4,"matHeaderRowDef"],["cdkDrag","","mat-row","",3,"cdkDragData","make-green","make-red","make-yellow",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","",3,"mousedown"],["mat-header-cell","",1,"center"],["mat-cell","",1,"center"],[4,"ngIf"],[1,"pointer",3,"matTooltip"],["type","text"],["type","text",1,"mb-1"],[4,"ngFor","ngForOf"],["type","reset",3,"value"],["name","temp","type","radio"],[3,"innerHTML"],[3,"ngModel","ngModelChange"],["selected","","value","false",4,"ngFor","ngForOf"],["value","true"],["selected","","value","false"],["type","checkbox"],["color","accent","mat-flat-button",""],["id","timezone-offset","name","timezone_offset",1,"span5"],["selected","selected","value","-12:00"],["value","-12:00"],["value","-11:00"],["value","-10:00"],["value","-09:50"],["value","-09:00"],["value","-08:00"],["value","-07:00"],["value","-06:00"],["value","-05:00"],["value","-04:50"],["value","-04:00"],["value","-03:50"],["value","-03:00"],["value","-02:00"],["value","-01:00"],["value","+00:00"],["value","+01:00"],["value","+02:00"],["value","+03:00"],["value","+03:50"],["value","+04:00"],["value","+04:50"],["value","+05:00"],["value","+05:50"],["value","+05:75"],["value","+06:00"],["value","+06:50"],["value","+07:00"],["value","+08:00"],["value","+08:75"],["value","+09:00"],["value","+09:50"],["value","+10:00"],["value","+10:50"],["value","+11:00"],["value","+11:50"],["value","+12:00"],["value","+12:75"],["value","+13:00"],["value","+14:00"],[3,"attribute"],["mat-icon-button","",3,"matTooltip","click",4,"ngIf"],["mat-icon-button","",3,"matTooltip","click"],["class","ml-auto","mat-icon-button","",3,"matTooltip","click",4,"ngIf"],["class","font-weight-bold",4,"ngIf"],["mat-icon-button","",1,"ml-auto",3,"matTooltip","click"],[1,"font-weight-bold"],["color","warn","mat-icon-button","",3,"matTooltip","click",4,"ngIf"],["color","warn","mat-icon-button","",3,"matTooltip","click"],["mat-header-row",""],["cdkDrag","","mat-row","",3,"cdkDragData"],["alert_type","warn"]],template:function(re,we){1&re&&(e.YNc(0,V,1,0,"mat-spinner",0),e.YNc(1,ne,34,4,"div",1),e.YNc(2,Ue,3,3,"perun-web-apps-alert",2)),2&re&&(e.Q6J("ngIf",we.loading),e.xp6(1),e.Q6J("ngIf",0!==we.applicationFormItems.length&&!we.loading),e.xp6(1),e.Q6J("ngIf",0===we.applicationFormItems.length&&!we.loading))},dependencies:[w.sg,w.O5,L._Y,L.YN,L.Kr,L.EJ,L.JJ,L.JL,L.On,L.F,O.Hw,q.BZ,q.fO,q.as,q.w1,q.Dz,q.nj,q.ge,q.ev,q.XQ,q.Gk,M.lW,te.Ou,z.gM,A.Wj,A.Zt,ie.w,Te.H,pe.$,m.X$,Le.c,T.A,W.R],styles:[".cdk-drag-preview[_ngcontent-%COMP%]{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}.cdk-drop-list-dragging[_ngcontent-%COMP%] .mat-row[_ngcontent-%COMP%]:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}.movable-row[_ngcontent-%COMP%]{cursor:move}.make-red[_ngcontent-%COMP%]{background-color:#ffcdd2}.make-green[_ngcontent-%COMP%]{background-color:#c8e6c9}.make-yellow[_ngcontent-%COMP%]{background-color:#fff9c4}.center[_ngcontent-%COMP%]{text-align:center}.pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),Pe})()},99168:(Xe,ue,p)=>{"use strict";p.d(ue,{S:()=>ht});var e=p(61744),A=p(9244),C=p(96308),M=p(81591),m=p(56451),b=p(18505),D=p(36895),v=p(21029),R=p(94650),B=p(10036),w=p(65412),L=p(94364),O=p(30671),q=p(51572),te=p(98380),z=p(34198),ie=p(55660),Te=p(18750),pe=p(97392),Le=p(10266);function T(ze,et){1&ze&&(R.TgZ(0,"div")(1,"mat-icon",1),R._uU(2,"arrow_right_alt"),R.qZA()())}function W(ze,et){1&ze&&(R.TgZ(0,"div")(1,"mat-icon",2),R._uU(2,"restore"),R.qZA()())}function F(ze,et){1&ze&&(R.TgZ(0,"div")(1,"mat-icon",3),R._uU(2,"nat"),R.qZA()())}let V=(()=>{class ze{}return ze.\u0275fac=function(ne){return new(ne||ze)},ze.\u0275cmp=R.Xpm({type:ze,selectors:[["app-application-type-icon"]],inputs:{applicationType:"applicationType"},decls:4,vars:3,consts:[[4,"ngIf"],["matTooltip","Initial","matTooltipPosition","above"],["matTooltip","Extension","matTooltipPosition","above"],["matTooltip","Embedded","matTooltipPosition","above"]],template:function(ne,Ue){1&ne&&(R.TgZ(0,"div"),R.YNc(1,T,3,0,"div",0),R.YNc(2,W,3,0,"div",0),R.YNc(3,F,3,0,"div",0),R.qZA()),2&ne&&(R.xp6(1),R.Q6J("ngIf","INITIAL"===Ue.applicationType),R.xp6(1),R.Q6J("ngIf","EXTENSION"===Ue.applicationType),R.xp6(1),R.Q6J("ngIf","EMBEDDED"===Ue.applicationType))},dependencies:[D.O5,pe.Hw,Le.gM]}),ze})();var ee=p(89383),Q=p(43157),Ee=p(31359),ge=p(64597);let ve=(()=>{class ze{transform(ne,Ue,He,Pe){return Ue?null:He?["/organizations",String(ne.vo.id),"groups",String(He.id),"applications",String(ne.id)]:Pe?["/organizations",String(ne.vo.id),"members",String(Pe.id),"applications",String(ne.id)]:["/organizations",String(ne.vo.id),"applications",String(ne.id)]}}return ze.\u0275fac=function(ne){return new(ne||ze)},ze.\u0275pipe=R.Yjl({name:"selectApplicationLink",type:ze,pure:!0}),ze})();function De(ze,et){1&ze&&(R.TgZ(0,"div",26),R._UZ(1,"mat-spinner",27),R.qZA())}function he(ze,et){1&ze&&(R.TgZ(0,"th",28),R._uU(1),R.ALo(2,"translate"),R.qZA()),2&ze&&(R.xp6(1),R.hij(" ",R.lcZ(2,1,"APPLICATIONS_LIST.ID")," "))}function Ye(ze,et){if(1&ze&&(R.TgZ(0,"td",29),R._uU(1),R.qZA()),2&ze){const ne=et.$implicit;R.xp6(1),R.Oqu(ne.id)}}function Be(ze,et){1&ze&&(R.TgZ(0,"th",28),R._uU(1),R.ALo(2,"translate"),R.qZA()),2&ze&&(R.xp6(1),R.hij(" ",R.lcZ(2,1,"APPLICATIONS_LIST.CREATED_DATE")," "))}function se(ze,et){if(1&ze&&(R.TgZ(0,"td",29),R._uU(1),R.ALo(2,"date"),R.qZA()),2&ze){const ne=et.$implicit;R.xp6(1),R.Oqu(R.xi3(2,1,ne.createdAt,"d.M.y"))}}function le(ze,et){1&ze&&(R.TgZ(0,"th",30),R._uU(1),R.ALo(2,"translate"),R.qZA()),2&ze&&(R.xp6(1),R.Oqu(R.lcZ(2,1,"APPLICATIONS_LIST.VO_ID")))}function N(ze,et){if(1&ze&&(R.TgZ(0,"td",29),R._uU(1),R.qZA()),2&ze){const ne=et.$implicit;R.xp6(1),R.Oqu(ne.vo.id)}}function k(ze,et){1&ze&&(R.TgZ(0,"th",30),R._uU(1),R.ALo(2,"translate"),R.qZA()),2&ze&&(R.xp6(1),R.Oqu(R.lcZ(2,1,"APPLICATIONS_LIST.VO_NAME")))}function be(ze,et){if(1&ze&&(R.TgZ(0,"td",29),R._uU(1),R.qZA()),2&ze){const ne=et.$implicit;R.xp6(1),R.Oqu(ne.vo.name)}}function Z(ze,et){1&ze&&(R.TgZ(0,"th",30),R._uU(1),R.ALo(2,"translate"),R.qZA()),2&ze&&(R.xp6(1),R.Oqu(R.lcZ(2,1,"APPLICATIONS_LIST.GROUP_ID")))}function ce(ze,et){if(1&ze&&(R.TgZ(0,"td",29),R._uU(1),R.qZA()),2&ze){const ne=et.$implicit;R.xp6(1),R.hij(" ",ne.group?ne.group.id:""," ")}}function xe(ze,et){1&ze&&(R.TgZ(0,"th",30),R._uU(1),R.ALo(2,"translate"),R.qZA()),2&ze&&(R.xp6(1),R.Oqu(R.lcZ(2,1,"APPLICATIONS_LIST.GROUP_NAME")))}function ot(ze,et){if(1&ze&&(R.TgZ(0,"td",29),R.ALo(1,"multiWordDataCy"),R._uU(2),R.qZA()),2&ze){const ne=et.$implicit;R.Q2q("data-cy","",ne.group?ne.group.name:R.lcZ(1,2,"no-group"),"-groupname-td"),R.xp6(2),R.hij(" ",ne.group?ne.group.name:""," ")}}function Fe(ze,et){1&ze&&(R.TgZ(0,"th",28),R._uU(1),R.ALo(2,"translate"),R.qZA()),2&ze&&(R.xp6(1),R.hij(" ",R.lcZ(2,1,"APPLICATIONS_LIST.TYPE")," "))}function ut(ze,et){if(1&ze&&(R.TgZ(0,"td",29),R._UZ(1,"app-application-type-icon",31),R.qZA()),2&ze){const ne=et.$implicit;R.xp6(1),R.Q6J("applicationType",ne.type)}}function tt(ze,et){1&ze&&(R.TgZ(0,"th",28),R._uU(1),R.ALo(2,"translate"),R.qZA()),2&ze&&(R.xp6(1),R.hij(" ",R.lcZ(2,1,"APPLICATIONS_LIST.STATE")," "))}function vt(ze,et){if(1&ze&&(R.TgZ(0,"td",29),R._UZ(1,"span",32),R.ALo(2,"applicationState"),R.qZA()),2&ze){const ne=et.$implicit;R.xp6(1),R.Q6J("outerHTML",R.lcZ(2,1,ne.state),R.oJD)}}function X(ze,et){1&ze&&(R.TgZ(0,"th",30),R._uU(1),R.ALo(2,"translate"),R.qZA()),2&ze&&(R.xp6(1),R.Oqu(R.lcZ(2,1,"APPLICATIONS_LIST.EXTSOURCENAME")))}function nt(ze,et){if(1&ze&&(R.TgZ(0,"td",29),R._uU(1),R.qZA()),2&ze){const ne=et.$implicit;R.xp6(1),R.Oqu(ne.extSourceName)}}function Ae(ze,et){1&ze&&(R.TgZ(0,"th",30),R._uU(1),R.ALo(2,"translate"),R.qZA()),2&ze&&(R.xp6(1),R.Oqu(R.lcZ(2,1,"APPLICATIONS_LIST.EXTSOURCETYPE")))}function ye(ze,et){if(1&ze&&(R.TgZ(0,"td",29),R._uU(1),R.qZA()),2&ze){const ne=et.$implicit;R.xp6(1),R.Oqu(ne.extSourceType)}}function _e(ze,et){1&ze&&(R.TgZ(0,"th",28),R._uU(1),R.ALo(2,"translate"),R.qZA()),2&ze&&(R.xp6(1),R.hij(" ",R.lcZ(2,1,"APPLICATIONS_LIST.USER")," "))}function Se(ze,et){if(1&ze&&(R.TgZ(0,"div"),R._uU(1),R.qZA()),2&ze){const ne=R.oxw().$implicit;R.xp6(1),R.hij(" ",ne.createdBy.slice(ne.createdBy.lastIndexOf("=")+1,ne.createdBy.length)," ")}}function Ne(ze,et){if(1&ze&&(R._uU(0),R.ALo(1,"userFullName")),2&ze){const ne=R.oxw().$implicit;R.hij(" ",R.lcZ(1,1,ne.user)," ")}}function Ce(ze,et){if(1&ze&&(R.TgZ(0,"td",29),R.YNc(1,Se,2,1,"div",33),R.YNc(2,Ne,2,3,"ng-template",null,34,R.W1O),R.qZA()),2&ze){const ne=et.$implicit,Ue=R.MAs(3);R.xp6(1),R.Q6J("ngIf",null===ne.user)("ngIfElse",Ue)}}function fe(ze,et){1&ze&&(R.TgZ(0,"th",30),R._uU(1),R.ALo(2,"translate"),R.qZA()),2&ze&&(R.xp6(1),R.Oqu(R.lcZ(2,1,"APPLICATIONS_LIST.CREATED_BY")))}function r(ze,et){if(1&ze&&(R.TgZ(0,"td",29),R._uU(1),R.qZA()),2&ze){const ne=et.$implicit;R.Q2q("data-cy","",ne.createdBy,"-createdBy"),R.xp6(1),R.hij(" ",ne.createdBy.slice(ne.createdBy.lastIndexOf("=")+1,ne.createdBy.length)," ")}}function u(ze,et){1&ze&&(R.TgZ(0,"th",28),R._uU(1),R.ALo(2,"translate"),R.qZA()),2&ze&&(R.xp6(1),R.hij(" ",R.lcZ(2,1,"APPLICATIONS_LIST.MODIFIED_BY")," "))}function _(ze,et){if(1&ze&&(R.TgZ(0,"td",29),R._uU(1),R.qZA()),2&ze){const ne=et.$implicit,Ue=R.oxw();R.xp6(1),R.Oqu(Ue.getFriendlyName(ne.modifiedBy))}}function E(ze,et){1&ze&&(R.TgZ(0,"th",30),R._uU(1),R.ALo(2,"translate"),R.qZA()),2&ze&&(R.xp6(1),R.Oqu(R.lcZ(2,1,"APPLICATIONS_LIST.MODIFIED_AT")))}function h(ze,et){if(1&ze&&(R.TgZ(0,"td",29),R._uU(1),R.ALo(2,"date"),R.qZA()),2&ze){const ne=et.$implicit;R.xp6(1),R.Oqu(R.xi3(2,1,ne.modifiedAt,"d.M.y"))}}function a(ze,et){1&ze&&(R.TgZ(0,"th",30),R._uU(1),R.ALo(2,"translate"),R.qZA()),2&ze&&(R.xp6(1),R.Oqu(R.lcZ(2,1,"APPLICATIONS_LIST.FEDINFO")))}function i(ze,et){if(1&ze&&(R.TgZ(0,"td",29),R._uU(1),R.qZA()),2&ze){const ne=et.$implicit;R.xp6(1),R.Oqu(ne.fedInfo)}}function t(ze,et){if(1&ze&&(R.TgZ(0,"th",30),R._uU(1),R.qZA()),2&ze){const ne=R.oxw().$implicit;R.xp6(1),R.Oqu(ne)}}function n(ze,et){if(1&ze&&(R.TgZ(0,"td",29),R._uU(1),R.qZA()),2&ze){const ne=et.$implicit,Ue=R.oxw().$implicit,He=R.oxw();R.xp6(1),R.hij(" ",He.getFedValue(ne.fedInfo,Ue)," ")}}function o(ze,et){1&ze&&(R.ynx(0,35),R.YNc(1,t,2,1,"th",9),R.YNc(2,n,2,1,"td",6),R.BQk()),2&ze&&R.s9C("matColumnDef",et.$implicit)}function s(ze,et){if(1&ze&&(R.TgZ(0,"th",30),R._uU(1),R.qZA()),2&ze){const ne=R.oxw().$implicit;R.xp6(1),R.Oqu(ne)}}function l(ze,et){if(1&ze&&(R.TgZ(0,"td",29),R._uU(1),R.qZA()),2&ze){const ne=et.$implicit,Ue=R.oxw().$implicit,He=R.oxw();R.xp6(1),R.hij(" ",He.getValue(ne.formData,Ue)," ")}}function d(ze,et){1&ze&&(R.ynx(0,35),R.YNc(1,s,2,1,"th",9),R.YNc(2,l,2,1,"td",6),R.BQk()),2&ze&&R.s9C("matColumnDef",et.$implicit)}function c(ze,et){1&ze&&R._UZ(0,"tr",36)}function S(ze,et){if(1&ze&&(R._UZ(0,"tr",37),R.ALo(1,"selectApplicationLink"),R.ALo(2,"selectApplicationLink")),2&ze){const ne=et.$implicit,Ue=R.oxw();R.ekj("cursor-pointer",!Ue.disableRouting),R.Q6J("perunWebAppsMiddleClickRouterLink",R.gM2(1,4,ne,Ue.disableRouting,Ue.group,Ue.member))("routerLink",R.gM2(2,9,ne,Ue.disableRouting,Ue.group,Ue.member))}}function J(ze,et){1&ze&&(R.TgZ(0,"perun-web-apps-alert",38),R._uU(1),R.ALo(2,"translate"),R.qZA()),2&ze&&(R.Q6J("alert_type","warn"),R.xp6(1),R.hij(" ",R.lcZ(2,2,"VO_DETAIL.APPLICATION.NO_APPLICATION_FOUND"),"\n"))}let ht=(()=>{class ze{constructor(ne,Ue,He,Pe,Re){this.authResolver=ne,this.tableConfigService=Ue,this.dynamicPaginatingService=He,this.attributesManagerService=Pe,this.dialog=Re,this.displayedColumns=[],this.fedColumns=[],this.disableRouting=!1,this.searchString="",this.dateTo=new Date,this.dateFrom=this.yearAgo(),this.fedAttrNames=[],this.refreshTable=!1,this.parsedColumns=[],this.pageSizeOptions=A.f7}ngAfterViewInit(){this.sort.sortChange.subscribe(()=>this.child.paginator.pageIndex=0),(0,m.T)(this.sort.sortChange,this.child.paginator.page).pipe((0,b.b)(()=>this.loadApplicationsPage())).subscribe()}ngOnInit(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(ne=>"id"!==ne)),this.dataSource=new M.Hy(this.dynamicPaginatingService,this.authResolver),this.dataSource.loadApplications(this.tableConfigService.getTablePageSize(this.tableId),0,"DESCENDING",this.getSortDataColumn(),this.searchString,this.includeGroupApps,this.states,this.dateToString(this.dateFrom),this.dateToString(this.dateTo),this.member?.userId??null,this.group?.id??null,this.getVoId()),this.dataSource.loading$.subscribe(ne=>{if(ne||!this.displayedColumns.includes("fedInfo"))return;this.displayedColumns=this.displayedColumns.filter(He=>!this.parsedColumns.includes(He)),this.parsedColumns=[];const Ue=this.dataSource.getData()[0];Ue&&this.parseColumns(Ue.formData)})}ngOnChanges(){this.refreshTable=!1,this.dataSource&&(this.child.paginator.pageIndex=0,this.loadApplicationsPage())}loadApplicationsPage(){this.dataSource.loadApplications(this.child.paginator.pageSize,this.child.paginator.pageIndex,"asc"===this.sort.direction?"ASCENDING":"DESCENDING",this.getSortDataColumn(),this.searchString,this.includeGroupApps,this.states,this.dateToString(this.dateFrom),this.dateToString(this.dateTo),this.member?.userId??null,this.group?.id??null,this.getVoId(),!0)}exportDisplayedData(ne){(0,A.O6)((0,A.Xn)(this.dataSource.getData(),this.displayedColumns,this.getExportDataForColumn.bind(this)),ne)}exportAllData(ne){const Ue="asc"===this.sort.direction?"ASCENDING":"DESCENDING",He=(0,A.kZ)();He.width="300px";const Pe=this.dialog.open(v.QQ,He);this.dataSource.getAllApplications(this.child.paginator.length,Ue,this.getSortDataColumn(),this.searchString,this.includeGroupApps,this.states,this.dateToString(this.dateFrom),this.dateToString(this.dateTo),this.member?.userId??null,this.group?.id??null,this.getVoId(),!0).subscribe(Re=>{Pe.close(),(0,A.O6)((0,A.Xn)(Re,this.displayedColumns,this.getExportDataForColumn.bind(this)),ne)})}getExportDataForColumn(ne,Ue){switch(Ue){case"id":return ne.id.toString();case"voId":return ne.vo.id.toString();case"voName":return ne.vo.name;case"groupId":return ne.group?.id.toString()??"";case"groupName":return ne.group?.name??"";case"type":return ne.type;case"fedInfo":return ne.fedInfo;case"formData":return this.stringify(ne.formData);case"state":return ne.state;case"extSourceName":return ne.extSourceName;case"extSourceType":return ne.extSourceType;case"user":return ne.user?(0,A.bD)(ne.user):"";case"createdBy":return ne.createdBy;case"createdAt":return ne.createdAt;case"modifiedBy":return ne.modifiedBy;case"modifiedAt":return ne.modifiedAt;default:return ne[Ue]}}getSortDataColumn(){if(!this.sort)return e.sY.DATE_CREATED;switch(this.sort.active){case"id":return e.sY.ID;case"createdAt":default:return e.sY.DATE_CREATED;case"type":return e.sY.TYPE;case"state":return e.sY.STATE;case"user":return e.sY.SUBMITTER;case"groupName":return e.sY.GROUP_NAME;case"modifiedBy":return e.sY.MODIFIED_BY}}getFriendlyName(ne){const Ue=ne.lastIndexOf("/CN=");if(-1!==Ue){const He=ne.slice(Ue+4,ne.length).replace("/unstructuredName="," ");return-1!==He.lastIndexOf("\\")?ne.slice(ne.lastIndexOf("=")+1,ne.length):He}return ne}yearAgo(){const ne=new Date;return ne.setDate(ne.getDate()-365),ne}dateToString(ne){return(0,D.p6)(ne,"yyyy-MM-dd","en-GB")}getVoId(){return this.vo?this.vo.id:this.group?this.group.voId:this.member?this.member.voId:void 0}stringify(ne){const Ue=Pe=>Object.entries(Pe).reduce((Re,[re,we])=>Re[re]instanceof Object?Re[re]=Ue(Re[re]):(null==we||"null"===we||0===we.length||(Re[re]=we),Re),{});let He=JSON.stringify(Ue(ne));return He=He.replace("{","["),He=He.replace("}","]"),He}getFormDataString(ne){return this.stringify(ne.formItem)}parseColumns(ne){ne.forEach(Ue=>{this.displayedColumns.includes(Ue.shortname)||this.displayedColumns.push(Ue.shortname),this.parsedColumns.includes(Ue.shortname)||this.parsedColumns.push(Ue.shortname)})}getValue(ne,Ue){const He=ne.filter(Pe=>Pe.shortname===Ue);return 0===He.length?"":He[0].value??He[0].prefilledValue}getFedValue(ne,Ue){const He=new RegExp(this.fedAttrNames.map(Re=>","+Re+":").join("|"));if(null===ne||0===ne.length)return"";let Pe=[];return Pe=ne.startsWith(Ue+":")?ne.split(Ue+":"):ne.split(","+Ue+":"),Pe.length<2?"":(Pe=Pe[1].split(He),Pe[0].endsWith(",")?Pe[0].slice(0,-1):Pe[0])}}return ze.\u0275fac=function(ne){return new(ne||ze)(R.Y36(M.x4),R.Y36(B.dB),R.Y36(M.ly),R.Y36(e.H8),R.Y36(w.uw))},ze.\u0275cmp=R.Xpm({type:ze,selectors:[["app-applications-dynamic-list"]],viewQuery:function(ne,Ue){if(1&ne&&(R.Gf(A.l9,7),R.Gf(C.YE,5)),2&ne){let He;R.iGM(He=R.CRH())&&(Ue.child=He.first),R.iGM(He=R.CRH())&&(Ue.sort=He.first)}},inputs:{displayedColumns:"displayedColumns",fedColumns:"fedColumns",tableId:"tableId",disableRouting:"disableRouting",searchString:"searchString",group:"group",member:"member",vo:"vo",includeGroupApps:"includeGroupApps",states:"states",dateTo:"dateTo",dateFrom:"dateFrom",fedAttrNames:"fedAttrNames",refreshTable:"refreshTable"},features:[R.TTD],decls:56,vars:15,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","tableId","exportDisplayedData","exportAllData"],["class","spinner-container",4,"ngIf"],["mat-table","","matSort","","matSortActive","createdAt","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","createdAt"],["matColumnDef","voId"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","voName"],["matColumnDef","groupId"],["matColumnDef","groupName"],["matColumnDef","type"],["matColumnDef","state"],["matColumnDef","extSourceName"],["matColumnDef","extSourceType"],["matColumnDef","user"],["matColumnDef","createdBy"],["matColumnDef","modifiedBy"],["matColumnDef","modifiedAt"],["matColumnDef","fedInfo"],[3,"matColumnDef",4,"ngFor","ngForOf"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],[3,"alert_type",4,"ngIf"],[1,"spinner-container"],[1,"ml-auto","mr-auto"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell",""],[3,"applicationType"],[3,"outerHTML"],[4,"ngIf","ngIfElse"],["name",""],[3,"matColumnDef"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],[3,"alert_type"]],template:function(ne,Ue){1&ne&&(R.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),R.NdJ("exportDisplayedData",function(Pe){return Ue.exportDisplayedData(Pe)})("exportAllData",function(Pe){return Ue.exportAllData(Pe)}),R.YNc(2,De,2,0,"div",2),R.ALo(3,"async"),R.TgZ(4,"table",3),R.ynx(5,4),R.YNc(6,he,3,3,"th",5),R.YNc(7,Ye,2,1,"td",6),R.BQk(),R.ynx(8,7),R.YNc(9,Be,3,3,"th",5),R.YNc(10,se,3,4,"td",6),R.BQk(),R.ynx(11,8),R.YNc(12,le,3,3,"th",9),R.YNc(13,N,2,1,"td",6),R.BQk(),R.ynx(14,10),R.YNc(15,k,3,3,"th",9),R.YNc(16,be,2,1,"td",6),R.BQk(),R.ynx(17,11),R.YNc(18,Z,3,3,"th",9),R.YNc(19,ce,2,1,"td",6),R.BQk(),R.ynx(20,12),R.YNc(21,xe,3,3,"th",9),R.YNc(22,ot,3,4,"td",6),R.BQk(),R.ynx(23,13),R.YNc(24,Fe,3,3,"th",5),R.YNc(25,ut,2,1,"td",6),R.BQk(),R.ynx(26,14),R.YNc(27,tt,3,3,"th",5),R.YNc(28,vt,3,3,"td",6),R.BQk(),R.ynx(29,15),R.YNc(30,X,3,3,"th",9),R.YNc(31,nt,2,1,"td",6),R.BQk(),R.ynx(32,16),R.YNc(33,Ae,3,3,"th",9),R.YNc(34,ye,2,1,"td",6),R.BQk(),R.ynx(35,17),R.YNc(36,_e,3,3,"th",5),R.YNc(37,Ce,4,2,"td",6),R.BQk(),R.ynx(38,18),R.YNc(39,fe,3,3,"th",9),R.YNc(40,r,2,2,"td",6),R.BQk(),R.ynx(41,19),R.YNc(42,u,3,3,"th",5),R.YNc(43,_,2,1,"td",6),R.BQk(),R.ynx(44,20),R.YNc(45,E,3,3,"th",9),R.YNc(46,h,3,4,"td",6),R.BQk(),R.ynx(47,21),R.YNc(48,a,3,3,"th",9),R.YNc(49,i,2,1,"td",6),R.BQk(),R.YNc(50,o,3,1,"ng-container",22),R.YNc(51,d,3,1,"ng-container",22),R.YNc(52,c,1,0,"tr",23),R.YNc(53,S,3,14,"tr",24),R.qZA()()(),R.YNc(54,J,3,4,"perun-web-apps-alert",25),R.ALo(55,"async")),2&ne&&(R.Q6J("hidden",0===Ue.dataSource.allObjectCount),R.xp6(1),R.Q6J("dataLength",Ue.dataSource.allObjectCount)("pageSizeOptions",Ue.pageSizeOptions)("tableId",Ue.tableId),R.xp6(1),R.Q6J("ngIf",R.lcZ(3,11,Ue.dataSource.loading$)),R.xp6(2),R.Q6J("dataSource",Ue.dataSource),R.xp6(46),R.Q6J("ngForOf",Ue.fedColumns),R.xp6(1),R.Q6J("ngForOf",Ue.parsedColumns),R.xp6(1),R.Q6J("matHeaderRowDef",Ue.displayedColumns),R.xp6(1),R.Q6J("matRowDefColumns",Ue.displayedColumns),R.xp6(1),R.Q6J("ngIf",0===Ue.dataSource.allObjectCount&&!1===R.lcZ(55,13,Ue.dataSource.loading$)))},dependencies:[D.sg,D.O5,L.rH,C.YE,C.nU,O.BZ,O.fO,O.as,O.w1,O.Dz,O.nj,O.ge,O.ev,O.XQ,O.Gk,q.Ou,te.w,z.Y,ie.Q,Te.l,V,D.Ov,D.uU,ee.X$,Q.h,Ee.d,ge.R,ve],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),ze})()},45256:(Xe,ue,p)=>{"use strict";p.d(ue,{k:()=>q});var e=p(95017),A=p(61744),C=p(64080),M=p(65412),m=p(81591),b=p(9244),D=p(86511),v=p(77579),R=p(56451),B=p(39646),w=p(63900),L=p(68675),O=p(94650);let q=(()=>{class te{constructor(ie,Te,pe,Le,T,W,F,V,ee,Q){this.data=ie,this.dialogRef=Te,this.membersManagerService=pe,this.voService=Le,this.registrarManager=T,this.groupService=W,this.store=F,this.guiAuthResolver=V,this.requestService=ee,this.addMemberService=Q,this.loading=!1,this.searcher=new v.x,this.members=this.searcher.pipe((0,w.w)(Ee=>(0,R.T)((0,B.of)(null),this.voService.getCompleteCandidatesForGroup(this.data.group.id,this.attrNames,Ee))),(0,L.O)(void 0)),this.failed=[],this.selection=new e.Ov(!0,[]),this.attrNames=[C.r.USER_DEF_ORGANIZATION,C.r.USER_DEF_PREFERRED_MAIL].concat(this.store.getLoginAttributeNames()),this.languages=this.store.getProperty("supported_languages"),this.addMemberService.setDialogRef(this.dialogRef),this.addMemberService.setType("group")}ngOnInit(){this.inviteAuth=this.guiAuthResolver.isAuthorized("group-sendInvitation_Vo_Group_User_policy",[this.data.group]),this.selection.changed.subscribe(ie=>{this.addAuth=!!ie.source.selected.every(Te=>Te.member)||this.guiAuthResolver.isAuthorized("createMember_Vo_User_List_policy",[this.data.group])&&this.guiAuthResolver.isAuthorized("createMember_Vo_Candidate_List_policy",[this.data.group])})}add(){if(this.loading=!0,0===this.selection.selected.length)return void(0!==this.failed.length?(this.failed=this.failed.filter(Te=>null!==Te),this.selection.clear(),this.loading=!1):this.addMemberService.success("DIALOGS.ADD_MEMBERS.SUCCESS_ADD"));this.requestService.dontHandleErrorForNext();const ie=this.selection.selected.pop();ie.member?this.addMember(ie):ie.richUser?this.addUser(ie):ie.candidate&&this.addCandidate(ie)}invite(ie){if(this.loading=!0,0===this.selection.selected.length)return void(0!==this.failed.length?(this.failed=this.failed.filter(pe=>null!==pe),this.selection.clear(),this.loading=!1):this.addMemberService.success("DIALOGS.ADD_MEMBERS.SUCCESS_INVITE"));this.requestService.dontHandleErrorForNext();const Te=this.selection.selected.pop();Te.richUser?this.inviteUser(Te,ie):this.inviteCandidate(Te,ie)}cancel(ie){this.dialogRef.close(ie)}addCandidate(ie){this.membersManagerService.createMemberForCandidate({vo:this.data.group.voId,candidate:this.addMemberService.createCandidate(ie.candidate),groups:[this.addMemberService.getFormattedGroup(this.data.group)]}).subscribe({next:Te=>{this.membersManagerService.validateMemberAsync(Te.id).subscribe(),this.add()},error:Te=>{this.failed.push(this.addMemberService.getCandidateWithError(ie,Te)),this.add()}})}addMember(ie){this.groupService.addMembers(this.data.group.id,[ie.member.id]).subscribe({next:()=>{this.add()},error:Te=>{this.failed.push(this.addMemberService.getCandidateWithError(ie,Te)),this.add()}})}addUser(ie){this.membersManagerService.createMemberForUser({vo:this.data.group.voId,user:ie.richUser.id,groups:[this.addMemberService.getFormattedGroup(this.data.group)]}).subscribe({next:Te=>{this.membersManagerService.validateMemberAsync(Te.id).subscribe(),this.add()},error:Te=>{this.failed.push(this.addMemberService.getCandidateWithError(ie,Te)),this.add()}})}inviteCandidate(ie,Te){this.registrarManager.sendInvitationForGroup((0,b.Jc)(ie.candidate),Te,this.data.group.voId,this.data.group.id).subscribe({next:()=>{this.invite(Te)},error:pe=>{this.failed.push(this.addMemberService.getCandidateWithError(ie,pe)),this.invite(Te)}})}inviteUser(ie,Te){this.registrarManager.sendInvitationGroupToExistingUser(ie.richUser.id,this.data.group.voId,this.data.group.id).subscribe({next:()=>{this.invite(Te)},error:pe=>{this.failed.push(this.addMemberService.getCandidateWithError(ie,pe)),this.invite(Te)}})}}return te.\u0275fac=function(ie){return new(ie||te)(O.Y36(M.WI),O.Y36(M.so),O.Y36(A.uq),O.Y36(A.YF),O.Y36(A.tk),O.Y36(A.ff),O.Y36(m.d6),O.Y36(m.x4),O.Y36(m.F5),O.Y36(D.A))},te.\u0275cmp=O.Xpm({type:te,selectors:[["app-group-add-member-dialog"]],decls:2,vars:11,consts:[[3,"loading","languages","manualAddingBlocked","addAuth","inviteAuth","failed","members","selection","theme","add","cancel","invite","search"]],template:function(ie,Te){1&ie&&(O.TgZ(0,"app-add-member-dialog",0),O.NdJ("add",function(){return Te.add()})("cancel",function(Le){return Te.cancel(Le)})("invite",function(Le){return Te.invite(Le)})("search",function(Le){return Te.searcher.next(Le)}),O.ALo(1,"async"),O.qZA()),2&ie&&O.Q6J("loading",Te.loading)("languages",Te.languages)("manualAddingBlocked",Te.data.manualAddingBlocked)("addAuth",Te.addAuth)("inviteAuth",Te.inviteAuth)("failed",Te.failed)("members",O.lcZ(1,9,Te.members))("selection",Te.selection)("theme","group-theme")}}),te})()},51525:(Xe,ue,p)=>{"use strict";p.d(ue,{H:()=>q});var e=p(65412),A=p(61744),C=p(81591),M=p(95017),m=p(9244),b=p(64080),D=p(86511),v=p(77579),R=p(56451),B=p(39646),w=p(63900),L=p(68675),O=p(94650);let q=(()=>{class te{constructor(ie,Te,pe,Le,T,W,F,V){this.data=ie,this.dialogRef=Te,this.membersManagerService=pe,this.voService=Le,this.registrarManager=T,this.store=W,this.requestService=F,this.addMemberService=V,this.loading=!1,this.searcher=new v.x,this.members=this.searcher.pipe((0,w.w)(ee=>(0,R.T)((0,B.of)(null),this.voService.getCompleteCandidatesForVo(this.data.voId,this.attrNames,ee))),(0,L.O)(void 0)),this.failed=[],this.selection=new M.Ov(!0,[]),this.attrNames=[b.r.USER_DEF_ORGANIZATION,b.r.USER_DEF_PREFERRED_MAIL].concat(this.store.getLoginAttributeNames()),this.languages=this.store.getProperty("supported_languages"),this.addMemberService.setDialogRef(this.dialogRef),this.addMemberService.setType("vo")}add(){if(this.loading=!0,0===this.selection.selected.length)return void(0!==this.failed.length?(this.failed=this.failed.filter(Te=>null!==Te),this.selection.clear(),this.loading=!1):this.addMemberService.success("DIALOGS.ADD_MEMBERS.SUCCESS_ADD"));this.requestService.dontHandleErrorForNext();const ie=this.selection.selected.pop();ie.richUser?this.addUser(ie):this.addCandidate(ie)}invite(ie){if(this.loading=!0,0===this.selection.selected.length)return void(0!==this.failed.length?(this.failed=this.failed.filter(pe=>null!==pe),this.selection.clear(),this.loading=!1):this.addMemberService.success("DIALOGS.ADD_MEMBERS.SUCCESS_INVITE"));this.requestService.dontHandleErrorForNext();const Te=this.selection.selected.pop();Te.richUser?this.inviteUser(Te,ie):this.inviteCandidate(Te,ie)}cancel(ie){this.dialogRef.close(ie)}addCandidate(ie){this.membersManagerService.createMemberForCandidate({vo:this.data.voId,candidate:this.addMemberService.createCandidate(ie.candidate)}).subscribe({next:Te=>{this.membersManagerService.validateMemberAsync(Te.id).subscribe(),this.add()},error:Te=>{this.failed.push(this.addMemberService.getCandidateWithError(ie,Te)),this.add()}})}addUser(ie){this.membersManagerService.createMemberForUser({vo:this.data.voId,user:ie.richUser.id}).subscribe({next:Te=>{this.membersManagerService.validateMemberAsync(Te.id).subscribe(),this.add()},error:Te=>{this.failed.push(this.addMemberService.getCandidateWithError(ie,Te)),this.add()}})}inviteCandidate(ie,Te){this.registrarManager.sendInvitation((0,m.Jc)(ie.candidate),Te,this.data.voId).subscribe({next:()=>{this.invite(Te)},error:pe=>{this.failed.push(this.addMemberService.getCandidateWithError(ie,pe)),this.invite(Te)}})}inviteUser(ie,Te){this.registrarManager.sendInvitationToExistingUser(ie.richUser.id,this.data.voId).subscribe({next:()=>{this.invite(Te)},error:pe=>{this.failed.push(this.addMemberService.getCandidateWithError(ie,pe)),this.invite(Te)}})}}return te.\u0275fac=function(ie){return new(ie||te)(O.Y36(e.WI),O.Y36(e.so),O.Y36(A.uq),O.Y36(A.YF),O.Y36(A.tk),O.Y36(C.d6),O.Y36(C.F5),O.Y36(D.A))},te.\u0275cmp=O.Xpm({type:te,selectors:[["app-vo-add-member-dialog"]],decls:2,vars:8,consts:[[3,"loading","languages","failed","members","selection","theme","add","cancel","invite","search"]],template:function(ie,Te){1&ie&&(O.TgZ(0,"app-add-member-dialog",0),O.NdJ("add",function(){return Te.add()})("cancel",function(Le){return Te.cancel(Le)})("invite",function(Le){return Te.invite(Le)})("search",function(Le){return Te.searcher.next(Le)}),O.ALo(1,"async"),O.qZA()),2&ie&&O.Q6J("loading",Te.loading)("languages",Te.languages)("failed",Te.failed)("members",O.lcZ(1,6,Te.members))("selection",Te.selection)("theme","vo-theme")}}),te})()},55857:(Xe,ue,p)=>{"use strict";p.d(ue,{W:()=>Q});var e=p(61744),A=p(10036),C=p(81591),M=p(24006),m=p(36895),b=p(9244),D=p(23325),v=p(94650),R=p(65412),B=p(3238),w=p(59549),L=p(4859),O=p(84385),q=p(51572),te=p(10266),z=p(96214),ie=p(39798),Te=p(64901),pe=p(99168),Le=p(89383);function T(Ee,ge){if(1&Ee){const ve=v.EpF();v.TgZ(0,"button",17),v.NdJ("click",function(){v.CHM(ve);const he=v.oxw();return v.KtG(he.showDetails(!0))}),v._uU(1),v.ALo(2,"translate"),v.qZA()}2&Ee&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_ALL_DETAILS")," "))}function W(Ee,ge){if(1&Ee){const ve=v.EpF();v.TgZ(0,"button",17),v.NdJ("click",function(){v.CHM(ve);const he=v.oxw();return v.KtG(he.showDetails(!1))}),v._uU(1),v.ALo(2,"translate"),v.qZA()}2&Ee&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_LESS_DETAILS")," "))}function F(Ee,ge){if(1&Ee){const ve=v.EpF();v.TgZ(0,"button",18),v.NdJ("click",function(){v.CHM(ve);const he=v.oxw();return v.KtG(he.setColumns())}),v._uU(1),v.ALo(2,"translate"),v.qZA()}if(2&Ee){const ve=v.oxw();v.Q6J("disabled",ve.showAllDetails),v.xp6(1),v.hij(" ",v.lcZ(2,2,"VO_DETAIL.APPLICATION.SET_COLUMN_SETTINGS")," ")}}function V(Ee,ge){1&Ee&&v._UZ(0,"mat-spinner",19)}function ee(Ee,ge){if(1&Ee&&(v.TgZ(0,"div"),v._UZ(1,"app-applications-dynamic-list",20),v.qZA()),2&Ee){const ve=v.oxw();v.xp6(1),v.Q6J("tableId",ve.showAllDetails?ve.detailTableId:ve.tableId)("searchString",ve.filterValue)("displayedColumns",ve.currentColumns)("fedColumns",ve.configuredFedColumns)("fedAttrNames",ve.fedAttrNames)("states",ve.currentStates)("dateFrom",ve.startDate.value)("dateTo",ve.endDate.value)("refreshTable",ve.refresh)("group",ve.group)}}let Q=(()=>{class Ee{constructor(ve,De,he,Ye,Be){this.registrarManager=ve,this.guiAuthResolver=De,this.entityStorageService=he,this.attributeManager=Ye,this.dialog=Be,this.state="pending",this.currentStates=["NEW","VERIFIED"],this.simpleColumns=["createdAt","type","state","createdBy","modifiedBy"],this.detailedColumns=["createdAt","type","state","extSourceName","extSourceType","user","createdBy","modifiedBy","modifiedAt","fedInfo"],this.filterValue="",this.showAllDetails=!1,this.detailTableId=A.Af,this.tableId=A.gB,this.refresh=!1,this.fedAttrNames=[],this.currentColumns=[],this.configuredColumns=[],this.configuredFedColumns=[],this.columnsAuth=!1,this.loading=!1}ngOnInit(){this.group=this.entityStorageService.getEntity(),this.startDate=new M.p4((0,m.p6)(this.yearAgo(),"yyyy-MM-dd","en-GB")),this.endDate=new M.p4((0,m.p6)(new Date,"yyyy-MM-dd","en-GB")),this.attributeManager.getIdpAttributeDefinitions().subscribe(ve=>{ve.forEach(De=>{this.fedAttrNames.includes(De.friendlyName)||this.fedAttrNames.push(De.friendlyName)})}),this.loadViewConfiguration()}select(){switch(this.state){case"approved":this.currentStates=["APPROVED"];break;case"rejected":this.currentStates=["REJECTED"];break;case"wfmv":this.currentStates=["NEW"];break;case"submited":this.currentStates=["VERIFIED"];break;case"pending":this.currentStates=["NEW","VERIFIED"];break;case"all":this.currentStates=null}}yearAgo(){const ve=new Date;return ve.setDate(ve.getDate()-365),ve}applyFilter(ve){this.filterValue=ve}showDetails(ve){this.loading=!0,this.showAllDetails=ve,this.loadViewConfiguration()}refreshColumns(){return["id"].concat(this.showAllDetails?this.detailedColumns:this.configuredColumns.length>0?this.configuredColumns:this.simpleColumns)}loadViewConfiguration(){this.attributeManager.getGroupAttributeByName(this.group.id,"urn:perun:group:attribute-def:def:applicationViewPreferences").subscribe(ve=>{null!=ve?.value&&ve?.value.length>0?(this.configuredColumns=ve.value,this.configuredFedColumns=this.configuredColumns.filter(De=>this.fedAttrNames.includes(De))):(this.configuredColumns=[],this.configuredFedColumns=[]),this.columnsAuth=ve.writable,this.currentColumns=this.refreshColumns(),this.loading=!1})}setColumns(){const ve=(0,b.kZ)();ve.width="650px",ve.data={columns:[],groupId:this.group.id,theme:"group-theme"},this.dialog.open(D.a,ve).afterClosed().subscribe(he=>{he&&this.loadViewConfiguration()})}}return Ee.id="GroupApplicationsComponent",Ee.\u0275fac=function(ve){return new(ve||Ee)(v.Y36(e.tk),v.Y36(C.x4),v.Y36(C.fb),v.Y36(e.H8),v.Y36(R.uw))},Ee.\u0275cmp=v.Xpm({type:Ee,selectors:[["app-group-applications"]],hostVars:2,hostBindings:function(ve,De){2&ve&&v.ekj("router-component",De.true)},decls:37,vars:37,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2","mat-stroked-button","",3,"click",4,"ngIf"],[1,"w-25","mr-2"],["disableOptionCentering","",3,"value","selectionChange","valueChange"],["value","all"],["value","pending"],["value","wfmv"],["value","submited"],["value","approved"],["value","rejected"],[3,"placeholder","filter"],[3,"endDate","startDate","datePicker"],["matTooltipPosition","above",3,"matTooltipDisabled","matTooltip"],["mat-stroked-button","",3,"disabled","click",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],["mat-stroked-button","",1,"mr-2",3,"click"],["mat-stroked-button","",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"tableId","searchString","displayedColumns","fedColumns","fedAttrNames","states","dateFrom","dateTo","refreshTable","group"]],template:function(ve,De){1&ve&&(v.TgZ(0,"h1",0),v._uU(1),v.ALo(2,"translate"),v.qZA(),v.TgZ(3,"div")(4,"perun-web-apps-refresh-button",1),v.NdJ("refresh",function(){return De.refresh=!De.refresh}),v.qZA(),v.YNc(5,T,3,3,"button",2),v.YNc(6,W,3,3,"button",2),v.TgZ(7,"mat-form-field",3)(8,"mat-label"),v._uU(9),v.ALo(10,"translate"),v.qZA(),v.TgZ(11,"mat-select",4),v.NdJ("selectionChange",function(){return De.select()})("valueChange",function(Ye){return De.state=Ye}),v.TgZ(12,"mat-option",5),v._uU(13),v.ALo(14,"translate"),v.qZA(),v.TgZ(15,"mat-option",6),v._uU(16),v.ALo(17,"translate"),v.qZA(),v.TgZ(18,"mat-option",7),v._uU(19),v.ALo(20,"translate"),v.qZA(),v.TgZ(21,"mat-option",8),v._uU(22),v.ALo(23,"translate"),v.qZA(),v.TgZ(24,"mat-option",9),v._uU(25),v.ALo(26,"translate"),v.qZA(),v.TgZ(27,"mat-option",10),v._uU(28),v.ALo(29,"translate"),v.qZA()()(),v.TgZ(30,"perun-web-apps-debounce-filter",11),v.NdJ("filter",function(Ye){return De.applyFilter(Ye)}),v.qZA(),v.TgZ(31,"perun-web-apps-date-range",12),v.NdJ("datePicker",function(){return De.select()}),v.qZA(),v.TgZ(32,"span",13),v.ALo(33,"translate"),v.YNc(34,F,3,4,"button",14),v.qZA()(),v.YNc(35,V,1,0,"mat-spinner",15),v.YNc(36,ee,2,10,"div",16)),2&ve&&(v.xp6(1),v.Oqu(v.lcZ(2,19,"VO_DETAIL.APPLICATION.TITLE")),v.xp6(4),v.Q6J("ngIf",!De.showAllDetails),v.xp6(1),v.Q6J("ngIf",De.showAllDetails),v.xp6(3),v.Oqu(v.lcZ(10,21,"APPLICATIONS_LIST.STATE")),v.xp6(2),v.Q6J("value",De.state),v.xp6(2),v.Oqu(v.lcZ(14,23,"VO_DETAIL.APPLICATION.SELECTION_ALL")),v.xp6(3),v.Oqu(v.lcZ(17,25,"VO_DETAIL.APPLICATION.SELECTION_PENDING")),v.xp6(3),v.Oqu(v.lcZ(20,27,"VO_DETAIL.APPLICATION.SELECTION_WFMV")),v.xp6(3),v.Oqu(v.lcZ(23,29,"VO_DETAIL.APPLICATION.SELECTION_SUBMITTED")),v.xp6(3),v.Oqu(v.lcZ(26,31,"VO_DETAIL.APPLICATION.SELECTION_APPROVED")),v.xp6(3),v.Oqu(v.lcZ(29,33,"VO_DETAIL.APPLICATION.SELECTION_REJECTED")),v.xp6(2),v.Q6J("placeholder","VO_DETAIL.APPLICATION.FILTER"),v.xp6(1),v.Q6J("endDate",De.endDate)("startDate",De.startDate),v.xp6(1),v.s9C("matTooltip",v.lcZ(33,35,"VO_DETAIL.APPLICATION.COLUMNS_TOOLTIP")),v.Q6J("matTooltipDisabled",!De.showAllDetails),v.xp6(2),v.Q6J("ngIf",De.columnsAuth),v.xp6(1),v.Q6J("ngIf",De.loading),v.xp6(1),v.Q6J("ngIf",!De.loading))},dependencies:[m.O5,B.ey,w.KE,w.hX,L.lW,O.gD,q.Ou,te.gM,z.t,ie.S,Te.P,pe.S,Le.X$]}),Ee})()},13600:(Xe,ue,p)=>{"use strict";p.d(ue,{y:()=>nt});var e=p(95017),A=p(81591),C=p(64080),M=p(53455),m=p(61744),b=p(10036),D=p(9244),v=p(74414),R=p(24006),B=p(45256),w=p(94742),L=p(65412),O=p(94650),q=p(36895),te=p(4859),z=p(51572),ie=p(10266),Te=p(71948),pe=p(98380),Le=p(25788),T=p(7434),W=p(89383);function F(Ae,ye){1&Ae&&O._UZ(0,"mat-spinner",6)}const V=function(){return["select","id","name","description"]};function ee(Ae,ye){if(1&Ae){const _e=O.EpF();O.TgZ(0,"div",7)(1,"mat-radio-group",8),O.NdJ("ngModelChange",function(Ne){O.CHM(_e);const Ce=O.oxw();return O.KtG(Ce.copyType=Ne)}),O.TgZ(2,"span",9),O.ALo(3,"translate"),O.TgZ(4,"mat-radio-button",10),O._uU(5),O.ALo(6,"translate"),O.qZA()(),O.TgZ(7,"mat-radio-button",11),O._uU(8),O.ALo(9,"translate"),O.qZA()(),O.TgZ(10,"perun-web-apps-alert",12),O._uU(11),O.ALo(12,"translate"),O.qZA(),O.TgZ(13,"h5",13),O._uU(14),O.ALo(15,"translate"),O.qZA(),O.TgZ(16,"perun-web-apps-immediate-filter",14),O.NdJ("filter",function(Ne){O.CHM(_e);const Ce=O.oxw();return O.KtG(Ce.applyFilter(Ne))}),O.qZA(),O._UZ(17,"perun-web-apps-groups-list",15),O.qZA()}if(2&Ae){const _e=O.oxw();O.xp6(1),O.Q6J("ngModel",_e.copyType),O.xp6(1),O.s9C("matTooltip",O.lcZ(3,15,"DIALOGS.COPY_MEMBERS.DISABLED_COPY_SELECTION")),O.Q6J("matTooltipDisabled",_e.data.members.length>0),O.xp6(2),O.Q6J("disabled",0===_e.data.members.length),O.xp6(1),O.hij(" ",O.lcZ(6,17,"DIALOGS.COPY_MEMBERS.COPY_SELECTION")," "),O.xp6(3),O.hij(" ",O.lcZ(9,19,"DIALOGS.COPY_MEMBERS.COPY_ALL")," "),O.xp6(3),O.hij(" ",O.lcZ(12,21,"DIALOGS.COPY_MEMBERS.ATTRIBUTES_WARN")," "),O.xp6(3),O.Oqu(O.lcZ(15,23,"DIALOGS.COPY_MEMBERS.SELECT_GROUPS")),O.xp6(2),O.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),O.xp6(1),O.Q6J("groups",_e.assignableGroups)("selection",_e.selection)("disableRouting",!0)("displayedColumns",O.DdM(25,V))("filter",_e.filterValue)("tableId",_e.tableId)}}let Q=(()=>{class Ae{constructor(_e,Se,Ne,Ce,fe,r){this.dialogRef=_e,this.data=Se,this.groupsService=Ne,this.guiAuthResolver=Ce,this.translate=fe,this.notificator=r,this.loading=!1,this.copyType="all",this.filterValue="",this.tableId=b.rc,this.assignableGroups=[],this.selection=new e.Ov(!0,[]),this.groupAttrNames=[C.r.GROUP_SYNC_ENABLED,C.r.GROUP_BLOCK_MANUAL_MEMBER_ADDING]}ngOnInit(){this.loading=!0,this.data.members.length>0&&(this.copyType="selection"),this.groupsService.getAllRichGroupsWithAttributesByNames(this.data.voId,this.groupAttrNames).subscribe(_e=>{this.assignableGroups=this.filterAssignableGroups(_e),this.loading=!1})}onCancel(){this.dialogRef.close()}onSubmit(){this.loading=!0;const _e="selection"===this.copyType?this.data.members.map(Se=>Se.id):[];this.groupsService.copyMembers(this.data.groupId,this.selection.selected.map(Se=>Se.id),_e).subscribe({next:()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.COPY_MEMBERS.SUCCESS")),this.dialogRef.close(!0)},error:()=>{this.notificator.showError(this.translate.instant("DIALOGS.COPY_MEMBERS.ERROR")),this.loading=!1}})}applyFilter(_e){this.filterValue=_e}filterAssignableGroups(_e){const Se=[];for(const Ne of _e)"members"!==Ne.name&&Ne.id!==this.data.groupId&&!(0,D.bx)(Ne)&&!(0,D.jh)(Ne.attributes,C.r.GROUP_BLOCK_MANUAL_MEMBER_ADDING)&&this.guiAuthResolver.isAuthorized("dest-copyMembers_Group_List_List_boolean_policy",[Ne])&&Se.push(Ne);return Se}}return Ae.\u0275fac=function(_e){return new(_e||Ae)(O.Y36(L.so),O.Y36(L.WI),O.Y36(m.ff),O.Y36(A.x4),O.Y36(A.Te),O.Y36(A.V6))},Ae.\u0275cmp=O.Xpm({type:Ae,selectors:[["app-copy-members-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],[1,"flex-container",3,"ngModel","ngModelChange"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["value","selection",3,"disabled"],["value","all"],["alert_type","warn",1,"mt-4"],[1,"mt-4"],[3,"placeholder","filter"],[3,"groups","selection","disableRouting","displayedColumns","filter","tableId"]],template:function(_e,Se){1&_e&&(O.TgZ(0,"div")(1,"h1",0),O._uU(2),O.ALo(3,"translate"),O.qZA(),O.YNc(4,F,1,0,"mat-spinner",1),O.YNc(5,ee,18,26,"div",2),O.TgZ(6,"div",3)(7,"button",4),O.NdJ("click",function(){return Se.onCancel()}),O._uU(8),O.ALo(9,"translate"),O.qZA(),O.TgZ(10,"button",5),O.NdJ("click",function(){return Se.onSubmit()}),O._uU(11),O.ALo(12,"translate"),O.qZA()()()),2&_e&&(O.Tol(Se.data.theme),O.xp6(2),O.Oqu(O.lcZ(3,9,"DIALOGS.COPY_MEMBERS.TITLE")),O.xp6(2),O.Q6J("ngIf",Se.loading),O.xp6(1),O.Q6J("ngIf",!Se.loading),O.xp6(3),O.hij(" ",O.lcZ(9,11,"DIALOGS.COPY_MEMBERS.CANCEL")," "),O.xp6(2),O.Q6J("disabled",Se.loading||Se.selection.isEmpty()),O.xp6(1),O.hij(" ",O.lcZ(12,13,"DIALOGS.COPY_MEMBERS.COPY")," "))},dependencies:[q.O5,R.JJ,R.On,te.lW,L.uh,L.xY,L.H8,z.Ou,ie.gM,Te.VQ,Te.U0,pe.w,Le.W,T.L,W.X$],styles:[".flex-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),Ae})();var Ee=p(3238),ge=p(59549),ve=p(84385),De=p(28255),he=p(96214),Ye=p(64901),Be=p(4811),se=p(20551);let le=(()=>{class Ae{transform(_e,Se){return!!("members"===_e.name||(0,D.bx)(_e)||"add"===Se&&(0,D.jh)(_e.attributes,C.r.GROUP_BLOCK_MANUAL_MEMBER_ADDING))}}return Ae.\u0275fac=function(_e){return new(_e||Ae)},Ae.\u0275pipe=O.Yjl({name:"groupMembersActionButtonDisabled",type:Ae,pure:!0}),Ae})(),N=(()=>{class Ae{transform(_e,Se){return"members"===_e.name?"GROUP_DETAIL.MEMBERS.BUTTON_DISABLED_MEMBERS_GROUP":(0,D.bx)(_e)?"GROUP_DETAIL.MEMBERS.SYNCHRONIZED":"add"===Se&&(0,D.jh)(_e.attributes,C.r.GROUP_BLOCK_MANUAL_MEMBER_ADDING)?"GROUP_DETAIL.MEMBERS.ADD_MEMBER_DISABLED":""}}return Ae.\u0275fac=function(_e){return new(_e||Ae)},Ae.\u0275pipe=O.Yjl({name:"groupMembersActionButtonDisabledTooltip",type:Ae,pure:!0}),Ae})();function k(Ae,ye){1&Ae&&(O.TgZ(0,"perun-web-apps-alert",17),O._uU(1),O.ALo(2,"translate"),O.qZA()),2&Ae&&(O.xp6(1),O.hij(" ",O.lcZ(2,1,"GROUP_DETAIL.MEMBERS.ACTIONS_DISABLED"),"\n"))}function be(Ae,ye){if(1&Ae){const _e=O.EpF();O.TgZ(0,"button",18),O.NdJ("click",function(){O.CHM(_e);const Ne=O.oxw();return O.KtG(Ne.onAddMember())}),O.ALo(1,"groupMembersActionButtonDisabled"),O._uU(2),O.ALo(3,"translate"),O.qZA()}if(2&Ae){const _e=O.oxw();O.Q6J("disabled",O.xi3(1,2,_e.group,"add")),O.xp6(2),O.hij(" ",O.lcZ(3,5,"GROUP_DETAIL.MEMBERS.ADD_MEMBER")," ")}}function Z(Ae,ye){if(1&Ae&&(O.TgZ(0,"button",19),O.ALo(1,"groupMembersActionButtonDisabled"),O._uU(2),O.ALo(3,"translate"),O.qZA()),2&Ae){const _e=O.oxw(),Se=O.MAs(17);O.Q6J("disabled",O.lcZ(1,3,_e.group))("matMenuTriggerFor",Se),O.xp6(2),O.hij(" ",O.lcZ(3,5,"GROUP_DETAIL.MEMBERS.INVITE")," ")}}function ce(Ae,ye){if(1&Ae){const _e=O.EpF();O.TgZ(0,"button",20),O.NdJ("click",function(){O.CHM(_e);const Ne=O.oxw();return O.KtG(Ne.onInviteMember())}),O.ALo(1,"groupMembersActionButtonDisabled"),O._uU(2),O.ALo(3,"translate"),O.qZA()}if(2&Ae){const _e=O.oxw();O.Q6J("disabled",O.lcZ(1,2,_e.group)),O.xp6(2),O.hij(" ",O.lcZ(3,4,"GROUP_DETAIL.MEMBERS.INVITE_ONE")," ")}}function xe(Ae,ye){if(1&Ae){const _e=O.EpF();O.TgZ(0,"button",20),O.NdJ("click",function(){O.CHM(_e);const Ne=O.oxw();return O.KtG(Ne.onBulkInvite())}),O.ALo(1,"groupMembersActionButtonDisabled"),O._uU(2),O.ALo(3,"translate"),O.qZA()}if(2&Ae){const _e=O.oxw();O.Q6J("disabled",O.lcZ(1,2,_e.group)),O.xp6(2),O.hij(" ",O.lcZ(3,4,"GROUP_DETAIL.MEMBERS.INVITE_BULK")," ")}}function ot(Ae,ye){if(1&Ae){const _e=O.EpF();O.TgZ(0,"button",21),O.NdJ("click",function(){O.CHM(_e);const Ne=O.oxw();return O.KtG(Ne.onCopyMembers())}),O._uU(1),O.ALo(2,"translate"),O.qZA()}if(2&Ae){const _e=O.oxw();O.Q6J("disabled",_e.copyDisabled),O.xp6(1),O.hij(" ",O.lcZ(2,2,"GROUP_DETAIL.MEMBERS.COPY_MEMBERS")," ")}}function Fe(Ae,ye){if(1&Ae){const _e=O.EpF();O.TgZ(0,"button",22),O.NdJ("click",function(){O.CHM(_e);const Ne=O.oxw();return O.KtG(Ne.onRemoveMembers())}),O.ALo(1,"groupMembersActionButtonDisabled"),O._uU(2),O.ALo(3,"translate"),O.qZA()}if(2&Ae){const _e=O.oxw();O.Q6J("disabled",_e.selection.isEmpty()||O.lcZ(1,2,_e.group)),O.xp6(2),O.hij(" ",O.lcZ(3,4,"GROUP_DETAIL.MEMBERS.REMOVE_MEMBERS")," ")}}function ut(Ae,ye){if(1&Ae&&(O.TgZ(0,"mat-option",23),O._uU(1),O.ALo(2,"memberStatus"),O.qZA()),2&Ae){const _e=ye.$implicit;O.Q6J("value",_e),O.xp6(1),O.Oqu(O.lcZ(2,2,_e))}}function tt(Ae,ye){if(1&Ae&&(O.TgZ(0,"mat-option",23),O._uU(1),O.ALo(2,"memberStatus"),O.qZA()),2&Ae){const _e=ye.$implicit;O.Q6J("value",_e),O.xp6(1),O.Oqu(O.lcZ(2,2,_e))}}function vt(Ae,ye){1&Ae&&O._UZ(0,"mat-spinner",24)}function X(Ae,ye){if(1&Ae&&O._UZ(0,"perun-web-apps-members-dynamic-list",25),2&Ae){const _e=O.oxw();O.Q6J("attrNames",_e.memberAttrNames)("groupId",_e.group.id)("tableId",_e.tableId)("displayedColumns",_e.displayedColumns)("searchString",_e.searchString)("updateTable",_e.updateTable)("selectedGroupStatuses",_e.selectedGroupStatuses)("selectedStatuses",_e.selectedStatuses)("selection",_e.selection)("voId",_e.group.voId)("isMembersGroup","members"===_e.group.name)}}let nt=(()=>{class Ae{constructor(_e,Se,Ne,Ce,fe,r,u,_){this.groupService=_e,this.dialog=Se,this.guiAuthResolver=Ne,this.storeService=Ce,this.attributesManager=fe,this.apiRequest=r,this.notificator=u,this.entityStorageService=_,this.synchEnabled=!1,this.updateTable=!1,this.loading=!1,this.tableId=b.dI,this.memberAttrNames=[C.r.MEMBER_DEF_ORGANIZATION,C.r.MEMBER_DEF_MAIL,C.r.USER_DEF_ORGANIZATION,C.r.USER_DEF_PREFERRED_MAIL,C.r.MEMBER_DEF_EXPIRATION,C.r.MEMBER_DEF_GROUP_EXPIRATION,C.r.MEMBER_LIFECYCLE_ALTERABLE],this.copyDisabled=!1,this.displayedColumns=["checkbox","id","type","fullName","status","groupStatus","organization","email","logins"],this.statuses=new R.p4,this.statusList=["VALID","INVALID","EXPIRED","DISABLED"],this.selectedStatuses=["VALID","INVALID"],this.groupStatuses=new R.p4,this.groupStatusList=["VALID","EXPIRED"],this.selectedGroupStatuses=["VALID"],this.groupAttrNames=[C.r.GROUP_SYNC_ENABLED,C.r.GROUP_LAST_SYNC_STATE,C.r.GROUP_LAST_SYNC_TIMESTAMP,C.r.GROUP_STRUCTURE_SYNC_ENABLED,C.r.GROUP_LAST_STRUCTURE_SYNC_STATE,C.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP,C.r.GROUP_BLOCK_MANUAL_MEMBER_ADDING]}ngOnInit(){this.loading=!0,this.selection=new e.Ov(!0,[]),this.statuses.setValue(this.selectedStatuses),this.groupStatuses.setValue(this.selectedGroupStatuses),this.memberAttrNames=this.memberAttrNames.concat(this.storeService.getLoginAttributeNames()),this.group=this.entityStorageService.getEntity(),this.setAuthRights(),this.isManualAddingBlocked(this.group.voId).then(()=>this.loadPage(this.group.id)),this.isCopyMembersDisabled()}loadPage(_e){this.groupService.getRichGroupByIdWithAttributesByNames(_e,this.groupAttrNames).subscribe(Se=>{this.group=Se,this.synchEnabled=(0,D.bx)(this.group),this.loading=!1})}setAuthRights(){this.addAuth=this.guiAuthResolver.isAuthorized("addMembers_Group_List_policy",[this.group]),this.removeAuth=this.guiAuthResolver.isAuthorized("removeMembers_Group_List_policy",[this.group]),this.displayedColumns=this.removeAuth?this.displayedColumns:["id","type","fullName","status","groupStatus","organization","email","logins"],this.inviteAuth=this.guiAuthResolver.isAuthorized("group-sendInvitation_Vo_Group_String_String_String_policy",[this.group]),this.copyAuth=this.guiAuthResolver.isAuthorized("source-copyMembers_Group_List_List_boolean_policy",[this.group])}onSearchByString(_e){this.searchString=_e,this.selection.clear()}onAddMember(){const _e=(0,D.kZ)();_e.width="1000px",_e.data={group:this.group,manualAddingBlocked:this.blockManualMemberAdding},this.dialog.open(B.k,_e).afterClosed().subscribe(Ne=>{Ne&&(this.selection.clear(),this.updateTable=!this.updateTable,this.isCopyMembersDisabled())})}onRemoveMembers(){const _e=(0,D.kZ)();_e.width="450px",_e.data={groupId:this.group.id,members:this.selection.selected,theme:"group-theme"},this.dialog.open(M.X,_e).afterClosed().subscribe(Ne=>{Ne&&(this.selection.clear(),this.updateTable=!this.updateTable,this.isCopyMembersDisabled())})}onInviteMember(){const _e=(0,D.kZ)();_e.width="650px",_e.data={voId:this.group.voId,groupId:this.group.id,theme:"group-theme"},this.dialog.open(v.R,_e)}onBulkInvite(){const _e=(0,D.kZ)();_e.width="650px",_e.data={voId:this.group.voId,groupId:this.group.id,theme:"group-theme"},this.dialog.open(w.F,_e)}onCopyMembers(){const _e=(0,D.kZ)();_e.width="650px",_e.data={voId:this.group.voId,groupId:this.group.id,theme:"group-theme",members:this.selection.selected},this.dialog.open(Q,_e).afterClosed().subscribe(Ne=>{Ne&&this.selection.clear()})}displaySelectedStatuses(){if(this.selectedStatuses.length===this.statusList.length)return"ALL";const _e=this.statuses.value;return _e?`${_e[0]} ${_e.length>1?"(+"+(_e.length-1).toString()+" "+(2===_e.length?"other)":"others)"):""}`:""}displaySelectedGroupStatuses(){return this.selectedGroupStatuses.length===this.groupStatusList.length?"ALL":`${this.groupStatuses.value[0]}`}isManualAddingBlocked(_e){return new Promise(Se=>{this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getVoAttributeByName(_e,"urn:perun:vo:attribute-def:def:blockManualMemberAdding").subscribe({next:Ne=>{this.blockManualMemberAdding=null!==Ne.value,Se()},error:Ne=>{"PrivilegeException"!==Ne.name&&this.notificator.showError(Ne.name),Se()}})})}isCopyMembersDisabled(){this.copyDisabled=!1,this.groupService.getGroupDirectMembersCount(this.group.id).subscribe({next:_e=>{this.copyDisabled=0===_e},error:()=>{this.copyDisabled=!0}})}changeVoStatuses(){this.selection.clear(),this.selectedStatuses=this.statuses.value}changeGroupStatuses(){this.selection.clear(),this.selectedGroupStatuses=this.groupStatuses.value}refreshTable(){this.selection.clear(),this.updateTable=!this.updateTable,this.isCopyMembersDisabled()}}return Ae.id="GroupMembersComponent",Ae.\u0275fac=function(_e){return new(_e||Ae)(O.Y36(m.ff),O.Y36(L.uw),O.Y36(A.x4),O.Y36(A.d6),O.Y36(m.H8),O.Y36(A.F5),O.Y36(A.V6),O.Y36(A.fb))},Ae.\u0275cmp=O.Xpm({type:Ae,selectors:[["app-group-members"]],hostVars:2,hostBindings:function(_e,Se){2&_e&&O.ekj("router-component",Se.true)},decls:49,vars:63,consts:[[1,"page-subtitle"],["alert_type","warn",4,"ngIf"],[1,"align-elements"],[3,"click"],[3,"matTooltipDisabled","matTooltipPosition","matTooltip"],["class","mr-2 action-button","color","accent","data-cy","add-members","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","mr-2 dropdown-toggle","color","accent","mat-flat-button","",3,"disabled","matMenuTriggerFor",4,"ngIf"],["menu","matMenu"],["class","action-button","mat-menu-item","",3,"disabled","click",4,"ngIf"],["class","mr-2","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","mr-2","color","warn","data-cy","remove-members","mat-flat-button","",3,"disabled","click",4,"ngIf"],[1,"mr-2","fix-select"],["multiple","",3,"formControl","closed"],["class","group-theme",3,"value",4,"ngFor","ngForOf"],[1,"mt-2","search-field",3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"attrNames","groupId","tableId","displayedColumns","searchString","updateTable","selectedGroupStatuses","selectedStatuses","selection","voId","isMembersGroup",4,"ngIf"],["alert_type","warn"],["color","accent","data-cy","add-members","mat-flat-button","",1,"mr-2","action-button",3,"disabled","click"],["color","accent","mat-flat-button","",1,"mr-2","dropdown-toggle",3,"disabled","matMenuTriggerFor"],["mat-menu-item","",1,"action-button",3,"disabled","click"],["color","accent","mat-flat-button","",1,"mr-2",3,"disabled","click"],["color","warn","data-cy","remove-members","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"group-theme",3,"value"],[1,"ml-auto","mr-auto"],[3,"attrNames","groupId","tableId","displayedColumns","searchString","updateTable","selectedGroupStatuses","selectedStatuses","selection","voId","isMembersGroup"]],template:function(_e,Se){1&_e&&(O.TgZ(0,"h1",0),O._uU(1),O.ALo(2,"translate"),O.qZA(),O.YNc(3,k,3,3,"perun-web-apps-alert",1),O.TgZ(4,"div",2)(5,"perun-web-apps-refresh-button",3),O.NdJ("click",function(){return Se.refreshTable()}),O.qZA(),O.TgZ(6,"span",4),O.ALo(7,"groupMembersActionButtonDisabled"),O.ALo(8,"translate"),O.ALo(9,"groupMembersActionButtonDisabledTooltip"),O.YNc(10,be,4,7,"button",5),O.qZA(),O.TgZ(11,"span",4),O.ALo(12,"groupMembersActionButtonDisabled"),O.ALo(13,"translate"),O.ALo(14,"groupMembersActionButtonDisabledTooltip"),O.YNc(15,Z,4,7,"button",6),O.TgZ(16,"mat-menu",null,7),O.YNc(18,ce,4,6,"button",8),O.YNc(19,xe,4,6,"button",8),O.qZA()(),O.TgZ(20,"span",4),O.ALo(21,"translate"),O.YNc(22,ot,3,4,"button",9),O.qZA(),O.TgZ(23,"span",4),O.ALo(24,"groupMembersActionButtonDisabled"),O.ALo(25,"translate"),O.ALo(26,"groupMembersActionButtonDisabledTooltip"),O.YNc(27,Fe,4,6,"button",10),O.qZA(),O.TgZ(28,"mat-form-field",11)(29,"mat-label"),O._uU(30),O.ALo(31,"translate"),O.qZA(),O.TgZ(32,"mat-select",12),O.NdJ("closed",function(){return Se.changeVoStatuses()}),O.TgZ(33,"mat-select-trigger"),O._uU(34),O.ALo(35,"memberStatus"),O.qZA(),O.YNc(36,ut,3,4,"mat-option",13),O.qZA()(),O.TgZ(37,"mat-form-field",11)(38,"mat-label"),O._uU(39),O.ALo(40,"translate"),O.qZA(),O.TgZ(41,"mat-select",12),O.NdJ("closed",function(){return Se.changeGroupStatuses()}),O.TgZ(42,"mat-select-trigger"),O._uU(43),O.ALo(44,"memberStatus"),O.qZA(),O.YNc(45,tt,3,4,"mat-option",13),O.qZA()(),O.TgZ(46,"perun-web-apps-debounce-filter",14),O.NdJ("filter",function(Ce){return Se.onSearchByString(Ce)}),O.qZA()(),O.YNc(47,vt,1,0,"mat-spinner",15),O.YNc(48,X,1,11,"perun-web-apps-members-dynamic-list",16)),2&_e&&(O.xp6(1),O.Oqu(O.lcZ(2,31,"GROUP_DETAIL.MEMBERS.TITLE")),O.xp6(2),O.Q6J("ngIf",Se.synchEnabled),O.xp6(3),O.s9C("matTooltip",O.lcZ(8,36,O.xi3(9,38,Se.group,"add"))),O.Q6J("matTooltipDisabled",!O.xi3(7,33,Se.group,"add"))("matTooltipPosition","above"),O.xp6(4),O.Q6J("ngIf",Se.addAuth),O.xp6(1),O.s9C("matTooltip",O.lcZ(13,43,O.lcZ(14,45,Se.group))),O.Q6J("matTooltipDisabled",!O.lcZ(12,41,Se.group))("matTooltipPosition","above"),O.xp6(4),O.Q6J("ngIf",Se.inviteAuth),O.xp6(3),O.Q6J("ngIf",Se.inviteAuth),O.xp6(1),O.Q6J("ngIf",Se.inviteAuth),O.xp6(1),O.s9C("matTooltip",O.lcZ(21,47,"GROUP_DETAIL.MEMBERS.COPY_MEMBERS_DISABLED")),O.Q6J("matTooltipDisabled",!Se.copyDisabled)("matTooltipPosition","above"),O.xp6(2),O.Q6J("ngIf",Se.copyAuth),O.xp6(1),O.s9C("matTooltip",O.lcZ(25,51,O.lcZ(26,53,Se.group))),O.Q6J("matTooltipDisabled",!O.lcZ(24,49,Se.group))("matTooltipPosition","above"),O.xp6(4),O.Q6J("ngIf",Se.removeAuth),O.xp6(3),O.Oqu(O.lcZ(31,55,"GROUP_DETAIL.MEMBERS.FILTER_STATUS")),O.xp6(2),O.Q6J("formControl",Se.statuses),O.xp6(2),O.hij(" ",O.lcZ(35,57,Se.displaySelectedStatuses())," "),O.xp6(2),O.Q6J("ngForOf",Se.statusList),O.xp6(3),O.Oqu(O.lcZ(40,59,"GROUP_DETAIL.MEMBERS.FILTER_GROUP_STATUS")),O.xp6(2),O.Q6J("formControl",Se.groupStatuses),O.xp6(2),O.hij(" ",O.lcZ(44,61,Se.displaySelectedGroupStatuses())," "),O.xp6(2),O.Q6J("ngForOf",Se.groupStatusList),O.xp6(1),O.Q6J("placeholder","GROUP_DETAIL.MEMBERS.SEARCH_DESCRIPTION"),O.xp6(1),O.Q6J("ngIf",Se.loading),O.xp6(1),O.Q6J("ngIf",!Se.loading))},dependencies:[q.sg,q.O5,Ee.ey,ge.KE,ge.hX,R.JJ,R.oH,te.lW,ve.gD,ve.$L,z.Ou,ie.gM,De.VK,De.OP,De.p6,pe.w,he.t,Ye.P,Be.m,W.X$,se.l,le,N],styles:[".search-field[_ngcontent-%COMP%]{width:325px}.align-elements[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:wrap}.fix-select[_ngcontent-%COMP%]{margin-top:8px}"]}),Ae})()},37240:(Xe,ue,p)=>{"use strict";p.d(ue,{q:()=>X});var e=p(95017),A=p(61744),C=p(10036),M=p(65412),m=p(81591),D=(p(37433),p(94650)),v=p(89383),R=p(36895),B=p(24006),w=p(4859),L=p(51572),O=p(10266),q=p(90455),te=p(86257),z=p(62109),ie=p(64901);const Te=["list"],pe=["stepper"];function Le(nt,Ae){1&nt&&D._UZ(0,"mat-spinner",4)}function T(nt,Ae){1&nt&&(D._uU(0),D.ALo(1,"translate")),2&nt&&D.Oqu(D.lcZ(1,1,"DIALOGS.ADD_GROUP_RESOURCES.RESOURCES"))}function W(nt,Ae){1&nt&&(D._uU(0),D.ALo(1,"translate")),2&nt&&D.Oqu(D.lcZ(1,1,"DIALOGS.ADD_GROUP_RESOURCES.OPTIONS"))}const F=function(){return["select","id","name","facility","tags","description"]};function V(nt,Ae){if(1&nt){const ye=D.EpF();D.TgZ(0,"div",5)(1,"mat-stepper",6,7)(3,"mat-step",8),D.YNc(4,T,2,3,"ng-template",9),D.TgZ(5,"perun-web-apps-debounce-filter",10),D.NdJ("filter",function(Se){D.CHM(ye);const Ne=D.oxw();return D.KtG(Ne.applyFilter(Se))}),D.ALo(6,"translate"),D.qZA(),D._UZ(7,"perun-web-apps-resources-list",11,12),D.qZA(),D.TgZ(9,"mat-step"),D.YNc(10,W,2,3,"ng-template",9),D.TgZ(11,"mat-slide-toggle",13),D.NdJ("toggleChange",function(){D.CHM(ye);const Se=D.oxw();return D.KtG(Se.changeSubgroupsMessage())})("ngModelChange",function(Se){D.CHM(ye);const Ne=D.oxw();return D.KtG(Ne.autoAssignSubgroups=Se)}),D._uU(12),D.ALo(13,"translate"),D.qZA(),D.TgZ(14,"div",14),D._UZ(15,"i",15),D.qZA(),D.TgZ(16,"mat-slide-toggle",13),D.NdJ("toggleChange",function(){D.CHM(ye);const Se=D.oxw();return D.KtG(Se.changeInactiveMessage())})("ngModelChange",function(Se){D.CHM(ye);const Ne=D.oxw();return D.KtG(Ne.asActive=Se)}),D._uU(17),D.ALo(18,"translate"),D.qZA(),D.TgZ(19,"div",14),D._uU(20),D.qZA(),D.TgZ(21,"mat-slide-toggle",13),D.NdJ("toggleChange",function(){D.CHM(ye);const Se=D.oxw();return D.KtG(Se.changeAsyncMessage())})("ngModelChange",function(Se){D.CHM(ye);const Ne=D.oxw();return D.KtG(Ne.async=Se)}),D._uU(22),D.ALo(23,"translate"),D.qZA(),D.TgZ(24,"div",14),D._uU(25),D.qZA()()()()}if(2&nt){const ye=D.MAs(8),_e=D.oxw();D.xp6(1),D.Q6J("linear",!0),D.xp6(2),D.Q6J("completed",0!==_e.selection.selected.length&&void 0!==ye&&ye.addAuth),D.xp6(2),D.s9C("placeholder",D.lcZ(6,19,"DIALOGS.ADD_GROUP_RESOURCES.FILTER")),D.xp6(2),D.Q6J("filterValue",_e.filterValue)("groupToResource",_e.data.group)("disableRouting",!0)("resources",_e.resources)("selection",_e.selection)("displayedColumns",D.DdM(27,F))("tableId",_e.tableId),D.xp6(4),D.Q6J("ngModel",_e.autoAssignSubgroups),D.xp6(1),D.hij(" ",D.lcZ(13,21,"DIALOGS.ADD_GROUP_RESOURCES.AUTO_SUBGROUPS")," "),D.xp6(3),D.Q6J("innerHTML",_e.autoAssignHint,D.oJD),D.xp6(1),D.Q6J("ngModel",_e.asActive),D.xp6(1),D.hij(" ",D.lcZ(18,23,"DIALOGS.ADD_GROUP_RESOURCES.AS_ACTIVE")," "),D.xp6(3),D.hij(" ",_e.asActiveHint," "),D.xp6(1),D.Q6J("ngModel",_e.async),D.xp6(1),D.hij(" ",D.lcZ(23,25,"DIALOGS.ADD_GROUP_RESOURCES.ASYNC_OPT")," "),D.xp6(3),D.hij(" ",_e.asyncHint," ")}}function ee(nt,Ae){if(1&nt){const ye=D.EpF();D.TgZ(0,"button",22),D.NdJ("click",function(){D.CHM(ye);const Se=D.oxw(2);return D.KtG(Se.stepperPrevious())}),D._uU(1),D.ALo(2,"translate"),D.qZA()}2&nt&&(D.xp6(1),D.hij(" ",D.lcZ(2,1,"DIALOGS.ADD_GROUP_RESOURCES.BACK")," "))}function Q(nt,Ae){if(1&nt){const ye=D.EpF();D.TgZ(0,"button",23),D.NdJ("click",function(){D.CHM(ye);const Se=D.oxw(2);return D.KtG(Se.stepperNext())}),D._uU(1),D.ALo(2,"translate"),D.qZA()}if(2&nt){const ye=D.oxw(2);D.ekj("ml-2",void 0!==ye.stepper&&0!==ye.stepper.selectedIndex)("ml-auto",!(void 0!==ye.stepper&&0!==ye.stepper.selectedIndex)),D.Q6J("disabled",0===ye.selection.selected.length||void 0!==ye.list&&!ye.list.addAuth),D.xp6(1),D.hij(" ",D.lcZ(2,6,"DIALOGS.ADD_GROUP_RESOURCES.NEXT")," ")}}function Ee(nt,Ae){if(1&nt){const ye=D.EpF();D.TgZ(0,"button",24),D.NdJ("click",function(){D.CHM(ye);const Se=D.oxw(2);return D.KtG(Se.onSubmit())}),D._uU(1),D.ALo(2,"translate"),D.qZA()}if(2&nt){const ye=D.oxw(2);D.Q6J("disabled",0===ye.selection.selected.length||ye.loading),D.xp6(1),D.hij(" ",D.lcZ(2,2,"DIALOGS.ADD_GROUP_RESOURCES.ADD")," ")}}function ge(nt,Ae){if(1&nt){const ye=D.EpF();D.TgZ(0,"div",16)(1,"button",17),D.NdJ("click",function(){D.CHM(ye);const Se=D.oxw();return D.KtG(Se.onCancel())}),D._uU(2),D.ALo(3,"translate"),D.qZA(),D.YNc(4,ee,3,3,"button",18),D.YNc(5,Q,3,8,"button",19),D.TgZ(6,"span",20),D.ALo(7,"translate"),D.YNc(8,Ee,3,4,"button",21),D.qZA()()}if(2&nt){const ye=D.oxw();D.xp6(2),D.hij(" ",D.lcZ(3,6,"DIALOGS.ADD_GROUP_RESOURCES.CANCEL")," "),D.xp6(2),D.Q6J("ngIf",void 0!==ye.stepper&&0!==ye.stepper.selectedIndex),D.xp6(1),D.Q6J("ngIf",void 0!==ye.stepper&&ye.stepper.selectedIndex!==ye.stepper._steps.length-1),D.xp6(1),D.s9C("matTooltip",D.lcZ(7,8,"DIALOGS.ADD_GROUP_RESOURCES.ADD_PERMISSION_TOOLTIP")),D.Q6J("matTooltipDisabled",void 0===ye.list||ye.list.addAuth),D.xp6(2),D.Q6J("ngIf",void 0!==ye.stepper&&ye.stepper.selectedIndex===ye.stepper._steps.length-1)}}let ve=(()=>{class nt{constructor(ye,_e,Se,Ne,Ce,fe,r){this.dialogRef=ye,this.data=_e,this.notificator=Se,this.translate=Ne,this.resourcesManager=Ce,this.guiAuthResolver=fe,this.cd=r,this.filterValue="",this.resources=[],this.selection=new e.Ov(!0,[]),this.theme="",this.async=!0,this.autoAssignSubgroups=!1,this.asActive=!0,this.tableId=C.dK}ngOnInit(){this.theme=this.data.theme,this.loading=!0,this.autoAssignHint=this.translate.instant("DIALOGS.ADD_GROUP_RESOURCES.AUTO_SUBGROUPS_OFF_HINT"),this.asActiveHint=this.translate.instant("DIALOGS.ADD_GROUP_RESOURCES.ACTIVE_ON_HINT"),this.asyncHint=this.translate.instant("DIALOGS.ADD_GROUP_RESOURCES.ASYNC_ON_HINT"),this.resourcesManager.getRichResources(this.data.group.voId).subscribe(ye=>{this.resourcesManager.getAssignedResourcesWithGroup(this.data.group.id).subscribe(_e=>{for(const Se of ye)-1===_e.findIndex(Ne=>Ne.id===Se.id)&&this.guiAuthResolver.isAuthorized("assignGroupToResources_Group_List_policy",[this.data.group,Se])&&this.resources.push(Se);this.loading=!1,this.cd.detectChanges()},()=>this.loading=!1)},()=>this.loading=!1)}applyFilter(ye){this.filterValue=ye}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;const ye=this.selection.selected.map(_e=>_e.id);this.resourcesManager.assignGroupToResources(this.data.group.id,ye,this.async,!this.asActive,this.autoAssignSubgroups).subscribe(()=>{this.translate.get("DIALOGS.ADD_GROUP_RESOURCES.SUCCESS").subscribe(_e=>{this.notificator.showSuccess(_e),this.dialogRef.close(!0)})},()=>this.loading=!1)}changeSubgroupsMessage(){this.autoAssignHint=this.translate.instant(this.autoAssignSubgroups?"DIALOGS.ADD_GROUP_RESOURCES.AUTO_SUBGROUPS_OFF_HINT":"DIALOGS.ADD_GROUP_RESOURCES.AUTO_SUBGROUPS_ON_HINT")}changeInactiveMessage(){this.asActiveHint=this.translate.instant(this.asActive?"DIALOGS.ADD_GROUP_RESOURCES.ACTIVE_OFF_HINT":"DIALOGS.ADD_GROUP_RESOURCES.ACTIVE_ON_HINT")}changeAsyncMessage(){this.asyncHint=this.translate.instant(this.async?"DIALOGS.ADD_GROUP_RESOURCES.ASYNC_OFF_HINT":"DIALOGS.ADD_GROUP_RESOURCES.ASYNC_ON_HINT")}stepperPrevious(){this.stepper.previous()}stepperNext(){this.stepper.next()}}return nt.\u0275fac=function(ye){return new(ye||nt)(D.Y36(M.so),D.Y36(M.WI),D.Y36(m.V6),D.Y36(v.sK),D.Y36(A.xk),D.Y36(m.x4),D.Y36(D.sBO))},nt.\u0275cmp=D.Xpm({type:nt,selectors:[["app-add-group-resource-dialog"]],viewQuery:function(ye,_e){if(1&ye&&(D.Gf(Te,5),D.Gf(pe,5)),2&ye){let Se;D.iGM(Se=D.CRH())&&(_e.list=Se.first),D.iGM(Se=D.CRH())&&(_e.stepper=Se.first)}},decls:7,vars:9,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[3,"linear"],["stepper",""],[3,"completed"],["matStepLabel",""],[3,"placeholder","filter"],[3,"filterValue","groupToResource","disableRouting","resources","selection","displayedColumns","tableId"],["list",""],["labelPosition","before",1,"mt-3","slide-text",3,"ngModel","toggleChange","ngModelChange"],[1,"text-muted","new-line","mt-2"],[3,"innerHTML"],["mat-dialog-actions",""],["mat-flat-button","",3,"click"],["class","ml-auto","mat-flat-button","",3,"click",4,"ngIf"],["class","ml-auto","color","accent","mat-flat-button","","type","button",3,"ml-2","ml-auto","disabled","click",4,"ngIf"],[3,"matTooltipDisabled","matTooltip"],["class","ml-2","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","","type","button",1,"ml-auto",3,"disabled","click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(ye,_e){1&ye&&(D.TgZ(0,"div")(1,"h1",0),D._uU(2),D.ALo(3,"translate"),D.qZA(),D.YNc(4,Le,1,0,"mat-spinner",1),D.YNc(5,V,26,28,"div",2),D.YNc(6,ge,9,10,"div",3),D.qZA()),2&ye&&(D.Tol(_e.theme),D.xp6(2),D.Oqu(D.lcZ(3,7,"DIALOGS.ADD_GROUP_RESOURCES.TITLE")),D.xp6(2),D.Q6J("ngIf",_e.loading),D.xp6(1),D.Q6J("ngIf",!_e.loading),D.xp6(1),D.Q6J("ngIf",!_e.loading&&void 0!==_e.stepper))},dependencies:[R.O5,B.JJ,B.On,w.lW,M.uh,M.xY,M.H8,L.Ou,O.gM,q.Rr,te.C0,te.VY,te.Vq,z.C,ie.P,v.X$]}),nt})();var De=p(30671);function he(nt,Ae){1&nt&&D._UZ(0,"mat-spinner",4)}function Ye(nt,Ae){1&nt&&D._UZ(0,"th",13)}function Be(nt,Ae){if(1&nt&&(D.TgZ(0,"td",14),D._uU(1),D.qZA()),2&nt){const ye=Ae.$implicit;D.xp6(1),D.Oqu(ye.name)}}function se(nt,Ae){1&nt&&D._UZ(0,"tr",15)}function le(nt,Ae){1&nt&&D._UZ(0,"tr",16)}function N(nt,Ae){if(1&nt&&(D.TgZ(0,"div",5)(1,"p"),D._uU(2),D.ALo(3,"translate"),D.qZA(),D.TgZ(4,"div",6),D._uU(5),D.ALo(6,"translate"),D.qZA(),D.TgZ(7,"table",7),D.ynx(8,8),D.YNc(9,Ye,1,0,"th",9),D.YNc(10,Be,2,1,"td",10),D.BQk(),D.YNc(11,se,1,0,"tr",11),D.YNc(12,le,1,0,"tr",12),D.qZA()()),2&nt){const ye=D.oxw();D.xp6(2),D.hij(" ",D.lcZ(3,5,"DIALOGS.REMOVE_RESOURCES.DESCRIPTION")," "),D.xp6(3),D.hij(" ",D.lcZ(6,7,"DIALOGS.REMOVE_RESOURCES.ASK")," "),D.xp6(2),D.Q6J("dataSource",ye.dataSource),D.xp6(4),D.Q6J("matHeaderRowDef",ye.displayedColumns),D.xp6(1),D.Q6J("matRowDefColumns",ye.displayedColumns)}}function k(nt,Ae){if(1&nt){const ye=D.EpF();D.TgZ(0,"div",17)(1,"button",18),D.NdJ("click",function(){D.CHM(ye);const Se=D.oxw();return D.KtG(Se.onCancel())}),D._uU(2),D.ALo(3,"translate"),D.qZA(),D.TgZ(4,"button",19),D.NdJ("click",function(){D.CHM(ye);const Se=D.oxw();return D.KtG(Se.onSubmit())}),D._uU(5),D.ALo(6,"translate"),D.qZA()()}if(2&nt){const ye=D.oxw();D.xp6(2),D.hij(" ",D.lcZ(3,3,"DIALOGS.REMOVE_RESOURCES.CANCEL")," "),D.xp6(2),D.Q6J("disabled",ye.loading),D.xp6(1),D.hij(" ",D.lcZ(6,5,"DIALOGS.REMOVE_RESOURCES.DELETE")," ")}}let be=(()=>{class nt{constructor(ye,_e,Se,Ne,Ce){this.dialogRef=ye,this.data=_e,this.notificator=Se,this.translate=Ne,this.resourcesManager=Ce,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new De.by(this.data.resources)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;const ye=this.data.resources.map(_e=>_e.id);this.resourcesManager.removeGroupFromResources(this.data.groupId,ye).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_RESOURCES.SUCCESS").subscribe(_e=>{this.loading=!1,this.notificator.showSuccess(_e),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return nt.\u0275fac=function(ye){return new(ye||nt)(D.Y36(M.so),D.Y36(M.WI),D.Y36(m.V6),D.Y36(v.sK),D.Y36(A.xk))},nt.\u0275cmp=D.Xpm({type:nt,selectors:[["app-remove-group-resource-dialog"]],decls:7,vars:9,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(ye,_e){1&ye&&(D.TgZ(0,"div")(1,"h1",0),D._uU(2),D.ALo(3,"translate"),D.qZA(),D.YNc(4,he,1,0,"mat-spinner",1),D.YNc(5,N,13,9,"div",2),D.YNc(6,k,7,7,"div",3),D.qZA()),2&ye&&(D.Tol(_e.data.theme),D.xp6(2),D.Oqu(D.lcZ(3,7,"DIALOGS.REMOVE_RESOURCES.TITLE")),D.xp6(2),D.Q6J("ngIf",_e.loading),D.xp6(1),D.Q6J("ngIf",!_e.loading),D.xp6(1),D.Q6J("ngIf",!_e.loading))},dependencies:[R.O5,w.lW,De.BZ,De.fO,De.as,De.w1,De.Dz,De.nj,De.ge,De.ev,De.XQ,De.Gk,M.uh,M.xY,M.H8,L.Ou,v.X$]}),nt})();var Z=p(9244),ce=p(96214),xe=p(7434);const ot=["list"];function Fe(nt,Ae){if(1&nt){const ye=D.EpF();D.TgZ(0,"button",8),D.NdJ("click",function(){D.CHM(ye);const Se=D.oxw();return D.KtG(Se.addResource())}),D._uU(1),D.ALo(2,"translate"),D.qZA()}2&nt&&(D.xp6(1),D.hij(" ",D.lcZ(2,1,"GROUP_DETAIL.RESOURCES.ADD")," "))}function ut(nt,Ae){1&nt&&D._UZ(0,"mat-spinner",9)}const tt=function(){return["select","id","indirectResourceAssigment","name","status","facility","tags","description"]};function vt(nt,Ae){if(1&nt){const ye=D.EpF();D.TgZ(0,"perun-web-apps-resources-list",10,11),D.NdJ("refreshTable",function(){D.CHM(ye);const Se=D.oxw();return D.KtG(Se.refreshTable())}),D.qZA()}if(2&nt){const ye=D.oxw();D.Q6J("disableRouting",!ye.routingAuth)("filterValue",ye.filterValue)("resources",ye.resources)("routingVo",!0)("displayedColumns",D.DdM(10,tt))("selection",ye.selected)("groupId",ye.group.id)("groupToResource",ye.group)("resourcesToDisableCheckbox",ye.resourcesToDisable)("tableId",ye.tableId)}}let X=(()=>{class nt{constructor(ye,_e,Se,Ne,Ce){this.resourcesManager=ye,this.groupService=_e,this.dialog=Se,this.guiAuthResolver=Ne,this.entityStorageService=Ce,this.resources=null,this.selected=new e.Ov(!0,[]),this.filterValue="",this.tableId=C.v1,this.addAuth=!1}ngOnInit(){this.group=this.entityStorageService.getEntity(),this.setAuthorization(),this.refreshTable()}setAuthorization(){null!==this.resources&&0!==this.resources.length&&(this.routingAuth=this.guiAuthResolver.isAuthorized("getResourceById_int_policy",[this.resources[0]])),this.addAuth=this.guiAuthResolver.isAuthorized("getResources_Vo_policy",[this.group])}refreshTable(){this.loading=!0,this.resourcesManager.getResourceAssignments(this.group.id).subscribe(ye=>{this.resources=ye.map(_e=>{const Se=_e.enrichedResource.resource;return Se.facility=_e.facility,Se.status=_e.status,Se.resourceTags=_e.resourceTags,Se.failureCause=_e.failureCause,Se.sourceGroupId=_e.sourceGroupId,Se}),this.selected.clear(),this.resourcesToDisable=new Set(this.resources.filter(_e=>null!==_e.sourceGroupId).map(_e=>_e.id)),this.setAuthorization(),this.loading=!1})}applyFilter(ye){this.filterValue=ye}addResource(){const ye=(0,Z.kZ)();ye.width="1000px",ye.data={theme:"group-theme",group:this.group},this.dialog.open(ve,ye).afterClosed().subscribe(Se=>{Se&&this.refreshTable()})}removeResource(){const ye=(0,Z.kZ)();ye.width="450px",ye.data={theme:"group-theme",resources:this.selected.selected,groupId:this.group.id},this.dialog.open(be,ye).afterClosed().subscribe(Se=>{Se&&(this.selected.clear(),this.refreshTable())})}}return nt.id="GroupResourcesComponent",nt.\u0275fac=function(ye){return new(ye||nt)(D.Y36(A.xk),D.Y36(A.ff),D.Y36(M.uw),D.Y36(m.x4),D.Y36(m.fb))},nt.\u0275cmp=D.Xpm({type:nt,selectors:[["app-group-resources"]],viewQuery:function(ye,_e){if(1&ye&&D.Gf(ot,5),2&ye){let Se;D.iGM(Se=D.CRH())&&(_e.list=Se.first)}},hostVars:2,hostBindings:function(ye,_e){2&ye&&D.ekj("router-component",_e.true)},decls:14,vars:15,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","class","mr-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],[3,"matTooltipDisabled","matTooltip"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableRouting","filterValue","resources","routingVo","displayedColumns","selection","groupId","groupToResource","resourcesToDisableCheckbox","tableId","refreshTable",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],[1,"ml-auto","mr-auto"],[3,"disableRouting","filterValue","resources","routingVo","displayedColumns","selection","groupId","groupToResource","resourcesToDisableCheckbox","tableId","refreshTable"],["list",""]],template:function(ye,_e){1&ye&&(D.TgZ(0,"div")(1,"h1",0),D._uU(2),D.ALo(3,"translate"),D.qZA(),D.TgZ(4,"perun-web-apps-refresh-button",1),D.NdJ("refresh",function(){return _e.refreshTable()}),D.qZA(),D.YNc(5,Fe,3,3,"button",2),D.TgZ(6,"span",3),D.ALo(7,"translate"),D.TgZ(8,"button",4),D.NdJ("click",function(){return _e.removeResource()}),D._uU(9),D.ALo(10,"translate"),D.qZA()(),D.TgZ(11,"perun-web-apps-immediate-filter",5),D.NdJ("filter",function(Ne){return _e.applyFilter(Ne)}),D.qZA(),D.YNc(12,ut,1,0,"mat-spinner",6),D.YNc(13,vt,2,11,"perun-web-apps-resources-list",7),D.qZA()),2&ye&&(D.xp6(2),D.Oqu(D.lcZ(3,9,"GROUP_DETAIL.RESOURCES.TITLE")),D.xp6(3),D.Q6J("ngIf",_e.addAuth),D.xp6(1),D.s9C("matTooltip",D.lcZ(7,11,"GROUP_DETAIL.RESOURCES.DELETE_PERMISSION_HINT")),D.Q6J("matTooltipDisabled",0===_e.selected.selected.length||void 0!==_e.list&&_e.list.removeAuth),D.xp6(2),D.Q6J("disabled",0===_e.selected.selected.length||void 0!==_e.list&&!_e.list.removeAuth),D.xp6(1),D.hij(" ",D.lcZ(10,13,"GROUP_DETAIL.RESOURCES.DELETE")," "),D.xp6(2),D.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),D.xp6(1),D.Q6J("ngIf",_e.loading),D.xp6(1),D.Q6J("ngIf",_e.resources&&!_e.loading))},dependencies:[R.O5,w.lW,L.Ou,O.gM,ce.t,xe.L,z.C,v.X$]}),nt})()},61639:(Xe,ue,p)=>{"use strict";p.d(ue,{C:()=>m});var e=p(61744),A=p(81591),C=p(94650),M=p(90820);let m=(()=>{class b{constructor(v,R,B){this.authzResolverService=v,this.entityStorageService=R,this.roleService=B,this.roles=new Map}ngOnInit(){this.groupId=this.entityStorageService.getEntity().id,this.getData()}getData(){this.outerLoading=!0,this.roles.clear(),this.authzResolverService.getGroupRoles(this.groupId).subscribe(v=>{const R=Object.keys(v).map(B=>B.toUpperCase());this.roles=this.roleService.prepareRoles(v,R),this.outerLoading=!1})}}return b.id="GroupRolesComponent",b.\u0275fac=function(v){return new(v||b)(C.Y36(e.Ct),C.Y36(A.fb),C.Y36(A.Nj))},b.\u0275cmp=C.Xpm({type:b,selectors:[["app-group-roles"]],hostVars:2,hostBindings:function(v,R){2&v&&C.ekj("router-component",R.true)},decls:1,vars:5,consts:[[3,"outerLoading","roles","entityId","entityType","showDescription","reload","startLoading"]],template:function(v,R){1&v&&(C.TgZ(0,"app-perun-web-apps-roles-page",0),C.NdJ("reload",function(){return R.getData()})("startLoading",function(){return R.outerLoading=!0}),C.qZA()),2&v&&C.Q6J("outerLoading",R.outerLoading)("roles",R.roles)("entityId",R.groupId)("entityType","GROUP")("showDescription",!0)},dependencies:[M._]}),b})()},14336:(Xe,ue,p)=>{"use strict";p.d(ue,{Z:()=>be});var e=p(81591),A=p(93657),C=p(83491),M=p(95502),m=p(1186),b=p(61744),D=p(9244),v=p(94650),R=p(65412),B=p(89383),w=p(94364),L=p(36895),O=p(24006),q=p(97392),te=p(4859),z=p(51572),ie=p(10266),Te=p(90455),pe=p(44850),Le=p(98380),T=p(96214),W=p(157);const F=["autoRegToggle"];function V(Z,ce){1&Z&&v._UZ(0,"mat-spinner",3)}function ee(Z,ce){if(1&Z&&(v.TgZ(0,"span"),v._uU(1," , "),v.TgZ(2,"mat-icon",22),v._uU(3,"nat"),v.qZA(),v._uU(4),v.ALo(5,"translate"),v.ALo(6,"translate"),v.qZA()),2&Z){const xe=v.oxw(3);v.xp6(4),v.hij(" ",xe.applicationForm.automaticApprovalEmbedded?v.lcZ(5,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):v.lcZ(6,3,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," ")}}function Q(Z,ce){if(1&Z){const xe=v.EpF();v.TgZ(0,"div")(1,"mat-slide-toggle",23,24),v.NdJ("change",function(){v.CHM(xe);const Fe=v.oxw(3);return v.KtG(Fe.updateAutoRegistration())}),v._uU(3),v.ALo(4,"translate"),v.qZA()()}if(2&Z){const xe=v.oxw(3);v.xp6(1),v.Q6J("disabled",!xe.changeAutoRegistration)("ngModel",xe.autoRegistrationEnabled),v.xp6(2),v.hij(" ",v.lcZ(4,3,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.ALLOW_EMBEDDED")," ")}}function Ee(Z,ce){if(1&Z){const xe=v.EpF();v.TgZ(0,"button",25),v.NdJ("click",function(){v.CHM(xe);const Fe=v.oxw(3);return v.KtG(Fe.settings())}),v.TgZ(1,"i",12),v._uU(2,"edit"),v.qZA(),v._uU(3),v.ALo(4,"translate"),v.qZA()}2&Z&&(v.xp6(3),v.hij(" ",v.lcZ(4,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.SETTINGS_BUTTON")," "))}function ge(Z,ce){if(1&Z&&(v.TgZ(0,"div",15)(1,"div",16)(2,"div",17),v._uU(3),v.ALo(4,"translate"),v.qZA(),v.TgZ(5,"div")(6,"span",17),v._uU(7),v.ALo(8,"translate"),v.qZA(),v._uU(9,": "),v.TgZ(10,"mat-icon",18),v._uU(11,"arrow_right_alt"),v.qZA(),v._uU(12),v.ALo(13,"translate"),v.ALo(14,"translate"),v.TgZ(15,"mat-icon",19),v._uU(16,"restore"),v.qZA(),v._uU(17),v.ALo(18,"translate"),v.ALo(19,"translate"),v.YNc(20,ee,7,5,"span",2),v.qZA(),v.YNc(21,Q,5,5,"div",2),v.qZA(),v.TgZ(22,"div",20),v.YNc(23,Ee,5,3,"button",21),v.qZA()()),2&Z){const xe=v.oxw(2);v.xp6(1),v.Q6J("ngClass",xe.autoRegistrationEnabled?"w-75":"w-50"),v.xp6(2),v.AsE(" ",v.lcZ(4,9,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MODULE_NAME"),": ",xe.applicationForm.moduleClassName," "),v.xp6(4),v.Oqu(v.lcZ(8,11,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.APPLICATION_TYPE")),v.xp6(5),v.hij(" ",xe.applicationForm.automaticApproval?v.lcZ(13,13,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):v.lcZ(14,15,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," , "),v.xp6(5),v.hij(" ",xe.applicationForm.automaticApprovalExtension?v.lcZ(18,17,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):v.lcZ(19,19,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," "),v.xp6(3),v.Q6J("ngIf",xe.autoRegistrationEnabled),v.xp6(1),v.Q6J("ngIf",xe.voHasEmbeddedGroupApplication),v.xp6(2),v.Q6J("ngIf",xe.editAuth)}}function ve(Z,ce){if(1&Z){const xe=v.EpF();v.TgZ(0,"button",26),v.NdJ("click",function(){v.CHM(xe);const Fe=v.oxw(2);return v.KtG(Fe.add())}),v._uU(1),v.ALo(2,"translate"),v.qZA()}2&Z&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.ADD_BUTTON")," "))}function De(Z,ce){if(1&Z){const xe=v.EpF();v.TgZ(0,"button",27),v.NdJ("click",function(){v.CHM(xe);const Fe=v.oxw(2);return v.KtG(Fe.save())}),v.TgZ(1,"i",12),v._uU(2,"save"),v.qZA(),v._uU(3),v.ALo(4,"translate"),v.qZA()}if(2&Z){const xe=v.oxw(2);v.Q6J("disabled",!xe.itemsChanged),v.xp6(3),v.hij(" ",v.lcZ(4,2,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SAVE_BUTTON")," ")}}function he(Z,ce){if(1&Z){const xe=v.EpF();v.TgZ(0,"button",28),v.NdJ("click",function(){v.CHM(xe);const Fe=v.oxw(2);return v.KtG(Fe.copy())}),v.TgZ(1,"i",12),v._uU(2,"file_copy"),v.qZA(),v._uU(3),v.ALo(4,"translate"),v.qZA()}2&Z&&(v.xp6(3),v.hij(" ",v.lcZ(4,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.COPY_GROUP_BUTTON")," "))}function Ye(Z,ce){1&Z&&(v.TgZ(0,"perun-web-apps-alert",29),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&Z&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.DRAG_AND_DROP_INFO")," "))}const Be=function(){return["drag","shortname","type","disabled","hidden","preview","managegroups","edit","delete"]},se=function(){return["shortname","type","disabled","hidden","preview","managegroups"]};function le(Z,ce){if(1&Z){const xe=v.EpF();v.TgZ(0,"div"),v.YNc(1,ge,24,21,"div",4),v._UZ(2,"mat-divider",5),v.TgZ(3,"div",6)(4,"perun-web-apps-refresh-button",7),v.NdJ("refresh",function(){v.CHM(xe);const Fe=v.oxw();return v.KtG(Fe.updateFormItems())}),v.qZA(),v.YNc(5,ve,3,3,"button",8),v.YNc(6,De,5,4,"button",9),v.YNc(7,he,5,3,"button",10),v.TgZ(8,"button",11),v.NdJ("click",function(){v.CHM(xe);const Fe=v.oxw();return v.KtG(Fe.preview())}),v.TgZ(9,"i",12),v._uU(10,"search"),v.qZA(),v._uU(11),v.ALo(12,"translate"),v.qZA()(),v.YNc(13,Ye,3,3,"perun-web-apps-alert",13),v.TgZ(14,"app-application-form-list",14),v.NdJ("applicationFormItemsChange",function(){v.CHM(xe);const Fe=v.oxw();return v.KtG(Fe.changeItems())}),v.qZA()()}if(2&Z){const xe=v.oxw();v.xp6(1),v.Q6J("ngIf",!xe.loading),v.xp6(4),v.Q6J("ngIf",xe.editAuth),v.xp6(1),v.Q6J("ngIf",xe.editAuth),v.xp6(1),v.Q6J("ngIf",xe.editAuth),v.xp6(4),v.hij(" ",v.lcZ(12,12,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_BUTTON")," "),v.xp6(2),v.Q6J("ngIf",xe.editAuth),v.xp6(1),v.Q6J("applicationForm",xe.applicationForm)("applicationFormItems",xe.applicationFormItems)("loading",xe.loading)("displayedColumns",xe.editAuth?v.DdM(14,Be):v.DdM(15,se))("refreshApplicationForm",xe.refreshApplicationForm)("theme","group-theme")}}function N(Z,ce){if(1&Z){const xe=v.EpF();v.TgZ(0,"button",32),v.NdJ("click",function(){v.CHM(xe);const Fe=v.oxw(2);return v.KtG(Fe.createEmptyApplicationForm())}),v._uU(1),v.ALo(2,"translate"),v.qZA()}2&Z&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.CREATE_APPLICATION_FORM")," "))}function k(Z,ce){if(1&Z&&(v.TgZ(0,"div")(1,"perun-web-apps-alert",30),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.YNc(4,N,3,3,"button",31),v.qZA()),2&Z){const xe=v.oxw();v.xp6(2),v.Oqu(v.lcZ(3,2,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.NO_APPLICATION_FORM")),v.xp6(2),v.Q6J("ngIf",xe.createEmptyForm)}}let be=(()=>{class Z{constructor(xe,ot,Fe,ut,tt,vt,X,nt,Ae){this.registrarManager=xe,this.dialog=ot,this.notificator=Fe,this.translate=ut,this.apiRequest=tt,this.router=vt,this.guiAuthResolver=X,this.attributesManager=nt,this.entityStorageService=Ae,this.loading=!1,this.applicationFormItems=[],this.noApplicationForm=!1,this.itemsChanged=!1,this.editAuth=!1,this.createEmptyForm=!1,this.voHasEmbeddedGroupApplication=!1,this.refreshApplicationForm=!1,this.idCounter=-1}ngOnInit(){this.loading=!0,this.group=this.entityStorageService.getEntity(),this.setAuth(),this.apiRequest.dontHandleErrorForNext(),this.registrarManager.getGroupApplicationForm(this.group.id).subscribe(xe=>{this.applicationForm=xe,this.registrarManager.getFormItemsForGroup(this.group.id).subscribe(ot=>{this.applicationFormItems=ot,this.attributesManager.getGroupAttributeByName(this.group.id,"urn:perun:group:attribute-def:virt:autoRegistrationEnabled").subscribe(Fe=>{this.voHasEmbeddedGroupApplication=null!==Fe.value,this.autoRegistrationEnabled=!!Fe.value,this.loading=!1})},()=>this.loading=!1)},xe=>{"FormNotExistsException"===xe.name?(this.noApplicationForm=!0,this.loading=!1):this.notificator.showRPCError(xe)})}setAuth(){this.editAuth=this.guiAuthResolver.isAuthorized("group-updateFormItems_ApplicationForm_List_policy",[this.group]),this.createEmptyForm=this.guiAuthResolver.isAuthorized("createApplicationFormInGroup_Group_policy",[this.group]),this.changeAutoRegistration=this.guiAuthResolver.isAuthorized("addGroupsToAutoRegistration_List_policy",[this.group])}add(){let xe=(0,D.kZ)();xe.width="500px",xe.data={applicationFormItems:this.applicationFormItems,fakeId:this.idCounter--},this.dialog.open(A.J,xe).afterClosed().subscribe(Fe=>{Fe&&(this.applicationFormItems=Object.assign([],Fe[0]),xe=(0,D.kZ)(),xe.width="600px",xe.height="600px",xe.data={voId:this.group.voId,groupId:this.group.id,applicationFormItem:Fe[1],theme:"group-theme",allItems:this.applicationFormItems},this.dialog.open(C._,xe),this.itemsChanged=!0)})}copy(){const xe=(0,D.kZ)();xe.width="500px",xe.data={voId:this.group.voId,groupId:this.group.id,theme:"group-theme"},this.dialog.open(M.W,xe).afterClosed().subscribe(Fe=>{Fe&&this.updateFormItems()})}settings(){const xe=(0,D.kZ)();xe.width="400px",xe.data={entity:"group",applicationForm:this.applicationForm,theme:"group-theme",autoRegistrationEnabled:this.autoRegistrationEnabled},this.dialog.open(m.E,xe).afterClosed().subscribe(Fe=>{Fe&&(this.translate.get("GROUP_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_SETTINGS_SUCCESS").subscribe(ut=>{this.notificator.showSuccess(ut)}),this.applicationForm=Fe)})}preview(){this.router.navigate(["/organizations",this.group.voId,"groups",this.group.id,"settings","applicationForm","preview"],{queryParams:{applicationFormItems:JSON.stringify(this.applicationFormItems)},queryParamsHandling:"merge"})}updateFormItems(){this.loading=!0,this.refreshApplicationForm=!0,this.registrarManager.getFormItemsForGroup(this.group.id).subscribe({next:xe=>{this.applicationFormItems=xe,this.itemsChanged=!1,this.refreshApplicationForm=!1,this.loading=!1},error:()=>this.loading=!1})}changeItems(){this.itemsChanged=!0}createEmptyApplicationForm(){this.registrarManager.createApplicationFormInGroup(this.group.id).subscribe(()=>{this.noApplicationForm=!1,this.ngOnInit()})}save(){let xe=0;for(const ot of this.applicationFormItems)ot.ordnum=xe,ot.forDelete||xe++;this.registrarManager.updateFormItemsForGroup({group:this.group.id,items:this.applicationFormItems}).subscribe(()=>{this.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_APPLICATION_FORM_ITEMS_SUCCESS").subscribe(ot=>{this.notificator.showSuccess(ot)}),this.updateFormItems()})}clear(){this.applicationFormItems=[],this.itemsChanged=!0}updateAutoRegistration(){this.autoRegToggle.setDisabledState(!0),this.autoRegistrationEnabled?this.registrarManager.deleteGroupsFromAutoRegistration([this.group.id]).subscribe(()=>{this.autoRegistrationEnabled=!this.autoRegistrationEnabled,this.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_SETTINGS_SUCCESS").subscribe(xe=>{this.notificator.showSuccess(xe)}),this.autoRegToggle.setDisabledState(!1)},()=>this.autoRegToggle.setDisabledState(!1)):this.registrarManager.addGroupsToAutoRegistration([this.group.id]).subscribe(()=>{this.autoRegistrationEnabled=!this.autoRegistrationEnabled,this.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_SETTINGS_SUCCESS").subscribe(xe=>{this.notificator.showSuccess(xe)}),this.autoRegToggle.setDisabledState(!1)},()=>this.autoRegToggle.setDisabledState(!1))}}return Z.id="GroupSettingsApplicationFormComponent",Z.\u0275fac=function(xe){return new(xe||Z)(v.Y36(b.tk),v.Y36(R.uw),v.Y36(e.V6),v.Y36(B.sK),v.Y36(e.F5),v.Y36(w.F0),v.Y36(e.x4),v.Y36(b.H8),v.Y36(e.fb))},Z.\u0275cmp=v.Xpm({type:Z,selectors:[["app-group-settings-application-form"]],viewQuery:function(xe,ot){if(1&xe&&v.Gf(F,5),2&xe){let Fe;v.iGM(Fe=v.CRH())&&(ot.autoRegToggle=Fe.first)}},hostVars:2,hostBindings:function(xe,ot){2&xe&&v.ekj("router-component",ot.true)},decls:6,vars:6,consts:[[1,"page-subtitle"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["class","d-flex w-50",4,"ngIf"],[1,"mb-2","mt-2"],[1,"w-100","d-flex"],[3,"refresh"],["color","accent","class","mr-2 action-button","data-cy","add-form-item","mat-flat-button","",3,"click",4,"ngIf"],["color","accent","class","mr-2","data-cy","save-application-form","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","mr-2 action-button","mat-stroked-button","",3,"click",4,"ngIf"],["mat-stroked-button","",3,"click"],[1,"material-icons"],["alert_type","info",4,"ngIf"],[3,"applicationForm","applicationFormItems","loading","displayedColumns","refreshApplicationForm","theme","applicationFormItemsChange"],[1,"d-flex","w-50"],[3,"ngClass"],[1,"font-weight-bold"],["matTooltip","Initial",1,"align-text-bottom"],["matTooltip","Extension",1,"align-text-bottom"],[1,"w-25"],["class","ml-auto action-button","mat-stroked-button","",3,"click",4,"ngIf"],["matTooltip","Embedded",1,"align-text-bottom"],["color","primary",3,"disabled","ngModel","change"],["autoRegToggle",""],["mat-stroked-button","",1,"ml-auto","action-button",3,"click"],["color","accent","data-cy","add-form-item","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","accent","data-cy","save-application-form","mat-flat-button","",1,"mr-2",3,"disabled","click"],["mat-stroked-button","",1,"mr-2","action-button",3,"click"],["alert_type","info"],["alert_type","warn"],["data-cy","create-empty-form","mat-stroked-button","",3,"click",4,"ngIf"],["data-cy","create-empty-form","mat-stroked-button","",3,"click"]],template:function(xe,ot){1&xe&&(v.TgZ(0,"h1",0),v._uU(1),v.ALo(2,"translate"),v.qZA(),v.YNc(3,V,1,0,"mat-spinner",1),v.YNc(4,le,15,16,"div",2),v.YNc(5,k,5,4,"div",2)),2&xe&&(v.xp6(1),v.hij(" ",v.lcZ(2,4,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.TITLE"),"\n"),v.xp6(2),v.Q6J("ngIf",ot.loading),v.xp6(1),v.Q6J("ngIf",!ot.noApplicationForm),v.xp6(1),v.Q6J("ngIf",!ot.loading&&ot.noApplicationForm))},dependencies:[L.mk,L.O5,O.JJ,O.On,q.Hw,te.lW,z.Ou,ie.gM,Te.Rr,pe.d,Le.w,T.t,W.b,B.X$]}),Z})()},15592:(Xe,ue,p)=>{"use strict";p.d(ue,{u:()=>N});var e=p(81889),A=p(95017),C=p(41656),M=p(9244),m=p(61744),b=p(64080),D=p(10036),v=p(87842),R=p(81591),B=p(54004),w=p(68675),L=p(94650),O=p(65412),q=p(36895),te=p(24006),z=p(4859),ie=p(51572),Te=p(10266),pe=p(90455),Le=p(25788),T=p(96214),W=p(58956),F=p(64901),V=p(89383);const ee=["toggle"];function Q(k,be){if(1&k){const Z=L.EpF();L.TgZ(0,"button",9),L.NdJ("click",function(){L.CHM(Z);const xe=L.oxw();return L.KtG(xe.onCreateGroup())}),L._uU(1),L.ALo(2,"translate"),L.qZA()}2&k&&(L.xp6(1),L.hij(" ",L.lcZ(2,1,"GROUP_DETAIL.SUBGROUPS.CREATE_GROUP")," "))}function Ee(k,be){if(1&k){const Z=L.EpF();L.TgZ(0,"button",12),L.NdJ("click",function(){L.CHM(Z);const xe=L.oxw(2);return L.KtG(xe.deleteGroup())}),L._uU(1),L.ALo(2,"translate"),L.qZA()}if(2&k){const Z=L.oxw().ngIf,ce=L.oxw();L.Q6J("disabled",0===ce.selected.selected.length||!Z.removeAuth),L.xp6(1),L.hij(" ",L.lcZ(2,2,"GROUP_DETAIL.SUBGROUPS.DELETE_GROUP")," ")}}function ge(k,be){if(1&k&&(L.TgZ(0,"span",10),L.ALo(1,"translate"),L.YNc(2,Ee,3,4,"button",11),L.qZA()),2&k){const Z=be.ngIf,ce=L.oxw();L.s9C("matTooltip",L.lcZ(1,3,"GROUP_DETAIL.SUBGROUPS.DELETE_PERMISSION_HINT")),L.Q6J("matTooltipDisabled",0===ce.selected.selected.length||Z.removeAuth),L.xp6(2),L.Q6J("ngIf",ce.deleteAuth)}}function ve(k,be){1&k&&L._UZ(0,"mat-spinner",13)}function De(k,be){if(1&k){const Z=L.EpF();L.TgZ(0,"perun-web-apps-groups-tree",17),L.NdJ("moveGroup",function(xe){L.CHM(Z);const ot=L.oxw(2);return L.KtG(ot.onMoveGroup(xe))})("refreshTable",function(){L.CHM(Z);const xe=L.oxw(2);return L.KtG(xe.refreshTable())}),L.qZA()}if(2&k){const Z=L.oxw(2);L.Q6J("disableRouting",!Z.routeAuth)("expandAll",Z.filtering)("groups",Z.groups)("hideCheckbox",!Z.deleteAuth)("filterValue",Z.filterValue)("selection",Z.selected)}}const he=function(){return["select","id","name","description","menu"]},Ye=function(){return["id","name","description","menu"]};function Be(k,be){if(1&k){const Z=L.EpF();L.TgZ(0,"perun-web-apps-groups-list",18),L.NdJ("groupMoved",function(xe){L.CHM(Z);const ot=L.oxw(2);return L.KtG(ot.onMoveGroup(xe))})("refreshTable",function(){L.CHM(Z);const xe=L.oxw(2);return L.KtG(xe.refreshTable())}),L.qZA()}if(2&k){const Z=L.oxw(2);L.Q6J("disableMembers",!0)("disableRouting",!Z.routeAuth)("displayedColumns",Z.deleteAuth?L.DdM(7,he):L.DdM(8,Ye))("groups",Z.groups)("selection",Z.selected)("filter",Z.filterValue)("tableId",Z.tableId)}}function se(k,be){if(1&k&&(L.TgZ(0,"div",14),L.YNc(1,De,1,6,"perun-web-apps-groups-tree",15),L.YNc(2,Be,1,9,"perun-web-apps-groups-list",16),L.qZA()),2&k){const Z=L.oxw();L.xp6(1),L.Q6J("ngIf",!Z.showGroupList),L.xp6(1),L.Q6J("ngIf",Z.showGroupList)}}const le=function(k){return{removeAuth:k}};let N=(()=>{class k{constructor(Z,ce,xe,ot){this.dialog=Z,this.groupService=ce,this.guiAuthResolver=xe,this.entityStorageService=ot,this.groups=[],this.selected=new A.Ov(!0,[]),this.showGroupList=!1,this.filtering=!1,this.tableId=D.bf,this.filterValue="",this.removeAuth$=this.selected.changed.pipe((0,B.U)(Fe=>Fe.source.selected.reduce((ut,tt)=>ut&&this.guiAuthResolver.isAuthorized("deleteGroup_Group_boolean_policy",[tt]),!0)),(0,w.O)(!0))}onCreateGroup(){const Z=(0,M.kZ)();Z.width="450px",Z.data={parentGroup:this.group,theme:"group-theme"},this.dialog.open(e.y,Z).afterClosed().subscribe(xe=>{xe&&(this.loading=!0,this.refreshTable())})}ngOnInit(){"list"===localStorage.getItem("preferedValue")&&(this.toggle.toggle(),this.selected.clear(),this.showGroupList=!0),this.toggle.change.subscribe(()=>{localStorage.setItem("preferedValue",this.toggle.checked?"list":"tree")}),this.group=this.entityStorageService.getEntity(),this.setAuthRights(),this.refreshTable()}setAuthRights(){this.createAuth=this.guiAuthResolver.isAuthorized("createGroup_Group_Group_policy",[this.group]),this.deleteAuth=this.guiAuthResolver.isAuthorized("deleteGroups_List_boolean_policy",[this.group]),0!==this.groups.length&&(this.routeAuth=this.guiAuthResolver.isAuthorized("getGroupById_int_policy",[this.groups[0]]))}deleteGroup(){const Z=(0,M.kZ)();Z.width="450px",Z.data={voId:this.group.id,groups:this.selected.selected,theme:"group-theme"},this.dialog.open(C.P,Z).afterClosed().subscribe(xe=>{xe&&this.refreshTable()})}refreshTable(){this.loading=!0,this.groupService.getAllRichSubGroupsWithGroupAttributesByNames(this.group.id,[b.r.GROUP_DEF_MAIL_FOOTER,b.r.GROUP_SYNC_ENABLED,b.r.GROUP_LAST_SYNC_STATE,b.r.GROUP_LAST_SYNC_TIMESTAMP,b.r.GROUP_STRUCTURE_SYNC_ENABLED,b.r.GROUP_LAST_STRUCTURE_SYNC_STATE,b.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP]).subscribe(Z=>{this.groups=Z,this.selected.clear(),this.setAuthRights(),this.loading=!1})}applyFilter(Z){this.filterValue=Z,this.filtering=""!==Z}onMoveGroup(Z){const ce=(0,M.kZ)();ce.width="550px",ce.data={group:Z,theme:"group-theme"},this.dialog.open(v.c,ce).afterClosed().subscribe(ot=>{ot&&this.refreshTable()})}}return k.id="GroupSubgroupsComponent",k.\u0275fac=function(Z){return new(Z||k)(L.Y36(O.uw),L.Y36(m.ff),L.Y36(R.x4),L.Y36(R.fb))},k.\u0275cmp=L.Xpm({type:k,selectors:[["app-group-subgroups"]],viewQuery:function(Z,ce){if(1&Z&&L.Gf(ee,7),2&Z){let xe;L.iGM(xe=L.CRH())&&(ce.toggle=xe.first)}},hostVars:2,hostBindings:function(Z,ce){2&Z&&L.ekj("router-component",ce.true)},decls:18,vars:20,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2 action-button","color","accent","data-cy","new-subgroup-button","mat-flat-button","",3,"click",4,"ngIf"],[3,"matTooltipDisabled","matTooltip",4,"ngIf"],[3,"placeholder","filter"],["color","primary","labelPosition","before",1,"mr-1",3,"ngModel","change","ngModelChange"],["toggle",""],["class","ml-auto mr-auto",4,"ngIf"],["class","mt-3",4,"ngIf"],["color","accent","data-cy","new-subgroup-button","mat-flat-button","",1,"mr-2","action-button",3,"click"],[3,"matTooltipDisabled","matTooltip"],["color","warn","class","mr-2","data-cy","delete-group-button","mat-flat-button","",3,"disabled","click",4,"ngIf"],["color","warn","data-cy","delete-group-button","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[1,"mt-3"],[3,"disableRouting","expandAll","groups","hideCheckbox","filterValue","selection","moveGroup","refreshTable",4,"ngIf"],[3,"disableMembers","disableRouting","displayedColumns","groups","selection","filter","tableId","groupMoved","refreshTable",4,"ngIf"],[3,"disableRouting","expandAll","groups","hideCheckbox","filterValue","selection","moveGroup","refreshTable"],[3,"disableMembers","disableRouting","displayedColumns","groups","selection","filter","tableId","groupMoved","refreshTable"]],template:function(Z,ce){if(1&Z&&(L.TgZ(0,"div")(1,"h1",0),L._uU(2),L.ALo(3,"translate"),L.qZA(),L.TgZ(4,"perun-web-apps-refresh-button",1),L.NdJ("refresh",function(){return ce.refreshTable()}),L.qZA(),L.YNc(5,Q,3,3,"button",2),L.YNc(6,ge,3,5,"span",3),L.ALo(7,"async"),L.TgZ(8,"perun-web-apps-debounce-filter",4),L.NdJ("filter",function(ot){return ce.applyFilter(ot)}),L.qZA(),L.TgZ(9,"mat-slide-toggle",5,6),L.NdJ("change",function(){return ce.selected.clear()})("ngModelChange",function(ot){return ce.showGroupList=ot}),L._uU(11),L.ALo(12,"translate"),L.qZA(),L.TgZ(13,"label"),L._uU(14),L.ALo(15,"translate"),L.qZA(),L.YNc(16,ve,1,0,"mat-spinner",7),L.YNc(17,se,3,2,"div",8),L.qZA()),2&Z){const xe=L.MAs(10);L.xp6(2),L.Oqu(L.lcZ(3,10,"GROUP_DETAIL.SUBGROUPS.TITLE")),L.xp6(3),L.Q6J("ngIf",ce.createAuth),L.xp6(1),L.Q6J("ngIf",L.VKq(18,le,L.lcZ(7,12,ce.removeAuth$))),L.xp6(2),L.Q6J("placeholder","GROUP_DETAIL.SUBGROUPS.FILTER"),L.xp6(1),L.Q6J("ngModel",ce.showGroupList),L.xp6(2),L.Oqu(L.lcZ(12,14,"GROUP_DETAIL.SUBGROUPS.TREE_VIEW")),L.xp6(2),L.uIk("for",xe.inputId),L.xp6(1),L.Oqu(L.lcZ(15,16,"GROUP_DETAIL.SUBGROUPS.LIST_VIEW")),L.xp6(2),L.Q6J("ngIf",ce.loading),L.xp6(1),L.Q6J("ngIf",!ce.loading)}},dependencies:[q.O5,te.JJ,te.On,z.lW,ie.Ou,Te.gM,pe.Rr,Le.W,T.t,W.I,F.P,q.Ov,V.X$]}),k})()},85243:(Xe,ue,p)=>{"use strict";p.d(ue,{j:()=>ce});var e=p(61744),A=p(10036),C=p(95017),M=p(9244),m=p(65412),b=p(81591),D=p(64080),v=p(94650),R=p(89383),B=p(36895),w=p(4859),L=p(51572),O=p(25788),q=p(7434);function te(xe,ot){1&xe&&v._UZ(0,"mat-spinner",6)}function z(xe,ot){if(1&xe){const Fe=v.EpF();v.TgZ(0,"perun-web-apps-immediate-filter",7),v.NdJ("filter",function(tt){v.CHM(Fe);const vt=v.oxw();return v.KtG(vt.applyFilter(tt))}),v.qZA()}2&xe&&v.Q6J("placeholder","DIALOGS.ADD_MEMBER_GROUP.FILTER")}const ie=function(){return["select","id","name","description"]};function Te(xe,ot){if(1&xe&&v._UZ(0,"perun-web-apps-groups-list",8),2&xe){const Fe=v.oxw();v.Q6J("disableGroups",!0)("disableMembers",!0)("displayedColumns",v.DdM(8,ie))("groupsToDisableCheckbox",Fe.membersGroups)("disableRouting",!0)("groups",Fe.groups)("filter",Fe.filterValue)("selection",Fe.selection)}}function pe(xe,ot){if(1&xe){const Fe=v.EpF();v.TgZ(0,"div",9)(1,"button",10),v.NdJ("click",function(){v.CHM(Fe);const tt=v.oxw();return v.KtG(tt.onCancel())}),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.TgZ(4,"button",11),v.NdJ("click",function(){v.CHM(Fe);const tt=v.oxw();return v.KtG(tt.onAdd())}),v._uU(5),v.ALo(6,"translate"),v.qZA()()}if(2&xe){const Fe=v.oxw();v.xp6(2),v.hij(" ",v.lcZ(3,3,"DIALOGS.ADD_MEMBER_GROUP.CANCEL")," "),v.xp6(2),v.Q6J("disabled",0===Fe.selection.selected.length),v.xp6(1),v.hij(" ",v.lcZ(6,5,"DIALOGS.ADD_MEMBER_GROUP.ADD")," ")}}let Le=(()=>{class xe{constructor(Fe,ut,tt,vt,X,nt,Ae){this.dialogRef=Fe,this.data=ut,this.groupManager=tt,this.memberManager=vt,this.notificator=X,this.translate=nt,this.authResolver=Ae,this.loading=!1,this.groups=[],this.selection=new C.Ov(!0,[]),this.attrNames=[D.r.GROUP_SYNC_ENABLED,D.r.GROUP_LAST_SYNC_STATE,D.r.GROUP_LAST_SYNC_TIMESTAMP,D.r.GROUP_STRUCTURE_SYNC_ENABLED,D.r.GROUP_LAST_STRUCTURE_SYNC_STATE,D.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP],this.filterValue=""}ngOnInit(){this.theme=this.data.theme,this.membersGroups=this.data.membersGroups,this.loading=!0,this.memberManager.getMemberById(this.data.memberId).subscribe(Fe=>{this.member=Fe,this.groupManager.getAllRichGroupsWithAttributesByNames(this.member.voId,this.attrNames).subscribe(ut=>{this.groups=ut.filter(tt=>this.authResolver.isAuthorized("addMember_Group_Member_policy",[tt])),this.loading=!1},()=>this.loading=!1)})}onAdd(){const Fe=this.selection.selected.map(ut=>ut.id);this.loading=!0,this.groupManager.addMember(Fe,this.member.id).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.ADD_MEMBER_GROUP.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}applyFilter(Fe){this.filterValue=Fe}}return xe.\u0275fac=function(Fe){return new(Fe||xe)(v.Y36(m.so),v.Y36(m.WI),v.Y36(e.ff),v.Y36(e.uq),v.Y36(b.V6),v.Y36(R.sK),v.Y36(b.x4))},xe.\u0275cmp=v.Xpm({type:xe,selectors:[["app-add-member-group-dialog"]],decls:9,vars:10,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",1,"dialog-container"],[3,"placeholder","filter",4,"ngIf"],[3,"disableGroups","disableMembers","displayedColumns","groupsToDisableCheckbox","disableRouting","groups","filter","selection",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"placeholder","filter"],[3,"disableGroups","disableMembers","displayedColumns","groupsToDisableCheckbox","disableRouting","groups","filter","selection"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(Fe,ut){1&Fe&&(v.TgZ(0,"div")(1,"h1",0),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.YNc(4,te,1,0,"mat-spinner",1),v.TgZ(5,"div",2),v.YNc(6,z,1,1,"perun-web-apps-immediate-filter",3),v.YNc(7,Te,1,9,"perun-web-apps-groups-list",4),v.qZA(),v.YNc(8,pe,7,7,"div",5),v.qZA()),2&Fe&&(v.Tol(ut.theme),v.xp6(2),v.Oqu(v.lcZ(3,8,"DIALOGS.ADD_MEMBER_GROUP.TITLE")),v.xp6(2),v.Q6J("ngIf",ut.loading),v.xp6(2),v.Q6J("ngIf",!ut.loading),v.xp6(1),v.Q6J("ngIf",!ut.loading),v.xp6(1),v.Q6J("ngIf",!ut.loading))},dependencies:[B.O5,w.lW,m.uh,m.xY,m.H8,L.Ou,O.W,q.L,R.X$]}),xe})();var T=p(30671);function W(xe,ot){1&xe&&v._UZ(0,"mat-spinner",6)}function F(xe,ot){1&xe&&v._UZ(0,"th",15)}function V(xe,ot){if(1&xe&&(v.TgZ(0,"td",16),v._uU(1),v.qZA()),2&xe){const Fe=ot.$implicit;v.xp6(1),v.Oqu(Fe.name)}}function ee(xe,ot){1&xe&&v._UZ(0,"tr",17)}function Q(xe,ot){1&xe&&v._UZ(0,"tr",18)}function Ee(xe,ot){if(1&xe&&(v.TgZ(0,"div",7)(1,"p"),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.TgZ(4,"div",8),v._uU(5),v.ALo(6,"translate"),v.qZA(),v.TgZ(7,"table",9),v.ynx(8,10),v.YNc(9,F,1,0,"th",11),v.YNc(10,V,2,1,"td",12),v.BQk(),v.YNc(11,ee,1,0,"tr",13),v.YNc(12,Q,1,0,"tr",14),v.qZA()()),2&xe){const Fe=v.oxw();v.xp6(2),v.Oqu(v.lcZ(3,5,"DIALOGS.REMOVE_MEMBER_GROUP.DESCRIPTION")),v.xp6(3),v.hij(" ",v.lcZ(6,7,"DIALOGS.REMOVE_MEMBER_GROUP.ASK")," "),v.xp6(2),v.Q6J("dataSource",Fe.dataSource),v.xp6(4),v.Q6J("matHeaderRowDef",Fe.displayedColumns),v.xp6(1),v.Q6J("matRowDefColumns",Fe.displayedColumns)}}let ge=(()=>{class xe{constructor(Fe,ut,tt,vt,X){this.dialogRef=Fe,this.data=ut,this.groupManager=tt,this.notificator=vt,this.translate=X,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new T.by(this.data.groups)}onRemove(){this.loading=!0;const Fe=this.dataSource.data.map(ut=>ut.id);this.groupManager.removeMember(Fe,this.data.memberId).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.REMOVE_MEMBER_GROUP.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}}return xe.\u0275fac=function(Fe){return new(Fe||xe)(v.Y36(m.so),v.Y36(m.WI),v.Y36(e.ff),v.Y36(b.V6),v.Y36(R.sK))},xe.\u0275cmp=v.Xpm({type:xe,selectors:[["app-remove-member-group-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(Fe,ut){1&Fe&&(v.TgZ(0,"div")(1,"h1",0),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.YNc(4,W,1,0,"mat-spinner",1),v.YNc(5,Ee,13,9,"div",2),v.TgZ(6,"div",3)(7,"button",4),v.NdJ("click",function(){return ut.onCancel()}),v._uU(8),v.ALo(9,"translate"),v.qZA(),v.TgZ(10,"button",5),v.NdJ("click",function(){return ut.onRemove()}),v._uU(11),v.ALo(12,"translate"),v.qZA()()()),2&Fe&&(v.Tol(ut.theme),v.xp6(2),v.Oqu(v.lcZ(3,9,"DIALOGS.REMOVE_MEMBER_GROUP.TITLE")),v.xp6(2),v.Q6J("ngIf",ut.loading),v.xp6(1),v.Q6J("ngIf",!ut.loading),v.xp6(3),v.hij(" ",v.lcZ(9,11,"DIALOGS.REMOVE_MEMBER_GROUP.CANCEL")," "),v.xp6(2),v.Q6J("disabled",ut.loading),v.xp6(1),v.hij(" ",v.lcZ(12,13,"DIALOGS.REMOVE_MEMBER_GROUP.REMOVE")," "))},dependencies:[B.O5,w.lW,T.BZ,T.fO,T.as,T.w1,T.Dz,T.nj,T.ge,T.ev,T.XQ,T.Gk,m.uh,m.xY,m.H8,L.Ou,R.X$]}),xe})();var ve=p(54004),De=p(68675),he=p(94364),Ye=p(10266),Be=p(96214);function se(xe,ot){if(1&xe){const Fe=v.EpF();v.TgZ(0,"button",7),v.NdJ("click",function(){v.CHM(Fe);const tt=v.oxw();return v.KtG(tt.addGroup())}),v._uU(1),v.ALo(2,"translate"),v.qZA()}2&xe&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"MEMBER_DETAIL.GROUPS.ADD"),"\n"))}function le(xe,ot){if(1&xe){const Fe=v.EpF();v.TgZ(0,"span",8),v.ALo(1,"translate"),v.TgZ(2,"button",9),v.NdJ("click",function(){v.CHM(Fe);const tt=v.oxw();return v.KtG(tt.removeGroup())}),v._uU(3),v.ALo(4,"translate"),v.qZA()()}if(2&xe){const Fe=ot.ngIf,ut=v.oxw();v.s9C("matTooltip",v.lcZ(1,4,"MEMBER_DETAIL.GROUPS.REMOVE_PERMISSION_HINT")),v.Q6J("matTooltipDisabled",Fe.removeAuth),v.xp6(2),v.Q6J("disabled",0===ut.selection.selected.length||!Fe.removeAuth),v.xp6(1),v.hij(" ",v.lcZ(4,6,"MEMBER_DETAIL.GROUPS.REMOVE")," ")}}function N(xe,ot){1&xe&&v._UZ(0,"mat-spinner",10)}const k=function(){return["select","id","name","description","expiration","groupStatus"]};function be(xe,ot){if(1&xe){const Fe=v.EpF();v.TgZ(0,"perun-web-apps-groups-list",11),v.NdJ("refreshTable",function(){v.CHM(Fe);const tt=v.oxw();return v.KtG(tt.refreshTable())}),v.qZA()}if(2&xe){const Fe=v.oxw();v.Q6J("displayedColumns",v.DdM(8,k))("memberId",Fe.memberId)("disableRouting",!Fe.routeAuth)("groups",Fe.groups)("filter",Fe.filterValue)("memberGroupStatus",Fe.member.groupStatus)("selection",Fe.selection)("tableId",Fe.tableId)}}const Z=function(xe){return{removeAuth:xe}};let ce=(()=>{class xe{constructor(Fe,ut,tt,vt,X){this.groupsService=Fe,this.route=ut,this.dialog=tt,this.authResolver=vt,this.memberService=X,this.filterValue="",this.tableId=A.W1,this.selection=new C.Ov(!0,[]),this.removeAuth$=this.selection.changed.pipe((0,ve.U)(nt=>nt.source.selected.reduce((Ae,ye)=>Ae&&this.authResolver.isAuthorized("removeMember_Member_List_policy",[ye]),!0)),(0,De.O)(!0))}ngOnInit(){this.loading=!0,this.route.parent.params.subscribe(Fe=>{this.memberId=Number(Fe.memberId),this.memberService.getMemberById(this.memberId).subscribe(ut=>{this.member=ut,this.groupsService.getAllGroups(this.member.voId).subscribe(tt=>{this.allGroups=tt,this.refreshTable()})})})}refreshTable(){this.loading=!0,this.groupsService.getMemberRichGroupsWithAttributesByNames(this.memberId,[D.r.MEMBER_DEF_GROUP_EXPIRATION,D.r.MEMBER_GROUP_STATUS,D.r.MEMBER_GROUP_STATUS_INDIRECT]).subscribe(Fe=>{this.selection.clear(),this.groups=Fe,this.setAuthRights(),this.loading=!1},()=>this.loading=!1)}setAuthRights(){const Fe={id:this.member.voId,beanName:"Vo"};this.addAuth=this.allGroups.reduce((ut,tt)=>ut||this.authResolver.isAuthorized("addMember_Group_Member_policy",[tt]),!1),0!==this.groups.length&&(this.routeAuth=this.authResolver.isAuthorized("getGroupById_int_policy",[Fe,this.groups[0]]))}addGroup(){const Fe=(0,M.kZ)();Fe.width="850px",Fe.data={memberId:this.memberId,membersGroups:new Set(this.groups.map(tt=>tt.id)),theme:"member-theme"},this.dialog.open(Le,Fe).afterClosed().subscribe(tt=>{tt&&this.refreshTable()})}removeGroup(){const Fe=(0,M.kZ)();Fe.width="650px",Fe.data={memberId:this.memberId,groups:this.selection.selected,theme:"member-theme"},this.dialog.open(ge,Fe).afterClosed().subscribe(tt=>{tt&&this.refreshTable()})}applyFilter(Fe){this.filterValue=Fe}}return xe.id="MemberGroupsComponent",xe.\u0275fac=function(Fe){return new(Fe||xe)(v.Y36(e.ff),v.Y36(he.gz),v.Y36(m.uw),v.Y36(b.x4),v.Y36(e.uq))},xe.\u0275cmp=v.Xpm({type:xe,selectors:[["app-member-groups"]],hostVars:2,hostBindings:function(Fe,ut){2&Fe&&v.ekj("router-component",ut.true)},decls:10,vars:12,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","class","mr-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],[3,"matTooltipDisabled","matTooltip",4,"ngIf"],[3,"placeholder","filter"],["class","mr-auto ml-auto",4,"ngIf"],[3,"displayedColumns","memberId","disableRouting","groups","filter","memberGroupStatus","selection","tableId","refreshTable",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],[3,"matTooltipDisabled","matTooltip"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],[3,"displayedColumns","memberId","disableRouting","groups","filter","memberGroupStatus","selection","tableId","refreshTable"]],template:function(Fe,ut){1&Fe&&(v.TgZ(0,"h1",0),v._uU(1),v.ALo(2,"translate"),v.qZA(),v.TgZ(3,"perun-web-apps-refresh-button",1),v.NdJ("refresh",function(){return ut.refreshTable()}),v.qZA(),v.YNc(4,se,3,3,"button",2),v.YNc(5,le,5,8,"span",3),v.ALo(6,"async"),v.TgZ(7,"perun-web-apps-immediate-filter",4),v.NdJ("filter",function(vt){return ut.applyFilter(vt)}),v.qZA(),v.YNc(8,N,1,0,"mat-spinner",5),v.YNc(9,be,1,9,"perun-web-apps-groups-list",6)),2&Fe&&(v.xp6(1),v.Oqu(v.lcZ(2,6,"MEMBER_DETAIL.GROUPS.TITLE")),v.xp6(3),v.Q6J("ngIf",ut.addAuth),v.xp6(1),v.Q6J("ngIf",v.VKq(10,Z,v.lcZ(6,8,ut.removeAuth$))),v.xp6(2),v.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),v.xp6(1),v.Q6J("ngIf",ut.loading),v.xp6(1),v.Q6J("ngIf",!ut.loading))},dependencies:[B.O5,w.lW,L.Ou,Ye.gM,O.W,Be.t,q.L,B.Ov,R.X$]}),xe})()},94856:(Xe,ue,p)=>{"use strict";p.d(ue,{c:()=>Ee});var e=p(61744),A=p(10036),C=p(24006),M=p(36895),m=p(81591),b=p(9244),D=p(23325),v=p(94650),R=p(65412),B=p(3238),w=p(59549),L=p(4859),O=p(56709),q=p(84385),te=p(51572),z=p(10266),ie=p(96214),Te=p(39798),pe=p(64901),Le=p(99168),T=p(89383);function W(ge,ve){if(1&ge){const De=v.EpF();v.TgZ(0,"button",18),v.NdJ("click",function(){v.CHM(De);const Ye=v.oxw();return v.KtG(Ye.showDetails(!0))}),v._uU(1),v.ALo(2,"translate"),v.qZA()}2&ge&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_ALL_DETAILS")," "))}function F(ge,ve){if(1&ge){const De=v.EpF();v.TgZ(0,"button",18),v.NdJ("click",function(){v.CHM(De);const Ye=v.oxw();return v.KtG(Ye.showDetails(!1))}),v._uU(1),v.ALo(2,"translate"),v.qZA()}2&ge&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_LESS_DETAILS")," "))}function V(ge,ve){if(1&ge){const De=v.EpF();v.TgZ(0,"button",19),v.NdJ("click",function(){v.CHM(De);const Ye=v.oxw();return v.KtG(Ye.setColumns())}),v._uU(1),v.ALo(2,"translate"),v.qZA()}if(2&ge){const De=v.oxw();v.Q6J("disabled",De.showAllDetails),v.xp6(1),v.hij(" ",v.lcZ(2,2,"VO_DETAIL.APPLICATION.SET_COLUMN_SETTINGS")," ")}}function ee(ge,ve){1&ge&&v._UZ(0,"mat-spinner",20)}function Q(ge,ve){if(1&ge&&(v.TgZ(0,"div"),v._UZ(1,"app-applications-dynamic-list",21),v.qZA()),2&ge){const De=v.oxw();v.xp6(1),v.Q6J("tableId",De.showAllDetails?De.detailTableId:De.tableId)("searchString",De.filterValue)("displayedColumns",De.currentColumns)("fedColumns",De.configuredFedColumns)("fedAttrNames",De.fedAttrNames)("states",De.currentStates)("dateFrom",De.startDate.value)("dateTo",De.endDate.value)("includeGroupApps",De.showGroupApps)("refreshTable",De.refresh)("vo",De.vo)}}let Ee=(()=>{class ge{constructor(De,he,Ye,Be){this.registrarManager=De,this.entityStorageService=he,this.attributeManager=Ye,this.dialog=Be,this.state="pending",this.currentStates=["NEW","VERIFIED"],this.simplePrependColumns=["id"],this.groupPrependColumns=["id","groupId","groupName"],this.simpleColumns=["createdAt","type","state","createdBy","modifiedBy"],this.detailedColumns=["createdAt","type","state","extSourceName","extSourceType","user","createdBy","modifiedBy","modifiedAt","fedInfo"],this.configuredColumns=[],this.configuredFedColumns=[],this.currentColumns=[],this.columnsAuth=!1,this.filterValue="",this.showAllDetails=!1,this.detailTableId=A.Jf,this.tableId=A.Hi,this.showGroupApps=!1,this.refresh=!1,this.loading=!0,this.fedAttrNames=[]}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.startDate=new C.p4((0,M.p6)(this.yearAgo(),"yyyy-MM-dd","en-GB")),this.endDate=new C.p4((0,M.p6)(new Date,"yyyy-MM-dd","en-GB")),this.attributeManager.getIdpAttributeDefinitions().subscribe(De=>{De.forEach(he=>{this.fedAttrNames.includes(he.friendlyName)||this.fedAttrNames.push(he.friendlyName)})}),this.loadViewConfiguration()}select(){switch(this.state){case"approved":this.currentStates=["APPROVED"];break;case"rejected":this.currentStates=["REJECTED"];break;case"wfmv":this.currentStates=["NEW"];break;case"submited":this.currentStates=["VERIFIED"];break;case"pending":this.currentStates=["NEW","VERIFIED"];break;case"all":this.currentStates=null}}yearAgo(){const De=new Date;return De.setDate(De.getDate()-365),De}showGroupApplications(De){this.showGroupApps=De.checked,this.currentColumns=this.refreshColumns()}showDetails(De){this.loading=!0,this.showAllDetails=De,this.loadViewConfiguration()}applyFilter(De){this.filterValue=De}refreshColumns(){return this.showAllDetails?this.showGroupApps?this.groupPrependColumns.concat(this.detailedColumns):this.simplePrependColumns.concat(this.detailedColumns):this.configuredColumns.length>0?this.showGroupApps?this.groupPrependColumns.concat(this.configuredColumns):this.simplePrependColumns.concat(this.configuredColumns):this.showGroupApps?this.groupPrependColumns.concat(this.simpleColumns):this.simplePrependColumns.concat(this.simpleColumns)}loadViewConfiguration(){this.attributeManager.getVoAttributeByName(this.vo.id,"urn:perun:vo:attribute-def:def:applicationViewPreferences").subscribe(De=>{null!=De?.value&&De?.value.length>0?(this.configuredColumns=De.value,this.configuredFedColumns=this.configuredColumns.filter(he=>this.fedAttrNames.includes(he))):(this.configuredColumns=[],this.configuredFedColumns=[]),this.columnsAuth=De.writable,this.currentColumns=this.refreshColumns(),this.loading=!1})}setColumns(){const De=(0,b.kZ)();De.width="650px",De.data={columns:[],voId:this.vo.id,theme:"vo-theme"},this.dialog.open(D.a,De).afterClosed().subscribe(Ye=>{Ye&&this.loadViewConfiguration()})}}return ge.id="VoApplicationsComponent",ge.\u0275fac=function(De){return new(De||ge)(v.Y36(e.tk),v.Y36(m.fb),v.Y36(e.H8),v.Y36(R.uw))},ge.\u0275cmp=v.Xpm({type:ge,selectors:[["app-vo-applications"]],hostVars:2,hostBindings:function(De,he){2&De&&v.ekj("router-component",he.true)},decls:41,vars:41,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-stroked-button","","class","mr-2",3,"click",4,"ngIf"],[1,"input-width-250","mr-2"],["disableOptionCentering","",3,"value","selectionChange","valueChange"],["value","all"],["value","pending"],["value","wfmv"],["value","submited"],["value","approved"],["value","rejected"],[3,"placeholder","filter"],[3,"endDate","startDate","datePicker"],["color","primary",3,"checked","change"],["matTooltipPosition","above",3,"matTooltipDisabled","matTooltip"],["mat-stroked-button","","class","ml-2",3,"disabled","click",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],["mat-stroked-button","",1,"mr-2",3,"click"],["mat-stroked-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"tableId","searchString","displayedColumns","fedColumns","fedAttrNames","states","dateFrom","dateTo","includeGroupApps","refreshTable","vo"]],template:function(De,he){1&De&&(v.TgZ(0,"h1",0),v._uU(1),v.ALo(2,"translate"),v.qZA(),v.TgZ(3,"div")(4,"perun-web-apps-refresh-button",1),v.NdJ("refresh",function(){return he.refresh=!he.refresh}),v.qZA(),v.YNc(5,W,3,3,"button",2),v.YNc(6,F,3,3,"button",2),v.TgZ(7,"mat-form-field",3)(8,"mat-label"),v._uU(9),v.ALo(10,"translate"),v.qZA(),v.TgZ(11,"mat-select",4),v.NdJ("selectionChange",function(){return he.select()})("valueChange",function(Be){return he.state=Be}),v.TgZ(12,"mat-option",5),v._uU(13),v.ALo(14,"translate"),v.qZA(),v.TgZ(15,"mat-option",6),v._uU(16),v.ALo(17,"translate"),v.qZA(),v.TgZ(18,"mat-option",7),v._uU(19),v.ALo(20,"translate"),v.qZA(),v.TgZ(21,"mat-option",8),v._uU(22),v.ALo(23,"translate"),v.qZA(),v.TgZ(24,"mat-option",9),v._uU(25),v.ALo(26,"translate"),v.qZA(),v.TgZ(27,"mat-option",10),v._uU(28),v.ALo(29,"translate"),v.qZA()()(),v.TgZ(30,"perun-web-apps-debounce-filter",11),v.NdJ("filter",function(Be){return he.applyFilter(Be)}),v.qZA(),v.TgZ(31,"perun-web-apps-date-range",12),v.NdJ("datePicker",function(){return he.select()}),v.qZA(),v.TgZ(32,"div")(33,"mat-checkbox",13),v.NdJ("change",function(Be){return he.showGroupApplications(Be)}),v._uU(34),v.ALo(35,"translate"),v.qZA(),v.TgZ(36,"span",14),v.ALo(37,"translate"),v.YNc(38,V,3,4,"button",15),v.qZA()()(),v.YNc(39,ee,1,0,"mat-spinner",16),v.YNc(40,Q,2,11,"div",17)),2&De&&(v.xp6(1),v.Oqu(v.lcZ(2,21,"VO_DETAIL.APPLICATION.TITLE")),v.xp6(4),v.Q6J("ngIf",!he.showAllDetails),v.xp6(1),v.Q6J("ngIf",he.showAllDetails),v.xp6(3),v.Oqu(v.lcZ(10,23,"APPLICATIONS_LIST.STATE")),v.xp6(2),v.Q6J("value",he.state),v.xp6(2),v.Oqu(v.lcZ(14,25,"VO_DETAIL.APPLICATION.SELECTION_ALL")),v.xp6(3),v.Oqu(v.lcZ(17,27,"VO_DETAIL.APPLICATION.SELECTION_PENDING")),v.xp6(3),v.Oqu(v.lcZ(20,29,"VO_DETAIL.APPLICATION.SELECTION_WFMV")),v.xp6(3),v.Oqu(v.lcZ(23,31,"VO_DETAIL.APPLICATION.SELECTION_SUBMITTED")),v.xp6(3),v.Oqu(v.lcZ(26,33,"VO_DETAIL.APPLICATION.SELECTION_APPROVED")),v.xp6(3),v.Oqu(v.lcZ(29,35,"VO_DETAIL.APPLICATION.SELECTION_REJECTED")),v.xp6(2),v.Q6J("placeholder","VO_DETAIL.APPLICATION.FILTER"),v.xp6(1),v.Q6J("endDate",he.endDate)("startDate",he.startDate),v.xp6(2),v.Q6J("checked",he.showGroupApps),v.xp6(1),v.hij(" ",v.lcZ(35,37,"VO_DETAIL.APPLICATION.SHOW_GROUP_APPLICATIONS")," "),v.xp6(2),v.s9C("matTooltip",v.lcZ(37,39,"VO_DETAIL.APPLICATION.COLUMNS_TOOLTIP")),v.Q6J("matTooltipDisabled",!he.showAllDetails),v.xp6(2),v.Q6J("ngIf",he.columnsAuth),v.xp6(1),v.Q6J("ngIf",he.loading),v.xp6(1),v.Q6J("ngIf",!he.loading))},dependencies:[M.O5,B.ey,w.KE,w.hX,L.lW,O.oG,q.gD,te.Ou,z.gM,ie.t,Te.S,pe.P,Le.S,T.X$]}),ge})()},4732:(Xe,ue,p)=>{"use strict";p.d(ue,{G:()=>Z});var e=p(81889),A=p(41656),C=p(95017),M=p(87842),m=p(9244),b=p(61744),D=p(10036),v=p(64080),R=p(81591),B=p(61135),w=p(56451),L=p(63900),O=p(18505),q=p(68675),te=p(54004),z=p(94650),ie=p(65412),Te=p(36895),pe=p(24006),Le=p(4859),T=p(51572),W=p(10266),F=p(90455),V=p(25788),ee=p(96214),Q=p(58956),Ee=p(64901),ge=p(73358),ve=p(89383);const De=["toggle"];function he(ce,xe){if(1&ce){const ot=z.EpF();z.TgZ(0,"button",10),z.NdJ("click",function(){z.CHM(ot);const ut=z.oxw();return z.KtG(ut.onCreateGroup())}),z._uU(1),z.ALo(2,"translate"),z.qZA()}2&ce&&(z.xp6(1),z.hij(" ",z.lcZ(2,1,"VO_DETAIL.GROUPS.CREATE_GROUP")," "))}function Ye(ce,xe){if(1&ce){const ot=z.EpF();z.TgZ(0,"span",11),z.ALo(1,"translate"),z.TgZ(2,"button",12),z.NdJ("click",function(){z.CHM(ot);const ut=z.oxw();return z.KtG(ut.deleteGroup())}),z._uU(3),z.ALo(4,"translate"),z.qZA()()}if(2&ce){const ot=xe.ngIf,Fe=z.oxw();z.s9C("matTooltip",z.lcZ(1,4,"VO_DETAIL.GROUPS.DELETE_PERMISSION_HINT")),z.Q6J("matTooltipDisabled",ot.removeAuth),z.xp6(2),z.Q6J("disabled",0===Fe.selected.selected.length||!ot.removeAuth),z.xp6(1),z.hij(" ",z.lcZ(4,6,"VO_DETAIL.GROUPS.DELETE_GROUP")," ")}}function Be(ce,xe){if(1&ce){const ot=z.EpF();z.TgZ(0,"perun-web-apps-groups-tree",14),z.NdJ("moveGroup",function(ut){z.CHM(ot);const tt=z.oxw(2);return z.KtG(tt.onMoveGroup(ut))})("refreshTable",function(){z.CHM(ot);const ut=z.oxw(2);return z.KtG(ut.refresh())}),z.qZA()}if(2&ce){const ot=z.oxw(2);z.Q6J("expandAll",ot.filtering)("disableRouting",!ot.routeAuth)("groups",ot.groups)("selection",ot.selected)("filterValue",ot.filterValue)("vo",ot.vo)}}function se(ce,xe){if(1&ce&&(z.TgZ(0,"div"),z.YNc(1,Be,1,6,"perun-web-apps-groups-tree",13),z.ALo(2,"async"),z.qZA()),2&ce){const ot=z.oxw(),Fe=z.MAs(20);z.xp6(1),z.Q6J("perunWebAppsLoader",z.lcZ(2,2,ot.loading$))("perunWebAppsLoaderIndicator",Fe)}}function le(ce,xe){if(1&ce){const ot=z.EpF();z.TgZ(0,"perun-web-apps-groups-list",16),z.NdJ("groupMoved",function(ut){z.CHM(ot);const tt=z.oxw(2);return z.KtG(tt.onMoveGroup(ut))})("queryChanged",function(ut){z.CHM(ot);const tt=z.oxw(2);return z.KtG(tt.nextPage.next(ut))})("refreshTable",function(){z.CHM(ot);const ut=z.oxw(2);return z.KtG(ut.refresh())})("downloadAll",function(ut){z.CHM(ot);const tt=z.oxw(2);return z.KtG(tt.downloadAll(ut))}),z.ALo(1,"async"),z.qZA()}if(2&ce){const ot=z.oxw(2);z.Q6J("disableMembers",!0)("displayedColumns",ot.displayedColumns)("disableRouting",!ot.routeAuth)("groups",z.lcZ(1,7,ot.groupPage$))("selection",ot.selected)("filter",ot.filterValue)("tableId",ot.tableId)}}function N(ce,xe){if(1&ce&&(z.TgZ(0,"div"),z.YNc(1,le,2,9,"perun-web-apps-groups-list",15),z.ALo(2,"async"),z.qZA()),2&ce){const ot=z.oxw(),Fe=z.MAs(20);z.xp6(1),z.Q6J("perunWebAppsLoader",z.lcZ(2,2,ot.loading$))("perunWebAppsLoaderIndicator",Fe)}}function k(ce,xe){1&ce&&(z.TgZ(0,"div",17),z._UZ(1,"mat-spinner"),z.qZA())}const be=function(ce){return{removeAuth:ce}};let Z=(()=>{class ce{constructor(ot,Fe,ut,tt,vt){this.dialog=ot,this.groupService=Fe,this.authResolver=ut,this.entityStorageService=tt,this.groupUtils=vt,this.groups=[],this.nextPage=new B.X({}),this.groupPage$=this.nextPage.pipe((0,L.w)(X=>this.groupService.getGroupsPage({vo:this.vo.id,attrNames:this.attrNames,query:{order:X.order,pageSize:X.pageSize,offset:X.offset,searchString:X.searchString,sortColumn:X.sortColumn}})),(0,O.b)(X=>{this.groups=X.data,this.setAuthRights(),this.selected.clear(),setTimeout(()=>this.loadingSubject$.next(!1),200)}),(0,q.O)({data:[],totalCount:0,offset:0,pageSize:0})),this.showGroupList=!1,this.selected=new C.Ov(!0,[]),this.loadingSubject$=new B.X(!1),this.loading$=(0,w.T)(this.loadingSubject$,this.nextPage.pipe((0,te.U)(()=>!0))),this.filtering=!1,this.filterValue="",this.tableId=D.rc,this.displayedColumns=["select","id","name","description","menu"],this.removeAuth$=this.selected.changed.pipe((0,te.U)(X=>X.source.selected.reduce((nt,Ae)=>nt&&this.authResolver.isAuthorized("deleteGroup_Group_boolean_policy",[this.vo,Ae]),!0)),(0,q.O)(!0)),this.attrNames=[v.r.GROUP_SYNC_ENABLED,v.r.GROUP_LAST_SYNC_STATE,v.r.GROUP_LAST_SYNC_TIMESTAMP,v.r.GROUP_STRUCTURE_SYNC_ENABLED,v.r.GROUP_LAST_STRUCTURE_SYNC_STATE,v.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP]}onCreateGroup(){const ot=(0,m.kZ)();ot.width="450px",ot.data={voId:this.vo.id,parentGroup:null,theme:"vo-theme"},this.dialog.open(e.y,ot).afterClosed().subscribe(ut=>{ut&&this.refresh()})}ngOnInit(){this.vo=this.entityStorageService.getEntity(),this.setAuthRights(),"list"===localStorage.getItem("preferedValue")?(this.toggle.toggle(),this.showGroupList=!0):this.refresh(),this.toggle.change.subscribe(()=>{localStorage.setItem("preferedValue",this.toggle.checked?"list":"tree"),this.refresh()})}setAuthRights(){this.createAuth=this.authResolver.isAuthorized("createGroup_Vo_Group_policy",[this.vo]),0!==this.groups.length&&(this.routeAuth=this.authResolver.isAuthorized("getGroupById_int_policy",[this.vo,this.groups[0]]))}deleteGroup(){const ot=(0,m.kZ)();ot.width="450px",ot.data={voId:this.vo.id,groups:this.selected.selected,theme:"vo-theme"},this.dialog.open(A.P,ot).afterClosed().subscribe(ut=>{ut&&this.refresh()})}removeAllGroups(){this.selected.clear()}onMoveGroup(ot){const Fe=(0,m.kZ)();Fe.width="550px",Fe.data={group:ot,theme:"vo-theme"},this.dialog.open(M.c,Fe).afterClosed().subscribe(tt=>{tt&&this.refresh()})}loadAllGroups(){this.groupService.getAllRichGroupsWithAttributesByNames(this.vo.id,this.attrNames).subscribe(ot=>{this.groups=ot,this.selected.clear(),this.setAuthRights(),this.loadingSubject$.next(!1)})}applyFilter(ot){this.filterValue=ot,this.filtering=""!==ot}refresh(){this.loadingSubject$.next(!0),this.showGroupList?this.nextPage.next(this.nextPage.value):this.loadAllGroups()}downloadAll(ot){const Fe=this.nextPage.getValue(),ut=(tt,vt)=>this.groupUtils.getDataForColumn(tt,vt);this.groupService.getGroupsPage({vo:this.vo.id,attrNames:this.attrNames,query:{order:Fe.order,pageSize:ot.length,offset:0,searchString:Fe.searchString,sortColumn:Fe.sortColumn}}).subscribe({next:tt=>{(0,m.O6)((0,m.Xn)(tt.data,this.displayedColumns,ut),ot.format)}})}}return ce.id="VoGroupsComponent",ce.\u0275fac=function(ot){return new(ot||ce)(z.Y36(ie.uw),z.Y36(b.ff),z.Y36(R.x4),z.Y36(R.fb),z.Y36(R.K1))},ce.\u0275cmp=z.Xpm({type:ce,selectors:[["app-vo-groups"]],viewQuery:function(ot,Fe){if(1&ot&&z.Gf(De,7),2&ot){let ut;z.iGM(ut=z.CRH())&&(Fe.toggle=ut.first)}},hostVars:2,hostBindings:function(ot,Fe){2&ot&&z.ekj("router-component",Fe.true)},decls:21,vars:20,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","class","mr-2 action-button","data-cy","create-group-button","mat-flat-button","",3,"click",4,"ngIf"],[3,"matTooltipDisabled","matTooltip",4,"ngIf"],[3,"placeholder","filter"],["color","primary","labelPosition","before",1,"mr-1",3,"ngModel","change","ngModelChange"],["toggle",""],[1,"mt-3","position-relative"],[4,"ngIf"],["spinner",""],["color","accent","data-cy","create-group-button","mat-flat-button","",1,"mr-2","action-button",3,"click"],[3,"matTooltipDisabled","matTooltip"],["color","warn","data-cy","delete-group-button","mat-flat-button","",1,"mr-2",3,"disabled","click"],["theme","vo-theme",3,"expandAll","disableRouting","groups","selection","filterValue","vo","moveGroup","refreshTable",4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["theme","vo-theme",3,"expandAll","disableRouting","groups","selection","filterValue","vo","moveGroup","refreshTable"],["theme","vo-theme",3,"disableMembers","displayedColumns","disableRouting","groups","selection","filter","tableId","groupMoved","queryChanged","refreshTable","downloadAll",4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["theme","vo-theme",3,"disableMembers","displayedColumns","disableRouting","groups","selection","filter","tableId","groupMoved","queryChanged","refreshTable","downloadAll"],[1,"spinner-container"]],template:function(ot,Fe){if(1&ot&&(z.TgZ(0,"div")(1,"h1",0),z._uU(2),z.ALo(3,"translate"),z.qZA(),z.TgZ(4,"perun-web-apps-refresh-button",1),z.NdJ("refresh",function(){return Fe.refresh()}),z.qZA(),z.YNc(5,he,3,3,"button",2),z.YNc(6,Ye,5,8,"span",3),z.ALo(7,"async"),z.TgZ(8,"perun-web-apps-debounce-filter",4),z.NdJ("filter",function(tt){return Fe.applyFilter(tt)}),z.qZA(),z.TgZ(9,"mat-slide-toggle",5,6),z.NdJ("change",function(){return Fe.removeAllGroups()})("ngModelChange",function(tt){return Fe.showGroupList=tt}),z._uU(11),z.ALo(12,"translate"),z.qZA(),z.TgZ(13,"label"),z._uU(14),z.ALo(15,"translate"),z.qZA(),z.TgZ(16,"div",7),z.YNc(17,se,3,4,"div",8),z.YNc(18,N,3,4,"div",8),z.qZA()(),z.YNc(19,k,2,0,"ng-template",null,9,z.W1O)),2&ot){const ut=z.MAs(10);z.xp6(2),z.Oqu(z.lcZ(3,10,"VO_DETAIL.GROUPS.TITLE")),z.xp6(3),z.Q6J("ngIf",Fe.createAuth),z.xp6(1),z.Q6J("ngIf",z.VKq(18,be,z.lcZ(7,12,Fe.removeAuth$))),z.xp6(2),z.Q6J("placeholder","VO_DETAIL.GROUPS.FILTER"),z.xp6(1),z.Q6J("ngModel",Fe.showGroupList),z.xp6(2),z.hij(" ",z.lcZ(12,14,"VO_DETAIL.GROUPS.TREE_VIEW"),""),z.xp6(2),z.uIk("for",ut.inputId),z.xp6(1),z.Oqu(z.lcZ(15,16,"VO_DETAIL.GROUPS.LIST_VIEW")),z.xp6(3),z.Q6J("ngIf",!Fe.showGroupList),z.xp6(1),z.Q6J("ngIf",Fe.showGroupList)}},dependencies:[Te.O5,pe.JJ,pe.On,Le.lW,T.Ou,W.gM,F.Rr,V.W,ee.t,Q.I,Ee.P,ge.e,Te.Ov,ve.X$],changeDetection:0}),ce})()},81847:(Xe,ue,p)=>{"use strict";p.d(ue,{y:()=>le});var e=p(95017),A=p(81591),C=p(53455),M=p(61744),m=p(64080),b=p(24006),D=p(10036),v=p(9244),R=p(74414),B=p(51525),w=p(94742),L=p(94650),O=p(65412),q=p(36895),te=p(3238),z=p(59549),ie=p(4859),Te=p(84385),pe=p(51572),Le=p(10266),T=p(28255),W=p(96214),F=p(64901),V=p(4811),ee=p(89383),Q=p(20551);function Ee(N,k){if(1&N){const be=L.EpF();L.TgZ(0,"button",16),L.NdJ("click",function(){L.CHM(be);const ce=L.oxw();return L.KtG(ce.onAddMember())}),L._uU(1),L.ALo(2,"translate"),L.qZA()}if(2&N){const be=L.oxw();L.Q6J("disabled",be.blockManualMemberAdding),L.xp6(1),L.hij(" ",L.lcZ(2,2,"VO_DETAIL.MEMBERS.ADD_MEMBER")," ")}}function ge(N,k){if(1&N&&(L.TgZ(0,"button",17),L._uU(1),L.ALo(2,"translate"),L.qZA()),2&N){const be=L.oxw(),Z=L.MAs(11);L.Q6J("disabled",be.blockManualMemberAdding)("matMenuTriggerFor",Z),L.xp6(1),L.hij(" ",L.lcZ(2,3,"VO_DETAIL.MEMBERS.INVITE")," ")}}function ve(N,k){if(1&N){const be=L.EpF();L.TgZ(0,"button",18),L.NdJ("click",function(){L.CHM(be);const ce=L.oxw();return L.KtG(ce.onInviteMember())}),L._uU(1),L.ALo(2,"translate"),L.qZA()}2&N&&(L.xp6(1),L.hij(" ",L.lcZ(2,1,"VO_DETAIL.MEMBERS.INVITE_ONE")," "))}function De(N,k){if(1&N){const be=L.EpF();L.TgZ(0,"button",18),L.NdJ("click",function(){L.CHM(be);const ce=L.oxw();return L.KtG(ce.onBulkInvite())}),L._uU(1),L.ALo(2,"translate"),L.qZA()}2&N&&(L.xp6(1),L.hij(" ",L.lcZ(2,1,"VO_DETAIL.MEMBERS.INVITE_BULK")," "))}function he(N,k){if(1&N){const be=L.EpF();L.TgZ(0,"button",19),L.NdJ("click",function(){L.CHM(be);const ce=L.oxw();return L.KtG(ce.onRemoveMembers())}),L._uU(1),L.ALo(2,"translate"),L.qZA()}if(2&N){const be=L.oxw();L.Q6J("disabled",be.selection.isEmpty()),L.xp6(1),L.hij(" ",L.lcZ(2,2,"VO_DETAIL.MEMBERS.REMOVE_MEMBERS")," ")}}function Ye(N,k){if(1&N&&(L.TgZ(0,"mat-option",20),L._uU(1),L.ALo(2,"memberStatus"),L.qZA()),2&N){const be=k.$implicit;L.Q6J("value",be),L.xp6(1),L.Oqu(L.lcZ(2,2,be))}}function Be(N,k){1&N&&L._UZ(0,"mat-spinner",21)}function se(N,k){if(1&N&&L._UZ(0,"perun-web-apps-members-dynamic-list",22),2&N){const be=L.oxw();L.Q6J("attrNames",be.attrNames)("selection",be.selection)("tableId",be.tableId)("displayedColumns",be.displayedColumns)("updateTable",be.updateTable)("searchString",be.searchString)("selectedStatuses",be.selectedStatuses)("voId",be.vo.id)("isMembersGroup",!1)}}let le=(()=>{class N{constructor(be,Z,ce,xe,ot,Fe,ut){this.notificator=be,this.dialog=Z,this.authzService=ce,this.storeService=xe,this.attributesManager=ot,this.apiRequest=Fe,this.entityStorageService=ut,this.members=null,this.selection=new e.Ov(!0,[]),this.loading=!1,this.attrNames=[m.r.MEMBER_DEF_ORGANIZATION,m.r.MEMBER_DEF_MAIL,m.r.USER_DEF_ORGANIZATION,m.r.USER_DEF_PREFERRED_MAIL,m.r.MEMBER_DEF_EXPIRATION,m.r.MEMBER_LIFECYCLE_ALTERABLE],this.statuses=new b.p4,this.statusList=["VALID","INVALID","EXPIRED","DISABLED"],this.selectedStatuses=[],this.tableId=D.j1,this.displayedColumns=["checkbox","id","fullName","status","organization","email","logins"],this.updateTable=!1}ngOnInit(){this.loading=!0,this.statuses.setValue(this.selectedStatuses),this.attrNames=this.attrNames.concat(this.storeService.getLoginAttributeNames()),this.vo=this.entityStorageService.getEntity(),this.setAuthRights(),this.isManualAddingBlocked(this.vo.id).then(()=>this.loading=!1)}setAuthRights(){this.addAuth=this.authzService.isAuthorized("createMember_Vo_User_List_policy",[this.vo])&&this.authzService.isAuthorized("createMember_Vo_Candidate_List_policy",[this.vo]),this.removeAuth=this.authzService.isAuthorized("deleteMembers_List_policy",[this.vo]),this.displayedColumns=this.removeAuth?this.displayedColumns:["id","fullName","status","organization","email","logins"],null!==this.members&&0!==this.members.length&&(this.routeAuth=this.authzService.isAuthorized("getMemberById_int_policy",[this.vo,this.members[0]])),this.inviteAuth=this.authzService.isAuthorized("vo-sendInvitation_Vo_Group_String_String_String_policy",[this.vo])}onSearchByString(be){this.searchString=be,this.selection.clear()}onAddMember(){const be=(0,v.kZ)();be.width="1000px",be.data={voId:this.vo.id},this.dialog.open(B.H,be).afterClosed().subscribe(ce=>{ce&&(this.updateTable=!this.updateTable,this.selection.clear())})}onRemoveMembers(){const be=(0,v.kZ)();be.width="450px",be.data={members:this.selection.selected,theme:"vo-theme"},this.dialog.open(C.X,be).afterClosed().subscribe(ce=>{ce&&(this.updateTable=!this.updateTable,this.selection.clear())})}onInviteMember(){const be=(0,v.kZ)();be.width="650px",be.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(R.R,be)}onBulkInvite(){const be=(0,v.kZ)();be.width="650px",be.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(w.F,be)}displaySelectedStatuses(){if(this.selectedStatuses.length===this.statusList.length)return"ALL";const be=this.statuses.value;return be?`${be[0]} ${be.length>1?"(+"+(be.length-1).toString()+" "+(2===be.length?"other)":"others)"):""}`:""}isManualAddingBlocked(be){return new Promise(Z=>{this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getVoAttributeByName(be,"urn:perun:vo:attribute-def:def:blockManualMemberAdding").subscribe({next:ce=>{this.blockManualMemberAdding=null!==ce.value,Z()},error:ce=>{"PrivilegeException"!==ce.name&&this.notificator.showError(ce.name),Z()}})})}changeStatuses(){this.selection.clear(),this.selectedStatuses=this.statuses.value}refreshTable(){this.selection.clear(),this.updateTable=!this.updateTable}}return N.id="VoMembersComponent",N.\u0275fac=function(be){return new(be||N)(L.Y36(A.V6),L.Y36(O.uw),L.Y36(A.x4),L.Y36(A.d6),L.Y36(M.H8),L.Y36(A.F5),L.Y36(A.fb))},N.\u0275cmp=L.Xpm({type:N,selectors:[["app-vo-members"]],hostVars:2,hostBindings:function(be,Z){2&be&&L.ekj("router-component",Z.true)},decls:27,vars:23,consts:[[1,"vo-theme"],[1,"page-subtitle"],[1,"align-elements"],[3,"click"],[3,"matTooltipDisabled","matTooltip"],["color","accent","class","mr-2 action-button","data-cy","add-members","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","mr-2 dropdown-toggle","color","accent","mat-flat-button","",3,"disabled","matMenuTriggerFor",4,"ngIf"],["menu","matMenu"],["class","action-button","mat-menu-item","",3,"click",4,"ngIf"],["color","warn","data-cy","remove-members","class","mr-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],[1,"mr-2","fix-select"],["multiple","",3,"formControl","closed"],["class","vo-theme",3,"value",4,"ngFor","ngForOf"],[1,"mt-2","search-field",3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"attrNames","selection","tableId","displayedColumns","updateTable","searchString","selectedStatuses","voId","isMembersGroup",4,"ngIf"],["color","accent","data-cy","add-members","mat-flat-button","",1,"mr-2","action-button",3,"disabled","click"],["color","accent","mat-flat-button","",1,"mr-2","dropdown-toggle",3,"disabled","matMenuTriggerFor"],["mat-menu-item","",1,"action-button",3,"click"],["color","warn","data-cy","remove-members","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"vo-theme",3,"value"],[1,"ml-auto","mr-auto"],[3,"attrNames","selection","tableId","displayedColumns","updateTable","searchString","selectedStatuses","voId","isMembersGroup"]],template:function(be,Z){1&be&&(L.TgZ(0,"div",0)(1,"h1",1),L._uU(2),L.ALo(3,"translate"),L.qZA(),L.TgZ(4,"div",2)(5,"perun-web-apps-refresh-button",3),L.NdJ("click",function(){return Z.refreshTable()}),L.qZA(),L.TgZ(6,"div",4),L.ALo(7,"translate"),L.YNc(8,Ee,3,4,"button",5),L.qZA(),L.YNc(9,ge,3,5,"button",6),L.TgZ(10,"mat-menu",null,7),L.YNc(12,ve,3,3,"button",8),L.YNc(13,De,3,3,"button",8),L.qZA(),L.YNc(14,he,3,4,"button",9),L.TgZ(15,"mat-form-field",10)(16,"mat-label"),L._uU(17),L.ALo(18,"translate"),L.qZA(),L.TgZ(19,"mat-select",11),L.NdJ("closed",function(){return Z.changeStatuses()}),L.TgZ(20,"mat-select-trigger"),L._uU(21),L.ALo(22,"memberStatus"),L.qZA(),L.YNc(23,Ye,3,4,"mat-option",12),L.qZA()(),L.TgZ(24,"perun-web-apps-debounce-filter",13),L.NdJ("filter",function(xe){return Z.onSearchByString(xe)}),L.qZA()(),L.YNc(25,Be,1,0,"mat-spinner",14),L.YNc(26,se,1,9,"perun-web-apps-members-dynamic-list",15),L.qZA()),2&be&&(L.xp6(2),L.Oqu(L.lcZ(3,15,"VO_DETAIL.MEMBERS.TITLE")),L.xp6(4),L.s9C("matTooltip",L.lcZ(7,17,"VO_DETAIL.MEMBERS.ADD_MEMBER_DISABLED")),L.Q6J("matTooltipDisabled",!Z.blockManualMemberAdding),L.xp6(2),L.Q6J("ngIf",Z.addAuth),L.xp6(1),L.Q6J("ngIf",Z.inviteAuth),L.xp6(3),L.Q6J("ngIf",Z.inviteAuth),L.xp6(1),L.Q6J("ngIf",Z.inviteAuth),L.xp6(1),L.Q6J("ngIf",Z.removeAuth),L.xp6(3),L.Oqu(L.lcZ(18,19,"VO_DETAIL.MEMBERS.FILTER_STATUS")),L.xp6(2),L.Q6J("formControl",Z.statuses),L.xp6(2),L.hij(" ",L.lcZ(22,21,Z.displaySelectedStatuses())," "),L.xp6(2),L.Q6J("ngForOf",Z.statusList),L.xp6(1),L.Q6J("placeholder","VO_DETAIL.MEMBERS.SEARCH_DESCRIPTION"),L.xp6(1),L.Q6J("ngIf",Z.loading),L.xp6(1),L.Q6J("ngIf",!Z.loading))},dependencies:[q.sg,q.O5,te.ey,z.KE,z.hX,b.JJ,b.oH,ie.lW,Te.gD,Te.$L,pe.Ou,Le.gM,T.VK,T.OP,T.p6,W.t,F.P,V.m,ee.X$,Q.l],styles:[".search-field[_ngcontent-%COMP%]{width:325px}.align-elements[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:wrap}.fix-select[_ngcontent-%COMP%]{margin-top:8px}"]}),N})()},68056:(Xe,ue,p)=>{"use strict";p.d(ue,{z:()=>pe});var e=p(95017),A=p(61744),C=p(533),M=p(10036),m=p(9244),b=p(81591),D=p(94650),v=p(65412),R=p(36895),B=p(4859),w=p(51572),L=p(96214),O=p(7434),q=p(62109),te=p(89383);function z(Le,T){if(1&Le){const W=D.EpF();D.TgZ(0,"button",6),D.NdJ("click",function(){D.CHM(W);const V=D.oxw();return D.KtG(V.deleteSelectedResources())}),D._uU(1),D.ALo(2,"translate"),D.qZA()}if(2&Le){const W=D.oxw();D.Q6J("disabled",0===W.selected.selected.length),D.xp6(1),D.hij(" ",D.lcZ(2,2,"VO_DETAIL.RESOURCES.LIST.DELETE")," ")}}function ie(Le,T){1&Le&&D._UZ(0,"mat-spinner",7)}function Te(Le,T){if(1&Le&&D._UZ(0,"perun-web-apps-resources-list",8),2&Le){const W=D.oxw();D.Q6J("disableRouting",!W.routeAuth)("filterValue",W.filterValue)("resources",W.resources)("routingVo",!0)("displayedColumns",W.displayedColumns)("selection",W.selected)("tableId",W.tableId)}}let pe=(()=>{class Le{constructor(W,F,V,ee){this.resourcesManager=W,this.dialog=F,this.authResolver=V,this.entityStorageService=ee,this.resources=[],this.selected=new e.Ov(!0,[]),this.filterValue="",this.displayedColumns=[],this.tableId=M.nT,this.routeAuth=!1}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.setAuthRights(),this.refreshTable()}setAuthRights(){this.removeAuth=this.authResolver.isAuthorized("deleteResource_Resource_policy",[this.vo]),0!==this.resources.length&&(this.routeAuth=this.authResolver.isAuthorized("getResourceById_int_policy",[this.vo,this.resources[0]])),this.displayedColumns=this.removeAuth?["select","id","name","facility","tags","description"]:["id","name","facility","tags","description"]}refreshTable(){this.loading=!0,this.resourcesManager.getRichResources(this.vo.id).subscribe(W=>{this.resources=W,this.selected.clear(),this.setAuthRights(),this.loading=!1})}applyFilter(W){this.filterValue=W}deleteSelectedResources(){const W=(0,m.kZ)();W.width="450px",W.data={theme:"vo-theme",resources:this.selected.selected},this.dialog.open(C.f,W).afterClosed().subscribe(V=>{V&&this.refreshTable()})}}return Le.id="VoResourcesPreviewComponent",Le.\u0275fac=function(W){return new(W||Le)(D.Y36(A.xk),D.Y36(v.uw),D.Y36(b.x4),D.Y36(b.fb))},Le.\u0275cmp=D.Xpm({type:Le,selectors:[["app-vo-resources-preview"]],hostVars:2,hostBindings:function(W,F){2&W&&D.ekj("router-component",F.true)},decls:9,vars:7,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableRouting","filterValue","resources","routingVo","displayedColumns","selection","tableId",4,"ngIf"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"disableRouting","filterValue","resources","routingVo","displayedColumns","selection","tableId"]],template:function(W,F){1&W&&(D.TgZ(0,"div")(1,"h1",0),D._uU(2),D.ALo(3,"translate"),D.qZA(),D.TgZ(4,"perun-web-apps-refresh-button",1),D.NdJ("refresh",function(){return F.refreshTable()}),D.qZA(),D.YNc(5,z,3,4,"button",2),D.TgZ(6,"perun-web-apps-immediate-filter",3),D.NdJ("filter",function(ee){return F.applyFilter(ee)}),D.qZA(),D.YNc(7,ie,1,0,"mat-spinner",4),D.YNc(8,Te,1,7,"perun-web-apps-resources-list",5),D.qZA()),2&W&&(D.xp6(2),D.Oqu(D.lcZ(3,5,"VO_DETAIL.RESOURCES.LIST.TITLE")),D.xp6(3),D.Q6J("ngIf",F.removeAuth),D.xp6(1),D.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),D.xp6(1),D.Q6J("ngIf",F.loading),D.xp6(1),D.Q6J("ngIf",!F.loading))},dependencies:[R.O5,B.lW,w.Ou,L.t,O.L,q.C,te.X$]}),Le})()},24219:(Xe,ue,p)=>{"use strict";p.d(ue,{z:()=>nt});var e=p(81591),A=p(61744),C=p(94650),M=p(36895),m=p(3848),b=p(98380),D=p(96214),v=p(30671),R=p(51572),B=p(44850),w=p(37084),L=p(89383);function O(Ae,ye){1&Ae&&C._UZ(0,"mat-spinner",2)}function q(Ae,ye){if(1&Ae&&(C.TgZ(0,"mat-panel-description")(1,"div")(2,"i",10),C._uU(3," error "),C.qZA(),C._uU(4),C.ALo(5,"translate"),C.ALo(6,"translate"),C.qZA()()),2&Ae){const _e=C.oxw().$implicit,Se=C.oxw(2);C.xp6(4),C.HOy(" ",Se.getErrorCountStates(_e)," ",C.lcZ(5,4,"VO_DETAIL.RESOURCES.STATES.FROM")," ",_e.taskList.length," ",C.lcZ(6,6,"VO_DETAIL.RESOURCES.STATES.TASKS_WITH_ERROR_STATE")," ")}}function te(Ae,ye){1&Ae&&(C.TgZ(0,"th",23),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&Ae&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_ID")," "))}function z(Ae,ye){if(1&Ae&&(C.TgZ(0,"td",24),C._uU(1),C.qZA()),2&Ae){const _e=ye.$implicit;C.xp6(1),C.Oqu(_e.id)}}function ie(Ae,ye){1&Ae&&(C.TgZ(0,"th",23),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&Ae&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_SERVICE")," "))}function Te(Ae,ye){if(1&Ae&&(C.TgZ(0,"td",24),C._uU(1),C.qZA()),2&Ae){const _e=ye.$implicit;C.xp6(1),C.Oqu(_e.service.name)}}function pe(Ae,ye){1&Ae&&(C.TgZ(0,"th",23),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&Ae&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_STATUS")," "))}function Le(Ae,ye){if(1&Ae&&(C.TgZ(0,"td",24),C._uU(1),C.qZA()),2&Ae){const _e=ye.$implicit;C.xp6(1),C.Oqu(_e.status)}}function T(Ae,ye){1&Ae&&(C.TgZ(0,"th",23),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&Ae&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_SCHEDULED")," "))}function W(Ae,ye){if(1&Ae&&(C.TgZ(0,"div"),C._uU(1),C.ALo(2,"date"),C.qZA()),2&Ae){const _e=C.oxw().$implicit;C.xp6(1),C.hij(" ",C.xi3(2,1,_e.schedule,"d.M.y H:mm:ss")," ")}}function F(Ae,ye){1&Ae&&(C._uU(0),C.ALo(1,"translate")),2&Ae&&C.hij(" ",C.lcZ(1,1,"VO_DETAIL.RESOURCES.STATES.NOT_YET")," ")}function V(Ae,ye){if(1&Ae&&(C.TgZ(0,"td",24),C.YNc(1,W,3,4,"div",25),C.YNc(2,F,2,3,"ng-template",26,27,C.W1O),C.qZA()),2&Ae){const _e=ye.$implicit,Se=C.MAs(3);C.xp6(1),C.Q6J("ngIf",_e.schedule)("ngIfElse",Se)}}function ee(Ae,ye){1&Ae&&(C.TgZ(0,"th",23),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&Ae&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_STARTED")," "))}function Q(Ae,ye){if(1&Ae&&(C.TgZ(0,"div"),C._uU(1),C.ALo(2,"date"),C.qZA()),2&Ae){const _e=C.oxw().$implicit;C.xp6(1),C.hij(" ",C.xi3(2,1,_e.schedule,"d.M.y H:mm:ss")," ")}}function Ee(Ae,ye){1&Ae&&(C._uU(0),C.ALo(1,"translate")),2&Ae&&C.hij(" ",C.lcZ(1,1,"VO_DETAIL.RESOURCES.STATES.NOT_YET")," ")}function ge(Ae,ye){if(1&Ae&&(C.TgZ(0,"td",24),C.YNc(1,Q,3,4,"div",25),C.YNc(2,Ee,2,3,"ng-template",26,27,C.W1O),C.qZA()),2&Ae){const _e=ye.$implicit,Se=C.MAs(3);C.xp6(1),C.Q6J("ngIf",_e.startTime)("ngIfElse",Se)}}function ve(Ae,ye){1&Ae&&(C.TgZ(0,"th",23),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&Ae&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_ENDED")," "))}function De(Ae,ye){if(1&Ae&&(C.TgZ(0,"div"),C._uU(1),C.ALo(2,"date"),C.qZA()),2&Ae){const _e=C.oxw().$implicit;C.xp6(1),C.hij(" ",C.xi3(2,1,_e.schedule,"d.M.y H:mm:ss")," ")}}function he(Ae,ye){1&Ae&&(C._uU(0),C.ALo(1,"translate")),2&Ae&&C.hij(" ",C.lcZ(1,1,"VO_DETAIL.RESOURCES.STATES.NOT_YET")," ")}function Ye(Ae,ye){if(1&Ae&&(C.TgZ(0,"td",24),C.YNc(1,De,3,4,"div",25),C.YNc(2,he,2,3,"ng-template",26,27,C.W1O),C.qZA()),2&Ae){const _e=ye.$implicit,Se=C.MAs(3);C.xp6(1),C.Q6J("ngIf",_e.endTime)("ngIfElse",Se)}}function Be(Ae,ye){1&Ae&&C._UZ(0,"tr",28)}const se=function(Ae,ye,_e){return{redTableItem:Ae,greenTableItem:ye,yellowTableItem:_e}};function le(Ae,ye){if(1&Ae&&C._UZ(0,"tr",29),2&Ae){const _e=ye.$implicit;C.Q6J("ngClass",C.kEZ(1,se,"ERROR"===_e.status||"SENDERROR"===_e.status||"GENERROR"===_e.status,"DONE"===_e.status,"WARNING"===_e.status))}}function N(Ae,ye){if(1&Ae&&(C.TgZ(0,"table",12),C.ynx(1,13),C.YNc(2,te,3,3,"th",14),C.YNc(3,z,2,1,"td",15),C.BQk(),C.ynx(4,16),C.YNc(5,ie,3,3,"th",14),C.YNc(6,Te,2,1,"td",15),C.BQk(),C.ynx(7,17),C.YNc(8,pe,3,3,"th",14),C.YNc(9,Le,2,1,"td",15),C.BQk(),C.ynx(10,18),C.YNc(11,T,3,3,"th",14),C.YNc(12,V,4,2,"td",15),C.BQk(),C.ynx(13,19),C.YNc(14,ee,3,3,"th",14),C.YNc(15,ge,4,2,"td",15),C.BQk(),C.ynx(16,20),C.YNc(17,ve,3,3,"th",14),C.YNc(18,Ye,4,2,"td",15),C.BQk(),C.YNc(19,Be,1,0,"tr",21),C.YNc(20,le,1,5,"tr",22),C.qZA()),2&Ae){const _e=C.oxw(2).$implicit,Se=C.oxw(2);C.Q6J("dataSource",Se.datasources[Se.propagation.indexOf(_e)]),C.xp6(19),C.Q6J("matHeaderRowDef",Se.displayedColumns),C.xp6(1),C.Q6J("matRowDefColumns",Se.displayedColumns)}}function k(Ae,ye){1&Ae&&(C.TgZ(0,"div"),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&Ae&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.NO_TASKS")," "))}function be(Ae,ye){if(1&Ae&&(C._UZ(0,"mat-divider"),C.YNc(1,N,21,3,"table",11),C.YNc(2,k,3,3,"div",8)),2&Ae){const _e=C.oxw().$implicit;C.xp6(1),C.Q6J("ngIf",0!==_e.taskList.length),C.xp6(1),C.Q6J("ngIf",0===_e.taskList.length)}}function Z(Ae,ye){if(1&Ae&&(C.TgZ(0,"mat-expansion-panel")(1,"mat-expansion-panel-header")(2,"mat-panel-title"),C._UZ(3,"img",6),C.TgZ(4,"div",7),C._uU(5),C.qZA()(),C.YNc(6,q,7,8,"mat-panel-description",8),C.qZA(),C.YNc(7,be,3,2,"ng-template",9),C.qZA()),2&Ae){const _e=ye.$implicit,Se=C.oxw(2);C.xp6(5),C.hij(" ",_e.resource.name," "),C.xp6(1),C.Q6J("ngIf",0!==Se.getErrorCountStates(_e))}}function ce(Ae,ye){if(1&Ae&&(C.TgZ(0,"div",3)(1,"mat-accordion",4),C.YNc(2,Z,8,2,"mat-expansion-panel",5),C.qZA()()),2&Ae){const _e=C.oxw();C.xp6(2),C.Q6J("ngForOf",_e.propagation)}}let xe=(()=>{class Ae{constructor(){this.propagation=[],this.loading=!1,this.datasources=[],this.displayedColumns=["id","service","status","scheduled","started","ended"]}getErrorCountStates(_e){let Se=0;for(const Ne of _e.taskList)("ERROR"===Ne.status||"GENERROR"===Ne.status||"SENDERROR"===Ne.status)&&Se++;return Se}getDataSource(){this.datasources=[];for(const _e of this.propagation)this.datasources.push(new v.by(_e.taskList))}ngOnChanges(){this.getDataSource()}}return Ae.\u0275fac=function(_e){return new(_e||Ae)},Ae.\u0275cmp=C.Xpm({type:Ae,selectors:[["app-state-tab"]],inputs:{propagation:"propagation",loading:"loading"},features:[C.TTD],decls:2,vars:2,consts:[["class","ml-auto mr-auto",4,"ngIf"],["class","p-2",4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"p-2"],["multi","true","togglePosition","before",1,"headers-align"],[4,"ngFor","ngForOf"],["height","28","src","assets/img/PerunWebImages/resource-black.svg","width","28"],[1,"ml-2"],[4,"ngIf"],["matExpansionPanelContent",""],[1,"material-icons","red"],["class","w-100","mat-table","",3,"dataSource",4,"ngIf"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","service"],["matColumnDef","status"],["matColumnDef","scheduled"],["matColumnDef","started"],["matColumnDef","ended"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"ngClass",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],[4,"ngIf","ngIfElse"],["class","font-italic"],["notYet",""],["mat-header-row",""],["mat-row","",3,"ngClass"]],template:function(_e,Se){1&_e&&(C.YNc(0,O,1,0,"mat-spinner",0),C.YNc(1,ce,3,1,"div",1)),2&_e&&(C.Q6J("ngIf",Se.loading),C.xp6(1),C.Q6J("ngIf",!Se.loading))},dependencies:[M.mk,M.sg,M.O5,v.BZ,v.fO,v.as,v.w1,v.Dz,v.nj,v.ge,v.ev,v.XQ,v.Gk,R.Ou,B.d,w.pp,w.ib,w.yz,w.yK,w.u4,w.HS,M.uU,L.X$],styles:[".greenTableItem[_ngcontent-%COMP%]{background-color:#c4ffcb}.yellowTableItem[_ngcontent-%COMP%]{background-color:#fffde7}.redTableItem[_ngcontent-%COMP%]{background-color:#ffcdd2}.headers-align[_ngcontent-%COMP%] .mat-expansion-panel-header-title[_ngcontent-%COMP%], .headers-align[_ngcontent-%COMP%] .mat-expansion-panel-header-description[_ngcontent-%COMP%]{flex-basis:0}.headers-align[_ngcontent-%COMP%] .mat-expansion-panel-header-description[_ngcontent-%COMP%]{margin-left:15%;justify-content:space-between;align-items:center}"]}),Ae})();function ot(Ae,ye){if(1&Ae&&(C._uU(0),C.ALo(1,"translate"),C.TgZ(2,"span",5),C._uU(3),C.qZA()),2&Ae){const _e=C.oxw();C.hij(" ",C.lcZ(1,2,"VO_DETAIL.RESOURCES.STATES.ERROR_RESOURCES")," "),C.xp6(3),C.Oqu(_e.errorPropagation.length)}}function Fe(Ae,ye){1&Ae&&(C.TgZ(0,"perun-web-apps-alert",8),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&Ae&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.NO_RESOURCES_IN_ERROR")," "))}function ut(Ae,ye){if(1&Ae&&(C.YNc(0,Fe,3,3,"perun-web-apps-alert",6),C._UZ(1,"app-state-tab",7)),2&Ae){const _e=C.oxw();C.Q6J("ngIf",!_e.loading&&0===_e.errorPropagation.length),C.xp6(1),C.Q6J("loading",_e.loading)("propagation",_e.errorPropagation)}}function tt(Ae,ye){if(1&Ae&&(C._uU(0),C.ALo(1,"translate"),C.TgZ(2,"span",9),C._uU(3),C.qZA()),2&Ae){const _e=C.oxw();C.hij(" ",C.lcZ(1,2,"VO_DETAIL.RESOURCES.STATES.OK_RESOURCES")," "),C.xp6(3),C.Oqu(_e.okPropagation.length)}}function vt(Ae,ye){1&Ae&&(C.TgZ(0,"perun-web-apps-alert",8),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&Ae&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.NO_RESOURCES_IN_OK")," "))}function X(Ae,ye){if(1&Ae&&(C.YNc(0,vt,3,3,"perun-web-apps-alert",6),C._UZ(1,"app-state-tab",7)),2&Ae){const _e=C.oxw();C.Q6J("ngIf",!_e.loading&&0===_e.okPropagation.length),C.xp6(1),C.Q6J("loading",_e.loading)("propagation",_e.okPropagation)}}let nt=(()=>{class Ae{constructor(_e,Se){this.taskService=_e,this.entityStorageService=Se,this.loading=!1,this.okPropagation=[],this.errorPropagation=[],this.resourceStates=[],this.selectedIndex=0}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.refreshTable()}refreshTable(){this.loading=!0,this.taskService.getAllResourcesState(this.vo.id).subscribe(_e=>{this.resourceStates=_e,this.okPropagation=[],this.errorPropagation=[];for(const Se of _e){let Ne=!0;for(const Ce of Se.taskList)if("ERROR"===Ce.status||"GENERROR"===Ce.status||"SENDERROR"===Ce.status){Ne=!1;break}Ne?this.okPropagation.push(Se):this.errorPropagation.push(Se)}this.loading=!1},()=>this.loading=!1)}}return Ae.id="VoResourcesStatesComponent",Ae.\u0275fac=function(_e){return new(_e||Ae)(C.Y36(A.Ob),C.Y36(e.fb))},Ae.\u0275cmp=C.Xpm({type:Ae,selectors:[["app-vo-resources-states"]],hostVars:2,hostBindings:function(_e,Se){2&_e&&C.ekj("router-component",Se.true)},decls:11,vars:4,consts:[[1,"page-subtitle"],[3,"refresh"],["animationDuration","0ms",3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],["matTabContent",""],[1,"badge","badge-danger","ml-1"],["alert_type","warn",4,"ngIf"],[3,"loading","propagation"],["alert_type","warn"],[1,"badge","badge-success","ml-1"]],template:function(_e,Se){1&_e&&(C.TgZ(0,"h1",0),C._uU(1),C.ALo(2,"translate"),C.qZA(),C.TgZ(3,"perun-web-apps-refresh-button",1),C.NdJ("refresh",function(){return Se.refreshTable()}),C.qZA(),C.TgZ(4,"mat-tab-group",2),C.NdJ("selectedIndexChange",function(Ce){return Se.selectedIndex=Ce}),C.TgZ(5,"mat-tab"),C.YNc(6,ot,4,4,"ng-template",3),C.YNc(7,ut,2,3,"ng-template",4),C.qZA(),C.TgZ(8,"mat-tab"),C.YNc(9,tt,4,4,"ng-template",3),C.YNc(10,X,2,3,"ng-template",4),C.qZA()()),2&_e&&(C.xp6(1),C.Oqu(C.lcZ(2,2,"VO_DETAIL.RESOURCES.STATES.TITLE")),C.xp6(3),C.Q6J("selectedIndex",Se.selectedIndex))},dependencies:[M.O5,m.SP,m.uD,m.uX,m.Vc,b.w,D.t,xe,L.X$]}),Ae})()},10369:(Xe,ue,p)=>{"use strict";p.d(ue,{w:()=>ge});var e=p(1186),A=p(81591),C=p(95502),M=p(93657),m=p(83491),b=p(61744),D=p(9244),v=p(94650),R=p(65412),B=p(89383),w=p(94364),L=p(36895),O=p(97392),q=p(4859),te=p(51572),z=p(10266),ie=p(44850),Te=p(98380),pe=p(96214),Le=p(157);function T(ve,De){1&ve&&v._UZ(0,"mat-spinner",13)}function W(ve,De){if(1&ve){const he=v.EpF();v.TgZ(0,"button",21),v.NdJ("click",function(){v.CHM(he);const Be=v.oxw(2);return v.KtG(Be.settings())}),v.TgZ(1,"i",10),v._uU(2,"edit"),v.qZA(),v._uU(3),v.ALo(4,"translate"),v.qZA()}2&ve&&(v.xp6(3),v.hij(" ",v.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SETTINGS_BUTTON")," "))}function F(ve,De){if(1&ve&&(v.TgZ(0,"div",14)(1,"div",15)(2,"div",16),v._uU(3),v.ALo(4,"translate"),v.qZA(),v.TgZ(5,"div")(6,"span",16),v._uU(7),v.ALo(8,"translate"),v.qZA(),v._uU(9,": "),v.TgZ(10,"mat-icon",17),v._uU(11,"arrow_right_alt"),v.qZA(),v._uU(12),v.ALo(13,"translate"),v.ALo(14,"translate"),v.TgZ(15,"mat-icon",18),v._uU(16,"restore"),v.qZA(),v._uU(17),v.ALo(18,"translate"),v.ALo(19,"translate"),v.qZA()(),v.TgZ(20,"div",19),v.YNc(21,W,5,3,"button",20),v.qZA()()),2&ve){const he=v.oxw();v.xp6(3),v.AsE(" ",v.lcZ(4,6,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MODULE_NAME"),": ",he.applicationForm.moduleClassName," "),v.xp6(4),v.Oqu(v.lcZ(8,8,"VO_DETAIL.SETTINGS.APPLICATION_FORM.APPLICATION_TYPE")),v.xp6(5),v.hij(" ",he.applicationForm.automaticApproval?v.lcZ(13,10,"VO_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):v.lcZ(14,12,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," , "),v.xp6(5),v.hij(" ",he.applicationForm.automaticApprovalExtension?v.lcZ(18,14,"VO_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):v.lcZ(19,16,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," "),v.xp6(4),v.Q6J("ngIf",he.editAuth)}}function V(ve,De){if(1&ve){const he=v.EpF();v.TgZ(0,"button",22),v.NdJ("click",function(){v.CHM(he);const Be=v.oxw();return v.KtG(Be.add())}),v._uU(1),v.ALo(2,"translate"),v.qZA()}2&ve&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.ADD_BUTTON")," "))}function ee(ve,De){if(1&ve){const he=v.EpF();v.TgZ(0,"button",23),v.NdJ("click",function(){v.CHM(he);const Be=v.oxw();return v.KtG(Be.save())}),v.TgZ(1,"i",10),v._uU(2,"save"),v.qZA(),v._uU(3),v.ALo(4,"translate"),v.qZA()}if(2&ve){const he=v.oxw();v.Q6J("disabled",!he.itemsChanged),v.xp6(3),v.hij(" ",v.lcZ(4,2,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SAVE_BUTTON")," ")}}function Q(ve,De){if(1&ve){const he=v.EpF();v.TgZ(0,"button",24),v.NdJ("click",function(){v.CHM(he);const Be=v.oxw();return v.KtG(Be.copy())}),v.TgZ(1,"i",10),v._uU(2,"file_copy"),v.qZA(),v._uU(3),v.ALo(4,"translate"),v.qZA()}2&ve&&(v.xp6(3),v.hij(" ",v.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.COPY_VO_BUTTON")," "))}function Ee(ve,De){1&ve&&(v.TgZ(0,"perun-web-apps-alert",25),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&ve&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.DRAG_AND_DROP_INFO")," "))}let ge=(()=>{class ve{constructor(he,Ye,Be,se,le,N,k,be){this.registrarManager=he,this.dialog=Ye,this.notificator=Be,this.translate=se,this.router=le,this.authResolver=N,this.voService=k,this.entityStorageService=be,this.loading=!1,this.applicationFormItems=[],this.itemsChanged=!1,this.displayedColumns=[],this.refreshApplicationForm=!1,this.idCounter=-1}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.setAuthRights(),this.registrarManager.getVoApplicationForm(this.vo.id).subscribe(he=>{this.applicationForm=he,this.registrarManager.getFormItemsForVo(this.vo.id).subscribe(Ye=>{this.applicationFormItems=Ye,this.loading=!1})})}add(){let he=(0,D.kZ)();he.width="500px",he.data={applicationFormItems:this.applicationFormItems,fakeId:this.idCounter--},this.dialog.open(M.J,he).afterClosed().subscribe(Be=>{Be&&(this.applicationFormItems=Object.assign([],Be[0]),he=(0,D.kZ)(),he.width="600px",he.height="600px",he.data={voId:this.vo.id,applicationFormItem:Be[1],theme:"vo-theme",allItems:this.applicationFormItems},this.dialog.open(m._,he),this.itemsChanged=!0)})}copy(){const he=(0,D.kZ)();he.width="500px",he.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(C.W,he).afterClosed().subscribe(Be=>{Be&&this.updateFormItems()})}settings(){const he=(0,D.kZ)();he.width="400px",he.data={entity:"vo",applicationForm:this.applicationForm,theme:"vo-theme"},this.dialog.open(e.E,he).afterClosed().subscribe(Be=>{Be&&(this.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_SETTINGS_SUCCESS").subscribe(se=>{this.notificator.showSuccess(se)}),this.applicationForm=Be)})}preview(){this.router.navigate(["/organizations",this.vo.id,"settings","applicationForm","preview"],{queryParams:{applicationFormItems:JSON.stringify(this.applicationFormItems)},queryParamsHandling:"merge"})}updateFormItems(){this.loading=!0,this.refreshApplicationForm=!0,this.registrarManager.getFormItemsForVo(this.vo.id).subscribe(he=>{this.applicationFormItems=he,this.itemsChanged=!1,this.setAuthRights(),this.refreshApplicationForm=!1,this.loading=!1})}changeItems(){this.itemsChanged=!0}save(){let he=0;for(const Ye of this.applicationFormItems)Ye.ordnum=he,Ye.forDelete||he++;this.registrarManager.updateFormItemsForVo({vo:this.vo.id,items:this.applicationFormItems}).subscribe(()=>{this.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_APPLICATION_FORM_ITEMS_SUCCESS").subscribe(Ye=>{this.notificator.showSuccess(Ye)}),this.updateFormItems()})}clear(){this.applicationFormItems.forEach(he=>he.forDelete=!0),this.itemsChanged=!0}setAuthRights(){this.editAuth=this.authResolver.isAuthorized("vo-updateFormItems_ApplicationForm_List_policy",[this.vo]),this.displayedColumns=this.editAuth?["drag","shortname","type","disabled","hidden","preview","managegroups","edit","delete"]:["shortname","type","disabled","hidden","preview","managegroups"]}}return ve.id="VoSettingsApplicationFormComponent",ve.\u0275fac=function(he){return new(he||ve)(v.Y36(b.tk),v.Y36(R.uw),v.Y36(A.V6),v.Y36(B.sK),v.Y36(w.F0),v.Y36(A.x4),v.Y36(b.YF),v.Y36(A.fb))},ve.\u0275cmp=v.Xpm({type:ve,selectors:[["app-vo-settings-application-form"]],hostVars:2,hostBindings:function(he,Ye){2&he&&v.ekj("router-component",Ye.true)},decls:19,vars:18,consts:[[1,"page-subtitle"],["class","ml-auto mr-auto",4,"ngIf"],["class","d-flex w-50",4,"ngIf"],[1,"mb-2","mt-2"],[1,"w-100","d-flex"],[3,"refresh"],["color","accent","class","mr-2 action-button","data-cy","add-form-item","mat-flat-button","",3,"click",4,"ngIf"],["color","accent","data-cy","save-application-form","class","mr-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","mr-2 action-button","mat-stroked-button","",3,"click",4,"ngIf"],["mat-stroked-button","",3,"click"],[1,"material-icons"],["alert_type","info",4,"ngIf"],[3,"applicationForm","applicationFormItems","loading","displayedColumns","refreshApplicationForm","theme","applicationFormItemsChange"],[1,"ml-auto","mr-auto"],[1,"d-flex","w-50"],[1,"w-50"],[1,"font-weight-bold"],["matTooltip","Initial",1,"align-text-bottom"],["matTooltip","Extension",1,"align-text-bottom"],[1,"w-25"],["class","ml-auto action-button","mat-stroked-button","",3,"click",4,"ngIf"],["mat-stroked-button","",1,"ml-auto","action-button",3,"click"],["color","accent","data-cy","add-form-item","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","accent","data-cy","save-application-form","mat-flat-button","",1,"mr-2",3,"disabled","click"],["mat-stroked-button","",1,"mr-2","action-button",3,"click"],["alert_type","info"]],template:function(he,Ye){1&he&&(v.TgZ(0,"h1",0),v._uU(1),v.ALo(2,"translate"),v.qZA(),v.YNc(3,T,1,0,"mat-spinner",1),v.TgZ(4,"div"),v.YNc(5,F,22,18,"div",2),v._UZ(6,"mat-divider",3),v.TgZ(7,"div",4)(8,"perun-web-apps-refresh-button",5),v.NdJ("refresh",function(){return Ye.updateFormItems()}),v.qZA(),v.YNc(9,V,3,3,"button",6),v.YNc(10,ee,5,4,"button",7),v.YNc(11,Q,5,3,"button",8),v.TgZ(12,"button",9),v.NdJ("click",function(){return Ye.preview()}),v.TgZ(13,"i",10),v._uU(14,"search"),v.qZA(),v._uU(15),v.ALo(16,"translate"),v.qZA()(),v.YNc(17,Ee,3,3,"perun-web-apps-alert",11),v.TgZ(18,"app-application-form-list",12),v.NdJ("applicationFormItemsChange",function(){return Ye.changeItems()}),v.qZA()()),2&he&&(v.xp6(1),v.hij(" ",v.lcZ(2,14,"VO_DETAIL.SETTINGS.APPLICATION_FORM.TITLE"),"\n"),v.xp6(2),v.Q6J("ngIf",Ye.loading),v.xp6(2),v.Q6J("ngIf",!Ye.loading),v.xp6(4),v.Q6J("ngIf",Ye.editAuth),v.xp6(1),v.Q6J("ngIf",Ye.editAuth),v.xp6(1),v.Q6J("ngIf",Ye.editAuth),v.xp6(4),v.hij(" ",v.lcZ(16,16,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_BUTTON")," "),v.xp6(2),v.Q6J("ngIf",Ye.editAuth),v.xp6(1),v.Q6J("applicationForm",Ye.applicationForm)("applicationFormItems",Ye.applicationFormItems)("loading",Ye.loading)("displayedColumns",Ye.displayedColumns)("refreshApplicationForm",Ye.refreshApplicationForm)("theme","vo-theme"))},dependencies:[L.O5,O.Hw,q.lW,te.Ou,z.gM,ie.d,Te.w,pe.t,Le.b,B.X$]}),ve})()},11042:(Xe,ue,p)=>{"use strict";p.d(ue,{T:()=>Ii});var e=p(61744),A=p(95017),C=p(10036),M=p(9244),m=p(65412),b=p(81591),D=p(24006),v=p(36895),R=p(28499),B=p(77579),w=p(94650),L=p(89383),O=p(3238),q=p(59549),te=p(284),z=p(97392),ie=p(4859),Te=p(56709),pe=p(84385),Le=p(51572),T=p(10266),W=p(86257),F=p(98380),V=p(87488),ee=p(13469),Q=p(64080),Ee=p(71948),ge=p(25788),ve=p(7434),De=p(61150);function he(Mt,en){1&Mt&&w._UZ(0,"mat-spinner",2)}function Ye(Mt,en){1&Mt&&(w.TgZ(0,"div")(1,"perun-web-apps-alert",10),w._uU(2),w.ALo(3,"translate"),w.qZA()()),2&Mt&&(w.xp6(2),w.Oqu(w.lcZ(3,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DONT_ASSIGN_INFO")))}function Be(Mt,en){if(1&Mt){const ct=w.EpF();w.TgZ(0,"div")(1,"h5",11),w._uU(2),w.ALo(3,"translate"),w.qZA(),w.TgZ(4,"perun-web-apps-create-group-form",12),w.NdJ("asSubgroupChanged",function(Zt){w.CHM(ct);const rn=w.oxw(2);return w.KtG(rn.onAsSubgroupChange(Zt))})("nameChanged",function(Zt){w.CHM(ct);const rn=w.oxw(2);return w.KtG(rn.onNameChange(Zt))})("descriptionChanged",function(Zt){w.CHM(ct);const rn=w.oxw(2);return w.KtG(rn.onDescriptionChange(Zt))})("parentGroupChanged",function(Zt){w.CHM(ct);const rn=w.oxw(2);return w.KtG(rn.onParentChange(Zt))}),w.qZA()()}if(2&Mt){const ct=w.oxw(2);w.xp6(2),w.Oqu(w.lcZ(3,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.CREATE_NEW_GROUP")),w.xp6(2),w.Q6J("voGroups",ct.allVoGroups)}}const se=function(){return["select","id","name","description"]};function le(Mt,en){if(1&Mt){const ct=w.EpF();w.TgZ(0,"div")(1,"h5",11),w._uU(2),w.ALo(3,"translate"),w.qZA(),w.TgZ(4,"perun-web-apps-immediate-filter",13),w.NdJ("filter",function(Zt){w.CHM(ct);const rn=w.oxw(2);return w.KtG(rn.applyFilter(Zt))}),w.qZA(),w._UZ(5,"perun-web-apps-groups-list",14),w.qZA()}if(2&Mt){const ct=w.oxw(2);w.xp6(2),w.hij(" ",w.lcZ(3,8,"DIALOGS.GENERATE_SPONSORED_MEMBERS.SELECT_EXISTING_GROUPS")," "),w.xp6(2),w.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),w.xp6(1),w.Q6J("groups",ct.assignableGroups)("selection",ct.selection)("disableRouting",!0)("displayedColumns",w.DdM(10,se))("filter",ct.filterValue)("tableId",ct.tableId)}}function N(Mt,en){if(1&Mt){const ct=w.EpF();w.TgZ(0,"div")(1,"div",3)(2,"h5",4),w._uU(3),w.ALo(4,"translate"),w.qZA(),w.TgZ(5,"mat-radio-group",5),w.NdJ("change",function(){w.CHM(ct);const Zt=w.oxw();return w.KtG(Zt.groupAssigmentChanged())})("ngModelChange",function(Zt){w.CHM(ct);const rn=w.oxw();return w.KtG(rn.groupAssignment=Zt)}),w.TgZ(6,"mat-radio-button",6),w._uU(7),w.ALo(8,"translate"),w.qZA(),w.TgZ(9,"span",7),w.ALo(10,"translate"),w.TgZ(11,"mat-radio-button",8),w._uU(12),w.ALo(13,"translate"),w.qZA()(),w.TgZ(14,"span",7),w.ALo(15,"translate"),w.TgZ(16,"mat-radio-button",9),w._uU(17),w.ALo(18,"translate"),w.qZA()()()(),w.YNc(19,Ye,4,3,"div",1),w.YNc(20,Be,5,4,"div",1),w.YNc(21,le,6,11,"div",1),w.qZA()}if(2&Mt){const ct=w.oxw();w.xp6(3),w.Oqu(w.lcZ(4,14,"DIALOGS.GENERATE_SPONSORED_MEMBERS.GROUP_ASSIGMENT")),w.xp6(2),w.Q6J("ngModel",ct.groupAssignment),w.xp6(2),w.hij(" ",w.lcZ(8,16,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NO_ASSIGN")," "),w.xp6(2),w.s9C("matTooltip",w.lcZ(10,18,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DISABLED_ASSIGN_NEW")),w.Q6J("matTooltipDisabled",!ct.manualMemberAddingBlocked&&ct.createGroupAuth),w.xp6(2),w.Q6J("disabled",ct.manualMemberAddingBlocked||!ct.createGroupAuth),w.xp6(1),w.hij(" ",w.lcZ(13,20,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ASSIGN_TO_NEW")," "),w.xp6(2),w.s9C("matTooltip",w.lcZ(15,22,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DISABLED_ASSIGN_EXISTING")),w.Q6J("matTooltipDisabled",!ct.manualMemberAddingBlocked&&0!==ct.assignableGroups.length),w.xp6(2),w.Q6J("disabled",ct.manualMemberAddingBlocked||0===ct.assignableGroups.length),w.xp6(1),w.hij(" ",w.lcZ(18,24,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ASSIGN_EXISTING")," "),w.xp6(2),w.Q6J("ngIf","none"===ct.groupAssignment),w.xp6(1),w.Q6J("ngIf","new"===ct.groupAssignment),w.xp6(1),w.Q6J("ngIf","existing"===ct.groupAssignment)}}let k=(()=>{class Mt{constructor(ct,kt,Zt){this.groupsService=ct,this.guiAuthResolver=kt,this.attributesService=Zt,this.groupsToAdd=new w.vpe,this.submitAllowed=new w.vpe,this.loading=!1,this.assignableGroups=[],this.allVoGroups=[],this.manualMemberAddingBlocked=!1,this.groupAssignment="none",this.selection=new A.Ov(!0,[]),this.name="",this.description="",this.asSubgroup=!1,this.parentGroup=null,this.filterValue="",this.tableId=C.rc,this.groupToCreate={id:0,beanName:"Group"},this.groupIds=[],this.groupAttrNames=[Q.r.GROUP_SYNC_ENABLED,Q.r.GROUP_BLOCK_MANUAL_MEMBER_ADDING]}ngOnInit(){this.onSubmit=this.submit.subscribe(()=>this.handleGroups()),this.selection.changed.subscribe(()=>this.isSubmitAllowed()),this.createGroupAuth=this.guiAuthResolver.isAuthorized("createGroup_Vo_Group_policy",[{id:this.voId,beanName:"Vo"}]),this.attributesService.getVoAttributes(this.voId).subscribe(ct=>{this.manualMemberAddingBlocked=(0,M.jh)(ct,Q.r.VO_BLOCK_MANUAL_MEMBER_ADDING),this.groupsService.getAllRichGroupsWithAttributesByNames(this.voId,this.groupAttrNames).subscribe(kt=>{this.allVoGroups=kt.filter(Zt=>"members"!==Zt.name),this.assignableGroups=this.filterAssignableGroups(kt),this.isSubmitAllowed()})})}ngOnDestroy(){void 0!==this.onSubmit&&this.onSubmit.unsubscribe()}groupAssigmentChanged(){this.selection.clear(),this.groupToCreate.name="",this.groupToCreate.description="",this.asSubgroup=!1,this.groupToCreate.parentGroupId=null,this.isSubmitAllowed()}applyFilter(ct){this.filterValue=ct}onNameChange(ct){this.groupToCreate.name=ct,this.isSubmitAllowed()}onParentChange(ct){this.groupToCreate.parentGroupId=null===ct?null:ct.id,this.isSubmitAllowed()}onAsSubgroupChange(ct){this.asSubgroup=ct,this.isSubmitAllowed()}onDescriptionChange(ct){this.groupToCreate.description=ct,this.isSubmitAllowed()}isSubmitAllowed(){this.submitAllowed.emit(!(null===this.groupAssignment||"existing"===this.groupAssignment&&0===this.selection.selected.length||"new"===this.groupAssignment&&(0===this.groupToCreate.name.length||0===this.groupToCreate.description.length)||this.asSubgroup&&null===this.groupToCreate.parentGroupId))}handleGroups(){this.loading=!0,"new"===this.groupAssignment?this.asSubgroup?this.groupsService.createGroupWithParentGroupNameDescription(this.groupToCreate.parentGroupId,this.groupToCreate.name,this.groupToCreate.description).subscribe({next:ct=>{this.groupIds.push(ct.id),this.groupsToAdd.emit(this.groupIds)},error:()=>this.loading=!1}):this.groupsService.createGroupWithVoNameDescription(this.voId,this.groupToCreate.name,this.groupToCreate.description).subscribe({next:ct=>{this.groupIds.push(ct.id),this.groupsToAdd.emit(this.groupIds)},error:()=>this.loading=!1}):("existing"===this.groupAssignment&&(this.groupIds=this.selection.selected.map(ct=>ct.id)),this.groupsToAdd.emit(this.groupIds))}filterAssignableGroups(ct){const kt=[];for(const Zt of ct)!(0,M.bx)(Zt)&&!(0,M.jh)(Zt.attributes,Q.r.GROUP_BLOCK_MANUAL_MEMBER_ADDING)&&this.guiAuthResolver.isAuthorized("addMembers_Group_List_policy",[Zt])&&kt.push(Zt);return kt}}return Mt.\u0275fac=function(ct){return new(ct||Mt)(w.Y36(e.ff),w.Y36(b.x4),w.Y36(e.H8))},Mt.\u0275cmp=w.Xpm({type:Mt,selectors:[["app-assign-groups-sponsored-members-component"]],inputs:{submit:"submit",voId:"voId"},outputs:{groupsToAdd:"groupsToAdd",submitAllowed:"submitAllowed"},decls:2,vars:2,consts:[["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"mt-2"],[1,"mb-4"],[1,"flex-container",3,"ngModel","change","ngModelChange"],["value","none","data-cy","no-assign-button"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["value","new",3,"disabled"],["value","existing",3,"disabled"],["alert_type","info",1,"mt-4"],[1,"mt-4"],[3,"voGroups","asSubgroupChanged","nameChanged","descriptionChanged","parentGroupChanged"],[3,"placeholder","filter"],[3,"groups","selection","disableRouting","displayedColumns","filter","tableId"]],template:function(ct,kt){1&ct&&(w.YNc(0,he,1,0,"mat-spinner",0),w.YNc(1,N,22,26,"div",1)),2&ct&&(w.Q6J("ngIf",kt.loading),w.xp6(1),w.Q6J("ngIf",!kt.loading))},dependencies:[v.O5,D.JJ,D.On,Le.Ou,T.gM,Ee.VQ,Ee.U0,F.w,ge.W,ve.L,De.r,L.X$],styles:[".flex-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),Mt})();var be=p(39158),Z=p(31359);const ce=["stepper"];function xe(Mt,en){1&Mt&&(w.TgZ(0,"h1",4),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&Mt&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.TITLE")," "))}function ot(Mt,en){1&Mt&&w._UZ(0,"mat-spinner",5)}function Fe(Mt,en){1&Mt&&(w._uU(0),w.ALo(1,"translate")),2&Mt&&w.Oqu(w.lcZ(1,1,"DIALOGS.CREATE_SPONSORED_MEMBER.USER_LABEL"))}function ut(Mt,en){1&Mt&&(w.TgZ(0,"perun-web-apps-alert",33),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&Mt&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.FUNCTIONALITY_NOT_SUPPORTED")," "))}function tt(Mt,en){1&Mt&&(w.TgZ(0,"mat-error"),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&Mt&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.LENGTH_ERROR")," "))}function vt(Mt,en){1&Mt&&(w.TgZ(0,"mat-error"),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&Mt&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.LENGTH_ERROR")," "))}function X(Mt,en){1&Mt&&(w._uU(0),w.ALo(1,"translate")),2&Mt&&w.Oqu(w.lcZ(1,1,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE_LABEL"))}function nt(Mt,en){if(1&Mt&&(w.TgZ(0,"mat-option",34),w._uU(1),w.qZA()),2&Mt){const ct=en.$implicit;w.Q6J("value",ct),w.uIk("data-cy",ct),w.xp6(1),w.hij(" ",ct," ")}}function Ae(Mt,en){1&Mt&&(w.TgZ(0,"mat-error"),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&Mt&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE_ERROR")," "))}function ye(Mt,en){1&Mt&&(w.TgZ(0,"mat-error"),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&Mt&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.LENGTH_ERROR")," "))}function _e(Mt,en){1&Mt&&(w.TgZ(0,"mat-error"),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&Mt&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.EMAIL_ERROR")," "))}function Se(Mt,en){if(1&Mt&&(w.TgZ(0,"mat-option",34),w._uU(1),w.ALo(2,"translate"),w.ALo(3,"uppercase"),w.qZA()),2&Mt){const ct=en.$implicit;w.s9C("value",ct),w.xp6(1),w.hij(" ",w.lcZ(2,2,w.lcZ(3,4,"SHARED_LIB.LANGUAGES."+ct))," ")}}function Ne(Mt,en){if(1&Mt){const ct=w.EpF();w.TgZ(0,"mat-form-field")(1,"mat-label"),w._uU(2),w.ALo(3,"translate"),w.qZA(),w.TgZ(4,"mat-select",35),w.NdJ("valueChange",function(Zt){w.CHM(ct);const rn=w.oxw(2);return w.KtG(rn.currentLanguage=Zt)}),w.YNc(5,Se,4,6,"mat-option",23),w.qZA()()}if(2&Mt){const ct=w.oxw(2);w.xp6(2),w.Oqu(w.lcZ(3,3,"DIALOGS.INVITE_MEMBER.LANGUAGE")),w.xp6(2),w.Q6J("value",ct.currentLanguage),w.xp6(1),w.Q6J("ngForOf",ct.languages)}}function Ce(Mt,en){1&Mt&&(w._uU(0),w.ALo(1,"translate")),2&Mt&&w.Oqu(w.lcZ(1,1,"DIALOGS.CREATE_SPONSORED_MEMBER.SPONSORSHIP_LABEL"))}function fe(Mt,en){1&Mt&&(w._uU(0),w.ALo(1,"translate")),2&Mt&&w.Oqu(w.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.GROUPS_LABEL"))}function r(Mt,en){if(1&Mt){const ct=w.EpF();w.TgZ(0,"div",6)(1,"mat-stepper",7,8)(3,"mat-step",9),w.YNc(4,Fe,2,3,"ng-template",10),w.YNc(5,ut,3,3,"perun-web-apps-alert",11),w.TgZ(6,"form",12)(7,"h5",13),w._uU(8),w.ALo(9,"translate"),w.qZA(),w.TgZ(10,"mat-form-field",14),w._UZ(11,"input",15),w.ALo(12,"translate"),w.YNc(13,tt,3,3,"mat-error",16),w.qZA(),w.TgZ(14,"mat-form-field"),w._UZ(15,"input",17),w.ALo(16,"translate"),w.YNc(17,vt,3,3,"mat-error",16),w.qZA(),w.TgZ(18,"mat-form-field"),w._UZ(19,"input",18),w.ALo(20,"translate"),w.qZA(),w.TgZ(21,"mat-form-field"),w._UZ(22,"input",19),w.ALo(23,"translate"),w.qZA()()(),w.TgZ(24,"mat-step",9),w.YNc(25,X,2,3,"ng-template",10),w.TgZ(26,"h5",13),w._uU(27),w.ALo(28,"translate"),w.qZA(),w.TgZ(29,"form",20)(30,"mat-form-field",21)(31,"mat-select",22),w.NdJ("valueChange",function(Zt){w.CHM(ct);const rn=w.oxw();return w.KtG(rn.onNamespaceChanged(Zt))}),w.ALo(32,"translate"),w.YNc(33,nt,2,3,"mat-option",23),w.qZA(),w.YNc(34,Ae,3,3,"mat-error",16),w.qZA(),w.TgZ(35,"mat-form-field",24),w.ALo(36,"translate"),w._UZ(37,"input",25),w.ALo(38,"translate"),w.YNc(39,ye,3,3,"mat-error",16),w.qZA(),w.TgZ(40,"mat-form-field"),w._UZ(41,"input",26),w.ALo(42,"translate"),w.YNc(43,_e,3,3,"mat-error",16),w.qZA(),w.TgZ(44,"span",24),w.ALo(45,"translate"),w.TgZ(46,"mat-checkbox",27),w.NdJ("change",function(){w.CHM(ct);const Zt=w.oxw();return w.KtG(Zt.passwordResetChange())}),w._uU(47),w.ALo(48,"translate"),w.qZA()(),w.YNc(49,Ne,6,5,"mat-form-field",16),w._UZ(50,"perun-web-apps-password-form",28),w.qZA()(),w.TgZ(51,"mat-step"),w.YNc(52,Ce,2,3,"ng-template",10),w.TgZ(53,"div",29)(54,"h5",13),w._uU(55),w.ALo(56,"translate"),w.qZA(),w.TgZ(57,"app-choose-sponsor",30),w.NdJ("sponsorTypeSelected",function(Zt){w.CHM(ct);const rn=w.oxw();return w.KtG(rn.sponsorType=Zt)})("sponsorSelected",function(Zt){w.CHM(ct);const rn=w.oxw();return w.KtG(rn.selectedSponsor=Zt)}),w.qZA(),w.TgZ(58,"h6",14),w._uU(59),w.ALo(60,"translate"),w.qZA(),w.TgZ(61,"perun-web-apps-expiration-select",31),w.NdJ("datePicker",function(Zt){w.CHM(ct);const rn=w.oxw();return w.KtG(rn.setExpiration(Zt))}),w.qZA()()(),w.TgZ(62,"mat-step"),w.YNc(63,fe,2,3,"ng-template",10),w.TgZ(64,"app-assign-groups-sponsored-members-component",32),w.NdJ("groupsToAdd",function(Zt){w.CHM(ct);const rn=w.oxw();return w.KtG(rn.createMember(Zt))})("submitAllowed",function(Zt){w.CHM(ct);const rn=w.oxw();return w.KtG(rn.submitAllowed=Zt)}),w.qZA()()()()}if(2&Mt){const ct=w.oxw();w.xp6(1),w.Q6J("linear",!0),w.xp6(2),w.Q6J("stepControl",ct.userControl),w.xp6(2),w.Q6J("ngIf",ct.functionalityNotSupported),w.xp6(1),w.Q6J("formGroup",ct.userControl),w.xp6(2),w.hij(" ",w.lcZ(9,36,"DIALOGS.CREATE_SPONSORED_MEMBER.USER_TITLE")," "),w.xp6(3),w.s9C("placeholder",w.lcZ(12,38,"DIALOGS.CREATE_SPONSORED_MEMBER.FIRST_NAME")),w.xp6(2),w.Q6J("ngIf",ct.userControl.hasError("required","firstName")),w.xp6(2),w.s9C("placeholder",w.lcZ(16,40,"DIALOGS.CREATE_SPONSORED_MEMBER.LAST_NAME")),w.xp6(2),w.Q6J("ngIf",ct.userControl.hasError("required","lastName")),w.xp6(2),w.s9C("placeholder",w.lcZ(20,42,"DIALOGS.CREATE_SPONSORED_MEMBER.TITLE_BEFORE")),w.xp6(3),w.s9C("placeholder",w.lcZ(23,44,"DIALOGS.CREATE_SPONSORED_MEMBER.TITLE_AFTER")),w.xp6(2),w.Q6J("stepControl",ct.namespaceControl),w.xp6(3),w.Oqu(w.lcZ(28,46,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE_TITLE")),w.xp6(2),w.Q6J("formGroup",ct.namespaceControl),w.xp6(2),w.s9C("placeholder",w.lcZ(32,48,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE")),w.xp6(2),w.Q6J("ngForOf",ct.namespaceOptions),w.xp6(1),w.Q6J("ngIf",ct.namespaceControl.hasError("required","namespace")),w.xp6(1),w.s9C("matTooltip",w.lcZ(36,50,"DIALOGS.CREATE_SPONSORED_MEMBER.LOGIN_DISABLED")),w.Q6J("matTooltipDisabled",ct.namespaceControl.get("login").enabled),w.xp6(2),w.s9C("placeholder",w.lcZ(38,52,"DIALOGS.CREATE_SPONSORED_MEMBER.LOGIN")),w.xp6(2),w.Q6J("ngIf",ct.namespaceControl.hasError("required","login")),w.xp6(2),w.s9C("placeholder",w.lcZ(42,54,"DIALOGS.CREATE_SPONSORED_MEMBER.EMAIL")),w.xp6(2),w.Q6J("ngIf",ct.namespaceControl.hasError("required","email")||ct.namespaceControl.hasError("pattern","email")),w.xp6(1),w.s9C("matTooltip",w.lcZ(45,56,"DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD_RESET_DISABLED")),w.Q6J("matTooltipDisabled",ct.namespaceControl.get("passwordReset").enabled),w.xp6(3),w.hij("",w.lcZ(48,58,"DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD_RESET")," "),w.xp6(2),w.Q6J("ngIf",ct.namespaceControl.get("passwordReset").value),w.xp6(1),w.Q6J("formGroup",ct.namespaceControl)("namespace",ct.selectedNamespace)("tooltipPwdViaEmail",ct.namespaceControl.get("passwordReset").value),w.xp6(5),w.Oqu(w.lcZ(56,60,"DIALOGS.CREATE_SPONSORED_MEMBER.SPONSORSHIP_TITLE")),w.xp6(2),w.Q6J("voId",ct.data.voId)("voSponsors",ct.data.sponsors),w.xp6(2),w.Oqu(w.lcZ(60,62,"DIALOGS.CREATE_SPONSORED_MEMBER.EXPIRATION")),w.xp6(5),w.Q6J("voId",ct.data.voId)("submit",ct.groupsToAssign.asObservable())}}function u(Mt,en){1&Mt&&(w.TgZ(0,"perun-web-apps-alert",33),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&Mt&&(w.xp6(1),w.Oqu(w.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.WITH_ERRORS")))}function _(Mt,en){if(1&Mt&&(w.TgZ(0,"div",6)(1,"div",36)(2,"mat-icon",37),w._uU(3,"done"),w.qZA(),w._uU(4),w.ALo(5,"translate"),w.TgZ(6,"i"),w._uU(7),w.ALo(8,"userFullName"),w.qZA(),w._uU(9),w.ALo(10,"translate"),w.qZA(),w.TgZ(11,"div"),w._uU(12),w.ALo(13,"translate"),w.qZA(),w.TgZ(14,"div"),w._uU(15),w.ALo(16,"translate"),w.qZA(),w.TgZ(17,"perun-web-apps-alert",38),w._uU(18),w.ALo(19,"translate"),w.qZA(),w.YNc(20,u,3,3,"perun-web-apps-alert",11),w.qZA()),2&Mt){const ct=w.oxw();w.xp6(4),w.hij(" ",w.lcZ(5,9,"DIALOGS.CREATE_SPONSORED_MEMBER.USER")," "),w.xp6(3),w.Oqu(w.lcZ(8,11,ct.createdMember.user)),w.xp6(2),w.hij(" ",w.lcZ(10,13,"DIALOGS.CREATE_SPONSORED_MEMBER.WAS_CREATED")," "),w.xp6(3),w.AsE("",w.lcZ(13,15,"DIALOGS.CREATE_SPONSORED_MEMBER.LOGIN"),": ",ct.loginThatWasSet,""),w.xp6(3),w.AsE(" ",w.lcZ(16,17,"DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD")," : ",ct.namespaceControl.get("passwordCtrl").value," "),w.xp6(3),w.Oqu(w.lcZ(19,19,"DIALOGS.CREATE_SPONSORED_MEMBER.COPY_INFORMATION")),w.xp6(2),w.Q6J("ngIf",ct.finishedWithErrors)}}function E(Mt,en){if(1&Mt){const ct=w.EpF();w.TgZ(0,"div",39)(1,"button",40),w.NdJ("click",function(){w.CHM(ct);const Zt=w.oxw();return w.KtG(Zt.onCancel())}),w._uU(2),w.ALo(3,"translate"),w.qZA()()}2&Mt&&(w.xp6(2),w.hij(" ",w.lcZ(3,1,"DIALOGS.CREATE_SPONSORED_MEMBER.OK")," "))}function h(Mt,en){if(1&Mt){const ct=w.EpF();w.TgZ(0,"button",45),w.NdJ("click",function(){w.CHM(ct);const Zt=w.oxw(2);return w.KtG(Zt.stepperPrevious())}),w._uU(1),w.ALo(2,"translate"),w.qZA()}2&Mt&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.BACK")," "))}function a(Mt,en){if(1&Mt){const ct=w.EpF();w.TgZ(0,"button",46),w.NdJ("click",function(){w.CHM(ct);const Zt=w.oxw(2);return w.KtG(Zt.stepperNext())}),w._uU(1),w.ALo(2,"translate"),w.qZA()}if(2&Mt){const ct=w.oxw(2);w.ekj("ml-2",void 0!==ct.stepper&&0!==ct.stepper.selectedIndex)("ml-auto",!(void 0!==ct.stepper&&0!==ct.stepper.selectedIndex)),w.Q6J("disabled",ct.getStepperNextConditions()),w.xp6(1),w.hij(" ",w.lcZ(2,6,"DIALOGS.CREATE_SPONSORED_MEMBER.NEXT")," ")}}function i(Mt,en){if(1&Mt){const ct=w.EpF();w.TgZ(0,"button",47),w.NdJ("click",function(){w.CHM(ct);const Zt=w.oxw(2);return w.KtG(Zt.onConfirm())}),w._uU(1),w.ALo(2,"translate"),w.qZA()}if(2&Mt){const ct=w.oxw(2);w.Q6J("disabled",!ct.submitAllowed),w.xp6(1),w.hij(" ",w.lcZ(2,2,"DIALOGS.CREATE_SPONSORED_MEMBER.SUBMIT")," ")}}function t(Mt,en){if(1&Mt){const ct=w.EpF();w.TgZ(0,"div",39)(1,"button",41),w.NdJ("click",function(){w.CHM(ct);const Zt=w.oxw();return w.KtG(Zt.onCancel())}),w._uU(2),w.ALo(3,"translate"),w.qZA(),w.YNc(4,h,3,3,"button",42),w.YNc(5,a,3,8,"button",43),w.YNc(6,i,3,4,"button",44),w.qZA()}if(2&Mt){const ct=w.oxw();w.xp6(2),w.hij(" ",w.lcZ(3,4,"DIALOGS.CREATE_SPONSORED_MEMBER.CANCEL")," "),w.xp6(2),w.Q6J("ngIf",void 0!==ct.stepper&&0!==ct.stepper.selectedIndex),w.xp6(1),w.Q6J("ngIf",void 0!==ct.stepper&&ct.stepper.selectedIndex!==ct.stepper._steps.length-1),w.xp6(1),w.Q6J("ngIf",void 0!==ct.stepper&&ct.stepper.selectedIndex===ct.stepper._steps.length-1)}}let n=(()=>{class Mt{constructor(ct,kt,Zt,rn,In,Bn,Qn,ui,nr,Oi,xi,qi){this.dialogRef=ct,this.data=kt,this.membersService=Zt,this.apiRequestConfiguration=rn,this.usersService=In,this.store=Bn,this.translator=Qn,this.authzService=ui,this.guiAuthResolver=nr,this.formBuilder=Oi,this.cd=xi,this.groupsService=qi,this.loading=!1,this.functionalityNotSupported=!1,this.loginThatWasSet="",this.successfullyCreated=!1,this.namespaceOptions=[],this.selectedNamespace=null,this.userControl=null,this.namespaceControl=null,this.selectedSponsor=null,this.sponsorType="self",this.languages=["en"],this.currentLanguage="en",this.finishedWithErrors=!1,this.submitAllowed=!1,this.groupsToAssign=new B.x,this.namespaceRules=[],this.parsedRules=new Map,this.expiration="never"}static parseAttributes(ct,kt,Zt){for(const rn of kt)switch(rn){case"login":ct.login=Zt;break;case"password":ct.password=Zt}}onConfirm(){this.groupsToAssign.next()}createMember(ct){this.loading=!0;const kt={vo:this.data.voId,userData:{firstName:this.userControl.get("firstName").value,lastName:this.userControl.get("lastName").value,titleAfter:this.userControl.get("titleAfter").value,titleBefore:this.userControl.get("titleBefore").value,email:this.namespaceControl.get("email").value},sponsor:"other"===this.sponsorType?this.selectedSponsor.id:this.store.getPerunPrincipal().userId},Zt=this.namespaceControl.get("namespace").value,rn=this.parsedRules.get(Zt);"No namespace"!==Zt&&(kt.userData.namespace=Zt),"disabled"!==rn.login&&(kt.userData.login=this.namespaceControl.get("login").value),"disabled"!==rn.password&&(kt.sendActivationLink=this.namespaceControl.get("passwordReset").value,kt.language=this.currentLanguage,kt.userData.password=this.namespaceControl.get("passwordCtrl").value),"never"!==this.expiration&&(kt.validityTo=this.expiration),this.membersService.createSponsoredMember(kt).subscribe(In=>{this.successfullyCreated=!0,this.dialogRef.updateSize("600px"),this.createdMember=In,!!In&&!!In.userAttributes&&In.userAttributes.filter(Bn=>"login-namespace"===Bn.baseFriendlyName).filter(Bn=>Bn.friendlyNameParameter===Zt).filter(Bn=>null!==Bn.value).forEach(Bn=>{this.loginThatWasSet=Bn.value}),ct.length>0&&this.groupsService.addMember(ct,In.id).subscribe({next:()=>this.loading=!1,error:()=>{this.finishedWithErrors=!0,this.loading=!1}}),this.loading=!1},()=>{this.loading=!1})}onCancel(){this.successfullyCreated?this.dialogRef.close(!0):this.dialogRef.close()}onNamespaceChanged(ct){this.selectedNamespace=ct;const kt=this.parsedRules.get(ct),Zt=this.namespaceControl.get("login"),rn=this.namespaceControl.get("passwordCtrl"),In=this.namespaceControl.get("passwordAgainCtrl"),Bn=this.namespaceControl.get("passwordReset");"disabled"!==kt.login?(0,M.mH)(Zt,"optional"===kt.login?[]:[D.kI.required]):(Zt.disable(),Zt.setValue("")),"disabled"!==kt.password?((0,M.mH)(rn,"optional"===kt.password?[]:[D.kI.required],[(0,R.yT)(ct,this.usersService,this.apiRequestConfiguration)]),(0,M.mH)(In,[]),(0,M.mH)(Bn,[]),this.namespaceControl.get("passwordReset").setValue(!1)):(rn.disable(),rn.setValue(""),In.disable(),In.setValue(""),Bn.disable(),Bn.setValue(!1))}passwordResetChange(){const ct=this.namespaceControl.get("passwordCtrl"),kt=this.namespaceControl.get("passwordAgainCtrl");this.namespaceControl.get("passwordReset").value?(ct.disable(),ct.setValue(""),kt.disable(),kt.setValue("")):(ct.enable(),kt.enable())}setExpiration(ct){this.expiration="never"===ct?"never":(0,v.p6)(ct,"yyyy-MM-dd","en-GB")}getStepperNextConditions(){switch(this.stepper.selectedIndex){case 0:return this.userControl.invalid;case 1:return this.namespaceControl.invalid||this.namespaceControl.get("passwordCtrl").pending;case 2:return null===this.sponsorType||"other"===this.sponsorType&&null===this.selectedSponsor;default:return!1}}stepperPrevious(){this.stepper.previous()}stepperNext(){this.stepper.next()}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.userControl=this.formBuilder.group({firstName:["",D.kI.required],lastName:["",D.kI.required],titleBefore:[""],titleAfter:[""]}),this.languages=this.store.getProperty("supported_languages"),this.namespaceControl=this.formBuilder.group({namespace:["",D.kI.required],login:["",[D.kI.required]],passwordCtrl:["",D.kI.required,[(0,R.yT)(null,this.usersService,this.apiRequestConfiguration)]],passwordAgainCtrl:[""],passwordReset:[!1,[]],email:["",[D.kI.required,D.kI.pattern(M.B2)]]},{validators:M.dN.passwordMatchValidator}),this.membersService.getAllNamespacesRules().subscribe(ct=>{this.store.getProperty("allow_empty_sponsor_namespace")&&this.namespaceRules.push({namespaceName:"No namespace",requiredAttributes:[],optionalAttributes:[]}),this.namespaceRules=this.namespaceRules.concat(ct),this.parseNamespaceRules(),0===this.namespaceOptions.length&&(this.functionalityNotSupported=!0),this.loading=!1,this.cd.detectChanges()})}parseNamespaceRules(){for(const ct of this.namespaceRules){this.namespaceOptions.push(ct.namespaceName);const kt={login:"disabled",password:"disabled"};Mt.parseAttributes(kt,ct.requiredAttributes,"required"),Mt.parseAttributes(kt,ct.optionalAttributes,"optional"),this.parsedRules.set(ct.namespaceName,kt)}}}return Mt.\u0275fac=function(ct){return new(ct||Mt)(w.Y36(m.so),w.Y36(m.WI),w.Y36(e.uq),w.Y36(b.F5),w.Y36(e.Fv),w.Y36(b.d6),w.Y36(L.sK),w.Y36(e.Ct),w.Y36(b.x4),w.Y36(D.QS),w.Y36(w.sBO),w.Y36(e.ff))},Mt.\u0275cmp=w.Xpm({type:Mt,selectors:[["app-create-sponsored-member-dialog"]],viewQuery:function(ct,kt){if(1&ct&&w.Gf(ce,5),2&ct){let Zt;w.iGM(Zt=w.CRH())&&(kt.stepper=Zt.first)}},decls:7,vars:9,consts:[["mat-dialog-title","",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],["mat-dialog-title",""],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"linear"],["stepper",""],[3,"stepControl"],["matStepLabel",""],["alert_type","error",4,"ngIf"],[1,"dialog-container",3,"formGroup"],[1,"mt-2"],[1,"mt-4"],["data-cy","first-name-input","matInput","","formControlName","firstName","required","",3,"placeholder"],[4,"ngIf"],["data-cy","last-name-input","matInput","","formControlName","lastName","required","",3,"placeholder"],["matInput","","formControlName","titleBefore",3,"placeholder"],["matInput","","formControlName","titleAfter",3,"placeholder"],[1,"dialog-container","mt-4",3,"formGroup"],["data-cy","namespace-filter"],["formControlName","namespace","required","",3,"placeholder","valueChange"],[3,"value",4,"ngFor","ngForOf"],["matTooltipPosition","left",3,"matTooltip","matTooltipDisabled"],["data-cy","login-input","matInput","","formControlName","login","required","",3,"placeholder"],["data-cy","email-input","matInput","","formControlName","email","required","",3,"placeholder"],["labelPosition","before","formControlName","passwordReset",3,"change"],[3,"formGroup","namespace","tooltipPwdViaEmail"],[1,"dialog-container"],[3,"voId","voSponsors","sponsorTypeSelected","sponsorSelected"],[1,"mt-2",3,"datePicker"],[3,"voId","submit","groupsToAdd","submitAllowed"],["alert_type","error"],[3,"value"],[3,"value","valueChange"],[1,"bigger-font","mb-2"],[1,"mr-2","mb-2"],["alert_type","warn"],["mat-dialog-actions",""],["mat-flat-button","","data-cy","ok-button",1,"ml-auto",3,"click"],["mat-flat-button","",3,"click"],["class","ml-auto","mat-flat-button","",3,"click",4,"ngIf"],["data-cy","next-button","color","accent","mat-flat-button","","type","button",3,"ml-2","ml-auto","disabled","click",4,"ngIf"],["data-cy","confirm-button","class","ml-2","color","accent","mat-flat-button","","type","button",3,"disabled","click",4,"ngIf"],["mat-flat-button","",1,"ml-auto",3,"click"],["data-cy","next-button","color","accent","mat-flat-button","","type","button",3,"disabled","click"],["data-cy","confirm-button","color","accent","mat-flat-button","","type","button",1,"ml-2",3,"disabled","click"]],template:function(ct,kt){1&ct&&(w.TgZ(0,"div"),w.YNc(1,xe,3,3,"h1",0),w.YNc(2,ot,1,0,"mat-spinner",1),w.YNc(3,r,65,64,"div",2),w.YNc(4,_,21,21,"div",2),w.YNc(5,E,4,3,"div",3),w.YNc(6,t,7,6,"div",3),w.qZA()),2&ct&&(w.Tol(kt.theme),w.xp6(1),w.Q6J("ngIf",!kt.successfullyCreated),w.xp6(1),w.Q6J("ngIf",kt.loading),w.xp6(1),w.Q6J("ngIf",!kt.loading&&!kt.successfullyCreated),w.xp6(1),w.Q6J("ngIf",!kt.loading&&kt.successfullyCreated),w.xp6(1),w.Q6J("ngIf",kt.successfullyCreated),w.xp6(1),w.Q6J("ngIf",!kt.loading&&!kt.successfullyCreated))},dependencies:[v.sg,v.O5,O.ey,q.TO,q.KE,q.hX,te.Nt,D._Y,D.Fj,D.JJ,D.JL,D.Q7,D.sg,D.u,z.Hw,ie.lW,Te.oG,m.uh,m.xY,m.H8,pe.gD,Le.Ou,T.gM,W.C0,W.VY,W.Vq,F.w,V.c,ee.G,k,be.l,v.gd,L.X$,Z.d],styles:[".bigger-font[_ngcontent-%COMP%]{font-size:1.5rem}.input-spinner[_ngcontent-%COMP%]{float:right;margin-left:8px}mat-icon[_ngcontent-%COMP%]{color:#28a745;font-size:36px;vertical-align:bottom}"]}),Mt})();var o=p(28255);const s=["stepper"];function l(Mt,en){1&Mt&&w._UZ(0,"mat-spinner",4)}function d(Mt,en){1&Mt&&(w._uU(0),w.ALo(1,"translate")),2&Mt&&w.Oqu(w.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.USERS_LABEL"))}function c(Mt,en){1&Mt&&(w.TgZ(0,"perun-web-apps-alert",26),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&Mt&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.FUNCTIONALITY_NOT_SUPPORTED")," "))}function S(Mt,en){if(1&Mt&&(w.TgZ(0,"mat-option",27),w._uU(1),w.qZA()),2&Mt){const ct=en.$implicit;w.Q6J("value",ct),w.uIk("data-cy",ct),w.xp6(1),w.hij(" ",ct," ")}}function J(Mt,en){1&Mt&&(w.TgZ(0,"mat-error"),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&Mt&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NAMESPACE_ERROR")," "))}function ht(Mt,en){1&Mt&&(w.TgZ(0,"mat-error"),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&Mt&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NAMES_ERROR")," "))}function ze(Mt,en){if(1&Mt&&(w.TgZ(0,"mat-error"),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&Mt){const ct=w.oxw(3);w.xp6(1),w.AsE(" ",w.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ERROR_FORMAT"),": ",ct.usersInfoFormGroup.get("sponsoredMembers").getError("invalidFormat").value," ")}}function et(Mt,en){if(1&Mt&&(w.TgZ(0,"mat-error"),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&Mt){const ct=w.oxw(3);w.xp6(1),w.AsE(" ",w.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ERROR_EMAIL"),": ",ct.usersInfoFormGroup.get("sponsoredMembers").getError("invalidEmail").value," ")}}function ne(Mt,en){if(1&Mt&&(w.TgZ(0,"mat-error"),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&Mt){const ct=w.oxw(3);w.xp6(1),w.AsE(" ",w.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ERROR_LOGIN"),": ",ct.usersInfoFormGroup.get("sponsoredMembers").getError("invalidLogin").value," ")}}function Ue(Mt,en){1&Mt&&(w._uU(0),w.ALo(1,"translate")),2&Mt&&w.Oqu(w.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.PASSWORD_LABEL"))}function He(Mt,en){1&Mt&&(w.TgZ(0,"perun-web-apps-alert",28),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&Mt&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NO_NAMESPACE_PASSWORD_INFO")," "))}function Pe(Mt,en){if(1&Mt){const ct=w.EpF();w.TgZ(0,"mat-radio-group",29),w.NdJ("ngModelChange",function(Zt){w.CHM(ct);const rn=w.oxw(3);return w.KtG(rn.passwordReset=Zt)}),w.TgZ(1,"mat-radio-button",30),w._uU(2),w.ALo(3,"translate"),w.qZA(),w.TgZ(4,"mat-radio-button",31),w._uU(5),w.ALo(6,"translate"),w.qZA()()}if(2&Mt){const ct=w.oxw(3);w.Q6J("ngModel",ct.passwordReset),w.xp6(2),w.hij(" ",w.lcZ(3,3,"DIALOGS.GENERATE_SPONSORED_MEMBERS.GENERATE_PASSWORD")," "),w.xp6(3),w.hij(" ",w.lcZ(6,5,"DIALOGS.GENERATE_SPONSORED_MEMBERS.PASSWORD_RESET")," ")}}function Re(Mt,en){if(1&Mt&&(w.TgZ(0,"mat-option",27),w._uU(1),w.ALo(2,"translate"),w.ALo(3,"uppercase"),w.qZA()),2&Mt){const ct=en.$implicit;w.s9C("value",ct),w.xp6(1),w.hij(" ",w.lcZ(2,2,w.lcZ(3,4,"SHARED_LIB.LANGUAGES."+ct))," ")}}function re(Mt,en){if(1&Mt){const ct=w.EpF();w.TgZ(0,"mat-form-field",32)(1,"mat-label"),w._uU(2),w.ALo(3,"translate"),w.qZA(),w.TgZ(4,"mat-select",33),w.NdJ("valueChange",function(Zt){w.CHM(ct);const rn=w.oxw(3);return w.KtG(rn.currentLanguage=Zt)}),w.YNc(5,Re,4,6,"mat-option",16),w.qZA()()}if(2&Mt){const ct=w.oxw(3);w.xp6(2),w.Oqu(w.lcZ(3,3,"DIALOGS.INVITE_MEMBER.LANGUAGE")),w.xp6(2),w.Q6J("value",ct.currentLanguage),w.xp6(1),w.Q6J("ngForOf",ct.languages)}}function we(Mt,en){1&Mt&&(w._uU(0),w.ALo(1,"translate")),2&Mt&&w.Oqu(w.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.EXPIRATION_LABEL"))}function st(Mt,en){1&Mt&&(w._uU(0),w.ALo(1,"translate")),2&Mt&&w.Oqu(w.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.GROUPS_LABEL"))}function Ke(Mt,en){if(1&Mt){const ct=w.EpF();w.TgZ(0,"mat-stepper",8,9)(2,"mat-step",10),w.YNc(3,d,2,3,"ng-template",11),w.YNc(4,c,3,3,"perun-web-apps-alert",12),w.TgZ(5,"h5",13),w._uU(6),w.ALo(7,"translate"),w.qZA(),w.TgZ(8,"form",14)(9,"mat-form-field")(10,"mat-select",15),w.ALo(11,"translate"),w.YNc(12,S,2,3,"mat-option",16),w.qZA(),w.YNc(13,J,3,3,"mat-error",7),w.qZA(),w.TgZ(14,"div"),w._uU(15),w.ALo(16,"translate"),w.qZA(),w.TgZ(17,"div",17),w._uU(18),w.qZA(),w.TgZ(19,"mat-form-field",18)(20,"mat-label"),w._uU(21),w.ALo(22,"translate"),w.qZA(),w.TgZ(23,"textarea",19),w._uU(24," "),w.qZA(),w.YNc(25,ht,3,3,"mat-error",7),w.YNc(26,ze,3,4,"mat-error",7),w.YNc(27,et,3,4,"mat-error",7),w.YNc(28,ne,3,4,"mat-error",7),w.qZA()()(),w.TgZ(29,"mat-step"),w.YNc(30,Ue,2,3,"ng-template",11),w.TgZ(31,"div",13)(32,"h5",20),w._uU(33),w.ALo(34,"translate"),w.qZA(),w.YNc(35,He,3,3,"perun-web-apps-alert",21),w.YNc(36,Pe,7,7,"mat-radio-group",22),w.YNc(37,re,6,5,"mat-form-field",23),w.qZA()(),w.TgZ(38,"mat-step"),w.YNc(39,we,2,3,"ng-template",11),w.TgZ(40,"div",13)(41,"h5",20),w._uU(42),w.ALo(43,"translate"),w.qZA(),w.TgZ(44,"perun-web-apps-expiration-select",24),w.NdJ("datePicker",function(Zt){w.CHM(ct);const rn=w.oxw(2);return w.KtG(rn.setExpiration(Zt))}),w.qZA()()(),w.TgZ(45,"mat-step"),w.YNc(46,st,2,3,"ng-template",11),w.TgZ(47,"app-assign-groups-sponsored-members-component",25),w.NdJ("groupsToAdd",function(Zt){w.CHM(ct);const rn=w.oxw(2);return w.KtG(rn.onGenerate(Zt))})("submitAllowed",function(Zt){w.CHM(ct);const rn=w.oxw(2);return w.KtG(rn.submitAllowed=Zt)}),w.qZA()()()}if(2&Mt){const ct=w.oxw(2);w.Q6J("linear",!0),w.xp6(2),w.Q6J("stepControl",ct.usersInfoFormGroup),w.xp6(2),w.Q6J("ngIf",ct.functionalityNotSupported),w.xp6(2),w.Oqu(w.lcZ(7,24,"DIALOGS.GENERATE_SPONSORED_MEMBERS.USERS_INFO")),w.xp6(2),w.Q6J("formGroup",ct.usersInfoFormGroup),w.xp6(2),w.s9C("placeholder",w.lcZ(11,26,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NAMESPACE")),w.xp6(2),w.Q6J("ngForOf",ct.namespaceOptions),w.xp6(1),w.Q6J("ngIf",ct.usersInfoFormGroup.hasError("required","namespace")),w.xp6(2),w.Oqu(w.lcZ(16,28,"DIALOGS.GENERATE_SPONSORED_MEMBERS.HINT")),w.xp6(3),w.hij(" ",ct.getSelectedNamespaceRules().csvGenHeaderDescription," "),w.xp6(3),w.Oqu(w.lcZ(22,30,"DIALOGS.GENERATE_SPONSORED_MEMBERS.INSERT_HERE")),w.xp6(2),w.s9C("placeholder",ct.getSelectedNamespaceRules().csvGenPlaceholder),w.xp6(2),w.Q6J("ngIf",ct.usersInfoFormGroup.hasError("required","sponsoredMembers")),w.xp6(1),w.Q6J("ngIf",ct.usersInfoFormGroup.hasError("invalidFormat","sponsoredMembers")),w.xp6(1),w.Q6J("ngIf",ct.usersInfoFormGroup.hasError("invalidEmail","sponsoredMembers")),w.xp6(1),w.Q6J("ngIf",ct.usersInfoFormGroup.hasError("invalidLogin","sponsoredMembers")),w.xp6(5),w.hij(" ",w.lcZ(34,32,"DIALOGS.GENERATE_SPONSORED_MEMBERS.PASSWORD_MANAGEMENT")," "),w.xp6(2),w.Q6J("ngIf","No namespace"===ct.getSelectedNamespaceRules().namespaceName),w.xp6(1),w.Q6J("ngIf","No namespace"!==ct.getSelectedNamespaceRules().namespaceName),w.xp6(1),w.Q6J("ngIf","reset"===ct.passwordReset),w.xp6(5),w.Oqu(w.lcZ(43,34,"DIALOGS.GENERATE_SPONSORED_MEMBERS.EXPIRATION")),w.xp6(2),w.Q6J("expiration",ct.expiration),w.xp6(3),w.Q6J("voId",ct.data.voId)("submit",ct.groupsToAssign.asObservable())}}function Et(Mt,en){1&Mt&&(w.TgZ(0,"perun-web-apps-alert",35),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&Mt&&(w.Q6J("alert_type","success"),w.xp6(1),w.hij(" ",w.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.SUCCESS")," "))}function ke(Mt,en){1&Mt&&(w.TgZ(0,"perun-web-apps-alert",35),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&Mt&&(w.Q6J("alert_type","warn"),w.xp6(1),w.hij(" ",w.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.FINISHED_WITH_ERRORS")," "))}function at(Mt,en){if(1&Mt&&(w.TgZ(0,"div"),w.YNc(1,Et,3,4,"perun-web-apps-alert",34),w.YNc(2,ke,3,4,"perun-web-apps-alert",34),w.qZA()),2&Mt){const ct=w.oxw(2);w.xp6(1),w.Q6J("ngIf",!1===ct.finishedWithErrors),w.xp6(1),w.Q6J("ngIf",ct.finishedWithErrors)}}function It(Mt,en){if(1&Mt&&(w.TgZ(0,"div",5),w.YNc(1,Ke,48,36,"mat-stepper",6),w.YNc(2,at,3,2,"div",7),w.qZA()),2&Mt){const ct=w.oxw();w.xp6(1),w.Q6J("ngIf","user-input"===ct.state),w.xp6(1),w.Q6J("ngIf","results"===ct.state)}}function jt(Mt,en){if(1&Mt){const ct=w.EpF();w.TgZ(0,"button",41),w.NdJ("click",function(){w.CHM(ct);const Zt=w.oxw(2);return w.KtG(Zt.stepperPrevious())}),w._uU(1),w.ALo(2,"translate"),w.qZA()}2&Mt&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.BACK")," "))}function an(Mt,en){if(1&Mt){const ct=w.EpF();w.TgZ(0,"button",42),w.NdJ("click",function(){w.CHM(ct);const Zt=w.oxw(2);return w.KtG(Zt.stepperNext())}),w._uU(1),w.ALo(2,"translate"),w.qZA()}if(2&Mt){const ct=w.oxw(2);w.ekj("ml-2",void 0!==ct.stepper&&0!==ct.stepper.selectedIndex)("ml-auto",!(void 0!==ct.stepper&&0!==ct.stepper.selectedIndex)),w.Q6J("disabled",ct.getStepperNextConditions()),w.xp6(1),w.hij(" ",w.lcZ(2,6,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NEXT")," ")}}function Kt(Mt,en){if(1&Mt){const ct=w.EpF();w.TgZ(0,"button",43),w.NdJ("click",function(){w.CHM(ct);const Zt=w.oxw(2);return w.KtG(Zt.onSubmit())}),w._uU(1),w.ALo(2,"translate"),w.qZA()}if(2&Mt){const ct=w.oxw(2);w.Q6J("disabled",!ct.submitAllowed),w.xp6(1),w.hij(" ",w.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.SUBMIT")," ")}}function on(Mt,en){if(1&Mt){const ct=w.EpF();w.TgZ(0,"div",36)(1,"button",37),w.NdJ("click",function(){w.CHM(ct);const Zt=w.oxw();return w.KtG(Zt.onCancel())}),w._uU(2),w.ALo(3,"translate"),w.qZA(),w.YNc(4,jt,3,3,"button",38),w.YNc(5,an,3,8,"button",39),w.YNc(6,Kt,3,4,"button",40),w.qZA()}if(2&Mt){const ct=w.oxw();w.xp6(2),w.hij(" ",w.lcZ(3,4,"DIALOGS.GENERATE_SPONSORED_MEMBERS.CANCEL")," "),w.xp6(2),w.Q6J("ngIf",void 0!==ct.stepper&&0!==ct.stepper.selectedIndex),w.xp6(1),w.Q6J("ngIf",void 0!==ct.stepper&&ct.stepper.selectedIndex!==ct.stepper._steps.length-1),w.xp6(1),w.Q6J("ngIf",void 0!==ct.stepper&&ct.stepper.selectedIndex===ct.stepper._steps.length-1)}}function Cn(Mt,en){if(1&Mt){const ct=w.EpF();w.TgZ(0,"div",36)(1,"button",44),w.NdJ("click",function(){w.CHM(ct);const Zt=w.oxw();return w.KtG(Zt.onClose())}),w._uU(2),w.ALo(3,"translate"),w.qZA(),w.TgZ(4,"button",45),w._uU(5),w.ALo(6,"translate"),w.qZA(),w.TgZ(7,"mat-menu",null,46)(9,"button",47),w.NdJ("click",function(){w.CHM(ct);const Zt=w.oxw();return w.KtG(Zt.generatePdf())}),w._uU(10),w.ALo(11,"translate"),w.qZA(),w.TgZ(12,"button",47),w.NdJ("click",function(){w.CHM(ct);const Zt=w.oxw();return w.KtG(Zt.downloadCsv())}),w._uU(13),w.ALo(14,"translate"),w.qZA()()()}if(2&Mt){const ct=w.MAs(8);w.xp6(2),w.hij(" ",w.lcZ(3,5,"DIALOGS.GENERATE_SPONSORED_MEMBERS.CLOSE")," "),w.xp6(2),w.Q6J("matMenuTriggerFor",ct),w.xp6(1),w.hij(" ",w.lcZ(6,7,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DOWNLOAD")," "),w.xp6(5),w.hij(" ",w.lcZ(11,9,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DOWNLOAD_PDF")," "),w.xp6(3),w.hij(" ",w.lcZ(14,11,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DOWNLOAD_CSV")," ")}}let Tt=(()=>{class Mt{constructor(ct,kt,Zt,rn,In,Bn,Qn,ui,nr,Oi,xi,qi){this.dialogRef=ct,this.data=kt,this.store=Zt,this.membersService=rn,this.notificator=In,this.translate=Bn,this.guiAuthResolver=Qn,this.groupsService=ui,this.attributesService=nr,this.formBuilder=Oi,this.sponsoredMembersPDFService=xi,this.cd=qi,this.loading=!1,this.functionalityNotSupported=!1,this.namespaceOptions=[],this.state="user-input",this.passwordReset="generate",this.expiration="never",this.finishedWithErrors=!1,this.submitAllowed=!1,this.groupsToAssign=new B.x,this.languages=["en"],this.currentLanguage="en",this.namespaceRules=[],this.resultData=[]}static didSomeGenerationFailed(ct){return ct.forEach(kt=>{if("OK"!==kt.status)return!0}),!1}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.languages=this.store.getProperty("supported_languages"),this.usersInfoFormGroup=this.formBuilder.group({namespace:["",D.kI.required],sponsoredMembers:["",[D.kI.required,this.userInputValidator()]]}),this.usersInfoFormGroup.controls.namespace.valueChanges.subscribe({next:()=>{this.usersInfoFormGroup.controls.sponsoredMembers.updateValueAndValidity()}}),this.membersService.getAllNamespacesRules().subscribe(ct=>{this.store.getProperty("allow_empty_sponsor_namespace")&&this.namespaceRules.push({namespaceName:"No namespace",csvGenHeader:"firstname;lastname;urn:perun:user:attribute-def:def:preferredMail",csvGenPlaceholder:"John;Doe;john@mail.cz",csvGenHeaderDescription:"First name;Last name;Email"}),this.namespaceRules=this.namespaceRules.concat(ct),this.namespaceRules.forEach(kt=>this.namespaceOptions.push(kt.namespaceName)),0===this.namespaceOptions.length?this.functionalityNotSupported=!0:this.usersInfoFormGroup.setValue({namespace:this.namespaceOptions[0],sponsoredMembers:""}),this.loading=!1,this.cd.detectChanges()})}onCancel(){this.dialogRef.close(!1)}onClose(){this.dialogRef.close(!0)}setExpiration(ct){this.expiration="never"===ct?"never":(0,v.p6)(ct,"yyyy-MM-dd","en-GB")}onSubmit(){this.groupsToAssign.next()}getSelectedNamespaceRules(){return this.namespaceRules.find(ct=>ct.namespaceName===this.usersInfoFormGroup.get("namespace").value)}generatePdf(){if(!this.resultData)throw new Error("Cannot generate pdf because there is no result");this.loading=!0,this.sponsoredMembersPDFService.generate(this.resultData).then(()=>this.loading=!1)}downloadCsv(){if(!this.resultData)throw new Error("Cannot generate pdf because there is no result");(0,M.O6)(this.createOutputObjects(this.resultData),"csv","member-logins")}getStepperNextConditions(){switch(this.stepper.selectedIndex){case 0:return this.usersInfoFormGroup.invalid;case 1:return null===this.passwordReset;case 2:return null===this.expiration;default:return!1}}stepperPrevious(){this.stepper.previous()}stepperNext(){this.stepper.next()}onGenerate(ct){this.loading=!0;const kt=this.usersInfoFormGroup.get("sponsoredMembers").value.split("\n"),Zt=this.getSelectedNamespaceRules().csvGenHeader,rn=[];for(const Bn of kt){const Qn=this.parseMemberLine(Bn);if("format"===Qn||"email"===Qn)return void(this.loading=!1);""!==Qn&&rn.push(Qn)}const In={data:rn,header:Zt,namespace:"",sponsor:this.store.getPerunPrincipal().userId,vo:this.data.voId,sendActivationLinks:"reset"===this.passwordReset,language:this.currentLanguage};ct.length>0&&(In.groups=ct),"never"!==this.expiration&&(In.validityTo=(0,v.p6)(this.expiration,"yyyy-MM-dd","en-GB")),"No namespace"!==this.usersInfoFormGroup.get("namespace").value&&(In.namespace=this.usersInfoFormGroup.get("namespace").value),this.membersService.createSponsoredMembersFromCSV(In).subscribe(Bn=>{this.state="results",this.finishedWithErrors=Mt.didSomeGenerationFailed(Bn),this.loading=!1,this.resultData=Bn},()=>this.loading=!1)}createOutputObjects(ct){let kt="",Zt="",rn="",In="";const Bn=[];return ct.forEach(Qn=>{kt=Qn.name.replace(";"," ").split(";")[0],Zt=Qn.status,rn=Qn.login?Qn.login:rn,In=Qn.password?Qn.password:In;const ui={name:kt,status:Zt,login:rn,password:In};Qn.note&&(ui.note=Qn.note),Bn.push(ui)}),Bn}parseMemberLine(ct){const kt=ct.trim();if(""===kt)return"";const Zt=kt.split(";"),rn=this.getSelectedNamespaceRules().csvGenHeader.split(";");if(Zt.length!==rn.length)return"format";if("mail"===rn[2].slice(rn[2].length-4).toLowerCase()&&!Zt[2].trim().match(M.B2))return"email";if("login"===rn[3]&&""===Zt[3].trim())return"login";let In="";for(const Bn of Zt)In+=Bn.trim()+";";return In.slice(0,-1)}userInputValidator(){return ct=>{const kt=ct.value.split("\n");for(const Zt of kt){const rn=this.parseMemberLine(Zt);if("format"===rn)return{invalidFormat:{value:Zt}};if("email"===rn)return{invalidEmail:{value:Zt}};if("login"===rn)return{invalidLogin:{value:Zt}}}return null}}}return Mt.\u0275fac=function(ct){return new(ct||Mt)(w.Y36(m.so),w.Y36(m.WI),w.Y36(b.d6),w.Y36(e.uq),w.Y36(b.V6),w.Y36(L.sK),w.Y36(b.x4),w.Y36(e.ff),w.Y36(e.H8),w.Y36(D.QS),w.Y36(b.HV),w.Y36(w.sBO))},Mt.\u0275cmp=w.Xpm({type:Mt,selectors:[["app-generate-sponsored-members-dialog"]],viewQuery:function(ct,kt){if(1&ct&&w.Gf(s,5),2&ct){let Zt;w.iGM(Zt=w.CRH())&&(kt.stepper=Zt.first)}},decls:8,vars:10,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"linear",4,"ngIf"],[4,"ngIf"],[3,"linear"],["stepper",""],[3,"stepControl"],["matStepLabel",""],["alert_type","error",4,"ngIf"],[1,"mt-2"],[1,"flex-container","mt-2",3,"formGroup"],["data-cy","namespace-filter","formControlName","namespace","required","",3,"placeholder"],[3,"value",4,"ngFor","ngForOf"],[1,"font-weight-bold"],[1,"pt-2"],["data-cy","csv-input","cols","50","id","voGenerateSponsoredMembers","name","voGenerateSponsoredMembers","formControlName","sponsoredMembers","matInput","","rows","8",1,"md-textarea","form-control",3,"placeholder"],[1,"mb-4"],["alert_type","info",4,"ngIf"],[3,"ngModel","ngModelChange",4,"ngIf"],["class","w-100",4,"ngIf"],[3,"expiration","datePicker"],[3,"voId","submit","groupsToAdd","submitAllowed"],["alert_type","error"],[3,"value"],["alert_type","info"],[3,"ngModel","ngModelChange"],["value","generate"],["value","reset"],[1,"w-100"],[3,"value","valueChange"],[3,"alert_type",4,"ngIf"],[3,"alert_type"],["mat-dialog-actions",""],["mat-flat-button","",3,"click"],["class","ml-auto","mat-flat-button","",3,"click",4,"ngIf"],["data-cy","next-button","color","accent","mat-flat-button","",3,"ml-2","ml-auto","disabled","click",4,"ngIf"],["data-cy","submit-button","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],["mat-flat-button","",1,"ml-auto",3,"click"],["data-cy","next-button","color","accent","mat-flat-button","",3,"disabled","click"],["data-cy","submit-button","color","accent","mat-flat-button","",3,"disabled","click"],["mat-flat-button","","data-cy","close-button",3,"click"],["color","accent","mat-flat-button","",1,"ml-auto","dropdown-toggle",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click"]],template:function(ct,kt){1&ct&&(w.TgZ(0,"div")(1,"h1",0),w._uU(2),w.ALo(3,"translate"),w.qZA(),w.YNc(4,l,1,0,"mat-spinner",1),w.YNc(5,It,3,2,"div",2),w.YNc(6,on,7,6,"div",3),w.YNc(7,Cn,15,13,"div",3),w.qZA()),2&ct&&(w.Tol(kt.theme),w.xp6(2),w.Oqu(w.lcZ(3,8,"DIALOGS.GENERATE_SPONSORED_MEMBERS.TITLE")),w.xp6(2),w.Q6J("ngIf",kt.loading),w.xp6(1),w.Q6J("ngIf",!kt.loading),w.xp6(1),w.Q6J("ngIf",!kt.loading&&void 0!==kt.stepper&&"results"!==kt.state),w.xp6(1),w.Q6J("ngIf","results"===kt.state))},dependencies:[v.sg,v.O5,O.ey,q.TO,q.KE,q.hX,te.Nt,D._Y,D.Fj,D.JJ,D.JL,D.Q7,D.sg,D.u,D.On,ie.lW,m.uh,m.xY,m.H8,pe.gD,Le.Ou,Ee.VQ,Ee.U0,W.C0,W.VY,W.Vq,o.VK,o.OP,o.p6,F.w,V.c,k,v.gd,L.X$],styles:[".flex-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),Mt})();var Dt=p(91828),Ze=p(96308),wt=p(30671),Ft=p(19352),ln=p(58964),bn=p(94364),gn=p(34198),zn=p(55660),bt=p(18750),Lt=p(20919),pt=p(5865),rt=p(9185),St=p(8231),$=p(14849);function We(Mt,en){if(1&Mt){const ct=w.EpF();w.TgZ(0,"th",20)(1,"mat-checkbox",21),w.NdJ("change",function(Zt){w.CHM(ct);const rn=w.oxw(2);return w.KtG(Zt?rn.masterToggle():null)}),w.ALo(2,"translate"),w.ALo(3,"masterCheckboxLabel"),w.qZA()()}if(2&Mt){const ct=w.oxw().ngIf,kt=w.oxw();w.xp6(1),w.Q6J("aria-label",w.lcZ(2,3,w.lcZ(3,5,ct.all)))("checked",kt.selection.hasValue()&&ct.all)("indeterminate",kt.selection.hasValue()&&!ct.all)}}const At=function(Mt){return{name:Mt}};function Pt(Mt,en){if(1&Mt){const ct=w.EpF();w.TgZ(0,"td",22)(1,"mat-checkbox",23),w.NdJ("change",function(Zt){const In=w.CHM(ct).$implicit,Bn=w.oxw(2);return w.KtG(Zt?Bn.selection.toggle(In):null)})("click",function(Zt){return Zt.stopPropagation()}),w.ALo(2,"translate"),w.ALo(3,"checkboxLabel"),w.ALo(4,"userFullName"),w.qZA()()}if(2&Mt){const ct=en.$implicit,kt=w.oxw(2);w.xp6(1),w.Q6J("aria-label",w.xi3(2,2,w.lcZ(3,5,kt.selection.isSelected(ct)),w.VKq(9,At,w.lcZ(4,7,ct.member.user))))("checked",kt.selection.isSelected(ct))}}function Xt(Mt,en){1&Mt&&(w.ynx(0,17),w.YNc(1,We,4,7,"th",18),w.YNc(2,Pt,5,11,"td",19),w.BQk())}function yn(Mt,en){1&Mt&&(w.TgZ(0,"th",24),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&Mt&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.ID")," "))}function Zn(Mt,en){if(1&Mt&&(w.TgZ(0,"td",25),w._uU(1),w.qZA()),2&Mt){const ct=en.$implicit;w.xp6(1),w.hij(" ",ct.member.id," ")}}function Hn(Mt,en){1&Mt&&(w.TgZ(0,"th",24),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&Mt&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.NAME")," "))}function Xn(Mt,en){if(1&Mt&&(w.TgZ(0,"td",26),w._uU(1),w.ALo(2,"userFullName"),w.qZA()),2&Mt){const ct=en.$implicit;w.xp6(1),w.hij(" ",w.lcZ(2,1,ct.member.user)," ")}}function mi(Mt,en){1&Mt&&(w.TgZ(0,"th",27),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&Mt&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.EMAIL")," "))}function di(Mt,en){if(1&Mt&&(w.TgZ(0,"td",26),w._uU(1),w.ALo(2,"memberEmail"),w.qZA()),2&Mt){const ct=en.$implicit;w.xp6(1),w.Oqu(w.lcZ(2,1,ct.member))}}function Jn(Mt,en){1&Mt&&(w.TgZ(0,"th",27),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&Mt&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.LOGIN")," "))}function Ln(Mt,en){if(1&Mt&&(w.TgZ(0,"td",26),w._uU(1),w.ALo(2,"memberLogins"),w.qZA()),2&Mt){const ct=en.$implicit;w.xp6(1),w.hij(" ",w.lcZ(2,1,ct.member)," ")}}function zi(Mt,en){1&Mt&&(w.TgZ(0,"th",24),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&Mt&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.SPONSORS")," "))}function qn(Mt,en){if(1&Mt&&(w.TgZ(0,"span"),w._uU(1),w.ALo(2,"userFullName"),w._UZ(3,"br"),w.qZA()),2&Mt){const ct=en.$implicit;w.xp6(1),w.hij(" ",w.lcZ(2,1,ct.user),"")}}function si(Mt,en){if(1&Mt&&(w.TgZ(0,"td",26),w.YNc(1,qn,4,3,"span",28),w.qZA()),2&Mt){const ct=en.$implicit;w.xp6(1),w.Q6J("ngForOf",ct.sponsors)}}function Yi(Mt,en){1&Mt&&w._UZ(0,"th",24)}function tr(Mt,en){if(1&Mt){const ct=w.EpF();w.TgZ(0,"span",31),w.ALo(1,"translate"),w.TgZ(2,"button",32),w.NdJ("mouseenter",function(){w.CHM(ct);const Zt=w.oxw(2);return w.KtG(Zt.disableRouting=!0)})("mouseleave",function(){w.CHM(ct);const Zt=w.oxw(2);return w.KtG(Zt.disableRouting=Zt.routingStrategy)})("click",function(){w.CHM(ct);const Zt=w.oxw().$implicit,rn=w.oxw();return w.KtG(rn.resetPassword(Zt))}),w.TgZ(3,"mat-icon"),w._uU(4,"vpn_key"),w.qZA()()()}if(2&Mt){const ct=w.oxw().$implicit,kt=w.oxw();w.Q6J("matTooltipPosition","above")("matTooltip",w.lcZ(1,4,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.PASSWORD_RESET")),w.xp6(2),w.Q2q("data-cy","",ct.member.user.firstName,"-reset-passwd-button"),w.Q6J("disabled",kt.loading)}}function Vi(Mt,en){if(1&Mt){const ct=w.EpF();w.TgZ(0,"td",26)(1,"button",29),w.NdJ("click",function(){const rn=w.CHM(ct).$implicit,In=w.oxw();return w.KtG(In.showSponsors(rn))})("mouseenter",function(){w.CHM(ct);const Zt=w.oxw();return w.KtG(Zt.disableRouting=!0)})("mouseleave",function(){w.CHM(ct);const Zt=w.oxw();return w.KtG(Zt.disableRouting=Zt.routingStrategy)}),w.TgZ(2,"mat-icon"),w._uU(3,"edit"),w.qZA()(),w.YNc(4,tr,5,6,"span",30),w.qZA()}if(2&Mt){const ct=en.$implicit,kt=w.oxw();w.xp6(1),w.Q2q("data-cy","",ct.member.user.firstName,"-edit-sponsors-button"),w.xp6(3),w.Q6J("ngIf",kt.passwdResetAuth(ct))}}function li(Mt,en){1&Mt&&w._UZ(0,"tr",33)}const or=function(Mt,en){return["/organizations",Mt,"members",en]};function Ir(Mt,en){if(1&Mt&&w._UZ(0,"tr",34),2&Mt){const ct=en.$implicit,kt=w.oxw();w.ekj("cursor-pointer",!kt.disableRouting)("disable-outline",kt.disableRouting),w.Q2q("data-cy","",ct.member.user.firstName,"-name"),w.Q6J("perunWebAppsMiddleClickRouterLink",kt.disableRouting?null:w.WLB(7,or,ct.member.voId,ct.member.id))("routerLink",kt.disableRouting?null:w.WLB(10,or,ct.member.voId,ct.member.id))}}function sr(Mt,en){1&Mt&&(w.TgZ(0,"perun-web-apps-alert",35),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&Mt&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function lr(Mt,en){1&Mt&&(w.TgZ(0,"perun-web-apps-alert",35),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&Mt&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.NO_SPONSORED_MEMBERS_WARNING"),"\n"))}const Ci=function(Mt){return{all:Mt}};let Er=(()=>{class Mt{constructor(ct,kt,Zt,rn,In){this.dialog=ct,this.authResolver=kt,this.storeService=Zt,this.attributesManager=rn,this.tableCheckbox=In,this.sponsoredMembers=[],this.filterValue="",this.displayedColumns=["id","name","email","logins","sponsors","menu"],this.disableRouting=!1,this.refreshTable=new w.vpe,this.loading=!1,this.routingStrategy=!1,this.pageSizeOptions=M.f7}set matSort(ct){this.sort=ct}static getSortDataForColumn(ct,kt){switch(kt){case"id":return ct.member.id.toString();case"name":return ct.member.user?ct.member.user.lastName?ct.member.user.lastName:ct.member.user.firstName??"":"";case"sponsors":return ct.sponsors.length.toString();default:return""}}static getDataForColumn(ct,kt){switch(kt){case"id":return ct.member.id.toString();case"name":return ct.member.user?(0,M.bD)(ct.member.user):"";case"sponsors":return ct.sponsors.map(Zt=>(0,M.bD)(Zt.user)).join();default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(ct=>"id"!==ct)),this.setDataSource(),this.routingStrategy=this.disableRouting}exportAllData(ct){(0,M.O6)((0,M.Xn)(this.dataSource.filteredData,this.displayedColumns,Mt.getDataForColumn),ct)}exportDisplayedData(ct){const kt=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,Zt=kt+this.dataSource.paginator.pageSize;(0,M.O6)((0,M.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(kt,Zt),this.displayedColumns,Mt.getDataForColumn),ct)}setDataSource(){this.dataSource||(this.dataSource=new wt.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(ct,kt)=>(0,M.Sd)(ct,kt,this.displayedColumns,Mt.getDataForColumn),this.dataSource.sortData=(ct,kt)=>(0,M.pR)(ct,kt,Mt.getSortDataForColumn)),this.dataSource.filter=this.filterValue,this.dataSource.data=this.sponsoredMembers}showSponsors(ct){const kt=(0,M.kZ)();kt.width="650px",kt.data={sponsors:ct.sponsors,member:ct.member,theme:"vo-theme"},this.dialog.open(Ft.H,kt).afterClosed().subscribe(rn=>{rn&&this.refreshTable.emit()})}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}resetPassword(ct){this.loading=!0;const kt=this.storeService.getProperty("password_namespace_attributes").map(Zt=>{const rn=Zt.split(":");return rn[rn.length-1]});this.attributesManager.getLogins(ct.member.userId).subscribe(Zt=>{const rn=Zt.filter(Qn=>kt.includes(Qn.friendlyNameParameter)),In=(0,M.kZ)();In.width="400px",In.data={userId:ct.member.userId,memberId:ct.member.id,logins:rn},this.dialog.open(ln.m,In).afterClosed().subscribe(()=>{this.loading=!1})},()=>this.loading=!1)}passwdResetAuth(ct){return this.authResolver.isAuthorized("sendPasswordResetLinkEmail_Member_String_String_String_String_policy",[{id:ct.member.voId,beanName:"Vo"},ct.member])}}return Mt.\u0275fac=function(ct){return new(ct||Mt)(w.Y36(m.uw),w.Y36(b.x4),w.Y36(b.d6),w.Y36(e.H8),w.Y36(b.UA))},Mt.\u0275cmp=w.Xpm({type:Mt,selectors:[["app-sponsored-members-list"]],viewQuery:function(ct,kt){if(1&ct&&(w.Gf(M.l9,7),w.Gf(Ze.YE,7)),2&ct){let Zt;w.iGM(Zt=w.CRH())&&(kt.child=Zt.first),w.iGM(Zt=w.CRH())&&(kt.matSort=Zt.first)}},inputs:{sponsoredMembers:"sponsoredMembers",selection:"selection",filterValue:"filterValue",displayedColumns:"displayedColumns",disableRouting:"disableRouting",tableId:"tableId"},outputs:{refreshTable:"refreshTable"},features:[w.TTD],decls:27,vars:15,consts:[[1,"card","mt-3",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","name","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","email"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","logins"],["matColumnDef","sponsors"],["matColumnDef","menu"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-cell",""],[4,"ngFor","ngForOf"],["aria-label","sponsors of member","mat-icon-button","",1,"dark-hover-list-item",3,"click","mouseenter","mouseleave"],[3,"matTooltipPosition","matTooltip",4,"ngIf"],[3,"matTooltipPosition","matTooltip"],["aria-label","sponsors of member","mat-icon-button","",1,"dark-hover-list-item",3,"disabled","mouseenter","mouseleave","click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(ct,kt){1&ct&&(w.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),w.NdJ("exportDisplayedData",function(rn){return kt.exportDisplayedData(rn)})("exportAllData",function(rn){return kt.exportAllData(rn)}),w.TgZ(2,"table",2),w.YNc(3,Xt,3,0,"ng-container",3),w.ALo(4,"isAllSelected"),w.ynx(5,4),w.YNc(6,yn,3,3,"th",5),w.YNc(7,Zn,2,1,"td",6),w.BQk(),w.ynx(8,7),w.YNc(9,Hn,3,3,"th",5),w.YNc(10,Xn,3,3,"td",8),w.BQk(),w.ynx(11,9),w.YNc(12,mi,3,3,"th",10),w.YNc(13,di,3,3,"td",8),w.BQk(),w.ynx(14,11),w.YNc(15,Jn,3,3,"th",10),w.YNc(16,Ln,3,3,"td",8),w.BQk(),w.ynx(17,12),w.YNc(18,zi,3,3,"th",5),w.YNc(19,si,2,1,"td",8),w.BQk(),w.ynx(20,13),w.YNc(21,Yi,1,0,"th",5),w.YNc(22,Vi,5,2,"td",8),w.BQk(),w.YNc(23,li,1,0,"tr",14),w.YNc(24,Ir,1,13,"tr",15),w.qZA()()(),w.YNc(25,sr,3,3,"perun-web-apps-alert",16),w.YNc(26,lr,3,3,"perun-web-apps-alert",16)),2&ct&&(w.Q6J("hidden",0===kt.dataSource.filteredData.length||0===kt.sponsoredMembers.length),w.xp6(1),w.Q6J("pageSizeOptions",kt.pageSizeOptions)("dataLength",kt.dataSource.filteredData.length)("tableId",kt.tableId),w.xp6(1),w.Q6J("dataSource",kt.dataSource),w.xp6(1),w.Q6J("ngIf",w.VKq(13,Ci,w.xi3(4,10,kt.dataSource,kt.selection.selected.length))),w.xp6(20),w.Q6J("matHeaderRowDef",kt.displayedColumns),w.xp6(1),w.Q6J("matRowDefColumns",kt.displayedColumns),w.xp6(1),w.Q6J("ngIf",0===kt.dataSource.filteredData.length&&0!==kt.sponsoredMembers.length),w.xp6(1),w.Q6J("ngIf",0===kt.sponsoredMembers.length))},dependencies:[v.sg,v.O5,bn.rH,z.Hw,ie.lW,Ze.YE,Ze.nU,wt.BZ,wt.fO,wt.as,wt.w1,wt.Dz,wt.nj,wt.ge,wt.ev,wt.XQ,wt.Gk,Te.oG,T.gM,F.w,gn.Y,zn.Q,bt.l,L.X$,Z.d,Lt.D,pt.p,rt.I,St.G,$.r],styles:[".disable-outline[_ngcontent-%COMP%]{outline:none!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),Mt})();var Ur=p(96214);function Ei(Mt,en){if(1&Mt&&(w.TgZ(0,"button",11),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&Mt){const ct=w.oxw(),kt=w.MAs(9);w.Q6J("disabled",ct.findSponsorsAuth&&0===ct.voSponsors.length)("matMenuTriggerFor",kt),w.xp6(1),w.hij(" ",w.lcZ(2,3,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.CREATE")," ")}}function Or(Mt,en){if(1&Mt){const ct=w.EpF();w.TgZ(0,"button",12),w.NdJ("click",function(){w.CHM(ct);const Zt=w.oxw();return w.KtG(Zt.onCreate())}),w._uU(1),w.ALo(2,"translate"),w.qZA()}2&Mt&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.CREATE_ONE")," "))}function Nr(Mt,en){if(1&Mt){const ct=w.EpF();w.TgZ(0,"button",13),w.NdJ("click",function(){w.CHM(ct);const Zt=w.oxw();return w.KtG(Zt.onGenerate())}),w._uU(1),w.ALo(2,"translate"),w.qZA()}2&Mt&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.GENERATE")," "))}function kr(Mt,en){if(1&Mt){const ct=w.EpF();w.TgZ(0,"button",14),w.NdJ("click",function(){w.CHM(ct);const Zt=w.oxw();return w.KtG(Zt.onSponsorExistingMember())}),w._uU(1),w.ALo(2,"translate"),w.qZA()}2&Mt&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.SPONSOR_EXISTING")," "))}function Hr(Mt,en){1&Mt&&w._UZ(0,"mat-spinner",15)}function Pi(Mt,en){if(1&Mt){const ct=w.EpF();w.TgZ(0,"app-sponsored-members-list",16),w.NdJ("refreshTable",function(){w.CHM(ct);const Zt=w.oxw();return w.KtG(Zt.refresh())}),w.qZA()}if(2&Mt){const ct=w.oxw();w.Q6J("disableRouting",!ct.routeAuth)("selection",ct.selection)("filterValue",ct.searchString)("sponsoredMembers",ct.members)("tableId",ct.tableId)}}let Ii=(()=>{class Mt{constructor(ct,kt,Zt,rn,In,Bn,Qn){this.membersManager=ct,this.dialog=kt,this.authResolver=Zt,this.storeService=rn,this.authzResolver=In,this.entityStorageService=Bn,this.findSponsors=Qn,this.members=[],this.voSponsors=[],this.selection=new A.Ov(!0,[]),this.searchString="",this.loading=!1,this.tableId=C.Bf,this.attrNames=[Q.r.USER_DEF_PREFERRED_MAIL]}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.attrNames=this.attrNames.concat(this.storeService.getLoginAttributeNames()),this.setAuthRights(),this.findSponsorsAuth=this.findSponsors.findSponsorsAuth(this.vo),this.findSponsorsAuth?this.findSponsors.getSponsors(this.vo.id).subscribe(ct=>{this.voSponsors=ct,this.refresh()}):this.refresh()}setAuthRights(){this.createAuth=this.authResolver.isAuthorized("createSponsoredMember_Vo_String_Map_String_User_LocalDate_policy",[this.vo,this.storeService.getPerunPrincipal().user]),this.generateAuth=this.authResolver.isAuthorized("createSponsoredMembers_Vo_String_List_User_policy",[this.vo,this.storeService.getPerunPrincipal().user]),this.setSponsorshipAuth=this.authResolver.isAuthorized("setSponsorshipForMember_Member_User_LocalDate_policy",[this.vo,this.storeService.getPerunPrincipal().user]),null!==this.members&&0!==this.members.length&&(this.routeAuth=this.authResolver.isAuthorized("getMemberById_int_policy",[this.vo,this.members[0].member]))}onCreate(){const ct=(0,M.kZ)();ct.width="750px",ct.data={entityId:this.vo.id,voId:this.vo.id,sponsors:this.voSponsors,theme:"vo-theme"},this.dialog.open(n,ct).afterClosed().subscribe(Zt=>{Zt&&(this.loading=!0,this.authzResolver.getPerunPrincipal().subscribe(rn=>{this.storeService.setPerunPrincipal(rn),this.refresh()}))})}onGenerate(){const ct=(0,M.kZ)();ct.width="750px",ct.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(Tt,ct).afterClosed().subscribe(Zt=>{Zt&&(this.loading=!0,this.authzResolver.getPerunPrincipal().subscribe(rn=>{this.storeService.setPerunPrincipal(rn),this.refresh()}))})}onSponsorExistingMember(){const ct=(0,M.kZ)();ct.width="650px",ct.data={voId:this.vo.id,theme:"vo-theme",voSponsors:this.voSponsors,findSponsorsAuth:this.findSponsorsAuth},this.dialog.open(Dt.b,ct).afterClosed().subscribe(Zt=>{Zt&&(this.loading=!0,this.authzResolver.getPerunPrincipal().subscribe(rn=>{this.storeService.setPerunPrincipal(rn),this.refresh()}))})}refresh(){this.loading=!0,this.membersManager.getSponsoredMembersAndTheirSponsors(this.vo.id,this.attrNames).subscribe(ct=>{this.selection.clear(),this.members=ct,this.setAuthRights(),this.loading=!1})}applyFilter(ct){this.searchString=ct}}return Mt.id="VoSponsoredMembersComponent",Mt.\u0275fac=function(ct){return new(ct||Mt)(w.Y36(e.uq),w.Y36(m.uw),w.Y36(b.x4),w.Y36(b.d6),w.Y36(e.Ct),w.Y36(b.fb),w.Y36(b.Mf))},Mt.\u0275cmp=w.Xpm({type:Mt,selectors:[["app-vo-settings-sponsored-members"]],hostVars:2,hostBindings:function(ct,kt){2&ct&&w.ekj("router-component",kt.true)},decls:16,vars:14,consts:[[1,"page-subtitle"],[3,"refresh"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["data-cy","sponsor-dropdown-button","class","mr-2 dropdown-toggle","color","accent","mat-flat-button","",3,"disabled","matMenuTriggerFor",4,"ngIf"],["menu","matMenu"],["data-cy","sponsor-new-button","class","action-button","mat-menu-item","",3,"click",4,"ngIf"],["data-cy","sponsor-csv-button","class","action-button","mat-menu-item","",3,"click",4,"ngIf"],["data-cy","sponsor-existing-button","color","accent","class","mr-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableRouting","selection","filterValue","sponsoredMembers","tableId","refreshTable",4,"ngIf"],["data-cy","sponsor-dropdown-button","color","accent","mat-flat-button","",1,"mr-2","dropdown-toggle",3,"disabled","matMenuTriggerFor"],["data-cy","sponsor-new-button","mat-menu-item","",1,"action-button",3,"click"],["data-cy","sponsor-csv-button","mat-menu-item","",1,"action-button",3,"click"],["data-cy","sponsor-existing-button","color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],[1,"ml-auto","mr-auto"],[3,"disableRouting","selection","filterValue","sponsoredMembers","tableId","refreshTable"]],template:function(ct,kt){1&ct&&(w.TgZ(0,"div")(1,"h1",0),w._uU(2),w.ALo(3,"translate"),w.qZA(),w.TgZ(4,"perun-web-apps-refresh-button",1),w.NdJ("refresh",function(){return kt.refresh()}),w.qZA(),w.TgZ(5,"span",2),w.ALo(6,"translate"),w.YNc(7,Ei,3,5,"button",3),w.qZA(),w.TgZ(8,"mat-menu",null,4),w.YNc(10,Or,3,3,"button",5),w.YNc(11,Nr,3,3,"button",6),w.qZA(),w.YNc(12,kr,3,3,"button",7),w.TgZ(13,"perun-web-apps-immediate-filter",8),w.NdJ("filter",function(rn){return kt.applyFilter(rn)}),w.qZA(),w.YNc(14,Hr,1,0,"mat-spinner",9),w.YNc(15,Pi,1,5,"app-sponsored-members-list",10),w.qZA()),2&ct&&(w.xp6(2),w.Oqu(w.lcZ(3,10,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.TITLE")),w.xp6(3),w.s9C("matTooltip",w.lcZ(6,12,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.NO_SPONSORS")),w.Q6J("matTooltipDisabled",!(kt.findSponsorsAuth&&0===kt.voSponsors.length)),w.xp6(2),w.Q6J("ngIf",kt.createAuth||kt.generateAuth),w.xp6(3),w.Q6J("ngIf",kt.createAuth),w.xp6(1),w.Q6J("ngIf",kt.generateAuth),w.xp6(1),w.Q6J("ngIf",kt.setSponsorshipAuth),w.xp6(1),w.Q6J("placeholder","VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.FILTER"),w.xp6(1),w.Q6J("ngIf",kt.loading),w.xp6(1),w.Q6J("ngIf",!kt.loading))},dependencies:[v.O5,ie.lW,Le.Ou,T.gM,o.VK,o.OP,o.p6,Er,Ur.t,ve.L,L.X$]}),Mt})()},25309:(Xe,ue,p)=>{"use strict";p.d(ue,{Y:()=>Ye});var e=p(61744),A=p(9244),C=p(81591),M=p(11717),m=p(95017),b=p(65412),D=p(24006),v=p(94650),R=p(89383),B=p(94364),w=p(36895),L=p(59549),O=p(284),q=p(4859),te=p(51572),z=p(10266);function ie(Be,se){1&Be&&v._UZ(0,"mat-spinner",3)}function Te(Be,se){if(1&Be){const le=v.EpF();v.TgZ(0,"div")(1,"div",4)(2,"mat-form-field"),v._UZ(3,"input",5),v.ALo(4,"translate"),v.TgZ(5,"mat-error"),v._uU(6),v.ALo(7,"translate"),v.qZA()(),v.TgZ(8,"mat-form-field"),v._UZ(9,"input",6),v.ALo(10,"translate"),v.TgZ(11,"mat-error"),v._uU(12),v.ALo(13,"translate"),v.qZA()()(),v.TgZ(14,"div",7)(15,"button",8),v.NdJ("click",function(){v.CHM(le);const k=v.oxw();return v.KtG(k.onCancel())}),v._uU(16),v.ALo(17,"translate"),v.qZA(),v.TgZ(18,"div",9),v.ALo(19,"translate"),v.TgZ(20,"button",10),v.NdJ("click",function(){v.CHM(le);const k=v.oxw();return v.KtG(k.onSubmit())}),v._uU(21),v.ALo(22,"translate"),v.qZA()()()()}if(2&Be){const le=v.oxw();v.xp6(3),v.s9C("placeholder",v.lcZ(4,11,"DIALOGS.CREATE_VO.FULL_NAME")),v.Q6J("formControl",le.fullNameCtrl),v.xp6(3),v.hij(" ",v.lcZ(7,13,"DIALOGS.CREATE_VO.FILL_FULL_NAME")," "),v.xp6(3),v.s9C("placeholder",v.lcZ(10,15,"DIALOGS.CREATE_VO.SHORT_NAME")),v.Q6J("formControl",le.shortNameCtrl),v.xp6(3),v.hij(" ",v.lcZ(13,17,"DIALOGS.CREATE_VO.FILL_SHORT_NAME")," "),v.xp6(4),v.hij(" ",v.lcZ(17,19,"DIALOGS.CREATE_VO.CANCEL")," "),v.xp6(2),v.s9C("matTooltip",v.lcZ(19,21,"DIALOGS.CREATE_VO.TOOLTIP")),v.Q6J("matTooltipDisabled",le.shortNameCtrl.valid&&le.fullNameCtrl.valid),v.xp6(2),v.Q6J("disabled",le.shortNameCtrl.invalid||le.fullNameCtrl.invalid),v.xp6(1),v.hij(" ",v.lcZ(22,23,"DIALOGS.CREATE_VO.CREATE")," ")}}let pe=(()=>{class Be{constructor(le,N,k,be,Z,ce){this.dialogRef=le,this.data=N,this.notificator=k,this.voService=be,this.translate=Z,this.router=ce,Z.get("DIALOGS.CREATE_VO.SUCCESS").subscribe(xe=>this.successMessage=xe)}ngOnInit(){this.theme=this.data.theme,this.shortNameCtrl=new D.p4(null,[D.kI.required,D.kI.pattern("^[\\w.-]+$"),D.kI.maxLength(33)]),this.fullNameCtrl=new D.p4(null,[D.kI.required,D.kI.pattern(".*[\\S]+.*"),D.kI.maxLength(129)])}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.voService.createVoWithName(this.fullNameCtrl.value,this.shortNameCtrl.value).subscribe({next:le=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.router.navigate(["/organizations",le.id],{queryParamsHandling:"preserve"}),this.dialogRef.close(!0)},error:()=>this.loading=!1})}}return Be.\u0275fac=function(le){return new(le||Be)(v.Y36(b.so),v.Y36(b.WI),v.Y36(C.V6),v.Y36(e.YF),v.Y36(R.sK),v.Y36(B.F0))},Be.\u0275cmp=v.Xpm({type:Be,selectors:[["app-create-vo-dialog"]],decls:6,vars:8,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","data-cy","vo-name-input","required","",3,"formControl","placeholder"],["matInput","","data-cy","vo-shortname-input","required","",3,"formControl","placeholder"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["color","accent","data-cy","create-vo-button","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(le,N){1&le&&(v.TgZ(0,"div")(1,"h1",0),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.YNc(4,ie,1,0,"mat-spinner",1),v.YNc(5,Te,23,25,"div",2),v.qZA()),2&le&&(v.Tol(N.theme),v.xp6(2),v.Oqu(v.lcZ(3,6,"DIALOGS.CREATE_VO.TITLE")),v.xp6(2),v.Q6J("ngIf",N.loading),v.xp6(1),v.Q6J("ngIf",!N.loading))},dependencies:[w.O5,L.TO,L.KE,O.Nt,D.Fj,D.JJ,D.Q7,D.oH,q.lW,b.uh,b.xY,b.H8,te.Ou,z.gM,R.X$],styles:[".mat-dialog-content[_ngcontent-%COMP%]{height:auto}@media (min-width: 421px) and (max-width: 755px){.mat-dialog-content[_ngcontent-%COMP%]{height:150px}}@media (max-width: 420px){.mat-dialog-content[_ngcontent-%COMP%]{height:175px}}"]}),Be})();var Le=p(10036),T=p(77968),W=p(97392),F=p(87831),V=p(96214),ee=p(4235),Q=p(7434);function Ee(Be,se){if(1&Be){const le=v.EpF();v.TgZ(0,"button",9),v.NdJ("click",function(){v.CHM(le);const k=v.oxw();return v.KtG(k.onCreateVo())}),v._uU(1),v.ALo(2,"translate"),v.qZA()}2&Be&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"VO_MANAGEMENT.CREATE_VO")," "))}function ge(Be,se){if(1&Be){const le=v.EpF();v.TgZ(0,"button",10),v.NdJ("click",function(){v.CHM(le);const k=v.oxw();return v.KtG(k.onRemoveVo())}),v._uU(1),v.ALo(2,"translate"),v.qZA()}if(2&Be){const le=v.oxw();v.Q6J("disabled",0===le.selection.selected.length),v.xp6(1),v.hij(" ",v.lcZ(2,2,"VO_MANAGEMENT.REMOVE_VO")," ")}}function ve(Be,se){1&Be&&v._UZ(0,"mat-spinner",11)}function De(Be,se){if(1&Be&&v._UZ(0,"perun-web-apps-vos-list",12),2&Be){const le=v.oxw();v.Q6J("tableId",le.tableId)("displayedColumns",le.displayedColumns)("filterValue",le.filterValue)("recentIds",le.recentIds)("selection",le.selection)("vos",le.vos)}}const he=function(){return{color:"black"}};let Ye=(()=>{class Be{constructor(le,N,k,be,Z,ce){this.sideMenuService=le,this.voService=N,this.guiAuthResolver=k,this.dialog=be,this.notificator=Z,this.apiRequest=ce,this.vos=[],this.recentIds=[],this.filterValue="",this.tableId=Le.tw}ngOnInit(){this.loading=!0,this.selection=new m.Ov(!1,[]),this.createAuth=this.guiAuthResolver.isAuthorized("createVo_Vo_policy",[]),this.deleteAuth=this.guiAuthResolver.isAuthorized("deleteVo_Vo_policy",[]),this.displayedColumns=this.deleteAuth?["checkbox","id","hierarchy","recent","shortName","name"]:["id","recent","hierarchy","shortName","name"],this.refreshTable()}ngAfterViewChecked(){this.sideMenuService.setAccessMenuItems([])}refreshTable(){this.loading=!0,this.selection.clear(),this.apiRequest.dontHandleErrorForNext(),this.voService.getMyEnrichedVos().subscribe({next:le=>{this.vos=le,this.recentIds=(0,A.vL)("vos"),this.loading=!1},error:le=>{"PrivilegeException"===le.name?(this.vos=[],this.loading=!1):this.notificator.showRPCError(le)}})}applyFilter(le){this.filterValue=le}onCreateVo(){const le=(0,A.kZ)();le.width="610px",le.data={theme:"vo-theme"},this.dialog.open(pe,le).afterClosed().subscribe(k=>{k&&(this.loading=!0,this.refreshTable())})}onRemoveVo(){const le=(0,A.kZ)();le.width="500px",le.data={theme:"vo-theme",vos:[this.selection.selected[0].vo]},this.dialog.open(M.o,le).afterClosed().subscribe(k=>{k&&this.refreshTable()})}}return Be.id="VoSelectPageComponent",Be.\u0275fac=function(le){return new(le||Be)(v.Y36(T.D),v.Y36(e.YF),v.Y36(C.x4),v.Y36(b.uw),v.Y36(C.V6),v.Y36(C.F5))},Be.\u0275cmp=v.Xpm({type:Be,selectors:[["app-vo-select-page"]],hostVars:2,hostBindings:function(le,N){2&le&&v.ekj("router-component",N.true)},decls:12,vars:11,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","vo-theme"],[1,"page-title","d-flex"],["svgIcon","perun-vo-black",1,"perun-icon","icon-scale",3,"ngStyle"],[3,"refresh"],["class","mr-2 action-button","data-cy","new-vo-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"autoFocus","placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"tableId","displayedColumns","filterValue","recentIds","selection","vos",4,"ngIf"],["data-cy","new-vo-button","color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"tableId","displayedColumns","filterValue","recentIds","selection","vos"]],template:function(le,N){1&le&&(v.TgZ(0,"div",0),v._UZ(1,"perun-web-apps-back-button"),v.TgZ(2,"h1",1),v._UZ(3,"mat-icon",2),v._uU(4),v.ALo(5,"translate"),v.qZA(),v.TgZ(6,"perun-web-apps-refresh-button",3),v.NdJ("refresh",function(){return N.refreshTable()}),v.qZA(),v.YNc(7,Ee,3,3,"button",4),v.YNc(8,ge,3,4,"button",5),v.TgZ(9,"perun-web-apps-immediate-filter",6),v.NdJ("filter",function(be){return N.applyFilter(be)}),v.qZA(),v.YNc(10,ve,1,0,"mat-spinner",7),v.YNc(11,De,1,6,"perun-web-apps-vos-list",8),v.qZA()),2&le&&(v.xp6(3),v.Q6J("ngStyle",v.DdM(10,he)),v.xp6(1),v.hij(" ",v.lcZ(5,8,"VO_MANAGEMENT.TITLE")," "),v.xp6(3),v.Q6J("ngIf",N.createAuth),v.xp6(1),v.Q6J("ngIf",N.deleteAuth),v.xp6(1),v.Q6J("autoFocus",!0)("placeholder","VO_MANAGEMENT.FILTER_PLACEHOLDER"),v.xp6(1),v.Q6J("ngIf",N.loading),v.xp6(1),v.Q6J("ngIf",!N.loading))},dependencies:[w.O5,w.PC,W.Hw,q.lW,te.Ou,F.Z,V.t,ee.W,Q.L,R.X$],styles:[".icon-scale[_ngcontent-%COMP%]{transform:scale(1.7);margin-left:.5rem;margin-top:-.4rem;margin-right:.9rem}"]}),Be})()},92013:(Xe,ue,p)=>{"use strict";var e=p(11481),A=p(94650),C=p(94364);let M=(()=>{class oe{}return oe.\u0275fac=function(I){return new(I||oe)},oe.\u0275cmp=A.Xpm({type:oe,selectors:[["app-auth-callback"]],decls:0,vars:0,template:function(I,Y){}}),oe})();var m=p(61744),b=p(81591),D=p(9244),v=p(21029),R=p(40034),B=p(77968),w=p(89383),L=p(65412),O=p(36895),q=p(24006),te=p(97392),z=p(23267),ie=p(4859),Te=p(56709),pe=p(51572),Le=p(10266),T=p(87831),W=p(25788),F=p(62109),V=p(74010);function ee(oe,U){1&oe&&A._UZ(0,"mat-spinner",7)}const Q=function(){return["id","recent","shortName","name"]};function Ee(oe,U){if(1&oe&&(A.TgZ(0,"span"),A._UZ(1,"perun-web-apps-vos-list",8),A.qZA()),2&oe){const I=A.oxw(2);A.xp6(1),A.Q6J("pageSizeOptions",null)("displayedColumns",A.DdM(4,Q))("recentIds",I.recentIds)("vos",I.objects)}}const ge=function(){return["id","recent","vo","name","description"]};function ve(oe,U){if(1&oe&&(A.TgZ(0,"span"),A._UZ(1,"perun-web-apps-groups-list",9),A.qZA()),2&oe){const I=A.oxw(2);A.xp6(1),A.Q6J("pageSizeOptions",null)("displayedColumns",A.DdM(4,ge))("groups",I.objects)("recentIds",I.recentIds)}}const De=function(){return["id","recent","name","vo","facility"]};function he(oe,U){if(1&oe&&(A.TgZ(0,"span"),A._UZ(1,"perun-web-apps-resources-list",10),A.qZA()),2&oe){const I=A.oxw(2);A.xp6(1),A.Q6J("pageSizeOptions",null)("displayedColumns",A.DdM(5,De))("resources",I.objects)("recentIds",I.recentIds)("routingVo",!0)}}const Ye=function(){return["id","recent","name","description"]};function Be(oe,U){if(1&oe&&(A.TgZ(0,"span"),A._UZ(1,"perun-web-apps-facilities-list",11),A.qZA()),2&oe){const I=A.oxw(2);A.xp6(1),A.Q6J("displayedColumns",A.DdM(4,Ye))("facilities",I.objects)("pageSizeOptions",null)("recentIds",I.recentIds)}}function se(oe,U){if(1&oe&&(A.TgZ(0,"div"),A.YNc(1,Ee,2,5,"span",6),A.YNc(2,ve,2,5,"span",6),A.YNc(3,he,2,6,"span",6),A.YNc(4,Be,2,5,"span",6),A.qZA()),2&oe){const I=A.oxw();A.xp6(1),A.Q6J("ngIf","Vo"===I.primaryObject),A.xp6(1),A.Q6J("ngIf","Group"===I.primaryObject),A.xp6(1),A.Q6J("ngIf","Resource"===I.primaryObject),A.xp6(1),A.Q6J("ngIf","Facility"===I.primaryObject)}}let le=(()=>{class oe{constructor(I,Y,je){this.authzResolver=I,this.guiAuthResolver=Y,this.resourceService=je,this.loading=!1,this.recentIds=[]}ngOnInit(){this.loading=!0,this.primaryObject=this.guiAuthResolver.getPrimaryObjectOfRole(this.roleName),this.svgIcon="perun-"+this.primaryObject.toLowerCase()+"-black",this.title="USER_DETAIL.DASHBOARD.CARD_TITLE_"+this.roleName,this.roleTooltipInfo="USER_DETAIL.DASHBOARD.ROLE_INFO_"+this.roleName,this.getObjects()}getObjects(){switch(this.primaryObject){case"Vo":this.authzResolver.getVosWhereUserIsInRoles([this.roleName]).subscribe(I=>{this.objects=I,this.recentIds=(0,D.vL)("vos"),this.loading=!1});break;case"Group":this.authzResolver.getGroupsWhereUserIsInRoles([this.roleName]).subscribe(I=>{this.objects=I,this.recentIds=(0,D.vL)("groups"),this.loading=!1});break;case"Resource":this.resourceService.getRichResourcesByIds(this.role[this.primaryObject]).subscribe(I=>{this.objects=I,this.recentIds=(0,D.vL)("resources"),this.loading=!1});break;case"Facility":this.authzResolver.getFacilitiesWhereUserIsInRoles([this.roleName]).subscribe(I=>{this.objects=I.map(Y=>({facility:Y})),this.recentIds=(0,D.vL)("facilities"),this.loading=!1});break;default:this.objects=[],this.loading=!1}}}return oe.\u0275fac=function(I){return new(I||oe)(A.Y36(m.Ct),A.Y36(b.x4),A.Y36(m.xk))},oe.\u0275cmp=A.Xpm({type:oe,selectors:[["app-perun-web-apps-dashboard-card"]],inputs:{role:"role",roleName:"roleName"},decls:11,vars:9,consts:[[1,"card","p-3"],[1,"flex-column","card-title"],[1,"cover-image",3,"svgIcon"],["matTooltipPosition","above",3,"matTooltip"],[1,"dashboard-icon"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"pageSizeOptions","displayedColumns","recentIds","vos"],[3,"pageSizeOptions","displayedColumns","groups","recentIds"],[3,"pageSizeOptions","displayedColumns","resources","recentIds","routingVo"],[3,"displayedColumns","facilities","pageSizeOptions","recentIds"]],template:function(I,Y){1&I&&(A.TgZ(0,"div",0)(1,"div",1),A._UZ(2,"mat-icon",2),A._uU(3),A.ALo(4,"translate"),A.TgZ(5,"span",3),A.ALo(6,"translate"),A.TgZ(7,"mat-icon",4),A._uU(8,"info_outline"),A.qZA()()(),A.YNc(9,ee,1,0,"mat-spinner",5),A.YNc(10,se,5,4,"div",6),A.qZA()),2&I&&(A.xp6(2),A.Q6J("svgIcon",Y.svgIcon),A.xp6(1),A.hij(" ",A.lcZ(4,5,Y.title)," "),A.xp6(2),A.s9C("matTooltip",A.lcZ(6,7,Y.roleTooltipInfo)),A.xp6(4),A.Q6J("ngIf",Y.loading),A.xp6(1),A.Q6J("ngIf",!Y.loading))},dependencies:[O.O5,te.Hw,pe.Ou,Le.gM,T.Z,W.W,F.C,V.X,w.X$],styles:[".dashboard-icon[_ngcontent-%COMP%]{vertical-align:middle;transform:scale(.8)}.card-title[_ngcontent-%COMP%]{font-size:1.4rem;flex-wrap:wrap}.cover-image[_ngcontent-%COMP%]{transform:scale(1.8);margin-left:.9rem;margin-right:.7rem}"]}),oe})();var N=p(3238),k=p(98380),be=p(34198),Z=p(55660);function ce(oe,U){1&oe&&A._UZ(0,"mat-spinner",3)}function xe(oe,U){1&oe&&(A.TgZ(0,"perun-web-apps-alert",4),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&oe&&(A.xp6(1),A.Oqu(A.lcZ(2,1,"USER_DETAIL.DASHBOARD.NO_RECENTLY_VIEWED")))}const ot=function(oe){return[oe]};function Fe(oe,U){if(1&oe&&(A.TgZ(0,"div",7)(1,"a",8),A.NdJ("auxclick",function(Y){return Y.preventDefault()}),A.TgZ(2,"span",9),A._uU(3),A.qZA(),A._UZ(4,"mat-icon",10),A.TgZ(5,"p",11),A._uU(6),A.qZA()()()),2&oe){const I=U.$implicit;A.xp6(1),A.Gre("",I.style," item-itself"),A.s9C("matTooltip",I.tooltip),A.Q6J("perunWebAppsMiddleClickRouterLink",A.VKq(9,ot,I.url))("routerLink",I.url),A.xp6(2),A.Oqu(I.type),A.xp6(1),A.Q6J("svgIcon",I.cssIcon),A.xp6(2),A.Oqu(I.label)}}function ut(oe,U){if(1&oe&&(A.TgZ(0,"div",5),A.YNc(1,Fe,7,11,"div",6),A.qZA()),2&oe){const I=A.oxw();A.xp6(1),A.Q6J("ngForOf",I.items)}}let tt=(()=>{class oe{constructor(I,Y,je,dt){this.vosManager=I,this.groupsManager=Y,this.authResolver=je,this.facilitiesManager=dt,this.items=[],this.vosIds=[],this.groupsIds=[],this.facilitiesIds=[],this.existingRecentIds=[],this.vos=[],this.groups=[],this.facilities=[]}ngOnInit(){this.loading=!0,this.recentItems=(0,D.j4)("recent");for(const I of this.recentItems)switch(I.type){case"Vo":this.vosIds.push(I.id);break;case"Group":this.groupsIds.push(I.id);break;case"Facility":this.facilitiesIds.push(I.id)}0===this.vosIds.length&&this.vosIds.push(-1),0===this.groupsIds.length&&this.groupsIds.push(-1),0===this.facilitiesIds.length&&this.facilitiesIds.push(-1),this.getVos()}getVos(){this.authResolver.isAuthorized("getVosByIds_List_policy",[])?this.vosManager.getVosByIds(this.vosIds).subscribe(I=>{this.vos=I,this.getGroups()}):this.getGroups()}getGroups(){this.authResolver.isAuthorized("getGroupsByIds_List_policy",[])?this.groupsManager.getGroupsByIds(this.groupsIds).subscribe(I=>{this.groups=I,this.getFacilities()}):this.getFacilities()}getFacilities(){this.authResolver.isAuthorized("getFacilitiesByIds_List_policy",[])?this.facilitiesManager.getFacilitiesByIds(this.facilitiesIds).subscribe(I=>{this.facilities=I,this.addRecentlyViewedToDashboard()}):this.addRecentlyViewedToDashboard()}addRecentlyViewedToDashboard(){for(const I of this.recentItems)switch(I.type){case"Vo":{const Y=this.vos.filter(je=>je.id===I.id)[0];Y&&this.items.push({cssIcon:"perun-vo",url:`/organizations/${Y.id}`,label:Y.name,tooltip:Y.name,style:"vo-btn",type:"Organization"});break}case"Group":{const Y=this.groups.filter(je=>je.id===I.id)[0];Y&&this.items.push({cssIcon:"perun-group",url:`/organizations/${Y.voId}/groups/${Y.id}`,label:Y.shortName,tooltip:`${I.voName} : ${Y.name.replace(/:/g," : ")}`,style:"group-btn",type:"Group"});break}case"Facility":{const Y=this.facilities.filter(je=>je.id===I.id)[0];Y&&this.items.push({cssIcon:"perun-facility-white",url:`/facilities/${Y.id}`,label:Y.name,tooltip:Y.name,style:"facility-btn",type:"Facility"});break}}this.loading=!1}}return oe.\u0275fac=function(I){return new(I||oe)(A.Y36(m.YF),A.Y36(m.ff),A.Y36(b.x4),A.Y36(m.IQ))},oe.\u0275cmp=A.Xpm({type:oe,selectors:[["app-perun-web-apps-dashboard-recently-viewed-button-field"]],decls:3,vars:3,consts:[["class","ml-auto mr-auto",4,"ngIf"],["alert_type","info",4,"ngIf"],["class","items-container",4,"ngIf"],[1,"ml-auto","mr-auto"],["alert_type","info"],[1,"items-container"],["class","item-itself-container","mat-ripple","",4,"ngFor","ngForOf"],["mat-ripple","",1,"item-itself-container"],[3,"perunWebAppsMiddleClickRouterLink","routerLink","matTooltip","auxclick"],[1,"item-type"],[1,"item-pic","perun-icon",3,"svgIcon"],[1,"truncate"]],template:function(I,Y){1&I&&(A.YNc(0,ce,1,0,"mat-spinner",0),A.YNc(1,xe,3,3,"perun-web-apps-alert",1),A.YNc(2,ut,2,1,"div",2)),2&I&&(A.Q6J("ngIf",Y.loading),A.xp6(1),A.Q6J("ngIf",0===Y.items.length&&!Y.loading),A.xp6(1),A.Q6J("ngIf",Y.items.length>0))},dependencies:[O.sg,O.O5,C.yS,te.Hw,pe.Ou,Le.gM,N.wG,k.w,be.Y,Z.Q,w.X$],styles:[".items-container[_ngcontent-%COMP%]{display:grid;grid-gap:0;grid-template-columns:repeat(auto-fill,minmax(208px,1fr));margin:0 -8px}@media (max-width: 768px){.items-container[_ngcontent-%COMP%]{grid-template-columns:repeat(auto-fill,minmax(148px,1fr))}}.item-pic[_ngcontent-%COMP%]{color:currentColor;transform:scale(3);height:74px;margin-bottom:22px;align-self:center}.item-itself-container[_ngcontent-%COMP%]{margin:8px}.item-itself[_ngcontent-%COMP%]{text-align:center;min-height:186px;height:100%;padding:20px;display:flex;flex-direction:column;font-size:1.25rem;word-wrap:break-word;overflow-wrap:break-word;word-break:break-word}.item-itself[_ngcontent-%COMP%]:hover{text-decoration:none}.item-itself[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:120px;margin-bottom:10px}@media (max-width: 768px){.item-itself[_ngcontent-%COMP%]{min-height:150px;padding:10px;word-wrap:break-word;overflow-wrap:break-word;word-break:break-word}.item-itself[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:80px;margin-bottom:10px}}.item-type[_ngcontent-%COMP%]{font-size:.75rem}.truncate[_ngcontent-%COMP%]{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}"]}),oe})();var vt=p(31359);function X(oe,U){if(1&oe){const I=A.EpF();A.TgZ(0,"div")(1,"mat-checkbox",8),A.NdJ("change",function(je){const Ot=A.CHM(I).$implicit,Ht=A.oxw();return A.KtG(je?Ht.changeRoleView(Ot):null)}),A._uU(2),A.ALo(3,"translate"),A.qZA()()}if(2&oe){const I=U.$implicit,Y=A.oxw();A.xp6(1),A.Q6J("checked",Y.isRoleShowed(I)),A.xp6(1),A.Oqu(A.lcZ(3,2,"USER_DETAIL.DASHBOARD.CARD_TITLE_"+I))}}function nt(oe,U){if(1&oe){const I=A.EpF();A.TgZ(0,"button",15),A.NdJ("click",function(){A.CHM(I);const je=A.oxw(2);return A.KtG(je.rightSettingOpened=!0)}),A.TgZ(1,"mat-icon"),A._uU(2,"settings"),A.qZA()()}}function Ae(oe,U){1&oe&&(A.TgZ(0,"span"),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&oe&&(A.xp6(1),A.Oqu(A.lcZ(2,1,"USER_DETAIL.DASHBOARD.NOT_MANAGER_INFO_NO_USER_PROFILE")))}function ye(oe,U){1&oe&&(A.TgZ(0,"span"),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&oe&&(A.xp6(1),A.Oqu(A.lcZ(2,1,"USER_DETAIL.DASHBOARD.NOT_MANAGER_INFO")))}function _e(oe,U){if(1&oe){const I=A.EpF();A.TgZ(0,"button",23),A.NdJ("click",function(){A.CHM(I);const je=A.oxw(3);return A.KtG(je.goToUserProfile())}),A.TgZ(1,"mat-icon",24),A._uU(2,"exit_to_app"),A.qZA(),A._uU(3),A.ALo(4,"translate"),A.qZA()}if(2&oe){const I=A.oxw(3);A.xp6(3),A.AsE("",A.lcZ(4,2,"USER_DETAIL.DASHBOARD.GO_TO_USER_PROFILE")," ",I.userProfileName," ")}}const Se=function(){return["/myProfile"]};function Ne(oe,U){if(1&oe&&(A.TgZ(0,"div")(1,"div",16)(2,"div",17),A._uU(3),A.ALo(4,"translate"),A.qZA(),A.TgZ(5,"div",18),A.YNc(6,Ae,3,3,"span",14),A.YNc(7,ye,3,3,"span",14),A.qZA(),A.TgZ(8,"div",19)(9,"button",20),A._UZ(10,"mat-icon",21),A._uU(11),A.ALo(12,"translate"),A.qZA(),A.YNc(13,_e,5,4,"button",22),A.qZA()()()),2&oe){const I=A.oxw(2);A.xp6(3),A.hij(" ",A.lcZ(4,6,"USER_DETAIL.DASHBOARD.NOT_MANAGER")," "),A.xp6(3),A.Q6J("ngIf",!I.userProfileUrl),A.xp6(1),A.Q6J("ngIf",I.userProfileUrl),A.xp6(2),A.Q6J("routerLink",A.DdM(10,Se)),A.xp6(2),A.hij(" ",A.lcZ(12,8,"USER_DETAIL.DASHBOARD.GO_TO_MY_PROFILE")," "),A.xp6(2),A.Q6J("ngIf",I.userProfileUrl)}}function Ce(oe,U){1&oe&&(A.TgZ(0,"span")(1,"div",3),A._uU(2),A.ALo(3,"translate"),A.qZA(),A._UZ(4,"app-perun-web-apps-dashboard-recently-viewed-button-field"),A.qZA()),2&oe&&(A.xp6(2),A.hij(" ",A.lcZ(3,1,"USER_DETAIL.DASHBOARD.RECENTLY_VIEWED")," "))}function fe(oe,U){1&oe&&(A.TgZ(0,"div",27),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&oe&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"USER_DETAIL.DASHBOARD.MANAGEABLE_ENTITIES")," "))}function r(oe,U){if(1&oe&&A._UZ(0,"app-perun-web-apps-dashboard-card",30),2&oe){const I=A.oxw().$implicit,Y=A.oxw(3);A.Q6J("roleName",I)("role",Y.roles[I])}}function u(oe,U){if(1&oe&&(A.TgZ(0,"div",28),A.YNc(1,r,1,2,"app-perun-web-apps-dashboard-card",29),A.qZA()),2&oe){const I=U.$implicit,Y=A.oxw(3);A.xp6(1),A.Q6J("ngIf",Y.isRoleShowed(I))}}function _(oe,U){if(1&oe&&(A.TgZ(0,"div"),A.YNc(1,Ce,5,3,"span",14),A.YNc(2,fe,3,3,"div",25),A.TgZ(3,"div"),A.YNc(4,u,2,1,"div",26),A.qZA()()),2&oe){const I=A.oxw(2);A.xp6(1),A.Q6J("ngIf",I.recentlyViewedShow),A.xp6(1),A.Q6J("ngIf",I.rolesToHide.toString()!==I.roleNames.toString()),A.xp6(2),A.Q6J("ngForOf",I.roleNames)}}function E(oe,U){if(1&oe&&(A.TgZ(0,"div",9)(1,"h1",10),A._UZ(2,"mat-icon",11),A.TgZ(3,"span",12),A._uU(4),A.ALo(5,"translate"),A.ALo(6,"userFullName"),A.qZA(),A.YNc(7,nt,3,0,"button",13),A.qZA(),A.YNc(8,Ne,14,11,"div",14),A.YNc(9,_,5,3,"div",14),A.qZA()),2&oe){const I=A.oxw();A.xp6(4),A.AsE("",A.lcZ(5,5,"USER_DETAIL.DASHBOARD.TITLE")," ",A.lcZ(6,7,I.user),""),A.xp6(3),A.Q6J("ngIf",!I.isOnlySelfRole),A.xp6(1),A.Q6J("ngIf",I.isOnlySelfRole),A.xp6(1),A.Q6J("ngIf",!I.isOnlySelfRole)}}let h=(()=>{class oe{constructor(I,Y,je,dt,Ot,Ht,Gt,$t,fn,Tn){this.userManager=I,this.storeService=Y,this.sideMenuService=je,this.route=dt,this.router=Ot,this.notificator=Ht,this.translateService=Gt,this.dialog=$t,this.apiRequestConfiguration=fn,this.otherApplicationService=Tn,this.roles={},this.userProfileUrl="",this.isOnlySelfRole=!1,this.rightSettingOpened=!1,this.recentlyViewedShow=!0,this.rolesToHide=[],this.allowedRoles=["VOADMIN","GROUPADMIN","FACILITYADMIN","SPONSOR","RESOURCEADMIN","TOPGROUPCREATOR","VOOBSERVER","GROUPOBSERVER","GROUPMEMBERSHIPMANAGER","FACILITYOBSERVER","RESOURCEOBSERVER"],Gt.get("USER_DETAIL.DASHBOARD.MAIL_CHANGE_SUCCESS").subscribe(kn=>this.mailSuccessMessage=kn)}ngOnInit(){this.sideMenuService.setHomeItems([]),this.validatePreferredMailChange(),this.user=this.storeService.getPerunPrincipal().user,this.roles=this.storeService.getPerunPrincipal().roles,this.getUserProfile();const I=Object.keys(this.roles);this.isOnlySelfRole=I.toString()===["SELF"].toString(),this.roleNames=this.allowedRoles.filter(Y=>I.includes(Y)),this.getDashboardSettings()}goToUserProfile(){window.open(this.userProfileUrl)}recentlyViewedChanged(){localStorage.setItem("showRecentlyViewed",JSON.stringify(this.recentlyViewedShow))}changeRoleView(I){if(this.isRoleShowed(I)){const Y=[];for(const je of this.roleNames)this.isRoleShowed(je)||Y.push(je),je===I&&Y.push(je);this.rolesToHide=Y}else this.rolesToHide=this.rolesToHide.filter(Y=>Y!==I);localStorage.setItem("rolesToHide",JSON.stringify(this.rolesToHide))}isRoleShowed(I){return!this.rolesToHide.includes(I)}validatePreferredMailChange(){const I=this.route.snapshot.queryParamMap,Y=I.get("token"),je=I.get("u");Y&&je&&(this.apiRequestConfiguration.dontHandleErrorForNext(),this.userManager.validatePreferredEmailChangeWithToken(Y,Number.parseInt(je,10)).subscribe({next:()=>{this.notificator.showSuccess(this.mailSuccessMessage),this.router.navigate([],{replaceUrl:!0,queryParamsHandling:"preserve"})},error:()=>{const dt=(0,D.kZ)();dt.width="600px",this.dialog.open(v.qD,dt).afterClosed().subscribe(()=>{this.getDashboardSettings()})}}))}getDashboardSettings(){const I=JSON.parse(localStorage.getItem("showRecentlyViewed"));this.recentlyViewedShow=null===I||I;const Y=JSON.parse(localStorage.getItem("rolesToHide"));this.rolesToHide=null===Y?[]:Y}getUserProfile(){this.userProfileUrl=this.otherApplicationService.getUrlForOtherApplication(R.p.Profile),this.userProfileName=this.storeService.getProperty("profile_label_en")}}return oe.\u0275fac=function(I){return new(I||oe)(A.Y36(m.Fv),A.Y36(b.d6),A.Y36(B.D),A.Y36(C.gz),A.Y36(C.F0),A.Y36(b.V6),A.Y36(w.sK),A.Y36(L.uw),A.Y36(b.F5),A.Y36(b.jq))},oe.\u0275cmp=A.Xpm({type:oe,selectors:[["app-perun-web-apps-user-dashboard"]],hostVars:2,hostBindings:function(I,Y){2&I&&A.ekj("router-component",Y.true)},decls:16,vars:13,consts:[["hasBackdrop","true",1,"dashboard"],["mode","over","position","end",3,"opened","openedChange"],[1,"m-4","user-theme"],[1,"page-subtitle"],[3,"ngModel","ngModelChange","change"],[1,"text-bigger","mt-1","mb-1"],[4,"ngFor","ngForOf"],["class","container-fluid pl-xl-5 pr-xl-5 user-theme",4,"ngIf"],[3,"checked","change"],[1,"container-fluid","pl-xl-5","pr-xl-5","user-theme"],[1,"page-title","d-flex"],["svgIcon","perun-home-white",1,"home-image","perun-icon"],["data-cy","dashboard-welcome",1,"pt-1"],["class","ml-auto text-bigger","mat-stroked-button","",3,"click",4,"ngIf"],[4,"ngIf"],["mat-stroked-button","",1,"ml-auto","text-bigger",3,"click"],[1,"card","m-3","p-5"],[1,"text-align"],[1,"text-align","pt-3"],[1,"mx-auto","pt-3"],["queryParamsHandling","merge","mat-stroked-button","",1,"text-bigger",3,"routerLink"],["svgIcon","perun-user-dark",1,"mr-1","user-icon","perun-icon"],["class","text-bigger ml-2 mt-2","mat-stroked-button","",3,"click",4,"ngIf"],["mat-stroked-button","",1,"text-bigger","ml-2","mt-2",3,"click"],[1,"mr-1"],["class","page-subtitle mt-4",4,"ngIf"],["class","mb-3",4,"ngFor","ngForOf"],[1,"page-subtitle","mt-4"],[1,"mb-3"],[3,"roleName","role",4,"ngIf"],[3,"roleName","role"]],template:function(I,Y){1&I&&(A.TgZ(0,"mat-sidenav-container",0)(1,"mat-sidenav",1),A.NdJ("openedChange",function(dt){return Y.rightSettingOpened=dt}),A.TgZ(2,"div",2)(3,"div",3),A._uU(4),A.ALo(5,"translate"),A.qZA(),A.TgZ(6,"div")(7,"mat-checkbox",4),A.NdJ("ngModelChange",function(dt){return Y.recentlyViewedShow=dt})("change",function(dt){return dt?Y.recentlyViewedChanged():null}),A._uU(8),A.ALo(9,"translate"),A.qZA()(),A.TgZ(10,"div",5),A._uU(11),A.ALo(12,"translate"),A.qZA(),A.YNc(13,X,4,4,"div",6),A.qZA()(),A.TgZ(14,"mat-sidenav-content"),A.YNc(15,E,10,9,"div",7),A.qZA()()),2&I&&(A.xp6(1),A.Q6J("opened",Y.rightSettingOpened),A.xp6(3),A.Oqu(A.lcZ(5,7,"USER_DETAIL.DASHBOARD.DASHBOARD_SETTINGS")),A.xp6(3),A.Q6J("ngModel",Y.recentlyViewedShow),A.xp6(1),A.Oqu(A.lcZ(9,9,"USER_DETAIL.DASHBOARD.SHOW_RECENTLY_VIEWED")),A.xp6(3),A.Oqu(A.lcZ(12,11,"USER_DETAIL.DASHBOARD.SHOW_ROLES")),A.xp6(2),A.Q6J("ngForOf",Y.roleNames),A.xp6(2),A.Q6J("ngIf",void 0!==Y.user))},dependencies:[O.sg,O.O5,C.rH,q.JJ,q.On,te.Hw,z.JX,z.TM,z.Rh,ie.lW,Te.oG,le,tt,w.X$,vt.d],styles:[".dashboard-container[_ngcontent-%COMP%]{-moz-columns:300px 2;columns:300px 2;-moz-column-gap:1rem;column-gap:1rem;margin:0}.dashboard-container[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:0 1rem 1rem 0;display:inline-block;min-width:300px;width:100%}.home-image[_ngcontent-%COMP%]{transform:scale(1.4);margin-right:.7rem;margin-left:.6rem}.text-align[_ngcontent-%COMP%]{text-align:center;font-size:1.25rem}.text-bigger[_ngcontent-%COMP%]{font-size:1.1rem}.user-icon[_ngcontent-%COMP%]{vertical-align:top}.dashboard[_ngcontent-%COMP%]{position:relative;min-height:calc(100vh - 234px);margin-bottom:-60px!important;padding-bottom:50px;top:-10px!important;left:0;right:0}"]}),oe})();var a=p(4235);let i=(()=>{class oe{}return oe.\u0275fac=function(I){return new(I||oe)},oe.\u0275cmp=A.Xpm({type:oe,selectors:[["app-perun-web-apps-not-found-page"]],decls:5,vars:3,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5"],[1,"page-title"]],template:function(I,Y){1&I&&(A.TgZ(0,"div",0),A._UZ(1,"perun-web-apps-back-button"),A.TgZ(2,"h1",1),A._uU(3),A.ALo(4,"translate"),A.qZA()()),2&I&&(A.xp6(3),A.Oqu(A.lcZ(4,1,"GENERAL.PAGE_NOT_FOUND.TITLE")))},dependencies:[a.W,w.X$]}),oe})();var t=p(37433),n=p(59549),o=p(284),s=p(63189);let l=(()=>{class oe{}return oe.\u0275fac=function(I){return new(I||oe)},oe.\u0275mod=A.oAB({type:oe}),oe.\u0275inj=A.cJS({imports:[O.ez,ie.ot,te.Ps,C.Bz,t.ez,w.aw,n.lN,q.UX,o.c,s.r]}),oe})(),d=(()=>{class oe{constructor(I,Y){this.auth=I,this.router=Y}ngOnInit(){(this.auth.isLoggedIn()||sessionStorage.getItem("baPrincipal"))&&this.router.navigate([""],{queryParamsHandling:"merge"})}startAuth(){this.auth.startAuthentication()}}return oe.\u0275fac=function(I){return new(I||oe)(A.Y36(b.e8),A.Y36(C.F0))},oe.\u0275cmp=A.Xpm({type:oe,selectors:[["perun-web-apps-login-screen"]],decls:11,vars:6,consts:[[1,"container","login-con"],[1,"row"],[1,"ml-auto","mr-auto","d-flex","flex-column","align-items-center"],[1,"mb-3"],["mat-raised-button","","color","primary",3,"click"]],template:function(I,Y){1&I&&(A.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h4",3),A._uU(4),A.ALo(5,"translate"),A.qZA(),A.TgZ(6,"button",4),A.NdJ("click",function(){return Y.startAuth()}),A._uU(7),A.ALo(8,"translate"),A.TgZ(9,"mat-icon"),A._uU(10," login "),A.qZA()()()()()),2&I&&(A.xp6(4),A.hij(" ",A.lcZ(5,2,"SHARED_LIB.PERUN.LOGIN.TEXT")," "),A.xp6(3),A.hij(" ",A.lcZ(8,4,"SHARED_LIB.PERUN.LOGIN.SIGN_IN")," "))},dependencies:[ie.lW,te.Hw,w.X$],styles:[".login-con[_ngcontent-%COMP%]{padding:120px 0}"]}),oe})();var c=p(41619);function S(oe,U){if(1&oe&&(A.TgZ(0,"div",8),A._UZ(1,"div",9),A.qZA()),2&oe){const I=A.oxw();A.xp6(1),A.Q6J("innerHTML",I.logo,A.oJD)}}function J(oe,U){if(1&oe&&(A.TgZ(0,"div",10),A._UZ(1,"div",11)(2,"mat-icon",12),A.qZA()),2&oe){const I=A.oxw();A.xp6(1),A.Q6J("innerHTML",I.logo,A.oJD)}}const ht=function(oe){return{color:oe}};function ze(oe,U){if(1&oe&&(A.TgZ(0,"p",13),A._uU(1),A.qZA()),2&oe){const I=A.oxw();A.Q6J("ngStyle",A.VKq(2,ht,I.textColor)),A.xp6(1),A.hij(" ",I.headerTitle," ")}}const et=function(oe,U){return{background:oe,color:U}},ne=function(oe,U){return{"min-height":oe,"background-color":U}};let Ue=(()=>{class oe{constructor(I,Y,je,dt){this.storeService=I,this.sanitizer=Y,this.preferredLangService=je,this.translateService=dt,this.contentBackgroundColor=this.storeService.getProperty("theme").content_bg_color}ngOnInit(){if(this.headerBackgroundColor=this.storeService.getProperty("theme").nav_bg_color,this.headerTextColor=this.storeService.getProperty("theme").nav_text_color,this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.getProperty("logo")),this.textColor=this.headerTitle?this.storeService.getProperty("theme").nav_text_color:"","user-profile"===this.application){const I=this.preferredLangService.getPreferredLanguage(null);this.translateService.use(I)}}getContentInnerMinHeight(){return"calc((100vh - 64px) + 0px)"}}return oe.\u0275fac=function(I){return new(I||oe)(A.Y36(b.d6),A.Y36(e.H7),A.Y36(b.BN),A.Y36(w.sK))},oe.\u0275cmp=A.Xpm({type:oe,selectors:[["perun-web-apps-login-screen-base"]],inputs:{application:"application",headerTitle:"headerTitle"},decls:10,vars:11,consts:[["id","login-nav",1,"mat-elevation-z3",3,"ngStyle"],["class","mt-auto mb-auto",4,"ngIf"],["class","display-flex-row",4,"ngIf"],["class","ml-3 mt-auto mb-auto page-subtitle",3,"ngStyle",4,"ngIf"],["id","content"],["id","content-inner",3,"ngStyle"],["id","content-wrap"],["id","footer"],[1,"mt-auto","mb-auto"],[1,"logo-container",3,"innerHTML"],[1,"display-flex-row"],[1,"logo-container","mt-auto","mb-auto",3,"innerHTML"],["svgIcon","perun-publications-white",1,"mt-auto","mb-auto","router-icon","ml-2","mr-2"],[1,"ml-3","mt-auto","mb-auto","page-subtitle",3,"ngStyle"]],template:function(I,Y){1&I&&(A.TgZ(0,"div",0),A.YNc(1,S,2,1,"div",1),A.YNc(2,J,3,1,"div",2),A.YNc(3,ze,2,4,"p",3),A.qZA(),A.TgZ(4,"div",4)(5,"div",5)(6,"div",6),A._UZ(7,"router-outlet"),A.qZA(),A.TgZ(8,"div",7),A._UZ(9,"perun-web-apps-footer"),A.qZA()()()),2&I&&(A.Q6J("ngStyle",A.WLB(5,et,Y.headerBackgroundColor,Y.headerTextColor)),A.xp6(1),A.Q6J("ngIf","admin-gui"===Y.application||"user-profile"===Y.application||"consolidator"===Y.application),A.xp6(1),A.Q6J("ngIf","publications"===Y.application),A.xp6(1),A.Q6J("ngIf",!!Y.headerTitle),A.xp6(2),A.Q6J("ngStyle",A.WLB(8,ne,Y.getContentInnerMinHeight(),Y.contentBackgroundColor)))},dependencies:[O.O5,O.PC,te.Hw,C.lC,c.$],styles:["#login-nav[_ngcontent-%COMP%]{position:fixed;width:100%;z-index:999;display:flex;height:64px;max-height:64px;top:0}#footer[_ngcontent-%COMP%]{position:absolute;bottom:0;width:100%}#content[_ngcontent-%COMP%]{width:100%;min-height:calc(100vh - 64px);margin-top:64px}#content-inner[_ngcontent-%COMP%]{position:relative}#content-wrap[_ngcontent-%COMP%]{padding-bottom:250px;padding-top:10px}@media (max-width: 768px){#content-wrap[_ngcontent-%COMP%]{padding-bottom:500px}}.router-icon[_ngcontent-%COMP%]{height:2.5rem;width:2.5rem;cursor:pointer;outline:0}.page-subtitle[_ngcontent-%COMP%]{margin-bottom:1rem;font-size:1.5rem}.logo-container[_ngcontent-%COMP%]{padding:0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}.display-flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}"]}),oe})();function He(oe,U){1&oe&&(A.TgZ(0,"perun-web-apps-alert",8),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&oe&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.WRONG_LOGIN_OR_PASSWORD")," "))}const Re=[{path:"",redirectTo:"home",pathMatch:"full"},{path:"api-callback",component:M},{path:"login",component:d},{path:"service-access",component:(()=>{class oe{constructor(I,Y,je){this.authzService=I,this.auth=Y,this.router=je,this.usernameCtrl=new q.NI(null,[q.kI.required]),this.passwordCtrl=new q.NI(null,[q.kI.required]),this.wrongUsernameOrPassword=!1}startAuth(){this.usernameCtrl.invalid||this.passwordCtrl.invalid||(sessionStorage.setItem("basicUsername",this.usernameCtrl.value),sessionStorage.setItem("basicPassword",this.passwordCtrl.value),this.authzService.getPerunPrincipal().subscribe({next:I=>{sessionStorage.setItem("baPrincipal",JSON.stringify(I)),location.reload()},error:()=>{this.wrongUsernameOrPassword=!0}}))}ngOnInit(){(this.auth.isLoggedIn()||sessionStorage.getItem("baPrincipal"))&&this.router.navigate([""],{queryParamsHandling:"merge"})}}return oe.\u0275fac=function(I){return new(I||oe)(A.Y36(m.Ct),A.Y36(b.e8),A.Y36(C.F0))},oe.\u0275cmp=A.Xpm({type:oe,selectors:[["perun-web-apps-login-screen-service-access"]],decls:28,vars:23,consts:[[1,"container","login-con","vo-theme","top-padding"],[1,"row"],[1,"ml-auto","mr-auto","d-flex","flex-column","align-items-center"],["alert_type","error",4,"ngIf"],["appearance","outline"],["matInput","","required","",3,"formControl","keyup.enter"],["matInput","","required","",3,"formControl","type","keyup.enter"],["mat-raised-button","",1,"black",3,"disabled","click"],["alert_type","error"]],template:function(I,Y){1&I&&(A.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h2"),A._uU(4),A.ALo(5,"translate"),A.qZA(),A.YNc(6,He,3,3,"perun-web-apps-alert",3),A.TgZ(7,"mat-form-field",4)(8,"mat-label"),A._uU(9),A.ALo(10,"translate"),A.qZA(),A.TgZ(11,"input",5),A.NdJ("keyup.enter",function(){return Y.startAuth()}),A.qZA(),A.TgZ(12,"mat-error"),A._uU(13),A.ALo(14,"translate"),A.qZA()(),A.TgZ(15,"mat-form-field",4)(16,"mat-label"),A._uU(17),A.ALo(18,"translate"),A.qZA(),A.TgZ(19,"input",6),A.NdJ("keyup.enter",function(){return Y.startAuth()}),A.qZA(),A.TgZ(20,"mat-error"),A._uU(21),A.ALo(22,"translate"),A.qZA()(),A.TgZ(23,"button",7),A.NdJ("click",function(){return Y.startAuth()}),A._uU(24),A.ALo(25,"translate"),A.TgZ(26,"mat-icon"),A._uU(27," login "),A.qZA()()()()()),2&I&&(A.xp6(4),A.Oqu(A.lcZ(5,11,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.LABEL")),A.xp6(2),A.Q6J("ngIf",Y.wrongUsernameOrPassword),A.xp6(3),A.Oqu(A.lcZ(10,13,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME")),A.xp6(2),A.Q6J("formControl",Y.usernameCtrl),A.xp6(2),A.hij(" ",A.lcZ(14,15,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME_ERROR")," "),A.xp6(4),A.Oqu(A.lcZ(18,17,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD")),A.xp6(2),A.Q6J("formControl",Y.passwordCtrl)("type","password"),A.xp6(2),A.hij(" ",A.lcZ(22,19,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD_ERROR")," "),A.xp6(2),A.Q6J("disabled",Y.usernameCtrl.invalid||Y.passwordCtrl.invalid),A.xp6(1),A.hij(" ",A.lcZ(25,21,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.SIGN_IN")," "))},dependencies:[O.O5,ie.lW,te.Hw,n.TO,n.KE,n.hX,q.Fj,q.JJ,q.Q7,q.oH,o.Nt,k.w,w.X$],styles:[".top-padding[_ngcontent-%COMP%]{padding:120px 0}mat-form-field.mat-form-field[_ngcontent-%COMP%]{font-size:14px;width:250px}.black[_ngcontent-%COMP%]{background-color:#000;color:#fff}"]}),oe})()},{path:"organizations",loadChildren:()=>Promise.all([p.e(839),p.e(109),p.e(907),p.e(254)]).then(p.bind(p,74254)).then(oe=>oe.VosModule)},{path:"admin",loadChildren:()=>Promise.all([p.e(839),p.e(338),p.e(109),p.e(705)]).then(p.bind(p,72705)).then(oe=>oe.AdminModule)},{path:"facilities",loadChildren:()=>Promise.all([p.e(839),p.e(338),p.e(109),p.e(705),p.e(907),p.e(775)]).then(p.bind(p,27775)).then(oe=>oe.FacilitiesModule)},{path:"myProfile",loadChildren:()=>Promise.all([p.e(839),p.e(338)]).then(p.bind(p,38338)).then(oe=>oe.UsersModule)},{path:"home",component:h},{path:"notAuthorized",component:t.y9},{path:"**",component:i}];let re=(()=>{class oe{}return oe.\u0275fac=function(I){return new(I||oe)},oe.\u0275mod=A.oAB({type:oe}),oe.\u0275inj=A.cJS({imports:[C.Bz.forRoot(Re,{preloadingStrategy:C.GZ,scrollPositionRestoration:"enabled",relativeLinkResolution:"legacy"}),C.Bz]}),oe})();var we=p(72077),st=p(14264);class Ke{constructor(U,I="/assets/i18n/",Y=".json"){this.http=U,this.prefix=I,this.suffix=Y}getTranslation(U){return this.http.get(`${this.prefix}${U}${this.suffix}`)}}var Et=p(80529),ke=p(37340);function It(oe){return new A.vHH(3e3,!1)}function tr(){return typeof window<"u"&&typeof window.document<"u"}function Vi(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function li(oe){switch(oe.length){case 0:return new ke.ZN;case 1:return oe[0];default:return new ke.ZE(oe)}}function or(oe,U,I,Y,je=new Map,dt=new Map){const Ot=[],Ht=[];let Gt=-1,$t=null;if(Y.forEach(fn=>{const Tn=fn.get("offset"),kn=Tn==Gt,jn=kn&&$t||new Map;fn.forEach((On,Nn)=>{let fi=Nn,oi=On;if("offset"!==Nn)switch(fi=U.normalizePropertyName(fi,Ot),oi){case ke.k1:oi=je.get(Nn);break;case ke.l3:oi=dt.get(Nn);break;default:oi=U.normalizeStyleValue(Nn,fi,oi,Ot)}jn.set(fi,oi)}),kn||Ht.push(jn),$t=jn,Gt=Tn}),Ot.length)throw function Xt(oe){return new A.vHH(3502,!1)}();return Ht}function Ir(oe,U,I,Y){switch(U){case"start":oe.onStart(()=>Y(I&&sr(I,"start",oe)));break;case"done":oe.onDone(()=>Y(I&&sr(I,"done",oe)));break;case"destroy":oe.onDestroy(()=>Y(I&&sr(I,"destroy",oe)))}}function sr(oe,U,I){const dt=lr(oe.element,oe.triggerName,oe.fromState,oe.toState,U||oe.phaseName,I.totalTime??oe.totalTime,!!I.disabled),Ot=oe._data;return null!=Ot&&(dt._data=Ot),dt}function lr(oe,U,I,Y,je="",dt=0,Ot){return{element:oe,triggerName:U,fromState:I,toState:Y,phaseName:je,totalTime:dt,disabled:!!Ot}}function Ci(oe,U,I){let Y=oe.get(U);return Y||oe.set(U,Y=I),Y}function Er(oe){const U=oe.indexOf(":");return[oe.substring(1,U),oe.slice(U+1)]}let Ur=(oe,U)=>!1,Ei=(oe,U,I)=>[],Or=null;function Nr(oe){const U=oe.parentNode||oe.host;return U===Or?null:U}(Vi()||typeof Element<"u")&&(tr()?(Or=(()=>document.documentElement)(),Ur=(oe,U)=>{for(;U;){if(U===oe)return!0;U=Nr(U)}return!1}):Ur=(oe,U)=>oe.contains(U),Ei=(oe,U,I)=>{if(I)return Array.from(oe.querySelectorAll(U));const Y=oe.querySelector(U);return Y?[Y]:[]});let Pi=null,Ii=!1;const kt=Ur,Zt=Ei;let In=(()=>{class oe{validateStyleProperty(I){return function Mt(oe){Pi||(Pi=function ct(){return typeof document<"u"?document.body:null}()||{},Ii=!!Pi.style&&"WebkitAppearance"in Pi.style);let U=!0;return Pi.style&&!function Hr(oe){return"ebkit"==oe.substring(1,6)}(oe)&&(U=oe in Pi.style,!U&&Ii&&(U="Webkit"+oe.charAt(0).toUpperCase()+oe.slice(1)in Pi.style)),U}(I)}matchesElement(I,Y){return!1}containsElement(I,Y){return kt(I,Y)}getParentElement(I){return Nr(I)}query(I,Y,je){return Zt(I,Y,je)}computeStyle(I,Y,je){return je||""}animate(I,Y,je,dt,Ot,Ht=[],Gt){return new ke.ZN(je,dt)}}return oe.\u0275fac=function(I){return new(I||oe)},oe.\u0275prov=A.Yz7({token:oe,factory:oe.\u0275fac}),oe})(),Bn=(()=>{class oe{}return oe.NOOP=new In,oe})();const Oi="ng-enter",xi="ng-leave",qi="ng-trigger",lt=".ng-trigger",Vt="ng-animating",$e=".ng-animating";function yt(oe){if("number"==typeof oe)return oe;const U=oe.match(/^(-?[\.\d]+)(m?s)/);return!U||U.length<2?0:Wt(parseFloat(U[1]),U[2])}function Wt(oe,U){return"s"===U?1e3*oe:oe}function dn(oe,U,I){return oe.hasOwnProperty("duration")?oe:function An(oe,U,I){let je,dt=0,Ot="";if("string"==typeof oe){const Ht=oe.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===Ht)return U.push(It()),{duration:0,delay:0,easing:""};je=Wt(parseFloat(Ht[1]),Ht[2]);const Gt=Ht[3];null!=Gt&&(dt=Wt(parseFloat(Gt),Ht[4]));const $t=Ht[5];$t&&(Ot=$t)}else je=oe;if(!I){let Ht=!1,Gt=U.length;je<0&&(U.push(function jt(){return new A.vHH(3100,!1)}()),Ht=!0),dt<0&&(U.push(function an(){return new A.vHH(3101,!1)}()),Ht=!0),Ht&&U.splice(Gt,0,It())}return{duration:je,delay:dt,easing:Ot}}(oe,U,I)}function Yn(oe,U={}){return Object.keys(oe).forEach(I=>{U[I]=oe[I]}),U}function ri(oe){const U=new Map;return Object.keys(oe).forEach(I=>{U.set(I,oe[I])}),U}function Ji(oe,U=new Map,I){if(I)for(let[Y,je]of I)U.set(Y,je);for(let[Y,je]of oe)U.set(Y,je);return U}function ei(oe,U,I){return I?U+":"+I+";":""}function Ba(oe){let U="";for(let I=0;I{const dt=Je(je);I&&!I.has(je)&&I.set(je,oe.style[dt]),oe.style[dt]=Y}),Vi()&&Ba(oe))}function Fi(oe,U){oe.style&&(U.forEach((I,Y)=>{const je=Je(Y);oe.style[je]=""}),Vi()&&Ba(oe))}function Si(oe){return Array.isArray(oe)?1==oe.length?oe[0]:(0,ke.vP)(oe):oe}const zr=new RegExp("{{\\s*(.+?)\\s*}}","g");function dr(oe){let U=[];if("string"==typeof oe){let I;for(;I=zr.exec(oe);)U.push(I[1]);zr.lastIndex=0}return U}function gi(oe,U,I){const Y=oe.toString(),je=Y.replace(zr,(dt,Ot)=>{let Ht=U[Ot];return null==Ht&&(I.push(function on(oe){return new A.vHH(3003,!1)}()),Ht=""),Ht.toString()});return je==Y?oe:je}function qe(oe){const U=[];let I=oe.next();for(;!I.done;)U.push(I.value),I=oe.next();return U}const gt=/-+([a-z0-9])/g;function Je(oe){return oe.replace(gt,(...U)=>U[1].toUpperCase())}function Ct(oe){return oe.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function zt(oe,U,I){switch(U.type){case 7:return oe.visitTrigger(U,I);case 0:return oe.visitState(U,I);case 1:return oe.visitTransition(U,I);case 2:return oe.visitSequence(U,I);case 3:return oe.visitGroup(U,I);case 4:return oe.visitAnimate(U,I);case 5:return oe.visitKeyframes(U,I);case 6:return oe.visitStyle(U,I);case 8:return oe.visitReference(U,I);case 9:return oe.visitAnimateChild(U,I);case 10:return oe.visitAnimateRef(U,I);case 11:return oe.visitQuery(U,I);case 12:return oe.visitStagger(U,I);default:throw function Cn(oe){return new A.vHH(3004,!1)}()}}function vn(oe,U){return window.getComputedStyle(oe)[U]}function Un(oe,U){const I=[];return"string"==typeof oe?oe.split(/\s*,\s*/).forEach(Y=>function Ki(oe,U,I){if(":"==oe[0]){const Gt=function ji(oe,U){switch(oe){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(I,Y)=>parseFloat(Y)>parseFloat(I);case":decrement":return(I,Y)=>parseFloat(Y) *"}}(oe,I);if("function"==typeof Gt)return void U.push(Gt);oe=Gt}const Y=oe.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==Y||Y.length<4)return I.push(function St(oe){return new A.vHH(3015,!1)}()),U;const je=Y[1],dt=Y[2],Ot=Y[3];U.push(Lr(je,Ot));"<"==dt[0]&&!("*"==je&&"*"==Ot)&&U.push(Lr(Ot,je))}(Y,I,U)):I.push(oe),I}const ci=new Set(["true","1"]),Tr=new Set(["false","0"]);function Lr(oe,U){const I=ci.has(oe)||Tr.has(oe),Y=ci.has(U)||Tr.has(U);return(je,dt)=>{let Ot="*"==oe||oe==je,Ht="*"==U||U==dt;return!Ot&&I&&"boolean"==typeof je&&(Ot=je?ci.has(oe):Tr.has(oe)),!Ht&&Y&&"boolean"==typeof dt&&(Ht=dt?ci.has(U):Tr.has(U)),Ot&&Ht}}const Ve=new RegExp("s*:selfs*,?","g");function Ie(oe,U,I,Y){return new Jt(oe).build(U,I,Y)}class Jt{constructor(U){this._driver=U}build(U,I,Y){const je=new ii(I);return this._resetContextStyleTimingState(je),zt(this,Si(U),je)}_resetContextStyleTimingState(U){U.currentQuerySelector="",U.collectedStyles=new Map,U.collectedStyles.set("",new Map),U.currentTime=0}visitTrigger(U,I){let Y=I.queryCount=0,je=I.depCount=0;const dt=[],Ot=[];return"@"==U.name.charAt(0)&&I.errors.push(function Dt(){return new A.vHH(3006,!1)}()),U.definitions.forEach(Ht=>{if(this._resetContextStyleTimingState(I),0==Ht.type){const Gt=Ht,$t=Gt.name;$t.toString().split(/\s*,\s*/).forEach(fn=>{Gt.name=fn,dt.push(this.visitState(Gt,I))}),Gt.name=$t}else if(1==Ht.type){const Gt=this.visitTransition(Ht,I);Y+=Gt.queryCount,je+=Gt.depCount,Ot.push(Gt)}else I.errors.push(function Ze(){return new A.vHH(3007,!1)}())}),{type:7,name:U.name,states:dt,transitions:Ot,queryCount:Y,depCount:je,options:null}}visitState(U,I){const Y=this.visitStyle(U.styles,I),je=U.options&&U.options.params||null;if(Y.containsDynamicStyles){const dt=new Set,Ot=je||{};Y.styles.forEach(Ht=>{Ht instanceof Map&&Ht.forEach(Gt=>{dr(Gt).forEach($t=>{Ot.hasOwnProperty($t)||dt.add($t)})})}),dt.size&&(qe(dt.values()),I.errors.push(function wt(oe,U){return new A.vHH(3008,!1)}()))}return{type:0,name:U.name,style:Y,options:je?{params:je}:null}}visitTransition(U,I){I.queryCount=0,I.depCount=0;const Y=zt(this,Si(U.animation),I);return{type:1,matchers:Un(U.expr,I.errors),animation:Y,queryCount:I.queryCount,depCount:I.depCount,options:ur(U.options)}}visitSequence(U,I){return{type:2,steps:U.steps.map(Y=>zt(this,Y,I)),options:ur(U.options)}}visitGroup(U,I){const Y=I.currentTime;let je=0;const dt=U.steps.map(Ot=>{I.currentTime=Y;const Ht=zt(this,Ot,I);return je=Math.max(je,I.currentTime),Ht});return I.currentTime=je,{type:3,steps:dt,options:ur(U.options)}}visitAnimate(U,I){const Y=function ga(oe,U){if(oe.hasOwnProperty("duration"))return oe;if("number"==typeof oe)return yr(dn(oe,U).duration,0,"");const I=oe;if(I.split(/\s+/).some(dt=>"{"==dt.charAt(0)&&"{"==dt.charAt(1))){const dt=yr(0,0,"");return dt.dynamic=!0,dt.strValue=I,dt}const je=dn(I,U);return yr(je.duration,je.delay,je.easing)}(U.timings,I.errors);I.currentAnimateTimings=Y;let je,dt=U.styles?U.styles:(0,ke.oB)({});if(5==dt.type)je=this.visitKeyframes(dt,I);else{let Ot=U.styles,Ht=!1;if(!Ot){Ht=!0;const $t={};Y.easing&&($t.easing=Y.easing),Ot=(0,ke.oB)($t)}I.currentTime+=Y.duration+Y.delay;const Gt=this.visitStyle(Ot,I);Gt.isEmptyStep=Ht,je=Gt}return I.currentAnimateTimings=null,{type:4,timings:Y,style:je,options:null}}visitStyle(U,I){const Y=this._makeStyleAst(U,I);return this._validateStyleAst(Y,I),Y}_makeStyleAst(U,I){const Y=[],je=Array.isArray(U.styles)?U.styles:[U.styles];for(let Ht of je)"string"==typeof Ht?Ht===ke.l3?Y.push(Ht):I.errors.push(new A.vHH(3002,!1)):Y.push(ri(Ht));let dt=!1,Ot=null;return Y.forEach(Ht=>{if(Ht instanceof Map&&(Ht.has("easing")&&(Ot=Ht.get("easing"),Ht.delete("easing")),!dt))for(let Gt of Ht.values())if(Gt.toString().indexOf("{{")>=0){dt=!0;break}}),{type:6,styles:Y,easing:Ot,offset:U.offset,containsDynamicStyles:dt,options:null}}_validateStyleAst(U,I){const Y=I.currentAnimateTimings;let je=I.currentTime,dt=I.currentTime;Y&&dt>0&&(dt-=Y.duration+Y.delay),U.styles.forEach(Ot=>{"string"!=typeof Ot&&Ot.forEach((Ht,Gt)=>{const $t=I.collectedStyles.get(I.currentQuerySelector),fn=$t.get(Gt);let Tn=!0;fn&&(dt!=je&&dt>=fn.startTime&&je<=fn.endTime&&(I.errors.push(function bn(oe,U,I,Y,je){return new A.vHH(3010,!1)}()),Tn=!1),dt=fn.startTime),Tn&&$t.set(Gt,{startTime:dt,endTime:je}),I.options&&function Ua(oe,U,I){const Y=U.params||{},je=dr(oe);je.length&&je.forEach(dt=>{Y.hasOwnProperty(dt)||I.push(function Kt(oe){return new A.vHH(3001,!1)}())})}(Ht,I.options,I.errors)})})}visitKeyframes(U,I){const Y={type:5,styles:[],options:null};if(!I.currentAnimateTimings)return I.errors.push(function gn(){return new A.vHH(3011,!1)}()),Y;let dt=0;const Ot=[];let Ht=!1,Gt=!1,$t=0;const fn=U.steps.map(oi=>{const ki=this._makeStyleAst(oi,I);let Zi=null!=ki.offset?ki.offset:function $i(oe){if("string"==typeof oe)return null;let U=null;if(Array.isArray(oe))oe.forEach(I=>{if(I instanceof Map&&I.has("offset")){const Y=I;U=parseFloat(Y.get("offset")),Y.delete("offset")}});else if(oe instanceof Map&&oe.has("offset")){const I=oe;U=parseFloat(I.get("offset")),I.delete("offset")}return U}(ki.styles),Gi=0;return null!=Zi&&(dt++,Gi=ki.offset=Zi),Gt=Gt||Gi<0||Gi>1,Ht=Ht||Gi<$t,$t=Gi,Ot.push(Gi),ki});Gt&&I.errors.push(function zn(){return new A.vHH(3012,!1)}()),Ht&&I.errors.push(function bt(){return new A.vHH(3200,!1)}());const Tn=U.steps.length;let kn=0;dt>0&&dt{const Zi=kn>0?ki==jn?1:kn*ki:Ot[ki],Gi=Zi*fi;I.currentTime=On+Nn.delay+Gi,Nn.duration=Gi,this._validateStyleAst(oi,I),oi.offset=Zi,Y.styles.push(oi)}),Y}visitReference(U,I){return{type:8,animation:zt(this,Si(U.animation),I),options:ur(U.options)}}visitAnimateChild(U,I){return I.depCount++,{type:9,options:ur(U.options)}}visitAnimateRef(U,I){return{type:10,animation:this.visitReference(U.animation,I),options:ur(U.options)}}visitQuery(U,I){const Y=I.currentQuerySelector,je=U.options||{};I.queryCount++,I.currentQuery=U;const[dt,Ot]=function _n(oe){const U=!!oe.split(/\s*,\s*/).find(I=>":self"==I);return U&&(oe=oe.replace(Ve,"")),oe=oe.replace(/@\*/g,lt).replace(/@\w+/g,I=>lt+"-"+I.slice(1)).replace(/:animating/g,$e),[oe,U]}(U.selector);I.currentQuerySelector=Y.length?Y+" "+dt:dt,Ci(I.collectedStyles,I.currentQuerySelector,new Map);const Ht=zt(this,Si(U.animation),I);return I.currentQuery=null,I.currentQuerySelector=Y,{type:11,selector:dt,limit:je.limit||0,optional:!!je.optional,includeSelf:Ot,animation:Ht,originalSelector:U.selector,options:ur(U.options)}}visitStagger(U,I){I.currentQuery||I.errors.push(function pt(){return new A.vHH(3013,!1)}());const Y="full"===U.timings?{duration:0,delay:0,easing:"full"}:dn(U.timings,I.errors,!0);return{type:12,animation:zt(this,Si(U.animation),I),timings:Y,options:null}}}class ii{constructor(U){this.errors=U,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function ur(oe){return oe?(oe=Yn(oe)).params&&(oe.params=function hi(oe){return oe?Yn(oe):null}(oe.params)):oe={},oe}function yr(oe,U,I){return{duration:oe,delay:U,easing:I}}function Mo(oe,U,I,Y,je,dt,Ot=null,Ht=!1){return{type:1,element:oe,keyframes:U,preStyleProps:I,postStyleProps:Y,duration:je,delay:dt,totalTime:je+dt,easing:Ot,subTimeline:Ht}}class Na{constructor(){this._map=new Map}get(U){return this._map.get(U)||[]}append(U,I){let Y=this._map.get(U);Y||this._map.set(U,Y=[]),Y.push(...I)}has(U){return this._map.has(U)}clear(){this._map.clear()}}const xo=new RegExp(":enter","g"),ts=new RegExp(":leave","g");function ta(oe,U,I,Y,je,dt=new Map,Ot=new Map,Ht,Gt,$t=[]){return(new ns).buildKeyframes(oe,U,I,Y,je,dt,Ot,Ht,Gt,$t)}class ns{buildKeyframes(U,I,Y,je,dt,Ot,Ht,Gt,$t,fn=[]){$t=$t||new Na;const Tn=new Yr(U,I,$t,je,dt,fn,[]);Tn.options=Gt;const kn=Gt.delay?yt(Gt.delay):0;Tn.currentTimeline.delayNextStep(kn),Tn.currentTimeline.setStyles([Ot],null,Tn.errors,Gt),zt(this,Y,Tn);const jn=Tn.timelines.filter(On=>On.containsAnimation());if(jn.length&&Ht.size){let On;for(let Nn=jn.length-1;Nn>=0;Nn--){const fi=jn[Nn];if(fi.element===I){On=fi;break}}On&&!On.allowOnlyTimelineStyles()&&On.setStyles([Ht],null,Tn.errors,Gt)}return jn.length?jn.map(On=>On.buildKeyframes()):[Mo(I,[],[],[],0,kn,"",!1)]}visitTrigger(U,I){}visitState(U,I){}visitTransition(U,I){}visitAnimateChild(U,I){const Y=I.subInstructions.get(I.element);if(Y){const je=I.createSubContext(U.options),dt=I.currentTimeline.currentTime,Ot=this._visitSubInstructions(Y,je,je.options);dt!=Ot&&I.transformIntoNewTimeline(Ot)}I.previousNode=U}visitAnimateRef(U,I){const Y=I.createSubContext(U.options);Y.transformIntoNewTimeline(),this.visitReference(U.animation,Y),I.transformIntoNewTimeline(Y.currentTimeline.currentTime),I.previousNode=U}_visitSubInstructions(U,I,Y){let dt=I.currentTimeline.currentTime;const Ot=null!=Y.duration?yt(Y.duration):null,Ht=null!=Y.delay?yt(Y.delay):null;return 0!==Ot&&U.forEach(Gt=>{const $t=I.appendInstructionToTimeline(Gt,Ot,Ht);dt=Math.max(dt,$t.duration+$t.delay)}),dt}visitReference(U,I){I.updateOptions(U.options,!0),zt(this,U.animation,I),I.previousNode=U}visitSequence(U,I){const Y=I.subContextCount;let je=I;const dt=U.options;if(dt&&(dt.params||dt.delay)&&(je=I.createSubContext(dt),je.transformIntoNewTimeline(),null!=dt.delay)){6==je.previousNode.type&&(je.currentTimeline.snapshotCurrentStyles(),je.previousNode=na);const Ot=yt(dt.delay);je.delayNextStep(Ot)}U.steps.length&&(U.steps.forEach(Ot=>zt(this,Ot,je)),je.currentTimeline.applyStylesToKeyframe(),je.subContextCount>Y&&je.transformIntoNewTimeline()),I.previousNode=U}visitGroup(U,I){const Y=[];let je=I.currentTimeline.currentTime;const dt=U.options&&U.options.delay?yt(U.options.delay):0;U.steps.forEach(Ot=>{const Ht=I.createSubContext(U.options);dt&&Ht.delayNextStep(dt),zt(this,Ot,Ht),je=Math.max(je,Ht.currentTimeline.currentTime),Y.push(Ht.currentTimeline)}),Y.forEach(Ot=>I.currentTimeline.mergeTimelineCollectedStyles(Ot)),I.transformIntoNewTimeline(je),I.previousNode=U}_visitTiming(U,I){if(U.dynamic){const Y=U.strValue;return dn(I.params?gi(Y,I.params,I.errors):Y,I.errors)}return{duration:U.duration,delay:U.delay,easing:U.easing}}visitAnimate(U,I){const Y=I.currentAnimateTimings=this._visitTiming(U.timings,I),je=I.currentTimeline;Y.delay&&(I.incrementTime(Y.delay),je.snapshotCurrentStyles());const dt=U.style;5==dt.type?this.visitKeyframes(dt,I):(I.incrementTime(Y.duration),this.visitStyle(dt,I),je.applyStylesToKeyframe()),I.currentAnimateTimings=null,I.previousNode=U}visitStyle(U,I){const Y=I.currentTimeline,je=I.currentAnimateTimings;!je&&Y.hasCurrentStyleProperties()&&Y.forwardFrame();const dt=je&&je.easing||U.easing;U.isEmptyStep?Y.applyEmptyStep(dt):Y.setStyles(U.styles,dt,I.errors,I.options),I.previousNode=U}visitKeyframes(U,I){const Y=I.currentAnimateTimings,je=I.currentTimeline.duration,dt=Y.duration,Ht=I.createSubContext().currentTimeline;Ht.easing=Y.easing,U.styles.forEach(Gt=>{Ht.forwardTime((Gt.offset||0)*dt),Ht.setStyles(Gt.styles,Gt.easing,I.errors,I.options),Ht.applyStylesToKeyframe()}),I.currentTimeline.mergeTimelineCollectedStyles(Ht),I.transformIntoNewTimeline(je+dt),I.previousNode=U}visitQuery(U,I){const Y=I.currentTimeline.currentTime,je=U.options||{},dt=je.delay?yt(je.delay):0;dt&&(6===I.previousNode.type||0==Y&&I.currentTimeline.hasCurrentStyleProperties())&&(I.currentTimeline.snapshotCurrentStyles(),I.previousNode=na);let Ot=Y;const Ht=I.invokeQuery(U.selector,U.originalSelector,U.limit,U.includeSelf,!!je.optional,I.errors);I.currentQueryTotal=Ht.length;let Gt=null;Ht.forEach(($t,fn)=>{I.currentQueryIndex=fn;const Tn=I.createSubContext(U.options,$t);dt&&Tn.delayNextStep(dt),$t===I.element&&(Gt=Tn.currentTimeline),zt(this,U.animation,Tn),Tn.currentTimeline.applyStylesToKeyframe(),Ot=Math.max(Ot,Tn.currentTimeline.currentTime)}),I.currentQueryIndex=0,I.currentQueryTotal=0,I.transformIntoNewTimeline(Ot),Gt&&(I.currentTimeline.mergeTimelineCollectedStyles(Gt),I.currentTimeline.snapshotCurrentStyles()),I.previousNode=U}visitStagger(U,I){const Y=I.parentContext,je=I.currentTimeline,dt=U.timings,Ot=Math.abs(dt.duration),Ht=Ot*(I.currentQueryTotal-1);let Gt=Ot*I.currentQueryIndex;switch(dt.duration<0?"reverse":dt.easing){case"reverse":Gt=Ht-Gt;break;case"full":Gt=Y.currentStaggerTime}const fn=I.currentTimeline;Gt&&fn.delayNextStep(Gt);const Tn=fn.currentTime;zt(this,U.animation,I),I.previousNode=U,Y.currentStaggerTime=je.currentTime-Tn+(je.startTime-Y.currentTimeline.startTime)}}const na={};class Yr{constructor(U,I,Y,je,dt,Ot,Ht,Gt){this._driver=U,this.element=I,this.subInstructions=Y,this._enterClassName=je,this._leaveClassName=dt,this.errors=Ot,this.timelines=Ht,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=na,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=Gt||new ka(this._driver,I,0),Ht.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(U,I){if(!U)return;const Y=U;let je=this.options;null!=Y.duration&&(je.duration=yt(Y.duration)),null!=Y.delay&&(je.delay=yt(Y.delay));const dt=Y.params;if(dt){let Ot=je.params;Ot||(Ot=this.options.params={}),Object.keys(dt).forEach(Ht=>{(!I||!Ot.hasOwnProperty(Ht))&&(Ot[Ht]=gi(dt[Ht],Ot,this.errors))})}}_copyOptions(){const U={};if(this.options){const I=this.options.params;if(I){const Y=U.params={};Object.keys(I).forEach(je=>{Y[je]=I[je]})}}return U}createSubContext(U=null,I,Y){const je=I||this.element,dt=new Yr(this._driver,je,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(je,Y||0));return dt.previousNode=this.previousNode,dt.currentAnimateTimings=this.currentAnimateTimings,dt.options=this._copyOptions(),dt.updateOptions(U),dt.currentQueryIndex=this.currentQueryIndex,dt.currentQueryTotal=this.currentQueryTotal,dt.parentContext=this,this.subContextCount++,dt}transformIntoNewTimeline(U){return this.previousNode=na,this.currentTimeline=this.currentTimeline.fork(this.element,U),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(U,I,Y){const je={duration:I??U.duration,delay:this.currentTimeline.currentTime+(Y??0)+U.delay,easing:""},dt=new is(this._driver,U.element,U.keyframes,U.preStyleProps,U.postStyleProps,je,U.stretchStartingKeyframe);return this.timelines.push(dt),je}incrementTime(U){this.currentTimeline.forwardTime(this.currentTimeline.duration+U)}delayNextStep(U){U>0&&this.currentTimeline.delayNextStep(U)}invokeQuery(U,I,Y,je,dt,Ot){let Ht=[];if(je&&Ht.push(this.element),U.length>0){U=(U=U.replace(xo,"."+this._enterClassName)).replace(ts,"."+this._leaveClassName);let $t=this._driver.query(this.element,U,1!=Y);0!==Y&&($t=Y<0?$t.slice($t.length+Y,$t.length):$t.slice(0,Y)),Ht.push(...$t)}return!dt&&0==Ht.length&&Ot.push(function rt(oe){return new A.vHH(3014,!1)}()),Ht}}class ka{constructor(U,I,Y,je){this._driver=U,this.element=I,this.startTime=Y,this._elementTimelineStylesLookup=je,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(I),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(I,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(U){const I=1===this._keyframes.size&&this._pendingStyles.size;this.duration||I?(this.forwardTime(this.currentTime+U),I&&this.snapshotCurrentStyles()):this.startTime+=U}fork(U,I){return this.applyStylesToKeyframe(),new ka(this._driver,U,I||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(U){this.applyStylesToKeyframe(),this.duration=U,this._loadKeyframe()}_updateStyle(U,I){this._localTimelineStyles.set(U,I),this._globalTimelineStyles.set(U,I),this._styleSummary.set(U,{time:this.currentTime,value:I})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(U){U&&this._previousKeyframe.set("easing",U);for(let[I,Y]of this._globalTimelineStyles)this._backFill.set(I,Y||ke.l3),this._currentKeyframe.set(I,ke.l3);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(U,I,Y,je){I&&this._previousKeyframe.set("easing",I);const dt=je&&je.params||{},Ot=function rs(oe,U){const I=new Map;let Y;return oe.forEach(je=>{if("*"===je){Y=Y||U.keys();for(let dt of Y)I.set(dt,ke.l3)}else Ji(je,I)}),I}(U,this._globalTimelineStyles);for(let[Gt,$t]of Ot){const fn=gi($t,dt,Y);var Ht;this._pendingStyles.set(Gt,fn),this._localTimelineStyles.has(Gt)||this._backFill.set(Gt,null!==(Ht=this._globalTimelineStyles.get(Gt))&&void 0!==Ht?Ht:ke.l3),this._updateStyle(Gt,fn)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((U,I)=>{this._currentKeyframe.set(I,U)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((U,I)=>{this._currentKeyframe.has(I)||this._currentKeyframe.set(I,U)}))}snapshotCurrentStyles(){for(let[U,I]of this._localTimelineStyles)this._pendingStyles.set(U,I),this._updateStyle(U,I)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const U=[];for(let I in this._currentKeyframe)U.push(I);return U}mergeTimelineCollectedStyles(U){U._styleSummary.forEach((I,Y)=>{const je=this._styleSummary.get(Y);(!je||I.time>je.time)&&this._updateStyle(Y,I.value)})}buildKeyframes(){this.applyStylesToKeyframe();const U=new Set,I=new Set,Y=1===this._keyframes.size&&0===this.duration;let je=[];this._keyframes.forEach((Ht,Gt)=>{const $t=Ji(Ht,new Map,this._backFill);$t.forEach((fn,Tn)=>{fn===ke.k1?U.add(Tn):fn===ke.l3&&I.add(Tn)}),Y||$t.set("offset",Gt/this.duration),je.push($t)});const dt=U.size?qe(U.values()):[],Ot=I.size?qe(I.values()):[];if(Y){const Ht=je[0],Gt=new Map(Ht);Ht.set("offset",0),Gt.set("offset",1),je=[Ht,Gt]}return Mo(this.element,je,dt,Ot,this.duration,this.startTime,this.easing,!1)}}class is extends ka{constructor(U,I,Y,je,dt,Ot,Ht=!1){super(U,I,Ot.delay),this.keyframes=Y,this.preStyleProps=je,this.postStyleProps=dt,this._stretchStartingKeyframe=Ht,this.timings={duration:Ot.duration,delay:Ot.delay,easing:Ot.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let U=this.keyframes,{delay:I,duration:Y,easing:je}=this.timings;if(this._stretchStartingKeyframe&&I){const dt=[],Ot=Y+I,Ht=I/Ot,Gt=Ji(U[0]);Gt.set("offset",0),dt.push(Gt);const $t=Ji(U[0]);$t.set("offset",Do(Ht)),dt.push($t);const fn=U.length-1;for(let Tn=1;Tn<=fn;Tn++){let kn=Ji(U[Tn]);const jn=kn.get("offset");kn.set("offset",Do((I+jn*Y)/Ot)),dt.push(kn)}Y=Ot,I=0,je="",U=dt}return Mo(this.element,U,this.preStyleProps,this.postStyleProps,Y,I,je,!0)}}function Do(oe,U=3){const I=Math.pow(10,U-1);return Math.round(oe*I)/I}class eo{}const Hi=new Set(["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"]);class wr extends eo{normalizePropertyName(U,I){return Je(U)}normalizeStyleValue(U,I,Y,je){let dt="";const Ot=Y.toString().trim();if(Hi.has(I)&&0!==Y&&"0"!==Y)if("number"==typeof Y)dt="px";else{const Ht=Y.match(/^[+-]?[\d\.]+([a-z]*)$/);Ht&&0==Ht[1].length&&je.push(function Tt(oe,U){return new A.vHH(3005,!1)}())}return Ot+dt}}function _i(oe,U,I,Y,je,dt,Ot,Ht,Gt,$t,fn,Tn,kn){return{type:0,element:oe,triggerName:U,isRemovalTransition:je,fromState:I,fromStyles:dt,toState:Y,toStyles:Ot,timelines:Ht,queriedElements:Gt,preStyleProps:$t,postStyleProps:fn,totalTime:Tn,errors:kn}}const qr={};class Ro{constructor(U,I,Y){this._triggerName=U,this.ast=I,this._stateStyles=Y}match(U,I,Y,je){return function $s(oe,U,I,Y,je){return oe.some(dt=>dt(U,I,Y,je))}(this.ast.matchers,U,I,Y,je)}buildStyles(U,I,Y){let je=this._stateStyles.get("*");return void 0!==U&&(je=this._stateStyles.get(U?.toString())||je),je?je.buildStyles(I,Y):new Map}build(U,I,Y,je,dt,Ot,Ht,Gt,$t,fn){var Tn;const kn=[],jn=this.ast.options&&this.ast.options.params||qr,Nn=this.buildStyles(Y,Ht&&Ht.params||qr,kn),fi=Gt&&Gt.params||qr,oi=this.buildStyles(je,fi,kn),ki=new Set,Zi=new Map,Gi=new Map,vo="void"===je,da={params:Xs(fi,jn),delay:null===(Tn=this.ast.options)||void 0===Tn?void 0:Tn.delay},Ar=fn?[]:ta(U,I,this.ast.animation,dt,Ot,Nn,oi,da,$t,kn);let Br=0;if(Ar.forEach(jr=>{Br=Math.max(jr.duration+jr.delay,Br)}),kn.length)return _i(I,this._triggerName,Y,je,vo,Nn,oi,[],[],Zi,Gi,Br,kn);Ar.forEach(jr=>{const Eo=jr.element,Ma=Ci(Zi,Eo,new Set);jr.preStyleProps.forEach(xa=>Ma.add(xa));const To=Ci(Gi,Eo,new Set);jr.postStyleProps.forEach(xa=>To.add(xa)),Eo!==I&&ki.add(Eo)});const vs=qe(ki.values());return _i(I,this._triggerName,Y,je,vo,Nn,oi,Ar,vs,Zi,Gi,Br)}}function Xs(oe,U){const I=Yn(U);for(const Y in oe)oe.hasOwnProperty(Y)&&null!=oe[Y]&&(I[Y]=oe[Y]);return I}class el{constructor(U,I,Y){this.styles=U,this.defaultParams=I,this.normalizer=Y}buildStyles(U,I){const Y=new Map,je=Yn(this.defaultParams);return Object.keys(U).forEach(dt=>{const Ot=U[dt];null!==Ot&&(je[dt]=Ot)}),this.styles.styles.forEach(dt=>{"string"!=typeof dt&&dt.forEach((Ot,Ht)=>{Ot&&(Ot=gi(Ot,je,I));const Gt=this.normalizer.normalizePropertyName(Ht,I);Ot=this.normalizer.normalizeStyleValue(Ht,Gt,Ot,I),Y.set(Gt,Ot)})}),Y}}class ia{constructor(U,I,Y){this.name=U,this.ast=I,this._normalizer=Y,this.transitionFactories=[],this.states=new Map,I.states.forEach(je=>{this.states.set(je.name,new el(je.style,je.options&&je.options.params||{},Y))}),io(this.states,"true","1"),io(this.states,"false","0"),I.transitions.forEach(je=>{this.transitionFactories.push(new Ro(U,je,this.states))}),this.fallbackTransition=function no(oe,U,I){return new Ro(oe,{type:1,animation:{type:2,steps:[],options:null},matchers:[(Ot,Ht)=>!0],options:null,queryCount:0,depCount:0},U)}(U,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(U,I,Y,je){return this.transitionFactories.find(Ot=>Ot.match(U,I,Y,je))||null}matchStyles(U,I,Y){return this.fallbackTransition.buildStyles(U,I,Y)}}function io(oe,U,I){oe.has(U)?oe.has(I)||oe.set(I,oe.get(U)):oe.has(I)&&oe.set(U,oe.get(I))}const as=new Na;class tl{constructor(U,I,Y){this.bodyNode=U,this._driver=I,this._normalizer=Y,this._animations=new Map,this._playersById=new Map,this.players=[]}register(U,I){const Y=[],dt=Ie(this._driver,I,Y,[]);if(Y.length)throw function yn(oe){return new A.vHH(3503,!1)}();this._animations.set(U,dt)}_buildPlayer(U,I,Y){const je=U.element,dt=or(0,this._normalizer,0,U.keyframes,I,Y);return this._driver.animate(je,dt,U.duration,U.delay,U.easing,[],!0)}create(U,I,Y={}){const je=[],dt=this._animations.get(U);let Ot;const Ht=new Map;if(dt?(Ot=ta(this._driver,I,dt,Oi,xi,new Map,new Map,Y,as,je),Ot.forEach(fn=>{const Tn=Ci(Ht,fn.element,new Map);fn.postStyleProps.forEach(kn=>Tn.set(kn,null))})):(je.push(function Zn(){return new A.vHH(3300,!1)}()),Ot=[]),je.length)throw function Hn(oe){return new A.vHH(3504,!1)}();Ht.forEach((fn,Tn)=>{fn.forEach((kn,jn)=>{fn.set(jn,this._driver.computeStyle(Tn,jn,ke.l3))})});const $t=li(Ot.map(fn=>{const Tn=Ht.get(fn.element);return this._buildPlayer(fn,new Map,Tn)}));return this._playersById.set(U,$t),$t.onDestroy(()=>this.destroy(U)),this.players.push($t),$t}destroy(U){const I=this._getPlayer(U);I.destroy(),this._playersById.delete(U);const Y=this.players.indexOf(I);Y>=0&&this.players.splice(Y,1)}_getPlayer(U){const I=this._playersById.get(U);if(!I)throw function Xn(oe){return new A.vHH(3301,!1)}();return I}listen(U,I,Y,je){const dt=lr(I,"","","");return Ir(this._getPlayer(U),Y,dt,je),()=>{}}command(U,I,Y,je){if("register"==Y)return void this.register(U,je[0]);if("create"==Y)return void this.create(U,I,je[0]||{});const dt=this._getPlayer(U);switch(Y){case"play":dt.play();break;case"pause":dt.pause();break;case"reset":dt.reset();break;case"restart":dt.restart();break;case"finish":dt.finish();break;case"init":dt.init();break;case"setPosition":dt.setPosition(parseFloat(je[0]));break;case"destroy":this.destroy(U)}}}const Vr="ng-animate-queued",Po="ng-animate-disabled",ss=[],Io={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},nl={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},hr="__ng_removed";class _a{constructor(U,I=""){this.namespaceId=I;const Y=U&&U.hasOwnProperty("value");if(this.value=function cs(oe){return oe??null}(Y?U.value:U),Y){const dt=Yn(U);delete dt.value,this.options=dt}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(U){const I=U.params;if(I){const Y=this.options.params;Object.keys(I).forEach(je=>{null==Y[je]&&(Y[je]=I[je])})}}}const Jr="void",ao=new _a(Jr);class oo{constructor(U,I,Y){this.id=U,this.hostElement=I,this._engine=Y,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+U,ir(I,this._hostClassName)}listen(U,I,Y,je){if(!this._triggers.has(I))throw function mi(oe,U){return new A.vHH(3302,!1)}();if(null==Y||0==Y.length)throw function di(oe){return new A.vHH(3303,!1)}();if(!function lo(oe){return"start"==oe||"done"==oe}(Y))throw function Jn(oe,U){return new A.vHH(3400,!1)}();const dt=Ci(this._elementListeners,U,[]),Ot={name:I,phase:Y,callback:je};dt.push(Ot);const Ht=Ci(this._engine.statesByElement,U,new Map);return Ht.has(I)||(ir(U,qi),ir(U,qi+"-"+I),Ht.set(I,ao)),()=>{this._engine.afterFlush(()=>{const Gt=dt.indexOf(Ot);Gt>=0&&dt.splice(Gt,1),this._triggers.has(I)||Ht.delete(I)})}}register(U,I){return!this._triggers.has(U)&&(this._triggers.set(U,I),!0)}_getTrigger(U){const I=this._triggers.get(U);if(!I)throw function Ln(oe){return new A.vHH(3401,!1)}();return I}trigger(U,I,Y,je=!0){const dt=this._getTrigger(I),Ot=new so(this.id,I,U);let Ht=this._engine.statesByElement.get(U);Ht||(ir(U,qi),ir(U,qi+"-"+I),this._engine.statesByElement.set(U,Ht=new Map));let Gt=Ht.get(I);const $t=new _a(Y,this.id);if(!(Y&&Y.hasOwnProperty("value"))&&Gt&&$t.absorbOptions(Gt.options),Ht.set(I,$t),Gt||(Gt=ao),$t.value!==Jr&&Gt.value===$t.value){if(!function Za(oe,U){const I=Object.keys(oe),Y=Object.keys(U);if(I.length!=Y.length)return!1;for(let je=0;je{Fi(U,fi),Qi(U,oi)})}return}const kn=Ci(this._engine.playersByElement,U,[]);kn.forEach(Nn=>{Nn.namespaceId==this.id&&Nn.triggerName==I&&Nn.queued&&Nn.destroy()});let jn=dt.matchTransition(Gt.value,$t.value,U,$t.params),On=!1;if(!jn){if(!je)return;jn=dt.fallbackTransition,On=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:U,triggerName:I,transition:jn,fromState:Gt,toState:$t,player:Ot,isFallbackTransition:On}),On||(ir(U,Vr),Ot.onStart(()=>{ba(U,Vr)})),Ot.onDone(()=>{let Nn=this.players.indexOf(Ot);Nn>=0&&this.players.splice(Nn,1);const fi=this._engine.playersByElement.get(U);if(fi){let oi=fi.indexOf(Ot);oi>=0&&fi.splice(oi,1)}}),this.players.push(Ot),kn.push(Ot),Ot}deregister(U){this._triggers.delete(U),this._engine.statesByElement.forEach(I=>I.delete(U)),this._elementListeners.forEach((I,Y)=>{this._elementListeners.set(Y,I.filter(je=>je.name!=U))})}clearElementCache(U){this._engine.statesByElement.delete(U),this._elementListeners.delete(U);const I=this._engine.playersByElement.get(U);I&&(I.forEach(Y=>Y.destroy()),this._engine.playersByElement.delete(U))}_signalRemovalForInnerTriggers(U,I){const Y=this._engine.driver.query(U,lt,!0);Y.forEach(je=>{if(je[hr])return;const dt=this._engine.fetchNamespacesByElement(je);dt.size?dt.forEach(Ot=>Ot.triggerLeaveAnimation(je,I,!1,!0)):this.clearElementCache(je)}),this._engine.afterFlushAnimationsDone(()=>Y.forEach(je=>this.clearElementCache(je)))}triggerLeaveAnimation(U,I,Y,je){const dt=this._engine.statesByElement.get(U),Ot=new Map;if(dt){const Ht=[];if(dt.forEach((Gt,$t)=>{if(Ot.set($t,Gt.value),this._triggers.has($t)){const fn=this.trigger(U,$t,Jr,je);fn&&Ht.push(fn)}}),Ht.length)return this._engine.markElementAsRemoved(this.id,U,!0,I,Ot),Y&&li(Ht).onDone(()=>this._engine.processLeaveNode(U)),!0}return!1}prepareLeaveAnimationListeners(U){const I=this._elementListeners.get(U),Y=this._engine.statesByElement.get(U);if(I&&Y){const je=new Set;I.forEach(dt=>{const Ot=dt.name;if(je.has(Ot))return;je.add(Ot);const Gt=this._triggers.get(Ot).fallbackTransition,$t=Y.get(Ot)||ao,fn=new _a(Jr),Tn=new so(this.id,Ot,U);this._engine.totalQueuedPlayers++,this._queue.push({element:U,triggerName:Ot,transition:Gt,fromState:$t,toState:fn,player:Tn,isFallbackTransition:!0})})}}removeNode(U,I){const Y=this._engine;if(U.childElementCount&&this._signalRemovalForInnerTriggers(U,I),this.triggerLeaveAnimation(U,I,!0))return;let je=!1;if(Y.totalAnimations){const dt=Y.players.length?Y.playersByQueriedElement.get(U):[];if(dt&&dt.length)je=!0;else{let Ot=U;for(;Ot=Ot.parentNode;)if(Y.statesByElement.get(Ot)){je=!0;break}}}if(this.prepareLeaveAnimationListeners(U),je)Y.markElementAsRemoved(this.id,U,!1,I);else{const dt=U[hr];(!dt||dt===Io)&&(Y.afterFlush(()=>this.clearElementCache(U)),Y.destroyInnerAnimations(U),Y._onRemovalComplete(U,I))}}insertNode(U,I){ir(U,this._hostClassName)}drainQueuedTransitions(U){const I=[];return this._queue.forEach(Y=>{const je=Y.player;if(je.destroyed)return;const dt=Y.element,Ot=this._elementListeners.get(dt);Ot&&Ot.forEach(Ht=>{if(Ht.name==Y.triggerName){const Gt=lr(dt,Y.triggerName,Y.fromState.value,Y.toState.value);Gt._data=U,Ir(Y.player,Ht.phase,Gt,Ht.callback)}}),je.markedForDestroy?this._engine.afterFlush(()=>{je.destroy()}):I.push(Y)}),this._queue=[],I.sort((Y,je)=>{const dt=Y.transition.ast.depCount,Ot=je.transition.ast.depCount;return 0==dt||0==Ot?dt-Ot:this._engine.driver.containsElement(Y.element,je.element)?1:-1})}destroy(U){this.players.forEach(I=>I.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,U)}elementContainsData(U){let I=!1;return this._elementListeners.has(U)&&(I=!0),I=!!this._queue.find(Y=>Y.element===U)||I,I}}class ls{constructor(U,I,Y){this.bodyNode=U,this.driver=I,this._normalizer=Y,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=(je,dt)=>{}}_onRemovalComplete(U,I){this.onRemovalComplete(U,I)}get queuedPlayers(){const U=[];return this._namespaceList.forEach(I=>{I.players.forEach(Y=>{Y.queued&&U.push(Y)})}),U}createNamespace(U,I){const Y=new oo(U,I,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,I)?this._balanceNamespaceList(Y,I):(this.newHostElements.set(I,Y),this.collectEnterElement(I)),this._namespaceLookup[U]=Y}_balanceNamespaceList(U,I){const Y=this._namespaceList,je=this.namespacesByHostElement;if(Y.length-1>=0){let Ot=!1,Ht=this.driver.getParentElement(I);for(;Ht;){const Gt=je.get(Ht);if(Gt){const $t=Y.indexOf(Gt);Y.splice($t+1,0,U),Ot=!0;break}Ht=this.driver.getParentElement(Ht)}Ot||Y.unshift(U)}else Y.push(U);return je.set(I,U),U}register(U,I){let Y=this._namespaceLookup[U];return Y||(Y=this.createNamespace(U,I)),Y}registerTrigger(U,I,Y){let je=this._namespaceLookup[U];je&&je.register(I,Y)&&this.totalAnimations++}destroy(U,I){if(!U)return;const Y=this._fetchNamespace(U);this.afterFlush(()=>{this.namespacesByHostElement.delete(Y.hostElement),delete this._namespaceLookup[U];const je=this._namespaceList.indexOf(Y);je>=0&&this._namespaceList.splice(je,1)}),this.afterFlushAnimationsDone(()=>Y.destroy(I))}_fetchNamespace(U){return this._namespaceLookup[U]}fetchNamespacesByElement(U){const I=new Set,Y=this.statesByElement.get(U);if(Y)for(let je of Y.values())if(je.namespaceId){const dt=this._fetchNamespace(je.namespaceId);dt&&I.add(dt)}return I}trigger(U,I,Y,je){if(Sr(I)){const dt=this._fetchNamespace(U);if(dt)return dt.trigger(I,Y,je),!0}return!1}insertNode(U,I,Y,je){if(!Sr(I))return;const dt=I[hr];if(dt&&dt.setForRemoval){dt.setForRemoval=!1,dt.setForMove=!0;const Ot=this.collectedLeaveElements.indexOf(I);Ot>=0&&this.collectedLeaveElements.splice(Ot,1)}if(U){const Ot=this._fetchNamespace(U);Ot&&Ot.insertNode(I,Y)}je&&this.collectEnterElement(I)}collectEnterElement(U){this.collectedEnterElements.push(U)}markElementAsDisabled(U,I){I?this.disabledNodes.has(U)||(this.disabledNodes.add(U),ir(U,Po)):this.disabledNodes.has(U)&&(this.disabledNodes.delete(U),ba(U,Po))}removeNode(U,I,Y,je){if(Sr(I)){const dt=U?this._fetchNamespace(U):null;if(dt?dt.removeNode(I,je):this.markElementAsRemoved(U,I,!1,je),Y){const Ot=this.namespacesByHostElement.get(I);Ot&&Ot.id!==U&&Ot.removeNode(I,je)}}else this._onRemovalComplete(I,je)}markElementAsRemoved(U,I,Y,je,dt){this.collectedLeaveElements.push(I),I[hr]={namespaceId:U,setForRemoval:je,hasAnimation:Y,removedBeforeQueried:!1,previousTriggersValues:dt}}listen(U,I,Y,je,dt){return Sr(I)?this._fetchNamespace(U).listen(I,Y,je,dt):()=>{}}_buildInstruction(U,I,Y,je,dt){return U.transition.build(this.driver,U.element,U.fromState.value,U.toState.value,Y,je,U.fromState.options,U.toState.options,I,dt)}destroyInnerAnimations(U){let I=this.driver.query(U,lt,!0);I.forEach(Y=>this.destroyActiveAnimationsForElement(Y)),0!=this.playersByQueriedElement.size&&(I=this.driver.query(U,$e,!0),I.forEach(Y=>this.finishActiveQueriedAnimationOnElement(Y)))}destroyActiveAnimationsForElement(U){const I=this.playersByElement.get(U);I&&I.forEach(Y=>{Y.queued?Y.markedForDestroy=!0:Y.destroy()})}finishActiveQueriedAnimationOnElement(U){const I=this.playersByQueriedElement.get(U);I&&I.forEach(Y=>Y.finish())}whenRenderingDone(){return new Promise(U=>{if(this.players.length)return li(this.players).onDone(()=>U());U()})}processLeaveNode(U){var I;const Y=U[hr];if(Y&&Y.setForRemoval){if(U[hr]=Io,Y.namespaceId){this.destroyInnerAnimations(U);const je=this._fetchNamespace(Y.namespaceId);je&&je.clearElementCache(U)}this._onRemovalComplete(U,Y.setForRemoval)}null!==(I=U.classList)&&void 0!==I&&I.contains(Po)&&this.markElementAsDisabled(U,!1),this.driver.query(U,".ng-animate-disabled",!0).forEach(je=>{this.markElementAsDisabled(je,!1)})}flush(U=-1){let I=[];if(this.newHostElements.size&&(this.newHostElements.forEach((Y,je)=>this._balanceNamespaceList(Y,je)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let Y=0;YY()),this._flushFns=[],this._whenQuietFns.length){const Y=this._whenQuietFns;this._whenQuietFns=[],I.length?li(I).onDone(()=>{Y.forEach(je=>je())}):Y.forEach(je=>je())}}reportError(U){throw function zi(oe){return new A.vHH(3402,!1)}()}_flushAnimations(U,I){const Y=new Na,je=[],dt=new Map,Ot=[],Ht=new Map,Gt=new Map,$t=new Map,fn=new Set;this.disabledNodes.forEach(pn=>{fn.add(pn);const Sn=this.driver.query(pn,".ng-animate-queued",!0);for(let xn=0;xn{const xn=Oi+Nn++;On.set(Sn,xn),pn.forEach(Wn=>ir(Wn,xn))});const fi=[],oi=new Set,ki=new Set;for(let pn=0;pnoi.add(Wn)):ki.add(Sn))}const Zi=new Map,Gi=Oo(kn,Array.from(oi));Gi.forEach((pn,Sn)=>{const xn=xi+Nn++;Zi.set(Sn,xn),pn.forEach(Wn=>ir(Wn,xn))}),U.push(()=>{jn.forEach((pn,Sn)=>{const xn=On.get(Sn);pn.forEach(Wn=>ba(Wn,xn))}),Gi.forEach((pn,Sn)=>{const xn=Zi.get(Sn);pn.forEach(Wn=>ba(Wn,xn))}),fi.forEach(pn=>{this.processLeaveNode(pn)})});const vo=[],da=[];for(let pn=this._namespaceList.length-1;pn>=0;pn--)this._namespaceList[pn].drainQueuedTransitions(I).forEach(xn=>{const Wn=xn.player,yi=xn.element;if(vo.push(Wn),this.collectedEnterElements.length){const ar=yi[hr];if(ar&&ar.setForMove){if(ar.previousTriggersValues&&ar.previousTriggersValues.has(xn.triggerName)){const Zr=ar.previousTriggersValues.get(xn.triggerName),Cr=this.statesByElement.get(xn.element);if(Cr&&Cr.has(xn.triggerName)){const Wo=Cr.get(xn.triggerName);Wo.value=Zr,Cr.set(xn.triggerName,Wo)}}return void Wn.destroy()}}const Xr=!Tn||!this.driver.containsElement(Tn,yi),Dr=Zi.get(yi),Da=On.get(yi),wi=this._buildInstruction(xn,Y,Da,Dr,Xr);if(wi.errors&&wi.errors.length)return void da.push(wi);if(Xr)return Wn.onStart(()=>Fi(yi,wi.fromStyles)),Wn.onDestroy(()=>Qi(yi,wi.toStyles)),void je.push(Wn);if(xn.isFallbackTransition)return Wn.onStart(()=>Fi(yi,wi.fromStyles)),Wn.onDestroy(()=>Qi(yi,wi.toStyles)),void je.push(Wn);const ac=[];wi.timelines.forEach(ar=>{ar.stretchStartingKeyframe=!0,this.disabledNodes.has(ar.element)||ac.push(ar)}),wi.timelines=ac,Y.append(yi,wi.timelines),Ot.push({instruction:wi,player:Wn,element:yi}),wi.queriedElements.forEach(ar=>Ci(Ht,ar,[]).push(Wn)),wi.preStyleProps.forEach((ar,Zr)=>{if(ar.size){let Cr=Gt.get(Zr);Cr||Gt.set(Zr,Cr=new Set),ar.forEach((Wo,Es)=>Cr.add(Es))}}),wi.postStyleProps.forEach((ar,Zr)=>{let Cr=$t.get(Zr);Cr||$t.set(Zr,Cr=new Set),ar.forEach((Wo,Es)=>Cr.add(Es))})});if(da.length){const pn=[];da.forEach(Sn=>{pn.push(function si(oe,U){return new A.vHH(3505,!1)}())}),vo.forEach(Sn=>Sn.destroy()),this.reportError(pn)}const Ar=new Map,Br=new Map;Ot.forEach(pn=>{const Sn=pn.element;Y.has(Sn)&&(Br.set(Sn,Sn),this._beforeAnimationBuild(pn.player.namespaceId,pn.instruction,Ar))}),je.forEach(pn=>{const Sn=pn.element;this._getPreviousPlayers(Sn,!1,pn.namespaceId,pn.triggerName,null).forEach(Wn=>{Ci(Ar,Sn,[]).push(Wn),Wn.destroy()})});const vs=fi.filter(pn=>co(pn,Gt,$t)),jr=new Map;ds(jr,this.driver,ki,$t,ke.l3).forEach(pn=>{co(pn,Gt,$t)&&vs.push(pn)});const Ma=new Map;jn.forEach((pn,Sn)=>{ds(Ma,this.driver,new Set(pn),Gt,ke.k1)}),vs.forEach(pn=>{var Sn,xn;const Wn=jr.get(pn),yi=Ma.get(pn);jr.set(pn,new Map([...Array.from(null!==(Sn=Wn?.entries())&&void 0!==Sn?Sn:[]),...Array.from(null!==(xn=yi?.entries())&&void 0!==xn?xn:[])]))});const To=[],xa=[],rc={};Ot.forEach(pn=>{const{element:Sn,player:xn,instruction:Wn}=pn;if(Y.has(Sn)){if(fn.has(Sn))return xn.onDestroy(()=>Qi(Sn,Wn.toStyles)),xn.disabled=!0,xn.overrideTotalTime(Wn.totalTime),void je.push(xn);let yi=rc;if(Br.size>1){let Dr=Sn;const Da=[];for(;Dr=Dr.parentNode;){const wi=Br.get(Dr);if(wi){yi=wi;break}Da.push(Dr)}Da.forEach(wi=>Br.set(wi,yi))}const Xr=this._buildAnimation(xn.namespaceId,Wn,Ar,dt,Ma,jr);if(xn.setRealPlayer(Xr),yi===rc)To.push(xn);else{const Dr=this.playersByElement.get(yi);Dr&&Dr.length&&(xn.parentPlayer=li(Dr)),je.push(xn)}}else Fi(Sn,Wn.fromStyles),xn.onDestroy(()=>Qi(Sn,Wn.toStyles)),xa.push(xn),fn.has(Sn)&&je.push(xn)}),xa.forEach(pn=>{const Sn=dt.get(pn.element);if(Sn&&Sn.length){const xn=li(Sn);pn.setRealPlayer(xn)}}),je.forEach(pn=>{pn.parentPlayer?pn.syncPlayerEvents(pn.parentPlayer):pn.destroy()});for(let pn=0;pn!Xr.destroyed);yi.length?pr(this,Sn,yi):this.processLeaveNode(Sn)}return fi.length=0,To.forEach(pn=>{this.players.push(pn),pn.onDone(()=>{pn.destroy();const Sn=this.players.indexOf(pn);this.players.splice(Sn,1)}),pn.play()}),To}elementContainsData(U,I){let Y=!1;const je=I[hr];return je&&je.setForRemoval&&(Y=!0),this.playersByElement.has(I)&&(Y=!0),this.playersByQueriedElement.has(I)&&(Y=!0),this.statesByElement.has(I)&&(Y=!0),this._fetchNamespace(U).elementContainsData(I)||Y}afterFlush(U){this._flushFns.push(U)}afterFlushAnimationsDone(U){this._whenQuietFns.push(U)}_getPreviousPlayers(U,I,Y,je,dt){let Ot=[];if(I){const Ht=this.playersByQueriedElement.get(U);Ht&&(Ot=Ht)}else{const Ht=this.playersByElement.get(U);if(Ht){const Gt=!dt||dt==Jr;Ht.forEach($t=>{$t.queued||!Gt&&$t.triggerName!=je||Ot.push($t)})}}return(Y||je)&&(Ot=Ot.filter(Ht=>!(Y&&Y!=Ht.namespaceId||je&&je!=Ht.triggerName))),Ot}_beforeAnimationBuild(U,I,Y){const dt=I.element,Ot=I.isRemovalTransition?void 0:U,Ht=I.isRemovalTransition?void 0:I.triggerName;for(const Gt of I.timelines){const $t=Gt.element,fn=$t!==dt,Tn=Ci(Y,$t,[]);this._getPreviousPlayers($t,fn,Ot,Ht,I.toState).forEach(jn=>{const On=jn.getRealPlayer();On.beforeDestroy&&On.beforeDestroy(),jn.destroy(),Tn.push(jn)})}Fi(dt,I.fromStyles)}_buildAnimation(U,I,Y,je,dt,Ot){const Ht=I.triggerName,Gt=I.element,$t=[],fn=new Set,Tn=new Set,kn=I.timelines.map(On=>{const Nn=On.element;fn.add(Nn);const fi=Nn[hr];if(fi&&fi.removedBeforeQueried)return new ke.ZN(On.duration,On.delay);const oi=Nn!==Gt,ki=function us(oe){const U=[];return Qr(oe,U),U}((Y.get(Nn)||ss).map(Ar=>Ar.getRealPlayer())).filter(Ar=>!!Ar.element&&Ar.element===Nn),Zi=dt.get(Nn),Gi=Ot.get(Nn),vo=or(0,this._normalizer,0,On.keyframes,Zi,Gi),da=this._buildPlayer(On,vo,ki);if(On.subTimeline&&je&&Tn.add(Nn),oi){const Ar=new so(U,Ht,Nn);Ar.setRealPlayer(da),$t.push(Ar)}return da});$t.forEach(On=>{Ci(this.playersByQueriedElement,On.element,[]).push(On),On.onDone(()=>function Aa(oe,U,I){let Y=oe.get(U);if(Y){if(Y.length){const je=Y.indexOf(I);Y.splice(je,1)}0==Y.length&&oe.delete(U)}return Y}(this.playersByQueriedElement,On.element,On))}),fn.forEach(On=>ir(On,Vt));const jn=li(kn);return jn.onDestroy(()=>{fn.forEach(On=>ba(On,Vt)),Qi(Gt,I.toStyles)}),Tn.forEach(On=>{Ci(je,On,[]).push(jn)}),jn}_buildPlayer(U,I,Y){return I.length>0?this.driver.animate(U.element,I,U.duration,U.delay,U.easing,Y):new ke.ZN(U.duration,U.delay)}}class so{constructor(U,I,Y){this.namespaceId=U,this.triggerName=I,this.element=Y,this._player=new ke.ZN,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(U){this._containsRealPlayer||(this._player=U,this._queuedCallbacks.forEach((I,Y)=>{I.forEach(je=>Ir(U,Y,void 0,je))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(U.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(U){this.totalTime=U}syncPlayerEvents(U){const I=this._player;I.triggerCallback&&U.onStart(()=>I.triggerCallback("start")),U.onDone(()=>this.finish()),U.onDestroy(()=>this.destroy())}_queueEvent(U,I){Ci(this._queuedCallbacks,U,[]).push(I)}onDone(U){this.queued&&this._queueEvent("done",U),this._player.onDone(U)}onStart(U){this.queued&&this._queueEvent("start",U),this._player.onStart(U)}onDestroy(U){this.queued&&this._queueEvent("destroy",U),this._player.onDestroy(U)}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(U){this.queued||this._player.setPosition(U)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(U){const I=this._player;I.triggerCallback&&I.triggerCallback(U)}}function Sr(oe){return oe&&1===oe.nodeType}function Ca(oe,U){const I=oe.style.display;return oe.style.display=U??"none",I}function ds(oe,U,I,Y,je){const dt=[];I.forEach(Gt=>dt.push(Ca(Gt)));const Ot=[];Y.forEach((Gt,$t)=>{const fn=new Map;Gt.forEach(Tn=>{const kn=U.computeStyle($t,Tn,je);fn.set(Tn,kn),(!kn||0==kn.length)&&($t[hr]=nl,Ot.push($t))}),oe.set($t,fn)});let Ht=0;return I.forEach(Gt=>Ca(Gt,dt[Ht++])),Ot}function Oo(oe,U){const I=new Map;if(oe.forEach(Ht=>I.set(Ht,[])),0==U.length)return I;const je=new Set(U),dt=new Map;function Ot(Ht){if(!Ht)return 1;let Gt=dt.get(Ht);if(Gt)return Gt;const $t=Ht.parentNode;return Gt=I.has($t)?$t:je.has($t)?1:Ot($t),dt.set(Ht,Gt),Gt}return U.forEach(Ht=>{const Gt=Ot(Ht);1!==Gt&&I.get(Gt).push(Ht)}),I}function ir(oe,U){var I;null===(I=oe.classList)||void 0===I||I.add(U)}function ba(oe,U){var I;null===(I=oe.classList)||void 0===I||I.remove(U)}function pr(oe,U,I){li(I).onDone(()=>oe.processLeaveNode(U))}function Qr(oe,U){for(let I=0;Ije.add(dt)):U.set(oe,Y),I.delete(oe),!0}class ra{constructor(U,I,Y){this.bodyNode=U,this._driver=I,this._normalizer=Y,this._triggerCache={},this.onRemovalComplete=(je,dt)=>{},this._transitionEngine=new ls(U,I,Y),this._timelineEngine=new tl(U,I,Y),this._transitionEngine.onRemovalComplete=(je,dt)=>this.onRemovalComplete(je,dt)}registerTrigger(U,I,Y,je,dt){const Ot=U+"-"+je;let Ht=this._triggerCache[Ot];if(!Ht){const Gt=[],fn=Ie(this._driver,dt,Gt,[]);if(Gt.length)throw function Pt(oe,U){return new A.vHH(3404,!1)}();Ht=function to(oe,U,I){return new ia(oe,U,I)}(je,fn,this._normalizer),this._triggerCache[Ot]=Ht}this._transitionEngine.registerTrigger(I,je,Ht)}register(U,I){this._transitionEngine.register(U,I)}destroy(U,I){this._transitionEngine.destroy(U,I)}onInsert(U,I,Y,je){this._transitionEngine.insertNode(U,I,Y,je)}onRemove(U,I,Y,je){this._transitionEngine.removeNode(U,I,je||!1,Y)}disableAnimations(U,I){this._transitionEngine.markElementAsDisabled(U,I)}process(U,I,Y,je){if("@"==Y.charAt(0)){const[dt,Ot]=Er(Y);this._timelineEngine.command(dt,I,Ot,je)}else this._transitionEngine.trigger(U,I,Y,je)}listen(U,I,Y,je,dt){if("@"==Y.charAt(0)){const[Ot,Ht]=Er(Y);return this._timelineEngine.listen(Ot,I,Ht,dt)}return this._transitionEngine.listen(U,I,Y,je,dt)}flush(U=-1){this._transitionEngine.flush(U)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let il=(()=>{class oe{constructor(I,Y,je){this._element=I,this._startStyles=Y,this._endStyles=je,this._state=0;let dt=oe.initialStylesByElement.get(I);dt||oe.initialStylesByElement.set(I,dt=new Map),this._initialStyles=dt}start(){this._state<1&&(this._startStyles&&Qi(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Qi(this._element,this._initialStyles),this._endStyles&&(Qi(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(oe.initialStylesByElement.delete(this._element),this._startStyles&&(Fi(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Fi(this._element,this._endStyles),this._endStyles=null),Qi(this._element,this._initialStyles),this._state=3)}}return oe.initialStylesByElement=new WeakMap,oe})();function uo(oe){let U=null;return oe.forEach((I,Y)=>{(function hs(oe){return"display"===oe||"position"===oe})(Y)&&(U=U||new Map,U.set(Y,I))}),U}class Ho{constructor(U,I,Y,je){this.element=U,this.keyframes=I,this.options=Y,this._specialStyles=je,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=Y.duration,this._delay=Y.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(U=>U()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const U=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,U,this.options),this._finalKeyframe=U.length?U[U.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(U){const I=[];return U.forEach(Y=>{I.push(Object.fromEntries(Y))}),I}_triggerWebAnimation(U,I,Y){return U.animate(this._convertKeyframesToObject(I),Y)}onStart(U){this._originalOnStartFns.push(U),this._onStartFns.push(U)}onDone(U){this._originalOnDoneFns.push(U),this._onDoneFns.push(U)}onDestroy(U){this._onDestroyFns.push(U)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(U=>U()),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,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_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(U=>U()),this._onDestroyFns=[])}setPosition(U){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=U*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const U=new Map;this.hasStarted()&&this._finalKeyframe.forEach((Y,je)=>{"offset"!==je&&U.set(je,this._finished?Y:vn(this.element,je))}),this.currentSnapshot=U}triggerCallback(U){const I="start"===U?this._onStartFns:this._onDoneFns;I.forEach(Y=>Y()),I.length=0}}class ps{validateStyleProperty(U){return!0}validateAnimatableStyleProperty(U){return!0}matchesElement(U,I){return!1}containsElement(U,I){return kt(U,I)}getParentElement(U){return Nr(U)}query(U,I,Y){return Zt(U,I,Y)}computeStyle(U,I,Y){return window.getComputedStyle(U)[I]}animate(U,I,Y,je,dt,Ot=[]){const Gt={duration:Y,delay:je,fill:0==je?"both":"forwards"};dt&&(Gt.easing=dt);const $t=new Map,fn=Ot.filter(jn=>jn instanceof Ho);(function Bt(oe,U){return 0===oe||0===U})(Y,je)&&fn.forEach(jn=>{jn.currentSnapshot.forEach((On,Nn)=>$t.set(Nn,On))});let Tn=function bi(oe){return oe.length?oe[0]instanceof Map?oe:oe.map(U=>ri(U)):[]}(I).map(jn=>Ji(jn));Tn=function Qt(oe,U,I){if(I.size&&U.length){let Y=U[0],je=[];if(I.forEach((dt,Ot)=>{Y.has(Ot)||je.push(Ot),Y.set(Ot,dt)}),je.length)for(let dt=1;dtOt.set(Ht,vn(oe,Ht)))}}return U}(U,Tn,$t);const kn=function aa(oe,U){let I=null,Y=null;return Array.isArray(U)&&U.length?(I=uo(U[0]),U.length>1&&(Y=uo(U[U.length-1]))):U instanceof Map&&(I=uo(U)),I||Y?new il(oe,I,Y):null}(U,Tn);return new Ho(U,Tn,Gt,kn)}}let fs=(()=>{class oe extends ke._j{constructor(I,Y){super(),this._nextAnimationId=0,this._renderer=I.createRenderer(Y.body,{id:"0",encapsulation:A.ifc.None,styles:[],data:{animation:[]}})}build(I){const Y=this._nextAnimationId.toString();this._nextAnimationId++;const je=Array.isArray(I)?(0,ke.vP)(I):I;return Lo(this._renderer,null,Y,"register",[je]),new Di(Y,this._renderer)}}return oe.\u0275fac=function(I){return new(I||oe)(A.LFG(A.FYo),A.LFG(O.K0))},oe.\u0275prov=A.Yz7({token:oe,factory:oe.\u0275fac}),oe})();class Di extends ke.LC{constructor(U,I){super(),this._id=U,this._renderer=I}create(U,I){return new Ga(this._id,U,I||{},this._renderer)}}class Ga{constructor(U,I,Y,je){this.id=U,this.element=I,this._renderer=je,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",Y)}_listen(U,I){return this._renderer.listen(this.element,`@@${this.id}:${U}`,I)}_command(U,...I){return Lo(this._renderer,this.element,this.id,U,I)}onDone(U){this._listen("done",U)}onStart(U){this._listen("start",U)}onDestroy(U){this._listen("destroy",U)}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"),this._started=!1}setPosition(U){this._command("setPosition",U)}getPosition(){var U,I;return null!==(U=null===(I=this._renderer.engine.players[+this.id])||void 0===I?void 0:I.getPosition())&&void 0!==U?U:0}}function Lo(oe,U,I,Y,je){return oe.setProperty(U,`@@${I}:${Y}`,je)}const va="@.disabled";let Ea=(()=>{class oe{constructor(I,Y,je){this.delegate=I,this.engine=Y,this._zone=je,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),Y.onRemovalComplete=(dt,Ot)=>{const Ht=Ot?.parentNode(dt);Ht&&Ot.removeChild(Ht,dt)}}createRenderer(I,Y){const dt=this.delegate.createRenderer(I,Y);if(!(I&&Y&&Y.data&&Y.data.animation)){let fn=this._rendererCache.get(dt);return fn||(fn=new ms("",dt,this.engine),this._rendererCache.set(dt,fn)),fn}const Ot=Y.id,Ht=Y.id+"-"+this._currentId;this._currentId++,this.engine.register(Ht,I);const Gt=fn=>{Array.isArray(fn)?fn.forEach(Gt):this.engine.registerTrigger(Ot,Ht,I,fn.name,fn)};return Y.data.animation.forEach(Gt),new Bo(this,Ht,dt,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(I,Y,je){I>=0&&IY(je)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(dt=>{const[Ot,Ht]=dt;Ot(Ht)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([Y,je]))}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 oe.\u0275fac=function(I){return new(I||oe)(A.LFG(A.FYo),A.LFG(ra),A.LFG(A.R0b))},oe.\u0275prov=A.Yz7({token:oe,factory:oe.\u0275fac}),oe})();class ms{constructor(U,I,Y){this.namespaceId=U,this.delegate=I,this.engine=Y,this.destroyNode=this.delegate.destroyNode?je=>I.destroyNode(je):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(U,I){return this.delegate.createElement(U,I)}createComment(U){return this.delegate.createComment(U)}createText(U){return this.delegate.createText(U)}appendChild(U,I){this.delegate.appendChild(U,I),this.engine.onInsert(this.namespaceId,I,U,!1)}insertBefore(U,I,Y,je=!0){this.delegate.insertBefore(U,I,Y),this.engine.onInsert(this.namespaceId,I,U,je)}removeChild(U,I,Y){this.engine.onRemove(this.namespaceId,I,this.delegate,Y)}selectRootElement(U,I){return this.delegate.selectRootElement(U,I)}parentNode(U){return this.delegate.parentNode(U)}nextSibling(U){return this.delegate.nextSibling(U)}setAttribute(U,I,Y,je){this.delegate.setAttribute(U,I,Y,je)}removeAttribute(U,I,Y){this.delegate.removeAttribute(U,I,Y)}addClass(U,I){this.delegate.addClass(U,I)}removeClass(U,I){this.delegate.removeClass(U,I)}setStyle(U,I,Y,je){this.delegate.setStyle(U,I,Y,je)}removeStyle(U,I,Y){this.delegate.removeStyle(U,I,Y)}setProperty(U,I,Y){"@"==I.charAt(0)&&I==va?this.disableAnimations(U,!!Y):this.delegate.setProperty(U,I,Y)}setValue(U,I){this.delegate.setValue(U,I)}listen(U,I,Y){return this.delegate.listen(U,I,Y)}disableAnimations(U,I){this.engine.disableAnimations(U,I)}}class Bo extends ms{constructor(U,I,Y,je){super(I,Y,je),this.factory=U,this.namespaceId=I}setProperty(U,I,Y){"@"==I.charAt(0)?"."==I.charAt(1)&&I==va?this.disableAnimations(U,Y=void 0===Y||!!Y):this.engine.process(this.namespaceId,U,I.slice(1),Y):this.delegate.setProperty(U,I,Y)}listen(U,I,Y){if("@"==I.charAt(0)){const je=function gs(oe){switch(oe){case"body":return document.body;case"document":return document;case"window":return window;default:return oe}}(U);let dt=I.slice(1),Ot="";return"@"!=dt.charAt(0)&&([dt,Ot]=function rl(oe){const U=oe.indexOf(".");return[oe.substring(0,U),oe.slice(U+1)]}(dt)),this.engine.listen(this.namespaceId,je,dt,Ot,Ht=>{this.factory.scheduleListenerCallback(Ht._data||-1,Y,Ht)})}return this.delegate.listen(U,I,Y)}}const Xi=[{provide:ke._j,useClass:fs},{provide:eo,useFactory:function ho(){return new wr}},{provide:ra,useClass:(()=>{class oe extends ra{constructor(I,Y,je,dt){super(I.body,Y,je)}ngOnDestroy(){this.flush()}}return oe.\u0275fac=function(I){return new(I||oe)(A.LFG(O.K0),A.LFG(Bn),A.LFG(eo),A.LFG(A.z2F))},oe.\u0275prov=A.Yz7({token:oe,factory:oe.\u0275fac}),oe})()},{provide:A.FYo,useFactory:function Ta(oe,U,I){return new Ea(oe,U,I)},deps:[e.se,ra,A.R0b]}],oa=[{provide:Bn,useFactory:()=>new ps},{provide:A.QbO,useValue:"BrowserAnimations"},...Xi],po=[{provide:Bn,useClass:In},{provide:A.QbO,useValue:"NoopAnimations"},...Xi];let fo=(()=>{class oe{static withConfig(I){return{ngModule:oe,providers:I.disableAnimations?po:oa}}}return oe.\u0275fac=function(I){return new(I||oe)},oe.\u0275mod=A.oAB({type:oe}),oe.\u0275inj=A.cJS({providers:oa,imports:[e.b2]}),oe})(),ai=(()=>{class oe{}return oe.\u0275fac=function(I){return new(I||oe)},oe.\u0275mod=A.oAB({type:oe}),oe.\u0275inj=A.cJS({providers:[b.e8],imports:[O.ez]}),oe})();var Nl=p(81847),kl=p(4732),Vl=p(94856),Fl=p(55857),al=p(37240),jl=p(15592),ol=p(13600),za=p(37380),Zl=p(34904),sl=p(85243),Ri=p(68056),Ya=p(24219),qa=p(25828),Gl=p(10369),ll=p(14336),fr=p(25309),ae=p(86353),de=p(11042),G=p(57788),Me=p(80774),Ge=p(25610),mt=p(61639);let Ut=(()=>{class oe{constructor(){this.handlers=new Map,this.cachedComponents=new Set([Nl.y.id,kl.G.id,Vl.c.id,Ri.z.id,Ya.z.id,Gl.w.id,de.T.id,ol.y.id,jl.u.id,al.q.id,mt.C.id,Fl.W.id,ll.Z.id,za.o.id,Zl.f.id,Ge._.id,sl.j.id,qa.t.id,G.g.id,Me.F.id,fr.Y.id,ae.P.id]),this.cacheTimeMs=3e5,this.isUserNavigatingBack=!1}shouldReuseRoute(I,Y){return I.routeConfig===Y.routeConfig}retrieve(I){const Y=this.getKey(I);return this.handlers.has(Y)?this.handlers.get(Y).routeHandle:null}shouldAttach(I){if(!this.isUserNavigatingBack||!I.component)return!1;const Y=this.handlers.get(this.getKey(I));return Y&&this.getCurrentTimestamp()-Y.saveTimeStamp0;)document.getElementsByTagName("mat-tooltip-component")[0].remove();this.handlers.set(this.getKey(I),{routeHandle:Y,saveTimeStamp:this.getCurrentTimestamp()})}setLastNavigationType(I){this.isUserNavigatingBack="back"===I}getComponentId(I){return I.id}getKey(I){return I.pathFromRoot.map(Y=>Y.url.map(je=>je.toString())).join("/")}getCurrentTimestamp(){return+Date.now()}}return oe.\u0275fac=function(I){return new(I||oe)},oe.\u0275prov=A.Yz7({token:oe,factory:oe.\u0275fac}),oe})();const qt=new A.OlP("perun-api-service");let un=(()=>{class oe{constructor(I,Y,je,dt,Ot){this.http=I,this.storeService=Y,this.authzSevice=je,this.titleService=dt,this.utilsService=Ot}initializeColors(I,Y){return new Promise(je=>{Y.forEach(dt=>{const Ot=this.storeService.getProperty("theme")[dt.configValue];document.documentElement.style.setProperty(dt.cssVariable,Ot)}),I.forEach(dt=>{const Ot=this.storeService.getProperty("theme")[dt.configValue];document.documentElement.style.setProperty(dt.cssVariable,Ot),this.setEntityTheme(dt.entity,Ot)}),je()})}setEntityTheme(I,Y){const je=function En(oe){return[hn(tinycolor(oe).lighten(52),"50"),hn(tinycolor(oe).lighten(37),"100"),hn(tinycolor(oe).lighten(26),"200"),hn(tinycolor(oe).lighten(12),"300"),hn(tinycolor(oe).lighten(6),"400"),hn(tinycolor(oe),"500"),hn(tinycolor(oe).darken(6),"600"),hn(tinycolor(oe).darken(12),"700"),hn(tinycolor(oe).darken(18),"800"),hn(tinycolor(oe).darken(24),"900"),hn(tinycolor(oe).lighten(50).saturate(30),"A100"),hn(tinycolor(oe).lighten(30).saturate(30),"A200"),hn(tinycolor(oe).lighten(10).saturate(15),"A400"),hn(tinycolor(oe).lighten(5).saturate(5),"A700")]}(Y);for(const dt of je){const Gt=`--${I}-theme-primary-contrast-${dt.name}`,$t=dt.darkContrast?"30,30,30":"255,255,255";document.documentElement.style.setProperty(`--${I}-theme-primary-${dt.name}`,`${dt.red},${dt.green},${dt.blue}`),document.documentElement.style.setProperty(Gt,$t)}}loadAppDefaultConfig(){return new Promise(I=>{this.http.get("/assets/config/defaultConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(Y=>{this.storeService.setDefaultConfig(Y),I()})})}loadAppInstanceConfig(){return new Promise(I=>{this.http.get("/assets/config/instanceConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(Y=>{this.storeService.setInstanceConfig(Y);const je=document.location.hostname;Y?.brandings?.[je]&&this.storeService.setBanding(je),I()},()=>{I()})})}getNoCacheHeaders(){return new Et.WM({CacheControl:"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"})}setInstanceFavicon(){return new Promise(I=>{const Y=document.querySelector("link[rel*='icon']")||document.createElement("link");Y.type="image/x-icon",Y.rel="shortcut icon",Y.href=this.storeService.getProperty("instance_favicon")?"./assets/config/instanceFavicon.ico":"./assets/img/perun.ico",document.getElementsByTagName("head")[0].appendChild(Y),I()})}setApiUrl(){return new Promise(I=>{let Y=this.storeService.getProperty("api_url");("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal")||this.storeService.getProperty("auto_service_access_redirect"))&&(Y=Y.replace("oauth","ba")),this.authzSevice.configuration.basePath=Y,this.titleService.setTitle(this.storeService.getProperty("document_title").en),I()})}loadAppsConfig(){return new Promise((I,Y)=>{this.utilsService.getAppsConfig().subscribe(je=>{this.storeService.setAppsConfig(je),I()},je=>Y(je))})}}return oe.\u0275fac=function(I){return new(I||oe)(A.LFG(Et.eN),A.LFG(b.d6),A.LFG(m.Ct),A.LFG(e.Dx),A.LFG(m.FW))},oe.\u0275prov=A.Yz7({token:oe,factory:oe.\u0275fac,providedIn:"root"}),oe})();function hn(oe,U){const I=tinycolor(oe),Y=I.toRgb();return{name:U,hex:I.toHexString(),darkContrast:I.isLight(),red:Y.r,green:Y.g,blue:Y.b}}let Dn=(()=>{class oe{constructor(I,Y){this.data=I,this.location=Y}redirect(){this.location.go("/"),location.reload()}}return oe.\u0275fac=function(I){return new(I||oe)(A.Y36(L.WI),A.Y36(O.Ye))},oe.\u0275cmp=A.Xpm({type:oe,selectors:[["perun-web-apps-prevent-proxy-overload-dialog"]],decls:10,vars:9,consts:[[3,"click"]],template:function(I,Y){1&I&&(A.TgZ(0,"h2"),A._uU(1),A.ALo(2,"translate"),A.qZA(),A.TgZ(3,"p"),A._uU(4),A.ALo(5,"translate"),A.qZA(),A.TgZ(6,"div")(7,"button",0),A.NdJ("click",function(){return Y.redirect()}),A._uU(8),A.ALo(9,"translate"),A.qZA()()),2&I&&(A.xp6(1),A.hij(" ",A.lcZ(2,3,Y.data.title),"\n"),A.xp6(3),A.hij(" ",A.lcZ(5,5,Y.data.message),"\n"),A.xp6(4),A.hij(" ",A.lcZ(9,7,Y.data.action)," "))},dependencies:[w.X$]}),oe})(),pi=(()=>{class oe{constructor(I,Y){this.dialogRef=I,this.data=Y}refresh(){location.reload()}}return oe.\u0275fac=function(I){return new(I||oe)(A.Y36(L.so),A.Y36(L.WI))},oe.\u0275cmp=A.Xpm({type:oe,selectors:[["perun-web-apps-server-down-dialog"]],decls:10,vars:9,consts:[[3,"click"]],template:function(I,Y){1&I&&(A.TgZ(0,"h2"),A._uU(1),A.ALo(2,"translate"),A.qZA(),A.TgZ(3,"p"),A._uU(4),A.ALo(5,"translate"),A.qZA(),A.TgZ(6,"div")(7,"button",0),A.NdJ("click",function(){return Y.refresh()}),A._uU(8),A.ALo(9,"translate"),A.qZA()()),2&I&&(A.xp6(1),A.hij(" ",A.lcZ(2,3,Y.data.title),"\n"),A.xp6(3),A.hij(" ",A.lcZ(5,5,Y.data.message),"\n"),A.xp6(4),A.hij(" ",A.lcZ(9,7,Y.data.action)," "))},dependencies:[w.X$]}),oe})();var Li=p(83905);let rr=(()=>{class oe{constructor(I,Y,je,dt,Ot,Ht,Gt){this.initAuthService=I,this.appConfigService=Y,this.authzSevice=je,this.dialog=dt,this.location=Ot,this.guiAuthResolver=Ht,this.mfaHandlerService=Gt,this.entityColorConfigs=[{entity:"vo",configValue:"vo_color",cssVariable:"--vo-color"},{entity:"group",configValue:"group_color",cssVariable:"--group-color"},{entity:"user",configValue:"user_color",cssVariable:"--user-color"},{entity:"member",configValue:"member_color",cssVariable:"--member-color"},{entity:"facility",configValue:"facility_color",cssVariable:"--facility-color"},{entity:"resource",configValue:"resource_color",cssVariable:"--resource-color"},{entity:"admin",configValue:"admin_color",cssVariable:"--admin-color"},{entity:"service",configValue:"service_color",cssVariable:"--service-color"}],this.colorConfigs=[{configValue:"sidemenu_hover_color",cssVariable:"--side-root-item-hover"},{configValue:"sidemenu_active_color",cssVariable:"--side-root-item-active"},{configValue:"sidemenu_submenu_active_color",cssVariable:"--side-link-active"},{configValue:"sidemenu_submenu_hover_color",cssVariable:"--side-link-hover"},{configValue:"sidemenu_hover_text_color",cssVariable:"--side-root-item-text-hover"},{configValue:"sidemenu_active_text_color",cssVariable:"--side-root-item-text-active"},{configValue:"sidemenu_submenu_active_text_color",cssVariable:"--side-link-text-active"},{configValue:"sidemenu_submenu_hover_text_color",cssVariable:"--side-link-text-hover"}]}initialize(){return this.appConfigService.loadAppDefaultConfig().then(()=>this.appConfigService.loadAppInstanceConfig()).then(()=>this.appConfigService.setApiUrl()).then(()=>this.appConfigService.initializeColors(this.entityColorConfigs,this.colorConfigs)).then(()=>this.appConfigService.setInstanceFavicon()).then(()=>this.initAuthService.verifyAuth()).catch(I=>{if("Invalid path"!==I)throw this.mfaHandlerService.catchNoMfaTokenError(I?.params?.error),console.error(I),this.location.go("/"),location.reload(),I;this.handleErr(I)}).then(I=>I?(this.mfaHandlerService.closeMfaWindow(),this.initAuthService.loadPrincipal().catch(Y=>this.handleErr(Y)).then(()=>this.loadPolicies()).then(()=>this.appConfigService.loadAppsConfig()).then(()=>this.guiAuthResolver.loadRolesManagementRules()).then(()=>this.initAuthService.checkRouteGuard())):this.initAuthService.handleAuthStart())}handleErr(I){const Y=(0,D.kZ)();throw"Invalid path"===I?(Y.data={title:"GENERAL.PROXY_OVERLOAD_PREVENTION.TITLE",message:"GENERAL.PROXY_OVERLOAD_PREVENTION.MESSAGE",action:"GENERAL.PROXY_OVERLOAD_PREVENTION.ACTION"},this.dialog.open(Dn,Y)):401!==I.status&&(Y.data={title:"GENERAL.PRINCIPAL_ERROR.TITLE",message:0===I.status?"GENERAL.PRINCIPAL_ERROR.MESSAGE":I.message,action:"GENERAL.PRINCIPAL_ERROR.ACTION"},this.dialog.open(pi,Y)),console.error(I),I}loadPolicies(){return(0,Li.z)(this.authzSevice.getAllPolicies()).then(I=>this.guiAuthResolver.setPerunPolicies(I))}}return oe.\u0275fac=function(I){return new(I||oe)(A.LFG(b.v0),A.LFG(un),A.LFG(m.Ct),A.LFG(L.uw),A.LFG(O.Ye),A.LFG(b.x4),A.LFG(b.hy))},oe.\u0275prov=A.Yz7({token:oe,factory:oe.\u0275fac,providedIn:"root"}),oe})(),Mr=(()=>{class oe{}return oe.\u0275fac=function(I){return new(I||oe)},oe.\u0275mod=A.oAB({type:oe}),oe.\u0275inj=A.cJS({imports:[O.ez,L.Is,ie.ot,w.aw]}),oe})();var xr=p(40445),sa=p(84080),Fr=p(83353),Mi=p(21281),$r=p(77579),la=p(56451),mr=p(54968),ya=p(69751),_s=p(66406),mo=p(39646),Wc=p(95698),zc=p(54482),Yc=p(72733),No=p(22529),gr=p(82722),qc=p(28746),Bi=p(71345);const zl=new A.OlP("SMOOTH_SCROLL_OPTIONS");let Yl=(()=>{class oe{constructor(I,Y,je){this._document=I,this._platform=Y,this._onGoingScrolls=new Map,this._defaultOptions={duration:468,easing:{x1:.42,y1:0,x2:.58,y2:1},...je}}get _w(){return this._document.defaultView}get _now(){return this._w.performance&&this._w.performance.now?this._w.performance.now.bind(this._w.performance):Date.now}_scrollElement(I,Y,je){I.scrollLeft=Y,I.scrollTop=je}_getElement(I,Y){return"string"==typeof I?(Y||this._document).querySelector(I):(0,Mi.fI)(I)}_initSmoothScroll(I){return this._onGoingScrolls.has(I)&&this._onGoingScrolls.get(I).next(),this._onGoingScrolls.set(I,new $r.x).get(I)}_isFinished(I,Y,je){return I.currentX!==I.x||I.currentY!==I.y||(Y.next(),je(),!1)}_interrupted(I,Y){return(0,la.T)((0,mr.R)(I,"wheel",{passive:!0,capture:!0}),(0,mr.R)(I,"touchmove",{passive:!0,capture:!0}),Y).pipe((0,Wc.q)(1))}_destroy(I,Y){Y.complete(),this._onGoingScrolls.delete(I)}_step(I){return new ya.y(Y=>{let je=(this._now()-I.startTime)/I.duration;je=je>1?1:je;const dt=I.easing(je);I.currentX=I.startX+(I.x-I.startX)*dt,I.currentY=I.startY+(I.y-I.startY)*dt,this._scrollElement(I.scrollable,I.currentX,I.currentY),_s.Z.schedule(()=>Y.next(I))})}_applyScrollToOptions(I,Y){if(!Y.duration)return this._scrollElement(I,Y.left,Y.top),Promise.resolve();const je=this._initSmoothScroll(I),dt={scrollable:I,startTime:this._now(),startX:I.scrollLeft,startY:I.scrollTop,x:null==Y.left?I.scrollLeft:~~Y.left,y:null==Y.top?I.scrollTop:~~Y.top,duration:Y.duration,easing:Bi(Y.easing.x1,Y.easing.y1,Y.easing.x2,Y.easing.y2)};return new Promise(Ot=>{(0,mo.of)(null).pipe(function Wl(oe,U=1/0,I){return U=(U||0)<1?1/0:U,(0,zc.e)((Y,je)=>(0,Yc.p)(Y,je,oe,U,void 0,!0,I))}(()=>this._step(dt).pipe((0,No.o)(Ht=>this._isFinished(Ht,je,Ot)))),(0,gr.R)(this._interrupted(I,je)),(0,qc.x)(()=>this._destroy(I,je))).subscribe()})}scrollTo(I,Y){if((0,O.NF)(this._platform)){const je=this._getElement(I),dt="rtl"===getComputedStyle(je).direction,Ot=(0,Fr._i)(),Ht={...this._defaultOptions,...Y,left:Y.left??(dt?Y.end:Y.start),right:Y.right??(dt?Y.start:Y.end)};return null!=Ht.bottom&&(Ht.top=je.scrollHeight-je.clientHeight-Ht.bottom),dt&&0!==Ot?(null!=Ht.left&&(Ht.right=je.scrollWidth-je.clientWidth-Ht.left),2===Ot?Ht.left=Ht.right:1===Ot&&(Ht.left=Ht.right?-Ht.right:Ht.right)):null!=Ht.right&&(Ht.left=je.scrollWidth-je.clientWidth-Ht.right),this._applyScrollToOptions(je,Ht)}return Promise.resolve()}scrollToElement(I,Y,je={}){const dt=this._getElement(I),Ot=this._getElement(Y,dt),Ht={...je,left:Ot.offsetLeft+(je.left||0),top:Ot.offsetTop+(je.top||0)};return Ot?this.scrollTo(dt,Ht):Promise.resolve()}}return oe.\u0275fac=function(I){return new(I||oe)(A.LFG(O.K0),A.LFG(A.Lbi),A.LFG(zl,8))},oe.\u0275prov=A.Yz7({token:oe,factory:oe.\u0275fac,providedIn:"root"}),oe})(),ko=(()=>{class oe{}return oe.\u0275fac=function(I){return new(I||oe)},oe.\u0275mod=A.oAB({type:oe}),oe.\u0275inj=A.cJS({}),oe})();var Jc=p(61135),Qc=p(50727),Kc=p(60515),Ni=p(18505),er=p(54004),Vo=p(63900),go=p(78372),cl=p(71884);function Fo(...oe){const U=oe.length;if(0===U)throw new Error("list of properties cannot be empty.");return(0,er.U)(I=>{let Y=I;for(let je=0;je{oe.onselectstart=()=>!1})}function td(oe){return(0,Ni.b)(()=>{oe.onselectstart=null})}function wa(){return(0,Ni.b)(oe=>oe.stopPropagation())}function dl(oe,U){return oe.clientX>=U.left&&oe.clientX<=U.left+U.width&&oe.clientY>=U.top&&oe.clientY<=U.top+U.height}let ul=(()=>{class oe{constructor(I){this.viewPort=I,this.nativeElement=I.nativeElement}get clientHeight(){return this.nativeElement.clientHeight}get clientWidth(){return this.nativeElement.clientWidth}get scrollHeight(){return this.nativeElement.scrollHeight}get scrollWidth(){return this.nativeElement.scrollWidth}get scrollTop(){return this.nativeElement.scrollTop}get scrollLeft(){return this.nativeElement.scrollLeft}get scrollMaxX(){return this.scrollWidth-this.clientWidth}get scrollMaxY(){return this.scrollHeight-this.clientHeight}get contentHeight(){var I;return(null===(I=this.contentWrapperElement)||void 0===I?void 0:I.clientHeight)||0}get contentWidth(){var I;return(null===(I=this.contentWrapperElement)||void 0===I?void 0:I.clientWidth)||0}activatePointerEvents(I,Y){this.hovered=new ya.y(je=>{const dt=(0,mr.R)(this.nativeElement,"mousemove",{passive:!0}),Ot=I?dt:dt.pipe(wa()),Ht=(0,mr.R)(this.nativeElement,"mouseleave",{passive:!0}).pipe((0,er.U)(()=>!1));(0,la.T)(Ot,Ht).pipe((0,Ni.b)(Gt=>je.next(Gt)),(0,gr.R)(Y)).subscribe()}),this.clicked=new ya.y(je=>{const dt=(0,mr.R)(this.nativeElement,"mousedown",{passive:!0}).pipe((0,Ni.b)(Ht=>je.next(Ht))),Ot=(0,mr.R)(this.nativeElement,"mouseup",{passive:!0}).pipe((0,Ni.b)(()=>je.next(!1)));dt.pipe((0,Vo.w)(()=>Ot),(0,gr.R)(Y)).subscribe()})}setAsWrapper(){this.nativeElement.className="ng-native-scrollbar-hider ng-scroll-layer",this.nativeElement.firstElementChild&&(this.nativeElement.firstElementChild.className="ng-scroll-layer")}setAsViewport(I){this.nativeElement.className=`ng-native-scrollbar-hider ng-scroll-viewport ${I}`,this.nativeElement.firstElementChild&&(this.contentWrapperElement=this.nativeElement.firstElementChild,this.contentWrapperElement.classList.add("ng-scroll-content"))}scrollYTo(I){this.nativeElement.scrollTop=I}scrollXTo(I){this.nativeElement.scrollLeft=I}}return oe.\u0275fac=function(I){return new(I||oe)(A.Y36(A.SBq))},oe.\u0275dir=A.lG2({type:oe,selectors:[["","scrollViewport",""]]}),oe})(),_r=(()=>{class oe{}return oe.\u0275fac=function(I){return new(I||oe)},oe.\u0275dir=A.lG2({type:oe}),oe})();const hl=new A.OlP("NG_SCROLLBAR_OPTIONS"),$l={viewClass:"",trackClass:"",thumbClass:"",track:"vertical",appearance:"compact",visibility:"native",position:"native",pointerEventsMethod:"viewport",trackClickScrollDuration:300,minThumbSize:20,windowResizeDebounce:0,sensorDebounce:0,scrollAuditTime:0,viewportPropagateMouseMove:!0,autoHeightDisabled:!0,autoWidthDisabled:!0,sensorDisabled:!1,pointerEventsDisabled:!1};let pl=(()=>{class oe{constructor(I){this.globalOptions=I?{...$l,...I}:$l,this.rtlScrollAxisType=(0,Fr._i)()}}return oe.\u0275fac=function(I){return new(I||oe)(A.LFG(hl,8))},oe.\u0275prov=A.Yz7({token:oe,factory:oe.\u0275fac,providedIn:"root"}),oe})(),Dh=(()=>{class oe{constructor(I,Y,je){this.document=I,this.manager=Y,this.platform=je,this._scrollbarSize=new Jc.X(this.getNativeScrollbarSize()),this.scrollbarSize=this._scrollbarSize.asObservable(),je.isBrowser&&(0,mr.R)(this.document.defaultView,"resize",{passive:!0}).pipe((0,go.b)(this.manager.globalOptions.windowResizeDebounce),(0,er.U)(()=>this.getNativeScrollbarSize()),(0,cl.x)(),(0,Ni.b)(dt=>this._scrollbarSize.next(dt))).subscribe()}getNativeScrollbarSize(){if(!this.platform.isBrowser)return 0;if(this.platform.IOS)return 6;const I=this.document.createElement("div");I.className="ng-scrollbar-measure",I.style.left="0px",I.style.overflow="scroll",I.style.position="fixed",I.style.top="-9999px",this.document.body.appendChild(I);const Y=I.getBoundingClientRect().right;return this.document.body.removeChild(I),Y}}return oe.\u0275fac=function(I){return new(I||oe)(A.LFG(O.K0),A.LFG(pl),A.LFG(Fr.t4))},oe.\u0275prov=A.Yz7({token:oe,factory:oe.\u0275fac,providedIn:"root"}),oe})(),Xl=(()=>{class oe{constructor(I,Y,je){this.renderer=Y,this.hideNativeScrollbar=je,this._subscriber=Qc.w0.EMPTY,this._subscriber=je.scrollbarSize.subscribe(dt=>{this.renderer.setStyle(I.nativeElement,"--native-scrollbar-size",`-${dt}px`,A.JOm.DashCase)})}ngOnDestroy(){this._subscriber.unsubscribe()}}return oe.\u0275fac=function(I){return new(I||oe)(A.Y36(A.SBq),A.Y36(A.Qsj),A.Y36(Dh))},oe.\u0275dir=A.lG2({type:oe,selectors:[["","hideNativeScrollbar",""]]}),oe})(),Rh=(()=>{class oe{constructor(I){this.el=I}set ngAttr(I){for(const[Y,je]of Object.entries(I))this.el.nativeElement.setAttribute(Y,je)}}return oe.\u0275fac=function(I){return new(I||oe)(A.Y36(A.SBq))},oe.\u0275dir=A.lG2({type:oe,selectors:[["","ngAttr",""]],inputs:{ngAttr:"ngAttr"}}),oe})(),fl=(()=>{class oe{constructor(I,Y,je){if(this.zone=I,this.platform=Y,this.scrollbar=je,this._disabled=!1,this._currentSubscription=null,this.event=new A.vpe,!je)throw new Error("[NgScrollbar Resize Sensor Directive]: Host element must be an NgScrollbar component.")}get debounce(){return this._debounce}set debounce(I){this._debounce=(0,Mi.su)(I),this._subscribe()}get disabled(){return this._disabled}set disabled(I){this._disabled=(0,Mi.Ig)(I),this._disabled?this._unsubscribe():this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this._disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){if(this._unsubscribe(),this.platform.isBrowser){const I=new ya.y(Y=>{this._resizeObserver=new ResizeObserver(je=>Y.next(je)),this._resizeObserver.observe(this.scrollbar.viewport.nativeElement),this.scrollbar.viewport.contentWrapperElement&&this._resizeObserver.observe(this.scrollbar.viewport.contentWrapperElement)});this.zone.runOutsideAngular(()=>{this._currentSubscription=(this._debounce?I.pipe((0,go.b)(this._debounce)):I).subscribe(this.event)})}}_unsubscribe(){var I,Y;null===(I=this._resizeObserver)||void 0===I||I.disconnect(),null===(Y=this._currentSubscription)||void 0===Y||Y.unsubscribe()}}return oe.\u0275fac=function(I){return new(I||oe)(A.Y36(A.R0b),A.Y36(Fr.t4),A.Y36(_r))},oe.\u0275dir=A.lG2({type:oe,selectors:[["","resizeSensor",""]],inputs:{debounce:["sensorDebounce","debounce"],disabled:["sensorDisabled","disabled"]},outputs:{event:"resizeSensor"}}),oe})(),ml=(()=>{class oe{constructor(I,Y,je){this.cmp=I,this.trackElement=Y,this.document=je}get clicked(){const I=(0,mr.R)(this.trackElement,"mousedown",{passive:!0}).pipe(wa(),Kl(this.document)),Y=(0,mr.R)(this.document,"mouseup",{passive:!0}).pipe(wa(),td(this.document),(0,Vo.w)(()=>Kc.E));return(0,la.T)(I,Y)}get clientRect(){return this.trackElement.getBoundingClientRect()}onTrackClicked(I,Y,je){return(0,mo.of)(I).pipe(Fo(this.pageProperty),(0,er.U)(dt=>(dt-this.offset-Y/2)/this.size*je),(0,Ni.b)(dt=>{this.cmp.scrollTo({...this.mapToScrollToOption(dt),duration:(0,Mi.su)(this.cmp.trackClickScrollDuration)})}))}}return oe.\u0275fac=function(I){return new(I||oe)(A.Y36(_r),A.Y36(HTMLElement),A.Y36(Document))},oe.\u0275dir=A.lG2({type:oe}),oe})(),Cs=(()=>{class oe extends ml{constructor(I,Y,je){super(I,Y.nativeElement,je),this.cmp=I,this.document=je}get pageProperty(){return"pageX"}get offset(){return this.clientRect.left}get size(){return this.trackElement.clientWidth}mapToScrollToOption(I){return{left:I}}}return oe.\u0275fac=function(I){return new(I||oe)(A.Y36(_r),A.Y36(A.SBq),A.Y36(O.K0))},oe.\u0275dir=A.lG2({type:oe,selectors:[["","scrollbarTrackX",""]],features:[A.qOj]}),oe})(),Ao=(()=>{class oe extends ml{constructor(I,Y,je){super(I,Y.nativeElement,je),this.cmp=I,this.document=je}get pageProperty(){return"pageY"}get offset(){return this.clientRect.top}get size(){return this.trackElement.clientHeight}mapToScrollToOption(I){return{top:I}}}return oe.\u0275fac=function(I){return new(I||oe)(A.Y36(_r),A.Y36(A.SBq),A.Y36(O.K0))},oe.\u0275dir=A.lG2({type:oe,selectors:[["","scrollbarTrackY",""]],features:[A.qOj]}),oe})(),bs=(()=>{class oe{constructor(I,Y,je,dt){this.cmp=I,this.track=Y,this.thumbElement=je,this.document=dt,this._dragging=new $r.x,this.dragging=this._dragging.pipe((0,cl.x)())}get trackMax(){return this.track.size-this.size}get clientRect(){return this.thumbElement.getBoundingClientRect()}get clicked(){return(0,mr.R)(this.thumbElement,"mousedown",{passive:!0}).pipe(wa())}update(){const I=function Co(oe,U,I){return Math.max(~~(oe/U*oe),I)}(this.track.size,this.viewportScrollSize,this.cmp.minThumbSize),Y=function nd(oe,U,I){return oe*I/U}(this.viewportScrollOffset,this.viewportScrollMax,this.trackMax);_s.Z.schedule(()=>this.updateStyles(this.handleDirection(Y,this.trackMax),I))}dragged(I){let Y,je;const dt=(0,mo.of)(I).pipe(Kl(this.document),(0,Ni.b)(()=>{Y=this.trackMax,je=this.viewportScrollMax,this.setDragging(!0)})),Ot=(0,mr.R)(this.document,"mousemove",{capture:!0,passive:!0}).pipe(wa()),Ht=(0,mr.R)(this.document,"mouseup",{capture:!0}).pipe(wa(),td(this.document),(0,Ni.b)(()=>this.setDragging(!1)));return dt.pipe(Fo(this.pageProperty),(0,er.U)(Gt=>Gt-this.dragStartOffset),(0,jo.z)(Gt=>Ot.pipe(Fo(this.clientProperty),(0,er.U)($t=>$t-this.track.offset),(0,er.U)($t=>je*($t-Gt)/Y),(0,er.U)($t=>this.handleDrag($t,je)),(0,Ni.b)($t=>this.scrollTo($t)),(0,gr.R)(Ht))))}}return oe.\u0275fac=function(I){return new(I||oe)(A.Y36(_r),A.Y36(ml),A.Y36(HTMLElement),A.Y36(Document))},oe.\u0275dir=A.lG2({type:oe,outputs:{dragging:"dragging"}}),oe})(),ec=(()=>{class oe extends bs{constructor(I,Y,je,dt,Ot){super(I,Y,je.nativeElement,dt),this.cmp=I,this.track=Y,this.element=je,this.document=dt,this.dir=Ot}get clientProperty(){return"clientX"}get pageProperty(){return"pageX"}get viewportScrollSize(){return this.cmp.viewport.scrollWidth}get viewportScrollOffset(){return this.cmp.viewport.scrollLeft}get viewportScrollMax(){return this.cmp.viewport.scrollMaxX}get dragStartOffset(){return this.clientRect.left+this.document.defaultView.pageXOffset||0}get size(){return this.thumbElement.clientWidth}updateStyles(I,Y){this.thumbElement.style.width=`${Y}px`,this.thumbElement.style.transform=`translate3d(${I}px, 0, 0)`}handleDrag(I,Y){if("rtl"===this.dir.value){if(1===this.cmp.manager.rtlScrollAxisType)return I-Y;if(2===this.cmp.manager.rtlScrollAxisType)return Y-I}return I}handleDirection(I,Y){if("rtl"===this.dir.value){if(2===this.cmp.manager.rtlScrollAxisType)return-I;if(0===this.cmp.manager.rtlScrollAxisType)return I-Y}return I}setDragging(I){this.cmp.setDragging({horizontalDragging:I})}scrollTo(I){this.cmp.viewport.scrollXTo(I)}}return oe.\u0275fac=function(I){return new(I||oe)(A.Y36(_r),A.Y36(Cs),A.Y36(A.SBq),A.Y36(O.K0),A.Y36(xr.Is))},oe.\u0275dir=A.lG2({type:oe,selectors:[["","scrollbarThumbX",""]],features:[A.qOj]}),oe})(),id=(()=>{class oe extends bs{constructor(I,Y,je,dt){super(I,Y,je.nativeElement,dt),this.cmp=I,this.track=Y,this.element=je,this.document=dt}get pageProperty(){return"pageY"}get viewportScrollSize(){return this.cmp.viewport.scrollHeight}get viewportScrollOffset(){return this.cmp.viewport.scrollTop}get viewportScrollMax(){return this.cmp.viewport.scrollMaxY}get clientProperty(){return"clientY"}get dragStartOffset(){return this.clientRect.top+this.document.defaultView.pageYOffset||0}get size(){return this.thumbElement.clientHeight}updateStyles(I,Y){this.thumbElement.style.height=`${Y}px`,this.thumbElement.style.transform=`translate3d(0px, ${I}px, 0)`}handleDrag(I){return I}handleDirection(I){return I}setDragging(I){this.cmp.setDragging({verticalDragging:I})}scrollTo(I){this.cmp.viewport.scrollYTo(I)}}return oe.\u0275fac=function(I){return new(I||oe)(A.Y36(_r),A.Y36(Ao),A.Y36(A.SBq),A.Y36(O.K0))},oe.\u0275dir=A.lG2({type:oe,selectors:[["","scrollbarThumbY",""]],features:[A.qOj]}),oe})(),Go=(()=>{class oe{constructor(I,Y,je,dt,Ot){this.el=I,this.cmp=Y,this.platform=je,this.document=dt,this.zone=Ot,this.destroyed=new $r.x}activatePointerEvents(){let I,Y,je;return"viewport"===this.cmp.pointerEventsMethod?(this.viewportTrackClicked=new $r.x,this.viewportThumbClicked=new $r.x,this.cmp.viewport.activatePointerEvents(this.cmp.viewportPropagateMouseMove,this.destroyed),I=this.viewportThumbClicked,Y=this.viewportTrackClicked,je=this.cmp.viewport.hovered.pipe((0,er.U)(dt=>!!dt&&dl(dt,this.el.getBoundingClientRect())),(0,cl.x)(),(0,Ni.b)(dt=>this.document.onselectstart=dt?()=>!1:null)),this.cmp.viewport.clicked.pipe((0,Ni.b)(dt=>{dt?dl(dt,this.thumb.clientRect)?this.viewportThumbClicked.next(dt):dl(dt,this.track.clientRect)&&(this.cmp.setClicked(!0),this.viewportTrackClicked.next(dt)):this.cmp.setClicked(!1)}),(0,gr.R)(this.destroyed)).subscribe()):(I=this.thumb.clicked,Y=this.track.clicked,je=this.hovered),(0,la.T)(je.pipe((0,Ni.b)(dt=>this.setHovered(dt))),I.pipe((0,Vo.w)(dt=>this.thumb.dragged(dt))),Y.pipe((0,Vo.w)(dt=>this.track.onTrackClicked(dt,this.thumb.size,this.viewportScrollSize))))}get hovered(){const I=(0,mr.R)(this.el,"mouseenter",{passive:!0}).pipe(wa(),(0,er.U)(()=>!0)),Y=(0,mr.R)(this.el,"mouseleave",{passive:!0}).pipe(wa(),(0,er.U)(()=>!1));return(0,la.T)(I,Y)}ngOnInit(){this.zone.runOutsideAngular(()=>{!(this.platform.IOS||this.platform.ANDROID)&&!this.cmp.pointerEventsDisabled&&this.activatePointerEvents().pipe((0,gr.R)(this.destroyed)).subscribe(),(0,la.T)(this.cmp.scrolled,this.cmp.updated).pipe((0,Ni.b)(()=>{var I;return null===(I=this.thumb)||void 0===I?void 0:I.update()}),(0,gr.R)(this.destroyed)).subscribe()})}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete(),this.viewportThumbClicked&&this.viewportTrackClicked&&(this.viewportTrackClicked.complete(),this.viewportThumbClicked.complete())}}return oe.\u0275fac=function(I){return new(I||oe)(A.Y36(HTMLElement),A.Y36(_r),A.Y36(Fr.t4),A.Y36(Document),A.Y36(A.R0b))},oe.\u0275dir=A.lG2({type:oe}),oe})(),gl=(()=>{class oe extends Go{constructor(I,Y,je,dt,Ot){super(I.nativeElement,Y,je,dt,Ot),this.cmp=Y,this.platform=je,this.document=dt,this.zone=Ot}get viewportScrollSize(){return this.cmp.viewport.scrollHeight}setHovered(I){this.cmp.setHovered({verticalHovered:I})}}return oe.\u0275fac=function(I){return new(I||oe)(A.Y36(A.SBq),A.Y36(_r),A.Y36(Fr.t4),A.Y36(O.K0),A.Y36(A.R0b))},oe.\u0275cmp=A.Xpm({type:oe,selectors:[["scrollbar-y"]],viewQuery:function(I,Y){if(1&I&&(A.Gf(Ao,7),A.Gf(id,7)),2&I){let je;A.iGM(je=A.CRH())&&(Y.track=je.first),A.iGM(je=A.CRH())&&(Y.thumb=je.first)}},hostVars:2,hostBindings:function(I,Y){2&I&&A.ekj("scrollbar-control",!0)},features:[A.qOj],decls:2,vars:6,consts:[["scrollbarTrackY",""],["scrollbarThumbY",""]],template:function(I,Y){1&I&&(A.TgZ(0,"div",0),A._UZ(1,"div",1),A.qZA()),2&I&&(A.Gre("ng-scrollbar-track ",Y.cmp.trackClass,""),A.xp6(1),A.Gre("ng-scrollbar-thumb ",Y.cmp.thumbClass,""))},dependencies:[id,Ao],styles:[".ng-scrollbar-wrapper>scrollbar-y.scrollbar-control{width:var(--vertical-scrollbar-total-size)} .ng-scrollbar-wrapper>scrollbar-y.scrollbar-control>.ng-scrollbar-track{width:var(--vertical-scrollbar-size);height:calc(100% - var(--scrollbar-padding) * 2)} .ng-scrollbar-wrapper>scrollbar-y.scrollbar-control>.ng-scrollbar-track>.ng-scrollbar-thumb{height:0;width:100%} .ng-scrollbar-wrapper[verticalHovered=true]>scrollbar-y.scrollbar-control .ng-scrollbar-thumb, .ng-scrollbar-wrapper[verticalDragging=true]>scrollbar-y.scrollbar-control .ng-scrollbar-thumb{background-color:var(--scrollbar-thumb-hover-color)} .ng-scrollbar-wrapper[deactivated=false]>scrollbar-y.scrollbar-control{top:0;bottom:0} .ng-scrollbar-wrapper[deactivated=false][dir=ltr]>scrollbar-y.scrollbar-control{right:0;left:initial} .ng-scrollbar-wrapper[deactivated=false][dir=ltr][position=invertY]>scrollbar-y.scrollbar-control, .ng-scrollbar-wrapper[deactivated=false][dir=ltr][position=invertAll]>scrollbar-y.scrollbar-control{left:0;right:initial} .ng-scrollbar-wrapper[deactivated=false][dir=rtl]>scrollbar-y.scrollbar-control{left:0;right:initial} .ng-scrollbar-wrapper[deactivated=false][dir=rtl][position=invertY]>scrollbar-y.scrollbar-control, .ng-scrollbar-wrapper[deactivated=false][dir=rtl][position=invertAll]>scrollbar-y.scrollbar-control{left:initial;right:0} .ng-scrollbar-wrapper[deactivated=false][track=all]>scrollbar-y.scrollbar-control[fit=true]{bottom:var(--scrollbar-total-size);top:0} .ng-scrollbar-wrapper[deactivated=false][track=all][position=invertX]>scrollbar-y.scrollbar-control[fit=true], .ng-scrollbar-wrapper[deactivated=false][track=all][position=invertAll]>scrollbar-y.scrollbar-control[fit=true]{top:var(--scrollbar-total-size);bottom:0}"],changeDetection:0}),oe})(),tc=(()=>{class oe extends Go{constructor(I,Y,je,dt,Ot){super(I.nativeElement,Y,je,dt,Ot),this.cmp=Y,this.platform=je,this.document=dt,this.zone=Ot}get viewportScrollSize(){return this.cmp.viewport.scrollWidth}setHovered(I){this.cmp.setHovered({horizontalHovered:I})}}return oe.\u0275fac=function(I){return new(I||oe)(A.Y36(A.SBq),A.Y36(_r),A.Y36(Fr.t4),A.Y36(O.K0),A.Y36(A.R0b))},oe.\u0275cmp=A.Xpm({type:oe,selectors:[["scrollbar-x"]],viewQuery:function(I,Y){if(1&I&&(A.Gf(Cs,7),A.Gf(ec,7)),2&I){let je;A.iGM(je=A.CRH())&&(Y.track=je.first),A.iGM(je=A.CRH())&&(Y.thumb=je.first)}},hostVars:2,hostBindings:function(I,Y){2&I&&A.ekj("scrollbar-control",!0)},features:[A.qOj],decls:2,vars:6,consts:[["scrollbarTrackX",""],["scrollbarThumbX",""]],template:function(I,Y){1&I&&(A.TgZ(0,"div",0),A._UZ(1,"div",1),A.qZA()),2&I&&(A.Gre("ng-scrollbar-track ",Y.cmp.trackClass,""),A.xp6(1),A.Gre("ng-scrollbar-thumb ",Y.cmp.thumbClass,""))},dependencies:[ec,Cs],styles:[".ng-scrollbar-wrapper>scrollbar-x.scrollbar-control{height:var(--horizontal-scrollbar-total-size)} .ng-scrollbar-wrapper>scrollbar-x.scrollbar-control>.ng-scrollbar-track{height:var(--horizontal-scrollbar-size);width:calc(100% - var(--scrollbar-padding) * 2)} .ng-scrollbar-wrapper>scrollbar-x.scrollbar-control>.ng-scrollbar-track>.ng-scrollbar-thumb{width:0;height:100%} .ng-scrollbar-wrapper[horizontalHovered=true]>scrollbar-x.scrollbar-control .ng-scrollbar-thumb, .ng-scrollbar-wrapper[horizontalDragging=true]>scrollbar-x.scrollbar-control .ng-scrollbar-thumb{background-color:var(--scrollbar-thumb-hover-color)} .ng-scrollbar-wrapper[position=invertX]>scrollbar-x.scrollbar-control, .ng-scrollbar-wrapper[position=invertAll]>scrollbar-x.scrollbar-control{top:0;bottom:initial} .ng-scrollbar-wrapper[deactivated=false]>scrollbar-x.scrollbar-control{left:0;right:0;bottom:0;top:initial} .ng-scrollbar-wrapper[deactivated=false][position=invertX]>scrollbar-x.scrollbar-control, .ng-scrollbar-wrapper[deactivated=false][position=invertAll]>scrollbar-x.scrollbar-control{top:0;bottom:initial} .ng-scrollbar-wrapper[deactivated=false][track=all][dir=ltr]>scrollbar-x.scrollbar-control[fit=true]{right:var(--scrollbar-total-size);left:0} .ng-scrollbar-wrapper[deactivated=false][track=all][dir=ltr][position=invertY]>scrollbar-x.scrollbar-control[fit=true], .ng-scrollbar-wrapper[deactivated=false][track=all][dir=ltr][position=invertAll]>scrollbar-x.scrollbar-control[fit=true]{left:var(--scrollbar-total-size);right:0} .ng-scrollbar-wrapper[deactivated=false][track=all][dir=rtl]>scrollbar-x.scrollbar-control[fit=true]{left:var(--scrollbar-total-size);right:0} .ng-scrollbar-wrapper[deactivated=false][track=all][dir=rtl][position=invertY]>scrollbar-x.scrollbar-control[fit=true], .ng-scrollbar-wrapper[deactivated=false][track=all][dir=rtl][position=invertAll]>scrollbar-x.scrollbar-control[fit=true]{right:var(--scrollbar-total-size);left:0}"],changeDetection:0}),oe})(),nc=(()=>{class oe{constructor(I,Y,je,dt,Ot,Ht){this.el=I,this.zone=Y,this.changeDetectorRef=je,this.dir=dt,this.smoothScroll=Ot,this.manager=Ht,this._disabled=!1,this._sensorDisabled=this.manager.globalOptions.sensorDisabled,this._pointerEventsDisabled=this.manager.globalOptions.pointerEventsDisabled,this._autoHeightDisabled=this.manager.globalOptions.autoHeightDisabled,this._autoWidthDisabled=this.manager.globalOptions.autoWidthDisabled,this._viewportPropagateMouseMove=this.manager.globalOptions.viewportPropagateMouseMove,this.viewClass=this.manager.globalOptions.viewClass,this.trackClass=this.manager.globalOptions.trackClass,this.thumbClass=this.manager.globalOptions.thumbClass,this.minThumbSize=this.manager.globalOptions.minThumbSize,this.trackClickScrollDuration=this.manager.globalOptions.trackClickScrollDuration,this.pointerEventsMethod=this.manager.globalOptions.pointerEventsMethod,this.track=this.manager.globalOptions.track,this.visibility=this.manager.globalOptions.visibility,this.appearance=this.manager.globalOptions.appearance,this.position=this.manager.globalOptions.position,this.sensorDebounce=this.manager.globalOptions.sensorDebounce,this.scrollAuditTime=this.manager.globalOptions.scrollAuditTime,this.updated=new A.vpe,this.state={},this.destroyed=new $r.x}get disabled(){return this._disabled}set disabled(I){this._disabled=(0,Mi.Ig)(I)}get sensorDisabled(){return this._sensorDisabled}set sensorDisabled(I){this._sensorDisabled=(0,Mi.Ig)(I)}get pointerEventsDisabled(){return this._pointerEventsDisabled}set pointerEventsDisabled(I){this._pointerEventsDisabled=(0,Mi.Ig)(I)}get viewportPropagateMouseMove(){return this._viewportPropagateMouseMove}set viewportPropagateMouseMove(I){this._viewportPropagateMouseMove=(0,Mi.Ig)(I)}get autoHeightDisabled(){return this._autoHeightDisabled}set autoHeightDisabled(I){this._autoHeightDisabled=(0,Mi.Ig)(I)}get autoWidthDisabled(){return this._autoWidthDisabled}set autoWidthDisabled(I){this._autoWidthDisabled=(0,Mi.Ig)(I)}get nativeElement(){return this.el.nativeElement}updateState(){let I=!1,Y=!1,je=!1,dt=!1;("all"===this.track||"vertical"===this.track)&&(je=this.viewport.scrollHeight>this.viewport.clientHeight,I="always"===this.visibility||je),("all"===this.track||"horizontal"===this.track)&&(dt=this.viewport.scrollWidth>this.viewport.clientWidth,Y="always"===this.visibility||dt),this.setState({position:this.position,track:this.track,appearance:this.appearance,visibility:this.visibility,deactivated:this.disabled,dir:this.dir.value,pointerEventsMethod:this.pointerEventsMethod,verticalUsed:I,horizontalUsed:Y,isVerticallyScrollable:je,isHorizontallyScrollable:dt})}setState(I){this.state={...this.state,...I},this.changeDetectorRef.detectChanges()}getScrolledByDirection(I){let Y;return this.scrolled.pipe((0,Ni.b)(je=>Y=je),Fo("target",I),(0,As.G)(),(0,Jl.h)(([je,dt])=>je!==dt),(0,er.U)(()=>Y))}setHovered(I){this.zone.run(()=>this.setState({...I}))}setDragging(I){this.zone.run(()=>this.setState({...I}))}setClicked(I){this.zone.run(()=>this.setState({scrollbarClicked:I}))}ngOnInit(){this.zone.runOutsideAngular(()=>{this.customViewPort?(this.viewport=this.customViewPort,this.defaultViewPort.setAsWrapper()):this.viewport=this.defaultViewPort,this.viewport.setAsViewport(this.viewClass);let I=(0,mr.R)(this.viewport.nativeElement,"scroll",{passive:!0});I=this.scrollAuditTime?I.pipe((0,$c.e)(this.scrollAuditTime)):I,this.scrolled=I.pipe((0,gr.R)(this.destroyed)),this.verticalScrolled=this.getScrolledByDirection("scrollTop"),this.horizontalScrolled=this.getScrolledByDirection("scrollLeft")})}ngOnChanges(I){this.viewport&&this.update()}ngAfterViewInit(){this.update(),this.dir.change.pipe((0,Ni.b)(()=>this.update()),(0,gr.R)(this.destroyed)).subscribe()}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete()}update(){this.autoHeightDisabled||this.updateHeight(),this.autoWidthDisabled||this.updateWidth(),this.updateState(),this.updated.next()}scrollTo(I){return this.smoothScroll.scrollTo(this.viewport.nativeElement,I)}scrollToElement(I,Y){return this.smoothScroll.scrollToElement(this.viewport.nativeElement,I,Y)}updateHeight(){this.nativeElement.style.height="standard"===this.appearance&&this.scrollbarX?`${this.viewport.contentHeight+this.scrollbarX.nativeElement.clientHeight}px`:`${this.viewport.contentHeight}px`}updateWidth(){this.nativeElement.style.width="standard"===this.appearance&&this.scrollbarY?`${this.viewport.contentWidth+this.scrollbarY.nativeElement.clientWidth}px`:`${this.viewport.contentWidth}px`}}return oe.\u0275fac=function(I){return new(I||oe)(A.Y36(A.SBq),A.Y36(A.R0b),A.Y36(A.sBO),A.Y36(xr.Is),A.Y36(Yl),A.Y36(pl))},oe.\u0275cmp=A.Xpm({type:oe,selectors:[["ng-scrollbar"]],contentQueries:function(I,Y,je){if(1&I&&A.Suo(je,ul,7),2&I){let dt;A.iGM(dt=A.CRH())&&(Y.customViewPort=dt.first)}},viewQuery:function(I,Y){if(1&I&&(A.Gf(Xc,5,A.SBq),A.Gf(_o,5,A.SBq),A.Gf(ul,7)),2&I){let je;A.iGM(je=A.CRH())&&(Y.scrollbarY=je.first),A.iGM(je=A.CRH())&&(Y.scrollbarX=je.first),A.iGM(je=A.CRH())&&(Y.defaultViewPort=je.first)}},hostVars:2,hostBindings:function(I,Y){2&I&&A.ekj("ng-scrollbar",!0)},inputs:{disabled:"disabled",sensorDisabled:"sensorDisabled",pointerEventsDisabled:"pointerEventsDisabled",viewportPropagateMouseMove:"viewportPropagateMouseMove",autoHeightDisabled:"autoHeightDisabled",autoWidthDisabled:"autoWidthDisabled",viewClass:"viewClass",trackClass:"trackClass",thumbClass:"thumbClass",minThumbSize:"minThumbSize",trackClickScrollDuration:"trackClickScrollDuration",pointerEventsMethod:"pointerEventsMethod",track:"track",visibility:"visibility",appearance:"appearance",position:"position",sensorDebounce:"sensorDebounce",scrollAuditTime:"scrollAuditTime"},outputs:{updated:"updated"},exportAs:["ngScrollbar"],features:[A._Bn([{provide:_r,useExisting:oe}]),A.TTD],ngContentSelectors:Ql,decls:6,vars:4,consts:[[1,"ng-scrollbar-wrapper",3,"ngAttr"],[1,"ng-scroll-viewport-wrapper",3,"sensorDebounce","sensorDisabled","resizeSensor"],["scrollViewport","","hideNativeScrollbar",""],[4,"ngIf"],["scrollbarX",""],["scrollbarY",""]],template:function(I,Y){1&I&&(A.F$t(),A.TgZ(0,"div",0)(1,"div",1),A.NdJ("resizeSensor",function(){return Y.update()}),A.TgZ(2,"div",2)(3,"div"),A.Hsn(4),A.qZA()()(),A.YNc(5,xh,3,2,"ng-container",3),A.qZA()),2&I&&(A.Q6J("ngAttr",Y.state),A.xp6(1),A.Q6J("sensorDebounce",Y.sensorDebounce)("sensorDisabled",Y.sensorDisabled),A.xp6(4),A.Q6J("ngIf",!Y.disabled))},dependencies:[O.O5,ul,Xl,Rh,fl,gl,tc],styles:[".ng-scrollbar-measure{scrollbar-width:none;-ms-overflow-style:none} .ng-scrollbar-measure::-webkit-scrollbar{display:none}[_nghost-%COMP%]{--scrollbar-border-radius: 7px;--scrollbar-padding: 4px;--scrollbar-track-color: transparent;--scrollbar-thumb-color: rgba(0, 0, 0, .2);--scrollbar-thumb-hover-color: var(--scrollbar-thumb-color);--scrollbar-size: 5px;--scrollbar-hover-size: var(--scrollbar-size);--scrollbar-overscroll-behavior: initial;--scrollbar-transition-duration: .4s;--scrollbar-transition-delay: .8s;--scrollbar-thumb-transition: height ease-out .15s, width ease-out .15s;--scrollbar-track-transition: height ease-out .15s, width ease-out .15s;display:block;position:relative;height:100%;max-height:100%;max-width:100%;box-sizing:content-box!important}[_nghost-%COMP%] > .ng-scrollbar-wrapper[_ngcontent-%COMP%]{--scrollbar-total-size: calc(var(--scrollbar-size) + var(--scrollbar-padding) * 2);--vertical-scrollbar-size: var(--scrollbar-size);--horizontal-scrollbar-size: var(--scrollbar-size);--vertical-scrollbar-total-size: calc(var(--vertical-scrollbar-size) + var(--scrollbar-padding) * 2);--horizontal-scrollbar-total-size: calc(var(--horizontal-scrollbar-size) + var(--scrollbar-padding) * 2)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalHovered=true][_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalDragging=true][_ngcontent-%COMP%]{--vertical-scrollbar-size: var(--scrollbar-hover-size);--vertical-scrollbar-total-size: calc(var(--vertical-scrollbar-size) + var(--scrollbar-padding) * 2);cursor:default}[_nghost-%COMP%] > .ng-scrollbar-wrapper[horizontalHovered=true][_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[horizontalDragging=true][_ngcontent-%COMP%]{--horizontal-scrollbar-size: var(--scrollbar-hover-size);--horizontal-scrollbar-total-size: calc(var(--horizontal-scrollbar-size) + var(--scrollbar-padding) * 2);cursor:default}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=ltr][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{left:0;right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{padding-right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=rtl][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{left:var(--scrollbar-total-size);right:0}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{padding-left:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=ltr][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=ltr][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{left:var(--scrollbar-total-size);right:0}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{padding-left:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=rtl][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=rtl][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{left:0;right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{padding-right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{top:0;bottom:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{padding-bottom:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertX][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertAll][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{top:var(--scrollbar-total-size);bottom:0}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertX][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertX][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertAll][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertAll][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{padding-top:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{scrollbar-width:none;-ms-overflow-style:none}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%]::-webkit-scrollbar, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport::-webkit-scrollbar{display:none}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-native-scrollbar-hider[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-native-scrollbar-hider{bottom:var(--native-scrollbar-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][verticalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-native-scrollbar-hider[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][verticalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-native-scrollbar-hider{left:0;right:var(--native-scrollbar-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][verticalUsed=true][dir=rtl][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-native-scrollbar-hider[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][verticalUsed=true][dir=rtl][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-native-scrollbar-hider{right:0;left:var(--native-scrollbar-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][visibility=hover][_ngcontent-%COMP%] > .scrollbar-control[_ngcontent-%COMP%]{opacity:0;transition-property:opacity;transition-duration:var(--scrollbar-transition-duration);transition-delay:var(--scrollbar-transition-delay)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][visibility=hover][_ngcontent-%COMP%]:hover > .scrollbar-control[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][visibility=hover][_ngcontent-%COMP%]:active > .scrollbar-control[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][visibility=hover][_ngcontent-%COMP%]:focus > .scrollbar-control[_ngcontent-%COMP%]{opacity:1;transition-duration:var(--scrollbar-transition-duration);transition-delay:0ms}[_nghost-%COMP%] > .ng-scrollbar-wrapper[horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{overflow-x:auto;overflow-y:hidden}[_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{overflow-y:auto;overflow-x:hidden}[_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalUsed=true][horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalUsed=true][horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{overflow:auto}.ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{overflow:hidden}.ng-scroll-viewport[_ngcontent-%COMP%]{-webkit-overflow-scrolling:touch;contain:strict;will-change:scroll-position;overscroll-behavior:var(--scrollbar-overscroll-behavior)} .ng-scroll-content{position:relative!important;display:inline-block;min-width:100%}.ng-scrollbar-wrapper[_ngcontent-%COMP%], .ng-scroll-viewport-wrapper[_ngcontent-%COMP%], .ng-scroll-layer[_ngcontent-%COMP%], .ng-scroll-viewport{position:absolute;left:0;right:0;top:0;bottom:0}",".ng-scrollbar-wrapper[pointerEventsMethod=viewport]>.scrollbar-control{pointer-events:none} .ng-scrollbar-wrapper[horizontalDragging=true]>.ng-scroll-viewport-wrapper>.ng-scroll-viewport, .ng-scrollbar-wrapper[horizontalDragging=true]>.ng-scroll-viewport-wrapper>*>*> .ng-scroll-viewport, .ng-scrollbar-wrapper[verticalDragging=true]>.ng-scroll-viewport-wrapper>.ng-scroll-viewport, .ng-scrollbar-wrapper[verticalDragging=true]>.ng-scroll-viewport-wrapper>*>*> .ng-scroll-viewport, .ng-scrollbar-wrapper[scrollbarClicked=true]>.ng-scroll-viewport-wrapper>.ng-scroll-viewport, .ng-scrollbar-wrapper[scrollbarClicked=true]>.ng-scroll-viewport-wrapper>*>*> .ng-scroll-viewport{-webkit-user-select:none;-moz-user-select:none;user-select:none} .ng-scrollbar-wrapper>.scrollbar-control{position:absolute;display:flex;justify-content:center;align-items:center;transition:var(--scrollbar-track-transition)} .ng-scrollbar-wrapper>.scrollbar-control[scrollable=false] .ng-scrollbar-thumb{display:none} .ng-scrollbar-track{height:100%;width:100%;z-index:1;border-radius:var(--scrollbar-border-radius);background-color:var(--scrollbar-track-color);overflow:hidden;transition:var(--scrollbar-track-transition);cursor:default} .ng-scrollbar-thumb{box-sizing:border-box;position:relative;border-radius:inherit;background-color:var(--scrollbar-thumb-color);transform:translateZ(0);transition:var(--scrollbar-thumb-transition)}"],changeDetection:0}),oe})(),ic=(()=>{class oe{static withConfig(I){return{ngModule:oe,providers:[{provide:hl,useValue:I}]}}}return oe.\u0275fac=function(I){return new(I||oe)},oe.\u0275mod=A.oAB({type:oe}),oe.\u0275inj=A.cJS({imports:[O.ez,xr.vT,sa.eL,Fr.ud,ko]}),oe})();var Sa=p(51214),rd=p(73228),ad=p(36769),od=p(22465);function sd(oe,U){if(1&oe){const I=A.EpF();A.TgZ(0,"div")(1,"perun-web-apps-notification",2),A.NdJ("closeNotification",function(){const dt=A.CHM(I).index,Ot=A.oxw();return A.KtG(Ot.removeNotification(dt))}),A.qZA()()}if(2&oe){const I=U.$implicit;A.Q6J("@flyInOut",void 0),A.xp6(1),A.Q6J("data",I)("newNotification",!0)}}const ld=function(oe){return{top:oe}};let ca=(()=>{class oe{constructor(I,Y){this.notificator=I,this.notificationStorageService=Y,this.displayWarning=!1,this.minWidth=992,this.notifications=[],this.mobileView=!1,this.notificator.addNotification.subscribe(je=>{this.processNotification(je)}),this.getScreenSize()}getScreenSize(){this.mobileView=window.innerWidth<=this.minWidth}getNotificatorTop(){return this.mobileView?"initial":this.displayWarning?"112px":"64px"}removeNotification(I){this.notifications.splice(I,1)}processNotification(I){this.notifications.push(I),this.notificationStorageService.storeNotification(I)}}return oe.\u0275fac=function(I){return new(I||oe)(A.Y36(b.V6),A.Y36(b.SZ))},oe.\u0275cmp=A.Xpm({type:oe,selectors:[["perun-web-apps-notificator"]],hostBindings:function(I,Y){1&I&&A.NdJ("resize",function(dt){return Y.getScreenSize(dt)},!1,A.Jf7)},inputs:{displayWarning:"displayWarning"},decls:2,vars:4,consts:[["id","notificator",3,"ngStyle"],[4,"ngFor","ngForOf"],[3,"data","newNotification","closeNotification"]],template:function(I,Y){1&I&&(A.TgZ(0,"div",0),A.YNc(1,sd,2,3,"div",1),A.qZA()),2&I&&(A.Q6J("ngStyle",A.VKq(2,ld,Y.getNotificatorTop())),A.xp6(1),A.Q6J("ngForOf",Y.notifications))},dependencies:[O.sg,O.PC,od.c],styles:["#notificator[_ngcontent-%COMP%]{position:fixed;right:0;z-index:1001;padding:8px}@media (max-width: 768px){#notificator[_ngcontent-%COMP%]{width:100%;top:auto;top:initial;bottom:0}}"],data:{animation:[ad.Pd]}}),oe})();var bo=p(46453);const cd={provide:Et.TP,useExisting:(0,A.Gpc)(()=>b.yC),multi:!0};function dd(oe){return new Ke(oe,"./assets/i18n/",".json")}function ud(oe){const U={basePath:oe.getProperty("api_url")};return new m.VK(U)}const hd=oe=>()=>oe.initialize();let pd=(()=>{class oe{constructor(I,Y){this.customIconService=I,this.translate=Y,this.translate.setDefaultLang("en"),this.translate.use("en"),this.customIconService.registerPerunRefreshIcon()}}return oe.\u0275fac=function(I){return new(I||oe)(A.LFG(b.EB),A.LFG(w.sK))},oe.\u0275mod=A.oAB({type:oe,bootstrap:[we.y]}),oe.\u0275inj=A.cJS({providers:[rr,{provide:A.ip1,useFactory:hd,multi:!0,deps:[rr]},{provide:m.VK,useFactory:ud,deps:[b.d6]},{provide:C.wN,useClass:Ut},b.EB,{provide:qt,useClass:b.sM},b.yC,cd,{provide:Sa.Hy,useFactory:()=>localStorage}],imports:[fo,e.b2,Et.JF,st.m,ai,re,te.Ps,Mr,w.aw.forRoot({loader:{provide:w.Zw,useFactory:dd,deps:[Et.eN]}}),m.au,t.ez,l,ic.withConfig({autoWidthDisabled:!1,visibility:"hover"}),Sa.zr.forRoot()]}),oe})();A.B6R(we.y,function(){return[O.O5,O.PC,C.lC,te.Hw,rd.V,z.JX,z.TM,z.Rh,c.$,ca,bo.Y,Ue,nc]},[]),(0,A.G48)(),e.q6().bootstrapModule(pd).catch(oe=>console.error(oe))},11243:(Xe,ue,p)=>{"use strict";p.d(ue,{r:()=>C});var e=p(36895),A=p(94650);let C=(()=>{class M{}return M.\u0275fac=function(b){return new(b||M)},M.\u0275mod=A.oAB({type:M}),M.\u0275inj=A.cJS({imports:[e.ez]}),M})()},6335:(Xe,ue,p)=>{"use strict";p.d(ue,{Ng:()=>M,Rc:()=>A,pI:()=>C});var e=p(94650);const A="GUI_CONFIG.PREF_PAGE_SIZE",C="GUI_CONFIG.PREF_PAGE_SIZE.";let M=(()=>{class m{getString(D){return localStorage.getItem(D)}getNumber(D){return parseInt(localStorage.getItem(D),10)}setNumber(D,v){localStorage.setItem(D,v.toString())}}return m.\u0275fac=function(D){return new(D||m)},m.\u0275prov=e.Yz7({token:m,factory:m.\u0275fac,providedIn:"root"}),m})()},10036:(Xe,ue,p)=>{"use strict";p.d(ue,{$I:()=>jt,$V:()=>c,$t:()=>Kt,AA:()=>B,Ad:()=>he,Af:()=>F,Aj:()=>De,BV:()=>Le,Bf:()=>t,CE:()=>ne,CP:()=>M,Cf:()=>xe,DR:()=>Ce,FF:()=>It,H2:()=>q,HC:()=>le,HE:()=>Et,Hi:()=>Q,Is:()=>Ue,It:()=>E,Iz:()=>_,JO:()=>r,Jf:()=>Ee,KE:()=>N,M8:()=>Re,NG:()=>X,NL:()=>_e,O7:()=>V,O9:()=>nt,RS:()=>se,S7:()=>S,Sb:()=>k,US:()=>l,VR:()=>w,W1:()=>ge,Wv:()=>Te,XH:()=>an,YF:()=>D,_7:()=>be,_c:()=>we,aL:()=>Ne,bf:()=>Z,bj:()=>Cn,cL:()=>Be,d7:()=>Ae,dB:()=>C,dI:()=>z,dK:()=>st,e5:()=>i,ee:()=>at,eq:()=>vt,g:()=>re,gB:()=>ee,gG:()=>d,gc:()=>v,iQ:()=>a,j1:()=>ie,kO:()=>Se,kZ:()=>Ye,nT:()=>b,oK:()=>u,qV:()=>T,qy:()=>pe,rF:()=>ve,rc:()=>ce,tY:()=>W,tw:()=>m,uC:()=>fe,uI:()=>on,uM:()=>L,v1:()=>R,vq:()=>ye,xt:()=>te,xx:()=>O,yW:()=>Ke,z6:()=>h,zW:()=>ze,zp:()=>s});var e=p(6335),A=p(94650);let C=(()=>{class Tt{constructor(Ze){this.guiConfigService=Ze,this.defaultTableSizes=new Map,this.defaultTableSizes.set(ve,25),this.defaultTableSizes.set(L,25)}getTablePageSize(Ze){const wt=this.guiConfigService.getNumber(e.pI+Ze);if(!isNaN(wt))return wt;const Ft=this.guiConfigService.getNumber(e.Rc);return isNaN(Ft)?this.defaultTableSizes.get(Ze)??10:Ft}setTablePageSize(Ze,wt){this.guiConfigService.setNumber(e.pI+Ze,wt)}}return Tt.\u0275fac=function(Ze){return new(Ze||Tt)(A.LFG(e.Ng))},Tt.\u0275prov=A.Yz7({token:Tt,factory:Tt.\u0275fac,providedIn:"root"}),Tt})();const M="0",m="1",b="2",D="3",v="4",R="5",B="6",w="7",L="8",O="9",q="10",te="11",z="12",ie="13",Te="14",pe="15",Le="16",T="17",W="18",F="19",V="20",ee="21",Q="22",Ee="23",ge="24",ve="25",De="26",he="27",Ye="28",Be="29",se="30",le="31",N="32",k="33",be="34",Z="35",ce="36",xe="37",vt="42",X="43",nt="44",Ae="45",ye="46",_e="47",Se="48",Ne="49",Ce="50",fe="51",r="52",u="53",_="54",E="55",h="56",a="57",i="58",t="59",s="62",l="63",d="64",c="65",S="66",ze="69",ne="71",Ue="72",Re="75",re="76",we="77",st="78",Ke="79",Et="80",at="82",It="83",jt="84",an="85",Kt="86",on="87",Cn="88"},36769:(Xe,ue,p)=>{"use strict";p.d(ue,{Ji:()=>m,Pd:()=>C,BQ:()=>A,Ly:()=>M,GH:()=>v,Ls:()=>R,SG:()=>D,es:()=>b});var e=p(37340);const A=(0,e.X$)("openClose",[(0,e.SB)("open",(0,e.oB)({overflow:"hidden"})),(0,e.SB)("closed",(0,e.oB)({height:"0px",overflow:"hidden"})),(0,e.eR)("open <=> closed",[(0,e.jt)(".3s ease-in")])]),C=(0,e.X$)("flyInOut",[(0,e.eR)(":enter",[(0,e.oB)({transform:"translateX(100%)"}),(0,e.jt)(".25s")]),(0,e.eR)(":leave",[(0,e.jt)(".5s",(0,e.oB)({transform:"translateX(100%)"}))])]),M=(0,e.X$)("rollInOut",[(0,e.eR)(":enter",[(0,e.oB)({height:"0px"}),(0,e.jt)(".25s")]),(0,e.eR)(":leave",[(0,e.jt)(".25s",(0,e.oB)({height:"0px"}))])]),m=(0,e.X$)("routeAnimations",[(0,e.eR)("* => *",[(0,e.oB)({position:"relative"}),(0,e.IO)(":enter",[(0,e.oB)({width:"100%",opacity:0})],{optional:!0}),(0,e.IO)(":leave",[(0,e.oB)({position:"absolute",width:"100%",opacity:1}),(0,e.jt)("0.15s",(0,e.oB)({position:"absolute",width:"100%",opacity:0}))],{optional:!0}),(0,e.IO)(":enter",[(0,e.oB)({position:"absolute",width:"100%",opacity:0}),(0,e.jt)("0.15s",(0,e.oB)({position:"absolute",width:"100%",opacity:1}))],{optional:!0})])]),b=(0,e.X$)("tagsOpenClose",[(0,e.SB)("open",(0,e.oB)({})),(0,e.SB)("closed",(0,e.oB)({width:"0px",height:"0px"})),(0,e.eR)("open <=> closed",[(0,e.jt)(".3s ease-in")])]),D=(0,e.X$)("switchAnimations",[(0,e.eR)("true => false",[(0,e.IO)(":enter, :leave",(0,e.oB)({})),(0,e.ru)([(0,e.IO)(":enter",[(0,e.oB)({transform:"translateX(-100%)"}),(0,e.jt)("1s ease-in-out",(0,e.oB)({transform:"translateX(0%)"}))],{optional:!0}),(0,e.IO)(":leave",[(0,e.oB)({transform:"translateX(0%)",position:"absolute"}),(0,e.jt)("1s ease-in-out",(0,e.oB)({transform:"translateX(100%)"}))],{optional:!0})])]),(0,e.eR)("false => true",[(0,e.IO)(":enter, :leave",(0,e.oB)({})),(0,e.ru)([(0,e.IO)(":enter",[(0,e.oB)({transform:"translateX(100%)"}),(0,e.jt)("1s ease-in-out",(0,e.oB)({transform:"translateX(0%)"}))],{optional:!0}),(0,e.IO)(":leave",[(0,e.oB)({transform:"translateX(0%)",position:"absolute"}),(0,e.jt)("1s ease-in-out",(0,e.oB)({transform:"translateX(-100%)"}))],{optional:!0})])])]),v=(0,e.X$)("slideInOutLeft",[(0,e.eR)(":enter",[(0,e.oB)({transform:"translateX(-100%)",position:"relative"}),(0,e.jt)("0.5s ease-in",(0,e.oB)({transform:"translateX(0%)"}))]),(0,e.eR)(":leave",[(0,e.jt)("0.5s ease-in",(0,e.oB)({transform:"translateX(-100%)"}))])]),R=(0,e.X$)("slideInOutRight",[(0,e.eR)(":enter",[(0,e.oB)({transform:"translateX(100%)",position:"fixed"}),(0,e.jt)("0.5s ease-in",(0,e.oB)({transform:"translateX(0%)"}))]),(0,e.eR)(":leave",[(0,e.oB)({transform:"translateX(-100%)",position:"relative"}),(0,e.jt)("0.5s ease-in",(0,e.oB)({transform:"translateX(100%)"}))])])},37433:(Xe,ue,p)=>{"use strict";p.d(ue,{Mw:()=>xe.M,CZ:()=>l.C,Ld:()=>J.L,qG:()=>fe.qG,Sx:()=>Ne.S,y9:()=>r,Nj:()=>nt.N,ez:()=>Z,N7:()=>o});var e=p(36895),A=p(56709),C=p(30671),M=p(89383),m=p(94364),b=p(96308),D=p(98739),v=p(51572),R=p(63189),B=p(97392),w=p(28255),L=p(4859),O=p(10266),q=p(59549),te=p(24006),z=p(284),ie=p(77331),Te=p(73555),pe=p(3238),Le=p(19516),T=p(22465),W=p(64425),F=p(35423),V=p(99602),ee=p(71948),Q=p(84385),Ee=p(33231),ge=p(67376),ve=p(65412),De=p(9244),he=p(60900),Ye=p(42673),Be=p(21029),se=p(94650),le=p(98380),N=p(34447);let k=(()=>{class ht extends pe.LF{format(et,ne){return"input"===ne?`${et.getDate().toString()}.${(et.getMonth()+1).toString()}.${et.getFullYear()}`:et.toDateString()}}return ht.\u0275fac=function(){let ze;return function(ne){return(ze||(ze=se.n5z(ht)))(ne||ht)}}(),ht.\u0275prov=se.Yz7({token:ht,factory:ht.\u0275fac}),ht})();const be={parse:{dateInput:{month:"short",year:"numeric",day:"numeric"}},display:{dateInput:"input",monthYearLabel:{year:"numeric",month:"numeric"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let Z=(()=>{class ht{}return ht.\u0275fac=function(et){return new(et||ht)},ht.\u0275mod=se.oAB({type:ht}),ht.\u0275inj=se.cJS({providers:[{provide:pe._A,useClass:k},{provide:pe.sG,useValue:be}],imports:[e.ez,A.p9,C.p0,te.u5,ie.Hi,Te._t,M.aw,m.Bz,b.JX,D.TU,v.Cq,R.r,B.Ps,w.Tx,L.ot,O.AV,q.lN,te.UX,z.c,pe.si,Le.d4,W.Iq,F.dp,V.FA,ee.Fk,pe.Ng,Q.LD,Ee.Co,ge.Cl,ve.Is,De.Je,he.C,Ye.g]}),ht})();se.B6R(Be.Us,[e.O5,le.w,L.lW,ge.xd,ge.x0,ge.N7,ve.uh,ve.H8,T.c],[M.X$,N.a]),p(53984);var xe=p(43532),nt=(p(38719),p(21963),p(28820),p(63167),p(62109),p(80275),p(53599)),Ne=(p(25788),p(58956),p(41619),p(61150),p(63312)),fe=(p(52314),p(52170));let r=(()=>{class ht{constructor(et){this.router=et}redirectToHome(){this.router.navigate(["/home"],{queryParamsHandling:"merge"})}}return ht.\u0275fac=function(et){return new(et||ht)(se.Y36(m.F0))},ht.\u0275cmp=se.Xpm({type:ht,selectors:[["perun-web-apps-not-authorized-page"]],decls:10,vars:9,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5"],[1,"page-title"],["mat-stroked-button","",1,"mt-2",3,"click"]],template:function(et,ne){1&et&&(se.TgZ(0,"div",0)(1,"h1",1),se._uU(2),se.ALo(3,"translate"),se.qZA(),se.TgZ(4,"div"),se._uU(5),se.ALo(6,"translate"),se.qZA(),se.TgZ(7,"button",2),se.NdJ("click",function(){return ne.redirectToHome()}),se._uU(8),se.ALo(9,"translate"),se.qZA()()),2&et&&(se.xp6(2),se.Oqu(se.lcZ(3,3,"GENERAL.NOT_AUTHORIZED_PAGE.TITLE")),se.xp6(3),se.Oqu(se.lcZ(6,5,"GENERAL.NOT_AUTHORIZED_PAGE.DESC")),se.xp6(3),se.hij(" ",se.lcZ(9,7,"GENERAL.NOT_AUTHORIZED_PAGE.REDIRECT")," "))},dependencies:[L.lW,M.X$]}),ht})();p(2541),p(74006);var E=p(81591),h=p(61744),a=p(95017),i=p(96338);function t(ht,ze){if(1&ht){const et=se.EpF();se.TgZ(0,"mat-list-item",4)(1,"p",5),se.NdJ("click",function(){const He=se.CHM(et).$implicit,Pe=se.oxw();return se.KtG(Pe.showWholeKey(He))}),se._uU(2),se.qZA(),se.TgZ(3,"button",6),se.ALo(4,"translate"),se.ALo(5,"customTranslate"),se.TgZ(6,"mat-icon"),se._uU(7," file_copy "),se.qZA()(),se.TgZ(8,"button",7),se.NdJ("click",function(){const He=se.CHM(et).$implicit,Pe=se.oxw();return se.KtG(Pe.removeKey(He,!1))}),se.ALo(9,"translate"),se.ALo(10,"customTranslate"),se.TgZ(11,"mat-icon"),se._uU(12," delete "),se.qZA()()()}if(2&ht){const et=ze.$implicit;se.xp6(2),se.Oqu(et),se.xp6(1),se.s9C("matTooltip",se.lcZ(4,4,se.lcZ(5,6,"SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.COPY_TOOLTIP"))),se.Q6J("cdkCopyToClipboard",et),se.xp6(5),se.s9C("matTooltip",se.lcZ(9,8,se.lcZ(10,10,"SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.REMOVE_TOOLTIP")))}}function n(ht,ze){if(1&ht){const et=se.EpF();se.TgZ(0,"mat-list-item",4)(1,"label",8),se.NdJ("click",function(){const He=se.CHM(et).$implicit,Pe=se.oxw();return se.KtG(Pe.showWholeKey(He))}),se._uU(2),se.qZA(),se.TgZ(3,"button",9)(4,"mat-icon"),se._uU(5," file_copy "),se.qZA()(),se.TgZ(6,"button",10),se.NdJ("click",function(){const He=se.CHM(et).$implicit,Pe=se.oxw();return se.KtG(Pe.removeKey(He,!0))}),se.TgZ(7,"mat-icon"),se._uU(8," delete "),se.qZA()()()}if(2&ht){const et=ze.$implicit;se.xp6(2),se.Oqu(et),se.xp6(1),se.Q6J("cdkCopyToClipboard",et)}}let o=(()=>{class ht{constructor(et,ne,Ue,He,Pe){this.store=et,this.attributesManagerService=ne,this.dialog=Ue,this.translateService=He,this.entityStorageService=Pe,this.adminKeys=[],this.userKeys=[],this.userUrn="urn:perun:user:attribute-def:def:sshPublicKey",this.adminUrn="urn:perun:user:attribute-def:def:sshPublicAdminKey",this.selection=new a.Ov(!1,[]),this.selectionAdmin=new a.Ov(!1,[]),He.get("SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.REMOVE_DIALOG_DESCRIPTION").subscribe(Re=>this.removeDialogDescription=Re),He.get("SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.REMOVE_DIALOG_TITLE").subscribe(Re=>this.removeDialogTitle=Re),He.get("ALERTS.NO_ALT_PASSWORDS").subscribe(Re=>this.alertText=Re),He.get("SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.HEADER_COLUMN").subscribe(Re=>this.headerColumnText=Re)}ngOnInit(){this.userId=window.location.pathname.startsWith("/myProfile")?this.entityStorageService.getEntity().id:this.store.getPerunPrincipal().userId,this.translateService.onLangChange.subscribe(()=>{this.translateService.get("SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.REMOVE_DIALOG_DESCRIPTION").subscribe(et=>this.removeDialogDescription=et),this.translateService.get("SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.REMOVE_DIALOG_TITLE").subscribe(et=>this.removeDialogTitle=et),this.translateService.get("ALERTS.NO_ALT_PASSWORDS").subscribe(et=>this.alertText=et),this.translateService.get("SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.HEADER_COLUMN").subscribe(et=>this.headerColumnText=et)}),this.loading=!0,this.getUserSSH(),this.getAdminSSH()}addKey(et){const ne=(0,De.kZ)();ne.width="850px",ne.data={attribute:et?this.adminKeyAttribute:this.userKeyAttribute,userId:this.userId},this.dialog.open(Be.FJ,ne).afterClosed().subscribe(He=>{He&&(et?this.getAdminSSH():this.getUserSSH())})}removeKey(et,ne){const Ue=(0,De.kZ)();Ue.width="600px",Ue.data={values:[et],attribute:ne?this.adminKeyAttribute:this.userKeyAttribute,userId:this.userId,title:this.removeDialogTitle,description:this.removeDialogDescription},this.dialog.open(Be.eK,Ue).afterClosed().subscribe(Pe=>{Pe&&(this.loading=!0,ne?(this.getAdminSSH(),this.selectionAdmin.clear()):(this.getUserSSH(),this.selection.clear()))})}getUserSSH(){this.attributesManagerService.getUserAttributeByName(this.userId,this.userUrn).subscribe(et=>{this.userKeyAttribute=et,this.userKeys=et.value,this.loading=!1})}getAdminSSH(){this.attributesManagerService.getUserAttributeByName(this.userId,this.adminUrn).subscribe(et=>{this.adminKeyAttribute=et,this.adminKeys=et.value,this.loading=!1})}showWholeKey(et){const ne=(0,De.kZ)();ne.width="600px",ne.data={value:et},this.dialog.open(Be.iI,ne)}}return ht.\u0275fac=function(et){return new(et||ht)(se.Y36(E.d6),se.Y36(h.H8),se.Y36(ve.uw),se.Y36(M.sK),se.Y36(E.fb))},ht.\u0275cmp=se.Xpm({type:ht,selectors:[["perun-web-apps-settings-ssh-keys"]],decls:28,vars:32,consts:[[1,"page-title"],["mat-flat-button","","color","accent",1,"action-button",3,"click"],["class","dark-hover-list-item w-auto","matRipple","",4,"ngFor","ngForOf"],[1,"page-title","mt-5"],["matRipple","",1,"dark-hover-list-item","w-auto"],[1,"truncate","center-content","cursor-pointer",3,"click"],["color","accent","mat-icon-button","",1,"ml-auto","center-content",3,"cdkCopyToClipboard","matTooltip"],["color","warn","mat-icon-button","",1,"ml-2","center-content",3,"matTooltip","click"],[1,"truncate","center-content",3,"click"],["mat-icon-button","","color","accent",1,"ml-auto","center-content",3,"cdkCopyToClipboard"],["mat-icon-button","","color","warn",1,"ml-2","center-content",3,"click"]],template:function(et,ne){1&et&&(se.TgZ(0,"h1",0),se._uU(1),se.ALo(2,"translate"),se.ALo(3,"customTranslate"),se.qZA(),se.TgZ(4,"p"),se._uU(5),se.ALo(6,"translate"),se.ALo(7,"customTranslate"),se.qZA(),se.TgZ(8,"button",1),se.NdJ("click",function(){return ne.addKey(!1)}),se._uU(9),se.ALo(10,"translate"),se.ALo(11,"customTranslate"),se.qZA(),se.TgZ(12,"mat-list"),se.YNc(13,t,13,12,"mat-list-item",2),se.qZA(),se.TgZ(14,"h1",3),se._uU(15),se.ALo(16,"translate"),se.ALo(17,"customTranslate"),se.qZA(),se.TgZ(18,"p"),se._uU(19),se.ALo(20,"translate"),se.ALo(21,"customTranslate"),se.qZA(),se.TgZ(22,"button",1),se.NdJ("click",function(){return ne.addKey(!0)}),se._uU(23),se.ALo(24,"translate"),se.ALo(25,"customTranslate"),se.qZA(),se.TgZ(26,"mat-list"),se.YNc(27,n,9,2,"mat-list-item",2),se.qZA()),2&et&&(se.xp6(1),se.hij(" ",se.lcZ(2,8,se.lcZ(3,10,"SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.SSH_KEYS_TITLE")),"\n"),se.xp6(4),se.Oqu(se.lcZ(6,12,se.lcZ(7,14,"SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.SSH_KEYS_DESCRIPTION"))),se.xp6(4),se.hij(" ",se.lcZ(10,16,se.lcZ(11,18,"SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.NEW_KEY")),"\n"),se.xp6(4),se.Q6J("ngForOf",ne.userKeys),se.xp6(2),se.hij(" ",se.lcZ(16,20,se.lcZ(17,22,"SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.ADMIN_SSH_KEYS_TITLE")),"\n"),se.xp6(4),se.hij(" ",se.lcZ(20,24,se.lcZ(21,26,"SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.ADMIN_SSH_KEYS_DESCRIPTION")),"\n"),se.xp6(4),se.hij(" ",se.lcZ(24,28,se.lcZ(25,30,"SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.NEW_KEY")),"\n"),se.xp6(4),se.Q6J("ngForOf",ne.adminKeys))},dependencies:[e.sg,B.Hw,L.lW,O.gM,pe.wG,W.i3,i.i$,i.Tg,M.X$,N.a],styles:[".truncate[_ngcontent-%COMP%]{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap}.center-content[_ngcontent-%COMP%]{margin-bottom:auto;margin-top:auto}label[_ngcontent-%COMP%]:hover, .cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),ht})();p(46453);var l=p(29926),J=(p(91880),p(61880),p(12488),p(7434))},63312:(Xe,ue,p)=>{"use strict";p.d(ue,{S:()=>m,Y:()=>b});var e=p(94650),C=(p(61744),p(89383)),M=p(89593);const m={};let b=(()=>{class D{constructor(R){this.translate=R,this.item=null,this.itemSelected=new e.vpe,this.nameFunction=B=>B===m?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.NO_ITEM"):B.shortname,this.secondaryFunction=B=>B===m?"":B.id<0?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.NEW_ITEM"):"#"+String(B.id),this.searchFunction=B=>B===m?"":B.shortname+String(B.id)}}return D.\u0275fac=function(R){return new(R||D)(e.Y36(C.sK))},D.\u0275cmp=e.Xpm({type:D,selectors:[["perun-web-apps-app-form-item-search-select"]],inputs:{items:"items",item:"item"},outputs:{itemSelected:"itemSelected"},decls:4,vars:15,consts:[[3,"entities","searchFunction","mainTextFunction","secondaryTextFunction","entity","disableAutoSelect","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(R,B){1&R&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(L){return B.itemSelected.emit(L)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&R&&e.Q6J("entities",B.items)("searchFunction",B.searchFunction)("mainTextFunction",B.nameFunction)("secondaryTextFunction",B.secondaryFunction)("entity",B.item)("disableAutoSelect",!0)("selectPlaceholder",e.lcZ(1,9,"SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.SELECT_ITEM"))("findPlaceholder",e.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.FIND_ITEM"))("noEntriesText",e.lcZ(3,13,"SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.NO_ITEM_FOUND"))},dependencies:[M.i,C.X$]}),D})()},38719:(Xe,ue,p)=>{"use strict";p.d(ue,{u:()=>B});var e=p(94650),A=p(9244),C=p(36895),M=p(56709),m=p(24006),b=p(59549),D=p(64597);function v(w,L){if(1&w){const O=e.EpF();e.TgZ(0,"mat-checkbox",2),e.NdJ("change",function(){e.CHM(O);const te=e.oxw();return e.KtG(te._sendEventToParent())})("ngModelChange",function(te){e.CHM(O);const z=e.oxw();return e.KtG(z.attribute.value=te)}),e.ALo(1,"multiWordDataCy"),e.qZA()}if(2&w){const O=e.oxw();e.Q2q("data-cy","",e.lcZ(1,2,O.attribute.displayName),"-value"),e.Q6J("ngModel",O.attribute.value)}}function R(w,L){if(1&w&&(e.TgZ(0,"mat-label"),e._uU(1),e.qZA()),2&w){const O=e.oxw();e.xp6(1),e.Oqu(O.attribute.value)}}let B=(()=>{class w{constructor(){this.readonly=!1,this.sendEventToParent=new e.vpe}ngOnInit(){this.readonly||(this.readonly=(0,A.Hm)(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}}return w.\u0275fac=function(O){return new(O||w)},w.\u0275cmp=e.Xpm({type:w,selectors:[["perun-web-apps-attribute-value-boolean"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:3,vars:2,consts:[[3,"ngModel","change","ngModelChange",4,"ngIf"],[4,"ngIf"],[3,"ngModel","change","ngModelChange"]],template:function(O,q){1&O&&(e.TgZ(0,"div"),e.YNc(1,v,2,4,"mat-checkbox",0),e.YNc(2,R,2,1,"mat-label",1),e.qZA()),2&O&&(e.xp6(1),e.Q6J("ngIf",!q.readonly),e.xp6(1),e.Q6J("ngIf",q.readonly))},dependencies:[C.O5,M.oG,m.JJ,m.On,b.hX,D.R]}),w})()},21963:(Xe,ue,p)=>{"use strict";p.d(ue,{H:()=>W});var e=p(94650),A=p(29521),C=p(73555),M=p(21029),m=p(9244),b=p(65412),D=p(36895),v=p(77331),R=p(97392),B=p(4859),w=p(10266),L=p(59549),O=p(284);function q(F,V){if(1&F){const ee=e.EpF();e.TgZ(0,"mat-icon",9),e.NdJ("mousedown",function(){e.CHM(ee);const Ee=e.oxw(2);return e.KtG(Ee.dragDisabled=!1)}),e._uU(1,"drag_indicator"),e.qZA()}}function te(F,V){if(1&F){const ee=e.EpF();e.TgZ(0,"mat-icon",10),e.NdJ("click",function(){e.CHM(ee);const Ee=e.oxw().$implicit,ge=e.oxw();return e.KtG(ge.edit(Ee))}),e._uU(1,"edit"),e.qZA()}}function z(F,V){if(1&F){const ee=e.EpF();e.TgZ(0,"mat-icon",11),e.NdJ("click",function(){e.CHM(ee);const Ee=e.oxw().$implicit,ge=e.oxw();return e.KtG(ge.remove(Ee))}),e._uU(1,"cancel"),e.qZA()}}function ie(F,V){if(1&F){const ee=e.EpF();e.TgZ(0,"mat-chip",4),e.NdJ("removed",function(){const ge=e.CHM(ee).$implicit,ve=e.oxw();return ve.remove(ge),e.KtG(ve._sendEventToParent())}),e.YNc(1,q,2,0,"mat-icon",5),e.TgZ(2,"div",6),e.NdJ("click",function(){const ge=e.CHM(ee).$implicit,ve=e.oxw();return e.KtG(ve.readonly&&void 0!==ve.attribute.displayName&&ve.showValue(ge,ve.attribute.displayName))}),e._uU(3),e.qZA(),e.YNc(4,te,2,0,"mat-icon",7),e.YNc(5,z,2,0,"mat-icon",8),e.qZA()}if(2&F){const ee=V.$implicit,Q=e.oxw();e.Q6J("selectable",Q.selectable)("cdkDragData",ee)("removable",Q.removable),e.xp6(1),e.Q6J("ngIf",Q.removable),e.xp6(1),e.ekj("cursor-pointer",Q.readonly&&void 0!==Q.attribute.displayName),e.xp6(1),e.hij(" ",ee," "),e.xp6(1),e.Q6J("ngIf",Q.removable),e.xp6(1),e.Q6J("ngIf",Q.removable)}}function Te(F,V){1&F&&(e.TgZ(0,"mat-icon"),e._uU(1,"more_horiz"),e.qZA())}function pe(F,V){1&F&&(e.TgZ(0,"mat-icon"),e._uU(1,"keyboard_arrow_up"),e.qZA())}function Le(F,V){if(1&F){const ee=e.EpF();e.TgZ(0,"div",12)(1,"span",13)(2,"button",14),e.NdJ("click",function(){e.CHM(ee);const Ee=e.oxw();return e.KtG(Ee.onShowChange())}),e.YNc(3,Te,2,0,"mat-icon",15),e.YNc(4,pe,2,0,"mat-icon",15),e.qZA()()()}if(2&F){const ee=e.oxw();e.xp6(1),e.Q6J("matTooltip",ee.showMore?"Show less":"Show more")("matTooltipPosition","above"),e.xp6(2),e.Q6J("ngIf",!ee.showMore),e.xp6(1),e.Q6J("ngIf",ee.showMore)}}function T(F,V){if(1&F){const ee=e.EpF();e.TgZ(0,"mat-form-field",12)(1,"input",16),e.NdJ("matChipInputTokenEnd",function(Ee){e.CHM(ee);const ge=e.oxw();return e.KtG(ge.add(Ee))})("change",function(){e.CHM(ee);const Ee=e.oxw();return e.KtG(Ee._sendEventToParent())}),e.qZA()()}if(2&F){const ee=e.oxw(),Q=e.MAs(2);e.xp6(1),e.Q6J("matChipInputFor",Q)("matChipInputSeparatorKeyCodes",ee.separatorKeysCodes)("matChipInputAddOnBlur",ee.addOnBlur)}}let W=(()=>{class F{constructor(ee,Q){this.dialog=ee,this.changeDetector=Q,this.readonly=!1,this.sendEventToParent=new e.vpe,this.selectable=!1,this.removable=!0,this.addOnBlur=!0,this.dragDisabled=!0,this.separatorKeysCodes=[A.K5,A.OC],this.values=[],this.showMore=!1,this.defaultItemsShown=5}ngOnInit(){this.removable=!(0,m.Hm)(this.attribute)&&!this.readonly,null==this.attribute.value&&(this.attribute.value=[]),this.values=this.attribute.value,this.itemsShown=this.readonly?this.values.length:this.defaultItemsShown,this.showMore=this.readonly,this.readonly||(this.readonly=(0,m.Hm)(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}add(ee){const Q=ee.input,Ee=ee.value;(Ee||"").trim()&&(this.attribute.value.push(Ee.trim()),this.values=this.attribute.value,this.values.length>this.defaultItemsShown&&(this.showMore=!0,this.setItemsShown())),Q&&(Q.value=""),this.sendEventToParent.emit()}remove(ee){const Q=(0,m.kZ)();Q.width="400px",Q.data={name:ee},this.dialog.open(M.Wr,Q).afterClosed().subscribe(ge=>{if(ge){const ve=this.attribute.value.indexOf(ee);this.attribute.value.splice(ve,1),this.values=this.attribute.value,this.sendEventToParent.emit(),this.changeDetector.detectChanges()}})}drop(ee){this.dragDisabled=!0,(0,C.bA)(this.attribute.value,ee.previousIndex,ee.currentIndex),this.values=this.attribute.value}edit(ee){const Q=this.attribute.value.indexOf(ee),Ee=(0,m.kZ)();Ee.width="600px",Ee.data={attribute:this.attribute,index:Q},this.dialog.open(M.r2,Ee).afterClosed().subscribe(ve=>{ve&&(this.values=this.attribute.value,this.sendEventToParent.emit())})}showValue(ee,Q){const Ee=(0,m.kZ)();Ee.width="350px",Ee.data={value:ee,title:Q},this.dialog.open(M.mk,Ee)}setItemsShown(){this.itemsShown=this.showMore?this.values.length:this.defaultItemsShown}onShowChange(){this.showMore=!this.showMore,this.setItemsShown()}}return F.\u0275fac=function(ee){return new(ee||F)(e.Y36(b.uw),e.Y36(e.sBO))},F.\u0275cmp=e.Xpm({type:F,selectors:[["perun-web-apps-attribute-value-list"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:6,vars:4,consts:[["cdkDropList","","cdkDropListOrientation","vertical",1,"mat-chip-list-stacked",3,"cdkDropListDisabled","cdkDropListDropped"],["chipList",""],["class","chip-word-break","cdkDrag","",3,"selectable","cdkDragData","removable","removed",4,"ngFor","ngForOf"],["class","w-100",4,"ngIf"],["cdkDrag","",1,"chip-word-break",3,"selectable","cdkDragData","removable","removed"],["class","handle-icon",3,"mousedown",4,"ngIf"],[1,"chip-text","overflow-ellipsis",3,"click"],["class","edit-delete-icon ml-2",3,"click",4,"ngIf"],["class","edit-delete-icon",3,"click",4,"ngIf"],[1,"handle-icon",3,"mousedown"],[1,"edit-delete-icon","ml-2",3,"click"],[1,"edit-delete-icon",3,"click"],[1,"w-100"],[3,"matTooltip","matTooltipPosition"],["mat-icon-button","",1,"ml-auto",3,"click"],[4,"ngIf"],["matInput","","placeholder","New value",1,"w-100","m-0",3,"matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur","matChipInputTokenEnd","change"]],template:function(ee,Q){1&ee&&(e.TgZ(0,"div")(1,"mat-chip-list",0,1),e.NdJ("cdkDropListDropped",function(ge){return Q.drop(ge),Q._sendEventToParent()}),e.YNc(3,ie,6,9,"mat-chip",2),e.YNc(4,Le,5,4,"div",3),e.YNc(5,T,2,3,"mat-form-field",3),e.qZA()()),2&ee&&(e.xp6(1),e.Q6J("cdkDropListDisabled",Q.dragDisabled),e.xp6(2),e.Q6J("ngForOf",Q.values.slice(0,Q.itemsShown)),e.xp6(1),e.Q6J("ngIf",Q.values.length>Q.defaultItemsShown),e.xp6(1),e.Q6J("ngIf",!Q.readonly))},dependencies:[D.sg,D.O5,v.qn,v.HS,v.oH,C.Wj,C.Zt,R.Hw,B.lW,w.gM,L.KE,O.Nt],styles:[".chip-word-break[_ngcontent-%COMP%]{word-break:break-all}.chip-text[_ngcontent-%COMP%]{display:-webkit-box!important;-webkit-line-clamp:1!important;-webkit-box-orient:vertical;overflow:hidden}.mat-chip-list[_ngcontent-%COMP%] .mat-chip[_ngcontent-%COMP%]{width:auto;min-width:0}.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}.chip-word-break[_ngcontent-%COMP%] .cdk-drop-list-dragging[_ngcontent-%COMP%] .example-box[_ngcontent-%COMP%]:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}.example-box[_ngcontent-%COMP%]:last-child{border:none}.edit-delete-icon[_ngcontent-%COMP%]{font-size:18px;justify-content:center;align-items:center;display:flex}.handle-icon[_ngcontent-%COMP%]{font-size:22px;justify-content:center;align-items:center;display:flex;margin-right:4px}.mat-standard-chip[_ngcontent-%COMP%]{padding:7px 5px}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}"]}),F})()},28820:(Xe,ue,p)=>{"use strict";p.d(ue,{$:()=>Te});var e=p(21029),A=p(9244),C=p(94650),M=p(65412),m=p(36895),b=p(24006),D=p(97392),v=p(4859),R=p(10266),B=p(59549),w=p(284);function L(pe,Le){if(1&pe){const T=C.EpF();C.TgZ(0,"button",15),C.NdJ("click",function(){C.CHM(T);const F=C.oxw().index,V=C.oxw();return C.KtG(V.removeValue(F))}),C.TgZ(1,"mat-icon"),C._uU(2," indeterminate_check_box "),C.qZA()()}}function O(pe,Le){if(1&pe){const T=C.EpF();C.TgZ(0,"div",9)(1,"mat-form-field",10),C._UZ(2,"label",11),C.TgZ(3,"input",12),C.NdJ("click",function(){const V=C.CHM(T).index,ee=C.oxw();return C.KtG(ee.readonly&&ee.attribute.displayName&&ee.showValue(ee.keys[V],ee.attribute.displayName))})("ngModelChange",function(F){const ee=C.CHM(T).index,Q=C.oxw();return C.KtG(Q.keys[ee]=F)}),C.qZA()(),C.TgZ(4,"mat-form-field",10),C._UZ(5,"label",11),C.TgZ(6,"input",13),C.NdJ("click",function(){const V=C.CHM(T).$implicit,ee=C.oxw();return C.KtG(ee.readonly&&void 0!==ee.attribute.displayName&&ee.showValue(V,ee.attribute.displayName))})("ngModelChange",function(F){const ee=C.CHM(T).index,Q=C.oxw();return C.KtG(Q.values[ee]=F)}),C.qZA()(),C.YNc(7,L,3,0,"button",14),C.qZA()}if(2&pe){const T=Le.index,W=C.oxw();C.xp6(1),C.s9C("appearance",W.readonly?"none":"standard"),C.xp6(1),C.hYB("for","",W.attribute.id,"-key-",T,""),C.xp6(1),C.ekj("cursor-pointer",W.readonly&&void 0!==W.attribute.displayName),C.hYB("id","",W.attribute.id,"-key-",T,""),C.MGl("name","key-",T,""),C.Q6J("ngModel",W.keys[T])("readonly",W.readonly),C.xp6(1),C.s9C("appearance",W.readonly?"none":"standard"),C.xp6(1),C.hYB("for","",W.attribute.id,"-value-",T,""),C.xp6(1),C.ekj("cursor-pointer",W.readonly&&void 0!==W.attribute.displayName),C.MGl("name","value-",T,""),C.hYB("id","",W.attribute.id,"-value-",T,""),C.Q6J("readonly",W.readonly)("ngModel",W.values[T]),C.xp6(1),C.Q6J("ngIf",!W.readonly)}}function q(pe,Le){1&pe&&(C.TgZ(0,"mat-icon"),C._uU(1,"more_horiz"),C.qZA())}function te(pe,Le){1&pe&&(C.TgZ(0,"mat-icon"),C._uU(1,"keyboard_arrow_up"),C.qZA())}function z(pe,Le){if(1&pe){const T=C.EpF();C.TgZ(0,"button",16),C.NdJ("click",function(){C.CHM(T);const F=C.oxw();return C.KtG(F.onShowChange())}),C.YNc(1,q,2,0,"mat-icon",17),C.YNc(2,te,2,0,"mat-icon",17),C.qZA()}if(2&pe){const T=C.oxw();C.xp6(1),C.Q6J("ngIf",!T.showMore),C.xp6(1),C.Q6J("ngIf",T.showMore)}}function ie(pe,Le){if(1&pe){const T=C.EpF();C.TgZ(0,"button",18),C.NdJ("click",function(){C.CHM(T);const F=C.oxw();return C.KtG(F.addValue())}),C.TgZ(1,"mat-icon"),C._uU(2," add_box "),C.qZA()()}}let Te=(()=>{class pe{constructor(T){this.dialog=T,this.readonly=!1,this.keys=[],this.values=[],this.defaultItemsShown=3,this.showMore=!1}ngOnInit(){if(this.attribute.value){const T=new Map(Object.entries(this.attribute.value));for(const[W,F]of T.entries())this.keys.push(W),this.values.push(F)}this.itemsShown=this.readonly?this.values.length:this.defaultItemsShown,this.showMore=this.readonly,this.readonly||(this.readonly=(0,A.Hm)(this.attribute))}customTrackBy(T){return T}addValue(){this.keys.push(""),this.values.push(""),this.values.length>this.defaultItemsShown&&(this.showMore=!0,this.setItemsShown())}removeValue(T){this.keys.splice(T,1),this.values.splice(T,1)}updateAttribute(){const T={};for(let W=0;WW.defaultItemsShown),C.xp6(1),C.Q6J("ngIf",!W.readonly))},dependencies:[m.sg,m.O5,b._Y,b.Fj,b.JJ,b.JL,b.Q7,b.On,b.F,D.Hw,v.lW,R.gM,B.KE,w.Nt],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}.input-margin[_ngcontent-%COMP%]{margin-bottom:-30px}.btn-margin[_ngcontent-%COMP%]{margin-top:10px}"]}),pe})()},63167:(Xe,ue,p)=>{"use strict";p.d(ue,{_:()=>R});var e=p(94650),A=p(9244),C=p(21029),M=p(65412),m=p(24006),b=p(59549),D=p(284),v=p(64597);let R=(()=>{class B{constructor(L){this.dialog=L,this.readonly=!1,this.sendEventToParent=new e.vpe}ngOnInit(){this.value=this.attribute.value,this.readonly||(this.readonly=(0,A.Hm)(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}showValue(L,O){const q=(0,A.kZ)();q.width="350px",q.data={value:L,title:O},this.dialog.open(C.mk,q)}}return B.\u0275fac=function(L){return new(L||B)(e.Y36(M.uw))},B.\u0275cmp=e.Xpm({type:B,selectors:[["perun-web-apps-attribute-value-string"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:3,vars:8,consts:[[1,"w-100",3,"appearance"],["matInput","","type","text",1,"overflow-ellipsis",3,"readonly","ngModel","click","ngModelChange","keydown"]],template:function(L,O){1&L&&(e.TgZ(0,"mat-form-field",0)(1,"input",1),e.NdJ("click",function(){return O.readonly&&void 0!==O.value&&O.showValue(O.value,O.attribute.displayName)})("ngModelChange",function(te){return O.attribute.value=te})("keydown",function(){return O._sendEventToParent()}),e.ALo(2,"multiWordDataCy"),e.qZA()()),2&L&&(e.s9C("appearance",O.readonly?"none":"standard"),e.xp6(1),e.ekj("cursor-pointer",O.readonly&&void 0!==O.value),e.Q2q("data-cy","",e.lcZ(2,6,O.attribute.displayName),"-value"),e.Q6J("readonly",O.readonly)("ngModel",O.attribute.value))},dependencies:[m.Fj,m.JJ,m.On,b.KE,D.Nt,v.R],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}"]}),B})()},43532:(Xe,ue,p)=>{"use strict";p.d(ue,{M:()=>Le});var e=p(94650),A=p(28820),C=p(36895),M=p(38719),m=p(21963),b=p(63167),D=p(9244),v=p(21029),R=p(65412),B=p(24006),w=p(59549),L=p(284);let O=(()=>{class T{constructor(F){this.dialog=F,this.readonly=!1,this.sendEventToParent=new e.vpe}ngOnInit(){this.readonly||(this.readonly=(0,D.Hm)(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}showValue(F){const V=(0,D.kZ)();V.width="350px",V.data={value:F.value,title:F.displayName},this.dialog.open(v.mk,V)}}return T.\u0275fac=function(F){return new(F||T)(e.Y36(R.uw))},T.\u0275cmp=e.Xpm({type:T,selectors:[["perun-web-apps-attribute-value-integer"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:2,vars:5,consts:[[1,"w-100",3,"appearance"],["matInput","","type","number",1,"overflow-ellipsis",3,"readonly","ngModel","click","ngModelChange","keydown"]],template:function(F,V){1&F&&(e.TgZ(0,"mat-form-field",0)(1,"input",1),e.NdJ("click",function(){return V.readonly&&void 0!==V.attribute.value&&V.showValue(V.attribute)})("ngModelChange",function(Q){return V.attribute.value=Q})("keydown",function(){return V._sendEventToParent()}),e.qZA()()),2&F&&(e.s9C("appearance",V.readonly?"none":"standard"),e.xp6(1),e.ekj("cursor-pointer",V.readonly&&void 0!==V.attribute.value),e.Q6J("readonly",V.readonly)("ngModel",V.attribute.value))},dependencies:[B.Fj,B.wV,B.JJ,B.On,w.KE,L.Nt],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),T})();const q=["map"];function te(T,W){if(1&T){const F=e.EpF();e.TgZ(0,"perun-web-apps-attribute-value-boolean",3),e.NdJ("sendEventToParent",function(){e.CHM(F);const ee=e.oxw();return e.KtG(ee._sendEventToParent2())}),e.qZA()}if(2&T){const F=e.oxw();e.Q6J("attribute",F.attribute)("readonly",F.readonly)}}function z(T,W){if(1&T){const F=e.EpF();e.TgZ(0,"perun-web-apps-attribute-value-list",3),e.NdJ("sendEventToParent",function(){e.CHM(F);const ee=e.oxw();return e.KtG(ee._sendEventToParent2())}),e.qZA()}if(2&T){const F=e.oxw();e.Q6J("attribute",F.attribute)("readonly",F.readonly)}}function ie(T,W){if(1&T&&e._UZ(0,"perun-web-apps-attribute-value-map",4,5),2&T){const F=e.oxw();e.Q6J("attribute",F.attribute)("readonly",F.readonly)}}function Te(T,W){if(1&T){const F=e.EpF();e.TgZ(0,"perun-web-apps-attribute-value-string",3),e.NdJ("sendEventToParent",function(){e.CHM(F);const ee=e.oxw();return e.KtG(ee._sendEventToParent2())}),e.qZA()}if(2&T){const F=e.oxw();e.Q6J("attribute",F.attribute)("readonly",F.readonly)}}function pe(T,W){if(1&T){const F=e.EpF();e.TgZ(0,"perun-web-apps-attribute-value-integer",3),e.NdJ("sendEventToParent",function(){e.CHM(F);const ee=e.oxw();return e.KtG(ee._sendEventToParent2())}),e.qZA()}if(2&T){const F=e.oxw();e.Q6J("attribute",F.attribute)("readonly",F.readonly)}}let Le=(()=>{class T{constructor(){this.readonly=!1,this.sendEventToParent2=new e.vpe}updateMapAttribute(){"java.util.LinkedHashMap"===this.attribute.type&&this.mapComponent.updateAttribute()}_sendEventToParent2(){this.sendEventToParent2.emit()}}return T.\u0275fac=function(F){return new(F||T)},T.\u0275cmp=e.Xpm({type:T,selectors:[["perun-web-apps-attribute-value"]],viewQuery:function(F,V){if(1&F&&e.Gf(q,5),2&F){let ee;e.iGM(ee=e.CRH())&&(V.mapComponent=ee.first)}},inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent2:"sendEventToParent2"},decls:7,vars:5,consts:[[3,"attribute","readonly","sendEventToParent",4,"ngIf"],[3,"click"],[3,"attribute","readonly",4,"ngIf"],[3,"attribute","readonly","sendEventToParent"],[3,"attribute","readonly"],["map",""]],template:function(F,V){1&F&&(e.TgZ(0,"div"),e.YNc(1,te,1,2,"perun-web-apps-attribute-value-boolean",0),e.YNc(2,z,1,2,"perun-web-apps-attribute-value-list",0),e.TgZ(3,"div",1),e.NdJ("click",function(){return V._sendEventToParent2()}),e.YNc(4,ie,2,2,"perun-web-apps-attribute-value-map",2),e.qZA(),e.YNc(5,Te,1,2,"perun-web-apps-attribute-value-string",0),e.YNc(6,pe,1,2,"perun-web-apps-attribute-value-integer",0),e.qZA()),2&F&&(e.xp6(1),e.Q6J("ngIf","java.lang.Boolean"===V.attribute.type),e.xp6(1),e.Q6J("ngIf","java.util.ArrayList"===V.attribute.type),e.xp6(2),e.Q6J("ngIf","java.util.LinkedHashMap"===V.attribute.type),e.xp6(1),e.Q6J("ngIf","java.lang.String"===V.attribute.type||"java.lang.LargeString"===V.attribute.type),e.xp6(1),e.Q6J("ngIf","java.lang.Integer"===V.attribute.type))},dependencies:[C.O5,M.u,m.H,A.$,b._,O]}),T})()},53984:(Xe,ue,p)=>{"use strict";p.d(ue,{p:()=>N});var e=p(96308),A=p(30671),C=p(95017),M=p(43532),m=p(9244),b=p(81591),D=p(94650),v=p(36895),R=p(56709),B=p(98380),w=p(10266),L=p(18750),O=p(89383);let q=(()=>{class k{transform(Z){return"virt"===Z.namespace.split(":")[4]}}return k.\u0275fac=function(Z){return new(Z||k)},k.\u0275pipe=D.Yjl({name:"isVirtualAttribute",type:k,pure:!0}),k})();var te=p(64597),z=p(9185),ie=p(8231),Te=p(14849);function pe(k,be){if(1&k){const Z=D.EpF();D.TgZ(0,"th",18)(1,"mat-checkbox",19),D.NdJ("change",function(xe){D.CHM(Z);const ot=D.oxw(2);return D.KtG(xe?ot.masterToggle():null)}),D.ALo(2,"translate"),D.ALo(3,"masterCheckboxLabel"),D.qZA()()}if(2&k){const Z=D.oxw().ngIf,ce=D.oxw();D.xp6(1),D.Q6J("checked",ce.selection.hasValue()&&Z.all)("indeterminate",ce.selection.hasValue()&&!Z.all)("aria-label",D.lcZ(2,3,D.lcZ(3,5,Z.all)))}}const Le=function(k){return{name:k}};function T(k,be){if(1&k){const Z=D.EpF();D.TgZ(0,"td",20)(1,"mat-checkbox",21),D.NdJ("click",function(xe){return xe.stopPropagation()})("change",function(xe){const Fe=D.CHM(Z).$implicit,ut=D.oxw(2);return D.KtG(xe?ut.selection.toggle(Fe):null)}),D.ALo(2,"multiWordDataCy"),D.ALo(3,"isVirtualAttribute"),D.ALo(4,"translate"),D.ALo(5,"checkboxLabel"),D.qZA()()}if(2&k){const Z=be.$implicit,ce=D.oxw(2);D.xp6(1),D.Q2q("data-cy","",D.lcZ(2,4,Z.displayName),"-checkbox"),D.Q6J("checked",ce.selection.isSelected(Z))("disabled",D.lcZ(3,6,Z)||!Z.writable)("aria-label",D.xi3(4,8,D.lcZ(5,11,ce.selection.isSelected(Z)),D.VKq(13,Le,Z.displayName)))}}function W(k,be){1&k&&(D.ynx(0,15),D.YNc(1,pe,4,7,"th",16),D.YNc(2,T,6,15,"td",17),D.BQk())}function F(k,be){1&k&&(D.TgZ(0,"th",22),D._uU(1),D.ALo(2,"translate"),D.qZA()),2&k&&(D.xp6(1),D.hij(" ",D.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.ID")," "))}function V(k,be){if(1&k&&(D.TgZ(0,"td",23),D._uU(1),D.qZA()),2&k){const Z=be.$implicit;D.xp6(1),D.Oqu(Z.id)}}function ee(k,be){1&k&&(D.TgZ(0,"th",22),D._uU(1),D.ALo(2,"translate"),D.qZA()),2&k&&(D.xp6(1),D.hij(" ",D.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.NAME")," "))}function Q(k,be){if(1&k&&(D.TgZ(0,"td",24),D.ALo(1,"multiWordDataCy"),D.TgZ(2,"div",25),D._uU(3),D.qZA()()),2&k){const Z=be.$implicit,ce=D.oxw();D.Q2q("data-cy","",D.lcZ(1,3,Z.friendlyName),"-friendlyName"),D.xp6(2),D.s9C("matTooltip",ce.getAttributeFullName(Z)),D.xp6(1),D.hij(" ",Z.displayName," ")}}function Ee(k,be){1&k&&(D.TgZ(0,"th",26),D._uU(1),D.ALo(2,"translate"),D.qZA()),2&k&&(D.xp6(1),D.hij(" ",D.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.VALUE")," "))}function ge(k,be){if(1&k){const Z=D.EpF();D.TgZ(0,"td",24)(1,"perun-web-apps-attribute-value",27),D.NdJ("sendEventToParent2",function(){const ot=D.CHM(Z).$implicit,Fe=D.oxw();return D.KtG(Fe.onValueChange(ot))}),D.qZA()()}if(2&k){const Z=be.$implicit,ce=D.oxw();D.xp6(1),D.Q6J("attribute",Z)("readonly",ce.readonly||!Z.writable)}}function ve(k,be){1&k&&(D.TgZ(0,"th",22),D._uU(1),D.ALo(2,"translate"),D.qZA()),2&k&&(D.xp6(1),D.hij(" ",D.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.DESCRIPTION")," "))}function De(k,be){if(1&k&&(D.TgZ(0,"td",24),D._uU(1),D.qZA()),2&k){const Z=be.$implicit;D.xp6(1),D.Oqu(Z.description)}}function he(k,be){1&k&&D._UZ(0,"tr",28)}function Ye(k,be){if(1&k&&(D._UZ(0,"tr",29),D.ALo(1,"translate")),2&k){const Z=be.$implicit,ce=D.oxw();D.s9C("matTooltip",D.lcZ(1,3,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.DISABLED_HINT")),D.Q6J("matTooltipPosition","before")("matTooltipDisabled",Z.writable||ce.readonly)}}function Be(k,be){1&k&&(D.TgZ(0,"perun-web-apps-alert",30),D._uU(1),D.ALo(2,"translate"),D.qZA()),2&k&&(D.xp6(1),D.hij(" ",D.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function se(k,be){if(1&k&&(D.TgZ(0,"perun-web-apps-alert",30),D._uU(1),D.ALo(2,"translate"),D.qZA()),2&k){const Z=D.oxw();D.xp6(1),D.hij(" ",D.lcZ(2,1,Z.emptyListText),"\n")}}const le=function(k){return{all:k}};let N=(()=>{class k{constructor(Z,ce){this.authResolver=Z,this.tableCheckbox=ce,this.attributes=[],this.selection=new C.Ov(!0,[]),this.displayedColumns=["select","id","displayName","value","description"],this.inDialog=!1,this.filterValue="",this.readonly=!1,this.hiddenColumns=[],this.emptyListText="SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.EMPTY_SETTINGS",this.pageSizeOptions=m.f7}set matSort(Z){this.sort=Z,this.setDataSource()}static canBeSelected(Z){return!(0,m.Hm)(Z)&&Z.writable}static getDataForColumn(Z,ce){switch(ce){case"id":return Z.id.toString();case"displayName":return Z.displayName;case"description":return Z.description;case"value":return JSON.stringify(Z.value);case"urn":return Z.namespace+":"+Z.baseFriendlyName;default:return""}}canBeSelected(Z){return!(0,m.Hm)(Z)&&Z.writable}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(Z=>"id"!==Z)),this.dataSource=new A.by((0,m.MX)(this.attributes)),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}exportAllData(Z){(0,m.O6)((0,m.Xn)(this.dataSource.filteredData,this.displayedColumns,k.getDataForColumn),Z)}exportDisplayedData(Z){const ce=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,xe=ce+this.dataSource.paginator.pageSize;(0,m.O6)((0,m.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(ce,xe),this.displayedColumns,k.getDataForColumn),Z)}setDataSource(){this.displayedColumns=this.displayedColumns.filter(Z=>!this.hiddenColumns.includes(Z)),this.dataSource&&(this.dataSource.filterPredicate=(Z,ce)=>(0,m.Sd)(Z,ce,this.displayedColumns.concat("urn"),k.getDataForColumn),this.dataSource.sortData=(Z,ce)=>(0,m.pR)(Z,ce,k.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource,k.canBeSelected)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!0,k.canBeSelected)}updateMapAttributes(){for(const Z of this.items.toArray())"java.util.LinkedHashMap"===Z.attribute.type&&Z.updateMapAttribute()}onValueChange(Z){k.canBeSelected(Z)&&this.selection.select(Z)}getAttributeFullName(Z){return`${Z.namespace}:${Z.friendlyName}`}}return k.\u0275fac=function(Z){return new(Z||k)(D.Y36(b.x4),D.Y36(b.UA))},k.\u0275cmp=D.Xpm({type:k,selectors:[["perun-web-apps-attributes-list"]],viewQuery:function(Z,ce){if(1&Z&&(D.Gf(m.l9,7),D.Gf(e.YE,7),D.Gf(M.M,5)),2&Z){let xe;D.iGM(xe=D.CRH())&&(ce.child=xe.first),D.iGM(xe=D.CRH())&&(ce.matSort=xe.first),D.iGM(xe=D.CRH())&&(ce.items=xe)}},inputs:{attributes:"attributes",selection:"selection",displayedColumns:"displayedColumns",inDialog:"inDialog",filterValue:"filterValue",tableId:"tableId",readonly:"readonly",hiddenColumns:"hiddenColumns",emptyListText:"emptyListText"},features:[D.TTD],decls:21,vars:16,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","displayName","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size",4,"matCellDef"],["matColumnDef","displayName"],["mat-cell","",4,"matCellDef"],["matColumnDef","value"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","description"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","dark-hover-list-item",3,"matTooltip","matTooltipPosition","matTooltipDisabled",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size align-checkbox",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"checked","indeterminate","aria-label","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"checked","disabled","aria-label","click","change"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["matTooltipClass","urn-tooltip",3,"matTooltip"],["mat-header-cell",""],[3,"attribute","readonly","sendEventToParent2"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["alert_type","warn"]],template:function(Z,ce){1&Z&&(D.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),D.NdJ("exportDisplayedData",function(ot){return ce.exportDisplayedData(ot)})("exportAllData",function(ot){return ce.exportAllData(ot)}),D.TgZ(2,"table",2),D.YNc(3,W,3,0,"ng-container",3),D.ALo(4,"isAllSelected"),D.ynx(5,4),D.YNc(6,F,3,3,"th",5),D.YNc(7,V,2,1,"td",6),D.BQk(),D.ynx(8,7),D.YNc(9,ee,3,3,"th",5),D.YNc(10,Q,4,5,"td",8),D.BQk(),D.ynx(11,9),D.YNc(12,Ee,3,3,"th",10),D.YNc(13,ge,2,2,"td",8),D.BQk(),D.ynx(14,11),D.YNc(15,ve,3,3,"th",5),D.YNc(16,De,2,1,"td",8),D.BQk(),D.YNc(17,he,1,0,"tr",12),D.YNc(18,Ye,2,5,"tr",13),D.qZA()()(),D.YNc(19,Be,3,3,"perun-web-apps-alert",14),D.YNc(20,se,3,3,"perun-web-apps-alert",14)),2&Z&&(D.Q6J("hidden",0===ce.dataSource.filteredData.length),D.xp6(1),D.Q6J("tableId",ce.tableId)("dataLength",ce.dataSource.filteredData.length)("pageSizeOptions",ce.pageSizeOptions),D.xp6(1),D.Q6J("dataSource",ce.dataSource),D.xp6(1),D.Q6J("ngIf",D.VKq(14,le,D.Dn7(4,10,ce.dataSource,ce.selection.selected.length,ce.canBeSelected))),D.xp6(14),D.Q6J("matHeaderRowDef",ce.displayedColumns),D.xp6(1),D.Q6J("matRowDefColumns",ce.displayedColumns),D.xp6(1),D.Q6J("ngIf",0===ce.dataSource.filteredData.length&&0!==ce.dataSource.data.length),D.xp6(1),D.Q6J("ngIf",0===ce.dataSource.data.length))},dependencies:[v.O5,R.oG,A.BZ,A.fO,A.as,A.w1,A.Dz,A.nj,A.ge,A.ev,A.XQ,A.Gk,e.YE,e.nU,B.w,w.gM,L.l,M.M,O.X$,q,te.R,z.I,ie.G,Te.r],styles:["table[_ngcontent-%COMP%]{width:100%!important}.mat-row[_ngcontent-%COMP%]{height:auto}.mat-cell[_ngcontent-%COMP%]{padding:8px 8px 8px 0}.mat-column-select[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:50px!important}.mat-column-id[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:60px!important}.mat-column-value[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:300px!important}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:.25rem!important} .urn-tooltip{max-width:800px!important}"]}),k})()},4235:(Xe,ue,p)=>{"use strict";p.d(ue,{W:()=>R});var e=p(81591),A=p(94650),C=p(36895),M=p(97392),m=p(4859),b=p(10266),D=p(89383);const v=function(B){return{color:B}};let R=(()=>{class B{constructor(L,O){this.location=L,this.storeService=O}ngOnInit(){this.backButtonColor=this.storeService.getProperty("theme").back_button_color}goBack(){"false"===sessionStorage.getItem("onInitPage")&&this.location.back()}}return B.\u0275fac=function(L){return new(L||B)(A.Y36(C.Ye),A.Y36(e.d6))},B.\u0275cmp=A.Xpm({type:B,selectors:[["perun-web-apps-back-button"]],decls:4,vars:6,consts:[["mat-stroked-button","",1,"mb-2","mt-2",3,"ngStyle","matTooltip","click"],[1,"rotate"]],template:function(L,O){1&L&&(A.TgZ(0,"button",0),A.NdJ("click",function(){return O.goBack()}),A.ALo(1,"translate"),A.TgZ(2,"mat-icon",1),A._uU(3,"arrow_right_alt"),A.qZA()()),2&L&&(A.s9C("matTooltip",A.lcZ(1,2,"Back")),A.Q6J("ngStyle",A.VKq(4,v,O.backButtonColor)))},dependencies:[C.PC,M.Hw,m.lW,b.gM,D.X$],styles:[".rotate[_ngcontent-%COMP%]{transform:rotate(180deg) scale(1.5)}"]}),B})()},91880:(Xe,ue,p)=>{"use strict";p.d(ue,{s:()=>Ae});var e=p(94650),A=p(9244),C=p(95017),M=p(81591),m=p(30671),b=p(96308),D=p(19516),v=p(36895),R=p(29926),B=p(56709),w=p(98380),L=p(97392),O=p(4859),q=p(18750),te=p(89383),z=p(31359),ie=p(9185),Te=p(8231),pe=p(14849);let Le=(()=>{class ye{constructor(Se){this.authResolver=Se}transform(Se,Ne){return this.authResolver.isAuthorized(Ne,[Se])}}return ye.\u0275fac=function(Se){return new(Se||ye)(e.Y36(M.x4,16))},ye.\u0275pipe=e.Yjl({name:"isAuthorized",type:ye,pure:!0}),ye})();function T(ye,_e){if(1&ye){const Se=e.EpF();e.TgZ(0,"mat-checkbox",24),e.NdJ("change",function(Ce){e.CHM(Se);const fe=e.oxw(2).ngIf,r=e.oxw();return e.KtG(Ce?r.masterToggle(fe.all):null)}),e.ALo(1,"translate"),e.ALo(2,"masterCheckboxLabel"),e.qZA()}if(2&ye){const Se=e.oxw(2).ngIf,Ne=e.oxw();e.Q6J("aria-label",e.lcZ(1,3,e.lcZ(2,5,Se.all)))("checked",Ne.selection.hasValue()&&Se.all)("indeterminate",Ne.selection.hasValue()&&!Se.all)}}function W(ye,_e){if(1&ye&&(e.TgZ(0,"th",22),e.YNc(1,T,3,7,"mat-checkbox",23),e.qZA()),2&ye){const Se=e.oxw(2);e.xp6(1),e.Q6J("ngIf",Se.selection.isMultipleSelection())}}const F=function(ye){return{name:ye}};function V(ye,_e){if(1&ye){const Se=e.EpF();e.TgZ(0,"td",25)(1,"mat-checkbox",26),e.NdJ("change",function(){const fe=e.CHM(Se).$implicit,r=e.oxw(2);return e.KtG(r.toggle(fe))})("click",function(Ce){return Ce.stopPropagation()}),e.ALo(2,"translate"),e.ALo(3,"checkboxLabel"),e.qZA()()}if(2&ye){const Se=_e.$implicit,Ne=e.oxw(2);e.xp6(1),e.Q6J("aria-label",e.xi3(2,2,e.lcZ(3,5,Ne.selection.isSelected(Se)),e.VKq(7,F,Se.name)))("checked",Ne.selection.isSelected(Se))}}function ee(ye,_e){1&ye&&(e.ynx(0,19),e.YNc(1,W,2,1,"th",20),e.YNc(2,V,4,9,"td",21),e.BQk())}function Q(ye,_e){1&ye&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ye&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BAN_ON_ENTITY_LIST.BAN_ID_HEADER")," "))}function Ee(ye,_e){if(1&ye&&(e.TgZ(0,"td",28),e._uU(1),e.qZA()),2&ye){const Se=_e.$implicit;e.xp6(1),e.Oqu(Se.ban.id)}}const ge=function(ye){return{target:ye}};function ve(ye,_e){if(1&ye&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ye){const Se=e.oxw();e.xp6(1),e.hij(" ",e.xi3(2,1,"SHARED_LIB.PERUN.COMPONENTS.BAN_ON_ENTITY_LIST.TARGET_ID_HEADER",e.VKq(4,ge,Se.target))," ")}}function De(ye,_e){if(1&ye&&(e.TgZ(0,"td",28),e._uU(1),e.qZA()),2&ye){const Se=_e.$implicit;e.xp6(1),e.Oqu(Se.ban.targetId)}}function he(ye,_e){if(1&ye&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ye){const Se=e.oxw();e.xp6(1),e.hij(" ",e.xi3(2,1,"SHARED_LIB.PERUN.COMPONENTS.BAN_ON_ENTITY_LIST.TARGET_NAME_HEADER",e.VKq(4,ge,Se.target))," ")}}function Ye(ye,_e){if(1&ye&&(e.TgZ(0,"td",29),e._uU(1),e.qZA()),2&ye){const Se=_e.$implicit;let Ne;e.xp6(1),e.hij(" ",null!==(Ne=null!==(Ne=null==Se||null==Se.vo?null:Se.vo.name)&&void 0!==Ne?Ne:null==Se||null==Se.facility?null:Se.facility.name)&&void 0!==Ne?Ne:null==Se||null==Se.resource?null:Se.resource.name," ")}}const Be=function(ye){return{subject:ye}};function se(ye,_e){if(1&ye&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ye){const Se=e.oxw();e.xp6(1),e.hij(" ",e.xi3(2,1,"SHARED_LIB.PERUN.COMPONENTS.BAN_ON_ENTITY_LIST.SUBJECT_ID_HEADER",e.VKq(4,Be,Se.subject))," ")}}function le(ye,_e){if(1&ye&&(e.TgZ(0,"td",28),e._uU(1),e.qZA()),2&ye){const Se=_e.$implicit;e.xp6(1),e.Oqu(Se.ban.subjectId)}}function N(ye,_e){if(1&ye&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ye){const Se=e.oxw();e.xp6(1),e.hij(" ",e.xi3(2,1,"SHARED_LIB.PERUN.COMPONENTS.BAN_ON_ENTITY_LIST.SUBJECT_NAME_HEADER",e.VKq(4,Be,Se.subject))," ")}}function k(ye,_e){if(1&ye&&(e.TgZ(0,"td",29),e._uU(1),e.ALo(2,"userFullName"),e.qZA()),2&ye){const Se=_e.$implicit;let Ne;e.xp6(1),e.hij(" ",e.lcZ(2,1,null!==(Ne=Se.user)&&void 0!==Ne?Ne:Se.member.user)," ")}}function be(ye,_e){1&ye&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ye&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BAN_ON_ENTITY_LIST.DESCRIPTION_HEADER")," "))}function Z(ye,_e){if(1&ye&&(e.TgZ(0,"td",29),e._uU(1),e.qZA()),2&ye){const Se=_e.$implicit;e.xp6(1),e.Oqu(Se.ban.description)}}function ce(ye,_e){1&ye&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ye&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BAN_ON_ENTITY_LIST.EXPIRATION_HEADER")," "))}function xe(ye,_e){if(1&ye&&(e.TgZ(0,"td",29),e._uU(1),e.ALo(2,"date"),e.qZA()),2&ye){const Se=_e.$implicit,Ne=e.oxw();e.xp6(1),e.hij(" ",Se.ban.validityTo===Ne.EXPIRE_NEVER?"never":e.xi3(2,1,Se.ban.validityTo,"dd-MM-yyyy")," ")}}function ot(ye,_e){1&ye&&e._UZ(0,"th",30)}function Fe(ye,_e){if(1&ye){const Se=e.EpF();e.TgZ(0,"button",32),e.NdJ("click",function(){e.CHM(Se);const Ce=e.oxw().$implicit,fe=e.oxw();return e.KtG(fe.updateBan.emit(Ce))}),e.TgZ(1,"mat-icon"),e._uU(2,"edit"),e.qZA()()}}function ut(ye,_e){if(1&ye&&(e.TgZ(0,"td",29),e.YNc(1,Fe,3,0,"button",31),e.ALo(2,"isAuthorized"),e.qZA()),2&ye){const Se=_e.$implicit,Ne=e.oxw();let Ce;e.xp6(1),e.Q6J("ngIf",e.xi3(2,1,null!==(Ce=null!==(Ce=Se.vo)&&void 0!==Ce?Ce:Se.resource)&&void 0!==Ce?Ce:Se.facility,Ne.updatePolicy))}}function tt(ye,_e){1&ye&&e._UZ(0,"tr",33)}function vt(ye,_e){1&ye&&e._UZ(0,"tr",34)}function X(ye,_e){1&ye&&(e.TgZ(0,"perun-web-apps-alert",35),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ye&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BAN_ON_ENTITY_LIST.NO_BANS"),"\n"))}const nt=function(ye){return{all:ye}};let Ae=(()=>{class ye{constructor(Se,Ne,Ce){this.tableCheckbox=Se,this.authResolver=Ne,this.userName=Ce,this.selection=new C.Ov(!1,[]),this.pageSizeOptions=A.f7,this.columns=["select","banId","targetId","targetName","subjectId","subjectName","description","expiration","edit"],this.updateBan=new e.vpe,this.EXPIRE_NEVER=R.R,this.getDataForColumn=(fe,r)=>{const u=this.isFacilityBan(fe)?fe.facility:this.isResourceBan(fe)?fe.resource:fe.vo,_=this.isFacilityBan(fe)?fe.user:fe.member,E=this.isFacilityBan(fe)?fe.user:fe.member.user;switch(r){case"banId":return String(fe.ban.id);case"targetId":return String(u.id);case"targetName":return u.name;case"subjectId":return String(_.id);case"subjectName":return this.userName.transform(E);case"description":return fe.ban.description;case"expiration":return Number(fe.ban.validityTo)===this.EXPIRE_NEVER?"never":(0,v.p6)(fe.ban.validityTo,"dd-MM-yyy","en");default:return""}}}set bans(Se){this.dataSource||this.dataSourceInit(Se),0!==Se.length&&this.setHeaderLabels(Se[0]),this.dataSource.data=Se}set filter(Se){this.dataSource.filter=Se}set displayedColumns(Se){this.authResolver.isPerunAdminOrObserver()||(Se=Se.filter(Ne=>!Ne.endsWith("Id"))),this.columns=Se}exportAllData(Se){(0,A.O6)((0,A.Xn)(this.dataSource.filteredData,this.columns,this.getDataForColumn),Se)}exportDisplayedData(Se){const Ne=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,Ce=Ne+this.dataSource.paginator.pageSize;(0,A.O6)((0,A.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(Ne,Ce),this.columns,this.getDataForColumn),Se)}toggle(Se){this.selection.toggle(Se)}masterToggle(Se){this.tableCheckbox.masterToggle(Se,this.selection,this.dataSource.filter,this.dataSource,this.dataSource.sort,this.dataSource.paginator.pageSize,this.dataSource.paginator.pageIndex,!1)}dataSourceInit(Se){this.dataSource=new m.by(Se),this.dataSource.sort=this.sort,this.dataSource.paginator=this.tableWrapper.paginator,this.dataSource.filterPredicate=(Ne,Ce)=>(0,A.Sd)(Ne,Ce,this.columns,this.getDataForColumn,!0),this.dataSource.sortData=(Ne,Ce)=>(0,A.pR)(Ne,Ce,this.getDataForColumn)}isFacilityBan(Se){return"facility"in Se}isResourceBan(Se){return"resource"in Se}setHeaderLabels(Se){this.isFacilityBan(Se)?(this.target="Facility",this.subject="User"):this.isResourceBan(Se)?(this.target="Resource",this.subject="Member"):(this.target="Organization",this.subject="Member")}}return ye.\u0275fac=function(Se){return new(Se||ye)(e.Y36(M.UA),e.Y36(M.x4),e.Y36(D.dp))},ye.\u0275cmp=e.Xpm({type:ye,selectors:[["perun-web-apps-ban-on-entity-list"]],viewQuery:function(Se,Ne){if(1&Se&&(e.Gf(A.l9,7),e.Gf(b.YE,7)),2&Se){let Ce;e.iGM(Ce=e.CRH())&&(Ne.tableWrapper=Ce.first),e.iGM(Ce=e.CRH())&&(Ne.sort=Ce.first)}},inputs:{selection:"selection",tableId:"tableId",updatePolicy:"updatePolicy",pageSizeOptions:"pageSizeOptions",columns:"columns",bans:"bans",filter:"filter",displayedColumns:"displayedColumns"},outputs:{updateBan:"updateBan"},features:[e._Bn([D.dp])],decls:32,vars:14,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","tableId","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","banId"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size",4,"matCellDef"],["matColumnDef","targetId"],["matColumnDef","targetName"],["mat-cell","",4,"matCellDef"],["matColumnDef","subjectId"],["matColumnDef","subjectName"],["matColumnDef","description"],["matColumnDef","expiration"],["matColumnDef","edit"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change",4,"ngIf"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-cell",""],["mat-icon-button","",3,"click",4,"ngIf"],["mat-icon-button","",3,"click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(Se,Ne){1&Se&&(e.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),e.NdJ("exportDisplayedData",function(fe){return Ne.exportDisplayedData(fe)})("exportAllData",function(fe){return Ne.exportAllData(fe)}),e.TgZ(2,"table",2),e.YNc(3,ee,3,0,"ng-container",3),e.ALo(4,"isAllSelected"),e.ynx(5,4),e.YNc(6,Q,3,3,"th",5),e.YNc(7,Ee,2,1,"td",6),e.BQk(),e.ynx(8,7),e.YNc(9,ve,3,6,"th",5),e.YNc(10,De,2,1,"td",6),e.BQk(),e.ynx(11,8),e.YNc(12,he,3,6,"th",5),e.YNc(13,Ye,2,1,"td",9),e.BQk(),e.ynx(14,10),e.YNc(15,se,3,6,"th",5),e.YNc(16,le,2,1,"td",6),e.BQk(),e.ynx(17,11),e.YNc(18,N,3,6,"th",5),e.YNc(19,k,3,3,"td",9),e.BQk(),e.ynx(20,12),e.YNc(21,be,3,3,"th",5),e.YNc(22,Z,2,1,"td",9),e.BQk(),e.ynx(23,13),e.YNc(24,ce,3,3,"th",5),e.YNc(25,xe,3,4,"td",9),e.BQk(),e.ynx(26,14),e.YNc(27,ot,1,0,"th",15),e.YNc(28,ut,3,4,"td",9),e.BQk(),e.YNc(29,tt,1,0,"tr",16),e.YNc(30,vt,1,0,"tr",17),e.qZA()()(),e.YNc(31,X,3,3,"perun-web-apps-alert",18)),2&Se&&(e.Q6J("hidden",0===Ne.dataSource.filteredData.length),e.xp6(1),e.Q6J("dataLength",Ne.dataSource.filteredData.length)("tableId",Ne.tableId)("pageSizeOptions",Ne.pageSizeOptions),e.xp6(1),e.Q6J("dataSource",Ne.dataSource),e.xp6(1),e.Q6J("ngIf",e.VKq(12,nt,e.xi3(4,9,Ne.dataSource,Ne.selection.selected.length))),e.xp6(26),e.Q6J("matHeaderRowDef",Ne.columns),e.xp6(1),e.Q6J("matRowDefColumns",Ne.columns),e.xp6(1),e.Q6J("ngIf",0===Ne.dataSource.filteredData.length))},dependencies:[v.O5,B.oG,m.BZ,m.fO,m.as,m.w1,m.Dz,m.nj,m.ge,m.ev,m.XQ,m.Gk,b.YE,b.nU,w.w,L.Hw,O.lW,q.l,v.uU,te.X$,z.d,ie.I,Te.G,pe.r,Le]}),ye})()},29926:(Xe,ue,p)=>{"use strict";p.d(ue,{C:()=>B,R:()=>R});var e=p(24006),A=p(36895),C=p(94650),M=p(59549),m=p(284),b=p(99602),D=p(71948),v=p(89383);const R=new Date(324721404e5).valueOf();let B=(()=>{class w{constructor(){this.minDate=new Date,this.validityControl=new e.NI(null),this.descriptionControl=new e.NI("")}set validity(O){this.newValidity=O&&Number(new Date(O))!==R?this.parseDate(O):"never",this.validityControl.setValue("never"!==this.newValidity?this.newValidity:this.parseDate(new Date))}set description(O){this.descriptionControl.setValue(O)}getDescription(){return this.descriptionControl.value}getValidity(){return"never"!==this.newValidity&&this.validityControl.value?this.parseDate(this.validityControl.value):null}parseDate(O){return(0,A.p6)(O,"yyyy-MM-dd","en")}}return w.\u0275fac=function(O){return new(O||w)},w.\u0275cmp=C.Xpm({type:w,selectors:[["perun-web-apps-ban-specification"]],inputs:{validity:"validity",description:"description"},decls:18,vars:18,consts:[[1,"d-flex","flex-column",3,"ngModel","ngModelChange"],[3,"value"],["color","primary",1,"cursor-pointer","mt-2",3,"click"],["readonly","","matInput","",1,"disabl",3,"formControl","min","matDatepicker"],["matSuffix","",3,"for","disabled"],[3,"disabled"],["picker",""],["value","never"],[1,"mt-3"],[1,"w-100","mt-2"],["matInput","","rows","5",3,"formControl","placeholder"]],template:function(O,q){if(1&O){const te=C.EpF();C.TgZ(0,"div")(1,"mat-radio-group",0),C.NdJ("ngModelChange",function(ie){return q.newValidity=ie}),C.TgZ(2,"mat-radio-button",1)(3,"mat-form-field",2),C.NdJ("click",function(){C.CHM(te);const ie=C.MAs(10);return C.KtG(ie.open())}),C.TgZ(4,"mat-label"),C._uU(5),C.ALo(6,"translate"),C.qZA(),C._UZ(7,"input",3)(8,"mat-datepicker-toggle",4)(9,"mat-datepicker",5,6),C.qZA()(),C.TgZ(11,"mat-radio-button",7),C._uU(12),C.ALo(13,"translate"),C.qZA()()(),C.TgZ(14,"div",8)(15,"mat-form-field",9),C._UZ(16,"textarea",10),C.ALo(17,"translate"),C.qZA()()}if(2&O){const te=C.MAs(10);C.xp6(1),C.Q6J("ngModel",q.newValidity),C.xp6(1),C.s9C("value",q.validityControl.value),C.xp6(3),C.hij(" ",C.lcZ(6,12,"SHARED_LIB.PERUN.COMPONENTS.BAN_SPECIFICATION.VALIDITY")," "),C.xp6(2),C.Q6J("formControl",q.validityControl)("min",q.minDate)("matDatepicker",te),C.xp6(1),C.Q6J("for",te)("disabled",!1),C.xp6(1),C.Q6J("disabled",!1),C.xp6(3),C.hij(" ",C.lcZ(13,14,"SHARED_LIB.PERUN.COMPONENTS.BAN_SPECIFICATION.NEVER")," "),C.xp6(4),C.s9C("placeholder",C.lcZ(17,16,"SHARED_LIB.PERUN.COMPONENTS.BAN_SPECIFICATION.DESCRIPTION")),C.Q6J("formControl",q.descriptionControl)}},dependencies:[e.Fj,e.JJ,e.On,M.KE,M.hX,M.R9,e.oH,m.Nt,b.Mq,b.hl,b.nW,D.VQ,D.U0,v.X$]}),w})()},61880:(Xe,ue,p)=>{"use strict";p.d(ue,{z:()=>B});var e=p(65412),A=p(94650),C=p(36895),M=p(4859),m=p(12488),b=p(93057),D=p(89383);function v(w,L){if(1&w){const O=A.EpF();A.TgZ(0,"perun-web-apps-member-overview-membership",4),A.NdJ("statusChanged",function(te){A.CHM(O);const z=A.oxw();return A.KtG(z.statusChanged=te)}),A.qZA()}if(2&w){const O=A.oxw();A.Q6J("member",O.member)("voId",O.voId)("openedInDialog",!0)}}function R(w,L){if(1&w){const O=A.EpF();A.TgZ(0,"perun-web-apps-member-overview-groups",4),A.NdJ("statusChanged",function(te){A.CHM(O);const z=A.oxw();return A.KtG(z.statusChanged=te)}),A.qZA()}if(2&w){const O=A.oxw();A.Q6J("member",O.member)("voId",O.voId)("openedInDialog",!0)}}let B=(()=>{class w{constructor(O,q){this.dialogRef=O,this.data=q,this.statusChanged=!1}ngOnInit(){this.theme=this.data.groupId?"group-theme":"vo-theme",this.voId=this.data.voId,this.groupId=this.data.groupId,this.member=this.data.member}cancel(){this.statusChanged?this.dialogRef.close():this.dialogRef.close("closedWithoutChange")}}return w.\u0275fac=function(O){return new(O||w)(A.Y36(e.so),A.Y36(e.WI))},w.\u0275cmp=A.Xpm({type:w,selectors:[["perun-web-apps-change-member-status-or-expiration-dialog"]],decls:8,vars:8,consts:[["mat-dialog-content","",1,"dialog-container"],[3,"member","voId","openedInDialog","statusChanged",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],[3,"member","voId","openedInDialog","statusChanged"]],template:function(O,q){1&O&&(A.TgZ(0,"div")(1,"div",0),A.YNc(2,v,1,3,"perun-web-apps-member-overview-membership",1),A.YNc(3,R,1,3,"perun-web-apps-member-overview-groups",1),A.qZA(),A.TgZ(4,"div",2)(5,"button",3),A.NdJ("click",function(){return q.cancel()}),A._uU(6),A.ALo(7,"translate"),A.qZA()()()),2&O&&(A.Tol(q.theme),A.xp6(2),A.Q6J("ngIf",!q.groupId),A.xp6(1),A.Q6J("ngIf",q.groupId),A.xp6(3),A.hij(" ",A.lcZ(7,6,"DIALOGS.CHANGE_STATUS.CANCEL")," "))},dependencies:[C.O5,M.lW,e.xY,e.H8,m.b,b.z,D.X$]}),w})()},61150:(Xe,ue,p)=>{"use strict";p.d(ue,{r:()=>L});var e=p(94650),A=p(24006),C=p(81591),M=p(36895),m=p(56709),b=p(59549),D=p(284),v=p(82322),R=p(89383);function B(O,q){if(1&O){const te=e.EpF();e.TgZ(0,"mat-checkbox",7),e.NdJ("change",function(){e.CHM(te);const ie=e.oxw();return e.KtG(ie.emitAsSubGroup())})("ngModelChange",function(ie){e.CHM(te);const Te=e.oxw();return e.KtG(Te.asSubgroup=ie)}),e._uU(1),e.ALo(2,"translate"),e.qZA()}if(2&O){const te=e.oxw();e.Q6J("labelPosition","before")("ngModel",te.asSubgroup),e.xp6(1),e.hij(" ",e.lcZ(2,3,"DIALOGS.CREATE_GROUP.AS_SUBGROUP")," ")}}function w(O,q){if(1&O){const te=e.EpF();e.TgZ(0,"perun-web-apps-group-search-select",8),e.NdJ("groupSelected",function(ie){e.CHM(te);const Te=e.oxw();return e.KtG(Te.emitParentGroup(ie))}),e.qZA()}if(2&O){const te=e.oxw();e.Q6J("disableAutoSelect",!0)("groups",te.voGroups)}}let L=(()=>{class O{constructor(te){this.store=te,this.parentGroup=null,this.voGroups=[],this.nameChanged=new e.vpe,this.descriptionChanged=new e.vpe,this.parentGroupChanged=new e.vpe,this.asSubgroupChanged=new e.vpe,this.asSubgroup=!1,this.invalidNameMessage=this.store.getProperty("group_name_error_message"),this.secondaryRegex=this.store.getProperty("group_name_secondary_regex")}ngOnInit(){this.isNotSubGroup=null===this.parentGroup,this.nameControl=new A.p4("",[A.kI.required,A.kI.pattern(this.secondaryRegex?this.secondaryRegex:""),A.kI.pattern(".*[\\S]+.*")]),this.descriptionControl=new A.p4("",[A.kI.required,A.kI.maxLength(129)]),this.selectedParent=null,this.voGroups=this.voGroups.filter(te=>"members"!==te.name)}emitName(){this.nameChanged.emit(this.nameControl.invalid?"":this.nameControl.value)}emitDescription(){this.descriptionChanged.emit(this.descriptionControl.invalid?"":this.descriptionControl.value)}emitParentGroup(te){this.selectedParent=te,this.parentGroupChanged.emit(te)}emitAsSubGroup(){this.asSubgroup||this.emitParentGroup(null),this.asSubgroupChanged.emit(this.asSubgroup)}}return O.\u0275fac=function(te){return new(te||O)(e.Y36(C.d6))},O.\u0275cmp=e.Xpm({type:O,selectors:[["perun-web-apps-create-group-form"]],inputs:{parentGroup:"parentGroup",voGroups:"voGroups"},outputs:{nameChanged:"nameChanged",descriptionChanged:"descriptionChanged",parentGroupChanged:"parentGroupChanged",asSubgroupChanged:"asSubgroupChanged"},decls:17,vars:16,consts:[[1,"dialog-container"],[3,"keyup"],[1,"w-100"],["matInput","","required","",3,"formControl","placeholder"],[1,"mt-4",3,"keyup"],[3,"labelPosition","ngModel","change","ngModelChange",4,"ngIf"],["class","long-input",3,"disableAutoSelect","groups","groupSelected",4,"ngIf"],[3,"labelPosition","ngModel","change","ngModelChange"],[1,"long-input",3,"disableAutoSelect","groups","groupSelected"]],template:function(te,z){1&te&&(e.TgZ(0,"div",0)(1,"mat-form-field",1),e.NdJ("keyup",function(){return z.emitName()}),e.TgZ(2,"label",2),e._UZ(3,"input",3),e.ALo(4,"translate"),e.qZA(),e.TgZ(5,"mat-error"),e._uU(6),e.ALo(7,"translate"),e.qZA()(),e.TgZ(8,"mat-form-field",4),e.NdJ("keyup",function(){return z.emitDescription()}),e.TgZ(9,"label",2),e._UZ(10,"textarea",3),e.ALo(11,"translate"),e.qZA(),e.TgZ(12,"mat-error"),e._uU(13),e.ALo(14,"translate"),e.qZA()(),e.YNc(15,B,3,5,"mat-checkbox",5),e.YNc(16,w,1,2,"perun-web-apps-group-search-select",6),e.qZA()),2&te&&(e.xp6(3),e.s9C("placeholder",e.lcZ(4,8,"DIALOGS.CREATE_GROUP.NAME")),e.Q6J("formControl",z.nameControl),e.xp6(3),e.hij(" ",z.invalidNameMessage.length?z.invalidNameMessage:e.lcZ(7,10,"DIALOGS.CREATE_GROUP.FILL_VALUE")," "),e.xp6(4),e.s9C("placeholder",e.lcZ(11,12,"DIALOGS.CREATE_GROUP.DESCRIPTION")),e.Q6J("formControl",z.descriptionControl),e.xp6(3),e.hij(" ",e.lcZ(14,14,"DIALOGS.CREATE_GROUP.INVALID_DESCRIPTION")," "),e.xp6(2),e.Q6J("ngIf",z.isNotSubGroup),e.xp6(1),e.Q6J("ngIf",z.asSubgroup))},dependencies:[M.O5,m.oG,A.Fj,A.JJ,A.Q7,A.On,b.TO,b.KE,A.oH,D.Nt,v.h,R.X$]}),O})()},39798:(Xe,ue,p)=>{"use strict";p.d(ue,{S:()=>D});var e=p(94650),A=p(24006),C=p(59549),M=p(284),m=p(99602),b=p(89383);let D=(()=>{class v{constructor(){this.datePicker=new e.vpe}ngOnInit(){this.startMinDate=new Date(2e3,0,1),this.endMaxDate=new Date,this.startMaxDate=this.endDate.value,this.endMinDate=this.startDate.value}dateChange(){this.datePicker.emit(),this.startMaxDate=this.endDate.value,this.endMinDate=this.startDate.value}}return v.\u0275fac=function(B){return new(B||v)},v.\u0275cmp=e.Xpm({type:v,selectors:[["perun-web-apps-date-range"]],inputs:{startDate:"startDate",endDate:"endDate"},outputs:{datePicker:"datePicker"},decls:16,vars:16,consts:[["appearance","standard",1,"mr-2",3,"click"],["matInput","","readonly","",3,"matDatepicker","min","max","formControl","dateChange"],["matSuffix","",3,"for"],["datePickerStart",""],["appearance","standard",3,"click"],["datePickerEnd",""]],template:function(B,w){if(1&B){const L=e.EpF();e.TgZ(0,"mat-form-field",0),e.NdJ("click",function(){e.CHM(L);const q=e.MAs(7);return e.KtG(q.open())}),e.TgZ(1,"mat-label"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"input",1),e.NdJ("dateChange",function(){return w.dateChange()}),e.qZA(),e._UZ(5,"mat-datepicker-toggle",2)(6,"mat-datepicker",null,3),e.qZA(),e.TgZ(8,"mat-form-field",4),e.NdJ("click",function(){e.CHM(L);const q=e.MAs(15);return e.KtG(q.open())}),e.TgZ(9,"mat-label"),e._uU(10),e.ALo(11,"translate"),e.qZA(),e.TgZ(12,"input",1),e.NdJ("dateChange",function(){return w.dateChange()}),e.qZA(),e._UZ(13,"mat-datepicker-toggle",2)(14,"mat-datepicker",null,5),e.qZA()}if(2&B){const L=e.MAs(7),O=e.MAs(15);e.xp6(2),e.Oqu(e.lcZ(3,12,"VO_DETAIL.APPLICATION.DATE.START")),e.xp6(2),e.Q6J("matDatepicker",L)("min",w.startMinDate)("max",w.startMaxDate)("formControl",w.startDate),e.xp6(1),e.Q6J("for",L),e.xp6(5),e.Oqu(e.lcZ(11,14,"VO_DETAIL.APPLICATION.DATE.END")),e.xp6(2),e.Q6J("matDatepicker",O)("min",w.endMinDate)("max",w.endMaxDate)("formControl",w.endDate),e.xp6(1),e.Q6J("for",O)}},dependencies:[A.Fj,A.JJ,C.KE,C.hX,C.R9,A.oH,M.Nt,m.Mq,m.hl,m.nW,b.X$]}),v})()},64901:(Xe,ue,p)=>{"use strict";p.d(ue,{P:()=>w});var e=p(94650),A=p(54968),C=p(54004),M=p(78372),m=p(71884),b=p(24006),D=p(59549),v=p(284),R=p(89383);const B=["input"];let w=(()=>{class L{constructor(){this.autoFocus=!1,this.control=new b.p4,this.filter=new e.vpe}ngOnInit(){this.autoFocus&&this.input.nativeElement.focus(),(0,A.R)(this.input.nativeElement,"keyup").pipe((0,C.U)(q=>q.target.value),(0,M.b)(500),(0,m.x)()).subscribe(q=>{this.control.invalid||this.filter.emit(q)})}}return L.\u0275fac=function(q){return new(q||L)},L.\u0275cmp=e.Xpm({type:L,selectors:[["perun-web-apps-debounce-filter"]],viewQuery:function(q,te){if(1&q&&e.Gf(B,7),2&q){let z;e.iGM(z=e.CRH())&&(te.input=z.first)}},inputs:{placeholder:"placeholder",autoFocus:"autoFocus",control:"control",error:"error"},outputs:{filter:"filter"},decls:6,vars:5,consts:[[1,"filter-field","mr-2"],["matInput","","data-cy","filter-input",3,"placeholder","formControl"],["input",""]],template:function(q,te){1&q&&(e.TgZ(0,"mat-form-field",0),e._UZ(1,"input",1,2),e.ALo(3,"translate"),e.TgZ(4,"mat-error"),e._uU(5),e.qZA()()),2&q&&(e.xp6(1),e.s9C("placeholder",e.lcZ(3,3,te.placeholder)),e.Q6J("formControl",te.control),e.xp6(4),e.hij(" ",te.error," "))},dependencies:[b.Fj,b.JJ,D.TO,D.KE,b.oH,v.Nt,R.X$],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:auto!important}"]}),L})()},89593:(Xe,ue,p)=>{"use strict";p.d(ue,{i:()=>F});var e=p(94650),A=p(24006),C=p(4707),M=p(77579),m=p(82722),b=p(36895),D=p(59549),v=p(3238),R=p(84385),B=p(33231),w=p(67376),L=p(97392),O=p(4859),q=p(89383);let te=(()=>{class V{constructor(){this.deselect=new e.vpe}onClickButton(Q){this.deselect.emit(Q)}}return V.\u0275fac=function(Q){return new(Q||V)},V.\u0275cmp=e.Xpm({type:V,selectors:[["perun-web-apps-deselect-button"]],outputs:{deselect:"deselect"},decls:5,vars:3,consts:[["mat-stroked-button","","data-cy","deselect-button",1,"mr-2","button-main",3,"click"]],template:function(Q,Ee){1&Q&&(e.TgZ(0,"button",0),e.NdJ("click",function(ve){return Ee.onClickButton(ve)}),e.TgZ(1,"mat-icon"),e._uU(2,"filter_list_off"),e.qZA(),e._uU(3),e.ALo(4,"translate"),e.qZA()),2&Q&&(e.xp6(3),e.hij(" ",e.lcZ(4,1,"SHARED_LIB.PERUN.COMPONENTS.ADVANCED_FILTER.CLEAR_FILTERS"),"\n"))},dependencies:[L.Hw,O.lW,q.X$],styles:[".center-icon[_ngcontent-%COMP%]{display:inline-flex}.perun-icon[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{fill:currentColor}.perun-icon[_ngcontent-%COMP%] rect[_ngcontent-%COMP%]{fill:currentColor}.perun-icon[_ngcontent-%COMP%] polygon[_ngcontent-%COMP%]{fill:currentColor}"]}),V})();const z=["scrollViewport"];function ie(V,ee){if(1&V&&(e.TgZ(0,"mat-select-trigger"),e._uU(1),e.qZA()),2&V){const Q=e.oxw();e.xp6(1),e.hij(" ",Q.multipleSelectedText()," ")}}function Te(V,ee){if(1&V&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&V){const Q=e.oxw(2);e.Tol(Q.colorByStatus(null==Q.entitiesCtrl?null:Q.entitiesCtrl.value)),e.xp6(1),e.hij(" ",Q.statusTextFunction(null==Q.entitiesCtrl?null:Q.entitiesCtrl.value)?"("+Q.statusTextFunction(null==Q.entitiesCtrl?null:Q.entitiesCtrl.value)+")":""," ")}}function pe(V,ee){if(1&V){const Q=e.EpF();e.TgZ(0,"mat-option",10),e.NdJ("onSelectionChange",function(ge){e.CHM(Q);const ve=e.oxw();return e.KtG(ve.onChange(ge))}),e._uU(1),e.TgZ(2,"span",11),e._uU(3),e.qZA(),e.YNc(4,Te,2,4,"span",12),e.qZA()}if(2&V){const Q=e.oxw();e.Q6J("value",null==Q.entitiesCtrl?null:Q.entitiesCtrl.value),e.xp6(1),e.hij(" ",Q.mainTextFunction(null==Q.entitiesCtrl?null:Q.entitiesCtrl.value)," "),e.xp6(2),e.Oqu(Q.secondaryTextFunction(null==Q.entitiesCtrl?null:Q.entitiesCtrl.value)),e.xp6(1),e.Q6J("ngIf",Q.displayStatus)}}function Le(V,ee){if(1&V&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&V){const Q=e.oxw().$implicit,Ee=e.oxw();e.Tol(Ee.colorByStatus(Q)),e.xp6(1),e.hij(" ",Ee.statusTextFunction(Q)?"("+Ee.statusTextFunction(Q)+")":""," ")}}function T(V,ee){if(1&V){const Q=e.EpF();e.TgZ(0,"mat-option",13),e.NdJ("onSelectionChange",function(ge){e.CHM(Q);const ve=e.oxw();return e.KtG(ve.onChange(ge))}),e._uU(1),e.TgZ(2,"span",11),e._uU(3),e.qZA(),e.YNc(4,Le,2,4,"span",12),e.qZA()}if(2&V){const Q=ee.$implicit,Ee=e.oxw();e.Tol(Ee.theme),e.Q6J("value",Q),e.xp6(1),e.hij(" ",Ee.mainTextFunction(Q)," "),e.xp6(2),e.Oqu(Ee.secondaryTextFunction(Q)),e.xp6(1),e.Q6J("ngIf",Ee.displayStatus)}}function W(V,ee){if(1&V){const Q=e.EpF();e.TgZ(0,"perun-web-apps-deselect-button",14),e.NdJ("deselect",function(){e.CHM(Q);const ge=e.oxw();return e.KtG(ge.deselectEvent())}),e.qZA()}}let F=(()=>{class V{constructor(Q){this.cd=Q,this.selectPlaceholder="Select",this.findPlaceholder="Find...",this.noEntriesText="Nothing found",this.disableAutoSelect=!1,this.entity=null,this.displayStatus=!1,this.multiple=!1,this.theme="",this.shouldRefresh=!1,this.entitySelected=new e.vpe,this.selectClosed=new e.vpe,this.visibleDeselectButton=!1,this.selectedEntities=[],this.entitiesCtrl=new A.p4,this.entityFilterCtrl=new A.p4,this.filteredEntities=new C.t(1),this._onDestroy=new M.x,this.entitiesLen=0,this.mainTextFunction=Ee=>JSON.stringify(Ee),this.secondaryTextFunction=Ee=>"#".concat(String(Ee.id),Ee.description?" ".concat(Ee.description):""),this.statusTextFunction=Ee=>Ee.status}ngOnInit(){!this.disableAutoSelect&&null===this.entity&&this.entitiesCtrl.setValue(this.entities[0]),this.filteredEntities.subscribe(Q=>this.entitiesLen=Q.length),this.entityFilterCtrl.valueChanges.pipe((0,m.R)(this._onDestroy)).subscribe(()=>{this.filterEntites()}),null!==this.entity&&this.entitiesCtrl.setValue(this.entity)}colorByStatus(Q){switch(Q.status){case"ACTIVE":return"green";case"INACTIVE":return"grey";case"FAILED":return"red";case"PROCESSING":return"black"}}ngOnChanges(Q){null!==this.entity&&this.entitiesCtrl.setValue(this.entity),Q.entities&&this.filteredEntities.next(this.entities.slice())}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}normalize(Q){return Q.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase()}onChange(Q){if(Q.isUserInput){const Ee=Q.source.value;if(this.multiple){if(this.selectedEntities.includes(Ee)){const ge=this.selectedEntities.indexOf(Ee);this.selectedEntities.splice(ge,1)}else this.selectedEntities.push(Ee);this.entitiesCtrl.setValue(this.selectedEntities),this.entitySelected.emit(this.selectedEntities)}else this.entitySelected.emit(Ee)}this.visibleDeselectButton=0!==this.selectedEntities.length}openChange(){this.scrollViewport.scrollToIndex(0),this.scrollViewport.checkViewportSize()}closeChange(){this.selectClosed.emit(!0)}getViewportHeight(){let Q=48*this.entitiesLen;return Q>192&&(Q=192),this.scrollViewport&&this.scrollViewport.checkViewportSize(),Q}multipleSelectedText(){const Q=this.entitiesCtrl.value;if(Q&&0!==Q.length)return Q.length===this.entities.length?"ALL":Q.length>1?this.mainTextFunction(Q[0])+` + ${Q.length-1} other(s)`:this.mainTextFunction(Q[0])+" "+this.secondaryTextFunction(Q[0])}filterEntites(){if(!this.entities)return;let Q=this.entityFilterCtrl.value;if(!Q)return this.filteredEntities.next(this.entities.slice()),void this.cd.detectChanges();Q=this.normalize(Q),this.filteredEntities.next(this.entities.filter(Ee=>this.normalize(this.searchFunction(Ee)).includes(Q))),this.cd.detectChanges()}deselectEvent(){this.visibleDeselectButton=!1,this.selectedEntities=[],this.entitiesCtrl.setValue([]),this.entitySelected.emit([]),this.selectClosed.emit(!0)}}return V.\u0275fac=function(Q){return new(Q||V)(e.Y36(e.sBO))},V.\u0275cmp=e.Xpm({type:V,selectors:[["perun-web-apps-entity-search-select"]],viewQuery:function(Q,Ee){if(1&Q&&e.Gf(z,5),2&Q){let ge;e.iGM(ge=e.CRH())&&(Ee.scrollViewport=ge.first)}},inputs:{entities:"entities",selectPlaceholder:"selectPlaceholder",findPlaceholder:"findPlaceholder",noEntriesText:"noEntriesText",disableAutoSelect:"disableAutoSelect",entity:"entity",displayStatus:"displayStatus",multiple:"multiple",theme:"theme",shouldRefresh:"shouldRefresh",searchFunction:"searchFunction",mainTextFunction:"mainTextFunction",secondaryTextFunction:"secondaryTextFunction"},outputs:{entitySelected:"entitySelected",selectClosed:"selectClosed"},features:[e.TTD],decls:12,vars:17,consts:[[1,"d-flex","flex-row","align-items-center","gap-4"],[1,"w-100","pb-0"],["data-cy","search-select-input",3,"placeholder","formControl","multiple","openedChange","closed"],[4,"ngIf"],["data-cy","find-input",3,"placeholderLabel","noEntriesFoundLabel","clearSearchInput","formControl"],["class","selected-options-bottom",3,"value","onSelectionChange",4,"ngIf"],["itemSize","48",3,"minBufferPx","maxBufferPx"],["scrollViewport",""],[3,"class","value","onSelectionChange",4,"cdkVirtualFor","cdkVirtualForOf"],["class","ml-2",3,"deselect",4,"ngIf"],[1,"selected-options-bottom",3,"value","onSelectionChange"],[1,"text-muted"],[3,"class",4,"ngIf"],[3,"value","onSelectionChange"],[1,"ml-2",3,"deselect"]],template:function(Q,Ee){1&Q&&(e.TgZ(0,"div",0)(1,"mat-form-field",1)(2,"mat-select",2),e.NdJ("openedChange",function(){return Ee.openChange()})("closed",function(){return Ee.closeChange()}),e.YNc(3,ie,2,1,"mat-select-trigger",3),e.TgZ(4,"mat-option"),e._UZ(5,"ngx-mat-select-search",4),e.qZA(),e.YNc(6,pe,5,4,"mat-option",5),e.TgZ(7,"cdk-virtual-scroll-viewport",6,7),e.YNc(9,T,5,7,"mat-option",8),e.ALo(10,"async"),e.qZA()()(),e.YNc(11,W,1,0,"perun-web-apps-deselect-button",9),e.qZA()),2&Q&&(e.xp6(2),e.s9C("placeholder",Ee.selectPlaceholder),e.Q6J("formControl",Ee.entitiesCtrl)("multiple",Ee.multiple),e.xp6(1),e.Q6J("ngIf",Ee.multiple),e.xp6(2),e.s9C("placeholderLabel",Ee.findPlaceholder),e.s9C("noEntriesFoundLabel",Ee.noEntriesText),e.Q6J("clearSearchInput",!1)("formControl",Ee.entityFilterCtrl),e.xp6(1),e.Q6J("ngIf",null==Ee.entitiesCtrl?null:Ee.entitiesCtrl.value),e.xp6(1),e.Udp("height",Ee.getViewportHeight(),"px"),e.Q6J("minBufferPx",240)("maxBufferPx",480),e.xp6(2),e.Q6J("cdkVirtualForOf",e.lcZ(10,15,Ee.filteredEntities)),e.xp6(2),e.Q6J("ngIf",Ee.visibleDeselectButton))},dependencies:[b.O5,A.JJ,D.KE,A.oH,v.ey,R.gD,R.$L,B.nu,w.xd,w.x0,w.N7,te,b.Ov],styles:[".selected-options-bottom[_ngcontent-%COMP%]{visibility:hidden;position:absolute}.green[_ngcontent-%COMP%]{color:green}.grey[_ngcontent-%COMP%]{color:gray}.red[_ngcontent-%COMP%]{color:red}.black[_ngcontent-%COMP%]{color:#000}"]}),V})()},87488:(Xe,ue,p)=>{"use strict";p.d(ue,{c:()=>R});var e=p(94650),A=p(24006),C=p(36895),M=p(59549),m=p(284),b=p(99602),D=p(71948),v=p(89383);let R=(()=>{class B{constructor(){this.expiration="never",this.datePicker=new e.vpe,this.expirationControl=new A.p4(null)}ngOnInit(){const L=new Date;this.minDate=new Date(L.getFullYear(),L.getMonth(),L.getDate()),this.expirationControl.setValue((0,C.p6)(this.minDate,"yyyy-MM-dd","en-GB"))}setExpiration(){this.expiration=(0,C.p6)(this.expirationControl.value,"yyyy-MM-dd","en-GB"),this.expirationControl.setValue((0,C.p6)(this.expirationControl.value,"yyyy-MM-dd","en-GB")),this.emitDate()}emitDate(){"never"!==this.expiration&&""===this.expirationControl.value||this.datePicker.emit(this.expiration)}}return B.\u0275fac=function(L){return new(L||B)},B.\u0275cmp=e.Xpm({type:B,selectors:[["perun-web-apps-expiration-select"]],inputs:{expiration:"expiration"},outputs:{datePicker:"datePicker"},decls:13,vars:14,consts:[[1,"d-flex","flex-column",3,"ngModel","ngModelChange","change"],["value","never"],[3,"value"],["color","primary",1,"cursor-pointer","mr-3",3,"click"],["readonly","","matInput","",1,"disable",3,"min","formControl","matDatepicker","dateChange"],["matSuffix","",3,"for","disabled"],[3,"disabled"],["picker",""]],template:function(L,O){if(1&L){const q=e.EpF();e.TgZ(0,"mat-radio-group",0),e.NdJ("ngModelChange",function(z){return O.expiration=z})("change",function(){return O.emitDate()}),e.TgZ(1,"mat-radio-button",1),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"mat-radio-button",2)(5,"mat-form-field",3),e.NdJ("click",function(){e.CHM(q);const z=e.MAs(12);return e.KtG(z.open())}),e.TgZ(6,"mat-label"),e._uU(7),e.ALo(8,"translate"),e.qZA(),e.TgZ(9,"input",4),e.NdJ("dateChange",function(){return O.setExpiration()}),e.qZA(),e._UZ(10,"mat-datepicker-toggle",5)(11,"mat-datepicker",6,7),e.qZA()()()}if(2&L){const q=e.MAs(12);e.Q6J("ngModel",O.expiration),e.xp6(2),e.hij(" ",e.lcZ(3,10,"DIALOGS.CHANGE_EXPIRATION.EXPIRATION_NEVER")," "),e.xp6(2),e.s9C("value",O.expirationControl.value),e.xp6(3),e.Oqu(e.lcZ(8,12,"DIALOGS.CHANGE_EXPIRATION.DATE_LABEL")),e.xp6(2),e.Q6J("min",O.minDate)("formControl",O.expirationControl)("matDatepicker",q),e.xp6(1),e.Q6J("for",q)("disabled",!1),e.xp6(1),e.Q6J("disabled",!1)}},dependencies:[A.Fj,A.JJ,A.On,M.KE,M.hX,M.R9,A.oH,m.Nt,b.Mq,b.hl,b.nW,D.VQ,D.U0,v.X$],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),B})()},74010:(Xe,ue,p)=>{"use strict";p.d(ue,{X:()=>ye});var e=p(96308),A=p(30671),C=p(9244),M=p(81591),m=p(94650),b=p(36895),D=p(56709),v=p(94364),R=p(98380),B=p(18750),w=p(34198),L=p(55660),O=p(10441),q=p(24006),te=p(97392),z=p(4859),ie=p(10266);function Te(_e,Se){if(1&_e&&(m.TgZ(0,"div",6),m._uU(1),m.qZA()),2&_e){const Ne=Se.$implicit,Ce=m.oxw();m.xp6(1),m.hij(" ",Ne[Ce.paramName]," ")}}function pe(_e,Se){1&_e&&(m.TgZ(0,"mat-icon"),m._uU(1,"more_horiz"),m.qZA())}function Le(_e,Se){1&_e&&(m.TgZ(0,"mat-icon"),m._uU(1,"keyboard_arrow_up"),m.qZA())}function T(_e,Se){if(1&_e){const Ne=m.EpF();m.TgZ(0,"button",7),m.NdJ("click",function(){m.CHM(Ne);const fe=m.oxw();return m.KtG(fe.onShowChange())}),m.YNc(1,pe,2,0,"mat-icon",8),m.YNc(2,Le,2,0,"mat-icon",8),m.qZA()}if(2&_e){const Ne=m.oxw();m.xp6(1),m.Q6J("ngIf",!Ne.showMore),m.xp6(1),m.Q6J("ngIf",Ne.showMore)}}let W=(()=>{class _e{constructor(){this.objects=[],this.filterValue="",this.paramName="",this.showMore=!1,this.defaultItemsShown=3}ngOnInit(){this.itemsShown=this.defaultItemsShown}ngOnChanges(){this.itemsShown=this.defaultItemsShown,this.showMore=!1}onShowChange(){this.showMore=!this.showMore,this.itemsShown=this.showMore?this.objects.length:this.defaultItemsShown}}return _e.\u0275fac=function(Ne){return new(Ne||_e)},_e.\u0275cmp=m.Xpm({type:_e,selectors:[["perun-web-apps-object-list-values"]],inputs:{objects:"objects",filterValue:"filterValue",paramName:"paramName"},features:[m.TTD],decls:7,vars:4,consts:[[1,"d-flex","w-100"],[1,"w-100"],[1,"mr-5"],["class","d-flex mb-1",4,"ngFor","ngForOf"],[3,"matTooltip","matTooltipPosition"],["mat-icon-button","",3,"click",4,"ngIf"],[1,"d-flex","mb-1"],["mat-icon-button","",3,"click"],[4,"ngIf"]],template:function(Ne,Ce){1&Ne&&(m.TgZ(0,"form",0)(1,"div",1)(2,"div",2),m.YNc(3,Te,2,1,"div",3),m.qZA(),m.TgZ(4,"div")(5,"span",4),m.YNc(6,T,3,2,"button",5),m.qZA()()()()),2&Ne&&(m.xp6(3),m.Q6J("ngForOf",Ce.objects.slice(0,Ce.itemsShown)),m.xp6(2),m.Q6J("matTooltip",Ce.showMore?"Show less":"Show more")("matTooltipPosition","above"),m.xp6(1),m.Q6J("ngIf",Ce.objects.length>Ce.defaultItemsShown))},dependencies:[b.sg,b.O5,q._Y,q.JL,q.F,te.Hw,z.lW,ie.gM]}),_e})();var F=p(89383),V=p(53561);let ee=(()=>{class _e{transform(Ne,Ce,fe){return Ne.filter(r=>r[fe].includes(Ce)).filter((r,u,_)=>_.findIndex(E=>E[fe]===r[fe])===u)}}return _e.\u0275fac=function(Ne){return new(Ne||_e)},_e.\u0275pipe=m.Yjl({name:"filterUniqueObjects",type:_e,pure:!0}),_e})();var Q=p(8231);function Ee(_e,Se){1&_e&&m._UZ(0,"th",20)}const ge=function(_e){return{name:_e}};function ve(_e,Se){if(1&_e){const Ne=m.EpF();m.TgZ(0,"td",21)(1,"mat-checkbox",22),m.NdJ("change",function(fe){const u=m.CHM(Ne).$implicit,_=m.oxw();return m.KtG(fe?_.selection.toggle(u):null)})("click",function(fe){return fe.stopPropagation()}),m.ALo(2,"translate"),m.ALo(3,"checkboxLabel"),m.qZA()()}if(2&_e){const Ne=Se.$implicit,Ce=m.oxw();m.xp6(1),m.Q2q("data-cy","",Ne.facility.name,"-checkbox"),m.Q6J("aria-label",m.xi3(2,3,m.lcZ(3,6,Ce.selection.isSelected(Ne)),m.VKq(8,ge,Ne.facility.name)))("checked",Ce.selection.isSelected(Ne))}}function De(_e,Se){1&_e&&(m.TgZ(0,"th",23),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&_e&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.ID")," "))}function he(_e,Se){if(1&_e&&(m.TgZ(0,"td",24),m._uU(1),m.qZA()),2&_e){const Ne=Se.$implicit;m.xp6(1),m.hij(" ",Ne.facility.id," ")}}function Ye(_e,Se){1&_e&&m._UZ(0,"th",25)}function Be(_e,Se){if(1&_e&&(m.TgZ(0,"td",26),m._UZ(1,"perun-web-apps-recently-viewed-icon",27),m.qZA()),2&_e){const Ne=Se.$implicit,Ce=m.oxw();m.xp6(1),m.Q6J("id",Ne.facility.id)("recentIds",Ce.recentIds)}}function se(_e,Se){1&_e&&(m.TgZ(0,"th",23),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&_e&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.NAME")," "))}function le(_e,Se){if(1&_e&&(m.TgZ(0,"td",26),m._uU(1),m.qZA()),2&_e){const Ne=Se.$implicit;m.uIk("data-cy",Ne.facility.name),m.xp6(1),m.hij(" ",Ne.facility.name," ")}}function N(_e,Se){1&_e&&(m.TgZ(0,"th",25),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&_e&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.DESCRIPTION")," "))}function k(_e,Se){if(1&_e&&(m.TgZ(0,"td",26),m._uU(1),m.qZA()),2&_e){const Ne=Se.$implicit;m.xp6(1),m.Oqu(Ne.facility.description)}}function be(_e,Se){1&_e&&(m.TgZ(0,"th",25),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&_e&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.TECHNICAL_OWNERS")," "))}function Z(_e,Se){if(1&_e&&(m.TgZ(0,"td",26),m._uU(1),m.ALo(2,"technicalOwners"),m.qZA()),2&_e){const Ne=Se.$implicit;m.xp6(1),m.Oqu(m.lcZ(2,1,Ne.owners))}}function ce(_e,Se){1&_e&&(m.TgZ(0,"th",25),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&_e&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.DESTINATIONS")," "))}function xe(_e,Se){if(1&_e){const Ne=m.EpF();m.TgZ(0,"td",26)(1,"perun-web-apps-object-list-values",28),m.NdJ("mouseenter",function(){m.CHM(Ne);const fe=m.oxw();return m.KtG(fe.localDisableRouting=!0)})("mouseleave",function(){m.CHM(Ne);const fe=m.oxw();return m.KtG(fe.localDisableRouting=!1)}),m.ALo(2,"filterUniqueObjects"),m.qZA()()}if(2&_e){const Ne=Se.$implicit,Ce=m.oxw();m.xp6(1),m.Q6J("objects",m.Dn7(2,2,Ne.destinations,Ce.filterValue,"destination"))("paramName","destination")}}function ot(_e,Se){1&_e&&(m.TgZ(0,"th",25),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&_e&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.HOSTS")," "))}function Fe(_e,Se){if(1&_e){const Ne=m.EpF();m.TgZ(0,"td",26)(1,"perun-web-apps-object-list-values",28),m.NdJ("mouseenter",function(){m.CHM(Ne);const fe=m.oxw();return m.KtG(fe.localDisableRouting=!0)})("mouseleave",function(){m.CHM(Ne);const fe=m.oxw();return m.KtG(fe.localDisableRouting=!1)}),m.ALo(2,"filterUniqueObjects"),m.qZA()()}if(2&_e){const Ne=Se.$implicit,Ce=m.oxw();m.xp6(1),m.Q6J("objects",m.Dn7(2,2,Ne.hosts,Ce.filterValue,"hostname"))("paramName","hostname")}}function ut(_e,Se){1&_e&&m._UZ(0,"tr",29)}const tt=function(_e){return["/facilities",_e]},vt=function(){return[]};function X(_e,Se){if(1&_e&&m._UZ(0,"tr",30),2&_e){const Ne=Se.$implicit,Ce=m.oxw();m.ekj("cursor-pointer",!Ce.disableRouting)("disable-outline",Ce.disableRouting),m.Q6J("perunWebAppsMiddleClickRouterLink",m.VKq(6,tt,Ne.facility.id))("routerLink",Ce.disableRouting||Ce.localDisableRouting?m.DdM(8,vt):m.VKq(9,tt,Ne.facility.id))}}function nt(_e,Se){1&_e&&(m.TgZ(0,"perun-web-apps-alert",31),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&_e&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function Ae(_e,Se){1&_e&&(m.TgZ(0,"perun-web-apps-alert",31),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&_e&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FACILITIES"),"\n"))}let ye=(()=>{class _e{constructor(Ne){this.authResolver=Ne,this.displayedColumns=["select","id","recent","name","description","technicalOwners","destinations","hosts"],this.pageSizeOptions=C.f7,this.disableRouting=!1,this.getDataForColumnFun=(Ce,fe)=>_e.getDataForColumn(Ce,fe,this.recentIds)}set matSort(Ne){this.sort=Ne}static getDataForColumn(Ne,Ce,fe){switch(Ce){case"id":return Ne.facility.id.toString();case"name":return Ne.facility.name;case"description":return Ne.facility.description;case"technicalOwners":return(0,C.te)(Ne.owners);case"recent":return fe&&fe.includes(Ne.facility.id)?"#".repeat(fe.indexOf(Ne.facility.id)):Ne.name;case"destinations":return Ne.destinations.map(r=>r.destination).join(" ; ");case"hosts":return Ne.hosts.map(r=>r.hostname).join(" ; ");default:return Ne[Ce]}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(Ne=>"id"!==Ne)),this.setDataSource()}exportAllData(Ne){(0,C.O6)((0,C.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumnFun),Ne)}exportDisplayedData(Ne){const Ce=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,fe=Ce+this.dataSource.paginator.pageSize;(0,C.O6)((0,C.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(Ce,fe),this.displayedColumns,this.getDataForColumnFun),Ne)}setDataSource(){this.dataSource||(this.dataSource=new A.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(Ne,Ce)=>(0,C.Sd)(Ne,Ce,this.displayedColumns,this.getDataForColumnFun),this.dataSource.sortData=(Ne,Ce)=>(0,C.pR)(Ne,Ce,this.getDataForColumnFun)),this.dataSource.filter=this.filterValue,this.dataSource.data=this.facilities}isAllSelected(){return this.selection.selected.length===this.dataSource.data.length}masterToggle(){this.isAllSelected()?this.selection.clear():this.dataSource.data.forEach(Ne=>this.selection.select(Ne))}}return _e.\u0275fac=function(Ne){return new(Ne||_e)(m.Y36(M.x4))},_e.\u0275cmp=m.Xpm({type:_e,selectors:[["perun-web-apps-facilities-list"]],viewQuery:function(Ne,Ce){if(1&Ne&&(m.Gf(C.l9,7),m.Gf(e.YE,7)),2&Ne){let fe;m.iGM(fe=m.CRH())&&(Ce.child=fe.first),m.iGM(fe=m.CRH())&&(Ce.matSort=fe.first)}},inputs:{facilities:"facilities",recentIds:"recentIds",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",selection:"selection",pageSizeOptions:"pageSizeOptions",disableRouting:"disableRouting"},features:[m.TTD],decls:31,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","recent"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","description"],["matColumnDef","technicalOwners"],["matColumnDef","destinations"],["matColumnDef","hosts"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-header-cell",""],["mat-cell",""],[3,"id","recentIds"],[3,"objects","paramName","mouseenter","mouseleave"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(Ne,Ce){1&Ne&&(m.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),m.NdJ("exportDisplayedData",function(r){return Ce.exportDisplayedData(r)})("exportAllData",function(r){return Ce.exportAllData(r)}),m.TgZ(2,"table",2),m.ynx(3,3),m.YNc(4,Ee,1,0,"th",4),m.YNc(5,ve,4,10,"td",5),m.BQk(),m.ynx(6,6),m.YNc(7,De,3,3,"th",7),m.YNc(8,he,2,1,"td",8),m.BQk(),m.ynx(9,9),m.YNc(10,Ye,1,0,"th",10),m.YNc(11,Be,2,2,"td",11),m.BQk(),m.ynx(12,12),m.YNc(13,se,3,3,"th",7),m.YNc(14,le,2,2,"td",11),m.BQk(),m.ynx(15,13),m.YNc(16,N,3,3,"th",10),m.YNc(17,k,2,1,"td",11),m.BQk(),m.ynx(18,14),m.YNc(19,be,3,3,"th",10),m.YNc(20,Z,3,3,"td",11),m.BQk(),m.ynx(21,15),m.YNc(22,ce,3,3,"th",10),m.YNc(23,xe,3,6,"td",11),m.BQk(),m.ynx(24,16),m.YNc(25,ot,3,3,"th",10),m.YNc(26,Fe,3,6,"td",11),m.BQk(),m.YNc(27,ut,1,0,"tr",17),m.YNc(28,X,1,11,"tr",18),m.qZA()()(),m.YNc(29,nt,3,3,"perun-web-apps-alert",19),m.YNc(30,Ae,3,3,"perun-web-apps-alert",19)),2&Ne&&(m.Q6J("hidden",!Ce.dataSource||0===Ce.dataSource.filteredData.length||0===Ce.facilities.length),m.xp6(1),m.Q6J("tableId",Ce.tableId)("dataLength",Ce.dataSource.filteredData.length)("pageSizeOptions",Ce.pageSizeOptions),m.xp6(1),m.Q6J("dataSource",Ce.dataSource),m.xp6(25),m.Q6J("matHeaderRowDef",Ce.displayedColumns),m.xp6(1),m.Q6J("matRowDefColumns",Ce.displayedColumns),m.xp6(1),m.Q6J("ngIf",0===Ce.dataSource.filteredData.length&&0!==Ce.facilities.length),m.xp6(1),m.Q6J("ngIf",0===Ce.facilities.length))},dependencies:[b.O5,D.oG,A.BZ,A.fO,A.as,A.w1,A.Dz,A.nj,A.ge,A.ev,A.XQ,A.Gk,v.rH,e.YE,e.nU,R.w,B.l,w.Y,O.W,W,L.Q,F.X$,V.J,ee,Q.G],styles:[".disable-outline[_ngcontent-%COMP%]{outline:none!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),_e})()},13449:(Xe,ue,p)=>{"use strict";p.d(ue,{i:()=>T});var e=p(94650),A=p(81591),C=p(36895),M=p(97392),m=p(28255),b=p(4859),D=p(10266),v=p(64425),R=p(89383),B=p(29218),w=p(45942),L=p(28764);function O(W,F){if(1&W){const V=e.EpF();e.TgZ(0,"span",5),e.ALo(1,"translate"),e.ALo(2,"groupSyncToolTip"),e.TgZ(3,"button",6),e.NdJ("click",function(){e.CHM(V);const Q=e.oxw(2);return e.KtG(Q.onSyncDetail())}),e.ALo(4,"groupSyncIcon"),e.TgZ(5,"mat-icon"),e.ALo(6,"groupSyncIconColor"),e._uU(7),e.ALo(8,"groupSyncIcon"),e.qZA()()()}if(2&W){const V=e.oxw(2);e.Q6J("matTooltipPosition","above")("matTooltip",e.lcZ(1,7,e.lcZ(2,9,V.group))),e.xp6(3),e.Q6J("disabled","sync_disabled"===e.lcZ(4,11,V.group)),e.xp6(2),e.Tol(e.lcZ(6,13,V.group)),e.xp6(2),e.hij(" ",e.lcZ(8,15,V.group)," ")}}function q(W,F){if(1&W){const V=e.EpF();e.TgZ(0,"span",5),e.ALo(1,"translate"),e.TgZ(2,"button",6),e.NdJ("click",function(){e.CHM(V);const Q=e.oxw(2);return e.KtG(Q.onMoveGroup())}),e.TgZ(3,"mat-icon"),e._uU(4,"arrow_right_alt"),e.qZA()()()}if(2&W){const V=e.oxw(2);e.s9C("matTooltip",e.lcZ(1,3,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.MOVE")),e.Q6J("matTooltipPosition","above"),e.xp6(2),e.Q6J("disabled",V.disabled)}}function te(W,F){if(1&W){const V=e.EpF();e.TgZ(0,"span",5),e.ALo(1,"translate"),e.TgZ(2,"button",6),e.NdJ("click",function(){e.CHM(V);const Q=e.oxw(2);return e.KtG(Q.onChangeNameDescription())}),e.TgZ(3,"mat-icon"),e._uU(4,"text_format"),e.qZA()()()}if(2&W){const V=e.oxw(2);e.s9C("matTooltip",e.lcZ(1,3,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.RENAME")),e.Q6J("matTooltipPosition","above"),e.xp6(2),e.Q6J("disabled",V.disabled)}}function z(W,F){if(1&W&&(e.TgZ(0,"div",2)(1,"button",3),e.ALo(2,"translate"),e.TgZ(3,"mat-icon"),e._uU(4," file_copy "),e.qZA()(),e.YNc(5,O,9,17,"span",4),e.YNc(6,q,5,5,"span",4),e.YNc(7,te,5,5,"span",4),e.qZA()),2&W){const V=e.oxw();e.xp6(1),e.s9C("matTooltip",e.lcZ(2,6,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.COPY")),e.Q6J("cdkCopyToClipboard",V.group.name)("matTooltipPosition","above"),e.xp6(4),e.Q6J("ngIf",V.syncAuth),e.xp6(1),e.Q6J("ngIf",V.moveAuth),e.xp6(1),e.Q6J("ngIf",V.editAuth)}}function ie(W,F){if(1&W){const V=e.EpF();e.TgZ(0,"button",11),e.NdJ("click",function(){e.CHM(V);const Q=e.oxw(2);return e.KtG(Q.onSyncDetail())}),e.ALo(1,"groupSyncIcon"),e.TgZ(2,"mat-icon"),e.ALo(3,"groupSyncIconColor"),e._uU(4),e.ALo(5,"groupSyncIcon"),e.qZA(),e.TgZ(6,"span"),e._uU(7),e.ALo(8,"translate"),e.ALo(9,"groupSyncToolTip"),e.qZA()()}if(2&W){const V=e.oxw(2);e.Q6J("disabled","sync_disabled"===e.lcZ(1,6,V.group)),e.xp6(2),e.Tol(e.lcZ(3,8,V.group)),e.xp6(2),e.hij(" ",e.lcZ(5,10,V.group)," "),e.xp6(3),e.Oqu(e.lcZ(8,12,e.lcZ(9,14,V.group)))}}function Te(W,F){if(1&W){const V=e.EpF();e.TgZ(0,"button",11),e.NdJ("click",function(){e.CHM(V);const Q=e.oxw(2);return e.KtG(Q.onMoveGroup())}),e.TgZ(1,"mat-icon"),e._uU(2,"arrow_right_alt"),e.qZA(),e.TgZ(3,"span"),e._uU(4),e.ALo(5,"translate"),e.qZA()()}if(2&W){const V=e.oxw(2);e.Q6J("disabled",V.disabled),e.xp6(4),e.Oqu(e.lcZ(5,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.MOVE"))}}function pe(W,F){if(1&W){const V=e.EpF();e.TgZ(0,"button",11),e.NdJ("click",function(){e.CHM(V);const Q=e.oxw(2);return e.KtG(Q.onChangeNameDescription())}),e.TgZ(1,"mat-icon"),e._uU(2,"text_format"),e.qZA(),e.TgZ(3,"span"),e._uU(4),e.ALo(5,"translate"),e.qZA()()}if(2&W){const V=e.oxw(2);e.Q6J("disabled",V.disabled),e.xp6(4),e.Oqu(e.lcZ(5,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.RENAME"))}}function Le(W,F){if(1&W&&(e.TgZ(0,"div")(1,"button",7)(2,"mat-icon"),e._uU(3,"more_vert"),e.qZA()(),e.TgZ(4,"mat-menu",null,8)(6,"button",9)(7,"mat-icon"),e._uU(8," file_copy "),e.qZA(),e.TgZ(9,"span"),e._uU(10),e.ALo(11,"translate"),e.qZA()(),e.YNc(12,ie,10,16,"button",10),e.YNc(13,Te,6,4,"button",10),e.YNc(14,pe,6,4,"button",10),e.qZA()()),2&W){const V=e.MAs(5),ee=e.oxw();e.xp6(1),e.Q6J("mat-menu-trigger-for",V),e.xp6(5),e.Q6J("cdkCopyToClipboard",ee.group.name),e.xp6(4),e.Oqu(e.lcZ(11,6,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.COPY")),e.xp6(2),e.Q6J("ngIf",ee.syncAuth),e.xp6(1),e.Q6J("ngIf",ee.moveAuth),e.xp6(1),e.Q6J("ngIf",ee.editAuth)}}let T=(()=>{class W{constructor(V){this.authResolver=V,this.disabled=!1,this.moveGroup=new e.vpe,this.syncGroup=new e.vpe,this.changeNameDescription=new e.vpe}ngOnInit(){this.syncAuth=this.authResolver.isAuthorized("forceGroupSynchronization_Group_policy",[this.group]),this.editAuth=this.authResolver.isAuthorized("updateGroup_Group_policy",[this.group]),this.moveAuth=this.authResolver.isAuthorized("moveGroup_Group_Group_policy",[this.group])||this.authResolver.isAuthorized("destination_null-moveGroup_Group_Group_policy",[this.group])}onMoveGroup(){this.moveGroup.emit()}onSyncDetail(){this.syncGroup.emit()}onChangeNameDescription(){this.changeNameDescription.emit()}}return W.\u0275fac=function(V){return new(V||W)(e.Y36(A.x4))},W.\u0275cmp=e.Xpm({type:W,selectors:[["perun-web-apps-group-menu"]],inputs:{group:"group",disabled:"disabled",displayButtons:"displayButtons"},outputs:{moveGroup:"moveGroup",syncGroup:"syncGroup",changeNameDescription:"changeNameDescription"},decls:2,vars:2,consts:[["class","buttons-container",4,"ngIf"],[4,"ngIf"],[1,"buttons-container"],["mat-icon-button","",1,"ml-auto","horiz_right",3,"cdkCopyToClipboard","matTooltipPosition","matTooltip"],[3,"matTooltipPosition","matTooltip",4,"ngIf"],[3,"matTooltipPosition","matTooltip"],["mat-icon-button","",3,"disabled","click"],["mat-icon-button","",3,"mat-menu-trigger-for"],["groupMenu","matMenu"],["mat-menu-item","",3,"cdkCopyToClipboard"],["mat-menu-item","",3,"disabled","click",4,"ngIf"],["mat-menu-item","",3,"disabled","click"]],template:function(V,ee){1&V&&(e.YNc(0,z,8,8,"div",0),e.YNc(1,Le,15,8,"div",1)),2&V&&(e.Q6J("ngIf",ee.displayButtons),e.xp6(1),e.Q6J("ngIf",!ee.displayButtons))},dependencies:[C.O5,M.Hw,m.VK,m.OP,m.p6,b.lW,D.gM,v.i3,R.X$,B.J,w.r,L.F],styles:[".buttons-container[_ngcontent-%COMP%]{white-space:nowrap;width:160px}.horiz_right[_ngcontent-%COMP%]{float:right}"]}),W})()},8223:(Xe,ue,p)=>{"use strict";p.d(ue,{x:()=>O});var e=p(94650),A=p(9244),C=p(21029),M=p(65412),m=p(36895),b=p(97392),D=p(10266),v=p(89383);function R(q,te){if(1&q){const z=e.EpF();e.TgZ(0,"span",3),e.NdJ("click",function(){e.CHM(z);const Te=e.oxw();return e.KtG(Te.changeStatus())}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon",4),e._uU(3,"check_circle_outline"),e.qZA()()}if(2&q){const z=e.oxw();e.s9C("matTooltip",e.lcZ(1,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.ACTIVE")),e.Q2q("data-cy","",z.groupName,"-active")}}function B(q,te){if(1&q){const z=e.EpF();e.TgZ(0,"span",3),e.NdJ("click",function(){e.CHM(z);const Te=e.oxw();return e.KtG(Te.changeStatus())}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon",5),e._uU(3,"block"),e.qZA()()}if(2&q){const z=e.oxw();e.s9C("matTooltip",e.lcZ(1,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.INACTIVE")),e.Q2q("data-cy","",z.groupName,"-inactive")}}function w(q,te){if(1&q){const z=e.EpF();e.TgZ(0,"span",3),e.NdJ("click",function(){e.CHM(z);const Te=e.oxw();return e.KtG(Te.changeStatus())}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon",6),e._uU(3,"report"),e.qZA()()}if(2&q){const z=e.oxw();e.hYB("matTooltip","",e.lcZ(1,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.FAILED"),": ",z.failureCause,"")}}function L(q,te){1&q&&(e.TgZ(0,"span",7),e.ALo(1,"translate"),e.TgZ(2,"mat-icon",8),e._uU(3,"autorenew"),e.qZA()()),2&q&&e.s9C("matTooltip",e.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.PROCESSING"))}let O=(()=>{class q{constructor(z){this.dialog=z,this.status="",this.groupName="",this.statusChange=new e.vpe}changeStatus(){const z=(0,A.kZ)();z.width="500px",z.data={theme:this.theme,status:this.status,groupId:this.groupId,resourceId:this.resourceId},this.dialog.open(C.Qu,z).afterClosed().subscribe(Te=>{Te&&this.statusChange.emit()})}}return q.\u0275fac=function(z){return new(z||q)(e.Y36(M.uw))},q.\u0275cmp=e.Xpm({type:q,selectors:[["perun-web-apps-group-resource-status"]],inputs:{status:"status",groupId:"groupId",groupName:"groupName",resourceId:"resourceId",theme:"theme",failureCause:"failureCause"},outputs:{statusChange:"statusChange"},decls:5,vars:4,consts:[[1,"flex-container"],["matTooltipPosition","above",3,"matTooltip","click",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip","click"],[1,"green"],[1,"grey"],[1,"red"],["matTooltipPosition","above",3,"matTooltip"],[1,"black"]],template:function(z,ie){1&z&&(e.TgZ(0,"div",0),e.YNc(1,R,4,4,"span",1),e.YNc(2,B,4,4,"span",1),e.YNc(3,w,4,4,"span",1),e.YNc(4,L,4,3,"span",2),e.qZA()),2&z&&(e.xp6(1),e.Q6J("ngIf","ACTIVE"===ie.status),e.xp6(1),e.Q6J("ngIf","INACTIVE"===ie.status),e.xp6(1),e.Q6J("ngIf","FAILED"===ie.status),e.xp6(1),e.Q6J("ngIf","PROCESSING"===ie.status))},dependencies:[m.O5,b.Hw,D.gM,v.X$]}),q})()},82322:(Xe,ue,p)=>{"use strict";p.d(ue,{h:()=>m});var e=p(94650),A=p(9244),C=p(89593),M=p(89383);let m=(()=>{class b{constructor(){this.disableAutoSelect=!1,this.displayStatus=!1,this.groupSelected=new e.vpe,this.nameFunction=v=>v.name}ngOnInit(){this.groups=this.groups.sort(A.aC)}}return b.\u0275fac=function(v){return new(v||b)},b.\u0275cmp=e.Xpm({type:b,selectors:[["perun-web-apps-group-search-select"]],inputs:{groups:"groups",disableAutoSelect:"disableAutoSelect",firstSelectedGroup:"firstSelectedGroup",displayStatus:"displayStatus"},outputs:{groupSelected:"groupSelected"},decls:4,vars:15,consts:[[1,"long-input",3,"entities","entity","displayStatus","disableAutoSelect","mainTextFunction","searchFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(v,R){if(1&v&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(w){return R.groupSelected.emit(w)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&v){let B;e.Q6J("entities",R.groups)("entity",null!==(B=R.firstSelectedGroup)&&void 0!==B?B:null)("displayStatus",R.displayStatus)("disableAutoSelect",R.disableAutoSelect)("mainTextFunction",R.nameFunction)("searchFunction",R.nameFunction)("selectPlaceholder",e.lcZ(1,9,"SHARED_LIB.PERUN.COMPONENTS.GROUP_SEARCH_SELECT.SELECT_GROUP"))("findPlaceholder",e.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.GROUP_SEARCH_SELECT.FIND_GROUP"))("noEntriesText",e.lcZ(3,13,"SHARED_LIB.PERUN.COMPONENTS.GROUP_SEARCH_SELECT.NO_GROUP_FOUND"))}},dependencies:[C.i,M.X$]}),b})()},25788:(Xe,ue,p)=>{"use strict";p.d(ue,{W:()=>et});var e=p(94650),A=p(21029),C=p(61744),M=p(81591),m=p(9244),b=p(91479),D=p(96308),v=p(30671),R=p(95017),B=p(19516),w=p(65412),L=p(36895),O=p(56709),q=p(94364),te=p(98380),z=p(97392),ie=p(4859),Te=p(10266),pe=p(18750),Le=p(13449),T=p(34198),W=p(55660),F=p(10441),V=p(8223),ee=p(89383),Q=p(21757);let Ee=(()=>{class ne{transform(He){return He.attributes.find(Re=>"groupMembershipExpiration"===Re.baseFriendlyName)?.value??"Never"}}return ne.\u0275fac=function(He){return new(He||ne)},ne.\u0275pipe=e.Yjl({name:"groupExpiration",type:ne,pure:!0}),ne})();var ge=p(82514),ve=p(62383),De=p(9185);let he=(()=>{class ne{transform(He,Pe){return(0,m.cT)(He,Pe)}}return ne.\u0275fac=function(He){return new(He||ne)},ne.\u0275pipe=e.Yjl({name:"findAttribute",type:ne,pure:!0}),ne})(),Ye=(()=>{class ne{constructor(He){this.authResolver=He}transform(He){return this.authResolver.isThisGroupAdmin(He.id)||this.authResolver.isThisVoAdmin(He.voId)}}return ne.\u0275fac=function(He){return new(He||ne)(e.Y36(M.x4,16))},ne.\u0275pipe=e.Yjl({name:"canManageGroup",type:ne,pure:!0}),ne})();var Be=p(22908);let se=(()=>{class ne{transform(He,Pe,Re){return Pe?"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.CREATE_RELATION_AUTH_TOOLTIP":(0,m.bx)(He)?"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.SYNCHRONIZED_GROUP":He.sourceGroupId?"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.INDIRECT_GROUP":"members"===He.name?"":Re?"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.ALREADY_MEMBER_TOOLTIP":"MEMBERS_LIST.CHECKBOX_TOOLTIP_INDIRECT"}}return ne.\u0275fac=function(He){return new(He||ne)},ne.\u0275pipe=e.Yjl({name:"groupCheckboxTooltip",type:ne,pure:!0}),ne})();var le=p(8231),N=p(14849);function k(ne,Ue){if(1&ne){const He=e.EpF();e.TgZ(0,"mat-checkbox",27),e.NdJ("change",function(Re){e.CHM(He);const re=e.oxw(3);return e.KtG(Re?re.masterToggle():null)}),e.ALo(1,"translate"),e.ALo(2,"masterCheckboxLabel"),e.qZA()}if(2&ne){const He=e.oxw(2).ngIf,Pe=e.oxw();e.Q6J("aria-label",e.lcZ(1,3,e.lcZ(2,5,He.all)))("checked",Pe.selection.hasValue()&&He.all)("indeterminate",Pe.selection.hasValue()&&!He.all)}}function be(ne,Ue){if(1&ne&&(e.TgZ(0,"th",25),e.YNc(1,k,3,7,"mat-checkbox",26),e.qZA()),2&ne){const He=e.oxw(2);e.xp6(1),e.Q6J("ngIf",!He.disableHeadCheckbox&&He.selection.isMultipleSelection())}}const Z=function(ne){return{name:ne}};function ce(ne,Ue){if(1&ne){const He=e.EpF();e.TgZ(0,"span",30),e.ALo(1,"translate"),e.ALo(2,"groupCheckboxTooltip"),e.TgZ(3,"mat-checkbox",31),e.NdJ("change",function(Re){e.CHM(He);const re=e.oxw().$implicit,we=e.oxw(2);return e.KtG(Re?we.itemSelectionToggle(re):null)})("click",function(Re){return Re.stopPropagation()}),e.ALo(4,"translate"),e.ALo(5,"checkboxLabel"),e.qZA()()}if(2&ne){const He=Ue.ngIf,Pe=e.oxw().$implicit,Re=e.oxw(2);e.Q6J("matTooltip",e.lcZ(1,7,e.Dn7(2,9,Pe,!1,Re.canBeSelected(Pe))))("matTooltipPosition","above")("matTooltipDisabled",!He.disable&&Re.canBeSelected(Pe)),e.xp6(3),e.Q2q("data-cy","",Pe.name,"-checkbox"),e.Q6J("aria-label",e.xi3(4,13,e.lcZ(5,16,Re.selection.isSelected(Pe)),e.VKq(18,Z,Pe.name)))("checked",Re.selection.isSelected(Pe))("disabled",He.disable||!Re.canBeSelected(Pe))}}const xe=function(ne){return{disable:ne}};function ot(ne,Ue){if(1&ne&&(e.TgZ(0,"td",28),e.YNc(1,ce,6,20,"span",29),e.ALo(2,"disableGroupSelect"),e.qZA()),2&ne){const He=Ue.$implicit,Pe=e.oxw(2);e.xp6(1),e.Q6J("ngIf",e.VKq(6,xe,e.gM2(2,1,He,Pe.disableMembers,Pe.disableGroups,Pe.groupsToDisableCheckbox)))}}function Fe(ne,Ue){1&ne&&(e.ynx(0,22),e.YNc(1,be,2,1,"th",23),e.YNc(2,ot,3,8,"td",24),e.BQk())}function ut(ne,Ue){1&ne&&(e.TgZ(0,"th",32),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ne&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_ID")," "))}function tt(ne,Ue){if(1&ne&&(e.TgZ(0,"td",33),e._uU(1),e.qZA()),2&ne){const He=Ue.$implicit;e.xp6(1),e.Oqu(He.id)}}function vt(ne,Ue){1&ne&&e._UZ(0,"th",34)}function X(ne,Ue){if(1&ne&&(e.TgZ(0,"td",35),e._UZ(1,"perun-web-apps-recently-viewed-icon",36),e.qZA()),2&ne){const He=Ue.$implicit,Pe=e.oxw();e.xp6(1),e.Q6J("recentIds",Pe.recentIds)("id",He.id)}}function nt(ne,Ue){1&ne&&(e.TgZ(0,"th",32),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ne&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_VO_NAME")," "))}function Ae(ne,Ue){if(1&ne&&(e.TgZ(0,"td",33),e._uU(1),e.qZA()),2&ne){const He=Ue.$implicit,Pe=e.oxw();e.xp6(1),e.hij(" ",Pe.voNames.get(He.voId)," ")}}function ye(ne,Ue){1&ne&&e._UZ(0,"th",34)}function _e(ne,Ue){1&ne&&(e.TgZ(0,"mat-icon",38),e.ALo(1,"translate"),e._uU(2,"account_tree"),e.qZA()),2&ne&&e.Q6J("matTooltip",e.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.INDIRECT_GROUP"))}function Se(ne,Ue){1&ne&&(e.TgZ(0,"mat-icon",38),e.ALo(1,"translate"),e._uU(2,"alt_route"),e.qZA()),2&ne&&e.Q6J("matTooltip",e.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.MULTIPLE_ASSIGNMENTS"))}function Ne(ne,Ue){if(1&ne&&(e.TgZ(0,"td",35),e.YNc(1,_e,3,3,"mat-icon",37),e.YNc(2,Se,3,3,"mat-icon",37),e.qZA()),2&ne){const He=Ue.$implicit;e.xp6(1),e.Q6J("ngIf",He.sourceGroupId&&!He.moreTypesOfAssignment),e.xp6(1),e.Q6J("ngIf",He.moreTypesOfAssignment)}}function Ce(ne,Ue){1&ne&&(e.TgZ(0,"th",32),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ne&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_NAME")," "))}function fe(ne,Ue){if(1&ne&&(e.TgZ(0,"td",35),e._uU(1),e.qZA()),2&ne){const He=Ue.$implicit;e.uIk("data-cy",He.name),e.xp6(1),e.hij(" ",He.name," ")}}function r(ne,Ue){1&ne&&(e.TgZ(0,"th",32),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ne&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_STATUS")," "))}function u(ne,Ue){if(1&ne){const He=e.EpF();e.TgZ(0,"td",39)(1,"perun-web-apps-group-resource-status",40),e.NdJ("mouseenter",function(){e.CHM(He);const Re=e.oxw();return e.KtG(Re.disabledRouting=!0)})("mouseleave",function(){e.CHM(He);const Re=e.oxw();return e.KtG(Re.disabledRouting=Re.disableRouting)})("statusChange",function(){e.CHM(He);const Re=e.oxw();return e.KtG(Re.refreshTable.emit())}),e.qZA()()}if(2&ne){const He=Ue.$implicit,Pe=e.oxw();e.xp6(1),e.Q6J("theme","resource-theme")("groupId",He.id)("groupName",He.name)("resourceId",Pe.resourceId)("failureCause",He.failureCause)("status",He.status)}}function _(ne,Ue){1&ne&&(e.TgZ(0,"th",32),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ne&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_STATUS")," "))}function E(ne,Ue){if(1&ne&&(e.TgZ(0,"i",42),e.NdJ("click",function(Pe){return Pe.stopPropagation()}),e.ALo(1,"groupStatusIconColor"),e.TgZ(2,"span"),e._uU(3),e.ALo(4,"memberStatusIcon"),e.qZA()()),2&ne){const He=Ue.ngIf;e.Gre("material-icons ",e.lcZ(1,5,He.status)," cursor-default"),e.s9C("matTooltip",He.status),e.xp6(3),e.hij(" ",e.lcZ(4,7,He.status)," ")}}const h=function(ne){return{status:ne}};function a(ne,Ue){if(1&ne&&(e.TgZ(0,"td",35),e.YNc(1,E,5,9,"i",41),e.ALo(2,"findAttribute"),e.qZA()),2&ne){const He=Ue.$implicit;e.xp6(1),e.Q6J("ngIf",e.VKq(4,h,e.xi3(2,1,He.attributes,"groupStatus")))}}function i(ne,Ue){1&ne&&(e.TgZ(0,"th",32),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ne&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_DESCRIPTION")," "))}function t(ne,Ue){if(1&ne&&(e.TgZ(0,"td",39),e._uU(1),e.qZA()),2&ne){const He=Ue.$implicit;e.xp6(1),e.Oqu(He.description)}}function n(ne,Ue){1&ne&&(e.TgZ(0,"th",32),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ne&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_EXPIRATION")," "))}function o(ne,Ue){if(1&ne){const He=e.EpF();e.TgZ(0,"button",44),e.NdJ("click",function(){e.CHM(He);const Re=e.oxw().$implicit,re=e.oxw();return e.KtG(re.changeExpiration(Re))})("mouseenter",function(){e.CHM(He);const Re=e.oxw(2);return e.KtG(Re.disabledRouting=!0)})("mouseleave",function(){e.CHM(He);const Re=e.oxw(2);return e.KtG(Re.disabledRouting=Re.disableRouting)}),e.TgZ(1,"mat-icon"),e._uU(2,"edit"),e.qZA()()}}function s(ne,Ue){if(1&ne&&(e.TgZ(0,"td",39),e._uU(1),e.ALo(2,"parseDate"),e.ALo(3,"groupExpiration"),e.YNc(4,o,3,0,"button",43),e.ALo(5,"canManageGroup"),e.qZA()),2&ne){const He=Ue.$implicit;e.xp6(1),e.hij(" ",e.lcZ(2,2,e.lcZ(3,4,He))," "),e.xp6(3),e.Q6J("ngIf",e.lcZ(5,6,He))}}function l(ne,Ue){1&ne&&e._UZ(0,"th",34)}function d(ne,Ue){if(1&ne){const He=e.EpF();e.TgZ(0,"td",35)(1,"perun-web-apps-group-menu",45),e.NdJ("mouseenter",function(){e.CHM(He);const Re=e.oxw();return e.KtG(Re.disabledRouting=!0)})("mouseleave",function(){e.CHM(He);const Re=e.oxw();return e.KtG(Re.disabledRouting=Re.disableRouting)})("moveGroup",function(){const re=e.CHM(He).$implicit,we=e.oxw();return e.KtG(we.moveGroup(re))})("changeNameDescription",function(){const re=e.CHM(He).$implicit,we=e.oxw();return e.KtG(we.editGroup(re))})("syncGroup",function(){const re=e.CHM(He).$implicit,we=e.oxw();return e.KtG(we.openSyncDetail(re))}),e.qZA()()}if(2&ne){const He=Ue.$implicit,Pe=e.oxw();e.xp6(1),e.Q6J("disabled","members"===He.name)("displayButtons",Pe.displayButtons)("group",He)}}function c(ne,Ue){1&ne&&e._UZ(0,"tr",46)}const S=function(ne,Ue){return["/organizations",ne,"groups",Ue]};function J(ne,Ue){if(1&ne&&e._UZ(0,"tr",47),2&ne){const He=Ue.$implicit,Pe=e.oxw();e.ekj("cursor-pointer",!Pe.disableRouting&&!Pe.groupsToDisableRouting.has(He.id))("disable-outline",Pe.disableRouting||Pe.disabledRouting||Pe.groupsToDisableRouting.has(He.id)),e.Q6J("perunWebAppsMiddleClickRouterLink",Pe.disableRouting||Pe.disabledRouting||Pe.groupsToDisableRouting.has(He.id)?null:e.WLB(6,S,He.voId,He.id))("routerLink",Pe.disableRouting||Pe.disabledRouting||Pe.groupsToDisableRouting.has(He.id)?null:e.WLB(9,S,He.voId,He.id))}}function ht(ne,Ue){if(1&ne&&(e.TgZ(0,"perun-web-apps-alert",48),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ne){const He=e.oxw();e.xp6(1),e.hij(" ",e.lcZ(2,1,He.noGroupsAlert),"\n")}}const ze=function(ne){return{all:ne}};let et=(()=>{class ne{constructor(He,Pe,Re,re,we,st){this.dialog=He,this.authResolver=Pe,this.voService=Re,this.tableCheckbox=re,this.disableGroupSelect=we,this.groupUtils=st,this.theme="group-theme",this.selection=new R.Ov(!0,[]),this.groupsToDisableCheckbox=new Set,this.groupsToDisableRouting=new Set,this.disableRouting=!1,this.pageSizeOptions=m.f7,this.recentIds=[],this.resourceId=null,this.relation=!1,this.noGroupsAlert="SHARED_LIB.UI.ALERTS.NO_GROUPS",this.groupMoved=new e.vpe,this.refreshTable=new e.vpe,this.queryChanged=new e.vpe,this.downloadAll=new e.vpe,this.displayButtons=window.innerWidth>800,this.disabledRouting=!1,this.voNames=new Map,this.columns=["select","id","recent","vo","indirectGroupAssigment","name","status","groupStatus","description","expiration","menu"],this.getDataForColumnFun=(Ke,Et)=>this.groupUtils.getDataForColumn(Ke,Et,this.voNames),this.getSortDataForColumnFun=(Ke,Et)=>this.groupUtils.getSortDataForColumn(Ke,Et,this.voNames,this.recentIds),this.canBeSelected=Ke=>{const Et=Ke.attributes?.find(ke=>"groupStatusIndirect"===ke.friendlyName);return Et?.value?!Et.value:!this.disableGroupSelect.transform(Ke,this.disableMembers,this.disableGroups,this.groupsToDisableCheckbox)}}set groups(He){this.dataSource||this.dataSourceInit(He);const Pe=this.isPaginated(He);(0,b.o)(this.dataSource)&&Pe?(this.dataSource.data=He.data,this.dataSource.count=He.totalCount):!(0,b.o)(this.dataSource)&&!Pe&&(this.dataSource.data=He),this.updateVoNames()}set filter(He){this.dataSource.filter=He}set displayedColumns(He){this.authResolver.isPerunAdminOrObserver()||(He=He.filter(Pe=>"id"!==Pe)),this.columns=He}shouldHideButtons(){this.displayButtons=window.innerWidth>800}isPaginated(He){return"data"in He}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(He=>"id"!==He)),this.setDataSource()}exportAllData(He){(0,b.o)(this.dataSource)?this.downloadAll.emit({format:He,length:this.dataSource.paginator.length}):(0,m.O6)((0,m.Xn)(this.dataSource.filteredData,this.columns,this.getDataForColumnFun),He)}exportDisplayedData(He){if((0,b.o)(this.dataSource))(0,m.O6)((0,m.Xn)(this.dataSource.data,this.columns,this.getDataForColumnFun),He);else{const Pe=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,Re=Pe+this.dataSource.paginator.pageSize;(0,m.O6)((0,m.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(Pe,Re),this.columns,this.getDataForColumnFun),He)}}isAllSelected(){return(0,b.o)(this.dataSource)?this.tableCheckbox.isAllSelectedPaginated(this.dataSource,this.selection.selected.length,this.canBeSelected):this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource,this.canBeSelected)}masterToggle(){(0,b.o)(this.dataSource)?this.tableCheckbox.masterTogglePaginated(this.dataSource,this.selection,!this.isAllSelected(),this.canBeSelected):this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.dataSource.filter,this.dataSource,this.dataSource.sort,this.dataSource.paginator.pageSize,this.dataSource.paginator.pageIndex,!0,this.canBeSelected)}moveGroup(He){this.groupMoved.emit(He)}openSyncDetail(He){const Pe=(0,m.kZ)();Pe.width="450px",Pe.data={groupId:He.id,theme:this.theme},this.dialog.open(A.Bp,Pe)}editGroup(He){const Pe=(0,m.kZ)();Pe.data={theme:"group-theme",group:He,dialogType:A.Eg.GROUP},this.dialog.open(A.rd,Pe).afterClosed().subscribe(re=>{re&&this.refreshTable.emit()})}changeExpiration(He){const Pe=He.attributes.find(we=>"groupMembershipExpiration"===we.baseFriendlyName),Re=(0,m.kZ)();Re.width="400px",Re.data={memberId:this.memberId,groupId:He.id,expirationAttr:Pe,status:(0,m.cT)(He.attributes,"groupStatus")},this.dialog.open(A.u3,Re).afterClosed().subscribe(we=>{we.success&&this.refreshTable.emit()})}itemSelectionToggle(He){this.selection.toggle(He)}setDataSource(){if(this.dataSource||(this.dataSource=new v.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.tableWrapper.paginator,this.dataSource.filterPredicate=(Pe,Re)=>(0,m.Sd)(Pe,Re,this.displayedColumns,this.getDataForColumnFun),this.dataSource.sortData=(Pe,Re)=>(0,m.pR)(Pe,Re,this.getDataForColumnFun)),this.dataSource.filter=this.filterValue,!this.groups)return;const He=this.isPaginated(this.groups);(0,b.o)(this.dataSource)||He?(this.dataSource.data=this.groups.data,this.dataSource.count=this.groups.totalCount):!(0,b.o)(this.dataSource)&&!He&&(this.dataSource.data=this.groups)}dataSourceInit(He){const Pe=this.isPaginated(He);this.dataSource=Pe?new b.H(He.data,He.totalCount,this.sort,this.tableWrapper.paginator):new v.by(He),(0,b.o)(this.dataSource)?this.dataSource.pageQuery$.subscribe(Re=>this.queryChanged.emit(Re)):(this.dataSource.sort=this.sort,this.dataSource.paginator=this.tableWrapper.paginator,this.dataSource.filterPredicate=(Re,re)=>(0,m.Sd)(Re,re,this.columns,this.getDataForColumnFun,!0),this.dataSource.sortData=(Re,re)=>(0,m.pR)(Re,re,this.getSortDataForColumnFun))}updateVoNames(){if(this.columns.includes("vo")){const He=new Set;this.dataSource.filteredData.forEach(Pe=>{!He.has(Pe.voId)&&!this.voNames.has(Pe.voId)&&He.add(Pe.voId)}),He.size>0&&this.voService.getVosByIds([...He]).subscribe(Pe=>{Pe.forEach(Re=>{this.voNames.set(Re.id,Re.name)})})}}}return ne.\u0275fac=function(He){return new(He||ne)(e.Y36(w.uw),e.Y36(M.x4),e.Y36(C.YF),e.Y36(M.UA),e.Y36(B.yo),e.Y36(M.K1))},ne.\u0275cmp=e.Xpm({type:ne,selectors:[["perun-web-apps-groups-list"]],viewQuery:function(He,Pe){if(1&He&&(e.Gf(m.l9,7),e.Gf(D.YE,7)),2&He){let Re;e.iGM(Re=e.CRH())&&(Pe.tableWrapper=Re.first),e.iGM(Re=e.CRH())&&(Pe.sort=Re.first)}},hostBindings:function(He,Pe){1&He&&e.NdJ("resize",function(re){return Pe.shouldHideButtons(re)},!1,e.Jf7)},inputs:{theme:"theme",selection:"selection",filterValue:"filterValue",disableMembers:"disableMembers",disableGroups:"disableGroups",groupsToDisableCheckbox:"groupsToDisableCheckbox",groupsToDisableRouting:"groupsToDisableRouting",disableHeadCheckbox:"disableHeadCheckbox",parentGroup:"parentGroup",disableRouting:"disableRouting",memberId:"memberId",memberGroupStatus:"memberGroupStatus",pageSizeOptions:"pageSizeOptions",recentIds:"recentIds",resourceId:"resourceId",tableId:"tableId",relation:"relation",noGroupsAlert:"noGroupsAlert",groups:"groups",filter:"filter",displayedColumns:"displayedColumns"},outputs:{groupMoved:"groupMoved",refreshTable:"refreshTable",queryChanged:"queryChanged",downloadAll:"downloadAll"},features:[e._Bn([B.yo]),e.TTD],decls:38,vars:15,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","tableId","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","recent"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","vo"],["matColumnDef","indirectGroupAssigment"],["matColumnDef","name"],["matColumnDef","status"],["class","wrap-content","mat-cell","",4,"matCellDef"],["matColumnDef","groupStatus"],["matColumnDef","description"],["matColumnDef","expiration"],["matColumnDef","menu"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change",4,"ngIf"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],[3,"matTooltip","matTooltipPosition","matTooltipDisabled",4,"ngIf"],[3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-header-cell",""],["mat-cell",""],[3,"recentIds","id"],["matTooltipPosition","above",3,"matTooltip",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip"],["mat-cell","",1,"wrap-content"],[3,"theme","groupId","groupName","resourceId","failureCause","status","mouseenter","mouseleave","statusChange"],["matTooltipClass","status-tooltip","matTooltipPosition","left",3,"class","matTooltip","click",4,"ngIf"],["matTooltipClass","status-tooltip","matTooltipPosition","left",3,"matTooltip","click"],["mat-icon-button","",3,"click","mouseenter","mouseleave",4,"ngIf"],["mat-icon-button","",3,"click","mouseenter","mouseleave"],[3,"disabled","displayButtons","group","mouseenter","mouseleave","moveGroup","changeNameDescription","syncGroup"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(He,Pe){if(1&He&&(e.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),e.NdJ("exportDisplayedData",function(re){return Pe.exportDisplayedData(re)})("exportAllData",function(re){return Pe.exportAllData(re)}),e.TgZ(2,"table",2),e.YNc(3,Fe,3,0,"ng-container",3),e.ALo(4,"isAllSelected"),e.ynx(5,4),e.YNc(6,ut,3,3,"th",5),e.YNc(7,tt,2,1,"td",6),e.BQk(),e.ynx(8,7),e.YNc(9,vt,1,0,"th",8),e.YNc(10,X,2,2,"td",9),e.BQk(),e.ynx(11,10),e.YNc(12,nt,3,3,"th",5),e.YNc(13,Ae,2,1,"td",6),e.BQk(),e.ynx(14,11),e.YNc(15,ye,1,0,"th",8),e.YNc(16,Ne,3,2,"td",9),e.BQk(),e.ynx(17,12),e.YNc(18,Ce,3,3,"th",5),e.YNc(19,fe,2,2,"td",9),e.BQk(),e.ynx(20,13),e.YNc(21,r,3,3,"th",5),e.YNc(22,u,2,6,"td",14),e.BQk(),e.ynx(23,15),e.YNc(24,_,3,3,"th",5),e.YNc(25,a,3,6,"td",9),e.BQk(),e.ynx(26,16),e.YNc(27,i,3,3,"th",5),e.YNc(28,t,2,1,"td",14),e.BQk(),e.ynx(29,17),e.YNc(30,n,3,3,"th",5),e.YNc(31,s,6,8,"td",14),e.BQk(),e.ynx(32,18),e.YNc(33,l,1,0,"th",8),e.YNc(34,d,2,3,"td",9),e.BQk(),e.YNc(35,c,1,0,"tr",19),e.YNc(36,J,1,12,"tr",20),e.qZA()()(),e.YNc(37,ht,3,3,"perun-web-apps-alert",21)),2&He){let Re;e.Q6J("hidden",0===Pe.dataSource.filteredData.length),e.xp6(1),e.Q6J("dataLength",null!==(Re=Pe.dataSource.count)&&void 0!==Re?Re:Pe.dataSource.filteredData.length)("pageSizeOptions",Pe.pageSizeOptions)("tableId",Pe.tableId),e.xp6(1),e.Q6J("dataSource",Pe.dataSource),e.xp6(1),e.Q6J("ngIf",e.VKq(13,ze,e.Dn7(4,9,Pe.dataSource,Pe.selection.selected.length,Pe.canBeSelected))),e.xp6(32),e.Q6J("matHeaderRowDef",Pe.columns),e.xp6(1),e.Q6J("matRowDefColumns",Pe.columns),e.xp6(1),e.Q6J("ngIf",0===Pe.dataSource.filteredData.length)}},dependencies:[L.O5,O.oG,v.BZ,v.fO,v.as,v.w1,v.Dz,v.nj,v.ge,v.ev,v.XQ,v.Gk,q.rH,D.YE,D.nU,te.w,z.Hw,ie.lW,Te.gM,pe.l,Le.i,T.Y,F.W,V.x,W.Q,ee.X$,Q.f,Ee,ge.F,ve.M,De.I,he,Ye,Be.y,se,le.G,N.r],styles:[".card[_ngcontent-%COMP%]{border-radius:0!important}.static-column-size[_ngcontent-%COMP%]{width:80px}.disable-outline[_ngcontent-%COMP%]{outline:none!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.cursor-default[_ngcontent-%COMP%]{cursor:default}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:.25rem!important}"]}),ne})()},58956:(Xe,ue,p)=>{"use strict";p.d(ue,{I:()=>he});var e=p(94650),A=p(35423),C=p(57851),M=p(95017);class m{constructor(Be){this.id=Be.id,this.name=Be.name,this.parentGroupId=Be.parentGroupId,this.voId=Be.voId,this.shortName=Be.shortName,this.description=Be.description,this.attributes=Be.attributes,this.beanName=Be.beanName}addChild(Be){null==this.children?this.children=[Be]:this.children.push(Be)}}var b=p(9244),D=p(21029),v=p(81591),R=p(65412),B=p(36895),w=p(56709),L=p(94364),O=p(98380),q=p(97392),te=p(4859),z=p(10266),ie=p(67376),Te=p(13449),pe=p(34198),Le=p(55660),T=p(89383);const W=["scrollViewport"];function F(Ye,Be){if(1&Ye){const se=e.EpF();e.TgZ(0,"mat-checkbox",19),e.NdJ("change",function(){e.CHM(se);const N=e.oxw().$implicit,k=e.oxw(2);return e.KtG(k.itemSelectionToggle(N))}),e.qZA()}if(2&Ye){const se=e.oxw().$implicit,le=e.oxw(2);e.Q2q("data-cy","",se.name,"-checkbox"),e.Q6J("disabled","members"===se.fullName)("checked",le.selection.isSelected(se))("indeterminate",le.descendantsPartiallySelected(se))}}function V(Ye,Be){if(1&Ye&&(e.TgZ(0,"mat-icon",20),e._uU(1),e.qZA()),2&Ye){const se=e.oxw().$implicit,le=e.oxw(2);e.xp6(1),e.hij(" ",le.treeControl.isExpanded(se)?"expand_more":"chevron_right"," ")}}function ee(Ye,Be){if(1&Ye&&(e.TgZ(0,"span",21),e._uU(1),e.qZA()),2&Ye){const se=e.oxw().$implicit;e.xp6(1),e.hij(" #",se.id," ")}}const Q=function(Ye,Be){return["/organizations",Ye,"groups",Be]};function Ee(Ye,Be){if(1&Ye){const se=e.EpF();e.ynx(0),e.TgZ(1,"div",6),e.YNc(2,F,1,4,"mat-checkbox",7),e.TgZ(3,"a",8),e.NdJ("auxclick",function(N){return N.preventDefault()}),e.TgZ(4,"button",9),e.NdJ("mouseenter",function(){e.CHM(se);const N=e.oxw(2);return e.KtG(N.disableRouting=!0)})("mouseleave",function(){e.CHM(se);const N=e.oxw(2);return e.KtG(N.disableRouting=!1)})("click",function(){const k=e.CHM(se).$implicit,be=e.oxw(2);return e.KtG(be.treeControl.toggle(k))}),e.YNc(5,V,2,1,"mat-icon",10),e.qZA(),e.TgZ(6,"div",11)(7,"span",12),e._uU(8),e.qZA(),e.YNc(9,ee,2,1,"span",13),e.qZA(),e.TgZ(10,"div",14,15)(12,"span",16),e._uU(13),e.qZA()()(),e.TgZ(14,"div",17)(15,"perun-web-apps-group-menu",18),e.NdJ("moveGroup",function(){const k=e.CHM(se).$implicit,be=e.oxw(2);return e.KtG(be.onMoveGroup(k))})("syncGroup",function(){const k=e.CHM(se).$implicit,be=e.oxw(2);return e.KtG(be.onSyncDetail(k))})("changeNameDescription",function(){const k=e.CHM(se).$implicit,be=e.oxw(2);return e.KtG(be.onChangeNameDescription(k))}),e.qZA()()(),e.BQk()}if(2&Ye){const se=Be.$implicit,le=e.oxw(2);e.xp6(1),e.Udp("padding-left",24*se.level+"px"),e.xp6(1),e.Q6J("ngIf",!le.hideCheckbox),e.xp6(1),e.Q6J("perunWebAppsMiddleClickRouterLink",le.disableRouting?null:e.WLB(16,Q,se.voId.toString(),se.id.toString()))("routerLink",le.disableRouting?null:e.WLB(19,Q,se.voId,se.id)),e.xp6(1),e.Q6J("disabled",!se.expandable),e.uIk("aria-label","toggle "+se.name),e.xp6(1),e.Q6J("ngIf",se.expandable),e.xp6(2),e.uIk("data-cy",se.name),e.xp6(1),e.hij(" ",se.name," "),e.xp6(1),e.Q6J("ngIf",le.authResolver.isPerunAdminOrObserver()),e.xp6(3),e.s9C("matTooltip",se.description),e.xp6(1),e.hij(" ",se.description," "),e.xp6(2),e.Q6J("disabled","members"===se.fullName)("displayButtons",le.displayButtons)("group",se)}}const ge=function(Ye){return{height:Ye}};function ve(Ye,Be){if(1&Ye&&(e.TgZ(0,"div",2)(1,"cdk-virtual-scroll-viewport",3,4),e.YNc(3,Ee,16,22,"ng-container",5),e.qZA()()),2&Ye){const se=e.oxw();e.xp6(1),e.Q6J("minBufferPx",240)("maxBufferPx",480)("ngStyle",e.VKq(4,ge,se.getTreeViewHeight())),e.xp6(2),e.Q6J("cdkVirtualForOf",se.dataSource)}}function De(Ye,Be){1&Ye&&(e.TgZ(0,"perun-web-apps-alert",22),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Ye&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}let he=(()=>{class Ye{constructor(se,le,N){this.cd=se,this.dialog=le,this.authResolver=N,this.theme="group-theme",this.moveGroup=new e.vpe,this.refreshTable=new e.vpe,this.expandAll=!1,this.disableRouting=!1,this.selection=new M.Ov(!0,[]),this.hideCheckbox=!1,this.displayButtons=window.innerWidth>600,this.treeControl=new C.C2(k=>k.level,k=>k.expandable),this.hasChild=(k,be)=>be.expandable,this.getLevel=k=>k.level,this.transformer=(k,be)=>({expandable:!!k.children&&k.children.length>0,name:k.shortName,fullName:k.name,parentGroupId:k.parentGroupId,level:be,id:k.id,voId:k.voId,attributes:k.attributes,beanName:k.beanName,description:k.description}),this.treeFlattener=new A.JZ(this.transformer,k=>k.level,k=>k.expandable,k=>k.children),this.dataSource=new A.kc(this.treeControl,this.treeFlattener)}shouldHideButtons(){this.displayButtons=window.innerWidth>600}ngOnChanges(){if(this.expandAll){this.filteredGroups=this.groups.filter(se=>se.name?.toLowerCase().includes(this.filterValue.toLowerCase())||se.description?.toLowerCase().includes(this.filterValue.toLowerCase())||se.id.toString().includes(this.filterValue.toLowerCase())||se.uuid.toLowerCase().includes(this.filterValue.toLowerCase()));for(const se of this.filteredGroups)se.parentGroupId&&(this.filteredGroups=this.filteredGroups.concat((0,b.oU)(se.parentGroupId,this.groups)))}else this.filteredGroups=this.groups;this.createGroupTrees(this.filteredGroups),this.expandAll&&this.treeControl.expandAll(),this.removeAuth=this.setRemoveAuth()}onSyncDetail(se){const le=(0,b.kZ)();le.width="450px",le.data={groupId:se.id,theme:this.theme},this.dialog.open(D.Bp,le)}onChangeNameDescription(se){const le=(0,b.kZ)();le.data={theme:"group-theme",group:se,dialogType:D.Eg.GROUP},this.dialog.open(D.rd,le).afterClosed().subscribe(k=>{k&&this.refreshTable.emit()})}createGroupTrees(se){const le=new Map;for(const be of se)le.set(be.id,new m(be));const N=new Set;le.forEach((be,Z,ce)=>{const xe=ce.get(be.parentGroupId);void 0!==xe&&(xe.addChild(be),ce.set(be.parentGroupId,xe)),null!==be.parentGroupId&&void 0===xe&&N.add(be.id)});const k=[];le.forEach(be=>{(null===be.parentGroupId||N.has(be.id))&&k.push(be)}),this.dataSource.data=k,this.cd.detectChanges()}getParentNode(se){const le=this.getLevel(se);if(le<1)return null;for(let k=this.treeControl.dataNodes.indexOf(se)-1;k>=0;k--){const be=this.treeControl.dataNodes[k];if(this.getLevel(be)this.selection.isSelected(be));le&&!k&&this.selection.deselect(se)}checkAllParentsSelection(se){let le=this.getParentNode(se);for(;le;)this.checkRootNodeSelection(le),le=this.getParentNode(le);this.removeAuth=this.setRemoveAuth()}descendantsPartiallySelected(se){return this.treeControl.getDescendants(se).some(k=>this.selection.isSelected(k))&&!this.selection.isSelected(se)}itemSelectionToggle(se){this.selection.toggle(se);const le=this.treeControl.getDescendants(se);this.selection.isSelected(se)?this.selection.select(...le):this.selection.deselect(...le),le.every(N=>this.selection.isSelected(N)),this.checkAllParentsSelection(se)}setRemoveAuth(){return this.selection.selected.reduce(void 0!==this.vo?(se,le)=>se&&this.authResolver.isAuthorized("deleteGroups_List_boolean_policy",[this.vo,le]):(se,le)=>se&&this.authResolver.isAuthorized("deleteGroups_List_boolean_policy",[le]),!0)}onMoveGroup(se){this.moveGroup.emit(se)}getTreeViewHeight(){let se=0;this.scrollViewport&&(se=this.scrollViewport.getDataLength());let le=48*se;return le>672&&(le=696),this.scrollViewport&&this.scrollViewport.checkViewportSize(),String(le)+"px"}}return Ye.\u0275fac=function(se){return new(se||Ye)(e.Y36(e.sBO),e.Y36(R.uw),e.Y36(v.x4))},Ye.\u0275cmp=e.Xpm({type:Ye,selectors:[["perun-web-apps-groups-tree"]],viewQuery:function(se,le){if(1&se&&e.Gf(W,5),2&se){let N;e.iGM(N=e.CRH())&&(le.scrollViewport=N.first)}},hostBindings:function(se,le){1&se&&e.NdJ("resize",function(k){return le.shouldHideButtons(k)},!1,e.Jf7)},inputs:{theme:"theme",groups:"groups",filterValue:"filterValue",expandAll:"expandAll",disableRouting:"disableRouting",selection:"selection",hideCheckbox:"hideCheckbox",vo:"vo"},outputs:{moveGroup:"moveGroup",refreshTable:"refreshTable"},features:[e.TTD],decls:2,vars:2,consts:[["class","card mt-2",4,"ngIf"],["alert_type","warn",4,"ngIf"],[1,"card","mt-2"],["itemSize","48",1,"virtual-scroll-container",3,"minBufferPx","maxBufferPx","ngStyle"],["scrollViewport",""],[4,"cdkVirtualFor","cdkVirtualForOf"],[1,"node"],["color","primary","class","no-label-margin-bottom ml-4",3,"disabled","checked","indeterminate","change",4,"ngIf"],[1,"group-item-content","text-format",3,"perunWebAppsMiddleClickRouterLink","routerLink","auxclick"],["mat-icon-button","",3,"disabled","mouseenter","mouseleave","click"],["class","mat-icon-rtl-mirror",4,"ngIf"],[1,"w-50"],[1,"mr-2"],["class","text-muted",4,"ngIf"],[1,"w-50","text-muted","description-text"],["rootDescription",""],["matTooltipPosition","before",3,"matTooltip"],[1,"group-buttons"],[3,"disabled","displayButtons","group","moveGroup","syncGroup","changeNameDescription"],["color","primary",1,"no-label-margin-bottom","ml-4",3,"disabled","checked","indeterminate","change"],[1,"mat-icon-rtl-mirror"],[1,"text-muted"],["alert_type","warn"]],template:function(se,le){1&se&&(e.YNc(0,ve,4,6,"div",0),e.YNc(1,De,3,3,"perun-web-apps-alert",1)),2&se&&(e.Q6J("ngIf",0!==le.filteredGroups.length),e.xp6(1),e.Q6J("ngIf",0===le.filteredGroups.length))},dependencies:[B.O5,B.PC,w.oG,L.yS,O.w,q.Hw,te.lW,z.gM,ie.xd,ie.x0,ie.N7,Te.i,pe.Y,Le.Q,T.X$],styles:[".group-tree-node[_ngcontent-%COMP%]:hover{background-color:#0000000d}.group-item-content[_ngcontent-%COMP%]{display:flex;align-items:center;min-height:48px;flex:1;overflow:hidden;word-wrap:break-word}mat-tree-node[_ngcontent-%COMP%]{cursor:pointer}.description-text[_ngcontent-%COMP%]{display:-webkit-box!important;-webkit-line-clamp:1!important;-webkit-box-orient:vertical;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.virtual-scroll-container[_ngcontent-%COMP%]{overflow:auto}cdk-tree-node[_ngcontent-%COMP%]{display:block}.node[_ngcontent-%COMP%]{display:flex;align-items:center;min-height:48px;flex:1;word-wrap:break-word;cursor:pointer}.node[_ngcontent-%COMP%]:hover{background-color:#0000000d}.text-format[_ngcontent-%COMP%]{text-decoration:none;color:#000;font-weight:400!important}"]}),Ye})()},52314:(Xe,ue,p)=>{"use strict";p.d(ue,{X:()=>O});var e=p(81591),A=p(94650),C=p(36895),M=p(97392),m=p(28255),b=p(4859),D=p(10266),v=p(89383);const R=function(q){return{color:q}};function B(q,te){if(1&q&&(A.TgZ(0,"button",8),A.ALo(1,"translate"),A.TgZ(2,"mat-icon",4),A._uU(3," apps "),A.qZA()()),2&q){const z=A.oxw(),ie=A.MAs(2);A.Q6J("matMenuTriggerFor",ie)("matTooltip",A.lcZ(1,3,"NAV.OTHER_APPLICATIONS")),A.xp6(2),A.Q6J("ngStyle",A.VKq(5,R,z.iconColor))}}function w(q,te){if(1&q&&(A.TgZ(0,"span",9),A._uU(1),A.qZA()),2&q){const z=A.oxw();A.Q6J("ngStyle",A.VKq(6,R,z.textColor)),A.xp6(1),A.xDo(" ",z.user.titleBefore," ",z.user.firstName," ",z.user.middleName," ",z.user.lastName," ",z.user.titleAfter," ")}}function L(q,te){if(1&q){const z=A.EpF();A.TgZ(0,"button",10),A.NdJ("click",function(){A.CHM(z);const Te=A.oxw();return A.KtG(Te.onLogOut())}),A._uU(1),A.ALo(2,"translate"),A.qZA()}2&q&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"NAV.LOGOUT")," "))}let O=(()=>{class q{constructor(z){this.authService=z}redirectToUrl(){window.open(this.url,"_blank")}onLogOut(){this.authService.logout()}}return q.\u0275fac=function(z){return new(z||q)(A.Y36(e.e8))},q.\u0275cmp=A.Xpm({type:q,selectors:[["perun-web-apps-header-menu"]],inputs:{user:"user",iconColor:"iconColor",textColor:"textColor",logoutEnabled:"logoutEnabled",url:"url",label:"label"},decls:13,vars:8,consts:[["mat-icon-button","",3,"matMenuTriggerFor","matTooltip",4,"ngIf"],["appsMenu","matMenu"],["mat-menu-item","",3,"click","auxclick"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],["class","d-none d-lg-inline",3,"ngStyle",4,"ngIf"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-icon-button","",3,"matMenuTriggerFor","matTooltip"],[1,"d-none","d-lg-inline",3,"ngStyle"],["mat-menu-item","",3,"click"]],template:function(z,ie){if(1&z&&(A.YNc(0,B,4,7,"button",0),A.TgZ(1,"mat-menu",null,1)(3,"button",2),A.NdJ("click",function(){return ie.redirectToUrl()})("auxclick",function(){return ie.redirectToUrl()}),A.TgZ(4,"span"),A._uU(5),A.qZA()()(),A.TgZ(6,"button",3)(7,"mat-icon",4),A._uU(8," person "),A.qZA(),A.YNc(9,w,2,8,"span",5),A.qZA(),A.TgZ(10,"mat-menu",null,6),A.YNc(12,L,3,3,"button",7),A.qZA()),2&z){const Te=A.MAs(11);A.Q6J("ngIf",ie.url),A.xp6(5),A.Oqu(ie.label),A.xp6(1),A.Q6J("matMenuTriggerFor",Te),A.xp6(1),A.Q6J("ngStyle",A.VKq(6,R,ie.iconColor)),A.xp6(2),A.Q6J("ngIf",null!==ie.user),A.xp6(3),A.Q6J("ngIf",ie.logoutEnabled)}},dependencies:[C.O5,C.PC,M.Hw,m.VK,m.OP,m.p6,b.lW,D.gM,v.X$],styles:["@media (max-width: 991px){.no-left-padding[_ngcontent-%COMP%]{padding-left:0}}"]}),q})()},7434:(Xe,ue,p)=>{"use strict";p.d(ue,{L:()=>B});var e=p(94650),A=p(24006),C=p(36895),M=p(59549),m=p(284),b=p(22308),D=p(89383);function v(w,L){if(1&w&&(e._UZ(0,"input",3),e.ALo(1,"translate")),2&w){const O=e.oxw();e.s9C("placeholder",e.lcZ(1,2,O.placeholder)),e.Q6J("formControl",O.formControl)}}function R(w,L){if(1&w&&(e._UZ(0,"input",4),e.ALo(1,"translate")),2&w){const O=e.oxw();e.s9C("placeholder",e.lcZ(1,2,O.placeholder)),e.Q6J("formControl",O.formControl)}}let B=(()=>{class w{constructor(){this.filter=new e.vpe,this.autoFocus=!1,this.formControl=new A.p4}ngOnInit(){this.formControl.valueChanges.subscribe(O=>{let q=O.trim();q=q.toLowerCase(),this.filter.emit(q)})}}return w.\u0275fac=function(O){return new(O||w)},w.\u0275cmp=e.Xpm({type:w,selectors:[["perun-web-apps-immediate-filter"]],inputs:{placeholder:"placeholder",autoFocus:"autoFocus"},outputs:{filter:"filter"},decls:3,vars:2,consts:[[1,"filter-field","mr-2"],["matInput","","perunWebAppsAutoFocus","","data-cy","auto-focused-filter",3,"formControl","placeholder",4,"ngIf"],["matInput","","data-cy","unfocused-filter",3,"formControl","placeholder",4,"ngIf"],["matInput","","perunWebAppsAutoFocus","","data-cy","auto-focused-filter",3,"formControl","placeholder"],["matInput","","data-cy","unfocused-filter",3,"formControl","placeholder"]],template:function(O,q){1&O&&(e.TgZ(0,"mat-form-field",0),e.YNc(1,v,2,4,"input",1),e.YNc(2,R,2,4,"input",2),e.qZA()),2&O&&(e.xp6(1),e.Q6J("ngIf",q.autoFocus),e.xp6(1),e.Q6J("ngIf",!q.autoFocus))},dependencies:[C.O5,A.Fj,A.JJ,M.KE,A.oH,m.Nt,b.h,D.X$],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:0!important;min-width:initial!important}"]}),w})()},93057:(Xe,ue,p)=>{"use strict";p.d(ue,{z:()=>N});var e=p(94650),A=p(61744),C=p(9244),M=p(64080),m=p(30671),b=p(81591),D=p(21029),v=p(89383),R=p(65412),B=p(36895),w=p(51572),L=p(98380),O=p(97392),q=p(4859),te=p(73546),z=p(82322),ie=p(21757),Te=p(82514),pe=p(62383),Le=p(49206);function T(k,be){1&k&&(e.TgZ(0,"mat-card-header")(1,"mat-card-title")(2,"h1",6),e._uU(3),e.ALo(4,"translate"),e.qZA()()()),2&k&&(e.xp6(3),e.Oqu(e.lcZ(4,1,"MEMBER_DETAIL.OVERVIEW.GROUP_MEMBERSHIP")))}function W(k,be){1&k&&(e.TgZ(0,"h1",7),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&k&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBER_DETAIL.OVERVIEW.GROUP_MEMBERSHIP"),"\n"))}function F(k,be){if(1&k){const Z=e.EpF();e.TgZ(0,"perun-web-apps-group-search-select",8),e.NdJ("groupSelected",function(xe){e.CHM(Z);const ot=e.oxw();return e.KtG(ot.groupIsSelected(xe))}),e.qZA()}if(2&k){const Z=e.oxw();e.Q6J("firstSelectedGroup",Z.selectedGroup)("groups",Z.groups)}}function V(k,be){1&k&&e._UZ(0,"mat-spinner",9)}function ee(k,be){1&k&&(e.TgZ(0,"perun-web-apps-alert",10),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&k&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"MEMBER_DETAIL.OVERVIEW.NO_GROUPS_FOUND")))}function Q(k,be){1&k&&e._UZ(0,"th",18)}function Ee(k,be){if(1&k&&(e.TgZ(0,"td",19),e._uU(1),e.qZA()),2&k){const Z=be.$implicit;e.xp6(1),e.hij("",Z,":")}}function ge(k,be){1&k&&e._UZ(0,"th",18)}function ve(k,be){if(1&k){const Z=e.EpF();e.TgZ(0,"button",23),e.NdJ("click",function(){e.CHM(Z);const xe=e.oxw(4);return e.KtG(xe.changeStatus())}),e.TgZ(1,"mat-icon"),e._uU(2,"edit"),e.qZA()()}}function De(k,be){if(1&k&&(e.TgZ(0,"div")(1,"i"),e.ALo(2,"groupStatusIconColor"),e._uU(3),e.ALo(4,"memberStatusIcon"),e.qZA(),e.TgZ(5,"b",21),e._uU(6),e.ALo(7,"transformMemberStatus"),e.qZA(),e.YNc(8,ve,3,0,"button",22),e.qZA()),2&k){const Z=e.oxw(3);e.xp6(1),e.Gre("material-icons vert-center mr-1 ",e.lcZ(2,6,Z.selectedMember.groupStatus),""),e.xp6(2),e.hij(" ",e.lcZ(4,8,Z.selectedMember.groupStatus)," "),e.xp6(3),e.hij(" ",e.lcZ(7,10,Z.selectedMember.groupStatus)," "),e.xp6(2),e.Q6J("ngIf",Z.authResolver.isThisVoAdmin(Z.voId)||Z.authResolver.isThisGroupAdmin(Z.selectedGroup.id))}}function he(k,be){if(1&k){const Z=e.EpF();e.TgZ(0,"button",23),e.NdJ("click",function(){e.CHM(Z);const xe=e.oxw(4);return e.KtG(xe.changeExpiration())}),e.TgZ(1,"mat-icon"),e._uU(2,"edit"),e.qZA()()}}function Ye(k,be){if(1&k&&(e.TgZ(0,"div")(1,"i",2),e._uU(2),e.ALo(3,"parseDate"),e.qZA(),e.YNc(4,he,3,0,"button",22),e.qZA()),2&k){const Z=e.oxw(3);e.xp6(2),e.hij(" ",e.lcZ(3,2,Z.expiration)," "),e.xp6(2),e.Q6J("ngIf",Z.authResolver.isThisVoAdmin(Z.voId)||Z.authResolver.isThisGroupAdmin(Z.selectedGroup.id))}}function Be(k,be){if(1&k&&(e.TgZ(0,"td",20),e.YNc(1,De,9,12,"div",0),e.YNc(2,Ye,5,4,"div",0),e.qZA()),2&k){const Z=be.$implicit;e.xp6(1),e.Q6J("ngIf","Status"===Z),e.xp6(1),e.Q6J("ngIf","Expiration"===Z)}}function se(k,be){1&k&&e._UZ(0,"tr",24)}function le(k,be){if(1&k&&(e.TgZ(0,"div")(1,"table",11),e.ynx(2,12),e.YNc(3,Q,1,0,"th",13),e.YNc(4,Ee,2,1,"td",14),e.BQk(),e.ynx(5,15),e.YNc(6,ge,1,0,"th",13),e.YNc(7,Be,3,2,"td",16),e.BQk(),e.YNc(8,se,1,0,"tr",17),e.qZA()()),2&k){const Z=e.oxw();e.xp6(1),e.Tol(Z.openedInDialog?"mr-auto":"ml-auto mr-auto"),e.Q6J("dataSource",Z.groupMembershipDataSource),e.xp6(7),e.Q6J("matRowDefColumns",Z.displayedColumns)}}let N=(()=>{class k{constructor(Z,ce,xe,ot){this.groupsManager=Z,this.authResolver=ce,this.translate=xe,this.dialog=ot,this.openedInDialog=!1,this.statusChanged=new e.vpe,this.noGroups=!1,this.groupMembershipDataSource=new m.by,this.expiration="",this.displayedColumns=["attName","attValue"]}ngOnChanges(){this.loading=!0,this.initLoading=!0,this.groupMembershipDataSource=new m.by(["Status","Expiration"]),this.groupsManager.getMemberGroups(this.member.id).subscribe(Z=>{if(this.groups=Z,0===this.groups.length)return void(this.noGroups=!0);const ce=this.findInitiallySelectedGroupId();this.groupIsSelected(ce),this.initLoading=!1})}findInitiallySelectedGroupId(){if(this.recentIds=(0,C.vL)("groups"),this.recentIds){const Z=this.groups.find(ce=>ce.id===this.recentIds[0]);if(Z)return Z}return this.groups[0]}groupIsSelected(Z){this.loading=!0,this.selectedGroup=Z,this.groupsManager.getGroupRichMembersByIds(this.selectedGroup.id,[this.member.id],[M.r.MEMBER_DEF_GROUP_EXPIRATION]).subscribe(ce=>{this.selectedMember=ce[0],this.expirationAtt=this.selectedMember.memberAttributes.find(xe=>"groupMembershipExpiration"===xe.baseFriendlyName),this.expirationAtt?(this.groupMembershipDataSource=new m.by(["Status","Expiration"]),this.expiration=this.expirationAtt.value?this.expirationAtt.value:this.translate.instant("MEMBER_DETAIL.OVERVIEW.NEVER_EXPIRES")):this.groupMembershipDataSource=new m.by(["Status"]),this.loading=!1})}changeExpiration(Z=!1){const ce=(0,C.kZ)();ce.width="400px",ce.data={memberId:this.member.id,groupId:this.selectedGroup.id,expirationAttr:this.expirationAtt,status:this.selectedMember.groupStatus,statusChanged:Z,backButton:this.openedInDialog},this.dialog.open(D.u3,ce).afterClosed().subscribe(ot=>{ot.success?(this.groupIsSelected(this.selectedGroup),this.dialog.closeAll()):Z&&this.statusChanged.emit(Z)})}changeStatus(){const Z=(0,C.kZ)();Z.width="600px",Z.data={member:this.selectedMember,voId:this.voId,groupId:this.selectedGroup.id,backButton:this.openedInDialog},this.dialog.open(D.pf,Z).afterClosed().subscribe(xe=>{xe&&(this.selectedMember=xe,this.changeExpiration(!0))})}}return k.\u0275fac=function(Z){return new(Z||k)(e.Y36(A.ff),e.Y36(b.x4),e.Y36(v.sK),e.Y36(R.uw))},k.\u0275cmp=e.Xpm({type:k,selectors:[["perun-web-apps-member-overview-groups"]],inputs:{voId:"voId",member:"member",openedInDialog:"openedInDialog"},outputs:{statusChanged:"statusChanged"},features:[e.TTD],decls:7,vars:6,consts:[[4,"ngIf"],["class","mat-dialog-title",4,"ngIf"],[1,"column-center"],[3,"firstSelectedGroup","groups","groupSelected",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],["alert_type","warn",4,"ngIf"],[1,"page-subtitle"],[1,"mat-dialog-title"],[3,"firstSelectedGroup","groups","groupSelected"],[1,"mr-auto","ml-auto"],["alert_type","warn"],["mat-table","",3,"dataSource"],["matColumnDef","attName"],["mat-header-cell","",4,"matHeaderCellDef"],["class","font-weight-bold","mat-cell","",4,"matCellDef"],["matColumnDef","attValue"],["class","column-center","mat-cell","",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"font-weight-bold"],["mat-cell","",1,"column-center"],[1,"vert-top"],["mat-icon-button","",3,"click",4,"ngIf"],["mat-icon-button","",3,"click"],["mat-row",""]],template:function(Z,ce){1&Z&&(e.YNc(0,T,5,3,"mat-card-header",0),e.YNc(1,W,3,3,"h1",1),e.TgZ(2,"mat-card-content",2),e.YNc(3,F,1,2,"perun-web-apps-group-search-select",3),e.YNc(4,V,1,0,"mat-spinner",4),e.YNc(5,ee,3,3,"perun-web-apps-alert",5),e.YNc(6,le,9,4,"div",0),e.qZA()),2&Z&&(e.Q6J("ngIf",!ce.openedInDialog),e.xp6(1),e.Q6J("ngIf",ce.openedInDialog),e.xp6(2),e.Q6J("ngIf",!ce.initLoading&&!ce.openedInDialog),e.xp6(1),e.Q6J("ngIf",(ce.loading||ce.initLoading)&&!ce.noGroups),e.xp6(1),e.Q6J("ngIf",ce.noGroups),e.xp6(1),e.Q6J("ngIf",!ce.loading))},dependencies:[B.O5,m.BZ,m.fO,m.w1,m.Dz,m.nj,m.ge,m.ev,m.Gk,w.Ou,L.w,O.Hw,q.lW,te.dk,te.dn,te.n5,z.h,v.X$,ie.f,Te.F,pe.M,Le.r],styles:[".align-cards[_ngcontent-%COMP%]{margin:1rem;display:inline-block;vertical-align:top}.vert-center[_ngcontent-%COMP%]{vertical-align:middle!important}"]}),k})()},12488:(Xe,ue,p)=>{"use strict";p.d(ue,{b:()=>Be});var e=p(94650),A=p(61744),C=p(9244),M=p(21029),m=p(30671),b=p(81591),D=p(64080),v=p(65412),R=p(89383),B=p(36895),w=p(51572),L=p(97392),O=p(4859),q=p(73546),te=p(69773),z=p(21757),ie=p(38993),Te=p(62383),pe=p(49206);function Le(se,le){1&se&&(e.TgZ(0,"mat-card-header")(1,"mat-card-title")(2,"h1",3),e._uU(3),e.ALo(4,"translate"),e.qZA()()()),2&se&&(e.xp6(3),e.hij(" ",e.lcZ(4,1,"MEMBER_DETAIL.OVERVIEW.ORGANIZATION_MEMBERSHIP")," "))}function T(se,le){1&se&&(e.TgZ(0,"h1",4),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&se&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBER_DETAIL.OVERVIEW.ORGANIZATION_MEMBERSHIP"),"\n"))}function W(se,le){1&se&&e._UZ(0,"mat-spinner",5)}function F(se,le){1&se&&e._UZ(0,"th",13)}function V(se,le){if(1&se&&(e.TgZ(0,"td",14),e._uU(1),e.qZA()),2&se){const N=le.$implicit;e.xp6(1),e.hij("",N,":")}}function ee(se,le){1&se&&e._UZ(0,"th",13)}function Q(se,le){if(1&se){const N=e.EpF();e.TgZ(0,"button",18),e.NdJ("click",function(){e.CHM(N);const be=e.oxw(4);return e.KtG(be.changeStatus())}),e.TgZ(1,"mat-icon"),e._uU(2,"edit"),e.qZA()()}}function Ee(se,le){if(1&se&&(e.TgZ(0,"div")(1,"i"),e.ALo(2,"memberStatusIconColor"),e._uU(3),e.ALo(4,"memberStatusIcon"),e.qZA(),e.TgZ(5,"b",16),e._uU(6),e.ALo(7,"transformMemberStatus"),e.qZA(),e.YNc(8,Q,3,0,"button",17),e.ALo(9,"memberStatusDisabled"),e.qZA()),2&se){const N=e.oxw(3);e.xp6(1),e.Gre("material-icons vert-center mr-1 ",e.lcZ(2,6,N.member),""),e.xp6(2),e.hij(" ",e.lcZ(4,8,N.member.status)," "),e.xp6(3),e.hij(" ",e.lcZ(7,10,N.member.status)," "),e.xp6(2),e.Q6J("ngIf",N.authResolver.isThisVoAdmin(N.voId)&&!e.lcZ(9,12,N.member))}}function ge(se,le){if(1&se){const N=e.EpF();e.TgZ(0,"button",18),e.NdJ("click",function(){e.CHM(N);const be=e.oxw(4);return e.KtG(be.changeVoExpiration(!1))}),e.TgZ(1,"mat-icon"),e._uU(2,"edit"),e.qZA()()}}function ve(se,le){if(1&se&&(e.TgZ(0,"div")(1,"i",19),e._uU(2),e.ALo(3,"parseDate"),e.qZA(),e.YNc(4,ge,3,0,"button",17),e.ALo(5,"memberStatusDisabled"),e.qZA()),2&se){const N=e.oxw(3);e.xp6(2),e.hij(" ",e.lcZ(3,2,N.voExpiration)," "),e.xp6(2),e.Q6J("ngIf",N.authResolver.isThisVoAdmin(N.voId)&&!e.lcZ(5,4,N.member))}}function De(se,le){if(1&se&&(e.TgZ(0,"td",15),e.YNc(1,Ee,10,14,"div",0),e.YNc(2,ve,6,6,"div",0),e.qZA()),2&se){const N=le.$implicit;e.xp6(1),e.Q6J("ngIf","Status"===N),e.xp6(1),e.Q6J("ngIf","Expiration"===N)}}function he(se,le){1&se&&e._UZ(0,"tr",20)}function Ye(se,le){if(1&se&&(e.TgZ(0,"div")(1,"table",6),e.ynx(2,7),e.YNc(3,F,1,0,"th",8),e.YNc(4,V,2,1,"td",9),e.BQk(),e.ynx(5,10),e.YNc(6,ee,1,0,"th",8),e.YNc(7,De,3,2,"td",11),e.BQk(),e.YNc(8,he,1,0,"tr",12),e.qZA()()),2&se){const N=e.oxw();e.xp6(1),e.Tol(N.openedInDialog?"mr-auto":"ml-auto mr-auto"),e.Q6J("dataSource",N.voMembershipDataSource),e.xp6(7),e.Q6J("matRowDefColumns",N.displayedColumns)}}let Be=(()=>{class se{constructor(N,k,be,Z,ce,xe){this.dialog=N,this.authResolver=k,this.apiRequest=be,this.attributesManager=Z,this.translate=ce,this.notificator=xe,this.openedInDialog=!1,this.statusChanged=new e.vpe,this.voMembershipDataSource=new m.by,this.voExpiration="",this.displayedColumns=["attName","attValue"]}ngOnChanges(){this.voMembershipDataSource=new m.by(["Status","Expiration"]),this.refreshVoExpiration()}changeStatus(){const N=(0,C.kZ)();N.width="600px",N.data={member:this.member,voId:this.voId,backButton:this.openedInDialog};const k=this.member.status;this.dialog.open(M.pf,N).afterClosed().subscribe(Z=>{Z&&(this.member=Z,"VALID"===k&&("EXPIRED"===Z.status||"DISABLED"===Z.status)||"VALID"===Z.status?this.changeVoExpiration(!0):this.dialog.closeAll())})}changeVoExpiration(N){const k=(0,C.kZ)();k.width="400px",k.data={voId:this.voId,memberId:this.member.id,expirationAttr:this.voExpirationAtt,status:this.member.status,statusChanged:N,backButton:this.openedInDialog},this.dialog.open(M.kZ,k).afterClosed().subscribe(Z=>{Z.success?(Z.member&&(this.member=Z.member),this.refreshVoExpiration(),this.dialog.closeAll()):N&&this.statusChanged.emit(N)})}refreshVoExpiration(){this.loading=!0,this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getMemberAttributeByName(this.member.id,D.r.MEMBER_DEF_EXPIRATION).subscribe({next:N=>{this.voExpirationAtt=N,this.voExpiration=N.value?N.value:this.translate.instant("MEMBER_DETAIL.OVERVIEW.NEVER_EXPIRES"),this.loading=!1},error:N=>{"PrivilegeException"!==N.name?this.notificator.showError(N.name):this.voMembershipDataSource=new m.by(["Status"]),this.loading=!1}})}}return se.\u0275fac=function(N){return new(N||se)(e.Y36(v.uw),e.Y36(b.x4),e.Y36(b.F5),e.Y36(A.H8),e.Y36(R.sK),e.Y36(b.V6))},se.\u0275cmp=e.Xpm({type:se,selectors:[["perun-web-apps-member-overview-membership"]],inputs:{member:"member",voId:"voId",openedInDialog:"openedInDialog"},outputs:{statusChanged:"statusChanged"},features:[e.TTD],decls:5,vars:4,consts:[[4,"ngIf"],["class","mat-dialog-title",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],[1,"page-subtitle"],[1,"mat-dialog-title"],[1,"mr-auto","ml-auto"],["mat-table","",3,"dataSource"],["matColumnDef","attName"],["mat-header-cell","",4,"matHeaderCellDef"],["class","font-weight-bold","mat-cell","",4,"matCellDef"],["matColumnDef","attValue"],["class","column-center","mat-cell","",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"font-weight-bold"],["mat-cell","",1,"column-center"],[1,"vert-top"],["mat-icon-button","",3,"click",4,"ngIf"],["mat-icon-button","",3,"click"],[1,"column-center"],["mat-row",""]],template:function(N,k){1&N&&(e.YNc(0,Le,5,3,"mat-card-header",0),e.YNc(1,T,3,3,"h1",1),e.TgZ(2,"mat-card-content"),e.YNc(3,W,1,0,"mat-spinner",2),e.YNc(4,Ye,9,4,"div",0),e.qZA()),2&N&&(e.Q6J("ngIf",!k.openedInDialog),e.xp6(1),e.Q6J("ngIf",k.openedInDialog),e.xp6(2),e.Q6J("ngIf",k.loading),e.xp6(1),e.Q6J("ngIf",!k.loading))},dependencies:[B.O5,m.BZ,m.fO,m.w1,m.Dz,m.nj,m.ge,m.ev,m.Gk,w.Ou,L.Hw,O.lW,q.dk,q.dn,q.n5,R.X$,te.u,z.f,ie.n,Te.M,pe.r],styles:[".vert-center[_ngcontent-%COMP%]{vertical-align:middle!important}"]}),se})()},4811:(Xe,ue,p)=>{"use strict";p.d(ue,{m:()=>n});var e=p(21029),A=p(81591),C=p(9244),M=p(96308),m=p(56451),b=p(18505),D=p(61880),v=p(94650),R=p(65412),B=p(10036),w=p(36895),L=p(56709),O=p(30671),q=p(94364),te=p(51572),z=p(98380),ie=p(97392),Te=p(10266),pe=p(18750),Le=p(34198),T=p(55660),W=p(89383),F=p(31359),V=p(69773),ee=p(21757),Q=p(12856),Ee=p(20919),ge=p(5865),ve=p(82514),De=p(96974),he=p(38993),Ye=p(86349),Be=p(9185),se=p(8231),le=p(14849);function N(o,s){1&o&&(v.TgZ(0,"div",20),v._UZ(1,"mat-spinner",21),v.qZA())}function k(o,s){if(1&o){const l=v.EpF();v.TgZ(0,"mat-checkbox",27),v.NdJ("change",function(c){v.CHM(l);const S=v.oxw(3);return v.KtG(c?S.masterToggle():null)}),v.ALo(1,"translate"),v.ALo(2,"masterCheckboxLabel"),v.qZA()}if(2&o){const l=v.oxw(2).ngIf,d=v.oxw();v.Q6J("aria-label",v.lcZ(1,3,v.lcZ(2,5,l.all)))("checked",d.selection.hasValue()&&l.all)("indeterminate",d.selection.hasValue()&&!l.all)}}function be(o,s){if(1&o&&(v.TgZ(0,"th",25),v.YNc(1,k,3,7,"mat-checkbox",26),v.qZA()),2&o){const l=v.oxw(2);v.xp6(1),v.Q6J("ngIf",l.selection.isMultipleSelection())}}const Z=function(o){return{name:o}};function ce(o,s){if(1&o){const l=v.EpF();v.TgZ(0,"td",28)(1,"mat-checkbox",29),v.NdJ("change",function(c){const J=v.CHM(l).$implicit,ht=v.oxw(2);return v.KtG(c?ht.selection.toggle(J):null)})("click",function(c){return c.stopPropagation()}),v.ALo(2,"translate"),v.ALo(3,"checkboxLabel"),v.ALo(4,"userFullName"),v.ALo(5,"lowercase"),v.ALo(6,"memberStatusDisabled"),v.ALo(7,"memberCheckboxLabel"),v.qZA()()}if(2&o){const l=s.$implicit,d=v.oxw(2);v.xp6(1),v.Q2q("data-cy","",v.lcZ(5,12,l.user.firstName),"-checkbox"),v.Q6J("aria-label",v.xi3(2,5,v.lcZ(3,8,d.selection.isSelected(l)),v.VKq(20,Z,v.lcZ(4,10,l.user))))("checked",d.selection.isSelected(l))("disabled",v.xi3(6,14,l,d.groupId))("matTooltip",v.xi3(7,17,l,d.groupId))}}function xe(o,s){1&o&&(v.ynx(0,22),v.YNc(1,be,2,1,"th",23),v.YNc(2,ce,8,22,"td",24),v.BQk())}function ot(o,s){1&o&&(v.TgZ(0,"th",30),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&o&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"MEMBERS_LIST.ID")))}function Fe(o,s){if(1&o&&(v.TgZ(0,"td",31),v._uU(1),v.qZA()),2&o){const l=s.$implicit;v.xp6(1),v.Oqu(l.id)}}function ut(o,s){1&o&&v._UZ(0,"th",30)}function tt(o,s){if(1&o){const l=v.EpF();v.TgZ(0,"mat-icon",34),v.NdJ("click",function(c){v.CHM(l);const S=v.oxw().$implicit,J=v.oxw();return v.KtG(J.viewMemberGroupTree(c,S))}),v.ALo(1,"translate"),v._uU(2,"transfer_within_a_station"),v.qZA()}2&o&&v.Q6J("matTooltip",v.lcZ(1,1,"MEMBERS_LIST.INDIRECT_MEMBER"))}function vt(o,s){if(1&o&&(v.TgZ(0,"td",32),v.YNc(1,tt,3,3,"mat-icon",33),v.qZA()),2&o){const l=s.$implicit;v.xp6(1),v.Q6J("ngIf","DIRECT"!==l.membershipType)}}function X(o,s){1&o&&(v.TgZ(0,"th",30),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&o&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"MEMBERS_LIST.NAME")," "))}function nt(o,s){if(1&o&&(v.TgZ(0,"td",32),v.ALo(1,"lowercase"),v._uU(2),v.ALo(3,"userFullName"),v.qZA()),2&o){const l=s.$implicit;v.Q2q("data-cy","",v.lcZ(1,2,l.user.firstName),"-firstName-td"),v.xp6(2),v.hij(" ",v.lcZ(3,4,l.user)," ")}}function Ae(o,s){1&o&&(v.TgZ(0,"th",35),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&o&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"MEMBERS_LIST.STATUS")))}function ye(o,s){if(1&o){const l=v.EpF();v.TgZ(0,"td",32)(1,"i",36),v.NdJ("click",function(c){const J=v.CHM(l).$implicit,ht=v.oxw();return v.KtG(ht.openMembershipDialog(c,J))}),v.ALo(2,"memberStatusIconColor"),v.ALo(3,"memberStatusTooltip"),v.TgZ(4,"span"),v._uU(5),v.ALo(6,"memberStatusIcon"),v.qZA()()()}if(2&o){const l=s.$implicit,d=v.oxw();v.xp6(1),v.Gre("material-icons ",v.lcZ(2,7,l),""),v.ekj("cursor-default",!d.expireVoAuth),v.s9C("matTooltip",v.xi3(3,9,l,!1)),v.xp6(4),v.hij(" ",v.lcZ(6,12,l.status)," ")}}function _e(o,s){1&o&&(v.TgZ(0,"th",35),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&o&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"MEMBERS_LIST.GROUP_STATUS")))}function Se(o,s){if(1&o){const l=v.EpF();v.TgZ(0,"td",32)(1,"i",36),v.NdJ("click",function(c){const J=v.CHM(l).$implicit,ht=v.oxw();return v.KtG(ht.openMembershipDialog(c,J,ht.groupId))}),v.ALo(2,"groupStatusIconColor"),v.ALo(3,"memberStatusTooltip"),v.TgZ(4,"span"),v._uU(5),v.ALo(6,"memberStatusIcon"),v.qZA()()()}if(2&o){const l=s.$implicit,d=v.oxw();v.xp6(1),v.Gre("material-icons ",v.Dn7(2,7,l.groupStatus,"INDIRECT"===l.membershipType,d.isMembersGroup),""),v.ekj("cursor-default",!d.expireGroupAuth),v.s9C("matTooltip",v.Dn7(3,11,l,!0,d.isMembersGroup)),v.xp6(4),v.hij(" ",v.lcZ(6,15,l.groupStatus)," ")}}function Ne(o,s){1&o&&(v.TgZ(0,"th",35),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&o&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"MEMBERS_LIST.ORGANIZATION")))}function Ce(o,s){if(1&o&&(v.TgZ(0,"td",32),v._uU(1),v.ALo(2,"memberOrganization"),v.qZA()),2&o){const l=s.$implicit;v.xp6(1),v.Oqu(v.lcZ(2,1,l))}}function fe(o,s){1&o&&(v.TgZ(0,"th",35),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&o&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"MEMBERS_LIST.EMAIL")))}function r(o,s){if(1&o&&(v.TgZ(0,"td",32),v._uU(1),v.ALo(2,"memberEmail"),v.qZA()),2&o){const l=s.$implicit;v.xp6(1),v.Oqu(v.lcZ(2,1,l))}}function u(o,s){1&o&&(v.TgZ(0,"th",35),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&o&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"MEMBERS_LIST.LOGINS")))}function _(o,s){if(1&o&&(v.TgZ(0,"td",32),v._uU(1),v.ALo(2,"memberLogins"),v.qZA()),2&o){const l=s.$implicit;v.xp6(1),v.Oqu(v.lcZ(2,1,l))}}function E(o,s){1&o&&v._UZ(0,"tr",37)}const h=function(o,s){return["/organizations",o,"members",s]};function a(o,s){if(1&o&&v._UZ(0,"tr",38),2&o){const l=s.$implicit,d=v.oxw();v.ekj("cursor-pointer",d.dataSource.routeAuth)("italic_font","INDIRECT"===l.membershipType)("disable-outline",d.disableRouting||!d.dataSource.routeAuth),v.Q6J("perunWebAppsMiddleClickRouterLink",d.disableRouting||!d.dataSource.routeAuth?null:v.WLB(8,h,l.voId,l.id))("routerLink",d.disableRouting||!d.dataSource.routeAuth?null:v.WLB(11,h,l.voId,l.id))}}function i(o,s){1&o&&(v.TgZ(0,"perun-web-apps-alert",39),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&o&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_MEMBERS"),"\n"))}const t=function(o){return{all:o}};let n=(()=>{class o{constructor(l,d,c,S,J,ht){this.dialog=l,this.authResolver=d,this.tableCheckbox=c,this.tableConfigService=S,this.dynamicPaginatingService=J,this.entityStorage=ht,this.displayedColumns=["checkbox","id","type","fullName","status","groupStatus","organization","email","logins"],this.selectedGroupStatuses=[],this.disableRouting=!1,this.pageSizeOptions=C.f7,this.canBeSelected=ze=>!(0,C.im)(ze)}static getExportDataForColumn(l,d){switch(d){case"id":return l.id.toString();case"fullName":return l.user?(0,C.bD)(l.user):"";case"status":return l.status;case"groupStatus":return l.groupStatus;case"organization":return(0,C.Gw)(l);case"email":return(0,C.g$)(l);case"logins":return(0,C.lt)(l);default:return""}}ngAfterViewInit(){this.sort.sortChange.subscribe(()=>this.child.paginator.pageIndex=0),(0,m.T)(this.sort.sortChange,this.child.paginator.page).pipe((0,b.b)(()=>this.loadMembersPage())).subscribe()}ngOnInit(){this.expireGroupAuth=this.authResolver.isAuthorized("setMemberGroupStatus_Member_Group_MemberGroupStatus_policy",[this.entityStorage.getEntity()]),this.expireVoAuth=this.authResolver.isAuthorized("setStatus_Member_Status_policy",[this.entityStorage.getEntity()]),this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(l=>"id"!==l)),this.dataSource=new A.Hy(this.dynamicPaginatingService,this.authResolver),this.dataSource.loadMembers(this.voId,this.attrNames,"ASCENDING",0,this.tableConfigService.getTablePageSize(this.tableId),"NAME",this.selectedStatuses,this.searchString,this.groupId,this.selectedGroupStatuses)}ngOnChanges(){this.dataSource&&(this.child.paginator.pageIndex=0,this.loadMembersPage())}masterToggle(){this.isAllSelected()?this.selection.clear():this.dataSource.getData().forEach(l=>{this.canBeSelected(l)&&this.selection.select(l)})}isAllSelected(){return this.selection.selected.length===this.dataSource.getData().filter(c=>this.canBeSelected(c)).length}openMembershipDialog(l,d,c){l.stopPropagation();const S=(0,C.zr)(d);if(c){if(!this.expireGroupAuth||this.isMembersGroup||"INDIRECT"===S)return}else if(!this.expireVoAuth||"UNALTERABLE"===S)return;const J=(0,C.kZ)();J.minWidth="280px",J.data={member:d,voId:this.voId,groupId:c},this.dialog.open(D.z,J).afterClosed().subscribe(ze=>{ze||this.loadMembersPage()})}loadMembersPage(){this.dataSource.loadMembers(this.voId,this.attrNames,"asc"===this.sort.direction?"ASCENDING":"DESCENDING",this.child.paginator.pageIndex,this.child.paginator.pageSize,"fullName"===this.sort.active?"NAME":"ID",this.selectedStatuses,this.searchString,this.groupId,this.selectedGroupStatuses)}exportDisplayedData(l){(0,C.O6)((0,C.Xn)(this.dataSource.getData(),this.displayedColumns,o.getExportDataForColumn),l)}exportAllData(l){const d="asc"===this.sort.direction?"ASCENDING":"DESCENDING",c="fullName"===this.sort.active?"NAME":"ID",S=(0,C.kZ)();S.width="300px";const J=this.dialog.open(e.QQ,S);this.dataSource.getAllMembers(this.voId,this.attrNames,d,this.child.paginator.length,c,this.selectedStatuses,this.searchString,this.groupId,this.selectedGroupStatuses).subscribe(ht=>{J.close(),(0,C.O6)((0,C.Xn)(ht,this.displayedColumns,o.getExportDataForColumn),l)})}viewMemberGroupTree(l,d){l.stopPropagation();const c=(0,C.kZ)();c.width="800px",c.data={member:d,groupId:this.groupId},this.dialog.open(e.jd,c)}}return o.\u0275fac=function(l){return new(l||o)(v.Y36(R.uw),v.Y36(A.x4),v.Y36(A.UA),v.Y36(B.dB),v.Y36(A.ly),v.Y36(A.fb))},o.\u0275cmp=v.Xpm({type:o,selectors:[["perun-web-apps-members-dynamic-list"]],viewQuery:function(l,d){if(1&l&&(v.Gf(C.l9,7),v.Gf(M.YE,5)),2&l){let c;v.iGM(c=v.CRH())&&(d.child=c.first),v.iGM(c=v.CRH())&&(d.sort=c.first)}},inputs:{selection:"selection",displayedColumns:"displayedColumns",voId:"voId",groupId:"groupId",selectedGroupStatuses:"selectedGroupStatuses",attrNames:"attrNames",searchString:"searchString",selectedStatuses:"selectedStatuses",tableId:"tableId",updateTable:"updateTable",isMembersGroup:"isMembersGroup",disableRouting:"disableRouting"},features:[v.TTD],decls:36,vars:22,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["class","spinner-container",4,"ngIf"],["mat-table","","matSort","","matSortActive","fullName","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","type"],["mat-cell","",4,"matCellDef"],["matColumnDef","fullName"],["matColumnDef","status"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","groupStatus"],["matColumnDef","organization"],["matColumnDef","email"],["matColumnDef","logins"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","italic_font","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],[1,"spinner-container"],[1,"ml-auto","mr-auto"],["matColumnDef","checkbox"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change",4,"ngIf"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","disabled","matTooltip","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],[3,"matTooltip","click",4,"ngIf"],[3,"matTooltip","click"],["mat-header-cell",""],["matTooltipClass","status-tooltip","matTooltipPosition","left",3,"matTooltip","click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(l,d){1&l&&(v.TgZ(0,"div",0),v.ALo(1,"async"),v.TgZ(2,"perun-web-apps-table-wrapper",1),v.NdJ("exportDisplayedData",function(S){return d.exportDisplayedData(S)})("exportAllData",function(S){return d.exportAllData(S)}),v.YNc(3,N,2,0,"div",2),v.ALo(4,"async"),v.TgZ(5,"table",3),v.YNc(6,xe,3,0,"ng-container",4),v.ALo(7,"isAllSelected"),v.ynx(8,5),v.YNc(9,ot,3,3,"th",6),v.YNc(10,Fe,2,1,"td",7),v.BQk(),v.ynx(11,8),v.YNc(12,ut,1,0,"th",6),v.YNc(13,vt,2,1,"td",9),v.BQk(),v.ynx(14,10),v.YNc(15,X,3,3,"th",6),v.YNc(16,nt,4,6,"td",9),v.BQk(),v.ynx(17,11),v.YNc(18,Ae,3,3,"th",12),v.YNc(19,ye,7,14,"td",9),v.BQk(),v.ynx(20,13),v.YNc(21,_e,3,3,"th",12),v.YNc(22,Se,7,17,"td",9),v.BQk(),v.ynx(23,14),v.YNc(24,Ne,3,3,"th",12),v.YNc(25,Ce,3,3,"td",9),v.BQk(),v.ynx(26,15),v.YNc(27,fe,3,3,"th",12),v.YNc(28,r,3,3,"td",9),v.BQk(),v.ynx(29,16),v.YNc(30,u,3,3,"th",12),v.YNc(31,_,3,3,"td",9),v.BQk(),v.YNc(32,E,1,0,"tr",17),v.YNc(33,a,1,14,"tr",18),v.qZA()()(),v.YNc(34,i,3,3,"perun-web-apps-alert",19),v.ALo(35,"async")),2&l&&(v.Q6J("hidden",0===d.dataSource.allObjectCount&&!1===v.lcZ(1,10,d.dataSource.loading$)),v.xp6(2),v.Q6J("tableId",d.tableId)("dataLength",d.dataSource.allObjectCount)("pageSizeOptions",d.pageSizeOptions),v.xp6(1),v.Q6J("ngIf",v.lcZ(4,12,d.dataSource.loading$)),v.xp6(2),v.Q6J("dataSource",d.dataSource),v.xp6(1),v.Q6J("ngIf",v.VKq(20,t,v.Dn7(7,14,d.dataSource,d.selection.selected.length,d.canBeSelected))),v.xp6(26),v.Q6J("matHeaderRowDef",d.displayedColumns),v.xp6(1),v.Q6J("matRowDefColumns",d.displayedColumns),v.xp6(1),v.Q6J("ngIf",0===d.dataSource.allObjectCount&&!1===v.lcZ(35,18,d.dataSource.loading$)))},dependencies:[w.O5,L.oG,O.BZ,O.fO,O.as,O.w1,O.Dz,O.nj,O.ge,O.ev,O.XQ,O.Gk,q.rH,M.YE,M.nU,te.Ou,z.w,ie.Hw,Te.gM,pe.l,Le.Y,T.Q,w.Ov,w.i8,W.X$,F.d,V.u,ee.f,Q.i,Ee.D,ge.p,ve.F,De.M,he.n,Ye.A,Be.I,se.G,le.r],styles:[".italic_font{font-style:italic}.cursor-pointer{cursor:pointer}.cursor-default{cursor:default}.status-tooltip{white-space:pre-line}\n"],encapsulation:2}),o})()},38383:(Xe,ue,p)=>{"use strict";p.d(ue,{O:()=>o});var e=p(94650),A=p(96308),C=p(30671),M=p(95017),m=p(9244),b=p(21029),D=p(81591),v=p(65412),R=p(94364),B=p(36895),w=p(56709),L=p(98380),O=p(97392),q=p(10266),te=p(18750),z=p(34198),ie=p(55660),Te=p(89383),pe=p(31359),Le=p(69773),T=p(21757),W=p(12856),F=p(20919),V=p(5865),ee=p(82514),Q=p(96974),Ee=p(9185),ge=p(8231),ve=p(14849);function De(s,l){if(1&s){const d=e.EpF();e.TgZ(0,"mat-checkbox",29),e.NdJ("change",function(S){e.CHM(d);const J=e.oxw(3);return e.KtG(S?J.masterToggle():null)}),e.ALo(1,"translate"),e.ALo(2,"masterCheckboxLabel"),e.qZA()}if(2&s){const d=e.oxw(2).ngIf,c=e.oxw();e.Q6J("aria-label",e.lcZ(1,3,e.lcZ(2,5,d.all)))("checked",c.selection.hasValue()&&d.all)("indeterminate",c.selection.hasValue()&&!d.all)}}function he(s,l){if(1&s&&(e.TgZ(0,"th",27),e.YNc(1,De,3,7,"mat-checkbox",28),e.qZA()),2&s){const d=e.oxw(2);e.xp6(1),e.Q6J("ngIf",d.selection.isMultipleSelection())}}const Ye=function(s){return{name:s}};function Be(s,l){if(1&s){const d=e.EpF();e.TgZ(0,"td",30)(1,"mat-checkbox",31),e.NdJ("change",function(S){const ht=e.CHM(d).$implicit,ze=e.oxw(2);return e.KtG(S?ze.selection.toggle(ht):null)})("click",function(S){return S.stopPropagation()}),e.ALo(2,"translate"),e.ALo(3,"checkboxLabel"),e.ALo(4,"userFullName"),e.ALo(5,"translate"),e.qZA()()}if(2&s){const d=l.$implicit,c=e.oxw(2);e.xp6(1),e.Q2q("data-cy","",d.user.firstName,"-checkbox"),e.Q6J("aria-label",e.xi3(2,5,e.lcZ(3,8,c.selection.isSelected(d)),e.VKq(14,Ye,e.lcZ(4,10,d))))("checked",c.selection.isSelected(d))("disabled",c.allowCheckboxDisabled&&"DIRECT"!==d.membershipType)("matTooltip",c.allowCheckboxDisabled&&"DIRECT"!==d.membershipType?e.lcZ(5,12,"MEMBERS_LIST.CHECKBOX_TOOLTIP"):"")}}function se(s,l){1&s&&(e.ynx(0,24),e.YNc(1,he,2,1,"th",25),e.YNc(2,Be,6,16,"td",26),e.BQk())}function le(s,l){1&s&&(e.TgZ(0,"th",32),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"MEMBERS_LIST.ID")))}function N(s,l){if(1&s&&(e.TgZ(0,"td",33),e._uU(1),e.qZA()),2&s){const d=l.$implicit;e.xp6(1),e.Oqu(d.id)}}function k(s,l){1&s&&(e.TgZ(0,"th",32),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.VO_ID")," "))}function be(s,l){if(1&s&&(e.TgZ(0,"td",34),e._uU(1),e.qZA()),2&s){const d=l.$implicit;e.xp6(1),e.Oqu(d.voId)}}function Z(s,l){1&s&&(e.TgZ(0,"th",32),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.USER_ID")," "))}function ce(s,l){if(1&s&&(e.TgZ(0,"td",34),e._uU(1),e.qZA()),2&s){const d=l.$implicit;e.xp6(1),e.Oqu(d.userId)}}function xe(s,l){1&s&&e._UZ(0,"th",32)}function ot(s,l){if(1&s){const d=e.EpF();e.TgZ(0,"mat-icon",36),e.NdJ("click",function(){e.CHM(d);const S=e.oxw().$implicit,J=e.oxw();return e.KtG(J.viewMemberGroupTree(S))})("mouseenter",function(){e.CHM(d);const S=e.oxw(2);return e.KtG(S.disableRouting=!0)})("mouseleave",function(){e.CHM(d);const S=e.oxw(2);return e.KtG(S.disableRouting=S.disabledRouting)}),e.ALo(1,"translate"),e._uU(2,"transfer_within_a_station"),e.qZA()}2&s&&e.Q6J("matTooltip",e.lcZ(1,1,"MEMBERS_LIST.INDIRECT_MEMBER"))}function Fe(s,l){if(1&s&&(e.TgZ(0,"td",34),e.YNc(1,ot,3,3,"mat-icon",35),e.qZA()),2&s){const d=l.$implicit;e.xp6(1),e.Q6J("ngIf","DIRECT"!==d.membershipType)}}function ut(s,l){1&s&&(e.TgZ(0,"th",32),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.NAME")," "))}function tt(s,l){if(1&s&&(e.TgZ(0,"td",34),e._uU(1),e.ALo(2,"userFullName"),e.qZA()),2&s){const d=l.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,d.user))}}function vt(s,l){1&s&&(e.TgZ(0,"th",32),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.STATUS")," "))}function X(s,l){if(1&s){const d=e.EpF();e.TgZ(0,"td",34)(1,"i",37),e.NdJ("click",function(S){const ht=e.CHM(d).$implicit,ze=e.oxw();return e.KtG(ze.changeStatus(S,ht))}),e.ALo(2,"memberStatusIconColor"),e.ALo(3,"memberStatusTooltip"),e.TgZ(4,"span"),e._uU(5),e.ALo(6,"memberStatusIcon"),e.qZA()()()}if(2&s){const d=l.$implicit;e.xp6(1),e.Gre("material-icons ",e.lcZ(2,5,d),""),e.s9C("matTooltip",e.xi3(3,7,d,!1)),e.xp6(4),e.hij(" ",e.lcZ(6,10,d.status)," ")}}function nt(s,l){1&s&&(e.TgZ(0,"th",32),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.GROUP_STATUS")," "))}function Ae(s,l){if(1&s){const d=e.EpF();e.TgZ(0,"td",34)(1,"i",37),e.NdJ("click",function(S){const ht=e.CHM(d).$implicit,ze=e.oxw();return e.KtG(ze.changeStatus(S,ht))}),e.ALo(2,"groupStatusIconColor"),e.ALo(3,"memberStatusTooltip"),e.TgZ(4,"span"),e._uU(5),e.ALo(6,"memberStatusIcon"),e.qZA()()()}if(2&s){const d=l.$implicit;e.xp6(1),e.Gre("material-icons ",e.lcZ(2,5,d.groupStatus),""),e.s9C("matTooltip",e.xi3(3,7,d,!0)),e.xp6(4),e.hij(" ",e.lcZ(6,10,d.groupStatus)," ")}}function ye(s,l){1&s&&(e.TgZ(0,"th",38),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.ALREADY_SPONSORED")," "))}function _e(s,l){1&s&&(e.TgZ(0,"mat-icon"),e._uU(1,"check_circle_outline"),e.qZA())}function Se(s,l){if(1&s&&(e.TgZ(0,"td",39),e.YNc(1,_e,2,0,"mat-icon",40),e.qZA()),2&s){const d=l.$implicit;e.xp6(1),e.Q6J("ngIf",d.sponsored)}}function Ne(s,l){1&s&&(e.TgZ(0,"th",32),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.ORGANIZATION")," "))}function Ce(s,l){if(1&s&&(e.TgZ(0,"td",34),e._uU(1),e.ALo(2,"memberOrganization"),e.qZA()),2&s){const d=l.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,d))}}function fe(s,l){1&s&&(e.TgZ(0,"th",32),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.EMAIL")," "))}function r(s,l){if(1&s&&(e.TgZ(0,"td",34),e._uU(1),e.ALo(2,"memberEmail"),e.qZA()),2&s){const d=l.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,d))}}function u(s,l){1&s&&(e.TgZ(0,"th",41),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"MEMBERS_LIST.LOGINS")))}function _(s,l){if(1&s&&(e.TgZ(0,"td",34),e._uU(1),e.ALo(2,"memberLogins"),e.qZA()),2&s){const d=l.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,d))}}function E(s,l){1&s&&e._UZ(0,"tr",42)}const h=function(s,l){return["/organizations",s,"members",l]};function a(s,l){if(1&s&&e._UZ(0,"tr",43),2&s){const d=l.$implicit,c=e.oxw();e.ekj("cursor-pointer",!c.disabledRouting)("disable-outline",c.disableRouting),e.Q6J("perunWebAppsMiddleClickRouterLink",c.disableRouting?null:e.WLB(6,h,d.voId,d.id))("routerLink",c.disableRouting?null:e.WLB(9,h,d.voId,d.id))}}function i(s,l){1&s&&(e.TgZ(0,"perun-web-apps-alert",44),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function t(s,l){1&s&&(e.TgZ(0,"perun-web-apps-alert",44),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_MEMBERS"),"\n"))}const n=function(s){return{all:s}};let o=(()=>{class s{constructor(d,c,S,J){this.dialog=d,this.authResolver=c,this.tableCheckbox=S,this.route=J,this.selection=new M.Ov,this.displayedColumns=["checkbox","id","voId","userId","type","fullName","status","groupStatus","sponsored","organization","email","logins"],this.disableStatusChange=!1,this.disableExpirationChange=!1,this.allowCheckboxDisabled=!0,this.disableRouting=!1,this.filter="",this.updateTable=new e.vpe,this.pageSizeOptions=m.f7,this.getExportDataForColumnFun=(ht,ze)=>s.getExportDataForColumn(ht,ze,this.showGroupStatuses),this.getSortDataForColumnFun=(ht,ze)=>s.getSortDataForColumn(ht,ze,this.showGroupStatuses),this.canBeSelected=ht=>"DIRECT"===ht.membershipType}set matSort(d){this.sort=d}static getFilterDataForColumn(d,c){switch(c){case"fullName":return d.user?(0,m.bD)(d.user):"";case"email":return(0,m.g$)(d);case"logins":return(0,m.lt)(d);default:return""}}static getExportDataForColumn(d,c,S){switch(c){case"id":return d.id.toString();case"fullName":return d.user?(0,m.bD)(d.user):"";case"status":return S?d.groupStatus:d.status;case"organization":return(0,m.Gw)(d);case"email":return(0,m.g$)(d);case"logins":return(0,m.lt)(d);default:return""}}static getSortDataForColumn(d,c,S){switch(c){case"id":return d.id.toString();case"fullName":return d.user?d.user.lastName?d.user.lastName:d.user.firstName??"":"";case"status":return S?d.groupStatus:d.status;case"organization":return(0,m.Gw)(d);case"email":return(0,m.g$)(d);default:return""}}exportDisplayedData(d){const c=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,S=c+this.dataSource.paginator.pageSize;(0,m.O6)((0,m.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(c,S),this.displayedColumns,this.getExportDataForColumnFun),d)}exportAllData(d){(0,m.O6)((0,m.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getExportDataForColumnFun),d)}setDataSource(){this.dataSource||(this.dataSource=new C.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(d,c)=>(0,m.Sd)(d,c,this.displayedColumns,s.getFilterDataForColumn),this.dataSource.sortData=(d,c)=>(0,m.pR)(d,c,this.getSortDataForColumnFun)),this.dataSource.filter=this.filter,this.dataSource.data=this.members}ngAfterViewInit(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(d=>"id"!==d))}ngOnChanges(){this.setDataSource(),this.disabledRouting=this.disableRouting,this.route.parent?.params.subscribe(d=>{d.groupId&&(this.groupId=Number(d.groupId))})}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource,this.canBeSelected)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filter,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!0,this.canBeSelected)}changeStatus(d,c){if(d.stopPropagation(),!this.disableStatusChange){const S=(0,m.kZ)();S.width="500px",S.data={member:c,disableChangeExpiration:this.disableExpirationChange},this.dialog.open(b.pf,S).afterClosed().subscribe(ht=>{ht&&this.updateTable.emit(!0)})}}viewMemberGroupTree(d){const c=(0,m.kZ)();c.width="800px",c.data={member:d,groupId:this.groupId},this.dialog.open(b.jd,c)}}return s.\u0275fac=function(d){return new(d||s)(e.Y36(v.uw),e.Y36(D.x4),e.Y36(D.UA),e.Y36(R.gz))},s.\u0275cmp=e.Xpm({type:s,selectors:[["perun-web-apps-members-list"]],viewQuery:function(d,c){if(1&d&&(e.Gf(m.l9,7),e.Gf(A.YE,7)),2&d){let S;e.iGM(S=e.CRH())&&(c.child=S.first),e.iGM(S=e.CRH())&&(c.matSort=S.first)}},inputs:{showGroupStatuses:"showGroupStatuses",members:"members",searchString:"searchString",selection:"selection",displayedColumns:"displayedColumns",disableStatusChange:"disableStatusChange",disableExpirationChange:"disableExpirationChange",allowCheckboxDisabled:"allowCheckboxDisabled",tableId:"tableId",disableRouting:"disableRouting",filter:"filter"},outputs:{updateTable:"updateTable"},features:[e.TTD],decls:42,vars:16,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","tableId","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","fullName","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","voId"],["mat-cell","",4,"matCellDef"],["matColumnDef","userId"],["matColumnDef","type"],["matColumnDef","fullName"],["matColumnDef","status"],["matColumnDef","groupStatus"],["matColumnDef","sponsored"],["class","center new-line","mat-header-cell","",4,"matHeaderCellDef"],["class","center","mat-cell","",4,"matCellDef"],["matColumnDef","organization"],["matColumnDef","email"],["matColumnDef","logins"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","checkbox"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change",4,"ngIf"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","disabled","matTooltip","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],[3,"matTooltip","click","mouseenter","mouseleave",4,"ngIf"],[3,"matTooltip","click","mouseenter","mouseleave"],["matTooltipClass","status-tooltip","matTooltipPosition","left",3,"matTooltip","click"],["mat-header-cell","",1,"center","new-line"],["mat-cell","",1,"center"],[4,"ngIf"],["mat-header-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(d,c){1&d&&(e.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),e.NdJ("exportDisplayedData",function(J){return c.exportDisplayedData(J)})("exportAllData",function(J){return c.exportAllData(J)}),e.TgZ(2,"table",2),e.YNc(3,se,3,0,"ng-container",3),e.ALo(4,"isAllSelected"),e.ynx(5,4),e.YNc(6,le,3,3,"th",5),e.YNc(7,N,2,1,"td",6),e.BQk(),e.ynx(8,7),e.YNc(9,k,3,3,"th",5),e.YNc(10,be,2,1,"td",8),e.BQk(),e.ynx(11,9),e.YNc(12,Z,3,3,"th",5),e.YNc(13,ce,2,1,"td",8),e.BQk(),e.ynx(14,10),e.YNc(15,xe,1,0,"th",5),e.YNc(16,Fe,2,1,"td",8),e.BQk(),e.ynx(17,11),e.YNc(18,ut,3,3,"th",5),e.YNc(19,tt,3,3,"td",8),e.BQk(),e.ynx(20,12),e.YNc(21,vt,3,3,"th",5),e.YNc(22,X,7,12,"td",8),e.BQk(),e.ynx(23,13),e.YNc(24,nt,3,3,"th",5),e.YNc(25,Ae,7,12,"td",8),e.BQk(),e.ynx(26,14),e.YNc(27,ye,3,3,"th",15),e.YNc(28,Se,2,1,"td",16),e.BQk(),e.ynx(29,17),e.YNc(30,Ne,3,3,"th",5),e.YNc(31,Ce,3,3,"td",8),e.BQk(),e.ynx(32,18),e.YNc(33,fe,3,3,"th",5),e.YNc(34,r,3,3,"td",8),e.BQk(),e.ynx(35,19),e.YNc(36,u,3,3,"th",20),e.YNc(37,_,3,3,"td",8),e.BQk(),e.YNc(38,E,1,0,"tr",21),e.YNc(39,a,1,12,"tr",22),e.qZA()()(),e.YNc(40,i,3,3,"perun-web-apps-alert",23),e.YNc(41,t,3,3,"perun-web-apps-alert",23)),2&d&&(e.Q6J("hidden",0===c.members.length||!c.dataSource||0===c.dataSource.filteredData.length),e.xp6(1),e.Q6J("dataLength",c.dataSource.filteredData.length)("tableId",c.tableId)("pageSizeOptions",c.pageSizeOptions),e.xp6(1),e.Q6J("dataSource",c.dataSource),e.xp6(1),e.Q6J("ngIf",e.VKq(14,n,e.Dn7(4,10,c.dataSource,c.selection.selected.length,c.canBeSelected))),e.xp6(35),e.Q6J("matHeaderRowDef",c.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",c.displayedColumns),e.xp6(1),e.Q6J("ngIf",0!==c.members.length&&0===c.dataSource.filteredData.length),e.xp6(1),e.Q6J("ngIf",0===c.members.length))},dependencies:[B.O5,w.oG,C.BZ,C.fO,C.as,C.w1,C.Dz,C.nj,C.ge,C.ev,C.XQ,C.Gk,R.rH,A.YE,A.nU,L.w,O.Hw,q.gM,te.l,z.Y,ie.Q,Te.X$,pe.d,Le.u,T.f,W.i,F.D,V.p,ee.F,Q.M,Ee.I,ge.G,ve.r],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:.25rem!important} .status-tooltip{white-space:pre-line}.disable-outline[_ngcontent-%COMP%]{outline:none!important}.center[_ngcontent-%COMP%]{text-align:center}.new-line[_ngcontent-%COMP%]{white-space:pre-wrap}"]}),s})()},22465:(Xe,ue,p)=>{"use strict";p.d(ue,{c:()=>w});var e=p(94650),A=p(81591),C=p(9244),M=p(21029),m=p(65412),b=p(36895),D=p(97392),v=p(89383);function R(L,O){if(1&L&&(e.TgZ(0,"div",5)(1,"mat-icon"),e._uU(2),e.qZA()()),2&L){const q=e.oxw();e.xp6(2),e.Oqu(q.data.icon)}}function B(L,O){if(1&L&&(e.TgZ(0,"div",6),e._uU(1),e.qZA()),2&L){const q=e.oxw();e.xp6(1),e.hij(" ",q.showTimestamp()," ")}}let w=(()=>{class L{constructor(q,te){this.dialog=q,this.notificationStorageService=te,this.newNotification=!1,this.closeNotification=new e.vpe,this.alreadyPressed=!1,this.alreadyClosed=!1,this.waiting=!1}doAction(){if(this.newNotification&&(this.alreadyPressed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,void 0!==this.data.action)this.data.action();else{const q=(0,C.kZ)();q.width="550px",q.data=this.data,q.autoFocus=!1,this.dialog.open(M.FM,q).afterClosed().subscribe(()=>{this.closeSelf()})}}closeSelf(){this.inDialog||(this.newNotification&&(this.alreadyClosed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,this.closeNotification.emit())}ngOnInit(){(0,C.ys)(this.data.delay,()=>{!this.alreadyClosed&&!this.waiting&&this.closeSelf()})}showTimestamp(){const[q,te]=this.data.timeStamp.split(":");return te.length<2?q+":0"+te:this.data.timeStamp}}return L.\u0275fac=function(q){return new(q||L)(e.Y36(m.uw),e.Y36(A.SZ))},L.\u0275cmp=e.Xpm({type:L,selectors:[["perun-web-apps-notification"]],inputs:{data:"data",inDialog:"inDialog",newNotification:"newNotification"},outputs:{closeNotification:"closeNotification"},decls:9,vars:14,consts:[[1,"notification-container",3,"click"],["class","notification-icon",4,"ngIf"],["data-cy","notification-message",1,"notification-text","clickable"],["class","ml-auto mr-5 mt-auto mb-auto",4,"ngIf"],[1,"notification-action","mt-auto","mb-auto",3,"hidden","click"],[1,"notification-icon"],[1,"ml-auto","mr-5","mt-auto","mb-auto"]],template:function(q,te){1&q&&(e.TgZ(0,"div")(1,"div",0),e.NdJ("click",function(){return te.alreadyClosed||te.waiting?"":te.closeSelf()}),e.YNc(2,R,3,1,"div",1),e.TgZ(3,"div",2),e._uU(4),e.ALo(5,"translate"),e.qZA(),e.YNc(6,B,2,1,"div",3),e.TgZ(7,"div",4),e.NdJ("click",function(){return te.waiting=!0,te.doAction()}),e._uU(8),e.qZA()()()),2&q&&(e.Gre("notification ",te.inDialog?"":"mat-elevation-z7",""),e.ekj("error","error"===te.data.type)("success","success"===te.data.type),e.xp6(2),e.Q6J("ngIf",null!==te.data.icon),e.xp6(2),e.hij(" ",e.lcZ(5,12,te.data.title)," "),e.xp6(2),e.Q6J("ngIf",te.inDialog),e.xp6(1),e.Q6J("hidden",te.alreadyPressed),e.xp6(1),e.hij(" ",te.data.actionText," "))},dependencies:[b.O5,D.Hw,v.X$],styles:[".notification[_ngcontent-%COMP%]{width:450px;margin-bottom:16px;display:flex;flex-direction:row;justify-content:space-between;color:#fff}.notification-container[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:row;padding:16px}.notification-text[_ngcontent-%COMP%]{font-size:1.1em}.notification-action[_ngcontent-%COMP%]{margin-left:auto;text-decoration:underline;cursor:pointer}@media (max-width: 768px){.notification[_ngcontent-%COMP%]{width:100%}}.notification.error[_ngcontent-%COMP%]{background-color:#d32f2f}.notification.success[_ngcontent-%COMP%]{background-color:#288619}.notification-icon[_ngcontent-%COMP%]{padding-right:8px;color:#fff}"]}),L})()},53599:(Xe,ue,p)=>{"use strict";p.d(ue,{N:()=>Ee});var e=p(94650),A=p(61744),C=p(81591),M=p(30671),m=p(9244),b=p(21029),D=p(40034),v=p(65412),R=p(94364),B=p(36895),w=p(96308),L=p(98380),O=p(4859),q=p(89383),te=p(34447);function z(ge,ve){1&ge&&(e.TgZ(0,"perun-web-apps-alert"),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"customTranslate"),e.qZA()),2&ge&&(e.xp6(1),e.Oqu(e.lcZ(2,1,e.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.NOT_SUPPORTED"))))}function ie(ge,ve){1&ge&&(e.TgZ(0,"th",16),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"customTranslate"),e.qZA()),2&ge&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,e.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.NAMESPACE"))," "))}function Te(ge,ve){if(1&ge&&(e.TgZ(0,"td",17),e._uU(1),e.qZA()),2&ge){const De=ve.$implicit;e.xp6(1),e.Oqu(De.friendlyNameParameter)}}function pe(ge,ve){1&ge&&(e.TgZ(0,"th",16),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"customTranslate"),e.qZA()),2&ge&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,e.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.LOGIN"))," "))}function Le(ge,ve){if(1&ge&&(e.TgZ(0,"td",18),e._uU(1),e.qZA()),2&ge){const De=ve.$implicit;e.xp6(1),e.Oqu(De.value)}}function T(ge,ve){1&ge&&e._UZ(0,"th",16)}function W(ge,ve){if(1&ge){const De=e.EpF();e.TgZ(0,"td",19)(1,"button",20),e.NdJ("click",function(){const Be=e.CHM(De).$implicit,se=e.oxw();return e.KtG(se.resetPassword(Be.friendlyNameParameter))}),e._uU(2),e.ALo(3,"translate"),e.ALo(4,"customTranslate"),e.qZA()()}if(2&ge){const De=ve.$implicit,he=e.oxw();e.xp6(1),e.Q6J("disabled",!he.logins.includes(De)),e.xp6(1),e.hij(" ",e.lcZ(3,2,e.lcZ(4,4,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.RESET_PASSWORD"))," ")}}function F(ge,ve){1&ge&&e._UZ(0,"th",16)}function V(ge,ve){if(1&ge){const De=e.EpF();e.TgZ(0,"td",19)(1,"button",21),e.NdJ("click",function(){const Be=e.CHM(De).$implicit,se=e.oxw();return e.KtG(se.changePassword(Be))}),e._uU(2),e.ALo(3,"translate"),e.ALo(4,"customTranslate"),e.qZA()()}if(2&ge){const De=ve.$implicit,he=e.oxw();e.xp6(1),e.Q6J("disabled",!he.logins.includes(De)),e.xp6(1),e.hij(" ",e.lcZ(3,2,e.lcZ(4,4,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.CHANGE_PASSWORD"))," ")}}function ee(ge,ve){1&ge&&e._UZ(0,"tr",22)}function Q(ge,ve){1&ge&&e._UZ(0,"tr",23)}let Ee=(()=>{class ge{constructor(De,he,Ye,Be,se,le,N){this.attributesManagerService=De,this.store=he,this.dialog=Ye,this.route=Be,this.router=se,this.otherApplicationService=le,this.entityStorageService=N,this.authenticationPage=!1,this.filteredNamespaces=new e.vpe,this.logins=[],this.nameSpaces=[]}ngOnInit(){this.userId=this.authenticationPage?this.entityStorageService.getEntity().id:this.store.getPerunPrincipal().userId,this.displayedColumns=this.authenticationPage?["namespace","value","change"]:["namespace","value","reset","change"],this.nameSpaces=this.store.getProperty("password_namespace_attributes").map(De=>{const he=De.split(":");return he[he.length-1]}),this.refreshTable()}refreshTable(){this.attributesManagerService.getLogins(this.userId).subscribe(De=>{if(this.logins=De.filter(he=>this.nameSpaces.includes(he.friendlyNameParameter)),this.filteredNamespaces.emit(De.map(he=>he.friendlyNameParameter)),this.dataSource=new M.by(De),!this.authenticationPage){const Ye=this.route.snapshot.queryParamMap.get("namespace");if(Ye){const Be=this.logins.find(se=>se.friendlyNameParameter===Ye);Be&&this.changePassword(Be)}}})}resetPassword(De){window.open(this.otherApplicationService.getUrlForOtherApplication(D.p.PwdReset,De),"_blank")}changePassword(De){this.authenticationPage||this.router.navigate([],{queryParams:{namespace:De.friendlyNameParameter},queryParamsHandling:"merge"});const he=(0,m.kZ)();he.width="600px",he.data={login:String(De.value),namespace:De.friendlyName.split(":")[1]},this.dialog.open(b.xF,he).afterClosed().subscribe(()=>{this.router.navigate([],{queryParams:{namespace:null},queryParamsHandling:"merge"})})}}return ge.\u0275fac=function(De){return new(De||ge)(e.Y36(A.H8),e.Y36(C.d6),e.Y36(v.uw),e.Y36(R.gz),e.Y36(R.F0),e.Y36(C.jq),e.Y36(C.fb))},ge.\u0275cmp=e.Xpm({type:ge,selectors:[["perun-web-apps-password-reset"]],inputs:{authenticationPage:"authenticationPage"},outputs:{filteredNamespaces:"filteredNamespaces"},decls:23,vars:9,consts:[[1,"page-subtitle"],[4,"ngIf"],[1,"card","mt-2","table-size-fix"],[1,"card-body"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","value","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","namespace"],["mat-header-cell","",4,"matHeaderCellDef"],["class","w-25","mat-cell","",4,"matCellDef"],["matColumnDef","value"],["class","w-50","mat-cell","",4,"matCellDef"],["matColumnDef","reset"],["mat-cell","",4,"matCellDef"],["matColumnDef","change"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"w-25"],["mat-cell","",1,"w-50"],["mat-cell",""],["color","accent","mat-flat-button","",3,"disabled","click"],["color","accent","mat-flat-button","",1,"action-button",3,"disabled","click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"]],template:function(De,he){1&De&&(e.TgZ(0,"h1",0),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"customTranslate"),e.qZA(),e.YNc(4,z,4,5,"perun-web-apps-alert",1),e.TgZ(5,"div",2)(6,"div",3)(7,"div",4)(8,"table",5),e.ynx(9,6),e.YNc(10,ie,4,5,"th",7),e.YNc(11,Te,2,1,"td",8),e.BQk(),e.ynx(12,9),e.YNc(13,pe,4,5,"th",7),e.YNc(14,Le,2,1,"td",10),e.BQk(),e.ynx(15,11),e.YNc(16,T,1,0,"th",7),e.YNc(17,W,5,6,"td",12),e.BQk(),e.ynx(18,13),e.YNc(19,F,1,0,"th",7),e.YNc(20,V,5,6,"td",12),e.BQk(),e.YNc(21,ee,1,0,"tr",14),e.YNc(22,Q,1,0,"tr",15),e.qZA()()()()),2&De&&(e.xp6(1),e.hij(" ",he.authenticationPage?"":e.lcZ(2,5,e.lcZ(3,7,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.TITLE")),"\n"),e.xp6(3),e.Q6J("ngIf",!he.logins.length&&!he.authenticationPage),e.xp6(4),e.Q6J("dataSource",he.dataSource),e.xp6(13),e.Q6J("matHeaderRowDef",he.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",he.displayedColumns))},dependencies:[B.O5,M.BZ,M.fO,M.as,M.w1,M.Dz,M.nj,M.ge,M.ev,M.XQ,M.Gk,w.YE,L.w,O.lW,q.X$,te.a],styles:[".dark-hover-list-item[_ngcontent-%COMP%]:hover{background-color:#0000000d}"]}),ge})()},41619:(Xe,ue,p)=>{"use strict";p.d(ue,{$:()=>Be});var e=p(81591),A=p(61744),C=p(94650),M=p(65412),m=p(89383),b=p(36895),D=p(24006),v=p(4859),R=p(59549),B=p(284);function w(se,le){1&se&&(C.TgZ(0,"mat-error"),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&se&&(C.xp6(1),C.Oqu(C.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT_ERROR")))}let L=(()=>{class se{constructor(N,k,be,Z,ce){this.dialogRef=N,this.translate=k,this.notificator=be,this.rtMessages=Z,this.storeService=ce,this.message="",this.subject="",this.instanceName=""}ngOnInit(){this.instanceName=this.storeService.getProperty("config")}sendBugReport(){this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(N=>{this.dialogRef.afterClosed().subscribe(()=>this.notificator.showSuccess(this.translate.instant("DIALOGS.REPORT_ISSUE.SUCCESS")+String(N.ticketNumber))),this.dialogRef.close()})}getFullEmailBody(){return this.message.concat("\n ","------------------------\n ","Perun instance: ",this.instanceName,"\n ","Sended from new Perun Gui, version: ",p(4147).i8)}close(){this.dialogRef.close()}}return se.\u0275fac=function(N){return new(N||se)(C.Y36(M.so),C.Y36(m.sK),C.Y36(e.V6),C.Y36(A.Hr),C.Y36(e.d6))},se.\u0275cmp=C.Xpm({type:se,selectors:[["perun-web-apps-report-issue-dialog"]],decls:29,vars:25,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","","type","text",3,"ngModel","ngModelChange"],["subjectModel","ngModel"],[4,"ngIf"],["matInput","",3,"placeholder","ngModel","ngModelChange"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(N,k){if(1&N&&(C.TgZ(0,"h1",0),C._uU(1),C.ALo(2,"translate"),C.qZA(),C.TgZ(3,"div",1)(4,"mat-form-field")(5,"mat-label"),C._uU(6),C.ALo(7,"translate"),C.qZA(),C.TgZ(8,"input",2,3),C.NdJ("ngModelChange",function(Z){return k.subject=Z}),C.qZA(),C.YNc(10,w,3,3,"mat-error",4),C.qZA(),C.TgZ(11,"mat-form-field")(12,"mat-label"),C._uU(13),C.ALo(14,"translate"),C.qZA(),C.TgZ(15,"textarea",5),C.NdJ("ngModelChange",function(Z){return k.message=Z}),C.ALo(16,"translate"),C._uU(17," "),C.qZA(),C.TgZ(18,"mat-hint"),C._uU(19),C.ALo(20,"translate"),C.qZA()()(),C.TgZ(21,"div",6)(22,"div",7)(23,"button",8),C.NdJ("click",function(){return k.close()}),C._uU(24),C.ALo(25,"translate"),C.qZA(),C.TgZ(26,"button",9),C.NdJ("click",function(){return k.sendBugReport()}),C._uU(27),C.ALo(28,"translate"),C.qZA()()()),2&N){const be=C.MAs(9);C.xp6(1),C.Oqu(C.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.TITLE")),C.xp6(5),C.Oqu(C.lcZ(7,13,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT")),C.xp6(2),C.Q6J("ngModel",k.subject),C.xp6(2),C.Q6J("ngIf",be.invalid),C.xp6(3),C.Oqu(C.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE")),C.xp6(2),C.s9C("placeholder",C.lcZ(16,17,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_PLACEHOLDER")),C.Q6J("ngModel",k.message),C.xp6(4),C.Oqu(C.lcZ(20,19,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_HINT")),C.xp6(5),C.hij(" ",C.lcZ(25,21,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.CANCEL")," "),C.xp6(2),C.Q6J("disabled",be.invalid),C.xp6(1),C.hij(" ",C.lcZ(28,23,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SEND")," ")}},dependencies:[b.O5,D.Fj,D.JJ,D.Q7,D.On,v.lW,R.TO,R.KE,R.bx,R.hX,B.Nt,M.uh,M.xY,M.H8,m.X$],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),se})();var O=p(9244);let q=(()=>{class se{transform(N,k,be){return N[`${be}_${k}`]}}return se.\u0275fac=function(N){return new(N||se)},se.\u0275pipe=C.Yjl({name:"localisedText",type:se,pure:!0}),se})(),te=(()=>{class se{transform(N,k){return N["link_"+k]||N.link_en}}return se.\u0275fac=function(N){return new(N||se)},se.\u0275pipe=C.Yjl({name:"localisedLink",type:se,pure:!0}),se})(),z=(()=>{class se{transform(N){return N.includes("/")?N:"/assets/config/"+N}}return se.\u0275fac=function(N){return new(N||se)},se.\u0275pipe=C.Yjl({name:"footerLogoPath",type:se,pure:!0}),se})();function ie(se,le){if(1&se&&(C.TgZ(0,"a",13),C.ALo(1,"localisedLink"),C._UZ(2,"img",14),C.ALo(3,"footerLogoPath"),C.qZA()),2&se){const N=C.oxw().$implicit,k=C.oxw(3);C.Q6J("href",C.xi3(1,2,N,k.language),C.LSH),C.xp6(2),C.s9C("src",C.lcZ(3,5,N.logo),C.LSH)}}function Te(se,le){if(1&se&&(C.TgZ(0,"span"),C._UZ(1,"img",14),C.ALo(2,"footerLogoPath"),C.qZA()),2&se){const N=C.oxw().$implicit;C.xp6(1),C.s9C("src",C.lcZ(2,1,N.logo),C.LSH)}}function pe(se,le){if(1&se&&(C.TgZ(0,"div"),C.YNc(1,ie,4,7,"a",11),C.ALo(2,"localisedLink"),C.YNc(3,Te,3,3,"span",12),C.ALo(4,"localisedLink"),C.qZA()),2&se){const N=le.$implicit,k=C.oxw(3);C.xp6(1),C.Q6J("ngIf",C.xi3(2,2,N,k.language)),C.xp6(2),C.Q6J("ngIf",!C.xi3(4,5,N,k.language))}}const Le=function(se){return{"min-height":se}};function T(se,le){if(1&se&&(C.TgZ(0,"div",10),C.YNc(1,pe,5,8,"div",5),C.qZA()),2&se){const N=C.oxw().$implicit,k=C.oxw();C.Q6J("ngStyle",C.VKq(2,Le,k.columnContentHeight+"px")),C.xp6(1),C.Q6J("ngForOf",N.elements)}}const W=function(se){return{color:se}};function F(se,le){if(1&se&&(C.TgZ(0,"i",20),C._uU(1),C.qZA()),2&se){const N=C.oxw().$implicit,k=C.oxw(3);C.Q6J("ngStyle",C.VKq(2,W,k.linksTextColor)),C.xp6(1),C.hij(" ",N.icon," ")}}function V(se,le){if(1&se){const N=C.EpF();C.TgZ(0,"span",21),C.NdJ("click",function(){C.CHM(N);const be=C.oxw().$implicit,Z=C.oxw(3);return C.KtG(Z.openDialog(be.dialog))}),C._uU(1),C.ALo(2,"localisedText"),C.qZA()}if(2&se){const N=C.oxw().$implicit,k=C.oxw(3);C.Q6J("ngStyle",C.VKq(6,W,k.linksTextColor)),C.xp6(1),C.hij("",C.Dn7(2,2,N,k.language,"label")," ")}}function ee(se,le){if(1&se&&(C.TgZ(0,"a",22),C.ALo(1,"localisedLink"),C._uU(2),C.ALo(3,"localisedText"),C.qZA()),2&se){const N=C.oxw().$implicit,k=C.oxw(3);C.Q6J("href",C.xi3(1,3,N,k.language),C.LSH)("ngStyle",C.VKq(10,W,k.linksTextColor)),C.xp6(2),C.Oqu(C.Dn7(3,6,N,k.language,"label"))}}function Q(se,le){if(1&se&&(C.TgZ(0,"span",10),C._uU(1),C.ALo(2,"localisedText"),C.qZA()),2&se){const N=C.oxw().$implicit,k=C.oxw(3);C.Q6J("ngStyle",C.VKq(6,W,k.linksTextColor)),C.xp6(1),C.Oqu(C.Dn7(2,2,N,k.language,"label"))}}function Ee(se,le){if(1&se&&(C.TgZ(0,"div",16),C.YNc(1,F,2,4,"i",17),C.YNc(2,V,3,8,"span",18),C.YNc(3,ee,4,12,"a",19),C.ALo(4,"localisedLink"),C.YNc(5,Q,3,8,"span",9),C.ALo(6,"localisedLink"),C.qZA()),2&se){const N=le.$implicit,k=C.oxw(3);C.xp6(1),C.Q6J("ngIf",N.icon),C.xp6(1),C.Q6J("ngIf",N.dialog),C.xp6(1),C.Q6J("ngIf",C.xi3(4,4,N,k.language)&&!N.dialog),C.xp6(2),C.Q6J("ngIf",!C.xi3(6,7,N,k.language)&&!N.dialog)}}const ge=function(se){return{height:se}};function ve(se,le){if(1&se&&(C.TgZ(0,"div",10),C.YNc(1,Ee,7,10,"div",15),C.qZA()),2&se){const N=C.oxw().$implicit,k=C.oxw();C.Q6J("ngStyle",C.VKq(2,ge,k.columnContentHeight+"px")),C.xp6(1),C.Q6J("ngForOf",N.elements)}}function De(se,le){if(1&se&&(C.TgZ(0,"div",7)(1,"h6",8),C._uU(2),C.ALo(3,"localisedText"),C.qZA(),C.YNc(4,T,2,4,"div",9),C.YNc(5,ve,2,4,"div",9),C.qZA()),2&se){const N=le.$implicit,k=C.oxw();C.ekj("my-auto",k.containsLogos),C.xp6(1),C.Q6J("ngStyle",C.VKq(10,W,k.headersTextColor)),C.xp6(1),C.hij(" ",C.Dn7(3,6,N,k.language,"title")," "),C.xp6(2),C.Q6J("ngIf",N.logos),C.xp6(1),C.Q6J("ngIf",N.elements&&!N.logos)}}function he(se,le){if(1&se&&(C.TgZ(0,"span")(1,"a",6),C._uU(2),C.qZA()()),2&se){const N=le.$implicit,k=le.index,be=C.oxw();C.xp6(1),C.Q6J("href",N.url,C.LSH)("ngStyle",C.VKq(3,W,be.copyrightTextColor)),C.xp6(1),C.Oqu(k?", "+N.name:N.name)}}const Ye=function(se){return{background:se}};let Be=(()=>{class se{constructor(N,k,be,Z,ce,xe){this.storeService=N,this.translateService=k,this.utilsService=be,this.dialog=Z,this.authService=ce,this.initAuthService=xe,this.copyrightTextColor=this.storeService.getProperty("theme").footer_copyright_text_color,this.footerColumns=[],this.copyrightItems=[],this.currentYear=(new Date).getFullYear(),this.containsLogos=!1,this.headersTextColor=this.storeService.getProperty("theme").footer_headers_text_color,this.linksTextColor=this.storeService.getProperty("theme").footer_links_text_color,this.githubRepository=this.storeService.getProperty("footer").github_releases,this.githubBackendRepository=this.storeService.getProperty("footer").github_backend_releases,this.bgColor=this.storeService.getProperty("theme").footer_bg_color,this.version="",this.backendVersion="",this.guiVersion="",this.language="en",this.columnContentHeight=0}ngOnInit(){this.translateService.onLangChange.subscribe(N=>{this.language=N.lang}),this.version=p(4147).i8,this.footerColumns=this.storeService.getProperty("footer").columns,this.guiVersion=p(4147).i8,this.utilsService.getPerunRPCVersion(!0).subscribe(N=>{this.backendVersion=N.match("\\bVersion:\\s*([^,\\s]+)")[1]}),this.footerColumns=this.storeService.getProperty("footer").columns;for(const N of this.footerColumns)N.logos?this.containsLogos=!0:25*N.elements.length>this.columnContentHeight&&(this.columnContentHeight=25*N.elements.length);this.copyrightItems=this.storeService.getProperty("footer").copyright_items}openDialog(N){const k=(0,O.kZ)();"reportIssue"===N&&(k.width="550px",this.dialog.open(L,k))}}return se.\u0275fac=function(N){return new(N||se)(C.Y36(e.d6),C.Y36(m.sK),C.Y36(A.FW),C.Y36(M.uw),C.Y36(e.e8),C.Y36(e.v0))},se.\u0275cmp=C.Xpm({type:se,selectors:[["perun-web-apps-footer"]],decls:13,vars:19,consts:[[1,"footer-container",3,"ngStyle"],[1,"footer-columns-container"],["class","footer-col mx-auto",3,"my-auto",4,"ngFor","ngForOf"],[1,"my-0","mt-3"],[1,"font-fix","text-center",3,"ngStyle"],[4,"ngFor","ngForOf"],["target","_blank",1,"text-decoration-none",3,"href","ngStyle"],[1,"footer-col","mx-auto"],[1,"font-weight-bold",3,"ngStyle"],[3,"ngStyle",4,"ngIf"],[3,"ngStyle"],[3,"href",4,"ngIf"],[4,"ngIf"],[3,"href"],["alt","image",3,"src"],["class","row-height",4,"ngFor","ngForOf"],[1,"row-height"],["class","material-icons align-bottom mr-1",3,"ngStyle",4,"ngIf"],["id","clickable",3,"ngStyle","click",4,"ngIf"],["target","_blank",3,"href","ngStyle",4,"ngIf"],[1,"material-icons","align-bottom","mr-1",3,"ngStyle"],["id","clickable",3,"ngStyle","click"],["target","_blank",3,"href","ngStyle"]],template:function(N,k){1&N&&(C.TgZ(0,"footer",0)(1,"div",1),C.YNc(2,De,6,12,"div",2),C.qZA(),C._UZ(3,"hr",3),C.TgZ(4,"div",4),C._uU(5),C.YNc(6,he,3,5,"span",5),C._uU(7,", web application: "),C.TgZ(8,"a",6),C._uU(9),C.qZA(),C._uU(10,", server: "),C.TgZ(11,"a",6),C._uU(12),C.qZA()()()),2&N&&(C.Q6J("ngStyle",C.VKq(11,Ye,k.bgColor)),C.xp6(2),C.Q6J("ngForOf",k.footerColumns),C.xp6(2),C.Q6J("ngStyle",C.VKq(13,W,k.copyrightTextColor)),C.xp6(1),C.hij(" \xa9 ",k.currentYear," Copyright: "),C.xp6(1),C.Q6J("ngForOf",k.copyrightItems),C.xp6(2),C.Q6J("href",k.githubRepository,C.LSH)("ngStyle",C.VKq(15,W,k.copyrightTextColor)),C.xp6(1),C.Oqu(k.guiVersion),C.xp6(2),C.Q6J("href",k.githubBackendRepository,C.LSH)("ngStyle",C.VKq(17,W,k.copyrightTextColor)),C.xp6(1),C.Oqu(k.backendVersion))},dependencies:[b.sg,b.O5,b.PC,q,te,z],styles:["a[_ngcontent-%COMP%]{text-decoration:none}.font-fix[_ngcontent-%COMP%]{font-size:.8rem}.row-height[_ngcontent-%COMP%]{height:25px!important}.footer-col[_ngcontent-%COMP%]{padding-top:35px;white-space:nowrap;text-align:center}.wrap-content[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content}#clickable[_ngcontent-%COMP%]{cursor:pointer}.footer-columns-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-direction:column}@media (min-width: 768px){.footer-columns-container[_ngcontent-%COMP%]{flex-direction:row}}.footer-container[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content}"]}),se})()},46453:(Xe,ue,p)=>{"use strict";p.d(ue,{Y:()=>Ee});var e=p(94650),A=p(81591),C=p(9244),M=p(21029),m=p(40034),b=p(11481),D=p(89383),v=p(65412),R=p(94364),B=p(36895),w=p(97392),L=p(28255),O=p(4859),q=p(10266),te=p(83683),z=p(42673),ie=p(52314),Te=p(55660);const pe=function(ge){return{color:ge}};function Le(ge,ve){if(1&ge){const De=e.EpF();e.TgZ(0,"button",9),e.NdJ("click",function(){e.CHM(De);const Ye=e.oxw();return e.KtG(Ye.onToggleSidenav())}),e.TgZ(1,"mat-icon"),e._uU(2,"menu"),e.qZA()()}if(2&ge){const De=e.oxw();e.Q6J("ngStyle",e.VKq(1,pe,De.iconColor))}}function T(ge,ve){if(1&ge){const De=e.EpF();e.TgZ(0,"div",10)(1,"button",11)(2,"mat-icon",12),e._uU(3," language "),e.qZA()(),e.TgZ(4,"mat-menu",null,13)(6,"button",14),e.NdJ("click",function(){e.CHM(De);const Ye=e.oxw();return e.KtG(Ye.changeLanguage())}),e._uU(7),e.ALo(8,"translate"),e.qZA()()()}if(2&ge){const De=e.MAs(5),he=e.oxw();e.Q6J("ngStyle",e.VKq(6,pe,he.textColor)),e.xp6(1),e.Q6J("matMenuTriggerFor",De),e.xp6(1),e.Q6J("ngStyle",e.VKq(8,pe,he.iconColor)),e.xp6(5),e.hij(" ",e.lcZ(8,4,"HEADER.LANGUAGE")," ")}}function W(ge,ve){if(1&ge){const De=e.EpF();e.TgZ(0,"button",15),e.NdJ("click",function(){e.CHM(De);const Ye=e.oxw();return e.KtG(Ye.showNotificationHistory())}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon",16),e._uU(3),e.qZA()()}if(2&ge){const De=e.oxw();e.Q6J("matTooltip",e.lcZ(1,5,"NAV.NOTIFICATIONS_TOOLTIP")),e.xp6(2),e.s9C("matBadge",De.getNewNotificationsCount()>5?"5+":De.getNewNotificationsCount()),e.Q6J("ngStyle",e.VKq(7,pe,De.iconColor))("matBadgeHidden",0===De.getNewNotificationsCount()),e.xp6(1),e.hij(" ",De.getNewNotificationsCount()?"notifications_active":"notifications"," ")}}function F(ge,ve){if(1&ge&&e._UZ(0,"perun-web-apps-header-menu",17),2&ge){const De=e.oxw();e.Q6J("url",De.otherAppUrl)("label",De.otherAppLabel)("user",De.principal.user)("logoutEnabled",De.logoutEnabled)("iconColor",De.iconColor)("textColor",De.textColor)}}const V=function(ge){return{background:ge}},ee=function(){return[]},Q=function(){return["/"]};let Ee=(()=>{class ge{constructor(De,he,Ye,Be,se,le,N){this.storeService=De,this.sanitizer=he,this.translateService=Ye,this.otherApplicationService=Be,this.notificationStorageService=se,this.dialog=le,this.route=N,this.sidenavToggle=new e.vpe,this.showToggle=!0,this.showLanguageMenu=!1,this.showHeaderMenu=!0,this.showNotifications=!1,this.disableLogo=!1,this.label=this.storeService.getProperty("header_label_en"),this.logoutEnabled=this.storeService.getProperty("log_out_enabled"),this.principal=this.storeService.getPerunPrincipal(),this.bgColor=this.storeService.getProperty("theme").nav_bg_color,this.textColor=this.storeService.getProperty("theme").nav_text_color,this.iconColor=this.storeService.getProperty("theme").nav_icon_color,this.navTextColor=this.storeService.getProperty("theme").nav_text_color,this.activeLink=!1,this.onToggleSidenav=()=>{this.sidenavToggle.emit()}}ngOnInit(){this.otherAppLabel=this.getOtherAppLabel(),this.translateService.onLangChange.subscribe(De=>{this.label=this.storeService.getProperty("en"===De.lang?"header_label_en":"header_label_cs"),this.otherAppLabel=this.getOtherAppLabel(De.lang)}),this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.getProperty("logo")),this.isLinkToOtherAppActive()}getOtherAppLabel(De="en"){return this.storeService.getProperty(this.otherApp===m.p.Profile?"profile_label_en":"en"===De?"admin_gui_label_en":"admin_gui_label_cs")}isLinkToOtherAppActive(){if(this.otherApp===m.p.Admin){this.linkRoles=this.storeService.getProperty("link_to_admin_gui_by_roles");for(const De in this.storeService.getPerunPrincipal().roles)this.linkRoles.includes(De)&&(this.activeLink=!0)}(this.otherApp!==m.p.Admin||this.activeLink)&&(this.otherAppUrl=this.otherApplicationService.getUrlForOtherApplication(this.otherApp))}changeLanguage(){this.translateService.use("en"===this.translateService.currentLang?"cs":"en")}showNotificationHistory(){this.notificationStorageService.newNotificationsCount=0;const De=(0,C.kZ)();De.width="520px",this.dialog.open(M.Us,De)}getNewNotificationsCount(){return this.notificationStorageService.newNotificationsCount}}return ge.\u0275fac=function(De){return new(De||ge)(e.Y36(A.d6),e.Y36(b.H7),e.Y36(D.sK),e.Y36(A.jq),e.Y36(A.SZ),e.Y36(v.uw),e.Y36(R.gz))},ge.\u0275cmp=e.Xpm({type:ge,selectors:[["perun-web-apps-header"]],inputs:{showToggle:"showToggle",showLanguageMenu:"showLanguageMenu",showHeaderMenu:"showHeaderMenu",showNotifications:"showNotifications",disableLogo:"disableLogo",otherApp:"otherApp"},outputs:{sidenavToggle:"sidenavToggle"},decls:10,vars:19,consts:[[1,"sticky-top","header-container","mat-elevation-z3",3,"ngStyle"],["id","nav-menu-icons"],["aria-label","Menu","mat-icon-button","",3,"ngStyle","click",4,"ngIf"],["queryParamsHandling","merge",1,"logo-container","mt-auto","mb-auto",3,"innerHTML","routerLink","queryParams"],[1,"mt-auto","mb-auto","hide-label","page-subtitle",3,"ngStyle"],["id","nav-menu-user-info",3,"ngStyle"],["id","nav-menu-language",3,"ngStyle",4,"ngIf"],["mat-icon-button","",3,"matTooltip","click",4,"ngIf"],[3,"url","label","user","logoutEnabled","iconColor","textColor",4,"ngIf"],["aria-label","Menu","mat-icon-button","",3,"ngStyle","click"],["id","nav-menu-language",3,"ngStyle"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],["menu","matMenu"],["mat-menu-item","",3,"click"],["mat-icon-button","",3,"matTooltip","click"],["matBadgeColor","warn",3,"ngStyle","matBadge","matBadgeHidden"],[3,"url","label","user","logoutEnabled","iconColor","textColor"]],template:function(De,he){1&De&&(e.TgZ(0,"mat-toolbar",0)(1,"div",1),e.YNc(2,Le,3,3,"button",2),e._UZ(3,"a",3),e.TgZ(4,"p",4),e._uU(5),e.qZA()(),e.TgZ(6,"div",5),e.YNc(7,T,9,10,"div",6),e.YNc(8,W,4,9,"button",7),e.YNc(9,F,1,6,"perun-web-apps-header-menu",8),e.qZA()()),2&De&&(e.Q6J("ngStyle",e.VKq(11,V,he.bgColor)),e.xp6(2),e.Q6J("ngIf",he.showToggle),e.xp6(1),e.Q6J("innerHTML",he.logo,e.oJD)("routerLink",he.disableLogo?e.DdM(13,ee):e.DdM(14,Q))("queryParams",he.route.snapshot.queryParams),e.xp6(1),e.Q6J("ngStyle",e.VKq(15,pe,he.textColor)),e.xp6(1),e.hij(" ",he.label," "),e.xp6(1),e.Q6J("ngStyle",e.VKq(17,pe,he.navTextColor)),e.xp6(1),e.Q6J("ngIf",he.showLanguageMenu),e.xp6(1),e.Q6J("ngIf",he.showNotifications),e.xp6(1),e.Q6J("ngIf",he.showHeaderMenu))},dependencies:[B.O5,B.PC,R.yS,w.Hw,L.VK,L.OP,L.p6,O.lW,q.gM,te.Ye,z.k,ie.X,Te.Q,D.X$],styles:[".header-container[_ngcontent-%COMP%]{height:64px!important;display:flex;justify-content:space-between;padding:0 0 0 8px;z-index:999}#nav-menu-user-info[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding-right:16px;margin-left:auto;margin-right:0}@media (max-width: 570px){.hide-label[_ngcontent-%COMP%]{display:none}}#nav-devel-info[_ngcontent-%COMP%]{margin-left:auto;font-weight:500;font-size:1.4rem;display:flex;align-items:center;font-family:Roboto,Helvetica Neue,sans-serif}#nav-menu-icons[_ngcontent-%COMP%]{display:flex;flex-direction:row}.logo-container[_ngcontent-%COMP%]{padding:0 20px 0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}#nav-menu-language[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding-right:16px}"]}),ge})()},10441:(Xe,ue,p)=>{"use strict";p.d(ue,{W:()=>D});var e=p(94650),A=p(36895),C=p(97392),M=p(10266),m=p(89383);function b(v,R){1&v&&(e.TgZ(0,"mat-icon",1),e.ALo(1,"translate"),e._uU(2," visibility\n"),e.qZA()),2&v&&e.s9C("matTooltip",e.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.RECENTLY_VIEWED_ICON.RECENT"))}let D=(()=>{class v{constructor(){this.recentIds=[]}}return v.\u0275fac=function(B){return new(B||v)},v.\u0275cmp=e.Xpm({type:v,selectors:[["perun-web-apps-recently-viewed-icon"]],inputs:{recentIds:"recentIds",id:"id"},decls:1,vars:1,consts:[["class","align-bottom disabled-icon",3,"matTooltip",4,"ngIf"],[1,"align-bottom","disabled-icon",3,"matTooltip"]],template:function(B,w){1&B&&e.YNc(0,b,3,3,"mat-icon",0),2&B&&e.Q6J("ngIf",w.recentIds.indexOf(w.id)>-1)},dependencies:[A.O5,C.Hw,M.gM,m.X$],styles:[".disabled-icon[_ngcontent-%COMP%]{color:#00000042}"]}),v})()},96214:(Xe,ue,p)=>{"use strict";p.d(ue,{t:()=>b});var e=p(94650),A=p(97392),C=p(4859),M=p(10266),m=p(89383);let b=(()=>{class D{constructor(){this.refresh=new e.vpe}onClickbutton(R){this.refresh.emit(R)}}return D.\u0275fac=function(R){return new(R||D)},D.\u0275cmp=e.Xpm({type:D,selectors:[["perun-web-apps-refresh-button"]],inputs:{disabled:"disabled"},outputs:{refresh:"refresh"},decls:3,vars:5,consts:[["mat-stroked-button","","data-cy","refresh-button",1,"mr-2",3,"disabled","matTooltip","click"],[1,"center-icon","perun-icon",3,"svgIcon"]],template:function(R,B){1&R&&(e.TgZ(0,"button",0),e.NdJ("click",function(L){return B.onClickbutton(L)}),e.ALo(1,"translate"),e._UZ(2,"mat-icon",1),e.qZA()),2&R&&(e.s9C("matTooltip",e.lcZ(1,3,"SHARED_LIB.PERUN.REFRESH_BUTTON")),e.Q6J("disabled",B.disabled),e.xp6(2),e.s9C("svgIcon",B.disabled?"perun-refresh-disabled":"perun-refresh-enabled"))},dependencies:[A.Hw,C.lW,M.gM,m.X$],styles:[".center-icon[_ngcontent-%COMP%]{display:inline-flex}.perun-icon[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{fill:currentColor}.perun-icon[_ngcontent-%COMP%] rect[_ngcontent-%COMP%]{fill:currentColor}.perun-icon[_ngcontent-%COMP%] polygon[_ngcontent-%COMP%]{fill:currentColor}"]}),D})()},45703:(Xe,ue,p)=>{"use strict";p.d(ue,{L:()=>m});var e=p(94650),A=p(9244),C=p(89593),M=p(89383);let m=(()=>{class b{constructor(){this.resource=null,this.displayStatus=!0,this.disableAutoSelect=!1,this.resourceSelected=new e.vpe,this.nameFunction=v=>v.name,this.secondaryFunction=()=>null}ngOnInit(){this.resources=this.resources.sort(A.aC)}}return b.\u0275fac=function(v){return new(v||b)},b.\u0275cmp=e.Xpm({type:b,selectors:[["perun-web-apps-resource-search-select"]],inputs:{resource:"resource",resources:"resources",displayStatus:"displayStatus",disableAutoSelect:"disableAutoSelect"},outputs:{resourceSelected:"resourceSelected"},decls:4,vars:16,consts:[[3,"entity","entities","disableAutoSelect","displayStatus","searchFunction","mainTextFunction","secondaryTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(v,R){1&v&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(w){return R.resourceSelected.emit(w)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&v&&e.Q6J("entity",R.resource)("entities",R.resources)("disableAutoSelect",R.disableAutoSelect)("displayStatus",R.displayStatus)("searchFunction",R.nameFunction)("mainTextFunction",R.nameFunction)("secondaryTextFunction",R.secondaryFunction)("selectPlaceholder",e.lcZ(1,10,"SHARED_LIB.PERUN.COMPONENTS.RESOURCE_SEARCH_SELECT.SELECT_RESOURCE"))("findPlaceholder",e.lcZ(2,12,"SHARED_LIB.PERUN.COMPONENTS.RESOURCE_SEARCH_SELECT.FIND_RESOURCE"))("noEntriesText",e.lcZ(3,14,"SHARED_LIB.PERUN.COMPONENTS.RESOURCE_SEARCH_SELECT.NO_RESOURCE_FOUND"))},dependencies:[C.i,M.X$]}),b})()},62109:(Xe,ue,p)=>{"use strict";p.d(ue,{C:()=>_});var e=p(94650),A=p(96308),C=p(30671),M=p(95017),m=p(9244),b=p(81591),D=p(36895),v=p(56709),R=p(94364),B=p(98380),w=p(97392),L=p(10266),O=p(18750),q=p(34198),te=p(55660),z=p(10441),ie=p(8223),Te=p(89383);let pe=(()=>{class E{transform(a){if(null==a)return null;let t="";return a.forEach(function(n){t=t.concat(n.tagName)}),t}}return E.\u0275fac=function(a){return new(a||E)},E.\u0275pipe=e.Yjl({name:"resourceTagsToString",type:E,pure:!0}),E})();var Le=p(82895),T=p(9185),W=p(8231),F=p(14849);function V(E,h){if(1&E){const a=e.EpF();e.TgZ(0,"mat-checkbox",27),e.NdJ("change",function(t){e.CHM(a);const n=e.oxw(3);return e.KtG(t?n.masterToggle():null)}),e.ALo(1,"translate"),e.ALo(2,"masterCheckboxLabel"),e.qZA()}if(2&E){const a=e.oxw(2).ngIf,i=e.oxw();e.Q6J("aria-label",e.lcZ(1,3,e.lcZ(2,5,a.all)))("checked",i.selection.hasValue()&&a.all)("indeterminate",i.selection.hasValue()&&!a.all)}}function ee(E,h){if(1&E&&(e.TgZ(0,"th",25),e.YNc(1,V,3,7,"mat-checkbox",26),e.qZA()),2&E){const a=e.oxw(2);e.xp6(1),e.Q6J("ngIf",a.selection.isMultipleSelection())}}const Q=function(E){return{name:E}};function Ee(E,h){if(1&E){const a=e.EpF();e.TgZ(0,"td",28)(1,"span",29),e.ALo(2,"translate"),e.TgZ(3,"mat-checkbox",30),e.NdJ("change",function(t){const o=e.CHM(a).$implicit,s=e.oxw(2);return e.KtG(t?s.itemSelectionToggle(o):null)})("click",function(t){return t.stopPropagation()}),e.ALo(4,"translate"),e.ALo(5,"checkboxLabel"),e.qZA()()()}if(2&E){const a=h.$implicit,i=e.oxw(2);e.xp6(1),e.s9C("matTooltip",e.lcZ(2,7,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.INDIRECT_RESOURCE")),e.Q6J("matTooltipPosition","above")("matTooltipDisabled",!i.disableSelect(a)),e.xp6(2),e.Q2q("data-cy","",a.name,"-checkbox"),e.Q6J("aria-label",e.xi3(4,9,e.lcZ(5,12,i.selection.isSelected(a)),e.VKq(14,Q,a.name)))("checked",i.selection.isSelected(a))("disabled",i.disableSelect(a))}}function ge(E,h){1&E&&(e.ynx(0,22),e.YNc(1,ee,2,1,"th",23),e.YNc(2,Ee,6,16,"td",24),e.BQk())}function ve(E,h){1&E&&(e.TgZ(0,"th",31),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&E&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_ID")," "))}function De(E,h){if(1&E&&(e.TgZ(0,"td",32),e._uU(1),e.qZA()),2&E){const a=h.$implicit;e.xp6(1),e.Oqu(a.id)}}function he(E,h){1&E&&e._UZ(0,"th",33)}function Ye(E,h){if(1&E&&(e.TgZ(0,"td",34),e._UZ(1,"perun-web-apps-recently-viewed-icon",35),e.qZA()),2&E){const a=h.$implicit,i=e.oxw();e.xp6(1),e.Q6J("recentIds",i.recentIds)("id",a.id)}}function Be(E,h){1&E&&e._UZ(0,"th",33)}function se(E,h){1&E&&(e.TgZ(0,"mat-icon",37),e.ALo(1,"translate"),e._uU(2,"account_tree"),e.qZA()),2&E&&e.Q6J("matTooltip",e.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.INDIRECT_RESOURCE"))}function le(E,h){if(1&E&&(e.TgZ(0,"td",34),e.YNc(1,se,3,3,"mat-icon",36),e.qZA()),2&E){const a=h.$implicit;e.xp6(1),e.Q6J("ngIf",a.sourceGroupId)}}function N(E,h){1&E&&(e.TgZ(0,"th",31),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&E&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_NAME")," "))}function k(E,h){if(1&E&&(e.TgZ(0,"td",34),e._uU(1),e.qZA()),2&E){const a=h.$implicit;e.uIk("data-cy",a.name),e.xp6(1),e.hij(" ",a.name," ")}}function be(E,h){1&E&&(e.TgZ(0,"th",31),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&E&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_VO_NAME")," "))}function Z(E,h){if(1&E&&(e.TgZ(0,"td",34),e._uU(1),e.qZA()),2&E){const a=h.$implicit;e.xp6(1),e.Oqu(a.vo.name)}}function ce(E,h){1&E&&(e.TgZ(0,"th",31),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&E&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_VO_ID")," "))}function xe(E,h){if(1&E&&(e.TgZ(0,"td",34),e._uU(1),e.qZA()),2&E){const a=h.$implicit;e.xp6(1),e.Oqu(a.voId)}}function ot(E,h){1&E&&(e.TgZ(0,"th",31),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&E&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_GROUP_RESOURCE_STATUS")," "))}function Fe(E,h){if(1&E){const a=e.EpF();e.TgZ(0,"td",34)(1,"perun-web-apps-group-resource-status",38),e.NdJ("mouseenter",function(){e.CHM(a);const t=e.oxw();return e.KtG(t.disabledRouting=!0)})("mouseleave",function(){e.CHM(a);const t=e.oxw();return e.KtG(t.disabledRouting=t.disableRouting)})("statusChange",function(){e.CHM(a);const t=e.oxw();return e.KtG(t.refreshTable.emit())}),e.qZA()()}if(2&E){const a=h.$implicit,i=e.oxw();e.xp6(1),e.Q6J("theme","group-theme")("resourceId",a.id)("groupId",i.groupId)("failureCause",a.failureCause)("status",a.status)}}function ut(E,h){1&E&&(e.TgZ(0,"th",31),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&E&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_FACILITY_NAME")," "))}function tt(E,h){if(1&E&&(e.TgZ(0,"td",34),e._uU(1),e.qZA()),2&E){const a=h.$implicit;e.xp6(1),e.Oqu(a.facility.name)}}function vt(E,h){1&E&&(e.TgZ(0,"th",31),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&E&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_FACILITY_ID")," "))}function X(E,h){if(1&E&&(e.TgZ(0,"td",34),e._uU(1),e.qZA()),2&E){const a=h.$implicit;e.xp6(1),e.Oqu(a.facilityId)}}function nt(E,h){1&E&&(e.TgZ(0,"th",31),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&E&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_TAGS")," "))}function Ae(E,h){if(1&E&&(e.TgZ(0,"td",34),e._uU(1),e.ALo(2,"resourceTagsToString"),e.qZA()),2&E){const a=h.$implicit;e.xp6(1),e.hij(" ",e.lcZ(2,1,a.resourceTags)," ")}}function ye(E,h){1&E&&(e.TgZ(0,"th",31),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&E&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_DESCRIPTION")," "))}function _e(E,h){if(1&E&&(e.TgZ(0,"td",34),e._uU(1),e.qZA()),2&E){const a=h.$implicit;e.xp6(1),e.Oqu(a.description)}}function Se(E,h){1&E&&e._UZ(0,"tr",39)}const Ne=function(E){return[E]};function Ce(E,h){if(1&E&&(e._UZ(0,"tr",40),e.ALo(1,"getResourceRoute"),e.ALo(2,"getResourceRoute")),2&E){const a=h.$implicit,i=e.oxw();e.ekj("cursor-pointer",!i.disableRouting)("disable-outline",i.disabledRouting),e.Q6J("perunWebAppsMiddleClickRouterLink",e.VKq(12,Ne,i.disabledRouting?null:e.xi3(1,6,a,i.routingVo)))("routerLink",i.disabledRouting?null:e.xi3(2,9,a,i.routingVo))}}function fe(E,h){1&E&&(e.TgZ(0,"perun-web-apps-alert",41),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&E&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function r(E,h){1&E&&(e.TgZ(0,"perun-web-apps-alert",41),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&E&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.NO_RESOURCES_WARNING"),"\n"))}const u=function(E){return{all:E}};let _=(()=>{class E{constructor(a,i){this.guiAuthResolver=a,this.tableCheckbox=i,this.resources=[],this.selection=new M.Ov(!0,[]),this.disableRouting=!1,this.routingVo=!1,this.displayedColumns=["select","id","recent","indirectResourceAssigment","name","vo","voId","status","facility","facilityId","tags","description"],this.pageSizeOptions=m.f7,this.groupId=null,this.resourcesToDisableCheckbox=new Set,this.refreshTable=new e.vpe,this.allSelected=new e.vpe,this.removeAuth=!1,this.addAuth=!1,this.getDataForColumnFun=(t,n)=>E.getDataForColumn(t,n,this.recentIds),this.canBeSelected=t=>!this.disableSelect(t)}set matSort(a){this.sort=a}static getDataForColumn(a,i,t){switch(i){case"id":return a.id.toString();case"vo":return a.vo.name;case"name":return a.name;case"facility":return a.facility.name;case"description":return a.description;case"recent":return t&&t.includes(a.id)?"#".repeat(t.indexOf(a.id)):a.name;case"tags":{if(!a.resourceTags)return a[i];let o="";return a.resourceTags.forEach(function(s){o=o.concat(s.tagName)}),o}case"status":return a.status;case"uuid":return a.uuid;default:return a[i]}}ngOnInit(){this.disabledRouting=this.disableRouting}ngOnChanges(){this.guiAuthResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(a=>"id"!==a)),this.setDataSource(),this.setAuth()}exportAllData(a){(0,m.O6)((0,m.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumnFun),a)}exportDisplayedData(a){const i=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,t=i+this.dataSource.paginator.pageSize;(0,m.O6)((0,m.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(i,t),this.displayedColumns,this.getDataForColumnFun),a)}setDataSource(){this.dataSource||(this.dataSource=new C.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(a,i)=>(0,m.Sd)(a,i,this.displayedColumns,this.getDataForColumnFun,!0),this.dataSource.sortData=(a,i)=>(0,m.pR)(a,i,this.getDataForColumnFun)),this.dataSource.filter=this.filterValue,this.dataSource.data=this.resources}isAllSelected(){const a=this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource,this.canBeSelected);return this.allSelected.emit(a),a}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!0,this.canBeSelected),this.setAuth()}setAuth(){const a=this.groupToResource?[this.groupToResource]:[];this.removeAuth=this.selection.selected.reduce((i,t)=>i&&this.guiAuthResolver.isAuthorized("removeGroupFromResources_Group_List_policy",a.concat([t])),!0),this.addAuth=this.selection.selected.reduce((i,t)=>i&&this.guiAuthResolver.isAuthorized("assignGroupToResources_Group_List_policy",a.concat([t])),!0)}itemSelectionToggle(a){this.selection.toggle(a),this.setAuth()}disableSelect(a){return this.resourcesToDisableCheckbox.has(a.id)}}return E.\u0275fac=function(a){return new(a||E)(e.Y36(b.x4),e.Y36(b.UA))},E.\u0275cmp=e.Xpm({type:E,selectors:[["perun-web-apps-resources-list"]],viewQuery:function(a,i){if(1&a&&(e.Gf(m.l9,7),e.Gf(A.YE,7)),2&a){let t;e.iGM(t=e.CRH())&&(i.child=t.first),e.iGM(t=e.CRH())&&(i.matSort=t.first)}},inputs:{resources:"resources",selection:"selection",filterValue:"filterValue",disableRouting:"disableRouting",routingVo:"routingVo",displayedColumns:"displayedColumns",groupToResource:"groupToResource",pageSizeOptions:"pageSizeOptions",recentIds:"recentIds",groupId:"groupId",resourcesToDisableCheckbox:"resourcesToDisableCheckbox",tableId:"tableId"},outputs:{refreshTable:"refreshTable",allSelected:"allSelected"},features:[e.TTD],decls:42,vars:16,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","tableId","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size",4,"matCellDef"],["matColumnDef","recent"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","indirectResourceAssigment"],["matColumnDef","name"],["matColumnDef","vo"],["matColumnDef","voId"],["matColumnDef","status"],["matColumnDef","facility"],["matColumnDef","facilityId"],["matColumnDef","tags"],["matColumnDef","description"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change",4,"ngIf"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],[3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-header-cell",""],["mat-cell",""],[3,"recentIds","id"],["matTooltipPosition","above",3,"matTooltip",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip"],[3,"theme","resourceId","groupId","failureCause","status","mouseenter","mouseleave","statusChange"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(a,i){1&a&&(e.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),e.NdJ("exportDisplayedData",function(n){return i.exportDisplayedData(n)})("exportAllData",function(n){return i.exportAllData(n)}),e.TgZ(2,"table",2),e.YNc(3,ge,3,0,"ng-container",3),e.ALo(4,"isAllSelected"),e.ynx(5,4),e.YNc(6,ve,3,3,"th",5),e.YNc(7,De,2,1,"td",6),e.BQk(),e.ynx(8,7),e.YNc(9,he,1,0,"th",8),e.YNc(10,Ye,2,2,"td",9),e.BQk(),e.ynx(11,10),e.YNc(12,Be,1,0,"th",8),e.YNc(13,le,2,1,"td",9),e.BQk(),e.ynx(14,11),e.YNc(15,N,3,3,"th",5),e.YNc(16,k,2,2,"td",9),e.BQk(),e.ynx(17,12),e.YNc(18,be,3,3,"th",5),e.YNc(19,Z,2,1,"td",9),e.BQk(),e.ynx(20,13),e.YNc(21,ce,3,3,"th",5),e.YNc(22,xe,2,1,"td",9),e.BQk(),e.ynx(23,14),e.YNc(24,ot,3,3,"th",5),e.YNc(25,Fe,2,5,"td",9),e.BQk(),e.ynx(26,15),e.YNc(27,ut,3,3,"th",5),e.YNc(28,tt,2,1,"td",9),e.BQk(),e.ynx(29,16),e.YNc(30,vt,3,3,"th",5),e.YNc(31,X,2,1,"td",9),e.BQk(),e.ynx(32,17),e.YNc(33,nt,3,3,"th",5),e.YNc(34,Ae,3,3,"td",9),e.BQk(),e.ynx(35,18),e.YNc(36,ye,3,3,"th",5),e.YNc(37,_e,2,1,"td",9),e.BQk(),e.YNc(38,Se,1,0,"tr",19),e.YNc(39,Ce,3,14,"tr",20),e.qZA()()(),e.YNc(40,fe,3,3,"perun-web-apps-alert",21),e.YNc(41,r,3,3,"perun-web-apps-alert",21)),2&a&&(e.Q6J("hidden",0===i.dataSource.filteredData.length||0===i.resources.length),e.xp6(1),e.Q6J("dataLength",i.dataSource.filteredData.length)("tableId",i.tableId)("pageSizeOptions",i.pageSizeOptions),e.xp6(1),e.Q6J("dataSource",i.dataSource),e.xp6(1),e.Q6J("ngIf",e.VKq(14,u,e.Dn7(4,10,i.dataSource,i.selection.selected.length,i.canBeSelected))),e.xp6(35),e.Q6J("matHeaderRowDef",i.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",i.displayedColumns),e.xp6(1),e.Q6J("ngIf",0===i.dataSource.filteredData.length&&0!==i.resources.length),e.xp6(1),e.Q6J("ngIf",0===i.resources.length))},dependencies:[D.O5,v.oG,C.BZ,C.fO,C.as,C.w1,C.Dz,C.nj,C.ge,C.ev,C.XQ,C.Gk,R.rH,A.YE,A.nU,B.w,w.Hw,L.gM,O.l,q.Y,z.W,ie.x,te.Q,Te.X$,pe,Le.r,T.I,W.G,F.r],styles:["table[_ngcontent-%COMP%]{width:100%!important}.mat-cell[_ngcontent-%COMP%]{padding:8px 8px 8px 0}.mat-column-select[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:50px!important}.mat-column-id[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:60px!important}.filter-input[_ngcontent-%COMP%]{width:300px!important}.disable-outline[_ngcontent-%COMP%]{outline:none!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:.25rem!important}"]}),E})()},52170:(Xe,ue,p)=>{"use strict";p.d(ue,{$x:()=>b,qG:()=>m});var e=p(94650),A=p(89383),C=p(89593);class M{constructor(v,R){this.value=R,this.displayName=v}}var m=(()=>{return(D=m||(m={}))[D.SOURCE=0]="SOURCE",D[D.DESTINATION=1]="DESTINATION",D[D.FEDERATION=2]="FEDERATION",m;var D})();let b=(()=>{class D{constructor(R){this.translateService=R,this.attributes=[],this.asGroup=!1,this.itemSelected=new e.vpe,this.items=[],this.nameFunction=B=>B.displayName,this.shortNameFunction=()=>null,this.searchFunction=B=>B.displayName}static getDefinition(R){const B=R.namespace.split(":");return null===B[4]?"null":B[4]}ngOnInit(){this.type===m.FEDERATION?(this.getFederationAttributes(),this.getFederationAttribute()):this.createSelectionItems(),this.sortAttributes(this.items)}createSelectionItems(){this.translateService.get("DIALOGS.APPLICATION_FORM_EDIT_ITEM.NO_SELECTED_ITEM").subscribe(R=>{const B=new M(R,"");this.items.push(B),this.item=B});for(const R of this.attributes){const B=new M(R.friendlyName+" ("+R.entity+" / "+D.getDefinition(R)+")",R.namespace+":"+R.friendlyName);B.value===this.selectedAttribute&&(this.item=B),("user"===R.entity.toLowerCase()||"member"===R.entity.toLowerCase()||"vo"===R.entity.toLowerCase()&&this.type===m.SOURCE||"group"===R.entity.toLowerCase()&&this.asGroup&&this.type===m.SOURCE)&&this.items.push(B)}}getFederationAttributes(){this.translateService.get("DIALOGS.APPLICATION_FORM_EDIT_ITEM.NO_SELECTED_ITEM").subscribe(R=>{this.items.push(new M(R,"")),this.translateService.get("DIALOGS.APPLICATION_FORM_EDIT_ITEM.CUSTOM_VALUE").subscribe(B=>{this.items.push(new M(B,"custom")),this.items.push(new M("Display name","displayName")),this.items.push(new M("Common name","cn")),this.items.push(new M("Mail","mail")),this.items.push(new M("Organization","o")),this.items.push(new M("Level of Assurance (LoA)","loa")),this.items.push(new M("First name","givenName")),this.items.push(new M("Surname","sn")),this.items.push(new M("EPPN","eppn")),this.items.push(new M("IdP Category","md_entityCategory")),this.items.push(new M("IdP Affiliation","affiliation")),this.items.push(new M("EduPersonScopedAffiliation","eduPersonScopedAffiliation")),this.items.push(new M("Forwarded Affiliation from Proxy","forwardedScopedAffiliation")),this.items.push(new M("schacHomeOrganization","schacHomeOrganization")),this.items.push(new M("Login","uid")),this.items.push(new M("Alternative login name","alternativeLoginName"))})})}getFederationAttribute(){for(const R of this.items)if(R.value===this.selectedAttribute)return void(this.item=R);this.item=this.items[1],this.item.value=this.selectedAttribute}sortAttributes(R){R.sort((B,w)=>""===B.value?-1:""===w.value?1:B.displayName.localeCompare(w.displayName))}}return D.\u0275fac=function(R){return new(R||D)(e.Y36(A.sK))},D.\u0275cmp=e.Xpm({type:D,selectors:[["perun-web-apps-selection-item-search-select"]],inputs:{attributes:"attributes",selectedAttribute:"selectedAttribute",type:"type",asGroup:"asGroup"},outputs:{itemSelected:"itemSelected"},decls:4,vars:14,consts:[[3,"entities","entity","searchFunction","mainTextFunction","secondaryTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(R,B){1&R&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(L){return B.itemSelected.emit(L)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&R&&e.Q6J("entities",B.items)("entity",B.item)("searchFunction",B.searchFunction)("mainTextFunction",B.nameFunction)("secondaryTextFunction",B.shortNameFunction)("selectPlaceholder",e.lcZ(1,8,"SHARED_LIB.PERUN.COMPONENTS.SELECTION_ITEM_SEARCH_SELECT.SELECT_ITEM"))("findPlaceholder",e.lcZ(2,10,"SHARED_LIB.PERUN.COMPONENTS.SELECTION_ITEM_SEARCH_SELECT.FIND_ITEM"))("noEntriesText",e.lcZ(3,12,"SHARED_LIB.PERUN.COMPONENTS.SELECTION_ITEM_SEARCH_SELECT.NO_ITEM_FOUND"))},dependencies:[C.i,A.X$]}),D})()},30540:(Xe,ue,p)=>{"use strict";p.d(ue,{J:()=>M});var e=p(94650),A=p(89593),C=p(89383);let M=(()=>{class m{constructor(){this.service=null,this.multiple=!1,this.disableAutoSelect=!1,this.theme="",this.serviceSelected=new e.vpe,this.nameFunction=D=>D.name,this.secondaryFunction=()=>"",this.searchFunction=D=>D.name}}return m.\u0275fac=function(D){return new(D||m)},m.\u0275cmp=e.Xpm({type:m,selectors:[["perun-web-apps-service-search-select"]],inputs:{service:"service",services:"services",multiple:"multiple",disableAutoSelect:"disableAutoSelect",theme:"theme"},outputs:{serviceSelected:"serviceSelected"},decls:4,vars:17,consts:[[3,"entity","entities","multiple","disableAutoSelect","searchFunction","mainTextFunction","secondaryTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","theme","entitySelected"]],template:function(D,v){1&D&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(B){return v.serviceSelected.emit(B)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&D&&e.Q6J("entity",v.service)("entities",v.services)("multiple",v.multiple)("disableAutoSelect",v.disableAutoSelect)("searchFunction",v.searchFunction)("mainTextFunction",v.nameFunction)("secondaryTextFunction",v.secondaryFunction)("selectPlaceholder",e.lcZ(1,11,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_SEARCH_SELECT.SELECT_SERVICE"))("findPlaceholder",e.lcZ(2,13,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_SEARCH_SELECT.FIND_SERVICE"))("noEntriesText",e.lcZ(3,15,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_SEARCH_SELECT.NO_SERVICE_FOUND"))("theme",v.theme)},dependencies:[A.i,C.X$]}),m})()},2541:(Xe,ue,p)=>{"use strict";p.d(ue,{m:()=>F});var e=p(81591),A=p(61744),C=p(21029),M=p(9244),m=p(94650),b=p(65412),D=p(36895),v=p(51572),R=p(98380),B=p(4859),w=p(37084),L=p(7434),O=p(89383),q=p(34447);function te(V,ee){1&V&&m._UZ(0,"mat-spinner",8)}function z(V,ee){1&V&&(m.TgZ(0,"perun-web-apps-alert",9),m._uU(1),m.ALo(2,"translate"),m.ALo(3,"customTranslate"),m.qZA()),2&V&&(m.xp6(1),m.Oqu(m.lcZ(2,1,m.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.DATA_QUOTAS.NO_QUOTAS"))))}function ie(V,ee){if(1&V){const Q=m.EpF();m.TgZ(0,"div")(1,"p")(2,"strong"),m._uU(3),m.ALo(4,"translate"),m.ALo(5,"customTranslate"),m.qZA(),m._uU(6),m.qZA(),m.TgZ(7,"p",10),m._uU(8),m.ALo(9,"translate"),m.ALo(10,"customTranslate"),m.qZA(),m.TgZ(11,"button",11),m.NdJ("click",function(){m.CHM(Q);const ge=m.oxw().$implicit,ve=m.oxw(3).$implicit,De=m.oxw();return m.KtG(De.requestChangeQuota(ve,ge))}),m._uU(12),m.ALo(13,"translate"),m.ALo(14,"customTranslate"),m.qZA()()}if(2&V){const Q=m.oxw(5);m.xp6(3),m.Oqu(m.lcZ(4,4,m.lcZ(5,6,"SHARED_LIB.PERUN.COMPONENTS.DATA_QUOTAS.QUOTA"))),m.xp6(3),m.hij(" ",Q.quotasMarkup," "),m.xp6(2),m.hij(" ",m.lcZ(9,8,m.lcZ(10,10,"SHARED_LIB.PERUN.COMPONENTS.DATA_QUOTAS.QUOTA_INFO"))," "),m.xp6(4),m.hij(" ",m.lcZ(13,12,m.lcZ(14,14,"SHARED_LIB.PERUN.COMPONENTS.DATA_QUOTAS.CHANGE"))," ")}}function Te(V,ee){1&V&&(m.TgZ(0,"p"),m._uU(1),m.ALo(2,"translate"),m.ALo(3,"customTranslate"),m.qZA()),2&V&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,m.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.DATA_QUOTAS.NO_QUOTAS"))," "))}function pe(V,ee){if(1&V){const Q=m.EpF();m.TgZ(0,"mat-expansion-panel",3),m.NdJ("opened",function(){const ve=m.CHM(Q).$implicit,De=m.oxw(4);return m.KtG(De.getResAttributes(ve.id))}),m.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),m._uU(3),m.qZA()(),m.YNc(4,ie,15,16,"div",7),m.YNc(5,Te,4,5,"p",7),m.qZA()}if(2&V){const Q=ee.$implicit,Ee=m.oxw(4);m.xp6(3),m.hij(" ",Q.name," "),m.xp6(1),m.Q6J("ngIf",Ee.defaultQuota),m.xp6(1),m.Q6J("ngIf",!Ee.defaultQuota)}}function Le(V,ee){if(1&V&&(m.TgZ(0,"mat-accordion"),m.YNc(1,pe,6,3,"mat-expansion-panel",2),m.qZA()),2&V){const Q=m.oxw(3);m.xp6(1),m.Q6J("ngForOf",Q.resources)}}function T(V,ee){if(1&V&&(m.YNc(0,te,1,0,"mat-spinner",5),m.YNc(1,z,4,5,"perun-web-apps-alert",6),m.YNc(2,Le,2,1,"mat-accordion",7)),2&V){const Q=m.oxw(2);m.Q6J("ngIf",Q.loading),m.xp6(1),m.Q6J("ngIf",0===Q.resources.length&&!Q.loading),m.xp6(1),m.Q6J("ngIf",Q.resources.length&&!Q.loading)}}function W(V,ee){if(1&V){const Q=m.EpF();m.TgZ(0,"mat-expansion-panel",3),m.NdJ("opened",function(){const ve=m.CHM(Q).$implicit,De=m.oxw();return m.KtG(De.getMembersResources(ve))}),m.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),m._uU(3),m.qZA()(),m.YNc(4,T,3,3,"ng-template",4),m.qZA()}if(2&V){const Q=ee.$implicit;m.xp6(3),m.hij(" ",Q.name," ")}}let F=(()=>{class V{constructor(Q,Ee,ge,ve,De,he,Ye){this.store=Q,this.usersManagerService=Ee,this.membersService=ge,this.resourcesManagerService=ve,this.attributesManagerService=De,this.dialog=he,this.entityStorageService=Ye,this.vos=[],this.resources=[],this.quotasMarkup="",this.filteredVos=[]}ngOnInit(){this.usersManagerService.getVosWhereUserIsMember(this.user.id).subscribe(Q=>{this.vos=Q,this.filteredVos=Q})}getMembersResources(Q){this.loading=!0,this.resources=[],this.membersService.getMemberByUser(Q.id,this.user.id).subscribe(Ee=>{this.resourcesManagerService.getAssignedRichResourcesWithMember(Ee.id).subscribe(ge=>{let ve=ge.length;ve||(this.loading=!1),ge.forEach(De=>{this.attributesManagerService.getResourceAttributes(De.id).subscribe(he=>{ve--,he.find(Ye=>"defaultDataQuotas"===Ye.friendlyName)&&this.resources.push(De),this.loading=0!==ve})})})})}getResAttributes(Q){this.attributesManagerService.getResourceAttributes(Q).subscribe(Ee=>{let ge=Ee.find(ve=>"dataQuotas"===ve.friendlyName);if(ge?.value){const ve=Object.entries(ge.value).map(De=>String(De[1]));this.currentQuota=ve[0]}else this.currentQuota="";if(ge=Ee.find(ve=>"defaultDataQuotas"===ve.friendlyName),ge?.value){const ve=Object.entries(ge.value).map(De=>String(De[1]));this.defaultQuota=ve[0]}else this.defaultQuota="";this.currentQuota||(this.currentQuota=this.defaultQuota),this.parseMarkup()})}requestChangeQuota(Q,Ee){const ge=(0,M.kZ)();ge.width="400px",ge.data={vo:Q,resource:Ee,user:this.user,currentQuota:this.quotasMarkup},this.dialog.open(C.h4,ge)}applyFilter(Q){this.filteredVos=this.vos.filter(Ee=>Ee.name.toLowerCase().includes(Q.toLowerCase()))}parseMarkup(){let Q="";Q+=this.currentQuota,Q+=` (default: ${this.defaultQuota})`,Q=Q.split(":").join(" : ").split("K").join(" KiB").split("M").join(" MiB").split("G").join(" GiB").split("T").join(" TiB").split("E").join(" EiB"),this.quotasMarkup=Q}}return V.\u0275fac=function(Q){return new(Q||V)(m.Y36(e.d6),m.Y36(A.Fv),m.Y36(A.uq),m.Y36(A.xk),m.Y36(A.H8),m.Y36(b.uw),m.Y36(e.fb))},V.\u0275cmp=m.Xpm({type:V,selectors:[["perun-web-apps-data-quotas"]],inputs:{user:"user"},decls:9,vars:11,consts:[[1,"page-title"],[3,"placeholder","filter"],[3,"opened",4,"ngFor","ngForOf"],[3,"opened"],["matExpansionPanelContent",""],["class","ml-auto mr-auto",4,"ngIf"],["alert_type","warn",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["alert_type","warn"],[1,"color-gray"],["mat-flat-button","","color","primary",3,"click"]],template:function(Q,Ee){1&Q&&(m.TgZ(0,"h1",0),m._uU(1),m.ALo(2,"translate"),m.ALo(3,"customTranslate"),m.qZA(),m.TgZ(4,"perun-web-apps-immediate-filter",1),m.NdJ("filter",function(ve){return Ee.applyFilter(ve)}),m.ALo(5,"translate"),m.ALo(6,"customTranslate"),m.qZA(),m.TgZ(7,"mat-accordion"),m.YNc(8,W,5,1,"mat-expansion-panel",2),m.qZA()),2&Q&&(m.xp6(1),m.hij(" ",m.lcZ(2,3,m.lcZ(3,5,"SHARED_LIB.PERUN.COMPONENTS.DATA_QUOTAS.TITLE")),"\n"),m.xp6(3),m.Q6J("placeholder",m.lcZ(5,7,m.lcZ(6,9,"SHARED_LIB.PERUN.COMPONENTS.DATA_QUOTAS.FILTER"))),m.xp6(4),m.Q6J("ngForOf",Ee.filteredVos))},dependencies:[D.sg,D.O5,v.Ou,R.w,B.lW,w.pp,w.ib,w.yz,w.yK,w.HS,L.L,O.X$,q.a],styles:[".color-gray[_ngcontent-%COMP%]{color:gray}"]}),V})()},74006:(Xe,ue,p)=>{"use strict";p.d(ue,{E:()=>Le});var e=p(61744),A=p(81591),C=p(9244),M=p(94650),m=p(94364),b=p(89383),D=p(36895),v=p(56709),R=p(51572),B=p(98380),w=p(37084),L=p(7434),O=p(34447);function q(T,W){1&T&&M._UZ(0,"mat-spinner",8)}function te(T,W){1&T&&(M.TgZ(0,"perun-web-apps-alert",9),M._uU(1),M.ALo(2,"translate"),M.ALo(3,"customTranslate"),M.qZA()),2&T&&(M.xp6(1),M.Oqu(M.lcZ(2,1,M.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.OPT_OUT_MAILING_LISTS.NO_MAILING_LISTS_ALERT"))))}function z(T,W){if(1&T){const F=M.EpF();M.TgZ(0,"mat-expansion-panel",3),M.NdJ("closed",function(){M.CHM(F);const ee=M.oxw(4);return M.KtG(ee.deselectResource())})("afterExpand",function(){const Q=M.CHM(F).$implicit,Ee=M.oxw(4);return M.KtG(Ee.changeSelectedResource(Q))}),M.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),M._uU(3),M.qZA()(),M.TgZ(4,"div",10)(5,"mat-checkbox",11),M.NdJ("change",function(){M.CHM(F);const ee=M.oxw(4);return M.KtG(ee.setOptOut())}),M.qZA(),M.TgZ(6,"p"),M._uU(7),M.ALo(8,"translate"),M.ALo(9,"customTranslate"),M.qZA()()()}if(2&T){const F=W.$implicit,V=M.oxw(4);M.Q6J("expanded",F.name===V.selectedResource),M.xp6(3),M.hij(" ",F.name," "),M.xp6(2),M.Q6J("checked",V.optOutAttribute&&null!==V.optOutAttribute.value),M.xp6(2),M.hij(" ",M.lcZ(8,4,M.lcZ(9,6,"SHARED_LIB.PERUN.COMPONENTS.OPT_OUT_MAILING_LISTS.OPT_OUT_LABEL"))," ")}}function ie(T,W){if(1&T&&(M.TgZ(0,"mat-accordion"),M.YNc(1,z,10,8,"mat-expansion-panel",2),M.qZA()),2&T){const F=M.oxw(3);M.xp6(1),M.Q6J("ngForOf",F.resources)}}function Te(T,W){if(1&T&&(M.YNc(0,q,1,0,"mat-spinner",5),M.YNc(1,te,4,5,"perun-web-apps-alert",6),M.YNc(2,ie,2,1,"mat-accordion",7)),2&T){const F=M.oxw(2);M.Q6J("ngIf",F.loading),M.xp6(1),M.Q6J("ngIf",0===F.resources.length&&!F.loading),M.xp6(1),M.Q6J("ngIf",F.resources.length&&!F.loading)}}function pe(T,W){if(1&T){const F=M.EpF();M.TgZ(0,"mat-expansion-panel",3),M.NdJ("closed",function(){M.CHM(F);const ee=M.oxw();return M.KtG(ee.deselectVo())})("afterExpand",function(){const Q=M.CHM(F).$implicit,Ee=M.oxw();return M.KtG(Ee.changeSelectedVo(Q))}),M.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),M._uU(3),M.qZA()(),M.YNc(4,Te,3,3,"ng-template",4),M.qZA()}if(2&T){const F=W.$implicit,V=M.oxw();M.Q6J("expanded",F.shortName===V.selectedVo),M.xp6(3),M.hij(" ",F.name," ")}}let Le=(()=>{class T{constructor(F,V,ee,Q,Ee,ge,ve,De,he){this.store=F,this.usersManagerService=V,this.membersService=ee,this.resourcesManagerService=Q,this.attributesManagerService=Ee,this.route=ge,this.router=ve,this.notificator=De,this.translate=he,this.vos=[],this.resources=[],this.optOuts=[],this.filteredVos=[],this.loading=!0,this.selectedVo=null,this.selectedResource=null}ngOnDestroy(){this.isService||this.router.navigate([],{relativeTo:this.route,queryParams:{vo:null,resource:null},replaceUrl:!0,queryParamsHandling:"merge"})}ngOnInit(){this.route.queryParams.subscribe(F=>{this.selectedVo=String(F.vo),this.selectedResource=String(F.resource),this.changeOptOut=String(F.action),this.usersManagerService.getVosWhereUserIsMember(this.user.id).subscribe(V=>{if(this.vos=V.sort(C.aC),this.filteredVos=V,void 0!==this.selectedResource){const ee=this.vos.find(Q=>Q.shortName===this.selectedVo);ee&&this.getMailingLists(ee)}else if(void 0!==this.selectedVo){const ee=this.vos.find(Q=>Q.shortName===this.selectedVo);ee&&(this.getMailingLists(ee),this.changeSelectedVo(ee))}})}).unsubscribe()}changeSelectedResource(F){this.selectedResource!==F.name&&this.getOptOutAttribute(F),this.isService||(this.changeOptOut&&("subscribe"===this.changeOptOut?this.subscribe():"unsubscribe"===this.changeOptOut&&this.unsubscribe(),this.changeOptOut=null),this.router.navigate([],{relativeTo:this.route,queryParams:{vo:this.selectedVo,resource:this.selectedResource,action:null},queryParamsHandling:"merge"}))}changeSelectedVo(F){this.selectedVo!==F.shortName&&(this.getMailingLists(F),this.selectedResource=null),this.isService||this.router.navigate([],{relativeTo:this.route,queryParams:{vo:this.selectedVo,resource:this.selectedResource},queryParamsHandling:"merge"})}getMailingLists(F){this.selectedVo=F.shortName,this.loading=!0,this.resources=[],this.membersService.getMemberByUser(F.id,this.user.id).subscribe(V=>{this.resourcesManagerService.getMailingServiceRichResourcesWithMember(V.id).subscribe(ee=>{let Q=ee.length;Q||(this.loading=!1),ee.forEach(Ee=>{this.attributesManagerService.getRequiredAttributesMemberResource(V.id,Ee.id).subscribe(ge=>{this.attributesManagerService.getResourceAttributeByName(Ee.id,"urn:perun:resource:attribute-def:def:disableMailingListOptOut").subscribe(ve=>{Q--;const De=ge.find(he=>"optOutMailingList"===he.friendlyName);De&&"true"!==ve?.value&&(this.optOuts.push({resource:Ee.id,member:V.id,attribute:De}),this.resources.push(Ee),this.selectedResource===Ee.name&&(this.getOptOutAttribute(Ee),this.changeSelectedResource(Ee))),this.loading=0!==Q})})})}),this.resources.sort(C.aC)})}getOptOutAttribute(F){this.selectedResource=F.name,this.index=this.resources.indexOf(F),this.optOutAttribute=this.optOuts[this.index].attribute}unsubscribe(){const F=String(this.optOuts[this.index].attribute.value);this.optOuts[this.index].attribute.value="true",this.attributesManagerService.setMemberResourceAttribute(this.optOuts[this.index]).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.OPT_OUT_MAILING_LISTS.UNSUBSCRIBED")+this.selectedResource+".")},()=>{this.optOuts[this.index].attribute.value=F})}subscribe(){const F=String(this.optOuts[this.index].attribute.value);this.optOuts[this.index].attribute.value=null,this.attributesManagerService.setMemberResourceAttribute(this.optOuts[this.index]).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.OPT_OUT_MAILING_LISTS.SUBSCRIBED")+this.selectedResource+".")},()=>{this.optOuts[this.index].attribute.value=F})}setOptOut(){this.optOutAttribute.value?this.subscribe():this.unsubscribe()}applyFilter(F){this.filteredVos=this.vos.filter(V=>V.name.toLowerCase().includes(F.toLowerCase()))}deselectVo(){this.loading=!0,this.selectedVo=null,this.selectedResource=null,this.isService||this.router.navigate([],{relativeTo:this.route,queryParams:{vo:this.selectedVo,resource:this.selectedResource},queryParamsHandling:"merge"})}deselectResource(){this.selectedResource=null,this.isService||this.router.navigate([],{relativeTo:this.route,queryParams:{vo:this.selectedVo,resource:this.selectedResource},queryParamsHandling:"merge"})}}return T.\u0275fac=function(F){return new(F||T)(M.Y36(A.d6),M.Y36(e.Fv),M.Y36(e.uq),M.Y36(e.xk),M.Y36(e.H8),M.Y36(m.gz),M.Y36(m.F0),M.Y36(A.V6),M.Y36(b.sK))},T.\u0275cmp=M.Xpm({type:T,selectors:[["perun-web-apps-mailing-lists"]],inputs:{user:"user",isService:"isService"},decls:9,vars:11,consts:[[1,"page-title"],[3,"placeholder","filter"],[3,"expanded","closed","afterExpand",4,"ngFor","ngForOf"],[3,"expanded","closed","afterExpand"],["matExpansionPanelContent",""],["class","ml-auto mr-auto",4,"ngIf"],["alert_type","warn",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["alert_type","warn"],[1,"row"],[1,"ml-3","mr-2",3,"checked","change"]],template:function(F,V){1&F&&(M.TgZ(0,"h1",0),M._uU(1),M.ALo(2,"translate"),M.ALo(3,"customTranslate"),M.qZA(),M.TgZ(4,"perun-web-apps-immediate-filter",1),M.NdJ("filter",function(Q){return V.applyFilter(Q)}),M.ALo(5,"translate"),M.ALo(6,"customTranslate"),M.qZA(),M.TgZ(7,"mat-accordion"),M.YNc(8,pe,5,2,"mat-expansion-panel",2),M.qZA()),2&F&&(M.xp6(1),M.hij(" ",M.lcZ(2,3,M.lcZ(3,5,"SHARED_LIB.PERUN.COMPONENTS.OPT_OUT_MAILING_LISTS.TITLE")),"\n"),M.xp6(3),M.Q6J("placeholder",M.lcZ(5,7,M.lcZ(6,9,"SHARED_LIB.PERUN.COMPONENTS.OPT_OUT_MAILING_LISTS.FILTER"))),M.xp6(4),M.Q6J("ngForOf",V.filteredVos))},dependencies:[D.sg,D.O5,v.oG,R.Ou,B.w,w.pp,w.ib,w.yz,w.yK,w.HS,L.L,b.X$,O.a]}),T})()},80275:(Xe,ue,p)=>{"use strict";p.d(ue,{j:()=>k});var e=p(95017),A=p(96308),C=p(30671),M=p(81591),m=p(9244),b=p(94650),D=p(94364),v=p(36895),R=p(56709),B=p(98380),w=p(10266),L=p(18750),O=p(34198),q=p(55660),te=p(89383);let z=(()=>{class be{transform(ce){return ce.find(ot=>"mail"===ot.friendlyName)?.value??""}}return be.\u0275fac=function(ce){return new(ce||be)},be.\u0275pipe=b.Yjl({name:"getMailFromAttributes",type:be,pure:!0}),be})();var ie=p(34447),Te=p(8231);function pe(be,Z){1&be&&b._UZ(0,"th",18)}const Le=function(be){return{name:be}};function T(be,Z){if(1&be){const ce=b.EpF();b.TgZ(0,"td",19)(1,"span",20),b.ALo(2,"translate"),b.ALo(3,"customTranslate"),b.TgZ(4,"mat-checkbox",21),b.NdJ("change",function(ot){const ut=b.CHM(ce).$implicit,tt=b.oxw();return b.KtG(ot?tt.selection.toggle(ut):null)})("click",function(ot){return ot.stopPropagation()}),b.ALo(5,"translate"),b.ALo(6,"checkboxLabel"),b.qZA()()()}if(2&be){const ce=Z.$implicit,xe=b.oxw();b.xp6(1),b.s9C("matTooltip",b.lcZ(2,6,b.lcZ(3,8,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.CANNOT_BE_DELETED_TOOLTIP"))),b.Q6J("matTooltipPosition","above")("matTooltipDisabled",!ce.userExtSource.persistent),b.xp6(3),b.Q6J("aria-label",b.xi3(5,10,b.lcZ(6,13,xe.selection.isSelected(ce)),b.VKq(15,Le,ce.userExtSource.extSource.name)))("checked",xe.selection.isSelected(ce))("disabled",ce.userExtSource.persistent)}}function W(be,Z){1&be&&(b.TgZ(0,"th",22),b._uU(1),b.ALo(2,"translate"),b.ALo(3,"customTranslate"),b.qZA()),2&be&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,b.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.ID"))," "))}function F(be,Z){if(1&be&&(b.TgZ(0,"td",23),b._uU(1),b.qZA()),2&be){const ce=Z.$implicit;b.xp6(1),b.hij(" ",ce.userExtSource.id," ")}}function V(be,Z){1&be&&(b.TgZ(0,"th",24),b._uU(1),b.ALo(2,"translate"),b.ALo(3,"customTranslate"),b.qZA()),2&be&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,b.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.MAIL"))," "))}function ee(be,Z){if(1&be&&(b.TgZ(0,"td",23),b._uU(1),b.ALo(2,"getMailFromAttributes"),b.qZA()),2&be){const ce=Z.$implicit;b.xp6(1),b.hij(" ",b.lcZ(2,1,ce.attributes)," ")}}function Q(be,Z){if(1&be&&(b.TgZ(0,"th",22),b._uU(1),b.ALo(2,"translate"),b.ALo(3,"customTranslate"),b.qZA()),2&be){const ce=b.oxw();b.xp6(1),b.hij(" ",b.lcZ(2,1,b.lcZ(3,3,ce.extSourceNameHeader?ce.extSourceNameHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.EXT_SOURCE_NAME"))," ")}}function Ee(be,Z){if(1&be&&(b.TgZ(0,"td",23),b._uU(1),b.qZA()),2&be){const ce=Z.$implicit;b.xp6(1),b.hij(" ",ce.userExtSource.extSource.name," ")}}function ge(be,Z){if(1&be&&(b.TgZ(0,"th",22),b._uU(1),b.ALo(2,"translate"),b.ALo(3,"customTranslate"),b.qZA()),2&be){const ce=b.oxw();b.xp6(1),b.hij(" ",b.lcZ(2,1,b.lcZ(3,3,ce.loginHeader?ce.loginHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LOGIN"))," ")}}function ve(be,Z){if(1&be&&(b.TgZ(0,"td",23),b._uU(1),b.qZA()),2&be){const ce=Z.$implicit;b.xp6(1),b.hij(" ",ce.userExtSource.login," ")}}function De(be,Z){1&be&&(b.TgZ(0,"th",22),b._uU(1),b.ALo(2,"translate"),b.ALo(3,"customTranslate"),b.qZA()),2&be&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,b.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LAST_ACCESS"))," "))}function he(be,Z){if(1&be&&(b.TgZ(0,"td",25),b._uU(1),b.ALo(2,"date"),b.qZA()),2&be){const ce=Z.$implicit;b.xp6(1),b.hij(" ",b.xi3(2,1,ce.userExtSource.lastAccess,"d.M.y H:mm:ss")," ")}}function Ye(be,Z){1&be&&b._UZ(0,"tr",26)}const Be=function(be,Z){return["/admin","users",be,"identities",Z]};function se(be,Z){if(1&be&&b._UZ(0,"tr",27),2&be){const ce=Z.$implicit,xe=b.oxw();b.ekj("cursor-pointer",!xe.disableRouting)("disable-outline",xe.disableRouting),b.Q6J("perunWebAppsMiddleClickRouterLink",xe.disableRouting?null:b.WLB(6,Be,xe.userId.toString(),ce.userExtSource.id.toString()))("routerLink",xe.disableRouting?null:b.WLB(9,Be,xe.userId,ce.userExtSource.id))}}function le(be,Z){1&be&&(b.TgZ(0,"perun-web-apps-alert",28),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&be&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function N(be,Z){1&be&&(b.TgZ(0,"perun-web-apps-alert",28),b._uU(1),b.ALo(2,"translate"),b.ALo(3,"customTranslate"),b.qZA()),2&be&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,b.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.NO_IDENTITIES")),"\n"))}let k=(()=>{class be{constructor(ce,xe){this.route=ce,this.authResolver=xe,this.selection=new e.Ov,this.filterValue="",this.displayedColumns=["select","id","mail","extSourceName","login","lastAccess"],this.pageSizeOptions=m.f7}set matSort(ce){this.sort=ce,this.setDataSource()}static getDataForColumn(ce,xe){switch(xe){case"id":return ce.userExtSource.id.toString();case"mail":{const ot=ce.attributes.find(Fe=>"mail"===Fe.friendlyName);return ot?ot.value:"N/A"}case"extSourceName":return ce.userExtSource.extSource.name;case"login":return ce.userExtSource.login;case"lastAccess":return ce.userExtSource.lastAccess.split(".")[0];default:return ce[xe]}}ngOnInit(){this.disableRouting||this.route.parent.params.subscribe(ce=>{this.userId=Number(ce.userId)}),this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(ce=>"id"!==ce)),this.dataSource=new C.by(this.userExtSources),this.setDataSource()}exportAllData(ce){(0,m.O6)((0,m.Xn)(this.dataSource.filteredData,this.displayedColumns,be.getDataForColumn),ce)}exportDisplayedData(ce){const xe=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,ot=xe+this.dataSource.paginator.pageSize;(0,m.O6)((0,m.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(xe,ot),this.displayedColumns,be.getDataForColumn),ce)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(ce,xe)=>(0,m.Sd)(ce,xe,this.displayedColumns,be.getDataForColumn),this.dataSource.sortData=(ce,xe)=>(0,m.pR)(ce,xe,be.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}}return be.\u0275fac=function(ce){return new(ce||be)(b.Y36(D.gz),b.Y36(M.x4))},be.\u0275cmp=b.Xpm({type:be,selectors:[["perun-web-apps-user-ext-sources-list"]],viewQuery:function(ce,xe){if(1&ce&&(b.Gf(m.l9,7),b.Gf(A.YE,7)),2&ce){let ot;b.iGM(ot=b.CRH())&&(xe.child=ot.first),b.iGM(ot=b.CRH())&&(xe.matSort=ot.first)}},inputs:{userExtSources:"userExtSources",selection:"selection",filterValue:"filterValue",displayedColumns:"displayedColumns",tableId:"tableId",extSourceNameHeader:"extSourceNameHeader",loginHeader:"loginHeader",disableRouting:"disableRouting"},features:[b.TTD],decls:25,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","lastAccess","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","truncate","mat-cell","",4,"matCellDef"],["matColumnDef","mail"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","extSourceName"],["matColumnDef","login"],["matColumnDef","lastAccess",1,"pl-3"],["mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["mat-cell","",1,"static-column-size","align-checkbox"],[3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"truncate"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(ce,xe){1&ce&&(b.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),b.NdJ("exportDisplayedData",function(Fe){return xe.exportDisplayedData(Fe)})("exportAllData",function(Fe){return xe.exportAllData(Fe)}),b.TgZ(2,"table",2),b.ynx(3,3),b.YNc(4,pe,1,0,"th",4),b.YNc(5,T,7,17,"td",5),b.BQk(),b.ynx(6,6),b.YNc(7,W,4,5,"th",7),b.YNc(8,F,2,1,"td",8),b.BQk(),b.ynx(9,9),b.YNc(10,V,4,5,"th",10),b.YNc(11,ee,3,3,"td",8),b.BQk(),b.ynx(12,11),b.YNc(13,Q,4,5,"th",7),b.YNc(14,Ee,2,1,"td",8),b.BQk(),b.ynx(15,12),b.YNc(16,ge,4,5,"th",7),b.YNc(17,ve,2,1,"td",8),b.BQk(),b.ynx(18,13),b.YNc(19,De,4,5,"th",7),b.YNc(20,he,3,4,"td",14),b.BQk(),b.YNc(21,Ye,1,0,"tr",15),b.YNc(22,se,1,12,"tr",16),b.qZA()()(),b.YNc(23,le,3,3,"perun-web-apps-alert",17),b.YNc(24,N,4,5,"perun-web-apps-alert",17)),2&ce&&(b.Q6J("hidden",0===xe.userExtSources.length||0===xe.dataSource.filteredData.length),b.xp6(1),b.Q6J("tableId",xe.tableId)("dataLength",xe.dataSource.filteredData.length)("pageSizeOptions",xe.pageSizeOptions),b.xp6(1),b.Q6J("dataSource",xe.dataSource),b.xp6(19),b.Q6J("matHeaderRowDef",xe.displayedColumns),b.xp6(1),b.Q6J("matRowDefColumns",xe.displayedColumns),b.xp6(1),b.Q6J("ngIf",0===xe.dataSource.filteredData.length&&0!==xe.userExtSources.length),b.xp6(1),b.Q6J("ngIf",0===xe.userExtSources.length))},dependencies:[v.O5,R.oG,C.BZ,C.fO,C.as,C.w1,C.Dz,C.nj,C.ge,C.ev,C.XQ,C.Gk,D.rH,A.YE,A.nU,B.w,w.gM,L.l,O.Y,q.Q,v.uU,te.X$,z,ie.a,Te.G],styles:[".static-column-size[_ngcontent-%COMP%]{width:80px!important}.truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;max-width:10rem}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:.25rem!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.disable-outline[_ngcontent-%COMP%]{outline:none!important}"]}),be})()},74250:(Xe,ue,p)=>{"use strict";p.d(ue,{S:()=>m});var e=p(94650),A=p(9244),C=p(89593),M=p(89383);let m=(()=>{class b{constructor(){this.disableAutoSelect=!1,this.userSelected=new e.vpe,this.userFullNameFunction=A.bD}ngOnInit(){this.users=this.users.sort(A.fx)}}return b.\u0275fac=function(v){return new(v||b)},b.\u0275cmp=e.Xpm({type:b,selectors:[["perun-web-apps-user-search-select"]],inputs:{users:"users",disableAutoSelect:"disableAutoSelect"},outputs:{userSelected:"userSelected"},decls:4,vars:13,consts:[[3,"entities","disableAutoSelect","searchFunction","mainTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(v,R){1&v&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(w){return R.userSelected.emit(w)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&v&&e.Q6J("entities",R.users)("disableAutoSelect",R.disableAutoSelect)("searchFunction",R.userFullNameFunction)("mainTextFunction",R.userFullNameFunction)("selectPlaceholder",e.lcZ(1,7,"SHARED_LIB.PERUN.COMPONENTS.USER_SEARCH_SELECT.SELECT_USER"))("findPlaceholder",e.lcZ(2,9,"SHARED_LIB.PERUN.COMPONENTS.USER_SEARCH_SELECT.FIND_USER"))("noEntriesText",e.lcZ(3,11,"SHARED_LIB.PERUN.COMPONENTS.USER_SEARCH_SELECT.NO_USER_FOUND"))},dependencies:[C.i,M.X$]}),b})()},11447:(Xe,ue,p)=>{"use strict";p.d(ue,{M:()=>o});var e=p(61744),A=p(95017),C=p(9244),M=p(96308),m=p(81591),b=p(56451),D=p(18505),v=p(21029),R=p(19516),B=p(94650),w=p(10036),L=p(65412),O=p(89383),q=p(36895),te=p(56709),z=p(30671),ie=p(94364),Te=p(51572),pe=p(98380),Le=p(97392),T=p(10266),W=p(18750),F=p(34198),V=p(55660),ee=p(34447);function Q(s,l){1&s&&(B.TgZ(0,"span")(1,"mat-icon",1),B._uU(2,"priority_high"),B.qZA(),B.TgZ(3,"span"),B._uU(4),B.ALo(5,"translate"),B.ALo(6,"customTranslate"),B.qZA()()),2&s&&(B.xp6(4),B.hij(" ",B.lcZ(5,1,B.lcZ(6,3,"CONSENTS.STATUS_UNSIGNED")),""))}function Ee(s,l){1&s&&(B.TgZ(0,"span")(1,"mat-icon",1),B._uU(2,"close"),B.qZA(),B.TgZ(3,"span"),B._uU(4),B.ALo(5,"translate"),B.ALo(6,"customTranslate"),B.qZA()()),2&s&&(B.xp6(4),B.hij(" ",B.lcZ(5,1,B.lcZ(6,3,"CONSENTS.STATUS_REVOKED")),""))}function ge(s,l){1&s&&(B.TgZ(0,"span")(1,"mat-icon",2),B._uU(2,"check"),B.qZA(),B.TgZ(3,"span"),B._uU(4),B.ALo(5,"translate"),B.ALo(6,"customTranslate"),B.qZA()()),2&s&&(B.xp6(4),B.hij(" ",B.lcZ(5,1,B.lcZ(6,3,"CONSENTS.STATUS_GRANTED")),""))}let ve=(()=>{class s{}return s.\u0275fac=function(d){return new(d||s)},s.\u0275cmp=B.Xpm({type:s,selectors:[["perun-web-apps-consent-status"]],inputs:{consentStatus:"consentStatus"},decls:3,vars:3,consts:[[4,"ngIf"],["color","warn"],["color","accent"]],template:function(d,c){1&d&&(B.YNc(0,Q,7,5,"span",0),B.YNc(1,Ee,7,5,"span",0),B.YNc(2,ge,7,5,"span",0)),2&d&&(B.Q6J("ngIf","UNSIGNED"===c.consentStatus),B.xp6(1),B.Q6J("ngIf","REVOKED"===c.consentStatus),B.xp6(1),B.Q6J("ngIf","GRANTED"===c.consentStatus))},dependencies:[q.O5,Le.Hw,O.X$,ee.a],styles:["mat-icon[_ngcontent-%COMP%]{vertical-align:bottom}"]}),s})();var De=p(31359),he=p(16119),Ye=p(7598),Be=p(9954),se=p(9185),le=p(8231),N=p(14849),k=p(10293);function be(s,l){1&s&&(B.TgZ(0,"div",19),B._UZ(1,"mat-spinner",20),B.qZA())}function Z(s,l){if(1&s){const d=B.EpF();B.TgZ(0,"mat-checkbox",26),B.NdJ("change",function(S){B.CHM(d);const J=B.oxw(3);return B.KtG(S?J.masterToggle():null)}),B.ALo(1,"translate"),B.ALo(2,"masterCheckboxLabel"),B.qZA()}if(2&s){const d=B.oxw(2).ngIf,c=B.oxw();B.Q6J("aria-label",B.lcZ(1,3,B.lcZ(2,5,d.all)))("checked",c.selection.hasValue()&&d.all)("indeterminate",c.selection.hasValue()&&!d.all)}}function ce(s,l){if(1&s&&(B.TgZ(0,"th",24),B.YNc(1,Z,3,7,"mat-checkbox",25),B.qZA()),2&s){const d=B.oxw(2);B.xp6(1),B.Q6J("ngIf",d.selection.isMultipleSelection())}}const xe=function(s){return{name:s}};function ot(s,l){if(1&s){const d=B.EpF();B.TgZ(0,"td",27)(1,"mat-checkbox",28),B.NdJ("change",function(S){const ht=B.CHM(d).$implicit,ze=B.oxw(2);return B.KtG(S?ze.selection.toggle(ht):null)})("click",function(S){return S.stopPropagation()}),B.ALo(2,"translate"),B.ALo(3,"checkboxLabel"),B.ALo(4,"userFullName"),B.qZA()()}if(2&s){const d=l.$implicit,c=B.oxw(2);B.xp6(1),B.Q6J("aria-label",B.xi3(2,2,B.lcZ(3,5,c.selection.isSelected(d)),B.VKq(9,xe,B.lcZ(4,7,d))))("checked",c.selection.isSelected(d))}}function Fe(s,l){1&s&&(B.ynx(0,21),B.YNc(1,ce,2,1,"th",22),B.YNc(2,ot,5,11,"td",23),B.BQk())}function ut(s,l){1&s&&B._UZ(0,"th",29)}function tt(s,l){1&s&&(B.TgZ(0,"mat-icon",33),B.ALo(1,"translate"),B._uU(2," account_circle "),B.qZA()),2&s&&B.s9C("matTooltip",B.lcZ(1,1,"MANAGERS_LIST.PERSON"))}function vt(s,l){if(1&s&&(B._UZ(0,"mat-icon",34),B.ALo(1,"translate")),2&s){const d=B.oxw(2);B.s9C("matTooltip",B.lcZ(1,2,"MANAGERS_LIST.SERVICE")),B.Q6J("svgIcon",d.svgIcon)}}function X(s,l){if(1&s&&(B.TgZ(0,"td",30),B.YNc(1,tt,3,3,"mat-icon",31),B.YNc(2,vt,2,4,"mat-icon",32),B.qZA()),2&s){const d=l.$implicit;B.xp6(1),B.Q6J("ngIf",!d.serviceUser),B.xp6(1),B.Q6J("ngIf",d.serviceUser)}}function nt(s,l){1&s&&(B.TgZ(0,"th",35),B._uU(1),B.ALo(2,"translate"),B.qZA()),2&s&&(B.xp6(1),B.hij(" ",B.lcZ(2,1,"MANAGERS_LIST.ID")," "))}function Ae(s,l){if(1&s&&(B.TgZ(0,"td",30),B._uU(1),B.qZA()),2&s){const d=l.$implicit;B.xp6(1),B.hij(" ",d.id," ")}}function ye(s,l){1&s&&(B.TgZ(0,"th",35),B._uU(1),B.ALo(2,"translate"),B.qZA()),2&s&&(B.xp6(1),B.hij(" ",B.lcZ(2,1,"MANAGERS_LIST.NAME")," "))}function _e(s,l){if(1&s&&(B.TgZ(0,"td",36),B.ALo(1,"lowercase"),B._uU(2),B.ALo(3,"userFullName"),B.qZA()),2&s){const d=l.$implicit;B.Q2q("data-cy","",B.lcZ(1,2,d.firstName),"-td"),B.xp6(2),B.hij(" ",B.lcZ(3,4,d)," ")}}function Se(s,l){1&s&&(B.TgZ(0,"th",29),B._uU(1),B.ALo(2,"translate"),B.qZA()),2&s&&(B.xp6(1),B.Oqu(B.lcZ(2,1,"MANAGERS_LIST.ORGANIZATION")))}function Ne(s,l){if(1&s&&(B.TgZ(0,"td",36),B._uU(1),B.ALo(2,"userVo"),B.qZA()),2&s){const d=l.$implicit;B.xp6(1),B.Oqu(B.lcZ(2,1,d))}}function Ce(s,l){1&s&&(B.TgZ(0,"th",29),B._uU(1),B.ALo(2,"translate"),B.qZA()),2&s&&(B.xp6(1),B.Oqu(B.lcZ(2,1,"MANAGERS_LIST.EMAIL")))}function fe(s,l){if(1&s&&(B.TgZ(0,"td",36),B._uU(1),B.ALo(2,"userEmail"),B.qZA()),2&s){const d=l.$implicit;B.xp6(1),B.Oqu(B.lcZ(2,1,d))}}function r(s,l){1&s&&(B.TgZ(0,"th",29),B._uU(1),B.ALo(2,"translate"),B.qZA()),2&s&&(B.xp6(1),B.Oqu(B.lcZ(2,1,"MANAGERS_LIST.LOGINS")))}function u(s,l){if(1&s&&(B.TgZ(0,"td",36),B._uU(1),B.ALo(2,"userLogins"),B.qZA()),2&s){const d=l.$implicit;B.xp6(1),B.Oqu(B.lcZ(2,1,d))}}function _(s,l){1&s&&(B.TgZ(0,"th",29),B._uU(1),B.ALo(2,"translate"),B.qZA()),2&s&&(B.xp6(1),B.hij(" ",B.lcZ(2,1,"CONSENTS.STATUS")," "))}function E(s,l){if(1&s&&(B.TgZ(0,"td",36),B._UZ(1,"perun-web-apps-consent-status",37),B.ALo(2,"consentStatusIcon"),B.qZA()),2&s){const d=l.$implicit,c=B.oxw();B.xp6(1),B.Q6J("consentStatus",B.xi3(2,1,d,c.consents))}}function h(s,l){1&s&&B._UZ(0,"tr",38)}const a=function(s){return["/admin/users",s]};function i(s,l){if(1&s&&B._UZ(0,"tr",39),2&s){const d=l.$implicit,c=B.oxw();B.ekj("cursor-pointer",!c.disableRouting),B.Q6J("routerLink",c.disableRouting?null:B.VKq(4,a,d.id))("perunWebAppsMiddleClickRouterLink",c.disableRouting?null:B.VKq(6,a,d.id))}}function t(s,l){1&s&&(B.TgZ(0,"perun-web-apps-alert",40),B._uU(1),B.ALo(2,"translate"),B.qZA()),2&s&&(B.Q6J("alert_type","warn"),B.xp6(1),B.hij(" ",B.lcZ(2,2,"SHARED_LIB.UI.ALERTS.NO_USERS"),"\n"))}const n=function(s){return{all:s}};let o=(()=>{class s{constructor(d,c,S,J,ht,ze,et,ne){this.authResolver=d,this.consentService=c,this.tableCheckbox=S,this.tableConfigService=J,this.dynamicPaginatingService=ht,this.dialog=ze,this.consentPipe=et,this.translate=ne,this.selection=new A.Ov(!0,[]),this.displayedColumns=["select","user","id","name","email","logins","organization"],this.disableRouting=!1,this.searchString="",this.attrNames=[],this.includeConsents=!1,this.svgIcon="perun-service-identity-black",this.pageSizeOptions=C.f7}static getExportDataForColumn(d,c){switch(c){case"id":return d.id.toString();case"user":return d.serviceUser?"service-user":"user";case"name":return d?(0,C.bD)(d):"";case"organization":return(0,C.OV)(d);case"email":return(0,C.kN)(d);case"logins":return(0,C.lt)(d);case"consentStatus":return d.consent;default:return""}}ngAfterViewInit(){this.sort.sortChange.subscribe(()=>this.child.paginator.pageIndex=0),(0,b.T)(this.sort.sortChange,this.child.paginator.page).pipe((0,D.b)(()=>this.loadUsersPage())).subscribe()}ngOnInit(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(d=>"id"!==d)),this.includeConsents&&this.displayedColumns.push("consentStatus"),this.dataSource=new m.Hy(this.dynamicPaginatingService,this.authResolver),this.loadConsents(),this.dataSource.loadUsers(this.attrNames,this.tableConfigService.getTablePageSize(this.tableId),0,"ASCENDING","NAME",this.searchString,this.withoutVo,this.facilityId,this.voId,this.resourceId,this.serviceId,this.onlyAllowed,this.consentStatuses)}ngOnChanges(){this.dataSource&&(this.child.paginator.pageIndex=0,this.loadUsersPage())}masterToggle(){this.isAllSelected()?this.selection.clear():this.dataSource.getData().forEach(d=>this.selection.select(d))}isAllSelected(){return this.selection.selected.length===this.dataSource.getData().length}loadUsersPage(){this.dataSource.loadUsers(this.attrNames,this.child.paginator.pageSize,this.child.paginator.pageIndex,"asc"===this.sort.direction?"ASCENDING":"DESCENDING","name"===this.sort.active?"NAME":"ID",this.searchString,this.withoutVo,this.facilityId,this.voId,this.resourceId,this.serviceId,this.onlyAllowed,this.consentStatuses)}loadConsents(){this.includeConsents&&this.consentService.getConsentHubByFacility(this.facilityId).subscribe(d=>this.consentService.getConsentsForConsentHub(d.id).subscribe(c=>this.consents=c))}exportDisplayedData(d){(0,C.O6)((0,C.Xn)(this.getConsentsForUsers(this.dataSource.getData()),this.displayedColumns,s.getExportDataForColumn),d)}exportAllData(d){const c="asc"===this.sort.direction?"ASCENDING":"DESCENDING",S="name"===this.sort.active?"NAME":"ID",J=(0,C.kZ)();J.width="300px";const ht=this.dialog.open(v.QQ,J);this.dataSource.getAllUsers(this.attrNames,c,this.child.paginator.length,S,this.searchString,this.withoutVo,this.facilityId,this.voId,this.resourceId,this.serviceId,this.onlyAllowed,this.consentStatuses).subscribe(ze=>{ht.close(),(0,C.O6)((0,C.Xn)(this.getConsentsForUsers(ze),this.displayedColumns,s.getExportDataForColumn),d)})}getConsentsForUsers(d){const c=[];return this.includeConsents?(d.forEach(S=>{const J=S;J.consent=this.translate.instant("CONSENTS.STATUS_"+this.consentPipe.transform(S,this.consents)),c.push(J)}),c):d}}return s.\u0275fac=function(d){return new(d||s)(B.Y36(m.x4),B.Y36(e.WY),B.Y36(m.UA),B.Y36(w.dB),B.Y36(m.ly),B.Y36(L.uw),B.Y36(R.m2),B.Y36(O.sK))},s.\u0275cmp=B.Xpm({type:s,selectors:[["perun-web-apps-users-dynamic-list"]],viewQuery:function(d,c){if(1&d&&(B.Gf(C.l9,7),B.Gf(M.YE,5)),2&d){let S;B.iGM(S=B.CRH())&&(c.child=S.first),B.iGM(S=B.CRH())&&(c.sort=S.first)}},inputs:{selection:"selection",displayedColumns:"displayedColumns",tableId:"tableId",disableRouting:"disableRouting",searchString:"searchString",attrNames:"attrNames",withoutVo:"withoutVo",updateTable:"updateTable",facilityId:"facilityId",voId:"voId",resourceId:"resourceId",serviceId:"serviceId",onlyAllowed:"onlyAllowed",consentStatuses:"consentStatuses",includeConsents:"includeConsents"},features:[B._Bn([R.m2]),B.TTD],decls:33,vars:21,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["class","spinner-container",4,"ngIf"],["mat-table","","matSort","","matSortActive","name","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","user"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","organization"],["matColumnDef","email"],["matColumnDef","logins"],["matColumnDef","consentStatus"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","routerLink","perunWebAppsMiddleClickRouterLink",4,"matRowDef","matRowDefColumns"],[3,"alert_type",4,"ngIf"],[1,"spinner-container"],[1,"ml-auto","mr-auto"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change",4,"ngIf"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell",""],["mat-cell","",1,"static-column-size"],["class","align-bottom",3,"matTooltip",4,"ngIf"],["class","align-bottom",3,"matTooltip","svgIcon",4,"ngIf"],[1,"align-bottom",3,"matTooltip"],[1,"align-bottom",3,"matTooltip","svgIcon"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"consentStatus"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"routerLink","perunWebAppsMiddleClickRouterLink"],[3,"alert_type"]],template:function(d,c){1&d&&(B.TgZ(0,"div",0),B.ALo(1,"async"),B.TgZ(2,"perun-web-apps-table-wrapper",1),B.NdJ("exportDisplayedData",function(J){return c.exportDisplayedData(J)})("exportAllData",function(J){return c.exportAllData(J)}),B.YNc(3,be,2,0,"div",2),B.ALo(4,"async"),B.TgZ(5,"table",3),B.YNc(6,Fe,3,0,"ng-container",4),B.ALo(7,"isAllSelected"),B.ynx(8,5),B.YNc(9,ut,1,0,"th",6),B.YNc(10,X,3,2,"td",7),B.BQk(),B.ynx(11,8),B.YNc(12,nt,3,3,"th",9),B.YNc(13,Ae,2,1,"td",7),B.BQk(),B.ynx(14,10),B.YNc(15,ye,3,3,"th",9),B.YNc(16,_e,4,6,"td",11),B.BQk(),B.ynx(17,12),B.YNc(18,Se,3,3,"th",6),B.YNc(19,Ne,3,3,"td",11),B.BQk(),B.ynx(20,13),B.YNc(21,Ce,3,3,"th",6),B.YNc(22,fe,3,3,"td",11),B.BQk(),B.ynx(23,14),B.YNc(24,r,3,3,"th",6),B.YNc(25,u,3,3,"td",11),B.BQk(),B.ynx(26,15),B.YNc(27,_,3,3,"th",6),B.YNc(28,E,3,4,"td",11),B.BQk(),B.YNc(29,h,1,0,"tr",16),B.YNc(30,i,1,8,"tr",17),B.qZA()()(),B.YNc(31,t,3,4,"perun-web-apps-alert",18),B.ALo(32,"async")),2&d&&(B.Q6J("hidden",0===c.dataSource.allObjectCount&&!1===B.lcZ(1,10,c.dataSource.loading$)),B.xp6(2),B.Q6J("tableId",c.tableId)("dataLength",c.dataSource.allObjectCount)("pageSizeOptions",c.pageSizeOptions),B.xp6(1),B.Q6J("ngIf",B.lcZ(4,12,c.dataSource.loading$)),B.xp6(2),B.Q6J("dataSource",c.dataSource),B.xp6(1),B.Q6J("ngIf",B.VKq(19,n,B.xi3(7,14,c.dataSource,c.selection.selected.length))),B.xp6(23),B.Q6J("matHeaderRowDef",c.displayedColumns),B.xp6(1),B.Q6J("matRowDefColumns",c.displayedColumns),B.xp6(1),B.Q6J("ngIf",0===c.dataSource.allObjectCount&&!1===B.lcZ(32,17,c.dataSource.loading$)))},dependencies:[q.O5,te.oG,z.BZ,z.fO,z.as,z.w1,z.Dz,z.nj,z.ge,z.ev,z.XQ,z.Gk,ie.rH,M.YE,M.nU,Te.Ou,pe.w,Le.Hw,T.gM,W.l,F.Y,ve,V.Q,q.Ov,q.i8,O.X$,De.d,he.S,Ye.g,Be.Z,se.I,le.G,N.r,k.m],styles:[".italic_font[_ngcontent-%COMP%]{font-style:italic}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),s})()},62707:(Xe,ue,p)=>{"use strict";p.d(ue,{M:()=>m});var e=p(94650),A=p(9244),C=p(89593),M=p(89383);let m=(()=>{class b{constructor(){this.disableAutoSelect=!1,this.voSelected=new e.vpe,this.nameFunction=v=>v.name,this.shortNameFunction=v=>v.shortName,this.searchFunction=v=>v.name+v.shortName+String(v.id)}ngOnChanges(){this.vos.sort(A.aC),!this.vo&&!this.disableAutoSelect&&(this.vo=this.vos[0])}}return b.\u0275fac=function(v){return new(v||b)},b.\u0275cmp=e.Xpm({type:b,selectors:[["perun-web-apps-vo-search-select"]],inputs:{vo:"vo",vos:"vos",disableAutoSelect:"disableAutoSelect"},outputs:{voSelected:"voSelected"},features:[e.TTD],decls:4,vars:15,consts:[[3,"entity","entities","disableAutoSelect","searchFunction","mainTextFunction","secondaryTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(v,R){1&v&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(w){return R.voSelected.emit(w)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&v&&e.Q6J("entity",R.vo)("entities",R.vos)("disableAutoSelect",R.disableAutoSelect)("searchFunction",R.searchFunction)("mainTextFunction",R.nameFunction)("secondaryTextFunction",R.shortNameFunction)("selectPlaceholder",e.lcZ(1,9,"SHARED_LIB.PERUN.COMPONENTS.VO_SEARCH_SELECT.SELECT_VO"))("findPlaceholder",e.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.VO_SEARCH_SELECT.FIND_VO"))("noEntriesText",e.lcZ(3,13,"SHARED_LIB.PERUN.COMPONENTS.VO_SEARCH_SELECT.NO_VO_FOUND"))},dependencies:[C.i,M.X$]}),b})()},87831:(Xe,ue,p)=>{"use strict";p.d(ue,{Z:()=>N});var e=p(96308),A=p(30671),C=p(9244),M=p(81591),m=p(94650),b=p(36895),D=p(56709),v=p(94364),R=p(98380),B=p(97392),w=p(18750),L=p(34198),O=p(55660),q=p(10441),te=p(89383),z=p(8231);function ie(k,be){1&k&&m._UZ(0,"th",19)}const Te=function(k){return{name:k}};function pe(k,be){if(1&k){const Z=m.EpF();m.TgZ(0,"td",20)(1,"mat-checkbox",21),m.NdJ("change",function(xe){const Fe=m.CHM(Z).$implicit,ut=m.oxw();return m.KtG(xe?ut.selection.toggle(Fe):null)})("click",function(xe){return xe.stopPropagation()}),m.ALo(2,"translate"),m.ALo(3,"checkboxLabel"),m.qZA()()}if(2&k){const Z=be.$implicit,ce=m.oxw();let xe;m.xp6(1),m.Q6J("aria-label",m.xi3(2,2,m.lcZ(3,5,ce.selection.isSelected(Z)),m.VKq(7,Te,null!==(xe=Z.name)&&void 0!==xe?xe:Z.vo.name)))("checked",ce.selection.isSelected(Z))}}function Le(k,be){1&k&&(m.TgZ(0,"th",22),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&k&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.VOS_LIST.ID")," "))}function T(k,be){if(1&k&&(m.TgZ(0,"td",23),m._uU(1),m.qZA()),2&k){const Z=be.$implicit;let ce;m.xp6(1),m.Oqu(null!==(ce=Z.id)&&void 0!==ce?ce:Z.vo.id)}}function W(k,be){1&k&&m._UZ(0,"th",24)}function F(k,be){if(1&k&&(m.TgZ(0,"td",25),m._UZ(1,"perun-web-apps-recently-viewed-icon",26),m.qZA()),2&k){const Z=be.$implicit,ce=m.oxw();let xe;m.xp6(1),m.Q6J("recentIds",ce.recentIds)("id",null!==(xe=Z.id)&&void 0!==xe?xe:Z.vo.id)}}function V(k,be){1&k&&m._UZ(0,"th",24)}function ee(k,be){1&k&&m._UZ(0,"mat-icon",28),2&k&&m.Q6J("svgIcon","perun-hierarchical-vo")}function Q(k,be){if(1&k&&(m.TgZ(0,"td",25),m.YNc(1,ee,1,1,"mat-icon",27),m.qZA()),2&k){const Z=be.$implicit;m.xp6(1),m.Q6J("ngIf",0!==(null==Z||null==Z.memberVos?null:Z.memberVos.length))}}function Ee(k,be){1&k&&(m.TgZ(0,"th",22),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&k&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.VOS_LIST.SHORTNAME")," "))}function ge(k,be){if(1&k&&(m.TgZ(0,"td",25),m._uU(1),m.qZA()),2&k){const Z=be.$implicit;let ce,xe;m.uIk("data-cy",null!==(ce=Z.shortName)&&void 0!==ce?ce:Z.vo.shortName),m.xp6(1),m.hij(" ",null!==(xe=Z.shortName)&&void 0!==xe?xe:Z.vo.shortName," ")}}function ve(k,be){1&k&&(m.TgZ(0,"th",22),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&k&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.VOS_LIST.NAME")," "))}function De(k,be){if(1&k&&(m.TgZ(0,"td",25),m._uU(1),m.qZA()),2&k){const Z=be.$implicit;let ce;m.xp6(1),m.Oqu(null!==(ce=Z.name)&&void 0!==ce?ce:Z.vo.name)}}function he(k,be){1&k&&m._UZ(0,"tr",29)}const Ye=function(k){return["/organizations",k]};function Be(k,be){if(1&k&&m._UZ(0,"tr",30),2&k){const Z=be.$implicit,ce=m.oxw();let xe,ot;m.ekj("disable-outline",ce.disableRouting)("cursor-pointer",!ce.disableRouting),m.Q6J("perunWebAppsMiddleClickRouterLink",ce.disableRouting?null:m.VKq(6,Ye,null!==(xe=Z.id)&&void 0!==xe?xe:Z.vo.id))("routerLink",ce.disableRouting?null:m.VKq(8,Ye,null!==(ot=Z.id)&&void 0!==ot?ot:Z.vo.id))}}function se(k,be){1&k&&(m.TgZ(0,"perun-web-apps-alert",31),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&k&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function le(k,be){1&k&&(m.TgZ(0,"perun-web-apps-alert",32),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&k&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_ORGANIZATIONS"),"\n"))}let N=(()=>{class k{constructor(Z){this.authResolver=Z,this.vos=[],this.displayedColumns=[],this.disableRouting=!1,this.pageSizeOptions=C.f7,this.getDataForColumnFun=(ce,xe)=>k.getDataForColumn(ce,xe,this.recentIds)}set matSort(Z){this.sort=Z}static getDataForColumn(Z,ce,xe){switch(k.isEnrichedVo(Z)&&(Z=Z.vo),ce){case"id":return Z.id.toString();case"shortName":return Z.shortName;case"name":return Z.name;case"recent":return xe&&xe.includes(Z.id)?"#".repeat(xe.indexOf(Z.id)):Z.name;default:return Z[ce]}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(Z=>"id"!==Z)),this.setDataSource()}exportAllData(Z){(0,C.O6)((0,C.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumnFun),Z)}exportDisplayedData(Z){const ce=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,xe=ce+this.dataSource.paginator.pageSize;(0,C.O6)((0,C.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(ce,xe),this.displayedColumns,this.getDataForColumnFun),Z)}setDataSource(){this.dataSource||(this.dataSource=new A.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(Z,ce)=>(0,C.Sd)(Z,ce,this.displayedColumns,this.getDataForColumnFun),this.dataSource.sortData=(Z,ce)=>(0,C.pR)(Z,ce,this.getDataForColumnFun)),this.dataSource.filter=this.filterValue,this.dataSource.data=this.vos}}return k.isEnrichedVo=be=>void 0!==be.vo,k.\u0275fac=function(Z){return new(Z||k)(m.Y36(M.x4))},k.\u0275cmp=m.Xpm({type:k,selectors:[["perun-web-apps-vos-list"]],viewQuery:function(Z,ce){if(1&Z&&(m.Gf(C.l9,7),m.Gf(e.YE,7)),2&Z){let xe;m.iGM(xe=m.CRH())&&(ce.child=xe.first),m.iGM(xe=m.CRH())&&(ce.matSort=xe.first)}},inputs:{vos:"vos",recentIds:"recentIds",filterValue:"filterValue",selection:"selection",displayedColumns:"displayedColumns",disableRouting:"disableRouting",pageSizeOptions:"pageSizeOptions",tableId:"tableId"},features:[m.TTD],decls:25,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","tableId","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","recent"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","hierarchy"],["matColumnDef","shortName"],["matColumnDef","name"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"disable-outline","cursor-pointer","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn","data-cy","no-filter-result",4,"ngIf"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-header-cell",""],["mat-cell",""],[3,"recentIds","id"],[3,"svgIcon",4,"ngIf"],[3,"svgIcon"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn","data-cy","no-filter-result"],["alert_type","warn"]],template:function(Z,ce){1&Z&&(m.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),m.NdJ("exportDisplayedData",function(ot){return ce.exportDisplayedData(ot)})("exportAllData",function(ot){return ce.exportAllData(ot)}),m.TgZ(2,"table",2),m.ynx(3,3),m.YNc(4,ie,1,0,"th",4),m.YNc(5,pe,4,9,"td",5),m.BQk(),m.ynx(6,6),m.YNc(7,Le,3,3,"th",7),m.YNc(8,T,2,1,"td",8),m.BQk(),m.ynx(9,9),m.YNc(10,W,1,0,"th",10),m.YNc(11,F,2,2,"td",11),m.BQk(),m.ynx(12,12),m.YNc(13,V,1,0,"th",10),m.YNc(14,Q,2,1,"td",11),m.BQk(),m.ynx(15,13),m.YNc(16,Ee,3,3,"th",7),m.YNc(17,ge,2,2,"td",11),m.BQk(),m.ynx(18,14),m.YNc(19,ve,3,3,"th",7),m.YNc(20,De,2,1,"td",11),m.BQk(),m.YNc(21,he,1,0,"tr",15),m.YNc(22,Be,1,10,"tr",16),m.qZA()()(),m.YNc(23,se,3,3,"perun-web-apps-alert",17),m.YNc(24,le,3,3,"perun-web-apps-alert",18)),2&Z&&(m.Q6J("hidden",0===ce.dataSource.filteredData.length||0===ce.vos.length),m.xp6(1),m.Q6J("dataLength",ce.dataSource.filteredData.length)("tableId",ce.tableId)("pageSizeOptions",ce.pageSizeOptions),m.xp6(1),m.Q6J("dataSource",ce.dataSource),m.xp6(19),m.Q6J("matHeaderRowDef",ce.displayedColumns),m.xp6(1),m.Q6J("matRowDefColumns",ce.displayedColumns),m.xp6(1),m.Q6J("ngIf",0===ce.dataSource.filteredData.length&&0!==ce.vos.length),m.xp6(1),m.Q6J("ngIf",0===ce.vos.length))},dependencies:[b.O5,D.oG,A.BZ,A.fO,A.as,A.w1,A.Dz,A.nj,A.ge,A.ev,A.XQ,A.Gk,v.rH,e.YE,e.nU,R.w,B.Hw,w.l,L.Y,q.W,O.Q,te.X$,z.G],styles:[".card[_ngcontent-%COMP%]{border-radius:0!important}.static-column-size[_ngcontent-%COMP%]{width:80px}.disable-outline[_ngcontent-%COMP%]{outline:none!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:.25rem!important}"]}),k})()},21029:(Xe,ue,p)=>{"use strict";p.d(ue,{FJ:()=>Mt,GI:()=>Nr,Wr:()=>ze,r2:()=>ht,gr:()=>He,u3:()=>Zn,Qu:()=>Ei,pf:()=>Be,xF:()=>Ln,hd:()=>Vi,kZ:()=>si,wA:()=>J,rd:()=>Fe,Eg:()=>ot,QQ:()=>kr,Bp:()=>ye,qD:()=>rt,jd:()=>pt,FM:()=>r,jD:()=>W,eK:()=>Qn,Lc:()=>n,h4:()=>Pi,Us:()=>qi,iI:()=>ui,mk:()=>s,Ts:()=>an});var e=p(36895),A=p(89383),C=p(30671),M=p(65412),m=p(4859),b=p(59549),D=p(24006),v=p(284),R=p(51572),B=p(71948),w=p(99602),L=p(64425),O=p(97392),q=p(19516),te=p(63189),z=p(94364),ie=p(35423),Te=p(84385),pe=p(28499),Le=p(60900),T=p(94650);let W=(()=>{class lt{}return lt.\u0275fac=function($e){return new($e||lt)},lt.\u0275mod=T.oAB({type:lt}),lt.\u0275inj=T.cJS({imports:[e.ez,A.aw,C.p0,M.Is,m.ot,b.lN,D.u5,v.c,R.Cq,B.Fk,w.FA,D.UX,L.Iq,O.Ps,q.d4,te.r,z.Bz,ie.dp,Te.LD,pe.E3,Le.C]}),lt})();var F=p(61744),V=p(81591),ee=p(3238),Q=p(20551);function Ee(lt,Vt){1<&&T._UZ(0,"mat-spinner",6)}function ge(lt,Vt){if(1<&&(T.TgZ(0,"mat-option",17),T._uU(1),T.ALo(2,"memberStatus"),T.qZA()),2<){const $e=Vt.$implicit;T.Q6J("value",$e),T.xp6(1),T.Oqu(T.lcZ(2,2,$e))}}function ve(lt,Vt){if(1<){const $e=T.EpF();T.TgZ(0,"mat-form-field",14)(1,"mat-label"),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.TgZ(4,"mat-select",15),T.NdJ("selectionChange",function(Wt){T.CHM($e);const dn=T.oxw(3);return T.KtG(dn.changeStatus(Wt))}),T.YNc(5,ge,3,4,"mat-option",16),T.qZA()()}if(2<){const $e=T.oxw(3);T.xp6(2),T.Oqu(T.lcZ(3,2,"DIALOGS.CHANGE_STATUS.SELECT_STATUS")),T.xp6(3),T.Q6J("ngForOf",$e.allStatuses)}}function De(lt,Vt){if(1<&&(T.TgZ(0,"div",8),T._uU(1),T.ALo(2,"translate"),T.YNc(3,ve,6,4,"mat-form-field",13),T.qZA()),2<){const $e=T.oxw(2);T.xp6(1),T.hij(" ",T.lcZ(2,2,"DIALOGS.CHANGE_STATUS.NEW_STATUS")," "),T.xp6(2),T.Q6J("ngIf",!$e.loading)}}function he(lt,Vt){if(1<&&(T.TgZ(0,"div",8),T._uU(1),T.ALo(2,"translate"),T.ALo(3,"memberStatus"),T.qZA()),2<){const $e=T.oxw(2);T.xp6(1),T.AsE(" ",T.lcZ(2,2,"DIALOGS.CHANGE_STATUS.NEW_STATUS")," ",T.lcZ(3,4,$e.allStatuses[0])," ")}}function Ye(lt,Vt){if(1<&&(T.TgZ(0,"div",7)(1,"div",8),T._uU(2),T.ALo(3,"translate"),T.ALo(4,"memberStatus"),T.qZA(),T.TgZ(5,"div",9),T._uU(6),T.qZA(),T.YNc(7,De,4,4,"div",10),T.YNc(8,he,4,6,"div",10),T.TgZ(9,"div",11),T._UZ(10,"i",12),T.qZA()()),2<){const $e=T.oxw();T.xp6(2),T.AsE(" ",T.lcZ(3,6,"DIALOGS.CHANGE_STATUS.CURRENT_STATUS")," ",T.lcZ(4,8,$e.actualStatus)," "),T.xp6(4),T.Oqu($e.description),T.xp6(1),T.Q6J("ngIf",$e.allStatuses.length>1),T.xp6(1),T.Q6J("ngIf",1===$e.allStatuses.length),T.xp6(2),T.Q6J("innerHTML",$e.changeMessage,T.oJD)}}let Be=(()=>{class lt{constructor($e,yt,Wt,dn,An,Yn){this.dialogRef=$e,this.data=yt,this.memberManager=Wt,this.groupsManager=dn,this.notificatorService=An,this.translate=Yn,this.loading=!1,this.allStatuses=["VALID","INVALID","EXPIRED","DISABLED"]}ngOnInit(){switch(this.data.groupId?(this.theme="group-theme",this.actualStatus=this.data.member.groupStatus):(this.theme="vo-theme",this.actualStatus=this.data.member.status),this.changeStatusButton=this.translate.instant("DIALOGS.CHANGE_STATUS.CHANGE_STATUS"),this.changeStatusWithExpButton=this.translate.instant("DIALOGS.CHANGE_STATUS.CHANGE_STATUS_WITH_EXPIRATION"),this.submitButtonText=this.changeStatusButton,this.cancelOrBackButton=this.translate.instant(this.data.backButton?"DIALOGS.CHANGE_STATUS.BACK":"DIALOGS.CHANGE_STATUS.CANCEL"),this.data.groupId?("VALID"===this.actualStatus?(this.allStatuses=["EXPIRED"],this.selectedStatus="EXPIRED"):(this.allStatuses=["VALID"],this.selectedStatus="VALID"),this.submitButtonText=this.changeStatusWithExpButton,this.changeStatusMessage(this.actualStatus,this.selectedStatus)):this.allStatuses="INVALID"===this.actualStatus?["VALID","EXPIRED"]:this.allStatuses.filter($e=>$e!==this.actualStatus),this.actualStatus){case"VALID":this.description=this.translate.instant("DIALOGS.CHANGE_STATUS.VALID_DESCRIPTION");break;case"INVALID":this.description=this.translate.instant("DIALOGS.CHANGE_STATUS.INVALID_DESCRIPTION");break;case"EXPIRED":this.description=this.translate.instant("DIALOGS.CHANGE_STATUS.EXPIRED_DESCRIPTION");break;case"DISABLED":this.description=this.translate.instant("DIALOGS.CHANGE_STATUS.DISABLED_DESCRIPTION");break;default:this.description=""}}changeStatus($e){this.selectedStatus=$e.value,this.submitButtonText=("VALID"===this.actualStatus&&"EXPIRED"===this.selectedStatus||"VALID"===this.actualStatus&&"DISABLED"===this.selectedStatus||"VALID"===this.selectedStatus)&&!this.data.disableChangeExpiration?this.changeStatusWithExpButton:this.changeStatusButton,this.changeStatusMessage(this.actualStatus,this.selectedStatus)}cancel(){this.dialogRef.close()}submit(){this.loading=!0,this.data.groupId?this.groupsManager.setGroupsMemberStatus(this.data.member.id,this.data.groupId,this.selectedStatus).subscribe({next:$e=>{this.translate.get("DIALOGS.CHANGE_STATUS.SUCCESS").subscribe(yt=>{this.notificatorService.showSuccess(yt),this.dialogRef.close($e)})},error:()=>this.loading=!1}):this.memberManager.setStatus(this.data.member.id,this.selectedStatus).subscribe({next:$e=>{this.translate.get("DIALOGS.CHANGE_STATUS.SUCCESS").subscribe(yt=>{this.notificatorService.showSuccess(yt),this.dialogRef.close($e)})},error:()=>this.loading=!1})}changeStatusMessage($e,yt){if("VALID"===$e)switch(yt){case"INVALID":this.changeMessage=this.translate.instant("DIALOGS.CHANGE_STATUS.CHANGE_VALID_TO_INVALID");break;case"EXPIRED":this.changeMessage=this.translate.instant("DIALOGS.CHANGE_STATUS.CHANGE_VALID_TO_EXPIRED");break;case"DISABLED":this.changeMessage=this.translate.instant("DIALOGS.CHANGE_STATUS.CHANGE_VALID_TO_DISABLED");break;default:this.changeMessage=""}else switch(yt){case"VALID":this.changeMessage=this.translate.instant("DIALOGS.CHANGE_STATUS.CHANGE_NO_VALID_TO_VALID");break;case"INVALID":this.changeMessage=this.translate.instant("DIALOGS.CHANGE_STATUS.CHANGE_NO_VALID_TO_INVALID");break;case"EXPIRED":this.changeMessage=this.translate.instant("DIALOGS.CHANGE_STATUS.CHANGE_NO_VALID_TO_EXPIRED");break;case"DISABLED":this.changeMessage=this.translate.instant("DIALOGS.CHANGE_STATUS.CHANGE_NO_VALID_TO_DISABLED");break;default:this.changeMessage=""}}}return lt.\u0275fac=function($e){return new($e||lt)(T.Y36(M.so),T.Y36(M.WI),T.Y36(F.uq),T.Y36(F.ff),T.Y36(V.V6),T.Y36(V.Te))},lt.\u0275cmp=T.Xpm({type:lt,selectors:[["perun-web-apps-change-member-status-dialog"]],decls:11,vars:11,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[1,"font-weight-bold","pb-1"],[1,"text-muted","pb-3"],["class","font-weight-bold pb-1",4,"ngIf"],[1,"text-muted","new-line"],[3,"innerHTML"],["class","mr-2 mt-2",4,"ngIf"],[1,"mr-2","mt-2"],[3,"selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function($e,yt){1&$e&&(T.TgZ(0,"div")(1,"h1",0),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.YNc(4,Ee,1,0,"mat-spinner",1),T.YNc(5,Ye,11,10,"div",2),T.TgZ(6,"div",3)(7,"button",4),T.NdJ("click",function(){return yt.cancel()}),T._uU(8),T.qZA(),T.TgZ(9,"button",5),T.NdJ("click",function(){return yt.submit()}),T._uU(10),T.qZA()()()),2&$e&&(T.Tol(yt.theme),T.xp6(2),T.Oqu(T.lcZ(3,9,"DIALOGS.CHANGE_STATUS.TITLE")),T.xp6(2),T.Q6J("ngIf",yt.loading),T.xp6(1),T.Q6J("ngIf",!yt.loading),T.xp6(3),T.hij(" ",yt.cancelOrBackButton," "),T.xp6(1),T.Q6J("disabled",yt.loading||!yt.selectedStatus),T.xp6(1),T.hij(" ",yt.submitButtonText," "))},dependencies:[e.sg,e.O5,M.uh,M.xY,M.H8,m.lW,b.KE,b.hX,R.Ou,Te.gD,ee.ey,A.X$,Q.l],styles:[".new-line[_ngcontent-%COMP%]{white-space:pre-wrap}"]}),lt})();function se(lt,Vt){1<&&(T.TgZ(0,"h1",7),T._uU(1),T.ALo(2,"translate"),T.qZA()),2<&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_FACILITY")," "))}function le(lt,Vt){1<&&(T.TgZ(0,"h1",7),T._uU(1),T.ALo(2,"translate"),T.qZA()),2<&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_RESOURCE")," "))}function N(lt,Vt){1<&&(T.TgZ(0,"h1",7),T._uU(1),T.ALo(2,"translate"),T.qZA()),2<&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_VO")," "))}function k(lt,Vt){1<&&(T.TgZ(0,"h1",7),T._uU(1),T.ALo(2,"translate"),T.qZA()),2<&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_GROUP")," "))}function be(lt,Vt){1<&&T._UZ(0,"mat-spinner",8)}function Z(lt,Vt){if(1<&&(T.TgZ(0,"mat-form-field"),T._UZ(1,"input",13),T.ALo(2,"translate"),T.qZA()),2<){const $e=T.oxw(2);T.xp6(1),T.MGl("placeholder","",T.lcZ(2,2,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.SHORT_NAME"),":"),T.Q6J("value",$e.shortName)}}function ce(lt,Vt){if(1<&&(T.TgZ(0,"mat-form-field",14),T._UZ(1,"textarea",15),T.ALo(2,"translate"),T.qZA()),2<){const $e=T.oxw(2);T.xp6(1),T.MGl("placeholder","",T.lcZ(2,2,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.DESCRIPTION"),":"),T.Q6J("formControl",$e.descriptionCtrl)}}function xe(lt,Vt){if(1<&&(T.TgZ(0,"div",9),T.YNc(1,Z,3,4,"mat-form-field",10),T.TgZ(2,"mat-form-field"),T._UZ(3,"input",11),T.ALo(4,"translate"),T.TgZ(5,"mat-error"),T._uU(6),T.ALo(7,"translate"),T.qZA()(),T.YNc(8,ce,3,4,"mat-form-field",12),T.qZA()),2<){const $e=T.oxw();T.xp6(1),T.Q6J("ngIf",2===$e.dialogType),T.xp6(2),T.MGl("placeholder","",T.lcZ(4,5,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.NAME"),":"),T.Q6J("formControl",$e.nameCtrl),T.xp6(3),T.hij(" ",$e.invalidNameMessage.length?$e.invalidNameMessage:T.lcZ(7,7,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.FILL_NAME")," "),T.xp6(2),T.Q6J("ngIf",2!==$e.dialogType)}}var ot=(()=>{return(lt=ot||(ot={}))[lt.FACILITY=0]="FACILITY",lt[lt.RESOURCE=1]="RESOURCE",lt[lt.VO=2]="VO",lt[lt.GROUP=3]="GROUP",ot;var lt})();let Fe=(()=>{class lt{constructor($e,yt,Wt,dn,An,Yn,ri,bi,cr){this.dialogRef=$e,this.data=yt,this.notificator=Wt,this.translateService=dn,this.facilitiesManager=An,this.resourcesManager=Yn,this.groupsManager=ri,this.vosManager=bi,this.store=cr,this.invalidNameMessage=this.data.dialogType===ot.GROUP?this.store.getProperty("group_name_error_message"):"",this.loading=!1,this.secondaryRegex=this.data.dialogType===ot.GROUP?this.store.getProperty("group_name_secondary_regex"):""}ngOnInit(){switch(this.theme=this.data.theme,this.dialogType=this.data.dialogType,this.dialogType){case ot.FACILITY:this.nameCtrl=new D.p4(this.data.facility.name,[D.kI.required,D.kI.pattern(".*[\\S]+.*"),D.kI.maxLength(129)]),this.descriptionCtrl=new D.p4(this.data.facility.description);break;case ot.RESOURCE:this.nameCtrl=new D.p4(this.data.resource.name,[D.kI.required,D.kI.pattern(".*[\\S]+.*")]),this.descriptionCtrl=new D.p4(this.data.resource.description);break;case ot.GROUP:{const $e=this.data.group.name.split(":");this.nameCtrl=new D.p4($e[$e.length-1],[D.kI.required,D.kI.pattern(".*[\\S]+.*"),D.kI.pattern(this.secondaryRegex),D.kI.maxLength(129)]),this.descriptionCtrl=new D.p4(this.data.group.description);break}case ot.VO:this.shortName=this.data.vo.shortName,this.nameCtrl=new D.p4(this.data.vo.name,[D.kI.required,D.kI.pattern(".*[\\S]+.*"),D.kI.maxLength(129)]),this.descriptionCtrl=new D.p4}}cancel(){this.dialogRef.close(!1)}submit(){switch(this.loading=!0,this.dialogType){case ot.FACILITY:this.editFacility();break;case ot.RESOURCE:this.editResource();break;case ot.GROUP:this.editGroup();break;case ot.VO:this.editVo()}}editResource(){this.data.resource.name=this.nameCtrl.value,this.data.resource.description=this.descriptionCtrl.value,this.resourcesManager.updateResource({resource:this.data.resource}).subscribe(()=>{this.translateService.get("DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.RESOURCE_SUCCESS").subscribe($e=>{this.notificator.showSuccess($e),this.dialogRef.close(!0)})},()=>this.loading=!1)}editFacility(){this.data.facility.name=this.nameCtrl.value,this.data.facility.description=this.descriptionCtrl.value,this.facilitiesManager.updateFacility({facility:this.data.facility}).subscribe(()=>{this.translateService.get("DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.FACILITY_SUCCESS").subscribe($e=>{this.notificator.showSuccess($e),this.dialogRef.close(!0)})},()=>this.loading=!1)}editGroup(){this.groupsManager.getGroupById(this.data.group.id).subscribe($e=>{const yt=$e;yt.name=this.nameCtrl.value,yt.description=this.descriptionCtrl.value,this.groupsManager.updateGroup({group:yt}).subscribe(()=>{this.translateService.get("DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.GROUP_SUCCESS").subscribe(Wt=>{this.notificator.showSuccess(Wt),this.dialogRef.close(!0)})},()=>this.loading=!1)},()=>this.loading=!1)}editVo(){this.data.vo.name=this.nameCtrl.value,this.vosManager.updateVo({vo:this.data.vo}).subscribe(()=>{this.translateService.get("DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.VO_SUCCESS").subscribe($e=>{this.notificator.showSuccess($e),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return lt.\u0275fac=function($e){return new($e||lt)(T.Y36(M.so),T.Y36(M.WI),T.Y36(V.V6),T.Y36(A.sK),T.Y36(F.IQ),T.Y36(F.xk),T.Y36(F.ff),T.Y36(F.YF),T.Y36(V.d6))},lt.\u0275cmp=T.Xpm({type:lt,selectors:[["perun-web-apps-edit-facility-resource-group-vo-dialog"]],decls:15,vars:16,consts:[["mat-dialog-title","",4,"ngIf"],["mat-dialog-content",""],["class","mr-auto ml-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],["mat-dialog-title",""],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],[4,"ngIf"],["matInput","","required","",3,"formControl","placeholder"],["class","mt-3",4,"ngIf"],["disabled","","matInput","","required","",3,"value","placeholder"],[1,"mt-3"],["mat-autosize","","matInput","",1,"overflow-hidden",3,"formControl","placeholder"]],template:function($e,yt){1&$e&&(T.TgZ(0,"div"),T.YNc(1,se,3,3,"h1",0),T.YNc(2,le,3,3,"h1",0),T.YNc(3,N,3,3,"h1",0),T.YNc(4,k,3,3,"h1",0),T.TgZ(5,"div",1),T.YNc(6,be,1,0,"mat-spinner",2),T.YNc(7,xe,9,9,"div",3),T.qZA(),T.TgZ(8,"div",4)(9,"button",5),T.NdJ("click",function(){return yt.cancel()}),T._uU(10),T.ALo(11,"translate"),T.qZA(),T.TgZ(12,"button",6),T.NdJ("click",function(){return yt.submit()}),T._uU(13),T.ALo(14,"translate"),T.qZA()()()),2&$e&&(T.Tol(yt.theme),T.xp6(1),T.Q6J("ngIf",0===yt.dialogType),T.xp6(1),T.Q6J("ngIf",1===yt.dialogType),T.xp6(1),T.Q6J("ngIf",2===yt.dialogType),T.xp6(1),T.Q6J("ngIf",3===yt.dialogType),T.xp6(2),T.Q6J("ngIf",yt.loading),T.xp6(1),T.Q6J("ngIf",!yt.loading),T.xp6(3),T.hij(" ",T.lcZ(11,12,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.CANCEL_BUTTON")," "),T.xp6(2),T.Q6J("disabled",yt.loading||yt.nameCtrl.invalid||yt.descriptionCtrl.invalid),T.xp6(1),T.hij(" ",T.lcZ(14,14,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.SUBMIT_BUTTON")," "))},dependencies:[e.O5,M.uh,M.xY,M.H8,m.lW,b.TO,b.KE,D.Fj,D.JJ,D.Q7,v.Nt,R.Ou,D.oH,A.X$]}),lt})();var ut=p(64080),tt=p(9244);function vt(lt,Vt){1<&&T._UZ(0,"mat-spinner",7)}const X=function(lt){return{interval:lt}};function nt(lt,Vt){if(1<&&(T.TgZ(0,"div",8)(1,"mat-form-field"),T._UZ(2,"input",9),T.ALo(3,"translate"),T.qZA(),T.TgZ(4,"mat-form-field"),T._UZ(5,"input",9),T.ALo(6,"translate"),T.ALo(7,"translate"),T.qZA(),T.TgZ(8,"mat-form-field"),T._UZ(9,"input",9),T.ALo(10,"translate"),T.qZA(),T.TgZ(11,"mat-form-field"),T._UZ(12,"input",9),T.ALo(13,"translate"),T.ALo(14,"translate"),T.qZA(),T.TgZ(15,"mat-form-field"),T._UZ(16,"input",9),T.ALo(17,"translate"),T.ALo(18,"translate"),T.qZA()()),2<){const $e=T.oxw();T.xp6(2),T.s9C("placeholder",T.lcZ(3,10,"DIALOGS.GROUP_SYNC_DETAIL.GROUP_NAME")),T.Q6J("value",$e.group.name),T.xp6(3),T.s9C("placeholder",T.lcZ(7,14,"DIALOGS.GROUP_SYNC_DETAIL.SYNCHRONIZATION")),T.Q6J("value",T.lcZ(6,12,$e.syncType)),T.xp6(4),T.s9C("placeholder",T.lcZ(10,16,"DIALOGS.GROUP_SYNC_DETAIL.LAST_SYNC_STATE")),T.Q6J("value",$e.syncState),T.xp6(3),T.s9C("placeholder",T.lcZ(14,20,"DIALOGS.GROUP_SYNC_DETAIL.LAST_SYNC_TIME")),T.Q6J("value",T.lcZ(13,18,$e.syncTime)),T.xp6(4),T.s9C("placeholder",T.lcZ(18,25,"DIALOGS.GROUP_SYNC_DETAIL.SYNC_INTERVAL")),T.Q6J("value",T.xi3(17,22,"DIALOGS.GROUP_SYNC_DETAIL.SYNC_INTERVAL_MINUTES",T.VKq(27,X,$e.syncInterval)))}}function Ae(lt,Vt){if(1<){const $e=T.EpF();T.TgZ(0,"button",10),T.NdJ("click",function(){T.CHM($e);const Wt=T.oxw();return T.KtG(Wt.onForce())}),T._uU(1),T.ALo(2,"translate"),T.qZA()}if(2<){const $e=T.oxw();T.Q6J("disabled",$e.loading),T.xp6(1),T.hij(" ",T.lcZ(2,2,"DIALOGS.GROUP_SYNC_DETAIL.FORCE")," ")}}let ye=(()=>{class lt{constructor($e,yt,Wt,dn){this.dialogRef=$e,this.data=yt,this.groupService=Wt,this.notificator=dn,this.loading=!0,this.syncInterval="",this.syncState="",this.syncTime="",this.syncType=""}ngOnInit(){this.theme=this.data.theme,this.loadGroup()}onCancel(){this.dialogRef.close(null)}onForce(){this.loading=!0,"BASIC"===this.type?this.groupService.forceGroupSynchronization(this.group.id).subscribe({next:()=>{this.notificator.showSuccess("DIALOGS.GROUP_SYNC_DETAIL.FORCE_SUCCESS"),this.refresh()},error:()=>this.loading=!1}):this.groupService.forceGroupStructureSynchronization(this.group.id).subscribe({next:()=>{this.notificator.showSuccess("DIALOGS.GROUP_SYNC_DETAIL.FORCE_SUCCESS"),this.refresh()},error:()=>this.loading=!1})}refresh(){this.loadGroup()}loadGroup(){this.loading=!0,this.groupService.getRichGroupByIdWithAttributesByNames(this.data.groupId,[ut.r.GROUP_SYNC_ENABLED,ut.r.GROUP_LAST_SYNC_STATE,ut.r.GROUP_LAST_SYNC_TIMESTAMP,ut.r.GROUP_STRUCTURE_SYNC_ENABLED,ut.r.GROUP_LAST_STRUCTURE_SYNC_STATE,ut.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP,ut.r.GROUP_SYNC_INTERVAL]).subscribe($e=>{this.group=$e;const yt=(0,tt.IL)(this.group.attributes,ut.r.GROUP_SYNC_ENABLED).value,Wt=(0,tt.IL)(this.group.attributes,ut.r.GROUP_LAST_SYNC_STATE).value,dn=(0,tt.IL)(this.group.attributes,ut.r.GROUP_LAST_SYNC_TIMESTAMP).value,An=(0,tt.IL)(this.group.attributes,ut.r.GROUP_STRUCTURE_SYNC_ENABLED).value,Yn=(0,tt.IL)(this.group.attributes,ut.r.GROUP_LAST_STRUCTURE_SYNC_STATE).value,ri=(0,tt.IL)(this.group.attributes,ut.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP).value,bi=(0,tt.IL)(this.group.attributes,ut.r.GROUP_SYNC_INTERVAL).value;this.syncInterval=null===bi?"N/A":(5*+bi).toString(),null!==yt&&"true"===yt&&(this.type="BASIC",this.syncType="DIALOGS.GROUP_SYNC_DETAIL.NORMAL_SYNC",this.syncState=""!==Wt?Wt:"OK",this.syncTime=(0,e.p6)(dn,"YYYY-MM-dd H:mm:ss","en")),null!==An&&An&&(this.type="STRUCTURED",this.syncType="DIALOGS.GROUP_SYNC_DETAIL.STRUCT_SYNC",this.syncState=""!==Yn?Yn:"OK",this.syncTime=(0,e.p6)(ri,"YYYY-MM-dd H:mm:ss","en")),this.loading=!1})}}return lt.\u0275fac=function($e){return new($e||lt)(T.Y36(M.so),T.Y36(M.WI),T.Y36(F.ff),T.Y36(V.V6))},lt.\u0275cmp=T.Xpm({type:lt,selectors:[["perun-web-apps-group-sync-detail-dialog"]],decls:12,vars:12,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-flat-button","",1,"ml-2",3,"click"],["class","ml-2","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","readonly","",3,"value","placeholder"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function($e,yt){1&$e&&(T.TgZ(0,"div")(1,"h1",0),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.YNc(4,vt,1,0,"mat-spinner",1),T.YNc(5,nt,19,29,"div",2),T.TgZ(6,"div",3)(7,"div",4)(8,"button",5),T.NdJ("click",function(){return yt.onCancel()}),T._uU(9),T.ALo(10,"translate"),T.qZA(),T.YNc(11,Ae,3,4,"button",6),T.qZA()()()),2&$e&&(T.Tol(yt.theme),T.xp6(2),T.Oqu(T.lcZ(3,8,"DIALOGS.GROUP_SYNC_DETAIL.TITLE")),T.xp6(2),T.Q6J("ngIf",yt.loading),T.xp6(1),T.Q6J("ngIf",!yt.loading),T.xp6(4),T.hij(" ",T.lcZ(10,10,"DIALOGS.GROUP_SYNC_DETAIL.CANCEL")," "),T.xp6(2),T.Q6J("ngIf","BASIC"===yt.type||"STRUCTURED"===yt.type))},dependencies:[e.O5,M.uh,M.xY,M.H8,m.lW,b.KE,v.Nt,R.Ou,A.X$]}),lt})();function _e(lt,Vt){1<&&T._UZ(0,"mat-spinner",7)}function Se(lt,Vt){1<&&(T.TgZ(0,"mat-error"),T._uU(1),T.ALo(2,"translate"),T.qZA()),2<&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_ERROR")))}function Ne(lt,Vt){1<&&(T.TgZ(0,"mat-error"),T._uU(1),T.ALo(2,"translate"),T.qZA()),2<&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_ERROR")))}function Ce(lt,Vt){if(1<){const $e=T.EpF();T.TgZ(0,"div",8)(1,"mat-form-field")(2,"mat-label"),T._uU(3),T.ALo(4,"translate"),T.qZA(),T.TgZ(5,"input",9,10),T.NdJ("ngModelChange",function(Wt){T.CHM($e);const dn=T.oxw();return T.KtG(dn.subject=Wt)}),T.qZA(),T.YNc(7,Se,3,3,"mat-error",11),T.qZA(),T.TgZ(8,"mat-form-field")(9,"mat-label"),T._uU(10),T.ALo(11,"translate"),T.qZA(),T.TgZ(12,"textarea",12,13),T.NdJ("ngModelChange",function(Wt){T.CHM($e);const dn=T.oxw();return T.KtG(dn.message=Wt)}),T.ALo(14,"translate"),T._uU(15," "),T.qZA(),T.YNc(16,Ne,3,3,"mat-error",11),T.qZA()()}if(2<){const $e=T.MAs(6),yt=T.MAs(13),Wt=T.oxw();T.xp6(3),T.Oqu(T.lcZ(4,7,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT")),T.xp6(2),T.Q6J("ngModel",Wt.subject),T.xp6(2),T.Q6J("ngIf",$e.invalid),T.xp6(3),T.Oqu(T.lcZ(11,9,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE")),T.xp6(2),T.s9C("placeholder",T.lcZ(14,11,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_PLACEHOLDER")),T.Q6J("ngModel",Wt.message),T.xp6(4),T.Q6J("ngIf",yt.invalid)}}let fe=(()=>{class lt{constructor($e,yt,Wt,dn,An,Yn){this.dialogRef=$e,this.translate=yt,this.notificator=Wt,this.rtMessages=dn,this.data=An,this.storeService=Yn,this.message="",this.subject="",this.methodRegexp=/(\w+\/\w+)$/g,this.loading=!1}ngOnInit(){this.data?.error?.errorId&&(this.subject="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_VALUE"),this.parseMethod(this.data.error.call)," (",this.data.error.errorId,")"))}sendBugReport(){this.loading=!0,this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe($e=>{this.dialogRef.afterClosed().subscribe(()=>{const yt="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS1"),$e.ticketNumber.toString(),this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS2"));this.notificator.showSuccess(yt)}),this.dialogRef.close()},()=>{this.loading=!1,this.dialogRef.afterClosed().subscribe(()=>{})})}getFullEmailBody(){const $e=this.storeService.getProperty("config");let yt=this.message+"\n------------------------\nTechnical details:\n\n"+this.data.error.errorId;if(yt=yt.concat(this.data.error.type?" "+this.data.error.type+"\n":"\n"),yt=yt.concat(this.data.error.message,"\n","Perun instance: ",$e,"\n","Request:\n",this.data.error.urlWithParams,"\n\n"),this.data.error.payload){const Wt=/"password":".+?"/;let dn=JSON.stringify(this.data.error.payload);dn=dn.replace(Wt,'"password":"####"'),yt=yt.concat("Payload:\n"+dn+"\n\n")}return yt=yt.concat("Sent from new Perun Gui, version: ",p(4147).i8),yt.split("\n").join("\n ")}parseMethod($e){return $e&&this.methodRegexp.exec($e)[1]}}return lt.\u0275fac=function($e){return new($e||lt)(T.Y36(M.so),T.Y36(A.sK),T.Y36(V.V6),T.Y36(F.Hr),T.Y36(M.WI),T.Y36(V.d6))},lt.\u0275cmp=T.Xpm({type:lt,selectors:[["perun-web-apps-bug-report-dialog"]],decls:13,vars:12,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","",3,"ngModel","ngModelChange"],["subjectModel","ngModel"],[4,"ngIf"],["matInput","","required","",3,"ngModel","placeholder","ngModelChange"],["messageModel","ngModel"]],template:function($e,yt){1&$e&&(T.TgZ(0,"h1",0),T._uU(1),T.ALo(2,"translate"),T.qZA(),T.YNc(3,_e,1,0,"mat-spinner",1),T.YNc(4,Ce,17,13,"div",2),T.TgZ(5,"div",3)(6,"div",4)(7,"button",5),T.NdJ("click",function(){return yt.dialogRef.close()}),T._uU(8),T.ALo(9,"translate"),T.qZA(),T.TgZ(10,"button",6),T.NdJ("click",function(){return yt.sendBugReport()}),T._uU(11),T.ALo(12,"translate"),T.qZA()()()),2&$e&&(T.xp6(1),T.Oqu(T.lcZ(2,6,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.TITLE")),T.xp6(2),T.Q6J("ngIf",yt.loading),T.xp6(1),T.Q6J("ngIf",!yt.loading),T.xp6(4),T.hij(" ",T.lcZ(9,8,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.CANCEL")," "),T.xp6(2),T.Q6J("disabled",""===yt.message||""===yt.subject||yt.loading),T.xp6(1),T.hij(" ",T.lcZ(12,10,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SEND")," "))},dependencies:[e.O5,M.uh,M.xY,M.H8,m.lW,b.TO,b.KE,b.hX,D.Fj,D.JJ,D.Q7,D.On,v.Nt,R.Ou,A.X$],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),lt})(),r=(()=>{class lt{constructor($e,yt,Wt){this.dialogRef=$e,this.dialog=yt,this.data=Wt}onCloseClick(){this.dialogRef.close()}onBugReportClick(){this.dialogRef.afterClosed().subscribe(()=>{const $e=(0,tt.kZ)();$e.width="550px",$e.data={error:this.data.error},$e.autoFocus=!1,this.dialog.open(fe,$e)}),this.dialogRef.close()}}return lt.\u0275fac=function($e){return new($e||lt)(T.Y36(M.so),T.Y36(M.uw),T.Y36(M.WI))},lt.\u0275cmp=T.Xpm({type:lt,selectors:[["perun-web-apps-notification-dialog"]],decls:12,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"hidden","click"],["autofocus","","mat-button","",1,"ml-2",3,"click"]],template:function($e,yt){1&$e&&(T.TgZ(0,"h1",0),T._uU(1),T.qZA(),T.TgZ(2,"div",1),T._uU(3),T.qZA(),T.TgZ(4,"div",2)(5,"div",3)(6,"button",4),T.NdJ("click",function(){return yt.onBugReportClick()}),T._uU(7),T.ALo(8,"translate"),T.qZA(),T.TgZ(9,"button",5),T.NdJ("click",function(){return yt.onCloseClick()}),T._uU(10),T.ALo(11,"translate"),T.qZA()()()),2&$e&&(T.xp6(1),T.Oqu(yt.data.title),T.xp6(2),T.hij(" ",yt.data.description,"\n"),T.xp6(3),T.Q6J("hidden","error"!==yt.data.type),T.xp6(1),T.hij(" ",T.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_BUG_REPORT")," "),T.xp6(3),T.hij(" ",T.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_CLOSE")," "))},dependencies:[M.uh,M.xY,M.H8,m.lW,A.X$]}),lt})();var u=p(34447);function _(lt,Vt){1<&&T._UZ(0,"mat-spinner",3)}function E(lt,Vt){1<&&T._UZ(0,"th",15)}function h(lt,Vt){if(1<&&(T.TgZ(0,"td",16),T._uU(1),T.qZA()),2<){const $e=Vt.$implicit;T.xp6(1),T.hij(" ",$e.userExtSource.extSource.name," ")}}function a(lt,Vt){1<&&T._UZ(0,"tr",17)}function i(lt,Vt){1<&&T._UZ(0,"tr",18)}function t(lt,Vt){if(1<){const $e=T.EpF();T.TgZ(0,"div")(1,"div",4)(2,"p"),T._uU(3),T.ALo(4,"translate"),T.ALo(5,"customTranslate"),T.qZA(),T.TgZ(6,"div",5),T._uU(7),T.ALo(8,"translate"),T.ALo(9,"customTranslate"),T.qZA(),T.TgZ(10,"table",6),T.ynx(11,7),T.YNc(12,E,1,0,"th",8),T.YNc(13,h,2,1,"td",9),T.BQk(),T.YNc(14,a,1,0,"tr",10),T.YNc(15,i,1,0,"tr",11),T.qZA()(),T.TgZ(16,"div",12)(17,"button",13),T.NdJ("click",function(){T.CHM($e);const Wt=T.oxw();return T.KtG(Wt.onCancel())}),T._uU(18),T.ALo(19,"translate"),T.ALo(20,"customTranslate"),T.qZA(),T.TgZ(21,"button",14),T.NdJ("click",function(){T.CHM($e);const Wt=T.oxw();return T.KtG(Wt.onSubmit())}),T._uU(22),T.ALo(23,"translate"),T.ALo(24,"customTranslate"),T.qZA()()()}if(2<){const $e=T.oxw();T.xp6(3),T.hij(" ",T.lcZ(4,7,T.lcZ(5,9,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.DESCRIPTION"))," "),T.xp6(4),T.hij(" ",T.lcZ(8,11,T.lcZ(9,13,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.ASK"))," "),T.xp6(3),T.Q6J("dataSource",$e.dataSource),T.xp6(4),T.Q6J("matHeaderRowDef",$e.displayedColumns),T.xp6(1),T.Q6J("matRowDefColumns",$e.displayedColumns),T.xp6(3),T.hij(" ",T.lcZ(19,15,T.lcZ(20,17,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.CANCEL"))," "),T.xp6(4),T.hij(" ",T.lcZ(23,19,T.lcZ(24,21,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.REMOVE"))," ")}}let n=(()=>{class lt{constructor($e,yt,Wt,dn,An){this.dialogRef=$e,this.data=yt,this.usersManagerService=Wt,this.translate=dn,this.notificator=An,this.force=!1,this.displayedColumns=["name"]}ngOnInit(){this.theme=this.data.theme,this.dataSource=new C.by(this.data.extSources)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;const $e=this.data.extSources.map(yt=>yt.userExtSource.id);this.usersManagerService.removeUserExtSources(this.data.userId,$e,this.force).subscribe({next:()=>{this.loading=!1,this.data.showSuccess&&this.notificator.showSuccess(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.SUCCESS")),this.dialogRef.close(!0)},error:()=>this.loading=!1})}}return lt.\u0275fac=function($e){return new($e||lt)(T.Y36(M.so),T.Y36(M.WI),T.Y36(F.Fv),T.Y36(V.Te),T.Y36(V.V6))},lt.\u0275cmp=T.Xpm({type:lt,selectors:[["perun-web-apps-remove-user-ext-source-dialog"]],decls:7,vars:10,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"click"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function($e,yt){1&$e&&(T.TgZ(0,"h1",0),T._uU(1),T.ALo(2,"translate"),T.ALo(3,"customTranslate"),T.qZA(),T.TgZ(4,"div"),T.YNc(5,_,1,0,"mat-spinner",1),T.YNc(6,t,25,23,"div",2),T.qZA()),2&$e&&(T.xp6(1),T.hij(" ",T.lcZ(2,6,T.lcZ(3,8,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.TITLE")),"\n"),T.xp6(3),T.Tol(yt.theme),T.xp6(1),T.Q6J("ngIf",yt.loading),T.xp6(1),T.Q6J("ngIf",!yt.loading))},dependencies:[e.O5,C.BZ,C.fO,C.as,C.w1,C.Dz,C.nj,C.ge,C.ev,C.XQ,C.Gk,M.uh,M.xY,M.H8,m.lW,R.Ou,A.X$,u.a]}),lt})();var o=p(39349);let s=(()=>{class lt{constructor($e,yt){this.dialogRef=$e,this.data=yt}ngOnInit(){this.value=this.data.value,this.title=this.data.title}onCancel(){this.dialogRef.close()}}return lt.\u0275fac=function($e){return new($e||lt)(T.Y36(M.so),T.Y36(M.WI))},lt.\u0275cmp=T.Xpm({type:lt,selectors:[["perun-web-apps-show-value-dialog"]],decls:12,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","overflow-hidden"],["cdkTextareaAutosize","","matInput","","readonly","",1,"w-100","display-fix"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"cdkCopyToClipboard"]],template:function($e,yt){1&$e&&(T.TgZ(0,"h1",0),T._uU(1),T.qZA(),T.TgZ(2,"div",1)(3,"textarea",2),T._uU(4),T.qZA()(),T.TgZ(5,"div",3)(6,"button",4),T.NdJ("click",function(){return yt.onCancel()}),T._uU(7),T.ALo(8,"translate"),T.qZA(),T.TgZ(9,"button",5),T._uU(10),T.ALo(11,"translate"),T.qZA()()),2&$e&&(T.xp6(1),T.Oqu(yt.title),T.xp6(3),T.Oqu(yt.value),T.xp6(3),T.hij(" ",T.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.SHOW_VALUE.CLOSE")," "),T.xp6(2),T.Q6J("cdkCopyToClipboard",yt.value),T.xp6(1),T.hij(" ",T.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.SHOW_VALUE.COPY")," "))},dependencies:[M.uh,M.xY,M.H8,m.lW,o.IC,v.Nt,L.i3,A.X$],styles:[".display-fix[_ngcontent-%COMP%]{overflow:hidden;border:none}"]}),lt})();function l(lt,Vt){1<&&T._UZ(0,"th",12)}function d(lt,Vt){if(1<&&(T.TgZ(0,"td",13),T._uU(1),T.qZA()),2<){const $e=Vt.$implicit;T.xp6(1),T.Oqu($e.displayName)}}function c(lt,Vt){1<&&T._UZ(0,"tr",14)}function S(lt,Vt){1<&&T._UZ(0,"tr",15)}let J=(()=>{class lt{constructor($e,yt,Wt,dn,An){this.dialogRef=$e,this.data=yt,this.notificator=Wt,this.translate=dn,this.attributesManager=An,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new C.by(this.data.attributes)}onCancel(){this.dialogRef.close(!1)}onSubmit(){switch(this.data.entity){case"vo":this.attributesManager.setVoAttributes({vo:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>{this.onSuccess()});break;case"group":"resource"===this.data.secondEntity?this.attributesManager.setGroupResourceAttributes({group:this.data.entityId,resource:this.data.secondEntityId,attributes:this.data.attributes}).subscribe(()=>this.onSuccess()):this.attributesManager.setGroupAttributes({group:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>{this.onSuccess()});break;case"user":"facility"===this.data.secondEntity?this.attributesManager.setUserFacilityAttributes({user:this.data.entityId,facility:this.data.secondEntityId,attributes:this.data.attributes}).subscribe(()=>this.onSuccess()):this.attributesManager.setUserAttributes({user:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>{this.onSuccess()});break;case"member":switch(this.data.secondEntity){case"resource":this.attributesManager.setMemberResourceAttributes({member:this.data.entityId,resource:this.data.secondEntityId,attributes:this.data.attributes}).subscribe(()=>this.onSuccess());break;case"group":this.attributesManager.setMemberGroupAttributes({member:this.data.entityId,group:this.data.secondEntityId,attributes:this.data.attributes}).subscribe(()=>this.onSuccess());break;default:this.attributesManager.setMemberAttributes({member:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>{this.onSuccess()})}break;case"facility":"user"===this.data.secondEntity?this.attributesManager.setFacilityUserAttributes({facility:this.data.entityId,user:this.data.secondEntityId,attributes:this.data.attributes}).subscribe(()=>this.onSuccess()):this.attributesManager.setFacilityAttributes({facility:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>{this.onSuccess()});break;case"host":this.attributesManager.setHostAttributes({host:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>{this.onSuccess()});break;case"ues":this.attributesManager.setUserExtSourceAttributes({userExtSource:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>{this.onSuccess()});break;case"resource":switch(this.data.secondEntity){case"member":this.attributesManager.setMemberResourceAttributes({resource:this.data.entityId,member:this.data.secondEntityId,attributes:this.data.attributes}).subscribe(()=>this.onSuccess());break;case"group":this.attributesManager.setResourceGroupAttributes({resource:this.data.entityId,group:this.data.secondEntityId,attributes:this.data.attributes}).subscribe(()=>this.onSuccess());break;default:this.attributesManager.setResourceAttributes({resource:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>this.onSuccess())}}}onSuccess(){this.translate.get("DIALOGS.EDIT_ATTRIBUTES.SUCCESS").subscribe($e=>{this.notificator.showSuccess($e),this.dialogRef.close(!0)})}}return lt.\u0275fac=function($e){return new($e||lt)(T.Y36(M.so),T.Y36(M.WI),T.Y36(V.V6),T.Y36(A.sK),T.Y36(F.H8))},lt.\u0275cmp=T.Xpm({type:lt,selectors:[["perun-web-apps-edit-attribute-dialog"]],decls:23,vars:18,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function($e,yt){1&$e&&(T.TgZ(0,"h1",0),T._uU(1),T.ALo(2,"translate"),T.qZA(),T.TgZ(3,"div",1)(4,"div"),T._uU(5),T.ALo(6,"translate"),T.qZA(),T.TgZ(7,"div",2),T._uU(8),T.ALo(9,"translate"),T.qZA(),T.TgZ(10,"table",3),T.ynx(11,4),T.YNc(12,l,1,0,"th",5),T.YNc(13,d,2,1,"td",6),T.BQk(),T.YNc(14,c,1,0,"tr",7),T.YNc(15,S,1,0,"tr",8),T.qZA()(),T.TgZ(16,"div",9)(17,"button",10),T.NdJ("click",function(){return yt.onCancel()}),T._uU(18),T.ALo(19,"translate"),T.qZA(),T.TgZ(20,"button",11),T.NdJ("click",function(){return yt.onSubmit()}),T._uU(21),T.ALo(22,"translate"),T.qZA()()),2&$e&&(T.xp6(1),T.Oqu(T.lcZ(2,8,"DIALOGS.EDIT_ATTRIBUTES.TITLE")),T.xp6(4),T.hij(" ",T.lcZ(6,10,"DIALOGS.EDIT_ATTRIBUTES.DESCRIPTION")," "),T.xp6(3),T.hij(" ",T.lcZ(9,12,"DIALOGS.EDIT_ATTRIBUTES.ASK")," "),T.xp6(2),T.Q6J("dataSource",yt.dataSource),T.xp6(4),T.Q6J("matHeaderRowDef",yt.displayedColumns),T.xp6(1),T.Q6J("matRowDefColumns",yt.displayedColumns),T.xp6(3),T.hij(" ",T.lcZ(19,14,"DIALOGS.EDIT_ATTRIBUTES.CANCEL")," "),T.xp6(3),T.hij(" ",T.lcZ(22,16,"DIALOGS.EDIT_ATTRIBUTES.SAVE")," "))},dependencies:[C.BZ,C.fO,C.as,C.w1,C.Dz,C.nj,C.ge,C.ev,C.XQ,C.Gk,M.uh,M.xY,M.H8,m.lW,A.X$]}),lt})(),ht=(()=>{class lt{constructor($e,yt){this.dialogRef=$e,this.data=yt,this.attributeValue=""}ngOnInit(){this.attributeValue=this.data.attribute.value[this.data.index]}cancel(){this.dialogRef.close()}submit(){this.data.attribute.value[this.data.index]=this.attributeValue,this.dialogRef.close(!0)}}return lt.\u0275fac=function($e){return new($e||lt)(T.Y36(M.so),T.Y36(M.WI))},lt.\u0275cmp=T.Xpm({type:lt,selectors:[["perun-web-apps-attribute-value-list-edit-dialog"]],decls:13,vars:10,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["cdkTextareaAutosize","true","matInput","",3,"ngModel","ngModelChange"],["mat-dialog-actions","",1,"d-flex"],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"]],template:function($e,yt){1&$e&&(T.TgZ(0,"h5",0),T._uU(1),T.ALo(2,"translate"),T.qZA(),T.TgZ(3,"div",1)(4,"mat-form-field")(5,"textarea",2),T.NdJ("ngModelChange",function(dn){return yt.attributeValue=dn}),T.qZA()()(),T.TgZ(6,"div",3)(7,"button",4),T.NdJ("click",function(){return yt.cancel()}),T._uU(8),T.ALo(9,"translate"),T.qZA(),T.TgZ(10,"button",5),T.NdJ("click",function(){return yt.submit()}),T._uU(11),T.ALo(12,"translate"),T.qZA()()),2&$e&&(T.xp6(1),T.hij(" ",T.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.TITLE"),"\n"),T.xp6(4),T.Q6J("ngModel",yt.attributeValue),T.xp6(3),T.hij(" ",T.lcZ(9,6,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.CANCEL_BUTTON")," "),T.xp6(3),T.hij(" ",T.lcZ(12,8,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.SUBMIT_BUTTON")," "))},dependencies:[M.uh,M.xY,M.H8,m.lW,b.KE,D.Fj,D.JJ,D.On,o.IC,v.Nt,A.X$]}),lt})(),ze=(()=>{class lt{constructor($e,yt){this.dialogRef=$e,this.data=yt}cancel(){this.dialogRef.close()}submit(){this.dialogRef.close(!0)}}return lt.\u0275fac=function($e){return new($e||lt)(T.Y36(M.so),T.Y36(M.WI))},lt.\u0275cmp=T.Xpm({type:lt,selectors:[["perun-web-apps-attribute-value-list-delete-dialog"]],decls:16,vars:13,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],[1,"mt-2","font-weight-bold"],["mat-dialog-actions","",1,"d-flex"],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"click"]],template:function($e,yt){1&$e&&(T.TgZ(0,"h5",0),T._uU(1),T.ALo(2,"translate"),T.qZA(),T.TgZ(3,"div",1)(4,"div"),T._uU(5),T.ALo(6,"translate"),T.qZA(),T.TgZ(7,"div",2),T._uU(8),T.qZA()(),T.TgZ(9,"div",3)(10,"button",4),T.NdJ("click",function(){return yt.cancel()}),T._uU(11),T.ALo(12,"translate"),T.qZA(),T.TgZ(13,"button",5),T.NdJ("click",function(){return yt.submit()}),T._uU(14),T.ALo(15,"translate"),T.qZA()()),2&$e&&(T.xp6(1),T.hij(" ",T.lcZ(2,5,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.TITLE"),"\n"),T.xp6(4),T.hij(" ",T.lcZ(6,7,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.DESCRIPTION")," "),T.xp6(3),T.hij(" ",yt.data.name," "),T.xp6(3),T.hij(" ",T.lcZ(12,9,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.CANCEL_BUTTON")," "),T.xp6(3),T.hij(" ",T.lcZ(15,11,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.SUBMIT_BUTTON")," "))},dependencies:[M.uh,M.xY,M.H8,m.lW,A.X$]}),lt})();var et=p(98380);function ne(lt,Vt){if(1<&&(T.TgZ(0,"perun-web-apps-alert",9),T._uU(1),T.qZA()),2<){const $e=T.oxw();T.xp6(1),T.Oqu($e.pendingEmailsMessage)}}function Ue(lt,Vt){1<&&(T.TgZ(0,"mat-error"),T._uU(1),T.ALo(2,"translate"),T.ALo(3,"customTranslate"),T.qZA()),2<&&(T.xp6(1),T.Oqu(T.lcZ(2,1,T.lcZ(3,3,"DIALOGS.CHANGE_EMAIL.EMAIL_ERROR"))))}let He=(()=>{class lt{constructor($e,yt,Wt,dn,An,Yn){this.dialogRef=$e,this.data=yt,this.translate=Wt,this.notificator=dn,this.usersManagerService=An,this.authService=Yn,this.pendingMails=[],Wt.get("DIALOGS.CHANGE_EMAIL.SUCCESS").subscribe(ri=>this.successMessage=ri),Wt.get("DIALOGS.CHANGE_EMAIL.PENDING_MAILS_BEGIN").subscribe(ri=>this.pendingEmailsMessageStart=ri),Wt.get("DIALOGS.CHANGE_EMAIL.PENDING_MAILS_END").subscribe(ri=>this.pendingEmailsMessageEnd=ri)}ngOnInit(){this.emailControl=new D.p4(null,[D.kI.required,D.kI.pattern(/^(([^<>()[\].,;:\s@"]+(\.[^<>()[\].,;:\s@"]+)*)|(".+"))@(([^<>()[\].,;:\s@"]+\.)+[^<>()[\].,;:\s@"]{2,})$/i)]),this.usersManagerService.getPendingPreferredEmailChanges(this.data.userId).subscribe($e=>{this.pendingMails=$e.filter((Wt,dn,An)=>dn===An.indexOf(Wt));let yt="";this.pendingMails.forEach(Wt=>yt+=`${Wt===this.pendingMails[0]?"":", "}${Wt}`),this.pendingEmailsMessage=this.pendingEmailsMessageStart+yt+this.pendingEmailsMessageEnd})}onCancel(){this.dialogRef.close()}onSubmit(){const yt=window.location.href.split("/");this.usersManagerService.requestPreferredEmailChange(this.data.userId,this.emailControl.value,this.translate.currentLang,"",yt[0]+"//"+yt[2],this.authService.getIdpFilter()).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.dialogRef.close()})}}return lt.\u0275fac=function($e){return new($e||lt)(T.Y36(M.so),T.Y36(M.WI),T.Y36(A.sK),T.Y36(V.V6),T.Y36(F.Fv),T.Y36(V.e8))},lt.\u0275cmp=T.Xpm({type:lt,selectors:[["perun-web-apps-change-email-dialog"]],decls:21,vars:24,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","user-theme"],["alert_type","warn",4,"ngIf"],[1,"w-100"],["matInput","","required","",3,"placeholder","formControl"],[4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],["alert_type","warn"]],template:function($e,yt){1&$e&&(T.TgZ(0,"h1",0),T._uU(1),T.ALo(2,"translate"),T.ALo(3,"customTranslate"),T.qZA(),T.TgZ(4,"div",1),T.YNc(5,ne,2,1,"perun-web-apps-alert",2),T.TgZ(6,"mat-form-field",3)(7,"label",3),T._UZ(8,"input",4),T.ALo(9,"translate"),T.ALo(10,"customTranslate"),T.qZA(),T.YNc(11,Ue,4,5,"mat-error",5),T.qZA()(),T.TgZ(12,"div",6)(13,"button",7),T.NdJ("click",function(){return yt.onCancel()}),T._uU(14),T.ALo(15,"translate"),T.ALo(16,"customTranslate"),T.qZA(),T.TgZ(17,"button",8),T.NdJ("click",function(){return yt.onSubmit()}),T._uU(18),T.ALo(19,"translate"),T.ALo(20,"customTranslate"),T.qZA()()),2&$e&&(T.xp6(1),T.Oqu(T.lcZ(2,8,T.lcZ(3,10,"DIALOGS.CHANGE_EMAIL.TITLE"))),T.xp6(4),T.Q6J("ngIf",yt.pendingMails.length),T.xp6(3),T.s9C("placeholder",T.lcZ(9,12,T.lcZ(10,14,"DIALOGS.CHANGE_EMAIL.INPUT_PLACEHOLDER"))),T.Q6J("formControl",yt.emailControl),T.xp6(3),T.Q6J("ngIf",yt.emailControl.invalid),T.xp6(3),T.hij(" ",T.lcZ(15,16,T.lcZ(16,18,"DIALOGS.CHANGE_EMAIL.CANCEL"))," "),T.xp6(3),T.Q6J("disabled",!yt.emailControl.valid),T.xp6(1),T.hij(" ",T.lcZ(19,20,T.lcZ(20,22,"DIALOGS.CHANGE_EMAIL.CHANGE"))," "))},dependencies:[e.O5,M.uh,M.xY,M.H8,m.lW,b.TO,b.KE,D.Fj,D.JJ,D.Q7,v.Nt,D.oH,et.w,A.X$,u.a]}),lt})();function Pe(lt,Vt){1<&&T._UZ(0,"mat-spinner",7)}function Re(lt,Vt){1<&&(T.TgZ(0,"div",12),T._uU(1),T.ALo(2,"translate"),T.qZA()),2<&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.ASK")," "))}function re(lt,Vt){1<&&T._UZ(0,"th",19)}function we(lt,Vt){if(1<&&(T.TgZ(0,"td",20),T._uU(1),T.qZA()),2<){const $e=Vt.$implicit;T.xp6(1),T.Oqu($e)}}function st(lt,Vt){1<&&T._UZ(0,"tr",21)}function Ke(lt,Vt){1<&&T._UZ(0,"tr",22)}function Et(lt,Vt){if(1<&&(T.TgZ(0,"table",13),T.ynx(1,14),T.YNc(2,re,1,0,"th",15),T.YNc(3,we,2,1,"td",16),T.BQk(),T.YNc(4,st,1,0,"tr",17),T.YNc(5,Ke,1,0,"tr",18),T.qZA()),2<){const $e=T.oxw(2);T.Q6J("dataSource",$e.dataSource),T.xp6(4),T.Q6J("matHeaderRowDef",$e.displayedColumns),T.xp6(1),T.Q6J("matRowDefColumns",$e.displayedColumns)}}function ke(lt,Vt){if(1<&&(T.TgZ(0,"perun-web-apps-alert",23),T._uU(1),T.ALo(2,"translate"),T.qZA()),2<){const $e=T.oxw(2);T.Q6J("alert_type","warn"),T.xp6(1),T.hij(" ",T.lcZ(2,2,$e.data.alert)," ")}}function at(lt,Vt){if(1<&&(T.TgZ(0,"div",8)(1,"p"),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.YNc(4,Re,3,3,"div",9),T.YNc(5,Et,6,3,"table",10),T.YNc(6,ke,3,4,"perun-web-apps-alert",11),T.qZA()),2<){const $e=T.oxw();T.xp6(2),T.hij(" ",T.lcZ(3,4,$e.data.description)," "),T.xp6(2),T.Q6J("ngIf",$e.data.showAsk),T.xp6(1),T.Q6J("ngIf",$e.data.items.length),T.xp6(1),T.Q6J("ngIf",$e.data.alert)}}function It(lt,Vt){if(1<){const $e=T.EpF();T.TgZ(0,"button",24),T.NdJ("click",function(){T.CHM($e);const Wt=T.oxw();return T.KtG(Wt.onSubmit())}),T._uU(1),T.ALo(2,"translate"),T.qZA()}if(2<){const $e=T.oxw();T.Q6J("disabled",$e.loading),T.xp6(1),T.hij(" ",T.lcZ(2,2,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.REMOVE_BUTTON")," ")}}function jt(lt,Vt){if(1<){const $e=T.EpF();T.TgZ(0,"button",25),T.NdJ("click",function(){T.CHM($e);const Wt=T.oxw();return T.KtG(Wt.onSubmit())}),T._uU(1),T.ALo(2,"translate"),T.qZA()}if(2<){const $e=T.oxw();T.Q6J("disabled",$e.loading),T.xp6(1),T.hij(" ",T.lcZ(2,2,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.SUBMIT_BUTTON")," ")}}let an=(()=>{class lt{constructor($e,yt){this.dialogRef=$e,this.data=yt,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new C.by(this.data.items)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.dialogRef.close(!0)}}return lt.\u0275fac=function($e){return new($e||lt)(T.Y36(M.so),T.Y36(M.WI))},lt.\u0275cmp=T.Xpm({type:lt,selectors:[["perun-web-apps-universal-confirmation-items-dialog"]],decls:12,vars:13,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","class","ml-2","color","warn",3,"disabled","click",4,"ngIf"],["mat-flat-button","","class","ml-2","color","accent",3,"disabled","click",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],["class","font-weight-bold",4,"ngIf"],["mat-table","","class","w-100",3,"dataSource",4,"ngIf"],[3,"alert_type",4,"ngIf"],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-header-row","","class","font-weight-bolder",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""],[3,"alert_type"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function($e,yt){1&$e&&(T.TgZ(0,"div")(1,"h1",0),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.YNc(4,Pe,1,0,"mat-spinner",1),T.YNc(5,at,7,6,"div",2),T.TgZ(6,"div",3)(7,"button",4),T.NdJ("click",function(){return yt.onCancel()}),T._uU(8),T.ALo(9,"translate"),T.qZA(),T.YNc(10,It,3,4,"button",5),T.YNc(11,jt,3,4,"button",6),T.qZA()()),2&$e&&(T.Tol(yt.theme),T.xp6(2),T.Oqu(T.lcZ(3,9,yt.data.title)),T.xp6(2),T.Q6J("ngIf",yt.loading),T.xp6(1),T.Q6J("ngIf",!yt.loading),T.xp6(3),T.hij(" ",T.lcZ(9,11,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.CANCEL_BUTTON")," "),T.xp6(2),T.Q6J("ngIf","remove"===yt.data.type),T.xp6(1),T.Q6J("ngIf","confirmation"===yt.data.type))},dependencies:[e.O5,C.BZ,C.fO,C.as,C.w1,C.Dz,C.nj,C.ge,C.ev,C.XQ,C.Gk,M.uh,M.xY,M.H8,m.lW,R.Ou,et.w,A.X$]}),lt})();var Kt=p(57851);let on=(()=>{class lt{transform($e){const yt=$e.split(":");return yt[yt.length-1]}}return lt.\u0275fac=function($e){return new($e||lt)},lt.\u0275pipe=T.Yjl({name:"parseGroupName",type:lt,pure:!0}),lt})();function Cn(lt,Vt){1<&&T._UZ(0,"mat-spinner",7)}function Tt(lt,Vt){1<&&(T.TgZ(0,"perun-web-apps-alert"),T._uU(1),T.ALo(2,"translate"),T.qZA()),2<&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.NO_PATHS")))}function Dt(lt,Vt){1<&&(T.TgZ(0,"span",23),T._uU(1),T.ALo(2,"translate"),T.qZA()),2<&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.DIRECT")))}function Ze(lt,Vt){1<&&(T.TgZ(0,"span",23),T._uU(1),T.ALo(2,"translate"),T.qZA()),2<&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.INCLUDE")))}const wt=function(lt){return{"min-width":lt}};function Ft(lt,Vt){if(1<){const $e=T.EpF();T.TgZ(0,"mat-tree-node",16)(1,"li",17)(2,"div",18),T.NdJ("click",function(){const dn=T.CHM($e).$implicit,An=T.oxw(3);return T.KtG(An.navigate(dn.id,dn.include))}),T._UZ(3,"button",19),T.TgZ(4,"div",20)(5,"span"),T._uU(6),T.ALo(7,"parseGroupName"),T.qZA(),T.YNc(8,Dt,3,3,"span",21),T.YNc(9,Ze,3,3,"span",21),T.qZA(),T.TgZ(10,"span",22),T._uU(11),T.qZA()()()()}if(2<){const $e=Vt.$implicit,yt=T.oxw(3);T.xp6(2),T.ekj("cursor-pointer",$e.direct||$e.include)("act-disabled",!$e.direct&&!$e.include),T.xp6(2),T.Q6J("ngStyle",T.VKq(11,wt,yt.getMinWidth($e.level))),T.xp6(2),T.Oqu(T.lcZ(7,9,$e.name)),T.xp6(2),T.Q6J("ngIf",$e.direct),T.xp6(1),T.Q6J("ngIf",$e.include),T.xp6(2),T.Oqu($e.description)}}function ln(lt,Vt){1<&&(T.TgZ(0,"span",23),T._uU(1),T.ALo(2,"translate"),T.qZA()),2<&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.DIRECT")))}function bn(lt,Vt){1<&&(T.TgZ(0,"span",23),T._uU(1),T.ALo(2,"translate"),T.qZA()),2<&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.INCLUDE")))}function gn(lt,Vt){if(1<){const $e=T.EpF();T.TgZ(0,"mat-nested-tree-node")(1,"li")(2,"div",17)(3,"button",24)(4,"mat-icon",25),T._uU(5),T.qZA()(),T.TgZ(6,"div",18),T.NdJ("click",function(){const dn=T.CHM($e).$implicit,An=T.oxw(3);return T.KtG(An.navigate(dn.id,dn.include))}),T.TgZ(7,"div",20)(8,"span"),T._uU(9),T.ALo(10,"parseGroupName"),T.qZA(),T.YNc(11,ln,3,3,"span",21),T.YNc(12,bn,3,3,"span",21),T.qZA(),T.TgZ(13,"span",22),T._uU(14),T.qZA()()(),T.TgZ(15,"ul"),T.GkF(16,26),T.qZA()()()}if(2<){const $e=Vt.$implicit,yt=T.oxw(3);T.xp6(3),T.uIk("aria-label","Toggle "+$e.name),T.xp6(2),T.hij(" ",yt.treeControl.isExpanded($e)?"expand_more":"chevron_right"," "),T.xp6(1),T.ekj("cursor-pointer",$e.direct||$e.include)("act-disabled",!$e.direct&&!$e.include),T.xp6(1),T.Q6J("ngStyle",T.VKq(15,wt,yt.getMinWidth($e.level))),T.xp6(2),T.Oqu(T.lcZ(10,13,$e.name)),T.xp6(2),T.Q6J("ngIf",$e.direct),T.xp6(1),T.Q6J("ngIf",$e.include),T.xp6(2),T.Oqu($e.description),T.xp6(1),T.ekj("example-tree-invisible",!yt.treeControl.isExpanded($e))}}function zn(lt,Vt){if(1<&&(T.TgZ(0,"mat-tree",13),T.YNc(1,Ft,12,13,"mat-tree-node",14),T.YNc(2,gn,17,17,"mat-nested-tree-node",15),T.qZA()),2<){const $e=T.oxw(2);T.Q6J("dataSource",$e.dataSource)("treeControl",$e.treeControl),T.xp6(2),T.Q6J("matTreeNodeDefWhen",$e.hasChild)}}function bt(lt,Vt){if(1<&&(T.TgZ(0,"div",8)(1,"p"),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.TgZ(4,"mat-form-field",9),T._UZ(5,"input",10),T.ALo(6,"translate"),T.qZA(),T.YNc(7,Tt,3,3,"perun-web-apps-alert",11),T.YNc(8,zn,3,3,"mat-tree",12),T.qZA()),2<){const $e=T.oxw();T.xp6(2),T.Oqu(T.lcZ(3,5,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.INFO")),T.xp6(3),T.s9C("placeholder",T.lcZ(6,7,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.FILTER")),T.Q6J("formControl",$e.formControl),T.xp6(2),T.Q6J("ngIf",!$e.dataSource.data.length),T.xp6(1),T.Q6J("ngIf",$e.dataSource.data.length)}}const Lt=function(lt){return{name:lt}};let pt=(()=>{class lt{constructor($e,yt,Wt){this.dialogRef=$e,this.data=yt,this.groupsManagerService=Wt,this.treeControl=new Kt.VY(dn=>dn.children),this.dataSource=new ie.WX,this.formControl=new D.p4(""),this.userName="",this.groupTree=[],this.paths=[],this.hasChild=(dn,An)=>!!An.children&&An.children.length>0}ngOnInit(){this.loading=!0,this.groupsManagerService.getIndirectMembershipPaths(this.data.member.id,this.data.groupId).subscribe($e=>{this.paths=$e,this.createGroupTree(this.paths),this.dataSource.data=this.groupTree,this.loading=!1}),this.formControl.valueChanges.subscribe($e=>{const yt=$e.trim().toLowerCase(),Wt=this.paths.filter(dn=>dn.filter(An=>An.name.includes(yt)).length);this.createGroupTree(Wt),this.dataSource.data=this.groupTree}),this.userName=(0,tt.bD)(this.data.member.user)}onCancel(){this.dialogRef.close()}navigate($e,yt=!1){window.open(`/organizations/${this.data.member.voId}/groups/${$e}${yt?"/settings/relations":""}`,"_blank")}getMinWidth($e){return String(400-40*$e)+"px"}recursiveSearch($e,yt,Wt){for(const An of $e)if(An.name===yt[Wt].name)return yt.length===Wt+1?(An.direct=!0,$e):(An.children=yt[++Wt].name.includes(yt[Wt-1].name)?this.recursiveSearch(An.children,yt,Wt):[{name:yt[Wt].name,id:yt[Wt-1].id,description:yt[Wt].description,direct:!1,include:!0,level:Wt,children:[]}].concat(An.children),$e);return $e.push({name:yt[Wt].name,id:yt[Wt].id,description:yt[Wt].description,direct:!1,include:!1,level:Wt,children:[]}),this.recursiveSearch($e,yt,Wt)}createGroupTree($e){this.groupTree=[],$e.forEach(yt=>{this.groupTree=this.recursiveSearch(this.groupTree,yt,0)}),this.groupTree.length&&(this.groupTree=this.groupTree[0].children)}}return lt.\u0275fac=function($e){return new($e||lt)(T.Y36(M.so),T.Y36(M.WI),T.Y36(F.ff))},lt.\u0275cmp=T.Xpm({type:lt,selectors:[["perun-web-apps-member-tree-view-dialog"]],decls:11,vars:11,consts:[[1,"group-theme"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","","class","mr-0",4,"ngIf"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-flat-button","",3,"click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"mr-0"],[1,"filter-field","ml-2"],["matInput","",3,"formControl","placeholder"],[4,"ngIf"],["class","example-tree",3,"dataSource","treeControl",4,"ngIf"],[1,"example-tree",3,"dataSource","treeControl"],["matTreeNodeToggle","",4,"matTreeNodeDef"],[4,"matTreeNodeDef","matTreeNodeDefWhen"],["matTreeNodeToggle",""],[1,"mat-tree-node"],[1,"row","flex-nowrap",3,"click"],["mat-icon-button",""],[1,"mt-auto","mb-auto",3,"ngStyle"],["class","text-muted ml-2",4,"ngIf"],[1,"text-muted","ml-3"],[1,"text-muted","ml-2"],["mat-icon-button","","matTreeNodeToggle",""],[1,"mr-3"],["matTreeNodeOutlet",""]],template:function($e,yt){1&$e&&(T.TgZ(0,"div",0)(1,"h1",1),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.YNc(4,Cn,1,0,"mat-spinner",2),T.YNc(5,bt,9,9,"div",3),T.TgZ(6,"div",4)(7,"div",5)(8,"button",6),T.NdJ("click",function(){return yt.onCancel()}),T._uU(9),T.ALo(10,"translate"),T.qZA()()()()),2&$e&&(T.xp6(2),T.hij(" ",T.xi3(3,4,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.TITLE",T.VKq(9,Lt,yt.userName))," "),T.xp6(2),T.Q6J("ngIf",yt.loading),T.xp6(1),T.Q6J("ngIf",!yt.loading),T.xp6(4),T.hij(" ",T.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.CLOSE")," "))},dependencies:[e.O5,e.PC,M.uh,M.xY,M.H8,m.lW,b.KE,D.Fj,D.JJ,v.Nt,R.Ou,D.oH,O.Hw,et.w,ie.GZ,ie.fQ,ie.eu,ie.gi,ie.uo,ie.Ar,A.X$,on],styles:[".example-tree-invisible[_ngcontent-%COMP%]{display:none}.example-tree[_ngcontent-%COMP%] ul[_ngcontent-%COMP%], .example-tree[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0;list-style-type:none}.act-disabled[_ngcontent-%COMP%]{pointer-events:none}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:0!important;min-width:initial!important}"]}),lt})(),rt=(()=>{class lt{constructor($e,yt){this.dialogRef=$e,this.router=yt}onClose(){this.router.navigate([],{queryParamsHandling:"preserve"}),this.dialogRef.close()}}return lt.\u0275fac=function($e){return new($e||lt)(T.Y36(M.so),T.Y36(z.F0))},lt.\u0275cmp=T.Xpm({type:lt,selectors:[["perun-web-apps-mail-change-failed-dialog"]],decls:11,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["alert_type","error"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"]],template:function($e,yt){1&$e&&(T.TgZ(0,"h1",0),T._uU(1),T.ALo(2,"translate"),T.qZA(),T.TgZ(3,"div",1)(4,"perun-web-apps-alert",2),T._uU(5),T.ALo(6,"translate"),T.qZA()(),T.TgZ(7,"div",3)(8,"button",4),T.NdJ("click",function(){return yt.onClose()}),T._uU(9),T.ALo(10,"translate"),T.qZA()()),2&$e&&(T.xp6(1),T.hij(" ",T.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.TITLE"),"\n"),T.xp6(4),T.Oqu(T.lcZ(6,5,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.INFO")),T.xp6(4),T.hij(" ",T.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.CLOSE")," "))},dependencies:[M.uh,M.xY,M.H8,m.lW,et.w,A.X$]}),lt})();var St=p(62383);function $(lt,Vt){1<&&(T.TgZ(0,"mat-radio-button",16),T._uU(1),T.ALo(2,"translate"),T.qZA()),2<&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"DIALOGS.CHANGE_EXPIRATION.VO_RULES")," "))}function We(lt,Vt){1<&&(T.TgZ(0,"mat-radio-button",17),T._uU(1),T.ALo(2,"translate"),T.qZA()),2<&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"DIALOGS.CHANGE_EXPIRATION.GROUP_RULES")," "))}function At(lt,Vt){1<&&(T.TgZ(0,"perun-web-apps-alert",18),T._uU(1),T.ALo(2,"translate"),T.qZA()),2<&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"DIALOGS.CHANGE_EXPIRATION.STATUS_CHANGE_INFO")))}let Pt=(()=>{class lt{constructor($e){this.dialogRef=$e,this.canExtendMembership=!1,this.expirationChanged=new T.vpe,this.statusChange=new T.vpe,this.expirationControl=new D.p4(null)}ngOnInit(){const $e=new Date;this.currentDate=(0,e.p6)(new Date($e.getFullYear(),$e.getMonth(),$e.getDate()),"yyyy-MM-dd","en_US"),"never"!==this.newExpiration&&this.expirationControl.setValue(this.newExpiration)}parseDate($e){return(0,e.p6)($e,"yyyy-MM-dd","en_US")}onChange(){"EXPIRED"===this.status&&("never"===this.newExpiration||this.parseDate(this.expirationControl.value)>this.currentDate)&&this.statusChange.emit(!0),this.expirationChanged.emit(this.newExpiration)}onCancel(){this.dialogRef.close({success:!1})}setExpiration(){this.newExpiration=(0,e.p6)(this.expirationControl.value,"yyyy-MM-dd","en"),this.expirationControl.setValue((0,e.p6)(this.expirationControl.value,"yyyy-MM-dd","en"))}}return lt.\u0275fac=function($e){return new($e||lt)(T.Y36(M.so))},lt.\u0275cmp=T.Xpm({type:lt,selectors:[["perun-web-apps-change-expiration-dialog"]],inputs:{currentExpiration:"currentExpiration",newExpiration:"newExpiration",canExtendMembership:"canExtendMembership",minDate:"minDate",maxDate:"maxDate",mode:"mode",status:"status",backButton:"backButton"},outputs:{expirationChanged:"expirationChanged",statusChange:"statusChange"},decls:38,vars:39,consts:[[1,"member-theme"],["mat-dialog-content",""],[1,"d-flex","flex-column",3,"ngModel","ngModelChange"],[3,"value"],["color","primary",1,"cursor-pointer",3,"click"],["readonly","","matInput","",1,"disable",3,"min","max","formControl","matDatepicker","dateChange"],["matSuffix","",3,"for","disabled"],[3,"disabled"],["picker",""],["class","bottom-padding","value","voRules",4,"ngIf"],["class","bottom-padding","value","groupRules",4,"ngIf"],["value","never"],["alert_type","info",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],["value","voRules",1,"bottom-padding"],["value","groupRules",1,"bottom-padding"],["alert_type","info"]],template:function($e,yt){if(1&$e){const Wt=T.EpF();T.TgZ(0,"div",0)(1,"div",1)(2,"p")(3,"strong"),T._uU(4),T.ALo(5,"translate"),T.qZA(),T._uU(6),T.ALo(7,"parseDate"),T.qZA(),T.TgZ(8,"p")(9,"strong"),T._uU(10),T.ALo(11,"translate"),T.qZA(),T._uU(12),T.ALo(13,"parseDate"),T.qZA(),T.TgZ(14,"mat-radio-group",2),T.NdJ("ngModelChange",function(An){return yt.newExpiration=An}),T.TgZ(15,"mat-radio-button",3)(16,"mat-form-field",4),T.NdJ("click",function(){T.CHM(Wt);const An=T.MAs(23);return T.KtG(An.open())}),T.TgZ(17,"mat-label"),T._uU(18),T.ALo(19,"translate"),T.qZA(),T.TgZ(20,"input",5),T.NdJ("dateChange",function(){return yt.setExpiration()}),T.qZA(),T._UZ(21,"mat-datepicker-toggle",6)(22,"mat-datepicker",7,8),T.qZA()(),T.YNc(24,$,3,3,"mat-radio-button",9),T.YNc(25,We,3,3,"mat-radio-button",10),T.TgZ(26,"mat-radio-button",11),T._uU(27),T.ALo(28,"translate"),T.qZA()(),T.YNc(29,At,3,3,"perun-web-apps-alert",12),T.qZA(),T.TgZ(30,"div",13)(31,"button",14),T.NdJ("click",function(){return yt.onCancel()}),T._uU(32),T.ALo(33,"translate"),T.ALo(34,"translate"),T.qZA(),T.TgZ(35,"button",15),T.NdJ("click",function(){return yt.onChange()}),T._uU(36),T.ALo(37,"translate"),T.qZA()()()}if(2&$e){const Wt=T.MAs(23);T.xp6(4),T.Oqu(T.lcZ(5,21,"DIALOGS.CHANGE_EXPIRATION.CURRENT_EXPIRATION")),T.xp6(2),T.hij(" ",T.lcZ(7,23,yt.currentExpiration)," "),T.xp6(4),T.Oqu(T.lcZ(11,25,"DIALOGS.CHANGE_EXPIRATION.NEW_EXPIRATION")),T.xp6(2),T.hij(" ",yt.newExpiration?T.lcZ(13,27,yt.newExpiration):"never"," "),T.xp6(2),T.Q6J("ngModel",yt.newExpiration),T.xp6(1),T.s9C("value",yt.expirationControl.value),T.xp6(3),T.Oqu(T.lcZ(19,29,"DIALOGS.CHANGE_EXPIRATION.DATE_LABEL")),T.xp6(2),T.Q6J("min",yt.minDate)("max",yt.maxDate)("formControl",yt.expirationControl)("matDatepicker",Wt),T.xp6(1),T.Q6J("for",Wt)("disabled",!1),T.xp6(1),T.Q6J("disabled",!1),T.xp6(2),T.Q6J("ngIf",yt.canExtendMembership&&"vo"===yt.mode),T.xp6(1),T.Q6J("ngIf",yt.canExtendMembership&&"group"===yt.mode),T.xp6(2),T.hij(" ",T.lcZ(28,31,"DIALOGS.CHANGE_EXPIRATION.EXPIRATION_NEVER")," "),T.xp6(2),T.Q6J("ngIf","EXPIRED"===yt.status&&("never"===yt.newExpiration||yt.parseDate(yt.expirationControl.value)>yt.currentDate)),T.xp6(3),T.hij(" ",yt.backButton?T.lcZ(33,33,"DIALOGS.CHANGE_EXPIRATION.BACK"):T.lcZ(34,35,"DIALOGS.CHANGE_EXPIRATION.CANCEL")," "),T.xp6(3),T.Q6J("disabled",yt.expirationControl.invalid),T.xp6(1),T.hij(" ",T.lcZ(37,37,"DIALOGS.CHANGE_EXPIRATION.SAVE")," ")}},dependencies:[e.O5,M.xY,M.H8,m.lW,b.KE,b.hX,b.R9,D.Fj,D.JJ,D.On,v.Nt,B.VQ,B.U0,w.Mq,w.hl,w.nW,D.oH,et.w,A.X$,St.M],styles:[".disable[_ngcontent-%COMP%]{cursor:not-allowed;pointer-events:none}.bottom-padding[_ngcontent-%COMP%]{padding-bottom:20px} .mat-form-field.mat-focused .mat-form-field-underline{display:none}"]}),lt})();function Xt(lt,Vt){1<&&T._UZ(0,"mat-spinner",4)}function yn(lt,Vt){if(1<){const $e=T.EpF();T.TgZ(0,"perun-web-apps-change-expiration-dialog",5),T.NdJ("statusChange",function(){T.CHM($e);const Wt=T.oxw();return T.KtG(Wt.changeStatus=!0)})("expirationChanged",function(Wt){T.CHM($e);const dn=T.oxw();return T.KtG(dn.onExpirationChanged(Wt))}),T.qZA()}if(2<){const $e=T.oxw();T.Q6J("minDate",$e.minDate)("maxDate",$e.maxDate)("currentExpiration",$e.currentExpiration)("newExpiration",$e.newExpiration)("canExtendMembership",$e.canExtendMembership)("mode","group")("status",$e.status)("backButton",$e.backButton)}}let Zn=(()=>{class lt{constructor($e,yt,Wt,dn,An,Yn,ri){this.dialogRef=$e,this.data=yt,this.attributesManagerService=Wt,this.memberManager=dn,this.groupManager=An,this.translate=Yn,this.notificator=ri,this.loading=!1,this.canExtendMembership=!1,this.expirationAttr=null,Yn.get("DIALOGS.CHANGE_EXPIRATION.SUCCESS").subscribe(bi=>this.successMessage=bi)}ngOnInit(){this.status=this.data.status,this.backButton=this.data.backButton,this.loading=!0;const $e=new Date;"VALID"!==this.data.status?this.maxDate="EXPIRED"===this.data.status?void 0:new Date($e.getFullYear(),$e.getMonth(),$e.getDate()):this.minDate=new Date($e.getFullYear(),$e.getMonth(),$e.getDate()),this.expirationAttr=this.data.expirationAttr,this.currentExpiration=this.expirationAttr?.value??"never",this.newExpiration=this.currentExpiration,this.data.statusChanged&&("VALID"!==this.data.status?(this.newExpiration=(0,e.p6)($e,"yyyy-MM-dd","en"),this.maxDate=$e):this.newExpiration="never"),"VALID"===this.data.status?this.attributesManagerService.getGroupAttributeByName(this.data.groupId,ut.r.GROUP_DEF_EXPIRATION_RULES).subscribe({next:yt=>{null!==yt.value?this.groupManager.canExtendMembershipInGroup(this.data.memberId,this.data.groupId).subscribe({next:Wt=>{this.canExtendMembership=!!Wt,this.loading=!1},error:()=>this.loading=!1}):this.loading=!1},error:()=>this.loading=!1}):this.loading=!1}onExpirationChanged($e){this.loading=!0,"groupRules"===$e?this.groupManager.extendMembershipInGroup(this.data.memberId,this.data.groupId).subscribe({next:()=>{this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0})},error:()=>this.loading=!1}):(this.expirationAttr.value="never"===$e?null:$e,this.attributesManagerService.setMemberGroupAttributes({member:this.data.memberId,group:this.data.groupId,attributes:[this.expirationAttr]}).subscribe({next:()=>{this.changeStatus&&"EXPIRED"===this.status?this.groupManager.setGroupsMemberStatus(this.data.memberId,this.data.groupId,"VALID").subscribe({next:yt=>{this.translate.get("DIALOGS.CHANGE_STATUS.SUCCESS").subscribe(Wt=>{this.notificator.showSuccess(Wt),this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0,member:yt})})},error:()=>this.loading=!1}):(this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0}))},error:()=>this.loading=!1}))}}return lt.\u0275fac=function($e){return new($e||lt)(T.Y36(M.so),T.Y36(M.WI),T.Y36(F.H8),T.Y36(F.uq),T.Y36(F.ff),T.Y36(A.sK),T.Y36(V.V6))},lt.\u0275cmp=T.Xpm({type:lt,selectors:[["perun-web-apps-change-group-expiration-dialog"]],decls:6,vars:5,consts:[[1,"member-theme"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[3,"minDate","maxDate","currentExpiration","newExpiration","canExtendMembership","mode","status","backButton","statusChange","expirationChanged",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"minDate","maxDate","currentExpiration","newExpiration","canExtendMembership","mode","status","backButton","statusChange","expirationChanged"]],template:function($e,yt){1&$e&&(T.TgZ(0,"div",0)(1,"h1",1),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.YNc(4,Xt,1,0,"mat-spinner",2),T.YNc(5,yn,1,8,"perun-web-apps-change-expiration-dialog",3),T.qZA()),2&$e&&(T.xp6(2),T.Oqu(T.lcZ(3,3,"DIALOGS.CHANGE_GROUP_EXPIRATION.TITLE")),T.xp6(2),T.Q6J("ngIf",yt.loading),T.xp6(1),T.Q6J("ngIf",!yt.loading))},dependencies:[e.O5,M.uh,R.Ou,Pt,A.X$]}),lt})();var Hn=p(13469);function Xn(lt,Vt){1<&&(T.TgZ(0,"mat-error"),T._uU(1),T.ALo(2,"translate"),T.qZA()),2<&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.FIELD_EMPTY")))}function mi(lt,Vt){if(1<){const $e=T.EpF();T.TgZ(0,"form",5)(1,"div",6)(2,"mat-form-field")(3,"mat-label"),T._uU(4),T.ALo(5,"translate"),T.qZA(),T._UZ(6,"input",7),T.TgZ(7,"mat-icon",8),T.NdJ("click",function(){T.CHM($e);const Wt=T.oxw();return T.KtG(Wt.showOldPassword=!Wt.showOldPassword)}),T._uU(8),T.qZA(),T.YNc(9,Xn,3,3,"mat-error",9),T.qZA(),T._UZ(10,"perun-web-apps-password-form",10),T.qZA()()}if(2<){const $e=T.oxw();T.Q6J("formGroup",$e.formGroup),T.xp6(4),T.Oqu(T.lcZ(5,7,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.OLD_PASSWORD")),T.xp6(2),T.Q6J("type",$e.showOldPassword?"text":"password"),T.xp6(2),T.hij(" ",$e.showOldPassword?"visibility_off":"visibility"," "),T.xp6(1),T.Q6J("ngIf",$e.oldPwd.hasError("required")),T.xp6(1),T.Q6J("formGroup",$e.formGroup)("namespace",$e.data.namespace)}}function di(lt,Vt){1<&&T._UZ(0,"mat-spinner",11)}function Jn(lt,Vt){if(1<){const $e=T.EpF();T.TgZ(0,"div",12)(1,"div",13)(2,"button",14),T.NdJ("click",function(){T.CHM($e);const Wt=T.oxw();return T.KtG(Wt.close())}),T._uU(3),T.ALo(4,"translate"),T.qZA(),T.TgZ(5,"button",15),T.NdJ("click",function(){T.CHM($e);const Wt=T.oxw();return T.KtG(Wt.changePassword())}),T._uU(6),T.ALo(7,"translate"),T.qZA()()()}if(2<){const $e=T.oxw();T.xp6(3),T.hij(" ",T.lcZ(4,3,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.CANCEL")," "),T.xp6(2),T.Q6J("disabled",$e.formGroup.invalid||$e.formGroup.pending),T.xp6(1),T.hij(" ",T.lcZ(7,5,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.CHANGE")," ")}}let Ln=(()=>{class lt{constructor($e,yt,Wt,dn,An,Yn,ri){this.dialogRef=$e,this.data=yt,this._formBuilder=Wt,this.usersManagerService=dn,this.apiRequestConfiguration=An,this.notificator=Yn,this.translate=ri,this.showOldPassword=!1,ri.get("SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.SUCCESS").subscribe(bi=>this.successMessage=bi)}ngOnInit(){this.formGroup=this._formBuilder.group({oldPasswordCtrl:["",D.kI.required],passwordCtrl:["",D.kI.required,[(0,pe.yT)(this.data.namespace,this.usersManagerService,this.apiRequestConfiguration)]],passwordAgainCtrl:[""]},{validators:tt.dN.passwordMatchValidator}),this.oldPwd=this.formGroup.get("oldPasswordCtrl"),this.newPwd=this.formGroup.get("passwordCtrl"),this.newPwdAgain=this.formGroup.get("passwordAgainCtrl")}close(){this.dialogRef.close(!1)}changePassword(){this.loading=!0,this.usersManagerService.changePasswordForLogin({login:this.data.login,namespace:this.data.namespace,newPassword:this.newPwd.value,oldPassword:this.oldPwd.value,checkOldPassword:!0}).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)})}}return lt.\u0275fac=function($e){return new($e||lt)(T.Y36(M.so),T.Y36(M.WI),T.Y36(D.QS),T.Y36(F.Fv),T.Y36(V.F5),T.Y36(V.V6),T.Y36(A.sK))},lt.\u0275cmp=T.Xpm({type:lt,selectors:[["perun-web-apps-change-password-dialog"]],decls:7,vars:6,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","user-theme"],[3,"formGroup",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[3,"formGroup"],[1,"display-flex"],["formControlName","oldPasswordCtrl","matInput","","required","",3,"type"],["matSuffix","",3,"click"],[4,"ngIf"],[3,"formGroup","namespace"],[1,"ml-auto","mr-auto"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function($e,yt){1&$e&&(T.TgZ(0,"h1",0),T._uU(1),T.ALo(2,"translate"),T.qZA(),T.TgZ(3,"div",1),T.YNc(4,mi,11,9,"form",2),T.YNc(5,di,1,0,"mat-spinner",3),T.qZA(),T.YNc(6,Jn,8,7,"div",4)),2&$e&&(T.xp6(1),T.Oqu(T.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.TITLE")),T.xp6(3),T.Q6J("ngIf",!yt.loading),T.xp6(1),T.Q6J("ngIf",yt.loading),T.xp6(1),T.Q6J("ngIf",!yt.loading))},dependencies:[e.O5,M.uh,M.xY,M.H8,m.lW,b.TO,b.KE,b.hX,b.R9,D._Y,D.Fj,D.JJ,D.JL,D.Q7,v.Nt,R.Ou,D.sg,D.u,O.Hw,Hn.G,A.X$],styles:[".display-flex[_ngcontent-%COMP%]{display:flex;flex-direction:column}.white-space-pre[_ngcontent-%COMP%]{white-space:pre}mat-icon[_ngcontent-%COMP%]:hover{cursor:default}"]}),lt})();function zi(lt,Vt){1<&&T._UZ(0,"mat-spinner",4)}function qn(lt,Vt){if(1<){const $e=T.EpF();T.TgZ(0,"perun-web-apps-change-expiration-dialog",5),T.NdJ("statusChange",function(){T.CHM($e);const Wt=T.oxw();return T.KtG(Wt.changeStatus=!0)})("expirationChanged",function(Wt){T.CHM($e);const dn=T.oxw();return T.KtG(dn.onExpirationChanged(Wt))}),T.qZA()}if(2<){const $e=T.oxw();T.Q6J("minDate",$e.minDate)("maxDate",$e.maxDate)("currentExpiration",$e.currentExpiration)("newExpiration",$e.newExpiration)("canExtendMembership",$e.canExtendMembership)("mode","vo")("status",$e.status)("backButton",$e.backButton)}}let si=(()=>{class lt{constructor($e,yt,Wt,dn,An,Yn){this.dialogRef=$e,this.data=yt,this.attributesManagerService=Wt,this.memberManager=dn,this.translate=An,this.notificator=Yn,this.loading=!1,this.canExtendMembership=!1,this.expirationAttr=null,An.get("DIALOGS.CHANGE_EXPIRATION.SUCCESS").subscribe(ri=>this.successMessage=ri)}ngOnInit(){this.status=this.data.status,this.backButton=this.data.backButton,this.loading=!0;const $e=new Date;"VALID"!==this.data.status?this.maxDate="EXPIRED"===this.data.status?void 0:new Date($e.getFullYear(),$e.getMonth(),$e.getDate()):this.minDate=new Date($e.getFullYear(),$e.getMonth(),$e.getDate()),this.expirationAttr=this.data.expirationAttr,this.currentExpiration=this.expirationAttr?.value??"never",this.newExpiration=this.currentExpiration,this.data.statusChanged&&("VALID"!==this.data.status?(this.newExpiration=(0,e.p6)($e,"yyyy-MM-dd","en"),this.maxDate=$e):this.newExpiration="never"),"VALID"===this.data.status?this.attributesManagerService.getVoAttributeByName(this.data.voId,ut.r.VO_DEF_EXPIRATION_RULES).subscribe({next:yt=>{null!==yt.value?this.memberManager.canExtendMembership(this.data.memberId).subscribe({next:Wt=>{this.canExtendMembership=!!Wt,this.loading=!1},error:()=>this.loading=!1}):this.loading=!1},error:()=>this.loading=!1}):this.loading=!1}onExpirationChanged($e){this.loading=!0,"voRules"===$e?this.memberManager.extendMembership(this.data.memberId).subscribe({next:()=>{this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0})},error:()=>this.loading=!1}):(this.expirationAttr.value="never"===$e?null:$e,this.attributesManagerService.setMemberAttribute({member:this.data.memberId,attribute:this.expirationAttr}).subscribe({next:()=>{this.changeStatus&&"EXPIRED"===this.status?this.memberManager.setStatus(this.data.memberId,"VALID").subscribe({next:yt=>{this.translate.get("DIALOGS.CHANGE_STATUS.SUCCESS").subscribe(Wt=>{this.notificator.showSuccess(Wt),this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0,member:yt})})},error:()=>this.loading=!1}):(this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0}))},error:()=>this.loading=!1}))}}return lt.\u0275fac=function($e){return new($e||lt)(T.Y36(M.so),T.Y36(M.WI),T.Y36(F.H8),T.Y36(F.uq),T.Y36(A.sK),T.Y36(V.V6))},lt.\u0275cmp=T.Xpm({type:lt,selectors:[["perun-web-apps-change-vo-expiration-dialog"]],decls:6,vars:5,consts:[[1,"member-theme"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[3,"minDate","maxDate","currentExpiration","newExpiration","canExtendMembership","mode","status","backButton","statusChange","expirationChanged",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"minDate","maxDate","currentExpiration","newExpiration","canExtendMembership","mode","status","backButton","statusChange","expirationChanged"]],template:function($e,yt){1&$e&&(T.TgZ(0,"div",0)(1,"h1",1),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.YNc(4,zi,1,0,"mat-spinner",2),T.YNc(5,qn,1,8,"perun-web-apps-change-expiration-dialog",3),T.qZA()),2&$e&&(T.xp6(2),T.Oqu(T.lcZ(3,3,"DIALOGS.CHANGE_VO_EXPIRATION.TITLE")),T.xp6(2),T.Q6J("ngIf",yt.loading),T.xp6(1),T.Q6J("ngIf",!yt.loading))},dependencies:[e.O5,M.uh,R.Ou,Pt,A.X$]}),lt})();function Yi(lt,Vt){1<&&T._UZ(0,"mat-spinner",4)}function tr(lt,Vt){if(1<){const $e=T.EpF();T.TgZ(0,"perun-web-apps-change-expiration-dialog",5),T.NdJ("expirationChanged",function(Wt){T.CHM($e);const dn=T.oxw();return T.KtG(dn.onExpirationChanged(Wt))}),T.qZA()}if(2<){const $e=T.oxw();T.Q6J("minDate",$e.minDate)("currentExpiration",$e.currentExpiration)("newExpiration",$e.newExpiration)("mode","sponsor")}}let Vi=(()=>{class lt{constructor($e,yt,Wt,dn,An,Yn,ri){this.dialogRef=$e,this.data=yt,this.attributesManagerService=Wt,this.memberManager=dn,this.groupManager=An,this.translate=Yn,this.notificator=ri,this.loading=!1,Yn.get("DIALOGS.CHANGE_EXPIRATION.SUCCESS").subscribe(bi=>this.successMessage=bi)}ngOnInit(){this.loading=!0,this.currentExpiration=this.data.sponsor.validityTo?this.data.sponsor.validityTo:"never",this.newExpiration=this.currentExpiration;const $e=new Date;this.minDate=new Date($e.getFullYear(),$e.getMonth(),$e.getDate()),this.loading=!1}onExpirationChanged($e){this.loading=!0,this.memberManager.updateSponsorshipValidity(this.data.memberId,this.data.sponsor.user.id,"never"===$e?null:$e).subscribe(()=>{this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0)},()=>this.loading=!1)}}return lt.\u0275fac=function($e){return new($e||lt)(T.Y36(M.so),T.Y36(M.WI),T.Y36(F.H8),T.Y36(F.uq),T.Y36(F.ff),T.Y36(A.sK),T.Y36(V.V6))},lt.\u0275cmp=T.Xpm({type:lt,selectors:[["perun-web-apps-change-sponsorship-expiration-dialog"]],decls:6,vars:5,consts:[[1,"member-theme"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[3,"minDate","currentExpiration","newExpiration","mode","expirationChanged",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"minDate","currentExpiration","newExpiration","mode","expirationChanged"]],template:function($e,yt){1&$e&&(T.TgZ(0,"div",0)(1,"h1",1),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.YNc(4,Yi,1,0,"mat-spinner",2),T.YNc(5,tr,1,4,"perun-web-apps-change-expiration-dialog",3),T.qZA()),2&$e&&(T.xp6(2),T.Oqu(T.lcZ(3,3,"DIALOGS.CHANGE_SPONSORSHIP_EXPIRATION.TITLE")),T.xp6(2),T.Q6J("ngIf",yt.loading),T.xp6(1),T.Q6J("ngIf",!yt.loading))},dependencies:[e.O5,M.uh,R.Ou,Pt,A.X$]}),lt})();function li(lt,Vt){1<&&T._UZ(0,"mat-spinner",4)}function or(lt,Vt){1<&&(T.TgZ(0,"span",11),T._uU(1),T.ALo(2,"translate"),T.qZA()),2<&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ACTIVE_HINT")," "))}function Ir(lt,Vt){1<&&(T.TgZ(0,"span",11),T._uU(1),T.ALo(2,"translate"),T.qZA()),2<&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.INACTIVE_HINT")," "))}function sr(lt,Vt){if(1<){const $e=T.EpF();T.TgZ(0,"mat-radio-group",12),T.NdJ("ngModelChange",function(Wt){T.CHM($e);const dn=T.oxw(2);return T.KtG(dn.asyncValidation=Wt)}),T.TgZ(1,"span",13),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.TgZ(4,"mat-radio-button",14),T._uU(5),T.ALo(6,"translate"),T.qZA(),T.TgZ(7,"mat-radio-button",14),T._uU(8),T.ALo(9,"translate"),T.qZA()()}if(2<){const $e=T.oxw(2);T.Q6J("ngModel",$e.asyncValidation),T.xp6(2),T.hij(" ",T.lcZ(3,6,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.VALIDATE")," : "),T.xp6(2),T.Q6J("value",!1),T.xp6(1),T.hij(" ",T.lcZ(6,8,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.SYNC")," "),T.xp6(2),T.Q6J("value",!0),T.xp6(1),T.hij(" ",T.lcZ(9,10,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ASYNC")," ")}}function lr(lt,Vt){1<&&(T.TgZ(0,"span",11),T._uU(1),T.ALo(2,"translate"),T.qZA()),2<&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.SYNC_HINT")," "))}function Ci(lt,Vt){1<&&(T.TgZ(0,"span",11),T._uU(1),T.ALo(2,"translate"),T.qZA()),2<&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ASYNC_HINT")," "))}function Er(lt,Vt){if(1<&&(T.TgZ(0,"div",5)(1,"p",6),T._uU(2),T.TgZ(3,"span",7),T._uU(4),T.qZA(),T._uU(5),T.TgZ(6,"span",7),T._uU(7),T.qZA()(),T.TgZ(8,"p")(9,"strong",8),T._uU(10),T.ALo(11,"translate"),T.qZA(),T._uU(12),T.qZA(),T.TgZ(13,"p")(14,"strong",8),T._uU(15),T.ALo(16,"translate"),T.qZA(),T._uU(17),T.qZA(),T.YNc(18,or,3,3,"span",9),T.YNc(19,Ir,3,3,"span",9),T.YNc(20,sr,10,12,"mat-radio-group",10),T.YNc(21,lr,3,3,"span",9),T.YNc(22,Ci,3,3,"span",9),T.qZA()),2<){const $e=T.oxw();T.xp6(2),T.hij(" ",$e.group.name," "),T.xp6(2),T.hij("#",$e.group.id,""),T.xp6(1),T.hij(" - ",$e.resource.name," "),T.xp6(2),T.hij("#",$e.resource.id,""),T.xp6(3),T.hij(" ",T.lcZ(11,13,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.CURRENT")," : "),T.xp6(2),T.hij(" ",$e.status," "),T.xp6(3),T.hij(" ",T.lcZ(16,15,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.NEW")," : "),T.xp6(2),T.hij(" ",$e.getReversedStatus()," "),T.xp6(1),T.Q6J("ngIf","INACTIVE"===$e.status||"FAILED"===$e.status),T.xp6(1),T.Q6J("ngIf","ACTIVE"===$e.status),T.xp6(1),T.Q6J("ngIf","INACTIVE"===$e.status||"FAILED"===$e.status),T.xp6(1),T.Q6J("ngIf",("INACTIVE"===$e.status||"FAILED"===$e.status)&&!1===$e.asyncValidation),T.xp6(1),T.Q6J("ngIf",("INACTIVE"===$e.status||"FAILED"===$e.status)&&!0===$e.asyncValidation)}}function Ur(lt,Vt){if(1<){const $e=T.EpF();T.TgZ(0,"div",15)(1,"button",16),T.NdJ("click",function(){T.CHM($e);const Wt=T.oxw();return T.KtG(Wt.onCancel())}),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.TgZ(4,"button",17),T.NdJ("click",function(){T.CHM($e);const Wt=T.oxw();return T.KtG(Wt.onSubmit())}),T._uU(5),T.ALo(6,"translate"),T.qZA()()}if(2<){const $e=T.oxw();T.xp6(2),T.hij(" ",T.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.CANCEL")," "),T.xp6(2),T.Q6J("disabled",$e.loading),T.xp6(1),T.hij(" ",T.lcZ(6,5,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG."+("ACTIVE"===$e.status?"DEACTIVATE":"ACTIVATE"))," ")}}let Ei=(()=>{class lt{constructor($e,yt,Wt,dn){this.dialogRef=$e,this.data=yt,this.resourceService=Wt,this.groupService=dn,this.loading=!1,this.asyncValidation=!1,this.resource=null,this.group=null}ngOnInit(){this.loading=!0,this.status=this.data.status,this.theme=this.data.theme,this.resourceService.getResourceById(this.data.resourceId).subscribe($e=>{this.resource=$e,this.groupService.getGroupById(this.data.groupId).subscribe(yt=>{this.group=yt,this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,"ACTIVE"===this.status?this.resourceService.deactivateGroupResourceAssignment(this.data.groupId,this.data.resourceId).subscribe(()=>{this.dialogRef.close(!0),this.loading=!1},()=>this.loading=!1):this.resourceService.activateGroupResourceAssignment(this.data.groupId,this.data.resourceId,this.asyncValidation).subscribe(()=>{this.dialogRef.close(!0),this.loading=!1},()=>this.loading=!1)}getReversedStatus(){return"ACTIVE"===this.status?"INACTIVE":"ACTIVE"}}return lt.\u0275fac=function($e){return new($e||lt)(T.Y36(M.so),T.Y36(M.WI),T.Y36(F.xk),T.Y36(F.ff))},lt.\u0275cmp=T.Xpm({type:lt,selectors:[["perun-web-apps-change-group-resource-assigment-dialog"]],decls:7,vars:9,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"mb-4"],[1,"text-muted","id-font"],[1,"mr-2"],["class","text-muted",4,"ngIf"],["class","d-flex flex-column mt-3",3,"ngModel","ngModelChange",4,"ngIf"],[1,"text-muted"],[1,"d-flex","flex-column","mt-3",3,"ngModel","ngModelChange"],[1,"font-weight-bold"],[3,"value"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["data-cy","change-status-button","mat-flat-button","","color","accent",3,"disabled","click"]],template:function($e,yt){1&$e&&(T.TgZ(0,"div")(1,"h1",0),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.YNc(4,li,1,0,"mat-spinner",1),T.YNc(5,Er,23,17,"div",2),T.YNc(6,Ur,7,7,"div",3),T.qZA()),2&$e&&(T.Tol(yt.theme),T.xp6(2),T.hij(" ",T.lcZ(3,7,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.TITLE")," "),T.xp6(2),T.Q6J("ngIf",yt.loading),T.xp6(1),T.Q6J("ngIf",!yt.loading),T.xp6(1),T.Q6J("ngIf",!yt.loading))},dependencies:[e.O5,M.uh,M.xY,M.H8,m.lW,D.JJ,D.On,R.Ou,B.VQ,B.U0,A.X$],styles:[".id-font[_ngcontent-%COMP%]{font-size:1rem}"]}),lt})();var Or=p(90995);let Nr=(()=>{class lt{constructor($e,yt,Wt,dn,An){this.dialogRef=$e,this.data=yt,this.notificator=Wt,this.usersService=dn,this.translate=An,this.force=!1,this.displayedColumns=["name"],this.relations=[]}ngOnInit(){this.theme=this.data.theme,this.dataSource=new C.by([this.data.user]),this.relations.push(this.translate.instant("DIALOGS.ANONYMIZE_USER.GROUP_RELATION")),this.relations.push(this.translate.instant("DIALOGS.ANONYMIZE_USER.VO_RELATION"))}onCancel(){this.dialogRef.close(!1)}anonymizeUser(){this.loading=!0,this.usersService.anonymizeUser(this.data.user.id,this.force).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.ANONYMIZE_USER.SUCCESS_NOTIFICATION")),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}onSubmit($e){this.force=$e.force,$e.deleted?this.anonymizeUser():this.onCancel()}}return lt.\u0275fac=function($e){return new($e||lt)(T.Y36(M.so),T.Y36(M.WI),T.Y36(V.V6),T.Y36(F.Fv),T.Y36(A.sK))},lt.\u0275cmp=T.Xpm({type:lt,selectors:[["perun-web-apps-anonymize-user-dialog"]],decls:2,vars:8,consts:[[3,"entityNames","entityType","relations","loading","anonymize","deleted"]],template:function($e,yt){1&$e&&(T.TgZ(0,"div")(1,"perun-web-apps-delete-entity-dialog",0),T.NdJ("deleted",function(dn){return yt.onSubmit(dn)}),T.qZA()()),2&$e&&(T.Tol(yt.theme),T.xp6(1),T.Q6J("entityNames",yt.dataSource)("entityType","user")("relations",yt.relations)("loading",yt.loading)("anonymize",!0))},dependencies:[Or.e]}),lt})(),kr=(()=>{class lt{constructor($e){this.dialogRef=$e}close(){this.dialogRef.close()}}return lt.\u0275fac=function($e){return new($e||lt)(T.Y36(M.so))},lt.\u0275cmp=T.Xpm({type:lt,selectors:[["perun-web-apps-export-data-dialog"]],decls:6,vars:4,consts:[[1,"loading-container"],["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","user-theme"],[1,"mr-auto","ml-auto",3,"diameter"]],template:function($e,yt){1&$e&&(T.TgZ(0,"div",0)(1,"h1",1),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.TgZ(4,"div",2),T._UZ(5,"mat-spinner",3),T.qZA()()),2&$e&&(T.xp6(2),T.hij(" ",T.lcZ(3,2,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.EXPORT_LOADING")," "),T.xp6(3),T.Q6J("diameter",50))},dependencies:[M.uh,M.xY,R.Ou,A.X$],styles:[".loading-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center}"]}),lt})();function Hr(lt,Vt){if(1<&&(T.TgZ(0,"mat-option",13),T._uU(1),T.qZA()),2<){const $e=Vt.$implicit,yt=T.oxw();T.Q6J("value",yt.selectedUnit),T.xp6(1),T.hij(" ",$e," ")}}let Pi=(()=>{class lt{constructor($e,yt,Wt,dn,An){this.dialogRef=$e,this.data=yt,this.rtMessagesService=Wt,this.notificator=dn,this.translate=An,this.resource="",this.currentQuota="",this.units=["MiB","GiB","TiB"],this.selectedUnit="GiB",An.get("DIALOGS.REQUEST_DATA_QUOTA_CHANGE.SUCCESS").subscribe(Yn=>this.successMessage=Yn)}ngOnInit(){this.resource=this.data.resource.name,this.currentQuota=this.data.currentQuota,this.reasonControl=new D.p4(null,[D.kI.required]),this.newValueControl=new D.p4(null,[D.kI.required,D.kI.pattern("[1-9][0-9]*")])}onCancel(){this.dialogRef.close()}onSubmit(){const Wt=`QUOTA CHANGE REQUEST\u21b5 \u21b5 User: ${(new q.dp).transform(this.data.user)} (user ID: ${this.data.user.id})\u21b5 VO: ${this.data.vo.shortName} / ${this.data.vo.name} (vo ID: ${this.data.vo.id})\u21b5 Resource: ${this.data.resource.name} (resource ID: ${this.data.resource.id})\u21b5 Data quota\u21b5 Requested quota: ${this.newValueControl.value}\u21b5 Reason: ${this.reasonControl.value}\u21b5 \u21b5 \u21b5 -------------------------------------\u21b5 Sent from Perun GUI`;this.rtMessagesService.sentMessageToRTWithVo(this.data.vo.id,"QUOTA: Change request",Wt).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.dialogRef.close()})}}return lt.\u0275fac=function($e){return new($e||lt)(T.Y36(M.so),T.Y36(M.WI),T.Y36(F.Hr),T.Y36(V.V6),T.Y36(A.sK))},lt.\u0275cmp=T.Xpm({type:lt,selectors:[["perun-web-apps-request-change-data-quota-dialog"]],decls:42,vars:42,consts:[["mat-dialog-title","",1,"mb-3"],[1,"user-theme"],[1,"column-size"],["fxLayout","row","fxFlexAlign","center center"],[1,"label-width"],["matInput","","required","","type","number",3,"placeholder","formControl"],[1,"select-width","mt-auto","mb-auto","ml-2",3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[1,"form-width"],["matInput","","required","","rows","4",3,"placeholder","formControl"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[3,"value"]],template:function($e,yt){1&$e&&(T.TgZ(0,"h1",0),T._uU(1),T.ALo(2,"translate"),T.ALo(3,"customTranslate"),T.qZA(),T.TgZ(4,"div",1)(5,"div")(6,"p",2),T._uU(7),T.ALo(8,"translate"),T.ALo(9,"customTranslate"),T.qZA(),T.TgZ(10,"p"),T._uU(11),T.qZA()(),T.TgZ(12,"div")(13,"p",2),T._uU(14),T.ALo(15,"translate"),T.ALo(16,"customTranslate"),T.qZA(),T.TgZ(17,"p"),T._uU(18),T.qZA()(),T.TgZ(19,"div",3)(20,"mat-form-field")(21,"label",4),T._UZ(22,"input",5),T.ALo(23,"translate"),T.ALo(24,"customTranslate"),T.qZA()(),T.TgZ(25,"mat-select",6),T.NdJ("valueChange",function(dn){return yt.selectedUnit=dn}),T.YNc(26,Hr,2,2,"mat-option",7),T.qZA()(),T.TgZ(27,"div")(28,"mat-form-field",8)(29,"label",4),T._UZ(30,"textarea",9),T.ALo(31,"translate"),T.ALo(32,"customTranslate"),T.qZA()()(),T.TgZ(33,"div",10)(34,"button",11),T.NdJ("click",function(){return yt.onCancel()}),T._uU(35),T.ALo(36,"translate"),T.ALo(37,"customTranslate"),T.qZA(),T.TgZ(38,"button",12),T.NdJ("click",function(){return yt.onSubmit()}),T._uU(39),T.ALo(40,"translate"),T.ALo(41,"customTranslate"),T.qZA()()()),2&$e&&(T.xp6(1),T.hij(" ",T.lcZ(2,14,T.lcZ(3,16,"SHARED_LIB.PERUN.COMPONENTS.REQUEST_DATA_QUOTA_CHANGE.TITLE")),"\n"),T.xp6(6),T.hij(" ",T.lcZ(8,18,T.lcZ(9,20,"SHARED_LIB.PERUN.COMPONENTS.REQUEST_DATA_QUOTA_CHANGE.RESOURCE"))," "),T.xp6(4),T.Oqu(yt.resource),T.xp6(3),T.hij(" ",T.lcZ(15,22,T.lcZ(16,24,"SHARED_LIB.PERUN.COMPONENTS.REQUEST_DATA_QUOTA_CHANGE.CURRENT_QUOTA"))," "),T.xp6(4),T.Oqu(yt.currentQuota),T.xp6(4),T.s9C("placeholder",T.lcZ(23,26,T.lcZ(24,28,"SHARED_LIB.PERUN.COMPONENTS.REQUEST_DATA_QUOTA_CHANGE.REQUESTED_QUOTA"))),T.Q6J("formControl",yt.newValueControl),T.xp6(3),T.Q6J("value",yt.selectedUnit),T.xp6(1),T.Q6J("ngForOf",yt.units),T.xp6(4),T.s9C("placeholder",T.lcZ(31,30,T.lcZ(32,32,"SHARED_LIB.PERUN.COMPONENTS.REQUEST_DATA_QUOTA_CHANGE.REASON"))),T.Q6J("formControl",yt.reasonControl),T.xp6(5),T.hij(" ",T.lcZ(36,34,T.lcZ(37,36,"SHARED_LIB.PERUN.COMPONENTS.REQUEST_DATA_QUOTA_CHANGE.CANCEL"))," "),T.xp6(3),T.Q6J("disabled",yt.reasonControl.invalid),T.xp6(1),T.hij(" ",T.lcZ(40,38,T.lcZ(41,40,"SHARED_LIB.PERUN.COMPONENTS.REQUEST_DATA_QUOTA_CHANGE.SEND"))," "))},dependencies:[e.sg,M.uh,M.H8,m.lW,b.KE,D.Fj,D.wV,D.JJ,D.Q7,v.Nt,D.oH,Te.gD,ee.ey,A.X$,u.a],styles:[".column-size[_ngcontent-%COMP%]{width:10rem!important;font-weight:700}.form-width[_ngcontent-%COMP%]{width:100%;overflow:hidden}.label-width[_ngcontent-%COMP%]{width:100%}.select-width[_ngcontent-%COMP%]{width:4rem}.mat-input-underline.mat-form-field-underline[_ngcontent-%COMP%], .mat-input-ripple.mat-form-field-ripple[_ngcontent-%COMP%]{display:none}"]}),lt})();function Ii(lt,Vt){1<&&(T.TgZ(0,"mat-error",8),T._uU(1),T.ALo(2,"translate"),T.ALo(3,"customTranslate"),T.qZA()),2<&&(T.xp6(1),T.Oqu(T.lcZ(2,1,T.lcZ(3,3,"DIALOGS.ADD_SSH.INVALID_TYPE"))))}class Mt{constructor(Vt,$e,yt){this.dialogRef=Vt,this.data=$e,this.attributesManagerService=yt}ngOnInit(){this.sshControl=new D.p4(null,[D.kI.required,D.kI.pattern(Mt.sshKeyPattern)])}onCancel(){this.dialogRef.close(!1)}onSubmit(){const Vt=this.data.attribute?.value??[],$e=this.sshControl.value;Vt.includes($e)||Vt.push($e),this.data.attribute.value=Vt,this.attributesManagerService.setUserAttribute({user:this.data.userId,attribute:this.data.attribute}).subscribe(()=>{this.dialogRef.close(!0)},()=>{Vt.pop()})}}function en(lt,Vt){1<&&T._UZ(0,"mat-spinner",4)}function ct(lt,Vt){1<&&T._UZ(0,"th",17)}function kt(lt,Vt){if(1<&&(T.TgZ(0,"td",18),T._uU(1),T.qZA()),2<){const $e=Vt.$implicit;T.xp6(1),T.Oqu($e)}}function Zt(lt,Vt){1<&&T._UZ(0,"tr",19)}function rn(lt,Vt){1<&&T._UZ(0,"tr",20)}function In(lt,Vt){if(1<&&(T.TgZ(0,"table",11),T.ynx(1,12),T.YNc(2,ct,1,0,"th",13),T.YNc(3,kt,2,1,"td",14),T.BQk(),T.YNc(4,Zt,1,0,"tr",15),T.YNc(5,rn,1,0,"tr",16),T.qZA()),2<){const $e=T.oxw(2);T.Q6J("dataSource",$e.dataSource),T.xp6(4),T.Q6J("matHeaderRowDef",$e.displayedColumns),T.xp6(1),T.Q6J("matRowDefColumns",$e.displayedColumns)}}function Bn(lt,Vt){if(1<){const $e=T.EpF();T.TgZ(0,"div",1)(1,"div",5)(2,"p"),T._uU(3),T.qZA(),T.TgZ(4,"div",6),T._uU(5),T.ALo(6,"translate"),T.ALo(7,"customTranslate"),T.qZA(),T.YNc(8,In,6,3,"table",7),T.qZA(),T.TgZ(9,"div",8)(10,"button",9),T.NdJ("click",function(){T.CHM($e);const Wt=T.oxw();return T.KtG(Wt.onCancel())}),T._uU(11),T.ALo(12,"translate"),T.ALo(13,"customTranslate"),T.qZA(),T.TgZ(14,"button",10),T.NdJ("click",function(){T.CHM($e);const Wt=T.oxw();return T.KtG(Wt.onSubmit())}),T._uU(15),T.ALo(16,"translate"),T.ALo(17,"customTranslate"),T.qZA()()()}if(2<){const $e=T.oxw();T.xp6(3),T.hij(" ",$e.description," "),T.xp6(2),T.hij(" ",T.lcZ(6,5,T.lcZ(7,7,"DIALOGS.REMOVE_STRING_VALUE.ASK"))," "),T.xp6(3),T.Q6J("ngIf",$e.dataSource.data.length),T.xp6(3),T.hij(" ",T.lcZ(12,9,T.lcZ(13,11,"DIALOGS.REMOVE_STRING_VALUE.CANCEL"))," "),T.xp6(4),T.hij(" ",T.lcZ(16,13,T.lcZ(17,15,"DIALOGS.REMOVE_STRING_VALUE.REMOVE"))," ")}}Mt.allowedSshKeys=["ssh-ed25519","ssh-ed25519-cert-v01@openssh.com","sk-ssh-ed25519@openssh.com","sk-ssh-ed25519-cert-v01@openssh.com","ssh-rsa","ssh-dss","ecdsa-sha2-nistp256","ecdsa-sha2-nistp384","ecdsa-sha2-nistp521","sk-ecdsa-sha2-nistp256@openssh.com","ssh-rsa-cert-v01@openssh.com","ssh-dss-cert-v01@openssh.com","ecdsa-sha2-nistp256-cert-v01@openssh.com","ecdsa-sha2-nistp384-cert-v01@openssh.com","ecdsa-sha2-nistp521-cert-v01@openssh.com","sk-ecdsa-sha2-nistp256-cert-v01@openssh.com"],Mt.sshKeyPattern="^("+Mt.allowedSshKeys.join("|")+").+$",Mt.\u0275fac=function(Vt){return new(Vt||Mt)(T.Y36(M.so),T.Y36(M.WI),T.Y36(F.H8))},Mt.\u0275cmp=T.Xpm({type:Mt,selectors:[["perun-web-apps-add-ssh-dialog"]],decls:20,vars:23,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","user-theme"],[1,"input-width"],["matInput","","required","","cdkTextareaAutosize","","cdkAutosizeMinRows","4",3,"placeholder","formControl"],["class","white-space-pre",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[1,"white-space-pre"]],template:function(Vt,$e){1&Vt&&(T.TgZ(0,"h1",0),T._uU(1),T.ALo(2,"translate"),T.ALo(3,"customTranslate"),T.qZA(),T.TgZ(4,"div",1)(5,"mat-form-field",2)(6,"label",2),T._UZ(7,"textarea",3),T.ALo(8,"translate"),T.ALo(9,"customTranslate"),T.qZA(),T.YNc(10,Ii,4,5,"mat-error",4),T.qZA()(),T.TgZ(11,"div",5)(12,"button",6),T.NdJ("click",function(){return $e.onCancel()}),T._uU(13),T.ALo(14,"translate"),T.ALo(15,"customTranslate"),T.qZA(),T.TgZ(16,"button",7),T.NdJ("click",function(){return $e.onSubmit()}),T._uU(17),T.ALo(18,"translate"),T.ALo(19,"customTranslate"),T.qZA()()),2&Vt&&(T.xp6(1),T.Oqu(T.lcZ(2,7,T.lcZ(3,9,"DIALOGS.ADD_SSH.TITLE"))),T.xp6(6),T.s9C("placeholder",T.lcZ(8,11,T.lcZ(9,13,"DIALOGS.ADD_SSH.INPUT_PLACEHOLDER"))),T.Q6J("formControl",$e.sshControl),T.xp6(3),T.Q6J("ngIf",$e.sshControl.invalid&&$e.sshControl.dirty),T.xp6(3),T.hij(" ",T.lcZ(14,15,T.lcZ(15,17,"DIALOGS.ADD_SSH.CANCEL"))," "),T.xp6(3),T.Q6J("disabled",$e.sshControl.invalid),T.xp6(1),T.hij(" ",T.lcZ(18,19,T.lcZ(19,21,"DIALOGS.ADD_SSH.ADD"))," "))},dependencies:[e.O5,D.Fj,D.JJ,D.Q7,m.lW,b.TO,b.KE,D.oH,o.IC,v.Nt,M.uh,M.xY,M.H8,A.X$,u.a],styles:[".input-width{width:100%}.white-space-pre{white-space:pre-wrap}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper{padding-bottom:0}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-underline{position:static!important;position:initial!important;display:block;margin-top:-1px}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper,perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-ripple{position:static!important;position:initial!important;display:table}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper{min-height:calc(1em + 1px)}\n"],encapsulation:2});let Qn=(()=>{class lt{constructor($e,yt,Wt){this.dialogRef=$e,this.data=yt,this.attributesManagerService=Wt,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new C.by(this.data.values),this.description=this.data.description,this.title=this.data.title}onCancel(){this.dialogRef.close(!1)}onSubmit(){if(this.loading=!0,this.data.doNotShowValues)this.data.attribute.value="";else{let $e=this.data.attribute?.value??[];void 0!==this.data.valueIndex?$e.splice(this.data.valueIndex,1):$e=$e.filter(yt=>!this.data.values.find(Wt=>Wt===yt)),this.data.attribute.value=$e}this.attributesManagerService.setUserAttribute({user:this.data.userId,attribute:this.data.attribute}).subscribe(()=>{this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}}return lt.\u0275fac=function($e){return new($e||lt)(T.Y36(M.so),T.Y36(M.WI),T.Y36(F.H8))},lt.\u0275cmp=T.Xpm({type:lt,selectors:[["perun-web-apps-remove-string-value-dialog"]],decls:5,vars:3,consts:[["mat-dialog-title",""],[1,"user-theme"],["class","ml-auto mr-auto",4,"ngIf"],["class","user-theme",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["class","w-100","mat-table","",3,"dataSource",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"click"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-header-row","","class","font-weight-bolder",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function($e,yt){1&$e&&(T.TgZ(0,"h1",0),T._uU(1),T.qZA(),T.TgZ(2,"div",1),T.YNc(3,en,1,0,"mat-spinner",2),T.qZA(),T.YNc(4,Bn,18,17,"div",3)),2&$e&&(T.xp6(1),T.Oqu(yt.title),T.xp6(2),T.Q6J("ngIf",yt.loading),T.xp6(1),T.Q6J("ngIf",!yt.loading))},dependencies:[e.O5,C.BZ,C.fO,C.as,C.w1,C.Dz,C.nj,C.ge,C.ev,C.XQ,C.Gk,R.Ou,m.lW,M.uh,M.xY,M.H8,A.X$,u.a]}),lt})(),ui=(()=>{class lt{constructor($e,yt){this.dialogRef=$e,this.data=yt}ngOnInit(){this.sshKey=this.data.value}onClose(){this.dialogRef.close()}}return lt.\u0275fac=function($e){return new($e||lt)(T.Y36(M.so),T.Y36(M.WI))},lt.\u0275cmp=T.Xpm({type:lt,selectors:[["perun-web-apps-show-ssh-dialog"]],decls:8,vars:6,consts:[[1,"user-theme"],["matInput","","cdkTextareaAutosize","","readonly","",1,"w-100","display-fix"],["mat-flat-button","","color","warn",1,"ml-auto",3,"click"]],template:function($e,yt){1&$e&&(T.TgZ(0,"div",0)(1,"textarea",1),T._uU(2),T.qZA()(),T.TgZ(3,"mat-dialog-actions")(4,"button",2),T.NdJ("click",function(){return yt.onClose()}),T._uU(5),T.ALo(6,"translate"),T.ALo(7,"customTranslate"),T.qZA()()),2&$e&&(T.xp6(2),T.Oqu(yt.sshKey),T.xp6(3),T.hij(" ",T.lcZ(6,2,T.lcZ(7,4,"DIALOGS.SHOW_SSH.CLOSE"))," "))},dependencies:[m.lW,o.IC,v.Nt,M.H8,A.X$,u.a],styles:[".display-fix[_ngcontent-%COMP%]{overflow:hidden;border:none}*[_ngcontent-%COMP%]:focus{outline:none}"]}),lt})();function nr(lt,Vt){if(1<&&(T.TgZ(0,"div",9),T._UZ(1,"perun-web-apps-notification",10),T.qZA()),2<){const $e=Vt.$implicit;T.xp6(1),T.Q6J("data",$e)("inDialog",!0)}}function Oi(lt,Vt){if(1<&&(T.TgZ(0,"div",6)(1,"cdk-virtual-scroll-viewport",7),T.YNc(2,nr,2,2,"div",8),T.qZA()()),2<){const $e=T.oxw();T.xp6(2),T.Q6J("cdkVirtualForOf",$e.notifications)}}function xi(lt,Vt){1<&&(T.TgZ(0,"perun-web-apps-alert",11),T._uU(1),T.ALo(2,"translate"),T.ALo(3,"customTranslate"),T.qZA()),2<&&(T.xp6(1),T.Oqu(T.lcZ(2,1,T.lcZ(3,3,"DIALOGS.NOTIFICATION_LIST.NO_NOTIFICATIONS_ALERT"))))}let qi=(()=>{class lt{constructor($e,yt){this.dialogRef=$e,this.notificationStorageService=yt}ngOnInit(){this.notifications=this.notificationStorageService.getNotifications()}onCancel(){this.dialogRef.close()}onClear(){this.notificationStorageService.clearNotifications(),this.notifications=[]}}return lt.\u0275fac=function($e){return new($e||lt)(T.Y36(M.so),T.Y36(V.SZ))},lt.\u0275cmp=T.Xpm({type:lt,selectors:[["perun-web-apps-show-notification-history-dialog"]],decls:15,vars:17,consts:[["mat-dialog-title",""],["class","hide-horizontal-scrollbar",4,"ngIf"],["alert_type","warn",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","",1,"ml-2",3,"click"],[1,"hide-horizontal-scrollbar"],["itemSize","50",1,"viewport"],["class","mb-1",4,"cdkVirtualFor","cdkVirtualForOf"],[1,"mb-1"],[3,"data","inDialog"],["alert_type","warn"]],template:function($e,yt){1&$e&&(T.TgZ(0,"h1",0),T._uU(1),T.ALo(2,"translate"),T.ALo(3,"customTranslate"),T.qZA(),T.YNc(4,Oi,3,1,"div",1),T.YNc(5,xi,4,5,"perun-web-apps-alert",2),T.TgZ(6,"div",3)(7,"button",4),T.NdJ("click",function(){return yt.onClear()}),T._uU(8),T.ALo(9,"translate"),T.ALo(10,"customTranslate"),T.qZA(),T.TgZ(11,"button",5),T.NdJ("click",function(){return yt.onCancel()}),T._uU(12),T.ALo(13,"translate"),T.ALo(14,"customTranslate"),T.qZA()()),2&$e&&(T.xp6(1),T.Oqu(T.lcZ(2,5,T.lcZ(3,7,"DIALOGS.NOTIFICATION_LIST.TITLE"))),T.xp6(3),T.Q6J("ngIf",0!==yt.notifications.length),T.xp6(1),T.Q6J("ngIf",0===yt.notifications.length),T.xp6(3),T.hij(" ",T.lcZ(9,9,T.lcZ(10,11,"DIALOGS.NOTIFICATION_LIST.CLEAR"))," "),T.xp6(4),T.hij(" ",T.lcZ(13,13,T.lcZ(14,15,"DIALOGS.NOTIFICATION_LIST.CANCEL"))," "))},styles:[".viewport[_ngcontent-%COMP%]{height:400px;width:470px}.hide-horizontal-scrollbar[_ngcontent-%COMP%]{overflow-x:hidden}"]}),lt})()},90995:(Xe,ue,p)=>{"use strict";p.d(ue,{e:()=>se});var e=p(94650),A=p(24006),C=p(30671),M=p(36895),m=p(65412),b=p(4859),D=p(59549),v=p(284),R=p(51572),B=p(97392),w=p(98380),L=p(96338),O=p(89383),q=p(31359);let te=(()=>{class le{constructor(k){this.translate=k}transform(k){return this.translate.instant(k?"DIALOGS.DELETE_ENTITY.TYPE_ANONYMIZE":"DIALOGS.DELETE_ENTITY.TYPE_DELETE")}}return le.\u0275fac=function(k){return new(k||le)(e.Y36(O.sK,16))},le.\u0275pipe=e.Yjl({name:"deleteDialogType",type:le,pure:!0}),le})();function z(le,N){1&le&&e._UZ(0,"mat-spinner",2)}const ie=function(le){return{action:le}};function Te(le,N){if(1&le&&(e.TgZ(0,"div",16),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"deleteDialogType"),e.ALo(4,"translate"),e.TgZ(5,"span",17),e._uU(6),e.ALo(7,"translate"),e.qZA(),e._uU(8),e.ALo(9,"translate"),e.qZA()),2&le){const k=e.oxw(2);e.xp6(1),e.lnq(" ",e.xi3(2,6,"DIALOGS.DELETE_ENTITY.BASIC",e.VKq(17,ie,e.lcZ(3,9,k.anonymize)))," ",e.lcZ(4,11,"DIALOGS.DELETE_ENTITY.ONLY")," ",k.entityType," "),e.xp6(5),e.Oqu(e.lcZ(7,13,"DIALOGS.DELETE_ENTITY.OR")),e.xp6(2),e.AsE(" ",k.entityType," ",e.lcZ(9,15,"DIALOGS.DELETE_ENTITY.RELATIONS"),"? ")}}function pe(le,N){if(1&le&&(e.TgZ(0,"div",16),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"deleteDialogType"),e.qZA()),2&le){const k=e.oxw(2);e.xp6(1),e.AsE(" ",e.xi3(2,2,"DIALOGS.DELETE_ENTITY.BASIC",e.VKq(7,ie,e.lcZ(3,5,k.anonymize)))," ",k.entityType," ? ")}}function Le(le,N){1&le&&e._UZ(0,"th",18)}function T(le,N){if(1&le&&(e.TgZ(0,"td",19),e._uU(1),e.ALo(2,"userFullName"),e.qZA()),2&le){const k=N.$implicit,be=e.oxw(2);e.xp6(1),e.hij(" ",be.anonymize?e.lcZ(2,1,k):k.name," ")}}function W(le,N){1&le&&e._UZ(0,"tr",20)}function F(le,N){1&le&&e._UZ(0,"tr",21)}function V(le,N){if(1&le){const k=e.EpF();e.TgZ(0,"button",22),e.NdJ("click",function(){e.CHM(k);const Z=e.oxw(2);return e.KtG(Z.force=!0)}),e.TgZ(1,"mat-icon"),e._uU(2,"warning"),e.qZA(),e._uU(3),e.ALo(4,"translate"),e.ALo(5,"titlecase"),e.ALo(6,"deleteDialogType"),e.ALo(7,"translate"),e.qZA()}if(2&le){const k=e.oxw(2);e.xp6(3),e.AsE(" ",e.xi3(4,2,"DIALOGS.DELETE_ENTITY.DELETE",e.VKq(11,ie,e.lcZ(5,5,e.lcZ(6,7,k.anonymize))))," ",e.lcZ(7,9,"DIALOGS.DELETE_ENTITY.RELATIONS")," ")}}const ee=function(){return["name"]};function Q(le,N){if(1&le){const k=e.EpF();e.TgZ(0,"div")(1,"h1",3),e._uU(2),e.ALo(3,"translate"),e.ALo(4,"titlecase"),e.ALo(5,"deleteDialogType"),e.qZA(),e.TgZ(6,"div",4),e.YNc(7,Te,10,19,"div",5),e.YNc(8,pe,4,9,"div",5),e.TgZ(9,"table",6),e.ynx(10,7),e.YNc(11,Le,1,0,"th",8),e.YNc(12,T,3,3,"td",9),e.BQk(),e.YNc(13,W,1,0,"tr",10),e.YNc(14,F,1,0,"tr",11),e.qZA()(),e.TgZ(15,"div",12)(16,"button",13),e.NdJ("click",function(){e.CHM(k);const Z=e.oxw();return e.KtG(Z.onCancel())}),e._uU(17),e.ALo(18,"translate"),e.qZA(),e.TgZ(19,"button",14),e.NdJ("click",function(){e.CHM(k);const Z=e.oxw();return e.KtG(Z.onDelete())}),e._uU(20),e.ALo(21,"translate"),e.ALo(22,"titlecase"),e.ALo(23,"deleteDialogType"),e.qZA(),e.YNc(24,V,8,13,"button",15),e.qZA()()}if(2&le){const k=e.oxw();e.xp6(2),e.AsE(" ",e.xi3(3,10,"DIALOGS.DELETE_ENTITY.DELETE",e.VKq(26,ie,e.lcZ(4,13,e.lcZ(5,15,k.anonymize))))," ",k.entityType," "),e.xp6(5),e.Q6J("ngIf",!k.disableForce),e.xp6(1),e.Q6J("ngIf",k.disableForce),e.xp6(1),e.Q6J("dataSource",k.entityNames),e.xp6(4),e.Q6J("matHeaderRowDef",e.DdM(28,ee)),e.xp6(1),e.Q6J("matRowDefColumns",e.DdM(29,ee)),e.xp6(3),e.hij(" ",e.lcZ(18,17,"DIALOGS.DELETE_ENTITY.CANCEL")," "),e.xp6(3),e.hij(" ",e.xi3(21,19,"DIALOGS.DELETE_ENTITY.DELETE",e.VKq(30,ie,e.lcZ(22,22,e.lcZ(23,24,k.anonymize))))," "),e.xp6(4),e.Q6J("ngIf",!k.disableForce)}}function Ee(le,N){if(1&le&&(e.TgZ(0,"mat-list-item")(1,"span")(2,"mat-icon",27),e._uU(3,"fiber_manual_record"),e.qZA(),e._uU(4),e.qZA()()),2&le){const k=N.$implicit;e.xp6(4),e.hij(" ",k," ")}}function ge(le,N){if(1&le&&(e.TgZ(0,"div"),e._uU(1),e.qZA()),2&le){const k=e.oxw(2);e.xp6(1),e.hij(" ",k.anotherMessage," ")}}function ve(le,N){1&le&&e._UZ(0,"th",18)}function De(le,N){if(1&le&&(e.TgZ(0,"td",19),e._uU(1),e.ALo(2,"userFullName"),e.qZA()),2&le){const k=N.$implicit,be=e.oxw(2);e.xp6(1),e.hij(" ",be.anonymize?e.lcZ(2,1,k):k.name," ")}}function he(le,N){1&le&&e._UZ(0,"tr",20)}function Ye(le,N){1&le&&e._UZ(0,"tr",21)}function Be(le,N){if(1&le){const k=e.EpF();e.TgZ(0,"div")(1,"h1",3),e._uU(2),e.ALo(3,"translate"),e.ALo(4,"titlecase"),e.ALo(5,"deleteDialogType"),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"div",4)(8,"div",16),e._uU(9),e.ALo(10,"translate"),e.TgZ(11,"mat-list"),e.YNc(12,Ee,5,1,"mat-list-item",23),e.qZA(),e.YNc(13,ge,2,1,"div",1),e.TgZ(14,"perun-web-apps-alert",24),e._uU(15),e.ALo(16,"translate"),e.ALo(17,"deleteDialogType"),e.qZA(),e.TgZ(18,"table",6),e.ynx(19,7),e.YNc(20,ve,1,0,"th",8),e.YNc(21,De,3,3,"td",9),e.BQk(),e.YNc(22,he,1,0,"tr",10),e.YNc(23,Ye,1,0,"tr",11),e.qZA()(),e.TgZ(24,"mat-form-field"),e._UZ(25,"input",25),e.ALo(26,"translate"),e.ALo(27,"uppercase"),e.ALo(28,"deleteDialogType"),e.qZA()(),e.TgZ(29,"div",12)(30,"button",13),e.NdJ("click",function(){e.CHM(k);const Z=e.oxw();return e.KtG(Z.onCancel())}),e._uU(31),e.ALo(32,"translate"),e.qZA(),e.TgZ(33,"button",26),e.NdJ("click",function(){e.CHM(k);const Z=e.oxw();return e.KtG(Z.onDelete())}),e.TgZ(34,"mat-icon"),e._uU(35,"warning"),e.qZA(),e._uU(36),e.ALo(37,"translate"),e.ALo(38,"titlecase"),e.ALo(39,"deleteDialogType"),e.ALo(40,"translate"),e.qZA()()()}if(2&le){const k=e.oxw();e.xp6(2),e.lnq(" ",e.xi3(3,17,"DIALOGS.DELETE_ENTITY.DELETE",e.VKq(51,ie,e.lcZ(4,20,e.lcZ(5,22,k.anonymize))))," ",k.entityType," ",e.lcZ(6,24,"DIALOGS.DELETE_ENTITY.RELATIONS")," "),e.xp6(7),e.hij(" ",e.lcZ(10,26,"DIALOGS.DELETE_ENTITY.WARN"),": "),e.xp6(3),e.Q6J("ngForOf",k.relations),e.xp6(1),e.Q6J("ngIf",k.anotherMessage),e.xp6(2),e.AsE(" ",e.xi3(16,28,"DIALOGS.DELETE_ENTITY.ASK",e.VKq(53,ie,e.lcZ(17,31,k.anonymize)))," ",k.entityType," ? "),e.xp6(3),e.Q6J("dataSource",k.entityNames),e.xp6(4),e.Q6J("matHeaderRowDef",e.DdM(55,ee)),e.xp6(1),e.Q6J("matRowDefColumns",e.DdM(56,ee)),e.xp6(2),e.s9C("placeholder",e.xi3(26,33,"DIALOGS.DELETE_ENTITY.CONTROL",e.VKq(57,ie,e.lcZ(27,36,e.lcZ(28,38,k.anonymize))))),e.Q6J("formControl",k.deleteControl),e.xp6(6),e.hij(" ",e.lcZ(32,40,"DIALOGS.DELETE_ENTITY.CANCEL")," "),e.xp6(2),e.Q6J("disabled",k.deleteControl.invalid),e.xp6(3),e.AsE(" ",e.xi3(37,42,"DIALOGS.DELETE_ENTITY.DELETE",e.VKq(59,ie,e.lcZ(38,45,e.lcZ(39,47,k.anonymize))))," ",e.lcZ(40,49,"DIALOGS.DELETE_ENTITY.RELATIONS")," ")}}let se=(()=>{class le{constructor(){this.entityNames=new C.by,this.relations=[],this.disableForce=!1,this.loading=!1,this.anonymize=!1,this.deleted=new e.vpe,this.force=!1}ngOnInit(){this.deleteReg=this.anonymize?/^ANONYMIZE$/:/^DELETE$/,this.deleteControl=new A.p4("",[A.kI.required,A.kI.pattern(this.deleteReg)])}onCancel(){this.deleted.emit({deleted:!1,force:!1})}onDelete(){this.deleted.emit({deleted:!0,force:this.force})}}return le.\u0275fac=function(k){return new(k||le)},le.\u0275cmp=e.Xpm({type:le,selectors:[["perun-web-apps-delete-entity-dialog"]],inputs:{title:"title",entityNames:"entityNames",entityType:"entityType",relations:"relations",anotherMessage:"anotherMessage",disableForce:"disableForce",loading:"loading",anonymize:"anonymize"},outputs:{deleted:"deleted"},decls:3,vars:3,consts:[["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["class","mb-4",4,"ngIf"],["mat-table","",1,"w-100","table-margin",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["data-cy","delete-button-dialog","color","warn","mat-flat-button","",1,"ml-2",3,"click"],["class","ml-2","data-cy","force-delete","color","warn","mat-flat-button","",3,"click",4,"ngIf"],[1,"mb-4"],[1,"font-weight-bold"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""],["data-cy","force-delete","color","warn","mat-flat-button","",1,"ml-2",3,"click"],[4,"ngFor","ngForOf"],["alert_type","warn"],["data-cy","force-delete-control","matInput","",3,"formControl","placeholder"],["data-cy","force-delete-button","color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"dot-icon"]],template:function(k,be){1&k&&(e.YNc(0,z,1,0,"mat-spinner",0),e.YNc(1,Q,25,32,"div",1),e.YNc(2,Be,41,61,"div",1)),2&k&&(e.Q6J("ngIf",be.loading),e.xp6(1),e.Q6J("ngIf",!be.force&&!be.loading),e.xp6(1),e.Q6J("ngIf",be.force&&!be.loading))},dependencies:[M.sg,M.O5,C.BZ,C.fO,C.as,C.w1,C.Dz,C.nj,C.ge,C.ev,C.XQ,C.Gk,m.uh,m.xY,m.H8,b.lW,D.KE,A.Fj,A.JJ,v.Nt,R.Ou,A.oH,B.Hw,w.w,L.i$,L.Tg,M.gd,M.rS,O.X$,q.d,te],styles:[".dot-icon[_ngcontent-%COMP%]{font-size:small;vertical-align:-1px}.table-margin[_ngcontent-%COMP%]{margin-top:-50px;margin-bottom:20px}"]}),le})()},22308:(Xe,ue,p)=>{"use strict";p.d(ue,{h:()=>A});var e=p(94650);let A=(()=>{class C{constructor(m){this.elementRef=m}ngOnInit(){this.elementRef.nativeElement.focus()}}return C.\u0275fac=function(m){return new(m||C)(e.Y36(e.SBq))},C.\u0275dir=e.lG2({type:C,selectors:[["","perunWebAppsAutoFocus",""]]}),C})()},73358:(Xe,ue,p)=>{"use strict";p.d(ue,{e:()=>A});var e=p(94650);let A=(()=>{class C{constructor(m,b){this.viewContainerRef=m,this.template=b,this.loading=!1,this.loadingIndicatorRef=null}ngOnInit(){this.viewContainerRef.createEmbeddedView(this.template)}ngOnChanges(){this.loading&&(this.loadingIndicatorRef=this.viewContainerRef.createEmbeddedView(this.loadingIndicator)),!this.loading&&this.loadingIndicatorRef&&this.loadingIndicatorRef.destroy()}}return C.\u0275fac=function(m){return new(m||C)(e.Y36(e.s_b),e.Y36(e.Rgc))},C.\u0275dir=e.lG2({type:C,selectors:[["","perunWebAppsLoader",""]],inputs:{loading:["perunWebAppsLoader","loading"],loadingIndicator:["perunWebAppsLoaderIndicator","loadingIndicator"]},features:[e.TTD]}),C})()},34198:(Xe,ue,p)=>{"use strict";p.d(ue,{Y:()=>A});var e=p(94650);let A=(()=>{class C{onClick(m){if(1===m.button&&null!=this.perunWebAppsMiddleClickRouterLink){const b=this.perunWebAppsMiddleClickRouterLink.join("/"),D=location.search;window.open(b+D)}}}return C.\u0275fac=function(m){return new(m||C)},C.\u0275dir=e.lG2({type:C,selectors:[["","perunWebAppsMiddleClickRouterLink",""]],hostBindings:function(m,b){1&m&&e.NdJ("mouseup",function(v){return b.onClick(v)})},inputs:{perunWebAppsMiddleClickRouterLink:"perunWebAppsMiddleClickRouterLink"}}),C})()},55660:(Xe,ue,p)=>{"use strict";p.d(ue,{Q:()=>C});var e=p(94364),A=p(94650);let C=(()=>{class M extends e.rH{constructor(){super(...arguments),this.queryParamsHandling="merge"}ngOnChanges(){if(this.queryParams&&"applicationFormItems"in this.queryParams){this.queryParamsHandling="";const b=Object.assign({},this.queryParams);delete b.applicationFormItems,this.queryParams=b}}}return M.\u0275fac=function(){let m;return function(D){return(m||(m=A.n5z(M)))(D||M)}}(),M.\u0275dir=A.lG2({type:M,selectors:[["tr","routerLink",""],["a","routerLink",""]],features:[A.qOj,A.TTD]}),M})()},40034:(Xe,ue,p)=>{"use strict";p.d(ue,{p:()=>e});var e=(()=>{return(A=e||(e={})).Admin="admin",A.Profile="profile",A.PwdReset="pwdReset",A.Consolidator="consolidator",A.Linker="linker",e;var A})()},91479:(Xe,ue,p)=>{"use strict";p.d(ue,{H:()=>D,o:()=>b});var e=p(61135),A=p(39841),C=p(39646),M=p(68675),m=p(63900);function b(v){return"_count"in v}class D{constructor(R,B,w,L){this.pageQuery$=new e.X({}),this.updateSubscription=null,this.data$=new e.X([]),this._filter=new e.X(""),this.data$.next(R),this._count=B,this._sort=w,this._paginator=L,this.update()}get data(){return this.data$.value}set data(R){this.data$.next(R)}get filteredData(){return this.data$.value}get count(){return this._count}set count(R){this._count=R}get sort(){return this._sort}set sort(R){this._sort=R,this.update()}get paginator(){return this._paginator}set paginator(R){this._paginator=R,this.update()}set filter(R){this._filter.next(R)}connect(){return this.data$.asObservable()}disconnect(){this.data$.complete(),this.updateSubscription?.unsubscribe()}sortData(R,B){return this.sort=B,R}update(){const R=this._sort.sortChange.pipe((0,M.O)({active:"NAME",direction:this._sort.direction})),B=this._paginator.page.pipe((0,M.O)({pageSize:5,pageIndex:this._paginator.pageIndex,length:this._paginator.length})),w=(0,A.a)([R,B,this._filter]).pipe((0,m.w)(([L,O,q])=>(0,C.of)({order:"asc"===L.direction?"ASCENDING":"DESCENDING",sortColumn:L.active.toUpperCase(),pageSize:O.pageSize,offset:O.pageIndex*O.pageSize,searchString:q})));this.updateSubscription?.unsubscribe(),this.updateSubscription=w.subscribe(L=>{this.pageQuery$.next(L)})}}},45323:(Xe,ue,p)=>{"use strict";p.d(ue,{u:()=>e});var e=(()=>{return(A=e||(e={})).PERUNADMIN="PERUNADMIN",A.PERUNOBSERVER="PERUNOBSERVER",A.VOADMIN="VOADMIN",A.GROUPADMIN="GROUPADMIN",A.GROUPOBSERVER="GROUPOBSERVER",A.GROUPMEMBERSHIPMANAGER="GROUPMEMBERSHIPMANAGER",A.SELF="SELF",A.FACILITYADMIN="FACILITYADMIN",A.FACILITIYOBSERVER="FACILITYOBSERVER",A.RESOURCEADMIN="RESOURCEADMIN",A.RESOURCESELFSERVICE="RESOURCESELFSERVICE",A.REGISTRAR="REGISTRAR",A.ENGINE="ENGINE",A.RPC="RPC",A.NOTIFICATIONS="NOTIFICATIONS",A.SERVICEUSER="SERVICEUSER",A.SPONSOR="SPONSOR",A.VOOBSERVER="VOOBSERVER",A.TOPGROUPCREATOR="TOPGROUPCREATOR",A.SECURITYADMIN="SECURITYADMIN",A.CABINETADMIN="CABINETADMIN",A.UNKNOWNROLENAME="UNKNOWNROLENAME",A.AUDITCONSUMERADMIN="AUDITCONSUMERADMIN",A.UNKNOWN="UNKNOWN",A.MEMBERSHIP="MEMBERSHIP",e;var A})()},28499:(Xe,ue,p)=>{"use strict";p.d(ue,{E3:()=>w,yT:()=>L.y});var e=p(36895),A=p(59549),C=p(10266),M=p(24006),m=p(284),b=p(89383),D=p(51572),v=p(97392),R=p(63189),B=p(94650);let w=(()=>{class q{}return q.\u0275fac=function(z){return new(z||q)},q.\u0275mod=B.oAB({type:q}),q.\u0275inj=B.cJS({imports:[e.ez,A.lN,C.AV,M.UX,m.c,b.aw,D.Cq,v.Ps,R.r]}),q})();var L=p(47549);p(13469)},13469:(Xe,ue,p)=>{"use strict";p.d(ue,{G:()=>Le});var e=p(47549),A=p(81591),C=p(61744),M=p(94650),m=p(89383),b=p(36895),D=p(59549),v=p(10266),R=p(24006),B=p(284),w=p(51572),L=p(97392),O=p(98380);function q(T,W){1&T&&M._UZ(0,"mat-spinner",12),2&T&&M.Q6J("diameter",18)}function te(T,W){if(1&T&&(M.TgZ(0,"mat-icon",13),M._uU(1," error "),M.qZA()),2&T){const F=M.oxw();M.Q6J("matTooltip",F.getErrorTooltip())("matTooltipDisabled",!F.formGroup.get("passwordCtrl").hasError("backendError"))}}function z(T,W){1&T&&(M.TgZ(0,"mat-error"),M._uU(1),M.ALo(2,"translate"),M.qZA()),2&T&&(M.xp6(1),M.Oqu(M.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function ie(T,W){if(1&T&&(M.TgZ(0,"mat-error",14),M._uU(1),M.qZA()),2&T){const F=M.oxw();M.Q6J("matTooltip",F.getErrorTooltip()),M.xp6(1),M.Oqu(F.getErrorTooltip())}}function Te(T,W){1&T&&(M.TgZ(0,"mat-error"),M._uU(1),M.ALo(2,"translate"),M.qZA()),2&T&&(M.xp6(1),M.Oqu(M.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function pe(T,W){1&T&&(M.TgZ(0,"mat-error"),M._uU(1),M.ALo(2,"translate"),M.qZA()),2&T&&(M.xp6(1),M.Oqu(M.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PWD_DONT_MATCH")))}let Le=(()=>{class T{constructor(F,V,ee){this.translator=F,this.usersManagerService=V,this.store=ee,this.passwordRequired=!0,this.tooltipPwdViaEmail=!1,this.tooltipPwdDisabledForNamespace=!1,this.language="en",this.passwordRequirement=null,this.showNewPassword=!1,this.showPasswordConfirm=!1,this.passwordStateMatcher=new e.S,this.allPasswordRequirements=this.store.getProperty("password_help")}ngOnInit(){window.location.href.includes("/profile")?this.usersManagerService.getRichUserWithAttributes(this.store.getPerunPrincipal().userId).subscribe(F=>{const V=F.userAttributes.find(ee=>"preferredLanguage"===ee.friendlyName);this.language=V?.value??"en","en"!==this.language&&(this.allPasswordRequirements=this.store.getProperty("en"===this.language?"password_help":"password_help_cs")),this.changeHelp()}):this.changeHelp()}ngOnChanges(){this.allPasswordRequirements=this.store.getProperty("en"===this.language?"password_help":"password_help_cs"),this.changeHelp()}getPasswordDisabledTooltip(){return this.translator.instant(this.tooltipPwdViaEmail?"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.TOOLTIP_PASSWORD_VIA_EMAIL":"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.TOOLTIP_PASSWORD_DISABLED")}getErrorTooltip(){let F=this.formGroup.get("passwordCtrl").getError("backendError");return F&&(F=F.replace(":null","")),F}changeHelp(){this.passwordRequirement=this.allPasswordRequirements[this.namespace],this.passwordRequirement||(this.passwordRequirement=this.allPasswordRequirements.default)}}return T.\u0275fac=function(F){return new(F||T)(M.Y36(m.sK),M.Y36(C.Fv),M.Y36(A.d6))},T.\u0275cmp=M.Xpm({type:T,selectors:[["perun-web-apps-password-form"]],inputs:{formGroup:"formGroup",passwordRequired:"passwordRequired",tooltipPwdViaEmail:"tooltipPwdViaEmail",tooltipPwdDisabledForNamespace:"tooltipPwdDisabledForNamespace",namespace:"namespace",language:"language"},features:[M.TTD],decls:21,vars:23,consts:[[3,"formGroup"],["matTooltipPosition","left",1,"max-width",3,"matTooltip","matTooltipDisabled"],["data-cy","passwd-input","matInput","","formControlName","passwordCtrl",3,"type","required","errorStateMatcher","placeholder"],["matSuffix","","class","input-spinner",3,"diameter",4,"ngIf"],["matSuffix","",3,"click"],["color","warn","matSuffix","","class","error-icon",3,"matTooltip","matTooltipDisabled",4,"ngIf"],[4,"ngIf"],["matTooltipPosition","after",3,"matTooltip",4,"ngIf"],[1,"max-width"],["data-cy","confirm-passwd-input","matInput","","formControlName","passwordAgainCtrl",3,"type","required"],["alert_type","info"],[3,"innerHTML"],["matSuffix","",1,"input-spinner",3,"diameter"],["color","warn","matSuffix","",1,"error-icon",3,"matTooltip","matTooltipDisabled"],["matTooltipPosition","after",3,"matTooltip"]],template:function(F,V){1&F&&(M.TgZ(0,"div",0)(1,"mat-form-field",1),M._UZ(2,"input",2),M.ALo(3,"translate"),M.YNc(4,q,1,1,"mat-spinner",3),M.TgZ(5,"mat-icon",4),M.NdJ("click",function(){return V.showNewPassword=!V.showNewPassword}),M._uU(6),M.qZA(),M.YNc(7,te,2,2,"mat-icon",5),M.YNc(8,z,3,3,"mat-error",6),M.YNc(9,ie,2,2,"mat-error",7),M.qZA(),M.TgZ(10,"mat-form-field",8)(11,"mat-label"),M._uU(12),M.ALo(13,"translate"),M.qZA(),M._UZ(14,"input",9),M.TgZ(15,"mat-icon",4),M.NdJ("click",function(){return V.showPasswordConfirm=!V.showPasswordConfirm}),M._uU(16),M.qZA(),M.YNc(17,Te,3,3,"mat-error",6),M.YNc(18,pe,3,3,"mat-error",6),M.qZA(),M.TgZ(19,"perun-web-apps-alert",10),M._UZ(20,"div",11),M.qZA()()),2&F&&(M.Q6J("formGroup",V.formGroup),M.xp6(1),M.Q6J("matTooltip",V.getPasswordDisabledTooltip())("matTooltipDisabled",V.formGroup.get("passwordCtrl").enabled||V.tooltipPwdDisabledForNamespace),M.xp6(1),M.s9C("placeholder",M.lcZ(3,19,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD")),M.Q6J("type",V.showNewPassword?"text":"password")("required",V.passwordRequired)("errorStateMatcher",V.passwordStateMatcher),M.xp6(2),M.Q6J("ngIf",V.formGroup.get("passwordCtrl").pending),M.xp6(2),M.hij(" ",V.showNewPassword?"visibility_off":"visibility"," "),M.xp6(1),M.Q6J("ngIf",V.formGroup.get("passwordCtrl").dirty&&null!==V.formGroup.get("passwordCtrl").errors),M.xp6(1),M.Q6J("ngIf",V.formGroup.get("passwordCtrl").hasError("required")),M.xp6(1),M.Q6J("ngIf",V.formGroup.get("passwordCtrl").hasError("backendError")),M.xp6(3),M.Oqu(M.lcZ(13,21,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD_AGAIN")),M.xp6(2),M.Q6J("type",V.showPasswordConfirm?"text":"password")("required",V.passwordRequired),M.xp6(2),M.hij(" ",V.showPasswordConfirm?"visibility_off":"visibility"," "),M.xp6(1),M.Q6J("ngIf",V.formGroup.get("passwordAgainCtrl").hasError("required")),M.xp6(1),M.Q6J("ngIf",V.formGroup.get("passwordAgainCtrl").hasError("noPasswordMatch")),M.xp6(2),M.Q6J("innerHTML",V.passwordRequirement,M.oJD))},dependencies:[b.O5,D.TO,D.KE,D.hX,D.R9,v.gM,R.Fj,R.JJ,R.JL,R.Q7,R.sg,R.u,B.Nt,w.Ou,L.Hw,O.w,m.X$],styles:[".max-width[_ngcontent-%COMP%]{width:100%!important}.input-spinner[_ngcontent-%COMP%]{float:right;margin-left:5px}.error-icon[_ngcontent-%COMP%]{margin-left:5px}mat-icon[_ngcontent-%COMP%]:hover{cursor:default}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper{padding-bottom:0}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-underline{position:static!important;position:initial!important;display:block;margin-top:-1px}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper, [_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-ripple{position:static!important;position:initial!important;display:table}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper{min-height:calc(1em + 1px)}"]}),T})()},47549:(Xe,ue,p)=>{"use strict";p.d(ue,{S:()=>b,y:()=>D});var e=p(82805),A=p(39646),C=p(63900),M=p(54004),m=p(70262);class b{isErrorState(R){return!(!R?.invalid||!R?.dirty)}}const D=(v,R,B,w=500)=>L=>(0,e.H)(w).pipe((0,C.w)(()=>(B.dontHandleErrorForNext(),v&&"No namespace"!==v?R.checkPasswordStrength({password:L.value,namespace:v},!0):(0,A.of)(null))),(0,M.U)(()=>null),(0,m.K)(O=>{const q={backendError:O.message.substring(O.message.indexOf(":")+1)};return(0,A.of)(q)}))},61744:(Xe,ue,p)=>{"use strict";p.d(ue,{au:()=>Ne,sY:()=>Ye,oW:()=>Be,H8:()=>D,jw:()=>v,Ct:()=>R,VK:()=>b,WY:()=>w,KG:()=>O,IQ:()=>q,ff:()=>te,uq:()=>ie,aC:()=>Te,Hr:()=>pe,tk:()=>Le,xk:()=>T,t7:()=>W,KK:()=>F,Ob:()=>V,Dy:()=>Ae,Fv:()=>ee,FW:()=>Q,YF:()=>Ee});var e=p(80529);class A{encodeKey(fe){return encodeURIComponent(fe)}encodeValue(fe){return encodeURIComponent(fe)}decodeKey(fe){return decodeURIComponent(fe)}decodeValue(fe){return decodeURIComponent(fe)}}var C=p(94650);const M=new C.OlP("basePath");class b{constructor(fe={}){this.apiKeys=fe.apiKeys,this.username=fe.username,this.password=fe.password,this.accessToken=fe.accessToken,this.basePath=fe.basePath,this.withCredentials=fe.withCredentials,this.encoder=fe.encoder,this.credentials=fe.credentials?fe.credentials:{},this.credentials.BasicAuth||(this.credentials.BasicAuth=()=>this.username||this.password?btoa(this.username+":"+this.password):void 0),this.credentials.BearerAuth||(this.credentials.BearerAuth=()=>"function"==typeof this.accessToken?this.accessToken():this.accessToken)}selectHeaderContentType(fe){if(0===fe.length)return;const r=fe.find(u=>this.isJsonMime(u));return void 0===r?fe[0]:r}selectHeaderAccept(fe){if(0===fe.length)return;const r=fe.find(u=>this.isJsonMime(u));return void 0===r?fe[0]:r}isJsonMime(fe){const r=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==fe&&(r.test(fe)||"application/json-patch+json"===fe.toLowerCase())}lookupCredential(fe){const r=this.credentials[fe];return"function"==typeof r?r():r}}let D=(()=>{class Ce{constructor(r,u,_){this.httpClient=r,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new e.WM,this.configuration=new b,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new A}addToHttpParams(r,u,_){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,_):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,_){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(E=>r=this.addToHttpParamsRecursive(r,E,_));else if(u instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,u.toISOString().substr(0,10))}else Object.keys(u).forEach(E=>r=this.addToHttpParamsRecursive(r,u[E],null!=_?`${_}.${E}`:E));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,u)}return r}convertAttributeToNonunique(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToNonunique.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"attributeDefinition"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToNonunique`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}convertAttributeToUnique(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToUnique.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"attributeDefinition"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToUnique`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}createAttributeDefinition(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputCreateAttributeDefinition was null or undefined when calling createAttributeDefinition.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/createAttribute`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}deleteAttributeDefinition(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter attribute was null or undefined when calling deleteAttributeDefinition.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"attribute"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttribute`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}deleteAttributeDefinitions(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter attributes was null or undefined when calling deleteAttributeDefinitions.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{a=this.addToHttpParams(a,d,"attributes[]")});let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttributes`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAllAttributeDefinitions(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/attributesManager/getAttributesDefinition`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getAttribute(r,u,_,E,h,a,i,t,n,o,s,l=!1,d="body",c=!1,S){let J=new e.LE({encoder:this.encoder});null!=r&&(J=this.addToHttpParams(J,r,"attributeName")),null!=u&&(J=this.addToHttpParams(J,u,"attributeId")),null!=_&&(J=this.addToHttpParams(J,_,"facility")),null!=E&&(J=this.addToHttpParams(J,E,"user")),null!=h&&(J=this.addToHttpParams(J,h,"vo")),null!=a&&(J=this.addToHttpParams(J,a,"resource")),null!=i&&(J=this.addToHttpParams(J,i,"member")),null!=t&&(J=this.addToHttpParams(J,t,"group")),null!=n&&(J=this.addToHttpParams(J,n,"host")),null!=o&&(J=this.addToHttpParams(J,o,"userExtSource")),null!=s&&(J=this.addToHttpParams(J,s,"key"));let ze,ht=this.defaultHeaders;ze=this.configuration.lookupCredential("BasicAuth"),ze&&(ht=ht.set("Authorization","Basic "+ze)),ze=this.configuration.lookupCredential("BearerAuth"),ze&&(ht=ht.set("Authorization","Bearer "+ze));let et=S&&S.httpHeaderAccept;void 0===et&&(et=this.configuration.selectHeaderAccept(["application/json"])),void 0!==et&&(ht=ht.set("Accept",et));let ne=S&&S.context;void 0===ne&&(ne=new e.qT);let Ue="json";et&&(Ue=et.startsWith("text")?"text":this.configuration.isJsonMime(et)?"json":"blob");let He=`${this.configuration.basePath}/json/attributesManager/getAttribute/any`;if(l){let Pe=new URL(He),Re=Pe.pathname.split("/");Re[1]="non",Pe.pathname=Re.join("/"),He=Pe.toString()}return this.httpClient.get(He,{context:ne,params:J,responseType:Ue,withCredentials:this.configuration.withCredentials,headers:ht,observe:d,reportProgress:c})}getAttributeDefinitionById(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getAttributeDefinitionById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getAttributeDefinitionById`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAttributeDefinitionByName(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter attributeName was null or undefined when calling getAttributeDefinitionByName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"attributeName"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getAttributeDefinition`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAttributeDefinitionsByNamespace(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter namespace was null or undefined when calling getAttributeDefinitionsByNamespace.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"namespace"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getAttributesDefinitionByNamespace`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAttributeModulesDependenciesForAttributeGraphText(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");if(null==u)throw new Error("Required parameter attrName was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"format")),null!=u&&(i=this.addToHttpParams(i,u,"attrName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText/for-attribute`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getAttributeModulesDependenciesGraphText(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesGraphText.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"format"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAttributePolicyCollections(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter attributeId was null or undefined when calling getAttributePolicyCollections.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"attributeId"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getAttributePolicyCollections`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAttributeRights(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter attributeId was null or undefined when calling getAttributeRights.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"attributeId"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getAttributeRights`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAttributeRules(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter attributeDefinition was null or undefined when calling getAttributeRules.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"attributeDefinition"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getAttributeRules`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAttributesDefinitionWithRights(r,u,_,E,h,a,i,t,n=!1,o="body",s=!1,l){let d=new e.LE({encoder:this.encoder});null!=r&&(d=this.addToHttpParams(d,r,"member")),null!=u&&(d=this.addToHttpParams(d,u,"user")),null!=_&&(d=this.addToHttpParams(d,_,"vo")),null!=E&&(d=this.addToHttpParams(d,E,"group")),null!=h&&(d=this.addToHttpParams(d,h,"resource")),null!=a&&(d=this.addToHttpParams(d,a,"facility")),null!=i&&(d=this.addToHttpParams(d,i,"host")),null!=t&&(d=this.addToHttpParams(d,t,"userExtSource"));let S,c=this.defaultHeaders;S=this.configuration.lookupCredential("BasicAuth"),S&&(c=c.set("Authorization","Basic "+S)),S=this.configuration.lookupCredential("BearerAuth"),S&&(c=c.set("Authorization","Bearer "+S));let J=l&&l.httpHeaderAccept;void 0===J&&(J=this.configuration.selectHeaderAccept(["application/json"])),void 0!==J&&(c=c.set("Accept",J));let ht=l&&l.context;void 0===ht&&(ht=new e.qT);let ze="json";J&&(ze=J.startsWith("text")?"text":this.configuration.isJsonMime(J)?"json":"blob");let et=`${this.configuration.basePath}/urlinjsonout/attributesManager/getAttributesDefinitionWithRights`;if(n){let ne=new URL(et),Ue=ne.pathname.split("/");Ue[1]="non",ne.pathname=Ue.join("/"),et=ne.toString()}return this.httpClient.get(et,{context:ht,params:d,responseType:ze,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:s})}getEntitylessAttributeByName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributeByName.");if(null==u)throw new Error("Required parameter attributeName was null or undefined when calling getEntitylessAttributeByName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"key")),null!=u&&(i=this.addToHttpParams(i,u,"attributeName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-entityless`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getEntitylessAttributesByKey(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributesByKey.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"key"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getAttributes/key`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getEntitylessAttributesByName(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesByName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"attrName"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributes`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getEntitylessAttributesWithKeys(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesWithKeys.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"attrName")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"keys[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributesWithKeys`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getEntitylessKeys(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter attributeDefinition was null or undefined when calling getEntitylessKeys.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"attributeDefinition"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getEntitylessKeys`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getFacilityAttributeById(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeById.");if(null==u)throw new Error("Required parameter attributeId was null or undefined when calling getFacilityAttributeById.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"attributeId"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-facility`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getFacilityAttributeByName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeByName.");if(null==u)throw new Error("Required parameter attributeName was null or undefined when calling getFacilityAttributeByName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"attributeName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-facility`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getFacilityAttributes(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributes.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getAttributes/f`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getFacilityAttributesByNames(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributesByNames.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getFacilityAttributesByNames.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttributes/f-names`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getFacilityResourceUserMemberAttributes(r,u,_,E,h=!1,a="body",i=!1,t){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==_)throw new Error("Required parameter user was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==E)throw new Error("Required parameter member was null or undefined when calling getFacilityResourceUserMemberAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=u&&(n=this.addToHttpParams(n,u,"resource")),null!=_&&(n=this.addToHttpParams(n,_,"user")),null!=E&&(n=this.addToHttpParams(n,E,"member"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let S=`${this.configuration.basePath}/json/attributesManager/getAttributes/f-r-u-m`;if(h){let J=new URL(S),ht=J.pathname.split("/");ht[1]="non",J.pathname=ht.join("/"),S=J.toString()}return this.httpClient.get(S,{context:d,params:n,responseType:c,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}getFacilityUserAttributes(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityUserAttributes.");if(null==u)throw new Error("Required parameter user was null or undefined when calling getFacilityUserAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttributes/f-u`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getGroupAttributeById(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeById.");if(null==u)throw new Error("Required parameter attributeId was null or undefined when calling getGroupAttributeById.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),null!=u&&(i=this.addToHttpParams(i,u,"attributeId"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getGroupAttributeByName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeByName.");if(null==u)throw new Error("Required parameter attributeName was null or undefined when calling getGroupAttributeByName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),null!=u&&(i=this.addToHttpParams(i,u,"attributeName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getGroupAttributes(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupAttributes.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getAttributes/g`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getGroupAttributesByNames(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupAttributesByNames.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getGroupAttributesByNames.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttributes/g-names`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getGroupResourceAttributeById(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeById.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeById.");if(null==_)throw new Error("Required parameter attributeId was null or undefined when calling getGroupResourceAttributeById.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"group")),null!=u&&(t=this.addToHttpParams(t,u,"resource")),null!=_&&(t=this.addToHttpParams(t,_,"attributeId"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group-resource`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getGroupResourceAttributeByName(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeByName.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeByName.");if(null==_)throw new Error("Required parameter attributeName was null or undefined when calling getGroupResourceAttributeByName.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"group")),null!=u&&(t=this.addToHttpParams(t,u,"resource")),null!=_&&(t=this.addToHttpParams(t,_,"attributeName"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group-resource`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getGroupResourceAttributes(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributes.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),null!=u&&(i=this.addToHttpParams(i,u,"resource"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttributes/group-resource`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getHostAttributeById(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter host was null or undefined when calling getHostAttributeById.");if(null==u)throw new Error("Required parameter attributeId was null or undefined when calling getHostAttributeById.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"host")),null!=u&&(i=this.addToHttpParams(i,u,"attributeId"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-host`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getHostAttributeByName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter host was null or undefined when calling getHostAttributeByName.");if(null==u)throw new Error("Required parameter attributeName was null or undefined when calling getHostAttributeByName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"host")),null!=u&&(i=this.addToHttpParams(i,u,"attributeName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-host`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getHostAttributes(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter host was null or undefined when calling getHostAttributes.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"host"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getAttributes/h`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getHostAttributesByNames(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter host was null or undefined when calling getHostAttributesByNames.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getHostAttributesByNames.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"host")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttributes/h-names`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getIdpAttributeDefinitions(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/attributesManager/getIdpAttributeDefinitions`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getLogins(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getLogins.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getLogins`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getMemberAndUserAttributes(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributes.");if(null==u)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),null!=u&&(i=this.addToHttpParams(i,u,"workWithUserAttributes"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-wu`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getMemberAndUserAttributesByNames(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==_)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributesByNames.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),u&&u.forEach(S=>{t=this.addToHttpParams(t,S,"attrNames[]")}),null!=_&&(t=this.addToHttpParams(t,_,"workWithUserAttributes"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names-wu`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getMemberAttributeById(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeById.");if(null==u)throw new Error("Required parameter attributeId was null or undefined when calling getMemberAttributeById.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),null!=u&&(i=this.addToHttpParams(i,u,"attributeId"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getMemberAttributeByName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeByName.");if(null==u)throw new Error("Required parameter attributeName was null or undefined when calling getMemberAttributeByName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),null!=u&&(i=this.addToHttpParams(i,u,"attributeName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getMemberAttributes(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberAttributes.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getAttributes/m`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getMemberAttributesByNames(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberAttributesByNames.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAttributesByNames.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getMemberGroupAndUserAttributesByNames(r,u,_,E,h=!1,a="body",i=!1,t){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==u)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==_)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==E)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberGroupAndUserAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),null!=u&&(n=this.addToHttpParams(n,u,"group")),_&&_.forEach(J=>{n=this.addToHttpParams(n,J,"attrNames[]")}),null!=E&&(n=this.addToHttpParams(n,E,"workWithUserAttributes"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let S=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names-wu`;if(h){let J=new URL(S),ht=J.pathname.split("/");ht[1]="non",J.pathname=ht.join("/"),S=J.toString()}return this.httpClient.get(S,{context:d,params:n,responseType:c,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}getMemberGroupAttributeById(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeById.");if(null==u)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeById.");if(null==_)throw new Error("Required parameter attributeId was null or undefined when calling getMemberGroupAttributeById.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=u&&(t=this.addToHttpParams(t,u,"group")),null!=_&&(t=this.addToHttpParams(t,_,"attributeId"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-group`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getMemberGroupAttributeByName(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeByName.");if(null==u)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeByName.");if(null==_)throw new Error("Required parameter attributeName was null or undefined when calling getMemberGroupAttributeByName.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=u&&(t=this.addToHttpParams(t,u,"group")),null!=_&&(t=this.addToHttpParams(t,_,"attributeName"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-group`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getMemberGroupAttributes(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributes.");if(null==u)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),null!=u&&(i=this.addToHttpParams(i,u,"group"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getMemberGroupAttributesByNames(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributesByNames.");if(null==u)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributesByNames.");if(null==_)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAttributesByNames.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=u&&(t=this.addToHttpParams(t,u,"group")),_&&_.forEach(S=>{t=this.addToHttpParams(t,S,"attrNames[]")});let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getMemberResourceAndUserFacilityAttributes(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==_)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=u&&(t=this.addToHttpParams(t,u,"resource")),null!=_&&(t=this.addToHttpParams(t,_,"workWithUserAttributes"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-wu`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getMemberResourceAndUserFacilityAttributesByNames(r,u,_,E,h=!1,a="body",i=!1,t){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==_)throw new Error("Required parameter attrNames was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==E)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),null!=u&&(n=this.addToHttpParams(n,u,"resource")),_&&_.forEach(J=>{n=this.addToHttpParams(n,J,"attrNames[]")}),null!=E&&(n=this.addToHttpParams(n,E,"workWithUserAttributes"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let S=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-names-wu`;if(h){let J=new URL(S),ht=J.pathname.split("/");ht[1]="non",J.pathname=ht.join("/"),S=J.toString()}return this.httpClient.get(S,{context:d,params:n,responseType:c,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}getMemberResourceAttributeById(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeById.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeById.");if(null==_)throw new Error("Required parameter attributeId was null or undefined when calling getMemberResourceAttributeById.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=u&&(t=this.addToHttpParams(t,u,"resource")),null!=_&&(t=this.addToHttpParams(t,_,"attributeId"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-resource`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getMemberResourceAttributeByName(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeByName.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeByName.");if(null==_)throw new Error("Required parameter attributeName was null or undefined when calling getMemberResourceAttributeByName.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=u&&(t=this.addToHttpParams(t,u,"resource")),null!=_&&(t=this.addToHttpParams(t,_,"attributeName"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-resource`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getMemberResourceAttributes(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributes.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),null!=u&&(i=this.addToHttpParams(i,u,"resource"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getRequiredAttributesDefinition(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesDefinition.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"service"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributesDefinition`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getRequiredAttributesFacility(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacility.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/f`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getRequiredAttributesFacilityService(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesFacilityService.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityService.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=u&&(i=this.addToHttpParams(i,u,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-f`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getRequiredAttributesFacilityServices(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesFacilityServices.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityServices.");let i=new e.LE({encoder:this.encoder});r&&r.forEach(c=>{i=this.addToHttpParams(i,c,"services[]")}),null!=u&&(i=this.addToHttpParams(i,u,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-f`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getRequiredAttributesGroupResourceService(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==_)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesGroupResourceService.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"service")),null!=u&&(t=this.addToHttpParams(t,u,"resource")),null!=_&&(t=this.addToHttpParams(t,_,"group"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getRequiredAttributesHostService(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesHostService.");if(null==u)throw new Error("Required parameter host was null or undefined when calling getRequiredAttributesHostService.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=u&&(i=this.addToHttpParams(i,u,"host"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-h`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getRequiredAttributesMember(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMember.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),null!=u&&(i=this.addToHttpParams(i,u,"workWithUserAttributes"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getRequiredAttributesMemberGroup(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroup.");if(null==u)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroup.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=u&&(t=this.addToHttpParams(t,u,"group")),null!=_&&(t=this.addToHttpParams(t,_,"workWithUserAttributes"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-g`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getRequiredAttributesMemberGroupResourceService(r,u,_,E,h,a=!1,i="body",t=!1,n){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==_)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==E)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"service")),null!=u&&(o=this.addToHttpParams(o,u,"resource")),null!=_&&(o=this.addToHttpParams(o,_,"group")),null!=E&&(o=this.addToHttpParams(o,E,"member")),null!=h&&(o=this.addToHttpParams(o,h,"workWithUserAttributes"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let c=n&&n.context;void 0===c&&(c=new e.qT);let S="json";d&&(S=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob");let J=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g-m`;if(a){let ht=new URL(J),ze=ht.pathname.split("/");ze[1]="non",ht.pathname=ze.join("/"),J=ht.toString()}return this.httpClient.get(J,{context:c,params:o,responseType:S,withCredentials:this.configuration.withCredentials,headers:s,observe:i,reportProgress:t})}getRequiredAttributesMemberGroupService(r,u,_,E,h=!1,a="body",i=!1,t){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==u)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==_)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupService.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=u&&(n=this.addToHttpParams(n,u,"group")),null!=_&&(n=this.addToHttpParams(n,_,"member")),null!=E&&(n=this.addToHttpParams(n,E,"workWithUserAttributes"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let S=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-g-m`;if(h){let J=new URL(S),ht=J.pathname.split("/");ht[1]="non",J.pathname=ht.join("/"),S=J.toString()}return this.httpClient.get(S,{context:d,params:n,responseType:c,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}getRequiredAttributesMemberResource(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResource.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResource.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=u&&(t=this.addToHttpParams(t,u,"resource")),null!=_&&(t=this.addToHttpParams(t,_,"workWithUserAttributes"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-r`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getRequiredAttributesMemberResourceService(r,u,_,E,h=!1,a="body",i=!1,t){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==_)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResourceService.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=u&&(n=this.addToHttpParams(n,u,"resource")),null!=_&&(n=this.addToHttpParams(n,_,"member")),null!=E&&(n=this.addToHttpParams(n,E,"workWithUserAttributes"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let S=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-m`;if(h){let J=new URL(S),ht=J.pathname.split("/");ht[1]="non",J.pathname=ht.join("/"),S=J.toString()}return this.httpClient.get(S,{context:d,params:n,responseType:c,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}getRequiredAttributesResource(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResource.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"resource"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/r`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getRequiredAttributesResourceService(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesResourceService.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceService.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=u&&(i=this.addToHttpParams(i,u,"resource"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getRequiredAttributesResourceServices(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesResourceServices.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceServices.");let i=new e.LE({encoder:this.encoder});r&&r.forEach(c=>{i=this.addToHttpParams(i,c,"services[]")}),null!=u&&(i=this.addToHttpParams(i,u,"resource"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-r`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getRequiredAttributesUser(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUser.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getRequiredAttributesUserFacility(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUserFacility.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesUserFacility.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),null!=u&&(i=this.addToHttpParams(i,u,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u-f`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getRequiredAttributesVoService(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesVoService.");if(null==u)throw new Error("Required parameter vo was null or undefined when calling getRequiredAttributesVoService.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=u&&(i=this.addToHttpParams(i,u,"vo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-v`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getResourceAttributeById(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeById.");if(null==u)throw new Error("Required parameter attributeId was null or undefined when calling getResourceAttributeById.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),null!=u&&(i=this.addToHttpParams(i,u,"attributeId"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-resource`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getResourceAttributeByName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeByName.");if(null==u)throw new Error("Required parameter attributeName was null or undefined when calling getResourceAttributeByName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),null!=u&&(i=this.addToHttpParams(i,u,"attributeName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-resource`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getResourceAttributes(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributes.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"resource"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getAttributes/r`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getResourceAttributesByNames(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributesByNames.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getResourceAttributesByNames.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-names`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getResourceGroupAndGroupAttributes(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==u)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==_)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributes.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"resource")),null!=u&&(t=this.addToHttpParams(t,u,"group")),null!=_&&(t=this.addToHttpParams(t,_,"workWithGroupAttributes"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-wg`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getResourceGroupAndGroupAttributesByNames(r,u,_,E,h=!1,a="body",i=!1,t){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==u)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==_)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==E)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),null!=u&&(n=this.addToHttpParams(n,u,"group")),_&&_.forEach(J=>{n=this.addToHttpParams(n,J,"attrNames[]")}),null!=E&&(n=this.addToHttpParams(n,E,"workWithGroupAttributes"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let S=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-names-wg`;if(h){let J=new URL(S),ht=J.pathname.split("/");ht[1]="non",J.pathname=ht.join("/"),S=J.toString()}return this.httpClient.get(S,{context:d,params:n,responseType:c,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}getResourceGroupAttributes(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAttributes.");if(null==u)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),null!=u&&(i=this.addToHttpParams(i,u,"group"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getResourceGroupMemberAttributesByNames(r,u,_,E,h=!1,a="body",i=!1,t){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==u)throw new Error("Required parameter group was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==_)throw new Error("Required parameter member was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==E)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupMemberAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),null!=u&&(n=this.addToHttpParams(n,u,"group")),null!=_&&(n=this.addToHttpParams(n,_,"member")),E&&E.forEach(J=>{n=this.addToHttpParams(n,J,"attrNames[]")});let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let S=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-m-names`;if(h){let J=new URL(S),ht=J.pathname.split("/");ht[1]="non",J.pathname=ht.join("/"),S=J.toString()}return this.httpClient.get(S,{context:d,params:n,responseType:c,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}getUserAttributeById(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling getUserAttributeById.");if(null==u)throw new Error("Required parameter attributeId was null or undefined when calling getUserAttributeById.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),null!=u&&(i=this.addToHttpParams(i,u,"attributeId"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getUserAttributeByName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling getUserAttributeByName.");if(null==u)throw new Error("Required parameter attributeName was null or undefined when calling getUserAttributeByName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),null!=u&&(i=this.addToHttpParams(i,u,"attributeName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getUserAttributes(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getUserAttributes.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getAttributes/u`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getUserAttributesByNames(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling getUserAttributesByNames.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getUserAttributesByNames.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttributes/u-names`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getUserExtSourceAttributeById(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeById.");if(null==u)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceAttributeById.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"userExtSource")),null!=u&&(i=this.addToHttpParams(i,u,"attributeId"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-ues`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getUserExtSourceAttributeByName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeByName.");if(null==u)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceAttributeByName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"userExtSource")),null!=u&&(i=this.addToHttpParams(i,u,"attributeName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-ues`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getUserExtSourceAttributes(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributes.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"userExtSource"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getAttributes/ues`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getUserExtSourceAttributesByNames(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributesByNames.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getUserExtSourceAttributesByNames.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"userExtSource")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttributes/ues-names`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getUserFacilityAttributeById(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeById.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeById.");if(null==_)throw new Error("Required parameter attributeId was null or undefined when calling getUserFacilityAttributeById.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"user")),null!=u&&(t=this.addToHttpParams(t,u,"facility")),null!=_&&(t=this.addToHttpParams(t,_,"attributeId"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user_facility`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getUserFacilityAttributeByName(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeByName.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeByName.");if(null==_)throw new Error("Required parameter attributeName was null or undefined when calling getUserFacilityAttributeByName.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"user")),null!=u&&(t=this.addToHttpParams(t,u,"facility")),null!=_&&(t=this.addToHttpParams(t,_,"attributeName"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user_facility`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getUserFacilityAttributes(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributes.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),null!=u&&(i=this.addToHttpParams(i,u,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttributes/user-facility`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getVoAttributeById(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeById.");if(null==u)throw new Error("Required parameter attributeId was null or undefined when calling getVoAttributeById.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=u&&(i=this.addToHttpParams(i,u,"attributeId"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-vo`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getVoAttributeByName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeByName.");if(null==u)throw new Error("Required parameter attributeName was null or undefined when calling getVoAttributeByName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=u&&(i=this.addToHttpParams(i,u,"attributeName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-vo`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getVoAttributes(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoAttributes.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/attributesManager/getAttributes/vo`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getVoAttributesByNames(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoAttributesByNames.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getVoAttributesByNames.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/getAttributes/vo-names`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeAttributesForFacilityResourceGroupUserMember(r,u,_,E,h,a,i=!1,t="body",n=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==_)throw new Error("Required parameter group was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==E)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==h)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==a)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,r,"facility")),null!=u&&(s=this.addToHttpParams(s,u,"resource")),null!=_&&(s=this.addToHttpParams(s,_,"group")),null!=E&&(s=this.addToHttpParams(s,E,"user")),null!=h&&(s=this.addToHttpParams(s,h,"member")),a&&a.forEach(ze=>{s=this.addToHttpParams(s,ze,"attributes[]")});let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let c=o&&o.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(l=l.set("Accept",c));let S=o&&o.context;void 0===S&&(S=new e.qT);let J="json";c&&(J=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let ht=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-g-u-m`;if(i){let ze=new URL(ht),et=ze.pathname.split("/");et[1]="non",ze.pathname=et.join("/"),ht=ze.toString()}return this.httpClient.post(ht,null,{context:S,params:s,responseType:J,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:n})}removeAttributesForFacilityResourceUserMember(r,u,_,E,h,a=!1,i="body",t=!1,n){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==_)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==E)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==h)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceUserMember.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility")),null!=u&&(o=this.addToHttpParams(o,u,"resource")),null!=_&&(o=this.addToHttpParams(o,_,"user")),null!=E&&(o=this.addToHttpParams(o,E,"member")),h&&h.forEach(ht=>{o=this.addToHttpParams(o,ht,"attributes[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let c=n&&n.context;void 0===c&&(c=new e.qT);let S="json";d&&(S=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob");let J=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-u-m`;if(a){let ht=new URL(J),ze=ht.pathname.split("/");ze[1]="non",ht.pathname=ze.join("/"),J=ht.toString()}return this.httpClient.post(J,null,{context:c,params:o,responseType:S,withCredentials:this.configuration.withCredentials,headers:s,observe:i,reportProgress:t})}removeEntitylessAttribute(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter key was null or undefined when calling removeEntitylessAttribute.");if(null==u)throw new Error("Required parameter attribute was null or undefined when calling removeEntitylessAttribute.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"key")),null!=u&&(i=this.addToHttpParams(i,u,"attribute"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/e`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeFacilityAttribute(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttribute.");if(null==u)throw new Error("Required parameter attribute was null or undefined when calling removeFacilityAttribute.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"attribute"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/f`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeFacilityAttributes(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttributes.");if(null==u)throw new Error("Required parameter attributes was null or undefined when calling removeFacilityAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attributes[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeGroupAttribute(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling removeGroupAttribute.");if(null==u)throw new Error("Required parameter attribute was null or undefined when calling removeGroupAttribute.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),null!=u&&(i=this.addToHttpParams(i,u,"attribute"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeGroupAttributes(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling removeGroupAttributes.");if(null==u)throw new Error("Required parameter attributes was null or undefined when calling removeGroupAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attributes[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeGroupResourceAttribute(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttribute.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttribute.");if(null==_)throw new Error("Required parameter attribute was null or undefined when calling removeGroupResourceAttribute.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"group")),null!=u&&(t=this.addToHttpParams(t,u,"resource")),null!=_&&(t=this.addToHttpParams(t,_,"attribute"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g-r`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}removeGroupResourceAttributes(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributes.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributes.");if(null==_)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributes.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"group")),null!=u&&(t=this.addToHttpParams(t,u,"resource")),_&&_.forEach(S=>{t=this.addToHttpParams(t,S,"attributes[]")});let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}removeGroupResourceAttributesWorkWithGroupAttributes(r,u,_,E,h=!1,a="body",i=!1,t){if(null==r)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==_)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==E)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),null!=u&&(n=this.addToHttpParams(n,u,"resource")),_&&_.forEach(J=>{n=this.addToHttpParams(n,J,"attributes[]")}),null!=E&&(n=this.addToHttpParams(n,E,"workWithGroupAttributes"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let S=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r-workWithGroupAttributes`;if(h){let J=new URL(S),ht=J.pathname.split("/");ht[1]="non",J.pathname=ht.join("/"),S=J.toString()}return this.httpClient.post(S,null,{context:d,params:n,responseType:c,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}removeHostAttribute(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter host was null or undefined when calling removeHostAttribute.");if(null==u)throw new Error("Required parameter attribute was null or undefined when calling removeHostAttribute.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"host")),null!=u&&(i=this.addToHttpParams(i,u,"attribute"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/h`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeHostAttributes(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter host was null or undefined when calling removeHostAttributes.");if(null==u)throw new Error("Required parameter attributes was null or undefined when calling removeHostAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"host")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attributes[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/h`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeMemberAttribute(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeMemberAttribute.");if(null==u)throw new Error("Required parameter attribute was null or undefined when calling removeMemberAttribute.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),null!=u&&(i=this.addToHttpParams(i,u,"attribute"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeMemberAttributes(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributes.");if(null==u)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attributes[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeMemberAttributesWorkWithUserAttributes(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==u)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==_)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),u&&u.forEach(S=>{t=this.addToHttpParams(t,S,"attributes[]")}),null!=_&&(t=this.addToHttpParams(t,_,"workWithUserAttributes"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-workWithUserAttributes`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}removeMemberGroupAttribute(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttribute.");if(null==u)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttribute.");if(null==_)throw new Error("Required parameter attribute was null or undefined when calling removeMemberGroupAttribute.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=u&&(t=this.addToHttpParams(t,u,"group")),null!=_&&(t=this.addToHttpParams(t,_,"attribute"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-g`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}removeMemberGroupAttributes(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributes.");if(null==u)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributes.");if(null==_)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributes.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=u&&(t=this.addToHttpParams(t,u,"group")),_&&_.forEach(S=>{t=this.addToHttpParams(t,S,"attributes[]")});let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}removeMemberGroupAttributesWorkWithUserAttributes(r,u,_,E,h=!1,a="body",i=!1,t){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==u)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==_)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==E)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),null!=u&&(n=this.addToHttpParams(n,u,"group")),_&&_.forEach(J=>{n=this.addToHttpParams(n,J,"attributes[]")}),null!=E&&(n=this.addToHttpParams(n,E,"workWithUserAttributes"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let S=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g-workWithUserAttributes`;if(h){let J=new URL(S),ht=J.pathname.split("/");ht[1]="non",J.pathname=ht.join("/"),S=J.toString()}return this.httpClient.post(S,null,{context:d,params:n,responseType:c,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}removeMemberResourceAttribute(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttribute.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttribute.");if(null==_)throw new Error("Required parameter attribute was null or undefined when calling removeMemberResourceAttribute.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=u&&(t=this.addToHttpParams(t,u,"resource")),null!=_&&(t=this.addToHttpParams(t,_,"attribute"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-r`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}removeMemberResourceAttributes(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttributes.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttributes.");if(null==_)throw new Error("Required parameter attributes was null or undefined when calling removeMemberResourceAttributes.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=u&&(t=this.addToHttpParams(t,u,"resource")),_&&_.forEach(S=>{t=this.addToHttpParams(t,S,"attributes[]")});let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-r`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}removeResourceAttribute(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttribute.");if(null==u)throw new Error("Required parameter attribute was null or undefined when calling removeResourceAttribute.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),null!=u&&(i=this.addToHttpParams(i,u,"attribute"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/r`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeResourceAttributes(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttributes.");if(null==u)throw new Error("Required parameter attributes was null or undefined when calling removeResourceAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attributes[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/r`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeUesAttributes(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter userExtSource was null or undefined when calling removeUesAttributes.");if(null==u)throw new Error("Required parameter attributes was null or undefined when calling removeUesAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"userExtSource")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attributes[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/ues`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeUserAttribute(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling removeUserAttribute.");if(null==u)throw new Error("Required parameter attribute was null or undefined when calling removeUserAttribute.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),null!=u&&(i=this.addToHttpParams(i,u,"attribute"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeUserAttributes(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling removeUserAttributes.");if(null==u)throw new Error("Required parameter attributes was null or undefined when calling removeUserAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attributes[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeUserExtSourceAttribute(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSourceAttribute.");if(null==u)throw new Error("Required parameter attribute was null or undefined when calling removeUserExtSourceAttribute.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"userExtSource")),null!=u&&(i=this.addToHttpParams(i,u,"attribute"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/ues`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeUserFacilityAttribute(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttribute.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttribute.");if(null==_)throw new Error("Required parameter attribute was null or undefined when calling removeUserFacilityAttribute.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"user")),null!=u&&(t=this.addToHttpParams(t,u,"facility")),null!=_&&(t=this.addToHttpParams(t,_,"attribute"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u-f`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}removeUserFacilityAttributes(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttributes.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttributes.");if(null==_)throw new Error("Required parameter attributes was null or undefined when calling removeUserFacilityAttributes.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"user")),null!=u&&(t=this.addToHttpParams(t,u,"facility")),_&&_.forEach(S=>{t=this.addToHttpParams(t,S,"attributes[]")});let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u-f`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}removeVoAttribute(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling removeVoAttribute.");if(null==u)throw new Error("Required parameter attribute was null or undefined when calling removeVoAttribute.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=u&&(i=this.addToHttpParams(i,u,"attribute"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/v`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeVoAttributes(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling removeVoAttributes.");if(null==u)throw new Error("Required parameter attributes was null or undefined when calling removeVoAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attributes[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/v`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}setAttributeActionCriticality(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter attributeDefinition was null or undefined when calling setAttributeActionCriticality.");if(null==u)throw new Error("Required parameter action was null or undefined when calling setAttributeActionCriticality.");if(null==_)throw new Error("Required parameter critical was null or undefined when calling setAttributeActionCriticality.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"attributeDefinition")),null!=u&&(t=this.addToHttpParams(t,u,"action")),null!=_&&(t=this.addToHttpParams(t,_,"critical"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/attributesManager/setAttributeActionCriticality`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}setAttributePolicyCollections(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputAttributePolicyCollections was null or undefined when calling setAttributePolicyCollections.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributePolicyCollections`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}setAttributeRights(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputAttributeRights was null or undefined when calling setAttributeRights.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributeRights`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}setEntitylessAttribute(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputEntitylessAttribute was null or undefined when calling setEntitylessAttribute.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttribute/entityless`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}setFacilityAttribute(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputSetFacilityAttribute was null or undefined when calling setFacilityAttribute.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttribute/facility`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}setFacilityAttributes(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputSetFacilityAttributes was null or undefined when calling setFacilityAttributes.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributes/f`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}setFacilityResourceGroupUserMemberAttributes(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputSetFacilityResourceGroupUserMemberAttributes was null or undefined when calling setFacilityResourceGroupUserMemberAttributes.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-g-u-m`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}setFacilityResourceUserMemberAttributes(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputSetFacilityResourceUserMemberAttributes was null or undefined when calling setFacilityResourceUserMemberAttributes.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-u-m`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}setFacilityUserAttributes(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputSetFacilityUserAttributes was null or undefined when calling setFacilityUserAttributes.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributes/f-u`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}setGroupAttribute(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputSetGroupAttribute was null or undefined when calling setGroupAttribute.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttribute/group`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}setGroupAttributes(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputSetGroupAttributes was null or undefined when calling setGroupAttributes.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributes/g`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}setGroupResourceAttribute(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputSetGroupResourceAttribute was null or undefined when calling setGroupResourceAttribute.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttribute/group-resource`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}setGroupResourceAttributes(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputSetGroupResourceAttributes was null or undefined when calling setGroupResourceAttributes.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributes/group-resource`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}setHostAttribute(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputSetHostAttribute was null or undefined when calling setHostAttribute.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttribute/host`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}setHostAttributes(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputSetHostAttributes was null or undefined when calling setHostAttributes.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributes/h`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}setMemberAttribute(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputSetMemberAttribute was null or undefined when calling setMemberAttribute.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttribute/member`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}setMemberAttributes(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputSetMemberAttributes was null or undefined when calling setMemberAttributes.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributes/m`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}setMemberGroupAttribute(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputSetMemberGroupAttribute was null or undefined when calling setMemberGroupAttribute.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttribute/member-group`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}setMemberGroupAttributes(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputSetMemberGroupAttributes was null or undefined when calling setMemberGroupAttributes.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}setMemberGroupWithUserAttributes(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputSetMemberGroupWithUserAttributes was null or undefined when calling setMemberGroupWithUserAttributes.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g-wu`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}setMemberResourceAndUserAttributes(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputSetMemberResourceAndUserAttributes was null or undefined when calling setMemberResourceAndUserAttributes.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r-wu`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}setMemberResourceAttribute(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputSetMemberResourceAttribute was null or undefined when calling setMemberResourceAttribute.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttribute/member-resource`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}setMemberResourceAttributes(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputSetMemberResourceAttributes was null or undefined when calling setMemberResourceAttributes.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}setMemberWithUserAttributes(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputSetMemberWithUserAttributes was null or undefined when calling setMemberWithUserAttributes.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-wu`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}setResourceAttribute(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputSetResourceAttribute was null or undefined when calling setResourceAttribute.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttribute/resource`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}setResourceAttributes(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputSetResourceAttributes was null or undefined when calling setResourceAttributes.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributes/r`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}setResourceGroupAttributes(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputSetResourceGroupAttributes was null or undefined when calling setResourceGroupAttributes.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}setResourceGroupWithGroupAttributes(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputSetResourceGroupWithGroupAttributes was null or undefined when calling setResourceGroupWithGroupAttributes.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g-wg`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}setUserAttribute(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputSetUserAttribute was null or undefined when calling setUserAttribute.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttribute/user`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}setUserAttributes(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputSetUserAttributes was null or undefined when calling setUserAttributes.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributes/u`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}setUserExtSourceAttribute(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputSetUserExtSourceAttribute was null or undefined when calling setUserExtSourceAttribute.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttribute/userExtSource`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}setUserExtSourceAttributes(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputSetUserExtSourceAttributes was null or undefined when calling setUserExtSourceAttributes.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributes/ues`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}setUserFacilityAttribute(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputSetUserFacilityAttribute was null or undefined when calling setUserFacilityAttribute.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttribute/facility-user`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}setUserFacilityAttributes(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputSetUserFacilityAttributes was null or undefined when calling setUserFacilityAttributes.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributes/facility-user`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}setVoAttribute(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputSetVoAttribute was null or undefined when calling setVoAttribute.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttribute/vo`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}setVoAttributes(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputSetVoAttributes was null or undefined when calling setVoAttributes.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/setAttributes/vo`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}updateAttributeDefinition(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputAttributeDefinition was null or undefined when calling updateAttributeDefinition.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/attributesManager/updateAttributeDefinition`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}}return Ce.\u0275fac=function(r){return new(r||Ce)(C.LFG(e.eN),C.LFG(M,8),C.LFG(b,8))},Ce.\u0275prov=C.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"}),Ce})(),v=(()=>{class Ce{constructor(r,u,_){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new b,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new A}addToHttpParams(r,u,_){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,_):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,_){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(E=>r=this.addToHttpParamsRecursive(r,E,_));else if(u instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,u.toISOString().substr(0,10))}else Object.keys(u).forEach(E=>r=this.addToHttpParamsRecursive(r,u[E],null!=_?`${_}.${E}`:E));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,u)}return r}auditMessagesManagerLog(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter msg was null or undefined when calling auditMessagesManagerLog.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"msg"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/auditMessagesManager/log`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}createAuditerConsumer(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter consumerName was null or undefined when calling createAuditerConsumer.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"consumerName"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/auditMessagesManager/createAuditerConsumer`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}findAllPossibleEvents(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/auditMessagesManager/findAllPossibleEvents`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getAllAuditerConsumers(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/auditMessagesManager/getAllAuditerConsumers`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getAuditerMessagesCount(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/auditMessagesManager/getAuditerMessagesCount`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getLastMessageId(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/auditMessagesManager/getLastMessageId`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getMessages(r,u=!1,_="body",E=!1,h){let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"count"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/auditMessagesManager/getMessages`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getMessagesByCount(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter count was null or undefined when calling getMessagesByCount.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"count"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/auditMessagesManager/getMessagesByCount`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getMessagesByIdAndCount(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter id was null or undefined when calling getMessagesByIdAndCount.");if(null==u)throw new Error("Required parameter count was null or undefined when calling getMessagesByIdAndCount.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"id")),null!=u&&(i=this.addToHttpParams(i,u,"count"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/auditMessagesManager/getMessagesByIdAndCount`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getMessagesPage(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputGetMessagesPage was null or undefined when calling getMessagesPage.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/auditMessagesManager/getMessagesPage`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}pollConsumerMessages(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter consumerName was null or undefined when calling pollConsumerMessages.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"consumerName"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/auditMessagesManager/pollConsumerMessages`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}setLastProcessedId(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter consumerName was null or undefined when calling setLastProcessedId.");if(null==u)throw new Error("Required parameter lastProcessedId was null or undefined when calling setLastProcessedId.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"consumerName")),null!=u&&(i=this.addToHttpParams(i,u,"lastProcessedId"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/auditMessagesManager/setLastProcessedId`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}}return Ce.\u0275fac=function(r){return new(r||Ce)(C.LFG(e.eN),C.LFG(M,8),C.LFG(b,8))},Ce.\u0275prov=C.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"}),Ce})(),R=(()=>{class Ce{constructor(r,u,_){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new b,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new A}addToHttpParams(r,u,_){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,_):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,_){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(E=>r=this.addToHttpParamsRecursive(r,E,_));else if(u instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,u.toISOString().substr(0,10))}else Object.keys(u).forEach(E=>r=this.addToHttpParamsRecursive(r,u[E],null!=_?`${_}.${E}`:E));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,u)}return r}getAllPolicies(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/authzResolver/getAllPolicies`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getAllRolesManagementRules(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/authzResolver/getAllRolesManagementRules`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getAuthzAdminGroups(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter role was null or undefined when calling getAuthzAdminGroups.");if(null==u)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzAdminGroups.");if(null==_)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzAdminGroups.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"role")),null!=u&&(t=this.addToHttpParams(t,u,"complementaryObjectId")),null!=_&&(t=this.addToHttpParams(t,_,"complementaryObjectName"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/getAdminGroups`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getAuthzRichAdmins(r,u,_,E,h,a,i=!1,t="body",n=!1,o){if(null==r)throw new Error("Required parameter role was null or undefined when calling getAuthzRichAdmins.");if(null==u)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzRichAdmins.");if(null==_)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzRichAdmins.");if(null==E)throw new Error("Required parameter specificAttributes was null or undefined when calling getAuthzRichAdmins.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,r,"role")),null!=u&&(s=this.addToHttpParams(s,u,"complementaryObjectId")),null!=_&&(s=this.addToHttpParams(s,_,"complementaryObjectName")),E&&E.forEach(ze=>{s=this.addToHttpParams(s,ze,"specificAttributes")}),null!=h&&(s=this.addToHttpParams(s,h,"allUserAttributes")),null!=a&&(s=this.addToHttpParams(s,a,"onlyDirectAdmins"));let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let c=o&&o.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(l=l.set("Accept",c));let S=o&&o.context;void 0===S&&(S=new e.qT);let J="json";c&&(J=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let ht=`${this.configuration.basePath}/json/authzResolver/getRichAdmins`;if(i){let ze=new URL(ht),et=ze.pathname.split("/");et[1]="non",ze.pathname=et.join("/"),ht=ze.toString()}return this.httpClient.get(ht,{context:S,params:s,responseType:J,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:n})}getFacilitiesWhereUserIsInRoles(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter roles was null or undefined when calling getFacilitiesWhereUserIsInRoles.");let i=new e.LE({encoder:this.encoder});null!=u&&(i=this.addToHttpParams(i,u,"user")),r&&r.forEach(c=>{i=this.addToHttpParams(i,c,"roles[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/authzResolver/getFacilitiesWhereUserIsInRoles`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getGroupRoleNames(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/authzResolver/getGroupRoleNames`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getGroupRoles(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"groupId"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/authzResolver/getGroupRoles`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getGroupsWhereUserIsInRoles(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter roles was null or undefined when calling getGroupsWhereUserIsInRoles.");let i=new e.LE({encoder:this.encoder});null!=u&&(i=this.addToHttpParams(i,u,"user")),r&&r.forEach(c=>{i=this.addToHttpParams(i,c,"roles[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/authzResolver/getGroupsWhereUserIsInRoles`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getLoggedUser(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/authzResolver/getLoggedUser`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getMembersWhereUserIsInRoles(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter roles was null or undefined when calling getMembersWhereUserIsInRoles.");let i=new e.LE({encoder:this.encoder});null!=u&&(i=this.addToHttpParams(i,u,"user")),r&&r.forEach(c=>{i=this.addToHttpParams(i,c,"roles[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/authzResolver/getMembersWhereUserIsInRoles`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getPerunPrincipal(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/authzResolver/getPerunPrincipal`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getPrincipalRoleNames(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/authzResolver/getPrincipalRoleNames`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getResourcesWhereUserIsInRoles(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter roles was null or undefined when calling getResourcesWhereUserIsInRoles.");let i=new e.LE({encoder:this.encoder});null!=u&&(i=this.addToHttpParams(i,u,"user")),r&&r.forEach(c=>{i=this.addToHttpParams(i,c,"roles[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/authzResolver/getResourcesWhereUserIsInRoles`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getSecurityTeamsWhereUserIsInRoles(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter roles was null or undefined when calling getSecurityTeamsWhereUserIsInRoles.");let i=new e.LE({encoder:this.encoder});null!=u&&(i=this.addToHttpParams(i,u,"user")),r&&r.forEach(c=>{i=this.addToHttpParams(i,c,"roles[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/authzResolver/getSecurityTeamsWhereUserIsInRoles`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getUserRoleNames(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/authzResolver/getUserRoleNames`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getUserRoles(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"userId"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/authzResolver/getUserRoles`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getVosWhereUserIsInRoles(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter roles was null or undefined when calling getVosWhereUserIsInRoles.");let i=new e.LE({encoder:this.encoder});null!=u&&(i=this.addToHttpParams(i,u,"user")),r&&r.forEach(c=>{i=this.addToHttpParams(i,c,"roles[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/authzResolver/getVosWhereUserIsInRoles`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}isFacilityAdmin(r,u=!1,_="body",E=!1,h){let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/authzResolver/isFacilityAdmin`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}isGroupAdmin(r,u=!1,_="body",E=!1,h){let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/authzResolver/isGroupAdmin`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}isPerunAdmin(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/authzResolver/isPerunAdmin`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}isVoAdmin(r,u=!1,_="body",E=!1,h){let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/authzResolver/isVoAdmin`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}keepAlive(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/authzResolver/keepAlive`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}loadAuthorizationComponents(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/authzResolver/loadAuthorizationComponents`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}refreshMfa(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/authzResolver/refreshMfa`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}setRoleForGroup(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter SetRoleForGroup was null or undefined when calling setRoleForGroup.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/authzResolver/setRole/g`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}setRoleForUser(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter SetRoleForUser was null or undefined when calling setRoleForUser.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/authzResolver/setRole/u`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}setRoleWithGroupComplementaryObject(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter SetRoleWithGroupComplementaryObject was null or undefined when calling setRoleWithGroupComplementaryObject.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/authzResolver/setRole/g-co`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}setRoleWithGroupComplementaryObjects(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter SetRoleWithGroupComplementaryObjects was null or undefined when calling setRoleWithGroupComplementaryObjects.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/authzResolver/setRole/g-cos`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}setRoleWithUserComplementaryObject(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter SetRoleWithUserComplementaryObject was null or undefined when calling setRoleWithUserComplementaryObject.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/authzResolver/setRole/u-co`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}setRoleWithUserComplementaryObjects(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter SetRoleWithUserComplementaryObjects was null or undefined when calling setRoleWithUserComplementaryObjects.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/authzResolver/setRole/u-cos`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}unsetRoleForGroup(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter UnsetRoleForGroup was null or undefined when calling unsetRoleForGroup.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/authzResolver/unsetRole/g`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}unsetRoleForUser(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter UnsetRoleForUser was null or undefined when calling unsetRoleForUser.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/authzResolver/unsetRole/u`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}unsetRoleWithGroupComplementaryObject(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter UnsetRoleWithGroupComplementaryObject was null or undefined when calling unsetRoleWithGroupComplementaryObject.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/authzResolver/unsetRole/g-co`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}unsetRoleWithGroupComplementaryObjects(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter UnsetRoleWithGroupComplementaryObjects was null or undefined when calling unsetRoleWithGroupComplementaryObjects.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/authzResolver/unsetRole/g-cos`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}unsetRoleWithUserComplementaryObject(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter UnsetRoleWithUserComplementaryObject was null or undefined when calling unsetRoleWithUserComplementaryObject.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/authzResolver/unsetRole/u-co`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}unsetRoleWithUserComplementaryObjects(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter UnsetRoleWithUserComplementaryObjects was null or undefined when calling unsetRoleWithUserComplementaryObjects.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/authzResolver/unsetRole/u-cos`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}}return Ce.\u0275fac=function(r){return new(r||Ce)(C.LFG(e.eN),C.LFG(M,8),C.LFG(b,8))},Ce.\u0275prov=C.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"}),Ce})(),w=(()=>{class Ce{constructor(r,u,_){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new b,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new A}addToHttpParams(r,u,_){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,_):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,_){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(E=>r=this.addToHttpParamsRecursive(r,E,_));else if(u instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,u.toISOString().substr(0,10))}else Object.keys(u).forEach(E=>r=this.addToHttpParamsRecursive(r,u[E],null!=_?`${_}.${E}`:E));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,u)}return r}changeConsentStatus(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter consent was null or undefined when calling changeConsentStatus.");if(null==u)throw new Error("Required parameter status was null or undefined when calling changeConsentStatus.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"consent")),null!=u&&(i=this.addToHttpParams(i,u,"status"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/consentsManager/changeConsentStatus`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}evaluateConsentsForConsentHub(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter consentHub was null or undefined when calling evaluateConsentsForConsentHub.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"consentHub"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/consentsManager/evaluateConsentsForConsentHub`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}evaluateConsentsForConsentHubs(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter consentHubs was null or undefined when calling evaluateConsentsForConsentHubs.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{a=this.addToHttpParams(a,d,"consentHubs[]")});let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/consentsManager/evaluateConsentsForConsentHubs`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}evaluateConsentsForService(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter service was null or undefined when calling evaluateConsentsForService.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"service"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/consentsManager/evaluateConsentsForService`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAllConsentHubs(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/consentsManager/getAllConsentHubs`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getAllConsents(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/consentsManager/getAllConsents`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getConsentById(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getConsentById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/consentsManager/getConsentById`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getConsentForUserAndConsentHub(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter user was null or undefined when calling getConsentForUserAndConsentHub.");if(null==u)throw new Error("Required parameter consentHub was null or undefined when calling getConsentForUserAndConsentHub.");if(null==_)throw new Error("Required parameter status was null or undefined when calling getConsentForUserAndConsentHub.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"user")),null!=u&&(t=this.addToHttpParams(t,u,"consentHub")),null!=_&&(t=this.addToHttpParams(t,_,"status"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/consentsManager/getConsentForUserAndConsentHub`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getConsentHubByFacility(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getConsentHubByFacility.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/consentsManager/getConsentHubByFacility`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getConsentHubById(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getConsentHubById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/consentsManager/getConsentHubById`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getConsentHubByName(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter name was null or undefined when calling getConsentHubByName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"name"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/consentsManager/getConsentHubByName`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getConsentsForConsentHub(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter consentHub was null or undefined when calling getConsentsForConsentHub.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"consentHub"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/consentsManager/getConsentsForConsentHub/id`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getConsentsForConsentHubWithStatus(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter consentHub was null or undefined when calling getConsentsForConsentHubWithStatus.");if(null==u)throw new Error("Required parameter status was null or undefined when calling getConsentsForConsentHubWithStatus.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"consentHub")),null!=u&&(i=this.addToHttpParams(i,u,"status"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/consentsManager/getConsentsForConsentHub/id-s`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getConsentsForUser(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getConsentsForUser.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/consentsManager/getConsentsForUser/id`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getConsentsForUserAndConsentHub(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling getConsentsForUserAndConsentHub.");if(null==u)throw new Error("Required parameter consentHub was null or undefined when calling getConsentsForUserAndConsentHub.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),null!=u&&(i=this.addToHttpParams(i,u,"consentHub"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/consentsManager/getConsentsForUserAndConsentHub`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getConsentsForUserWithStatus(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling getConsentsForUserWithStatus.");if(null==u)throw new Error("Required parameter status was null or undefined when calling getConsentsForUserWithStatus.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),null!=u&&(i=this.addToHttpParams(i,u,"status"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/consentsManager/getConsentsForUser/id-s`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}updateConsentHub(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputUpdateConsentHub was null or undefined when calling updateConsentHub.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/consentsManager/updateConsentHub`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}}return Ce.\u0275fac=function(r){return new(r||Ce)(C.LFG(e.eN),C.LFG(M,8),C.LFG(b,8))},Ce.\u0275prov=C.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"}),Ce})(),O=(()=>{class Ce{constructor(r,u,_){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new b,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new A}addToHttpParams(r,u,_){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,_):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,_){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(E=>r=this.addToHttpParamsRecursive(r,E,_));else if(u instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,u.toISOString().substr(0,10))}else Object.keys(u).forEach(E=>r=this.addToHttpParamsRecursive(r,u[E],null!=_?`${_}.${E}`:E));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,u)}return r}addExtSourceWithGroupSource(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling addExtSourceWithGroupSource.");if(null==u)throw new Error("Required parameter source was null or undefined when calling addExtSourceWithGroupSource.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),null!=u&&(i=this.addToHttpParams(i,u,"source"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/extSourcesManager/addExtSource/g-s`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}addExtSourceWithVoSource(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling addExtSourceWithVoSource.");if(null==u)throw new Error("Required parameter source was null or undefined when calling addExtSourceWithVoSource.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=u&&(i=this.addToHttpParams(i,u,"source"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/extSourcesManager/addExtSource/v-s`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}addExtSourcesWithGroupSource(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling addExtSourcesWithGroupSource.");if(null==u)throw new Error("Required parameter extSources was null or undefined when calling addExtSourcesWithGroupSource.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"extSources[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/extSourcesManager/addExtSources/g-s`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}addExtSourcesWithVoSource(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling addExtSourcesWithVoSource.");if(null==u)throw new Error("Required parameter extSources was null or undefined when calling addExtSourcesWithVoSource.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"extSources[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/extSourcesManager/addExtSources/v-s`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}createExtSourceFromExtSourceObject(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter ExtSourceObject was null or undefined when calling createExtSourceFromExtSourceObject.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/extSourcesManager/createExtSource/es`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}createExtSourceWithNameType(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter name was null or undefined when calling createExtSourceWithNameType.");if(null==u)throw new Error("Required parameter type was null or undefined when calling createExtSourceWithNameType.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"name")),null!=u&&(i=this.addToHttpParams(i,u,"type"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/extSourcesManager/createExtSource/n-t`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}deleteExtSource(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling deleteExtSource.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/extSourcesManager/deleteExtSource`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getExtSourceById(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getExtSourceById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/extSourcesManager/getExtSourceById`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getExtSourceByName(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter name was null or undefined when calling getExtSourceByName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"name"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/extSourcesManager/getExtSourceByName`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getExtSources(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/extSourcesManager/getExtSources`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getGroupExtSources(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupExtSources.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/extSourcesManager/getGroupExtSources`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getVoExtSources(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoExtSources.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/extSourcesManager/getVoExtSources`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}loadExtSourcesDefinitions(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/extSourcesManager/loadExtSourcesDefinitions`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}removeExtSourceWithGroupSource(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling removeExtSourceWithGroupSource.");if(null==u)throw new Error("Required parameter source was null or undefined when calling removeExtSourceWithGroupSource.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),null!=u&&(i=this.addToHttpParams(i,u,"source"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/extSourcesManager/removeExtSource/g-s`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeExtSourceWithVoSource(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling removeExtSourceWithVoSource.");if(null==u)throw new Error("Required parameter source was null or undefined when calling removeExtSourceWithVoSource.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=u&&(i=this.addToHttpParams(i,u,"source"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/extSourcesManager/removeExtSource/v-s`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeExtSourcesWithGroupSource(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling removeExtSourcesWithGroupSource.");if(null==u)throw new Error("Required parameter extSources was null or undefined when calling removeExtSourcesWithGroupSource.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"extSources[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/extSourcesManager/removeExtSources/g-s`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeExtSourcesWithVoSource(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling removeExtSourcesWithVoSource.");if(null==u)throw new Error("Required parameter extSources was null or undefined when calling removeExtSourcesWithVoSource.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"extSources[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/extSourcesManager/removeExtSources/v-s`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}}return Ce.\u0275fac=function(r){return new(r||Ce)(C.LFG(e.eN),C.LFG(M,8),C.LFG(b,8))},Ce.\u0275prov=C.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"}),Ce})(),q=(()=>{class Ce{constructor(r,u,_){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new b,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new A}addToHttpParams(r,u,_){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,_):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,_){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(E=>r=this.addToHttpParamsRecursive(r,E,_));else if(u instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,u.toISOString().substr(0,10))}else Object.keys(u).forEach(E=>r=this.addToHttpParamsRecursive(r,u[E],null!=_?`${_}.${E}`:E));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,u)}return r}addFacilityAdminGroup(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminGroup.");if(null==u)throw new Error("Required parameter authorizedGroup was null or undefined when calling addFacilityAdminGroup.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"authorizedGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/group`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}addFacilityAdminGroupByFacilityName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminGroupByFacilityName.");if(null==u)throw new Error("Required parameter authorizedGroup was null or undefined when calling addFacilityAdminGroupByFacilityName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"authorizedGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/group/f-name`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}addFacilityAdminUser(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminUser.");if(null==u)throw new Error("Required parameter user was null or undefined when calling addFacilityAdminUser.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/user`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}addFacilityAdminUserByFacilityName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminUserByFacilityName.");if(null==u)throw new Error("Required parameter user was null or undefined when calling addFacilityAdminUserByFacilityName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/user/f-name`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}addFacilityOwner(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwner.");if(null==u)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwner.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"owner"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}addFacilityOwnerByFacilityName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByFacilityName.");if(null==u)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByFacilityName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"owner"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner/f-name`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}addFacilityOwnerByFacilityNameOwnerName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByFacilityNameOwnerName.");if(null==u)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByFacilityNameOwnerName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"owner"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner/f-o-name`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}addFacilityOwnerByOwnerName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByOwnerName.");if(null==u)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByOwnerName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"owner"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner/o-name`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}addFacilityOwners(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwners.");if(null==u)throw new Error("Required parameter owners was null or undefined when calling addFacilityOwners.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"owners[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwners`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}addFacilityOwnersByFacilityName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnersByFacilityName.");if(null==u)throw new Error("Required parameter owners was null or undefined when calling addFacilityOwnersByFacilityName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"owners[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwners/f-name`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}addFacilityOwnersByFacilityNameOwnerName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnersByFacilityNameOwnerName.");if(null==u)throw new Error("Required parameter ownerNames was null or undefined when calling addFacilityOwnersByFacilityNameOwnerName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"ownerNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwners/f-o-name`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}addFacilityOwnersByOwnerName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnersByOwnerName.");if(null==u)throw new Error("Required parameter ownerNames was null or undefined when calling addFacilityOwnersByOwnerName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"ownerNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwners/o-name`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}addHost(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addHost.");if(null==u)throw new Error("Required parameter hostname was null or undefined when calling addHost.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"hostname"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHost`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}addHostByFacilityName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addHostByFacilityName.");if(null==u)throw new Error("Required parameter hostname was null or undefined when calling addHostByFacilityName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"hostname"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHost/f-name`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}addHosts(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addHosts.");if(null==u)throw new Error("Required parameter hostnames was null or undefined when calling addHosts.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"hostnames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHosts`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}addHostsByFacilityName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addHostsByFacilityName.");if(null==u)throw new Error("Required parameter hostnames was null or undefined when calling addHostsByFacilityName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"hostnames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHosts/f-name`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}assignSecurityTeam(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling assignSecurityTeam.");if(null==u)throw new Error("Required parameter securityTeam was null or undefined when calling assignSecurityTeam.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"securityTeam"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/assignSecurityTeam`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}assignSecurityTeamByFacilityName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling assignSecurityTeamByFacilityName.");if(null==u)throw new Error("Required parameter securityTeam was null or undefined when calling assignSecurityTeamByFacilityName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"securityTeam"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/assignSecurityTeam/f-name`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}copyAttributes(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter srcFacility was null or undefined when calling copyAttributes.");if(null==u)throw new Error("Required parameter destFacility was null or undefined when calling copyAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"srcFacility")),null!=u&&(i=this.addToHttpParams(i,u,"destFacility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}copyAttributesByDestinationName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter srcFacility was null or undefined when calling copyAttributesByDestinationName.");if(null==u)throw new Error("Required parameter destFacilityName was null or undefined when calling copyAttributesByDestinationName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"srcFacility")),null!=u&&(i=this.addToHttpParams(i,u,"destFacilityName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes/dest-name`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}copyAttributesBySourceDestinationNames(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyAttributesBySourceDestinationNames.");if(null==u)throw new Error("Required parameter destFacilityName was null or undefined when calling copyAttributesBySourceDestinationNames.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"srcFacilityName")),null!=u&&(i=this.addToHttpParams(i,u,"destFacilityName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes/src-dest-names`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}copyAttributesBySourceName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyAttributesBySourceName.");if(null==u)throw new Error("Required parameter destFacility was null or undefined when calling copyAttributesBySourceName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"srcFacilityName")),null!=u&&(i=this.addToHttpParams(i,u,"destFacility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes/src-name`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}copyManagers(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter srcFacility was null or undefined when calling copyManagers.");if(null==u)throw new Error("Required parameter destFacility was null or undefined when calling copyManagers.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"srcFacility")),null!=u&&(i=this.addToHttpParams(i,u,"destFacility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}copyManagersByDestinationName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter srcFacility was null or undefined when calling copyManagersByDestinationName.");if(null==u)throw new Error("Required parameter destFacilityName was null or undefined when calling copyManagersByDestinationName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"srcFacility")),null!=u&&(i=this.addToHttpParams(i,u,"destFacilityName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers/dest-name`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}copyManagersBySourceDestinationNames(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyManagersBySourceDestinationNames.");if(null==u)throw new Error("Required parameter destFacilityName was null or undefined when calling copyManagersBySourceDestinationNames.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"srcFacilityName")),null!=u&&(i=this.addToHttpParams(i,u,"destFacilityName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers/src-dest-name`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}copyManagersBySourceName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyManagersBySourceName.");if(null==u)throw new Error("Required parameter destFacility was null or undefined when calling copyManagersBySourceName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"srcFacilityName")),null!=u&&(i=this.addToHttpParams(i,u,"destFacility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers/src-name`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}copyOwners(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter srcFacility was null or undefined when calling copyOwners.");if(null==u)throw new Error("Required parameter destFacility was null or undefined when calling copyOwners.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"srcFacility")),null!=u&&(i=this.addToHttpParams(i,u,"destFacility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}copyOwnersByDestinationName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter srcFacility was null or undefined when calling copyOwnersByDestinationName.");if(null==u)throw new Error("Required parameter destFacilityName was null or undefined when calling copyOwnersByDestinationName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"srcFacility")),null!=u&&(i=this.addToHttpParams(i,u,"destFacilityName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners/dest-name`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}copyOwnersBySourceDestinationNames(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyOwnersBySourceDestinationNames.");if(null==u)throw new Error("Required parameter destFacilityName was null or undefined when calling copyOwnersBySourceDestinationNames.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"srcFacilityName")),null!=u&&(i=this.addToHttpParams(i,u,"destFacilityName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners/src-dest-name`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}copyOwnersBySourceName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyOwnersBySourceName.");if(null==u)throw new Error("Required parameter destFacility was null or undefined when calling copyOwnersBySourceName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"srcFacilityName")),null!=u&&(i=this.addToHttpParams(i,u,"destFacility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners/src-name`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}createFacility(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter name was null or undefined when calling createFacility.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"name")),null!=u&&(i=this.addToHttpParams(i,u,"description"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/createFacility`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}deleteFacility(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling deleteFacility.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"force"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/deleteFacility`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}deleteFacilityByFacilityName(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling deleteFacilityByFacilityName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/deleteFacility/f-name`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAllFacilities(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/facilitiesManager/getFacilities`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getAllowedGroups(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAllowedGroups.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"facility")),null!=u&&(t=this.addToHttpParams(t,u,"vo")),null!=_&&(t=this.addToHttpParams(t,_,"service"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/facilitiesManager/getAllowedGroups`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getAllowedGroupsByFacilityName(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAllowedGroupsByFacilityName.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"facility")),null!=u&&(t=this.addToHttpParams(t,u,"vo")),null!=_&&(t=this.addToHttpParams(t,_,"service"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/facilitiesManager/getAllowedGroups/f-name`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getAllowedRichGroupsWithAttributes(r,u,_,E,h=!1,a="body",i=!1,t){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAllowedRichGroupsWithAttributes.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getAllowedRichGroupsWithAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),u&&u.forEach(J=>{n=this.addToHttpParams(n,J,"attrNames[]")}),null!=_&&(n=this.addToHttpParams(n,_,"vo")),null!=E&&(n=this.addToHttpParams(n,E,"service"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let S=`${this.configuration.basePath}/json/facilitiesManager/getAllowedRichGroupsWithAttributes`;if(h){let J=new URL(S),ht=J.pathname.split("/");ht[1]="non",J.pathname=ht.join("/"),S=J.toString()}return this.httpClient.get(S,{context:d,params:n,responseType:c,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}getAllowedRichGroupsWithAttributesByFacilityName(r,u,_,E,h=!1,a="body",i=!1,t){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAllowedRichGroupsWithAttributesByFacilityName.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getAllowedRichGroupsWithAttributesByFacilityName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),u&&u.forEach(J=>{n=this.addToHttpParams(n,J,"attrNames[]")}),null!=_&&(n=this.addToHttpParams(n,_,"vo")),null!=E&&(n=this.addToHttpParams(n,E,"service"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let S=`${this.configuration.basePath}/json/facilitiesManager/getAllowedRichGroupsWithAttributes/f-name`;if(h){let J=new URL(S),ht=J.pathname.split("/");ht[1]="non",J.pathname=ht.join("/"),S=J.toString()}return this.httpClient.get(S,{context:d,params:n,responseType:c,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}getAllowedUsersOfFacility(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAllowedUsersOfFacility.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"facility")),null!=u&&(t=this.addToHttpParams(t,u,"vo")),null!=_&&(t=this.addToHttpParams(t,_,"service"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/facilitiesManager/getAllowedUsers/v-f-s`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getAllowedUsersOfFacilityByFacilityName(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAllowedUsersOfFacilityByFacilityName.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"facility")),null!=u&&(t=this.addToHttpParams(t,u,"vo")),null!=_&&(t=this.addToHttpParams(t,_,"service"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/facilitiesManager/getAllowedUsers/v-f-s/f-name`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getAllowedVos(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAllowedVos.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/getAllowedVos`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAllowedVosByFacilityName(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAllowedVosByFacilityName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/getAllowedVos/f-name`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAssignedFacilitiesByGroup(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling getAssignedFacilitiesByGroup.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/group`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAssignedFacilitiesByMember(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter member was null or undefined when calling getAssignedFacilitiesByMember.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/member`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAssignedFacilitiesByService(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter service was null or undefined when calling getAssignedFacilitiesByService.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"service"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/service`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAssignedFacilitiesByUser(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getAssignedFacilitiesByUser.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/user`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAssignedResourcesByAssignedServiceForFacility(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesByAssignedServiceForFacility.");if(null==u)throw new Error("Required parameter service was null or undefined when calling getAssignedResourcesByAssignedServiceForFacility.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"service"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/facilitiesManager/getAssignedResourcesByAssignedService`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getAssignedResourcesForFacility(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesForFacility.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getAssignedResources`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAssignedResourcesForFacilityByFacilityName(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesForFacilityByFacilityName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getAssignedResources/f-name`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAssignedRichResourcesForFacility(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedRichResourcesForFacility.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getAssignedRichResources`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAssignedRichResourcesForFacilityAndService(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedRichResourcesForFacilityAndService.");if(null==u)throw new Error("Required parameter service was null or undefined when calling getAssignedRichResourcesForFacilityAndService.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"service"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/facilitiesManager/getAssignedRichResources/f-s`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getAssignedRichResourcesForFacilityByFacilityName(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedRichResourcesForFacilityByFacilityName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getAssignedRichResources/f-name`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAssignedSecurityTeams(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedSecurityTeams.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getAssignedSecurityTeams`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAssignedSecurityTeamsByFacilityName(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedSecurityTeamsByFacilityName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getAssignedSecurityTeams/f-name`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAssignedUsers(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedUsers.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"service"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/facilitiesManager/getAssignedUsers`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getAssignedUsersByFacilityName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedUsersByFacilityName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"service"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/facilitiesManager/getAssignedUsers/f-name`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getBansForFacility(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter facilityId was null or undefined when calling getBansForFacility.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facilityId"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getBansForFacility`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getBansForUser(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getBansForUser.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getBansForUser`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getEnricheFacilitydBansForUser(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling getEnricheFacilitydBansForUser.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/facilitiesManager/getEnrichedBansForUser`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getEnrichedBansForFacility(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getEnrichedBansForFacility.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/facilitiesManager/getEnrichedBansForFacility`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getEnrichedFacilities(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/facilitiesManager/getEnrichedFacilities`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getEnrichedHosts(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getEnrichedHosts.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getEnrichedHosts.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/facilitiesManager/getEnrichedHosts`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getFacilitiesByAttribute(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter attributeName was null or undefined when calling getFacilitiesByAttribute.");if(null==u)throw new Error("Required parameter attributeValue was null or undefined when calling getFacilitiesByAttribute.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"attributeName")),null!=u&&(i=this.addToHttpParams(i,u,"attributeValue"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByAttribute`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getFacilitiesByAttributeWithAttributes(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter attributeName was null or undefined when calling getFacilitiesByAttributeWithAttributes.");if(null==u)throw new Error("Required parameter attributeValue was null or undefined when calling getFacilitiesByAttributeWithAttributes.");if(null==_)throw new Error("Required parameter attrNames was null or undefined when calling getFacilitiesByAttributeWithAttributes.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"attributeName")),null!=u&&(t=this.addToHttpParams(t,u,"attributeValue")),_&&_.forEach(S=>{t=this.addToHttpParams(t,S,"attrNames[]")});let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByAttributeWithAttributes`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getFacilitiesByDestination(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter destination was null or undefined when calling getFacilitiesByDestination.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"destination"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByDestination`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getFacilitiesByHostName(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter hostname was null or undefined when calling getFacilitiesByHostName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"hostname"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByHostName`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getFacilitiesByIds(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getFacilitiesByIds.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{a=this.addToHttpParams(a,d,"ids[]")});let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByIds`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getFacilitiesCount(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesCount`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getFacilitiesWhereUserIsAdmin(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getFacilitiesWhereUserIsAdmin.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesWhereUserIsAdmin`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getFacilityAdminGroups(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminGroups.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getAdminGroups`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getFacilityAdminUsers(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminUsers.");if(null==u)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getFacilityAdminUsers.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"onlyDirectAdmins"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/facilitiesManager/getAdmins`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getFacilityAdminUsersByFacilityName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminUsersByFacilityName.");if(null==u)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getFacilityAdminUsersByFacilityName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"onlyDirectAdmins"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/facilitiesManager/getAdmins/f-name`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getFacilityBan(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling getFacilityBan.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getFacilityBan.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),null!=u&&(i=this.addToHttpParams(i,u,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/facilitiesManager/getBan`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getFacilityBanById(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter banId was null or undefined when calling getFacilityBanById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"banId"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getBanById`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getFacilityById(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getFacilityById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getFacilityById`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getFacilityByName(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter name was null or undefined when calling getFacilityByName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"name"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getFacilityByName`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getFacilityForHost(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter host was null or undefined when calling getFacilityForHost.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"host"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getFacilityForHost`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getFacilityOwners(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityOwners.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getOwners`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getFacilityOwnersByFacilityName(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityOwnersByFacilityName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getOwners/f-name`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getHostById(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getHostById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getHostById`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getHosts(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getHosts.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getHosts`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getHostsByFacilityName(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getHostsByFacilityName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getHosts/f-name`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getHostsByHostname(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter hostname was null or undefined when calling getHostsByHostname.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"hostname"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getHostsByHostname`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getHostsCount(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getHostsCount.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getHostsCount`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getHostsCountByFacilityName(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getHostsCountByFacilityName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getHostsCount/f-name`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getOwnerFacilities(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter owner was null or undefined when calling getOwnerFacilities.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"owner"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/facilitiesManager/getOwnerFacilities`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getRichFacilities(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/facilitiesManager/getRichFacilities`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}removeBanByUserIdFacilityId(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling removeBanByUserIdFacilityId.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling removeBanByUserIdFacilityId.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),null!=u&&(i=this.addToHttpParams(i,u,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeBan/byUserIdFacilityId`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeFacilityAdminGroup(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminGroup.");if(null==u)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeFacilityAdminGroup.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"authorizedGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/group`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeFacilityAdminGroupByFacilityName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminGroupByFacilityName.");if(null==u)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeFacilityAdminGroupByFacilityName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"authorizedGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/group/f-name`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeFacilityAdminUser(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminUser.");if(null==u)throw new Error("Required parameter user was null or undefined when calling removeFacilityAdminUser.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/user`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeFacilityAdminUserByFacilityName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminUserByFacilityName.");if(null==u)throw new Error("Required parameter user was null or undefined when calling removeFacilityAdminUserByFacilityName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/user/f-name`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeFacilityBanById(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter banId was null or undefined when calling removeFacilityBanById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"banId"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeBan/byId`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}removeFacilityOwner(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwner.");if(null==u)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwner.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"owner"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeFacilityOwnerByFacilityName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByFacilityName.");if(null==u)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByFacilityName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"owner"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner/f-name`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeFacilityOwnerByFacilityNameOwnerName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByFacilityNameOwnerName.");if(null==u)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByFacilityNameOwnerName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"owner"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner/f-o-name`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeFacilityOwnerByOwnerName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByOwnerName.");if(null==u)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByOwnerName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"owner"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner/o-name`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeFacilityOwners(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwners.");if(null==u)throw new Error("Required parameter owners was null or undefined when calling removeFacilityOwners.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"owners[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwners`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeFacilityOwnersByFacilityName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnersByFacilityName.");if(null==u)throw new Error("Required parameter owners was null or undefined when calling removeFacilityOwnersByFacilityName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"owners[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwners/f-name`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeFacilityOwnersByFacilityNameOwnerName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnersByFacilityNameOwnerName.");if(null==u)throw new Error("Required parameter ownerNames was null or undefined when calling removeFacilityOwnersByFacilityNameOwnerName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"ownerNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwners/f-o-name`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeFacilityOwnersByOwnerName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnersByOwnerName.");if(null==u)throw new Error("Required parameter ownerNames was null or undefined when calling removeFacilityOwnersByOwnerName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"ownerNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwners/o-name`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeHost(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter host was null or undefined when calling removeHost.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"host"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHost`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}removeHostByHostname(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter hostname was null or undefined when calling removeHostByHostname.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"hostname"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHostByHostname`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}removeHosts(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeHosts.");if(null==u)throw new Error("Required parameter hosts was null or undefined when calling removeHosts.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"hosts[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHosts`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeHostsByFacilityName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeHostsByFacilityName.");if(null==u)throw new Error("Required parameter hosts was null or undefined when calling removeHostsByFacilityName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"hosts[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHosts/f-name`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeSecurityTeam(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeSecurityTeam.");if(null==u)throw new Error("Required parameter securityTeam was null or undefined when calling removeSecurityTeam.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"securityTeam"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeSecurityTeam`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeSecurityTeamByFacilityName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeSecurityTeamByFacilityName.");if(null==u)throw new Error("Required parameter securityTeam was null or undefined when calling removeSecurityTeamByFacilityName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"securityTeam"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeSecurityTeam/f-name`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}setFacilityBan(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputSetBanForUserOnFacility was null or undefined when calling setFacilityBan.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/facilitiesManager/setBan`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}updateFacility(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputUpdateFacility was null or undefined when calling updateFacility.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/facilitiesManager/updateFacility`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}updateFacilityBan(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputUpdateBanForFacility was null or undefined when calling updateFacilityBan.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/facilitiesManager/updateBan`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}}return Ce.\u0275fac=function(r){return new(r||Ce)(C.LFG(e.eN),C.LFG(M,8),C.LFG(b,8))},Ce.\u0275prov=C.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"}),Ce})(),te=(()=>{class Ce{constructor(r,u,_){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new b,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new A}addToHttpParams(r,u,_){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,_):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,_){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(E=>r=this.addToHttpParamsRecursive(r,E,_));else if(u instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,u.toISOString().substr(0,10))}else Object.keys(u).forEach(E=>r=this.addToHttpParamsRecursive(r,u[E],null!=_?`${_}.${E}`:E));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,u)}return r}addMember(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter groups was null or undefined when calling addMember.");if(null==u)throw new Error("Required parameter member was null or undefined when calling addMember.");let i=new e.LE({encoder:this.encoder});r&&r.forEach(c=>{i=this.addToHttpParams(i,c,"groups[]")}),null!=u&&(i=this.addToHttpParams(i,u,"member"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/groupsManager/addMember`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}addMembers(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling addMembers.");if(null==u)throw new Error("Required parameter members was null or undefined when calling addMembers.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"members[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/groupsManager/addMembers`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}allowGroupToHierarchicalVo(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling allowGroupToHierarchicalVo.");if(null==u)throw new Error("Required parameter vo was null or undefined when calling allowGroupToHierarchicalVo.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),null!=u&&(i=this.addToHttpParams(i,u,"vo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/groupsManager/allowGroupToHierarchicalVo`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}allowGroupsToHierarchicalVo(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter groups was null or undefined when calling allowGroupsToHierarchicalVo.");if(null==u)throw new Error("Required parameter vo was null or undefined when calling allowGroupsToHierarchicalVo.");let i=new e.LE({encoder:this.encoder});r&&r.forEach(c=>{i=this.addToHttpParams(i,c,"groups[]")}),null!=u&&(i=this.addToHttpParams(i,u,"vo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/groupsManager/allowGroupsToHierarchicalVo`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}canExtendMembershipInGroup(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling canExtendMembershipInGroup.");if(null==u)throw new Error("Required parameter group was null or undefined when calling canExtendMembershipInGroup.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),null!=u&&(i=this.addToHttpParams(i,u,"group"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/groupsManager/canExtendMembershipInGroup`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}copyMembers(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter sourceGroup was null or undefined when calling copyMembers.");if(null==u)throw new Error("Required parameter destinationGroups was null or undefined when calling copyMembers.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"sourceGroup")),u&&u.forEach(S=>{t=this.addToHttpParams(t,S,"destinationGroups")}),_&&_.forEach(S=>{t=this.addToHttpParams(t,S,"members")});let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/groupsManager/copyMembers`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}createGroupUnion(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter resultGroup was null or undefined when calling createGroupUnion.");if(null==u)throw new Error("Required parameter operandGroup was null or undefined when calling createGroupUnion.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resultGroup")),null!=u&&(i=this.addToHttpParams(i,u,"operandGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroupUnion`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}createGroupWithParentGroupNameDescription(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter parentGroup was null or undefined when calling createGroupWithParentGroupNameDescription.");if(null==u)throw new Error("Required parameter name was null or undefined when calling createGroupWithParentGroupNameDescription.");if(null==_)throw new Error("Required parameter description was null or undefined when calling createGroupWithParentGroupNameDescription.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"parentGroup")),null!=u&&(t=this.addToHttpParams(t,u,"name")),null!=_&&(t=this.addToHttpParams(t,_,"description"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroup/pg-n-d`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}createGroupWithVoNameDescription(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter vo was null or undefined when calling createGroupWithVoNameDescription.");if(null==u)throw new Error("Required parameter name was null or undefined when calling createGroupWithVoNameDescription.");if(null==_)throw new Error("Required parameter description was null or undefined when calling createGroupWithVoNameDescription.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"vo")),null!=u&&(t=this.addToHttpParams(t,u,"name")),null!=_&&(t=this.addToHttpParams(t,_,"description"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroup/v-n-d`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}deleteGroup(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling deleteGroup.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),null!=u&&(i=this.addToHttpParams(i,u,"force"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/groupsManager/deleteGroup`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}deleteGroups(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputDeleteGroups was null or undefined when calling deleteGroups.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/groupsManager/deleteGroups`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}disallowGroupToHierarchicalVo(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling disallowGroupToHierarchicalVo.");if(null==u)throw new Error("Required parameter vo was null or undefined when calling disallowGroupToHierarchicalVo.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),null!=u&&(i=this.addToHttpParams(i,u,"vo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/groupsManager/disallowGroupToHierarchicalVo`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}disallowGroupsToHierarchicalVo(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter groups was null or undefined when calling disallowGroupsToHierarchicalVo.");if(null==u)throw new Error("Required parameter vo was null or undefined when calling disallowGroupsToHierarchicalVo.");let i=new e.LE({encoder:this.encoder});r&&r.forEach(c=>{i=this.addToHttpParams(i,c,"groups[]")}),null!=u&&(i=this.addToHttpParams(i,u,"vo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/groupsManager/disallowGroupsToHierarchicalVo`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}extendMembershipInGroup(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling extendMembershipInGroup.");if(null==u)throw new Error("Required parameter group was null or undefined when calling extendMembershipInGroup.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),null!=u&&(i=this.addToHttpParams(i,u,"group"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/groupsManager/extendMembershipInGroup`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}forceAllSubGroupsSynchronization(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling forceAllSubGroupsSynchronization.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/groupsManager/forceAllSubGroupsSynchronization`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}forceGroupStructureSynchronization(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling forceGroupStructureSynchronization.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/groupsManager/forceGroupStructureSynchronization`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}forceGroupSynchronization(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling forceGroupSynchronization.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/groupsManager/forceGroupSynchronization`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAllAllowedGroupsToHierarchicalVo(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getAllAllowedGroupsToHierarchicalVo.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/groupsManager/getAllAllowedGroupsToHierarchicalVo/v`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAllGroups(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getAllGroups.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/groupsManager/getAllGroups`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAllGroupsFromAllVos(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/groupsManager/getAllGroups/all`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getAllMemberGroups(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter member was null or undefined when calling getAllMemberGroups.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/groupsManager/getAllMemberGroups`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAllRichGroups(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter attrNames was null or undefined when calling getAllRichGroups.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{a=this.addToHttpParams(a,d,"attrNames[]")});let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/groupsManager/getAllRichGroups`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAllRichGroupsWithAttributesByNames(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getAllRichGroupsWithAttributesByNames.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getAllRichGroupsWithAttributesByNames.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/groupsManager/getAllRichGroupsWithAttributesByNames`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getAllRichSubGroupsWithGroupAttributesByNames(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling getAllRichSubGroupsWithGroupAttributesByNames.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/groupsManager/getAllRichSubGroupsWithAttributesByNames`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getGroupById(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getGroupById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/groupsManager/getGroupById`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getGroupByName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getGroupByName.");if(null==u)throw new Error("Required parameter name was null or undefined when calling getGroupByName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=u&&(i=this.addToHttpParams(i,u,"name"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/groupsManager/getGroupByName`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getGroupDirectMembersCount(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupDirectMembersCount.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/groupsManager/getGroupDirectMembersCount`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getGroupMemberById(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupMemberById.");if(null==u)throw new Error("Required parameter member was null or undefined when calling getGroupMemberById.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),null!=u&&(i=this.addToHttpParams(i,u,"member"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/groupsManager/getGroupMemberById`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getGroupMembers(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupMembers.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/groupsManager/getGroupMembers`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getGroupMembersCount(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCount.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/groupsManager/getGroupMembersCount`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getGroupMembersCountsByGroupStatus(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByGroupStatus.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/groupsManager/getGroupMembersCountsByGroupStatus`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getGroupMembersCountsByVoStatus(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByVoStatus.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/groupsManager/getGroupMembersCountsByVoStatus`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getGroupRichMembersByIds(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupRichMembersByIds.");if(null==u)throw new Error("Required parameter members was null or undefined when calling getGroupRichMembersByIds.");if(null==_)throw new Error("Required parameter attrNames was null or undefined when calling getGroupRichMembersByIds.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"group")),u&&u.forEach(S=>{t=this.addToHttpParams(t,S,"members[]")}),_&&_.forEach(S=>{t=this.addToHttpParams(t,S,"attrNames[]")});let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/groupsManager/getGroupRichMembersByIds`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getGroupUnions(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupUnions.");if(null==u)throw new Error("Required parameter reverseDirection was null or undefined when calling getGroupUnions.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),null!=u&&(i=this.addToHttpParams(i,u,"reverseDirection"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/groupsManager/getGroupUnions`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getGroupsByIds(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getGroupsByIds.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{a=this.addToHttpParams(a,d,"ids[]")});let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/groupsManager/getGroupsByIds`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getGroupsPage(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputGetPaginatedGroups was null or undefined when calling getGroupsPage.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/groupsManager/getGroupsPage`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}getGroupsWhereMemberIsActive(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter member was null or undefined when calling getGroupsWhereMemberIsActive.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/groupsManager/getGroupsWhereMemberIsActive`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getIndirectMembershipPaths(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling getIndirectMembershipPaths.");if(null==u)throw new Error("Required parameter group was null or undefined when calling getIndirectMembershipPaths.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),null!=u&&(i=this.addToHttpParams(i,u,"group"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/groupsManager/getIndirectMembershipPaths`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getMemberGroups(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberGroups.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/groupsManager/getMemberGroups`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getMemberRichGroupsWithAttributesByNames(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberRichGroupsWithAttributesByNames.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getMemberRichGroupsWithAttributesByNames.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/groupsManager/getMemberRichGroupsWithAttributesByNames`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getParentGroup(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling getParentGroup.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/groupsManager/getParentGroup`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getRichGroupByIdWithAttributesByNames(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter groupId was null or undefined when calling getRichGroupByIdWithAttributesByNames.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"groupId")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/groupsManager/getRichGroupByIdWithAttributesByNames`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getSubgroupsPage(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputGetPaginatedSubgroups was null or undefined when calling getSubgroupsPage.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/groupsManager/getSubgroupsPage`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}getVoAllAllowedGroupsToHierarchicalVo(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoAllAllowedGroupsToHierarchicalVo.");if(null==u)throw new Error("Required parameter memberVo was null or undefined when calling getVoAllAllowedGroupsToHierarchicalVo.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=u&&(i=this.addToHttpParams(i,u,"memberVo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/groupsManager/getAllAllowedGroupsToHierarchicalVo/v-v`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}isAllowedGroupToHierarchicalVo(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling isAllowedGroupToHierarchicalVo.");if(null==u)throw new Error("Required parameter vo was null or undefined when calling isAllowedGroupToHierarchicalVo.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),null!=u&&(i=this.addToHttpParams(i,u,"vo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/groupsManager/isAllowedGroupToHierarchicalVo`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}isGroupMember(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling isGroupMember.");if(null==u)throw new Error("Required parameter group was null or undefined when calling isGroupMember.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),null!=u&&(i=this.addToHttpParams(i,u,"group"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/groupsManager/isGroupMember`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}moveGroupWithDestinationGroupMovingGroup(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter movingGroup was null or undefined when calling moveGroupWithDestinationGroupMovingGroup.");let i=new e.LE({encoder:this.encoder});null!=u&&(i=this.addToHttpParams(i,u,"destinationGroup")),null!=r&&(i=this.addToHttpParams(i,r,"movingGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/groupsManager/moveGroup/dg-mg`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeGroupUnion(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter resultGroup was null or undefined when calling removeGroupUnion.");if(null==u)throw new Error("Required parameter operandGroup was null or undefined when calling removeGroupUnion.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resultGroup")),null!=u&&(i=this.addToHttpParams(i,u,"operandGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/groupsManager/removeGroupUnion`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeMember(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter groups was null or undefined when calling removeMember.");if(null==u)throw new Error("Required parameter member was null or undefined when calling removeMember.");let i=new e.LE({encoder:this.encoder});r&&r.forEach(c=>{i=this.addToHttpParams(i,c,"groups[]")}),null!=u&&(i=this.addToHttpParams(i,u,"member"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/groupsManager/removeMember`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeMembers(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling removeMembers.");if(null==u)throw new Error("Required parameter members was null or undefined when calling removeMembers.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"members[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/groupsManager/removeMembers`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}setGroupsMemberStatus(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling setGroupsMemberStatus.");if(null==u)throw new Error("Required parameter group was null or undefined when calling setGroupsMemberStatus.");if(null==_)throw new Error("Required parameter status was null or undefined when calling setGroupsMemberStatus.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=u&&(t=this.addToHttpParams(t,u,"group")),null!=_&&(t=this.addToHttpParams(t,_,"status"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/groupsManager/setGroupsMemberStatus`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}updateGroup(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputUpdateGroup was null or undefined when calling updateGroup.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/groupsManager/updateGroup`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}}return Ce.\u0275fac=function(r){return new(r||Ce)(C.LFG(e.eN),C.LFG(M,8),C.LFG(b,8))},Ce.\u0275prov=C.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"}),Ce})(),ie=(()=>{class Ce{constructor(r,u,_){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new b,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new A}addToHttpParams(r,u,_){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,_):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,_){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(E=>r=this.addToHttpParamsRecursive(r,E,_));else if(u instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,u.toISOString().substr(0,10))}else Object.keys(u).forEach(E=>r=this.addToHttpParamsRecursive(r,u[E],null!=_?`${_}.${E}`:E));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,u)}return r}canExtendMembership(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter member was null or undefined when calling canExtendMembership.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/membersManager/canExtendMembership`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}createMemberForCandidate(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputCreateMemberForCandidate was null or undefined when calling createMemberForCandidate.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/membersManager/createMember/c`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}createMemberForUser(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputCreateMemberForUser was null or undefined when calling createMemberForUser.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/membersManager/createMember/u`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}createMemberFromExtSource(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputCreateMemberFromExtSource was null or undefined when calling createMemberFromExtSource.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/membersManager/createMember/extSource`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}createSpecificMember(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputSpecificMember was null or undefined when calling createSpecificMember.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/membersManager/createSpecificMember`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}createSponsoredMember(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputCreateSponsoredMember was null or undefined when calling createSponsoredMember.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/membersManager/createSponsoredMember/withFullName`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}createSponsoredMembers(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputCreateSponsoredMembers was null or undefined when calling createSponsoredMembers.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/membersManager/createSponsoredMembers`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}createSponsoredMembersFromCSV(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputCreateSponsoredMemberFromCSV was null or undefined when calling createSponsoredMembersFromCSV.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/membersManager/createSponsoredMembersFromCSV`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}deleteMember(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter member was null or undefined when calling deleteMember.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/membersManager/deleteMember`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}deleteMembers(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter members was null or undefined when calling deleteMembers.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{a=this.addToHttpParams(a,d,"members[]")});let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/membersManager/deleteMembers`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}extendMembership(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter member was null or undefined when calling extendMembership.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/membersManager/extendMembership`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}findCompleteRichMembersByAttributes(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersByAttributes.");if(null==u)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersByAttributes.");let t=new e.LE({encoder:this.encoder});r&&r.forEach(S=>{t=this.addToHttpParams(t,S,"attrsNames[]")}),null!=u&&(t=this.addToHttpParams(t,u,"searchString")),_&&_.forEach(S=>{t=this.addToHttpParams(t,S,"allowedStatuses[]")});let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/attrs`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}findCompleteRichMembersForGroup(r,u,_,E,h,a,i=!1,t="body",n=!1,o){if(null==r)throw new Error("Required parameter group was null or undefined when calling findCompleteRichMembersForGroup.");if(null==u)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersForGroup.");if(null==_)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForGroup.");if(null==E)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling findCompleteRichMembersForGroup.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,r,"group")),u&&u.forEach(ze=>{s=this.addToHttpParams(s,ze,"attrsNames[]")}),h&&h.forEach(ze=>{s=this.addToHttpParams(s,ze,"allowedStatuses[]")}),a&&a.forEach(ze=>{s=this.addToHttpParams(s,ze,"allowedGroupStatuses[]")}),null!=_&&(s=this.addToHttpParams(s,_,"searchString")),null!=E&&(s=this.addToHttpParams(s,E,"lookingInParentGroup"));let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let c=o&&o.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(l=l.set("Accept",c));let S=o&&o.context;void 0===S&&(S=new e.qT);let J="json";c&&(J=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let ht=`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/g`;if(i){let ze=new URL(ht),et=ze.pathname.split("/");et[1]="non",ze.pathname=et.join("/"),ht=ze.toString()}return this.httpClient.get(ht,{context:S,params:s,responseType:J,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:n})}findCompleteRichMembersForVo(r,u,_,E,h=!1,a="body",i=!1,t){if(null==r)throw new Error("Required parameter vo was null or undefined when calling findCompleteRichMembersForVo.");if(null==u)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersForVo.");if(null==_)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForVo.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),u&&u.forEach(J=>{n=this.addToHttpParams(n,J,"attrsNames[]")}),E&&E.forEach(J=>{n=this.addToHttpParams(n,J,"allowedStatuses[]")}),null!=_&&(n=this.addToHttpParams(n,_,"searchString"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let S=`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/v`;if(h){let J=new URL(S),ht=J.pathname.split("/");ht[1]="non",J.pathname=ht.join("/"),S=J.toString()}return this.httpClient.get(S,{context:d,params:n,responseType:c,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}findMembersInVo(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling findMembersInVo.");if(null==u)throw new Error("Required parameter searchString was null or undefined when calling findMembersInVo.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=u&&(i=this.addToHttpParams(i,u,"searchString"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/membersManager/findMembersInVo`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}findSponsoredCompleteRichMembersForVo(r,u,_,E,h=!1,a="body",i=!1,t){if(null==r)throw new Error("Required parameter vo was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==u)throw new Error("Required parameter attrsNames was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==_)throw new Error("Required parameter searchString was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==E)throw new Error("Required parameter onlySponsored was null or undefined when calling findSponsoredCompleteRichMembersForVo.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),u&&u.forEach(J=>{n=this.addToHttpParams(n,J,"attrsNames[]")}),null!=_&&(n=this.addToHttpParams(n,_,"searchString")),null!=E&&(n=this.addToHttpParams(n,E,"onlySponsored"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let S=`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/v-sponsored`;if(h){let J=new URL(S),ht=J.pathname.split("/");ht[1]="non",J.pathname=ht.join("/"),S=J.toString()}return this.httpClient.get(S,{context:d,params:n,responseType:c,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}getAllMembers(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/membersManager/getAllMembers`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getAllNamespacesRules(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/membersManager/getAllNamespacesRules`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getAllSponsoredMembers(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembers.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/membersManager/getAllSponsoredMembers`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAllSponsoredMembersAndTheirSponsors(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembersAndTheirSponsors.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getAllSponsoredMembersAndTheirSponsors.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/membersManager/getAllSponsoredMembersAndTheirSponsors`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getCompleteRichMembersForGroup(r,u,_,E,h,a=!1,i="body",t=!1,n){if(null==r)throw new Error("Required parameter group was null or undefined when calling getCompleteRichMembersForGroup.");if(null==u)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling getCompleteRichMembersForGroup.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"group")),_&&_.forEach(ht=>{o=this.addToHttpParams(o,ht,"allowedStatuses[]")}),E&&E.forEach(ht=>{o=this.addToHttpParams(o,ht,"allowedGroupStatuses[]")}),null!=u&&(o=this.addToHttpParams(o,u,"lookingInParentGroup")),h&&h.forEach(ht=>{o=this.addToHttpParams(o,ht,"attrsNames[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let c=n&&n.context;void 0===c&&(c=new e.qT);let S="json";d&&(S=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob");let J=`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/g`;if(a){let ht=new URL(J),ze=ht.pathname.split("/");ze[1]="non",ht.pathname=ze.join("/"),J=ht.toString()}return this.httpClient.get(J,{context:c,params:o,responseType:S,withCredentials:this.configuration.withCredentials,headers:s,observe:i,reportProgress:t})}getCompleteRichMembersForGroupResource(r,u,_,E,h=!1,a="body",i=!1,t){if(null==r)throw new Error("Required parameter group was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==_)throw new Error("Required parameter attrsNames was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==E)throw new Error("Required parameter allowedStatuses was null or undefined when calling getCompleteRichMembersForGroupResource.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),null!=u&&(n=this.addToHttpParams(n,u,"resource")),_&&_.forEach(J=>{n=this.addToHttpParams(n,J,"attrsNames[]")}),E&&E.forEach(J=>{n=this.addToHttpParams(n,J,"allowedStatuses[]")});let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let S=`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/g-r`;if(h){let J=new URL(S),ht=J.pathname.split("/");ht[1]="non",J.pathname=ht.join("/"),S=J.toString()}return this.httpClient.get(S,{context:d,params:n,responseType:c,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}getCompleteRichMembersForVo(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getCompleteRichMembersForVo.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"vo")),u&&u.forEach(S=>{t=this.addToHttpParams(t,S,"allowedStatuses[]")}),_&&_.forEach(S=>{t=this.addToHttpParams(t,S,"attrsNames[]")});let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/v`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getMemberByExtSourceNameAndExtLogin(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");if(null==u)throw new Error("Required parameter extLogin was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");if(null==_)throw new Error("Required parameter extSourceName was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"vo")),null!=u&&(t=this.addToHttpParams(t,u,"extLogin")),null!=_&&(t=this.addToHttpParams(t,_,"extSourceName"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/membersManager/getMemberByExtSourceNameAndExtLogin`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getMemberById(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getMemberById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/membersManager/getMemberById`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getMemberByUser(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getMemberByUser.");if(null==u)throw new Error("Required parameter user was null or undefined when calling getMemberByUser.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=u&&(i=this.addToHttpParams(i,u,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/membersManager/getMemberByUser`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getMembers(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getMembers.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=u&&(i=this.addToHttpParams(i,u,"status"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/membersManager/getMembers`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getMembersByIds(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getMembersByIds.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{a=this.addToHttpParams(a,d,"ids[]")});let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/membersManager/getMembersByIds`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getMembersByUser(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getMembersByUser.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/membersManager/getMembersByUser`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getMembersCount(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getMembersCount.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/membersManager/getMembersCount`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getMembersPage(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputGetPaginatedMembers was null or undefined when calling getMembersPage.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/membersManager/getMembersPage`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}getMembersWithStatusCount(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getMembersWithStatusCount.");if(null==u)throw new Error("Required parameter status was null or undefined when calling getMembersWithStatusCount.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=u&&(i=this.addToHttpParams(i,u,"status"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/membersManager/getMembersCount/status`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getRichMember(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getRichMember.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/membersManager/getRichMember`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getRichMemberWithAttributes(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getRichMemberWithAttributes.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/membersManager/getRichMemberWithAttributes`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getRichMembersByIds(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getRichMembersByIds.");let i=new e.LE({encoder:this.encoder});r&&r.forEach(c=>{i=this.addToHttpParams(i,c,"ids[]")}),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/membersManager/getRichMembersByIds`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getRichMembersNoUserAttributes(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getRichMembersNoUserAttributes.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/membersManager/getRichMembersNoUserAttributes`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getSponsoredMembers(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembers.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/membersManager/getSponsoredMembers/v`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getSponsoredMembersAndTheirSponsors(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembersAndTheirSponsors.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getSponsoredMembersAndTheirSponsors.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/membersManager/getSponsoredMembersAndTheirSponsors`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getSponsorsByMember(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling getSponsorsByMember.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/membersManager/getSponsors/member`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getSponsorsByVo(r,u,_,E,h=!1,a="body",i=!1,t){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getSponsorsByVo.");if(null==u)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsByVo.");if(null==_)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsByVo.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=u&&(n=this.addToHttpParams(n,u,"extSourceName")),null!=_&&(n=this.addToHttpParams(n,_,"extLogin")),E&&E.forEach(J=>{n=this.addToHttpParams(n,J,"attrNames[]")});let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let S=`${this.configuration.basePath}/json/membersManager/getSponsors/vo`;if(h){let J=new URL(S),ht=J.pathname.split("/");ht[1]="non",J.pathname=ht.join("/"),S=J.toString()}return this.httpClient.get(S,{context:d,params:n,responseType:c,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}moveMembership(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter vo was null or undefined when calling moveMembership.");if(null==u)throw new Error("Required parameter sourceUser was null or undefined when calling moveMembership.");if(null==_)throw new Error("Required parameter targetUser was null or undefined when calling moveMembership.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"vo")),null!=u&&(t=this.addToHttpParams(t,u,"sourceUser")),null!=_&&(t=this.addToHttpParams(t,_,"targetUser"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/membersManager/moveMembership`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}removeSponsor(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeSponsor.");if(null==u)throw new Error("Required parameter sponsor was null or undefined when calling removeSponsor.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),null!=u&&(i=this.addToHttpParams(i,u,"sponsor"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/membersManager/removeSponsor`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeSponsors(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeSponsors.");if(null==u)throw new Error("Required parameter sponsorIds was null or undefined when calling removeSponsors.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"sponsorIds")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/membersManager/removeSponsors`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}sendAccountActivationLinkEmail(r,u,_,E,h=!1,a="body",i=!1,t){if(null==r)throw new Error("Required parameter member was null or undefined when calling sendAccountActivationLinkEmail.");if(null==u)throw new Error("Required parameter namespace was null or undefined when calling sendAccountActivationLinkEmail.");if(null==_)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendAccountActivationLinkEmail.");if(null==E)throw new Error("Required parameter language was null or undefined when calling sendAccountActivationLinkEmail.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),null!=u&&(n=this.addToHttpParams(n,u,"namespace")),null!=_&&(n=this.addToHttpParams(n,_,"emailAttributeURN")),null!=E&&(n=this.addToHttpParams(n,E,"language"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let S=`${this.configuration.basePath}/urlinjsonout/membersManager/sendAccountActivationLinkEmail`;if(h){let J=new URL(S),ht=J.pathname.split("/");ht[1]="non",J.pathname=ht.join("/"),S=J.toString()}return this.httpClient.post(S,null,{context:d,params:n,responseType:c,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}sendPasswordResetLinkEmail(r,u,_,E,h,a=!1,i="body",t=!1,n){if(null==r)throw new Error("Required parameter member was null or undefined when calling sendPasswordResetLinkEmail.");if(null==u)throw new Error("Required parameter namespace was null or undefined when calling sendPasswordResetLinkEmail.");if(null==_)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendPasswordResetLinkEmail.");if(null==E)throw new Error("Required parameter language was null or undefined when calling sendPasswordResetLinkEmail.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"member")),null!=u&&(o=this.addToHttpParams(o,u,"namespace")),null!=_&&(o=this.addToHttpParams(o,_,"emailAttributeURN")),null!=E&&(o=this.addToHttpParams(o,E,"language")),null!=h&&(o=this.addToHttpParams(o,h,"baseUrl"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let c=n&&n.context;void 0===c&&(c=new e.qT);let S="json";d&&(S=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob");let J=`${this.configuration.basePath}/urlinjsonout/membersManager/sendPasswordResetLinkEmail`;if(a){let ht=new URL(J),ze=ht.pathname.split("/");ze[1]="non",ht.pathname=ze.join("/"),J=ht.toString()}return this.httpClient.post(J,null,{context:c,params:o,responseType:S,withCredentials:this.configuration.withCredentials,headers:s,observe:i,reportProgress:t})}setSponsoredMember(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputSetSponsoredMember was null or undefined when calling setSponsoredMember.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/membersManager/setSponsoredMember`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}setSponsorshipForMember(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter sponsoredMember was null or undefined when calling setSponsorshipForMember.");if(null==u)throw new Error("Required parameter sponsor was null or undefined when calling setSponsorshipForMember.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"sponsoredMember")),null!=u&&(t=this.addToHttpParams(t,u,"sponsor")),null!=_&&(t=this.addToHttpParams(t,_,"validityTo"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/membersManager/setSponsorshipForMember`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}setStatus(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling setStatus.");if(null==u)throw new Error("Required parameter status was null or undefined when calling setStatus.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),null!=u&&(i=this.addToHttpParams(i,u,"status"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/membersManager/setStatus`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}sponsorMember(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling sponsorMember.");if(null==u)throw new Error("Required parameter sponsor was null or undefined when calling sponsorMember.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=u&&(t=this.addToHttpParams(t,u,"sponsor")),null!=_&&(t=this.addToHttpParams(t,_,"validityTo"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/membersManager/sponsorMember`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}sponsorMembers(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter members was null or undefined when calling sponsorMembers.");if(null==u)throw new Error("Required parameter sponsor was null or undefined when calling sponsorMembers.");let t=new e.LE({encoder:this.encoder});r&&r.forEach(S=>{t=this.addToHttpParams(t,S,"members[]")}),null!=u&&(t=this.addToHttpParams(t,u,"sponsor")),null!=_&&(t=this.addToHttpParams(t,_,"validityTo"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/membersManager/sponsorMembers`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}updateSponsorshipValidity(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling updateSponsorshipValidity.");if(null==u)throw new Error("Required parameter sponsor was null or undefined when calling updateSponsorshipValidity.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=u&&(t=this.addToHttpParams(t,u,"sponsor")),null!=_&&(t=this.addToHttpParams(t,_,"validityTo"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/membersManager/updateSponsorshipValidity`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}validateMemberAsync(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter member was null or undefined when calling validateMemberAsync.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/membersManager/validateMemberAsync`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}}return Ce.\u0275fac=function(r){return new(r||Ce)(C.LFG(e.eN),C.LFG(M,8),C.LFG(b,8))},Ce.\u0275prov=C.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"}),Ce})(),Te=(()=>{class Ce{constructor(r,u,_){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new b,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new A}addToHttpParams(r,u,_){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,_):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,_){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(E=>r=this.addToHttpParamsRecursive(r,E,_));else if(u instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,u.toISOString().substr(0,10))}else Object.keys(u).forEach(E=>r=this.addToHttpParamsRecursive(r,u[E],null!=_?`${_}.${E}`:E));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,u)}return r}createOwner(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputCreateOwner was null or undefined when calling createOwner.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/ownersManager/createOwner`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}deleteOwner(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter owner was null or undefined when calling deleteOwner.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"owner")),null!=u&&(i=this.addToHttpParams(i,u,"force"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/ownersManager/deleteOwner`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}deleteOwners(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter owners was null or undefined when calling deleteOwners.");let i=new e.LE({encoder:this.encoder});r&&r.forEach(c=>{i=this.addToHttpParams(i,c,"owners[]")}),null!=u&&(i=this.addToHttpParams(i,u,"force"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/ownersManager/deleteOwners`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getAllOwners(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/ownersManager/getOwners`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getOwnerById(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getOwnerById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/ownersManager/getOwnerById`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getOwnerByName(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter owner was null or undefined when calling getOwnerByName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"owner"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/ownersManager/getOwnerByName`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}}return Ce.\u0275fac=function(r){return new(r||Ce)(C.LFG(e.eN),C.LFG(M,8),C.LFG(b,8))},Ce.\u0275prov=C.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"}),Ce})(),pe=(()=>{class Ce{constructor(r,u,_){this.httpClient=r,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new e.WM,this.configuration=new b,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new A}addToHttpParams(r,u,_){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,_):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,_){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(E=>r=this.addToHttpParamsRecursive(r,E,_));else if(u instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,u.toISOString().substr(0,10))}else Object.keys(u).forEach(E=>r=this.addToHttpParamsRecursive(r,u[E],null!=_?`${_}.${E}`:E));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,u)}return r}sentMessageToRTWithMemberQueue(r,u,_,E,h=!1,a="body",i=!1,t){if(null==r)throw new Error("Required parameter memberId was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==u)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==_)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==E)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithMemberQueue.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"memberId")),null!=u&&(n=this.addToHttpParams(n,u,"queue")),null!=_&&(n=this.addToHttpParams(n,_,"subject")),null!=E&&(n=this.addToHttpParams(n,E,"text"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let S=`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/m-q`;if(h){let J=new URL(S),ht=J.pathname.split("/");ht[1]="non",J.pathname=ht.join("/"),S=J.toString()}return this.httpClient.post(S,null,{context:d,params:n,responseType:c,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}sentMessageToRTWithQueue(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithQueue.");if(null==u)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithQueue.");if(null==_)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithQueue.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"queue")),null!=u&&(t=this.addToHttpParams(t,u,"subject")),null!=_&&(t=this.addToHttpParams(t,_,"text"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/q`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}sentMessageToRTWithVo(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVo.");if(null==u)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVo.");if(null==_)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVo.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"voId")),null!=u&&(t=this.addToHttpParams(t,u,"subject")),null!=_&&(t=this.addToHttpParams(t,_,"text"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}sentMessageToRTWithVoQueue(r,u,_,E,h=!1,a="body",i=!1,t){if(null==r)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==u)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==_)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==E)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVoQueue.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"voId")),null!=u&&(n=this.addToHttpParams(n,u,"queue")),null!=_&&(n=this.addToHttpParams(n,_,"subject")),null!=E&&(n=this.addToHttpParams(n,E,"text"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let S=`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v-q`;if(h){let J=new URL(S),ht=J.pathname.split("/");ht[1]="non",J.pathname=ht.join("/"),S=J.toString()}return this.httpClient.post(S,null,{context:d,params:n,responseType:c,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}}return Ce.\u0275fac=function(r){return new(r||Ce)(C.LFG(e.eN),C.LFG(M,8),C.LFG(b,8))},Ce.\u0275prov=C.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"}),Ce})(),Le=(()=>{class Ce{constructor(r,u,_){this.httpClient=r,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new e.WM,this.configuration=new b,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new A}addToHttpParams(r,u,_){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,_):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,_){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(E=>r=this.addToHttpParamsRecursive(r,E,_));else if(u instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,u.toISOString().substr(0,10))}else Object.keys(u).forEach(E=>r=this.addToHttpParamsRecursive(r,u[E],null!=_?`${_}.${E}`:E));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,u)}return r}addApplicationMailForGroup(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputAddApplicationMailForGroup was null or undefined when calling addApplicationMailForGroup.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/registrarManager/addApplicationMail/g`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}addApplicationMailForVo(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputAddApplicationMailForVo was null or undefined when calling addApplicationMailForVo.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/registrarManager/addApplicationMail/v`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}addGroupsToAutoRegistration(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter groups was null or undefined when calling addGroupsToAutoRegistration.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{a=this.addToHttpParams(a,d,"groups[]")});let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/registrarManager/addGroupsToAutoRegistration`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}approveApplication(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling approveApplication.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/registrarManager/approveApplication`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}checkForSimilarRichIdentities(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/urlinjsonout/registrarManager/checkForSimilarRichIdentities`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.post(o,null,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}checkForSimilarUsersWithAuthInfo(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/urlinjsonout/registrarManager/checkForSimilarUsers/authInfo`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.post(o,null,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}consolidate(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputConsolidate was null or undefined when calling consolidate.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/registrarManager/consolidate`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}consolidateIdentityUsingToken(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter token was null or undefined when calling consolidateIdentityUsingToken.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"token"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/registrarManager/consolidateIdentityUsingToken`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}copyFormFromGroupToGroup(r,u,_=!1,E="body",h=!1,a){let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"fromGroup")),null!=u&&(i=this.addToHttpParams(i,u,"toGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToGroup`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}copyFormFromGroupToVo(r,u,_=!1,E="body",h=!1,a){let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"fromGroup")),null!=u&&(i=this.addToHttpParams(i,u,"toVo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToVo`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}copyFormFromVoToGroup(r,u,_=!1,E="body",h=!1,a){let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"fromVo")),null!=u&&(i=this.addToHttpParams(i,u,"toGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToGroup`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}copyFormFromVoToVo(r,u,_=!1,E="body",h=!1,a){let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"fromVo")),null!=u&&(i=this.addToHttpParams(i,u,"toVo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToVo`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}copyMailsFromGroupToGroup(r,u,_=!1,E="body",h=!1,a){let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"fromGroup")),null!=u&&(i=this.addToHttpParams(i,u,"toGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToGroup`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}copyMailsFromGroupToVo(r,u,_=!1,E="body",h=!1,a){let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"fromGroup")),null!=u&&(i=this.addToHttpParams(i,u,"toVo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToVo`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}copyMailsFromVoToGroup(r,u,_=!1,E="body",h=!1,a){let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"fromVo")),null!=u&&(i=this.addToHttpParams(i,u,"toGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToGroup`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}copyMailsFromVoToVo(r,u,_=!1,E="body",h=!1,a){let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"fromVo")),null!=u&&(i=this.addToHttpParams(i,u,"toVo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToVo`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}createApplicationFormInGroup(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling createApplicationFormInGroup.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/group`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}createApplicationFormInVo(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling createApplicationFormInVo.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/vo`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}deleteApplication(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling deleteApplication.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplication`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}deleteApplicationMailForGroup(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling deleteApplicationMailForGroup.");if(null==u)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForGroup.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),null!=u&&(i=this.addToHttpParams(i,u,"id"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/g`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}deleteApplicationMailForVo(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling deleteApplicationMailForVo.");if(null==u)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForVo.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=u&&(i=this.addToHttpParams(i,u,"id"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/v`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}deleteGroupsFromAutoRegistration(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter groups was null or undefined when calling deleteGroupsFromAutoRegistration.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{a=this.addToHttpParams(a,d,"groups[]")});let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteGroupsFromAutoRegistration`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getApplicationById(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getApplicationById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/registrarManager/getApplicationById`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getApplicationDataById(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getApplicationDataById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/registrarManager/getApplicationDataById`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getApplicationMailsForGroup(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling getApplicationMailsForGroup.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/registrarManager/getApplicationMails/g`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getApplicationMailsForVo(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getApplicationMailsForVo.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/registrarManager/getApplicationMails/v`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getApplicationsForGroup(r,u,_,E,h=!1,a="body",i=!1,t){if(null==r)throw new Error("Required parameter group was null or undefined when calling getApplicationsForGroup.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),u&&u.forEach(J=>{n=this.addToHttpParams(n,J,"state[]")}),null!=_&&(n=this.addToHttpParams(n,_,"dateFrom")),null!=E&&(n=this.addToHttpParams(n,E,"dateTo"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let S=`${this.configuration.basePath}/json/registrarManager/getApplicationsForGroup`;if(h){let J=new URL(S),ht=J.pathname.split("/");ht[1]="non",J.pathname=ht.join("/"),S=J.toString()}return this.httpClient.get(S,{context:d,params:n,responseType:c,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}getApplicationsForMember(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling getApplicationsForMember.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),null!=u&&(i=this.addToHttpParams(i,u,"group"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/registrarManager/getApplicationsForMember`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getApplicationsForVo(r,u,_,E,h=!1,a="body",i=!1,t){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getApplicationsForVo.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),u&&u.forEach(J=>{n=this.addToHttpParams(n,J,"state[]")}),null!=_&&(n=this.addToHttpParams(n,_,"dateFrom")),null!=E&&(n=this.addToHttpParams(n,E,"dateTo"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let S=`${this.configuration.basePath}/json/registrarManager/getApplicationsForVo`;if(h){let J=new URL(S),ht=J.pathname.split("/");ht[1]="non",J.pathname=ht.join("/"),S=J.toString()}return this.httpClient.get(S,{context:d,params:n,responseType:c,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}getApplicationsPage(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputGetPaginatedApplications was null or undefined when calling getApplicationsPage.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/registrarManager/getApplicationsPage`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}getConsolidatorToken(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/registrarManager/getConsolidatorToken`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getFormItemsForGroup(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroup.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/registrarManager/getFormItems/group`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getFormItemsForGroupWithType(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroupWithType.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),null!=u&&(i=this.addToHttpParams(i,u,"type"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/registrarManager/getFormItems/group-type`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getFormItemsForVo(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVo.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/registrarManager/getFormItems/vo`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getFormItemsForVoWithType(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVoWithType.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=u&&(i=this.addToHttpParams(i,u,"type"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/registrarManager/getFormItems/vo-type`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getGroupApplicationForm(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupApplicationForm.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/registrarManager/getApplicationForm/group`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getGroupsToAutoRegistration(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getGroupsToAutoRegistration.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/registrarManager/getGroupsToAutoRegistration`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getVoApplicationForm(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoApplicationForm.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/registrarManager/getApplicationForm/vo`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}rejectApplication(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter id was null or undefined when calling rejectApplication.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"id")),null!=u&&(i=this.addToHttpParams(i,u,"reason"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/registrarManager/rejectApplication`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}sendInvitation(r,u,_,E,h=!1,a="body",i=!1,t){if(null==r)throw new Error("Required parameter email was null or undefined when calling sendInvitation.");if(null==u)throw new Error("Required parameter language was null or undefined when calling sendInvitation.");let n=new e.LE({encoder:this.encoder});null!=_&&(n=this.addToHttpParams(n,_,"voId")),null!=E&&(n=this.addToHttpParams(n,E,"name")),null!=r&&(n=this.addToHttpParams(n,r,"email")),null!=u&&(n=this.addToHttpParams(n,u,"language"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let S=`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation`;if(h){let J=new URL(S),ht=J.pathname.split("/");ht[1]="non",J.pathname=ht.join("/"),S=J.toString()}return this.httpClient.post(S,null,{context:d,params:n,responseType:c,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}sendInvitationForGroup(r,u,_,E,h,a=!1,i="body",t=!1,n){if(null==r)throw new Error("Required parameter email was null or undefined when calling sendInvitationForGroup.");if(null==u)throw new Error("Required parameter language was null or undefined when calling sendInvitationForGroup.");let o=new e.LE({encoder:this.encoder});null!=_&&(o=this.addToHttpParams(o,_,"voId")),null!=E&&(o=this.addToHttpParams(o,E,"groupId")),null!=h&&(o=this.addToHttpParams(o,h,"name")),null!=r&&(o=this.addToHttpParams(o,r,"email")),null!=u&&(o=this.addToHttpParams(o,u,"language"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let c=n&&n.context;void 0===c&&(c=new e.qT);let S="json";d&&(S=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob");let J=`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/g`;if(a){let ht=new URL(J),ze=ht.pathname.split("/");ze[1]="non",ht.pathname=ze.join("/"),J=ht.toString()}return this.httpClient.post(J,null,{context:c,params:o,responseType:S,withCredentials:this.configuration.withCredentials,headers:s,observe:i,reportProgress:t})}sendInvitationGroupToExistingUser(r,u,_,E=!1,h="body",a=!1,i){let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"userId")),null!=u&&(t=this.addToHttpParams(t,u,"voId")),null!=_&&(t=this.addToHttpParams(t,_,"groupId"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u-g`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}sendInvitationToExistingUser(r,u,_=!1,E="body",h=!1,a){let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"userId")),null!=u&&(i=this.addToHttpParams(i,u,"voId"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}sendInvitationsFromCsv(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputInvitationsFromCsv was null or undefined when calling sendInvitationsFromCsv.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/registrarManager/sendInvitationsFromCsv`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}sendMessage(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputSendMessage was null or undefined when calling sendMessage.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/registrarManager/sendMessage`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}setSendingEnabled(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputSetSendingEnabled was null or undefined when calling setSendingEnabled.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/registrarManager/setSendingEnabled`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}submitApplication(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputSubmitApplication was null or undefined when calling submitApplication.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/registrarManager/submitApplication`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}updateApplicationMail(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputUpdateApplicationMail was null or undefined when calling updateApplicationMail.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/registrarManager/updateApplicationMail`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}updateForm(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputUpdateForm was null or undefined when calling updateForm.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/registrarManager/updateForm`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}updateFormItemData(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputFormItemData was null or undefined when calling updateFormItemData.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/registrarManager/updateFormItemData`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}updateFormItemsData(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputFormItemsData was null or undefined when calling updateFormItemsData.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/registrarManager/updateFormItemsData`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}updateFormItemsForGroup(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputUpdateFormItemsForGroup was null or undefined when calling updateFormItemsForGroup.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/registrarManager/updateFormItems/group`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}updateFormItemsForVo(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputUpdateFormItemsForVo was null or undefined when calling updateFormItemsForVo.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/registrarManager/updateFormItems/vo`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}verifyApplication(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling verifyApplication.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/registrarManager/verifyApplication`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}}return Ce.\u0275fac=function(r){return new(r||Ce)(C.LFG(e.eN),C.LFG(M,8),C.LFG(b,8))},Ce.\u0275prov=C.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"}),Ce})(),T=(()=>{class Ce{constructor(r,u,_){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new b,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new A}addToHttpParams(r,u,_){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,_):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,_){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(E=>r=this.addToHttpParamsRecursive(r,E,_));else if(u instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,u.toISOString().substr(0,10))}else Object.keys(u).forEach(E=>r=this.addToHttpParamsRecursive(r,u[E],null!=_?`${_}.${E}`:E));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,u)}return r}activateGroupResourceAssignment(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter group was null or undefined when calling activateGroupResourceAssignment.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling activateGroupResourceAssignment.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"group")),null!=u&&(t=this.addToHttpParams(t,u,"resource")),null!=_&&(t=this.addToHttpParams(t,_,"async"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/resourcesManager/activateGroupResourceAssignment`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}addAdminToGroup(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling addAdminToGroup.");if(null==u)throw new Error("Required parameter authorizedGroup was null or undefined when calling addAdminToGroup.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),null!=u&&(i=this.addToHttpParams(i,u,"authorizedGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/addAdmin/r-g`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}addAdminToUser(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling addAdminToUser.");if(null==u)throw new Error("Required parameter user was null or undefined when calling addAdminToUser.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),null!=u&&(i=this.addToHttpParams(i,u,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/addAdmin/r-u`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}addResourceSelfServiceGroup(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceGroup.");if(null==u)throw new Error("Required parameter group was null or undefined when calling addResourceSelfServiceGroup.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),null!=u&&(i=this.addToHttpParams(i,u,"group"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/addResourceSelfServiceGroup`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}addResourceSelfServiceUser(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceUser.");if(null==u)throw new Error("Required parameter user was null or undefined when calling addResourceSelfServiceUser.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),null!=u&&(i=this.addToHttpParams(i,u,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/addResourceSelfServiceUser`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}allowGroupsToResources(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter groups was null or undefined when calling allowGroupsToResources.");if(null==u)throw new Error("Required parameter resources was null or undefined when calling allowGroupsToResources.");let t=new e.LE({encoder:this.encoder});r&&r.forEach(S=>{t=this.addToHttpParams(t,S,"groups[]")}),u&&u.forEach(S=>{t=this.addToHttpParams(t,S,"resources[]")}),null!=_&&(t=this.addToHttpParams(t,_,"async"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/resourcesManager/allowGroupsToResources`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}assignGroupToResource(r,u,_,E,h,a=!1,i="body",t=!1,n){if(null==r)throw new Error("Required parameter group was null or undefined when calling assignGroupToResource.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling assignGroupToResource.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"group")),null!=u&&(o=this.addToHttpParams(o,u,"resource")),null!=_&&(o=this.addToHttpParams(o,_,"async")),null!=E&&(o=this.addToHttpParams(o,E,"assignInactive")),null!=h&&(o=this.addToHttpParams(o,h,"autoAssignSubgroups"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let c=n&&n.context;void 0===c&&(c=new e.qT);let S="json";d&&(S=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob");let J=`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupToResource`;if(a){let ht=new URL(J),ze=ht.pathname.split("/");ze[1]="non",ht.pathname=ze.join("/"),J=ht.toString()}return this.httpClient.post(J,null,{context:c,params:o,responseType:S,withCredentials:this.configuration.withCredentials,headers:s,observe:i,reportProgress:t})}assignGroupToResources(r,u,_,E,h,a=!1,i="body",t=!1,n){if(null==r)throw new Error("Required parameter group was null or undefined when calling assignGroupToResources.");if(null==u)throw new Error("Required parameter resources was null or undefined when calling assignGroupToResources.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"group")),u&&u.forEach(ht=>{o=this.addToHttpParams(o,ht,"resources[]")}),null!=_&&(o=this.addToHttpParams(o,_,"async")),null!=E&&(o=this.addToHttpParams(o,E,"assignInactive")),null!=h&&(o=this.addToHttpParams(o,h,"autoAssignSubgroups"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let c=n&&n.context;void 0===c&&(c=new e.qT);let S="json";d&&(S=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob");let J=`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupToResources`;if(a){let ht=new URL(J),ze=ht.pathname.split("/");ze[1]="non",ht.pathname=ze.join("/"),J=ht.toString()}return this.httpClient.post(J,null,{context:c,params:o,responseType:S,withCredentials:this.configuration.withCredentials,headers:s,observe:i,reportProgress:t})}assignGroupsToResource(r,u,_,E,h,a=!1,i="body",t=!1,n){if(null==r)throw new Error("Required parameter groups was null or undefined when calling assignGroupsToResource.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling assignGroupsToResource.");let o=new e.LE({encoder:this.encoder});r&&r.forEach(ht=>{o=this.addToHttpParams(o,ht,"groups[]")}),null!=u&&(o=this.addToHttpParams(o,u,"resource")),null!=_&&(o=this.addToHttpParams(o,_,"async")),null!=E&&(o=this.addToHttpParams(o,E,"assignInactive")),null!=h&&(o=this.addToHttpParams(o,h,"autoAssignSubgroups"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let c=n&&n.context;void 0===c&&(c=new e.qT);let S="json";d&&(S=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob");let J=`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupsToResource`;if(a){let ht=new URL(J),ze=ht.pathname.split("/");ze[1]="non",ht.pathname=ze.join("/"),J=ht.toString()}return this.httpClient.post(J,null,{context:c,params:o,responseType:S,withCredentials:this.configuration.withCredentials,headers:s,observe:i,reportProgress:t})}assignResourceTagToResource(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputAssignResourceTagToResource was null or undefined when calling assignResourceTagToResource.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/assignResourceTagToResource`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}assignResourceTagsToResource(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputAssignResourceTagsToResource was null or undefined when calling assignResourceTagsToResource.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/assignResourceTagsToResource`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}assignService(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling assignService.");if(null==u)throw new Error("Required parameter service was null or undefined when calling assignService.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),null!=u&&(i=this.addToHttpParams(i,u,"service"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignService`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}assignServices(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling assignServices.");if(null==u)throw new Error("Required parameter services was null or undefined when calling assignServices.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"services[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignServices`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}assignServicesPackage(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling assignServicesPackage.");if(null==u)throw new Error("Required parameter servicesPackage was null or undefined when calling assignServicesPackage.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),null!=u&&(i=this.addToHttpParams(i,u,"servicesPackage"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignServicesPackage`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}copyResource(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputCopyResource was null or undefined when calling copyResource.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/copyResource`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}createResource(r,u,_,E,h=!1,a="body",i=!1,t){if(null==r)throw new Error("Required parameter vo was null or undefined when calling createResource.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling createResource.");if(null==_)throw new Error("Required parameter name was null or undefined when calling createResource.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=u&&(n=this.addToHttpParams(n,u,"facility")),null!=_&&(n=this.addToHttpParams(n,_,"name")),null!=E&&(n=this.addToHttpParams(n,E,"description"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let S=`${this.configuration.basePath}/urlinjsonout/resourcesManager/createResource`;if(h){let J=new URL(S),ht=J.pathname.split("/");ht[1]="non",J.pathname=ht.join("/"),S=J.toString()}return this.httpClient.post(S,null,{context:d,params:n,responseType:c,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}createResourceTagWithResourceTag(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputCreateResourceTagWithResourceTag was null or undefined when calling createResourceTagWithResourceTag.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/createResourceTag/resourceTag`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}createResourceTagWithTagName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter tagName was null or undefined when calling createResourceTagWithTagName.");if(null==u)throw new Error("Required parameter vo was null or undefined when calling createResourceTagWithTagName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"tagName")),null!=u&&(i=this.addToHttpParams(i,u,"vo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/createResourceTag/tagName`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}deactivateGroupResourceAssignment(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling deactivateGroupResourceAssignment.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling deactivateGroupResourceAssignment.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),null!=u&&(i=this.addToHttpParams(i,u,"resource"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/deactivateGroupResourceAssignment`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}deleteAllResources(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling deleteAllResources.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteAllResources`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}deleteAllResourcesTagsForVo(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling deleteAllResourcesTagsForVo.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteAllResourcesTagsForVo`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}deleteResource(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter resource was null or undefined when calling deleteResource.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"resource"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteResource`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}deleteResourceTag(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputDeleteResourceTag was null or undefined when calling deleteResourceTag.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/deleteResourceTag`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}getAdminGroups(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAdminGroups.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"resource"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getAdminGroups`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAdmins(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAdmins.");if(null==u)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getAdmins.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),null!=u&&(i=this.addToHttpParams(i,u,"onlyDirectAdmins"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/getAdmins`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getAllResources(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/resourcesManager/getAllResources`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getAllResourcesByResourceTag(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputGetAllResourcesByResourceTag was null or undefined when calling getAllResourcesByResourceTag.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/getAllResourcesByResourceTag`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}getAllResourcesTagsForResource(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAllResourcesTagsForResource.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"resource"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getAllResourcesTagsForResource`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAllResourcesTagsForVo(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getAllResourcesTagsForVo.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getAllResourcesTagsForVo`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAllResourcesWhereUserIsAdmin(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getAllResourcesWhereUserIsAdmin.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/all`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAllowedMembers(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAllowedMembers.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"resource"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getAllowedMembers`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAllowedResources(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter member was null or undefined when calling getAllowedResources.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getAllowedResources`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAllowedUsersOfResource(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAllowedUsersOfResource.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"resource"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getAllowedUsers`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAssignedGroups(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAssignedGroups.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),null!=u&&(i=this.addToHttpParams(i,u,"member"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/getAssignedGroups`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getAssignedMembers(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAssignedMembers.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"resource"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getAssignedMembers`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAssignedMembersWithStatus(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAssignedMembersWithStatus.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"resource"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getAssignedMembersWithStatus`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAssignedResourcesWithGroup(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling getAssignedResourcesWithGroup.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getAssignedResources/g`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAssignedResourcesWithMember(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter member was null or undefined when calling getAssignedResourcesWithMember.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getAssignedResources/m`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAssignedResourcesWithStatus(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter member was null or undefined when calling getAssignedResourcesWithStatus.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getAssignedResourcesWithStatus`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAssignedRichMembers(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAssignedRichMembers.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"resource"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getAssignedRichMembers`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAssignedRichResourcesWithGroup(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter group was null or undefined when calling getAssignedRichResourcesWithGroup.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/g`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAssignedRichResourcesWithMember(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMember.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/m`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAssignedRichResourcesWithMemberService(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMemberService.");if(null==u)throw new Error("Required parameter service was null or undefined when calling getAssignedRichResourcesWithMemberService.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),null!=u&&(i=this.addToHttpParams(i,u,"service"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/s-m`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getAssignedServicesToResource(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAssignedServicesToResource.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"resource"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getAssignedServices`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getBansForMember(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter member was null or undefined when calling getBansForMember.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getBansForMember`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getBansForResource(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getBansForResource.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"resource"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getBansForResource`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getEnrichedBansForResource(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getEnrichedBansForResource.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/getEnrichedBansForResource`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getEnrichedBansForUser(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling getEnrichedBansForUser.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/getEnrichedBansForUser`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getEnrichedResourceById(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter id was null or undefined when calling getEnrichedResourceById.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"id")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourceById`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getEnrichedResourcesForFacility(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getEnrichedResourcesForFacility.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourcesForFacility`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getEnrichedResourcesForVo(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getEnrichedResourcesForVo.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourcesForVo`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getFacility(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getFacility.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"resource"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getFacility`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getGroupAssignments(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getGroupAssignments.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/getGroupAssignments`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getMailingServiceRichResourcesWithMember(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMailingServiceRichResourcesWithMember.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getMailingServiceRichResourcesWithMember`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getResourceAssignments(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling getResourceAssignments.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/getResourceAssignments`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getResourceBan(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling getResourceBan.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getResourceBan.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),null!=u&&(i=this.addToHttpParams(i,u,"resource"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/getBan`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getResourceBanById(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter banId was null or undefined when calling getResourceBanById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"banId"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getBanById`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getResourceById(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getResourceById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getResourceById`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getResourceByName(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getResourceByName.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getResourceByName.");if(null==_)throw new Error("Required parameter name was null or undefined when calling getResourceByName.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"vo")),null!=u&&(t=this.addToHttpParams(t,u,"facility")),null!=_&&(t=this.addToHttpParams(t,_,"name"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/resourcesManager/getResourceByName`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getResources(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getResources.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getResources`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getResourcesByIds(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getResourcesByIds.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{a=this.addToHttpParams(a,d,"ids[]")});let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getResourcesByIds`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getResourcesCountForAll(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/resourcesManager/getResourcesCount/all`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getResourcesCountForVo(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getResourcesCountForVo.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getResourcesCount/vo`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getResourcesFromVoWhereUserIsAdmin(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getResourcesFromVoWhereUserIsAdmin.");if(null==u)throw new Error("Required parameter user was null or undefined when calling getResourcesFromVoWhereUserIsAdmin.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=u&&(i=this.addToHttpParams(i,u,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/fromVo`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getResourcesWhereGroupIsAdmin(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getResourcesWhereGroupIsAdmin.");if(null==u)throw new Error("Required parameter vo was null or undefined when calling getResourcesWhereGroupIsAdmin.");if(null==_)throw new Error("Required parameter group was null or undefined when calling getResourcesWhereGroupIsAdmin.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"facility")),null!=u&&(t=this.addToHttpParams(t,u,"vo")),null!=_&&(t=this.addToHttpParams(t,_,"group"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/group`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getResourcesWhereUserIsAdmin(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getResourcesWhereUserIsAdmin.");if(null==u)throw new Error("Required parameter vo was null or undefined when calling getResourcesWhereUserIsAdmin.");if(null==_)throw new Error("Required parameter user was null or undefined when calling getResourcesWhereUserIsAdmin.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"facility")),null!=u&&(t=this.addToHttpParams(t,u,"vo")),null!=_&&(t=this.addToHttpParams(t,_,"user"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getRichAdmins(r,u,_,E,h=!1,a="body",i=!1,t){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getRichAdmins.");if(null==u)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdmins.");if(null==_)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdmins.");if(null==E)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdmins.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),u&&u.forEach(J=>{n=this.addToHttpParams(n,J,"specificAttributes")}),null!=_&&(n=this.addToHttpParams(n,_,"allUserAttributes")),null!=E&&(n=this.addToHttpParams(n,E,"onlyDirectAdmins"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let S=`${this.configuration.basePath}/json/resourcesManager/getRichAdmins`;if(h){let J=new URL(S),ht=J.pathname.split("/");ht[1]="non",J.pathname=ht.join("/"),S=J.toString()}return this.httpClient.get(S,{context:d,params:n,responseType:c,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}getRichResourceById(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getRichResourceById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getRichResourceById`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getRichResources(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getRichResources.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getRichResources`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getRichResourcesByIds(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getRichResourcesByIds.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{a=this.addToHttpParams(a,d,"ids[]")});let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getRichResourcesByIds`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getVo(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getVo.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"resource"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/resourcesManager/getVo`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}removeAllResourceTagsFromResource(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeAllResourceTagsFromResource.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"resource"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAllResourcesTagFromResource`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}removeBanByMemberAndResource(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeBanByMemberAndResource.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling removeBanByMemberAndResource.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),null!=u&&(i=this.addToHttpParams(i,u,"resource"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeBan/member-resource-id`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeGroupAdminResource(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeGroupAdminResource.");if(null==u)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeGroupAdminResource.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),null!=u&&(i=this.addToHttpParams(i,u,"authorizedGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAdmin/r-g`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeGroupFromResource(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResource.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling removeGroupFromResource.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),null!=u&&(i=this.addToHttpParams(i,u,"resource"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupFromResource`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeGroupFromResources(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResources.");if(null==u)throw new Error("Required parameter resources was null or undefined when calling removeGroupFromResources.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"resources[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupFromResources`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeGroupsFromResource(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter groups was null or undefined when calling removeGroupsFromResource.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling removeGroupsFromResource.");let i=new e.LE({encoder:this.encoder});r&&r.forEach(c=>{i=this.addToHttpParams(i,c,"groups[]")}),null!=u&&(i=this.addToHttpParams(i,u,"resource"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupsFromResource`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeResourceBanById(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter banId was null or undefined when calling removeResourceBanById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"banId"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeBan/id`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}removeResourceSelfServiceGroup(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceGroup.");if(null==u)throw new Error("Required parameter group was null or undefined when calling removeResourceSelfServiceGroup.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),null!=u&&(i=this.addToHttpParams(i,u,"group"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeResourceSelfServiceGroup`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeResourceSelfServiceUser(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceUser.");if(null==u)throw new Error("Required parameter user was null or undefined when calling removeResourceSelfServiceUser.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),null!=u&&(i=this.addToHttpParams(i,u,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeResourceSelfServiceUser`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeResourceTagFromResource(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputRemoveResourceTagFromResource was null or undefined when calling removeResourceTagFromResource.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/removeResourceTagFromResource`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}removeResourceTagsFromResource(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputRemoveResourceTagsFromResource was null or undefined when calling removeResourceTagsFromResource.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/removeResourceTagsFromResource`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}removeService(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeService.");if(null==u)throw new Error("Required parameter service was null or undefined when calling removeService.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),null!=u&&(i=this.addToHttpParams(i,u,"service"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeService`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeServiceForResources(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter resources was null or undefined when calling removeServiceForResources.");if(null==u)throw new Error("Required parameter service was null or undefined when calling removeServiceForResources.");let i=new e.LE({encoder:this.encoder});r&&r.forEach(c=>{i=this.addToHttpParams(i,c,"resources[]")}),null!=u&&(i=this.addToHttpParams(i,u,"service"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeService/forResources`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeServices(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeServices.");if(null==u)throw new Error("Required parameter services was null or undefined when calling removeServices.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"services[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeServices`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeServicesPackage(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeServicesPackage.");if(null==u)throw new Error("Required parameter servicesPackage was null or undefined when calling removeServicesPackage.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),null!=u&&(i=this.addToHttpParams(i,u,"servicesPackage"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeServicesPackage`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeUserAdminResource(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeUserAdminResource.");if(null==u)throw new Error("Required parameter user was null or undefined when calling removeUserAdminResource.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),null!=u&&(i=this.addToHttpParams(i,u,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAdmin/r-u`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}setResourceBan(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputSetBan was null or undefined when calling setResourceBan.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/setBan`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}unallowGroupsFromResources(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter groups was null or undefined when calling unallowGroupsFromResources.");if(null==u)throw new Error("Required parameter resources was null or undefined when calling unallowGroupsFromResources.");let i=new e.LE({encoder:this.encoder});r&&r.forEach(c=>{i=this.addToHttpParams(i,c,"groups[]")}),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"resources[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/resourcesManager/unallowGroupsFromResources`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}updateResource(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputUpdateResource was null or undefined when calling updateResource.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/updateResource`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}updateResourceBan(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputUpdateBan was null or undefined when calling updateResourceBan.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/updateBan`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}updateResourceTag(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputUpdateResourceTag was null or undefined when calling updateResourceTag.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/resourcesManager/updateResourceTag`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}}return Ce.\u0275fac=function(r){return new(r||Ce)(C.LFG(e.eN),C.LFG(M,8),C.LFG(b,8))},Ce.\u0275prov=C.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"}),Ce})(),W=(()=>{class Ce{constructor(r,u,_){this.httpClient=r,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new e.WM,this.configuration=new b,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new A}addToHttpParams(r,u,_){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,_):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,_){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(E=>r=this.addToHttpParamsRecursive(r,E,_));else if(u instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,u.toISOString().substr(0,10))}else Object.keys(u).forEach(E=>r=this.addToHttpParamsRecursive(r,u[E],null!=_?`${_}.${E}`:E));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,u)}return r}getAttributesMatchResources(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputGetMatchResources was null or undefined when calling getAttributesMatchResources.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/searcher/getResources/attributes-match`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}getAttributesResources(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputGetResources was null or undefined when calling getAttributesResources.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/searcher/getResources/attributes`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}getFacilities(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputGetFacilities was null or undefined when calling getFacilities.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/searcher/getFacilities`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}getMembersByUserAttributes(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputGetMembersByUserAttributes was null or undefined when calling getMembersByUserAttributes.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/searcher/getMembersByUserAttributes`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}getUsersSearcher(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputGetUsers was null or undefined when calling getUsersSearcher.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/searcher/getUsers`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}}return Ce.\u0275fac=function(r){return new(r||Ce)(C.LFG(e.eN),C.LFG(M,8),C.LFG(b,8))},Ce.\u0275prov=C.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"}),Ce})(),F=(()=>{class Ce{constructor(r,u,_){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new b,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new A}addToHttpParams(r,u,_){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,_):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,_){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(E=>r=this.addToHttpParamsRecursive(r,E,_));else if(u instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,u.toISOString().substr(0,10))}else Object.keys(u).forEach(E=>r=this.addToHttpParamsRecursive(r,u[E],null!=_?`${_}.${E}`:E));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,u)}return r}addDestination(r,u,_,E,h,a=!1,i="body",t=!1,n){if(null==r)throw new Error("Required parameter service was null or undefined when calling addDestination.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling addDestination.");if(null==_)throw new Error("Required parameter destination was null or undefined when calling addDestination.");if(null==E)throw new Error("Required parameter type was null or undefined when calling addDestination.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"service")),null!=u&&(o=this.addToHttpParams(o,u,"facility")),null!=_&&(o=this.addToHttpParams(o,_,"destination")),null!=E&&(o=this.addToHttpParams(o,E,"type")),null!=h&&(o=this.addToHttpParams(o,h,"propagationType"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let c=n&&n.context;void 0===c&&(c=new e.qT);let S="json";d&&(S=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob");let J=`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestination`;if(a){let ht=new URL(J),ze=ht.pathname.split("/");ze[1]="non",ht.pathname=ze.join("/"),J=ht.toString()}return this.httpClient.post(J,null,{context:c,params:o,responseType:S,withCredentials:this.configuration.withCredentials,headers:s,observe:i,reportProgress:t})}addDestinationToMultipleServices(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputAddDestinationToMultipleServices was null or undefined when calling addDestinationToMultipleServices.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/servicesManager/addDestination`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}addDestinationsDefinedByHostsOnFacilityWithFacility(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithFacility.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestinationsDefinedByHostsOnFacility/f`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}addDestinationsDefinedByHostsOnFacilityWithListOfServiceAndFacility(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputAddDestinationsDefinedByHostsOnFacility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithListOfServiceAndFacility.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/servicesManager/addDestinationsDefinedByHostsOnFacility/lists-f`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=u&&(i=this.addToHttpParams(i,u,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestinationsDefinedByHostsOnFacility/s-f`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}addDestinationsForAllServicesOnFacility(r,u,_,E,h=!1,a="body",i=!1,t){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addDestinationsForAllServicesOnFacility.");if(null==u)throw new Error("Required parameter destination was null or undefined when calling addDestinationsForAllServicesOnFacility.");if(null==_)throw new Error("Required parameter type was null or undefined when calling addDestinationsForAllServicesOnFacility.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=u&&(n=this.addToHttpParams(n,u,"destination")),null!=_&&(n=this.addToHttpParams(n,_,"type")),null!=E&&(n=this.addToHttpParams(n,E,"propagationType"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let S=`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestinationsForAllServicesOnFacility`;if(h){let J=new URL(S),ht=J.pathname.split("/");ht[1]="non",J.pathname=ht.join("/"),S=J.toString()}return this.httpClient.post(S,null,{context:d,params:n,responseType:c,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}addRequiredAttribute(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling addRequiredAttribute.");if(null==u)throw new Error("Required parameter attributeId was null or undefined when calling addRequiredAttribute.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=u&&(i=this.addToHttpParams(i,u,"attributeId"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/addRequiredAttribute`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}addRequiredAttributes(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling addRequiredAttributes.");if(null==u)throw new Error("Required parameter attributes was null or undefined when calling addRequiredAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attributes[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/addRequiredAttributes`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}addServiceToServicesPackage(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter servicesPackage was null or undefined when calling addServiceToServicesPackage.");if(null==u)throw new Error("Required parameter service was null or undefined when calling addServiceToServicesPackage.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"servicesPackage")),null!=u&&(i=this.addToHttpParams(i,u,"service"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/addServiceToServicesPackage`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}blockAllServicesOnDestinationById(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter destination was null or undefined when calling blockAllServicesOnDestinationById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"destination"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/servicesManager/blockAllServicesOnDestination/d`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}blockAllServicesOnDestinationByName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter destination was null or undefined when calling blockAllServicesOnDestinationByName.");if(null==u)throw new Error("Required parameter destinationType was null or undefined when calling blockAllServicesOnDestinationByName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"destination")),null!=u&&(i=this.addToHttpParams(i,u,"destinationType"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/blockAllServicesOnDestination/dname-dtype`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}blockAllServicesOnFacility(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling blockAllServicesOnFacility.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/servicesManager/blockAllServicesOnFacility`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}blockServiceOnDestination(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling blockServiceOnDestination.");if(null==u)throw new Error("Required parameter destination was null or undefined when calling blockServiceOnDestination.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=u&&(i=this.addToHttpParams(i,u,"destination"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/blockServiceOnDestination/s-d`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}blockServiceOnDestinationWithNameAndType(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter service was null or undefined when calling blockServiceOnDestinationWithNameAndType.");if(null==u)throw new Error("Required parameter destination was null or undefined when calling blockServiceOnDestinationWithNameAndType.");if(null==_)throw new Error("Required parameter destinationType was null or undefined when calling blockServiceOnDestinationWithNameAndType.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"service")),null!=u&&(t=this.addToHttpParams(t,u,"destination")),null!=_&&(t=this.addToHttpParams(t,_,"destinationType"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/servicesManager/blockServiceOnDestination/s-dname-dtype`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}blockServiceOnDestinations(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling blockServiceOnDestinations.");if(null==u)throw new Error("Required parameter destinations was null or undefined when calling blockServiceOnDestinations.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"destinations[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/blockServiceOnDestinations`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}blockServiceOnFacility(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling blockServiceOnFacility.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling blockServiceOnFacility.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=u&&(i=this.addToHttpParams(i,u,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/blockServiceOnFacility`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}blockServicesOnDestinations(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputBlockServicesOnDestinations was null or undefined when calling blockServicesOnDestinations.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/servicesManager/blockServicesOnDestinations`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}createService(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter name was null or undefined when calling createService.");if(null==u)throw new Error("Required parameter description was null or undefined when calling createService.");if(null==_)throw new Error("Required parameter script was null or undefined when calling createService.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"name")),null!=u&&(t=this.addToHttpParams(t,u,"description")),null!=_&&(t=this.addToHttpParams(t,_,"script"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/servicesManager/createService`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}createServiceWithService(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputCreateService was null or undefined when calling createServiceWithService.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/servicesManager/createService`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}createServicesPackage(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputCreateServicesPackage was null or undefined when calling createServicesPackage.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/servicesManager/createServicesPackage`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}createServicesPackageByNameAndDescription(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter name was null or undefined when calling createServicesPackageByNameAndDescription.");if(null==u)throw new Error("Required parameter description was null or undefined when calling createServicesPackageByNameAndDescription.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"name")),null!=u&&(i=this.addToHttpParams(i,u,"description"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/createServicesPackage`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}deleteService(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling deleteService.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=u&&(i=this.addToHttpParams(i,u,"force"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/deleteService`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}deleteServices(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter services was null or undefined when calling deleteServices.");let i=new e.LE({encoder:this.encoder});r&&r.forEach(c=>{i=this.addToHttpParams(i,c,"services[]")}),null!=u&&(i=this.addToHttpParams(i,u,"force"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/deleteServices`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}deleteServicesPackage(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter servicesPackage was null or undefined when calling deleteServicesPackage.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"servicesPackage"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/servicesManager/deleteServicesPackage`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}forceServicePropagation(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling forceServicePropagation.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=u&&(i=this.addToHttpParams(i,u,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/forceServicePropagation`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getAllDestinations(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/servicesManager/getDestinations/all`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getAllRichDestinationsForFacility(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAllRichDestinationsForFacility.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/servicesManager/getAllRichDestinations/f`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAllRichDestinationsForService(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter service was null or undefined when calling getAllRichDestinationsForService.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"service"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/servicesManager/getAllRichDestinations/s`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAssignedResources(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter service was null or undefined when calling getAssignedResources.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"service"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/servicesManager/getAssignedResourcesForService`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAssignedServices(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedServices.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/servicesManager/getAssignedServices/f`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAssignedServicesVo(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedServicesVo.");if(null==u)throw new Error("Required parameter vo was null or undefined when calling getAssignedServicesVo.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=u&&(i=this.addToHttpParams(i,u,"vo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/servicesManager/getAssignedServices/f-v`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getDataWithGroups(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling getDataWithGroups.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getDataWithGroups.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=u&&(i=this.addToHttpParams(i,u,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/servicesManager/getDataWithGroups`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getDataWithVos(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling getDataWithVos.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getDataWithVos.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=u&&(i=this.addToHttpParams(i,u,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/servicesManager/getDataWithVos`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getDestinationById(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getDestinationById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/servicesManager/getDestinationById`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getDestinations(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling getDestinations.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getDestinations.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=u&&(i=this.addToHttpParams(i,u,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/servicesManager/getDestinations/s-f`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getDestinationsCount(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/servicesManager/getDestinationsCount`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getFacilitiesDestinations(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getFacilitiesDestinations.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/servicesManager/getFacilitiesDestinations`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getFacilityAssignedServicesForGUI(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityAssignedServicesForGUI.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/servicesManager/getFacilityAssignedServicesForGUI`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getFlatData(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling getFlatData.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getFlatData.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=u&&(i=this.addToHttpParams(i,u,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/servicesManager/getFlatData`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getHashedDataWithGroups(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter service was null or undefined when calling getHashedDataWithGroups.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getHashedDataWithGroups.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"service")),null!=u&&(t=this.addToHttpParams(t,u,"facility")),null!=_&&(t=this.addToHttpParams(t,_,"consentEval"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/servicesManager/getHashedDataWithGroups`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getHashedHierarchicalData(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter service was null or undefined when calling getHashedHierarchicalData.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getHashedHierarchicalData.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"service")),null!=u&&(t=this.addToHttpParams(t,u,"facility")),null!=_&&(t=this.addToHttpParams(t,_,"consentEval"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/servicesManager/getHashedHierarchicalData`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getHierarchicalData(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling getHierarchicalData.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getHierarchicalData.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=u&&(i=this.addToHttpParams(i,u,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/servicesManager/getHierarchicalData`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getRichDestinations(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRichDestinations.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getRichDestinations.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=u&&(i=this.addToHttpParams(i,u,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/servicesManager/getRichDestinations`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getServiceById(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getServiceById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/servicesManager/getServiceById`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getServiceByName(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter name was null or undefined when calling getServiceByName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"name"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/servicesManager/getServiceByName`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getServices(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/servicesManager/getServices`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getServicesBlockedOnDestination(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter destination was null or undefined when calling getServicesBlockedOnDestination.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"destination"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/servicesManager/getServicesBlockedOnDestination`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getServicesBlockedOnFacility(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getServicesBlockedOnFacility.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/servicesManager/getServicesBlockedOnFacility`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getServicesByAttributeDefinition(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter attributeDefinition was null or undefined when calling getServicesByAttributeDefinition.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"attributeDefinition"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/servicesManager/getServicesByAttributeDefinition`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getServicesFromServicesPackage(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter servicesPackage was null or undefined when calling getServicesFromServicesPackage.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"servicesPackage"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/servicesManager/getServicesFromServicesPackage`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getServicesPackageById(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter servicesPackage was null or undefined when calling getServicesPackageById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"servicesPackage"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/servicesManager/getServicesPackageById`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getServicesPackageByName(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter name was null or undefined when calling getServicesPackageByName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"name"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/servicesManager/getServicesPackageByName`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getServicesPackages(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/servicesManager/getServicesPackages`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}isServiceBlockedOnDestination(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling isServiceBlockedOnDestination.");if(null==u)throw new Error("Required parameter destination was null or undefined when calling isServiceBlockedOnDestination.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=u&&(i=this.addToHttpParams(i,u,"destination"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/servicesManager/isServiceBlockedOnDestination`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}isServiceBlockedOnFacility(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling isServiceBlockedOnFacility.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling isServiceBlockedOnFacility.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=u&&(i=this.addToHttpParams(i,u,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/servicesManager/isServiceBlockedOnFacility`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}planServicePropagation(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling planServicePropagation.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=u&&(i=this.addToHttpParams(i,u,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/planServicePropagation`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeAllDestinations(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling removeAllDestinations.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling removeAllDestinations.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=u&&(i=this.addToHttpParams(i,u,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/removeAllDestinations`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeAllRequiredAttributes(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter service was null or undefined when calling removeAllRequiredAttributes.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"service"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/servicesManager/removeAllRequiredAttributes`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}removeDestination(r,u,_,E,h=!1,a="body",i=!1,t){if(null==r)throw new Error("Required parameter service was null or undefined when calling removeDestination.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling removeDestination.");if(null==_)throw new Error("Required parameter destination was null or undefined when calling removeDestination.");if(null==E)throw new Error("Required parameter type was null or undefined when calling removeDestination.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=u&&(n=this.addToHttpParams(n,u,"facility")),null!=_&&(n=this.addToHttpParams(n,_,"destination")),null!=E&&(n=this.addToHttpParams(n,E,"type"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let S=`${this.configuration.basePath}/urlinjsonout/servicesManager/removeDestination`;if(h){let J=new URL(S),ht=J.pathname.split("/");ht[1]="non",J.pathname=ht.join("/"),S=J.toString()}return this.httpClient.post(S,null,{context:d,params:n,responseType:c,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}removeDestinations(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter service was null or undefined when calling removeDestinations.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling removeDestinations.");if(null==_)throw new Error("Required parameter destinations was null or undefined when calling removeDestinations.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"service")),null!=u&&(t=this.addToHttpParams(t,u,"facility")),_&&_.forEach(S=>{t=this.addToHttpParams(t,S,"destinations[]")});let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/servicesManager/removeDestinations`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}removeDestinationsByRichDestinations(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputRemoveRichDestinations was null or undefined when calling removeDestinationsByRichDestinations.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/servicesManager/removeDestinationsByRichDestinations`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}removeRequiredAttribute(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling removeRequiredAttribute.");if(null==u)throw new Error("Required parameter attributeId was null or undefined when calling removeRequiredAttribute.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=u&&(i=this.addToHttpParams(i,u,"attributeId"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/removeRequiredAttribute`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeRequiredAttributes(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling removeRequiredAttributes.");if(null==u)throw new Error("Required parameter attributes was null or undefined when calling removeRequiredAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attributes[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/removeRequiredAttributes`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeServiceFromServicesPackage(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter servicesPackage was null or undefined when calling removeServiceFromServicesPackage.");if(null==u)throw new Error("Required parameter service was null or undefined when calling removeServiceFromServicesPackage.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"servicesPackage")),null!=u&&(i=this.addToHttpParams(i,u,"service"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/removeServiceFromServicesPackage`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}unblockAllServicesOnDestinationById(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter destination was null or undefined when calling unblockAllServicesOnDestinationById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"destination"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockAllServicesOnDestination/d`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}unblockAllServicesOnDestinationByName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter destination was null or undefined when calling unblockAllServicesOnDestinationByName.");if(null==u)throw new Error("Required parameter destinationType was null or undefined when calling unblockAllServicesOnDestinationByName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"destination")),null!=u&&(i=this.addToHttpParams(i,u,"destinationType"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockAllServicesOnDestination/dname-dtype`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}unblockAllServicesOnFacility(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling unblockAllServicesOnFacility.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockAllServicesOnFacility`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}unblockServiceOnDestinationById(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnDestinationById.");if(null==u)throw new Error("Required parameter destination was null or undefined when calling unblockServiceOnDestinationById.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=u&&(i=this.addToHttpParams(i,u,"destination"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockServiceOnDestination/s-d`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}unblockServiceOnDestinationByName(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnDestinationByName.");if(null==u)throw new Error("Required parameter destination was null or undefined when calling unblockServiceOnDestinationByName.");if(null==_)throw new Error("Required parameter destinationType was null or undefined when calling unblockServiceOnDestinationByName.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"service")),null!=u&&(t=this.addToHttpParams(t,u,"destination")),null!=_&&(t=this.addToHttpParams(t,_,"destinationType"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockServiceOnDestination/s-dname-dtype`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}unblockServiceOnDestinations(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnDestinations.");if(null==u)throw new Error("Required parameter destinations was null or undefined when calling unblockServiceOnDestinations.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"destinations[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockServiceOnDestinations`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}unblockServiceOnFacility(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnFacility.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling unblockServiceOnFacility.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=u&&(i=this.addToHttpParams(i,u,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockServiceOnFacility`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}unblockServicesOnDestinations(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputUnlockServicesOnDestinations was null or undefined when calling unblockServicesOnDestinations.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/servicesManager/unblockServicesOnDestinations`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}updateService(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputUpdateService was null or undefined when calling updateService.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/servicesManager/updateService`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}updateServicesPackage(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputUpdateServicesPackage was null or undefined when calling updateServicesPackage.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/servicesManager/updateServicesPackage`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}}return Ce.\u0275fac=function(r){return new(r||Ce)(C.LFG(e.eN),C.LFG(M,8),C.LFG(b,8))},Ce.\u0275prov=C.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"}),Ce})(),V=(()=>{class Ce{constructor(r,u,_){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new b,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new A}addToHttpParams(r,u,_){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,_):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,_){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(E=>r=this.addToHttpParamsRecursive(r,E,_));else if(u instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,u.toISOString().substr(0,10))}else Object.keys(u).forEach(E=>r=this.addToHttpParamsRecursive(r,u[E],null!=_?`${_}.${E}`:E));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,u)}return r}countTasks(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/tasksManager/countTasks`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}deleteTask(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter TaskIdObject was null or undefined when calling deleteTask.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/tasksManager/deleteTask`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}deleteTaskResultById(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter TaskResultIdObject was null or undefined when calling deleteTaskResultById.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/tasksManager/deleteTaskResultById`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}deleteTaskResultsByIds(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter taskResultIds was null or undefined when calling deleteTaskResultsByIds.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{a=this.addToHttpParams(a,d,"taskResultIds")});let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/tasksManager/deleteTaskResultsByIds`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}deleteTaskResultsIds(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter TaskAndDestinationIdObject was null or undefined when calling deleteTaskResultsIds.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/tasksManager/deleteTaskResults/id`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}deleteTaskResultsNames(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter TaskAndDestinationNameObject was null or undefined when calling deleteTaskResultsNames.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/tasksManager/deleteTaskResults/name`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}getAllFacilitiesStates(r,u=!1,_="body",E=!1,h){let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/tasksManager/getAllFacilitiesStates`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAllResourcesState(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter voId was null or undefined when calling getAllResourcesState.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"voId"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/tasksManager/getAllResourcesState`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getFacilityServicesState(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityServicesState.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/tasksManager/getFacilityServicesState`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getFacilityState(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityState.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/tasksManager/getFacilityState`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getTask(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling getTask.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getTask.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=u&&(i=this.addToHttpParams(i,u,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/tasksManager/getTask`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getTaskById(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getTaskById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/tasksManager/getTaskById`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getTaskResultById(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter taskResult was null or undefined when calling getTaskResultById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"taskResult"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/tasksManager/getTaskResultById`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getTaskResults(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/tasksManager/getTaskResults`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getTaskResultsByTask(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter task was null or undefined when calling getTaskResultsByTask.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"task"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/tasksManager/getTaskResultsByTask`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getTaskResultsForDestinations(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter destinations was null or undefined when calling getTaskResultsForDestinations.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{a=this.addToHttpParams(a,d,"destinations[]")});let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/tasksManager/getTaskResultsForDestinations`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getTaskResultsForGUIByTask(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTask.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"task"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/tasksManager/getTaskResultsForGUIByTask`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getTaskResultsForGUIByTaskAndDestination(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTaskAndDestination.");if(null==u)throw new Error("Required parameter destination was null or undefined when calling getTaskResultsForGUIByTaskAndDestination.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"task")),null!=u&&(i=this.addToHttpParams(i,u,"destination"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/tasksManager/getTaskResultsForGUIByTaskAndDestination`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getTaskResultsForGUIByTaskOnlyNewest(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTaskOnlyNewest.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"task"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/tasksManager/getTaskResultsForGUIByTaskOnlyNewest`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}isThereSuchTask(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling isThereSuchTask.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling isThereSuchTask.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=u&&(i=this.addToHttpParams(i,u,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/tasksManager/isThereSuchTask`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}listAllTasks(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/tasksManager/listAllTasks`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}listAllTasksForFacility(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter facility was null or undefined when calling listAllTasksForFacility.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/tasksManager/listAllTasksForFacility`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}suspendTasksPropagation(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter suspend was null or undefined when calling suspendTasksPropagation.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"suspend"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/tasksManager/suspendTasksPropagation`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}}return Ce.\u0275fac=function(r){return new(r||Ce)(C.LFG(e.eN),C.LFG(M,8),C.LFG(b,8))},Ce.\u0275prov=C.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"}),Ce})(),ee=(()=>{class Ce{constructor(r,u,_){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new b,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new A}addToHttpParams(r,u,_){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,_):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,_){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(E=>r=this.addToHttpParamsRecursive(r,E,_));else if(u instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,u.toISOString().substr(0,10))}else Object.keys(u).forEach(E=>r=this.addToHttpParamsRecursive(r,u[E],null!=_?`${_}.${E}`:E));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,u)}return r}addSpecificUserOwner(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling addSpecificUserOwner.");if(null==u)throw new Error("Required parameter specificUser was null or undefined when calling addSpecificUserOwner.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),null!=u&&(i=this.addToHttpParams(i,u,"specificUser"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/usersManager/addSpecificUserOwner`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}addUserExtSource(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter AddUserExtSourceInput was null or undefined when calling addUserExtSource.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/addUserExtSource`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}anonymizeUser(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling anonymizeUser.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),null!=u&&(i=this.addToHttpParams(i,u,"force"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/usersManager/anonymizeUser`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}changeNonAuthzPasswordByToken(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputChangeNonAuthzPasswordByToken was null or undefined when calling changeNonAuthzPasswordByToken.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/changeNonAuthzPassword/token`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}changePasswordForLogin(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputChangePasswordForLogin was null or undefined when calling changePasswordForLogin.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/changePassword/login`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}changePasswordForUser(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputChangePasswordForUser was null or undefined when calling changePasswordForUser.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/changePassword/user`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}checkPasswordResetRequestByTokenIsValid(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter token was null or undefined when calling checkPasswordResetRequestByTokenIsValid.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"token"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/usersManager/checkPasswordResetRequestIsValid/token`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}checkPasswordStrength(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputCheckPasswordStrength was null or undefined when calling checkPasswordStrength.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/checkPasswordStrength`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}createAlternativePassword(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputCreateAlternativePassword was null or undefined when calling createAlternativePassword.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/createAlternativePassword`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}createServiceUser(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputCreateServiceUser was null or undefined when calling createServiceUser.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/createServiceUser`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}deleteAlternativePassword(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter user was null or undefined when calling deleteAlternativePassword.");if(null==u)throw new Error("Required parameter loginNamespace was null or undefined when calling deleteAlternativePassword.");if(null==_)throw new Error("Required parameter passwordId was null or undefined when calling deleteAlternativePassword.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"user")),null!=u&&(t=this.addToHttpParams(t,u,"loginNamespace")),null!=_&&(t=this.addToHttpParams(t,_,"passwordId"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/usersManager/deleteAlternativePassword`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}deletePasswordForLogin(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter login was null or undefined when calling deletePasswordForLogin.");if(null==u)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForLogin.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"login")),null!=u&&(i=this.addToHttpParams(i,u,"namespace"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/login`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}deletePasswordForUser(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling deletePasswordForUser.");if(null==u)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForUser.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),null!=u&&(i=this.addToHttpParams(i,u,"namespace"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/user`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}deleteUser(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling deleteUser.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),null!=u&&(i=this.addToHttpParams(i,u,"force"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/usersManager/deleteUser`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}findRichUsers(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter searchString was null or undefined when calling findRichUsers.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"searchString"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/usersManager/findRichUsers`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}findRichUsersWithAttributes(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter searchString was null or undefined when calling findRichUsersWithAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"searchString")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrsNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/findRichUsersWithAttributes`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}findUsers(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter searchString was null or undefined when calling findUsers.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"searchString"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/usersManager/findUsers`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}generateAccountForName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter namespace was null or undefined when calling generateAccountForName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"namespace")),null!=u&&(i=this.addToHttpParams(i,u,"name"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/usersManager/generateAccount/name`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getAllRichUsersWithAttributes(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter includedSpecificUsers was null or undefined when calling getAllRichUsersWithAttributes.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"includedSpecificUsers"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/usersManager/getAllRichUsersWithAttributes`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getAssignedRichResourcesForUser(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getAssignedRichResourcesForUser.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/usersManager/getAssignedRichResources`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getGroupsForFacilityWhereUserIsActive(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");if(null==u)throw new Error("Required parameter facility was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),null!=u&&(i=this.addToHttpParams(i,u,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/facility`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getGroupsForResourceWhereUserIsActive(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling getGroupsForResourceWhereUserIsActive.");if(null==u)throw new Error("Required parameter resource was null or undefined when calling getGroupsForResourceWhereUserIsActive.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),null!=u&&(i=this.addToHttpParams(i,u,"resource"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/resource`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getGroupsInVoWhereUserIsAdmin(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");if(null==u)throw new Error("Required parameter vo was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),null!=u&&(i=this.addToHttpParams(i,u,"vo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u-v`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getGroupsWhereUserIsAdmin(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getGroupsWhereUserIsAdmin.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getPendingPreferredEmailChanges(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getPendingPreferredEmailChanges.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/usersManager/getPendingPreferredEmailChanges`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getRichUserExtSources(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getRichUserExtSources.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/usersManager/getRichUserExtSources/u`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getRichUserWithAttributes(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getRichUserWithAttributes.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/usersManager/getRichUserWithAttributes`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getRichUsersByIds(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getRichUsersByIds.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{a=this.addToHttpParams(a,d,"ids[]")});let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/usersManager/getRichUsersByIds`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getRichUsersWithAttributesByIds(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getRichUsersWithAttributesByIds.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{a=this.addToHttpParams(a,d,"ids[]")});let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/usersManager/getRichUsersWithAttributesByIds`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getRichUsersWithoutVoWithAttributes(r,u=!1,_="body",E=!1,h){let a=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{a=this.addToHttpParams(a,d,"attrsNames[]")});let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/usersManager/getRichUsersWithoutVoWithAttributes`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getSpecificUsersByUser(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getSpecificUsersByUser.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/usersManager/getSpecificUsersByUser`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getSponsorsForMember(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling getSponsorsForMember.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/member`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getSponsorsForMemberByVoAndLogin(r,u,_,E,h=!1,a="body",i=!1,t){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==u)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==_)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsForMemberByVoAndLogin.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=u&&(n=this.addToHttpParams(n,u,"extSourceName")),null!=_&&(n=this.addToHttpParams(n,_,"extLogin")),E&&E.forEach(J=>{n=this.addToHttpParams(n,J,"attrNames[]")});let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=t&&t.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let d=t&&t.context;void 0===d&&(d=new e.qT);let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let S=`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/vo`;if(h){let J=new URL(S),ht=J.pathname.split("/");ht[1]="non",J.pathname=ht.join("/"),S=J.toString()}return this.httpClient.get(S,{context:d,params:n,responseType:c,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}getUserByExtSourceNameAndExtLogin(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter extLogin was null or undefined when calling getUserByExtSourceNameAndExtLogin.");if(null==u)throw new Error("Required parameter extSourceName was null or undefined when calling getUserByExtSourceNameAndExtLogin.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"extLogin")),null!=u&&(i=this.addToHttpParams(i,u,"extSourceName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/getUserByExtSourceNameAndExtLogin`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getUserById(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getUserById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/usersManager/getUserById`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getUserExtSourceByExtLoginAndExtSourceName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter extSourceName was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");if(null==u)throw new Error("Required parameter extSourceLogin was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"extSourceName")),null!=u&&(i=this.addToHttpParams(i,u,"extSourceLogin"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/getUserExtSourceByExtLoginAndExtSourceName`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getUserExtSourceById(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"userExtSource"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/usersManager/getUserExtSourceById`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getUserExtSourceByUniqueAttributeValueAndAttributeId(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");if(null==u)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"attributeId")),null!=u&&(i=this.addToHttpParams(i,u,"attributeValue"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/id`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getUserExtSourceByUniqueAttributeValueAndAttributeName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");if(null==u)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"attributeName")),null!=u&&(i=this.addToHttpParams(i,u,"attributeValue"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/name`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getUserExtSources(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getUserExtSources.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/usersManager/getUserExtSources`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getUserExtSourcesByIds(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getUserExtSourcesByIds.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{a=this.addToHttpParams(a,d,"ids[]")});let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/usersManager/getUserExtSourcesByIds`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getUsers(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/usersManager/getUsers`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getUsersByIds(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getUsersByIds.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{a=this.addToHttpParams(a,d,"ids[]")});let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/usersManager/getUsersByIds`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getUsersBySpecificUser(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter specificUser was null or undefined when calling getUsersBySpecificUser.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"specificUser"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/usersManager/getUsersBySpecificUser`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getUsersPage(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputGetPaginatedUsers was null or undefined when calling getUsersPage.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/getUsersPage`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}getVosWhereUserIsAdmin(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsAdmin.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsAdmin`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getVosWhereUserIsMember(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsMember.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsMember`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}isLoginAvailable(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter loginNamespace was null or undefined when calling isLoginAvailable.");if(null==u)throw new Error("Required parameter login was null or undefined when calling isLoginAvailable.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"loginNamespace")),null!=u&&(i=this.addToHttpParams(i,u,"login"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/usersManager/isLoginAvailable`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}loginExist(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling loginExist.");if(null==u)throw new Error("Required parameter namespace was null or undefined when calling loginExist.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),null!=u&&(i=this.addToHttpParams(i,u,"namespace"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/usersManager/loginExist`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeSpecificUserOwner(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling removeSpecificUserOwner.");if(null==u)throw new Error("Required parameter specificUser was null or undefined when calling removeSpecificUserOwner.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),null!=u&&(i=this.addToHttpParams(i,u,"specificUser"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/usersManager/removeSpecificUserOwner`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeUserExtSource(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter user was null or undefined when calling removeUserExtSource.");if(null==u)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSource.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"user")),null!=u&&(t=this.addToHttpParams(t,u,"userExtSource")),null!=_&&(t=this.addToHttpParams(t,_,"force"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/usersManager/removeUserExtSource`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}removeUserExtSources(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter user was null or undefined when calling removeUserExtSources.");if(null==u)throw new Error("Required parameter userExtSources was null or undefined when calling removeUserExtSources.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"user")),u&&u.forEach(S=>{t=this.addToHttpParams(t,S,"userExtSources")}),null!=_&&(t=this.addToHttpParams(t,_,"force"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/usersManager/removeUserExtSources`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}requestPreferredEmailChange(r,u,_,E,h,a,i=!1,t="body",n=!1,o){if(null==r)throw new Error("Required parameter user was null or undefined when calling requestPreferredEmailChange.");if(null==u)throw new Error("Required parameter email was null or undefined when calling requestPreferredEmailChange.");let s=new e.LE({encoder:this.encoder});null!=r&&(s=this.addToHttpParams(s,r,"user")),null!=u&&(s=this.addToHttpParams(s,u,"email")),null!=_&&(s=this.addToHttpParams(s,_,"lang")),null!=E&&(s=this.addToHttpParams(s,E,"linkPath")),null!=h&&(s=this.addToHttpParams(s,h,"customUrl")),null!=a&&(s=this.addToHttpParams(s,a,"idpFilter"));let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let c=o&&o.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(l=l.set("Accept",c));let S=o&&o.context;void 0===S&&(S=new e.qT);let J="json";c&&(J=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let ht=`${this.configuration.basePath}/urlinjsonout/usersManager/requestPreferredEmailChange`;if(i){let ze=new URL(ht),et=ze.pathname.split("/");et[1]="non",ze.pathname=et.join("/"),ht=ze.toString()}return this.httpClient.post(ht,null,{context:S,params:s,responseType:J,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:n})}reservePasswordForLogin(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputReservePasswordForLogin was null or undefined when calling reservePasswordForLogin.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/reservePassword/login`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}reservePasswordForUser(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputReservePasswordForUser was null or undefined when calling reservePasswordForUser.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/reservePassword/user`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}reserveRandomPassword(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling reserveRandomPassword.");if(null==u)throw new Error("Required parameter namespace was null or undefined when calling reserveRandomPassword.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),null!=u&&(i=this.addToHttpParams(i,u,"namespace"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/usersManager/reserveRandomPassword`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}setLogin(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter user was null or undefined when calling setLogin.");if(null==u)throw new Error("Required parameter login was null or undefined when calling setLogin.");if(null==_)throw new Error("Required parameter namespace was null or undefined when calling setLogin.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"user")),null!=u&&(t=this.addToHttpParams(t,u,"login")),null!=_&&(t=this.addToHttpParams(t,_,"namespace"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/usersManager/setLogin`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.post(c,null,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}updateUser(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputUpdateUser was null or undefined when calling updateUser.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/usersManager/updateUser`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}updateUserExtSourceLastAccess(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter userExtSource was null or undefined when calling updateUserExtSourceLastAccess.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"userExtSource"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/usersManager/updateUserExtSourceLastAccess`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}validatePasswordForLogin(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter login was null or undefined when calling validatePasswordForLogin.");if(null==u)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForLogin.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"login")),null!=u&&(i=this.addToHttpParams(i,u,"namespace"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/login`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}validatePasswordForUser(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling validatePasswordForUser.");if(null==u)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForUser.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),null!=u&&(i=this.addToHttpParams(i,u,"namespace"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/user`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}validatePreferredEmailChangeWithToken(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter token was null or undefined when calling validatePreferredEmailChangeWithToken.");if(null==u)throw new Error("Required parameter u was null or undefined when calling validatePreferredEmailChangeWithToken.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"token")),null!=u&&(i=this.addToHttpParams(i,u,"u"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/usersManager/validatePreferredEmailChange`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}}return Ce.\u0275fac=function(r){return new(r||Ce)(C.LFG(e.eN),C.LFG(M,8),C.LFG(b,8))},Ce.\u0275prov=C.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"}),Ce})(),Q=(()=>{class Ce{constructor(r,u,_){this.httpClient=r,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new e.WM,this.configuration=new b,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new A}addToHttpParams(r,u,_){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,_):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,_){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(E=>r=this.addToHttpParamsRecursive(r,E,_));else if(u instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,u.toISOString().substr(0,10))}else Object.keys(u).forEach(E=>r=this.addToHttpParamsRecursive(r,u[E],null!=_?`${_}.${E}`:E));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,u)}return r}getAppsConfig(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/utils/getAppsConfig`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getGuiConfiguration(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/utils/getGuiConfiguration`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getNewGuiAlert(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/utils/getNewGuiAlert`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getPerunRPCVersion(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["text/plain"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getPerunStatistics(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/utils/getPerunStatistics`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getPerunStatus(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/utils/getPerunStatus`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getPerunSystemTimeInMillis(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/utils/getPerunSystemTimeInMillis`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}}return Ce.\u0275fac=function(r){return new(r||Ce)(C.LFG(e.eN),C.LFG(M,8),C.LFG(b,8))},Ce.\u0275prov=C.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"}),Ce})(),Ee=(()=>{class Ce{constructor(r,u,_){this.httpClient=r,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new e.WM,this.configuration=new b,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof u&&(u=this.basePath),this.configuration.basePath=u),this.encoder=this.configuration.encoder||new A}addToHttpParams(r,u,_){return"object"!=typeof u||u instanceof Date?this.addToHttpParamsRecursive(r,u,_):this.addToHttpParamsRecursive(r,u)}addToHttpParamsRecursive(r,u,_){if(null==u)return r;if("object"==typeof u)if(Array.isArray(u))u.forEach(E=>r=this.addToHttpParamsRecursive(r,E,_));else if(u instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,u.toISOString().substr(0,10))}else Object.keys(u).forEach(E=>r=this.addToHttpParamsRecursive(r,u[E],null!=_?`${_}.${E}`:E));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,u)}return r}addMemberVo(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling addMemberVo.");if(null==u)throw new Error("Required parameter memberVo was null or undefined when calling addMemberVo.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=u&&(i=this.addToHttpParams(i,u,"memberVo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/vosManager/addMemberVo`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}addSponsorRoleToGroup(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToGroup.");if(null==u)throw new Error("Required parameter authorizedGroup was null or undefined when calling addSponsorRoleToGroup.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=u&&(i=this.addToHttpParams(i,u,"authorizedGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/vosManager/addSponsorRole/group`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}addSponsorRoleToUser(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToUser.");if(null==u)throw new Error("Required parameter user was null or undefined when calling addSponsorRoleToUser.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=u&&(i=this.addToHttpParams(i,u,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/vosManager/addSponsorRole/user`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}addVoAdminGroup(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling addVoAdminGroup.");if(null==u)throw new Error("Required parameter authorizedGroup was null or undefined when calling addVoAdminGroup.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=u&&(i=this.addToHttpParams(i,u,"authorizedGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/vosManager/addAdmin/group`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}addVoAdminUser(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling addVoAdminUser.");if(null==u)throw new Error("Required parameter user was null or undefined when calling addVoAdminUser.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=u&&(i=this.addToHttpParams(i,u,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/vosManager/addAdmin/user`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}createVoWithName(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter name was null or undefined when calling createVoWithName.");if(null==u)throw new Error("Required parameter shortName was null or undefined when calling createVoWithName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"name")),null!=u&&(i=this.addToHttpParams(i,u,"shortName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/vosManager/createVo/withName`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}createVoWithVo(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputCreateVoWithVo was null or undefined when calling createVoWithVo.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/vosManager/createVo/withVo`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}deleteVo(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling deleteVo.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=u&&(i=this.addToHttpParams(i,u,"force"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/vosManager/deleteVo`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}findCandidates(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter id was null or undefined when calling findCandidates.");if(null==u)throw new Error("Required parameter searchString was null or undefined when calling findCandidates.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"id")),null!=u&&(t=this.addToHttpParams(t,u,"searchString")),null!=_&&(t=this.addToHttpParams(t,_,"maxNumOfResults"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/vosManager/findCandidates`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}findCandidatesForGroup(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling findCandidatesForGroup.");if(null==u)throw new Error("Required parameter searchString was null or undefined when calling findCandidatesForGroup.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),null!=u&&(i=this.addToHttpParams(i,u,"searchString"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/vosManager/findCandidates/forGroup`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getAllVos(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/vosManager/getAllVos`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getCompleteCandidatesForGroup(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter group was null or undefined when calling getCompleteCandidatesForGroup.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getCompleteCandidatesForGroup.");if(null==_)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForGroup.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"group")),u&&u.forEach(S=>{t=this.addToHttpParams(t,S,"attrNames[]")}),null!=_&&(t=this.addToHttpParams(t,_,"searchString"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/vosManager/getCompleteCandidates/forGroup`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getCompleteCandidatesForVo(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getCompleteCandidatesForVo.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getCompleteCandidatesForVo.");if(null==_)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForVo.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"vo")),u&&u.forEach(S=>{t=this.addToHttpParams(t,S,"attrNames[]")}),null!=_&&(t=this.addToHttpParams(t,_,"searchString"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/vosManager/getCompleteCandidates/forVo`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getEnrichedBansForVo(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getEnrichedBansForVo.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/vosManager/getEnrichedBansForVo`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getEnrichedVoBansForUser(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling getEnrichedVoBansForUser.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),u&&u.forEach(c=>{i=this.addToHttpParams(i,c,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/vosManager/getEnrichedBansForUser`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getEnrichedVoById(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getEnrichedVoById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/vosManager/getEnrichedVoById`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getMemberVos(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getMemberVos.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/vosManager/getMemberVos`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getMyEnrichedVos(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/vosManager/getEnrichedVos`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getMyVos(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/vosManager/getVos`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}getParentVos(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getParentVos.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/vosManager/getParentVos`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getRichAdminsForVo(r,u,_,E,h,a=!1,i="body",t=!1,n){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getRichAdminsForVo.");if(null==u)throw new Error("Required parameter role was null or undefined when calling getRichAdminsForVo.");if(null==_)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdminsForVo.");if(null==E)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdminsForVo.");if(null==h)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdminsForVo.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"vo")),null!=u&&(o=this.addToHttpParams(o,u,"role")),_&&_.forEach(ht=>{o=this.addToHttpParams(o,ht,"specificAttributes")}),null!=E&&(o=this.addToHttpParams(o,E,"allUserAttributes")),null!=h&&(o=this.addToHttpParams(o,h,"onlyDirectAdmins"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let c=n&&n.context;void 0===c&&(c=new e.qT);let S="json";d&&(S=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob");let J=`${this.configuration.basePath}/json/vosManager/getRichAdmins`;if(a){let ht=new URL(J),ze=ht.pathname.split("/");ze[1]="non",ht.pathname=ze.join("/"),J=ht.toString()}return this.httpClient.get(J,{context:c,params:o,responseType:S,withCredentials:this.configuration.withCredentials,headers:s,observe:i,reportProgress:t})}getVoAdminGroups(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoAdminGroups.");if(null==u)throw new Error("Required parameter role was null or undefined when calling getVoAdminGroups.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=u&&(i=this.addToHttpParams(i,u,"role"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/json/vosManager/getAdminGroups`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.get(d,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}getVoAdminUsers(r,u,_,E=!1,h="body",a=!1,i){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoAdminUsers.");if(null==u)throw new Error("Required parameter role was null or undefined when calling getVoAdminUsers.");if(null==_)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getVoAdminUsers.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"vo")),null!=u&&(t=this.addToHttpParams(t,u,"role")),null!=_&&(t=this.addToHttpParams(t,_,"onlyDirectAdmins"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let l=i&&i.context;void 0===l&&(l=new e.qT);let d="json";s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let c=`${this.configuration.basePath}/json/vosManager/getAdmins`;if(E){let S=new URL(c),J=S.pathname.split("/");J[1]="non",S.pathname=J.join("/"),c=S.toString()}return this.httpClient.get(c,{context:l,params:t,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:h,reportProgress:a})}getVoBanById(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter banId was null or undefined when calling getVoBanById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"banId"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/vosManager/getBanById`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getVoBanForMember(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter member was null or undefined when calling getVoBanForMember.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/vosManager/getBanForMember`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getVoBansForVo(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoBansForVo.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/vosManager/getBansForVo`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getVoById(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter id was null or undefined when calling getVoById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/vosManager/getVoById`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getVoByShortName(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter shortName was null or undefined when calling getVoByShortName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"shortName"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/vosManager/getVoByShortName`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getVoMembersCountsByStatus(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoMembersCountsByStatus.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/vosManager/getVoMembersCountsByStatus`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getVosByIds(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getVosByIds.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{a=this.addToHttpParams(a,d,"ids[]")});let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/json/vosManager/getVosByIds`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.get(l,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}getVosCount(r=!1,u="body",_=!1,E){let a,h=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(h=h.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(h=h.set("Authorization","Bearer "+a));let i=E&&E.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(h=h.set("Accept",i));let t=E&&E.context;void 0===t&&(t=new e.qT);let n="json";i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let o=`${this.configuration.basePath}/json/vosManager/getVosCount`;if(r){let s=new URL(o),l=s.pathname.split("/");l[1]="non",s.pathname=l.join("/"),o=s.toString()}return this.httpClient.get(o,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:h,observe:u,reportProgress:_})}removeMemberVo(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling removeMemberVo.");if(null==u)throw new Error("Required parameter memberVo was null or undefined when calling removeMemberVo.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=u&&(i=this.addToHttpParams(i,u,"memberVo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/vosManager/removeMemberVo`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeSponsorRoleFromGroup(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromGroup.");if(null==u)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeSponsorRoleFromGroup.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=u&&(i=this.addToHttpParams(i,u,"authorizedGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/vosManager/removeSponsorRole/group`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeSponsorRoleFromUser(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromUser.");if(null==u)throw new Error("Required parameter user was null or undefined when calling removeSponsorRoleFromUser.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=u&&(i=this.addToHttpParams(i,u,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/vosManager/removeSponsorRole/user`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeVoAdminGroup(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminGroup.");if(null==u)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeVoAdminGroup.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=u&&(i=this.addToHttpParams(i,u,"authorizedGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/vosManager/removeAdmin/group`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeVoAdminUser(r,u,_=!1,E="body",h=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminUser.");if(null==u)throw new Error("Required parameter user was null or undefined when calling removeVoAdminUser.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=u&&(i=this.addToHttpParams(i,u,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let s=a&&a.context;void 0===s&&(s=new e.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let d=`${this.configuration.basePath}/urlinjsonout/vosManager/removeAdmin/user`;if(_){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,null,{context:s,params:i,responseType:l,withCredentials:this.configuration.withCredentials,headers:t,observe:E,reportProgress:h})}removeVoBan(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter banId was null or undefined when calling removeVoBan.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"banId"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/vosManager/removeBan`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}removeVoBanForMember(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeVoBanForMember.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=h&&h.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=h&&h.context;void 0===o&&(o=new e.qT);let s="json";n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let l=`${this.configuration.basePath}/urlinjsonout/vosManager/removeBanForMember`;if(u){let d=new URL(l),c=d.pathname.split("/");c[1]="non",d.pathname=c.join("/"),l=d.toString()}return this.httpClient.post(l,null,{context:o,params:a,responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:_,reportProgress:E})}setVoBan(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputSetVoBan was null or undefined when calling setVoBan.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/vosManager/setBan`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}updateVo(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputUpdateVo was null or undefined when calling updateVo.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/vosManager/updateVo`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}updateVoBan(r,u=!1,_="body",E=!1,h){if(null==r)throw new Error("Required parameter InputUpdateBan1 was null or undefined when calling updateVoBan.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=h&&h.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=h&&h.context;void 0===n&&(n=new e.qT);const s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(a=a.set("Content-Type",s));let l="json";t&&(l=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob");let d=`${this.configuration.basePath}/json/vosManager/updateBan`;if(u){let c=new URL(d),S=c.pathname.split("/");S[1]="non",c.pathname=S.join("/"),d=c.toString()}return this.httpClient.post(d,r,{context:n,responseType:l,withCredentials:this.configuration.withCredentials,headers:a,observe:_,reportProgress:E})}}return Ce.\u0275fac=function(r){return new(r||Ce)(C.LFG(e.eN),C.LFG(M,8),C.LFG(b,8))},Ce.\u0275prov=C.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"}),Ce})();const Ye={ID:"ID",DATE_CREATED:"DATE_CREATED",TYPE:"TYPE",STATE:"STATE",SUBMITTER:"SUBMITTER",GROUP_NAME:"GROUP_NAME",MODIFIED_BY:"MODIFIED_BY"},Be={WRITE:"WRITE",READ:"READ"},Ae={HTML_COMMENT:"HTML_COMMENT",SUBMIT_BUTTON:"SUBMIT_BUTTON",AUTO_SUBMIT_BUTTON:"AUTO_SUBMIT_BUTTON",PASSWORD:"PASSWORD",VALIDATED_EMAIL:"VALIDATED_EMAIL",TEXTFIELD:"TEXTFIELD",TEXTAREA:"TEXTAREA",CHECKBOX:"CHECKBOX",RADIO:"RADIO",SELECTIONBOX:"SELECTIONBOX",COMBOBOX:"COMBOBOX",USERNAME:"USERNAME",HEADING:"HEADING",TIMEZONE:"TIMEZONE",EMBEDDED_GROUP_APPLICATION:"EMBEDDED_GROUP_APPLICATION",LIST_INPUT_BOX:"LIST_INPUT_BOX",MAP_INPUT_BOX:"MAP_INPUT_BOX"};let Ne=(()=>{class Ce{constructor(r,u){if(r)throw new Error("ApiModule is already loaded. Import in your base AppModule only.");if(!u)throw new Error("You need to import the HttpClientModule in your AppModule! \nSee also https://github.com/angular/angular/issues/20575")}static forRoot(r){return{ngModule:Ce,providers:[{provide:b,useFactory:r}]}}}return Ce.\u0275fac=function(r){return new(r||Ce)(C.LFG(Ce,12),C.LFG(e.eN,8))},Ce.\u0275mod=C.oAB({type:Ce}),Ce.\u0275inj=C.cJS({}),Ce})()},19516:(Xe,ue,p)=>{"use strict";p.d(ue,{m2:()=>pe.m,yo:()=>Te.y,bY:()=>ie.b,i2:()=>Le.i,r5:()=>b.r,GY:()=>T.G,d4:()=>C,E7:()=>W.E,dp:()=>M.d});var e=p(36895),A=p(94650);let C=(()=>{class V{}return V.\u0275fac=function(Q){return new(Q||V)},V.\u0275mod=A.oAB({type:V}),V.\u0275inj=A.cJS({imports:[e.ez]}),V})();var M=p(31359),b=(p(34447),p(82895)),ie=(p(69773),p(12856),p(20919),p(5865),p(38993),p(86349),p(53561),p(16119),p(7598),p(9954),p(4765)),Te=p(22908),pe=p(10293),Le=p(23123),T=p(56575),W=p(48524);p(77749)},77749:(Xe,ue,p)=>{"use strict";p.d(ue,{K:()=>C});var e=p(81591),A=p(94650);let C=(()=>{class M{constructor(b){this.translate=b}transform(b){switch(b){case"createdAt":return this.translate.instant("APPLICATIONS_LIST.CREATED_DATE");case"createdBy":return this.translate.instant("APPLICATIONS_LIST.CREATED_BY");case"type":return this.translate.instant("APPLICATIONS_LIST.TYPE");case"state":return this.translate.instant("APPLICATIONS_LIST.STATE");case"modifiedBy":return this.translate.instant("APPLICATIONS_LIST.MODIFIED_BY");default:return b}}}return M.\u0275fac=function(b){return new(b||M)(A.Y36(e.Te,16))},M.\u0275pipe=A.Yjl({name:"applicationColumnSelectLabel",type:M,pure:!0}),M})()},8231:(Xe,ue,p)=>{"use strict";p.d(ue,{G:()=>A});var e=p(94650);let A=(()=>{class C{transform(m){const b="SHARED_LIB.PERUN.CHECKBOX_LABEL.";return m?b+"DESELECT_ROW":b+"SELECT_ROW"}}return C.\u0275fac=function(m){return new(m||C)},C.\u0275pipe=e.Yjl({name:"checkboxLabel",type:C,pure:!0}),C})()},10293:(Xe,ue,p)=>{"use strict";p.d(ue,{m:()=>A});var e=p(94650);let A=(()=>{class C{transform(m,b){if(!b||0===b.length)return;const D=b.filter(v=>v.userId===m.id);return 0!==D.length?D.reduce((v,R)=>v.id>R.id?v:R).status:void 0}}return C.\u0275fac=function(m){return new(m||C)},C.\u0275pipe=e.Yjl({name:"consentStatusIcon",type:C,pure:!0}),C})()},34447:(Xe,ue,p)=>{"use strict";p.d(ue,{a:()=>M});var e=p(81591),A=p(94650),C=p(89383);let M=(()=>{class m{constructor(D,v){this.translate=D,this.storage=v}transform(D,v="en"){const R=this.storage.getProperty("custom_labels");if(R)for(const B of R)if(B.label===D)return B[v];return D}}return m.\u0275fac=function(D){return new(D||m)(A.Y36(C.sK,16),A.Y36(e.d6,16))},m.\u0275pipe=A.Yjl({name:"customTranslate",type:m,pure:!0}),m})()},22908:(Xe,ue,p)=>{"use strict";p.d(ue,{y:()=>C});var e=p(9244),A=p(94650);let C=(()=>{class M{transform(b,D,v,R){return D&&"members"===b.name||v&&(R.has(b.id)||(0,e.bx)(b))}}return M.\u0275fac=function(b){return new(b||M)},M.\u0275pipe=A.Yjl({name:"disableGroupSelect",type:M,pure:!0}),M})()},4765:(Xe,ue,p)=>{"use strict";p.d(ue,{b:()=>A});var e=p(94650);let A=(()=>{class C{transform(m){return m.namespace.includes("virt")||m.namespace.includes("core")||m.namespace.includes("entityless")}}return C.\u0275fac=function(m){return new(m||C)},C.\u0275pipe=e.Yjl({name:"disableUniqueAttribute",type:C,pure:!0}),C})()},23123:(Xe,ue,p)=>{"use strict";p.d(ue,{i:()=>C});var e=p(81591),A=p(94650);let C=(()=>{class M{constructor(b){this.translate=b,this.prefix="ROLES."}transform(b){return"displayName"in b&&b.displayName?b.displayName:this.translate.instant(this.prefix+b.roleName)}}return M.\u0275fac=function(b){return new(b||M)(A.Y36(e.Te,16))},M.\u0275pipe=A.Yjl({name:"displayedRole",type:M,pure:!0}),M})()},82895:(Xe,ue,p)=>{"use strict";p.d(ue,{r:()=>A});var e=p(94650);let A=(()=>{class C{transform(m,b){return b?`/organizations/${m.voId}/resources/${m.id}`:`/facilities/${m.facilityId}/resources/${m.id}`}}return C.\u0275fac=function(m){return new(m||C)},C.\u0275pipe=e.Yjl({name:"getResourceRoute",type:C,pure:!0}),C})()},82514:(Xe,ue,p)=>{"use strict";p.d(ue,{F:()=>A});var e=p(94650);let A=(()=>{class C{transform(m,b,D){let v;switch(m){case"VALID":v="green";break;case"INVALID":v="red";break;default:v=""}return`${v}${D||b?" cursor-default":""}`}}return C.\u0275fac=function(m){return new(m||C)},C.\u0275pipe=e.Yjl({name:"groupStatusIconColor",type:C,pure:!0}),C})()},28764:(Xe,ue,p)=>{"use strict";p.d(ue,{F:()=>M});var e=p(9244),A=p(64080),C=p(94650);let M=(()=>{class m{transform(D){if(null==D||null==D.attributes)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";const v=(0,e.IL)(D.attributes,A.r.GROUP_SYNC_ENABLED),R=(0,e.IL)(D.attributes,A.r.GROUP_STRUCTURE_SYNC_ENABLED);if(null===v&&null===R)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";const B=R.value;if("true"===v.value){const L=(0,e.IL)(D.attributes,A.r.GROUP_LAST_SYNC_STATE),O=(0,e.IL)(D.attributes,A.r.GROUP_LAST_SYNC_TIMESTAMP),q=L.value,te=O.value;return null!=q&&q.trim().length>0?"red":null!==te&&te.trim().length>0?"green":""}if(B){const L=(0,e.IL)(D.attributes,A.r.GROUP_LAST_STRUCTURE_SYNC_STATE),O=(0,e.IL)(D.attributes,A.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP),q=L.value,te=O.value;return null!=q&&q.trim().length>0?"red":null!==te&&te.trim().length>0?"green":""}return""}}return m.\u0275fac=function(D){return new(D||m)},m.\u0275pipe=C.Yjl({name:"groupSyncIconColor",type:m,pure:!0}),m})()},29218:(Xe,ue,p)=>{"use strict";p.d(ue,{J:()=>M});var e=p(64080),A=p(9244),C=p(94650);let M=(()=>{class m{transform(D){if(null==D||null==D.attributes)return"";const v=(0,A.IL)(D.attributes,e.r.GROUP_SYNC_ENABLED),R=(0,A.IL)(D.attributes,e.r.GROUP_STRUCTURE_SYNC_ENABLED);if(null===v&&null===R)return"";const B=R.value;if("true"===v.value){const L=(0,A.IL)(D.attributes,e.r.GROUP_LAST_SYNC_STATE),O=(0,A.IL)(D.attributes,e.r.GROUP_LAST_SYNC_TIMESTAMP),q=L.value,te=O.value;return null!=q&&q.trim().length>0?"sync_problem":(null!==te&&te.trim(),"sync")}if(B){const L=(0,A.IL)(D.attributes,e.r.GROUP_LAST_STRUCTURE_SYNC_STATE),O=(0,A.IL)(D.attributes,e.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP),q=L.value,te=O.value;return null!=q&&q.trim().length>0?"sync_problem":(null!==te&&te.trim(),"sync")}return"sync_disabled"}}return m.\u0275fac=function(D){return new(D||m)},m.\u0275pipe=C.Yjl({name:"groupSyncIcon",type:m,pure:!0}),m})()},45942:(Xe,ue,p)=>{"use strict";p.d(ue,{r:()=>M});var e=p(9244),A=p(64080),C=p(94650);let M=(()=>{class m{transform(D){if(null==D||null==D.attributes)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";const v=(0,e.IL)(D.attributes,A.r.GROUP_SYNC_ENABLED),R=(0,e.IL)(D.attributes,A.r.GROUP_STRUCTURE_SYNC_ENABLED);if(null===v&&null===R)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";const B=R.value;if("true"===v.value){const L=(0,e.IL)(D.attributes,A.r.GROUP_LAST_SYNC_STATE),O=(0,e.IL)(D.attributes,A.r.GROUP_LAST_SYNC_TIMESTAMP),q=L.value,te=O.value;return null!=q&&q.trim().length>0?"VO_DETAIL.GROUPS.GROUP_SYNC_FAILED":null!==te&&te.trim().length>0?"VO_DETAIL.GROUPS.GROUP_SYNCED":"VO_DETAIL.GROUPS.GROUP_NOT_YET_SYNCED"}if(B){const L=(0,e.IL)(D.attributes,A.r.GROUP_LAST_STRUCTURE_SYNC_STATE),O=(0,e.IL)(D.attributes,A.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP),q=L.value,te=O.value;return null!=q&&q.trim().length>0?"VO_DETAIL.GROUPS.GROUP_SYNC_FAILED":null!==te&&te.trim().length>0?"VO_DETAIL.GROUPS.GROUP_STRUCTURE_SYNCED":"VO_DETAIL.GROUPS.GROUP_NOT_YET_SYNCED"}return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED"}}return m.\u0275fac=function(D){return new(D||m)},m.\u0275pipe=C.Yjl({name:"groupSyncToolTip",type:m,pure:!0}),m})()},9185:(Xe,ue,p)=>{"use strict";p.d(ue,{I:()=>M});var e=p(81591),A=p(91479),C=p(94650);let M=(()=>{class m{constructor(D){this.tableCheckboxService=D}transform(D,v,R){return 0!==v&&((0,e.uI)(D)?v===D.getData().length:(0,A.o)(D)?this.tableCheckboxService.isAllSelectedPaginated(D,v,R):this.tableCheckboxService.isAllSelected(v,D,R))}}return m.\u0275fac=function(D){return new(D||m)(C.Y36(e.UA,16))},m.\u0275pipe=C.Yjl({name:"isAllSelected",type:m,pure:!0}),m})()},56575:(Xe,ue,p)=>{"use strict";p.d(ue,{G:()=>C});var e=p(81591),A=p(94650);let C=(()=>{class M{constructor(b){this.authResolver=b}transform(b,D){return b.filter(v=>this.canSetRoleForEntity(v,D))}canSetRoleForEntity(b,D){const v=new Map;return this.authResolver.setRolesAuthorization([D],b,v),v.get(D.roleName).manageAuth}}return M.\u0275fac=function(b){return new(b||M)(A.Y36(e.x4,16))},M.\u0275pipe=A.Yjl({name:"manageableEntities",type:M,pure:!0}),M})()},14849:(Xe,ue,p)=>{"use strict";p.d(ue,{r:()=>A});var e=p(94650);let A=(()=>{class C{transform(m){const b="SHARED_LIB.PERUN.CHECKBOX_LABEL.";return m?b+"DESELECT_ALL":b+"SELECT_ALL"}}return C.\u0275fac=function(m){return new(m||C)},C.\u0275pipe=e.Yjl({name:"masterCheckboxLabel",type:C,pure:!0}),C})()},86349:(Xe,ue,p)=>{"use strict";p.d(ue,{A:()=>M});var e=p(9244),A=p(94650),C=p(89383);let M=(()=>{class m{constructor(D){this.translate=D}transform(D,v){const R=(0,e.zr)(D);return"INDIRECT"===R?this.translate.instant("MEMBERS_LIST.CHECKBOX_TOOLTIP_INDIRECT"):v||"UNALTERABLE"!==R?"":this.translate.instant("MEMBERS_LIST.CHECKBOX_TOOLTIP_UNALTERABLE")}}return m.\u0275fac=function(D){return new(D||m)(A.Y36(C.sK,16))},m.\u0275pipe=A.Yjl({name:"memberCheckboxLabel",type:m,pure:!0}),m})()},20919:(Xe,ue,p)=>{"use strict";p.d(ue,{D:()=>C});var e=p(9244),A=p(94650);let C=(()=>{class M{transform(b){return(0,e.g$)(b)}}return M.\u0275fac=function(b){return new(b||M)},M.\u0275pipe=A.Yjl({name:"memberEmail",type:M,pure:!0}),M})()},5865:(Xe,ue,p)=>{"use strict";p.d(ue,{p:()=>C});var e=p(9244),A=p(94650);let C=(()=>{class M{transform(b){return(0,e.lt)(b)}}return M.\u0275fac=function(b){return new(b||M)},M.\u0275pipe=A.Yjl({name:"memberLogins",type:M,pure:!0}),M})()},96974:(Xe,ue,p)=>{"use strict";p.d(ue,{M:()=>C});var e=p(9244),A=p(94650);let C=(()=>{class M{transform(b){return(0,e.Gw)(b)}}return M.\u0275fac=function(b){return new(b||M)},M.\u0275pipe=A.Yjl({name:"memberOrganization",type:M,pure:!0}),M})()},38993:(Xe,ue,p)=>{"use strict";p.d(ue,{n:()=>C});var e=p(9244),A=p(94650);let C=(()=>{class M{transform(b,D){const v=(0,e.zr)(b);return"INDIRECT"===v||!D&&"UNALTERABLE"===v}}return M.\u0275fac=function(b){return new(b||M)},M.\u0275pipe=A.Yjl({name:"memberStatusDisabled",type:M,pure:!0}),M})()},69773:(Xe,ue,p)=>{"use strict";p.d(ue,{u:()=>C});var e=p(9244),A=p(94650);let C=(()=>{class M{transform(b){const D=(0,e.zr)(b);let v;switch(b.status){case"VALID":v="green";break;case"INVALID":v="red";break;case"DISABLED":v="black";break;default:return""}return`${v}${"UNALTERABLE"===D?" cursor-default":""}`}}return M.\u0275fac=function(b){return new(b||M)},M.\u0275pipe=A.Yjl({name:"memberStatusIconColor",type:M,pure:!0}),M})()},21757:(Xe,ue,p)=>{"use strict";p.d(ue,{f:()=>A});var e=p(94650);let A=(()=>{class C{transform(m){switch(m){case"VALID":return"verified_user";case"INVALID":return"report";case"EXPIRED":return"schedule";case"DISABLED":return"delete";default:return m}}}return C.\u0275fac=function(m){return new(m||C)},C.\u0275pipe=e.Yjl({name:"memberStatusIcon",type:C,pure:!0}),C})()},12856:(Xe,ue,p)=>{"use strict";p.d(ue,{i:()=>M});var e=p(9244),A=p(94650),C=p(89383);let M=(()=>{class m{constructor(D){this.translate=D}transform(D,v,R){let B=null,w=null;D.memberAttributes&&(B=D.memberAttributes.find(q=>"membershipExpiration"===q.friendlyName),w=D.memberAttributes.find(q=>"groupMembershipExpiration"===q.friendlyName));let L="";L=v?`\n Group status: ${(0,e.Oe)(D.groupStatus)}\n Expiration: ${w?.value??"never"}`:D.memberAttributes?`Status: ${(0,e.Oe)(D.status,D.groupStatus)}\n Vo status: ${(0,e.Oe)(D.status)}\n Expiration: ${B?.value??"never"}`:`Status: ${(0,e.Oe)(D.status,D.groupStatus)}\n Vo status: ${(0,e.Oe)(D.status)}`;const O=(0,e.zr)(D);return R?L=`${L}\n ${this.translate.instant("MEMBERS_LIST.STATUS_TOOLTIP_MEMBERS_GROUP")}`:"INDIRECT"===O&&v?L=`${L}\n ${this.translate.instant("MEMBERS_LIST.STATUS_TOOLTIP_GROUP_INDIRECT")}`:!v&&"UNALTERABLE"===O&&(L=`${L}\n ${this.translate.instant("MEMBERS_LIST.STATUS_TOOLTIP_INDIRECT")}`),L}}return m.\u0275fac=function(D){return new(D||m)(A.Y36(C.sK,16))},m.\u0275pipe=A.Yjl({name:"memberStatusTooltip",type:m,pure:!0}),m})()},20551:(Xe,ue,p)=>{"use strict";p.d(ue,{l:()=>A});var e=p(94650);let A=(()=>{class C{transform(m){return m.replace("VALID","ACTIVE")}}return C.\u0275fac=function(m){return new(m||C)},C.\u0275pipe=e.Yjl({name:"memberStatus",type:C,pure:!0}),C})()},64597:(Xe,ue,p)=>{"use strict";p.d(ue,{R:()=>A});var e=p(94650);let A=(()=>{class C{transform(m){return m.replace(/\s/g,"-").replace(/\./g,"-").toLowerCase()}}return C.\u0275fac=function(m){return new(m||C)},C.\u0275pipe=e.Yjl({name:"multiWordDataCy",type:C,pure:!0}),C})()},62383:(Xe,ue,p)=>{"use strict";p.d(ue,{M:()=>C});var e=p(36895),A=p(94650);let C=(()=>{class M{transform(b,D){return"voRules"===b?"Vo rules":"groupRules"===b?"Group rules":b&&"never"!==b.toLowerCase()?(0,e.p6)(b.replace(" ","T"),"d.M.yyyy "+(D?"H:mm:ss":""),"en"):"never"}}return M.\u0275fac=function(b){return new(b||M)},M.\u0275pipe=A.Yjl({name:"parseDate",type:M,pure:!0}),M})()},30076:(Xe,ue,p)=>{"use strict";p.d(ue,{A:()=>C});var e=p(94650),A=p(11481);let C=(()=>{class M{constructor(b){this.sanitizer=b}transform(b){return this.sanitizer.bypassSecurityTrustHtml(b)}}return M.\u0275fac=function(b){return new(b||M)(e.Y36(A.H7,16))},M.\u0275pipe=e.Yjl({name:"sanitizeHtml",type:M,pure:!0}),M})()},53561:(Xe,ue,p)=>{"use strict";p.d(ue,{J:()=>C});var e=p(9244),A=p(94650);let C=(()=>{class M{transform(b){return(0,e.te)(b)}}return M.\u0275fac=function(b){return new(b||M)},M.\u0275pipe=A.Yjl({name:"technicalOwners",type:M,pure:!0}),M})()},48524:(Xe,ue,p)=>{"use strict";p.d(ue,{E:()=>A});var e=p(94650);let A=(()=>{class C{transform(m){return m.map(b=>({facility:b}))}}return C.\u0275fac=function(m){return new(m||C)},C.\u0275pipe=e.Yjl({name:"toEnrichedFacility",type:C,pure:!0}),C})()},49206:(Xe,ue,p)=>{"use strict";p.d(ue,{r:()=>A});var e=p(94650);let A=(()=>{class C{transform(m,b){return"valid"!==m.toLowerCase()||b&&"valid"!==m.toLowerCase()?m:"ACTIVE"}}return C.\u0275fac=function(m){return new(m||C)},C.\u0275pipe=e.Yjl({name:"transformMemberStatus",type:C,pure:!0}),C})()},16119:(Xe,ue,p)=>{"use strict";p.d(ue,{S:()=>C});var e=p(9244),A=p(94650);let C=(()=>{class M{transform(b){return(0,e.kN)(b)}}return M.\u0275fac=function(b){return new(b||M)},M.\u0275pipe=A.Yjl({name:"userEmail",type:M,pure:!0}),M})()},31359:(Xe,ue,p)=>{"use strict";p.d(ue,{d:()=>A});var e=p(94650);let A=(()=>{class C{transform(m){return[m.titleBefore,m.firstName,m.middleName,m.lastName,m.titleAfter].join(" ")}}return C.\u0275fac=function(m){return new(m||C)},C.\u0275pipe=e.Yjl({name:"userFullName",type:C,pure:!0}),C})()},7598:(Xe,ue,p)=>{"use strict";p.d(ue,{g:()=>C});var e=p(9244),A=p(94650);let C=(()=>{class M{transform(b){return(0,e.$0)(b)}}return M.\u0275fac=function(b){return new(b||M)},M.\u0275pipe=A.Yjl({name:"userLogins",type:M,pure:!0}),M})()},9954:(Xe,ue,p)=>{"use strict";p.d(ue,{Z:()=>C});var e=p(9244),A=p(94650);let C=(()=>{class M{transform(b){return(0,e.OV)(b)}}return M.\u0275fac=function(b){return new(b||M)},M.\u0275pipe=A.Yjl({name:"userVo",type:M,pure:!0}),M})()},81591:(Xe,ue,p)=>{"use strict";p.d(ue,{yC:()=>k,F5:()=>le,sM:()=>Z,eE:()=>E,e8:()=>O,EB:()=>Ee,Be:()=>Ne,Hy:()=>vt,ly:()=>xe,fb:()=>Ce,Mf:()=>i,K1:()=>a,x4:()=>b,v0:()=>V,hy:()=>F,SZ:()=>be,V6:()=>N,jq:()=>_e,Te:()=>C,BN:()=>X,Nj:()=>t,Ip:()=>r,HV:()=>ye,d6:()=>B,UA:()=>ce,uI:()=>tt});var e=p(89383),A=p(94650);let C=(()=>{class n extends e.sK{instant(s,l){return String(super.instant(s,l))}}return n.\u0275fac=function(){let o;return function(l){return(o||(o=A.n5z(n)))(l||n)}}(),n.\u0275prov=A.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var M=p(61744),m=p(45323);let b=(()=>{class n{constructor(s){this.authzSevice=s,this.principalRoles=new Set,this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[],this.sortRoles=(l,d)=>l.roleName>d.roleName?1:l.roleName{this.authzSevice.getAllRolesManagementRules().subscribe(d=>{this.allRolesManagementRules=d,s()},d=>l(d))})}assignAvailableRoles(s,l){this.allRolesManagementRules.forEach(d=>{d.primaryObject===l&&s.push(d)}),s.sort(this.sortRoles),"Vo"===l&&this.voCustomSort(s)}isManagerPagePrivileged(s){const l=[];let d=s.beanName;d.startsWith("Rich")&&(d=d.substring(4)),this.assignAvailableRoles(l,d);const c=new Map;this.setRolesAuthorization(l,s,c);for(const S of c.values())if(S.readAuth||S.manageAuth)return!0;return!1}setRolesAuthorization(s,l,d){for(const c of s){let S=[],J=[],ht=[];for(const He of this.allRolesManagementRules)if(He.roleName===c.roleName){S=S.concat(He.privilegedRolesToRead),J=J.concat(He.privilegedRolesToManage);for(const Pe of Object.keys(He.entitiesToManage))ht="User"===Pe?[Pe].concat(ht):ht.concat(Pe);break}const ze=this.fetchAllRelatedObjects([l]),et=this.resolveAuthorization(S,ze),ne=this.resolveAuthorization(J,ze);d.set(c.roleName,{readAuth:et,manageAuth:ne,modes:ht})}}initializeVariables(){this.principalRoles.clear(),this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}getPrimaryObjectOfRole(s){for(const l of this.allRolesManagementRules)if(l.roleName===s)return l.primaryObject;return""}getAllRules(){return this.allRolesManagementRules.sort(this.sortRoles)}getRuleForRole(s){return this.allRolesManagementRules.find(l=>l.roleName===s)}getAssignableRoleRules(s){const l=[],d=["UNKNOWN","RPC","NOTIFICATIONS","ENGINE","MFA","REGISTRAR","AUDITCONSUMERADMIN","SPONSORSHIP","MEMBERSHIP","SERVICEUSER","SELF","SECURITYADMIN"];return this.allRolesManagementRules.forEach(c=>{!d.includes(c.roleName)&&this.canManage(c)&&this.ruleHasMode(c,s)&&l.push(c)}),l.sort(this.sortRoles)}ruleHasMode(s,l){return Object.keys(s.entitiesToManage).map(d=>d.toUpperCase()).includes(l)}canManage(s){return s.privilegedRolesToManage.some(l=>this.principalRoles.has(Object.keys(l)[0]))}resolveAuthorization(s,l){for(const d of s){let c=!0;for(const S of Object.keys(d)){const J=d[S];if(null===J)this.principalRoles.has(S)||(c=!1);else if(l[J]){for(const ht of l[J])if(!this.principalHasRole(S,J,ht)){c=!1;break}}else c=!1;if(!c)break}if(c)return!0}return!1}getPerunPolicy(s){for(const l of this.perunPolicies)if(l.policyName===s)return l;return null}fetchAllRelatedObjects(s){const l={};for(const d of s){let c=d.beanName;switch(d.beanName.startsWith("Rich")&&(c=d.beanName.substring(4)),l[c]?l[c].push(d.id):l[c]=[d.id],c){case"Member":l.User?l.User.push(d.userId):l.User=[d.userId],l.Vo?l.Vo.push(d.voId):l.Vo=[d.voId];break;case"Group":case"ResourceTag":l.Vo?l.Vo.push(d.voId):l.Vo=[d.voId];break;case"Resource":l.Facility?l.Facility.push(d.facilityId):l.Facility=[d.facilityId],l.Vo?l.Vo.push(d.voId):l.Vo=[d.voId]}}return l}fetchPolicyWithAllIncludedPolicies(s){const l=new Map;let d=[];for(d.push(s);0!==d.length;){const S=d.shift();if(l.has(S))continue;const J=this.getPerunPolicy(S);if(!J)return[];l.set(S,J),d=d.concat(J.includePolicies)}const c=[];for(const S of l.values())c.push(S);return c}voCustomSort(s){for(let l=0;l{class n{constructor(){this.branding=""}setInstanceConfig(s){this.instanceConfig=s}setDefaultConfig(s){this.defaultConfig=s}getAppsConfig(){return this.appsConfig}setAppsConfig(s){this.appsConfig=s}setPerunPrincipal(s){this.principal=s}getPerunPrincipal(){return this.principal}getInitialPageId(){return this.initialPageId}setInitialPageId(s){this.initialPageId=s}getLoginAttributeNames(){return this.getProperty("login_namespace_attributes")}getMemberProfileAttributeNames(){return this.getProperty("member_profile_attributes_friendly_names")}setBanding(s){this.branding=s}getProperty(s){if(!this.instanceConfig||!this.defaultConfig)return null;const l=[this.instanceConfig?.brandings?.[this.branding],this.instanceConfig],d=this.defaultConfig[s];let c=null;for(const S of l)S&&null==c&&(c=S[s]);return null===c?d:this.addMissingValuesToProperty(c,d)}addMissingValuesToProperty(s,l){if("object"!=typeof s||Array.isArray(s)||null==s){if(null!=s)return s}else for(const d of Object.keys(l))l[d]=this.addMissingValuesToProperty(s[d],l[d]);return l}}return n.\u0275fac=function(s){return new(s||n)},n.\u0275prov=A.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var w=p(65412),L=p(51214);let O=(()=>{class n{constructor(s,l,d,c,S){this.injector=s,this.store=l,this.dialog=d,this.route=c,this.oauthService=S,setTimeout(()=>{this.router=this.injector.get(v.F0),this.startIdpFilterKeeper()}),this.route.queryParams.subscribe(J=>{J.idpFilter&&(this.filterShortname=String(J.idpFilter))})}loadOidcConfigData(){this.oauthService.configure(this.getClientConfig())}logout(){sessionStorage.getItem("baPrincipal")?(sessionStorage.removeItem("baPrincipal"),sessionStorage.removeItem("basicUsername"),sessionStorage.removeItem("basicPassword"),sessionStorage.setItem("baLogout","true"),this.router.navigate(["/service-access"],{queryParamsHandling:"preserve"})):this.oauthService.logOut()}isLoggedIn(){return this.oauthService.hasValidAccessToken()}getAuthorizationHeaderValue(){return this.oauthService.hasValidAccessToken()?"Bearer "+this.oauthService.getAccessToken():""}startAuthentication(){this.oauthService.loadDiscoveryDocumentAndLogin()}getIdpFilter(){return this.filterShortname}getClientConfig(){const s=this.setIdpFilter(),c=.5+.25*Math.random(),S=s?{acr_values:s}:{},J=this.store.getProperty("oidc_client");if(J.oauth_scopes.split(" ").includes("offline_access")&&J.oauth_offline_access_consent_prompt&&(S.prompt="consent"),(sessionStorage.getItem("mfa_route")||sessionStorage.getItem("mfaProcessed"))&&(S.acr_values="https://refeds.org/profile/mfa"),sessionStorage.getItem("mfa_route")&&(S.prompt?S.prompt+=" login":S.prompt="login",S.max_age="0"),"Linker"===this.store.getProperty("application")){S.prompt?S.prompt+=" login":S.prompt="login";const ht=(0,R.O5)("idphint",location.search.substring(1));ht&&(S.idphint=ht)}return{requestAccessToken:!0,issuer:J.oauth_authority,clientId:J.oauth_client_id,redirectUri:J.oauth_redirect_uri,postLogoutRedirectUri:J.oauth_post_logout_redirect_uri,responseType:J.oauth_response_type,scope:J.oauth_scopes,clockSkewInSec:1,timeoutFactor:c,userinfoEndpoint:this.store.getProperty("oidc_client").user_info_endpoint_url,customQueryParams:S}}setIdpFilter(){const s=location.search.length?location.search.substring(1).split("&"):[];this.filterShortname=null;const l=this.store.getProperty("oidc_client").filters;if(!l)return null;let d=null;return s.forEach(c=>{const S=c.split("=");"idpFilter"===S[0]&&l[S[1]]&&(this.filterShortname=S[1],d=l[S[1]])}),l.default&&!d?(this.filterShortname="default",l.default):d}startIdpFilterKeeper(){this.router.events.pipe((0,D.h)(s=>s instanceof v.m2)).subscribe(()=>{const s={idpFilter:this.getIdpFilter()};this.router.navigate([],{relativeTo:this.route,queryParams:"default"===s.idpFilter?{}:s,queryParamsHandling:"merge",replaceUrl:!0})})}}return n.\u0275fac=function(s){return new(s||n)(A.LFG(A.zs3),A.LFG(B),A.LFG(w.uw),A.LFG(v.gz),A.LFG(L.Ct))},n.\u0275prov=A.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),q=(()=>{class n{constructor(s){this.dialogRef=s}}return n.\u0275fac=function(s){return new(s||n)(A.Y36(w.so))},n.\u0275cmp=A.Xpm({type:n,selectors:[["perun-web-apps-user-dont-exist-dialog"]],decls:3,vars:3,consts:[["mat-dialog-content","",1,"mt-2","mb-2"]],template:function(s,l){1&s&&(A.TgZ(0,"h2",0),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&s&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.USER_DONT_EXIST.TITLE"),"\n"))},dependencies:[w.xY,e.X$]}),n})();var te=p(83905),z=p(69751),ie=p(4859),Te=p(98380);let pe=(()=>{class n{constructor(s,l){this.dialogRef=s,this.data=l}cancel(){this.dialogRef.close(!1)}submit(){this.dialogRef.close(!0)}}return n.\u0275fac=function(s){return new(s||n)(A.Y36(w.so),A.Y36(w.WI))},n.\u0275cmp=A.Xpm({type:n,selectors:[["perun-web-apps-mfa-required-dialog"]],decls:15,vars:17,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["alert_type","warn"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"hidden","click"],["color","accent","mat-flat-button","",3,"click"]],template:function(s,l){1&s&&(A.TgZ(0,"h1",0),A._uU(1),A.ALo(2,"translate"),A.qZA(),A.TgZ(3,"div",1)(4,"perun-web-apps-alert",2),A._uU(5),A.ALo(6,"translate"),A.ALo(7,"translate"),A.qZA()(),A.TgZ(8,"div",3)(9,"button",4),A.NdJ("click",function(){return l.cancel()}),A._uU(10),A.ALo(11,"translate"),A.qZA(),A.TgZ(12,"button",5),A.NdJ("click",function(){return l.submit()}),A._uU(13),A.ALo(14,"translate"),A.qZA()()),2&s&&(A.xp6(1),A.Oqu(A.lcZ(2,7,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.TITLE")),A.xp6(4),A.hij(" ",l.data.mfaRoleException?A.lcZ(6,9,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.INFO_ROLE"):A.lcZ(7,11,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.INFO")," "),A.xp6(4),A.Q6J("hidden",l.data.mfaRoleException),A.xp6(1),A.hij(" ",A.lcZ(11,13,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.CANCEL")," "),A.xp6(2),A.Tol(l.data.mfaRoleException?"ml-auto":"ml-2"),A.xp6(1),A.hij(" ",A.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.STEP_UP")," "))},dependencies:[w.uh,w.xY,w.H8,ie.lW,Te.w,e.X$]}),n})();var Le=p(97392);let T=(()=>{class n{}return n.\u0275fac=function(s){return new(s||n)},n.\u0275cmp=A.Xpm({type:n,selectors:[["perun-web-apps-focus-on-mfa-window"]],decls:9,vars:6,consts:[[1,"text-center","custom-dialog"],[1,"align-text-bottom"]],template:function(s,l){1&s&&(A.TgZ(0,"div",0)(1,"div")(2,"mat-icon",1),A._uU(3," info "),A.qZA(),A._uU(4),A.ALo(5,"translate"),A.qZA(),A.TgZ(6,"div"),A._uU(7),A.ALo(8,"translate"),A.qZA()()),2&s&&(A.xp6(4),A.hij(" ",A.lcZ(5,2,"SHARED_LIB.PERUN.COMPONENTS.FOCUS_ON_MFA_DIALOG.MODAL")," "),A.xp6(3),A.hij(" ",A.lcZ(8,4,"SHARED_LIB.PERUN.COMPONENTS.FOCUS_ON_MFA_DIALOG.MODAL_WARNING")," "))},dependencies:[Le.Hw,e.X$],styles:[".custom-dialog[_ngcontent-%COMP%]{background-color:#000;color:#fffffff2;font-size:1.2rem}"]}),n})(),W=(()=>{class n{constructor(s,l){this.data=s,this.dialogRef=l}cancel(){this.dialogRef.close(!1)}submit(){window.open(this.data.tokensUrl,"_blank"),this.dialogRef.close(!0)}}return n.\u0275fac=function(s){return new(s||n)(A.Y36(w.WI),A.Y36(w.so))},n.\u0275cmp=A.Xpm({type:n,selectors:[["perun-web-apps-no-mfa-tokens-dialog"]],decls:14,vars:12,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["alert_type","warn"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"]],template:function(s,l){1&s&&(A.TgZ(0,"h1",0),A._uU(1),A.ALo(2,"translate"),A.qZA(),A.TgZ(3,"div",1)(4,"perun-web-apps-alert",2),A._uU(5),A.ALo(6,"translate"),A.qZA()(),A.TgZ(7,"div",3)(8,"button",4),A.NdJ("click",function(){return l.cancel()}),A._uU(9),A.ALo(10,"translate"),A.qZA(),A.TgZ(11,"button",5),A.NdJ("click",function(){return l.submit()}),A._uU(12),A.ALo(13,"translate"),A.qZA()()),2&s&&(A.xp6(1),A.Oqu(A.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.TITLE")),A.xp6(4),A.hij(" ",A.lcZ(6,6,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.INFO")," "),A.xp6(4),A.hij(" ",A.lcZ(10,8,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.CANCEL")," "),A.xp6(3),A.hij(" ",A.lcZ(13,10,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.MANAGE_TOKENS")," "))},dependencies:[w.uh,w.xY,w.H8,ie.lW,Te.w,e.X$]}),n})(),F=(()=>{class n{constructor(s,l,d,c){this.dialog=s,this.oauthService=l,this.authService=d,this.store=c}openMfaWindow(s){let l=null,d=null;const c=(0,R.kZ)();c.width="450px",c.data={mfaRoleException:s};const S=this.dialog.open(pe,c);let J=!1;if(S.afterClosed().subscribe(ht=>{if(ht){if(sessionStorage.setItem("mfaRequired","true"),sessionStorage.setItem("oldAccessToken",this.oauthService.getAccessToken()),sessionStorage.setItem("oldRefreshToken",this.oauthService.getRefreshToken()),l=this.setupMfaWindow(),l){const ze=(0,R.kZ)();ze.width="450px",ze.panelClass="noBorderDialog",d=this.dialog.open(T,ze)}}else J=!0}),localStorage.getItem("noMfaTokenDialog")){localStorage.removeItem("noMfaTokenDialog");const ht=(0,R.kZ)();ht.width="450px",ht.data={tokensUrl:this.store.getProperty("mfa").url_en},this.dialog.open(W,ht)}return new z.y(ht=>{const ze=setInterval(()=>l?.closed?(clearInterval(ze),d.close(),sessionStorage.removeItem("mfaRequired"),sessionStorage.removeItem("mfaProcessed"),null===this.oauthService.getAccessToken()&&(localStorage.setItem("access_token",sessionStorage.getItem("oldAccessToken")),localStorage.setItem("refresh_token",sessionStorage.getItem("oldRefreshToken"))),ht.next(!0)):J?(clearInterval(ze),ht.next(!1)):void 0,1e3)})}catchNoMfaTokenError(s){"unmet_authentication_requirements"===s&&(localStorage.setItem("noMfaTokenDialog","true"),window.close())}mfaWindowForceLogout(){if(sessionStorage.getItem("mfaRequired")&&!sessionStorage.getItem("mfaProcessed"))return sessionStorage.setItem("mfaProcessed","true"),this.oauthService.logOut(!0),this.authService.loadOidcConfigData(),void this.oauthService.loadDiscoveryDocumentAndLogin();sessionStorage.removeItem("mfaRequired")}closeMfaWindow(){sessionStorage.getItem("mfaProcessed")&&!sessionStorage.getItem("mfaRequired")&&(sessionStorage.removeItem("mfaProcessed"),window.close())}setupMfaWindow(){const s=location.pathname+location.search,c=window.top;return window.open(s,"_blank",`width=600,height=600,top=${c.outerHeight/2+c.screenY-300}, left=${c.outerWidth/2+c.screenX-300}`)}}return n.\u0275fac=function(s){return new(s||n)(A.LFG(w.uw),A.LFG(L.Ct),A.LFG(O),A.LFG(B))},n.\u0275prov=A.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),V=(()=>{class n{constructor(s,l,d,c,S,J,ht,ze){this.authService=s,this.oauthService=l,this.storeService=d,this.authResolver=c,this.authzService=S,this.dialog=J,this.router=ht,this.mfaHandlerService=ze,this.loginScreenShown=!1,this.serviceAccess=!1,this.serviceAccessLoginScreen=!1}isLoginScreenShown(){return this.loginScreenShown}isServiceAccess(){return this.serviceAccess}isServiceAccessLoginScreenShown(){return this.serviceAccessLoginScreen}verifyAuth(){if(this.mfaHandlerService.mfaWindowForceLogout(),sessionStorage.getItem("baPrincipal"))return this.serviceAccess=!0,sessionStorage.getItem("auth:redirect")?this.redirectToOriginDestination():Promise.resolve(!0);if("/service-access"!==location.pathname&&!this.storeService.getProperty("auto_service_access_redirect")){this.authService.loadOidcConfigData();const s=location.pathname,l=location.search.substring(1);return"/api-callback"===s?this.oauthService.loadDiscoveryDocumentAndTryLogin().then(()=>this.startRefreshToken()).then(()=>this.redirectToOriginDestination()):this.oauthService.loadDiscoveryDocument().then(()=>this.tryRefreshToken()).then(()=>"Linker"===this.storeService.getProperty("application")?(sessionStorage.setItem("auth:queryParams",l),localStorage.removeItem("access_token"),!1):this.oauthService.hasValidAccessToken()?this.startRefreshToken():this.isPotentiallyValidPath(s)?(sessionStorage.setItem("auth:redirect",s),sessionStorage.setItem("auth:queryParams",l),!1):Promise.reject("Invalid path"))}}loadPrincipal(){return(0,te.z)(this.authzService.getPerunPrincipal()).then(s=>{if(null===s.user){const l=(0,R.kZ)();this.dialog.open(q,l)}else this.storeService.setPerunPrincipal(s),this.authResolver.init(s)})}simpleLoadPrincipal(){return(0,te.z)(this.authzService.getPerunPrincipal()).then(s=>{this.storeService.setPerunPrincipal(s)})}checkRouteGuard(){const s=localStorage.getItem("routeAuthGuard");s&&(localStorage.removeItem("routeAuthGuard"),this.router.navigate([s],{queryParamsHandling:"merge"}))}handleAuthStart(){if(this.storeService.getProperty("auto_service_access_redirect")&&"/service-access"!==location.pathname){this.serviceAccess=!0,this.serviceAccessLoginScreen=!0;const s=location.pathname,l=location.search.substring(1);sessionStorage.setItem("auth:redirect",s),sessionStorage.setItem("auth:queryParams",l);const d={};return l.split("&").forEach(c=>{const S=c.split("=");d[S[0]]=S[1]}),this.router.navigate(["service-access"],{queryParams:d,queryParamsHandling:"merge"}).then()}if("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal")||this.storeService.getProperty("auto_service_access_redirect")){this.serviceAccess=!0,this.serviceAccessLoginScreen=!0;const s=location.search.substring(1);return sessionStorage.setItem("auth:queryParams",s),Promise.resolve()}return this.storeService.getProperty("auto_auth_redirect")?(sessionStorage.getItem("mfaProcessed")||localStorage.setItem("routeAuthGuard",window.location.pathname),this.startAuth().then(()=>new Promise(()=>{}))):(this.setLoginScreen(!0),localStorage.setItem("routeAuthGuard",window.location.pathname),void this.router.navigate(["login"],{queryParamsHandling:"merge"}))}setLoginScreen(s){this.loginScreenShown=s}isPotentiallyValidPath(s){const l=["/home","/organizations","/facilities","/myProfile","/admin","/login","/service-access","/profile"];if("/"===s)return!0;for(const d of l)if(s.startsWith(d))return!0;return!1}startRefreshToken(){return this.oauthService.hasValidAccessToken()?(this.oauthService.events.pipe((0,D.h)(s=>"token_expires"===s.type&&"access_token"===s.info)).subscribe(()=>{this.oauthService.refreshToken()}),Promise.resolve(!0)):Promise.resolve(!1)}tryRefreshToken(){return localStorage.getItem("refresh_token")&&!this.oauthService.hasValidAccessToken()?this.oauthService.refreshToken().then(()=>Promise.resolve()).catch(()=>Promise.resolve()):Promise.resolve()}redirectToOriginDestination(){const s=sessionStorage.getItem("mfa_route");if(s)return this.router.navigate([s],{replaceUrl:!0,queryParamsHandling:"merge"});let l=sessionStorage.getItem("auth:redirect");(!l||"/login"===l)&&(l="/"),sessionStorage.removeItem("auth:redirect");const d=sessionStorage.getItem("auth:queryParams");let c=[];d&&(c=d.split("&"));const S={};return c.forEach(J=>{const ht=J.split("=");S[ht[0]]=ht[1]}),sessionStorage.removeItem("auth:queryParams"),this.router.navigate([l],{queryParams:S,replaceUrl:!0,queryParamsHandling:"merge"})}startAuth(){return this.authService.startAuthentication(),Promise.resolve()}}return n.\u0275fac=function(s){return new(s||n)(A.LFG(O),A.LFG(L.Ct),A.LFG(B),A.LFG(b),A.LFG(M.Ct),A.LFG(w.uw),A.LFG(v.F0),A.LFG(F))},n.\u0275prov=A.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var ee=p(11481);let Ee=(()=>{class n{constructor(s,l){this.matIconRegistry=s,this.domSanitizer=l,this.customIcons=[{url:"assets/img/PerunWebImages/refresh_tab-black.svg",name:"perun-refresh-enabled"},{url:"assets/img/PerunWebImages/refresh_tab-grey.svg",name:"perun-refresh-disabled"},{url:"assets/img/PerunWebImages/manage_facility_white.svg",name:"perun-manage-facility"},{url:"assets/img/PerunWebImages/vo-white.svg",name:"perun-vo"},{url:"assets/img/PerunWebImages/user-white.svg",name:"perun-user"},{url:"assets/img/PerunWebImages/perun_admin-white.svg",name:"perun-perun-admin"},{url:"assets/img/PerunWebImages/group-white.svg",name:"perun-group"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/preview-white.svg",name:"perun-preview"},{url:"assets/img/PerunWebImages/module_dependencies.svg",name:"perun-module-dependencies"},{url:"assets/img/PerunWebImages/user_destination_relationship.svg",name:"perun-user-destination-relationship"},{url:"assets/img/PerunWebImages/settings2-white.svg",name:"perun-settings2"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/applications-white.svg",name:"perun-applications"},{url:"assets/img/PerunWebImages/manager-white.svg",name:"perun-manager"},{url:"assets/img/PerunWebImages/key-white.svg",name:"perun-key"},{url:"assets/img/PerunWebImages/application_form-white.svg",name:"perun-application-form"},{url:"assets/img/PerunWebImages/notification-white.svg",name:"perun-notification"},{url:"assets/img/PerunWebImages/invite_member-white.svg",name:"perun-invite-member"},{url:"assets/img/PerunWebImages/service_identity-white.svg",name:"perun-service-identity"},{url:"assets/img/PerunWebImages/service_identity-black.svg",name:"perun-service-identity-black"},{url:"assets/img/PerunWebImages/create1-white.svg",name:"perun-create1"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource"},{url:"assets/img/PerunWebImages/resource_tags-white.svg",name:"perun-resource-tags"},{url:"assets/img/PerunWebImages/resources_state-white.svg",name:"perun-resources-state"},{url:"assets/img/PerunWebImages/external_sources-white.svg",name:"perun-external-sources"},{url:"assets/img/PerunWebImages/vo-dark.svg",name:"perun-vo-black"},{url:"assets/img/PerunWebImages/group-dark.svg",name:"perun-group-black"},{url:"assets/img/PerunWebImages/facility-dark.svg",name:"perun-facility-black"},{url:"assets/img/publications.svg",name:"perun-publications-white"},{url:"assets/img/PerunWebImages/owner-grey.svg",name:"perun-owner-grey"},{url:"assets/img/PerunWebImages/settings1-blue.svg",name:"perun-settings1"},{url:"assets/img/PerunWebImages/service_destination-blue.svg",name:"perun-service_destination"},{url:"assets/img/PerunWebImages/host-blue.svg",name:"perun-hosts"},{url:"assets/img/PerunWebImages/home.svg",name:"perun-home-white"},{url:"assets/img/PerunWebImages/security_admin-blue.svg",name:"perun-security-teams"},{url:"assets/img/PerunWebImages/black_list-white.svg",name:"perun-black-list"},{url:"assets/img/PerunWebImages/facility-white.svg",name:"perun-facility-white"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource-white"},{url:"assets/img/PerunWebImages/service-white.svg",name:"perun-service"},{url:"assets/img/PerunWebImages/resource-black.svg",name:"perun-resource-black"},{url:"assets/img/PerunWebImages/service_status-grey.svg",name:"perun-service-status"},{url:"assets/img/PerunWebImages/user-dark.svg",name:"perun-user-dark"},{url:"assets/img/PerunWebImages/statistics-blue.svg",name:"perun-statistics"},{url:"assets/img/PerunWebImages/audit_log-blue.svg",name:"perun-audit-log"},{url:"assets/img/PerunWebImages/contact-grey.svg",name:"perun-identity"},{url:"assets/img/PerunWebImages/roles.svg",name:"perun-roles"},{url:"assets/img/PerunWebImages/consent-white.svg",name:"perun-consent-hubs"},{url:"assets/img/PerunWebImages/hierarchical_vo-black.svg",name:"perun-hierarchical-vo"},{url:"assets/img/PerunWebImages/searcher-blue.svg",name:"perun-searcher"},{url:"assets/img/PerunWebImages/propagation-blue.svg",name:"perun-hierarchical-inclusion"},{url:"assets/img/PerunWebImages/verify-grey.svg",name:"perun-verify-grey"},{url:"assets/img/PerunWebImages/info-grey.svg",name:"perun-info-grey"},{url:"assets/img/PerunWebImages/logins.svg",name:"perun-logins"},{url:"assets/img/PerunWebImages/certificates.svg",name:"perun-certificates"},{url:"assets/img/PerunWebImages/authentication.svg",name:"perun-authentication"},{url:"assets/img/PerunWebImages/ban.svg",name:"perun-ban"}]}registerPerunRefreshIcon(){this.customIcons.forEach(s=>{this.matIconRegistry.addSvgIcon(s.name,this.domSanitizer.bypassSecurityTrustResourceUrl(s.url))})}}return n.\u0275fac=function(s){return new(s||n)(A.LFG(Le.jv),A.LFG(ee.H7))},n.\u0275prov=A.Yz7({token:n,factory:n.\u0275fac}),n})();var ge=p(80529),ve=p(62843),De=p(28746),he=p(18505),Ye=p(70262),Be=p(63900);let se=(()=>{class n{constructor(s){this.dialogRef=s}close(){this.dialogRef.close(!0)}}return n.\u0275fac=function(s){return new(s||n)(A.Y36(w.so))},n.\u0275cmp=A.Xpm({type:n,selectors:[["perun-web-apps-session-expiration-dialog"]],decls:11,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"ml-auto"],["color","accent","mat-flat-button","",3,"click"]],template:function(s,l){1&s&&(A.TgZ(0,"h1",0),A._uU(1),A.ALo(2,"translate"),A.qZA(),A.TgZ(3,"div",1),A._uU(4),A.ALo(5,"translate"),A.qZA(),A.TgZ(6,"div",2)(7,"div",3)(8,"button",4),A.NdJ("click",function(){return l.close()}),A._uU(9),A.ALo(10,"translate"),A.qZA()()()),2&s&&(A.xp6(1),A.Oqu(A.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.TITLE")),A.xp6(3),A.hij(" ",A.lcZ(5,5,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.DESCRIPTION"),"\n"),A.xp6(5),A.hij(" ",A.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.SIGN_IN")," "))},dependencies:[w.uh,w.xY,w.H8,ie.lW,e.X$]}),n})(),le=(()=>{class n{constructor(){this.handleNextError=!0}dontHandleErrorForNext(){this.handleNextError=!1}shouldHandleError(){const s=this.handleNextError;return this.handleNextError=!0,s}}return n.\u0275fac=function(s){return new(s||n)},n.\u0275prov=A.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),N=(()=>{class n{constructor(s){this.translate=s,this.addNotification=new A.vpe,this.defaultErrorDelayMs=5e3,this.defaultSuccessDelayMs=3e3}getDefaultActionMessage(){return void 0===this.defaultAction?this.defaultAction=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_ACTION"):this.defaultAction}getDefaultRpcMessage(){return void 0===this.defaultRpcMessage?this.defaultRpcMessage=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_RPC_ERROR_MESSAGE"):this.defaultRpcMessage}showRPCError(s,l=this.getDefaultRpcMessage()){this.showError("PrivilegeException"===s.name?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.PRIVILEGE_EXCEPTION"):void 0===s.name?l:l+"\n"+s.name,s,s.message)}showRouteError(){const s=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_ERROR"),l=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_DESC");this.showError(s,null,l)}showError(s,l,d,c,S){this.addNotification.emit({type:"error",error:l,description:d,title:s,actionText:void 0===c&&void 0!==d?this.getDefaultActionMessage():c,delay:this.defaultErrorDelayMs,icon:"error_outline",action:S,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}showSuccess(s,l,d,c){this.addNotification.emit({type:"success",description:l,title:s,actionText:void 0===d&&void 0!==l?this.getDefaultActionMessage():d,delay:this.defaultSuccessDelayMs,icon:"done",action:c,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}}return n.\u0275fac=function(s){return new(s||n)(A.LFG(e.sK))},n.\u0275prov=A.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),k=(()=>{class n{constructor(s,l,d,c,S,J,ht,ze){this.authService=s,this.apiRequestConfiguration=l,this.notificator=d,this.store=c,this.dialog=S,this.initAuthService=J,this.mfaHandlerService=ht,this.oauthService=ze}intercept(s,l){const d=this.store.getProperty("api_url");if(s.url.includes("i18n")&&(s=s.clone({setHeaders:{"Cache-control":"no-cache, must-revalidate"}})),void 0!==d&&this.isCallToPerunApi(s.url)&&!this.isLoggedIn()&&!this.dialogRefSessionExpiration){const c=(0,R.kZ)();c.width="450px",null==this.dialogRefSessionExpiration&&(this.dialogRefSessionExpiration=this.dialog.open(se,c),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{(0,De.x)(()=>this.dialogRefSessionExpiration=void 0),sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.oauthService.logOut(!0),this.reauthenticate()}))}return this.initAuthService.isServiceAccess()?s=s.clone({setHeaders:{Authorization:"Basic "+btoa(sessionStorage.getItem("basicUsername")+":"+sessionStorage.getItem("basicPassword"))}}):this.isCallToPerunApi(s.url)&&(s=s.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}})),this.handleRequest(s,l)}isLoggedIn(){return(this.authService.isLoggedIn()||this.initAuthService.isServiceAccess())&&!this.initAuthService.isServiceAccessLoginScreenShown()}reauthenticate(){sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.initAuthService.handleAuthStart()}handleRequest(s,l){const d=this.apiRequestConfiguration.shouldHandleError(),c="POST"===s.method&&this.isNotConsolidatorOrLinker()&&this.isCallToPerunApi(s.url);return l.handle(s).pipe((0,he.b)(S=>{S instanceof ge.Zn&&c&&this.initAuthService.loadPrincipal()}),(0,Ye.K)(S=>{const J=S.error;if("MfaPrivilegeException"===J.type||"MfaRolePrivilegeException"===J.type)return this.mfaHandlerService.openMfaWindow("MfaRolePrivilegeException"===J.type).pipe((0,Be.w)(ht=>ht?("MfaRolePrivilegeException"===J.type&&window.location.reload(),this.handleRequest(this.replaceAuthenticationToken(s),l)):(0,ve._)(()=>J)));{this.handleInvalidAccessTokenError(S);const ht=this.formatErrors(S,s);return void 0===ht?(0,ve._)(()=>S):(d&&this.notificator.showRPCError(ht),(0,ve._)(()=>ht))}}))}replaceAuthenticationToken(s){return s.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}})}isCallToPerunApi(s){return s.startsWith(this.store.getProperty("api_url"))}formatErrors(s,l){let d;console.error(s);const c=s.error;if(c.errorId&&(d=c),void 0!==d)return d.urlWithParams=l.urlWithParams,d.call=l.url,d.payload=l.body,d}isNotConsolidatorOrLinker(){const s=this.store.getProperty("application");return!("Linker"===s||"Consolidator"===s)}handleInvalidAccessTokenError(s){if(401===s.status){if(!this.isLoggedIn()||"invalid_token"===s.error.error||null!=this.dialogRefSessionExpiration)return;const l=(0,R.kZ)();this.dialogRefSessionExpiration=this.dialog.open(se,l),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{this.oauthService.logOut(!0),this.reauthenticate()})}}}return n.\u0275fac=function(s){return new(s||n)(A.LFG(O),A.LFG(le),A.LFG(N),A.LFG(B),A.LFG(w.uw),A.LFG(V),A.LFG(F),A.LFG(L.Ct))},n.\u0275prov=A.Yz7({token:n,factory:n.\u0275fac}),n})(),be=(()=>{class n{constructor(){this.newNotificationsCount=0,this.notificationData=[]}storeNotification(s){this.newNotificationsCount++,this.notificationData.push(s)}getNotifications(){return this.notificationData.reverse()}clearNotifications(){this.notificationData=[]}}return n.\u0275fac=function(s){return new(s||n)},n.\u0275prov=A.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Z=(()=>{class n{constructor(s,l,d,c){this.http=s,this.notificator=l,this.authService=d,this.storeService=c}getApiUrl(){return void 0===this.api_url&&(this.api_url=this.storeService.getProperty("api_url")),this.api_url+"/"}getHeaders(){let s=new ge.WM;return s=s.set("Authorization",this.authService.getAuthorizationHeaderValue()),s}get(s,l=!0){const d=`${this.getApiUrl()}${s}`;return this.http.get(d,{headers:this.getHeaders()}).pipe((0,Ye.K)(c=>this.formatErrors(c,d,null,l)))}put(s,l={},d=!0){const c=`${this.getApiUrl()}${s}`,S=JSON.stringify(l);return this.http.put(c,S,{headers:this.getHeaders()}).pipe((0,Ye.K)(J=>this.formatErrors(J,c,S,d)))}post(s,l={},d=!0){const c=`${this.getApiUrl()}${s}`,S=JSON.stringify(l);let J=this.getHeaders();return J=J.set("Content-Type","application/json; charset=utf-8"),this.http.post(c,S,{headers:J}).pipe((0,Ye.K)(ht=>this.formatErrors(ht,c,S,d)))}delete(s,l=!0){const d=`${this.getApiUrl()}${s}`;return this.http.delete(d,{headers:this.getHeaders()}).pipe((0,Ye.K)(c=>this.formatErrors(c,d,null,l)))}formatErrors(s,l,d,c){const S=s.error;return S.call=l,S.payload=d,c&&this.notificator.showRPCError(s.error),(0,ve._)(S)}}return n.\u0275fac=function(s){return new(s||n)(A.LFG(ge.eN),A.LFG(N),A.LFG(O),A.LFG(B))},n.\u0275prov=A.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ce=(()=>{class n{isAllSelected(s,l,d=(()=>!0)){const c=l.paginator.pageSize??0,S=l.paginator.pageIndex??0,J=l.paginator.hasNextPage(),ht=l.data.length===l.filteredData.length;this.numCanBeSelected=0,this.pageStart=S*c,this.pageEnd=this.pageStart+c,this.numSelected=s,this.dataLength=ht?l.data.length:l.filteredData.length;const ze=l.sort;return J||(this.modulo=this.dataLength%c,this.pageEnd=0===this.modulo?this.pageStart+c:this.pageStart+this.modulo),this.pageIterator=0,l.sortData(l.filteredData,ze).forEach(et=>{this.pageStart<=this.pageIterator&&this.pageIterator{ze?et(ne)&&this.pageStart<=this.pageIterator&&this.pageIterator!0)){return l===s.data.reduce((c,S)=>c+Number(d(S)),0)}masterTogglePaginated(s,l,d,c=(()=>!0)){l.clear(),d&&s.data.forEach(S=>{c(S)&&l.select(S)})}}return n.\u0275fac=function(s){return new(s||n)},n.\u0275prov=A.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),xe=(()=>{class n{constructor(s,l,d,c){this.membersService=s,this.usersService=l,this.auditMessagesManagerService=d,this.registrarService=c}getMembers(s,l,d,c,S,J,ht,ze,et,ne){return this.membersService.getMembersPage({vo:s,attrNames:l,query:{pageSize:S,offset:c*S,order:d,sortColumn:J,statuses:ht,searchString:ze,groupId:et,groupStatuses:ne}})}getUsers(s,l,d,c,S,J,ht,ze,et,ne,Ue,He,Pe){return this.usersService.getUsersPage({attrNames:s,query:{offset:c*d,pageSize:c,order:l,sortColumn:S,searchString:J,withoutVo:ht,facilityId:ze,voId:et,resourceId:ne,serviceId:Ue,onlyAllowed:He,consentStatuses:Pe}})}getAuditMessages(s,l,d,c){return this.auditMessagesManagerService.getMessagesPage({query:{offset:d*l,pageSize:d,order:s,selectedEvents:c}})}getApplications(s,l,d,c,S,J,ht,ze,et,ne,Ue,He,Pe){return this.registrarService.getApplicationsPage({vo:Ue,query:{pageSize:s,offset:l*s,order:d,sortColumn:c,searchString:J,includeGroupApplications:S,getDetails:Pe,states:ht,dateFrom:ze,dateTo:et,userId:ne,groupId:He}})}}return n.\u0275fac=function(s){return new(s||n)(A.LFG(M.uq),A.LFG(M.Fv),A.LFG(M.jw),A.LFG(M.tk))},n.\u0275prov=A.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var ot=p(61135),Fe=p(39646),ut=p(4128);function tt(n){return"allObjectCount"in n}class vt{constructor(o,s){this.dynamicPaginatingService=o,this.authzService=s,this.allObjectCount=0,this.routeAuth=!0,this.step=1e4,this.dataSubject=new ot.X([]),this.loadingSubject=new ot.X(!1),this.loading$=this.loadingSubject.asObservable()}loadMembers(o,s,l,d,c,S,J,ht,ze,et){this.loadingSubject.next(!0),this.latestQueryTime=Date.now();const ne=this.latestQueryTime;this.dynamicPaginatingService.getMembers(o,s,l,d,c,S,J,ht,ze,et).pipe((0,Ye.K)(()=>(0,Fe.of)([])),(0,De.x)(()=>this.loadingSubject.next(!1))).subscribe(Ue=>{if(this.latestQueryTime<=ne){const He=Ue.data;null!==He&&0!==He.length&&(this.routeAuth=this.authzService.isAuthorized("getMemberById_int_policy",[{beanName:"Vo",id:o},He[0]])),this.allObjectCount=Ue.totalCount,this.dataSubject.next(He)}})}getAllMembers(o,s,l,d,c,S,J,ht,ze){return new z.y(et=>{const ne=[];for(let Ue=0;Ue{const He=[].concat(...Ue.map(Pe=>Pe.data));et.next(He),et.complete()},error:Ue=>et.error(Ue)})})}loadUsers(o,s,l,d,c,S,J,ht,ze,et,ne,Ue,He){this.loadingSubject.next(!0),this.latestQueryTime=Date.now();const Pe=this.latestQueryTime;this.dynamicPaginatingService.getUsers(o,d,l,s,c,S,J,ht,ze,et,ne,Ue,He).pipe((0,Ye.K)(()=>(0,Fe.of)([])),(0,De.x)(()=>this.loadingSubject.next(!1))).subscribe(Re=>{if(this.latestQueryTime<=Pe){const re=Re.data;this.allObjectCount=Re.totalCount,this.dataSubject.next(re)}})}getAllUsers(o,s,l,d,c,S,J,ht,ze,et,ne,Ue){return new z.y(He=>{const Pe=[];for(let Re=0;Re{const re=[].concat(...Re.map(we=>we.data));He.next(re),He.complete()},error:Re=>He.error(Re)})})}loadAuditMessages(o,s,l,d){this.loadingSubject.next(!0),this.latestQueryTime=Date.now();const c=this.latestQueryTime;this.dynamicPaginatingService.getAuditMessages(l,s,o,d).pipe((0,Ye.K)(()=>(0,Fe.of)([])),(0,De.x)(()=>this.loadingSubject.next(!1))).subscribe(S=>{if(this.latestQueryTime<=c){const J=S.data;this.allObjectCount=S.totalCount,this.dataSubject.next(J)}})}getAllAuditMessages(o,s,l){return new z.y(d=>{const c=[];for(let S=0;S{const J=[].concat(...S.map(ht=>ht.data));d.next(J),d.complete()},error:S=>d.error(S)})})}loadApplications(o,s,l,d,c,S,J,ht,ze,et,ne,Ue,He){this.loadingSubject.next(!0),this.latestQueryTime=Date.now();const Pe=this.latestQueryTime;this.dynamicPaginatingService.getApplications(o,s,l,d,S,c,J,ht,ze,et,Ue,ne,He??!1).pipe((0,Ye.K)(()=>(0,Fe.of)([])),(0,De.x)(()=>this.loadingSubject.next(!1))).subscribe(Re=>{if(this.latestQueryTime<=Pe){const re=Re.data;if(null!==re&&0!==re.length){const we=re;this.routeAuth=we[0].group?this.authzService.isAuthorized("getApplicationsForGroup_Group_List_policy",[we[0].group]):this.authzService.isAuthorized("getApplicationsForVo_Vo_List_Boolean_policy",[we[0].vo])}this.allObjectCount=Re.totalCount,this.dataSubject.next(re)}})}getAllApplications(o,s,l,d,c,S,J,ht,ze,et,ne,Ue){return new z.y(He=>{const Pe=[];for(let Re=0;Re{const re=[].concat(...Re.map(we=>we.data));He.next(re),He.complete()},error:Re=>He.error(Re)})})}connect(){return this.dataSubject.asObservable()}disconnect(){this.dataSubject.complete(),this.loadingSubject.complete()}getData(){return this.dataSubject.value}}let X=(()=>{class n{constructor(s,l){this.route=s,this.store=l}getPreferredLanguage(s){const l=this.store.getProperty("supported_languages"),d=navigator.languages.map(J=>J.split("-")[0]),c=location.search.substring(1).split("&");let S=null;for(const J of c){const ht=J.split("=");"lang"===ht[0]&&(S=ht[1])}return S&&l.includes(S)?S:s&&l.includes(s)?s:d&&l.includes(d[0])?d[0]:"en"}}return n.\u0275fac=function(s){return new(s||n)(A.LFG(v.gz),A.LFG(B))},n.\u0275prov=A.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var nt=p(15861);let Ae=(()=>{class n{generatePdf(s){var l=this;return(0,nt.Z)(function*(){yield l.loadPdfMake(),l.pdfMake.createPdf(s).open()})()}loadPdfMake(){var s=this;return(0,nt.Z)(function*(){if(!s.pdfMake){const l=yield p.e(641).then(p.t.bind(p,54641,23)),d=yield p.e(493).then(p.t.bind(p,58493,19));s.pdfMake=l.default,s.pdfMake.vfs=d.default.pdfMake.vfs}})()}}return n.\u0275fac=function(s){return new(s||n)},n.\u0275prov=A.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ye=(()=>{class n{constructor(s){this.pdfService=s}static generateTableForUser(s){const l=s.name.replace(";"," ").split(";")[0];return"OK"!==s.status?this.generateErrorRowForUser(l,s.status):n.generateRowForUser(l,s.login,s.password)}static generateErrorRowForUser(s,l){return{table:{heights:[30,1,1],widths:[249,249],body:[[{text:s,colSpan:1,alignment:"center",bold:!0,fontSize:12,margin:[20,25],color:"red"},{text:l,alignment:"center",bold:!0,color:"red"}]]}}}static generateRowForUser(s,l,d){return{table:{heights:[30,0],widths:[120,120,120,120],body:[[n.generateNameCell(s),{},n.getPasswordLabelCell(),n.generatePasswordCell(d)],[n.getLoginLabelCell(),n.generateLoginCell(l),{},{}]]}}}static generateNameCell(s){return{text:s,colSpan:2,alignment:"center",border:[!0,!0,!0,!1],bold:!0,fontSize:12,margin:[10,10]}}static generatePasswordCell(s){return{text:s??"N/A",border:[!1,!0,!0,!0],bold:!0,margin:[0,25],rowSpan:2,alignment:"left"}}static generateLoginCell(s){return{text:s??"N/A",border:[!1,!1,!0,!0],bold:!0}}static getLoginLabelCell(){return{text:"Login:",border:[!0,!1,!1,!0],alignment:"right",margin:[0,0,0,10]}}static getPasswordLabelCell(){return{text:"Password:",border:[!0,!0,!1,!0],alignment:"right",margin:[0,25],rowSpan:2}}generate(s){var l=this;return(0,nt.Z)(function*(){const d=[];for(const S of s)d.push(n.generateTableForUser(S));return l.pdfService.generatePdf({content:d})})()}}return n.\u0275fac=function(s){return new(s||n)(A.LFG(Ae))},n.\u0275prov=A.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),_e=(()=>{class n{constructor(s){this.storeService=s}static getBrandContainingDomain(s,l){for(const c of s)if(c.newApps.admin===l||c.newApps.profile===l||c.newApps.pwdReset===l||c.newApps.consolidator===l||c.newApps.linker===l)return c;return s.filter(c=>"default"===c.name)[0]||s[0]}getUrlForOtherApplication(s,l){const c=window.location.href.split("/"),S=c[0]+"//"+c[2],J=n.getBrandContainingDomain(this.storeService.getAppsConfig().brands,S);let ht;if(J.newApps[s])ht=J.newApps[s],"pwdReset"===s&&(ht+=`?login-namespace=${l}`);else switch(ht=J.oldGuiDomain+"/fed",s){case"admin":ht+="/gui/";break;case"profile":ht+="/profile/";break;case"pwdReset":ht+=`/pwd-reset/?login-namespace=${l}`}return ht}}return n.\u0275fac=function(s){return new(s||n)(A.LFG(B))},n.\u0275prov=A.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var Se=p(98739);let Ne=(()=>{class n extends Se.ye{constructor(){super(...arguments),this.getRangeLabel=function(s,l,d){let c;const S=s*l+1,J=(s+1)*l,ht=J>d?d:J;return d<1e3?`${S} \u2013 ${ht} of ${String(d)}`:(c=d<1e4?"1 000":d<1e5?"10 000":"100 000",`${S} \u2013 ${ht} of ${c} +`)}}}return n.\u0275fac=function(){let o;return function(l){return(o||(o=A.n5z(n)))(l||n)}}(),n.\u0275prov=A.Yz7({token:n,factory:n.\u0275fac}),n})(),Ce=(()=>{class n{setEntity(s){this.entity=s}getEntity(){return this.entity}}return n.\u0275fac=function(s){return new(s||n)},n.\u0275prov=A.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var fe=p(64080);let r=(()=>{class n{constructor(s,l,d,c,S){this.authResolver=s,this.attributesManager=l,this.notificator=d,this.apiRequest=c,this.router=S,this.routePolicies=new Map([["organizations",J=>this.authResolver.isAuthorized("getEnrichedVoById_int_policy",[J])],["organizations-members",J=>this.authResolver.isAuthorized("getMembersPage_Vo_MembersPageQuery_List_policy",[J])],["organizations-groups",J=>this.authResolver.isAuthorized("getAllRichGroupsWithAttributesByNames_Vo_List_policy",[J])],["organizations-resources",J=>this.authResolver.isAuthorized("getRichResources_Vo_policy",[J])||this.authResolver.isAuthorized("getAllResourcesTagsForVo_Vo_policy",[J])||this.authResolver.isAuthorized("getResourcesState_Vo_policy",[J])],["organizations-resources-preview",J=>this.authResolver.isAuthorized("getRichResources_Vo_policy",[J])],["organizations-resources-tags",J=>this.authResolver.isAuthorized("getAllResourcesTagsForVo_Vo_policy",[J])],["organizations-resources-states",J=>this.authResolver.isAuthorized("getResourcesState_Vo_policy",[J])],["organizations-applications",J=>this.authResolver.isAuthorized("getApplicationsForVo_Vo_List_Boolean_policy",[J])],["organizations-sponsoredMembers",J=>this.authResolver.isAuthorized("getSponsoredMembersAndTheirSponsors_Vo_policy",[J])],["organizations-serviceAccounts",J=>this.authResolver.isAuthorized("createSpecificMember_Vo_Candidate_List_SpecificUserType_List_policy",[J])],["organizations-attributes",J=>this.authResolver.isAuthorized("getEnrichedVoById_int_policy",[J])],["organizations-statistics",J=>this.authResolver.isAuthorized("getMembersCount_Vo_Status_policy",[J])&&this.authResolver.isAuthorized("getMembersCount_Vo_policy",[J])],["organizations-settings",J=>this.authResolver.isAuthorized("getVoExtSources_Vo_policy",[J])||this.authResolver.isManagerPagePrivileged(J)||this.authResolver.isThisVoAdminOrObserver(J.id)],["organizations-settings-expiration",J=>this.authResolver.isThisVoAdminOrObserver(J.id)],["organizations-settings-managers",J=>this.authResolver.isManagerPagePrivileged(J)],["organizations-settings-applicationForm",J=>this.authResolver.isThisVoAdminOrObserver(J.id)],["organizations-settings-notifications",J=>this.authResolver.isThisVoAdminOrObserver(J.id)],["organizations-settings-extsources",J=>this.authResolver.isAuthorized("getVoExtSources_Vo_policy",[J])],["organizations-settings-memberOrganizations",()=>this.authResolver.isPerunAdmin()],["organizations-settings-hierarchicalInclusion",()=>this.authResolver.isPerunAdmin()],["organizations-settings-bans",J=>this.authResolver.isAuthorized("getBansForVo_int_policy",[J])],["members",J=>this.authResolver.isAuthorized("getRichMemberWithAttributes_Member_policy",[J])],["members-groups",J=>this.authResolver.isAuthorized("getMemberGroups_Member_policy",[J])],["members-applications",J=>this.authResolver.isAuthorized("vo-getApplicationsForMember_Group_Member_policy",[J])],["members-resources",J=>this.authResolver.isAuthorized("getAssignedRichResources_Member_policy",[J])],["members-attributes",J=>this.authResolver.isAuthorized("getRichMemberWithAttributes_Member_policy",[J])],["members-bans",J=>this.authResolver.isAuthorized("vo-getBanForMember_member_policy",[J])],["groups",J=>this.authResolver.isAuthorized("getGroupById_int_policy",[J])],["groups-members",J=>this.authResolver.isAuthorized("group-getMembersPage_Vo_MembersPageQuery_List_policy",[J])],["groups-subgroups",J=>this.authResolver.isAuthorized("getAllRichSubGroupsWithAttributesByNames_Group_List_policy",[J])],["groups-resources",J=>this.authResolver.isAuthorized("getAssignedRichResources_Group_policy",[J])],["groups-applications",J=>this.authResolver.isAuthorized("getApplicationsForGroup_Group_List_policy",[J])],["groups-attributes",J=>this.authResolver.isAuthorized("getGroupById_int_policy",[J])],["groups-statistics",J=>this.authResolver.isAuthorized("getGroupMembersCount_Group_policy",[J])&&this.authResolver.isAuthorized("getGroupMembersCountsByVoStatus_Group_policy",[J])&&this.authResolver.isAuthorized("getGroupMembersCountsByGroupStatus_Group_policy",[J])],["groups-roles",J=>this.authResolver.isAuthorized("getGroupRoles_int_policy",[J])],["groups-settings",J=>this.authResolver.isManagerPagePrivileged(J)||this.authResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[J])||this.authResolver.isAuthorized("getGroupUnions_Group_boolean_policy",[J])||this.authResolver.isAuthorized("getGroupExtSources_Group_policy",[J])],["groups-settings-managers",J=>this.authResolver.isManagerPagePrivileged(J)],["groups-settings-applicationForm",J=>this.authResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[J])],["groups-settings-notifications",J=>this.authResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[J])],["groups-settings-relations",J=>this.authResolver.isAuthorized("getGroupUnions_Group_boolean_policy",[J])],["groups-settings-extsources",J=>this.authResolver.isAuthorized("getGroupExtSources_Group_policy",[J])],["groups-settings-expiration",J=>(this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getGroupAttributeByName(J.id,fe.r.GROUP_DEF_EXPIRATION_RULES).subscribe({next:()=>{},error:()=>{this.notificator.showRouteError(),this.router.navigate(["/notAuthorized"],{queryParamsHandling:"preserve"})}}),!0)],["resources",J=>this.authResolver.isAuthorized("getRichResourceById_int_policy",[J])],["resources-groups",J=>this.authResolver.isAuthorized("getAssignedGroups_Resource_policy",[J])],["resources-services",J=>this.authResolver.isAuthorized("getAssignedServices_Resource_policy",[J])],["resources-members",J=>this.authResolver.isAuthorized("getAssignedMembers_Resource_policy",[J])],["resources-tags",J=>this.authResolver.isAuthorized("getAllResourcesTagsForResource_Resource_policy",[J])],["resources-attributes",J=>this.authResolver.isAuthorized("getRichResourceById_int_policy",[J])],["resources-settings",J=>this.authResolver.isManagerPagePrivileged(J)],["resources-settings-managers",J=>this.authResolver.isManagerPagePrivileged(J)],["resources-settings-bans",J=>this.authResolver.isAuthorized("getBansForResource_int_policy",[J])],["facilities",J=>this.authResolver.isAuthorized("getFacilityById_int_policy",[J])],["facilities-resources",J=>this.authResolver.isAuthorized("getAssignedRichResources_Facility_policy",[J])],["facilities-allowed-users",J=>this.authResolver.isAuthorized("getAssignedUsers_Facility_Service_policy",[J])],["facilities-allowed-groups",J=>this.authResolver.isAuthorized("getAllowedGroups_Facility_Vo_Service_policy",[J])],["facilities-services-status",J=>this.authResolver.isAuthorized("getFacilityServicesState_Facility_policy",[J])],["services-status",J=>this.authResolver.isAuthorized("getTaskResultsByTask_int_policy",[J])],["facilities-services-destinations",J=>this.authResolver.isAuthorized("getAllRichDestinations_Facility_policy",[J])],["facilities-hosts",()=>this.authResolver.isFacilityAdmin()],["facilities-attributes",J=>this.authResolver.isAuthorized("getFacilityById_int_policy",[J])],["facilities-settings",J=>this.authResolver.isAuthorized("getOwners_Facility_policy",[J])||this.authResolver.isManagerPagePrivileged(J)||this.authResolver.isAuthorized("getAssignedSecurityTeams_Facility_policy",[J])||this.authResolver.isAuthorized("getBansForFacility_int_policy",[J])],["facilities-settings-owners",J=>this.authResolver.isAuthorized("getOwners_Facility_policy",[J])],["facilities-settings-managers",J=>this.authResolver.isManagerPagePrivileged(J)],["facilities-settings-security-teams",J=>this.authResolver.isAuthorized("getAssignedSecurityTeams_Facility_policy",[J])],["facilities-settings-blacklist",J=>this.authResolver.isAuthorized("getBansForFacility_int_policy",[J])],["facilities-settings-bans",J=>this.authResolver.isAuthorized("getBansForUser_int_policy",[J])]])}canNavigate(s,l){if(s.startsWith("admin")||s.startsWith("identities"))return this.authResolver.isPerunAdminOrObserver();if("facilities"===s&&-1===l.id)return this.authResolver.canManageFacilities();const d=this.routePolicies.get(s);return!d||d(l)}}return n.\u0275fac=function(s){return new(s||n)(A.LFG(b),A.LFG(M.H8),A.LFG(N),A.LFG(le),A.LFG(v.F0))},n.\u0275prov=A.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var u=p(54004),_=p(4707);let E=(()=>{class n{constructor(s,l){this.attributesManager=s,this.authResolver=l,this.roleWithObjects$=new _.t(1),(0,Fe.of)(this.authResolver.getAllRules()).pipe((0,u.U)(d=>d.filter(c=>c.assignableToAttributes)),(0,Be.w)(d=>{const c=new Map;return d.map(S=>c.set(S.roleName,["None",...Object.keys(S.assignedObjects)])),(0,Fe.of)(new Map([...c.entries()].sort()))})).subscribe(this.roleWithObjects$)}getRoles(){return(0,Fe.of)(this.authResolver.getAllRules().filter(s=>s.assignableToAttributes))}getObjects(s){return this.roleWithObjects$.pipe((0,Be.w)(l=>(0,Fe.of)(l.get(s))))}filterNullInPolicy(){return function(s){return s.pipe((0,u.U)(l=>(l.forEach(d=>d.policies=d.policies.filter(c=>null!==c.role&&null!==c.object)),l)))}}updateAttributeAction(s,l,d,c){return void 0!==s&&s!==l?this.attributesManager.setAttributeActionCriticality(d,c,s):(0,Fe.of)(void 0)}addAttributeId(){return function(s){return s.pipe((0,u.U)(([l,d])=>(d.forEach(c=>c.attributeId=l),d)))}}}return n.\u0275fac=function(s){return new(s||n)(A.LFG(M.H8),A.LFG(b))},n.\u0275prov=A.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var h=p(36895);let a=(()=>{class n{constructor(){this.getDataForColumn=(s,l,d)=>{switch(l){case"id":return s.id.toString();case"vo":return d.get(s.voId);case"name":return s.name;case"description":return s.description;case"expiration":{const c=(0,R.x2)(s);return(0,R.sG)(c)}case"recent":return"";case"status":return s.status;case"uuid":return s.uuid;default:return s[l]}},this.getSortDataForColumn=(s,l,d,c)=>{switch(l){case"id":return s.id.toString();case"vo":return d.get(s.voId);case"name":return s.name;case"description":return s.description;case"expiration":{const S=(0,R.x2)(s);return S&&"never"!==S.toLowerCase()?(0,h.p6)(S,"yyyy.MM.dd","en"):S}case"recent":return c&&c.includes(s.id)?"#".repeat(c.indexOf(s.id)):s.name;case"status":return s.status;default:return s[l]}}}}return n.\u0275fac=function(s){return new(s||n)},n.\u0275prov=A.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),i=(()=>{class n{constructor(s,l){this.guiAuthResolver=s,this.authzResolver=l}findSponsorsAuth(s){const l=[this.guiAuthResolver.getRuleForRole("SPONSOR")],d=new Map;return this.guiAuthResolver.setRolesAuthorization(l,s,d),d.get(l[0].roleName).readAuth}getSponsors(s){const l=[fe.r.USER_DEF_PREFERRED_MAIL];return new z.y(d=>{this.authzResolver.getAuthzRichAdmins(m.u.SPONSOR,s,"Vo",l,!1,!1).subscribe(c=>{d.next(c),d.complete()})})}}return n.\u0275fac=function(s){return new(s||n)(A.LFG(b),A.LFG(M.Ct))},n.\u0275prov=A.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),t=(()=>{class n{prepareRoles(s,l){const d=new Map;return l.forEach(c=>{const S=new Map;Object.keys(s[c]).forEach(ht=>{S.set(ht,s[c][ht])}),d.set(c,S)}),d}}return n.\u0275fac=function(s){return new(s||n)},n.\u0275prov=A.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})()},64080:(Xe,ue,p)=>{"use strict";p.d(ue,{r:()=>e});let e=(()=>{class A{}return A.MEMBER_DEF_EXPIRATION="urn:perun:member:attribute-def:def:membershipExpiration",A.MEMBER_DEF_GROUP_EXPIRATION="urn:perun:member_group:attribute-def:def:groupMembershipExpiration",A.MEMBER_GROUP_STATUS="urn:perun:member_group:attribute-def:virt:groupStatus",A.MEMBER_GROUP_STATUS_INDIRECT="urn:perun:member_group:attribute-def:virt:groupStatusIndirect",A.MEMBER_DEF_ORGANIZATION="urn:perun:member:attribute-def:def:organization",A.MEMBER_DEF_MAIL="urn:perun:member:attribute-def:def:mail",A.MEMBER_CORE_ID="urn:perun:member:attribute-def:core:id",A.MEMBER_LIFECYCLE_ALTERABLE="urn:perun:member:attribute-def:virt:isLifecycleAlterable",A.VO_DEF_EXPIRATION_RULES="urn:perun:vo:attribute-def:def:membershipExpirationRules",A.VO_DEF_MAIL_FOOTER="urn:perun:vo:attribute-def:def:mailFooter",A.VO_DEF_MAIL_HTML_FOOTER="urn:perun:vo:attribute-def:def:htmlMailFooter",A.VO_BLOCK_MANUAL_MEMBER_ADDING="urn:perun:vo:attribute-def:def:blockManualMemberAdding",A.USER_DEF_ORGANIZATION="urn:perun:user:attribute-def:def:organization",A.USER_DEF_PREFERRED_MAIL="urn:perun:user:attribute-def:def:preferredMail",A.USER_DEF_CERTIFICATES="urn:perun:user:attribute-def:def:userCertificates",A.GROUP_DEF_EXPIRATION_RULES="urn:perun:group:attribute-def:def:groupMembershipExpirationRules",A.GROUP_DEF_MAIL_FOOTER="urn:perun:group:attribute-def:def:mailFooter",A.GROUP_DEF_MAIL_HTML_FOOTER="urn:perun:group:attribute-def:def:htmlMailFooter",A.GROUP_SYNC_ENABLED="urn:perun:group:attribute-def:def:synchronizationEnabled",A.GROUP_LAST_SYNC_STATE="urn:perun:group:attribute-def:def:lastSynchronizationState",A.GROUP_LAST_SYNC_TIMESTAMP="urn:perun:group:attribute-def:def:lastSynchronizationTimestamp",A.GROUP_STRUCTURE_SYNC_ENABLED="urn:perun:group:attribute-def:def:groupStructureSynchronizationEnabled",A.GROUP_LAST_STRUCTURE_SYNC_STATE="urn:perun:group:attribute-def:def:lastGroupStructureSynchronizationState",A.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP="urn:perun:group:attribute-def:def:lastGroupStructureSynchronizationTimestamp",A.GROUP_SYNC_INTERVAL="urn:perun:group:attribute-def:def:synchronizationInterval",A.GROUP_BLOCK_MANUAL_MEMBER_ADDING="urn:perun:group:attribute-def:def:blockManualMemberAdding",A.UES_DEF_MAIL="urn:perun:ues:attribute-def:def:mail",A.UES_DEF_ORGANIZATION="urn:perun:ues:attribute-def:def:o",A.UES_SOURCE_IDP_NAME="urn:perun:ues:attribute-def:def:sourceIdPName",A.UES_IDP_ORGANIZATION_NAME="urn:perun:ues:attribute-def:def:IdPOrganizationName",A})()},9244:(Xe,ue,p)=>{"use strict";p.d(ue,{dN:()=>w,Je:()=>v,f7:()=>R.f7,l9:()=>B.l,sF:()=>R.sF,XI:()=>R.XI,Xd:()=>R.Xd,aC:()=>R.aC,fx:()=>R.fx,dv:()=>R.dv,i5:()=>R.i5,Sd:()=>R.Sd,pR:()=>R.pR,ys:()=>R.ys,O6:()=>R.O6,B2:()=>R.B2,mH:()=>R.mH,MX:()=>R.MX,cT:()=>R.cT,oU:()=>R.oU,IL:()=>R.IL,Jc:()=>R.Jc,Xn:()=>R.Xn,kZ:()=>R.kZ,v$:()=>R.v$,x2:()=>R.x2,vL:()=>R.vL,j4:()=>R.j4,jh:()=>R.jh,bx:()=>R.bx,im:()=>R.im,zr:()=>R.zr,Hm:()=>R.Hm,Cz:()=>R.Cz,sG:()=>R.sG,g$:()=>R.g$,bD:()=>R.bD,lt:()=>R.lt,Oe:()=>R.Oe,hu:()=>R.hu,Gw:()=>R.Gw,O5:()=>R.O5,te:()=>R.te,kN:()=>R.kN,$0:()=>R.$0,OV:()=>R.OV});var e=p(98739),A=p(28255),C=p(97392),M=p(4859),m=p(89383),b=p(36895),D=p(94650);let v=(()=>{class L{}return L.\u0275fac=function(q){return new(q||L)},L.\u0275mod=D.oAB({type:L}),L.\u0275inj=D.cJS({imports:[e.TU,A.Tx,C.Ps,M.ot,m.aw,b.ez]}),L})();var R=p(17218),B=p(18750);class w{static passwordMatchValidator(O){const q=O.get("passwordCtrl").value,te=O.get("passwordAgainCtrl").value;return O.get("passwordAgainCtrl").setErrors(q!==te?{noPasswordMatch:!0}:null),null}static patternValidator(O){return q=>{if(!q.value)return null;let te=0;for(const z of O)te+=z.test(q.value)?1:0;return te>=3?null:{isWeak:!0}}}}},17218:(Xe,ue,p)=>{"use strict";p.d(ue,{$0:()=>w,B2:()=>v,Cz:()=>z,Gw:()=>ot,Hm:()=>ce,IL:()=>he,Jc:()=>Ye,MX:()=>ve,O5:()=>u,O6:()=>ye,OV:()=>ge,Oe:()=>xe,Sd:()=>X,XI:()=>ee,Xd:()=>Se,Xn:()=>Ae,aC:()=>_e,bD:()=>q,bx:()=>r,cT:()=>nt,dv:()=>Z,f7:()=>D,fx:()=>Ne,g$:()=>R,hu:()=>te,i5:()=>k,im:()=>_,j4:()=>F,jh:()=>fe,kN:()=>B,kZ:()=>be,lt:()=>L,mH:()=>Ce,oU:()=>De,pR:()=>vt,sF:()=>V,sG:()=>ut,te:()=>Te,v$:()=>Be,vL:()=>W,x2:()=>Fe,ys:()=>pe,zr:()=>E});var e=p(15861),A=p(65412),C=p(36895),M=p(94327),b=p(64080);const D=[5,10,25,100],v=/^(([^<>+()[\]\\.,;:\s@"-#$%&=]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]+))$/;function R(h){let a="";return h?.userAttributes.forEach(i=>{"preferredMail"===i.friendlyName&&(a=i.value)}),a&&0===a.length&&null!==h.memberAttributes&&h.memberAttributes.forEach(i=>{"mail"===i.friendlyName&&null!==i.value&&(a=i.value)}),a}function B(h){let a="";return h&&h.userAttributes.forEach(i=>{"preferredMail"===i.friendlyName&&(a=i.value)}),a}function w(h){let a="";return!!h&&!!h.userAttributes&&h.userAttributes.filter(i=>"login-namespace"===i.baseFriendlyName).filter(i=>null!==i.value).forEach(i=>{a=a.concat(i.friendlyNameParameter,": ",i.value,", ")}),a.endsWith(", ")&&(a=a.substring(0,a.length-2)),a}function L(h){let a="";return!!h&&!!h.userAttributes&&h.userAttributes.filter(i=>"login-namespace"===i.baseFriendlyName).filter(i=>null!==i.value).forEach(i=>{a=a.concat(i.friendlyNameParameter,": ",i.value,", ")}),a.endsWith(", ")&&(a=a.substring(0,a.length-2)),a}function q(h){let a="";return null!==h.titleBefore&&(a+=h.titleBefore+" "),null!==h.firstName&&(a+=h.firstName+" "),null!==h.middleName&&(a+=h.middleName+" "),null!==h.lastName&&(a+=h.lastName+" "),null!==h.titleAfter&&(a+=h.titleAfter+" "),a.endsWith(" ")&&(a=a.substring(0,a.length-1)),a}function te(h){let a="";return null!==h.firstName&&(a+=h.firstName+" "),null!==h.middleName&&(a+=h.middleName+" "),null!==h.lastName&&(a+=h.lastName+" "),a.endsWith(" ")&&(a=a.substring(0,a.length-1)),a}function z(h){let a="";return h.split(/(?=[A-Z])/g).forEach(t=>{a=a.concat(t.toLowerCase()),a=a.concat(" ")}),a=a.charAt(0).toUpperCase()+a.slice(1,a.length-1),a}function Te(h){let a="";for(const i of h)"technical"===i.type&&(a+=i.name+", ");return a.endsWith(", ")&&(a=a.substring(0,a.length-2)),a}function pe(h,a){return Le.apply(this,arguments)}function Le(){return(Le=(0,e.Z)(function*(h,a){yield T(h),a()})).apply(this,arguments)}function T(h){return new Promise(a=>setTimeout(a,h))}function W(h){return JSON.parse(localStorage.getItem(h))||[]}function F(h){return JSON.parse(localStorage.getItem(h))||[]}function V(h,a){if(null===localStorage.getItem(h)){const i=[];i.unshift(a.id),localStorage.setItem(h,JSON.stringify(i))}else{const i=JSON.parse(localStorage.getItem(h)),t=function Ee(h,a){for(let i=0;i0&&i.splice(t,1),0!==t&&i.unshift(a.id),i.length>5&&i.pop(),localStorage.setItem(h,JSON.stringify(i))}}function ee(h,a){if(null===localStorage.getItem("recent")){let i;i="Group"===h.beanName?[{id:h.id,name:h.shortName,fullName:h.name,type:h.beanName,voId:h.voId,voName:a}]:[{id:h.id,name:h.name,type:h.beanName,voId:h.voId}],localStorage.setItem("recent",JSON.stringify(i))}else{const i=JSON.parse(localStorage.getItem("recent"));let t;t="Group"===h.beanName?{id:h.id,name:h.shortName,fullName:h.name,type:h.beanName,voId:h.voId,voName:a}:{id:h.id,name:h.name,type:h.beanName,voId:h.voId};const n=function Q(h,a){for(let i=0;i0&&i.splice(n,1),0!==n&&i.unshift(t),i.length>5&&i.pop(),localStorage.setItem("recent",JSON.stringify(i))}}function ge(h){let a="";return h&&h.userAttributes.forEach(i=>{"organization"===i.friendlyName&&(a=i.value)}),a}function ve(h){return h.filter(a=>!a.namespace.includes("def:core"))}function De(h,a){const i=a.find(t=>t.id===h);return i?i.parentGroupId?De(i.parentGroupId,a).concat(i):[i]:[]}function he(h,a){for(const i of h)if(i.namespace+":"+i.friendlyName===a)return i;return null}function Ye(h){return null!=h.attributes["urn:perun:member:attribute-def:def:mail"]?h.attributes["urn:perun:member:attribute-def:def:mail"]:null!=h.attributes["urn:perun:user:attribute-def:def:preferredMail"]?h.attributes["urn:perun:user:attribute-def:def:preferredMail"]:""}function Be(h){return h.userExtSource.extSource.type.toLowerCase()==="cz.metacentrum.perun.core.impl.ExtSourceX509".toLowerCase()?function se(h){if(h.includes("/CN=")){const a=h.split("/");for(const i of a)if(i.startsWith("CN="))return le(i.substring(3))}return h}(h.userExtSource.extSource.name):h.userExtSource.extSource.type.toLowerCase()==="cz.metacentrum.perun.core.impl.ExtSourceIdp".toLowerCase()?function N(h){switch(h){case"https://idp.upce.cz/idp/shibboleth":return"University in Pardubice";case"https://idp.slu.cz/idp/shibboleth":return"University in Opava";case"https://login.feld.cvut.cz/idp/shibboleth":return"Faculty of Electrical Engineering, Czech Technical University In Prague";case"https://www.vutbr.cz/SSO/saml2/idp":return"Brno University of Technology";case"https://shibboleth.nkp.cz/idp/shibboleth":return"The National Library of the Czech Republic";case"https://idp2.civ.cvut.cz/idp/shibboleth":return"Czech Technical University In Prague";case"https://shibbo.tul.cz/idp/shibboleth":return"Technical University of Liberec";case"https://idp.mendelu.cz/idp/shibboleth":return"Mendel University in Brno";case"https://cas.cuni.cz/idp/shibboleth":return"Charles University in Prague";case"https://wsso.vscht.cz/idp/shibboleth":return"Institute of Chemical Technology Prague";case"https://idp.vsb.cz/idp/shibboleth":return"VSB \u2013 Technical University of Ostrava";case"https://whoami.cesnet.cz/idp/shibboleth":return"CESNET";case"https://helium.jcu.cz/idp/shibboleth":return"University of South Bohemia";case"https://idp.ujep.cz/idp/shibboleth":return"Jan Evangelista Purkyne University in Usti nad Labem";case"https://idp.amu.cz/idp/shibboleth":return"Academy of Performing Arts in Prague";case"https://idp.lib.cas.cz/idp/shibboleth":return"Academy of Sciences Library";case"https://shibboleth.mzk.cz/simplesaml/metadata.xml":return"Moravian Library";case"https://idp2.ics.muni.cz/idp/shibboleth":return"Masaryk University";case"https://idp.upol.cz/idp/shibboleth":return"Palacky University, Olomouc";case"https://idp.fnplzen.cz/idp/shibboleth":return"FN Plzen";case"https://id.vse.cz/idp/shibboleth":return"University of Economics, Prague";case"https://shib.zcu.cz/idp/shibboleth":return"University of West Bohemia";case"https://idptoo.osu.cz/simplesaml/saml2/idp/metadata.php":return"University of Ostrava";case"https://login.ics.muni.cz/idp/shibboleth":return"MetaCentrum";case"https://idp.hostel.eduid.cz/idp/shibboleth":return"eduID.cz Hostel";case"https://shibboleth.techlib.cz/idp/shibboleth":return"National Library of Technology";case"https://eduid.jamu.cz/idp/shibboleth":return"Janacek Academy of Music and Performing Arts in Brno";case"https://marisa.uochb.cas.cz/simplesaml/saml2/idp/metadata.php":return"Institute of Organic Chemistry and Biochemistry AS CR";case"https://shibboleth.utb.cz/idp/shibboleth":return"Tomas Bata University in Zlin";case"https://engine.elixir-czech.org/authentication/idp/metadata":case"@elixir-europe.org":return"Elixir Europe";case"https://login.elixir-czech.org/idp":return"Elixir Czech";case"https://mojeid.cz/saml/idp.xml":case"@mojeid.extidp.cesnet.cz":return"MojeID";case"https://www.egi.eu/idp/shibboleth":return"EGI SSO";case"@google.extidp.cesnet.cz":return"Google";case"@facebook.extidp.cesnet.cz":return"Facebook";case"@linkedin.extidp.cesnet.cz":return"LinkedIn";case"@twitter.extidp.cesnet.cz":return"Twitter";case"@seznam.extidp.cesnet.cz":return"Seznam";case"@github.extidp.cesnet.cz":return"GitHub";case"@orcid.extidp.cesnet.cz":return"OrcID";default:return h}}(h.userExtSource.extSource.name):h.userExtSource.extSource.name}function le(h){return decodeURIComponent(h.replace(/\\x/g,"%"))}function k(h=["en","cs"]){const a={appType:"INITIAL",formId:0,mailType:"APP_CREATED_USER",send:!0,message:{},htmlMessage:{}};return h.forEach(i=>{a.message[i]={locale:i,htmlFormat:!1,subject:"",text:""},a.htmlMessage[i]={locale:i,htmlFormat:!0,subject:"",text:""}}),a}function be(){const h=new A.vA;return h.disableClose=!0,h.autoFocus=!1,h}function Z(h){const a={applicationTypes:["INITIAL","EXTENSION"],federationAttribute:"",i18n:{},id:0,ordnum:0,perunDestinationAttribute:null,perunSourceAttribute:null,regex:"",required:!1,updatable:!0,disabled:"NEVER",hidden:"NEVER",disabledDependencyItemId:null,hiddenDependencyItemId:null,shortname:"",type:null};for(const i of h)a.i18n[i]={locale:i,errorMessage:"",help:"",label:"",options:""};return a}function ce(h){return"virt"===h.namespace.split(":")[4]}function xe(h,a){return"valid"!==h.toLowerCase()||a&&"valid"!==h.toLowerCase()?h:"ACTIVE"}function ot(h){let a="";return h?.memberAttributes.forEach(i=>{"organization"===i.friendlyName&&null!==i.value&&(a=i.value)}),0===a.length&&h?.userAttributes.forEach(i=>{"organization"===i.friendlyName&&(a=i.value)}),a}function Fe(h){return h.attributes.find(i=>"groupMembershipExpiration"===i.baseFriendlyName)?.value??"Never"}function ut(h){return h&&"never"!==h.toLowerCase()?(0,C.p6)(h,"d.M.yyyy","en"):h}const tt=new Intl.Collator("cs",{numeric:!0});function vt(h,a,i){const t=a.active,n=a.direction;return t&&""!==n?h.sort((o,s)=>{const l=i(o,t),d=i(s,t);return tt.compare(l,d)*("asc"===n?1:-1)}):h}function X(h,a,i,t,n){a=a.toLowerCase();let o="";return i.forEach(s=>{o+=";"+t(h,s)}),n&&(o+=";"+t(h,"uuid")),o.toLowerCase().includes(a)}function nt(h,a){let i="";return h?.forEach(t=>{t.friendlyName===a&&(i=t.value)}),i}function Ae(h,a,i){const t=[],n=["checkbox","select","edit","menu","cite","extend","recent"];return a=a.filter(o=>!n.includes(o)),h.forEach(o=>{const s={};a.forEach(l=>{s[l]=(i(o,l)??"").split('"').join("''").trim()}),t.push(s)}),t}function ye(h,a="csv",i="export"){if("csv"===a){const t=(d,c)=>null===c?"":c,n=Object.keys(h[0]),o=h.map(d=>n.map(c=>JSON.stringify(d[c],t)).join(","));o.unshift(n.join(",").split(" ").join("_").split('"').join("''"));const s=o.join("\r\n"),l=new Blob([s],{type:"text/csv"});(0,M.saveAs)(l,`${i}.${a}`)}}function _e(h,a){return h.name.toLowerCase()>a.name.toLowerCase()?1:h.name.toLowerCase()===a.name.toLowerCase()?0:-1}function Se(h,a){return h.displayName.toLowerCase()>a.displayName.toLowerCase()?1:h.displayName.toLowerCase()===a.displayName.toLowerCase()?0:-1}function Ne(h,a){let i,t;return h.user?(i=h.user.lastName?h.user.lastName:h.user.firstName??"",t=a.user.lastName?a.user.lastName:a.user.firstName??""):(i=h.lastName?h.lastName:h.firstName??"",t=a.lastName?a.lastName:a.firstName??""),i>t?1:i===t?0:-1}function Ce(h,a,i=[]){h.enable(),h.clearValidators(),h.clearAsyncValidators(),h.setValidators(a),h.setAsyncValidators(i),h.updateValueAndValidity()}function fe(h,a){return!!h&&h.some(i=>i.namespace+":"+i.friendlyName===a&&null!==i.value&&"true"===String(i.value))}function r(h){return fe(h.attributes,b.r.GROUP_SYNC_ENABLED)||fe(h.attributes,b.r.GROUP_STRUCTURE_SYNC_ENABLED)}function u(h,a){const i=a.split("&");for(const t of i){const[n,o]=t.split("=");if(n.includes(h))return o}return""}function _(h){if("INDIRECT"===h.membershipType)return!0;const a=h.memberAttributes?.find(i=>"isLifecycleAlterable"===i.friendlyName);return!!a&&!a.value}function E(h){if("INDIRECT"===h.membershipType)return"INDIRECT";const a=h.memberAttributes?.find(i=>"isLifecycleAlterable"===i.friendlyName);return a?a.value?"DIRECT":"UNALTERABLE":"UNKNOWN"}},18750:(Xe,ue,p)=>{"use strict";p.d(ue,{l:()=>z});var e=p(94650),A=p(98739),C=p(17218),M=p(10036),m=p(36895),b=p(28255),D=p(97392),v=p(4859),R=p(89383);function B(ie,Te){if(1&ie){const pe=e.EpF();e.TgZ(0,"button",7),e.NdJ("click",function(){e.CHM(pe);const T=e.oxw();return e.KtG(T.exportAllData.emit("csv"))}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&ie&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.ALL_DATA")," "))}let w=(()=>{class ie{constructor(){this.exportDisplayedData=new e.vpe,this.exportAllData=new e.vpe}}return ie.\u0275fac=function(pe){return new(pe||ie)},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["perun-web-apps-table-options"]],inputs:{allowExportAll:"allowExportAll"},outputs:{exportDisplayedData:"exportDisplayedData",exportAllData:"exportAllData"},decls:19,vars:10,consts:[[1,"position-right"],["mat-icon-button","",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"matMenuTriggerFor"],["exportOptions","matMenu"],["xPosition","before"],["selectData","matMenu"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"click",4,"ngIf"]],template:function(pe,Le){if(1&pe&&(e.TgZ(0,"div",0)(1,"button",1)(2,"mat-icon"),e._uU(3,"more_vert"),e.qZA()(),e.TgZ(4,"mat-menu",null,2)(6,"button",3),e._uU(7),e.ALo(8,"translate"),e.qZA()(),e.TgZ(9,"mat-menu",null,4)(11,"button",3),e._uU(12,"Csv"),e.qZA()(),e.TgZ(13,"mat-menu",5,6)(15,"button",7),e.NdJ("click",function(){return Le.exportDisplayedData.emit("csv")}),e._uU(16),e.ALo(17,"translate"),e.qZA(),e.YNc(18,B,3,3,"button",8),e.qZA()()),2&pe){const T=e.MAs(5),W=e.MAs(10),F=e.MAs(14);e.xp6(1),e.Q6J("matMenuTriggerFor",T),e.xp6(5),e.Q6J("matMenuTriggerFor",W),e.xp6(1),e.hij(" ",e.lcZ(8,6,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.EXPORT_TO_FILE")," "),e.xp6(4),e.Q6J("matMenuTriggerFor",F),e.xp6(5),e.hij(" ",e.lcZ(17,8,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.DISPLAYED_DATA")," "),e.xp6(2),e.Q6J("ngIf",Le.allowExportAll)}},dependencies:[b.VK,b.OP,b.p6,D.Hw,v.lW,m.O5,R.X$]}),ie})();const L=["topNav"];function O(ie,Te){if(1&ie){const pe=e.EpF();e.TgZ(0,"perun-web-apps-table-options",7),e.NdJ("exportDisplayedData",function(T){e.CHM(pe);const W=e.oxw();return e.KtG(W.exportDisplayedData.emit(T))})("exportAllData",function(T){e.CHM(pe);const W=e.oxw();return e.KtG(W.exportAllData.emit(T))}),e.qZA()}if(2&ie){const pe=e.oxw();e.Q6J("allowExportAll",pe.allowExportAll)}}function q(ie,Te){if(1&ie){const pe=e.EpF();e.TgZ(0,"perun-web-apps-table-options",7),e.NdJ("exportDisplayedData",function(T){e.CHM(pe);const W=e.oxw();return e.KtG(W.exportDisplayedData.emit(T))})("exportAllData",function(T){e.CHM(pe);const W=e.oxw();return e.KtG(W.exportAllData.emit(T))}),e.qZA()}if(2&ie){const pe=e.oxw();e.Q6J("allowExportAll",pe.allowExportAll)}}const te=["*"];let z=(()=>{class ie{constructor(pe){this.tableConfigService=pe,this.hideExport=!1,this.pageSizeOptions=C.f7,this.dataLength=0,this.allowExportAll=!0,this.exportDisplayedData=new e.vpe,this.exportAllData=new e.vpe,this.pageSize=5}set matPaginator(pe){this.paginator=pe}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),null===this.pageSizeOptions&&(this.pageSize=5),this.paginator._changePageSize(this.pageSize)}pageChangedTop(pe){this.pageSize=pe.pageSize,this.tableConfigService.setTablePageSize(this.tableId,pe.pageSize)}pageChangedBottom(pe){this.paginator.pageSize=pe.pageSize,this.paginator.pageIndex=pe.pageIndex,this.paginator.page.emit(pe),this.pageSize=pe.pageSize,this.tableId&&this.tableConfigService.setTablePageSize(this.tableId,pe.pageSize),this.topNav.nativeElement.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})}}return ie.\u0275fac=function(pe){return new(pe||ie)(e.Y36(M.dB))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["perun-web-apps-table-wrapper"]],viewQuery:function(pe,Le){if(1&pe&&(e.Gf(L,5),e.Gf(A.NW,7)),2&pe){let T;e.iGM(T=e.CRH())&&(Le.topNav=T.first),e.iGM(T=e.CRH())&&(Le.matPaginator=T.first)}},inputs:{hideExport:"hideExport",pageSizeOptions:"pageSizeOptions",dataLength:"dataLength",tableId:"tableId",allowExportAll:"allowExportAll"},outputs:{exportDisplayedData:"exportDisplayedData",exportAllData:"exportAllData"},ngContentSelectors:te,decls:10,vars:9,consts:[[1,"card-body","pt-0"],[1,"row","justify-content-end","align-items-center"],["topNav",""],[3,"length","pageSizeOptions","pageSize","page"],[3,"allowExportAll","exportDisplayedData","exportAllData",4,"ngIf"],[1,"overflow-auto","border-top"],[3,"length","pageIndex","pageSizeOptions","pageSize","page"],[3,"allowExportAll","exportDisplayedData","exportAllData"]],template:function(pe,Le){1&pe&&(e.F$t(),e.TgZ(0,"div",0)(1,"div",1,2)(3,"mat-paginator",3),e.NdJ("page",function(W){return Le.pageChangedTop(W)}),e.qZA(),e.YNc(4,O,1,1,"perun-web-apps-table-options",4),e.qZA(),e.TgZ(5,"div",5),e.Hsn(6),e.qZA(),e.TgZ(7,"div",1)(8,"mat-paginator",6),e.NdJ("page",function(W){return Le.pageChangedBottom(W)}),e.qZA(),e.YNc(9,q,1,1,"perun-web-apps-table-options",4),e.qZA()()),2&pe&&(e.xp6(3),e.Q6J("length",Le.dataLength)("pageSizeOptions",Le.pageSizeOptions)("pageSize",Le.pageSize),e.xp6(1),e.Q6J("ngIf",!Le.hideExport),e.xp6(4),e.Q6J("length",Le.paginator.length)("pageIndex",Le.paginator.pageIndex)("pageSizeOptions",Le.paginator.pageSizeOptions)("pageSize",Le.paginator.pageSize),e.xp6(1),e.Q6J("ngIf",!Le.hideExport))},dependencies:[A.NW,m.O5,w]}),ie})()},98380:(Xe,ue,p)=>{"use strict";p.d(ue,{w:()=>R});var e=p(94650),A=p(97392),C=p(36895);function M(B,w){1&B&&(e.TgZ(0,"mat-icon",2),e._uU(1," info "),e.qZA())}function m(B,w){1&B&&(e.TgZ(0,"mat-icon",2),e._uU(1," warning "),e.qZA())}function b(B,w){1&B&&(e.TgZ(0,"mat-icon",2),e._uU(1," dangerous "),e.qZA())}function D(B,w){1&B&&(e.TgZ(0,"mat-icon",2),e._uU(1," check_circle "),e.qZA())}const v=["*"];let R=(()=>{class B{}return B.\u0275fac=function(L){return new(L||B)},B.\u0275cmp=e.Xpm({type:B,selectors:[["perun-web-apps-alert"]],inputs:{alert_type:"alert_type"},ngContentSelectors:v,decls:6,vars:12,consts:[[1,"perun-alert","d-flex","align-items-flex-start"],["class","perun-alert-icon",4,"ngIf"],[1,"perun-alert-icon"]],template:function(L,O){1&L&&(e.F$t(),e.TgZ(0,"div",0),e.YNc(1,M,2,0,"mat-icon",1),e.YNc(2,m,2,0,"mat-icon",1),e.YNc(3,b,2,0,"mat-icon",1),e.YNc(4,D,2,0,"mat-icon",1),e.Hsn(5),e.qZA()),2&L&&(e.ekj("warn-alert","warn"===O.alert_type)("error-alert","error"===O.alert_type)("success-alert","success"===O.alert_type)("info-alert","info"===O.alert_type),e.xp6(1),e.Q6J("ngIf","info"===O.alert_type),e.xp6(1),e.Q6J("ngIf","warn"===O.alert_type),e.xp6(1),e.Q6J("ngIf","error"===O.alert_type),e.xp6(1),e.Q6J("ngIf","success"===O.alert_type))},dependencies:[A.Hw,C.O5],styles:[".perun-alert[_ngcontent-%COMP%]{position:relative;padding:.75rem 1.25rem;margin-top:1rem;margin-bottom:1rem}.perun-alert.info-alert[_ngcontent-%COMP%]{font-style:italic;color:gray;text-align:left;border:1px #b3b3b3 solid;border-radius:10px}.perun-alert.warn-alert[_ngcontent-%COMP%]{font-weight:700;text-align:left;border:1px #ececec solid;border-radius:10px;background-color:#ececec}.perun-alert-icon[_ngcontent-%COMP%]{padding-right:2rem}.perun-alert.error-alert[_ngcontent-%COMP%]{text-align:left;border:1px #fedcda solid;border-radius:10px;background-color:#fedcda}.perun-alert.success-alert[_ngcontent-%COMP%]{text-align:left;border:1px #d7ffd7 solid;border-radius:10px;background-color:#d7ffd7}"]}),B})()},63189:(Xe,ue,p)=>{"use strict";p.d(ue,{r:()=>M});var e=p(97392),A=p(36895),C=p(94650);let M=(()=>{class m{}return m.\u0275fac=function(D){return new(D||m)},m.\u0275mod=C.oAB({type:m}),m.\u0275inj=C.cJS({imports:[e.Ps,A.ez]}),m})()},60900:(Xe,ue,p)=>{"use strict";p.d(ue,{C:()=>Ne});var e=p(36895),A=p(4859),C=p(73546),M=p(56709),m=p(65412),b=p(44850),D=p(37084),v=p(59549),R=p(94650),B=p(3238);let Ye=(()=>{class Ce{}return Ce.\u0275fac=function(r){return new(r||Ce)},Ce.\u0275mod=R.oAB({type:Ce}),Ce.\u0275inj=R.cJS({imports:[B.uc,B.BQ,B.uc,B.BQ]}),Ce})();var se=p(97392),le=p(284),N=p(51572),k=p(86257),be=p(30671),Z=p(67376),ce=p(24006),xe=p(99602),ot=p(23267),Fe=p(96338),ut=p(28255),tt=p(83683),vt=p(96308),X=p(98739),nt=p(10266),Ae=p(84385),ye=p(3848),_e=p(90455),Se=p(77331);let Ne=(()=>{class Ce{}return Ce.\u0275fac=function(r){return new(r||Ce)},Ce.\u0275mod=R.oAB({type:Ce}),Ce.\u0275inj=R.cJS({imports:[e.ez,C.QW,b.t,D.To,A.ot,Ye,M.p9,se.Ps,be.p0,m.Is,N.Cq,v.lN,le.c,Z.Cl,ce.u5,ce.UX,k.T5,xe.FA,B.XK,ot.SJ,Fe.ie,ut.Tx,tt.g0,vt.JX,X.TU,nt.AV,Ae.LD,B.si,be.p0,_e.rP,Se.Hi,C.QW,b.t,D.To,A.ot,Ye,M.p9,se.Ps,be.p0,m.Is,N.Cq,v.lN,le.c,Z.Cl,ce.u5,ce.UX,k.T5,xe.FA,B.XK,ot.SJ,Fe.ie,ut.Tx,tt.g0,vt.JX,X.TU,nt.AV,Ae.LD,B.si,ye.Nh,_e.rP,Se.Hi]}),Ce})()},71345:Xe=>{var M=.1,m="function"==typeof Float32Array;function b(q,te){return 1-3*te+3*q}function D(q,te){return 3*te-6*q}function v(q){return 3*q}function R(q,te,z){return((b(te,z)*q+D(te,z))*q+v(te))*q}function B(q,te,z){return 3*b(te,z)*q*q+2*D(te,z)*q+v(te)}function O(q){return q}Xe.exports=function(te,z,ie,Te){if(!(0<=te&&te<=1&&0<=ie&&ie<=1))throw new Error("bezier x values must be in [0, 1] range");if(te===z&&ie===Te)return O;for(var pe=m?new Float32Array(11):new Array(11),Le=0;Le<11;++Le)pe[Le]=R(Le*M,te,ie);return function(F){return 0===F?0:1===F?1:R(function T(W){for(var F=0,V=1;10!==V&&pe[V]<=W;++V)F+=M;--V;var Ee=F+(W-pe[V])/(pe[V+1]-pe[V])*M,ge=B(Ee,te,ie);return ge>=.001?function L(q,te,z,ie){for(var Te=0;Te<4;++Te){var pe=B(te,z,ie);if(0===pe)return te;te-=(R(te,z,ie)-q)/pe}return te}(W,Ee,te,ie):0===ge?Ee:function w(q,te,z,ie,Te){var pe,Le,T=0;do{(pe=R(Le=te+(z-te)/2,ie,Te)-q)>0?z=Le:te=Le}while(Math.abs(pe)>1e-7&&++T<10);return Le}(W,F,F+M,te,ie)}(F),z,Te)}}},1302:function(Xe,ue,p){var e;!function(A,C){var M={};!function(A){"use strict";A.__esModule=!0,A.digestLength=32,A.blockSize=64;var C=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function M(O,q,te,z,ie){for(var Te,pe,Le,T,W,F,V,ee,Q,Ee,ge,ve,De;ie>=64;){for(Te=q[0],pe=q[1],Le=q[2],T=q[3],W=q[4],F=q[5],V=q[6],ee=q[7],Ee=0;Ee<16;Ee++)O[Ee]=(255&te[ge=z+4*Ee])<<24|(255&te[ge+1])<<16|(255&te[ge+2])<<8|255&te[ge+3];for(Ee=16;Ee<64;Ee++)O[Ee]=((ve=((Q=O[Ee-2])>>>17|Q<<15)^(Q>>>19|Q<<13)^Q>>>10)+O[Ee-7]|0)+((De=((Q=O[Ee-15])>>>7|Q<<25)^(Q>>>18|Q<<14)^Q>>>3)+O[Ee-16]|0);for(Ee=0;Ee<64;Ee++)ve=(((W>>>6|W<<26)^(W>>>11|W<<21)^(W>>>25|W<<7))+(W&F^~W&V)|0)+(ee+(C[Ee]+O[Ee]|0)|0)|0,De=((Te>>>2|Te<<30)^(Te>>>13|Te<<19)^(Te>>>22|Te<<10))+(Te&pe^Te&Le^pe&Le)|0,ee=V,V=F,F=W,W=T+ve|0,T=Le,Le=pe,pe=Te,Te=ve+De|0;q[0]+=Te,q[1]+=pe,q[2]+=Le,q[3]+=T,q[4]+=W,q[5]+=F,q[6]+=V,q[7]+=ee,z+=64,ie-=64}return z}var m=function(){function O(){this.digestLength=A.digestLength,this.blockSize=A.blockSize,this.state=new Int32Array(8),this.temp=new Int32Array(64),this.buffer=new Uint8Array(128),this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this.reset()}return O.prototype.reset=function(){return this.state[0]=1779033703,this.state[1]=3144134277,this.state[2]=1013904242,this.state[3]=2773480762,this.state[4]=1359893119,this.state[5]=2600822924,this.state[6]=528734635,this.state[7]=1541459225,this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this},O.prototype.clean=function(){for(var q=0;q0){for(;this.bufferLength<64&&te>0;)this.buffer[this.bufferLength++]=q[z++],te--;64===this.bufferLength&&(M(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(te>=64&&(z=M(this.temp,this.state,q,z,te),te%=64);te>0;)this.buffer[this.bufferLength++]=q[z++],te--;return this},O.prototype.finish=function(q){if(!this.finished){var te=this.bytesHashed,z=this.bufferLength,ie=te/536870912|0,Te=te<<3,pe=te%64<56?64:128;this.buffer[z]=128;for(var Le=z+1;Le>>24&255,this.buffer[pe-7]=ie>>>16&255,this.buffer[pe-6]=ie>>>8&255,this.buffer[pe-5]=ie>>>0&255,this.buffer[pe-4]=Te>>>24&255,this.buffer[pe-3]=Te>>>16&255,this.buffer[pe-2]=Te>>>8&255,this.buffer[pe-1]=Te>>>0&255,M(this.temp,this.state,this.buffer,0,pe),this.finished=!0}for(Le=0;Le<8;Le++)q[4*Le+0]=this.state[Le]>>>24&255,q[4*Le+1]=this.state[Le]>>>16&255,q[4*Le+2]=this.state[Le]>>>8&255,q[4*Le+3]=this.state[Le]>>>0&255;return this},O.prototype.digest=function(){var q=new Uint8Array(this.digestLength);return this.finish(q),q},O.prototype._saveState=function(q){for(var te=0;tethis.blockSize)(new m).update(q).finish(te).clean();else for(var z=0;z1&&q.update(O),te&&q.update(te),q.update(z),q.finish(O),z[0]++}A.HMAC=b,A.hash=D,A.default=D,A.hmac=v;var B=new Uint8Array(A.digestLength);A.hkdf=function w(O,q,te,z){void 0===q&&(q=B),void 0===z&&(z=32);for(var ie=new Uint8Array([1]),Te=v(q,O),pe=new b(Te),Le=new Uint8Array(pe.digestLength),T=Le.length,W=new Uint8Array(z),F=0;F>>24&255,pe[1]=V>>>16&255,pe[2]=V>>>8&255,pe[3]=V>>>0&255,ie.reset(),ie.update(q),ie.update(pe),ie.finish(T);for(var ee=0;ee=w.status}function b(B){try{B.dispatchEvent(new MouseEvent("click"))}catch{var w=document.createEvent("MouseEvents");w.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),B.dispatchEvent(w)}}var D="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,v=D.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),R=D.saveAs||("object"!=typeof window||window!==D?function(){}:"download"in HTMLAnchorElement.prototype&&!v?function(B,w,L){var O=D.URL||D.webkitURL,q=document.createElement("a");q.download=w=w||B.name||"download",q.rel="noopener","string"==typeof B?(q.href=B,q.origin===location.origin?b(q):m(q.href)?M(B,w,L):b(q,q.target="_blank")):(q.href=O.createObjectURL(B),setTimeout(function(){O.revokeObjectURL(q.href)},4e4),setTimeout(function(){b(q)},0))}:"msSaveOrOpenBlob"in navigator?function(B,w,L){if(w=w||B.name||"download","string"!=typeof B)navigator.msSaveOrOpenBlob(function C(B,w){return typeof w>"u"?w={autoBom:!1}:"object"!=typeof w&&(console.warn("Deprecated: Expected third argument to be a object"),w={autoBom:!w}),w.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(B.type)?new Blob(["\ufeff",B],{type:B.type}):B}(B,L),w);else if(m(B))M(B,w,L);else{var O=document.createElement("a");O.href=B,O.target="_blank",setTimeout(function(){b(O)})}}:function(B,w,L,O){if((O=O||open("","_blank"))&&(O.document.title=O.document.body.innerText="downloading..."),"string"==typeof B)return M(B,w,L);var q="application/octet-stream"===B.type,te=/constructor/i.test(D.HTMLElement)||D.safari,z=/CriOS\/[\d]+/.test(navigator.userAgent);if((z||q&&te||v)&&typeof FileReader<"u"){var ie=new FileReader;ie.onloadend=function(){var Le=ie.result;Le=z?Le:Le.replace(/^data:[^;]*;/,"data:attachment/file;"),O?O.location.href=Le:location=Le,O=null},ie.readAsDataURL(B)}else{var Te=D.URL||D.webkitURL,pe=Te.createObjectURL(B);O?O.location=pe:location.href=pe,O=null,setTimeout(function(){Te.revokeObjectURL(pe)},4e4)}});D.saveAs=R.saveAs=R,Xe.exports=R}.apply(ue,[]))&&(Xe.exports=A)},61135:(Xe,ue,p)=>{"use strict";p.d(ue,{X:()=>A});var e=p(77579);class A extends e.x{constructor(M){super(),this._value=M}get value(){return this.getValue()}_subscribe(M){const m=super._subscribe(M);return!m.closed&&M.next(this._value),m}getValue(){const{hasError:M,thrownError:m,_value:b}=this;if(M)throw m;return this._throwIfClosed(),b}next(M){super.next(this._value=M)}}},69751:(Xe,ue,p)=>{"use strict";p.d(ue,{y:()=>v});var e=p(70930),A=p(50727),C=p(48822),M=p(89635),m=p(42416),b=p(30576),D=p(72806);let v=(()=>{class L{constructor(q){q&&(this._subscribe=q)}lift(q){const te=new L;return te.source=this,te.operator=q,te}subscribe(q,te,z){const ie=function w(L){return L&&L instanceof e.Lv||function B(L){return L&&(0,b.m)(L.next)&&(0,b.m)(L.error)&&(0,b.m)(L.complete)}(L)&&(0,A.Nn)(L)}(q)?q:new e.Hp(q,te,z);return(0,D.x)(()=>{const{operator:Te,source:pe}=this;ie.add(Te?Te.call(ie,pe):pe?this._subscribe(ie):this._trySubscribe(ie))}),ie}_trySubscribe(q){try{return this._subscribe(q)}catch(te){q.error(te)}}forEach(q,te){return new(te=R(te))((z,ie)=>{const Te=new e.Hp({next:pe=>{try{q(pe)}catch(Le){ie(Le),Te.unsubscribe()}},error:ie,complete:z});this.subscribe(Te)})}_subscribe(q){var te;return null===(te=this.source)||void 0===te?void 0:te.subscribe(q)}[C.L](){return this}pipe(...q){return(0,M.U)(q)(this)}toPromise(q){return new(q=R(q))((te,z)=>{let ie;this.subscribe(Te=>ie=Te,Te=>z(Te),()=>te(ie))})}}return L.create=O=>new L(O),L})();function R(L){var O;return null!==(O=L??m.v.Promise)&&void 0!==O?O:Promise}},4707:(Xe,ue,p)=>{"use strict";p.d(ue,{t:()=>C});var e=p(77579),A=p(26063);class C extends e.x{constructor(m=1/0,b=1/0,D=A.l){super(),this._bufferSize=m,this._windowTime=b,this._timestampProvider=D,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=b===1/0,this._bufferSize=Math.max(1,m),this._windowTime=Math.max(1,b)}next(m){const{isStopped:b,_buffer:D,_infiniteTimeWindow:v,_timestampProvider:R,_windowTime:B}=this;b||(D.push(m),!v&&D.push(R.now()+B)),this._trimBuffer(),super.next(m)}_subscribe(m){this._throwIfClosed(),this._trimBuffer();const b=this._innerSubscribe(m),{_infiniteTimeWindow:D,_buffer:v}=this,R=v.slice();for(let B=0;B{"use strict";p.d(ue,{x:()=>D});var e=p(69751),A=p(50727);const M=(0,p(83888).d)(R=>function(){R(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var m=p(38737),b=p(72806);let D=(()=>{class R extends e.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(w){const L=new v(this,this);return L.operator=w,L}_throwIfClosed(){if(this.closed)throw new M}next(w){(0,b.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const L of this.currentObservers)L.next(w)}})}error(w){(0,b.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=w;const{observers:L}=this;for(;L.length;)L.shift().error(w)}})}complete(){(0,b.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:w}=this;for(;w.length;)w.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var w;return(null===(w=this.observers)||void 0===w?void 0:w.length)>0}_trySubscribe(w){return this._throwIfClosed(),super._trySubscribe(w)}_subscribe(w){return this._throwIfClosed(),this._checkFinalizedStatuses(w),this._innerSubscribe(w)}_innerSubscribe(w){const{hasError:L,isStopped:O,observers:q}=this;return L||O?A.Lc:(this.currentObservers=null,q.push(w),new A.w0(()=>{this.currentObservers=null,(0,m.P)(q,w)}))}_checkFinalizedStatuses(w){const{hasError:L,thrownError:O,isStopped:q}=this;L?w.error(O):q&&w.complete()}asObservable(){const w=new e.y;return w.source=this,w}}return R.create=(B,w)=>new v(B,w),R})();class v extends D{constructor(B,w){super(),this.destination=B,this.source=w}next(B){var w,L;null===(L=null===(w=this.destination)||void 0===w?void 0:w.next)||void 0===L||L.call(w,B)}error(B){var w,L;null===(L=null===(w=this.destination)||void 0===w?void 0:w.error)||void 0===L||L.call(w,B)}complete(){var B,w;null===(w=null===(B=this.destination)||void 0===B?void 0:B.complete)||void 0===w||w.call(B)}_subscribe(B){var w,L;return null!==(L=null===(w=this.source)||void 0===w?void 0:w.subscribe(B))&&void 0!==L?L:A.Lc}}},70930:(Xe,ue,p)=>{"use strict";p.d(ue,{Hp:()=>z,Lv:()=>L});var e=p(30576),A=p(50727),C=p(42416),M=p(87849),m=p(25032);const b=R("C",void 0,void 0);function R(T,W,F){return{kind:T,value:W,error:F}}var B=p(43410),w=p(72806);class L extends A.w0{constructor(W){super(),this.isStopped=!1,W?(this.destination=W,(0,A.Nn)(W)&&W.add(this)):this.destination=Le}static create(W,F,V){return new z(W,F,V)}next(W){this.isStopped?pe(function v(T){return R("N",T,void 0)}(W),this):this._next(W)}error(W){this.isStopped?pe(function D(T){return R("E",void 0,T)}(W),this):(this.isStopped=!0,this._error(W))}complete(){this.isStopped?pe(b,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(W){this.destination.next(W)}_error(W){try{this.destination.error(W)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const O=Function.prototype.bind;function q(T,W){return O.call(T,W)}class te{constructor(W){this.partialObserver=W}next(W){const{partialObserver:F}=this;if(F.next)try{F.next(W)}catch(V){ie(V)}}error(W){const{partialObserver:F}=this;if(F.error)try{F.error(W)}catch(V){ie(V)}else ie(W)}complete(){const{partialObserver:W}=this;if(W.complete)try{W.complete()}catch(F){ie(F)}}}class z extends L{constructor(W,F,V){let ee;if(super(),(0,e.m)(W)||!W)ee={next:W??void 0,error:F??void 0,complete:V??void 0};else{let Q;this&&C.v.useDeprecatedNextContext?(Q=Object.create(W),Q.unsubscribe=()=>this.unsubscribe(),ee={next:W.next&&q(W.next,Q),error:W.error&&q(W.error,Q),complete:W.complete&&q(W.complete,Q)}):ee=W}this.destination=new te(ee)}}function ie(T){C.v.useDeprecatedSynchronousErrorHandling?(0,w.O)(T):(0,M.h)(T)}function pe(T,W){const{onStoppedNotification:F}=C.v;F&&B.z.setTimeout(()=>F(T,W))}const Le={closed:!0,next:m.Z,error:function Te(T){throw T},complete:m.Z}},50727:(Xe,ue,p)=>{"use strict";p.d(ue,{Lc:()=>b,w0:()=>m,Nn:()=>D});var e=p(30576);const C=(0,p(83888).d)(R=>function(w){R(this),this.message=w?`${w.length} errors occurred during unsubscription:\n${w.map((L,O)=>`${O+1}) ${L.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=w});var M=p(38737);class m{constructor(B){this.initialTeardown=B,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let B;if(!this.closed){this.closed=!0;const{_parentage:w}=this;if(w)if(this._parentage=null,Array.isArray(w))for(const q of w)q.remove(this);else w.remove(this);const{initialTeardown:L}=this;if((0,e.m)(L))try{L()}catch(q){B=q instanceof C?q.errors:[q]}const{_finalizers:O}=this;if(O){this._finalizers=null;for(const q of O)try{v(q)}catch(te){B=B??[],te instanceof C?B=[...B,...te.errors]:B.push(te)}}if(B)throw new C(B)}}add(B){var w;if(B&&B!==this)if(this.closed)v(B);else{if(B instanceof m){if(B.closed||B._hasParent(this))return;B._addParent(this)}(this._finalizers=null!==(w=this._finalizers)&&void 0!==w?w:[]).push(B)}}_hasParent(B){const{_parentage:w}=this;return w===B||Array.isArray(w)&&w.includes(B)}_addParent(B){const{_parentage:w}=this;this._parentage=Array.isArray(w)?(w.push(B),w):w?[w,B]:B}_removeParent(B){const{_parentage:w}=this;w===B?this._parentage=null:Array.isArray(w)&&(0,M.P)(w,B)}remove(B){const{_finalizers:w}=this;w&&(0,M.P)(w,B),B instanceof m&&B._removeParent(this)}}m.EMPTY=(()=>{const R=new m;return R.closed=!0,R})();const b=m.EMPTY;function D(R){return R instanceof m||R&&"closed"in R&&(0,e.m)(R.remove)&&(0,e.m)(R.add)&&(0,e.m)(R.unsubscribe)}function v(R){(0,e.m)(R)?R():R.unsubscribe()}},42416:(Xe,ue,p)=>{"use strict";p.d(ue,{v:()=>e});const e={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},83905:(Xe,ue,p)=>{"use strict";p.d(ue,{z:()=>C});var e=p(86805),A=p(70930);function C(M,m){const b="object"==typeof m;return new Promise((D,v)=>{const R=new A.Hp({next:B=>{D(B),R.unsubscribe()},error:v,complete:()=>{b?D(m.defaultValue):v(new e.K)}});M.subscribe(R)})}},39841:(Xe,ue,p)=>{"use strict";p.d(ue,{a:()=>B});var e=p(69751),A=p(54742),C=p(32076),M=p(44671),m=p(83268),b=p(63269),D=p(31810),v=p(25403),R=p(39672);function B(...O){const q=(0,b.yG)(O),te=(0,b.jO)(O),{args:z,keys:ie}=(0,A.D)(O);if(0===z.length)return(0,C.D)([],q);const Te=new e.y(function w(O,q,te=M.y){return z=>{L(q,()=>{const{length:ie}=O,Te=new Array(ie);let pe=ie,Le=ie;for(let T=0;T{const W=(0,C.D)(O[T],q);let F=!1;W.subscribe((0,v.x)(z,V=>{Te[T]=V,F||(F=!0,Le--),Le||z.next(te(Te.slice()))},()=>{--pe||z.complete()}))},z)},z)}}(z,q,ie?pe=>(0,D.n)(ie,pe):M.y));return te?Te.pipe((0,m.Z)(te)):Te}function L(O,q,te){O?(0,R.f)(te,O,q):q()}},97272:(Xe,ue,p)=>{"use strict";p.d(ue,{z:()=>m});var e=p(8189),C=p(63269),M=p(32076);function m(...b){return function A(){return(0,e.J)(1)}()((0,M.D)(b,(0,C.yG)(b)))}},49770:(Xe,ue,p)=>{"use strict";p.d(ue,{P:()=>C});var e=p(69751),A=p(38421);function C(M){return new e.y(m=>{(0,A.Xf)(M()).subscribe(m)})}},60515:(Xe,ue,p)=>{"use strict";p.d(ue,{E:()=>A});const A=new(p(69751).y)(m=>m.complete())},4128:(Xe,ue,p)=>{"use strict";p.d(ue,{D:()=>v});var e=p(69751),A=p(54742),C=p(38421),M=p(63269),m=p(25403),b=p(83268),D=p(31810);function v(...R){const B=(0,M.jO)(R),{args:w,keys:L}=(0,A.D)(R),O=new e.y(q=>{const{length:te}=w;if(!te)return void q.complete();const z=new Array(te);let ie=te,Te=te;for(let pe=0;pe{Le||(Le=!0,Te--),z[pe]=T},()=>ie--,void 0,()=>{(!ie||!Le)&&(Te||q.next(L?(0,D.n)(L,z):z),q.complete())}))}});return B?O.pipe((0,b.Z)(B)):O}},32076:(Xe,ue,p)=>{"use strict";p.d(ue,{D:()=>V});var e=p(38421),A=p(39672),C=p(54482),M=p(25403);function m(ee,Q=0){return(0,C.e)((Ee,ge)=>{Ee.subscribe((0,M.x)(ge,ve=>(0,A.f)(ge,ee,()=>ge.next(ve),Q),()=>(0,A.f)(ge,ee,()=>ge.complete(),Q),ve=>(0,A.f)(ge,ee,()=>ge.error(ve),Q)))})}function b(ee,Q=0){return(0,C.e)((Ee,ge)=>{ge.add(ee.schedule(()=>Ee.subscribe(ge),Q))})}var R=p(69751),w=p(2202),L=p(30576);function q(ee,Q){if(!ee)throw new Error("Iterable cannot be null");return new R.y(Ee=>{(0,A.f)(Ee,Q,()=>{const ge=ee[Symbol.asyncIterator]();(0,A.f)(Ee,Q,()=>{ge.next().then(ve=>{ve.done?Ee.complete():Ee.next(ve.value)})},0,!0)})})}var te=p(93670),z=p(28239),ie=p(81144),Te=p(26495),pe=p(12206),Le=p(44532),T=p(53260);function V(ee,Q){return Q?function F(ee,Q){if(null!=ee){if((0,te.c)(ee))return function D(ee,Q){return(0,e.Xf)(ee).pipe(b(Q),m(Q))}(ee,Q);if((0,ie.z)(ee))return function B(ee,Q){return new R.y(Ee=>{let ge=0;return Q.schedule(function(){ge===ee.length?Ee.complete():(Ee.next(ee[ge++]),Ee.closed||this.schedule())})})}(ee,Q);if((0,z.t)(ee))return function v(ee,Q){return(0,e.Xf)(ee).pipe(b(Q),m(Q))}(ee,Q);if((0,pe.D)(ee))return q(ee,Q);if((0,Te.T)(ee))return function O(ee,Q){return new R.y(Ee=>{let ge;return(0,A.f)(Ee,Q,()=>{ge=ee[w.h](),(0,A.f)(Ee,Q,()=>{let ve,De;try{({value:ve,done:De}=ge.next())}catch(he){return void Ee.error(he)}De?Ee.complete():Ee.next(ve)},0,!0)}),()=>(0,L.m)(ge?.return)&&ge.return()})}(ee,Q);if((0,T.L)(ee))return function W(ee,Q){return q((0,T.Q)(ee),Q)}(ee,Q)}throw(0,Le.z)(ee)}(ee,Q):(0,e.Xf)(ee)}},54968:(Xe,ue,p)=>{"use strict";p.d(ue,{R:()=>B});var e=p(38421),A=p(69751),C=p(86099),M=p(81144),m=p(30576),b=p(83268);const D=["addListener","removeListener"],v=["addEventListener","removeEventListener"],R=["on","off"];function B(te,z,ie,Te){if((0,m.m)(ie)&&(Te=ie,ie=void 0),Te)return B(te,z,ie).pipe((0,b.Z)(Te));const[pe,Le]=function q(te){return(0,m.m)(te.addEventListener)&&(0,m.m)(te.removeEventListener)}(te)?v.map(T=>W=>te[T](z,W,ie)):function L(te){return(0,m.m)(te.addListener)&&(0,m.m)(te.removeListener)}(te)?D.map(w(te,z)):function O(te){return(0,m.m)(te.on)&&(0,m.m)(te.off)}(te)?R.map(w(te,z)):[];if(!pe&&(0,M.z)(te))return(0,C.z)(T=>B(T,z,ie))((0,e.Xf)(te));if(!pe)throw new TypeError("Invalid event target");return new A.y(T=>{const W=(...F)=>T.next(1Le(W)})}function w(te,z){return ie=>Te=>te[ie](z,Te)}},48382:(Xe,ue,p)=>{"use strict";p.d(ue,{s:()=>A});var e=p(49770);function A(C,M,m){return(0,e.P)(()=>C()?M:m)}},38421:(Xe,ue,p)=>{"use strict";p.d(ue,{Xf:()=>O});var e=p(70655),A=p(81144),C=p(28239),M=p(69751),m=p(93670),b=p(12206),D=p(44532),v=p(26495),R=p(53260),B=p(30576),w=p(87849),L=p(48822);function O(T){if(T instanceof M.y)return T;if(null!=T){if((0,m.c)(T))return function q(T){return new M.y(W=>{const F=T[L.L]();if((0,B.m)(F.subscribe))return F.subscribe(W);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(T);if((0,A.z)(T))return function te(T){return new M.y(W=>{for(let F=0;F{T.then(F=>{W.closed||(W.next(F),W.complete())},F=>W.error(F)).then(null,w.h)})}(T);if((0,b.D)(T))return Te(T);if((0,v.T)(T))return function ie(T){return new M.y(W=>{for(const F of T)if(W.next(F),W.closed)return;W.complete()})}(T);if((0,R.L)(T))return function pe(T){return Te((0,R.Q)(T))}(T)}throw(0,D.z)(T)}function Te(T){return new M.y(W=>{(function Le(T,W){var F,V,ee,Q;return(0,e.mG)(this,void 0,void 0,function*(){try{for(F=(0,e.KL)(T);!(V=yield F.next()).done;)if(W.next(V.value),W.closed)return}catch(Ee){ee={error:Ee}}finally{try{V&&!V.done&&(Q=F.return)&&(yield Q.call(F))}finally{if(ee)throw ee.error}}W.complete()})})(T,W).catch(F=>W.error(F))})}},17445:(Xe,ue,p)=>{"use strict";p.d(ue,{F:()=>C});var e=p(34986),A=p(82805);function C(M=0,m=e.z){return M<0&&(M=0),(0,A.H)(M,M,m)}},56451:(Xe,ue,p)=>{"use strict";p.d(ue,{T:()=>b});var e=p(8189),A=p(38421),C=p(60515),M=p(63269),m=p(32076);function b(...D){const v=(0,M.yG)(D),R=(0,M._6)(D,1/0),B=D;return B.length?1===B.length?(0,A.Xf)(B[0]):(0,e.J)(R)((0,m.D)(B,v)):C.E}},39646:(Xe,ue,p)=>{"use strict";p.d(ue,{of:()=>C});var e=p(63269),A=p(32076);function C(...M){const m=(0,e.yG)(M);return(0,A.D)(M,m)}},54355:(Xe,ue,p)=>{"use strict";p.d(ue,{S:()=>m});var e=p(69751),A=p(38421),C=p(75797),M=p(25403);function m(...D){return 1===(D=(0,C.k)(D)).length?(0,A.Xf)(D[0]):new e.y(function b(D){return v=>{let R=[];for(let B=0;R&&!v.closed&&B{if(R){for(let L=0;L{"use strict";p.d(ue,{_:()=>C});var e=p(69751),A=p(30576);function C(M,m){const b=(0,A.m)(M)?M:()=>M,D=v=>v.error(b());return new e.y(m?v=>m.schedule(D,0,v):D)}},82805:(Xe,ue,p)=>{"use strict";p.d(ue,{H:()=>m});var e=p(69751),A=p(34986),C=p(93532),M=p(51165);function m(b=0,D,v=A.P){let R=-1;return null!=D&&((0,C.K)(D)?v=D:R=D),new e.y(B=>{let w=(0,M.q)(b)?+b-v.now():b;w<0&&(w=0);let L=0;return v.schedule(function(){B.closed||(B.next(L++),0<=R?this.schedule(void 0,R):B.complete())},w)})}},25403:(Xe,ue,p)=>{"use strict";p.d(ue,{x:()=>A});var e=p(70930);function A(M,m,b,D,v){return new C(M,m,b,D,v)}class C extends e.Lv{constructor(m,b,D,v,R,B){super(m),this.onFinalize=R,this.shouldUnsubscribe=B,this._next=b?function(w){try{b(w)}catch(L){m.error(L)}}:super._next,this._error=v?function(w){try{v(w)}catch(L){m.error(L)}finally{this.unsubscribe()}}:super._error,this._complete=D?function(){try{D()}catch(w){m.error(w)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var m;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:b}=this;super.unsubscribe(),!b&&(null===(m=this.onFinalize)||void 0===m||m.call(this))}}}},23601:(Xe,ue,p)=>{"use strict";p.d(ue,{e:()=>D});var e=p(34986),A=p(54482),C=p(38421),M=p(25403),b=p(82805);function D(v,R=e.z){return function m(v){return(0,A.e)((R,B)=>{let w=!1,L=null,O=null,q=!1;const te=()=>{if(O?.unsubscribe(),O=null,w){w=!1;const ie=L;L=null,B.next(ie)}q&&B.complete()},z=()=>{O=null,q&&B.complete()};R.subscribe((0,M.x)(B,ie=>{w=!0,L=ie,O||(0,C.Xf)(v(ie)).subscribe(O=(0,M.x)(B,te,z))},()=>{q=!0,(!w||!O||O.closed)&&B.complete()}))})}(()=>(0,b.H)(v,R))}},70262:(Xe,ue,p)=>{"use strict";p.d(ue,{K:()=>M});var e=p(38421),A=p(25403),C=p(54482);function M(m){return(0,C.e)((b,D)=>{let B,v=null,R=!1;v=b.subscribe((0,A.x)(D,void 0,void 0,w=>{B=(0,e.Xf)(m(w,M(m)(b))),v?(v.unsubscribe(),v=null,B.subscribe(D)):R=!0})),R&&(v.unsubscribe(),v=null,B.subscribe(D))})}},24351:(Xe,ue,p)=>{"use strict";p.d(ue,{b:()=>C});var e=p(86099),A=p(30576);function C(M,m){return(0,A.m)(m)?(0,e.z)(M,m,1):(0,e.z)(M,1)}},78372:(Xe,ue,p)=>{"use strict";p.d(ue,{b:()=>M});var e=p(34986),A=p(54482),C=p(25403);function M(m,b=e.z){return(0,A.e)((D,v)=>{let R=null,B=null,w=null;const L=()=>{if(R){R.unsubscribe(),R=null;const q=B;B=null,v.next(q)}};function O(){const q=w+m,te=b.now();if(te{B=q,w=b.now(),R||(R=b.schedule(O,m),v.add(R))},()=>{L(),v.complete()},void 0,()=>{B=R=null}))})}},46590:(Xe,ue,p)=>{"use strict";p.d(ue,{d:()=>C});var e=p(54482),A=p(25403);function C(M){return(0,e.e)((m,b)=>{let D=!1;m.subscribe((0,A.x)(b,v=>{D=!0,b.next(v)},()=>{D||b.next(M),b.complete()}))})}},91005:(Xe,ue,p)=>{"use strict";p.d(ue,{g:()=>L});var e=p(34986),A=p(97272),C=p(95698),M=p(54482),m=p(25403),b=p(25032),v=p(69718),R=p(86099);function B(O,q){return q?te=>(0,A.z)(q.pipe((0,C.q)(1),function D(){return(0,M.e)((O,q)=>{O.subscribe((0,m.x)(q,b.Z))})}()),te.pipe(B(O))):(0,R.z)((te,z)=>O(te,z).pipe((0,C.q)(1),(0,v.h)(te)))}var w=p(82805);function L(O,q=e.z){const te=(0,w.H)(O,q);return B(()=>te)}},71884:(Xe,ue,p)=>{"use strict";p.d(ue,{x:()=>M});var e=p(44671),A=p(54482),C=p(25403);function M(b,D=e.y){return b=b??m,(0,A.e)((v,R)=>{let B,w=!0;v.subscribe((0,C.x)(R,L=>{const O=D(L);(w||!b(B,O))&&(w=!1,B=O,R.next(L))}))})}function m(b,D){return b===D}},39300:(Xe,ue,p)=>{"use strict";p.d(ue,{h:()=>C});var e=p(54482),A=p(25403);function C(M,m){return(0,e.e)((b,D)=>{let v=0;b.subscribe((0,A.x)(D,R=>M.call(m,R,v++)&&D.next(R)))})}},28746:(Xe,ue,p)=>{"use strict";p.d(ue,{x:()=>A});var e=p(54482);function A(C){return(0,e.e)((M,m)=>{try{M.subscribe(m)}finally{m.add(C)}})}},50590:(Xe,ue,p)=>{"use strict";p.d(ue,{P:()=>D});var e=p(86805),A=p(39300),C=p(95698),M=p(46590),m=p(18068),b=p(44671);function D(v,R){const B=arguments.length>=2;return w=>w.pipe(v?(0,A.h)((L,O)=>v(L,O,w)):b.y,(0,C.q)(1),B?(0,M.d)(R):(0,m.T)(()=>new e.K))}},54004:(Xe,ue,p)=>{"use strict";p.d(ue,{U:()=>C});var e=p(54482),A=p(25403);function C(M,m){return(0,e.e)((b,D)=>{let v=0;b.subscribe((0,A.x)(D,R=>{D.next(M.call(m,R,v++))}))})}},69718:(Xe,ue,p)=>{"use strict";p.d(ue,{h:()=>A});var e=p(54004);function A(C){return(0,e.U)(()=>C)}},8189:(Xe,ue,p)=>{"use strict";p.d(ue,{J:()=>C});var e=p(86099),A=p(44671);function C(M=1/0){return(0,e.z)(A.y,M)}},72733:(Xe,ue,p)=>{"use strict";p.d(ue,{p:()=>M});var e=p(38421),A=p(39672),C=p(25403);function M(m,b,D,v,R,B,w,L){const O=[];let q=0,te=0,z=!1;const ie=()=>{z&&!O.length&&!q&&b.complete()},Te=Le=>q{B&&b.next(Le),q++;let T=!1;(0,e.Xf)(D(Le,te++)).subscribe((0,C.x)(b,W=>{R?.(W),B?Te(W):b.next(W)},()=>{T=!0},void 0,()=>{if(T)try{for(q--;O.length&&qpe(W)):pe(W)}ie()}catch(W){b.error(W)}}))};return m.subscribe((0,C.x)(b,Te,()=>{z=!0,ie()})),()=>{L?.()}}},86099:(Xe,ue,p)=>{"use strict";p.d(ue,{z:()=>b});var e=p(54004),A=p(38421),C=p(54482),M=p(72733),m=p(30576);function b(D,v,R=1/0){return(0,m.m)(v)?b((B,w)=>(0,e.U)((L,O)=>v(B,L,w,O))((0,A.Xf)(D(B,w))),R):("number"==typeof v&&(R=v),(0,C.e)((B,w)=>(0,M.p)(B,w,D,R)))}},11520:(Xe,ue,p)=>{"use strict";p.d(ue,{G:()=>C});var e=p(54482),A=p(25403);function C(){return(0,e.e)((M,m)=>{let b,D=!1;M.subscribe((0,A.x)(m,v=>{const R=b;b=v,D&&m.next([R,v]),D=!0}))})}},57359:(Xe,ue,p)=>{"use strict";p.d(ue,{U:()=>A});var e=p(25403);function A(C,M,m,b,D){return(v,R)=>{let B=m,w=M,L=0;v.subscribe((0,e.x)(R,O=>{const q=L++;w=B?C(w,O,q):(B=!0,O),b&&R.next(w)},D&&(()=>{B&&R.next(w),R.complete()})))}}},13099:(Xe,ue,p)=>{"use strict";p.d(ue,{B:()=>m});var e=p(38421),A=p(77579),C=p(70930),M=p(54482);function m(D={}){const{connector:v=(()=>new A.x),resetOnError:R=!0,resetOnComplete:B=!0,resetOnRefCountZero:w=!0}=D;return L=>{let O,q,te,z=0,ie=!1,Te=!1;const pe=()=>{q?.unsubscribe(),q=void 0},Le=()=>{pe(),O=te=void 0,ie=Te=!1},T=()=>{const W=O;Le(),W?.unsubscribe()};return(0,M.e)((W,F)=>{z++,!Te&&!ie&&pe();const V=te=te??v();F.add(()=>{z--,0===z&&!Te&&!ie&&(q=b(T,w))}),V.subscribe(F),!O&&z>0&&(O=new C.Hp({next:ee=>V.next(ee),error:ee=>{Te=!0,pe(),q=b(Le,R,ee),V.error(ee)},complete:()=>{ie=!0,pe(),q=b(Le,B),V.complete()}}),(0,e.Xf)(W).subscribe(O))})(L)}}function b(D,v,...R){if(!0===v)return void D();if(!1===v)return;const B=new C.Hp({next:()=>{B.unsubscribe(),D()}});return v(...R).subscribe(B)}},34782:(Xe,ue,p)=>{"use strict";p.d(ue,{d:()=>C});var e=p(4707),A=p(13099);function C(M,m,b){let D,v=!1;return M&&"object"==typeof M?({bufferSize:D=1/0,windowTime:m=1/0,refCount:v=!1,scheduler:b}=M):D=M??1/0,(0,A.B)({connector:()=>new e.t(D,m,b),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:v})}},35684:(Xe,ue,p)=>{"use strict";p.d(ue,{T:()=>A});var e=p(39300);function A(C){return(0,e.h)((M,m)=>C<=m)}},68675:(Xe,ue,p)=>{"use strict";p.d(ue,{O:()=>M});var e=p(97272),A=p(63269),C=p(54482);function M(...m){const b=(0,A.yG)(m);return(0,C.e)((D,v)=>{(b?(0,e.z)(m,D,b):(0,e.z)(m,D)).subscribe(v)})}},63900:(Xe,ue,p)=>{"use strict";p.d(ue,{w:()=>M});var e=p(38421),A=p(54482),C=p(25403);function M(m,b){return(0,A.e)((D,v)=>{let R=null,B=0,w=!1;const L=()=>w&&!R&&v.complete();D.subscribe((0,C.x)(v,O=>{R?.unsubscribe();let q=0;const te=B++;(0,e.Xf)(m(O,te)).subscribe(R=(0,C.x)(v,z=>v.next(b?b(O,z,te,q++):z),()=>{R=null,L()}))},()=>{w=!0,L()}))})}},95698:(Xe,ue,p)=>{"use strict";p.d(ue,{q:()=>M});var e=p(60515),A=p(54482),C=p(25403);function M(m){return m<=0?()=>e.E:(0,A.e)((b,D)=>{let v=0;b.subscribe((0,C.x)(D,R=>{++v<=m&&(D.next(R),m<=v&&D.complete())}))})}},82722:(Xe,ue,p)=>{"use strict";p.d(ue,{R:()=>m});var e=p(54482),A=p(25403),C=p(38421),M=p(25032);function m(b){return(0,e.e)((D,v)=>{(0,C.Xf)(b).subscribe((0,A.x)(v,()=>v.complete(),M.Z)),!v.closed&&D.subscribe(v)})}},22529:(Xe,ue,p)=>{"use strict";p.d(ue,{o:()=>C});var e=p(54482),A=p(25403);function C(M,m=!1){return(0,e.e)((b,D)=>{let v=0;b.subscribe((0,A.x)(D,R=>{const B=M(R,v++);(B||m)&&D.next(R),!B&&D.complete()}))})}},18505:(Xe,ue,p)=>{"use strict";p.d(ue,{b:()=>m});var e=p(30576),A=p(54482),C=p(25403),M=p(44671);function m(b,D,v){const R=(0,e.m)(b)||D||v?{next:b,error:D,complete:v}:b;return R?(0,A.e)((B,w)=>{var L;null===(L=R.subscribe)||void 0===L||L.call(R);let O=!0;B.subscribe((0,C.x)(w,q=>{var te;null===(te=R.next)||void 0===te||te.call(R,q),w.next(q)},()=>{var q;O=!1,null===(q=R.complete)||void 0===q||q.call(R),w.complete()},q=>{var te;O=!1,null===(te=R.error)||void 0===te||te.call(R,q),w.error(q)},()=>{var q,te;O&&(null===(q=R.unsubscribe)||void 0===q||q.call(R)),null===(te=R.finalize)||void 0===te||te.call(R)}))}):M.y}},18068:(Xe,ue,p)=>{"use strict";p.d(ue,{T:()=>M});var e=p(86805),A=p(54482),C=p(25403);function M(b=m){return(0,A.e)((D,v)=>{let R=!1;D.subscribe((0,C.x)(v,B=>{R=!0,v.next(B)},()=>R?v.complete():v.error(b())))})}function m(){return new e.K}},17414:(Xe,ue,p)=>{"use strict";p.d(ue,{V:()=>R});var e=p(34986),A=p(51165),C=p(54482),M=p(38421),m=p(83888),b=p(25403),D=p(39672);const v=(0,m.d)(w=>function(O=null){w(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=O});function R(w,L){const{first:O,each:q,with:te=B,scheduler:z=L??e.z,meta:ie=null}=(0,A.q)(w)?{first:w}:"number"==typeof w?{each:w}:w;if(null==O&&null==q)throw new TypeError("No timeout provided.");return(0,C.e)((Te,pe)=>{let Le,T,W=null,F=0;const V=ee=>{T=(0,D.f)(pe,z,()=>{try{Le.unsubscribe(),(0,M.Xf)(te({meta:ie,lastValue:W,seen:F})).subscribe(pe)}catch(Q){pe.error(Q)}},ee)};Le=Te.subscribe((0,b.x)(pe,ee=>{T?.unsubscribe(),F++,pe.next(W=ee),q>0&&V(q)},void 0,void 0,()=>{T?.closed||T?.unsubscribe(),W=null})),!F&&V(null!=O?"number"==typeof O?O:+O-z.now():q)})}function B(w){throw new v(w)}},84408:(Xe,ue,p)=>{"use strict";p.d(ue,{o:()=>m});var e=p(50727);class A extends e.w0{constructor(D,v){super()}schedule(D,v=0){return this}}const C={setInterval(b,D,...v){const{delegate:R}=C;return R?.setInterval?R.setInterval(b,D,...v):setInterval(b,D,...v)},clearInterval(b){const{delegate:D}=C;return(D?.clearInterval||clearInterval)(b)},delegate:void 0};var M=p(38737);class m extends A{constructor(D,v){super(D,v),this.scheduler=D,this.work=v,this.pending=!1}schedule(D,v=0){if(this.closed)return this;this.state=D;const R=this.id,B=this.scheduler;return null!=R&&(this.id=this.recycleAsyncId(B,R,v)),this.pending=!0,this.delay=v,this.id=this.id||this.requestAsyncId(B,this.id,v),this}requestAsyncId(D,v,R=0){return C.setInterval(D.flush.bind(D,this),R)}recycleAsyncId(D,v,R=0){if(null!=R&&this.delay===R&&!1===this.pending)return v;C.clearInterval(v)}execute(D,v){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const R=this._execute(D,v);if(R)return R;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(D,v){let B,R=!1;try{this.work(D)}catch(w){R=!0,B=w||new Error("Scheduled action threw falsy error")}if(R)return this.unsubscribe(),B}unsubscribe(){if(!this.closed){const{id:D,scheduler:v}=this,{actions:R}=v;this.work=this.state=this.scheduler=null,this.pending=!1,(0,M.P)(R,this),null!=D&&(this.id=this.recycleAsyncId(v,D,null)),this.delay=null,super.unsubscribe()}}}},97565:(Xe,ue,p)=>{"use strict";p.d(ue,{v:()=>C});var e=p(26063);class A{constructor(m,b=A.now){this.schedulerActionCtor=m,this.now=b}schedule(m,b=0,D){return new this.schedulerActionCtor(this,m).schedule(D,b)}}A.now=e.l.now;class C extends A{constructor(m,b=A.now){super(m,b),this.actions=[],this._active=!1,this._scheduled=void 0}flush(m){const{actions:b}=this;if(this._active)return void b.push(m);let D;this._active=!0;do{if(D=m.execute(m.state,m.delay))break}while(m=b.shift());if(this._active=!1,D){for(;m=b.shift();)m.unsubscribe();throw D}}}},66406:(Xe,ue,p)=>{"use strict";p.d(ue,{Z:()=>D});var e=p(84408),A=p(50727);const C={schedule(R){let B=requestAnimationFrame,w=cancelAnimationFrame;const{delegate:L}=C;L&&(B=L.requestAnimationFrame,w=L.cancelAnimationFrame);const O=B(q=>{w=void 0,R(q)});return new A.w0(()=>w?.(O))},requestAnimationFrame(...R){const{delegate:B}=C;return(B?.requestAnimationFrame||requestAnimationFrame)(...R)},cancelAnimationFrame(...R){const{delegate:B}=C;return(B?.cancelAnimationFrame||cancelAnimationFrame)(...R)},delegate:void 0};var m=p(97565);const D=new class b extends m.v{flush(B){this._active=!0;const w=this._scheduled;this._scheduled=void 0;const{actions:L}=this;let O;B=B||L.shift();do{if(O=B.execute(B.state,B.delay))break}while((B=L[0])&&B.id===w&&L.shift());if(this._active=!1,O){for(;(B=L[0])&&B.id===w&&L.shift();)B.unsubscribe();throw O}}}(class M extends e.o{constructor(B,w){super(B,w),this.scheduler=B,this.work=w}requestAsyncId(B,w,L=0){return null!==L&&L>0?super.requestAsyncId(B,w,L):(B.actions.push(this),B._scheduled||(B._scheduled=C.requestAnimationFrame(()=>B.flush(void 0))))}recycleAsyncId(B,w,L=0){if(null!=L&&L>0||null==L&&this.delay>0)return super.recycleAsyncId(B,w,L);B.actions.some(O=>O.id===w)||(C.cancelAnimationFrame(w),B._scheduled=void 0)}})},53101:(Xe,ue,p)=>{"use strict";p.d(ue,{E:()=>q});var e=p(84408);let C,A=1;const M={};function m(z){return z in M&&(delete M[z],!0)}const b={setImmediate(z){const ie=A++;return M[ie]=!0,C||(C=Promise.resolve()),C.then(()=>m(ie)&&z()),ie},clearImmediate(z){m(z)}},{setImmediate:v,clearImmediate:R}=b,B={setImmediate(...z){const{delegate:ie}=B;return(ie?.setImmediate||v)(...z)},clearImmediate(z){const{delegate:ie}=B;return(ie?.clearImmediate||R)(z)},delegate:void 0};var L=p(97565);const q=new class O extends L.v{flush(ie){this._active=!0;const Te=this._scheduled;this._scheduled=void 0;const{actions:pe}=this;let Le;ie=ie||pe.shift();do{if(Le=ie.execute(ie.state,ie.delay))break}while((ie=pe[0])&&ie.id===Te&&pe.shift());if(this._active=!1,Le){for(;(ie=pe[0])&&ie.id===Te&&pe.shift();)ie.unsubscribe();throw Le}}}(class w extends e.o{constructor(ie,Te){super(ie,Te),this.scheduler=ie,this.work=Te}requestAsyncId(ie,Te,pe=0){return null!==pe&&pe>0?super.requestAsyncId(ie,Te,pe):(ie.actions.push(this),ie._scheduled||(ie._scheduled=B.setImmediate(ie.flush.bind(ie,void 0))))}recycleAsyncId(ie,Te,pe=0){if(null!=pe&&pe>0||null==pe&&this.delay>0)return super.recycleAsyncId(ie,Te,pe);ie.actions.some(Le=>Le.id===Te)||(B.clearImmediate(Te),ie._scheduled=void 0)}})},34986:(Xe,ue,p)=>{"use strict";p.d(ue,{P:()=>M,z:()=>C});var e=p(84408);const C=new(p(97565).v)(e.o),M=C},26063:(Xe,ue,p)=>{"use strict";p.d(ue,{l:()=>e});const e={now:()=>(e.delegate||Date).now(),delegate:void 0}},43410:(Xe,ue,p)=>{"use strict";p.d(ue,{z:()=>e});const e={setTimeout(A,C,...M){const{delegate:m}=e;return m?.setTimeout?m.setTimeout(A,C,...M):setTimeout(A,C,...M)},clearTimeout(A){const{delegate:C}=e;return(C?.clearTimeout||clearTimeout)(A)},delegate:void 0}},2202:(Xe,ue,p)=>{"use strict";p.d(ue,{h:()=>A});const A=function e(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},48822:(Xe,ue,p)=>{"use strict";p.d(ue,{L:()=>e});const e="function"==typeof Symbol&&Symbol.observable||"@@observable"},86805:(Xe,ue,p)=>{"use strict";p.d(ue,{K:()=>A});const A=(0,p(83888).d)(C=>function(){C(this),this.name="EmptyError",this.message="no elements in sequence"})},63269:(Xe,ue,p)=>{"use strict";p.d(ue,{_6:()=>b,jO:()=>M,yG:()=>m});var e=p(30576),A=p(93532);function C(D){return D[D.length-1]}function M(D){return(0,e.m)(C(D))?D.pop():void 0}function m(D){return(0,A.K)(C(D))?D.pop():void 0}function b(D,v){return"number"==typeof C(D)?D.pop():v}},54742:(Xe,ue,p)=>{"use strict";p.d(ue,{D:()=>m});const{isArray:e}=Array,{getPrototypeOf:A,prototype:C,keys:M}=Object;function m(D){if(1===D.length){const v=D[0];if(e(v))return{args:v,keys:null};if(function b(D){return D&&"object"==typeof D&&A(D)===C}(v)){const R=M(v);return{args:R.map(B=>v[B]),keys:R}}}return{args:D,keys:null}}},75797:(Xe,ue,p)=>{"use strict";p.d(ue,{k:()=>A});const{isArray:e}=Array;function A(C){return 1===C.length&&e(C[0])?C[0]:C}},38737:(Xe,ue,p)=>{"use strict";function e(A,C){if(A){const M=A.indexOf(C);0<=M&&A.splice(M,1)}}p.d(ue,{P:()=>e})},83888:(Xe,ue,p)=>{"use strict";function e(A){const M=A(m=>{Error.call(m),m.stack=(new Error).stack});return M.prototype=Object.create(Error.prototype),M.prototype.constructor=M,M}p.d(ue,{d:()=>e})},31810:(Xe,ue,p)=>{"use strict";function e(A,C){return A.reduce((M,m,b)=>(M[m]=C[b],M),{})}p.d(ue,{n:()=>e})},72806:(Xe,ue,p)=>{"use strict";p.d(ue,{O:()=>M,x:()=>C});var e=p(42416);let A=null;function C(m){if(e.v.useDeprecatedSynchronousErrorHandling){const b=!A;if(b&&(A={errorThrown:!1,error:null}),m(),b){const{errorThrown:D,error:v}=A;if(A=null,D)throw v}}else m()}function M(m){e.v.useDeprecatedSynchronousErrorHandling&&A&&(A.errorThrown=!0,A.error=m)}},39672:(Xe,ue,p)=>{"use strict";function e(A,C,M,m=0,b=!1){const D=C.schedule(function(){M(),b?A.add(this.schedule(null,m)):this.unsubscribe()},m);if(A.add(D),!b)return D}p.d(ue,{f:()=>e})},44671:(Xe,ue,p)=>{"use strict";function e(A){return A}p.d(ue,{y:()=>e})},81144:(Xe,ue,p)=>{"use strict";p.d(ue,{z:()=>e});const e=A=>A&&"number"==typeof A.length&&"function"!=typeof A},12206:(Xe,ue,p)=>{"use strict";p.d(ue,{D:()=>A});var e=p(30576);function A(C){return Symbol.asyncIterator&&(0,e.m)(C?.[Symbol.asyncIterator])}},51165:(Xe,ue,p)=>{"use strict";function e(A){return A instanceof Date&&!isNaN(A)}p.d(ue,{q:()=>e})},30576:(Xe,ue,p)=>{"use strict";function e(A){return"function"==typeof A}p.d(ue,{m:()=>e})},93670:(Xe,ue,p)=>{"use strict";p.d(ue,{c:()=>C});var e=p(48822),A=p(30576);function C(M){return(0,A.m)(M[e.L])}},26495:(Xe,ue,p)=>{"use strict";p.d(ue,{T:()=>C});var e=p(2202),A=p(30576);function C(M){return(0,A.m)(M?.[e.h])}},45191:(Xe,ue,p)=>{"use strict";p.d(ue,{b:()=>C});var e=p(69751),A=p(30576);function C(M){return!!M&&(M instanceof e.y||(0,A.m)(M.lift)&&(0,A.m)(M.subscribe))}},28239:(Xe,ue,p)=>{"use strict";p.d(ue,{t:()=>A});var e=p(30576);function A(C){return(0,e.m)(C?.then)}},53260:(Xe,ue,p)=>{"use strict";p.d(ue,{L:()=>M,Q:()=>C});var e=p(70655),A=p(30576);function C(m){return(0,e.FC)(this,arguments,function*(){const D=m.getReader();try{for(;;){const{value:v,done:R}=yield(0,e.qq)(D.read());if(R)return yield(0,e.qq)(void 0);yield yield(0,e.qq)(v)}}finally{D.releaseLock()}})}function M(m){return(0,A.m)(m?.getReader)}},93532:(Xe,ue,p)=>{"use strict";p.d(ue,{K:()=>A});var e=p(30576);function A(C){return C&&(0,e.m)(C.schedule)}},54482:(Xe,ue,p)=>{"use strict";p.d(ue,{A:()=>A,e:()=>C});var e=p(30576);function A(M){return(0,e.m)(M?.lift)}function C(M){return m=>{if(A(m))return m.lift(function(b){try{return M(b,this)}catch(D){this.error(D)}});throw new TypeError("Unable to lift unknown Observable type")}}},83268:(Xe,ue,p)=>{"use strict";p.d(ue,{Z:()=>M});var e=p(54004);const{isArray:A}=Array;function M(m){return(0,e.U)(b=>function C(m,b){return A(b)?m(...b):m(b)}(m,b))}},25032:(Xe,ue,p)=>{"use strict";function e(){}p.d(ue,{Z:()=>e})},89635:(Xe,ue,p)=>{"use strict";p.d(ue,{U:()=>C,z:()=>A});var e=p(44671);function A(...M){return C(M)}function C(M){return 0===M.length?e.y:1===M.length?M[0]:function(b){return M.reduce((D,v)=>v(D),b)}}},87849:(Xe,ue,p)=>{"use strict";p.d(ue,{h:()=>C});var e=p(42416),A=p(43410);function C(M){A.z.setTimeout(()=>{const{onUnhandledError:m}=e.v;if(!m)throw M;m(M)})}},44532:(Xe,ue,p)=>{"use strict";function e(A){return new TypeError(`You provided ${null!==A&&"object"==typeof A?"an invalid object":`'${A}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}p.d(ue,{z:()=>e})},70655:(Xe,ue,p)=>{"use strict";function m(ge,ve,De,he){var se,Ye=arguments.length,Be=Ye<3?ve:null===he?he=Object.getOwnPropertyDescriptor(ve,De):he;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)Be=Reflect.decorate(ge,ve,De,he);else for(var le=ge.length-1;le>=0;le--)(se=ge[le])&&(Be=(Ye<3?se(Be):Ye>3?se(ve,De,Be):se(ve,De))||Be);return Ye>3&&Be&&Object.defineProperty(ve,De,Be),Be}function v(ge,ve,De,he){return new(De||(De=Promise))(function(Be,se){function le(be){try{k(he.next(be))}catch(Z){se(Z)}}function N(be){try{k(he.throw(be))}catch(Z){se(Z)}}function k(be){be.done?Be(be.value):function Ye(Be){return Be instanceof De?Be:new De(function(se){se(Be)})}(be.value).then(le,N)}k((he=he.apply(ge,ve||[])).next())})}function ie(ge){return this instanceof ie?(this.v=ge,this):new ie(ge)}function Te(ge,ve,De){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Ye,he=De.apply(ge,ve||[]),Be=[];return Ye={},se("next"),se("throw"),se("return"),Ye[Symbol.asyncIterator]=function(){return this},Ye;function se(ce){he[ce]&&(Ye[ce]=function(xe){return new Promise(function(ot,Fe){Be.push([ce,xe,ot,Fe])>1||le(ce,xe)})})}function le(ce,xe){try{!function N(ce){ce.value instanceof ie?Promise.resolve(ce.value.v).then(k,be):Z(Be[0][2],ce)}(he[ce](xe))}catch(ot){Z(Be[0][3],ot)}}function k(ce){le("next",ce)}function be(ce){le("throw",ce)}function Z(ce,xe){ce(xe),Be.shift(),Be.length&&le(Be[0][0],Be[0][1])}}function Le(ge){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var De,ve=ge[Symbol.asyncIterator];return ve?ve.call(ge):(ge=function L(ge){var ve="function"==typeof Symbol&&Symbol.iterator,De=ve&&ge[ve],he=0;if(De)return De.call(ge);if(ge&&"number"==typeof ge.length)return{next:function(){return ge&&he>=ge.length&&(ge=void 0),{value:ge&&ge[he++],done:!ge}}};throw new TypeError(ve?"Object is not iterable.":"Symbol.iterator is not defined.")}(ge),De={},he("next"),he("throw"),he("return"),De[Symbol.asyncIterator]=function(){return this},De);function he(Be){De[Be]=ge[Be]&&function(se){return new Promise(function(le,N){!function Ye(Be,se,le,N){Promise.resolve(N).then(function(k){Be({value:k,done:le})},se)}(le,N,(se=ge[Be](se)).done,se.value)})}}}p.d(ue,{FC:()=>Te,KL:()=>Le,gn:()=>m,mG:()=>v,qq:()=>ie})},37340:(Xe,ue,p)=>{"use strict";p.d(ue,{F4:()=>B,IO:()=>te,LC:()=>A,SB:()=>R,X$:()=>M,ZE:()=>pe,ZN:()=>Te,_j:()=>e,eR:()=>w,jt:()=>m,k1:()=>Le,l3:()=>C,oB:()=>v,pV:()=>O,ru:()=>b,vP:()=>D});class e{}class A{}const C="*";function M(T,W){return{type:7,name:T,definitions:W,options:{}}}function m(T,W=null){return{type:4,styles:W,timings:T}}function b(T,W=null){return{type:3,steps:T,options:W}}function D(T,W=null){return{type:2,steps:T,options:W}}function v(T){return{type:6,styles:T,offset:null}}function R(T,W,F){return{type:0,name:T,styles:W,options:F}}function B(T){return{type:5,steps:T}}function w(T,W,F=null){return{type:1,expr:T,animation:W,options:F}}function O(T=null){return{type:9,options:T}}function te(T,W,F=null){return{type:11,selector:T,animation:W,options:F}}function ie(T){Promise.resolve(null).then(T)}class Te{constructor(W=0,F=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=W+F}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(W=>W()),this._onDoneFns=[])}onStart(W){this._originalOnStartFns.push(W),this._onStartFns.push(W)}onDone(W){this._originalOnDoneFns.push(W),this._onDoneFns.push(W)}onDestroy(W){this._onDestroyFns.push(W)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){ie(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(W=>W()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(W=>W()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(W){this._position=this.totalTime?W*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(W){const F="start"==W?this._onStartFns:this._onDoneFns;F.forEach(V=>V()),F.length=0}}class pe{constructor(W){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=W;let F=0,V=0,ee=0;const Q=this.players.length;0==Q?ie(()=>this._onFinish()):this.players.forEach(Ee=>{Ee.onDone(()=>{++F==Q&&this._onFinish()}),Ee.onDestroy(()=>{++V==Q&&this._onDestroy()}),Ee.onStart(()=>{++ee==Q&&this._onStart()})}),this.totalTime=this.players.reduce((Ee,ge)=>Math.max(Ee,ge.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(W=>W()),this._onDoneFns=[])}init(){this.players.forEach(W=>W.init())}onStart(W){this._onStartFns.push(W)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(W=>W()),this._onStartFns=[])}onDone(W){this._onDoneFns.push(W)}onDestroy(W){this._onDestroyFns.push(W)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(W=>W.play())}pause(){this.players.forEach(W=>W.pause())}restart(){this.players.forEach(W=>W.restart())}finish(){this._onFinish(),this.players.forEach(W=>W.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(W=>W.destroy()),this._onDestroyFns.forEach(W=>W()),this._onDestroyFns=[])}reset(){this.players.forEach(W=>W.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(W){const F=W*this.totalTime;this.players.forEach(V=>{const ee=V.totalTime?Math.min(1,F/V.totalTime):1;V.setPosition(ee)})}getPosition(){const W=this.players.reduce((F,V)=>null===F||V.totalTime>F.totalTime?V:F,null);return null!=W?W.getPosition():0}beforeDestroy(){this.players.forEach(W=>{W.beforeDestroy&&W.beforeDestroy()})}triggerCallback(W){const F="start"==W?this._onStartFns:this._onDoneFns;F.forEach(V=>V()),F.length=0}}const Le="!"},12687:(Xe,ue,p)=>{"use strict";p.d(ue,{$s:()=>ge,Em:()=>Be,Kd:()=>s,X6:()=>r,ic:()=>le,kH:()=>J,mK:()=>ye,qV:()=>Ae,qm:()=>ne,rt:()=>Ue,s1:()=>Ye,tE:()=>S,yG:()=>u});var e=p(36895),A=p(94650),C=p(83353),M=p(77579),m=p(50727),b=p(61135),D=p(39646),v=p(29521),R=p(18505),B=p(78372),w=p(39300),L=p(54004),O=p(95698),q=p(35684),te=p(71884),z=p(82722),ie=p(21281),Te=p(49643),pe=p(62289);function F(He,Pe){return(He.getAttribute(Pe)||"").match(/\S+/g)||[]}const ee="cdk-describedby-message",Q="cdk-describedby-host";let Ee=0,ge=(()=>{class He{constructor(Re,re){this._platform=re,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+Ee++,this._document=Re,this._id=(0,A.f3M)(A.AFp)+"-"+Ee++}describe(Re,re,we){if(!this._canBeDescribed(Re,re))return;const st=ve(re,we);"string"!=typeof re?(De(re,this._id),this._messageRegistry.set(st,{messageElement:re,referenceCount:0})):this._messageRegistry.has(st)||this._createMessageElement(re,we),this._isElementDescribedByMessage(Re,st)||this._addMessageReference(Re,st)}removeDescription(Re,re,we){var st;if(!re||!this._isElementNode(Re))return;const Ke=ve(re,we);if(this._isElementDescribedByMessage(Re,Ke)&&this._removeMessageReference(Re,Ke),"string"==typeof re){const Et=this._messageRegistry.get(Ke);Et&&0===Et.referenceCount&&this._deleteMessageElement(Ke)}0===(null===(st=this._messagesContainer)||void 0===st?void 0:st.childNodes.length)&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){var Re;const re=this._document.querySelectorAll(`[${Q}="${this._id}"]`);for(let we=0;we0!=we.indexOf(ee));Re.setAttribute("aria-describedby",re.join(" "))}_addMessageReference(Re,re){const we=this._messageRegistry.get(re);(function T(He,Pe,Re){const re=F(He,Pe);re.some(we=>we.trim()==Re.trim())||(re.push(Re.trim()),He.setAttribute(Pe,re.join(" ")))})(Re,"aria-describedby",we.messageElement.id),Re.setAttribute(Q,this._id),we.referenceCount++}_removeMessageReference(Re,re){const we=this._messageRegistry.get(re);we.referenceCount--,function W(He,Pe,Re){const we=F(He,Pe).filter(st=>st!=Re.trim());we.length?He.setAttribute(Pe,we.join(" ")):He.removeAttribute(Pe)}(Re,"aria-describedby",we.messageElement.id),Re.removeAttribute(Q)}_isElementDescribedByMessage(Re,re){const we=F(Re,"aria-describedby"),st=this._messageRegistry.get(re),Ke=st&&st.messageElement.id;return!!Ke&&-1!=we.indexOf(Ke)}_canBeDescribed(Re,re){if(!this._isElementNode(Re))return!1;if(re&&"object"==typeof re)return!0;const we=null==re?"":`${re}`.trim(),st=Re.getAttribute("aria-label");return!(!we||st&&st.trim()===we)}_isElementNode(Re){return Re.nodeType===this._document.ELEMENT_NODE}}return He.\u0275fac=function(Re){return new(Re||He)(A.LFG(e.K0),A.LFG(C.t4))},He.\u0275prov=A.Yz7({token:He,factory:He.\u0275fac,providedIn:"root"}),He})();function ve(He,Pe){return"string"==typeof He?`${Pe||""}/${He}`:He}function De(He,Pe){He.id||(He.id=`${ee}-${Pe}-${Ee++}`)}class he{constructor(Pe){this._items=Pe,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new M.x,this._typeaheadSubscription=m.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=Re=>Re.disabled,this._pressedLetters=[],this.tabOut=new M.x,this.change=new M.x,Pe instanceof A.n_E&&Pe.changes.subscribe(Re=>{if(this._activeItem){const we=Re.toArray().indexOf(this._activeItem);we>-1&&we!==this._activeItemIndex&&(this._activeItemIndex=we)}})}skipPredicate(Pe){return this._skipPredicateFn=Pe,this}withWrap(Pe=!0){return this._wrap=Pe,this}withVerticalOrientation(Pe=!0){return this._vertical=Pe,this}withHorizontalOrientation(Pe){return this._horizontal=Pe,this}withAllowedModifierKeys(Pe){return this._allowedModifierKeys=Pe,this}withTypeAhead(Pe=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,R.b)(Re=>this._pressedLetters.push(Re)),(0,B.b)(Pe),(0,w.h)(()=>this._pressedLetters.length>0),(0,L.U)(()=>this._pressedLetters.join(""))).subscribe(Re=>{const re=this._getItemsArray();for(let we=1;we!Pe[st]||this._allowedModifierKeys.indexOf(st)>-1);switch(Re){case v.Mf:return void this.tabOut.next();case v.JH:if(this._vertical&&we){this.setNextItemActive();break}return;case v.LH:if(this._vertical&&we){this.setPreviousItemActive();break}return;case v.SV:if(this._horizontal&&we){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case v.oh:if(this._horizontal&&we){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case v.Sd:if(this._homeAndEnd&&we){this.setFirstItemActive();break}return;case v.uR:if(this._homeAndEnd&&we){this.setLastItemActive();break}return;default:return void((we||(0,v.Vb)(Pe,"shiftKey"))&&(Pe.key&&1===Pe.key.length?this._letterKeyStream.next(Pe.key.toLocaleUpperCase()):(Re>=v.A&&Re<=v.Z||Re>=v.xE&&Re<=v.aO)&&this._letterKeyStream.next(String.fromCharCode(Re))))}this._pressedLetters=[],Pe.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(Pe){const Re=this._getItemsArray(),re="number"==typeof Pe?Pe:Re.indexOf(Pe);this._activeItem=Re[re]??null,this._activeItemIndex=re}_setActiveItemByDelta(Pe){this._wrap?this._setActiveInWrapMode(Pe):this._setActiveInDefaultMode(Pe)}_setActiveInWrapMode(Pe){const Re=this._getItemsArray();for(let re=1;re<=Re.length;re++){const we=(this._activeItemIndex+Pe*re+Re.length)%Re.length;if(!this._skipPredicateFn(Re[we]))return void this.setActiveItem(we)}}_setActiveInDefaultMode(Pe){this._setActiveItemByIndex(this._activeItemIndex+Pe,Pe)}_setActiveItemByIndex(Pe,Re){const re=this._getItemsArray();if(re[Pe]){for(;this._skipPredicateFn(re[Pe]);)if(!re[Pe+=Re])return;this.setActiveItem(Pe)}}_getItemsArray(){return this._items instanceof A.n_E?this._items.toArray():this._items}}class Ye extends he{setActiveItem(Pe){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(Pe),this.activeItem&&this.activeItem.setActiveStyles()}}class Be extends he{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(Pe){return this._origin=Pe,this}setActiveItem(Pe){super.setActiveItem(Pe),this.activeItem&&this.activeItem.focus(this._origin)}}let le=(()=>{class He{constructor(Re){this._platform=Re}isDisabled(Re){return Re.hasAttribute("disabled")}isVisible(Re){return function k(He){return!!(He.offsetWidth||He.offsetHeight||"function"==typeof He.getClientRects&&He.getClientRects().length)}(Re)&&"visible"===getComputedStyle(Re).visibility}isTabbable(Re){if(!this._platform.isBrowser)return!1;const re=function N(He){try{return He.frameElement}catch{return null}}(function X(He){return He.ownerDocument&&He.ownerDocument.defaultView||window}(Re));if(re&&(-1===ut(re)||!this.isVisible(re)))return!1;let we=Re.nodeName.toLowerCase(),st=ut(Re);return Re.hasAttribute("contenteditable")?-1!==st:!("iframe"===we||"object"===we||this._platform.WEBKIT&&this._platform.IOS&&!function tt(He){let Pe=He.nodeName.toLowerCase(),Re="input"===Pe&&He.type;return"text"===Re||"password"===Re||"select"===Pe||"textarea"===Pe}(Re))&&("audio"===we?!!Re.hasAttribute("controls")&&-1!==st:"video"===we?-1!==st&&(null!==st||this._platform.FIREFOX||Re.hasAttribute("controls")):Re.tabIndex>=0)}isFocusable(Re,re){return function vt(He){return!function Z(He){return function xe(He){return"input"==He.nodeName.toLowerCase()}(He)&&"hidden"==He.type}(He)&&(function be(He){let Pe=He.nodeName.toLowerCase();return"input"===Pe||"select"===Pe||"button"===Pe||"textarea"===Pe}(He)||function ce(He){return function ot(He){return"a"==He.nodeName.toLowerCase()}(He)&&He.hasAttribute("href")}(He)||He.hasAttribute("contenteditable")||Fe(He))}(Re)&&!this.isDisabled(Re)&&(re?.ignoreVisibility||this.isVisible(Re))}}return He.\u0275fac=function(Re){return new(Re||He)(A.LFG(C.t4))},He.\u0275prov=A.Yz7({token:He,factory:He.\u0275fac,providedIn:"root"}),He})();function Fe(He){if(!He.hasAttribute("tabindex")||void 0===He.tabIndex)return!1;let Pe=He.getAttribute("tabindex");return!(!Pe||isNaN(parseInt(Pe,10)))}function ut(He){if(!Fe(He))return null;const Pe=parseInt(He.getAttribute("tabindex")||"",10);return isNaN(Pe)?-1:Pe}class nt{constructor(Pe,Re,re,we,st=!1){this._element=Pe,this._checker=Re,this._ngZone=re,this._document=we,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,st||this.attachAnchors()}get enabled(){return this._enabled}set enabled(Pe){this._enabled=Pe,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Pe,this._startAnchor),this._toggleAnchorTabIndex(Pe,this._endAnchor))}destroy(){const Pe=this._startAnchor,Re=this._endAnchor;Pe&&(Pe.removeEventListener("focus",this.startAnchorListener),Pe.remove()),Re&&(Re.removeEventListener("focus",this.endAnchorListener),Re.remove()),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(Pe){return new Promise(Re=>{this._executeOnStable(()=>Re(this.focusInitialElement(Pe)))})}focusFirstTabbableElementWhenReady(Pe){return new Promise(Re=>{this._executeOnStable(()=>Re(this.focusFirstTabbableElement(Pe)))})}focusLastTabbableElementWhenReady(Pe){return new Promise(Re=>{this._executeOnStable(()=>Re(this.focusLastTabbableElement(Pe)))})}_getRegionBoundary(Pe){const Re=this._element.querySelectorAll(`[cdk-focus-region-${Pe}], [cdkFocusRegion${Pe}], [cdk-focus-${Pe}]`);return"start"==Pe?Re.length?Re[0]:this._getFirstTabbableElement(this._element):Re.length?Re[Re.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(Pe){const Re=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(Re){if(!this._checker.isFocusable(Re)){const re=this._getFirstTabbableElement(Re);return re?.focus(Pe),!!re}return Re.focus(Pe),!0}return this.focusFirstTabbableElement(Pe)}focusFirstTabbableElement(Pe){const Re=this._getRegionBoundary("start");return Re&&Re.focus(Pe),!!Re}focusLastTabbableElement(Pe){const Re=this._getRegionBoundary("end");return Re&&Re.focus(Pe),!!Re}hasAttached(){return this._hasAttached}_getFirstTabbableElement(Pe){if(this._checker.isFocusable(Pe)&&this._checker.isTabbable(Pe))return Pe;const Re=Pe.children;for(let re=0;re=0;re--){const we=Re[re].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(Re[re]):null;if(we)return we}return null}_createAnchor(){const Pe=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,Pe),Pe.classList.add("cdk-visually-hidden"),Pe.classList.add("cdk-focus-trap-anchor"),Pe.setAttribute("aria-hidden","true"),Pe}_toggleAnchorTabIndex(Pe,Re){Pe?Re.setAttribute("tabindex","0"):Re.removeAttribute("tabindex")}toggleAnchors(Pe){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Pe,this._startAnchor),this._toggleAnchorTabIndex(Pe,this._endAnchor))}_executeOnStable(Pe){this._ngZone.isStable?Pe():this._ngZone.onStable.pipe((0,O.q)(1)).subscribe(Pe)}}let Ae=(()=>{class He{constructor(Re,re,we){this._checker=Re,this._ngZone=re,this._document=we}create(Re,re=!1){return new nt(Re,this._checker,this._ngZone,this._document,re)}}return He.\u0275fac=function(Re){return new(Re||He)(A.LFG(le),A.LFG(A.R0b),A.LFG(e.K0))},He.\u0275prov=A.Yz7({token:He,factory:He.\u0275fac,providedIn:"root"}),He})(),ye=(()=>{class He{constructor(Re,re,we){this._elementRef=Re,this._focusTrapFactory=re,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(Re){this.focusTrap.enabled=(0,ie.Ig)(Re)}get autoCapture(){return this._autoCapture}set autoCapture(Re){this._autoCapture=(0,ie.Ig)(Re)}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(Re){const re=Re.autoCapture;re&&!re.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,C.ht)(),this.focusTrap.focusInitialElementWhenReady()}}return He.\u0275fac=function(Re){return new(Re||He)(A.Y36(A.SBq),A.Y36(Ae),A.Y36(e.K0))},He.\u0275dir=A.lG2({type:He,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[A.TTD]}),He})();function r(He){return 0===He.buttons||0===He.offsetX&&0===He.offsetY}function u(He){const Pe=He.touches&&He.touches[0]||He.changedTouches&&He.changedTouches[0];return!(!Pe||-1!==Pe.identifier||null!=Pe.radiusX&&1!==Pe.radiusX||null!=Pe.radiusY&&1!==Pe.radiusY)}const _=new A.OlP("cdk-input-modality-detector-options"),E={ignoreKeys:[v.zL,v.jx,v.b2,v.MW,v.JU]},a=(0,C.i$)({passive:!0,capture:!0});let i=(()=>{class He{constructor(Re,re,we,st){this._platform=Re,this._mostRecentTarget=null,this._modality=new b.X(null),this._lastTouchMs=0,this._onKeydown=Ke=>{var Et,ke;null!==(Et=this._options)&&void 0!==Et&&null!==(ke=Et.ignoreKeys)&&void 0!==ke&&ke.some(at=>at===Ke.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,C.sA)(Ke))},this._onMousedown=Ke=>{Date.now()-this._lastTouchMs<650||(this._modality.next(r(Ke)?"keyboard":"mouse"),this._mostRecentTarget=(0,C.sA)(Ke))},this._onTouchstart=Ke=>{u(Ke)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,C.sA)(Ke))},this._options={...E,...st},this.modalityDetected=this._modality.pipe((0,q.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,te.x)()),Re.isBrowser&&re.runOutsideAngular(()=>{we.addEventListener("keydown",this._onKeydown,a),we.addEventListener("mousedown",this._onMousedown,a),we.addEventListener("touchstart",this._onTouchstart,a)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,a),document.removeEventListener("mousedown",this._onMousedown,a),document.removeEventListener("touchstart",this._onTouchstart,a))}}return He.\u0275fac=function(Re){return new(Re||He)(A.LFG(C.t4),A.LFG(A.R0b),A.LFG(e.K0),A.LFG(_,8))},He.\u0275prov=A.Yz7({token:He,factory:He.\u0275fac,providedIn:"root"}),He})();const t=new A.OlP("liveAnnouncerElement",{providedIn:"root",factory:function n(){return null}}),o=new A.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let s=(()=>{class He{constructor(Re,re,we,st){this._ngZone=re,this._defaultOptions=st,this._document=we,this._liveElement=Re||this._createLiveElement()}announce(Re,...re){const we=this._defaultOptions;let st,Ke;return 1===re.length&&"number"==typeof re[0]?Ke=re[0]:[st,Ke]=re,this.clear(),clearTimeout(this._previousTimeout),st||(st=we&&we.politeness?we.politeness:"polite"),null==Ke&&we&&(Ke=we.duration),this._liveElement.setAttribute("aria-live",st),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(Et=>this._currentResolve=Et)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=Re,"number"==typeof Ke&&(this._previousTimeout=setTimeout(()=>this.clear(),Ke)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){var Re,re;clearTimeout(this._previousTimeout),null===(Re=this._liveElement)||void 0===Re||Re.remove(),this._liveElement=null,null===(re=this._currentResolve)||void 0===re||re.call(this),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const Re="cdk-live-announcer-element",re=this._document.getElementsByClassName(Re),we=this._document.createElement("div");for(let st=0;st{class He{constructor(Re,re,we,st,Ke){this._ngZone=Re,this._platform=re,this._inputModalityDetector=we,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new M.x,this._rootNodeFocusAndBlurListener=Et=>{for(let at=(0,C.sA)(Et);at;at=at.parentElement)"focus"===Et.type?this._onFocus(Et,at):this._onBlur(Et,at)},this._document=st,this._detectionMode=Ke?.detectionMode||0}monitor(Re,re=!1){const we=(0,ie.fI)(Re);if(!this._platform.isBrowser||1!==we.nodeType)return(0,D.of)(null);const st=(0,C.kV)(we)||this._getDocument(),Ke=this._elementInfo.get(we);if(Ke)return re&&(Ke.checkChildren=!0),Ke.subject;const Et={checkChildren:re,subject:new M.x,rootNode:st};return this._elementInfo.set(we,Et),this._registerGlobalListeners(Et),Et.subject}stopMonitoring(Re){const re=(0,ie.fI)(Re),we=this._elementInfo.get(re);we&&(we.subject.complete(),this._setClasses(re),this._elementInfo.delete(re),this._removeGlobalListeners(we))}focusVia(Re,re,we){const st=(0,ie.fI)(Re);st===this._getDocument().activeElement?this._getClosestElementsInfo(st).forEach(([Et,ke])=>this._originChanged(Et,re,ke)):(this._setOrigin(re),"function"==typeof st.focus&&st.focus(we))}ngOnDestroy(){this._elementInfo.forEach((Re,re)=>this.stopMonitoring(re))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(Re){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(Re)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:Re&&this._isLastInteractionFromInputLabel(Re)?"mouse":"program"}_shouldBeAttributedToTouch(Re){return 1===this._detectionMode||!(null==Re||!Re.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(Re,re){Re.classList.toggle("cdk-focused",!!re),Re.classList.toggle("cdk-touch-focused","touch"===re),Re.classList.toggle("cdk-keyboard-focused","keyboard"===re),Re.classList.toggle("cdk-mouse-focused","mouse"===re),Re.classList.toggle("cdk-program-focused","program"===re)}_setOrigin(Re,re=!1){this._ngZone.runOutsideAngular(()=>{this._origin=Re,this._originFromTouchInteraction="touch"===Re&&re,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(Re,re){const we=this._elementInfo.get(re),st=(0,C.sA)(Re);!we||!we.checkChildren&&re!==st||this._originChanged(re,this._getFocusOrigin(st),we)}_onBlur(Re,re){const we=this._elementInfo.get(re);!we||we.checkChildren&&Re.relatedTarget instanceof Node&&re.contains(Re.relatedTarget)||(this._setClasses(re),this._emitOrigin(we,null))}_emitOrigin(Re,re){Re.subject.observers.length&&this._ngZone.run(()=>Re.subject.next(re))}_registerGlobalListeners(Re){if(!this._platform.isBrowser)return;const re=Re.rootNode,we=this._rootNodeFocusListenerCount.get(re)||0;we||this._ngZone.runOutsideAngular(()=>{re.addEventListener("focus",this._rootNodeFocusAndBlurListener,c),re.addEventListener("blur",this._rootNodeFocusAndBlurListener,c)}),this._rootNodeFocusListenerCount.set(re,we+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,z.R)(this._stopInputModalityDetector)).subscribe(st=>{this._setOrigin(st,!0)}))}_removeGlobalListeners(Re){const re=Re.rootNode;if(this._rootNodeFocusListenerCount.has(re)){const we=this._rootNodeFocusListenerCount.get(re);we>1?this._rootNodeFocusListenerCount.set(re,we-1):(re.removeEventListener("focus",this._rootNodeFocusAndBlurListener,c),re.removeEventListener("blur",this._rootNodeFocusAndBlurListener,c),this._rootNodeFocusListenerCount.delete(re))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(Re,re,we){this._setClasses(Re,re),this._emitOrigin(we,re),this._lastFocusOrigin=re}_getClosestElementsInfo(Re){const re=[];return this._elementInfo.forEach((we,st)=>{(st===Re||we.checkChildren&&st.contains(Re))&&re.push([st,we])}),re}_isLastInteractionFromInputLabel(Re){const{_mostRecentTarget:re,mostRecentModality:we}=this._inputModalityDetector;if("mouse"!==we||!re||re===Re||"INPUT"!==Re.nodeName&&"TEXTAREA"!==Re.nodeName||Re.disabled)return!1;const st=Re.labels;if(st)for(let Ke=0;Ke{class He{constructor(Re,re){this._elementRef=Re,this._focusMonitor=re,this.cdkFocusChange=new A.vpe}ngAfterViewInit(){const Re=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(Re,1===Re.nodeType&&Re.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(re=>this.cdkFocusChange.emit(re))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return He.\u0275fac=function(Re){return new(Re||He)(A.Y36(A.SBq),A.Y36(S))},He.\u0275dir=A.lG2({type:He,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),He})();const ht="cdk-high-contrast-black-on-white",ze="cdk-high-contrast-white-on-black",et="cdk-high-contrast-active";let ne=(()=>{class He{constructor(Re,re){this._platform=Re,this._document=re,this._breakpointSubscription=(0,A.f3M)(pe.Yg).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const Re=this._document.createElement("div");Re.style.backgroundColor="rgb(1,2,3)",Re.style.position="absolute",this._document.body.appendChild(Re);const re=this._document.defaultView||window,we=re&&re.getComputedStyle?re.getComputedStyle(Re):null,st=(we&&we.backgroundColor||"").replace(/ /g,"");switch(Re.remove(),st){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const Re=this._document.body.classList;Re.remove(et,ht,ze),this._hasCheckedHighContrastMode=!0;const re=this.getHighContrastMode();1===re?Re.add(et,ht):2===re&&Re.add(et,ze)}}}return He.\u0275fac=function(Re){return new(Re||He)(A.LFG(C.t4),A.LFG(e.K0))},He.\u0275prov=A.Yz7({token:He,factory:He.\u0275fac,providedIn:"root"}),He})(),Ue=(()=>{class He{constructor(Re){Re._applyBodyHighContrastModeCssClasses()}}return He.\u0275fac=function(Re){return new(Re||He)(A.LFG(ne))},He.\u0275mod=A.oAB({type:He}),He.\u0275inj=A.cJS({imports:[Te.Q8]}),He})()},40445:(Xe,ue,p)=>{"use strict";p.d(ue,{Is:()=>D,vT:()=>R});var e=p(94650),A=p(36895);const C=new e.OlP("cdk-dir-doc",{providedIn:"root",factory:function M(){return(0,e.f3M)(A.K0)}}),m=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let D=(()=>{class B{constructor(L){if(this.value="ltr",this.change=new e.vpe,L){const q=L.documentElement?L.documentElement.dir:null;this.value=function b(B){var w;const L=B?.toLowerCase()||"";return"auto"===L&&typeof navigator<"u"&&null!==(w=navigator)&&void 0!==w&&w.language?m.test(navigator.language)?"rtl":"ltr":"rtl"===L?"rtl":"ltr"}((L.body?L.body.dir:null)||q||"ltr")}}ngOnDestroy(){this.change.complete()}}return B.\u0275fac=function(L){return new(L||B)(e.LFG(C,8))},B.\u0275prov=e.Yz7({token:B,factory:B.\u0275fac,providedIn:"root"}),B})(),R=(()=>{class B{}return B.\u0275fac=function(L){return new(L||B)},B.\u0275mod=e.oAB({type:B}),B.\u0275inj=e.cJS({}),B})()},64425:(Xe,ue,p)=>{"use strict";p.d(ue,{Iq:()=>D,TU:()=>M,i3:()=>b});var e=p(36895),A=p(94650);class C{constructor(R,B){this._document=B;const w=this._textarea=this._document.createElement("textarea"),L=w.style;L.position="fixed",L.top=L.opacity="0",L.left="-999em",w.setAttribute("aria-hidden","true"),w.value=R,w.readOnly=!0,this._document.body.appendChild(w)}copy(){const R=this._textarea;let B=!1;try{if(R){const w=this._document.activeElement;R.select(),R.setSelectionRange(0,R.value.length),B=this._document.execCommand("copy"),w&&w.focus()}}catch{}return B}destroy(){const R=this._textarea;R&&(R.remove(),this._textarea=void 0)}}let M=(()=>{class v{constructor(B){this._document=B}copy(B){const w=this.beginCopy(B),L=w.copy();return w.destroy(),L}beginCopy(B){return new C(B,this._document)}}return v.\u0275fac=function(B){return new(B||v)(A.LFG(e.K0))},v.\u0275prov=A.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),v})();const m=new A.OlP("CDK_COPY_TO_CLIPBOARD_CONFIG");let b=(()=>{class v{constructor(B,w,L){this._clipboard=B,this._ngZone=w,this.text="",this.attempts=1,this.copied=new A.vpe,this._pending=new Set,L&&null!=L.attempts&&(this.attempts=L.attempts)}copy(B=this.attempts){if(B>1){let w=B;const L=this._clipboard.beginCopy(this.text);this._pending.add(L);const O=()=>{const q=L.copy();q||!--w||this._destroyed?(this._currentTimeout=null,this._pending.delete(L),L.destroy(),this.copied.emit(q)):this._currentTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(O,1))};O()}else this.copied.emit(this._clipboard.copy(this.text))}ngOnDestroy(){this._currentTimeout&&clearTimeout(this._currentTimeout),this._pending.forEach(B=>B.destroy()),this._pending.clear(),this._destroyed=!0}}return v.\u0275fac=function(B){return new(B||v)(A.Y36(M),A.Y36(A.R0b),A.Y36(m,8))},v.\u0275dir=A.lG2({type:v,selectors:[["","cdkCopyToClipboard",""]],hostBindings:function(B,w){1&B&&A.NdJ("click",function(){return w.copy()})},inputs:{text:["cdkCopyToClipboard","text"],attempts:["cdkCopyToClipboardAttempts","attempts"]},outputs:{copied:"cdkCopyToClipboardCopied"}}),v})(),D=(()=>{class v{}return v.\u0275fac=function(B){return new(B||v)},v.\u0275mod=A.oAB({type:v}),v.\u0275inj=A.cJS({}),v})()},21281:(Xe,ue,p)=>{"use strict";p.d(ue,{Eq:()=>m,HM:()=>b,Ig:()=>A,du:()=>v,fI:()=>D,su:()=>C,t6:()=>M});var e=p(94650);function A(R){return null!=R&&"false"!=`${R}`}function C(R,B=0){return M(R)?Number(R):B}function M(R){return!isNaN(parseFloat(R))&&!isNaN(Number(R))}function m(R){return Array.isArray(R)?R:[R]}function b(R){return null==R?"":"string"==typeof R?R:`${R}px`}function D(R){return R instanceof e.SBq?R.nativeElement:R}function v(R,B=/\s+/){const w=[];if(null!=R){const L=Array.isArray(R)?R:`${R}`.split(B);for(const O of L){const q=`${O}`.trim();q&&w.push(q)}}return w}},95017:(Xe,ue,p)=>{"use strict";p.d(ue,{A8:()=>L,Ov:()=>B,P3:()=>D,Z9:()=>b,eX:()=>R,k:()=>O,o2:()=>m,yy:()=>v});var e=p(45191),A=p(39646),C=p(77579),M=p(94650);class m{}function b(q){return q&&"function"==typeof q.connect}class D extends m{constructor(te){super(),this._data=te}connect(){return(0,e.b)(this._data)?this._data:(0,A.of)(this._data)}disconnect(){}}class v{applyChanges(te,z,ie,Te,pe){te.forEachOperation((Le,T,W)=>{let F,V;if(null==Le.previousIndex){const Q=ie(Le,T,W);F=z.createEmbeddedView(Q.templateRef,Q.context,Q.index),V=1}else null==W?(z.remove(T),V=3):(F=z.get(T),z.move(F,W),V=2);var ee;pe&&pe({context:null===(ee=F)||void 0===ee?void 0:ee.context,operation:V,record:Le})})}detach(){}}class R{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(te,z,ie,Te,pe){te.forEachOperation((Le,T,W)=>{let F,V;var ee;null==Le.previousIndex?(F=this._insertView(()=>ie(Le,T,W),W,z,Te(Le)),V=F?1:0):null==W?(this._detachAndCacheView(T,z),V=3):(F=this._moveView(T,W,z,Te(Le)),V=2),pe&&pe({context:null===(ee=F)||void 0===ee?void 0:ee.context,operation:V,record:Le})})}detach(){for(const te of this._viewCache)te.destroy();this._viewCache=[]}_insertView(te,z,ie,Te){const pe=this._insertViewFromCache(z,ie);if(pe)return void(pe.context.$implicit=Te);const Le=te();return ie.createEmbeddedView(Le.templateRef,Le.context,Le.index)}_detachAndCacheView(te,z){const ie=z.detach(te);this._maybeCacheView(ie,z)}_moveView(te,z,ie,Te){const pe=ie.get(te);return ie.move(pe,z),pe.context.$implicit=Te,pe}_maybeCacheView(te,z){if(this._viewCache.lengththis._markSelected(pe)):this._markSelected(z[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...te){this._verifyValueAssignment(te),te.forEach(ie=>this._markSelected(ie));const z=this._hasQueuedChanges();return this._emitChangeEvent(),z}deselect(...te){this._verifyValueAssignment(te),te.forEach(ie=>this._unmarkSelected(ie));const z=this._hasQueuedChanges();return this._emitChangeEvent(),z}setSelection(...te){this._verifyValueAssignment(te);const z=this.selected,ie=new Set(te);te.forEach(pe=>this._markSelected(pe)),z.filter(pe=>!ie.has(pe)).forEach(pe=>this._unmarkSelected(pe));const Te=this._hasQueuedChanges();return this._emitChangeEvent(),Te}toggle(te){return this.isSelected(te)?this.deselect(te):this.select(te)}clear(te=!0){this._unmarkAll();const z=this._hasQueuedChanges();return te&&this._emitChangeEvent(),z}isSelected(te){if(this.compareWith){for(const z of this._selection)if(this.compareWith(z,te))return!0;return!1}return this._selection.has(te)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(te){this._multiple&&this.selected&&this._selected.sort(te)}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(te){this.isSelected(te)||(this._multiple||this._unmarkAll(),this.isSelected(te)||this._selection.add(te),this._emitChanges&&this._selectedToEmit.push(te))}_unmarkSelected(te){this.isSelected(te)&&(this._selection.delete(te),this._emitChanges&&this._deselectedToEmit.push(te))}_unmarkAll(){this.isEmpty()||this._selection.forEach(te=>this._unmarkSelected(te))}_verifyValueAssignment(te){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}}let L=(()=>{class q{constructor(){this._listeners=[]}notify(z,ie){for(let Te of this._listeners)Te(z,ie)}listen(z){return this._listeners.push(z),()=>{this._listeners=this._listeners.filter(ie=>z!==ie)}}ngOnDestroy(){this._listeners=[]}}return q.\u0275fac=function(z){return new(z||q)},q.\u0275prov=M.Yz7({token:q,factory:q.\u0275fac,providedIn:"root"}),q})();const O=new M.OlP("_ViewRepeater")},73555:(Xe,ue,p)=>{"use strict";p.d(ue,{Wj:()=>c,Zt:()=>He,_t:()=>Pe,bA:()=>X});var e=p(94650),A=p(36895),C=p(67376),M=p(83353),m=p(21281),b=p(12687),D=p(77579),v=p(50727),R=p(17445),B=p(66406),w=p(69751),L=p(56451),O=p(82722),q=p(68675),te=p(54004),z=p(95698),ie=p(18505),Te=p(63900),pe=p(40445);function Le(Re,re,we){for(let st in re)if(re.hasOwnProperty(st)){const Ke=re[st];Ke?Re.setProperty(st,Ke,null!=we&&we.has(st)?"important":""):Re.removeProperty(st)}return Re}function T(Re,re){const we=re?"":"none";Le(Re.style,{"touch-action":re?"":"none","-webkit-user-drag":re?"":"none","-webkit-tap-highlight-color":re?"":"transparent","user-select":we,"-ms-user-select":we,"-webkit-user-select":we,"-moz-user-select":we})}function W(Re,re,we){Le(Re.style,{position:re?"":"fixed",top:re?"":"0",opacity:re?"":"0",left:re?"":"-999em"},we)}function F(Re,re){return re&&"none"!=re?Re+" "+re:Re}function V(Re){const re=Re.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(Re)*re}function Q(Re,re){return Re.getPropertyValue(re).split(",").map(st=>st.trim())}function Ee(Re){const re=Re.getBoundingClientRect();return{top:re.top,right:re.right,bottom:re.bottom,left:re.left,width:re.width,height:re.height,x:re.x,y:re.y}}function ge(Re,re,we){const{top:st,bottom:Ke,left:Et,right:ke}=Re;return we>=st&&we<=Ke&&re>=Et&&re<=ke}function ve(Re,re,we){Re.top+=re,Re.bottom=Re.top+Re.height,Re.left+=we,Re.right=Re.left+Re.width}function De(Re,re,we,st){const{top:Ke,right:Et,bottom:ke,left:at,width:It,height:jt}=Re,an=It*re,Kt=jt*re;return st>Ke-Kt&&stat-an&&we{this.positions.set(we,{scrollPosition:{top:we.scrollTop,left:we.scrollLeft},clientRect:Ee(we)})})}handleScroll(re){const we=(0,M.sA)(re),st=this.positions.get(we);if(!st)return null;const Ke=st.scrollPosition;let Et,ke;if(we===this._document){const jt=this.getViewportScrollPosition();Et=jt.top,ke=jt.left}else Et=we.scrollTop,ke=we.scrollLeft;const at=Ke.top-Et,It=Ke.left-ke;return this.positions.forEach((jt,an)=>{jt.clientRect&&we!==an&&we.contains(an)&&ve(jt.clientRect,at,It)}),Ke.top=Et,Ke.left=ke,{top:at,left:It}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function Ye(Re){const re=Re.cloneNode(!0),we=re.querySelectorAll("[id]"),st=Re.nodeName.toLowerCase();re.removeAttribute("id");for(let Ke=0;Ke{if(this.beforeStarted.next(),this._handles.length){const It=this._getTargetHandle(at);It&&!this._disabledHandles.has(It)&&!this.disabled&&this._initializeDragSequence(It,at)}else this.disabled||this._initializeDragSequence(this._rootElement,at)},this._pointerMove=at=>{const It=this._getPointerPositionOnPage(at);if(!this._hasStartedDragging){if(Math.abs(It.x-this._pickupPositionOnPage.x)+Math.abs(It.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const Cn=Date.now()>=this._dragStartTime+this._getDragStartDelay(at),Tt=this._dropContainer;if(!Cn)return void this._endDragSequence(at);(!Tt||!Tt.isDragging()&&!Tt.isReceiving())&&(at.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(at)))}return}at.preventDefault();const jt=this._getConstrainedPointerPosition(It);if(this._hasMoved=!0,this._lastKnownPointerPosition=It,this._updatePointerDirectionDelta(jt),this._dropContainer)this._updateActiveDropContainer(jt,It);else{const an=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,Kt=this._activeTransform;Kt.x=jt.x-an.x+this._passiveTransform.x,Kt.y=jt.y-an.y+this._passiveTransform.y,this._applyRootElementTransform(Kt.x,Kt.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:jt,event:at,distance:this._getDragDistance(jt),delta:this._pointerDirectionDelta})})},this._pointerUp=at=>{this._endDragSequence(at)},this._nativeDragStart=at=>{if(this._handles.length){const It=this._getTargetHandle(at);It&&!this._disabledHandles.has(It)&&!this.disabled&&at.preventDefault()}else this.disabled||at.preventDefault()},this.withRootElement(re).withParent(we.parentDragRef||null),this._parentPositions=new he(st),ke.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(re){const we=(0,m.Ig)(re);we!==this._disabled&&(this._disabled=we,this._toggleNativeDragInteractions(),this._handles.forEach(st=>T(st,we)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(re){this._handles=re.map(st=>(0,m.fI)(st)),this._handles.forEach(st=>T(st,this.disabled)),this._toggleNativeDragInteractions();const we=new Set;return this._disabledHandles.forEach(st=>{this._handles.indexOf(st)>-1&&we.add(st)}),this._disabledHandles=we,this}withPreviewTemplate(re){return this._previewTemplate=re,this}withPlaceholderTemplate(re){return this._placeholderTemplate=re,this}withRootElement(re){const we=(0,m.fI)(re);return we!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{we.addEventListener("mousedown",this._pointerDown,be),we.addEventListener("touchstart",this._pointerDown,k),we.addEventListener("dragstart",this._nativeDragStart,be)}),this._initialTransform=void 0,this._rootElement=we),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(re){return this._boundaryElement=re?(0,m.fI)(re):null,this._resizeSubscription.unsubscribe(),re&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(re){return this._parentDragRef=re,this}dispose(){var re,we;this._removeRootElementListeners(this._rootElement),this.isDragging()&&(null===(we=this._rootElement)||void 0===we||we.remove()),null===(re=this._anchor)||void 0===re||re.remove(),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=this._parentDragRef=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(re){!this._disabledHandles.has(re)&&this._handles.indexOf(re)>-1&&(this._disabledHandles.add(re),T(re,!0))}enableHandle(re){this._disabledHandles.has(re)&&(this._disabledHandles.delete(re),T(re,this.disabled))}withDirection(re){return this._direction=re,this}_withDropContainer(re){this._dropContainer=re}getFreeDragPosition(){const re=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:re.x,y:re.y}}setFreeDragPosition(re){return this._activeTransform={x:0,y:0},this._passiveTransform.x=re.x,this._passiveTransform.y=re.y,this._dropContainer||this._applyRootElementTransform(re.x,re.y),this}withPreviewContainer(re){return this._previewContainer=re,this}_sortFromLastPointerPosition(){const re=this._lastKnownPointerPosition;re&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(re),re)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){var re,we;null===(re=this._preview)||void 0===re||re.remove(),null===(we=this._previewRef)||void 0===we||we.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){var re,we;null===(re=this._placeholder)||void 0===re||re.remove(),null===(we=this._placeholderRef)||void 0===we||we.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(re){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:re}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(re),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const we=this._getPointerPositionOnPage(re);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(we),dropPoint:we,event:re})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(re){ut(re)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const we=this._dropContainer;if(we){const st=this._rootElement,Ke=st.parentNode,Et=this._placeholder=this._createPlaceholderElement(),ke=this._anchor=this._anchor||this._document.createComment(""),at=this._getShadowRoot();Ke.insertBefore(ke,st),this._initialTransform=st.style.transform||"",this._preview=this._createPreviewElement(),W(st,!1,ce),this._document.body.appendChild(Ke.replaceChild(Et,st)),this._getPreviewInsertionPoint(Ke,at).appendChild(this._preview),this.started.next({source:this,event:re}),we.start(),this._initialContainer=we,this._initialIndex=we.getItemIndex(this)}else this.started.next({source:this,event:re}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(we?we.getScrollableParents():[])}_initializeDragSequence(re,we){this._parentDragRef&&we.stopPropagation();const st=this.isDragging(),Ke=ut(we),Et=!Ke&&0!==we.button,ke=this._rootElement,at=(0,M.sA)(we),It=!Ke&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),jt=Ke?(0,b.yG)(we):(0,b.X6)(we);if(at&&at.draggable&&"mousedown"===we.type&&we.preventDefault(),st||Et||It||jt)return;if(this._handles.length){const on=ke.style;this._rootElementTapHighlight=on.webkitTapHighlightColor||"",on.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(on=>this._updateOnScroll(on)),this._boundaryElement&&(this._boundaryRect=Ee(this._boundaryElement));const an=this._previewTemplate;this._pickupPositionInElement=an&&an.template&&!an.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,re,we);const Kt=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(we);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:Kt.x,y:Kt.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,we)}_cleanupDragArtifacts(re){W(this._rootElement,!0,ce),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const we=this._dropContainer,st=we.getItemIndex(this),Ke=this._getPointerPositionOnPage(re),Et=this._getDragDistance(Ke),ke=we._isOverContainer(Ke.x,Ke.y);this.ended.next({source:this,distance:Et,dropPoint:Ke,event:re}),this.dropped.next({item:this,currentIndex:st,previousIndex:this._initialIndex,container:we,previousContainer:this._initialContainer,isPointerOverContainer:ke,distance:Et,dropPoint:Ke,event:re}),we.drop(this,st,this._initialIndex,this._initialContainer,ke,Et,Ke),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:re,y:we},{x:st,y:Ke}){let Et=this._initialContainer._getSiblingContainerFromPosition(this,re,we);!Et&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(re,we)&&(Et=this._initialContainer),Et&&Et!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=Et,this._dropContainer.enter(this,re,we,Et===this._initialContainer&&Et.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:Et,currentIndex:Et.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(st,Ke),this._dropContainer._sortItem(this,re,we,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(re,we):this._applyPreviewTransform(re-this._pickupPositionInElement.x,we-this._pickupPositionInElement.y))}_createPreviewElement(){const re=this._previewTemplate,we=this.previewClass,st=re?re.template:null;let Ke;if(st&&re){const Et=re.matchSize?this._initialClientRect:null,ke=re.viewContainer.createEmbeddedView(st,re.context);ke.detectChanges(),Ke=tt(ke,this._document),this._previewRef=ke,re.matchSize?vt(Ke,Et):Ke.style.transform=ot(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else Ke=Ye(this._rootElement),vt(Ke,this._initialClientRect),this._initialTransform&&(Ke.style.transform=this._initialTransform);return Le(Ke.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},ce),T(Ke,!1),Ke.classList.add("cdk-drag-preview"),Ke.setAttribute("dir",this._direction),we&&(Array.isArray(we)?we.forEach(Et=>Ke.classList.add(Et)):Ke.classList.add(we)),Ke}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const re=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(re.left,re.top);const we=function ee(Re){const re=getComputedStyle(Re),we=Q(re,"transition-property"),st=we.find(at=>"transform"===at||"all"===at);if(!st)return 0;const Ke=we.indexOf(st),Et=Q(re,"transition-duration"),ke=Q(re,"transition-delay");return V(Et[Ke])+V(ke[Ke])}(this._preview);return 0===we?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(st=>{const Ke=ke=>{var at;(!ke||(0,M.sA)(ke)===this._preview&&"transform"===ke.propertyName)&&(null===(at=this._preview)||void 0===at||at.removeEventListener("transitionend",Ke),st(),clearTimeout(Et))},Et=setTimeout(Ke,1.5*we);this._preview.addEventListener("transitionend",Ke)}))}_createPlaceholderElement(){const re=this._placeholderTemplate,we=re?re.template:null;let st;return we?(this._placeholderRef=re.viewContainer.createEmbeddedView(we,re.context),this._placeholderRef.detectChanges(),st=tt(this._placeholderRef,this._document)):st=Ye(this._rootElement),st.style.pointerEvents="none",st.classList.add("cdk-drag-placeholder"),st}_getPointerPositionInElement(re,we,st){const Ke=we===this._rootElement?null:we,Et=Ke?Ke.getBoundingClientRect():re,ke=ut(st)?st.targetTouches[0]:st,at=this._getViewportScrollPosition();return{x:Et.left-re.left+(ke.pageX-Et.left-at.left),y:Et.top-re.top+(ke.pageY-Et.top-at.top)}}_getPointerPositionOnPage(re){const we=this._getViewportScrollPosition(),st=ut(re)?re.touches[0]||re.changedTouches[0]||{pageX:0,pageY:0}:re,Ke=st.pageX-we.left,Et=st.pageY-we.top;if(this._ownerSVGElement){const ke=this._ownerSVGElement.getScreenCTM();if(ke){const at=this._ownerSVGElement.createSVGPoint();return at.x=Ke,at.y=Et,at.matrixTransform(ke.inverse())}}return{x:Ke,y:Et}}_getConstrainedPointerPosition(re){const we=this._dropContainer?this._dropContainer.lockAxis:null;let{x:st,y:Ke}=this.constrainPosition?this.constrainPosition(re,this,this._initialClientRect,this._pickupPositionInElement):re;if("x"===this.lockAxis||"x"===we?Ke=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===we)&&(st=this._pickupPositionOnPage.x),this._boundaryRect){const{x:Et,y:ke}=this._pickupPositionInElement,at=this._boundaryRect,{width:It,height:jt}=this._getPreviewRect(),an=at.top+ke,Kt=at.bottom-(jt-ke);st=Fe(st,at.left+Et,at.right-(It-Et)),Ke=Fe(Ke,an,Kt)}return{x:st,y:Ke}}_updatePointerDirectionDelta(re){const{x:we,y:st}=re,Ke=this._pointerDirectionDelta,Et=this._pointerPositionAtLastDirectionChange,ke=Math.abs(we-Et.x),at=Math.abs(st-Et.y);return ke>this._config.pointerDirectionChangeThreshold&&(Ke.x=we>Et.x?1:-1,Et.x=we),at>this._config.pointerDirectionChangeThreshold&&(Ke.y=st>Et.y?1:-1,Et.y=st),Ke}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const re=this._handles.length>0||!this.isDragging();re!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=re,T(this._rootElement,re))}_removeRootElementListeners(re){re.removeEventListener("mousedown",this._pointerDown,be),re.removeEventListener("touchstart",this._pointerDown,k),re.removeEventListener("dragstart",this._nativeDragStart,be)}_applyRootElementTransform(re,we){const st=ot(re,we),Ke=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=Ke.transform&&"none"!=Ke.transform?Ke.transform:""),Ke.transform=F(st,this._initialTransform)}_applyPreviewTransform(re,we){var st;const Ke=null!==(st=this._previewTemplate)&&void 0!==st&&st.template?void 0:this._initialTransform,Et=ot(re,we);this._preview.style.transform=F(Et,Ke)}_getDragDistance(re){const we=this._pickupPositionOnPage;return we?{x:re.x-we.x,y:re.y-we.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:re,y:we}=this._passiveTransform;if(0===re&&0===we||this.isDragging()||!this._boundaryElement)return;const st=this._rootElement.getBoundingClientRect(),Ke=this._boundaryElement.getBoundingClientRect();if(0===Ke.width&&0===Ke.height||0===st.width&&0===st.height)return;const Et=Ke.left-st.left,ke=st.right-Ke.right,at=Ke.top-st.top,It=st.bottom-Ke.bottom;Ke.width>st.width?(Et>0&&(re+=Et),ke>0&&(re-=ke)):re=0,Ke.height>st.height?(at>0&&(we+=at),It>0&&(we-=It)):we=0,(re!==this._passiveTransform.x||we!==this._passiveTransform.y)&&this.setFreeDragPosition({y:we,x:re})}_getDragStartDelay(re){const we=this.dragStartDelay;return"number"==typeof we?we:ut(re)?we.touch:we?we.mouse:0}_updateOnScroll(re){const we=this._parentPositions.handleScroll(re);if(we){const st=(0,M.sA)(re);this._boundaryRect&&st!==this._boundaryElement&&st.contains(this._boundaryElement)&&ve(this._boundaryRect,we.top,we.left),this._pickupPositionOnPage.x+=we.left,this._pickupPositionOnPage.y+=we.top,this._dropContainer||(this._activeTransform.x-=we.left,this._activeTransform.y-=we.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){var re;return(null===(re=this._parentPositions.positions.get(this._document))||void 0===re?void 0:re.scrollPosition)||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=(0,M.kV)(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(re,we){const st=this._previewContainer||"global";if("parent"===st)return re;if("global"===st){const Ke=this._document;return we||Ke.fullscreenElement||Ke.webkitFullscreenElement||Ke.mozFullScreenElement||Ke.msFullscreenElement||Ke.body}return(0,m.fI)(st)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(re){return this._handles.find(we=>re.target&&(re.target===we||we.contains(re.target)))}}function ot(Re,re){return`translate3d(${Math.round(Re)}px, ${Math.round(re)}px, 0)`}function Fe(Re,re,we){return Math.max(re,Math.min(we,Re))}function ut(Re){return"t"===Re.type[0]}function tt(Re,re){const we=Re.rootNodes;if(1===we.length&&we[0].nodeType===re.ELEMENT_NODE)return we[0];const st=re.createElement("div");return we.forEach(Ke=>st.appendChild(Ke)),st}function vt(Re,re){Re.style.width=`${re.width}px`,Re.style.height=`${re.height}px`,Re.style.transform=ot(re.left,re.top)}function X(Re,re,we){const st=ye(re,Re.length-1),Ke=ye(we,Re.length-1);if(st===Ke)return;const Et=Re[st],ke=Ke0)return null;const at="horizontal"===this.orientation,It=Et.findIndex(Ze=>Ze.drag===re),jt=Et[ke],Kt=jt.clientRect,on=It>ke?1:-1,Cn=this._getItemOffsetPx(Et[It].clientRect,Kt,on),Tt=this._getSiblingOffsetPx(It,Et,on),Dt=Et.slice();return X(Et,It,ke),Et.forEach((Ze,wt)=>{if(Dt[wt]===Ze)return;const Ft=Ze.drag===re,ln=Ft?Cn:Tt,bn=Ft?re.getPlaceholderElement():Ze.drag.getRootElement();Ze.offset+=ln,at?(bn.style.transform=F(`translate3d(${Math.round(Ze.offset)}px, 0, 0)`,Ze.initialTransform),ve(Ze.clientRect,0,ln)):(bn.style.transform=F(`translate3d(0, ${Math.round(Ze.offset)}px, 0)`,Ze.initialTransform),ve(Ze.clientRect,ln,0))}),this._previousSwap.overlaps=ge(Kt,we,st),this._previousSwap.drag=jt.drag,this._previousSwap.delta=at?Ke.x:Ke.y,{previousIndex:It,currentIndex:ke}}enter(re,we,st,Ke){const Et=null==Ke||Ke<0?this._getItemIndexFromPointerPosition(re,we,st):Ke,ke=this._activeDraggables,at=ke.indexOf(re),It=re.getPlaceholderElement();let jt=ke[Et];if(jt===re&&(jt=ke[Et+1]),!jt&&(null==Et||-1===Et||Et-1&&ke.splice(at,1),jt&&!this._dragDropRegistry.isDragging(jt)){const an=jt.getRootElement();an.parentElement.insertBefore(It,an),ke.splice(Et,0,re)}else(0,m.fI)(this._element).appendChild(It),ke.push(re);It.style.transform="",this._cacheItemPositions()}withItems(re){this._activeDraggables=re.slice(),this._cacheItemPositions()}withSortPredicate(re){this._sortPredicate=re}reset(){this._activeDraggables.forEach(re=>{const we=re.getRootElement();if(we){var st;const Ke=null===(st=this._itemPositions.find(Et=>Et.drag===re))||void 0===st?void 0:st.initialTransform;we.style.transform=Ke||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(re){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(st=>st.drag===re)}updateOnScroll(re,we){this._itemPositions.forEach(({clientRect:st})=>{ve(st,re,we)}),this._itemPositions.forEach(({drag:st})=>{this._dragDropRegistry.isDragging(st)&&st._sortFromLastPointerPosition()})}_cacheItemPositions(){const re="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(we=>{const st=we.getVisibleElement();return{drag:we,offset:0,initialTransform:st.style.transform||"",clientRect:Ee(st)}}).sort((we,st)=>re?we.clientRect.left-st.clientRect.left:we.clientRect.top-st.clientRect.top)}_getItemOffsetPx(re,we,st){const Ke="horizontal"===this.orientation;let Et=Ke?we.left-re.left:we.top-re.top;return-1===st&&(Et+=Ke?we.width-re.width:we.height-re.height),Et}_getSiblingOffsetPx(re,we,st){const Ke="horizontal"===this.orientation,Et=we[re].clientRect,ke=we[re+-1*st];let at=Et[Ke?"width":"height"]*st;if(ke){const It=Ke?"left":"top",jt=Ke?"right":"bottom";-1===st?at-=ke.clientRect[It]-Et[jt]:at+=Et[It]-ke.clientRect[jt]}return at}_shouldEnterAsFirstChild(re,we){if(!this._activeDraggables.length)return!1;const st=this._itemPositions,Ke="horizontal"===this.orientation;if(st[0].drag!==this._activeDraggables[0]){const ke=st[st.length-1].clientRect;return Ke?re>=ke.right:we>=ke.bottom}{const ke=st[0].clientRect;return Ke?re<=ke.left:we<=ke.top}}_getItemIndexFromPointerPosition(re,we,st,Ke){const Et="horizontal"===this.orientation,ke=this._itemPositions.findIndex(({drag:at,clientRect:It})=>{if(at===re)return!1;if(Ke){const jt=Et?Ke.x:Ke.y;if(at===this._previousSwap.drag&&this._previousSwap.overlaps&&jt===this._previousSwap.delta)return!1}return Et?we>=Math.floor(It.left)&&we=Math.floor(It.top)&&st!0,this.sortPredicate=()=>!0,this.beforeStarted=new D.x,this.entered=new D.x,this.exited=new D.x,this.dropped=new D.x,this.sorted=new D.x,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=v.w0.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new D.x,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),(0,R.F)(0,B.Z).pipe((0,O.R)(this._stopScrollTimers)).subscribe(()=>{const ke=this._scrollNode,at=this.autoScrollStep;1===this._verticalScrollDirection?ke.scrollBy(0,-at):2===this._verticalScrollDirection&&ke.scrollBy(0,at),1===this._horizontalScrollDirection?ke.scrollBy(-at,0):2===this._horizontalScrollDirection&&ke.scrollBy(at,0)})},this.element=(0,m.fI)(re),this._document=st,this.withScrollableParents([this.element]),we.registerDropContainer(this),this._parentPositions=new he(st),this._sortStrategy=new _e(this.element,we),this._sortStrategy.withSortPredicate((ke,at)=>this.sortPredicate(ke,at,this))}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(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(re,we,st,Ke){this._draggingStarted(),null==Ke&&this.sortingDisabled&&(Ke=this._draggables.indexOf(re)),this._sortStrategy.enter(re,we,st,Ke),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:re,container:this,currentIndex:this.getItemIndex(re)})}exit(re){this._reset(),this.exited.next({item:re,container:this})}drop(re,we,st,Ke,Et,ke,at,It={}){this._reset(),this.dropped.next({item:re,currentIndex:we,previousIndex:st,container:this,previousContainer:Ke,isPointerOverContainer:Et,distance:ke,dropPoint:at,event:It})}withItems(re){const we=this._draggables;return this._draggables=re,re.forEach(st=>st._withDropContainer(this)),this.isDragging()&&(we.filter(Ke=>Ke.isDragging()).every(Ke=>-1===re.indexOf(Ke))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(re){return this._sortStrategy.direction=re,this}connectedTo(re){return this._siblings=re.slice(),this}withOrientation(re){return this._sortStrategy.orientation=re,this}withScrollableParents(re){const we=(0,m.fI)(this.element);return this._scrollableElements=-1===re.indexOf(we)?[we,...re]:re.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(re){return this._isDragging?this._sortStrategy.getItemIndex(re):this._draggables.indexOf(re)}isReceiving(){return this._activeSiblings.size>0}_sortItem(re,we,st,Ke){if(this.sortingDisabled||!this._clientRect||!De(this._clientRect,.05,we,st))return;const Et=this._sortStrategy.sort(re,we,st,Ke);Et&&this.sorted.next({previousIndex:Et.previousIndex,currentIndex:Et.currentIndex,container:this,item:re})}_startScrollingIfNecessary(re,we){if(this.autoScrollDisabled)return;let st,Ke=0,Et=0;if(this._parentPositions.positions.forEach((ke,at)=>{at===this._document||!ke.clientRect||st||De(ke.clientRect,.05,re,we)&&([Ke,Et]=function u(Re,re,we,st){const Ke=fe(re,st),Et=r(re,we);let ke=0,at=0;if(Ke){const It=Re.scrollTop;1===Ke?It>0&&(ke=1):Re.scrollHeight-It>Re.clientHeight&&(ke=2)}if(Et){const It=Re.scrollLeft;1===Et?It>0&&(at=1):Re.scrollWidth-It>Re.clientWidth&&(at=2)}return[ke,at]}(at,ke.clientRect,re,we),(Ke||Et)&&(st=at))}),!Ke&&!Et){const{width:ke,height:at}=this._viewportRuler.getViewportSize(),It={width:ke,height:at,top:0,right:ke,bottom:at,left:0};Ke=fe(It,we),Et=r(It,re),st=window}st&&(Ke!==this._verticalScrollDirection||Et!==this._horizontalScrollDirection||st!==this._scrollNode)&&(this._verticalScrollDirection=Ke,this._horizontalScrollDirection=Et,this._scrollNode=st,(Ke||Et)&&st?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const re=(0,m.fI)(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=re.msScrollSnapType||re.scrollSnapType||"",re.scrollSnapType=re.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const re=(0,m.fI)(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(re).clientRect}_reset(){this._isDragging=!1;const re=(0,m.fI)(this.element).style;re.scrollSnapType=re.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(we=>we._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(re,we){return null!=this._clientRect&&ge(this._clientRect,re,we)}_getSiblingContainerFromPosition(re,we,st){return this._siblings.find(Ke=>Ke._canReceive(re,we,st))}_canReceive(re,we,st){if(!this._clientRect||!ge(this._clientRect,we,st)||!this.enterPredicate(re,this))return!1;const Ke=this._getShadowRoot().elementFromPoint(we,st);if(!Ke)return!1;const Et=(0,m.fI)(this.element);return Ke===Et||Et.contains(Ke)}_startReceiving(re,we){const st=this._activeSiblings;!st.has(re)&&we.every(Ke=>this.enterPredicate(Ke,this)||this._draggables.indexOf(Ke)>-1)&&(st.add(re),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(re){this._activeSiblings.delete(re),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(re=>{if(this.isDragging()){const we=this._parentPositions.handleScroll(re);we&&this._sortStrategy.updateOnScroll(we.top,we.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const re=(0,M.kV)((0,m.fI)(this.element));this._cachedShadowRoot=re||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const re=this._sortStrategy.getActiveItemsSnapshot().filter(we=>we.isDragging());this._siblings.forEach(we=>we._startReceiving(this,re))}}function fe(Re,re){const{top:we,bottom:st,height:Ke}=Re,Et=.05*Ke;return re>=we-Et&&re<=we+Et?1:re>=st-Et&&re<=st+Et?2:0}function r(Re,re){const{left:we,right:st,width:Ke}=Re,Et=.05*Ke;return re>=we-Et&&re<=we+Et?1:re>=st-Et&&re<=st+Et?2:0}const _=(0,M.i$)({passive:!1,capture:!0});let E=(()=>{class Re{constructor(we,st){this._ngZone=we,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=Ke=>Ke.isDragging(),this.pointerMove=new D.x,this.pointerUp=new D.x,this.scroll=new D.x,this._preventDefaultWhileDragging=Ke=>{this._activeDragInstances.length>0&&Ke.preventDefault()},this._persistentTouchmoveListener=Ke=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&Ke.preventDefault(),this.pointerMove.next(Ke))},this._document=st}registerDropContainer(we){this._dropInstances.has(we)||this._dropInstances.add(we)}registerDragItem(we){this._dragInstances.add(we),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,_)})}removeDropContainer(we){this._dropInstances.delete(we)}removeDragItem(we){this._dragInstances.delete(we),this.stopDragging(we),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,_)}startDragging(we,st){if(!(this._activeDragInstances.indexOf(we)>-1)&&(this._activeDragInstances.push(we),1===this._activeDragInstances.length)){const Ke=st.type.startsWith("touch");this._globalListeners.set(Ke?"touchend":"mouseup",{handler:Et=>this.pointerUp.next(Et),options:!0}).set("scroll",{handler:Et=>this.scroll.next(Et),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:_}),Ke||this._globalListeners.set("mousemove",{handler:Et=>this.pointerMove.next(Et),options:_}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((Et,ke)=>{this._document.addEventListener(ke,Et.handler,Et.options)})})}}stopDragging(we){const st=this._activeDragInstances.indexOf(we);st>-1&&(this._activeDragInstances.splice(st,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(we){return this._activeDragInstances.indexOf(we)>-1}scrolled(we){const st=[this.scroll];return we&&we!==this._document&&st.push(new w.y(Ke=>this._ngZone.runOutsideAngular(()=>{const ke=at=>{this._activeDragInstances.length&&Ke.next(at)};return we.addEventListener("scroll",ke,!0),()=>{we.removeEventListener("scroll",ke,!0)}}))),(0,L.T)(...st)}ngOnDestroy(){this._dragInstances.forEach(we=>this.removeDragItem(we)),this._dropInstances.forEach(we=>this.removeDropContainer(we)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((we,st)=>{this._document.removeEventListener(st,we.handler,we.options)}),this._globalListeners.clear()}}return Re.\u0275fac=function(we){return new(we||Re)(e.LFG(e.R0b),e.LFG(A.K0))},Re.\u0275prov=e.Yz7({token:Re,factory:Re.\u0275fac,providedIn:"root"}),Re})();const h={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let a=(()=>{class Re{constructor(we,st,Ke,Et){this._document=we,this._ngZone=st,this._viewportRuler=Ke,this._dragDropRegistry=Et}createDrag(we,st=h){return new xe(we,st,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(we){return new Ce(we,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return Re.\u0275fac=function(we){return new(we||Re)(e.LFG(A.K0),e.LFG(e.R0b),e.LFG(C.rL),e.LFG(E))},Re.\u0275prov=e.Yz7({token:Re,factory:Re.\u0275fac,providedIn:"root"}),Re})();const i=new e.OlP("CDK_DRAG_PARENT"),t=new e.OlP("CdkDropListGroup"),o=new e.OlP("CDK_DRAG_CONFIG");let l=0;const d=new e.OlP("CdkDropList");let c=(()=>{class Re{constructor(we,st,Ke,Et,ke,at,It){this.element=we,this._changeDetectorRef=Ke,this._scrollDispatcher=Et,this._dir=ke,this._group=at,this._destroyed=new D.x,this.connectedTo=[],this.id="cdk-drop-list-"+l++,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.dropped=new e.vpe,this.entered=new e.vpe,this.exited=new e.vpe,this.sorted=new e.vpe,this._unsortedItems=new Set,this._dropListRef=st.createDropList(we),this._dropListRef.data=this,It&&this._assignDefaults(It),this._dropListRef.enterPredicate=(jt,an)=>this.enterPredicate(jt.data,an.data),this._dropListRef.sortPredicate=(jt,an,Kt)=>this.sortPredicate(jt,an.data,Kt.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),Re._dropLists.push(this),at&&at._items.add(this)}get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(we){this._dropListRef.disabled=this._disabled=(0,m.Ig)(we)}addItem(we){this._unsortedItems.add(we),this._dropListRef.isDragging()&&this._syncItemsWithRef()}removeItem(we){this._unsortedItems.delete(we),this._dropListRef.isDragging()&&this._syncItemsWithRef()}getSortedItems(){return Array.from(this._unsortedItems).sort((we,st)=>we._dragRef.getVisibleElement().compareDocumentPosition(st._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){const we=Re._dropLists.indexOf(this);we>-1&&Re._dropLists.splice(we,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}_setupInputSyncSubscription(we){this._dir&&this._dir.change.pipe((0,q.O)(this._dir.value),(0,O.R)(this._destroyed)).subscribe(st=>we.withDirection(st)),we.beforeStarted.subscribe(()=>{const st=(0,m.Eq)(this.connectedTo).map(Ke=>"string"==typeof Ke?Re._dropLists.find(ke=>ke.id===Ke):Ke);if(this._group&&this._group._items.forEach(Ke=>{-1===st.indexOf(Ke)&&st.push(Ke)}),!this._scrollableParentsResolved){const Ke=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(Et=>Et.getElementRef().nativeElement);this._dropListRef.withScrollableParents(Ke),this._scrollableParentsResolved=!0}we.disabled=this.disabled,we.lockAxis=this.lockAxis,we.sortingDisabled=(0,m.Ig)(this.sortingDisabled),we.autoScrollDisabled=(0,m.Ig)(this.autoScrollDisabled),we.autoScrollStep=(0,m.su)(this.autoScrollStep,2),we.connectedTo(st.filter(Ke=>Ke&&Ke!==this).map(Ke=>Ke._dropListRef)).withOrientation(this.orientation)})}_handleEvents(we){we.beforeStarted.subscribe(()=>{this._syncItemsWithRef(),this._changeDetectorRef.markForCheck()}),we.entered.subscribe(st=>{this.entered.emit({container:this,item:st.item.data,currentIndex:st.currentIndex})}),we.exited.subscribe(st=>{this.exited.emit({container:this,item:st.item.data}),this._changeDetectorRef.markForCheck()}),we.sorted.subscribe(st=>{this.sorted.emit({previousIndex:st.previousIndex,currentIndex:st.currentIndex,container:this,item:st.item.data})}),we.dropped.subscribe(st=>{this.dropped.emit({previousIndex:st.previousIndex,currentIndex:st.currentIndex,previousContainer:st.previousContainer.data,container:st.container.data,item:st.item.data,isPointerOverContainer:st.isPointerOverContainer,distance:st.distance,dropPoint:st.dropPoint,event:st.event}),this._changeDetectorRef.markForCheck()})}_assignDefaults(we){const{lockAxis:st,draggingDisabled:Ke,sortingDisabled:Et,listAutoScrollDisabled:ke,listOrientation:at}=we;this.disabled=Ke??!1,this.sortingDisabled=Et??!1,this.autoScrollDisabled=ke??!1,this.orientation=at||"vertical",st&&(this.lockAxis=st)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(we=>we._dragRef))}}return Re._dropLists=[],Re.\u0275fac=function(we){return new(we||Re)(e.Y36(e.SBq),e.Y36(a),e.Y36(e.sBO),e.Y36(C.mF),e.Y36(pe.Is,8),e.Y36(t,12),e.Y36(o,8))},Re.\u0275dir=e.lG2({type:Re,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(we,st){2&we&&(e.uIk("id",st.id),e.ekj("cdk-drop-list-disabled",st.disabled)("cdk-drop-list-dragging",st._dropListRef.isDragging())("cdk-drop-list-receiving",st._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],data:["cdkDropListData","data"],orientation:["cdkDropListOrientation","orientation"],id:"id",lockAxis:["cdkDropListLockAxis","lockAxis"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],sortPredicate:["cdkDropListSortPredicate","sortPredicate"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],autoScrollStep:["cdkDropListAutoScrollStep","autoScrollStep"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[e._Bn([{provide:t,useValue:void 0},{provide:d,useExisting:Re}])]}),Re})();const S=new e.OlP("CdkDragHandle"),ht=new e.OlP("CdkDragPlaceholder"),et=new e.OlP("CdkDragPreview");let He=(()=>{class Re{constructor(we,st,Ke,Et,ke,at,It,jt,an,Kt,on){this.element=we,this.dropContainer=st,this._ngZone=Et,this._viewContainerRef=ke,this._dir=It,this._changeDetectorRef=an,this._selfHandle=Kt,this._parentDrag=on,this._destroyed=new D.x,this.started=new e.vpe,this.released=new e.vpe,this.ended=new e.vpe,this.entered=new e.vpe,this.exited=new e.vpe,this.dropped=new e.vpe,this.moved=new w.y(Cn=>{const Tt=this._dragRef.moved.pipe((0,te.U)(Dt=>({source:this,pointerPosition:Dt.pointerPosition,event:Dt.event,delta:Dt.delta,distance:Dt.distance}))).subscribe(Cn);return()=>{Tt.unsubscribe()}}),this._dragRef=jt.createDrag(we,{dragStartThreshold:at&&null!=at.dragStartThreshold?at.dragStartThreshold:5,pointerDirectionChangeThreshold:at&&null!=at.pointerDirectionChangeThreshold?at.pointerDirectionChangeThreshold:5,zIndex:at?.zIndex}),this._dragRef.data=this,Re._dragInstances.push(this),at&&this._assignDefaults(at),st&&(this._dragRef._withDropContainer(st._dropListRef),st.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(we){this._disabled=(0,m.Ig)(we),this._dragRef.disabled=this._disabled}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}setFreeDragPosition(we){this._dragRef.setFreeDragPosition(we)}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,z.q)(1),(0,O.R)(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._setupHandlesListener(),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})})}ngOnChanges(we){const st=we.rootElementSelector,Ke=we.freeDragPosition;st&&!st.firstChange&&this._updateRootElement(),Ke&&!Ke.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const we=Re._dragInstances.indexOf(this);we>-1&&Re._dragInstances.splice(we,1),this._ngZone.runOutsideAngular(()=>{this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_updateRootElement(){const we=this.element.nativeElement;let st=we;var Ke;this.rootElementSelector&&(st=void 0!==we.closest?we.closest(this.rootElementSelector):null===(Ke=we.parentElement)||void 0===Ke?void 0:Ke.closest(this.rootElementSelector)),this._dragRef.withRootElement(st||we)}_getBoundaryElement(){const we=this.boundaryElement;return we?"string"==typeof we?this.element.nativeElement.closest(we):(0,m.fI)(we):null}_syncInputs(we){we.beforeStarted.subscribe(()=>{if(!we.isDragging()){const st=this._dir,Ke=this.dragStartDelay,Et=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,ke=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;we.disabled=this.disabled,we.lockAxis=this.lockAxis,we.dragStartDelay="object"==typeof Ke&&Ke?Ke:(0,m.su)(Ke),we.constrainPosition=this.constrainPosition,we.previewClass=this.previewClass,we.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(Et).withPreviewTemplate(ke).withPreviewContainer(this.previewContainer||"global"),st&&we.withDirection(st.value)}}),we.beforeStarted.pipe((0,z.q)(1)).subscribe(()=>{if(this._parentDrag)return void we.withParent(this._parentDrag._dragRef);let st=this.element.nativeElement.parentElement;for(;st;){if(st.classList.contains("cdk-drag")){var Ke;we.withParent((null===(Ke=Re._dragInstances.find(Et=>Et.element.nativeElement===st))||void 0===Ke?void 0:Ke._dragRef)||null);break}st=st.parentElement}})}_handleEvents(we){we.started.subscribe(st=>{this.started.emit({source:this,event:st.event}),this._changeDetectorRef.markForCheck()}),we.released.subscribe(st=>{this.released.emit({source:this,event:st.event})}),we.ended.subscribe(st=>{this.ended.emit({source:this,distance:st.distance,dropPoint:st.dropPoint,event:st.event}),this._changeDetectorRef.markForCheck()}),we.entered.subscribe(st=>{this.entered.emit({container:st.container.data,item:this,currentIndex:st.currentIndex})}),we.exited.subscribe(st=>{this.exited.emit({container:st.container.data,item:this})}),we.dropped.subscribe(st=>{this.dropped.emit({previousIndex:st.previousIndex,currentIndex:st.currentIndex,previousContainer:st.previousContainer.data,container:st.container.data,isPointerOverContainer:st.isPointerOverContainer,item:this,distance:st.distance,dropPoint:st.dropPoint,event:st.event})})}_assignDefaults(we){const{lockAxis:st,dragStartDelay:Ke,constrainPosition:Et,previewClass:ke,boundaryElement:at,draggingDisabled:It,rootElementSelector:jt,previewContainer:an}=we;this.disabled=It??!1,this.dragStartDelay=Ke||0,st&&(this.lockAxis=st),Et&&(this.constrainPosition=Et),ke&&(this.previewClass=ke),at&&(this.boundaryElement=at),jt&&(this.rootElementSelector=jt),an&&(this.previewContainer=an)}_setupHandlesListener(){this._handles.changes.pipe((0,q.O)(this._handles),(0,ie.b)(we=>{const st=we.filter(Ke=>Ke._parentDrag===this).map(Ke=>Ke.element);this._selfHandle&&this.rootElementSelector&&st.push(this.element),this._dragRef.withHandles(st)}),(0,Te.w)(we=>(0,L.T)(...we.map(st=>st._stateChanges.pipe((0,q.O)(st))))),(0,O.R)(this._destroyed)).subscribe(we=>{const st=this._dragRef,Ke=we.element.nativeElement;we.disabled?st.disableHandle(Ke):st.enableHandle(Ke)})}}return Re._dragInstances=[],Re.\u0275fac=function(we){return new(we||Re)(e.Y36(e.SBq),e.Y36(d,12),e.Y36(A.K0),e.Y36(e.R0b),e.Y36(e.s_b),e.Y36(o,8),e.Y36(pe.Is,8),e.Y36(a),e.Y36(e.sBO),e.Y36(S,10),e.Y36(i,12))},Re.\u0275dir=e.lG2({type:Re,selectors:[["","cdkDrag",""]],contentQueries:function(we,st,Ke){if(1&we&&(e.Suo(Ke,et,5),e.Suo(Ke,ht,5),e.Suo(Ke,S,5)),2&we){let Et;e.iGM(Et=e.CRH())&&(st._previewTemplate=Et.first),e.iGM(Et=e.CRH())&&(st._placeholderTemplate=Et.first),e.iGM(Et=e.CRH())&&(st._handles=Et)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(we,st){2&we&&e.ekj("cdk-drag-disabled",st.disabled)("cdk-drag-dragging",st._dragRef.isDragging())},inputs:{data:["cdkDragData","data"],lockAxis:["cdkDragLockAxis","lockAxis"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],boundaryElement:["cdkDragBoundary","boundaryElement"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"],disabled:["cdkDragDisabled","disabled"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],previewContainer:["cdkDragPreviewContainer","previewContainer"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[e._Bn([{provide:i,useExisting:Re}]),e.TTD]}),Re})(),Pe=(()=>{class Re{}return Re.\u0275fac=function(we){return new(we||Re)},Re.\u0275mod=e.oAB({type:Re}),Re.\u0275inj=e.cJS({providers:[a],imports:[C.ZD]}),Re})()},29521:(Xe,ue,p)=>{"use strict";p.d(ue,{A:()=>Z,JH:()=>Le,JU:()=>b,K5:()=>m,Ku:()=>O,LH:()=>Te,L_:()=>L,MW:()=>o,Mf:()=>C,OC:()=>At,SV:()=>pe,Sd:()=>z,VM:()=>q,Vb:()=>zi,Z:()=>n,ZH:()=>A,aO:()=>se,b2:()=>Ln,hY:()=>w,jx:()=>D,oh:()=>ie,uR:()=>te,xE:()=>ee,yY:()=>V,zL:()=>v});const A=8,C=9,m=13,b=16,D=17,v=18,w=27,L=32,O=33,q=34,te=35,z=36,ie=37,Te=38,pe=39,Le=40,V=46,ee=48,se=57,Z=65,n=90,o=91,At=188,Ln=224;function zi(qn,...si){return si.length?si.some(Yi=>qn[Yi]):qn.altKey||qn.shiftKey||qn.ctrlKey||qn.metaKey}},62289:(Xe,ue,p)=>{"use strict";p.d(ue,{Yg:()=>Le,u3:()=>W});var e=p(94650),A=p(21281),C=p(77579),M=p(39841),m=p(97272),b=p(69751),D=p(95698),v=p(35684),R=p(78372),B=p(54004),w=p(68675),L=p(82722),O=p(83353);const te=new Set;let z,ie=(()=>{class F{constructor(ee){this._platform=ee,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):pe}matchMedia(ee){return(this._platform.WEBKIT||this._platform.BLINK)&&function Te(F){if(!te.has(F))try{z||(z=document.createElement("style"),z.setAttribute("type","text/css"),document.head.appendChild(z)),z.sheet&&(z.sheet.insertRule(`@media ${F} {body{ }}`,0),te.add(F))}catch(V){console.error(V)}}(ee),this._matchMedia(ee)}}return F.\u0275fac=function(ee){return new(ee||F)(e.LFG(O.t4))},F.\u0275prov=e.Yz7({token:F,factory:F.\u0275fac,providedIn:"root"}),F})();function pe(F){return{matches:"all"===F||""===F,media:F,addListener:()=>{},removeListener:()=>{}}}let Le=(()=>{class F{constructor(ee,Q){this._mediaMatcher=ee,this._zone=Q,this._queries=new Map,this._destroySubject=new C.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(ee){return T((0,A.Eq)(ee)).some(Ee=>this._registerQuery(Ee).mql.matches)}observe(ee){const Ee=T((0,A.Eq)(ee)).map(ve=>this._registerQuery(ve).observable);let ge=(0,M.a)(Ee);return ge=(0,m.z)(ge.pipe((0,D.q)(1)),ge.pipe((0,v.T)(1),(0,R.b)(0))),ge.pipe((0,B.U)(ve=>{const De={matches:!1,breakpoints:{}};return ve.forEach(({matches:he,query:Ye})=>{De.matches=De.matches||he,De.breakpoints[Ye]=he}),De}))}_registerQuery(ee){if(this._queries.has(ee))return this._queries.get(ee);const Q=this._mediaMatcher.matchMedia(ee),ge={observable:new b.y(ve=>{const De=he=>this._zone.run(()=>ve.next(he));return Q.addListener(De),()=>{Q.removeListener(De)}}).pipe((0,w.O)(Q),(0,B.U)(({matches:ve})=>({query:ee,matches:ve})),(0,L.R)(this._destroySubject)),mql:Q};return this._queries.set(ee,ge),ge}}return F.\u0275fac=function(ee){return new(ee||F)(e.LFG(ie),e.LFG(e.R0b))},F.\u0275prov=e.Yz7({token:F,factory:F.\u0275fac,providedIn:"root"}),F})();function T(F){return F.map(V=>V.split(",")).reduce((V,ee)=>V.concat(ee)).map(V=>V.trim())}const W={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)"}},49643:(Xe,ue,p)=>{"use strict";p.d(ue,{Q8:()=>R,wD:()=>v});var e=p(21281),A=p(94650),C=p(69751),M=p(77579),m=p(78372);let b=(()=>{class B{create(L){return typeof MutationObserver>"u"?null:new MutationObserver(L)}}return B.\u0275fac=function(L){return new(L||B)},B.\u0275prov=A.Yz7({token:B,factory:B.\u0275fac,providedIn:"root"}),B})(),D=(()=>{class B{constructor(L){this._mutationObserverFactory=L,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((L,O)=>this._cleanupObserver(O))}observe(L){const O=(0,e.fI)(L);return new C.y(q=>{const z=this._observeElement(O).subscribe(q);return()=>{z.unsubscribe(),this._unobserveElement(O)}})}_observeElement(L){if(this._observedElements.has(L))this._observedElements.get(L).count++;else{const O=new M.x,q=this._mutationObserverFactory.create(te=>O.next(te));q&&q.observe(L,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(L,{observer:q,stream:O,count:1})}return this._observedElements.get(L).stream}_unobserveElement(L){this._observedElements.has(L)&&(this._observedElements.get(L).count--,this._observedElements.get(L).count||this._cleanupObserver(L))}_cleanupObserver(L){if(this._observedElements.has(L)){const{observer:O,stream:q}=this._observedElements.get(L);O&&O.disconnect(),q.complete(),this._observedElements.delete(L)}}}return B.\u0275fac=function(L){return new(L||B)(A.LFG(b))},B.\u0275prov=A.Yz7({token:B,factory:B.\u0275fac,providedIn:"root"}),B})(),v=(()=>{class B{constructor(L,O,q){this._contentObserver=L,this._elementRef=O,this._ngZone=q,this.event=new A.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(L){this._disabled=(0,e.Ig)(L),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(L){this._debounce=(0,e.su)(L),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const L=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?L.pipe((0,m.b)(this.debounce)):L).subscribe(this.event)})}_unsubscribe(){var L;null===(L=this._currentSubscription)||void 0===L||L.unsubscribe()}}return B.\u0275fac=function(L){return new(L||B)(A.Y36(D),A.Y36(A.SBq),A.Y36(A.R0b))},B.\u0275dir=A.lG2({type:B,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),B})(),R=(()=>{class B{}return B.\u0275fac=function(L){return new(L||B)},B.\u0275mod=A.oAB({type:B}),B.\u0275inj=A.cJS({providers:[b]}),B})()},98184:(Xe,ue,p)=>{"use strict";p.d(ue,{Iu:()=>se,U8:()=>Ce,X_:()=>V,Xj:()=>Be,_G:()=>k,aV:()=>X,pI:()=>_e,xu:()=>ye});var e=p(67376),A=p(36895),C=p(94650),M=p(21281),m=p(83353),b=p(40445),D=p(84080),v=p(77579),R=p(50727),B=p(56451),w=p(95698),L=p(82722),O=p(22529),q=p(29521);const te=(0,m.Mq)();class z{constructor(u,_){this._viewportRuler=u,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=_}attach(){}enable(){if(this._canBeEnabled()){const u=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=u.style.left||"",this._previousHTMLStyles.top=u.style.top||"",u.style.left=(0,M.HM)(-this._previousScrollPosition.left),u.style.top=(0,M.HM)(-this._previousScrollPosition.top),u.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const u=this._document.documentElement,E=u.style,h=this._document.body.style,a=E.scrollBehavior||"",i=h.scrollBehavior||"";this._isEnabled=!1,E.left=this._previousHTMLStyles.left,E.top=this._previousHTMLStyles.top,u.classList.remove("cdk-global-scrollblock"),te&&(E.scrollBehavior=h.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),te&&(E.scrollBehavior=a,h.scrollBehavior=i)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const _=this._document.body,E=this._viewportRuler.getViewportSize();return _.scrollHeight>E.height||_.scrollWidth>E.width}}class Te{constructor(u,_,E,h){this._scrollDispatcher=u,this._ngZone=_,this._viewportRuler=E,this._config=h,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(u){this._overlayRef=u}enable(){if(this._scrollSubscription)return;const u=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=u.subscribe(()=>{const _=this._viewportRuler.getViewportScrollPosition().top;Math.abs(_-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=u.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class pe{enable(){}disable(){}attach(){}}function Le(r,u){return u.some(_=>r.bottom<_.top||r.top>_.bottom||r.right<_.left||r.left>_.right)}function T(r,u){return u.some(_=>r.top<_.top||r.bottom>_.bottom||r.left<_.left||r.right>_.right)}class W{constructor(u,_,E,h){this._scrollDispatcher=u,this._viewportRuler=_,this._ngZone=E,this._config=h,this._scrollSubscription=null}attach(u){this._overlayRef=u}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 _=this._overlayRef.overlayElement.getBoundingClientRect(),{width:E,height:h}=this._viewportRuler.getViewportSize();Le(_,[{width:E,height:h,bottom:h,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 F=(()=>{class r{constructor(_,E,h,a){this._scrollDispatcher=_,this._viewportRuler=E,this._ngZone=h,this.noop=()=>new pe,this.close=i=>new Te(this._scrollDispatcher,this._ngZone,this._viewportRuler,i),this.block=()=>new z(this._viewportRuler,this._document),this.reposition=i=>new W(this._scrollDispatcher,this._viewportRuler,this._ngZone,i),this._document=a}}return r.\u0275fac=function(_){return new(_||r)(C.LFG(e.mF),C.LFG(e.rL),C.LFG(C.R0b),C.LFG(A.K0))},r.\u0275prov=C.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();class V{constructor(u){if(this.scrollStrategy=new pe,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,u){const _=Object.keys(u);for(const E of _)void 0!==u[E]&&(this[E]=u[E])}}}class Ee{constructor(u,_){this.connectionPair=u,this.scrollableViewProperties=_}}let De=(()=>{class r{constructor(_){this._attachedOverlays=[],this._document=_}ngOnDestroy(){this.detach()}add(_){this.remove(_),this._attachedOverlays.push(_)}remove(_){const E=this._attachedOverlays.indexOf(_);E>-1&&this._attachedOverlays.splice(E,1),0===this._attachedOverlays.length&&this.detach()}}return r.\u0275fac=function(_){return new(_||r)(C.LFG(A.K0))},r.\u0275prov=C.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),he=(()=>{class r extends De{constructor(_,E){super(_),this._ngZone=E,this._keydownListener=h=>{const a=this._attachedOverlays;for(let i=a.length-1;i>-1;i--)if(a[i]._keydownEvents.observers.length>0){const t=a[i]._keydownEvents;this._ngZone?this._ngZone.run(()=>t.next(h)):t.next(h);break}}}add(_){super.add(_),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return r.\u0275fac=function(_){return new(_||r)(C.LFG(A.K0),C.LFG(C.R0b,8))},r.\u0275prov=C.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Ye=(()=>{class r extends De{constructor(_,E,h){super(_),this._platform=E,this._ngZone=h,this._cursorStyleIsSet=!1,this._pointerDownListener=a=>{this._pointerDownEventTarget=(0,m.sA)(a)},this._clickListener=a=>{const i=(0,m.sA)(a),t="click"===a.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:i;this._pointerDownEventTarget=null;const n=this._attachedOverlays.slice();for(let o=n.length-1;o>-1;o--){const s=n[o];if(s._outsidePointerEvents.observers.length<1||!s.hasAttached())continue;if(s.overlayElement.contains(i)||s.overlayElement.contains(t))break;const l=s._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>l.next(a)):l.next(a)}}}add(_){if(super.add(_),!this._isAttached){const E=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(E)):this._addEventListeners(E),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=E.style.cursor,E.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const _=this._document.body;_.removeEventListener("pointerdown",this._pointerDownListener,!0),_.removeEventListener("click",this._clickListener,!0),_.removeEventListener("auxclick",this._clickListener,!0),_.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(_.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(_){_.addEventListener("pointerdown",this._pointerDownListener,!0),_.addEventListener("click",this._clickListener,!0),_.addEventListener("auxclick",this._clickListener,!0),_.addEventListener("contextmenu",this._clickListener,!0)}}return r.\u0275fac=function(_){return new(_||r)(C.LFG(A.K0),C.LFG(m.t4),C.LFG(C.R0b,8))},r.\u0275prov=C.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Be=(()=>{class r{constructor(_,E){this._platform=E,this._document=_}ngOnDestroy(){var _;null===(_=this._containerElement)||void 0===_||_.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const _="cdk-overlay-container";if(this._platform.isBrowser||(0,m.Oy)()){const h=this._document.querySelectorAll(`.${_}[platform="server"], .${_}[platform="test"]`);for(let a=0;athis._backdropClick.next(l),this._backdropTransitionendHandler=l=>{this._disposeBackdrop(l.target)},this._keydownEvents=new v.x,this._outsidePointerEvents=new v.x,h.scrollStrategy&&(this._scrollStrategy=h.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=h.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(u){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const _=this._portalOutlet.attach(u);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,w.q)(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),"function"==typeof _?.onDestroy&&_.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),_}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const u=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),u}dispose(){var u;const _=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),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),null===(u=this._host)||void 0===u||u.remove(),this._previousHostParent=this._pane=this._host=null,_&&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(u){u!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=u,this.hasAttached()&&(u.attach(this),this.updatePosition()))}updateSize(u){this._config={...this._config,...u},this._updateElementSize()}setDirection(u){this._config={...this._config,direction:u},this._updateElementDirection()}addPanelClass(u){this._pane&&this._toggleClasses(this._pane,u,!0)}removePanelClass(u){this._pane&&this._toggleClasses(this._pane,u,!1)}getDirection(){const u=this._config.direction;return u?"string"==typeof u?u:u.value:"ltr"}updateScrollStrategy(u){u!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=u,this.hasAttached()&&(u.attach(this),u.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const u=this._pane.style;u.width=(0,M.HM)(this._config.width),u.height=(0,M.HM)(this._config.height),u.minWidth=(0,M.HM)(this._config.minWidth),u.minHeight=(0,M.HM)(this._config.minHeight),u.maxWidth=(0,M.HM)(this._config.maxWidth),u.maxHeight=(0,M.HM)(this._config.maxHeight)}_togglePointerEvents(u){this._pane.style.pointerEvents=u?"":"none"}_attachBackdrop(){const u="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),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),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(u)})}):this._backdropElement.classList.add(u)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const u=this._backdropElement;if(u){if(this._animationsDisabled)return void this._disposeBackdrop(u);u.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{u.addEventListener("transitionend",this._backdropTransitionendHandler)}),u.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(u)},500))}}_toggleClasses(u,_,E){const h=(0,M.Eq)(_||[]).filter(a=>!!a);h.length&&(E?u.classList.add(...h):u.classList.remove(...h))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const u=this._ngZone.onStable.pipe((0,L.R)((0,B.T)(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._host.remove()),u.unsubscribe())})})}_disposeScrollStrategy(){const u=this._scrollStrategy;u&&(u.disable(),u.detach&&u.detach())}_disposeBackdrop(u){u&&(u.removeEventListener("click",this._backdropClickHandler),u.removeEventListener("transitionend",this._backdropTransitionendHandler),u.remove(),this._backdropElement===u&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const le="cdk-overlay-connected-position-bounding-box",N=/([A-Za-z%]+)$/;class k{constructor(u,_,E,h,a){this._viewportRuler=_,this._document=E,this._platform=h,this._overlayContainer=a,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 v.x,this._resizeSubscription=R.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(u)}get positions(){return this._preferredPositions}attach(u){this._validatePositions(),u.hostElement.classList.add(le),this._overlayRef=u,this._boundingBox=u.hostElement,this._pane=u.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(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const u=this._originRect,_=this._overlayRect,E=this._viewportRect,h=this._containerRect,a=[];let i;for(let t of this._preferredPositions){let n=this._getOriginPoint(u,h,t),o=this._getOverlayPoint(n,_,t),s=this._getOverlayFit(o,_,E,t);if(s.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(t,n);this._canFitWithFlexibleDimensions(s,o,E)?a.push({position:t,origin:n,overlayRect:_,boundingBoxRect:this._calculateBoundingBoxRect(n,t)}):(!i||i.overlayFit.visibleArean&&(n=s,t=o)}return this._isPushed=!1,void this._applyPosition(t.position,t.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(i.position,i.originPoint);this._applyPosition(i.position,i.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&be(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(le),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const u=this._lastPosition;if(u){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const _=this._getOriginPoint(this._originRect,this._containerRect,u);this._applyPosition(u,_)}else this.apply()}withScrollableContainers(u){return this._scrollables=u,this}withPositions(u){return this._preferredPositions=u,-1===u.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(u){return this._viewportMargin=u,this}withFlexibleDimensions(u=!0){return this._hasFlexibleDimensions=u,this}withGrowAfterOpen(u=!0){return this._growAfterOpen=u,this}withPush(u=!0){return this._canPush=u,this}withLockedPosition(u=!0){return this._positionLocked=u,this}setOrigin(u){return this._origin=u,this}withDefaultOffsetX(u){return this._offsetX=u,this}withDefaultOffsetY(u){return this._offsetY=u,this}withTransformOriginOn(u){return this._transformOriginSelector=u,this}_getOriginPoint(u,_,E){let h,a;if("center"==E.originX)h=u.left+u.width/2;else{const i=this._isRtl()?u.right:u.left,t=this._isRtl()?u.left:u.right;h="start"==E.originX?i:t}return _.left<0&&(h-=_.left),a="center"==E.originY?u.top+u.height/2:"top"==E.originY?u.top:u.bottom,_.top<0&&(a-=_.top),{x:h,y:a}}_getOverlayPoint(u,_,E){let h,a;return h="center"==E.overlayX?-_.width/2:"start"===E.overlayX?this._isRtl()?-_.width:0:this._isRtl()?0:-_.width,a="center"==E.overlayY?-_.height/2:"top"==E.overlayY?0:-_.height,{x:u.x+h,y:u.y+a}}_getOverlayFit(u,_,E,h){const a=ce(_);let{x:i,y:t}=u,n=this._getOffset(h,"x"),o=this._getOffset(h,"y");n&&(i+=n),o&&(t+=o);let d=0-t,c=t+a.height-E.height,S=this._subtractOverflows(a.width,0-i,i+a.width-E.width),J=this._subtractOverflows(a.height,d,c),ht=S*J;return{visibleArea:ht,isCompletelyWithinViewport:a.width*a.height===ht,fitsInViewportVertically:J===a.height,fitsInViewportHorizontally:S==a.width}}_canFitWithFlexibleDimensions(u,_,E){if(this._hasFlexibleDimensions){const h=E.bottom-_.y,a=E.right-_.x,i=Z(this._overlayRef.getConfig().minHeight),t=Z(this._overlayRef.getConfig().minWidth),o=u.fitsInViewportHorizontally||null!=t&&t<=a;return(u.fitsInViewportVertically||null!=i&&i<=h)&&o}return!1}_pushOverlayOnScreen(u,_,E){if(this._previousPushAmount&&this._positionLocked)return{x:u.x+this._previousPushAmount.x,y:u.y+this._previousPushAmount.y};const h=ce(_),a=this._viewportRect,i=Math.max(u.x+h.width-a.width,0),t=Math.max(u.y+h.height-a.height,0),n=Math.max(a.top-E.top-u.y,0),o=Math.max(a.left-E.left-u.x,0);let s=0,l=0;return s=h.width<=a.width?o||-i:u.xS&&!this._isInitialRender&&!this._growAfterOpen&&(i=u.y-S/2)}if("end"===_.overlayX&&!h||"start"===_.overlayX&&h)d=E.width-u.x+this._viewportMargin,s=u.x-this._viewportMargin;else if("start"===_.overlayX&&!h||"end"===_.overlayX&&h)l=u.x,s=E.right-u.x;else{const c=Math.min(E.right-u.x+E.left,u.x),S=this._lastBoundingBoxSize.width;s=2*c,l=u.x-c,s>S&&!this._isInitialRender&&!this._growAfterOpen&&(l=u.x-S/2)}return{top:i,left:l,bottom:t,right:d,width:s,height:a}}_setBoundingBoxStyles(u,_){const E=this._calculateBoundingBoxRect(u,_);!this._isInitialRender&&!this._growAfterOpen&&(E.height=Math.min(E.height,this._lastBoundingBoxSize.height),E.width=Math.min(E.width,this._lastBoundingBoxSize.width));const h={};if(this._hasExactPosition())h.top=h.left="0",h.bottom=h.right=h.maxHeight=h.maxWidth="",h.width=h.height="100%";else{const a=this._overlayRef.getConfig().maxHeight,i=this._overlayRef.getConfig().maxWidth;h.height=(0,M.HM)(E.height),h.top=(0,M.HM)(E.top),h.bottom=(0,M.HM)(E.bottom),h.width=(0,M.HM)(E.width),h.left=(0,M.HM)(E.left),h.right=(0,M.HM)(E.right),h.alignItems="center"===_.overlayX?"center":"end"===_.overlayX?"flex-end":"flex-start",h.justifyContent="center"===_.overlayY?"center":"bottom"===_.overlayY?"flex-end":"flex-start",a&&(h.maxHeight=(0,M.HM)(a)),i&&(h.maxWidth=(0,M.HM)(i))}this._lastBoundingBoxSize=E,be(this._boundingBox.style,h)}_resetBoundingBoxStyles(){be(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){be(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(u,_){const E={},h=this._hasExactPosition(),a=this._hasFlexibleDimensions,i=this._overlayRef.getConfig();if(h){const s=this._viewportRuler.getViewportScrollPosition();be(E,this._getExactOverlayY(_,u,s)),be(E,this._getExactOverlayX(_,u,s))}else E.position="static";let t="",n=this._getOffset(_,"x"),o=this._getOffset(_,"y");n&&(t+=`translateX(${n}px) `),o&&(t+=`translateY(${o}px)`),E.transform=t.trim(),i.maxHeight&&(h?E.maxHeight=(0,M.HM)(i.maxHeight):a&&(E.maxHeight="")),i.maxWidth&&(h?E.maxWidth=(0,M.HM)(i.maxWidth):a&&(E.maxWidth="")),be(this._pane.style,E)}_getExactOverlayY(u,_,E){let h={top:"",bottom:""},a=this._getOverlayPoint(_,this._overlayRect,u);return this._isPushed&&(a=this._pushOverlayOnScreen(a,this._overlayRect,E)),"bottom"===u.overlayY?h.bottom=this._document.documentElement.clientHeight-(a.y+this._overlayRect.height)+"px":h.top=(0,M.HM)(a.y),h}_getExactOverlayX(u,_,E){let i,h={left:"",right:""},a=this._getOverlayPoint(_,this._overlayRect,u);return this._isPushed&&(a=this._pushOverlayOnScreen(a,this._overlayRect,E)),i=this._isRtl()?"end"===u.overlayX?"left":"right":"end"===u.overlayX?"right":"left","right"===i?h.right=this._document.documentElement.clientWidth-(a.x+this._overlayRect.width)+"px":h.left=(0,M.HM)(a.x),h}_getScrollVisibility(){const u=this._getOriginRect(),_=this._pane.getBoundingClientRect(),E=this._scrollables.map(h=>h.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:T(u,E),isOriginOutsideView:Le(u,E),isOverlayClipped:T(_,E),isOverlayOutsideView:Le(_,E)}}_subtractOverflows(u,..._){return _.reduce((E,h)=>E-Math.max(h,0),u)}_getNarrowedViewportRect(){const u=this._document.documentElement.clientWidth,_=this._document.documentElement.clientHeight,E=this._viewportRuler.getViewportScrollPosition();return{top:E.top+this._viewportMargin,left:E.left+this._viewportMargin,right:E.left+u-this._viewportMargin,bottom:E.top+_-this._viewportMargin,width:u-2*this._viewportMargin,height:_-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(u,_){return"x"===_?u.offsetX??this._offsetX:u.offsetY??this._offsetY}_validatePositions(){}_addPanelClasses(u){this._pane&&(0,M.Eq)(u).forEach(_=>{""!==_&&-1===this._appliedPanelClasses.indexOf(_)&&(this._appliedPanelClasses.push(_),this._pane.classList.add(_))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(u=>{this._pane.classList.remove(u)}),this._appliedPanelClasses=[])}_getOriginRect(){const u=this._origin;if(u instanceof C.SBq)return u.nativeElement.getBoundingClientRect();if(u instanceof Element)return u.getBoundingClientRect();const _=u.width||0,E=u.height||0;return{top:u.y,bottom:u.y+E,left:u.x,right:u.x+_,height:E,width:_}}}function be(r,u){for(let _ in u)u.hasOwnProperty(_)&&(r[_]=u[_]);return r}function Z(r){if("number"!=typeof r&&null!=r){const[u,_]=r.split(N);return _&&"px"!==_?null:parseFloat(u)}return r||null}function ce(r){return{top:Math.floor(r.top),right:Math.floor(r.right),bottom:Math.floor(r.bottom),left:Math.floor(r.left),width:Math.floor(r.width),height:Math.floor(r.height)}}const Fe="cdk-global-overlay-wrapper";class ut{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(u){const _=u.getConfig();this._overlayRef=u,this._width&&!_.width&&u.updateSize({width:this._width}),this._height&&!_.height&&u.updateSize({height:this._height}),u.hostElement.classList.add(Fe),this._isDisposed=!1}top(u=""){return this._bottomOffset="",this._topOffset=u,this._alignItems="flex-start",this}left(u=""){return this._xOffset=u,this._xPosition="left",this}bottom(u=""){return this._topOffset="",this._bottomOffset=u,this._alignItems="flex-end",this}right(u=""){return this._xOffset=u,this._xPosition="right",this}start(u=""){return this._xOffset=u,this._xPosition="start",this}end(u=""){return this._xOffset=u,this._xPosition="end",this}width(u=""){return this._overlayRef?this._overlayRef.updateSize({width:u}):this._width=u,this}height(u=""){return this._overlayRef?this._overlayRef.updateSize({height:u}):this._height=u,this}centerHorizontally(u=""){return this.left(u),this._xPosition="center",this}centerVertically(u=""){return this.top(u),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const u=this._overlayRef.overlayElement.style,_=this._overlayRef.hostElement.style,E=this._overlayRef.getConfig(),{width:h,height:a,maxWidth:i,maxHeight:t}=E,n=!("100%"!==h&&"100vw"!==h||i&&"100%"!==i&&"100vw"!==i),o=!("100%"!==a&&"100vh"!==a||t&&"100%"!==t&&"100vh"!==t),s=this._xPosition,l=this._xOffset,d="rtl"===this._overlayRef.getConfig().direction;let c="",S="",J="";n?J="flex-start":"center"===s?(J="center",d?S=l:c=l):d?"left"===s||"end"===s?(J="flex-end",c=l):("right"===s||"start"===s)&&(J="flex-start",S=l):"left"===s||"start"===s?(J="flex-start",c=l):("right"===s||"end"===s)&&(J="flex-end",S=l),u.position=this._cssPosition,u.marginLeft=n?"0":c,u.marginTop=o?"0":this._topOffset,u.marginBottom=this._bottomOffset,u.marginRight=n?"0":S,_.justifyContent=J,_.alignItems=o?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const u=this._overlayRef.overlayElement.style,_=this._overlayRef.hostElement,E=_.style;_.classList.remove(Fe),E.justifyContent=E.alignItems=u.marginTop=u.marginBottom=u.marginLeft=u.marginRight=u.position="",this._overlayRef=null,this._isDisposed=!0}}let tt=(()=>{class r{constructor(_,E,h,a){this._viewportRuler=_,this._document=E,this._platform=h,this._overlayContainer=a}global(){return new ut}flexibleConnectedTo(_){return new k(_,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return r.\u0275fac=function(_){return new(_||r)(C.LFG(e.rL),C.LFG(A.K0),C.LFG(m.t4),C.LFG(Be))},r.\u0275prov=C.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),vt=0,X=(()=>{class r{constructor(_,E,h,a,i,t,n,o,s,l,d,c){this.scrollStrategies=_,this._overlayContainer=E,this._componentFactoryResolver=h,this._positionBuilder=a,this._keyboardDispatcher=i,this._injector=t,this._ngZone=n,this._document=o,this._directionality=s,this._location=l,this._outsideClickDispatcher=d,this._animationsModuleType=c}create(_){const E=this._createHostElement(),h=this._createPaneElement(E),a=this._createPortalOutlet(h),i=new V(_);return i.direction=i.direction||this._directionality.value,new se(a,E,h,i,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(_){const E=this._document.createElement("div");return E.id="cdk-overlay-"+vt++,E.classList.add("cdk-overlay-pane"),_.appendChild(E),E}_createHostElement(){const _=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(_),_}_createPortalOutlet(_){return this._appRef||(this._appRef=this._injector.get(C.z2F)),new D.u0(_,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return r.\u0275fac=function(_){return new(_||r)(C.LFG(F),C.LFG(Be),C.LFG(C._Vd),C.LFG(tt),C.LFG(he),C.LFG(C.zs3),C.LFG(C.R0b),C.LFG(A.K0),C.LFG(b.Is),C.LFG(A.Ye),C.LFG(Ye),C.LFG(C.QbO,8))},r.\u0275prov=C.Yz7({token:r,factory:r.\u0275fac}),r})();const nt=[{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"}],Ae=new C.OlP("cdk-connected-overlay-scroll-strategy");let ye=(()=>{class r{constructor(_){this.elementRef=_}}return r.\u0275fac=function(_){return new(_||r)(C.Y36(C.SBq))},r.\u0275dir=C.lG2({type:r,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),r})(),_e=(()=>{class r{constructor(_,E,h,a,i){this._overlay=_,this._dir=i,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=R.w0.EMPTY,this._attachSubscription=R.w0.EMPTY,this._detachSubscription=R.w0.EMPTY,this._positionSubscription=R.w0.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new C.vpe,this.positionChange=new C.vpe,this.attach=new C.vpe,this.detach=new C.vpe,this.overlayKeydown=new C.vpe,this.overlayOutsideClick=new C.vpe,this._templatePortal=new D.UE(E,h),this._scrollStrategyFactory=a,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(_){this._offsetX=_,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(_){this._offsetY=_,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(_){this._hasBackdrop=(0,M.Ig)(_)}get lockPosition(){return this._lockPosition}set lockPosition(_){this._lockPosition=(0,M.Ig)(_)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(_){this._flexibleDimensions=(0,M.Ig)(_)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(_){this._growAfterOpen=(0,M.Ig)(_)}get push(){return this._push}set push(_){this._push=(0,M.Ig)(_)}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(_){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),_.origin&&this.open&&this._position.apply()),_.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=nt);const _=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=_.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=_.detachments().subscribe(()=>this.detach.emit()),_.keydownEvents().subscribe(E=>{this.overlayKeydown.next(E),E.keyCode===q.hY&&!this.disableClose&&!(0,q.Vb)(E)&&(E.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(E=>{this.overlayOutsideClick.next(E)})}_buildConfig(){const _=this._position=this.positionStrategy||this._createPositionStrategy(),E=new V({direction:this._dir,positionStrategy:_,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(_){const E=this.positions.map(h=>({originX:h.originX,originY:h.originY,overlayX:h.overlayX,overlayY:h.overlayY,offsetX:h.offsetX||this.offsetX,offsetY:h.offsetY||this.offsetY,panelClass:h.panelClass||void 0}));return _.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(E).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const _=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(_),_}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof ye?this.origin.elementRef:this.origin}_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(_=>{this.backdropClick.emit(_)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe((0,O.o)(()=>this.positionChange.observers.length>0)).subscribe(_=>{this.positionChange.emit(_),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return r.\u0275fac=function(_){return new(_||r)(C.Y36(X),C.Y36(C.Rgc),C.Y36(C.s_b),C.Y36(Ae),C.Y36(b.Is,8))},r.\u0275dir=C.lG2({type:r,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[C.TTD]}),r})();const Ne={provide:Ae,deps:[X],useFactory:function Se(r){return()=>r.scrollStrategies.reposition()}};let Ce=(()=>{class r{}return r.\u0275fac=function(_){return new(_||r)},r.\u0275mod=C.oAB({type:r}),r.\u0275inj=C.cJS({providers:[X,Ne],imports:[b.vT,D.eL,e.Cl,e.Cl]}),r})()},83353:(Xe,ue,p)=>{"use strict";p.d(ue,{Mq:()=>q,Oy:()=>T,_i:()=>te,ht:()=>pe,i$:()=>w,kV:()=>Te,qK:()=>v,sA:()=>Le,t4:()=>M,ud:()=>m});var e=p(94650),A=p(36895);let C;try{C=typeof Intl<"u"&&Intl.v8BreakIterator}catch{C=!1}let b,M=(()=>{class W{constructor(V){this._platformId=V,this.isBrowser=this._platformId?(0,A.NF)(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&&!C)&&typeof CSS<"u"&&!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 W.\u0275fac=function(V){return new(V||W)(e.LFG(e.Lbi))},W.\u0275prov=e.Yz7({token:W,factory:W.\u0275fac,providedIn:"root"}),W})(),m=(()=>{class W{}return W.\u0275fac=function(V){return new(V||W)},W.\u0275mod=e.oAB({type:W}),W.\u0275inj=e.cJS({}),W})();const D=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function v(){if(b)return b;if("object"!=typeof document||!document)return b=new Set(D),b;let W=document.createElement("input");return b=new Set(D.filter(F=>(W.setAttribute("type",F),W.type===F))),b}let R,L,O,z;function w(W){return function B(){if(null==R&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>R=!0}))}finally{R=R||!1}return R}()?W:!!W.capture}function q(){if(null==O){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return O=!1,O;if("scrollBehavior"in document.documentElement.style)O=!0;else{const W=Element.prototype.scrollTo;O=!!W&&!/\{\s*\[native code\]\s*\}/.test(W.toString())}}return O}function te(){if("object"!=typeof document||!document)return 0;if(null==L){const W=document.createElement("div"),F=W.style;W.dir="rtl",F.width="1px",F.overflow="auto",F.visibility="hidden",F.pointerEvents="none",F.position="absolute";const V=document.createElement("div"),ee=V.style;ee.width="2px",ee.height="1px",W.appendChild(V),document.body.appendChild(W),L=0,0===W.scrollLeft&&(W.scrollLeft=1,L=0===W.scrollLeft?1:2),W.remove()}return L}function Te(W){if(function ie(){if(null==z){const W=typeof document<"u"?document.head:null;z=!(!W||!W.createShadowRoot&&!W.attachShadow)}return z}()){const F=W.getRootNode?W.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&F instanceof ShadowRoot)return F}return null}function pe(){let W=typeof document<"u"&&document?document.activeElement:null;for(;W&&W.shadowRoot;){const F=W.shadowRoot.activeElement;if(F===W)break;W=F}return W}function Le(W){return W.composedPath?W.composedPath()[0]:W.target}function T(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},84080:(Xe,ue,p)=>{"use strict";p.d(ue,{C5:()=>B,Pl:()=>pe,UE:()=>w,eL:()=>T,en:()=>O,ig:()=>ie,u0:()=>te});var e=p(94650),A=p(36895);class R{attach(V){return this._attachedHost=V,V.attach(this)}detach(){let V=this._attachedHost;null!=V&&(this._attachedHost=null,V.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(V){this._attachedHost=V}}class B extends R{constructor(V,ee,Q,Ee){super(),this.component=V,this.viewContainerRef=ee,this.injector=Q,this.componentFactoryResolver=Ee}}class w extends R{constructor(V,ee,Q,Ee){super(),this.templateRef=V,this.viewContainerRef=ee,this.context=Q,this.injector=Ee}get origin(){return this.templateRef.elementRef}attach(V,ee=this.context){return this.context=ee,super.attach(V)}detach(){return this.context=void 0,super.detach()}}class L extends R{constructor(V){super(),this.element=V instanceof e.SBq?V.nativeElement:V}}class O{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(V){return V instanceof B?(this._attachedPortal=V,this.attachComponentPortal(V)):V instanceof w?(this._attachedPortal=V,this.attachTemplatePortal(V)):this.attachDomPortal&&V instanceof L?(this._attachedPortal=V,this.attachDomPortal(V)):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(V){this._disposeFn=V}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class te extends O{constructor(V,ee,Q,Ee,ge){super(),this.outletElement=V,this._componentFactoryResolver=ee,this._appRef=Q,this._defaultInjector=Ee,this.attachDomPortal=ve=>{const De=ve.element,he=this._document.createComment("dom-portal");De.parentNode.insertBefore(he,De),this.outletElement.appendChild(De),this._attachedPortal=ve,super.setDisposeFn(()=>{he.parentNode&&he.parentNode.replaceChild(De,he)})},this._document=ge}attachComponentPortal(V){const Q=(V.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(V.component);let Ee;return V.viewContainerRef?(Ee=V.viewContainerRef.createComponent(Q,V.viewContainerRef.length,V.injector||V.viewContainerRef.injector),this.setDisposeFn(()=>Ee.destroy())):(Ee=Q.create(V.injector||this._defaultInjector||e.zs3.NULL),this._appRef.attachView(Ee.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(Ee.hostView),Ee.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(Ee)),this._attachedPortal=V,Ee}attachTemplatePortal(V){let ee=V.viewContainerRef,Q=ee.createEmbeddedView(V.templateRef,V.context,{injector:V.injector});return Q.rootNodes.forEach(Ee=>this.outletElement.appendChild(Ee)),Q.detectChanges(),this.setDisposeFn(()=>{let Ee=ee.indexOf(Q);-1!==Ee&&ee.remove(Ee)}),this._attachedPortal=V,Q}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(V){return V.hostView.rootNodes[0]}}let ie=(()=>{class F extends w{constructor(ee,Q){super(ee,Q)}}return F.\u0275fac=function(ee){return new(ee||F)(e.Y36(e.Rgc),e.Y36(e.s_b))},F.\u0275dir=e.lG2({type:F,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[e.qOj]}),F})(),pe=(()=>{class F extends O{constructor(ee,Q,Ee){super(),this._componentFactoryResolver=ee,this._viewContainerRef=Q,this._isInitialized=!1,this.attached=new e.vpe,this.attachDomPortal=ge=>{const ve=ge.element,De=this._document.createComment("dom-portal");ge.setAttachedHost(this),ve.parentNode.insertBefore(De,ve),this._getRootNode().appendChild(ve),this._attachedPortal=ge,super.setDisposeFn(()=>{De.parentNode&&De.parentNode.replaceChild(ve,De)})},this._document=Ee}get portal(){return this._attachedPortal}set portal(ee){this.hasAttached()&&!ee&&!this._isInitialized||(this.hasAttached()&&super.detach(),ee&&super.attach(ee),this._attachedPortal=ee||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(ee){ee.setAttachedHost(this);const Q=null!=ee.viewContainerRef?ee.viewContainerRef:this._viewContainerRef,ge=(ee.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(ee.component),ve=Q.createComponent(ge,Q.length,ee.injector||Q.injector);return Q!==this._viewContainerRef&&this._getRootNode().appendChild(ve.hostView.rootNodes[0]),super.setDisposeFn(()=>ve.destroy()),this._attachedPortal=ee,this._attachedRef=ve,this.attached.emit(ve),ve}attachTemplatePortal(ee){ee.setAttachedHost(this);const Q=this._viewContainerRef.createEmbeddedView(ee.templateRef,ee.context,{injector:ee.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=ee,this._attachedRef=Q,this.attached.emit(Q),Q}_getRootNode(){const ee=this._viewContainerRef.element.nativeElement;return ee.nodeType===ee.ELEMENT_NODE?ee:ee.parentNode}}return F.\u0275fac=function(ee){return new(ee||F)(e.Y36(e._Vd),e.Y36(e.s_b),e.Y36(A.K0))},F.\u0275dir=e.lG2({type:F,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[e.qOj]}),F})(),T=(()=>{class F{}return F.\u0275fac=function(ee){return new(ee||F)},F.\u0275mod=e.oAB({type:F}),F.\u0275inj=e.cJS({}),F})()},67376:(Xe,ue,p)=>{"use strict";p.d(ue,{Cl:()=>ut,N7:()=>be,PQ:()=>he,ZD:()=>Fe,mF:()=>De,rL:()=>Be,x0:()=>ce,xd:()=>ge});var e=p(21281),A=p(94650),C=p(77579),M=p(39646),m=p(69751),b=p(54968),D=p(66406),v=p(53101),R=p(50727),B=p(45191),w=p(71884),L=p(23601),O=p(39300),q=p(82722),te=p(68675),z=p(11520),ie=p(63900),Te=p(34782),pe=p(83353),Le=p(36895),T=p(40445),W=p(95017);const F=["contentWrapper"],V=["*"],ee=new A.OlP("VIRTUAL_SCROLL_STRATEGY");class Q{constructor(vt,X,nt){this._scrolledIndexChange=new C.x,this.scrolledIndexChange=this._scrolledIndexChange.pipe((0,w.x)()),this._viewport=null,this._itemSize=vt,this._minBufferPx=X,this._maxBufferPx=nt}attach(vt){this._viewport=vt,this._updateTotalContentSize(),this._updateRenderedRange()}detach(){this._scrolledIndexChange.complete(),this._viewport=null}updateItemAndBufferSize(vt,X,nt){this._itemSize=vt,this._minBufferPx=X,this._maxBufferPx=nt,this._updateTotalContentSize(),this._updateRenderedRange()}onContentScrolled(){this._updateRenderedRange()}onDataLengthChanged(){this._updateTotalContentSize(),this._updateRenderedRange()}onContentRendered(){}onRenderedOffsetChanged(){}scrollToIndex(vt,X){this._viewport&&this._viewport.scrollToOffset(vt*this._itemSize,X)}_updateTotalContentSize(){!this._viewport||this._viewport.setTotalContentSize(this._viewport.getDataLength()*this._itemSize)}_updateRenderedRange(){if(!this._viewport)return;const vt=this._viewport.getRenderedRange(),X={start:vt.start,end:vt.end},nt=this._viewport.getViewportSize(),Ae=this._viewport.getDataLength();let ye=this._viewport.measureScrollOffset(),_e=this._itemSize>0?ye/this._itemSize:0;if(X.end>Ae){const Ne=Math.ceil(nt/this._itemSize),Ce=Math.max(0,Math.min(_e,Ae-Ne));_e!=Ce&&(_e=Ce,ye=Ce*this._itemSize,X.start=Math.floor(_e)),X.end=Math.max(0,Math.min(Ae,X.start+Ne))}const Se=ye-X.start*this._itemSize;if(Se0&&(X.end=Math.min(Ae,X.end+Ce),X.start=Math.max(0,Math.floor(_e-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(X),this._viewport.setRenderedContentOffset(this._itemSize*X.start),this._scrolledIndexChange.next(Math.floor(_e))}}function Ee(tt){return tt._scrollStrategy}let ge=(()=>{class tt{constructor(){this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new Q(this.itemSize,this.minBufferPx,this.maxBufferPx)}get itemSize(){return this._itemSize}set itemSize(X){this._itemSize=(0,e.su)(X)}get minBufferPx(){return this._minBufferPx}set minBufferPx(X){this._minBufferPx=(0,e.su)(X)}get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(X){this._maxBufferPx=(0,e.su)(X)}ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}}return tt.\u0275fac=function(X){return new(X||tt)},tt.\u0275dir=A.lG2({type:tt,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[A._Bn([{provide:ee,useFactory:Ee,deps:[(0,A.Gpc)(()=>tt)]}]),A.TTD]}),tt})(),De=(()=>{class tt{constructor(X,nt,Ae){this._ngZone=X,this._platform=nt,this._scrolled=new C.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=Ae}register(X){this.scrollContainers.has(X)||this.scrollContainers.set(X,X.elementScrolled().subscribe(()=>this._scrolled.next(X)))}deregister(X){const nt=this.scrollContainers.get(X);nt&&(nt.unsubscribe(),this.scrollContainers.delete(X))}scrolled(X=20){return this._platform.isBrowser?new m.y(nt=>{this._globalSubscription||this._addGlobalListener();const Ae=X>0?this._scrolled.pipe((0,L.e)(X)).subscribe(nt):this._scrolled.subscribe(nt);return this._scrolledCount++,()=>{Ae.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,M.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((X,nt)=>this.deregister(nt)),this._scrolled.complete()}ancestorScrolled(X,nt){const Ae=this.getAncestorScrollContainers(X);return this.scrolled(nt).pipe((0,O.h)(ye=>!ye||Ae.indexOf(ye)>-1))}getAncestorScrollContainers(X){const nt=[];return this.scrollContainers.forEach((Ae,ye)=>{this._scrollableContainsElement(ye,X)&&nt.push(ye)}),nt}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(X,nt){let Ae=(0,e.fI)(nt),ye=X.getElementRef().nativeElement;do{if(Ae==ye)return!0}while(Ae=Ae.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const X=this._getWindow();return(0,b.R)(X.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return tt.\u0275fac=function(X){return new(X||tt)(A.LFG(A.R0b),A.LFG(pe.t4),A.LFG(Le.K0,8))},tt.\u0275prov=A.Yz7({token:tt,factory:tt.\u0275fac,providedIn:"root"}),tt})(),he=(()=>{class tt{constructor(X,nt,Ae,ye){this.elementRef=X,this.scrollDispatcher=nt,this.ngZone=Ae,this.dir=ye,this._destroyed=new C.x,this._elementScrolled=new m.y(_e=>this.ngZone.runOutsideAngular(()=>(0,b.R)(this.elementRef.nativeElement,"scroll").pipe((0,q.R)(this._destroyed)).subscribe(_e)))}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(X){const nt=this.elementRef.nativeElement,Ae=this.dir&&"rtl"==this.dir.value;null==X.left&&(X.left=Ae?X.end:X.start),null==X.right&&(X.right=Ae?X.start:X.end),null!=X.bottom&&(X.top=nt.scrollHeight-nt.clientHeight-X.bottom),Ae&&0!=(0,pe._i)()?(null!=X.left&&(X.right=nt.scrollWidth-nt.clientWidth-X.left),2==(0,pe._i)()?X.left=X.right:1==(0,pe._i)()&&(X.left=X.right?-X.right:X.right)):null!=X.right&&(X.left=nt.scrollWidth-nt.clientWidth-X.right),this._applyScrollToOptions(X)}_applyScrollToOptions(X){const nt=this.elementRef.nativeElement;(0,pe.Mq)()?nt.scrollTo(X):(null!=X.top&&(nt.scrollTop=X.top),null!=X.left&&(nt.scrollLeft=X.left))}measureScrollOffset(X){const nt="left",ye=this.elementRef.nativeElement;if("top"==X)return ye.scrollTop;if("bottom"==X)return ye.scrollHeight-ye.clientHeight-ye.scrollTop;const _e=this.dir&&"rtl"==this.dir.value;return"start"==X?X=_e?"right":nt:"end"==X&&(X=_e?nt:"right"),_e&&2==(0,pe._i)()?X==nt?ye.scrollWidth-ye.clientWidth-ye.scrollLeft:ye.scrollLeft:_e&&1==(0,pe._i)()?X==nt?ye.scrollLeft+ye.scrollWidth-ye.clientWidth:-ye.scrollLeft:X==nt?ye.scrollLeft:ye.scrollWidth-ye.clientWidth-ye.scrollLeft}}return tt.\u0275fac=function(X){return new(X||tt)(A.Y36(A.SBq),A.Y36(De),A.Y36(A.R0b),A.Y36(T.Is,8))},tt.\u0275dir=A.lG2({type:tt,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),tt})(),Be=(()=>{class tt{constructor(X,nt,Ae){this._platform=X,this._change=new C.x,this._changeListener=ye=>{this._change.next(ye)},this._document=Ae,nt.runOutsideAngular(()=>{if(X.isBrowser){const ye=this._getWindow();ye.addEventListener("resize",this._changeListener),ye.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const X=this._getWindow();X.removeEventListener("resize",this._changeListener),X.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const X={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),X}getViewportRect(){const X=this.getViewportScrollPosition(),{width:nt,height:Ae}=this.getViewportSize();return{top:X.top,left:X.left,bottom:X.top+Ae,right:X.left+nt,height:Ae,width:nt}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const X=this._document,nt=this._getWindow(),Ae=X.documentElement,ye=Ae.getBoundingClientRect();return{top:-ye.top||X.body.scrollTop||nt.scrollY||Ae.scrollTop||0,left:-ye.left||X.body.scrollLeft||nt.scrollX||Ae.scrollLeft||0}}change(X=20){return X>0?this._change.pipe((0,L.e)(X)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const X=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:X.innerWidth,height:X.innerHeight}:{width:0,height:0}}}return tt.\u0275fac=function(X){return new(X||tt)(A.LFG(pe.t4),A.LFG(A.R0b),A.LFG(Le.K0,8))},tt.\u0275prov=A.Yz7({token:tt,factory:tt.\u0275fac,providedIn:"root"}),tt})();const se=new A.OlP("VIRTUAL_SCROLLABLE");let le=(()=>{class tt extends he{constructor(X,nt,Ae,ye){super(X,nt,Ae,ye)}measureViewportSize(X){const nt=this.elementRef.nativeElement;return"horizontal"===X?nt.clientWidth:nt.clientHeight}}return tt.\u0275fac=function(X){return new(X||tt)(A.Y36(A.SBq),A.Y36(De),A.Y36(A.R0b),A.Y36(T.Is,8))},tt.\u0275dir=A.lG2({type:tt,features:[A.qOj]}),tt})();const k=typeof requestAnimationFrame<"u"?D.Z:v.E;let be=(()=>{class tt extends le{constructor(X,nt,Ae,ye,_e,Se,Ne,Ce){super(X,Se,Ae,_e),this.elementRef=X,this._changeDetectorRef=nt,this._scrollStrategy=ye,this.scrollable=Ce,this._detachedSubject=new C.x,this._renderedRangeSubject=new C.x,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new m.y(fe=>this._scrollStrategy.scrolledIndexChange.subscribe(r=>Promise.resolve().then(()=>this.ngZone.run(()=>fe.next(r))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=R.w0.EMPTY,this._viewportChanges=Ne.change().subscribe(()=>{this.checkViewportSize()}),this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this)}get orientation(){return this._orientation}set orientation(X){this._orientation!==X&&(this._orientation=X,this._calculateSpacerSize())}get appendOnly(){return this._appendOnly}set appendOnly(X){this._appendOnly=(0,e.Ig)(X)}ngOnInit(){this.scrollable===this&&super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.scrollable.elementScrolled().pipe((0,te.O)(null),(0,L.e)(0,k)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()}))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(X){this.ngZone.runOutsideAngular(()=>{this._forOf=X,this._forOf.dataStream.pipe((0,q.R)(this._detachedSubject)).subscribe(nt=>{const Ae=nt.length;Ae!==this._dataLength&&(this._dataLength=Ae,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}measureBoundingClientRectWithScrollOffset(X){return this.getElementRef().nativeElement.getBoundingClientRect()[X]}setTotalContentSize(X){this._totalContentSize!==X&&(this._totalContentSize=X,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(X){(function N(tt,vt){return tt.start==vt.start&&tt.end==vt.end})(this._renderedRange,X)||(this.appendOnly&&(X={start:0,end:Math.max(this._renderedRange.end,X.end)}),this._renderedRangeSubject.next(this._renderedRange=X),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(X,nt="to-start"){X=this.appendOnly&&"to-start"===nt?0:X;const ye="horizontal"==this.orientation,_e=ye?"X":"Y";let Ne=`translate${_e}(${Number((ye&&this.dir&&"rtl"==this.dir.value?-1:1)*X)}px)`;this._renderedContentOffset=X,"to-end"===nt&&(Ne+=` translate${_e}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=Ne&&(this._renderedContentTransform=Ne,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(X,nt="auto"){const Ae={behavior:nt};"horizontal"===this.orientation?Ae.start=X:Ae.top=X,this.scrollable.scrollTo(Ae)}scrollToIndex(X,nt="auto"){this._scrollStrategy.scrollToIndex(X,nt)}measureScrollOffset(X){let nt;return nt=this.scrollable==this?Ae=>super.measureScrollOffset(Ae):Ae=>this.scrollable.measureScrollOffset(Ae),Math.max(0,nt(X??("horizontal"===this.orientation?"start":"top"))-this.measureViewportOffset())}measureViewportOffset(X){var nt;let Ae;const Se="rtl"==(null===(nt=this.dir)||void 0===nt?void 0:nt.value);Ae="start"==X?Se?"right":"left":"end"==X?Se?"left":"right":X||("horizontal"===this.orientation?"left":"top");const Ne=this.scrollable.measureBoundingClientRectWithScrollOffset(Ae);return this.elementRef.nativeElement.getBoundingClientRect()[Ae]-Ne}measureRenderedContentSize(){const X=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?X.offsetWidth:X.offsetHeight}measureRangeSize(X){return this._forOf?this._forOf.measureRangeSize(X,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}_markChangeDetectionNeeded(X){X&&this._runAfterChangeDetection.push(X),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(()=>this._changeDetectorRef.markForCheck());const X=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const nt of X)nt()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}return tt.\u0275fac=function(X){return new(X||tt)(A.Y36(A.SBq),A.Y36(A.sBO),A.Y36(A.R0b),A.Y36(ee,8),A.Y36(T.Is,8),A.Y36(De),A.Y36(Be),A.Y36(se,8))},tt.\u0275cmp=A.Xpm({type:tt,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(X,nt){if(1&X&&A.Gf(F,7),2&X){let Ae;A.iGM(Ae=A.CRH())&&(nt._contentWrapper=Ae.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(X,nt){2&X&&A.ekj("cdk-virtual-scroll-orientation-horizontal","horizontal"===nt.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==nt.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[A._Bn([{provide:he,useFactory:(vt,X)=>vt||X,deps:[le,tt]}]),A.qOj],ngContentSelectors:V,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(X,nt){1&X&&(A.F$t(),A.TgZ(0,"div",0,1),A.Hsn(2),A.qZA(),A._UZ(3,"div",2)),2&X&&(A.xp6(3),A.Udp("width",nt._totalContentWidth)("height",nt._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}"],encapsulation:2,changeDetection:0}),tt})();function Z(tt,vt,X){if(!X.getBoundingClientRect)return 0;const Ae=X.getBoundingClientRect();return"horizontal"===tt?"start"===vt?Ae.left:Ae.right:"start"===vt?Ae.top:Ae.bottom}let ce=(()=>{class tt{constructor(X,nt,Ae,ye,_e,Se){this._viewContainerRef=X,this._template=nt,this._differs=Ae,this._viewRepeater=ye,this._viewport=_e,this.viewChange=new C.x,this._dataSourceChanges=new C.x,this.dataStream=this._dataSourceChanges.pipe((0,te.O)(null),(0,z.G)(),(0,ie.w)(([Ne,Ce])=>this._changeDataSource(Ne,Ce)),(0,Te.d)(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new C.x,this.dataStream.subscribe(Ne=>{this._data=Ne,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe((0,q.R)(this._destroyed)).subscribe(Ne=>{this._renderedRange=Ne,this.viewChange.observers.length&&Se.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(X){this._cdkVirtualForOf=X,(0,W.Z9)(X)?this._dataSourceChanges.next(X):this._dataSourceChanges.next(new W.P3((0,B.b)(X)?X:Array.from(X||[])))}get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(X){this._needsUpdate=!0,this._cdkVirtualForTrackBy=X?(nt,Ae)=>X(nt+(this._renderedRange?this._renderedRange.start:0),Ae):void 0}set cdkVirtualForTemplate(X){X&&(this._needsUpdate=!0,this._template=X)}get cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set cdkVirtualForTemplateCacheSize(X){this._viewRepeater.viewCacheSize=(0,e.su)(X)}measureRangeSize(X,nt){if(X.start>=X.end)return 0;const Ae=X.start-this._renderedRange.start,ye=X.end-X.start;let _e,Se;for(let Ne=0;Ne-1;Ne--){const Ce=this._viewContainerRef.get(Ne+Ae);if(Ce&&Ce.rootNodes.length){Se=Ce.rootNodes[Ce.rootNodes.length-1];break}}return _e&&Se?Z(nt,"end",Se)-Z(nt,"start",_e):0}ngDoCheck(){if(this._differ&&this._needsUpdate){const X=this._differ.diff(this._renderedItems);X?this._applyChanges(X):this._updateContext(),this._needsUpdate=!1}}ngOnDestroy(){this._viewport.detach(),this._dataSourceChanges.next(void 0),this._dataSourceChanges.complete(),this.viewChange.complete(),this._destroyed.next(),this._destroyed.complete(),this._viewRepeater.detach()}_onRenderedDataChange(){!this._renderedRange||(this._renderedItems=this._data.slice(this._renderedRange.start,this._renderedRange.end),this._differ||(this._differ=this._differs.find(this._renderedItems).create((X,nt)=>this.cdkVirtualForTrackBy?this.cdkVirtualForTrackBy(X,nt):nt)),this._needsUpdate=!0)}_changeDataSource(X,nt){return X&&X.disconnect(this),this._needsUpdate=!0,nt?nt.connect(this):(0,M.of)()}_updateContext(){const X=this._data.length;let nt=this._viewContainerRef.length;for(;nt--;){const Ae=this._viewContainerRef.get(nt);Ae.context.index=this._renderedRange.start+nt,Ae.context.count=X,this._updateComputedContextProperties(Ae.context),Ae.detectChanges()}}_applyChanges(X){this._viewRepeater.applyChanges(X,this._viewContainerRef,(ye,_e,Se)=>this._getEmbeddedViewArgs(ye,Se),ye=>ye.item),X.forEachIdentityChange(ye=>{this._viewContainerRef.get(ye.currentIndex).context.$implicit=ye.item});const nt=this._data.length;let Ae=this._viewContainerRef.length;for(;Ae--;){const ye=this._viewContainerRef.get(Ae);ye.context.index=this._renderedRange.start+Ae,ye.context.count=nt,this._updateComputedContextProperties(ye.context)}}_updateComputedContextProperties(X){X.first=0===X.index,X.last=X.index===X.count-1,X.even=X.index%2==0,X.odd=!X.even}_getEmbeddedViewArgs(X,nt){return{templateRef:this._template,context:{$implicit:X.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:nt}}}return tt.\u0275fac=function(X){return new(X||tt)(A.Y36(A.s_b),A.Y36(A.Rgc),A.Y36(A.ZZ4),A.Y36(W.k),A.Y36(be,4),A.Y36(A.R0b))},tt.\u0275dir=A.lG2({type:tt,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},features:[A._Bn([{provide:W.k,useClass:W.eX}])]}),tt})(),Fe=(()=>{class tt{}return tt.\u0275fac=function(X){return new(X||tt)},tt.\u0275mod=A.oAB({type:tt}),tt.\u0275inj=A.cJS({}),tt})(),ut=(()=>{class tt{}return tt.\u0275fac=function(X){return new(X||tt)},tt.\u0275mod=A.oAB({type:tt}),tt.\u0275inj=A.cJS({imports:[T.vT,Fe,T.vT,Fe]}),tt})()},39349:(Xe,ue,p)=>{"use strict";p.d(ue,{IC:()=>O,Ky:()=>q,Lq:()=>w});var e=p(83353),A=p(94650),C=p(21281),M=p(60515),m=p(77579),b=p(54968),D=p(23601),v=p(82722),R=p(36895);const B=(0,e.i$)({passive:!0});let w=(()=>{class te{constructor(ie,Te){this._platform=ie,this._ngZone=Te,this._monitoredElements=new Map}monitor(ie){if(!this._platform.isBrowser)return M.E;const Te=(0,C.fI)(ie),pe=this._monitoredElements.get(Te);if(pe)return pe.subject;const Le=new m.x,T="cdk-text-field-autofilled",W=F=>{"cdk-text-field-autofill-start"!==F.animationName||Te.classList.contains(T)?"cdk-text-field-autofill-end"===F.animationName&&Te.classList.contains(T)&&(Te.classList.remove(T),this._ngZone.run(()=>Le.next({target:F.target,isAutofilled:!1}))):(Te.classList.add(T),this._ngZone.run(()=>Le.next({target:F.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{Te.addEventListener("animationstart",W,B),Te.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(Te,{subject:Le,unlisten:()=>{Te.removeEventListener("animationstart",W,B)}}),Le}stopMonitoring(ie){const Te=(0,C.fI)(ie),pe=this._monitoredElements.get(Te);pe&&(pe.unlisten(),pe.subject.complete(),Te.classList.remove("cdk-text-field-autofill-monitored"),Te.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(Te))}ngOnDestroy(){this._monitoredElements.forEach((ie,Te)=>this.stopMonitoring(Te))}}return te.\u0275fac=function(ie){return new(ie||te)(A.LFG(e.t4),A.LFG(A.R0b))},te.\u0275prov=A.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"}),te})(),O=(()=>{class te{constructor(ie,Te,pe,Le){this._elementRef=ie,this._platform=Te,this._ngZone=pe,this._destroyed=new m.x,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._handleFocusEvent=T=>{this._hasFocus="focus"===T.type},this._document=Le,this._textareaElement=this._elementRef.nativeElement}get minRows(){return this._minRows}set minRows(ie){this._minRows=(0,C.su)(ie),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(ie){this._maxRows=(0,C.su)(ie),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(ie){ie=(0,C.Ig)(ie),this._enabled!==ie&&((this._enabled=ie)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(ie){this._cachedPlaceholderHeight=void 0,ie?this._textareaElement.setAttribute("placeholder",ie):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}_setMinHeight(){const ie=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;ie&&(this._textareaElement.style.minHeight=ie)}_setMaxHeight(){const ie=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;ie&&(this._textareaElement.style.maxHeight=ie)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{const ie=this._getWindow();(0,b.R)(ie,"resize").pipe((0,D.e)(16),(0,v.R)(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0)),this._textareaElement.addEventListener("focus",this._handleFocusEvent),this._textareaElement.addEventListener("blur",this._handleFocusEvent)}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._textareaElement.removeEventListener("focus",this._handleFocusEvent),this._textareaElement.removeEventListener("blur",this._handleFocusEvent),this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let ie=this._textareaElement.cloneNode(!1);ie.rows=1,ie.style.position="absolute",ie.style.visibility="hidden",ie.style.border="none",ie.style.padding="0",ie.style.height="",ie.style.minHeight="",ie.style.maxHeight="",ie.style.overflow="hidden",this._textareaElement.parentNode.appendChild(ie),this._cachedLineHeight=ie.clientHeight,ie.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){const ie=this._textareaElement,Te=ie.style.marginBottom||"",pe=this._platform.FIREFOX,Le=pe&&this._hasFocus,T=pe?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";Le&&(ie.style.marginBottom=`${ie.clientHeight}px`),ie.classList.add(T);const W=ie.scrollHeight-4;return ie.classList.remove(T),Le&&(ie.style.marginBottom=Te),W}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const ie=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=ie}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(ie=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;const Te=this._elementRef.nativeElement,pe=Te.value;if(!ie&&this._minRows===this._previousMinRows&&pe===this._previousValue)return;const Le=this._measureScrollHeight(),T=Math.max(Le,this._cachedPlaceholderHeight||0);Te.style.height=`${T}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(Te)):setTimeout(()=>this._scrollToCaretPosition(Te))}),this._previousValue=pe,this._previousMinRows=this._minRows}reset(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollToCaretPosition(ie){const{selectionStart:Te,selectionEnd:pe}=ie;!this._destroyed.isStopped&&this._hasFocus&&ie.setSelectionRange(Te,pe)}}return te.\u0275fac=function(ie){return new(ie||te)(A.Y36(A.SBq),A.Y36(e.t4),A.Y36(A.R0b),A.Y36(R.K0,8))},te.\u0275dir=A.lG2({type:te,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(ie,Te){1&ie&&A.NdJ("input",function(){return Te._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]}),te})(),q=(()=>{class te{}return te.\u0275fac=function(ie){return new(ie||te)},te.\u0275mod=A.oAB({type:te}),te.\u0275inj=A.cJS({}),te})()},57851:(Xe,ue,p)=>{"use strict";p.d(ue,{C2:()=>O,HI:()=>te,Hs:()=>ee,Ud:()=>he,VY:()=>q,XJ:()=>De,Xx:()=>ge,_0:()=>V,cu:()=>z,nZ:()=>Be,rO:()=>Te});var e=p(95017),A=p(45191),C=p(77579),M=p(61135),m=p(39646),b=p(95698),D=p(39300),v=p(82722),R=p(94650),B=p(21281),w=p(40445);class L{constructor(){this.expansionModel=new e.Ov(!0)}toggle(le){this.expansionModel.toggle(this._trackByValue(le))}expand(le){this.expansionModel.select(this._trackByValue(le))}collapse(le){this.expansionModel.deselect(this._trackByValue(le))}isExpanded(le){return this.expansionModel.isSelected(this._trackByValue(le))}toggleDescendants(le){this.expansionModel.isSelected(this._trackByValue(le))?this.collapseDescendants(le):this.expandDescendants(le)}collapseAll(){this.expansionModel.clear()}expandDescendants(le){let N=[le];N.push(...this.getDescendants(le)),this.expansionModel.select(...N.map(k=>this._trackByValue(k)))}collapseDescendants(le){let N=[le];N.push(...this.getDescendants(le)),this.expansionModel.deselect(...N.map(k=>this._trackByValue(k)))}_trackByValue(le){return this.trackBy?this.trackBy(le):le}}class O extends L{constructor(le,N,k){super(),this.getLevel=le,this.isExpandable=N,this.options=k,this.options&&(this.trackBy=this.options.trackBy)}getDescendants(le){const k=[];for(let be=this.dataNodes.indexOf(le)+1;bethis._trackByValue(le)))}}class q extends L{constructor(le,N){super(),this.getChildren=le,this.options=N,this.options&&(this.trackBy=this.options.trackBy)}expandAll(){this.expansionModel.clear();const le=this.dataNodes.reduce((N,k)=>[...N,...this.getDescendants(k),k],[]);this.expansionModel.select(...le.map(N=>this._trackByValue(N)))}getDescendants(le){const N=[];return this._getDescendants(N,le),N.splice(1)}_getDescendants(le,N){le.push(N);const k=this.getChildren(N);Array.isArray(k)?k.forEach(be=>this._getDescendants(le,be)):(0,A.b)(k)&&k.pipe((0,b.q)(1),(0,D.h)(Boolean)).subscribe(be=>{for(const Z of be)this._getDescendants(le,Z)})}}const te=new R.OlP("CDK_TREE_NODE_OUTLET_NODE");let z=(()=>{class se{constructor(N,k){this.viewContainer=N,this._node=k}}return se.\u0275fac=function(N){return new(N||se)(R.Y36(R.s_b),R.Y36(te,8))},se.\u0275dir=R.lG2({type:se,selectors:[["","cdkTreeNodeOutlet",""]]}),se})();class ie{constructor(le){this.$implicit=le}}let Te=(()=>{class se{constructor(N){this.template=N}}return se.\u0275fac=function(N){return new(N||se)(R.Y36(R.Rgc))},se.\u0275dir=R.lG2({type:se,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:["cdkTreeNodeDefWhen","when"]}}),se})(),V=(()=>{class se{constructor(N,k){this._differs=N,this._changeDetectorRef=k,this._onDestroy=new C.x,this._levels=new Map,this.viewChange=new M.X({start:0,end:Number.MAX_VALUE})}get dataSource(){return this._dataSource}set dataSource(N){this._dataSource!==N&&this._switchDataSource(N)}ngOnInit(){this._dataDiffer=this._differs.find([]).create(this.trackBy)}ngOnDestroy(){this._nodeOutlet.viewContainer.clear(),this.viewChange.complete(),this._onDestroy.next(),this._onDestroy.complete(),this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null)}ngAfterContentChecked(){const N=this._nodeDefs.filter(k=>!k.when);this._defaultNodeDef=N[0],this.dataSource&&this._nodeDefs&&!this._dataSubscription&&this._observeRenderChanges()}_switchDataSource(N){this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),N||this._nodeOutlet.viewContainer.clear(),this._dataSource=N,this._nodeDefs&&this._observeRenderChanges()}_observeRenderChanges(){let N;(0,e.Z9)(this._dataSource)?N=this._dataSource.connect(this):(0,A.b)(this._dataSource)?N=this._dataSource:Array.isArray(this._dataSource)&&(N=(0,m.of)(this._dataSource)),N&&(this._dataSubscription=N.pipe((0,v.R)(this._onDestroy)).subscribe(k=>this.renderNodeChanges(k)))}renderNodeChanges(N,k=this._dataDiffer,be=this._nodeOutlet.viewContainer,Z){const ce=k.diff(N);!ce||(ce.forEachOperation((xe,ot,Fe)=>{if(null==xe.previousIndex)this.insertNode(N[Fe],Fe,be,Z);else if(null==Fe)be.remove(ot),this._levels.delete(xe.item);else{const ut=be.get(ot);be.move(ut,Fe)}}),this._changeDetectorRef.detectChanges())}_getNodeDef(N,k){return 1===this._nodeDefs.length?this._nodeDefs.first:this._nodeDefs.find(Z=>Z.when&&Z.when(k,N))||this._defaultNodeDef}insertNode(N,k,be,Z){const ce=this._getNodeDef(N,k),xe=new ie(N);xe.level=this.treeControl.getLevel?this.treeControl.getLevel(N):typeof Z<"u"&&this._levels.has(Z)?this._levels.get(Z)+1:0,this._levels.set(N,xe.level),(be||this._nodeOutlet.viewContainer).createEmbeddedView(ce.template,xe,k),ee.mostRecentTreeNode&&(ee.mostRecentTreeNode.data=N)}}return se.\u0275fac=function(N){return new(N||se)(R.Y36(R.ZZ4),R.Y36(R.sBO))},se.\u0275cmp=R.Xpm({type:se,selectors:[["cdk-tree"]],contentQueries:function(N,k,be){if(1&N&&R.Suo(be,Te,5),2&N){let Z;R.iGM(Z=R.CRH())&&(k._nodeDefs=Z)}},viewQuery:function(N,k){if(1&N&&R.Gf(z,7),2&N){let be;R.iGM(be=R.CRH())&&(k._nodeOutlet=be.first)}},hostAttrs:["role","tree",1,"cdk-tree"],inputs:{dataSource:"dataSource",treeControl:"treeControl",trackBy:"trackBy"},exportAs:["cdkTree"],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function(N,k){1&N&&R.GkF(0,0)},dependencies:[z],encapsulation:2}),se})(),ee=(()=>{class se{constructor(N,k){this._elementRef=N,this._tree=k,this._destroyed=new C.x,this._dataChanges=new C.x,se.mostRecentTreeNode=this,this.role="treeitem"}get role(){return"treeitem"}set role(N){this._elementRef.nativeElement.setAttribute("role",N)}get data(){return this._data}set data(N){N!==this._data&&(this._data=N,this._setRoleFromData(),this._dataChanges.next())}get isExpanded(){return this._tree.treeControl.isExpanded(this._data)}get level(){return this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._data):this._parentNodeAriaLevel}ngOnInit(){this._parentNodeAriaLevel=function Q(se){let le=se.parentElement;for(;le&&!Ee(le);)le=le.parentElement;return le?le.classList.contains("cdk-nested-tree-node")?(0,B.su)(le.getAttribute("aria-level")):0:-1}(this._elementRef.nativeElement),this._elementRef.nativeElement.setAttribute("aria-level",`${this.level+1}`)}ngOnDestroy(){se.mostRecentTreeNode===this&&(se.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}focus(){this._elementRef.nativeElement.focus()}_setRoleFromData(){this.role="treeitem"}}return se.mostRecentTreeNode=null,se.\u0275fac=function(N){return new(N||se)(R.Y36(R.SBq),R.Y36(V))},se.\u0275dir=R.lG2({type:se,selectors:[["cdk-tree-node"]],hostAttrs:[1,"cdk-tree-node"],hostVars:1,hostBindings:function(N,k){2&N&&R.uIk("aria-expanded",k.isExpanded)},inputs:{role:"role"},exportAs:["cdkTreeNode"]}),se})();function Ee(se){const le=se.classList;return!!(null!=le&&le.contains("cdk-nested-tree-node")||null!=le&&le.contains("cdk-tree"))}let ge=(()=>{class se extends ee{constructor(N,k,be){super(N,k),this._differs=be}ngAfterContentInit(){this._dataDiffer=this._differs.find([]).create(this._tree.trackBy);const N=this._tree.treeControl.getChildren(this.data);Array.isArray(N)?this.updateChildrenNodes(N):(0,A.b)(N)&&N.pipe((0,v.R)(this._destroyed)).subscribe(k=>this.updateChildrenNodes(k)),this.nodeOutlet.changes.pipe((0,v.R)(this._destroyed)).subscribe(()=>this.updateChildrenNodes())}ngOnInit(){super.ngOnInit()}ngOnDestroy(){this._clear(),super.ngOnDestroy()}updateChildrenNodes(N){const k=this._getNodeOutlet();N&&(this._children=N),k&&this._children?this._tree.renderNodeChanges(this._children,this._dataDiffer,k.viewContainer,this._data):this._dataDiffer.diff([])}_clear(){const N=this._getNodeOutlet();N&&(N.viewContainer.clear(),this._dataDiffer.diff([]))}_getNodeOutlet(){const N=this.nodeOutlet;return N&&N.find(k=>!k._node||k._node===this)}}return se.\u0275fac=function(N){return new(N||se)(R.Y36(R.SBq),R.Y36(V),R.Y36(R.ZZ4))},se.\u0275dir=R.lG2({type:se,selectors:[["cdk-nested-tree-node"]],contentQueries:function(N,k,be){if(1&N&&R.Suo(be,z,5),2&N){let Z;R.iGM(Z=R.CRH())&&(k.nodeOutlet=Z)}},hostAttrs:[1,"cdk-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["cdkNestedTreeNode"],features:[R._Bn([{provide:ee,useExisting:se},{provide:te,useExisting:se}]),R.qOj]}),se})();const ve=/([A-Za-z%]+)$/;let De=(()=>{class se{constructor(N,k,be,Z){this._treeNode=N,this._tree=k,this._element=be,this._dir=Z,this._destroyed=new C.x,this.indentUnits="px",this._indent=40,this._setPadding(),Z&&Z.change.pipe((0,v.R)(this._destroyed)).subscribe(()=>this._setPadding(!0)),N._dataChanges.subscribe(()=>this._setPadding())}get level(){return this._level}set level(N){this._setLevelInput(N)}get indent(){return this._indent}set indent(N){this._setIndentInput(N)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_paddingIndent(){const N=this._treeNode.data&&this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._treeNode.data):null,k=this._level??N;return"number"==typeof k?`${k*this._indent}${this.indentUnits}`:null}_setPadding(N=!1){const k=this._paddingIndent();if(k!==this._currentPadding||N){const be=this._element.nativeElement,Z=this._dir&&"rtl"===this._dir.value?"paddingRight":"paddingLeft",ce="paddingLeft"===Z?"paddingRight":"paddingLeft";be.style[Z]=k||"",be.style[ce]="",this._currentPadding=k}}_setLevelInput(N){this._level=(0,B.su)(N,null),this._setPadding()}_setIndentInput(N){let k=N,be="px";if("string"==typeof N){const Z=N.split(ve);k=Z[0],be=Z[1]||be}this.indentUnits=be,this._indent=(0,B.su)(k),this._setPadding()}}return se.\u0275fac=function(N){return new(N||se)(R.Y36(ee),R.Y36(V),R.Y36(R.SBq),R.Y36(w.Is,8))},se.\u0275dir=R.lG2({type:se,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:["cdkTreeNodePadding","level"],indent:["cdkTreeNodePaddingIndent","indent"]}}),se})(),he=(()=>{class se{constructor(N,k){this._tree=N,this._treeNode=k,this._recursive=!1}get recursive(){return this._recursive}set recursive(N){this._recursive=(0,B.Ig)(N)}_toggle(N){this.recursive?this._tree.treeControl.toggleDescendants(this._treeNode.data):this._tree.treeControl.toggle(this._treeNode.data),N.stopPropagation()}}return se.\u0275fac=function(N){return new(N||se)(R.Y36(V),R.Y36(ee))},se.\u0275dir=R.lG2({type:se,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function(N,k){1&N&&R.NdJ("click",function(Z){return k._toggle(Z)})},inputs:{recursive:["cdkTreeNodeToggleRecursive","recursive"]}}),se})(),Be=(()=>{class se{}return se.\u0275fac=function(N){return new(N||se)},se.\u0275mod=R.oAB({type:se}),se.\u0275inj=R.cJS({}),se})()},36895:(Xe,ue,p)=>{"use strict";p.d(ue,{Do:()=>Le,ED:()=>or,EM:()=>Fi,HT:()=>m,JF:()=>gi,K0:()=>D,Mx:()=>yn,NF:()=>cr,O5:()=>qn,Ov:()=>Pi,PC:()=>Ci,PM:()=>Ji,RF:()=>Vi,S$:()=>ie,V_:()=>B,Ye:()=>T,b0:()=>pe,bD:()=>An,ez:()=>dn,gd:()=>ct,i8:()=>Ii,mk:()=>Zn,n9:()=>li,p6:()=>o,q:()=>C,rS:()=>en,sg:()=>Jn,tP:()=>Er,uU:()=>Zt,w_:()=>b});var e=p(94650);let A=null;function C(){return A}function m(qe){A||(A=qe)}class b{}const D=new e.OlP("DocumentToken");let v=(()=>{class qe{historyGo(Je){throw new Error("Not implemented")}}return qe.\u0275fac=function(Je){return new(Je||qe)},qe.\u0275prov=e.Yz7({token:qe,factory:function(){return function R(){return(0,e.LFG)(w)}()},providedIn:"platform"}),qe})();const B=new e.OlP("Location Initialized");let w=(()=>{class qe extends v{constructor(Je){super(),this._doc=Je,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return C().getBaseHref(this._doc)}onPopState(Je){const Ct=C().getGlobalEventTarget(this._doc,"window");return Ct.addEventListener("popstate",Je,!1),()=>Ct.removeEventListener("popstate",Je)}onHashChange(Je){const Ct=C().getGlobalEventTarget(this._doc,"window");return Ct.addEventListener("hashchange",Je,!1),()=>Ct.removeEventListener("hashchange",Je)}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(Je){this.location.pathname=Je}pushState(Je,Ct,Bt){L()?this._history.pushState(Je,Ct,Bt):this.location.hash=Bt}replaceState(Je,Ct,Bt){L()?this._history.replaceState(Je,Ct,Bt):this.location.hash=Bt}forward(){this._history.forward()}back(){this._history.back()}historyGo(Je=0){this._history.go(Je)}getState(){return this._history.state}}return qe.\u0275fac=function(Je){return new(Je||qe)(e.LFG(D))},qe.\u0275prov=e.Yz7({token:qe,factory:function(){return function O(){return new w((0,e.LFG)(D))}()},providedIn:"platform"}),qe})();function L(){return!!window.history.pushState}function q(qe,gt){if(0==qe.length)return gt;if(0==gt.length)return qe;let Je=0;return qe.endsWith("/")&&Je++,gt.startsWith("/")&&Je++,2==Je?qe+gt.substring(1):1==Je?qe+gt:qe+"/"+gt}function te(qe){const gt=qe.match(/#|\?|$/),Je=gt&>.index||qe.length;return qe.slice(0,Je-("/"===qe[Je-1]?1:0))+qe.slice(Je)}function z(qe){return qe&&"?"!==qe[0]?"?"+qe:qe}let ie=(()=>{class qe{historyGo(Je){throw new Error("Not implemented")}}return qe.\u0275fac=function(Je){return new(Je||qe)},qe.\u0275prov=e.Yz7({token:qe,factory:function(){return(0,e.f3M)(pe)},providedIn:"root"}),qe})();const Te=new e.OlP("appBaseHref");let pe=(()=>{class qe extends ie{constructor(Je,Ct){var Bt,Qt,zt;super(),this._platformLocation=Je,this._removeListenerFns=[],this._baseHref=null!==(Bt=null!==(Qt=Ct??this._platformLocation.getBaseHrefFromDOM())&&void 0!==Qt?Qt:null===(zt=(0,e.f3M)(D).location)||void 0===zt?void 0:zt.origin)&&void 0!==Bt?Bt:""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(Je){this._removeListenerFns.push(this._platformLocation.onPopState(Je),this._platformLocation.onHashChange(Je))}getBaseHref(){return this._baseHref}prepareExternalUrl(Je){return q(this._baseHref,Je)}path(Je=!1){const Ct=this._platformLocation.pathname+z(this._platformLocation.search),Bt=this._platformLocation.hash;return Bt&&Je?`${Ct}${Bt}`:Ct}pushState(Je,Ct,Bt,Qt){const zt=this.prepareExternalUrl(Bt+z(Qt));this._platformLocation.pushState(Je,Ct,zt)}replaceState(Je,Ct,Bt,Qt){const zt=this.prepareExternalUrl(Bt+z(Qt));this._platformLocation.replaceState(Je,Ct,zt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(Je=0){var Ct,Bt;null===(Ct=(Bt=this._platformLocation).historyGo)||void 0===Ct||Ct.call(Bt,Je)}}return qe.\u0275fac=function(Je){return new(Je||qe)(e.LFG(v),e.LFG(Te,8))},qe.\u0275prov=e.Yz7({token:qe,factory:qe.\u0275fac,providedIn:"root"}),qe})(),Le=(()=>{class qe extends ie{constructor(Je,Ct){super(),this._platformLocation=Je,this._baseHref="",this._removeListenerFns=[],null!=Ct&&(this._baseHref=Ct)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(Je){this._removeListenerFns.push(this._platformLocation.onPopState(Je),this._platformLocation.onHashChange(Je))}getBaseHref(){return this._baseHref}path(Je=!1){let Ct=this._platformLocation.hash;return null==Ct&&(Ct="#"),Ct.length>0?Ct.substring(1):Ct}prepareExternalUrl(Je){const Ct=q(this._baseHref,Je);return Ct.length>0?"#"+Ct:Ct}pushState(Je,Ct,Bt,Qt){let zt=this.prepareExternalUrl(Bt+z(Qt));0==zt.length&&(zt=this._platformLocation.pathname),this._platformLocation.pushState(Je,Ct,zt)}replaceState(Je,Ct,Bt,Qt){let zt=this.prepareExternalUrl(Bt+z(Qt));0==zt.length&&(zt=this._platformLocation.pathname),this._platformLocation.replaceState(Je,Ct,zt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(Je=0){var Ct,Bt;null===(Ct=(Bt=this._platformLocation).historyGo)||void 0===Ct||Ct.call(Bt,Je)}}return qe.\u0275fac=function(Je){return new(Je||qe)(e.LFG(v),e.LFG(Te,8))},qe.\u0275prov=e.Yz7({token:qe,factory:qe.\u0275fac}),qe})(),T=(()=>{class qe{constructor(Je){this._subject=new e.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=Je;const Ct=this._locationStrategy.getBaseHref();this._baseHref=te(V(Ct)),this._locationStrategy.onPopState(Bt=>{this._subject.emit({url:this.path(!0),pop:!0,state:Bt.state,type:Bt.type})})}ngOnDestroy(){var Je;null===(Je=this._urlChangeSubscription)||void 0===Je||Je.unsubscribe(),this._urlChangeListeners=[]}path(Je=!1){return this.normalize(this._locationStrategy.path(Je))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(Je,Ct=""){return this.path()==this.normalize(Je+z(Ct))}normalize(Je){return qe.stripTrailingSlash(function F(qe,gt){return qe&>.startsWith(qe)?gt.substring(qe.length):gt}(this._baseHref,V(Je)))}prepareExternalUrl(Je){return Je&&"/"!==Je[0]&&(Je="/"+Je),this._locationStrategy.prepareExternalUrl(Je)}go(Je,Ct="",Bt=null){this._locationStrategy.pushState(Bt,"",Je,Ct),this._notifyUrlChangeListeners(this.prepareExternalUrl(Je+z(Ct)),Bt)}replaceState(Je,Ct="",Bt=null){this._locationStrategy.replaceState(Bt,"",Je,Ct),this._notifyUrlChangeListeners(this.prepareExternalUrl(Je+z(Ct)),Bt)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(Je=0){var Ct,Bt;null===(Ct=(Bt=this._locationStrategy).historyGo)||void 0===Ct||Ct.call(Bt,Je)}onUrlChange(Je){return this._urlChangeListeners.push(Je),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(Ct=>{this._notifyUrlChangeListeners(Ct.url,Ct.state)})),()=>{const Ct=this._urlChangeListeners.indexOf(Je);var Bt;this._urlChangeListeners.splice(Ct,1),0===this._urlChangeListeners.length&&(null===(Bt=this._urlChangeSubscription)||void 0===Bt||Bt.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(Je="",Ct){this._urlChangeListeners.forEach(Bt=>Bt(Je,Ct))}subscribe(Je,Ct,Bt){return this._subject.subscribe({next:Je,error:Ct,complete:Bt})}}return qe.normalizeQueryParams=z,qe.joinWithSlash=q,qe.stripTrailingSlash=te,qe.\u0275fac=function(Je){return new(Je||qe)(e.LFG(ie))},qe.\u0275prov=e.Yz7({token:qe,factory:function(){return function W(){return new T((0,e.LFG)(ie))}()},providedIn:"root"}),qe})();function V(qe){return qe.replace(/\/index.html$/,"")}var ge=(()=>((ge=ge||{})[ge.Format=0]="Format",ge[ge.Standalone=1]="Standalone",ge))(),ve=(()=>((ve=ve||{})[ve.Narrow=0]="Narrow",ve[ve.Abbreviated=1]="Abbreviated",ve[ve.Wide=2]="Wide",ve[ve.Short=3]="Short",ve))(),De=(()=>((De=De||{})[De.Short=0]="Short",De[De.Medium=1]="Medium",De[De.Long=2]="Long",De[De.Full=3]="Full",De))(),he=(()=>((he=he||{})[he.Decimal=0]="Decimal",he[he.Group=1]="Group",he[he.List=2]="List",he[he.PercentSign=3]="PercentSign",he[he.PlusSign=4]="PlusSign",he[he.MinusSign=5]="MinusSign",he[he.Exponential=6]="Exponential",he[he.SuperscriptingExponent=7]="SuperscriptingExponent",he[he.PerMille=8]="PerMille",he[he.Infinity=9]="Infinity",he[he.NaN=10]="NaN",he[he.TimeSeparator=11]="TimeSeparator",he[he.CurrencyDecimal=12]="CurrencyDecimal",he[he.CurrencyGroup=13]="CurrencyGroup",he))();function ce(qe,gt){return Ce((0,e.cg1)(qe)[e.wAp.DateFormat],gt)}function xe(qe,gt){return Ce((0,e.cg1)(qe)[e.wAp.TimeFormat],gt)}function ot(qe,gt){return Ce((0,e.cg1)(qe)[e.wAp.DateTimeFormat],gt)}function Fe(qe,gt){const Je=(0,e.cg1)(qe),Ct=Je[e.wAp.NumberSymbols][gt];if(typeof Ct>"u"){if(gt===he.CurrencyDecimal)return Je[e.wAp.NumberSymbols][he.Decimal];if(gt===he.CurrencyGroup)return Je[e.wAp.NumberSymbols][he.Group]}return Ct}function ye(qe){if(!qe[e.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${qe[e.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Ce(qe,gt){for(let Je=gt;Je>-1;Je--)if(typeof qe[Je]<"u")return qe[Je];throw new Error("Locale data API: locale data undefined")}function fe(qe){const[gt,Je]=qe.split(":");return{hours:+gt,minutes:+Je}}const E=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,h={},a=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var i=(()=>((i=i||{})[i.Short=0]="Short",i[i.ShortGMT=1]="ShortGMT",i[i.Long=2]="Long",i[i.Extended=3]="Extended",i))(),t=(()=>((t=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))(),n=(()=>((n=n||{})[n.DayPeriods=0]="DayPeriods",n[n.Days=1]="Days",n[n.Months=2]="Months",n[n.Eras=3]="Eras",n))();function o(qe,gt,Je,Ct){let Bt=function It(qe){if(an(qe))return qe;if("number"==typeof qe&&!isNaN(qe))return new Date(qe);if("string"==typeof qe){if(qe=qe.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(qe)){const[Bt,Qt=1,zt=1]=qe.split("-").map(vn=>+vn);return s(Bt,Qt-1,zt)}const Je=parseFloat(qe);if(!isNaN(qe-Je))return new Date(Je);let Ct;if(Ct=qe.match(E))return function jt(qe){const gt=new Date(0);let Je=0,Ct=0;const Bt=qe[8]?gt.setUTCFullYear:gt.setFullYear,Qt=qe[8]?gt.setUTCHours:gt.setHours;qe[9]&&(Je=Number(qe[9]+qe[10]),Ct=Number(qe[9]+qe[11])),Bt.call(gt,Number(qe[1]),Number(qe[2])-1,Number(qe[3]));const zt=Number(qe[4]||0)-Je,vn=Number(qe[5]||0)-Ct,ni=Number(qe[6]||0),Kn=Math.floor(1e3*parseFloat("0."+(qe[7]||0)));return Qt.call(gt,zt,vn,ni,Kn),gt}(Ct)}const gt=new Date(qe);if(!an(gt))throw new Error(`Unable to convert "${qe}" into a date`);return gt}(qe);gt=l(Je,gt)||gt;let vn,zt=[];for(;gt;){if(vn=a.exec(gt),!vn){zt.push(gt);break}{zt=zt.concat(vn.slice(1));const ti=zt.pop();if(!ti)break;gt=ti}}let ni=Bt.getTimezoneOffset();Ct&&(ni=Et(Ct,ni),Bt=function at(qe,gt,Je){const Ct=Je?-1:1,Bt=qe.getTimezoneOffset();return function ke(qe,gt){return(qe=new Date(qe.getTime())).setMinutes(qe.getMinutes()+gt),qe}(qe,Ct*(Et(gt,Bt)-Bt))}(Bt,Ct,!0));let Kn="";return zt.forEach(ti=>{const Gn=function Ke(qe){if(st[qe])return st[qe];let gt;switch(qe){case"G":case"GG":case"GGG":gt=ze(n.Eras,ve.Abbreviated);break;case"GGGG":gt=ze(n.Eras,ve.Wide);break;case"GGGGG":gt=ze(n.Eras,ve.Narrow);break;case"y":gt=J(t.FullYear,1,0,!1,!0);break;case"yy":gt=J(t.FullYear,2,0,!0,!0);break;case"yyy":gt=J(t.FullYear,3,0,!1,!0);break;case"yyyy":gt=J(t.FullYear,4,0,!1,!0);break;case"Y":gt=we(1);break;case"YY":gt=we(2,!0);break;case"YYY":gt=we(3);break;case"YYYY":gt=we(4);break;case"M":case"L":gt=J(t.Month,1,1);break;case"MM":case"LL":gt=J(t.Month,2,1);break;case"MMM":gt=ze(n.Months,ve.Abbreviated);break;case"MMMM":gt=ze(n.Months,ve.Wide);break;case"MMMMM":gt=ze(n.Months,ve.Narrow);break;case"LLL":gt=ze(n.Months,ve.Abbreviated,ge.Standalone);break;case"LLLL":gt=ze(n.Months,ve.Wide,ge.Standalone);break;case"LLLLL":gt=ze(n.Months,ve.Narrow,ge.Standalone);break;case"w":gt=re(1);break;case"ww":gt=re(2);break;case"W":gt=re(1,!0);break;case"d":gt=J(t.Date,1);break;case"dd":gt=J(t.Date,2);break;case"c":case"cc":gt=J(t.Day,1);break;case"ccc":gt=ze(n.Days,ve.Abbreviated,ge.Standalone);break;case"cccc":gt=ze(n.Days,ve.Wide,ge.Standalone);break;case"ccccc":gt=ze(n.Days,ve.Narrow,ge.Standalone);break;case"cccccc":gt=ze(n.Days,ve.Short,ge.Standalone);break;case"E":case"EE":case"EEE":gt=ze(n.Days,ve.Abbreviated);break;case"EEEE":gt=ze(n.Days,ve.Wide);break;case"EEEEE":gt=ze(n.Days,ve.Narrow);break;case"EEEEEE":gt=ze(n.Days,ve.Short);break;case"a":case"aa":case"aaa":gt=ze(n.DayPeriods,ve.Abbreviated);break;case"aaaa":gt=ze(n.DayPeriods,ve.Wide);break;case"aaaaa":gt=ze(n.DayPeriods,ve.Narrow);break;case"b":case"bb":case"bbb":gt=ze(n.DayPeriods,ve.Abbreviated,ge.Standalone,!0);break;case"bbbb":gt=ze(n.DayPeriods,ve.Wide,ge.Standalone,!0);break;case"bbbbb":gt=ze(n.DayPeriods,ve.Narrow,ge.Standalone,!0);break;case"B":case"BB":case"BBB":gt=ze(n.DayPeriods,ve.Abbreviated,ge.Format,!0);break;case"BBBB":gt=ze(n.DayPeriods,ve.Wide,ge.Format,!0);break;case"BBBBB":gt=ze(n.DayPeriods,ve.Narrow,ge.Format,!0);break;case"h":gt=J(t.Hours,1,-12);break;case"hh":gt=J(t.Hours,2,-12);break;case"H":gt=J(t.Hours,1);break;case"HH":gt=J(t.Hours,2);break;case"m":gt=J(t.Minutes,1);break;case"mm":gt=J(t.Minutes,2);break;case"s":gt=J(t.Seconds,1);break;case"ss":gt=J(t.Seconds,2);break;case"S":gt=J(t.FractionalSeconds,1);break;case"SS":gt=J(t.FractionalSeconds,2);break;case"SSS":gt=J(t.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":gt=ne(i.Short);break;case"ZZZZZ":gt=ne(i.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":gt=ne(i.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":gt=ne(i.Long);break;default:return null}return st[qe]=gt,gt}(ti);Kn+=Gn?Gn(Bt,Je,ni):"''"===ti?"'":ti.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),Kn}function s(qe,gt,Je){const Ct=new Date(0);return Ct.setFullYear(qe,gt,Je),Ct.setHours(0,0,0),Ct}function l(qe,gt){const Je=function Be(qe){return(0,e.cg1)(qe)[e.wAp.LocaleId]}(qe);if(h[Je]=h[Je]||{},h[Je][gt])return h[Je][gt];let Ct="";switch(gt){case"shortDate":Ct=ce(qe,De.Short);break;case"mediumDate":Ct=ce(qe,De.Medium);break;case"longDate":Ct=ce(qe,De.Long);break;case"fullDate":Ct=ce(qe,De.Full);break;case"shortTime":Ct=xe(qe,De.Short);break;case"mediumTime":Ct=xe(qe,De.Medium);break;case"longTime":Ct=xe(qe,De.Long);break;case"fullTime":Ct=xe(qe,De.Full);break;case"short":const Bt=l(qe,"shortTime"),Qt=l(qe,"shortDate");Ct=d(ot(qe,De.Short),[Bt,Qt]);break;case"medium":const zt=l(qe,"mediumTime"),vn=l(qe,"mediumDate");Ct=d(ot(qe,De.Medium),[zt,vn]);break;case"long":const ni=l(qe,"longTime"),Kn=l(qe,"longDate");Ct=d(ot(qe,De.Long),[ni,Kn]);break;case"full":const ti=l(qe,"fullTime"),Gn=l(qe,"fullDate");Ct=d(ot(qe,De.Full),[ti,Gn])}return Ct&&(h[Je][gt]=Ct),Ct}function d(qe,gt){return gt&&(qe=qe.replace(/\{([^}]+)}/g,function(Je,Ct){return null!=gt&&Ct in gt?gt[Ct]:Je})),qe}function c(qe,gt,Je="-",Ct,Bt){let Qt="";(qe<0||Bt&&qe<=0)&&(Bt?qe=1-qe:(qe=-qe,Qt=Je));let zt=String(qe);for(;zt.length0||vn>-Je)&&(vn+=Je),qe===t.Hours)0===vn&&-12===Je&&(vn=12);else if(qe===t.FractionalSeconds)return function S(qe,gt){return c(qe,3).substring(0,gt)}(vn,gt);const ni=Fe(zt,he.MinusSign);return c(vn,gt,ni,Ct,Bt)}}function ze(qe,gt,Je=ge.Format,Ct=!1){return function(Bt,Qt){return function et(qe,gt,Je,Ct,Bt,Qt){switch(Je){case n.Months:return function N(qe,gt,Je){const Ct=(0,e.cg1)(qe),Qt=Ce([Ct[e.wAp.MonthsFormat],Ct[e.wAp.MonthsStandalone]],gt);return Ce(Qt,Je)}(gt,Bt,Ct)[qe.getMonth()];case n.Days:return function le(qe,gt,Je){const Ct=(0,e.cg1)(qe),Qt=Ce([Ct[e.wAp.DaysFormat],Ct[e.wAp.DaysStandalone]],gt);return Ce(Qt,Je)}(gt,Bt,Ct)[qe.getDay()];case n.DayPeriods:const zt=qe.getHours(),vn=qe.getMinutes();if(Qt){const Kn=function _e(qe){const gt=(0,e.cg1)(qe);return ye(gt),(gt[e.wAp.ExtraData][2]||[]).map(Ct=>"string"==typeof Ct?fe(Ct):[fe(Ct[0]),fe(Ct[1])])}(gt),ti=function Se(qe,gt,Je){const Ct=(0,e.cg1)(qe);ye(Ct);const Qt=Ce([Ct[e.wAp.ExtraData][0],Ct[e.wAp.ExtraData][1]],gt)||[];return Ce(Qt,Je)||[]}(gt,Bt,Ct),Gn=Kn.findIndex(Ti=>{if(Array.isArray(Ti)){const[$n,vi]=Ti,nn=zt>=$n.hours&&vn>=$n.minutes,Un=zt0?Math.floor(Bt/60):Math.ceil(Bt/60);switch(qe){case i.Short:return(Bt>=0?"+":"")+c(zt,2,Qt)+c(Math.abs(Bt%60),2,Qt);case i.ShortGMT:return"GMT"+(Bt>=0?"+":"")+c(zt,1,Qt);case i.Long:return"GMT"+(Bt>=0?"+":"")+c(zt,2,Qt)+":"+c(Math.abs(Bt%60),2,Qt);case i.Extended:return 0===Ct?"Z":(Bt>=0?"+":"")+c(zt,2,Qt)+":"+c(Math.abs(Bt%60),2,Qt);default:throw new Error(`Unknown zone width "${qe}"`)}}}function Re(qe){return s(qe.getFullYear(),qe.getMonth(),qe.getDate()+(4-qe.getDay()))}function re(qe,gt=!1){return function(Je,Ct){let Bt;if(gt){const Qt=new Date(Je.getFullYear(),Je.getMonth(),1).getDay()-1,zt=Je.getDate();Bt=1+Math.floor((zt+Qt)/7)}else{const Qt=Re(Je),zt=function Pe(qe){const gt=s(qe,0,1).getDay();return s(qe,0,1+(gt<=4?4:11)-gt)}(Qt.getFullYear()),vn=Qt.getTime()-zt.getTime();Bt=1+Math.round(vn/6048e5)}return c(Bt,qe,Fe(Ct,he.MinusSign))}}function we(qe,gt=!1){return function(Je,Ct){return c(Re(Je).getFullYear(),qe,Fe(Ct,he.MinusSign),gt)}}const st={};function Et(qe,gt){qe=qe.replace(/:/g,"");const Je=Date.parse("Jan 01, 1970 00:00:00 "+qe)/6e4;return isNaN(Je)?gt:Je}function an(qe){return qe instanceof Date&&!isNaN(qe.valueOf())}function yn(qe,gt){gt=encodeURIComponent(gt);for(const Je of qe.split(";")){const Ct=Je.indexOf("="),[Bt,Qt]=-1==Ct?[Je,""]:[Je.slice(0,Ct),Je.slice(Ct+1)];if(Bt.trim()===gt)return decodeURIComponent(Qt)}return null}let Zn=(()=>{class qe{constructor(Je,Ct,Bt,Qt){this._iterableDiffers=Je,this._keyValueDiffers=Ct,this._ngEl=Bt,this._renderer=Qt,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(Je){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof Je?Je.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(Je){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof Je?Je.split(/\s+/):Je,this._rawClass&&((0,e.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const Je=this._iterableDiffer.diff(this._rawClass);Je&&this._applyIterableChanges(Je)}else if(this._keyValueDiffer){const Je=this._keyValueDiffer.diff(this._rawClass);Je&&this._applyKeyValueChanges(Je)}}_applyKeyValueChanges(Je){Je.forEachAddedItem(Ct=>this._toggleClass(Ct.key,Ct.currentValue)),Je.forEachChangedItem(Ct=>this._toggleClass(Ct.key,Ct.currentValue)),Je.forEachRemovedItem(Ct=>{Ct.previousValue&&this._toggleClass(Ct.key,!1)})}_applyIterableChanges(Je){Je.forEachAddedItem(Ct=>{if("string"!=typeof Ct.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,e.AaK)(Ct.item)}`);this._toggleClass(Ct.item,!0)}),Je.forEachRemovedItem(Ct=>this._toggleClass(Ct.item,!1))}_applyClasses(Je){Je&&(Array.isArray(Je)||Je instanceof Set?Je.forEach(Ct=>this._toggleClass(Ct,!0)):Object.keys(Je).forEach(Ct=>this._toggleClass(Ct,!!Je[Ct])))}_removeClasses(Je){Je&&(Array.isArray(Je)||Je instanceof Set?Je.forEach(Ct=>this._toggleClass(Ct,!1)):Object.keys(Je).forEach(Ct=>this._toggleClass(Ct,!1)))}_toggleClass(Je,Ct){(Je=Je.trim())&&Je.split(/\s+/g).forEach(Bt=>{Ct?this._renderer.addClass(this._ngEl.nativeElement,Bt):this._renderer.removeClass(this._ngEl.nativeElement,Bt)})}}return qe.\u0275fac=function(Je){return new(Je||qe)(e.Y36(e.ZZ4),e.Y36(e.aQg),e.Y36(e.SBq),e.Y36(e.Qsj))},qe.\u0275dir=e.lG2({type:qe,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),qe})();class di{constructor(gt,Je,Ct,Bt){this.$implicit=gt,this.ngForOf=Je,this.index=Ct,this.count=Bt}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 Jn=(()=>{class qe{constructor(Je,Ct,Bt){this._viewContainer=Je,this._template=Ct,this._differs=Bt,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(Je){this._ngForOf=Je,this._ngForOfDirty=!0}set ngForTrackBy(Je){this._trackByFn=Je}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(Je){Je&&(this._template=Je)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const Je=this._ngForOf;!this._differ&&Je&&(this._differ=this._differs.find(Je).create(this.ngForTrackBy))}if(this._differ){const Je=this._differ.diff(this._ngForOf);Je&&this._applyChanges(Je)}}_applyChanges(Je){const Ct=this._viewContainer;Je.forEachOperation((Bt,Qt,zt)=>{if(null==Bt.previousIndex)Ct.createEmbeddedView(this._template,new di(Bt.item,this._ngForOf,-1,-1),null===zt?void 0:zt);else if(null==zt)Ct.remove(null===Qt?void 0:Qt);else if(null!==Qt){const vn=Ct.get(Qt);Ct.move(vn,zt),Ln(vn,Bt)}});for(let Bt=0,Qt=Ct.length;Bt{Ln(Ct.get(Bt.currentIndex),Bt)})}static ngTemplateContextGuard(Je,Ct){return!0}}return qe.\u0275fac=function(Je){return new(Je||qe)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(e.ZZ4))},qe.\u0275dir=e.lG2({type:qe,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),qe})();function Ln(qe,gt){qe.context.$implicit=gt.item}let qn=(()=>{class qe{constructor(Je,Ct){this._viewContainer=Je,this._context=new si,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=Ct}set ngIf(Je){this._context.$implicit=this._context.ngIf=Je,this._updateView()}set ngIfThen(Je){Yi("ngIfThen",Je),this._thenTemplateRef=Je,this._thenViewRef=null,this._updateView()}set ngIfElse(Je){Yi("ngIfElse",Je),this._elseTemplateRef=Je,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(Je,Ct){return!0}}return qe.\u0275fac=function(Je){return new(Je||qe)(e.Y36(e.s_b),e.Y36(e.Rgc))},qe.\u0275dir=e.lG2({type:qe,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),qe})();class si{constructor(){this.$implicit=null,this.ngIf=null}}function Yi(qe,gt){if(gt&&!gt.createEmbeddedView)throw new Error(`${qe} must be a TemplateRef, but received '${(0,e.AaK)(gt)}'.`)}class tr{constructor(gt,Je){this._viewContainerRef=gt,this._templateRef=Je,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(gt){gt&&!this._created?this.create():!gt&&this._created&&this.destroy()}}let Vi=(()=>{class qe{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(Je){this._ngSwitch=Je,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(Je){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(Je)}_matchCase(Je){const Ct=Je==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||Ct,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),Ct}_updateDefaultCases(Je){if(this._defaultViews&&Je!==this._defaultUsed){this._defaultUsed=Je;for(let Ct=0;Ct{class qe{constructor(Je,Ct,Bt){this.ngSwitch=Bt,Bt._addCase(),this._view=new tr(Je,Ct)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return qe.\u0275fac=function(Je){return new(Je||qe)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(Vi,9))},qe.\u0275dir=e.lG2({type:qe,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),qe})(),or=(()=>{class qe{constructor(Je,Ct,Bt){Bt._addDefault(new tr(Je,Ct))}}return qe.\u0275fac=function(Je){return new(Je||qe)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(Vi,9))},qe.\u0275dir=e.lG2({type:qe,selectors:[["","ngSwitchDefault",""]],standalone:!0}),qe})(),Ci=(()=>{class qe{constructor(Je,Ct,Bt){this._ngEl=Je,this._differs=Ct,this._renderer=Bt,this._ngStyle=null,this._differ=null}set ngStyle(Je){this._ngStyle=Je,!this._differ&&Je&&(this._differ=this._differs.find(Je).create())}ngDoCheck(){if(this._differ){const Je=this._differ.diff(this._ngStyle);Je&&this._applyChanges(Je)}}_setStyle(Je,Ct){const[Bt,Qt]=Je.split("."),zt=-1===Bt.indexOf("-")?void 0:e.JOm.DashCase;null!=Ct?this._renderer.setStyle(this._ngEl.nativeElement,Bt,Qt?`${Ct}${Qt}`:Ct,zt):this._renderer.removeStyle(this._ngEl.nativeElement,Bt,zt)}_applyChanges(Je){Je.forEachRemovedItem(Ct=>this._setStyle(Ct.key,null)),Je.forEachAddedItem(Ct=>this._setStyle(Ct.key,Ct.currentValue)),Je.forEachChangedItem(Ct=>this._setStyle(Ct.key,Ct.currentValue))}}return qe.\u0275fac=function(Je){return new(Je||qe)(e.Y36(e.SBq),e.Y36(e.aQg),e.Y36(e.Qsj))},qe.\u0275dir=e.lG2({type:qe,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),qe})(),Er=(()=>{class qe{constructor(Je){this._viewContainerRef=Je,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(Je){if(Je.ngTemplateOutlet||Je.ngTemplateOutletInjector){const Ct=this._viewContainerRef;if(this._viewRef&&Ct.remove(Ct.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:Bt,ngTemplateOutletContext:Qt,ngTemplateOutletInjector:zt}=this;this._viewRef=Ct.createEmbeddedView(Bt,Qt,zt?{injector:zt}:void 0)}else this._viewRef=null}else this._viewRef&&Je.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return qe.\u0275fac=function(Je){return new(Je||qe)(e.Y36(e.s_b))},qe.\u0275dir=e.lG2({type:qe,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[e.TTD]}),qe})();function Ei(qe,gt){return new e.vHH(2100,!1)}class Or{createSubscription(gt,Je){return gt.subscribe({next:Je,error:Ct=>{throw Ct}})}dispose(gt){gt.unsubscribe()}}class Nr{createSubscription(gt,Je){return gt.then(Je,Ct=>{throw Ct})}dispose(gt){}}const kr=new Nr,Hr=new Or;let Pi=(()=>{class qe{constructor(Je){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=Je}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(Je){return this._obj?Je!==this._obj?(this._dispose(),this.transform(Je)):this._latestValue:(Je&&this._subscribe(Je),this._latestValue)}_subscribe(Je){this._obj=Je,this._strategy=this._selectStrategy(Je),this._subscription=this._strategy.createSubscription(Je,Ct=>this._updateLatestValue(Je,Ct))}_selectStrategy(Je){if((0,e.QGY)(Je))return kr;if((0,e.F4k)(Je))return Hr;throw Ei()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(Je,Ct){Je===this._obj&&(this._latestValue=Ct,this._ref.markForCheck())}}return qe.\u0275fac=function(Je){return new(Je||qe)(e.Y36(e.sBO,16))},qe.\u0275pipe=e.Yjl({name:"async",type:qe,pure:!1,standalone:!0}),qe})(),Ii=(()=>{class qe{transform(Je){if(null==Je)return null;if("string"!=typeof Je)throw Ei();return Je.toLowerCase()}}return qe.\u0275fac=function(Je){return new(Je||qe)},qe.\u0275pipe=e.Yjl({name:"lowercase",type:qe,pure:!0,standalone:!0}),qe})();const Mt=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g;let en=(()=>{class qe{transform(Je){if(null==Je)return null;if("string"!=typeof Je)throw Ei();return Je.replace(Mt,Ct=>Ct[0].toUpperCase()+Ct.slice(1).toLowerCase())}}return qe.\u0275fac=function(Je){return new(Je||qe)},qe.\u0275pipe=e.Yjl({name:"titlecase",type:qe,pure:!0,standalone:!0}),qe})(),ct=(()=>{class qe{transform(Je){if(null==Je)return null;if("string"!=typeof Je)throw Ei();return Je.toUpperCase()}}return qe.\u0275fac=function(Je){return new(Je||qe)},qe.\u0275pipe=e.Yjl({name:"uppercase",type:qe,pure:!0,standalone:!0}),qe})();const kt=new e.OlP("DATE_PIPE_DEFAULT_TIMEZONE");let Zt=(()=>{class qe{constructor(Je,Ct){this.locale=Je,this.defaultTimezone=Ct}transform(Je,Ct="mediumDate",Bt,Qt){if(null==Je||""===Je||Je!=Je)return null;try{var zt;return o(Je,Ct,Qt||this.locale,null!==(zt=Bt??this.defaultTimezone)&&void 0!==zt?zt:void 0)}catch(vn){throw Ei()}}}return qe.\u0275fac=function(Je){return new(Je||qe)(e.Y36(e.soG,16),e.Y36(kt,24))},qe.\u0275pipe=e.Yjl({name:"date",type:qe,pure:!0,standalone:!0}),qe})(),dn=(()=>{class qe{}return qe.\u0275fac=function(Je){return new(Je||qe)},qe.\u0275mod=e.oAB({type:qe}),qe.\u0275inj=e.cJS({}),qe})();const An="browser";function cr(qe){return qe===An}function Ji(qe){return"server"===qe}let Fi=(()=>{class qe{}return qe.\u0275prov=(0,e.Yz7)({token:qe,providedIn:"root",factory:()=>new Si((0,e.LFG)(D),window)}),qe})();class Si{constructor(gt,Je){this.document=gt,this.window=Je,this.offset=()=>[0,0]}setOffset(gt){this.offset=Array.isArray(gt)?()=>gt:gt}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(gt){this.supportsScrolling()&&this.window.scrollTo(gt[0],gt[1])}scrollToAnchor(gt){if(!this.supportsScrolling())return;const Je=function zr(qe,gt){const Je=qe.getElementById(gt)||qe.getElementsByName(gt)[0];if(Je)return Je;if("function"==typeof qe.createTreeWalker&&qe.body&&(qe.body.createShadowRoot||qe.body.attachShadow)){const Ct=qe.createTreeWalker(qe.body,NodeFilter.SHOW_ELEMENT);let Bt=Ct.currentNode;for(;Bt;){const Qt=Bt.shadowRoot;if(Qt){const zt=Qt.getElementById(gt)||Qt.querySelector(`[name="${gt}"]`);if(zt)return zt}Bt=Ct.nextNode()}}return null}(this.document,gt);Je&&(this.scrollToElement(Je),Je.focus())}setHistoryScrollRestoration(gt){if(this.supportScrollRestoration()){const Je=this.window.history;Je&&Je.scrollRestoration&&(Je.scrollRestoration=gt)}}scrollToElement(gt){const Je=gt.getBoundingClientRect(),Ct=Je.left+this.window.pageXOffset,Bt=Je.top+this.window.pageYOffset,Qt=this.offset();this.window.scrollTo(Ct-Qt[0],Bt-Qt[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const gt=Ua(this.window.history)||Ua(Object.getPrototypeOf(this.window.history));return!(!gt||!gt.writable&&!gt.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function Ua(qe){return Object.getOwnPropertyDescriptor(qe,"scrollRestoration")}class gi{}},80529:(Xe,ue,p)=>{"use strict";p.d(ue,{JF:()=>_,LE:()=>Te,TP:()=>le,WM:()=>B,Zn:()=>De,eN:()=>Be,qT:()=>Le});var e=p(36895),A=p(94650),C=p(39646),M=p(69751),m=p(24351),b=p(39300),D=p(54004);class v{}class R{}class B{constructor(i){this.normalizedNames=new Map,this.lazyUpdate=null,i?this.lazyInit="string"==typeof i?()=>{this.headers=new Map,i.split("\n").forEach(t=>{const n=t.indexOf(":");if(n>0){const o=t.slice(0,n),s=o.toLowerCase(),l=t.slice(n+1).trim();this.maybeSetNormalizedName(o,s),this.headers.has(s)?this.headers.get(s).push(l):this.headers.set(s,[l])}})}:()=>{this.headers=new Map,Object.keys(i).forEach(t=>{let n=i[t];const o=t.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(o,n),this.maybeSetNormalizedName(t,o))})}:this.headers=new Map}has(i){return this.init(),this.headers.has(i.toLowerCase())}get(i){this.init();const t=this.headers.get(i.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(i){return this.init(),this.headers.get(i.toLowerCase())||null}append(i,t){return this.clone({name:i,value:t,op:"a"})}set(i,t){return this.clone({name:i,value:t,op:"s"})}delete(i,t){return this.clone({name:i,value:t,op:"d"})}maybeSetNormalizedName(i,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,i)}init(){this.lazyInit&&(this.lazyInit instanceof B?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(i=>this.applyUpdate(i)),this.lazyUpdate=null))}copyFrom(i){i.init(),Array.from(i.headers.keys()).forEach(t=>{this.headers.set(t,i.headers.get(t)),this.normalizedNames.set(t,i.normalizedNames.get(t))})}clone(i){const t=new B;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof B?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([i]),t}applyUpdate(i){const t=i.name.toLowerCase();switch(i.op){case"a":case"s":let n=i.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(i.name,t);const o=("a"===i.op?this.headers.get(t):void 0)||[];o.push(...n),this.headers.set(t,o);break;case"d":const s=i.value;if(s){let l=this.headers.get(t);if(!l)return;l=l.filter(d=>-1===s.indexOf(d)),0===l.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,l)}else this.headers.delete(t),this.normalizedNames.delete(t)}}forEach(i){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>i(this.normalizedNames.get(t),this.headers.get(t)))}}class L{encodeKey(i){return z(i)}encodeValue(i){return z(i)}decodeKey(i){return decodeURIComponent(i)}decodeValue(i){return decodeURIComponent(i)}}const q=/%(\d[a-f0-9])/gi,te={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function z(a){return encodeURIComponent(a).replace(q,(i,t)=>{var n;return null!==(n=te[t])&&void 0!==n?n:i})}function ie(a){return`${a}`}class Te{constructor(i={}){if(this.updates=null,this.cloneFrom=null,this.encoder=i.encoder||new L,i.fromString){if(i.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function O(a,i){const t=new Map;return a.length>0&&a.replace(/^\?/,"").split("&").forEach(o=>{const s=o.indexOf("="),[l,d]=-1==s?[i.decodeKey(o),""]:[i.decodeKey(o.slice(0,s)),i.decodeValue(o.slice(s+1))],c=t.get(l)||[];c.push(d),t.set(l,c)}),t}(i.fromString,this.encoder)}else i.fromObject?(this.map=new Map,Object.keys(i.fromObject).forEach(t=>{const n=i.fromObject[t],o=Array.isArray(n)?n.map(ie):[ie(n)];this.map.set(t,o)})):this.map=null}has(i){return this.init(),this.map.has(i)}get(i){this.init();const t=this.map.get(i);return t?t[0]:null}getAll(i){return this.init(),this.map.get(i)||null}keys(){return this.init(),Array.from(this.map.keys())}append(i,t){return this.clone({param:i,value:t,op:"a"})}appendAll(i){const t=[];return Object.keys(i).forEach(n=>{const o=i[n];Array.isArray(o)?o.forEach(s=>{t.push({param:n,value:s,op:"a"})}):t.push({param:n,value:o,op:"a"})}),this.clone(t)}set(i,t){return this.clone({param:i,value:t,op:"s"})}delete(i,t){return this.clone({param:i,value:t,op:"d"})}toString(){return this.init(),this.keys().map(i=>{const t=this.encoder.encodeKey(i);return this.map.get(i).map(n=>t+"="+this.encoder.encodeValue(n)).join("&")}).filter(i=>""!==i).join("&")}clone(i){const t=new Te({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(i),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(i=>this.map.set(i,this.cloneFrom.map.get(i))),this.updates.forEach(i=>{switch(i.op){case"a":case"s":const t=("a"===i.op?this.map.get(i.param):void 0)||[];t.push(ie(i.value)),this.map.set(i.param,t);break;case"d":if(void 0===i.value){this.map.delete(i.param);break}{let n=this.map.get(i.param)||[];const o=n.indexOf(ie(i.value));-1!==o&&n.splice(o,1),n.length>0?this.map.set(i.param,n):this.map.delete(i.param)}}}),this.cloneFrom=this.updates=null)}}class Le{constructor(){this.map=new Map}set(i,t){return this.map.set(i,t),this}get(i){return this.map.has(i)||this.map.set(i,i.defaultValue()),this.map.get(i)}delete(i){return this.map.delete(i),this}has(i){return this.map.has(i)}keys(){return this.map.keys()}}function W(a){return typeof ArrayBuffer<"u"&&a instanceof ArrayBuffer}function F(a){return typeof Blob<"u"&&a instanceof Blob}function V(a){return typeof FormData<"u"&&a instanceof FormData}class Q{constructor(i,t,n,o){let s;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=i.toUpperCase(),function T(a){switch(a){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||o?(this.body=void 0!==n?n:null,s=o):s=n,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params)),this.headers||(this.headers=new B),this.context||(this.context=new Le),this.params){const l=this.params.toString();if(0===l.length)this.urlWithParams=t;else{const d=t.indexOf("?");this.urlWithParams=t+(-1===d?"?":dze.set(et,i.setHeaders[et]),S)),i.setParams&&(J=Object.keys(i.setParams).reduce((ze,et)=>ze.set(et,i.setParams[et]),J)),new Q(n,o,l,{params:J,headers:S,context:ht,reportProgress:c,responseType:s,withCredentials:d})}}var Ee=(()=>((Ee=Ee||{})[Ee.Sent=0]="Sent",Ee[Ee.UploadProgress=1]="UploadProgress",Ee[Ee.ResponseHeader=2]="ResponseHeader",Ee[Ee.DownloadProgress=3]="DownloadProgress",Ee[Ee.Response=4]="Response",Ee[Ee.User=5]="User",Ee))();class ge{constructor(i,t=200,n="OK"){this.headers=i.headers||new B,this.status=void 0!==i.status?i.status:t,this.statusText=i.statusText||n,this.url=i.url||null,this.ok=this.status>=200&&this.status<300}}class ve extends ge{constructor(i={}){super(i),this.type=Ee.ResponseHeader}clone(i={}){return new ve({headers:i.headers||this.headers,status:void 0!==i.status?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0})}}class De extends ge{constructor(i={}){super(i),this.type=Ee.Response,this.body=void 0!==i.body?i.body:null}clone(i={}){return new De({body:void 0!==i.body?i.body:this.body,headers:i.headers||this.headers,status:void 0!==i.status?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0})}}class he extends ge{constructor(i){super(i,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${i.url||"(unknown url)"}`:`Http failure response for ${i.url||"(unknown url)"}: ${i.status} ${i.statusText}`,this.error=i.error||null}}function Ye(a,i){return{body:i,headers:a.headers,context:a.context,observe:a.observe,params:a.params,reportProgress:a.reportProgress,responseType:a.responseType,withCredentials:a.withCredentials}}let Be=(()=>{class a{constructor(t){this.handler=t}request(t,n,o={}){let s;if(t instanceof Q)s=t;else{let c,S;c=o.headers instanceof B?o.headers:new B(o.headers),o.params&&(S=o.params instanceof Te?o.params:new Te({fromObject:o.params})),s=new Q(t,n,void 0!==o.body?o.body:null,{headers:c,context:o.context,params:S,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials})}const l=(0,C.of)(s).pipe((0,m.b)(c=>this.handler.handle(c)));if(t instanceof Q||"events"===o.observe)return l;const d=l.pipe((0,b.h)(c=>c instanceof De));switch(o.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return d.pipe((0,D.U)(c=>{if(null!==c.body&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return d.pipe((0,D.U)(c=>{if(null!==c.body&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return d.pipe((0,D.U)(c=>{if(null!==c.body&&"string"!=typeof c.body)throw new Error("Response is not a string.");return c.body}));default:return d.pipe((0,D.U)(c=>c.body))}case"response":return d;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(t,n={}){return this.request("DELETE",t,n)}get(t,n={}){return this.request("GET",t,n)}head(t,n={}){return this.request("HEAD",t,n)}jsonp(t,n){return this.request("JSONP",t,{params:(new Te).append(n,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,n={}){return this.request("OPTIONS",t,n)}patch(t,n,o={}){return this.request("PATCH",t,Ye(o,n))}post(t,n,o={}){return this.request("POST",t,Ye(o,n))}put(t,n,o={}){return this.request("PUT",t,Ye(o,n))}}return a.\u0275fac=function(t){return new(t||a)(A.LFG(v))},a.\u0275prov=A.Yz7({token:a,factory:a.\u0275fac}),a})();class se{constructor(i,t){this.next=i,this.interceptor=t}handle(i){return this.interceptor.intercept(i,this.next)}}const le=new A.OlP("HTTP_INTERCEPTORS");let N=(()=>{class a{intercept(t,n){return n.handle(t)}}return a.\u0275fac=function(t){return new(t||a)},a.\u0275prov=A.Yz7({token:a,factory:a.\u0275fac}),a})();const vt=/^\)\]\}',?\n/;let nt=(()=>{class a{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new M.y(n=>{const o=this.xhrFactory.build();if(o.open(t.method,t.urlWithParams),t.withCredentials&&(o.withCredentials=!0),t.headers.forEach((et,ne)=>o.setRequestHeader(et,ne.join(","))),t.headers.has("Accept")||o.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const et=t.detectContentTypeHeader();null!==et&&o.setRequestHeader("Content-Type",et)}if(t.responseType){const et=t.responseType.toLowerCase();o.responseType="json"!==et?et:"text"}const s=t.serializeBody();let l=null;const d=()=>{if(null!==l)return l;const et=o.statusText||"OK",ne=new B(o.getAllResponseHeaders()),Ue=function X(a){return"responseURL"in a&&a.responseURL?a.responseURL:/^X-Request-URL:/m.test(a.getAllResponseHeaders())?a.getResponseHeader("X-Request-URL"):null}(o)||t.url;return l=new ve({headers:ne,status:o.status,statusText:et,url:Ue}),l},c=()=>{let{headers:et,status:ne,statusText:Ue,url:He}=d(),Pe=null;204!==ne&&(Pe=typeof o.response>"u"?o.responseText:o.response),0===ne&&(ne=Pe?200:0);let Re=ne>=200&&ne<300;if("json"===t.responseType&&"string"==typeof Pe){const re=Pe;Pe=Pe.replace(vt,"");try{Pe=""!==Pe?JSON.parse(Pe):null}catch(we){Pe=re,Re&&(Re=!1,Pe={error:we,text:Pe})}}Re?(n.next(new De({body:Pe,headers:et,status:ne,statusText:Ue,url:He||void 0})),n.complete()):n.error(new he({error:Pe,headers:et,status:ne,statusText:Ue,url:He||void 0}))},S=et=>{const{url:ne}=d(),Ue=new he({error:et,status:o.status||0,statusText:o.statusText||"Unknown Error",url:ne||void 0});n.error(Ue)};let J=!1;const ht=et=>{J||(n.next(d()),J=!0);let ne={type:Ee.DownloadProgress,loaded:et.loaded};et.lengthComputable&&(ne.total=et.total),"text"===t.responseType&&!!o.responseText&&(ne.partialText=o.responseText),n.next(ne)},ze=et=>{let ne={type:Ee.UploadProgress,loaded:et.loaded};et.lengthComputable&&(ne.total=et.total),n.next(ne)};return o.addEventListener("load",c),o.addEventListener("error",S),o.addEventListener("timeout",S),o.addEventListener("abort",S),t.reportProgress&&(o.addEventListener("progress",ht),null!==s&&o.upload&&o.upload.addEventListener("progress",ze)),o.send(s),n.next({type:Ee.Sent}),()=>{o.removeEventListener("error",S),o.removeEventListener("abort",S),o.removeEventListener("load",c),o.removeEventListener("timeout",S),t.reportProgress&&(o.removeEventListener("progress",ht),null!==s&&o.upload&&o.upload.removeEventListener("progress",ze)),o.readyState!==o.DONE&&o.abort()}})}}return a.\u0275fac=function(t){return new(t||a)(A.LFG(e.JF))},a.\u0275prov=A.Yz7({token:a,factory:a.\u0275fac}),a})();const Ae=new A.OlP("XSRF_COOKIE_NAME"),ye=new A.OlP("XSRF_HEADER_NAME");class _e{}let Se=(()=>{class a{constructor(t,n,o){this.doc=t,this.platform=n,this.cookieName=o,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=(0,e.Mx)(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return a.\u0275fac=function(t){return new(t||a)(A.LFG(e.K0),A.LFG(A.Lbi),A.LFG(Ae))},a.\u0275prov=A.Yz7({token:a,factory:a.\u0275fac}),a})(),Ne=(()=>{class a{constructor(t,n){this.tokenService=t,this.headerName=n}intercept(t,n){const o=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||o.startsWith("http://")||o.startsWith("https://"))return n.handle(t);const s=this.tokenService.getToken();return null!==s&&!t.headers.has(this.headerName)&&(t=t.clone({headers:t.headers.set(this.headerName,s)})),n.handle(t)}}return a.\u0275fac=function(t){return new(t||a)(A.LFG(_e),A.LFG(ye))},a.\u0275prov=A.Yz7({token:a,factory:a.\u0275fac}),a})(),Ce=(()=>{class a{constructor(t,n){this.backend=t,this.injector=n,this.chain=null}handle(t){if(null===this.chain){const n=this.injector.get(le,[]);this.chain=n.reduceRight((o,s)=>new se(o,s),this.backend)}return this.chain.handle(t)}}return a.\u0275fac=function(t){return new(t||a)(A.LFG(R),A.LFG(A.zs3))},a.\u0275prov=A.Yz7({token:a,factory:a.\u0275fac}),a})(),u=(()=>{class a{static disable(){return{ngModule:a,providers:[{provide:Ne,useClass:N}]}}static withOptions(t={}){return{ngModule:a,providers:[t.cookieName?{provide:Ae,useValue:t.cookieName}:[],t.headerName?{provide:ye,useValue:t.headerName}:[]]}}}return a.\u0275fac=function(t){return new(t||a)},a.\u0275mod=A.oAB({type:a}),a.\u0275inj=A.cJS({providers:[Ne,{provide:le,useExisting:Ne,multi:!0},{provide:_e,useClass:Se},{provide:Ae,useValue:"XSRF-TOKEN"},{provide:ye,useValue:"X-XSRF-TOKEN"}]}),a})(),_=(()=>{class a{}return a.\u0275fac=function(t){return new(t||a)},a.\u0275mod=A.oAB({type:a}),a.\u0275inj=A.cJS({providers:[Be,{provide:v,useClass:Ce},nt,{provide:R,useExisting:nt}],imports:[u.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),a})()},94650:(Xe,ue,p)=>{"use strict";p.d(ue,{$8M:()=>ho,$Z:()=>kp,AFp:()=>Qg,ALo:()=>pg,AaK:()=>v,AsE:()=>Ou,B6R:()=>He,BQk:()=>wc,CHM:()=>Ki,CRH:()=>Sg,CZH:()=>Nc,CqO:()=>If,D6c:()=>jT,DdM:()=>rg,Dn7:()=>gg,EJc:()=>iT,EiD:()=>To,EpF:()=>Rf,F$t:()=>Uf,F4k:()=>Pf,FYo:()=>jh,FiY:()=>er,G48:()=>yT,Gf:()=>yg,GfV:()=>Zh,GkF:()=>Tu,Gpc:()=>w,Gre:()=>um,HOy:()=>Lu,Hsn:()=>Nf,Ikx:()=>Uu,JOm:()=>Ra,JVY:()=>dd,Jf7:()=>ep,KtG:()=>ji,L6k:()=>ud,LAX:()=>pd,LFG:()=>Bi,LSH:()=>Wn,Lbi:()=>XE,Lck:()=>Xv,MAs:()=>Df,MGl:()=>Sc,MMx:()=>Yu,NdJ:()=>wu,O4$:()=>qr,OlP:()=>ai,Oqu:()=>Iu,PXZ:()=>AT,Q2q:()=>Cu,Q6J:()=>bu,QGY:()=>yu,QP$:()=>zs,QbO:()=>eT,Qsj:()=>j_,R0b:()=>Wr,RDi:()=>ml,Rgc:()=>Ll,SBq:()=>Al,Sil:()=>aT,Suo:()=>wg,TTD:()=>Oi,TgZ:()=>Ec,Tol:()=>Xf,Udp:()=>Du,VKq:()=>ag,W1O:()=>Rg,WFA:()=>Su,WLB:()=>og,XFs:()=>Ne,Xpm:()=>Ue,Xts:()=>Cr,Y36:()=>xs,YKP:()=>Qm,YNc:()=>xf,Yjl:()=>Et,Yz7:()=>xe,ZZ4:()=>_h,_Bn:()=>Jm,_UZ:()=>Eu,_Vd:()=>_l,_c5:()=>VT,_uU:()=>om,aQg:()=>Ah,c2e:()=>tT,cJS:()=>Fe,cg1:()=>ku,d8E:()=>Nu,dDg:()=>fT,dqk:()=>n,eBb:()=>hd,eFA:()=>c_,ekj:()=>Ru,eoX:()=>o_,evT:()=>tp,f3M:()=>Yl,g9A:()=>$g,gM2:()=>_g,h0i:()=>Gs,hGG:()=>FT,hYB:()=>xu,hij:()=>xc,iGM:()=>Tg,ifc:()=>t,ip1:()=>Jg,kEZ:()=>sg,kL8:()=>vm,kcU:()=>Ks,lG2:()=>Ke,lcZ:()=>fg,lnq:()=>Hu,lqb:()=>Yo,lri:()=>r_,mCW:()=>Ht,n5z:()=>Bo,n_E:()=>Oc,oAB:()=>re,oJD:()=>Sn,oxw:()=>Bf,pB0:()=>Ph,q3G:()=>pn,qLn:()=>Cl,qOj:()=>mu,qZA:()=>Tc,qzn:()=>bo,rWj:()=>a_,s9C:()=>Mu,sBO:()=>wT,sIi:()=>Sl,s_b:()=>Lc,soG:()=>kc,tb:()=>Xg,tp0:()=>go,uIk:()=>Au,vHH:()=>te,vpe:()=>La,wAp:()=>Rn,xDo:()=>Bu,xi3:()=>mg,xp6:()=>Sp,ynx:()=>yc,z2F:()=>Vc,z3N:()=>ca,zSh:()=>gd,zs3:()=>Jo});var e=p(77579),A=p(50727),C=p(69751),M=p(56451),m=p(13099);function b(f){for(let g in f)if(f[g]===b)return g;throw Error("Could not find renamed property on target object.")}function D(f,g){for(const y in g)g.hasOwnProperty(y)&&!f.hasOwnProperty(y)&&(f[y]=g[y])}function v(f){if("string"==typeof f)return f;if(Array.isArray(f))return"["+f.map(v).join(", ")+"]";if(null==f)return""+f;if(f.overriddenName)return`${f.overriddenName}`;if(f.name)return`${f.name}`;const g=f.toString();if(null==g)return""+g;const y=g.indexOf("\n");return-1===y?g:g.substring(0,y)}function R(f,g){return null==f||""===f?null===g?"":g:null==g||""===g?f:f+" "+g}const B=b({__forward_ref__:b});function w(f){return f.__forward_ref__=w,f.toString=function(){return v(this())},f}function L(f){return O(f)?f():f}function O(f){return"function"==typeof f&&f.hasOwnProperty(B)&&f.__forward_ref__===w}class te extends Error{constructor(g,y){super(function z(f,g){return`NG0${Math.abs(f)}${g?": "+g.trim():""}`}(g,y)),this.code=g}}function ie(f){return"string"==typeof f?f:null==f?"":String(f)}function W(f,g){throw new te(-201,!1)}function N(f,g){null==f&&function k(f,g,y,x){throw new Error(`ASSERTION ERROR: ${f}`+(null==x?"":` [Expected=> ${y} ${x} ${g} <=Actual]`))}(g,f,null,"!=")}function xe(f){return{token:f.token,providedIn:f.providedIn||null,factory:f.factory,value:void 0}}function Fe(f){return{providers:f.providers||[],imports:f.imports||[]}}function ut(f){return tt(f,Ae)||tt(f,_e)}function tt(f,g){return f.hasOwnProperty(g)?f[g]:null}function nt(f){return f&&(f.hasOwnProperty(ye)||f.hasOwnProperty(Se))?f[ye]:null}const Ae=b({\u0275prov:b}),ye=b({\u0275inj:b}),_e=b({ngInjectableDef:b}),Se=b({ngInjectorDef:b});var Ne=(()=>((Ne=Ne||{})[Ne.Default=0]="Default",Ne[Ne.Host=1]="Host",Ne[Ne.Self=2]="Self",Ne[Ne.SkipSelf=4]="SkipSelf",Ne[Ne.Optional=8]="Optional",Ne))();let Ce;function r(f){const g=Ce;return Ce=f,g}function u(f,g,y){const x=ut(f);return x&&"root"==x.providedIn?void 0===x.value?x.value=x.factory():x.value:y&Ne.Optional?null:void 0!==g?g:void W(v(f))}function E(f){return{toString:f}.toString()}var h=(()=>((h=h||{})[h.OnPush=0]="OnPush",h[h.Default=1]="Default",h))(),t=(()=>{return(f=t||(t={}))[f.Emulated=0]="Emulated",f[f.None=2]="None",f[f.ShadowDom=3]="ShadowDom",t;var f})();const n=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),l={},d=[],c=b({\u0275cmp:b}),S=b({\u0275dir:b}),J=b({\u0275pipe:b}),ht=b({\u0275mod:b}),ze=b({\u0275fac:b}),et=b({__NG_ELEMENT_ID__:b});let ne=0;function Ue(f){return E(()=>{const y=!0===f.standalone,x={},P={type:f.type,providersResolver:null,decls:f.decls,vars:f.vars,factory:null,template:f.template||null,consts:f.consts||null,ngContentSelectors:f.ngContentSelectors,hostBindings:f.hostBindings||null,hostVars:f.hostVars||0,hostAttrs:f.hostAttrs||null,contentQueries:f.contentQueries||null,declaredInputs:x,inputs:null,outputs:null,exportAs:f.exportAs||null,onPush:f.changeDetection===h.OnPush,directiveDefs:null,pipeDefs:null,standalone:y,dependencies:y&&f.dependencies||null,getStandaloneInjector:null,selectors:f.selectors||d,viewQuery:f.viewQuery||null,features:f.features||null,data:f.data||{},encapsulation:f.encapsulation||t.Emulated,id:"c"+ne++,styles:f.styles||d,_:null,setInput:null,schemas:f.schemas||null,tView:null},H=f.dependencies,j=f.features;return P.inputs=st(f.inputs,x),P.outputs=st(f.outputs),j&&j.forEach(me=>me(P)),P.directiveDefs=H?()=>("function"==typeof H?H():H).map(Pe).filter(Re):null,P.pipeDefs=H?()=>("function"==typeof H?H():H).map(It).filter(Re):null,P})}function He(f,g,y){const x=f.\u0275cmp;x.directiveDefs=()=>("function"==typeof g?g():g).map(Pe),x.pipeDefs=()=>("function"==typeof y?y():y).map(It)}function Pe(f){return ke(f)||at(f)}function Re(f){return null!==f}function re(f){return E(()=>({type:f.type,bootstrap:f.bootstrap||d,declarations:f.declarations||d,imports:f.imports||d,exports:f.exports||d,transitiveCompileScopes:null,schemas:f.schemas||null,id:f.id||null}))}function st(f,g){if(null==f)return l;const y={};for(const x in f)if(f.hasOwnProperty(x)){let P=f[x],H=P;Array.isArray(P)&&(H=P[1],P=P[0]),y[P]=x,g&&(g[P]=H)}return y}const Ke=Ue;function Et(f){return{type:f.type,name:f.name,factory:null,pure:!1!==f.pure,standalone:!0===f.standalone,onDestroy:f.type.prototype.ngOnDestroy||null}}function ke(f){return f[c]||null}function at(f){return f[S]||null}function It(f){return f[J]||null}function jt(f,g){const y=f[ht]||null;if(!y&&!0===g)throw new Error(`Type ${v(f)} does not have '\u0275mod' property.`);return y}const $=18;function qn(f){return Array.isArray(f)&&"object"==typeof f[1]}function si(f){return Array.isArray(f)&&!0===f[1]}function Yi(f){return 0!=(8&f.flags)}function tr(f){return 2==(2&f.flags)}function Vi(f){return 1==(1&f.flags)}function li(f){return null!==f.template}function or(f){return 0!=(256&f[2])}function ui(f,g){return f.hasOwnProperty(ze)?f[ze]:null}class nr{constructor(g,y,x){this.previousValue=g,this.currentValue=y,this.firstChange=x}isFirstChange(){return this.firstChange}}function Oi(){return xi}function xi(f){return f.type.prototype.ngOnChanges&&(f.setInput=lt),qi}function qi(){const f=$e(this),g=f?.current;if(g){const y=f.previous;if(y===l)f.previous=g;else for(let x in g)y[x]=g[x];f.current=null,this.ngOnChanges(g)}}function lt(f,g,y,x){const P=$e(f)||function yt(f,g){return f[Vt]=g}(f,{previous:l,current:null}),H=P.current||(P.current={}),j=P.previous,me=this.declaredInputs[y],Oe=j[me];H[me]=new nr(Oe&&Oe.currentValue,g,j===l),f[x]=g}Oi.ngInherit=!0;const Vt="__ngSimpleChanges__";function $e(f){return f[Vt]||null}function ei(f){for(;Array.isArray(f);)f=f[0];return f}function Fi(f,g){return ei(g[f])}function Si(f,g){return ei(g[f.index])}function zr(f,g){return f.data[g]}function dr(f,g){return f[g]}function gi(f,g){const y=g[f];return qn(y)?y:y[0]}function qe(f){return 4==(4&f[2])}function gt(f){return 64==(64&f[2])}function Ct(f,g){return null==g?null:f[g]}function Bt(f){f[$]=0}function Qt(f,g){f[5]+=g;let y=f,x=f[3];for(;null!==x&&(1===g&&1===y[5]||-1===g&&0===y[5]);)x[5]+=g,y=x,x=x[3]}const zt={lFrame:is(null),bindingsEnabled:!0};function Ti(){return zt.bindingsEnabled}function nn(){return zt.lFrame.lView}function Un(){return zt.lFrame.tView}function Ki(f){return zt.lFrame.contextLView=f,f[8]}function ji(f){return zt.lFrame.contextLView=null,f}function ci(){let f=Tr();for(;null!==f&&64===f.type;)f=f.parent;return f}function Tr(){return zt.lFrame.currentTNode}function Qe(f,g){const y=zt.lFrame;y.currentTNode=f,y.isParent=g}function Ve(){return zt.lFrame.isParent}function Ie(){zt.lFrame.isParent=!1}function ii(){const f=zt.lFrame;let g=f.bindingRootIndex;return-1===g&&(g=f.bindingRootIndex=f.tView.bindingStartIndex),g}function $i(){return zt.lFrame.bindingIndex}function ur(){return zt.lFrame.bindingIndex++}function yr(f){const g=zt.lFrame,y=g.bindingIndex;return g.bindingIndex=g.bindingIndex+f,y}function qs(f,g){const y=zt.lFrame;y.bindingIndex=y.bindingRootIndex=f,xo(g)}function xo(f){zt.lFrame.currentDirectiveIndex=f}function Xa(f){const g=zt.lFrame.currentDirectiveIndex;return-1===g?null:f[g]}function ts(){return zt.lFrame.currentQueryIndex}function ta(f){zt.lFrame.currentQueryIndex=f}function ns(f){const g=f[1];return 2===g.type?g.declTNode:1===g.type?f[6]:null}function na(f,g,y){if(y&Ne.SkipSelf){let P=g,H=f;for(;!(P=P.parent,null!==P||y&Ne.Host||(P=ns(H),null===P||(H=H[15],10&P.type))););if(null===P)return!1;g=P,f=H}const x=zt.lFrame=ka();return x.currentTNode=g,x.lView=f,!0}function Yr(f){const g=ka(),y=f[1];zt.lFrame=g,g.currentTNode=y.firstChild,g.lView=f,g.tView=y,g.contextLView=f,g.bindingIndex=y.bindingStartIndex,g.inI18n=!1}function ka(){const f=zt.lFrame,g=null===f?null:f.child;return null===g?is(f):g}function is(f){const g={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:f,child:null,inI18n:!1};return null!==f&&(f.child=g),g}function Do(){const f=zt.lFrame;return zt.lFrame=f.parent,f.currentTNode=null,f.lView=null,f}const rs=Do;function Va(){const f=Do();f.isParent=!0,f.tView=null,f.selectedIndex=-1,f.contextLView=null,f.elementDepthCount=0,f.currentDirectiveIndex=-1,f.currentNamespace=null,f.bindingRootIndex=-1,f.bindingIndex=-1,f.currentQueryIndex=0}function Hi(){return zt.lFrame.selectedIndex}function wr(f){zt.lFrame.selectedIndex=f}function _i(){const f=zt.lFrame;return zr(f.tView,f.selectedIndex)}function qr(){zt.lFrame.currentNamespace="svg"}function Ks(){!function $s(){zt.lFrame.currentNamespace=null}()}function to(f,g){for(let y=g.directiveStart,x=g.directiveEnd;y=x)break}else g[Oe]<0&&(f[$]+=65536),(me>11>16&&(3&f[2])===g){f[2]+=2048;try{H.call(me)}finally{}}}else try{H.call(me)}finally{}}class Fa{constructor(g,y,x){this.factory=g,this.resolving=!1,this.canSeeViewProviders=y,this.injectImpl=x}}function _a(f,g,y){let x=0;for(;xg){j=H-1;break}}}for(;H>16}(f),x=g;for(;y>0;)x=x[15],y--;return x}let lo=!0;function Ca(f){const g=lo;return lo=f,g}let ba=0;const pr={};function Qr(f,g){const y=co(f,g);if(-1!==y)return y;const x=g[1];x.firstCreatePass&&(f.injectorIndex=g.length,Za(x.data,f),Za(g,null),Za(x.blueprint,null));const P=ra(f,g),H=f.injectorIndex;if(so(P)){const j=Aa(P),me=Sr(P,g),Oe=me[1].data;for(let it=0;it<8;it++)g[H+it]=me[j+it]|Oe[j+it]}return g[H+8]=P,H}function Za(f,g){f.push(0,0,0,0,0,0,0,0,g)}function co(f,g){return-1===f.injectorIndex||f.parent&&f.parent.injectorIndex===f.injectorIndex||null===g[f.injectorIndex+8]?-1:f.injectorIndex}function ra(f,g){if(f.parent&&-1!==f.parent.injectorIndex)return f.parent.injectorIndex;let y=0,x=null,P=g;for(;null!==P;){if(x=Uo(P),null===x)return-1;if(y++,P=P[15],-1!==x.injectorIndex)return x.injectorIndex|y<<16}return-1}function aa(f,g,y){!function us(f,g,y){let x;"string"==typeof y?x=y.charCodeAt(0)||0:y.hasOwnProperty(et)&&(x=y[et]),null==x&&(x=y[et]=ba++);const P=255&x;g.data[f+(P>>5)]|=1<=0?255&g:ms:g}(y);if("function"==typeof H){if(!na(g,f,x))return x&Ne.Host?uo(P,0,x):hs(g,y,x,P);try{const j=H(x);if(null!=j||x&Ne.Optional)return j;W()}finally{rs()}}else if("number"==typeof H){let j=null,me=co(f,g),Oe=-1,it=x&Ne.Host?g[16][6]:null;for((-1===me||x&Ne.SkipSelf)&&(Oe=-1===me?ra(f,g):g[me+8],-1!==Oe&&va(x,!1)?(j=g[1],me=Aa(Oe),g=Sr(Oe,g)):me=-1);-1!==me;){const ft=g[1];if(Kr(H,me,ft.data)){const xt=fs(me,g,y,j,x,it);if(xt!==pr)return xt}Oe=g[me+8],-1!==Oe&&va(x,g[1].data[me+8]===it)&&Kr(H,me,g)?(j=ft,me=Aa(Oe),g=Sr(Oe,g)):me=-1}}return P}function fs(f,g,y,x,P,H){const j=g[1],me=j.data[f+8],ft=Di(me,j,y,null==x?tr(me)&&lo:x!=j&&0!=(3&me.type),P&Ne.Host&&H===me);return null!==ft?Ga(g,j,ft,me):pr}function Di(f,g,y,x,P){const H=f.providerIndexes,j=g.data,me=1048575&H,Oe=f.directiveStart,ft=H>>20,Nt=P?me+ft:f.directiveEnd;for(let Yt=x?me:me+ft;Yt=Oe&&tn.type===y)return Yt}if(P){const Yt=j[Oe];if(Yt&&li(Yt)&&Yt.type===y)return Oe}return null}function Ga(f,g,y,x){let P=f[y];const H=g.data;if(function Po(f){return f instanceof Fa}(P)){const j=P;j.resolving&&function pe(f,g){const y=g?`. Dependency path: ${g.join(" > ")} > ${f}`:"";throw new te(-200,`Circular dependency in DI detected for ${f}${y}`)}(function Te(f){return"function"==typeof f?f.name||f.toString():"object"==typeof f&&null!=f&&"function"==typeof f.type?f.type.name||f.type.toString():ie(f)}(H[y]));const me=Ca(j.canSeeViewProviders);j.resolving=!0;const Oe=j.injectImpl?r(j.injectImpl):null;na(f,x,Ne.Default);try{P=f[y]=j.factory(void 0,H,f,x),g.firstCreatePass&&y>=x.directiveStart&&function el(f,g,y){const{ngOnChanges:x,ngOnInit:P,ngDoCheck:H}=g.type.prototype;if(x){const j=xi(g);(y.preOrderHooks||(y.preOrderHooks=[])).push(f,j),(y.preOrderCheckHooks||(y.preOrderCheckHooks=[])).push(f,j)}P&&(y.preOrderHooks||(y.preOrderHooks=[])).push(0-f,P),H&&((y.preOrderHooks||(y.preOrderHooks=[])).push(f,H),(y.preOrderCheckHooks||(y.preOrderCheckHooks=[])).push(f,H))}(y,H[y],g)}finally{null!==Oe&&r(Oe),Ca(me),j.resolving=!1,rs()}}return P}function Kr(f,g,y){return!!(y[g+(f>>5)]&1<{const g=f.prototype.constructor,y=g[ze]||gs(g),x=Object.prototype;let P=Object.getPrototypeOf(f.prototype).constructor;for(;P&&P!==x;){const H=P[ze]||gs(P);if(H&&H!==y)return H;P=Object.getPrototypeOf(P)}return H=>new H})}function gs(f){return O(f)?()=>{const g=gs(L(f));return g&&g()}:ui(f)}function Uo(f){const g=f[1],y=g.type;return 2===y?g.declTNode:1===y?f[6]:null}function ho(f){return function il(f,g){if("class"===g)return f.classes;if("style"===g)return f.styles;const y=f.attrs;if(y){const x=y.length;let P=0;for(;P{const x=function fo(f){return function(...y){if(f){const x=f(...y);for(const P in x)this[P]=x[P]}}}(g);function P(...H){if(this instanceof P)return x.apply(this,H),this;const j=new P(...H);return me.annotation=j,me;function me(Oe,it,ft){const xt=Oe.hasOwnProperty(Xi)?Oe[Xi]:Object.defineProperty(Oe,Xi,{value:[]})[Xi];for(;xt.length<=ft;)xt.push(null);return(xt[ft]=xt[ft]||[]).push(j),Oe}}return y&&(P.prototype=Object.create(y.prototype)),P.prototype.ngMetadataName=f,P.annotationCls=P,P})}class ai{constructor(g,y){this._desc=g,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof y?this.__NG_ELEMENT_ID__=y:void 0!==y&&(this.\u0275prov=xe({token:this,providedIn:y.providedIn||"root",factory:y.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function fr(f,g){void 0===g&&(g=f);for(let y=0;yArray.isArray(y)?ae(y,g):g(y))}function de(f,g,y){g>=f.length?f.push(y):f.splice(g,0,y)}function G(f,g){return g>=f.length-1?f.pop():f.splice(g,1)[0]}function Me(f,g){const y=[];for(let x=0;x=0?f[1|x]=y:(x=~x,function Rt(f,g,y,x){let P=f.length;if(P==g)f.push(y,x);else if(1===P)f.push(x,f[0]),f[0]=y;else{for(P--,f.push(f[P-1],f[P]);P>g;)f[P]=f[P-2],P--;f[g]=y,f[g+1]=x}}(f,x,g,y)),x}function hn(f,g){const y=Dn(f,g);if(y>=0)return f[1|y]}function Dn(f,g){return function Li(f,g,y){let x=0,P=f.length>>y;for(;P!==x;){const H=x+(P-x>>1),j=f[H<g?P=H:x=H+1}return~(P<f,createScript:f=>f,createScriptURL:f=>f})}catch{}return Ao}())||void 0===g?void 0:g.createHTML(f))||f}function tc(f){var g;return(null===(g=function gl(){if(void 0===Go&&(Go=null,n.trustedTypes))try{Go=n.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:f=>f,createScript:f=>f,createScriptURL:f=>f})}catch{}return Go}())||void 0===g?void 0:g.createHTML(f))||f}class Sa{constructor(g){this.changingThisBreaksApplicationSecurity=g}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class rd extends Sa{getTypeName(){return"HTML"}}class ad extends Sa{getTypeName(){return"Style"}}class od extends Sa{getTypeName(){return"Script"}}class sd extends Sa{getTypeName(){return"URL"}}class ld extends Sa{getTypeName(){return"ResourceURL"}}function ca(f){return f instanceof Sa?f.changingThisBreaksApplicationSecurity:f}function bo(f,g){const y=function cd(f){return f instanceof Sa&&f.getTypeName()||null}(f);if(null!=y&&y!==g){if("ResourceURL"===y&&"URL"===g)return!0;throw new Error(`Required a safe ${g}, got a ${y} (see https://g.co/ng/security#xss)`)}return y===g}function dd(f){return new rd(f)}function ud(f){return new ad(f)}function hd(f){return new od(f)}function pd(f){return new sd(f)}function Ph(f){return new ld(f)}class U{constructor(g){this.inertDocumentHelper=g}getInertBodyElement(g){g=""+g;try{const y=(new window.DOMParser).parseFromString(Co(g),"text/html").body;return null===y?this.inertDocumentHelper.getInertBodyElement(g):(y.removeChild(y.firstChild),y)}catch{return null}}}class I{constructor(g){if(this.defaultDoc=g,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const y=this.inertDocument.createElement("html");this.inertDocument.appendChild(y);const x=this.inertDocument.createElement("body");y.appendChild(x)}}getInertBodyElement(g){const y=this.inertDocument.createElement("template");if("content"in y)return y.innerHTML=Co(g),y;const x=this.inertDocument.createElement("body");return x.innerHTML=Co(g),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(x),x}stripCustomNsAttrs(g){const y=g.attributes;for(let P=y.length-1;0Ht(g.trim())).join(", ")),this.buf.push(" ",j,'="',Eo(Oe),'"')}var f;return this.buf.push(">"),!0}endElement(g){const y=g.nodeName.toLowerCase();oi.hasOwnProperty(y)&&!Tn.hasOwnProperty(y)&&(this.buf.push(""))}chars(g){this.buf.push(Eo(g))}checkClobberedElement(g,y){if(y&&(g.compareDocumentPosition(y)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${g.outerHTML}`);return y}}const vs=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,jr=/([^\#-~ |!])/g;function Eo(f){return f.replace(/&/g,"&").replace(vs,function(g){return"&#"+(1024*(g.charCodeAt(0)-55296)+(g.charCodeAt(1)-56320)+65536)+";"}).replace(jr,function(g){return"&#"+g.charCodeAt(0)+";"}).replace(//g,">")}let Ma;function To(f,g){let y=null;try{Ma=Ma||function oe(f){const g=new I(f);return function Y(){try{return!!(new window.DOMParser).parseFromString(Co(""),"text/html")}catch{return!1}}()?new U(g):g}(f);let x=g?String(g):"";y=Ma.getInertBodyElement(x);let P=5,H=x;do{if(0===P)throw new Error("Failed to sanitize html because the input is unstable");P--,x=H,H=y.innerHTML,y=Ma.getInertBodyElement(x)}while(x!==H);return Co((new Br).sanitizeChildren(xa(y)||y))}finally{if(y){const x=xa(y)||y;for(;x.firstChild;)x.removeChild(x.firstChild)}}}function xa(f){return"content"in f&&function rc(f){return f.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===f.nodeName}(f)?f.content:null}var pn=(()=>((pn=pn||{})[pn.NONE=0]="NONE",pn[pn.HTML=1]="HTML",pn[pn.STYLE=2]="STYLE",pn[pn.SCRIPT=3]="SCRIPT",pn[pn.URL=4]="URL",pn[pn.RESOURCE_URL=5]="RESOURCE_URL",pn))();function Sn(f){const g=Zr();return g?tc(g.sanitize(pn.HTML,f)||""):bo(f,"HTML")?tc(ca(f)):To(function Cs(){return void 0!==fl?fl:typeof document<"u"?document:void 0}(),ie(f))}function Wn(f){const g=Zr();return g?g.sanitize(pn.URL,f)||"":bo(f,"URL")?ca(f):Ht(ie(f))}function Zr(){const f=nn();return f&&f[12]}const Cr=new ai("ENVIRONMENT_INITIALIZER"),Wo=new ai("INJECTOR",-1),Es=new ai("INJECTOR_DEF_TYPES");class Oh{get(g,y=ya){if(y===ya){const x=new Error(`NullInjectorError: No provider for ${v(g)}!`);throw x.name="NullInjectorError",x}return y}}function M_(...f){return{\u0275providers:Hh(0,f)}}function Hh(f,...g){const y=[],x=new Set;let P;return ae(g,H=>{const j=H;fd(j,y,[],x)&&(P||(P=[]),P.push(j))}),void 0!==P&&Lh(P,y),y}function Lh(f,g){for(let y=0;y{g.push(H)})}}function fd(f,g,y,x){if(!(f=L(f)))return!1;let P=null,H=nt(f);const j=!H&&ke(f);if(H||j){if(j&&!j.standalone)return!1;P=f}else{const Oe=f.ngModule;if(H=nt(Oe),!H)return!1;P=Oe}const me=x.has(P);if(j){if(me)return!1;if(x.add(P),j.dependencies){const Oe="function"==typeof j.dependencies?j.dependencies():j.dependencies;for(const it of Oe)fd(it,g,y,x)}}else{if(!H)return!1;{if(null!=H.imports&&!me){let it;x.add(P);try{ae(H.imports,ft=>{fd(ft,g,y,x)&&(it||(it=[]),it.push(ft))})}finally{}void 0!==it&&Lh(it,g)}if(!me){const it=ui(P)||(()=>new P);g.push({provide:P,useFactory:it,deps:d},{provide:Es,useValue:P,multi:!0},{provide:Cr,useValue:()=>Bi(P),multi:!0})}const Oe=H.providers;null==Oe||me||ae(Oe,ft=>{g.push(ft)})}}return P!==f&&void 0!==f.providers}const x_=b({provide:String,useValue:b});function md(f){return null!==f&&"object"==typeof f&&x_ in f}function zo(f){return"function"==typeof f}const gd=new ai("Set Injector scope."),oc={},R_={};let _d;function sc(){return void 0===_d&&(_d=new Oh),_d}class Yo{}class Nh extends Yo{constructor(g,y,x,P){super(),this.parent=y,this.source=x,this.scopes=P,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Cd(g,j=>this.processProvider(j)),this.records.set(Wo,Ts(void 0,this)),P.has("environment")&&this.records.set(Yo,Ts(void 0,this));const H=this.records.get(gd);null!=H&&"string"==typeof H.value&&this.scopes.add(H.value),this.injectorDefTypes=new Set(this.get(Es.multi,d,Ne.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const g of this._ngOnDestroyHooks)g.ngOnDestroy();for(const g of this._onDestroyHooks)g()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(g){this._onDestroyHooks.push(g)}runInContext(g){this.assertNotDestroyed();const y=gr(this),x=r(void 0);try{return g()}finally{gr(y),r(x)}}get(g,y=ya,x=Ne.Default){this.assertNotDestroyed();const P=gr(this),H=r(void 0);try{if(!(x&Ne.SkipSelf)){let me=this.records.get(g);if(void 0===me){const Oe=function L_(f){return"function"==typeof f||"object"==typeof f&&f instanceof ai}(g)&&ut(g);me=Oe&&this.injectableDefInScope(Oe)?Ts(Ad(g),oc):null,this.records.set(g,me)}if(null!=me)return this.hydrate(g,me)}return(x&Ne.Self?sc():this.parent).get(g,y=x&Ne.Optional&&y===ya?null:y)}catch(j){if("NullInjectorError"===j.name){if((j[mo]=j[mo]||[]).unshift(v(g)),P)throw j;return function Qc(f,g,y,x){const P=f[mo];throw g[Wl]&&P.unshift(g[Wl]),f.message=function Kc(f,g,y,x=null){f=f&&"\n"===f.charAt(0)&&"\u0275"==f.charAt(1)?f.slice(2):f;let P=v(g);if(Array.isArray(g))P=g.map(v).join(" -> ");else if("object"==typeof g){let H=[];for(let j in g)if(g.hasOwnProperty(j)){let me=g[j];H.push(j+":"+("string"==typeof me?JSON.stringify(me):v(me)))}P=`{${H.join(", ")}}`}return`${y}${x?"("+x+")":""}[${P}]: ${f.replace(zc,"\n ")}`}("\n"+f.message,P,y,x),f.ngTokenPath=P,f[mo]=null,f}(j,g,"R3InjectorError",this.source)}throw j}finally{r(H),gr(P)}}resolveInjectorInitializers(){const g=gr(this),y=r(void 0);try{const x=this.get(Cr.multi,d,Ne.Self);for(const P of x)P()}finally{gr(g),r(y)}}toString(){const g=[],y=this.records;for(const x of y.keys())g.push(v(x));return`R3Injector[${g.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new te(205,!1)}processProvider(g){let y=zo(g=L(g))?g:L(g&&g.provide);const x=function I_(f){return md(f)?Ts(void 0,f.useValue):Ts(kh(f),oc)}(g);if(zo(g)||!0!==g.multi)this.records.get(y);else{let P=this.records.get(y);P||(P=Ts(void 0,oc,!0),P.factory=()=>ql(P.multi),this.records.set(y,P)),y=g,P.multi.push(g)}this.records.set(y,x)}hydrate(g,y){return y.value===oc&&(y.value=R_,y.value=y.factory()),"object"==typeof y.value&&y.value&&function H_(f){return null!==f&&"object"==typeof f&&"function"==typeof f.ngOnDestroy}(y.value)&&this._ngOnDestroyHooks.add(y.value),y.value}injectableDefInScope(g){if(!g.providedIn)return!1;const y=L(g.providedIn);return"string"==typeof y?"any"===y||this.scopes.has(y):this.injectorDefTypes.has(y)}}function Ad(f){const g=ut(f),y=null!==g?g.factory:ui(f);if(null!==y)return y;if(f instanceof ai)throw new te(204,!1);if(f instanceof Function)return function P_(f){const g=f.length;if(g>0)throw Me(g,"?"),new te(204,!1);const y=function vt(f){const g=f&&(f[Ae]||f[_e]);if(g){const y=function X(f){if(f.hasOwnProperty("name"))return f.name;const g=(""+f).match(/^function\s*([^\s(]+)/);return null===g?"":g[1]}(f);return console.warn(`DEPRECATED: DI is instantiating a token "${y}" 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 "${y}" class.`),g}return null}(f);return null!==y?()=>y.factory(f):()=>new f}(f);throw new te(204,!1)}function kh(f,g,y){let x;if(zo(f)){const P=L(f);return ui(P)||Ad(P)}if(md(f))x=()=>L(f.useValue);else if(function Uh(f){return!(!f||!f.useFactory)}(f))x=()=>f.useFactory(...ql(f.deps||[]));else if(function Bh(f){return!(!f||!f.useExisting)}(f))x=()=>Bi(L(f.useExisting));else{const P=L(f&&(f.useClass||f.provide));if(!function O_(f){return!!f.deps}(f))return ui(P)||Ad(P);x=()=>new P(...ql(f.deps))}return x}function Ts(f,g,y=!1){return{factory:f,value:g,multi:y?[]:void 0}}function B_(f){return!!f.\u0275providers}function Cd(f,g){for(const y of f)Array.isArray(y)?Cd(y,g):B_(y)?Cd(y.\u0275providers,g):g(y)}class Vh{}class k_{resolveComponentFactory(g){throw function N_(f){const g=Error(`No component factory found for ${v(f)}. Did you add it to @NgModule.entryComponents?`);return g.ngComponent=f,g}(g)}}let _l=(()=>{class f{}return f.NULL=new k_,f})();function V_(){return ys(ci(),nn())}function ys(f,g){return new Al(Si(f,g))}let Al=(()=>{class f{constructor(y){this.nativeElement=y}}return f.__NG_ELEMENT_ID__=V_,f})();function F_(f){return f instanceof Al?f.nativeElement:f}class jh{}let j_=(()=>{class f{}return f.__NG_ELEMENT_ID__=()=>function Z_(){const f=nn(),y=gi(ci().index,f);return(qn(y)?y:f)[11]}(),f})(),G_=(()=>{class f{}return f.\u0275prov=xe({token:f,providedIn:"root",factory:()=>null}),f})();class Zh{constructor(g){this.full=g,this.major=g.split(".")[0],this.minor=g.split(".")[1],this.patch=g.split(".").slice(2).join(".")}}const W_=new Zh("14.1.2"),bd={};function wd(f){return f.ngOriginalError}class Cl{constructor(){this._console=console}handleError(g){const y=this._findOriginalError(g);this._console.error("ERROR",g),y&&this._console.error("ORIGINAL ERROR",y)}_findOriginalError(g){let y=g&&wd(g);for(;y&&wd(y);)y=wd(y);return y||null}}const Sd=new Map;let iA=0;const xd="__ngContext__";function br(f,g){qn(g)?(f[xd]=g[20],function aA(f){Sd.set(f[20],f)}(g)):f[xd]=g}function bl(f){const g=f[xd];return"number"==typeof g?function Jh(f){return Sd.get(f)||null}(g):g||null}function Dd(f){const g=bl(f);return g?qn(g)?g:g.lView:null}const fA=(()=>(typeof requestAnimationFrame<"u"&&requestAnimationFrame||setTimeout).bind(n))();function ep(f){return f.ownerDocument.defaultView}function tp(f){return f.ownerDocument}function Ja(f){return f instanceof Function?f():f}var Ra=(()=>((Ra=Ra||{})[Ra.Important=1]="Important",Ra[Ra.DashCase=2]="DashCase",Ra))();function Pd(f,g){return undefined(f,g)}function vl(f){const g=f[3];return si(g)?g[3]:g}function Id(f){return ap(f[13])}function Od(f){return ap(f[4])}function ap(f){for(;null!==f&&!si(f);)f=f[4];return f}function Ss(f,g,y,x,P){if(null!=x){let H,j=!1;si(x)?H=x:qn(x)&&(j=!0,x=x[0]);const me=ei(x);0===f&&null!==y?null==P?up(g,y,me):qo(g,y,me,P||null,!0):1===f&&null!==y?qo(g,y,me,P||null,!0):2===f?function Ap(f,g,y){const x=lc(f,g);x&&function RA(f,g,y,x){f.removeChild(g,y,x)}(f,x,g,y)}(g,me,j):3===f&&g.destroyNode(me),null!=H&&function OA(f,g,y,x,P){const H=y[7];H!==ei(y)&&Ss(g,f,x,H,P);for(let me=10;me0&&(f[y-1][4]=x[4]);const H=G(f,10+g);!function EA(f,g){El(f,g,g[11],2,null,null),g[0]=null,g[6]=null}(x[1],x);const j=H[19];null!==j&&j.detachView(H[1]),x[3]=null,x[4]=null,x[2]&=-65}return x}function lp(f,g){if(!(128&g[2])){const y=g[11];y.destroyNode&&El(f,g,y,3,null,null),function wA(f){let g=f[13];if(!g)return Ud(f[1],f);for(;g;){let y=null;if(qn(g))y=g[13];else{const x=g[10];x&&(y=x)}if(!y){for(;g&&!g[4]&&g!==f;)qn(g)&&Ud(g[1],g),g=g[3];null===g&&(g=f),qn(g)&&Ud(g[1],g),y=g&&g[4]}g=y}}(g)}}function Ud(f,g){if(!(128&g[2])){g[2]&=-65,g[2]|=128,function DA(f,g){let y;if(null!=f&&null!=(y=f.destroyHooks))for(let x=0;x=0?x[P=it]():x[P=-it].unsubscribe(),H+=2}else{const j=x[P=y[H+1]];y[H].call(j)}if(null!==x){for(let H=P+1;HH?"":P[xt+1].toLowerCase();const Yt=8&x?Nt:null;if(Yt&&-1!==vp(Yt,it,0)||2&x&&it!==Nt){if(ua(x))return!1;j=!0}}}}else{if(!j&&!ua(x)&&!ua(Oe))return!1;if(j&&ua(Oe))continue;j=!1,x=Oe|1&x}}return ua(x)||j}function ua(f){return 0==(1&f)}function NA(f,g,y,x){if(null===g)return-1;let P=0;if(x||!y){let H=!1;for(;P-1)for(y++;y0?'="'+me+'"':"")+"]"}else 8&x?P+="."+j:4&x&&(P+=" "+j);else""!==P&&!ua(j)&&(g+=wp(H,P),P=""),x=j,H=H||!ua(x);y++}return""!==P&&(g+=wp(H,P)),g}const Vn={};function Sp(f){Mp(Un(),nn(),Hi()+f,!1)}function Mp(f,g,y,x){if(!x)if(3==(3&g[2])){const H=f.preOrderCheckHooks;null!==H&&ia(g,H,y)}else{const H=f.preOrderHooks;null!==H&&no(g,H,0,y)}wr(y)}function Pp(f,g=null,y=null,x){const P=Ip(f,g,y,x);return P.resolveInjectorInitializers(),P}function Ip(f,g=null,y=null,x,P=new Set){const H=[y||d,M_(f)];return x=x||("object"==typeof f?void 0:v(f)),new Nh(H,g||sc(),x||null,P)}let Jo=(()=>{class f{static create(y,x){if(Array.isArray(y))return Pp({name:""},x,y,"");{var P;const H=null!==(P=y.name)&&void 0!==P?P:"";return Pp({name:H},y.parent,y.providers,H)}}}return f.THROW_IF_NOT_FOUND=ya,f.NULL=new Oh,f.\u0275prov=xe({token:f,providedIn:"any",factory:()=>Bi(Wo)}),f.__NG_ELEMENT_ID__=-1,f})();function xs(f,g=Ne.Default){const y=nn();return null===y?Bi(f,g):Ho(ci(),y,L(f),g)}function kp(){throw new Error("invalid")}function hc(f,g){return f<<17|g<<2}function ha(f){return f>>17&32767}function zd(f){return 2|f}function Qa(f){return(131068&f)>>2}function Yd(f,g){return-131069&f|g<<2}function qd(f){return 1|f}function Qp(f,g){const y=f.contentQueries;if(null!==y)for(let x=0;x22&&Mp(f,g,22,!1),y(x,P)}finally{wr(H)}}function $p(f,g,y){if(Yi(g)){const P=g.directiveEnd;for(let H=g.directiveStart;H0;){const y=f[--g];if("number"==typeof y&&y<0)return y}return 0})(me)!=Oe&&me.push(Oe),me.push(x,P,j)}}function sf(f,g){null!==f.hostBindings&&f.hostBindings(1,g)}function lf(f,g){g.flags|=2,(f.components||(f.components=[])).push(g.index)}function LC(f,g,y){if(y){if(g.exportAs)for(let x=0;x0&&cu(y)}}function cu(f){for(let x=Id(f);null!==x;x=Od(x))for(let P=10;P0&&cu(H)}const y=f[1].components;if(null!==y)for(let x=0;x0&&cu(P)}}function jC(f,g){const y=gi(g,f),x=y[1];(function ZC(f,g){for(let y=g.length;yPromise.resolve(null))();function ff(f){return f[7]||(f[7]=[])}function mf(f){return f.cleanup||(f.cleanup=[])}function gf(f,g,y){return(null===f||li(f))&&(y=function Ba(f){for(;Array.isArray(f);){if("object"==typeof f[1])return f;f=f[0]}return null}(y[g.index])),y[11]}function _f(f,g){const y=f[9],x=y?y.get(Cl,null):null;x&&x.handleError(g)}function pu(f,g,y,x,P){for(let H=0;H-1&&(Bd(g,x),G(y,x))}this._attachedToViewContainer=!1}lp(this._lView[1],this._lView)}onDestroy(g){ef(this._lView[1],this._lView,null,g)}markForCheck(){du(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){!function uu(f,g,y){const x=g[10];x.begin&&x.begin();try{Tl(f,g,f.template,y)}catch(P){throw _f(g,P),P}finally{x.end&&x.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new te(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function yA(f,g){El(f,g,g[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(g){if(this._attachedToViewContainer)throw new te(902,!1);this._appRef=g}}class zC extends yl{constructor(g){super(g),this._view=g}detectChanges(){pf(this._view)}checkNoChanges(){}get context(){return null}}class fu extends _l{constructor(g){super(),this.ngModule=g}resolveComponentFactory(g){const y=ke(g);return new wl(y,this.ngModule)}}function Af(f){const g=[];for(let y in f)f.hasOwnProperty(y)&&g.push({propName:f[y],templateName:y});return g}class qC{constructor(g,y){this.injector=g,this.parentInjector=y}get(g,y,x){const P=this.injector.get(g,bd,x);return P!==bd||y===bd?P:this.parentInjector.get(g,y,x)}}class wl extends Vh{constructor(g,y){super(),this.componentDef=g,this.ngModule=y,this.componentType=g.type,this.selector=function GA(f){return f.map(ZA).join(",")}(g.selectors),this.ngContentSelectors=g.ngContentSelectors?g.ngContentSelectors:[],this.isBoundToModule=!!y}get inputs(){return Af(this.componentDef.inputs)}get outputs(){return Af(this.componentDef.outputs)}create(g,y,x,P){var H;let j=(P=P||this.ngModule)instanceof Yo?P:null===(H=P)||void 0===H?void 0:H.injector;j&&null!==this.componentDef.getStandaloneInjector&&(j=this.componentDef.getStandaloneInjector(j)||j);const me=j?new qC(g,j):g,Oe=me.get(jh,null);if(null===Oe)throw new te(407,!1);const it=me.get(G_,null),ft=Oe.createRenderer(null,this.componentDef),xt=this.componentDef.selectors[0][0]||"div",Nt=x?function wC(f,g,y){return f.selectRootElement(g,y===t.ShadowDom)}(ft,x,this.componentDef.encapsulation):Ld(Oe.createRenderer(null,this.componentDef),xt,function YC(f){const g=f.toLowerCase();return"svg"===g?"svg":"math"===g?"math":null}(xt)),Yt=this.componentDef.onPush?288:272,tn=function XC(f,g){return{components:[],scheduler:f||fA,clean:WC,playerHandler:g||null,flags:0}}(),cn=ou(0,null,null,1,0,null,null,null,null,null),mn=mc(null,cn,tn,Yt,null,null,Oe,ft,it,me,null);let wn,Mn;Yr(mn);try{const sn=function KC(f,g,y,x,P,H){const j=y[1];y[22]=f;const Oe=Ds(j,22,2,"#host",null),it=Oe.mergedAttrs=g.hostAttrs;null!==it&&(Ac(Oe,it,!0),null!==f&&(_a(P,f,it),null!==Oe.classes&&Fd(P,f,Oe.classes),null!==Oe.styles&&bp(P,f,Oe.styles)));const ft=x.createRenderer(f,g),xt=mc(y,Xp(g),null,g.onPush?32:16,y[22],Oe,x,ft,H||null,null,null);return j.firstCreatePass&&(aa(Qr(Oe,y),j,g.type),lf(j,Oe),cf(Oe,y.length,1)),_c(y,xt),y[22]=xt}(Nt,this.componentDef,mn,Oe,ft);if(Nt)if(x)_a(ft,Nt,["ng-version",W_.full]);else{const{attrs:Pn,classes:Fn}=function WA(f){const g=[],y=[];let x=1,P=2;for(;x0&&Fd(ft,Nt,Fn.join(" "))}if(Mn=zr(cn,22),void 0!==y){const Pn=Mn.projection=[];for(let Fn=0;Fn=0;x--){const P=f[x];P.hostVars=g+=P.hostVars,P.hostAttrs=oo(P.hostAttrs,y=oo(y,P.hostAttrs))}}(x)}function gu(f){return f===l?{}:f===d?[]:f}function nb(f,g){const y=f.viewQuery;f.viewQuery=y?(x,P)=>{g(x,P),y(x,P)}:g}function ib(f,g){const y=f.contentQueries;f.contentQueries=y?(x,P,H)=>{g(x,P,H),y(x,P,H)}:g}function rb(f,g){const y=f.hostBindings;f.hostBindings=y?(x,P)=>{g(x,P),y(x,P)}:g}let bc=null;function Qo(){if(!bc){const f=n.Symbol;if(f&&f.iterator)bc=f.iterator;else{const g=Object.getOwnPropertyNames(Map.prototype);for(let y=0;yme(ei(Fn[x.index])):x.index;let Pn=null;if(!me&&Oe&&(Pn=function _b(f,g,y,x){const P=f.cleanup;if(null!=P)for(let H=0;HOe?me[Oe]:null}"string"==typeof j&&(H+=2)}return null}(f,g,P,x.index)),null!==Pn)(Pn.__ngLastListenerFn__||Pn).__ngNextListenerFn__=H,Pn.__ngLastListenerFn__=H,Yt=!1;else{H=Lf(x,g,xt,H,!1);const Fn=y.listen(wn,P,H);Nt.push(H,Fn),ft&&ft.push(P,sn,Mn,Mn+1)}}else H=Lf(x,g,xt,H,!1);const tn=x.outputs;let cn;if(Yt&&null!==tn&&(cn=tn[P])){const mn=cn.length;if(mn)for(let wn=0;wn0;)g=g[15],f--;return g}(f,zt.lFrame.contextLView))[8]}(f)}function Ab(f,g){let y=null;const x=function kA(f){const g=f.attrs;if(null!=g){const y=g.indexOf(5);if(0==(1&y))return g[y+1]}return null}(f);for(let P=0;P=0}const Wi={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Yf(f){return f.substring(Wi.key,Wi.keyEnd)}function qf(f,g){const y=Wi.textEnd;return y===g?-1:(g=Wi.keyEnd=function wb(f,g,y){for(;g32;)g++;return g}(f,Wi.key=g,y),Vs(f,g,y))}function Vs(f,g,y){for(;g=0;y=qf(g,y))En(f,Yf(g),!0)}function pa(f,g,y,x){const P=nn(),H=Un(),j=yr(2);H.firstUpdatePass&&tm(H,f,j,x),g!==Vn&&vr(P,j,g)&&im(H,H.data[Hi()],P,P[11],f,P[j+1]=function Lb(f,g){return null==f||("string"==typeof g?f+=g:"object"==typeof f&&(f=v(ca(f)))),f}(g,y),x,j)}function fa(f,g,y,x){const P=Un(),H=yr(2);P.firstUpdatePass&&tm(P,null,H,x);const j=nn();if(y!==Vn&&vr(j,H,y)){const me=P.data[Hi()];if(am(me,x)&&!em(P,H)){let Oe=x?me.classesWithoutHost:me.stylesWithoutHost;null!==Oe&&(y=R(Oe,y||"")),vu(P,me,j,y,x)}else!function Hb(f,g,y,x,P,H,j,me){P===Vn&&(P=d);let Oe=0,it=0,ft=0=f.expandoStartIndex}function tm(f,g,y,x){const P=f.data;if(null===P[y+1]){const H=P[Hi()],j=em(f,y);am(H,x)&&null===g&&!j&&(g=!1),g=function Db(f,g,y,x){const P=Xa(f);let H=x?g.residualClasses:g.residualStyles;if(null===P)0===(x?g.classBindings:g.styleBindings)&&(y=xl(y=Pu(null,f,g,y,x),g.attrs,x),H=null);else{const j=g.directiveStylingLast;if(-1===j||f[j]!==P)if(y=Pu(P,f,g,y,x),null===H){let Oe=function Rb(f,g,y){const x=y?g.classBindings:g.styleBindings;if(0!==Qa(x))return f[ha(x)]}(f,g,x);void 0!==Oe&&Array.isArray(Oe)&&(Oe=Pu(null,f,g,Oe[1],x),Oe=xl(Oe,g.attrs,x),function Pb(f,g,y,x){f[ha(y?g.classBindings:g.styleBindings)]=x}(f,g,x,Oe))}else H=function Ib(f,g,y){let x;const P=g.directiveEnd;for(let H=1+g.directiveStylingLast;H0)&&(it=!0)}else ft=y;if(P)if(0!==Oe){const Nt=ha(f[me+1]);f[x+1]=hc(Nt,me),0!==Nt&&(f[Nt+1]=Yd(f[Nt+1],x)),f[me+1]=function dC(f,g){return 131071&f|g<<17}(f[me+1],x)}else f[x+1]=hc(me,0),0!==me&&(f[me+1]=Yd(f[me+1],x)),me=x;else f[x+1]=hc(Oe,0),0===me?me=x:f[Oe+1]=Yd(f[Oe+1],x),Oe=x;it&&(f[x+1]=zd(f[x+1])),zf(f,ft,x,!0),zf(f,ft,x,!1),function bb(f,g,y,x,P){const H=P?f.residualClasses:f.residualStyles;null!=H&&"string"==typeof g&&Dn(H,g)>=0&&(y[x+1]=qd(y[x+1]))}(g,ft,f,x,H),j=hc(me,Oe),H?g.classBindings=j:g.styleBindings=j}(P,H,g,y,j,x)}}function Pu(f,g,y,x,P){let H=null;const j=y.directiveEnd;let me=y.directiveStylingLast;for(-1===me?me=y.directiveStart:me++;me0;){const Oe=f[P],it=Array.isArray(Oe),ft=it?Oe[1]:Oe,xt=null===ft;let Nt=y[P+1];Nt===Vn&&(Nt=xt?d:void 0);let Yt=xt?hn(Nt,x):ft===x?Nt:void 0;if(it&&!Mc(Yt)&&(Yt=hn(Oe,x)),Mc(Yt)&&(me=Yt,j))return me;const tn=f[P+1];P=j?ha(tn):Qa(tn)}if(null!==g){let Oe=H?g.residualClasses:g.residualStyles;null!=Oe&&(me=hn(Oe,x))}return me}function Mc(f){return void 0!==f}function am(f,g){return 0!=(f.flags&(g?16:32))}function om(f,g=""){const y=nn(),x=Un(),P=f+22,H=x.firstCreatePass?Ds(x,P,1,g,null):x.data[P],j=y[P]=function Hd(f,g){return f.createText(g)}(y[11],g);cc(x,y,j,H),Qe(H,!1)}function Iu(f){return xc("",f,""),Iu}function xc(f,g,y){const x=nn(),P=Is(x,f,g,y);return P!==Vn&&Ka(x,Hi(),P),xc}function Ou(f,g,y,x,P){const H=nn(),j=Os(H,f,g,y,x,P);return j!==Vn&&Ka(H,Hi(),j),Ou}function Hu(f,g,y,x,P,H,j){const me=nn(),Oe=function Hs(f,g,y,x,P,H,j,me){const it=vc(f,$i(),y,P,j);return yr(3),it?g+ie(y)+x+ie(P)+H+ie(j)+me:Vn}(me,f,g,y,x,P,H,j);return Oe!==Vn&&Ka(me,Hi(),Oe),Hu}function Lu(f,g,y,x,P,H,j,me,Oe){const it=nn(),ft=function Ls(f,g,y,x,P,H,j,me,Oe,it){const xt=ea(f,$i(),y,P,j,Oe);return yr(4),xt?g+ie(y)+x+ie(P)+H+ie(j)+me+ie(Oe)+it:Vn}(it,f,g,y,x,P,H,j,me,Oe);return ft!==Vn&&Ka(it,Hi(),ft),Lu}function Bu(f,g,y,x,P,H,j,me,Oe,it,ft){const xt=nn(),Nt=function Bs(f,g,y,x,P,H,j,me,Oe,it,ft,xt){const Nt=$i();let Yt=ea(f,Nt,y,P,j,Oe);return Yt=vr(f,Nt+4,ft)||Yt,yr(5),Yt?g+ie(y)+x+ie(P)+H+ie(j)+me+ie(Oe)+it+ie(ft)+xt:Vn}(xt,f,g,y,x,P,H,j,me,Oe,it,ft);return Nt!==Vn&&Ka(xt,Hi(),Nt),Bu}function um(f,g,y){fa(En,Ha,Is(nn(),f,g,y),!0)}function Uu(f,g,y){const x=nn();return vr(x,ur(),g)&&Gr(Un(),_i(),x,f,g,x[11],y,!0),Uu}function Nu(f,g,y){const x=nn();if(vr(x,ur(),g)){const H=Un(),j=_i();Gr(H,j,x,f,g,gf(Xa(H.data),j,x),y,!0)}return Nu}const $o=void 0;var ev=["en",[["a","p"],["AM","PM"],$o],[["AM","PM"],$o,$o],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],$o,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],$o,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",$o,"{1} 'at' {0}",$o],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Xb(f){const y=Math.floor(Math.abs(f)),x=f.toString().replace(/^[^.]*\.?/,"").length;return 1===y&&0===x?1:5}];let Fs={};function ku(f){const g=function tv(f){return f.toLowerCase().replace(/_/g,"-")}(f);let y=Em(g);if(y)return y;const x=g.split("-")[0];if(y=Em(x),y)return y;if("en"===x)return ev;throw new te(701,!1)}function vm(f){return ku(f)[Rn.PluralCase]}function Em(f){return f in Fs||(Fs[f]=n.ng&&n.ng.common&&n.ng.common.locales&&n.ng.common.locales[f]),Fs[f]}var Rn=(()=>((Rn=Rn||{})[Rn.LocaleId=0]="LocaleId",Rn[Rn.DayPeriodsFormat=1]="DayPeriodsFormat",Rn[Rn.DayPeriodsStandalone=2]="DayPeriodsStandalone",Rn[Rn.DaysFormat=3]="DaysFormat",Rn[Rn.DaysStandalone=4]="DaysStandalone",Rn[Rn.MonthsFormat=5]="MonthsFormat",Rn[Rn.MonthsStandalone=6]="MonthsStandalone",Rn[Rn.Eras=7]="Eras",Rn[Rn.FirstDayOfWeek=8]="FirstDayOfWeek",Rn[Rn.WeekendRange=9]="WeekendRange",Rn[Rn.DateFormat=10]="DateFormat",Rn[Rn.TimeFormat=11]="TimeFormat",Rn[Rn.DateTimeFormat=12]="DateTimeFormat",Rn[Rn.NumberSymbols=13]="NumberSymbols",Rn[Rn.NumberFormats=14]="NumberFormats",Rn[Rn.CurrencyCode=15]="CurrencyCode",Rn[Rn.CurrencySymbol=16]="CurrencySymbol",Rn[Rn.CurrencyName=17]="CurrencyName",Rn[Rn.Currencies=18]="Currencies",Rn[Rn.Directionality=19]="Directionality",Rn[Rn.PluralCase=20]="PluralCase",Rn[Rn.ExtraData=21]="ExtraData",Rn))();const js="en-US";let Tm=js;function ju(f,g,y,x,P){if(f=L(f),Array.isArray(f))for(let H=0;H>20;if(zo(f)||!f.multi){const Yt=new Fa(Oe,P,xs),tn=Gu(me,g,P?ft:ft+Nt,xt);-1===tn?(aa(Qr(it,j),H,me),Zu(H,f,g.length),g.push(me),it.directiveStart++,it.directiveEnd++,P&&(it.providerIndexes+=1048576),y.push(Yt),j.push(Yt)):(y[tn]=Yt,j[tn]=Yt)}else{const Yt=Gu(me,g,ft+Nt,xt),tn=Gu(me,g,ft,ft+Nt),cn=Yt>=0&&y[Yt],mn=tn>=0&&y[tn];if(P&&!mn||!P&&!cn){aa(Qr(it,j),H,me);const wn=function $v(f,g,y,x,P){const H=new Fa(f,y,xs);return H.multi=[],H.index=g,H.componentProviders=0,qm(H,P,x&&!y),H}(P?Kv:Qv,y.length,P,x,Oe);!P&&mn&&(y[tn].providerFactory=wn),Zu(H,f,g.length,0),g.push(me),it.directiveStart++,it.directiveEnd++,P&&(it.providerIndexes+=1048576),y.push(wn),j.push(wn)}else Zu(H,f,Yt>-1?Yt:tn,qm(y[P?tn:Yt],Oe,!P&&x));!P&&x&&mn&&y[tn].componentProviders++}}}function Zu(f,g,y,x){const P=zo(g),H=function D_(f){return!!f.useClass}(g);if(P||H){const Oe=(H?L(g.useClass):g).prototype.ngOnDestroy;if(Oe){const it=f.destroyHooks||(f.destroyHooks=[]);if(!P&&g.multi){const ft=it.indexOf(y);-1===ft?it.push(y,[x,Oe]):it[ft+1].push(x,Oe)}else it.push(y,Oe)}}}function qm(f,g,y){return y&&f.componentProviders++,f.multi.push(g)-1}function Gu(f,g,y,x){for(let P=y;P{y.providersResolver=(x,P)=>function Jv(f,g,y){const x=Un();if(x.firstCreatePass){const P=li(f);ju(y,x.data,x.blueprint,P,!0),ju(g,x.data,x.blueprint,P,!1)}}(x,P?P(f):f,g)}}class Gs{}class Qm{}function Xv(f,g){return new Km(f,g??null)}class Km extends Gs{constructor(g,y){super(),this._parent=y,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new fu(this);const x=jt(g);this._bootstrapComponents=Ja(x.bootstrap),this._r3Injector=Ip(g,y,[{provide:Gs,useValue:this},{provide:_l,useValue:this.componentFactoryResolver}],v(g),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(g)}get injector(){return this._r3Injector}destroy(){const g=this._r3Injector;!g.destroyed&&g.destroy(),this.destroyCbs.forEach(y=>y()),this.destroyCbs=null}onDestroy(g){this.destroyCbs.push(g)}}class zu extends Qm{constructor(g){super(),this.moduleType=g}create(g){return new Km(this.moduleType,g)}}class eE extends Gs{constructor(g,y,x){super(),this.componentFactoryResolver=new fu(this),this.instance=null;const P=new Nh([...g,{provide:Gs,useValue:this},{provide:_l,useValue:this.componentFactoryResolver}],y||sc(),x,new Set(["environment"]));this.injector=P,P.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(g){this.injector.onDestroy(g)}}function Yu(f,g,y=null){return new eE(f,g,y).injector}function rg(f,g,y){const x=ii()+f,P=nn();return P[x]===Vn?Ia(P,x,y?g.call(y):g()):function Ml(f,g){return f[g]}(P,x)}function ag(f,g,y,x){return lg(nn(),ii(),f,g,y,x)}function og(f,g,y,x,P){return cg(nn(),ii(),f,g,y,x,P)}function sg(f,g,y,x,P,H){return dg(nn(),ii(),f,g,y,x,P,H)}function Ol(f,g){const y=f[g];return y===Vn?void 0:y}function lg(f,g,y,x,P,H){const j=g+y;return vr(f,j,P)?Ia(f,j+1,H?x.call(H,P):x(P)):Ol(f,j+1)}function cg(f,g,y,x,P,H,j){const me=g+y;return Ko(f,me,P,H)?Ia(f,me+2,j?x.call(j,P,H):x(P,H)):Ol(f,me+2)}function dg(f,g,y,x,P,H,j,me){const Oe=g+y;return vc(f,Oe,P,H,j)?Ia(f,Oe+3,me?x.call(me,P,H,j):x(P,H,j)):Ol(f,Oe+3)}function pg(f,g){const y=Un();let x;const P=f+22;y.firstCreatePass?(x=function _E(f,g){if(g)for(let y=g.length-1;y>=0;y--){const x=g[y];if(f===x.name)return x}}(g,y.pipeRegistry),y.data[P]=x,x.onDestroy&&(y.destroyHooks||(y.destroyHooks=[])).push(P,x.onDestroy)):x=y.data[P];const H=x.factory||(x.factory=ui(x.type)),j=r(xs);try{const me=Ca(!1),Oe=H();return Ca(me),function fb(f,g,y,x){y>=f.data.length&&(f.data[y]=null,f.blueprint[y]=null),g[y]=x}(y,nn(),P,Oe),Oe}finally{r(j)}}function fg(f,g,y){const x=f+22,P=nn(),H=dr(P,x);return Hl(P,x)?lg(P,ii(),g,H.transform,y,H):H.transform(y)}function mg(f,g,y,x){const P=f+22,H=nn(),j=dr(H,P);return Hl(H,P)?cg(H,ii(),g,j.transform,y,x,j):j.transform(y,x)}function gg(f,g,y,x,P){const H=f+22,j=nn(),me=dr(j,H);return Hl(j,H)?dg(j,ii(),g,me.transform,y,x,P,me):me.transform(y,x,P)}function _g(f,g,y,x,P,H){const j=f+22,me=nn(),Oe=dr(me,j);return Hl(me,j)?function ug(f,g,y,x,P,H,j,me,Oe){const it=g+y;return ea(f,it,P,H,j,me)?Ia(f,it+4,Oe?x.call(Oe,P,H,j,me):x(P,H,j,me)):Ol(f,it+4)}(me,ii(),g,Oe.transform,y,x,P,H,Oe):Oe.transform(y,x,P,H)}function Hl(f,g){return f[1].data[g].pure}function Ju(f){return g=>{setTimeout(f,void 0,g)}}const La=class CE extends e.x{constructor(g=!1){super(),this.__isAsync=g}emit(g){super.next(g)}subscribe(g,y,x){let P=g,H=y||(()=>null),j=x;if(g&&"object"==typeof g){var me,Oe,it;const xt=g;P=null===(me=xt.next)||void 0===me?void 0:me.bind(xt),H=null===(Oe=xt.error)||void 0===Oe?void 0:Oe.bind(xt),j=null===(it=xt.complete)||void 0===it?void 0:it.bind(xt)}this.__isAsync&&(H=Ju(H),P&&(P=Ju(P)),j&&(j=Ju(j)));const ft=super.subscribe({next:P,error:H,complete:j});return g instanceof A.w0&&g.add(ft),ft}};function bE(){return this._results[Qo()]()}class Oc{constructor(g=!1){this._emitDistinctChangesOnly=g,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const y=Qo(),x=Oc.prototype;x[y]||(x[y]=bE)}get changes(){return this._changes||(this._changes=new La)}get(g){return this._results[g]}map(g){return this._results.map(g)}filter(g){return this._results.filter(g)}find(g){return this._results.find(g)}reduce(g,y){return this._results.reduce(g,y)}forEach(g){this._results.forEach(g)}some(g){return this._results.some(g)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(g,y){const x=this;x.dirty=!1;const P=fr(g);(this._changesDetected=!function ll(f,g,y){if(f.length!==g.length)return!1;for(let x=0;x{class f{}return f.__NG_ELEMENT_ID__=TE,f})();const vE=Ll,EE=class extends vE{constructor(g,y,x){super(),this._declarationLView=g,this._declarationTContainer=y,this.elementRef=x}createEmbeddedView(g,y){const x=this._declarationTContainer.tViews,P=mc(this._declarationLView,x,g,16,null,x.declTNode,null,null,null,null,y||null);P[17]=this._declarationLView[this._declarationTContainer.index];const j=this._declarationLView[19];return null!==j&&(P[19]=j.createEmbeddedView(x)),gc(x,P,g),new yl(P)}};function TE(){return Hc(ci(),nn())}function Hc(f,g){return 4&f.type?new EE(g,f,ys(f,g)):null}let Lc=(()=>{class f{}return f.__NG_ELEMENT_ID__=yE,f})();function yE(){return bg(ci(),nn())}const wE=Lc,Ag=class extends wE{constructor(g,y,x){super(),this._lContainer=g,this._hostTNode=y,this._hostLView=x}get element(){return ys(this._hostTNode,this._hostLView)}get injector(){return new Ea(this._hostTNode,this._hostLView)}get parentInjector(){const g=ra(this._hostTNode,this._hostLView);if(so(g)){const y=Sr(g,this._hostLView),x=Aa(g);return new Ea(y[1].data[x+8],y)}return new Ea(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(g){const y=Cg(this._lContainer);return null!==y&&y[g]||null}get length(){return this._lContainer.length-10}createEmbeddedView(g,y,x){let P,H;"number"==typeof x?P=x:null!=x&&(P=x.index,H=x.injector);const j=g.createEmbeddedView(y||{},H);return this.insert(j,P),j}createComponent(g,y,x,P,H){const j=g&&!function qa(f){return"function"==typeof f}(g);let me;if(j)me=y;else{const xt=y||{};me=xt.index,x=xt.injector,P=xt.projectableNodes,H=xt.environmentInjector||xt.ngModuleRef}const Oe=j?g:new wl(ke(g)),it=x||this.parentInjector;if(!H&&null==Oe.ngModule){const Nt=(j?it:this.parentInjector).get(Yo,null);Nt&&(H=Nt)}const ft=Oe.create(it,P,void 0,H);return this.insert(ft.hostView,me),ft}insert(g,y){const x=g._lView,P=x[1];if(function Je(f){return si(f[3])}(x)){const ft=this.indexOf(g);if(-1!==ft)this.detach(ft);else{const xt=x[3],Nt=new Ag(xt,xt[6],xt[3]);Nt.detach(Nt.indexOf(g))}}const H=this._adjustIndex(y),j=this._lContainer;!function SA(f,g,y,x){const P=10+x,H=y.length;x>0&&(y[P-1][4]=g),x0)x.push(j[me/2]);else{const it=H[me+1],ft=g[-Oe];for(let xt=10;xt{class f{constructor(y){this.appInits=y,this.resolve=Uc,this.reject=Uc,this.initialized=!1,this.done=!1,this.donePromise=new Promise((x,P)=>{this.resolve=x,this.reject=P})}runInitializers(){if(this.initialized)return;const y=[],x=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let P=0;P{H.subscribe({complete:me,error:Oe})});y.push(j)}}Promise.all(y).then(()=>{x()}).catch(P=>{this.reject(P)}),0===y.length&&x(),this.initialized=!0}}return f.\u0275fac=function(y){return new(y||f)(Bi(Jg,8))},f.\u0275prov=xe({token:f,factory:f.\u0275fac,providedIn:"root"}),f})();const Qg=new ai("AppId",{providedIn:"root",factory:function Kg(){return`${oh()}${oh()}${oh()}`}});function oh(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const $g=new ai("Platform Initializer"),XE=new ai("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Xg=new ai("appBootstrapListener"),eT=new ai("AnimationModuleType");let tT=(()=>{class f{log(y){console.log(y)}warn(y){console.warn(y)}}return f.\u0275fac=function(y){return new(y||f)},f.\u0275prov=xe({token:f,factory:f.\u0275fac,providedIn:"platform"}),f})();const kc=new ai("LocaleId",{providedIn:"root",factory:()=>Yl(kc,Ne.Optional|Ne.SkipSelf)||function nT(){return typeof $localize<"u"&&$localize.locale||js}()}),iT=new ai("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class rT{constructor(g,y){this.ngModuleFactory=g,this.componentFactories=y}}let aT=(()=>{class f{compileModuleSync(y){return new zu(y)}compileModuleAsync(y){return Promise.resolve(this.compileModuleSync(y))}compileModuleAndAllComponentsSync(y){const x=this.compileModuleSync(y),H=Ja(jt(y).declarations).reduce((j,me)=>{const Oe=ke(me);return Oe&&j.push(new wl(Oe)),j},[]);return new rT(x,H)}compileModuleAndAllComponentsAsync(y){return Promise.resolve(this.compileModuleAndAllComponentsSync(y))}clearCache(){}clearCacheFor(y){}getModuleId(y){}}return f.\u0275fac=function(y){return new(y||f)},f.\u0275prov=xe({token:f,factory:f.\u0275fac,providedIn:"root"}),f})();const lT=(()=>Promise.resolve(0))();function sh(f){typeof Zone>"u"?lT.then(()=>{f&&f.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",f)}class Wr{constructor({enableLongStackTrace:g=!1,shouldCoalesceEventChangeDetection:y=!1,shouldCoalesceRunChangeDetection:x=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new La(!1),this.onMicrotaskEmpty=new La(!1),this.onStable=new La(!1),this.onError=new La(!1),typeof Zone>"u")throw new te(908,!1);Zone.assertZonePatched();const P=this;if(P._nesting=0,P._outer=P._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const H=Zone.AsyncStackTaggingZoneSpec;P._inner=P._inner.fork(new H("Angular"))}Zone.TaskTrackingZoneSpec&&(P._inner=P._inner.fork(new Zone.TaskTrackingZoneSpec)),g&&Zone.longStackTraceZoneSpec&&(P._inner=P._inner.fork(Zone.longStackTraceZoneSpec)),P.shouldCoalesceEventChangeDetection=!x&&y,P.shouldCoalesceRunChangeDetection=x,P.lastRequestAnimationFrameId=-1,P.nativeRequestAnimationFrame=function cT(){let f=n.requestAnimationFrame,g=n.cancelAnimationFrame;if(typeof Zone<"u"&&f&&g){const y=f[Zone.__symbol__("OriginalDelegate")];y&&(f=y);const x=g[Zone.__symbol__("OriginalDelegate")];x&&(g=x)}return{nativeRequestAnimationFrame:f,nativeCancelAnimationFrame:g}}().nativeRequestAnimationFrame,function hT(f){const g=()=>{!function uT(f){f.isCheckStableRunning||-1!==f.lastRequestAnimationFrameId||(f.lastRequestAnimationFrameId=f.nativeRequestAnimationFrame.call(n,()=>{f.fakeTopEventTask||(f.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{f.lastRequestAnimationFrameId=-1,ch(f),f.isCheckStableRunning=!0,lh(f),f.isCheckStableRunning=!1},void 0,()=>{},()=>{})),f.fakeTopEventTask.invoke()}),ch(f))}(f)};f._inner=f._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(y,x,P,H,j,me)=>{try{return n_(f),y.invokeTask(P,H,j,me)}finally{(f.shouldCoalesceEventChangeDetection&&"eventTask"===H.type||f.shouldCoalesceRunChangeDetection)&&g(),i_(f)}},onInvoke:(y,x,P,H,j,me,Oe)=>{try{return n_(f),y.invoke(P,H,j,me,Oe)}finally{f.shouldCoalesceRunChangeDetection&&g(),i_(f)}},onHasTask:(y,x,P,H)=>{y.hasTask(P,H),x===P&&("microTask"==H.change?(f._hasPendingMicrotasks=H.microTask,ch(f),lh(f)):"macroTask"==H.change&&(f.hasPendingMacrotasks=H.macroTask))},onHandleError:(y,x,P,H)=>(y.handleError(P,H),f.runOutsideAngular(()=>f.onError.emit(H)),!1)})}(P)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Wr.isInAngularZone())throw new te(909,!1)}static assertNotInAngularZone(){if(Wr.isInAngularZone())throw new te(909,!1)}run(g,y,x){return this._inner.run(g,y,x)}runTask(g,y,x,P){const H=this._inner,j=H.scheduleEventTask("NgZoneEvent: "+P,g,dT,Uc,Uc);try{return H.runTask(j,y,x)}finally{H.cancelTask(j)}}runGuarded(g,y,x){return this._inner.runGuarded(g,y,x)}runOutsideAngular(g){return this._outer.run(g)}}const dT={};function lh(f){if(0==f._nesting&&!f.hasPendingMicrotasks&&!f.isStable)try{f._nesting++,f.onMicrotaskEmpty.emit(null)}finally{if(f._nesting--,!f.hasPendingMicrotasks)try{f.runOutsideAngular(()=>f.onStable.emit(null))}finally{f.isStable=!0}}}function ch(f){f.hasPendingMicrotasks=!!(f._hasPendingMicrotasks||(f.shouldCoalesceEventChangeDetection||f.shouldCoalesceRunChangeDetection)&&-1!==f.lastRequestAnimationFrameId)}function n_(f){f._nesting++,f.isStable&&(f.isStable=!1,f.onUnstable.emit(null))}function i_(f){f._nesting--,lh(f)}class pT{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new La,this.onMicrotaskEmpty=new La,this.onStable=new La,this.onError=new La}run(g,y,x){return g.apply(y,x)}runGuarded(g,y,x){return g.apply(y,x)}runOutsideAngular(g){return g()}runTask(g,y,x,P){return g.apply(y,x)}}const r_=new ai(""),a_=new ai("");let dh,fT=(()=>{class f{constructor(y,x,P){this._ngZone=y,this.registry=x,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,dh||(function mT(f){dh=f}(P),P.addToWindow(x)),this._watchAngularEvents(),y.run(()=>{this.taskTrackingZone=typeof Zone>"u"?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:()=>{Wr.assertNotInAngularZone(),sh(()=>{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())sh(()=>{for(;0!==this._callbacks.length;){let y=this._callbacks.pop();clearTimeout(y.timeoutId),y.doneCb(this._didWork)}this._didWork=!1});else{let y=this.getPendingTasks();this._callbacks=this._callbacks.filter(x=>!x.updateCb||!x.updateCb(y)||(clearTimeout(x.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(y=>({source:y.source,creationLocation:y.creationLocation,data:y.data})):[]}addCallback(y,x,P){let H=-1;x&&x>0&&(H=setTimeout(()=>{this._callbacks=this._callbacks.filter(j=>j.timeoutId!==H),y(this._didWork,this.getPendingTasks())},x)),this._callbacks.push({doneCb:y,timeoutId:H,updateCb:P})}whenStable(y,x,P){if(P&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(y,x,P),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(y){this.registry.registerApplication(y,this)}unregisterApplication(y){this.registry.unregisterApplication(y)}findProviders(y,x,P){return[]}}return f.\u0275fac=function(y){return new(y||f)(Bi(Wr),Bi(o_),Bi(a_))},f.\u0275prov=xe({token:f,factory:f.\u0275fac}),f})(),o_=(()=>{class f{constructor(){this._applications=new Map}registerApplication(y,x){this._applications.set(y,x)}unregisterApplication(y){this._applications.delete(y)}unregisterAllApplications(){this._applications.clear()}getTestability(y){return this._applications.get(y)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(y,x=!0){var P,H;return null!==(P=null===(H=dh)||void 0===H?void 0:H.findTestabilityInTree(this,y,x))&&void 0!==P?P:null}}return f.\u0275fac=function(y){return new(y||f)},f.\u0275prov=xe({token:f,factory:f.\u0275fac,providedIn:"platform"}),f})(),So=null;const s_=new ai("AllowMultipleToken"),uh=new ai("PlatformDestroyListeners");class AT{constructor(g,y){this.name=g,this.token=y}}function c_(f,g,y=[]){const x=`Platform: ${g}`,P=new ai(x);return(H=[])=>{let j=hh();if(!j||j.injector.get(s_,!1)){const me=[...y,...H,{provide:P,useValue:!0}];f?f(me):function CT(f){if(So&&!So.get(s_,!1))throw new te(400,!1);So=f;const g=f.get(u_);(function l_(f){const g=f.get($g,null);g&&g.forEach(y=>y())})(f)}(function d_(f=[],g){return Jo.create({name:g,providers:[{provide:gd,useValue:"platform"},{provide:uh,useValue:new Set([()=>So=null])},...f]})}(me,x))}return function vT(f){const g=hh();if(!g)throw new te(401,!1);return g}()}}function hh(){var f,g;return null!==(f=null===(g=So)||void 0===g?void 0:g.get(u_))&&void 0!==f?f:null}let u_=(()=>{class f{constructor(y){this._injector=y,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(y,x){const P=function ET(f,g){let y;return y="noop"===f?new pT:("zone.js"===f?void 0:f)||new Wr(g),y}(x?.ngZone,function h_(f){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!f||!f.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!f||!f.ngZoneRunCoalescing)||!1}}(x)),H=[{provide:Wr,useValue:P}];return P.run(()=>{const j=Jo.create({providers:H,parent:this.injector,name:y.moduleType.name}),me=y.create(j),Oe=me.injector.get(Cl,null);if(!Oe)throw new te(402,!1);return P.runOutsideAngular(()=>{const it=P.onError.subscribe({next:ft=>{Oe.handleError(ft)}});me.onDestroy(()=>{Fc(this._modules,me),it.unsubscribe()})}),function p_(f,g,y){try{const x=y();return yu(x)?x.catch(P=>{throw g.runOutsideAngular(()=>f.handleError(P)),P}):x}catch(x){throw g.runOutsideAngular(()=>f.handleError(x)),x}}(Oe,P,()=>{const it=me.injector.get(Nc);return it.runInitializers(),it.donePromise.then(()=>(function ym(f){N(f,"Expected localeId to be defined"),"string"==typeof f&&(Tm=f.toLowerCase().replace(/_/g,"-"))}(me.injector.get(kc,js)||js),this._moduleDoBootstrap(me),me))})})}bootstrapModule(y,x=[]){const P=f_({},x);return function gT(f,g,y){const x=new zu(y);return Promise.resolve(x)}(0,0,y).then(H=>this.bootstrapModuleFactory(H,P))}_moduleDoBootstrap(y){const x=y.injector.get(Vc);if(y._bootstrapComponents.length>0)y._bootstrapComponents.forEach(P=>x.bootstrap(P));else{if(!y.instance.ngDoBootstrap)throw new te(403,!1);y.instance.ngDoBootstrap(x)}this._modules.push(y)}onDestroy(y){this._destroyListeners.push(y)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new te(404,!1);this._modules.slice().forEach(x=>x.destroy()),this._destroyListeners.forEach(x=>x());const y=this._injector.get(uh,null);y&&(y.forEach(x=>x()),y.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return f.\u0275fac=function(y){return new(y||f)(Bi(Jo))},f.\u0275prov=xe({token:f,factory:f.\u0275fac,providedIn:"platform"}),f})();function f_(f,g){return Array.isArray(g)?g.reduce(f_,f):{...f,...g}}let Vc=(()=>{class f{constructor(y,x,P){this._zone=y,this._injector=x,this._exceptionHandler=P,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const H=new C.y(me=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{me.next(this._stable),me.complete()})}),j=new C.y(me=>{let Oe;this._zone.runOutsideAngular(()=>{Oe=this._zone.onStable.subscribe(()=>{Wr.assertNotInAngularZone(),sh(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,me.next(!0))})})});const it=this._zone.onUnstable.subscribe(()=>{Wr.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{me.next(!1)}))});return()=>{Oe.unsubscribe(),it.unsubscribe()}});this.isStable=(0,M.T)(H,j.pipe((0,m.B)()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(y,x){const P=y instanceof Vh;if(!this._injector.get(Nc).done)throw!P&&zs(y),new te(405,false);let j;j=P?y:this._injector.get(_l).resolveComponentFactory(y),this.componentTypes.push(j.componentType);const me=function _T(f){return f.isBoundToModule}(j)?void 0:this._injector.get(Gs),it=j.create(Jo.NULL,[],x||j.selector,me),ft=it.location.nativeElement,xt=it.injector.get(r_,null);return xt?.registerApplication(ft),it.onDestroy(()=>{this.detachView(it.hostView),Fc(this.components,it),xt?.unregisterApplication(ft)}),this._loadComponent(it),it}tick(){if(this._runningTick)throw new te(101,!1);try{this._runningTick=!0;for(let y of this._views)y.detectChanges()}catch(y){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(y))}finally{this._runningTick=!1}}attachView(y){const x=y;this._views.push(x),x.attachToAppRef(this)}detachView(y){const x=y;Fc(this._views,x),x.detachFromAppRef()}_loadComponent(y){this.attachView(y.hostView),this.tick(),this.components.push(y),this._injector.get(Xg,[]).concat(this._bootstrapListeners).forEach(P=>P(y))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(y=>y()),this._views.slice().forEach(y=>y.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(y){return this._destroyListeners.push(y),()=>Fc(this._destroyListeners,y)}destroy(){if(this._destroyed)throw new te(406,!1);const y=this._injector;y.destroy&&!y.destroyed&&y.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return f.\u0275fac=function(y){return new(y||f)(Bi(Wr),Bi(Yo),Bi(Cl))},f.\u0275prov=xe({token:f,factory:f.\u0275fac,providedIn:"root"}),f})();function Fc(f,g){const y=f.indexOf(g);y>-1&&f.splice(y,1)}let g_=!0;function yT(){g_=!1}let wT=(()=>{class f{}return f.__NG_ELEMENT_ID__=ST,f})();function ST(f){return function MT(f,g,y){if(tr(f)&&!y){const x=gi(f.index,g);return new yl(x,x)}return 47&f.type?new yl(g[16],g):null}(ci(),nn(),16==(16&f))}class v_{constructor(){}supports(g){return Sl(g)}create(g){return new OT(g)}}const IT=(f,g)=>g;class OT{constructor(g){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=g||IT}forEachItem(g){let y;for(y=this._itHead;null!==y;y=y._next)g(y)}forEachOperation(g){let y=this._itHead,x=this._removalsHead,P=0,H=null;for(;y||x;){const j=!x||y&&y.currentIndex{j=this._trackByFn(P,me),null!==y&&Object.is(y.trackById,j)?(x&&(y=this._verifyReinsertion(y,me,j,P)),Object.is(y.item,me)||this._addIdentityChange(y,me)):(y=this._mismatch(y,me,j,P),x=!0),y=y._next,P++}),this.length=P;return this._truncate(y),this.collection=g,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let g;for(g=this._previousItHead=this._itHead;null!==g;g=g._next)g._nextPrevious=g._next;for(g=this._additionsHead;null!==g;g=g._nextAdded)g.previousIndex=g.currentIndex;for(this._additionsHead=this._additionsTail=null,g=this._movesHead;null!==g;g=g._nextMoved)g.previousIndex=g.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(g,y,x,P){let H;return null===g?H=this._itTail:(H=g._prev,this._remove(g)),null!==(g=null===this._unlinkedRecords?null:this._unlinkedRecords.get(x,null))?(Object.is(g.item,y)||this._addIdentityChange(g,y),this._reinsertAfter(g,H,P)):null!==(g=null===this._linkedRecords?null:this._linkedRecords.get(x,P))?(Object.is(g.item,y)||this._addIdentityChange(g,y),this._moveAfter(g,H,P)):g=this._addAfter(new HT(y,x),H,P),g}_verifyReinsertion(g,y,x,P){let H=null===this._unlinkedRecords?null:this._unlinkedRecords.get(x,null);return null!==H?g=this._reinsertAfter(H,g._prev,P):g.currentIndex!=P&&(g.currentIndex=P,this._addToMoves(g,P)),g}_truncate(g){for(;null!==g;){const y=g._next;this._addToRemovals(this._unlink(g)),g=y}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(g,y,x){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(g);const P=g._prevRemoved,H=g._nextRemoved;return null===P?this._removalsHead=H:P._nextRemoved=H,null===H?this._removalsTail=P:H._prevRemoved=P,this._insertAfter(g,y,x),this._addToMoves(g,x),g}_moveAfter(g,y,x){return this._unlink(g),this._insertAfter(g,y,x),this._addToMoves(g,x),g}_addAfter(g,y,x){return this._insertAfter(g,y,x),this._additionsTail=null===this._additionsTail?this._additionsHead=g:this._additionsTail._nextAdded=g,g}_insertAfter(g,y,x){const P=null===y?this._itHead:y._next;return g._next=P,g._prev=y,null===P?this._itTail=g:P._prev=g,null===y?this._itHead=g:y._next=g,null===this._linkedRecords&&(this._linkedRecords=new E_),this._linkedRecords.put(g),g.currentIndex=x,g}_remove(g){return this._addToRemovals(this._unlink(g))}_unlink(g){null!==this._linkedRecords&&this._linkedRecords.remove(g);const y=g._prev,x=g._next;return null===y?this._itHead=x:y._next=x,null===x?this._itTail=y:x._prev=y,g}_addToMoves(g,y){return g.previousIndex===y||(this._movesTail=null===this._movesTail?this._movesHead=g:this._movesTail._nextMoved=g),g}_addToRemovals(g){return null===this._unlinkedRecords&&(this._unlinkedRecords=new E_),this._unlinkedRecords.put(g),g.currentIndex=null,g._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=g,g._prevRemoved=null):(g._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=g),g}_addIdentityChange(g,y){return g.item=y,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=g:this._identityChangesTail._nextIdentityChange=g,g}}class HT{constructor(g,y){this.item=g,this.trackById=y,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 LT{constructor(){this._head=null,this._tail=null}add(g){null===this._head?(this._head=this._tail=g,g._nextDup=null,g._prevDup=null):(this._tail._nextDup=g,g._prevDup=this._tail,g._nextDup=null,this._tail=g)}get(g,y){let x;for(x=this._head;null!==x;x=x._nextDup)if((null===y||y<=x.currentIndex)&&Object.is(x.trackById,g))return x;return null}remove(g){const y=g._prevDup,x=g._nextDup;return null===y?this._head=x:y._nextDup=x,null===x?this._tail=y:x._prevDup=y,null===this._head}}class E_{constructor(){this.map=new Map}put(g){const y=g.trackById;let x=this.map.get(y);x||(x=new LT,this.map.set(y,x)),x.add(g)}get(g,y){const P=this.map.get(g);return P?P.get(g,y):null}remove(g){const y=g.trackById;return this.map.get(y).remove(g)&&this.map.delete(y),g}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function T_(f,g,y){const x=f.previousIndex;if(null===x)return x;let P=0;return y&&x{if(y&&y.key===P)this._maybeAddToChanges(y,x),this._appendAfter=y,y=y._next;else{const H=this._getOrCreateRecordForKey(P,x);y=this._insertBeforeOrAppend(y,H)}}),y){y._prev&&(y._prev._next=null),this._removalsHead=y;for(let x=y;null!==x;x=x._nextRemoved)x===this._mapHead&&(this._mapHead=null),this._records.delete(x.key),x._nextRemoved=x._next,x.previousValue=x.currentValue,x.currentValue=null,x._prev=null,x._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(g,y){if(g){const x=g._prev;return y._next=g,y._prev=x,g._prev=y,x&&(x._next=y),g===this._mapHead&&(this._mapHead=y),this._appendAfter=g,g}return this._appendAfter?(this._appendAfter._next=y,y._prev=this._appendAfter):this._mapHead=y,this._appendAfter=y,null}_getOrCreateRecordForKey(g,y){if(this._records.has(g)){const P=this._records.get(g);this._maybeAddToChanges(P,y);const H=P._prev,j=P._next;return H&&(H._next=j),j&&(j._prev=H),P._next=null,P._prev=null,P}const x=new UT(g);return this._records.set(g,x),x.currentValue=y,this._addToAdditions(x),x}_reset(){if(this.isDirty){let g;for(this._previousMapHead=this._mapHead,g=this._previousMapHead;null!==g;g=g._next)g._nextPrevious=g._next;for(g=this._changesHead;null!==g;g=g._nextChanged)g.previousValue=g.currentValue;for(g=this._additionsHead;null!=g;g=g._nextAdded)g.previousValue=g.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(g,y){Object.is(y,g.currentValue)||(g.previousValue=g.currentValue,g.currentValue=y,this._addToChanges(g))}_addToAdditions(g){null===this._additionsHead?this._additionsHead=this._additionsTail=g:(this._additionsTail._nextAdded=g,this._additionsTail=g)}_addToChanges(g){null===this._changesHead?this._changesHead=this._changesTail=g:(this._changesTail._nextChanged=g,this._changesTail=g)}_forEach(g,y){g instanceof Map?g.forEach(y):Object.keys(g).forEach(x=>y(g[x],x))}}class UT{constructor(g){this.key=g,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function w_(){return new _h([new v_])}let _h=(()=>{class f{constructor(y){this.factories=y}static create(y,x){if(null!=x){const P=x.factories.slice();y=y.concat(P)}return new f(y)}static extend(y){return{provide:f,useFactory:x=>f.create(y,x||w_()),deps:[[f,new go,new er]]}}find(y){const x=this.factories.find(P=>P.supports(y));if(null!=x)return x;throw new te(901,!1)}}return f.\u0275prov=xe({token:f,providedIn:"root",factory:w_}),f})();function S_(){return new Ah([new y_])}let Ah=(()=>{class f{constructor(y){this.factories=y}static create(y,x){if(x){const P=x.factories.slice();y=y.concat(P)}return new f(y)}static extend(y){return{provide:f,useFactory:x=>f.create(y,x||S_()),deps:[[f,new go,new er]]}}find(y){const x=this.factories.find(P=>P.supports(y));if(x)return x;throw new te(901,!1)}}return f.\u0275prov=xe({token:f,providedIn:"root",factory:S_}),f})();const VT=c_(null,"core",[]);let FT=(()=>{class f{constructor(y){}}return f.\u0275fac=function(y){return new(y||f)(Bi(Vc))},f.\u0275mod=re({type:f}),f.\u0275inj=Fe({}),f})();function jT(f){return"boolean"==typeof f?f:null!=f&&"false"!==f}},24006:(Xe,ue,p)=>{"use strict";p.d(ue,{Cf:()=>Te,EJ:()=>$e,F:()=>mi,Fj:()=>q,JJ:()=>Ce,JL:()=>fe,JU:()=>v,Kr:()=>bi,NI:()=>Ln,On:()=>Ci,Q7:()=>dr,QS:()=>Tr,UX:()=>$n,YN:()=>yt,Zs:()=>gi,_Y:()=>Er,a5:()=>ye,c5:()=>vn,kI:()=>T,oH:()=>kt,p4:()=>zi,sg:()=>rn,u:()=>xi,u5:()=>Ti,wV:()=>Ei});var e=p(94650),A=p(36895),C=p(32076),M=p(4128),m=p(54004);let b=(()=>{class Qe{constructor(Ie,_t){this._renderer=Ie,this._elementRef=_t,this.onChange=Jt=>{},this.onTouched=()=>{}}setProperty(Ie,_t){this._renderer.setProperty(this._elementRef.nativeElement,Ie,_t)}registerOnTouched(Ie){this.onTouched=Ie}registerOnChange(Ie){this.onChange=Ie}setDisabledState(Ie){this.setProperty("disabled",Ie)}}return Qe.\u0275fac=function(Ie){return new(Ie||Qe)(e.Y36(e.Qsj),e.Y36(e.SBq))},Qe.\u0275dir=e.lG2({type:Qe}),Qe})(),D=(()=>{class Qe extends b{}return Qe.\u0275fac=function(){let Ve;return function(_t){return(Ve||(Ve=e.n5z(Qe)))(_t||Qe)}}(),Qe.\u0275dir=e.lG2({type:Qe,features:[e.qOj]}),Qe})();const v=new e.OlP("NgValueAccessor"),w={provide:v,useExisting:(0,e.Gpc)(()=>q),multi:!0},O=new e.OlP("CompositionEventMode");let q=(()=>{class Qe extends b{constructor(Ie,_t,Jt){super(Ie,_t),this._compositionMode=Jt,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function L(){const Qe=(0,A.q)()?(0,A.q)().getUserAgent():"";return/android (\d+)/.test(Qe.toLowerCase())}())}writeValue(Ie){this.setProperty("value",Ie??"")}_handleInput(Ie){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(Ie)}_compositionStart(){this._composing=!0}_compositionEnd(Ie){this._composing=!1,this._compositionMode&&this.onChange(Ie)}}return Qe.\u0275fac=function(Ie){return new(Ie||Qe)(e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(O,8))},Qe.\u0275dir=e.lG2({type:Qe,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(Ie,_t){1&Ie&&e.NdJ("input",function(_n){return _t._handleInput(_n.target.value)})("blur",function(){return _t.onTouched()})("compositionstart",function(){return _t._compositionStart()})("compositionend",function(_n){return _t._compositionEnd(_n.target.value)})},features:[e._Bn([w]),e.qOj]}),Qe})();function z(Qe){return null==Qe||("string"==typeof Qe||Array.isArray(Qe))&&0===Qe.length}function ie(Qe){return null!=Qe&&"number"==typeof Qe.length}const Te=new e.OlP("NgValidators"),pe=new e.OlP("NgAsyncValidators"),Le=/^(?=.{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 T{static min(Ve){return function W(Qe){return Ve=>{if(z(Ve.value)||z(Qe))return null;const Ie=parseFloat(Ve.value);return!isNaN(Ie)&&Ie{if(z(Ve.value)||z(Qe))return null;const Ie=parseFloat(Ve.value);return!isNaN(Ie)&&Ie>Qe?{max:{max:Qe,actual:Ve.value}}:null}}(Ve)}static required(Ve){return V(Ve)}static requiredTrue(Ve){return ee(Ve)}static email(Ve){return function Q(Qe){return z(Qe.value)||Le.test(Qe.value)?null:{email:!0}}(Ve)}static minLength(Ve){return function Ee(Qe){return Ve=>z(Ve.value)||!ie(Ve.value)?null:Ve.value.lengthie(Ve.value)&&Ve.value.length>Qe?{maxlength:{requiredLength:Qe,actualLength:Ve.value.length}}:null}(Ve)}static pattern(Ve){return ve(Ve)}static nullValidator(Ve){return null}static compose(Ve){return k(Ve)}static composeAsync(Ve){return Z(Ve)}}function V(Qe){return z(Qe.value)?{required:!0}:null}function ee(Qe){return!0===Qe.value?null:{required:!0}}function ve(Qe){if(!Qe)return De;let Ve,Ie;return"string"==typeof Qe?(Ie="","^"!==Qe.charAt(0)&&(Ie+="^"),Ie+=Qe,"$"!==Qe.charAt(Qe.length-1)&&(Ie+="$"),Ve=new RegExp(Ie)):(Ie=Qe.toString(),Ve=Qe),_t=>{if(z(_t.value))return null;const Jt=_t.value;return Ve.test(Jt)?null:{pattern:{requiredPattern:Ie,actualValue:Jt}}}}function De(Qe){return null}function he(Qe){return null!=Qe}function Ye(Qe){return(0,e.QGY)(Qe)?(0,C.D)(Qe):Qe}function Be(Qe){let Ve={};return Qe.forEach(Ie=>{Ve=null!=Ie?{...Ve,...Ie}:Ve}),0===Object.keys(Ve).length?null:Ve}function se(Qe,Ve){return Ve.map(Ie=>Ie(Qe))}function N(Qe){return Qe.map(Ve=>function le(Qe){return!Qe.validate}(Ve)?Ve:Ie=>Ve.validate(Ie))}function k(Qe){if(!Qe)return null;const Ve=Qe.filter(he);return 0==Ve.length?null:function(Ie){return Be(se(Ie,Ve))}}function be(Qe){return null!=Qe?k(N(Qe)):null}function Z(Qe){if(!Qe)return null;const Ve=Qe.filter(he);return 0==Ve.length?null:function(Ie){const _t=se(Ie,Ve).map(Ye);return(0,M.D)(_t).pipe((0,m.U)(Be))}}function ce(Qe){return null!=Qe?Z(N(Qe)):null}function xe(Qe,Ve){return null===Qe?[Ve]:Array.isArray(Qe)?[...Qe,Ve]:[Qe,Ve]}function ot(Qe){return Qe._rawValidators}function Fe(Qe){return Qe._rawAsyncValidators}function ut(Qe){return Qe?Array.isArray(Qe)?Qe:[Qe]:[]}function tt(Qe,Ve){return Array.isArray(Qe)?Qe.includes(Ve):Qe===Ve}function vt(Qe,Ve){const Ie=ut(Ve);return ut(Qe).forEach(Jt=>{tt(Ie,Jt)||Ie.push(Jt)}),Ie}function X(Qe,Ve){return ut(Ve).filter(Ie=>!tt(Qe,Ie))}class nt{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(Ve){this._rawValidators=Ve||[],this._composedValidatorFn=be(this._rawValidators)}_setAsyncValidators(Ve){this._rawAsyncValidators=Ve||[],this._composedAsyncValidatorFn=ce(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(Ve){this._onDestroyCallbacks.push(Ve)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(Ve=>Ve()),this._onDestroyCallbacks=[]}reset(Ve){this.control&&this.control.reset(Ve)}hasError(Ve,Ie){return!!this.control&&this.control.hasError(Ve,Ie)}getError(Ve,Ie){return this.control?this.control.getError(Ve,Ie):null}}class Ae extends nt{get formDirective(){return null}get path(){return null}}class ye extends nt{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class _e{constructor(Ve){this._cd=Ve}get isTouched(){var Ve,Ie;return!(null===(Ve=this._cd)||void 0===Ve||null===(Ie=Ve.control)||void 0===Ie||!Ie.touched)}get isUntouched(){var Ve,Ie;return!(null===(Ve=this._cd)||void 0===Ve||null===(Ie=Ve.control)||void 0===Ie||!Ie.untouched)}get isPristine(){var Ve,Ie;return!(null===(Ve=this._cd)||void 0===Ve||null===(Ie=Ve.control)||void 0===Ie||!Ie.pristine)}get isDirty(){var Ve,Ie;return!(null===(Ve=this._cd)||void 0===Ve||null===(Ie=Ve.control)||void 0===Ie||!Ie.dirty)}get isValid(){var Ve,Ie;return!(null===(Ve=this._cd)||void 0===Ve||null===(Ie=Ve.control)||void 0===Ie||!Ie.valid)}get isInvalid(){var Ve,Ie;return!(null===(Ve=this._cd)||void 0===Ve||null===(Ie=Ve.control)||void 0===Ie||!Ie.invalid)}get isPending(){var Ve,Ie;return!(null===(Ve=this._cd)||void 0===Ve||null===(Ie=Ve.control)||void 0===Ie||!Ie.pending)}get isSubmitted(){var Ve;return!(null===(Ve=this._cd)||void 0===Ve||!Ve.submitted)}}let Ce=(()=>{class Qe extends _e{constructor(Ie){super(Ie)}}return Qe.\u0275fac=function(Ie){return new(Ie||Qe)(e.Y36(ye,2))},Qe.\u0275dir=e.lG2({type:Qe,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(Ie,_t){2&Ie&&e.ekj("ng-untouched",_t.isUntouched)("ng-touched",_t.isTouched)("ng-pristine",_t.isPristine)("ng-dirty",_t.isDirty)("ng-valid",_t.isValid)("ng-invalid",_t.isInvalid)("ng-pending",_t.isPending)},features:[e.qOj]}),Qe})(),fe=(()=>{class Qe extends _e{constructor(Ie){super(Ie)}}return Qe.\u0275fac=function(Ie){return new(Ie||Qe)(e.Y36(Ae,10))},Qe.\u0275dir=e.lG2({type:Qe,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(Ie,_t){2&Ie&&e.ekj("ng-untouched",_t.isUntouched)("ng-touched",_t.isTouched)("ng-pristine",_t.isPristine)("ng-dirty",_t.isDirty)("ng-valid",_t.isValid)("ng-invalid",_t.isInvalid)("ng-pending",_t.isPending)("ng-submitted",_t.isSubmitted)},features:[e.qOj]}),Qe})();const et="VALID",ne="INVALID",Ue="PENDING",He="DISABLED";function Pe(Qe){return(st(Qe)?Qe.validators:Qe)||null}function Re(Qe){return Array.isArray(Qe)?be(Qe):Qe||null}function re(Qe,Ve){return(st(Ve)?Ve.asyncValidators:Qe)||null}function we(Qe){return Array.isArray(Qe)?ce(Qe):Qe||null}function st(Qe){return null!=Qe&&!Array.isArray(Qe)&&"object"==typeof Qe}function Ke(Qe,Ve,Ie){const _t=Qe.controls;if(!(Ve?Object.keys(_t):_t).length)throw new e.vHH(1e3,"");if(!_t[Ie])throw new e.vHH(1001,"")}function Et(Qe,Ve,Ie){Qe._forEachChild((_t,Jt)=>{if(void 0===Ie[Jt])throw new e.vHH(1002,"")})}class ke{constructor(Ve,Ie){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=Ve,this._rawAsyncValidators=Ie,this._composedValidatorFn=Re(this._rawValidators),this._composedAsyncValidatorFn=we(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(Ve){this._rawValidators=this._composedValidatorFn=Ve}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(Ve){this._rawAsyncValidators=this._composedAsyncValidatorFn=Ve}get parent(){return this._parent}get valid(){return this.status===et}get invalid(){return this.status===ne}get pending(){return this.status==Ue}get disabled(){return this.status===He}get enabled(){return this.status!==He}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(Ve){this._rawValidators=Ve,this._composedValidatorFn=Re(Ve)}setAsyncValidators(Ve){this._rawAsyncValidators=Ve,this._composedAsyncValidatorFn=we(Ve)}addValidators(Ve){this.setValidators(vt(Ve,this._rawValidators))}addAsyncValidators(Ve){this.setAsyncValidators(vt(Ve,this._rawAsyncValidators))}removeValidators(Ve){this.setValidators(X(Ve,this._rawValidators))}removeAsyncValidators(Ve){this.setAsyncValidators(X(Ve,this._rawAsyncValidators))}hasValidator(Ve){return tt(this._rawValidators,Ve)}hasAsyncValidator(Ve){return tt(this._rawAsyncValidators,Ve)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(Ve={}){this.touched=!0,this._parent&&!Ve.onlySelf&&this._parent.markAsTouched(Ve)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(Ve=>Ve.markAllAsTouched())}markAsUntouched(Ve={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(Ie=>{Ie.markAsUntouched({onlySelf:!0})}),this._parent&&!Ve.onlySelf&&this._parent._updateTouched(Ve)}markAsDirty(Ve={}){this.pristine=!1,this._parent&&!Ve.onlySelf&&this._parent.markAsDirty(Ve)}markAsPristine(Ve={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(Ie=>{Ie.markAsPristine({onlySelf:!0})}),this._parent&&!Ve.onlySelf&&this._parent._updatePristine(Ve)}markAsPending(Ve={}){this.status=Ue,!1!==Ve.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!Ve.onlySelf&&this._parent.markAsPending(Ve)}disable(Ve={}){const Ie=this._parentMarkedDirty(Ve.onlySelf);this.status=He,this.errors=null,this._forEachChild(_t=>{_t.disable({...Ve,onlySelf:!0})}),this._updateValue(),!1!==Ve.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...Ve,skipPristineCheck:Ie}),this._onDisabledChange.forEach(_t=>_t(!0))}enable(Ve={}){const Ie=this._parentMarkedDirty(Ve.onlySelf);this.status=et,this._forEachChild(_t=>{_t.enable({...Ve,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:Ve.emitEvent}),this._updateAncestors({...Ve,skipPristineCheck:Ie}),this._onDisabledChange.forEach(_t=>_t(!1))}_updateAncestors(Ve){this._parent&&!Ve.onlySelf&&(this._parent.updateValueAndValidity(Ve),Ve.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(Ve){this._parent=Ve}getRawValue(){return this.value}updateValueAndValidity(Ve={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===et||this.status===Ue)&&this._runAsyncValidator(Ve.emitEvent)),!1!==Ve.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!Ve.onlySelf&&this._parent.updateValueAndValidity(Ve)}_updateTreeValidity(Ve={emitEvent:!0}){this._forEachChild(Ie=>Ie._updateTreeValidity(Ve)),this.updateValueAndValidity({onlySelf:!0,emitEvent:Ve.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?He:et}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(Ve){if(this.asyncValidator){this.status=Ue,this._hasOwnPendingAsyncValidator=!0;const Ie=Ye(this.asyncValidator(this));this._asyncValidationSubscription=Ie.subscribe(_t=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(_t,{emitEvent:Ve})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(Ve,Ie={}){this.errors=Ve,this._updateControlsErrors(!1!==Ie.emitEvent)}get(Ve){let Ie=Ve;return null==Ie||(Array.isArray(Ie)||(Ie=Ie.split(".")),0===Ie.length)?null:Ie.reduce((_t,Jt)=>_t&&_t._find(Jt),this)}getError(Ve,Ie){const _t=Ie?this.get(Ie):this;return _t&&_t.errors?_t.errors[Ve]:null}hasError(Ve,Ie){return!!this.getError(Ve,Ie)}get root(){let Ve=this;for(;Ve._parent;)Ve=Ve._parent;return Ve}_updateControlsErrors(Ve){this.status=this._calculateStatus(),Ve&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(Ve)}_initObservables(){this.valueChanges=new e.vpe,this.statusChanges=new e.vpe}_calculateStatus(){return this._allControlsDisabled()?He:this.errors?ne:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ue)?Ue:this._anyControlsHaveStatus(ne)?ne:et}_anyControlsHaveStatus(Ve){return this._anyControls(Ie=>Ie.status===Ve)}_anyControlsDirty(){return this._anyControls(Ve=>Ve.dirty)}_anyControlsTouched(){return this._anyControls(Ve=>Ve.touched)}_updatePristine(Ve={}){this.pristine=!this._anyControlsDirty(),this._parent&&!Ve.onlySelf&&this._parent._updatePristine(Ve)}_updateTouched(Ve={}){this.touched=this._anyControlsTouched(),this._parent&&!Ve.onlySelf&&this._parent._updateTouched(Ve)}_registerOnCollectionChange(Ve){this._onCollectionChange=Ve}_setUpdateStrategy(Ve){st(Ve)&&null!=Ve.updateOn&&(this._updateOn=Ve.updateOn)}_parentMarkedDirty(Ve){return!Ve&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(Ve){return null}}class at extends ke{constructor(Ve,Ie,_t){super(Pe(Ie),re(_t,Ie)),this.controls=Ve,this._initObservables(),this._setUpdateStrategy(Ie),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(Ve,Ie){return this.controls[Ve]?this.controls[Ve]:(this.controls[Ve]=Ie,Ie.setParent(this),Ie._registerOnCollectionChange(this._onCollectionChange),Ie)}addControl(Ve,Ie,_t={}){this.registerControl(Ve,Ie),this.updateValueAndValidity({emitEvent:_t.emitEvent}),this._onCollectionChange()}removeControl(Ve,Ie={}){this.controls[Ve]&&this.controls[Ve]._registerOnCollectionChange(()=>{}),delete this.controls[Ve],this.updateValueAndValidity({emitEvent:Ie.emitEvent}),this._onCollectionChange()}setControl(Ve,Ie,_t={}){this.controls[Ve]&&this.controls[Ve]._registerOnCollectionChange(()=>{}),delete this.controls[Ve],Ie&&this.registerControl(Ve,Ie),this.updateValueAndValidity({emitEvent:_t.emitEvent}),this._onCollectionChange()}contains(Ve){return this.controls.hasOwnProperty(Ve)&&this.controls[Ve].enabled}setValue(Ve,Ie={}){Et(this,0,Ve),Object.keys(Ve).forEach(_t=>{Ke(this,!0,_t),this.controls[_t].setValue(Ve[_t],{onlySelf:!0,emitEvent:Ie.emitEvent})}),this.updateValueAndValidity(Ie)}patchValue(Ve,Ie={}){null!=Ve&&(Object.keys(Ve).forEach(_t=>{const Jt=this.controls[_t];Jt&&Jt.patchValue(Ve[_t],{onlySelf:!0,emitEvent:Ie.emitEvent})}),this.updateValueAndValidity(Ie))}reset(Ve={},Ie={}){this._forEachChild((_t,Jt)=>{_t.reset(Ve[Jt],{onlySelf:!0,emitEvent:Ie.emitEvent})}),this._updatePristine(Ie),this._updateTouched(Ie),this.updateValueAndValidity(Ie)}getRawValue(){return this._reduceChildren({},(Ve,Ie,_t)=>(Ve[_t]=Ie.getRawValue(),Ve))}_syncPendingControls(){let Ve=this._reduceChildren(!1,(Ie,_t)=>!!_t._syncPendingControls()||Ie);return Ve&&this.updateValueAndValidity({onlySelf:!0}),Ve}_forEachChild(Ve){Object.keys(this.controls).forEach(Ie=>{const _t=this.controls[Ie];_t&&Ve(_t,Ie)})}_setUpControls(){this._forEachChild(Ve=>{Ve.setParent(this),Ve._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(Ve){for(const[Ie,_t]of Object.entries(this.controls))if(this.contains(Ie)&&Ve(_t))return!0;return!1}_reduceValue(){return this._reduceChildren({},(Ie,_t,Jt)=>((_t.enabled||this.disabled)&&(Ie[Jt]=_t.value),Ie))}_reduceChildren(Ve,Ie){let _t=Ve;return this._forEachChild((Jt,_n)=>{_t=Ie(_t,Jt,_n)}),_t}_allControlsDisabled(){for(const Ve of Object.keys(this.controls))if(this.controls[Ve].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(Ve){return this.controls.hasOwnProperty(Ve)?this.controls[Ve]:null}}function on(Qe,Ve){return[...Ve.path,Qe]}function Cn(Qe,Ve){var Ie,_t;wt(Qe,Ve),Ve.valueAccessor.writeValue(Qe.value),Qe.disabled&&(null===(Ie=(_t=Ve.valueAccessor).setDisabledState)||void 0===Ie||Ie.call(_t,!0)),function ln(Qe,Ve){Ve.valueAccessor.registerOnChange(Ie=>{Qe._pendingValue=Ie,Qe._pendingChange=!0,Qe._pendingDirty=!0,"change"===Qe.updateOn&&gn(Qe,Ve)})}(Qe,Ve),function zn(Qe,Ve){const Ie=(_t,Jt)=>{Ve.valueAccessor.writeValue(_t),Jt&&Ve.viewToModelUpdate(_t)};Qe.registerOnChange(Ie),Ve._registerOnDestroy(()=>{Qe._unregisterOnChange(Ie)})}(Qe,Ve),function bn(Qe,Ve){Ve.valueAccessor.registerOnTouched(()=>{Qe._pendingTouched=!0,"blur"===Qe.updateOn&&Qe._pendingChange&&gn(Qe,Ve),"submit"!==Qe.updateOn&&Qe.markAsTouched()})}(Qe,Ve),function Ze(Qe,Ve){if(Ve.valueAccessor.setDisabledState){const Ie=_t=>{Ve.valueAccessor.setDisabledState(_t)};Qe.registerOnDisabledChange(Ie),Ve._registerOnDestroy(()=>{Qe._unregisterOnDisabledChange(Ie)})}}(Qe,Ve)}function Tt(Qe,Ve,Ie=!0){const _t=()=>{};Ve.valueAccessor&&(Ve.valueAccessor.registerOnChange(_t),Ve.valueAccessor.registerOnTouched(_t)),Ft(Qe,Ve),Qe&&(Ve._invokeOnDestroyCallbacks(),Qe._registerOnCollectionChange(()=>{}))}function Dt(Qe,Ve){Qe.forEach(Ie=>{Ie.registerOnValidatorChange&&Ie.registerOnValidatorChange(Ve)})}function wt(Qe,Ve){const Ie=ot(Qe);null!==Ve.validator?Qe.setValidators(xe(Ie,Ve.validator)):"function"==typeof Ie&&Qe.setValidators([Ie]);const _t=Fe(Qe);null!==Ve.asyncValidator?Qe.setAsyncValidators(xe(_t,Ve.asyncValidator)):"function"==typeof _t&&Qe.setAsyncValidators([_t]);const Jt=()=>Qe.updateValueAndValidity();Dt(Ve._rawValidators,Jt),Dt(Ve._rawAsyncValidators,Jt)}function Ft(Qe,Ve){let Ie=!1;if(null!==Qe){if(null!==Ve.validator){const Jt=ot(Qe);if(Array.isArray(Jt)&&Jt.length>0){const _n=Jt.filter(hi=>hi!==Ve.validator);_n.length!==Jt.length&&(Ie=!0,Qe.setValidators(_n))}}if(null!==Ve.asyncValidator){const Jt=Fe(Qe);if(Array.isArray(Jt)&&Jt.length>0){const _n=Jt.filter(hi=>hi!==Ve.asyncValidator);_n.length!==Jt.length&&(Ie=!0,Qe.setAsyncValidators(_n))}}}const _t=()=>{};return Dt(Ve._rawValidators,_t),Dt(Ve._rawAsyncValidators,_t),Ie}function gn(Qe,Ve){Qe._pendingDirty&&Qe.markAsDirty(),Qe.setValue(Qe._pendingValue,{emitModelToViewChange:!1}),Ve.viewToModelUpdate(Qe._pendingValue),Qe._pendingChange=!1}function bt(Qe,Ve){wt(Qe,Ve)}function We(Qe,Ve){if(!Qe.hasOwnProperty("model"))return!1;const Ie=Qe.model;return!!Ie.isFirstChange()||!Object.is(Ve,Ie.currentValue)}function Pt(Qe,Ve){Qe._syncPendingControls(),Ve.forEach(Ie=>{const _t=Ie.control;"submit"===_t.updateOn&&_t._pendingChange&&(Ie.viewToModelUpdate(_t._pendingValue),_t._pendingChange=!1)})}function Xt(Qe,Ve){if(!Ve)return null;let Ie,_t,Jt;return Array.isArray(Ve),Ve.forEach(_n=>{_n.constructor===q?Ie=_n:function At(Qe){return Object.getPrototypeOf(Qe.constructor)===D}(_n)?_t=_n:Jt=_n}),Jt||_t||Ie||null}const Hn={provide:Ae,useExisting:(0,e.Gpc)(()=>mi)},Xn=(()=>Promise.resolve(null))();let mi=(()=>{class Qe extends Ae{constructor(Ie,_t){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new e.vpe,this.form=new at({},be(Ie),ce(_t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(Ie){Xn.then(()=>{const _t=this._findContainer(Ie.path);Ie.control=_t.registerControl(Ie.name,Ie.control),Cn(Ie.control,Ie),Ie.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(Ie)})}getControl(Ie){return this.form.get(Ie.path)}removeControl(Ie){Xn.then(()=>{const _t=this._findContainer(Ie.path);_t&&_t.removeControl(Ie.name),this._directives.delete(Ie)})}addFormGroup(Ie){Xn.then(()=>{const _t=this._findContainer(Ie.path),Jt=new at({});bt(Jt,Ie),_t.registerControl(Ie.name,Jt),Jt.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(Ie){Xn.then(()=>{const _t=this._findContainer(Ie.path);_t&&_t.removeControl(Ie.name)})}getFormGroup(Ie){return this.form.get(Ie.path)}updateModel(Ie,_t){Xn.then(()=>{this.form.get(Ie.path).setValue(_t)})}setValue(Ie){this.control.setValue(Ie)}onSubmit(Ie){return this.submitted=!0,Pt(this.form,this._directives),this.ngSubmit.emit(Ie),!1}onReset(){this.resetForm()}resetForm(Ie){this.form.reset(Ie),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(Ie){return Ie.pop(),Ie.length?this.form.get(Ie):this.form}}return Qe.\u0275fac=function(Ie){return new(Ie||Qe)(e.Y36(Te,10),e.Y36(pe,10))},Qe.\u0275dir=e.lG2({type:Qe,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(Ie,_t){1&Ie&&e.NdJ("submit",function(_n){return _t.onSubmit(_n)})("reset",function(){return _t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[e._Bn([Hn]),e.qOj]}),Qe})();function di(Qe,Ve){const Ie=Qe.indexOf(Ve);Ie>-1&&Qe.splice(Ie,1)}function Jn(Qe){return"object"==typeof Qe&&null!==Qe&&2===Object.keys(Qe).length&&"value"in Qe&&"disabled"in Qe}const Ln=class extends ke{constructor(Ve=null,Ie,_t){super(Pe(Ie),re(_t,Ie)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(Ve),this._setUpdateStrategy(Ie),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),st(Ie)&&(Ie.nonNullable||Ie.initialValueIsDefault)&&(this.defaultValue=Jn(Ve)?Ve.value:Ve)}setValue(Ve,Ie={}){this.value=this._pendingValue=Ve,this._onChange.length&&!1!==Ie.emitModelToViewChange&&this._onChange.forEach(_t=>_t(this.value,!1!==Ie.emitViewToModelChange)),this.updateValueAndValidity(Ie)}patchValue(Ve,Ie={}){this.setValue(Ve,Ie)}reset(Ve=this.defaultValue,Ie={}){this._applyFormState(Ve),this.markAsPristine(Ie),this.markAsUntouched(Ie),this.setValue(this.value,Ie),this._pendingChange=!1}_updateValue(){}_anyControls(Ve){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(Ve){this._onChange.push(Ve)}_unregisterOnChange(Ve){di(this._onChange,Ve)}registerOnDisabledChange(Ve){this._onDisabledChange.push(Ve)}_unregisterOnDisabledChange(Ve){di(this._onDisabledChange,Ve)}_forEachChild(Ve){}_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(Ve){Jn(Ve)?(this.value=this._pendingValue=Ve.value,Ve.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=Ve}},zi=Ln,sr={provide:ye,useExisting:(0,e.Gpc)(()=>Ci)},lr=(()=>Promise.resolve(null))();let Ci=(()=>{class Qe extends ye{constructor(Ie,_t,Jt,_n,hi){super(),this._changeDetectorRef=hi,this.control=new Ln,this._registered=!1,this.update=new e.vpe,this._parent=Ie,this._setValidators(_t),this._setAsyncValidators(Jt),this.valueAccessor=Xt(0,_n)}ngOnChanges(Ie){if(this._checkForErrors(),!this._registered||"name"in Ie){if(this._registered&&(this._checkName(),this.formDirective)){const _t=Ie.name.previousValue;this.formDirective.removeControl({name:_t,path:this._getPath(_t)})}this._setUpControl()}"isDisabled"in Ie&&this._updateDisabled(Ie),We(Ie,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(Ie){this.viewModel=Ie,this.update.emit(Ie)}_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(){Cn(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(Ie){lr.then(()=>{var _t;this.control.setValue(Ie,{emitViewToModelChange:!1}),null===(_t=this._changeDetectorRef)||void 0===_t||_t.markForCheck()})}_updateDisabled(Ie){const _t=Ie.isDisabled.currentValue,Jt=0!==_t&&(0,e.D6c)(_t);lr.then(()=>{var _n;Jt&&!this.control.disabled?this.control.disable():!Jt&&this.control.disabled&&this.control.enable(),null===(_n=this._changeDetectorRef)||void 0===_n||_n.markForCheck()})}_getPath(Ie){return this._parent?on(Ie,this._parent):[Ie]}}return Qe.\u0275fac=function(Ie){return new(Ie||Qe)(e.Y36(Ae,9),e.Y36(Te,10),e.Y36(pe,10),e.Y36(v,10),e.Y36(e.sBO,8))},Qe.\u0275dir=e.lG2({type:Qe,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[e._Bn([sr]),e.qOj,e.TTD]}),Qe})(),Er=(()=>{class Qe{}return Qe.\u0275fac=function(Ie){return new(Ie||Qe)},Qe.\u0275dir=e.lG2({type:Qe,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),Qe})();const Ur={provide:v,useExisting:(0,e.Gpc)(()=>Ei),multi:!0};let Ei=(()=>{class Qe extends D{writeValue(Ie){this.setProperty("value",Ie??"")}registerOnChange(Ie){this.onChange=_t=>{Ie(""==_t?null:parseFloat(_t))}}}return Qe.\u0275fac=function(){let Ve;return function(_t){return(Ve||(Ve=e.n5z(Qe)))(_t||Qe)}}(),Qe.\u0275dir=e.lG2({type:Qe,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(Ie,_t){1&Ie&&e.NdJ("input",function(_n){return _t.onChange(_n.target.value)})("blur",function(){return _t.onTouched()})},features:[e._Bn([Ur]),e.qOj]}),Qe})(),kr=(()=>{class Qe{}return Qe.\u0275fac=function(Ie){return new(Ie||Qe)},Qe.\u0275mod=e.oAB({type:Qe}),Qe.\u0275inj=e.cJS({}),Qe})();const en=new e.OlP("NgModelWithFormControlWarning"),ct={provide:ye,useExisting:(0,e.Gpc)(()=>kt)};let kt=(()=>{class Qe extends ye{constructor(Ie,_t,Jt,_n){super(),this._ngModelWarningConfig=_n,this.update=new e.vpe,this._ngModelWarningSent=!1,this._setValidators(Ie),this._setAsyncValidators(_t),this.valueAccessor=Xt(0,Jt)}set isDisabled(Ie){}ngOnChanges(Ie){if(this._isControlChanged(Ie)){const _t=Ie.form.previousValue;_t&&Tt(_t,this,!1),Cn(this.form,this),this.form.updateValueAndValidity({emitEvent:!1})}We(Ie,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Tt(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(Ie){this.viewModel=Ie,this.update.emit(Ie)}_isControlChanged(Ie){return Ie.hasOwnProperty("form")}}return Qe._ngModelWarningSentOnce=!1,Qe.\u0275fac=function(Ie){return new(Ie||Qe)(e.Y36(Te,10),e.Y36(pe,10),e.Y36(v,10),e.Y36(en,8))},Qe.\u0275dir=e.lG2({type:Qe,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[e._Bn([ct]),e.qOj,e.TTD]}),Qe})();const Zt={provide:Ae,useExisting:(0,e.Gpc)(()=>rn)};let rn=(()=>{class Qe extends Ae{constructor(Ie,_t){super(),this.validators=Ie,this.asyncValidators=_t,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new e.vpe,this._setValidators(Ie),this._setAsyncValidators(_t)}ngOnChanges(Ie){this._checkFormPresent(),Ie.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Ft(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(Ie){const _t=this.form.get(Ie.path);return Cn(_t,Ie),_t.updateValueAndValidity({emitEvent:!1}),this.directives.push(Ie),_t}getControl(Ie){return this.form.get(Ie.path)}removeControl(Ie){Tt(Ie.control||null,Ie,!1),function yn(Qe,Ve){const Ie=Qe.indexOf(Ve);Ie>-1&&Qe.splice(Ie,1)}(this.directives,Ie)}addFormGroup(Ie){this._setUpFormContainer(Ie)}removeFormGroup(Ie){this._cleanUpFormContainer(Ie)}getFormGroup(Ie){return this.form.get(Ie.path)}addFormArray(Ie){this._setUpFormContainer(Ie)}removeFormArray(Ie){this._cleanUpFormContainer(Ie)}getFormArray(Ie){return this.form.get(Ie.path)}updateModel(Ie,_t){this.form.get(Ie.path).setValue(_t)}onSubmit(Ie){return this.submitted=!0,Pt(this.form,this.directives),this.ngSubmit.emit(Ie),!1}onReset(){this.resetForm()}resetForm(Ie){this.form.reset(Ie),this.submitted=!1}_updateDomValue(){this.directives.forEach(Ie=>{const _t=Ie.control,Jt=this.form.get(Ie.path);_t!==Jt&&(Tt(_t||null,Ie),(Qe=>Qe instanceof Ln)(Jt)&&(Cn(Jt,Ie),Ie.control=Jt))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(Ie){const _t=this.form.get(Ie.path);bt(_t,Ie),_t.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(Ie){if(this.form){const _t=this.form.get(Ie.path);_t&&function Lt(Qe,Ve){return Ft(Qe,Ve)}(_t,Ie)&&_t.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){wt(this.form,this),this._oldForm&&Ft(this._oldForm,this)}_checkFormPresent(){}}return Qe.\u0275fac=function(Ie){return new(Ie||Qe)(e.Y36(Te,10),e.Y36(pe,10))},Qe.\u0275dir=e.lG2({type:Qe,selectors:[["","formGroup",""]],hostBindings:function(Ie,_t){1&Ie&&e.NdJ("submit",function(_n){return _t.onSubmit(_n)})("reset",function(){return _t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[e._Bn([Zt]),e.qOj,e.TTD]}),Qe})();const Oi={provide:ye,useExisting:(0,e.Gpc)(()=>xi)};let xi=(()=>{class Qe extends ye{constructor(Ie,_t,Jt,_n,hi){super(),this._ngModelWarningConfig=hi,this._added=!1,this.update=new e.vpe,this._ngModelWarningSent=!1,this._parent=Ie,this._setValidators(_t),this._setAsyncValidators(Jt),this.valueAccessor=Xt(0,_n)}set isDisabled(Ie){}ngOnChanges(Ie){this._added||this._setUpControl(),We(Ie,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(Ie){this.viewModel=Ie,this.update.emit(Ie)}get path(){return on(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._added=!0}}return Qe._ngModelWarningSentOnce=!1,Qe.\u0275fac=function(Ie){return new(Ie||Qe)(e.Y36(Ae,13),e.Y36(Te,10),e.Y36(pe,10),e.Y36(v,10),e.Y36(en,8))},Qe.\u0275dir=e.lG2({type:Qe,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[e._Bn([Oi]),e.qOj,e.TTD]}),Qe})();const qi={provide:v,useExisting:(0,e.Gpc)(()=>$e),multi:!0};function lt(Qe,Ve){return null==Qe?`${Ve}`:(Ve&&"object"==typeof Ve&&(Ve="Object"),`${Qe}: ${Ve}`.slice(0,50))}let $e=(()=>{class Qe extends D{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(Ie){this._compareWith=Ie}writeValue(Ie){this.value=Ie;const Jt=lt(this._getOptionId(Ie),Ie);this.setProperty("value",Jt)}registerOnChange(Ie){this.onChange=_t=>{this.value=this._getOptionValue(_t),Ie(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(Ie){for(const _t of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(_t),Ie))return _t;return null}_getOptionValue(Ie){const _t=function Vt(Qe){return Qe.split(":")[0]}(Ie);return this._optionMap.has(_t)?this._optionMap.get(_t):Ie}}return Qe.\u0275fac=function(){let Ve;return function(_t){return(Ve||(Ve=e.n5z(Qe)))(_t||Qe)}}(),Qe.\u0275dir=e.lG2({type:Qe,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(Ie,_t){1&Ie&&e.NdJ("change",function(_n){return _t.onChange(_n.target.value)})("blur",function(){return _t.onTouched()})},inputs:{compareWith:"compareWith"},features:[e._Bn([qi]),e.qOj]}),Qe})(),yt=(()=>{class Qe{constructor(Ie,_t,Jt){this._element=Ie,this._renderer=_t,this._select=Jt,this._select&&(this.id=this._select._registerOption())}set ngValue(Ie){null!=this._select&&(this._select._optionMap.set(this.id,Ie),this._setElementValue(lt(this.id,Ie)),this._select.writeValue(this._select.value))}set value(Ie){this._setElementValue(Ie),this._select&&this._select.writeValue(this._select.value)}_setElementValue(Ie){this._renderer.setProperty(this._element.nativeElement,"value",Ie)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return Qe.\u0275fac=function(Ie){return new(Ie||Qe)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36($e,9))},Qe.\u0275dir=e.lG2({type:Qe,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),Qe})();const Wt={provide:v,useExisting:(0,e.Gpc)(()=>ri),multi:!0};function dn(Qe,Ve){return null==Qe?`${Ve}`:("string"==typeof Ve&&(Ve=`'${Ve}'`),Ve&&"object"==typeof Ve&&(Ve="Object"),`${Qe}: ${Ve}`.slice(0,50))}let ri=(()=>{class Qe extends D{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(Ie){this._compareWith=Ie}writeValue(Ie){let _t;if(this.value=Ie,Array.isArray(Ie)){const Jt=Ie.map(_n=>this._getOptionId(_n));_t=(_n,hi)=>{_n._setSelected(Jt.indexOf(hi.toString())>-1)}}else _t=(Jt,_n)=>{Jt._setSelected(!1)};this._optionMap.forEach(_t)}registerOnChange(Ie){this.onChange=_t=>{const Jt=[],_n=_t.selectedOptions;if(void 0!==_n){const hi=_n;for(let ii=0;ii{class Qe{constructor(Ie,_t,Jt){this._element=Ie,this._renderer=_t,this._select=Jt,this._select&&(this.id=this._select._registerOption(this))}set ngValue(Ie){null!=this._select&&(this._value=Ie,this._setElementValue(dn(this.id,Ie)),this._select.writeValue(this._select.value))}set value(Ie){this._select?(this._value=Ie,this._setElementValue(dn(this.id,Ie)),this._select.writeValue(this._select.value)):this._setElementValue(Ie)}_setElementValue(Ie){this._renderer.setProperty(this._element.nativeElement,"value",Ie)}_setSelected(Ie){this._renderer.setProperty(this._element.nativeElement,"selected",Ie)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return Qe.\u0275fac=function(Ie){return new(Ie||Qe)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(ri,9))},Qe.\u0275dir=e.lG2({type:Qe,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),Qe})(),ei=(()=>{class Qe{constructor(){this._validator=De}ngOnChanges(Ie){if(this.inputName in Ie){const _t=this.normalizeInput(Ie[this.inputName].currentValue);this._enabled=this.enabled(_t),this._validator=this._enabled?this.createValidator(_t):De,this._onChange&&this._onChange()}}validate(Ie){return this._validator(Ie)}registerOnValidatorChange(Ie){this._onChange=Ie}enabled(Ie){return null!=Ie}}return Qe.\u0275fac=function(Ie){return new(Ie||Qe)},Qe.\u0275dir=e.lG2({type:Qe,features:[e.TTD]}),Qe})();const Ua={provide:Te,useExisting:(0,e.Gpc)(()=>dr),multi:!0},zr={provide:Te,useExisting:(0,e.Gpc)(()=>gi),multi:!0};let dr=(()=>{class Qe extends ei{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=e.D6c,this.createValidator=Ie=>V}enabled(Ie){return Ie}}return Qe.\u0275fac=function(){let Ve;return function(_t){return(Ve||(Ve=e.n5z(Qe)))(_t||Qe)}}(),Qe.\u0275dir=e.lG2({type:Qe,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(Ie,_t){2&Ie&&e.uIk("required",_t._enabled?"":null)},inputs:{required:"required"},features:[e._Bn([Ua]),e.qOj]}),Qe})(),gi=(()=>{class Qe extends dr{constructor(){super(...arguments),this.createValidator=Ie=>ee}}return Qe.\u0275fac=function(){let Ve;return function(_t){return(Ve||(Ve=e.n5z(Qe)))(_t||Qe)}}(),Qe.\u0275dir=e.lG2({type:Qe,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(Ie,_t){2&Ie&&e.uIk("required",_t._enabled?"":null)},features:[e._Bn([zr]),e.qOj]}),Qe})();const zt={provide:Te,useExisting:(0,e.Gpc)(()=>vn),multi:!0};let vn=(()=>{class Qe extends ei{constructor(){super(...arguments),this.inputName="pattern",this.normalizeInput=Ie=>Ie,this.createValidator=Ie=>ve(Ie)}}return Qe.\u0275fac=function(){let Ve;return function(_t){return(Ve||(Ve=e.n5z(Qe)))(_t||Qe)}}(),Qe.\u0275dir=e.lG2({type:Qe,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(Ie,_t){2&Ie&&e.uIk("pattern",_t._enabled?_t.pattern:null)},inputs:{pattern:"pattern"},features:[e._Bn([zt]),e.qOj]}),Qe})(),Gn=(()=>{class Qe{}return Qe.\u0275fac=function(Ie){return new(Ie||Qe)},Qe.\u0275mod=e.oAB({type:Qe}),Qe.\u0275inj=e.cJS({imports:[kr]}),Qe})(),Ti=(()=>{class Qe{}return Qe.\u0275fac=function(Ie){return new(Ie||Qe)},Qe.\u0275mod=e.oAB({type:Qe}),Qe.\u0275inj=e.cJS({imports:[Gn]}),Qe})(),$n=(()=>{class Qe{static withConfig(Ie){return{ngModule:Qe,providers:[{provide:en,useValue:Ie.warnOnNgModelWithFormControl}]}}}return Qe.\u0275fac=function(Ie){return new(Ie||Qe)},Qe.\u0275mod=e.oAB({type:Qe}),Qe.\u0275inj=e.cJS({imports:[Gn]}),Qe})();class vi extends ke{constructor(Ve,Ie,_t){super(Pe(Ie),re(_t,Ie)),this.controls=Ve,this._initObservables(),this._setUpdateStrategy(Ie),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(Ve){return this.controls[this._adjustIndex(Ve)]}push(Ve,Ie={}){this.controls.push(Ve),this._registerControl(Ve),this.updateValueAndValidity({emitEvent:Ie.emitEvent}),this._onCollectionChange()}insert(Ve,Ie,_t={}){this.controls.splice(Ve,0,Ie),this._registerControl(Ie),this.updateValueAndValidity({emitEvent:_t.emitEvent})}removeAt(Ve,Ie={}){let _t=this._adjustIndex(Ve);_t<0&&(_t=0),this.controls[_t]&&this.controls[_t]._registerOnCollectionChange(()=>{}),this.controls.splice(_t,1),this.updateValueAndValidity({emitEvent:Ie.emitEvent})}setControl(Ve,Ie,_t={}){let Jt=this._adjustIndex(Ve);Jt<0&&(Jt=0),this.controls[Jt]&&this.controls[Jt]._registerOnCollectionChange(()=>{}),this.controls.splice(Jt,1),Ie&&(this.controls.splice(Jt,0,Ie),this._registerControl(Ie)),this.updateValueAndValidity({emitEvent:_t.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(Ve,Ie={}){Et(this,0,Ve),Ve.forEach((_t,Jt)=>{Ke(this,!1,Jt),this.at(Jt).setValue(_t,{onlySelf:!0,emitEvent:Ie.emitEvent})}),this.updateValueAndValidity(Ie)}patchValue(Ve,Ie={}){null!=Ve&&(Ve.forEach((_t,Jt)=>{this.at(Jt)&&this.at(Jt).patchValue(_t,{onlySelf:!0,emitEvent:Ie.emitEvent})}),this.updateValueAndValidity(Ie))}reset(Ve=[],Ie={}){this._forEachChild((_t,Jt)=>{_t.reset(Ve[Jt],{onlySelf:!0,emitEvent:Ie.emitEvent})}),this._updatePristine(Ie),this._updateTouched(Ie),this.updateValueAndValidity(Ie)}getRawValue(){return this.controls.map(Ve=>Ve.getRawValue())}clear(Ve={}){this.controls.length<1||(this._forEachChild(Ie=>Ie._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:Ve.emitEvent}))}_adjustIndex(Ve){return Ve<0?Ve+this.length:Ve}_syncPendingControls(){let Ve=this.controls.reduce((Ie,_t)=>!!_t._syncPendingControls()||Ie,!1);return Ve&&this.updateValueAndValidity({onlySelf:!0}),Ve}_forEachChild(Ve){this.controls.forEach((Ie,_t)=>{Ve(Ie,_t)})}_updateValue(){this.value=this.controls.filter(Ve=>Ve.enabled||this.disabled).map(Ve=>Ve.value)}_anyControls(Ve){return this.controls.some(Ie=>Ie.enabled&&Ve(Ie))}_setUpControls(){this._forEachChild(Ve=>this._registerControl(Ve))}_allControlsDisabled(){for(const Ve of this.controls)if(Ve.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(Ve){Ve.setParent(this),Ve._registerOnCollectionChange(this._onCollectionChange)}_find(Ve){var Ie;return null!==(Ie=this.at(Ve))&&void 0!==Ie?Ie:null}}function Ki(Qe){return!!Qe&&(void 0!==Qe.asyncValidators||void 0!==Qe.validators||void 0!==Qe.updateOn)}let ji=(()=>{class Qe{constructor(){this.useNonNullable=!1}get nonNullable(){const Ie=new Qe;return Ie.useNonNullable=!0,Ie}group(Ie,_t=null){const Jt=this._reduceControls(Ie);let _n={};return Ki(_t)?_n=_t:null!==_t&&(_n.validators=_t.validator,_n.asyncValidators=_t.asyncValidator),new at(Jt,_n)}control(Ie,_t,Jt){let _n={};return this.useNonNullable?(Ki(_t)?_n=_t:(_n.validators=_t,_n.asyncValidators=Jt),new Ln(Ie,{..._n,nonNullable:!0})):new Ln(Ie,_t,Jt)}array(Ie,_t,Jt){const _n=Ie.map(hi=>this._createControl(hi));return new vi(_n,_t,Jt)}_reduceControls(Ie){const _t={};return Object.keys(Ie).forEach(Jt=>{_t[Jt]=this._createControl(Ie[Jt])}),_t}_createControl(Ie){return Ie instanceof Ln||Ie instanceof ke?Ie:Array.isArray(Ie)?this.control(Ie[0],Ie.length>1?Ie[1]:null,Ie.length>2?Ie[2]:null):this.control(Ie)}}return Qe.\u0275fac=function(Ie){return new(Ie||Qe)},Qe.\u0275prov=e.Yz7({token:Qe,factory:Qe.\u0275fac,providedIn:$n}),Qe})(),Tr=(()=>{class Qe extends ji{group(Ie,_t=null){return super.group(Ie,_t)}control(Ie,_t,Jt){return super.control(Ie,_t,Jt)}array(Ie,_t,Jt){return super.array(Ie,_t,Jt)}}return Qe.\u0275fac=function(){let Ve;return function(_t){return(Ve||(Ve=e.n5z(Qe)))(_t||Qe)}}(),Qe.\u0275prov=e.Yz7({token:Qe,factory:Qe.\u0275fac,providedIn:$n}),Qe})()},47957:(Xe,ue,p)=>{"use strict";p.d(ue,{Bb:()=>vt,XC:()=>N,ZL:()=>tt});var e=p(12687),A=p(21281),C=p(83353),M=p(94650),m=p(3238),b=p(50727),D=p(77579),v=p(49770),R=p(56451),B=p(39646),w=p(54968),L=p(36895),O=p(98184),q=p(67376),te=p(40445),z=p(29521),ie=p(84080),Te=p(24006),pe=p(59549),Le=p(68675),T=p(63900),W=p(95698),F=p(39300),V=p(54004),ee=p(18505),Q=p(91005);const Ee=["panel"];function ge(X,nt){if(1&X&&(M.TgZ(0,"div",0,1),M.Hsn(2),M.qZA()),2&X){const Ae=nt.id,ye=M.oxw();M.Q6J("id",ye.id)("ngClass",ye._classList),M.uIk("aria-label",ye.ariaLabel||null)("aria-labelledby",ye._getPanelAriaLabelledby(Ae))}}const ve=["*"];let De=0;class he{constructor(nt,Ae){this.source=nt,this.option=Ae}}const Ye=(0,m.Kr)(class{}),Be=new M.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function se(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1}}});let le=(()=>{class X extends Ye{constructor(Ae,ye,_e,Se){super(),this._changeDetectorRef=Ae,this._elementRef=ye,this._activeOptionChanges=b.w0.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new M.vpe,this.opened=new M.vpe,this.closed=new M.vpe,this.optionActivated=new M.vpe,this._classList={},this.id="mat-autocomplete-"+De++,this.inertGroups=Se?.SAFARI||!1,this._autoActiveFirstOption=!!_e.autoActiveFirstOption,this._autoSelectActiveOption=!!_e.autoSelectActiveOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(Ae){this._autoActiveFirstOption=(0,A.Ig)(Ae)}get autoSelectActiveOption(){return this._autoSelectActiveOption}set autoSelectActiveOption(Ae){this._autoSelectActiveOption=(0,A.Ig)(Ae)}set classList(Ae){this._classList=Ae&&Ae.length?(0,A.du)(Ae).reduce((ye,_e)=>(ye[_e]=!0,ye),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new e.s1(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(Ae=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[Ae]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(Ae){this.panel&&(this.panel.nativeElement.scrollTop=Ae)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(Ae){const ye=new he(this,Ae);this.optionSelected.emit(ye)}_getPanelAriaLabelledby(Ae){return this.ariaLabel?null:this.ariaLabelledby?(Ae?Ae+" ":"")+this.ariaLabelledby:Ae}_setVisibilityClasses(Ae){Ae[this._visibleClass]=this.showPanel,Ae[this._hiddenClass]=!this.showPanel}}return X.\u0275fac=function(Ae){return new(Ae||X)(M.Y36(M.sBO),M.Y36(M.SBq),M.Y36(Be),M.Y36(C.t4))},X.\u0275dir=M.lG2({type:X,viewQuery:function(Ae,ye){if(1&Ae&&(M.Gf(M.Rgc,7),M.Gf(Ee,5)),2&Ae){let _e;M.iGM(_e=M.CRH())&&(ye.template=_e.first),M.iGM(_e=M.CRH())&&(ye.panel=_e.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",autoSelectActiveOption:"autoSelectActiveOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[M.qOj]}),X})(),N=(()=>{class X extends le{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return X.\u0275fac=function(){let nt;return function(ye){return(nt||(nt=M.n5z(X)))(ye||X)}}(),X.\u0275cmp=M.Xpm({type:X,selectors:[["mat-autocomplete"]],contentQueries:function(Ae,ye,_e){if(1&Ae&&(M.Suo(_e,m.K7,5),M.Suo(_e,m.ey,5)),2&Ae){let Se;M.iGM(Se=M.CRH())&&(ye.optionGroups=Se),M.iGM(Se=M.CRH())&&(ye.options=Se)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[M._Bn([{provide:m.HF,useExisting:X}]),M.qOj],ngContentSelectors:ve,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(Ae,ye){1&Ae&&(M.F$t(),M.YNc(0,ge,3,4,"ng-template"))},dependencies:[L.mk],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}"],encapsulation:2,changeDetection:0}),X})();const Z=new M.OlP("mat-autocomplete-scroll-strategy"),xe={provide:Z,deps:[O.aV],useFactory:function ce(X){return()=>X.scrollStrategies.reposition()}},ot={provide:Te.JU,useExisting:(0,M.Gpc)(()=>tt),multi:!0};let ut=(()=>{class X{constructor(Ae,ye,_e,Se,Ne,Ce,fe,r,u,_,E){this._element=Ae,this._overlay=ye,this._viewContainerRef=_e,this._zone=Se,this._changeDetectorRef=Ne,this._dir=fe,this._formField=r,this._document=u,this._viewportRuler=_,this._defaults=E,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=b.w0.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new D.x,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=(0,v.P)(()=>{const h=this.autocomplete?this.autocomplete.options:null;return h?h.changes.pipe((0,Le.O)(h),(0,T.w)(()=>(0,R.T)(...h.map(a=>a.onSelectionChange)))):this._zone.onStable.pipe((0,W.q)(1),(0,T.w)(()=>this.optionSelections))}),this._scrollStrategy=Ce}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(Ae){this._autocompleteDisabled=(0,A.Ig)(Ae)}ngAfterViewInit(){const Ae=this._getWindow();typeof Ae<"u"&&this._zone.runOutsideAngular(()=>Ae.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(Ae){Ae.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const Ae=this._getWindow();typeof Ae<"u"&&Ae.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._isOpen=this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return(0,R.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,F.h)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,F.h)(()=>this._overlayAttached)):(0,B.of)()).pipe((0,V.U)(Ae=>Ae instanceof m.rN?Ae:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,R.T)((0,w.R)(this._document,"click"),(0,w.R)(this._document,"auxclick"),(0,w.R)(this._document,"touchend")).pipe((0,F.h)(Ae=>{const ye=(0,C.sA)(Ae),_e=this._formField?this._formField._elementRef.nativeElement:null,Se=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&ye!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!_e||!_e.contains(ye))&&(!Se||!Se.contains(ye))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(ye)}))}writeValue(Ae){Promise.resolve(null).then(()=>this._assignOptionValue(Ae))}registerOnChange(Ae){this._onChange=Ae}registerOnTouched(Ae){this._onTouched=Ae}setDisabledState(Ae){this._element.nativeElement.disabled=Ae}_handleKeydown(Ae){const ye=Ae.keyCode,_e=(0,z.Vb)(Ae);if(ye===z.hY&&!_e&&Ae.preventDefault(),this.activeOption&&ye===z.K5&&this.panelOpen&&!_e)this.activeOption._selectViaInteraction(),this._resetActiveItem(),Ae.preventDefault();else if(this.autocomplete){const Se=this.autocomplete._keyManager.activeItem,Ne=ye===z.LH||ye===z.JH;ye===z.Mf||Ne&&!_e&&this.panelOpen?this.autocomplete._keyManager.onKeydown(Ae):Ne&&this._canOpen()&&this.openPanel(),(Ne||this.autocomplete._keyManager.activeItem!==Se)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._element.nativeElement.value),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(Ae){let ye=Ae.target,_e=ye.value;"number"===ye.type&&(_e=""==_e?null:parseFloat(_e)),this._previousValue!==_e&&(this._previousValue=_e,this._pendingAutoselectedOption=null,this._onChange(_e),this._canOpen()&&this._document.activeElement===Ae.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this.openPanel()}_floatLabel(Ae=!1){this._formField&&"auto"===this._formField.floatLabel&&(Ae?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const Ae=this._zone.onStable.pipe((0,W.q)(1)),ye=this.autocomplete.options.changes.pipe((0,ee.b)(()=>this._positionStrategy.reapplyLastPosition()),(0,Q.g)(0));return(0,R.T)(Ae,ye).pipe((0,T.w)(()=>(this._zone.run(()=>{const _e=this.panelOpen;this._resetActiveItem(),this.autocomplete._setVisibility(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),_e!==this.panelOpen&&(this.panelOpen?this.autocomplete.opened.emit():this.autocomplete.closed.emit())}),this.panelClosingActions)),(0,W.q)(1)).subscribe(_e=>this._setValueAndClose(_e))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_assignOptionValue(Ae){const ye=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(Ae):Ae;this._updateNativeInputValue(ye??"")}_updateNativeInputValue(Ae){this._formField?this._formField._control.value=Ae:this._element.nativeElement.value=Ae,this._previousValue=Ae}_setValueAndClose(Ae){const ye=Ae?Ae.source:this._pendingAutoselectedOption;ye&&(this._clearPreviousSelectedOption(ye),this._assignOptionValue(ye.value),this._onChange(ye.value),this.autocomplete._emitSelectEvent(ye),this._element.nativeElement.focus()),this.closePanel()}_clearPreviousSelectedOption(Ae){this.autocomplete.options.forEach(ye=>{ye!==Ae&&ye.selected&&ye.deselect()})}_attachOverlay(){let Ae=this._overlayRef;var ye;Ae?(this._positionStrategy.setOrigin(this._getConnectedElement()),Ae.updateSize({width:this._getPanelWidth()})):(this._portal=new ie.UE(this.autocomplete.template,this._viewContainerRef,{id:null===(ye=this._formField)||void 0===ye?void 0:ye.getLabelId()}),Ae=this._overlay.create(this._getOverlayConfig()),this._overlayRef=Ae,this._handleOverlayEvents(Ae),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&Ae&&Ae.updateSize({width:this._getPanelWidth()})})),Ae&&!Ae.hasAttached()&&(Ae.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const _e=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&_e!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){var Ae;return new O.X_({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(Ae=this._defaults)||void 0===Ae?void 0:Ae.overlayPanelClass})}_getOverlayPosition(){const Ae=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(Ae),this._positionStrategy=Ae,Ae}_setStrategyPositions(Ae){const ye=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],_e=this._aboveClass,Se=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:_e},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:_e}];let Ne;Ne="above"===this.position?Se:"below"===this.position?ye:[...ye,...Se],Ae.withPositions(Ne)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const Ae=this.autocomplete;Ae.autoActiveFirstOption?Ae._keyManager.setFirstItemActive():Ae._keyManager.setActiveItem(-1)}_canOpen(){const Ae=this._element.nativeElement;return!Ae.readOnly&&!Ae.disabled&&!this._autocompleteDisabled}_getWindow(){var Ae;return(null===(Ae=this._document)||void 0===Ae?void 0:Ae.defaultView)||window}_scrollToOption(Ae){const ye=this.autocomplete,_e=(0,m.CB)(Ae,ye.options,ye.optionGroups);if(0===Ae&&1===_e)ye._setScrollTop(0);else if(ye.panel){const Se=ye.options.toArray()[Ae];if(Se){const Ne=Se._getHostElement(),Ce=(0,m.jH)(Ne.offsetTop,Ne.offsetHeight,ye._getScrollTop(),ye.panel.nativeElement.offsetHeight);ye._setScrollTop(Ce)}}}_handleOverlayEvents(Ae){Ae.keydownEvents().subscribe(ye=>{var _e;(ye.keyCode===z.hY&&!(0,z.Vb)(ye)||ye.keyCode===z.LH&&(0,z.Vb)(ye,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(null!==(_e=this._valueBeforeAutoSelection)&&void 0!==_e?_e:""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),ye.stopPropagation(),ye.preventDefault())}),Ae.outsidePointerEvents().subscribe()}}return X.\u0275fac=function(Ae){return new(Ae||X)(M.Y36(M.SBq),M.Y36(O.aV),M.Y36(M.s_b),M.Y36(M.R0b),M.Y36(M.sBO),M.Y36(Z),M.Y36(te.Is,8),M.Y36(pe.G_,9),M.Y36(L.K0,8),M.Y36(q.rL),M.Y36(Be,8))},X.\u0275dir=M.lG2({type:X,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[M.TTD]}),X})(),tt=(()=>{class X extends ut{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return X.\u0275fac=function(){let nt;return function(ye){return(nt||(nt=M.n5z(X)))(ye||X)}}(),X.\u0275dir=M.lG2({type:X,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(Ae,ye){1&Ae&&M.NdJ("focusin",function(){return ye._handleFocus()})("blur",function(){return ye._onTouched()})("input",function(Se){return ye._handleInput(Se)})("keydown",function(Se){return ye._handleKeydown(Se)})("click",function(){return ye._handleClick()}),2&Ae&&M.uIk("autocomplete",ye.autocompleteAttribute)("role",ye.autocompleteDisabled?null:"combobox")("aria-autocomplete",ye.autocompleteDisabled?null:"list")("aria-activedescendant",ye.panelOpen&&ye.activeOption?ye.activeOption.id:null)("aria-expanded",ye.autocompleteDisabled?null:ye.panelOpen.toString())("aria-owns",ye.autocompleteDisabled||!ye.panelOpen||null==ye.autocomplete?null:ye.autocomplete.id)("aria-haspopup",ye.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[M._Bn([ot]),M.qOj]}),X})(),vt=(()=>{class X{}return X.\u0275fac=function(Ae){return new(Ae||X)},X.\u0275mod=M.oAB({type:X}),X.\u0275inj=M.cJS({providers:[xe],imports:[O.U8,m.Ng,m.BQ,L.ez,q.ZD,m.Ng,m.BQ]}),X})()},42673:(Xe,ue,p)=>{"use strict";p.d(ue,{g:()=>R,k:()=>v});var e=p(94650),A=p(3238),C=p(12687),M=p(21281);let m=0;const b=(0,A.Id)(class{}),D="mat-badge-content";let v=(()=>{class B extends b{constructor(L,O,q,te,z){super(),this._ngZone=L,this._elementRef=O,this._ariaDescriber=q,this._renderer=te,this._animationMode=z,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=m++,this._isInitialized=!1}get color(){return this._color}set color(L){this._setColor(L),this._color=L}get overlap(){return this._overlap}set overlap(L){this._overlap=(0,M.Ig)(L)}get content(){return this._content}set content(L){this._updateRenderedContent(L)}get description(){return this._description}set description(L){this._updateHostAriaDescription(L)}get hidden(){return this._hidden}set hidden(L){this._hidden=(0,M.Ig)(L)}isAbove(){return-1===this.position.indexOf("below")}isAfter(){return-1===this.position.indexOf("before")}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=!0}ngOnDestroy(){this._renderer.destroyNode&&this._renderer.destroyNode(this._badgeElement),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_createBadgeElement(){const L=this._renderer.createElement("span"),O="mat-badge-active";return L.setAttribute("id",`mat-badge-content-${this._id}`),L.setAttribute("aria-hidden","true"),L.classList.add(D),"NoopAnimations"===this._animationMode&&L.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(L),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{L.classList.add(O)})}):L.classList.add(O),L}_updateRenderedContent(L){const O=`${L??""}`.trim();this._isInitialized&&O&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=O),this._content=O}_updateHostAriaDescription(L){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),L&&this._ariaDescriber.describe(this._elementRef.nativeElement,L),this._description=L}_setColor(L){const O=this._elementRef.nativeElement.classList;O.remove(`mat-badge-${this._color}`),L&&O.add(`mat-badge-${L}`)}_clearExistingBadges(){const L=this._elementRef.nativeElement.querySelectorAll(`:scope > .${D}`);for(const O of Array.from(L))O!==this._badgeElement&&O.remove()}}return B.\u0275fac=function(L){return new(L||B)(e.Y36(e.R0b),e.Y36(e.SBq),e.Y36(C.$s),e.Y36(e.Qsj),e.Y36(e.QbO,8))},B.\u0275dir=e.lG2({type:B,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(L,O){2&L&&e.ekj("mat-badge-overlap",O.overlap)("mat-badge-above",O.isAbove())("mat-badge-below",!O.isAbove())("mat-badge-before",!O.isAfter())("mat-badge-after",O.isAfter())("mat-badge-small","small"===O.size)("mat-badge-medium","medium"===O.size)("mat-badge-large","large"===O.size)("mat-badge-hidden",O.hidden||!O.content)("mat-badge-disabled",O.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],position:["matBadgePosition","position"],content:["matBadge","content"],description:["matBadgeDescription","description"],size:["matBadgeSize","size"],hidden:["matBadgeHidden","hidden"]},features:[e.qOj]}),B})(),R=(()=>{class B{}return B.\u0275fac=function(L){return new(L||B)},B.\u0275mod=e.oAB({type:B}),B.\u0275inj=e.cJS({imports:[C.rt,A.BQ,A.BQ]}),B})()},4859:(Xe,ue,p)=>{"use strict";p.d(ue,{lW:()=>B,ot:()=>L});var e=p(94650),A=p(3238),C=p(12687);const M=["mat-button",""],m=["*"],v=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],R=(0,A.pj)((0,A.Id)((0,A.Kr)(class{constructor(O){this._elementRef=O}})));let B=(()=>{class O extends R{constructor(te,z,ie){super(te),this._focusMonitor=z,this._animationMode=ie,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const Te of v)this._hasHostAttributes(Te)&&this._getHostElement().classList.add(Te);te.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(te,z){te?this._focusMonitor.focusVia(this._getHostElement(),te,z):this._getHostElement().focus(z)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...te){return te.some(z=>this._getHostElement().hasAttribute(z))}}return O.\u0275fac=function(te){return new(te||O)(e.Y36(e.SBq),e.Y36(C.tE),e.Y36(e.QbO,8))},O.\u0275cmp=e.Xpm({type:O,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(te,z){if(1&te&&e.Gf(A.wG,5),2&te){let ie;e.iGM(ie=e.CRH())&&(z.ripple=ie.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(te,z){2&te&&(e.uIk("disabled",z.disabled||null),e.ekj("_mat-animation-noopable","NoopAnimations"===z._animationMode)("mat-button-disabled",z.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[e.qOj],attrs:M,ngContentSelectors:m,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(te,z){1&te&&(e.F$t(),e.TgZ(0,"span",0),e.Hsn(1),e.qZA(),e._UZ(2,"span",1)(3,"span",2)),2&te&&(e.xp6(2),e.ekj("mat-button-ripple-round",z.isRoundButton||z.isIconButton),e.Q6J("matRippleDisabled",z._isRippleDisabled())("matRippleCentered",z.isIconButton)("matRippleTrigger",z._getHostElement()))},dependencies:[A.wG],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.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;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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-fab._mat-animation-noopable{transition:none !important;animation:none !important}.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;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.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:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.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}"],encapsulation:2,changeDetection:0}),O})(),L=(()=>{class O{}return O.\u0275fac=function(te){return new(te||O)},O.\u0275mod=e.oAB({type:O}),O.\u0275inj=e.cJS({imports:[A.si,A.BQ,A.BQ]}),O})()},73546:(Xe,ue,p)=>{"use strict";p.d(ue,{$j:()=>w,QW:()=>F,a8:()=>Le,dk:()=>T,dn:()=>R,kc:()=>pe,n5:()=>B});var e=p(94650),A=p(3238);const C=["*",[["mat-card-footer"]]],M=["*","mat-card-footer"],m=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],b=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"];let R=(()=>{class V{}return V.\u0275fac=function(Q){return new(Q||V)},V.\u0275dir=e.lG2({type:V,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),V})(),B=(()=>{class V{}return V.\u0275fac=function(Q){return new(Q||V)},V.\u0275dir=e.lG2({type:V,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),V})(),w=(()=>{class V{}return V.\u0275fac=function(Q){return new(Q||V)},V.\u0275dir=e.lG2({type:V,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),V})(),pe=(()=>{class V{}return V.\u0275fac=function(Q){return new(Q||V)},V.\u0275dir=e.lG2({type:V,selectors:[["","mat-card-avatar",""],["","matCardAvatar",""]],hostAttrs:[1,"mat-card-avatar"]}),V})(),Le=(()=>{class V{constructor(Q){this._animationMode=Q}}return V.\u0275fac=function(Q){return new(Q||V)(e.Y36(e.QbO,8))},V.\u0275cmp=e.Xpm({type:V,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(Q,Ee){2&Q&&e.ekj("_mat-animation-noopable","NoopAnimations"===Ee._animationMode)},exportAs:["matCard"],ngContentSelectors:M,decls:2,vars:0,template:function(Q,Ee){1&Q&&(e.F$t(C),e.Hsn(0),e.Hsn(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-card._mat-animation-noopable{transition:none !important;animation:none !important}.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;display:block;overflow:hidden}.mat-card-image img{width:100%}.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:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-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}"],encapsulation:2,changeDetection:0}),V})(),T=(()=>{class V{}return V.\u0275fac=function(Q){return new(Q||V)},V.\u0275cmp=e.Xpm({type:V,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:b,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(Q,Ee){1&Q&&(e.F$t(m),e.Hsn(0),e.TgZ(1,"div",0),e.Hsn(2,1),e.qZA(),e.Hsn(3,2))},encapsulation:2,changeDetection:0}),V})(),F=(()=>{class V{}return V.\u0275fac=function(Q){return new(Q||V)},V.\u0275mod=e.oAB({type:V}),V.\u0275inj=e.cJS({imports:[A.BQ,A.BQ]}),V})()},56709:(Xe,ue,p)=>{"use strict";p.d(ue,{oG:()=>pe,p9:()=>F});var e=p(12687),A=p(21281),C=p(94650),M=p(24006),m=p(3238),b=p(49643);const D=["input"],v=["label"],R=function(V){return{enterDuration:V}},B=["*"],w=new C.OlP("mat-checkbox-default-options",{providedIn:"root",factory:L});function L(){return{color:"accent",clickAction:"check-indeterminate"}}let O=0;const q=L(),te={provide:M.JU,useExisting:(0,C.Gpc)(()=>pe),multi:!0};class z{}const ie=(0,m.sb)((0,m.pj)((0,m.Kr)((0,m.Id)(class{constructor(V){this._elementRef=V}}))));let Te=(()=>{class V extends ie{constructor(Q,Ee,ge,ve,De,he,Ye){super(Ee),this._changeDetectorRef=ge,this._ngZone=ve,this._animationMode=he,this._options=Ye,this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new C.vpe,this.indeterminateChange=new C.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||q,this.color=this.defaultColor=this._options.color||q.color,this.tabIndex=parseInt(De)||0,this.id=this._uniqueId=`${Q}${++O}`}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(Q){this._required=(0,A.Ig)(Q)}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(Q){const Ee=(0,A.Ig)(Q);Ee!=this.checked&&(this._checked=Ee,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(Q){const Ee=(0,A.Ig)(Q);Ee!==this.disabled&&(this._disabled=Ee,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(Q){const Ee=Q!=this._indeterminate;this._indeterminate=(0,A.Ig)(Q),Ee&&(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(Q){this.checked=!!Q}registerOnChange(Q){this._controlValueAccessorChangeFn=Q}registerOnTouched(Q){this._onTouched=Q}setDisabledState(Q){this.disabled=Q}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(Q){let Ee=this._currentCheckState,ge=this._getAnimationTargetElement();if(Ee!==Q&&ge&&(this._currentAnimationClass&&ge.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(Ee,Q),this._currentCheckState=Q,this._currentAnimationClass.length>0)){ge.classList.add(this._currentAnimationClass);const ve=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{ge.classList.remove(ve)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){var Q;const Ee=null===(Q=this._options)||void 0===Q?void 0:Q.clickAction;this.disabled||"noop"===Ee?!this.disabled&&"noop"===Ee&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==Ee&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}_onInteractionEvent(Q){Q.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(Q,Ee){if("NoopAnimations"===this._animationMode)return"";switch(Q){case 0:if(1===Ee)return this._animationClasses.uncheckedToChecked;if(3==Ee)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===Ee?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===Ee?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===Ee?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(Q){const Ee=this._inputElement;Ee&&(Ee.nativeElement.indeterminate=Q)}}return V.\u0275fac=function(Q){C.$Z()},V.\u0275dir=C.lG2({type:V,viewQuery:function(Q,Ee){if(1&Q&&(C.Gf(D,5),C.Gf(v,5),C.Gf(m.wG,5)),2&Q){let ge;C.iGM(ge=C.CRH())&&(Ee._inputElement=ge.first),C.iGM(ge=C.CRH())&&(Ee._labelElement=ge.first),C.iGM(ge=C.CRH())&&(Ee.ripple=ge.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},features:[C.qOj]}),V})(),pe=(()=>{class V extends Te{constructor(Q,Ee,ge,ve,De,he,Ye){super("mat-checkbox-",Q,Ee,ve,De,he,Ye),this._focusMonitor=ge,this._animationClasses={uncheckedToChecked:"mat-checkbox-anim-unchecked-checked",uncheckedToIndeterminate:"mat-checkbox-anim-unchecked-indeterminate",checkedToUnchecked:"mat-checkbox-anim-checked-unchecked",checkedToIndeterminate:"mat-checkbox-anim-checked-indeterminate",indeterminateToChecked:"mat-checkbox-anim-indeterminate-checked",indeterminateToUnchecked:"mat-checkbox-anim-indeterminate-unchecked"}}_createChangeEvent(Q){const Ee=new z;return Ee.source=this,Ee.checked=Q,Ee}_getAnimationTargetElement(){return this._elementRef.nativeElement}ngAfterViewInit(){super.ngAfterViewInit(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(Q=>{Q||this._onBlur()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onInputClick(Q){Q.stopPropagation(),super._handleInputClick()}focus(Q,Ee){Q?this._focusMonitor.focusVia(this._inputElement,Q,Ee):this._inputElement.nativeElement.focus(Ee)}}return V.\u0275fac=function(Q){return new(Q||V)(C.Y36(C.SBq),C.Y36(C.sBO),C.Y36(e.tE),C.Y36(C.R0b),C.$8M("tabindex"),C.Y36(C.QbO,8),C.Y36(w,8))},V.\u0275cmp=C.Xpm({type:V,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(Q,Ee){2&Q&&(C.Ikx("id",Ee.id),C.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null),C.ekj("mat-checkbox-indeterminate",Ee.indeterminate)("mat-checkbox-checked",Ee.checked)("mat-checkbox-disabled",Ee.disabled)("mat-checkbox-label-before","before"==Ee.labelPosition)("_mat-animation-noopable","NoopAnimations"===Ee._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[C._Bn([te]),C.qOj],ngContentSelectors:B,decls:17,vars:21,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","aria-hidden","true",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(Q,Ee){if(1&Q&&(C.F$t(),C.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),C.NdJ("change",function(ve){return Ee._onInteractionEvent(ve)})("click",function(ve){return Ee._onInputClick(ve)}),C.qZA(),C.TgZ(5,"span",5),C._UZ(6,"span",6),C.qZA(),C._UZ(7,"span",7),C.TgZ(8,"span",8),C.O4$(),C.TgZ(9,"svg",9),C._UZ(10,"path",10),C.qZA(),C.kcU(),C._UZ(11,"span",11),C.qZA()(),C.TgZ(12,"span",12,13),C.NdJ("cdkObserveContent",function(){return Ee._onLabelTextChange()}),C.TgZ(14,"span",14),C._uU(15,"\xa0"),C.qZA(),C.Hsn(16),C.qZA()()),2&Q){const ge=C.MAs(1),ve=C.MAs(13);C.uIk("for",Ee.inputId),C.xp6(2),C.ekj("mat-checkbox-inner-container-no-side-margin",!ve.textContent||!ve.textContent.trim()),C.xp6(1),C.Q6J("id",Ee.inputId)("required",Ee.required)("checked",Ee.checked)("disabled",Ee.disabled)("tabIndex",Ee.tabIndex),C.uIk("value",Ee.value)("name",Ee.name)("aria-label",Ee.ariaLabel||null)("aria-labelledby",Ee.ariaLabelledby)("aria-checked",Ee._getAriaChecked())("aria-describedby",Ee.ariaDescribedby),C.xp6(2),C.Q6J("matRippleTrigger",ge)("matRippleDisabled",Ee._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",C.VKq(19,R,"NoopAnimations"===Ee._animationMode?0:150))}},dependencies:[m.wG,b.wD],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:rgba(0,0,0,0);position:relative}.mat-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.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}.mat-checkbox-layout{-webkit-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;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:rgba(0,0,0,0);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}.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);-webkit-print-color-adjust:exact;color-adjust:exact}._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:rgba(0,0,0,0)}.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-input:focus~.mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),V})(),W=(()=>{class V{}return V.\u0275fac=function(Q){return new(Q||V)},V.\u0275mod=C.oAB({type:V}),V.\u0275inj=C.cJS({}),V})(),F=(()=>{class V{}return V.\u0275fac=function(Q){return new(Q||V)},V.\u0275mod=C.oAB({type:V}),V.\u0275inj=C.cJS({imports:[m.si,m.BQ,b.Q8,W,m.BQ,W]}),V})()},77331:(Xe,ue,p)=>{"use strict";p.d(ue,{HS:()=>Q,Hi:()=>N,oH:()=>se,qn:()=>Ye});var e=p(29521),A=p(94650),C=p(3238),M=p(21281),m=p(83353),b=p(36895),D=p(77579),v=p(56451),R=p(95698),B=p(82722),w=p(68675),L=p(12687),O=p(40445),q=p(95017),te=p(24006),z=p(59549);const ie=["*"],pe=new A.OlP("MatChipRemove"),Le=new A.OlP("MatChipAvatar"),T=new A.OlP("MatChipTrailingIcon");class W{constructor(be){this._elementRef=be}}const F=(0,C.sb)((0,C.pj)((0,C.Kr)(W),"primary"),-1);let Q=(()=>{class k extends F{constructor(Z,ce,xe,ot,Fe,ut,tt,vt){super(Z),this._ngZone=ce,this._changeDetectorRef=Fe,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListDisabled=!1,this.role="option",this._selected=!1,this._selectable=!0,this._disabled=!1,this._removable=!0,this._onFocus=new D.x,this._onBlur=new D.x,this.selectionChange=new A.vpe,this.destroyed=new A.vpe,this.removed=new A.vpe,this._addHostClassName(),this._chipRippleTarget=ut.createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new C.IR(this,ce,this._chipRippleTarget,xe),this._chipRipple.setupTriggerEvents(Z),this.rippleConfig=ot||{},this._animationsDisabled="NoopAnimations"===tt,this.tabIndex=null!=vt&&parseInt(vt)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(Z){const ce=(0,M.Ig)(Z);ce!==this._selected&&(this._selected=ce,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(Z){this._value=Z}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(Z){this._selectable=(0,M.Ig)(Z)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(Z){this._disabled=(0,M.Ig)(Z)}get removable(){return this._removable}set removable(Z){this._removable=(0,M.Ig)(Z)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}_addHostClassName(){const Z="mat-basic-chip",ce=this._elementRef.nativeElement;ce.hasAttribute(Z)||ce.tagName.toLowerCase()===Z?ce.classList.add(Z):ce.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(Z=!1){return this._selected=!this.selected,this._dispatchSelectionChange(Z),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(Z){this.disabled&&Z.preventDefault()}_handleKeydown(Z){if(!this.disabled)switch(Z.keyCode){case e.yY:case e.ZH:this.remove(),Z.preventDefault();break;case e.L_:this.selectable&&this.toggleSelected(!0),Z.preventDefault()}}_blur(){this._ngZone.onStable.pipe((0,R.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(Z=!1){this.selectionChange.emit({source:this,isUserInput:Z,selected:this._selected})}}return k.\u0275fac=function(Z){return new(Z||k)(A.Y36(A.SBq),A.Y36(A.R0b),A.Y36(m.t4),A.Y36(C.Y2,8),A.Y36(A.sBO),A.Y36(b.K0),A.Y36(A.QbO,8),A.$8M("tabindex"))},k.\u0275dir=A.lG2({type:k,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(Z,ce,xe){if(1&Z&&(A.Suo(xe,Le,5),A.Suo(xe,T,5),A.Suo(xe,pe,5)),2&Z){let ot;A.iGM(ot=A.CRH())&&(ce.avatar=ot.first),A.iGM(ot=A.CRH())&&(ce.trailingIcon=ot.first),A.iGM(ot=A.CRH())&&(ce.removeIcon=ot.first)}},hostAttrs:[1,"mat-chip","mat-focus-indicator"],hostVars:15,hostBindings:function(Z,ce){1&Z&&A.NdJ("click",function(ot){return ce._handleClick(ot)})("keydown",function(ot){return ce._handleKeydown(ot)})("focus",function(){return ce.focus()})("blur",function(){return ce._blur()}),2&Z&&(A.uIk("tabindex",ce.disabled?null:ce.tabIndex)("role",ce.role)("disabled",ce.disabled||null)("aria-disabled",ce.disabled.toString())("aria-selected",ce.ariaSelected),A.ekj("mat-chip-selected",ce.selected)("mat-chip-with-avatar",ce.avatar)("mat-chip-with-trailing-icon",ce.trailingIcon||ce.removeIcon)("mat-chip-disabled",ce.disabled)("_mat-animation-noopable",ce._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",role:"role",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[A.qOj]}),k})();const ge=new A.OlP("mat-chips-default-options"),ve=(0,C.FD)(class{constructor(k,be,Z,ce){this._defaultErrorStateMatcher=k,this._parentForm=be,this._parentFormGroup=Z,this.ngControl=ce,this.stateChanges=new D.x}});let De=0;class he{constructor(be,Z){this.source=be,this.value=Z}}let Ye=(()=>{class k extends ve{constructor(Z,ce,xe,ot,Fe,ut,tt){super(ut,ot,Fe,tt),this._elementRef=Z,this._changeDetectorRef=ce,this._dir=xe,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new D.x,this._uid="mat-chip-list-"+De++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(vt,X)=>vt===X,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new A.vpe,this.valueChange=new A.vpe,this.ngControl&&(this.ngControl.valueAccessor=this)}get selected(){var Z,ce;return this.multiple?(null===(Z=this._selectionModel)||void 0===Z?void 0:Z.selected)||[]:null===(ce=this._selectionModel)||void 0===ce?void 0:ce.selected[0]}get role(){return this._explicitRole?this._explicitRole:this.empty?null:"listbox"}set role(Z){this._explicitRole=Z}get multiple(){return this._multiple}set multiple(Z){this._multiple=(0,M.Ig)(Z),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(Z){this._compareWith=Z,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(Z){this.writeValue(Z),this._value=Z}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){var Z,ce,xe,ot;return null!==(Z=null!==(ce=this._required)&&void 0!==ce?ce:null===(xe=this.ngControl)||void 0===xe||null===(ot=xe.control)||void 0===ot?void 0:ot.hasValidator(te.kI.required))&&void 0!==Z&&Z}set required(Z){this._required=(0,M.Ig)(Z),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(Z){this._placeholder=Z,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(Z){this._disabled=(0,M.Ig)(Z),this._syncChipsState()}get selectable(){return this._selectable}set selectable(Z){this._selectable=(0,M.Ig)(Z),this.chips&&this.chips.forEach(ce=>ce.chipListSelectable=this._selectable)}set tabIndex(Z){this._userTabIndex=Z,this._tabIndex=Z}get chipSelectionChanges(){return(0,v.T)(...this.chips.map(Z=>Z.selectionChange))}get chipFocusChanges(){return(0,v.T)(...this.chips.map(Z=>Z._onFocus))}get chipBlurChanges(){return(0,v.T)(...this.chips.map(Z=>Z._onBlur))}get chipRemoveChanges(){return(0,v.T)(...this.chips.map(Z=>Z.destroyed))}ngAfterContentInit(){this._keyManager=new L.Em(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe((0,B.R)(this._destroyed)).subscribe(Z=>this._keyManager.withHorizontalOrientation(Z)),this._keyManager.tabOut.pipe((0,B.R)(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe((0,w.O)(null),(0,B.R)(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 q.Ov(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(Z){this._chipInput=Z,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",Z.id)}setDescribedByIds(Z){Z.length?this._elementRef.nativeElement.setAttribute("aria-describedby",Z.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}writeValue(Z){this.chips&&this._setSelectionByValue(Z,!1)}registerOnChange(Z){this._onChange=Z}registerOnTouched(Z){this._onTouched=Z}setDisabledState(Z){this.disabled=Z,this.stateChanges.next()}onContainerClick(Z){this._originatesFromChip(Z)||this.focus()}focus(Z){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(Z),this.stateChanges.next()))}_focusInput(Z){this._chipInput&&this._chipInput.focus(Z)}_keydown(Z){const ce=Z.target;ce&&ce.classList.contains("mat-chip")&&(this._keyManager.onKeydown(Z),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const Z=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(Z)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(Z){return Z>=0&&Zxe.deselect()),Array.isArray(Z))Z.forEach(xe=>this._selectValue(xe,ce)),this._sortValues();else{const xe=this._selectValue(Z,ce);xe&&ce&&this._keyManager.setActiveItem(xe)}}_selectValue(Z,ce=!0){const xe=this.chips.find(ot=>null!=ot.value&&this._compareWith(ot.value,Z));return xe&&(ce?xe.selectViaInteraction():xe.select(),this._selectionModel.select(xe)),xe}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(Z){this._selectionModel.clear(),this.chips.forEach(ce=>{ce!==Z&&ce.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(Z=>{Z.selected&&this._selectionModel.select(Z)}),this.stateChanges.next())}_propagateChanges(Z){let ce=null;ce=Array.isArray(this.selected)?this.selected.map(xe=>xe.value):this.selected?this.selected.value:Z,this._value=ce,this.change.emit(new he(this,ce)),this.valueChange.emit(ce),this._onChange(ce),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(Z=>{Z.source.selected?this._selectionModel.select(Z.source):this._selectionModel.deselect(Z.source),this.multiple||this.chips.forEach(ce=>{!this._selectionModel.isSelected(ce)&&ce.selected&&ce.deselect()}),Z.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(Z=>{let ce=this.chips.toArray().indexOf(Z.chip);this._isValidIndex(ce)&&this._keyManager.updateActiveItem(ce),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(Z=>{const ce=Z.chip,xe=this.chips.toArray().indexOf(Z.chip);this._isValidIndex(xe)&&ce._hasFocus&&(this._lastDestroyedChipIndex=xe)})}_originatesFromChip(Z){let ce=Z.target;for(;ce&&ce!==this._elementRef.nativeElement;){if(ce.classList.contains("mat-chip"))return!0;ce=ce.parentElement}return!1}_hasFocusedChip(){return this.chips&&this.chips.some(Z=>Z._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(Z=>{Z._chipListDisabled=this._disabled,Z._chipListMultiple=this.multiple})}}return k.\u0275fac=function(Z){return new(Z||k)(A.Y36(A.SBq),A.Y36(A.sBO),A.Y36(O.Is,8),A.Y36(te.F,8),A.Y36(te.sg,8),A.Y36(C.rD),A.Y36(te.a5,10))},k.\u0275cmp=A.Xpm({type:k,selectors:[["mat-chip-list"]],contentQueries:function(Z,ce,xe){if(1&Z&&A.Suo(xe,Q,5),2&Z){let ot;A.iGM(ot=A.CRH())&&(ce.chips=ot)}},hostAttrs:[1,"mat-chip-list"],hostVars:14,hostBindings:function(Z,ce){1&Z&&A.NdJ("focus",function(){return ce.focus()})("blur",function(){return ce._blur()})("keydown",function(ot){return ce._keydown(ot)}),2&Z&&(A.Ikx("id",ce._uid),A.uIk("tabindex",ce.disabled?null:ce._tabIndex)("aria-required",ce.role?ce.required:null)("aria-disabled",ce.disabled.toString())("aria-invalid",ce.errorState)("aria-multiselectable",ce.multiple)("role",ce.role)("aria-orientation",ce.ariaOrientation),A.ekj("mat-chip-list-disabled",ce.disabled)("mat-chip-list-invalid",ce.errorState)("mat-chip-list-required",ce.required))},inputs:{role:"role",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],errorStateMatcher:"errorStateMatcher",multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",ariaOrientation:["aria-orientation","ariaOrientation"],selectable:"selectable",tabIndex:"tabIndex"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[A._Bn([{provide:z.Eo,useExisting:k}]),A.qOj],ngContentSelectors:ie,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(Z,ce){1&Z&&(A.F$t(),A.TgZ(0,"div",0),A.Hsn(1),A.qZA())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-chip::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.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-standard-chip._mat-animation-noopable{transition:none !important;animation:none !important}.mat-standard-chip .mat-chip-remove{border:none;-webkit-appearance:none;-moz-appearance:none;padding:0;background:none}.mat-standard-chip .mat-chip-remove.mat-icon,.mat-standard-chip .mat-chip-remove .mat-icon{width:18px;height:18px;font-size: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.mat-chip-selected{outline-width:3px}.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;transform:translateZ(0)}.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}'],encapsulation:2,changeDetection:0}),k})(),Be=0,se=(()=>{class k{constructor(Z,ce){this._elementRef=Z,this._defaultOptions=ce,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new A.vpe,this.placeholder="",this.id="mat-chip-list-input-"+Be++,this._disabled=!1,this.inputElement=this._elementRef.nativeElement}set chipList(Z){Z&&(this._chipList=Z,this._chipList.registerInput(this))}get addOnBlur(){return this._addOnBlur}set addOnBlur(Z){this._addOnBlur=(0,M.Ig)(Z)}get disabled(){return this._disabled||this._chipList&&this._chipList.disabled}set disabled(Z){this._disabled=(0,M.Ig)(Z)}get empty(){return!this.inputElement.value}ngOnChanges(){this._chipList.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}ngAfterContentInit(){this._focusLastChipOnBackspace=this.empty}_keydown(Z){if(Z){if(Z.keyCode===e.Mf&&!(0,e.Vb)(Z,"shiftKey")&&this._chipList._allowFocusEscape(),Z.keyCode===e.ZH&&this._focusLastChipOnBackspace)return this._chipList._keyManager.setLastItemActive(),void Z.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(Z)}_keyup(Z){!this._focusLastChipOnBackspace&&Z.keyCode===e.ZH&&this.empty&&(this._focusLastChipOnBackspace=!0,Z.preventDefault())}_blur(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipList.focused||this._chipList._blur(),this._chipList.stateChanges.next()}_focus(){this.focused=!0,this._focusLastChipOnBackspace=this.empty,this._chipList.stateChanges.next()}_emitChipEnd(Z){!this.inputElement.value&&!!Z&&this._chipList._keydown(Z),(!Z||this._isSeparatorKey(Z))&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),Z?.preventDefault())}_onInput(){this._chipList.stateChanges.next()}focus(Z){this.inputElement.focus(Z)}clear(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}_isSeparatorKey(Z){return!(0,e.Vb)(Z)&&new Set(this.separatorKeyCodes).has(Z.keyCode)}}return k.\u0275fac=function(Z){return new(Z||k)(A.Y36(A.SBq),A.Y36(ge))},k.\u0275dir=A.lG2({type:k,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(Z,ce){1&Z&&A.NdJ("keydown",function(ot){return ce._keydown(ot)})("keyup",function(ot){return ce._keyup(ot)})("blur",function(){return ce._blur()})("focus",function(){return ce._focus()})("input",function(){return ce._onInput()}),2&Z&&(A.Ikx("id",ce.id),A.uIk("disabled",ce.disabled||null)("placeholder",ce.placeholder||null)("aria-invalid",ce._chipList&&ce._chipList.ngControl?ce._chipList.ngControl.invalid:null)("aria-required",ce._chipList&&ce._chipList.required||null))},inputs:{chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[A.TTD]}),k})(),N=(()=>{class k{}return k.\u0275fac=function(Z){return new(Z||k)},k.\u0275mod=A.oAB({type:k}),k.\u0275inj=A.cJS({providers:[C.rD,{provide:ge,useValue:{separatorKeyCodes:[e.K5]}}],imports:[C.BQ]}),k})()},3238:(Xe,ue,p)=>{"use strict";p.d(ue,{yN:()=>Te,mZ:()=>pe,_A:()=>se,rD:()=>Fe,sG:()=>le,K7:()=>o,HF:()=>a,Y2:()=>r,BQ:()=>W,X2:()=>ut,uc:()=>X,XK:()=>xe,ey:()=>S,Ng:()=>ze,rN:()=>d,nP:()=>E,us:()=>h,wG:()=>u,si:()=>_,LF:()=>be,IR:()=>Ce,CB:()=>J,jH:()=>ht,pj:()=>Ee,Kr:()=>ge,Id:()=>Q,FD:()=>De,dB:()=>he,sb:()=>ve,E0:()=>tt});var e=p(94650),A=p(12687),C=p(40445),m=p(36895),b=p(83353),D=p(21281),v=p(69751),R=p(77579),B=p(68675),w=p(29521);function q(et,ne){if(1&et&&e._UZ(0,"mat-pseudo-checkbox",4),2&et){const Ue=e.oxw();e.Q6J("state",Ue.selected?"checked":"unchecked")("disabled",Ue.disabled)}}function te(et,ne){if(1&et&&(e.TgZ(0,"span",5),e._uU(1),e.qZA()),2&et){const Ue=e.oxw();e.xp6(1),e.hij("(",Ue.group.label,")")}}const z=["*"];let Te=(()=>{class et{}return et.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",et.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",et.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",et.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",et})(),pe=(()=>{class et{}return et.COMPLEX="375ms",et.ENTERING="225ms",et.EXITING="195ms",et})();const T=new e.OlP("mat-sanity-checks",{providedIn:"root",factory:function Le(){return!0}});let W=(()=>{class et{constructor(Ue,He,Pe){this._sanityChecks=He,this._document=Pe,this._hasDoneGlobalChecks=!1,Ue._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(Ue){return!(0,b.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[Ue])}}return et.\u0275fac=function(Ue){return new(Ue||et)(e.LFG(A.qm),e.LFG(T,8),e.LFG(m.K0))},et.\u0275mod=e.oAB({type:et}),et.\u0275inj=e.cJS({imports:[C.vT,C.vT]}),et})();function Q(et){return class extends et{constructor(...ne){super(...ne),this._disabled=!1}get disabled(){return this._disabled}set disabled(ne){this._disabled=(0,D.Ig)(ne)}}}function Ee(et,ne){return class extends et{constructor(...Ue){super(...Ue),this.defaultColor=ne,this.color=ne}get color(){return this._color}set color(Ue){const He=Ue||this.defaultColor;He!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),He&&this._elementRef.nativeElement.classList.add(`mat-${He}`),this._color=He)}}}function ge(et){return class extends et{constructor(...ne){super(...ne),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(ne){this._disableRipple=(0,D.Ig)(ne)}}}function ve(et,ne=0){return class extends et{constructor(...Ue){super(...Ue),this._tabIndex=ne,this.defaultTabIndex=ne}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(Ue){this._tabIndex=null!=Ue?(0,D.su)(Ue):this.defaultTabIndex}}}function De(et){return class extends et{constructor(...ne){super(...ne),this.errorState=!1}updateErrorState(){const ne=this.errorState,Re=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);Re!==ne&&(this.errorState=Re,this.stateChanges.next())}}}function he(et){return class extends et{constructor(...ne){super(...ne),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new v.y(Ue=>{this._isInitialized?this._notifySubscriber(Ue):this._pendingSubscribers.push(Ue)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(ne){ne.next(),ne.complete()}}}const Ye=new e.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function Be(){return(0,e.f3M)(e.soG)}});class se{constructor(){this._localeChanges=new R.x,this.localeChanges=this._localeChanges}getValidDateOrNull(ne){return this.isDateInstance(ne)&&this.isValid(ne)?ne:null}deserialize(ne){return null==ne||this.isDateInstance(ne)&&this.isValid(ne)?ne:this.invalid()}setLocale(ne){this.locale=ne,this._localeChanges.next()}compareDate(ne,Ue){return this.getYear(ne)-this.getYear(Ue)||this.getMonth(ne)-this.getMonth(Ue)||this.getDate(ne)-this.getDate(Ue)}sameDate(ne,Ue){if(ne&&Ue){let He=this.isValid(ne),Pe=this.isValid(Ue);return He&&Pe?!this.compareDate(ne,Ue):He==Pe}return ne==Ue}clampDate(ne,Ue,He){return Ue&&this.compareDate(ne,Ue)<0?Ue:He&&this.compareDate(ne,He)>0?He:ne}}const le=new e.OlP("mat-date-formats"),N=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function k(et,ne){const Ue=Array(et);for(let He=0;He{class et extends se{constructor(Ue,He){super(),this.useUtcForDisplay=!1,super.setLocale(Ue)}getYear(Ue){return Ue.getFullYear()}getMonth(Ue){return Ue.getMonth()}getDate(Ue){return Ue.getDate()}getDayOfWeek(Ue){return Ue.getDay()}getMonthNames(Ue){const He=new Intl.DateTimeFormat(this.locale,{month:Ue,timeZone:"utc"});return k(12,Pe=>this._format(He,new Date(2017,Pe,1)))}getDateNames(){const Ue=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return k(31,He=>this._format(Ue,new Date(2017,0,He+1)))}getDayOfWeekNames(Ue){const He=new Intl.DateTimeFormat(this.locale,{weekday:Ue,timeZone:"utc"});return k(7,Pe=>this._format(He,new Date(2017,0,Pe+1)))}getYearName(Ue){const He=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(He,Ue)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(Ue){return this.getDate(this._createDateWithOverflow(this.getYear(Ue),this.getMonth(Ue)+1,0))}clone(Ue){return new Date(Ue.getTime())}createDate(Ue,He,Pe){let Re=this._createDateWithOverflow(Ue,He,Pe);return Re.getMonth(),Re}today(){return new Date}parse(Ue,He){return"number"==typeof Ue?new Date(Ue):Ue?new Date(Date.parse(Ue)):null}format(Ue,He){if(!this.isValid(Ue))throw Error("NativeDateAdapter: Cannot format invalid date.");const Pe=new Intl.DateTimeFormat(this.locale,{...He,timeZone:"utc"});return this._format(Pe,Ue)}addCalendarYears(Ue,He){return this.addCalendarMonths(Ue,12*He)}addCalendarMonths(Ue,He){let Pe=this._createDateWithOverflow(this.getYear(Ue),this.getMonth(Ue)+He,this.getDate(Ue));return this.getMonth(Pe)!=((this.getMonth(Ue)+He)%12+12)%12&&(Pe=this._createDateWithOverflow(this.getYear(Pe),this.getMonth(Pe),0)),Pe}addCalendarDays(Ue,He){return this._createDateWithOverflow(this.getYear(Ue),this.getMonth(Ue),this.getDate(Ue)+He)}toIso8601(Ue){return[Ue.getUTCFullYear(),this._2digit(Ue.getUTCMonth()+1),this._2digit(Ue.getUTCDate())].join("-")}deserialize(Ue){if("string"==typeof Ue){if(!Ue)return null;if(N.test(Ue)){let He=new Date(Ue);if(this.isValid(He))return He}}return super.deserialize(Ue)}isDateInstance(Ue){return Ue instanceof Date}isValid(Ue){return!isNaN(Ue.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(Ue,He,Pe){const Re=new Date;return Re.setFullYear(Ue,He,Pe),Re.setHours(0,0,0,0),Re}_2digit(Ue){return("00"+Ue).slice(-2)}_format(Ue,He){const Pe=new Date;return Pe.setUTCFullYear(He.getFullYear(),He.getMonth(),He.getDate()),Pe.setUTCHours(He.getHours(),He.getMinutes(),He.getSeconds(),He.getMilliseconds()),Ue.format(Pe)}}return et.\u0275fac=function(Ue){return new(Ue||et)(e.LFG(Ye,8),e.LFG(b.t4))},et.\u0275prov=e.Yz7({token:et,factory:et.\u0275fac}),et})();const Z={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 ce=(()=>{class et{}return et.\u0275fac=function(Ue){return new(Ue||et)},et.\u0275mod=e.oAB({type:et}),et.\u0275inj=e.cJS({providers:[{provide:se,useClass:be}]}),et})(),xe=(()=>{class et{}return et.\u0275fac=function(Ue){return new(Ue||et)},et.\u0275mod=e.oAB({type:et}),et.\u0275inj=e.cJS({providers:[{provide:le,useValue:Z}],imports:[ce]}),et})(),Fe=(()=>{class et{isErrorState(Ue,He){return!!(Ue&&Ue.invalid&&(Ue.touched||He&&He.submitted))}}return et.\u0275fac=function(Ue){return new(Ue||et)},et.\u0275prov=e.Yz7({token:et,factory:et.\u0275fac,providedIn:"root"}),et})(),ut=(()=>{class et{}return et.\u0275fac=function(Ue){return new(Ue||et)},et.\u0275dir=e.lG2({type:et,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),et})();function tt(et,ne,Ue="mat"){et.changes.pipe((0,B.O)(et)).subscribe(({length:He})=>{vt(ne,`${Ue}-2-line`,!1),vt(ne,`${Ue}-3-line`,!1),vt(ne,`${Ue}-multi-line`,!1),2===He||3===He?vt(ne,`${Ue}-${He}-line`,!0):He>3&&vt(ne,`${Ue}-multi-line`,!0)})}function vt(et,ne,Ue){et.nativeElement.classList.toggle(ne,Ue)}let X=(()=>{class et{}return et.\u0275fac=function(Ue){return new(Ue||et)},et.\u0275mod=e.oAB({type:et}),et.\u0275inj=e.cJS({imports:[W,W]}),et})();class nt{constructor(ne,Ue,He,Pe=!1){this._renderer=ne,this.element=Ue,this.config=He,this._animationForciblyDisabledThroughCss=Pe,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Ae={enterDuration:225,exitDuration:150},_e=(0,b.i$)({passive:!0}),Se=["mousedown","touchstart"],Ne=["mouseup","mouseleave","touchend","touchcancel"];class Ce{constructor(ne,Ue,He,Pe){this._target=ne,this._ngZone=Ue,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,Pe.isBrowser&&(this._containerElement=(0,D.fI)(He))}fadeInRipple(ne,Ue,He={}){const Pe=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),Re={...Ae,...He.animation};He.centered&&(ne=Pe.left+Pe.width/2,Ue=Pe.top+Pe.height/2);const re=He.radius||function fe(et,ne,Ue){const He=Math.max(Math.abs(et-Ue.left),Math.abs(et-Ue.right)),Pe=Math.max(Math.abs(ne-Ue.top),Math.abs(ne-Ue.bottom));return Math.sqrt(He*He+Pe*Pe)}(ne,Ue,Pe),we=ne-Pe.left,st=Ue-Pe.top,Ke=Re.enterDuration,Et=document.createElement("div");Et.classList.add("mat-ripple-element"),Et.style.left=we-re+"px",Et.style.top=st-re+"px",Et.style.height=2*re+"px",Et.style.width=2*re+"px",null!=He.color&&(Et.style.backgroundColor=He.color),Et.style.transitionDuration=`${Ke}ms`,this._containerElement.appendChild(Et);const ke=window.getComputedStyle(Et),It=ke.transitionDuration,jt="none"===ke.transitionProperty||"0s"===It||"0s, 0s"===It,an=new nt(this,Et,He,jt);Et.style.transform="scale3d(1, 1, 1)",an.state=0,He.persistent||(this._mostRecentTransientRipple=an);let Kt=null;return!jt&&(Ke||Re.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const on=()=>this._finishRippleTransition(an),Cn=()=>this._destroyRipple(an);Et.addEventListener("transitionend",on),Et.addEventListener("transitioncancel",Cn),Kt={onTransitionEnd:on,onTransitionCancel:Cn}}),this._activeRipples.set(an,Kt),(jt||!Ke)&&this._finishRippleTransition(an),an}fadeOutRipple(ne){if(2===ne.state||3===ne.state)return;const Ue=ne.element,He={...Ae,...ne.config.animation};Ue.style.transitionDuration=`${He.exitDuration}ms`,Ue.style.opacity="0",ne.state=2,(ne._animationForciblyDisabledThroughCss||!He.exitDuration)&&this._finishRippleTransition(ne)}fadeOutAll(){this._getActiveRipples().forEach(ne=>ne.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(ne=>{ne.config.persistent||ne.fadeOut()})}setupTriggerEvents(ne){const Ue=(0,D.fI)(ne);!Ue||Ue===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=Ue,this._registerEvents(Se))}handleEvent(ne){"mousedown"===ne.type?this._onMousedown(ne):"touchstart"===ne.type?this._onTouchStart(ne):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Ne),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(ne){0===ne.state?this._startFadeOutTransition(ne):2===ne.state&&this._destroyRipple(ne)}_startFadeOutTransition(ne){const Ue=ne===this._mostRecentTransientRipple,{persistent:He}=ne.config;ne.state=1,!He&&(!Ue||!this._isPointerDown)&&ne.fadeOut()}_destroyRipple(ne){var Ue;const He=null!==(Ue=this._activeRipples.get(ne))&&void 0!==Ue?Ue:null;this._activeRipples.delete(ne),this._activeRipples.size||(this._containerRect=null),ne===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),ne.state=3,null!==He&&(ne.element.removeEventListener("transitionend",He.onTransitionEnd),ne.element.removeEventListener("transitioncancel",He.onTransitionCancel)),ne.element.remove()}_onMousedown(ne){const Ue=(0,A.X6)(ne),He=this._lastTouchStartEvent&&Date.now(){!ne.config.persistent&&(1===ne.state||ne.config.terminateOnPointerUp&&0===ne.state)&&ne.fadeOut()}))}_registerEvents(ne){this._ngZone.runOutsideAngular(()=>{ne.forEach(Ue=>{this._triggerElement.addEventListener(Ue,this,_e)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(Se.forEach(ne=>{this._triggerElement.removeEventListener(ne,this,_e)}),this._pointerUpEventsRegistered&&Ne.forEach(ne=>{this._triggerElement.removeEventListener(ne,this,_e)}))}}const r=new e.OlP("mat-ripple-global-options");let u=(()=>{class et{constructor(Ue,He,Pe,Re,re){this._elementRef=Ue,this._animationMode=re,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=Re||{},this._rippleRenderer=new Ce(this,He,Ue,Pe)}get disabled(){return this._disabled}set disabled(Ue){Ue&&this.fadeOutAllNonPersistent(),this._disabled=Ue,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(Ue){this._trigger=Ue,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...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(Ue,He=0,Pe){return"number"==typeof Ue?this._rippleRenderer.fadeInRipple(Ue,He,{...this.rippleConfig,...Pe}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...Ue})}}return et.\u0275fac=function(Ue){return new(Ue||et)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(b.t4),e.Y36(r,8),e.Y36(e.QbO,8))},et.\u0275dir=e.lG2({type:et,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(Ue,He){2&Ue&&e.ekj("mat-ripple-unbounded",He.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),et})(),_=(()=>{class et{}return et.\u0275fac=function(Ue){return new(Ue||et)},et.\u0275mod=e.oAB({type:et}),et.\u0275inj=e.cJS({imports:[W,W]}),et})(),E=(()=>{class et{constructor(Ue){this._animationMode=Ue,this.state="unchecked",this.disabled=!1}}return et.\u0275fac=function(Ue){return new(Ue||et)(e.Y36(e.QbO,8))},et.\u0275cmp=e.Xpm({type:et,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(Ue,He){2&Ue&&e.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===He.state)("mat-pseudo-checkbox-checked","checked"===He.state)("mat-pseudo-checkbox-disabled",He.disabled)("_mat-animation-noopable","NoopAnimations"===He._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(Ue,He){},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:rgba(0,0,0,0)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::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}'],encapsulation:2,changeDetection:0}),et})(),h=(()=>{class et{}return et.\u0275fac=function(Ue){return new(Ue||et)},et.\u0275mod=e.oAB({type:et}),et.\u0275inj=e.cJS({imports:[W]}),et})();const a=new e.OlP("MAT_OPTION_PARENT_COMPONENT"),o=new e.OlP("MatOptgroup");let l=0;class d{constructor(ne,Ue=!1){this.source=ne,this.isUserInput=Ue}}let c=(()=>{class et{constructor(Ue,He,Pe,Re){this._element=Ue,this._changeDetectorRef=He,this._parent=Pe,this.group=Re,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+l++,this.onSelectionChange=new e.vpe,this._stateChanges=new R.x}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(Ue){this._disabled=(0,D.Ig)(Ue)}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(Ue,He){const Pe=this._getHostElement();"function"==typeof Pe.focus&&Pe.focus(He)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(Ue){(Ue.keyCode===w.K5||Ue.keyCode===w.L_)&&!(0,w.Vb)(Ue)&&(this._selectViaInteraction(),Ue.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 Ue=this.viewValue;Ue!==this._mostRecentViewValue&&(this._mostRecentViewValue=Ue,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(Ue=!1){this.onSelectionChange.emit(new d(this,Ue))}}return et.\u0275fac=function(Ue){e.$Z()},et.\u0275dir=e.lG2({type:et,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),et})(),S=(()=>{class et extends c{constructor(Ue,He,Pe,Re){super(Ue,He,Pe,Re)}}return et.\u0275fac=function(Ue){return new(Ue||et)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(a,8),e.Y36(o,8))},et.\u0275cmp=e.Xpm({type:et,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(Ue,He){1&Ue&&e.NdJ("click",function(){return He._selectViaInteraction()})("keydown",function(Re){return He._handleKeydown(Re)}),2&Ue&&(e.Ikx("id",He.id),e.uIk("tabindex",He._getTabIndex())("aria-selected",He._getAriaSelected())("aria-disabled",He.disabled.toString()),e.ekj("mat-selected",He.selected)("mat-option-multiple",He.multiple)("mat-active",He.active)("mat-option-disabled",He.disabled))},exportAs:["matOption"],features:[e.qOj],ngContentSelectors:z,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(Ue,He){1&Ue&&(e.F$t(),e.YNc(0,q,1,2,"mat-pseudo-checkbox",0),e.TgZ(1,"span",1),e.Hsn(2),e.qZA(),e.YNc(3,te,2,1,"span",2),e._UZ(4,"div",3)),2&Ue&&(e.Q6J("ngIf",He.multiple),e.xp6(3),e.Q6J("ngIf",He.group&&He.group._inert),e.xp6(1),e.Q6J("matRippleTrigger",He._getHostElement())("matRippleDisabled",He.disabled||He.disableRipple))},dependencies:[u,m.O5,E],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:rgba(0,0,0,0)}.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;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}.mat-option.mat-active::before{content:""}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{right:auto;left:16px}.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}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}'],encapsulation:2,changeDetection:0}),et})();function J(et,ne,Ue){if(Ue.length){let He=ne.toArray(),Pe=Ue.toArray(),Re=0;for(let re=0;reUe+He?Math.max(0,et-He+ne):Ue}let ze=(()=>{class et{}return et.\u0275fac=function(Ue){return new(Ue||et)},et.\u0275mod=e.oAB({type:et}),et.\u0275inj=e.cJS({imports:[_,m.ez,W,h]}),et})()},99602:(Xe,ue,p)=>{"use strict";p.d(ue,{FA:()=>pt,Mq:()=>Et,hl:()=>Kt,nW:()=>Cn});var e=p(12687),A=p(98184),C=p(84080),M=p(36895),m=p(94650),b=p(4859),D=p(67376),v=p(3238),R=p(77579),B=p(50727),w=p(56451),L=p(39646),O=p(29521),q=p(40445),te=p(95698),z=p(68675),ie=p(39300),Te=p(21281),pe=p(83353),Le=p(37340),T=p(24006),W=p(59549),F=p(284);const V=["mat-calendar-body",""];function ee(rt,St){if(1&rt&&(m.TgZ(0,"tr",2)(1,"td",3),m._uU(2),m.qZA()()),2&rt){const $=m.oxw();m.xp6(1),m.Udp("padding-top",$._cellPadding)("padding-bottom",$._cellPadding),m.uIk("colspan",$.numCols),m.xp6(1),m.hij(" ",$.label," ")}}function Q(rt,St){if(1&rt&&(m.TgZ(0,"td",3),m._uU(1),m.qZA()),2&rt){const $=m.oxw(2);m.Udp("padding-top",$._cellPadding)("padding-bottom",$._cellPadding),m.uIk("colspan",$._firstRowOffset),m.xp6(1),m.hij(" ",$._firstRowOffset>=$.labelMinRequiredCells?$.label:""," ")}}function Ee(rt,St){if(1&rt){const $=m.EpF();m.TgZ(0,"td",7)(1,"button",8),m.NdJ("click",function(At){const Xt=m.CHM($).$implicit,yn=m.oxw(2);return m.KtG(yn._cellClicked(Xt,At))})("focus",function(At){const Xt=m.CHM($).$implicit,yn=m.oxw(2);return m.KtG(yn._emitActiveDateChange(Xt,At))}),m.TgZ(2,"div",9),m._uU(3),m.qZA(),m._UZ(4,"div",10),m.qZA()()}if(2&rt){const $=St.$implicit,We=St.index,At=m.oxw().index,Pt=m.oxw();m.Udp("width",Pt._cellWidth)("padding-top",Pt._cellPadding)("padding-bottom",Pt._cellPadding),m.uIk("data-mat-row",At)("data-mat-col",We),m.xp6(1),m.ekj("mat-calendar-body-disabled",!$.enabled)("mat-calendar-body-active",Pt._isActiveCell(At,We))("mat-calendar-body-range-start",Pt._isRangeStart($.compareValue))("mat-calendar-body-range-end",Pt._isRangeEnd($.compareValue))("mat-calendar-body-in-range",Pt._isInRange($.compareValue))("mat-calendar-body-comparison-bridge-start",Pt._isComparisonBridgeStart($.compareValue,At,We))("mat-calendar-body-comparison-bridge-end",Pt._isComparisonBridgeEnd($.compareValue,At,We))("mat-calendar-body-comparison-start",Pt._isComparisonStart($.compareValue))("mat-calendar-body-comparison-end",Pt._isComparisonEnd($.compareValue))("mat-calendar-body-in-comparison-range",Pt._isInComparisonRange($.compareValue))("mat-calendar-body-preview-start",Pt._isPreviewStart($.compareValue))("mat-calendar-body-preview-end",Pt._isPreviewEnd($.compareValue))("mat-calendar-body-in-preview",Pt._isInPreview($.compareValue)),m.Q6J("ngClass",$.cssClasses)("tabindex",Pt._isActiveCell(At,We)?0:-1),m.uIk("aria-label",$.ariaLabel)("aria-disabled",!$.enabled||null)("aria-pressed",Pt._isSelected($.compareValue))("aria-current",Pt.todayValue===$.compareValue?"date":null),m.xp6(1),m.ekj("mat-calendar-body-selected",Pt._isSelected($.compareValue))("mat-calendar-body-comparison-identical",Pt._isComparisonIdentical($.compareValue))("mat-calendar-body-today",Pt.todayValue===$.compareValue),m.xp6(1),m.hij(" ",$.displayValue," ")}}function ge(rt,St){if(1&rt&&(m.TgZ(0,"tr",4),m.YNc(1,Q,2,6,"td",5),m.YNc(2,Ee,5,47,"td",6),m.qZA()),2&rt){const $=St.$implicit,We=St.index,At=m.oxw();m.xp6(1),m.Q6J("ngIf",0===We&&At._firstRowOffset),m.xp6(1),m.Q6J("ngForOf",$)}}function ve(rt,St){if(1&rt&&(m.TgZ(0,"th",5)(1,"span",6),m._uU(2),m.qZA(),m.TgZ(3,"span",7),m._uU(4),m.qZA()()),2&rt){const $=St.$implicit;m.xp6(2),m.Oqu($.long),m.xp6(2),m.Oqu($.narrow)}}const De=["*"];function he(rt,St){}function Ye(rt,St){if(1&rt){const $=m.EpF();m.TgZ(0,"mat-month-view",5),m.NdJ("activeDateChange",function(At){m.CHM($);const Pt=m.oxw();return m.KtG(Pt.activeDate=At)})("_userSelection",function(At){m.CHM($);const Pt=m.oxw();return m.KtG(Pt._dateSelected(At))}),m.qZA()}if(2&rt){const $=m.oxw();m.Q6J("activeDate",$.activeDate)("selected",$.selected)("dateFilter",$.dateFilter)("maxDate",$.maxDate)("minDate",$.minDate)("dateClass",$.dateClass)("comparisonStart",$.comparisonStart)("comparisonEnd",$.comparisonEnd)}}function Be(rt,St){if(1&rt){const $=m.EpF();m.TgZ(0,"mat-year-view",6),m.NdJ("activeDateChange",function(At){m.CHM($);const Pt=m.oxw();return m.KtG(Pt.activeDate=At)})("monthSelected",function(At){m.CHM($);const Pt=m.oxw();return m.KtG(Pt._monthSelectedInYearView(At))})("selectedChange",function(At){m.CHM($);const Pt=m.oxw();return m.KtG(Pt._goToDateInView(At,"month"))}),m.qZA()}if(2&rt){const $=m.oxw();m.Q6J("activeDate",$.activeDate)("selected",$.selected)("dateFilter",$.dateFilter)("maxDate",$.maxDate)("minDate",$.minDate)("dateClass",$.dateClass)}}function se(rt,St){if(1&rt){const $=m.EpF();m.TgZ(0,"mat-multi-year-view",7),m.NdJ("activeDateChange",function(At){m.CHM($);const Pt=m.oxw();return m.KtG(Pt.activeDate=At)})("yearSelected",function(At){m.CHM($);const Pt=m.oxw();return m.KtG(Pt._yearSelectedInMultiYearView(At))})("selectedChange",function(At){m.CHM($);const Pt=m.oxw();return m.KtG(Pt._goToDateInView(At,"year"))}),m.qZA()}if(2&rt){const $=m.oxw();m.Q6J("activeDate",$.activeDate)("selected",$.selected)("dateFilter",$.dateFilter)("maxDate",$.maxDate)("minDate",$.minDate)("dateClass",$.dateClass)}}function le(rt,St){}const N=["button"];function k(rt,St){1&rt&&(m.O4$(),m.TgZ(0,"svg",3),m._UZ(1,"path",4),m.qZA())}const be=[[["","matDatepickerToggleIcon",""]]],Z=["[matDatepickerToggleIcon]"];let ut=(()=>{class rt{constructor(){this.changes=new R.x,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 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange($,We){return`${$} \u2013 ${We}`}formatYearRangeLabel($,We){return`${$} to ${We}`}}return rt.\u0275fac=function($){return new($||rt)},rt.\u0275prov=m.Yz7({token:rt,factory:rt.\u0275fac,providedIn:"root"}),rt})();class tt{constructor(St,$,We,At,Pt={},Xt=St,yn){this.value=St,this.displayValue=$,this.ariaLabel=We,this.enabled=At,this.cssClasses=Pt,this.compareValue=Xt,this.rawValue=yn}}let vt=(()=>{class rt{constructor($,We){this._elementRef=$,this._ngZone=We,this._focusActiveCellAfterViewChecked=!1,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new m.vpe,this.previewChange=new m.vpe,this.activeDateChange=new m.vpe,this._enterHandler=At=>{if(this._skipNextFocus&&"focus"===At.type)this._skipNextFocus=!1;else if(At.target&&this.isRange){const Pt=this._getCellFromElement(At.target);Pt&&this._ngZone.run(()=>this.previewChange.emit({value:Pt.enabled?Pt:null,event:At}))}},this._leaveHandler=At=>{null!==this.previewEnd&&this.isRange&&At.target&&this._getCellFromElement(At.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:At}))},We.runOutsideAngular(()=>{const At=$.nativeElement;At.addEventListener("mouseenter",this._enterHandler,!0),At.addEventListener("focus",this._enterHandler,!0),At.addEventListener("mouseleave",this._leaveHandler,!0),At.addEventListener("blur",this._leaveHandler,!0)})}ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}_cellClicked($,We){$.enabled&&this.selectedValueChange.emit({value:$.value,event:We})}_emitActiveDateChange($,We){$.enabled&&this.activeDateChange.emit({value:$.value,event:We})}_isSelected($){return this.startValue===$||this.endValue===$}ngOnChanges($){const We=$.numCols,{rows:At,numCols:Pt}=this;($.rows||We)&&(this._firstRowOffset=At&&At.length&&At[0].length?Pt-At[0].length:0),($.cellAspectRatio||We||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/Pt+"%"),(We||!this._cellWidth)&&(this._cellWidth=100/Pt+"%")}ngOnDestroy(){const $=this._elementRef.nativeElement;$.removeEventListener("mouseenter",this._enterHandler,!0),$.removeEventListener("focus",this._enterHandler,!0),$.removeEventListener("mouseleave",this._leaveHandler,!0),$.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell($,We){let At=$*this.numCols+We;return $&&(At-=this._firstRowOffset),At==this.activeCell}_focusActiveCell($=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,te.q)(1)).subscribe(()=>{setTimeout(()=>{const We=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");We&&($||(this._skipNextFocus=!0),We.focus())})})})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart($){return nt($,this.startValue,this.endValue)}_isRangeEnd($){return Ae($,this.startValue,this.endValue)}_isInRange($){return ye($,this.startValue,this.endValue,this.isRange)}_isComparisonStart($){return nt($,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart($,We,At){if(!this._isComparisonStart($)||this._isRangeStart($)||!this._isInRange($))return!1;let Pt=this.rows[We][At-1];if(!Pt){const Xt=this.rows[We-1];Pt=Xt&&Xt[Xt.length-1]}return Pt&&!this._isRangeEnd(Pt.compareValue)}_isComparisonBridgeEnd($,We,At){if(!this._isComparisonEnd($)||this._isRangeEnd($)||!this._isInRange($))return!1;let Pt=this.rows[We][At+1];if(!Pt){const Xt=this.rows[We+1];Pt=Xt&&Xt[0]}return Pt&&!this._isRangeStart(Pt.compareValue)}_isComparisonEnd($){return Ae($,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange($){return ye($,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical($){return this.comparisonStart===this.comparisonEnd&&$===this.comparisonStart}_isPreviewStart($){return nt($,this.previewStart,this.previewEnd)}_isPreviewEnd($){return Ae($,this.previewStart,this.previewEnd)}_isInPreview($){return ye($,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement($){let We;if(X($)?We=$:X($.parentNode)&&(We=$.parentNode),We){const At=We.getAttribute("data-mat-row"),Pt=We.getAttribute("data-mat-col");if(At&&Pt)return this.rows[parseInt(At)][parseInt(Pt)]}return null}}return rt.\u0275fac=function($){return new($||rt)(m.Y36(m.SBq),m.Y36(m.R0b))},rt.\u0275cmp=m.Xpm({type:rt,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange"},exportAs:["matCalendarBody"],features:[m.TTD],attrs:V,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"],["class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom",4,"ngFor","ngForOf"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click","focus"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function($,We){1&$&&(m.YNc(0,ee,3,6,"tr",0),m.YNc(1,ge,3,2,"tr",1)),2&$&&(m.Q6J("ngIf",We._firstRowOffset=St&&rt===$}function ye(rt,St,$,We){return We&&null!==St&&null!==$&&St!==$&&rt>=St&&rt<=$}class _e{constructor(St,$){this.start=St,this.end=$}}let Se=(()=>{class rt{constructor($,We){this.selection=$,this._adapter=We,this._selectionChanged=new R.x,this.selectionChanged=this._selectionChanged,this.selection=$}updateSelection($,We){const At=this.selection;this.selection=$,this._selectionChanged.next({selection:$,source:We,oldValue:At})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance($){return this._adapter.isDateInstance($)&&this._adapter.isValid($)}}return rt.\u0275fac=function($){m.$Z()},rt.\u0275prov=m.Yz7({token:rt,factory:rt.\u0275fac}),rt})(),Ne=(()=>{class rt extends Se{constructor($){super(null,$)}add($){super.updateSelection($,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const $=new rt(this._adapter);return $.updateSelection(this.selection,this),$}}return rt.\u0275fac=function($){return new($||rt)(m.LFG(v._A))},rt.\u0275prov=m.Yz7({token:rt,factory:rt.\u0275fac}),rt})();const r={provide:Se,deps:[[new m.FiY,new m.tp0,Se],v._A],useFactory:function fe(rt,St){return rt||new Ne(St)}},E=new m.OlP("MAT_DATE_RANGE_SELECTION_STRATEGY");let n=(()=>{class rt{constructor($,We,At,Pt,Xt){this._changeDetectorRef=$,this._dateFormats=We,this._dateAdapter=At,this._dir=Pt,this._rangeStrategy=Xt,this._rerenderSubscription=B.w0.EMPTY,this.selectedChange=new m.vpe,this._userSelection=new m.vpe,this.activeDateChange=new m.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate($){const We=this._activeDate,At=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize($))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(At,this.minDate,this.maxDate),this._hasSameMonthAndYear(We,this._activeDate)||this._init()}get selected(){return this._selected}set selected($){this._selected=$ instanceof _e?$:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize($)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate($){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize($))}get maxDate(){return this._maxDate}set maxDate($){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize($))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,z.O)(null)).subscribe(()=>this._init())}ngOnChanges($){const We=$.comparisonStart||$.comparisonEnd;We&&!We.firstChange&&this._setRanges(this.selected)}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected($){const We=$.value,At=this._getDateFromDayOfMonth(We);let Pt,Xt;this._selected instanceof _e?(Pt=this._getDateInCurrentMonth(this._selected.start),Xt=this._getDateInCurrentMonth(this._selected.end)):Pt=Xt=this._getDateInCurrentMonth(this._selected),(Pt!==We||Xt!==We)&&this.selectedChange.emit(At),this._userSelection.emit({value:At,event:$.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}_updateActiveDate($){const At=this._activeDate;this.activeDate=this._getDateFromDayOfMonth($.value),this._dateAdapter.compareDate(At,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown($){const We=this._activeDate,At=this._isRtl();switch($.keyCode){case O.oh:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,At?1:-1);break;case O.SV:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,At?-1:1);break;case O.LH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case O.JH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case O.Sd:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case O.uR:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case O.Ku:this.activeDate=$.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case O.VM:this.activeDate=$.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case O.K5:case O.L_:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&$.preventDefault());case O.hY:return void(null!=this._previewEnd&&!(0,O.Vb)($)&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:$}),$.preventDefault(),$.stopPropagation()));default:return}this._dateAdapter.compareDate(We,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),$.preventDefault()}_handleCalendarBodyKeyup($){($.keyCode===O.L_||$.keyCode===O.K5)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:$}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let $=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek($)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell($){this._matCalendarBody._focusActiveCell($)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:$,value:We}){if(this._rangeStrategy){const Pt=this._rangeStrategy.createPreview(We?We.rawValue:null,this.selected,$);this._previewStart=this._getCellCompareValue(Pt.start),this._previewEnd=this._getCellCompareValue(Pt.end),this._changeDetectorRef.detectChanges()}}_getDateFromDayOfMonth($){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),$)}_initWeekdays(){const $=this._dateAdapter.getFirstDayOfWeek(),We=this._dateAdapter.getDayOfWeekNames("narrow");let Pt=this._dateAdapter.getDayOfWeekNames("long").map((Xt,yn)=>({long:Xt,narrow:We[yn]}));this._weekdays=Pt.slice($).concat(Pt.slice(0,$))}_createWeekCells(){const $=this._dateAdapter.getNumDaysInMonth(this.activeDate),We=this._dateAdapter.getDateNames();this._weeks=[[]];for(let At=0,Pt=this._firstWeekOffset;At<$;At++,Pt++){7==Pt&&(this._weeks.push([]),Pt=0);const Xt=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),At+1),yn=this._shouldEnableDate(Xt),Zn=this._dateAdapter.format(Xt,this._dateFormats.display.dateA11yLabel),Hn=this.dateClass?this.dateClass(Xt,"month"):void 0;this._weeks[this._weeks.length-1].push(new tt(At+1,We[At],Zn,yn,Hn,this._getCellCompareValue(Xt),Xt))}}_shouldEnableDate($){return!!$&&(!this.minDate||this._dateAdapter.compareDate($,this.minDate)>=0)&&(!this.maxDate||this._dateAdapter.compareDate($,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter($))}_getDateInCurrentMonth($){return $&&this._hasSameMonthAndYear($,this.activeDate)?this._dateAdapter.getDate($):null}_hasSameMonthAndYear($,We){return!(!$||!We||this._dateAdapter.getMonth($)!=this._dateAdapter.getMonth(We)||this._dateAdapter.getYear($)!=this._dateAdapter.getYear(We))}_getCellCompareValue($){if($){const We=this._dateAdapter.getYear($),At=this._dateAdapter.getMonth($),Pt=this._dateAdapter.getDate($);return new Date(We,At,Pt).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges($){$ instanceof _e?(this._rangeStart=this._getCellCompareValue($.start),this._rangeEnd=this._getCellCompareValue($.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue($),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect($){return!this.dateFilter||this.dateFilter($)}}return rt.\u0275fac=function($){return new($||rt)(m.Y36(m.sBO),m.Y36(v.sG,8),m.Y36(v._A,8),m.Y36(q.Is,8),m.Y36(E,8))},rt.\u0275cmp=m.Xpm({type:rt,selectors:[["mat-month-view"]],viewQuery:function($,We){if(1&$&&m.Gf(vt,5),2&$){let At;m.iGM(At=m.CRH())&&(We._matCalendarBody=At.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:[m.TTD],decls:7,vars:13,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["aria-hidden","true","colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","activeDateChange","previewChange","keyup","keydown"],["scope","col"],[1,"cdk-visually-hidden"],["aria-hidden","true"]],template:function($,We){1&$&&(m.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),m.YNc(3,ve,5,2,"th",2),m.qZA(),m.TgZ(4,"tr"),m._UZ(5,"th",3),m.qZA()(),m.TgZ(6,"tbody",4),m.NdJ("selectedValueChange",function(Pt){return We._dateSelected(Pt)})("activeDateChange",function(Pt){return We._updateActiveDate(Pt)})("previewChange",function(Pt){return We._previewChanged(Pt)})("keyup",function(Pt){return We._handleCalendarBodyKeyup(Pt)})("keydown",function(Pt){return We._handleCalendarBodyKeydown(Pt)}),m.qZA()()),2&$&&(m.xp6(3),m.Q6J("ngForOf",We._weekdays),m.xp6(3),m.Q6J("label",We._monthLabel)("rows",We._weeks)("todayValue",We._todayDate)("startValue",We._rangeStart)("endValue",We._rangeEnd)("comparisonStart",We._comparisonRangeStart)("comparisonEnd",We._comparisonRangeEnd)("previewStart",We._previewStart)("previewEnd",We._previewEnd)("isRange",We._isRange)("labelMinRequiredCells",3)("activeCell",We._dateAdapter.getDate(We.activeDate)-1))},dependencies:[M.sg,vt],encapsulation:2,changeDetection:0}),rt})();const o=24;let l=(()=>{class rt{constructor($,We,At){this._changeDetectorRef=$,this._dateAdapter=We,this._dir=At,this._rerenderSubscription=B.w0.EMPTY,this.selectedChange=new m.vpe,this.yearSelected=new m.vpe,this.activeDateChange=new m.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate($){let We=this._activeDate;const At=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize($))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(At,this.minDate,this.maxDate),d(this._dateAdapter,We,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected($){this._selected=$ instanceof _e?$:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize($)),this._setSelectedYear($)}get minDate(){return this._minDate}set minDate($){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize($))}get maxDate(){return this._maxDate}set maxDate($){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize($))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,z.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const We=this._dateAdapter.getYear(this._activeDate)-c(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let At=0,Pt=[];Atthis._createCellForYear(Xt))),Pt=[]);this._changeDetectorRef.markForCheck()}_yearSelected($){const We=$.value,At=this._dateAdapter.createDate(We,0,1),Pt=this._getDateFromYear(We);this.yearSelected.emit(At),this.selectedChange.emit(Pt)}_updateActiveDate($){const At=this._activeDate;this.activeDate=this._getDateFromYear($.value),this._dateAdapter.compareDate(At,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown($){const We=this._activeDate,At=this._isRtl();switch($.keyCode){case O.oh:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,At?1:-1);break;case O.SV:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,At?-1:1);break;case O.LH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case O.JH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case O.Sd:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-c(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case O.uR:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,o-c(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case O.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,$.altKey?-240:-o);break;case O.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,$.altKey?240:o);break;case O.K5:case O.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(We,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),$.preventDefault()}_handleCalendarBodyKeyup($){($.keyCode===O.L_||$.keyCode===O.K5)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:$}),this._selectionKeyPressed=!1)}_getActiveCell(){return c(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear($){const We=this._dateAdapter.getMonth(this.activeDate),At=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate($,We,1));return this._dateAdapter.createDate($,We,Math.min(this._dateAdapter.getDate(this.activeDate),At))}_createCellForYear($){const We=this._dateAdapter.createDate($,0,1),At=this._dateAdapter.getYearName(We),Pt=this.dateClass?this.dateClass(We,"multi-year"):void 0;return new tt($,At,At,this._shouldEnableYear($),Pt)}_shouldEnableYear($){if(null==$||this.maxDate&&$>this._dateAdapter.getYear(this.maxDate)||this.minDate&&${class rt{constructor($,We,At,Pt){this._changeDetectorRef=$,this._dateFormats=We,this._dateAdapter=At,this._dir=Pt,this._rerenderSubscription=B.w0.EMPTY,this.selectedChange=new m.vpe,this.monthSelected=new m.vpe,this.activeDateChange=new m.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate($){let We=this._activeDate;const At=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize($))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(At,this.minDate,this.maxDate),this._dateAdapter.getYear(We)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected($){this._selected=$ instanceof _e?$:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize($)),this._setSelectedMonth($)}get minDate(){return this._minDate}set minDate($){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize($))}get maxDate(){return this._maxDate}set maxDate($){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize($))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,z.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected($){const We=$.value,At=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),We,1);this.monthSelected.emit(At);const Pt=this._getDateFromMonth(We);this.selectedChange.emit(Pt)}_updateActiveDate($){const At=this._activeDate;this.activeDate=this._getDateFromMonth($.value),this._dateAdapter.compareDate(At,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown($){const We=this._activeDate,At=this._isRtl();switch($.keyCode){case O.oh:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,At?1:-1);break;case O.SV:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,At?-1:1);break;case O.LH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case O.JH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case O.Sd:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case O.uR:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case O.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,$.altKey?-10:-1);break;case O.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,$.altKey?10:1);break;case O.K5:case O.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(We,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),$.preventDefault()}_handleCalendarBodyKeyup($){($.keyCode===O.L_||$.keyCode===O.K5)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:$}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let $=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(We=>We.map(At=>this._createCellForMonth(At,$[At]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear($){return $&&this._dateAdapter.getYear($)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth($):null}_getDateFromMonth($){const We=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),$,1),At=this._dateAdapter.getNumDaysInMonth(We);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),$,Math.min(this._dateAdapter.getDate(this.activeDate),At))}_createCellForMonth($,We){const At=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),$,1),Pt=this._dateAdapter.format(At,this._dateFormats.display.monthYearA11yLabel),Xt=this.dateClass?this.dateClass(At,"year"):void 0;return new tt($,We.toLocaleUpperCase(),Pt,this._shouldEnableMonth($),Xt)}_shouldEnableMonth($){const We=this._dateAdapter.getYear(this.activeDate);if(null==$||this._isYearAndMonthAfterMaxDate(We,$)||this._isYearAndMonthBeforeMinDate(We,$))return!1;if(!this.dateFilter)return!0;for(let Pt=this._dateAdapter.createDate(We,$,1);this._dateAdapter.getMonth(Pt)==$;Pt=this._dateAdapter.addCalendarDays(Pt,1))if(this.dateFilter(Pt))return!0;return!1}_isYearAndMonthAfterMaxDate($,We){if(this.maxDate){const At=this._dateAdapter.getYear(this.maxDate),Pt=this._dateAdapter.getMonth(this.maxDate);return $>At||$===At&&We>Pt}return!1}_isYearAndMonthBeforeMinDate($,We){if(this.minDate){const At=this._dateAdapter.getYear(this.minDate),Pt=this._dateAdapter.getMonth(this.minDate);return ${class rt{constructor($,We,At,Pt,Xt){this._intl=$,this.calendar=We,this._dateAdapter=At,this._dateFormats=Pt,this._buttonDescriptionId="mat-calendar-button-"+ze++,this.calendar.stateChanges.subscribe(()=>Xt.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 We=this._dateAdapter.getYear(this.calendar.activeDate)-c(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),At=We+o-1,Pt=this._dateAdapter.getYearName(this._dateAdapter.createDate(We,0,1)),Xt=this._dateAdapter.getYearName(this._dateAdapter.createDate(At,0,1));return this._intl.formatYearRange(Pt,Xt)}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:-o)}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:o)}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($,We){return"month"==this.calendar.currentView?this._dateAdapter.getYear($)==this._dateAdapter.getYear(We)&&this._dateAdapter.getMonth($)==this._dateAdapter.getMonth(We):"year"==this.calendar.currentView?this._dateAdapter.getYear($)==this._dateAdapter.getYear(We):d(this._dateAdapter,$,We,this.calendar.minDate,this.calendar.maxDate)}}return rt.\u0275fac=function($){return new($||rt)(m.Y36(ut),m.Y36((0,m.Gpc)(()=>ne)),m.Y36(v._A,8),m.Y36(v.sG,8),m.Y36(m.sBO))},rt.\u0275cmp=m.Xpm({type:rt,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:De,decls:11,vars:10,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","aria-live","polite",1,"mat-calendar-period-button",3,"click"],["viewBox","0 0 10 5","focusable","false",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[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($,We){1&$&&(m.F$t(),m.TgZ(0,"div",0)(1,"div",1)(2,"button",2),m.NdJ("click",function(){return We.currentPeriodClicked()}),m.TgZ(3,"span"),m._uU(4),m.qZA(),m.O4$(),m.TgZ(5,"svg",3),m._UZ(6,"polygon",4),m.qZA()(),m.kcU(),m._UZ(7,"div",5),m.Hsn(8),m.TgZ(9,"button",6),m.NdJ("click",function(){return We.previousClicked()}),m.qZA(),m.TgZ(10,"button",7),m.NdJ("click",function(){return We.nextClicked()}),m.qZA()()()),2&$&&(m.xp6(2),m.uIk("aria-label",We.periodButtonLabel)("aria-describedby",We._buttonDescriptionId),m.xp6(1),m.uIk("id",We._buttonDescriptionId),m.xp6(1),m.Oqu(We.periodButtonText),m.xp6(1),m.ekj("mat-calendar-invert","month"!==We.calendar.currentView),m.xp6(4),m.Q6J("disabled",!We.previousEnabled()),m.uIk("aria-label",We.prevButtonLabel),m.xp6(1),m.Q6J("disabled",!We.nextEnabled()),m.uIk("aria-label",We.nextButtonLabel))},dependencies:[b.lW],encapsulation:2,changeDetection:0}),rt})(),ne=(()=>{class rt{constructor($,We,At,Pt){this._dateAdapter=We,this._dateFormats=At,this._changeDetectorRef=Pt,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new m.vpe,this.yearSelected=new m.vpe,this.monthSelected=new m.vpe,this.viewChanged=new m.vpe(!0),this._userSelection=new m.vpe,this.stateChanges=new R.x,this._intlChanges=$.changes.subscribe(()=>{Pt.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt($){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize($))}get selected(){return this._selected}set selected($){this._selected=$ instanceof _e?$:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize($))}get minDate(){return this._minDate}set minDate($){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize($))}get maxDate(){return this._maxDate}set maxDate($){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize($))}get activeDate(){return this._clampedActiveDate}set activeDate($){this._clampedActiveDate=this._dateAdapter.clampDate($,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView($){const We=this._currentView!==$?$:null;this._currentView=$,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),We&&this.viewChanged.emit(We)}ngAfterContentInit(){this._calendarHeaderPortal=new C.C5(this.headerComponent||et),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($){const We=$.minDate&&!this._dateAdapter.sameDate($.minDate.previousValue,$.minDate.currentValue)?$.minDate:void 0,At=$.maxDate&&!this._dateAdapter.sameDate($.maxDate.previousValue,$.maxDate.currentValue)?$.maxDate:void 0,Pt=We||At||$.dateFilter;if(Pt&&!Pt.firstChange){const Xt=this._getCurrentViewComponent();Xt&&(this._changeDetectorRef.detectChanges(),Xt._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected($){const We=$.value;(this.selected instanceof _e||We&&!this._dateAdapter.sameDate(We,this.selected))&&this.selectedChange.emit(We),this._userSelection.emit($)}_yearSelectedInMultiYearView($){this.yearSelected.emit($)}_monthSelectedInYearView($){this.monthSelected.emit($)}_goToDateInView($,We){this.activeDate=$,this.currentView=We}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return rt.\u0275fac=function($){return new($||rt)(m.Y36(ut),m.Y36(v._A,8),m.Y36(v.sG,8),m.Y36(m.sBO))},rt.\u0275cmp=m.Xpm({type:rt,selectors:[["mat-calendar"]],viewQuery:function($,We){if(1&$&&(m.Gf(n,5),m.Gf(ht,5),m.Gf(l,5)),2&$){let At;m.iGM(At=m.CRH())&&(We.monthView=At.first),m.iGM(At=m.CRH())&&(We.yearView=At.first),m.iGM(At=m.CRH())&&(We.multiYearView=At.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection"},exportAs:["matCalendar"],features:[m._Bn([r]),m.TTD],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($,We){1&$&&(m.YNc(0,he,0,0,"ng-template",0),m.TgZ(1,"div",1),m.YNc(2,Ye,1,8,"mat-month-view",2),m.YNc(3,Be,1,6,"mat-year-view",3),m.YNc(4,se,1,6,"mat-multi-year-view",4),m.qZA()),2&$&&(m.Q6J("cdkPortalOutlet",We._calendarHeaderPortal),m.xp6(1),m.Q6J("ngSwitch",We.currentView),m.xp6(1),m.Q6J("ngSwitchCase","month"),m.xp6(1),m.Q6J("ngSwitchCase","year"),m.xp6(1),m.Q6J("ngSwitchCase","multi-year"))},dependencies:[M.RF,M.n9,e.kH,C.Pl,n,ht,l],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(4.7142857143% - 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:10px;height:5px;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}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.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}.mat-calendar-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),rt})();const Ue={transformPanel:(0,Le.X$)("transformPanel",[(0,Le.eR)("void => enter-dropdown",(0,Le.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,Le.F4)([(0,Le.oB)({opacity:0,transform:"scale(1, 0.8)"}),(0,Le.oB)({opacity:1,transform:"scale(1, 1)"})]))),(0,Le.eR)("void => enter-dialog",(0,Le.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,Le.F4)([(0,Le.oB)({opacity:0,transform:"scale(0.7)"}),(0,Le.oB)({transform:"none",opacity:1})]))),(0,Le.eR)("* => void",(0,Le.jt)("100ms linear",(0,Le.oB)({opacity:0})))]),fadeInCalendar:(0,Le.X$)("fadeInCalendar",[(0,Le.SB)("void",(0,Le.oB)({opacity:0})),(0,Le.SB)("enter",(0,Le.oB)({opacity:1})),(0,Le.eR)("void => *",(0,Le.jt)("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let He=0;const Pe=new m.OlP("mat-datepicker-scroll-strategy"),re={provide:Pe,deps:[A.aV],useFactory:function Re(rt){return()=>rt.scrollStrategies.reposition()}},we=(0,v.pj)(class{constructor(rt){this._elementRef=rt}});let st=(()=>{class rt extends we{constructor($,We,At,Pt,Xt,yn){super($),this._changeDetectorRef=We,this._globalModel=At,this._dateAdapter=Pt,this._rangeSelectionStrategy=Xt,this._subscriptions=new B.w0,this._animationDone=new R.x,this._actionsPortal=null,this._closeButtonText=yn.closeCalendarLabel}ngOnInit(){this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection($){const We=this._model.selection,At=$.value,Pt=We instanceof _e;if(Pt&&this._rangeSelectionStrategy){const Xt=this._rangeSelectionStrategy.selectionFinished(At,We,$.event);this._model.updateSelection(Xt,this)}else At&&(Pt||!this._dateAdapter.sameDate(At,We))&&this._model.add(At);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions($,We){this._model=$?this._globalModel.clone():this._globalModel,this._actionsPortal=$,We&&this._changeDetectorRef.detectChanges()}}return rt.\u0275fac=function($){return new($||rt)(m.Y36(m.SBq),m.Y36(m.sBO),m.Y36(Se),m.Y36(v._A),m.Y36(E,8),m.Y36(ut))},rt.\u0275cmp=m.Xpm({type:rt,selectors:[["mat-datepicker-content"]],viewQuery:function($,We){if(1&$&&m.Gf(ne,5),2&$){let At;m.iGM(At=m.CRH())&&(We._calendar=At.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function($,We){1&$&&m.WFA("@transformPanel.done",function(){return We._animationDone.next()}),2&$&&(m.d8E("@transformPanel",We._animationState),m.ekj("mat-datepicker-content-touch",We.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[m.qOj],decls:5,vars:24,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","yearSelected","monthSelected","viewChanged","_userSelection"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"color","focus","blur","click"]],template:function($,We){if(1&$&&(m.TgZ(0,"div",0)(1,"mat-calendar",1),m.NdJ("yearSelected",function(Pt){return We.datepicker._selectYear(Pt)})("monthSelected",function(Pt){return We.datepicker._selectMonth(Pt)})("viewChanged",function(Pt){return We.datepicker._viewChanged(Pt)})("_userSelection",function(Pt){return We._handleUserSelection(Pt)}),m.qZA(),m.YNc(2,le,0,0,"ng-template",2),m.TgZ(3,"button",3),m.NdJ("focus",function(){return We._closeButtonFocused=!0})("blur",function(){return We._closeButtonFocused=!1})("click",function(){return We.datepicker.close()}),m._uU(4),m.qZA()()),2&$){let At;m.ekj("mat-datepicker-content-container-with-custom-header",We.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",We._actionsPortal),m.uIk("aria-modal",!0)("aria-labelledby",null!==(At=We._dialogLabelId)&&void 0!==At?At:void 0),m.xp6(1),m.Q6J("id",We.datepicker.id)("ngClass",We.datepicker.panelClass)("startAt",We.datepicker.startAt)("startView",We.datepicker.startView)("minDate",We.datepicker._getMinDate())("maxDate",We.datepicker._getMaxDate())("dateFilter",We.datepicker._getDateFilter())("headerComponent",We.datepicker.calendarHeaderComponent)("selected",We._getSelected())("dateClass",We.datepicker.dateClass)("comparisonStart",We.comparisonStart)("comparisonEnd",We.comparisonEnd)("@fadeInCalendar","enter"),m.xp6(1),m.Q6J("cdkPortalOutlet",We._actionsPortal),m.xp6(1),m.ekj("cdk-visually-hidden",!We._closeButtonFocused),m.Q6J("color",We.color||"primary"),m.xp6(1),m.Oqu(We._closeButtonText)}},dependencies:[M.mk,b.lW,e.mK,C.Pl,ne],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}"],encapsulation:2,data:{animation:[Ue.transformPanel,Ue.fadeInCalendar]},changeDetection:0}),rt})(),Ke=(()=>{class rt{constructor($,We,At,Pt,Xt,yn,Zn){this._overlay=$,this._ngZone=We,this._viewContainerRef=At,this._dateAdapter=Xt,this._dir=yn,this._model=Zn,this._inputStateChanges=B.w0.EMPTY,this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new m.vpe,this.monthSelected=new m.vpe,this.viewChanged=new m.vpe(!0),this.openedStream=new m.vpe,this.closedStream=new m.vpe,this._opened=!1,this.id="mat-datepicker-"+He++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new R.x,this._scrollStrategy=Pt}get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt($){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize($))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color($){this._color=$}get touchUi(){return this._touchUi}set touchUi($){this._touchUi=(0,Te.Ig)($)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled($){const We=(0,Te.Ig)($);We!==this._disabled&&(this._disabled=We,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus($){this._restoreFocus=(0,Te.Ig)($)}get panelClass(){return this._panelClass}set panelClass($){this._panelClass=(0,Te.du)($)}get opened(){return this._opened}set opened($){(0,Te.Ig)($)?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($){const We=$.xPosition||$.yPosition;if(We&&!We.firstChange&&this._overlayRef){const At=this._overlayRef.getConfig().positionStrategy;At instanceof A._G&&(this._setConnectedPositions(At),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select($){this._model.add($)}_selectYear($){this.yearSelected.emit($)}_selectMonth($){this.monthSelected.emit($)}_viewChanged($){this.viewChanged.emit($)}registerInput($){return this._inputStateChanges.unsubscribe(),this.datepickerInput=$,this._inputStateChanges=$.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions($){var We;this._actionsPortal=$,null===(We=this._componentRef)||void 0===We||We.instance._assignActions($,!0)}removeActions($){var We;$===this._actionsPortal&&(this._actionsPortal=null,null===(We=this._componentRef)||void 0===We||We.instance._assignActions(null,!0))}open(){this._opened||this.disabled||(this._focusedElementBeforeOpen=(0,pe.ht)(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened)return;if(this._componentRef){const We=this._componentRef.instance;We._startExitAnimation(),We._animationDone.pipe((0,te.q)(1)).subscribe(()=>this._destroyOverlay())}const $=()=>{this._opened&&(this._opened=!1,this.closedStream.emit(),this._focusedElementBeforeOpen=null)};this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout($)):$()}_applyPendingSelection(){var $,We;null===($=this._componentRef)||void 0===$||null===(We=$.instance)||void 0===We||We._applyPendingSelection()}_forwardContentValues($){$.datepicker=this,$.color=this.color,$._dialogLabelId=this.datepickerInput.getOverlayLabelId(),$._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();const $=this.touchUi,We=new C.C5(st,this._viewContainerRef),At=this._overlayRef=this._overlay.create(new A.X_({positionStrategy:$?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[$?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:$?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+($?"dialog":"popup")}));this._getCloseStream(At).subscribe(Pt=>{Pt&&Pt.preventDefault(),this.close()}),At.keydownEvents().subscribe(Pt=>{const Xt=Pt.keyCode;(Xt===O.LH||Xt===O.JH||Xt===O.oh||Xt===O.SV||Xt===O.Ku||Xt===O.VM)&&Pt.preventDefault()}),this._componentRef=At.attach(We),this._forwardContentValues(this._componentRef.instance),$||this._ngZone.onStable.pipe((0,te.q)(1)).subscribe(()=>At.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const $=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions($)}_setConnectedPositions($){const We="end"===this.xPosition?"end":"start",At="start"===We?"end":"start",Pt="above"===this.yPosition?"bottom":"top",Xt="top"===Pt?"bottom":"top";return $.withPositions([{originX:We,originY:Xt,overlayX:We,overlayY:Pt},{originX:We,originY:Pt,overlayX:We,overlayY:Xt},{originX:At,originY:Xt,overlayX:At,overlayY:Pt},{originX:At,originY:Pt,overlayX:At,overlayY:Xt}])}_getCloseStream($){return(0,w.T)($.backdropClick(),$.detachments(),$.keydownEvents().pipe((0,ie.h)(We=>We.keyCode===O.hY&&!(0,O.Vb)(We)||this.datepickerInput&&(0,O.Vb)(We,"altKey")&&We.keyCode===O.LH)))}}return rt.\u0275fac=function($){return new($||rt)(m.Y36(A.aV),m.Y36(m.R0b),m.Y36(m.s_b),m.Y36(Pe),m.Y36(v._A,8),m.Y36(q.Is,8),m.Y36(Se))},rt.\u0275dir=m.lG2({type:rt,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:"touchUi",disabled:"disabled",xPosition:"xPosition",yPosition:"yPosition",restoreFocus:"restoreFocus",dateClass:"dateClass",panelClass:"panelClass",opened:"opened"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[m.TTD]}),rt})(),Et=(()=>{class rt extends Ke{}return rt.\u0275fac=function(){let St;return function(We){return(St||(St=m.n5z(rt)))(We||rt)}}(),rt.\u0275cmp=m.Xpm({type:rt,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[m._Bn([r,{provide:Ke,useExisting:rt}]),m.qOj],decls:0,vars:0,template:function($,We){},encapsulation:2,changeDetection:0}),rt})();class ke{constructor(St,$){this.target=St,this.targetElement=$,this.value=this.target.value}}let at=(()=>{class rt{constructor($,We,At){this._elementRef=$,this._dateAdapter=We,this._dateFormats=At,this.dateChange=new m.vpe,this.dateInput=new m.vpe,this.stateChanges=new R.x,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=B.w0.EMPTY,this._localeSubscription=B.w0.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=Pt=>{const Xt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Pt.value));return!Xt||this._matchesFilter(Xt)?null:{matDatepickerFilter:!0}},this._minValidator=Pt=>{const Xt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Pt.value)),yn=this._getMinDate();return!yn||!Xt||this._dateAdapter.compareDate(yn,Xt)<=0?null:{matDatepickerMin:{min:yn,actual:Xt}}},this._maxValidator=Pt=>{const Xt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Pt.value)),yn=this._getMaxDate();return!yn||!Xt||this._dateAdapter.compareDate(yn,Xt)>=0?null:{matDatepickerMax:{max:yn,actual:Xt}}},this._lastValueValid=!1,this._localeSubscription=We.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value($){this._assignValueProgrammatically($)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled($){const We=(0,Te.Ig)($),At=this._elementRef.nativeElement;this._disabled!==We&&(this._disabled=We,this.stateChanges.next(void 0)),We&&this._isInitialized&&At.blur&&At.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel($){this._model=$,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(We=>{if(this._shouldHandleChangeEvent(We)){const At=this._getValueFromModel(We.selection);this._lastValueValid=this._isValidValue(At),this._cvaOnChange(At),this._onTouched(),this._formatValue(At),this.dateInput.emit(new ke(this,this._elementRef.nativeElement)),this.dateChange.emit(new ke(this,this._elementRef.nativeElement))}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges($){(function It(rt,St){const $=Object.keys(rt);for(let We of $){const{previousValue:At,currentValue:Pt}=rt[We];if(!St.isDateInstance(At)||!St.isDateInstance(Pt))return!0;if(!St.sameDate(At,Pt))return!0}return!1})($,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange($){this._validatorOnChange=$}validate($){return this._validator?this._validator($):null}writeValue($){this._assignValueProgrammatically($)}registerOnChange($){this._cvaOnChange=$}registerOnTouched($){this._onTouched=$}setDisabledState($){this.disabled=$}_onKeydown($){$.altKey&&$.keyCode===O.JH&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),$.preventDefault())}_onInput($){const We=this._lastValueValid;let At=this._dateAdapter.parse($,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(At),At=this._dateAdapter.getValidDateOrNull(At);const Pt=!this._dateAdapter.sameDate(At,this.value);!At||Pt?this._cvaOnChange(At):($&&!this.value&&this._cvaOnChange(At),We!==this._lastValueValid&&this._validatorOnChange()),Pt&&(this._assignValue(At),this.dateInput.emit(new ke(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new ke(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue($){this._elementRef.nativeElement.value=null!=$?this._dateAdapter.format($,this._dateFormats.display.dateInput):""}_assignValue($){this._model?(this._assignValueToModel($),this._pendingValue=null):this._pendingValue=$}_isValidValue($){return!$||this._dateAdapter.isValid($)}_parentDisabled(){return!1}_assignValueProgrammatically($){$=this._dateAdapter.deserialize($),this._lastValueValid=this._isValidValue($),$=this._dateAdapter.getValidDateOrNull($),this._assignValue($),this._formatValue($)}_matchesFilter($){const We=this._getDateFilter();return!We||We($)}}return rt.\u0275fac=function($){return new($||rt)(m.Y36(m.SBq),m.Y36(v._A,8),m.Y36(v.sG,8))},rt.\u0275dir=m.lG2({type:rt,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[m.TTD]}),rt})();const jt={provide:T.JU,useExisting:(0,m.Gpc)(()=>Kt),multi:!0},an={provide:T.Cf,useExisting:(0,m.Gpc)(()=>Kt),multi:!0};let Kt=(()=>{class rt extends at{constructor($,We,At,Pt){super($,We,At),this._formField=Pt,this._closedSubscription=B.w0.EMPTY,this._validator=T.kI.compose(super._getValidators())}set matDatepicker($){$&&(this._datepicker=$,this._closedSubscription=$.closedStream.subscribe(()=>this._onTouched()),this._registerModel($.registerInput(this)))}get min(){return this._min}set min($){const We=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize($));this._dateAdapter.sameDate(We,this._min)||(this._min=We,this._validatorOnChange())}get max(){return this._max}set max($){const We=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize($));this._dateAdapter.sameDate(We,this._max)||(this._max=We,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter($){const We=this._matchesFilter(this.value);this._dateFilter=$,this._matchesFilter(this.value)!==We&&this._validatorOnChange()}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel($){return $}_assignValueToModel($){this._model&&this._model.updateSelection($,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent($){return $.source!==this}}return rt.\u0275fac=function($){return new($||rt)(m.Y36(m.SBq),m.Y36(v._A,8),m.Y36(v.sG,8),m.Y36(W.G_,8))},rt.\u0275dir=m.lG2({type:rt,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function($,We){1&$&&m.NdJ("input",function(Pt){return We._onInput(Pt.target.value)})("change",function(){return We._onChange()})("blur",function(){return We._onBlur()})("keydown",function(Pt){return We._onKeydown(Pt)}),2&$&&(m.Ikx("disabled",We.disabled),m.uIk("aria-haspopup",We._datepicker?"dialog":null)("aria-owns",(null==We._datepicker?null:We._datepicker.opened)&&We._datepicker.id||null)("min",We.min?We._dateAdapter.toIso8601(We.min):null)("max",We.max?We._dateAdapter.toIso8601(We.max):null)("data-mat-calendar",We._datepicker?We._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[m._Bn([jt,an,{provide:F.Jk,useExisting:rt}]),m.qOj]}),rt})(),on=(()=>{class rt{}return rt.\u0275fac=function($){return new($||rt)},rt.\u0275dir=m.lG2({type:rt,selectors:[["","matDatepickerToggleIcon",""]]}),rt})(),Cn=(()=>{class rt{constructor($,We,At){this._intl=$,this._changeDetectorRef=We,this._stateChanges=B.w0.EMPTY;const Pt=Number(At);this.tabIndex=Pt||0===Pt?Pt:null}get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled($){this._disabled=(0,Te.Ig)($)}ngOnChanges($){$.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open($){this.datepicker&&!this.disabled&&(this.datepicker.open(),$.stopPropagation())}_watchStateChanges(){const $=this.datepicker?this.datepicker.stateChanges:(0,L.of)(),We=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:(0,L.of)(),At=this.datepicker?(0,w.T)(this.datepicker.openedStream,this.datepicker.closedStream):(0,L.of)();this._stateChanges.unsubscribe(),this._stateChanges=(0,w.T)(this._intl.changes,$,We,At).subscribe(()=>this._changeDetectorRef.markForCheck())}}return rt.\u0275fac=function($){return new($||rt)(m.Y36(ut),m.Y36(m.sBO),m.$8M("tabindex"))},rt.\u0275cmp=m.Xpm({type:rt,selectors:[["mat-datepicker-toggle"]],contentQueries:function($,We,At){if(1&$&&m.Suo(At,on,5),2&$){let Pt;m.iGM(Pt=m.CRH())&&(We._customIcon=Pt.first)}},viewQuery:function($,We){if(1&$&&m.Gf(N,5),2&$){let At;m.iGM(At=m.CRH())&&(We._button=At.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function($,We){1&$&&m.NdJ("click",function(Pt){return We._open(Pt)}),2&$&&(m.uIk("tabindex",null)("data-mat-calendar",We.datepicker?We.datepicker.id:null),m.ekj("mat-datepicker-toggle-active",We.datepicker&&We.datepicker.opened)("mat-accent",We.datepicker&&"accent"===We.datepicker.color)("mat-warn",We.datepicker&&"warn"===We.datepicker.color))},inputs:{datepicker:["for","datepicker"],tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[m.TTD],ngContentSelectors:Z,decls:4,vars:6,consts:[["mat-icon-button","","type","button",3,"disabled","disableRipple"],["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($,We){1&$&&(m.F$t(be),m.TgZ(0,"button",0,1),m.YNc(2,k,2,0,"svg",2),m.Hsn(3),m.qZA()),2&$&&(m.Q6J("disabled",We.disabled)("disableRipple",We.disableRipple),m.uIk("aria-haspopup",We.datepicker?"dialog":null)("aria-label",We.ariaLabel||We._intl.openCalendarLabel)("tabindex",We.disabled?-1:We.tabIndex),m.xp6(2),m.Q6J("ngIf",!We._customIcon))},dependencies:[M.O5,b.lW],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}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}"],encapsulation:2,changeDetection:0}),rt})(),pt=(()=>{class rt{}return rt.\u0275fac=function($){return new($||rt)},rt.\u0275mod=m.oAB({type:rt}),rt.\u0275inj=m.cJS({providers:[ut,re],imports:[M.ez,b.ot,A.U8,e.rt,C.eL,v.BQ,D.ZD]}),rt})()},65412:(Xe,ue,p)=>{"use strict";p.d(ue,{WI:()=>ce,uw:()=>nt,H8:()=>Ne,vA:()=>le,xY:()=>Se,Is:()=>fe,so:()=>be,uh:()=>_e});var e=p(12687),A=p(98184),C=p(83353),M=p(84080),m=p(36895),b=p(94650),D=p(29521),v=p(77579),R=p(49770),B=p(39646),w=p(40445),L=p(68675);function O(r,u){}class q{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0}}let z=(()=>{class r extends M.en{constructor(_,E,h,a,i,t,n,o){super(),this._elementRef=_,this._focusTrapFactory=E,this._config=a,this._interactivityChecker=i,this._ngZone=t,this._overlayRef=n,this._focusMonitor=o,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=s=>{this._portalOutlet.hasAttached();const l=this._portalOutlet.attachDomPortal(s);return this._contentAttached(),l},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=h}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(_){this._portalOutlet.hasAttached();const E=this._portalOutlet.attachComponentPortal(_);return this._contentAttached(),E}attachTemplatePortal(_){this._portalOutlet.hasAttached();const E=this._portalOutlet.attachTemplatePortal(_);return this._contentAttached(),E}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(_,E){this._interactivityChecker.isFocusable(_)||(_.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const h=()=>{_.removeEventListener("blur",h),_.removeEventListener("mousedown",h),_.removeAttribute("tabindex")};_.addEventListener("blur",h),_.addEventListener("mousedown",h)})),_.focus(E)}_focusByCssSelector(_,E){let h=this._elementRef.nativeElement.querySelector(_);h&&this._forceFocus(h,E)}_trapFocus(){const _=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||_.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(E=>{E||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const _=this._config.restoreFocus;let E=null;if("string"==typeof _?E=this._document.querySelector(_):"boolean"==typeof _?E=_?this._elementFocusedBeforeDialogWasOpened:null:_&&(E=_),this._config.restoreFocus&&E&&"function"==typeof E.focus){const h=(0,C.ht)(),a=this._elementRef.nativeElement;(!h||h===this._document.body||h===a||a.contains(h))&&(this._focusMonitor?(this._focusMonitor.focusVia(E,this._closeInteractionType),this._closeInteractionType=null):E.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const _=this._elementRef.nativeElement,E=(0,C.ht)();return _===E||_.contains(E)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,C.ht)())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return r.\u0275fac=function(_){return new(_||r)(b.Y36(b.SBq),b.Y36(e.qV),b.Y36(m.K0,8),b.Y36(q),b.Y36(e.ic),b.Y36(b.R0b),b.Y36(A.Iu),b.Y36(e.tE))},r.\u0275cmp=b.Xpm({type:r,selectors:[["cdk-dialog-container"]],viewQuery:function(_,E){if(1&_&&b.Gf(M.Pl,7),2&_){let h;b.iGM(h=b.CRH())&&(E._portalOutlet=h.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(_,E){2&_&&b.uIk("id",E._config.id||null)("role",E._config.role)("aria-modal",E._config.ariaModal)("aria-labelledby",E._config.ariaLabel?null:E._ariaLabelledBy)("aria-label",E._config.ariaLabel)("aria-describedby",E._config.ariaDescribedBy||null)},features:[b.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(_,E){1&_&&b.YNc(0,O,0,0,"ng-template",0)},dependencies:[M.Pl],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),r})();class ie{constructor(u,_){this.overlayRef=u,this.config=_,this.closed=new v.x,this.disableClose=_.disableClose,this.backdropClick=u.backdropClick(),this.keydownEvents=u.keydownEvents(),this.outsidePointerEvents=u.outsidePointerEvents(),this.id=_.id,this.keydownEvents.subscribe(E=>{E.keyCode===D.hY&&!this.disableClose&&!(0,D.Vb)(E)&&(E.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(u,_){if(this.containerInstance){const E=this.closed;this.containerInstance._closeInteractionType=_?.focusOrigin||"program",this.overlayRef.dispose(),E.next(u),E.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(u="",_=""){return this.overlayRef.updateSize({width:u,height:_}),this}addPanelClass(u){return this.overlayRef.addPanelClass(u),this}removePanelClass(u){return this.overlayRef.removePanelClass(u),this}}const Te=new b.OlP("DialogScrollStrategy"),pe=new b.OlP("DialogData"),Le=new b.OlP("DefaultDialogConfig"),W={provide:Te,deps:[A.aV],useFactory:function T(r){return()=>r.scrollStrategies.block()}};let F=0,V=(()=>{class r{constructor(_,E,h,a,i,t){this._overlay=_,this._injector=E,this._defaultOptions=h,this._parentDialog=a,this._overlayContainer=i,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new v.x,this._afterOpenedAtThisLevel=new v.x,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,R.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,L.O)(void 0))),this._scrollStrategy=t}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}open(_,E){(E={...this._defaultOptions||new q,...E}).id=E.id||"cdk-dialog-"+F++,E.id&&this.getDialogById(E.id);const a=this._getOverlayConfig(E),i=this._overlay.create(a),t=new ie(i,E),n=this._attachContainer(i,t,E);return t.containerInstance=n,this._attachDialogContent(_,t,n,E),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(t),t.closed.subscribe(()=>this._removeOpenDialog(t,!0)),this.afterOpened.next(t),t}closeAll(){ee(this.openDialogs,_=>_.close())}getDialogById(_){return this.openDialogs.find(E=>E.id===_)}ngOnDestroy(){ee(this._openDialogsAtThisLevel,_=>{!1===_.config.closeOnDestroy&&this._removeOpenDialog(_,!1)}),ee(this._openDialogsAtThisLevel,_=>_.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(_){const E=new A.X_({positionStrategy:_.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:_.scrollStrategy||this._scrollStrategy(),panelClass:_.panelClass,hasBackdrop:_.hasBackdrop,direction:_.direction,minWidth:_.minWidth,minHeight:_.minHeight,maxWidth:_.maxWidth,maxHeight:_.maxHeight,width:_.width,height:_.height,disposeOnNavigation:_.closeOnNavigation});return _.backdropClass&&(E.backdropClass=_.backdropClass),E}_attachContainer(_,E,h){var a,i;const t=null!==(a=h.injector)&&void 0!==a?a:null===(i=h.viewContainerRef)||void 0===i?void 0:i.injector,n=[{provide:q,useValue:h},{provide:ie,useValue:E},{provide:A.Iu,useValue:_}];let o;h.container?"function"==typeof h.container?o=h.container:(o=h.container.type,n.push(...h.container.providers(h))):o=z;const s=new M.C5(o,h.viewContainerRef,b.zs3.create({parent:t||this._injector,providers:n}),h.componentFactoryResolver);return _.attach(s).instance}_attachDialogContent(_,E,h,a){const i=this._createInjector(a,E,h);if(_ instanceof b.Rgc){let t={$implicit:a.data,dialogRef:E};a.templateContext&&(t={...t,..."function"==typeof a.templateContext?a.templateContext():a.templateContext}),h.attachTemplatePortal(new M.UE(_,null,t,i))}else{const t=h.attachComponentPortal(new M.C5(_,a.viewContainerRef,i,a.componentFactoryResolver));E.componentInstance=t.instance}}_createInjector(_,E,h){const a=_&&_.viewContainerRef&&_.viewContainerRef.injector,i=[{provide:pe,useValue:_.data},{provide:ie,useValue:E}];return _.providers&&("function"==typeof _.providers?i.push(..._.providers(E,_,h)):i.push(..._.providers)),_.direction&&(!a||!a.get(w.Is,null,b.XFs.Optional))&&i.push({provide:w.Is,useValue:{value:_.direction,change:(0,B.of)()}}),b.zs3.create({parent:_.injector||a||this._injector,providers:i})}_removeOpenDialog(_,E){const h=this.openDialogs.indexOf(_);h>-1&&(this.openDialogs.splice(h,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((a,i)=>{a?i.setAttribute("aria-hidden",a):i.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),E&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const _=this._overlayContainer.getContainerElement();if(_.parentElement){const E=_.parentElement.children;for(let h=E.length-1;h>-1;h--){const a=E[h];a!==_&&"SCRIPT"!==a.nodeName&&"STYLE"!==a.nodeName&&!a.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(a,a.getAttribute("aria-hidden")),a.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const _=this._parentDialog;return _?_._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return r.\u0275fac=function(_){return new(_||r)(b.LFG(A.aV),b.LFG(b.zs3),b.LFG(Le,8),b.LFG(r,12),b.LFG(A.Xj),b.LFG(Te))},r.\u0275prov=b.Yz7({token:r,factory:r.\u0275fac}),r})();function ee(r,u){let _=r.length;for(;_--;)u(r[_])}let Q=(()=>{class r{}return r.\u0275fac=function(_){return new(_||r)},r.\u0275mod=b.oAB({type:r}),r.\u0275inj=b.cJS({providers:[V,W],imports:[A.U8,M.eL,e.rt,M.eL]}),r})();var Ee=p(3238),ge=p(56451),ve=p(39300),De=p(95698),he=p(37340);function Ye(r,u){}const Be={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},se={dialogContainer:(0,he.X$)("dialogContainer",[(0,he.SB)("void, exit",(0,he.oB)({opacity:0,transform:"scale(0.7)"})),(0,he.SB)("enter",(0,he.oB)({transform:"none"})),(0,he.eR)("* => enter",(0,he.ru)([(0,he.jt)("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",(0,he.oB)({transform:"none",opacity:1})),(0,he.IO)("@*",(0,he.pV)(),{optional:!0})]),Be),(0,he.eR)("* => void, * => exit",(0,he.ru)([(0,he.jt)("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",(0,he.oB)({opacity:0})),(0,he.IO)("@*",(0,he.pV)(),{optional:!0})]),Be)])};class le{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="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0,this.enterAnimationDuration=Be.params.enterAnimationDuration,this.exitAnimationDuration=Be.params.exitAnimationDuration}}let N=(()=>{class r extends z{constructor(_,E,h,a,i,t,n,o){super(_,E,h,a,i,t,n,o),this._animationStateChanged=new b.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(_){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:_})}}return r.\u0275fac=function(_){return new(_||r)(b.Y36(b.SBq),b.Y36(e.qV),b.Y36(m.K0,8),b.Y36(le),b.Y36(e.ic),b.Y36(b.R0b),b.Y36(A.Iu),b.Y36(e.tE))},r.\u0275cmp=b.Xpm({type:r,selectors:[["ng-component"]],features:[b.qOj],decls:0,vars:0,template:function(_,E){},encapsulation:2}),r})(),k=(()=>{class r extends N{constructor(_,E,h,a,i,t,n,o,s){super(_,E,h,a,i,t,n,s),this._changeDetectorRef=o,this._state="enter"}_onAnimationDone({toState:_,totalTime:E}){"enter"===_?this._openAnimationDone(E):"exit"===_&&this._animationStateChanged.next({state:"closed",totalTime:E})}_onAnimationStart({toState:_,totalTime:E}){"enter"===_?this._animationStateChanged.next({state:"opening",totalTime:E}):("exit"===_||"void"===_)&&this._animationStateChanged.next({state:"closing",totalTime:E})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||Be.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||Be.params.exitAnimationDuration}}}}return r.\u0275fac=function(_){return new(_||r)(b.Y36(b.SBq),b.Y36(e.qV),b.Y36(m.K0,8),b.Y36(le),b.Y36(e.ic),b.Y36(b.R0b),b.Y36(A.Iu),b.Y36(b.sBO),b.Y36(e.tE))},r.\u0275cmp=b.Xpm({type:r,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(_,E){1&_&&b.WFA("@dialogContainer.start",function(a){return E._onAnimationStart(a)})("@dialogContainer.done",function(a){return E._onAnimationDone(a)}),2&_&&(b.Ikx("id",E._config.id),b.uIk("aria-modal",E._config.ariaModal)("role",E._config.role)("aria-labelledby",E._config.ariaLabel?null:E._ariaLabelledBy)("aria-label",E._config.ariaLabel)("aria-describedby",E._config.ariaDescribedBy||null),b.d8E("@dialogContainer",E._getAnimationState()))},features:[b.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(_,E){1&_&&b.YNc(0,Ye,0,0,"ng-template",0)},dependencies:[M.Pl],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.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.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}"],encapsulation:2,data:{animation:[se.dialogContainer]}}),r})();class be{constructor(u,_,E){this._ref=u,this._containerInstance=E,this._afterOpened=new v.x,this._beforeClosed=new v.x,this._state=0,this.disableClose=_.disableClose,this.id=u.id,E._animationStateChanged.pipe((0,ve.h)(h=>"opened"===h.state),(0,De.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),E._animationStateChanged.pipe((0,ve.h)(h=>"closed"===h.state),(0,De.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),u.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,ge.T)(this.backdropClick(),this.keydownEvents().pipe((0,ve.h)(h=>h.keyCode===D.hY&&!this.disableClose&&!(0,D.Vb)(h)))).subscribe(h=>{this.disableClose||(h.preventDefault(),function Z(r,u,_){r._closeInteractionType=u,r.close(_)}(this,"keydown"===h.type?"keyboard":"mouse"))})}close(u){this._result=u,this._containerInstance._animationStateChanged.pipe((0,ve.h)(_=>"closing"===_.state),(0,De.q)(1)).subscribe(_=>{this._beforeClosed.next(u),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),_.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(u){let _=this._ref.config.positionStrategy;return u&&(u.left||u.right)?u.left?_.left(u.left):_.right(u.right):_.centerHorizontally(),u&&(u.top||u.bottom)?u.top?_.top(u.top):_.bottom(u.bottom):_.centerVertically(),this._ref.updatePosition(),this}updateSize(u="",_=""){return this._ref.updateSize(u,_),this}addPanelClass(u){return this._ref.addPanelClass(u),this}removePanelClass(u){return this._ref.removePanelClass(u),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}const ce=new b.OlP("MatDialogData"),xe=new b.OlP("mat-dialog-default-options"),ot=new b.OlP("mat-dialog-scroll-strategy"),tt={provide:ot,deps:[A.aV],useFactory:function ut(r){return()=>r.scrollStrategies.block()}};let vt=0,X=(()=>{class r{constructor(_,E,h,a,i,t,n,o,s,l){this._overlay=_,this._defaultOptions=h,this._parentDialog=a,this._dialogRefConstructor=n,this._dialogContainerType=o,this._dialogDataToken=s,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new v.x,this._afterOpenedAtThisLevel=new v.x,this._idPrefix="mat-dialog-",this.afterAllClosed=(0,R.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,L.O)(void 0))),this._scrollStrategy=t,this._dialog=E.get(V)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const _=this._parentDialog;return _?_._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(_,E){let h;(E={...this._defaultOptions||new le,...E}).id=E.id||`${this._idPrefix}${vt++}`,E.scrollStrategy=E.scrollStrategy||this._scrollStrategy();const a=this._dialog.open(_,{...E,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:le,useValue:E},{provide:q,useValue:E}]},templateContext:()=>({dialogRef:h}),providers:(i,t,n)=>{var o;return h=new this._dialogRefConstructor(i,E,n),h.updatePosition(null===(o=E)||void 0===o?void 0:o.position),[{provide:this._dialogContainerType,useValue:n},{provide:this._dialogDataToken,useValue:t.data},{provide:this._dialogRefConstructor,useValue:h}]}});return h.componentInstance=a.componentInstance,this.openDialogs.push(h),this.afterOpened.next(h),h.afterClosed().subscribe(()=>{const i=this.openDialogs.indexOf(h);i>-1&&(this.openDialogs.splice(i,1),this.openDialogs.length||this._getAfterAllClosed().next())}),h}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(_){return this.openDialogs.find(E=>E.id===_)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(_){let E=_.length;for(;E--;)_[E].close()}}return r.\u0275fac=function(_){b.$Z()},r.\u0275prov=b.Yz7({token:r,factory:r.\u0275fac}),r})(),nt=(()=>{class r extends X{constructor(_,E,h,a,i,t,n,o){super(_,E,a,t,n,i,be,k,ce,o)}}return r.\u0275fac=function(_){return new(_||r)(b.LFG(A.aV),b.LFG(b.zs3),b.LFG(m.Ye,8),b.LFG(xe,8),b.LFG(ot),b.LFG(r,12),b.LFG(A.Xj),b.LFG(b.QbO,8))},r.\u0275prov=b.Yz7({token:r,factory:r.\u0275fac}),r})(),Ae=0,_e=(()=>{class r{constructor(_,E,h){this._dialogRef=_,this._elementRef=E,this._dialog=h,this.id="mat-dialog-title-"+Ae++}ngOnInit(){this._dialogRef||(this._dialogRef=function Ce(r,u){let _=r.nativeElement.parentElement;for(;_&&!_.classList.contains("mat-dialog-container");)_=_.parentElement;return _?u.find(E=>E.id===_.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const _=this._dialogRef._containerInstance;_&&!_._ariaLabelledBy&&(_._ariaLabelledBy=this.id)})}}return r.\u0275fac=function(_){return new(_||r)(b.Y36(be,8),b.Y36(b.SBq),b.Y36(nt))},r.\u0275dir=b.lG2({type:r,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(_,E){2&_&&b.Ikx("id",E.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),r})(),Se=(()=>{class r{}return r.\u0275fac=function(_){return new(_||r)},r.\u0275dir=b.lG2({type:r,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),r})(),Ne=(()=>{class r{constructor(){this.align="start"}}return r.\u0275fac=function(_){return new(_||r)},r.\u0275dir=b.lG2({type:r,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(_,E){2&_&&b.ekj("mat-dialog-actions-align-center","center"===E.align)("mat-dialog-actions-align-end","end"===E.align)},inputs:{align:"align"}}),r})(),fe=(()=>{class r{}return r.\u0275fac=function(_){return new(_||r)},r.\u0275mod=b.oAB({type:r}),r.\u0275inj=b.cJS({providers:[nt,tt],imports:[Q,A.U8,M.eL,Ee.BQ,Ee.BQ]}),r})()},44850:(Xe,ue,p)=>{"use strict";p.d(ue,{d:()=>M,t:()=>m});var e=p(94650),A=p(21281),C=p(3238);let M=(()=>{class b{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(v){this._vertical=(0,A.Ig)(v)}get inset(){return this._inset}set inset(v){this._inset=(0,A.Ig)(v)}}return b.\u0275fac=function(v){return new(v||b)},b.\u0275cmp=e.Xpm({type:b,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(v,R){2&v&&(e.uIk("aria-orientation",R.vertical?"vertical":"horizontal"),e.ekj("mat-divider-vertical",R.vertical)("mat-divider-horizontal",!R.vertical)("mat-divider-inset",R.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(v,R){},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}"],encapsulation:2,changeDetection:0}),b})(),m=(()=>{class b{}return b.\u0275fac=function(v){return new(v||b)},b.\u0275mod=e.oAB({type:b}),b.\u0275inj=e.cJS({imports:[C.BQ,C.BQ]}),b})()},37084:(Xe,ue,p)=>{"use strict";p.d(ue,{pp:()=>tt,To:()=>vt,ib:()=>be,HS:()=>le,u4:()=>Fe,yz:()=>ot,yK:()=>ut});var e=p(94650),A=p(95017),C=p(21281),M=p(77579),m=p(50727);let b=0;const D=new e.OlP("CdkAccordion");let v=(()=>{class X{constructor(){this._stateChanges=new M.x,this._openCloseAllActions=new M.x,this.id="cdk-accordion-"+b++,this._multi=!1}get multi(){return this._multi}set multi(Ae){this._multi=(0,C.Ig)(Ae)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(Ae){this._stateChanges.next(Ae)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return X.\u0275fac=function(Ae){return new(Ae||X)},X.\u0275dir=e.lG2({type:X,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[e._Bn([{provide:D,useExisting:X}]),e.TTD]}),X})(),R=0,B=(()=>{class X{constructor(Ae,ye,_e){this.accordion=Ae,this._changeDetectorRef=ye,this._expansionDispatcher=_e,this._openCloseAllSubscription=m.w0.EMPTY,this.closed=new e.vpe,this.opened=new e.vpe,this.destroyed=new e.vpe,this.expandedChange=new e.vpe,this.id="cdk-accordion-child-"+R++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=_e.listen((Se,Ne)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===Ne&&this.id!==Se&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(Ae){Ae=(0,C.Ig)(Ae),this._expanded!==Ae&&(this._expanded=Ae,this.expandedChange.emit(Ae),Ae?(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(Ae){this._disabled=(0,C.Ig)(Ae)}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(Ae=>{this.disabled||(this.expanded=Ae)})}}return X.\u0275fac=function(Ae){return new(Ae||X)(e.Y36(D,12),e.Y36(e.sBO),e.Y36(A.A8))},X.\u0275dir=e.lG2({type:X,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[e._Bn([{provide:D,useValue:void 0}])]}),X})(),w=(()=>{class X{}return X.\u0275fac=function(Ae){return new(Ae||X)},X.\u0275mod=e.oAB({type:X}),X.\u0275inj=e.cJS({}),X})();var L=p(84080),O=p(36895),q=p(3238),te=p(12687),z=p(71884),ie=p(68675),Te=p(39300),pe=p(95698),Le=p(29521),T=p(60515),W=p(56451),F=p(37340);const V=["body"];function ee(X,nt){}const Q=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],Ee=["mat-expansion-panel-header","*","mat-action-row"];function ge(X,nt){if(1&X&&e._UZ(0,"span",2),2&X){const Ae=e.oxw();e.Q6J("@indicatorRotate",Ae._getExpandedState())}}const ve=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],De=["mat-panel-title","mat-panel-description","*"],he=new e.OlP("MAT_ACCORDION"),Ye="225ms cubic-bezier(0.4,0.0,0.2,1)",Be={indicatorRotate:(0,F.X$)("indicatorRotate",[(0,F.SB)("collapsed, void",(0,F.oB)({transform:"rotate(0deg)"})),(0,F.SB)("expanded",(0,F.oB)({transform:"rotate(180deg)"})),(0,F.eR)("expanded <=> collapsed, void => collapsed",(0,F.jt)(Ye))]),bodyExpansion:(0,F.X$)("bodyExpansion",[(0,F.SB)("collapsed, void",(0,F.oB)({height:"0px",visibility:"hidden"})),(0,F.SB)("expanded",(0,F.oB)({height:"*",visibility:"visible"})),(0,F.eR)("expanded <=> collapsed, void => collapsed",(0,F.jt)(Ye))])},se=new e.OlP("MAT_EXPANSION_PANEL");let le=(()=>{class X{constructor(Ae,ye){this._template=Ae,this._expansionPanel=ye}}return X.\u0275fac=function(Ae){return new(Ae||X)(e.Y36(e.Rgc),e.Y36(se,8))},X.\u0275dir=e.lG2({type:X,selectors:[["ng-template","matExpansionPanelContent",""]]}),X})(),N=0;const k=new e.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let be=(()=>{class X extends B{constructor(Ae,ye,_e,Se,Ne,Ce,fe){super(Ae,ye,_e),this._viewContainerRef=Se,this._animationMode=Ce,this._hideToggle=!1,this.afterExpand=new e.vpe,this.afterCollapse=new e.vpe,this._inputChanges=new M.x,this._headerId="mat-expansion-panel-header-"+N++,this._bodyAnimationDone=new M.x,this.accordion=Ae,this._document=Ne,this._bodyAnimationDone.pipe((0,z.x)((r,u)=>r.fromState===u.fromState&&r.toState===u.toState)).subscribe(r=>{"void"!==r.fromState&&("expanded"===r.toState?this.afterExpand.emit():"collapsed"===r.toState&&this.afterCollapse.emit())}),fe&&(this.hideToggle=fe.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(Ae){this._hideToggle=(0,C.Ig)(Ae)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(Ae){this._togglePosition=Ae}_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._lazyContent._expansionPanel===this&&this.opened.pipe((0,ie.O)(null),(0,Te.h)(()=>this.expanded&&!this._portal),(0,pe.q)(1)).subscribe(()=>{this._portal=new L.UE(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(Ae){this._inputChanges.next(Ae)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const Ae=this._document.activeElement,ye=this._body.nativeElement;return Ae===ye||ye.contains(Ae)}return!1}}return X.\u0275fac=function(Ae){return new(Ae||X)(e.Y36(he,12),e.Y36(e.sBO),e.Y36(A.A8),e.Y36(e.s_b),e.Y36(O.K0),e.Y36(e.QbO,8),e.Y36(k,8))},X.\u0275cmp=e.Xpm({type:X,selectors:[["mat-expansion-panel"]],contentQueries:function(Ae,ye,_e){if(1&Ae&&e.Suo(_e,le,5),2&Ae){let Se;e.iGM(Se=e.CRH())&&(ye._lazyContent=Se.first)}},viewQuery:function(Ae,ye){if(1&Ae&&e.Gf(V,5),2&Ae){let _e;e.iGM(_e=e.CRH())&&(ye._body=_e.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(Ae,ye){2&Ae&&e.ekj("mat-expanded",ye.expanded)("_mat-animation-noopable","NoopAnimations"===ye._animationMode)("mat-expansion-panel-spacing",ye._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[e._Bn([{provide:he,useValue:void 0},{provide:se,useExisting:X}]),e.qOj,e.TTD],ngContentSelectors:Ee,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(Ae,ye){1&Ae&&(e.F$t(Q),e.Hsn(0),e.TgZ(1,"div",0,1),e.NdJ("@bodyExpansion.done",function(Se){return ye._bodyAnimationDone.next(Se)}),e.TgZ(3,"div",2),e.Hsn(4,1),e.YNc(5,ee,0,0,"ng-template",3),e.qZA(),e.Hsn(6,2),e.qZA()),2&Ae&&(e.xp6(1),e.Q6J("@bodyExpansion",ye._getExpandedState())("id",ye.id),e.uIk("aria-labelledby",ye._headerId),e.xp6(4),e.Q6J("cdkPortalOutlet",ye._portal))},dependencies:[L.Pl],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-content[style*="visibility: hidden"] *{visibility:hidden !important}.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 .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[Be.bodyExpansion]},changeDetection:0}),X})();class ce{}const xe=(0,q.sb)(ce);let ot=(()=>{class X extends xe{constructor(Ae,ye,_e,Se,Ne,Ce,fe){super(),this.panel=Ae,this._element=ye,this._focusMonitor=_e,this._changeDetectorRef=Se,this._animationMode=Ce,this._parentChangeSubscription=m.w0.EMPTY;const r=Ae.accordion?Ae.accordion._stateChanges.pipe((0,Te.h)(u=>!(!u.hideToggle&&!u.togglePosition))):T.E;this.tabIndex=parseInt(fe||"")||0,this._parentChangeSubscription=(0,W.T)(Ae.opened,Ae.closed,r,Ae._inputChanges.pipe((0,Te.h)(u=>!!(u.hideToggle||u.disabled||u.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),Ae.closed.pipe((0,Te.h)(()=>Ae._containsFocus())).subscribe(()=>_e.focusVia(ye,"program")),Ne&&(this.expandedHeight=Ne.expandedHeight,this.collapsedHeight=Ne.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 Ae=this._isExpanded();return Ae&&this.expandedHeight?this.expandedHeight:!Ae&&this.collapsedHeight?this.collapsedHeight:null}_keydown(Ae){switch(Ae.keyCode){case Le.L_:case Le.K5:(0,Le.Vb)(Ae)||(Ae.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(Ae))}}focus(Ae,ye){Ae?this._focusMonitor.focusVia(this._element,Ae,ye):this._element.nativeElement.focus(ye)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(Ae=>{Ae&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return X.\u0275fac=function(Ae){return new(Ae||X)(e.Y36(be,1),e.Y36(e.SBq),e.Y36(te.tE),e.Y36(e.sBO),e.Y36(k,8),e.Y36(e.QbO,8),e.$8M("tabindex"))},X.\u0275cmp=e.Xpm({type:X,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(Ae,ye){1&Ae&&e.NdJ("click",function(){return ye._toggle()})("keydown",function(Se){return ye._keydown(Se)}),2&Ae&&(e.uIk("id",ye.panel._headerId)("tabindex",ye.tabIndex)("aria-controls",ye._getPanelId())("aria-expanded",ye._isExpanded())("aria-disabled",ye.panel.disabled),e.Udp("height",ye._getHeaderHeight()),e.ekj("mat-expanded",ye._isExpanded())("mat-expansion-toggle-indicator-after","after"===ye._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===ye._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===ye._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[e.qOj],ngContentSelectors:De,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(Ae,ye){1&Ae&&(e.F$t(ve),e.TgZ(0,"span",0),e.Hsn(1),e.Hsn(2,1),e.Hsn(3,2),e.qZA(),e.YNc(4,ge,1,1,"span",1)),2&Ae&&(e.xp6(4),e.Q6J("ngIf",ye._showToggle()))},dependencies:[O.O5],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;align-items:center}[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}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[Be.indicatorRotate]},changeDetection:0}),X})(),Fe=(()=>{class X{}return X.\u0275fac=function(Ae){return new(Ae||X)},X.\u0275dir=e.lG2({type:X,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),X})(),ut=(()=>{class X{}return X.\u0275fac=function(Ae){return new(Ae||X)},X.\u0275dir=e.lG2({type:X,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),X})(),tt=(()=>{class X extends v{constructor(){super(...arguments),this._ownHeaders=new e.n_E,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(Ae){this._hideToggle=(0,C.Ig)(Ae)}ngAfterContentInit(){this._headers.changes.pipe((0,ie.O)(this._headers)).subscribe(Ae=>{this._ownHeaders.reset(Ae.filter(ye=>ye.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new te.Em(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(Ae){this._keyManager.onKeydown(Ae)}_handleHeaderFocus(Ae){this._keyManager.updateActiveItem(Ae)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return X.\u0275fac=function(){let nt;return function(ye){return(nt||(nt=e.n5z(X)))(ye||X)}}(),X.\u0275dir=e.lG2({type:X,selectors:[["mat-accordion"]],contentQueries:function(Ae,ye,_e){if(1&Ae&&e.Suo(_e,ot,5),2&Ae){let Se;e.iGM(Se=e.CRH())&&(ye._headers=Se)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(Ae,ye){2&Ae&&e.ekj("mat-accordion-multi",ye.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[e._Bn([{provide:he,useExisting:X}]),e.qOj]}),X})(),vt=(()=>{class X{}return X.\u0275fac=function(Ae){return new(Ae||X)},X.\u0275mod=e.oAB({type:X}),X.\u0275inj=e.cJS({imports:[O.ez,q.BQ,w,L.eL]}),X})()},59549:(Xe,ue,p)=>{"use strict";p.d(ue,{Eo:()=>le,G_:()=>Ne,KE:()=>Ce,R9:()=>X,TO:()=>Be,UY:()=>Fe,bx:()=>xe,hX:()=>ot,lN:()=>fe});var e=p(49643),A=p(36895),C=p(94650),M=p(3238),m=p(40445),b=p(21281),D=p(77579),v=p(56451),R=p(54968),B=p(68675),w=p(82722),L=p(95698),O=p(37340),q=p(83353);const te=["connectionContainer"],z=["inputContainer"],ie=["label"];function Te(r,u){1&r&&(C.ynx(0),C.TgZ(1,"div",14),C._UZ(2,"div",15)(3,"div",16)(4,"div",17),C.qZA(),C.TgZ(5,"div",18),C._UZ(6,"div",15)(7,"div",16)(8,"div",17),C.qZA(),C.BQk())}function pe(r,u){if(1&r){const _=C.EpF();C.TgZ(0,"div",19),C.NdJ("cdkObserveContent",function(){C.CHM(_);const h=C.oxw();return C.KtG(h.updateOutlineGap())}),C.Hsn(1,1),C.qZA()}if(2&r){const _=C.oxw();C.Q6J("cdkObserveContentDisabled","outline"!=_.appearance)}}function Le(r,u){if(1&r&&(C.ynx(0),C.Hsn(1,2),C.TgZ(2,"span"),C._uU(3),C.qZA(),C.BQk()),2&r){const _=C.oxw(2);C.xp6(3),C.Oqu(_._control.placeholder)}}function T(r,u){1&r&&C.Hsn(0,3,["*ngSwitchCase","true"])}function W(r,u){1&r&&(C.TgZ(0,"span",23),C._uU(1," *"),C.qZA())}function F(r,u){if(1&r){const _=C.EpF();C.TgZ(0,"label",20,21),C.NdJ("cdkObserveContent",function(){C.CHM(_);const h=C.oxw();return C.KtG(h.updateOutlineGap())}),C.YNc(2,Le,4,1,"ng-container",12),C.YNc(3,T,1,0,"ng-content",12),C.YNc(4,W,2,0,"span",22),C.qZA()}if(2&r){const _=C.oxw();C.ekj("mat-empty",_._control.empty&&!_._shouldAlwaysFloat())("mat-form-field-empty",_._control.empty&&!_._shouldAlwaysFloat())("mat-accent","accent"==_.color)("mat-warn","warn"==_.color),C.Q6J("cdkObserveContentDisabled","outline"!=_.appearance)("id",_._labelId)("ngSwitch",_._hasLabel()),C.uIk("for",_._control.id)("aria-owns",_._control.id),C.xp6(2),C.Q6J("ngSwitchCase",!1),C.xp6(1),C.Q6J("ngSwitchCase",!0),C.xp6(1),C.Q6J("ngIf",!_.hideRequiredMarker&&_._control.required&&!_._control.disabled)}}function V(r,u){1&r&&(C.TgZ(0,"div",24),C.Hsn(1,4),C.qZA())}function ee(r,u){if(1&r&&(C.TgZ(0,"div",25),C._UZ(1,"span",26),C.qZA()),2&r){const _=C.oxw();C.xp6(1),C.ekj("mat-accent","accent"==_.color)("mat-warn","warn"==_.color)}}function Q(r,u){if(1&r&&(C.TgZ(0,"div"),C.Hsn(1,5),C.qZA()),2&r){const _=C.oxw();C.Q6J("@transitionMessages",_._subscriptAnimationState)}}function Ee(r,u){if(1&r&&(C.TgZ(0,"div",30),C._uU(1),C.qZA()),2&r){const _=C.oxw(2);C.Q6J("id",_._hintLabelId),C.xp6(1),C.Oqu(_.hintLabel)}}function ge(r,u){if(1&r&&(C.TgZ(0,"div",27),C.YNc(1,Ee,2,2,"div",28),C.Hsn(2,6),C._UZ(3,"div",29),C.Hsn(4,7),C.qZA()),2&r){const _=C.oxw();C.Q6J("@transitionMessages",_._subscriptAnimationState),C.xp6(1),C.Q6J("ngIf",_.hintLabel)}}const ve=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],De=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let he=0;const Ye=new C.OlP("MatError");let Be=(()=>{class r{constructor(_,E){this.id="mat-error-"+he++,_||E.nativeElement.setAttribute("aria-live","polite")}}return r.\u0275fac=function(_){return new(_||r)(C.$8M("aria-live"),C.Y36(C.SBq))},r.\u0275dir=C.lG2({type:r,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(_,E){2&_&&C.uIk("id",E.id)},inputs:{id:"id"},features:[C._Bn([{provide:Ye,useExisting:r}])]}),r})();const se={transitionMessages:(0,O.X$)("transitionMessages",[(0,O.SB)("enter",(0,O.oB)({opacity:1,transform:"translateY(0%)"})),(0,O.eR)("void => enter",[(0,O.oB)({opacity:0,transform:"translateY(-5px)"}),(0,O.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let le=(()=>{class r{}return r.\u0275fac=function(_){return new(_||r)},r.\u0275dir=C.lG2({type:r}),r})(),Z=0;const ce=new C.OlP("MatHint");let xe=(()=>{class r{constructor(){this.align="start",this.id="mat-hint-"+Z++}}return r.\u0275fac=function(_){return new(_||r)},r.\u0275dir=C.lG2({type:r,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(_,E){2&_&&(C.uIk("id",E.id)("align",null),C.ekj("mat-form-field-hint-end","end"===E.align))},inputs:{align:"align",id:"id"},features:[C._Bn([{provide:ce,useExisting:r}])]}),r})(),ot=(()=>{class r{}return r.\u0275fac=function(_){return new(_||r)},r.\u0275dir=C.lG2({type:r,selectors:[["mat-label"]]}),r})(),Fe=(()=>{class r{}return r.\u0275fac=function(_){return new(_||r)},r.\u0275dir=C.lG2({type:r,selectors:[["mat-placeholder"]]}),r})();const ut=new C.OlP("MatPrefix"),vt=new C.OlP("MatSuffix");let X=(()=>{class r{}return r.\u0275fac=function(_){return new(_||r)},r.\u0275dir=C.lG2({type:r,selectors:[["","matSuffix",""]],features:[C._Bn([{provide:vt,useExisting:r}])]}),r})(),nt=0;const _e=(0,M.pj)(class{constructor(r){this._elementRef=r}},"primary"),Se=new C.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Ne=new C.OlP("MatFormField");let Ce=(()=>{class r extends _e{constructor(_,E,h,a,i,t,n){super(_),this._changeDetectorRef=E,this._dir=h,this._defaults=a,this._platform=i,this._ngZone=t,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new D.x,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+nt++,this._labelId="mat-form-field-label-"+nt++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==n,this.appearance=a?.appearance||"legacy",a&&(this._hideRequiredMarker=Boolean(a.hideRequiredMarker),a.color&&(this.color=this.defaultColor=a.color))}get appearance(){return this._appearance}set appearance(_){var E;const h=this._appearance;this._appearance=_||(null===(E=this._defaults)||void 0===E?void 0:E.appearance)||"legacy","outline"===this._appearance&&h!==_&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(_){this._hideRequiredMarker=(0,b.Ig)(_)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(_){this._hintLabel=_,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(_){_!==this._floatLabel&&(this._floatLabel=_||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(_){this._explicitFormFieldControl=_}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const _=this._control;_.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${_.controlType}`),_.stateChanges.pipe((0,B.O)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),_.ngControl&&_.ngControl.valueChanges&&_.ngControl.valueChanges.pipe((0,w.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,w.R)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,v.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,B.O)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,B.O)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,w.R)(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(_){const E=this._control?this._control.ngControl:null;return E&&E[_]}_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,(0,R.R)(this._label.nativeElement,"transitionend").pipe((0,L.q)(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 _=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&_.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const E=this._hintChildren?this._hintChildren.find(a=>"start"===a.align):null,h=this._hintChildren?this._hintChildren.find(a=>"end"===a.align):null;E?_.push(E.id):this._hintLabel&&_.push(this._hintLabelId),h&&_.push(h.id)}else this._errorChildren&&_.push(...this._errorChildren.map(E=>E.id));this._control.setDescribedByIds(_)}}_validateControlChild(){}updateOutlineGap(){const _=this._label?this._label.nativeElement:null,E=this._connectionContainerRef.nativeElement,h=".mat-form-field-outline-start",a=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!_||!_.children.length||!_.textContent.trim()){const s=E.querySelectorAll(`${h}, ${a}`);for(let l=0;l0?.75*S+10:0}for(let s=0;s{class r{}return r.\u0275fac=function(_){return new(_||r)},r.\u0275mod=C.oAB({type:r}),r.\u0275inj=C.cJS({imports:[A.ez,M.BQ,e.Q8,M.BQ]}),r})()},97392:(Xe,ue,p)=>{"use strict";p.d(ue,{Hw:()=>Z,Ps:()=>ce,jv:()=>Q});var e=p(94650),A=p(3238),C=p(21281),M=p(36895),m=p(39646),b=p(62843),D=p(4128),v=p(50727),R=p(18505),B=p(54004),w=p(70262),L=p(28746),O=p(13099),q=p(95698),te=p(80529),z=p(11481);const ie=["*"];let Te;function Le(xe){var ot;return(null===(ot=function pe(){if(void 0===Te&&(Te=null,typeof window<"u")){const xe=window;void 0!==xe.trustedTypes&&(Te=xe.trustedTypes.createPolicy("angular#components",{createHTML:ot=>ot}))}return Te}())||void 0===ot?void 0:ot.createHTML(xe))||xe}function T(xe){return Error(`Unable to find icon with the name "${xe}"`)}function F(xe){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${xe}".`)}function V(xe){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${xe}".`)}class ee{constructor(ot,Fe,ut){this.url=ot,this.svgText=Fe,this.options=ut}}let Q=(()=>{class xe{constructor(Fe,ut,tt,vt){this._httpClient=Fe,this._sanitizer=ut,this._errorHandler=vt,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=tt}addSvgIcon(Fe,ut,tt){return this.addSvgIconInNamespace("",Fe,ut,tt)}addSvgIconLiteral(Fe,ut,tt){return this.addSvgIconLiteralInNamespace("",Fe,ut,tt)}addSvgIconInNamespace(Fe,ut,tt,vt){return this._addSvgIconConfig(Fe,ut,new ee(tt,null,vt))}addSvgIconResolver(Fe){return this._resolvers.push(Fe),this}addSvgIconLiteralInNamespace(Fe,ut,tt,vt){const X=this._sanitizer.sanitize(e.q3G.HTML,tt);if(!X)throw V(tt);const nt=Le(X);return this._addSvgIconConfig(Fe,ut,new ee("",nt,vt))}addSvgIconSet(Fe,ut){return this.addSvgIconSetInNamespace("",Fe,ut)}addSvgIconSetLiteral(Fe,ut){return this.addSvgIconSetLiteralInNamespace("",Fe,ut)}addSvgIconSetInNamespace(Fe,ut,tt){return this._addSvgIconSetConfig(Fe,new ee(ut,null,tt))}addSvgIconSetLiteralInNamespace(Fe,ut,tt){const vt=this._sanitizer.sanitize(e.q3G.HTML,ut);if(!vt)throw V(ut);const X=Le(vt);return this._addSvgIconSetConfig(Fe,new ee("",X,tt))}registerFontClassAlias(Fe,ut=Fe){return this._fontCssClassesByAlias.set(Fe,ut),this}classNameForFontAlias(Fe){return this._fontCssClassesByAlias.get(Fe)||Fe}setDefaultFontSetClass(...Fe){return this._defaultFontSetClass=Fe,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(Fe){const ut=this._sanitizer.sanitize(e.q3G.RESOURCE_URL,Fe);if(!ut)throw F(Fe);const tt=this._cachedIconsByUrl.get(ut);return tt?(0,m.of)(ve(tt)):this._loadSvgIconFromConfig(new ee(Fe,null)).pipe((0,R.b)(vt=>this._cachedIconsByUrl.set(ut,vt)),(0,B.U)(vt=>ve(vt)))}getNamedSvgIcon(Fe,ut=""){const tt=De(ut,Fe);let vt=this._svgIconConfigs.get(tt);if(vt)return this._getSvgFromConfig(vt);if(vt=this._getIconConfigFromResolvers(ut,Fe),vt)return this._svgIconConfigs.set(tt,vt),this._getSvgFromConfig(vt);const X=this._iconSetConfigs.get(ut);return X?this._getSvgFromIconSetConfigs(Fe,X):(0,b._)(T(tt))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(Fe){return Fe.svgText?(0,m.of)(ve(this._svgElementFromConfig(Fe))):this._loadSvgIconFromConfig(Fe).pipe((0,B.U)(ut=>ve(ut)))}_getSvgFromIconSetConfigs(Fe,ut){const tt=this._extractIconWithNameFromAnySet(Fe,ut);if(tt)return(0,m.of)(tt);const vt=ut.filter(X=>!X.svgText).map(X=>this._loadSvgIconSetFromConfig(X).pipe((0,w.K)(nt=>{const ye=`Loading icon set URL: ${this._sanitizer.sanitize(e.q3G.RESOURCE_URL,X.url)} failed: ${nt.message}`;return this._errorHandler.handleError(new Error(ye)),(0,m.of)(null)})));return(0,D.D)(vt).pipe((0,B.U)(()=>{const X=this._extractIconWithNameFromAnySet(Fe,ut);if(!X)throw T(Fe);return X}))}_extractIconWithNameFromAnySet(Fe,ut){for(let tt=ut.length-1;tt>=0;tt--){const vt=ut[tt];if(vt.svgText&&vt.svgText.toString().indexOf(Fe)>-1){const X=this._svgElementFromConfig(vt),nt=this._extractSvgIconFromSet(X,Fe,vt.options);if(nt)return nt}}return null}_loadSvgIconFromConfig(Fe){return this._fetchIcon(Fe).pipe((0,R.b)(ut=>Fe.svgText=ut),(0,B.U)(()=>this._svgElementFromConfig(Fe)))}_loadSvgIconSetFromConfig(Fe){return Fe.svgText?(0,m.of)(null):this._fetchIcon(Fe).pipe((0,R.b)(ut=>Fe.svgText=ut))}_extractSvgIconFromSet(Fe,ut,tt){const vt=Fe.querySelector(`[id="${ut}"]`);if(!vt)return null;const X=vt.cloneNode(!0);if(X.removeAttribute("id"),"svg"===X.nodeName.toLowerCase())return this._setSvgAttributes(X,tt);if("symbol"===X.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(X),tt);const nt=this._svgElementFromString(Le(""));return nt.appendChild(X),this._setSvgAttributes(nt,tt)}_svgElementFromString(Fe){const ut=this._document.createElement("DIV");ut.innerHTML=Fe;const tt=ut.querySelector("svg");if(!tt)throw Error(" tag not found");return tt}_toSvgElement(Fe){const ut=this._svgElementFromString(Le("")),tt=Fe.attributes;for(let vt=0;vtLe(_e)),(0,L.x)(()=>this._inProgressUrlFetches.delete(nt)),(0,O.B)());return this._inProgressUrlFetches.set(nt,ye),ye}_addSvgIconConfig(Fe,ut,tt){return this._svgIconConfigs.set(De(Fe,ut),tt),this}_addSvgIconSetConfig(Fe,ut){const tt=this._iconSetConfigs.get(Fe);return tt?tt.push(ut):this._iconSetConfigs.set(Fe,[ut]),this}_svgElementFromConfig(Fe){if(!Fe.svgElement){const ut=this._svgElementFromString(Fe.svgText);this._setSvgAttributes(ut,Fe.options),Fe.svgElement=ut}return Fe.svgElement}_getIconConfigFromResolvers(Fe,ut){for(let tt=0;ttot?ot.pathname+ot.search:""}}}),N=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],k=N.map(xe=>`[${xe}]`).join(", "),be=/^url\(['"]?#(.*?)['"]?\)$/;let Z=(()=>{class xe extends Ye{constructor(Fe,ut,tt,vt,X,nt){super(Fe),this._iconRegistry=ut,this._location=vt,this._errorHandler=X,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=v.w0.EMPTY,nt&&(nt.color&&(this.color=this.defaultColor=nt.color),nt.fontSet&&(this.fontSet=nt.fontSet)),tt||Fe.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(Fe){this._inline=(0,C.Ig)(Fe)}get svgIcon(){return this._svgIcon}set svgIcon(Fe){Fe!==this._svgIcon&&(Fe?this._updateSvgIcon(Fe):this._svgIcon&&this._clearSvgElement(),this._svgIcon=Fe)}get fontSet(){return this._fontSet}set fontSet(Fe){const ut=this._cleanupFontValue(Fe);ut!==this._fontSet&&(this._fontSet=ut,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(Fe){const ut=this._cleanupFontValue(Fe);ut!==this._fontIcon&&(this._fontIcon=ut,this._updateFontIconClasses())}_splitIconName(Fe){if(!Fe)return["",""];const ut=Fe.split(":");switch(ut.length){case 1:return["",ut[0]];case 2:return ut;default:throw Error(`Invalid icon name: "${Fe}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const Fe=this._elementsWithExternalReferences;if(Fe&&Fe.size){const ut=this._location.getPathname();ut!==this._previousPath&&(this._previousPath=ut,this._prependPathToReferences(ut))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(Fe){this._clearSvgElement();const ut=this._location.getPathname();this._previousPath=ut,this._cacheChildrenWithExternalReferences(Fe),this._prependPathToReferences(ut),this._elementRef.nativeElement.appendChild(Fe)}_clearSvgElement(){const Fe=this._elementRef.nativeElement;let ut=Fe.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();ut--;){const tt=Fe.childNodes[ut];(1!==tt.nodeType||"svg"===tt.nodeName.toLowerCase())&&tt.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const Fe=this._elementRef.nativeElement,ut=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(tt=>tt.length>0);this._previousFontSetClass.forEach(tt=>Fe.classList.remove(tt)),ut.forEach(tt=>Fe.classList.add(tt)),this._previousFontSetClass=ut,this.fontIcon!==this._previousFontIconClass&&!ut.includes("mat-ligature-font")&&(this._previousFontIconClass&&Fe.classList.remove(this._previousFontIconClass),this.fontIcon&&Fe.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(Fe){return"string"==typeof Fe?Fe.trim().split(" ")[0]:Fe}_prependPathToReferences(Fe){const ut=this._elementsWithExternalReferences;ut&&ut.forEach((tt,vt)=>{tt.forEach(X=>{vt.setAttribute(X.name,`url('${Fe}#${X.value}')`)})})}_cacheChildrenWithExternalReferences(Fe){const ut=Fe.querySelectorAll(k),tt=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let vt=0;vt{const nt=ut[vt],Ae=nt.getAttribute(X),ye=Ae?Ae.match(be):null;if(ye){let _e=tt.get(nt);_e||(_e=[],tt.set(nt,_e)),_e.push({name:X,value:ye[1]})}})}_updateSvgIcon(Fe){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),Fe){const[ut,tt]=this._splitIconName(Fe);ut&&(this._svgNamespace=ut),tt&&(this._svgName=tt),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(tt,ut).pipe((0,q.q)(1)).subscribe(vt=>this._setSvgElement(vt),vt=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${ut}:${tt}! ${vt.message}`))})}}}return xe.\u0275fac=function(Fe){return new(Fe||xe)(e.Y36(e.SBq),e.Y36(Q),e.$8M("aria-hidden"),e.Y36(se),e.Y36(e.qLn),e.Y36(Be,8))},xe.\u0275cmp=e.Xpm({type:xe,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(Fe,ut){2&Fe&&(e.uIk("data-mat-icon-type",ut._usingFontIcon()?"font":"svg")("data-mat-icon-name",ut._svgName||ut.fontIcon)("data-mat-icon-namespace",ut._svgNamespace||ut.fontSet),e.ekj("mat-icon-inline",ut.inline)("mat-icon-no-color","primary"!==ut.color&&"accent"!==ut.color&&"warn"!==ut.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[e.qOj],ngContentSelectors:ie,decls:1,vars:0,template:function(Fe,ut){1&Fe&&(e.F$t(),e.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[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}"],encapsulation:2,changeDetection:0}),xe})(),ce=(()=>{class xe{}return xe.\u0275fac=function(Fe){return new(Fe||xe)},xe.\u0275mod=e.oAB({type:xe}),xe.\u0275inj=e.cJS({imports:[A.BQ,A.BQ]}),xe})()},284:(Xe,ue,p)=>{"use strict";p.d(ue,{Jk:()=>B,Nt:()=>q,c:()=>te});var e=p(21281),A=p(83353),C=p(39349),M=p(94650),m=p(24006),b=p(3238),D=p(59549),v=p(77579);const B=new M.OlP("MAT_INPUT_VALUE_ACCESSOR"),w=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let L=0;const O=(0,b.FD)(class{constructor(z,ie,Te,pe){this._defaultErrorStateMatcher=z,this._parentForm=ie,this._parentFormGroup=Te,this.ngControl=pe,this.stateChanges=new v.x}});let q=(()=>{class z extends O{constructor(Te,pe,Le,T,W,F,V,ee,Q,Ee){super(F,T,W,Le),this._elementRef=Te,this._platform=pe,this._autofillMonitor=ee,this._formField=Ee,this._uid="mat-input-"+L++,this.focused=!1,this.stateChanges=new v.x,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(De=>(0,A.qK)().has(De)),this._iOSKeyupListener=De=>{const he=De.target;!he.value&&0===he.selectionStart&&0===he.selectionEnd&&(he.setSelectionRange(1,1),he.setSelectionRange(0,0))};const ge=this._elementRef.nativeElement,ve=ge.nodeName.toLowerCase();this._inputValueAccessor=V||ge,this._previousNativeValue=this.value,this.id=this.id,pe.IOS&&Q.runOutsideAngular(()=>{Te.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===ve,this._isTextarea="textarea"===ve,this._isInFormField=!!Ee,this._isNativeSelect&&(this.controlType=ge.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(Te){this._disabled=(0,e.Ig)(Te),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(Te){this._id=Te||this._uid}get required(){var Te,pe,Le,T;return null!==(Te=null!==(pe=this._required)&&void 0!==pe?pe:null===(Le=this.ngControl)||void 0===Le||null===(T=Le.control)||void 0===T?void 0:T.hasValidator(m.kI.required))&&void 0!==Te&&Te}set required(Te){this._required=(0,e.Ig)(Te)}get type(){return this._type}set type(Te){this._type=Te||"text",this._validateType(),!this._isTextarea&&(0,A.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(Te){Te!==this.value&&(this._inputValueAccessor.value=Te,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(Te){this._readonly=(0,e.Ig)(Te)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(Te=>{this.autofilled=Te.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(Te){this._elementRef.nativeElement.focus(Te)}_focusChanged(Te){Te!==this.focused&&(this.focused=Te,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var Te;const pe=this._formField,Le=!pe||"legacy"!==pe.appearance||null!==(Te=pe._hasLabel)&&void 0!==Te&&Te.call(pe)?this.placeholder:null;if(Le!==this._previousPlaceholder){const T=this._elementRef.nativeElement;this._previousPlaceholder=Le,Le?T.setAttribute("placeholder",Le):T.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const Te=this._elementRef.nativeElement.value;this._previousNativeValue!==Te&&(this._previousNativeValue=Te,this.stateChanges.next())}_validateType(){w.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let Te=this._elementRef.nativeElement.validity;return Te&&Te.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const Te=this._elementRef.nativeElement,pe=Te.options[0];return this.focused||Te.multiple||!this.empty||!!(Te.selectedIndex>-1&&pe&&pe.label)}return this.focused||!this.empty}setDescribedByIds(Te){Te.length?this._elementRef.nativeElement.setAttribute("aria-describedby",Te.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const Te=this._elementRef.nativeElement;return this._isNativeSelect&&(Te.multiple||Te.size>1)}}return z.\u0275fac=function(Te){return new(Te||z)(M.Y36(M.SBq),M.Y36(A.t4),M.Y36(m.a5,10),M.Y36(m.F,8),M.Y36(m.sg,8),M.Y36(b.rD),M.Y36(B,10),M.Y36(C.Lq),M.Y36(M.R0b),M.Y36(D.G_,8))},z.\u0275dir=M.lG2({type:z,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(Te,pe){1&Te&&M.NdJ("focus",function(){return pe._focusChanged(!0)})("blur",function(){return pe._focusChanged(!1)})("input",function(){return pe._onInput()}),2&Te&&(M.Ikx("disabled",pe.disabled)("required",pe.required),M.uIk("id",pe.id)("data-placeholder",pe.placeholder)("name",pe.name||null)("readonly",pe.readonly&&!pe._isNativeSelect||null)("aria-invalid",pe.empty&&pe.required?null:pe.errorState)("aria-required",pe.required),M.ekj("mat-input-server",pe._isServer)("mat-native-select-inline",pe._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[M._Bn([{provide:D.Eo,useExisting:z}]),M.qOj,M.TTD]}),z})(),te=(()=>{class z{}return z.\u0275fac=function(Te){return new(Te||z)},z.\u0275mod=M.oAB({type:z}),z.\u0275inj=M.cJS({providers:[b.rD],imports:[C.Ky,D.lN,b.BQ,C.Ky,D.lN]}),z})()},96338:(Xe,ue,p)=>{"use strict";p.d(ue,{Tg:()=>De,i$:()=>Q,ie:()=>k});var e=p(36895),A=p(94650),C=p(3238),M=p(21281),m=p(77579),b=p(82722),L=(p(68675),p(12687),p(95017),p(29521),p(24006),p(44850));const O=["*"],te=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],z=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],T=(0,C.Id)((0,C.Kr)(class{})),W=(0,C.Kr)(class{}),F=new A.OlP("MatList"),V=new A.OlP("MatNavList");let Q=(()=>{class be extends T{constructor(ce){super(),this._elementRef=ce,this._stateChanges=new m.x,"action-list"===this._getListType()&&ce.nativeElement.classList.add("mat-action-list")}_getListType(){const ce=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===ce?"list":"mat-action-list"===ce?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return be.\u0275fac=function(ce){return new(ce||be)(A.Y36(A.SBq))},be.\u0275cmp=A.Xpm({type:be,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[A._Bn([{provide:F,useExisting:be}]),A.qOj,A.TTD],ngContentSelectors:O,decls:1,vars:0,template:function(ce,xe){1&ce&&(A.F$t(),A.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.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:rgba(0,0,0,0);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{display:block;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:rgba(0,0,0,0);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{display:block;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 .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-list-option:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:hover{outline:dotted 1px;z-index:1}.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}}'],encapsulation:2,changeDetection:0}),be})(),Ee=(()=>{class be{}return be.\u0275fac=function(ce){return new(ce||be)},be.\u0275dir=A.lG2({type:be,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),be})(),ge=(()=>{class be{}return be.\u0275fac=function(ce){return new(ce||be)},be.\u0275dir=A.lG2({type:be,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),be})(),De=(()=>{class be extends W{constructor(ce,xe,ot,Fe){super(),this._element=ce,this._isInteractiveList=!1,this._destroyed=new m.x,this._disabled=!1,this._isInteractiveList=!!(ot||Fe&&"action-list"===Fe._getListType()),this._list=ot||Fe;const ut=this._getHostElement();"button"===ut.nodeName.toLowerCase()&&!ut.hasAttribute("type")&&ut.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe((0,b.R)(this._destroyed)).subscribe(()=>{xe.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(ce){this._disabled=(0,M.Ig)(ce)}ngAfterContentInit(){(0,C.E0)(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 be.\u0275fac=function(ce){return new(ce||be)(A.Y36(A.SBq),A.Y36(A.sBO),A.Y36(V,8),A.Y36(F,8))},be.\u0275cmp=A.Xpm({type:be,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(ce,xe,ot){if(1&ce&&(A.Suo(ot,Ee,5),A.Suo(ot,ge,5),A.Suo(ot,C.X2,5)),2&ce){let Fe;A.iGM(Fe=A.CRH())&&(xe._avatar=Fe.first),A.iGM(Fe=A.CRH())&&(xe._icon=Fe.first),A.iGM(Fe=A.CRH())&&(xe._lines=Fe)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:4,hostBindings:function(ce,xe){2&ce&&A.ekj("mat-list-item-disabled",xe.disabled)("mat-list-item-with-avatar",xe._avatar||xe._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[A.qOj],ngContentSelectors:z,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(ce,xe){1&ce&&(A.F$t(te),A.TgZ(0,"span",0),A._UZ(1,"span",1),A.Hsn(2),A.TgZ(3,"span",2),A.Hsn(4,1),A.qZA(),A.Hsn(5,2),A.qZA()),2&ce&&(A.xp6(1),A.Q6J("matRippleTrigger",xe._getHostElement())("matRippleDisabled",xe._isRippleDisabled()))},dependencies:[C.wG],encapsulation:2,changeDetection:0}),be})(),k=(()=>{class be{}return be.\u0275fac=function(ce){return new(ce||be)},be.\u0275mod=A.oAB({type:be}),be.\u0275inj=A.cJS({imports:[C.uc,C.si,C.BQ,C.us,e.ez,C.uc,C.BQ,C.us,L.t]}),be})()},28255:(Xe,ue,p)=>{"use strict";p.d(ue,{OP:()=>Z,Tx:()=>Se,VK:()=>ut,p6:()=>_e});var e=p(12687),A=p(21281),C=p(29521),M=p(94650),m=p(77579),b=p(50727),D=p(56451),v=p(39646),R=p(53101),B=p(68675),w=p(63900),L=p(95698),O=p(82722),q=p(39300),te=p(91005),z=p(37340),ie=p(84080),Te=p(36895),pe=p(3238),Le=p(40445),T=p(98184),W=p(83353),F=p(67376);const V=["mat-menu-item",""];function ee(Ne,Ce){1&Ne&&(M.O4$(),M.TgZ(0,"svg",2),M._UZ(1,"polygon",3),M.qZA())}const Q=["*"];function Ee(Ne,Ce){if(1&Ne){const fe=M.EpF();M.TgZ(0,"div",0),M.NdJ("keydown",function(u){M.CHM(fe);const _=M.oxw();return M.KtG(_._handleKeydown(u))})("click",function(){M.CHM(fe);const u=M.oxw();return M.KtG(u.closed.emit("click"))})("@transformMenu.start",function(u){M.CHM(fe);const _=M.oxw();return M.KtG(_._onAnimationStart(u))})("@transformMenu.done",function(u){M.CHM(fe);const _=M.oxw();return M.KtG(_._onAnimationDone(u))}),M.TgZ(1,"div",1),M.Hsn(2),M.qZA()()}if(2&Ne){const fe=M.oxw();M.Q6J("id",fe.panelId)("ngClass",fe._classList)("@transformMenu",fe._panelAnimationState),M.uIk("aria-label",fe.ariaLabel||null)("aria-labelledby",fe.ariaLabelledby||null)("aria-describedby",fe.ariaDescribedby||null)}}const ge={transformMenu:(0,z.X$)("transformMenu",[(0,z.SB)("void",(0,z.oB)({opacity:0,transform:"scale(0.8)"})),(0,z.eR)("void => enter",(0,z.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,z.oB)({opacity:1,transform:"scale(1)"}))),(0,z.eR)("* => void",(0,z.jt)("100ms 25ms linear",(0,z.oB)({opacity:0})))]),fadeInItems:(0,z.X$)("fadeInItems",[(0,z.SB)("showing",(0,z.oB)({opacity:1})),(0,z.eR)("void => *",[(0,z.oB)({opacity:0}),(0,z.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},he=new M.OlP("MatMenuContent"),k=new M.OlP("MAT_MENU_PANEL"),be=(0,pe.Kr)((0,pe.Id)(class{}));let Z=(()=>{class Ne extends be{constructor(fe,r,u,_,E){var h;super(),this._elementRef=fe,this._document=r,this._focusMonitor=u,this._parentMenu=_,this._changeDetectorRef=E,this.role="menuitem",this._hovered=new m.x,this._focused=new m.x,this._highlighted=!1,this._triggersSubmenu=!1,null==_||null===(h=_.addItem)||void 0===h||h.call(_,this)}focus(fe,r){this._focusMonitor&&fe?this._focusMonitor.focusVia(this._getHostElement(),fe,r):this._getHostElement().focus(r),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(fe){this.disabled&&(fe.preventDefault(),fe.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var fe;const r=this._elementRef.nativeElement.cloneNode(!0),u=r.querySelectorAll("mat-icon, .material-icons");for(let _=0;_{class Ne{constructor(fe,r,u,_){this._elementRef=fe,this._ngZone=r,this._defaultOptions=u,this._changeDetectorRef=_,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new M.n_E,this._tabSubscription=b.w0.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new m.x,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new M.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+ot++}get xPosition(){return this._xPosition}set xPosition(fe){this._xPosition=fe,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(fe){this._yPosition=fe,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(fe){this._overlapTrigger=(0,A.Ig)(fe)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(fe){this._hasBackdrop=(0,A.Ig)(fe)}set panelClass(fe){const r=this._previousPanelClass;r&&r.length&&r.split(" ").forEach(u=>{this._classList[u]=!1}),this._previousPanelClass=fe,fe&&fe.length&&(fe.split(" ").forEach(u=>{this._classList[u]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(fe){this.panelClass=fe}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new e.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,B.O)(this._directDescendantItems),(0,w.w)(fe=>(0,D.T)(...fe.map(r=>r._focused)))).subscribe(fe=>this._keyManager.updateActiveItem(fe)),this._directDescendantItems.changes.subscribe(fe=>{var r;const u=this._keyManager;if("enter"===this._panelAnimationState&&null!==(r=u.activeItem)&&void 0!==r&&r._hasFocus()){const _=fe.toArray(),E=Math.max(0,Math.min(_.length-1,u.activeItemIndex||0));_[E]&&!_[E].disabled?u.setActiveItem(E):u.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe((0,B.O)(this._directDescendantItems),(0,w.w)(r=>(0,D.T)(...r.map(u=>u._hovered))))}addItem(fe){}removeItem(fe){}_handleKeydown(fe){const r=fe.keyCode,u=this._keyManager;switch(r){case C.hY:(0,C.Vb)(fe)||(fe.preventDefault(),this.closed.emit("keydown"));break;case C.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case C.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(r===C.LH||r===C.JH)&&u.setFocusOrigin("keyboard"),void u.onKeydown(fe)}fe.stopPropagation()}focusFirstItem(fe="program"){this._ngZone.onStable.pipe((0,L.q)(1)).subscribe(()=>{let r=null;if(this._directDescendantItems.length&&(r=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!r||!r.contains(document.activeElement)){const u=this._keyManager;u.setFocusOrigin(fe).setFirstItemActive(),!u.activeItem&&r&&r.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(fe){const r=Math.min(this._baseElevation+fe,24),u=`${this._elevationPrefix}${r}`,_=Object.keys(this._classList).find(E=>E.startsWith(this._elevationPrefix));(!_||_===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[u]=!0,this._previousElevation=u)}setPositionClasses(fe=this.xPosition,r=this.yPosition){var u;const _=this._classList;_["mat-menu-before"]="before"===fe,_["mat-menu-after"]="after"===fe,_["mat-menu-above"]="above"===r,_["mat-menu-below"]="below"===r,null===(u=this._changeDetectorRef)||void 0===u||u.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(fe){this._animationDone.next(fe),this._isAnimating=!1}_onAnimationStart(fe){this._isAnimating=!0,"enter"===fe.toState&&0===this._keyManager.activeItemIndex&&(fe.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,B.O)(this._allItems)).subscribe(fe=>{this._directDescendantItems.reset(fe.filter(r=>r._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return Ne.\u0275fac=function(fe){return new(fe||Ne)(M.Y36(M.SBq),M.Y36(M.R0b),M.Y36(ce),M.Y36(M.sBO))},Ne.\u0275dir=M.lG2({type:Ne,contentQueries:function(fe,r,u){if(1&fe&&(M.Suo(u,he,5),M.Suo(u,Z,5),M.Suo(u,Z,4)),2&fe){let _;M.iGM(_=M.CRH())&&(r.lazyContent=_.first),M.iGM(_=M.CRH())&&(r._allItems=_),M.iGM(_=M.CRH())&&(r.items=_)}},viewQuery:function(fe,r){if(1&fe&&M.Gf(M.Rgc,5),2&fe){let u;M.iGM(u=M.CRH())&&(r.templateRef=u.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),Ne})(),ut=(()=>{class Ne extends Fe{constructor(fe,r,u,_){super(fe,r,u,_),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return Ne.\u0275fac=function(fe){return new(fe||Ne)(M.Y36(M.SBq),M.Y36(M.R0b),M.Y36(ce),M.Y36(M.sBO))},Ne.\u0275cmp=M.Xpm({type:Ne,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(fe,r){2&fe&&M.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[M._Bn([{provide:k,useExisting:Ne}]),M.qOj],ngContentSelectors:Q,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(fe,r){1&fe&&(M.F$t(),M.YNc(0,Ee,3,6,"ng-template"))},dependencies:[Te.mk],styles:['mat-menu{display:none}.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;position:relative}.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;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}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}'],encapsulation:2,data:{animation:[ge.transformMenu,ge.fadeInItems]},changeDetection:0}),Ne})();const tt=new M.OlP("mat-menu-scroll-strategy"),X={provide:tt,deps:[T.aV],useFactory:function vt(Ne){return()=>Ne.scrollStrategies.reposition()}},Ae=(0,W.i$)({passive:!0});let ye=(()=>{class Ne{constructor(fe,r,u,_,E,h,a,i,t){this._overlay=fe,this._element=r,this._viewContainerRef=u,this._menuItemInstance=h,this._dir=a,this._focusMonitor=i,this._ngZone=t,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=b.w0.EMPTY,this._hoverSubscription=b.w0.EMPTY,this._menuCloseSubscription=b.w0.EMPTY,this._handleTouchStart=n=>{(0,e.yG)(n)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new M.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new M.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=_,this._parentMaterialMenu=E instanceof Fe?E:void 0,r.nativeElement.addEventListener("touchstart",this._handleTouchStart,Ae),h&&(h._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(fe){this.menu=fe}get menu(){return this._menu}set menu(fe){fe!==this._menu&&(this._menu=fe,this._menuCloseSubscription.unsubscribe(),fe&&(this._menuCloseSubscription=fe.close.subscribe(r=>{this._destroyMenu(r),("click"===r||"tab"===r)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(r)})))}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Ae),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(){const fe=this.menu;if(this._menuOpen||!fe)return;const r=this._createOverlay(fe),u=r.getConfig(),_=u.positionStrategy;this._setPosition(fe,_),u.hasBackdrop=fe.hasBackdrop??!this.triggersSubmenu(),r.attach(this._getPortal(fe)),fe.lazyContent&&fe.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(fe),fe instanceof Fe&&(fe._startAnimation(),fe._directDescendantItems.changes.pipe((0,O.R)(fe.close)).subscribe(()=>{_.withLockedPosition(!1).reapplyLastPosition(),_.withLockedPosition(!0)}))}closeMenu(){var fe;null===(fe=this.menu)||void 0===fe||fe.close.emit()}focus(fe,r){this._focusMonitor&&fe?this._focusMonitor.focusVia(this._element,fe,r):this._element.nativeElement.focus(r)}updatePosition(){var fe;null===(fe=this._overlayRef)||void 0===fe||fe.updatePosition()}_destroyMenu(fe){if(!this._overlayRef||!this.menuOpen)return;const r=this.menu;var u;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===fe||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,r instanceof Fe?(r._resetAnimation(),r.lazyContent?r._animationDone.pipe((0,q.h)(_=>"void"===_.toState),(0,L.q)(1),(0,O.R)(r.lazyContent._attached)).subscribe({next:()=>r.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),null==r||null===(u=r.lazyContent)||void 0===u||u.detach())}_initMenu(fe){fe.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,fe.direction=this.dir,this._setMenuElevation(fe),fe.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(fe){if(fe.setElevation){let r=0,u=fe.parentMenu;for(;u;)r++,u=u.parentMenu;fe.setElevation(r)}}_setIsMenuOpen(fe){this._menuOpen=fe,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(fe)}_createOverlay(fe){if(!this._overlayRef){const r=this._getOverlayConfig(fe);this._subscribeToPositions(fe,r.positionStrategy),this._overlayRef=this._overlay.create(r),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(fe){return new T.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:fe.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:fe.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(fe,r){fe.setPositionClasses&&r.positionChanges.subscribe(u=>{const _="start"===u.connectionPair.overlayX?"after":"before",E="top"===u.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>fe.setPositionClasses(_,E)):fe.setPositionClasses(_,E)})}_setPosition(fe,r){let[u,_]="before"===fe.xPosition?["end","start"]:["start","end"],[E,h]="above"===fe.yPosition?["bottom","top"]:["top","bottom"],[a,i]=[E,h],[t,n]=[u,_],o=0;if(this.triggersSubmenu()){if(n=u="before"===fe.xPosition?"start":"end",_=t="end"===u?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const s=this._parentMaterialMenu.items.first;this._parentInnerPadding=s?s._getHostElement().offsetTop:0}o="bottom"===E?this._parentInnerPadding:-this._parentInnerPadding}}else fe.overlapTrigger||(a="top"===E?"bottom":"top",i="top"===h?"bottom":"top");r.withPositions([{originX:u,originY:a,overlayX:t,overlayY:E,offsetY:o},{originX:_,originY:a,overlayX:n,overlayY:E,offsetY:o},{originX:u,originY:i,overlayX:t,overlayY:h,offsetY:-o},{originX:_,originY:i,overlayX:n,overlayY:h,offsetY:-o}])}_menuClosingActions(){const fe=this._overlayRef.backdropClick(),r=this._overlayRef.detachments(),u=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,v.of)(),_=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,q.h)(E=>E!==this._menuItemInstance),(0,q.h)(()=>this._menuOpen)):(0,v.of)();return(0,D.T)(fe,u,_,r)}_handleMousedown(fe){(0,e.X6)(fe)||(this._openedBy=0===fe.button?"mouse":void 0,this.triggersSubmenu()&&fe.preventDefault())}_handleKeydown(fe){const r=fe.keyCode;(r===C.K5||r===C.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(r===C.SV&&"ltr"===this.dir||r===C.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(fe){this.triggersSubmenu()?(fe.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,q.h)(fe=>fe===this._menuItemInstance&&!fe.disabled),(0,te.g)(0,R.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Fe&&this.menu._isAnimating?this.menu._animationDone.pipe((0,L.q)(1),(0,te.g)(0,R.E),(0,O.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(fe){return(!this._portal||this._portal.templateRef!==fe.templateRef)&&(this._portal=new ie.UE(fe.templateRef,this._viewContainerRef)),this._portal}}return Ne.\u0275fac=function(fe){return new(fe||Ne)(M.Y36(T.aV),M.Y36(M.SBq),M.Y36(M.s_b),M.Y36(tt),M.Y36(k,8),M.Y36(Z,10),M.Y36(Le.Is,8),M.Y36(e.tE),M.Y36(M.R0b))},Ne.\u0275dir=M.lG2({type:Ne,hostVars:3,hostBindings:function(fe,r){1&fe&&M.NdJ("click",function(_){return r._handleClick(_)})("mousedown",function(_){return r._handleMousedown(_)})("keydown",function(_){return r._handleKeydown(_)}),2&fe&&M.uIk("aria-haspopup",r.menu?"menu":null)("aria-expanded",r.menuOpen||null)("aria-controls",r.menuOpen?r.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),Ne})(),_e=(()=>{class Ne extends ye{}return Ne.\u0275fac=function(){let Ce;return function(r){return(Ce||(Ce=M.n5z(Ne)))(r||Ne)}}(),Ne.\u0275dir=M.lG2({type:Ne,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[M.qOj]}),Ne})(),Se=(()=>{class Ne{}return Ne.\u0275fac=function(fe){return new(fe||Ne)},Ne.\u0275mod=M.oAB({type:Ne}),Ne.\u0275inj=M.cJS({providers:[X],imports:[Te.ez,pe.BQ,pe.si,T.U8,F.ZD,pe.BQ]}),Ne})()},98739:(Xe,ue,p)=>{"use strict";p.d(ue,{NW:()=>V,TU:()=>ee,ye:()=>z});var e=p(36895),A=p(94650),C=p(3238),M=p(4859),m=p(84385),b=p(10266),D=p(21281),v=p(77579),R=p(59549);function B(Q,Ee){if(1&Q&&(A.TgZ(0,"mat-option",19),A._uU(1),A.qZA()),2&Q){const ge=Ee.$implicit;A.Q6J("value",ge),A.xp6(1),A.hij(" ",ge," ")}}function w(Q,Ee){if(1&Q){const ge=A.EpF();A.TgZ(0,"mat-form-field",16)(1,"mat-select",17),A.NdJ("selectionChange",function(De){A.CHM(ge);const he=A.oxw(2);return A.KtG(he._changePageSize(De.value))}),A.YNc(2,B,2,2,"mat-option",18),A.qZA()()}if(2&Q){const ge=A.oxw(2);A.Q6J("appearance",ge._formFieldAppearance)("color",ge.color),A.xp6(1),A.Q6J("value",ge.pageSize)("disabled",ge.disabled)("panelClass",ge.selectConfig.panelClass||"")("disableOptionCentering",ge.selectConfig.disableOptionCentering)("aria-label",ge._intl.itemsPerPageLabel),A.xp6(1),A.Q6J("ngForOf",ge._displayedPageSizeOptions)}}function L(Q,Ee){if(1&Q&&(A.TgZ(0,"div",20),A._uU(1),A.qZA()),2&Q){const ge=A.oxw(2);A.xp6(1),A.Oqu(ge.pageSize)}}function O(Q,Ee){if(1&Q&&(A.TgZ(0,"div",12)(1,"div",13),A._uU(2),A.qZA(),A.YNc(3,w,3,8,"mat-form-field",14),A.YNc(4,L,2,1,"div",15),A.qZA()),2&Q){const ge=A.oxw();A.xp6(2),A.hij(" ",ge._intl.itemsPerPageLabel," "),A.xp6(1),A.Q6J("ngIf",ge._displayedPageSizeOptions.length>1),A.xp6(1),A.Q6J("ngIf",ge._displayedPageSizeOptions.length<=1)}}function q(Q,Ee){if(1&Q){const ge=A.EpF();A.TgZ(0,"button",21),A.NdJ("click",function(){A.CHM(ge);const De=A.oxw();return A.KtG(De.firstPage())}),A.O4$(),A.TgZ(1,"svg",7),A._UZ(2,"path",22),A.qZA()()}if(2&Q){const ge=A.oxw();A.Q6J("matTooltip",ge._intl.firstPageLabel)("matTooltipDisabled",ge._previousButtonsDisabled())("matTooltipPosition","above")("disabled",ge._previousButtonsDisabled()),A.uIk("aria-label",ge._intl.firstPageLabel)}}function te(Q,Ee){if(1&Q){const ge=A.EpF();A.O4$(),A.kcU(),A.TgZ(0,"button",23),A.NdJ("click",function(){A.CHM(ge);const De=A.oxw();return A.KtG(De.lastPage())}),A.O4$(),A.TgZ(1,"svg",7),A._UZ(2,"path",24),A.qZA()()}if(2&Q){const ge=A.oxw();A.Q6J("matTooltip",ge._intl.lastPageLabel)("matTooltipDisabled",ge._nextButtonsDisabled())("matTooltipPosition","above")("disabled",ge._nextButtonsDisabled()),A.uIk("aria-label",ge._intl.lastPageLabel)}}let z=(()=>{class Q{constructor(){this.changes=new v.x,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(ge,ve,De)=>{if(0==De||0==ve)return`0 of ${De}`;const he=ge*ve;return`${he+1} \u2013 ${he<(De=Math.max(De,0))?Math.min(he+ve,De):he+ve} of ${De}`}}}return Q.\u0275fac=function(ge){return new(ge||Q)},Q.\u0275prov=A.Yz7({token:Q,factory:Q.\u0275fac,providedIn:"root"}),Q})();const Te={provide:z,deps:[[new A.FiY,new A.tp0,z]],useFactory:function ie(Q){return Q||new z}},T=new A.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),W=(0,C.Id)((0,C.dB)(class{}));let F=(()=>{class Q extends W{constructor(ge,ve,De){if(super(),this._intl=ge,this._changeDetectorRef=ve,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.selectConfig={},this.page=new A.vpe,this._intlChanges=ge.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),De){const{pageSize:he,pageSizeOptions:Ye,hidePageSize:Be,showFirstLastButtons:se}=De;null!=he&&(this._pageSize=he),null!=Ye&&(this._pageSizeOptions=Ye),null!=Be&&(this._hidePageSize=Be),null!=se&&(this._showFirstLastButtons=se)}}get pageIndex(){return this._pageIndex}set pageIndex(ge){this._pageIndex=Math.max((0,D.su)(ge),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(ge){this._length=(0,D.su)(ge),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(ge){this._pageSize=Math.max((0,D.su)(ge),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(ge){this._pageSizeOptions=(ge||[]).map(ve=>(0,D.su)(ve)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(ge){this._hidePageSize=(0,D.Ig)(ge)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(ge){this._showFirstLastButtons=(0,D.Ig)(ge)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const ge=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(ge)}previousPage(){if(!this.hasPreviousPage())return;const ge=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(ge)}firstPage(){if(!this.hasPreviousPage())return;const ge=this.pageIndex;this.pageIndex=0,this._emitPageEvent(ge)}lastPage(){if(!this.hasNextPage())return;const ge=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(ge)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const ge=this.getNumberOfPages()-1;return this.pageIndexge-ve),this._changeDetectorRef.markForCheck())}_emitPageEvent(ge){this.page.emit({previousPageIndex:ge,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return Q.\u0275fac=function(ge){A.$Z()},Q.\u0275dir=A.lG2({type:Q,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",selectConfig:"selectConfig"},outputs:{page:"page"},features:[A.qOj]}),Q})(),V=(()=>{class Q extends F{constructor(ge,ve,De){super(ge,ve,De),De&&null!=De.formFieldAppearance&&(this._formFieldAppearance=De.formFieldAppearance)}}return Q.\u0275fac=function(ge){return new(ge||Q)(A.Y36(z),A.Y36(A.sBO),A.Y36(T,8))},Q.\u0275cmp=A.Xpm({type:Q,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[A.qOj],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","panelClass","disableOptionCentering","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(ge,ve){1&ge&&(A.TgZ(0,"div",0)(1,"div",1),A.YNc(2,O,5,3,"div",2),A.TgZ(3,"div",3)(4,"div",4),A._uU(5),A.qZA(),A.YNc(6,q,3,5,"button",5),A.TgZ(7,"button",6),A.NdJ("click",function(){return ve.previousPage()}),A.O4$(),A.TgZ(8,"svg",7),A._UZ(9,"path",8),A.qZA()(),A.kcU(),A.TgZ(10,"button",9),A.NdJ("click",function(){return ve.nextPage()}),A.O4$(),A.TgZ(11,"svg",7),A._UZ(12,"path",10),A.qZA()(),A.YNc(13,te,3,5,"button",11),A.qZA()()()),2&ge&&(A.xp6(2),A.Q6J("ngIf",!ve.hidePageSize),A.xp6(3),A.hij(" ",ve._intl.getRangeLabel(ve.pageIndex,ve.pageSize,ve.length)," "),A.xp6(1),A.Q6J("ngIf",ve.showFirstLastButtons),A.xp6(1),A.Q6J("matTooltip",ve._intl.previousPageLabel)("matTooltipDisabled",ve._previousButtonsDisabled())("matTooltipPosition","above")("disabled",ve._previousButtonsDisabled()),A.uIk("aria-label",ve._intl.previousPageLabel),A.xp6(3),A.Q6J("matTooltip",ve._intl.nextPageLabel)("matTooltipDisabled",ve._nextButtonsDisabled())("matTooltipPosition","above")("disabled",ve._nextButtonsDisabled()),A.uIk("aria-label",ve._intl.nextPageLabel),A.xp6(3),A.Q6J("ngIf",ve.showFirstLastButtons))},dependencies:[e.sg,e.O5,M.lW,R.KE,m.gD,C.ey,b.gM],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{display:inline-block;width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}"],encapsulation:2,changeDetection:0}),Q})(),ee=(()=>{class Q{}return Q.\u0275fac=function(ge){return new(ge||Q)},Q.\u0275mod=A.oAB({type:Q}),Q.\u0275inj=A.cJS({providers:[Te],imports:[e.ez,M.ot,m.LD,b.AV,C.BQ]}),Q})()},73162:(Xe,ue,p)=>{"use strict";p.d(ue,{Cv:()=>L});var e=p(94650),A=p(36895),C=p(3238);let L=(()=>{class O{}return O.\u0275fac=function(te){return new(te||O)},O.\u0275mod=e.oAB({type:O}),O.\u0275inj=e.cJS({imports:[A.ez,C.BQ,C.BQ]}),O})()},51572:(Xe,ue,p)=>{"use strict";p.d(ue,{Cq:()=>ie,Ou:()=>z});var e=p(21281),A=p(83353),C=p(67376),M=p(36895),m=p(94650),b=p(3238),D=p(50727);function v(pe,Le){if(1&pe&&(m.O4$(),m._UZ(0,"circle",4)),2&pe){const T=m.oxw(),W=m.MAs(1);m.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+T._spinnerAnimationLabel)("stroke-dashoffset",T._getStrokeDashOffset(),"px")("stroke-dasharray",T._getStrokeCircumference(),"px")("stroke-width",T._getCircleStrokeWidth(),"%")("transform-origin",T._getCircleTransformOrigin(W)),m.uIk("r",T._getCircleRadius())}}function R(pe,Le){if(1&pe&&(m.O4$(),m._UZ(0,"circle",4)),2&pe){const T=m.oxw(),W=m.MAs(1);m.Udp("stroke-dashoffset",T._getStrokeDashOffset(),"px")("stroke-dasharray",T._getStrokeCircumference(),"px")("stroke-width",T._getCircleStrokeWidth(),"%")("transform-origin",T._getCircleTransformOrigin(W)),m.uIk("r",T._getCircleRadius())}}const L=(0,b.pj)(class{constructor(pe){this._elementRef=pe}},"primary"),O=new m.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function q(){return{diameter:100}}});class z extends L{constructor(Le,T,W,F,V,ee,Q,Ee){super(Le),this._document=W,this._diameter=100,this._value=0,this._resizeSubscription=D.w0.EMPTY,this.mode="determinate";const ge=z._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),ge.has(W.head)||ge.set(W.head,new Set([100])),this._noopAnimations="NoopAnimations"===F&&!!V&&!V._forceAnimations,"mat-spinner"===Le.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),V&&(V.color&&(this.color=this.defaultColor=V.color),V.diameter&&(this.diameter=V.diameter),V.strokeWidth&&(this.strokeWidth=V.strokeWidth)),T.isBrowser&&T.SAFARI&&Q&&ee&&Ee&&(this._resizeSubscription=Q.change(150).subscribe(()=>{"indeterminate"===this.mode&&Ee.run(()=>ee.markForCheck())}))}get diameter(){return this._diameter}set diameter(Le){this._diameter=(0,e.su)(Le),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(Le){this._strokeWidth=(0,e.su)(Le)}get value(){return"determinate"===this.mode?this._value:0}set value(Le){this._value=Math.max(0,Math.min(100,(0,e.su)(Le)))}ngOnInit(){const Le=this._elementRef.nativeElement;this._styleRoot=(0,A.kV)(Le)||this._document.head,this._attachStyleNode(),Le.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const Le=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${Le} ${Le}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_getCircleTransformOrigin(Le){var T;const W=50*(null!==(T=Le.currentScale)&&void 0!==T?T:1);return`${W}% ${W}%`}_attachStyleNode(){const Le=this._styleRoot,T=this._diameter,W=z._diameters;let F=W.get(Le);if(!F||!F.has(T)){const V=this._document.createElement("style");V.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),V.textContent=this._getAnimationText(),Le.appendChild(V),F||(F=new Set,W.set(Le,F)),F.add(T)}}_getAnimationText(){const Le=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*Le).replace(/END_VALUE/g,""+.2*Le).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}z._diameters=new WeakMap,z.\u0275fac=function(Le){return new(Le||z)(m.Y36(m.SBq),m.Y36(A.t4),m.Y36(M.K0,8),m.Y36(m.QbO,8),m.Y36(O),m.Y36(m.sBO),m.Y36(C.rL),m.Y36(m.R0b))},z.\u0275cmp=m.Xpm({type:z,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(Le,T){2&Le&&(m.uIk("aria-valuemin","determinate"===T.mode?0:null)("aria-valuemax","determinate"===T.mode?100:null)("aria-valuenow","determinate"===T.mode?T.value:null)("mode",T.mode),m.Udp("width",T.diameter,"px")("height",T.diameter,"px"),m.ekj("_mat-animation-noopable",T._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[m.qOj],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(Le,T){1&Le&&(m.O4$(),m.TgZ(0,"svg",0,1),m.YNc(2,v,1,11,"circle",2),m.YNc(3,R,1,9,"circle",3),m.qZA()),2&Le&&(m.Udp("width",T.diameter,"px")("height",T.diameter,"px"),m.Q6J("ngSwitch","indeterminate"===T.mode),m.uIk("viewBox",T._getViewBox()),m.xp6(2),m.Q6J("ngSwitchCase",!0),m.xp6(1),m.Q6J("ngSwitchCase",!1))},dependencies:[M.RF,M.n9],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:rgba(0,0,0,0);transition:stroke-dashoffset 225ms linear}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}.mat-progress-spinner[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-progress-spinner._mat-animation-noopable svg,.mat-progress-spinner._mat-animation-noopable circle{animation:none;transition: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)}}"],encapsulation:2,changeDetection:0});let ie=(()=>{class pe{}return pe.\u0275fac=function(T){return new(T||pe)},pe.\u0275mod=m.oAB({type:pe}),pe.\u0275inj=m.cJS({imports:[b.BQ,M.ez,b.BQ]}),pe})()},71948:(Xe,ue,p)=>{"use strict";p.d(ue,{Fk:()=>W,U0:()=>T,VQ:()=>ie});var e=p(94650),A=p(3238),C=p(12687),M=p(21281),m=p(95017),b=p(24006);const D=["input"],v=function(F){return{enterDuration:F}},R=["*"],B=new e.OlP("mat-radio-default-options",{providedIn:"root",factory:function w(){return{color:"accent"}}});let L=0;const O={provide:b.JU,useExisting:(0,e.Gpc)(()=>ie),multi:!0};class q{constructor(V,ee){this.source=V,this.value=ee}}const te=new e.OlP("MatRadioGroup");let z=(()=>{class F{constructor(ee){this._changeDetector=ee,this._value=null,this._name="mat-radio-group-"+L++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new e.vpe}get name(){return this._name}set name(ee){this._name=ee,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(ee){this._labelPosition="before"===ee?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(ee){this._value!==ee&&(this._value=ee,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(ee){this._selected=ee,this.value=ee?ee.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(ee){this._disabled=(0,M.Ig)(ee),this._markRadiosForCheck()}get required(){return this._required}set required(ee){this._required=(0,M.Ig)(ee),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(ee=>{ee.name=this.name,ee._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(Q=>{Q.checked=this.value===Q.value,Q.checked&&(this._selected=Q)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new q(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(ee=>ee._markForCheck())}writeValue(ee){this.value=ee,this._changeDetector.markForCheck()}registerOnChange(ee){this._controlValueAccessorChangeFn=ee}registerOnTouched(ee){this.onTouched=ee}setDisabledState(ee){this.disabled=ee,this._changeDetector.markForCheck()}}return F.\u0275fac=function(ee){return new(ee||F)(e.Y36(e.sBO))},F.\u0275dir=e.lG2({type:F,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}}),F})(),ie=(()=>{class F extends z{}return F.\u0275fac=function(){let V;return function(Q){return(V||(V=e.n5z(F)))(Q||F)}}(),F.\u0275dir=e.lG2({type:F,selectors:[["mat-radio-group"]],contentQueries:function(ee,Q,Ee){if(1&ee&&e.Suo(Ee,T,5),2&ee){let ge;e.iGM(ge=e.CRH())&&(Q._radios=ge)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[e._Bn([O,{provide:te,useExisting:F}]),e.qOj]}),F})();class Te{constructor(V){this._elementRef=V}}const pe=(0,A.Kr)((0,A.sb)(Te));let Le=(()=>{class F extends pe{constructor(ee,Q,Ee,ge,ve,De,he,Ye){super(Q),this._changeDetector=Ee,this._focusMonitor=ge,this._radioDispatcher=ve,this._providerOverride=he,this._uniqueId="mat-radio-"+ ++L,this.id=this._uniqueId,this.change=new e.vpe,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=ee,this._noopAnimations="NoopAnimations"===De,Ye&&(this.tabIndex=(0,M.su)(Ye,0)),this._removeUniqueSelectionListener=ve.listen((Be,se)=>{Be!==this.id&&se===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(ee){const Q=(0,M.Ig)(ee);this._checked!==Q&&(this._checked=Q,Q&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!Q&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),Q&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(ee){this._value!==ee&&(this._value=ee,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===ee),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(ee){this._labelPosition=ee}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(ee){this._setDisabled((0,M.Ig)(ee))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(ee){this._required=(0,M.Ig)(ee)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(ee){this._color=ee}get inputId(){return`${this.id||this._uniqueId}-input`}focus(ee,Q){Q?this._focusMonitor.focusVia(this._inputElement,Q,ee):this._inputElement.nativeElement.focus(ee)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name)}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(ee=>{!ee&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new q(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(ee){ee.stopPropagation()}_onInputInteraction(ee){if(ee.stopPropagation(),!this.checked&&!this.disabled){const Q=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),Q&&this.radioGroup._emitChangeEvent())}}_setDisabled(ee){this._disabled!==ee&&(this._disabled=ee,this._changeDetector.markForCheck())}_updateTabIndex(){const ee=this.radioGroup;let Q;if(Q=ee&&ee.selected&&!this.disabled?ee.selected===this?this.tabIndex:-1:this.tabIndex,Q!==this._previousTabIndex){var Ee;const ge=null===(Ee=this._inputElement)||void 0===Ee?void 0:Ee.nativeElement;ge&&(ge.setAttribute("tabindex",Q+""),this._previousTabIndex=Q)}}}return F.\u0275fac=function(ee){e.$Z()},F.\u0275dir=e.lG2({type:F,viewQuery:function(ee,Q){if(1&ee&&e.Gf(D,5),2&ee){let Ee;e.iGM(Ee=e.CRH())&&(Q._inputElement=Ee.first)}},inputs:{id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},features:[e.qOj]}),F})(),T=(()=>{class F extends Le{constructor(ee,Q,Ee,ge,ve,De,he,Ye){super(ee,Q,Ee,ge,ve,De,he,Ye)}}return F.\u0275fac=function(ee){return new(ee||F)(e.Y36(te,8),e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(C.tE),e.Y36(m.A8),e.Y36(e.QbO,8),e.Y36(B,8),e.$8M("tabindex"))},F.\u0275cmp=e.Xpm({type:F,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(ee,Q){1&ee&&e.NdJ("focus",function(){return Q._inputElement.nativeElement.focus()}),2&ee&&(e.uIk("tabindex",null)("id",Q.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),e.ekj("mat-radio-checked",Q.checked)("mat-radio-disabled",Q.disabled)("_mat-animation-noopable",Q._noopAnimations)("mat-primary","primary"===Q.color)("mat-accent","accent"===Q.color)("mat-warn","warn"===Q.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[e.qOj],ngContentSelectors:R,decls:13,vars:19,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input",3,"id","checked","disabled","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(ee,Q){if(1&ee&&(e.F$t(),e.TgZ(0,"label",0,1)(2,"span",2),e._UZ(3,"span",3)(4,"span",4),e.TgZ(5,"input",5,6),e.NdJ("change",function(ge){return Q._onInputInteraction(ge)})("click",function(ge){return Q._onInputClick(ge)}),e.qZA(),e.TgZ(7,"span",7),e._UZ(8,"span",8),e.qZA()(),e.TgZ(9,"span",9)(10,"span",10),e._uU(11,"\xa0"),e.qZA(),e.Hsn(12),e.qZA()()),2&ee){const Ee=e.MAs(1);e.uIk("for",Q.inputId),e.xp6(5),e.Q6J("id",Q.inputId)("checked",Q.checked)("disabled",Q.disabled)("required",Q.required),e.uIk("name",Q.name)("value",Q.value)("aria-label",Q.ariaLabel)("aria-labelledby",Q.ariaLabelledby)("aria-describedby",Q.ariaDescribedby),e.xp6(2),e.Q6J("matRippleTrigger",Ee)("matRippleDisabled",Q._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",e.VKq(17,v,Q._noopAnimations?0:150)),e.xp6(2),e.ekj("mat-radio-label-before","before"==Q.labelPosition)}},dependencies:[A.wG],styles:['.mat-radio-button{display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-radio-label{-webkit-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;opacity:0;transition:transform ease 280ms,background-color ease 280ms,opacity linear 1ms 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5);opacity:1;transition:transform ease 280ms,background-color ease 280ms}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-label-content{-webkit-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none;top:0;left:0}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{opacity:0;position:absolute;top:0;left:0;margin:0;width:100%;height:100%;cursor:inherit;z-index:-1}.mat-radio-input:focus~.mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}'],encapsulation:2,changeDetection:0}),F})(),W=(()=>{class F{}return F.\u0275fac=function(ee){return new(ee||F)},F.\u0275mod=e.oAB({type:F}),F.\u0275inj=e.cJS({imports:[A.si,A.BQ,A.BQ]}),F})()},84385:(Xe,ue,p)=>{"use strict";p.d(ue,{$L:()=>_e,LD:()=>Ce,gD:()=>Ne});var e=p(98184),A=p(36895),C=p(94650),M=p(3238),m=p(59549),b=p(67376),D=p(12687),v=p(40445),R=p(21281),B=p(95017),w=p(29521),L=p(24006),O=p(77579),q=p(49770),te=p(56451),z=p(68675),ie=p(63900),Te=p(95698),pe=p(39300),Le=p(54004),T=p(71884),W=p(82722),F=p(37340);const V=["trigger"],ee=["panel"];function Q(fe,r){if(1&fe&&(C.TgZ(0,"span",8),C._uU(1),C.qZA()),2&fe){const u=C.oxw();C.xp6(1),C.Oqu(u.placeholder)}}function Ee(fe,r){if(1&fe&&(C.TgZ(0,"span",12),C._uU(1),C.qZA()),2&fe){const u=C.oxw(2);C.xp6(1),C.Oqu(u.triggerValue)}}function ge(fe,r){1&fe&&C.Hsn(0,0,["*ngSwitchCase","true"])}function ve(fe,r){if(1&fe&&(C.TgZ(0,"span",9),C.YNc(1,Ee,2,1,"span",10),C.YNc(2,ge,1,0,"ng-content",11),C.qZA()),2&fe){const u=C.oxw();C.Q6J("ngSwitch",!!u.customTrigger),C.xp6(2),C.Q6J("ngSwitchCase",!0)}}function De(fe,r){if(1&fe){const u=C.EpF();C.TgZ(0,"div",13)(1,"div",14,15),C.NdJ("@transformPanel.done",function(E){C.CHM(u);const h=C.oxw();return C.KtG(h._panelDoneAnimatingStream.next(E.toState))})("keydown",function(E){C.CHM(u);const h=C.oxw();return C.KtG(h._handleKeydown(E))}),C.Hsn(3,1),C.qZA()()}if(2&fe){const u=C.oxw();C.Q6J("@transformPanelWrap",void 0),C.xp6(1),C.Gre("mat-select-panel ",u._getPanelTheme(),""),C.Udp("transform-origin",u._transformOrigin)("font-size",u._triggerFontSize,"px"),C.Q6J("ngClass",u.panelClass)("@transformPanel",u.multiple?"showing-multiple":"showing"),C.uIk("id",u.id+"-panel")("aria-multiselectable",u.multiple)("aria-label",u.ariaLabel||null)("aria-labelledby",u._getPanelAriaLabelledby())}}const he=[[["mat-select-trigger"]],"*"],Ye=["mat-select-trigger","*"],Be={transformPanelWrap:(0,F.X$)("transformPanelWrap",[(0,F.eR)("* => void",(0,F.IO)("@transformPanel",[(0,F.pV)()],{optional:!0}))]),transformPanel:(0,F.X$)("transformPanel",[(0,F.SB)("void",(0,F.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,F.SB)("showing",(0,F.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,F.SB)("showing-multiple",(0,F.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,F.eR)("void => *",(0,F.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,F.eR)("* => void",(0,F.jt)("100ms 25ms linear",(0,F.oB)({opacity:0})))])};let k=0;const ut=new C.OlP("mat-select-scroll-strategy"),vt=new C.OlP("MAT_SELECT_CONFIG"),X={provide:ut,deps:[e.aV],useFactory:function tt(fe){return()=>fe.scrollStrategies.reposition()}};class nt{constructor(r,u){this.source=r,this.value=u}}const Ae=(0,M.Kr)((0,M.sb)((0,M.Id)((0,M.FD)(class{constructor(fe,r,u,_,E){this._elementRef=fe,this._defaultErrorStateMatcher=r,this._parentForm=u,this._parentFormGroup=_,this.ngControl=E,this.stateChanges=new O.x}})))),ye=new C.OlP("MatSelectTrigger");let _e=(()=>{class fe{}return fe.\u0275fac=function(u){return new(u||fe)},fe.\u0275dir=C.lG2({type:fe,selectors:[["mat-select-trigger"]],features:[C._Bn([{provide:ye,useExisting:fe}])]}),fe})(),Se=(()=>{class fe extends Ae{constructor(u,_,E,h,a,i,t,n,o,s,l,d,c,S){var J,ht,ze;super(a,h,t,n,s),this._viewportRuler=u,this._changeDetectorRef=_,this._ngZone=E,this._dir=i,this._parentFormField=o,this._liveAnnouncer=c,this._defaultOptions=S,this._panelOpen=!1,this._compareWith=(et,ne)=>et===ne,this._uid="mat-select-"+k++,this._triggerAriaLabelledBy=null,this._destroy=new O.x,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+k++,this._panelDoneAnimatingStream=new O.x,this._overlayPanelClass=(null===(J=this._defaultOptions)||void 0===J?void 0:J.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=null!==(ht=null===(ze=this._defaultOptions)||void 0===ze?void 0:ze.disableOptionCentering)&&void 0!==ht&&ht,this.ariaLabel="",this.optionSelectionChanges=(0,q.P)(()=>{const et=this.options;return et?et.changes.pipe((0,z.O)(et),(0,ie.w)(()=>(0,te.T)(...et.map(ne=>ne.onSelectionChange)))):this._ngZone.onStable.pipe((0,Te.q)(1),(0,ie.w)(()=>this.optionSelectionChanges))}),this.openedChange=new C.vpe,this._openedStream=this.openedChange.pipe((0,pe.h)(et=>et),(0,Le.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,pe.h)(et=>!et),(0,Le.U)(()=>{})),this.selectionChange=new C.vpe,this.valueChange=new C.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=S?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=S.typeaheadDebounceInterval),this._scrollStrategyFactory=d,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(l)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(u){this._placeholder=u,this.stateChanges.next()}get required(){var u,_,E,h;return null!==(u=null!==(_=this._required)&&void 0!==_?_:null===(E=this.ngControl)||void 0===E||null===(h=E.control)||void 0===h?void 0:h.hasValidator(L.kI.required))&&void 0!==u&&u}set required(u){this._required=(0,R.Ig)(u),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(u){this._multiple=(0,R.Ig)(u)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(u){this._disableOptionCentering=(0,R.Ig)(u)}get compareWith(){return this._compareWith}set compareWith(u){this._compareWith=u,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(u){this._assignValue(u)&&this._onChange(u)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(u){this._typeaheadDebounceInterval=(0,R.su)(u)}get id(){return this._id}set id(u){this._id=u||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new B.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,T.x)(),(0,W.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,W.R)(this._destroy)).subscribe(u=>{u.added.forEach(_=>_.select()),u.removed.forEach(_=>_.deselect())}),this.options.changes.pipe((0,z.O)(null),(0,W.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const u=this._getTriggerAriaLabelledby(),_=this.ngControl;if(u!==this._triggerAriaLabelledBy){const E=this._elementRef.nativeElement;this._triggerAriaLabelledBy=u,u?E.setAttribute("aria-labelledby",u):E.removeAttribute("aria-labelledby")}_&&(this._previousControl!==_.control&&(void 0!==this._previousControl&&null!==_.disabled&&_.disabled!==this.disabled&&(this.disabled=_.disabled),this._previousControl=_.control),this.updateErrorState())}ngOnChanges(u){(u.disabled||u.userAriaDescribedBy)&&this.stateChanges.next(),u.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(u){this._assignValue(u)}registerOnChange(u){this._onChange=u}registerOnTouched(u){this._onTouched=u}setDisabledState(u){this.disabled=u,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){var u,_;return this.multiple?(null===(u=this._selectionModel)||void 0===u?void 0:u.selected)||[]:null===(_=this._selectionModel)||void 0===_?void 0:_.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const u=this._selectionModel.selected.map(_=>_.viewValue);return this._isRtl()&&u.reverse(),u.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(u){this.disabled||(this.panelOpen?this._handleOpenKeydown(u):this._handleClosedKeydown(u))}_handleClosedKeydown(u){const _=u.keyCode,E=_===w.JH||_===w.LH||_===w.oh||_===w.SV,h=_===w.K5||_===w.L_,a=this._keyManager;if(!a.isTyping()&&h&&!(0,w.Vb)(u)||(this.multiple||u.altKey)&&E)u.preventDefault(),this.open();else if(!this.multiple){const i=this.selected;a.onKeydown(u);const t=this.selected;t&&i!==t&&this._liveAnnouncer.announce(t.viewValue,1e4)}}_handleOpenKeydown(u){const _=this._keyManager,E=u.keyCode,h=E===w.JH||E===w.LH,a=_.isTyping();if(h&&u.altKey)u.preventDefault(),this.close();else if(a||E!==w.K5&&E!==w.L_||!_.activeItem||(0,w.Vb)(u))if(!a&&this._multiple&&E===w.A&&u.ctrlKey){u.preventDefault();const i=this.options.some(t=>!t.disabled&&!t.selected);this.options.forEach(t=>{t.disabled||(i?t.select():t.deselect())})}else{const i=_.activeItemIndex;_.onKeydown(u),this._multiple&&h&&u.shiftKey&&_.activeItem&&_.activeItemIndex!==i&&_.activeItem._selectViaInteraction()}else u.preventDefault(),_.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((0,Te.q)(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.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(u){if(this._selectionModel.selected.forEach(_=>_.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&u)Array.isArray(u),u.forEach(_=>this._selectOptionByValue(_)),this._sortValues();else{const _=this._selectOptionByValue(u);_?this._keyManager.updateActiveItem(_):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(u){const _=this.options.find(E=>{if(this._selectionModel.isSelected(E))return!1;try{return null!=E.value&&this._compareWith(E.value,u)}catch{return!1}});return _&&this._selectionModel.select(_),_}_assignValue(u){return!!(u!==this._value||this._multiple&&Array.isArray(u))&&(this.options&&this._setSelectionByValue(u),this._value=u,!0)}_initKeyManager(){this._keyManager=new D.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,W.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe((0,W.R)(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 u=(0,te.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,W.R)(u)).subscribe(_=>{this._onSelect(_.source,_.isUserInput),_.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,te.T)(...this.options.map(_=>_._stateChanges)).pipe((0,W.R)(u)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(u,_){const E=this._selectionModel.isSelected(u);null!=u.value||this._multiple?(E!==u.selected&&(u.selected?this._selectionModel.select(u):this._selectionModel.deselect(u)),_&&this._keyManager.setActiveItem(u),this.multiple&&(this._sortValues(),_&&this.focus())):(u.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(u.value)),E!==this._selectionModel.isSelected(u)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const u=this.options.toArray();this._selectionModel.sort((_,E)=>this.sortComparator?this.sortComparator(_,E,u):u.indexOf(_)-u.indexOf(E)),this.stateChanges.next()}}_propagateChanges(u){let _=null;_=this.multiple?this.selected.map(E=>E.value):this.selected?this.selected.value:u,this._value=_,this.valueChange.emit(_),this._onChange(_),this.selectionChange.emit(this._getChangeEvent(_)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var u;return!this._panelOpen&&!this.disabled&&(null===(u=this.options)||void 0===u?void 0:u.length)>0}focus(u){this._elementRef.nativeElement.focus(u)}_getPanelAriaLabelledby(){var u;if(this.ariaLabel)return null;const _=null===(u=this._parentFormField)||void 0===u?void 0:u.getLabelId();return this.ariaLabelledby?(_?_+" ":"")+this.ariaLabelledby:_}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var u;if(this.ariaLabel)return null;const _=null===(u=this._parentFormField)||void 0===u?void 0:u.getLabelId();let E=(_?_+" ":"")+this._valueId;return this.ariaLabelledby&&(E+=" "+this.ariaLabelledby),E}_panelDoneAnimating(u){this.openedChange.emit(u)}setDescribedByIds(u){u.length?this._elementRef.nativeElement.setAttribute("aria-describedby",u.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return fe.\u0275fac=function(u){return new(u||fe)(C.Y36(b.rL),C.Y36(C.sBO),C.Y36(C.R0b),C.Y36(M.rD),C.Y36(C.SBq),C.Y36(v.Is,8),C.Y36(L.F,8),C.Y36(L.sg,8),C.Y36(m.G_,8),C.Y36(L.a5,10),C.$8M("tabindex"),C.Y36(ut),C.Y36(D.Kd),C.Y36(vt,8))},fe.\u0275dir=C.lG2({type:fe,viewQuery:function(u,_){if(1&u&&(C.Gf(V,5),C.Gf(ee,5),C.Gf(e.pI,5)),2&u){let E;C.iGM(E=C.CRH())&&(_.trigger=E.first),C.iGM(E=C.CRH())&&(_.panel=E.first),C.iGM(E=C.CRH())&&(_._overlayDir=E.first)}},inputs:{userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[C.qOj,C.TTD]}),fe})(),Ne=(()=>{class fe extends Se{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(u,_,E){const h=this._getItemHeight();return Math.min(Math.max(0,h*u-_+h/2),E)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,W.R)(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((0,Te.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(u){const _=(0,M.CB)(u,this.options,this.optionGroups),E=this._getItemHeight();this.panel.nativeElement.scrollTop=0===u&&1===_?0:(0,M.jH)((u+_)*E,E,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(u){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(u)}_getChangeEvent(u){return new nt(this,u)}_calculateOverlayOffsetX(){const u=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),_=this._viewportRuler.getViewportSize(),E=this._isRtl(),h=this.multiple?56:32;let a;if(this.multiple)a=40;else if(this.disableOptionCentering)a=16;else{let n=this._selectionModel.selected[0]||this.options.first;a=n&&n.group?32:16}E||(a*=-1);const i=0-(u.left+a-(E?h:0)),t=u.right+a-_.width+(E?0:h);i>0?a+=i+8:t>0&&(a-=t+8),this._overlayDir.offsetX=Math.round(a),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(u,_,E){const h=this._getItemHeight(),a=(h-this._triggerRect.height)/2,i=Math.floor(256/h);let t;return this.disableOptionCentering?0:(t=0===this._scrollTop?u*h:this._scrollTop===E?(u-(this._getItemCount()-i))*h+(h-(this._getItemCount()*h-256)%h):_-h/2,Math.round(-1*t-a))}_checkOverlayWithinViewport(u){const _=this._getItemHeight(),E=this._viewportRuler.getViewportSize(),h=this._triggerRect.top-8,a=E.height-this._triggerRect.bottom-8,i=Math.abs(this._offsetY),n=Math.min(this._getItemCount()*_,256)-i-this._triggerRect.height;n>a?this._adjustPanelUp(n,a):i>h?this._adjustPanelDown(i,h,u):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(u,_){const E=Math.round(u-_);this._scrollTop-=E,this._offsetY-=E,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(u,_,E){const h=Math.round(u-_);if(this._scrollTop+=h,this._offsetY+=h,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=E)return this._scrollTop=E,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const u=this._getItemHeight(),_=this._getItemCount(),E=Math.min(_*u,256),a=_*u-E;let i;i=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),i+=(0,M.CB)(i,this.options,this.optionGroups);const t=E/2;this._scrollTop=this._calculateOverlayScroll(i,t,a),this._offsetY=this._calculateOverlayOffsetY(i,t,a),this._checkOverlayWithinViewport(a)}_getOriginBasedOnOption(){const u=this._getItemHeight(),_=(u-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-_+u/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return fe.\u0275fac=function(){let r;return function(_){return(r||(r=C.n5z(fe)))(_||fe)}}(),fe.\u0275cmp=C.Xpm({type:fe,selectors:[["mat-select"]],contentQueries:function(u,_,E){if(1&u&&(C.Suo(E,ye,5),C.Suo(E,M.ey,5),C.Suo(E,M.K7,5)),2&u){let h;C.iGM(h=C.CRH())&&(_.customTrigger=h.first),C.iGM(h=C.CRH())&&(_.options=h),C.iGM(h=C.CRH())&&(_.optionGroups=h)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:19,hostBindings:function(u,_){1&u&&C.NdJ("keydown",function(h){return _._handleKeydown(h)})("focus",function(){return _._onFocus()})("blur",function(){return _._onBlur()}),2&u&&(C.uIk("id",_.id)("tabindex",_.tabIndex)("aria-controls",_.panelOpen?_.id+"-panel":null)("aria-expanded",_.panelOpen)("aria-label",_.ariaLabel||null)("aria-required",_.required.toString())("aria-disabled",_.disabled.toString())("aria-invalid",_.errorState)("aria-activedescendant",_._getAriaActiveDescendant()),C.ekj("mat-select-disabled",_.disabled)("mat-select-invalid",_.errorState)("mat-select-required",_.required)("mat-select-empty",_.empty)("mat-select-multiple",_.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[C._Bn([{provide:m.Eo,useExisting:fe},{provide:M.HF,useExisting:fe}]),C.qOj],ngContentSelectors:Ye,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 mat-select-min-line",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","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(u,_){if(1&u&&(C.F$t(he),C.TgZ(0,"div",0,1),C.NdJ("click",function(){return _.toggle()}),C.TgZ(3,"div",2),C.YNc(4,Q,2,1,"span",3),C.YNc(5,ve,3,2,"span",4),C.qZA(),C.TgZ(6,"div",5),C._UZ(7,"div",6),C.qZA()(),C.YNc(8,De,4,14,"ng-template",7),C.NdJ("backdropClick",function(){return _.close()})("attach",function(){return _._onAttached()})("detach",function(){return _.close()})),2&u){const E=C.MAs(1);C.uIk("aria-owns",_.panelOpen?_.id+"-panel":null),C.xp6(3),C.Q6J("ngSwitch",_.empty),C.uIk("id",_._valueId),C.xp6(1),C.Q6J("ngSwitchCase",!0),C.xp6(1),C.Q6J("ngSwitchCase",!1),C.xp6(3),C.Q6J("cdkConnectedOverlayPanelClass",_._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",_._scrollStrategy)("cdkConnectedOverlayOrigin",E)("cdkConnectedOverlayOpen",_.panelOpen)("cdkConnectedOverlayPositions",_._positions)("cdkConnectedOverlayMinWidth",null==_._triggerRect?null:_._triggerRect.width)("cdkConnectedOverlayOffsetY",_._offsetY)}},dependencies:[A.mk,A.RF,A.n9,A.ED,e.pI,e.xu],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-select-value{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{height:16px;flex-shrink:0;display:inline-flex;align-items:center}.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 rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;margin:0 4px}.mat-form-field.mat-focused .mat-select-arrow{transform:translateX(0)}.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:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[Be.transformPanelWrap,Be.transformPanel]},changeDetection:0}),fe})(),Ce=(()=>{class fe{}return fe.\u0275fac=function(u){return new(u||fe)},fe.\u0275mod=C.oAB({type:fe}),fe.\u0275inj=C.cJS({providers:[X],imports:[A.ez,e.U8,M.Ng,M.BQ,b.ZD,m.lN,M.Ng,M.BQ]}),fe})()},23267:(Xe,ue,p)=>{"use strict";p.d(ue,{JX:()=>ot,Rh:()=>xe,SJ:()=>ut,TM:()=>Fe});var e=p(67376),A=p(36895),C=p(94650),M=p(3238),m=p(12687),b=p(40445),D=p(21281),v=p(29521),R=p(83353),B=p(77579),w=p(54968),L=p(56451),O=p(39300),q=p(54004),te=p(69718),z=p(82722),ie=p(71884),Te=p(95698),pe=p(68675),Le=p(78372),T=p(37340);const W=["*"],F=["content"];function V(tt,vt){if(1&tt){const X=C.EpF();C.TgZ(0,"div",2),C.NdJ("click",function(){C.CHM(X);const Ae=C.oxw();return C.KtG(Ae._onBackdropClicked())}),C.qZA()}if(2&tt){const X=C.oxw();C.ekj("mat-drawer-shown",X._isShowingBackdrop())}}function ee(tt,vt){1&tt&&(C.TgZ(0,"mat-drawer-content"),C.Hsn(1,2),C.qZA())}const Q=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],Ee=["mat-drawer","mat-drawer-content","*"];function ge(tt,vt){if(1&tt){const X=C.EpF();C.TgZ(0,"div",2),C.NdJ("click",function(){C.CHM(X);const Ae=C.oxw();return C.KtG(Ae._onBackdropClicked())}),C.qZA()}if(2&tt){const X=C.oxw();C.ekj("mat-drawer-shown",X._isShowingBackdrop())}}function ve(tt,vt){1&tt&&(C.TgZ(0,"mat-sidenav-content"),C.Hsn(1,2),C.qZA())}const De=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],he=["mat-sidenav","mat-sidenav-content","*"],Be={transformDrawer:(0,T.X$)("transform",[(0,T.SB)("open, open-instant",(0,T.oB)({transform:"none",visibility:"visible"})),(0,T.SB)("void",(0,T.oB)({"box-shadow":"none",visibility:"hidden"})),(0,T.eR)("void => open-instant",(0,T.jt)("0ms")),(0,T.eR)("void <=> open, open-instant => void",(0,T.jt)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},le=new C.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function k(){return!1}}),N=new C.OlP("MAT_DRAWER_CONTAINER");let be=(()=>{class tt extends e.PQ{constructor(X,nt,Ae,ye,_e){super(Ae,ye,_e),this._changeDetectorRef=X,this._container=nt}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return tt.\u0275fac=function(X){return new(X||tt)(C.Y36(C.sBO),C.Y36((0,C.Gpc)(()=>ce)),C.Y36(C.SBq),C.Y36(e.mF),C.Y36(C.R0b))},tt.\u0275cmp=C.Xpm({type:tt,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(X,nt){2&X&&C.Udp("margin-left",nt._container._contentMargins.left,"px")("margin-right",nt._container._contentMargins.right,"px")},features:[C._Bn([{provide:e.PQ,useExisting:tt}]),C.qOj],ngContentSelectors:W,decls:1,vars:0,template:function(X,nt){1&X&&(C.F$t(),C.Hsn(0))},encapsulation:2,changeDetection:0}),tt})(),Z=(()=>{class tt{constructor(X,nt,Ae,ye,_e,Se,Ne,Ce){this._elementRef=X,this._focusTrapFactory=nt,this._focusMonitor=Ae,this._platform=ye,this._ngZone=_e,this._interactivityChecker=Se,this._doc=Ne,this._container=Ce,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new B.x,this._animationEnd=new B.x,this._animationState="void",this.openedChange=new C.vpe(!0),this._openedStream=this.openedChange.pipe((0,O.h)(fe=>fe),(0,q.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,O.h)(fe=>fe.fromState!==fe.toState&&0===fe.toState.indexOf("open")),(0,te.h)(void 0)),this._closedStream=this.openedChange.pipe((0,O.h)(fe=>!fe),(0,q.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,O.h)(fe=>fe.fromState!==fe.toState&&"void"===fe.toState),(0,te.h)(void 0)),this._destroyed=new B.x,this.onPositionChanged=new C.vpe,this._modeChanged=new B.x,this.openedChange.subscribe(fe=>{fe?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{(0,w.R)(this._elementRef.nativeElement,"keydown").pipe((0,O.h)(fe=>fe.keyCode===v.hY&&!this.disableClose&&!(0,v.Vb)(fe)),(0,z.R)(this._destroyed)).subscribe(fe=>this._ngZone.run(()=>{this.close(),fe.stopPropagation(),fe.preventDefault()}))}),this._animationEnd.pipe((0,ie.x)((fe,r)=>fe.fromState===r.fromState&&fe.toState===r.toState)).subscribe(fe=>{const{fromState:r,toState:u}=fe;(0===u.indexOf("open")&&"void"===r||"void"===u&&0===r.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(X){(X="end"===X?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(X),this._position=X,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(X){this._mode=X,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(X){this._disableClose=(0,D.Ig)(X)}get autoFocus(){return this._autoFocus??("side"===this.mode?"dialog":"first-tabbable")}set autoFocus(X){("true"===X||"false"===X||null==X)&&(X=(0,D.Ig)(X)),this._autoFocus=X}get opened(){return this._opened}set opened(X){this.toggle((0,D.Ig)(X))}_forceFocus(X,nt){this._interactivityChecker.isFocusable(X)||(X.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const Ae=()=>{X.removeEventListener("blur",Ae),X.removeEventListener("mousedown",Ae),X.removeAttribute("tabindex")};X.addEventListener("blur",Ae),X.addEventListener("mousedown",Ae)})),X.focus(nt)}_focusByCssSelector(X,nt){let Ae=this._elementRef.nativeElement.querySelector(X);Ae&&this._forceFocus(Ae,nt)}_takeFocus(){if(!this._focusTrap)return;const X=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(nt=>{!nt&&"function"==typeof this._elementRef.nativeElement.focus&&X.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(X){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,X):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const X=this._doc.activeElement;return!!X&&this._elementRef.nativeElement.contains(X)}ngAfterViewInit(){this._isAttached=!0,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){var X;this._focusTrap&&this._focusTrap.destroy(),null===(X=this._anchor)||void 0===X||X.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(X){return this.toggle(!0,X)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(X=!this.opened,nt){X&&nt&&(this._openedVia=nt);const Ae=this._setOpen(X,!X&&this._isFocusWithinDrawer(),this._openedVia||"program");return X||(this._openedVia=null),Ae}_setOpen(X,nt,Ae){return this._opened=X,X?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",nt&&this._restoreFocus(Ae)),this._updateFocusTrapState(),new Promise(ye=>{this.openedChange.pipe((0,Te.q)(1)).subscribe(_e=>ye(_e?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_updatePositionInParent(X){const nt=this._elementRef.nativeElement,Ae=nt.parentNode;"end"===X?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),Ae.insertBefore(this._anchor,nt)),Ae.appendChild(nt)):this._anchor&&this._anchor.parentNode.insertBefore(nt,this._anchor)}}return tt.\u0275fac=function(X){return new(X||tt)(C.Y36(C.SBq),C.Y36(m.qV),C.Y36(m.tE),C.Y36(R.t4),C.Y36(C.R0b),C.Y36(m.ic),C.Y36(A.K0,8),C.Y36(N,8))},tt.\u0275cmp=C.Xpm({type:tt,selectors:[["mat-drawer"]],viewQuery:function(X,nt){if(1&X&&C.Gf(F,5),2&X){let Ae;C.iGM(Ae=C.CRH())&&(nt._content=Ae.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(X,nt){1&X&&C.WFA("@transform.start",function(ye){return nt._animationStarted.next(ye)})("@transform.done",function(ye){return nt._animationEnd.next(ye)}),2&X&&(C.uIk("align",null),C.d8E("@transform",nt._animationState),C.ekj("mat-drawer-end","end"===nt.position)("mat-drawer-over","over"===nt.mode)("mat-drawer-push","push"===nt.mode)("mat-drawer-side","side"===nt.mode)("mat-drawer-opened",nt.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:W,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(X,nt){1&X&&(C.F$t(),C.TgZ(0,"div",0,1),C.Hsn(2),C.qZA())},dependencies:[e.PQ],encapsulation:2,data:{animation:[Be.transformDrawer]},changeDetection:0}),tt})(),ce=(()=>{class tt{constructor(X,nt,Ae,ye,_e,Se=!1,Ne){this._dir=X,this._element=nt,this._ngZone=Ae,this._changeDetectorRef=ye,this._animationMode=Ne,this._drawers=new C.n_E,this.backdropClick=new C.vpe,this._destroyed=new B.x,this._doCheckSubject=new B.x,this._contentMargins={left:null,right:null},this._contentMarginChanges=new B.x,X&&X.change.pipe((0,z.R)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),_e.change().pipe((0,z.R)(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=Se}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(X){this._autosize=(0,D.Ig)(X)}get hasBackdrop(){return this._backdropOverride??(!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode)}set hasBackdrop(X){this._backdropOverride=null==X?null:(0,D.Ig)(X)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe((0,pe.O)(this._allDrawers),(0,z.R)(this._destroyed)).subscribe(X=>{this._drawers.reset(X.filter(nt=>!nt._container||nt._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe((0,pe.O)(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(X=>{this._watchDrawerToggle(X),this._watchDrawerPosition(X),this._watchDrawerMode(X)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,Le.b)(10),(0,z.R)(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(X=>X.open())}close(){this._drawers.forEach(X=>X.close())}updateContentMargins(){let X=0,nt=0;if(this._left&&this._left.opened)if("side"==this._left.mode)X+=this._left._getWidth();else if("push"==this._left.mode){const Ae=this._left._getWidth();X+=Ae,nt-=Ae}if(this._right&&this._right.opened)if("side"==this._right.mode)nt+=this._right._getWidth();else if("push"==this._right.mode){const Ae=this._right._getWidth();nt+=Ae,X-=Ae}X=X||null,nt=nt||null,(X!==this._contentMargins.left||nt!==this._contentMargins.right)&&(this._contentMargins={left:X,right:nt},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(X){X._animationStarted.pipe((0,O.h)(nt=>nt.fromState!==nt.toState),(0,z.R)(this._drawers.changes)).subscribe(nt=>{"open-instant"!==nt.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==X.mode&&X.openedChange.pipe((0,z.R)(this._drawers.changes)).subscribe(()=>this._setContainerClass(X.opened))}_watchDrawerPosition(X){!X||X.onPositionChanged.pipe((0,z.R)(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,Te.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(X){X&&X._modeChanged.pipe((0,z.R)((0,L.T)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(X){const nt=this._element.nativeElement.classList,Ae="mat-drawer-container-has-open";X?nt.add(Ae):nt.remove(Ae)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(X=>{"end"==X.position?this._end=X:this._start=X}),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(X=>X&&!X.disableClose&&this._canHaveBackdrop(X)).forEach(X=>X._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(X){return"side"!==X.mode||!!this._backdropOverride}_isDrawerOpen(X){return null!=X&&X.opened}}return tt.\u0275fac=function(X){return new(X||tt)(C.Y36(b.Is,8),C.Y36(C.SBq),C.Y36(C.R0b),C.Y36(C.sBO),C.Y36(e.rL),C.Y36(le),C.Y36(C.QbO,8))},tt.\u0275cmp=C.Xpm({type:tt,selectors:[["mat-drawer-container"]],contentQueries:function(X,nt,Ae){if(1&X&&(C.Suo(Ae,be,5),C.Suo(Ae,Z,5)),2&X){let ye;C.iGM(ye=C.CRH())&&(nt._content=ye.first),C.iGM(ye=C.CRH())&&(nt._allDrawers=ye)}},viewQuery:function(X,nt){if(1&X&&C.Gf(be,5),2&X){let Ae;C.iGM(Ae=C.CRH())&&(nt._userContent=Ae.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(X,nt){2&X&&C.ekj("mat-drawer-container-explicit-backdrop",nt._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[C._Bn([{provide:N,useExisting:tt}])],ngContentSelectors:Ee,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(X,nt){1&X&&(C.F$t(Q),C.YNc(0,V,1,2,"div",0),C.Hsn(1),C.Hsn(2,1),C.YNc(3,ee,2,0,"mat-drawer-content",1)),2&X&&(C.Q6J("ngIf",nt.hasBackdrop),C.xp6(3),C.Q6J("ngIf",!nt._content))},dependencies:[A.O5,be],styles:['.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[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),tt})(),xe=(()=>{class tt extends be{constructor(X,nt,Ae,ye,_e){super(X,nt,Ae,ye,_e)}}return tt.\u0275fac=function(X){return new(X||tt)(C.Y36(C.sBO),C.Y36((0,C.Gpc)(()=>Fe)),C.Y36(C.SBq),C.Y36(e.mF),C.Y36(C.R0b))},tt.\u0275cmp=C.Xpm({type:tt,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(X,nt){2&X&&C.Udp("margin-left",nt._container._contentMargins.left,"px")("margin-right",nt._container._contentMargins.right,"px")},features:[C._Bn([{provide:e.PQ,useExisting:tt}]),C.qOj],ngContentSelectors:W,decls:1,vars:0,template:function(X,nt){1&X&&(C.F$t(),C.Hsn(0))},encapsulation:2,changeDetection:0}),tt})(),ot=(()=>{class tt extends Z{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(X){this._fixedInViewport=(0,D.Ig)(X)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(X){this._fixedTopGap=(0,D.su)(X)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(X){this._fixedBottomGap=(0,D.su)(X)}}return tt.\u0275fac=function(){let vt;return function(nt){return(vt||(vt=C.n5z(tt)))(nt||tt)}}(),tt.\u0275cmp=C.Xpm({type:tt,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(X,nt){2&X&&(C.uIk("align",null),C.Udp("top",nt.fixedInViewport?nt.fixedTopGap:null,"px")("bottom",nt.fixedInViewport?nt.fixedBottomGap:null,"px"),C.ekj("mat-drawer-end","end"===nt.position)("mat-drawer-over","over"===nt.mode)("mat-drawer-push","push"===nt.mode)("mat-drawer-side","side"===nt.mode)("mat-drawer-opened",nt.opened)("mat-sidenav-fixed",nt.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[C.qOj],ngContentSelectors:W,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(X,nt){1&X&&(C.F$t(),C.TgZ(0,"div",0,1),C.Hsn(2),C.qZA())},dependencies:[e.PQ],encapsulation:2,data:{animation:[Be.transformDrawer]},changeDetection:0}),tt})(),Fe=(()=>{class tt extends ce{}return tt.\u0275fac=function(){let vt;return function(nt){return(vt||(vt=C.n5z(tt)))(nt||tt)}}(),tt.\u0275cmp=C.Xpm({type:tt,selectors:[["mat-sidenav-container"]],contentQueries:function(X,nt,Ae){if(1&X&&(C.Suo(Ae,xe,5),C.Suo(Ae,ot,5)),2&X){let ye;C.iGM(ye=C.CRH())&&(nt._content=ye.first),C.iGM(ye=C.CRH())&&(nt._allDrawers=ye)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(X,nt){2&X&&C.ekj("mat-drawer-container-explicit-backdrop",nt._backdropOverride)},exportAs:["matSidenavContainer"],features:[C._Bn([{provide:N,useExisting:tt}]),C.qOj],ngContentSelectors:he,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(X,nt){1&X&&(C.F$t(De),C.YNc(0,ge,1,2,"div",0),C.Hsn(1),C.Hsn(2,1),C.YNc(3,ve,2,0,"mat-sidenav-content",1)),2&X&&(C.Q6J("ngIf",nt.hasBackdrop),C.xp6(3),C.Q6J("ngIf",!nt._content))},dependencies:[A.O5,xe],styles:['.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[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),tt})(),ut=(()=>{class tt{}return tt.\u0275fac=function(X){return new(X||tt)},tt.\u0275mod=C.oAB({type:tt}),tt.\u0275inj=C.cJS({imports:[A.ez,M.BQ,e.ZD,e.ZD,M.BQ]}),tt})()},90455:(Xe,ue,p)=>{"use strict";p.d(ue,{Rr:()=>z,rP:()=>Le});var e=p(49643),A=p(94650),C=p(3238),M=p(12687),m=p(21281),b=p(24006);const D=["input"],v=function(T){return{enterDuration:T}},R=["*"],B=new A.OlP("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let w=0;const L={provide:b.JU,useExisting:(0,A.Gpc)(()=>z),multi:!0};class O{constructor(W,F){this.source=W,this.checked=F}}const q=(0,C.sb)((0,C.pj)((0,C.Kr)((0,C.Id)(class{constructor(T){this._elementRef=T}}))));let te=(()=>{class T extends q{constructor(F,V,ee,Q,Ee,ge,ve){super(F),this._focusMonitor=V,this._changeDetectorRef=ee,this.defaults=Ee,this._onChange=De=>{},this._onTouched=()=>{},this._required=!1,this._checked=!1,this.name=null,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new A.vpe,this.toggleChange=new A.vpe,this.tabIndex=parseInt(Q)||0,this.color=this.defaultColor=Ee.color||"accent",this._noopAnimations="NoopAnimations"===ge,this.id=this._uniqueId=`${ve}${++w}`}get required(){return this._required}set required(F){this._required=(0,m.Ig)(F)}get checked(){return this._checked}set checked(F){this._checked=(0,m.Ig)(F),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(F=>{"keyboard"===F||"program"===F?this._focused=!0:F||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(F){this.checked=!!F}registerOnChange(F){this._onChange=F}registerOnTouched(F){this._onTouched=F}setDisabledState(F){this.disabled=F,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}}return T.\u0275fac=function(F){A.$Z()},T.\u0275dir=A.lG2({type:T,inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},features:[A.qOj]}),T})(),z=(()=>{class T extends te{constructor(F,V,ee,Q,Ee,ge){super(F,V,ee,Q,Ee,ge,"mat-slide-toggle-")}_createChangeEvent(F){return new O(this,F)}_onChangeEvent(F){F.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(F){F.stopPropagation()}focus(F,V){V?this._focusMonitor.focusVia(this._inputElement,V,F):this._inputElement.nativeElement.focus(F)}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return T.\u0275fac=function(F){return new(F||T)(A.Y36(A.SBq),A.Y36(M.tE),A.Y36(A.sBO),A.$8M("tabindex"),A.Y36(B),A.Y36(A.QbO,8))},T.\u0275cmp=A.Xpm({type:T,selectors:[["mat-slide-toggle"]],viewQuery:function(F,V){if(1&F&&A.Gf(D,5),2&F){let ee;A.iGM(ee=A.CRH())&&(V._inputElement=ee.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:13,hostBindings:function(F,V){2&F&&(A.Ikx("id",V.id),A.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null)("name",null),A.ekj("mat-checked",V.checked)("mat-disabled",V.disabled)("mat-slide-toggle-label-before","before"==V.labelPosition)("_mat-animation-noopable",V._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matSlideToggle"],features:[A._Bn([L]),A.qOj],ngContentSelectors:R,decls:14,vars:20,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["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"],[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(F,V){if(1&F&&(A.F$t(),A.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),A.NdJ("change",function(Q){return V._onChangeEvent(Q)})("click",function(Q){return V._onInputClick(Q)}),A.qZA(),A.TgZ(5,"span",5),A._UZ(6,"span",6),A.TgZ(7,"span",7),A._UZ(8,"span",8),A.qZA()()(),A.TgZ(9,"span",9,10),A.NdJ("cdkObserveContent",function(){return V._onLabelTextChange()}),A.TgZ(11,"span",11),A._uU(12,"\xa0"),A.qZA(),A.Hsn(13),A.qZA()()),2&F){const ee=A.MAs(1),Q=A.MAs(10);A.uIk("for",V.inputId),A.xp6(2),A.ekj("mat-slide-toggle-bar-no-side-margin",!Q.textContent||!Q.textContent.trim()),A.xp6(1),A.Q6J("id",V.inputId)("required",V.required)("tabIndex",V.tabIndex)("checked",V.checked)("disabled",V.disabled),A.uIk("name",V.name)("aria-checked",V.checked)("aria-label",V.ariaLabel)("aria-labelledby",V.ariaLabelledby)("aria-describedby",V.ariaDescribedby),A.xp6(4),A.Q6J("matRippleTrigger",ee)("matRippleDisabled",V.disableRipple||V.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",A.VKq(18,v,V._noopAnimations?0:150))}},dependencies:[C.wG,e.wD],styles:['.mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.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{-webkit-user-select:none;user-select:none;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%;display:block}.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}}.mat-slide-toggle-input:focus~.mat-slide-toggle-thumb-container .mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}'],encapsulation:2,changeDetection:0}),T})(),pe=(()=>{class T{}return T.\u0275fac=function(F){return new(F||T)},T.\u0275mod=A.oAB({type:T}),T.\u0275inj=A.cJS({}),T})(),Le=(()=>{class T{}return T.\u0275fac=function(F){return new(F||T)},T.\u0275mod=A.oAB({type:T}),T.\u0275inj=A.cJS({imports:[pe,C.si,C.BQ,e.Q8,pe,C.BQ]}),T})()},17009:(Xe,ue,p)=>{"use strict";p.d(ue,{ZX:()=>Te});var e=p(98184),A=p(84080),C=p(36895),M=p(94650),m=p(3238),b=p(4859);p(37340);let Te=(()=>{class F{}return F.\u0275fac=function(ee){return new(ee||F)},F.\u0275mod=M.oAB({type:F}),F.\u0275inj=M.cJS({imports:[e.U8,A.eL,C.ez,b.ot,m.BQ,m.BQ]}),F})()},96308:(Xe,ue,p)=>{"use strict";p.d(ue,{JX:()=>ge,YE:()=>pe,nU:()=>Ee});var e=p(94650),A=p(12687),C=p(21281),M=p(29521),m=p(3238),b=p(77579),D=p(56451),v=p(37340),R=p(36895);const B=["mat-sort-header",""];function w(ve,De){if(1&ve){const he=e.EpF();e.TgZ(0,"div",3),e.NdJ("@arrowPosition.start",function(){e.CHM(he);const Be=e.oxw();return e.KtG(Be._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){e.CHM(he);const Be=e.oxw();return e.KtG(Be._disableViewStateAnimation=!1)}),e._UZ(1,"div",4),e.TgZ(2,"div",5),e._UZ(3,"div",6)(4,"div",7)(5,"div",8),e.qZA()()}if(2&ve){const he=e.oxw();e.Q6J("@arrowOpacity",he._getArrowViewState())("@arrowPosition",he._getArrowViewState())("@allowChildren",he._getArrowDirectionState()),e.xp6(2),e.Q6J("@indicator",he._getArrowDirectionState()),e.xp6(1),e.Q6J("@leftPointer",he._getArrowDirectionState()),e.xp6(1),e.Q6J("@rightPointer",he._getArrowDirectionState())}}const L=["*"],ie=new e.OlP("MAT_SORT_DEFAULT_OPTIONS"),Te=(0,m.dB)((0,m.Id)(class{}));let pe=(()=>{class ve extends Te{constructor(he){super(),this._defaultOptions=he,this.sortables=new Map,this._stateChanges=new b.x,this.start="asc",this._direction="",this.sortChange=new e.vpe}get direction(){return this._direction}set direction(he){this._direction=he}get disableClear(){return this._disableClear}set disableClear(he){this._disableClear=(0,C.Ig)(he)}register(he){this.sortables.set(he.id,he)}deregister(he){this.sortables.delete(he.id)}sort(he){this.active!=he.id?(this.active=he.id,this.direction=he.start?he.start:this.start):this.direction=this.getNextSortDirection(he),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(he){var Ye,Be,se;if(!he)return"";const le=null!==(Ye=null!==(Be=he?.disableClear)&&void 0!==Be?Be:this.disableClear)&&void 0!==Ye?Ye:!(null===(se=this._defaultOptions)||void 0===se||!se.disableClear);let N=function Le(ve,De){let he=["asc","desc"];return"desc"==ve&&he.reverse(),De||he.push(""),he}(he.start||this.start,le),k=N.indexOf(this.direction)+1;return k>=N.length&&(k=0),N[k]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return ve.\u0275fac=function(he){return new(he||ve)(e.Y36(ie,8))},ve.\u0275dir=e.lG2({type:ve,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],active:["matSortActive","active"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[e.qOj,e.TTD]}),ve})();const T=m.mZ.ENTERING+" "+m.yN.STANDARD_CURVE,W={indicator:(0,v.X$)("indicator",[(0,v.SB)("active-asc, asc",(0,v.oB)({transform:"translateY(0px)"})),(0,v.SB)("active-desc, desc",(0,v.oB)({transform:"translateY(10px)"})),(0,v.eR)("active-asc <=> active-desc",(0,v.jt)(T))]),leftPointer:(0,v.X$)("leftPointer",[(0,v.SB)("active-asc, asc",(0,v.oB)({transform:"rotate(-45deg)"})),(0,v.SB)("active-desc, desc",(0,v.oB)({transform:"rotate(45deg)"})),(0,v.eR)("active-asc <=> active-desc",(0,v.jt)(T))]),rightPointer:(0,v.X$)("rightPointer",[(0,v.SB)("active-asc, asc",(0,v.oB)({transform:"rotate(45deg)"})),(0,v.SB)("active-desc, desc",(0,v.oB)({transform:"rotate(-45deg)"})),(0,v.eR)("active-asc <=> active-desc",(0,v.jt)(T))]),arrowOpacity:(0,v.X$)("arrowOpacity",[(0,v.SB)("desc-to-active, asc-to-active, active",(0,v.oB)({opacity:1})),(0,v.SB)("desc-to-hint, asc-to-hint, hint",(0,v.oB)({opacity:.54})),(0,v.SB)("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",(0,v.oB)({opacity:0})),(0,v.eR)("* => asc, * => desc, * => active, * => hint, * => void",(0,v.jt)("0ms")),(0,v.eR)("* <=> *",(0,v.jt)(T))]),arrowPosition:(0,v.X$)("arrowPosition",[(0,v.eR)("* => desc-to-hint, * => desc-to-active",(0,v.jt)(T,(0,v.F4)([(0,v.oB)({transform:"translateY(-25%)"}),(0,v.oB)({transform:"translateY(0)"})]))),(0,v.eR)("* => hint-to-desc, * => active-to-desc",(0,v.jt)(T,(0,v.F4)([(0,v.oB)({transform:"translateY(0)"}),(0,v.oB)({transform:"translateY(25%)"})]))),(0,v.eR)("* => asc-to-hint, * => asc-to-active",(0,v.jt)(T,(0,v.F4)([(0,v.oB)({transform:"translateY(25%)"}),(0,v.oB)({transform:"translateY(0)"})]))),(0,v.eR)("* => hint-to-asc, * => active-to-asc",(0,v.jt)(T,(0,v.F4)([(0,v.oB)({transform:"translateY(0)"}),(0,v.oB)({transform:"translateY(-25%)"})]))),(0,v.SB)("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",(0,v.oB)({transform:"translateY(0)"})),(0,v.SB)("hint-to-desc, active-to-desc, desc",(0,v.oB)({transform:"translateY(-25%)"})),(0,v.SB)("hint-to-asc, active-to-asc, asc",(0,v.oB)({transform:"translateY(25%)"}))]),allowChildren:(0,v.X$)("allowChildren",[(0,v.eR)("* <=> *",[(0,v.IO)("@*",(0,v.pV)(),{optional:!0})])])};let F=(()=>{class ve{constructor(){this.changes=new b.x}}return ve.\u0275fac=function(he){return new(he||ve)},ve.\u0275prov=e.Yz7({token:ve,factory:ve.\u0275fac,providedIn:"root"}),ve})();const ee={provide:F,deps:[[new e.FiY,new e.tp0,F]],useFactory:function V(ve){return ve||new F}},Q=(0,m.Id)(class{});let Ee=(()=>{class ve extends Q{constructor(he,Ye,Be,se,le,N,k,be){super(),this._intl=he,this._changeDetectorRef=Ye,this._sort=Be,this._columnDef=se,this._focusMonitor=le,this._elementRef=N,this._ariaDescriber=k,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",null!=be&&be.arrowPosition&&(this.arrowPosition=be?.arrowPosition),this._handleStateChanges()}get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(he){this._updateSortActionDescription(he)}get disableClear(){return this._disableClear}set disableClear(he){this._disableClear=(0,C.Ig)(he)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(he=>{const Ye=!!he;Ye!==this._showIndicatorHint&&(this._setIndicatorHintVisible(Ye),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(he){this._isDisabled()&&he||(this._showIndicatorHint=he,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(he){this._viewState=he||{},this._disableViewStateAnimation&&(this._viewState={toState:he.toState})}_toggleOnInteraction(){this._sort.sort(this),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(he){!this._isDisabled()&&(he.keyCode===M.L_||he.keyCode===M.K5)&&(he.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const he=this._viewState.fromState;return(he?`${he}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(he){var Ye,Be;this._sortButton&&(null===(Ye=this._ariaDescriber)||void 0===Ye||Ye.removeDescription(this._sortButton,this._sortActionDescription),null===(Be=this._ariaDescriber)||void 0===Be||Be.describe(this._sortButton,he)),this._sortActionDescription=he}_handleStateChanges(){this._rerenderSubscription=(0,D.T)(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}}return ve.\u0275fac=function(he){return new(he||ve)(e.Y36(F),e.Y36(e.sBO),e.Y36(pe,8),e.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),e.Y36(A.tE),e.Y36(e.SBq),e.Y36(A.$s,8),e.Y36(ie,8))},ve.\u0275cmp=e.Xpm({type:ve,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(he,Ye){1&he&&e.NdJ("click",function(){return Ye._handleClick()})("keydown",function(se){return Ye._handleKeydown(se)})("mouseenter",function(){return Ye._setIndicatorHintVisible(!0)})("mouseleave",function(){return Ye._setIndicatorHintVisible(!1)}),2&he&&(e.uIk("aria-sort",Ye._getAriaSortAttribute()),e.ekj("mat-sort-header-disabled",Ye._isDisabled()))},inputs:{disabled:"disabled",id:["mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[e.qOj],attrs:B,ngContentSelectors:L,decls:4,vars:7,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(he,Ye){1&he&&(e.F$t(),e.TgZ(0,"div",0)(1,"div",1),e.Hsn(2),e.qZA(),e.YNc(3,w,6,6,"div",2),e.qZA()),2&he&&(e.ekj("mat-sort-header-sorted",Ye._isSorted())("mat-sort-header-position-before","before"===Ye.arrowPosition),e.uIk("tabindex",Ye._isDisabled()?null:0)("role",Ye._isDisabled()?null:"button"),e.xp6(3),e.Q6J("ngIf",Ye._renderArrow()))},dependencies:[R.O5],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}"],encapsulation:2,data:{animation:[W.indicator,W.leftPointer,W.rightPointer,W.arrowOpacity,W.arrowPosition,W.allowChildren]},changeDetection:0}),ve})(),ge=(()=>{class ve{}return ve.\u0275fac=function(he){return new(he||ve)},ve.\u0275mod=e.oAB({type:ve}),ve.\u0275inj=e.cJS({providers:[ee],imports:[R.ez,m.BQ]}),ve})()},86257:(Xe,ue,p)=>{"use strict";p.d(ue,{C0:()=>d,BY:()=>l,VY:()=>u,Vq:()=>c,T5:()=>ht,fd:()=>J});var e=p(84080),A=p(12687),C=p(40445),M=p(21281),m=p(29521),b=p(94650),D=p(83353),v=p(77579),R=p(39646),B=p(68675),w=p(82722);function L(ze,et){1&ze&&b.Hsn(0)}const O=["*"];let q=(()=>{class ze{constructor(ne){this._elementRef=ne}focus(){this._elementRef.nativeElement.focus()}}return ze.\u0275fac=function(ne){return new(ne||ze)(b.Y36(b.SBq))},ze.\u0275dir=b.lG2({type:ze,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),ze})(),te=(()=>{class ze{constructor(ne){this.template=ne}}return ze.\u0275fac=function(ne){return new(ne||ze)(b.Y36(b.Rgc))},ze.\u0275dir=b.lG2({type:ze,selectors:[["","cdkStepLabel",""]]}),ze})(),z=0;const pe=new b.OlP("STEPPER_GLOBAL_OPTIONS");let Le=(()=>{class ze{constructor(ne,Ue){this._stepper=ne,this.interacted=!1,this.interactedStream=new b.vpe,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=Ue||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType}get editable(){return this._editable}set editable(ne){this._editable=(0,M.Ig)(ne)}get optional(){return this._optional}set optional(ne){this._optional=(0,M.Ig)(ne)}get completed(){return this._completedOverride??this._getDefaultCompleted()}set completed(ne){this._completedOverride=(0,M.Ig)(ne)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return this._customError??this._getDefaultError()}set hasError(ne){this._customError=(0,M.Ig)(ne)}_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()}_markAsInteracted(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this))}_showError(){var ne;return null!==(ne=this._stepperOptions.showError)&&void 0!==ne?ne:null!=this._customError}}return ze.\u0275fac=function(ne){return new(ne||ze)(b.Y36((0,b.Gpc)(()=>T)),b.Y36(pe,8))},ze.\u0275cmp=b.Xpm({type:ze,selectors:[["cdk-step"]],contentQueries:function(ne,Ue,He){if(1&ne&&b.Suo(He,te,5),2&ne){let Pe;b.iGM(Pe=b.CRH())&&(Ue.stepLabel=Pe.first)}},viewQuery:function(ne,Ue){if(1&ne&&b.Gf(b.Rgc,7),2&ne){let He;b.iGM(He=b.CRH())&&(Ue.content=He.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],state:"state",editable:"editable",optional:"optional",completed:"completed",hasError:"hasError"},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[b.TTD],ngContentSelectors:O,decls:1,vars:0,template:function(ne,Ue){1&ne&&(b.F$t(),b.YNc(0,L,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),ze})(),T=(()=>{class ze{constructor(ne,Ue,He){this._dir=ne,this._changeDetectorRef=Ue,this._elementRef=He,this._destroyed=new v.x,this.steps=new b.n_E,this._sortedHeaders=new b.n_E,this._linear=!1,this._selectedIndex=0,this.selectionChange=new b.vpe,this._orientation="horizontal",this._groupId=z++}get linear(){return this._linear}set linear(ne){this._linear=(0,M.Ig)(ne)}get selectedIndex(){return this._selectedIndex}set selectedIndex(ne){const Ue=(0,M.su)(ne);var He;this.steps&&this._steps?(this._isValidIndex(Ue),null===(He=this.selected)||void 0===He||He._markAsInteracted(),this._selectedIndex!==Ue&&!this._anyControlsInvalidOrPending(Ue)&&(Ue>=this._selectedIndex||this.steps.toArray()[Ue].editable)&&this._updateSelectedItemIndex(Ue)):this._selectedIndex=Ue}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(ne){this.selectedIndex=ne&&this.steps?this.steps.toArray().indexOf(ne):-1}get orientation(){return this._orientation}set orientation(ne){this._orientation=ne,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===ne)}ngAfterContentInit(){this._steps.changes.pipe((0,B.O)(this._steps),(0,w.R)(this._destroyed)).subscribe(ne=>{this.steps.reset(ne.filter(Ue=>Ue._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._stepHeader.changes.pipe((0,B.O)(this._stepHeader),(0,w.R)(this._destroyed)).subscribe(ne=>{this._sortedHeaders.reset(ne.toArray().sort((Ue,He)=>Ue._elementRef.nativeElement.compareDocumentPosition(He._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new A.Em(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:(0,R.of)()).pipe((0,B.O)(this._layoutDirection()),(0,w.R)(this._destroyed)).subscribe(ne=>this._keyManager.withHorizontalOrientation(ne)),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._sortedHeaders.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(ne=>ne.reset()),this._stateChanged()}_getStepLabelId(ne){return`cdk-step-label-${this._groupId}-${ne}`}_getStepContentId(ne){return`cdk-step-content-${this._groupId}-${ne}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(ne){const Ue=ne-this._selectedIndex;return Ue<0?"rtl"===this._layoutDirection()?"next":"previous":Ue>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(ne,Ue="number"){const He=this.steps.toArray()[ne],Pe=this._isCurrentStep(ne);return He._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(He,Pe):this._getGuidelineLogic(He,Pe,Ue)}_getDefaultIndicatorLogic(ne,Ue){return ne._showError()&&ne.hasError&&!Ue?"error":!ne.completed||Ue?"number":ne.editable?"edit":"done"}_getGuidelineLogic(ne,Ue,He="number"){return ne._showError()&&ne.hasError&&!Ue?"error":ne.completed&&!Ue?"done":ne.completed&&Ue?He:ne.editable&&Ue?"edit":He}_isCurrentStep(ne){return this._selectedIndex===ne}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(ne){const Ue=this.steps.toArray();this.selectionChange.emit({selectedIndex:ne,previouslySelectedIndex:this._selectedIndex,selectedStep:Ue[ne],previouslySelectedStep:Ue[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(ne):this._keyManager.updateActiveItem(ne),this._selectedIndex=ne,this._stateChanged()}_onKeydown(ne){const Ue=(0,m.Vb)(ne),He=ne.keyCode,Pe=this._keyManager;null==Pe.activeItemIndex||Ue||He!==m.L_&&He!==m.K5?Pe.onKeydown(ne):(this.selectedIndex=Pe.activeItemIndex,ne.preventDefault())}_anyControlsInvalidOrPending(ne){return!!(this._linear&&ne>=0)&&this.steps.toArray().slice(0,ne).some(Ue=>{const He=Ue.stepControl;return(He?He.invalid||He.pending||!Ue.interacted:!Ue.completed)&&!Ue.optional&&!Ue._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){const ne=this._elementRef.nativeElement,Ue=(0,D.ht)();return ne===Ue||ne.contains(Ue)}_isValidIndex(ne){return ne>-1&&(!this.steps||ne{class ze{constructor(ne){this._stepper=ne,this.type="button"}}return ze.\u0275fac=function(ne){return new(ne||ze)(b.Y36(T))},ze.\u0275dir=b.lG2({type:ze,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(ne,Ue){1&ne&&b.NdJ("click",function(){return Ue._stepper.previous()}),2&ne&&b.Ikx("type",Ue.type)},inputs:{type:"type"}}),ze})(),V=(()=>{class ze{}return ze.\u0275fac=function(ne){return new(ne||ze)},ze.\u0275mod=b.oAB({type:ze}),ze.\u0275inj=b.cJS({imports:[C.vT]}),ze})();var ee=p(36895),Q=p(4859),Ee=p(3238),ge=p(97392),ve=p(50727),De=p(63900),he=p(54004),Ye=p(71884),Be=p(37340);function se(ze,et){if(1&ze&&b.GkF(0,8),2&ze){const ne=b.oxw();b.Q6J("ngTemplateOutlet",ne.iconOverrides[ne.state])("ngTemplateOutletContext",ne._getIconContext())}}function le(ze,et){if(1&ze&&(b.TgZ(0,"span",13),b._uU(1),b.qZA()),2&ze){const ne=b.oxw(2);b.xp6(1),b.Oqu(ne._getDefaultTextForState(ne.state))}}function N(ze,et){if(1&ze&&(b.TgZ(0,"span",14),b._uU(1),b.qZA()),2&ze){const ne=b.oxw(2);b.xp6(1),b.Oqu(ne._intl.completedLabel)}}function k(ze,et){if(1&ze&&(b.TgZ(0,"span",14),b._uU(1),b.qZA()),2&ze){const ne=b.oxw(2);b.xp6(1),b.Oqu(ne._intl.editableLabel)}}function be(ze,et){if(1&ze&&(b.TgZ(0,"mat-icon",13),b._uU(1),b.qZA()),2&ze){const ne=b.oxw(2);b.xp6(1),b.Oqu(ne._getDefaultTextForState(ne.state))}}function Z(ze,et){if(1&ze&&(b.ynx(0,9),b.YNc(1,le,2,1,"span",10),b.YNc(2,N,2,1,"span",11),b.YNc(3,k,2,1,"span",11),b.YNc(4,be,2,1,"mat-icon",12),b.BQk()),2&ze){const ne=b.oxw();b.Q6J("ngSwitch",ne.state),b.xp6(1),b.Q6J("ngSwitchCase","number"),b.xp6(1),b.Q6J("ngIf","done"===ne.state),b.xp6(1),b.Q6J("ngIf","edit"===ne.state)}}function ce(ze,et){if(1&ze&&(b.TgZ(0,"div",15),b.GkF(1,16),b.qZA()),2&ze){const ne=b.oxw();b.xp6(1),b.Q6J("ngTemplateOutlet",ne._templateLabel().template)}}function xe(ze,et){if(1&ze&&(b.TgZ(0,"div",15),b._uU(1),b.qZA()),2&ze){const ne=b.oxw();b.xp6(1),b.Oqu(ne.label)}}function ot(ze,et){if(1&ze&&(b.TgZ(0,"div",17),b._uU(1),b.qZA()),2&ze){const ne=b.oxw();b.xp6(1),b.Oqu(ne._intl.optionalLabel)}}function Fe(ze,et){if(1&ze&&(b.TgZ(0,"div",18),b._uU(1),b.qZA()),2&ze){const ne=b.oxw();b.xp6(1),b.Oqu(ne.errorMessage)}}function ut(ze,et){}function tt(ze,et){if(1&ze&&(b.Hsn(0),b.YNc(1,ut,0,0,"ng-template",0)),2&ze){const ne=b.oxw();b.xp6(1),b.Q6J("cdkPortalOutlet",ne._portal)}}const vt=["*"];function X(ze,et){1&ze&&b._UZ(0,"div",11)}const nt=function(ze,et){return{step:ze,i:et}};function Ae(ze,et){if(1&ze&&(b.ynx(0),b.GkF(1,9),b.YNc(2,X,1,0,"div",10),b.BQk()),2&ze){const ne=et.$implicit,Ue=et.index,He=et.last;b.oxw(2);const Pe=b.MAs(4);b.xp6(1),b.Q6J("ngTemplateOutlet",Pe)("ngTemplateOutletContext",b.WLB(3,nt,ne,Ue)),b.xp6(1),b.Q6J("ngIf",!He)}}const ye=function(ze){return{animationDuration:ze}},_e=function(ze,et){return{value:ze,params:et}};function Se(ze,et){if(1&ze){const ne=b.EpF();b.TgZ(0,"div",12),b.NdJ("@horizontalStepTransition.done",function(He){b.CHM(ne);const Pe=b.oxw(2);return b.KtG(Pe._animationDone.next(He))}),b.GkF(1,13),b.qZA()}if(2&ze){const ne=et.$implicit,Ue=et.index,He=b.oxw(2);b.Q6J("@horizontalStepTransition",b.WLB(7,_e,He._getAnimationDirection(Ue),b.VKq(5,ye,He._getAnimationDuration())))("id",He._getStepContentId(Ue)),b.uIk("aria-labelledby",He._getStepLabelId(Ue))("aria-expanded",He.selectedIndex===Ue),b.xp6(1),b.Q6J("ngTemplateOutlet",ne.content)}}function Ne(ze,et){if(1&ze&&(b.TgZ(0,"div",4)(1,"div",5),b.YNc(2,Ae,3,6,"ng-container",6),b.qZA(),b.TgZ(3,"div",7),b.YNc(4,Se,2,10,"div",8),b.qZA()()),2&ze){const ne=b.oxw();b.xp6(2),b.Q6J("ngForOf",ne.steps),b.xp6(2),b.Q6J("ngForOf",ne.steps)}}function Ce(ze,et){if(1&ze){const ne=b.EpF();b.TgZ(0,"div",15),b.GkF(1,9),b.TgZ(2,"div",16)(3,"div",17),b.NdJ("@verticalStepTransition.done",function(He){b.CHM(ne);const Pe=b.oxw(2);return b.KtG(Pe._animationDone.next(He))}),b.TgZ(4,"div",18),b.GkF(5,13),b.qZA()()()()}if(2&ze){const ne=et.$implicit,Ue=et.index,He=et.last,Pe=b.oxw(2),Re=b.MAs(4);b.xp6(1),b.Q6J("ngTemplateOutlet",Re)("ngTemplateOutletContext",b.WLB(9,nt,ne,Ue)),b.xp6(1),b.ekj("mat-stepper-vertical-line",!He),b.xp6(1),b.Q6J("@verticalStepTransition",b.WLB(14,_e,Pe._getAnimationDirection(Ue),b.VKq(12,ye,Pe._getAnimationDuration())))("id",Pe._getStepContentId(Ue)),b.uIk("aria-labelledby",Pe._getStepLabelId(Ue))("aria-expanded",Pe.selectedIndex===Ue),b.xp6(2),b.Q6J("ngTemplateOutlet",ne.content)}}function fe(ze,et){if(1&ze&&(b.ynx(0),b.YNc(1,Ce,6,17,"div",14),b.BQk()),2&ze){const ne=b.oxw();b.xp6(1),b.Q6J("ngForOf",ne.steps)}}function r(ze,et){if(1&ze){const ne=b.EpF();b.TgZ(0,"mat-step-header",19),b.NdJ("click",function(){const Pe=b.CHM(ne).step;return b.KtG(Pe.select())})("keydown",function(He){b.CHM(ne);const Pe=b.oxw();return b.KtG(Pe._onKeydown(He))}),b.qZA()}if(2&ze){const ne=et.step,Ue=et.i,He=b.oxw();b.ekj("mat-horizontal-stepper-header","horizontal"===He.orientation)("mat-vertical-stepper-header","vertical"===He.orientation),b.Q6J("tabIndex",He._getFocusIndex()===Ue?0:-1)("id",He._getStepLabelId(Ue))("index",Ue)("state",He._getIndicatorType(Ue,ne.state))("label",ne.stepLabel||ne.label)("selected",He.selectedIndex===Ue)("active",He._stepIsNavigable(Ue,ne))("optional",ne.optional)("errorMessage",ne.errorMessage)("iconOverrides",He._iconOverrides)("disableRipple",He.disableRipple||!He._stepIsNavigable(Ue,ne))("color",ne.color||He.color),b.uIk("aria-posinset",Ue+1)("aria-setsize",He.steps.length)("aria-controls",He._getStepContentId(Ue))("aria-selected",He.selectedIndex==Ue)("aria-label",ne.ariaLabel||null)("aria-labelledby",!ne.ariaLabel&&ne.ariaLabelledby?ne.ariaLabelledby:null)("aria-disabled",!He._stepIsNavigable(Ue,ne)||null)}}let u=(()=>{class ze extends te{}return ze.\u0275fac=function(){let et;return function(Ue){return(et||(et=b.n5z(ze)))(Ue||ze)}}(),ze.\u0275dir=b.lG2({type:ze,selectors:[["","matStepLabel",""]],features:[b.qOj]}),ze})(),_=(()=>{class ze{constructor(){this.changes=new v.x,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return ze.\u0275fac=function(ne){return new(ne||ze)},ze.\u0275prov=b.Yz7({token:ze,factory:ze.\u0275fac,providedIn:"root"}),ze})();const h={provide:_,deps:[[new b.FiY,new b.tp0,_]],useFactory:function E(ze){return ze||new _}},a=(0,Ee.pj)(class extends q{constructor(et){super(et)}},"primary");let i=(()=>{class ze extends a{constructor(ne,Ue,He,Pe){super(He),this._intl=ne,this._focusMonitor=Ue,this._intlSubscription=ne.changes.subscribe(()=>Pe.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(ne,Ue){ne?this._focusMonitor.focusVia(this._elementRef,ne,Ue):this._elementRef.nativeElement.focus(Ue)}_stringLabel(){return this.label instanceof u?null:this.label}_templateLabel(){return this.label instanceof u?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(ne){return"number"==ne?`${this.index+1}`:"edit"==ne?"create":"error"==ne?"warning":ne}}return ze.\u0275fac=function(ne){return new(ne||ze)(b.Y36(_),b.Y36(A.tE),b.Y36(b.SBq),b.Y36(b.sBO))},ze.\u0275cmp=b.Xpm({type:ze,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],inputs:{color:"color",state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple"},features:[b.qOj],decls:10,vars:19,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",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"],["aria-hidden","true",4,"ngSwitchCase"],["class","cdk-visually-hidden",4,"ngIf"],["aria-hidden","true",4,"ngSwitchDefault"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[1,"mat-step-text-label"],[3,"ngTemplateOutlet"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"]],template:function(ne,Ue){1&ne&&(b._UZ(0,"div",0),b.TgZ(1,"div")(2,"div",1),b.YNc(3,se,1,2,"ng-container",2),b.YNc(4,Z,5,4,"ng-container",3),b.qZA()(),b.TgZ(5,"div",4),b.YNc(6,ce,2,1,"div",5),b.YNc(7,xe,2,1,"div",5),b.YNc(8,ot,2,1,"div",6),b.YNc(9,Fe,2,1,"div",7),b.qZA()),2&ne&&(b.Q6J("matRippleTrigger",Ue._getHostElement())("matRippleDisabled",Ue.disableRipple),b.xp6(1),b.Gre("mat-step-icon-state-",Ue.state," mat-step-icon"),b.ekj("mat-step-icon-selected",Ue.selected),b.xp6(1),b.Q6J("ngSwitch",!(!Ue.iconOverrides||!Ue.iconOverrides[Ue.state])),b.xp6(1),b.Q6J("ngSwitchCase",!0),b.xp6(2),b.ekj("mat-step-label-active",Ue.active)("mat-step-label-selected",Ue.selected)("mat-step-label-error","error"==Ue.state),b.xp6(1),b.Q6J("ngIf",Ue._templateLabel()),b.xp6(1),b.Q6J("ngIf",Ue._stringLabel()),b.xp6(1),b.Q6J("ngIf",Ue.optional&&"error"!=Ue.state),b.xp6(1),b.Q6J("ngIf","error"==Ue.state))},dependencies:[ee.O5,ee.tP,ee.RF,ee.n9,ee.ED,ge.Hw,Ee.wG],styles:['.mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-step-header:focus .mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-step-header{outline:solid 1px}.cdk-high-contrast-active .mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.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{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.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}'],encapsulation:2,changeDetection:0}),ze})();const t="500ms",n="225ms",o={horizontalStepTransition:(0,Be.X$)("horizontalStepTransition",[(0,Be.SB)("previous",(0,Be.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),(0,Be.SB)("current",(0,Be.oB)({transform:"none",visibility:"inherit"})),(0,Be.SB)("next",(0,Be.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),(0,Be.eR)("* => *",(0,Be.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)"),{params:{animationDuration:t}})]),verticalStepTransition:(0,Be.X$)("verticalStepTransition",[(0,Be.SB)("previous",(0,Be.oB)({height:"0px",visibility:"hidden"})),(0,Be.SB)("next",(0,Be.oB)({height:"0px",visibility:"hidden"})),(0,Be.SB)("current",(0,Be.oB)({height:"*",visibility:"inherit"})),(0,Be.eR)("* <=> current",(0,Be.jt)("{{animationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)"),{params:{animationDuration:n}})])};let s=(()=>{class ze{constructor(ne){this.templateRef=ne}}return ze.\u0275fac=function(ne){return new(ne||ze)(b.Y36(b.Rgc))},ze.\u0275dir=b.lG2({type:ze,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),ze})(),l=(()=>{class ze{constructor(ne){this._template=ne}}return ze.\u0275fac=function(ne){return new(ne||ze)(b.Y36(b.Rgc))},ze.\u0275dir=b.lG2({type:ze,selectors:[["ng-template","matStepContent",""]]}),ze})(),d=(()=>{class ze extends Le{constructor(ne,Ue,He,Pe){super(ne,Pe),this._errorStateMatcher=Ue,this._viewContainerRef=He,this._isSelected=ve.w0.EMPTY}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe((0,De.w)(()=>this._stepper.selectionChange.pipe((0,he.U)(ne=>ne.selectedStep===this),(0,B.O)(this._stepper.selected===this)))).subscribe(ne=>{ne&&this._lazyContent&&!this._portal&&(this._portal=new e.UE(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(ne,Ue){return this._errorStateMatcher.isErrorState(ne,Ue)||!!(ne&&ne.invalid&&this.interacted)}}return ze.\u0275fac=function(ne){return new(ne||ze)(b.Y36((0,b.Gpc)(()=>c)),b.Y36(Ee.rD,4),b.Y36(b.s_b),b.Y36(pe,8))},ze.\u0275cmp=b.Xpm({type:ze,selectors:[["mat-step"]],contentQueries:function(ne,Ue,He){if(1&ne&&(b.Suo(He,u,5),b.Suo(He,l,5)),2&ne){let Pe;b.iGM(Pe=b.CRH())&&(Ue.stepLabel=Pe.first),b.iGM(Pe=b.CRH())&&(Ue._lazyContent=Pe.first)}},inputs:{color:"color"},exportAs:["matStep"],features:[b._Bn([{provide:Ee.rD,useExisting:ze},{provide:Le,useExisting:ze}]),b.qOj],ngContentSelectors:vt,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(ne,Ue){1&ne&&(b.F$t(),b.YNc(0,tt,2,1,"ng-template"))},dependencies:[e.Pl],encapsulation:2,changeDetection:0}),ze})(),c=(()=>{class ze extends T{constructor(ne,Ue,He){super(ne,Ue,He),this.steps=new b.n_E,this.animationDone=new b.vpe,this.labelPosition="end",this.headerPosition="top",this._iconOverrides={},this._animationDone=new v.x,this._animationDuration="";const Pe=He.nativeElement.nodeName.toLowerCase();this.orientation="mat-vertical-stepper"===Pe?"vertical":"horizontal"}get animationDuration(){return this._animationDuration}set animationDuration(ne){this._animationDuration=/^\d+$/.test(ne)?ne+"ms":ne}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:ne,templateRef:Ue})=>this._iconOverrides[ne]=Ue),this.steps.changes.pipe((0,w.R)(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe((0,Ye.x)((ne,Ue)=>ne.fromState===Ue.fromState&&ne.toState===Ue.toState),(0,w.R)(this._destroyed)).subscribe(ne=>{"current"===ne.toState&&this.animationDone.emit()})}_stepIsNavigable(ne,Ue){return Ue.completed||this.selectedIndex===ne||!this.linear}_getAnimationDuration(){return this.animationDuration?this.animationDuration:"horizontal"===this.orientation?t:n}}return ze.\u0275fac=function(ne){return new(ne||ze)(b.Y36(C.Is,8),b.Y36(b.sBO),b.Y36(b.SBq))},ze.\u0275cmp=b.Xpm({type:ze,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(ne,Ue,He){if(1&ne&&(b.Suo(He,d,5),b.Suo(He,s,5)),2&ne){let Pe;b.iGM(Pe=b.CRH())&&(Ue._steps=Pe),b.iGM(Pe=b.CRH())&&(Ue._icons=Pe)}},viewQuery:function(ne,Ue){if(1&ne&&b.Gf(i,5),2&ne){let He;b.iGM(He=b.CRH())&&(Ue._stepHeader=He)}},hostAttrs:["role","tablist"],hostVars:11,hostBindings:function(ne,Ue){2&ne&&(b.uIk("aria-orientation",Ue.orientation),b.ekj("mat-stepper-horizontal","horizontal"===Ue.orientation)("mat-stepper-vertical","vertical"===Ue.orientation)("mat-stepper-label-position-end","horizontal"===Ue.orientation&&"end"==Ue.labelPosition)("mat-stepper-label-position-bottom","horizontal"===Ue.orientation&&"bottom"==Ue.labelPosition)("mat-stepper-header-position-bottom","bottom"===Ue.headerPosition))},inputs:{selectedIndex:"selectedIndex",disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition",headerPosition:"headerPosition",animationDuration:"animationDuration"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[b._Bn([{provide:T,useExisting:ze}]),b.qOj],decls:5,vars:3,consts:[[3,"ngSwitch"],["class","mat-horizontal-stepper-wrapper",4,"ngSwitchCase"],[4,"ngSwitchCase"],["stepTemplate",""],[1,"mat-horizontal-stepper-wrapper"],[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"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","mat-stepper-horizontal-line",4,"ngIf"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],["class","mat-step",4,"ngFor","ngForOf"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color","click","keydown"]],template:function(ne,Ue){1&ne&&(b.ynx(0,0),b.YNc(1,Ne,5,2,"div",1),b.YNc(2,fe,2,1,"ng-container",2),b.BQk(),b.YNc(3,r,1,23,"ng-template",null,3,b.W1O)),2&ne&&(b.Q6J("ngSwitch",Ue.orientation),b.xp6(1),b.Q6J("ngSwitchCase","horizontal"),b.xp6(1),b.Q6J("ngSwitchCase","vertical"))},dependencies:[ee.sg,ee.O5,ee.tP,ee.RF,ee.n9,i],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-header-position-bottom .mat-horizontal-stepper-header-container{order:1}.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-wrapper{display:flex;flex-direction:column}.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}.cdk-high-contrast-active .mat-horizontal-content-container{outline:solid 1px}.mat-stepper-header-position-bottom .mat-horizontal-content-container{padding:24px 24px 0 24px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}.cdk-high-contrast-active .mat-vertical-content-container{outline:solid 1px}[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}'],encapsulation:2,data:{animation:[o.horizontalStepTransition,o.verticalStepTransition]},changeDetection:0}),ze})(),J=(()=>{class ze extends F{}return ze.\u0275fac=function(){let et;return function(Ue){return(et||(et=b.n5z(ze)))(Ue||ze)}}(),ze.\u0275dir=b.lG2({type:ze,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(ne,Ue){2&ne&&b.Ikx("type",Ue.type)},inputs:{type:"type"},features:[b.qOj]}),ze})(),ht=(()=>{class ze{}return ze.\u0275fac=function(ne){return new(ne||ze)},ze.\u0275mod=b.oAB({type:ze}),ze.\u0275inj=b.cJS({providers:[h,Ee.rD],imports:[Ee.BQ,ee.ez,e.eL,Q.ot,V,ge.Ps,Ee.si,Ee.BQ]}),ze})()},30671:(Xe,ue,p)=>{"use strict";p.d(ue,{ev:()=>jt,Dz:()=>st,w1:()=>ke,ge:()=>at,fO:()=>Ke,XQ:()=>Cn,as:()=>an,Gk:()=>Dt,nj:()=>on,BZ:()=>we,by:()=>zn,p0:()=>ln});var e=p(94650),A=p(40445),C=p(21281),M=p(95017),m=p(83353),b=p(67376),D=p(36895),v=p(77579),R=p(32076),B=p(61135),w=p(45191),L=p(39646),O=p(82722),q=p(95698);const te=[[["caption"]],[["colgroup"],["col"]]],z=["caption","colgroup, col"];function pe(bt){return class extends bt{constructor(...Lt){super(...Lt),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(Lt){const pt=this._sticky;this._sticky=(0,C.Ig)(Lt),this._hasStickyChanged=pt!==this._sticky}hasStickyChanged(){const Lt=this._hasStickyChanged;return this._hasStickyChanged=!1,Lt}resetStickyChanged(){this._hasStickyChanged=!1}}}const Le=new e.OlP("CDK_TABLE");let W=(()=>{class bt{constructor(pt){this.template=pt}}return bt.\u0275fac=function(pt){return new(pt||bt)(e.Y36(e.Rgc))},bt.\u0275dir=e.lG2({type:bt,selectors:[["","cdkCellDef",""]]}),bt})(),F=(()=>{class bt{constructor(pt){this.template=pt}}return bt.\u0275fac=function(pt){return new(pt||bt)(e.Y36(e.Rgc))},bt.\u0275dir=e.lG2({type:bt,selectors:[["","cdkHeaderCellDef",""]]}),bt})(),V=(()=>{class bt{constructor(pt){this.template=pt}}return bt.\u0275fac=function(pt){return new(pt||bt)(e.Y36(e.Rgc))},bt.\u0275dir=e.lG2({type:bt,selectors:[["","cdkFooterCellDef",""]]}),bt})();class ee{}const Q=pe(ee);let Ee=(()=>{class bt extends Q{constructor(pt){super(),this._table=pt,this._stickyEnd=!1}get name(){return this._name}set name(pt){this._setNameInput(pt)}get stickyEnd(){return this._stickyEnd}set stickyEnd(pt){const rt=this._stickyEnd;this._stickyEnd=(0,C.Ig)(pt),this._hasStickyChanged=rt!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(pt){pt&&(this._name=pt,this.cssClassFriendlyName=pt.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return bt.\u0275fac=function(pt){return new(pt||bt)(e.Y36(Le,8))},bt.\u0275dir=e.lG2({type:bt,selectors:[["","cdkColumnDef",""]],contentQueries:function(pt,rt,St){if(1&pt&&(e.Suo(St,W,5),e.Suo(St,F,5),e.Suo(St,V,5)),2&pt){let $;e.iGM($=e.CRH())&&(rt.cell=$.first),e.iGM($=e.CRH())&&(rt.headerCell=$.first),e.iGM($=e.CRH())&&(rt.footerCell=$.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[e._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:bt}]),e.qOj]}),bt})();class ge{constructor(Lt,pt){pt.nativeElement.classList.add(...Lt._columnCssClassName)}}let ve=(()=>{class bt extends ge{constructor(pt,rt){super(pt,rt)}}return bt.\u0275fac=function(pt){return new(pt||bt)(e.Y36(Ee),e.Y36(e.SBq))},bt.\u0275dir=e.lG2({type:bt,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[e.qOj]}),bt})(),he=(()=>{class bt extends ge{constructor(pt,rt){var St;if(super(pt,rt),1===(null===(St=pt._table)||void 0===St?void 0:St._elementRef.nativeElement.nodeType)){const $=pt._table._elementRef.nativeElement.getAttribute("role");rt.nativeElement.setAttribute("role","grid"===$||"treegrid"===$?"gridcell":"cell")}}}return bt.\u0275fac=function(pt){return new(pt||bt)(e.Y36(Ee),e.Y36(e.SBq))},bt.\u0275dir=e.lG2({type:bt,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[e.qOj]}),bt})();class Ye{constructor(){this.tasks=[],this.endTasks=[]}}const Be=new e.OlP("_COALESCED_STYLE_SCHEDULER");let se=(()=>{class bt{constructor(pt){this._ngZone=pt,this._currentSchedule=null,this._destroyed=new v.x}schedule(pt){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(pt)}scheduleEnd(pt){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(pt)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new Ye,this._getScheduleObservable().pipe((0,O.R)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const pt=this._currentSchedule;this._currentSchedule=new Ye;for(const rt of pt.tasks)rt();for(const rt of pt.endTasks)rt()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,R.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,q.q)(1))}}return bt.\u0275fac=function(pt){return new(pt||bt)(e.LFG(e.R0b))},bt.\u0275prov=e.Yz7({token:bt,factory:bt.\u0275fac}),bt})(),N=(()=>{class bt{constructor(pt,rt){this.template=pt,this._differs=rt}ngOnChanges(pt){if(!this._columnsDiffer){const rt=pt.columns&&pt.columns.currentValue||[];this._columnsDiffer=this._differs.find(rt).create(),this._columnsDiffer.diff(rt)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(pt){return this instanceof Z?pt.headerCell.template:this instanceof ot?pt.footerCell.template:pt.cell.template}}return bt.\u0275fac=function(pt){return new(pt||bt)(e.Y36(e.Rgc),e.Y36(e.ZZ4))},bt.\u0275dir=e.lG2({type:bt,features:[e.TTD]}),bt})();class k extends N{}const be=pe(k);let Z=(()=>{class bt extends be{constructor(pt,rt,St){super(pt,rt),this._table=St}ngOnChanges(pt){super.ngOnChanges(pt)}}return bt.\u0275fac=function(pt){return new(pt||bt)(e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(Le,8))},bt.\u0275dir=e.lG2({type:bt,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[e.qOj,e.TTD]}),bt})();class ce extends N{}const xe=pe(ce);let ot=(()=>{class bt extends xe{constructor(pt,rt,St){super(pt,rt),this._table=St}ngOnChanges(pt){super.ngOnChanges(pt)}}return bt.\u0275fac=function(pt){return new(pt||bt)(e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(Le,8))},bt.\u0275dir=e.lG2({type:bt,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[e.qOj,e.TTD]}),bt})(),Fe=(()=>{class bt extends N{constructor(pt,rt,St){super(pt,rt),this._table=St}}return bt.\u0275fac=function(pt){return new(pt||bt)(e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(Le,8))},bt.\u0275dir=e.lG2({type:bt,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[e.qOj]}),bt})(),ut=(()=>{class bt{constructor(pt){this._viewContainer=pt,bt.mostRecentCellOutlet=this}ngOnDestroy(){bt.mostRecentCellOutlet===this&&(bt.mostRecentCellOutlet=null)}}return bt.mostRecentCellOutlet=null,bt.\u0275fac=function(pt){return new(pt||bt)(e.Y36(e.s_b))},bt.\u0275dir=e.lG2({type:bt,selectors:[["","cdkCellOutlet",""]]}),bt})(),tt=(()=>{class bt{}return bt.\u0275fac=function(pt){return new(pt||bt)},bt.\u0275cmp=e.Xpm({type:bt,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(pt,rt){1&pt&&e.GkF(0,0)},dependencies:[ut],encapsulation:2}),bt})(),X=(()=>{class bt{}return bt.\u0275fac=function(pt){return new(pt||bt)},bt.\u0275cmp=e.Xpm({type:bt,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(pt,rt){1&pt&&e.GkF(0,0)},dependencies:[ut],encapsulation:2}),bt})(),nt=(()=>{class bt{constructor(pt){this.templateRef=pt,this._contentClassName="cdk-no-data-row"}}return bt.\u0275fac=function(pt){return new(pt||bt)(e.Y36(e.Rgc))},bt.\u0275dir=e.lG2({type:bt,selectors:[["ng-template","cdkNoDataRow",""]]}),bt})();const Ae=["top","bottom","left","right"];class ye{constructor(Lt,pt,rt,St,$=!0,We=!0,At){this._isNativeHtmlTable=Lt,this._stickCellCss=pt,this.direction=rt,this._coalescedStyleScheduler=St,this._isBrowser=$,this._needsPositionStickyOnElement=We,this._positionListener=At,this._cachedCellWidths=[],this._borderCellCss={top:`${pt}-border-elem-top`,bottom:`${pt}-border-elem-bottom`,left:`${pt}-border-elem-left`,right:`${pt}-border-elem-right`}}clearStickyPositioning(Lt,pt){const rt=[];for(const St of Lt)if(St.nodeType===St.ELEMENT_NODE){rt.push(St);for(let $=0;${for(const St of rt)this._removeStickyStyle(St,pt)})}updateStickyColumns(Lt,pt,rt,St=!0){if(!Lt.length||!this._isBrowser||!pt.some(Hn=>Hn)&&!rt.some(Hn=>Hn))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const $=Lt[0],We=$.children.length,At=this._getCellWidths($,St),Pt=this._getStickyStartColumnPositions(At,pt),Xt=this._getStickyEndColumnPositions(At,rt),yn=pt.lastIndexOf(!0),Zn=rt.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const Hn="rtl"===this.direction,Xn=Hn?"right":"left",mi=Hn?"left":"right";for(const di of Lt)for(let Jn=0;Jnpt[Jn]?di:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===Zn?[]:At.slice(Zn).map((di,Jn)=>rt[Jn+Zn]?di:null).reverse()}))})}stickRows(Lt,pt,rt){if(!this._isBrowser)return;const St="bottom"===rt?Lt.slice().reverse():Lt,$="bottom"===rt?pt.slice().reverse():pt,We=[],At=[],Pt=[];for(let yn=0,Zn=0;yn{for(let Hn=0;Hn{pt.some(St=>!St)?this._removeStickyStyle(rt,["bottom"]):this._addStickyStyle(rt,"bottom",0,!1)})}_removeStickyStyle(Lt,pt){for(const St of pt)Lt.style[St]="",Lt.classList.remove(this._borderCellCss[St]);Ae.some(St=>-1===pt.indexOf(St)&&Lt.style[St])?Lt.style.zIndex=this._getCalculatedZIndex(Lt):(Lt.style.zIndex="",this._needsPositionStickyOnElement&&(Lt.style.position=""),Lt.classList.remove(this._stickCellCss))}_addStickyStyle(Lt,pt,rt,St){Lt.classList.add(this._stickCellCss),St&&Lt.classList.add(this._borderCellCss[pt]),Lt.style[pt]=`${rt}px`,Lt.style.zIndex=this._getCalculatedZIndex(Lt),this._needsPositionStickyOnElement&&(Lt.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(Lt){const pt={top:100,bottom:10,left:1,right:1};let rt=0;for(const St of Ae)Lt.style[St]&&(rt+=pt[St]);return rt?`${rt}`:""}_getCellWidths(Lt,pt=!0){if(!pt&&this._cachedCellWidths.length)return this._cachedCellWidths;const rt=[],St=Lt.children;for(let $=0;$0;$--)pt[$]&&(rt[$]=St,St+=Lt[$]);return rt}}const E=new e.OlP("CDK_SPL");let a=(()=>{class bt{constructor(pt,rt){this.viewContainer=pt,this.elementRef=rt}}return bt.\u0275fac=function(pt){return new(pt||bt)(e.Y36(e.s_b),e.Y36(e.SBq))},bt.\u0275dir=e.lG2({type:bt,selectors:[["","rowOutlet",""]]}),bt})(),i=(()=>{class bt{constructor(pt,rt){this.viewContainer=pt,this.elementRef=rt}}return bt.\u0275fac=function(pt){return new(pt||bt)(e.Y36(e.s_b),e.Y36(e.SBq))},bt.\u0275dir=e.lG2({type:bt,selectors:[["","headerRowOutlet",""]]}),bt})(),t=(()=>{class bt{constructor(pt,rt){this.viewContainer=pt,this.elementRef=rt}}return bt.\u0275fac=function(pt){return new(pt||bt)(e.Y36(e.s_b),e.Y36(e.SBq))},bt.\u0275dir=e.lG2({type:bt,selectors:[["","footerRowOutlet",""]]}),bt})(),n=(()=>{class bt{constructor(pt,rt){this.viewContainer=pt,this.elementRef=rt}}return bt.\u0275fac=function(pt){return new(pt||bt)(e.Y36(e.s_b),e.Y36(e.SBq))},bt.\u0275dir=e.lG2({type:bt,selectors:[["","noDataRowOutlet",""]]}),bt})(),l=(()=>{class bt{constructor(pt,rt,St,$,We,At,Pt,Xt,yn,Zn,Hn,Xn){this._differs=pt,this._changeDetectorRef=rt,this._elementRef=St,this._dir=We,this._platform=Pt,this._viewRepeater=Xt,this._coalescedStyleScheduler=yn,this._viewportRuler=Zn,this._stickyPositioningListener=Hn,this._ngZone=Xn,this._onDestroy=new v.x,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.contentChanged=new e.vpe,this.viewChange=new B.X({start:0,end:Number.MAX_VALUE}),$||this._elementRef.nativeElement.setAttribute("role","table"),this._document=At,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(pt){this._trackByFn=pt}get dataSource(){return this._dataSource}set dataSource(pt){this._dataSource!==pt&&this._switchDataSource(pt)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(pt){this._multiTemplateDataRows=(0,C.Ig)(pt),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(pt){this._fixedLayout=(0,C.Ig)(pt),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((pt,rt)=>this.trackBy?this.trackBy(rt.dataIndex,rt.data):rt),this._viewportRuler.change().pipe((0,O.R)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const rt=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||rt,this._forceRecalculateCellWidths=rt,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,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(pt=>{pt.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),(0,M.Z9)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const pt=this._dataDiffer.diff(this._renderRows);if(!pt)return this._updateNoDataRow(),void this.contentChanged.next();const rt=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(pt,rt,(St,$,We)=>this._getEmbeddedViewArgs(St.item,We),St=>St.item.data,St=>{1===St.operation&&St.context&&this._renderCellTemplateForItem(St.record.item.rowDef,St.context)}),this._updateRowIndexContext(),pt.forEachIdentityChange(St=>{rt.get(St.currentIndex).context.$implicit=St.item.data}),this._updateNoDataRow(),this._ngZone&&e.R0b.isInAngularZone()?this._ngZone.onStable.pipe((0,q.q)(1),(0,O.R)(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(pt){this._customColumnDefs.add(pt)}removeColumnDef(pt){this._customColumnDefs.delete(pt)}addRowDef(pt){this._customRowDefs.add(pt)}removeRowDef(pt){this._customRowDefs.delete(pt)}addHeaderRowDef(pt){this._customHeaderRowDefs.add(pt),this._headerRowDefChanged=!0}removeHeaderRowDef(pt){this._customHeaderRowDefs.delete(pt),this._headerRowDefChanged=!0}addFooterRowDef(pt){this._customFooterRowDefs.add(pt),this._footerRowDefChanged=!0}removeFooterRowDef(pt){this._customFooterRowDefs.delete(pt),this._footerRowDefChanged=!0}setNoDataRow(pt){this._customNoDataRow=pt}updateStickyHeaderRowStyles(){const pt=this._getRenderedRows(this._headerRowOutlet),St=this._elementRef.nativeElement.querySelector("thead");St&&(St.style.display=pt.length?"":"none");const $=this._headerRowDefs.map(We=>We.sticky);this._stickyStyler.clearStickyPositioning(pt,["top"]),this._stickyStyler.stickRows(pt,$,"top"),this._headerRowDefs.forEach(We=>We.resetStickyChanged())}updateStickyFooterRowStyles(){const pt=this._getRenderedRows(this._footerRowOutlet),St=this._elementRef.nativeElement.querySelector("tfoot");St&&(St.style.display=pt.length?"":"none");const $=this._footerRowDefs.map(We=>We.sticky);this._stickyStyler.clearStickyPositioning(pt,["bottom"]),this._stickyStyler.stickRows(pt,$,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,$),this._footerRowDefs.forEach(We=>We.resetStickyChanged())}updateStickyColumnStyles(){const pt=this._getRenderedRows(this._headerRowOutlet),rt=this._getRenderedRows(this._rowOutlet),St=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...pt,...rt,...St],["left","right"]),this._stickyColumnStylesNeedReset=!1),pt.forEach(($,We)=>{this._addStickyColumnStyles([$],this._headerRowDefs[We])}),this._rowDefs.forEach($=>{const We=[];for(let At=0;At{this._addStickyColumnStyles([$],this._footerRowDefs[We])}),Array.from(this._columnDefsByName.values()).forEach($=>$.resetStickyChanged())}_getAllRenderRows(){const pt=[],rt=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let St=0;St{const At=St&&St.has(We)?St.get(We):[];if(At.length){const Pt=At.shift();return Pt.dataIndex=rt,Pt}return{data:pt,rowDef:We,dataIndex:rt}})}_cacheColumnDefs(){this._columnDefsByName.clear(),d(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(rt=>{this._columnDefsByName.has(rt.name),this._columnDefsByName.set(rt.name,rt)})}_cacheRowDefs(){this._headerRowDefs=d(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=d(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=d(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const pt=this._rowDefs.filter(rt=>!rt.when);this._defaultRowDef=pt[0]}_renderUpdatedColumns(){const pt=(We,At)=>We||!!At.getColumnsDiff(),rt=this._rowDefs.reduce(pt,!1);rt&&this._forceRenderDataRows();const St=this._headerRowDefs.reduce(pt,!1);St&&this._forceRenderHeaderRows();const $=this._footerRowDefs.reduce(pt,!1);return $&&this._forceRenderFooterRows(),rt||St||$}_switchDataSource(pt){this._data=[],(0,M.Z9)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),pt||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=pt}_observeRenderChanges(){if(!this.dataSource)return;let pt;(0,M.Z9)(this.dataSource)?pt=this.dataSource.connect(this):(0,w.b)(this.dataSource)?pt=this.dataSource:Array.isArray(this.dataSource)&&(pt=(0,L.of)(this.dataSource)),this._renderChangeSubscription=pt.pipe((0,O.R)(this._onDestroy)).subscribe(rt=>{this._data=rt||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((pt,rt)=>this._renderRow(this._headerRowOutlet,pt,rt)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((pt,rt)=>this._renderRow(this._footerRowOutlet,pt,rt)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(pt,rt){const St=Array.from(rt.columns||[]).map(At=>this._columnDefsByName.get(At)),$=St.map(At=>At.sticky),We=St.map(At=>At.stickyEnd);this._stickyStyler.updateStickyColumns(pt,$,We,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(pt){const rt=[];for(let St=0;St!$.when||$.when(rt,pt));else{let $=this._rowDefs.find(We=>We.when&&We.when(rt,pt))||this._defaultRowDef;$&&St.push($)}return St}_getEmbeddedViewArgs(pt,rt){return{templateRef:pt.rowDef.template,context:{$implicit:pt.data},index:rt}}_renderRow(pt,rt,St,$={}){const We=pt.viewContainer.createEmbeddedView(rt.template,$,St);return this._renderCellTemplateForItem(rt,$),We}_renderCellTemplateForItem(pt,rt){for(let St of this._getCellTemplates(pt))ut.mostRecentCellOutlet&&ut.mostRecentCellOutlet._viewContainer.createEmbeddedView(St,rt);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const pt=this._rowOutlet.viewContainer;for(let rt=0,St=pt.length;rt{const St=this._columnDefsByName.get(rt);return pt.extractCellTemplate(St)}):[]}_applyNativeTableSections(){const pt=this._document.createDocumentFragment(),rt=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const St of rt){const $=this._document.createElement(St.tag);$.setAttribute("role","rowgroup");for(const We of St.outlets)$.appendChild(We.elementRef.nativeElement);pt.appendChild($)}this._elementRef.nativeElement.appendChild(pt)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const pt=(rt,St)=>rt||St.hasStickyChanged();this._headerRowDefs.reduce(pt,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(pt,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(pt,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new ye(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:(0,L.of)()).pipe((0,O.R)(this._onDestroy)).subscribe(rt=>{this._stickyStyler.direction=rt,this.updateStickyColumnStyles()})}_getOwnDefs(pt){return pt.filter(rt=>!rt._table||rt._table===this)}_updateNoDataRow(){const pt=this._customNoDataRow||this._noDataRow;if(!pt)return;const rt=0===this._rowOutlet.viewContainer.length;if(rt===this._isShowingNoDataRow)return;const St=this._noDataRowOutlet.viewContainer;if(rt){const $=St.createEmbeddedView(pt.templateRef),We=$.rootNodes[0];1===$.rootNodes.length&&We?.nodeType===this._document.ELEMENT_NODE&&(We.setAttribute("role","row"),We.classList.add(pt._contentClassName))}else St.clear();this._isShowingNoDataRow=rt}}return bt.\u0275fac=function(pt){return new(pt||bt)(e.Y36(e.ZZ4),e.Y36(e.sBO),e.Y36(e.SBq),e.$8M("role"),e.Y36(A.Is,8),e.Y36(D.K0),e.Y36(m.t4),e.Y36(M.k),e.Y36(Be),e.Y36(b.rL),e.Y36(E,12),e.Y36(e.R0b,8))},bt.\u0275cmp=e.Xpm({type:bt,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(pt,rt,St){if(1&pt&&(e.Suo(St,nt,5),e.Suo(St,Ee,5),e.Suo(St,Fe,5),e.Suo(St,Z,5),e.Suo(St,ot,5)),2&pt){let $;e.iGM($=e.CRH())&&(rt._noDataRow=$.first),e.iGM($=e.CRH())&&(rt._contentColumnDefs=$),e.iGM($=e.CRH())&&(rt._contentRowDefs=$),e.iGM($=e.CRH())&&(rt._contentHeaderRowDefs=$),e.iGM($=e.CRH())&&(rt._contentFooterRowDefs=$)}},viewQuery:function(pt,rt){if(1&pt&&(e.Gf(a,7),e.Gf(i,7),e.Gf(t,7),e.Gf(n,7)),2&pt){let St;e.iGM(St=e.CRH())&&(rt._rowOutlet=St.first),e.iGM(St=e.CRH())&&(rt._headerRowOutlet=St.first),e.iGM(St=e.CRH())&&(rt._footerRowOutlet=St.first),e.iGM(St=e.CRH())&&(rt._noDataRowOutlet=St.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(pt,rt){2&pt&&e.ekj("cdk-table-fixed-layout",rt.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[e._Bn([{provide:Le,useExisting:bt},{provide:M.k,useClass:M.yy},{provide:Be,useClass:se},{provide:E,useValue:null}])],ngContentSelectors:z,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(pt,rt){1&pt&&(e.F$t(te),e.Hsn(0),e.Hsn(1,1),e.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[a,i,t,n],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),bt})();function d(bt,Lt){return bt.concat(Array.from(Lt))}let J=(()=>{class bt{}return bt.\u0275fac=function(pt){return new(pt||bt)},bt.\u0275mod=e.oAB({type:bt}),bt.\u0275inj=e.cJS({imports:[b.Cl]}),bt})();var ht=p(3238),ze=p(56451),et=p(39841),ne=p(54004);const Ue=[[["caption"]],[["colgroup"],["col"]]],He=["caption","colgroup, col"];let we=(()=>{class bt extends l{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return bt.\u0275fac=function(){let Lt;return function(rt){return(Lt||(Lt=e.n5z(bt)))(rt||bt)}}(),bt.\u0275cmp=e.Xpm({type:bt,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(pt,rt){2&pt&&e.ekj("mat-table-fixed-layout",rt.fixedLayout)},exportAs:["matTable"],features:[e._Bn([{provide:M.k,useClass:M.yy},{provide:l,useExisting:bt},{provide:Le,useExisting:bt},{provide:Be,useClass:se},{provide:E,useValue:null}]),e.qOj],ngContentSelectors:He,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(pt,rt){1&pt&&(e.F$t(Ue),e.Hsn(0),e.Hsn(1,1),e.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[a,i,t,n],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-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:sticky !important}.mat-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),bt})(),st=(()=>{class bt extends W{}return bt.\u0275fac=function(){let Lt;return function(rt){return(Lt||(Lt=e.n5z(bt)))(rt||bt)}}(),bt.\u0275dir=e.lG2({type:bt,selectors:[["","matCellDef",""]],features:[e._Bn([{provide:W,useExisting:bt}]),e.qOj]}),bt})(),Ke=(()=>{class bt extends F{}return bt.\u0275fac=function(){let Lt;return function(rt){return(Lt||(Lt=e.n5z(bt)))(rt||bt)}}(),bt.\u0275dir=e.lG2({type:bt,selectors:[["","matHeaderCellDef",""]],features:[e._Bn([{provide:F,useExisting:bt}]),e.qOj]}),bt})(),ke=(()=>{class bt extends Ee{get name(){return this._name}set name(pt){this._setNameInput(pt)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return bt.\u0275fac=function(){let Lt;return function(rt){return(Lt||(Lt=e.n5z(bt)))(rt||bt)}}(),bt.\u0275dir=e.lG2({type:bt,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[e._Bn([{provide:Ee,useExisting:bt},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:bt}]),e.qOj]}),bt})(),at=(()=>{class bt extends ve{}return bt.\u0275fac=function(){let Lt;return function(rt){return(Lt||(Lt=e.n5z(bt)))(rt||bt)}}(),bt.\u0275dir=e.lG2({type:bt,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[e.qOj]}),bt})(),jt=(()=>{class bt extends he{}return bt.\u0275fac=function(){let Lt;return function(rt){return(Lt||(Lt=e.n5z(bt)))(rt||bt)}}(),bt.\u0275dir=e.lG2({type:bt,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[e.qOj]}),bt})(),an=(()=>{class bt extends Z{}return bt.\u0275fac=function(){let Lt;return function(rt){return(Lt||(Lt=e.n5z(bt)))(rt||bt)}}(),bt.\u0275dir=e.lG2({type:bt,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[e._Bn([{provide:Z,useExisting:bt}]),e.qOj]}),bt})(),on=(()=>{class bt extends Fe{}return bt.\u0275fac=function(){let Lt;return function(rt){return(Lt||(Lt=e.n5z(bt)))(rt||bt)}}(),bt.\u0275dir=e.lG2({type:bt,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[e._Bn([{provide:Fe,useExisting:bt}]),e.qOj]}),bt})(),Cn=(()=>{class bt extends tt{}return bt.\u0275fac=function(){let Lt;return function(rt){return(Lt||(Lt=e.n5z(bt)))(rt||bt)}}(),bt.\u0275cmp=e.Xpm({type:bt,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[e._Bn([{provide:tt,useExisting:bt}]),e.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(pt,rt){1&pt&&e.GkF(0,0)},dependencies:[ut],encapsulation:2}),bt})(),Dt=(()=>{class bt extends X{}return bt.\u0275fac=function(){let Lt;return function(rt){return(Lt||(Lt=e.n5z(bt)))(rt||bt)}}(),bt.\u0275cmp=e.Xpm({type:bt,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[e._Bn([{provide:X,useExisting:bt}]),e.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(pt,rt){1&pt&&e.GkF(0,0)},dependencies:[ut],encapsulation:2}),bt})(),ln=(()=>{class bt{}return bt.\u0275fac=function(pt){return new(pt||bt)},bt.\u0275mod=e.oAB({type:bt}),bt.\u0275inj=e.cJS({imports:[J,ht.BQ,ht.BQ]}),bt})();class gn extends M.o2{constructor(Lt=[]){super(),this._renderData=new B.X([]),this._filter=new B.X(""),this._internalPageChanges=new v.x,this._renderChangesSubscription=null,this.sortingDataAccessor=(pt,rt)=>{const St=pt[rt];if((0,C.t6)(St)){const $=Number(St);return $<9007199254740991?$:St}return St},this.sortData=(pt,rt)=>{const St=rt.active,$=rt.direction;return St&&""!=$?pt.sort((We,At)=>{let Pt=this.sortingDataAccessor(We,St),Xt=this.sortingDataAccessor(At,St);const yn=typeof Pt,Zn=typeof Xt;yn!==Zn&&("number"===yn&&(Pt+=""),"number"===Zn&&(Xt+=""));let Hn=0;return null!=Pt&&null!=Xt?Pt>Xt?Hn=1:Pt{const St=Object.keys(pt).reduce((We,At)=>We+pt[At]+"\u25ec","").toLowerCase(),$=rt.trim().toLowerCase();return-1!=St.indexOf($)},this._data=new B.X(Lt),this._updateChangeSubscription()}get data(){return this._data.value}set data(Lt){Lt=Array.isArray(Lt)?Lt:[],this._data.next(Lt),this._renderChangesSubscription||this._filterData(Lt)}get filter(){return this._filter.value}set filter(Lt){this._filter.next(Lt),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(Lt){this._sort=Lt,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(Lt){this._paginator=Lt,this._updateChangeSubscription()}_updateChangeSubscription(){var Lt;const pt=this._sort?(0,ze.T)(this._sort.sortChange,this._sort.initialized):(0,L.of)(null),rt=this._paginator?(0,ze.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,L.of)(null),$=(0,et.a)([this._data,this._filter]).pipe((0,ne.U)(([Pt])=>this._filterData(Pt))),We=(0,et.a)([$,pt]).pipe((0,ne.U)(([Pt])=>this._orderData(Pt))),At=(0,et.a)([We,rt]).pipe((0,ne.U)(([Pt])=>this._pageData(Pt)));null===(Lt=this._renderChangesSubscription)||void 0===Lt||Lt.unsubscribe(),this._renderChangesSubscription=At.subscribe(Pt=>this._renderData.next(Pt))}_filterData(Lt){return this.filteredData=null==this.filter||""===this.filter?Lt:Lt.filter(pt=>this.filterPredicate(pt,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(Lt){return this.sort?this.sortData(Lt.slice(),this.sort):Lt}_pageData(Lt){if(!this.paginator)return Lt;const pt=this.paginator.pageIndex*this.paginator.pageSize;return Lt.slice(pt,pt+this.paginator.pageSize)}_updatePaginator(Lt){Promise.resolve().then(()=>{const pt=this.paginator;if(pt&&(pt.length=Lt,pt.pageIndex>0)){const rt=Math.ceil(pt.length/pt.pageSize)-1||0,St=Math.min(pt.pageIndex,rt);St!==pt.pageIndex&&(pt.pageIndex=St,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){var Lt;null===(Lt=this._renderChangesSubscription)||void 0===Lt||Lt.unsubscribe(),this._renderChangesSubscription=null}}class zn extends gn{}},3848:(Xe,ue,p)=>{"use strict";p.d(ue,{Nh:()=>st,SP:()=>et,Vc:()=>Ae,uD:()=>Se,uX:()=>fe});var e=p(12687),A=p(49643),C=p(84080),M=p(36895),m=p(94650),b=p(3238),D=p(95698),v=p(68675),R=p(71884),B=p(82722),w=p(63900),L=p(35684),O=p(77579),q=p(50727),te=p(54968),z=p(39646),ie=p(56451),Te=p(60515),pe=p(69751),Le=p(82805),T=p(40445),W=p(37340),F=p(21281),V=p(67376),ee=p(83353),Q=p(29521);function Ee(Ke,Et){1&Ke&&m.Hsn(0)}const ge=["*"];function ve(Ke,Et){}const De=function(Ke){return{animationDuration:Ke}},he=function(Ke,Et){return{value:Ke,params:Et}},Ye=["tabListContainer"],Be=["tabList"],se=["tabListInner"],le=["nextPaginator"],N=["previousPaginator"],k=["tabBodyWrapper"],be=["tabHeader"];function Z(Ke,Et){}function ce(Ke,Et){if(1&Ke&&m.YNc(0,Z,0,0,"ng-template",10),2&Ke){const ke=m.oxw().$implicit;m.Q6J("cdkPortalOutlet",ke.templateLabel)}}function xe(Ke,Et){if(1&Ke&&m._uU(0),2&Ke){const ke=m.oxw().$implicit;m.Oqu(ke.textLabel)}}function ot(Ke,Et){if(1&Ke){const ke=m.EpF();m.TgZ(0,"div",6),m.NdJ("click",function(){const It=m.CHM(ke),jt=It.$implicit,an=It.index,Kt=m.oxw(),on=m.MAs(1);return m.KtG(Kt._handleClick(jt,on,an))})("cdkFocusChange",function(It){const an=m.CHM(ke).index,Kt=m.oxw();return m.KtG(Kt._tabFocusChanged(It,an))}),m.TgZ(1,"div",7),m.YNc(2,ce,1,1,"ng-template",8),m.YNc(3,xe,1,1,"ng-template",null,9,m.W1O),m.qZA()()}if(2&Ke){const ke=Et.$implicit,at=Et.index,It=m.MAs(4),jt=m.oxw();m.ekj("mat-tab-label-active",jt.selectedIndex===at),m.Q6J("id",jt._getTabLabelId(at))("ngClass",ke.labelClass)("disabled",ke.disabled)("matRippleDisabled",ke.disabled||jt.disableRipple),m.uIk("tabIndex",jt._getTabIndex(ke,at))("aria-posinset",at+1)("aria-setsize",jt._tabs.length)("aria-controls",jt._getTabContentId(at))("aria-selected",jt.selectedIndex===at)("aria-label",ke.ariaLabel||null)("aria-labelledby",!ke.ariaLabel&&ke.ariaLabelledby?ke.ariaLabelledby:null),m.xp6(2),m.Q6J("ngIf",ke.templateLabel)("ngIfElse",It)}}function Fe(Ke,Et){if(1&Ke){const ke=m.EpF();m.TgZ(0,"mat-tab-body",11),m.NdJ("_onCentered",function(){m.CHM(ke);const It=m.oxw();return m.KtG(It._removeTabBodyWrapperHeight())})("_onCentering",function(It){m.CHM(ke);const jt=m.oxw();return m.KtG(jt._setTabBodyWrapperHeight(It))}),m.qZA()}if(2&Ke){const ke=Et.$implicit,at=Et.index,It=m.oxw();m.ekj("mat-tab-body-active",It.selectedIndex===at),m.Q6J("id",It._getTabContentId(at))("ngClass",ke.bodyClass)("content",ke.content)("position",ke.position)("origin",ke.origin)("animationDuration",It.animationDuration)("preserveContent",It.preserveContent),m.uIk("tabindex",null!=It.contentTabIndex&&It.selectedIndex===at?It.contentTabIndex:null)("aria-labelledby",It._getTabLabelId(at))}}const tt=new m.OlP("MatInkBarPositioner",{providedIn:"root",factory:function vt(){return Et=>({left:Et?(Et.offsetLeft||0)+"px":"0",width:Et?(Et.offsetWidth||0)+"px":"0"})}});let X=(()=>{class Ke{constructor(ke,at,It,jt){this._elementRef=ke,this._ngZone=at,this._inkBarPositioner=It,this._animationMode=jt}alignToElement(ke){this.show(),this._ngZone.run(()=>{this._ngZone.onStable.pipe((0,D.q)(1)).subscribe(()=>{const at=this._inkBarPositioner(ke),It=this._elementRef.nativeElement;It.style.left=at.left,It.style.width=at.width})})}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}}return Ke.\u0275fac=function(ke){return new(ke||Ke)(m.Y36(m.SBq),m.Y36(m.R0b),m.Y36(tt),m.Y36(m.QbO,8))},Ke.\u0275dir=m.lG2({type:Ke,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(ke,at){2&ke&&m.ekj("_mat-animation-noopable","NoopAnimations"===at._animationMode)}}),Ke})();const nt=new m.OlP("MatTabContent");let Ae=(()=>{class Ke{constructor(ke){this.template=ke}}return Ke.\u0275fac=function(ke){return new(ke||Ke)(m.Y36(m.Rgc))},Ke.\u0275dir=m.lG2({type:Ke,selectors:[["","matTabContent",""]],features:[m._Bn([{provide:nt,useExisting:Ke}])]}),Ke})();const ye=new m.OlP("MatTabLabel"),_e=new m.OlP("MAT_TAB");let Se=(()=>{class Ke extends C.ig{constructor(ke,at,It){super(ke,at),this._closestTab=It}}return Ke.\u0275fac=function(ke){return new(ke||Ke)(m.Y36(m.Rgc),m.Y36(m.s_b),m.Y36(_e,8))},Ke.\u0275dir=m.lG2({type:Ke,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[m._Bn([{provide:ye,useExisting:Ke}]),m.qOj]}),Ke})();const Ne=(0,b.Id)(class{}),Ce=new m.OlP("MAT_TAB_GROUP");let fe=(()=>{class Ke extends Ne{constructor(ke,at){super(),this._viewContainerRef=ke,this._closestTabGroup=at,this.textLabel="",this._contentPortal=null,this._stateChanges=new O.x,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(ke){this._setTemplateLabelInput(ke)}get content(){return this._contentPortal}ngOnChanges(ke){(ke.hasOwnProperty("textLabel")||ke.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new C.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(ke){ke&&ke._closestTab===this&&(this._templateLabel=ke)}}return Ke.\u0275fac=function(ke){return new(ke||Ke)(m.Y36(m.s_b),m.Y36(Ce,8))},Ke.\u0275cmp=m.Xpm({type:Ke,selectors:[["mat-tab"]],contentQueries:function(ke,at,It){if(1&ke&&(m.Suo(It,ye,5),m.Suo(It,nt,7,m.Rgc)),2&ke){let jt;m.iGM(jt=m.CRH())&&(at.templateLabel=jt.first),m.iGM(jt=m.CRH())&&(at._explicitContent=jt.first)}},viewQuery:function(ke,at){if(1&ke&&m.Gf(m.Rgc,7),2&ke){let It;m.iGM(It=m.CRH())&&(at._implicitContent=It.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],features:[m._Bn([{provide:_e,useExisting:Ke}]),m.qOj,m.TTD],ngContentSelectors:ge,decls:1,vars:0,template:function(ke,at){1&ke&&(m.F$t(),m.YNc(0,Ee,1,0,"ng-template"))},encapsulation:2}),Ke})();const r={translateTab:(0,W.X$)("translateTab",[(0,W.SB)("center, void, left-origin-center, right-origin-center",(0,W.oB)({transform:"none"})),(0,W.SB)("left",(0,W.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,W.SB)("right",(0,W.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,W.eR)("* => left, * => right, left => center, right => center",(0,W.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,W.eR)("void => left-origin-center",[(0,W.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),(0,W.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,W.eR)("void => right-origin-center",[(0,W.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),(0,W.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let u=(()=>{class Ke extends C.Pl{constructor(ke,at,It,jt){super(ke,at,jt),this._host=It,this._centeringSub=q.w0.EMPTY,this._leavingSub=q.w0.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,v.O)(this._host._isCenterPosition(this._host._position))).subscribe(ke=>{ke&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return Ke.\u0275fac=function(ke){return new(ke||Ke)(m.Y36(m._Vd),m.Y36(m.s_b),m.Y36((0,m.Gpc)(()=>E)),m.Y36(M.K0))},Ke.\u0275dir=m.lG2({type:Ke,selectors:[["","matTabBodyHost",""]],features:[m.qOj]}),Ke})(),_=(()=>{class Ke{constructor(ke,at,It){this._elementRef=ke,this._dir=at,this._dirChangeSubscription=q.w0.EMPTY,this._translateTabComplete=new O.x,this._onCentering=new m.vpe,this._beforeCentering=new m.vpe,this._afterLeavingCenter=new m.vpe,this._onCentered=new m.vpe(!0),this.animationDuration="500ms",this.preserveContent=!1,at&&(this._dirChangeSubscription=at.change.subscribe(jt=>{this._computePositionAnimationState(jt),It.markForCheck()})),this._translateTabComplete.pipe((0,R.x)((jt,an)=>jt.fromState===an.fromState&&jt.toState===an.toState)).subscribe(jt=>{this._isCenterPosition(jt.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(jt.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(ke){this._positionIndex=ke,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(ke){const at=this._isCenterPosition(ke.toState);this._beforeCentering.emit(at),at&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(ke){return"center"==ke||"left-origin-center"==ke||"right-origin-center"==ke}_computePositionAnimationState(ke=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==ke?"left":"right":this._positionIndex>0?"ltr"==ke?"right":"left":"center"}_computePositionFromOrigin(ke){const at=this._getLayoutDirection();return"ltr"==at&&ke<=0||"rtl"==at&&ke>0?"left-origin-center":"right-origin-center"}}return Ke.\u0275fac=function(ke){return new(ke||Ke)(m.Y36(m.SBq),m.Y36(T.Is,8),m.Y36(m.sBO))},Ke.\u0275dir=m.lG2({type:Ke,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),Ke})(),E=(()=>{class Ke extends _{constructor(ke,at,It){super(ke,at,It)}}return Ke.\u0275fac=function(ke){return new(ke||Ke)(m.Y36(m.SBq),m.Y36(T.Is,8),m.Y36(m.sBO))},Ke.\u0275cmp=m.Xpm({type:Ke,selectors:[["mat-tab-body"]],viewQuery:function(ke,at){if(1&ke&&m.Gf(C.Pl,5),2&ke){let It;m.iGM(It=m.CRH())&&(at._portalHost=It.first)}},hostAttrs:[1,"mat-tab-body"],features:[m.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(ke,at){1&ke&&(m.TgZ(0,"div",0,1),m.NdJ("@translateTab.start",function(jt){return at._onTranslateTabStarted(jt)})("@translateTab.done",function(jt){return at._translateTabComplete.next(jt)}),m.YNc(2,ve,0,0,"ng-template",2),m.qZA()),2&ke&&m.Q6J("@translateTab",m.WLB(3,he,at._position,m.VKq(1,De,at.animationDuration)))},dependencies:[u],styles:['.mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}.mat-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[r.translateTab]}}),Ke})();const h=new m.OlP("MAT_TABS_CONFIG"),a=(0,b.Id)(class{});let i=(()=>{class Ke extends a{constructor(ke){super(),this.elementRef=ke}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return Ke.\u0275fac=function(ke){return new(ke||Ke)(m.Y36(m.SBq))},Ke.\u0275dir=m.lG2({type:Ke,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(ke,at){2&ke&&(m.uIk("aria-disabled",!!at.disabled),m.ekj("mat-tab-disabled",at.disabled))},inputs:{disabled:"disabled"},features:[m.qOj]}),Ke})();const t=(0,ee.i$)({passive:!0});let l=(()=>{class Ke{constructor(ke,at,It,jt,an,Kt,on){this._elementRef=ke,this._changeDetectorRef=at,this._viewportRuler=It,this._dir=jt,this._ngZone=an,this._platform=Kt,this._animationMode=on,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new O.x,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new O.x,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new m.vpe,this.indexFocused=new m.vpe,an.runOutsideAngular(()=>{(0,te.R)(ke.nativeElement,"mouseleave").pipe((0,B.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get disablePagination(){return this._disablePagination}set disablePagination(ke){this._disablePagination=(0,F.Ig)(ke)}get selectedIndex(){return this._selectedIndex}set selectedIndex(ke){ke=(0,F.su)(ke),this._selectedIndex!=ke&&(this._selectedIndexChanged=!0,this._selectedIndex=ke,this._keyManager&&this._keyManager.updateActiveItem(ke))}ngAfterViewInit(){(0,te.R)(this._previousPaginator.nativeElement,"touchstart",t).pipe((0,B.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,te.R)(this._nextPaginator.nativeElement,"touchstart",t).pipe((0,B.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const ke=this._dir?this._dir.change:(0,z.of)("ltr"),at=this._viewportRuler.change(150),It=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new e.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe((0,D.q)(1)).subscribe(It),(0,ie.T)(ke,at,this._items.changes,this._itemsResized()).pipe((0,B.R)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),It()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe((0,B.R)(this._destroyed)).subscribe(jt=>{this.indexFocused.emit(jt),this._setTabFocus(jt)})}_itemsResized(){return"function"!=typeof ResizeObserver?Te.E:this._items.changes.pipe((0,v.O)(this._items),(0,w.w)(ke=>new pe.y(at=>this._ngZone.runOutsideAngular(()=>{const It=new ResizeObserver(()=>{at.next()});return ke.forEach(jt=>{It.observe(jt.elementRef.nativeElement)}),()=>{It.disconnect()}}))),(0,L.T)(1))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(ke){if(!(0,Q.Vb)(ke))switch(ke.keyCode){case Q.K5:case Q.L_:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(ke));break;default:this._keyManager.onKeydown(ke)}}_onContentChanges(){const ke=this._elementRef.nativeElement.textContent;ke!==this._currentTextContent&&(this._currentTextContent=ke||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(ke){!this._isValidIndex(ke)||this.focusIndex===ke||!this._keyManager||this._keyManager.setActiveItem(ke)}_isValidIndex(ke){if(!this._items)return!0;const at=this._items?this._items.toArray()[ke]:null;return!!at&&!at.disabled}_setTabFocus(ke){if(this._showPaginationControls&&this._scrollToLabel(ke),this._items&&this._items.length){this._items.toArray()[ke].focus();const at=this._tabListContainer.nativeElement;at.scrollLeft="ltr"==this._getLayoutDirection()?0:at.scrollWidth-at.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const ke=this.scrollDistance,at="ltr"===this._getLayoutDirection()?-ke:ke;this._tabList.nativeElement.style.transform=`translateX(${Math.round(at)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(ke){this._scrollTo(ke)}_scrollHeader(ke){return this._scrollTo(this._scrollDistance+("before"==ke?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(ke){this._stopInterval(),this._scrollHeader(ke)}_scrollToLabel(ke){if(this.disablePagination)return;const at=this._items?this._items.toArray()[ke]:null;if(!at)return;const It=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:jt,offsetWidth:an}=at.elementRef.nativeElement;let Kt,on;"ltr"==this._getLayoutDirection()?(Kt=jt,on=Kt+an):(on=this._tabListInner.nativeElement.offsetWidth-jt,Kt=on-an);const Cn=this.scrollDistance,Tt=this.scrollDistance+It;KtTt&&(this.scrollDistance+=on-Tt+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const ke=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;ke||(this.scrollDistance=0),ke!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=ke}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const ke=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,at=ke?ke.elementRef.nativeElement:null;at?this._inkBar.alignToElement(at):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(ke,at){at&&null!=at.button&&0!==at.button||(this._stopInterval(),(0,Le.H)(650,100).pipe((0,B.R)((0,ie.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:It,distance:jt}=this._scrollHeader(ke);(0===jt||jt>=It)&&this._stopInterval()}))}_scrollTo(ke){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const at=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(at,ke)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:at,distance:this._scrollDistance}}}return Ke.\u0275fac=function(ke){return new(ke||Ke)(m.Y36(m.SBq),m.Y36(m.sBO),m.Y36(V.rL),m.Y36(T.Is,8),m.Y36(m.R0b),m.Y36(ee.t4),m.Y36(m.QbO,8))},Ke.\u0275dir=m.lG2({type:Ke,inputs:{disablePagination:"disablePagination"}}),Ke})(),d=(()=>{class Ke extends l{constructor(ke,at,It,jt,an,Kt,on){super(ke,at,It,jt,an,Kt,on),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(ke){this._disableRipple=(0,F.Ig)(ke)}_itemSelected(ke){ke.preventDefault()}}return Ke.\u0275fac=function(ke){return new(ke||Ke)(m.Y36(m.SBq),m.Y36(m.sBO),m.Y36(V.rL),m.Y36(T.Is,8),m.Y36(m.R0b),m.Y36(ee.t4),m.Y36(m.QbO,8))},Ke.\u0275dir=m.lG2({type:Ke,inputs:{disableRipple:"disableRipple"},features:[m.qOj]}),Ke})(),c=(()=>{class Ke extends d{constructor(ke,at,It,jt,an,Kt,on){super(ke,at,It,jt,an,Kt,on)}}return Ke.\u0275fac=function(ke){return new(ke||Ke)(m.Y36(m.SBq),m.Y36(m.sBO),m.Y36(V.rL),m.Y36(T.Is,8),m.Y36(m.R0b),m.Y36(ee.t4),m.Y36(m.QbO,8))},Ke.\u0275cmp=m.Xpm({type:Ke,selectors:[["mat-tab-header"]],contentQueries:function(ke,at,It){if(1&ke&&m.Suo(It,i,4),2&ke){let jt;m.iGM(jt=m.CRH())&&(at._items=jt)}},viewQuery:function(ke,at){if(1&ke&&(m.Gf(X,7),m.Gf(Ye,7),m.Gf(Be,7),m.Gf(se,7),m.Gf(le,5),m.Gf(N,5)),2&ke){let It;m.iGM(It=m.CRH())&&(at._inkBar=It.first),m.iGM(It=m.CRH())&&(at._tabListContainer=It.first),m.iGM(It=m.CRH())&&(at._tabList=It.first),m.iGM(It=m.CRH())&&(at._tabListInner=It.first),m.iGM(It=m.CRH())&&(at._nextPaginator=It.first),m.iGM(It=m.CRH())&&(at._previousPaginator=It.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(ke,at){2&ke&&m.ekj("mat-tab-header-pagination-controls-enabled",at._showPaginationControls)("mat-tab-header-rtl","rtl"==at._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[m.qOj],ngContentSelectors:ge,decls:14,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(ke,at){1&ke&&(m.F$t(),m.TgZ(0,"button",0,1),m.NdJ("click",function(){return at._handlePaginatorClick("before")})("mousedown",function(jt){return at._handlePaginatorPress("before",jt)})("touchend",function(){return at._stopInterval()}),m._UZ(2,"div",2),m.qZA(),m.TgZ(3,"div",3,4),m.NdJ("keydown",function(jt){return at._handleKeydown(jt)}),m.TgZ(5,"div",5,6),m.NdJ("cdkObserveContent",function(){return at._onContentChanges()}),m.TgZ(7,"div",7,8),m.Hsn(9),m.qZA(),m._UZ(10,"mat-ink-bar"),m.qZA()(),m.TgZ(11,"button",9,10),m.NdJ("mousedown",function(jt){return at._handlePaginatorPress("after",jt)})("click",function(){return at._handlePaginatorClick("after")})("touchend",function(){return at._stopInterval()}),m._UZ(13,"div",2),m.qZA()),2&ke&&(m.ekj("mat-tab-header-pagination-disabled",at._disableScrollBefore),m.Q6J("matRippleDisabled",at._disableScrollBefore||at.disableRipple)("disabled",at._disableScrollBefore||null),m.xp6(5),m.ekj("_mat-animation-noopable","NoopAnimations"===at._animationMode),m.xp6(6),m.ekj("mat-tab-header-pagination-disabled",at._disableScrollAfter),m.Q6J("matRippleDisabled",at._disableScrollAfter||at.disableRipple)("disabled",at._disableScrollAfter||null))},dependencies:[b.wG,A.wD,X],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-list._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}.mat-tab-label::before{margin:5px}@media(max-width: 599px){.mat-tab-label{min-width:72px}}"],encapsulation:2}),Ke})(),S=0;class J{}const ht=(0,b.pj)((0,b.Kr)(class{constructor(Ke){this._elementRef=Ke}}),"primary");let ze=(()=>{class Ke extends ht{constructor(ke,at,It,jt){var an;super(ke),this._changeDetectorRef=at,this._animationMode=jt,this._tabs=new m.n_E,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=q.w0.EMPTY,this._tabLabelSubscription=q.w0.EMPTY,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this._disablePagination=!1,this._preserveContent=!1,this.selectedIndexChange=new m.vpe,this.focusChange=new m.vpe,this.animationDone=new m.vpe,this.selectedTabChange=new m.vpe(!0),this._groupId=S++,this.animationDuration=It&&It.animationDuration?It.animationDuration:"500ms",this.disablePagination=!(!It||null==It.disablePagination)&&It.disablePagination,this.dynamicHeight=!(!It||null==It.dynamicHeight)&&It.dynamicHeight,this.contentTabIndex=null!==(an=It?.contentTabIndex)&&void 0!==an?an:null,this.preserveContent=!(null==It||!It.preserveContent)}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(ke){this._dynamicHeight=(0,F.Ig)(ke)}get selectedIndex(){return this._selectedIndex}set selectedIndex(ke){this._indexToSelect=(0,F.su)(ke,null)}get animationDuration(){return this._animationDuration}set animationDuration(ke){this._animationDuration=/^\d+$/.test(ke+"")?ke+"ms":ke}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(ke){this._contentTabIndex=(0,F.su)(ke,null)}get disablePagination(){return this._disablePagination}set disablePagination(ke){this._disablePagination=(0,F.Ig)(ke)}get preserveContent(){return this._preserveContent}set preserveContent(ke){this._preserveContent=(0,F.Ig)(ke)}get backgroundColor(){return this._backgroundColor}set backgroundColor(ke){const at=this._elementRef.nativeElement;at.classList.remove(`mat-background-${this.backgroundColor}`),ke&&at.classList.add(`mat-background-${ke}`),this._backgroundColor=ke}ngAfterContentChecked(){const ke=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=ke){const at=null==this._selectedIndex;if(!at){this.selectedTabChange.emit(this._createChangeEvent(ke));const It=this._tabBodyWrapper.nativeElement;It.style.minHeight=It.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((It,jt)=>It.isActive=jt===ke),at||(this.selectedIndexChange.emit(ke),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((at,It)=>{at.position=It-ke,null!=this._selectedIndex&&0==at.position&&!at.origin&&(at.origin=ke-this._selectedIndex)}),this._selectedIndex!==ke&&(this._selectedIndex=ke,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const ke=this._clampTabIndex(this._indexToSelect);if(ke===this._selectedIndex){const at=this._tabs.toArray();let It;for(let jt=0;jt{at[ke].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(ke))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe((0,v.O)(this._allTabs)).subscribe(ke=>{this._tabs.reset(ke.filter(at=>at._closestTabGroup===this||!at._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(ke){const at=this._tabHeader;at&&(at.focusIndex=ke)}_focusChanged(ke){this._lastFocusedTabIndex=ke,this.focusChange.emit(this._createChangeEvent(ke))}_createChangeEvent(ke){const at=new J;return at.index=ke,this._tabs&&this._tabs.length&&(at.tab=this._tabs.toArray()[ke]),at}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,ie.T)(...this._tabs.map(ke=>ke._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(ke){return Math.min(this._tabs.length-1,Math.max(ke||0,0))}_getTabLabelId(ke){return`mat-tab-label-${this._groupId}-${ke}`}_getTabContentId(ke){return`mat-tab-content-${this._groupId}-${ke}`}_setTabBodyWrapperHeight(ke){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const at=this._tabBodyWrapper.nativeElement;at.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(at.style.height=ke+"px")}_removeTabBodyWrapperHeight(){const ke=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=ke.clientHeight,ke.style.height="",this.animationDone.emit()}_handleClick(ke,at,It){ke.disabled||(this.selectedIndex=at.focusIndex=It)}_getTabIndex(ke,at){var It;return ke.disabled?null:at===(null!==(It=this._lastFocusedTabIndex)&&void 0!==It?It:this.selectedIndex)?0:-1}_tabFocusChanged(ke,at){ke&&"mouse"!==ke&&"touch"!==ke&&(this._tabHeader.focusIndex=at)}}return Ke.\u0275fac=function(ke){return new(ke||Ke)(m.Y36(m.SBq),m.Y36(m.sBO),m.Y36(h,8),m.Y36(m.QbO,8))},Ke.\u0275dir=m.lG2({type:Ke,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",preserveContent:"preserveContent",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[m.qOj]}),Ke})(),et=(()=>{class Ke extends ze{constructor(ke,at,It,jt){super(ke,at,It,jt)}}return Ke.\u0275fac=function(ke){return new(ke||Ke)(m.Y36(m.SBq),m.Y36(m.sBO),m.Y36(h,8),m.Y36(m.QbO,8))},Ke.\u0275cmp=m.Xpm({type:Ke,selectors:[["mat-tab-group"]],contentQueries:function(ke,at,It){if(1&ke&&m.Suo(It,fe,5),2&ke){let jt;m.iGM(jt=m.CRH())&&(at._allTabs=jt)}},viewQuery:function(ke,at){if(1&ke&&(m.Gf(k,5),m.Gf(be,5)),2&ke){let It;m.iGM(It=m.CRH())&&(at._tabBodyWrapper=It.first),m.iGM(It=m.CRH())&&(at._tabHeader=It.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(ke,at){2&ke&&m.ekj("mat-tab-group-dynamic-height",at.dynamicHeight)("mat-tab-group-inverted-header","below"===at.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[m._Bn([{provide:Ce,useExisting:Ke}]),m.qOj],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","ngClass","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","ngClass","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf","ngIfElse"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering"]],template:function(ke,at){1&ke&&(m.TgZ(0,"mat-tab-header",0,1),m.NdJ("indexFocused",function(jt){return at._focusChanged(jt)})("selectFocusedIndex",function(jt){return at.selectedIndex=jt}),m.YNc(2,ot,5,15,"div",2),m.qZA(),m.TgZ(3,"div",3,4),m.YNc(5,Fe,1,11,"mat-tab-body",5),m.qZA()),2&ke&&(m.Q6J("selectedIndex",at.selectedIndex||0)("disableRipple",at.disableRipple)("disablePagination",at.disablePagination),m.xp6(2),m.Q6J("ngForOf",at._tabs),m.xp6(1),m.ekj("_mat-animation-noopable","NoopAnimations"===at._animationMode),m.xp6(2),m.Q6J("ngForOf",at._tabs))},dependencies:[M.mk,M.sg,M.O5,C.Pl,b.wG,e.kH,i,E,c],styles:[".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}"],encapsulation:2}),Ke})(),st=(()=>{class Ke{}return Ke.\u0275fac=function(ke){return new(ke||Ke)},Ke.\u0275mod=m.oAB({type:Ke}),Ke.\u0275inj=m.cJS({imports:[M.ez,b.BQ,C.eL,b.si,A.Q8,e.rt,b.BQ]}),Ke})()},83683:(Xe,ue,p)=>{"use strict";p.d(ue,{Ye:()=>R,g0:()=>w});var e=p(94650),A=p(3238),C=p(83353),M=p(36895);const m=["*",[["mat-toolbar-row"]]],b=["*","mat-toolbar-row"],D=(0,A.pj)(class{constructor(L){this._elementRef=L}});let v=(()=>{class L{}return L.\u0275fac=function(q){return new(q||L)},L.\u0275dir=e.lG2({type:L,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),L})(),R=(()=>{class L extends D{constructor(q,te,z){super(q),this._platform=te,this._document=z}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return L.\u0275fac=function(q){return new(q||L)(e.Y36(e.SBq),e.Y36(C.t4),e.Y36(M.K0))},L.\u0275cmp=e.Xpm({type:L,selectors:[["mat-toolbar"]],contentQueries:function(q,te,z){if(1&q&&e.Suo(z,v,5),2&q){let ie;e.iGM(ie=e.CRH())&&(te._toolbarRows=ie)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(q,te){2&q&&e.ekj("mat-toolbar-multiple-rows",te._toolbarRows.length>0)("mat-toolbar-single-row",0===te._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[e.qOj],ngContentSelectors:b,decls:2,vars:0,template:function(q,te){1&q&&(e.F$t(m),e.Hsn(0),e.Hsn(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%}"],encapsulation:2,changeDetection:0}),L})(),w=(()=>{class L{}return L.\u0275fac=function(q){return new(q||L)},L.\u0275mod=e.oAB({type:L}),L.\u0275inj=e.cJS({imports:[A.BQ,A.BQ]}),L})()},10266:(Xe,ue,p)=>{"use strict";p.d(ue,{AV:()=>Be,gM:()=>De});var e=p(98184),A=p(12687),C=p(36895),M=p(94650),m=p(3238),b=p(67376),D=p(40445),v=p(21281),R=p(29521),B=p(62289),w=p(83353),L=p(84080),O=p(77579),q=p(82722),te=p(95698);p(37340);const ie=["tooltip"],Le="tooltip-panel",T=(0,w.i$)({passive:!0}),V=new M.OlP("mat-tooltip-scroll-strategy"),Q={provide:V,deps:[e.aV],useFactory:function ee(le){return()=>le.scrollStrategies.reposition({scrollThrottle:20})}},Ee=new M.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function ge(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let ve=(()=>{class le{constructor(k,be,Z,ce,xe,ot,Fe,ut,tt,vt,X,nt){this._overlay=k,this._elementRef=be,this._scrollDispatcher=Z,this._viewContainerRef=ce,this._ngZone=xe,this._platform=ot,this._ariaDescriber=Fe,this._focusMonitor=ut,this._dir=vt,this._defaultOptions=X,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new O.x,this._scrollStrategy=tt,this._document=nt,X&&(X.position&&(this.position=X.position),X.touchGestures&&(this.touchGestures=X.touchGestures)),vt.change.pipe((0,q.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(k){var be;k!==this._position&&(this._position=k,this._overlayRef)&&(this._updatePosition(this._overlayRef),null===(be=this._tooltipInstance)||void 0===be||be.show(0),this._overlayRef.updatePosition())}get disabled(){return this._disabled}set disabled(k){this._disabled=(0,v.Ig)(k),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(k){this._showDelay=(0,v.su)(k)}get hideDelay(){return this._hideDelay}set hideDelay(k){this._hideDelay=(0,v.su)(k),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(k){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=k?String(k).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,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(k){this._tooltipClass=k,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,q.R)(this._destroyed)).subscribe(k=>{k?"keyboard"===k&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const k=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([be,Z])=>{k.removeEventListener(be,Z,T)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(k,this.message,"tooltip"),this._focusMonitor.stopMonitoring(k)}show(k=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const be=this._createOverlay();this._detach(),this._portal=this._portal||new L.C5(this._tooltipComponent,this._viewContainerRef);const Z=this._tooltipInstance=be.attach(this._portal).instance;Z._triggerElement=this._elementRef.nativeElement,Z._mouseLeaveHideDelay=this._hideDelay,Z.afterHidden().pipe((0,q.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),Z.show(k)}hide(k=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(k)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){var k;if(this._overlayRef)return this._overlayRef;const be=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),Z=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(be);return Z.positionChanges.pipe((0,q.R)(this._destroyed)).subscribe(ce=>{this._updateCurrentPositionClass(ce.connectionPair),this._tooltipInstance&&ce.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:Z,panelClass:`${this._cssClassPrefix}-${Le}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,q.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,q.R)(this._destroyed)).subscribe(()=>{var ce;return null===(ce=this._tooltipInstance)||void 0===ce?void 0:ce._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe((0,q.R)(this._destroyed)).subscribe(ce=>{this._isTooltipVisible()&&ce.keyCode===R.hY&&!(0,R.Vb)(ce)&&(ce.preventDefault(),ce.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),null!==(k=this._defaultOptions)&&void 0!==k&&k.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(k){const be=k.getConfig().positionStrategy,Z=this._getOrigin(),ce=this._getOverlayPosition();be.withPositions([this._addOffset({...Z.main,...ce.main}),this._addOffset({...Z.fallback,...ce.fallback})])}_addOffset(k){return k}_getOrigin(){const k=!this._dir||"ltr"==this._dir.value,be=this.position;let Z;"above"==be||"below"==be?Z={originX:"center",originY:"above"==be?"top":"bottom"}:"before"==be||"left"==be&&k||"right"==be&&!k?Z={originX:"start",originY:"center"}:("after"==be||"right"==be&&k||"left"==be&&!k)&&(Z={originX:"end",originY:"center"});const{x:ce,y:xe}=this._invertPosition(Z.originX,Z.originY);return{main:Z,fallback:{originX:ce,originY:xe}}}_getOverlayPosition(){const k=!this._dir||"ltr"==this._dir.value,be=this.position;let Z;"above"==be?Z={overlayX:"center",overlayY:"bottom"}:"below"==be?Z={overlayX:"center",overlayY:"top"}:"before"==be||"left"==be&&k||"right"==be&&!k?Z={overlayX:"end",overlayY:"center"}:("after"==be||"right"==be&&k||"left"==be&&!k)&&(Z={overlayX:"start",overlayY:"center"});const{x:ce,y:xe}=this._invertPosition(Z.overlayX,Z.overlayY);return{main:Z,fallback:{overlayX:ce,overlayY:xe}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,te.q)(1),(0,q.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(k){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=k,this._tooltipInstance._markForCheck())}_invertPosition(k,be){return"above"===this.position||"below"===this.position?"top"===be?be="bottom":"bottom"===be&&(be="top"):"end"===k?k="start":"start"===k&&(k="end"),{x:k,y:be}}_updateCurrentPositionClass(k){const{overlayY:be,originX:Z,originY:ce}=k;let xe;if(xe="center"===be?this._dir&&"rtl"===this._dir.value?"end"===Z?"left":"right":"start"===Z?"left":"right":"bottom"===be&&"top"===ce?"above":"below",xe!==this._currentPosition){const ot=this._overlayRef;if(ot){const Fe=`${this._cssClassPrefix}-${Le}-`;ot.removePanelClass(Fe+this._currentPosition),ot.addPanelClass(Fe+xe)}this._currentPosition=xe}}_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 k=[];if(this._platformSupportsMouseEvents())k.push(["mouseleave",be=>{var Z;const ce=be.relatedTarget;(!ce||null===(Z=this._overlayRef)||void 0===Z||!Z.overlayElement.contains(ce))&&this.hide()}],["wheel",be=>this._wheelListener(be)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const be=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};k.push(["touchend",be],["touchcancel",be])}this._addListeners(k),this._passiveListeners.push(...k)}_addListeners(k){k.forEach(([be,Z])=>{this._elementRef.nativeElement.addEventListener(be,Z,T)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(k){if(this._isTooltipVisible()){const be=this._document.elementFromPoint(k.clientX,k.clientY),Z=this._elementRef.nativeElement;be!==Z&&!Z.contains(be)&&this.hide()}}_disableNativeGesturesIfNecessary(){const k=this.touchGestures;if("off"!==k){const be=this._elementRef.nativeElement,Z=be.style;("on"===k||"INPUT"!==be.nodeName&&"TEXTAREA"!==be.nodeName)&&(Z.userSelect=Z.msUserSelect=Z.webkitUserSelect=Z.MozUserSelect="none"),("on"===k||!be.draggable)&&(Z.webkitUserDrag="none"),Z.touchAction="none",Z.webkitTapHighlightColor="transparent"}}}return le.\u0275fac=function(k){M.$Z()},le.\u0275dir=M.lG2({type:le,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),le})(),De=(()=>{class le extends ve{constructor(k,be,Z,ce,xe,ot,Fe,ut,tt,vt,X,nt){super(k,be,Z,ce,xe,ot,Fe,ut,tt,vt,X,nt),this._tooltipComponent=Ye}}return le.\u0275fac=function(k){return new(k||le)(M.Y36(e.aV),M.Y36(M.SBq),M.Y36(b.mF),M.Y36(M.s_b),M.Y36(M.R0b),M.Y36(w.t4),M.Y36(A.$s),M.Y36(A.tE),M.Y36(V),M.Y36(D.Is,8),M.Y36(Ee,8),M.Y36(C.K0))},le.\u0275dir=M.lG2({type:le,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[M.qOj]}),le})(),he=(()=>{class le{constructor(k,be){this._changeDetectorRef=k,this._visibility="initial",this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new O.x,this._animationsDisabled="NoopAnimations"===be}show(k){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},k)}hide(k){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},k)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:k}){(!k||!this._triggerElement.contains(k))&&this.hide(this._mouseLeaveHideDelay)}_onShow(){}_handleAnimationEnd({animationName:k}){(k===this._showAnimation||k===this._hideAnimation)&&this._finalizeAnimation(k===this._showAnimation)}_finalizeAnimation(k){k?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(k){const be=this._tooltip.nativeElement,Z=this._showAnimation,ce=this._hideAnimation;if(be.classList.remove(k?ce:Z),be.classList.add(k?Z:ce),this._isVisible=k,k&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const xe=getComputedStyle(be);("0s"===xe.getPropertyValue("animation-duration")||"none"===xe.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}k&&this._onShow(),this._animationsDisabled&&(be.classList.add("_mat-animation-noopable"),this._finalizeAnimation(k))}}return le.\u0275fac=function(k){return new(k||le)(M.Y36(M.sBO),M.Y36(M.QbO,8))},le.\u0275dir=M.lG2({type:le}),le})(),Ye=(()=>{class le extends he{constructor(k,be,Z){super(k,Z),this._breakpointObserver=be,this._isHandset=this._breakpointObserver.observe(B.u3.Handset),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return le.\u0275fac=function(k){return new(k||le)(M.Y36(M.sBO),M.Y36(B.Yg),M.Y36(M.QbO,8))},le.\u0275cmp=M.Xpm({type:le,selectors:[["mat-tooltip-component"]],viewQuery:function(k,be){if(1&k&&M.Gf(ie,7),2&k){let Z;M.iGM(Z=M.CRH())&&(be._tooltip=Z.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(k,be){1&k&&M.NdJ("mouseleave",function(ce){return be._handleMouseLeave(ce)}),2&k&&M.Udp("zoom",be.isVisible()?1:null)},features:[M.qOj],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(k,be){if(1&k&&(M.TgZ(0,"div",0,1),M.NdJ("animationend",function(ce){return be._handleAnimationEnd(ce)}),M.ALo(2,"async"),M._uU(3),M.qZA()),2&k){let Z;M.ekj("mat-tooltip-handset",null==(Z=M.lcZ(2,4,be._isHandset))?null:Z.matches),M.Q6J("ngClass",be.tooltipClass),M.xp6(3),M.Oqu(be.message)}},dependencies:[C.mk,C.Ov],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}"],encapsulation:2,changeDetection:0}),le})(),Be=(()=>{class le{}return le.\u0275fac=function(k){return new(k||le)},le.\u0275mod=M.oAB({type:le}),le.\u0275inj=M.cJS({providers:[Q],imports:[A.rt,C.ez,e.U8,m.BQ,m.BQ,b.ZD]}),le})()},35423:(Xe,ue,p)=>{"use strict";p.d(ue,{Ar:()=>te,GZ:()=>O,JZ:()=>Le,WX:()=>W,dp:()=>pe,eu:()=>ie,fQ:()=>L,gi:()=>z,kc:()=>T,uo:()=>w});var e=p(57851),A=p(94650),C=p(3238),M=p(21281),m=p(95017),b=p(61135),D=p(56451),v=p(95698),R=p(54004);const B=(0,C.sb)((0,C.Id)(e.Hs));let w=(()=>{class F extends B{constructor(ee,Q,Ee){super(ee,Q),this.tabIndex=Number(Ee)||0}ngOnInit(){super.ngOnInit()}ngOnDestroy(){super.ngOnDestroy()}}return F.\u0275fac=function(ee){return new(ee||F)(A.Y36(A.SBq),A.Y36(e._0),A.$8M("tabindex"))},F.\u0275dir=A.lG2({type:F,selectors:[["mat-tree-node"]],hostAttrs:[1,"mat-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["matTreeNode"],features:[A._Bn([{provide:e.Hs,useExisting:F}]),A.qOj]}),F})(),L=(()=>{class F extends e.rO{}return F.\u0275fac=function(){let V;return function(Q){return(V||(V=A.n5z(F)))(Q||F)}}(),F.\u0275dir=A.lG2({type:F,selectors:[["","matTreeNodeDef",""]],inputs:{when:["matTreeNodeDefWhen","when"],data:["matTreeNode","data"]},features:[A._Bn([{provide:e.rO,useExisting:F}]),A.qOj]}),F})(),O=(()=>{class F extends e.Xx{constructor(ee,Q,Ee,ge){super(ee,Q,Ee),this._disabled=!1,this.tabIndex=Number(ge)||0}get disabled(){return this._disabled}set disabled(ee){this._disabled=(0,M.Ig)(ee)}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(ee){this._tabIndex=ee??0}ngOnInit(){super.ngOnInit()}ngAfterContentInit(){super.ngAfterContentInit()}ngOnDestroy(){super.ngOnDestroy()}}return F.\u0275fac=function(ee){return new(ee||F)(A.Y36(A.SBq),A.Y36(e._0),A.Y36(A.ZZ4),A.$8M("tabindex"))},F.\u0275dir=A.lG2({type:F,selectors:[["mat-nested-tree-node"]],hostAttrs:[1,"mat-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex",node:["matNestedTreeNode","node"]},exportAs:["matNestedTreeNode"],features:[A._Bn([{provide:e.Xx,useExisting:F},{provide:e.Hs,useExisting:F},{provide:e.HI,useExisting:F}]),A.qOj]}),F})(),te=(()=>{class F{constructor(ee,Q){this.viewContainer=ee,this._node=Q}}return F.\u0275fac=function(ee){return new(ee||F)(A.Y36(A.s_b),A.Y36(e.HI,8))},F.\u0275dir=A.lG2({type:F,selectors:[["","matTreeNodeOutlet",""]],features:[A._Bn([{provide:e.cu,useExisting:F}])]}),F})(),z=(()=>{class F extends e._0{}return F.\u0275fac=function(){let V;return function(Q){return(V||(V=A.n5z(F)))(Q||F)}}(),F.\u0275cmp=A.Xpm({type:F,selectors:[["mat-tree"]],viewQuery:function(ee,Q){if(1&ee&&A.Gf(te,7),2&ee){let Ee;A.iGM(Ee=A.CRH())&&(Q._nodeOutlet=Ee.first)}},hostAttrs:["role","tree",1,"mat-tree"],exportAs:["matTree"],features:[A._Bn([{provide:e._0,useExisting:F}]),A.qOj],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(ee,Q){1&ee&&A.GkF(0,0)},dependencies:[te],styles:[".mat-tree{display:block}.mat-tree-node{display:flex;align-items:center;flex:1;word-wrap:break-word}.mat-nested-tree-node{border-bottom-width:0}"],encapsulation:2}),F})(),ie=(()=>{class F extends e.Ud{}return F.\u0275fac=function(){let V;return function(Q){return(V||(V=A.n5z(F)))(Q||F)}}(),F.\u0275dir=A.lG2({type:F,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:["matTreeNodeToggleRecursive","recursive"]},features:[A._Bn([{provide:e.Ud,useExisting:F}]),A.qOj]}),F})(),pe=(()=>{class F{}return F.\u0275fac=function(ee){return new(ee||F)},F.\u0275mod=A.oAB({type:F}),F.\u0275inj=A.cJS({imports:[e.nZ,C.BQ,C.BQ]}),F})();class Le{constructor(V,ee,Q,Ee){this.transformFunction=V,this.getLevel=ee,this.isExpandable=Q,this.getChildren=Ee}_flattenNode(V,ee,Q,Ee){const ge=this.transformFunction(V,ee);if(Q.push(ge),this.isExpandable(ge)){const ve=this.getChildren(V);ve&&(Array.isArray(ve)?this._flattenChildren(ve,ee,Q,Ee):ve.pipe((0,v.q)(1)).subscribe(De=>{this._flattenChildren(De,ee,Q,Ee)}))}return Q}_flattenChildren(V,ee,Q,Ee){V.forEach((ge,ve)=>{let De=Ee.slice();De.push(ve!=V.length-1),this._flattenNode(ge,ee+1,Q,De)})}flattenNodes(V){let ee=[];return V.forEach(Q=>this._flattenNode(Q,0,ee,[])),ee}expandFlattenedNodes(V,ee){let Q=[],Ee=[];return Ee[0]=!0,V.forEach(ge=>{let ve=!0;for(let De=0;De<=this.getLevel(ge);De++)ve=ve&&Ee[De];ve&&Q.push(ge),this.isExpandable(ge)&&(Ee[this.getLevel(ge)+1]=ee.isExpanded(ge))}),Q}}class T extends m.o2{constructor(V,ee,Q){super(),this._treeControl=V,this._treeFlattener=ee,this._flattenedData=new b.X([]),this._expandedData=new b.X([]),this._data=new b.X([]),Q&&(this.data=Q)}get data(){return this._data.value}set data(V){this._data.next(V),this._flattenedData.next(this._treeFlattener.flattenNodes(this.data)),this._treeControl.dataNodes=this._flattenedData.value}connect(V){return(0,D.T)(V.viewChange,this._treeControl.expansionModel.changed,this._flattenedData).pipe((0,R.U)(()=>(this._expandedData.next(this._treeFlattener.expandFlattenedNodes(this._flattenedData.value,this._treeControl)),this._expandedData.value)))}disconnect(){}}class W extends m.o2{constructor(){super(...arguments),this._data=new b.X([])}get data(){return this._data.value}set data(V){this._data.next(V)}connect(V){return(0,D.T)(V.viewChange,this._data).pipe((0,R.U)(()=>this.data))}disconnect(){}}},11481:(Xe,ue,p)=>{"use strict";p.d(ue,{Dx:()=>i,H7:()=>an,b2:()=>u,q6:()=>Ne,se:()=>he});var e=p(36895),A=p(94650);class C extends e.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class M extends C{static makeCurrent(){(0,e.HT)(new M)}onAndCancel(Dt,Ze,wt){return Dt.addEventListener(Ze,wt,!1),()=>{Dt.removeEventListener(Ze,wt,!1)}}dispatchEvent(Dt,Ze){Dt.dispatchEvent(Ze)}remove(Dt){Dt.parentNode&&Dt.parentNode.removeChild(Dt)}createElement(Dt,Ze){return(Ze=Ze||this.getDefaultDocument()).createElement(Dt)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(Dt){return Dt.nodeType===Node.ELEMENT_NODE}isShadowRoot(Dt){return Dt instanceof DocumentFragment}getGlobalEventTarget(Dt,Ze){return"window"===Ze?window:"document"===Ze?Dt:"body"===Ze?Dt.body:null}getBaseHref(Dt){const Ze=function b(){return m=m||document.querySelector("base"),m?m.getAttribute("href"):null}();return null==Ze?null:function v(Tt){D=D||document.createElement("a"),D.setAttribute("href",Tt);const Dt=D.pathname;return"/"===Dt.charAt(0)?Dt:`/${Dt}`}(Ze)}resetBaseElement(){m=null}getUserAgent(){return window.navigator.userAgent}getCookie(Dt){return(0,e.Mx)(document.cookie,Dt)}}let D,m=null;const R=new A.OlP("TRANSITION_ID"),w=[{provide:A.ip1,useFactory:function B(Tt,Dt,Ze){return()=>{Ze.get(A.CZH).donePromise.then(()=>{const wt=(0,e.q)(),Ft=Dt.querySelectorAll(`style[ng-transition="${Tt}"]`);for(let ln=0;ln{class Tt{build(){return new XMLHttpRequest}}return Tt.\u0275fac=function(Ze){return new(Ze||Tt)},Tt.\u0275prov=A.Yz7({token:Tt,factory:Tt.\u0275fac}),Tt})();const q=new A.OlP("EventManagerPlugins");let te=(()=>{class Tt{constructor(Ze,wt){this._zone=wt,this._eventNameToPlugin=new Map,Ze.forEach(Ft=>Ft.manager=this),this._plugins=Ze.slice().reverse()}addEventListener(Ze,wt,Ft){return this._findPluginFor(wt).addEventListener(Ze,wt,Ft)}addGlobalEventListener(Ze,wt,Ft){return this._findPluginFor(wt).addGlobalEventListener(Ze,wt,Ft)}getZone(){return this._zone}_findPluginFor(Ze){const wt=this._eventNameToPlugin.get(Ze);if(wt)return wt;const Ft=this._plugins;for(let ln=0;ln{class Tt{constructor(){this._stylesSet=new Set}addStyles(Ze){const wt=new Set;Ze.forEach(Ft=>{this._stylesSet.has(Ft)||(this._stylesSet.add(Ft),wt.add(Ft))}),this.onStylesAdded(wt)}onStylesAdded(Ze){}getAllStyles(){return Array.from(this._stylesSet)}}return Tt.\u0275fac=function(Ze){return new(Ze||Tt)},Tt.\u0275prov=A.Yz7({token:Tt,factory:Tt.\u0275fac}),Tt})(),Te=(()=>{class Tt extends ie{constructor(Ze){super(),this._doc=Ze,this._hostNodes=new Map,this._hostNodes.set(Ze.head,[])}_addStylesToHost(Ze,wt,Ft){Ze.forEach(ln=>{const bn=this._doc.createElement("style");bn.textContent=ln,Ft.push(wt.appendChild(bn))})}addHost(Ze){const wt=[];this._addStylesToHost(this._stylesSet,Ze,wt),this._hostNodes.set(Ze,wt)}removeHost(Ze){const wt=this._hostNodes.get(Ze);wt&&wt.forEach(pe),this._hostNodes.delete(Ze)}onStylesAdded(Ze){this._hostNodes.forEach((wt,Ft)=>{this._addStylesToHost(Ze,Ft,wt)})}ngOnDestroy(){this._hostNodes.forEach(Ze=>Ze.forEach(pe))}}return Tt.\u0275fac=function(Ze){return new(Ze||Tt)(A.LFG(e.K0))},Tt.\u0275prov=A.Yz7({token:Tt,factory:Tt.\u0275fac}),Tt})();function pe(Tt){(0,e.q)().remove(Tt)}const Le={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/",math:"http://www.w3.org/1998/MathML/"},T=/%COMP%/g,F="%COMP%",V=`_nghost-${F}`,ee=`_ngcontent-${F}`;function ge(Tt,Dt,Ze){for(let wt=0;wt{if("__ngUnwrap__"===Dt)return Tt;!1===Tt(Dt)&&(Dt.preventDefault(),Dt.returnValue=!1)}}let he=(()=>{class Tt{constructor(Ze,wt,Ft){this.eventManager=Ze,this.sharedStylesHost=wt,this.appId=Ft,this.rendererByCompId=new Map,this.defaultRenderer=new Ye(Ze)}createRenderer(Ze,wt){if(!Ze||!wt)return this.defaultRenderer;switch(wt.encapsulation){case A.ifc.Emulated:{let Ft=this.rendererByCompId.get(wt.id);return Ft||(Ft=new N(this.eventManager,this.sharedStylesHost,wt,this.appId),this.rendererByCompId.set(wt.id,Ft)),Ft.applyToHost(Ze),Ft}case 1:case A.ifc.ShadowDom:return new k(this.eventManager,this.sharedStylesHost,Ze,wt);default:if(!this.rendererByCompId.has(wt.id)){const Ft=ge(wt.id,wt.styles,[]);this.sharedStylesHost.addStyles(Ft),this.rendererByCompId.set(wt.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return Tt.\u0275fac=function(Ze){return new(Ze||Tt)(A.LFG(te),A.LFG(Te),A.LFG(A.AFp))},Tt.\u0275prov=A.Yz7({token:Tt,factory:Tt.\u0275fac}),Tt})();class Ye{constructor(Dt){this.eventManager=Dt,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(Dt,Ze){return Ze?document.createElementNS(Le[Ze]||Ze,Dt):document.createElement(Dt)}createComment(Dt){return document.createComment(Dt)}createText(Dt){return document.createTextNode(Dt)}appendChild(Dt,Ze){(le(Dt)?Dt.content:Dt).appendChild(Ze)}insertBefore(Dt,Ze,wt){Dt&&(le(Dt)?Dt.content:Dt).insertBefore(Ze,wt)}removeChild(Dt,Ze){Dt&&Dt.removeChild(Ze)}selectRootElement(Dt,Ze){let wt="string"==typeof Dt?document.querySelector(Dt):Dt;if(!wt)throw new Error(`The selector "${Dt}" did not match any elements`);return Ze||(wt.textContent=""),wt}parentNode(Dt){return Dt.parentNode}nextSibling(Dt){return Dt.nextSibling}setAttribute(Dt,Ze,wt,Ft){if(Ft){Ze=Ft+":"+Ze;const ln=Le[Ft];ln?Dt.setAttributeNS(ln,Ze,wt):Dt.setAttribute(Ze,wt)}else Dt.setAttribute(Ze,wt)}removeAttribute(Dt,Ze,wt){if(wt){const Ft=Le[wt];Ft?Dt.removeAttributeNS(Ft,Ze):Dt.removeAttribute(`${wt}:${Ze}`)}else Dt.removeAttribute(Ze)}addClass(Dt,Ze){Dt.classList.add(Ze)}removeClass(Dt,Ze){Dt.classList.remove(Ze)}setStyle(Dt,Ze,wt,Ft){Ft&(A.JOm.DashCase|A.JOm.Important)?Dt.style.setProperty(Ze,wt,Ft&A.JOm.Important?"important":""):Dt.style[Ze]=wt}removeStyle(Dt,Ze,wt){wt&A.JOm.DashCase?Dt.style.removeProperty(Ze):Dt.style[Ze]=""}setProperty(Dt,Ze,wt){Dt[Ze]=wt}setValue(Dt,Ze){Dt.nodeValue=Ze}listen(Dt,Ze,wt){return"string"==typeof Dt?this.eventManager.addGlobalEventListener(Dt,Ze,ve(wt)):this.eventManager.addEventListener(Dt,Ze,ve(wt))}}function le(Tt){return"TEMPLATE"===Tt.tagName&&void 0!==Tt.content}class N extends Ye{constructor(Dt,Ze,wt,Ft){super(Dt),this.component=wt;const ln=ge(Ft+"-"+wt.id,wt.styles,[]);Ze.addStyles(ln),this.contentAttr=function Q(Tt){return ee.replace(T,Tt)}(Ft+"-"+wt.id),this.hostAttr=function Ee(Tt){return V.replace(T,Tt)}(Ft+"-"+wt.id)}applyToHost(Dt){super.setAttribute(Dt,this.hostAttr,"")}createElement(Dt,Ze){const wt=super.createElement(Dt,Ze);return super.setAttribute(wt,this.contentAttr,""),wt}}class k extends Ye{constructor(Dt,Ze,wt,Ft){super(Dt),this.sharedStylesHost=Ze,this.hostEl=wt,this.shadowRoot=wt.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const ln=ge(Ft.id,Ft.styles,[]);for(let bn=0;bn{class Tt extends z{constructor(Ze){super(Ze)}supports(Ze){return!0}addEventListener(Ze,wt,Ft){return Ze.addEventListener(wt,Ft,!1),()=>this.removeEventListener(Ze,wt,Ft)}removeEventListener(Ze,wt,Ft){return Ze.removeEventListener(wt,Ft)}}return Tt.\u0275fac=function(Ze){return new(Ze||Tt)(A.LFG(e.K0))},Tt.\u0275prov=A.Yz7({token:Tt,factory:Tt.\u0275fac}),Tt})();const Z=["alt","control","meta","shift"],xe={"\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"},ot={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"},Fe={alt:Tt=>Tt.altKey,control:Tt=>Tt.ctrlKey,meta:Tt=>Tt.metaKey,shift:Tt=>Tt.shiftKey};let ut=(()=>{class Tt extends z{constructor(Ze){super(Ze)}supports(Ze){return null!=Tt.parseEventName(Ze)}addEventListener(Ze,wt,Ft){const ln=Tt.parseEventName(wt),bn=Tt.eventCallback(ln.fullKey,Ft,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,e.q)().onAndCancel(Ze,ln.domEventName,bn))}static parseEventName(Ze){const wt=Ze.toLowerCase().split("."),Ft=wt.shift();if(0===wt.length||"keydown"!==Ft&&"keyup"!==Ft)return null;const ln=Tt._normalizeKey(wt.pop());let bn="";if(Z.forEach(zn=>{const bt=wt.indexOf(zn);bt>-1&&(wt.splice(bt,1),bn+=zn+".")}),bn+=ln,0!=wt.length||0===ln.length)return null;const gn={};return gn.domEventName=Ft,gn.fullKey=bn,gn}static getEventFullKey(Ze){let wt="",Ft=function tt(Tt){let Dt=Tt.key;if(null==Dt){if(Dt=Tt.keyIdentifier,null==Dt)return"Unidentified";Dt.startsWith("U+")&&(Dt=String.fromCharCode(parseInt(Dt.substring(2),16)),3===Tt.location&&ot.hasOwnProperty(Dt)&&(Dt=ot[Dt]))}return xe[Dt]||Dt}(Ze);return Ft=Ft.toLowerCase()," "===Ft?Ft="space":"."===Ft&&(Ft="dot"),Z.forEach(ln=>{ln!=Ft&&(0,Fe[ln])(Ze)&&(wt+=ln+".")}),wt+=Ft,wt}static eventCallback(Ze,wt,Ft){return ln=>{Tt.getEventFullKey(ln)===Ze&&Ft.runGuarded(()=>wt(ln))}}static _normalizeKey(Ze){return"esc"===Ze?"escape":Ze}}return Tt.\u0275fac=function(Ze){return new(Ze||Tt)(A.LFG(e.K0))},Tt.\u0275prov=A.Yz7({token:Tt,factory:Tt.\u0275fac}),Tt})();const Ne=(0,A.eFA)(A._c5,"browser",[{provide:A.Lbi,useValue:e.bD},{provide:A.g9A,useValue:function Ae(){M.makeCurrent()},multi:!0},{provide:e.K0,useFactory:function _e(){return(0,A.RDi)(document),document},deps:[]}]),Ce=new A.OlP(""),fe=[{provide:A.rWj,useClass:class L{addToWindow(Dt){A.dqk.getAngularTestability=(wt,Ft=!0)=>{const ln=Dt.findTestabilityInTree(wt,Ft);if(null==ln)throw new Error("Could not find testability for element.");return ln},A.dqk.getAllAngularTestabilities=()=>Dt.getAllTestabilities(),A.dqk.getAllAngularRootElements=()=>Dt.getAllRootElements(),A.dqk.frameworkStabilizers||(A.dqk.frameworkStabilizers=[]),A.dqk.frameworkStabilizers.push(wt=>{const Ft=A.dqk.getAllAngularTestabilities();let ln=Ft.length,bn=!1;const gn=function(zn){bn=bn||zn,ln--,0==ln&&wt(bn)};Ft.forEach(function(zn){zn.whenStable(gn)})})}findTestabilityInTree(Dt,Ze,wt){return null==Ze?null:Dt.getTestability(Ze)??(wt?(0,e.q)().isShadowRoot(Ze)?this.findTestabilityInTree(Dt,Ze.host,!0):this.findTestabilityInTree(Dt,Ze.parentElement,!0):null)}},deps:[]},{provide:A.lri,useClass:A.dDg,deps:[A.R0b,A.eoX,A.rWj]},{provide:A.dDg,useClass:A.dDg,deps:[A.R0b,A.eoX,A.rWj]}],r=[{provide:A.zSh,useValue:"root"},{provide:A.qLn,useFactory:function ye(){return new A.qLn},deps:[]},{provide:q,useClass:be,multi:!0,deps:[e.K0,A.R0b,A.Lbi]},{provide:q,useClass:ut,multi:!0,deps:[e.K0]},{provide:he,useClass:he,deps:[te,Te,A.AFp]},{provide:A.FYo,useExisting:he},{provide:ie,useExisting:Te},{provide:Te,useClass:Te,deps:[e.K0]},{provide:te,useClass:te,deps:[q,A.R0b]},{provide:e.JF,useClass:O,deps:[]},[]];let u=(()=>{class Tt{constructor(Ze){}static withServerTransition(Ze){return{ngModule:Tt,providers:[{provide:A.AFp,useValue:Ze.appId},{provide:R,useExisting:A.AFp},w]}}}return Tt.\u0275fac=function(Ze){return new(Ze||Tt)(A.LFG(Ce,12))},Tt.\u0275mod=A.oAB({type:Tt}),Tt.\u0275inj=A.cJS({providers:[...r,...fe],imports:[e.ez,A.hGG]}),Tt})(),i=(()=>{class Tt{constructor(Ze){this._doc=Ze}getTitle(){return this._doc.title}setTitle(Ze){this._doc.title=Ze||""}}return Tt.\u0275fac=function(Ze){return new(Ze||Tt)(A.LFG(e.K0))},Tt.\u0275prov=A.Yz7({token:Tt,factory:function(Ze){let wt=null;return wt=Ze?new Ze:function a(){return new i((0,A.LFG)(e.K0))}(),wt},providedIn:"root"}),Tt})();typeof window<"u"&&window;let an=(()=>{class Tt{}return Tt.\u0275fac=function(Ze){return new(Ze||Tt)},Tt.\u0275prov=A.Yz7({token:Tt,factory:function(Ze){let wt=null;return wt=Ze?new(Ze||Tt):A.LFG(on),wt},providedIn:"root"}),Tt})(),on=(()=>{class Tt extends an{constructor(Ze){super(),this._doc=Ze}sanitize(Ze,wt){if(null==wt)return null;switch(Ze){case A.q3G.NONE:return wt;case A.q3G.HTML:return(0,A.qzn)(wt,"HTML")?(0,A.z3N)(wt):(0,A.EiD)(this._doc,String(wt)).toString();case A.q3G.STYLE:return(0,A.qzn)(wt,"Style")?(0,A.z3N)(wt):wt;case A.q3G.SCRIPT:if((0,A.qzn)(wt,"Script"))return(0,A.z3N)(wt);throw new Error("unsafe value used in a script context");case A.q3G.URL:return(0,A.qzn)(wt,"URL")?(0,A.z3N)(wt):(0,A.mCW)(String(wt));case A.q3G.RESOURCE_URL:if((0,A.qzn)(wt,"ResourceURL"))return(0,A.z3N)(wt);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${Ze} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(Ze){return(0,A.JVY)(Ze)}bypassSecurityTrustStyle(Ze){return(0,A.L6k)(Ze)}bypassSecurityTrustScript(Ze){return(0,A.eBb)(Ze)}bypassSecurityTrustUrl(Ze){return(0,A.LAX)(Ze)}bypassSecurityTrustResourceUrl(Ze){return(0,A.pB0)(Ze)}}return Tt.\u0275fac=function(Ze){return new(Ze||Tt)(A.LFG(e.K0))},Tt.\u0275prov=A.Yz7({token:Tt,factory:function(Ze){let wt=null;return wt=Ze?new Ze:function Kt(Tt){return new on(Tt.get(e.K0))}(A.LFG(A.zs3)),wt},providedIn:"root"}),Tt})()},94364:(Xe,ue,p)=>{"use strict";p.d(ue,{gz:()=>Zt,m2:()=>qn,OD:()=>zi,GZ:()=>rl,wN:()=>ds,F0:()=>Di,rH:()=>Kr,yS:()=>va,Bz:()=>ai,lC:()=>Ji});var e=p(94650),A=p(69751),C=p(50727),M=p(54482),m=p(25403);function b(){return(0,M.e)((ae,de)=>{let G=null;ae._refCount++;const Me=(0,m.x)(de,void 0,void 0,void 0,()=>{if(!ae||ae._refCount<=0||0<--ae._refCount)return void(G=null);const Ge=ae._connection,mt=G;G=null,Ge&&(!mt||Ge===mt)&&Ge.unsubscribe(),de.unsubscribe()});ae.subscribe(Me),Me.closed||(G=ae.connect())})}class D extends A.y{constructor(de,G){super(),this.source=de,this.subjectFactory=G,this._subject=null,this._refCount=0,this._connection=null,(0,M.A)(de)&&(this.lift=de.lift)}_subscribe(de){return this.getSubject().subscribe(de)}getSubject(){const de=this._subject;return(!de||de.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:de}=this;this._subject=this._connection=null,de?.unsubscribe()}connect(){let de=this._connection;if(!de){de=this._connection=new C.w0;const G=this.getSubject();de.add(this.source.subscribe((0,m.x)(G,void 0,()=>{this._teardown(),G.complete()},Me=>{this._teardown(),G.error(Me)},()=>this._teardown()))),de.closed&&(this._connection=null,de=C.w0.EMPTY)}return de}refCount(){return b()(this)}}var v=p(32076),R=p(39646),B=p(61135),w=p(86805),L=p(39841),O=p(97272),q=p(49770),te=p(89635),z=p(62843),ie=p(60515),Te=p(77579),pe=p(36895),Le=p(57359);function T(ae,de){return(0,M.e)((0,Le.U)(ae,de,arguments.length>=2,!0))}var W=p(39300);function F(ae){return ae<=0?()=>ie.E:(0,M.e)((de,G)=>{let Me=[];de.subscribe((0,m.x)(G,Ge=>{Me.push(Ge),ae{for(const Ge of Me)G.next(Ge);G.complete()},void 0,()=>{Me=null}))})}var V=p(18068),ee=p(46590),Q=p(44671);function Ee(ae,de){const G=arguments.length>=2;return Me=>Me.pipe(ae?(0,W.h)((Ge,mt)=>ae(Ge,mt,Me)):Q.y,F(1),G?(0,ee.d)(de):(0,V.T)(()=>new w.K))}var ge=p(54004),ve=p(63900),De=p(95698),he=p(68675),Ye=p(86099),Be=p(50590),se=p(24351),le=p(18505),N=p(70262),k=p(22529),be=p(69718),Z=p(28746),ce=p(8189),xe=p(11481);const ot="primary";class Fe{constructor(de){this.params=de||{}}has(de){return Object.prototype.hasOwnProperty.call(this.params,de)}get(de){if(this.has(de)){const G=this.params[de];return Array.isArray(G)?G[0]:G}return null}getAll(de){if(this.has(de)){const G=this.params[de];return Array.isArray(G)?G:[G]}return[]}get keys(){return Object.keys(this.params)}}function ut(ae){return new Fe(ae)}function tt(ae,de,G){const Me=G.path.split("/");if(Me.length>ae.length||"full"===G.pathMatch&&(de.hasChildren()||Me.lengthMe[mt]===Ge)}return ae===de}function Ae(ae){return Array.prototype.concat.apply([],ae)}function ye(ae){return ae.length>0?ae[ae.length-1]:null}function Se(ae,de){for(const G in ae)ae.hasOwnProperty(G)&&de(ae[G],G)}function Ne(ae){return(0,e.CqO)(ae)?ae:(0,e.QGY)(ae)?(0,v.D)(Promise.resolve(ae)):(0,R.of)(ae)}const r={exact:function h(ae,de,G){if(!c(ae.segments,de.segments)||!n(ae.segments,de.segments,G)||ae.numberOfChildren!==de.numberOfChildren)return!1;for(const Me in de.children)if(!ae.children[Me]||!h(ae.children[Me],de.children[Me],G))return!1;return!0},subset:i},u={exact:function E(ae,de){return X(ae,de)},subset:function a(ae,de){return Object.keys(de).length<=Object.keys(ae).length&&Object.keys(de).every(G=>nt(ae[G],de[G]))},ignored:()=>!0};function _(ae,de,G){return r[G.paths](ae.root,de.root,G.matrixParams)&&u[G.queryParams](ae.queryParams,de.queryParams)&&!("exact"===G.fragment&&ae.fragment!==de.fragment)}function i(ae,de,G){return t(ae,de,de.segments,G)}function t(ae,de,G,Me){if(ae.segments.length>G.length){const Ge=ae.segments.slice(0,G.length);return!(!c(Ge,G)||de.hasChildren()||!n(Ge,G,Me))}if(ae.segments.length===G.length){if(!c(ae.segments,G)||!n(ae.segments,G,Me))return!1;for(const Ge in de.children)if(!ae.children[Ge]||!i(ae.children[Ge],de.children[Ge],Me))return!1;return!0}{const Ge=G.slice(0,ae.segments.length),mt=G.slice(ae.segments.length);return!!(c(ae.segments,Ge)&&n(ae.segments,Ge,Me)&&ae.children[ot])&&t(ae.children[ot],de,mt,Me)}}function n(ae,de,G){return de.every((Me,Ge)=>u[G](ae[Ge].parameters,Me.parameters))}class o{constructor(de,G,Me){this.root=de,this.queryParams=G,this.fragment=Me}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ut(this.queryParams)),this._queryParamMap}toString(){return ze.serialize(this)}}class s{constructor(de,G){this.segments=de,this.children=G,this.parent=null,Se(G,(Me,Ge)=>Me.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return et(this)}}class l{constructor(de,G){this.path=de,this.parameters=G}get parameterMap(){return this._parameterMap||(this._parameterMap=ut(this.parameters)),this._parameterMap}toString(){return st(this)}}function c(ae,de){return ae.length===de.length&&ae.every((G,Me)=>G.path===de[Me].path)}let J=(()=>{class ae{}return ae.\u0275fac=function(G){return new(G||ae)},ae.\u0275prov=e.Yz7({token:ae,factory:function(){return new ht},providedIn:"root"}),ae})();class ht{parse(de){const G=new on(de);return new o(G.parseRootSegment(),G.parseQueryParams(),G.parseFragment())}serialize(de){const G=`/${ne(de.root,!0)}`,Me=function Et(ae){const de=Object.keys(ae).map(G=>{const Me=ae[G];return Array.isArray(Me)?Me.map(Ge=>`${He(G)}=${He(Ge)}`).join("&"):`${He(G)}=${He(Me)}`}).filter(G=>!!G);return de.length?`?${de.join("&")}`:""}(de.queryParams);return`${G}${Me}${"string"==typeof de.fragment?`#${function Pe(ae){return encodeURI(ae)}(de.fragment)}`:""}`}}const ze=new ht;function et(ae){return ae.segments.map(de=>st(de)).join("/")}function ne(ae,de){if(!ae.hasChildren())return et(ae);if(de){const G=ae.children[ot]?ne(ae.children[ot],!1):"",Me=[];return Se(ae.children,(Ge,mt)=>{mt!==ot&&Me.push(`${mt}:${ne(Ge,!1)}`)}),Me.length>0?`${G}(${Me.join("//")})`:G}{const G=function S(ae,de){let G=[];return Se(ae.children,(Me,Ge)=>{Ge===ot&&(G=G.concat(de(Me,Ge)))}),Se(ae.children,(Me,Ge)=>{Ge!==ot&&(G=G.concat(de(Me,Ge)))}),G}(ae,(Me,Ge)=>Ge===ot?[ne(ae.children[ot],!1)]:[`${Ge}:${ne(Me,!1)}`]);return 1===Object.keys(ae.children).length&&null!=ae.children[ot]?`${et(ae)}/${G[0]}`:`${et(ae)}/(${G.join("//")})`}}function Ue(ae){return encodeURIComponent(ae).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function He(ae){return Ue(ae).replace(/%3B/gi,";")}function Re(ae){return Ue(ae).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function re(ae){return decodeURIComponent(ae)}function we(ae){return re(ae.replace(/\+/g,"%20"))}function st(ae){return`${Re(ae.path)}${function Ke(ae){return Object.keys(ae).map(de=>`;${Re(de)}=${Re(ae[de])}`).join("")}(ae.parameters)}`}const ke=/^[^\/()?;=#]+/;function at(ae){const de=ae.match(ke);return de?de[0]:""}const It=/^[^=?&#]+/,an=/^[^&#]+/;class on{constructor(de){this.url=de,this.remaining=de}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new s([],{}):new s([],this.parseChildren())}parseQueryParams(){const de={};if(this.consumeOptional("?"))do{this.parseQueryParam(de)}while(this.consumeOptional("&"));return de}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const de=[];for(this.peekStartsWith("(")||de.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),de.push(this.parseSegment());let G={};this.peekStartsWith("/(")&&(this.capture("/"),G=this.parseParens(!0));let Me={};return this.peekStartsWith("(")&&(Me=this.parseParens(!1)),(de.length>0||Object.keys(G).length>0)&&(Me[ot]=new s(de,G)),Me}parseSegment(){const de=at(this.remaining);if(""===de&&this.peekStartsWith(";"))throw new e.vHH(4009,!1);return this.capture(de),new l(re(de),this.parseMatrixParams())}parseMatrixParams(){const de={};for(;this.consumeOptional(";");)this.parseParam(de);return de}parseParam(de){const G=at(this.remaining);if(!G)return;this.capture(G);let Me="";if(this.consumeOptional("=")){const Ge=at(this.remaining);Ge&&(Me=Ge,this.capture(Me))}de[re(G)]=re(Me)}parseQueryParam(de){const G=function jt(ae){const de=ae.match(It);return de?de[0]:""}(this.remaining);if(!G)return;this.capture(G);let Me="";if(this.consumeOptional("=")){const Rt=function Kt(ae){const de=ae.match(an);return de?de[0]:""}(this.remaining);Rt&&(Me=Rt,this.capture(Me))}const Ge=we(G),mt=we(Me);if(de.hasOwnProperty(Ge)){let Rt=de[Ge];Array.isArray(Rt)||(Rt=[Rt],de[Ge]=Rt),Rt.push(mt)}else de[Ge]=mt}parseParens(de){const G={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const Me=at(this.remaining),Ge=this.remaining[Me.length];if("/"!==Ge&&")"!==Ge&&";"!==Ge)throw new e.vHH(4010,!1);let mt;Me.indexOf(":")>-1?(mt=Me.slice(0,Me.indexOf(":")),this.capture(mt),this.capture(":")):de&&(mt=ot);const Rt=this.parseChildren();G[mt]=1===Object.keys(Rt).length?Rt[ot]:new s([],Rt),this.consumeOptional("//")}return G}peekStartsWith(de){return this.remaining.startsWith(de)}consumeOptional(de){return!!this.peekStartsWith(de)&&(this.remaining=this.remaining.substring(de.length),!0)}capture(de){if(!this.consumeOptional(de))throw new e.vHH(4011,!1)}}function Cn(ae){return ae.segments.length>0?new s([],{[ot]:ae}):ae}function Tt(ae){const de={};for(const Me of Object.keys(ae.children)){const mt=Tt(ae.children[Me]);(mt.segments.length>0||mt.hasChildren())&&(de[Me]=mt)}return function Dt(ae){if(1===ae.numberOfChildren&&ae.children[ot]){const de=ae.children[ot];return new s(ae.segments.concat(de.segments),de.children)}return ae}(new s(ae.segments,de))}function Ze(ae){return ae instanceof o}function gn(ae,de,G,Me,Ge){var mt;if(0===G.length)return Lt(de.root,de.root,de.root,Me,Ge);const Rt=function St(ae){if("string"==typeof ae[0]&&1===ae.length&&"/"===ae[0])return new rt(!0,0,ae);let de=0,G=!1;const Me=ae.reduce((Ge,mt,Rt)=>{if("object"==typeof mt&&null!=mt){if(mt.outlets){const Ut={};return Se(mt.outlets,(qt,un)=>{Ut[un]="string"==typeof qt?qt.split("/"):qt}),[...Ge,{outlets:Ut}]}if(mt.segmentPath)return[...Ge,mt.segmentPath]}return"string"!=typeof mt?[...Ge,mt]:0===Rt?(mt.split("/").forEach((Ut,qt)=>{0==qt&&"."===Ut||(0==qt&&""===Ut?G=!0:".."===Ut?de++:""!=Ut&&Ge.push(Ut))}),Ge):[...Ge,mt]},[]);return new rt(G,de,Me)}(G);if(Rt.toRoot())return Lt(de.root,de.root,new s([],{}),Me,Ge);const qt=function Ut(En){var hn;const Dn=function At(ae,de,G,Me){if(ae.isAbsolute)return new $(de.root,!0,0);if(-1===Me)return new $(G,G===de.root,0);return function Pt(ae,de,G){let Me=ae,Ge=de,mt=G;for(;mt>Ge;){if(mt-=Ge,Me=Me.parent,!Me)throw new e.vHH(4005,!1);Ge=Me.segments.length}return new $(Me,!1,Ge-mt)}(G,Me+(zn(ae.commands[0])?0:1),ae.numberOfDoubleDots)}(Rt,de,null===(hn=ae.snapshot)||void 0===hn?void 0:hn._urlSegment,En),pi=Dn.processChildren?Zn(Dn.segmentGroup,Dn.index,Rt.commands):yn(Dn.segmentGroup,Dn.index,Rt.commands);return Lt(de.root,Dn.segmentGroup,pi,Me,Ge)}(null===(mt=ae.snapshot)||void 0===mt?void 0:mt._lastPathIndex);return qt}function zn(ae){return"object"==typeof ae&&null!=ae&&!ae.outlets&&!ae.segmentPath}function bt(ae){return"object"==typeof ae&&null!=ae&&ae.outlets}function Lt(ae,de,G,Me,Ge){let Rt,mt={};Me&&Se(Me,(qt,un)=>{mt[un]=Array.isArray(qt)?qt.map(En=>`${En}`):`${qt}`}),Rt=ae===de?G:pt(ae,de,G);const Ut=Cn(Tt(Rt));return new o(Ut,mt,Ge)}function pt(ae,de,G){const Me={};return Se(ae.children,(Ge,mt)=>{Me[mt]=Ge===de?G:pt(Ge,de,G)}),new s(ae.segments,Me)}class rt{constructor(de,G,Me){if(this.isAbsolute=de,this.numberOfDoubleDots=G,this.commands=Me,de&&Me.length>0&&zn(Me[0]))throw new e.vHH(4003,!1);const Ge=Me.find(bt);if(Ge&&Ge!==ye(Me))throw new e.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class ${constructor(de,G,Me){this.segmentGroup=de,this.processChildren=G,this.index=Me}}function yn(ae,de,G){if(ae||(ae=new s([],{})),0===ae.segments.length&&ae.hasChildren())return Zn(ae,de,G);const Me=function Hn(ae,de,G){let Me=0,Ge=de;const mt={match:!1,pathIndex:0,commandIndex:0};for(;Ge=G.length)return mt;const Rt=ae.segments[Ge],Ut=G[Me];if(bt(Ut))break;const qt=`${Ut}`,un=Me0&&void 0===qt)break;if(qt&&un&&"object"==typeof un&&void 0===un.outlets){if(!Jn(qt,un,Rt))return mt;Me+=2}else{if(!Jn(qt,{},Rt))return mt;Me++}Ge++}return{match:!0,pathIndex:Ge,commandIndex:Me}}(ae,de,G),Ge=G.slice(Me.commandIndex);if(Me.match&&Me.pathIndex{"string"==typeof mt&&(mt=[mt]),null!==mt&&(Ge[Rt]=yn(ae.children[Rt],de,mt))}),Se(ae.children,(mt,Rt)=>{void 0===Me[Rt]&&(Ge[Rt]=mt)}),new s(ae.segments,Ge)}}function Xn(ae,de,G){const Me=ae.segments.slice(0,de);let Ge=0;for(;Ge{"string"==typeof G&&(G=[G]),null!==G&&(de[Me]=Xn(new s([],{}),0,G))}),de}function di(ae){const de={};return Se(ae,(G,Me)=>de[Me]=`${G}`),de}function Jn(ae,de,G){return ae==G.path&&X(de,G.parameters)}class Ln{constructor(de,G){this.id=de,this.url=G}}class zi extends Ln{constructor(de,G,Me="imperative",Ge=null){super(de,G),this.type=0,this.navigationTrigger=Me,this.restoredState=Ge}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class qn extends Ln{constructor(de,G,Me){super(de,G),this.urlAfterRedirects=Me,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class si extends Ln{constructor(de,G,Me,Ge){super(de,G),this.reason=Me,this.code=Ge,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Yi extends Ln{constructor(de,G,Me,Ge){super(de,G),this.error=Me,this.target=Ge,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class tr extends Ln{constructor(de,G,Me,Ge){super(de,G),this.urlAfterRedirects=Me,this.state=Ge,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Vi extends Ln{constructor(de,G,Me,Ge){super(de,G),this.urlAfterRedirects=Me,this.state=Ge,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class li extends Ln{constructor(de,G,Me,Ge,mt){super(de,G),this.urlAfterRedirects=Me,this.state=Ge,this.shouldActivate=mt,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class or extends Ln{constructor(de,G,Me,Ge){super(de,G),this.urlAfterRedirects=Me,this.state=Ge,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ir extends Ln{constructor(de,G,Me,Ge){super(de,G),this.urlAfterRedirects=Me,this.state=Ge,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class sr{constructor(de){this.route=de,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class lr{constructor(de){this.route=de,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Ci{constructor(de){this.snapshot=de,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Er{constructor(de){this.snapshot=de,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ur{constructor(de){this.snapshot=de,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ei{constructor(de){this.snapshot=de,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Or{constructor(de,G,Me){this.routerEvent=de,this.position=G,this.anchor=Me,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class kr{constructor(de){this._root=de}get root(){return this._root.value}parent(de){const G=this.pathFromRoot(de);return G.length>1?G[G.length-2]:null}children(de){const G=Hr(de,this._root);return G?G.children.map(Me=>Me.value):[]}firstChild(de){const G=Hr(de,this._root);return G&&G.children.length>0?G.children[0].value:null}siblings(de){const G=Pi(de,this._root);return G.length<2?[]:G[G.length-2].children.map(Ge=>Ge.value).filter(Ge=>Ge!==de)}pathFromRoot(de){return Pi(de,this._root).map(G=>G.value)}}function Hr(ae,de){if(ae===de.value)return de;for(const G of de.children){const Me=Hr(ae,G);if(Me)return Me}return null}function Pi(ae,de){if(ae===de.value)return[de];for(const G of de.children){const Me=Pi(ae,G);if(Me.length)return Me.unshift(de),Me}return[]}class Ii{constructor(de,G){this.value=de,this.children=G}toString(){return`TreeNode(${this.value})`}}function Mt(ae){const de={};return ae&&ae.children.forEach(G=>de[G.value.outlet]=G),de}class en extends kr{constructor(de,G){super(de),this.snapshot=G,ui(this,de)}toString(){return this.snapshot.toString()}}function ct(ae,de){const G=function kt(ae,de){const Rt=new Bn([],{},{},"",{},ot,de,null,ae.root,-1,{});return new Qn("",new Ii(Rt,[]))}(ae,de),Me=new B.X([new l("",{})]),Ge=new B.X({}),mt=new B.X({}),Rt=new B.X({}),Ut=new B.X(""),qt=new Zt(Me,Ge,Rt,Ut,mt,ot,de,G.root);return qt.snapshot=G.root,new en(new Ii(qt,[]),G)}class Zt{constructor(de,G,Me,Ge,mt,Rt,Ut,qt){this.url=de,this.params=G,this.queryParams=Me,this.fragment=Ge,this.data=mt,this.outlet=Rt,this.component=Ut,this._futureSnapshot=qt}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,ge.U)(de=>ut(de)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,ge.U)(de=>ut(de)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function rn(ae,de="emptyOnly"){const G=ae.pathFromRoot;let Me=0;if("always"!==de)for(Me=G.length-1;Me>=1;){const Ge=G[Me],mt=G[Me-1];if(Ge.routeConfig&&""===Ge.routeConfig.path)Me--;else{if(mt.component)break;Me--}}return function In(ae){return ae.reduce((de,G)=>{var Me;return{params:{...de.params,...G.params},data:{...de.data,...G.data},resolve:{...G.data,...de.resolve,...null===(Me=G.routeConfig)||void 0===Me?void 0:Me.data,...G._resolvedData}}},{params:{},data:{},resolve:{}})}(G.slice(Me))}class Bn{constructor(de,G,Me,Ge,mt,Rt,Ut,qt,un,En,hn,Dn){this.url=de,this.params=G,this.queryParams=Me,this.fragment=Ge,this.data=mt,this.outlet=Rt,this.component=Ut,this.routeConfig=qt,this._urlSegment=un,this._lastPathIndex=En,this._correctedLastPathIndex=Dn??En,this._resolve=hn}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=ut(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ut(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(Me=>Me.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Qn extends kr{constructor(de,G){super(G),this.url=de,ui(this,G)}toString(){return nr(this._root)}}function ui(ae,de){de.value._routerState=ae,de.children.forEach(G=>ui(ae,G))}function nr(ae){const de=ae.children.length>0?` { ${ae.children.map(nr).join(", ")} } `:"";return`${ae.value}${de}`}function Oi(ae){if(ae.snapshot){const de=ae.snapshot,G=ae._futureSnapshot;ae.snapshot=G,X(de.queryParams,G.queryParams)||ae.queryParams.next(G.queryParams),de.fragment!==G.fragment&&ae.fragment.next(G.fragment),X(de.params,G.params)||ae.params.next(G.params),function vt(ae,de){if(ae.length!==de.length)return!1;for(let G=0;GX(G.parameters,de[Me].parameters))}(ae.url,de.url);return G&&!(!ae.parent!=!de.parent)&&(!ae.parent||xi(ae.parent,de.parent))}function lt(ae,de,G){if(G&&ae.shouldReuseRoute(de.value,G.value.snapshot)){const Me=G.value;Me._futureSnapshot=de.value;const Ge=function Vt(ae,de,G){return de.children.map(Me=>{for(const Ge of G.children)if(ae.shouldReuseRoute(Me.value,Ge.value.snapshot))return lt(ae,Me,Ge);return lt(ae,Me)})}(ae,de,G);return new Ii(Me,Ge)}{if(ae.shouldAttach(de.value)){const mt=ae.retrieve(de.value);if(null!==mt){const Rt=mt.route;return Rt.value._futureSnapshot=de.value,Rt.children=de.children.map(Ut=>lt(ae,Ut)),Rt}}const Me=function $e(ae){return new Zt(new B.X(ae.url),new B.X(ae.params),new B.X(ae.queryParams),new B.X(ae.fragment),new B.X(ae.data),ae.outlet,ae.component,ae)}(de.value),Ge=de.children.map(mt=>lt(ae,mt));return new Ii(Me,Ge)}}const yt="ngNavigationCancelingError";function Wt(ae,de){const{redirectTo:G,navigationBehaviorOptions:Me}=Ze(de)?{redirectTo:de,navigationBehaviorOptions:void 0}:de,Ge=dn(!1,0,de);return Ge.url=G,Ge.navigationBehaviorOptions=Me,Ge}function dn(ae,de,G){const Me=new Error("NavigationCancelingError: "+(ae||""));return Me[yt]=!0,Me.cancellationCode=de,G&&(Me.url=G),Me}function An(ae){return Yn(ae)&&Ze(ae.url)}function Yn(ae){return ae&&ae[yt]}class ri{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new bi,this.attachRef=null}}let bi=(()=>{class ae{constructor(){this.contexts=new Map}onChildOutletCreated(G,Me){const Ge=this.getOrCreateContext(G);Ge.outlet=Me,this.contexts.set(G,Ge)}onChildOutletDestroyed(G){const Me=this.getContext(G);Me&&(Me.outlet=null,Me.attachRef=null)}onOutletDeactivated(){const G=this.contexts;return this.contexts=new Map,G}onOutletReAttached(G){this.contexts=G}getOrCreateContext(G){let Me=this.getContext(G);return Me||(Me=new ri,this.contexts.set(G,Me)),Me}getContext(G){return this.contexts.get(G)||null}}return ae.\u0275fac=function(G){return new(G||ae)},ae.\u0275prov=e.Yz7({token:ae,factory:ae.\u0275fac,providedIn:"root"}),ae})();const cr=!1;let Ji=(()=>{class ae{constructor(G,Me,Ge,mt,Rt){this.parentContexts=G,this.location=Me,this.changeDetector=mt,this.environmentInjector=Rt,this.activated=null,this._activatedRoute=null,this.activateEvents=new e.vpe,this.deactivateEvents=new e.vpe,this.attachEvents=new e.vpe,this.detachEvents=new e.vpe,this.name=Ge||ot,G.onChildOutletCreated(this.name,this)}ngOnDestroy(){var G;(null===(G=this.parentContexts.getContext(this.name))||void 0===G?void 0:G.outlet)===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const G=this.parentContexts.getContext(this.name);G&&G.route&&(G.attachRef?this.attach(G.attachRef,G.route):this.activateWith(G.route,G.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new e.vHH(4012,cr);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new e.vHH(4012,cr);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new e.vHH(4012,cr);this.location.detach();const G=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(G.instance),G}attach(G,Me){this.activated=G,this._activatedRoute=Me,this.location.insert(G.hostView),this.attachEvents.emit(G.instance)}deactivate(){if(this.activated){const G=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(G)}}activateWith(G,Me){if(this.isActivated)throw new e.vHH(4013,cr);this._activatedRoute=G;const Ge=this.location,Rt=G._futureSnapshot.component,Ut=this.parentContexts.getOrCreateContext(this.name).children,qt=new ei(G,Ut,Ge.injector);if(Me&&function Ba(ae){return!!ae.resolveComponentFactory}(Me)){const un=Me.resolveComponentFactory(Rt);this.activated=Ge.createComponent(un,Ge.length,qt)}else this.activated=Ge.createComponent(Rt,{index:Ge.length,injector:qt,environmentInjector:Me??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return ae.\u0275fac=function(G){return new(G||ae)(e.Y36(bi),e.Y36(e.s_b),e.$8M("name"),e.Y36(e.sBO),e.Y36(e.lqb))},ae.\u0275dir=e.lG2({type:ae,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),ae})();class ei{constructor(de,G,Me){this.route=de,this.childContexts=G,this.parent=Me}get(de,G){return de===Zt?this.route:de===bi?this.childContexts:this.parent.get(de,G)}}let Qi=(()=>{class ae{}return ae.\u0275fac=function(G){return new(G||ae)},ae.\u0275cmp=e.Xpm({type:ae,selectors:[["ng-component"]],decls:1,vars:0,template:function(G,Me){1&G&&e._UZ(0,"router-outlet")},dependencies:[Ji],encapsulation:2}),ae})();function Fi(ae,de){var G;return ae.providers&&!ae._injector&&(ae._injector=(0,e.MMx)(ae.providers,de,`Route: ${ae.path}`)),null!==(G=ae._injector)&&void 0!==G?G:de}function Ct(ae){const de=ae.children&&ae.children.map(Ct),G=de?{...ae,children:de}:{...ae};return!G.component&&!G.loadComponent&&(de||G.loadChildren)&&G.outlet&&G.outlet!==ot&&(G.component=Qi),G}function Bt(ae){return ae.outlet||ot}function Qt(ae,de){const G=ae.filter(Me=>Bt(Me)===de);return G.push(...ae.filter(Me=>Bt(Me)!==de)),G}function zt(ae){var de;if(!ae)return null;if(null!==(de=ae.routeConfig)&&void 0!==de&&de._injector)return ae.routeConfig._injector;for(let G=ae.parent;G;G=G.parent){const Me=G.routeConfig;if(null!=Me&&Me._loadedInjector)return Me._loadedInjector;if(null!=Me&&Me._injector)return Me._injector}return null}class ni{constructor(de,G,Me,Ge){this.routeReuseStrategy=de,this.futureState=G,this.currState=Me,this.forwardEvent=Ge}activate(de){const G=this.futureState._root,Me=this.currState?this.currState._root:null;this.deactivateChildRoutes(G,Me,de),Oi(this.futureState.root),this.activateChildRoutes(G,Me,de)}deactivateChildRoutes(de,G,Me){const Ge=Mt(G);de.children.forEach(mt=>{const Rt=mt.value.outlet;this.deactivateRoutes(mt,Ge[Rt],Me),delete Ge[Rt]}),Se(Ge,(mt,Rt)=>{this.deactivateRouteAndItsChildren(mt,Me)})}deactivateRoutes(de,G,Me){const Ge=de.value,mt=G?G.value:null;if(Ge===mt)if(Ge.component){const Rt=Me.getContext(Ge.outlet);Rt&&this.deactivateChildRoutes(de,G,Rt.children)}else this.deactivateChildRoutes(de,G,Me);else mt&&this.deactivateRouteAndItsChildren(G,Me)}deactivateRouteAndItsChildren(de,G){de.value.component&&this.routeReuseStrategy.shouldDetach(de.value.snapshot)?this.detachAndStoreRouteSubtree(de,G):this.deactivateRouteAndOutlet(de,G)}detachAndStoreRouteSubtree(de,G){const Me=G.getContext(de.value.outlet),Ge=Me&&de.value.component?Me.children:G,mt=Mt(de);for(const Rt of Object.keys(mt))this.deactivateRouteAndItsChildren(mt[Rt],Ge);if(Me&&Me.outlet){const Rt=Me.outlet.detach(),Ut=Me.children.onOutletDeactivated();this.routeReuseStrategy.store(de.value.snapshot,{componentRef:Rt,route:de,contexts:Ut})}}deactivateRouteAndOutlet(de,G){const Me=G.getContext(de.value.outlet),Ge=Me&&de.value.component?Me.children:G,mt=Mt(de);for(const Rt of Object.keys(mt))this.deactivateRouteAndItsChildren(mt[Rt],Ge);Me&&Me.outlet&&(Me.outlet.deactivate(),Me.children.onOutletDeactivated(),Me.attachRef=null,Me.resolver=null,Me.route=null)}activateChildRoutes(de,G,Me){const Ge=Mt(G);de.children.forEach(mt=>{this.activateRoutes(mt,Ge[mt.value.outlet],Me),this.forwardEvent(new Ei(mt.value.snapshot))}),de.children.length&&this.forwardEvent(new Er(de.value.snapshot))}activateRoutes(de,G,Me){const Ge=de.value,mt=G?G.value:null;if(Oi(Ge),Ge===mt)if(Ge.component){const Ut=Me.getOrCreateContext(Ge.outlet);this.activateChildRoutes(de,G,Ut.children)}else this.activateChildRoutes(de,G,Me);else if(Ge.component){const Ut=Me.getOrCreateContext(Ge.outlet);if(this.routeReuseStrategy.shouldAttach(Ge.snapshot)){const qt=this.routeReuseStrategy.retrieve(Ge.snapshot);this.routeReuseStrategy.store(Ge.snapshot,null),Ut.children.onOutletReAttached(qt.contexts),Ut.attachRef=qt.componentRef,Ut.route=qt.route.value,Ut.outlet&&Ut.outlet.attach(qt.componentRef,qt.route.value),Oi(qt.route.value),this.activateChildRoutes(de,null,Ut.children)}else{var Rt;const qt=zt(Ge.snapshot),un=null!==(Rt=qt?.get(e._Vd))&&void 0!==Rt?Rt:null;Ut.attachRef=null,Ut.route=Ge,Ut.resolver=un,Ut.injector=qt,Ut.outlet&&Ut.outlet.activateWith(Ge,Ut.injector),this.activateChildRoutes(de,null,Ut.children)}}else this.activateChildRoutes(de,null,Me)}}class Kn{constructor(de){this.path=de,this.route=this.path[this.path.length-1]}}class ti{constructor(de,G){this.component=de,this.route=G}}function Gn(ae,de,G){const Me=ae._root;return vi(Me,de?de._root:null,G,[Me.value])}function $n(ae,de,G){return(zt(de)??G).get(ae)}function vi(ae,de,G,Me,Ge={canDeactivateChecks:[],canActivateChecks:[]}){const mt=Mt(de);return ae.children.forEach(Rt=>{(function nn(ae,de,G,Me,Ge={canDeactivateChecks:[],canActivateChecks:[]}){const mt=ae.value,Rt=de?de.value:null,Ut=G?G.getContext(ae.value.outlet):null;if(Rt&&mt.routeConfig===Rt.routeConfig){const qt=function Un(ae,de,G){if("function"==typeof G)return G(ae,de);switch(G){case"pathParamsChange":return!c(ae.url,de.url);case"pathParamsOrQueryParamsChange":return!c(ae.url,de.url)||!X(ae.queryParams,de.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!xi(ae,de)||!X(ae.queryParams,de.queryParams);default:return!xi(ae,de)}}(Rt,mt,mt.routeConfig.runGuardsAndResolvers);qt?Ge.canActivateChecks.push(new Kn(Me)):(mt.data=Rt.data,mt._resolvedData=Rt._resolvedData),vi(ae,de,mt.component?Ut?Ut.children:null:G,Me,Ge),qt&&Ut&&Ut.outlet&&Ut.outlet.isActivated&&Ge.canDeactivateChecks.push(new ti(Ut.outlet.component,Rt))}else Rt&&Ki(de,Ut,Ge),Ge.canActivateChecks.push(new Kn(Me)),vi(ae,null,mt.component?Ut?Ut.children:null:G,Me,Ge)})(Rt,mt[Rt.value.outlet],G,Me.concat([Rt.value]),Ge),delete mt[Rt.value.outlet]}),Se(mt,(Rt,Ut)=>Ki(Rt,G.getContext(Ut),Ge)),Ge}function Ki(ae,de,G){const Me=Mt(ae),Ge=ae.value;Se(Me,(mt,Rt)=>{Ki(mt,Ge.component?de?de.children.getContext(Rt):null:de,G)}),G.canDeactivateChecks.push(new ti(Ge.component&&de&&de.outlet&&de.outlet.isActivated?de.outlet.component:null,Ge))}function ji(ae){return"function"==typeof ae}function _n(ae){return ae instanceof w.K||"EmptyError"===ae?.name}const hi=Symbol("INITIAL_VALUE");function ii(){return(0,ve.w)(ae=>(0,L.a)(ae.map(de=>de.pipe((0,De.q)(1),(0,he.O)(hi)))).pipe((0,ge.U)(de=>{for(const G of de)if(!0!==G){if(G===hi)return hi;if(!1===G||G instanceof o)return G}return!0}),(0,W.h)(de=>de!==hi),(0,De.q)(1)))}function Xa(ae){return(0,te.z)((0,le.b)(de=>{if(Ze(de))throw Wt(0,de)}),(0,ge.U)(de=>!0===de))}const ta={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function ns(ae,de,G,Me,Ge){const mt=na(ae,de,G);return mt.matched?function ts(ae,de,G,Me){const Ge=de.canMatch;if(!Ge||0===Ge.length)return(0,R.of)(!0);const mt=Ge.map(Rt=>{const Ut=ae.get(Rt),qt=function Ie(ae){return ae&&ji(ae.canMatch)}(Ut)?Ut.canMatch(de,G):Ut(de,G);return Ne(qt)});return(0,R.of)(mt).pipe(ii(),Xa())}(Me=Fi(de,Me),de,G).pipe((0,ge.U)(Rt=>!0===Rt?mt:{...ta})):(0,R.of)(mt)}function na(ae,de,G){var Me;if(""===de.path)return"full"===de.pathMatch&&(ae.hasChildren()||G.length>0)?{...ta}:{matched:!0,consumedSegments:[],remainingSegments:G,parameters:{},positionalParamSegments:{}};const mt=(de.matcher||tt)(G,ae,de);if(!mt)return{...ta};const Rt={};Se(mt.posParams,(qt,un)=>{Rt[un]=qt.path});const Ut=mt.consumed.length>0?{...Rt,...mt.consumed[mt.consumed.length-1].parameters}:Rt;return{matched:!0,consumedSegments:mt.consumed,remainingSegments:G.slice(mt.consumed.length),parameters:Ut,positionalParamSegments:null!==(Me=mt.posParams)&&void 0!==Me?Me:{}}}function Yr(ae,de,G,Me,Ge="corrected"){if(G.length>0&&function Do(ae,de,G){return G.some(Me=>Va(ae,de,Me)&&Bt(Me)!==ot)}(ae,G,Me)){const Rt=new s(de,function is(ae,de,G,Me){const Ge={};Ge[ot]=Me,Me._sourceSegment=ae,Me._segmentIndexShift=de.length;for(const mt of G)if(""===mt.path&&Bt(mt)!==ot){const Rt=new s([],{});Rt._sourceSegment=ae,Rt._segmentIndexShift=de.length,Ge[Bt(mt)]=Rt}return Ge}(ae,de,Me,new s(G,ae.children)));return Rt._sourceSegment=ae,Rt._segmentIndexShift=de.length,{segmentGroup:Rt,slicedSegments:[]}}if(0===G.length&&function rs(ae,de,G){return G.some(Me=>Va(ae,de,Me))}(ae,G,Me)){const Rt=new s(ae.segments,function ka(ae,de,G,Me,Ge,mt){const Rt={};for(const Ut of Me)if(Va(ae,G,Ut)&&!Ge[Bt(Ut)]){const qt=new s([],{});qt._sourceSegment=ae,qt._segmentIndexShift="legacy"===mt?ae.segments.length:de.length,Rt[Bt(Ut)]=qt}return{...Ge,...Rt}}(ae,de,G,Me,ae.children,Ge));return Rt._sourceSegment=ae,Rt._segmentIndexShift=de.length,{segmentGroup:Rt,slicedSegments:G}}const mt=new s(ae.segments,ae.children);return mt._sourceSegment=ae,mt._segmentIndexShift=de.length,{segmentGroup:mt,slicedSegments:G}}function Va(ae,de,G){return(!(ae.hasChildren()||de.length>0)||"full"!==G.pathMatch)&&""===G.path}function eo(ae,de,G,Me){return!!(Bt(ae)===Me||Me!==ot&&Va(de,G,ae))&&("**"===ae.path||na(de,ae,G).matched)}function Qs(ae,de,G){return 0===de.length&&!ae.children[G]}const Hi=!1;class wr{constructor(de){this.segmentGroup=de||null}}class _i{constructor(de){this.urlTree=de}}function qr(ae){return(0,z._)(new wr(ae))}function Ro(ae){return(0,z._)(new _i(ae))}class el{constructor(de,G,Me,Ge,mt){this.injector=de,this.configLoader=G,this.urlSerializer=Me,this.urlTree=Ge,this.config=mt,this.allowRedirects=!0}apply(){const de=Yr(this.urlTree.root,[],[],this.config).segmentGroup,G=new s(de.segments,de.children);return this.expandSegmentGroup(this.injector,this.config,G,ot).pipe((0,ge.U)(mt=>this.createUrlTree(Tt(mt),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,N.K)(mt=>{if(mt instanceof _i)return this.allowRedirects=!1,this.match(mt.urlTree);throw mt instanceof wr?this.noMatchError(mt):mt}))}match(de){return this.expandSegmentGroup(this.injector,this.config,de.root,ot).pipe((0,ge.U)(Ge=>this.createUrlTree(Tt(Ge),de.queryParams,de.fragment))).pipe((0,N.K)(Ge=>{throw Ge instanceof wr?this.noMatchError(Ge):Ge}))}noMatchError(de){return new e.vHH(4002,Hi)}createUrlTree(de,G,Me){const Ge=Cn(de);return new o(Ge,G,Me)}expandSegmentGroup(de,G,Me,Ge){return 0===Me.segments.length&&Me.hasChildren()?this.expandChildren(de,G,Me).pipe((0,ge.U)(mt=>new s([],mt))):this.expandSegment(de,Me,G,Me.segments,Ge,!0)}expandChildren(de,G,Me){const Ge=[];for(const mt of Object.keys(Me.children))"primary"===mt?Ge.unshift(mt):Ge.push(mt);return(0,v.D)(Ge).pipe((0,se.b)(mt=>{const Rt=Me.children[mt],Ut=Qt(G,mt);return this.expandSegmentGroup(de,Ut,Rt,mt).pipe((0,ge.U)(qt=>({segment:qt,outlet:mt})))}),T((mt,Rt)=>(mt[Rt.outlet]=Rt.segment,mt),{}),Ee())}expandSegment(de,G,Me,Ge,mt,Rt){return(0,v.D)(Me).pipe((0,se.b)(Ut=>this.expandSegmentAgainstRoute(de,G,Me,Ut,Ge,mt,Rt).pipe((0,N.K)(un=>{if(un instanceof wr)return(0,R.of)(null);throw un}))),(0,Be.P)(Ut=>!!Ut),(0,N.K)((Ut,qt)=>{if(_n(Ut))return Qs(G,Ge,mt)?(0,R.of)(new s([],{})):qr(G);throw Ut}))}expandSegmentAgainstRoute(de,G,Me,Ge,mt,Rt,Ut){return eo(Ge,G,mt,Rt)?void 0===Ge.redirectTo?this.matchSegmentAgainstRoute(de,G,Ge,mt,Rt):Ut&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(de,G,Me,Ge,mt,Rt):qr(G):qr(G)}expandSegmentAgainstRouteUsingRedirect(de,G,Me,Ge,mt,Rt){return"**"===Ge.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(de,Me,Ge,Rt):this.expandRegularSegmentAgainstRouteUsingRedirect(de,G,Me,Ge,mt,Rt)}expandWildCardWithParamsAgainstRouteUsingRedirect(de,G,Me,Ge){const mt=this.applyRedirectCommands([],Me.redirectTo,{});return Me.redirectTo.startsWith("/")?Ro(mt):this.lineralizeSegments(Me,mt).pipe((0,Ye.z)(Rt=>{const Ut=new s(Rt,{});return this.expandSegment(de,Ut,G,Rt,Ge,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(de,G,Me,Ge,mt,Rt){const{matched:Ut,consumedSegments:qt,remainingSegments:un,positionalParamSegments:En}=na(G,Ge,mt);if(!Ut)return qr(G);const hn=this.applyRedirectCommands(qt,Ge.redirectTo,En);return Ge.redirectTo.startsWith("/")?Ro(hn):this.lineralizeSegments(Ge,hn).pipe((0,Ye.z)(Dn=>this.expandSegment(de,G,Me,Dn.concat(un),Rt,!1)))}matchSegmentAgainstRoute(de,G,Me,Ge,mt){return"**"===Me.path?(de=Fi(Me,de),Me.loadChildren?(Me._loadedRoutes?(0,R.of)({routes:Me._loadedRoutes,injector:Me._loadedInjector}):this.configLoader.loadChildren(de,Me)).pipe((0,ge.U)(Ut=>(Me._loadedRoutes=Ut.routes,Me._loadedInjector=Ut.injector,new s(Ge,{})))):(0,R.of)(new s(Ge,{}))):ns(G,Me,Ge,de).pipe((0,ve.w)(({matched:Rt,consumedSegments:Ut,remainingSegments:qt})=>{var un;return Rt?(de=null!==(un=Me._injector)&&void 0!==un?un:de,this.getChildConfig(de,Me,Ge).pipe((0,Ye.z)(hn=>{var Dn;const pi=null!==(Dn=hn.injector)&&void 0!==Dn?Dn:de,Li=hn.routes,{segmentGroup:rr,slicedSegments:Mr}=Yr(G,Ut,qt,Li),xr=new s(rr.segments,rr.children);if(0===Mr.length&&xr.hasChildren())return this.expandChildren(pi,Li,xr).pipe((0,ge.U)($r=>new s(Ut,$r)));if(0===Li.length&&0===Mr.length)return(0,R.of)(new s(Ut,{}));const sa=Bt(Me)===mt;return this.expandSegment(pi,xr,Li,Mr,sa?ot:mt,!0).pipe((0,ge.U)(Mi=>new s(Ut.concat(Mi.segments),Mi.children)))}))):qr(G)}))}getChildConfig(de,G,Me){return G.children?(0,R.of)({routes:G.children,injector:de}):G.loadChildren?void 0!==G._loadedRoutes?(0,R.of)({routes:G._loadedRoutes,injector:G._loadedInjector}):function xo(ae,de,G,Me){const Ge=de.canLoad;if(void 0===Ge||0===Ge.length)return(0,R.of)(!0);const mt=Ge.map(Rt=>{const Ut=ae.get(Rt),qt=function Tr(ae){return ae&&ji(ae.canLoad)}(Ut)?Ut.canLoad(de,G):Ut(de,G);return Ne(qt)});return(0,R.of)(mt).pipe(ii(),Xa())}(de,G,Me).pipe((0,Ye.z)(Ge=>Ge?this.configLoader.loadChildren(de,G).pipe((0,le.b)(mt=>{G._loadedRoutes=mt.routes,G._loadedInjector=mt.injector})):function $s(ae){return(0,z._)(dn(Hi,3))}())):(0,R.of)({routes:[],injector:de})}lineralizeSegments(de,G){let Me=[],Ge=G.root;for(;;){if(Me=Me.concat(Ge.segments),0===Ge.numberOfChildren)return(0,R.of)(Me);if(Ge.numberOfChildren>1||!Ge.children[ot])return(0,z._)(new e.vHH(4e3,Hi));Ge=Ge.children[ot]}}applyRedirectCommands(de,G,Me){return this.applyRedirectCreateUrlTree(G,this.urlSerializer.parse(G),de,Me)}applyRedirectCreateUrlTree(de,G,Me,Ge){const mt=this.createSegmentGroup(de,G.root,Me,Ge);return new o(mt,this.createQueryParams(G.queryParams,this.urlTree.queryParams),G.fragment)}createQueryParams(de,G){const Me={};return Se(de,(Ge,mt)=>{if("string"==typeof Ge&&Ge.startsWith(":")){const Ut=Ge.substring(1);Me[mt]=G[Ut]}else Me[mt]=Ge}),Me}createSegmentGroup(de,G,Me,Ge){const mt=this.createSegments(de,G.segments,Me,Ge);let Rt={};return Se(G.children,(Ut,qt)=>{Rt[qt]=this.createSegmentGroup(de,Ut,Me,Ge)}),new s(mt,Rt)}createSegments(de,G,Me,Ge){return G.map(mt=>mt.path.startsWith(":")?this.findPosParam(de,mt,Ge):this.findOrReturn(mt,Me))}findPosParam(de,G,Me){const Ge=Me[G.path.substring(1)];if(!Ge)throw new e.vHH(4001,Hi);return Ge}findOrReturn(de,G){let Me=0;for(const Ge of G){if(Ge.path===de.path)return G.splice(Me),Ge;Me++}return de}}class no{}class tl{constructor(de,G,Me,Ge,mt,Rt,Ut,qt){this.injector=de,this.rootComponentType=G,this.config=Me,this.urlTree=Ge,this.url=mt,this.paramsInheritanceStrategy=Rt,this.relativeLinkResolution=Ut,this.urlSerializer=qt}recognize(){const de=Yr(this.urlTree.root,[],[],this.config.filter(G=>void 0===G.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,de,ot).pipe((0,ge.U)(G=>{if(null===G)return null;const Me=new Bn([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},ot,this.rootComponentType,null,this.urlTree.root,-1,{}),Ge=new Ii(Me,G),mt=new Qn(this.url,Ge);return this.inheritParamsAndData(mt._root),mt}))}inheritParamsAndData(de){const G=de.value,Me=rn(G,this.paramsInheritanceStrategy);G.params=Object.freeze(Me.params),G.data=Object.freeze(Me.data),de.children.forEach(Ge=>this.inheritParamsAndData(Ge))}processSegmentGroup(de,G,Me,Ge){return 0===Me.segments.length&&Me.hasChildren()?this.processChildren(de,G,Me):this.processSegment(de,G,Me,Me.segments,Ge)}processChildren(de,G,Me){return(0,v.D)(Object.keys(Me.children)).pipe((0,se.b)(Ge=>{const mt=Me.children[Ge],Rt=Qt(G,Ge);return this.processSegmentGroup(de,Rt,mt,Ge)}),T((Ge,mt)=>Ge&&mt?(Ge.push(...mt),Ge):null),(0,k.o)(Ge=>null!==Ge),(0,ee.d)(null),Ee(),(0,ge.U)(Ge=>{if(null===Ge)return null;const mt=os(Ge);return function Vr(ae){ae.sort((de,G)=>de.value.outlet===ot?-1:G.value.outlet===ot?1:de.value.outlet.localeCompare(G.value.outlet))}(mt),mt}))}processSegment(de,G,Me,Ge,mt){return(0,v.D)(G).pipe((0,se.b)(Rt=>{var Ut;return this.processSegmentAgainstRoute(null!==(Ut=Rt._injector)&&void 0!==Ut?Ut:de,Rt,Me,Ge,mt)}),(0,Be.P)(Rt=>!!Rt),(0,N.K)(Rt=>{if(_n(Rt))return Qs(Me,Ge,mt)?(0,R.of)([]):(0,R.of)(null);throw Rt}))}processSegmentAgainstRoute(de,G,Me,Ge,mt){if(G.redirectTo||!eo(G,Me,Ge,mt))return(0,R.of)(null);let Rt;if("**"===G.path){var Ut,qt;const un=Ge.length>0?ye(Ge).parameters:{},En=ss(Me)+Ge.length,hn=new Bn(Ge,un,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,nl(G),Bt(G),null!==(Ut=null!==(qt=G.component)&&void 0!==qt?qt:G._loadedComponent)&&void 0!==Ut?Ut:null,G,ro(Me),En,hr(G),En);Rt=(0,R.of)({snapshot:hn,consumedSegments:[],remainingSegments:[]})}else Rt=ns(Me,G,Ge,de).pipe((0,ge.U)(({matched:un,consumedSegments:En,remainingSegments:hn,parameters:Dn})=>{var pi,Li;if(!un)return null;const rr=ss(Me)+En.length;return{snapshot:new Bn(En,Dn,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,nl(G),Bt(G),null!==(pi=null!==(Li=G.component)&&void 0!==Li?Li:G._loadedComponent)&&void 0!==pi?pi:null,G,ro(Me),rr,hr(G),rr),consumedSegments:En,remainingSegments:hn}}));return Rt.pipe((0,ve.w)(un=>{var En,hn;if(null===un)return(0,R.of)(null);const{snapshot:Dn,consumedSegments:pi,remainingSegments:Li}=un;de=null!==(En=G._injector)&&void 0!==En?En:de;const rr=null!==(hn=G._loadedInjector)&&void 0!==hn?hn:de,Mr=function Fa(ae){return ae.children?ae.children:ae.loadChildren?ae._loadedRoutes:[]}(G),{segmentGroup:xr,slicedSegments:sa}=Yr(Me,pi,Li,Mr.filter(Mi=>void 0===Mi.redirectTo),this.relativeLinkResolution);if(0===sa.length&&xr.hasChildren())return this.processChildren(rr,Mr,xr).pipe((0,ge.U)(Mi=>null===Mi?null:[new Ii(Dn,Mi)]));if(0===Mr.length&&0===sa.length)return(0,R.of)([new Ii(Dn,[])]);const Fr=Bt(G)===mt;return this.processSegment(rr,Mr,xr,sa,Fr?ot:mt).pipe((0,ge.U)(Mi=>null===Mi?null:[new Ii(Dn,Mi)]))}))}}function Po(ae){const de=ae.value.routeConfig;return de&&""===de.path&&void 0===de.redirectTo}function os(ae){const de=[],G=new Set;for(const Me of ae){if(!Po(Me)){de.push(Me);continue}const Ge=de.find(mt=>Me.value.routeConfig===mt.value.routeConfig);void 0!==Ge?(Ge.children.push(...Me.children),G.add(Ge)):de.push(Me)}for(const Me of G){const Ge=os(Me.children);de.push(new Ii(Me.value,Ge))}return de.filter(Me=>!G.has(Me))}function ro(ae){let de=ae;for(;de._sourceSegment;)de=de._sourceSegment;return de}function ss(ae){var de;let G=ae,Me=null!==(de=G._segmentIndexShift)&&void 0!==de?de:0;for(;G._sourceSegment;){var Ge;G=G._sourceSegment,Me+=null!==(Ge=G._segmentIndexShift)&&void 0!==Ge?Ge:0}return Me-1}function nl(ae){return ae.data||{}}function hr(ae){return ae.resolve||{}}const Jr=Symbol("RouteTitle");function cs(ae){return"string"==typeof ae.title||null===ae.title}function Sr(ae){return(0,ve.w)(de=>{const G=ae(de);return G?(0,v.D)(G).pipe((0,ge.U)(()=>de)):(0,R.of)(de)})}let lo=(()=>{class ae{buildTitle(G){let Me,Ge=G.root;for(;void 0!==Ge;){var mt;Me=null!==(mt=this.getResolvedTitleForRoute(Ge))&&void 0!==mt?mt:Me,Ge=Ge.children.find(Rt=>Rt.outlet===ot)}return Me}getResolvedTitleForRoute(G){return G.data[Jr]}}return ae.\u0275fac=function(G){return new(G||ae)},ae.\u0275prov=e.Yz7({token:ae,factory:function(){return(0,e.f3M)(Ca)},providedIn:"root"}),ae})(),Ca=(()=>{class ae extends lo{constructor(G){super(),this.title=G}updateTitle(G){const Me=this.buildTitle(G);void 0!==Me&&this.title.setTitle(Me)}}return ae.\u0275fac=function(G){return new(G||ae)(e.LFG(xe.Dx))},ae.\u0275prov=e.Yz7({token:ae,factory:ae.\u0275fac,providedIn:"root"}),ae})();class ds{}class ir extends class Oo{shouldDetach(de){return!1}store(de,G){}shouldAttach(de){return!1}retrieve(de){return null}shouldReuseRoute(de,G){return de.routeConfig===G.routeConfig}}{}const pr=new e.OlP("",{providedIn:"root",factory:()=>({})}),Qr=new e.OlP("ROUTES");let Za=(()=>{class ae{constructor(G,Me){this.injector=G,this.compiler=Me,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(G){if(this.componentLoaders.get(G))return this.componentLoaders.get(G);if(G._loadedComponent)return(0,R.of)(G._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(G);const Me=Ne(G.loadComponent()).pipe((0,le.b)(mt=>{this.onLoadEndListener&&this.onLoadEndListener(G),G._loadedComponent=mt}),(0,Z.x)(()=>{this.componentLoaders.delete(G)})),Ge=new D(Me,()=>new Te.x).pipe(b());return this.componentLoaders.set(G,Ge),Ge}loadChildren(G,Me){if(this.childrenLoaders.get(Me))return this.childrenLoaders.get(Me);if(Me._loadedRoutes)return(0,R.of)({routes:Me._loadedRoutes,injector:Me._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(Me);const mt=this.loadModuleFactoryOrRoutes(Me.loadChildren).pipe((0,ge.U)(Ut=>{this.onLoadEndListener&&this.onLoadEndListener(Me);let qt,un,En=!1;Array.isArray(Ut)?un=Ut:(qt=Ut.create(G).injector,un=Ae(qt.get(Qr,[],e.XFs.Self|e.XFs.Optional)));return{routes:un.map(Ct),injector:qt}}),(0,Z.x)(()=>{this.childrenLoaders.delete(Me)})),Rt=new D(mt,()=>new Te.x).pipe(b());return this.childrenLoaders.set(Me,Rt),Rt}loadModuleFactoryOrRoutes(G){return Ne(G()).pipe((0,Ye.z)(Me=>Me instanceof e.YKP||Array.isArray(Me)?(0,R.of)(Me):(0,v.D)(this.compiler.compileModuleAsync(Me))))}}return ae.\u0275fac=function(G){return new(G||ae)(e.LFG(e.zs3),e.LFG(e.Sil))},ae.\u0275prov=e.Yz7({token:ae,factory:ae.\u0275fac,providedIn:"root"}),ae})();class co{}class ra{shouldProcessUrl(de){return!0}extract(de){return de}merge(de,G){return de}}function il(ae){throw ae}function uo(ae,de,G){return de.parse("/")}const hs={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Ho={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function fs(){var ae,de;const G=(0,e.f3M)(J),Me=(0,e.f3M)(bi),Ge=(0,e.f3M)(pe.Ye),mt=(0,e.f3M)(e.zs3),Rt=(0,e.f3M)(e.Sil),Ut=null!==(ae=(0,e.f3M)(Qr,{optional:!0}))&&void 0!==ae?ae:[],qt=null!==(de=(0,e.f3M)(pr,{optional:!0}))&&void 0!==de?de:{},un=(0,e.f3M)(Ca),En=(0,e.f3M)(lo,{optional:!0}),hn=(0,e.f3M)(co,{optional:!0}),Dn=(0,e.f3M)(ds,{optional:!0}),pi=new Di(null,G,Me,Ge,mt,Rt,Ae(Ut));return hn&&(pi.urlHandlingStrategy=hn),Dn&&(pi.routeReuseStrategy=Dn),pi.titleStrategy=En??un,function ps(ae,de){ae.errorHandler&&(de.errorHandler=ae.errorHandler),ae.malformedUriErrorHandler&&(de.malformedUriErrorHandler=ae.malformedUriErrorHandler),ae.onSameUrlNavigation&&(de.onSameUrlNavigation=ae.onSameUrlNavigation),ae.paramsInheritanceStrategy&&(de.paramsInheritanceStrategy=ae.paramsInheritanceStrategy),ae.relativeLinkResolution&&(de.relativeLinkResolution=ae.relativeLinkResolution),ae.urlUpdateStrategy&&(de.urlUpdateStrategy=ae.urlUpdateStrategy),ae.canceledNavigationResolution&&(de.canceledNavigationResolution=ae.canceledNavigationResolution)}(qt,pi),pi}let Di=(()=>{class ae{constructor(G,Me,Ge,mt,Rt,Ut,qt){this.rootComponentType=G,this.urlSerializer=Me,this.rootContexts=Ge,this.location=mt,this.config=qt,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Te.x,this.errorHandler=il,this.malformedUriErrorHandler=uo,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>(0,R.of)(void 0),this.urlHandlingStrategy=new ra,this.routeReuseStrategy=new ir,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=Rt.get(Za),this.configLoader.onLoadEndListener=Dn=>this.triggerEvent(new lr(Dn)),this.configLoader.onLoadStartListener=Dn=>this.triggerEvent(new sr(Dn)),this.ngModule=Rt.get(e.h0i),this.console=Rt.get(e.c2e);const hn=Rt.get(e.R0b);this.isNgZoneEnabled=hn instanceof e.R0b&&e.R0b.isInAngularZone(),this.resetConfig(qt),this.currentUrlTree=function fe(){return new o(new s([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=ct(this.currentUrlTree,this.rootComponentType),this.transitions=new B.X({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var G;return null===(G=this.location.getState())||void 0===G?void 0:G.\u0275routerPageId}setupNavigations(G){const Me=this.events;return G.pipe((0,W.h)(Ge=>0!==Ge.id),(0,ge.U)(Ge=>({...Ge,extractedUrl:this.urlHandlingStrategy.extract(Ge.rawUrl)})),(0,ve.w)(Ge=>{let mt=!1,Rt=!1;return(0,R.of)(Ge).pipe((0,le.b)(Ut=>{this.currentNavigation={id:Ut.id,initialUrl:Ut.rawUrl,extractedUrl:Ut.extractedUrl,trigger:Ut.source,extras:Ut.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,ve.w)(Ut=>{const qt=this.browserUrlTree.toString(),un=!this.navigated||Ut.extractedUrl.toString()!==qt||qt!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||un)&&this.urlHandlingStrategy.shouldProcessUrl(Ut.rawUrl))return Lo(Ut.source)&&(this.browserUrlTree=Ut.extractedUrl),(0,R.of)(Ut).pipe((0,ve.w)(hn=>{const Dn=this.transitions.getValue();return Me.next(new zi(hn.id,this.serializeUrl(hn.extractedUrl),hn.source,hn.restoredState)),Dn!==this.transitions.getValue()?ie.E:Promise.resolve(hn)}),function to(ae,de,G,Me){return(0,ve.w)(Ge=>function Xs(ae,de,G,Me,Ge){return new el(ae,de,G,Me,Ge).apply()}(ae,de,G,Ge.extractedUrl,Me).pipe((0,ge.U)(mt=>({...Ge,urlAfterRedirects:mt}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,le.b)(hn=>{this.currentNavigation={...this.currentNavigation,finalUrl:hn.urlAfterRedirects},Ge.urlAfterRedirects=hn.urlAfterRedirects}),function _a(ae,de,G,Me,Ge,mt){return(0,Ye.z)(Rt=>function as(ae,de,G,Me,Ge,mt,Rt="emptyOnly",Ut="legacy"){return new tl(ae,de,G,Me,Ge,Rt,Ut,mt).recognize().pipe((0,ve.w)(qt=>null===qt?function io(ae){return new A.y(de=>de.error(ae))}(new no):(0,R.of)(qt)))}(ae,de,G,Rt.urlAfterRedirects,Me.serialize(Rt.urlAfterRedirects),Me,Ge,mt).pipe((0,ge.U)(Ut=>({...Rt,targetSnapshot:Ut}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,le.b)(hn=>{if(Ge.targetSnapshot=hn.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!hn.extras.skipLocationChange){const pi=this.urlHandlingStrategy.merge(hn.urlAfterRedirects,hn.rawUrl);this.setBrowserUrl(pi,hn)}this.browserUrlTree=hn.urlAfterRedirects}const Dn=new tr(hn.id,this.serializeUrl(hn.extractedUrl),this.serializeUrl(hn.urlAfterRedirects),hn.targetSnapshot);Me.next(Dn)}));if(un&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:Dn,extractedUrl:pi,source:Li,restoredState:rr,extras:Mr}=Ut,xr=new zi(Dn,this.serializeUrl(pi),Li,rr);Me.next(xr);const sa=ct(pi,this.rootComponentType).snapshot;return Ge={...Ut,targetSnapshot:sa,urlAfterRedirects:pi,extras:{...Mr,skipLocationChange:!1,replaceUrl:!1}},(0,R.of)(Ge)}return this.rawUrlTree=Ut.rawUrl,Ut.resolve(null),ie.E}),(0,le.b)(Ut=>{const qt=new Vi(Ut.id,this.serializeUrl(Ut.extractedUrl),this.serializeUrl(Ut.urlAfterRedirects),Ut.targetSnapshot);this.triggerEvent(qt)}),(0,ge.U)(Ut=>Ge={...Ut,guards:Gn(Ut.targetSnapshot,Ut.currentSnapshot,this.rootContexts)}),function $i(ae,de){return(0,Ye.z)(G=>{const{targetSnapshot:Me,currentSnapshot:Ge,guards:{canActivateChecks:mt,canDeactivateChecks:Rt}}=G;return 0===Rt.length&&0===mt.length?(0,R.of)({...G,guardsResult:!0}):function ga(ae,de,G,Me){return(0,v.D)(ae).pipe((0,Ye.z)(Ge=>function Js(ae,de,G,Me,Ge){const mt=de&&de.routeConfig?de.routeConfig.canDeactivate:null;if(!mt||0===mt.length)return(0,R.of)(!0);const Rt=mt.map(Ut=>{const qt=$n(Ut,de,Ge);return Ne(function Ve(ae){return ae&&ji(ae.canDeactivate)}(qt)?qt.canDeactivate(ae,de,G,Me):qt(ae,de,G,Me)).pipe((0,Be.P)())});return(0,R.of)(Rt).pipe(ii())}(Ge.component,Ge.route,G,de,Me)),(0,Be.P)(Ge=>!0!==Ge,!0))}(Rt,Me,Ge,ae).pipe((0,Ye.z)(Ut=>Ut&&function ci(ae){return"boolean"==typeof ae}(Ut)?function ur(ae,de,G,Me){return(0,v.D)(de).pipe((0,se.b)(Ge=>(0,O.z)(function Mo(ae,de){return null!==ae&&de&&de(new Ci(ae)),(0,R.of)(!0)}(Ge.route.parent,Me),function yr(ae,de){return null!==ae&&de&&de(new Ur(ae)),(0,R.of)(!0)}(Ge.route,Me),function qs(ae,de,G){const Me=de[de.length-1],mt=de.slice(0,de.length-1).reverse().map(Rt=>function Ti(ae){const de=ae.routeConfig?ae.routeConfig.canActivateChild:null;return de&&0!==de.length?{node:ae,guards:de}:null}(Rt)).filter(Rt=>null!==Rt).map(Rt=>(0,q.P)(()=>{const Ut=Rt.guards.map(qt=>{const un=$n(qt,Rt.node,G);return Ne(function Qe(ae){return ae&&ji(ae.canActivateChild)}(un)?un.canActivateChild(Me,ae):un(Me,ae)).pipe((0,Be.P)())});return(0,R.of)(Ut).pipe(ii())}));return(0,R.of)(mt).pipe(ii())}(ae,Ge.path,G),function Na(ae,de,G){const Me=de.routeConfig?de.routeConfig.canActivate:null;if(!Me||0===Me.length)return(0,R.of)(!0);const Ge=Me.map(mt=>(0,q.P)(()=>{const Rt=$n(mt,de,G);return Ne(function Lr(ae){return ae&&ji(ae.canActivate)}(Rt)?Rt.canActivate(de,ae):Rt(de,ae)).pipe((0,Be.P)())}));return(0,R.of)(Ge).pipe(ii())}(ae,Ge.route,G))),(0,Be.P)(Ge=>!0!==Ge,!0))}(Me,mt,ae,de):(0,R.of)(Ut)),(0,ge.U)(Ut=>({...G,guardsResult:Ut})))})}(this.ngModule.injector,Ut=>this.triggerEvent(Ut)),(0,le.b)(Ut=>{if(Ge.guardsResult=Ut.guardsResult,Ze(Ut.guardsResult))throw Wt(0,Ut.guardsResult);const qt=new li(Ut.id,this.serializeUrl(Ut.extractedUrl),this.serializeUrl(Ut.urlAfterRedirects),Ut.targetSnapshot,!!Ut.guardsResult);this.triggerEvent(qt)}),(0,W.h)(Ut=>!!Ut.guardsResult||(this.restoreHistory(Ut),this.cancelNavigationTransition(Ut,"",3),!1)),Sr(Ut=>{if(Ut.guards.canActivateChecks.length)return(0,R.of)(Ut).pipe((0,le.b)(qt=>{const un=new or(qt.id,this.serializeUrl(qt.extractedUrl),this.serializeUrl(qt.urlAfterRedirects),qt.targetSnapshot);this.triggerEvent(un)}),(0,ve.w)(qt=>{let un=!1;return(0,R.of)(qt).pipe(function ao(ae,de){return(0,Ye.z)(G=>{const{targetSnapshot:Me,guards:{canActivateChecks:Ge}}=G;if(!Ge.length)return(0,R.of)(G);let mt=0;return(0,v.D)(Ge).pipe((0,se.b)(Rt=>function oo(ae,de,G,Me){const Ge=ae.routeConfig,mt=ae._resolve;return void 0!==Ge?.title&&!cs(Ge)&&(mt[Jr]=Ge.title),function ls(ae,de,G,Me){const Ge=function so(ae){return[...Object.keys(ae),...Object.getOwnPropertySymbols(ae)]}(ae);if(0===Ge.length)return(0,R.of)({});const mt={};return(0,v.D)(Ge).pipe((0,Ye.z)(Rt=>function Aa(ae,de,G,Me){const Ge=$n(ae,de,Me);return Ne(Ge.resolve?Ge.resolve(de,G):Ge(de,G))}(ae[Rt],de,G,Me).pipe((0,Be.P)(),(0,le.b)(Ut=>{mt[Rt]=Ut}))),F(1),(0,be.h)(mt),(0,N.K)(Rt=>_n(Rt)?ie.E:(0,z._)(Rt)))}(mt,ae,de,Me).pipe((0,ge.U)(Rt=>(ae._resolvedData=Rt,ae.data=rn(ae,G).resolve,Ge&&cs(Ge)&&(ae.data[Jr]=Ge.title),null)))}(Rt.route,Me,ae,de)),(0,le.b)(()=>mt++),F(1),(0,Ye.z)(Rt=>mt===Ge.length?(0,R.of)(G):ie.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,le.b)({next:()=>un=!0,complete:()=>{un||(this.restoreHistory(qt),this.cancelNavigationTransition(qt,"",2))}}))}),(0,le.b)(qt=>{const un=new Ir(qt.id,this.serializeUrl(qt.extractedUrl),this.serializeUrl(qt.urlAfterRedirects),qt.targetSnapshot);this.triggerEvent(un)}))}),Sr(Ut=>{const qt=un=>{var En;const hn=[];null!==(En=un.routeConfig)&&void 0!==En&&En.loadComponent&&!un.routeConfig._loadedComponent&&hn.push(this.configLoader.loadComponent(un.routeConfig).pipe((0,le.b)(Dn=>{un.component=Dn}),(0,ge.U)(()=>{})));for(const Dn of un.children)hn.push(...qt(Dn));return hn};return(0,L.a)(qt(Ut.targetSnapshot.root)).pipe((0,ee.d)(),(0,De.q)(1))}),Sr(()=>this.afterPreactivation()),(0,ge.U)(Ut=>{const qt=function qi(ae,de,G){const Me=lt(ae,de._root,G?G._root:void 0);return new en(Me,de)}(this.routeReuseStrategy,Ut.targetSnapshot,Ut.currentRouterState);return Ge={...Ut,targetRouterState:qt}}),(0,le.b)(Ut=>{this.currentUrlTree=Ut.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(Ut.urlAfterRedirects,Ut.rawUrl),this.routerState=Ut.targetRouterState,"deferred"===this.urlUpdateStrategy&&(Ut.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,Ut),this.browserUrlTree=Ut.urlAfterRedirects)}),((ae,de,G)=>(0,ge.U)(Me=>(new ni(de,Me.targetRouterState,Me.currentRouterState,G).activate(ae),Me)))(this.rootContexts,this.routeReuseStrategy,Ut=>this.triggerEvent(Ut)),(0,le.b)({next(){mt=!0},complete(){mt=!0}}),(0,Z.x)(()=>{var Ut;mt||Rt||this.cancelNavigationTransition(Ge,"",1),(null===(Ut=this.currentNavigation)||void 0===Ut?void 0:Ut.id)===Ge.id&&(this.currentNavigation=null)}),(0,N.K)(Ut=>{if(Rt=!0,Yn(Ut)){An(Ut)||(this.navigated=!0,this.restoreHistory(Ge,!0));const un=new si(Ge.id,this.serializeUrl(Ge.extractedUrl),Ut.message,Ut.cancellationCode);if(Me.next(un),An(Ut)){const En=this.urlHandlingStrategy.merge(Ut.url,this.rawUrlTree),hn={skipLocationChange:Ge.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Lo(Ge.source)};this.scheduleNavigation(En,"imperative",null,hn,{resolve:Ge.resolve,reject:Ge.reject,promise:Ge.promise})}else Ge.resolve(!1)}else{var qt;this.restoreHistory(Ge,!0);const un=new Yi(Ge.id,this.serializeUrl(Ge.extractedUrl),Ut,null!==(qt=Ge.targetSnapshot)&&void 0!==qt?qt:void 0);Me.next(un);try{Ge.resolve(this.errorHandler(Ut))}catch(En){Ge.reject(En)}}return ie.E}))}))}resetRootComponentType(G){this.rootComponentType=G,this.routerState.root.component=this.rootComponentType}setTransition(G){this.transitions.next({...this.transitions.value,...G})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(G=>{const Me="popstate"===G.type?"popstate":"hashchange";"popstate"===Me&&setTimeout(()=>{var Ge;const mt={replaceUrl:!0},Rt=null!==(Ge=G.state)&&void 0!==Ge&&Ge.navigationId?G.state:null;if(Rt){const qt={...Rt};delete qt.navigationId,delete qt.\u0275routerPageId,0!==Object.keys(qt).length&&(mt.state=qt)}const Ut=this.parseUrl(G.url);this.scheduleNavigation(Ut,Me,Rt,mt)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(G){this.events.next(G)}resetConfig(G){this.config=G.map(Ct),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(G,Me={}){const{relativeTo:Ge,queryParams:mt,fragment:Rt,queryParamsHandling:Ut,preserveFragment:qt}=Me,un=Ge||this.routerState.root,En=qt?this.currentUrlTree.fragment:Rt;let hn=null;switch(Ut){case"merge":hn={...this.currentUrlTree.queryParams,...mt};break;case"preserve":hn=this.currentUrlTree.queryParams;break;default:hn=mt||null}return null!==hn&&(hn=this.removeEmptyProps(hn)),gn(un,this.currentUrlTree,G,hn,En??null)}navigateByUrl(G,Me={skipLocationChange:!1}){const Ge=Ze(G)?G:this.parseUrl(G),mt=this.urlHandlingStrategy.merge(Ge,this.rawUrlTree);return this.scheduleNavigation(mt,"imperative",null,Me)}navigate(G,Me={skipLocationChange:!1}){return function Ga(ae){for(let de=0;de{const mt=G[Ge];return null!=mt&&(Me[Ge]=mt),Me},{})}processNavigations(){this.navigations.subscribe(G=>{var Me;this.navigated=!0,this.lastSuccessfulId=G.id,this.currentPageId=G.targetPageId,this.events.next(new qn(G.id,this.serializeUrl(G.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,null===(Me=this.titleStrategy)||void 0===Me||Me.updateTitle(this.routerState.snapshot),G.resolve(!0)},G=>{this.console.warn(`Unhandled Navigation Error: ${G}`)})}scheduleNavigation(G,Me,Ge,mt,Rt){if(this.disposed)return Promise.resolve(!1);let Ut,qt,un;Rt?(Ut=Rt.resolve,qt=Rt.reject,un=Rt.promise):un=new Promise((Li,rr)=>{Ut=Li,qt=rr});const En=++this.navigationId;let hn;if("computed"===this.canceledNavigationResolution)if(0===this.currentPageId&&(Ge=this.location.getState()),Ge&&Ge.\u0275routerPageId)hn=Ge.\u0275routerPageId;else if(mt.replaceUrl||mt.skipLocationChange){var Dn;hn=null!==(Dn=this.browserPageId)&&void 0!==Dn?Dn:0}else{var pi;hn=(null!==(pi=this.browserPageId)&&void 0!==pi?pi:0)+1}else hn=0;return this.setTransition({id:En,targetPageId:hn,source:Me,restoredState:Ge,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:G,extras:mt,resolve:Ut,reject:qt,promise:un,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),un.catch(Li=>Promise.reject(Li))}setBrowserUrl(G,Me){const Ge=this.urlSerializer.serialize(G),mt={...Me.extras.state,...this.generateNgRouterState(Me.id,Me.targetPageId)};this.location.isCurrentPathEqualTo(Ge)||Me.extras.replaceUrl?this.location.replaceState(Ge,"",mt):this.location.go(Ge,"",mt)}restoreHistory(G,Me=!1){if("computed"===this.canceledNavigationResolution){var Ge,mt;const Rt=this.currentPageId-G.targetPageId;"popstate"!==G.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(Ge=this.currentNavigation)||void 0===Ge?void 0:Ge.finalUrl)||0===Rt?this.currentUrlTree===(null===(mt=this.currentNavigation)||void 0===mt?void 0:mt.finalUrl)&&0===Rt&&(this.resetState(G),this.browserUrlTree=G.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(Rt)}else"replace"===this.canceledNavigationResolution&&(Me&&this.resetState(G),this.resetUrlToCurrentUrlTree())}resetState(G){this.routerState=G.currentRouterState,this.currentUrlTree=G.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,G.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(G,Me,Ge){const mt=new si(G.id,this.serializeUrl(G.extractedUrl),Me,Ge);this.triggerEvent(mt),G.resolve(!1)}generateNgRouterState(G,Me){return"computed"===this.canceledNavigationResolution?{navigationId:G,\u0275routerPageId:Me}:{navigationId:G}}}return ae.\u0275fac=function(G){e.$Z()},ae.\u0275prov=e.Yz7({token:ae,factory:function(){return fs()},providedIn:"root"}),ae})();function Lo(ae){return"imperative"!==ae}let Kr=(()=>{class ae{constructor(G,Me,Ge,mt,Rt){this.router=G,this.route=Me,this.tabIndexAttribute=Ge,this.renderer=mt,this.el=Rt,this.commands=null,this.onChanges=new Te.x,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(G){if(null!=this.tabIndexAttribute)return;const Me=this.renderer,Ge=this.el.nativeElement;null!==G?Me.setAttribute(Ge,"tabindex",G):Me.removeAttribute(Ge,"tabindex")}ngOnChanges(G){this.onChanges.next(this)}set routerLink(G){null!=G?(this.commands=Array.isArray(G)?G:[G],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const G={skipLocationChange:(0,e.D6c)(this.skipLocationChange),replaceUrl:(0,e.D6c)(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,G),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:(0,e.D6c)(this.preserveFragment)})}}return ae.\u0275fac=function(G){return new(G||ae)(e.Y36(Di),e.Y36(Zt),e.$8M("tabindex"),e.Y36(e.Qsj),e.Y36(e.SBq))},ae.\u0275dir=e.lG2({type:ae,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(G,Me){1&G&&e.NdJ("click",function(){return Me.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[e.TTD]}),ae})(),va=(()=>{class ae{constructor(G,Me,Ge){this.router=G,this.route=Me,this.locationStrategy=Ge,this.commands=null,this.href=null,this.onChanges=new Te.x,this.subscription=G.events.subscribe(mt=>{mt instanceof qn&&this.updateTargetUrlAndHref()})}set routerLink(G){this.commands=null!=G?Array.isArray(G)?G:[G]:null}ngOnChanges(G){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(G,Me,Ge,mt,Rt){if(0!==G||Me||Ge||mt||Rt||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const Ut={skipLocationChange:(0,e.D6c)(this.skipLocationChange),replaceUrl:(0,e.D6c)(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,Ut),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:(0,e.D6c)(this.preserveFragment)})}}return ae.\u0275fac=function(G){return new(G||ae)(e.Y36(Di),e.Y36(Zt),e.Y36(pe.S$))},ae.\u0275dir=e.lG2({type:ae,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(G,Me){1&G&&e.NdJ("click",function(mt){return Me.onClick(mt.button,mt.ctrlKey,mt.shiftKey,mt.altKey,mt.metaKey)}),2&G&&e.uIk("target",Me.target)("href",Me.href,e.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[e.TTD]}),ae})();class Bo{}let rl=(()=>{class ae{preload(G,Me){return(0,R.of)(null)}}return ae.\u0275fac=function(G){return new(G||ae)},ae.\u0275prov=e.Yz7({token:ae,factory:ae.\u0275fac,providedIn:"root"}),ae})(),Uo=(()=>{class ae{constructor(G,Me,Ge,mt,Rt){this.router=G,this.injector=Ge,this.preloadingStrategy=mt,this.loader=Rt}setUpPreloading(){this.subscription=this.router.events.pipe((0,W.h)(G=>G instanceof qn),(0,se.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(G,Me){const Ge=[];for(const qt of Me){var mt,Rt;qt.providers&&!qt._injector&&(qt._injector=(0,e.MMx)(qt.providers,G,`Route: ${qt.path}`));const un=null!==(mt=qt._injector)&&void 0!==mt?mt:G,En=null!==(Rt=qt._loadedInjector)&&void 0!==Rt?Rt:un;if(qt.loadChildren&&!qt._loadedRoutes&&void 0===qt.canLoad||qt.loadComponent&&!qt._loadedComponent)Ge.push(this.preloadConfig(un,qt));else if(qt.children||qt._loadedRoutes){var Ut;Ge.push(this.processRoutes(En,null!==(Ut=qt.children)&&void 0!==Ut?Ut:qt._loadedRoutes))}}return(0,v.D)(Ge).pipe((0,ce.J)())}preloadConfig(G,Me){return this.preloadingStrategy.preload(Me,()=>{let Ge;Ge=Me.loadChildren&&void 0===Me.canLoad?this.loader.loadChildren(G,Me):(0,R.of)(null);const mt=Ge.pipe((0,Ye.z)(Rt=>{var Ut;return null===Rt?(0,R.of)(void 0):(Me._loadedRoutes=Rt.routes,Me._loadedInjector=Rt.injector,this.processRoutes(null!==(Ut=Rt.injector)&&void 0!==Ut?Ut:G,Rt.routes))}));if(Me.loadComponent&&!Me._loadedComponent){const Rt=this.loader.loadComponent(Me);return(0,v.D)([mt,Rt]).pipe((0,ce.J)())}return mt})}}return ae.\u0275fac=function(G){return new(G||ae)(e.LFG(Di),e.LFG(e.Sil),e.LFG(e.lqb),e.LFG(Bo),e.LFG(Za))},ae.\u0275prov=e.Yz7({token:ae,factory:ae.\u0275fac}),ae})();const ho=new e.OlP("");let Ta=(()=>{class ae{constructor(G,Me,Ge={}){this.router=G,this.viewportScroller=Me,this.options=Ge,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},Ge.scrollPositionRestoration=Ge.scrollPositionRestoration||"disabled",Ge.anchorScrolling=Ge.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(G=>{G instanceof zi?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=G.navigationTrigger,this.restoredId=G.restoredState?G.restoredState.navigationId:0):G instanceof qn&&(this.lastId=G.id,this.scheduleScrollEvent(G,this.router.parseUrl(G.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(G=>{G instanceof Or&&(G.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(G.position):G.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(G.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(G,Me){this.router.triggerEvent(new Or(G,"popstate"===this.lastSource?this.store[this.restoredId]:null,Me))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return ae.\u0275fac=function(G){e.$Z()},ae.\u0275prov=e.Yz7({token:ae,factory:ae.\u0275fac}),ae})();const po=new e.OlP("ROUTER_FORROOT_GUARD"),fo=new e.OlP(""),Wa=[pe.Ye,{provide:J,useClass:ht},{provide:Di,useFactory:fs},bi,{provide:Zt,useFactory:function Gc(ae){return ae.routerState.root},deps:[Di]},Za];function Ul(){return new e.PXZ("Router",Di)}let ai=(()=>{class ae{constructor(G){}static forRoot(G,Me){return{ngModule:ae,providers:[Wa,[],al(G),{provide:po,useFactory:Fl,deps:[[Di,new e.FiY,new e.tp0]]},{provide:pr,useValue:Me||{}},null!=Me&&Me.useHash?{provide:pe.S$,useClass:pe.Do}:{provide:pe.S$,useClass:pe.b0},{provide:ho,useFactory:()=>{const ae=(0,e.f3M)(Di),de=(0,e.f3M)(pe.EM),G=(0,e.f3M)(pr);return G.scrollOffset&&de.setOffset(G.scrollOffset),new Ta(ae,de,G)}},null!=Me&&Me.preloadingStrategy?ll(Me.preloadingStrategy):[],{provide:e.PXZ,multi:!0,useFactory:Ul},null!=Me&&Me.initialNavigation?za(Me):[],[{provide:ol,useFactory:jl},{provide:e.tb,multi:!0,useExisting:ol}]]}}static forChild(G){return{ngModule:ae,providers:[al(G)]}}}return ae.\u0275fac=function(G){return new(G||ae)(e.LFG(po,8))},ae.\u0275mod=e.oAB({type:ae}),ae.\u0275inj=e.cJS({}),ae})();function Fl(ae){return"guarded"}function al(ae){return[{provide:Qr,multi:!0,useValue:ae}]}function jl(){const ae=(0,e.f3M)(e.zs3);return de=>{var G,Me;const Ge=ae.get(e.z2F);if(de!==Ge.components[0])return;const mt=ae.get(Di),Rt=ae.get(sl);1===ae.get(Ya)&&mt.initialNavigation(),null===(G=ae.get(fo,null,e.XFs.Optional))||void 0===G||G.setUpPreloading(),null===(Me=ae.get(ho,null,e.XFs.Optional))||void 0===Me||Me.init(),mt.resetRootComponentType(Ge.componentTypes[0]),Rt.next(),Rt.complete()}}const ol=new e.OlP("");function za(ae){return["disabled"===ae.initialNavigation?[{provide:e.ip1,multi:!0,useFactory:()=>{const ae=(0,e.f3M)(Di);return()=>{ae.setUpLocationChangeListener()}}},{provide:Ya,useValue:2}]:[],"enabledBlocking"===ae.initialNavigation?[{provide:Ya,useValue:0},{provide:e.ip1,multi:!0,deps:[e.zs3],useFactory:ae=>{const de=ae.get(pe.V_,Promise.resolve(null));let G=!1;return()=>de.then(()=>new Promise(Ge=>{const mt=ae.get(Di),Rt=ae.get(sl);(function Me(Ge){ae.get(Di).events.pipe((0,W.h)(Rt=>Rt instanceof qn||Rt instanceof si||Rt instanceof Yi),(0,ge.U)(Rt=>Rt instanceof qn||Rt instanceof si&&(0===Rt.code||1===Rt.code)&&null),(0,W.h)(Rt=>null!==Rt),(0,De.q)(1)).subscribe(()=>{Ge()})})(()=>{Ge(!0),G=!0}),mt.afterPreactivation=()=>(Ge(!0),G||Rt.closed?(0,R.of)(void 0):Rt),mt.initialNavigation()}))}}]:[]]}const sl=new e.OlP("",{factory:()=>new Te.x}),Ya=new e.OlP("",{providedIn:"root",factory:()=>1});function ll(ae){return[Uo,{provide:fo,useExisting:Uo},{provide:Bo,useExisting:ae}]}},89383:(Xe,ue,p)=>{"use strict";p.d(ue,{X$:()=>he,Zw:()=>L,aw:()=>Ye,sK:()=>ve});var e=p(94650),A=p(39646),C=p(45191),M=p(4128),m=p(97272),b=p(49770),D=p(95698),v=p(34782),R=p(54004),B=p(24351),w=p(63900);class L{}let O=(()=>{class Be extends L{getTranslation(le){return(0,A.of)({})}}return Be.\u0275fac=function(){let se;return function(N){return(se||(se=e.n5z(Be)))(N||Be)}}(),Be.\u0275prov=e.Yz7({token:Be,factory:Be.\u0275fac}),Be})();class q{}let te=(()=>{class Be{handle(le){return le.key}}return Be.\u0275fac=function(le){return new(le||Be)},Be.\u0275prov=e.Yz7({token:Be,factory:Be.\u0275fac}),Be})();function z(Be,se){if(Be===se)return!0;if(null===Be||null===se)return!1;if(Be!=Be&&se!=se)return!0;let k,be,Z,le=typeof Be;if(le==typeof se&&"object"==le){if(!Array.isArray(Be)){if(Array.isArray(se))return!1;for(be in Z=Object.create(null),Be){if(!z(Be[be],se[be]))return!1;Z[be]=!0}for(be in se)if(!(be in Z)&&typeof se[be]<"u")return!1;return!0}if(!Array.isArray(se))return!1;if((k=Be.length)==se.length){for(be=0;be{Te(se[N])?N in Be?le[N]=pe(Be[N],se[N]):Object.assign(le,{[N]:se[N]}):Object.assign(le,{[N]:se[N]})}),le}class Le{}let T=(()=>{class Be extends Le{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(le,N){let k;return k="string"==typeof le?this.interpolateString(le,N):"function"==typeof le?this.interpolateFunction(le,N):le,k}getValue(le,N){let k="string"==typeof N?N.split("."):[N];N="";do{N+=k.shift(),!ie(le)||!ie(le[N])||"object"!=typeof le[N]&&k.length?k.length?N+=".":le=void 0:(le=le[N],N="")}while(k.length);return le}interpolateFunction(le,N){return le(N)}interpolateString(le,N){return N?le.replace(this.templateMatcher,(k,be)=>{let Z=this.getValue(N,be);return ie(Z)?Z:k}):le}}return Be.\u0275fac=function(){let se;return function(N){return(se||(se=e.n5z(Be)))(N||Be)}}(),Be.\u0275prov=e.Yz7({token:Be,factory:Be.\u0275fac}),Be})();class W{}let F=(()=>{class Be extends W{compile(le,N){return le}compileTranslations(le,N){return le}}return Be.\u0275fac=function(){let se;return function(N){return(se||(se=e.n5z(Be)))(N||Be)}}(),Be.\u0275prov=e.Yz7({token:Be,factory:Be.\u0275fac}),Be})();class V{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new e.vpe,this.onLangChange=new e.vpe,this.onDefaultLangChange=new e.vpe}}const ee=new e.OlP("USE_STORE"),Q=new e.OlP("USE_DEFAULT_LANG"),Ee=new e.OlP("DEFAULT_LANGUAGE"),ge=new e.OlP("USE_EXTEND");let ve=(()=>{class Be{constructor(le,N,k,be,Z,ce=!0,xe=!1,ot=!1,Fe){this.store=le,this.currentLoader=N,this.compiler=k,this.parser=be,this.missingTranslationHandler=Z,this.useDefaultLang=ce,this.isolate=xe,this.extend=ot,this.pending=!1,this._onTranslationChange=new e.vpe,this._onLangChange=new e.vpe,this._onDefaultLangChange=new e.vpe,this._langs=[],this._translations={},this._translationRequests={},Fe&&this.setDefaultLang(Fe)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(le){this.isolate?this._defaultLang=le:this.store.defaultLang=le}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(le){this.isolate?this._currentLang=le:this.store.currentLang=le}get langs(){return this.isolate?this._langs:this.store.langs}set langs(le){this.isolate?this._langs=le:this.store.langs=le}get translations(){return this.isolate?this._translations:this.store.translations}set translations(le){this.isolate?this._translations=le:this.store.translations=le}setDefaultLang(le){if(le===this.defaultLang)return;let N=this.retrieveTranslations(le);typeof N<"u"?(null==this.defaultLang&&(this.defaultLang=le),N.pipe((0,D.q)(1)).subscribe(k=>{this.changeDefaultLang(le)})):this.changeDefaultLang(le)}getDefaultLang(){return this.defaultLang}use(le){if(le===this.currentLang)return(0,A.of)(this.translations[le]);let N=this.retrieveTranslations(le);return typeof N<"u"?(this.currentLang||(this.currentLang=le),N.pipe((0,D.q)(1)).subscribe(k=>{this.changeLang(le)}),N):(this.changeLang(le),(0,A.of)(this.translations[le]))}retrieveTranslations(le){let N;return(typeof this.translations[le]>"u"||this.extend)&&(this._translationRequests[le]=this._translationRequests[le]||this.getTranslation(le),N=this._translationRequests[le]),N}getTranslation(le){this.pending=!0;const N=this.currentLoader.getTranslation(le).pipe((0,v.d)(1),(0,D.q)(1));return this.loadingTranslations=N.pipe((0,R.U)(k=>this.compiler.compileTranslations(k,le)),(0,v.d)(1),(0,D.q)(1)),this.loadingTranslations.subscribe({next:k=>{this.translations[le]=this.extend&&this.translations[le]?{...k,...this.translations[le]}:k,this.updateLangs(),this.pending=!1},error:k=>{this.pending=!1}}),N}setTranslation(le,N,k=!1){N=this.compiler.compileTranslations(N,le),this.translations[le]=(k||this.extend)&&this.translations[le]?pe(this.translations[le],N):N,this.updateLangs(),this.onTranslationChange.emit({lang:le,translations:this.translations[le]})}getLangs(){return this.langs}addLangs(le){le.forEach(N=>{-1===this.langs.indexOf(N)&&this.langs.push(N)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(le,N,k){let be;if(N instanceof Array){let Z={},ce=!1;for(let xe of N)Z[xe]=this.getParsedResult(le,xe,k),(0,C.b)(Z[xe])&&(ce=!0);if(ce){const xe=N.map(ot=>(0,C.b)(Z[ot])?Z[ot]:(0,A.of)(Z[ot]));return(0,M.D)(xe).pipe((0,R.U)(ot=>{let Fe={};return ot.forEach((ut,tt)=>{Fe[N[tt]]=ut}),Fe}))}return Z}if(le&&(be=this.parser.interpolate(this.parser.getValue(le,N),k)),typeof be>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(be=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],N),k)),typeof be>"u"){let Z={key:N,translateService:this};typeof k<"u"&&(Z.interpolateParams=k),be=this.missingTranslationHandler.handle(Z)}return typeof be<"u"?be:N}get(le,N){if(!ie(le)||!le.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,B.b)(k=>(k=this.getParsedResult(k,le,N),(0,C.b)(k)?k:(0,A.of)(k))));{let k=this.getParsedResult(this.translations[this.currentLang],le,N);return(0,C.b)(k)?k:(0,A.of)(k)}}getStreamOnTranslationChange(le,N){if(!ie(le)||!le.length)throw new Error('Parameter "key" required');return(0,m.z)((0,b.P)(()=>this.get(le,N)),this.onTranslationChange.pipe((0,w.w)(k=>{const be=this.getParsedResult(k.translations,le,N);return"function"==typeof be.subscribe?be:(0,A.of)(be)})))}stream(le,N){if(!ie(le)||!le.length)throw new Error('Parameter "key" required');return(0,m.z)((0,b.P)(()=>this.get(le,N)),this.onLangChange.pipe((0,w.w)(k=>{const be=this.getParsedResult(k.translations,le,N);return(0,C.b)(be)?be:(0,A.of)(be)})))}instant(le,N){if(!ie(le)||!le.length)throw new Error('Parameter "key" required');let k=this.getParsedResult(this.translations[this.currentLang],le,N);if((0,C.b)(k)){if(le instanceof Array){let be={};return le.forEach((Z,ce)=>{be[le[ce]]=le[ce]}),be}return le}return k}set(le,N,k=this.currentLang){this.translations[k][le]=this.compiler.compile(N,k),this.updateLangs(),this.onTranslationChange.emit({lang:k,translations:this.translations[k]})}changeLang(le){this.currentLang=le,this.onLangChange.emit({lang:le,translations:this.translations[le]}),null==this.defaultLang&&this.changeDefaultLang(le)}changeDefaultLang(le){this.defaultLang=le,this.onDefaultLangChange.emit({lang:le,translations:this.translations[le]})}reloadLang(le){return this.resetLang(le),this.getTranslation(le)}resetLang(le){this._translationRequests[le]=void 0,this.translations[le]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let le=window.navigator.languages?window.navigator.languages[0]:null;return le=le||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof le>"u"?void 0:(-1!==le.indexOf("-")&&(le=le.split("-")[0]),-1!==le.indexOf("_")&&(le=le.split("_")[0]),le)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let le=window.navigator.languages?window.navigator.languages[0]:null;return le=le||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,le}}return Be.\u0275fac=function(le){return new(le||Be)(e.LFG(V),e.LFG(L),e.LFG(W),e.LFG(Le),e.LFG(q),e.LFG(Q),e.LFG(ee),e.LFG(ge),e.LFG(Ee))},Be.\u0275prov=e.Yz7({token:Be,factory:Be.\u0275fac}),Be})(),he=(()=>{class Be{constructor(le,N){this.translate=le,this._ref=N,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(le,N,k){let be=Z=>{this.value=void 0!==Z?Z:le,this.lastKey=le,this._ref.markForCheck()};if(k){let Z=this.translate.getParsedResult(k,le,N);(0,C.b)(Z.subscribe)?Z.subscribe(be):be(Z)}this.translate.get(le,N).subscribe(be)}transform(le,...N){if(!le||!le.length)return le;if(z(le,this.lastKey)&&z(N,this.lastParams))return this.value;let k;if(ie(N[0])&&N.length)if("string"==typeof N[0]&&N[0].length){let be=N[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{k=JSON.parse(be)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${N[0]}`)}}else"object"==typeof N[0]&&!Array.isArray(N[0])&&(k=N[0]);return this.lastKey=le,this.lastParams=N,this.updateValue(le,k),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(be=>{this.lastKey&&be.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(le,k,be.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(be=>{this.lastKey&&(this.lastKey=null,this.updateValue(le,k,be.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(le,k))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return Be.\u0275fac=function(le){return new(le||Be)(e.Y36(ve,16),e.Y36(e.sBO,16))},Be.\u0275pipe=e.Yjl({name:"translate",type:Be,pure:!1}),Be.\u0275prov=e.Yz7({token:Be,factory:Be.\u0275fac}),Be})(),Ye=(()=>{class Be{static forRoot(le={}){return{ngModule:Be,providers:[le.loader||{provide:L,useClass:O},le.compiler||{provide:W,useClass:F},le.parser||{provide:Le,useClass:T},le.missingTranslationHandler||{provide:q,useClass:te},V,{provide:ee,useValue:le.isolate},{provide:Q,useValue:le.useDefaultLang},{provide:ge,useValue:le.extend},{provide:Ee,useValue:le.defaultLanguage},ve]}}static forChild(le={}){return{ngModule:Be,providers:[le.loader||{provide:L,useClass:O},le.compiler||{provide:W,useClass:F},le.parser||{provide:Le,useClass:T},le.missingTranslationHandler||{provide:q,useClass:te},{provide:ee,useValue:le.isolate},{provide:Q,useValue:le.useDefaultLang},{provide:ge,useValue:le.extend},{provide:Ee,useValue:le.defaultLanguage},ve]}}}return Be.\u0275fac=function(le){return new(le||Be)},Be.\u0275mod=e.oAB({type:Be}),Be.\u0275inj=e.cJS({}),Be})()},51214:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Ct:()=>OAuthService,Hy:()=>OAuthStorage,zr:()=>OAuthModule});var _home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(15861),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(94650),_angular_common__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(36895),_angular_common_http__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(80529),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(77579),rxjs__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(39646),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(32076),rxjs__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(54355),rxjs__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(62843),rxjs__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(39841),rxjs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(56451),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(39300),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(18505),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(78372),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(91005),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(63900),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(54004),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(50590),rxjs_operators__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(70262),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(17414),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(95698),rxjs_operators__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(86099),fast_sha256__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1302);class DateTimeProvider{}let SystemDateTimeProvider=(()=>{class Xe extends DateTimeProvider{now(){return Date.now()}new(){return new Date}}return Xe.\u0275fac=function(){let ue;return function(e){return(ue||(ue=_angular_core__WEBPACK_IMPORTED_MODULE_1__.n5z(Xe)))(e||Xe)}}(),Xe.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:Xe,factory:Xe.\u0275fac}),Xe})();class LoginOptions{constructor(){this.disableNonceCheck=!1,this.preventClearHashAfterLogin=!1}}class OAuthLogger{}class OAuthStorage{}let MemoryStorage=(()=>{class Xe{constructor(){this.data=new Map}getItem(p){return this.data.get(p)}removeItem(p){this.data.delete(p)}setItem(p,e){this.data.set(p,e)}}return Xe.\u0275fac=function(p){return new(p||Xe)},Xe.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:Xe,factory:Xe.\u0275fac}),Xe})();class ReceivedTokens{}class OAuthEvent{constructor(ue){this.type=ue}}class OAuthSuccessEvent extends OAuthEvent{constructor(ue,p=null){super(ue),this.info=p}}class OAuthInfoEvent extends OAuthEvent{constructor(ue,p=null){super(ue),this.info=p}}class OAuthErrorEvent extends OAuthEvent{constructor(ue,p,e=null){super(ue),this.reason=p,this.params=e}}function b64DecodeUnicode(Xe){const ue=Xe.replace(/\-/g,"+").replace(/\_/g,"/");return decodeURIComponent(atob(ue).split("").map(function(p){return"%"+("00"+p.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function base64UrlEncode(Xe){return btoa(Xe).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}class AuthConfig{constructor(ue){this.clientId="",this.redirectUri="",this.postLogoutRedirectUri="",this.redirectUriAsPostLogoutRedirectUriFallback=!0,this.loginUrl="",this.scope="openid profile",this.resource="",this.rngUrl="",this.oidc=!0,this.requestAccessToken=!0,this.options=null,this.issuer="",this.logoutUrl="",this.clearHashAfterLogin=!0,this.tokenEndpoint=null,this.revocationEndpoint=null,this.customTokenParameters=[],this.userinfoEndpoint=null,this.responseType="",this.showDebugInformation=!1,this.silentRefreshRedirectUri="",this.silentRefreshMessagePrefix="",this.silentRefreshShowIFrame=!1,this.siletRefreshTimeout=2e4,this.silentRefreshTimeout=2e4,this.dummyClientSecret=null,this.requireHttps="remoteOnly",this.strictDiscoveryDocumentValidation=!0,this.jwks=null,this.customQueryParams=null,this.silentRefreshIFrameName="angular-oauth-oidc-silent-refresh-iframe",this.timeoutFactor=.75,this.sessionChecksEnabled=!1,this.sessionCheckIntervall=3e3,this.sessionCheckIFrameUrl=null,this.sessionCheckIFrameName="angular-oauth-oidc-check-session-iframe",this.disableAtHashCheck=!1,this.skipSubjectCheck=!1,this.useIdTokenHintForSilentRefresh=!1,this.skipIssuerCheck=!1,this.nonceStateSeparator=";",this.useHttpBasicAuth=!1,this.waitForTokenInMsec=0,this.disablePKCE=!1,this.preserveRequestedRoute=!1,this.openUri=p=>{location.href=p},ue&&Object.assign(this,ue)}}class WebHttpUrlEncodingCodec{encodeKey(ue){return encodeURIComponent(ue)}encodeValue(ue){return encodeURIComponent(ue)}decodeKey(ue){return decodeURIComponent(ue)}decodeValue(ue){return decodeURIComponent(ue)}}class ValidationHandler{}class AbstractValidationHandler{validateAtHash(ue){var p=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){let e=p.inferHashAlgorithm(ue.idTokenHeader),A=yield p.calcHash(ue.accessToken,e),M=base64UrlEncode(A.substr(0,A.length/2)),m=ue.idTokenClaims.at_hash.replace(/=/g,"");return M!==m&&(console.error("exptected at_hash: "+M),console.error("actual at_hash: "+m)),M===m})()}inferHashAlgorithm(ue){let p=ue.alg;if(!p.match(/^.S[0-9]{3}$/))throw new Error("Algorithm not supported: "+p);return"sha-"+p.substr(2)}}let UrlHelperService=(()=>{class Xe{getHashFragmentParams(p){let e=p||window.location.hash;if(e=decodeURIComponent(e),0!==e.indexOf("#"))return{};const A=e.indexOf("?");return e=e.substr(A>-1?A+1:1),this.parseQueryString(e)}parseQueryString(p){const e={};let A,C,M,m,b,D,v;if(null===p)return e;A=p.split("&");for(let R=0;R>6,C[m++]=128|63&b):b<55296||b>=57344?(C[m++]=224|b>>12,C[m++]=128|b>>6&63,C[m++]=128|63&b):(b=65536+((1023&b)<<10|1023&Xe.charCodeAt(++e)),C[m++]=240|b>>18,C[m++]=128|b>>12&63,C[m++]=128|b>>6&63,C[m++]=128|63&b);Xe=C}else{if("object"!==A)throw new Error(ERROR);if(null===Xe)throw new Error(ERROR);if(ARRAY_BUFFER&&Xe.constructor===ArrayBuffer)Xe=new Uint8Array(Xe);else if(!(Array.isArray(Xe)||ARRAY_BUFFER&&ArrayBuffer.isView(Xe)))throw new Error(ERROR)}Xe.length>64&&(Xe=new Sha256(ue,!0).update(Xe).array());var D=[],v=[];for(e=0;e<64;++e){var R=Xe[e]||0;D[e]=92^R,v[e]=54^R}Sha256.call(this,ue,p),this.update(v),this.oKeyPad=D,this.inner=!0,this.sharedMemory=p}Sha256.prototype.update=function(Xe){if(!this.finalized){var ue,p=typeof Xe;if("string"!==p){if("object"!==p)throw new Error(ERROR);if(null===Xe)throw new Error(ERROR);if(ARRAY_BUFFER&&Xe.constructor===ArrayBuffer)Xe=new Uint8Array(Xe);else if(!(Array.isArray(Xe)||ARRAY_BUFFER&&ArrayBuffer.isView(Xe)))throw new Error(ERROR);ue=!0}for(var e,C,A=0,M=Xe.length,m=this.blocks;A>2]|=Xe[A]<>2]|=e<>2]|=(192|e>>6)<>2]|=(128|63&e)<=57344?(m[C>>2]|=(224|e>>12)<>2]|=(128|e>>6&63)<>2]|=(128|63&e)<>2]|=(240|e>>18)<>2]|=(128|e>>12&63)<>2]|=(128|e>>6&63)<>2]|=(128|63&e)<=64?(this.block=m[16],this.start=C-64,this.hash(),this.hashed=!0):this.start=C}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var Xe=this.blocks,ue=this.lastByteIndex;Xe[16]=this.block,Xe[ue>>2]|=EXTRA[3&ue],this.block=Xe[16],ue>=56&&(this.hashed||this.hash(),Xe[0]=this.block,Xe[16]=Xe[1]=Xe[2]=Xe[3]=Xe[4]=Xe[5]=Xe[6]=Xe[7]=Xe[8]=Xe[9]=Xe[10]=Xe[11]=Xe[12]=Xe[13]=Xe[14]=Xe[15]=0),Xe[14]=this.hBytes<<3|this.bytes>>>29,Xe[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var D,w,q,te,z,ie,Xe=this.h0,ue=this.h1,p=this.h2,e=this.h3,A=this.h4,C=this.h5,M=this.h6,m=this.h7,b=this.blocks;for(D=16;D<64;++D)b[D]=b[D-16]+(((w=b[D-15])>>>7|w<<25)^(w>>>18|w<<14)^w>>>3)+b[D-7]+(((w=b[D-2])>>>17|w<<15)^(w>>>19|w<<13)^w>>>10)<<0;for(ie=ue&p,D=0;D<64;D+=4)this.first?(this.is224?(q=300032,m=(w=b[0]-1413257819)-150054599<<0,e=w+24177077<<0):(q=704751109,m=(w=b[0]-210244248)-1521486534<<0,e=w+143694565<<0),this.first=!1):(m=e+(w=m+((A>>>6|A<<26)^(A>>>11|A<<21)^(A>>>25|A<<7))+(A&C^~A&M)+K[D]+b[D])<<0,e=w+(((Xe>>>2|Xe<<30)^(Xe>>>13|Xe<<19)^(Xe>>>22|Xe<<10))+((q=Xe&ue)^Xe&p^ie))<<0),M=p+(w=M+((m>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7))+(m&A^~m&C)+K[D+1]+b[D+1])<<0,p=w+(((e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10))+((te=e&Xe)^e&ue^q))<<0,C=ue+(w=C+((M>>>6|M<<26)^(M>>>11|M<<21)^(M>>>25|M<<7))+(M&m^~M&A)+K[D+2]+b[D+2])<<0,ue=w+(((p>>>2|p<<30)^(p>>>13|p<<19)^(p>>>22|p<<10))+((z=p&e)^p&Xe^te))<<0,A=Xe+(w=A+((C>>>6|C<<26)^(C>>>11|C<<21)^(C>>>25|C<<7))+(C&M^~C&m)+K[D+3]+b[D+3])<<0,Xe=w+(((ue>>>2|ue<<30)^(ue>>>13|ue<<19)^(ue>>>22|ue<<10))+((ie=ue&p)^ue&e^z))<<0;this.h0=this.h0+Xe<<0,this.h1=this.h1+ue<<0,this.h2=this.h2+p<<0,this.h3=this.h3+e<<0,this.h4=this.h4+A<<0,this.h5=this.h5+C<<0,this.h6=this.h6+M<<0,this.h7=this.h7+m<<0},Sha256.prototype.hex=function(){this.finalize();var Xe=this.h0,ue=this.h1,p=this.h2,e=this.h3,A=this.h4,C=this.h5,M=this.h6,m=this.h7,b=HEX_CHARS[Xe>>28&15]+HEX_CHARS[Xe>>24&15]+HEX_CHARS[Xe>>20&15]+HEX_CHARS[Xe>>16&15]+HEX_CHARS[Xe>>12&15]+HEX_CHARS[Xe>>8&15]+HEX_CHARS[Xe>>4&15]+HEX_CHARS[15&Xe]+HEX_CHARS[ue>>28&15]+HEX_CHARS[ue>>24&15]+HEX_CHARS[ue>>20&15]+HEX_CHARS[ue>>16&15]+HEX_CHARS[ue>>12&15]+HEX_CHARS[ue>>8&15]+HEX_CHARS[ue>>4&15]+HEX_CHARS[15&ue]+HEX_CHARS[p>>28&15]+HEX_CHARS[p>>24&15]+HEX_CHARS[p>>20&15]+HEX_CHARS[p>>16&15]+HEX_CHARS[p>>12&15]+HEX_CHARS[p>>8&15]+HEX_CHARS[p>>4&15]+HEX_CHARS[15&p]+HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>4&15]+HEX_CHARS[15&e]+HEX_CHARS[A>>28&15]+HEX_CHARS[A>>24&15]+HEX_CHARS[A>>20&15]+HEX_CHARS[A>>16&15]+HEX_CHARS[A>>12&15]+HEX_CHARS[A>>8&15]+HEX_CHARS[A>>4&15]+HEX_CHARS[15&A]+HEX_CHARS[C>>28&15]+HEX_CHARS[C>>24&15]+HEX_CHARS[C>>20&15]+HEX_CHARS[C>>16&15]+HEX_CHARS[C>>12&15]+HEX_CHARS[C>>8&15]+HEX_CHARS[C>>4&15]+HEX_CHARS[15&C]+HEX_CHARS[M>>28&15]+HEX_CHARS[M>>24&15]+HEX_CHARS[M>>20&15]+HEX_CHARS[M>>16&15]+HEX_CHARS[M>>12&15]+HEX_CHARS[M>>8&15]+HEX_CHARS[M>>4&15]+HEX_CHARS[15&M];return this.is224||(b+=HEX_CHARS[m>>28&15]+HEX_CHARS[m>>24&15]+HEX_CHARS[m>>20&15]+HEX_CHARS[m>>16&15]+HEX_CHARS[m>>12&15]+HEX_CHARS[m>>8&15]+HEX_CHARS[m>>4&15]+HEX_CHARS[15&m]),b},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var Xe=this.h0,ue=this.h1,p=this.h2,e=this.h3,A=this.h4,C=this.h5,M=this.h6,m=this.h7,b=[Xe>>24&255,Xe>>16&255,Xe>>8&255,255&Xe,ue>>24&255,ue>>16&255,ue>>8&255,255&ue,p>>24&255,p>>16&255,p>>8&255,255&p,e>>24&255,e>>16&255,e>>8&255,255&e,A>>24&255,A>>16&255,A>>8&255,255&A,C>>24&255,C>>16&255,C>>8&255,255&C,M>>24&255,M>>16&255,M>>8&255,255&M];return this.is224||b.push(m>>24&255,m>>16&255,m>>8&255,255&m),b},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var Xe=new ArrayBuffer(this.is224?28:32),ue=new DataView(Xe);return ue.setUint32(0,this.h0),ue.setUint32(4,this.h1),ue.setUint32(8,this.h2),ue.setUint32(12,this.h3),ue.setUint32(16,this.h4),ue.setUint32(20,this.h5),ue.setUint32(24,this.h6),this.is224||ue.setUint32(28,this.h7),Xe},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var Xe=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(Xe),Sha256.prototype.finalize.call(this)}};var exports=createMethod();return exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),exports}const sha256=factory();class HashHandler{}function decodeUTF8(Xe){if("string"!=typeof Xe)throw new TypeError("expected string");var ue,p=Xe,e=new Uint8Array(p.length);for(ue=0;ue{class Xe{calcHash(p,e){return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){return encodeUTF8(fast_sha256__WEBPACK_IMPORTED_MODULE_0__(decodeUTF8(p)))})()}toHashString2(p){let e="";for(let A of p)e+=String.fromCharCode(A);return e}toHashString(p){const e=new Uint8Array(p);let A="";for(let C of e)A+=String.fromCharCode(C);return A}}return Xe.\u0275fac=function(p){return new(p||Xe)},Xe.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:Xe,factory:Xe.\u0275fac}),Xe})(),OAuthService=(()=>{class Xe extends AuthConfig{constructor(p,e,A,C,M,m,b,D,v,R){super(),this.ngZone=p,this.http=e,this.config=M,this.urlHelper=m,this.logger=b,this.crypto=D,this.dateTimeService=R,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.discoveryDocumentLoadedSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=v,M||(M={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),C&&(this.tokenValidationHandler=C),M&&this.configure(M);try{A?this.setStorage(A):typeof sessionStorage<"u"&&this.setStorage(sessionStorage)}catch(L){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",L)}if(this.checkLocalStorageAccessable()){var B,w;const L=null===(B=window)||void 0===B||null===(w=B.navigator)||void 0===w?void 0:w.userAgent;(L?.includes("MSIE ")||L?.includes("Trident"))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if(typeof window>"u")return!1;const p="test";try{return!(typeof window.localStorage>"u"||(localStorage.setItem(p,p),localStorage.removeItem(p),0))}catch{return!1}}configure(p){Object.assign(this,new AuthConfig,p),this.config=Object.assign({},new AuthConfig,p),this.sessionChecksEnabled&&this.setupSessionCheck(),this.configChanged()}configChanged(){this.setupRefreshTimer()}restartSessionChecksIfStillLoggedIn(){this.hasValidIdToken()&&this.initSessionCheck()}restartRefreshTimerIfStillLoggedIn(){this.setupExpirationTimers()}setupSessionCheck(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(p=>"token_received"===p.type)).subscribe(p=>{this.initSessionCheck()})}setupAutomaticSilentRefresh(p={},e,A=!0){let C=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(M=>{"token_received"===M.type?C=!0:"logout"===M.type&&(C=!1)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(M=>"token_expires"===M.type&&(null==e||"any"===e||M.info===e)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.b)(1e3)).subscribe(M=>{C&&this.refreshInternal(p,A).catch(m=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(p,e){return this.useSilentRefresh||"code"!==this.responseType?this.silentRefresh(p,e):this.refreshToken()}loadDiscoveryDocumentAndTryLogin(p=null){return this.loadDiscoveryDocument().then(e=>this.tryLogin(p))}loadDiscoveryDocumentAndLogin(p=null){return this.loadDiscoveryDocumentAndTryLogin(p=p||{}).then(e=>!(!this.hasValidIdToken()||!this.hasValidAccessToken())||(this.initLoginFlow("string"==typeof p.state?p.state:""),!1))}debug(...p){this.showDebugInformation&&this.logger.debug.apply(this.logger,p)}validateUrlFromDiscoveryDocument(p){const e=[],A=this.validateUrlForHttps(p),C=this.validateUrlAgainstIssuer(p);return A||e.push("https for all urls required. Also for urls received by discovery."),C||e.push("Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation."),e}validateUrlForHttps(p){if(!p)return!0;const e=p.toLowerCase();return!(!1!==this.requireHttps&&(!e.match(/^http:\/\/localhost($|[:\/])/)&&!e.match(/^http:\/\/localhost($|[:\/])/)||"remoteOnly"!==this.requireHttps))||e.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(p,e){if(!p)throw new Error(`'${e}' should not be null`);if(!this.validateUrlForHttps(p))throw new Error(`'${e}' must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).`)}validateUrlAgainstIssuer(p){return!this.strictDiscoveryDocumentValidation||!p||p.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){typeof window>"u"?this.debug("timer not supported on this plattform"):((this.hasValidIdToken()||this.hasValidAccessToken())&&(this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()),this.tokenReceivedSubscription&&this.tokenReceivedSubscription.unsubscribe(),this.tokenReceivedSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(p=>"token_received"===p.type)).subscribe(p=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()}))}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){const p=this.getAccessTokenExpiration(),e=this.getAccessTokenStoredAt(),A=this.calcTimeout(e,p);this.ngZone.runOutsideAngular(()=>{this.accessTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","access_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(A)).subscribe(C=>{this.ngZone.run(()=>{this.eventsSubject.next(C)})})})}setupIdTokenTimer(){const p=this.getIdTokenExpiration(),e=this.getIdTokenStoredAt(),A=this.calcTimeout(e,p);this.ngZone.runOutsideAngular(()=>{this.idTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","id_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(A)).subscribe(C=>{this.ngZone.run(()=>{this.eventsSubject.next(C)})})})}stopAutomaticRefresh(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.clearAutomaticRefreshTimer()}clearAccessTokenTimer(){this.accessTokenTimeoutSubscription&&this.accessTokenTimeoutSubscription.unsubscribe()}clearIdTokenTimer(){this.idTokenTimeoutSubscription&&this.idTokenTimeoutSubscription.unsubscribe()}clearAutomaticRefreshTimer(){this.automaticRefreshSubscription&&this.automaticRefreshSubscription.unsubscribe()}calcTimeout(p,e){const A=this.dateTimeService.now();return Math.max(0,(e-p)*this.timeoutFactor-(A-p))}setStorage(p){this._storage=p,this.configChanged()}loadDiscoveryDocument(p=null){return new Promise((e,A)=>{p||((p=this.issuer||"").endsWith("/")||(p+="/"),p+=".well-known/openid-configuration"),this.validateUrlForHttps(p)?this.http.get(p).subscribe(C=>{if(!this.validateDiscoveryDocument(C))return this.eventsSubject.next(new OAuthErrorEvent("discovery_document_validation_error",null)),void A("discovery_document_validation_error");this.loginUrl=C.authorization_endpoint,this.logoutUrl=C.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=C.grant_types_supported,this.issuer=C.issuer,this.tokenEndpoint=C.token_endpoint,this.userinfoEndpoint=C.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=C.jwks_uri,this.sessionCheckIFrameUrl=C.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(C),this.revocationEndpoint=C.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(M=>{const b=new OAuthSuccessEvent("discovery_document_loaded",{discoveryDocument:C,jwks:M});this.eventsSubject.next(b),e(b)}).catch(M=>{this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",M)),A(M)})},C=>{this.logger.error("error loading discovery document",C),this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",C)),A(C)}):A("issuer must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).")})}loadJwks(){return new Promise((p,e)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(A=>{this.jwks=A,this.eventsSubject.next(new OAuthSuccessEvent("discovery_document_loaded")),p(A)},A=>{this.logger.error("error loading jwks",A),this.eventsSubject.next(new OAuthErrorEvent("jwks_load_error",A)),e(A)}):p(null)})}validateDiscoveryDocument(p){let e;return this.skipIssuerCheck||p.issuer===this.issuer?(e=this.validateUrlFromDiscoveryDocument(p.authorization_endpoint),e.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",e),!1):(e=this.validateUrlFromDiscoveryDocument(p.end_session_endpoint),e.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",e),!1):(e=this.validateUrlFromDiscoveryDocument(p.token_endpoint),e.length>0&&this.logger.error("error validating token_endpoint in discovery document",e),e=this.validateUrlFromDiscoveryDocument(p.revocation_endpoint),e.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",e),e=this.validateUrlFromDiscoveryDocument(p.userinfo_endpoint),e.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",e),!1):(e=this.validateUrlFromDiscoveryDocument(p.jwks_uri),e.length>0?(this.logger.error("error validating jwks_uri in discovery document",e),!1):(this.sessionChecksEnabled&&!p.check_session_iframe&&this.logger.warn("sessionChecksEnabled is activated but discovery document does not contain a check_session_iframe field"),!0))))):(this.logger.error("invalid issuer in discovery document","expected: "+this.issuer,"current: "+p.issuer),!1)}fetchTokenUsingPasswordFlowAndLoadUserProfile(p,e,A=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingPasswordFlow(p,e,A).then(()=>this.loadUserProfile())}loadUserProfile(){if(!this.hasValidAccessToken())throw new Error("Can not load User Profile without access_token");if(!this.validateUrlForHttps(this.userinfoEndpoint))throw new Error("userinfoEndpoint must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");return new Promise((p,e)=>{const A=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:A,observe:"response",responseType:"text"}).subscribe(C=>{if(this.debug("userinfo received",JSON.stringify(C)),C.headers.get("content-type").startsWith("application/json")){let M=JSON.parse(C.body);const m=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!m.sub||M.sub!==m.sub))return void e("if property oidc is true, the received user-id (sub) has to be the user-id of the user that has logged in with oidc.\nif you are not using oidc but just oauth2 password flow set oidc to false");M=Object.assign({},m,M),this._storage.setItem("id_token_claims_obj",JSON.stringify(M)),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),p({info:M})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),p(JSON.parse(C.body))},C=>{this.logger.error("error loading user info",C),this.eventsSubject.next(new OAuthErrorEvent("user_profile_load_error",C)),e(C)})})}fetchTokenUsingPasswordFlow(p,e,A=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingGrant("password",{username:p,password:e},A)}fetchTokenUsingGrant(p,e,A=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let C=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type",p).set("scope",this.scope);if(this.useHttpBasicAuth){const M=btoa(`${this.clientId}:${this.dummyClientSecret}`);A=A.set("Authorization","Basic "+M)}if(this.useHttpBasicAuth||(C=C.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(C=C.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const M of Object.getOwnPropertyNames(this.customQueryParams))C=C.set(M,this.customQueryParams[M]);for(const M of Object.keys(e))C=C.set(M,e[M]);return A=A.set("Content-Type","application/x-www-form-urlencoded"),new Promise((M,m)=>{this.http.post(this.tokenEndpoint,C,{headers:A}).subscribe(b=>{this.debug("tokenResponse",b),this.storeAccessTokenResponse(b.access_token,b.refresh_token,b.expires_in||this.fallbackAccessTokenExpirationTimeInSec,b.scope,this.extractRecognizedCustomParameters(b)),this.oidc&&b.id_token&&this.processIdToken(b.id_token,b.access_token).then(D=>{this.storeIdToken(D),M(b)}),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),M(b)},b=>{this.logger.error("Error performing ${grantType} flow",b),this.eventsSubject.next(new OAuthErrorEvent("token_error",b)),m(b)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((p,e)=>{let A=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","refresh_token").set("scope",this.scope).set("refresh_token",this._storage.getItem("refresh_token")),C=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const M=btoa(`${this.clientId}:${this.dummyClientSecret}`);C=C.set("Authorization","Basic "+M)}if(this.useHttpBasicAuth||(A=A.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(A=A.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const M of Object.getOwnPropertyNames(this.customQueryParams))A=A.set(M,this.customQueryParams[M]);this.http.post(this.tokenEndpoint,A,{headers:C}).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.w)(M=>M.id_token?(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.D)(this.processIdToken(M.id_token,M.access_token,!0)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(m=>this.storeIdToken(m)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(m=>M)):(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(M))).subscribe(M=>{this.debug("refresh tokenResponse",M),this.storeAccessTokenResponse(M.access_token,M.refresh_token,M.expires_in||this.fallbackAccessTokenExpirationTimeInSec,M.scope,this.extractRecognizedCustomParameters(M)),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),p(M)},M=>{this.logger.error("Error refreshing token",M),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",M)),e(M)})})}removeSilentRefreshEventListener(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}setupSilentRefreshEventListener(){this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=p=>{const e=this.processMessageEventMessage(p);this.tryLogin({customHashFragment:e,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri||this.redirectUri}).catch(A=>this.debug("tryLogin during silent refresh failed",A))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(p={},e=!0){const A=this.getIdentityClaims()||{};if(this.useIdTokenHintForSilentRefresh&&this.hasValidIdToken()&&(p.id_token_hint=this.getIdToken()),!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(typeof this.document>"u")throw new Error("silent refresh is not supported on this platform");const C=this.document.getElementById(this.silentRefreshIFrameName);C&&this.document.body.removeChild(C),this.silentRefreshSubject=A.sub;const M=this.document.createElement("iframe");M.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,e,p).then(R=>{M.setAttribute("src",R),this.silentRefreshShowIFrame||(M.style.display="none"),this.document.body.appendChild(M)});const b=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(R=>R instanceof OAuthErrorEvent),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),D=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(R=>"token_received"===R.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),v=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthErrorEvent("silent_refresh_timeout",null)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(this.silentRefreshTimeout));return(0,rxjs__WEBPACK_IMPORTED_MODULE_14__.S)([b,D,v]).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(R=>{if(R instanceof OAuthErrorEvent)throw"silent_refresh_timeout"===R.type||(R=new OAuthErrorEvent("silent_refresh_error",R)),this.eventsSubject.next(R),R;return"token_received"===R.type&&(R=new OAuthSuccessEvent("silently_refreshed"),this.eventsSubject.next(R)),R})).toPromise()}initImplicitFlowInPopup(p){return this.initLoginFlowInPopup(p)}initLoginFlowInPopup(p){return p=p||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(e=>new Promise((A,C)=>{let b,m=null;p.windowRef?p.windowRef&&!p.windowRef.closed&&(m=p.windowRef,m.location.href=e):m=window.open(e,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(p));const D=L=>{this.tryLogin({customHashFragment:L,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{R(),A(!0)},O=>{R(),C(O)})};m?b=window.setInterval(()=>{(!m||m.closed)&&(R(),C(new OAuthErrorEvent("popup_closed",{})))},500):C(new OAuthErrorEvent("popup_blocked",{}));const R=()=>{window.clearInterval(b),window.removeEventListener("storage",w),window.removeEventListener("message",B),null!==m&&m.close(),m=null},B=L=>{const O=this.processMessageEventMessage(L);O&&null!==O?(window.removeEventListener("storage",w),D(O)):console.log("false event firing")},w=L=>{"auth_hash"===L.key&&(window.removeEventListener("message",B),D(L.newValue))};window.addEventListener("message",B),window.addEventListener("storage",w)}))}calculatePopupFeatures(p){const e=p.height||470,A=p.width||500,C=window.screenLeft+(window.outerWidth-A)/2;return`location=no,toolbar=no,width=${A},height=${e},top=${window.screenTop+(window.outerHeight-e)/2},left=${C}`}processMessageEventMessage(p){let e="#";if(this.silentRefreshMessagePrefix&&(e+=this.silentRefreshMessagePrefix),!p||!p.data||"string"!=typeof p.data)return;const A=p.data;return A.startsWith(e)?"#"+A.substr(e.length):void 0}canPerformSessionCheck(){return!(!this.sessionChecksEnabled||(this.sessionCheckIFrameUrl?this.getSessionState()?typeof this.document>"u":(console.warn("sessionChecksEnabled is activated but there is no session_state"),1):(console.warn("sessionChecksEnabled is activated but there is no sessionCheckIFrameUrl"),1)))}setupSessionCheckEventListener(){this.removeSessionCheckEventListener(),this.sessionCheckEventListener=p=>{const e=p.origin.toLowerCase(),A=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),A.startsWith(e)){switch(p.data){case"unchanged":this.ngZone.run(()=>{this.handleSessionUnchanged()});break;case"changed":this.ngZone.run(()=>{this.handleSessionChange()});break;case"error":this.ngZone.run(()=>{this.handleSessionError()})}this.debug("got info from session check inframe",p)}else this.debug("sessionCheckEventListener","wrong origin",e,"expected",A,"event",p)},this.ngZone.runOutsideAngular(()=>{window.addEventListener("message",this.sessionCheckEventListener)})}handleSessionUnchanged(){this.debug("session check","session unchanged"),this.eventsSubject.next(new OAuthInfoEvent("session_unchanged"))}handleSessionChange(){this.eventsSubject.next(new OAuthInfoEvent("session_changed")),this.stopSessionCheckTimer(),this.useSilentRefresh||"code"!==this.responseType?this.silentRefreshRedirectUri?(this.silentRefresh().catch(p=>this.debug("silent refresh failed after session changed")),this.waitForSilentRefreshAfterSessionChange()):(this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)):this.refreshToken().then(p=>{this.debug("token refresh after session change worked")}).catch(p=>{this.debug("token refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)})}waitForSilentRefreshAfterSessionChange(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(p=>"silently_refreshed"===p.type||"silent_refresh_timeout"===p.type||"silent_refresh_error"===p.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()).subscribe(p=>{"silently_refreshed"!==p.type&&(this.debug("silent refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0))})}handleSessionError(){this.stopSessionCheckTimer(),this.eventsSubject.next(new OAuthInfoEvent("session_error"))}removeSessionCheckEventListener(){this.sessionCheckEventListener&&(window.removeEventListener("message",this.sessionCheckEventListener),this.sessionCheckEventListener=null)}initSessionCheck(){if(!this.canPerformSessionCheck())return;const p=this.document.getElementById(this.sessionCheckIFrameName);p&&this.document.body.removeChild(p);const e=this.document.createElement("iframe");e.id=this.sessionCheckIFrameName,this.setupSessionCheckEventListener(),e.setAttribute("src",this.sessionCheckIFrameUrl),e.style.display="none",this.document.body.appendChild(e),this.startSessionCheckTimer()}startSessionCheckTimer(){this.stopSessionCheckTimer(),this.ngZone.runOutsideAngular(()=>{this.sessionCheckTimer=setInterval(this.checkSession.bind(this),this.sessionCheckIntervall)})}stopSessionCheckTimer(){this.sessionCheckTimer&&(clearInterval(this.sessionCheckTimer),this.sessionCheckTimer=null)}checkSession(){const p=this.document.getElementById(this.sessionCheckIFrameName);p||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);const e=this.getSessionState();e||this.stopSessionCheckTimer(),p.contentWindow.postMessage(this.clientId+" "+e,this.issuer)}createLoginUrl(p="",e="",A="",C=!1,M={}){var m=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const b=m;let D;D=A||m.redirectUri;const v=yield m.createAndSaveNonce();if(p=p?v+m.config.nonceStateSeparator+encodeURIComponent(p):v,!m.requestAccessToken&&!m.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");m.responseType=m.config.responseType?m.config.responseType:m.oidc&&m.requestAccessToken?"id_token token":m.oidc&&!m.requestAccessToken?"id_token":"token";const R=b.loginUrl.indexOf("?")>-1?"&":"?";let B=b.scope;m.oidc&&!B.match(/(^|\s)openid($|\s)/)&&(B="openid "+B);let w=b.loginUrl+R+"response_type="+encodeURIComponent(b.responseType)+"&client_id="+encodeURIComponent(b.clientId)+"&state="+encodeURIComponent(p)+"&redirect_uri="+encodeURIComponent(D)+"&scope="+encodeURIComponent(B);if(m.responseType.includes("code")&&!m.disablePKCE){const[L,O]=yield m.createChallangeVerifierPairForPKCE();m.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("PKCE_verifier",O):m._storage.setItem("PKCE_verifier",O),w+="&code_challenge="+L,w+="&code_challenge_method=S256"}e&&(w+="&login_hint="+encodeURIComponent(e)),b.resource&&(w+="&resource="+encodeURIComponent(b.resource)),b.oidc&&(w+="&nonce="+encodeURIComponent(v)),C&&(w+="&prompt=none");for(const L of Object.keys(M))w+="&"+encodeURIComponent(L)+"="+encodeURIComponent(M[L]);if(m.customQueryParams)for(const L of Object.getOwnPropertyNames(m.customQueryParams))w+="&"+L+"="+encodeURIComponent(m.customQueryParams[L]);return w})()}initImplicitFlowInternal(p="",e=""){if(this.inImplicitFlow)return;if(this.inImplicitFlow=!0,!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let A={},C=null;"string"==typeof e?C=e:"object"==typeof e&&(A=e),this.createLoginUrl(p,C,null,!1,A).then(this.config.openUri).catch(M=>{console.error("Error in initImplicitFlow",M),this.inImplicitFlow=!1})}initImplicitFlow(p="",e=""){""!==this.loginUrl?this.initImplicitFlowInternal(p,e):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(A=>"discovery_document_loaded"===A.type)).subscribe(A=>this.initImplicitFlowInternal(p,e))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(p){const e=this;if(p.onTokenReceived){const A={idClaims:e.getIdentityClaims(),idToken:e.getIdToken(),accessToken:e.getAccessToken(),state:e.state};p.onTokenReceived(A)}}storeAccessTokenResponse(p,e,A,C,M){if(this._storage.setItem("access_token",p),C&&!Array.isArray(C)?this._storage.setItem("granted_scopes",JSON.stringify(C.split(" "))):C&&Array.isArray(C)&&this._storage.setItem("granted_scopes",JSON.stringify(C)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),A){const m=1e3*A,D=this.dateTimeService.new().getTime()+m;this._storage.setItem("expires_at",""+D)}e&&this._storage.setItem("refresh_token",e),M&&M.forEach((m,b)=>{this._storage.setItem(b,m)})}tryLogin(p=null){return"code"===this.config.responseType?this.tryLoginCodeFlow(p).then(e=>!0):this.tryLoginImplicitFlow(p)}parseQueryString(p){return p&&0!==p.length?("?"===p.charAt(0)&&(p=p.substr(1)),this.urlHelper.parseQueryString(p)):{}}tryLoginCodeFlow(p=null){var e=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const A=(p=p||{}).customHashFragment?p.customHashFragment.substring(1):window.location.search,C=e.getCodePartsFromUrl(A),M=C.code,m=C.state,b=C.session_state;if(!p.preventClearHashAfterLogin){const R=location.origin+location.pathname+location.search.replace(/code=[^&\$]*/,"").replace(/scope=[^&\$]*/,"").replace(/state=[^&\$]*/,"").replace(/session_state=[^&\$]*/,"").replace(/^\?&/,"?").replace(/&$/,"").replace(/^\?$/,"").replace(/&+/g,"&").replace(/\?&/,"?").replace(/\?$/,"")+location.hash;history.replaceState(null,window.name,R)}let[D,v]=e.parseState(m);if(e.state=v,C.error){e.debug("error trying to login"),e.handleLoginError(p,C);const R=new OAuthErrorEvent("code_error",{},C);return e.eventsSubject.next(R),Promise.reject(R)}if(!p.disableNonceCheck){if(!D)return e.saveRequestedRoute(),Promise.resolve();if(!p.disableOAuth2StateCheck&&!e.validateNonce(D)){const B=new OAuthErrorEvent("invalid_nonce_in_state",null);return e.eventsSubject.next(B),Promise.reject(B)}return e.storeSessionState(b),M&&(yield e.getTokenFromCode(M,p),e.restoreRequestedRoute()),Promise.resolve()}return Promise.reject()})()}saveRequestedRoute(){this.config.preserveRequestedRoute&&this._storage.setItem("requested_route",window.location.pathname+window.location.search)}restoreRequestedRoute(){const p=this._storage.getItem("requested_route");p&&history.replaceState(null,"",window.location.origin+p)}getCodePartsFromUrl(p){return p&&0!==p.length?("?"===p.charAt(0)&&(p=p.substr(1)),this.urlHelper.parseQueryString(p)):this.urlHelper.getHashFragmentParams()}getTokenFromCode(p,e){let A=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","authorization_code").set("code",p).set("redirect_uri",e.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let C;C=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("PKCE_verifier"):this._storage.getItem("PKCE_verifier"),C?A=A.set("code_verifier",C):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(A,e)}fetchAndProcessToken(p,e){e=e||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let A=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const C=btoa(`${this.clientId}:${this.dummyClientSecret}`);A=A.set("Authorization","Basic "+C)}return this.useHttpBasicAuth||(p=p.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(p=p.set("client_secret",this.dummyClientSecret)),new Promise((C,M)=>{if(this.customQueryParams)for(let m of Object.getOwnPropertyNames(this.customQueryParams))p=p.set(m,this.customQueryParams[m]);this.http.post(this.tokenEndpoint,p,{headers:A}).subscribe(m=>{this.debug("refresh tokenResponse",m),this.storeAccessTokenResponse(m.access_token,m.refresh_token,m.expires_in||this.fallbackAccessTokenExpirationTimeInSec,m.scope,this.extractRecognizedCustomParameters(m)),this.oidc&&m.id_token?this.processIdToken(m.id_token,m.access_token,e.disableNonceCheck).then(b=>{this.storeIdToken(b),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),C(m)}).catch(b=>{this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",b)),console.error("Error validating tokens"),console.error(b),M(b)}):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),C(m))},m=>{console.error("Error getting token",m),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",m)),M(m)})})}tryLoginImplicitFlow(p=null){let e;e=(p=p||{}).customHashFragment?this.urlHelper.getHashFragmentParams(p.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",e);const A=e.state;let[C,M]=this.parseState(A);if(this.state=M,e.error){this.debug("error trying to login"),this.handleLoginError(p,e);const R=new OAuthErrorEvent("token_error",{},e);return this.eventsSubject.next(R),Promise.reject(R)}const m=e.access_token,b=e.id_token,D=e.session_state,v=e.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!m||this.requestAccessToken&&!p.disableOAuth2StateCheck&&!A||this.oidc&&!b)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!D&&this.logger.warn("session checks (Session Status Change Notification) were activated in the configuration but the id_token does not contain a session_state claim"),this.requestAccessToken&&!p.disableNonceCheck&&!this.validateNonce(C)){const B=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(B),Promise.reject(B)}return this.requestAccessToken&&this.storeAccessTokenResponse(m,null,e.expires_in||this.fallbackAccessTokenExpirationTimeInSec,v),this.oidc?this.processIdToken(b,m,p.disableNonceCheck).then(R=>p.validationHandler?p.validationHandler({accessToken:m,idClaims:R.idTokenClaims,idToken:R.idToken,state:A}).then(B=>R):R).then(R=>(this.storeIdToken(R),this.storeSessionState(D),this.clearHashAfterLogin&&!p.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.callOnTokenReceivedIfExists(p),this.inImplicitFlow=!1,!0)).catch(R=>(this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",R)),this.logger.error("Error validating tokens"),this.logger.error(R),Promise.reject(R))):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.clearHashAfterLogin&&!p.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(p),Promise.resolve(!0))}parseState(p){let e=p,A="";if(p){const C=p.indexOf(this.config.nonceStateSeparator);C>-1&&(e=p.substr(0,C),A=p.substr(C+this.config.nonceStateSeparator.length))}return[e,A]}validateNonce(p){let e;return e=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),e===p||(console.error("Validating access_token failed, wrong state/nonce.",e,p),!1)}storeIdToken(p){this._storage.setItem("id_token",p.idToken),this._storage.setItem("id_token_claims_obj",p.idTokenClaimsJson),this._storage.setItem("id_token_expires_at",""+p.idTokenExpiresAt),this._storage.setItem("id_token_stored_at",""+this.dateTimeService.now())}storeSessionState(p){this._storage.setItem("session_state",p)}getSessionState(){return this._storage.getItem("session_state")}handleLoginError(p,e){p.onLoginError&&p.onLoginError(e),this.clearHashAfterLogin&&!p.preventClearHashAfterLogin&&this.clearLocationHash()}getClockSkewInMsec(p=6e5){return this.clockSkewInSec?1e3*this.clockSkewInSec:p}processIdToken(p,e,A=!1){const C=p.split("."),m=b64DecodeUnicode(this.padBase64(C[0])),b=JSON.parse(m),v=b64DecodeUnicode(this.padBase64(C[1])),R=JSON.parse(v);let B;if(B=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Array.isArray(R.aud)){if(R.aud.every(z=>z!==this.clientId)){const z="Wrong audience: "+R.aud.join(",");return this.logger.warn(z),Promise.reject(z)}}else if(R.aud!==this.clientId){const z="Wrong audience: "+R.aud;return this.logger.warn(z),Promise.reject(z)}if(!R.sub){const z="No sub claim in id_token";return this.logger.warn(z),Promise.reject(z)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==R.sub){const z=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${R.sub}`;return this.logger.warn(z),Promise.reject(z)}if(!R.iat){const z="No iat claim in id_token";return this.logger.warn(z),Promise.reject(z)}if(!this.skipIssuerCheck&&R.iss!==this.issuer){const z="Wrong issuer: "+R.iss;return this.logger.warn(z),Promise.reject(z)}if(!A&&R.nonce!==B){const z="Wrong nonce: "+R.nonce;return this.logger.warn(z),Promise.reject(z)}if(this.hasOwnProperty("responseType")&&("code"===this.responseType||"id_token"===this.responseType)&&(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!R.at_hash){const z="An at_hash is needed!";return this.logger.warn(z),Promise.reject(z)}const w=this.dateTimeService.now(),L=1e3*R.iat,O=1e3*R.exp,q=this.getClockSkewInMsec();if(L-q>=w||O+q<=w){const z="Token has expired";return console.error(z),console.error({now:w,issuedAtMSec:L,expiresAtMSec:O}),Promise.reject(z)}const te={accessToken:e,idToken:p,jwks:this.jwks,idTokenClaims:R,idTokenHeader:b,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(te).then(z=>({idToken:p,idTokenClaims:R,idTokenClaimsJson:v,idTokenHeader:b,idTokenHeaderJson:m,idTokenExpiresAt:O})):this.checkAtHash(te).then(z=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!z){const ie="Wrong at_hash";return this.logger.warn(ie),Promise.reject(ie)}return this.checkSignature(te).then(ie=>{const pe={idToken:p,idTokenClaims:R,idTokenClaimsJson:v,idTokenHeader:b,idTokenHeaderJson:m,idTokenExpiresAt:O};return this.disableAtHashCheck?pe:this.checkAtHash(te).then(Le=>{if(this.requestAccessToken&&!Le){const T="Wrong at_hash";return this.logger.warn(T),Promise.reject(T)}return pe})})})}getIdentityClaims(){const p=this._storage.getItem("id_token_claims_obj");return p?JSON.parse(p):null}getGrantedScopes(){const p=this._storage.getItem("granted_scopes");return p?JSON.parse(p):null}getIdToken(){return this._storage?this._storage.getItem("id_token"):null}padBase64(p){for(;p.length%4!=0;)p+="=";return p}getAccessToken(){return this._storage?this._storage.getItem("access_token"):null}getRefreshToken(){return this._storage?this._storage.getItem("refresh_token"):null}getAccessTokenExpiration(){return this._storage.getItem("expires_at")?parseInt(this._storage.getItem("expires_at"),10):null}getAccessTokenStoredAt(){return parseInt(this._storage.getItem("access_token_stored_at"),10)}getIdTokenStoredAt(){return parseInt(this._storage.getItem("id_token_stored_at"),10)}getIdTokenExpiration(){return this._storage.getItem("id_token_expires_at")?parseInt(this._storage.getItem("id_token_expires_at"),10):null}hasValidAccessToken(){if(this.getAccessToken()){const p=this._storage.getItem("expires_at"),e=this.dateTimeService.new();return!(p&&parseInt(p,10)=0&&null!==this._storage.getItem(p)?JSON.parse(this._storage.getItem(p)):null}authorizationHeader(){return"Bearer "+this.getAccessToken()}logOut(p={},e=""){let A=!1;"boolean"==typeof p&&(A=p,p={});const C=this.getIdToken();if(this._storage.removeItem("access_token"),this._storage.removeItem("id_token"),this._storage.removeItem("refresh_token"),this.saveNoncesInLocalStorage?(localStorage.removeItem("nonce"),localStorage.removeItem("PKCE_verifier")):(this._storage.removeItem("nonce"),this._storage.removeItem("PKCE_verifier")),this._storage.removeItem("expires_at"),this._storage.removeItem("id_token_claims_obj"),this._storage.removeItem("id_token_expires_at"),this._storage.removeItem("id_token_stored_at"),this._storage.removeItem("access_token_stored_at"),this._storage.removeItem("granted_scopes"),this._storage.removeItem("session_state"),this.config.customTokenParameters&&this.config.customTokenParameters.forEach(m=>this._storage.removeItem(m)),this.silentRefreshSubject=null,this.eventsSubject.next(new OAuthInfoEvent("logout")),!this.logoutUrl||A||!C&&!this.postLogoutRedirectUri)return;let M;if(!this.validateUrlForHttps(this.logoutUrl))throw new Error("logoutUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(this.logoutUrl.indexOf("{{")>-1)M=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(C)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let m=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec});C&&(m=m.set("id_token_hint",C));const b=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";b&&(m=m.set("post_logout_redirect_uri",b),e&&(m=m.set("state",e)));for(let D in p)m=m.set(D,p[D]);M=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+m.toString()}this.config.openUri(M)}createAndSaveNonce(){const p=this;return this.createNonce().then(function(e){return p.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("nonce",e):p._storage.setItem("nonce",e),e})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();const p=this.document.getElementById(this.silentRefreshIFrameName);p&&p.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();const e=this.document.getElementById(this.sessionCheckIFrameName);e&&e.remove()}createNonce(){return new Promise(p=>{if(this.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";let A=45,C="";const M=typeof self>"u"?null:self.crypto||self.msCrypto;if(M){let m=new Uint8Array(A);M.getRandomValues(m),m.map||(m.map=Array.prototype.map),m=m.map(b=>e.charCodeAt(b%e.length)),C=String.fromCharCode.apply(null,m)}else for(;0"discovery_document_loaded"===A.type)).subscribe(A=>this.initCodeFlowInternal(p,e))}initCodeFlowInternal(p="",e={}){if(!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let A={},C=null;"string"==typeof e?C=e:"object"==typeof e&&(A=e),this.createLoginUrl(p,C,null,!1,A).then(this.config.openUri).catch(M=>{console.error("Error in initAuthorizationCodeFlow"),console.error(M)})}createChallangeVerifierPairForPKCE(){var p=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){if(!p.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");const e=yield p.createNonce();return[base64UrlEncode(yield p.crypto.calcHash(e,"sha-256")),e]})()}extractRecognizedCustomParameters(p){let e=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(A=>{p[A]&&e.set(A,JSON.stringify(p[A]))}),e}revokeTokenAndLogout(p={},e=!1){let A=this.revocationEndpoint,C=this.getAccessToken(),M=this.getRefreshToken();if(!C)return;let m=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}),b=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const D=btoa(`${this.clientId}:${this.dummyClientSecret}`);b=b.set("Authorization","Basic "+D)}if(this.useHttpBasicAuth||(m=m.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(m=m.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const D of Object.getOwnPropertyNames(this.customQueryParams))m=m.set(D,this.customQueryParams[D]);return new Promise((D,v)=>{let R,B;if(C){let w=m.set("token",C).set("token_type_hint","access_token");R=this.http.post(A,w,{headers:b})}else R=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);if(M){let w=m.set("token",M).set("token_type_hint","refresh_token");B=this.http.post(A,w,{headers:b})}else B=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);e&&(R=R.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(w=>0===w.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(w))),B=B.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(w=>0===w.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(w)))),(0,rxjs__WEBPACK_IMPORTED_MODULE_17__.a)([R,B]).subscribe(w=>{this.logOut(p),D(w),this.logger.info("Token successfully revoked")},w=>{this.logger.error("Error revoking token",w),this.eventsSubject.next(new OAuthErrorEvent("token_revoke_error",w)),v(w)})})}clearLocationHash(){""!=location.hash&&(location.hash="")}}return Xe.\u0275fac=function(p){return new(p||Xe)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_core__WEBPACK_IMPORTED_MODULE_1__.R0b),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.eN),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthStorage,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(ValidationHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(AuthConfig,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(UrlHelperService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthLogger),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(HashHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common__WEBPACK_IMPORTED_MODULE_18__.K0),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(DateTimeProvider))},Xe.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:Xe,factory:Xe.\u0275fac}),Xe})();class OAuthModuleConfig{}class OAuthResourceServerConfig{}class OAuthResourceServerErrorHandler{}class OAuthNoopResourceServerErrorHandler{handleError(ue){return(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(ue)}}let DefaultOAuthInterceptor=(()=>{class Xe{constructor(p,e,A){this.oAuthService=p,this.errorHandler=e,this.moduleConfig=A}checkUrl(p){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(p):!this.moduleConfig.resourceServer.allowedUrls||!!this.moduleConfig.resourceServer.allowedUrls.find(e=>p.toLowerCase().startsWith(e.toLowerCase()))}intercept(p,e){const A=p.url.toLowerCase();return this.moduleConfig&&this.moduleConfig.resourceServer&&this.checkUrl(A)?this.moduleConfig.resourceServer.sendAccessToken?(0,rxjs__WEBPACK_IMPORTED_MODULE_19__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(this.oAuthService.getAccessToken()).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(M=>!!M)),this.oAuthService.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(M=>"token_received"===M.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.V)(this.oAuthService.waitForTokenInMsec||0),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(M=>(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(M=>this.oAuthService.getAccessToken()))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.q)(1),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_22__.z)(M=>{if(M){const b=p.headers.set("Authorization","Bearer "+M);p=p.clone({headers:b})}return e.handle(p).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(m=>this.errorHandler.handleError(m)))})):e.handle(p).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(M=>this.errorHandler.handleError(M))):e.handle(p)}}return Xe.\u0275fac=function(p){return new(p||Xe)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthResourceServerErrorHandler),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthModuleConfig,8))},Xe.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:Xe,factory:Xe.\u0275fac}),Xe})();class NullValidationHandler{validateSignature(ue){return Promise.resolve(null)}validateAtHash(ue){return Promise.resolve(!0)}}function createDefaultLogger(){return console}function createDefaultStorage(){return typeof sessionStorage<"u"?sessionStorage:new MemoryStorage}let OAuthModule=(()=>{class Xe{static forRoot(p=null,e=NullValidationHandler){return{ngModule:Xe,providers:[OAuthService,UrlHelperService,{provide:OAuthLogger,useFactory:createDefaultLogger},{provide:OAuthStorage,useFactory:createDefaultStorage},{provide:ValidationHandler,useClass:e},{provide:HashHandler,useClass:DefaultHashHandler},{provide:OAuthResourceServerErrorHandler,useClass:OAuthNoopResourceServerErrorHandler},{provide:OAuthModuleConfig,useValue:p},{provide:_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.TP,useClass:DefaultOAuthInterceptor,multi:!0},{provide:DateTimeProvider,useClass:SystemDateTimeProvider}]}}}return Xe.\u0275fac=function(p){return new(p||Xe)},Xe.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_1__.oAB({type:Xe}),Xe.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_1__.cJS({imports:[[_angular_common__WEBPACK_IMPORTED_MODULE_18__.ez]]}),Xe})();const err="PLEASE READ THIS CAREFULLY:\n\nBeginning with angular-oauth2-oidc version 9, the JwksValidationHandler\nhas been moved to an library of its own. If you need it for implementing\nOAuth2/OIDC **implicit flow**, please install it using npm:\n\n npm i angular-oauth2-oidc-jwks --save\n\nAfter that, you can import it into your application:\n\n import { JwksValidationHandler } from 'angular-oauth2-oidc-jwks';\n\nPlease note, that this dependency is not needed for the **code flow**,\nwhich is nowadays the **recommented** one for single page applications.\nThis also results in smaller bundle sizes.\n";class JwksValidationHandler extends NullValidationHandler{constructor(){super(),console.error(err)}}const AUTH_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_1__.OlP("AUTH_CONFIG")},33231:(Xe,ue,p)=>{"use strict";p.d(ue,{Co:()=>Ae,nu:()=>X});var e=p(29521),A=p(94650),C=p(24006),M=p(3238),m=p(59549),b=p(84385),D=p(61135),v=p(39646),R=p(39841),B=p(77579),w=p(63900),L=p(54004),O=p(68675),q=p(91005),te=p(82722),z=p(95698),ie=p(39300),Te=p(18505),pe=p(67376),Le=p(12687),T=p(56709),W=p(51572),F=p(4859),V=p(97392),ee=p(36895),Q=p(10266);const Ee=["searchSelectInput"],ge=["innerSelectSearch"];function ve(ye,_e){if(1&ye){const Se=A.EpF();A.TgZ(0,"mat-checkbox",9),A.NdJ("change",function(Ce){A.CHM(Se);const fe=A.oxw();return A.KtG(fe._emitSelectAllBooleanToParent(Ce.checked))}),A.qZA()}if(2&ye){const Se=A.oxw();A.Q6J("color",null==Se.matFormField?null:Se.matFormField.color)("checked",Se.toggleAllCheckboxChecked)("indeterminate",Se.toggleAllCheckboxIndeterminate)("matTooltip",Se.toggleAllCheckboxTooltipMessage)("matTooltipPosition",Se.toogleAllCheckboxTooltipPosition)}}function De(ye,_e){1&ye&&A._UZ(0,"mat-spinner",10)}function he(ye,_e){1&ye&&A.Hsn(0,1,["*ngIf","clearIcon; else defaultIcon"])}function Ye(ye,_e){if(1&ye&&(A.TgZ(0,"mat-icon",14),A._uU(1),A.qZA()),2&ye){const Se=A.oxw(2);A.Q6J("svgIcon",Se.closeSvgIcon),A.xp6(1),A.hij(" ",Se.closeSvgIcon?null:Se.closeIcon," ")}}function Be(ye,_e){if(1&ye){const Se=A.EpF();A.TgZ(0,"button",11),A.NdJ("click",function(){A.CHM(Se);const Ce=A.oxw();return A.KtG(Ce._reset(!0))}),A.YNc(1,he,1,0,"ng-content",12),A.YNc(2,Ye,2,2,"ng-template",null,13,A.W1O),A.qZA()}if(2&ye){const Se=A.MAs(3),Ne=A.oxw();A.xp6(1),A.Q6J("ngIf",Ne.clearIcon)("ngIfElse",Se)}}function se(ye,_e){1&ye&&A.Hsn(0,2,["*ngIf","noEntriesFound; else defaultNoEntriesFound"])}function le(ye,_e){if(1&ye&&A._uU(0),2&ye){const Se=A.oxw(2);A.Oqu(Se.noEntriesFoundLabel)}}function N(ye,_e){if(1&ye&&(A.TgZ(0,"div",15),A.YNc(1,se,1,0,"ng-content",12),A.YNc(2,le,1,1,"ng-template",null,16,A.W1O),A.qZA()),2&ye){const Se=A.MAs(3),Ne=A.oxw();A.xp6(1),A.Q6J("ngIf",Ne.noEntriesFound)("ngIfElse",Se)}}const k=[[["",8,"mat-select-search-custom-header-content"]],[["","ngxMatSelectSearchClear",""]],[["","ngxMatSelectNoEntriesFound",""]]],be=function(ye,_e){return{"mat-select-search-inner-multiple":ye,"mat-select-search-inner-toggle-all":_e}},Z=[".mat-select-search-custom-header-content","[ngxMatSelectSearchClear]","[ngxMatSelectNoEntriesFound]"];let ce=(()=>{class ye{}return ye.\u0275fac=function(Se){return new(Se||ye)},ye.\u0275dir=A.lG2({type:ye,selectors:[["","ngxMatSelectSearchClear",""]]}),ye})();const xe=["ariaLabel","clearSearchInput","closeIcon","closeSvgIcon","disableInitialFocus","disableScrollToActiveOnOptionsChanged","enableClearOnEscapePressed","hideClearSearchButton","indexAndLengthScreenReaderText","noEntriesFoundLabel","placeholderLabel","preventHomeEndKeyPropagation","searching"],ot=new A.OlP("mat-selectsearch-default-options");let tt=(()=>{class ye{}return ye.\u0275fac=function(Se){return new(Se||ye)},ye.\u0275dir=A.lG2({type:ye,selectors:[["","ngxMatSelectNoEntriesFound",""]]}),ye})(),X=(()=>{class ye{constructor(Se,Ne,Ce,fe=null,r,u=null,_){this.matSelect=Se,this.changeDetectorRef=Ne,this._viewportRuler=Ce,this.matOption=fe,this.liveAnnouncer=r,this.matFormField=u,this.placeholderLabel="Suche",this.type="text",this.closeIcon="close",this.noEntriesFoundLabel="Keine Optionen gefunden",this.indexAndLengthScreenReaderText=" of ",this.clearSearchInput=!0,this.searching=!1,this.disableInitialFocus=!1,this.enableClearOnEscapePressed=!1,this.preventHomeEndKeyPropagation=!1,this.disableScrollToActiveOnOptionsChanged=!1,this.ariaLabel="dropdown search",this.showToggleAllCheckbox=!1,this.toggleAllCheckboxChecked=!1,this.toggleAllCheckboxIndeterminate=!1,this.toggleAllCheckboxTooltipMessage="",this.toogleAllCheckboxTooltipPosition="below",this.hideClearSearchButton=!1,this.alwaysRestoreSelectedOptionsMulti=!1,this.toggleAll=new A.vpe,this.onTouched=E=>{},this._options$=new D.X(null),this.optionsList$=this._options$.pipe((0,w.w)(E=>E?E.changes.pipe((0,L.U)(h=>h.toArray()),(0,O.O)(E.toArray())):(0,v.of)(null))),this.optionsLength$=this.optionsList$.pipe((0,L.U)(E=>E?E.length:0)),this._formControl=new C.NI(""),this._showNoEntriesFound$=(0,R.a)([this._formControl.valueChanges,this.optionsLength$]).pipe((0,L.U)(([E,h])=>this.noEntriesFoundLabel&&E&&h===this.getOptionsLengthOffset())),this._onDestroy=new B.x,this.applyDefaultOptions(_)}get isInsideMatOption(){return!!this.matOption}get value(){return this._formControl.value}set _options(Se){this._options$.next(Se)}get _options(){return this._options$.getValue()}applyDefaultOptions(Se){if(Se)for(const Ne of xe)Se.hasOwnProperty(Ne)&&(this[Ne]=Se[Ne])}ngOnInit(){const Se="mat-select-search-panel";this.matSelect.panelClass?Array.isArray(this.matSelect.panelClass)?this.matSelect.panelClass.push(Se):"string"==typeof this.matSelect.panelClass?this.matSelect.panelClass=[this.matSelect.panelClass,Se]:"object"==typeof this.matSelect.panelClass&&(this.matSelect.panelClass[Se]=!0):this.matSelect.panelClass=Se,this.matOption?(this.matOption.disabled=!0,this.matOption._getHostElement().classList.add("contains-mat-select-search")):console.error(" must be placed inside a element"),this.matSelect.openedChange.pipe((0,q.g)(1),(0,te.R)(this._onDestroy)).subscribe(Ne=>{Ne?(this.updateInputWidth(),this.disableInitialFocus||this._focus()):this.clearSearchInput&&this._reset()}),this.matSelect.openedChange.pipe((0,z.q)(1)).pipe((0,te.R)(this._onDestroy)).subscribe(()=>{this.matSelect._keyManager?this.matSelect._keyManager.change.pipe((0,te.R)(this._onDestroy)).subscribe(()=>this.adjustScrollTopToFitActiveOptionIntoView()):console.log("_keyManager was not initialized."),this._options=this.matSelect.options;let Ne=this._options.toArray()[this.getOptionsLengthOffset()];this._options.changes.pipe((0,te.R)(this._onDestroy)).subscribe(()=>{setTimeout(()=>{const Ce=this._options.toArray(),fe=Ce[this.getOptionsLengthOffset()],r=this.matSelect._keyManager;r&&this.matSelect.panelOpen&&((!this.matSelect.compareWith(Ne,fe)||!r.activeItem||!Ce.find(_=>this.matSelect.compareWith(_,r.activeItem)))&&r.setFirstItemActive(),setTimeout(()=>{this.updateInputWidth()}),this.disableScrollToActiveOnOptionsChanged||this.adjustScrollTopToFitActiveOptionIntoView()),Ne=fe})})}),this._showNoEntriesFound$.pipe((0,te.R)(this._onDestroy)).subscribe(Ne=>{this.matOption&&(Ne?this.matOption._getHostElement().classList.add("mat-select-search-no-entries-found"):this.matOption._getHostElement().classList.remove("mat-select-search-no-entries-found"))}),this._viewportRuler.change().pipe((0,te.R)(this._onDestroy)).subscribe(()=>{this.matSelect.panelOpen&&this.updateInputWidth()}),this.initMultipleHandling(),this.optionsList$.pipe((0,te.R)(this._onDestroy)).subscribe(()=>{this.changeDetectorRef.markForCheck()})}_emitSelectAllBooleanToParent(Se){this.toggleAll.emit(Se)}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}_isToggleAllCheckboxVisible(){return this.matSelect.multiple&&this.showToggleAllCheckbox}_handleKeydown(Se){(Se.key&&1===Se.key.length||Se.keyCode>=e.A&&Se.keyCode<=e.Z||Se.keyCode>=e.xE&&Se.keyCode<=e.aO||Se.keyCode===e.L_||this.preventHomeEndKeyPropagation&&(Se.keyCode===e.Sd||Se.keyCode===e.uR))&&Se.stopPropagation(),this.matSelect.multiple&&Se.key&&Se.keyCode===e.K5&&setTimeout(()=>this._focus()),!0===this.enableClearOnEscapePressed&&Se.keyCode===e.hY&&this.value&&(this._reset(!0),Se.stopPropagation())}_handleKeyup(Se){if(Se.keyCode===e.LH||Se.keyCode===e.JH){const Ne=this.matSelect._getAriaActiveDescendant(),Ce=this._options.toArray().findIndex(fe=>fe.id===Ne);if(-1!==Ce){const fe=this._options.toArray()[Ce];this.liveAnnouncer.announce(fe.viewValue+" "+this.getAriaIndex(Ce)+this.indexAndLengthScreenReaderText+this.getAriaLength())}}}getAriaIndex(Se){return 0===this.getOptionsLengthOffset()?Se+1:Se}getAriaLength(){return this._options.toArray().length-this.getOptionsLengthOffset()}writeValue(Se){this._lastExternalInputValue=Se,this._formControl.setValue(Se),this.changeDetectorRef.markForCheck()}onBlur(){this.onTouched()}registerOnChange(Se){this._formControl.valueChanges.pipe((0,ie.h)(Ne=>Ne!==this._lastExternalInputValue),(0,Te.b)(()=>this._lastExternalInputValue=void 0),(0,te.R)(this._onDestroy)).subscribe(Se)}registerOnTouched(Se){this.onTouched=Se}_focus(){if(!this.searchSelectInput||!this.matSelect.panel)return;const Se=this.matSelect.panel.nativeElement,Ne=Se.scrollTop;this.searchSelectInput.nativeElement.focus(),Se.scrollTop=Ne}_reset(Se){this._formControl.setValue(""),Se&&this._focus()}initMultipleHandling(){this.matSelect.ngControl?(this.previousSelectedValues=this.matSelect.ngControl.value,this.matSelect.ngControl.valueChanges.pipe((0,te.R)(this._onDestroy)).subscribe(Se=>{let Ne=!1;if(this.matSelect.multiple&&(this.alwaysRestoreSelectedOptionsMulti||this._formControl.value&&this._formControl.value.length)&&this.previousSelectedValues&&Array.isArray(this.previousSelectedValues)){(!Se||!Array.isArray(Se))&&(Se=[]);const Ce=this.matSelect.options.map(fe=>fe.value);this.previousSelectedValues.forEach(fe=>{!Se.some(r=>this.matSelect.compareWith(r,fe))&&!Ce.some(r=>this.matSelect.compareWith(r,fe))&&(Se.push(fe),Ne=!0)})}this.previousSelectedValues=Se,Ne&&this.matSelect._onChange(Se)})):this.matSelect.multiple&&console.error("the mat-select containing ngx-mat-select-search must have a ngModel or formControl directive when multiple=true")}adjustScrollTopToFitActiveOptionIntoView(){if(this.matSelect.panel&&this.matSelect.options.length>0){const Se=this.getMatOptionHeight(),Ne=this.matSelect._keyManager.activeItemIndex||0,Ce=(0,M.CB)(Ne,this.matSelect.options,this.matSelect.optionGroups),fe=(this.matOption?-1:0)+Ce+Ne,r=this.matSelect.panel.nativeElement.scrollTop,u=this.innerSelectSearch.nativeElement.offsetHeight,_=Math.floor((256-u)/Se),E=Math.round((r+u)/Se)-1;E>=fe?this.matSelect.panel.nativeElement.scrollTop=fe*Se:E+_<=fe&&(this.matSelect.panel.nativeElement.scrollTop=(fe+1)*Se-(256-u))}}updateInputWidth(){if(!this.innerSelectSearch||!this.innerSelectSearch.nativeElement)return;let Ne,Se=this.innerSelectSearch.nativeElement;for(;Se=Se.parentElement;)if(Se.classList.contains("mat-select-panel")){Ne=Se;break}Ne&&(this.innerSelectSearch.nativeElement.style.width=Ne.clientWidth+"px")}getMatOptionHeight(){return this.matSelect.options.length>0?this.matSelect.options.first._getHostElement().getBoundingClientRect().height:0}getOptionsLengthOffset(){return this.matOption?1:0}}return ye.\u0275fac=function(Se){return new(Se||ye)(A.Y36(b.gD),A.Y36(A.sBO),A.Y36(pe.rL),A.Y36(M.ey,8),A.Y36(Le.Kd),A.Y36(m.KE,8),A.Y36(ot,8))},ye.\u0275cmp=A.Xpm({type:ye,selectors:[["ngx-mat-select-search"]],contentQueries:function(Se,Ne,Ce){if(1&Se&&(A.Suo(Ce,ce,5),A.Suo(Ce,tt,5)),2&Se){let fe;A.iGM(fe=A.CRH())&&(Ne.clearIcon=fe.first),A.iGM(fe=A.CRH())&&(Ne.noEntriesFound=fe.first)}},viewQuery:function(Se,Ne){if(1&Se&&(A.Gf(Ee,7,A.SBq),A.Gf(ge,7,A.SBq)),2&Se){let Ce;A.iGM(Ce=A.CRH())&&(Ne.searchSelectInput=Ce.first),A.iGM(Ce=A.CRH())&&(Ne.innerSelectSearch=Ce.first)}},hostVars:2,hostBindings:function(Se,Ne){2&Se&&A.ekj("mat-select-search-inside-mat-option",Ne.isInsideMatOption)},inputs:{placeholderLabel:"placeholderLabel",type:"type",closeIcon:"closeIcon",closeSvgIcon:"closeSvgIcon",noEntriesFoundLabel:"noEntriesFoundLabel",indexAndLengthScreenReaderText:"indexAndLengthScreenReaderText",clearSearchInput:"clearSearchInput",searching:"searching",disableInitialFocus:"disableInitialFocus",enableClearOnEscapePressed:"enableClearOnEscapePressed",preventHomeEndKeyPropagation:"preventHomeEndKeyPropagation",disableScrollToActiveOnOptionsChanged:"disableScrollToActiveOnOptionsChanged",ariaLabel:"ariaLabel",showToggleAllCheckbox:"showToggleAllCheckbox",toggleAllCheckboxChecked:"toggleAllCheckboxChecked",toggleAllCheckboxIndeterminate:"toggleAllCheckboxIndeterminate",toggleAllCheckboxTooltipMessage:"toggleAllCheckboxTooltipMessage",toogleAllCheckboxTooltipPosition:"toogleAllCheckboxTooltipPosition",hideClearSearchButton:"hideClearSearchButton",alwaysRestoreSelectedOptionsMulti:"alwaysRestoreSelectedOptionsMulti"},outputs:{toggleAll:"toggleAll"},features:[A._Bn([{provide:C.JU,useExisting:(0,A.Gpc)(()=>ye),multi:!0}])],ngContentSelectors:Z,decls:11,vars:14,consts:[["matInput","",1,"mat-select-search-input","mat-select-search-hidden"],[1,"mat-select-search-inner","mat-typography","mat-datepicker-content","mat-tab-header",3,"ngClass"],["innerSelectSearch",""],["class","mat-select-search-toggle-all-checkbox","matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",3,"color","checked","indeterminate","matTooltip","matTooltipPosition","change",4,"ngIf"],["autocomplete","off",1,"mat-select-search-input","mat-input-element",3,"type","formControl","placeholder","keydown","keyup","blur"],["searchSelectInput",""],["class","mat-select-search-spinner","diameter","16",4,"ngIf"],["mat-button","","mat-icon-button","","aria-label","Clear","class","mat-select-search-clear",3,"click",4,"ngIf"],["class","mat-select-search-no-entries-found",4,"ngIf"],["matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",1,"mat-select-search-toggle-all-checkbox",3,"color","checked","indeterminate","matTooltip","matTooltipPosition","change"],["diameter","16",1,"mat-select-search-spinner"],["mat-button","","mat-icon-button","","aria-label","Clear",1,"mat-select-search-clear",3,"click"],[4,"ngIf","ngIfElse"],["defaultIcon",""],[3,"svgIcon"],[1,"mat-select-search-no-entries-found"],["defaultNoEntriesFound",""]],template:function(Se,Ne){1&Se&&(A.F$t(k),A._UZ(0,"input",0),A.TgZ(1,"div",1,2),A.YNc(3,ve,1,5,"mat-checkbox",3),A.TgZ(4,"input",4,5),A.NdJ("keydown",function(fe){return Ne._handleKeydown(fe)})("keyup",function(fe){return Ne._handleKeyup(fe)})("blur",function(){return Ne.onBlur()}),A.qZA(),A.YNc(6,De,1,0,"mat-spinner",6),A.YNc(7,Be,4,2,"button",7),A.Hsn(8),A.qZA(),A.YNc(9,N,4,2,"div",8),A.ALo(10,"async")),2&Se&&(A.xp6(1),A.Q6J("ngClass",A.WLB(11,be,Ne.matSelect.multiple,Ne._isToggleAllCheckboxVisible())),A.xp6(2),A.Q6J("ngIf",Ne._isToggleAllCheckboxVisible()),A.xp6(1),A.Q6J("type",Ne.type)("formControl",Ne._formControl)("placeholder",Ne.placeholderLabel),A.uIk("aria-label",Ne.ariaLabel),A.xp6(2),A.Q6J("ngIf",Ne.searching),A.xp6(1),A.Q6J("ngIf",!Ne.hideClearSearchButton&&Ne.value&&!Ne.searching),A.xp6(2),A.Q6J("ngIf",A.lcZ(10,9,Ne._showNoEntriesFound$)))},dependencies:[T.oG,W.Ou,F.lW,V.Hw,ee.mk,ee.O5,Q.gM,C.Fj,C.JJ,C.oH,ee.Ov],styles:[".mat-select-search-hidden[_ngcontent-%COMP%]{visibility:hidden}.mat-select-search-inner[_ngcontent-%COMP%]{position:absolute;top:0;width:100%;border-bottom-width:1px;border-bottom-style:solid;z-index:100;font-size:inherit;box-shadow:none;border-radius:4px 4px 0 0;-webkit-transform:translate3d(0,0,0)}.mat-select-search-inner.mat-select-search-inner-multiple[_ngcontent-%COMP%]{width:100%}.mat-select-search-inner.mat-select-search-inner-multiple.mat-select-search-inner-toggle-all[_ngcontent-%COMP%]{display:flex;align-items:center}.mat-select-search-inner[_ngcontent-%COMP%] .mat-input-element[_ngcontent-%COMP%]{flex-basis:auto}.mat-select-search-inner[_ngcontent-%COMP%] .mat-input-element[_ngcontent-%COMP%]:-ms-input-placeholder{-ms-user-select:text} .mat-select-search-panel{transform:none!important;overflow-x:hidden}.mat-select-search-input[_ngcontent-%COMP%]{padding:16px 44px 16px 16px;box-sizing:border-box;width:100%}[dir=rtl][_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%]{padding-right:16px;padding-left:44px}.mat-select-search-no-entries-found[_ngcontent-%COMP%]{padding:16px}.mat-select-search-clear[_ngcontent-%COMP%]{position:absolute;right:4px;top:5px}[dir=rtl][_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%]{right:auto;left:4px}.mat-select-search-spinner[_ngcontent-%COMP%]{position:absolute;right:16px;top:calc(50% - 8px)}[dir=rtl][_nghost-%COMP%] .mat-select-search-spinner[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-spinner[_ngcontent-%COMP%]{right:auto;left:16px}.mat-select-search-inside-mat-option[_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0;height:3em;line-height:3em}.mat-select-search-inside-mat-option[_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%]{top:3px} .mat-option[aria-disabled=true].contains-mat-select-search{position:static;padding:0} .mat-option[aria-disabled=true].contains-mat-select-search .mat-icon{margin-right:0;margin-left:0} .mat-option[aria-disabled=true].contains-mat-select-search .mat-option-pseudo-checkbox{display:none} .mat-option[aria-disabled=true].contains-mat-select-search.mat-select-search-no-entries-found{height:6em}.mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%]{padding-left:16px;padding-bottom:2px}[dir=rtl][_nghost-%COMP%] .mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%]{padding-left:0;padding-right:16px}"],changeDetection:0}),ye})(),Ae=(()=>{class ye{}return ye.\u0275fac=function(Se){return new(Se||ye)},ye.\u0275mod=A.oAB({type:ye}),ye.\u0275inj=A.cJS({imports:[[ee.ez,C.UX,F.ot,T.p9,V.Ps,W.Cq,Q.AV]]}),ye})()},15861:(Xe,ue,p)=>{"use strict";function e(C,M,m,b,D,v,R){try{var B=C[v](R),w=B.value}catch(L){return void m(L)}B.done?M(w):Promise.resolve(w).then(b,D)}function A(C){return function(){var M=this,m=arguments;return new Promise(function(b,D){var v=C.apply(M,m);function R(w){e(v,b,D,R,B,"next",w)}function B(w){e(v,b,D,R,B,"throw",w)}R(void 0)})}}p.d(ue,{Z:()=>A})},4147:Xe=>{"use strict";Xe.exports={i8:"10.4.0"}}},Xe=>{Xe(Xe.s=92013)}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/main.726c32cf3636e3bb.js b/dist/apps/admin-gui/main.726c32cf3636e3bb.js deleted file mode 100644 index 1a0dad7fb..000000000 --- a/dist/apps/admin-gui/main.726c32cf3636e3bb.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkadmin_gui=self.webpackChunkadmin_gui||[]).push([[179],{57788:(Qe,he,u)=>{"use strict";u.d(he,{g:()=>nt});var e=u(32105),m=u(10036),A=u(94650),w=u(36895),p=u(3848),g=u(51572),T=u(64877),E=u(62109),S=u(62707),R=u(38383),v=u(74010),D=u(9244),F=u(97392),z=u(4859),$=u(10266),G=u(42377),q=u(64901),_e=u(89383);function ce(Ye,Tt){if(1&Ye){const J=A.EpF();A.TgZ(0,"div",6)(1,"div",7)(2,"perun-web-apps-entity-search-select",8),A.NdJ("entitySelected",function(le){const ke=A.CHM(J).$implicit;return A.KtG(ke[0]=le.namespace+":"+le.friendlyName)}),A.ALo(3,"translate"),A.ALo(4,"translate"),A.ALo(5,"translate"),A.qZA()(),A.TgZ(6,"div",9)(7,"perun-web-apps-debounce-filter",10),A.NdJ("filter",function(le){const ke=A.CHM(J).$implicit;return A.KtG(ke[1]=le)}),A.qZA()(),A.TgZ(8,"div",11)(9,"button",12),A.NdJ("click",function(){const ne=A.CHM(J).$implicit,ke=A.oxw(2);return A.KtG(ke.removeOption(ne))}),A.ALo(10,"translate"),A.TgZ(11,"mat-icon"),A._uU(12,"clear"),A.qZA()()()()}if(2&Ye){const J=A.oxw(2);A.xp6(2),A.Q6J("entities",J.availableAttrDefs)("searchFunction",J.nameFunction)("mainTextFunction",J.nameFunction)("secondaryTextFunction",J.secondaryTextFunction)("selectPlaceholder",A.lcZ(3,10,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.SELECT_ATTR_DEF"))("findPlaceholder",A.lcZ(4,12,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.FIND_ATTR_DEF"))("noEntriesText",A.lcZ(5,14,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.NO_ATTR_DEF_FOUND")),A.xp6(5),A.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.SEARCH_PLACEHOLDER"),A.xp6(2),A.s9C("matTooltip",A.lcZ(10,16,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.REMOVE_PARAMETER")),A.Q6J("disabled",1===J.options.length)}}function Te(Ye,Tt){if(1&Ye){const J=A.EpF();A.TgZ(0,"div",1),A.YNc(1,ce,13,18,"div",2),A.TgZ(2,"button",3),A.NdJ("click",function(){A.CHM(J);const le=A.oxw();return A.KtG(le.addOption())}),A._uU(3),A.ALo(4,"translate"),A.qZA(),A.TgZ(5,"span",4),A.ALo(6,"translate"),A.TgZ(7,"button",5),A.NdJ("click",function(){A.CHM(J);const le=A.oxw();return A.KtG(le.searchEntities())}),A.TgZ(8,"mat-icon"),A._uU(9,"search"),A.qZA(),A._uU(10),A.ALo(11,"translate"),A.qZA()()()}if(2&Ye){const J=A.oxw();A.xp6(1),A.Q6J("ngForOf",J.options),A.xp6(2),A.hij(" ",A.lcZ(4,6,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.ADD_PARAMETER")," "),A.xp6(2),A.s9C("matTooltip",A.lcZ(6,8,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.SEARCH_BUTTON_TOOLTIP")),A.Q6J("matTooltipDisabled",!J.emptySearchString()),A.xp6(2),A.Q6J("disabled",J.emptySearchString()),A.xp6(3),A.hij(" ",A.lcZ(11,10,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.SEARCH_BUTTON")," ")}}let b=(()=>{class Ye{constructor(){this.attributeSelected=new A.vpe,this.search=new A.vpe,this.availableAttrDefs=[],this.options=[],this.nameFunction=J=>J.displayName,this.secondaryTextFunction=J=>"#"+String(J.id)}ngOnInit(){this.availableAttrDefs=this.attributes.filter(J=>J.entity===this.attributesForEntity).sort(D.Xd)}ngOnChanges(){this.options=[],this.options.push([this.attributes[0].namespace+":"+this.attributes[0].friendlyName,""])}removeOption(J){this.options=this.options.filter(Xe=>Xe!==J)}addOption(){this.options.push([this.attributes[0].namespace+":"+this.attributes[0].friendlyName,""])}emptySearchString(){return this.options.some(J=>0===J[1].length)}searchEntities(){const J={};this.options.forEach(Xe=>{J[Xe[0]]=Xe[1]}),this.search.emit(J)}}return Ye.\u0275fac=function(J){return new(J||Ye)},Ye.\u0275cmp=A.Xpm({type:Ye,selectors:[["perun-web-apps-attribute-search-select"]],inputs:{attributes:"attributes",attributesForEntity:"attributesForEntity"},outputs:{attributeSelected:"attributeSelected",search:"search"},features:[A.TTD],decls:1,vars:1,consts:[["class","container ml-0 mr-0 pl-0 pr-0 mt-3",4,"ngIf"],[1,"container","ml-0","mr-0","pl-0","pr-0","mt-3"],["class","row",4,"ngFor","ngForOf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["matTooltipPosition","below",3,"matTooltip","matTooltipDisabled"],["data-cy","searcher-search-button","mat-stroked-button","",1,"mr-2",3,"disabled","click"],[1,"row"],[1,"col-7"],[3,"entities","searchFunction","mainTextFunction","secondaryTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"],[1,"col-4","pr-0"],[3,"placeholder","filter"],[1,"col-1"],["mat-icon-button","","color","warn",1,"mt-2",3,"matTooltip","disabled","click"]],template:function(J,Xe){1&J&&A.YNc(0,Te,12,12,"div",0),2&J&&A.Q6J("ngIf",void 0!==Xe.options)},dependencies:[w.sg,w.O5,F.Hw,z.lW,$.gM,G.i,q.P,_e.X$]}),Ye})();function H(Ye,Tt){1&Ye&&(A._uU(0),A.ALo(1,"translate")),2&Ye&&A.hij(" ",A.lcZ(1,1,"ADMIN.SEARCHER.TAB_USERS")," ")}function L(Ye,Tt){if(1&Ye){const J=A.EpF();A.TgZ(0,"perun-web-apps-attribute-search-select",8),A.NdJ("search",function(le){A.CHM(J);const ne=A.oxw(2);return A.KtG(ne.searchEntities(le,"user"))}),A.qZA()}if(2&Ye){const J=A.oxw(2);A.Q6J("attributes",J.allAttrDefinitions)("attributesForEntity","user")}}const V=function(){return["user","id","name"]};function Q(Ye,Tt){if(1&Ye&&A._UZ(0,"app-users-list",9),2&Ye){const J=A.oxw(2);A.Q6J("tableId",J.tableId)("displayedColumns",A.DdM(3,V))("users",J.entities)}}function ae(Ye,Tt){if(1&Ye&&(A.YNc(0,L,1,2,"perun-web-apps-attribute-search-select",6),A.YNc(1,Q,1,4,"app-users-list",7)),2&Ye){const J=A.oxw();A.Q6J("ngIf",!J.loading),A.xp6(1),A.Q6J("ngIf",!J.loadingEntityData)}}function xe(Ye,Tt){1&Ye&&(A._uU(0),A.ALo(1,"translate")),2&Ye&&A.hij(" ",A.lcZ(1,1,"ADMIN.SEARCHER.TAB_MEMBERS")," ")}function ge(Ye,Tt){if(1&Ye){const J=A.EpF();A.TgZ(0,"perun-web-apps-vo-search-select",13),A.NdJ("voSelected",function(le){A.CHM(J);const ne=A.oxw(2);return A.KtG(ne.voSelected(le))}),A.qZA()}if(2&Ye){const J=A.oxw(2);A.Q6J("vos",J.vos)}}function Se(Ye,Tt){if(1&Ye){const J=A.EpF();A.TgZ(0,"perun-web-apps-attribute-search-select",8),A.NdJ("search",function(le){A.CHM(J);const ne=A.oxw(2);return A.KtG(ne.searchEntities(le,"member"))}),A.qZA()}if(2&Ye){const J=A.oxw(2);A.Q6J("attributes",J.allAttrDefinitions)("attributesForEntity","user")}}const Be=function(){return["id","voId","userId","status"]};function pe(Ye,Tt){if(1&Ye){const J=A.EpF();A.TgZ(0,"perun-web-apps-members-list",14),A.NdJ("updateTable",function(){A.CHM(J);const le=A.oxw(2);return A.KtG(le.searchEntities(le.searchInput,"member"))}),A.qZA()}if(2&Ye){const J=A.oxw(2);A.Q6J("tableId",J.tableId)("displayedColumns",A.DdM(4,Be))("disableExpirationChange",!0)("members",J.entities)}}function $e(Ye,Tt){if(1&Ye&&(A.TgZ(0,"div",10),A.YNc(1,ge,1,1,"perun-web-apps-vo-search-select",11),A.qZA(),A.YNc(2,Se,1,2,"perun-web-apps-attribute-search-select",6),A.YNc(3,pe,1,5,"perun-web-apps-members-list",12)),2&Ye){const J=A.oxw();A.xp6(1),A.Q6J("ngIf",J.vos.length>0),A.xp6(1),A.Q6J("ngIf",!J.loading),A.xp6(1),A.Q6J("ngIf",!J.loadingEntityData)}}function Ce(Ye,Tt){1&Ye&&(A._uU(0),A.ALo(1,"translate")),2&Ye&&A.hij(" ",A.lcZ(1,1,"ADMIN.SEARCHER.TAB_FACILITIES")," ")}function de(Ye,Tt){if(1&Ye){const J=A.EpF();A.TgZ(0,"perun-web-apps-attribute-search-select",8),A.NdJ("search",function(le){A.CHM(J);const ne=A.oxw(2);return A.KtG(ne.searchEntities(le,"facility"))}),A.qZA()}if(2&Ye){const J=A.oxw(2);A.Q6J("attributes",J.allAttrDefinitions)("attributesForEntity","facility")}}const re=function(){return["id","name","description"]};function B(Ye,Tt){if(1&Ye&&A._UZ(0,"perun-web-apps-facilities-list",16),2&Ye){const J=A.oxw(2);A.Q6J("tableId",J.tableId)("displayedColumns",A.DdM(3,re))("facilities",J.entities)}}function N(Ye,Tt){if(1&Ye&&(A.YNc(0,de,1,2,"perun-web-apps-attribute-search-select",6),A.YNc(1,B,1,4,"perun-web-apps-facilities-list",15)),2&Ye){const J=A.oxw();A.Q6J("ngIf",!J.loading),A.xp6(1),A.Q6J("ngIf",!J.loadingEntityData)}}function Me(Ye,Tt){1&Ye&&(A._uU(0),A.ALo(1,"translate")),2&Ye&&A.hij(" ",A.lcZ(1,1,"ADMIN.SEARCHER.TAB_RESOURCES")," ")}function Y(Ye,Tt){if(1&Ye){const J=A.EpF();A.TgZ(0,"perun-web-apps-attribute-search-select",8),A.NdJ("search",function(le){A.CHM(J);const ne=A.oxw(2);return A.KtG(ne.searchEntities(le,"resource"))}),A.qZA()}if(2&Ye){const J=A.oxw(2);A.Q6J("attributes",J.allAttrDefinitions)("attributesForEntity","resource")}}const be=function(){return["id","name","description","voId","facilityId"]};function De(Ye,Tt){if(1&Ye&&A._UZ(0,"perun-web-apps-resources-list",18),2&Ye){const J=A.oxw(2);A.Q6J("tableId",J.tableId)("displayedColumns",A.DdM(3,be))("resources",J.entities)}}function We(Ye,Tt){if(1&Ye&&(A.YNc(0,Y,1,2,"perun-web-apps-attribute-search-select",6),A.YNc(1,De,1,4,"perun-web-apps-resources-list",17)),2&Ye){const J=A.oxw();A.Q6J("ngIf",!J.loading),A.xp6(1),A.Q6J("ngIf",!J.loadingEntityData)}}function Pe(Ye,Tt){1&Ye&&A._UZ(0,"mat-spinner",19)}let nt=(()=>{class Ye{constructor(J,Xe,le){this.attributesManager=J,this.searcher=Xe,this.voService=le,this.loadingEntityData=!1,this.allAttrDefinitions=[],this.tableId=m.ee,this.entities=[],this.vos=[]}ngOnInit(){this.loading=!0,this.attributesManager.getAllAttributeDefinitions().subscribe(J=>{this.allAttrDefinitions=J,this.loading=!1})}tabChanged(J){switch(this.entities=[],J){case 0:this.tableId=m.ee;break;case 1:this.loadingEntityData=!0,this.loadAllVos(),this.tableId=m.FF;break;case 2:this.tableId=m.$I;break;case 3:this.tableId=m.XH}}loadAllVos(){this.loadingEntityData=!0,this.voService.getAllVos().subscribe(J=>{this.vos=J,this.selectedVo=J[0],this.loadingEntityData=!1})}voSelected(J){void 0!==J&&(this.selectedVo=J)}searchEntities(J,Xe){switch(this.searchInput=J,this.loadingEntityData=!0,Xe){case"user":this.getUsers();break;case"member":this.getMembers();break;case"facility":this.getFacilities();break;case"resource":this.getResources()}}getUsers(){this.searcher.getUsersSearcher({attributesWithSearchingValues:this.searchInput}).subscribe(J=>{this.entities=J,this.loadingEntityData=!1})}getMembers(){this.searcher.getMembersByUserAttributes({vo:this.selectedVo.id,userAttributesWithSearchingValues:this.searchInput}).subscribe(J=>{this.entities=J,this.loadingEntityData=!1})}getFacilities(){this.searcher.getFacilities({attributesWithSearchingValues:this.searchInput}).subscribe(J=>{this.entities=J.map(Xe=>({facility:Xe})),this.loadingEntityData=!1})}getResources(){this.searcher.getAttributesResources({attributesWithSearchingValues:this.searchInput}).subscribe(J=>{this.entities=J,this.loadingEntityData=!1})}}return Ye.id="AdminSearcherComponent",Ye.\u0275fac=function(J){return new(J||Ye)(A.Y36(e.H8),A.Y36(e.t7),A.Y36(e.YF))},Ye.\u0275cmp=A.Xpm({type:Ye,selectors:[["app-admin-searcher"]],hostVars:2,hostBindings:function(J,Xe){2&J&&A.ekj("router-component",Xe.true)},decls:17,vars:4,consts:[[1,"page-subtitle"],[3,"selectedIndexChange"],[1,"mb-2"],["matTabLabel",""],["matTabContent",""],["class","ml-auto mr-auto",4,"ngIf"],[3,"attributes","attributesForEntity","search",4,"ngIf"],[3,"tableId","displayedColumns","users",4,"ngIf"],[3,"attributes","attributesForEntity","search"],[3,"tableId","displayedColumns","users"],[1,"mt-3"],[3,"vos","voSelected",4,"ngIf"],[3,"tableId","displayedColumns","disableExpirationChange","members","updateTable",4,"ngIf"],[3,"vos","voSelected"],[3,"tableId","displayedColumns","disableExpirationChange","members","updateTable"],[3,"tableId","displayedColumns","facilities",4,"ngIf"],[3,"tableId","displayedColumns","facilities"],[3,"tableId","displayedColumns","resources",4,"ngIf"],[3,"tableId","displayedColumns","resources"],[1,"ml-auto","mr-auto"]],template:function(J,Xe){1&J&&(A.TgZ(0,"h1",0),A._uU(1),A.ALo(2,"translate"),A.qZA(),A.TgZ(3,"mat-tab-group",1),A.NdJ("selectedIndexChange",function(ne){return Xe.tabChanged(ne)}),A.TgZ(4,"mat-tab",2),A.YNc(5,H,2,3,"ng-template",3),A.YNc(6,ae,2,2,"ng-template",4),A.qZA(),A.TgZ(7,"mat-tab"),A.YNc(8,xe,2,3,"ng-template",3),A.YNc(9,$e,4,3,"ng-template",4),A.qZA(),A.TgZ(10,"mat-tab"),A.YNc(11,Ce,2,3,"ng-template",3),A.YNc(12,N,2,2,"ng-template",4),A.qZA(),A.TgZ(13,"mat-tab"),A.YNc(14,Me,2,3,"ng-template",3),A.YNc(15,We,2,2,"ng-template",4),A.qZA()(),A.YNc(16,Pe,1,0,"mat-spinner",5)),2&J&&(A.xp6(1),A.Oqu(A.lcZ(2,2,"ADMIN.SEARCHER.TITLE")),A.xp6(15),A.Q6J("ngIf",Xe.loading||Xe.loadingEntityData))},dependencies:[w.O5,p.SP,p.uD,p.uX,p.Vc,g.Ou,T.C,E.C,S.M,R.O,v.X,b,_e.X$]}),Ye})()},80774:(Qe,he,u)=>{"use strict";u.d(he,{F:()=>b});var e=u(95017),m=u(32105),A=u(10036),w=u(9244),p=u(40009),g=u(90719),T=u(69723),E=u(94650),S=u(65412),R=u(36895),v=u(4859),D=u(51572),F=u(60205),z=u(96214),$=u(7434),G=u(89383);function q(H,L){if(1&H){const V=E.EpF();E.TgZ(0,"button",7),E.NdJ("click",function(){E.CHM(V);const ae=E.oxw();return E.KtG(ae.createService())}),E._uU(1),E.ALo(2,"translate"),E.qZA()}2&H&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"ADMIN.SERVICES.CREATE")," "))}function _e(H,L){if(1&H){const V=E.EpF();E.TgZ(0,"button",8),E.NdJ("click",function(){E.CHM(V);const ae=E.oxw();return E.KtG(ae.deleteService())}),E._uU(1),E.ALo(2,"translate"),E.qZA()}if(2&H){const V=E.oxw();E.Q6J("disabled",0===V.selection.selected.length),E.xp6(1),E.hij(" ",E.lcZ(2,2,"ADMIN.SERVICES.DELETE")," ")}}function ce(H,L){1&H&&E._UZ(0,"mat-spinner",9)}function Te(H,L){if(1&H&&E._UZ(0,"app-services-list",10),2&H){const V=E.oxw();E.Q6J("filterValue",V.filterValue)("selection",V.selection)("services",V.services)("tableId",V.tableId)}}let b=(()=>{class H{constructor(V,Q,ae){this.serviceManager=V,this.dialog=Q,this.authResolver=ae,this.selection=new e.Ov(!0,[]),this.loading=!1,this.filterValue="",this.tableId=A.NL}ngOnInit(){this.serviceManager.getServices().subscribe(V=>{this.services=V,this.refreshTable()})}createService(){const V=(0,w.kZ)();V.width="600px",V.data={theme:"admin-theme"},this.dialog.open(p.R,V).afterClosed().subscribe(ae=>{ae&&this.refreshTable()})}deleteService(){const V=(0,w.kZ)();V.width="600px",V.data={theme:"admin-theme",services:this.selection.selected},this.dialog.open(g.m,V).afterClosed().subscribe(ae=>{ae&&this.refreshTable()})}refreshTable(){this.loading=!0,this.serviceManager.getServices().subscribe(V=>{this.services=V,this.selection.clear(),this.loading=!1})}applyFilter(V){this.filterValue=V}}return H.id="AdminServicesComponent",H.\u0275fac=function(V){return new(V||H)(E.Y36(m.KK),E.Y36(S.uw),E.Y36(T.x4))},H.\u0275cmp=E.Xpm({type:H,selectors:[["app-admin-services"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","class","action-button mr-2","data-cy","service-create-button","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","data-cy","service-delete-button","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","mr-auto ml-auto",4,"ngIf"],[3,"filterValue","selection","services","tableId",4,"ngIf"],["color","accent","data-cy","service-create-button","mat-flat-button","",1,"action-button","mr-2",3,"click"],["color","warn","data-cy","service-delete-button","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],[3,"filterValue","selection","services","tableId"]],template:function(V,Q){1&V&&(E.TgZ(0,"div")(1,"h1",0),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.TgZ(4,"perun-web-apps-refresh-button",1),E.NdJ("refresh",function(){return Q.refreshTable()}),E.qZA(),E.YNc(5,q,3,3,"button",2),E.YNc(6,_e,3,4,"button",3),E.TgZ(7,"perun-web-apps-immediate-filter",4),E.NdJ("filter",function(xe){return Q.applyFilter(xe)}),E.qZA(),E.YNc(8,ce,1,0,"mat-spinner",5),E.YNc(9,Te,1,4,"app-services-list",6),E.qZA()),2&V&&(E.xp6(2),E.Oqu(E.lcZ(3,6,"ADMIN.SERVICES.TITLE")),E.xp6(3),E.Q6J("ngIf",Q.authResolver.isPerunAdmin()),E.xp6(1),E.Q6J("ngIf",Q.authResolver.isPerunAdmin()),E.xp6(1),E.Q6J("placeholder","ADMIN.SERVICES.FILTER"),E.xp6(1),E.Q6J("ngIf",Q.loading),E.xp6(1),E.Q6J("ngIf",!Q.loading))},dependencies:[R.O5,v.lW,D.Ou,F.Q,z.t,$.L,G.X$]}),H})()},25828:(Qe,he,u)=>{"use strict";u.d(he,{t:()=>v});var e=u(10036),m=u(64080),A=u(69723),w=u(94650),p=u(56709),g=u(96214),T=u(64901),E=u(11447),S=u(89383);const R=function(){return["user","id","name","email","logins","organization"]};let v=(()=>{class D{constructor(z){this.storeService=z,this.usersWithoutVo=!1,this.tableId=e.xx,this.attributes=[],this.update=!1}ngOnInit(){this.attributes=[m.r.USER_DEF_ORGANIZATION,m.r.USER_DEF_PREFERRED_MAIL],this.attributes=this.attributes.concat(this.storeService.getLoginAttributeNames())}onSearchByString(z){this.searchString=z}findUsersWithoutVO(){this.usersWithoutVo=!this.usersWithoutVo}refresh(){this.update=!this.update}}return D.id="AdminUsersComponent",D.\u0275fac=function(z){return new(z||D)(w.Y36(A.d6))},D.\u0275cmp=w.Xpm({type:D,selectors:[["app-admin-users"]],hostVars:2,hostBindings:function(z,$){2&z&&w.ekj("router-component",$.true)},decls:9,vars:17,consts:[[1,"page-subtitle"],[3,"click"],[1,"mt-2","search-field",3,"autoFocus","placeholder","filter"],["color","primary",3,"checked","change"],[3,"disableRouting","searchString","attrNames","displayedColumns","tableId","withoutVo","updateTable"]],template:function(z,$){1&z&&(w.TgZ(0,"h1",0),w._uU(1),w.ALo(2,"translate"),w.qZA(),w.TgZ(3,"perun-web-apps-refresh-button",1),w.NdJ("click",function(){return $.refresh()}),w.qZA(),w.TgZ(4,"perun-web-apps-debounce-filter",2),w.NdJ("filter",function(q){return $.onSearchByString(q)}),w.qZA(),w.TgZ(5,"mat-checkbox",3),w.NdJ("change",function(){return $.findUsersWithoutVO()}),w._uU(6),w.ALo(7,"translate"),w.qZA(),w._UZ(8,"perun-web-apps-users-dynamic-list",4)),2&z&&(w.xp6(1),w.Oqu(w.lcZ(2,12,"ADMIN.USERS.TITLE")),w.xp6(3),w.Q6J("autoFocus",!0)("placeholder","ADMIN.USERS.SEARCH_PLACEHOLDER"),w.xp6(1),w.Q6J("checked",$.usersWithoutVo),w.xp6(1),w.hij(" ",w.lcZ(7,14,"ADMIN.USERS.USERS_WITHOUT_VO"),"\n"),w.xp6(2),w.Q6J("disableRouting",!1)("searchString",$.searchString)("attrNames",$.attributes)("displayedColumns",w.DdM(16,R))("tableId",$.tableId)("withoutVo",$.usersWithoutVo)("updateTable",$.update))},dependencies:[p.oG,g.t,T.P,E.M,S.X$],styles:[".search-field[_ngcontent-%COMP%]{width:325px}"]}),D})()},72077:(Qe,he,u)=>{"use strict";u.d(he,{y:()=>L});var e=u(69723),m=u(17445),A=u(80529),w=u(9244),p=u(94650),g=u(65412),T=u(4859),E=u(89383);let S=(()=>{class V{constructor(ae){this.dialogRef=ae}onReload(){location.reload()}onClose(){this.dialogRef.close()}}return V.\u0275fac=function(ae){return new(ae||V)(p.Y36(g.so))},V.\u0275cmp=p.Xpm({type:V,selectors:[["app-new-version-dialog"]],decls:15,vars:12,consts:[["mat-dialog-title",""],[1,"user-theme"],["mat-dialog-content",""],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"]],template:function(ae,xe){1&ae&&(p.TgZ(0,"h1",0),p._uU(1),p.ALo(2,"translate"),p.qZA(),p.TgZ(3,"div",1)(4,"div",2)(5,"p"),p._uU(6),p.ALo(7,"translate"),p.qZA()(),p.TgZ(8,"div",3)(9,"button",4),p.NdJ("click",function(){return xe.onClose()}),p._uU(10),p.ALo(11,"translate"),p.qZA(),p.TgZ(12,"button",5),p.NdJ("click",function(){return xe.onReload()}),p._uU(13),p.ALo(14,"translate"),p.qZA()()()),2&ae&&(p.xp6(1),p.Oqu(p.lcZ(2,4,"DIALOGS.NEW_VERSION.TITLE")),p.xp6(5),p.hij(" ",p.lcZ(7,6,"DIALOGS.NEW_VERSION.DESCRIPTION")," "),p.xp6(4),p.hij(" ",p.lcZ(11,8,"DIALOGS.NEW_VERSION.LATER")," "),p.xp6(3),p.hij(" ",p.lcZ(14,10,"DIALOGS.NEW_VERSION.RELOAD")," "))},dependencies:[T.lW,g.uh,g.xY,g.H8,E.X$]}),V})();var R=u(94364),v=u(39300),D=u(40034);let F=(()=>{class V{constructor(ae,xe){this.router=ae,this.routeReuseStrategy=xe;const ge=xe;ae.events.subscribe(Se=>{Se instanceof R.OD&&ge.setLastNavigationType("popstate"===Se.navigationTrigger?"back":"direct")})}init(){}}return V.\u0275fac=function(ae){return new(ae||V)(p.LFG(R.F0),p.LFG(R.wN))},V.\u0275prov=p.Yz7({token:V,factory:V.\u0275fac,providedIn:"root"}),V})();const z=["footer"];function $(V,Q){if(1&V&&(p.TgZ(0,"div",3)(1,"mat-icon"),p._uU(2,"alert"),p.qZA(),p._uU(3),p.qZA()),2&V){const ae=p.oxw();p.xp6(3),p.hij(" ",ae.warningMessage,"\n")}}const G=function(V,Q){return{top:V,background:Q}},q=function(V,Q){return{"margin-top":V,"min-height":Q}},_e=function(V,Q){return{"border-color":V,background:Q}},ce=function(V){return{"background-color":V}},Te=function(V){return{"min-height":V}};function b(V,Q){if(1&V){const ae=p.EpF();p.TgZ(0,"perun-web-apps-header",4),p.NdJ("sidenavToggle",function(){p.CHM(ae);const ge=p.MAs(3);return p.KtG(ge.toggle())}),p.qZA(),p.TgZ(1,"mat-sidenav-container",5)(2,"mat-sidenav",6,7)(4,"ng-scrollbar"),p._UZ(5,"app-side-menu",8),p.qZA()(),p.TgZ(6,"mat-sidenav-content",9)(7,"div",10),p._UZ(8,"router-outlet"),p.qZA(),p.TgZ(9,"div",null,11),p._UZ(11,"perun-web-apps-footer"),p.qZA()()()}if(2&V){const ae=p.MAs(3),xe=p.oxw();p.Q6J("ngStyle",p.WLB(12,G,xe.getNavMenuTop(),xe.navBackgroundColor))("otherApp",xe.otherApp)("showNotifications",!0),p.xp6(1),p.Q6J("ngStyle",p.WLB(15,q,xe.getSideNavMarginTop(),xe.getSideNavMinHeight())),p.xp6(1),p.Q6J("fixedInViewport",!0)("mode",xe.sidebarMode)("fixedTopGap",xe.getTopGap())("ngStyle",p.WLB(18,_e,xe.sideBarBorderColor,xe.sideMenubackgroundColor))("opened",!xe.isMobile()),p.xp6(3),p.Q6J("sideNav",ae),p.xp6(1),p.Q6J("ngStyle",p.VKq(21,ce,xe.contentBackgroundColor)),p.xp6(1),p.Q6J("ngStyle",p.VKq(23,Te,xe.contentInnerMinHeight))}}function H(V,Q){1&V&&p._UZ(0,"perun-web-apps-login-screen-base",12),2&V&&p.Q6J("application","admin-gui")}let L=(()=>{class V{constructor(ae,xe,ge,Se,Be,pe,$e){this.cache=ae,this.store=xe,this.http=ge,this.dialog=Se,this.router=Be,this.initAuth=pe,this.cd=$e,this.otherApp=D.p.Profile,this.sidebarMode="side",this.theme=this.store.getProperty("theme"),this.navBackgroundColor=this.theme.nav_bg_color,this.sideBarBorderColor=this.theme.sidemenu_border_color,this.contentBackgroundColor=this.theme.content_bg_color,this.sideMenubackgroundColor=this.theme.sidemenu_bg_color,this.displayWarning=this.store.getProperty("display_warning"),this.warningMessage=this.store.getProperty("warning_message"),this.version=u(4147).i8,this.contentInnerMinHeight=this.displayWarning?"calc(100vh - 112px)":"calc(100vh - 64px)",this.cache.init(),this.getScreenSize()}getScreenSize(){this.sidebarMode=this.isMobile()?"over":"side",this.lastScreenWidth=window.innerWidth}isServiceLogin(){return!!sessionStorage.getItem("baLogout")}isMobile(){return window.innerWidth<=V.minWidth}ngOnInit(){this.isLoginScreenShow=this.initAuth.isLoginScreenShown(),this.isServiceAccess=this.initAuth.isServiceAccessLoginScreenShown(),sessionStorage.removeItem("baLogout"),null===sessionStorage.getItem("initPage")&&(sessionStorage.setItem("initPage",location.pathname),sessionStorage.setItem("onInitPage","true")),this.store.setInitialPageId(1),this.principal=this.store.getPerunPrincipal(),this.loadAppVersion(),(0,m.F)(3e4).subscribe(()=>{this.loadAppVersion()}),this.router.events.pipe((0,v.h)(ae=>ae instanceof R.OD)).subscribe(ae=>{this.updateInitAccessedPage(ae)})}getTopGap(){return this.displayWarning?112:64}getSideNavMarginTop(){return this.displayWarning?"112px":"64px"}getSideNavMinHeight(){return this.displayWarning?"calc(100vh - 112px)":"calc(100vh - 64px)"}getNavMenuTop(){return this.displayWarning?"48px":"0"}ngAfterViewInit(){const ae=this.footer?.nativeElement?.offsetHeight?.toString()??"0";this.contentInnerMinHeight=this.displayWarning?"calc(100vh - "+ae+"px - 112px)":"calc(100vh - "+ae+"px - 64px)",this.cd.detectChanges()}updateInitAccessedPage(ae){ae.url===sessionStorage.getItem("initPage")?("imperative"===ae.navigationTrigger&&ae.id!==this.store.getInitialPageId()&&sessionStorage.setItem("onInitPage","false"),"popstate"===ae.navigationTrigger&&(ae.restoredState.navigationId===this.store.getInitialPageId()?(sessionStorage.setItem("onInitPage","true"),this.store.setInitialPageId(ae.id)):sessionStorage.setItem("onInitPage","false"))):sessionStorage.setItem("onInitPage","false")}loadAppVersion(){const ae=new A.WM({"Cache-Control":"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"});this.http.get("/assets/config/version.json",{headers:ae}).subscribe(xe=>{const ge=xe.version;if(ge)if(this.version&&"SNAPSHOT"!==ge&&this.version!==ge){const Se=(0,w.kZ)();this.dialog.open(S,Se)}else this.version=ge})}}return V.minWidth=992,V.\u0275fac=function(ae){return new(ae||V)(p.Y36(F),p.Y36(e.d6),p.Y36(A.eN),p.Y36(g.uw),p.Y36(R.F0),p.Y36(e.v0),p.Y36(p.sBO))},V.\u0275cmp=p.Xpm({type:V,selectors:[["app-root"]],viewQuery:function(ae,xe){if(1&ae&&p.Gf(z,5),2&ae){let ge;p.iGM(ge=p.CRH())&&(xe.footer=ge.first)}},hostBindings:function(ae,xe){1&ae&&p.NdJ("resize",function(Se){return xe.getScreenSize(Se)},!1,p.Jf7)},decls:4,vars:4,consts:[["class","beta-warning",4,"ngIf"],[3,"displayWarning"],[3,"ngIf"],[1,"beta-warning"],["id","nav-menu",1,"mat-elevation-z3",3,"ngStyle","otherApp","showNotifications","sidenavToggle"],["autosize","true",3,"ngStyle"],[3,"fixedInViewport","mode","fixedTopGap","ngStyle","opened"],["sidenav",""],[3,"sideNav"],["id","content-inner",3,"ngStyle"],["id","content-wrap",3,"ngStyle"],["footer",""],[3,"application"]],template:function(ae,xe){1&ae&&(p.YNc(0,$,4,1,"div",0),p._UZ(1,"perun-web-apps-notificator",1),p.YNc(2,b,12,25,"ng-template",2),p.YNc(3,H,1,1,"ng-template",2)),2&ae&&(p.Q6J("ngIf",xe.displayWarning),p.xp6(1),p.Q6J("displayWarning",xe.displayWarning),p.xp6(1),p.Q6J("ngIf",!xe.isLoginScreenShow&&!xe.isServiceAccess&&!xe.isServiceLogin()),p.xp6(1),p.Q6J("ngIf",xe.isLoginScreenShow||xe.isServiceAccess||xe.isServiceLogin()))},styles:["#content-inner[_ngcontent-%COMP%]{position:relative}#content-wrap[_ngcontent-%COMP%]{padding-bottom:25px;padding-top:10px}.beta-warning[_ngcontent-%COMP%]{overflow:hidden;height:48px;position:fixed;z-index:999;top:0;background-color:#ffbfc5;width:100%;color:#d32f2f;text-align:center;font-weight:500;padding:6px;line-height:36px;font-size:1rem}ng-scrollbar[_ngcontent-%COMP%]{--scrollbar-thumb-color: #6a6a6a;--scrollbar-thumb-hover-color: lightgrey}"]}),V})()},77968:(Qe,he,u)=>{"use strict";u.d(he,{D:()=>m});var e=u(94650);let m=(()=>{class A{constructor(){this.accessItemsChange=new e.vpe,this.facilityItemsChange=new e.vpe,this.adminItemsChange=new e.vpe,this.userItemsChange=new e.vpe,this.resetChange=new e.vpe,this.homeItemsChange=new e.vpe}setHomeItems(p){this.homeItemsChange.emit(p)}setAccessMenuItems(p){this.accessItemsChange.emit(p)}setFacilityMenuItems(p){this.facilityItemsChange.emit(p)}setAdminItems(p){this.adminItemsChange.emit(p)}setUserItems(p){this.userItemsChange.emit(p)}reset(){this.resetChange.emit()}}return A.\u0275fac=function(p){return new(p||A)},A.\u0275prov=e.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"}),A})()},37380:(Qe,he,u)=>{"use strict";u.d(he,{o:()=>_e});var e=u(32105),m=u(10036),A=u(69723),w=u(94650),p=u(36895),g=u(3238),T=u(59549),E=u(84385),S=u(51572),R=u(25788),v=u(96214),D=u(7434),F=u(89383);function z(ce,Te){if(1&ce&&(w.TgZ(0,"mat-option",9),w._uU(1),w.qZA()),2&ce){const b=Te.$implicit;w.Q6J("value",b.id),w.xp6(1),w.hij(" ",b.name," ")}}function $(ce,Te){1&ce&&w._UZ(0,"mat-spinner",10)}const G=function(){return["id","vo","name","description"]};function q(ce,Te){if(1&ce&&w._UZ(0,"perun-web-apps-groups-list",11),2&ce){const b=w.oxw();w.Q6J("displayedColumns",w.DdM(6,G))("groups",b.groupsToShow)("disableMembers",!1)("filter",b.filterValue)("groupsToDisableRouting",b.groupsWithoutRouteAuth)("tableId",b.tableId)}}let _e=(()=>{class ce{constructor(b,H,L){this.facilityManager=b,this.authResolver=H,this.entityStorageService=L,this.groups=[],this.filterValue="",this.selected="all",this.groupsToShow=this.groups,this.tableId=m.Aj,this.groupsWithoutRouteAuth=new Set}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.facilityManager.getAllowedVos(this.facility.id).subscribe(b=>{this.vos=b,this.refreshTable()})}showGroup(){this.groupsToShow="all"!==this.selected?this.groups.filter(b=>b.voId===parseInt(this.selected,10)):this.groups}refreshTable(){this.loading=!0,this.groups=[],this.vos.forEach(b=>{this.facilityManager.getAllowedGroups(this.facility.id,b.id).subscribe(H=>{this.groups=this.groups.concat(H),this.groupsToShow=this.groups,this.setAuthRights(b,H),this.loading=!1})}),0===this.vos.length&&(this.loading=!1)}setAuthRights(b,H){H.forEach(L=>{this.authResolver.isAuthorized("getGroupById_int_policy",[b,L])||this.groupsWithoutRouteAuth.add(L.id)})}applyFilter(b){this.filterValue=b}}return ce.id="FacilityAllowedGroupsComponent",ce.\u0275fac=function(b){return new(b||ce)(w.Y36(e.IQ),w.Y36(A.x4),w.Y36(A.fb))},ce.\u0275cmp=w.Xpm({type:ce,selectors:[["app-facility-allowed-groups"]],hostVars:2,hostBindings:function(b,H){2&b&&w.ekj("router-component",H.true)},inputs:{groups:"groups"},decls:17,vars:14,consts:[[1,"page-subtitle"],[3,"refresh"],[1,"mr-2"],[3,"value","selectionChange","valueChange"],["value","all"],[3,"value",4,"ngFor","ngForOf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"displayedColumns","groups","disableMembers","filter","groupsToDisableRouting","tableId",4,"ngIf"],[3,"value"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","groups","disableMembers","filter","groupsToDisableRouting","tableId"]],template:function(b,H){1&b&&(w.TgZ(0,"div")(1,"h1",0),w._uU(2),w.ALo(3,"translate"),w.qZA(),w.TgZ(4,"perun-web-apps-refresh-button",1),w.NdJ("refresh",function(){return H.refreshTable()}),w.qZA(),w.TgZ(5,"mat-form-field",2)(6,"mat-label"),w._uU(7),w.ALo(8,"translate"),w.qZA(),w.TgZ(9,"mat-select",3),w.NdJ("selectionChange",function(){return H.showGroup()})("valueChange",function(V){return H.selected=V}),w.TgZ(10,"mat-option",4),w._uU(11),w.ALo(12,"translate"),w.qZA(),w.YNc(13,z,2,2,"mat-option",5),w.qZA()(),w.TgZ(14,"perun-web-apps-immediate-filter",6),w.NdJ("filter",function(V){return H.applyFilter(V)}),w.qZA(),w.YNc(15,$,1,0,"mat-spinner",7),w.YNc(16,q,1,7,"perun-web-apps-groups-list",8),w.qZA()),2&b&&(w.xp6(2),w.Oqu(w.lcZ(3,8,"MENU_ITEMS.FACILITY.ALLOWED_GROUPS")),w.xp6(5),w.Oqu(w.lcZ(8,10,"FACILITY_DETAIL.ALLOWED_GROUPS.SHOW_VOS_GROUPS")),w.xp6(2),w.Q6J("value",H.selected),w.xp6(2),w.Oqu(w.lcZ(12,12,"FACILITY_DETAIL.ALLOWED_GROUPS.ALL")),w.xp6(2),w.Q6J("ngForOf",H.vos),w.xp6(1),w.Q6J("placeholder","FACILITY_DETAIL.ALLOWED_GROUPS.FILTER"),w.xp6(1),w.Q6J("ngIf",H.loading),w.xp6(1),w.Q6J("ngIf",!H.loading))},dependencies:[p.sg,p.O5,g.ey,T.KE,T.hX,E.gD,S.Ou,R.W,v.t,D.L,F.X$]}),ce})()},25610:(Qe,he,u)=>{"use strict";u.d(he,{_:()=>Se});var e=u(10036),m=u(32105),A=u(69723),w=u(64080),p=u(24006),g=u(94650),T=u(36895),E=u(3238),S=u(59549),R=u(84385),v=u(51572),D=u(90455),F=u(96214),z=u(62707),$=u(45703),G=u(64901),q=u(11447),_e=u(30540),ce=u(97392),Te=u(4859),b=u(89383);let H=(()=>{class Be{constructor(){this.changeAdvancedFilter=new g.vpe,this.clearFilters=new g.vpe}ngOnInit(){this.changeAdvancedFilter.emit(this.advancedFilter)}toggleAdvancedFilter(){this.advancedFilter=!this.advancedFilter,this.changeAdvancedFilter.emit(this.advancedFilter)}}return Be.\u0275fac=function($e){return new($e||Be)},Be.\u0275cmp=g.Xpm({type:Be,selectors:[["perun-web-apps-advanced-filter"]],inputs:{filtersCount:"filtersCount",advancedFilter:"advancedFilter"},outputs:{changeAdvancedFilter:"changeAdvancedFilter",clearFilters:"clearFilters"},decls:12,vars:11,consts:[["mat-stroked-button","",3,"click"]],template:function($e,Ce){1&$e&&(g.TgZ(0,"button",0),g.NdJ("click",function(){return Ce.toggleAdvancedFilter()}),g.TgZ(1,"mat-icon"),g._uU(2,"filter_list"),g.qZA(),g._uU(3),g.ALo(4,"translate"),g.TgZ(5,"mat-icon"),g._uU(6),g.qZA()(),g.TgZ(7,"button",0),g.NdJ("click",function(){return Ce.clearFilters.emit()}),g.TgZ(8,"mat-icon"),g._uU(9,"filter_list_off"),g.qZA(),g._uU(10),g.ALo(11,"translate"),g.qZA()),2&$e&&(g.Gre("mr-2 ",Ce.filtersCount?"grey":"no-color",""),g.xp6(3),g.AsE(" ",g.lcZ(4,7,"SHARED_LIB.PERUN.COMPONENTS.ADVANCED_FILTER.FILTERS")," ",Ce.filtersCount?"("+Ce.filtersCount+")":null," "),g.xp6(3),g.Oqu(Ce.advancedFilter?"arrow_drop_up":"arrow_drop_down"),g.xp6(4),g.hij(" ",g.lcZ(11,9,"SHARED_LIB.PERUN.COMPONENTS.ADVANCED_FILTER.CLEAR_FILTERS"),"\n"))},dependencies:[ce.Hw,Te.lW,b.X$],styles:[".grey[_ngcontent-%COMP%]{color:#fff;background-color:gray}.no-color[_ngcontent-%COMP%]{color:#000;background-color:transparent}"]}),Be})();function L(Be,pe){if(1&Be&&(g.TgZ(0,"mat-option",19),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&Be){const $e=pe.$implicit;g.Q6J("value",$e),g.xp6(1),g.Oqu(g.lcZ(2,2,"CONSENTS.STATUS_"+$e))}}function V(Be,pe){if(1&Be){const $e=g.EpF();g.TgZ(0,"mat-form-field",16)(1,"mat-label"),g._uU(2),g.ALo(3,"translate"),g.qZA(),g.TgZ(4,"mat-select",17),g.NdJ("closed",function(){g.CHM($e);const de=g.oxw(2);return g.KtG(de.consentStatusSelected())}),g.TgZ(5,"mat-select-trigger"),g._uU(6),g.qZA(),g.YNc(7,L,3,4,"mat-option",18),g.qZA()()}if(2&Be){const $e=g.oxw(2);g.xp6(2),g.Oqu(g.lcZ(3,4,"CONSENTS.STATUS")),g.xp6(2),g.Q6J("formControl",$e.statuses),g.xp6(2),g.hij(" ",$e.displaySelectedStatuses()," "),g.xp6(1),g.Q6J("ngForOf",$e.consentStatusesList)}}function Q(Be,pe){if(1&Be){const $e=g.EpF();g.TgZ(0,"div",8)(1,"div",9)(2,"mat-slide-toggle",10),g.NdJ("ngModelChange",function(de){g.CHM($e);const re=g.oxw();return g.KtG(re.allowed=de)})("change",function(){g.CHM($e);const de=g.oxw();return g.KtG(de.changeFilter())}),g._uU(3),g.ALo(4,"translate"),g.qZA(),g.TgZ(5,"span",11),g._uU(6),g.ALo(7,"translate"),g.qZA()(),g.TgZ(8,"div",1)(9,"perun-web-apps-vo-search-select",12),g.NdJ("voSelected",function(de){g.CHM($e);const re=g.oxw();return g.KtG(re.voSelected(de))}),g.qZA(),g.TgZ(10,"perun-web-apps-resource-search-select",13),g.NdJ("resourceSelected",function(de){g.CHM($e);const re=g.oxw();return g.KtG(re.resourceSelected(de))}),g.qZA(),g.TgZ(11,"perun-web-apps-service-search-select",14),g.NdJ("serviceSelected",function(de){g.CHM($e);const re=g.oxw();return g.KtG(re.serviceSelected(de))}),g.qZA(),g.YNc(12,V,8,6,"mat-form-field",15),g.qZA()()}if(2&Be){const $e=g.oxw();g.xp6(2),g.Q6J("ngModel",$e.allowed),g.xp6(1),g.hij(" ",g.lcZ(4,11,"FACILITY_DETAIL.ALLOWED_USERS.FILTER_ALLOWED")," "),g.xp6(3),g.Oqu(g.lcZ(7,13,$e.toggle_messages[$e.allowed?1:0])),g.xp6(3),g.Q6J("vos",$e.vos)("vo",$e.selectedVo),g.xp6(1),g.Q6J("resources",$e.filteredResources)("displayStatus",!1)("resource",$e.selectedResource),g.xp6(1),g.Q6J("services",$e.filteredServices)("service",$e.selectedService),g.xp6(1),g.Q6J("ngIf",$e.globalForceConsents&&$e.facilityForceConsents)}}function ae(Be,pe){1&Be&&g._UZ(0,"mat-spinner",20)}const xe=function(){return["id","name","email","logins","organization"]};function ge(Be,pe){if(1&Be&&g._UZ(0,"perun-web-apps-users-dynamic-list",21),2&Be){const $e=g.oxw();g.Q6J("attrNames",$e.attributes)("disableRouting",!$e.routeAuth)("displayedColumns",g.DdM(12,xe))("onlyAllowed",$e.allowed)("facilityId",$e.facility.id)("searchString",$e.filterValue)("resourceId",-1===$e.selectedResource.id?null:$e.selectedResource.id)("serviceId",-1===$e.selectedService.id?null:$e.selectedService.id)("tableId",$e.tableId)("voId",-1===$e.selectedVo.id?null:$e.selectedVo.id)("consentStatuses",$e.selectedConsentStatuses)("includeConsents",$e.globalForceConsents&&$e.facilityForceConsents)}}let Se=(()=>{class Be{constructor($e,Ce,de,re,B,N,Me,Y){this.facilityService=$e,this.serviceService=Ce,this.resourceService=de,this.authResolver=re,this.storeService=B,this.entityStorageService=N,this.consentService=Me,this.translate=Y,this.loading=!1,this.filterValue="",this.attributes=[],this.allowed=!0,this.emptyResource={id:-1,beanName:"Resource",name:"No filter"},this.resources=[this.emptyResource],this.filteredResources=[this.emptyResource],this.selectedResource=this.emptyResource,this.emptyVo={id:-1,beanName:"Vo",name:"No filter"},this.vos=[this.emptyVo],this.selectedVo=this.emptyVo,this.emptyService={id:-1,beanName:"Service",name:"No filter"},this.services=[this.emptyService],this.filteredServices=[this.emptyService],this.selectedService=this.emptyService,this.consentStatusesList=["UNSIGNED","GRANTED","REVOKED"],this.selectedConsentStatuses=[],this.resourceAssignedServices=new Map,this.tableId=e.z6,this.toggle_messages=["FACILITY_DETAIL.ALLOWED_USERS.FILTER_ASSIGNED_MSG","FACILITY_DETAIL.ALLOWED_USERS.FILTER_ALLOWED_MSG"],this.advancedFilter=!1}ngOnInit(){this.loading=!0,this.statuses=new p.NI(this.selectedConsentStatuses),this.attributes=[w.r.USER_DEF_ORGANIZATION,w.r.USER_DEF_PREFERRED_MAIL],this.attributes=this.attributes.concat(this.storeService.getLoginAttributeNames()),this.facility=this.entityStorageService.getEntity(),this.globalForceConsents=this.storeService.getProperty("enforce_consents"),this.consentService.getConsentHubByFacility(this.facility.id).subscribe($e=>{this.facilityForceConsents=$e.enforceConsents}),this.routeAuth=this.authResolver.isPerunAdminOrObserver(),this.changeFilter(),this.refreshPage()}changeFilter(){this.filtersCount=this.allowed?1:0,-1!==this.selectedVo.id&&(this.filtersCount+=1),-1!==this.selectedResource.id&&(this.filtersCount+=1),-1!==this.selectedService.id&&(this.filtersCount+=1),this.selectedConsentStatuses.length>0&&(this.filtersCount+=1)}clearFilters(){this.allowed=!1,this.selectedVo=this.emptyVo,this.selectedResource=this.emptyResource,this.selectedService=this.emptyService,this.selectedConsentStatuses=[],this.statuses.setValue(this.selectedConsentStatuses),this.filtersCount=0}refreshPage(){this.loading=!0,this.facilityService.getAssignedResourcesForFacility(this.facility.id).subscribe($e=>{this.resources=[this.emptyResource].concat($e),this.filteredResources=this.resources,this.facilityService.getAllowedVos(this.facility.id).subscribe(Ce=>{this.vos=[this.emptyVo].concat(Ce),this.serviceService.getAssignedServices(this.facility.id).subscribe(de=>{this.services=[this.emptyService].concat(de),this.filteredServices=this.services,this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)},()=>this.loading=!1)}applyFilter($e){this.filterValue=$e}voSelected($e){this.selectedVo.id!==$e.id&&(this.selectedVo=$e,this.selectedResource=this.emptyResource,this.selectedService=this.emptyService,-1===$e.id?(this.filteredResources=this.resources,this.filteredServices=this.services):(this.filteredResources=this.resources.filter(Ce=>Ce.voId===$e.id),this.serviceService.getAssignedServicesVo(this.facility.id,$e.id).subscribe(Ce=>{this.filteredServices=[this.emptyService].concat(Ce),this.loading=!1},()=>this.loading=!1),this.filteredResources=[this.emptyResource].concat(this.filteredResources)),this.changeFilter())}resourceSelected($e){this.selectedResource.id!==$e.id&&(this.selectedResource=$e,this.selectedService=this.emptyService,-1===$e.id?this.filteredServices=this.services:this.resourceService.getAssignedServicesToResource($e.id).subscribe(Ce=>{this.filteredServices=[this.emptyService].concat(Ce),this.loading=!1},()=>this.loading=!1),this.changeFilter())}serviceSelected($e){this.selectedService=$e,this.changeFilter()}consentStatusSelected(){this.selectedConsentStatuses=this.statuses.value,this.changeFilter()}displaySelectedStatuses(){if(this.selectedConsentStatuses.length===this.consentStatusesList.length)return"ALL";const $e=this.statuses.value;return $e?`${this.translate.instant("CONSENTS.STATUS_"+$e[0])} ${$e.length>1?"(+"+($e.length-1).toString()+" "+(2===$e.length?"other)":"others)"):""}`:""}}return Be.id="FacilityAllowedUsersComponent",Be.\u0275fac=function($e){return new($e||Be)(g.Y36(m.IQ),g.Y36(m.KK),g.Y36(m.xk),g.Y36(A.x4),g.Y36(A.d6),g.Y36(A.fb),g.Y36(m.WY),g.Y36(A.Te))},Be.\u0275cmp=g.Xpm({type:Be,selectors:[["app-facility-allowed-users"]],decls:11,vars:9,consts:[[1,"page-subtitle"],[1,"filters"],[1,"mr-2",3,"refresh"],[1,"mr-2","filter",3,"placeholder","filter"],[3,"advancedFilter","filtersCount","changeAdvancedFilter","clearFilters"],["class","advanced-filter",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"attrNames","disableRouting","displayedColumns","onlyAllowed","facilityId","searchString","resourceId","serviceId","tableId","voId","consentStatuses","includeConsents",4,"ngIf"],[1,"advanced-filter"],[1,"toggle","filters"],["labelPosition","before",1,"mr-2",3,"ngModel","ngModelChange","change"],[1,"text-muted"],[1,"search-select",3,"vos","vo","voSelected"],[1,"search-select",3,"resources","displayStatus","resource","resourceSelected"],[1,"search-select",3,"services","service","serviceSelected"],["class","search-select",4,"ngIf"],[1,"search-select"],["multiple","",3,"formControl","closed"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"ml-auto","mr-auto"],[3,"attrNames","disableRouting","displayedColumns","onlyAllowed","facilityId","searchString","resourceId","serviceId","tableId","voId","consentStatuses","includeConsents"]],template:function($e,Ce){1&$e&&(g.TgZ(0,"div")(1,"h1",0),g._uU(2),g.ALo(3,"translate"),g.qZA(),g.TgZ(4,"div",1)(5,"perun-web-apps-refresh-button",2),g.NdJ("refresh",function(){return Ce.refreshPage()}),g.qZA(),g.TgZ(6,"perun-web-apps-debounce-filter",3),g.NdJ("filter",function(re){return Ce.applyFilter(re)}),g.qZA(),g.TgZ(7,"perun-web-apps-advanced-filter",4),g.NdJ("changeAdvancedFilter",function(re){return Ce.advancedFilter=re})("clearFilters",function(){return Ce.clearFilters()}),g.qZA()(),g.YNc(8,Q,13,15,"div",5),g.YNc(9,ae,1,0,"mat-spinner",6),g.YNc(10,ge,1,13,"perun-web-apps-users-dynamic-list",7),g.qZA()),2&$e&&(g.xp6(2),g.Oqu(g.lcZ(3,7,"FACILITY_DETAIL.ALLOWED_USERS.TITLE")),g.xp6(4),g.Q6J("placeholder","FACILITY_DETAIL.ALLOWED_USERS.FILTER"),g.xp6(1),g.Q6J("advancedFilter",Ce.advancedFilter)("filtersCount",Ce.filtersCount),g.xp6(1),g.Q6J("ngIf",Ce.advancedFilter),g.xp6(1),g.Q6J("ngIf",Ce.loading),g.xp6(1),g.Q6J("ngIf",!Ce.loading))},dependencies:[T.sg,T.O5,E.ey,S.KE,S.hX,p.JJ,p.oH,p.On,R.gD,R.$L,v.Ou,D.Rr,F.t,z.M,$.L,G.P,q.M,_e.J,H,b.X$],styles:[".filters[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:baseline}.filter[_ngcontent-%COMP%]{min-width:350px}.search-select[_ngcontent-%COMP%]{width:32%;margin-right:20px;margin-top:30px}.toggle[_ngcontent-%COMP%]{display:flex;flex-direction:column}.advanced-filter[_ngcontent-%COMP%]{border:1px solid lightgray;padding:15px}"]}),Be})()},34904:(Qe,he,u)=>{"use strict";u.d(he,{f:()=>ge});var e=u(95017),m=u(533),A=u(32105),w=u(24006),p=u(65412),g=u(69723),T=u(94650),E=u(89383),S=u(36895),R=u(59549),v=u(284),D=u(4859),F=u(51572),z=u(62707);function $(Se,Be){1&Se&&T._UZ(0,"mat-spinner",5)}function G(Se,Be){if(1&Se){const pe=T.EpF();T.TgZ(0,"div",6)(1,"perun-web-apps-vo-search-select",7),T.NdJ("voSelected",function(Ce){T.CHM(pe);const de=T.oxw();return T.KtG(de.selectedVo=Ce)}),T.qZA(),T.TgZ(2,"mat-form-field"),T._UZ(3,"input",8),T.ALo(4,"translate"),T.TgZ(5,"mat-error"),T._uU(6),T.ALo(7,"translate"),T.qZA()(),T.TgZ(8,"mat-form-field"),T._UZ(9,"input",9),T.ALo(10,"translate"),T.TgZ(11,"mat-error"),T._uU(12),T.ALo(13,"translate"),T.qZA()()()}if(2&Se){const pe=T.oxw();T.xp6(1),T.Q6J("vos",pe.vos),T.xp6(2),T.s9C("placeholder",T.lcZ(4,7,"DIALOGS.CREATE_RESOURCE.NAME")),T.Q6J("formControl",pe.nameCtrl),T.xp6(3),T.hij(" ",T.lcZ(7,9,"DIALOGS.CREATE_RESOURCE.INCORRECT_NAME")," "),T.xp6(3),T.s9C("placeholder",T.lcZ(10,11,"DIALOGS.CREATE_RESOURCE.DESCRIPTION")),T.Q6J("formControl",pe.descriptionCtrl),T.xp6(3),T.hij(" ",T.lcZ(13,13,"DIALOGS.CREATE_RESOURCE.FILL_DESCRIPTION")," ")}}let q=(()=>{class Se{constructor(pe,$e,Ce,de,re,B){this.dialogRef=pe,this.data=$e,this.notificator=Ce,this.voService=de,this.translate=re,this.resourcesManager=B,this.vos=[],this.selectedVo=null,re.get("DIALOGS.CREATE_RESOURCE.SUCCESS").subscribe(N=>this.successMessage=N)}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.voService.getAllVos().subscribe(pe=>{this.vos=pe,this.loading=!1},()=>this.loading=!1),this.nameCtrl=new w.p4(null,[w.kI.required,w.kI.pattern(".*[\\S]+.*")]),this.descriptionCtrl=new w.p4("")}onSubmit(){this.loading=!0,this.resourcesManager.createResource(this.selectedVo.id,this.data.facilityId,this.nameCtrl.value,this.descriptionCtrl.value).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}}return Se.\u0275fac=function(pe){return new(pe||Se)(T.Y36(p.so),T.Y36(p.WI),T.Y36(g.V6),T.Y36(A.YF),T.Y36(E.sK),T.Y36(A.xk))},Se.\u0275cmp=T.Xpm({type:Se,selectors:[["app-create-resource-dialog"]],decls:10,vars:12,consts:[["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["data-cy","create-resource-dialog-button","color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["data-cy","create-resource-select-vo",3,"vos","voSelected"],["matInput","","data-cy","create-resource-name-input","required","",3,"formControl","placeholder"],["matInput","",3,"formControl","placeholder"]],template:function(pe,$e){1&pe&&(T.TgZ(0,"div"),T.YNc(1,$,1,0,"mat-spinner",0),T.YNc(2,G,14,15,"div",1),T.TgZ(3,"div",2)(4,"button",3),T.NdJ("click",function(){return $e.onCancel()}),T._uU(5),T.ALo(6,"translate"),T.qZA(),T.TgZ(7,"button",4),T.NdJ("click",function(){return $e.onSubmit()}),T._uU(8),T.ALo(9,"translate"),T.qZA()()()),2&pe&&(T.Tol($e.theme),T.xp6(1),T.Q6J("ngIf",$e.loading),T.xp6(1),T.Q6J("ngIf",!$e.loading),T.xp6(3),T.hij(" ",T.lcZ(6,8,"DIALOGS.CREATE_RESOURCE.CANCEL")," "),T.xp6(2),T.Q6J("disabled",$e.nameCtrl.invalid||$e.descriptionCtrl.invalid||null===$e.selectedVo||$e.loading),T.xp6(1),T.hij(" ",T.lcZ(9,10,"DIALOGS.CREATE_RESOURCE.CREATE")," "))},dependencies:[S.O5,R.TO,R.KE,v.Nt,w.Fj,w.JJ,w.Q7,w.oH,D.lW,p.xY,p.H8,F.Ou,z.M,E.X$],styles:[".long-input[_ngcontent-%COMP%]{width:100%}"]}),Se})();var _e=u(10036),ce=u(9244),Te=u(96214),b=u(7434),H=u(62109),L=u(30540);function V(Se,Be){if(1&Se){const pe=T.EpF();T.TgZ(0,"button",9),T.NdJ("click",function(){T.CHM(pe);const Ce=T.oxw();return T.KtG(Ce.createResource())}),T._uU(1),T.ALo(2,"translate"),T.qZA()}2&Se&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"FACILITY_DETAIL.RESOURCES.CREATE")," "))}function Q(Se,Be){if(1&Se){const pe=T.EpF();T.TgZ(0,"button",10),T.NdJ("click",function(){T.CHM(pe);const Ce=T.oxw();return T.KtG(Ce.removeResource())}),T._uU(1),T.ALo(2,"translate"),T.qZA()}if(2&Se){const pe=T.oxw();T.Q6J("disabled",0===pe.selected.selected.length),T.xp6(1),T.hij(" ",T.lcZ(2,2,"FACILITY_DETAIL.RESOURCES.DELETE")," ")}}function ae(Se,Be){1&Se&&T._UZ(0,"mat-spinner",11)}function xe(Se,Be){if(1&Se&&T._UZ(0,"perun-web-apps-resources-list",12),2&Se){const pe=T.oxw();T.Q6J("tableId",pe.tableId)("filterValue",pe.filterValue)("resources",pe.resources)("selection",pe.selected)("disableRouting",!pe.routeAuth)("displayedColumns",pe.displayedColumns)}}let ge=(()=>{class Se{constructor(pe,$e,Ce,de,re,B){this.dialog=pe,this.facilitiesManager=$e,this.servicesManager=Ce,this.authResolver=de,this.entityStorageService=re,this.cd=B,this.resources=[],this.selected=new e.Ov(!0,[]),this.emptyService={id:-1,beanName:"Service",name:"All"},this.services=[this.emptyService],this.selectedService=this.emptyService,this.filterValue="",this.tableId=_e.CP,this.displayedColumns=["id","vo","facility","description"]}ngOnInit(){this.facility=this.entityStorageService.getEntity(),this.setAuthRights(),this.servicesManager.getAssignedServices(this.facility.id).subscribe(pe=>{this.services=[this.emptyService].concat(pe)})}ngAfterViewInit(){this.cd.detectChanges()}removeResource(){const pe=(0,ce.kZ)();pe.width="450px",pe.data={theme:"facility-theme",resources:this.selected.selected},this.dialog.open(m.f,pe).afterClosed().subscribe(Ce=>{Ce&&this.refreshTable()})}refreshTable(){this.loading=!0,-1===this.selectedService.id?this.facilitiesManager.getAssignedRichResourcesForFacility(this.facility.id).subscribe(pe=>{this.resources=pe,this.selected.clear(),this.setAuthRights(),this.loading=!1}):this.facilitiesManager.getAssignedRichResourcesForFacilityAndService(this.facility.id,this.selectedService.id).subscribe(pe=>{this.resources=pe,this.selected.clear(),this.setAuthRights(),this.loading=!1})}setAuthRights(){this.addAuth=this.authResolver.isAuthorized("createResource_Resource_Vo_Facility_policy",[this.facility]),this.removeAuth=this.authResolver.isAuthorized("deleteResource_Resource_policy",[this.facility]),this.displayedColumns=this.removeAuth?["select","id","name","vo","description"]:["id","name","vo","description"],0!==this.resources.length&&(this.routeAuth=this.authResolver.isAuthorized("getRichResourceById_int_policy",[this.facility,this.resources[0]]))}applyFilter(pe){this.filterValue=pe}createResource(){const pe=(0,ce.kZ)();pe.width="1350px",pe.data={facilityId:this.facility.id,theme:"facility-theme"},this.dialog.open(q,pe).afterClosed().subscribe(Ce=>{Ce&&this.refreshTable()})}serviceSelected(pe){this.selectedService=pe,this.refreshTable()}}return Se.id="FacilityResourcesComponent",Se.\u0275fac=function(pe){return new(pe||Se)(T.Y36(p.uw),T.Y36(A.IQ),T.Y36(A.KK),T.Y36(g.x4),T.Y36(g.fb),T.Y36(T.sBO))},Se.\u0275cmp=T.Xpm({type:Se,selectors:[["app-facility-resources"]],hostVars:2,hostBindings:function(pe,$e){2&pe&&T.ekj("router-component",$e.true)},decls:12,vars:10,consts:[[1,"page-subtitle"],[1,"align-elements"],[3,"refresh"],["mat-flat-button","","color","accent","data-cy","create-resource-button","class","mr-2 action-button",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2","data-cy","delete-resource-button",3,"disabled","click",4,"ngIf"],[1,"search-select","mr-2",3,"services","service","serviceSelected"],[1,"filter-field",3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"tableId","filterValue","resources","selection","disableRouting","displayedColumns",4,"ngIf"],["mat-flat-button","","color","accent","data-cy","create-resource-button",1,"mr-2","action-button",3,"click"],["mat-flat-button","","color","warn","data-cy","delete-resource-button",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"tableId","filterValue","resources","selection","disableRouting","displayedColumns"]],template:function(pe,$e){1&pe&&(T.TgZ(0,"div")(1,"h1",0),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.TgZ(4,"div",1)(5,"perun-web-apps-refresh-button",2),T.NdJ("refresh",function(){return $e.refreshTable()}),T.qZA(),T.YNc(6,V,3,3,"button",3),T.YNc(7,Q,3,4,"button",4),T.TgZ(8,"perun-web-apps-service-search-select",5),T.NdJ("serviceSelected",function(de){return $e.serviceSelected(de)}),T.qZA(),T.TgZ(9,"perun-web-apps-immediate-filter",6),T.NdJ("filter",function(de){return $e.applyFilter(de)}),T.qZA()(),T.YNc(10,ae,1,0,"mat-spinner",7),T.YNc(11,xe,1,6,"perun-web-apps-resources-list",8),T.qZA()),2&pe&&(T.xp6(2),T.Oqu(T.lcZ(3,8,"FACILITY_DETAIL.RESOURCES.TITLE")),T.xp6(4),T.Q6J("ngIf",$e.addAuth),T.xp6(1),T.Q6J("ngIf",$e.removeAuth),T.xp6(1),T.Q6J("services",$e.services)("service",$e.selectedService),T.xp6(1),T.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),T.xp6(1),T.Q6J("ngIf",$e.loading),T.xp6(1),T.Q6J("ngIf",!$e.loading))},dependencies:[S.O5,D.lW,F.Ou,Te.t,b.L,H.C,L.J,E.X$],styles:[".search-select[_ngcontent-%COMP%]{min-width:325px}.filter-field[_ngcontent-%COMP%]{min-width:250px}.align-elements[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:baseline}"]}),Se})()},86353:(Qe,he,u)=>{"use strict";u.d(he,{P:()=>Ce});var e=u(32105),m=u(9244),A=u(10036),w=u(95017),p=u(65412),g=u(69723),T=u(24006),E=u(94650),S=u(89383),R=u(94364),v=u(36895),D=u(3238),F=u(59549),z=u(284),$=u(4859),G=u(84385),q=u(51572),_e=u(98380);function ce(de,re){1&de&&E._UZ(0,"mat-spinner",7)}function Te(de,re){if(1&de){const B=E.EpF();E.TgZ(0,"mat-option",16),E.NdJ("click",function(){const Y=E.CHM(B).$implicit,be=E.oxw(2);return E.KtG(be.srcFacility=Y)}),E._uU(1),E.qZA()}if(2&de){const B=re.$implicit;E.Q6J("value",B),E.xp6(1),E.hij(" ",B.name," ")}}function b(de,re){if(1&de){const B=E.EpF();E.TgZ(0,"div",8)(1,"mat-form-field"),E._UZ(2,"input",9),E.ALo(3,"translate"),E.TgZ(4,"mat-error"),E._uU(5),E.ALo(6,"translate"),E.qZA()(),E.TgZ(7,"mat-form-field"),E._UZ(8,"input",10),E.ALo(9,"translate"),E.qZA(),E.TgZ(10,"mat-form-field")(11,"mat-select",11),E.ALo(12,"translate"),E.TgZ(13,"mat-option",12),E.NdJ("click",function(){E.CHM(B);const Me=E.oxw();return E.KtG(Me.srcFacility=null)}),E._uU(14),E.ALo(15,"translate"),E.qZA(),E.YNc(16,Te,2,2,"mat-option",13),E.qZA()(),E.TgZ(17,"perun-web-apps-alert",14),E._UZ(18,"i",15),E.ALo(19,"translate"),E.qZA()()}if(2&de){const B=E.oxw();E.xp6(2),E.s9C("placeholder",E.lcZ(3,9,"DIALOGS.CREATE_FACILITY.NAME")),E.Q6J("formControl",B.nameControl),E.xp6(3),E.Oqu(E.lcZ(6,11,"DIALOGS.CREATE_FACILITY.REQUIRE_NAME")),E.xp6(3),E.s9C("placeholder",E.lcZ(9,13,"DIALOGS.CREATE_FACILITY.DESCRIPTION")),E.Q6J("formControl",B.descControl),E.xp6(3),E.s9C("placeholder",E.lcZ(12,15,"DIALOGS.CREATE_FACILITY.AS_COPY")),E.xp6(3),E.hij(" ",E.lcZ(15,17,"DIALOGS.CREATE_FACILITY.NO_COPY")," "),E.xp6(2),E.Q6J("ngForOf",B.facilities),E.xp6(2),E.Q6J("innerHTML",E.lcZ(19,19,"DIALOGS.CREATE_FACILITY.HINT"),E.oJD)}}let H=(()=>{class de{constructor(B,N,Me,Y,be,De,We){this.dialogRef=B,this.data=N,this.facilitiesManager=Me,this.notificator=Y,this.translate=be,this.router=De,this.entityStorageService=We,this.nameControl=new T.p4("",[T.kI.required]),this.descControl=new T.p4(""),this.srcFacility=null,this.loading=!1,this.configure=!1}ngOnInit(){this.theme=this.data.theme,this.loading=!0,this.facilitiesManager.getAllFacilities().subscribe(B=>{this.facilities=B,this.loading=!1},()=>this.loading=!1)}onCreate(B){this.loading=!0,this.configure=B,this.facilitiesManager.createFacility(this.nameControl.value,this.descControl.value).subscribe({next:N=>{this.entityStorageService.setEntity({id:N.id,beanName:N.beanName}),sessionStorage.setItem("newFacilityId",String(N.id)),null!==this.srcFacility?this.copyFacilitySettings(N.id):this.handleSuccess(N.id)},error:()=>this.loading=!1})}onCancel(){this.dialogRef.close(!1)}copyFacilitySettings(B){this.facilitiesManager.copyAttributes(this.srcFacility.id,B).subscribe(()=>{this.facilitiesManager.copyManagers(this.srcFacility.id,B).subscribe(()=>{this.facilitiesManager.copyOwners(this.srcFacility.id,B).subscribe(()=>{this.handleSuccess(B)},()=>this.loading=!1)},()=>this.loading=!1)},()=>this.loading=!1)}handleSuccess(B){this.notificator.showSuccess(this.translate.instant("DIALOGS.CREATE_FACILITY.SUCCESS")),this.configure&&this.router.navigate(["facilities",B.toString(),"configuration"],{queryParamsHandling:"preserve"}),this.dialogRef.close(!0)}}return de.\u0275fac=function(B){return new(B||de)(E.Y36(p.so),E.Y36(p.WI),E.Y36(e.IQ),E.Y36(g.V6),E.Y36(S.sK),E.Y36(R.F0),E.Y36(g.fb))},de.\u0275cmp=E.Xpm({type:de,selectors:[["app-create-facility-dialog"]],decls:16,vars:19,consts:[[1,"mat-dialog-title"],["class","mr-auto ml-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["data-cy","create-facility-button","color","accent","mat-flat-button","",1,"ml2",3,"disabled","click"],["color","accent","mat-flat-button","",1,"ml2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","","data-cy","facility-name-input",3,"formControl","placeholder"],["matInput","","data-cy","facility-description-input",3,"formControl","placeholder"],["disableOptionCentering","true",3,"placeholder"],[3,"click"],[3,"value","click",4,"ngFor","ngForOf"],["alert_type","info"],[3,"innerHTML"],[3,"value","click"]],template:function(B,N){1&B&&(E.TgZ(0,"div")(1,"h1",0),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.YNc(4,ce,1,0,"mat-spinner",1),E.YNc(5,b,20,21,"div",2),E.TgZ(6,"div",3)(7,"button",4),E.NdJ("click",function(){return N.onCancel()}),E._uU(8),E.ALo(9,"translate"),E.qZA(),E.TgZ(10,"button",5),E.NdJ("click",function(){return N.onCreate(!1)}),E._uU(11),E.ALo(12,"translate"),E.qZA(),E.TgZ(13,"button",6),E.NdJ("click",function(){return N.onCreate(!0)}),E._uU(14),E.ALo(15,"translate"),E.qZA()()()),2&B&&(E.Tol(N.theme),E.xp6(2),E.Oqu(E.lcZ(3,11,"DIALOGS.CREATE_FACILITY.TITLE")),E.xp6(2),E.Q6J("ngIf",N.loading),E.xp6(1),E.Q6J("ngIf",!N.loading),E.xp6(3),E.hij(" ",E.lcZ(9,13,"DIALOGS.CREATE_FACILITY.CANCEL")," "),E.xp6(2),E.Q6J("disabled",0===N.nameControl.value.trim().length||N.loading),E.xp6(1),E.hij(" ",E.lcZ(12,15,"DIALOGS.CREATE_FACILITY.CREATE")," "),E.xp6(2),E.Q6J("disabled",0===N.nameControl.value.trim().length||!!N.srcFacility||N.loading),E.xp6(1),E.hij(" ",E.lcZ(15,17,"DIALOGS.CREATE_FACILITY.CREATE_AND_CONFIGURE")," "))},dependencies:[v.sg,v.O5,D.ey,F.TO,F.KE,z.Nt,T.Fj,T.JJ,T.Q7,T.oH,$.lW,p.xY,p.H8,G.gD,q.Ou,_e.w,S.X$]}),de})();var L=u(54037),V=u(77968),Q=u(97392),ae=u(96214),xe=u(4235),ge=u(7434),Se=u(74010);function Be(de,re){1&de&&E._UZ(0,"mat-spinner",9)}function pe(de,re){if(1&de&&E._UZ(0,"perun-web-apps-facilities-list",10),2&de){const B=E.oxw();E.Q6J("tableId",B.tableId)("selection",B.selection)("filterValue",B.filterValue)("facilities",B.facilities)("recentIds",B.recentIds)}}const $e=function(){return{color:"black"}};let Ce=(()=>{class de{constructor(B,N,Me){this.facilityManager=B,this.sideMenuService=N,this.dialog=Me,this.facilities=[],this.recentIds=[],this.filterValue="",this.tableId=A.xt,this.selection=new w.Ov(!1,[])}ngOnInit(){this.refreshTable()}ngAfterViewChecked(){this.sideMenuService.setFacilityMenuItems([])}refreshTable(){this.loading=!0,this.facilityManager.getEnrichedFacilities().subscribe(B=>{this.selection.clear(),this.facilities=B,this.recentIds=(0,m.vL)("facilities"),this.loading=!1})}onCreate(){const B=(0,m.kZ)();B.width="800px",B.data={theme:"facility-theme"},this.dialog.open(H,B).afterClosed().subscribe(Me=>{Me&&(this.loading=!0,this.refreshTable())})}onDelete(){const B=(0,m.kZ)();B.width="500px",B.data={theme:"facility-theme",facility:this.selection.selected[0].facility},this.dialog.open(L.Y,B).afterClosed().subscribe(Me=>{Me&&this.refreshTable()})}applyFilter(B){this.filterValue=B}}return de.id="FacilitySelectPageComponent",de.\u0275fac=function(B){return new(B||de)(E.Y36(e.IQ),E.Y36(V.D),E.Y36(p.uw))},de.\u0275cmp=E.Xpm({type:de,selectors:[["app-facility-select-page"]],hostVars:2,hostBindings:function(B,N){2&B&&E.ekj("router-component",N.true)},decls:16,vars:16,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","facility-theme"],[1,"page-title","d-flex"],["svgIcon","perun-facility-black",1,"perun-icon","icon-scale",3,"ngStyle"],[3,"refresh"],["mat-flat-button","","data-cy","new-facility-button","color","accent",1,"action-button","mr-2",3,"click"],["mat-flat-button","","data-cy","delete-facility-button","color","warn",1,"mr-2",3,"disabled","click"],[3,"autoFocus","placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"tableId","selection","filterValue","facilities","recentIds",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"tableId","selection","filterValue","facilities","recentIds"]],template:function(B,N){1&B&&(E.TgZ(0,"div",0),E._UZ(1,"perun-web-apps-back-button"),E.TgZ(2,"h1",1),E._UZ(3,"mat-icon",2),E._uU(4),E.ALo(5,"translate"),E.qZA(),E.TgZ(6,"perun-web-apps-refresh-button",3),E.NdJ("refresh",function(){return N.refreshTable()}),E.qZA(),E.TgZ(7,"button",4),E.NdJ("click",function(){return N.onCreate()}),E._uU(8),E.ALo(9,"translate"),E.qZA(),E.TgZ(10,"button",5),E.NdJ("click",function(){return N.onDelete()}),E._uU(11),E.ALo(12,"translate"),E.qZA(),E.TgZ(13,"perun-web-apps-immediate-filter",6),E.NdJ("filter",function(Y){return N.applyFilter(Y)}),E.qZA(),E.YNc(14,Be,1,0,"mat-spinner",7),E.YNc(15,pe,1,5,"perun-web-apps-facilities-list",8),E.qZA()),2&B&&(E.xp6(3),E.Q6J("ngStyle",E.DdM(15,$e)),E.xp6(1),E.hij(" ",E.lcZ(5,9,"FACILITY_MANAGEMENT.TITLE")," "),E.xp6(4),E.hij(" ",E.lcZ(9,11,"FACILITY_MANAGEMENT.CREATE")," "),E.xp6(2),E.Q6J("disabled",0===N.selection.selected.length),E.xp6(1),E.hij(" ",E.lcZ(12,13,"FACILITY_MANAGEMENT.DELETE")," "),E.xp6(2),E.Q6J("autoFocus",!0)("placeholder","FACILITY_MANAGEMENT.FILTER_PLACEHOLDER"),E.xp6(1),E.Q6J("ngIf",N.loading),E.xp6(1),E.Q6J("ngIf",!N.loading))},dependencies:[v.O5,v.PC,Q.Hw,$.lW,q.Ou,ae.t,xe.W,ge.L,Se.X,S.X$],styles:[".icon-scale[_ngcontent-%COMP%]{transform:scale(1.7);margin-left:.5rem;margin-top:-.4rem;margin-right:.9rem}"]}),de})()},39158:(Qe,he,u)=>{"use strict";u.d(he,{l:()=>v});var e=u(94650),m=u(45323),A=u(69723),w=u(36895),p=u(24006),g=u(10266),T=u(71948),E=u(74250),S=u(89383);function R(D,F){if(1&D){const z=e.EpF();e.TgZ(0,"div")(1,"perun-web-apps-user-search-select",6),e.NdJ("userSelected",function(G){e.CHM(z);const q=e.oxw();return e.KtG(q.selectSponsor(G))}),e.qZA()()}if(2&D){const z=e.oxw();e.xp6(1),e.Q6J("disableAutoSelect",!0)("users",z.voSponsors)}}let v=(()=>{class D{constructor(z){this.guiAuthResolver=z,this.voSponsors=[],this.sponsorTypeSelected=new e.vpe,this.sponsorSelected=new e.vpe,this.sponsorType="self",this.isSponsor=!1,this.isPerunAdmin=!1,this.selectedSponsor=null}ngOnInit(){this.isSponsor=this.guiAuthResolver.principalHasRole(m.u.SPONSOR,"Vo",this.voId),this.isPerunAdmin=this.guiAuthResolver.isPerunAdmin(),this.sponsorType=this.isSponsor?"self":"other",this.emitSponsorType()}emitSponsorType(){"self"===this.sponsorType&&this.selectSponsor(null),this.sponsorTypeSelected.emit(this.sponsorType)}selectSponsor(z){this.selectedSponsor=z,this.sponsorSelected.emit(z)}}return D.\u0275fac=function(z){return new(z||D)(e.Y36(A.x4))},D.\u0275cmp=e.Xpm({type:D,selectors:[["app-choose-sponsor"]],inputs:{voId:"voId",voSponsors:"voSponsors"},outputs:{sponsorTypeSelected:"sponsorTypeSelected",sponsorSelected:"sponsorSelected"},decls:16,vars:21,consts:[[1,"mt-4"],[1,"dialog-container",3,"ngModel","ngModelChange"],["matTooltipPosition","before",3,"matTooltip","matTooltipDisabled"],["value","self",3,"disabled","click"],["value","other",3,"disabled"],[4,"ngIf"],[3,"disableAutoSelect","users","userSelected"]],template:function(z,$){1&z&&(e.TgZ(0,"div",0)(1,"h6"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"mat-radio-group",1),e.NdJ("ngModelChange",function(q){return $.sponsorType=q})("ngModelChange",function(){return $.emitSponsorType()}),e.TgZ(5,"span",2),e.ALo(6,"translate"),e.TgZ(7,"mat-radio-button",3),e.NdJ("click",function(){return $.selectedSponsor=null}),e._uU(8),e.ALo(9,"translate"),e.qZA()(),e.TgZ(10,"span",2),e.ALo(11,"translate"),e.TgZ(12,"mat-radio-button",4),e._uU(13),e.ALo(14,"translate"),e.qZA()()(),e.YNc(15,R,2,2,"div",5),e.qZA()),2&z&&(e.xp6(2),e.Oqu(e.lcZ(3,11,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_SPONSOR")),e.xp6(2),e.Q6J("ngModel",$.sponsorType),e.xp6(1),e.s9C("matTooltip",e.lcZ(6,13,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_SELF_DISABLED")),e.Q6J("matTooltipDisabled",$.isSponsor),e.xp6(2),e.Q6J("disabled",!$.isSponsor),e.xp6(1),e.hij(" ",e.lcZ(9,15,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_SELF")," "),e.xp6(2),e.s9C("matTooltip",e.lcZ(11,17,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_OTHER_DISABLED")),e.Q6J("matTooltipDisabled",$.isPerunAdmin),e.xp6(2),e.Q6J("disabled",!$.isPerunAdmin),e.xp6(1),e.hij(" ",e.lcZ(14,19,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_OTHER")," "),e.xp6(2),e.Q6J("ngIf","other"===$.sponsorType))},dependencies:[w.O5,p.JJ,p.On,g.gM,T.VQ,T.U0,E.S,S.X$]}),D})()},51076:(Qe,he,u)=>{"use strict";u.d(he,{J:()=>_e});var e=u(65412),m=u(69723),A=u(32105),w=u(9244),p=u(24006),g=u(94650),T=u(89383),E=u(36895),S=u(3238),R=u(59549),v=u(284),D=u(4859),F=u(84385),z=u(57706);let $=(()=>{class ce{constructor(b){this.translateService=b,this.returnData=""}transform(b){switch(b){case"HEADING":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.HEADER").subscribe(H=>{this.returnData=H});break;case"HTML_COMMENT":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.HTML_COMMENT").subscribe(H=>{this.returnData=H});break;case"TEXTFIELD":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.TEXTFIELD").subscribe(H=>{this.returnData=H});break;case"VALIDATED_EMAIL":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.VALIDATED_EMAIL").subscribe(H=>{this.returnData=H});break;case"USERNAME":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.USERNAME").subscribe(H=>{this.returnData=H});break;case"PASSWORD":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.PASSWORD").subscribe(H=>{this.returnData=H});break;case"SELECTIONBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.SELECTIONBOX").subscribe(H=>{this.returnData=H});break;case"TEXTAREA":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.TEXTAREA").subscribe(H=>{this.returnData=H});break;case"COMBOBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.COMBOBOX").subscribe(H=>{this.returnData=H});break;case"CHECKBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.CHECKBOX").subscribe(H=>{this.returnData=H});break;case"SUBMIT_BUTTON":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.SUBMIT_BUTTON").subscribe(H=>{this.returnData=H});break;case"RADIO":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.RADIO").subscribe(H=>{this.returnData=H});break;case"TIMEZONE":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.TIMEZONE").subscribe(H=>{this.returnData=H});break;case"AUTO_SUBMIT_BUTTON":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.AUTO_SUBMIT_BUTTON").subscribe(H=>{this.returnData=H});break;case"EMBEDDED_GROUP_APPLICATION":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.EMBEDDED_GROUP_APPLICATION").subscribe(H=>{this.returnData=H});break;case"LIST_INPUT_BOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.LIST_INPUT_BOX").subscribe(H=>{this.returnData=H});break;case"MAP_INPUT_BOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.MAP_INPUT_BOX").subscribe(H=>{this.returnData=H});break;default:return b}return this.returnData}}return ce.\u0275fac=function(b){return new(b||ce)(g.Y36(T.sK,16))},ce.\u0275pipe=g.Yjl({name:"applicationFormWidgetDescription",type:ce,pure:!0}),ce})();function G(ce,Te){if(1&ce&&(g.TgZ(0,"mat-option",9),g._uU(1),g.ALo(2,"applicationFormItemType"),g.qZA()),2&ce){const b=Te.$implicit;g.Q6J("value",b),g.xp6(1),g.hij(" ",g.lcZ(2,2,b)," ")}}function q(ce,Te){if(1&ce&&(g.TgZ(0,"mat-option",9),g._uU(1),g.qZA()),2&ce){const b=Te.$implicit;g.Q6J("value",b),g.xp6(1),g.hij(" ",b," ")}}let _e=(()=>{class ce{constructor(b,H,L,V){this.dialogRef=b,this.data=H,this.translateService=L,this.store=V,this.languages=this.store.getProperty("supported_languages"),this.items=[],this.selectedWidget="HEADING",this.widgets=["HEADING","HTML_COMMENT","TEXTFIELD","VALIDATED_EMAIL","USERNAME","PASSWORD","SELECTIONBOX","TEXTAREA","COMBOBOX","CHECKBOX","SUBMIT_BUTTON","RADIO","TIMEZONE","AUTO_SUBMIT_BUTTON","EMBEDDED_GROUP_APPLICATION","LIST_INPUT_BOX","MAP_INPUT_BOX"]}ngOnInit(){this.translateService.get("DIALOGS.APPLICATION_FORM_ADD_ITEM.INSERT_TO_BEGINNING").subscribe(b=>{this.nameCtrl=new p.p4("",[p.kI.required,p.kI.pattern(".*[\\S]+.*"),p.kI.maxLength(129)]),this.nameCtrl.markAllAsTouched(),this.items.push(b);for(const H of this.data.applicationFormItems)this.items.push(H.shortname),H.type===A.Dy.EMBEDDED_GROUP_APPLICATION&&(this.widgets=this.widgets.filter(L=>L!==A.Dy.EMBEDDED_GROUP_APPLICATION));this.selectedItem=b})}cancel(){this.dialogRef.close(void 0)}submit(){const b=this.createApplicationItem();this.dialogRef.close([this.data.applicationFormItems,b])}createApplicationItem(){const b=(0,w.dv)(this.languages);b.id=this.data.fakeId,b.shortname=this.nameCtrl.value,b.type=this.selectedWidget;for(let H=0;H{"use strict";u.d(he,{W:()=>D});var e=u(65412),m=u(32105),A=u(69723),w=u(94650),p=u(89383),g=u(36895),T=u(4859),E=u(51572),S=u(62707),R=u(82322);function v(F,z){1&F&&w._UZ(0,"mat-spinner",9)}let D=(()=>{class F{constructor($,G,q,_e,ce,Te,b,H,L){this.dialogRef=$,this.voService=G,this.groupService=q,this.translateService=_e,this.registrarManager=ce,this.notificatorService=Te,this.apiRequest=b,this.cd=H,this.data=L,this.vos=[],this.groups=[],this.selectedGroup=null,this.loading=!1,this.nameFunction=V=>V.name,_e.get("DIALOGS.APPLICATION_FORM_COPY_ITEMS.SUCCESS").subscribe(V=>this.successMessage=V),_e.get("DIALOGS.APPLICATION_FORM_COPY_ITEMS.PRIVILEGE").subscribe(V=>this.privilegeMessage=V),_e.get("DIALOGS.APPLICATION_FORM_COPY_ITEMS.NO_FORM").subscribe(V=>this.noFormMessage=V)}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.translateService.get("DIALOGS.APPLICATION_FORM_COPY_ITEMS.NO_GROUP_SELECTED").subscribe(()=>{this.voService.getMyVos().subscribe($=>{this.vos=$,this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)}cancel(){this.dialogRef.close(!1)}submit(){this.apiRequest.dontHandleErrorForNext(),this.loading=!0,this.data.groupId?null===this.selectedGroup?this.registrarManager.copyFormFromVoToGroup(this.selectedVo.id,this.data.groupId).subscribe(()=>{this.notificatorService.showSuccess(this.successMessage),this.dialogRef.close(!0)},$=>{"FormNotExistsException"===$.name&&this.notificatorService.showError(this.noFormMessage),"PrivilegeException"===$.name&&this.notificatorService.showError(this.privilegeMessage),this.loading=!1}):this.registrarManager.copyFormFromGroupToGroup(this.selectedGroup.id,this.data.groupId).subscribe(()=>{this.notificatorService.showSuccess(this.successMessage),this.dialogRef.close(!0)},$=>{"FormNotExistsException"===$.name&&this.notificatorService.showError(this.noFormMessage),"PrivilegeException"===$.name&&this.notificatorService.showError(this.privilegeMessage),this.loading=!1}):null===this.selectedGroup?this.registrarManager.copyFormFromVoToVo(this.selectedVo.id,this.data.voId).subscribe(()=>{this.notificatorService.showSuccess(this.successMessage),this.dialogRef.close(!0)},$=>{"FormNotExistsException"===$.name&&this.notificatorService.showError(this.noFormMessage),"PrivilegeException"===$.name&&this.notificatorService.showError(this.privilegeMessage),this.loading=!1}):this.registrarManager.copyFormFromGroupToVo(this.selectedGroup.id,this.data.voId).subscribe(()=>{this.notificatorService.showSuccess(this.successMessage),this.dialogRef.close(!0)},$=>{"FormNotExistsException"===$.name&&this.notificatorService.showError(this.noFormMessage),"PrivilegeException"===$.name&&this.notificatorService.showError(this.privilegeMessage),this.loading=!1})}voSelected($){this.selectedVo=$,this.cd.detectChanges(),this.getGroups()}getGroups(){void 0!==this.selectedVo?this.groupService.getAllGroups(this.selectedVo.id).subscribe($=>{this.groups=$}):this.groups=[],this.selectedGroup=null}}return F.\u0275fac=function($){return new($||F)(w.Y36(e.so),w.Y36(m.YF),w.Y36(m.ff),w.Y36(p.sK),w.Y36(m.tk),w.Y36(A.V6),w.Y36(A.F5),w.Y36(w.sBO),w.Y36(e.WI))},F.\u0275cmp=w.Xpm({type:F,selectors:[["app-application-form-copy-items-dialog"]],decls:22,vars:27,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",1,"dialog-container",3,"hidden"],[1,"mb-2","font-italic"],[1,"long-input",3,"vos","voSelected"],[1,"long-input",3,"groups","disableAutoSelect","groupSelected"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"]],template:function($,G){1&$&&(w.TgZ(0,"div")(1,"h1",0),w._uU(2),w.ALo(3,"translate"),w.qZA(),w.YNc(4,v,1,0,"mat-spinner",1),w.TgZ(5,"div",2)(6,"div",3),w._uU(7),w.ALo(8,"translate"),w.qZA(),w._uU(9),w.ALo(10,"translate"),w.TgZ(11,"perun-web-apps-vo-search-select",4),w.NdJ("voSelected",function(_e){return G.voSelected(_e)}),w.qZA(),w._uU(12),w.ALo(13,"translate"),w.TgZ(14,"perun-web-apps-group-search-select",5),w.NdJ("groupSelected",function(_e){return G.selectedGroup=_e}),w.qZA()(),w.TgZ(15,"div",6)(16,"button",7),w.NdJ("click",function(){return G.cancel()}),w._uU(17),w.ALo(18,"translate"),w.qZA(),w.TgZ(19,"button",8),w.NdJ("click",function(){return G.submit()}),w._uU(20),w.ALo(21,"translate"),w.qZA()()()),2&$&&(w.Tol(G.theme),w.xp6(2),w.Oqu(w.lcZ(3,15,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.TITLE")),w.xp6(2),w.Q6J("ngIf",G.loading),w.xp6(1),w.Q6J("hidden",G.loading),w.xp6(2),w.hij(" ",w.lcZ(8,17,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.DESCRIPTION")," "),w.xp6(2),w.hij(" ",w.lcZ(10,19,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.SOURCE_VO"),": "),w.xp6(2),w.Q6J("vos",G.vos),w.xp6(1),w.hij(" ",w.lcZ(13,21,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.SOURCE_GROUP"),": "),w.xp6(2),w.Q6J("groups",G.groups)("disableAutoSelect",!0),w.xp6(3),w.hij(" ",w.lcZ(18,23,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.CANCEL_BUTTON")," "),w.xp6(2),w.Q6J("disabled",!G.selectedVo&&!G.selectedGroup||G.loading),w.xp6(1),w.hij(" ",w.lcZ(21,25,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.SUBMIT_BUTTON")," "))},dependencies:[g.O5,T.lW,e.uh,e.xY,e.H8,E.Ou,S.M,R.h,p.X$]}),F})()},94742:(Qe,he,u)=>{"use strict";u.d(he,{F:()=>Be});var e=u(24006),m=u(9244),A=u(65412),w=u(69723),p=u(32105),g=u(94650),T=u(36895),E=u(3238),S=u(59549),R=u(284),v=u(4859),D=u(84385),F=u(51572),z=u(98380),$=u(89383);function G(pe,$e){1&pe&&g._UZ(0,"mat-spinner",7)}function q(pe,$e){1&pe&&(g.TgZ(0,"div",16),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&pe&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"DIALOGS.BULK_INVITE_MEMBERS.DESCRIPTION_VO")," "))}function _e(pe,$e){1&pe&&(g.TgZ(0,"div",16),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&pe&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"DIALOGS.BULK_INVITE_MEMBERS.DESCRIPTION_GROUP")," "))}function ce(pe,$e){if(1&pe&&(g.TgZ(0,"mat-option",17),g._uU(1),g.ALo(2,"translate"),g.ALo(3,"uppercase"),g.qZA()),2&pe){const Ce=$e.$implicit;g.s9C("value",Ce),g.xp6(1),g.hij(" ",g.lcZ(2,2,g.lcZ(3,4,"SHARED_LIB.LANGUAGES."+Ce))," ")}}function Te(pe,$e){1&pe&&(g.TgZ(0,"mat-error"),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&pe&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"DIALOGS.BULK_INVITE_MEMBERS.NAMES_ERROR")," "))}function b(pe,$e){if(1&pe&&(g.TgZ(0,"mat-error"),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&pe){const Ce=g.oxw(3);g.xp6(1),g.AsE(" ",g.lcZ(2,2,"DIALOGS.BULK_INVITE_MEMBERS.ERROR_FORMAT"),": ",Ce.invitedMembers.getError("invalidFormat").value," ")}}function H(pe,$e){if(1&pe&&(g.TgZ(0,"mat-error"),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&pe){const Ce=g.oxw(3);g.xp6(1),g.AsE(" ",g.lcZ(2,2,"DIALOGS.BULK_INVITE_MEMBERS.ERROR_EMAIL"),": ",Ce.invitedMembers.getError("invalidEmail").value," ")}}function L(pe,$e){if(1&pe){const Ce=g.EpF();g.TgZ(0,"div"),g.YNc(1,q,3,3,"div",9),g.YNc(2,_e,3,3,"div",9),g.TgZ(3,"mat-form-field",10)(4,"mat-label"),g._uU(5),g.ALo(6,"translate"),g.qZA(),g.TgZ(7,"mat-select",11),g.NdJ("valueChange",function(re){g.CHM(Ce);const B=g.oxw(2);return g.KtG(B.currentLanguage=re)}),g.YNc(8,ce,4,6,"mat-option",12),g.qZA()(),g._UZ(9,"p",13),g.ALo(10,"translate"),g.TgZ(11,"mat-form-field",14)(12,"mat-label"),g._uU(13),g.ALo(14,"translate"),g.qZA(),g.TgZ(15,"textarea",15),g.ALo(16,"translate"),g._uU(17," "),g.qZA(),g.YNc(18,Te,3,3,"mat-error",3),g.YNc(19,b,3,4,"mat-error",3),g.YNc(20,H,3,4,"mat-error",3),g.qZA()()}if(2&pe){const Ce=g.oxw(2);g.xp6(1),g.Q6J("ngIf",!Ce.data.groupId),g.xp6(1),g.Q6J("ngIf",Ce.data.groupId),g.xp6(3),g.Oqu(g.lcZ(6,12,"DIALOGS.BULK_INVITE_MEMBERS.LANGUAGE")),g.xp6(2),g.Q6J("value",Ce.currentLanguage),g.xp6(1),g.Q6J("ngForOf",Ce.languages),g.xp6(1),g.Q6J("innerHTML",g.lcZ(10,14,"DIALOGS.BULK_INVITE_MEMBERS.HINT"),g.oJD),g.xp6(4),g.Oqu(g.lcZ(14,16,"DIALOGS.BULK_INVITE_MEMBERS.INSERT_HERE")),g.xp6(2),g.s9C("placeholder",g.lcZ(16,18,"DIALOGS.BULK_INVITE_MEMBERS.PLACEHOLDER")),g.Q6J("formControl",Ce.invitedMembers),g.xp6(3),g.Q6J("ngIf",Ce.invitedMembers.hasError("required")),g.xp6(1),g.Q6J("ngIf",Ce.invitedMembers.hasError("invalidFormat")),g.xp6(1),g.Q6J("ngIf",Ce.invitedMembers.hasError("invalidEmail"))}}function V(pe,$e){if(1&pe&&(g.TgZ(0,"div",8),g.YNc(1,L,21,20,"div",3),g.qZA()),2&pe){const Ce=g.oxw();g.xp6(1),g.Q6J("ngIf","input"===Ce.state)}}function Q(pe,$e){1&pe&&(g.TgZ(0,"perun-web-apps-alert",19),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&pe&&(g.Q6J("alert_type","success"),g.xp6(1),g.hij(" ",g.lcZ(2,2,"DIALOGS.BULK_INVITE_MEMBERS.SUCCESS")," "))}function ae(pe,$e){1&pe&&(g.TgZ(0,"perun-web-apps-alert",19),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&pe&&(g.Q6J("alert_type","warn"),g.xp6(1),g.hij(" ",g.lcZ(2,2,"DIALOGS.BULK_INVITE_MEMBERS.FINISHED_WITH_ERRORS")," "))}function xe(pe,$e){if(1&pe&&(g.TgZ(0,"div"),g.YNc(1,Q,3,4,"perun-web-apps-alert",18),g.YNc(2,ae,3,4,"perun-web-apps-alert",18),g.qZA()),2&pe){const Ce=g.oxw();g.xp6(1),g.Q6J("ngIf",!Ce.finishedWithErrors),g.xp6(1),g.Q6J("ngIf",Ce.finishedWithErrors)}}function ge(pe,$e){if(1&pe){const Ce=g.EpF();g.TgZ(0,"button",20),g.NdJ("click",function(){g.CHM(Ce);const re=g.oxw();return g.KtG(re.onSubmit())}),g._uU(1),g.ALo(2,"translate"),g.qZA()}if(2&pe){const Ce=g.oxw();g.Q6J("disabled",Ce.loading||Ce.invitedMembers.invalid),g.xp6(1),g.hij(" ",g.lcZ(2,2,"DIALOGS.BULK_INVITE_MEMBERS.INVITE")," ")}}function Se(pe,$e){if(1&pe){const Ce=g.EpF();g.TgZ(0,"button",20),g.NdJ("click",function(){g.CHM(Ce);const re=g.oxw();return g.KtG(re.downloadCsv())}),g._uU(1),g.ALo(2,"translate"),g.qZA()}if(2&pe){const Ce=g.oxw();g.Q6J("disabled",!Ce.resultData),g.xp6(1),g.hij(" ",g.lcZ(2,2,"DIALOGS.BULK_INVITE_MEMBERS.DOWNLOAD_CSV")," ")}}let Be=(()=>{class pe{constructor(Ce,de,re,B){this.dialogRef=Ce,this.data=de,this.store=re,this.registrarManager=B,this.invitedMembers=new e.NI("",[e.kI.required,this.userInputValidator()]),this.languages=this.store.getProperty("supported_languages"),this.currentLanguage="en",this.loading=!1,this.state="input"}static didSomeInviteFail(Ce){for(const de in Ce)if("OK"!==Ce[de])return!0;return!1}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;const Ce=this.invitedMembers.value.split("\n"),de=[];for(const B of Ce)de.push(this.parseMemberLine(B));const re={invitationData:de,voId:this.data.voId,language:this.currentLanguage};void 0!==this.data.groupId&&(re.groupId=this.data.groupId),this.registrarManager.sendInvitationsFromCsv(re).subscribe({next:B=>{this.state="results",this.finishedWithErrors=pe.didSomeInviteFail(B),this.resultData=B,this.loading=!1},error:()=>{this.loading=!1}})}downloadCsv(){(0,m.O6)(this.generateOutputData(this.resultData),"csv","member-invites")}generateOutputData(Ce){const de=[];for(const re in Ce)de.push({email:re,status:Ce[re]});return de}parseMemberLine(Ce){const de=Ce.trim();if(""===de)return"";const re=de.split(";");if(re.length>2||0===re.length)return"format";if(!re[0].trim().match(m.B2))return"email";let B="";for(const N of re)B+=N.trim()+";";return B.slice(0,-1)}userInputValidator(){return Ce=>{const de=Ce.value.split("\n");for(const re of de){const B=this.parseMemberLine(re);let N=re;if(re.length>25&&(N=re.substring(0,25)+"..."),"format"===B)return{invalidFormat:{value:N}};if("email"===B)return{invalidEmail:{value:N}}}return null}}}return pe.\u0275fac=function(Ce){return new(Ce||pe)(g.Y36(A.so),g.Y36(A.WI),g.Y36(w.d6),g.Y36(p.tk))},pe.\u0275cmp=g.Xpm({type:pe,selectors:[["app-bulk-invite-members-dialog"]],decls:13,vars:14,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],[4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["class","ml-2","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["class","font-italic",4,"ngIf"],[1,"w-100","pt-2"],[3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[3,"innerHTML"],[1,"pt-2","flex-container"],["cols","50","required","","matInput","","rows","8",1,"md-textarea","form-control",3,"formControl","placeholder"],[1,"font-italic"],[3,"value"],[3,"alert_type",4,"ngIf"],[3,"alert_type"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(Ce,de){1&Ce&&(g.TgZ(0,"div")(1,"h1",0),g._uU(2),g.ALo(3,"translate"),g.qZA(),g.YNc(4,G,1,0,"mat-spinner",1),g.YNc(5,V,2,1,"div",2),g.YNc(6,xe,3,2,"div",3),g.TgZ(7,"div",4)(8,"button",5),g.NdJ("click",function(){return de.onCancel()}),g._uU(9),g.ALo(10,"translate"),g.qZA(),g.YNc(11,ge,3,4,"button",6),g.YNc(12,Se,3,4,"button",6),g.qZA()()),2&Ce&&(g.Tol(de.data.theme),g.xp6(2),g.Oqu(g.lcZ(3,10,"DIALOGS.BULK_INVITE_MEMBERS.TITLE")),g.xp6(2),g.Q6J("ngIf",de.loading),g.xp6(1),g.Q6J("ngIf",!de.loading),g.xp6(1),g.Q6J("ngIf","results"===de.state),g.xp6(3),g.hij(" ",g.lcZ(10,12,"DIALOGS.BULK_INVITE_MEMBERS.CANCEL")," "),g.xp6(2),g.Q6J("ngIf","input"===de.state),g.xp6(1),g.Q6J("ngIf","results"===de.state))},dependencies:[T.sg,T.O5,E.ey,S.TO,S.KE,S.hX,R.Nt,e.Fj,e.JJ,e.Q7,e.oH,v.lW,A.uh,A.xY,A.H8,D.gD,F.Ou,z.w,T.gd,$.X$],styles:[".flex-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),pe})()},40009:(Qe,he,u)=>{"use strict";u.d(he,{R:()=>G});var e=u(65412),m=u(69723),A=u(24006),w=u(32105),p=u(94650),g=u(89383),T=u(36895),E=u(59549),S=u(284),R=u(4859),v=u(56709),D=u(51572);function F(q,_e){1&q&&p._UZ(0,"mat-spinner",4)}function z(q,_e){if(1&q){const ce=p.EpF();p.TgZ(0,"div",5)(1,"mat-form-field")(2,"input",6),p.NdJ("change",function(){p.CHM(ce);const b=p.oxw();return p.KtG(b.makePath())}),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"mat-error"),p._uU(5),p.ALo(6,"translate"),p.qZA()(),p.TgZ(7,"mat-form-field")(8,"input",7),p.NdJ("ngModelChange",function(b){p.CHM(ce);const H=p.oxw();return p.KtG(H.description=b)}),p.ALo(9,"translate"),p.qZA()(),p.TgZ(10,"mat-form-field"),p._UZ(11,"input",8),p.ALo(12,"translate"),p.TgZ(13,"mat-error"),p._uU(14),p.ALo(15,"translate"),p.qZA()(),p.TgZ(16,"mat-form-field"),p._UZ(17,"input",9),p.ALo(18,"translate"),p.TgZ(19,"mat-error"),p._uU(20),p.ALo(21,"translate"),p.qZA()(),p.TgZ(22,"mat-form-field"),p._UZ(23,"input",8),p.ALo(24,"translate"),p.TgZ(25,"mat-error"),p._uU(26),p.ALo(27,"translate"),p.qZA()(),p.TgZ(28,"span",10),p._uU(29),p.ALo(30,"translate"),p.TgZ(31,"mat-checkbox",11),p.NdJ("ngModelChange",function(b){p.CHM(ce);const H=p.oxw();return p.KtG(H.status=b)}),p._uU(32),p.ALo(33,"translate"),p.qZA()(),p.TgZ(34,"span",10),p._uU(35),p.ALo(36,"translate"),p.TgZ(37,"mat-checkbox",11),p.NdJ("ngModelChange",function(b){p.CHM(ce);const H=p.oxw();return p.KtG(H.propagateExpiredMembers=b)}),p._uU(38),p.ALo(39,"translate"),p.qZA()()()}if(2&q){const ce=p.oxw();p.xp6(2),p.s9C("placeholder",p.lcZ(3,20,"DIALOGS.CREATE_EDIT_SERVICE.NAME")),p.Q6J("formControl",ce.nameControl),p.xp6(3),p.Oqu(p.lcZ(6,22,"DIALOGS.CREATE_EDIT_SERVICE.RESTRICTION_NAME")),p.xp6(3),p.s9C("placeholder",p.lcZ(9,24,"DIALOGS.CREATE_EDIT_SERVICE.DESCRIPTION")),p.Q6J("ngModel",ce.description),p.xp6(3),p.s9C("placeholder",p.lcZ(12,26,"DIALOGS.CREATE_EDIT_SERVICE.DELAY")),p.Q6J("formControl",ce.delayControl),p.xp6(3),p.Oqu(p.lcZ(15,28,"DIALOGS.CREATE_EDIT_SERVICE.INVALID_DELAY")),p.xp6(3),p.s9C("placeholder",p.lcZ(18,30,"DIALOGS.CREATE_EDIT_SERVICE.RECURRENCE")),p.Q6J("formControl",ce.recurrenceControl),p.xp6(3),p.Oqu(p.lcZ(21,32,"DIALOGS.CREATE_EDIT_SERVICE.INVALID_RECURRENCE")),p.xp6(3),p.s9C("placeholder",p.lcZ(24,34,"DIALOGS.CREATE_EDIT_SERVICE.PATH")),p.Q6J("formControl",ce.pathControl),p.xp6(3),p.Oqu(p.lcZ(27,36,"DIALOGS.CREATE_EDIT_SERVICE.REQUIRE_PATH")),p.xp6(3),p.hij("",p.lcZ(30,38,"DIALOGS.CREATE_EDIT_SERVICE.STATUS")," "),p.xp6(2),p.Q6J("ngModel",ce.status),p.xp6(1),p.Oqu(p.lcZ(33,40,"DIALOGS.CREATE_EDIT_SERVICE.STATUS_HINT")),p.xp6(3),p.hij("",p.lcZ(36,42,"DIALOGS.CREATE_EDIT_SERVICE.EXPIRED_MEMBERS")," "),p.xp6(2),p.Q6J("ngModel",ce.propagateExpiredMembers),p.xp6(1),p.Oqu(p.lcZ(39,44,"DIALOGS.CREATE_EDIT_SERVICE.EXPIRED_MEMBERS_HINT"))}}function $(q,_e){if(1&q){const ce=p.EpF();p.TgZ(0,"div",12)(1,"button",13),p.NdJ("click",function(){p.CHM(ce);const b=p.oxw();return p.KtG(b.onCancel())}),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"button",14),p.NdJ("click",function(){p.CHM(ce);const b=p.oxw();return p.KtG(b.asEdit?b.onEdit():b.onCreate())}),p._uU(5),p.qZA()()}if(2&q){const ce=p.oxw();p.xp6(2),p.hij(" ",p.lcZ(3,3,"DIALOGS.CREATE_EDIT_SERVICE.CANCEL")," "),p.xp6(2),p.Q6J("disabled",ce.nameControl.invalid||ce.delayControl.invalid||ce.recurrenceControl.invalid||ce.pathControl.invalid),p.xp6(1),p.hij(" ",ce.buttonText," ")}}let G=(()=>{class q{constructor(ce,Te,b,H,L){this.dialogRef=ce,this.data=Te,this.serviceManager=b,this.notificator=H,this.translate=L,this.loading=!1,this.status=!0,this.propagateExpiredMembers=!0,this.nameControl=new A.p4("",[A.kI.required,A.kI.pattern("^[a-zA-Z0-9_]+$")]),this.delayControl=new A.p4(10,[A.kI.pattern("^[0-9]*$")]),this.recurrenceControl=new A.p4(2,[A.kI.pattern("^[0-9]*$")]),this.pathControl=new A.p4("",[A.kI.required]),this.asEdit=!1}ngOnInit(){this.theme=this.data.theme,this.asEdit=void 0!==this.data.service,this.asEdit?(this.nameControl.setValue(this.data.service.name),this.description=this.data.service.description,this.delayControl.setValue(this.data.service.delay),this.recurrenceControl.setValue(this.data.service.recurrence),this.pathControl.setValue(this.data.service.script),this.status=this.data.service.enabled,this.propagateExpiredMembers=this.data.service.useExpiredMembers,this.title=this.translate.instant("DIALOGS.CREATE_EDIT_SERVICE.EDIT_TITLE"),this.buttonText=this.translate.instant("DIALOGS.CREATE_EDIT_SERVICE.EDIT")):(this.title=this.translate.instant("DIALOGS.CREATE_EDIT_SERVICE.CREATE_TITLE"),this.buttonText=this.translate.instant("DIALOGS.CREATE_EDIT_SERVICE.CREATE"))}onCreate(){this.loading=!0,this.serviceManager.createServiceWithService({service:{name:this.nameControl.value,description:this.description,delay:this.delayControl.value,recurrence:this.recurrenceControl.value,enabled:this.status,script:this.pathControl.value,useExpiredMembers:this.propagateExpiredMembers,id:0,beanName:""}}).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.CREATE_EDIT_SERVICE.CREATE_SUCCESS")),this.dialogRef.close(!0),this.loading=!1},()=>this.loading=!1)}onEdit(){this.loading=!0,this.serviceManager.updateService({service:{name:this.nameControl.value,description:this.description,delay:this.delayControl.value,recurrence:this.recurrenceControl.value,enabled:this.status,script:this.pathControl.value,useExpiredMembers:this.propagateExpiredMembers,id:this.data.service.id,beanName:this.data.service.beanName}}).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.CREATE_EDIT_SERVICE.EDIT_SUCCESS")),this.dialogRef.close(!0),this.loading=!1},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}makePath(){const ce="./".concat(this.nameControl.value);this.pathControl.setValue(ce)}}return q.\u0275fac=function(ce){return new(ce||q)(p.Y36(e.so),p.Y36(e.WI),p.Y36(w.KK),p.Y36(m.V6),p.Y36(g.sK))},q.\u0275cmp=p.Xpm({type:q,selectors:[["app-create-service-dialog"]],decls:6,vars:7,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","data-cy","service-name-input","required","",3,"placeholder","formControl","change"],["matInput","","data-cy","service-description-input",3,"ngModel","placeholder","ngModelChange"],["matInput","","required","",3,"formControl","placeholder"],["matInput","","required","",3,"placeholder","formControl"],[1,"d-flex"],[1,"ml-3",3,"ngModel","ngModelChange"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","data-cy","service-create-edit-dialog-button","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(ce,Te){1&ce&&(p.TgZ(0,"div")(1,"h1",0),p._uU(2),p.qZA(),p.YNc(3,F,1,0,"mat-spinner",1),p.YNc(4,z,40,46,"div",2),p.YNc(5,$,6,5,"div",3),p.qZA()),2&ce&&(p.Tol(Te.theme),p.xp6(2),p.Oqu(Te.title),p.xp6(1),p.Q6J("ngIf",Te.loading),p.xp6(1),p.Q6J("ngIf",!Te.loading),p.xp6(1),p.Q6J("ngIf",!Te.loading))},dependencies:[T.O5,E.TO,E.KE,S.Nt,A.Fj,A.JJ,A.Q7,A.oH,A.On,R.lW,v.oG,e.uh,e.xY,e.H8,D.Ou,g.X$]}),q})()},81889:(Qe,he,u)=>{"use strict";u.d(he,{y:()=>_e});var e=u(65412),m=u(69723),A=u(32105),w=u(24006),p=u(94650),g=u(89383),T=u(36895),E=u(59549),S=u(284),R=u(4859),v=u(56709),D=u(51572),F=u(82322);function z(ce,Te){1&ce&&p._UZ(0,"mat-spinner",3)}function $(ce,Te){if(1&ce){const b=p.EpF();p.TgZ(0,"mat-checkbox",14),p.NdJ("ngModelChange",function(L){p.CHM(b);const V=p.oxw(2);return p.KtG(V.asSubgroup=L)})("click",function(){p.CHM(b);const L=p.oxw(2);return p.KtG(L.loadVoGroups())}),p._uU(1),p.ALo(2,"translate"),p.qZA()}if(2&ce){const b=p.oxw(2);p.Q6J("ngModel",b.asSubgroup)("labelPosition","before"),p.xp6(1),p.hij(" ",p.lcZ(2,3,"DIALOGS.CREATE_GROUP.AS_SUBGROUP")," ")}}function G(ce,Te){if(1&ce){const b=p.EpF();p.TgZ(0,"perun-web-apps-group-search-select",15),p.NdJ("groupSelected",function(L){p.CHM(b);const V=p.oxw(2);return p.KtG(V.selectedParent=L)}),p.qZA()}if(2&ce){const b=p.oxw(2);p.Q6J("disableAutoSelect",!0)("groups",b.voGroups)}}function q(ce,Te){if(1&ce){const b=p.EpF();p.TgZ(0,"div")(1,"div",4)(2,"mat-form-field")(3,"label",5),p._UZ(4,"input",6),p.ALo(5,"translate"),p.qZA(),p.TgZ(6,"mat-error"),p._uU(7),p.ALo(8,"translate"),p.qZA()(),p.TgZ(9,"mat-form-field",7)(10,"label",5)(11,"textarea",8),p.ALo(12,"translate"),p._uU(13," "),p.qZA()()(),p.YNc(14,$,3,5,"mat-checkbox",9),p.YNc(15,G,1,2,"perun-web-apps-group-search-select",10),p.qZA(),p.TgZ(16,"div",11)(17,"button",12),p.NdJ("click",function(){p.CHM(b);const L=p.oxw();return p.KtG(L.onCancel())}),p._uU(18),p.ALo(19,"translate"),p.qZA(),p.TgZ(20,"button",13),p.NdJ("click",function(){p.CHM(b);const L=p.oxw();return p.KtG(L.onSubmit())}),p._uU(21),p.ALo(22,"translate"),p.qZA()()()}if(2&ce){const b=p.oxw();p.xp6(4),p.s9C("placeholder",p.lcZ(5,10,"DIALOGS.CREATE_GROUP.NAME")),p.Q6J("formControl",b.nameControl),p.xp6(3),p.hij(" ",b.invalidNameMessage.length?b.invalidNameMessage:p.lcZ(8,12,"DIALOGS.CREATE_GROUP.FILL_VALUE")," "),p.xp6(4),p.s9C("placeholder",p.lcZ(12,14,"DIALOGS.CREATE_GROUP.DESCRIPTION")),p.Q6J("formControl",b.descriptionControl),p.xp6(3),p.Q6J("ngIf",b.isNotSubGroup),p.xp6(1),p.Q6J("ngIf",b.asSubgroup),p.xp6(3),p.hij(" ",p.lcZ(19,16,"DIALOGS.CREATE_GROUP.CANCEL")," "),p.xp6(2),p.Q6J("disabled",b.nameControl.invalid||b.descriptionControl.invalid||b.asSubgroup&&null===b.selectedParent||b.loading),p.xp6(1),p.hij(" ",p.lcZ(22,18,"DIALOGS.CREATE_GROUP.CREATE")," ")}}let _e=(()=>{class ce{constructor(b,H,L,V,Q,ae){this.dialogRef=b,this.data=H,this.groupService=L,this.translate=V,this.notificator=Q,this.store=ae,this.asSubgroup=!1,this.invalidNameMessage=this.store.getProperty("group_name_error_message"),this.voGroups=[],this.secondaryRegex=this.store.getProperty("group_name_secondary_regex"),this.nameFunction=xe=>xe.name,this.isNotSubGroup=null===this.data.parentGroup,this.isNotSubGroup?V.get("DIALOGS.CREATE_GROUP.TITLE").subscribe(xe=>this.title=xe):V.get("DIALOGS.CREATE_GROUP.TITLE_SUB_GROUP").subscribe(xe=>{this.title=xe+this.data.parentGroup.name}),V.get("DIALOGS.CREATE_GROUP.SUCCESS").subscribe(xe=>this.successMessage=xe),V.get("DIALOGS.CREATE_GROUP.SUCCESS_SUBGROUP").subscribe(xe=>this.successSubGroupMessage=xe)}ngOnInit(){this.theme=this.data.theme,this.invalidNameMessage=this.invalidNameMessage&&this.secondaryRegex?this.invalidNameMessage:"",this.nameControl=new w.p4("",[w.kI.required,w.kI.pattern(this.secondaryRegex?this.secondaryRegex:""),w.kI.pattern(".*[\\S]+.*")]),this.descriptionControl=new w.p4(""),this.selectedParent=null}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.isNotSubGroup&&!this.asSubgroup?this.groupService.createGroupWithVoNameDescription(this.data.voId,this.nameControl.value,this.descriptionControl.value).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1):this.groupService.createGroupWithParentGroupNameDescription(this.asSubgroup?this.selectedParent.id:this.data.parentGroup.id,this.nameControl.value,this.descriptionControl.value).subscribe(()=>{this.notificator.showSuccess(this.successSubGroupMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}loadVoGroups(){this.groupService.getAllGroups(this.data.voId).subscribe(b=>{this.voGroups=b.filter(H=>"members"!==H.name)})}}return ce.\u0275fac=function(b){return new(b||ce)(p.Y36(e.so),p.Y36(e.WI),p.Y36(A.ff),p.Y36(g.sK),p.Y36(m.V6),p.Y36(m.d6))},ce.\u0275cmp=p.Xpm({type:ce,selectors:[["app-create-group-dialog"]],decls:5,vars:6,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[1,"w-100"],["matInput","","data-cy","group-name","required","",3,"formControl","placeholder"],[1,"mt-4"],["mat-autosize","","matInput","","data-cy","group-description",3,"formControl","placeholder"],[3,"ngModel","labelPosition","ngModelChange","click",4,"ngIf"],["class","long-input",3,"disableAutoSelect","groups","groupSelected",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","data-cy","create-group-button-dialog","mat-flat-button","",1,"ml-2",3,"disabled","click"],[3,"ngModel","labelPosition","ngModelChange","click"],[1,"long-input",3,"disableAutoSelect","groups","groupSelected"]],template:function(b,H){1&b&&(p.TgZ(0,"h1",0),p._uU(1),p.qZA(),p.TgZ(2,"div"),p.YNc(3,z,1,0,"mat-spinner",1),p.YNc(4,q,23,20,"div",2),p.qZA()),2&b&&(p.xp6(1),p.Oqu(H.title),p.xp6(1),p.Tol(H.theme),p.xp6(1),p.Q6J("ngIf",H.loading),p.xp6(1),p.Q6J("ngIf",!H.loading))},dependencies:[T.O5,E.TO,E.KE,S.Nt,w.Fj,w.JJ,w.Q7,w.oH,w.On,R.lW,v.oG,e.uh,e.xY,e.H8,D.Ou,F.h,g.X$]}),ce})()},54037:(Qe,he,u)=>{"use strict";u.d(he,{Y:()=>E});var e=u(32105),m=u(65412),A=u(69723),w=u(30671),p=u(94650),g=u(89383),T=u(90995);let E=(()=>{class S{constructor(v,D,F,z,$){this.dialogRef=v,this.data=D,this.facilitiesManager=F,this.notificator=z,this.translate=$,this.displayedColumns=["name"],this.loading=!1,this.relations=[],this.force=!1}ngOnInit(){this.theme=this.data.theme,this.facility=this.data.facility,this.dataSource=new w.by([this.facility]),this.relations.push(this.translate.instant("DIALOGS.DELETE_FACILITY.RESOURCE_RELATION"))}onConfirm(){this.loading=!0,this.facilitiesManager.deleteFacility(this.facility.id,this.force).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.DELETE_FACILITY.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}onSubmit(v){this.force=v.force,v.deleted?this.onConfirm():this.onCancel()}}return S.\u0275fac=function(v){return new(v||S)(p.Y36(m.so),p.Y36(m.WI),p.Y36(e.IQ),p.Y36(A.V6),p.Y36(g.sK))},S.\u0275cmp=p.Xpm({type:S,selectors:[["app-delete-facility-dialog"]],decls:2,vars:7,consts:[[3,"entityNames","entityType","loading","relations","deleted"]],template:function(v,D){1&v&&(p.TgZ(0,"div")(1,"perun-web-apps-delete-entity-dialog",0),p.NdJ("deleted",function(z){return D.onSubmit(z)}),p.qZA()()),2&v&&(p.Tol(D.theme),p.xp6(1),p.Q6J("entityNames",D.dataSource)("entityType","facilities")("loading",D.loading)("relations",D.relations))},dependencies:[T.e]}),S})()},41656:(Qe,he,u)=>{"use strict";u.d(he,{P:()=>E});var e=u(65412),m=u(30671),A=u(69723),w=u(32105),p=u(94650),g=u(89383),T=u(90995);let E=(()=>{class S{constructor(v,D,F,z,$){this.dialogRef=v,this.data=D,this.notificator=F,this.translate=z,this.groupService=$,this.displayedColumns=["name"],this.loading=!1,this.relations=[],this.force=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new m.by(this.data.groups),this.relations.push(this.translate.instant("DIALOGS.DELETE_GROUP.SUBGROUP_RELATION")),this.relations.push(this.translate.instant("DIALOGS.DELETE_GROUP.MEMBER_RELATION"))}onCancel(){this.dialogRef.close(!1)}onDelete(){this.loading=!0;const v=this.data.groups.map(D=>D.id);this.groupService.deleteGroups({groups:v,forceDelete:this.force}).subscribe(()=>{this.translate.get("DIALOGS.DELETE_GROUP.SUCCESS").subscribe(D=>{this.notificator.showSuccess(D),this.dialogRef.close(!0)},()=>this.loading=!1)},()=>this.loading=!1)}onSubmit(v){this.force=v.force,v.deleted?this.onDelete():this.onCancel()}}return S.\u0275fac=function(v){return new(v||S)(p.Y36(e.so),p.Y36(e.WI),p.Y36(A.V6),p.Y36(g.sK),p.Y36(w.ff))},S.\u0275cmp=p.Xpm({type:S,selectors:[["app-delete-group-dialog"]],decls:2,vars:7,consts:[[3,"entityNames","entityType","loading","relations","deleted"]],template:function(v,D){1&v&&(p.TgZ(0,"div")(1,"perun-web-apps-delete-entity-dialog",0),p.NdJ("deleted",function(z){return D.onSubmit(z)}),p.qZA()()),2&v&&(p.Tol(D.theme),p.xp6(1),p.Q6J("entityNames",D.dataSource)("entityType","groups")("loading",D.loading)("relations",D.relations))},dependencies:[T.e]}),S})()},90719:(Qe,he,u)=>{"use strict";u.d(he,{m:()=>E});var e=u(32105),m=u(65412),A=u(69723),w=u(30671),p=u(94650),g=u(89383),T=u(90995);let E=(()=>{class S{constructor(v,D,F,z,$){this.dialogRef=v,this.data=D,this.serviceManager=F,this.notificator=z,this.translate=$,this.dataSource=new w.by(this.data.services),this.loading=!1,this.relations=[],this.force=!1}ngOnInit(){this.theme=this.data.theme,this.services=this.data.services,this.relations.push(this.translate.instant("DIALOGS.DELETE_SERVICE.DESTINATION_RELATION")),this.anotherMessage=this.translate.instant("DIALOGS.DELETE_SERVICE.MORE_INFORMATION")}onConfirm(){if(0===this.services.length)return this.dialogRef.close(!0),void this.notificator.showSuccess(this.translate.instant("DIALOGS.DELETE_SERVICE.SUCCESS"));this.loading=!0,this.serviceManager.deleteService(this.services.pop().id,this.force).subscribe(()=>{this.onConfirm(),this.loading=!1},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}onSubmit(v){this.force=v.force,v.deleted?this.onConfirm():this.onCancel()}}return S.\u0275fac=function(v){return new(v||S)(p.Y36(m.so),p.Y36(m.WI),p.Y36(e.KK),p.Y36(A.V6),p.Y36(g.sK))},S.\u0275cmp=p.Xpm({type:S,selectors:[["app-delete-service-dialog"]],decls:2,vars:8,consts:[[3,"entityNames","entityType","anotherMessage","loading","relations","deleted"]],template:function(v,D){1&v&&(p.TgZ(0,"div")(1,"perun-web-apps-delete-entity-dialog",0),p.NdJ("deleted",function(z){return D.onSubmit(z)}),p.qZA()()),2&v&&(p.Tol(D.theme),p.xp6(1),p.Q6J("entityNames",D.dataSource)("entityType","services")("anotherMessage",D.anotherMessage)("loading",D.loading)("relations",D.relations))},dependencies:[T.e]}),S})()},83491:(Qe,he,u)=>{"use strict";u.d(he,{_:()=>ke});var e=u(65412),m=u(32105),A=u(9244),w=u(85147),p=u(69723),g=u(94650),T=u(89383),E=u(36895),S=u(3238),R=u(39349),v=u(59549),D=u(284),F=u(24006),z=u(97392),$=u(4859),G=u(3848),q=u(56709),_e=u(84385),ce=u(51572),Te=u(10266),b=u(63312),H=u(52170);const L=["*"];let V=(()=>{class Ee{}return Ee.\u0275fac=function(it){return new(it||Ee)},Ee.\u0275cmp=g.Xpm({type:Ee,selectors:[["app-edit-application-form-item-line"]],inputs:{label:"label",description:"description"},ngContentSelectors:L,decls:9,vars:2,consts:[[1,"d-flex"],[1,"w-25","m-auto","font-weight-bold"],[1,"w-75"],[1,"d-flex","mb-3"],[1,"w-25"],[1,"w-75","font-italic","text-muted"]],template:function(it,oe){1&it&&(g.F$t(),g.TgZ(0,"div",0)(1,"span",1),g._uU(2),g.qZA(),g.TgZ(3,"div",2),g.Hsn(4),g.qZA()(),g.TgZ(5,"div",3),g._UZ(6,"span",4),g.TgZ(7,"div",5),g._uU(8),g.qZA()()),2&it&&(g.xp6(2),g.hij("",oe.label,":"),g.xp6(6),g.hij(" ",oe.description," "))}}),Ee})();var Q=u(57706);let ae=(()=>{class Ee{constructor(it){this.translateService=it}transform(it){switch(it){case"ALWAYS":case"NEVER":case"IF_PREFILLED":case"IF_EMPTY":return this.translateService.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED."+it);default:return it}}}return Ee.\u0275fac=function(it){return new(it||Ee)(g.Y36(T.sK,16))},Ee.\u0275pipe=g.Yjl({name:"applicationFormItemDisabled",type:Ee,pure:!0}),Ee})(),xe=(()=>{class Ee{constructor(it){this.translateService=it}transform(it){switch(it){case"ALWAYS":case"NEVER":case"IF_PREFILLED":case"IF_EMPTY":return this.translateService.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.HIDDEN."+it);default:return it}}}return Ee.\u0275fac=function(it){return new(it||Ee)(g.Y36(T.sK,16))},Ee.\u0275pipe=g.Yjl({name:"applicationFormItemHidden",type:Ee,pure:!0}),Ee})();function ge(Ee,ot){1&Ee&&g._UZ(0,"mat-spinner",8)}function Se(Ee,ot){if(1&Ee){const it=g.EpF();g.TgZ(0,"div")(1,"app-edit-application-form-item-line",12),g.ALo(2,"translate"),g.ALo(3,"translate"),g.TgZ(4,"section")(5,"mat-checkbox",22),g.NdJ("ngModelChange",function(X){g.CHM(it);const r=g.oxw(3);return g.KtG(r.applicationFormItem.updatable=X)}),g.qZA()()()()}if(2&Ee){const it=g.oxw(3);g.xp6(1),g.Q6J("description",g.lcZ(2,3,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.UPDATABLE_DESCRIPTION"))("label",g.lcZ(3,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.UPDATABLE")),g.xp6(4),g.Q6J("ngModel",it.applicationFormItem.updatable)}}function Be(Ee,ot){if(1&Ee){const it=g.EpF();g.TgZ(0,"div",13)(1,"mat-form-field",13)(2,"input",14),g.NdJ("ngModelChange",function(X){g.CHM(it);const r=g.oxw(3);return g.KtG(r.applicationFormItem.federationAttribute=X)}),g.qZA()()()}if(2&Ee){const it=g.oxw(3);g.xp6(2),g.Q6J("ngModel",it.applicationFormItem.federationAttribute)}}function pe(Ee,ot){if(1&Ee){const it=g.EpF();g.TgZ(0,"div")(1,"app-edit-application-form-item-line",12),g.ALo(2,"translate"),g.ALo(3,"translate"),g.TgZ(4,"section")(5,"mat-checkbox",22),g.NdJ("ngModelChange",function(X){g.CHM(it);const r=g.oxw(2);return g.KtG(r.applicationFormItem.required=X)}),g.qZA()()(),g.YNc(6,Se,6,7,"div",17),g.TgZ(7,"app-edit-application-form-item-line",12),g.ALo(8,"translate"),g.ALo(9,"translate"),g.TgZ(10,"div",13)(11,"perun-web-apps-selection-item-search-select",23),g.NdJ("itemSelected",function(X){g.CHM(it);const r=g.oxw(2);return g.KtG(r.applicationFormItem.perunSourceAttribute=X.value)}),g.qZA()()(),g.TgZ(12,"app-edit-application-form-item-line",12),g.ALo(13,"translate"),g.ALo(14,"translate"),g.TgZ(15,"div",13)(16,"perun-web-apps-selection-item-search-select",23),g.NdJ("itemSelected",function(X){g.CHM(it);const r=g.oxw(2);return g.KtG(r.applicationFormItem.perunDestinationAttribute=X.value)}),g.qZA()()(),g.TgZ(17,"app-edit-application-form-item-line",12),g.ALo(18,"translate"),g.ALo(19,"translate"),g.TgZ(20,"div",13)(21,"perun-web-apps-selection-item-search-select",24),g.NdJ("itemSelected",function(X){g.CHM(it);const r=g.oxw(2);return g.KtG(r.changeFederationAttribute(X))}),g.qZA()(),g.YNc(22,Be,3,1,"div",25),g.qZA()()}if(2&Ee){const it=g.oxw(2);g.xp6(1),g.Q6J("description",g.lcZ(2,22,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REQUIRED_DESCRIPTION"))("label",g.lcZ(3,24,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REQUIRED")),g.xp6(4),g.Q6J("ngModel",it.applicationFormItem.required),g.xp6(1),g.Q6J("ngIf",it.typesWithUpdatable.indexOf(it.applicationFormItem.type)>-1),g.xp6(1),g.Q6J("description",g.lcZ(8,26,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SOURCE_ATTRIBUTE_DESCRIPTION"))("label",g.lcZ(9,28,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SOURCE_ATTRIBUTE")),g.xp6(4),g.Q6J("attributes",it.sourceAttributes)("selectedAttribute",it.applicationFormItem.perunSourceAttribute)("asGroup",!!it.data.group)("type",it.itemType.SOURCE),g.xp6(1),g.Q6J("description",g.lcZ(13,30,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DESTINATION_ATTRIBUTE_DESCRIPTION"))("label",g.lcZ(14,32,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DESTINATION_ATTRIBUTE")),g.xp6(4),g.Q6J("attributes",it.destinationAttributes)("selectedAttribute",it.applicationFormItem.perunDestinationAttribute)("asGroup",!!it.data.group)("type",it.itemType.DESTINATION),g.xp6(1),g.Q6J("description",g.lcZ(18,34,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.FEDERATION_ATTRIBUTE_DESCRIPTION"))("label",g.lcZ(19,36,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.FEDERATION_ATTRIBUTE")),g.xp6(4),g.Q6J("selectedAttribute",it.applicationFormItem.federationAttribute)("asGroup",!!it.data.group)("type",it.itemType.FEDERATION),g.xp6(1),g.Q6J("ngIf"," -- custom value -- "===it.federationAttributeDN)}}function $e(Ee,ot){if(1&Ee){const it=g.EpF();g.TgZ(0,"div")(1,"app-edit-application-form-item-line",12),g.ALo(2,"translate"),g.ALo(3,"translate"),g.TgZ(4,"mat-form-field",13)(5,"input",14),g.NdJ("ngModelChange",function(X){g.CHM(it);const r=g.oxw(2);return g.KtG(r.applicationFormItem.regex=X)}),g.qZA()()()()}if(2&Ee){const it=g.oxw(2);g.xp6(1),g.Q6J("description",g.lcZ(2,3,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REGEX_DESCRIPTION"))("label",g.lcZ(3,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REGEX")),g.xp6(4),g.Q6J("ngModel",it.applicationFormItem.regex)}}function Ce(Ee,ot){if(1&Ee&&(g.TgZ(0,"mat-option",26),g._uU(1),g.ALo(2,"applicationFormItemDisabled"),g.qZA()),2&Ee){const it=ot.$implicit;g.Q6J("value",it),g.xp6(1),g.hij(" ",g.lcZ(2,2,it)," ")}}function de(Ee,ot){if(1&Ee){const it=g.EpF();g.TgZ(0,"perun-web-apps-app-form-item-search-select",27),g.NdJ("itemSelected",function(X){g.CHM(it);const r=g.oxw(3);return g.KtG(r.disabledDependencyItem=X)}),g.qZA()}if(2&Ee){const it=g.oxw(3);g.Q6J("item",it.disabledDependencyItem)("items",it.possibleDependencyItems)}}function re(Ee,ot){if(1&Ee){const it=g.EpF();g.TgZ(0,"div")(1,"app-edit-application-form-item-line",12),g.ALo(2,"translate"),g.ALo(3,"translate"),g.TgZ(4,"mat-form-field",13)(5,"mat-select",18),g.NdJ("valueChange",function(X){g.CHM(it);const r=g.oxw(2);return g.KtG(r.applicationFormItem.disabled=X)}),g.YNc(6,Ce,3,4,"mat-option",19),g.qZA()()(),g.TgZ(7,"app-edit-application-form-item-line",12),g.ALo(8,"translate"),g.ALo(9,"translate"),g.TgZ(10,"div",13),g.YNc(11,de,1,2,"perun-web-apps-app-form-item-search-select",20),g.qZA()()()}if(2&Ee){const it=g.oxw(2);g.xp6(1),g.Q6J("description",g.lcZ(2,7,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED_DESCRIPTION"))("label",g.lcZ(3,9,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED")),g.xp6(4),g.Q6J("value",it.applicationFormItem.disabled),g.xp6(1),g.Q6J("ngForOf",it.disabledValues),g.xp6(1),g.Q6J("description",g.lcZ(8,11,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED_DEPENDENCY_DESCRIPTION"))("label",g.lcZ(9,13,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED_DEPENDENCY")),g.xp6(4),g.Q6J("ngIf",null!==it.disabledDependencyItem)}}function B(Ee,ot){if(1&Ee&&(g.TgZ(0,"mat-option",26),g._uU(1),g.ALo(2,"applicationFormItemHidden"),g.qZA()),2&Ee){const it=ot.$implicit;g.Q6J("value",it),g.xp6(1),g.hij(" ",g.lcZ(2,2,it)," ")}}function N(Ee,ot){if(1&Ee){const it=g.EpF();g.TgZ(0,"perun-web-apps-app-form-item-search-select",27),g.NdJ("itemSelected",function(X){g.CHM(it);const r=g.oxw(2);return g.KtG(r.hiddenDependencyItem=X)}),g.qZA()}if(2&Ee){const it=g.oxw(2);g.Q6J("item",it.hiddenDependencyItem)("items",it.possibleDependencyItems)}}function Me(Ee,ot){if(1&Ee){const it=g.EpF();g.TgZ(0,"div")(1,"app-edit-application-form-item-line",12),g.ALo(2,"translate"),g.ALo(3,"translate"),g.TgZ(4,"mat-form-field",13)(5,"textarea",28),g.NdJ("ngModelChange",function(X){g.CHM(it);const r=g.oxw().$implicit,s=g.oxw(2);return g.KtG(s.applicationFormItem.i18n[r].label=X)}),g.qZA()()()()}if(2&Ee){const it=g.oxw().$implicit,oe=g.oxw(2);g.xp6(1),g.Q6J("description",g.lcZ(2,4,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.CONTENT_DESCRIPTION"))("label",g.lcZ(3,6,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.CONTENT")),g.xp6(4),g.Q6J("cdkTextareaAutosize",!0)("ngModel",oe.applicationFormItem.i18n[it].label)}}function Y(Ee,ot){if(1&Ee){const it=g.EpF();g.TgZ(0,"div")(1,"app-edit-application-form-item-line",12),g.ALo(2,"translate"),g.ALo(3,"translate"),g.TgZ(4,"mat-form-field",13)(5,"textarea",14),g.NdJ("ngModelChange",function(X){g.CHM(it);const r=g.oxw().$implicit,s=g.oxw(2);return g.KtG(s.applicationFormItem.i18n[r].label=X)}),g.qZA()()(),g.TgZ(6,"app-edit-application-form-item-line",12),g.ALo(7,"translate"),g.ALo(8,"translate"),g.TgZ(9,"mat-form-field",13)(10,"textarea",14),g.NdJ("ngModelChange",function(X){g.CHM(it);const r=g.oxw().$implicit,s=g.oxw(2);return g.KtG(s.applicationFormItem.i18n[r].help=X)}),g.qZA()()(),g.TgZ(11,"app-edit-application-form-item-line",12),g.ALo(12,"translate"),g.ALo(13,"translate"),g.TgZ(14,"mat-form-field",13)(15,"textarea",14),g.NdJ("ngModelChange",function(X){g.CHM(it);const r=g.oxw().$implicit,s=g.oxw(2);return g.KtG(s.applicationFormItem.i18n[r].errorMessage=X)}),g.qZA()()()()}if(2&Ee){const it=g.oxw().$implicit,oe=g.oxw(2);g.xp6(1),g.Q6J("description",g.lcZ(2,9,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL_DESCRIPTION"))("label",g.lcZ(3,11,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL")),g.xp6(4),g.Q6J("ngModel",oe.applicationFormItem.i18n[it].label),g.xp6(1),g.Q6J("description",g.lcZ(7,13,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HELP_DESCRIPTION"))("label",g.lcZ(8,15,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HELP")),g.xp6(4),g.Q6J("ngModel",oe.applicationFormItem.i18n[it].help),g.xp6(1),g.Q6J("description",g.lcZ(12,17,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.ERROR_DESCRIPTION"))("label",g.lcZ(13,19,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.ERROR")),g.xp6(4),g.Q6J("ngModel",oe.applicationFormItem.i18n[it].errorMessage)}}function be(Ee,ot){if(1&Ee){const it=g.EpF();g.TgZ(0,"div")(1,"app-edit-application-form-item-line",12),g.ALo(2,"translate"),g.ALo(3,"translate"),g.TgZ(4,"mat-form-field",13)(5,"textarea",14),g.NdJ("ngModelChange",function(X){g.CHM(it);const r=g.oxw().$implicit,s=g.oxw(2);return g.KtG(s.applicationFormItem.i18n[r].label=X)}),g.qZA()()()()}if(2&Ee){const it=g.oxw().$implicit,oe=g.oxw(2);g.xp6(1),g.Q6J("description",g.lcZ(2,3,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL_BUTTON_DESCRIPTION"))("label",g.lcZ(3,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL")),g.xp6(4),g.Q6J("ngModel",oe.applicationFormItem.i18n[it].label)}}function De(Ee,ot){if(1&Ee){const it=g.EpF();g.TgZ(0,"div"),g._uU(1),g.ALo(2,"translate"),g.TgZ(3,"mat-form-field")(4,"input",14),g.NdJ("ngModelChange",function(X){const s=g.CHM(it).$implicit;return g.KtG(s[0]=X)}),g.qZA()(),g._uU(5),g.ALo(6,"translate"),g.TgZ(7,"mat-form-field")(8,"input",14),g.NdJ("ngModelChange",function(X){const s=g.CHM(it).$implicit;return g.KtG(s[1]=X)}),g.qZA()(),g.TgZ(9,"button",37),g.NdJ("click",function(){const r=g.CHM(it).$implicit,s=g.oxw(2).$implicit,_=g.oxw(2);return g.KtG(_.removeOption(r,s))}),g.ALo(10,"translate"),g.TgZ(11,"mat-icon"),g._uU(12,"clear"),g.qZA()()()}if(2&Ee){const it=ot.$implicit;g.xp6(1),g.hij(" ",g.lcZ(2,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.VALUE"),": "),g.xp6(3),g.Q6J("ngModel",it[0]),g.xp6(1),g.hij(" ",g.lcZ(6,7,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL"),": "),g.xp6(3),g.Q6J("ngModel",it[1]),g.xp6(1),g.s9C("matTooltip",g.lcZ(10,9,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REMOVE_OPTION"))}}function We(Ee,ot){if(1&Ee){const it=g.EpF();g.TgZ(0,"div")(1,"div",29),g._uU(2),g.ALo(3,"translate"),g.qZA(),g.TgZ(4,"div",30),g._uU(5),g.ALo(6,"translate"),g.qZA(),g.TgZ(7,"div",31)(8,"button",32),g.NdJ("click",function(){g.CHM(it);const X=g.oxw().$implicit,r=g.oxw(2);return g.KtG(r.sortOptionsAZ(X))}),g.TgZ(9,"i",33),g._uU(10,"arrow_downward"),g.qZA(),g._uU(11),g.ALo(12,"translate"),g.qZA(),g.TgZ(13,"button",34),g.NdJ("click",function(){g.CHM(it);const X=g.oxw().$implicit,r=g.oxw(2);return g.KtG(r.sortOptionsZA(X))}),g.TgZ(14,"i",33),g._uU(15,"arrow_upward"),g.qZA(),g._uU(16),g.ALo(17,"translate"),g.qZA()(),g.YNc(18,De,13,11,"div",35),g.TgZ(19,"button",36),g.NdJ("click",function(){g.CHM(it);const X=g.oxw().$implicit,r=g.oxw(2);return g.KtG(r.addOption(X))}),g._uU(20),g.ALo(21,"translate"),g.qZA()()}if(2&Ee){const it=g.oxw().$implicit,oe=g.oxw(2);g.xp6(2),g.hij(" ",g.lcZ(3,6,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.OPTIONS"),": "),g.xp6(3),g.hij(" ",g.lcZ(6,8,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.OPTIONS_DESCRIPTION")," "),g.xp6(6),g.hij(" ",g.lcZ(12,10,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SORT_BY_LABEL_AZ")," "),g.xp6(5),g.hij(" ",g.lcZ(17,12,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SORT_BY_LABEL_ZA")," "),g.xp6(2),g.Q6J("ngForOf",oe.options[it]),g.xp6(2),g.hij(" ",g.lcZ(21,14,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.ADD_OPTION")," ")}}const Pe=function(){return["HEADING","HTML_COMMENT"]},nt=function(){return["TEXTFIELD","VALIDATED_EMAIL","USERNAME","PASSWORD","RADIO","TEXTAREA","COMBOBOX","CHECKBOX","TIMEZONE","SELECTIONBOX","EMBEDDED_GROUP_APPLICATION","LIST_INPUT_BOX","MAP_INPUT_BOX"]},Ye=function(){return["SUBMIT_BUTTON","AUTO_SUBMIT_BUTTON"]},Tt=function(){return["RADIO","COMBOBOX","CHECKBOX","SELECTIONBOX"]};function J(Ee,ot){if(1&Ee&&(g.TgZ(0,"mat-tab",11),g.ALo(1,"translate"),g.ALo(2,"uppercase"),g.YNc(3,Me,6,8,"div",17),g.YNc(4,Y,16,21,"div",17),g.YNc(5,be,6,7,"div",17),g.YNc(6,We,22,16,"div",17),g.qZA()),2&Ee){const it=ot.$implicit,oe=g.oxw(2);g.s9C("label",g.lcZ(1,5,g.lcZ(2,7,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LANGUAGE_"+it))),g.xp6(3),g.Q6J("ngIf",oe.isApplicationFormItemOfType(g.DdM(9,Pe))),g.xp6(1),g.Q6J("ngIf",oe.isApplicationFormItemOfType(g.DdM(10,nt))),g.xp6(1),g.Q6J("ngIf",oe.isApplicationFormItemOfType(g.DdM(11,Ye))),g.xp6(1),g.Q6J("ngIf",oe.isApplicationFormItemOfType(g.DdM(12,Tt)))}}const Xe=function(){return["TEXTFIELD","USERNAME","VALIDATED_EMAIL","PASSWORD","TEXTAREA","TIMEZONE","CHECKBOX","RADIO","COMBOBOX","SELECTIONBOX","LIST_INPUT_BOX","MAP_INPUT_BOX"]},le=function(){return["TEXTFIELD","USERNAME","PASSWORD","TEXTAREA","CHECKBOX","RADIO","COMBOBOX","SELECTIONBOX","LIST_INPUT_BOX","MAP_INPUT_BOX"]};function ne(Ee,ot){if(1&Ee){const it=g.EpF();g.TgZ(0,"div",9)(1,"mat-tab-group",10)(2,"mat-tab",11),g.ALo(3,"translate"),g.TgZ(4,"app-edit-application-form-item-line",12),g.ALo(5,"translate"),g.ALo(6,"translate"),g.TgZ(7,"mat-form-field",13)(8,"input",14),g.NdJ("ngModelChange",function(X){g.CHM(it);const r=g.oxw();return g.KtG(r.applicationFormItem.shortname=X)}),g.qZA()()(),g.TgZ(9,"app-edit-application-form-item-line",12),g.ALo(10,"translate"),g.ALo(11,"translate"),g._uU(12),g.ALo(13,"applicationFormItemType"),g.qZA(),g.TgZ(14,"app-edit-application-form-item-line",12),g.ALo(15,"translate"),g.ALo(16,"translate"),g.TgZ(17,"section")(18,"mat-checkbox",15),g.NdJ("change",function(){g.CHM(it);const X=g.oxw();return g.KtG(X.onChangingType("INITIAL"))}),g._uU(19),g.ALo(20,"translate"),g.qZA(),g.TgZ(21,"mat-checkbox",16),g.NdJ("change",function(){g.CHM(it);const X=g.oxw();return g.KtG(X.onChangingType("EXTENSION"))}),g._uU(22),g.ALo(23,"translate"),g.qZA()()(),g.YNc(24,pe,23,38,"div",17),g.YNc(25,$e,6,7,"div",17),g.YNc(26,re,12,15,"div",17),g.TgZ(27,"app-edit-application-form-item-line",12),g.ALo(28,"translate"),g.ALo(29,"translate"),g.TgZ(30,"mat-form-field",13)(31,"mat-select",18),g.NdJ("valueChange",function(X){g.CHM(it);const r=g.oxw();return g.KtG(r.applicationFormItem.hidden=X)}),g.YNc(32,B,3,4,"mat-option",19),g.qZA()()(),g.TgZ(33,"app-edit-application-form-item-line",12),g.ALo(34,"translate"),g.ALo(35,"translate"),g.TgZ(36,"div",13),g.YNc(37,N,1,2,"perun-web-apps-app-form-item-search-select",20),g.qZA()()(),g.YNc(38,J,7,13,"mat-tab",21),g.qZA()()}if(2&Ee){const it=g.oxw();g.xp6(2),g.s9C("label",g.lcZ(3,24,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.BASIC_SETTINGS")),g.xp6(2),g.Q6J("description",g.lcZ(5,26,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SHORT_NAME_DESCRIPTION"))("label",g.lcZ(6,28,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SHORT_NAME")),g.xp6(4),g.Q6J("ngModel",it.applicationFormItem.shortname),g.xp6(1),g.Q6J("description",g.lcZ(10,30,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.INPUT_WIDGET_DESCRIPTION"))("label",g.lcZ(11,32,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.INPUT_WIDGET")),g.xp6(3),g.hij(" ",g.lcZ(13,34,it.applicationFormItem.type)," "),g.xp6(2),g.Q6J("description",g.lcZ(15,36,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISPLAY_ON_APPLICATION_DESCRIPTION"))("label",g.lcZ(16,38,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISPLAY_ON_APPLICATION")),g.xp6(4),g.Q6J("ngModel",it.applicationFormItem.applicationTypes.includes("INITIAL")),g.xp6(1),g.hij(" ",g.lcZ(20,40,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.INITIAL")," "),g.xp6(2),g.Q6J("ngModel",it.applicationFormItem.applicationTypes.includes("EXTENSION")),g.xp6(1),g.hij(" ",g.lcZ(23,42,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.EXTENSION")," "),g.xp6(2),g.Q6J("ngIf",it.isApplicationFormItemOfType(g.DdM(52,Xe))),g.xp6(1),g.Q6J("ngIf",it.isApplicationFormItemOfType(g.DdM(53,le))),g.xp6(1),g.Q6J("ngIf",it.typesWithDisabled.indexOf(it.applicationFormItem.type)>-1),g.xp6(1),g.Q6J("description",g.lcZ(28,44,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN_DESCRIPTION"))("label",g.lcZ(29,46,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN")),g.xp6(4),g.Q6J("value",it.applicationFormItem.hidden),g.xp6(1),g.Q6J("ngForOf",it.hiddenValues),g.xp6(1),g.Q6J("description",g.lcZ(34,48,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN_DEPENDENCY_DESCRIPTION"))("label",g.lcZ(35,50,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN_DEPENDENCY")),g.xp6(4),g.Q6J("ngIf",null!==it.hiddenDependencyItem),g.xp6(1),g.Q6J("ngForOf",it.languages)}}let ke=(()=>{class Ee{constructor(it,oe,X,r,s,_){this.dialogRef=it,this.data=oe,this.attributesManager=X,this.translateService=r,this.store=s,this.cd=_,this.federationAttributeDN="",this.itemType=w.qG,this.loading=!1,this.hiddenValues=["NEVER","ALWAYS","IF_EMPTY","IF_PREFILLED"],this.disabledValues=["NEVER","ALWAYS","IF_EMPTY","IF_PREFILLED"],this.possibleDependencyItems=[],this.typesWithUpdatable=["VALIDATED_EMAIL","TEXTFIELD","TEXTAREA","CHECKBOX","RADIO","SELECTIONBOX","COMBOBOX","TIMEZONE"],this.typesWithDisabled=["USERNAME","PASSWORD","VALIDATED_EMAIL","TEXTFIELD","TEXTAREA","CHECKBOX","RADIO","SELECTIONBOX","COMBOBOX","LIST_INPUT_BOX","MAP_INPUT_BOX"],this.hiddenDependencyItem=null,this.disabledDependencyItem=null,this.languages=["en"],this.dependencyTypes=["PASSWORD","VALIDATED_EMAIL","TEXTFIELD","TEXTAREA","CHECKBOX","RADIO","SELECTIONBOX","COMBOBOX","USERNAME"]}ngOnInit(){this.languages=this.store.getProperty("supported_languages"),this.hiddenDependencyItem=this.data.allItems.find(it=>it.id===this.data.applicationFormItem.hiddenDependencyItemId),this.hiddenDependencyItem||(this.hiddenDependencyItem=w.Sx),this.disabledDependencyItem=this.data.allItems.find(it=>it.id===this.data.applicationFormItem.disabledDependencyItemId),this.disabledDependencyItem||(this.disabledDependencyItem=w.Sx),this.theme=this.data.theme,this.possibleDependencyItems=this.getPossibleDepItems(),this.applicationFormItem=(0,A.dv)(this.languages),this.copy(this.data.applicationFormItem,this.applicationFormItem),this.loading=!0,this.attributesManager.getAllAttributeDefinitions().subscribe(it=>{const oe=this.filterAttributesForWidget(it);this.sourceAttributes=oe.concat(this.findAttribute(it,this.applicationFormItem.perunSourceAttribute)),this.destinationAttributes=oe.concat(this.findAttribute(it,this.applicationFormItem.perunDestinationAttribute)),this.loading=!1},()=>this.loading=!1),null===this.applicationFormItem.perunDestinationAttribute&&(this.applicationFormItem.perunDestinationAttribute=""),null===this.applicationFormItem.perunSourceAttribute&&(this.applicationFormItem.perunSourceAttribute=""),this.getOptions()}cancel(){this.dialogRef.close()}submit(){this.applicationFormItem.hiddenDependencyItemId=this.hiddenDependencyItem===w.Sx?null:this.hiddenDependencyItem.id,this.applicationFormItem.disabledDependencyItemId=this.disabledDependencyItem===w.Sx?null:this.disabledDependencyItem.id,this.updateOptions(),this.copy(this.applicationFormItem,this.data.applicationFormItem),this.dialogRef.close(!0)}onChangingType(it){if(this.applicationFormItem.applicationTypes.includes(it)){const oe=this.applicationFormItem.applicationTypes.indexOf(it);this.applicationFormItem.applicationTypes.splice(oe,1)}else this.applicationFormItem.applicationTypes.push(it)}addOption(it){this.options[it].push(["",""])}removeOption(it,oe){this.options[oe]=this.options[oe].filter(X=>!(X[0]===it[0]&&X[1]===it[1]))}sortOptionsAZ(it){this.options[it]=this.options[it].sort((oe,X)=>oe[1]>X[1]?1:oe[1]oe[1]>X[1]?-1:oe[1]this.dependencyTypes.includes(it.type)).filter(it=>it.id!==this.data.applicationFormItem.id))}updateOption(it){let oe="";if(this.options[it])for(const X of this.options[it])""!==X[0]&&""!==X[1]&&(oe=""===oe?X[0]+"#"+X[1]:oe+"|"+X[0]+"#"+X[1]);this.applicationFormItem.i18n[it].options=oe}updateOptions(){for(const it of this.languages)this.updateOption(it)}findAttribute(it,oe){return it.find(X=>oe.includes(X.friendlyName))}filterAttributesForWidget(it){return it.filter("MAP_INPUT_BOX"===this.applicationFormItem.type?oe=>oe.type.includes("LinkedHashMap"):"LIST_INPUT_BOX"===this.applicationFormItem.type?oe=>oe.type.includes("ArrayList"):oe=>!oe.type.includes("ArrayList")&&!oe.type.includes("LinkedHashMap"))}}return Ee.\u0275fac=function(it){return new(it||Ee)(g.Y36(e.so),g.Y36(e.WI),g.Y36(m.H8),g.Y36(T.sK),g.Y36(p.d6),g.Y36(g.sBO))},Ee.\u0275cmp=g.Xpm({type:Ee,selectors:[["app-edit-application-form-item-dialog"]],decls:16,vars:20,consts:[[1,"h-100","d-flex","flex-column"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",1,"d-flex","mt-auto"],["mat-flat-button","",1,"ml-auto","mt-auto",3,"click"],[3,"matTooltipDisabled","matTooltip"],["mat-flat-button","","color","accent","data-cy","edit-form-item-button-dialog",1,"ml-2","mt-auto",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["color","primary"],[3,"label"],[3,"description","label"],[1,"w-100"],["matInput","",3,"ngModel","ngModelChange"],[1,"mr-2",3,"ngModel","change"],[3,"ngModel","change"],[4,"ngIf"],["disableOptionCentering","",3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[3,"item","items","itemSelected",4,"ngIf"],[3,"label",4,"ngFor","ngForOf"],[3,"ngModel","ngModelChange"],[3,"attributes","selectedAttribute","asGroup","type","itemSelected"],[3,"selectedAttribute","asGroup","type","itemSelected"],["class","w-100",4,"ngIf"],[3,"value"],[3,"item","items","itemSelected"],["matInput","",3,"cdkTextareaAutosize","ngModel","ngModelChange"],[1,"font-weight-bold"],[1,"text-muted","font-italic"],[1,"d-flex","mt-2","mb-2"],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],[1,"material-icons"],["mat-flat-button","",1,"mr-auto",3,"click"],[4,"ngFor","ngForOf"],["color","accent","mat-flat-button","",1,"mr-2",3,"click"],["color","warn","mat-icon-button","",3,"matTooltip","click"]],template:function(it,oe){1&it&&(g.TgZ(0,"div")(1,"div",0)(2,"h1",1),g._uU(3),g.ALo(4,"translate"),g.qZA(),g.YNc(5,ge,1,0,"mat-spinner",2),g.YNc(6,ne,39,54,"div",3),g.TgZ(7,"div",4)(8,"button",5),g.NdJ("click",function(){return oe.cancel()}),g._uU(9),g.ALo(10,"translate"),g.qZA(),g.TgZ(11,"div",6),g.ALo(12,"translate"),g.TgZ(13,"button",7),g.NdJ("click",function(){return oe.submit()}),g._uU(14),g.ALo(15,"translate"),g.qZA()()()()()),2&it&&(g.Gre("",oe.theme," h-100"),g.xp6(3),g.AsE(" ",g.lcZ(4,12,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.TITLE")," : ",oe.applicationFormItem.shortname," "),g.xp6(2),g.Q6J("ngIf",oe.loading),g.xp6(1),g.Q6J("ngIf",!oe.loading),g.xp6(3),g.hij(" ",g.lcZ(10,14,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.CANCEL_BUTTON")," "),g.xp6(2),g.s9C("matTooltip",g.lcZ(12,16,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SUBMIT_BUTTON_DISABLED_TOOLTIP")),g.Q6J("matTooltipDisabled",!oe.applicationFormItem.required||""!==oe.applicationFormItem.perunSourceAttribute||""!==oe.applicationFormItem.federationAttribute||"ALWAYS"!==oe.applicationFormItem.disabled&&"ALWAYS"!==oe.applicationFormItem.hidden),g.xp6(2),g.Q6J("disabled",oe.loading||oe.applicationFormItem.required&&""===oe.applicationFormItem.perunSourceAttribute&&""===oe.applicationFormItem.federationAttribute&&("ALWAYS"===oe.applicationFormItem.disabled||"ALWAYS"===oe.applicationFormItem.hidden)),g.xp6(1),g.hij(" ",g.lcZ(15,18,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SUBMIT_BUTTON")," "))},dependencies:[E.sg,E.O5,S.ey,R.IC,v.KE,D.Nt,F.Fj,F.JJ,F.On,z.Hw,$.lW,G.SP,G.uX,q.oG,e.uh,e.xY,e.H8,_e.gD,ce.Ou,Te.gM,b.Y,H.$x,V,E.gd,T.X$,Q.c,ae,xe]}),Ee})()},19352:(Qe,he,u)=>{"use strict";u.d(he,{H:()=>Be});var e=u(32105),m=u(65412),A=u(69723),w=u(30671),p=u(9244),g=u(21029),T=u(36895),E=u(94650),S=u(89383),R=u(97392),v=u(4859),D=u(51572),F=u(10266),z=u(31359);function $(pe,$e){1&pe&&E._UZ(0,"mat-spinner",6)}function G(pe,$e){1&pe&&(E.TgZ(0,"th",17),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&pe&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"DIALOGS.EDIT_MEMBER_SPONSORS.TABLE_ID")," "))}function q(pe,$e){if(1&pe&&(E.TgZ(0,"td",18),E._uU(1),E.qZA()),2&pe){const Ce=$e.$implicit;E.xp6(1),E.Oqu(Ce.user.id)}}function _e(pe,$e){1&pe&&(E.TgZ(0,"th",17),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&pe&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"DIALOGS.EDIT_MEMBER_SPONSORS.TABLE_NAME")," "))}function ce(pe,$e){if(1&pe&&(E.TgZ(0,"td",18),E._uU(1),E.ALo(2,"userFullName"),E.qZA()),2&pe){const Ce=$e.$implicit;E.xp6(1),E.Oqu(E.lcZ(2,1,Ce.user))}}function Te(pe,$e){1&pe&&(E.TgZ(0,"th",17),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&pe&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"DIALOGS.EDIT_MEMBER_SPONSORS.TABLE_EXPIRATION")," "))}function b(pe,$e){if(1&pe){const Ce=E.EpF();E.TgZ(0,"button",20),E.NdJ("click",function(){E.CHM(Ce);const re=E.oxw().$implicit,B=E.oxw(2);return E.KtG(B.changeExpiration(re))}),E.TgZ(1,"mat-icon"),E._uU(2," today "),E.qZA()()}}function H(pe,$e){if(1&pe&&(E.TgZ(0,"td",18)(1,"span"),E._uU(2),E.qZA(),E.YNc(3,b,3,0,"button",19),E.qZA()),2&pe){const Ce=$e.$implicit,de=E.oxw(2);E.xp6(2),E.Oqu(de.parseDate(Ce.validityTo)),E.xp6(1),E.Q6J("ngIf",de.isExpirationAuthorized(Ce))}}function L(pe,$e){1&pe&&E._UZ(0,"th",17)}function V(pe,$e){1&pe&&(E.TgZ(0,"mat-icon",25),E._uU(1,"clear"),E.qZA())}function Q(pe,$e){1&pe&&(E.TgZ(0,"mat-icon"),E._uU(1,"settings_backup_restore"),E.qZA())}function ae(pe,$e){if(1&pe){const Ce=E.EpF();E.TgZ(0,"td",18)(1,"div",21),E.ALo(2,"translate"),E.TgZ(3,"button",22),E.NdJ("click",function(){const B=E.CHM(Ce).$implicit,N=E.oxw(2);return E.KtG(N.markSponsor(B))}),E.YNc(4,V,2,0,"mat-icon",23),E.YNc(5,Q,2,0,"mat-icon",24),E.qZA()()()}if(2&pe){const Ce=$e.$implicit,de=E.oxw(2);E.xp6(1),E.s9C("matTooltip",E.lcZ(2,7,"DIALOGS.EDIT_MEMBER_SPONSORS.REMOVE_SPONSOR_DISABLED")),E.Q6J("matTooltipDisabled",de.isRemoveAuthorized(Ce))("matTooltipPosition","above"),E.xp6(2),E.Q2q("data-cy","",Ce.user.firstName,"-unsponsor-mark-button"),E.Q6J("disabled",!de.isRemoveAuthorized(Ce)),E.xp6(1),E.Q6J("ngIf",!de.sponsorsToRemove.has(Ce.user.id)),E.xp6(1),E.Q6J("ngIf",de.sponsorsToRemove.has(Ce.user.id))}}function xe(pe,$e){1&pe&&E._UZ(0,"tr",26)}function ge(pe,$e){if(1&pe&&E._UZ(0,"tr",27),2&pe){const Ce=$e.$implicit,de=E.oxw(2);E.ekj("make-red",de.sponsorsToRemove.has(Ce.user.id))}}function Se(pe,$e){if(1&pe&&(E.TgZ(0,"div",7)(1,"table",8),E.ynx(2,9),E.YNc(3,G,3,3,"th",10),E.YNc(4,q,2,1,"td",11),E.BQk(),E.ynx(5,12),E.YNc(6,_e,3,3,"th",10),E.YNc(7,ce,3,3,"td",11),E.BQk(),E.ynx(8,13),E.YNc(9,Te,3,3,"th",10),E.YNc(10,H,4,2,"td",11),E.BQk(),E.ynx(11,14),E.YNc(12,L,1,0,"th",10),E.YNc(13,ae,6,9,"td",11),E.BQk(),E.YNc(14,xe,1,0,"tr",15),E.YNc(15,ge,1,2,"tr",16),E.qZA()()),2&pe){const Ce=E.oxw();E.xp6(1),E.Q6J("dataSource",Ce.dataSource),E.xp6(13),E.Q6J("matHeaderRowDef",Ce.displayedColumns),E.xp6(1),E.Q6J("matRowDefColumns",Ce.displayedColumns)}}let Be=(()=>{class pe{constructor(Ce,de,re,B,N,Me,Y,be){this.dialogRef=Ce,this.data=de,this.memberService=re,this.userService=B,this.notificator=N,this.authResolver=Me,this.translate=Y,this.dialog=be,this.displayedColumns=["id","name","expiration","remove"],this.loading=!1,this.sponsorsToRemove=new Set,this.expirationChanged=!1}ngOnInit(){this.theme=this.data.theme,this.sponsors=this.data.sponsors,this.dataSource=new w.by(this.data.sponsors),this.vo={beanName:"Vo",id:this.data.member.voId}}markSponsor(Ce){this.sponsorsToRemove.has(Ce.user.id)?this.sponsorsToRemove.delete(Ce.user.id):this.sponsorsToRemove.add(Ce.user.id)}onSubmit(){this.loading=!0;const Ce=Array.from(this.sponsorsToRemove);this.removeSponsors(Ce)}onCancel(){this.dialogRef.close(this.expirationChanged)}isRemoveAuthorized(Ce){return this.authResolver.isAuthorized("sponsored-removeSponsor_Member_User_policy",[this.data.member])&&this.authResolver.isAuthorized("sponsor-removeSponsor_Member_User_policy",[Ce.user])}isExpirationAuthorized(Ce){return this.authResolver.isAuthorized("updateSponsorshipValidity_Member_User_LocalDate",[Ce.user,this.vo])}parseDate(Ce){return null===Ce?"Never expire":(0,T.p6)(Ce,"d.M.y","en")}changeExpiration(Ce){const de=(0,p.kZ)();de.width="400px",de.data={memberId:this.data.member.id,sponsor:Ce},this.dialog.open(g.hd,de).afterClosed().subscribe(B=>{B&&(this.loading=!0,this.expirationChanged=!0,this.userService.getSponsorsForMember(this.data.member.id,[]).subscribe(N=>{this.sponsors=N,this.dataSource=new w.by(this.sponsors),this.loading=!1}))})}removeSponsors(Ce){if(0===Ce.length)return this.notificator.showSuccess(this.translate.instant("DIALOGS.EDIT_MEMBER_SPONSORS.SUCCESS")),this.loading=!1,void this.dialogRef.close(!0);const de=Ce.pop();this.memberService.removeSponsor(this.data.member.id,de).subscribe(()=>{this.removeSponsors(Ce)},()=>this.loading=!1)}}return pe.\u0275fac=function(Ce){return new(Ce||pe)(E.Y36(m.so),E.Y36(m.WI),E.Y36(e.uq),E.Y36(e.Fv),E.Y36(A.V6),E.Y36(A.x4),E.Y36(S.sK),E.Y36(m.uw))},pe.\u0275cmp=E.Xpm({type:pe,selectors:[["app-edit-member-sponsors-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["data-cy","unsponsor-confirm-button","color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","expiration"],["matColumnDef","remove"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"make-red",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","",3,"click",4,"ngIf"],["mat-icon-button","",3,"click"],[3,"matTooltipDisabled","matTooltipPosition","matTooltip"],["mat-icon-button","",1,"btn-delete",3,"disabled","click"],["class","icn-delete","color","warn",4,"ngIf"],[4,"ngIf"],["color","warn",1,"icn-delete"],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(Ce,de){1&Ce&&(E.TgZ(0,"h1",0),E._uU(1),E.ALo(2,"translate"),E.qZA(),E.TgZ(3,"div"),E.YNc(4,$,1,0,"mat-spinner",1),E.YNc(5,Se,16,3,"div",2),E.TgZ(6,"div",3)(7,"button",4),E.NdJ("click",function(){return de.onCancel()}),E._uU(8),E.ALo(9,"translate"),E.qZA(),E.TgZ(10,"button",5),E.NdJ("click",function(){return de.onSubmit()}),E._uU(11),E.ALo(12,"translate"),E.qZA()()()),2&Ce&&(E.xp6(1),E.Oqu(E.lcZ(2,9,"DIALOGS.EDIT_MEMBER_SPONSORS.TITLE")),E.xp6(2),E.Tol(de.theme),E.xp6(1),E.Q6J("ngIf",de.loading),E.xp6(1),E.Q6J("ngIf",!de.loading),E.xp6(3),E.hij(" ",E.lcZ(9,11,"DIALOGS.EDIT_MEMBER_SPONSORS.CANCEL")," "),E.xp6(2),E.Q6J("disabled",de.loading||0===de.sponsorsToRemove.size),E.xp6(1),E.hij(" ",E.lcZ(12,13,"DIALOGS.EDIT_MEMBER_SPONSORS.SUBMIT")," "))},dependencies:[T.O5,R.Hw,v.lW,w.BZ,w.fO,w.as,w.w1,w.Dz,w.nj,w.ge,w.ev,w.XQ,w.Gk,m.uh,m.xY,m.H8,D.Ou,F.gM,S.X$,z.d],styles:[".make-red[_ngcontent-%COMP%]{background-color:#ffcdd2}.btn-delete[_ngcontent-%COMP%]:disabled .icn-delete[_ngcontent-%COMP%]{color:gray}"]}),pe})()},74414:(Qe,he,u)=>{"use strict";u.d(he,{R:()=>b});var e=u(65412),m=u(24006),A=u(32105),w=u(69723),p=u(94650),g=u(89383),T=u(36895),E=u(3238),S=u(59549),R=u(284),v=u(4859),D=u(84385),F=u(51572);function z(H,L){1&H&&p._UZ(0,"mat-spinner",6)}function $(H,L){1&H&&(p.TgZ(0,"div",14),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&H&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"DIALOGS.INVITE_MEMBER.DESCRIPTION_VO")," "))}function G(H,L){1&H&&(p.TgZ(0,"div",14),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&H&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"DIALOGS.INVITE_MEMBER.DESCRIPTION_GROUP")," "))}function q(H,L){1&H&&(p.TgZ(0,"mat-error"),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&H&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"DIALOGS.INVITE_MEMBER.NAME_ERROR")))}function _e(H,L){1&H&&(p.TgZ(0,"mat-error"),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&H&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"DIALOGS.INVITE_MEMBER.EMAIL_ERROR")))}function ce(H,L){if(1&H&&(p.TgZ(0,"mat-option",15),p._uU(1),p.ALo(2,"translate"),p.ALo(3,"uppercase"),p.qZA()),2&H){const V=L.$implicit;p.s9C("value",V),p.xp6(1),p.Oqu(p.lcZ(2,2,p.lcZ(3,4,"SHARED_LIB.LANGUAGES."+V)))}}function Te(H,L){if(1&H){const V=p.EpF();p.TgZ(0,"div",7),p.YNc(1,$,3,3,"div",8),p.YNc(2,G,3,3,"div",8),p.TgZ(3,"mat-form-field",9),p._UZ(4,"input",10),p.ALo(5,"translate"),p.YNc(6,q,3,3,"mat-error",11),p.qZA(),p.TgZ(7,"mat-form-field",9),p._UZ(8,"textarea",10),p.ALo(9,"translate"),p.YNc(10,_e,3,3,"mat-error",11),p.qZA(),p.TgZ(11,"mat-form-field",9)(12,"mat-label"),p._uU(13),p.ALo(14,"translate"),p.qZA(),p.TgZ(15,"mat-select",12),p.NdJ("valueChange",function(ae){p.CHM(V);const xe=p.oxw();return p.KtG(xe.currentLanguage=ae)}),p.YNc(16,ce,4,6,"mat-option",13),p.qZA()()()}if(2&H){const V=p.oxw();p.xp6(1),p.Q6J("ngIf",!V.data.groupId),p.xp6(1),p.Q6J("ngIf",V.data.groupId),p.xp6(2),p.s9C("placeholder",p.lcZ(5,11,"DIALOGS.INVITE_MEMBER.NAME")),p.Q6J("formControl",V.name),p.xp6(2),p.Q6J("ngIf",V.name.invalid),p.xp6(2),p.s9C("placeholder",p.lcZ(9,13,"DIALOGS.INVITE_MEMBER.EMAIL")),p.Q6J("formControl",V.emailForm),p.xp6(2),p.Q6J("ngIf",V.emailForm.invalid),p.xp6(3),p.Oqu(p.lcZ(14,15,"DIALOGS.INVITE_MEMBER.LANGUAGE")),p.xp6(2),p.Q6J("value",V.currentLanguage),p.xp6(1),p.Q6J("ngForOf",V.languages)}}let b=(()=>{class H{constructor(V,Q,ae,xe,ge,Se){this.dialogRef=V,this.data=Q,this.registrarManager=ae,this.notificator=xe,this.translate=ge,this.store=Se,this.emailForm=new m.p4("",[m.kI.required,m.kI.email.bind(this)]),this.languages=["en"],this.currentLanguage="en",this.name=new m.p4("",m.kI.required),this.loading=!1}ngOnInit(){this.languages=this.store.getProperty("supported_languages"),this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.emailForm.invalid||this.name.invalid||(this.data.voId&&!this.data.groupId?(this.loading=!0,this.registrarManager.sendInvitation(this.emailForm.value,this.currentLanguage,this.data.voId).subscribe(()=>{this.translate.get("DIALOGS.INVITE_MEMBER.SUCCESS").subscribe(V=>{this.notificator.showSuccess(V),this.dialogRef.close(!0)})},()=>this.loading=!1)):(this.loading=!0,this.registrarManager.sendInvitationForGroup(this.emailForm.value,this.currentLanguage,this.data.voId,this.data.groupId).subscribe(()=>{this.translate.get("DIALOGS.INVITE_MEMBER.SUCCESS").subscribe(V=>{this.notificator.showSuccess(V),this.dialogRef.close(!0)})},()=>this.loading=!1)))}}return H.\u0275fac=function(V){return new(V||H)(p.Y36(e.so),p.Y36(e.WI),p.Y36(A.tk),p.Y36(w.V6),p.Y36(g.sK),p.Y36(w.d6))},H.\u0275cmp=p.Xpm({type:H,selectors:[["app-invite-member-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],["class","font-italic",4,"ngIf"],[1,"w-100"],["matInput","","required","",3,"placeholder","formControl"],[4,"ngIf"],[3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[1,"font-italic"],[3,"value"]],template:function(V,Q){1&V&&(p.TgZ(0,"div")(1,"h1",0),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.YNc(4,z,1,0,"mat-spinner",1),p.YNc(5,Te,17,17,"div",2),p.TgZ(6,"div",3)(7,"button",4),p.NdJ("click",function(){return Q.onCancel()}),p._uU(8),p.ALo(9,"translate"),p.qZA(),p.TgZ(10,"button",5),p.NdJ("click",function(){return Q.onSubmit()}),p._uU(11),p.ALo(12,"translate"),p.qZA()()()),2&V&&(p.Tol(Q.theme),p.xp6(2),p.Oqu(p.lcZ(3,9,"DIALOGS.INVITE_MEMBER.TITLE")),p.xp6(2),p.Q6J("ngIf",Q.loading),p.xp6(1),p.Q6J("ngIf",!Q.loading),p.xp6(3),p.hij(" ",p.lcZ(9,11,"DIALOGS.INVITE_MEMBER.CANCEL")," "),p.xp6(2),p.Q6J("disabled",Q.emailForm.invalid||Q.name.invalid||Q.loading),p.xp6(1),p.hij(" ",p.lcZ(12,13,"DIALOGS.INVITE_MEMBER.INVITE")," "))},dependencies:[T.sg,T.O5,E.ey,S.TO,S.KE,S.hX,R.Nt,m.Fj,m.JJ,m.Q7,m.oH,v.lW,e.uh,e.xY,e.H8,D.gD,F.Ou,T.gd,g.X$]}),H})()},87842:(Qe,he,u)=>{"use strict";u.d(he,{c:()=>ae});var e=u(65412),m=u(24006),A=u(68675),w=u(54004),p=u(36769),g=u(69723),T=u(32105),E=u(94650),S=u(89383),R=u(36895),v=u(47957),D=u(3238),F=u(59549),z=u(284),$=u(4859),G=u(51572),q=u(10266),_e=u(71948),ce=u(98380);function Te(xe,ge){1&xe&&(E.TgZ(0,"mat-radio-button",12),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&xe&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"DIALOGS.MOVE_GROUP.NO_GROUP")," "))}function b(xe,ge){1&xe&&(E.TgZ(0,"mat-radio-button",13),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&xe&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"DIALOGS.MOVE_GROUP.TO_GROUP")," "))}function H(xe,ge){1&xe&&(E.TgZ(0,"perun-web-apps-alert",14),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&xe&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"DIALOGS.MOVE_GROUP.CANNOT_MOVE")," "))}function L(xe,ge){if(1&xe){const Se=E.EpF();E.TgZ(0,"mat-option",20),E.NdJ("click",function(){const $e=E.CHM(Se).$implicit,Ce=E.oxw(2);return E.KtG(Ce.selectedGroup=$e)}),E.TgZ(1,"span"),E._uU(2),E.qZA()()}if(2&xe){const Se=ge.$implicit;E.Q6J("value",Se),E.xp6(2),E.Oqu(Se.name)}}function V(xe,ge){if(1&xe){const Se=E.EpF();E.TgZ(0,"mat-form-field",15)(1,"input",16),E.NdJ("change",function(){E.CHM(Se);const pe=E.oxw();return E.KtG(pe.selectedGroup=null)}),E.ALo(2,"translate"),E.qZA(),E.TgZ(3,"mat-autocomplete",17,18),E.YNc(5,L,3,2,"mat-option",19),E.ALo(6,"async"),E.qZA()()}if(2&xe){const Se=E.MAs(4),Be=E.oxw();E.Q6J("@openClose","toGroup"===Be.moveOption?"open":"closed"),E.xp6(1),E.s9C("placeholder",E.lcZ(2,6,"DIALOGS.MOVE_GROUP.GROUP_SELECT")),E.Q6J("formControl",Be.otherGroupsCtrl)("matAutocomplete",Se),E.xp6(2),E.Q6J("displayWith",Be.displayFn),E.xp6(2),E.Q6J("ngForOf",E.lcZ(6,8,Be.filteredGroups))}}function Q(xe,ge){1&xe&&E._UZ(0,"mat-spinner",21)}let ae=(()=>{class xe{constructor(Se,Be,pe,$e,Ce,de,re){this.dialogRef=Se,this.data=Be,this.groupService=pe,this.notificator=$e,this.translate=Ce,this.apiRequest=de,this.authResolver=re,this.toRootOptionDisabled=!1,this.toGroupOptionDisabled=!1,this.otherGroups=[],this.otherGroupsCtrl=new m.p4(null,[m.kI.required.bind(this)]),this.loading=!1,this.selectedGroup=null,this.translate.get("DIALOGS.MOVE_GROUP.SUCCESS").subscribe(B=>this.successMessage=B),this.translate.get("DIALOGS.MOVE_GROUP.ERROR").subscribe(B=>this.errorMessage=B)}ngOnInit(){this.loading=!0,this.groupService.getAllGroups(this.data.group.voId).subscribe(Se=>{this.otherGroups=Se.filter(Be=>Be.id!==this.data.group.id&&"members"!==Be.name&&this.canMove(Be)),0===this.otherGroups.length&&(this.toGroupOptionDisabled=!0),(null===this.data.group.parentGroupId||!this.authResolver.isAuthorized("destination_null-moveGroup_Group_Group_policy",[this.data.group]))&&(this.toRootOptionDisabled=!0,this.moveOption="toGroup"),this.filteredGroups=this.otherGroupsCtrl.valueChanges.pipe((0,A.O)(""),(0,w.U)(Be=>Be?this._filterGroups(Be):this.otherGroups.slice())),this.loading=!1},()=>this.loading=!1)}displayFn(Se){return Se&&Se.name}canMove(Se){return this.authResolver.isAuthorized("moveGroup_Group_Group_policy",[Se,this.data.group])&&this.authResolver.isAuthorized("moveGroup_Group_Group_policy",[this.data.group,Se])}close(){this.dialogRef.close()}confirm(){this.loading=!0,this.apiRequest.dontHandleErrorForNext(),this.groupService.moveGroupWithDestinationGroupMovingGroup(this.data.group.id,this.otherGroupsCtrl.value?this.otherGroupsCtrl.value.id:void 0).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0)},Se=>{this.notificator.showRPCError(Se,this.errorMessage),this.dialogRef.close(!1)})}_filterGroups(Se){if("object"==typeof Se)return[];const Be=Se.toLowerCase();return Se?this.otherGroups.filter(pe=>pe.name.toLowerCase().includes(Be)):this.otherGroups}}return xe.\u0275fac=function(Se){return new(Se||xe)(E.Y36(e.so),E.Y36(e.WI),E.Y36(T.ff),E.Y36(g.V6),E.Y36(S.sK),E.Y36(g.F5),E.Y36(g.x4))},xe.\u0275cmp=E.Xpm({type:xe,selectors:[["app-move-group-dialog"]],decls:23,vars:28,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[3,"ngModel","ngModelChange"],["color","primary","class","move-options","value","toRoot",4,"ngIf"],["color","primary","value","toGroup",4,"ngIf"],["alert_type","warn",4,"ngIf"],["class","w-100 mt-2",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],[3,"matTooltipDisabled","matTooltipPosition","matTooltip"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],["color","primary","value","toRoot",1,"move-options"],["color","primary","value","toGroup"],["alert_type","warn"],[1,"w-100","mt-2"],["matInput","","required","",3,"placeholder","formControl","matAutocomplete","change"],[3,"displayWith"],["groupSelectAutocomplete","matAutocomplete"],[3,"value","click",4,"ngFor","ngForOf"],[3,"value","click"],[1,"ml-auto","mr-auto"]],template:function(Se,Be){1&Se&&(E.TgZ(0,"div")(1,"h1",0),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.TgZ(4,"div",1)(5,"p"),E._uU(6),E.ALo(7,"translate"),E.qZA(),E.TgZ(8,"mat-radio-group",2),E.NdJ("ngModelChange",function($e){return Be.moveOption=$e}),E.YNc(9,Te,3,3,"mat-radio-button",3),E.YNc(10,b,3,3,"mat-radio-button",4),E.qZA(),E.YNc(11,H,3,3,"perun-web-apps-alert",5),E.YNc(12,V,7,10,"mat-form-field",6),E.qZA(),E.YNc(13,Q,1,0,"mat-spinner",7),E.TgZ(14,"div",8)(15,"button",9),E.NdJ("click",function(){return Be.close()}),E._uU(16),E.ALo(17,"translate"),E.qZA(),E.TgZ(18,"span",10),E.ALo(19,"translate"),E.TgZ(20,"button",11),E.NdJ("click",function(){return Be.confirm()}),E._uU(21),E.ALo(22,"translate"),E.qZA()()()()),2&Se&&(E.Tol(Be.data.theme),E.xp6(2),E.AsE("",E.lcZ(3,18,"DIALOGS.MOVE_GROUP.TITLE"),"",Be.data.group.name,""),E.xp6(4),E.hij(" ",E.lcZ(7,20,"DIALOGS.MOVE_GROUP.INFO")," "),E.xp6(2),E.Q6J("ngModel",Be.moveOption),E.xp6(1),E.Q6J("ngIf",!Be.toRootOptionDisabled),E.xp6(1),E.Q6J("ngIf",!Be.toGroupOptionDisabled),E.xp6(1),E.Q6J("ngIf",Be.toRootOptionDisabled&&Be.toGroupOptionDisabled),E.xp6(1),E.Q6J("ngIf",!Be.toGroupOptionDisabled),E.xp6(1),E.Q6J("ngIf",Be.loading),E.xp6(3),E.hij(" ",E.lcZ(17,22,"DIALOGS.MOVE_GROUP.CANCEL")," "),E.xp6(2),E.s9C("matTooltip",E.lcZ(19,24,"DIALOGS.MOVE_GROUP.DISABLED_HINT")),E.Q6J("matTooltipDisabled",null!==Be.selectedGroup||"toRoot"===Be.moveOption)("matTooltipPosition","above"),E.xp6(2),E.Q6J("disabled",(Be.otherGroupsCtrl.invalid||null===Be.selectedGroup)&&"toRoot"!==Be.moveOption||Be.loading),E.xp6(1),E.hij(" ",E.lcZ(22,26,"DIALOGS.MOVE_GROUP.CONFIRM")," "))},dependencies:[R.sg,R.O5,v.XC,v.ZL,D.ey,F.KE,z.Nt,m.Fj,m.JJ,m.Q7,m.oH,m.On,$.lW,e.uh,e.xY,e.H8,G.Ou,q.gM,_e.VQ,_e.U0,ce.w,R.Ov,S.X$],styles:[".move-options[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:15px 0}"],data:{animation:[p.BQ]}}),xe})()},58964:(Qe,he,u)=>{"use strict";u.d(he,{m:()=>q});var e=u(65412),m=u(32105),A=u(69723),w=u(94650),p=u(89383),g=u(36895),T=u(3238),E=u(59549),S=u(4859),R=u(84385),v=u(51572);function D(_e,ce){1&_e&&w._UZ(0,"mat-spinner",7)}function F(_e,ce){if(1&_e&&(w.TgZ(0,"mat-option",13),w._uU(1),w.qZA()),2&_e){const Te=ce.$implicit;w.Q6J("value",Te),w.xp6(1),w.hij(" ",Te.friendlyNameParameter," ")}}function z(_e,ce){if(1&_e&&(w.TgZ(0,"mat-option",13),w._uU(1),w.ALo(2,"translate"),w.ALo(3,"uppercase"),w.qZA()),2&_e){const Te=ce.$implicit;w.Q6J("value",Te),w.xp6(1),w.hij(" ",w.lcZ(2,2,w.lcZ(3,4,"SHARED_LIB.LANGUAGES."+Te))," ")}}function $(_e,ce){if(1&_e&&(w.TgZ(0,"mat-option",13),w._uU(1),w.qZA()),2&_e){const Te=ce.$implicit;w.Q6J("value",Te),w.xp6(1),w.hij(" ",Te," ")}}function G(_e,ce){if(1&_e){const Te=w.EpF();w.TgZ(0,"div",8)(1,"mat-form-field")(2,"mat-label"),w._uU(3),w.ALo(4,"translate"),w.qZA(),w.TgZ(5,"mat-select",9),w.NdJ("valueChange",function(H){w.CHM(Te);const L=w.oxw();return w.KtG(L.selectedLogin=H)}),w.YNc(6,F,2,2,"mat-option",10),w.qZA()(),w.TgZ(7,"mat-form-field")(8,"mat-label"),w._uU(9),w.ALo(10,"translate"),w.qZA(),w.TgZ(11,"mat-select",9),w.NdJ("valueChange",function(H){w.CHM(Te);const L=w.oxw();return w.KtG(L.selectedLang=H)}),w.YNc(12,z,4,6,"mat-option",10),w.qZA()(),w.TgZ(13,"mat-form-field")(14,"mat-label"),w._uU(15),w.ALo(16,"translate"),w.qZA(),w.TgZ(17,"mat-select",9),w.NdJ("valueChange",function(H){w.CHM(Te);const L=w.oxw();return w.KtG(L.selectedMail=H)}),w.YNc(18,$,2,2,"mat-option",10),w.qZA()(),w.TgZ(19,"div",11)(20,"p",12),w._uU(21),w.ALo(22,"translate"),w.qZA(),w.TgZ(23,"p"),w._uU(24),w.qZA()()()}if(2&_e){const Te=w.oxw();w.xp6(3),w.Oqu(w.lcZ(4,11,"DIALOGS.PASSWORD_RESET_REQUEST.NAMESPACE")),w.xp6(2),w.Q6J("value",Te.selectedLogin),w.xp6(1),w.Q6J("ngForOf",Te.logins),w.xp6(3),w.Oqu(w.lcZ(10,13,"DIALOGS.PASSWORD_RESET_REQUEST.LANGUAGE")),w.xp6(2),w.Q6J("value",Te.selectedLang),w.xp6(1),w.Q6J("ngForOf",Te.languages),w.xp6(3),w.Oqu(w.lcZ(16,15,"DIALOGS.PASSWORD_RESET_REQUEST.EMAIL")),w.xp6(2),w.Q6J("value",Te.selectedMail),w.xp6(1),w.Q6J("ngForOf",Te.mails),w.xp6(3),w.Oqu(w.lcZ(22,17,"DIALOGS.PASSWORD_RESET_REQUEST.LOGIN")),w.xp6(3),w.Oqu(Te.selectedLogin.value)}}let q=(()=>{class _e{constructor(Te,b,H,L,V,Q,ae){this.dialogRef=Te,this.data=b,this.membersManagerService=H,this.attributesManagerService=L,this.store=V,this.translate=Q,this.notificator=ae,this.languages=this.store.getProperty("supported_languages"),this.selectedLang="en",this.pwdMails=new Map,this.logins=[],this.selectedMail="user:preferredMail",this.mails=[],Q.get("DIALOGS.PASSWORD_RESET_REQUEST.SUCCESS").subscribe(xe=>this.successMessage=xe)}ngOnInit(){this.getMailAttributes(),this.logins=this.data.logins,this.selectedLogin=this.logins[0]}onCancel(){this.dialogRef.close()}onSubmit(){this.loading=!0;const Te=this.selectedLogin.friendlyNameParameter,H=window.location.href.split("/"),L=H[0]+"//"+H[2];this.membersManagerService.sendPasswordResetLinkEmail(this.data.memberId,Te,this.pwdMails.get(this.selectedMail),this.selectedLang,L).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close()},()=>this.loading=!1)}getMailAttributes(){this.pwdMails.set("user:preferredMail","urn:perun:user:attribute-def:def:preferredMail"),this.pwdMails.set("member:mail","urn:perun:member:attribute-def:def:mail"),this.mails=Array.from(this.pwdMails.keys()),this.selectedMail="user:preferredMail"}}return _e.\u0275fac=function(Te){return new(Te||_e)(w.Y36(e.so),w.Y36(e.WI),w.Y36(m.uq),w.Y36(m.H8),w.Y36(A.d6),w.Y36(p.sK),w.Y36(A.V6))},_e.\u0275cmp=w.Xpm({type:_e,selectors:[["app-password-reset-request-dialog"]],decls:13,vars:12,consts:[["mat-dialog-title",""],[1,"member-theme"],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container member-theme","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["data-cy","reset-passwd-confirm-button","color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container","member-theme"],[3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[1,"row"],[1,"column-size","ml-3"],[3,"value"]],template:function(Te,b){1&Te&&(w.TgZ(0,"h1",0),w._uU(1),w.ALo(2,"translate"),w.qZA(),w.TgZ(3,"div",1),w.YNc(4,D,1,0,"mat-spinner",2),w.qZA(),w.YNc(5,G,25,19,"div",3),w.TgZ(6,"div",4)(7,"button",5),w.NdJ("click",function(){return b.onCancel()}),w._uU(8),w.ALo(9,"translate"),w.qZA(),w.TgZ(10,"button",6),w.NdJ("click",function(){return b.onSubmit()}),w._uU(11),w.ALo(12,"translate"),w.qZA()()),2&Te&&(w.xp6(1),w.Oqu(w.lcZ(2,6,"DIALOGS.PASSWORD_RESET_REQUEST.TITLE")),w.xp6(3),w.Q6J("ngIf",b.loading),w.xp6(1),w.Q6J("ngIf",!b.loading),w.xp6(3),w.hij(" ",w.lcZ(9,8,"DIALOGS.PASSWORD_RESET_REQUEST.CANCEL")," "),w.xp6(2),w.Q6J("disabled",b.loading),w.xp6(1),w.hij(" ",w.lcZ(12,10,"DIALOGS.PASSWORD_RESET_REQUEST.SEND")," "))},dependencies:[g.sg,g.O5,T.ey,E.KE,E.hX,S.lW,e.uh,e.xY,e.H8,R.gD,v.Ou,g.gd,p.X$],styles:[".column-size[_ngcontent-%COMP%]{width:8rem}"]}),_e})()},53455:(Qe,he,u)=>{"use strict";u.d(he,{X:()=>Te});var e=u(65412),m=u(30671),A=u(69723),w=u(32105),p=u(94650),g=u(89383),T=u(36895),E=u(4859),S=u(51572),R=u(31359);function v(b,H){1&b&&p._UZ(0,"th",13)}function D(b,H){if(1&b&&(p.TgZ(0,"td",14),p._uU(1),p.qZA()),2&b){const L=H.$implicit;p.xp6(1),p.Oqu(L.id)}}function F(b,H){1&b&&p._UZ(0,"th",13)}function z(b,H){if(1&b&&(p.TgZ(0,"td",14),p._uU(1),p.ALo(2,"userFullName"),p.qZA()),2&b){const L=H.$implicit;p.xp6(1),p.Oqu(p.lcZ(2,1,L.user))}}function $(b,H){1&b&&p._UZ(0,"tr",15)}function G(b,H){1&b&&p._UZ(0,"tr",16)}function q(b,H){if(1&b&&(p.TgZ(0,"div",4)(1,"p"),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"div",5),p._uU(5),p.ALo(6,"translate"),p.qZA(),p.TgZ(7,"table",6),p.ynx(8,7),p.YNc(9,v,1,0,"th",8),p.YNc(10,D,2,1,"td",9),p.BQk(),p.ynx(11,10),p.YNc(12,F,1,0,"th",8),p.YNc(13,z,3,3,"td",9),p.BQk(),p.YNc(14,$,1,0,"tr",11),p.YNc(15,G,1,0,"tr",12),p.qZA()()),2&b){const L=p.oxw();p.xp6(2),p.hij(" ",p.lcZ(3,5,L.data.groupId?"DIALOGS.REMOVE_MEMBERS.DESCRIPTION_GROUP":"DIALOGS.REMOVE_MEMBERS.DESCRIPTION")," "),p.xp6(3),p.hij(" ",p.lcZ(6,7,"DIALOGS.REMOVE_MEMBERS.ASK")," "),p.xp6(2),p.Q6J("dataSource",L.dataSource),p.xp6(7),p.Q6J("matHeaderRowDef",L.displayedColumns),p.xp6(1),p.Q6J("matRowDefColumns",L.displayedColumns)}}function _e(b,H){1&b&&p._UZ(0,"mat-spinner",17)}function ce(b,H){if(1&b){const L=p.EpF();p.TgZ(0,"div",18)(1,"button",19),p.NdJ("click",function(){p.CHM(L);const Q=p.oxw();return p.KtG(Q.onCancel())}),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"button",20),p.NdJ("click",function(){p.CHM(L);const Q=p.oxw();return p.KtG(Q.onSubmit())}),p._uU(5),p.ALo(6,"translate"),p.qZA()()}if(2&b){const L=p.oxw();p.xp6(2),p.hij(" ",p.lcZ(3,2,"DIALOGS.REMOVE_MEMBERS.CANCEL")," "),p.xp6(3),p.hij(" ",p.lcZ(6,4,L.data.groupId?"DIALOGS.REMOVE_MEMBERS.REMOVE_GROUP":"DIALOGS.REMOVE_MEMBERS.REMOVE")," ")}}let Te=(()=>{class b{constructor(L,V,Q,ae,xe,ge){this.dialogRef=L,this.data=V,this.membersService=Q,this.groupService=ae,this.notificator=xe,this.translate=ge,this.displayedColumns=["id","name"]}ngOnInit(){this.theme=this.data.theme,this.dataSource=new m.by(this.data.members)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.data.groupId?this.groupService.removeMembers(this.data.groupId,this.data.members.map(L=>L.id)).subscribe(()=>this.onSuccess(),()=>this.onError()):this.membersService.deleteMembers(this.data.members.map(L=>L.id)).subscribe(()=>this.onSuccess(),()=>this.onError())}onSuccess(){const L=this.translate.instant(this.data.groupId?"DIALOGS.REMOVE_MEMBERS.SUCCESS_GROUP":"DIALOGS.REMOVE_MEMBERS.SUCCESS");this.notificator.showSuccess(L),this.dialogRef.close(!0),this.loading=!1}onError(){this.loading=!1}}return b.\u0275fac=function(L){return new(L||b)(p.Y36(e.so),p.Y36(e.WI),p.Y36(w.uq),p.Y36(w.ff),p.Y36(A.V6),p.Y36(g.sK))},b.\u0275cmp=p.Xpm({type:b,selectors:[["app-remove-members-dialog"]],decls:7,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content","",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""],[1,"mr-auto","ml-auto"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","data-cy","remove-members-dialog","mat-flat-button","",1,"ml-2",3,"click"]],template:function(L,V){1&L&&(p.TgZ(0,"div")(1,"h1",0),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.YNc(4,q,16,9,"div",1),p.YNc(5,_e,1,0,"mat-spinner",2),p.YNc(6,ce,7,6,"div",3),p.qZA()),2&L&&(p.Tol(V.theme),p.xp6(2),p.Oqu(p.lcZ(3,7,"DIALOGS.REMOVE_MEMBERS.TITLE")),p.xp6(2),p.Q6J("ngIf",!V.loading),p.xp6(1),p.Q6J("ngIf",V.loading),p.xp6(1),p.Q6J("ngIf",!V.loading))},dependencies:[T.O5,E.lW,m.BZ,m.fO,m.as,m.w1,m.Dz,m.nj,m.ge,m.ev,m.XQ,m.Gk,e.uh,e.xY,e.H8,S.Ou,g.X$,R.d]}),b})()},533:(Qe,he,u)=>{"use strict";u.d(he,{f:()=>E});var e=u(65412),m=u(30671),A=u(69723),w=u(32105),p=u(94650),g=u(89383),T=u(90995);let E=(()=>{class S{constructor(v,D,F,z,$){this.dialogRef=v,this.data=D,this.notificator=F,this.translate=z,this.resourcesManager=$,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new m.by(this.data.resources)}onCancel(){this.dialogRef.close(!1)}onDelete(){this.loading=!0,0===this.data.resources.length?this.translate.get("DIALOGS.REMOVE_RESOURCES.SUCCESS").subscribe(v=>{this.loading=!1,this.notificator.showSuccess(v),this.dialogRef.close(!0)}):this.resourcesManager.deleteResource(this.data.resources[0].id).subscribe(()=>{this.data.resources.shift(),this.onDelete()},()=>{this.dialogRef.close(!0)})}onSubmit(v){v.deleted?this.onDelete():this.onCancel()}}return S.\u0275fac=function(v){return new(v||S)(p.Y36(e.so),p.Y36(e.WI),p.Y36(A.V6),p.Y36(g.sK),p.Y36(w.xk))},S.\u0275cmp=p.Xpm({type:S,selectors:[["app-remove-resource-dialog"]],decls:2,vars:7,consts:[[3,"entityNames","entityType","disableForce","loading","deleted"]],template:function(v,D){1&v&&(p.TgZ(0,"div")(1,"perun-web-apps-delete-entity-dialog",0),p.NdJ("deleted",function(z){return D.onSubmit(z)}),p.qZA()()),2&v&&(p.Tol(D.theme),p.xp6(1),p.Q6J("entityNames",D.dataSource)("entityType","resources")("disableForce",!0)("loading",D.loading))},dependencies:[T.e]}),S})()},11717:(Qe,he,u)=>{"use strict";u.d(he,{o:()=>E});var e=u(65412),m=u(30671),A=u(69723),w=u(32105),p=u(94650),g=u(89383),T=u(90995);let E=(()=>{class S{constructor(v,D,F,z,$){this.dialogRef=v,this.data=D,this.notificator=F,this.voService=z,this.translate=$,this.force=!1,this.displayedColumns=["name"],this.relations=[],$.get("DIALOGS.REMOVE_VO.SUCCESS").subscribe(G=>this.successMessage=G)}ngOnInit(){this.theme=this.data.theme,this.dataSource=new m.by(this.data.vos),this.relations.push(this.translate.instant("DIALOGS.REMOVE_VO.GROUP_RELATION")),this.relations.push(this.translate.instant("DIALOGS.REMOVE_VO.MEMBER_RELATION")),this.relations.push(this.translate.instant("DIALOGS.REMOVE_VO.RESOURCE_RELATION"))}onCancel(){this.dialogRef.close(!1)}onDelete(){this.loading=!0,this.voService.deleteVo(this.data.vos[0].id,this.force).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}onSubmit(v){this.force=v.force,v.deleted?this.onDelete():this.onCancel()}}return S.\u0275fac=function(v){return new(v||S)(p.Y36(e.so),p.Y36(e.WI),p.Y36(A.V6),p.Y36(w.YF),p.Y36(g.sK))},S.\u0275cmp=p.Xpm({type:S,selectors:[["app-remove-vo-dialog"]],decls:2,vars:7,consts:[[3,"entityNames","entityType","loading","relations","deleted"]],template:function(v,D){1&v&&(p.TgZ(0,"div")(1,"perun-web-apps-delete-entity-dialog",0),p.NdJ("deleted",function(z){return D.onSubmit(z)}),p.qZA()()),2&v&&(p.Tol(D.theme),p.xp6(1),p.Q6J("entityNames",D.dataSource)("entityType","organizations")("loading",D.loading)("relations",D.relations))},dependencies:[T.e],styles:[".foo[_ngcontent-%COMP%]{margin-top:20px}"]}),S})()},91828:(Qe,he,u)=>{"use strict";u.d(he,{b:()=>V});var e=u(65412),m=u(69723),A=u(32105),w=u(36895),p=u(24006),g=u(95017),T=u(64080),E=u(10036),S=u(94650),R=u(89383),v=u(59549),D=u(284),F=u(4859),z=u(51572),$=u(98380),G=u(38383),q=u(87488),_e=u(39158);function ce(Q,ae){if(1&Q){const xe=S.EpF();S.TgZ(0,"mat-form-field",12)(1,"label")(2,"input",13),S.NdJ("keyup.enter",function(){S.CHM(xe);const Se=S.oxw();return S.KtG(Se.onSearchByString())}),S.ALo(3,"translate"),S.qZA()(),S.TgZ(4,"mat-error"),S._uU(5),S.ALo(6,"translate"),S.qZA()()}if(2&Q){const xe=S.oxw();S.xp6(2),S.s9C("placeholder",S.lcZ(3,3,"DIALOGS.SPONSOR_EXISTING_MEMBER.DESCRIPTION")),S.Q6J("formControl",xe.searchCtrl),S.xp6(3),S.hij(" ",S.lcZ(6,5,"DIALOGS.SPONSOR_EXISTING_MEMBER.EMPTY_SEARCH_MESSAGE")," ")}}function Te(Q,ae){if(1&Q){const xe=S.EpF();S.TgZ(0,"button",14),S.NdJ("click",function(){S.CHM(xe);const Se=S.oxw();return S.KtG(Se.onSearchByString())}),S._uU(1),S.ALo(2,"translate"),S.qZA()}if(2&Q){const xe=S.oxw();S.Q6J("disabled",xe.loading),S.xp6(1),S.hij(" ",S.lcZ(2,2,"DIALOGS.SPONSOR_EXISTING_MEMBER.SEARCH")," ")}}function b(Q,ae){1&Q&&S._UZ(0,"mat-spinner",15)}function H(Q,ae){if(1&Q&&S._UZ(0,"perun-web-apps-members-list",16),2&Q){const xe=S.oxw();S.Q6J("disableRouting",!0)("hidden",xe.loading)("disableStatusChange",!0)("members",xe.members)("selection",xe.selection)("displayedColumns",xe.displayedColumns)("tableId",xe.tableId)}}function L(Q,ae){1&Q&&(S.TgZ(0,"perun-web-apps-alert",17),S._uU(1),S.ALo(2,"translate"),S.qZA()),2&Q&&(S.xp6(1),S.hij(" ",S.lcZ(2,1,"DIALOGS.SPONSOR_EXISTING_MEMBER.BEGIN_SEARCH")," "))}let V=(()=>{class Q{constructor(xe,ge,Se,Be,pe,$e){this.dialogRef=xe,this.data=ge,this.store=Se,this.membersService=Be,this.notificator=pe,this.translate=$e,this.loading=!1,this.tableId=E.US,this.expiration="never",this.searchCtrl=new p.p4("",[p.kI.required]),this.firstSearchDone=!1,this.members=[],this.selection=new g.Ov(!0,[]),this.selectedSponsor=null,this.sponsorType="self"}ngOnInit(){this.theme=this.data.theme,this.serviceMemberId=this.data.serviceMemberId,this.displayedColumns=this.serviceMemberId?["checkbox","id","fullName","sponsored","email"]:["checkbox","id","fullName","status","sponsored","email"],this.serviceMemberId&&(this.searchCtrl.setValue(this.serviceMemberId),this.onSearchByString())}onCancel(){this.dialogRef.close(!1)}sponsor(xe){if(this.loading=!0,0===xe.length)return this.notificator.showSuccess(this.translate.instant("DIALOGS.SPONSOR_EXISTING_MEMBER.SUCCESS")),this.loading=!1,void this.dialogRef.close(!0);const ge=xe.pop(),Se="self"===this.sponsorType?this.store.getPerunPrincipal().user:this.selectedSponsor;ge.sponsored?this.membersService.sponsorMember(ge.id,Se.id,this.expiration).subscribe({next:()=>{this.sponsor(xe)},error:()=>this.loading=!1}):this.membersService.setSponsorshipForMember(ge.id,Se.id,this.expiration).subscribe({next:()=>{this.sponsor(xe)},error:()=>this.loading=!1})}onSubmit(){this.loading=!0;const xe=Array.from(this.selection.selected);this.expiration="never"===this.expiration?null:this.expiration,this.sponsor(xe)}setExpiration(xe){this.expiration="never"===xe?"never":(0,w.p6)(xe,"yyyy-MM-dd","en-GB")}onSearchByString(){this.searchCtrl.invalid?this.searchCtrl.markAllAsTouched():(this.firstSearchDone=!0,this.loading=!0,this.selection.clear(),this.membersService.findCompleteRichMembersForVo(this.data.voId,[T.r.MEMBER_DEF_EXPIRATION,T.r.USER_DEF_PREFERRED_MAIL],this.searchCtrl.value).subscribe({next:ge=>{this.members=ge,this.serviceMemberId&&this.selection.toggle(ge[0]),this.loading=!1},error:()=>this.loading=!1}))}}return Q.\u0275fac=function(xe){return new(xe||Q)(S.Y36(e.so),S.Y36(e.WI),S.Y36(m.d6),S.Y36(A.uq),S.Y36(m.V6),S.Y36(R.sK))},Q.\u0275cmp=S.Xpm({type:Q,selectors:[["app-sponsor-existing-member-dialog"]],decls:24,vars:23,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["class","mr-2 search-field adjust-width",4,"ngIf"],["data-cy","sponsor-search-button","class","ml-auto","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableRouting","hidden","disableStatusChange","members","selection","displayedColumns","tableId",4,"ngIf"],["alert_type","info",4,"ngIf"],[3,"voId","voSponsors","sponsorTypeSelected","sponsorSelected"],[3,"datePicker"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["data-cy","sponsor-member-button","color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-2","search-field","adjust-width"],["data-cy","sponsor-search-input","autocomplete","false","matInput","",3,"formControl","placeholder","keyup.enter"],["data-cy","sponsor-search-button","color","accent","mat-flat-button","",1,"ml-auto",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"disableRouting","hidden","disableStatusChange","members","selection","displayedColumns","tableId"],["alert_type","info"]],template:function(xe,ge){1&xe&&(S.TgZ(0,"div")(1,"h1",0),S._uU(2),S.ALo(3,"translate"),S.qZA(),S.TgZ(4,"div",1),S.YNc(5,ce,7,7,"mat-form-field",2),S.YNc(6,Te,3,4,"button",3),S.YNc(7,b,1,0,"mat-spinner",4),S.YNc(8,H,1,7,"perun-web-apps-members-list",5),S.YNc(9,L,3,3,"perun-web-apps-alert",6),S.TgZ(10,"app-choose-sponsor",7),S.NdJ("sponsorTypeSelected",function(Be){return ge.sponsorType=Be})("sponsorSelected",function(Be){return ge.selectedSponsor=Be}),S.qZA(),S.TgZ(11,"div"),S._UZ(12,"br"),S.TgZ(13,"h6"),S._uU(14),S.ALo(15,"translate"),S.qZA(),S.TgZ(16,"perun-web-apps-expiration-select",8),S.NdJ("datePicker",function(Be){return ge.setExpiration(Be)}),S.qZA()()(),S.TgZ(17,"div",9)(18,"button",10),S.NdJ("click",function(){return ge.onCancel()}),S._uU(19),S.ALo(20,"translate"),S.qZA(),S.TgZ(21,"button",11),S.NdJ("click",function(){return ge.onSubmit()}),S._uU(22),S.ALo(23,"translate"),S.qZA()()()),2&xe&&(S.Tol(ge.theme),S.xp6(2),S.Oqu(S.lcZ(3,15,"DIALOGS.SPONSOR_EXISTING_MEMBER.TITLE")),S.xp6(3),S.Q6J("ngIf",!ge.serviceMemberId),S.xp6(1),S.Q6J("ngIf",!ge.serviceMemberId),S.xp6(1),S.Q6J("ngIf",ge.loading),S.xp6(1),S.Q6J("ngIf",ge.firstSearchDone),S.xp6(1),S.Q6J("ngIf",!ge.firstSearchDone),S.xp6(1),S.Q6J("voId",ge.data.voId)("voSponsors",ge.data.voSponsors),S.xp6(4),S.Oqu(S.lcZ(15,17,"DIALOGS.SPONSOR_EXISTING_MEMBER.EXPIRATION")),S.xp6(5),S.hij(" ",S.lcZ(20,19,"DIALOGS.SPONSOR_EXISTING_MEMBER.CANCEL")," "),S.xp6(2),S.Q6J("disabled",ge.loading||0===ge.selection.selected.length||"other"===ge.sponsorType&&!ge.selectedSponsor),S.xp6(1),S.hij(" ",S.lcZ(23,21,"DIALOGS.SPONSOR_EXISTING_MEMBER.SPONSOR")," "))},dependencies:[w.O5,v.TO,v.KE,D.Nt,p.Fj,p.JJ,p.oH,F.lW,e.uh,e.xY,e.H8,z.Ou,$.w,G.O,q.c,_e.l,R.X$],styles:[".adjust-width[_ngcontent-%COMP%]{width:270px}"]}),Q})()},1186:(Qe,he,u)=>{"use strict";u.d(he,{E:()=>G});var e=u(65412),m=u(32105),A=u(94650),w=u(36895),p=u(3238),g=u(59549),T=u(284),E=u(24006),S=u(4859),R=u(84385),v=u(51572),D=u(89383);function F(q,_e){1&q&&A._UZ(0,"mat-spinner",6)}function z(q,_e){if(1&q){const ce=A.EpF();A.TgZ(0,"div")(1,"mat-form-field",9)(2,"mat-select",10),A.NdJ("valueChange",function(b){A.CHM(ce);const H=A.oxw(2);return A.KtG(H.embeddedState=b)}),A.ALo(3,"translate"),A.TgZ(4,"mat-option",11),A._uU(5),A.ALo(6,"translate"),A.qZA(),A.TgZ(7,"mat-option",12),A._uU(8),A.ALo(9,"translate"),A.qZA()()()()}if(2&q){const ce=A.oxw(2);A.xp6(2),A.MGl("placeholder","",A.lcZ(3,4,"DIALOGS.UPDATE_APPLICATION_FORM.EMBEDDED"),":"),A.Q6J("value",ce.embeddedState),A.xp6(3),A.Oqu(A.lcZ(6,6,"DIALOGS.UPDATE_APPLICATION_FORM.AUTOMATIC")),A.xp6(3),A.Oqu(A.lcZ(9,8,"DIALOGS.UPDATE_APPLICATION_FORM.MANUAL"))}}function $(q,_e){if(1&q){const ce=A.EpF();A.TgZ(0,"div",7)(1,"mat-form-field")(2,"input",8),A.NdJ("ngModelChange",function(b){A.CHM(ce);const H=A.oxw();return A.KtG(H.moduleName=b)}),A.ALo(3,"translate"),A.qZA()(),A.TgZ(4,"mat-form-field",9)(5,"mat-select",10),A.NdJ("valueChange",function(b){A.CHM(ce);const H=A.oxw();return A.KtG(H.initialState=b)}),A.ALo(6,"translate"),A.TgZ(7,"mat-option",11),A._uU(8),A.ALo(9,"translate"),A.qZA(),A.TgZ(10,"mat-option",12),A._uU(11),A.ALo(12,"translate"),A.qZA()()(),A.TgZ(13,"mat-form-field",9)(14,"mat-select",10),A.NdJ("valueChange",function(b){A.CHM(ce);const H=A.oxw();return A.KtG(H.extensionState=b)}),A.ALo(15,"translate"),A.TgZ(16,"mat-option",11),A._uU(17),A.ALo(18,"translate"),A.qZA(),A.TgZ(19,"mat-option",12),A._uU(20),A.ALo(21,"translate"),A.qZA()()(),A.YNc(22,z,10,10,"div",13),A.qZA()}if(2&q){const ce=A.oxw();A.xp6(2),A.s9C("placeholder",A.lcZ(3,11,"DIALOGS.UPDATE_APPLICATION_FORM.MODULE_NAME")),A.Q6J("ngModel",ce.moduleName),A.xp6(3),A.MGl("placeholder","",A.lcZ(6,13,"DIALOGS.UPDATE_APPLICATION_FORM.INITIAL"),":"),A.Q6J("value",ce.initialState),A.xp6(3),A.Oqu(A.lcZ(9,15,"DIALOGS.UPDATE_APPLICATION_FORM.AUTOMATIC")),A.xp6(3),A.Oqu(A.lcZ(12,17,"DIALOGS.UPDATE_APPLICATION_FORM.MANUAL")),A.xp6(3),A.MGl("placeholder","",A.lcZ(15,19,"DIALOGS.UPDATE_APPLICATION_FORM.EXTENSION"),":"),A.Q6J("value",ce.extensionState),A.xp6(3),A.Oqu(A.lcZ(18,21,"DIALOGS.UPDATE_APPLICATION_FORM.AUTOMATIC")),A.xp6(3),A.Oqu(A.lcZ(21,23,"DIALOGS.UPDATE_APPLICATION_FORM.MANUAL")),A.xp6(2),A.Q6J("ngIf","group"===ce.entity&&ce.autoRegistrationEnabled)}}let G=(()=>{class q{constructor(ce,Te,b){this.dialogRef=ce,this.data=Te,this.registrarManager=b,this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.applicationForm=this.data.applicationForm,this.moduleName=this.applicationForm.moduleClassName,this.initialState=this.applicationForm.automaticApproval?"auto":"manual",this.extensionState=this.applicationForm.automaticApprovalExtension?"auto":"manual",this.embeddedState=this.applicationForm.automaticApprovalEmbedded?"auto":"manual",this.entity=this.data.entity,this.autoRegistrationEnabled=this.data.autoRegistrationEnabled}onCancel(){this.dialogRef.close()}submit(){this.loading=!0,this.applicationForm.moduleClassName=this.moduleName,this.applicationForm.automaticApproval="auto"===this.initialState,this.applicationForm.automaticApprovalExtension="auto"===this.extensionState,this.applicationForm.automaticApprovalEmbedded="auto"===this.embeddedState,this.registrarManager.updateForm({form:this.applicationForm}).subscribe(ce=>{this.dialogRef.close(ce)},()=>this.loading=!1)}}return q.\u0275fac=function(ce){return new(ce||q)(A.Y36(e.so),A.Y36(e.WI),A.Y36(m.tk))},q.\u0275cmp=A.Xpm({type:q,selectors:[["app-update-application-form-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","",3,"ngModel","placeholder","ngModelChange"],[1,"w-100"],["disableOptionCentering","",3,"value","placeholder","valueChange"],["value","auto"],["value","manual"],[4,"ngIf"]],template:function(ce,Te){1&ce&&(A.TgZ(0,"div")(1,"h1",0),A._uU(2),A.ALo(3,"translate"),A.qZA(),A.YNc(4,F,1,0,"mat-spinner",1),A.YNc(5,$,23,25,"div",2),A.TgZ(6,"div",3)(7,"button",4),A.NdJ("click",function(){return Te.onCancel()}),A._uU(8),A.ALo(9,"translate"),A.qZA(),A.TgZ(10,"button",5),A.NdJ("click",function(){return Te.submit()}),A._uU(11),A.ALo(12,"translate"),A.qZA()()()),2&ce&&(A.Tol(Te.theme),A.xp6(2),A.Oqu(A.lcZ(3,9,"DIALOGS.UPDATE_APPLICATION_FORM.TITLE")),A.xp6(2),A.Q6J("ngIf",Te.loading),A.xp6(1),A.Q6J("ngIf",!Te.loading),A.xp6(3),A.hij(" ",A.lcZ(9,11,"DIALOGS.UPDATE_APPLICATION_FORM.CANCEL_BUTTON")," "),A.xp6(2),A.Q6J("disabled",Te.loading),A.xp6(1),A.hij(" ",A.lcZ(12,13,"DIALOGS.UPDATE_APPLICATION_FORM.SUBMIT_BUTTON")," "))},dependencies:[w.O5,p.ey,g.KE,T.Nt,E.Fj,E.JJ,E.On,S.lW,e.uh,e.xY,e.H8,R.gD,v.Ou,D.X$]}),q})()},79394:(Qe,he,u)=>{"use strict";u.d(he,{_:()=>_t});var e=u(94650),m=u(32105),A=u(9244),w=u(65412),p=u(69723),g=u(36895),T=u(4859),E=u(51572),S=u(62707),R=u(82322),v=u(45703),D=u(79707),F=u(42377),z=u(89383);let $=(()=>{class me{constructor(){this.role=null,this.disableAutoSelect=!1,this.roleSelected=new e.vpe,this.nameFunction=rt=>rt.displayName,this.secondaryTextFunction=()=>null}}return me.\u0275fac=function(rt){return new(rt||me)},me.\u0275cmp=e.Xpm({type:me,selectors:[["perun-web-apps-role-search-select"]],inputs:{role:"role",roles:"roles",disableAutoSelect:"disableAutoSelect"},outputs:{roleSelected:"roleSelected"},decls:4,vars:15,consts:[[3,"entity","entities","disableAutoSelect","mainTextFunction","searchFunction","secondaryTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(rt,Mt){1&rt&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(Gt){return Mt.roleSelected.emit(Gt)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&rt&&e.Q6J("entity",Mt.role)("entities",Mt.roles)("disableAutoSelect",Mt.disableAutoSelect)("mainTextFunction",Mt.nameFunction)("searchFunction",Mt.nameFunction)("secondaryTextFunction",Mt.secondaryTextFunction)("selectPlaceholder",e.lcZ(1,9,"SHARED_LIB.PERUN.COMPONENTS.ROLE_SEARCH_SELECT.SELECT_ROLE"))("findPlaceholder",e.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.ROLE_SEARCH_SELECT.FIND_ROLE"))("noEntriesText",e.lcZ(3,13,"SHARED_LIB.PERUN.COMPONENTS.ROLE_SEARCH_SELECT.NO_ROLE_FOUND"))},dependencies:[F.i,z.X$]}),me})();var G=u(56575);let q=(()=>{class me{transform(rt,Mt,Qt){return rt.filter(Gt=>!Mt.get(Qt.roleName)?.get(Qt.primaryObject)?.includes(Gt.id))}}return me.\u0275fac=function(rt){return new(rt||me)},me.\u0275pipe=e.Yjl({name:"unassignedRole",type:me,pure:!0}),me})();function _e(me,qe){1&me&&e._UZ(0,"mat-spinner",4)}function ce(me,qe){if(1&me){const rt=e.EpF();e.TgZ(0,"perun-web-apps-vo-search-select",11),e.NdJ("voSelected",function(Qt){e.CHM(rt);const Gt=e.oxw(2);return e.KtG(Gt.selectedEntity=Qt)}),e.ALo(1,"unassignedRole"),e.ALo(2,"manageableEntities"),e.qZA()}if(2&me){const rt=e.oxw(2);e.Q6J("vos",e.Dn7(1,2,e.xi3(2,6,rt.vos,rt.selectedRule),rt.roles,rt.selectedRule))("disableAutoSelect",!0)}}function Te(me,qe){if(1&me){const rt=e.EpF();e.TgZ(0,"perun-web-apps-group-search-select",12),e.NdJ("groupSelected",function(Qt){e.CHM(rt);const Gt=e.oxw(2);return e.KtG(Gt.selectedEntity=Qt)}),e.ALo(1,"unassignedRole"),e.ALo(2,"manageableEntities"),e.qZA()}if(2&me){const rt=e.oxw(2);e.Q6J("groups",e.Dn7(1,2,e.xi3(2,6,rt.groups,rt.selectedRule),rt.roles,rt.selectedRule))("disableAutoSelect",!0)}}function b(me,qe){if(1&me){const rt=e.EpF();e.TgZ(0,"perun-web-apps-facility-search-select",13),e.NdJ("facilitySelected",function(Qt){e.CHM(rt);const Gt=e.oxw(2);return e.KtG(Gt.selectedEntity=Qt)}),e.ALo(1,"unassignedRole"),e.ALo(2,"manageableEntities"),e.qZA()}if(2&me){const rt=e.oxw(2);e.Q6J("facilities",e.Dn7(1,2,e.xi3(2,6,rt.facilities,rt.selectedRule),rt.roles,rt.selectedRule))("disableAutoSelect",!0)}}function H(me,qe){if(1&me){const rt=e.EpF();e.TgZ(0,"perun-web-apps-resource-search-select",14),e.NdJ("resourceSelected",function(Qt){e.CHM(rt);const Gt=e.oxw(2);return e.KtG(Gt.selectedEntity=Qt)}),e.ALo(1,"unassignedRole"),e.ALo(2,"manageableEntities"),e.qZA()}if(2&me){const rt=e.oxw(2);e.Q6J("resources",e.Dn7(1,2,e.xi3(2,6,rt.resources,rt.selectedRule),rt.roles,rt.selectedRule))("disableAutoSelect",!0)}}function L(me,qe){if(1&me){const rt=e.EpF();e.TgZ(0,"div",5)(1,"perun-web-apps-role-search-select",6),e.NdJ("roleSelected",function(Qt){e.CHM(rt);const Gt=e.oxw();return Gt.selectedRule=Qt,e.KtG(Gt.selectedEntity=null)}),e.qZA(),e.YNc(2,ce,3,9,"perun-web-apps-vo-search-select",7),e.YNc(3,Te,3,9,"perun-web-apps-group-search-select",8),e.YNc(4,b,3,9,"perun-web-apps-facility-search-select",9),e.YNc(5,H,3,9,"perun-web-apps-resource-search-select",10),e.qZA()}if(2&me){const rt=e.oxw();e.xp6(1),e.Q6J("roles",rt.rules),e.xp6(1),e.Q6J("ngIf","Vo"===(null==rt.selectedRule?null:rt.selectedRule.primaryObject)),e.xp6(1),e.Q6J("ngIf","Group"===(null==rt.selectedRule?null:rt.selectedRule.primaryObject)),e.xp6(1),e.Q6J("ngIf","Facility"===(null==rt.selectedRule?null:rt.selectedRule.primaryObject)),e.xp6(1),e.Q6J("ngIf","Resource"===(null==rt.selectedRule?null:rt.selectedRule.primaryObject))}}function V(me,qe){if(1&me){const rt=e.EpF();e.TgZ(0,"div",15)(1,"button",16),e.NdJ("click",function(){e.CHM(rt);const Qt=e.oxw();return e.KtG(Qt.cancel())}),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"button",17),e.NdJ("click",function(){e.CHM(rt);const Qt=e.oxw();return e.KtG(Qt.addRole())}),e._uU(5),e.ALo(6,"translate"),e.qZA()()}if(2&me){const rt=e.oxw();e.xp6(2),e.hij(" ",e.lcZ(3,3,"DIALOGS.ADD_ROLE.CANCEL")," "),e.xp6(2),e.Q6J("disabled",null===rt.selectedRule||null!==rt.selectedRule.primaryObject&&!rt.selectedEntity),e.xp6(1),e.hij(" ",e.lcZ(6,5,"DIALOGS.ADD_ROLE.ADD")," ")}}let Q=(()=>{class me{constructor(rt,Mt,Qt,Gt,an){this.dialogRef=rt,this.voService=Mt,this.groupService=Qt,this.facilityService=Gt,this.resourceService=an,this.loading=!1,this.submitForm=new e.vpe,this.selectedEntity=null,this.vos=[],this.groups=[],this.facilities=[],this.resources=[]}ngOnInit(){this.selectedRule=this.rules[0],this.rules.some(rt=>"Facility"===rt.primaryObject)&&this.facilityService.getAllFacilities().subscribe({next:rt=>this.facilities=rt}),this.rules.some(rt=>"Vo"===rt.primaryObject)&&this.voService.getMyVos().subscribe({next:rt=>this.vos=rt}),this.groupService.getAllGroupsFromAllVos().subscribe({next:rt=>this.groups=rt}),this.resourceService.getAllResources().subscribe({next:rt=>this.resources=rt})}cancel(){this.dialogRef.close(!1)}addRole(){this.submitForm.emit({role:this.selectedRule,entity:this.selectedEntity})}}return me.\u0275fac=function(rt){return new(rt||me)(e.Y36(w.so),e.Y36(m.YF),e.Y36(m.ff),e.Y36(m.IQ),e.Y36(m.xk))},me.\u0275cmp=e.Xpm({type:me,selectors:[["app-add-role-dialog"]],inputs:{loading:"loading",rules:"rules",roles:"roles",theme:"theme"},outputs:{submitForm:"submitForm"},decls:7,vars:9,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","","class","dialog-container",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"roles","roleSelected"],[3,"vos","disableAutoSelect","voSelected",4,"ngIf"],[3,"groups","disableAutoSelect","groupSelected",4,"ngIf"],[3,"facilities","disableAutoSelect","facilitySelected",4,"ngIf"],[3,"resources","disableAutoSelect","resourceSelected",4,"ngIf"],[3,"vos","disableAutoSelect","voSelected"],[3,"groups","disableAutoSelect","groupSelected"],[3,"facilities","disableAutoSelect","facilitySelected"],[3,"resources","disableAutoSelect","resourceSelected"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(rt,Mt){1&rt&&(e.TgZ(0,"div")(1,"h1",0),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.YNc(4,_e,1,0,"mat-spinner",1),e.YNc(5,L,6,5,"div",2),e.YNc(6,V,7,7,"div",3),e.qZA()),2&rt&&(e.Tol(Mt.theme),e.xp6(2),e.Oqu(e.lcZ(3,7,"DIALOGS.ADD_ROLE.TITLE")),e.xp6(2),e.Q6J("ngIf",Mt.loading),e.xp6(1),e.Q6J("ngIf",!Mt.loading),e.xp6(1),e.Q6J("ngIf",!Mt.loading))},dependencies:[g.O5,T.lW,w.uh,w.xY,w.H8,E.Ou,S.M,R.h,v.L,D.R,$,z.X$,G.G,q]}),me})(),ae=(()=>{class me{constructor(rt,Mt,Qt,Gt,an,hn){this.dialogRef=rt,this.data=Mt,this.authResolver=Qt,this.authzService=Gt,this.notificator=an,this.translate=hn,this.loading=!1,this.rules=this.authResolver.getAssignableRoleRules("GROUP")}addRole(rt){this.loading=!0,rt.entity?this.authzService.setRoleWithGroupComplementaryObject({role:rt.role.roleName,authorizedGroups:[this.data.entityId],complementaryObject:rt.entity}).subscribe({next:()=>{this.showSuccess(rt.role.displayName),this.dialogRef.close(!0)},error:()=>{this.loading=!1}}):this.authzService.setRoleForGroup({role:rt.role.roleName,authorizedGroup:this.data.entityId}).subscribe({next:()=>{this.showSuccess(rt.role.displayName),this.dialogRef.close(!0)},error:()=>{this.loading=!1}})}showSuccess(rt){this.notificator.showSuccess(this.translate.instant("DIALOGS.ADD_ROLE.SUCCESS",{role:rt}))}}return me.\u0275fac=function(rt){return new(rt||me)(e.Y36(w.so),e.Y36(w.WI),e.Y36(p.x4),e.Y36(m.Ct),e.Y36(p.V6),e.Y36(p.Te))},me.\u0275cmp=e.Xpm({type:me,selectors:[["app-add-group-role-dialog"]],decls:1,vars:4,consts:[[3,"loading","rules","roles","theme","submitForm"]],template:function(rt,Mt){1&rt&&(e.TgZ(0,"app-add-role-dialog",0),e.NdJ("submitForm",function(Gt){return Mt.addRole(Gt)}),e.qZA()),2&rt&&e.Q6J("loading",Mt.loading)("rules",Mt.rules)("roles",Mt.data.roles)("theme","group-theme")},dependencies:[Q]}),me})();var xe=u(19516);let ge=(()=>{class me{constructor(rt,Mt,Qt,Gt,an,hn,Nt){this.dialogRef=rt,this.data=Mt,this.authResolver=Qt,this.authzService=Gt,this.notificator=an,this.translate=hn,this.displayedRole=Nt,this.loading=!1,this.rules=this.authResolver.getAssignableRoleRules("USER")}addRole(rt){this.loading=!0,rt.entity?this.authzService.setRoleWithUserComplementaryObject({role:rt.role.roleName,users:[this.data.entityId],complementaryObject:rt.entity}).subscribe({next:()=>{this.showSuccess(rt.role.displayName),this.dialogRef.close(!0)},error:()=>{this.loading=!1}}):this.authzService.setRoleForUser({role:rt.role.roleName,user:this.data.entityId}).subscribe({next:()=>{this.showSuccess(rt.role.displayName),this.dialogRef.close(!0)},error:()=>{this.loading=!1}})}showSuccess(rt){this.notificator.showSuccess(this.translate.instant("DIALOGS.ADD_ROLE.SUCCESS",{role:rt}))}}return me.\u0275fac=function(rt){return new(rt||me)(e.Y36(w.so),e.Y36(w.WI),e.Y36(p.x4),e.Y36(m.Ct),e.Y36(p.V6),e.Y36(p.Te),e.Y36(xe.i2))},me.\u0275cmp=e.Xpm({type:me,selectors:[["app-add-user-role-dialog"]],features:[e._Bn([xe.i2])],decls:1,vars:4,consts:[[3,"loading","rules","theme","roles","submitForm"]],template:function(rt,Mt){1&rt&&(e.TgZ(0,"app-add-role-dialog",0),e.NdJ("submitForm",function(Gt){return Mt.addRole(Gt)}),e.qZA()),2&rt&&e.Q6J("loading",Mt.loading)("rules",Mt.rules)("theme","user-theme")("roles",Mt.data.roles)},dependencies:[Q]}),me})();var Se=u(95017),Be=u(21029),pe=u(61135),$e=u(39646),Ce=u(86099),de=u(48382),re=u(63900),B=u(18505),N=u(68675),Me=u(54004),Y=u(97392),be=u(37084),De=u(10266),We=u(73546),Pe=u(98380),nt=u(87831),Ye=u(25788),Tt=u(62109),J=u(38383),Xe=u(74010),le=u(94391),ne=u(64877),ke=u(23123);function Ee(me,qe){if(1&me){const rt=e.EpF();e.TgZ(0,"button",6),e.NdJ("click",function(){e.CHM(rt);const Qt=e.oxw();return e.KtG(Qt.addRole())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&me&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"ROLES.ADD"),"\n"))}function ot(me,qe){1&me&&e._UZ(0,"mat-spinner",7)}function it(me,qe){if(1&me){const rt=e.EpF();e.TgZ(0,"span",16),e.ALo(1,"translate"),e.TgZ(2,"button",17),e.NdJ("click",function(){e.CHM(rt);const Qt=e.oxw(2).$implicit,Gt=e.oxw(2);return e.KtG(Gt.openConfirmDialog(Qt))}),e._uU(3),e.ALo(4,"translate"),e.qZA()()}if(2&me){const rt=e.oxw(2).$implicit,Mt=e.oxw(2);e.s9C("matTooltip",e.lcZ(1,4,"ROLES.REMOVE_DISABLED_TOOLTIP")),e.Q6J("matTooltipDisabled",0===Mt.selection.selected.length||!Mt.disableRemove),e.xp6(2),e.Q6J("disabled",rt.primaryObject&&(0===Mt.selection.selected.length||Mt.disableRemove)),e.xp6(1),e.hij(" ",e.lcZ(4,6,"ROLES.REMOVE")," ")}}function oe(me,qe){if(1&me&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&me){const rt=e.oxw(5).$implicit,Mt=e.oxw(2);e.xp6(1),e.hij(" ",e.lcZ(2,1,"ROLES."+rt.roleName+"_VOS_"+Mt.entityType)," ")}}const X=function(){return["id","name","shortName"]},r=function(){return["checkbox","id","name","shortName"]};function s(me,qe){if(1&me&&(e.TgZ(0,"div",21),e.YNc(1,oe,3,3,"div",3),e._UZ(2,"perun-web-apps-vos-list",22),e.ALo(3,"async"),e.qZA()),2&me){const rt=e.oxw(4).$implicit,Mt=e.oxw(2);e.xp6(1),e.Q6J("ngIf",Mt.showDescription),e.xp6(1),e.Q6J("displayedColumns","MEMBERSHIP"===rt.roleName?e.DdM(6,X):e.DdM(7,r))("vos",e.lcZ(3,4,Mt.vos))("selection",Mt.selection)}}function _(me,qe){if(1&me&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&me){const rt=e.oxw(5).$implicit,Mt=e.oxw(2);e.xp6(1),e.hij(" ",e.lcZ(2,1,"ROLES."+rt.roleName+"_GROUPS_"+Mt.entityType)," ")}}const c=function(){return["id","vo","name","description"]},a=function(){return["select","id","vo","name","description"]};function i(me,qe){if(1&me&&(e.TgZ(0,"div",21),e.YNc(1,_,3,3,"div",3),e._UZ(2,"perun-web-apps-groups-list",23),e.ALo(3,"async"),e.qZA()),2&me){const rt=e.oxw(4).$implicit,Mt=e.oxw(2);e.xp6(1),e.Q6J("ngIf",Mt.showDescription),e.xp6(1),e.Q6J("displayedColumns","MEMBERSHIP"===rt.roleName?e.DdM(6,c):e.DdM(7,a))("groups",e.lcZ(3,4,Mt.groups))("selection",Mt.selection)}}function t(me,qe){if(1&me&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&me){const rt=e.oxw(5).$implicit,Mt=e.oxw(2);e.xp6(1),e.hij(" ",e.lcZ(2,1,"ROLES."+rt.roleName+"_RESOURCES_"+Mt.entityType)," ")}}const n=function(){return["id","name","vo","facility","description"]},o=function(){return["select","id","name","vo","facility","description"]};function l(me,qe){if(1&me&&(e.TgZ(0,"div",21),e.YNc(1,t,3,3,"div",3),e._UZ(2,"perun-web-apps-resources-list",24),e.ALo(3,"async"),e.qZA()),2&me){const rt=e.oxw(4).$implicit,Mt=e.oxw(2);e.xp6(1),e.Q6J("ngIf",Mt.showDescription),e.xp6(1),e.Q6J("resources",e.lcZ(3,5,Mt.resources))("displayedColumns","MEMBERSHIP"===rt.roleName?e.DdM(7,n):e.DdM(8,o))("routingVo",!0)("selection",Mt.selection)}}function d(me,qe){if(1&me&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&me){const rt=e.oxw(5).$implicit,Mt=e.oxw(2);e.xp6(1),e.hij(" ",e.lcZ(2,1,"ROLES."+rt.roleName+"_FACILITIES_"+Mt.entityType)," ")}}const y=function(){return["id","name","description"]},k=function(){return["select","id","name","description"]};function Ie(me,qe){if(1&me&&(e.TgZ(0,"div",21),e.YNc(1,d,3,3,"div",3),e._UZ(2,"perun-web-apps-facilities-list",25),e.ALo(3,"async"),e.qZA()),2&me){const rt=e.oxw(4).$implicit,Mt=e.oxw(2);e.xp6(1),e.Q6J("ngIf",Mt.showDescription),e.xp6(1),e.Q6J("displayedColumns","MEMBERSHIP"===rt.roleName?e.DdM(6,y):e.DdM(7,k))("facilities",e.lcZ(3,4,Mt.facilities))("selection",Mt.selection)}}function tt(me,qe){if(1&me&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&me){const rt=e.oxw(5).$implicit,Mt=e.oxw(2);e.xp6(1),e.hij(" ",e.lcZ(2,1,"ROLES."+rt.roleName+"_MEMBERS_"+Mt.entityType)," ")}}const ct=function(){return["id","fullName","sponsored"]};function Ue(me,qe){if(1&me&&(e.TgZ(0,"div",21),e.YNc(1,tt,3,3,"div",3),e._UZ(2,"perun-web-apps-members-list",26),e.ALo(3,"async"),e.qZA()),2&me){const rt=e.oxw(6);e.xp6(1),e.Q6J("ngIf",rt.showDescription),e.xp6(1),e.Q6J("displayedColumns",e.DdM(5,ct))("members",e.lcZ(3,3,rt.members))}}function at(me,qe){if(1&me&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&me){const rt=e.oxw(5).$implicit,Mt=e.oxw(2);e.xp6(1),e.hij(" ",e.lcZ(2,1,"ROLES."+rt.roleName+"_USERS_"+Mt.entityType)," ")}}const fe=function(){return["user","id","name"]};function Oe(me,qe){if(1&me&&(e.TgZ(0,"div",21),e.YNc(1,at,3,3,"div",3),e._UZ(2,"app-users-list",27),e.ALo(3,"async"),e.qZA()),2&me){const rt=e.oxw(6);e.xp6(1),e.Q6J("ngIf",rt.showDescription),e.xp6(1),e.Q6J("displayedColumns",e.DdM(6,fe))("disableRouting",!0)("users",e.lcZ(3,4,rt.users))}}function Ke(me,qe){if(1&me&&(e.TgZ(0,"div"),e.YNc(1,s,4,8,"div",20),e.YNc(2,i,4,8,"div",20),e.YNc(3,l,4,9,"div",20),e.YNc(4,Ie,4,8,"div",20),e.YNc(5,Ue,4,6,"div",20),e.YNc(6,Oe,4,7,"div",20),e.qZA()),2&me){const rt=e.oxw(3).$implicit;e.xp6(1),e.Q6J("ngIf","Vo"===rt.primaryObject||"MEMBERSHIP"===rt.roleName),e.xp6(1),e.Q6J("ngIf","Group"===rt.primaryObject||"MEMBERSHIP"===rt.roleName),e.xp6(1),e.Q6J("ngIf","Resource"===rt.primaryObject||"MEMBERSHIP"===rt.roleName),e.xp6(1),e.Q6J("ngIf","Facility"===rt.primaryObject||"MEMBERSHIP"===rt.roleName),e.xp6(1),e.Q6J("ngIf","SPONSORSHIP"===rt.roleName),e.xp6(1),e.Q6J("ngIf","SELF"===rt.roleName)}}function je(me,qe){if(1&me&&(e.TgZ(0,"div",18),e.YNc(1,Ke,7,6,"div",19),e.qZA()),2&me){const rt=e.oxw(4),Mt=e.MAs(8);e.xp6(1),e.Q6J("perunWebAppsLoader",rt.loading)("perunWebAppsLoaderIndicator",Mt)}}function Le(me,qe){if(1&me&&(e.YNc(0,it,5,8,"span",14),e.YNc(1,je,2,2,"div",15)),2&me){const rt=e.oxw().$implicit,Mt=e.MAs(1);e.Q6J("ngIf","SELF"!==rt.roleName&&"MEMBERSHIP"!==rt.roleName&&"SPONSORSHIP"!==rt.roleName),e.xp6(1),e.Q6J("ngIf",Mt.expanded)}}function ie(me,qe){if(1&me){const rt=e.EpF();e.TgZ(0,"mat-expansion-panel",9,10),e.NdJ("opened",function(){const Gt=e.CHM(rt).$implicit,an=e.oxw(2);return e.KtG(an.selectedRole.next(Gt))})("closed",function(){e.CHM(rt);const Qt=e.oxw(2);return e.KtG(Qt.selection.clear())}),e.TgZ(2,"mat-expansion-panel-header")(3,"mat-panel-title"),e._UZ(4,"mat-icon",11),e.TgZ(5,"p",12),e._uU(6),e.ALo(7,"displayedRole"),e.qZA()()(),e.YNc(8,Le,2,2,"ng-template",13),e.qZA()}if(2&me){const rt=qe.$implicit;e.xp6(6),e.Oqu(e.lcZ(7,1,rt))}}function Ae(me,qe){if(1&me&&(e.TgZ(0,"mat-accordion"),e.YNc(1,ie,9,3,"mat-expansion-panel",8),e.qZA()),2&me){const rt=e.oxw();e.xp6(1),e.Q6J("ngForOf",rt.allRules)}}function st(me,qe){1&me&&(e.TgZ(0,"perun-web-apps-alert",28),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&me&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"ROLES.NO_ROLES"),"\n"))}function ze(me,qe){1&me&&(e.TgZ(0,"div",29),e._UZ(1,"mat-spinner"),e.qZA())}let _t=(()=>{class me{constructor(rt,Mt,Qt,Gt,an,hn,Nt,Ht,yt,Ft,Kt,Cn,Mn){this.authzResolverService=rt,this.usersService=Mt,this.vosService=Qt,this.facilitiesService=Gt,this.resourcesService=an,this.groupsService=hn,this.membersService=Nt,this.dialog=Ht,this.notification=yt,this.translate=Ft,this.rolePipe=Kt,this.guiAuthResolver=Cn,this.manageableEntities=Mn,this.reload=new e.vpe,this.startLoading=new e.vpe,this.selection=new Se.Ov(!1,[]),this.assignableRules=[],this.allRules=[],this.disableRemove=!1,this.selectedRole=new pe.X(null),this.groups=this.selectedRole.pipe((0,re.w)(pn=>{this.loading=!0;const Hn=this.roles.get(pn.roleName).get("Group");return Hn?.length?this.groupsService.getGroupsByIds(Hn):(0,$e.of)([])}),(0,B.b)(()=>this.loading=!1),(0,N.O)([])),this.vos=this.selectedRole.pipe((0,re.w)(pn=>{this.loading=!0;const Hn=this.roles.get(pn.roleName).get("Vo");return Hn?.length?this.vosService.getVosByIds(Hn):(0,$e.of)([])}),(0,B.b)(()=>this.loading=!1),(0,N.O)([])),this.facilities=this.selectedRole.pipe((0,re.w)(pn=>{this.loading=!0;const Hn=this.roles.get(pn.roleName).get("Facility");return Hn?.length?this.facilitiesService.getFacilitiesByIds(Hn):(0,$e.of)([])}),(0,Me.U)(pn=>pn.map(Hn=>({facility:Hn}))),(0,B.b)(()=>this.loading=!1),(0,N.O)([])),this.resources=this.selectedRole.pipe((0,re.w)(pn=>{this.loading=!0;const Hn=this.roles.get(pn.roleName).get("Resource");return Hn?.length?this.resourcesService.getRichResourcesByIds(Hn):(0,$e.of)([])}),(0,B.b)(()=>this.loading=!1),(0,N.O)([])),this.members=this.selectedRole.pipe((0,re.w)(pn=>this.membersService.getRichMembersByIds(this.roles.get(pn.roleName).get("Member"))),(0,B.b)(()=>this.loading=!1),(0,N.O)([])),this.users=this.selectedRole.pipe((0,re.w)(pn=>this.usersService.getRichUsersByIds([this.entityId].concat(this.roles.get(pn.roleName).get("User")))),(0,B.b)(()=>this.loading=!1),(0,N.O)([])),this._roles=new Map}get roles(){return this._roles}set roles(rt){this._roles=rt,this.allRules=this.guiAuthResolver.getAllRules().filter(Mt=>this._roles.has(Mt.roleName))}ngOnInit(){this.assignableRules=this.guiAuthResolver.getAssignableRoleRules("GROUP"===this.entityType?"GROUP":"USER"),this.selection.changed.subscribe(rt=>{const Mt=rt.source.selected.map(Gt=>"beanName"in Gt?Gt:"facility"in Gt?Gt.facility:void 0),Qt=this.manageableEntities.transform(Mt,this.selectedRole.getValue()).length;this.disableRemove=rt.source.selected.length!==Qt})}addRole(){const rt=(0,A.kZ)();let Mt;rt.width="650px",rt.data={entityId:this.entityId,roles:this.roles},Mt=this.dialog.open("GROUP"===this.entityType?ae:ge,rt),Mt.afterClosed().subscribe({next:Qt=>{Qt&&(this.startLoading.emit(),this.refresh())}})}openConfirmDialog(rt){const Mt=(0,A.kZ)();Mt.width="550px",Mt.data={theme:"GROUP"===this.entityType?"group-theme":"user-theme",title:"ROLES.REMOVE",description:"ROLES.REMOVE_DESC",items:[this.rolePipe.transform(rt)],alert:!1,type:"remove",showAsk:!0},this.dialog.open(Be.Ts,Mt).afterClosed().subscribe({next:Gt=>{Gt&&(this.startLoading.emit(),rt.primaryObject?this.removeRoleWithComplementaryObject(rt):this.removeRole(rt))}})}removeRole(rt){(0,$e.of)(this.entityType).pipe((0,Ce.z)(Mt=>(0,de.s)(()=>"GROUP"===Mt,this.authzResolverService.unsetRoleForGroup({role:rt.roleName,authorizedGroup:this.entityId}),this.authzResolverService.unsetRoleForUser({role:rt.roleName,user:this.entityId})))).subscribe({next:()=>{this.showSuccess(rt),this.refresh()},error:()=>{this.selection.clear(),this.outerLoading=!1}})}removeRoleWithComplementaryObject(rt){let Mt;"beanName"in this.selection.selected[0]?(Mt=this.selection.selected[0],"RichResource"===Mt.beanName&&(Mt=this.parseResource(this.selection.selected[0]))):"facility"in this.selection.selected[0]&&(Mt=this.parseFacility(this.selection.selected[0])),(0,$e.of)(this.entityType).pipe((0,Ce.z)(Qt=>(0,de.s)(()=>"GROUP"===Qt,this.authzResolverService.unsetRoleWithGroupComplementaryObject({role:rt.roleName,complementaryObject:Mt,authorizedGroups:[this.entityId]}),this.authzResolverService.unsetRoleWithUserComplementaryObject({role:rt.roleName,complementaryObject:Mt,users:[this.entityId]})))).subscribe({next:()=>{this.showSuccess(rt),this.refresh()},error:()=>{this.selection.clear(),this.outerLoading=!1}})}showSuccess(rt){this.notification.showSuccess(this.translate.instant("ROLES.REMOVE_SUCCESS",{role:this.rolePipe.transform(rt)}))}refresh(){this.selection.clear(),setTimeout(()=>{this.reload.emit(),this.outerLoading=!1},500)}parseFacility(rt){return rt.facility}parseResource(rt){return{beanName:"Resource",id:rt.id,description:rt.description,createdByUid:rt.createdByUid,createdAt:rt.createdAt,facilityId:rt.facilityId,createdBy:rt.createdBy,modifiedAt:rt.modifiedAt,modifiedBy:rt.modifiedBy,name:rt.name,uuid:rt.uuid,voId:rt.voId,modifiedByUid:rt.modifiedByUid}}}return me.\u0275fac=function(rt){return new(rt||me)(e.Y36(m.Ct),e.Y36(m.Fv),e.Y36(m.YF),e.Y36(m.IQ),e.Y36(m.xk),e.Y36(m.ff),e.Y36(m.uq),e.Y36(w.uw),e.Y36(p.V6),e.Y36(p.Te),e.Y36(xe.i2),e.Y36(p.x4),e.Y36(xe.GY))},me.\u0275cmp=e.Xpm({type:me,selectors:[["app-perun-web-apps-roles-page"]],inputs:{outerLoading:"outerLoading",showDescription:"showDescription",entityId:"entityId",entityType:"entityType",roles:"roles"},outputs:{reload:"reload",startLoading:"startLoading"},features:[e._Bn([xe.i2,xe.GY])],decls:9,vars:7,consts:[[1,"page-subtitle","d-flex"],["mat-flat-button","","color","accent","class","mb-3 mr-2",3,"click",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],["alert_type","warn",4,"ngIf"],["spinner",""],["mat-flat-button","","color","accent",1,"mb-3","mr-2",3,"click"],[1,"ml-auto","mr-auto"],[3,"opened","closed",4,"ngFor","ngForOf"],[3,"opened","closed"],["panel",""],["mat-card-avatar","","svgIcon","perun-user-dark",1,"mr-2"],[1,"mt-auto","mb-auto"],["matExpansionPanelContent",""],["matTooltipPosition","left",3,"matTooltip","matTooltipDisabled",4,"ngIf"],["class","position-relative",4,"ngIf"],["matTooltipPosition","left",3,"matTooltip","matTooltipDisabled"],["mat-flat-button","","color","warn",1,"mt-2",3,"disabled","click"],[1,"position-relative"],[4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["class","mb-3",4,"ngIf"],[1,"mb-3"],[3,"displayedColumns","vos","selection"],[3,"displayedColumns","groups","selection"],[3,"resources","displayedColumns","routingVo","selection"],[3,"displayedColumns","facilities","selection"],[3,"displayedColumns","members"],[3,"displayedColumns","disableRouting","users"],["alert_type","warn"],[1,"spinner-container"]],template:function(rt,Mt){1&rt&&(e.TgZ(0,"h1",0),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.YNc(3,Ee,3,3,"button",1),e.YNc(4,ot,1,0,"mat-spinner",2),e.YNc(5,Ae,2,1,"mat-accordion",3),e.YNc(6,st,3,3,"perun-web-apps-alert",4),e.YNc(7,ze,2,0,"ng-template",null,5,e.W1O)),2&rt&&(e.xp6(1),e.Oqu(e.lcZ(2,5,"ROLES.TITLE")),e.xp6(2),e.Q6J("ngIf",0!==Mt.assignableRules.length),e.xp6(1),e.Q6J("ngIf",Mt.outerLoading),e.xp6(1),e.Q6J("ngIf",!Mt.outerLoading&&Mt.roles.size>0),e.xp6(1),e.Q6J("ngIf",!Mt.outerLoading&&0===Mt.roles.size))},dependencies:[g.sg,g.O5,Y.Hw,be.pp,be.ib,be.yz,be.yK,be.HS,T.lW,E.Ou,De.gM,We.kc,Pe.w,nt.Z,Ye.W,Tt.C,J.O,Xe.X,le.e5,ne.C,g.Ov,z.X$,ke.i],styles:[".role-content[_ngcontent-%COMP%]{overflow:auto;overflow-y:hidden}.info-icon[_ngcontent-%COMP%]{vertical-align:middle;transform:scale(.8)}"],changeDetection:0}),me})()},60205:(Qe,he,u)=>{"use strict";u.d(he,{Q:()=>De});var e=u(94650),m=u(96308),A=u(30671),w=u(95017),p=u(9244),g=u(69723),T=u(36895),E=u(94364),S=u(97392),R=u(56709),v=u(10266),D=u(98380),F=u(94391),z=u(18750),$=u(89383),G=u(9185),q=u(8231),_e=u(14849);function ce(We,Pe){if(1&We){const nt=e.EpF();e.TgZ(0,"th",19)(1,"mat-checkbox",20),e.NdJ("change",function(Tt){e.CHM(nt);const J=e.oxw(2);return e.KtG(Tt?J.masterToggle():null)}),e.ALo(2,"translate"),e.ALo(3,"masterCheckboxLabel"),e.qZA()()}if(2&We){const nt=e.oxw().ngIf,Ye=e.oxw();e.xp6(1),e.Q6J("aria-label",e.lcZ(2,3,e.lcZ(3,5,nt.all)))("checked",Ye.selection.hasValue()&&nt.all)("indeterminate",Ye.selection.hasValue()&&!nt.all)}}const Te=function(We){return{name:We}};function b(We,Pe){if(1&We){const nt=e.EpF();e.TgZ(0,"td",21)(1,"mat-checkbox",22),e.NdJ("change",function(Tt){const Xe=e.CHM(nt).$implicit,le=e.oxw(2);return e.KtG(Tt?le.selection.toggle(Xe):null)})("click",function(Tt){return Tt.stopPropagation()}),e.ALo(2,"lowercase"),e.ALo(3,"translate"),e.ALo(4,"checkboxLabel"),e.qZA()()}if(2&We){const nt=Pe.$implicit,Ye=e.oxw(2);e.xp6(1),e.Q2q("data-cy","",e.lcZ(2,3,nt.name),"-checkbox"),e.Q6J("aria-label",e.xi3(3,5,e.lcZ(4,8,Ye.selection.isSelected(nt)),e.VKq(10,Te,nt.name)))("checked",Ye.selection.isSelected(nt))}}function H(We,Pe){1&We&&(e.ynx(0,16),e.YNc(1,ce,4,7,"th",17),e.YNc(2,b,5,12,"td",18),e.BQk())}function L(We,Pe){1&We&&(e.TgZ(0,"th",23),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&We&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.ID")," "))}function V(We,Pe){if(1&We&&(e.TgZ(0,"td",24),e._uU(1),e.qZA()),2&We){const nt=Pe.$implicit;e.xp6(1),e.Oqu(nt.id)}}function Q(We,Pe){1&We&&(e.TgZ(0,"th",23),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&We&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.NAME")," "))}function ae(We,Pe){if(1&We&&(e.TgZ(0,"td",25),e.ALo(1,"lowercase"),e._uU(2),e.qZA()),2&We){const nt=Pe.$implicit;e.Q2q("data-cy","",e.lcZ(1,2,nt.name),"-name-td"),e.xp6(2),e.hij(" ",nt.name," ")}}function xe(We,Pe){1&We&&e._UZ(0,"th",26)}function ge(We,Pe){1&We&&(e.TgZ(0,"mat-icon",29),e.ALo(1,"translate"),e._uU(2," check_circle_outline "),e.qZA()),2&We&&e.s9C("matTooltip",e.lcZ(1,1,"SHARED.COMPONENTS.SERVICES_LIST.ENABLED"))}function Se(We,Pe){1&We&&(e.TgZ(0,"mat-icon",30),e.ALo(1,"translate"),e._uU(2," block "),e.qZA()),2&We&&e.s9C("matTooltip",e.lcZ(1,1,"SHARED.COMPONENTS.SERVICES_LIST.DISABLED"))}function Be(We,Pe){if(1&We&&(e.TgZ(0,"td",25),e.YNc(1,ge,3,3,"mat-icon",27),e.YNc(2,Se,3,3,"mat-icon",28),e.qZA()),2&We){const nt=Pe.$implicit;e.xp6(1),e.Q6J("ngIf",nt.enabled),e.xp6(1),e.Q6J("ngIf",!nt.enabled)}}function pe(We,Pe){1&We&&(e.TgZ(0,"th",26),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&We&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.SCRIPT")," "))}function $e(We,Pe){if(1&We&&(e.TgZ(0,"td",25),e._uU(1),e.qZA()),2&We){const nt=Pe.$implicit;e.xp6(1),e.Oqu(nt.script)}}function Ce(We,Pe){1&We&&(e.TgZ(0,"th",23),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&We&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.DESCRIPTION")," "))}function de(We,Pe){if(1&We&&(e.TgZ(0,"td",25),e._uU(1),e.qZA()),2&We){const nt=Pe.$implicit;e.xp6(1),e.Oqu(nt.description)}}function re(We,Pe){1&We&&e._UZ(0,"tr",31)}const B=function(We){return["/admin/services",We]};function N(We,Pe){if(1&We&&e._UZ(0,"tr",32),2&We){const nt=Pe.$implicit,Ye=e.oxw();e.ekj("cursor-pointer",!Ye.disableRouting)("disable-outline",Ye.disableRouting),e.Q6J("perunWebAppsMiddleClickRouterLink",Ye.disableRouting?null:e.VKq(6,B,nt.id))("routerLink",Ye.disableRouting?null:e.VKq(8,B,nt.id))}}function Me(We,Pe){1&We&&(e.TgZ(0,"perun-web-apps-alert",33),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&We&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function Y(We,Pe){1&We&&(e.TgZ(0,"perun-web-apps-alert",33),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&We&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.NO_SERVICES_WARNING"),"\n"))}const be=function(We){return{all:We}};let De=(()=>{class We{constructor(nt,Ye){this.authResolver=nt,this.tableCheckbox=Ye,this.services=[],this.filterValue="",this.displayedColumns=["select","id","name","enabled","script","description"],this.selection=new w.Ov(!0,[]),this.disableRouting=!1,this.selectionChanged=new e.vpe,this.pageSizeOptions=p.f7}set matSort(nt){this.sort=nt,this.setDataSource()}static getDataForColumn(nt,Ye){switch(Ye){case"id":return nt.id.toString();case"name":return nt.name;case"enabled":return nt.enabled?"true":"false";case"script":return nt.script;case"description":return nt.description;default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(nt=>"id"!==nt)),this.dataSource=new A.by(this.services),this.setDataSource(),this.selection.changed.subscribe(()=>{this.selectionChanged.emit()})}exportAllData(nt){(0,p.O6)((0,p.Xn)(this.dataSource.filteredData,this.displayedColumns,We.getDataForColumn),nt)}exportDisplayedData(nt){const Ye=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,Tt=Ye+this.dataSource.paginator.pageSize;(0,p.O6)((0,p.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(Ye,Tt),this.displayedColumns,We.getDataForColumn),nt)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(nt,Ye)=>(0,p.Sd)(nt,Ye,this.displayedColumns,We.getDataForColumn),this.dataSource.sortData=(nt,Ye)=>(0,p.pR)(nt,Ye,We.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return We.\u0275fac=function(nt){return new(nt||We)(e.Y36(g.x4),e.Y36(g.UA))},We.\u0275cmp=e.Xpm({type:We,selectors:[["app-services-list"]],viewQuery:function(nt,Ye){if(1&nt&&(e.Gf(p.l9,7),e.Gf(m.YE,7)),2&nt){let Tt;e.iGM(Tt=e.CRH())&&(Ye.child=Tt.first),e.iGM(Tt=e.CRH())&&(Ye.matSort=Tt.first)}},inputs:{services:"services",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",selection:"selection",disableRouting:"disableRouting"},outputs:{selectionChanged:"selectionChanged"},features:[e.TTD],decls:24,vars:15,consts:[[1,"card","mt-3",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","enabled"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","script"],["matColumnDef","description"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-cell",""],["class","align-bottom green",3,"matTooltip",4,"ngIf"],["class","align-bottom red",3,"matTooltip",4,"ngIf"],[1,"align-bottom","green",3,"matTooltip"],[1,"align-bottom","red",3,"matTooltip"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(nt,Ye){1&nt&&(e.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),e.NdJ("exportDisplayedData",function(J){return Ye.exportDisplayedData(J)})("exportAllData",function(J){return Ye.exportAllData(J)}),e.TgZ(2,"table",2),e.YNc(3,H,3,0,"ng-container",3),e.ALo(4,"isAllSelected"),e.ynx(5,4),e.YNc(6,L,3,3,"th",5),e.YNc(7,V,2,1,"td",6),e.BQk(),e.ynx(8,7),e.YNc(9,Q,3,3,"th",5),e.YNc(10,ae,3,4,"td",8),e.BQk(),e.ynx(11,9),e.YNc(12,xe,1,0,"th",10),e.YNc(13,Be,3,2,"td",8),e.BQk(),e.ynx(14,11),e.YNc(15,pe,3,3,"th",10),e.YNc(16,$e,2,1,"td",8),e.BQk(),e.ynx(17,12),e.YNc(18,Ce,3,3,"th",5),e.YNc(19,de,2,1,"td",8),e.BQk(),e.YNc(20,re,1,0,"tr",13),e.YNc(21,N,1,10,"tr",14),e.qZA()()(),e.YNc(22,Me,3,3,"perun-web-apps-alert",15),e.YNc(23,Y,3,3,"perun-web-apps-alert",15)),2&nt&&(e.Q6J("hidden",void 0===Ye.services||0===Ye.services.length||0===Ye.dataSource.filteredData.length),e.xp6(1),e.Q6J("pageSizeOptions",Ye.pageSizeOptions)("dataLength",Ye.dataSource.filteredData.length)("tableId",Ye.tableId),e.xp6(1),e.Q6J("dataSource",Ye.dataSource),e.xp6(1),e.Q6J("ngIf",e.VKq(13,be,e.xi3(4,10,Ye.dataSource,Ye.selection.selected.length))),e.xp6(17),e.Q6J("matHeaderRowDef",Ye.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",Ye.displayedColumns),e.xp6(1),e.Q6J("ngIf",0===Ye.dataSource.filteredData.length&&void 0!==Ye.services&&0!==Ye.services.length),e.xp6(1),e.Q6J("ngIf",void 0===Ye.services||0===Ye.services.length))},dependencies:[T.O5,E.rH,S.Hw,m.YE,m.nU,A.BZ,A.fO,A.as,A.w1,A.Dz,A.nj,A.ge,A.ev,A.XQ,A.Gk,R.oG,v.gM,D.w,F.YH,F.QG,z.l,T.i8,$.X$,G.I,q.G,_e.r],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.disable-outline[_ngcontent-%COMP%]{outline:none!important}.green[_ngcontent-%COMP%]{color:green}.red[_ngcontent-%COMP%]{color:red}"]}),We})()},64877:(Qe,he,u)=>{"use strict";u.d(he,{C:()=>Xe});var e=u(96308),m=u(30671),A=u(95017),w=u(9244),p=u(69723),g=u(94650),T=u(36895),E=u(97392),S=u(56709),R=u(10266),v=u(98380),D=u(94391),F=u(18750),z=u(89383),$=u(31359),G=u(16119),q=u(7598),_e=u(9954),ce=u(9185),Te=u(8231),b=u(14849);function H(le,ne){if(1&le){const ke=g.EpF();g.TgZ(0,"mat-checkbox",22),g.NdJ("change",function(ot){g.CHM(ke);const it=g.oxw(3);return g.KtG(ot?it.masterToggle():null)}),g.ALo(1,"translate"),g.ALo(2,"masterCheckboxLabel"),g.qZA()}if(2&le){const ke=g.oxw(2).ngIf,Ee=g.oxw();g.Q6J("aria-label",g.lcZ(1,3,g.lcZ(2,5,ke.all)))("checked",Ee.selection.hasValue()&&ke.all)("indeterminate",Ee.selection.hasValue()&&!ke.all)}}function L(le,ne){if(1&le&&(g.TgZ(0,"th",20),g.YNc(1,H,3,7,"mat-checkbox",21),g.qZA()),2&le){const ke=g.oxw(2);g.xp6(1),g.Q6J("ngIf",ke.selection.isMultipleSelection())}}const V=function(le){return{name:le}};function Q(le,ne){if(1&le){const ke=g.EpF();g.TgZ(0,"td",23)(1,"mat-checkbox",24),g.NdJ("change",function(ot){const oe=g.CHM(ke).$implicit,X=g.oxw(2);return g.KtG(ot?X.selection.toggle(oe):null)})("click",function(ot){return ot.stopPropagation()}),g.ALo(2,"translate"),g.ALo(3,"checkboxLabel"),g.ALo(4,"userFullName"),g.ALo(5,"lowercase"),g.qZA()()}if(2&le){const ke=ne.$implicit,Ee=g.oxw(2);g.xp6(1),g.Q2q("data-cy","",g.lcZ(5,11,ke.firstName),"-checkbox"),g.Q6J("aria-label",g.xi3(2,4,g.lcZ(3,7,Ee.selection.isSelected(ke)),g.VKq(13,V,g.lcZ(4,9,ke))))("checked",Ee.selection.isSelected(ke))("disabled",Ee.disableSelf&&ke.id===Ee.principalId&&!Ee.authResolver.isPerunAdmin())}}function ae(le,ne){1&le&&(g.ynx(0,17),g.YNc(1,L,2,1,"th",18),g.YNc(2,Q,6,15,"td",19),g.BQk())}function xe(le,ne){1&le&&g._UZ(0,"th",25)}function ge(le,ne){1&le&&(g.TgZ(0,"mat-icon",29),g.ALo(1,"translate"),g._uU(2," account_circle "),g.qZA()),2&le&&g.s9C("matTooltip",g.lcZ(1,1,"MANAGERS_LIST.PERSON"))}function Se(le,ne){if(1&le&&(g._UZ(0,"mat-icon",30),g.ALo(1,"translate")),2&le){const ke=g.oxw(2);g.s9C("matTooltip",g.lcZ(1,2,"MANAGERS_LIST.SERVICE")),g.Q6J("svgIcon",ke.svgIcon)}}function Be(le,ne){if(1&le&&(g.TgZ(0,"td",26),g.YNc(1,ge,3,3,"mat-icon",27),g.YNc(2,Se,2,4,"mat-icon",28),g.qZA()),2&le){const ke=ne.$implicit;g.xp6(1),g.Q6J("ngIf",!ke.serviceUser),g.xp6(1),g.Q6J("ngIf",ke.serviceUser)}}function pe(le,ne){1&le&&(g.TgZ(0,"th",31),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&le&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"MANAGERS_LIST.ID")," "))}function $e(le,ne){if(1&le&&(g.TgZ(0,"td",26),g._uU(1),g.qZA()),2&le){const ke=ne.$implicit;g.xp6(1),g.hij(" ",ke.id," ")}}function Ce(le,ne){1&le&&(g.TgZ(0,"th",31),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&le&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"MANAGERS_LIST.NAME")," "))}function de(le,ne){if(1&le&&(g.TgZ(0,"td",32),g.ALo(1,"lowercase"),g._uU(2),g.ALo(3,"userFullName"),g.qZA()),2&le){const ke=ne.$implicit;g.Q2q("data-cy","",g.lcZ(1,2,ke.firstName),"-firstName-td"),g.xp6(2),g.hij(" ",g.lcZ(3,4,ke)," ")}}function re(le,ne){1&le&&(g.TgZ(0,"th",31),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&le&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"MANAGERS_LIST.ORGANIZATION")," "))}function B(le,ne){if(1&le&&(g.TgZ(0,"td",32),g._uU(1),g.ALo(2,"userVo"),g.qZA()),2&le){const ke=ne.$implicit;g.xp6(1),g.Oqu(g.lcZ(2,1,ke))}}function N(le,ne){1&le&&(g.TgZ(0,"th",31),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&le&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"MANAGERS_LIST.EMAIL")," "))}function Me(le,ne){if(1&le&&(g.TgZ(0,"td",32),g._uU(1),g.ALo(2,"userEmail"),g.qZA()),2&le){const ke=ne.$implicit;g.xp6(1),g.Oqu(g.lcZ(2,1,ke))}}function Y(le,ne){1&le&&(g.TgZ(0,"th",31),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&le&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"MANAGERS_LIST.LOGINS")," "))}function be(le,ne){if(1&le&&(g.TgZ(0,"td",32),g._uU(1),g.ALo(2,"userLogins"),g.qZA()),2&le){const ke=ne.$implicit;g.xp6(1),g.Oqu(g.lcZ(2,1,ke))}}function De(le,ne){1&le&&g._UZ(0,"tr",33)}const We=function(le){return["/admin/users",le]},Pe=function(le){return["/myProfile/service-identities",le]};function nt(le,ne){if(1&le&&g._UZ(0,"tr",34),2&le){const ke=ne.$implicit,Ee=g.oxw();g.ekj("cursor-pointer",!Ee.disableRouting),g.Q6J("perunWebAppsForceRouterLink",Ee.disableRouting?null:Ee.routeToAdmin?g.VKq(4,We,ke.id):g.VKq(6,Pe,ke.id))("perunWebAppsMiddleClickRouterLink",Ee.disableRouting?null:Ee.routeToAdmin?g.VKq(8,We,ke.id):g.VKq(10,Pe,ke.id))}}function Ye(le,ne){if(1&le&&(g.TgZ(0,"perun-web-apps-alert",35),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&le){const ke=g.oxw();g.xp6(1),g.hij(" ",ke.noUsersFoundLabel?ke.noUsersFoundLabel:g.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_USERS"),"\n")}}function Tt(le,ne){1&le&&(g.TgZ(0,"perun-web-apps-alert",35),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&le&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}const J=function(le){return{all:le}};let Xe=(()=>{class le{constructor(ke,Ee,ot){this.authResolver=ke,this.tableCheckbox=Ee,this.storeService=ot,this.selection=new A.Ov(!0,[]),this.displayedColumns=["select","user","id","name","email","logins","organization"],this.routeToAdmin=!0,this.disableRouting=!1,this.filter="",this.disableSelf=!1,this.svgIcon="perun-service-identity-black",this.pageSizeOptions=w.f7}set matSort(ke){this.sort=ke}static getDataForColumn(ke,Ee){switch(Ee){case"id":return ke.id.toString();case"user":return ke.serviceUser?"true":"false";case"name":return ke?ke.lastName?ke.lastName:ke.firstName??"":"";case"organization":return(0,w.OV)(ke);case"email":return(0,w.kN)(ke);case"logins":return(0,w.lt)(ke);default:return""}}static getExportDataForColumn(ke,Ee){switch(Ee){case"id":return ke.id.toString();case"user":return ke.serviceUser?"service-user":"user";case"name":return ke?(0,w.bD)(ke):"";case"organization":return(0,w.OV)(ke);case"email":return(0,w.kN)(ke);case"logins":return(0,w.lt)(ke);default:return""}}exportAllData(ke){(0,w.O6)((0,w.Xn)(this.dataSource.filteredData,this.displayedColumns,le.getExportDataForColumn),ke)}exportDisplayedData(ke){const Ee=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,ot=Ee+this.dataSource.paginator.pageSize;(0,w.O6)((0,w.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(Ee,ot),this.displayedColumns,le.getExportDataForColumn),ke)}setDataSource(){this.dataSource||(this.dataSource=new m.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(ke,Ee)=>(0,w.Sd)(ke,Ee,this.displayedColumns,le.getDataForColumn),this.dataSource.sortData=(ke,Ee)=>(0,w.pR)(ke,Ee,le.getDataForColumn)),this.dataSource.filter=this.filter,this.dataSource.data=this.users}ngOnChanges(){this.principalId=this.storeService.getPerunPrincipal().userId,this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(ke=>"id"!==ke)),this.setDataSource()}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filter,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}}return le.\u0275fac=function(ke){return new(ke||le)(g.Y36(p.x4),g.Y36(p.UA),g.Y36(p.d6))},le.\u0275cmp=g.Xpm({type:le,selectors:[["app-users-list"]],viewQuery:function(ke,Ee){if(1&ke&&(g.Gf(w.l9,7),g.Gf(e.YE,7)),2&ke){let ot;g.iGM(ot=g.CRH())&&(Ee.child=ot.first),g.iGM(ot=g.CRH())&&(Ee.matSort=ot.first)}},inputs:{users:"users",selection:"selection",displayedColumns:"displayedColumns",routeToAdmin:"routeToAdmin",disableRouting:"disableRouting",filter:"filter",tableId:"tableId",noUsersFoundLabel:"noUsersFoundLabel",disableSelf:"disableSelf"},features:[g.TTD],decls:27,vars:15,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","tableId","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","user"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","organization"],["matColumnDef","email"],["matColumnDef","logins"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","perunWebAppsForceRouterLink","perunWebAppsMiddleClickRouterLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change",4,"ngIf"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell",""],["mat-cell","",1,"static-column-size"],["class","align-bottom",3,"matTooltip",4,"ngIf"],["class","align-bottom",3,"svgIcon","matTooltip",4,"ngIf"],[1,"align-bottom",3,"matTooltip"],[1,"align-bottom",3,"svgIcon","matTooltip"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsForceRouterLink","perunWebAppsMiddleClickRouterLink"],["alert_type","warn"]],template:function(ke,Ee){1&ke&&(g.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),g.NdJ("exportDisplayedData",function(it){return Ee.exportDisplayedData(it)})("exportAllData",function(it){return Ee.exportAllData(it)}),g.TgZ(2,"table",2),g.YNc(3,ae,3,0,"ng-container",3),g.ALo(4,"isAllSelected"),g.ynx(5,4),g.YNc(6,xe,1,0,"th",5),g.YNc(7,Be,3,2,"td",6),g.BQk(),g.ynx(8,7),g.YNc(9,pe,3,3,"th",8),g.YNc(10,$e,2,1,"td",6),g.BQk(),g.ynx(11,9),g.YNc(12,Ce,3,3,"th",8),g.YNc(13,de,4,6,"td",10),g.BQk(),g.ynx(14,11),g.YNc(15,re,3,3,"th",8),g.YNc(16,B,3,3,"td",10),g.BQk(),g.ynx(17,12),g.YNc(18,N,3,3,"th",8),g.YNc(19,Me,3,3,"td",10),g.BQk(),g.ynx(20,13),g.YNc(21,Y,3,3,"th",8),g.YNc(22,be,3,3,"td",10),g.BQk(),g.YNc(23,De,1,0,"tr",14),g.YNc(24,nt,1,12,"tr",15),g.qZA()()(),g.YNc(25,Ye,3,3,"perun-web-apps-alert",16),g.YNc(26,Tt,3,3,"perun-web-apps-alert",16)),2&ke&&(g.Q6J("hidden",0===Ee.users.length||!Ee.dataSource||0===Ee.dataSource.filteredData.length),g.xp6(1),g.Q6J("dataLength",Ee.dataSource.filteredData.length)("pageSizeOptions",Ee.pageSizeOptions)("tableId",Ee.tableId),g.xp6(1),g.Q6J("dataSource",Ee.dataSource),g.xp6(1),g.Q6J("ngIf",g.VKq(13,J,g.xi3(4,10,Ee.dataSource,Ee.selection.selected.length))),g.xp6(20),g.Q6J("matHeaderRowDef",Ee.displayedColumns),g.xp6(1),g.Q6J("matRowDefColumns",Ee.displayedColumns),g.xp6(1),g.Q6J("ngIf",0===Ee.users.length),g.xp6(1),g.Q6J("ngIf",0===Ee.dataSource.filteredData.length&&0!==Ee.users.length))},dependencies:[T.O5,E.Hw,e.YE,e.nU,m.BZ,m.fO,m.as,m.w1,m.Dz,m.nj,m.ge,m.ev,m.XQ,m.Gk,S.oG,R.gM,v.w,D.Kd,D.YH,F.l,T.i8,z.X$,$.d,G.S,q.g,_e.Z,ce.I,Te.G,b.r],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),le})()},57706:(Qe,he,u)=>{"use strict";u.d(he,{c:()=>A});var e=u(94650),m=u(89383);let A=(()=>{class w{constructor(g){this.translateService=g,this.returnData=""}transform(g){switch(g){case"HEADING":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.HEADER").subscribe(T=>{this.returnData=T});break;case"HTML_COMMENT":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.HTML_COMMENT").subscribe(T=>{this.returnData=T});break;case"TEXTFIELD":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.TEXTFIELD").subscribe(T=>{this.returnData=T});break;case"VALIDATED_EMAIL":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.VALIDATED_EMAIL").subscribe(T=>{this.returnData=T});break;case"USERNAME":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.USERNAME").subscribe(T=>{this.returnData=T});break;case"PASSWORD":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.PASSWORD").subscribe(T=>{this.returnData=T});break;case"SELECTIONBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.SELECTIONBOX").subscribe(T=>{this.returnData=T});break;case"TEXTAREA":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.TEXTAREA").subscribe(T=>{this.returnData=T});break;case"COMBOBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.COMBOBOX").subscribe(T=>{this.returnData=T});break;case"CHECKBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.CHECKBOX").subscribe(T=>{this.returnData=T});break;case"SUBMIT_BUTTON":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.SUBMIT_BUTTON").subscribe(T=>{this.returnData=T});break;case"RADIO":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.RADIO").subscribe(T=>{this.returnData=T});break;case"TIMEZONE":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.TIMEZONE").subscribe(T=>{this.returnData=T});break;case"AUTO_SUBMIT_BUTTON":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.AUTO_SUBMIT_BUTTON").subscribe(T=>{this.returnData=T});break;case"EMBEDDED_GROUP_APPLICATION":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.EMBEDDED_GROUP_APPLICATION").subscribe(T=>{this.returnData=T});break;case"LIST_INPUT_BOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.LIST_INPUT_BOX").subscribe(T=>{this.returnData=T});break;case"MAP_INPUT_BOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.MAP_INPUT_BOX").subscribe(T=>{this.returnData=T});break;default:return g}return this.returnData}}return w.\u0275fac=function(g){return new(g||w)(e.Y36(m.sK,16))},w.\u0275pipe=e.Yjl({name:"applicationFormItemType",type:w,pure:!0}),w})()},43157:(Qe,he,u)=>{"use strict";u.d(he,{h:()=>A});var e=u(94650),m=u(89383);let A=(()=>{class w{constructor(g){this.translate=g,this.returnData=""}transform(g){switch(g){case"APPROVED":this.translate.get("VO_DETAIL.APPLICATION.STATE.APPROVED").subscribe(T=>{this.returnData=`done${T}`});break;case"REJECTED":this.translate.get("VO_DETAIL.APPLICATION.STATE.REJECTED").subscribe(T=>{this.returnData=`clear${T}`});break;case"NEW":this.translate.get("VO_DETAIL.APPLICATION.STATE.NEW").subscribe(T=>{this.returnData=`contact_mail ${T}`});break;case"VERIFIED":this.translate.get("VO_DETAIL.APPLICATION.STATE.VERIFIED").subscribe(T=>{this.returnData=`gavel${T}`});break;default:this.returnData=g}return this.returnData}}return w.\u0275fac=function(g){return new(g||w)(e.Y36(m.sK,16))},w.\u0275pipe=e.Yjl({name:"applicationState",type:w,pure:!1}),w})()},70844:(Qe,he,u)=>{"use strict";u.d(he,{u:()=>A});var e=u(69723),m=u(94650);let A=(()=>{class w{constructor(g){this.storeService=g,this.USER_CONSENT_RELATED_ATT_NAMESPACE=["urn:perun:user_facility:attribute-def","urn:perun:user:attribute-def","urn:perun:member:attribute-def","urn:perun:member_group:attribute-def","urn:perun:member_resource:attribute-def","urn:perun:ues:attribute-def"]}transform(g,T,E){return!!(this.storeService.getProperty("enforce_consents")&&E&&T)&&this.USER_CONSENT_RELATED_ATT_NAMESPACE.reduce((R,v)=>R||g.startsWith(v),!1)}}return w.\u0275fac=function(g){return new(g||w)(m.Y36(e.d6,16))},w.\u0275pipe=m.Yjl({name:"consentRelatedAttribute",type:w,pure:!0}),w})()},37677:(Qe,he,u)=>{"use strict";u.d(he,{A:()=>m});var e=u(94650);let m=(()=>{class A{transform(p){return p.substring(40)}}return A.\u0275fac=function(p){return new(p||A)},A.\u0275pipe=e.Yjl({name:"extSourceType",type:A,pure:!0}),A})()},32597:(Qe,he,u)=>{"use strict";u.d(he,{g:()=>w});var e=u(95698),m=u(94650),A=u(94364);let w=(()=>{class p{constructor(T,E){this.router=T,this.route=E}navigate(T,E=null){this.route.queryParams.pipe((0,e.q)(1)).subscribe(S=>{let R="merge";const v=Object.assign({},S);location.pathname.endsWith("applicationForm/preview")&&(R="",delete v.applicationFormItems),this.router.navigate(T,{relativeTo:E,queryParams:v,queryParamsHandling:R})})}}return p.\u0275fac=function(T){return new(T||p)(m.LFG(A.F0),m.LFG(A.gz))},p.\u0275prov=m.Yz7({token:p,factory:p.\u0275fac,providedIn:"root"}),p})()},14264:(Qe,he,u)=>{"use strict";u.d(he,{m:()=>st});var e=u(36895),m=u(94364),A=u(47957),w=u(4859),p=u(56709),g=u(3238),T=u(99602),E=u(65412),S=u(44850),R=u(37084),v=u(59549),D=u(97392),F=u(284),z=u(98739),$=u(73162),G=u(51572),q=u(71948),_e=u(84385),ce=u(23267),Te=u(90455),b=u(17009),H=u(96308),L=u(30671),V=u(3848),Q=u(10266),ae=u(35423),xe=u(73546),ge=u(42673),Se=u(77331),Be=u(28255),pe=u(86257),$e=u(24006),Ce=u(73228),de=u(36769),re=u(69723),B=u(94650),N=u(32597),Me=u(94391),Y=u(89383);const be=["collapse"],De=function(){return{color:"linkTextColor"}};function We(ze,_t){1&ze&&(B.TgZ(0,"mat-icon",14),B._uU(1,"keyboard_arrow_right"),B.qZA()),2&ze&&B.Q6J("ngStyle",B.DdM(1,De))}function Pe(ze,_t){1&ze&&(B.TgZ(0,"mat-icon",14),B._uU(1,"keyboard_arrow_down"),B.qZA()),2&ze&&B.Q6J("ngStyle",B.DdM(1,De))}function nt(ze,_t){if(1&ze&&(B.TgZ(0,"span",12),B.YNc(1,We,2,2,"mat-icon",13),B.YNc(2,Pe,2,2,"mat-icon",13),B.qZA()),2&ze){const me=B.oxw().$implicit,qe=B.oxw(2);B.xp6(1),B.Q6J("ngIf",!qe.isActive(qe.currentUrl,me.showChildrenRegex)),B.xp6(1),B.Q6J("ngIf",qe.isActive(qe.currentUrl,me.showChildrenRegex))}}const Ye=function(ze,_t){return{color:ze,"border-color":_t}};function Tt(ze,_t){if(1&ze){const me=B.EpF();B.TgZ(0,"a",17),B.NdJ("click",function(){const Mt=B.CHM(me).$implicit,Qt=B.oxw(4);return B.KtG(Qt.navigate(Mt.url))}),B._uU(1),B.ALo(2,"translate"),B.qZA()}if(2&ze){const me=_t.$implicit,qe=B.oxw(4);B.ekj("activated",qe.isActive(qe.currentUrl,me.activatedRegex)&&void 0===qe.item.activatedClass),B.Q6J("perunWebAppsMiddleClickRouterLink",me.url)("matRippleColor","rgba(255, 255, 255, 0.1)")("ngClass",qe.isActive(qe.currentUrl,me.activatedRegex)&&void 0!==qe.item.activatedClass?qe.item.activatedClass:"")("ngStyle",B.WLB(9,Ye,qe.linkTextColor,qe.linkTextColor)),B.xp6(1),B.hij(" ",B.lcZ(2,7,me.label)," ")}}function J(ze,_t){if(1&ze&&(B.TgZ(0,"div",15),B.YNc(1,Tt,3,12,"a",16),B.qZA()),2&ze){const me=B.oxw().$implicit;B.Q6J("@rollInOut",void 0),B.xp6(1),B.Q6J("ngForOf",null==me?null:me.children)}}function Xe(ze,_t){if(1&ze){const me=B.EpF();B.TgZ(0,"div")(1,"a",9),B.NdJ("click",function(){const Mt=B.CHM(me).$implicit,Qt=B.oxw(2);return B.KtG(Qt.navigate(Mt.url))}),B._uU(2),B.ALo(3,"translate"),B.YNc(4,nt,3,2,"span",10),B.qZA(),B.YNc(5,J,2,2,"div",11),B.qZA()}if(2&ze){const me=_t.$implicit,qe=B.oxw(2);B.xp6(1),B.ekj("activated",qe.isActive(qe.currentUrl,me.activatedRegex)&&void 0===qe.item.activatedClass),B.Q6J("perunWebAppsMiddleClickRouterLink",me.url)("matRippleColor","rgba(255, 255, 255, 0.1)")("ngClass",qe.isActive(qe.currentUrl,me.activatedRegex)&&void 0!==qe.item.activatedClass?qe.item.activatedClass:"")("ngStyle",B.WLB(11,Ye,qe.linkTextColor,qe.linkTextColor)),B.xp6(1),B.hij(" ",B.lcZ(3,9,me.label)," "),B.xp6(2),B.Q6J("ngIf",me.children),B.xp6(1),B.Q6J("ngIf",qe.isActive(qe.currentUrl,me.showChildrenRegex))}}function le(ze,_t){if(1&ze&&(B.TgZ(0,"div"),B.YNc(1,Xe,6,14,"div",8),B.qZA()),2&ze){const me=B.oxw();B.Q6J("@rollInOut",void 0),B.xp6(1),B.Q6J("ngForOf",me.item.links)}}const ne=function(ze,_t){return{background:ze,"border-top":_t}},ke=function(ze){return{color:ze}},Ee=function(){return{color:"currentColor"}},ot=function(ze){return{background:ze}};let it=(()=>{class ze{constructor(me,qe,rt){this.router=me,this.store=qe,this.queryParamsRouter=rt,this.expanded=!0,this.linkBgColor=this.store.getProperty("theme").sidemenu_submenu_bg_color,this.linkTextColor=this.store.getProperty("theme").sidemenu_submenu_text_color,this.dividerStyle="1px solid "+this.store.getProperty("theme").sidemenu_divider_color,this.currentUrl=me.url,me.events.subscribe(Mt=>{Mt instanceof m.m2&&(this.currentUrl=Mt.url)})}toggle(){void 0!==this.item.baseLink&&this.navigate(this.item.baseLink)}isActive(me,qe){return new RegExp(qe).test(me.split("?")[0])}navigate(me){"over"===this.sideNav.mode?this.sideNav.close().then(()=>this.queryParamsRouter.navigate(me)):this.queryParamsRouter.navigate(me)}}return ze.\u0275fac=function(me){return new(me||ze)(B.Y36(m.F0),B.Y36(re.d6),B.Y36(N.g))},ze.\u0275cmp=B.Xpm({type:ze,selectors:[["app-side-menu-item"]],viewQuery:function(me,qe){if(1&me&&B.Gf(be,5),2&me){let rt;B.iGM(rt=B.CRH())&&(qe.collapseDiv=rt.first)}},inputs:{item:"item",index:"index",showLinks:"showLinks",sideNav:"sideNav"},decls:12,vars:26,consts:[[1,"entity-menu-item"],["matRipple","",1,"entity-menu-item-header",3,"matRippleColor","ngStyle","click"],["matRipple","",3,"perunWebAppsMiddleClickRouterLink"],[1,"entity-menu-item-label",3,"ngStyle"],[1,"perun-icon",3,"ngStyle","svgIcon"],[1,"ml-3"],[3,"ngStyle"],[4,"ngIf"],[4,"ngFor","ngForOf"],["matRipple","",1,"clickable","d-flex",3,"perunWebAppsMiddleClickRouterLink","matRippleColor","ngClass","ngStyle","click"],["class","ml-auto",4,"ngIf"],["class","entity-menu-item-sub-menu",4,"ngIf"],[1,"ml-auto"],["class","perun-icon icon-beak",3,"ngStyle",4,"ngIf"],[1,"perun-icon","icon-beak",3,"ngStyle"],[1,"entity-menu-item-sub-menu"],["class","entity-menu-item-sub-menu-item clickable","matRipple","",3,"perunWebAppsMiddleClickRouterLink","activated","matRippleColor","ngClass","ngStyle","click",4,"ngFor","ngForOf"],["matRipple","",1,"entity-menu-item-sub-menu-item","clickable",3,"perunWebAppsMiddleClickRouterLink","matRippleColor","ngClass","ngStyle","click"]],template:function(me,qe){1&me&&(B.TgZ(0,"div",0)(1,"div",1),B.NdJ("click",function(){return qe.toggle()}),B.TgZ(2,"div",2)(3,"a",3)(4,"div"),B._UZ(5,"mat-icon",4),B.qZA(),B.TgZ(6,"div",5),B._uU(7),B.ALo(8,"translate"),B.qZA()()()(),B.TgZ(9,"div")(10,"div",6),B.YNc(11,le,2,2,"div",7),B.qZA()()()),2&me&&(B.xp6(1),B.Q6J("matRippleColor","rgba(255, 255, 255, 0.1)")("ngStyle",B.WLB(18,ne,qe.item.backgroundColorCss,qe.index?qe.dividerStyle:"none")),B.xp6(1),B.Gre("entity-menu-item-link ",qe.item.labelClass,""),B.Q6J("perunWebAppsMiddleClickRouterLink",qe.item.baseLink),B.xp6(1),B.Q6J("ngStyle",B.VKq(21,ke,qe.item.textColorCss)),B.xp6(2),B.Q6J("ngStyle",B.DdM(23,Ee))("svgIcon",qe.item.icon),B.xp6(2),B.Oqu(B.lcZ(8,16,qe.item.label)),B.xp6(2),B.Q6J("@openClose",qe.expanded?"open":"closed"),B.xp6(1),B.Gre("side-entity-menu ",qe.item.linksClass,""),B.Q6J("ngStyle",B.VKq(24,ot,qe.linkBgColor)),B.xp6(1),B.Q6J("ngIf",qe.showLinks))},dependencies:[e.mk,e.sg,e.O5,e.PC,D.Hw,g.wG,Me.YH,Y.X$],styles:[".entity-menu-item[_ngcontent-%COMP%]{width:300px}.side-entity-menu[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{background:var(--side-link-hover)!important;color:var(--side-link-text-hover)!important}.side-entity-menu[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding:5px 8px 5px 40px;text-decoration:none;color:#fff;font-size:1rem;display:block}.activated[_ngcontent-%COMP%]{color:#313131!important;border-right:5px solid #313131}.entity-menu-item-header[_ngcontent-%COMP%]{padding:8px 5px 8px 25px;cursor:pointer;-moz-user-select:none;-webkit-user-select:none;user-select:none;-webkit-user-drag:none;-webkit-tap-highlight-color:transparent}.entity-menu-item-label[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;word-break:break-word}.entity-menu-item-label[_ngcontent-%COMP%]:hover{text-decoration:none}.entity-menu-item-link[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:space-between;color:#fff}.entity-menu-item-link[_ngcontent-%COMP%]:hover{text-decoration:none}.entity-menu-item-icon[_ngcontent-%COMP%]{height:2rem}.entity-menu-item-sub-menu[_ngcontent-%COMP%]{overflow:hidden}.entity-menu-item-sub-menu-item[_ngcontent-%COMP%]{padding-left:4rem!important}"],data:{animation:[de.BQ,de.Ly]}}),ze})(),oe=(()=>{class ze{transform(me){if(void 0===me.value)return"";switch(me.type){case"java.lang.String":return me.value;case"java.lang.Integer":case"java.lang.Boolean":default:return String(me.value);case"java.util.ArrayList":return this.whenValueIsArray(me.value);case"java.util.LinkedHashMap":return this.whenValueIsMap(me.value)}}whenValueIsArray(me){let qe="";return me.forEach(function(rt){qe=qe.concat(rt+", ")}),qe}whenValueIsMap(me){let qe="";return me.forEach((rt,Mt)=>{qe=qe.concat(Mt+": "+rt+", ")}),qe}}return ze.\u0275fac=function(me){return new(me||ze)},ze.\u0275pipe=B.Yjl({name:"anyToString",type:ze,pure:!0}),ze})();const X=["collapse"],r=function(){return{color:"linkTextColor"}};function s(ze,_t){1&ze&&(B.TgZ(0,"mat-icon",12),B._uU(1,"keyboard_arrow_right"),B.qZA()),2&ze&&B.Q6J("ngStyle",B.DdM(1,r))}function _(ze,_t){1&ze&&(B.TgZ(0,"mat-icon",12),B._uU(1,"keyboard_arrow_down"),B.qZA()),2&ze&&B.Q6J("ngStyle",B.DdM(1,r))}function c(ze,_t){if(1&ze&&(B.TgZ(0,"span",10),B.YNc(1,s,2,2,"mat-icon",11),B.YNc(2,_,2,2,"mat-icon",11),B.qZA()),2&ze){const me=B.oxw().$implicit,qe=B.oxw();B.xp6(1),B.Q6J("ngIf",!qe.isActive(qe.currentUrl,me.showChildrenRegex)),B.xp6(1),B.Q6J("ngIf",qe.isActive(qe.currentUrl,me.showChildrenRegex))}}const a=function(ze,_t){return{color:ze,"border-color":_t}};function i(ze,_t){if(1&ze){const me=B.EpF();B.TgZ(0,"a",14),B.NdJ("click",function(){const Mt=B.CHM(me).$implicit,Qt=B.oxw(3);return B.KtG(Qt.navigate(Mt.url))}),B._uU(1),B.ALo(2,"translate"),B.qZA()}if(2&ze){const me=_t.$implicit,qe=B.oxw(3);B.ekj("activated",qe.isActive(qe.currentUrl,me.activatedRegex)&&void 0===qe.item.activatedClass),B.Q6J("matRippleColor","rgba(255, 255, 255, 0.1)")("ngStyle",B.WLB(9,a,qe.linkTextColor,qe.linkTextColor))("ngClass",qe.isActive(qe.currentUrl,me.activatedRegex)&&void 0!==qe.item.activatedClass?qe.item.activatedClass:"")("perunWebAppsMiddleClickRouterLink",me.url),B.xp6(1),B.hij(" ",B.lcZ(2,7,me.label)," ")}}function t(ze,_t){if(1&ze&&(B.TgZ(0,"div"),B.YNc(1,i,3,12,"a",13),B.qZA()),2&ze){const me=B.oxw().$implicit;B.Q6J("@rollInOut",void 0),B.xp6(1),B.Q6J("ngForOf",null==me?null:me.children)}}function n(ze,_t){if(1&ze){const me=B.EpF();B.TgZ(0,"div")(1,"a",7),B.NdJ("click",function(){const Mt=B.CHM(me).$implicit,Qt=B.oxw();return B.KtG(Qt.navigate(Mt.url))}),B._uU(2),B.ALo(3,"translate"),B.YNc(4,c,3,2,"span",8),B.qZA(),B.YNc(5,t,2,2,"div",9),B.qZA()}if(2&ze){const me=_t.$implicit,qe=B.oxw();B.xp6(1),B.ekj("activated",qe.isActive(qe.currentUrl,me.activatedRegex)&&void 0===qe.item.activatedClass),B.Q6J("perunWebAppsMiddleClickRouterLink",me.url)("matRippleColor","rgba(255, 255, 255, 0.1)")("ngClass",qe.isActive(qe.currentUrl,me.activatedRegex)&&void 0!==qe.item.activatedClass?qe.item.activatedClass:"")("ngStyle",B.WLB(11,a,qe.linkTextColor,qe.linkTextColor)),B.xp6(1),B.hij(" ",B.lcZ(3,9,me.label)," "),B.xp6(2),B.Q6J("ngIf",me.children),B.xp6(1),B.Q6J("ngIf",qe.isActive(qe.currentUrl,me.showChildrenRegex))}}const o=function(ze){return{background:ze}},l=function(ze){return{color:ze}},d=function(){return{color:"currentColor"}};let y=(()=>{class ze{constructor(me,qe,rt){this.router=me,this.store=qe,this.queryParamsRouter=rt,this.id="",this.expanded=!1,this.linkBgColor=this.store.getProperty("theme").sidemenu_submenu_bg_color,this.linkTextColor=this.store.getProperty("theme").sidemenu_submenu_text_color,this.currentUrl=me.url,me.events.subscribe(Mt=>{Mt instanceof m.m2&&(this.currentUrl=Mt.url)})}ngOnInit(){this.expanded=this.showOpen}ngOnChanges(){this.expanded=this.showOpen}toggle(){void 0!==this.item.baseLink?this.navigate(this.item.baseLink):this.expanded=!this.expanded}isActive(me,qe){return new RegExp(qe).test(me)}getBgClass(){return this.item.baseColorClass?this.isActive(this.currentUrl,this.item.baseColorClassRegex)?this.item.colorClass:this.item.baseColorClass:this.item.colorClass}navigate(me){"over"===this.sideNav.mode?this.sideNav.close().then(()=>this.queryParamsRouter.navigate(me)):this.queryParamsRouter.navigate(me)}}return ze.\u0275fac=function(me){return new(me||ze)(B.Y36(m.F0),B.Y36(re.d6),B.Y36(N.g))},ze.\u0275cmp=B.Xpm({type:ze,selectors:[["app-side-menu-root-item"]],viewQuery:function(me,qe){if(1&me&&B.Gf(X,5),2&me){let rt;B.iGM(rt=B.CRH())&&(qe.collapseDiv=rt.first)}},inputs:{item:"item",index:"index",showOpen:"showOpen",id:"id",sideNav:"sideNav"},features:[B.TTD],decls:12,vars:28,consts:[[1,"entity-menu-item",3,"id"],["matRipple","",1,"entity-menu-item-header",3,"matRippleColor","ngStyle","perunWebAppsMiddleClickRouterLink","click"],[1,"entity-menu-item-label",3,"ngStyle"],[1,"perun-icon",3,"ngStyle","svgIcon"],[1,"ml-3"],[3,"ngStyle"],[4,"ngFor","ngForOf"],["matRipple","",1,"clickable","d-flex",3,"perunWebAppsMiddleClickRouterLink","matRippleColor","ngClass","ngStyle","click"],["class","ml-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto"],["class","perun-icon icon-beak",3,"ngStyle",4,"ngIf"],[1,"perun-icon","icon-beak",3,"ngStyle"],["class","pl-5 clickable","matRipple","",3,"activated","matRippleColor","ngStyle","ngClass","perunWebAppsMiddleClickRouterLink","click",4,"ngFor","ngForOf"],["matRipple","",1,"pl-5","clickable",3,"matRippleColor","ngStyle","ngClass","perunWebAppsMiddleClickRouterLink","click"]],template:function(me,qe){1&me&&(B.TgZ(0,"div",0)(1,"div",1),B.NdJ("click",function(){return qe.toggle()}),B.TgZ(2,"div")(3,"a",2)(4,"div"),B._UZ(5,"mat-icon",3),B.qZA(),B.TgZ(6,"div",4),B._uU(7),B.ALo(8,"translate"),B.qZA()()()(),B.TgZ(9,"div")(10,"div",5),B.YNc(11,n,6,14,"div",6),B.qZA()()()),2&me&&(B.s9C("id",qe.id),B.xp6(1),B.ekj("root-header-activated",qe.isActive(qe.currentUrl,qe.item.baseColorClassRegex)),B.Q6J("matRippleColor","rgba(255, 255, 255, 0.1)")("ngStyle",B.VKq(21,o,qe.item.backgroundColorCss))("perunWebAppsMiddleClickRouterLink",qe.item.baseLink),B.xp6(1),B.Gre("entity-menu-item-link ",qe.item.labelClass,""),B.xp6(1),B.Q6J("ngStyle",B.VKq(23,l,qe.item.textColorCss)),B.xp6(2),B.Q6J("ngStyle",B.DdM(25,d))("svgIcon",qe.item.icon),B.xp6(2),B.Oqu(B.lcZ(8,19,qe.item.label)),B.xp6(2),B.Q6J("@openClose",qe.expanded?"open":"closed"),B.xp6(1),B.Gre("side-entity-menu ",qe.item.linksClass,""),B.Q6J("ngStyle",B.VKq(26,o,qe.linkBgColor)),B.xp6(1),B.Q6J("ngForOf",qe.item.links))},dependencies:[e.mk,e.sg,e.O5,e.PC,D.Hw,g.wG,Me.YH,Y.X$],styles:[".entity-menu-item[_ngcontent-%COMP%]{width:300px}.side-entity-menu[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding:5px 8px 5px 32px;text-decoration:none;font-size:1rem;color:#fff;display:block}.side-entity-menu[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{background:var(--side-link-hover)!important;color:var(--side-link-text-hover)!important}.root-header-activated[_ngcontent-%COMP%]{background:var(--side-root-item-active)!important;color:var(--side-root-item-text-active)!important}.entity-menu-item-header[_ngcontent-%COMP%]{padding:.5rem .5rem .5rem 1rem;cursor:pointer;-moz-user-select:none;-webkit-user-select:none;user-select:none;-webkit-user-drag:none;-webkit-tap-highlight-color:transparent}.entity-menu-item-header[_ngcontent-%COMP%]:hover{background:var(--side-root-item-hover)!important;color:var(--side-root-item-text-hover)!important}.entity-menu-item-label[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;color:#fff}.entity-menu-item-label[_ngcontent-%COMP%]:hover{text-decoration:none}.entity-menu-item-link[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:space-between;color:#fff}.entity-menu-item-link[_ngcontent-%COMP%]:hover{text-decoration:none}.entity-menu-item-icon[_ngcontent-%COMP%]{height:2rem}"],data:{animation:[de.BQ,de.Ly]}}),ze})();var k=u(73555),Ie=u(67376),tt=u(63189),ct=u(37677),Ue=u(85147),at=u(11243),fe=u(19516),Oe=u(33231),Ke=u(96338),je=u(9244),Le=u(28499),ie=u(70844),Ae=u(21029);let st=(()=>{class ze{constructor(me){this.translate=me,me.addLangs(["en","cs"])}}return ze.\u0275fac=function(me){return new(me||ze)(B.LFG(Y.sK))},ze.\u0275mod=B.oAB({type:ze}),ze.\u0275inj=B.cJS({providers:[oe,ct.A,ie.u],imports:[e.ez,m.Bz,A.Bb,F.c,v.lN,$e.UX,$e.u5,D.Ps,ce.SJ,R.To,Y.aw.forChild({}),w.ot,H.JX,L.p0,V.Nh,ae.dp,w.ot,p.p9,E.Is,_e.LD,b.ZX,G.Cq,$.Cv,Q.AV,Te.rP,T.FA,g.XK,q.Fk,S.t,g.si,z.TU,xe.QW,pe.T5,k._t,xe.QW,Se.Hi,Be.Tx,Ie.Cl,tt.r,ge.g,Ue.ez,at.r,fe.d4,Oe.Co,Ke.ie,je.Je,Le.E3,Ae.jD,Oe.Co,A.Bb,F.c,m.Bz,$e.UX,$e.u5,D.Ps,ce.SJ,Y.aw,H.JX,L.p0,V.Nh,ae.dp,w.ot,p.p9,E.Is,_e.LD,b.ZX,G.Cq,$.Cv,Q.AV,Te.rP,T.FA,g.XK,q.Fk,S.t,xe.QW,pe.T5,g.si,z.TU,k._t,Se.Hi,Se.Hi,R.To,Be.Tx,Ie.Cl,Ie.Cl,Ie.Cl,at.r]}),ze})();B.B6R(Ce.V,function(){return[e.sg,e.O5,it,y]},[])},69024:(Qe,he,u)=>{"use strict";u.d(he,{V:()=>E});var e=u(69723),m=u(32105),A=u(9244),w=u(19516),p=u(64080),g=u(94650),T=u(89383);let E=(()=>{class S{constructor(v,D,F,z,$,G,q,_e){this.translate=v,this.authResolver=D,this.store=F,this.apiRequest=z,this.attributesManager=$,this.notificator=G,this.guiAuthResolver=q,this.routePolicyService=_e,this.theme=this.store.getProperty("theme")}getFacilitiesManagementItem(){return{label:"MAIN_MENU.FACILITIES",colorClass:"base-item-color-activated",icon:"perun-facility-white",baseLink:["/facilities"],links:[],baseColorClass:"base-item-color",baseColorClassRegex:"^/facilities$",backgroundColorCss:this.theme.sidemenu_bg_color,textColorCss:this.theme.sidemenu_text_color}}getAccessManagementItem(){return{label:"MAIN_MENU.ACCESS",colorClass:"base-item-color-activated",icon:"perun-vo",links:[],baseLink:["/organizations"],baseColorClass:"base-item-color",baseColorClassRegex:"^/organizations$",backgroundColorCss:this.theme.sidemenu_bg_color,textColorCss:this.theme.sidemenu_text_color}}getHomeItem(){return{baseLink:["/home"],label:"MAIN_MENU.HOME",colorClass:"base-item-color-activated",icon:"perun-home-white",baseColorClass:"base-item-color",baseColorClassRegex:"^/home$",activatedClass:"dark-item-activated",linksClass:"dark-item-links",backgroundColorCss:this.theme.sidemenu_bg_color,textColorCss:this.theme.sidemenu_text_color,links:[]}}getUserItem(){return{baseLink:["/myProfile"],expandable:!1,label:"MAIN_MENU.MY_PROFILE",colorClass:"base-item-color-activated",icon:"perun-user",baseColorClass:"base-item-color",baseColorClassRegex:"^/dont-use$",activatedClass:"dark-item-activated",linksClass:"dark-item-links",backgroundColorCss:this.theme.sidemenu_bg_color,textColorCss:this.theme.sidemenu_text_color,links:[{label:"MENU_ITEMS.USER.OVERVIEW",url:["/myProfile"],activatedRegex:"^/myProfile$"},{label:"MENU_ITEMS.USER.ORGANIZATIONS",url:["/myProfile/organizations"],activatedRegex:"^/myProfile/organizations$"},{label:"MENU_ITEMS.USER.GROUPS",url:["/myProfile/groups"],activatedRegex:"^/myProfile/groups$"},{label:"MENU_ITEMS.USER.ATTRIBUTES",url:["/myProfile/attributes"],activatedRegex:"^/myProfile/attributes$"},{label:"MENU_ITEMS.USER.ROLES",url:["/myProfile/roles"],activatedRegex:"/myProfile/roles"},{label:"MENU_ITEMS.USER.SERVICE_IDENTITIES",url:["/myProfile/service-identities"],activatedRegex:"^/myProfile/service-identities"},{label:"MENU_ITEMS.USER.BANS",url:["/myProfile/bans"],activatedRegex:"^/myProfile/bans"},{label:"MENU_ITEMS.USER.SETTINGS",url:["/myProfile/settings"],activatedRegex:"^/myProfile/settings$",children:[{label:"MENU_ITEMS.USER.PASSWORD_RESET",url:["/myProfile/settings/passwordReset"],activatedRegex:"^/myProfile/settings/passwordReset"},{label:"MENU_ITEMS.USER.GUI_CONFIG",url:["/myProfile/settings/guiConfig"],activatedRegex:"/myProfile/settings/guiConfig"}],showChildrenRegex:"/myProfile/settings"}]}}getAdminItem(){return{baseLink:["/admin"],expandable:!1,label:"MAIN_MENU.ADMIN",colorClass:"base-item-color-activated",icon:"perun-perun-admin",baseColorClass:"base-item-color",baseColorClassRegex:"^/dont-use$",activatedClass:"dark-item-activated",linksClass:"dark-item-links",backgroundColorCss:this.theme.sidemenu_bg_color,textColorCss:this.theme.sidemenu_text_color,links:[{label:"MENU_ITEMS.ADMIN.OVERVIEW",url:["/admin"],activatedRegex:"^/admin$"},{label:"MENU_ITEMS.ADMIN.ATTRIBUTES",url:["/admin/attributes"],activatedRegex:"^/admin/attributes$"},{label:"MENU_ITEMS.ADMIN.USERS",url:["/admin/users"],activatedRegex:"^/admin/users$"},{label:"MENU_ITEMS.ADMIN.OWNERS",url:["/admin/owners"],activatedRegex:"^/admin/owners$"},{label:"MENU_ITEMS.ADMIN.SERVICES",url:["/admin/services"],activatedRegex:"^/admin/services$"},{label:"MENU_ITEMS.ADMIN.VISUALIZER",url:["/admin/visualizer"],activatedRegex:"^/admin/visualizer$",children:[{label:"MENU_ITEMS.VISUALIZER.ATTR_DEPENDENCIES",url:["/admin/visualizer/attrDependencies"],activatedRegex:"^/admin/visualizer/attrDependencies"},{label:this.translate.instant("MENU_ITEMS.VISUALIZER.USER_DESTINATION"),url:["/admin/visualizer/userDestinationRelationship"],activatedRegex:"^/admin/visualizer/userDestinationRelationship"}],showChildrenRegex:"/admin/visualizer"},{label:"MENU_ITEMS.ADMIN.EXT_SOURCES",url:["/admin/ext_sources"],activatedRegex:"^/admin/ext_sources$"},{label:"MENU_ITEMS.ADMIN.AUDIT_LOG",url:["/admin/audit_log"],activatedRegex:"^/admin/audit_log$"},{label:"MENU_ITEMS.ADMIN.CONSENT_HUBS",url:["/admin/consent_hubs"],activatedRegex:"^/admin/consent_hubs$"},{label:"MENU_ITEMS.ADMIN.SEARCHER",url:["/admin/searcher"],activatedRegex:"^/admin/searcher"}]}}parseFacility(v){return{label:v.name,baseLink:[`/facilities/${v.id}`],backgroundColorCss:this.theme.sidemenu_facility_bg_color,textColorCss:this.theme.sidemenu_facility_text_color,links:this.getFacilityLinks(v),colorClass:"facility-item",icon:"perun-facility-white",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseResource(v,D){const F=(new w.r5).transform(v,D);return{label:v.name,baseLink:[F],backgroundColorCss:this.theme.sidemenu_resource_bg_color,textColorCss:this.theme.sidemenu_resource_text_color,links:this.getResourceLinks(F,D?"/organizations":"/facilities",v),colorClass:"resource-item",icon:"perun-resource-white",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseGroup(v){return{label:v.name,baseLink:[`/organizations/${v.voId}/groups/${v.id}`],backgroundColorCss:this.theme.sidemenu_group_bg_color,textColorCss:this.theme.sidemenu_group_text_color,links:this.getGroupLinks(v),colorClass:"group-item",icon:"perun-group",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseVo(v,D=!1,F=!1){return{label:v.name,baseLink:[`/organizations/${v.id}`],links:this.getVoLinks(v,F),colorClass:"vo-item",icon:D?"perun-hierarchical-vo":"perun-vo",activatedClass:"dark-item-activated",linksClass:"dark-item-links",backgroundColorCss:this.theme.sidemenu_vo_bg_color,textColorCss:this.theme.sidemenu_vo_text_color}}parseMember(v){return{label:(0,A.bD)(v.user),baseLink:[`/organizations/${v.voId}/members/${v.id}`],backgroundColorCss:this.theme.sidemenu_member_bg_color,textColorCss:this.theme.sidemenu_member_text_color,links:this.getMemberLinks(v),colorClass:"member-item",icon:"perun-user",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseUser(v,D,F){return{label:(0,A.bD)(v),baseLink:[D],backgroundColorCss:this.theme.sidemenu_user_bg_color,textColorCss:this.theme.sidemenu_user_text_color,links:this.getUserLinks(v,D,F),colorClass:"user-bg-color",icon:"perun-user",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseServiceIdentity(v){return{label:(0,A.bD)(v),baseLink:[`/myProfile/service-identities/${v.id}`],backgroundColorCss:this.theme.sidemenu_user_bg_color,textColorCss:this.theme.sidemenu_user_text_color,links:[{label:"MENU_ITEMS.USER.OVERVIEW",url:[`/myProfile/service-identities/${v.id}`],activatedRegex:"/myProfile/service-identities/\\d+$"},{label:"MENU_ITEMS.USER.ASSOCIATED_USERS",url:[`/myProfile/service-identities/${v.id}/associated-users`],activatedRegex:"/myProfile/service-identities/\\d+/associated-users"},{label:"MENU_ITEMS.USER.MAILING_LISTS",url:[`/myProfile/service-identities/${v.id}/mailing-lists`],activatedRegex:"/myProfile/service-identities/\\d+/mailing-lists"},{label:"MENU_ITEMS.USER.DATA_QUOTAS",url:[`/myProfile/service-identities/${v.id}/data-quotas`],activatedRegex:"/myProfile/service-identities/\\d+/data-quotas"},{label:"MENU_ITEMS.USER.AUTHENTICATION",url:[`/myProfile/service-identities/${v.id}/authentication`],activatedRegex:"/myProfile/service-identities/\\d+/authentication$",children:[{label:"MENU_ITEMS.USER.LOGINS",url:[`/myProfile/service-identities/${v.id}/authentication/logins`],activatedRegex:"/myProfile/service-identities/\\d+/authentication/logins"},{label:"MENU_ITEMS.USER.CERTIFICATES",url:[`/myProfile/service-identities/${v.id}/authentication/certificates`],activatedRegex:"/myProfile/service-identities/\\d+/authentication/certificates"},{label:"MENU_ITEMS.USER.SSH_KEYS",url:[`/myProfile/service-identities/${v.id}/authentication/ssh-keys`],activatedRegex:"/myProfile/service-identities/\\d+/authentication/ssh-keys"}],showChildrenRegex:"/myProfile/service-identities/\\d+/authentication"}],colorClass:"user-bg-color",icon:"perun-service-identity",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseService(v){return{label:v.name,baseLink:[`/admin/services/${v.id}`],backgroundColorCss:this.theme.sidemenu_service_bg_color,textColorCss:this.theme.sidemenu_service_text_color,links:[{label:"MENU_ITEMS.SERVICE.OVERVIEW",url:[`/admin/services/${v.id}`],activatedRegex:"/admin/services/\\d+$"},{label:"MENU_ITEMS.SERVICE.REQUIRED_ATTRIBUTES",url:[`/admin/services/${v.id}/required-attributes`],activatedRegex:"/admin/services/\\d+/required-attributes"},{label:"MENU_ITEMS.SERVICE.DESTINATIONS",url:[`/admin/services/${v.id}/destinations`],activatedRegex:"/admin/services/\\d+/destinations"}],colorClass:"service-item",icon:"perun-service",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}getVoLinks(v,D){const F=[];if(F.push({label:"MENU_ITEMS.VO.OVERVIEW",url:[`/organizations/${v.id}`],activatedRegex:"/organizations/\\d+$"}),this.routePolicyService.canNavigate("organizations-members",v)&&F.push({label:"MENU_ITEMS.VO.MEMBERS",url:[`/organizations/${v.id}/members`],activatedRegex:"/organizations/\\d+/members$"}),this.routePolicyService.canNavigate("organizations-groups",v)&&F.push({label:"MENU_ITEMS.VO.GROUPS",url:[`/organizations/${v.id}/groups`],activatedRegex:"/organizations/\\d+/groups$"}),this.routePolicyService.canNavigate("organizations-resources",v)){const z=[];this.routePolicyService.canNavigate("organizations-resources-preview",v)&&z.push({label:"MENU_ITEMS.VO.RESOURCE_PREVIEW",url:[`/organizations/${v.id}/resources/preview`],activatedRegex:"/organizations/\\d+/resources/preview$"}),this.routePolicyService.canNavigate("organizations-resources-tags",v)&&z.push({label:"MENU_ITEMS.VO.RESOURCE_TAGS",url:[`/organizations/${v.id}/resources/tags`],activatedRegex:"/organizations/\\d+/resources/tags$"}),this.routePolicyService.canNavigate("organizations-resources-states",v)&&z.push({label:"MENU_ITEMS.VO.RESOURCE_STATES",url:[`/organizations/${v.id}/resources/states`],activatedRegex:"/organizations/\\d+/resources/states$"}),F.push({label:"MENU_ITEMS.VO.RESOURCES",url:[`/organizations/${v.id}/resources`],activatedRegex:"/organizations/\\d+/resources$",children:z,showChildrenRegex:"/organizations/\\d+/resources"})}if(this.routePolicyService.canNavigate("organizations-applications",v)&&F.push({label:"MENU_ITEMS.VO.APPLICATIONS",url:[`/organizations/${v.id}/applications`],activatedRegex:"/organizations/\\d+/applications"}),this.routePolicyService.canNavigate("organizations-sponsoredMembers",v)&&F.push({label:"MENU_ITEMS.VO.SPONSORED_MEMBERS",url:[`/organizations/${v.id}/sponsoredMembers`],activatedRegex:"/organizations/\\d+/sponsoredMembers$"}),this.routePolicyService.canNavigate("organizations-serviceAccounts",v)&&F.push({label:"MENU_ITEMS.VO.SERVICE_MEMBERS",url:[`/organizations/${v.id}/serviceAccounts`],activatedRegex:"/organizations/\\d+/serviceAccounts$"}),this.routePolicyService.canNavigate("organizations-attributes",v)&&F.push({label:"MENU_ITEMS.VO.ATTRIBUTES",url:[`/organizations/${v.id}/attributes`],activatedRegex:"/organizations/\\d+/attributes$"}),this.routePolicyService.canNavigate("organizations-statistics",v)&&F.push({label:"MENU_ITEMS.VO.STATISTICS",url:[`/organizations/${v.id}/statistics`],activatedRegex:"/organizations/\\d+/statistics"}),this.routePolicyService.canNavigate("organizations-settings",v)){const z=[];this.routePolicyService.canNavigate("organizations-settings-expiration",v)&&z.push({label:"MENU_ITEMS.VO.EXPIRATION",url:[`/organizations/${v.id}/settings/expiration`],activatedRegex:"/organizations/\\d+/settings/expiration$"}),this.routePolicyService.canNavigate("organizations-settings-managers",v)&&z.push({label:"MENU_ITEMS.VO.MANAGERS",url:[`/organizations/${v.id}/settings/managers`],activatedRegex:"/organizations/\\d+/settings/managers$"}),this.routePolicyService.canNavigate("organizations-settings-applicationForm",v)&&z.push({label:"MENU_ITEMS.VO.APPLICATION_FORM",url:[`/organizations/${v.id}/settings/applicationForm`],activatedRegex:"/organizations/\\d+/settings/applicationForm$"}),this.routePolicyService.canNavigate("organizations-settings-notifications",v)&&z.push({label:"MENU_ITEMS.VO.NOTIFICATIONS",url:[`/organizations/${v.id}/settings/notifications`],activatedRegex:"/organizations/\\d+/settings/notifications$"}),this.routePolicyService.canNavigate("organizations-settings-extsources",v)&&z.push({label:"MENU_ITEMS.VO.EXTSOURCES",url:[`/organizations/${v.id}/settings/extsources`],activatedRegex:"/organizations/\\d+/settings/extsources$"}),this.routePolicyService.canNavigate("organizations-settings-memberOrganizations",v)&&z.push({label:"MENU_ITEMS.VO.MEMBER_ORGANIZATIONS",url:[`/organizations/${v.id}/settings/memberOrganizations`],activatedRegex:"/organizations/\\d+/settings/memberOrganizations"}),this.routePolicyService.canNavigate("organizations-settings-hierarchicalInclusion",v)&&D&&z.push({label:"MENU_ITEMS.VO.HIERARCHICAL_INCLUSION",url:[`/organizations/${v.id}/settings/hierarchicalInclusion`],activatedRegex:"/organizations/\\d+/settings/hierarchicalInclusion"}),this.routePolicyService.canNavigate("organizations-settings-bans",v)&&z.push({label:"MENU_ITEMS.VO.BANS",url:[`/organizations/${v.id}/settings/bans`],activatedRegex:"/organizations/\\d+/settings/bans"}),F.push({label:"MENU_ITEMS.VO.SETTINGS",url:[`/organizations/${v.id}/settings`],activatedRegex:"/organizations/\\d+/settings$",children:z,showChildrenRegex:"/organizations/\\d+/settings"})}return F}getUserLinks(v,D,F){const z=[];return z.push({label:"MENU_ITEMS.USER.OVERVIEW",url:[D],activatedRegex:`${F}$`}),z.push({label:"MENU_ITEMS.ADMIN.ORGANIZATIONS",url:[`${D}/organizations`],activatedRegex:`${F}/organizations`}),z.push({label:"MENU_ITEMS.ADMIN.GROUPS",url:[`${D}/groups`],activatedRegex:`${F}/groups`}),z.push({label:"MENU_ITEMS.USER.ACCOUNTS",url:[`${D}/accounts`],activatedRegex:`${F}/accounts`}),z.push({label:"MENU_ITEMS.USER.IDENTITIES",url:[`${D}/identities`],activatedRegex:`${F}/identities`}),z.push({label:"MENU_ITEMS.USER.FACILITIES",url:[`${D}/facilities`],activatedRegex:`${F}/facilities`}),z.push({label:"MENU_ITEMS.USER.RESOURCES",url:[`${D}/resources`],activatedRegex:`${F}/resources`}),z.push({label:"MENU_ITEMS.MEMBER.ATTRIBUTES",url:[`${D}/attributes`],activatedRegex:`${F}/attributes`}),z.push({label:"MENU_ITEMS.USER.ROLES",url:[`${D}/roles`],activatedRegex:`^${D}/roles`}),z.push(v.serviceUser?{label:"MENU_ITEMS.USER.ASSOCIATED_USERS",url:[`${D}/associated-users`],activatedRegex:`^${D}/associated-users`}:{label:"MENU_ITEMS.USER.SERVICE_IDENTITIES",url:[`${D}/service-identities`],activatedRegex:`^${D}/service-identities`}),z.push({label:"MENU_ITEMS.USER.BANS",url:[`${D}/bans`],activatedRegex:`^${D}/bans`}),z}getMemberLinks(v){const D=[{label:"MENU_ITEMS.MEMBER.OVERVIEW",url:[`/organizations/${v.voId}/members/${v.id}`],activatedRegex:"/organizations/\\d+/members/\\d+$"}];return this.routePolicyService.canNavigate("members-groups",v)&&D.push({label:"MENU_ITEMS.MEMBER.GROUPS",url:[`/organizations/${v.voId}/members/${v.id}/groups`],activatedRegex:"/organizations/\\d+/members/\\d+/groups"}),this.routePolicyService.canNavigate("members-applications",v)&&D.push({label:"MENU_ITEMS.MEMBER.APPLICATIONS",url:[`/organizations/${v.voId}/members/${v.id}/applications`],activatedRegex:"/organizations/\\d+/members/\\d+/applications"}),this.routePolicyService.canNavigate("members-resources",v)&&D.push({label:"MENU_ITEMS.MEMBER.RESOURCES",url:[`/organizations/${v.voId}/members/${v.id}/resources`],activatedRegex:"/organizations/\\d+/members/\\d+/resources"}),this.routePolicyService.canNavigate("members-attributes",v)&&D.push({label:"MENU_ITEMS.MEMBER.ATTRIBUTES",url:[`/organizations/${v.voId}/members/${v.id}/attributes`],activatedRegex:"/organizations/\\d+/members/\\d+/attributes$"}),this.routePolicyService.canNavigate("members-bans",v)&&D.push({label:"MENU_ITEMS.MEMBER.BANS",url:[`/organizations/${v.voId}/members/${v.id}/bans`],activatedRegex:"/organizations/\\d+/members/\\d+/bans"}),D}getFacilityLinks(v){const D=[{label:"MENU_ITEMS.FACILITY.OVERVIEW",url:[`/facilities/${v.id}`],activatedRegex:"/facilities/\\d+$"}];if(this.routePolicyService.canNavigate("facilities-resources",v)&&D.push({label:"MENU_ITEMS.FACILITY.RESOURCES",url:[`/facilities/${v.id}/resources`],activatedRegex:"/facilities/\\d+/resources$"}),this.routePolicyService.canNavigate("facilities-allowed-users",v)&&D.push({label:"MENU_ITEMS.FACILITY.ALLOWED_USERS",url:[`/facilities/${v.id}/allowed-users`],activatedRegex:"/facilities/\\d+/allowed-users"}),this.routePolicyService.canNavigate("facilities-allowed-groups",v)&&D.push({label:"MENU_ITEMS.FACILITY.ALLOWED_GROUPS",url:[`/facilities/${v.id}/allowed-groups`],activatedRegex:"/facilities/\\d+/allowed-groups"}),this.routePolicyService.canNavigate("facilities-services-status",v)&&D.push({label:"MENU_ITEMS.FACILITY.SERVICES_STATUS",url:[`/facilities/${v.id}/services-status`],activatedRegex:"/facilities/\\d+/services-status"}),this.routePolicyService.canNavigate("facilities-services-destinations",v)&&D.push({label:"MENU_ITEMS.FACILITY.SERVICES_DESTINATIONS",url:[`/facilities/${v.id}/services-destinations`],activatedRegex:"facilities/\\d+/services-destinations"}),this.routePolicyService.canNavigate("facilities-hosts",v)&&D.push({label:"MENU_ITEMS.FACILITY.HOSTS",url:[`/facilities/${v.id}/hosts`],activatedRegex:"facilities/\\d+/hosts"}),this.routePolicyService.canNavigate("facilities-attributes",v)&&D.push({label:"MENU_ITEMS.FACILITY.ATTRIBUTES",url:["/facilities",v.id.toString(),"attributes"],activatedRegex:"/facilities/\\d+/attributes$"}),this.routePolicyService.canNavigate("facilities-settings",v)){const F=[];this.routePolicyService.canNavigate("facilities-settings-owners",v)&&F.push({label:"MENU_ITEMS.FACILITY.OWNERS",url:["/facilities",v.id.toString(),"settings","owners"],activatedRegex:"/facilities/\\d+/settings/owners$"}),this.routePolicyService.canNavigate("facilities-settings-managers",v)&&F.push({label:"MENU_ITEMS.FACILITY.MANAGERS",url:["/facilities",v.id.toString(),"settings","managers"],activatedRegex:"/facilities/\\d+/settings/managers$"}),this.routePolicyService.canNavigate("facilities-settings-security-teams",v)&&F.push({label:"MENU_ITEMS.FACILITY.SECURITY_TEAMS",url:[`/facilities/${v.id}/settings/security-teams`],activatedRegex:"facilities/\\d+/settings/security-teams"}),this.routePolicyService.canNavigate("facilities-settings-blacklist",v)&&F.push({label:"MENU_ITEMS.FACILITY.BLACKLIST",url:["facilities",v.id.toString(),"settings","blacklist"],activatedRegex:"/facilities/\\d+/settings/blacklist"}),this.routePolicyService.canNavigate("facilities-settings-bans",v)&&F.push({label:"MENU_ITEMS.FACILITY.BANS",url:[`/facilities/${v.id}/settings/bans`],activatedRegex:"/facilities/\\d+/settings/bans"}),D.push({label:"MENU_ITEMS.FACILITY.SETTINGS",url:["/facilities",v.id.toString(),"settings"],activatedRegex:"/facilities/\\d+/settings$",children:F,showChildrenRegex:"/facilities/\\d+/settings"})}return D}getGroupLinks(v){const D=[],F=[];return D.push({label:"MENU_ITEMS.GROUP.OVERVIEW",url:[`/organizations/${v.voId}/groups/${v.id}`],activatedRegex:"/organizations/\\d+/groups/\\d+$"}),this.routePolicyService.canNavigate("groups-members",v)&&D.push({label:"MENU_ITEMS.GROUP.MEMBERS",url:[`/organizations/${v.voId}/groups/${v.id}/members`],activatedRegex:"/organizations/\\d+/groups/\\d+/members$"}),this.routePolicyService.canNavigate("groups-subgroups",v)&&"members"!==v.name&&D.push({label:"MENU_ITEMS.GROUP.SUBGROUPS",url:[`/organizations/${v.voId}/groups/${v.id}/subgroups`],activatedRegex:"/organizations/\\d+/groups/\\d+/subgroups$"}),this.routePolicyService.canNavigate("groups-resources",v)&&D.push({label:"MENU_ITEMS.GROUP.RESOURCES",url:[`/organizations/${v.voId}/groups/${v.id}/resources`],activatedRegex:"/organizations/\\d+/groups/\\d+/resources$"}),"members"!==v.name&&this.routePolicyService.canNavigate("groups-applications",v)&&D.push({label:"MENU_ITEMS.GROUP.APPLICATIONS",url:[`/organizations/${v.voId}/groups/${v.id}/applications`],activatedRegex:"/organizations/\\d+/groups/\\d+/applications$"}),this.routePolicyService.canNavigate("groups-attributes",v)&&D.push({label:"MENU_ITEMS.GROUP.ATTRIBUTES",url:[`/organizations/${v.voId}/groups/${v.id}/attributes`],activatedRegex:"/organizations/\\d+/groups/\\d+/attributes$"}),this.routePolicyService.canNavigate("groups-statistics",v)&&D.push({label:"MENU_ITEMS.GROUP.STATISTICS",url:[`/organizations/${v.voId}/groups/${v.id}/statistics`],activatedRegex:"/organizations/\\d+/groups/\\d+/statistics"}),this.routePolicyService.canNavigate("groups-roles",v)&&D.push({label:"MENU_ITEMS.GROUP.ROLES",url:[`/organizations/${v.voId}/groups/${v.id}/roles`],activatedRegex:"/organizations/\\d+/groups/\\d+/roles"}),this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getGroupAttributeByName(v.id,p.r.GROUP_DEF_EXPIRATION_RULES).subscribe(()=>{F.push({label:"MENU_ITEMS.GROUP.EXPIRATION",url:[`/organizations/${v.voId}/groups/${v.id}/settings/expiration`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/expiration$"})},z=>{"PrivilegeException"!==z.name&&this.notificator.showRPCError(z)}),this.routePolicyService.canNavigate("groups-settings-managers",v)&&F.push({label:"MENU_ITEMS.GROUP.MANAGERS",url:[`/organizations/${v.voId}/groups/${v.id}/settings/managers`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/managers$"}),"members"!==v.name&&this.routePolicyService.canNavigate("groups-settings-applicationForm",v)&&F.push({label:"MENU_ITEMS.GROUP.APPLICATION_FORM",url:[`/organizations/${v.voId}/groups/${v.id}/settings/applicationForm`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/applicationForm$"}),this.routePolicyService.canNavigate("groups-settings-notifications",v)&&F.push({label:"MENU_ITEMS.GROUP.NOTIFICATIONS",url:[`/organizations/${v.voId}/groups/${v.id}/settings/notifications`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/notifications$"}),this.routePolicyService.canNavigate("groups-settings-relations",v)&&F.push({label:"MENU_ITEMS.GROUP.RELATIONS",url:[`/organizations/${v.voId}/groups/${v.id}/settings/relations`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/relations$"}),this.routePolicyService.canNavigate("groups-settings-extsources",v)&&F.push({label:"MENU_ITEMS.GROUP.EXTSOURCES",url:[`/organizations/${v.voId}/groups/${v.id}/settings/extsources`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/extsources$"}),0!==F.length&&D.push({label:"MENU_ITEMS.GROUP.SETTINGS",url:[`/organizations/${v.voId}/groups/${v.id}/settings`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings$",children:F,showChildrenRegex:"/organizations/\\d+/groups/\\d+/settings"}),D}getResourceLinks(v,D,F){const z=[{label:"MENU_ITEMS.RESOURCE.OVERVIEW",url:[v],activatedRegex:`${D}/\\d+/resources/\\d+$`}];if(this.routePolicyService.canNavigate("resources-groups",F)&&z.push({label:"MENU_ITEMS.RESOURCE.ASSIGNED_GROUPS",url:[v,"groups"],activatedRegex:`${D}/\\d+/resources/\\d+/groups$`}),this.routePolicyService.canNavigate("resources-services",F)&&z.push({label:"MENU_ITEMS.RESOURCE.ASSIGNED_SERVICES",url:[v,"services"],activatedRegex:`${D}/\\d+/resources/\\d+/services$`}),this.routePolicyService.canNavigate("resources-members",F)&&z.push({label:"MENU_ITEMS.RESOURCE.ASSIGNED_MEMBERS",url:[v,"members"],activatedRegex:`${D}/\\d+/resources/\\d+/members$`}),this.routePolicyService.canNavigate("resources-tags",F)&&z.push({label:"MENU_ITEMS.RESOURCE.RESOURCE_TAGS",url:[v,"tags"],activatedRegex:`${D}/\\d+/resources/\\d+/tags$`}),this.routePolicyService.canNavigate("resources-attributes",F)&&z.push({label:"MENU_ITEMS.RESOURCE.ATTRIBUTES",url:[v,"attributes"],activatedRegex:`${D}/\\d+/resources/\\d+/attributes$`}),this.routePolicyService.canNavigate("resources-settings",F)){const $=[];this.routePolicyService.canNavigate("resources-settings-managers",F)&&$.push({label:"MENU_ITEMS.RESOURCE.MANAGERS",url:[v,"settings","managers"],activatedRegex:`${D}/\\d+/resources/\\d+/settings/managers$`}),this.routePolicyService.canNavigate("resources-settings-bans",F)&&$.push({label:"MENU_ITEMS.RESOURCE.BANS",url:[v,"settings","bans"],activatedRegex:`${D}/\\d+/resources/\\d+/settings/bans`}),z.push({label:"MENU_ITEMS.RESOURCE.SETTINGS",url:[v,"settings"],activatedRegex:`${D}/\\d+/resources/\\d+/settings$`,children:$,showChildrenRegex:`${D}/\\d+/resources/\\d+/settings`})}return z}}return S.\u0275fac=function(v){return new(v||S)(g.LFG(T.sK),g.LFG(e.x4),g.LFG(e.d6),g.LFG(e.F5),g.LFG(m.H8),g.LFG(e.V6),g.LFG(e.x4),g.LFG(e.Ip))},S.\u0275prov=g.Yz7({token:S,factory:S.\u0275fac,providedIn:"root"}),S})()},73228:(Qe,he,u)=>{"use strict";u.d(he,{V:()=>G});var e=u(72077),m=u(69024),A=u(69723),w=u(36769),p=u(94650),g=u(77968);function T(q,_e){if(1&q&&(p.TgZ(0,"div",9),p._UZ(1,"app-side-menu-item",10),p.qZA()),2&q){const ce=_e.$implicit,Te=_e.index,b=p.oxw();p.Q6J("@rollInOut",void 0),p.xp6(1),p.Q6J("index",Te)("item",ce)("sideNav",b.sideNav)}}function E(q,_e){if(1&q&&(p.TgZ(0,"div",9),p._UZ(1,"app-side-menu-item",11),p.qZA()),2&q){const ce=_e.$implicit,Te=_e.index,b=p.oxw();p.Q6J("@rollInOut",void 0),p.xp6(1),p.Q6J("index",Te)("item",ce)("showLinks",Te===b.accessItems.length-1)("sideNav",b.sideNav)}}function S(q,_e){if(1&q&&p._UZ(0,"app-side-menu-root-item",12),2&q){const ce=p.oxw();p.Q6J("id","facilities-item-btn")("item",ce.facilityItem)("sideNav",ce.sideNav)}}function R(q,_e){if(1&q&&(p.TgZ(0,"div",9),p._UZ(1,"app-side-menu-item",11),p.qZA()),2&q){const ce=_e.$implicit,Te=_e.index,b=p.oxw(2);p.Q6J("@rollInOut",void 0),p.xp6(1),p.Q6J("index",Te)("item",ce)("showLinks",Te===b.facilityItems.length-1)("sideNav",b.sideNav)}}function v(q,_e){if(1&q&&(p.TgZ(0,"div"),p.YNc(1,R,2,5,"div",3),p.qZA()),2&q){const ce=p.oxw();p.xp6(1),p.Q6J("ngForOf",ce.facilityItems)}}function D(q,_e){if(1&q&&(p.TgZ(0,"div",9),p._UZ(1,"app-side-menu-item",11),p.qZA()),2&q){const ce=_e.$implicit,Te=_e.index,b=p.oxw();p.Q6J("@rollInOut",void 0),p.xp6(1),p.Q6J("index",Te)("item",ce)("showLinks",Te===b.userItems.length-1)("sideNav",b.sideNav)}}function F(q,_e){if(1&q&&p._UZ(0,"app-side-menu-root-item",13),2&q){const ce=p.oxw();p.Q6J("id","admin-item-btn")("item",ce.adminItem)("showOpen",ce.adminItemOpened)("sideNav",ce.sideNav)}}function z(q,_e){if(1&q&&(p.TgZ(0,"div",9),p._UZ(1,"app-side-menu-item",11),p.qZA()),2&q){const ce=_e.$implicit,Te=_e.index,b=p.oxw(2);p.Q6J("@rollInOut",void 0),p.xp6(1),p.Q6J("index",Te)("item",ce)("showLinks",!0)("sideNav",b.sideNav)}}function $(q,_e){if(1&q&&(p.TgZ(0,"div"),p.YNc(1,z,2,5,"div",3),p.qZA()),2&q){const ce=p.oxw();p.xp6(1),p.Q6J("ngForOf",ce.adminItems)}}let G=(()=>{class q{constructor(ce,Te,b){this.sideMenuService=ce,this.sideMenuItemService=Te,this.authResolver=b,this.accessItems=[],this.facilityItems=[],this.adminItems=[],this.homeItems=[],this.userItems=[],this.accessItem=this.sideMenuItemService.getAccessManagementItem(),this.adminItem=this.sideMenuItemService.getAdminItem(),this.facilityItem=this.sideMenuItemService.getFacilitiesManagementItem(),this.homeItem=this.sideMenuItemService.getHomeItem(),this.userItem=this.sideMenuItemService.getUserItem(),this.mobileView=!0,this.adminItemOpened=!1,this.userItemOpened=!1}static areSameItems(ce,Te){return ce.label===Te.label&&ce.labelClass===Te.labelClass}static areSameLinks(ce,Te){if(ce.links.length!==Te.links.length)return!1;for(let b=0;bTe.length?ce.length:Te.length;for(let H=0;Hce.length-1)ce.push(Te[H]);else{if(H>Te.length-1){const L=ce.length;for(let V=0;V{this.setFacilityItems(ce)}),this.sideMenuService.accessItemsChange.subscribe(ce=>{this.setAccessItems(ce)}),this.sideMenuService.adminItemsChange.subscribe(ce=>{this.setAdminItems(ce)}),this.sideMenuService.userItemsChange.subscribe(ce=>{this.setUserItems(ce)}),this.sideMenuService.homeItemsChange.subscribe(ce=>{this.setHomeItems(ce)}),this.sideMenuService.resetChange.subscribe(()=>{this.reset()})}reset(){this.adminItemOpened=!1,this.userItemOpened=!1,q.setNewItems(this.homeItems,[]),q.setNewItems(this.adminItems,[]),q.setNewItems(this.accessItems,[]),q.setNewItems(this.facilityItems,[]),q.setNewItems(this.userItems,[])}resetExceptHome(){this.adminItemOpened=!1,this.userItemOpened=!1,q.setNewItems(this.adminItems,[]),q.setNewItems(this.accessItems,[]),q.setNewItems(this.facilityItems,[]),q.setNewItems(this.userItems,[])}resetExceptFacility(){this.adminItemOpened=!1,this.userItemOpened=!1,q.setNewItems(this.homeItems,[]),q.setNewItems(this.adminItems,[]),q.setNewItems(this.accessItems,[]),q.setNewItems(this.userItems,[])}resetExceptAccess(){this.adminItemOpened=!1,this.userItemOpened=!1,q.setNewItems(this.homeItems,[]),q.setNewItems(this.adminItems,[]),q.setNewItems(this.facilityItems,[]),q.setNewItems(this.userItems,[])}resetExceptAdmin(){this.userItemOpened=!1,q.setNewItems(this.homeItems,[]),q.setNewItems(this.accessItems,[]),q.setNewItems(this.facilityItems,[]),q.setNewItems(this.userItems,[])}resetExceptUser(){this.adminItemOpened=!1,q.setNewItems(this.accessItems,[]),q.setNewItems(this.facilityItems,[]),q.setNewItems(this.adminItems,[])}setHomeItems(ce){this.resetExceptHome(),q.setNewItems(this.homeItems,ce)}setFacilityItems(ce){this.resetExceptFacility(),q.setNewItems(this.facilityItems,ce)}setAccessItems(ce){this.resetExceptAccess(),q.setNewItems(this.accessItems,ce)}setUserItems(ce){this.userItemOpened=0===ce.length,this.resetExceptUser(),q.setNewItems(this.userItems,ce)}setAdminItems(ce){this.adminItemOpened=0===ce.length,this.resetExceptAdmin(),q.setNewItems(this.adminItems,ce)}}return q.\u0275fac=function(ce){return new(ce||q)(p.Y36(g.D),p.Y36(m.V),p.Y36(A.x4))},q.\u0275cmp=p.Xpm({type:q,selectors:[["app-side-menu"]],inputs:{sideNav:"sideNav"},decls:13,vars:17,consts:[["id","sideMenuSpacer"],["id","sideMenuAccordion",1,"accordion","entity-menu-accordion"],[3,"id","item","sideNav"],["class","overflow-hidden",4,"ngFor","ngForOf"],["data-cy","access-item-button",3,"item","id","sideNav"],["data-cy","facilities-button",3,"id","item","sideNav",4,"ngIf"],[4,"ngIf"],[3,"id","item","showOpen","sideNav"],["data-cy","admin-button",3,"id","item","showOpen","sideNav",4,"ngIf"],[1,"overflow-hidden"],[3,"index","item","sideNav"],[3,"index","item","showLinks","sideNav"],["data-cy","facilities-button",3,"id","item","sideNav"],["data-cy","admin-button",3,"id","item","showOpen","sideNav"]],template:function(ce,Te){1&ce&&(p.TgZ(0,"div",0)(1,"div",1),p._UZ(2,"app-side-menu-root-item",2),p.YNc(3,T,2,4,"div",3),p._UZ(4,"app-side-menu-root-item",4),p.TgZ(5,"div"),p.YNc(6,E,2,5,"div",3),p.qZA(),p.YNc(7,S,1,3,"app-side-menu-root-item",5),p.YNc(8,v,2,1,"div",6),p._UZ(9,"app-side-menu-root-item",7),p.YNc(10,D,2,5,"div",3),p.YNc(11,F,1,4,"app-side-menu-root-item",8),p.YNc(12,$,2,1,"div",6),p.qZA()()),2&ce&&(p.xp6(2),p.Q6J("id","home-item-btn")("item",Te.homeItem)("sideNav",Te.sideNav),p.xp6(1),p.Q6J("ngForOf",Te.homeItems),p.xp6(1),p.Q6J("item",Te.accessItem)("id","access-item-btn")("sideNav",Te.sideNav),p.xp6(2),p.Q6J("ngForOf",Te.accessItems),p.xp6(1),p.Q6J("ngIf",Te.authResolver.canManageFacilities()),p.xp6(1),p.Q6J("ngIf",Te.authResolver.canManageFacilities()),p.xp6(1),p.Q6J("id","profile-item-btn")("item",Te.userItem)("showOpen",Te.userItemOpened)("sideNav",Te.sideNav),p.xp6(1),p.Q6J("ngForOf",Te.userItems),p.xp6(1),p.Q6J("ngIf",Te.authResolver.isPerunAdminOrObserver()),p.xp6(1),p.Q6J("ngIf",Te.authResolver.isPerunAdminOrObserver()))},styles:[".entity-menu-item-label[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center}.entity-menu-item-link[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:space-between;color:#fff}.entity-menu-item-link[_ngcontent-%COMP%]:hover{text-decoration:none}.entity-menu-item-icon[_ngcontent-%COMP%]{height:2rem}.entity-menu-accordion[_ngcontent-%COMP%]{background-color:#f4f4f4}#sideMenuAccordion[_ngcontent-%COMP%]{width:300px}#sideMenuSpacer[_ngcontent-%COMP%]{height:100%}"],data:{animation:[w.Ly]}}),q})()},86511:(Qe,he,u)=>{"use strict";u.d(he,{A:()=>w});var e=u(69723),m=u(94650),A=u(89383);let w=(()=>{class p{constructor(T,E){this.notificator=T,this.translate=E}setDialogRef(T){this.dialogRef=T}setType(T){this.entityType=T}getType(){return this.entityType}createCandidate(T){return{userExtSource:T.userExtSource,additionalUserExtSources:T.additionalUserExtSources,attributes:T.attributes,firstName:T.firstName,lastName:T.lastName,middleName:T.middleName,titleBefore:T.titleBefore,titleAfter:T.titleAfter,id:T.id}}getFormattedGroup(T){return{id:T.id,beanName:T.beanName,name:T.name,voId:T.voId}}success(T){this.notificator.showSuccess(this.translate.instant(T)),this.dialogRef.close(!0)}getCandidateWithError(T,E){if("MfaPrivilegeException"===String(E.type))return null;{const S=E.message.split(":").splice(1).join();return{candidate:T,errorName:E.name,errorMsg:S}}}}return p.\u0275fac=function(T){return new(T||p)(m.LFG(e.V6),m.LFG(A.sK))},p.\u0275prov=m.Yz7({token:p,factory:p.\u0275fac,providedIn:"root"}),p})()},157:(Qe,he,u)=>{"use strict";u.d(he,{b:()=>Ke});var e=u(94650),m=u(73555),A=u(65412),w=u(4859),p=u(89383);let g=(()=>{class je{constructor(ie){this.dialogRef=ie}onCancel(){this.dialogRef.close(!1)}submit(){this.dialogRef.close(!0)}}return je.\u0275fac=function(ie){return new(ie||je)(e.Y36(A.so))},je.\u0275cmp=e.Xpm({type:je,selectors:[["app-delete-application-form-item-dialog"]],decls:20,vars:18,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],[1,"pb-2","font-weight-bold"],[1,"pb-4","pt-2"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","data-cy","delete-application-form-item-dialog","mat-flat-button","",1,"ml-2",3,"click"]],template:function(ie,Ae){1&ie&&(e.TgZ(0,"h1",0),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.TgZ(3,"div",1)(4,"div",2),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"div"),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"div",3),e._uU(11),e.ALo(12,"translate"),e.qZA()(),e.TgZ(13,"div",4)(14,"button",5),e.NdJ("click",function(){return Ae.onCancel()}),e._uU(15),e.ALo(16,"translate"),e.qZA(),e.TgZ(17,"button",6),e.NdJ("click",function(){return Ae.submit()}),e._uU(18),e.ALo(19,"translate"),e.qZA()()),2&ie&&(e.xp6(1),e.Oqu(e.lcZ(2,6,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.TITLE")),e.xp6(4),e.hij(" ",e.lcZ(6,8,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.INFO_1")," "),e.xp6(3),e.Oqu(e.lcZ(9,10,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.INFO_2")),e.xp6(3),e.Oqu(e.lcZ(12,12,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.INFO_3")),e.xp6(4),e.hij(" ",e.lcZ(16,14,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.CANCEL_BUTTON")," "),e.xp6(3),e.hij(" ",e.lcZ(19,16,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.SUBMIT_BUTTON")," "))},dependencies:[w.lW,A.uh,A.xY,A.H8,p.X$]}),je})();var T=u(69723),E=u(83491),S=u(9244),R=u(94364),v=u(36895),D=u(24006),F=u(97392),z=u(30671),$=u(51572),G=u(10266),q=u(98380),_e=u(21963),ce=u(28820),Te=u(57706),b=u(30076),H=u(64597);const L=["table"];function V(je,Le){1&je&&e._UZ(0,"mat-spinner",3)}function Q(je,Le){1&je&&e._UZ(0,"th",24)}function ae(je,Le){if(1&je){const ie=e.EpF();e.TgZ(0,"td",25)(1,"button",26),e.NdJ("mousedown",function(){e.CHM(ie);const st=e.oxw(2);return e.KtG(st.dragDisabled=!1)}),e.TgZ(2,"mat-icon"),e._uU(3,"drag_indicator"),e.qZA()()()}}function xe(je,Le){1&je&&(e.TgZ(0,"th",24),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&je&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SHORTNAME")," "))}function ge(je,Le){if(1&je&&(e.TgZ(0,"td",25),e.ALo(1,"multiWordDataCy"),e._uU(2),e.qZA()),2&je){const ie=Le.$implicit;e.Q2q("data-cy","",e.lcZ(1,3,ie.shortname),"-shortname-td"),e.xp6(2),e.AsE(" ",ie.shortname,"",ie.required?"*":""," ")}}function Se(je,Le){1&je&&(e.TgZ(0,"th",24),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&je&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPE")," "))}function Be(je,Le){if(1&je&&(e.TgZ(0,"td",25),e._uU(1),e.ALo(2,"applicationFormItemType"),e.qZA()),2&je){const ie=Le.$implicit;e.xp6(1),e.hij(" ",e.lcZ(2,1,ie.type)," ")}}function pe(je,Le){1&je&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&je&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HEADER")," "))}function $e(je,Le){if(1&je&&(e.TgZ(0,"div")(1,"mat-icon",30),e._uU(2,"lock "),e.qZA(),e._UZ(3,"br"),e._uU(4),e.qZA()),2&je){const ie=e.oxw().$implicit,Ae=e.oxw(2);e.xp6(1),e.Q6J("matTooltip",Ae.disabledTooltip(ie)),e.xp6(3),e.hij(" ",Ae.disabledHiddenDependency(ie,ie.disabled,ie.disabledDependencyItemId)," ")}}function Ce(je,Le){if(1&je&&(e.TgZ(0,"td",28),e.YNc(1,$e,5,2,"div",29),e.qZA()),2&je){const ie=Le.$implicit;e.xp6(1),e.Q6J("ngIf","NEVER"!==ie.disabled)}}function de(je,Le){1&je&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&je&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.HIDDEN_HEADER")," "))}function re(je,Le){if(1&je&&(e.TgZ(0,"div")(1,"mat-icon",30),e._uU(2,"visibility_off "),e.qZA(),e._UZ(3,"br"),e._uU(4),e.qZA()),2&je){const ie=e.oxw().$implicit,Ae=e.oxw(2);e.xp6(1),e.Q6J("matTooltip",Ae.hiddenTooltip(ie)),e.xp6(3),e.hij(" ",Ae.disabledHiddenDependency(ie,ie.hidden,ie.hiddenDependencyItemId)," ")}}function B(je,Le){if(1&je&&(e.TgZ(0,"td",28),e.YNc(1,re,5,2,"div",29),e.qZA()),2&je){const ie=Le.$implicit;e.xp6(1),e.Q6J("ngIf","NEVER"!==ie.hidden)}}function N(je,Le){1&je&&(e.TgZ(0,"th",24),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&je&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW")," "))}function Me(je,Le){1&je&&(e.TgZ(0,"div")(1,"form"),e._UZ(2,"input",31),e.qZA()())}function Y(je,Le){1&je&&(e.TgZ(0,"div")(1,"form"),e._UZ(2,"input",32)(3,"br")(4,"input",31),e.qZA()())}function be(je,Le){if(1&je&&(e.TgZ(0,"div"),e._UZ(1,"input",35),e._uU(2),e._UZ(3,"br"),e.qZA()),2&je){const ie=Le.$implicit;e.xp6(2),e.hij(" ",ie,"")}}function De(je,Le){if(1&je&&(e.TgZ(0,"div")(1,"form"),e.YNc(2,be,4,1,"div",33),e._UZ(3,"input",34),e.ALo(4,"translate"),e.qZA()()),2&je){const ie=e.oxw().$implicit,Ae=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",Ae.getLocalizedOptions(ie)),e.xp6(1),e.s9C("value",e.lcZ(4,2,"VO_DETAIL.SETTINGS.APPLICATION_FORM.CLEAR_SELECTION"))}}function We(je,Le){if(1&je&&(e.TgZ(0,"div"),e._UZ(1,"span",36),e.qZA()),2&je){const ie=e.oxw().$implicit,Ae=e.oxw(2);e.xp6(1),e.Q6J("innerHTML",Ae.getLocalizedLabel(ie),e.oJD)}}function Pe(je,Le){if(1&je&&(e.TgZ(0,"div"),e._UZ(1,"span",36),e.ALo(2,"sanitizeHtml"),e.qZA()),2&je){const ie=e.oxw().$implicit,Ae=e.oxw(2);e.xp6(1),e.Q6J("innerHTML",e.lcZ(2,1,Ae.getLocalizedLabel(ie)),e.oJD)}}function nt(je,Le){if(1&je&&(e.TgZ(0,"option"),e._uU(1),e.qZA()),2&je){const ie=Le.$implicit;e.xp6(1),e.hij(" ",ie," ")}}function Ye(je,Le){if(1&je&&(e.TgZ(0,"div")(1,"select"),e.YNc(2,nt,2,1,"option",33),e.qZA()()),2&je){const ie=e.oxw().$implicit,Ae=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",Ae.getLocalizedOptions(ie))}}function Tt(je,Le){1&je&&(e.TgZ(0,"div"),e._UZ(1,"textarea"),e.qZA())}function J(je,Le){if(1&je&&(e.TgZ(0,"option",40),e._uU(1),e.qZA()),2&je){const ie=Le.$implicit;e.xp6(1),e.hij(" ",ie," ")}}function Xe(je,Le){1&je&&(e.TgZ(0,"div")(1,"form"),e._UZ(2,"input",31),e.qZA()())}function le(je,Le){if(1&je){const ie=e.EpF();e.TgZ(0,"div")(1,"select",37),e.NdJ("ngModelChange",function(st){e.CHM(ie);const ze=e.oxw().$implicit,_t=e.oxw(2);return e.KtG(_t.mapForCombobox[ze.id]=st)}),e.YNc(2,J,2,1,"option",38),e.TgZ(3,"option",39),e._uU(4),e.ALo(5,"translate"),e.qZA()(),e.YNc(6,Xe,3,0,"div",29),e.qZA()}if(2&je){const ie=e.oxw().$implicit,Ae=e.oxw(2);e.xp6(1),e.Q6J("ngModel",Ae.mapForCombobox[ie.id]),e.xp6(1),e.Q6J("ngForOf",Ae.getLocalizedOptions(ie)),e.xp6(2),e.hij(" ",e.lcZ(5,4,"VO_DETAIL.SETTINGS.APPLICATION_FORM.OTHER_VALUE")," "),e.xp6(2),e.Q6J("ngIf","true"===Ae.mapForCombobox[ie.id])}}function ne(je,Le){if(1&je&&(e.TgZ(0,"div"),e._UZ(1,"input",41),e._uU(2),e.qZA()),2&je){const ie=Le.$implicit;e.xp6(2),e.hij(" ",ie," ")}}function ke(je,Le){if(1&je&&(e.TgZ(0,"div")(1,"form"),e.YNc(2,ne,3,1,"div",33),e.qZA()()),2&je){const ie=e.oxw().$implicit,Ae=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",Ae.getLocalizedOptions(ie))}}function Ee(je,Le){if(1&je&&(e.TgZ(0,"div")(1,"button",42),e._uU(2),e.qZA()()),2&je){const ie=e.oxw().$implicit,Ae=e.oxw(2);e.xp6(2),e.hij(" ",Ae.getLocalizedLabel(ie)," ")}}function ot(je,Le){1&je&&(e.TgZ(0,"div")(1,"select",43)(2,"option",44),e._uU(3),e.ALo(4,"translate"),e.qZA(),e.TgZ(5,"option",45),e._uU(6,"(GMT -12:00) Eniwetok, Kwajalein"),e.qZA(),e.TgZ(7,"option",46),e._uU(8,"(GMT -11:00) Midway Island, Samoa"),e.qZA(),e.TgZ(9,"option",47),e._uU(10,"(GMT -10:00) Hawaii"),e.qZA(),e.TgZ(11,"option",48),e._uU(12,"(GMT -9:30) Taiohae"),e.qZA(),e.TgZ(13,"option",49),e._uU(14,"(GMT -9:00) Alaska"),e.qZA(),e.TgZ(15,"option",50),e._uU(16,"(GMT -8:00) Pacific Time (US & Canada)"),e.qZA(),e.TgZ(17,"option",51),e._uU(18,"(GMT -7:00) Mountain Time (US & Canada)"),e.qZA(),e.TgZ(19,"option",52),e._uU(20," (GMT -6:00) Central Time (US & Canada), Mexico City "),e.qZA(),e.TgZ(21,"option",53),e._uU(22," (GMT -5:00) Eastern Time (US & Canada), Bogota, Lima "),e.qZA(),e.TgZ(23,"option",54),e._uU(24,"(GMT -4:30) Caracas"),e.qZA(),e.TgZ(25,"option",55),e._uU(26,"(GMT -4:00) Atlantic Time (Canada), Caracas, La Paz"),e.qZA(),e.TgZ(27,"option",56),e._uU(28,"(GMT -3:30) Newfoundland"),e.qZA(),e.TgZ(29,"option",57),e._uU(30,"(GMT -3:00) Brazil, Buenos Aires, Georgetown"),e.qZA(),e.TgZ(31,"option",58),e._uU(32,"(GMT -2:00) Mid-Atlantic"),e.qZA(),e.TgZ(33,"option",59),e._uU(34,"(GMT -1:00) Azores, Cape Verde Islands"),e.qZA(),e.TgZ(35,"option",60),e._uU(36," (GMT) Western Europe Time, London, Lisbon, Casablanca "),e.qZA(),e.TgZ(37,"option",61),e._uU(38,"(GMT +1:00) Brussels, Copenhagen, Madrid, Paris"),e.qZA(),e.TgZ(39,"option",62),e._uU(40,"(GMT +2:00) Kaliningrad, South Africa"),e.qZA(),e.TgZ(41,"option",63),e._uU(42,"(GMT +3:00) Baghdad, Riyadh, Moscow, St. Petersburg"),e.qZA(),e.TgZ(43,"option",64),e._uU(44,"(GMT +3:30) Tehran"),e.qZA(),e.TgZ(45,"option",65),e._uU(46,"(GMT +4:00) Abu Dhabi, Muscat, Baku, Tbilisi"),e.qZA(),e.TgZ(47,"option",66),e._uU(48,"(GMT +4:30) Kabul"),e.qZA(),e.TgZ(49,"option",67),e._uU(50," (GMT +5:00) Ekaterinburg, Islamabad, Karachi, Tashkent "),e.qZA(),e.TgZ(51,"option",68),e._uU(52,"(GMT +5:30) Bombay, Calcutta, Madras, New Delhi"),e.qZA(),e.TgZ(53,"option",69),e._uU(54,"(GMT +5:45) Kathmandu, Pokhara"),e.qZA(),e.TgZ(55,"option",70),e._uU(56,"(GMT +6:00) Almaty, Dhaka, Colombo"),e.qZA(),e.TgZ(57,"option",71),e._uU(58,"(GMT +6:30) Yangon, Mandalay"),e.qZA(),e.TgZ(59,"option",72),e._uU(60,"(GMT +7:00) Bangkok, Hanoi, Jakarta"),e.qZA(),e.TgZ(61,"option",73),e._uU(62,"(GMT +8:00) Beijing, Perth, Singapore, Hong Kong"),e.qZA(),e.TgZ(63,"option",74),e._uU(64,"(GMT +8:45) Eucla"),e.qZA(),e.TgZ(65,"option",75),e._uU(66,"(GMT +9:00) Tokyo, Seoul, Osaka, Sapporo, Yakutsk"),e.qZA(),e.TgZ(67,"option",76),e._uU(68,"(GMT +9:30) Adelaide, Darwin"),e.qZA(),e.TgZ(69,"option",77),e._uU(70,"(GMT +10:00) Eastern Australia, Guam, Vladivostok"),e.qZA(),e.TgZ(71,"option",78),e._uU(72,"(GMT +10:30) Lord Howe Island"),e.qZA(),e.TgZ(73,"option",79),e._uU(74,"(GMT +11:00) Magadan, Solomon Islands, New Caledonia"),e.qZA(),e.TgZ(75,"option",80),e._uU(76,"(GMT +11:30) Norfolk Island"),e.qZA(),e.TgZ(77,"option",81),e._uU(78,"(GMT +12:00) Auckland, Wellington, Fiji, Kamchatka"),e.qZA(),e.TgZ(79,"option",82),e._uU(80,"(GMT +12:45) Chatham Islands"),e.qZA(),e.TgZ(81,"option",83),e._uU(82,"(GMT +13:00) Apia, Nukualofa"),e.qZA(),e.TgZ(83,"option",84),e._uU(84,"(GMT +14:00) Line Islands, Tokelau"),e.qZA()()()),2&je&&(e.xp6(3),e.hij(" ",e.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.NOT_SELECTED")," "))}function it(je,Le){if(1&je&&(e.TgZ(0,"div")(1,"button",42),e._uU(2),e.qZA()()),2&je){const ie=e.oxw().$implicit,Ae=e.oxw(2);e.xp6(2),e.hij(" ",Ae.getLocalizedLabel(ie)," ")}}function oe(je,Le){1&je&&(e.TgZ(0,"div")(1,"form"),e._UZ(2,"input",41),e._uU(3," example group1 "),e._UZ(4,"br")(5,"input",41),e._uU(6," example group2 "),e._UZ(7,"br")(8,"input",41),e._uU(9," example group3 "),e.qZA()())}const X=function(){return["Example 1","Example 2"]},r=function(je){return{id:0,beanName:"Attribute",namespace:"",value:je}};function s(je,Le){1&je&&(e.TgZ(0,"div"),e._UZ(1,"perun-web-apps-attribute-value-list",85),e.qZA()),2&je&&(e.xp6(1),e.Q6J("attribute",e.VKq(2,r,e.DdM(1,X))))}const _=function(){return{key1:"value 1",key2:"value 2"}};function c(je,Le){1&je&&(e.TgZ(0,"div"),e._UZ(1,"perun-web-apps-attribute-value-map",85),e.qZA()),2&je&&(e.xp6(1),e.Q6J("attribute",e.VKq(2,r,e.DdM(1,_))))}function a(je,Le){if(1&je&&(e.TgZ(0,"td",25),e.YNc(1,Me,3,0,"div",29),e.YNc(2,Y,5,0,"div",29),e.YNc(3,De,5,4,"div",29),e.YNc(4,We,2,1,"div",29),e.YNc(5,Pe,3,3,"div",29),e.YNc(6,Ye,3,1,"div",29),e.YNc(7,Tt,2,0,"div",29),e.YNc(8,le,7,6,"div",29),e.YNc(9,ke,3,1,"div",29),e.YNc(10,Ee,3,1,"div",29),e.YNc(11,ot,85,3,"div",29),e.YNc(12,it,3,1,"div",29),e.YNc(13,oe,10,0,"div",29),e.YNc(14,s,2,4,"div",29),e.YNc(15,c,2,4,"div",29),e.qZA()),2&je){const ie=Le.$implicit;e.xp6(1),e.Q6J("ngIf","TEXTFIELD"===ie.type||"VALIDATED_EMAIL"===ie.type||"USERNAME"===ie.type),e.xp6(1),e.Q6J("ngIf","PASSWORD"===ie.type),e.xp6(1),e.Q6J("ngIf","RADIO"===ie.type),e.xp6(1),e.Q6J("ngIf","HEADING"===ie.type),e.xp6(1),e.Q6J("ngIf","HTML_COMMENT"===ie.type),e.xp6(1),e.Q6J("ngIf","SELECTIONBOX"===ie.type),e.xp6(1),e.Q6J("ngIf","TEXTAREA"===ie.type),e.xp6(1),e.Q6J("ngIf","COMBOBOX"===ie.type),e.xp6(1),e.Q6J("ngIf","CHECKBOX"===ie.type),e.xp6(1),e.Q6J("ngIf","SUBMIT_BUTTON"===ie.type),e.xp6(1),e.Q6J("ngIf","TIMEZONE"===ie.type),e.xp6(1),e.Q6J("ngIf","AUTO_SUBMIT_BUTTON"===ie.type),e.xp6(1),e.Q6J("ngIf","EMBEDDED_GROUP_APPLICATION"===ie.type),e.xp6(1),e.Q6J("ngIf","LIST_INPUT_BOX"===ie.type),e.xp6(1),e.Q6J("ngIf","MAP_INPUT_BOX"===ie.type)}}function i(je,Le){1&je&&e._UZ(0,"th",24)}function t(je,Le){if(1&je){const ie=e.EpF();e.TgZ(0,"button",87),e.NdJ("click",function(){e.CHM(ie);const st=e.oxw(3);return e.KtG(st.openManagingGroups())}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon"),e._uU(3,"supervised_user_circle"),e.qZA()()}2&je&&e.s9C("matTooltip",e.lcZ(1,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS"))}function n(je,Le){if(1&je&&(e.TgZ(0,"td",25),e.YNc(1,t,4,3,"button",86),e.qZA()),2&je){const ie=Le.$implicit;e.xp6(1),e.Q6J("ngIf","EMBEDDED_GROUP_APPLICATION"===ie.type&&!ie.forDelete)}}function o(je,Le){1&je&&e._UZ(0,"th",24)}function l(je,Le){if(1&je){const ie=e.EpF();e.TgZ(0,"button",90),e.NdJ("click",function(){e.CHM(ie);const st=e.oxw().$implicit,ze=e.oxw(2);return e.KtG(ze.edit(st))}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon"),e._uU(3,"edit"),e.qZA()()}2&je&&e.s9C("matTooltip",e.lcZ(1,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.EDIT"))}function d(je,Le){1&je&&(e.TgZ(0,"div",91),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&je&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MARK_DELETE")," "))}function y(je,Le){if(1&je&&(e.TgZ(0,"td",25),e.YNc(1,l,4,3,"button",88),e.YNc(2,d,3,3,"div",89),e.qZA()),2&je){const ie=Le.$implicit;e.xp6(1),e.Q6J("ngIf",!ie.forDelete),e.xp6(1),e.Q6J("ngIf",ie.forDelete)}}function k(je,Le){1&je&&e._UZ(0,"th",24)}function Ie(je,Le){if(1&je){const ie=e.EpF();e.TgZ(0,"button",93),e.NdJ("click",function(){e.CHM(ie);const st=e.oxw().$implicit,ze=e.oxw(2);return e.KtG(ze.delete(st))}),e.ALo(1,"multiWordDataCy"),e.ALo(2,"translate"),e.TgZ(3,"mat-icon"),e._uU(4,"delete"),e.qZA()()}if(2&je){const ie=e.oxw().$implicit;e.Q2q("data-cy","",e.lcZ(1,2,ie.shortname),"-delete"),e.s9C("matTooltip",e.lcZ(2,4,"VO_DETAIL.SETTINGS.APPLICATION_FORM.DELETE"))}}function tt(je,Le){if(1&je){const ie=e.EpF();e.TgZ(0,"button",87),e.NdJ("click",function(){e.CHM(ie);const st=e.oxw().$implicit,ze=e.oxw(2);return e.KtG(ze.restore(st))}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon"),e._uU(3,"settings_backup_restore"),e.qZA()()}2&je&&e.s9C("matTooltip",e.lcZ(1,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.REVERT_DELETE"))}function ct(je,Le){if(1&je&&(e.TgZ(0,"td",25),e.YNc(1,Ie,5,6,"button",92),e.YNc(2,tt,4,3,"button",86),e.qZA()),2&je){const ie=Le.$implicit;e.xp6(1),e.Q6J("ngIf",!ie.forDelete),e.xp6(1),e.Q6J("ngIf",ie.forDelete)}}function Ue(je,Le){1&je&&e._UZ(0,"tr",94)}function at(je,Le){if(1&je&&e._UZ(0,"tr",95),2&je){const ie=Le.$implicit,Ae=e.oxw(2);e.ekj("make-green",ie.id<=0)("make-red",ie.forDelete)("make-yellow",-1!==Ae.itemsChanged.indexOf(ie.id)&&!ie.forDelete&&ie.id>0),e.Q6J("cdkDragData",ie)}}function fe(je,Le){if(1&je){const ie=e.EpF();e.TgZ(0,"div",4)(1,"div",5)(2,"div",6)(3,"table",7,8),e.NdJ("cdkDropListDropped",function(st){e.CHM(ie);const ze=e.oxw();return e.KtG(ze.drop(st))}),e.ynx(5,9),e.YNc(6,Q,1,0,"th",10),e.YNc(7,ae,4,0,"td",11),e.BQk(),e.ynx(8,12),e.YNc(9,xe,3,3,"th",10),e.YNc(10,ge,3,5,"td",11),e.BQk(),e.ynx(11,13),e.YNc(12,Se,3,3,"th",10),e.YNc(13,Be,3,3,"td",11),e.BQk(),e.ynx(14,14),e.YNc(15,pe,3,3,"th",15),e.YNc(16,Ce,2,1,"td",16),e.BQk(),e.ynx(17,17),e.YNc(18,de,3,3,"th",15),e.YNc(19,B,2,1,"td",16),e.BQk(),e.ynx(20,18),e.YNc(21,N,3,3,"th",10),e.YNc(22,a,16,15,"td",11),e.BQk(),e.ynx(23,19),e.YNc(24,i,1,0,"th",10),e.YNc(25,n,2,1,"td",11),e.BQk(),e.ynx(26,20),e.YNc(27,o,1,0,"th",10),e.YNc(28,y,3,2,"td",11),e.BQk(),e.ynx(29,21),e.YNc(30,k,1,0,"th",10),e.YNc(31,ct,3,2,"td",11),e.BQk(),e.YNc(32,Ue,1,0,"tr",22),e.YNc(33,at,1,7,"tr",23),e.qZA()()()()}if(2&je){const ie=e.oxw();e.xp6(3),e.Q6J("cdkDropListDisabled",ie.dragDisabled)("dataSource",ie.dataSource),e.xp6(29),e.Q6J("matHeaderRowDef",ie.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",ie.displayedColumns)}}function Oe(je,Le){1&je&&(e.TgZ(0,"perun-web-apps-alert",96),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&je&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.NO_APPLICATION_FORM"),"\n"))}let Ke=(()=>{class je{constructor(ie,Ae,st,ze){this.dialog=ie,this.notificator=Ae,this.router=st,this.translate=ze,this.applicationFormItems=[],this.displayedColumns=["drag","shortname","type","disabled","hidden","preview","managegroups","edit","delete"],this.applicationFormItemsChange=new e.vpe,this.itemsChanged=[],this.dataSource=this.applicationFormItems,this.mapForCombobox=new Map,this.dragDisabled=!0}ngOnInit(){this.ifEmpty=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HIDDEN_ICON.IF_EMPTY"),this.ifPrefilled=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HIDDEN_ICON.IF_PREFILLED"),this.alwaysDisabled=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HIDDEN_ICON.ALWAYS_DISABLED_HINT"),this.alwaysHidden=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HIDDEN_ICON.ALWAYS_HIDDEN_HINT"),this.isDisabledIf=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HIDDEN_ICON.DISABLED_IF_HINT"),this.isHiddenIf=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HIDDEN_ICON.HIDDEN_IF_HINT"),this.isEmpty=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HIDDEN_ICON.IS_EMPTY_HINT"),this.isPrefilled=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HIDDEN_ICON.IS_PREFILLED_HINT")}ngOnChanges(){this.dataSource=this.applicationFormItems,this.refreshApplicationForm&&(this.itemsChanged=[])}disabledHiddenDependency(ie,Ae,st){let ze="";if("IF_EMPTY"===Ae||"IF_PREFILLED"===Ae){const _t=null===st?"":this.applicationFormItems.find(me=>me.id===st).shortname;ze="IF_EMPTY"===Ae?`(${this.ifEmpty} ${_t})`:`(${this.ifPrefilled} ${_t})`}return ze}disabledTooltip(ie){let Ae;switch(ie.disabled){case"ALWAYS":return this.alwaysDisabled;case"IF_EMPTY":return Ae=null===ie.disabledDependencyItemId?"":this.applicationFormItems.find(st=>st.id===ie.disabledDependencyItemId).shortname,`${this.isDisabledIf} ${Ae} ${this.isEmpty}`;case"IF_PREFILLED":return Ae=null===ie.disabledDependencyItemId?"":this.applicationFormItems.find(st=>st.id===ie.disabledDependencyItemId).shortname,`${this.isDisabledIf} ${Ae} ${this.isPrefilled}`}}hiddenTooltip(ie){let Ae;switch(ie.hidden){case"ALWAYS":return this.alwaysHidden;case"IF_EMPTY":return Ae=null===ie.hiddenDependencyItemId?"":this.applicationFormItems.find(st=>st.id===ie.hiddenDependencyItemId).shortname,`${this.isHiddenIf} ${Ae} ${this.isEmpty}`;case"IF_PREFILLED":return Ae=null===ie.hiddenDependencyItemId?"":this.applicationFormItems.find(st=>st.id===ie.hiddenDependencyItemId).shortname,`${this.isHiddenIf} ${Ae} ${this.isPrefilled}`}}edit(ie){const Ae=(0,S.kZ)();Ae.width="600px",Ae.height="600px",Ae.data={voId:this.applicationForm.vo.id,group:this.applicationForm.group,applicationFormItem:ie,theme:this.theme,allItems:this.applicationFormItems},this.dialog.open(E._,Ae).afterClosed().subscribe(ze=>{ze&&(this.itemsChanged.push(ie.id),this.applicationFormItemsChange.emit())})}delete(ie){const Ae=(0,S.kZ)();Ae.width="500px",this.dialog.open(g,Ae).afterClosed().subscribe(ze=>{ze&&(ie.forDelete=!0,0===ie.id&&(this.applicationFormItems.splice(this.applicationFormItems.indexOf(ie),1),this.table.renderRows()),this.applicationFormItemsChange.emit())})}drop(ie){this.dragDisabled=!0;const Ae=this.applicationFormItems.indexOf(ie.item.data);(0,m.bA)(this.applicationFormItems,Ae,ie.currentIndex),this.itemsChanged.push(this.applicationFormItems[ie.currentIndex].id),this.applicationFormItemsChange.emit(),this.table.renderRows()}getLocalizedOptions(ie){if(ie.i18n[this.translate.getDefaultLang()]){const Ae=ie.i18n[this.translate.getDefaultLang()].options;if(null!==Ae&&""!==Ae){const st=[];for(const ze of Ae.split("|"))st.push(ze.split("#")[1]);return st}}return[]}getLocalizedLabel(ie){return ie.i18n[this.translate.getDefaultLang()]?ie.i18n[this.translate.getDefaultLang()].label:ie.shortname}restore(ie){ie.forDelete=!1}openManagingGroups(){this.router.navigate(["/organizations",this.applicationForm.vo.id,"settings","applicationForm","manageGroups"],{queryParamsHandling:"preserve"})}}return je.\u0275fac=function(ie){return new(ie||je)(e.Y36(A.uw),e.Y36(T.V6),e.Y36(R.F0),e.Y36(p.sK))},je.\u0275cmp=e.Xpm({type:je,selectors:[["app-application-form-list"]],viewQuery:function(ie,Ae){if(1&ie&&e.Gf(L,5),2&ie){let st;e.iGM(st=e.CRH())&&(Ae.table=st.first)}},inputs:{loading:"loading",applicationForm:"applicationForm",applicationFormItems:"applicationFormItems",theme:"theme",displayedColumns:"displayedColumns",refreshApplicationForm:"refreshApplicationForm"},outputs:{applicationFormItemsChange:"applicationFormItemsChange"},features:[e.TTD],decls:3,vars:3,consts:[["class","ml-auto mr-auto",4,"ngIf"],["class","card mt-2",4,"ngIf"],["alert_type","warn",4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"card","mt-2"],[1,"card-body","table-theme"],[1,"overflow-auto"],["cdkDropList","","cdkDropListData","dataSource","mat-table","",1,"w-100",3,"cdkDropListDisabled","dataSource","cdkDropListDropped"],["table",""],["matColumnDef","drag"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","shortname"],["matColumnDef","type"],["matColumnDef","disabled"],["class","center","mat-header-cell","",4,"matHeaderCellDef"],["class","center","mat-cell","",4,"matCellDef"],["matColumnDef","hidden"],["matColumnDef","preview"],["matColumnDef","managegroups"],["matColumnDef","edit"],["matColumnDef","delete"],["mat-header-row","",4,"matHeaderRowDef"],["cdkDrag","","mat-row","",3,"cdkDragData","make-green","make-red","make-yellow",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","",3,"mousedown"],["mat-header-cell","",1,"center"],["mat-cell","",1,"center"],[4,"ngIf"],[1,"pointer",3,"matTooltip"],["type","text"],["type","text",1,"mb-1"],[4,"ngFor","ngForOf"],["type","reset",3,"value"],["name","temp","type","radio"],[3,"innerHTML"],[3,"ngModel","ngModelChange"],["selected","","value","false",4,"ngFor","ngForOf"],["value","true"],["selected","","value","false"],["type","checkbox"],["color","accent","mat-flat-button",""],["id","timezone-offset","name","timezone_offset",1,"span5"],["selected","selected","value","-12:00"],["value","-12:00"],["value","-11:00"],["value","-10:00"],["value","-09:50"],["value","-09:00"],["value","-08:00"],["value","-07:00"],["value","-06:00"],["value","-05:00"],["value","-04:50"],["value","-04:00"],["value","-03:50"],["value","-03:00"],["value","-02:00"],["value","-01:00"],["value","+00:00"],["value","+01:00"],["value","+02:00"],["value","+03:00"],["value","+03:50"],["value","+04:00"],["value","+04:50"],["value","+05:00"],["value","+05:50"],["value","+05:75"],["value","+06:00"],["value","+06:50"],["value","+07:00"],["value","+08:00"],["value","+08:75"],["value","+09:00"],["value","+09:50"],["value","+10:00"],["value","+10:50"],["value","+11:00"],["value","+11:50"],["value","+12:00"],["value","+12:75"],["value","+13:00"],["value","+14:00"],[3,"attribute"],["mat-icon-button","",3,"matTooltip","click",4,"ngIf"],["mat-icon-button","",3,"matTooltip","click"],["class","ml-auto","mat-icon-button","",3,"matTooltip","click",4,"ngIf"],["class","font-weight-bold",4,"ngIf"],["mat-icon-button","",1,"ml-auto",3,"matTooltip","click"],[1,"font-weight-bold"],["color","warn","mat-icon-button","",3,"matTooltip","click",4,"ngIf"],["color","warn","mat-icon-button","",3,"matTooltip","click"],["mat-header-row",""],["cdkDrag","","mat-row","",3,"cdkDragData"],["alert_type","warn"]],template:function(ie,Ae){1&ie&&(e.YNc(0,V,1,0,"mat-spinner",0),e.YNc(1,fe,34,4,"div",1),e.YNc(2,Oe,3,3,"perun-web-apps-alert",2)),2&ie&&(e.Q6J("ngIf",Ae.loading),e.xp6(1),e.Q6J("ngIf",0!==Ae.applicationFormItems.length&&!Ae.loading),e.xp6(1),e.Q6J("ngIf",0===Ae.applicationFormItems.length&&!Ae.loading))},dependencies:[v.sg,v.O5,D._Y,D.YN,D.Kr,D.EJ,D.JJ,D.JL,D.On,D.F,F.Hw,z.BZ,z.fO,z.as,z.w1,z.Dz,z.nj,z.ge,z.ev,z.XQ,z.Gk,w.lW,$.Ou,G.gM,m.Wj,m.Zt,q.w,_e.H,ce.$,p.X$,Te.c,b.A,H.R],styles:[".cdk-drag-preview[_ngcontent-%COMP%]{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}.cdk-drop-list-dragging[_ngcontent-%COMP%] .mat-row[_ngcontent-%COMP%]:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}.movable-row[_ngcontent-%COMP%]{cursor:move}.make-red[_ngcontent-%COMP%]{background-color:#ffcdd2}.make-green[_ngcontent-%COMP%]{background-color:#c8e6c9}.make-yellow[_ngcontent-%COMP%]{background-color:#fff9c4}.center[_ngcontent-%COMP%]{text-align:center}.pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),je})()},99168:(Qe,he,u)=>{"use strict";u.d(he,{S:()=>y});var e=u(32105),m=u(9244),A=u(96308),w=u(69723),p=u(56451),g=u(18505),T=u(36895),E=u(21029),S=u(94650),R=u(10036),v=u(65412),D=u(94364),F=u(30671),z=u(51572),$=u(98380),G=u(94391),q=u(18750),_e=u(97392),ce=u(10266);function Te(k,Ie){1&k&&(S.TgZ(0,"div")(1,"mat-icon",1),S._uU(2,"arrow_right_alt"),S.qZA()())}function b(k,Ie){1&k&&(S.TgZ(0,"div")(1,"mat-icon",2),S._uU(2,"restore"),S.qZA()())}function H(k,Ie){1&k&&(S.TgZ(0,"div")(1,"mat-icon",3),S._uU(2,"nat"),S.qZA()())}let L=(()=>{class k{}return k.\u0275fac=function(tt){return new(tt||k)},k.\u0275cmp=S.Xpm({type:k,selectors:[["app-application-type-icon"]],inputs:{applicationType:"applicationType"},decls:4,vars:3,consts:[[4,"ngIf"],["matTooltip","Initial","matTooltipPosition","above"],["matTooltip","Extension","matTooltipPosition","above"],["matTooltip","Embedded","matTooltipPosition","above"]],template:function(tt,ct){1&tt&&(S.TgZ(0,"div"),S.YNc(1,Te,3,0,"div",0),S.YNc(2,b,3,0,"div",0),S.YNc(3,H,3,0,"div",0),S.qZA()),2&tt&&(S.xp6(1),S.Q6J("ngIf","INITIAL"===ct.applicationType),S.xp6(1),S.Q6J("ngIf","EXTENSION"===ct.applicationType),S.xp6(1),S.Q6J("ngIf","EMBEDDED"===ct.applicationType))},dependencies:[T.O5,_e.Hw,ce.gM]}),k})();var V=u(89383),Q=u(43157),ae=u(31359),xe=u(64597);let ge=(()=>{class k{transform(tt,ct,Ue,at){return ct?null:Ue?["/organizations",String(tt.vo.id),"groups",String(Ue.id),"applications",String(tt.id)]:at?["/organizations",String(tt.vo.id),"members",String(at.id),"applications",String(tt.id)]:["/organizations",String(tt.vo.id),"applications",String(tt.id)]}}return k.\u0275fac=function(tt){return new(tt||k)},k.\u0275pipe=S.Yjl({name:"selectApplicationLink",type:k,pure:!0}),k})();function Se(k,Ie){1&k&&(S.TgZ(0,"div",26),S._UZ(1,"mat-spinner",27),S.qZA())}function Be(k,Ie){1&k&&(S.TgZ(0,"th",28),S._uU(1),S.ALo(2,"translate"),S.qZA()),2&k&&(S.xp6(1),S.hij(" ",S.lcZ(2,1,"APPLICATIONS_LIST.ID")," "))}function pe(k,Ie){if(1&k&&(S.TgZ(0,"td",29),S._uU(1),S.qZA()),2&k){const tt=Ie.$implicit;S.xp6(1),S.Oqu(tt.id)}}function $e(k,Ie){1&k&&(S.TgZ(0,"th",28),S._uU(1),S.ALo(2,"translate"),S.qZA()),2&k&&(S.xp6(1),S.hij(" ",S.lcZ(2,1,"APPLICATIONS_LIST.CREATED_DATE")," "))}function Ce(k,Ie){if(1&k&&(S.TgZ(0,"td",29),S._uU(1),S.ALo(2,"date"),S.qZA()),2&k){const tt=Ie.$implicit;S.xp6(1),S.Oqu(S.xi3(2,1,tt.createdAt,"d.M.y"))}}function de(k,Ie){1&k&&(S.TgZ(0,"th",30),S._uU(1),S.ALo(2,"translate"),S.qZA()),2&k&&(S.xp6(1),S.Oqu(S.lcZ(2,1,"APPLICATIONS_LIST.VO_ID")))}function re(k,Ie){if(1&k&&(S.TgZ(0,"td",29),S._uU(1),S.qZA()),2&k){const tt=Ie.$implicit;S.xp6(1),S.Oqu(tt.vo.id)}}function B(k,Ie){1&k&&(S.TgZ(0,"th",30),S._uU(1),S.ALo(2,"translate"),S.qZA()),2&k&&(S.xp6(1),S.Oqu(S.lcZ(2,1,"APPLICATIONS_LIST.VO_NAME")))}function N(k,Ie){if(1&k&&(S.TgZ(0,"td",29),S._uU(1),S.qZA()),2&k){const tt=Ie.$implicit;S.xp6(1),S.Oqu(tt.vo.name)}}function Me(k,Ie){1&k&&(S.TgZ(0,"th",30),S._uU(1),S.ALo(2,"translate"),S.qZA()),2&k&&(S.xp6(1),S.Oqu(S.lcZ(2,1,"APPLICATIONS_LIST.GROUP_ID")))}function Y(k,Ie){if(1&k&&(S.TgZ(0,"td",29),S._uU(1),S.qZA()),2&k){const tt=Ie.$implicit;S.xp6(1),S.hij(" ",tt.group?tt.group.id:""," ")}}function be(k,Ie){1&k&&(S.TgZ(0,"th",30),S._uU(1),S.ALo(2,"translate"),S.qZA()),2&k&&(S.xp6(1),S.Oqu(S.lcZ(2,1,"APPLICATIONS_LIST.GROUP_NAME")))}function De(k,Ie){if(1&k&&(S.TgZ(0,"td",29),S.ALo(1,"multiWordDataCy"),S._uU(2),S.qZA()),2&k){const tt=Ie.$implicit;S.Q2q("data-cy","",tt.group?tt.group.name:S.lcZ(1,2,"no-group"),"-groupname-td"),S.xp6(2),S.hij(" ",tt.group?tt.group.name:""," ")}}function We(k,Ie){1&k&&(S.TgZ(0,"th",28),S._uU(1),S.ALo(2,"translate"),S.qZA()),2&k&&(S.xp6(1),S.hij(" ",S.lcZ(2,1,"APPLICATIONS_LIST.TYPE")," "))}function Pe(k,Ie){if(1&k&&(S.TgZ(0,"td",29),S._UZ(1,"app-application-type-icon",31),S.qZA()),2&k){const tt=Ie.$implicit;S.xp6(1),S.Q6J("applicationType",tt.type)}}function nt(k,Ie){1&k&&(S.TgZ(0,"th",28),S._uU(1),S.ALo(2,"translate"),S.qZA()),2&k&&(S.xp6(1),S.hij(" ",S.lcZ(2,1,"APPLICATIONS_LIST.STATE")," "))}function Ye(k,Ie){if(1&k&&(S.TgZ(0,"td",29),S._UZ(1,"span",32),S.ALo(2,"applicationState"),S.qZA()),2&k){const tt=Ie.$implicit;S.xp6(1),S.Q6J("outerHTML",S.lcZ(2,1,tt.state),S.oJD)}}function Tt(k,Ie){1&k&&(S.TgZ(0,"th",30),S._uU(1),S.ALo(2,"translate"),S.qZA()),2&k&&(S.xp6(1),S.Oqu(S.lcZ(2,1,"APPLICATIONS_LIST.EXTSOURCENAME")))}function J(k,Ie){if(1&k&&(S.TgZ(0,"td",29),S._uU(1),S.qZA()),2&k){const tt=Ie.$implicit;S.xp6(1),S.Oqu(tt.extSourceName)}}function Xe(k,Ie){1&k&&(S.TgZ(0,"th",30),S._uU(1),S.ALo(2,"translate"),S.qZA()),2&k&&(S.xp6(1),S.Oqu(S.lcZ(2,1,"APPLICATIONS_LIST.EXTSOURCETYPE")))}function le(k,Ie){if(1&k&&(S.TgZ(0,"td",29),S._uU(1),S.qZA()),2&k){const tt=Ie.$implicit;S.xp6(1),S.Oqu(tt.extSourceType)}}function ne(k,Ie){1&k&&(S.TgZ(0,"th",28),S._uU(1),S.ALo(2,"translate"),S.qZA()),2&k&&(S.xp6(1),S.hij(" ",S.lcZ(2,1,"APPLICATIONS_LIST.USER")," "))}function ke(k,Ie){if(1&k&&(S.TgZ(0,"div"),S._uU(1),S.qZA()),2&k){const tt=S.oxw().$implicit;S.xp6(1),S.hij(" ",tt.createdBy.slice(tt.createdBy.lastIndexOf("=")+1,tt.createdBy.length)," ")}}function Ee(k,Ie){if(1&k&&(S._uU(0),S.ALo(1,"userFullName")),2&k){const tt=S.oxw().$implicit;S.hij(" ",S.lcZ(1,1,tt.user)," ")}}function ot(k,Ie){if(1&k&&(S.TgZ(0,"td",29),S.YNc(1,ke,2,1,"div",33),S.YNc(2,Ee,2,3,"ng-template",null,34,S.W1O),S.qZA()),2&k){const tt=Ie.$implicit,ct=S.MAs(3);S.xp6(1),S.Q6J("ngIf",null===tt.user)("ngIfElse",ct)}}function it(k,Ie){1&k&&(S.TgZ(0,"th",30),S._uU(1),S.ALo(2,"translate"),S.qZA()),2&k&&(S.xp6(1),S.Oqu(S.lcZ(2,1,"APPLICATIONS_LIST.CREATED_BY")))}function oe(k,Ie){if(1&k&&(S.TgZ(0,"td",29),S._uU(1),S.qZA()),2&k){const tt=Ie.$implicit;S.Q2q("data-cy","",tt.createdBy,"-createdBy"),S.xp6(1),S.hij(" ",tt.createdBy.slice(tt.createdBy.lastIndexOf("=")+1,tt.createdBy.length)," ")}}function X(k,Ie){1&k&&(S.TgZ(0,"th",28),S._uU(1),S.ALo(2,"translate"),S.qZA()),2&k&&(S.xp6(1),S.hij(" ",S.lcZ(2,1,"APPLICATIONS_LIST.MODIFIED_BY")," "))}function r(k,Ie){if(1&k&&(S.TgZ(0,"td",29),S._uU(1),S.qZA()),2&k){const tt=Ie.$implicit,ct=S.oxw();S.xp6(1),S.Oqu(ct.getFriendlyName(tt.modifiedBy))}}function s(k,Ie){1&k&&(S.TgZ(0,"th",30),S._uU(1),S.ALo(2,"translate"),S.qZA()),2&k&&(S.xp6(1),S.Oqu(S.lcZ(2,1,"APPLICATIONS_LIST.MODIFIED_AT")))}function _(k,Ie){if(1&k&&(S.TgZ(0,"td",29),S._uU(1),S.ALo(2,"date"),S.qZA()),2&k){const tt=Ie.$implicit;S.xp6(1),S.Oqu(S.xi3(2,1,tt.modifiedAt,"d.M.y"))}}function c(k,Ie){1&k&&(S.TgZ(0,"th",30),S._uU(1),S.ALo(2,"translate"),S.qZA()),2&k&&(S.xp6(1),S.Oqu(S.lcZ(2,1,"APPLICATIONS_LIST.FEDINFO")))}function a(k,Ie){if(1&k&&(S.TgZ(0,"td",29),S._uU(1),S.qZA()),2&k){const tt=Ie.$implicit;S.xp6(1),S.Oqu(tt.fedInfo)}}function i(k,Ie){if(1&k&&(S.TgZ(0,"th",30),S._uU(1),S.qZA()),2&k){const tt=S.oxw().$implicit;S.xp6(1),S.Oqu(tt)}}function t(k,Ie){if(1&k&&(S.TgZ(0,"td",29),S._uU(1),S.qZA()),2&k){const tt=Ie.$implicit,ct=S.oxw().$implicit,Ue=S.oxw();S.xp6(1),S.hij(" ",Ue.getValue(tt.formData,ct)," ")}}function n(k,Ie){1&k&&(S.ynx(0,35),S.YNc(1,i,2,1,"th",9),S.YNc(2,t,2,1,"td",6),S.BQk()),2&k&&S.s9C("matColumnDef",Ie.$implicit)}function o(k,Ie){1&k&&S._UZ(0,"tr",36)}function l(k,Ie){if(1&k&&(S._UZ(0,"tr",37),S.ALo(1,"selectApplicationLink"),S.ALo(2,"selectApplicationLink")),2&k){const tt=Ie.$implicit,ct=S.oxw();S.ekj("cursor-pointer",!ct.disableRouting),S.Q6J("perunWebAppsMiddleClickRouterLink",S.gM2(1,4,tt,ct.disableRouting,ct.group,ct.member))("routerLink",S.gM2(2,9,tt,ct.disableRouting,ct.group,ct.member))}}function d(k,Ie){1&k&&(S.TgZ(0,"perun-web-apps-alert",38),S._uU(1),S.ALo(2,"translate"),S.qZA()),2&k&&(S.Q6J("alert_type","warn"),S.xp6(1),S.hij(" ",S.lcZ(2,2,"VO_DETAIL.APPLICATION.NO_APPLICATION_FOUND"),"\n"))}let y=(()=>{class k{constructor(tt,ct,Ue,at){this.authResolver=tt,this.tableConfigService=ct,this.dynamicPaginatingService=Ue,this.dialog=at,this.displayedColumns=[],this.disableRouting=!1,this.searchString="",this.dateTo=new Date,this.dateFrom=this.yearAgo(),this.refreshTable=!1,this.parsedColumns=[],this.pageSizeOptions=m.f7}ngAfterViewInit(){this.sort.sortChange.subscribe(()=>this.child.paginator.pageIndex=0),(0,p.T)(this.sort.sortChange,this.child.paginator.page).pipe((0,g.b)(()=>this.loadApplicationsPage())).subscribe()}ngOnInit(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(tt=>"id"!==tt)),this.dataSource=new w.Hy(this.dynamicPaginatingService,this.authResolver),this.dataSource.loadApplications(this.tableConfigService.getTablePageSize(this.tableId),0,"DESCENDING",this.getSortDataColumn(),this.searchString,this.includeGroupApps,this.states,this.dateToString(this.dateFrom),this.dateToString(this.dateTo),this.member?.userId??null,this.group?.id??null,this.getVoId()),this.dataSource.loading$.subscribe(tt=>{if(tt||!this.displayedColumns.includes("fedInfo"))return;this.displayedColumns=this.displayedColumns.filter(Ue=>!this.parsedColumns.includes(Ue)),this.parsedColumns=[];const ct=this.dataSource.getData()[0];ct&&this.parseColumns(ct.formData)})}ngOnChanges(){this.refreshTable=!1,this.dataSource&&(this.child.paginator.pageIndex=0,this.loadApplicationsPage())}loadApplicationsPage(){this.dataSource.loadApplications(this.child.paginator.pageSize,this.child.paginator.pageIndex,"asc"===this.sort.direction?"ASCENDING":"DESCENDING",this.getSortDataColumn(),this.searchString,this.includeGroupApps,this.states,this.dateToString(this.dateFrom),this.dateToString(this.dateTo),this.member?.userId??null,this.group?.id??null,this.getVoId(),!0)}exportDisplayedData(tt){(0,m.O6)((0,m.Xn)(this.dataSource.getData(),this.displayedColumns,this.getExportDataForColumn.bind(this)),tt)}exportAllData(tt){const ct="asc"===this.sort.direction?"ASCENDING":"DESCENDING",Ue=(0,m.kZ)();Ue.width="300px";const at=this.dialog.open(E.QQ,Ue);this.dataSource.getAllApplications(this.child.paginator.length,ct,this.getSortDataColumn(),this.searchString,this.includeGroupApps,this.states,this.dateToString(this.dateFrom),this.dateToString(this.dateTo),this.member?.userId??null,this.group?.id??null,this.getVoId(),!0).subscribe(fe=>{at.close(),(0,m.O6)((0,m.Xn)(fe,this.displayedColumns,this.getExportDataForColumn.bind(this)),tt)})}getExportDataForColumn(tt,ct){switch(ct){case"id":return tt.id.toString();case"voId":return tt.vo.id.toString();case"voName":return tt.vo.name;case"groupId":return tt.group?.id.toString()??"";case"groupName":return tt.group?.name??"";case"type":return tt.type;case"fedInfo":return tt.fedInfo;case"formData":return this.stringify(tt.formData);case"state":return tt.state;case"extSourceName":return tt.extSourceName;case"extSourceType":return tt.extSourceType;case"user":return tt.user?(0,m.bD)(tt.user):"";case"createdBy":return tt.createdBy;case"createdAt":return tt.createdAt;case"modifiedBy":return tt.modifiedBy;case"modifiedAt":return tt.modifiedAt;default:return tt[ct]}}getSortDataColumn(){if(!this.sort)return e.sY.DATE_CREATED;switch(this.sort.active){case"id":return e.sY.ID;case"createdAt":default:return e.sY.DATE_CREATED;case"type":return e.sY.TYPE;case"state":return e.sY.STATE;case"user":return e.sY.SUBMITTER;case"groupName":return e.sY.GROUP_NAME;case"modifiedBy":return e.sY.MODIFIED_BY}}getFriendlyName(tt){const ct=tt.lastIndexOf("/CN=");if(-1!==ct){const Ue=tt.slice(ct+4,tt.length).replace("/unstructuredName="," ");return-1!==Ue.lastIndexOf("\\")?tt.slice(tt.lastIndexOf("=")+1,tt.length):Ue}return tt}yearAgo(){const tt=new Date;return tt.setDate(tt.getDate()-365),tt}dateToString(tt){return(0,T.p6)(tt,"yyyy-MM-dd","en-GB")}getVoId(){return this.vo?this.vo.id:this.group?this.group.voId:this.member?this.member.voId:void 0}stringify(tt){const ct=at=>Object.entries(at).reduce((fe,[Oe,Ke])=>fe[Oe]instanceof Object?fe[Oe]=ct(fe[Oe]):(null==Ke||"null"===Ke||0===Ke.length||(fe[Oe]=Ke),fe),{});let Ue=JSON.stringify(ct(tt));return Ue=Ue.replace("{","["),Ue=Ue.replace("}","]"),Ue}getFormDataString(tt){return this.stringify(tt.formItem)}parseColumns(tt){tt.forEach(ct=>{this.displayedColumns.includes(ct.shortname)||this.displayedColumns.push(ct.shortname),this.parsedColumns.includes(ct.shortname)||this.parsedColumns.push(ct.shortname)})}getValue(tt,ct){const Ue=tt.filter(at=>at.shortname===ct);return 0===Ue.length?"":Ue[0].value??Ue[0].prefilledValue}}return k.\u0275fac=function(tt){return new(tt||k)(S.Y36(w.x4),S.Y36(R.dB),S.Y36(w.ly),S.Y36(v.uw))},k.\u0275cmp=S.Xpm({type:k,selectors:[["app-applications-dynamic-list"]],viewQuery:function(tt,ct){if(1&tt&&(S.Gf(m.l9,7),S.Gf(A.YE,5)),2&tt){let Ue;S.iGM(Ue=S.CRH())&&(ct.child=Ue.first),S.iGM(Ue=S.CRH())&&(ct.sort=Ue.first)}},inputs:{displayedColumns:"displayedColumns",tableId:"tableId",disableRouting:"disableRouting",searchString:"searchString",group:"group",member:"member",vo:"vo",includeGroupApps:"includeGroupApps",states:"states",dateTo:"dateTo",dateFrom:"dateFrom",refreshTable:"refreshTable"},features:[S.TTD],decls:55,vars:14,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","tableId","exportDisplayedData","exportAllData"],["class","spinner-container",4,"ngIf"],["mat-table","","matSort","","matSortActive","createdAt","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","createdAt"],["matColumnDef","voId"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","voName"],["matColumnDef","groupId"],["matColumnDef","groupName"],["matColumnDef","type"],["matColumnDef","state"],["matColumnDef","extSourceName"],["matColumnDef","extSourceType"],["matColumnDef","user"],["matColumnDef","createdBy"],["matColumnDef","modifiedBy"],["matColumnDef","modifiedAt"],["matColumnDef","fedInfo"],[3,"matColumnDef",4,"ngFor","ngForOf"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],[3,"alert_type",4,"ngIf"],[1,"spinner-container"],[1,"ml-auto","mr-auto"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell",""],[3,"applicationType"],[3,"outerHTML"],[4,"ngIf","ngIfElse"],["name",""],[3,"matColumnDef"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],[3,"alert_type"]],template:function(tt,ct){1&tt&&(S.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),S.NdJ("exportDisplayedData",function(at){return ct.exportDisplayedData(at)})("exportAllData",function(at){return ct.exportAllData(at)}),S.YNc(2,Se,2,0,"div",2),S.ALo(3,"async"),S.TgZ(4,"table",3),S.ynx(5,4),S.YNc(6,Be,3,3,"th",5),S.YNc(7,pe,2,1,"td",6),S.BQk(),S.ynx(8,7),S.YNc(9,$e,3,3,"th",5),S.YNc(10,Ce,3,4,"td",6),S.BQk(),S.ynx(11,8),S.YNc(12,de,3,3,"th",9),S.YNc(13,re,2,1,"td",6),S.BQk(),S.ynx(14,10),S.YNc(15,B,3,3,"th",9),S.YNc(16,N,2,1,"td",6),S.BQk(),S.ynx(17,11),S.YNc(18,Me,3,3,"th",9),S.YNc(19,Y,2,1,"td",6),S.BQk(),S.ynx(20,12),S.YNc(21,be,3,3,"th",9),S.YNc(22,De,3,4,"td",6),S.BQk(),S.ynx(23,13),S.YNc(24,We,3,3,"th",5),S.YNc(25,Pe,2,1,"td",6),S.BQk(),S.ynx(26,14),S.YNc(27,nt,3,3,"th",5),S.YNc(28,Ye,3,3,"td",6),S.BQk(),S.ynx(29,15),S.YNc(30,Tt,3,3,"th",9),S.YNc(31,J,2,1,"td",6),S.BQk(),S.ynx(32,16),S.YNc(33,Xe,3,3,"th",9),S.YNc(34,le,2,1,"td",6),S.BQk(),S.ynx(35,17),S.YNc(36,ne,3,3,"th",5),S.YNc(37,ot,4,2,"td",6),S.BQk(),S.ynx(38,18),S.YNc(39,it,3,3,"th",9),S.YNc(40,oe,2,2,"td",6),S.BQk(),S.ynx(41,19),S.YNc(42,X,3,3,"th",5),S.YNc(43,r,2,1,"td",6),S.BQk(),S.ynx(44,20),S.YNc(45,s,3,3,"th",9),S.YNc(46,_,3,4,"td",6),S.BQk(),S.ynx(47,21),S.YNc(48,c,3,3,"th",9),S.YNc(49,a,2,1,"td",6),S.BQk(),S.YNc(50,n,3,1,"ng-container",22),S.YNc(51,o,1,0,"tr",23),S.YNc(52,l,3,14,"tr",24),S.qZA()()(),S.YNc(53,d,3,4,"perun-web-apps-alert",25),S.ALo(54,"async")),2&tt&&(S.Q6J("hidden",0===ct.dataSource.allObjectCount),S.xp6(1),S.Q6J("dataLength",ct.dataSource.allObjectCount)("pageSizeOptions",ct.pageSizeOptions)("tableId",ct.tableId),S.xp6(1),S.Q6J("ngIf",S.lcZ(3,10,ct.dataSource.loading$)),S.xp6(2),S.Q6J("dataSource",ct.dataSource),S.xp6(46),S.Q6J("ngForOf",ct.parsedColumns),S.xp6(1),S.Q6J("matHeaderRowDef",ct.displayedColumns),S.xp6(1),S.Q6J("matRowDefColumns",ct.displayedColumns),S.xp6(1),S.Q6J("ngIf",0===ct.dataSource.allObjectCount&&!1===S.lcZ(54,12,ct.dataSource.loading$)))},dependencies:[T.sg,T.O5,D.rH,A.YE,A.nU,F.BZ,F.fO,F.as,F.w1,F.Dz,F.nj,F.ge,F.ev,F.XQ,F.Gk,z.Ou,$.w,G.YH,G.QG,q.l,L,T.Ov,T.uU,V.X$,Q.h,ae.d,xe.R,ge],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),k})()},45256:(Qe,he,u)=>{"use strict";u.d(he,{k:()=>z});var e=u(95017),m=u(32105),A=u(64080),w=u(65412),p=u(69723),g=u(9244),T=u(86511),E=u(77579),S=u(56451),R=u(39646),v=u(63900),D=u(68675),F=u(94650);let z=(()=>{class ${constructor(q,_e,ce,Te,b,H,L,V,Q,ae){this.data=q,this.dialogRef=_e,this.membersManagerService=ce,this.voService=Te,this.registrarManager=b,this.groupService=H,this.store=L,this.guiAuthResolver=V,this.requestService=Q,this.addMemberService=ae,this.loading=!1,this.searcher=new E.x,this.members=this.searcher.pipe((0,v.w)(xe=>(0,S.T)((0,R.of)(null),this.voService.getCompleteCandidatesForGroup(this.data.group.id,this.attrNames,xe))),(0,D.O)(void 0)),this.failed=[],this.selection=new e.Ov(!0,[]),this.attrNames=[A.r.USER_DEF_ORGANIZATION,A.r.USER_DEF_PREFERRED_MAIL].concat(this.store.getLoginAttributeNames()),this.languages=this.store.getProperty("supported_languages"),this.addMemberService.setDialogRef(this.dialogRef),this.addMemberService.setType("group")}ngOnInit(){this.inviteAuth=this.guiAuthResolver.isAuthorized("group-sendInvitation_Vo_Group_User_policy",[this.data.group]),this.selection.changed.subscribe(q=>{this.addAuth=!!q.source.selected.every(_e=>_e.member)||this.guiAuthResolver.isAuthorized("createMember_Vo_User_List_policy",[this.data.group])&&this.guiAuthResolver.isAuthorized("createMember_Vo_Candidate_List_policy",[this.data.group])})}add(){if(this.loading=!0,0===this.selection.selected.length)return void(0!==this.failed.length?(this.failed=this.failed.filter(_e=>null!==_e),this.selection.clear(),this.loading=!1):this.addMemberService.success("DIALOGS.ADD_MEMBERS.SUCCESS_ADD"));this.requestService.dontHandleErrorForNext();const q=this.selection.selected.pop();q.member?this.addMember(q):q.richUser?this.addUser(q):q.candidate&&this.addCandidate(q)}invite(q){if(this.loading=!0,0===this.selection.selected.length)return void(0!==this.failed.length?(this.failed=this.failed.filter(ce=>null!==ce),this.selection.clear(),this.loading=!1):this.addMemberService.success("DIALOGS.ADD_MEMBERS.SUCCESS_INVITE"));this.requestService.dontHandleErrorForNext();const _e=this.selection.selected.pop();_e.richUser?this.inviteUser(_e,q):this.inviteCandidate(_e,q)}cancel(q){this.dialogRef.close(q)}addCandidate(q){this.membersManagerService.createMemberForCandidate({vo:this.data.group.voId,candidate:this.addMemberService.createCandidate(q.candidate),groups:[this.addMemberService.getFormattedGroup(this.data.group)]}).subscribe({next:_e=>{this.membersManagerService.validateMemberAsync(_e.id).subscribe(),this.add()},error:_e=>{this.failed.push(this.addMemberService.getCandidateWithError(q,_e)),this.add()}})}addMember(q){this.groupService.addMembers(this.data.group.id,[q.member.id]).subscribe({next:()=>{this.add()},error:_e=>{this.failed.push(this.addMemberService.getCandidateWithError(q,_e)),this.add()}})}addUser(q){this.membersManagerService.createMemberForUser({vo:this.data.group.voId,user:q.richUser.id,groups:[this.addMemberService.getFormattedGroup(this.data.group)]}).subscribe({next:_e=>{this.membersManagerService.validateMemberAsync(_e.id).subscribe(),this.add()},error:_e=>{this.failed.push(this.addMemberService.getCandidateWithError(q,_e)),this.add()}})}inviteCandidate(q,_e){this.registrarManager.sendInvitationForGroup((0,g.Jc)(q.candidate),_e,this.data.group.voId,this.data.group.id).subscribe({next:()=>{this.invite(_e)},error:ce=>{this.failed.push(this.addMemberService.getCandidateWithError(q,ce)),this.invite(_e)}})}inviteUser(q,_e){this.registrarManager.sendInvitationGroupToExistingUser(q.richUser.id,this.data.group.voId,this.data.group.id).subscribe({next:()=>{this.invite(_e)},error:ce=>{this.failed.push(this.addMemberService.getCandidateWithError(q,ce)),this.invite(_e)}})}}return $.\u0275fac=function(q){return new(q||$)(F.Y36(w.WI),F.Y36(w.so),F.Y36(m.uq),F.Y36(m.YF),F.Y36(m.tk),F.Y36(m.ff),F.Y36(p.d6),F.Y36(p.x4),F.Y36(p.F5),F.Y36(T.A))},$.\u0275cmp=F.Xpm({type:$,selectors:[["app-group-add-member-dialog"]],decls:2,vars:11,consts:[[3,"loading","languages","manualAddingBlocked","addAuth","inviteAuth","failed","members","selection","theme","add","cancel","invite","search"]],template:function(q,_e){1&q&&(F.TgZ(0,"app-add-member-dialog",0),F.NdJ("add",function(){return _e.add()})("cancel",function(Te){return _e.cancel(Te)})("invite",function(Te){return _e.invite(Te)})("search",function(Te){return _e.searcher.next(Te)}),F.ALo(1,"async"),F.qZA()),2&q&&F.Q6J("loading",_e.loading)("languages",_e.languages)("manualAddingBlocked",_e.data.manualAddingBlocked)("addAuth",_e.addAuth)("inviteAuth",_e.inviteAuth)("failed",_e.failed)("members",F.lcZ(1,9,_e.members))("selection",_e.selection)("theme","group-theme")}}),$})()},51525:(Qe,he,u)=>{"use strict";u.d(he,{H:()=>z});var e=u(65412),m=u(32105),A=u(69723),w=u(95017),p=u(9244),g=u(64080),T=u(86511),E=u(77579),S=u(56451),R=u(39646),v=u(63900),D=u(68675),F=u(94650);let z=(()=>{class ${constructor(q,_e,ce,Te,b,H,L,V){this.data=q,this.dialogRef=_e,this.membersManagerService=ce,this.voService=Te,this.registrarManager=b,this.store=H,this.requestService=L,this.addMemberService=V,this.loading=!1,this.searcher=new E.x,this.members=this.searcher.pipe((0,v.w)(Q=>(0,S.T)((0,R.of)(null),this.voService.getCompleteCandidatesForVo(this.data.voId,this.attrNames,Q))),(0,D.O)(void 0)),this.failed=[],this.selection=new w.Ov(!0,[]),this.attrNames=[g.r.USER_DEF_ORGANIZATION,g.r.USER_DEF_PREFERRED_MAIL].concat(this.store.getLoginAttributeNames()),this.languages=this.store.getProperty("supported_languages"),this.addMemberService.setDialogRef(this.dialogRef),this.addMemberService.setType("vo")}add(){if(this.loading=!0,0===this.selection.selected.length)return void(0!==this.failed.length?(this.failed=this.failed.filter(_e=>null!==_e),this.selection.clear(),this.loading=!1):this.addMemberService.success("DIALOGS.ADD_MEMBERS.SUCCESS_ADD"));this.requestService.dontHandleErrorForNext();const q=this.selection.selected.pop();q.richUser?this.addUser(q):this.addCandidate(q)}invite(q){if(this.loading=!0,0===this.selection.selected.length)return void(0!==this.failed.length?(this.failed=this.failed.filter(ce=>null!==ce),this.selection.clear(),this.loading=!1):this.addMemberService.success("DIALOGS.ADD_MEMBERS.SUCCESS_INVITE"));this.requestService.dontHandleErrorForNext();const _e=this.selection.selected.pop();_e.richUser?this.inviteUser(_e,q):this.inviteCandidate(_e,q)}cancel(q){this.dialogRef.close(q)}addCandidate(q){this.membersManagerService.createMemberForCandidate({vo:this.data.voId,candidate:this.addMemberService.createCandidate(q.candidate)}).subscribe({next:_e=>{this.membersManagerService.validateMemberAsync(_e.id).subscribe(),this.add()},error:_e=>{this.failed.push(this.addMemberService.getCandidateWithError(q,_e)),this.add()}})}addUser(q){this.membersManagerService.createMemberForUser({vo:this.data.voId,user:q.richUser.id}).subscribe({next:_e=>{this.membersManagerService.validateMemberAsync(_e.id).subscribe(),this.add()},error:_e=>{this.failed.push(this.addMemberService.getCandidateWithError(q,_e)),this.add()}})}inviteCandidate(q,_e){this.registrarManager.sendInvitation((0,p.Jc)(q.candidate),_e,this.data.voId).subscribe({next:()=>{this.invite(_e)},error:ce=>{this.failed.push(this.addMemberService.getCandidateWithError(q,ce)),this.invite(_e)}})}inviteUser(q,_e){this.registrarManager.sendInvitationToExistingUser(q.richUser.id,this.data.voId).subscribe({next:()=>{this.invite(_e)},error:ce=>{this.failed.push(this.addMemberService.getCandidateWithError(q,ce)),this.invite(_e)}})}}return $.\u0275fac=function(q){return new(q||$)(F.Y36(e.WI),F.Y36(e.so),F.Y36(m.uq),F.Y36(m.YF),F.Y36(m.tk),F.Y36(A.d6),F.Y36(A.F5),F.Y36(T.A))},$.\u0275cmp=F.Xpm({type:$,selectors:[["app-vo-add-member-dialog"]],decls:2,vars:8,consts:[[3,"loading","languages","failed","members","selection","theme","add","cancel","invite","search"]],template:function(q,_e){1&q&&(F.TgZ(0,"app-add-member-dialog",0),F.NdJ("add",function(){return _e.add()})("cancel",function(Te){return _e.cancel(Te)})("invite",function(Te){return _e.invite(Te)})("search",function(Te){return _e.searcher.next(Te)}),F.ALo(1,"async"),F.qZA()),2&q&&F.Q6J("loading",_e.loading)("languages",_e.languages)("failed",_e.failed)("members",F.lcZ(1,6,_e.members))("selection",_e.selection)("theme","vo-theme")}}),$})()},55857:(Qe,he,u)=>{"use strict";u.d(he,{W:()=>_e});var e=u(32105),m=u(10036),A=u(69723),w=u(24006),p=u(36895),g=u(94650),T=u(3238),E=u(59549),S=u(4859),R=u(84385),v=u(96214),D=u(39798),F=u(64901),z=u(99168),$=u(89383);function G(ce,Te){if(1&ce){const b=g.EpF();g.TgZ(0,"button",14),g.NdJ("click",function(){g.CHM(b);const L=g.oxw();return g.KtG(L.showAllDetails=!0)}),g._uU(1),g.ALo(2,"translate"),g.qZA()}2&ce&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_ALL_DETAILS")," "))}function q(ce,Te){if(1&ce){const b=g.EpF();g.TgZ(0,"button",14),g.NdJ("click",function(){g.CHM(b);const L=g.oxw();return g.KtG(L.showAllDetails=!1)}),g._uU(1),g.ALo(2,"translate"),g.qZA()}2&ce&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_LESS_DETAILS")," "))}let _e=(()=>{class ce{constructor(b,H,L){this.registrarManager=b,this.guiAuthResolver=H,this.entityStorageService=L,this.state="pending",this.currentStates=["NEW","VERIFIED"],this.displayedColumns=["id","createdAt","type","state","createdBy","groupName","modifiedBy"],this.detailedDisplayedColumns=["id","createdAt","voId","voName","groupId","groupName","type","state","extSourceName","extSourceType","user","createdBy","modifiedBy","modifiedAt","fedInfo"],this.filterValue="",this.showAllDetails=!1,this.detailTableId=m.Af,this.tableId=m.gB,this.refresh=!1}ngOnInit(){this.group=this.entityStorageService.getEntity(),this.startDate=new w.p4((0,p.p6)(this.yearAgo(),"yyyy-MM-dd","en-GB")),this.endDate=new w.p4((0,p.p6)(new Date,"yyyy-MM-dd","en-GB"))}select(){switch(this.state){case"approved":this.currentStates=["APPROVED"];break;case"rejected":this.currentStates=["REJECTED"];break;case"wfmv":this.currentStates=["NEW"];break;case"submited":this.currentStates=["VERIFIED"];break;case"pending":this.currentStates=["NEW","VERIFIED"];break;case"all":this.currentStates=null}}yearAgo(){const b=new Date;return b.setDate(b.getDate()-365),b}applyFilter(b){this.filterValue=b}}return ce.id="GroupApplicationsComponent",ce.\u0275fac=function(b){return new(b||ce)(g.Y36(e.tk),g.Y36(A.x4),g.Y36(A.fb))},ce.\u0275cmp=g.Xpm({type:ce,selectors:[["app-group-applications"]],hostVars:2,hostBindings:function(b,H){2&b&&g.ekj("router-component",H.true)},decls:34,vars:38,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2","mat-stroked-button","",3,"click",4,"ngIf"],[1,"w-25","mr-2"],["disableOptionCentering","",3,"value","selectionChange","valueChange"],["value","all"],["value","pending"],["value","wfmv"],["value","submited"],["value","approved"],["value","rejected"],[3,"placeholder","filter"],[3,"endDate","startDate","datePicker"],[3,"tableId","searchString","displayedColumns","states","dateFrom","dateTo","refreshTable","group"],["mat-stroked-button","",1,"mr-2",3,"click"]],template:function(b,H){1&b&&(g.TgZ(0,"h1",0),g._uU(1),g.ALo(2,"translate"),g.qZA(),g.TgZ(3,"div")(4,"perun-web-apps-refresh-button",1),g.NdJ("refresh",function(){return H.refresh=!H.refresh}),g.qZA(),g.YNc(5,G,3,3,"button",2),g.YNc(6,q,3,3,"button",2),g.TgZ(7,"mat-form-field",3)(8,"mat-label"),g._uU(9),g.ALo(10,"translate"),g.qZA(),g.TgZ(11,"mat-select",4),g.NdJ("selectionChange",function(){return H.select()})("valueChange",function(V){return H.state=V}),g.TgZ(12,"mat-option",5),g._uU(13),g.ALo(14,"translate"),g.qZA(),g.TgZ(15,"mat-option",6),g._uU(16),g.ALo(17,"translate"),g.qZA(),g.TgZ(18,"mat-option",7),g._uU(19),g.ALo(20,"translate"),g.qZA(),g.TgZ(21,"mat-option",8),g._uU(22),g.ALo(23,"translate"),g.qZA(),g.TgZ(24,"mat-option",9),g._uU(25),g.ALo(26,"translate"),g.qZA(),g.TgZ(27,"mat-option",10),g._uU(28),g.ALo(29,"translate"),g.qZA()()(),g.TgZ(30,"perun-web-apps-debounce-filter",11),g.NdJ("filter",function(V){return H.applyFilter(V)}),g.qZA(),g.TgZ(31,"perun-web-apps-date-range",12),g.NdJ("datePicker",function(){return H.select()}),g.qZA()(),g.TgZ(32,"div"),g._UZ(33,"app-applications-dynamic-list",13),g.qZA()),2&b&&(g.xp6(1),g.Oqu(g.lcZ(2,22,"VO_DETAIL.APPLICATION.TITLE")),g.xp6(4),g.Q6J("ngIf",!H.showAllDetails),g.xp6(1),g.Q6J("ngIf",H.showAllDetails),g.xp6(3),g.Oqu(g.lcZ(10,24,"APPLICATIONS_LIST.STATE")),g.xp6(2),g.Q6J("value",H.state),g.xp6(2),g.Oqu(g.lcZ(14,26,"VO_DETAIL.APPLICATION.SELECTION_ALL")),g.xp6(3),g.Oqu(g.lcZ(17,28,"VO_DETAIL.APPLICATION.SELECTION_PENDING")),g.xp6(3),g.Oqu(g.lcZ(20,30,"VO_DETAIL.APPLICATION.SELECTION_WFMV")),g.xp6(3),g.Oqu(g.lcZ(23,32,"VO_DETAIL.APPLICATION.SELECTION_SUBMITTED")),g.xp6(3),g.Oqu(g.lcZ(26,34,"VO_DETAIL.APPLICATION.SELECTION_APPROVED")),g.xp6(3),g.Oqu(g.lcZ(29,36,"VO_DETAIL.APPLICATION.SELECTION_REJECTED")),g.xp6(2),g.Q6J("placeholder","VO_DETAIL.APPLICATION.FILTER"),g.xp6(1),g.Q6J("endDate",H.endDate)("startDate",H.startDate),g.xp6(2),g.Q6J("tableId",H.showAllDetails?H.detailTableId:H.tableId)("searchString",H.filterValue)("displayedColumns",H.showAllDetails?H.detailedDisplayedColumns:H.displayedColumns)("states",H.currentStates)("dateFrom",H.startDate.value)("dateTo",H.endDate.value)("refreshTable",H.refresh)("group",H.group))},dependencies:[p.O5,T.ey,E.KE,E.hX,S.lW,R.gD,v.t,D.S,F.P,z.S,$.X$]}),ce})()},75234:(Qe,he,u)=>{"use strict";u.d(he,{y:()=>be});var e=u(95017),m=u(69723),A=u(64080),w=u(53455),p=u(32105),g=u(10036),T=u(9244),E=u(74414),S=u(24006),R=u(45256),v=u(94742),D=u(94650),F=u(65412),z=u(36895),$=u(3238),G=u(59549),q=u(4859),_e=u(84385),ce=u(51572),Te=u(10266),b=u(28255),H=u(98380),L=u(96214),V=u(64901),Q=u(4811),ae=u(89383),xe=u(20551);let ge=(()=>{class De{transform(Pe,nt){return!!("members"===Pe.name||(0,T.bx)(Pe)||"add"===nt&&(0,T.jh)(Pe.attributes,A.r.GROUP_BLOCK_MANUAL_MEMBER_ADDING))}}return De.\u0275fac=function(Pe){return new(Pe||De)},De.\u0275pipe=D.Yjl({name:"groupMembersActionButtonDisabled",type:De,pure:!0}),De})(),Se=(()=>{class De{transform(Pe,nt){return"members"===Pe.name?"GROUP_DETAIL.MEMBERS.BUTTON_DISABLED_MEMBERS_GROUP":(0,T.bx)(Pe)?"GROUP_DETAIL.MEMBERS.SYNCHRONIZED":"add"===nt&&(0,T.jh)(Pe.attributes,A.r.GROUP_BLOCK_MANUAL_MEMBER_ADDING)?"GROUP_DETAIL.MEMBERS.ADD_MEMBER_DISABLED":""}}return De.\u0275fac=function(Pe){return new(Pe||De)},De.\u0275pipe=D.Yjl({name:"groupMembersActionButtonDisabledTooltip",type:De,pure:!0}),De})();function Be(De,We){1&De&&(D.TgZ(0,"perun-web-apps-alert",16),D._uU(1),D.ALo(2,"translate"),D.qZA()),2&De&&(D.xp6(1),D.hij(" ",D.lcZ(2,1,"GROUP_DETAIL.MEMBERS.ACTIONS_DISABLED"),"\n"))}function pe(De,We){if(1&De){const Pe=D.EpF();D.TgZ(0,"button",17),D.NdJ("click",function(){D.CHM(Pe);const Ye=D.oxw();return D.KtG(Ye.onAddMember())}),D.ALo(1,"groupMembersActionButtonDisabled"),D._uU(2),D.ALo(3,"translate"),D.qZA()}if(2&De){const Pe=D.oxw();D.Q6J("disabled",D.xi3(1,2,Pe.group,"add")),D.xp6(2),D.hij(" ",D.lcZ(3,5,"GROUP_DETAIL.MEMBERS.ADD_MEMBER")," ")}}function $e(De,We){if(1&De&&(D.TgZ(0,"button",18),D.ALo(1,"groupMembersActionButtonDisabled"),D._uU(2),D.ALo(3,"translate"),D.qZA()),2&De){const Pe=D.oxw(),nt=D.MAs(17);D.Q6J("disabled",D.lcZ(1,3,Pe.group))("matMenuTriggerFor",nt),D.xp6(2),D.hij(" ",D.lcZ(3,5,"GROUP_DETAIL.MEMBERS.INVITE")," ")}}function Ce(De,We){if(1&De){const Pe=D.EpF();D.TgZ(0,"button",19),D.NdJ("click",function(){D.CHM(Pe);const Ye=D.oxw();return D.KtG(Ye.onInviteMember())}),D.ALo(1,"groupMembersActionButtonDisabled"),D._uU(2),D.ALo(3,"translate"),D.qZA()}if(2&De){const Pe=D.oxw();D.Q6J("disabled",D.lcZ(1,2,Pe.group)),D.xp6(2),D.hij(" ",D.lcZ(3,4,"GROUP_DETAIL.MEMBERS.INVITE_ONE")," ")}}function de(De,We){if(1&De){const Pe=D.EpF();D.TgZ(0,"button",19),D.NdJ("click",function(){D.CHM(Pe);const Ye=D.oxw();return D.KtG(Ye.onBulkInvite())}),D.ALo(1,"groupMembersActionButtonDisabled"),D._uU(2),D.ALo(3,"translate"),D.qZA()}if(2&De){const Pe=D.oxw();D.Q6J("disabled",D.lcZ(1,2,Pe.group)),D.xp6(2),D.hij(" ",D.lcZ(3,4,"GROUP_DETAIL.MEMBERS.INVITE_BULK")," ")}}function re(De,We){if(1&De){const Pe=D.EpF();D.TgZ(0,"button",20),D.NdJ("click",function(){D.CHM(Pe);const Ye=D.oxw();return D.KtG(Ye.onRemoveMembers())}),D.ALo(1,"groupMembersActionButtonDisabled"),D._uU(2),D.ALo(3,"translate"),D.qZA()}if(2&De){const Pe=D.oxw();D.Q6J("disabled",Pe.selection.isEmpty()||D.lcZ(1,2,Pe.group)),D.xp6(2),D.hij(" ",D.lcZ(3,4,"GROUP_DETAIL.MEMBERS.REMOVE_MEMBERS")," ")}}function B(De,We){if(1&De&&(D.TgZ(0,"mat-option",21),D._uU(1),D.ALo(2,"memberStatus"),D.qZA()),2&De){const Pe=We.$implicit;D.Q6J("value",Pe),D.xp6(1),D.Oqu(D.lcZ(2,2,Pe))}}function N(De,We){if(1&De&&(D.TgZ(0,"mat-option",21),D._uU(1),D.ALo(2,"memberStatus"),D.qZA()),2&De){const Pe=We.$implicit;D.Q6J("value",Pe),D.xp6(1),D.Oqu(D.lcZ(2,2,Pe))}}function Me(De,We){1&De&&D._UZ(0,"mat-spinner",22)}function Y(De,We){if(1&De&&D._UZ(0,"perun-web-apps-members-dynamic-list",23),2&De){const Pe=D.oxw();D.Q6J("attrNames",Pe.memberAttrNames)("groupId",Pe.group.id)("tableId",Pe.tableId)("displayedColumns",Pe.displayedColumns)("searchString",Pe.searchString)("updateTable",Pe.updateTable)("selectedGroupStatuses",Pe.selectedGroupStatuses)("selectedStatuses",Pe.selectedStatuses)("selection",Pe.selection)("voId",Pe.group.voId)("isMembersGroup","members"===Pe.group.name)}}let be=(()=>{class De{constructor(Pe,nt,Ye,Tt,J,Xe,le,ne){this.groupService=Pe,this.dialog=nt,this.guiAuthResolver=Ye,this.storeService=Tt,this.attributesManager=J,this.apiRequest=Xe,this.notificator=le,this.entityStorageService=ne,this.synchEnabled=!1,this.updateTable=!1,this.loading=!1,this.tableId=g.dI,this.memberAttrNames=[A.r.MEMBER_DEF_ORGANIZATION,A.r.MEMBER_DEF_MAIL,A.r.USER_DEF_ORGANIZATION,A.r.USER_DEF_PREFERRED_MAIL,A.r.MEMBER_DEF_EXPIRATION,A.r.MEMBER_DEF_GROUP_EXPIRATION,A.r.MEMBER_LIFECYCLE_ALTERABLE],this.displayedColumns=["checkbox","id","type","fullName","status","groupStatus","organization","email","logins"],this.statuses=new S.p4,this.statusList=["VALID","INVALID","EXPIRED","DISABLED"],this.selectedStatuses=["VALID","INVALID"],this.groupStatuses=new S.p4,this.groupStatusList=["VALID","EXPIRED"],this.selectedGroupStatuses=["VALID"],this.groupAttrNames=[A.r.GROUP_SYNC_ENABLED,A.r.GROUP_LAST_SYNC_STATE,A.r.GROUP_LAST_SYNC_TIMESTAMP,A.r.GROUP_STRUCTURE_SYNC_ENABLED,A.r.GROUP_LAST_STRUCTURE_SYNC_STATE,A.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP,A.r.GROUP_BLOCK_MANUAL_MEMBER_ADDING]}ngOnInit(){this.loading=!0,this.selection=new e.Ov(!0,[]),this.statuses.setValue(this.selectedStatuses),this.groupStatuses.setValue(this.selectedGroupStatuses),this.memberAttrNames=this.memberAttrNames.concat(this.storeService.getLoginAttributeNames()),this.group=this.entityStorageService.getEntity(),this.setAuthRights(),this.isManualAddingBlocked(this.group.voId).then(()=>this.loadPage(this.group.id))}loadPage(Pe){this.groupService.getRichGroupByIdWithAttributesByNames(Pe,this.groupAttrNames).subscribe(nt=>{this.group=nt,this.synchEnabled=(0,T.bx)(this.group),this.loading=!1})}setAuthRights(){this.addAuth=this.guiAuthResolver.isAuthorized("addMembers_Group_List_policy",[this.group]),this.removeAuth=this.guiAuthResolver.isAuthorized("removeMembers_Group_List_policy",[this.group]),this.displayedColumns=this.removeAuth?this.displayedColumns:["id","type","fullName","status","groupStatus","organization","email","logins"],this.inviteAuth=this.guiAuthResolver.isAuthorized("group-sendInvitation_Vo_Group_String_String_String_policy",[this.group])}onSearchByString(Pe){this.searchString=Pe,this.selection.clear()}onAddMember(){const Pe=(0,T.kZ)();Pe.width="1000px",Pe.data={group:this.group,manualAddingBlocked:this.blockManualMemberAdding},this.dialog.open(R.k,Pe).afterClosed().subscribe(Ye=>{Ye&&(this.selection.clear(),this.updateTable=!this.updateTable)})}onRemoveMembers(){const Pe=(0,T.kZ)();Pe.width="450px",Pe.data={groupId:this.group.id,members:this.selection.selected,theme:"group-theme"},this.dialog.open(w.X,Pe).afterClosed().subscribe(Ye=>{Ye&&(this.selection.clear(),this.updateTable=!this.updateTable)})}onInviteMember(){const Pe=(0,T.kZ)();Pe.width="650px",Pe.data={voId:this.group.voId,groupId:this.group.id,theme:"group-theme"},this.dialog.open(E.R,Pe)}onBulkInvite(){const Pe=(0,T.kZ)();Pe.width="650px",Pe.data={voId:this.group.voId,groupId:this.group.id,theme:"group-theme"},this.dialog.open(v.F,Pe)}displaySelectedStatuses(){if(this.selectedStatuses.length===this.statusList.length)return"ALL";const Pe=this.statuses.value;return Pe?`${Pe[0]} ${Pe.length>1?"(+"+(Pe.length-1).toString()+" "+(2===Pe.length?"other)":"others)"):""}`:""}displaySelectedGroupStatuses(){return this.selectedGroupStatuses.length===this.groupStatusList.length?"ALL":`${this.groupStatuses.value[0]}`}isManualAddingBlocked(Pe){return new Promise(nt=>{this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getVoAttributeByName(Pe,"urn:perun:vo:attribute-def:def:blockManualMemberAdding").subscribe({next:Ye=>{this.blockManualMemberAdding=null!==Ye.value,nt()},error:Ye=>{"PrivilegeException"!==Ye.name&&this.notificator.showError(Ye.name),nt()}})})}changeVoStatuses(){this.selection.clear(),this.selectedStatuses=this.statuses.value}changeGroupStatuses(){this.selection.clear(),this.selectedGroupStatuses=this.groupStatuses.value}refreshTable(){this.selection.clear(),this.updateTable=!this.updateTable}}return De.id="GroupMembersComponent",De.\u0275fac=function(Pe){return new(Pe||De)(D.Y36(p.ff),D.Y36(F.uw),D.Y36(m.x4),D.Y36(m.d6),D.Y36(p.H8),D.Y36(m.F5),D.Y36(m.V6),D.Y36(m.fb))},De.\u0275cmp=D.Xpm({type:De,selectors:[["app-group-members"]],hostVars:2,hostBindings:function(Pe,nt){2&Pe&&D.ekj("router-component",nt.true)},decls:46,vars:57,consts:[[1,"page-subtitle"],["alert_type","warn",4,"ngIf"],[1,"align-elements"],[3,"click"],[3,"matTooltipDisabled","matTooltipPosition","matTooltip"],["class","mr-2 action-button","color","accent","data-cy","add-members","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","mr-2 dropdown-toggle","color","accent","mat-flat-button","",3,"disabled","matMenuTriggerFor",4,"ngIf"],["menu","matMenu"],["class","action-button","mat-menu-item","",3,"disabled","click",4,"ngIf"],["class","mr-2","color","warn","data-cy","remove-members","mat-flat-button","",3,"disabled","click",4,"ngIf"],[1,"mr-2","fix-select"],["multiple","",3,"formControl","closed"],["class","group-theme",3,"value",4,"ngFor","ngForOf"],[1,"mt-2","search-field",3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"attrNames","groupId","tableId","displayedColumns","searchString","updateTable","selectedGroupStatuses","selectedStatuses","selection","voId","isMembersGroup",4,"ngIf"],["alert_type","warn"],["color","accent","data-cy","add-members","mat-flat-button","",1,"mr-2","action-button",3,"disabled","click"],["color","accent","mat-flat-button","",1,"mr-2","dropdown-toggle",3,"disabled","matMenuTriggerFor"],["mat-menu-item","",1,"action-button",3,"disabled","click"],["color","warn","data-cy","remove-members","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"group-theme",3,"value"],[1,"ml-auto","mr-auto"],[3,"attrNames","groupId","tableId","displayedColumns","searchString","updateTable","selectedGroupStatuses","selectedStatuses","selection","voId","isMembersGroup"]],template:function(Pe,nt){1&Pe&&(D.TgZ(0,"h1",0),D._uU(1),D.ALo(2,"translate"),D.qZA(),D.YNc(3,Be,3,3,"perun-web-apps-alert",1),D.TgZ(4,"div",2)(5,"perun-web-apps-refresh-button",3),D.NdJ("click",function(){return nt.refreshTable()}),D.qZA(),D.TgZ(6,"span",4),D.ALo(7,"groupMembersActionButtonDisabled"),D.ALo(8,"translate"),D.ALo(9,"groupMembersActionButtonDisabledTooltip"),D.YNc(10,pe,4,7,"button",5),D.qZA(),D.TgZ(11,"span",4),D.ALo(12,"groupMembersActionButtonDisabled"),D.ALo(13,"translate"),D.ALo(14,"groupMembersActionButtonDisabledTooltip"),D.YNc(15,$e,4,7,"button",6),D.TgZ(16,"mat-menu",null,7),D.YNc(18,Ce,4,6,"button",8),D.YNc(19,de,4,6,"button",8),D.qZA()(),D.TgZ(20,"span",4),D.ALo(21,"groupMembersActionButtonDisabled"),D.ALo(22,"translate"),D.ALo(23,"groupMembersActionButtonDisabledTooltip"),D.YNc(24,re,4,6,"button",9),D.qZA(),D.TgZ(25,"mat-form-field",10)(26,"mat-label"),D._uU(27),D.ALo(28,"translate"),D.qZA(),D.TgZ(29,"mat-select",11),D.NdJ("closed",function(){return nt.changeVoStatuses()}),D.TgZ(30,"mat-select-trigger"),D._uU(31),D.ALo(32,"memberStatus"),D.qZA(),D.YNc(33,B,3,4,"mat-option",12),D.qZA()(),D.TgZ(34,"mat-form-field",10)(35,"mat-label"),D._uU(36),D.ALo(37,"translate"),D.qZA(),D.TgZ(38,"mat-select",11),D.NdJ("closed",function(){return nt.changeGroupStatuses()}),D.TgZ(39,"mat-select-trigger"),D._uU(40),D.ALo(41,"memberStatus"),D.qZA(),D.YNc(42,N,3,4,"mat-option",12),D.qZA()(),D.TgZ(43,"perun-web-apps-debounce-filter",13),D.NdJ("filter",function(Tt){return nt.onSearchByString(Tt)}),D.qZA()(),D.YNc(44,Me,1,0,"mat-spinner",14),D.YNc(45,Y,1,11,"perun-web-apps-members-dynamic-list",15)),2&Pe&&(D.xp6(1),D.Oqu(D.lcZ(2,27,"GROUP_DETAIL.MEMBERS.TITLE")),D.xp6(2),D.Q6J("ngIf",nt.synchEnabled),D.xp6(3),D.s9C("matTooltip",D.lcZ(8,32,D.xi3(9,34,nt.group,"add"))),D.Q6J("matTooltipDisabled",!D.xi3(7,29,nt.group,"add"))("matTooltipPosition","above"),D.xp6(4),D.Q6J("ngIf",nt.addAuth),D.xp6(1),D.s9C("matTooltip",D.lcZ(13,39,D.lcZ(14,41,nt.group))),D.Q6J("matTooltipDisabled",!D.lcZ(12,37,nt.group))("matTooltipPosition","above"),D.xp6(4),D.Q6J("ngIf",nt.inviteAuth),D.xp6(3),D.Q6J("ngIf",nt.inviteAuth),D.xp6(1),D.Q6J("ngIf",nt.inviteAuth),D.xp6(1),D.s9C("matTooltip",D.lcZ(22,45,D.lcZ(23,47,nt.group))),D.Q6J("matTooltipDisabled",!D.lcZ(21,43,nt.group))("matTooltipPosition","above"),D.xp6(4),D.Q6J("ngIf",nt.removeAuth),D.xp6(3),D.Oqu(D.lcZ(28,49,"GROUP_DETAIL.MEMBERS.FILTER_STATUS")),D.xp6(2),D.Q6J("formControl",nt.statuses),D.xp6(2),D.hij(" ",D.lcZ(32,51,nt.displaySelectedStatuses())," "),D.xp6(2),D.Q6J("ngForOf",nt.statusList),D.xp6(3),D.Oqu(D.lcZ(37,53,"GROUP_DETAIL.MEMBERS.FILTER_GROUP_STATUS")),D.xp6(2),D.Q6J("formControl",nt.groupStatuses),D.xp6(2),D.hij(" ",D.lcZ(41,55,nt.displaySelectedGroupStatuses())," "),D.xp6(2),D.Q6J("ngForOf",nt.groupStatusList),D.xp6(1),D.Q6J("placeholder","GROUP_DETAIL.MEMBERS.SEARCH_DESCRIPTION"),D.xp6(1),D.Q6J("ngIf",nt.loading),D.xp6(1),D.Q6J("ngIf",!nt.loading))},dependencies:[z.sg,z.O5,$.ey,G.KE,G.hX,S.JJ,S.oH,q.lW,_e.gD,_e.$L,ce.Ou,Te.gM,b.VK,b.OP,b.p6,H.w,L.t,V.P,Q.m,ae.X$,xe.l,ge,Se],styles:[".search-field[_ngcontent-%COMP%]{width:325px}.align-elements[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:wrap}.fix-select[_ngcontent-%COMP%]{margin-top:8px}"]}),De})()},37240:(Qe,he,u)=>{"use strict";u.d(he,{q:()=>J});var e=u(95017),m=u(32105),A=u(10036),w=u(65412),p=u(69723),T=(u(85147),u(94650)),E=u(89383),S=u(36895),R=u(24006),v=u(4859),D=u(51572),F=u(10266),z=u(90455),$=u(86257),G=u(62109),q=u(64901);const _e=["list"],ce=["stepper"];function Te(Xe,le){1&Xe&&T._UZ(0,"mat-spinner",4)}function b(Xe,le){1&Xe&&(T._uU(0),T.ALo(1,"translate")),2&Xe&&T.Oqu(T.lcZ(1,1,"DIALOGS.ADD_GROUP_RESOURCES.RESOURCES"))}function H(Xe,le){1&Xe&&(T._uU(0),T.ALo(1,"translate")),2&Xe&&T.Oqu(T.lcZ(1,1,"DIALOGS.ADD_GROUP_RESOURCES.OPTIONS"))}const L=function(){return["select","id","name","facility","tags","description"]};function V(Xe,le){if(1&Xe){const ne=T.EpF();T.TgZ(0,"div",5)(1,"mat-stepper",6,7)(3,"mat-step",8),T.YNc(4,b,2,3,"ng-template",9),T.TgZ(5,"perun-web-apps-debounce-filter",10),T.NdJ("filter",function(Ee){T.CHM(ne);const ot=T.oxw();return T.KtG(ot.applyFilter(Ee))}),T.ALo(6,"translate"),T.qZA(),T._UZ(7,"perun-web-apps-resources-list",11,12),T.qZA(),T.TgZ(9,"mat-step"),T.YNc(10,H,2,3,"ng-template",9),T.TgZ(11,"mat-slide-toggle",13),T.NdJ("toggleChange",function(){T.CHM(ne);const Ee=T.oxw();return T.KtG(Ee.changeSubgroupsMessage())})("ngModelChange",function(Ee){T.CHM(ne);const ot=T.oxw();return T.KtG(ot.autoAssignSubgroups=Ee)}),T._uU(12),T.ALo(13,"translate"),T.qZA(),T.TgZ(14,"div",14),T._UZ(15,"i",15),T.qZA(),T.TgZ(16,"mat-slide-toggle",13),T.NdJ("toggleChange",function(){T.CHM(ne);const Ee=T.oxw();return T.KtG(Ee.changeInactiveMessage())})("ngModelChange",function(Ee){T.CHM(ne);const ot=T.oxw();return T.KtG(ot.asActive=Ee)}),T._uU(17),T.ALo(18,"translate"),T.qZA(),T.TgZ(19,"div",14),T._uU(20),T.qZA(),T.TgZ(21,"mat-slide-toggle",13),T.NdJ("toggleChange",function(){T.CHM(ne);const Ee=T.oxw();return T.KtG(Ee.changeAsyncMessage())})("ngModelChange",function(Ee){T.CHM(ne);const ot=T.oxw();return T.KtG(ot.async=Ee)}),T._uU(22),T.ALo(23,"translate"),T.qZA(),T.TgZ(24,"div",14),T._uU(25),T.qZA()()()()}if(2&Xe){const ne=T.MAs(8),ke=T.oxw();T.xp6(1),T.Q6J("linear",!0),T.xp6(2),T.Q6J("completed",0!==ke.selection.selected.length&&void 0!==ne&&ne.addAuth),T.xp6(2),T.s9C("placeholder",T.lcZ(6,19,"DIALOGS.ADD_GROUP_RESOURCES.FILTER")),T.xp6(2),T.Q6J("filterValue",ke.filterValue)("groupToResource",ke.data.group)("disableRouting",!0)("resources",ke.resources)("selection",ke.selection)("displayedColumns",T.DdM(27,L))("tableId",ke.tableId),T.xp6(4),T.Q6J("ngModel",ke.autoAssignSubgroups),T.xp6(1),T.hij(" ",T.lcZ(13,21,"DIALOGS.ADD_GROUP_RESOURCES.AUTO_SUBGROUPS")," "),T.xp6(3),T.Q6J("innerHTML",ke.autoAssignHint,T.oJD),T.xp6(1),T.Q6J("ngModel",ke.asActive),T.xp6(1),T.hij(" ",T.lcZ(18,23,"DIALOGS.ADD_GROUP_RESOURCES.AS_ACTIVE")," "),T.xp6(3),T.hij(" ",ke.asActiveHint," "),T.xp6(1),T.Q6J("ngModel",ke.async),T.xp6(1),T.hij(" ",T.lcZ(23,25,"DIALOGS.ADD_GROUP_RESOURCES.ASYNC_OPT")," "),T.xp6(3),T.hij(" ",ke.asyncHint," ")}}function Q(Xe,le){if(1&Xe){const ne=T.EpF();T.TgZ(0,"button",22),T.NdJ("click",function(){T.CHM(ne);const Ee=T.oxw(2);return T.KtG(Ee.stepperPrevious())}),T._uU(1),T.ALo(2,"translate"),T.qZA()}2&Xe&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"DIALOGS.ADD_GROUP_RESOURCES.BACK")," "))}function ae(Xe,le){if(1&Xe){const ne=T.EpF();T.TgZ(0,"button",23),T.NdJ("click",function(){T.CHM(ne);const Ee=T.oxw(2);return T.KtG(Ee.stepperNext())}),T._uU(1),T.ALo(2,"translate"),T.qZA()}if(2&Xe){const ne=T.oxw(2);T.ekj("ml-2",void 0!==ne.stepper&&0!==ne.stepper.selectedIndex)("ml-auto",!(void 0!==ne.stepper&&0!==ne.stepper.selectedIndex)),T.Q6J("disabled",0===ne.selection.selected.length||void 0!==ne.list&&!ne.list.addAuth),T.xp6(1),T.hij(" ",T.lcZ(2,6,"DIALOGS.ADD_GROUP_RESOURCES.NEXT")," ")}}function xe(Xe,le){if(1&Xe){const ne=T.EpF();T.TgZ(0,"button",24),T.NdJ("click",function(){T.CHM(ne);const Ee=T.oxw(2);return T.KtG(Ee.onSubmit())}),T._uU(1),T.ALo(2,"translate"),T.qZA()}if(2&Xe){const ne=T.oxw(2);T.Q6J("disabled",0===ne.selection.selected.length||ne.loading),T.xp6(1),T.hij(" ",T.lcZ(2,2,"DIALOGS.ADD_GROUP_RESOURCES.ADD")," ")}}function ge(Xe,le){if(1&Xe){const ne=T.EpF();T.TgZ(0,"div",16)(1,"button",17),T.NdJ("click",function(){T.CHM(ne);const Ee=T.oxw();return T.KtG(Ee.onCancel())}),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.YNc(4,Q,3,3,"button",18),T.YNc(5,ae,3,8,"button",19),T.TgZ(6,"span",20),T.ALo(7,"translate"),T.YNc(8,xe,3,4,"button",21),T.qZA()()}if(2&Xe){const ne=T.oxw();T.xp6(2),T.hij(" ",T.lcZ(3,6,"DIALOGS.ADD_GROUP_RESOURCES.CANCEL")," "),T.xp6(2),T.Q6J("ngIf",void 0!==ne.stepper&&0!==ne.stepper.selectedIndex),T.xp6(1),T.Q6J("ngIf",void 0!==ne.stepper&&ne.stepper.selectedIndex!==ne.stepper._steps.length-1),T.xp6(1),T.s9C("matTooltip",T.lcZ(7,8,"DIALOGS.ADD_GROUP_RESOURCES.ADD_PERMISSION_TOOLTIP")),T.Q6J("matTooltipDisabled",void 0===ne.list||ne.list.addAuth),T.xp6(2),T.Q6J("ngIf",void 0!==ne.stepper&&ne.stepper.selectedIndex===ne.stepper._steps.length-1)}}let Se=(()=>{class Xe{constructor(ne,ke,Ee,ot,it,oe,X){this.dialogRef=ne,this.data=ke,this.notificator=Ee,this.translate=ot,this.resourcesManager=it,this.guiAuthResolver=oe,this.cd=X,this.filterValue="",this.resources=[],this.selection=new e.Ov(!0,[]),this.theme="",this.async=!0,this.autoAssignSubgroups=!1,this.asActive=!0,this.tableId=A.dK}ngOnInit(){this.theme=this.data.theme,this.loading=!0,this.autoAssignHint=this.translate.instant("DIALOGS.ADD_GROUP_RESOURCES.AUTO_SUBGROUPS_OFF_HINT"),this.asActiveHint=this.translate.instant("DIALOGS.ADD_GROUP_RESOURCES.ACTIVE_ON_HINT"),this.asyncHint=this.translate.instant("DIALOGS.ADD_GROUP_RESOURCES.ASYNC_ON_HINT"),this.resourcesManager.getRichResources(this.data.group.voId).subscribe(ne=>{this.resourcesManager.getAssignedResourcesWithGroup(this.data.group.id).subscribe(ke=>{for(const Ee of ne)-1===ke.findIndex(ot=>ot.id===Ee.id)&&this.guiAuthResolver.isAuthorized("assignGroupToResources_Group_List_policy",[this.data.group,Ee])&&this.resources.push(Ee);this.loading=!1,this.cd.detectChanges()},()=>this.loading=!1)},()=>this.loading=!1)}applyFilter(ne){this.filterValue=ne}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;const ne=this.selection.selected.map(ke=>ke.id);this.resourcesManager.assignGroupToResources(this.data.group.id,ne,this.async,!this.asActive,this.autoAssignSubgroups).subscribe(()=>{this.translate.get("DIALOGS.ADD_GROUP_RESOURCES.SUCCESS").subscribe(ke=>{this.notificator.showSuccess(ke),this.dialogRef.close(!0)})},()=>this.loading=!1)}changeSubgroupsMessage(){this.autoAssignHint=this.translate.instant(this.autoAssignSubgroups?"DIALOGS.ADD_GROUP_RESOURCES.AUTO_SUBGROUPS_OFF_HINT":"DIALOGS.ADD_GROUP_RESOURCES.AUTO_SUBGROUPS_ON_HINT")}changeInactiveMessage(){this.asActiveHint=this.translate.instant(this.asActive?"DIALOGS.ADD_GROUP_RESOURCES.ACTIVE_OFF_HINT":"DIALOGS.ADD_GROUP_RESOURCES.ACTIVE_ON_HINT")}changeAsyncMessage(){this.asyncHint=this.translate.instant(this.async?"DIALOGS.ADD_GROUP_RESOURCES.ASYNC_OFF_HINT":"DIALOGS.ADD_GROUP_RESOURCES.ASYNC_ON_HINT")}stepperPrevious(){this.stepper.previous()}stepperNext(){this.stepper.next()}}return Xe.\u0275fac=function(ne){return new(ne||Xe)(T.Y36(w.so),T.Y36(w.WI),T.Y36(p.V6),T.Y36(E.sK),T.Y36(m.xk),T.Y36(p.x4),T.Y36(T.sBO))},Xe.\u0275cmp=T.Xpm({type:Xe,selectors:[["app-add-group-resource-dialog"]],viewQuery:function(ne,ke){if(1&ne&&(T.Gf(_e,5),T.Gf(ce,5)),2&ne){let Ee;T.iGM(Ee=T.CRH())&&(ke.list=Ee.first),T.iGM(Ee=T.CRH())&&(ke.stepper=Ee.first)}},decls:7,vars:9,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[3,"linear"],["stepper",""],[3,"completed"],["matStepLabel",""],[3,"placeholder","filter"],[3,"filterValue","groupToResource","disableRouting","resources","selection","displayedColumns","tableId"],["list",""],["labelPosition","before",1,"mt-3","slide-text",3,"ngModel","toggleChange","ngModelChange"],[1,"text-muted","new-line","mt-2"],[3,"innerHTML"],["mat-dialog-actions",""],["mat-flat-button","",3,"click"],["class","ml-auto","mat-flat-button","",3,"click",4,"ngIf"],["class","ml-auto","color","accent","mat-flat-button","","type","button",3,"ml-2","ml-auto","disabled","click",4,"ngIf"],[3,"matTooltipDisabled","matTooltip"],["class","ml-2","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","","type","button",1,"ml-auto",3,"disabled","click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(ne,ke){1&ne&&(T.TgZ(0,"div")(1,"h1",0),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.YNc(4,Te,1,0,"mat-spinner",1),T.YNc(5,V,26,28,"div",2),T.YNc(6,ge,9,10,"div",3),T.qZA()),2&ne&&(T.Tol(ke.theme),T.xp6(2),T.Oqu(T.lcZ(3,7,"DIALOGS.ADD_GROUP_RESOURCES.TITLE")),T.xp6(2),T.Q6J("ngIf",ke.loading),T.xp6(1),T.Q6J("ngIf",!ke.loading),T.xp6(1),T.Q6J("ngIf",!ke.loading&&void 0!==ke.stepper))},dependencies:[S.O5,R.JJ,R.On,v.lW,w.uh,w.xY,w.H8,D.Ou,F.gM,z.Rr,$.C0,$.VY,$.Vq,G.C,q.P,E.X$]}),Xe})();var Be=u(30671);function pe(Xe,le){1&Xe&&T._UZ(0,"mat-spinner",4)}function $e(Xe,le){1&Xe&&T._UZ(0,"th",13)}function Ce(Xe,le){if(1&Xe&&(T.TgZ(0,"td",14),T._uU(1),T.qZA()),2&Xe){const ne=le.$implicit;T.xp6(1),T.Oqu(ne.name)}}function de(Xe,le){1&Xe&&T._UZ(0,"tr",15)}function re(Xe,le){1&Xe&&T._UZ(0,"tr",16)}function B(Xe,le){if(1&Xe&&(T.TgZ(0,"div",5)(1,"p"),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.TgZ(4,"div",6),T._uU(5),T.ALo(6,"translate"),T.qZA(),T.TgZ(7,"table",7),T.ynx(8,8),T.YNc(9,$e,1,0,"th",9),T.YNc(10,Ce,2,1,"td",10),T.BQk(),T.YNc(11,de,1,0,"tr",11),T.YNc(12,re,1,0,"tr",12),T.qZA()()),2&Xe){const ne=T.oxw();T.xp6(2),T.hij(" ",T.lcZ(3,5,"DIALOGS.REMOVE_RESOURCES.DESCRIPTION")," "),T.xp6(3),T.hij(" ",T.lcZ(6,7,"DIALOGS.REMOVE_RESOURCES.ASK")," "),T.xp6(2),T.Q6J("dataSource",ne.dataSource),T.xp6(4),T.Q6J("matHeaderRowDef",ne.displayedColumns),T.xp6(1),T.Q6J("matRowDefColumns",ne.displayedColumns)}}function N(Xe,le){if(1&Xe){const ne=T.EpF();T.TgZ(0,"div",17)(1,"button",18),T.NdJ("click",function(){T.CHM(ne);const Ee=T.oxw();return T.KtG(Ee.onCancel())}),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.TgZ(4,"button",19),T.NdJ("click",function(){T.CHM(ne);const Ee=T.oxw();return T.KtG(Ee.onSubmit())}),T._uU(5),T.ALo(6,"translate"),T.qZA()()}if(2&Xe){const ne=T.oxw();T.xp6(2),T.hij(" ",T.lcZ(3,3,"DIALOGS.REMOVE_RESOURCES.CANCEL")," "),T.xp6(2),T.Q6J("disabled",ne.loading),T.xp6(1),T.hij(" ",T.lcZ(6,5,"DIALOGS.REMOVE_RESOURCES.DELETE")," ")}}let Me=(()=>{class Xe{constructor(ne,ke,Ee,ot,it){this.dialogRef=ne,this.data=ke,this.notificator=Ee,this.translate=ot,this.resourcesManager=it,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new Be.by(this.data.resources)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;const ne=this.data.resources.map(ke=>ke.id);this.resourcesManager.removeGroupFromResources(this.data.groupId,ne).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_RESOURCES.SUCCESS").subscribe(ke=>{this.loading=!1,this.notificator.showSuccess(ke),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return Xe.\u0275fac=function(ne){return new(ne||Xe)(T.Y36(w.so),T.Y36(w.WI),T.Y36(p.V6),T.Y36(E.sK),T.Y36(m.xk))},Xe.\u0275cmp=T.Xpm({type:Xe,selectors:[["app-remove-group-resource-dialog"]],decls:7,vars:9,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(ne,ke){1&ne&&(T.TgZ(0,"div")(1,"h1",0),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.YNc(4,pe,1,0,"mat-spinner",1),T.YNc(5,B,13,9,"div",2),T.YNc(6,N,7,7,"div",3),T.qZA()),2&ne&&(T.Tol(ke.data.theme),T.xp6(2),T.Oqu(T.lcZ(3,7,"DIALOGS.REMOVE_RESOURCES.TITLE")),T.xp6(2),T.Q6J("ngIf",ke.loading),T.xp6(1),T.Q6J("ngIf",!ke.loading),T.xp6(1),T.Q6J("ngIf",!ke.loading))},dependencies:[S.O5,v.lW,Be.BZ,Be.fO,Be.as,Be.w1,Be.Dz,Be.nj,Be.ge,Be.ev,Be.XQ,Be.Gk,w.uh,w.xY,w.H8,D.Ou,E.X$]}),Xe})();var Y=u(9244),be=u(96214),De=u(7434);const We=["list"];function Pe(Xe,le){if(1&Xe){const ne=T.EpF();T.TgZ(0,"button",8),T.NdJ("click",function(){T.CHM(ne);const Ee=T.oxw();return T.KtG(Ee.addResource())}),T._uU(1),T.ALo(2,"translate"),T.qZA()}2&Xe&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"GROUP_DETAIL.RESOURCES.ADD")," "))}function nt(Xe,le){1&Xe&&T._UZ(0,"mat-spinner",9)}const Ye=function(){return["select","id","indirectResourceAssigment","name","status","facility","tags","description"]};function Tt(Xe,le){if(1&Xe){const ne=T.EpF();T.TgZ(0,"perun-web-apps-resources-list",10,11),T.NdJ("refreshTable",function(){T.CHM(ne);const Ee=T.oxw();return T.KtG(Ee.refreshTable())}),T.qZA()}if(2&Xe){const ne=T.oxw();T.Q6J("disableRouting",!ne.routingAuth)("filterValue",ne.filterValue)("resources",ne.resources)("routingVo",!0)("displayedColumns",T.DdM(10,Ye))("selection",ne.selected)("groupId",ne.group.id)("groupToResource",ne.group)("resourcesToDisableCheckbox",ne.resourcesToDisable)("tableId",ne.tableId)}}let J=(()=>{class Xe{constructor(ne,ke,Ee,ot,it){this.resourcesManager=ne,this.groupService=ke,this.dialog=Ee,this.guiAuthResolver=ot,this.entityStorageService=it,this.resources=null,this.selected=new e.Ov(!0,[]),this.filterValue="",this.tableId=A.v1,this.addAuth=!1}ngOnInit(){this.group=this.entityStorageService.getEntity(),this.setAuthorization(),this.refreshTable()}setAuthorization(){null!==this.resources&&0!==this.resources.length&&(this.routingAuth=this.guiAuthResolver.isAuthorized("getResourceById_int_policy",[this.resources[0]])),this.addAuth=this.guiAuthResolver.isAuthorized("getResources_Vo_policy",[this.group])}refreshTable(){this.loading=!0,this.resourcesManager.getResourceAssignments(this.group.id).subscribe(ne=>{this.resources=ne.map(ke=>{const Ee=ke.enrichedResource.resource;return Ee.facility=ke.facility,Ee.status=ke.status,Ee.resourceTags=ke.resourceTags,Ee.failureCause=ke.failureCause,Ee.sourceGroupId=ke.sourceGroupId,Ee}),this.selected.clear(),this.resourcesToDisable=new Set(this.resources.filter(ke=>null!==ke.sourceGroupId).map(ke=>ke.id)),this.setAuthorization(),this.loading=!1})}applyFilter(ne){this.filterValue=ne}addResource(){const ne=(0,Y.kZ)();ne.width="1000px",ne.data={theme:"group-theme",group:this.group},this.dialog.open(Se,ne).afterClosed().subscribe(Ee=>{Ee&&this.refreshTable()})}removeResource(){const ne=(0,Y.kZ)();ne.width="450px",ne.data={theme:"group-theme",resources:this.selected.selected,groupId:this.group.id},this.dialog.open(Me,ne).afterClosed().subscribe(Ee=>{Ee&&(this.selected.clear(),this.refreshTable())})}}return Xe.id="GroupResourcesComponent",Xe.\u0275fac=function(ne){return new(ne||Xe)(T.Y36(m.xk),T.Y36(m.ff),T.Y36(w.uw),T.Y36(p.x4),T.Y36(p.fb))},Xe.\u0275cmp=T.Xpm({type:Xe,selectors:[["app-group-resources"]],viewQuery:function(ne,ke){if(1&ne&&T.Gf(We,5),2&ne){let Ee;T.iGM(Ee=T.CRH())&&(ke.list=Ee.first)}},hostVars:2,hostBindings:function(ne,ke){2&ne&&T.ekj("router-component",ke.true)},decls:14,vars:15,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","class","mr-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],[3,"matTooltipDisabled","matTooltip"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableRouting","filterValue","resources","routingVo","displayedColumns","selection","groupId","groupToResource","resourcesToDisableCheckbox","tableId","refreshTable",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],[1,"ml-auto","mr-auto"],[3,"disableRouting","filterValue","resources","routingVo","displayedColumns","selection","groupId","groupToResource","resourcesToDisableCheckbox","tableId","refreshTable"],["list",""]],template:function(ne,ke){1&ne&&(T.TgZ(0,"div")(1,"h1",0),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.TgZ(4,"perun-web-apps-refresh-button",1),T.NdJ("refresh",function(){return ke.refreshTable()}),T.qZA(),T.YNc(5,Pe,3,3,"button",2),T.TgZ(6,"span",3),T.ALo(7,"translate"),T.TgZ(8,"button",4),T.NdJ("click",function(){return ke.removeResource()}),T._uU(9),T.ALo(10,"translate"),T.qZA()(),T.TgZ(11,"perun-web-apps-immediate-filter",5),T.NdJ("filter",function(ot){return ke.applyFilter(ot)}),T.qZA(),T.YNc(12,nt,1,0,"mat-spinner",6),T.YNc(13,Tt,2,11,"perun-web-apps-resources-list",7),T.qZA()),2&ne&&(T.xp6(2),T.Oqu(T.lcZ(3,9,"GROUP_DETAIL.RESOURCES.TITLE")),T.xp6(3),T.Q6J("ngIf",ke.addAuth),T.xp6(1),T.s9C("matTooltip",T.lcZ(7,11,"GROUP_DETAIL.RESOURCES.DELETE_PERMISSION_HINT")),T.Q6J("matTooltipDisabled",0===ke.selected.selected.length||void 0!==ke.list&&ke.list.removeAuth),T.xp6(2),T.Q6J("disabled",0===ke.selected.selected.length||void 0!==ke.list&&!ke.list.removeAuth),T.xp6(1),T.hij(" ",T.lcZ(10,13,"GROUP_DETAIL.RESOURCES.DELETE")," "),T.xp6(2),T.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),T.xp6(1),T.Q6J("ngIf",ke.loading),T.xp6(1),T.Q6J("ngIf",ke.resources&&!ke.loading))},dependencies:[S.O5,v.lW,D.Ou,F.gM,be.t,De.L,G.C,E.X$]}),Xe})()},61639:(Qe,he,u)=>{"use strict";u.d(he,{C:()=>p});var e=u(32105),m=u(69723),A=u(94650),w=u(79394);let p=(()=>{class g{constructor(E,S,R){this.authzResolverService=E,this.entityStorageService=S,this.roleService=R,this.roles=new Map}ngOnInit(){this.groupId=this.entityStorageService.getEntity().id,this.getData()}getData(){this.outerLoading=!0,this.roles.clear(),this.authzResolverService.getGroupRoles(this.groupId).subscribe(E=>{const S=Object.keys(E).map(R=>R.toUpperCase());this.roles=this.roleService.prepareRoles(E,S),this.outerLoading=!1})}}return g.id="GroupRolesComponent",g.\u0275fac=function(E){return new(E||g)(A.Y36(e.Ct),A.Y36(m.fb),A.Y36(m.Nj))},g.\u0275cmp=A.Xpm({type:g,selectors:[["app-group-roles"]],hostVars:2,hostBindings:function(E,S){2&E&&A.ekj("router-component",S.true)},decls:1,vars:5,consts:[[3,"outerLoading","roles","entityId","entityType","showDescription","reload","startLoading"]],template:function(E,S){1&E&&(A.TgZ(0,"app-perun-web-apps-roles-page",0),A.NdJ("reload",function(){return S.getData()})("startLoading",function(){return S.outerLoading=!0}),A.qZA()),2&E&&A.Q6J("outerLoading",S.outerLoading)("roles",S.roles)("entityId",S.groupId)("entityType","GROUP")("showDescription",!0)},dependencies:[w._]}),g})()},14336:(Qe,he,u)=>{"use strict";u.d(he,{Z:()=>Me});var e=u(69723),m=u(51076),A=u(83491),w=u(95502),p=u(1186),g=u(32105),T=u(9244),E=u(94650),S=u(65412),R=u(89383),v=u(94364),D=u(36895),F=u(24006),z=u(97392),$=u(4859),G=u(51572),q=u(10266),_e=u(90455),ce=u(44850),Te=u(98380),b=u(96214),H=u(157);const L=["autoRegToggle"];function V(Y,be){1&Y&&E._UZ(0,"mat-spinner",3)}function Q(Y,be){if(1&Y&&(E.TgZ(0,"span"),E._uU(1," , "),E.TgZ(2,"mat-icon",22),E._uU(3,"nat"),E.qZA(),E._uU(4),E.ALo(5,"translate"),E.ALo(6,"translate"),E.qZA()),2&Y){const De=E.oxw(3);E.xp6(4),E.hij(" ",De.applicationForm.automaticApprovalEmbedded?E.lcZ(5,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):E.lcZ(6,3,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," ")}}function ae(Y,be){if(1&Y){const De=E.EpF();E.TgZ(0,"div")(1,"mat-slide-toggle",23,24),E.NdJ("change",function(){E.CHM(De);const Pe=E.oxw(3);return E.KtG(Pe.updateAutoRegistration())}),E._uU(3),E.ALo(4,"translate"),E.qZA()()}if(2&Y){const De=E.oxw(3);E.xp6(1),E.Q6J("disabled",!De.changeAutoRegistration)("ngModel",De.autoRegistrationEnabled),E.xp6(2),E.hij(" ",E.lcZ(4,3,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.ALLOW_EMBEDDED")," ")}}function xe(Y,be){if(1&Y){const De=E.EpF();E.TgZ(0,"button",25),E.NdJ("click",function(){E.CHM(De);const Pe=E.oxw(3);return E.KtG(Pe.settings())}),E.TgZ(1,"i",12),E._uU(2,"edit"),E.qZA(),E._uU(3),E.ALo(4,"translate"),E.qZA()}2&Y&&(E.xp6(3),E.hij(" ",E.lcZ(4,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.SETTINGS_BUTTON")," "))}function ge(Y,be){if(1&Y&&(E.TgZ(0,"div",15)(1,"div",16)(2,"div",17),E._uU(3),E.ALo(4,"translate"),E.qZA(),E.TgZ(5,"div")(6,"span",17),E._uU(7),E.ALo(8,"translate"),E.qZA(),E._uU(9,": "),E.TgZ(10,"mat-icon",18),E._uU(11,"arrow_right_alt"),E.qZA(),E._uU(12),E.ALo(13,"translate"),E.ALo(14,"translate"),E.TgZ(15,"mat-icon",19),E._uU(16,"restore"),E.qZA(),E._uU(17),E.ALo(18,"translate"),E.ALo(19,"translate"),E.YNc(20,Q,7,5,"span",2),E.qZA(),E.YNc(21,ae,5,5,"div",2),E.qZA(),E.TgZ(22,"div",20),E.YNc(23,xe,5,3,"button",21),E.qZA()()),2&Y){const De=E.oxw(2);E.xp6(1),E.Q6J("ngClass",De.autoRegistrationEnabled?"w-75":"w-50"),E.xp6(2),E.AsE(" ",E.lcZ(4,9,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MODULE_NAME"),": ",De.applicationForm.moduleClassName," "),E.xp6(4),E.Oqu(E.lcZ(8,11,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.APPLICATION_TYPE")),E.xp6(5),E.hij(" ",De.applicationForm.automaticApproval?E.lcZ(13,13,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):E.lcZ(14,15,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," , "),E.xp6(5),E.hij(" ",De.applicationForm.automaticApprovalExtension?E.lcZ(18,17,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):E.lcZ(19,19,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," "),E.xp6(3),E.Q6J("ngIf",De.autoRegistrationEnabled),E.xp6(1),E.Q6J("ngIf",De.voHasEmbeddedGroupApplication),E.xp6(2),E.Q6J("ngIf",De.editAuth)}}function Se(Y,be){if(1&Y){const De=E.EpF();E.TgZ(0,"button",26),E.NdJ("click",function(){E.CHM(De);const Pe=E.oxw(2);return E.KtG(Pe.add())}),E._uU(1),E.ALo(2,"translate"),E.qZA()}2&Y&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.ADD_BUTTON")," "))}function Be(Y,be){if(1&Y){const De=E.EpF();E.TgZ(0,"button",27),E.NdJ("click",function(){E.CHM(De);const Pe=E.oxw(2);return E.KtG(Pe.save())}),E.TgZ(1,"i",12),E._uU(2,"save"),E.qZA(),E._uU(3),E.ALo(4,"translate"),E.qZA()}if(2&Y){const De=E.oxw(2);E.Q6J("disabled",!De.itemsChanged),E.xp6(3),E.hij(" ",E.lcZ(4,2,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SAVE_BUTTON")," ")}}function pe(Y,be){if(1&Y){const De=E.EpF();E.TgZ(0,"button",28),E.NdJ("click",function(){E.CHM(De);const Pe=E.oxw(2);return E.KtG(Pe.copy())}),E.TgZ(1,"i",12),E._uU(2,"file_copy"),E.qZA(),E._uU(3),E.ALo(4,"translate"),E.qZA()}2&Y&&(E.xp6(3),E.hij(" ",E.lcZ(4,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.COPY_GROUP_BUTTON")," "))}function $e(Y,be){1&Y&&(E.TgZ(0,"perun-web-apps-alert",29),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&Y&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.DRAG_AND_DROP_INFO")," "))}const Ce=function(){return["drag","shortname","type","disabled","hidden","preview","managegroups","edit","delete"]},de=function(){return["shortname","type","disabled","hidden","preview","managegroups"]};function re(Y,be){if(1&Y){const De=E.EpF();E.TgZ(0,"div"),E.YNc(1,ge,24,21,"div",4),E._UZ(2,"mat-divider",5),E.TgZ(3,"div",6)(4,"perun-web-apps-refresh-button",7),E.NdJ("refresh",function(){E.CHM(De);const Pe=E.oxw();return E.KtG(Pe.updateFormItems())}),E.qZA(),E.YNc(5,Se,3,3,"button",8),E.YNc(6,Be,5,4,"button",9),E.YNc(7,pe,5,3,"button",10),E.TgZ(8,"button",11),E.NdJ("click",function(){E.CHM(De);const Pe=E.oxw();return E.KtG(Pe.preview())}),E.TgZ(9,"i",12),E._uU(10,"search"),E.qZA(),E._uU(11),E.ALo(12,"translate"),E.qZA()(),E.YNc(13,$e,3,3,"perun-web-apps-alert",13),E.TgZ(14,"app-application-form-list",14),E.NdJ("applicationFormItemsChange",function(){E.CHM(De);const Pe=E.oxw();return E.KtG(Pe.changeItems())}),E.qZA()()}if(2&Y){const De=E.oxw();E.xp6(1),E.Q6J("ngIf",!De.loading),E.xp6(4),E.Q6J("ngIf",De.editAuth),E.xp6(1),E.Q6J("ngIf",De.editAuth),E.xp6(1),E.Q6J("ngIf",De.editAuth),E.xp6(4),E.hij(" ",E.lcZ(12,12,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_BUTTON")," "),E.xp6(2),E.Q6J("ngIf",De.editAuth),E.xp6(1),E.Q6J("applicationForm",De.applicationForm)("applicationFormItems",De.applicationFormItems)("loading",De.loading)("displayedColumns",De.editAuth?E.DdM(14,Ce):E.DdM(15,de))("refreshApplicationForm",De.refreshApplicationForm)("theme","group-theme")}}function B(Y,be){if(1&Y){const De=E.EpF();E.TgZ(0,"button",32),E.NdJ("click",function(){E.CHM(De);const Pe=E.oxw(2);return E.KtG(Pe.createEmptyApplicationForm())}),E._uU(1),E.ALo(2,"translate"),E.qZA()}2&Y&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.CREATE_APPLICATION_FORM")," "))}function N(Y,be){if(1&Y&&(E.TgZ(0,"div")(1,"perun-web-apps-alert",30),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.YNc(4,B,3,3,"button",31),E.qZA()),2&Y){const De=E.oxw();E.xp6(2),E.Oqu(E.lcZ(3,2,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.NO_APPLICATION_FORM")),E.xp6(2),E.Q6J("ngIf",De.createEmptyForm)}}let Me=(()=>{class Y{constructor(De,We,Pe,nt,Ye,Tt,J,Xe,le){this.registrarManager=De,this.dialog=We,this.notificator=Pe,this.translate=nt,this.apiRequest=Ye,this.router=Tt,this.guiAuthResolver=J,this.attributesManager=Xe,this.entityStorageService=le,this.loading=!1,this.applicationFormItems=[],this.noApplicationForm=!1,this.itemsChanged=!1,this.editAuth=!1,this.createEmptyForm=!1,this.voHasEmbeddedGroupApplication=!1,this.refreshApplicationForm=!1,this.idCounter=-1}ngOnInit(){this.loading=!0,this.group=this.entityStorageService.getEntity(),this.setAuth(),this.apiRequest.dontHandleErrorForNext(),this.registrarManager.getGroupApplicationForm(this.group.id).subscribe(De=>{this.applicationForm=De,this.registrarManager.getFormItemsForGroup(this.group.id).subscribe(We=>{this.applicationFormItems=We,this.attributesManager.getGroupAttributeByName(this.group.id,"urn:perun:group:attribute-def:virt:autoRegistrationEnabled").subscribe(Pe=>{this.voHasEmbeddedGroupApplication=null!==Pe.value,this.autoRegistrationEnabled=!!Pe.value,this.loading=!1})},()=>this.loading=!1)},De=>{"FormNotExistsException"===De.name?(this.noApplicationForm=!0,this.loading=!1):this.notificator.showRPCError(De)})}setAuth(){this.editAuth=this.guiAuthResolver.isAuthorized("group-updateFormItems_ApplicationForm_List_policy",[this.group]),this.createEmptyForm=this.guiAuthResolver.isAuthorized("createApplicationFormInGroup_Group_policy",[this.group]),this.changeAutoRegistration=this.guiAuthResolver.isAuthorized("addGroupsToAutoRegistration_List_policy",[this.group])}add(){let De=(0,T.kZ)();De.width="500px",De.data={applicationFormItems:this.applicationFormItems,fakeId:this.idCounter--},this.dialog.open(m.J,De).afterClosed().subscribe(Pe=>{Pe&&(this.applicationFormItems=Object.assign([],Pe[0]),De=(0,T.kZ)(),De.width="600px",De.height="600px",De.data={voId:this.group.voId,groupId:this.group.id,applicationFormItem:Pe[1],theme:"group-theme",allItems:this.applicationFormItems},this.dialog.open(A._,De),this.itemsChanged=!0)})}copy(){const De=(0,T.kZ)();De.width="500px",De.data={voId:this.group.voId,groupId:this.group.id,theme:"group-theme"},this.dialog.open(w.W,De).afterClosed().subscribe(Pe=>{Pe&&this.updateFormItems()})}settings(){const De=(0,T.kZ)();De.width="400px",De.data={entity:"group",applicationForm:this.applicationForm,theme:"group-theme",autoRegistrationEnabled:this.autoRegistrationEnabled},this.dialog.open(p.E,De).afterClosed().subscribe(Pe=>{Pe&&(this.translate.get("GROUP_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_SETTINGS_SUCCESS").subscribe(nt=>{this.notificator.showSuccess(nt)}),this.applicationForm=Pe)})}preview(){this.router.navigate(["/organizations",this.group.voId,"groups",this.group.id,"settings","applicationForm","preview"],{queryParams:{applicationFormItems:JSON.stringify(this.applicationFormItems)},queryParamsHandling:"merge"})}updateFormItems(){this.loading=!0,this.refreshApplicationForm=!0,this.registrarManager.getFormItemsForGroup(this.group.id).subscribe({next:De=>{this.applicationFormItems=De,this.itemsChanged=!1,this.refreshApplicationForm=!1,this.loading=!1},error:()=>this.loading=!1})}changeItems(){this.itemsChanged=!0}createEmptyApplicationForm(){this.registrarManager.createApplicationFormInGroup(this.group.id).subscribe(()=>{this.noApplicationForm=!1,this.ngOnInit()})}save(){let De=0;for(const We of this.applicationFormItems)We.ordnum=De,We.forDelete||De++;this.registrarManager.updateFormItemsForGroup({group:this.group.id,items:this.applicationFormItems}).subscribe(()=>{this.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_APPLICATION_FORM_ITEMS_SUCCESS").subscribe(We=>{this.notificator.showSuccess(We)}),this.updateFormItems()})}clear(){this.applicationFormItems=[],this.itemsChanged=!0}updateAutoRegistration(){this.autoRegToggle.setDisabledState(!0),this.autoRegistrationEnabled?this.registrarManager.deleteGroupsFromAutoRegistration([this.group.id]).subscribe(()=>{this.autoRegistrationEnabled=!this.autoRegistrationEnabled,this.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_SETTINGS_SUCCESS").subscribe(De=>{this.notificator.showSuccess(De)}),this.autoRegToggle.setDisabledState(!1)},()=>this.autoRegToggle.setDisabledState(!1)):this.registrarManager.addGroupsToAutoRegistration([this.group.id]).subscribe(()=>{this.autoRegistrationEnabled=!this.autoRegistrationEnabled,this.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_SETTINGS_SUCCESS").subscribe(De=>{this.notificator.showSuccess(De)}),this.autoRegToggle.setDisabledState(!1)},()=>this.autoRegToggle.setDisabledState(!1))}}return Y.id="GroupSettingsApplicationFormComponent",Y.\u0275fac=function(De){return new(De||Y)(E.Y36(g.tk),E.Y36(S.uw),E.Y36(e.V6),E.Y36(R.sK),E.Y36(e.F5),E.Y36(v.F0),E.Y36(e.x4),E.Y36(g.H8),E.Y36(e.fb))},Y.\u0275cmp=E.Xpm({type:Y,selectors:[["app-group-settings-application-form"]],viewQuery:function(De,We){if(1&De&&E.Gf(L,5),2&De){let Pe;E.iGM(Pe=E.CRH())&&(We.autoRegToggle=Pe.first)}},hostVars:2,hostBindings:function(De,We){2&De&&E.ekj("router-component",We.true)},decls:6,vars:6,consts:[[1,"page-subtitle"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["class","d-flex w-50",4,"ngIf"],[1,"mb-2","mt-2"],[1,"w-100","d-flex"],[3,"refresh"],["color","accent","class","mr-2 action-button","data-cy","add-form-item","mat-flat-button","",3,"click",4,"ngIf"],["color","accent","class","mr-2","data-cy","save-application-form","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","mr-2 action-button","mat-stroked-button","",3,"click",4,"ngIf"],["mat-stroked-button","",3,"click"],[1,"material-icons"],["alert_type","info",4,"ngIf"],[3,"applicationForm","applicationFormItems","loading","displayedColumns","refreshApplicationForm","theme","applicationFormItemsChange"],[1,"d-flex","w-50"],[3,"ngClass"],[1,"font-weight-bold"],["matTooltip","Initial",1,"align-text-bottom"],["matTooltip","Extension",1,"align-text-bottom"],[1,"w-25"],["class","ml-auto action-button","mat-stroked-button","",3,"click",4,"ngIf"],["matTooltip","Embedded",1,"align-text-bottom"],["color","primary",3,"disabled","ngModel","change"],["autoRegToggle",""],["mat-stroked-button","",1,"ml-auto","action-button",3,"click"],["color","accent","data-cy","add-form-item","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","accent","data-cy","save-application-form","mat-flat-button","",1,"mr-2",3,"disabled","click"],["mat-stroked-button","",1,"mr-2","action-button",3,"click"],["alert_type","info"],["alert_type","warn"],["data-cy","create-empty-form","mat-stroked-button","",3,"click",4,"ngIf"],["data-cy","create-empty-form","mat-stroked-button","",3,"click"]],template:function(De,We){1&De&&(E.TgZ(0,"h1",0),E._uU(1),E.ALo(2,"translate"),E.qZA(),E.YNc(3,V,1,0,"mat-spinner",1),E.YNc(4,re,15,16,"div",2),E.YNc(5,N,5,4,"div",2)),2&De&&(E.xp6(1),E.hij(" ",E.lcZ(2,4,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.TITLE"),"\n"),E.xp6(2),E.Q6J("ngIf",We.loading),E.xp6(1),E.Q6J("ngIf",!We.noApplicationForm),E.xp6(1),E.Q6J("ngIf",!We.loading&&We.noApplicationForm))},dependencies:[D.mk,D.O5,F.JJ,F.On,z.Hw,$.lW,G.Ou,q.gM,_e.Rr,ce.d,Te.w,b.t,H.b,R.X$]}),Y})()},15592:(Qe,he,u)=>{"use strict";u.d(he,{u:()=>B});var e=u(81889),m=u(95017),A=u(41656),w=u(9244),p=u(32105),g=u(64080),T=u(10036),E=u(87842),S=u(69723),R=u(54004),v=u(68675),D=u(94650),F=u(65412),z=u(36895),$=u(24006),G=u(4859),q=u(51572),_e=u(10266),ce=u(90455),Te=u(25788),b=u(96214),H=u(58956),L=u(64901),V=u(89383);const Q=["toggle"];function ae(N,Me){if(1&N){const Y=D.EpF();D.TgZ(0,"button",9),D.NdJ("click",function(){D.CHM(Y);const De=D.oxw();return D.KtG(De.onCreateGroup())}),D._uU(1),D.ALo(2,"translate"),D.qZA()}2&N&&(D.xp6(1),D.hij(" ",D.lcZ(2,1,"GROUP_DETAIL.SUBGROUPS.CREATE_GROUP")," "))}function xe(N,Me){if(1&N){const Y=D.EpF();D.TgZ(0,"button",12),D.NdJ("click",function(){D.CHM(Y);const De=D.oxw(2);return D.KtG(De.deleteGroup())}),D._uU(1),D.ALo(2,"translate"),D.qZA()}if(2&N){const Y=D.oxw().ngIf,be=D.oxw();D.Q6J("disabled",0===be.selected.selected.length||!Y.removeAuth),D.xp6(1),D.hij(" ",D.lcZ(2,2,"GROUP_DETAIL.SUBGROUPS.DELETE_GROUP")," ")}}function ge(N,Me){if(1&N&&(D.TgZ(0,"span",10),D.ALo(1,"translate"),D.YNc(2,xe,3,4,"button",11),D.qZA()),2&N){const Y=Me.ngIf,be=D.oxw();D.s9C("matTooltip",D.lcZ(1,3,"GROUP_DETAIL.SUBGROUPS.DELETE_PERMISSION_HINT")),D.Q6J("matTooltipDisabled",0===be.selected.selected.length||Y.removeAuth),D.xp6(2),D.Q6J("ngIf",be.deleteAuth)}}function Se(N,Me){1&N&&D._UZ(0,"mat-spinner",13)}function Be(N,Me){if(1&N){const Y=D.EpF();D.TgZ(0,"perun-web-apps-groups-tree",17),D.NdJ("moveGroup",function(De){D.CHM(Y);const We=D.oxw(2);return D.KtG(We.onMoveGroup(De))})("refreshTable",function(){D.CHM(Y);const De=D.oxw(2);return D.KtG(De.refreshTable())}),D.qZA()}if(2&N){const Y=D.oxw(2);D.Q6J("disableRouting",!Y.routeAuth)("expandAll",Y.filtering)("groups",Y.groups)("hideCheckbox",!Y.deleteAuth)("filterValue",Y.filterValue)("selection",Y.selected)}}const pe=function(){return["select","id","name","description","menu"]},$e=function(){return["id","name","description","menu"]};function Ce(N,Me){if(1&N){const Y=D.EpF();D.TgZ(0,"perun-web-apps-groups-list",18),D.NdJ("groupMoved",function(De){D.CHM(Y);const We=D.oxw(2);return D.KtG(We.onMoveGroup(De))})("refreshTable",function(){D.CHM(Y);const De=D.oxw(2);return D.KtG(De.refreshTable())}),D.qZA()}if(2&N){const Y=D.oxw(2);D.Q6J("disableMembers",!0)("disableRouting",!Y.routeAuth)("displayedColumns",Y.deleteAuth?D.DdM(7,pe):D.DdM(8,$e))("groups",Y.groups)("selection",Y.selected)("filter",Y.filterValue)("tableId",Y.tableId)}}function de(N,Me){if(1&N&&(D.TgZ(0,"div",14),D.YNc(1,Be,1,6,"perun-web-apps-groups-tree",15),D.YNc(2,Ce,1,9,"perun-web-apps-groups-list",16),D.qZA()),2&N){const Y=D.oxw();D.xp6(1),D.Q6J("ngIf",!Y.showGroupList),D.xp6(1),D.Q6J("ngIf",Y.showGroupList)}}const re=function(N){return{removeAuth:N}};let B=(()=>{class N{constructor(Y,be,De,We){this.dialog=Y,this.groupService=be,this.guiAuthResolver=De,this.entityStorageService=We,this.groups=[],this.selected=new m.Ov(!0,[]),this.showGroupList=!1,this.filtering=!1,this.tableId=T.bf,this.filterValue="",this.removeAuth$=this.selected.changed.pipe((0,R.U)(Pe=>Pe.source.selected.reduce((nt,Ye)=>nt&&this.guiAuthResolver.isAuthorized("deleteGroup_Group_boolean_policy",[Ye]),!0)),(0,v.O)(!0))}onCreateGroup(){const Y=(0,w.kZ)();Y.width="450px",Y.data={parentGroup:this.group,theme:"group-theme"},this.dialog.open(e.y,Y).afterClosed().subscribe(De=>{De&&(this.loading=!0,this.refreshTable())})}ngOnInit(){"list"===localStorage.getItem("preferedValue")&&(this.toggle.toggle(),this.selected.clear(),this.showGroupList=!0),this.toggle.change.subscribe(()=>{localStorage.setItem("preferedValue",this.toggle.checked?"list":"tree")}),this.group=this.entityStorageService.getEntity(),this.setAuthRights(),this.refreshTable()}setAuthRights(){this.createAuth=this.guiAuthResolver.isAuthorized("createGroup_Group_Group_policy",[this.group]),this.deleteAuth=this.guiAuthResolver.isAuthorized("deleteGroups_List_boolean_policy",[this.group]),0!==this.groups.length&&(this.routeAuth=this.guiAuthResolver.isAuthorized("getGroupById_int_policy",[this.groups[0]]))}deleteGroup(){const Y=(0,w.kZ)();Y.width="450px",Y.data={voId:this.group.id,groups:this.selected.selected,theme:"group-theme"},this.dialog.open(A.P,Y).afterClosed().subscribe(De=>{De&&this.refreshTable()})}refreshTable(){this.loading=!0,this.groupService.getAllRichSubGroupsWithGroupAttributesByNames(this.group.id,[g.r.GROUP_DEF_MAIL_FOOTER,g.r.GROUP_SYNC_ENABLED,g.r.GROUP_LAST_SYNC_STATE,g.r.GROUP_LAST_SYNC_TIMESTAMP,g.r.GROUP_STRUCTURE_SYNC_ENABLED,g.r.GROUP_LAST_STRUCTURE_SYNC_STATE,g.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP]).subscribe(Y=>{this.groups=Y,this.selected.clear(),this.setAuthRights(),this.loading=!1})}applyFilter(Y){this.filterValue=Y,this.filtering=""!==Y}onMoveGroup(Y){const be=(0,w.kZ)();be.width="550px",be.data={group:Y,theme:"group-theme"},this.dialog.open(E.c,be).afterClosed().subscribe(We=>{We&&this.refreshTable()})}}return N.id="GroupSubgroupsComponent",N.\u0275fac=function(Y){return new(Y||N)(D.Y36(F.uw),D.Y36(p.ff),D.Y36(S.x4),D.Y36(S.fb))},N.\u0275cmp=D.Xpm({type:N,selectors:[["app-group-subgroups"]],viewQuery:function(Y,be){if(1&Y&&D.Gf(Q,7),2&Y){let De;D.iGM(De=D.CRH())&&(be.toggle=De.first)}},hostVars:2,hostBindings:function(Y,be){2&Y&&D.ekj("router-component",be.true)},decls:18,vars:20,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2 action-button","color","accent","data-cy","new-subgroup-button","mat-flat-button","",3,"click",4,"ngIf"],[3,"matTooltipDisabled","matTooltip",4,"ngIf"],[3,"placeholder","filter"],["color","primary","labelPosition","before",1,"mr-1",3,"ngModel","change","ngModelChange"],["toggle",""],["class","ml-auto mr-auto",4,"ngIf"],["class","mt-3",4,"ngIf"],["color","accent","data-cy","new-subgroup-button","mat-flat-button","",1,"mr-2","action-button",3,"click"],[3,"matTooltipDisabled","matTooltip"],["color","warn","class","mr-2","data-cy","delete-group-button","mat-flat-button","",3,"disabled","click",4,"ngIf"],["color","warn","data-cy","delete-group-button","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[1,"mt-3"],[3,"disableRouting","expandAll","groups","hideCheckbox","filterValue","selection","moveGroup","refreshTable",4,"ngIf"],[3,"disableMembers","disableRouting","displayedColumns","groups","selection","filter","tableId","groupMoved","refreshTable",4,"ngIf"],[3,"disableRouting","expandAll","groups","hideCheckbox","filterValue","selection","moveGroup","refreshTable"],[3,"disableMembers","disableRouting","displayedColumns","groups","selection","filter","tableId","groupMoved","refreshTable"]],template:function(Y,be){if(1&Y&&(D.TgZ(0,"div")(1,"h1",0),D._uU(2),D.ALo(3,"translate"),D.qZA(),D.TgZ(4,"perun-web-apps-refresh-button",1),D.NdJ("refresh",function(){return be.refreshTable()}),D.qZA(),D.YNc(5,ae,3,3,"button",2),D.YNc(6,ge,3,5,"span",3),D.ALo(7,"async"),D.TgZ(8,"perun-web-apps-debounce-filter",4),D.NdJ("filter",function(We){return be.applyFilter(We)}),D.qZA(),D.TgZ(9,"mat-slide-toggle",5,6),D.NdJ("change",function(){return be.selected.clear()})("ngModelChange",function(We){return be.showGroupList=We}),D._uU(11),D.ALo(12,"translate"),D.qZA(),D.TgZ(13,"label"),D._uU(14),D.ALo(15,"translate"),D.qZA(),D.YNc(16,Se,1,0,"mat-spinner",7),D.YNc(17,de,3,2,"div",8),D.qZA()),2&Y){const De=D.MAs(10);D.xp6(2),D.Oqu(D.lcZ(3,10,"GROUP_DETAIL.SUBGROUPS.TITLE")),D.xp6(3),D.Q6J("ngIf",be.createAuth),D.xp6(1),D.Q6J("ngIf",D.VKq(18,re,D.lcZ(7,12,be.removeAuth$))),D.xp6(2),D.Q6J("placeholder","GROUP_DETAIL.SUBGROUPS.FILTER"),D.xp6(1),D.Q6J("ngModel",be.showGroupList),D.xp6(2),D.Oqu(D.lcZ(12,14,"GROUP_DETAIL.SUBGROUPS.TREE_VIEW")),D.xp6(2),D.uIk("for",De.inputId),D.xp6(1),D.Oqu(D.lcZ(15,16,"GROUP_DETAIL.SUBGROUPS.LIST_VIEW")),D.xp6(2),D.Q6J("ngIf",be.loading),D.xp6(1),D.Q6J("ngIf",!be.loading)}},dependencies:[z.O5,$.JJ,$.On,G.lW,q.Ou,_e.gM,ce.Rr,Te.W,b.t,H.I,L.P,z.Ov,V.X$]}),N})()},85243:(Qe,he,u)=>{"use strict";u.d(he,{j:()=>be});var e=u(32105),m=u(10036),A=u(95017),w=u(9244),p=u(65412),g=u(69723),T=u(64080),E=u(94650),S=u(89383),R=u(36895),v=u(4859),D=u(51572),F=u(25788),z=u(7434);function $(De,We){1&De&&E._UZ(0,"mat-spinner",6)}function G(De,We){if(1&De){const Pe=E.EpF();E.TgZ(0,"perun-web-apps-immediate-filter",7),E.NdJ("filter",function(Ye){E.CHM(Pe);const Tt=E.oxw();return E.KtG(Tt.applyFilter(Ye))}),E.qZA()}2&De&&E.Q6J("placeholder","DIALOGS.ADD_MEMBER_GROUP.FILTER")}const q=function(){return["select","id","name","description"]};function _e(De,We){if(1&De&&E._UZ(0,"perun-web-apps-groups-list",8),2&De){const Pe=E.oxw();E.Q6J("disableGroups",!0)("disableMembers",!0)("displayedColumns",E.DdM(8,q))("groupsToDisableCheckbox",Pe.membersGroups)("disableRouting",!0)("groups",Pe.groups)("filter",Pe.filterValue)("selection",Pe.selection)}}function ce(De,We){if(1&De){const Pe=E.EpF();E.TgZ(0,"div",9)(1,"button",10),E.NdJ("click",function(){E.CHM(Pe);const Ye=E.oxw();return E.KtG(Ye.onCancel())}),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.TgZ(4,"button",11),E.NdJ("click",function(){E.CHM(Pe);const Ye=E.oxw();return E.KtG(Ye.onAdd())}),E._uU(5),E.ALo(6,"translate"),E.qZA()()}if(2&De){const Pe=E.oxw();E.xp6(2),E.hij(" ",E.lcZ(3,3,"DIALOGS.ADD_MEMBER_GROUP.CANCEL")," "),E.xp6(2),E.Q6J("disabled",0===Pe.selection.selected.length),E.xp6(1),E.hij(" ",E.lcZ(6,5,"DIALOGS.ADD_MEMBER_GROUP.ADD")," ")}}let Te=(()=>{class De{constructor(Pe,nt,Ye,Tt,J,Xe,le){this.dialogRef=Pe,this.data=nt,this.groupManager=Ye,this.memberManager=Tt,this.notificator=J,this.translate=Xe,this.authResolver=le,this.loading=!1,this.groups=[],this.selection=new A.Ov(!0,[]),this.attrNames=[T.r.GROUP_SYNC_ENABLED,T.r.GROUP_LAST_SYNC_STATE,T.r.GROUP_LAST_SYNC_TIMESTAMP,T.r.GROUP_STRUCTURE_SYNC_ENABLED,T.r.GROUP_LAST_STRUCTURE_SYNC_STATE,T.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP],this.filterValue=""}ngOnInit(){this.theme=this.data.theme,this.membersGroups=this.data.membersGroups,this.loading=!0,this.memberManager.getMemberById(this.data.memberId).subscribe(Pe=>{this.member=Pe,this.groupManager.getAllRichGroupsWithAttributesByNames(this.member.voId,this.attrNames).subscribe(nt=>{this.groups=nt.filter(Ye=>this.authResolver.isAuthorized("addMember_Group_Member_policy",[Ye])),this.loading=!1},()=>this.loading=!1)})}onAdd(){const Pe=this.selection.selected.map(nt=>nt.id);this.loading=!0,this.groupManager.addMember(Pe,this.member.id).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.ADD_MEMBER_GROUP.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}applyFilter(Pe){this.filterValue=Pe}}return De.\u0275fac=function(Pe){return new(Pe||De)(E.Y36(p.so),E.Y36(p.WI),E.Y36(e.ff),E.Y36(e.uq),E.Y36(g.V6),E.Y36(S.sK),E.Y36(g.x4))},De.\u0275cmp=E.Xpm({type:De,selectors:[["app-add-member-group-dialog"]],decls:9,vars:10,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",1,"dialog-container"],[3,"placeholder","filter",4,"ngIf"],[3,"disableGroups","disableMembers","displayedColumns","groupsToDisableCheckbox","disableRouting","groups","filter","selection",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"placeholder","filter"],[3,"disableGroups","disableMembers","displayedColumns","groupsToDisableCheckbox","disableRouting","groups","filter","selection"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(Pe,nt){1&Pe&&(E.TgZ(0,"div")(1,"h1",0),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.YNc(4,$,1,0,"mat-spinner",1),E.TgZ(5,"div",2),E.YNc(6,G,1,1,"perun-web-apps-immediate-filter",3),E.YNc(7,_e,1,9,"perun-web-apps-groups-list",4),E.qZA(),E.YNc(8,ce,7,7,"div",5),E.qZA()),2&Pe&&(E.Tol(nt.theme),E.xp6(2),E.Oqu(E.lcZ(3,8,"DIALOGS.ADD_MEMBER_GROUP.TITLE")),E.xp6(2),E.Q6J("ngIf",nt.loading),E.xp6(2),E.Q6J("ngIf",!nt.loading),E.xp6(1),E.Q6J("ngIf",!nt.loading),E.xp6(1),E.Q6J("ngIf",!nt.loading))},dependencies:[R.O5,v.lW,p.uh,p.xY,p.H8,D.Ou,F.W,z.L,S.X$]}),De})();var b=u(30671);function H(De,We){1&De&&E._UZ(0,"mat-spinner",6)}function L(De,We){1&De&&E._UZ(0,"th",15)}function V(De,We){if(1&De&&(E.TgZ(0,"td",16),E._uU(1),E.qZA()),2&De){const Pe=We.$implicit;E.xp6(1),E.Oqu(Pe.name)}}function Q(De,We){1&De&&E._UZ(0,"tr",17)}function ae(De,We){1&De&&E._UZ(0,"tr",18)}function xe(De,We){if(1&De&&(E.TgZ(0,"div",7)(1,"p"),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.TgZ(4,"div",8),E._uU(5),E.ALo(6,"translate"),E.qZA(),E.TgZ(7,"table",9),E.ynx(8,10),E.YNc(9,L,1,0,"th",11),E.YNc(10,V,2,1,"td",12),E.BQk(),E.YNc(11,Q,1,0,"tr",13),E.YNc(12,ae,1,0,"tr",14),E.qZA()()),2&De){const Pe=E.oxw();E.xp6(2),E.Oqu(E.lcZ(3,5,"DIALOGS.REMOVE_MEMBER_GROUP.DESCRIPTION")),E.xp6(3),E.hij(" ",E.lcZ(6,7,"DIALOGS.REMOVE_MEMBER_GROUP.ASK")," "),E.xp6(2),E.Q6J("dataSource",Pe.dataSource),E.xp6(4),E.Q6J("matHeaderRowDef",Pe.displayedColumns),E.xp6(1),E.Q6J("matRowDefColumns",Pe.displayedColumns)}}let ge=(()=>{class De{constructor(Pe,nt,Ye,Tt,J){this.dialogRef=Pe,this.data=nt,this.groupManager=Ye,this.notificator=Tt,this.translate=J,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new b.by(this.data.groups)}onRemove(){this.loading=!0;const Pe=this.dataSource.data.map(nt=>nt.id);this.groupManager.removeMember(Pe,this.data.memberId).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.REMOVE_MEMBER_GROUP.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}}return De.\u0275fac=function(Pe){return new(Pe||De)(E.Y36(p.so),E.Y36(p.WI),E.Y36(e.ff),E.Y36(g.V6),E.Y36(S.sK))},De.\u0275cmp=E.Xpm({type:De,selectors:[["app-remove-member-group-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(Pe,nt){1&Pe&&(E.TgZ(0,"div")(1,"h1",0),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.YNc(4,H,1,0,"mat-spinner",1),E.YNc(5,xe,13,9,"div",2),E.TgZ(6,"div",3)(7,"button",4),E.NdJ("click",function(){return nt.onCancel()}),E._uU(8),E.ALo(9,"translate"),E.qZA(),E.TgZ(10,"button",5),E.NdJ("click",function(){return nt.onRemove()}),E._uU(11),E.ALo(12,"translate"),E.qZA()()()),2&Pe&&(E.Tol(nt.theme),E.xp6(2),E.Oqu(E.lcZ(3,9,"DIALOGS.REMOVE_MEMBER_GROUP.TITLE")),E.xp6(2),E.Q6J("ngIf",nt.loading),E.xp6(1),E.Q6J("ngIf",!nt.loading),E.xp6(3),E.hij(" ",E.lcZ(9,11,"DIALOGS.REMOVE_MEMBER_GROUP.CANCEL")," "),E.xp6(2),E.Q6J("disabled",nt.loading),E.xp6(1),E.hij(" ",E.lcZ(12,13,"DIALOGS.REMOVE_MEMBER_GROUP.REMOVE")," "))},dependencies:[R.O5,v.lW,b.BZ,b.fO,b.as,b.w1,b.Dz,b.nj,b.ge,b.ev,b.XQ,b.Gk,p.uh,p.xY,p.H8,D.Ou,S.X$]}),De})();var Se=u(54004),Be=u(68675),pe=u(94364),$e=u(10266),Ce=u(96214);function de(De,We){if(1&De){const Pe=E.EpF();E.TgZ(0,"button",7),E.NdJ("click",function(){E.CHM(Pe);const Ye=E.oxw();return E.KtG(Ye.addGroup())}),E._uU(1),E.ALo(2,"translate"),E.qZA()}2&De&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"MEMBER_DETAIL.GROUPS.ADD"),"\n"))}function re(De,We){if(1&De){const Pe=E.EpF();E.TgZ(0,"span",8),E.ALo(1,"translate"),E.TgZ(2,"button",9),E.NdJ("click",function(){E.CHM(Pe);const Ye=E.oxw();return E.KtG(Ye.removeGroup())}),E._uU(3),E.ALo(4,"translate"),E.qZA()()}if(2&De){const Pe=We.ngIf,nt=E.oxw();E.s9C("matTooltip",E.lcZ(1,4,"MEMBER_DETAIL.GROUPS.REMOVE_PERMISSION_HINT")),E.Q6J("matTooltipDisabled",Pe.removeAuth),E.xp6(2),E.Q6J("disabled",0===nt.selection.selected.length||!Pe.removeAuth),E.xp6(1),E.hij(" ",E.lcZ(4,6,"MEMBER_DETAIL.GROUPS.REMOVE")," ")}}function B(De,We){1&De&&E._UZ(0,"mat-spinner",10)}const N=function(){return["select","id","name","description","expiration","groupStatus"]};function Me(De,We){if(1&De){const Pe=E.EpF();E.TgZ(0,"perun-web-apps-groups-list",11),E.NdJ("refreshTable",function(){E.CHM(Pe);const Ye=E.oxw();return E.KtG(Ye.refreshTable())}),E.qZA()}if(2&De){const Pe=E.oxw();E.Q6J("displayedColumns",E.DdM(8,N))("memberId",Pe.memberId)("disableRouting",!Pe.routeAuth)("groups",Pe.groups)("filter",Pe.filterValue)("memberGroupStatus",Pe.member.groupStatus)("selection",Pe.selection)("tableId",Pe.tableId)}}const Y=function(De){return{removeAuth:De}};let be=(()=>{class De{constructor(Pe,nt,Ye,Tt,J){this.groupsService=Pe,this.route=nt,this.dialog=Ye,this.authResolver=Tt,this.memberService=J,this.filterValue="",this.tableId=m.W1,this.selection=new A.Ov(!0,[]),this.removeAuth$=this.selection.changed.pipe((0,Se.U)(Xe=>Xe.source.selected.reduce((le,ne)=>le&&this.authResolver.isAuthorized("removeMember_Member_List_policy",[ne]),!0)),(0,Be.O)(!0))}ngOnInit(){this.loading=!0,this.route.parent.params.subscribe(Pe=>{this.memberId=Number(Pe.memberId),this.memberService.getMemberById(this.memberId).subscribe(nt=>{this.member=nt,this.groupsService.getAllGroups(this.member.voId).subscribe(Ye=>{this.allGroups=Ye,this.refreshTable()})})})}refreshTable(){this.loading=!0,this.groupsService.getMemberRichGroupsWithAttributesByNames(this.memberId,[T.r.MEMBER_DEF_GROUP_EXPIRATION,T.r.MEMBER_GROUP_STATUS,T.r.MEMBER_GROUP_STATUS_INDIRECT]).subscribe(Pe=>{this.selection.clear(),this.groups=Pe,this.setAuthRights(),this.loading=!1},()=>this.loading=!1)}setAuthRights(){const Pe={id:this.member.voId,beanName:"Vo"};this.addAuth=this.allGroups.reduce((nt,Ye)=>nt||this.authResolver.isAuthorized("addMember_Group_Member_policy",[Ye]),!1),0!==this.groups.length&&(this.routeAuth=this.authResolver.isAuthorized("getGroupById_int_policy",[Pe,this.groups[0]]))}addGroup(){const Pe=(0,w.kZ)();Pe.width="850px",Pe.data={memberId:this.memberId,membersGroups:new Set(this.groups.map(Ye=>Ye.id)),theme:"member-theme"},this.dialog.open(Te,Pe).afterClosed().subscribe(Ye=>{Ye&&this.refreshTable()})}removeGroup(){const Pe=(0,w.kZ)();Pe.width="650px",Pe.data={memberId:this.memberId,groups:this.selection.selected,theme:"member-theme"},this.dialog.open(ge,Pe).afterClosed().subscribe(Ye=>{Ye&&this.refreshTable()})}applyFilter(Pe){this.filterValue=Pe}}return De.id="MemberGroupsComponent",De.\u0275fac=function(Pe){return new(Pe||De)(E.Y36(e.ff),E.Y36(pe.gz),E.Y36(p.uw),E.Y36(g.x4),E.Y36(e.uq))},De.\u0275cmp=E.Xpm({type:De,selectors:[["app-member-groups"]],hostVars:2,hostBindings:function(Pe,nt){2&Pe&&E.ekj("router-component",nt.true)},decls:10,vars:12,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","class","mr-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],[3,"matTooltipDisabled","matTooltip",4,"ngIf"],[3,"placeholder","filter"],["class","mr-auto ml-auto",4,"ngIf"],[3,"displayedColumns","memberId","disableRouting","groups","filter","memberGroupStatus","selection","tableId","refreshTable",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],[3,"matTooltipDisabled","matTooltip"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],[3,"displayedColumns","memberId","disableRouting","groups","filter","memberGroupStatus","selection","tableId","refreshTable"]],template:function(Pe,nt){1&Pe&&(E.TgZ(0,"h1",0),E._uU(1),E.ALo(2,"translate"),E.qZA(),E.TgZ(3,"perun-web-apps-refresh-button",1),E.NdJ("refresh",function(){return nt.refreshTable()}),E.qZA(),E.YNc(4,de,3,3,"button",2),E.YNc(5,re,5,8,"span",3),E.ALo(6,"async"),E.TgZ(7,"perun-web-apps-immediate-filter",4),E.NdJ("filter",function(Tt){return nt.applyFilter(Tt)}),E.qZA(),E.YNc(8,B,1,0,"mat-spinner",5),E.YNc(9,Me,1,9,"perun-web-apps-groups-list",6)),2&Pe&&(E.xp6(1),E.Oqu(E.lcZ(2,6,"MEMBER_DETAIL.GROUPS.TITLE")),E.xp6(3),E.Q6J("ngIf",nt.addAuth),E.xp6(1),E.Q6J("ngIf",E.VKq(10,Y,E.lcZ(6,8,nt.removeAuth$))),E.xp6(2),E.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),E.xp6(1),E.Q6J("ngIf",nt.loading),E.xp6(1),E.Q6J("ngIf",!nt.loading))},dependencies:[R.O5,v.lW,D.Ou,$e.gM,F.W,Ce.t,z.L,R.Ov,S.X$]}),De})()},94856:(Qe,he,u)=>{"use strict";u.d(he,{c:()=>ce});var e=u(32105),m=u(10036),A=u(24006),w=u(36895),p=u(69723),g=u(94650),T=u(3238),E=u(59549),S=u(4859),R=u(56709),v=u(84385),D=u(96214),F=u(39798),z=u(64901),$=u(99168),G=u(89383);function q(Te,b){if(1&Te){const H=g.EpF();g.TgZ(0,"button",15),g.NdJ("click",function(){g.CHM(H);const V=g.oxw();return g.KtG(V.showDetails(!0))}),g._uU(1),g.ALo(2,"translate"),g.qZA()}2&Te&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_ALL_DETAILS")," "))}function _e(Te,b){if(1&Te){const H=g.EpF();g.TgZ(0,"button",15),g.NdJ("click",function(){g.CHM(H);const V=g.oxw();return g.KtG(V.showDetails(!1))}),g._uU(1),g.ALo(2,"translate"),g.qZA()}2&Te&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_LESS_DETAILS")," "))}let ce=(()=>{class Te{constructor(H,L){this.registrarManager=H,this.entityStorageService=L,this.state="pending",this.currentStates=["NEW","VERIFIED"],this.simpleColumns=["id","createdAt","type","state","createdBy","groupName","modifiedBy"],this.detailedColumns=["id","createdAt","voId","voName","groupId","groupName","type","state","extSourceName","extSourceType","user","createdBy","modifiedBy","modifiedAt","fedInfo"],this.currentColumns=[],this.filterValue="",this.showAllDetails=!1,this.detailTableId=m.Jf,this.tableId=m.Hi,this.showGroupApps=!1,this.refresh=!1}ngOnInit(){this.vo=this.entityStorageService.getEntity(),this.startDate=new A.p4((0,w.p6)(this.yearAgo(),"yyyy-MM-dd","en-GB")),this.endDate=new A.p4((0,w.p6)(new Date,"yyyy-MM-dd","en-GB")),this.currentColumns=this.refreshColumns()}select(){switch(this.state){case"approved":this.currentStates=["APPROVED"];break;case"rejected":this.currentStates=["REJECTED"];break;case"wfmv":this.currentStates=["NEW"];break;case"submited":this.currentStates=["VERIFIED"];break;case"pending":this.currentStates=["NEW","VERIFIED"];break;case"all":this.currentStates=null}}yearAgo(){const H=new Date;return H.setDate(H.getDate()-365),H}showGroupApplications(H){this.showGroupApps=H.checked,this.currentColumns=this.refreshColumns()}showDetails(H){this.showAllDetails=H,this.currentColumns=this.refreshColumns()}applyFilter(H){this.filterValue=H}refreshColumns(){return this.showAllDetails?this.showGroupApps?this.detailedColumns:this.detailedColumns.filter(H=>"groupName"!==H&&"groupId"!==H):this.showGroupApps?this.simpleColumns:this.simpleColumns.filter(H=>"groupName"!==H)}}return Te.id="VoApplicationsComponent",Te.\u0275fac=function(H){return new(H||Te)(g.Y36(e.tk),g.Y36(p.fb))},Te.\u0275cmp=g.Xpm({type:Te,selectors:[["app-vo-applications"]],hostVars:2,hostBindings:function(H,L){2&H&&g.ekj("router-component",L.true)},decls:38,vars:43,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-stroked-button","","class","mr-2",3,"click",4,"ngIf"],[1,"input-width-250","mr-2"],["disableOptionCentering","",3,"value","selectionChange","valueChange"],["value","all"],["value","pending"],["value","wfmv"],["value","submited"],["value","approved"],["value","rejected"],[3,"placeholder","filter"],[3,"endDate","startDate","datePicker"],["color","primary",3,"checked","change"],[3,"tableId","searchString","displayedColumns","states","dateFrom","dateTo","includeGroupApps","refreshTable","vo"],["mat-stroked-button","",1,"mr-2",3,"click"]],template:function(H,L){1&H&&(g.TgZ(0,"h1",0),g._uU(1),g.ALo(2,"translate"),g.qZA(),g.TgZ(3,"div")(4,"perun-web-apps-refresh-button",1),g.NdJ("refresh",function(){return L.refresh=!L.refresh}),g.qZA(),g.YNc(5,q,3,3,"button",2),g.YNc(6,_e,3,3,"button",2),g.TgZ(7,"mat-form-field",3)(8,"mat-label"),g._uU(9),g.ALo(10,"translate"),g.qZA(),g.TgZ(11,"mat-select",4),g.NdJ("selectionChange",function(){return L.select()})("valueChange",function(Q){return L.state=Q}),g.TgZ(12,"mat-option",5),g._uU(13),g.ALo(14,"translate"),g.qZA(),g.TgZ(15,"mat-option",6),g._uU(16),g.ALo(17,"translate"),g.qZA(),g.TgZ(18,"mat-option",7),g._uU(19),g.ALo(20,"translate"),g.qZA(),g.TgZ(21,"mat-option",8),g._uU(22),g.ALo(23,"translate"),g.qZA(),g.TgZ(24,"mat-option",9),g._uU(25),g.ALo(26,"translate"),g.qZA(),g.TgZ(27,"mat-option",10),g._uU(28),g.ALo(29,"translate"),g.qZA()()(),g.TgZ(30,"perun-web-apps-debounce-filter",11),g.NdJ("filter",function(Q){return L.applyFilter(Q)}),g.qZA(),g.TgZ(31,"perun-web-apps-date-range",12),g.NdJ("datePicker",function(){return L.select()}),g.qZA(),g.TgZ(32,"div")(33,"mat-checkbox",13),g.NdJ("change",function(Q){return L.showGroupApplications(Q)}),g._uU(34),g.ALo(35,"translate"),g.qZA()()(),g.TgZ(36,"div"),g._UZ(37,"app-applications-dynamic-list",14),g.qZA()),2&H&&(g.xp6(1),g.Oqu(g.lcZ(2,25,"VO_DETAIL.APPLICATION.TITLE")),g.xp6(4),g.Q6J("ngIf",!L.showAllDetails),g.xp6(1),g.Q6J("ngIf",L.showAllDetails),g.xp6(3),g.Oqu(g.lcZ(10,27,"APPLICATIONS_LIST.STATE")),g.xp6(2),g.Q6J("value",L.state),g.xp6(2),g.Oqu(g.lcZ(14,29,"VO_DETAIL.APPLICATION.SELECTION_ALL")),g.xp6(3),g.Oqu(g.lcZ(17,31,"VO_DETAIL.APPLICATION.SELECTION_PENDING")),g.xp6(3),g.Oqu(g.lcZ(20,33,"VO_DETAIL.APPLICATION.SELECTION_WFMV")),g.xp6(3),g.Oqu(g.lcZ(23,35,"VO_DETAIL.APPLICATION.SELECTION_SUBMITTED")),g.xp6(3),g.Oqu(g.lcZ(26,37,"VO_DETAIL.APPLICATION.SELECTION_APPROVED")),g.xp6(3),g.Oqu(g.lcZ(29,39,"VO_DETAIL.APPLICATION.SELECTION_REJECTED")),g.xp6(2),g.Q6J("placeholder","VO_DETAIL.APPLICATION.FILTER"),g.xp6(1),g.Q6J("endDate",L.endDate)("startDate",L.startDate),g.xp6(2),g.Q6J("checked",L.showGroupApps),g.xp6(1),g.hij(" ",g.lcZ(35,41,"VO_DETAIL.APPLICATION.SHOW_GROUP_APPLICATIONS")," "),g.xp6(3),g.Q6J("tableId",L.showAllDetails?L.detailTableId:L.tableId)("searchString",L.filterValue)("displayedColumns",L.currentColumns)("states",L.currentStates)("dateFrom",L.startDate.value)("dateTo",L.endDate.value)("includeGroupApps",L.showGroupApps)("refreshTable",L.refresh)("vo",L.vo))},dependencies:[w.O5,T.ey,E.KE,E.hX,S.lW,R.oG,v.gD,D.t,F.S,z.P,$.S,G.X$]}),Te})()},4732:(Qe,he,u)=>{"use strict";u.d(he,{G:()=>Y});var e=u(81889),m=u(41656),A=u(95017),w=u(87842),p=u(9244),g=u(32105),T=u(10036),E=u(64080),S=u(69723),R=u(61135),v=u(56451),D=u(63900),F=u(18505),z=u(68675),$=u(54004),G=u(94650),q=u(65412),_e=u(36895),ce=u(24006),Te=u(4859),b=u(51572),H=u(10266),L=u(90455),V=u(25788),Q=u(96214),ae=u(58956),xe=u(64901),ge=u(94391),Se=u(89383);const Be=["toggle"];function pe(be,De){if(1&be){const We=G.EpF();G.TgZ(0,"button",10),G.NdJ("click",function(){G.CHM(We);const nt=G.oxw();return G.KtG(nt.onCreateGroup())}),G._uU(1),G.ALo(2,"translate"),G.qZA()}2&be&&(G.xp6(1),G.hij(" ",G.lcZ(2,1,"VO_DETAIL.GROUPS.CREATE_GROUP")," "))}function $e(be,De){if(1&be){const We=G.EpF();G.TgZ(0,"span",11),G.ALo(1,"translate"),G.TgZ(2,"button",12),G.NdJ("click",function(){G.CHM(We);const nt=G.oxw();return G.KtG(nt.deleteGroup())}),G._uU(3),G.ALo(4,"translate"),G.qZA()()}if(2&be){const We=De.ngIf,Pe=G.oxw();G.s9C("matTooltip",G.lcZ(1,4,"VO_DETAIL.GROUPS.DELETE_PERMISSION_HINT")),G.Q6J("matTooltipDisabled",We.removeAuth),G.xp6(2),G.Q6J("disabled",0===Pe.selected.selected.length||!We.removeAuth),G.xp6(1),G.hij(" ",G.lcZ(4,6,"VO_DETAIL.GROUPS.DELETE_GROUP")," ")}}function Ce(be,De){if(1&be){const We=G.EpF();G.TgZ(0,"perun-web-apps-groups-tree",14),G.NdJ("moveGroup",function(nt){G.CHM(We);const Ye=G.oxw(2);return G.KtG(Ye.onMoveGroup(nt))})("refreshTable",function(){G.CHM(We);const nt=G.oxw(2);return G.KtG(nt.refresh())}),G.qZA()}if(2&be){const We=G.oxw(2);G.Q6J("expandAll",We.filtering)("disableRouting",!We.routeAuth)("groups",We.groups)("selection",We.selected)("filterValue",We.filterValue)("vo",We.vo)}}function de(be,De){if(1&be&&(G.TgZ(0,"div"),G.YNc(1,Ce,1,6,"perun-web-apps-groups-tree",13),G.ALo(2,"async"),G.qZA()),2&be){const We=G.oxw(),Pe=G.MAs(20);G.xp6(1),G.Q6J("perunWebAppsLoader",G.lcZ(2,2,We.loading$))("perunWebAppsLoaderIndicator",Pe)}}function re(be,De){if(1&be){const We=G.EpF();G.TgZ(0,"perun-web-apps-groups-list",16),G.NdJ("groupMoved",function(nt){G.CHM(We);const Ye=G.oxw(2);return G.KtG(Ye.onMoveGroup(nt))})("queryChanged",function(nt){G.CHM(We);const Ye=G.oxw(2);return G.KtG(Ye.nextPage.next(nt))})("refreshTable",function(){G.CHM(We);const nt=G.oxw(2);return G.KtG(nt.refresh())})("downloadAll",function(nt){G.CHM(We);const Ye=G.oxw(2);return G.KtG(Ye.downloadAll(nt))}),G.ALo(1,"async"),G.qZA()}if(2&be){const We=G.oxw(2);G.Q6J("disableMembers",!0)("displayedColumns",We.displayedColumns)("disableRouting",!We.routeAuth)("groups",G.lcZ(1,7,We.groupPage$))("selection",We.selected)("filter",We.filterValue)("tableId",We.tableId)}}function B(be,De){if(1&be&&(G.TgZ(0,"div"),G.YNc(1,re,2,9,"perun-web-apps-groups-list",15),G.ALo(2,"async"),G.qZA()),2&be){const We=G.oxw(),Pe=G.MAs(20);G.xp6(1),G.Q6J("perunWebAppsLoader",G.lcZ(2,2,We.loading$))("perunWebAppsLoaderIndicator",Pe)}}function N(be,De){1&be&&(G.TgZ(0,"div",17),G._UZ(1,"mat-spinner"),G.qZA())}const Me=function(be){return{removeAuth:be}};let Y=(()=>{class be{constructor(We,Pe,nt,Ye,Tt){this.dialog=We,this.groupService=Pe,this.authResolver=nt,this.entityStorageService=Ye,this.groupUtils=Tt,this.groups=[],this.nextPage=new R.X({}),this.groupPage$=this.nextPage.pipe((0,D.w)(J=>this.groupService.getGroupsPage({vo:this.vo.id,attrNames:this.attrNames,query:{order:J.order,pageSize:J.pageSize,offset:J.offset,searchString:J.searchString,sortColumn:J.sortColumn}})),(0,F.b)(J=>{this.groups=J.data,this.setAuthRights(),this.selected.clear(),setTimeout(()=>this.loadingSubject$.next(!1),200)}),(0,z.O)({data:[],totalCount:0,offset:0,pageSize:0})),this.showGroupList=!1,this.selected=new A.Ov(!0,[]),this.loadingSubject$=new R.X(!1),this.loading$=(0,v.T)(this.loadingSubject$,this.nextPage.pipe((0,$.U)(()=>!0))),this.filtering=!1,this.filterValue="",this.tableId=T.rc,this.displayedColumns=["select","id","name","description","menu"],this.removeAuth$=this.selected.changed.pipe((0,$.U)(J=>J.source.selected.reduce((Xe,le)=>Xe&&this.authResolver.isAuthorized("deleteGroup_Group_boolean_policy",[this.vo,le]),!0)),(0,z.O)(!0)),this.attrNames=[E.r.GROUP_SYNC_ENABLED,E.r.GROUP_LAST_SYNC_STATE,E.r.GROUP_LAST_SYNC_TIMESTAMP,E.r.GROUP_STRUCTURE_SYNC_ENABLED,E.r.GROUP_LAST_STRUCTURE_SYNC_STATE,E.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP]}onCreateGroup(){const We=(0,p.kZ)();We.width="450px",We.data={voId:this.vo.id,parentGroup:null,theme:"vo-theme"},this.dialog.open(e.y,We).afterClosed().subscribe(nt=>{nt&&this.refresh()})}ngOnInit(){this.vo=this.entityStorageService.getEntity(),this.setAuthRights(),"list"===localStorage.getItem("preferedValue")?(this.toggle.toggle(),this.showGroupList=!0):this.refresh(),this.toggle.change.subscribe(()=>{localStorage.setItem("preferedValue",this.toggle.checked?"list":"tree"),this.refresh()})}setAuthRights(){this.createAuth=this.authResolver.isAuthorized("createGroup_Vo_Group_policy",[this.vo]),0!==this.groups.length&&(this.routeAuth=this.authResolver.isAuthorized("getGroupById_int_policy",[this.vo,this.groups[0]]))}deleteGroup(){const We=(0,p.kZ)();We.width="450px",We.data={voId:this.vo.id,groups:this.selected.selected,theme:"vo-theme"},this.dialog.open(m.P,We).afterClosed().subscribe(nt=>{nt&&this.refresh()})}removeAllGroups(){this.selected.clear()}onMoveGroup(We){const Pe=(0,p.kZ)();Pe.width="550px",Pe.data={group:We,theme:"vo-theme"},this.dialog.open(w.c,Pe).afterClosed().subscribe(Ye=>{Ye&&this.refresh()})}loadAllGroups(){this.groupService.getAllRichGroupsWithAttributesByNames(this.vo.id,this.attrNames).subscribe(We=>{this.groups=We,this.selected.clear(),this.setAuthRights(),this.loadingSubject$.next(!1)})}applyFilter(We){this.filterValue=We,this.filtering=""!==We}refresh(){this.loadingSubject$.next(!0),this.showGroupList?this.nextPage.next(this.nextPage.value):this.loadAllGroups()}downloadAll(We){const Pe=this.nextPage.getValue(),nt=(Ye,Tt)=>this.groupUtils.getDataForColumn(Ye,Tt);this.groupService.getGroupsPage({vo:this.vo.id,attrNames:this.attrNames,query:{order:Pe.order,pageSize:We.length,offset:0,searchString:Pe.searchString,sortColumn:Pe.sortColumn}}).subscribe({next:Ye=>{(0,p.O6)((0,p.Xn)(Ye.data,this.displayedColumns,nt),We.format)}})}}return be.id="VoGroupsComponent",be.\u0275fac=function(We){return new(We||be)(G.Y36(q.uw),G.Y36(g.ff),G.Y36(S.x4),G.Y36(S.fb),G.Y36(S.K1))},be.\u0275cmp=G.Xpm({type:be,selectors:[["app-vo-groups"]],viewQuery:function(We,Pe){if(1&We&&G.Gf(Be,7),2&We){let nt;G.iGM(nt=G.CRH())&&(Pe.toggle=nt.first)}},hostVars:2,hostBindings:function(We,Pe){2&We&&G.ekj("router-component",Pe.true)},decls:21,vars:20,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","class","mr-2 action-button","data-cy","create-group-button","mat-flat-button","",3,"click",4,"ngIf"],[3,"matTooltipDisabled","matTooltip",4,"ngIf"],[3,"placeholder","filter"],["color","primary","labelPosition","before",1,"mr-1",3,"ngModel","change","ngModelChange"],["toggle",""],[1,"mt-3","position-relative"],[4,"ngIf"],["spinner",""],["color","accent","data-cy","create-group-button","mat-flat-button","",1,"mr-2","action-button",3,"click"],[3,"matTooltipDisabled","matTooltip"],["color","warn","data-cy","delete-group-button","mat-flat-button","",1,"mr-2",3,"disabled","click"],["theme","vo-theme",3,"expandAll","disableRouting","groups","selection","filterValue","vo","moveGroup","refreshTable",4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["theme","vo-theme",3,"expandAll","disableRouting","groups","selection","filterValue","vo","moveGroup","refreshTable"],["theme","vo-theme",3,"disableMembers","displayedColumns","disableRouting","groups","selection","filter","tableId","groupMoved","queryChanged","refreshTable","downloadAll",4,"perunWebAppsLoader","perunWebAppsLoaderIndicator"],["theme","vo-theme",3,"disableMembers","displayedColumns","disableRouting","groups","selection","filter","tableId","groupMoved","queryChanged","refreshTable","downloadAll"],[1,"spinner-container"]],template:function(We,Pe){if(1&We&&(G.TgZ(0,"div")(1,"h1",0),G._uU(2),G.ALo(3,"translate"),G.qZA(),G.TgZ(4,"perun-web-apps-refresh-button",1),G.NdJ("refresh",function(){return Pe.refresh()}),G.qZA(),G.YNc(5,pe,3,3,"button",2),G.YNc(6,$e,5,8,"span",3),G.ALo(7,"async"),G.TgZ(8,"perun-web-apps-debounce-filter",4),G.NdJ("filter",function(Ye){return Pe.applyFilter(Ye)}),G.qZA(),G.TgZ(9,"mat-slide-toggle",5,6),G.NdJ("change",function(){return Pe.removeAllGroups()})("ngModelChange",function(Ye){return Pe.showGroupList=Ye}),G._uU(11),G.ALo(12,"translate"),G.qZA(),G.TgZ(13,"label"),G._uU(14),G.ALo(15,"translate"),G.qZA(),G.TgZ(16,"div",7),G.YNc(17,de,3,4,"div",8),G.YNc(18,B,3,4,"div",8),G.qZA()(),G.YNc(19,N,2,0,"ng-template",null,9,G.W1O)),2&We){const nt=G.MAs(10);G.xp6(2),G.Oqu(G.lcZ(3,10,"VO_DETAIL.GROUPS.TITLE")),G.xp6(3),G.Q6J("ngIf",Pe.createAuth),G.xp6(1),G.Q6J("ngIf",G.VKq(18,Me,G.lcZ(7,12,Pe.removeAuth$))),G.xp6(2),G.Q6J("placeholder","VO_DETAIL.GROUPS.FILTER"),G.xp6(1),G.Q6J("ngModel",Pe.showGroupList),G.xp6(2),G.hij(" ",G.lcZ(12,14,"VO_DETAIL.GROUPS.TREE_VIEW"),""),G.xp6(2),G.uIk("for",nt.inputId),G.xp6(1),G.Oqu(G.lcZ(15,16,"VO_DETAIL.GROUPS.LIST_VIEW")),G.xp6(3),G.Q6J("ngIf",!Pe.showGroupList),G.xp6(1),G.Q6J("ngIf",Pe.showGroupList)}},dependencies:[_e.O5,ce.JJ,ce.On,Te.lW,b.Ou,H.gM,L.Rr,V.W,Q.t,ae.I,xe.P,ge.e5,_e.Ov,Se.X$],changeDetection:0}),be})()},81847:(Qe,he,u)=>{"use strict";u.d(he,{y:()=>re});var e=u(95017),m=u(69723),A=u(53455),w=u(32105),p=u(64080),g=u(24006),T=u(10036),E=u(9244),S=u(74414),R=u(51525),v=u(94742),D=u(94650),F=u(65412),z=u(36895),$=u(3238),G=u(59549),q=u(4859),_e=u(84385),ce=u(51572),Te=u(10266),b=u(28255),H=u(96214),L=u(64901),V=u(4811),Q=u(89383),ae=u(20551);function xe(B,N){if(1&B){const Me=D.EpF();D.TgZ(0,"button",16),D.NdJ("click",function(){D.CHM(Me);const be=D.oxw();return D.KtG(be.onAddMember())}),D._uU(1),D.ALo(2,"translate"),D.qZA()}if(2&B){const Me=D.oxw();D.Q6J("disabled",Me.blockManualMemberAdding),D.xp6(1),D.hij(" ",D.lcZ(2,2,"VO_DETAIL.MEMBERS.ADD_MEMBER")," ")}}function ge(B,N){if(1&B&&(D.TgZ(0,"button",17),D._uU(1),D.ALo(2,"translate"),D.qZA()),2&B){const Me=D.oxw(),Y=D.MAs(11);D.Q6J("disabled",Me.blockManualMemberAdding)("matMenuTriggerFor",Y),D.xp6(1),D.hij(" ",D.lcZ(2,3,"VO_DETAIL.MEMBERS.INVITE")," ")}}function Se(B,N){if(1&B){const Me=D.EpF();D.TgZ(0,"button",18),D.NdJ("click",function(){D.CHM(Me);const be=D.oxw();return D.KtG(be.onInviteMember())}),D._uU(1),D.ALo(2,"translate"),D.qZA()}2&B&&(D.xp6(1),D.hij(" ",D.lcZ(2,1,"VO_DETAIL.MEMBERS.INVITE_ONE")," "))}function Be(B,N){if(1&B){const Me=D.EpF();D.TgZ(0,"button",18),D.NdJ("click",function(){D.CHM(Me);const be=D.oxw();return D.KtG(be.onBulkInvite())}),D._uU(1),D.ALo(2,"translate"),D.qZA()}2&B&&(D.xp6(1),D.hij(" ",D.lcZ(2,1,"VO_DETAIL.MEMBERS.INVITE_BULK")," "))}function pe(B,N){if(1&B){const Me=D.EpF();D.TgZ(0,"button",19),D.NdJ("click",function(){D.CHM(Me);const be=D.oxw();return D.KtG(be.onRemoveMembers())}),D._uU(1),D.ALo(2,"translate"),D.qZA()}if(2&B){const Me=D.oxw();D.Q6J("disabled",Me.selection.isEmpty()),D.xp6(1),D.hij(" ",D.lcZ(2,2,"VO_DETAIL.MEMBERS.REMOVE_MEMBERS")," ")}}function $e(B,N){if(1&B&&(D.TgZ(0,"mat-option",20),D._uU(1),D.ALo(2,"memberStatus"),D.qZA()),2&B){const Me=N.$implicit;D.Q6J("value",Me),D.xp6(1),D.Oqu(D.lcZ(2,2,Me))}}function Ce(B,N){1&B&&D._UZ(0,"mat-spinner",21)}function de(B,N){if(1&B&&D._UZ(0,"perun-web-apps-members-dynamic-list",22),2&B){const Me=D.oxw();D.Q6J("attrNames",Me.attrNames)("selection",Me.selection)("tableId",Me.tableId)("displayedColumns",Me.displayedColumns)("updateTable",Me.updateTable)("searchString",Me.searchString)("selectedStatuses",Me.selectedStatuses)("voId",Me.vo.id)("isMembersGroup",!1)}}let re=(()=>{class B{constructor(Me,Y,be,De,We,Pe,nt){this.notificator=Me,this.dialog=Y,this.authzService=be,this.storeService=De,this.attributesManager=We,this.apiRequest=Pe,this.entityStorageService=nt,this.members=null,this.selection=new e.Ov(!0,[]),this.loading=!1,this.attrNames=[p.r.MEMBER_DEF_ORGANIZATION,p.r.MEMBER_DEF_MAIL,p.r.USER_DEF_ORGANIZATION,p.r.USER_DEF_PREFERRED_MAIL,p.r.MEMBER_DEF_EXPIRATION,p.r.MEMBER_LIFECYCLE_ALTERABLE],this.statuses=new g.p4,this.statusList=["VALID","INVALID","EXPIRED","DISABLED"],this.selectedStatuses=[],this.tableId=T.j1,this.displayedColumns=["checkbox","id","fullName","status","organization","email","logins"],this.updateTable=!1}ngOnInit(){this.loading=!0,this.statuses.setValue(this.selectedStatuses),this.attrNames=this.attrNames.concat(this.storeService.getLoginAttributeNames()),this.vo=this.entityStorageService.getEntity(),this.setAuthRights(),this.isManualAddingBlocked(this.vo.id).then(()=>this.loading=!1)}setAuthRights(){this.addAuth=this.authzService.isAuthorized("createMember_Vo_User_List_policy",[this.vo])&&this.authzService.isAuthorized("createMember_Vo_Candidate_List_policy",[this.vo]),this.removeAuth=this.authzService.isAuthorized("deleteMembers_List_policy",[this.vo]),this.displayedColumns=this.removeAuth?this.displayedColumns:["id","fullName","status","organization","email","logins"],null!==this.members&&0!==this.members.length&&(this.routeAuth=this.authzService.isAuthorized("getMemberById_int_policy",[this.vo,this.members[0]])),this.inviteAuth=this.authzService.isAuthorized("vo-sendInvitation_Vo_Group_String_String_String_policy",[this.vo])}onSearchByString(Me){this.searchString=Me,this.selection.clear()}onAddMember(){const Me=(0,E.kZ)();Me.width="1000px",Me.data={voId:this.vo.id},this.dialog.open(R.H,Me).afterClosed().subscribe(be=>{be&&(this.updateTable=!this.updateTable,this.selection.clear())})}onRemoveMembers(){const Me=(0,E.kZ)();Me.width="450px",Me.data={members:this.selection.selected,theme:"vo-theme"},this.dialog.open(A.X,Me).afterClosed().subscribe(be=>{be&&(this.updateTable=!this.updateTable,this.selection.clear())})}onInviteMember(){const Me=(0,E.kZ)();Me.width="650px",Me.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(S.R,Me)}onBulkInvite(){const Me=(0,E.kZ)();Me.width="650px",Me.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(v.F,Me)}displaySelectedStatuses(){if(this.selectedStatuses.length===this.statusList.length)return"ALL";const Me=this.statuses.value;return Me?`${Me[0]} ${Me.length>1?"(+"+(Me.length-1).toString()+" "+(2===Me.length?"other)":"others)"):""}`:""}isManualAddingBlocked(Me){return new Promise(Y=>{this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getVoAttributeByName(Me,"urn:perun:vo:attribute-def:def:blockManualMemberAdding").subscribe({next:be=>{this.blockManualMemberAdding=null!==be.value,Y()},error:be=>{"PrivilegeException"!==be.name&&this.notificator.showError(be.name),Y()}})})}changeStatuses(){this.selection.clear(),this.selectedStatuses=this.statuses.value}refreshTable(){this.selection.clear(),this.updateTable=!this.updateTable}}return B.id="VoMembersComponent",B.\u0275fac=function(Me){return new(Me||B)(D.Y36(m.V6),D.Y36(F.uw),D.Y36(m.x4),D.Y36(m.d6),D.Y36(w.H8),D.Y36(m.F5),D.Y36(m.fb))},B.\u0275cmp=D.Xpm({type:B,selectors:[["app-vo-members"]],hostVars:2,hostBindings:function(Me,Y){2&Me&&D.ekj("router-component",Y.true)},decls:27,vars:23,consts:[[1,"vo-theme"],[1,"page-subtitle"],[1,"align-elements"],[3,"click"],[3,"matTooltipDisabled","matTooltip"],["color","accent","class","mr-2 action-button","data-cy","add-members","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","mr-2 dropdown-toggle","color","accent","mat-flat-button","",3,"disabled","matMenuTriggerFor",4,"ngIf"],["menu","matMenu"],["class","action-button","mat-menu-item","",3,"click",4,"ngIf"],["color","warn","data-cy","remove-members","class","mr-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],[1,"mr-2","fix-select"],["multiple","",3,"formControl","closed"],["class","vo-theme",3,"value",4,"ngFor","ngForOf"],[1,"mt-2","search-field",3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"attrNames","selection","tableId","displayedColumns","updateTable","searchString","selectedStatuses","voId","isMembersGroup",4,"ngIf"],["color","accent","data-cy","add-members","mat-flat-button","",1,"mr-2","action-button",3,"disabled","click"],["color","accent","mat-flat-button","",1,"mr-2","dropdown-toggle",3,"disabled","matMenuTriggerFor"],["mat-menu-item","",1,"action-button",3,"click"],["color","warn","data-cy","remove-members","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"vo-theme",3,"value"],[1,"ml-auto","mr-auto"],[3,"attrNames","selection","tableId","displayedColumns","updateTable","searchString","selectedStatuses","voId","isMembersGroup"]],template:function(Me,Y){1&Me&&(D.TgZ(0,"div",0)(1,"h1",1),D._uU(2),D.ALo(3,"translate"),D.qZA(),D.TgZ(4,"div",2)(5,"perun-web-apps-refresh-button",3),D.NdJ("click",function(){return Y.refreshTable()}),D.qZA(),D.TgZ(6,"div",4),D.ALo(7,"translate"),D.YNc(8,xe,3,4,"button",5),D.qZA(),D.YNc(9,ge,3,5,"button",6),D.TgZ(10,"mat-menu",null,7),D.YNc(12,Se,3,3,"button",8),D.YNc(13,Be,3,3,"button",8),D.qZA(),D.YNc(14,pe,3,4,"button",9),D.TgZ(15,"mat-form-field",10)(16,"mat-label"),D._uU(17),D.ALo(18,"translate"),D.qZA(),D.TgZ(19,"mat-select",11),D.NdJ("closed",function(){return Y.changeStatuses()}),D.TgZ(20,"mat-select-trigger"),D._uU(21),D.ALo(22,"memberStatus"),D.qZA(),D.YNc(23,$e,3,4,"mat-option",12),D.qZA()(),D.TgZ(24,"perun-web-apps-debounce-filter",13),D.NdJ("filter",function(De){return Y.onSearchByString(De)}),D.qZA()(),D.YNc(25,Ce,1,0,"mat-spinner",14),D.YNc(26,de,1,9,"perun-web-apps-members-dynamic-list",15),D.qZA()),2&Me&&(D.xp6(2),D.Oqu(D.lcZ(3,15,"VO_DETAIL.MEMBERS.TITLE")),D.xp6(4),D.s9C("matTooltip",D.lcZ(7,17,"VO_DETAIL.MEMBERS.ADD_MEMBER_DISABLED")),D.Q6J("matTooltipDisabled",!Y.blockManualMemberAdding),D.xp6(2),D.Q6J("ngIf",Y.addAuth),D.xp6(1),D.Q6J("ngIf",Y.inviteAuth),D.xp6(3),D.Q6J("ngIf",Y.inviteAuth),D.xp6(1),D.Q6J("ngIf",Y.inviteAuth),D.xp6(1),D.Q6J("ngIf",Y.removeAuth),D.xp6(3),D.Oqu(D.lcZ(18,19,"VO_DETAIL.MEMBERS.FILTER_STATUS")),D.xp6(2),D.Q6J("formControl",Y.statuses),D.xp6(2),D.hij(" ",D.lcZ(22,21,Y.displaySelectedStatuses())," "),D.xp6(2),D.Q6J("ngForOf",Y.statusList),D.xp6(1),D.Q6J("placeholder","VO_DETAIL.MEMBERS.SEARCH_DESCRIPTION"),D.xp6(1),D.Q6J("ngIf",Y.loading),D.xp6(1),D.Q6J("ngIf",!Y.loading))},dependencies:[z.sg,z.O5,$.ey,G.KE,G.hX,g.JJ,g.oH,q.lW,_e.gD,_e.$L,ce.Ou,Te.gM,b.VK,b.OP,b.p6,H.t,L.P,V.m,Q.X$,ae.l],styles:[".search-field[_ngcontent-%COMP%]{width:325px}.align-elements[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:wrap}.fix-select[_ngcontent-%COMP%]{margin-top:8px}"]}),B})()},68056:(Qe,he,u)=>{"use strict";u.d(he,{z:()=>ce});var e=u(95017),m=u(32105),A=u(533),w=u(10036),p=u(9244),g=u(69723),T=u(94650),E=u(65412),S=u(36895),R=u(4859),v=u(51572),D=u(96214),F=u(7434),z=u(62109),$=u(89383);function G(Te,b){if(1&Te){const H=T.EpF();T.TgZ(0,"button",6),T.NdJ("click",function(){T.CHM(H);const V=T.oxw();return T.KtG(V.deleteSelectedResources())}),T._uU(1),T.ALo(2,"translate"),T.qZA()}if(2&Te){const H=T.oxw();T.Q6J("disabled",0===H.selected.selected.length),T.xp6(1),T.hij(" ",T.lcZ(2,2,"VO_DETAIL.RESOURCES.LIST.DELETE")," ")}}function q(Te,b){1&Te&&T._UZ(0,"mat-spinner",7)}function _e(Te,b){if(1&Te&&T._UZ(0,"perun-web-apps-resources-list",8),2&Te){const H=T.oxw();T.Q6J("disableRouting",!H.routeAuth)("filterValue",H.filterValue)("resources",H.resources)("routingVo",!0)("displayedColumns",H.displayedColumns)("selection",H.selected)("tableId",H.tableId)}}let ce=(()=>{class Te{constructor(H,L,V,Q){this.resourcesManager=H,this.dialog=L,this.authResolver=V,this.entityStorageService=Q,this.resources=[],this.selected=new e.Ov(!0,[]),this.filterValue="",this.displayedColumns=[],this.tableId=w.nT,this.routeAuth=!1}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.setAuthRights(),this.refreshTable()}setAuthRights(){this.removeAuth=this.authResolver.isAuthorized("deleteResource_Resource_policy",[this.vo]),0!==this.resources.length&&(this.routeAuth=this.authResolver.isAuthorized("getResourceById_int_policy",[this.vo,this.resources[0]])),this.displayedColumns=this.removeAuth?["select","id","name","facility","tags","description"]:["id","name","facility","tags","description"]}refreshTable(){this.loading=!0,this.resourcesManager.getRichResources(this.vo.id).subscribe(H=>{this.resources=H,this.selected.clear(),this.setAuthRights(),this.loading=!1})}applyFilter(H){this.filterValue=H}deleteSelectedResources(){const H=(0,p.kZ)();H.width="450px",H.data={theme:"vo-theme",resources:this.selected.selected},this.dialog.open(A.f,H).afterClosed().subscribe(V=>{V&&this.refreshTable()})}}return Te.id="VoResourcesPreviewComponent",Te.\u0275fac=function(H){return new(H||Te)(T.Y36(m.xk),T.Y36(E.uw),T.Y36(g.x4),T.Y36(g.fb))},Te.\u0275cmp=T.Xpm({type:Te,selectors:[["app-vo-resources-preview"]],hostVars:2,hostBindings:function(H,L){2&H&&T.ekj("router-component",L.true)},decls:9,vars:7,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableRouting","filterValue","resources","routingVo","displayedColumns","selection","tableId",4,"ngIf"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"disableRouting","filterValue","resources","routingVo","displayedColumns","selection","tableId"]],template:function(H,L){1&H&&(T.TgZ(0,"div")(1,"h1",0),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.TgZ(4,"perun-web-apps-refresh-button",1),T.NdJ("refresh",function(){return L.refreshTable()}),T.qZA(),T.YNc(5,G,3,4,"button",2),T.TgZ(6,"perun-web-apps-immediate-filter",3),T.NdJ("filter",function(Q){return L.applyFilter(Q)}),T.qZA(),T.YNc(7,q,1,0,"mat-spinner",4),T.YNc(8,_e,1,7,"perun-web-apps-resources-list",5),T.qZA()),2&H&&(T.xp6(2),T.Oqu(T.lcZ(3,5,"VO_DETAIL.RESOURCES.LIST.TITLE")),T.xp6(3),T.Q6J("ngIf",L.removeAuth),T.xp6(1),T.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),T.xp6(1),T.Q6J("ngIf",L.loading),T.xp6(1),T.Q6J("ngIf",!L.loading))},dependencies:[S.O5,R.lW,v.Ou,D.t,F.L,z.C,$.X$]}),Te})()},24219:(Qe,he,u)=>{"use strict";u.d(he,{z:()=>Xe});var e=u(69723),m=u(32105),A=u(94650),w=u(36895),p=u(3848),g=u(98380),T=u(96214),E=u(30671),S=u(51572),R=u(44850),v=u(37084),D=u(89383);function F(le,ne){1&le&&A._UZ(0,"mat-spinner",2)}function z(le,ne){if(1&le&&(A.TgZ(0,"mat-panel-description")(1,"div")(2,"i",10),A._uU(3," error "),A.qZA(),A._uU(4),A.ALo(5,"translate"),A.ALo(6,"translate"),A.qZA()()),2&le){const ke=A.oxw().$implicit,Ee=A.oxw(2);A.xp6(4),A.HOy(" ",Ee.getErrorCountStates(ke)," ",A.lcZ(5,4,"VO_DETAIL.RESOURCES.STATES.FROM")," ",ke.taskList.length," ",A.lcZ(6,6,"VO_DETAIL.RESOURCES.STATES.TASKS_WITH_ERROR_STATE")," ")}}function $(le,ne){1&le&&(A.TgZ(0,"th",23),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&le&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_ID")," "))}function G(le,ne){if(1&le&&(A.TgZ(0,"td",24),A._uU(1),A.qZA()),2&le){const ke=ne.$implicit;A.xp6(1),A.Oqu(ke.id)}}function q(le,ne){1&le&&(A.TgZ(0,"th",23),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&le&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_SERVICE")," "))}function _e(le,ne){if(1&le&&(A.TgZ(0,"td",24),A._uU(1),A.qZA()),2&le){const ke=ne.$implicit;A.xp6(1),A.Oqu(ke.service.name)}}function ce(le,ne){1&le&&(A.TgZ(0,"th",23),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&le&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_STATUS")," "))}function Te(le,ne){if(1&le&&(A.TgZ(0,"td",24),A._uU(1),A.qZA()),2&le){const ke=ne.$implicit;A.xp6(1),A.Oqu(ke.status)}}function b(le,ne){1&le&&(A.TgZ(0,"th",23),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&le&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_SCHEDULED")," "))}function H(le,ne){if(1&le&&(A.TgZ(0,"div"),A._uU(1),A.ALo(2,"date"),A.qZA()),2&le){const ke=A.oxw().$implicit;A.xp6(1),A.hij(" ",A.xi3(2,1,ke.schedule,"d.M.y H:mm:ss")," ")}}function L(le,ne){1&le&&(A._uU(0),A.ALo(1,"translate")),2&le&&A.hij(" ",A.lcZ(1,1,"VO_DETAIL.RESOURCES.STATES.NOT_YET")," ")}function V(le,ne){if(1&le&&(A.TgZ(0,"td",24),A.YNc(1,H,3,4,"div",25),A.YNc(2,L,2,3,"ng-template",26,27,A.W1O),A.qZA()),2&le){const ke=ne.$implicit,Ee=A.MAs(3);A.xp6(1),A.Q6J("ngIf",ke.schedule)("ngIfElse",Ee)}}function Q(le,ne){1&le&&(A.TgZ(0,"th",23),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&le&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_STARTED")," "))}function ae(le,ne){if(1&le&&(A.TgZ(0,"div"),A._uU(1),A.ALo(2,"date"),A.qZA()),2&le){const ke=A.oxw().$implicit;A.xp6(1),A.hij(" ",A.xi3(2,1,ke.schedule,"d.M.y H:mm:ss")," ")}}function xe(le,ne){1&le&&(A._uU(0),A.ALo(1,"translate")),2&le&&A.hij(" ",A.lcZ(1,1,"VO_DETAIL.RESOURCES.STATES.NOT_YET")," ")}function ge(le,ne){if(1&le&&(A.TgZ(0,"td",24),A.YNc(1,ae,3,4,"div",25),A.YNc(2,xe,2,3,"ng-template",26,27,A.W1O),A.qZA()),2&le){const ke=ne.$implicit,Ee=A.MAs(3);A.xp6(1),A.Q6J("ngIf",ke.startTime)("ngIfElse",Ee)}}function Se(le,ne){1&le&&(A.TgZ(0,"th",23),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&le&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_ENDED")," "))}function Be(le,ne){if(1&le&&(A.TgZ(0,"div"),A._uU(1),A.ALo(2,"date"),A.qZA()),2&le){const ke=A.oxw().$implicit;A.xp6(1),A.hij(" ",A.xi3(2,1,ke.schedule,"d.M.y H:mm:ss")," ")}}function pe(le,ne){1&le&&(A._uU(0),A.ALo(1,"translate")),2&le&&A.hij(" ",A.lcZ(1,1,"VO_DETAIL.RESOURCES.STATES.NOT_YET")," ")}function $e(le,ne){if(1&le&&(A.TgZ(0,"td",24),A.YNc(1,Be,3,4,"div",25),A.YNc(2,pe,2,3,"ng-template",26,27,A.W1O),A.qZA()),2&le){const ke=ne.$implicit,Ee=A.MAs(3);A.xp6(1),A.Q6J("ngIf",ke.endTime)("ngIfElse",Ee)}}function Ce(le,ne){1&le&&A._UZ(0,"tr",28)}const de=function(le,ne,ke){return{redTableItem:le,greenTableItem:ne,yellowTableItem:ke}};function re(le,ne){if(1&le&&A._UZ(0,"tr",29),2&le){const ke=ne.$implicit;A.Q6J("ngClass",A.kEZ(1,de,"ERROR"===ke.status||"SENDERROR"===ke.status||"GENERROR"===ke.status,"DONE"===ke.status,"WARNING"===ke.status))}}function B(le,ne){if(1&le&&(A.TgZ(0,"table",12),A.ynx(1,13),A.YNc(2,$,3,3,"th",14),A.YNc(3,G,2,1,"td",15),A.BQk(),A.ynx(4,16),A.YNc(5,q,3,3,"th",14),A.YNc(6,_e,2,1,"td",15),A.BQk(),A.ynx(7,17),A.YNc(8,ce,3,3,"th",14),A.YNc(9,Te,2,1,"td",15),A.BQk(),A.ynx(10,18),A.YNc(11,b,3,3,"th",14),A.YNc(12,V,4,2,"td",15),A.BQk(),A.ynx(13,19),A.YNc(14,Q,3,3,"th",14),A.YNc(15,ge,4,2,"td",15),A.BQk(),A.ynx(16,20),A.YNc(17,Se,3,3,"th",14),A.YNc(18,$e,4,2,"td",15),A.BQk(),A.YNc(19,Ce,1,0,"tr",21),A.YNc(20,re,1,5,"tr",22),A.qZA()),2&le){const ke=A.oxw(2).$implicit,Ee=A.oxw(2);A.Q6J("dataSource",Ee.datasources[Ee.propagation.indexOf(ke)]),A.xp6(19),A.Q6J("matHeaderRowDef",Ee.displayedColumns),A.xp6(1),A.Q6J("matRowDefColumns",Ee.displayedColumns)}}function N(le,ne){1&le&&(A.TgZ(0,"div"),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&le&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.NO_TASKS")," "))}function Me(le,ne){if(1&le&&(A._UZ(0,"mat-divider"),A.YNc(1,B,21,3,"table",11),A.YNc(2,N,3,3,"div",8)),2&le){const ke=A.oxw().$implicit;A.xp6(1),A.Q6J("ngIf",0!==ke.taskList.length),A.xp6(1),A.Q6J("ngIf",0===ke.taskList.length)}}function Y(le,ne){if(1&le&&(A.TgZ(0,"mat-expansion-panel")(1,"mat-expansion-panel-header")(2,"mat-panel-title"),A._UZ(3,"img",6),A.TgZ(4,"div",7),A._uU(5),A.qZA()(),A.YNc(6,z,7,8,"mat-panel-description",8),A.qZA(),A.YNc(7,Me,3,2,"ng-template",9),A.qZA()),2&le){const ke=ne.$implicit,Ee=A.oxw(2);A.xp6(5),A.hij(" ",ke.resource.name," "),A.xp6(1),A.Q6J("ngIf",0!==Ee.getErrorCountStates(ke))}}function be(le,ne){if(1&le&&(A.TgZ(0,"div",3)(1,"mat-accordion",4),A.YNc(2,Y,8,2,"mat-expansion-panel",5),A.qZA()()),2&le){const ke=A.oxw();A.xp6(2),A.Q6J("ngForOf",ke.propagation)}}let De=(()=>{class le{constructor(){this.propagation=[],this.loading=!1,this.datasources=[],this.displayedColumns=["id","service","status","scheduled","started","ended"]}getErrorCountStates(ke){let Ee=0;for(const ot of ke.taskList)("ERROR"===ot.status||"GENERROR"===ot.status||"SENDERROR"===ot.status)&&Ee++;return Ee}getDataSource(){this.datasources=[];for(const ke of this.propagation)this.datasources.push(new E.by(ke.taskList))}ngOnChanges(){this.getDataSource()}}return le.\u0275fac=function(ke){return new(ke||le)},le.\u0275cmp=A.Xpm({type:le,selectors:[["app-state-tab"]],inputs:{propagation:"propagation",loading:"loading"},features:[A.TTD],decls:2,vars:2,consts:[["class","ml-auto mr-auto",4,"ngIf"],["class","p-2",4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"p-2"],["multi","true","togglePosition","before",1,"headers-align"],[4,"ngFor","ngForOf"],["height","28","src","assets/img/PerunWebImages/resource-black.svg","width","28"],[1,"ml-2"],[4,"ngIf"],["matExpansionPanelContent",""],[1,"material-icons","red"],["class","w-100","mat-table","",3,"dataSource",4,"ngIf"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","service"],["matColumnDef","status"],["matColumnDef","scheduled"],["matColumnDef","started"],["matColumnDef","ended"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"ngClass",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],[4,"ngIf","ngIfElse"],["class","font-italic"],["notYet",""],["mat-header-row",""],["mat-row","",3,"ngClass"]],template:function(ke,Ee){1&ke&&(A.YNc(0,F,1,0,"mat-spinner",0),A.YNc(1,be,3,1,"div",1)),2&ke&&(A.Q6J("ngIf",Ee.loading),A.xp6(1),A.Q6J("ngIf",!Ee.loading))},dependencies:[w.mk,w.sg,w.O5,E.BZ,E.fO,E.as,E.w1,E.Dz,E.nj,E.ge,E.ev,E.XQ,E.Gk,S.Ou,R.d,v.pp,v.ib,v.yz,v.yK,v.u4,v.HS,w.uU,D.X$],styles:[".greenTableItem[_ngcontent-%COMP%]{background-color:#c4ffcb}.yellowTableItem[_ngcontent-%COMP%]{background-color:#fffde7}.redTableItem[_ngcontent-%COMP%]{background-color:#ffcdd2}.headers-align[_ngcontent-%COMP%] .mat-expansion-panel-header-title[_ngcontent-%COMP%], .headers-align[_ngcontent-%COMP%] .mat-expansion-panel-header-description[_ngcontent-%COMP%]{flex-basis:0}.headers-align[_ngcontent-%COMP%] .mat-expansion-panel-header-description[_ngcontent-%COMP%]{margin-left:15%;justify-content:space-between;align-items:center}"]}),le})();function We(le,ne){if(1&le&&(A._uU(0),A.ALo(1,"translate"),A.TgZ(2,"span",5),A._uU(3),A.qZA()),2&le){const ke=A.oxw();A.hij(" ",A.lcZ(1,2,"VO_DETAIL.RESOURCES.STATES.ERROR_RESOURCES")," "),A.xp6(3),A.Oqu(ke.errorPropagation.length)}}function Pe(le,ne){1&le&&(A.TgZ(0,"perun-web-apps-alert",8),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&le&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.NO_RESOURCES_IN_ERROR")," "))}function nt(le,ne){if(1&le&&(A.YNc(0,Pe,3,3,"perun-web-apps-alert",6),A._UZ(1,"app-state-tab",7)),2&le){const ke=A.oxw();A.Q6J("ngIf",!ke.loading&&0===ke.errorPropagation.length),A.xp6(1),A.Q6J("loading",ke.loading)("propagation",ke.errorPropagation)}}function Ye(le,ne){if(1&le&&(A._uU(0),A.ALo(1,"translate"),A.TgZ(2,"span",9),A._uU(3),A.qZA()),2&le){const ke=A.oxw();A.hij(" ",A.lcZ(1,2,"VO_DETAIL.RESOURCES.STATES.OK_RESOURCES")," "),A.xp6(3),A.Oqu(ke.okPropagation.length)}}function Tt(le,ne){1&le&&(A.TgZ(0,"perun-web-apps-alert",8),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&le&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.NO_RESOURCES_IN_OK")," "))}function J(le,ne){if(1&le&&(A.YNc(0,Tt,3,3,"perun-web-apps-alert",6),A._UZ(1,"app-state-tab",7)),2&le){const ke=A.oxw();A.Q6J("ngIf",!ke.loading&&0===ke.okPropagation.length),A.xp6(1),A.Q6J("loading",ke.loading)("propagation",ke.okPropagation)}}let Xe=(()=>{class le{constructor(ke,Ee){this.taskService=ke,this.entityStorageService=Ee,this.loading=!1,this.okPropagation=[],this.errorPropagation=[],this.resourceStates=[],this.selectedIndex=0}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.refreshTable()}refreshTable(){this.loading=!0,this.taskService.getAllResourcesState(this.vo.id).subscribe(ke=>{this.resourceStates=ke,this.okPropagation=[],this.errorPropagation=[];for(const Ee of ke){let ot=!0;for(const it of Ee.taskList)if("ERROR"===it.status||"GENERROR"===it.status||"SENDERROR"===it.status){ot=!1;break}ot?this.okPropagation.push(Ee):this.errorPropagation.push(Ee)}this.loading=!1},()=>this.loading=!1)}}return le.id="VoResourcesStatesComponent",le.\u0275fac=function(ke){return new(ke||le)(A.Y36(m.Ob),A.Y36(e.fb))},le.\u0275cmp=A.Xpm({type:le,selectors:[["app-vo-resources-states"]],hostVars:2,hostBindings:function(ke,Ee){2&ke&&A.ekj("router-component",Ee.true)},decls:11,vars:4,consts:[[1,"page-subtitle"],[3,"refresh"],["animationDuration","0ms",3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],["matTabContent",""],[1,"badge","badge-danger","ml-1"],["alert_type","warn",4,"ngIf"],[3,"loading","propagation"],["alert_type","warn"],[1,"badge","badge-success","ml-1"]],template:function(ke,Ee){1&ke&&(A.TgZ(0,"h1",0),A._uU(1),A.ALo(2,"translate"),A.qZA(),A.TgZ(3,"perun-web-apps-refresh-button",1),A.NdJ("refresh",function(){return Ee.refreshTable()}),A.qZA(),A.TgZ(4,"mat-tab-group",2),A.NdJ("selectedIndexChange",function(it){return Ee.selectedIndex=it}),A.TgZ(5,"mat-tab"),A.YNc(6,We,4,4,"ng-template",3),A.YNc(7,nt,2,3,"ng-template",4),A.qZA(),A.TgZ(8,"mat-tab"),A.YNc(9,Ye,4,4,"ng-template",3),A.YNc(10,J,2,3,"ng-template",4),A.qZA()()),2&ke&&(A.xp6(1),A.Oqu(A.lcZ(2,2,"VO_DETAIL.RESOURCES.STATES.TITLE")),A.xp6(3),A.Q6J("selectedIndex",Ee.selectedIndex))},dependencies:[w.O5,p.SP,p.uD,p.uX,p.Vc,g.w,T.t,De,D.X$]}),le})()},10369:(Qe,he,u)=>{"use strict";u.d(he,{w:()=>ge});var e=u(1186),m=u(69723),A=u(95502),w=u(51076),p=u(83491),g=u(32105),T=u(9244),E=u(94650),S=u(65412),R=u(89383),v=u(94364),D=u(36895),F=u(97392),z=u(4859),$=u(51572),G=u(10266),q=u(44850),_e=u(98380),ce=u(96214),Te=u(157);function b(Se,Be){1&Se&&E._UZ(0,"mat-spinner",13)}function H(Se,Be){if(1&Se){const pe=E.EpF();E.TgZ(0,"button",21),E.NdJ("click",function(){E.CHM(pe);const Ce=E.oxw(2);return E.KtG(Ce.settings())}),E.TgZ(1,"i",10),E._uU(2,"edit"),E.qZA(),E._uU(3),E.ALo(4,"translate"),E.qZA()}2&Se&&(E.xp6(3),E.hij(" ",E.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SETTINGS_BUTTON")," "))}function L(Se,Be){if(1&Se&&(E.TgZ(0,"div",14)(1,"div",15)(2,"div",16),E._uU(3),E.ALo(4,"translate"),E.qZA(),E.TgZ(5,"div")(6,"span",16),E._uU(7),E.ALo(8,"translate"),E.qZA(),E._uU(9,": "),E.TgZ(10,"mat-icon",17),E._uU(11,"arrow_right_alt"),E.qZA(),E._uU(12),E.ALo(13,"translate"),E.ALo(14,"translate"),E.TgZ(15,"mat-icon",18),E._uU(16,"restore"),E.qZA(),E._uU(17),E.ALo(18,"translate"),E.ALo(19,"translate"),E.qZA()(),E.TgZ(20,"div",19),E.YNc(21,H,5,3,"button",20),E.qZA()()),2&Se){const pe=E.oxw();E.xp6(3),E.AsE(" ",E.lcZ(4,6,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MODULE_NAME"),": ",pe.applicationForm.moduleClassName," "),E.xp6(4),E.Oqu(E.lcZ(8,8,"VO_DETAIL.SETTINGS.APPLICATION_FORM.APPLICATION_TYPE")),E.xp6(5),E.hij(" ",pe.applicationForm.automaticApproval?E.lcZ(13,10,"VO_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):E.lcZ(14,12,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," , "),E.xp6(5),E.hij(" ",pe.applicationForm.automaticApprovalExtension?E.lcZ(18,14,"VO_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):E.lcZ(19,16,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," "),E.xp6(4),E.Q6J("ngIf",pe.editAuth)}}function V(Se,Be){if(1&Se){const pe=E.EpF();E.TgZ(0,"button",22),E.NdJ("click",function(){E.CHM(pe);const Ce=E.oxw();return E.KtG(Ce.add())}),E._uU(1),E.ALo(2,"translate"),E.qZA()}2&Se&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.ADD_BUTTON")," "))}function Q(Se,Be){if(1&Se){const pe=E.EpF();E.TgZ(0,"button",23),E.NdJ("click",function(){E.CHM(pe);const Ce=E.oxw();return E.KtG(Ce.save())}),E.TgZ(1,"i",10),E._uU(2,"save"),E.qZA(),E._uU(3),E.ALo(4,"translate"),E.qZA()}if(2&Se){const pe=E.oxw();E.Q6J("disabled",!pe.itemsChanged),E.xp6(3),E.hij(" ",E.lcZ(4,2,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SAVE_BUTTON")," ")}}function ae(Se,Be){if(1&Se){const pe=E.EpF();E.TgZ(0,"button",24),E.NdJ("click",function(){E.CHM(pe);const Ce=E.oxw();return E.KtG(Ce.copy())}),E.TgZ(1,"i",10),E._uU(2,"file_copy"),E.qZA(),E._uU(3),E.ALo(4,"translate"),E.qZA()}2&Se&&(E.xp6(3),E.hij(" ",E.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.COPY_VO_BUTTON")," "))}function xe(Se,Be){1&Se&&(E.TgZ(0,"perun-web-apps-alert",25),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&Se&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.DRAG_AND_DROP_INFO")," "))}let ge=(()=>{class Se{constructor(pe,$e,Ce,de,re,B,N,Me){this.registrarManager=pe,this.dialog=$e,this.notificator=Ce,this.translate=de,this.router=re,this.authResolver=B,this.voService=N,this.entityStorageService=Me,this.loading=!1,this.applicationFormItems=[],this.itemsChanged=!1,this.displayedColumns=[],this.refreshApplicationForm=!1,this.idCounter=-1}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.setAuthRights(),this.registrarManager.getVoApplicationForm(this.vo.id).subscribe(pe=>{this.applicationForm=pe,this.registrarManager.getFormItemsForVo(this.vo.id).subscribe($e=>{this.applicationFormItems=$e,this.loading=!1})})}add(){let pe=(0,T.kZ)();pe.width="500px",pe.data={applicationFormItems:this.applicationFormItems,fakeId:this.idCounter--},this.dialog.open(w.J,pe).afterClosed().subscribe(Ce=>{Ce&&(this.applicationFormItems=Object.assign([],Ce[0]),pe=(0,T.kZ)(),pe.width="600px",pe.height="600px",pe.data={voId:this.vo.id,applicationFormItem:Ce[1],theme:"vo-theme",allItems:this.applicationFormItems},this.dialog.open(p._,pe),this.itemsChanged=!0)})}copy(){const pe=(0,T.kZ)();pe.width="500px",pe.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(A.W,pe).afterClosed().subscribe(Ce=>{Ce&&this.updateFormItems()})}settings(){const pe=(0,T.kZ)();pe.width="400px",pe.data={entity:"vo",applicationForm:this.applicationForm,theme:"vo-theme"},this.dialog.open(e.E,pe).afterClosed().subscribe(Ce=>{Ce&&(this.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_SETTINGS_SUCCESS").subscribe(de=>{this.notificator.showSuccess(de)}),this.applicationForm=Ce)})}preview(){this.router.navigate(["/organizations",this.vo.id,"settings","applicationForm","preview"],{queryParams:{applicationFormItems:JSON.stringify(this.applicationFormItems)},queryParamsHandling:"merge"})}updateFormItems(){this.loading=!0,this.refreshApplicationForm=!0,this.registrarManager.getFormItemsForVo(this.vo.id).subscribe(pe=>{this.applicationFormItems=pe,this.itemsChanged=!1,this.setAuthRights(),this.refreshApplicationForm=!1,this.loading=!1})}changeItems(){this.itemsChanged=!0}save(){let pe=0;for(const $e of this.applicationFormItems)$e.ordnum=pe,$e.forDelete||pe++;this.registrarManager.updateFormItemsForVo({vo:this.vo.id,items:this.applicationFormItems}).subscribe(()=>{this.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_APPLICATION_FORM_ITEMS_SUCCESS").subscribe($e=>{this.notificator.showSuccess($e)}),this.updateFormItems()})}clear(){this.applicationFormItems.forEach(pe=>pe.forDelete=!0),this.itemsChanged=!0}setAuthRights(){this.editAuth=this.authResolver.isAuthorized("vo-updateFormItems_ApplicationForm_List_policy",[this.vo]),this.displayedColumns=this.editAuth?["drag","shortname","type","disabled","hidden","preview","managegroups","edit","delete"]:["shortname","type","disabled","hidden","preview","managegroups"]}}return Se.id="VoSettingsApplicationFormComponent",Se.\u0275fac=function(pe){return new(pe||Se)(E.Y36(g.tk),E.Y36(S.uw),E.Y36(m.V6),E.Y36(R.sK),E.Y36(v.F0),E.Y36(m.x4),E.Y36(g.YF),E.Y36(m.fb))},Se.\u0275cmp=E.Xpm({type:Se,selectors:[["app-vo-settings-application-form"]],hostVars:2,hostBindings:function(pe,$e){2&pe&&E.ekj("router-component",$e.true)},decls:19,vars:18,consts:[[1,"page-subtitle"],["class","ml-auto mr-auto",4,"ngIf"],["class","d-flex w-50",4,"ngIf"],[1,"mb-2","mt-2"],[1,"w-100","d-flex"],[3,"refresh"],["color","accent","class","mr-2 action-button","data-cy","add-form-item","mat-flat-button","",3,"click",4,"ngIf"],["color","accent","data-cy","save-application-form","class","mr-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","mr-2 action-button","mat-stroked-button","",3,"click",4,"ngIf"],["mat-stroked-button","",3,"click"],[1,"material-icons"],["alert_type","info",4,"ngIf"],[3,"applicationForm","applicationFormItems","loading","displayedColumns","refreshApplicationForm","theme","applicationFormItemsChange"],[1,"ml-auto","mr-auto"],[1,"d-flex","w-50"],[1,"w-50"],[1,"font-weight-bold"],["matTooltip","Initial",1,"align-text-bottom"],["matTooltip","Extension",1,"align-text-bottom"],[1,"w-25"],["class","ml-auto action-button","mat-stroked-button","",3,"click",4,"ngIf"],["mat-stroked-button","",1,"ml-auto","action-button",3,"click"],["color","accent","data-cy","add-form-item","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","accent","data-cy","save-application-form","mat-flat-button","",1,"mr-2",3,"disabled","click"],["mat-stroked-button","",1,"mr-2","action-button",3,"click"],["alert_type","info"]],template:function(pe,$e){1&pe&&(E.TgZ(0,"h1",0),E._uU(1),E.ALo(2,"translate"),E.qZA(),E.YNc(3,b,1,0,"mat-spinner",1),E.TgZ(4,"div"),E.YNc(5,L,22,18,"div",2),E._UZ(6,"mat-divider",3),E.TgZ(7,"div",4)(8,"perun-web-apps-refresh-button",5),E.NdJ("refresh",function(){return $e.updateFormItems()}),E.qZA(),E.YNc(9,V,3,3,"button",6),E.YNc(10,Q,5,4,"button",7),E.YNc(11,ae,5,3,"button",8),E.TgZ(12,"button",9),E.NdJ("click",function(){return $e.preview()}),E.TgZ(13,"i",10),E._uU(14,"search"),E.qZA(),E._uU(15),E.ALo(16,"translate"),E.qZA()(),E.YNc(17,xe,3,3,"perun-web-apps-alert",11),E.TgZ(18,"app-application-form-list",12),E.NdJ("applicationFormItemsChange",function(){return $e.changeItems()}),E.qZA()()),2&pe&&(E.xp6(1),E.hij(" ",E.lcZ(2,14,"VO_DETAIL.SETTINGS.APPLICATION_FORM.TITLE"),"\n"),E.xp6(2),E.Q6J("ngIf",$e.loading),E.xp6(2),E.Q6J("ngIf",!$e.loading),E.xp6(4),E.Q6J("ngIf",$e.editAuth),E.xp6(1),E.Q6J("ngIf",$e.editAuth),E.xp6(1),E.Q6J("ngIf",$e.editAuth),E.xp6(4),E.hij(" ",E.lcZ(16,16,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_BUTTON")," "),E.xp6(2),E.Q6J("ngIf",$e.editAuth),E.xp6(1),E.Q6J("applicationForm",$e.applicationForm)("applicationFormItems",$e.applicationFormItems)("loading",$e.loading)("displayedColumns",$e.displayedColumns)("refreshApplicationForm",$e.refreshApplicationForm)("theme","vo-theme"))},dependencies:[D.O5,F.Hw,z.lW,$.Ou,G.gM,q.d,_e.w,ce.t,Te.b,R.X$]}),Se})()},11042:(Qe,he,u)=>{"use strict";u.d(he,{T:()=>yr});var e=u(32105),m=u(95017),A=u(10036),w=u(9244),p=u(65412),g=u(69723),T=u(24006),E=u(36895),S=u(28499),R=u(77579),v=u(94650),D=u(89383),F=u(3238),z=u(59549),$=u(284),G=u(97392),q=u(4859),_e=u(56709),ce=u(84385),Te=u(51572),b=u(10266),H=u(86257),L=u(98380),V=u(87488),Q=u(13469),ae=u(64080),xe=u(71948),ge=u(25788),Se=u(7434),Be=u(61150);function pe(Dt,nn){1&Dt&&v._UZ(0,"mat-spinner",2)}function $e(Dt,nn){1&Dt&&(v.TgZ(0,"div")(1,"perun-web-apps-alert",10),v._uU(2),v.ALo(3,"translate"),v.qZA()()),2&Dt&&(v.xp6(2),v.Oqu(v.lcZ(3,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DONT_ASSIGN_INFO")))}function Ce(Dt,nn){if(1&Dt){const ht=v.EpF();v.TgZ(0,"div")(1,"h5",11),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.TgZ(4,"perun-web-apps-create-group-form",12),v.NdJ("asSubgroupChanged",function(Zt){v.CHM(ht);const on=v.oxw(2);return v.KtG(on.onAsSubgroupChange(Zt))})("nameChanged",function(Zt){v.CHM(ht);const on=v.oxw(2);return v.KtG(on.onNameChange(Zt))})("descriptionChanged",function(Zt){v.CHM(ht);const on=v.oxw(2);return v.KtG(on.onDescriptionChange(Zt))})("parentGroupChanged",function(Zt){v.CHM(ht);const on=v.oxw(2);return v.KtG(on.onParentChange(Zt))}),v.qZA()()}if(2&Dt){const ht=v.oxw(2);v.xp6(2),v.Oqu(v.lcZ(3,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.CREATE_NEW_GROUP")),v.xp6(2),v.Q6J("voGroups",ht.allVoGroups)}}const de=function(){return["select","id","name","description"]};function re(Dt,nn){if(1&Dt){const ht=v.EpF();v.TgZ(0,"div")(1,"h5",11),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.TgZ(4,"perun-web-apps-immediate-filter",13),v.NdJ("filter",function(Zt){v.CHM(ht);const on=v.oxw(2);return v.KtG(on.applyFilter(Zt))}),v.qZA(),v._UZ(5,"perun-web-apps-groups-list",14),v.qZA()}if(2&Dt){const ht=v.oxw(2);v.xp6(2),v.hij(" ",v.lcZ(3,8,"DIALOGS.GENERATE_SPONSORED_MEMBERS.SELECT_EXISTING_GROUPS")," "),v.xp6(2),v.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),v.xp6(1),v.Q6J("groups",ht.assignableGroups)("selection",ht.selection)("disableRouting",!0)("displayedColumns",v.DdM(10,de))("filter",ht.filterValue)("tableId",ht.tableId)}}function B(Dt,nn){if(1&Dt){const ht=v.EpF();v.TgZ(0,"div")(1,"div",3)(2,"h5",4),v._uU(3),v.ALo(4,"translate"),v.qZA(),v.TgZ(5,"mat-radio-group",5),v.NdJ("change",function(){v.CHM(ht);const Zt=v.oxw();return v.KtG(Zt.groupAssigmentChanged())})("ngModelChange",function(Zt){v.CHM(ht);const on=v.oxw();return v.KtG(on.groupAssignment=Zt)}),v.TgZ(6,"mat-radio-button",6),v._uU(7),v.ALo(8,"translate"),v.qZA(),v.TgZ(9,"span",7),v.ALo(10,"translate"),v.TgZ(11,"mat-radio-button",8),v._uU(12),v.ALo(13,"translate"),v.qZA()(),v.TgZ(14,"span",7),v.ALo(15,"translate"),v.TgZ(16,"mat-radio-button",9),v._uU(17),v.ALo(18,"translate"),v.qZA()()()(),v.YNc(19,$e,4,3,"div",1),v.YNc(20,Ce,5,4,"div",1),v.YNc(21,re,6,11,"div",1),v.qZA()}if(2&Dt){const ht=v.oxw();v.xp6(3),v.Oqu(v.lcZ(4,14,"DIALOGS.GENERATE_SPONSORED_MEMBERS.GROUP_ASSIGMENT")),v.xp6(2),v.Q6J("ngModel",ht.groupAssignment),v.xp6(2),v.hij(" ",v.lcZ(8,16,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NO_ASSIGN")," "),v.xp6(2),v.s9C("matTooltip",v.lcZ(10,18,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DISABLED_ASSIGN_NEW")),v.Q6J("matTooltipDisabled",!ht.manualMemberAddingBlocked&&ht.createGroupAuth),v.xp6(2),v.Q6J("disabled",ht.manualMemberAddingBlocked||!ht.createGroupAuth),v.xp6(1),v.hij(" ",v.lcZ(13,20,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ASSIGN_TO_NEW")," "),v.xp6(2),v.s9C("matTooltip",v.lcZ(15,22,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DISABLED_ASSIGN_EXISTING")),v.Q6J("matTooltipDisabled",!ht.manualMemberAddingBlocked&&0!==ht.assignableGroups.length),v.xp6(2),v.Q6J("disabled",ht.manualMemberAddingBlocked||0===ht.assignableGroups.length),v.xp6(1),v.hij(" ",v.lcZ(18,24,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ASSIGN_EXISTING")," "),v.xp6(2),v.Q6J("ngIf","none"===ht.groupAssignment),v.xp6(1),v.Q6J("ngIf","new"===ht.groupAssignment),v.xp6(1),v.Q6J("ngIf","existing"===ht.groupAssignment)}}let N=(()=>{class Dt{constructor(ht,Vt,Zt){this.groupsService=ht,this.guiAuthResolver=Vt,this.attributesService=Zt,this.groupsToAdd=new v.vpe,this.submitAllowed=new v.vpe,this.loading=!1,this.assignableGroups=[],this.allVoGroups=[],this.manualMemberAddingBlocked=!1,this.groupAssignment="none",this.selection=new m.Ov(!0,[]),this.name="",this.description="",this.asSubgroup=!1,this.parentGroup=null,this.filterValue="",this.tableId=A.rc,this.groupToCreate={id:0,beanName:"Group"},this.groupIds=[],this.groupAttrNames=[ae.r.GROUP_SYNC_ENABLED,ae.r.GROUP_BLOCK_MANUAL_MEMBER_ADDING]}ngOnInit(){this.onSubmit=this.submit.subscribe(()=>this.handleGroups()),this.selection.changed.subscribe(()=>this.isSubmitAllowed()),this.createGroupAuth=this.guiAuthResolver.isAuthorized("createGroup_Vo_Group_policy",[{id:this.voId,beanName:"Vo"}]),this.attributesService.getVoAttributes(this.voId).subscribe(ht=>{this.manualMemberAddingBlocked=(0,w.jh)(ht,ae.r.VO_BLOCK_MANUAL_MEMBER_ADDING),this.groupsService.getAllRichGroupsWithAttributesByNames(this.voId,this.groupAttrNames).subscribe(Vt=>{this.allVoGroups=Vt.filter(Zt=>"members"!==Zt.name),this.assignableGroups=this.filterAssignableGroups(Vt),this.isSubmitAllowed()})})}ngOnDestroy(){void 0!==this.onSubmit&&this.onSubmit.unsubscribe()}groupAssigmentChanged(){this.selection.clear(),this.groupToCreate.name="",this.groupToCreate.description="",this.asSubgroup=!1,this.groupToCreate.parentGroupId=null,this.isSubmitAllowed()}applyFilter(ht){this.filterValue=ht}onNameChange(ht){this.groupToCreate.name=ht,this.isSubmitAllowed()}onParentChange(ht){this.groupToCreate.parentGroupId=null===ht?null:ht.id,this.isSubmitAllowed()}onAsSubgroupChange(ht){this.asSubgroup=ht,this.isSubmitAllowed()}onDescriptionChange(ht){this.groupToCreate.description=ht,this.isSubmitAllowed()}isSubmitAllowed(){this.submitAllowed.emit(!(null===this.groupAssignment||"existing"===this.groupAssignment&&0===this.selection.selected.length||"new"===this.groupAssignment&&(0===this.groupToCreate.name.length||0===this.groupToCreate.description.length)||this.asSubgroup&&null===this.groupToCreate.parentGroupId))}handleGroups(){this.loading=!0,"new"===this.groupAssignment?this.asSubgroup?this.groupsService.createGroupWithParentGroupNameDescription(this.groupToCreate.parentGroupId,this.groupToCreate.name,this.groupToCreate.description).subscribe({next:ht=>{this.groupIds.push(ht.id),this.groupsToAdd.emit(this.groupIds)},error:()=>this.loading=!1}):this.groupsService.createGroupWithVoNameDescription(this.voId,this.groupToCreate.name,this.groupToCreate.description).subscribe({next:ht=>{this.groupIds.push(ht.id),this.groupsToAdd.emit(this.groupIds)},error:()=>this.loading=!1}):("existing"===this.groupAssignment&&(this.groupIds=this.selection.selected.map(ht=>ht.id)),this.groupsToAdd.emit(this.groupIds))}filterAssignableGroups(ht){const Vt=[];for(const Zt of ht)!(0,w.bx)(Zt)&&!(0,w.jh)(Zt.attributes,ae.r.GROUP_BLOCK_MANUAL_MEMBER_ADDING)&&this.guiAuthResolver.isAuthorized("addMembers_Group_List_policy",[Zt])&&Vt.push(Zt);return Vt}}return Dt.\u0275fac=function(ht){return new(ht||Dt)(v.Y36(e.ff),v.Y36(g.x4),v.Y36(e.H8))},Dt.\u0275cmp=v.Xpm({type:Dt,selectors:[["app-assign-groups-sponsored-members-component"]],inputs:{submit:"submit",voId:"voId"},outputs:{groupsToAdd:"groupsToAdd",submitAllowed:"submitAllowed"},decls:2,vars:2,consts:[["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"mt-2"],[1,"mb-4"],[1,"flex-container",3,"ngModel","change","ngModelChange"],["value","none","data-cy","no-assign-button"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["value","new",3,"disabled"],["value","existing",3,"disabled"],["alert_type","info",1,"mt-4"],[1,"mt-4"],[3,"voGroups","asSubgroupChanged","nameChanged","descriptionChanged","parentGroupChanged"],[3,"placeholder","filter"],[3,"groups","selection","disableRouting","displayedColumns","filter","tableId"]],template:function(ht,Vt){1&ht&&(v.YNc(0,pe,1,0,"mat-spinner",0),v.YNc(1,B,22,26,"div",1)),2&ht&&(v.Q6J("ngIf",Vt.loading),v.xp6(1),v.Q6J("ngIf",!Vt.loading))},dependencies:[E.O5,T.JJ,T.On,Te.Ou,b.gM,xe.VQ,xe.U0,L.w,ge.W,Se.L,Be.r,D.X$],styles:[".flex-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),Dt})();var Me=u(39158),Y=u(31359);const be=["stepper"];function De(Dt,nn){1&Dt&&(v.TgZ(0,"h1",4),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&Dt&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.TITLE")," "))}function We(Dt,nn){1&Dt&&v._UZ(0,"mat-spinner",5)}function Pe(Dt,nn){1&Dt&&(v._uU(0),v.ALo(1,"translate")),2&Dt&&v.Oqu(v.lcZ(1,1,"DIALOGS.CREATE_SPONSORED_MEMBER.USER_LABEL"))}function nt(Dt,nn){1&Dt&&(v.TgZ(0,"perun-web-apps-alert",33),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&Dt&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.FUNCTIONALITY_NOT_SUPPORTED")," "))}function Ye(Dt,nn){1&Dt&&(v.TgZ(0,"mat-error"),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&Dt&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.LENGTH_ERROR")," "))}function Tt(Dt,nn){1&Dt&&(v.TgZ(0,"mat-error"),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&Dt&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.LENGTH_ERROR")," "))}function J(Dt,nn){1&Dt&&(v._uU(0),v.ALo(1,"translate")),2&Dt&&v.Oqu(v.lcZ(1,1,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE_LABEL"))}function Xe(Dt,nn){if(1&Dt&&(v.TgZ(0,"mat-option",34),v._uU(1),v.qZA()),2&Dt){const ht=nn.$implicit;v.Q6J("value",ht),v.uIk("data-cy",ht),v.xp6(1),v.hij(" ",ht," ")}}function le(Dt,nn){1&Dt&&(v.TgZ(0,"mat-error"),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&Dt&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE_ERROR")," "))}function ne(Dt,nn){1&Dt&&(v.TgZ(0,"mat-error"),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&Dt&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.LENGTH_ERROR")," "))}function ke(Dt,nn){1&Dt&&(v.TgZ(0,"mat-error"),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&Dt&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.EMAIL_ERROR")," "))}function Ee(Dt,nn){1&Dt&&(v._uU(0),v.ALo(1,"translate")),2&Dt&&v.Oqu(v.lcZ(1,1,"DIALOGS.CREATE_SPONSORED_MEMBER.SPONSORSHIP_LABEL"))}function ot(Dt,nn){1&Dt&&(v._uU(0),v.ALo(1,"translate")),2&Dt&&v.Oqu(v.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.GROUPS_LABEL"))}function it(Dt,nn){if(1&Dt){const ht=v.EpF();v.TgZ(0,"div",6)(1,"mat-stepper",7,8)(3,"mat-step",9),v.YNc(4,Pe,2,3,"ng-template",10),v.YNc(5,nt,3,3,"perun-web-apps-alert",11),v.TgZ(6,"form",12)(7,"h5",13),v._uU(8),v.ALo(9,"translate"),v.qZA(),v.TgZ(10,"mat-form-field",14),v._UZ(11,"input",15),v.ALo(12,"translate"),v.YNc(13,Ye,3,3,"mat-error",16),v.qZA(),v.TgZ(14,"mat-form-field"),v._UZ(15,"input",17),v.ALo(16,"translate"),v.YNc(17,Tt,3,3,"mat-error",16),v.qZA(),v.TgZ(18,"mat-form-field"),v._UZ(19,"input",18),v.ALo(20,"translate"),v.qZA(),v.TgZ(21,"mat-form-field"),v._UZ(22,"input",19),v.ALo(23,"translate"),v.qZA()()(),v.TgZ(24,"mat-step",9),v.YNc(25,J,2,3,"ng-template",10),v.TgZ(26,"h5",13),v._uU(27),v.ALo(28,"translate"),v.qZA(),v.TgZ(29,"form",20)(30,"mat-form-field",21)(31,"mat-select",22),v.NdJ("valueChange",function(Zt){v.CHM(ht);const on=v.oxw();return v.KtG(on.onNamespaceChanged(Zt))}),v.ALo(32,"translate"),v.YNc(33,Xe,2,3,"mat-option",23),v.qZA(),v.YNc(34,le,3,3,"mat-error",16),v.qZA(),v.TgZ(35,"mat-form-field",24),v.ALo(36,"translate"),v._UZ(37,"input",25),v.ALo(38,"translate"),v.YNc(39,ne,3,3,"mat-error",16),v.qZA(),v.TgZ(40,"mat-form-field"),v._UZ(41,"input",26),v.ALo(42,"translate"),v.YNc(43,ke,3,3,"mat-error",16),v.qZA(),v.TgZ(44,"span",24),v.ALo(45,"translate"),v.TgZ(46,"mat-checkbox",27),v.NdJ("change",function(){v.CHM(ht);const Zt=v.oxw();return v.KtG(Zt.passwordResetChange())}),v._uU(47),v.ALo(48,"translate"),v.qZA()(),v._UZ(49,"perun-web-apps-password-form",28),v.qZA()(),v.TgZ(50,"mat-step"),v.YNc(51,Ee,2,3,"ng-template",10),v.TgZ(52,"div",29)(53,"h5",13),v._uU(54),v.ALo(55,"translate"),v.qZA(),v.TgZ(56,"app-choose-sponsor",30),v.NdJ("sponsorTypeSelected",function(Zt){v.CHM(ht);const on=v.oxw();return v.KtG(on.sponsorType=Zt)})("sponsorSelected",function(Zt){v.CHM(ht);const on=v.oxw();return v.KtG(on.selectedSponsor=Zt)}),v.qZA(),v.TgZ(57,"h6",14),v._uU(58),v.ALo(59,"translate"),v.qZA(),v.TgZ(60,"perun-web-apps-expiration-select",31),v.NdJ("datePicker",function(Zt){v.CHM(ht);const on=v.oxw();return v.KtG(on.setExpiration(Zt))}),v.qZA()()(),v.TgZ(61,"mat-step"),v.YNc(62,ot,2,3,"ng-template",10),v.TgZ(63,"app-assign-groups-sponsored-members-component",32),v.NdJ("groupsToAdd",function(Zt){v.CHM(ht);const on=v.oxw();return v.KtG(on.createMember(Zt))})("submitAllowed",function(Zt){v.CHM(ht);const on=v.oxw();return v.KtG(on.submitAllowed=Zt)}),v.qZA()()()()}if(2&Dt){const ht=v.oxw();v.xp6(1),v.Q6J("linear",!0),v.xp6(2),v.Q6J("stepControl",ht.userControl),v.xp6(2),v.Q6J("ngIf",ht.functionalityNotSupported),v.xp6(1),v.Q6J("formGroup",ht.userControl),v.xp6(2),v.hij(" ",v.lcZ(9,35,"DIALOGS.CREATE_SPONSORED_MEMBER.USER_TITLE")," "),v.xp6(3),v.s9C("placeholder",v.lcZ(12,37,"DIALOGS.CREATE_SPONSORED_MEMBER.FIRST_NAME")),v.xp6(2),v.Q6J("ngIf",ht.userControl.hasError("required","firstName")),v.xp6(2),v.s9C("placeholder",v.lcZ(16,39,"DIALOGS.CREATE_SPONSORED_MEMBER.LAST_NAME")),v.xp6(2),v.Q6J("ngIf",ht.userControl.hasError("required","lastName")),v.xp6(2),v.s9C("placeholder",v.lcZ(20,41,"DIALOGS.CREATE_SPONSORED_MEMBER.TITLE_BEFORE")),v.xp6(3),v.s9C("placeholder",v.lcZ(23,43,"DIALOGS.CREATE_SPONSORED_MEMBER.TITLE_AFTER")),v.xp6(2),v.Q6J("stepControl",ht.namespaceControl),v.xp6(3),v.Oqu(v.lcZ(28,45,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE_TITLE")),v.xp6(2),v.Q6J("formGroup",ht.namespaceControl),v.xp6(2),v.s9C("placeholder",v.lcZ(32,47,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE")),v.xp6(2),v.Q6J("ngForOf",ht.namespaceOptions),v.xp6(1),v.Q6J("ngIf",ht.namespaceControl.hasError("required","namespace")),v.xp6(1),v.s9C("matTooltip",v.lcZ(36,49,"DIALOGS.CREATE_SPONSORED_MEMBER.LOGIN_DISABLED")),v.Q6J("matTooltipDisabled",ht.namespaceControl.get("login").enabled),v.xp6(2),v.s9C("placeholder",v.lcZ(38,51,"DIALOGS.CREATE_SPONSORED_MEMBER.LOGIN")),v.xp6(2),v.Q6J("ngIf",ht.namespaceControl.hasError("required","login")),v.xp6(2),v.s9C("placeholder",v.lcZ(42,53,"DIALOGS.CREATE_SPONSORED_MEMBER.EMAIL")),v.xp6(2),v.Q6J("ngIf",ht.namespaceControl.hasError("required","email")||ht.namespaceControl.hasError("pattern","email")),v.xp6(1),v.s9C("matTooltip",v.lcZ(45,55,"DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD_RESET_DISABLED")),v.Q6J("matTooltipDisabled",ht.namespaceControl.get("passwordReset").enabled),v.xp6(3),v.hij("",v.lcZ(48,57,"DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD_RESET")," "),v.xp6(2),v.Q6J("formGroup",ht.namespaceControl)("namespace",ht.selectedNamespace)("tooltipPwdViaEmail",ht.namespaceControl.get("passwordReset").value),v.xp6(5),v.Oqu(v.lcZ(55,59,"DIALOGS.CREATE_SPONSORED_MEMBER.SPONSORSHIP_TITLE")),v.xp6(2),v.Q6J("voId",ht.data.voId)("voSponsors",ht.data.sponsors),v.xp6(2),v.Oqu(v.lcZ(59,61,"DIALOGS.CREATE_SPONSORED_MEMBER.EXPIRATION")),v.xp6(5),v.Q6J("voId",ht.data.voId)("submit",ht.groupsToAssign.asObservable())}}function oe(Dt,nn){1&Dt&&(v.TgZ(0,"perun-web-apps-alert",33),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&Dt&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.WITH_ERRORS")))}function X(Dt,nn){if(1&Dt&&(v.TgZ(0,"div",6)(1,"div",35)(2,"mat-icon",36),v._uU(3,"done"),v.qZA(),v._uU(4),v.ALo(5,"translate"),v.TgZ(6,"i"),v._uU(7),v.ALo(8,"userFullName"),v.qZA(),v._uU(9),v.ALo(10,"translate"),v.qZA(),v.TgZ(11,"div"),v._uU(12),v.ALo(13,"translate"),v.qZA(),v.TgZ(14,"div"),v._uU(15),v.ALo(16,"translate"),v.qZA(),v.TgZ(17,"perun-web-apps-alert",37),v._uU(18),v.ALo(19,"translate"),v.qZA(),v.YNc(20,oe,3,3,"perun-web-apps-alert",11),v.qZA()),2&Dt){const ht=v.oxw();v.xp6(4),v.hij(" ",v.lcZ(5,9,"DIALOGS.CREATE_SPONSORED_MEMBER.USER")," "),v.xp6(3),v.Oqu(v.lcZ(8,11,ht.createdMember.user)),v.xp6(2),v.hij(" ",v.lcZ(10,13,"DIALOGS.CREATE_SPONSORED_MEMBER.WAS_CREATED")," "),v.xp6(3),v.AsE("",v.lcZ(13,15,"DIALOGS.CREATE_SPONSORED_MEMBER.LOGIN"),": ",ht.loginThatWasSet,""),v.xp6(3),v.AsE(" ",v.lcZ(16,17,"DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD")," : ",ht.namespaceControl.get("passwordCtrl").value," "),v.xp6(3),v.Oqu(v.lcZ(19,19,"DIALOGS.CREATE_SPONSORED_MEMBER.COPY_INFORMATION")),v.xp6(2),v.Q6J("ngIf",ht.finishedWithErrors)}}function r(Dt,nn){if(1&Dt){const ht=v.EpF();v.TgZ(0,"div",38)(1,"button",39),v.NdJ("click",function(){v.CHM(ht);const Zt=v.oxw();return v.KtG(Zt.onCancel())}),v._uU(2),v.ALo(3,"translate"),v.qZA()()}2&Dt&&(v.xp6(2),v.hij(" ",v.lcZ(3,1,"DIALOGS.CREATE_SPONSORED_MEMBER.OK")," "))}function s(Dt,nn){if(1&Dt){const ht=v.EpF();v.TgZ(0,"button",44),v.NdJ("click",function(){v.CHM(ht);const Zt=v.oxw(2);return v.KtG(Zt.stepperPrevious())}),v._uU(1),v.ALo(2,"translate"),v.qZA()}2&Dt&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.BACK")," "))}function _(Dt,nn){if(1&Dt){const ht=v.EpF();v.TgZ(0,"button",45),v.NdJ("click",function(){v.CHM(ht);const Zt=v.oxw(2);return v.KtG(Zt.stepperNext())}),v._uU(1),v.ALo(2,"translate"),v.qZA()}if(2&Dt){const ht=v.oxw(2);v.ekj("ml-2",void 0!==ht.stepper&&0!==ht.stepper.selectedIndex)("ml-auto",!(void 0!==ht.stepper&&0!==ht.stepper.selectedIndex)),v.Q6J("disabled",ht.getStepperNextConditions()),v.xp6(1),v.hij(" ",v.lcZ(2,6,"DIALOGS.CREATE_SPONSORED_MEMBER.NEXT")," ")}}function c(Dt,nn){if(1&Dt){const ht=v.EpF();v.TgZ(0,"button",46),v.NdJ("click",function(){v.CHM(ht);const Zt=v.oxw(2);return v.KtG(Zt.onConfirm())}),v._uU(1),v.ALo(2,"translate"),v.qZA()}if(2&Dt){const ht=v.oxw(2);v.Q6J("disabled",!ht.submitAllowed),v.xp6(1),v.hij(" ",v.lcZ(2,2,"DIALOGS.CREATE_SPONSORED_MEMBER.SUBMIT")," ")}}function a(Dt,nn){if(1&Dt){const ht=v.EpF();v.TgZ(0,"div",38)(1,"button",40),v.NdJ("click",function(){v.CHM(ht);const Zt=v.oxw();return v.KtG(Zt.onCancel())}),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.YNc(4,s,3,3,"button",41),v.YNc(5,_,3,8,"button",42),v.YNc(6,c,3,4,"button",43),v.qZA()}if(2&Dt){const ht=v.oxw();v.xp6(2),v.hij(" ",v.lcZ(3,4,"DIALOGS.CREATE_SPONSORED_MEMBER.CANCEL")," "),v.xp6(2),v.Q6J("ngIf",void 0!==ht.stepper&&0!==ht.stepper.selectedIndex),v.xp6(1),v.Q6J("ngIf",void 0!==ht.stepper&&ht.stepper.selectedIndex!==ht.stepper._steps.length-1),v.xp6(1),v.Q6J("ngIf",void 0!==ht.stepper&&ht.stepper.selectedIndex===ht.stepper._steps.length-1)}}let i=(()=>{class Dt{constructor(ht,Vt,Zt,on,Dn,Fn,Yn,Ti,Pi,pr,Zi,fr){this.dialogRef=ht,this.data=Vt,this.membersService=Zt,this.apiRequestConfiguration=on,this.usersService=Dn,this.store=Fn,this.translator=Yn,this.authzService=Ti,this.guiAuthResolver=Pi,this.formBuilder=pr,this.cd=Zi,this.groupsService=fr,this.loading=!1,this.functionalityNotSupported=!1,this.loginThatWasSet="",this.successfullyCreated=!1,this.namespaceOptions=[],this.selectedNamespace=null,this.userControl=null,this.namespaceControl=null,this.selectedSponsor=null,this.sponsorType="self",this.finishedWithErrors=!1,this.submitAllowed=!1,this.groupsToAssign=new R.x,this.namespaceRules=[],this.parsedRules=new Map,this.expiration="never"}static parseAttributes(ht,Vt,Zt){for(const on of Vt)switch(on){case"login":ht.login=Zt;break;case"password":ht.password=Zt}}onConfirm(){this.groupsToAssign.next()}createMember(ht){this.loading=!0;const Vt={vo:this.data.voId,userData:{firstName:this.userControl.get("firstName").value,lastName:this.userControl.get("lastName").value,titleAfter:this.userControl.get("titleAfter").value,titleBefore:this.userControl.get("titleBefore").value,email:this.namespaceControl.get("email").value},sponsor:"other"===this.sponsorType?this.selectedSponsor.id:this.store.getPerunPrincipal().userId},Zt=this.namespaceControl.get("namespace").value,on=this.parsedRules.get(Zt);"No namespace"!==Zt&&(Vt.userData.namespace=Zt),"disabled"!==on.login&&(Vt.userData.login=this.namespaceControl.get("login").value),"disabled"!==on.password&&(Vt.sendActivationLink=this.namespaceControl.get("passwordReset").value,Vt.userData.password=this.namespaceControl.get("passwordCtrl").value),"never"!==this.expiration&&(Vt.validityTo=this.expiration),this.membersService.createSponsoredMember(Vt).subscribe(Dn=>{this.successfullyCreated=!0,this.dialogRef.updateSize("600px"),this.createdMember=Dn,!!Dn&&!!Dn.userAttributes&&Dn.userAttributes.filter(Fn=>"login-namespace"===Fn.baseFriendlyName).filter(Fn=>Fn.friendlyNameParameter===Zt).filter(Fn=>null!==Fn.value).forEach(Fn=>{this.loginThatWasSet=Fn.value}),ht.length>0&&this.groupsService.addMember(ht,Dn.id).subscribe({next:()=>this.loading=!1,error:()=>{this.finishedWithErrors=!0,this.loading=!1}}),this.loading=!1},()=>{this.loading=!1})}onCancel(){this.successfullyCreated?this.dialogRef.close(!0):this.dialogRef.close()}onNamespaceChanged(ht){this.selectedNamespace=ht;const Vt=this.parsedRules.get(ht),Zt=this.namespaceControl.get("login"),on=this.namespaceControl.get("passwordCtrl"),Dn=this.namespaceControl.get("passwordAgainCtrl"),Fn=this.namespaceControl.get("passwordReset");"disabled"!==Vt.login?(0,w.mH)(Zt,"optional"===Vt.login?[]:[T.kI.required]):(Zt.disable(),Zt.setValue("")),"disabled"!==Vt.password?((0,w.mH)(on,"optional"===Vt.password?[]:[T.kI.required],[(0,S.yT)(ht,this.usersService,this.apiRequestConfiguration)]),(0,w.mH)(Dn,[]),(0,w.mH)(Fn,[]),this.namespaceControl.get("passwordReset").setValue(!1)):(on.disable(),on.setValue(""),Dn.disable(),Dn.setValue(""),Fn.disable(),Fn.setValue(!1))}passwordResetChange(){const ht=this.namespaceControl.get("passwordCtrl"),Vt=this.namespaceControl.get("passwordAgainCtrl");this.namespaceControl.get("passwordReset").value?(ht.disable(),ht.setValue(""),Vt.disable(),Vt.setValue("")):(ht.enable(),Vt.enable())}setExpiration(ht){this.expiration="never"===ht?"never":(0,E.p6)(ht,"yyyy-MM-dd","en-GB")}getStepperNextConditions(){switch(this.stepper.selectedIndex){case 0:return this.userControl.invalid;case 1:return this.namespaceControl.invalid||this.namespaceControl.get("passwordCtrl").pending;case 2:return null===this.sponsorType||"other"===this.sponsorType&&null===this.selectedSponsor;default:return!1}}stepperPrevious(){this.stepper.previous()}stepperNext(){this.stepper.next()}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.userControl=this.formBuilder.group({firstName:["",T.kI.required],lastName:["",T.kI.required],titleBefore:[""],titleAfter:[""]}),this.namespaceControl=this.formBuilder.group({namespace:["",T.kI.required],login:["",[T.kI.required]],passwordCtrl:["",T.kI.required,[(0,S.yT)(null,this.usersService,this.apiRequestConfiguration)]],passwordAgainCtrl:[""],passwordReset:[!1,[]],email:["",[T.kI.required,T.kI.pattern(w.B2)]]},{validators:w.dN.passwordMatchValidator}),this.membersService.getAllNamespacesRules().subscribe(ht=>{this.store.getProperty("allow_empty_sponsor_namespace")&&this.namespaceRules.push({namespaceName:"No namespace",requiredAttributes:[],optionalAttributes:[]}),this.namespaceRules=this.namespaceRules.concat(ht),this.parseNamespaceRules(),0===this.namespaceOptions.length&&(this.functionalityNotSupported=!0),this.loading=!1,this.cd.detectChanges()})}parseNamespaceRules(){for(const ht of this.namespaceRules){this.namespaceOptions.push(ht.namespaceName);const Vt={login:"disabled",password:"disabled"};Dt.parseAttributes(Vt,ht.requiredAttributes,"required"),Dt.parseAttributes(Vt,ht.optionalAttributes,"optional"),this.parsedRules.set(ht.namespaceName,Vt)}}}return Dt.\u0275fac=function(ht){return new(ht||Dt)(v.Y36(p.so),v.Y36(p.WI),v.Y36(e.uq),v.Y36(g.F5),v.Y36(e.Fv),v.Y36(g.d6),v.Y36(D.sK),v.Y36(e.Ct),v.Y36(g.x4),v.Y36(T.QS),v.Y36(v.sBO),v.Y36(e.ff))},Dt.\u0275cmp=v.Xpm({type:Dt,selectors:[["app-create-sponsored-member-dialog"]],viewQuery:function(ht,Vt){if(1&ht&&v.Gf(be,5),2&ht){let Zt;v.iGM(Zt=v.CRH())&&(Vt.stepper=Zt.first)}},decls:7,vars:9,consts:[["mat-dialog-title","",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],["mat-dialog-title",""],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"linear"],["stepper",""],[3,"stepControl"],["matStepLabel",""],["alert_type","error",4,"ngIf"],[1,"dialog-container",3,"formGroup"],[1,"mt-2"],[1,"mt-4"],["data-cy","first-name-input","matInput","","formControlName","firstName","required","",3,"placeholder"],[4,"ngIf"],["data-cy","last-name-input","matInput","","formControlName","lastName","required","",3,"placeholder"],["matInput","","formControlName","titleBefore",3,"placeholder"],["matInput","","formControlName","titleAfter",3,"placeholder"],[1,"dialog-container","mt-4",3,"formGroup"],["data-cy","namespace-filter"],["formControlName","namespace","required","",3,"placeholder","valueChange"],[3,"value",4,"ngFor","ngForOf"],["matTooltipPosition","left",3,"matTooltip","matTooltipDisabled"],["data-cy","login-input","matInput","","formControlName","login","required","",3,"placeholder"],["data-cy","email-input","matInput","","formControlName","email","required","",3,"placeholder"],["labelPosition","before","formControlName","passwordReset",3,"change"],[3,"formGroup","namespace","tooltipPwdViaEmail"],[1,"dialog-container"],[3,"voId","voSponsors","sponsorTypeSelected","sponsorSelected"],[1,"mt-2",3,"datePicker"],[3,"voId","submit","groupsToAdd","submitAllowed"],["alert_type","error"],[3,"value"],[1,"bigger-font","mb-2"],[1,"mr-2","mb-2"],["alert_type","warn"],["mat-dialog-actions",""],["mat-flat-button","","data-cy","ok-button",1,"ml-auto",3,"click"],["mat-flat-button","",3,"click"],["class","ml-auto","mat-flat-button","",3,"click",4,"ngIf"],["data-cy","next-button","color","accent","mat-flat-button","","type","button",3,"ml-2","ml-auto","disabled","click",4,"ngIf"],["data-cy","confirm-button","class","ml-2","color","accent","mat-flat-button","","type","button",3,"disabled","click",4,"ngIf"],["mat-flat-button","",1,"ml-auto",3,"click"],["data-cy","next-button","color","accent","mat-flat-button","","type","button",3,"disabled","click"],["data-cy","confirm-button","color","accent","mat-flat-button","","type","button",1,"ml-2",3,"disabled","click"]],template:function(ht,Vt){1&ht&&(v.TgZ(0,"div"),v.YNc(1,De,3,3,"h1",0),v.YNc(2,We,1,0,"mat-spinner",1),v.YNc(3,it,64,63,"div",2),v.YNc(4,X,21,21,"div",2),v.YNc(5,r,4,3,"div",3),v.YNc(6,a,7,6,"div",3),v.qZA()),2&ht&&(v.Tol(Vt.theme),v.xp6(1),v.Q6J("ngIf",!Vt.successfullyCreated),v.xp6(1),v.Q6J("ngIf",Vt.loading),v.xp6(1),v.Q6J("ngIf",!Vt.loading&&!Vt.successfullyCreated),v.xp6(1),v.Q6J("ngIf",!Vt.loading&&Vt.successfullyCreated),v.xp6(1),v.Q6J("ngIf",Vt.successfullyCreated),v.xp6(1),v.Q6J("ngIf",!Vt.loading&&!Vt.successfullyCreated))},dependencies:[E.sg,E.O5,F.ey,z.TO,z.KE,$.Nt,T._Y,T.Fj,T.JJ,T.JL,T.Q7,T.sg,T.u,G.Hw,q.lW,_e.oG,p.uh,p.xY,p.H8,ce.gD,Te.Ou,b.gM,H.C0,H.VY,H.Vq,L.w,V.c,Q.G,N,Me.l,D.X$,Y.d],styles:[".bigger-font[_ngcontent-%COMP%]{font-size:1.5rem}.input-spinner[_ngcontent-%COMP%]{float:right;margin-left:8px}mat-icon[_ngcontent-%COMP%]{color:#28a745;font-size:36px;vertical-align:bottom}"]}),Dt})();var t=u(28255);const n=["stepper"];function o(Dt,nn){1&Dt&&v._UZ(0,"mat-spinner",4)}function l(Dt,nn){1&Dt&&(v._uU(0),v.ALo(1,"translate")),2&Dt&&v.Oqu(v.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.USERS_LABEL"))}function d(Dt,nn){1&Dt&&(v.TgZ(0,"perun-web-apps-alert",25),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&Dt&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.FUNCTIONALITY_NOT_SUPPORTED")," "))}function y(Dt,nn){if(1&Dt&&(v.TgZ(0,"mat-option",26),v._uU(1),v.qZA()),2&Dt){const ht=nn.$implicit;v.Q6J("value",ht),v.uIk("data-cy",ht),v.xp6(1),v.hij(" ",ht," ")}}function k(Dt,nn){1&Dt&&(v.TgZ(0,"mat-error"),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&Dt&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NAMESPACE_ERROR")," "))}function Ie(Dt,nn){1&Dt&&(v.TgZ(0,"mat-error"),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&Dt&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NAMES_ERROR")," "))}function tt(Dt,nn){if(1&Dt&&(v.TgZ(0,"mat-error"),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&Dt){const ht=v.oxw(3);v.xp6(1),v.AsE(" ",v.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ERROR_FORMAT"),": ",ht.usersInfoFormGroup.get("sponsoredMembers").getError("invalidFormat").value," ")}}function ct(Dt,nn){if(1&Dt&&(v.TgZ(0,"mat-error"),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&Dt){const ht=v.oxw(3);v.xp6(1),v.AsE(" ",v.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ERROR_EMAIL"),": ",ht.usersInfoFormGroup.get("sponsoredMembers").getError("invalidEmail").value," ")}}function Ue(Dt,nn){if(1&Dt&&(v.TgZ(0,"mat-error"),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&Dt){const ht=v.oxw(3);v.xp6(1),v.AsE(" ",v.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ERROR_LOGIN"),": ",ht.usersInfoFormGroup.get("sponsoredMembers").getError("invalidLogin").value," ")}}function at(Dt,nn){1&Dt&&(v._uU(0),v.ALo(1,"translate")),2&Dt&&v.Oqu(v.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.PASSWORD_LABEL"))}function fe(Dt,nn){1&Dt&&(v.TgZ(0,"perun-web-apps-alert",27),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&Dt&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NO_NAMESPACE_PASSWORD_INFO")," "))}function Oe(Dt,nn){if(1&Dt){const ht=v.EpF();v.TgZ(0,"mat-radio-group",28),v.NdJ("ngModelChange",function(Zt){v.CHM(ht);const on=v.oxw(3);return v.KtG(on.passwordReset=Zt)}),v.TgZ(1,"mat-radio-button",29),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.TgZ(4,"mat-radio-button",30),v._uU(5),v.ALo(6,"translate"),v.qZA()()}if(2&Dt){const ht=v.oxw(3);v.Q6J("ngModel",ht.passwordReset),v.xp6(2),v.hij(" ",v.lcZ(3,3,"DIALOGS.GENERATE_SPONSORED_MEMBERS.GENERATE_PASSWORD")," "),v.xp6(3),v.hij(" ",v.lcZ(6,5,"DIALOGS.GENERATE_SPONSORED_MEMBERS.PASSWORD_RESET")," ")}}function Ke(Dt,nn){1&Dt&&(v._uU(0),v.ALo(1,"translate")),2&Dt&&v.Oqu(v.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.EXPIRATION_LABEL"))}function je(Dt,nn){1&Dt&&(v._uU(0),v.ALo(1,"translate")),2&Dt&&v.Oqu(v.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.GROUPS_LABEL"))}function Le(Dt,nn){if(1&Dt){const ht=v.EpF();v.TgZ(0,"mat-stepper",8,9)(2,"mat-step",10),v.YNc(3,l,2,3,"ng-template",11),v.YNc(4,d,3,3,"perun-web-apps-alert",12),v.TgZ(5,"h5",13),v._uU(6),v.ALo(7,"translate"),v.qZA(),v.TgZ(8,"form",14)(9,"mat-form-field")(10,"mat-select",15),v.ALo(11,"translate"),v.YNc(12,y,2,3,"mat-option",16),v.qZA(),v.YNc(13,k,3,3,"mat-error",7),v.qZA(),v.TgZ(14,"div"),v._uU(15),v.ALo(16,"translate"),v.qZA(),v.TgZ(17,"div",17),v._uU(18),v.qZA(),v.TgZ(19,"mat-form-field",18)(20,"mat-label"),v._uU(21),v.ALo(22,"translate"),v.qZA(),v.TgZ(23,"textarea",19),v._uU(24," "),v.qZA(),v.YNc(25,Ie,3,3,"mat-error",7),v.YNc(26,tt,3,4,"mat-error",7),v.YNc(27,ct,3,4,"mat-error",7),v.YNc(28,Ue,3,4,"mat-error",7),v.qZA()()(),v.TgZ(29,"mat-step"),v.YNc(30,at,2,3,"ng-template",11),v.TgZ(31,"div",13)(32,"h5",20),v._uU(33),v.ALo(34,"translate"),v.qZA(),v.YNc(35,fe,3,3,"perun-web-apps-alert",21),v.YNc(36,Oe,7,7,"mat-radio-group",22),v.qZA()(),v.TgZ(37,"mat-step"),v.YNc(38,Ke,2,3,"ng-template",11),v.TgZ(39,"div",13)(40,"h5",20),v._uU(41),v.ALo(42,"translate"),v.qZA(),v.TgZ(43,"perun-web-apps-expiration-select",23),v.NdJ("datePicker",function(Zt){v.CHM(ht);const on=v.oxw(2);return v.KtG(on.setExpiration(Zt))}),v.qZA()()(),v.TgZ(44,"mat-step"),v.YNc(45,je,2,3,"ng-template",11),v.TgZ(46,"app-assign-groups-sponsored-members-component",24),v.NdJ("groupsToAdd",function(Zt){v.CHM(ht);const on=v.oxw(2);return v.KtG(on.onGenerate(Zt))})("submitAllowed",function(Zt){v.CHM(ht);const on=v.oxw(2);return v.KtG(on.submitAllowed=Zt)}),v.qZA()()()}if(2&Dt){const ht=v.oxw(2);v.Q6J("linear",!0),v.xp6(2),v.Q6J("stepControl",ht.usersInfoFormGroup),v.xp6(2),v.Q6J("ngIf",ht.functionalityNotSupported),v.xp6(2),v.Oqu(v.lcZ(7,23,"DIALOGS.GENERATE_SPONSORED_MEMBERS.USERS_INFO")),v.xp6(2),v.Q6J("formGroup",ht.usersInfoFormGroup),v.xp6(2),v.s9C("placeholder",v.lcZ(11,25,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NAMESPACE")),v.xp6(2),v.Q6J("ngForOf",ht.namespaceOptions),v.xp6(1),v.Q6J("ngIf",ht.usersInfoFormGroup.hasError("required","namespace")),v.xp6(2),v.Oqu(v.lcZ(16,27,"DIALOGS.GENERATE_SPONSORED_MEMBERS.HINT")),v.xp6(3),v.hij(" ",ht.getSelectedNamespaceRules().csvGenHeaderDescription," "),v.xp6(3),v.Oqu(v.lcZ(22,29,"DIALOGS.GENERATE_SPONSORED_MEMBERS.INSERT_HERE")),v.xp6(2),v.s9C("placeholder",ht.getSelectedNamespaceRules().csvGenPlaceholder),v.xp6(2),v.Q6J("ngIf",ht.usersInfoFormGroup.hasError("required","sponsoredMembers")),v.xp6(1),v.Q6J("ngIf",ht.usersInfoFormGroup.hasError("invalidFormat","sponsoredMembers")),v.xp6(1),v.Q6J("ngIf",ht.usersInfoFormGroup.hasError("invalidEmail","sponsoredMembers")),v.xp6(1),v.Q6J("ngIf",ht.usersInfoFormGroup.hasError("invalidLogin","sponsoredMembers")),v.xp6(5),v.hij(" ",v.lcZ(34,31,"DIALOGS.GENERATE_SPONSORED_MEMBERS.PASSWORD_MANAGEMENT")," "),v.xp6(2),v.Q6J("ngIf","No namespace"===ht.getSelectedNamespaceRules().namespaceName),v.xp6(1),v.Q6J("ngIf","No namespace"!==ht.getSelectedNamespaceRules().namespaceName),v.xp6(5),v.Oqu(v.lcZ(42,33,"DIALOGS.GENERATE_SPONSORED_MEMBERS.EXPIRATION")),v.xp6(2),v.Q6J("expiration",ht.expiration),v.xp6(3),v.Q6J("voId",ht.data.voId)("submit",ht.groupsToAssign.asObservable())}}function ie(Dt,nn){1&Dt&&(v.TgZ(0,"perun-web-apps-alert",32),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&Dt&&(v.Q6J("alert_type","success"),v.xp6(1),v.hij(" ",v.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.SUCCESS")," "))}function Ae(Dt,nn){1&Dt&&(v.TgZ(0,"perun-web-apps-alert",32),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&Dt&&(v.Q6J("alert_type","warn"),v.xp6(1),v.hij(" ",v.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.FINISHED_WITH_ERRORS")," "))}function st(Dt,nn){if(1&Dt&&(v.TgZ(0,"div"),v.YNc(1,ie,3,4,"perun-web-apps-alert",31),v.YNc(2,Ae,3,4,"perun-web-apps-alert",31),v.qZA()),2&Dt){const ht=v.oxw(2);v.xp6(1),v.Q6J("ngIf",!1===ht.finishedWithErrors),v.xp6(1),v.Q6J("ngIf",ht.finishedWithErrors)}}function ze(Dt,nn){if(1&Dt&&(v.TgZ(0,"div",5),v.YNc(1,Le,47,35,"mat-stepper",6),v.YNc(2,st,3,2,"div",7),v.qZA()),2&Dt){const ht=v.oxw();v.xp6(1),v.Q6J("ngIf","user-input"===ht.state),v.xp6(1),v.Q6J("ngIf","results"===ht.state)}}function _t(Dt,nn){if(1&Dt){const ht=v.EpF();v.TgZ(0,"button",38),v.NdJ("click",function(){v.CHM(ht);const Zt=v.oxw(2);return v.KtG(Zt.stepperPrevious())}),v._uU(1),v.ALo(2,"translate"),v.qZA()}2&Dt&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.BACK")," "))}function me(Dt,nn){if(1&Dt){const ht=v.EpF();v.TgZ(0,"button",39),v.NdJ("click",function(){v.CHM(ht);const Zt=v.oxw(2);return v.KtG(Zt.stepperNext())}),v._uU(1),v.ALo(2,"translate"),v.qZA()}if(2&Dt){const ht=v.oxw(2);v.ekj("ml-2",void 0!==ht.stepper&&0!==ht.stepper.selectedIndex)("ml-auto",!(void 0!==ht.stepper&&0!==ht.stepper.selectedIndex)),v.Q6J("disabled",ht.getStepperNextConditions()),v.xp6(1),v.hij(" ",v.lcZ(2,6,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NEXT")," ")}}function qe(Dt,nn){if(1&Dt){const ht=v.EpF();v.TgZ(0,"button",40),v.NdJ("click",function(){v.CHM(ht);const Zt=v.oxw(2);return v.KtG(Zt.onSubmit())}),v._uU(1),v.ALo(2,"translate"),v.qZA()}if(2&Dt){const ht=v.oxw(2);v.Q6J("disabled",!ht.submitAllowed),v.xp6(1),v.hij(" ",v.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.SUBMIT")," ")}}function rt(Dt,nn){if(1&Dt){const ht=v.EpF();v.TgZ(0,"div",33)(1,"button",34),v.NdJ("click",function(){v.CHM(ht);const Zt=v.oxw();return v.KtG(Zt.onCancel())}),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.YNc(4,_t,3,3,"button",35),v.YNc(5,me,3,8,"button",36),v.YNc(6,qe,3,4,"button",37),v.qZA()}if(2&Dt){const ht=v.oxw();v.xp6(2),v.hij(" ",v.lcZ(3,4,"DIALOGS.GENERATE_SPONSORED_MEMBERS.CANCEL")," "),v.xp6(2),v.Q6J("ngIf",void 0!==ht.stepper&&0!==ht.stepper.selectedIndex),v.xp6(1),v.Q6J("ngIf",void 0!==ht.stepper&&ht.stepper.selectedIndex!==ht.stepper._steps.length-1),v.xp6(1),v.Q6J("ngIf",void 0!==ht.stepper&&ht.stepper.selectedIndex===ht.stepper._steps.length-1)}}function Mt(Dt,nn){if(1&Dt){const ht=v.EpF();v.TgZ(0,"div",33)(1,"button",41),v.NdJ("click",function(){v.CHM(ht);const Zt=v.oxw();return v.KtG(Zt.onClose())}),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.TgZ(4,"button",42),v._uU(5),v.ALo(6,"translate"),v.qZA(),v.TgZ(7,"mat-menu",null,43)(9,"button",44),v.NdJ("click",function(){v.CHM(ht);const Zt=v.oxw();return v.KtG(Zt.generatePdf())}),v._uU(10),v.ALo(11,"translate"),v.qZA(),v.TgZ(12,"button",44),v.NdJ("click",function(){v.CHM(ht);const Zt=v.oxw();return v.KtG(Zt.downloadCsv())}),v._uU(13),v.ALo(14,"translate"),v.qZA()()()}if(2&Dt){const ht=v.MAs(8);v.xp6(2),v.hij(" ",v.lcZ(3,5,"DIALOGS.GENERATE_SPONSORED_MEMBERS.CLOSE")," "),v.xp6(2),v.Q6J("matMenuTriggerFor",ht),v.xp6(1),v.hij(" ",v.lcZ(6,7,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DOWNLOAD")," "),v.xp6(5),v.hij(" ",v.lcZ(11,9,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DOWNLOAD_PDF")," "),v.xp6(3),v.hij(" ",v.lcZ(14,11,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DOWNLOAD_CSV")," ")}}let Qt=(()=>{class Dt{constructor(ht,Vt,Zt,on,Dn,Fn,Yn,Ti,Pi,pr,Zi,fr){this.dialogRef=ht,this.data=Vt,this.store=Zt,this.membersService=on,this.notificator=Dn,this.translate=Fn,this.guiAuthResolver=Yn,this.groupsService=Ti,this.attributesService=Pi,this.formBuilder=pr,this.sponsoredMembersPDFService=Zi,this.cd=fr,this.loading=!1,this.functionalityNotSupported=!1,this.namespaceOptions=[],this.state="user-input",this.passwordReset="generate",this.expiration="never",this.finishedWithErrors=!1,this.submitAllowed=!1,this.groupsToAssign=new R.x,this.namespaceRules=[],this.resultData=[]}static didSomeGenerationFailed(ht){return ht.forEach(Vt=>{if("OK"!==Vt.status)return!0}),!1}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.usersInfoFormGroup=this.formBuilder.group({namespace:["",T.kI.required],sponsoredMembers:["",[T.kI.required,this.userInputValidator()]]}),this.usersInfoFormGroup.controls.namespace.valueChanges.subscribe({next:()=>{this.usersInfoFormGroup.controls.sponsoredMembers.updateValueAndValidity()}}),this.membersService.getAllNamespacesRules().subscribe(ht=>{this.store.getProperty("allow_empty_sponsor_namespace")&&this.namespaceRules.push({namespaceName:"No namespace",csvGenHeader:"firstname;lastname;urn:perun:user:attribute-def:def:preferredMail",csvGenPlaceholder:"John;Doe;john@mail.cz",csvGenHeaderDescription:"First name;Last name;Email"}),this.namespaceRules=this.namespaceRules.concat(ht),this.namespaceRules.forEach(Vt=>this.namespaceOptions.push(Vt.namespaceName)),0===this.namespaceOptions.length?this.functionalityNotSupported=!0:this.usersInfoFormGroup.setValue({namespace:this.namespaceOptions[0],sponsoredMembers:""}),this.loading=!1,this.cd.detectChanges()})}onCancel(){this.dialogRef.close(!1)}onClose(){this.dialogRef.close(!0)}setExpiration(ht){this.expiration="never"===ht?"never":(0,E.p6)(ht,"yyyy-MM-dd","en-GB")}onSubmit(){this.groupsToAssign.next()}getSelectedNamespaceRules(){return this.namespaceRules.find(ht=>ht.namespaceName===this.usersInfoFormGroup.get("namespace").value)}generatePdf(){if(!this.resultData)throw new Error("Cannot generate pdf because there is no result");this.loading=!0,this.sponsoredMembersPDFService.generate(this.resultData).then(()=>this.loading=!1)}downloadCsv(){if(!this.resultData)throw new Error("Cannot generate pdf because there is no result");(0,w.O6)(this.createOutputObjects(this.resultData),"csv","member-logins")}getStepperNextConditions(){switch(this.stepper.selectedIndex){case 0:return this.usersInfoFormGroup.invalid;case 1:return null===this.passwordReset;case 2:return null===this.expiration;default:return!1}}stepperPrevious(){this.stepper.previous()}stepperNext(){this.stepper.next()}onGenerate(ht){this.loading=!0;const Vt=this.usersInfoFormGroup.get("sponsoredMembers").value.split("\n"),Zt=this.getSelectedNamespaceRules().csvGenHeader,on=[];for(const Fn of Vt){const Yn=this.parseMemberLine(Fn);if("format"===Yn||"email"===Yn)return void(this.loading=!1);""!==Yn&&on.push(Yn)}const Dn={data:on,header:Zt,namespace:"",sponsor:this.store.getPerunPrincipal().userId,vo:this.data.voId,sendActivationLinks:"reset"===this.passwordReset};ht.length>0&&(Dn.groups=ht),"never"!==this.expiration&&(Dn.validityTo=(0,E.p6)(this.expiration,"yyyy-MM-dd","en-GB")),"No namespace"!==this.usersInfoFormGroup.get("namespace").value&&(Dn.namespace=this.usersInfoFormGroup.get("namespace").value),this.membersService.createSponsoredMembersFromCSV(Dn).subscribe(Fn=>{this.state="results",this.finishedWithErrors=Dt.didSomeGenerationFailed(Fn),this.loading=!1,this.resultData=Fn},()=>this.loading=!1)}createOutputObjects(ht){let Vt="",Zt="",on="",Dn="";const Fn=[];return ht.forEach(Yn=>{Vt=Yn.name.replace(";"," ").split(";")[0],Zt=Yn.status,on=Yn.login?Yn.login:on,Dn=Yn.password?Yn.password:Dn;const Ti={name:Vt,status:Zt,login:on,password:Dn};Yn.note&&(Ti.note=Yn.note),Fn.push(Ti)}),Fn}parseMemberLine(ht){const Vt=ht.trim();if(""===Vt)return"";const Zt=Vt.split(";"),on=this.getSelectedNamespaceRules().csvGenHeader.split(";");if(Zt.length!==on.length)return"format";if("mail"===on[2].slice(on[2].length-4).toLowerCase()&&!Zt[2].trim().match(w.B2))return"email";if("login"===on[3]&&""===Zt[3].trim())return"login";let Dn="";for(const Fn of Zt)Dn+=Fn.trim()+";";return Dn.slice(0,-1)}userInputValidator(){return ht=>{const Vt=ht.value.split("\n");for(const Zt of Vt){const on=this.parseMemberLine(Zt);if("format"===on)return{invalidFormat:{value:Zt}};if("email"===on)return{invalidEmail:{value:Zt}};if("login"===on)return{invalidLogin:{value:Zt}}}return null}}}return Dt.\u0275fac=function(ht){return new(ht||Dt)(v.Y36(p.so),v.Y36(p.WI),v.Y36(g.d6),v.Y36(e.uq),v.Y36(g.V6),v.Y36(D.sK),v.Y36(g.x4),v.Y36(e.ff),v.Y36(e.H8),v.Y36(T.QS),v.Y36(g.HV),v.Y36(v.sBO))},Dt.\u0275cmp=v.Xpm({type:Dt,selectors:[["app-generate-sponsored-members-dialog"]],viewQuery:function(ht,Vt){if(1&ht&&v.Gf(n,5),2&ht){let Zt;v.iGM(Zt=v.CRH())&&(Vt.stepper=Zt.first)}},decls:8,vars:10,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"linear",4,"ngIf"],[4,"ngIf"],[3,"linear"],["stepper",""],[3,"stepControl"],["matStepLabel",""],["alert_type","error",4,"ngIf"],[1,"mt-2"],[1,"flex-container","mt-2",3,"formGroup"],["data-cy","namespace-filter","formControlName","namespace","required","",3,"placeholder"],[3,"value",4,"ngFor","ngForOf"],[1,"font-weight-bold"],[1,"pt-2"],["data-cy","csv-input","cols","50","id","voGenerateSponsoredMembers","name","voGenerateSponsoredMembers","formControlName","sponsoredMembers","matInput","","rows","8",1,"md-textarea","form-control",3,"placeholder"],[1,"mb-4"],["alert_type","info",4,"ngIf"],[3,"ngModel","ngModelChange",4,"ngIf"],[3,"expiration","datePicker"],[3,"voId","submit","groupsToAdd","submitAllowed"],["alert_type","error"],[3,"value"],["alert_type","info"],[3,"ngModel","ngModelChange"],["value","generate"],["value","reset"],[3,"alert_type",4,"ngIf"],[3,"alert_type"],["mat-dialog-actions",""],["mat-flat-button","",3,"click"],["class","ml-auto","mat-flat-button","",3,"click",4,"ngIf"],["data-cy","next-button","color","accent","mat-flat-button","",3,"ml-2","ml-auto","disabled","click",4,"ngIf"],["data-cy","submit-button","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],["mat-flat-button","",1,"ml-auto",3,"click"],["data-cy","next-button","color","accent","mat-flat-button","",3,"disabled","click"],["data-cy","submit-button","color","accent","mat-flat-button","",3,"disabled","click"],["mat-flat-button","","data-cy","close-button",3,"click"],["color","accent","mat-flat-button","",1,"ml-auto","dropdown-toggle",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click"]],template:function(ht,Vt){1&ht&&(v.TgZ(0,"div")(1,"h1",0),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.YNc(4,o,1,0,"mat-spinner",1),v.YNc(5,ze,3,2,"div",2),v.YNc(6,rt,7,6,"div",3),v.YNc(7,Mt,15,13,"div",3),v.qZA()),2&ht&&(v.Tol(Vt.theme),v.xp6(2),v.Oqu(v.lcZ(3,8,"DIALOGS.GENERATE_SPONSORED_MEMBERS.TITLE")),v.xp6(2),v.Q6J("ngIf",Vt.loading),v.xp6(1),v.Q6J("ngIf",!Vt.loading),v.xp6(1),v.Q6J("ngIf",!Vt.loading&&void 0!==Vt.stepper&&"results"!==Vt.state),v.xp6(1),v.Q6J("ngIf","results"===Vt.state))},dependencies:[E.sg,E.O5,F.ey,z.TO,z.KE,z.hX,$.Nt,T._Y,T.Fj,T.JJ,T.JL,T.Q7,T.sg,T.u,T.On,q.lW,p.uh,p.xY,p.H8,ce.gD,Te.Ou,xe.VQ,xe.U0,H.C0,H.VY,H.Vq,t.VK,t.OP,t.p6,L.w,V.c,N,D.X$],styles:[".flex-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),Dt})();var Gt=u(91828),an=u(96308),hn=u(30671),Nt=u(19352),Ht=u(58964),yt=u(94364),Ft=u(94391),Kt=u(18750),Cn=u(20919),Mn=u(5865),pn=u(9185),Hn=u(8231),Ct=u(14849);function Ot(Dt,nn){if(1&Dt){const ht=v.EpF();v.TgZ(0,"th",20)(1,"mat-checkbox",21),v.NdJ("change",function(Zt){v.CHM(ht);const on=v.oxw(2);return v.KtG(Zt?on.masterToggle():null)}),v.ALo(2,"translate"),v.ALo(3,"masterCheckboxLabel"),v.qZA()()}if(2&Dt){const ht=v.oxw().ngIf,Vt=v.oxw();v.xp6(1),v.Q6J("aria-label",v.lcZ(2,3,v.lcZ(3,5,ht.all)))("checked",Vt.selection.hasValue()&&ht.all)("indeterminate",Vt.selection.hasValue()&&!ht.all)}}const pt=function(Dt){return{name:Dt}};function lt(Dt,nn){if(1&Dt){const ht=v.EpF();v.TgZ(0,"td",22)(1,"mat-checkbox",23),v.NdJ("change",function(Zt){const Dn=v.CHM(ht).$implicit,Fn=v.oxw(2);return v.KtG(Zt?Fn.selection.toggle(Dn):null)})("click",function(Zt){return Zt.stopPropagation()}),v.ALo(2,"translate"),v.ALo(3,"checkboxLabel"),v.ALo(4,"userFullName"),v.qZA()()}if(2&Dt){const ht=nn.$implicit,Vt=v.oxw(2);v.xp6(1),v.Q6J("aria-label",v.xi3(2,2,v.lcZ(3,5,Vt.selection.isSelected(ht)),v.VKq(9,pt,v.lcZ(4,7,ht.member.user))))("checked",Vt.selection.isSelected(ht))}}function wt(Dt,nn){1&Dt&&(v.ynx(0,17),v.YNc(1,Ot,4,7,"th",18),v.YNc(2,lt,5,11,"td",19),v.BQk())}function W(Dt,nn){1&Dt&&(v.TgZ(0,"th",24),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&Dt&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.ID")," "))}function Ze(Dt,nn){if(1&Dt&&(v.TgZ(0,"td",25),v._uU(1),v.qZA()),2&Dt){const ht=nn.$implicit;v.xp6(1),v.hij(" ",ht.member.id," ")}}function vt(Dt,nn){1&Dt&&(v.TgZ(0,"th",24),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&Dt&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.NAME")," "))}function Pt(Dt,nn){if(1&Dt&&(v.TgZ(0,"td",26),v._uU(1),v.ALo(2,"userFullName"),v.qZA()),2&Dt){const ht=nn.$implicit;v.xp6(1),v.hij(" ",v.lcZ(2,1,ht.member.user)," ")}}function en(Dt,nn){1&Dt&&(v.TgZ(0,"th",27),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&Dt&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.EMAIL")," "))}function Tn(Dt,nn){if(1&Dt&&(v.TgZ(0,"td",26),v._uU(1),v.ALo(2,"memberEmail"),v.qZA()),2&Dt){const ht=nn.$implicit;v.xp6(1),v.Oqu(v.lcZ(2,1,ht.member))}}function Gn(Dt,nn){1&Dt&&(v.TgZ(0,"th",27),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&Dt&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.LOGIN")," "))}function Ln(Dt,nn){if(1&Dt&&(v.TgZ(0,"td",26),v._uU(1),v.ALo(2,"memberLogins"),v.qZA()),2&Dt){const ht=nn.$implicit;v.xp6(1),v.hij(" ",v.lcZ(2,1,ht.member)," ")}}function qn(Dt,nn){1&Dt&&(v.TgZ(0,"th",24),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&Dt&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.SPONSORS")," "))}function fi(Dt,nn){if(1&Dt&&(v.TgZ(0,"span"),v._uU(1),v.ALo(2,"userFullName"),v._UZ(3,"br"),v.qZA()),2&Dt){const ht=nn.$implicit;v.xp6(1),v.hij(" ",v.lcZ(2,1,ht.user),"")}}function ci(Dt,nn){if(1&Dt&&(v.TgZ(0,"td",26),v.YNc(1,fi,4,3,"span",28),v.qZA()),2&Dt){const ht=nn.$implicit;v.xp6(1),v.Q6J("ngForOf",ht.sponsors)}}function Qn(Dt,nn){1&Dt&&v._UZ(0,"th",24)}function Bn(Dt,nn){if(1&Dt){const ht=v.EpF();v.TgZ(0,"span",31),v.ALo(1,"translate"),v.TgZ(2,"button",32),v.NdJ("mouseenter",function(){v.CHM(ht);const Zt=v.oxw(2);return v.KtG(Zt.disableRouting=!0)})("mouseleave",function(){v.CHM(ht);const Zt=v.oxw(2);return v.KtG(Zt.disableRouting=Zt.routingStrategy)})("click",function(){v.CHM(ht);const Zt=v.oxw().$implicit,on=v.oxw();return v.KtG(on.resetPassword(Zt))}),v.TgZ(3,"mat-icon"),v._uU(4,"vpn_key"),v.qZA()()()}if(2&Dt){const ht=v.oxw().$implicit,Vt=v.oxw();v.Q6J("matTooltipPosition","above")("matTooltip",v.lcZ(1,4,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.PASSWORD_RESET")),v.xp6(2),v.Q2q("data-cy","",ht.member.user.firstName,"-reset-passwd-button"),v.Q6J("disabled",Vt.loading)}}function nr(Dt,nn){if(1&Dt){const ht=v.EpF();v.TgZ(0,"td",26)(1,"button",29),v.NdJ("click",function(){const on=v.CHM(ht).$implicit,Dn=v.oxw();return v.KtG(Dn.showSponsors(on))})("mouseenter",function(){v.CHM(ht);const Zt=v.oxw();return v.KtG(Zt.disableRouting=!0)})("mouseleave",function(){v.CHM(ht);const Zt=v.oxw();return v.KtG(Zt.disableRouting=Zt.routingStrategy)}),v.TgZ(2,"mat-icon"),v._uU(3,"edit"),v.qZA()(),v.YNc(4,Bn,5,6,"span",30),v.qZA()}if(2&Dt){const ht=nn.$implicit,Vt=v.oxw();v.xp6(1),v.Q2q("data-cy","",ht.member.user.firstName,"-edit-sponsors-button"),v.xp6(3),v.Q6J("ngIf",Vt.passwdResetAuth(ht))}}function Wn(Dt,nn){1&Dt&&v._UZ(0,"tr",33)}const ri=function(Dt,nn){return["/organizations",Dt,"members",nn]};function Qi(Dt,nn){if(1&Dt&&v._UZ(0,"tr",34),2&Dt){const ht=nn.$implicit,Vt=v.oxw();v.ekj("cursor-pointer",!Vt.disableRouting)("disable-outline",Vt.disableRouting),v.Q2q("data-cy","",ht.member.user.firstName,"-name"),v.Q6J("perunWebAppsMiddleClickRouterLink",Vt.disableRouting?null:v.WLB(7,ri,ht.member.voId,ht.member.id))("routerLink",Vt.disableRouting?null:v.WLB(10,ri,ht.member.voId,ht.member.id))}}function ji(Dt,nn){1&Dt&&(v.TgZ(0,"perun-web-apps-alert",35),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&Dt&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function vi(Dt,nn){1&Dt&&(v.TgZ(0,"perun-web-apps-alert",35),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&Dt&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.NO_SPONSORED_MEMBERS_WARNING"),"\n"))}const wi=function(Dt){return{all:Dt}};let cr=(()=>{class Dt{constructor(ht,Vt,Zt,on,Dn){this.dialog=ht,this.authResolver=Vt,this.storeService=Zt,this.attributesManager=on,this.tableCheckbox=Dn,this.sponsoredMembers=[],this.filterValue="",this.displayedColumns=["id","name","email","logins","sponsors","menu"],this.disableRouting=!1,this.refreshTable=new v.vpe,this.loading=!1,this.routingStrategy=!1,this.pageSizeOptions=w.f7}set matSort(ht){this.sort=ht}static getSortDataForColumn(ht,Vt){switch(Vt){case"id":return ht.member.id.toString();case"name":return ht.member.user?ht.member.user.lastName?ht.member.user.lastName:ht.member.user.firstName??"":"";case"sponsors":return ht.sponsors.length.toString();default:return""}}static getDataForColumn(ht,Vt){switch(Vt){case"id":return ht.member.id.toString();case"name":return ht.member.user?(0,w.bD)(ht.member.user):"";case"sponsors":return ht.sponsors.map(Zt=>(0,w.bD)(Zt.user)).join();default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(ht=>"id"!==ht)),this.setDataSource(),this.routingStrategy=this.disableRouting}exportAllData(ht){(0,w.O6)((0,w.Xn)(this.dataSource.filteredData,this.displayedColumns,Dt.getDataForColumn),ht)}exportDisplayedData(ht){const Vt=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,Zt=Vt+this.dataSource.paginator.pageSize;(0,w.O6)((0,w.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(Vt,Zt),this.displayedColumns,Dt.getDataForColumn),ht)}setDataSource(){this.dataSource||(this.dataSource=new hn.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(ht,Vt)=>(0,w.Sd)(ht,Vt,this.displayedColumns,Dt.getDataForColumn),this.dataSource.sortData=(ht,Vt)=>(0,w.pR)(ht,Vt,Dt.getSortDataForColumn)),this.dataSource.filter=this.filterValue,this.dataSource.data=this.sponsoredMembers}showSponsors(ht){const Vt=(0,w.kZ)();Vt.width="650px",Vt.data={sponsors:ht.sponsors,member:ht.member,theme:"vo-theme"},this.dialog.open(Nt.H,Vt).afterClosed().subscribe(on=>{on&&this.refreshTable.emit()})}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}resetPassword(ht){this.loading=!0;const Vt=this.storeService.getProperty("password_namespace_attributes").map(Zt=>{const on=Zt.split(":");return on[on.length-1]});this.attributesManager.getLogins(ht.member.userId).subscribe(Zt=>{const on=Zt.filter(Yn=>Vt.includes(Yn.friendlyNameParameter)),Dn=(0,w.kZ)();Dn.width="400px",Dn.data={userId:ht.member.userId,memberId:ht.member.id,logins:on},this.dialog.open(Ht.m,Dn).afterClosed().subscribe(()=>{this.loading=!1})},()=>this.loading=!1)}passwdResetAuth(ht){return this.authResolver.isAuthorized("sendPasswordResetLinkEmail_Member_String_String_String_String_policy",[{id:ht.member.voId,beanName:"Vo"},ht.member])}}return Dt.\u0275fac=function(ht){return new(ht||Dt)(v.Y36(p.uw),v.Y36(g.x4),v.Y36(g.d6),v.Y36(e.H8),v.Y36(g.UA))},Dt.\u0275cmp=v.Xpm({type:Dt,selectors:[["app-sponsored-members-list"]],viewQuery:function(ht,Vt){if(1&ht&&(v.Gf(w.l9,7),v.Gf(an.YE,7)),2&ht){let Zt;v.iGM(Zt=v.CRH())&&(Vt.child=Zt.first),v.iGM(Zt=v.CRH())&&(Vt.matSort=Zt.first)}},inputs:{sponsoredMembers:"sponsoredMembers",selection:"selection",filterValue:"filterValue",displayedColumns:"displayedColumns",disableRouting:"disableRouting",tableId:"tableId"},outputs:{refreshTable:"refreshTable"},features:[v.TTD],decls:27,vars:15,consts:[[1,"card","mt-3",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","name","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","email"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","logins"],["matColumnDef","sponsors"],["matColumnDef","menu"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-cell",""],[4,"ngFor","ngForOf"],["aria-label","sponsors of member","mat-icon-button","",1,"dark-hover-list-item",3,"click","mouseenter","mouseleave"],[3,"matTooltipPosition","matTooltip",4,"ngIf"],[3,"matTooltipPosition","matTooltip"],["aria-label","sponsors of member","mat-icon-button","",1,"dark-hover-list-item",3,"disabled","mouseenter","mouseleave","click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(ht,Vt){1&ht&&(v.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),v.NdJ("exportDisplayedData",function(on){return Vt.exportDisplayedData(on)})("exportAllData",function(on){return Vt.exportAllData(on)}),v.TgZ(2,"table",2),v.YNc(3,wt,3,0,"ng-container",3),v.ALo(4,"isAllSelected"),v.ynx(5,4),v.YNc(6,W,3,3,"th",5),v.YNc(7,Ze,2,1,"td",6),v.BQk(),v.ynx(8,7),v.YNc(9,vt,3,3,"th",5),v.YNc(10,Pt,3,3,"td",8),v.BQk(),v.ynx(11,9),v.YNc(12,en,3,3,"th",10),v.YNc(13,Tn,3,3,"td",8),v.BQk(),v.ynx(14,11),v.YNc(15,Gn,3,3,"th",10),v.YNc(16,Ln,3,3,"td",8),v.BQk(),v.ynx(17,12),v.YNc(18,qn,3,3,"th",5),v.YNc(19,ci,2,1,"td",8),v.BQk(),v.ynx(20,13),v.YNc(21,Qn,1,0,"th",5),v.YNc(22,nr,5,2,"td",8),v.BQk(),v.YNc(23,Wn,1,0,"tr",14),v.YNc(24,Qi,1,13,"tr",15),v.qZA()()(),v.YNc(25,ji,3,3,"perun-web-apps-alert",16),v.YNc(26,vi,3,3,"perun-web-apps-alert",16)),2&ht&&(v.Q6J("hidden",0===Vt.dataSource.filteredData.length||0===Vt.sponsoredMembers.length),v.xp6(1),v.Q6J("pageSizeOptions",Vt.pageSizeOptions)("dataLength",Vt.dataSource.filteredData.length)("tableId",Vt.tableId),v.xp6(1),v.Q6J("dataSource",Vt.dataSource),v.xp6(1),v.Q6J("ngIf",v.VKq(13,wi,v.xi3(4,10,Vt.dataSource,Vt.selection.selected.length))),v.xp6(20),v.Q6J("matHeaderRowDef",Vt.displayedColumns),v.xp6(1),v.Q6J("matRowDefColumns",Vt.displayedColumns),v.xp6(1),v.Q6J("ngIf",0===Vt.dataSource.filteredData.length&&0!==Vt.sponsoredMembers.length),v.xp6(1),v.Q6J("ngIf",0===Vt.sponsoredMembers.length))},dependencies:[E.sg,E.O5,yt.rH,G.Hw,q.lW,an.YE,an.nU,hn.BZ,hn.fO,hn.as,hn.w1,hn.Dz,hn.nj,hn.ge,hn.ev,hn.XQ,hn.Gk,_e.oG,b.gM,L.w,Ft.YH,Ft.QG,Kt.l,D.X$,Y.d,Cn.D,Mn.p,pn.I,Hn.G,Ct.r],styles:[".disable-outline[_ngcontent-%COMP%]{outline:none!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),Dt})();var Or=u(96214);function dr(Dt,nn){if(1&Dt&&(v.TgZ(0,"button",11),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&Dt){const ht=v.oxw(),Vt=v.MAs(9);v.Q6J("disabled",ht.findSponsorsAuth&&0===ht.voSponsors.length)("matMenuTriggerFor",Vt),v.xp6(1),v.hij(" ",v.lcZ(2,3,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.CREATE")," ")}}function bi(Dt,nn){if(1&Dt){const ht=v.EpF();v.TgZ(0,"button",12),v.NdJ("click",function(){v.CHM(ht);const Zt=v.oxw();return v.KtG(Zt.onCreate())}),v._uU(1),v.ALo(2,"translate"),v.qZA()}2&Dt&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.CREATE_ONE")," "))}function ur(Dt,nn){if(1&Dt){const ht=v.EpF();v.TgZ(0,"button",13),v.NdJ("click",function(){v.CHM(ht);const Zt=v.oxw();return v.KtG(Zt.onGenerate())}),v._uU(1),v.ALo(2,"translate"),v.qZA()}2&Dt&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.GENERATE")," "))}function hr(Dt,nn){if(1&Dt){const ht=v.EpF();v.TgZ(0,"button",14),v.NdJ("click",function(){v.CHM(ht);const Zt=v.oxw();return v.KtG(Zt.onSponsorExistingMember())}),v._uU(1),v.ALo(2,"translate"),v.qZA()}2&Dt&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.SPONSOR_EXISTING")," "))}function zr(Dt,nn){1&Dt&&v._UZ(0,"mat-spinner",15)}function Ei(Dt,nn){if(1&Dt){const ht=v.EpF();v.TgZ(0,"app-sponsored-members-list",16),v.NdJ("refreshTable",function(){v.CHM(ht);const Zt=v.oxw();return v.KtG(Zt.refresh())}),v.qZA()}if(2&Dt){const ht=v.oxw();v.Q6J("disableRouting",!ht.routeAuth)("selection",ht.selection)("filterValue",ht.searchString)("sponsoredMembers",ht.members)("tableId",ht.tableId)}}let yr=(()=>{class Dt{constructor(ht,Vt,Zt,on,Dn,Fn,Yn){this.membersManager=ht,this.dialog=Vt,this.authResolver=Zt,this.storeService=on,this.authzResolver=Dn,this.entityStorageService=Fn,this.findSponsors=Yn,this.members=[],this.voSponsors=[],this.selection=new m.Ov(!0,[]),this.searchString="",this.loading=!1,this.tableId=A.Bf,this.attrNames=[ae.r.USER_DEF_PREFERRED_MAIL]}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.attrNames=this.attrNames.concat(this.storeService.getLoginAttributeNames()),this.setAuthRights(),this.findSponsorsAuth=this.findSponsors.findSponsorsAuth(this.vo),this.findSponsorsAuth?this.findSponsors.getSponsors(this.vo.id).subscribe(ht=>{this.voSponsors=ht,this.refresh()}):this.refresh()}setAuthRights(){this.createAuth=this.authResolver.isAuthorized("createSponsoredMember_Vo_String_Map_String_User_LocalDate_policy",[this.vo,this.storeService.getPerunPrincipal().user]),this.generateAuth=this.authResolver.isAuthorized("createSponsoredMembers_Vo_String_List_User_policy",[this.vo,this.storeService.getPerunPrincipal().user]),this.setSponsorshipAuth=this.authResolver.isAuthorized("setSponsorshipForMember_Member_User_LocalDate_policy",[this.vo,this.storeService.getPerunPrincipal().user]),null!==this.members&&0!==this.members.length&&(this.routeAuth=this.authResolver.isAuthorized("getMemberById_int_policy",[this.vo,this.members[0].member]))}onCreate(){const ht=(0,w.kZ)();ht.width="750px",ht.data={entityId:this.vo.id,voId:this.vo.id,sponsors:this.voSponsors,theme:"vo-theme"},this.dialog.open(i,ht).afterClosed().subscribe(Zt=>{Zt&&(this.loading=!0,this.authzResolver.getPerunPrincipal().subscribe(on=>{this.storeService.setPerunPrincipal(on),this.refresh()}))})}onGenerate(){const ht=(0,w.kZ)();ht.width="750px",ht.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(Qt,ht).afterClosed().subscribe(Zt=>{Zt&&(this.loading=!0,this.authzResolver.getPerunPrincipal().subscribe(on=>{this.storeService.setPerunPrincipal(on),this.refresh()}))})}onSponsorExistingMember(){const ht=(0,w.kZ)();ht.width="650px",ht.data={voId:this.vo.id,theme:"vo-theme",voSponsors:this.voSponsors,findSponsorsAuth:this.findSponsorsAuth},this.dialog.open(Gt.b,ht).afterClosed().subscribe(Zt=>{Zt&&(this.loading=!0,this.authzResolver.getPerunPrincipal().subscribe(on=>{this.storeService.setPerunPrincipal(on),this.refresh()}))})}refresh(){this.loading=!0,this.membersManager.getSponsoredMembersAndTheirSponsors(this.vo.id,this.attrNames).subscribe(ht=>{this.selection.clear(),this.members=ht,this.setAuthRights(),this.loading=!1})}applyFilter(ht){this.searchString=ht}}return Dt.id="VoSponsoredMembersComponent",Dt.\u0275fac=function(ht){return new(ht||Dt)(v.Y36(e.uq),v.Y36(p.uw),v.Y36(g.x4),v.Y36(g.d6),v.Y36(e.Ct),v.Y36(g.fb),v.Y36(g.Mf))},Dt.\u0275cmp=v.Xpm({type:Dt,selectors:[["app-vo-settings-sponsored-members"]],hostVars:2,hostBindings:function(ht,Vt){2&ht&&v.ekj("router-component",Vt.true)},decls:16,vars:14,consts:[[1,"page-subtitle"],[3,"refresh"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["data-cy","sponsor-dropdown-button","class","mr-2 dropdown-toggle","color","accent","mat-flat-button","",3,"disabled","matMenuTriggerFor",4,"ngIf"],["menu","matMenu"],["data-cy","sponsor-new-button","class","action-button","mat-menu-item","",3,"click",4,"ngIf"],["data-cy","sponsor-csv-button","class","action-button","mat-menu-item","",3,"click",4,"ngIf"],["data-cy","sponsor-existing-button","color","accent","class","mr-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableRouting","selection","filterValue","sponsoredMembers","tableId","refreshTable",4,"ngIf"],["data-cy","sponsor-dropdown-button","color","accent","mat-flat-button","",1,"mr-2","dropdown-toggle",3,"disabled","matMenuTriggerFor"],["data-cy","sponsor-new-button","mat-menu-item","",1,"action-button",3,"click"],["data-cy","sponsor-csv-button","mat-menu-item","",1,"action-button",3,"click"],["data-cy","sponsor-existing-button","color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],[1,"ml-auto","mr-auto"],[3,"disableRouting","selection","filterValue","sponsoredMembers","tableId","refreshTable"]],template:function(ht,Vt){1&ht&&(v.TgZ(0,"div")(1,"h1",0),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.TgZ(4,"perun-web-apps-refresh-button",1),v.NdJ("refresh",function(){return Vt.refresh()}),v.qZA(),v.TgZ(5,"span",2),v.ALo(6,"translate"),v.YNc(7,dr,3,5,"button",3),v.qZA(),v.TgZ(8,"mat-menu",null,4),v.YNc(10,bi,3,3,"button",5),v.YNc(11,ur,3,3,"button",6),v.qZA(),v.YNc(12,hr,3,3,"button",7),v.TgZ(13,"perun-web-apps-immediate-filter",8),v.NdJ("filter",function(on){return Vt.applyFilter(on)}),v.qZA(),v.YNc(14,zr,1,0,"mat-spinner",9),v.YNc(15,Ei,1,5,"app-sponsored-members-list",10),v.qZA()),2&ht&&(v.xp6(2),v.Oqu(v.lcZ(3,10,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.TITLE")),v.xp6(3),v.s9C("matTooltip",v.lcZ(6,12,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.NO_SPONSORS")),v.Q6J("matTooltipDisabled",!(Vt.findSponsorsAuth&&0===Vt.voSponsors.length)),v.xp6(2),v.Q6J("ngIf",Vt.createAuth||Vt.generateAuth),v.xp6(3),v.Q6J("ngIf",Vt.createAuth),v.xp6(1),v.Q6J("ngIf",Vt.generateAuth),v.xp6(1),v.Q6J("ngIf",Vt.setSponsorshipAuth),v.xp6(1),v.Q6J("placeholder","VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.FILTER"),v.xp6(1),v.Q6J("ngIf",Vt.loading),v.xp6(1),v.Q6J("ngIf",!Vt.loading))},dependencies:[E.O5,q.lW,Te.Ou,b.gM,t.VK,t.OP,t.p6,cr,Or.t,Se.L,D.X$]}),Dt})()},25309:(Qe,he,u)=>{"use strict";u.d(he,{Y:()=>$e});var e=u(32105),m=u(9244),A=u(69723),w=u(11717),p=u(95017),g=u(65412),T=u(24006),E=u(94650),S=u(89383),R=u(94364),v=u(36895),D=u(59549),F=u(284),z=u(4859),$=u(51572),G=u(10266);function q(Ce,de){1&Ce&&E._UZ(0,"mat-spinner",3)}function _e(Ce,de){if(1&Ce){const re=E.EpF();E.TgZ(0,"div")(1,"div",4)(2,"mat-form-field"),E._UZ(3,"input",5),E.ALo(4,"translate"),E.TgZ(5,"mat-error"),E._uU(6),E.ALo(7,"translate"),E.qZA()(),E.TgZ(8,"mat-form-field"),E._UZ(9,"input",6),E.ALo(10,"translate"),E.TgZ(11,"mat-error"),E._uU(12),E.ALo(13,"translate"),E.qZA()()(),E.TgZ(14,"div",7)(15,"button",8),E.NdJ("click",function(){E.CHM(re);const N=E.oxw();return E.KtG(N.onCancel())}),E._uU(16),E.ALo(17,"translate"),E.qZA(),E.TgZ(18,"div",9),E.ALo(19,"translate"),E.TgZ(20,"button",10),E.NdJ("click",function(){E.CHM(re);const N=E.oxw();return E.KtG(N.onSubmit())}),E._uU(21),E.ALo(22,"translate"),E.qZA()()()()}if(2&Ce){const re=E.oxw();E.xp6(3),E.s9C("placeholder",E.lcZ(4,11,"DIALOGS.CREATE_VO.FULL_NAME")),E.Q6J("formControl",re.fullNameCtrl),E.xp6(3),E.hij(" ",E.lcZ(7,13,"DIALOGS.CREATE_VO.FILL_FULL_NAME")," "),E.xp6(3),E.s9C("placeholder",E.lcZ(10,15,"DIALOGS.CREATE_VO.SHORT_NAME")),E.Q6J("formControl",re.shortNameCtrl),E.xp6(3),E.hij(" ",E.lcZ(13,17,"DIALOGS.CREATE_VO.FILL_SHORT_NAME")," "),E.xp6(4),E.hij(" ",E.lcZ(17,19,"DIALOGS.CREATE_VO.CANCEL")," "),E.xp6(2),E.s9C("matTooltip",E.lcZ(19,21,"DIALOGS.CREATE_VO.TOOLTIP")),E.Q6J("matTooltipDisabled",re.shortNameCtrl.valid&&re.fullNameCtrl.valid),E.xp6(2),E.Q6J("disabled",re.shortNameCtrl.invalid||re.fullNameCtrl.invalid),E.xp6(1),E.hij(" ",E.lcZ(22,23,"DIALOGS.CREATE_VO.CREATE")," ")}}let ce=(()=>{class Ce{constructor(re,B,N,Me,Y,be){this.dialogRef=re,this.data=B,this.notificator=N,this.voService=Me,this.translate=Y,this.router=be,Y.get("DIALOGS.CREATE_VO.SUCCESS").subscribe(De=>this.successMessage=De)}ngOnInit(){this.theme=this.data.theme,this.shortNameCtrl=new T.p4(null,[T.kI.required,T.kI.pattern("^[\\w.-]+$"),T.kI.maxLength(33)]),this.fullNameCtrl=new T.p4(null,[T.kI.required,T.kI.pattern(".*[\\S]+.*"),T.kI.maxLength(129)])}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.voService.createVoWithName(this.fullNameCtrl.value,this.shortNameCtrl.value).subscribe({next:re=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.router.navigate(["/organizations",re.id],{queryParamsHandling:"preserve"}),this.dialogRef.close(!0)},error:()=>this.loading=!1})}}return Ce.\u0275fac=function(re){return new(re||Ce)(E.Y36(g.so),E.Y36(g.WI),E.Y36(A.V6),E.Y36(e.YF),E.Y36(S.sK),E.Y36(R.F0))},Ce.\u0275cmp=E.Xpm({type:Ce,selectors:[["app-create-vo-dialog"]],decls:6,vars:8,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","data-cy","vo-name-input","required","",3,"formControl","placeholder"],["matInput","","data-cy","vo-shortname-input","required","",3,"formControl","placeholder"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["color","accent","data-cy","create-vo-button","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(re,B){1&re&&(E.TgZ(0,"div")(1,"h1",0),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.YNc(4,q,1,0,"mat-spinner",1),E.YNc(5,_e,23,25,"div",2),E.qZA()),2&re&&(E.Tol(B.theme),E.xp6(2),E.Oqu(E.lcZ(3,6,"DIALOGS.CREATE_VO.TITLE")),E.xp6(2),E.Q6J("ngIf",B.loading),E.xp6(1),E.Q6J("ngIf",!B.loading))},dependencies:[v.O5,D.TO,D.KE,F.Nt,T.Fj,T.JJ,T.Q7,T.oH,z.lW,g.uh,g.xY,g.H8,$.Ou,G.gM,S.X$],styles:[".mat-dialog-content[_ngcontent-%COMP%]{height:auto}@media (min-width: 421px) and (max-width: 755px){.mat-dialog-content[_ngcontent-%COMP%]{height:150px}}@media (max-width: 420px){.mat-dialog-content[_ngcontent-%COMP%]{height:175px}}"]}),Ce})();var Te=u(10036),b=u(77968),H=u(97392),L=u(87831),V=u(96214),Q=u(4235),ae=u(7434);function xe(Ce,de){if(1&Ce){const re=E.EpF();E.TgZ(0,"button",9),E.NdJ("click",function(){E.CHM(re);const N=E.oxw();return E.KtG(N.onCreateVo())}),E._uU(1),E.ALo(2,"translate"),E.qZA()}2&Ce&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"VO_MANAGEMENT.CREATE_VO")," "))}function ge(Ce,de){if(1&Ce){const re=E.EpF();E.TgZ(0,"button",10),E.NdJ("click",function(){E.CHM(re);const N=E.oxw();return E.KtG(N.onRemoveVo())}),E._uU(1),E.ALo(2,"translate"),E.qZA()}if(2&Ce){const re=E.oxw();E.Q6J("disabled",0===re.selection.selected.length),E.xp6(1),E.hij(" ",E.lcZ(2,2,"VO_MANAGEMENT.REMOVE_VO")," ")}}function Se(Ce,de){1&Ce&&E._UZ(0,"mat-spinner",11)}function Be(Ce,de){if(1&Ce&&E._UZ(0,"perun-web-apps-vos-list",12),2&Ce){const re=E.oxw();E.Q6J("tableId",re.tableId)("displayedColumns",re.displayedColumns)("filterValue",re.filterValue)("recentIds",re.recentIds)("selection",re.selection)("vos",re.vos)}}const pe=function(){return{color:"black"}};let $e=(()=>{class Ce{constructor(re,B,N,Me,Y,be){this.sideMenuService=re,this.voService=B,this.guiAuthResolver=N,this.dialog=Me,this.notificator=Y,this.apiRequest=be,this.vos=[],this.recentIds=[],this.filterValue="",this.tableId=Te.tw}ngOnInit(){this.loading=!0,this.selection=new p.Ov(!1,[]),this.createAuth=this.guiAuthResolver.isAuthorized("createVo_Vo_policy",[]),this.deleteAuth=this.guiAuthResolver.isAuthorized("deleteVo_Vo_policy",[]),this.displayedColumns=this.deleteAuth?["checkbox","id","hierarchy","recent","shortName","name"]:["id","recent","hierarchy","shortName","name"],this.refreshTable()}ngAfterViewChecked(){this.sideMenuService.setAccessMenuItems([])}refreshTable(){this.loading=!0,this.selection.clear(),this.apiRequest.dontHandleErrorForNext(),this.voService.getMyEnrichedVos().subscribe({next:re=>{this.vos=re,this.recentIds=(0,m.vL)("vos"),this.loading=!1},error:re=>{"PrivilegeException"===re.name?(this.vos=[],this.loading=!1):this.notificator.showRPCError(re)}})}applyFilter(re){this.filterValue=re}onCreateVo(){const re=(0,m.kZ)();re.width="610px",re.data={theme:"vo-theme"},this.dialog.open(ce,re).afterClosed().subscribe(N=>{N&&(this.loading=!0,this.refreshTable())})}onRemoveVo(){const re=(0,m.kZ)();re.width="500px",re.data={theme:"vo-theme",vos:[this.selection.selected[0].vo]},this.dialog.open(w.o,re).afterClosed().subscribe(N=>{N&&this.refreshTable()})}}return Ce.id="VoSelectPageComponent",Ce.\u0275fac=function(re){return new(re||Ce)(E.Y36(b.D),E.Y36(e.YF),E.Y36(A.x4),E.Y36(g.uw),E.Y36(A.V6),E.Y36(A.F5))},Ce.\u0275cmp=E.Xpm({type:Ce,selectors:[["app-vo-select-page"]],hostVars:2,hostBindings:function(re,B){2&re&&E.ekj("router-component",B.true)},decls:12,vars:11,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","vo-theme"],[1,"page-title","d-flex"],["svgIcon","perun-vo-black",1,"perun-icon","icon-scale",3,"ngStyle"],[3,"refresh"],["class","mr-2 action-button","data-cy","new-vo-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"autoFocus","placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"tableId","displayedColumns","filterValue","recentIds","selection","vos",4,"ngIf"],["data-cy","new-vo-button","color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"tableId","displayedColumns","filterValue","recentIds","selection","vos"]],template:function(re,B){1&re&&(E.TgZ(0,"div",0),E._UZ(1,"perun-web-apps-back-button"),E.TgZ(2,"h1",1),E._UZ(3,"mat-icon",2),E._uU(4),E.ALo(5,"translate"),E.qZA(),E.TgZ(6,"perun-web-apps-refresh-button",3),E.NdJ("refresh",function(){return B.refreshTable()}),E.qZA(),E.YNc(7,xe,3,3,"button",4),E.YNc(8,ge,3,4,"button",5),E.TgZ(9,"perun-web-apps-immediate-filter",6),E.NdJ("filter",function(Me){return B.applyFilter(Me)}),E.qZA(),E.YNc(10,Se,1,0,"mat-spinner",7),E.YNc(11,Be,1,6,"perun-web-apps-vos-list",8),E.qZA()),2&re&&(E.xp6(3),E.Q6J("ngStyle",E.DdM(10,pe)),E.xp6(1),E.hij(" ",E.lcZ(5,8,"VO_MANAGEMENT.TITLE")," "),E.xp6(3),E.Q6J("ngIf",B.createAuth),E.xp6(1),E.Q6J("ngIf",B.deleteAuth),E.xp6(1),E.Q6J("autoFocus",!0)("placeholder","VO_MANAGEMENT.FILTER_PLACEHOLDER"),E.xp6(1),E.Q6J("ngIf",B.loading),E.xp6(1),E.Q6J("ngIf",!B.loading))},dependencies:[v.O5,v.PC,H.Hw,z.lW,$.Ou,L.Z,V.t,Q.W,ae.L,S.X$],styles:[".icon-scale[_ngcontent-%COMP%]{transform:scale(1.7);margin-left:.5rem;margin-top:-.4rem;margin-right:.9rem}"]}),Ce})()},92013:(Qe,he,u)=>{"use strict";var e=u(11481),m=u(94650),A=u(94364);let w=(()=>{class te{}return te.\u0275fac=function(P){return new(P||te)},te.\u0275cmp=m.Xpm({type:te,selectors:[["app-auth-callback"]],decls:0,vars:0,template:function(P,Z){}}),te})();var p=u(32105),g=u(69723),T=u(9244),E=u(21029),S=u(40034),R=u(77968),v=u(89383),D=u(65412),F=u(36895),z=u(24006),$=u(97392),G=u(23267),q=u(4859),_e=u(56709),ce=u(51572),Te=u(10266),b=u(87831),H=u(25788),L=u(62109),V=u(74010);function Q(te,O){1&te&&m._UZ(0,"mat-spinner",7)}const ae=function(){return["id","recent","shortName","name"]};function xe(te,O){if(1&te&&(m.TgZ(0,"span"),m._UZ(1,"perun-web-apps-vos-list",8),m.qZA()),2&te){const P=m.oxw(2);m.xp6(1),m.Q6J("pageSizeOptions",null)("displayedColumns",m.DdM(4,ae))("recentIds",P.recentIds)("vos",P.objects)}}const ge=function(){return["id","recent","vo","name","description"]};function Se(te,O){if(1&te&&(m.TgZ(0,"span"),m._UZ(1,"perun-web-apps-groups-list",9),m.qZA()),2&te){const P=m.oxw(2);m.xp6(1),m.Q6J("pageSizeOptions",null)("displayedColumns",m.DdM(4,ge))("groups",P.objects)("recentIds",P.recentIds)}}const Be=function(){return["id","recent","name","vo","facility"]};function pe(te,O){if(1&te&&(m.TgZ(0,"span"),m._UZ(1,"perun-web-apps-resources-list",10),m.qZA()),2&te){const P=m.oxw(2);m.xp6(1),m.Q6J("pageSizeOptions",null)("displayedColumns",m.DdM(5,Be))("resources",P.objects)("recentIds",P.recentIds)("routingVo",!0)}}const $e=function(){return["id","recent","name","description"]};function Ce(te,O){if(1&te&&(m.TgZ(0,"span"),m._UZ(1,"perun-web-apps-facilities-list",11),m.qZA()),2&te){const P=m.oxw(2);m.xp6(1),m.Q6J("displayedColumns",m.DdM(4,$e))("facilities",P.objects)("pageSizeOptions",null)("recentIds",P.recentIds)}}function de(te,O){if(1&te&&(m.TgZ(0,"div"),m.YNc(1,xe,2,5,"span",6),m.YNc(2,Se,2,5,"span",6),m.YNc(3,pe,2,6,"span",6),m.YNc(4,Ce,2,5,"span",6),m.qZA()),2&te){const P=m.oxw();m.xp6(1),m.Q6J("ngIf","Vo"===P.primaryObject),m.xp6(1),m.Q6J("ngIf","Group"===P.primaryObject),m.xp6(1),m.Q6J("ngIf","Resource"===P.primaryObject),m.xp6(1),m.Q6J("ngIf","Facility"===P.primaryObject)}}let re=(()=>{class te{constructor(P,Z,He){this.authzResolver=P,this.guiAuthResolver=Z,this.resourceService=He,this.loading=!1,this.recentIds=[]}ngOnInit(){this.loading=!0,this.primaryObject=this.guiAuthResolver.getPrimaryObjectOfRole(this.roleName),this.svgIcon="perun-"+this.primaryObject.toLowerCase()+"-black",this.title="USER_DETAIL.DASHBOARD.CARD_TITLE_"+this.roleName,this.roleTooltipInfo="USER_DETAIL.DASHBOARD.ROLE_INFO_"+this.roleName,this.getObjects()}getObjects(){switch(this.primaryObject){case"Vo":this.authzResolver.getVosWhereUserIsInRoles([this.roleName]).subscribe(P=>{this.objects=P,this.recentIds=(0,T.vL)("vos"),this.loading=!1});break;case"Group":this.authzResolver.getGroupsWhereUserIsInRoles([this.roleName]).subscribe(P=>{this.objects=P,this.recentIds=(0,T.vL)("groups"),this.loading=!1});break;case"Resource":this.resourceService.getRichResourcesByIds(this.role[this.primaryObject]).subscribe(P=>{this.objects=P,this.recentIds=(0,T.vL)("resources"),this.loading=!1});break;case"Facility":this.authzResolver.getFacilitiesWhereUserIsInRoles([this.roleName]).subscribe(P=>{this.objects=P.map(Z=>({facility:Z})),this.recentIds=(0,T.vL)("facilities"),this.loading=!1});break;default:this.objects=[],this.loading=!1}}}return te.\u0275fac=function(P){return new(P||te)(m.Y36(p.Ct),m.Y36(g.x4),m.Y36(p.xk))},te.\u0275cmp=m.Xpm({type:te,selectors:[["app-perun-web-apps-dashboard-card"]],inputs:{role:"role",roleName:"roleName"},decls:11,vars:9,consts:[[1,"card","p-3"],[1,"flex-column","card-title"],[1,"cover-image",3,"svgIcon"],["matTooltipPosition","above",3,"matTooltip"],[1,"dashboard-icon"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"pageSizeOptions","displayedColumns","recentIds","vos"],[3,"pageSizeOptions","displayedColumns","groups","recentIds"],[3,"pageSizeOptions","displayedColumns","resources","recentIds","routingVo"],[3,"displayedColumns","facilities","pageSizeOptions","recentIds"]],template:function(P,Z){1&P&&(m.TgZ(0,"div",0)(1,"div",1),m._UZ(2,"mat-icon",2),m._uU(3),m.ALo(4,"translate"),m.TgZ(5,"span",3),m.ALo(6,"translate"),m.TgZ(7,"mat-icon",4),m._uU(8,"info_outline"),m.qZA()()(),m.YNc(9,Q,1,0,"mat-spinner",5),m.YNc(10,de,5,4,"div",6),m.qZA()),2&P&&(m.xp6(2),m.Q6J("svgIcon",Z.svgIcon),m.xp6(1),m.hij(" ",m.lcZ(4,5,Z.title)," "),m.xp6(2),m.s9C("matTooltip",m.lcZ(6,7,Z.roleTooltipInfo)),m.xp6(4),m.Q6J("ngIf",Z.loading),m.xp6(1),m.Q6J("ngIf",!Z.loading))},dependencies:[F.O5,$.Hw,ce.Ou,Te.gM,b.Z,H.W,L.C,V.X,v.X$],styles:[".dashboard-icon[_ngcontent-%COMP%]{vertical-align:middle;transform:scale(.8)}.card-title[_ngcontent-%COMP%]{font-size:1.4rem;flex-wrap:wrap}.cover-image[_ngcontent-%COMP%]{transform:scale(1.8);margin-left:.9rem;margin-right:.7rem}"]}),te})();var B=u(3238),N=u(98380),Me=u(94391);function Y(te,O){1&te&&m._UZ(0,"mat-spinner",3)}function be(te,O){1&te&&(m.TgZ(0,"perun-web-apps-alert",4),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&te&&(m.xp6(1),m.Oqu(m.lcZ(2,1,"USER_DETAIL.DASHBOARD.NO_RECENTLY_VIEWED")))}const De=function(te){return[te]};function We(te,O){if(1&te&&(m.TgZ(0,"div",7)(1,"a",8),m.NdJ("auxclick",function(Z){return Z.preventDefault()}),m.TgZ(2,"span",9),m._uU(3),m.qZA(),m._UZ(4,"mat-icon",10),m.TgZ(5,"p",11),m._uU(6),m.qZA()()()),2&te){const P=O.$implicit;m.xp6(1),m.Gre("",P.style," item-itself"),m.s9C("matTooltip",P.tooltip),m.Q6J("perunWebAppsMiddleClickRouterLink",m.VKq(9,De,P.url))("routerLink",P.url),m.xp6(2),m.Oqu(P.type),m.xp6(1),m.Q6J("svgIcon",P.cssIcon),m.xp6(2),m.Oqu(P.label)}}function Pe(te,O){if(1&te&&(m.TgZ(0,"div",5),m.YNc(1,We,7,11,"div",6),m.qZA()),2&te){const P=m.oxw();m.xp6(1),m.Q6J("ngForOf",P.items)}}let nt=(()=>{class te{constructor(P,Z,He,ut){this.vosManager=P,this.groupsManager=Z,this.authResolver=He,this.facilitiesManager=ut,this.items=[],this.vosIds=[],this.groupsIds=[],this.facilitiesIds=[],this.existingRecentIds=[],this.vos=[],this.groups=[],this.facilities=[]}ngOnInit(){this.loading=!0,this.recentItems=(0,T.j4)("recent");for(const P of this.recentItems)switch(P.type){case"Vo":this.vosIds.push(P.id);break;case"Group":this.groupsIds.push(P.id);break;case"Facility":this.facilitiesIds.push(P.id)}0===this.vosIds.length&&this.vosIds.push(-1),0===this.groupsIds.length&&this.groupsIds.push(-1),0===this.facilitiesIds.length&&this.facilitiesIds.push(-1),this.getVos()}getVos(){this.authResolver.isAuthorized("getVosByIds_List_policy",[])?this.vosManager.getVosByIds(this.vosIds).subscribe(P=>{this.vos=P,this.getGroups()}):this.getGroups()}getGroups(){this.authResolver.isAuthorized("getGroupsByIds_List_policy",[])?this.groupsManager.getGroupsByIds(this.groupsIds).subscribe(P=>{this.groups=P,this.getFacilities()}):this.getFacilities()}getFacilities(){this.authResolver.isAuthorized("getFacilitiesByIds_List_policy",[])?this.facilitiesManager.getFacilitiesByIds(this.facilitiesIds).subscribe(P=>{this.facilities=P,this.addRecentlyViewedToDashboard()}):this.addRecentlyViewedToDashboard()}addRecentlyViewedToDashboard(){for(const P of this.recentItems)switch(P.type){case"Vo":{const Z=this.vos.filter(He=>He.id===P.id)[0];Z&&this.items.push({cssIcon:"perun-vo",url:`/organizations/${Z.id}`,label:Z.name,tooltip:Z.name,style:"vo-btn",type:"Organization"});break}case"Group":{const Z=this.groups.filter(He=>He.id===P.id)[0];Z&&this.items.push({cssIcon:"perun-group",url:`/organizations/${Z.voId}/groups/${Z.id}`,label:Z.shortName,tooltip:`${P.voName} : ${Z.name.replace(/:/g," : ")}`,style:"group-btn",type:"Group"});break}case"Facility":{const Z=this.facilities.filter(He=>He.id===P.id)[0];Z&&this.items.push({cssIcon:"perun-facility-white",url:`/facilities/${Z.id}`,label:Z.name,tooltip:Z.name,style:"facility-btn",type:"Facility"});break}}this.loading=!1}}return te.\u0275fac=function(P){return new(P||te)(m.Y36(p.YF),m.Y36(p.ff),m.Y36(g.x4),m.Y36(p.IQ))},te.\u0275cmp=m.Xpm({type:te,selectors:[["app-perun-web-apps-dashboard-recently-viewed-button-field"]],decls:3,vars:3,consts:[["class","ml-auto mr-auto",4,"ngIf"],["alert_type","info",4,"ngIf"],["class","items-container",4,"ngIf"],[1,"ml-auto","mr-auto"],["alert_type","info"],[1,"items-container"],["class","item-itself-container","mat-ripple","",4,"ngFor","ngForOf"],["mat-ripple","",1,"item-itself-container"],[3,"perunWebAppsMiddleClickRouterLink","routerLink","matTooltip","auxclick"],[1,"item-type"],[1,"item-pic","perun-icon",3,"svgIcon"],[1,"truncate"]],template:function(P,Z){1&P&&(m.YNc(0,Y,1,0,"mat-spinner",0),m.YNc(1,be,3,3,"perun-web-apps-alert",1),m.YNc(2,Pe,2,1,"div",2)),2&P&&(m.Q6J("ngIf",Z.loading),m.xp6(1),m.Q6J("ngIf",0===Z.items.length&&!Z.loading),m.xp6(1),m.Q6J("ngIf",Z.items.length>0))},dependencies:[F.sg,F.O5,A.yS,$.Hw,ce.Ou,Te.gM,B.wG,N.w,Me.YH,Me.QG,v.X$],styles:[".items-container[_ngcontent-%COMP%]{display:grid;grid-gap:0;grid-template-columns:repeat(auto-fill,minmax(208px,1fr));margin:0 -8px}@media (max-width: 768px){.items-container[_ngcontent-%COMP%]{grid-template-columns:repeat(auto-fill,minmax(148px,1fr))}}.item-pic[_ngcontent-%COMP%]{color:currentColor;transform:scale(3);height:74px;margin-bottom:22px;align-self:center}.item-itself-container[_ngcontent-%COMP%]{margin:8px}.item-itself[_ngcontent-%COMP%]{text-align:center;min-height:186px;height:100%;padding:20px;display:flex;flex-direction:column;font-size:1.25rem;word-wrap:break-word;overflow-wrap:break-word;word-break:break-word}.item-itself[_ngcontent-%COMP%]:hover{text-decoration:none}.item-itself[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:120px;margin-bottom:10px}@media (max-width: 768px){.item-itself[_ngcontent-%COMP%]{min-height:150px;padding:10px;word-wrap:break-word;overflow-wrap:break-word;word-break:break-word}.item-itself[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:80px;margin-bottom:10px}}.item-type[_ngcontent-%COMP%]{font-size:.75rem}.truncate[_ngcontent-%COMP%]{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}"]}),te})();var Ye=u(31359);function Tt(te,O){if(1&te){const P=m.EpF();m.TgZ(0,"div")(1,"mat-checkbox",8),m.NdJ("change",function(He){const It=m.CHM(P).$implicit,Rt=m.oxw();return m.KtG(He?Rt.changeRoleView(It):null)}),m._uU(2),m.ALo(3,"translate"),m.qZA()()}if(2&te){const P=O.$implicit,Z=m.oxw();m.xp6(1),m.Q6J("checked",Z.isRoleShowed(P)),m.xp6(1),m.Oqu(m.lcZ(3,2,"USER_DETAIL.DASHBOARD.CARD_TITLE_"+P))}}function J(te,O){if(1&te){const P=m.EpF();m.TgZ(0,"button",15),m.NdJ("click",function(){m.CHM(P);const He=m.oxw(2);return m.KtG(He.rightSettingOpened=!0)}),m.TgZ(1,"mat-icon"),m._uU(2,"settings"),m.qZA()()}}function Xe(te,O){1&te&&(m.TgZ(0,"span"),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&te&&(m.xp6(1),m.Oqu(m.lcZ(2,1,"USER_DETAIL.DASHBOARD.NOT_MANAGER_INFO_NO_USER_PROFILE")))}function le(te,O){1&te&&(m.TgZ(0,"span"),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&te&&(m.xp6(1),m.Oqu(m.lcZ(2,1,"USER_DETAIL.DASHBOARD.NOT_MANAGER_INFO")))}function ne(te,O){if(1&te){const P=m.EpF();m.TgZ(0,"button",23),m.NdJ("click",function(){m.CHM(P);const He=m.oxw(3);return m.KtG(He.goToUserProfile())}),m.TgZ(1,"mat-icon",24),m._uU(2,"exit_to_app"),m.qZA(),m._uU(3),m.ALo(4,"translate"),m.qZA()}if(2&te){const P=m.oxw(3);m.xp6(3),m.AsE("",m.lcZ(4,2,"USER_DETAIL.DASHBOARD.GO_TO_USER_PROFILE")," ",P.userProfileName," ")}}const ke=function(){return["/myProfile"]};function Ee(te,O){if(1&te&&(m.TgZ(0,"div")(1,"div",16)(2,"div",17),m._uU(3),m.ALo(4,"translate"),m.qZA(),m.TgZ(5,"div",18),m.YNc(6,Xe,3,3,"span",14),m.YNc(7,le,3,3,"span",14),m.qZA(),m.TgZ(8,"div",19)(9,"button",20),m._UZ(10,"mat-icon",21),m._uU(11),m.ALo(12,"translate"),m.qZA(),m.YNc(13,ne,5,4,"button",22),m.qZA()()()),2&te){const P=m.oxw(2);m.xp6(3),m.hij(" ",m.lcZ(4,6,"USER_DETAIL.DASHBOARD.NOT_MANAGER")," "),m.xp6(3),m.Q6J("ngIf",!P.userProfileUrl),m.xp6(1),m.Q6J("ngIf",P.userProfileUrl),m.xp6(2),m.Q6J("routerLink",m.DdM(10,ke)),m.xp6(2),m.hij(" ",m.lcZ(12,8,"USER_DETAIL.DASHBOARD.GO_TO_MY_PROFILE")," "),m.xp6(2),m.Q6J("ngIf",P.userProfileUrl)}}function ot(te,O){1&te&&(m.TgZ(0,"span")(1,"div",3),m._uU(2),m.ALo(3,"translate"),m.qZA(),m._UZ(4,"app-perun-web-apps-dashboard-recently-viewed-button-field"),m.qZA()),2&te&&(m.xp6(2),m.hij(" ",m.lcZ(3,1,"USER_DETAIL.DASHBOARD.RECENTLY_VIEWED")," "))}function it(te,O){1&te&&(m.TgZ(0,"div",27),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&te&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"USER_DETAIL.DASHBOARD.MANAGEABLE_ENTITIES")," "))}function oe(te,O){if(1&te&&m._UZ(0,"app-perun-web-apps-dashboard-card",30),2&te){const P=m.oxw().$implicit,Z=m.oxw(3);m.Q6J("roleName",P)("role",Z.roles[P])}}function X(te,O){if(1&te&&(m.TgZ(0,"div",28),m.YNc(1,oe,1,2,"app-perun-web-apps-dashboard-card",29),m.qZA()),2&te){const P=O.$implicit,Z=m.oxw(3);m.xp6(1),m.Q6J("ngIf",Z.isRoleShowed(P))}}function r(te,O){if(1&te&&(m.TgZ(0,"div"),m.YNc(1,ot,5,3,"span",14),m.YNc(2,it,3,3,"div",25),m.TgZ(3,"div"),m.YNc(4,X,2,1,"div",26),m.qZA()()),2&te){const P=m.oxw(2);m.xp6(1),m.Q6J("ngIf",P.recentlyViewedShow),m.xp6(1),m.Q6J("ngIf",P.rolesToHide.toString()!==P.roleNames.toString()),m.xp6(2),m.Q6J("ngForOf",P.roleNames)}}function s(te,O){if(1&te&&(m.TgZ(0,"div",9)(1,"h1",10),m._UZ(2,"mat-icon",11),m.TgZ(3,"span",12),m._uU(4),m.ALo(5,"translate"),m.ALo(6,"userFullName"),m.qZA(),m.YNc(7,J,3,0,"button",13),m.qZA(),m.YNc(8,Ee,14,11,"div",14),m.YNc(9,r,5,3,"div",14),m.qZA()),2&te){const P=m.oxw();m.xp6(4),m.AsE("",m.lcZ(5,5,"USER_DETAIL.DASHBOARD.TITLE")," ",m.lcZ(6,7,P.user),""),m.xp6(3),m.Q6J("ngIf",!P.isOnlySelfRole),m.xp6(1),m.Q6J("ngIf",P.isOnlySelfRole),m.xp6(1),m.Q6J("ngIf",!P.isOnlySelfRole)}}let _=(()=>{class te{constructor(P,Z,He,ut,It,Rt,jt,Xt,cn,En){this.userManager=P,this.storeService=Z,this.sideMenuService=He,this.route=ut,this.router=It,this.notificator=Rt,this.translateService=jt,this.dialog=Xt,this.apiRequestConfiguration=cn,this.otherApplicationService=En,this.roles={},this.userProfileUrl="",this.isOnlySelfRole=!1,this.rightSettingOpened=!1,this.recentlyViewedShow=!0,this.rolesToHide=[],this.allowedRoles=["VOADMIN","GROUPADMIN","FACILITYADMIN","SPONSOR","RESOURCEADMIN","TOPGROUPCREATOR","VOOBSERVER","GROUPOBSERVER","GROUPMEMBERSHIPMANAGER","FACILITYOBSERVER","RESOURCEOBSERVER"],jt.get("USER_DETAIL.DASHBOARD.MAIL_CHANGE_SUCCESS").subscribe(Vn=>this.mailSuccessMessage=Vn)}ngOnInit(){this.sideMenuService.setHomeItems([]),this.validatePreferredMailChange(),this.user=this.storeService.getPerunPrincipal().user,this.roles=this.storeService.getPerunPrincipal().roles,this.getUserProfile();const P=Object.keys(this.roles);this.isOnlySelfRole=P.toString()===["SELF"].toString(),this.roleNames=this.allowedRoles.filter(Z=>P.includes(Z)),this.getDashboardSettings()}goToUserProfile(){window.open(this.userProfileUrl)}recentlyViewedChanged(){localStorage.setItem("showRecentlyViewed",JSON.stringify(this.recentlyViewedShow))}changeRoleView(P){if(this.isRoleShowed(P)){const Z=[];for(const He of this.roleNames)this.isRoleShowed(He)||Z.push(He),He===P&&Z.push(He);this.rolesToHide=Z}else this.rolesToHide=this.rolesToHide.filter(Z=>Z!==P);localStorage.setItem("rolesToHide",JSON.stringify(this.rolesToHide))}isRoleShowed(P){return!this.rolesToHide.includes(P)}validatePreferredMailChange(){const P=this.route.snapshot.queryParamMap,Z=P.get("token"),He=P.get("u");Z&&He&&(this.apiRequestConfiguration.dontHandleErrorForNext(),this.userManager.validatePreferredEmailChangeWithToken(Z,Number.parseInt(He,10)).subscribe({next:()=>{this.notificator.showSuccess(this.mailSuccessMessage),this.router.navigate([],{replaceUrl:!0,queryParamsHandling:"preserve"})},error:()=>{const ut=(0,T.kZ)();ut.width="600px",this.dialog.open(E.qD,ut).afterClosed().subscribe(()=>{this.getDashboardSettings()})}}))}getDashboardSettings(){const P=JSON.parse(localStorage.getItem("showRecentlyViewed"));this.recentlyViewedShow=null===P||P;const Z=JSON.parse(localStorage.getItem("rolesToHide"));this.rolesToHide=null===Z?[]:Z}getUserProfile(){this.userProfileUrl=this.otherApplicationService.getUrlForOtherApplication(S.p.Profile),this.userProfileName=this.storeService.getProperty("profile_label_en")}}return te.\u0275fac=function(P){return new(P||te)(m.Y36(p.Fv),m.Y36(g.d6),m.Y36(R.D),m.Y36(A.gz),m.Y36(A.F0),m.Y36(g.V6),m.Y36(v.sK),m.Y36(D.uw),m.Y36(g.F5),m.Y36(g.jq))},te.\u0275cmp=m.Xpm({type:te,selectors:[["app-perun-web-apps-user-dashboard"]],hostVars:2,hostBindings:function(P,Z){2&P&&m.ekj("router-component",Z.true)},decls:16,vars:13,consts:[["hasBackdrop","true",1,"dashboard"],["mode","over","position","end",3,"opened","openedChange"],[1,"m-4","user-theme"],[1,"page-subtitle"],[3,"ngModel","ngModelChange","change"],[1,"text-bigger","mt-1","mb-1"],[4,"ngFor","ngForOf"],["class","container-fluid pl-xl-5 pr-xl-5 user-theme",4,"ngIf"],[3,"checked","change"],[1,"container-fluid","pl-xl-5","pr-xl-5","user-theme"],[1,"page-title","d-flex"],["svgIcon","perun-home-white",1,"home-image","perun-icon"],["data-cy","dashboard-welcome",1,"pt-1"],["class","ml-auto text-bigger","mat-stroked-button","",3,"click",4,"ngIf"],[4,"ngIf"],["mat-stroked-button","",1,"ml-auto","text-bigger",3,"click"],[1,"card","m-3","p-5"],[1,"text-align"],[1,"text-align","pt-3"],[1,"mx-auto","pt-3"],["queryParamsHandling","merge","mat-stroked-button","",1,"text-bigger",3,"routerLink"],["svgIcon","perun-user-dark",1,"mr-1","user-icon","perun-icon"],["class","text-bigger ml-2 mt-2","mat-stroked-button","",3,"click",4,"ngIf"],["mat-stroked-button","",1,"text-bigger","ml-2","mt-2",3,"click"],[1,"mr-1"],["class","page-subtitle mt-4",4,"ngIf"],["class","mb-3",4,"ngFor","ngForOf"],[1,"page-subtitle","mt-4"],[1,"mb-3"],[3,"roleName","role",4,"ngIf"],[3,"roleName","role"]],template:function(P,Z){1&P&&(m.TgZ(0,"mat-sidenav-container",0)(1,"mat-sidenav",1),m.NdJ("openedChange",function(ut){return Z.rightSettingOpened=ut}),m.TgZ(2,"div",2)(3,"div",3),m._uU(4),m.ALo(5,"translate"),m.qZA(),m.TgZ(6,"div")(7,"mat-checkbox",4),m.NdJ("ngModelChange",function(ut){return Z.recentlyViewedShow=ut})("change",function(ut){return ut?Z.recentlyViewedChanged():null}),m._uU(8),m.ALo(9,"translate"),m.qZA()(),m.TgZ(10,"div",5),m._uU(11),m.ALo(12,"translate"),m.qZA(),m.YNc(13,Tt,4,4,"div",6),m.qZA()(),m.TgZ(14,"mat-sidenav-content"),m.YNc(15,s,10,9,"div",7),m.qZA()()),2&P&&(m.xp6(1),m.Q6J("opened",Z.rightSettingOpened),m.xp6(3),m.Oqu(m.lcZ(5,7,"USER_DETAIL.DASHBOARD.DASHBOARD_SETTINGS")),m.xp6(3),m.Q6J("ngModel",Z.recentlyViewedShow),m.xp6(1),m.Oqu(m.lcZ(9,9,"USER_DETAIL.DASHBOARD.SHOW_RECENTLY_VIEWED")),m.xp6(3),m.Oqu(m.lcZ(12,11,"USER_DETAIL.DASHBOARD.SHOW_ROLES")),m.xp6(2),m.Q6J("ngForOf",Z.roleNames),m.xp6(2),m.Q6J("ngIf",void 0!==Z.user))},dependencies:[F.sg,F.O5,A.rH,z.JJ,z.On,$.Hw,G.JX,G.TM,G.Rh,q.lW,_e.oG,re,nt,v.X$,Ye.d],styles:[".dashboard-container[_ngcontent-%COMP%]{-moz-columns:300px 2;columns:300px 2;-moz-column-gap:1rem;column-gap:1rem;margin:0}.dashboard-container[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:0 1rem 1rem 0;display:inline-block;min-width:300px;width:100%}.home-image[_ngcontent-%COMP%]{transform:scale(1.4);margin-right:.7rem;margin-left:.6rem}.text-align[_ngcontent-%COMP%]{text-align:center;font-size:1.25rem}.text-bigger[_ngcontent-%COMP%]{font-size:1.1rem}.user-icon[_ngcontent-%COMP%]{vertical-align:top}.dashboard[_ngcontent-%COMP%]{position:relative;min-height:calc(100vh - 234px);margin-bottom:-60px!important;padding-bottom:50px;top:-10px!important;left:0;right:0}"]}),te})();var c=u(4235);let a=(()=>{class te{}return te.\u0275fac=function(P){return new(P||te)},te.\u0275cmp=m.Xpm({type:te,selectors:[["app-perun-web-apps-not-found-page"]],decls:5,vars:3,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5"],[1,"page-title"]],template:function(P,Z){1&P&&(m.TgZ(0,"div",0),m._UZ(1,"perun-web-apps-back-button"),m.TgZ(2,"h1",1),m._uU(3),m.ALo(4,"translate"),m.qZA()()),2&P&&(m.xp6(3),m.Oqu(m.lcZ(4,1,"GENERAL.PAGE_NOT_FOUND.TITLE")))},dependencies:[c.W,v.X$]}),te})();var i=u(85147),t=u(59549),n=u(284),o=u(63189);let l=(()=>{class te{}return te.\u0275fac=function(P){return new(P||te)},te.\u0275mod=m.oAB({type:te}),te.\u0275inj=m.cJS({imports:[F.ez,q.ot,$.Ps,A.Bz,i.ez,v.aw,t.lN,z.UX,n.c,o.r]}),te})(),d=(()=>{class te{constructor(P,Z){this.auth=P,this.router=Z}ngOnInit(){this.auth.isLoggedIn()&&this.router.navigate([""],{queryParamsHandling:"merge"})}startAuth(){this.auth.startAuthentication()}}return te.\u0275fac=function(P){return new(P||te)(m.Y36(g.e8),m.Y36(A.F0))},te.\u0275cmp=m.Xpm({type:te,selectors:[["perun-web-apps-login-screen"]],decls:11,vars:6,consts:[[1,"container","login-con"],[1,"row"],[1,"ml-auto","mr-auto","d-flex","flex-column","align-items-center"],[1,"mb-3"],["mat-raised-button","","color","primary",3,"click"]],template:function(P,Z){1&P&&(m.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h4",3),m._uU(4),m.ALo(5,"translate"),m.qZA(),m.TgZ(6,"button",4),m.NdJ("click",function(){return Z.startAuth()}),m._uU(7),m.ALo(8,"translate"),m.TgZ(9,"mat-icon"),m._uU(10," login "),m.qZA()()()()()),2&P&&(m.xp6(4),m.hij(" ",m.lcZ(5,2,"SHARED_LIB.PERUN.LOGIN.TEXT")," "),m.xp6(3),m.hij(" ",m.lcZ(8,4,"SHARED_LIB.PERUN.LOGIN.SIGN_IN")," "))},dependencies:[q.lW,$.Hw,v.X$],styles:[".login-con[_ngcontent-%COMP%]{padding:120px 0}"]}),te})();var y=u(41619);function k(te,O){if(1&te&&(m.TgZ(0,"div",8),m._UZ(1,"div",9),m.qZA()),2&te){const P=m.oxw();m.xp6(1),m.Q6J("innerHTML",P.logo,m.oJD)}}function Ie(te,O){if(1&te&&(m.TgZ(0,"div",10),m._UZ(1,"div",11)(2,"mat-icon",12),m.qZA()),2&te){const P=m.oxw();m.xp6(1),m.Q6J("innerHTML",P.logo,m.oJD)}}const tt=function(te){return{color:te}};function ct(te,O){if(1&te&&(m.TgZ(0,"p",13),m._uU(1),m.qZA()),2&te){const P=m.oxw();m.Q6J("ngStyle",m.VKq(2,tt,P.textColor)),m.xp6(1),m.hij(" ",P.headerTitle," ")}}const Ue=function(te,O){return{background:te,color:O}},at=function(te,O){return{"min-height":te,"background-color":O}};let fe=(()=>{class te{constructor(P,Z,He,ut){this.storeService=P,this.sanitizer=Z,this.preferredLangService=He,this.translateService=ut,this.contentBackgroundColor=this.storeService.getProperty("theme").content_bg_color}ngOnInit(){if(this.headerBackgroundColor=this.storeService.getProperty("theme").nav_bg_color,this.headerTextColor=this.storeService.getProperty("theme").nav_text_color,this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.getProperty("logo")),this.textColor=this.headerTitle?this.storeService.getProperty("theme").nav_text_color:"","user-profile"===this.application){const P=this.preferredLangService.getPreferredLanguage(null);this.translateService.use(P)}}getContentInnerMinHeight(){return"calc((100vh - 64px) + 0px)"}}return te.\u0275fac=function(P){return new(P||te)(m.Y36(g.d6),m.Y36(e.H7),m.Y36(g.BN),m.Y36(v.sK))},te.\u0275cmp=m.Xpm({type:te,selectors:[["perun-web-apps-login-screen-base"]],inputs:{application:"application",headerTitle:"headerTitle"},decls:10,vars:11,consts:[["id","login-nav",1,"mat-elevation-z3",3,"ngStyle"],["class","mt-auto mb-auto",4,"ngIf"],["class","display-flex-row",4,"ngIf"],["class","ml-3 mt-auto mb-auto page-subtitle",3,"ngStyle",4,"ngIf"],["id","content"],["id","content-inner",3,"ngStyle"],["id","content-wrap"],["id","footer"],[1,"mt-auto","mb-auto"],[1,"logo-container",3,"innerHTML"],[1,"display-flex-row"],[1,"logo-container","mt-auto","mb-auto",3,"innerHTML"],["svgIcon","perun-publications-white",1,"mt-auto","mb-auto","router-icon","ml-2","mr-2"],[1,"ml-3","mt-auto","mb-auto","page-subtitle",3,"ngStyle"]],template:function(P,Z){1&P&&(m.TgZ(0,"div",0),m.YNc(1,k,2,1,"div",1),m.YNc(2,Ie,3,1,"div",2),m.YNc(3,ct,2,4,"p",3),m.qZA(),m.TgZ(4,"div",4)(5,"div",5)(6,"div",6),m._UZ(7,"router-outlet"),m.qZA(),m.TgZ(8,"div",7),m._UZ(9,"perun-web-apps-footer"),m.qZA()()()),2&P&&(m.Q6J("ngStyle",m.WLB(5,Ue,Z.headerBackgroundColor,Z.headerTextColor)),m.xp6(1),m.Q6J("ngIf","admin-gui"===Z.application||"user-profile"===Z.application||"consolidator"===Z.application),m.xp6(1),m.Q6J("ngIf","publications"===Z.application),m.xp6(1),m.Q6J("ngIf",!!Z.headerTitle),m.xp6(2),m.Q6J("ngStyle",m.WLB(8,at,Z.getContentInnerMinHeight(),Z.contentBackgroundColor)))},dependencies:[F.O5,F.PC,$.Hw,A.lC,y.$],styles:["#login-nav[_ngcontent-%COMP%]{position:fixed;width:100%;z-index:999;display:flex;height:64px;max-height:64px;top:0}#footer[_ngcontent-%COMP%]{position:absolute;bottom:0;width:100%}#content[_ngcontent-%COMP%]{width:100%;min-height:calc(100vh - 64px);margin-top:64px}#content-inner[_ngcontent-%COMP%]{position:relative}#content-wrap[_ngcontent-%COMP%]{padding-bottom:250px;padding-top:10px}@media (max-width: 768px){#content-wrap[_ngcontent-%COMP%]{padding-bottom:500px}}.router-icon[_ngcontent-%COMP%]{height:2.5rem;width:2.5rem;cursor:pointer;outline:0}.page-subtitle[_ngcontent-%COMP%]{margin-bottom:1rem;font-size:1.5rem}.logo-container[_ngcontent-%COMP%]{padding:0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}.display-flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}"]}),te})();function Oe(te,O){1&te&&(m.TgZ(0,"perun-web-apps-alert",8),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&te&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.WRONG_LOGIN_OR_PASSWORD")," "))}const je=[{path:"",redirectTo:"home",pathMatch:"full"},{path:"redirect",component:i.t$},{path:"api-callback",component:w},{path:"login",component:d},{path:"service-access",component:(()=>{class te{constructor(P){this.authzService=P,this.usernameCtrl=new z.NI(null,[z.kI.required]),this.passwordCtrl=new z.NI(null,[z.kI.required]),this.wrongUsernameOrPassword=!1}startAuth(){this.usernameCtrl.invalid||this.passwordCtrl.invalid||(sessionStorage.setItem("basicUsername",this.usernameCtrl.value),sessionStorage.setItem("basicPassword",this.passwordCtrl.value),this.authzService.getPerunPrincipal().subscribe({next:P=>{sessionStorage.setItem("baPrincipal",JSON.stringify(P)),location.reload()},error:()=>{this.wrongUsernameOrPassword=!0}}))}}return te.\u0275fac=function(P){return new(P||te)(m.Y36(p.Ct))},te.\u0275cmp=m.Xpm({type:te,selectors:[["perun-web-apps-login-screen-service-access"]],decls:28,vars:23,consts:[[1,"container","login-con","vo-theme","top-padding"],[1,"row"],[1,"ml-auto","mr-auto","d-flex","flex-column","align-items-center"],["alert_type","error",4,"ngIf"],["appearance","outline"],["matInput","","required","",3,"formControl","keyup.enter"],["matInput","","required","",3,"formControl","type","keyup.enter"],["mat-raised-button","",1,"black",3,"disabled","click"],["alert_type","error"]],template:function(P,Z){1&P&&(m.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h2"),m._uU(4),m.ALo(5,"translate"),m.qZA(),m.YNc(6,Oe,3,3,"perun-web-apps-alert",3),m.TgZ(7,"mat-form-field",4)(8,"mat-label"),m._uU(9),m.ALo(10,"translate"),m.qZA(),m.TgZ(11,"input",5),m.NdJ("keyup.enter",function(){return Z.startAuth()}),m.qZA(),m.TgZ(12,"mat-error"),m._uU(13),m.ALo(14,"translate"),m.qZA()(),m.TgZ(15,"mat-form-field",4)(16,"mat-label"),m._uU(17),m.ALo(18,"translate"),m.qZA(),m.TgZ(19,"input",6),m.NdJ("keyup.enter",function(){return Z.startAuth()}),m.qZA(),m.TgZ(20,"mat-error"),m._uU(21),m.ALo(22,"translate"),m.qZA()(),m.TgZ(23,"button",7),m.NdJ("click",function(){return Z.startAuth()}),m._uU(24),m.ALo(25,"translate"),m.TgZ(26,"mat-icon"),m._uU(27," login "),m.qZA()()()()()),2&P&&(m.xp6(4),m.Oqu(m.lcZ(5,11,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.LABEL")),m.xp6(2),m.Q6J("ngIf",Z.wrongUsernameOrPassword),m.xp6(3),m.Oqu(m.lcZ(10,13,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME")),m.xp6(2),m.Q6J("formControl",Z.usernameCtrl),m.xp6(2),m.hij(" ",m.lcZ(14,15,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME_ERROR")," "),m.xp6(4),m.Oqu(m.lcZ(18,17,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD")),m.xp6(2),m.Q6J("formControl",Z.passwordCtrl)("type","password"),m.xp6(2),m.hij(" ",m.lcZ(22,19,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD_ERROR")," "),m.xp6(2),m.Q6J("disabled",Z.usernameCtrl.invalid||Z.passwordCtrl.invalid),m.xp6(1),m.hij(" ",m.lcZ(25,21,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.SIGN_IN")," "))},dependencies:[F.O5,q.lW,$.Hw,t.TO,t.KE,t.hX,z.Fj,z.JJ,z.Q7,z.oH,n.Nt,N.w,v.X$],styles:[".top-padding[_ngcontent-%COMP%]{padding:120px 0}mat-form-field.mat-form-field[_ngcontent-%COMP%]{font-size:14px;width:250px}.black[_ngcontent-%COMP%]{background-color:#000;color:#fff}"]}),te})()},{path:"organizations",loadChildren:()=>Promise.all([u.e(283),u.e(462),u.e(907),u.e(525)]).then(u.bind(u,14525)).then(te=>te.VosModule)},{path:"admin",loadChildren:()=>Promise.all([u.e(283),u.e(338),u.e(462),u.e(745)]).then(u.bind(u,82745)).then(te=>te.AdminModule)},{path:"facilities",loadChildren:()=>Promise.all([u.e(283),u.e(338),u.e(462),u.e(745),u.e(907),u.e(775)]).then(u.bind(u,27775)).then(te=>te.FacilitiesModule)},{path:"myProfile",loadChildren:()=>Promise.all([u.e(283),u.e(338)]).then(u.bind(u,38338)).then(te=>te.UsersModule)},{path:"home",component:_},{path:"notAuthorized",component:i.y9},{path:"**",component:a}];let Le=(()=>{class te{}return te.\u0275fac=function(P){return new(P||te)},te.\u0275mod=m.oAB({type:te}),te.\u0275inj=m.cJS({imports:[A.Bz.forRoot(je,{preloadingStrategy:A.GZ,scrollPositionRestoration:"enabled",relativeLinkResolution:"legacy"}),A.Bz]}),te})();var ie=u(72077),Ae=u(14264);class st{constructor(O,P="/assets/i18n/",Z=".json"){this.http=O,this.prefix=P,this.suffix=Z}getTranslation(O){return this.http.get(`${this.prefix}${O}${this.suffix}`)}}var ze=u(80529),_t=u(37340);function qe(te){return new m.vHH(3e3,!1)}function Qi(){return typeof window<"u"&&typeof window.document<"u"}function ji(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function vi(te){switch(te.length){case 0:return new _t.ZN;case 1:return te[0];default:return new _t.ZE(te)}}function wi(te,O,P,Z,He=new Map,ut=new Map){const It=[],Rt=[];let jt=-1,Xt=null;if(Z.forEach(cn=>{const En=cn.get("offset"),Vn=En==jt,Zn=Vn&&Xt||new Map;cn.forEach((On,kn)=>{let pi=kn,_i=On;if("offset"!==kn)switch(pi=O.normalizePropertyName(pi,It),_i){case _t.k1:_i=He.get(kn);break;case _t.l3:_i=ut.get(kn);break;default:_i=O.normalizeStyleValue(kn,pi,_i,It)}Zn.set(pi,_i)}),Vn||Rt.push(Zn),Xt=Zn,jt=En}),It.length)throw function Pt(te){return new m.vHH(3502,!1)}();return Rt}function cr(te,O,P,Z){switch(O){case"start":te.onStart(()=>Z(P&&Or(P,"start",te)));break;case"done":te.onDone(()=>Z(P&&Or(P,"done",te)));break;case"destroy":te.onDestroy(()=>Z(P&&Or(P,"destroy",te)))}}function Or(te,O,P){const ut=dr(te.element,te.triggerName,te.fromState,te.toState,O||te.phaseName,P.totalTime??te.totalTime,!!P.disabled),It=te._data;return null!=It&&(ut._data=It),ut}function dr(te,O,P,Z,He="",ut=0,It){return{element:te,triggerName:O,fromState:P,toState:Z,phaseName:He,totalTime:ut,disabled:!!It}}function bi(te,O,P){let Z=te.get(O);return Z||te.set(O,Z=P),Z}function ur(te){const O=te.indexOf(":");return[te.substring(1,O),te.slice(O+1)]}let hr=(te,O)=>!1,zr=(te,O,P)=>[],Ei=null;function yr(te){const O=te.parentNode||te.host;return O===Ei?null:O}(ji()||typeof Element<"u")&&(Qi()?(Ei=(()=>document.documentElement)(),hr=(te,O)=>{for(;O;){if(O===te)return!0;O=yr(O)}return!1}):hr=(te,O)=>te.contains(O),zr=(te,O,P)=>{if(P)return Array.from(te.querySelectorAll(O));const Z=te.querySelector(O);return Z?[Z]:[]});let ht=null,Vt=!1;const Fn=hr,Yn=zr;let Pi=(()=>{class te{validateStyleProperty(P){return function Zt(te){ht||(ht=function Dn(){return typeof document<"u"?document.body:null}()||{},Vt=!!ht.style&&"WebkitAppearance"in ht.style);let O=!0;return ht.style&&!function nn(te){return"ebkit"==te.substring(1,6)}(te)&&(O=te in ht.style,!O&&Vt&&(O="Webkit"+te.charAt(0).toUpperCase()+te.slice(1)in ht.style)),O}(P)}matchesElement(P,Z){return!1}containsElement(P,Z){return Fn(P,Z)}getParentElement(P){return yr(P)}query(P,Z,He){return Yn(P,Z,He)}computeStyle(P,Z,He){return He||""}animate(P,Z,He,ut,It,Rt=[],jt){return new _t.ZN(He,ut)}}return te.\u0275fac=function(P){return new(P||te)},te.\u0275prov=m.Yz7({token:te,factory:te.\u0275fac}),te})(),pr=(()=>{class te{}return te.NOOP=new Pi,te})();const wr="ng-enter",Gi="ng-leave",zi="ng-trigger",Hr=".ng-trigger",dt="ng-animating",Ut=".ng-animating";function Je(te){if("number"==typeof te)return te;const O=te.match(/^(-?[\.\d]+)(m?s)/);return!O||O.length<2?0:Et(parseFloat(O[1]),O[2])}function Et(te,O){return"s"===O?1e3*te:te}function zt(te,O,P){return te.hasOwnProperty("duration")?te:function un(te,O,P){let He,ut=0,It="";if("string"==typeof te){const Rt=te.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===Rt)return O.push(qe()),{duration:0,delay:0,easing:""};He=Et(parseFloat(Rt[1]),Rt[2]);const jt=Rt[3];null!=jt&&(ut=Et(parseFloat(jt),Rt[4]));const Xt=Rt[5];Xt&&(It=Xt)}else He=te;if(!P){let Rt=!1,jt=O.length;He<0&&(O.push(function rt(){return new m.vHH(3100,!1)}()),Rt=!0),ut<0&&(O.push(function Mt(){return new m.vHH(3101,!1)}()),Rt=!0),Rt&&O.splice(jt,0,qe())}return{duration:He,delay:ut,easing:It}}(te,O,P)}function gn(te,O={}){return Object.keys(te).forEach(P=>{O[P]=te[P]}),O}function Jn(te){const O=new Map;return Object.keys(te).forEach(P=>{O.set(P,te[P])}),O}function Ii(te,O=new Map,P){if(P)for(let[Z,He]of P)O.set(Z,He);for(let[Z,He]of te)O.set(Z,He);return O}function Wr(te,O,P){return P?O+":"+P+";":""}function Xn(te){let O="";for(let P=0;P{const ut=mt(He);P&&!P.has(He)&&P.set(He,te.style[ut]),te.style[ut]=Z}),ji()&&Xn(te))}function Mr(te,O){te.style&&(O.forEach((P,Z)=>{const He=mt(Z);te.style[He]=""}),ji()&&Xn(te))}function rr(te){return Array.isArray(te)?1==te.length?te[0]:(0,_t.vP)(te):te}const eo=new RegExp("{{\\s*(.+?)\\s*}}","g");function to(te){let O=[];if("string"==typeof te){let P;for(;P=eo.exec(te);)O.push(P[1]);eo.lastIndex=0}return O}function Ki(te,O,P){const Z=te.toString(),He=Z.replace(eo,(ut,It)=>{let Rt=O[It];return null==Rt&&(P.push(function Gt(te){return new m.vHH(3003,!1)}()),Rt=""),Rt.toString()});return He==Z?te:He}function gi(te){const O=[];let P=te.next();for(;!P.done;)O.push(P.value),P=te.next();return O}const Ve=/-+([a-z0-9])/g;function mt(te){return te.replace(Ve,(...O)=>O[1].toUpperCase())}function Fe(te){return te.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function $t(te,O,P){switch(O.type){case 7:return te.visitTrigger(O,P);case 0:return te.visitState(O,P);case 1:return te.visitTransition(O,P);case 2:return te.visitSequence(O,P);case 3:return te.visitGroup(O,P);case 4:return te.visitAnimate(O,P);case 5:return te.visitKeyframes(O,P);case 6:return te.visitStyle(O,P);case 8:return te.visitReference(O,P);case 9:return te.visitAnimateChild(O,P);case 10:return te.visitAnimateRef(O,P);case 11:return te.visitQuery(O,P);case 12:return te.visitStagger(O,P);default:throw function an(te){return new m.vHH(3004,!1)}()}}function Yt(te,O){return window.getComputedStyle(te)[O]}function rn(te,O){const P=[];return"string"==typeof te?te.split(/\s*,\s*/).forEach(Z=>function Nn(te,O,P){if(":"==te[0]){const jt=function qi(te,O){switch(te){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(P,Z)=>parseFloat(Z)>parseFloat(P);case":decrement":return(P,Z)=>parseFloat(Z) *"}}(te,P);if("function"==typeof jt)return void O.push(jt);te=jt}const Z=te.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==Z||Z.length<4)return P.push(function lt(te){return new m.vHH(3015,!1)}()),O;const He=Z[1],ut=Z[2],It=Z[3];O.push(Nr(He,It));"<"==ut[0]&&!("*"==He&&"*"==It)&&O.push(Nr(It,He))}(Z,P,O)):P.push(te),P}const Ri=new Set(["true","1"]),li=new Set(["false","0"]);function Nr(te,O){const P=Ri.has(te)||li.has(te),Z=Ri.has(O)||li.has(O);return(He,ut)=>{let It="*"==te||te==He,Rt="*"==O||O==ut;return!It&&P&&"boolean"==typeof He&&(It=He?Ri.has(te):li.has(te)),!Rt&&Z&&"boolean"==typeof ut&&(Rt=ut?Ri.has(O):li.has(O)),It&&Rt}}const Ge=new RegExp("s*:selfs*,?","g");function Re(te,O,P,Z){return new At(te).build(O,P,Z)}class At{constructor(O){this._driver=O}build(O,P,Z){const He=new di(P);return this._resetContextStyleTimingState(He),$t(this,rr(O),He)}_resetContextStyleTimingState(O){O.currentQuerySelector="",O.collectedStyles=new Map,O.collectedStyles.set("",new Map),O.currentTime=0}visitTrigger(O,P){let Z=P.queryCount=0,He=P.depCount=0;const ut=[],It=[];return"@"==O.name.charAt(0)&&P.errors.push(function Nt(){return new m.vHH(3006,!1)}()),O.definitions.forEach(Rt=>{if(this._resetContextStyleTimingState(P),0==Rt.type){const jt=Rt,Xt=jt.name;Xt.toString().split(/\s*,\s*/).forEach(cn=>{jt.name=cn,ut.push(this.visitState(jt,P))}),jt.name=Xt}else if(1==Rt.type){const jt=this.visitTransition(Rt,P);Z+=jt.queryCount,He+=jt.depCount,It.push(jt)}else P.errors.push(function Ht(){return new m.vHH(3007,!1)}())}),{type:7,name:O.name,states:ut,transitions:It,queryCount:Z,depCount:He,options:null}}visitState(O,P){const Z=this.visitStyle(O.styles,P),He=O.options&&O.options.params||null;if(Z.containsDynamicStyles){const ut=new Set,It=He||{};Z.styles.forEach(Rt=>{Rt instanceof Map&&Rt.forEach(jt=>{to(jt).forEach(Xt=>{It.hasOwnProperty(Xt)||ut.add(Xt)})})}),ut.size&&(gi(ut.values()),P.errors.push(function yt(te,O){return new m.vHH(3008,!1)}()))}return{type:0,name:O.name,style:Z,options:He?{params:He}:null}}visitTransition(O,P){P.queryCount=0,P.depCount=0;const Z=$t(this,rr(O.animation),P);return{type:1,matchers:rn(O.expr,P.errors),animation:Z,queryCount:P.queryCount,depCount:P.depCount,options:mr(O.options)}}visitSequence(O,P){return{type:2,steps:O.steps.map(Z=>$t(this,Z,P)),options:mr(O.options)}}visitGroup(O,P){const Z=P.currentTime;let He=0;const ut=O.steps.map(It=>{P.currentTime=Z;const Rt=$t(this,It,P);return He=Math.max(He,P.currentTime),Rt});return P.currentTime=He,{type:3,steps:ut,options:mr(O.options)}}visitAnimate(O,P){const Z=function Xi(te,O){if(te.hasOwnProperty("duration"))return te;if("number"==typeof te)return Yr(zt(te,O).duration,0,"");const P=te;if(P.split(/\s+/).some(ut=>"{"==ut.charAt(0)&&"{"==ut.charAt(1))){const ut=Yr(0,0,"");return ut.dynamic=!0,ut.strValue=P,ut}const He=zt(P,O);return Yr(He.duration,He.delay,He.easing)}(O.timings,P.errors);P.currentAnimateTimings=Z;let He,ut=O.styles?O.styles:(0,_t.oB)({});if(5==ut.type)He=this.visitKeyframes(ut,P);else{let It=O.styles,Rt=!1;if(!It){Rt=!0;const Xt={};Z.easing&&(Xt.easing=Z.easing),It=(0,_t.oB)(Xt)}P.currentTime+=Z.duration+Z.delay;const jt=this.visitStyle(It,P);jt.isEmptyStep=Rt,He=jt}return P.currentAnimateTimings=null,{type:4,timings:Z,style:He,options:null}}visitStyle(O,P){const Z=this._makeStyleAst(O,P);return this._validateStyleAst(Z,P),Z}_makeStyleAst(O,P){const Z=[],He=Array.isArray(O.styles)?O.styles:[O.styles];for(let Rt of He)"string"==typeof Rt?Rt===_t.l3?Z.push(Rt):P.errors.push(new m.vHH(3002,!1)):Z.push(Jn(Rt));let ut=!1,It=null;return Z.forEach(Rt=>{if(Rt instanceof Map&&(Rt.has("easing")&&(It=Rt.get("easing"),Rt.delete("easing")),!ut))for(let jt of Rt.values())if(jt.toString().indexOf("{{")>=0){ut=!0;break}}),{type:6,styles:Z,easing:It,offset:O.offset,containsDynamicStyles:ut,options:null}}_validateStyleAst(O,P){const Z=P.currentAnimateTimings;let He=P.currentTime,ut=P.currentTime;Z&&ut>0&&(ut-=Z.duration+Z.delay),O.styles.forEach(It=>{"string"!=typeof It&&It.forEach((Rt,jt)=>{const Xt=P.collectedStyles.get(P.currentQuerySelector),cn=Xt.get(jt);let En=!0;cn&&(ut!=He&&ut>=cn.startTime&&He<=cn.endTime&&(P.errors.push(function Cn(te,O,P,Z,He){return new m.vHH(3010,!1)}()),En=!1),ut=cn.startTime),En&&Xt.set(jt,{startTime:ut,endTime:He}),P.options&&function Vi(te,O,P){const Z=O.params||{},He=to(te);He.length&&He.forEach(ut=>{Z.hasOwnProperty(ut)||P.push(function Qt(te){return new m.vHH(3001,!1)}())})}(Rt,P.options,P.errors)})})}visitKeyframes(O,P){const Z={type:5,styles:[],options:null};if(!P.currentAnimateTimings)return P.errors.push(function Mn(){return new m.vHH(3011,!1)}()),Z;let ut=0;const It=[];let Rt=!1,jt=!1,Xt=0;const cn=O.steps.map(_i=>{const ki=this._makeStyleAst(_i,P);let Ji=null!=ki.offset?ki.offset:function ii(te){if("string"==typeof te)return null;let O=null;if(Array.isArray(te))te.forEach(P=>{if(P instanceof Map&&P.has("offset")){const Z=P;O=parseFloat(Z.get("offset")),Z.delete("offset")}});else if(te instanceof Map&&te.has("offset")){const P=te;O=parseFloat(P.get("offset")),P.delete("offset")}return O}(ki.styles),Li=0;return null!=Ji&&(ut++,Li=ki.offset=Ji),jt=jt||Li<0||Li>1,Rt=Rt||Li0&&ut{const Ji=Vn>0?ki==Zn?1:Vn*ki:It[ki],Li=Ji*pi;P.currentTime=On+kn.delay+Li,kn.duration=Li,this._validateStyleAst(_i,P),_i.offset=Ji,Z.styles.push(_i)}),Z}visitReference(O,P){return{type:8,animation:$t(this,rr(O.animation),P),options:mr(O.options)}}visitAnimateChild(O,P){return P.depCount++,{type:9,options:mr(O.options)}}visitAnimateRef(O,P){return{type:10,animation:this.visitReference(O.animation,P),options:mr(O.options)}}visitQuery(O,P){const Z=P.currentQuerySelector,He=O.options||{};P.queryCount++,P.currentQuery=O;const[ut,It]=function qt(te){const O=!!te.split(/\s*,\s*/).find(P=>":self"==P);return O&&(te=te.replace(Ge,"")),te=te.replace(/@\*/g,Hr).replace(/@\w+/g,P=>Hr+"-"+P.slice(1)).replace(/:animating/g,Ut),[te,O]}(O.selector);P.currentQuerySelector=Z.length?Z+" "+ut:ut,bi(P.collectedStyles,P.currentQuerySelector,new Map);const Rt=$t(this,rr(O.animation),P);return P.currentQuery=null,P.currentQuerySelector=Z,{type:11,selector:ut,limit:He.limit||0,optional:!!He.optional,includeSelf:It,animation:Rt,originalSelector:O.selector,options:mr(O.options)}}visitStagger(O,P){P.currentQuery||P.errors.push(function Ot(){return new m.vHH(3013,!1)}());const Z="full"===O.timings?{duration:0,delay:0,easing:"full"}:zt(O.timings,P.errors,!0);return{type:12,animation:$t(this,rr(O.animation),P),timings:Z,options:null}}}class di{constructor(O){this.errors=O,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function mr(te){return te?(te=gn(te)).params&&(te.params=function An(te){return te?gn(te):null}(te.params)):te={},te}function Yr(te,O,P){return{duration:te,delay:O,easing:P}}function Sr(te,O,P,Z,He,ut,It=null,Rt=!1){return{type:1,element:te,keyframes:O,preStyleProps:P,postStyleProps:Z,duration:He,delay:ut,totalTime:He+ut,easing:It,subTimeline:Rt}}class na{constructor(){this._map=new Map}get(O){return this._map.get(O)||[]}append(O,P){let Z=this._map.get(O);Z||this._map.set(O,Z=[]),Z.push(...P)}has(O){return this._map.has(O)}clear(){this._map.clear()}}const $s=new RegExp(":enter","g"),ia=new RegExp(":leave","g");function ra(te,O,P,Z,He,ut=new Map,It=new Map,Rt,jt,Xt=[]){return(new Lo).buildKeyframes(te,O,P,Z,He,ut,It,Rt,jt,Xt)}class Lo{buildKeyframes(O,P,Z,He,ut,It,Rt,jt,Xt,cn=[]){Xt=Xt||new na;const En=new _o(O,P,Xt,He,ut,cn,[]);En.options=jt;const Vn=jt.delay?Je(jt.delay):0;En.currentTimeline.delayNextStep(Vn),En.currentTimeline.setStyles([It],null,En.errors,jt),$t(this,Z,En);const Zn=En.timelines.filter(On=>On.containsAnimation());if(Zn.length&&Rt.size){let On;for(let kn=Zn.length-1;kn>=0;kn--){const pi=Zn[kn];if(pi.element===P){On=pi;break}}On&&!On.allowOnlyTimelineStyles()&&On.setStyles([Rt],null,En.errors,jt)}return Zn.length?Zn.map(On=>On.buildKeyframes()):[Sr(P,[],[],[],0,Vn,"",!1)]}visitTrigger(O,P){}visitState(O,P){}visitTransition(O,P){}visitAnimateChild(O,P){const Z=P.subInstructions.get(P.element);if(Z){const He=P.createSubContext(O.options),ut=P.currentTimeline.currentTime,It=this._visitSubInstructions(Z,He,He.options);ut!=It&&P.transformIntoNewTimeline(It)}P.previousNode=O}visitAnimateRef(O,P){const Z=P.createSubContext(O.options);Z.transformIntoNewTimeline(),this.visitReference(O.animation,Z),P.transformIntoNewTimeline(Z.currentTimeline.currentTime),P.previousNode=O}_visitSubInstructions(O,P,Z){let ut=P.currentTimeline.currentTime;const It=null!=Z.duration?Je(Z.duration):null,Rt=null!=Z.delay?Je(Z.delay):null;return 0!==It&&O.forEach(jt=>{const Xt=P.appendInstructionToTimeline(jt,It,Rt);ut=Math.max(ut,Xt.duration+Xt.delay)}),ut}visitReference(O,P){P.updateOptions(O.options,!0),$t(this,O.animation,P),P.previousNode=O}visitSequence(O,P){const Z=P.subContextCount;let He=P;const ut=O.options;if(ut&&(ut.params||ut.delay)&&(He=P.createSubContext(ut),He.transformIntoNewTimeline(),null!=ut.delay)){6==He.previousNode.type&&(He.currentTimeline.snapshotCurrentStyles(),He.previousNode=Bo);const It=Je(ut.delay);He.delayNextStep(It)}O.steps.length&&(O.steps.forEach(It=>$t(this,It,He)),He.currentTimeline.applyStylesToKeyframe(),He.subContextCount>Z&&He.transformIntoNewTimeline()),P.previousNode=O}visitGroup(O,P){const Z=[];let He=P.currentTimeline.currentTime;const ut=O.options&&O.options.delay?Je(O.options.delay):0;O.steps.forEach(It=>{const Rt=P.createSubContext(O.options);ut&&Rt.delayNextStep(ut),$t(this,It,Rt),He=Math.max(He,Rt.currentTimeline.currentTime),Z.push(Rt.currentTimeline)}),Z.forEach(It=>P.currentTimeline.mergeTimelineCollectedStyles(It)),P.transformIntoNewTimeline(He),P.previousNode=O}_visitTiming(O,P){if(O.dynamic){const Z=O.strValue;return zt(P.params?Ki(Z,P.params,P.errors):Z,P.errors)}return{duration:O.duration,delay:O.delay,easing:O.easing}}visitAnimate(O,P){const Z=P.currentAnimateTimings=this._visitTiming(O.timings,P),He=P.currentTimeline;Z.delay&&(P.incrementTime(Z.delay),He.snapshotCurrentStyles());const ut=O.style;5==ut.type?this.visitKeyframes(ut,P):(P.incrementTime(Z.duration),this.visitStyle(ut,P),He.applyStylesToKeyframe()),P.currentAnimateTimings=null,P.previousNode=O}visitStyle(O,P){const Z=P.currentTimeline,He=P.currentAnimateTimings;!He&&Z.hasCurrentStyleProperties()&&Z.forwardFrame();const ut=He&&He.easing||O.easing;O.isEmptyStep?Z.applyEmptyStep(ut):Z.setStyles(O.styles,ut,P.errors,P.options),P.previousNode=O}visitKeyframes(O,P){const Z=P.currentAnimateTimings,He=P.currentTimeline.duration,ut=Z.duration,Rt=P.createSubContext().currentTimeline;Rt.easing=Z.easing,O.styles.forEach(jt=>{Rt.forwardTime((jt.offset||0)*ut),Rt.setStyles(jt.styles,jt.easing,P.errors,P.options),Rt.applyStylesToKeyframe()}),P.currentTimeline.mergeTimelineCollectedStyles(Rt),P.transformIntoNewTimeline(He+ut),P.previousNode=O}visitQuery(O,P){const Z=P.currentTimeline.currentTime,He=O.options||{},ut=He.delay?Je(He.delay):0;ut&&(6===P.previousNode.type||0==Z&&P.currentTimeline.hasCurrentStyleProperties())&&(P.currentTimeline.snapshotCurrentStyles(),P.previousNode=Bo);let It=Z;const Rt=P.invokeQuery(O.selector,O.originalSelector,O.limit,O.includeSelf,!!He.optional,P.errors);P.currentQueryTotal=Rt.length;let jt=null;Rt.forEach((Xt,cn)=>{P.currentQueryIndex=cn;const En=P.createSubContext(O.options,Xt);ut&&En.delayNextStep(ut),Xt===P.element&&(jt=En.currentTimeline),$t(this,O.animation,En),En.currentTimeline.applyStylesToKeyframe(),It=Math.max(It,En.currentTimeline.currentTime)}),P.currentQueryIndex=0,P.currentQueryTotal=0,P.transformIntoNewTimeline(It),jt&&(P.currentTimeline.mergeTimelineCollectedStyles(jt),P.currentTimeline.snapshotCurrentStyles()),P.previousNode=O}visitStagger(O,P){const Z=P.parentContext,He=P.currentTimeline,ut=O.timings,It=Math.abs(ut.duration),Rt=It*(P.currentQueryTotal-1);let jt=It*P.currentQueryIndex;switch(ut.duration<0?"reverse":ut.easing){case"reverse":jt=Rt-jt;break;case"full":jt=Z.currentStaggerTime}const cn=P.currentTimeline;jt&&cn.delayNextStep(jt);const En=cn.currentTime;$t(this,O.animation,P),P.previousNode=O,Z.currentStaggerTime=He.currentTime-En+(He.startTime-Z.currentTimeline.startTime)}}const Bo={};class _o{constructor(O,P,Z,He,ut,It,Rt,jt){this._driver=O,this.element=P,this.subInstructions=Z,this._enterClassName=He,this._leaveClassName=ut,this.errors=It,this.timelines=Rt,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Bo,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=jt||new kr(this._driver,P,0),Rt.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(O,P){if(!O)return;const Z=O;let He=this.options;null!=Z.duration&&(He.duration=Je(Z.duration)),null!=Z.delay&&(He.delay=Je(Z.delay));const ut=Z.params;if(ut){let It=He.params;It||(It=this.options.params={}),Object.keys(ut).forEach(Rt=>{(!P||!It.hasOwnProperty(Rt))&&(It[Rt]=Ki(ut[Rt],It,this.errors))})}}_copyOptions(){const O={};if(this.options){const P=this.options.params;if(P){const Z=O.params={};Object.keys(P).forEach(He=>{Z[He]=P[He]})}}return O}createSubContext(O=null,P,Z){const He=P||this.element,ut=new _o(this._driver,He,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(He,Z||0));return ut.previousNode=this.previousNode,ut.currentAnimateTimings=this.currentAnimateTimings,ut.options=this._copyOptions(),ut.updateOptions(O),ut.currentQueryIndex=this.currentQueryIndex,ut.currentQueryTotal=this.currentQueryTotal,ut.parentContext=this,this.subContextCount++,ut}transformIntoNewTimeline(O){return this.previousNode=Bo,this.currentTimeline=this.currentTimeline.fork(this.element,O),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(O,P,Z){const He={duration:P??O.duration,delay:this.currentTimeline.currentTime+(Z??0)+O.delay,easing:""},ut=new Xa(this._driver,O.element,O.keyframes,O.preStyleProps,O.postStyleProps,He,O.stretchStartingKeyframe);return this.timelines.push(ut),He}incrementTime(O){this.currentTimeline.forwardTime(this.currentTimeline.duration+O)}delayNextStep(O){O>0&&this.currentTimeline.delayNextStep(O)}invokeQuery(O,P,Z,He,ut,It){let Rt=[];if(He&&Rt.push(this.element),O.length>0){O=(O=O.replace($s,"."+this._enterClassName)).replace(ia,"."+this._leaveClassName);let Xt=this._driver.query(this.element,O,1!=Z);0!==Z&&(Xt=Z<0?Xt.slice(Xt.length+Z,Xt.length):Xt.slice(0,Z)),Rt.push(...Xt)}return!ut&&0==Rt.length&&It.push(function pt(te){return new m.vHH(3014,!1)}()),Rt}}class kr{constructor(O,P,Z,He){this._driver=O,this.element=P,this.startTime=Z,this._elementTimelineStylesLookup=He,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(P),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(P,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(O){const P=1===this._keyframes.size&&this._pendingStyles.size;this.duration||P?(this.forwardTime(this.currentTime+O),P&&this.snapshotCurrentStyles()):this.startTime+=O}fork(O,P){return this.applyStylesToKeyframe(),new kr(this._driver,O,P||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(O){this.applyStylesToKeyframe(),this.duration=O,this._loadKeyframe()}_updateStyle(O,P){this._localTimelineStyles.set(O,P),this._globalTimelineStyles.set(O,P),this._styleSummary.set(O,{time:this.currentTime,value:P})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(O){O&&this._previousKeyframe.set("easing",O);for(let[P,Z]of this._globalTimelineStyles)this._backFill.set(P,Z||_t.l3),this._currentKeyframe.set(P,_t.l3);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(O,P,Z,He){P&&this._previousKeyframe.set("easing",P);const ut=He&&He.params||{},It=function es(te,O){const P=new Map;let Z;return te.forEach(He=>{if("*"===He){Z=Z||O.keys();for(let ut of Z)P.set(ut,_t.l3)}else Ii(He,P)}),P}(O,this._globalTimelineStyles);for(let[jt,Xt]of It){const cn=Ki(Xt,ut,Z);var Rt;this._pendingStyles.set(jt,cn),this._localTimelineStyles.has(jt)||this._backFill.set(jt,null!==(Rt=this._globalTimelineStyles.get(jt))&&void 0!==Rt?Rt:_t.l3),this._updateStyle(jt,cn)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((O,P)=>{this._currentKeyframe.set(P,O)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((O,P)=>{this._currentKeyframe.has(P)||this._currentKeyframe.set(P,O)}))}snapshotCurrentStyles(){for(let[O,P]of this._localTimelineStyles)this._pendingStyles.set(O,P),this._updateStyle(O,P)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const O=[];for(let P in this._currentKeyframe)O.push(P);return O}mergeTimelineCollectedStyles(O){O._styleSummary.forEach((P,Z)=>{const He=this._styleSummary.get(Z);(!He||P.time>He.time)&&this._updateStyle(Z,P.value)})}buildKeyframes(){this.applyStylesToKeyframe();const O=new Set,P=new Set,Z=1===this._keyframes.size&&0===this.duration;let He=[];this._keyframes.forEach((Rt,jt)=>{const Xt=Ii(Rt,new Map,this._backFill);Xt.forEach((cn,En)=>{cn===_t.k1?O.add(En):cn===_t.l3&&P.add(En)}),Z||Xt.set("offset",jt/this.duration),He.push(Xt)});const ut=O.size?gi(O.values()):[],It=P.size?gi(P.values()):[];if(Z){const Rt=He[0],jt=new Map(Rt);Rt.set("offset",0),jt.set("offset",1),He=[Rt,jt]}return Sr(this.element,He,ut,It,this.duration,this.startTime,this.easing,!1)}}class Xa extends kr{constructor(O,P,Z,He,ut,It,Rt=!1){super(O,P,It.delay),this.keyframes=Z,this.preStyleProps=He,this.postStyleProps=ut,this._stretchStartingKeyframe=Rt,this.timings={duration:It.duration,delay:It.delay,easing:It.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let O=this.keyframes,{delay:P,duration:Z,easing:He}=this.timings;if(this._stretchStartingKeyframe&&P){const ut=[],It=Z+P,Rt=P/It,jt=Ii(O[0]);jt.set("offset",0),ut.push(jt);const Xt=Ii(O[0]);Xt.set("offset",ya(Rt)),ut.push(Xt);const cn=O.length-1;for(let En=1;En<=cn;En++){let Vn=Ii(O[En]);const Zn=Vn.get("offset");Vn.set("offset",ya((P+Zn*Z)/It)),ut.push(Vn)}Z=It,P=0,He="",O=ut}return Sr(this.element,O,this.preStyleProps,this.postStyleProps,Z,P,He,!0)}}function ya(te,O=3){const P=Math.pow(10,O-1);return Math.round(te*P)/P}class Jr{}const ts=new Set(["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"]);class Oi extends Jr{normalizePropertyName(O,P){return mt(O)}normalizeStyleValue(O,P,Z,He){let ut="";const It=Z.toString().trim();if(ts.has(P)&&0!==Z&&"0"!==Z)if("number"==typeof Z)ut="px";else{const Rt=Z.match(/^[+-]?[\d\.]+([a-z]*)$/);Rt&&0==Rt[1].length&&He.push(function hn(te,O){return new m.vHH(3005,!1)}())}return It+ut}}function gr(te,O,P,Z,He,ut,It,Rt,jt,Xt,cn,En,Vn){return{type:0,element:te,triggerName:O,isRemovalTransition:He,fromState:P,fromStyles:ut,toState:Z,toStyles:It,timelines:Rt,queriedElements:jt,preStyleProps:Xt,postStyleProps:cn,totalTime:En,errors:Vn}}const ui={};class no{constructor(O,P,Z){this._triggerName=O,this.ast=P,this._stateStyles=Z}match(O,P,Z,He){return function ns(te,O,P,Z,He){return te.some(ut=>ut(O,P,Z,He))}(this.ast.matchers,O,P,Z,He)}buildStyles(O,P,Z){let He=this._stateStyles.get("*");return void 0!==O&&(He=this._stateStyles.get(O?.toString())||He),He?He.buildStyles(P,Z):new Map}build(O,P,Z,He,ut,It,Rt,jt,Xt,cn){var En;const Vn=[],Zn=this.ast.options&&this.ast.options.params||ui,kn=this.buildStyles(Z,Rt&&Rt.params||ui,Vn),pi=jt&&jt.params||ui,_i=this.buildStyles(He,pi,Vn),ki=new Set,Ji=new Map,Li=new Map,ga="void"===He,Qo={params:Xs(pi,Zn),delay:null===(En=this.ast.options)||void 0===En?void 0:En.delay},sr=cn?[]:ra(O,P,this.ast.animation,ut,It,kn,_i,Qo,Xt,Vn);let Br=0;if(sr.forEach(Ur=>{Br=Math.max(Ur.duration+Ur.delay,Br)}),Vn.length)return gr(P,this._triggerName,Z,He,ga,kn,_i,[],[],Ji,Li,Br,Vn);sr.forEach(Ur=>{const ja=Ur.element,_a=bi(Ji,ja,new Set);Ur.preStyleProps.forEach(Ko=>_a.add(Ko));const So=bi(Li,ja,new Set);Ur.postStyleProps.forEach(Ko=>So.add(Ko)),ja!==P&&ki.add(ja)});const Cs=gi(ki.values());return gr(P,this._triggerName,Z,He,ga,kn,_i,sr,Cs,Ji,Li,Br)}}function Xs(te,O){const P=gn(O);for(const Z in te)te.hasOwnProperty(Z)&&null!=te[Z]&&(P[Z]=te[Z]);return P}class el{constructor(O,P,Z){this.styles=O,this.defaultParams=P,this.normalizer=Z}buildStyles(O,P){const Z=new Map,He=gn(this.defaultParams);return Object.keys(O).forEach(ut=>{const It=O[ut];null!==It&&(He[ut]=It)}),this.styles.styles.forEach(ut=>{"string"!=typeof ut&&ut.forEach((It,Rt)=>{It&&(It=Ki(It,He,P));const jt=this.normalizer.normalizePropertyName(Rt,P);It=this.normalizer.normalizeStyleValue(Rt,jt,It,P),Z.set(jt,It)})}),Z}}class oa{constructor(O,P,Z){this.name=O,this.ast=P,this._normalizer=Z,this.transitionFactories=[],this.states=new Map,P.states.forEach(He=>{this.states.set(He.name,new el(He.style,He.options&&He.options.params||{},Z))}),No(this.states,"true","1"),No(this.states,"false","0"),P.transitions.forEach(He=>{this.transitionFactories.push(new no(O,He,this.states))}),this.fallbackTransition=function io(te,O,P){return new no(te,{type:1,animation:{type:2,steps:[],options:null},matchers:[(It,Rt)=>!0],options:null,queryCount:0,depCount:0},O)}(O,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(O,P,Z,He){return this.transitionFactories.find(It=>It.match(O,P,Z,He))||null}matchStyles(O,P,Z){return this.fallbackTransition.buildStyles(O,P,Z)}}function No(te,O,P){te.has(O)?te.has(P)||te.set(P,te.get(O)):te.has(P)&&te.set(O,te.get(P))}const wa=new na;class is{constructor(O,P,Z){this.bodyNode=O,this._driver=P,this._normalizer=Z,this._animations=new Map,this._playersById=new Map,this.players=[]}register(O,P){const Z=[],ut=Re(this._driver,P,Z,[]);if(Z.length)throw function en(te){return new m.vHH(3503,!1)}();this._animations.set(O,ut)}_buildPlayer(O,P,Z){const He=O.element,ut=wi(0,this._normalizer,0,O.keyframes,P,Z);return this._driver.animate(He,ut,O.duration,O.delay,O.easing,[],!0)}create(O,P,Z={}){const He=[],ut=this._animations.get(O);let It;const Rt=new Map;if(ut?(It=ra(this._driver,P,ut,wr,Gi,new Map,new Map,Z,wa,He),It.forEach(cn=>{const En=bi(Rt,cn.element,new Map);cn.postStyleProps.forEach(Vn=>En.set(Vn,null))})):(He.push(function Tn(){return new m.vHH(3300,!1)}()),It=[]),He.length)throw function Gn(te){return new m.vHH(3504,!1)}();Rt.forEach((cn,En)=>{cn.forEach((Vn,Zn)=>{cn.set(Zn,this._driver.computeStyle(En,Zn,_t.l3))})});const Xt=vi(It.map(cn=>{const En=Rt.get(cn.element);return this._buildPlayer(cn,new Map,En)}));return this._playersById.set(O,Xt),Xt.onDestroy(()=>this.destroy(O)),this.players.push(Xt),Xt}destroy(O){const P=this._getPlayer(O);P.destroy(),this._playersById.delete(O);const Z=this.players.indexOf(P);Z>=0&&this.players.splice(Z,1)}_getPlayer(O){const P=this._playersById.get(O);if(!P)throw function Ln(te){return new m.vHH(3301,!1)}();return P}listen(O,P,Z,He){const ut=dr(P,"","","");return cr(this._getPlayer(O),Z,ut,He),()=>{}}command(O,P,Z,He){if("register"==Z)return void this.register(O,He[0]);if("create"==Z)return void this.create(O,P,He[0]||{});const ut=this._getPlayer(O);switch(Z){case"play":ut.play();break;case"pause":ut.pause();break;case"reset":ut.reset();break;case"restart":ut.restart();break;case"finish":ut.finish();break;case"init":ut.init();break;case"setPosition":ut.setPosition(parseFloat(He[0]));break;case"destroy":this.destroy(O)}}}const rs="ng-animate-queued",ro="ng-animate-disabled",aa=[],Ma={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},as={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},_r="__ng_removed";class Sa{constructor(O,P=""){this.namespaceId=P;const Z=O&&O.hasOwnProperty("value");if(this.value=function bo(te){return te??null}(Z?O.value:O),Z){const ut=gn(O);delete ut.value,this.options=ut}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(O){const P=O.params;if(P){const Z=this.options.params;Object.keys(P).forEach(He=>{null==Z[He]&&(Z[He]=P[He])})}}}const Qr="void",Ao=new Sa(Qr);class ss{constructor(O,P,Z){this.id=O,this.hostElement=P,this._engine=Z,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+O,or(P,this._hostClassName)}listen(O,P,Z,He){if(!this._triggers.has(P))throw function qn(te,O){return new m.vHH(3302,!1)}();if(null==Z||0==Z.length)throw function fi(te){return new m.vHH(3303,!1)}();if(!function Kr(te){return"start"==te||"done"==te}(Z))throw function ci(te,O){return new m.vHH(3400,!1)}();const ut=bi(this._elementListeners,O,[]),It={name:P,phase:Z,callback:He};ut.push(It);const Rt=bi(this._engine.statesByElement,O,new Map);return Rt.has(P)||(or(O,zi),or(O,zi+"-"+P),Rt.set(P,Ao)),()=>{this._engine.afterFlush(()=>{const jt=ut.indexOf(It);jt>=0&&ut.splice(jt,1),this._triggers.has(P)||Rt.delete(P)})}}register(O,P){return!this._triggers.has(O)&&(this._triggers.set(O,P),!0)}_getTrigger(O){const P=this._triggers.get(O);if(!P)throw function Qn(te){return new m.vHH(3401,!1)}();return P}trigger(O,P,Z,He=!0){const ut=this._getTrigger(P),It=new la(this.id,P,O);let Rt=this._engine.statesByElement.get(O);Rt||(or(O,zi),or(O,zi+"-"+P),this._engine.statesByElement.set(O,Rt=new Map));let jt=Rt.get(P);const Xt=new Sa(Z,this.id);if(!(Z&&Z.hasOwnProperty("value"))&&jt&&Xt.absorbOptions(jt.options),Rt.set(P,Xt),jt||(jt=Ao),Xt.value!==Qr&&jt.value===Xt.value){if(!function ao(te,O){const P=Object.keys(te),Z=Object.keys(O);if(P.length!=Z.length)return!1;for(let He=0;He{Mr(O,pi),ir(O,_i)})}return}const Vn=bi(this._engine.playersByElement,O,[]);Vn.forEach(kn=>{kn.namespaceId==this.id&&kn.triggerName==P&&kn.queued&&kn.destroy()});let Zn=ut.matchTransition(jt.value,Xt.value,O,Xt.params),On=!1;if(!Zn){if(!He)return;Zn=ut.fallbackTransition,On=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:O,triggerName:P,transition:Zn,fromState:jt,toState:Xt,player:It,isFallbackTransition:On}),On||(or(O,rs),It.onStart(()=>{oo(O,rs)})),It.onDone(()=>{let kn=this.players.indexOf(It);kn>=0&&this.players.splice(kn,1);const pi=this._engine.playersByElement.get(O);if(pi){let _i=pi.indexOf(It);_i>=0&&pi.splice(_i,1)}}),this.players.push(It),Vn.push(It),It}deregister(O){this._triggers.delete(O),this._engine.statesByElement.forEach(P=>P.delete(O)),this._elementListeners.forEach((P,Z)=>{this._elementListeners.set(Z,P.filter(He=>He.name!=O))})}clearElementCache(O){this._engine.statesByElement.delete(O),this._elementListeners.delete(O);const P=this._engine.playersByElement.get(O);P&&(P.forEach(Z=>Z.destroy()),this._engine.playersByElement.delete(O))}_signalRemovalForInnerTriggers(O,P){const Z=this._engine.driver.query(O,Hr,!0);Z.forEach(He=>{if(He[_r])return;const ut=this._engine.fetchNamespacesByElement(He);ut.size?ut.forEach(It=>It.triggerLeaveAnimation(He,P,!1,!0)):this.clearElementCache(He)}),this._engine.afterFlushAnimationsDone(()=>Z.forEach(He=>this.clearElementCache(He)))}triggerLeaveAnimation(O,P,Z,He){const ut=this._engine.statesByElement.get(O),It=new Map;if(ut){const Rt=[];if(ut.forEach((jt,Xt)=>{if(It.set(Xt,jt.value),this._triggers.has(Xt)){const cn=this.trigger(O,Xt,Qr,He);cn&&Rt.push(cn)}}),Rt.length)return this._engine.markElementAsRemoved(this.id,O,!0,P,It),Z&&vi(Rt).onDone(()=>this._engine.processLeaveNode(O)),!0}return!1}prepareLeaveAnimationListeners(O){const P=this._elementListeners.get(O),Z=this._engine.statesByElement.get(O);if(P&&Z){const He=new Set;P.forEach(ut=>{const It=ut.name;if(He.has(It))return;He.add(It);const jt=this._triggers.get(It).fallbackTransition,Xt=Z.get(It)||Ao,cn=new Sa(Qr),En=new la(this.id,It,O);this._engine.totalQueuedPlayers++,this._queue.push({element:O,triggerName:It,transition:jt,fromState:Xt,toState:cn,player:En,isFallbackTransition:!0})})}}removeNode(O,P){const Z=this._engine;if(O.childElementCount&&this._signalRemovalForInnerTriggers(O,P),this.triggerLeaveAnimation(O,P,!0))return;let He=!1;if(Z.totalAnimations){const ut=Z.players.length?Z.playersByQueriedElement.get(O):[];if(ut&&ut.length)He=!0;else{let It=O;for(;It=It.parentNode;)if(Z.statesByElement.get(It)){He=!0;break}}}if(this.prepareLeaveAnimationListeners(O),He)Z.markElementAsRemoved(this.id,O,!1,P);else{const ut=O[_r];(!ut||ut===Ma)&&(Z.afterFlush(()=>this.clearElementCache(O)),Z.destroyInnerAnimations(O),Z._onRemovalComplete(O,P))}}insertNode(O,P){or(O,this._hostClassName)}drainQueuedTransitions(O){const P=[];return this._queue.forEach(Z=>{const He=Z.player;if(He.destroyed)return;const ut=Z.element,It=this._elementListeners.get(ut);It&&It.forEach(Rt=>{if(Rt.name==Z.triggerName){const jt=dr(ut,Z.triggerName,Z.fromState.value,Z.toState.value);jt._data=O,cr(Z.player,Rt.phase,jt,Rt.callback)}}),He.markedForDestroy?this._engine.afterFlush(()=>{He.destroy()}):P.push(Z)}),this._queue=[],P.sort((Z,He)=>{const ut=Z.transition.ast.depCount,It=He.transition.ast.depCount;return 0==ut||0==It?ut-It:this._engine.driver.containsElement(Z.element,He.element)?1:-1})}destroy(O){this.players.forEach(P=>P.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,O)}elementContainsData(O){let P=!1;return this._elementListeners.has(O)&&(P=!0),P=!!this._queue.find(Z=>Z.element===O)||P,P}}class sa{constructor(O,P,Z){this.bodyNode=O,this.driver=P,this._normalizer=Z,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=(He,ut)=>{}}_onRemovalComplete(O,P){this.onRemovalComplete(O,P)}get queuedPlayers(){const O=[];return this._namespaceList.forEach(P=>{P.players.forEach(Z=>{Z.queued&&O.push(Z)})}),O}createNamespace(O,P){const Z=new ss(O,P,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,P)?this._balanceNamespaceList(Z,P):(this.newHostElements.set(P,Z),this.collectEnterElement(P)),this._namespaceLookup[O]=Z}_balanceNamespaceList(O,P){const Z=this._namespaceList,He=this.namespacesByHostElement;if(Z.length-1>=0){let It=!1,Rt=this.driver.getParentElement(P);for(;Rt;){const jt=He.get(Rt);if(jt){const Xt=Z.indexOf(jt);Z.splice(Xt+1,0,O),It=!0;break}Rt=this.driver.getParentElement(Rt)}It||Z.unshift(O)}else Z.push(O);return He.set(P,O),O}register(O,P){let Z=this._namespaceLookup[O];return Z||(Z=this.createNamespace(O,P)),Z}registerTrigger(O,P,Z){let He=this._namespaceLookup[O];He&&He.register(P,Z)&&this.totalAnimations++}destroy(O,P){if(!O)return;const Z=this._fetchNamespace(O);this.afterFlush(()=>{this.namespacesByHostElement.delete(Z.hostElement),delete this._namespaceLookup[O];const He=this._namespaceList.indexOf(Z);He>=0&&this._namespaceList.splice(He,1)}),this.afterFlushAnimationsDone(()=>Z.destroy(P))}_fetchNamespace(O){return this._namespaceLookup[O]}fetchNamespacesByElement(O){const P=new Set,Z=this.statesByElement.get(O);if(Z)for(let He of Z.values())if(He.namespaceId){const ut=this._fetchNamespace(He.namespaceId);ut&&P.add(ut)}return P}trigger(O,P,Z,He){if(Vo(P)){const ut=this._fetchNamespace(O);if(ut)return ut.trigger(P,Z,He),!0}return!1}insertNode(O,P,Z,He){if(!Vo(P))return;const ut=P[_r];if(ut&&ut.setForRemoval){ut.setForRemoval=!1,ut.setForMove=!0;const It=this.collectedLeaveElements.indexOf(P);It>=0&&this.collectedLeaveElements.splice(It,1)}if(O){const It=this._fetchNamespace(O);It&&It.insertNode(P,Z)}He&&this.collectEnterElement(P)}collectEnterElement(O){this.collectedEnterElements.push(O)}markElementAsDisabled(O,P){P?this.disabledNodes.has(O)||(this.disabledNodes.add(O),or(O,ro)):this.disabledNodes.has(O)&&(this.disabledNodes.delete(O),oo(O,ro))}removeNode(O,P,Z,He){if(Vo(P)){const ut=O?this._fetchNamespace(O):null;if(ut?ut.removeNode(P,He):this.markElementAsRemoved(O,P,!1,He),Z){const It=this.namespacesByHostElement.get(P);It&&It.id!==O&&It.removeNode(P,He)}}else this._onRemovalComplete(P,He)}markElementAsRemoved(O,P,Z,He,ut){this.collectedLeaveElements.push(P),P[_r]={namespaceId:O,setForRemoval:He,hasAnimation:Z,removedBeforeQueried:!1,previousTriggersValues:ut}}listen(O,P,Z,He,ut){return Vo(P)?this._fetchNamespace(O).listen(P,Z,He,ut):()=>{}}_buildInstruction(O,P,Z,He,ut){return O.transition.build(this.driver,O.element,O.fromState.value,O.toState.value,Z,He,O.fromState.options,O.toState.options,P,ut)}destroyInnerAnimations(O){let P=this.driver.query(O,Hr,!0);P.forEach(Z=>this.destroyActiveAnimationsForElement(Z)),0!=this.playersByQueriedElement.size&&(P=this.driver.query(O,Ut,!0),P.forEach(Z=>this.finishActiveQueriedAnimationOnElement(Z)))}destroyActiveAnimationsForElement(O){const P=this.playersByElement.get(O);P&&P.forEach(Z=>{Z.queued?Z.markedForDestroy=!0:Z.destroy()})}finishActiveQueriedAnimationOnElement(O){const P=this.playersByQueriedElement.get(O);P&&P.forEach(Z=>Z.finish())}whenRenderingDone(){return new Promise(O=>{if(this.players.length)return vi(this.players).onDone(()=>O());O()})}processLeaveNode(O){var P;const Z=O[_r];if(Z&&Z.setForRemoval){if(O[_r]=Ma,Z.namespaceId){this.destroyInnerAnimations(O);const He=this._fetchNamespace(Z.namespaceId);He&&He.clearElementCache(O)}this._onRemovalComplete(O,Z.setForRemoval)}null!==(P=O.classList)&&void 0!==P&&P.contains(ro)&&this.markElementAsDisabled(O,!1),this.driver.query(O,".ng-animate-disabled",!0).forEach(He=>{this.markElementAsDisabled(He,!1)})}flush(O=-1){let P=[];if(this.newHostElements.size&&(this.newHostElements.forEach((Z,He)=>this._balanceNamespaceList(Z,He)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let Z=0;ZZ()),this._flushFns=[],this._whenQuietFns.length){const Z=this._whenQuietFns;this._whenQuietFns=[],P.length?vi(P).onDone(()=>{Z.forEach(He=>He())}):Z.forEach(He=>He())}}reportError(O){throw function Bn(te){return new m.vHH(3402,!1)}()}_flushAnimations(O,P){const Z=new na,He=[],ut=new Map,It=[],Rt=new Map,jt=new Map,Xt=new Map,cn=new Set;this.disabledNodes.forEach(wn=>{cn.add(wn);const _n=this.driver.query(wn,".ng-animate-queued",!0);for(let Sn=0;Sn<_n.length;Sn++)cn.add(_n[Sn])});const En=this.bodyNode,Vn=Array.from(this.statesByElement.keys()),Zn=cs(Vn,this.collectedEnterElements),On=new Map;let kn=0;Zn.forEach((wn,_n)=>{const Sn=wr+kn++;On.set(_n,Sn),wn.forEach($n=>or($n,Sn))});const pi=[],_i=new Set,ki=new Set;for(let wn=0;wn_i.add($n)):ki.add(_n))}const Ji=new Map,Li=cs(Vn,Array.from(_i));Li.forEach((wn,_n)=>{const Sn=Gi+kn++;Ji.set(_n,Sn),wn.forEach($n=>or($n,Sn))}),O.push(()=>{Zn.forEach((wn,_n)=>{const Sn=On.get(_n);wn.forEach($n=>oo($n,Sn))}),Li.forEach((wn,_n)=>{const Sn=Ji.get(_n);wn.forEach($n=>oo($n,Sn))}),pi.forEach(wn=>{this.processLeaveNode(wn)})});const ga=[],Qo=[];for(let wn=this._namespaceList.length-1;wn>=0;wn--)this._namespaceList[wn].drainQueuedTransitions(P).forEach(Sn=>{const $n=Sn.player,Ci=Sn.element;if(ga.push($n),this.collectedEnterElements.length){const lr=Ci[_r];if(lr&&lr.setForMove){if(lr.previousTriggersValues&&lr.previousTriggersValues.has(Sn.triggerName)){const Aa=lr.previousTriggersValues.get(Sn.triggerName),tr=this.statesByElement.get(Sn.element);if(tr&&tr.has(Sn.triggerName)){const ba=tr.get(Sn.triggerName);ba.value=Aa,tr.set(Sn.triggerName,ba)}}return void $n.destroy()}}const jr=!En||!this.driver.containsElement(En,Ci),Pr=Ji.get(Ci),xo=On.get(Ci),yi=this._buildInstruction(Sn,Z,xo,Pr,jr);if(yi.errors&&yi.errors.length)return void Qo.push(yi);if(jr)return $n.onStart(()=>Mr(Ci,yi.fromStyles)),$n.onDestroy(()=>ir(Ci,yi.toStyles)),void He.push($n);if(Sn.isFallbackTransition)return $n.onStart(()=>Mr(Ci,yi.fromStyles)),$n.onDestroy(()=>ir(Ci,yi.toStyles)),void He.push($n);const sc=[];yi.timelines.forEach(lr=>{lr.stretchStartingKeyframe=!0,this.disabledNodes.has(lr.element)||sc.push(lr)}),yi.timelines=sc,Z.append(Ci,yi.timelines),It.push({instruction:yi,player:$n,element:Ci}),yi.queriedElements.forEach(lr=>bi(Rt,lr,[]).push($n)),yi.preStyleProps.forEach((lr,Aa)=>{if(lr.size){let tr=jt.get(Aa);tr||jt.set(Aa,tr=new Set),lr.forEach((ba,Es)=>tr.add(Es))}}),yi.postStyleProps.forEach((lr,Aa)=>{let tr=Xt.get(Aa);tr||Xt.set(Aa,tr=new Set),lr.forEach((ba,Es)=>tr.add(Es))})});if(Qo.length){const wn=[];Qo.forEach(_n=>{wn.push(function Wn(te,O){return new m.vHH(3505,!1)}())}),ga.forEach(_n=>_n.destroy()),this.reportError(wn)}const sr=new Map,Br=new Map;It.forEach(wn=>{const _n=wn.element;Z.has(_n)&&(Br.set(_n,_n),this._beforeAnimationBuild(wn.player.namespaceId,wn.instruction,sr))}),He.forEach(wn=>{const _n=wn.element;this._getPreviousPlayers(_n,!1,wn.namespaceId,wn.triggerName,null).forEach($n=>{bi(sr,_n,[]).push($n),$n.destroy()})});const Cs=pi.filter(wn=>vo(wn,jt,Xt)),Ur=new Map;Co(Ur,this.driver,ki,Xt,_t.l3).forEach(wn=>{vo(wn,jt,Xt)&&Cs.push(wn)});const _a=new Map;Zn.forEach((wn,_n)=>{Co(_a,this.driver,new Set(wn),jt,_t.k1)}),Cs.forEach(wn=>{var _n,Sn;const $n=Ur.get(wn),Ci=_a.get(wn);Ur.set(wn,new Map([...Array.from(null!==(_n=$n?.entries())&&void 0!==_n?_n:[]),...Array.from(null!==(Sn=Ci?.entries())&&void 0!==Sn?Sn:[])]))});const So=[],Ko=[],vs={};It.forEach(wn=>{const{element:_n,player:Sn,instruction:$n}=wn;if(Z.has(_n)){if(cn.has(_n))return Sn.onDestroy(()=>ir(_n,$n.toStyles)),Sn.disabled=!0,Sn.overrideTotalTime($n.totalTime),void He.push(Sn);let Ci=vs;if(Br.size>1){let Pr=_n;const xo=[];for(;Pr=Pr.parentNode;){const yi=Br.get(Pr);if(yi){Ci=yi;break}xo.push(Pr)}xo.forEach(yi=>Br.set(yi,Ci))}const jr=this._buildAnimation(Sn.namespaceId,$n,sr,ut,_a,Ur);if(Sn.setRealPlayer(jr),Ci===vs)So.push(Sn);else{const Pr=this.playersByElement.get(Ci);Pr&&Pr.length&&(Sn.parentPlayer=vi(Pr)),He.push(Sn)}}else Mr(_n,$n.fromStyles),Sn.onDestroy(()=>ir(_n,$n.toStyles)),Ko.push(Sn),cn.has(_n)&&He.push(Sn)}),Ko.forEach(wn=>{const _n=ut.get(wn.element);if(_n&&_n.length){const Sn=vi(_n);wn.setRealPlayer(Sn)}}),He.forEach(wn=>{wn.parentPlayer?wn.syncPlayerEvents(wn.parentPlayer):wn.destroy()});for(let wn=0;wn!jr.destroyed);Ci.length?il(this,_n,Ci):this.processLeaveNode(_n)}return pi.length=0,So.forEach(wn=>{this.players.push(wn),wn.onDone(()=>{wn.destroy();const _n=this.players.indexOf(wn);this.players.splice(_n,1)}),wn.play()}),So}elementContainsData(O,P){let Z=!1;const He=P[_r];return He&&He.setForRemoval&&(Z=!0),this.playersByElement.has(P)&&(Z=!0),this.playersByQueriedElement.has(P)&&(Z=!0),this.statesByElement.has(P)&&(Z=!0),this._fetchNamespace(O).elementContainsData(P)||Z}afterFlush(O){this._flushFns.push(O)}afterFlushAnimationsDone(O){this._whenQuietFns.push(O)}_getPreviousPlayers(O,P,Z,He,ut){let It=[];if(P){const Rt=this.playersByQueriedElement.get(O);Rt&&(It=Rt)}else{const Rt=this.playersByElement.get(O);if(Rt){const jt=!ut||ut==Qr;Rt.forEach(Xt=>{Xt.queued||!jt&&Xt.triggerName!=He||It.push(Xt)})}}return(Z||He)&&(It=It.filter(Rt=>!(Z&&Z!=Rt.namespaceId||He&&He!=Rt.triggerName))),It}_beforeAnimationBuild(O,P,Z){const ut=P.element,It=P.isRemovalTransition?void 0:O,Rt=P.isRemovalTransition?void 0:P.triggerName;for(const jt of P.timelines){const Xt=jt.element,cn=Xt!==ut,En=bi(Z,Xt,[]);this._getPreviousPlayers(Xt,cn,It,Rt,P.toState).forEach(Zn=>{const On=Zn.getRealPlayer();On.beforeDestroy&&On.beforeDestroy(),Zn.destroy(),En.push(Zn)})}Mr(ut,P.fromStyles)}_buildAnimation(O,P,Z,He,ut,It){const Rt=P.triggerName,jt=P.element,Xt=[],cn=new Set,En=new Set,Vn=P.timelines.map(On=>{const kn=On.element;cn.add(kn);const pi=kn[_r];if(pi&&pi.removedBeforeQueried)return new _t.ZN(On.duration,On.delay);const _i=kn!==jt,ki=function Ar(te){const O=[];return xa(te,O),O}((Z.get(kn)||aa).map(sr=>sr.getRealPlayer())).filter(sr=>!!sr.element&&sr.element===kn),Ji=ut.get(kn),Li=It.get(kn),ga=wi(0,this._normalizer,0,On.keyframes,Ji,Li),Qo=this._buildPlayer(On,ga,ki);if(On.subTimeline&&He&&En.add(kn),_i){const sr=new la(O,Rt,kn);sr.setRealPlayer(Qo),Xt.push(sr)}return Qo});Xt.forEach(On=>{bi(this.playersByQueriedElement,On.element,[]).push(On),On.onDone(()=>function ls(te,O,P){let Z=te.get(O);if(Z){if(Z.length){const He=Z.indexOf(P);Z.splice(He,1)}0==Z.length&&te.delete(O)}return Z}(this.playersByQueriedElement,On.element,On))}),cn.forEach(On=>or(On,dt));const Zn=vi(Vn);return Zn.onDestroy(()=>{cn.forEach(On=>oo(On,dt)),ir(jt,P.toStyles)}),En.forEach(On=>{bi(He,On,[]).push(Zn)}),Zn}_buildPlayer(O,P,Z){return P.length>0?this.driver.animate(O.element,P,O.duration,O.delay,O.easing,Z):new _t.ZN(O.duration,O.delay)}}class la{constructor(O,P,Z){this.namespaceId=O,this.triggerName=P,this.element=Z,this._player=new _t.ZN,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(O){this._containsRealPlayer||(this._player=O,this._queuedCallbacks.forEach((P,Z)=>{P.forEach(He=>cr(O,Z,void 0,He))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(O.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(O){this.totalTime=O}syncPlayerEvents(O){const P=this._player;P.triggerCallback&&O.onStart(()=>P.triggerCallback("start")),O.onDone(()=>this.finish()),O.onDestroy(()=>this.destroy())}_queueEvent(O,P){bi(this._queuedCallbacks,O,[]).push(P)}onDone(O){this.queued&&this._queueEvent("done",O),this._player.onDone(O)}onStart(O){this.queued&&this._queueEvent("start",O),this._player.onStart(O)}onDestroy(O){this.queued&&this._queueEvent("destroy",O),this._player.onDestroy(O)}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(O){this.queued||this._player.setPosition(O)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(O){const P=this._player;P.triggerCallback&&P.triggerCallback(O)}}function Vo(te){return te&&1===te.nodeType}function Fo(te,O){const P=te.style.display;return te.style.display=O??"none",P}function Co(te,O,P,Z,He){const ut=[];P.forEach(jt=>ut.push(Fo(jt)));const It=[];Z.forEach((jt,Xt)=>{const cn=new Map;jt.forEach(En=>{const Vn=O.computeStyle(Xt,En,He);cn.set(En,Vn),(!Vn||0==Vn.length)&&(Xt[_r]=as,It.push(Xt))}),te.set(Xt,cn)});let Rt=0;return P.forEach(jt=>Fo(jt,ut[Rt++])),It}function cs(te,O){const P=new Map;if(te.forEach(Rt=>P.set(Rt,[])),0==O.length)return P;const He=new Set(O),ut=new Map;function It(Rt){if(!Rt)return 1;let jt=ut.get(Rt);if(jt)return jt;const Xt=Rt.parentNode;return jt=P.has(Xt)?Xt:He.has(Xt)?1:It(Xt),ut.set(Rt,jt),jt}return O.forEach(Rt=>{const jt=It(Rt);1!==jt&&P.get(jt).push(Rt)}),P}function or(te,O){var P;null===(P=te.classList)||void 0===P||P.add(O)}function oo(te,O){var P;null===(P=te.classList)||void 0===P||P.remove(O)}function il(te,O,P){vi(P).onDone(()=>te.processLeaveNode(O))}function xa(te,O){for(let P=0;PHe.add(ut)):O.set(te,Z),P.delete(te),!0}class Eo{constructor(O,P,Z){this.bodyNode=O,this._driver=P,this._normalizer=Z,this._triggerCache={},this.onRemovalComplete=(He,ut)=>{},this._transitionEngine=new sa(O,P,Z),this._timelineEngine=new is(O,P,Z),this._transitionEngine.onRemovalComplete=(He,ut)=>this.onRemovalComplete(He,ut)}registerTrigger(O,P,Z,He,ut){const It=O+"-"+He;let Rt=this._triggerCache[It];if(!Rt){const jt=[],cn=Re(this._driver,ut,jt,[]);if(jt.length)throw function vt(te,O){return new m.vHH(3404,!1)}();Rt=function tl(te,O,P){return new oa(te,O,P)}(He,cn,this._normalizer),this._triggerCache[It]=Rt}this._transitionEngine.registerTrigger(P,He,Rt)}register(O,P){this._transitionEngine.register(O,P)}destroy(O,P){this._transitionEngine.destroy(O,P)}onInsert(O,P,Z,He){this._transitionEngine.insertNode(O,P,Z,He)}onRemove(O,P,Z,He){this._transitionEngine.removeNode(O,P,He||!1,Z)}disableAnimations(O,P){this._transitionEngine.markElementAsDisabled(O,P)}process(O,P,Z,He){if("@"==Z.charAt(0)){const[ut,It]=ur(Z);this._timelineEngine.command(ut,P,It,He)}else this._transitionEngine.trigger(O,P,Z,He)}listen(O,P,Z,He,ut){if("@"==Z.charAt(0)){const[It,Rt]=ur(Z);return this._timelineEngine.listen(It,P,Rt,ut)}return this._transitionEngine.listen(O,P,Z,He,ut)}flush(O=-1){this._transitionEngine.flush(O)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let so=(()=>{class te{constructor(P,Z,He){this._element=P,this._startStyles=Z,this._endStyles=He,this._state=0;let ut=te.initialStylesByElement.get(P);ut||te.initialStylesByElement.set(P,ut=new Map),this._initialStyles=ut}start(){this._state<1&&(this._startStyles&&ir(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ir(this._element,this._initialStyles),this._endStyles&&(ir(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(te.initialStylesByElement.delete(this._element),this._startStyles&&(Mr(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Mr(this._element,this._endStyles),this._endStyles=null),ir(this._element,this._initialStyles),this._state=3)}}return te.initialStylesByElement=new WeakMap,te})();function Da(te){let O=null;return te.forEach((P,Z)=>{(function ds(te){return"display"===te||"position"===te})(Z)&&(O=O||new Map,O.set(Z,P))}),O}class Pa{constructor(O,P,Z,He){this.element=O,this.keyframes=P,this.options=Z,this._specialStyles=He,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=Z.duration,this._delay=Z.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(O=>O()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const O=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,O,this.options),this._finalKeyframe=O.length?O[O.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(O){const P=[];return O.forEach(Z=>{P.push(Object.fromEntries(Z))}),P}_triggerWebAnimation(O,P,Z){return O.animate(this._convertKeyframesToObject(P),Z)}onStart(O){this._originalOnStartFns.push(O),this._onStartFns.push(O)}onDone(O){this._originalOnDoneFns.push(O),this._onDoneFns.push(O)}onDestroy(O){this._onDestroyFns.push(O)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(O=>O()),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,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_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(O=>O()),this._onDestroyFns=[])}setPosition(O){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=O*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const O=new Map;this.hasStarted()&&this._finalKeyframe.forEach((Z,He)=>{"offset"!==He&&O.set(He,this._finished?Z:Yt(this.element,He))}),this.currentSnapshot=O}triggerCallback(O){const P="start"===O?this._onStartFns:this._onDoneFns;P.forEach(Z=>Z()),P.length=0}}class us{validateStyleProperty(O){return!0}validateAnimatableStyleProperty(O){return!0}matchesElement(O,P){return!1}containsElement(O,P){return Fn(O,P)}getParentElement(O){return yr(O)}query(O,P,Z){return Yn(O,P,Z)}computeStyle(O,P,Z){return window.getComputedStyle(O)[P]}animate(O,P,Z,He,ut,It=[]){const jt={duration:Z,delay:He,fill:0==He?"both":"forwards"};ut&&(jt.easing=ut);const Xt=new Map,cn=It.filter(Zn=>Zn instanceof Pa);(function bt(te,O){return 0===te||0===O})(Z,He)&&cn.forEach(Zn=>{Zn.currentSnapshot.forEach((On,kn)=>Xt.set(kn,On))});let En=function si(te){return te.length?te[0]instanceof Map?te:te.map(O=>Jn(O)):[]}(P).map(Zn=>Ii(Zn));En=function Lt(te,O,P){if(P.size&&O.length){let Z=O[0],He=[];if(P.forEach((ut,It)=>{Z.has(It)||He.push(It),Z.set(It,ut)}),He.length)for(let ut=1;utIt.set(Rt,Yt(te,Rt)))}}return O}(O,En,Xt);const Vn=function ca(te,O){let P=null,Z=null;return Array.isArray(O)&&O.length?(P=Da(O[0]),O.length>1&&(Z=Da(O[O.length-1]))):O instanceof Map&&(P=Da(O)),P||Z?new so(te,P,Z):null}(O,En);return new Pa(O,En,jt,Vn)}}let hs=(()=>{class te extends _t._j{constructor(P,Z){super(),this._nextAnimationId=0,this._renderer=P.createRenderer(Z.body,{id:"0",encapsulation:m.ifc.None,styles:[],data:{animation:[]}})}build(P){const Z=this._nextAnimationId.toString();this._nextAnimationId++;const He=Array.isArray(P)?(0,_t.vP)(P):P;return To(this._renderer,null,Z,"register",[He]),new ps(Z,this._renderer)}}return te.\u0275fac=function(P){return new(P||te)(m.LFG(m.FYo),m.LFG(F.K0))},te.\u0275prov=m.Yz7({token:te,factory:te.\u0275fac}),te})();class ps extends _t.LC{constructor(O,P){super(),this._id=O,this._renderer=P}create(O,P){return new Si(this._id,O,P||{},this._renderer)}}class Si{constructor(O,P,Z,He){this.id=O,this.element=P,this._renderer=He,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",Z)}_listen(O,P){return this._renderer.listen(this.element,`@@${this.id}:${O}`,P)}_command(O,...P){return To(this._renderer,this.element,this.id,O,P)}onDone(O){this._listen("done",O)}onStart(O){this._listen("start",O)}onDestroy(O){this._listen("destroy",O)}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"),this._started=!1}setPosition(O){this._command("setPosition",O)}getPosition(){var O,P;return null!==(O=null===(P=this._renderer.engine.players[+this.id])||void 0===P?void 0:P.getPosition())&&void 0!==O?O:0}}function To(te,O,P,Z,He){return te.setProperty(O,`@@${P}:${Z}`,He)}const yo="@.disabled";let jo=(()=>{class te{constructor(P,Z,He){this.delegate=P,this.engine=Z,this._zone=He,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),Z.onRemovalComplete=(ut,It)=>{const Rt=It?.parentNode(ut);Rt&&It.removeChild(Rt,ut)}}createRenderer(P,Z){const ut=this.delegate.createRenderer(P,Z);if(!(P&&Z&&Z.data&&Z.data.animation)){let cn=this._rendererCache.get(ut);return cn||(cn=new lo("",ut,this.engine),this._rendererCache.set(ut,cn)),cn}const It=Z.id,Rt=Z.id+"-"+this._currentId;this._currentId++,this.engine.register(Rt,P);const jt=cn=>{Array.isArray(cn)?cn.forEach(jt):this.engine.registerTrigger(It,Rt,P,cn.name,cn)};return Z.data.animation.forEach(jt),new rl(this,Rt,ut,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(P,Z,He){P>=0&&PZ(He)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(ut=>{const[It,Rt]=ut;It(Rt)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([Z,He]))}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 te.\u0275fac=function(P){return new(P||te)(m.LFG(m.FYo),m.LFG(Eo),m.LFG(m.R0b))},te.\u0275prov=m.Yz7({token:te,factory:te.\u0275fac}),te})();class lo{constructor(O,P,Z){this.namespaceId=O,this.delegate=P,this.engine=Z,this.destroyNode=this.delegate.destroyNode?He=>P.destroyNode(He):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(O,P){return this.delegate.createElement(O,P)}createComment(O){return this.delegate.createComment(O)}createText(O){return this.delegate.createText(O)}appendChild(O,P){this.delegate.appendChild(O,P),this.engine.onInsert(this.namespaceId,P,O,!1)}insertBefore(O,P,Z,He=!0){this.delegate.insertBefore(O,P,Z),this.engine.onInsert(this.namespaceId,P,O,He)}removeChild(O,P,Z){this.engine.onRemove(this.namespaceId,P,this.delegate,Z)}selectRootElement(O,P){return this.delegate.selectRootElement(O,P)}parentNode(O){return this.delegate.parentNode(O)}nextSibling(O){return this.delegate.nextSibling(O)}setAttribute(O,P,Z,He){this.delegate.setAttribute(O,P,Z,He)}removeAttribute(O,P,Z){this.delegate.removeAttribute(O,P,Z)}addClass(O,P){this.delegate.addClass(O,P)}removeClass(O,P){this.delegate.removeClass(O,P)}setStyle(O,P,Z,He){this.delegate.setStyle(O,P,Z,He)}removeStyle(O,P,Z){this.delegate.removeStyle(O,P,Z)}setProperty(O,P,Z){"@"==P.charAt(0)&&P==yo?this.disableAnimations(O,!!Z):this.delegate.setProperty(O,P,Z)}setValue(O,P){this.delegate.setValue(O,P)}listen(O,P,Z){return this.delegate.listen(O,P,Z)}disableAnimations(O,P){this.engine.disableAnimations(O,P)}}class rl extends lo{constructor(O,P,Z,He){super(P,Z,He),this.factory=O,this.namespaceId=P}setProperty(O,P,Z){"@"==P.charAt(0)?"."==P.charAt(1)&&P==yo?this.disableAnimations(O,Z=void 0===Z||!!Z):this.engine.process(this.namespaceId,O,P.slice(1),Z):this.delegate.setProperty(O,P,Z)}listen(O,P,Z){if("@"==P.charAt(0)){const He=function Ia(te){switch(te){case"body":return document.body;case"document":return document;case"window":return window;default:return te}}(O);let ut=P.slice(1),It="";return"@"!=ut.charAt(0)&&([ut,It]=function fs(te){const O=te.indexOf(".");return[te.substring(0,O),te.slice(O+1)]}(ut)),this.engine.listen(this.namespaceId,He,ut,It,Rt=>{this.factory.scheduleListenerCallback(Rt._data||-1,Z,Rt)})}return this.delegate.listen(O,P,Z)}}const co=[{provide:_t._j,useClass:hs},{provide:Jr,useFactory:function Ra(){return new Oi}},{provide:Eo,useClass:(()=>{class te extends Eo{constructor(P,Z,He,ut){super(P.body,Z,He)}ngOnDestroy(){this.flush()}}return te.\u0275fac=function(P){return new(P||te)(m.LFG(F.K0),m.LFG(pr),m.LFG(Jr),m.LFG(m.z2F))},te.\u0275prov=m.Yz7({token:te,factory:te.\u0275fac}),te})()},{provide:m.FYo,useFactory:function da(te,O,P){return new jo(te,O,P)},deps:[e.se,Eo,m.R0b]}],Wi=[{provide:pr,useFactory:()=>new us},{provide:m.QbO,useValue:"BrowserAnimations"},...co],wo=[{provide:pr,useClass:Pi},{provide:m.QbO,useValue:"NoopAnimations"},...co];let Oa=(()=>{class te{static withConfig(P){return{ngModule:te,providers:P.disableAnimations?wo:Wi}}}return te.\u0275fac=function(P){return new(P||te)},te.\u0275mod=m.oAB({type:te}),te.\u0275inj=m.cJS({providers:Wi,imports:[e.b2]}),te})(),al=(()=>{class te{}return te.\u0275fac=function(P){return new(P||te)},te.\u0275mod=m.oAB({type:te}),te.\u0275inj=m.cJS({providers:[g.e8],imports:[F.ez]}),te})();var ai=u(81847),jl=u(4732),Zl=u(94856),Gl=u(55857),zl=u(37240),sl=u(15592),Wl=u(75234),ll=u(37380),Go=u(34904),Yl=u(85243),cl=u(68056),xi=u(24219),zo=u(25828),Wo=u(10369),Jl=u(14336),dl=u(25309),br=u(86353),ee=u(11042),se=u(57788),j=u(80774),ve=u(25610),Ne=u(61639);let xt=(()=>{class te{constructor(){this.handlers=new Map,this.cachedComponents=new Set([ai.y.id,jl.G.id,Zl.c.id,cl.z.id,xi.z.id,Wo.w.id,ee.T.id,Wl.y.id,sl.u.id,zl.q.id,Ne.C.id,Gl.W.id,Jl.Z.id,ll.o.id,Go.f.id,ve._.id,Yl.j.id,zo.t.id,se.g.id,j.F.id,dl.Y.id,br.P.id]),this.cacheTimeMs=3e5,this.isUserNavigatingBack=!1}shouldReuseRoute(P,Z){return P.routeConfig===Z.routeConfig}retrieve(P){const Z=this.getKey(P);return this.handlers.has(Z)?this.handlers.get(Z).routeHandle:null}shouldAttach(P){if(!this.isUserNavigatingBack||!P.component)return!1;const Z=this.handlers.get(this.getKey(P));return Z&&this.getCurrentTimestamp()-Z.saveTimeStamp0;)document.getElementsByTagName("mat-tooltip-component")[0].remove();this.handlers.set(this.getKey(P),{routeHandle:Z,saveTimeStamp:this.getCurrentTimestamp()})}setLastNavigationType(P){this.isUserNavigatingBack="back"===P}getComponentId(P){return P.id}getKey(P){return P.pathFromRoot.map(Z=>Z.url.map(He=>He.toString())).join("/")}getCurrentTimestamp(){return+Date.now()}}return te.\u0275fac=function(P){return new(P||te)},te.\u0275prov=m.Yz7({token:te,factory:te.\u0275fac}),te})();const Bt=new m.OlP("perun-api-service");let Jt=(()=>{class te{constructor(P,Z,He,ut,It){this.http=P,this.storeService=Z,this.authzSevice=He,this.titleService=ut,this.utilsService=It}initializeColors(P,Z){return new Promise(He=>{Z.forEach(ut=>{const It=this.storeService.getProperty("theme")[ut.configValue];document.documentElement.style.setProperty(ut.cssVariable,It)}),P.forEach(ut=>{const It=this.storeService.getProperty("theme")[ut.configValue];document.documentElement.style.setProperty(ut.cssVariable,It),this.setEntityTheme(ut.entity,It)}),He()})}setEntityTheme(P,Z){const He=function dn(te){return[mn(tinycolor(te).lighten(52),"50"),mn(tinycolor(te).lighten(37),"100"),mn(tinycolor(te).lighten(26),"200"),mn(tinycolor(te).lighten(12),"300"),mn(tinycolor(te).lighten(6),"400"),mn(tinycolor(te),"500"),mn(tinycolor(te).darken(6),"600"),mn(tinycolor(te).darken(12),"700"),mn(tinycolor(te).darken(18),"800"),mn(tinycolor(te).darken(24),"900"),mn(tinycolor(te).lighten(50).saturate(30),"A100"),mn(tinycolor(te).lighten(30).saturate(30),"A200"),mn(tinycolor(te).lighten(10).saturate(15),"A400"),mn(tinycolor(te).lighten(5).saturate(5),"A700")]}(Z);for(const ut of He){const jt=`--${P}-theme-primary-contrast-${ut.name}`,Xt=ut.darkContrast?"30,30,30":"255,255,255";document.documentElement.style.setProperty(`--${P}-theme-primary-${ut.name}`,`${ut.red},${ut.green},${ut.blue}`),document.documentElement.style.setProperty(jt,Xt)}}loadAppDefaultConfig(){return new Promise(P=>{this.http.get("/assets/config/defaultConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(Z=>{this.storeService.setDefaultConfig(Z),P()})})}loadAppInstanceConfig(){return new Promise(P=>{this.http.get("/assets/config/instanceConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(Z=>{this.storeService.setInstanceConfig(Z);const He=document.location.hostname;Z?.brandings?.[He]&&this.storeService.setBanding(He),P()},()=>{P()})})}getNoCacheHeaders(){return new ze.WM({CacheControl:"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"})}setInstanceFavicon(){return new Promise(P=>{const Z=document.querySelector("link[rel*='icon']")||document.createElement("link");Z.type="image/x-icon",Z.rel="shortcut icon",Z.href=this.storeService.getProperty("instance_favicon")?"./assets/config/instanceFavicon.ico":"./assets/img/perun.ico",document.getElementsByTagName("head")[0].appendChild(Z),P()})}setApiUrl(){return new Promise(P=>{let Z=this.storeService.getProperty("api_url");("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal")||this.storeService.getProperty("auto_service_access_redirect"))&&(Z=Z.replace("oauth","ba")),this.authzSevice.configuration.basePath=Z,this.titleService.setTitle(this.storeService.getProperty("document_title").en),P()})}loadAppsConfig(){return new Promise((P,Z)=>{this.utilsService.getAppsConfig().subscribe(He=>{this.storeService.setAppsConfig(He),P()},He=>Z(He))})}}return te.\u0275fac=function(P){return new(P||te)(m.LFG(ze.eN),m.LFG(g.d6),m.LFG(p.Ct),m.LFG(e.Dx),m.LFG(p.FW))},te.\u0275prov=m.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"}),te})();function mn(te,O){const P=tinycolor(te),Z=P.toRgb();return{name:O,hex:P.toHexString(),darkContrast:P.isLight(),red:Z.r,green:Z.g,blue:Z.b}}let bn=(()=>{class te{constructor(P,Z){this.data=P,this.location=Z}redirect(){this.location.go("/"),location.reload()}}return te.\u0275fac=function(P){return new(P||te)(m.Y36(D.WI),m.Y36(F.Ye))},te.\u0275cmp=m.Xpm({type:te,selectors:[["perun-web-apps-prevent-proxy-overload-dialog"]],decls:10,vars:9,consts:[[3,"click"]],template:function(P,Z){1&P&&(m.TgZ(0,"h2"),m._uU(1),m.ALo(2,"translate"),m.qZA(),m.TgZ(3,"p"),m._uU(4),m.ALo(5,"translate"),m.qZA(),m.TgZ(6,"div")(7,"button",0),m.NdJ("click",function(){return Z.redirect()}),m._uU(8),m.ALo(9,"translate"),m.qZA()()),2&P&&(m.xp6(1),m.hij(" ",m.lcZ(2,3,Z.data.title),"\n"),m.xp6(3),m.hij(" ",m.lcZ(5,5,Z.data.message),"\n"),m.xp6(4),m.hij(" ",m.lcZ(9,7,Z.data.action)," "))},dependencies:[v.X$]}),te})(),Pn=(()=>{class te{constructor(P,Z){this.dialogRef=P,this.data=Z}refresh(){location.reload()}}return te.\u0275fac=function(P){return new(P||te)(m.Y36(D.so),m.Y36(D.WI))},te.\u0275cmp=m.Xpm({type:te,selectors:[["perun-web-apps-server-down-dialog"]],decls:10,vars:9,consts:[[3,"click"]],template:function(P,Z){1&P&&(m.TgZ(0,"h2"),m._uU(1),m.ALo(2,"translate"),m.qZA(),m.TgZ(3,"p"),m._uU(4),m.ALo(5,"translate"),m.qZA(),m.TgZ(6,"div")(7,"button",0),m.NdJ("click",function(){return Z.refresh()}),m._uU(8),m.ALo(9,"translate"),m.qZA()()),2&P&&(m.xp6(1),m.hij(" ",m.lcZ(2,3,Z.data.title),"\n"),m.xp6(3),m.hij(" ",m.lcZ(5,5,Z.data.message),"\n"),m.xp6(4),m.hij(" ",m.lcZ(9,7,Z.data.action)," "))},dependencies:[v.X$]}),te})();var hi=u(83905);let Di=(()=>{class te{constructor(P,Z,He,ut,It,Rt,jt){this.initAuthService=P,this.appConfigService=Z,this.authzSevice=He,this.dialog=ut,this.location=It,this.guiAuthResolver=Rt,this.mfaHandlerService=jt,this.entityColorConfigs=[{entity:"vo",configValue:"vo_color",cssVariable:"--vo-color"},{entity:"group",configValue:"group_color",cssVariable:"--group-color"},{entity:"user",configValue:"user_color",cssVariable:"--user-color"},{entity:"member",configValue:"member_color",cssVariable:"--member-color"},{entity:"facility",configValue:"facility_color",cssVariable:"--facility-color"},{entity:"resource",configValue:"resource_color",cssVariable:"--resource-color"},{entity:"admin",configValue:"admin_color",cssVariable:"--admin-color"},{entity:"service",configValue:"service_color",cssVariable:"--service-color"}],this.colorConfigs=[{configValue:"sidemenu_hover_color",cssVariable:"--side-root-item-hover"},{configValue:"sidemenu_active_color",cssVariable:"--side-root-item-active"},{configValue:"sidemenu_submenu_active_color",cssVariable:"--side-link-active"},{configValue:"sidemenu_submenu_hover_color",cssVariable:"--side-link-hover"},{configValue:"sidemenu_hover_text_color",cssVariable:"--side-root-item-text-hover"},{configValue:"sidemenu_active_text_color",cssVariable:"--side-root-item-text-active"},{configValue:"sidemenu_submenu_active_text_color",cssVariable:"--side-link-text-active"},{configValue:"sidemenu_submenu_hover_text_color",cssVariable:"--side-link-text-hover"}]}initialize(){return this.appConfigService.loadAppDefaultConfig().then(()=>this.appConfigService.loadAppInstanceConfig()).then(()=>this.appConfigService.setApiUrl()).then(()=>this.appConfigService.initializeColors(this.entityColorConfigs,this.colorConfigs)).then(()=>this.appConfigService.setInstanceFavicon()).then(()=>this.initAuthService.verifyAuth()).catch(P=>{if("Invalid path"!==P)throw this.mfaHandlerService.catchNoMfaTokenError(P?.params?.error),console.error(P),this.location.go("/"),location.reload(),P;this.handleErr(P)}).then(P=>P?(this.mfaHandlerService.closeMfaWindow(),this.initAuthService.loadPrincipal().catch(Z=>this.handleErr(Z)).then(()=>this.loadPolicies()).then(()=>this.appConfigService.loadAppsConfig()).then(()=>this.guiAuthResolver.loadRolesManagementRules()).then(()=>this.initAuthService.checkRouteGuard())):this.initAuthService.handleAuthStart())}handleErr(P){const Z=(0,T.kZ)();throw"Invalid path"===P?(Z.data={title:"GENERAL.PROXY_OVERLOAD_PREVENTION.TITLE",message:"GENERAL.PROXY_OVERLOAD_PREVENTION.MESSAGE",action:"GENERAL.PROXY_OVERLOAD_PREVENTION.ACTION"},this.dialog.open(bn,Z)):401!==P.status&&(Z.data={title:"GENERAL.PRINCIPAL_ERROR.TITLE",message:0===P.status?"GENERAL.PRINCIPAL_ERROR.MESSAGE":P.message,action:"GENERAL.PRINCIPAL_ERROR.ACTION"},this.dialog.open(Pn,Z)),console.error(P),P}loadPolicies(){return(0,hi.z)(this.authzSevice.getAllPolicies()).then(P=>this.guiAuthResolver.setPerunPolicies(P))}}return te.\u0275fac=function(P){return new(P||te)(m.LFG(g.v0),m.LFG(Jt),m.LFG(p.Ct),m.LFG(D.uw),m.LFG(F.Ye),m.LFG(g.x4),m.LFG(g.hy))},te.\u0275prov=m.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"}),te})(),Cr=(()=>{class te{}return te.\u0275fac=function(P){return new(P||te)},te.\u0275mod=m.oAB({type:te}),te.\u0275inj=m.cJS({imports:[F.ez,D.Is,q.ot,v.aw]}),te})();var ar=u(40445),Vr=u(84080),er=u(83353),xr=u(21281),Fi=u(77579),qr=u(56451),Ui=u(54968),ul=u(69751),ua=u(66406),La=u(39646),ms=u(95698),Yc=u(54482),Jc=u(72733),$l=u(22529),Dr=u(82722),ha=u(28746),Qc=u(71345);const Hi=new m.OlP("SMOOTH_SCROLL_OPTIONS");let Ql=(()=>{class te{constructor(P,Z,He){this._document=P,this._platform=Z,this._onGoingScrolls=new Map,this._defaultOptions={duration:468,easing:{x1:.42,y1:0,x2:.58,y2:1},...He}}get _w(){return this._document.defaultView}get _now(){return this._w.performance&&this._w.performance.now?this._w.performance.now.bind(this._w.performance):Date.now}_scrollElement(P,Z,He){P.scrollLeft=Z,P.scrollTop=He}_getElement(P,Z){return"string"==typeof P?(Z||this._document).querySelector(P):(0,xr.fI)(P)}_initSmoothScroll(P){return this._onGoingScrolls.has(P)&&this._onGoingScrolls.get(P).next(),this._onGoingScrolls.set(P,new Fi.x).get(P)}_isFinished(P,Z,He){return P.currentX!==P.x||P.currentY!==P.y||(Z.next(),He(),!1)}_interrupted(P,Z){return(0,qr.T)((0,Ui.R)(P,"wheel",{passive:!0,capture:!0}),(0,Ui.R)(P,"touchmove",{passive:!0,capture:!0}),Z).pipe((0,ms.q)(1))}_destroy(P,Z){Z.complete(),this._onGoingScrolls.delete(P)}_step(P){return new ul.y(Z=>{let He=(this._now()-P.startTime)/P.duration;He=He>1?1:He;const ut=P.easing(He);P.currentX=P.startX+(P.x-P.startX)*ut,P.currentY=P.startY+(P.y-P.startY)*ut,this._scrollElement(P.scrollable,P.currentX,P.currentY),ua.Z.schedule(()=>Z.next(P))})}_applyScrollToOptions(P,Z){if(!Z.duration)return this._scrollElement(P,Z.left,Z.top),Promise.resolve();const He=this._initSmoothScroll(P),ut={scrollable:P,startTime:this._now(),startX:P.scrollLeft,startY:P.scrollTop,x:null==Z.left?P.scrollLeft:~~Z.left,y:null==Z.top?P.scrollTop:~~Z.top,duration:Z.duration,easing:Qc(Z.easing.x1,Z.easing.y1,Z.easing.x2,Z.easing.y2)};return new Promise(It=>{(0,La.of)(null).pipe(function $c(te,O=1/0,P){return O=(O||0)<1?1/0:O,(0,Yc.e)((Z,He)=>(0,Jc.p)(Z,He,te,O,void 0,!0,P))}(()=>this._step(ut).pipe((0,$l.o)(Rt=>this._isFinished(Rt,He,It)))),(0,Dr.R)(this._interrupted(P,He)),(0,ha.x)(()=>this._destroy(P,He))).subscribe()})}scrollTo(P,Z){if((0,F.NF)(this._platform)){const He=this._getElement(P),ut="rtl"===getComputedStyle(He).direction,It=(0,er._i)(),Rt={...this._defaultOptions,...Z,left:Z.left??(ut?Z.end:Z.start),right:Z.right??(ut?Z.start:Z.end)};return null!=Rt.bottom&&(Rt.top=He.scrollHeight-He.clientHeight-Rt.bottom),ut&&0!==It?(null!=Rt.left&&(Rt.right=He.scrollWidth-He.clientWidth-Rt.left),2===It?Rt.left=Rt.right:1===It&&(Rt.left=Rt.right?-Rt.right:Rt.right)):null!=Rt.right&&(Rt.left=He.scrollWidth-He.clientWidth-Rt.right),this._applyScrollToOptions(He,Rt)}return Promise.resolve()}scrollToElement(P,Z,He={}){const ut=this._getElement(P),It=this._getElement(Z,ut),Rt={...He,left:It.offsetLeft+(He.left||0),top:It.offsetTop+(He.top||0)};return It?this.scrollTo(ut,Rt):Promise.resolve()}}return te.\u0275fac=function(P){return new(P||te)(m.LFG(F.K0),m.LFG(m.Lbi),m.LFG(Hi,8))},te.\u0275prov=m.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"}),te})(),hl=(()=>{class te{}return te.\u0275fac=function(P){return new(P||te)},te.\u0275mod=m.oAB({type:te}),te.\u0275inj=m.cJS({}),te})();var Ba=u(61135),qc=u(50727),Xc=u(60515),Yi=u(18505),vr=u(54004),Mo=u(63900),pl=u(78372),Yo=u(71884);function gs(...te){const O=te.length;if(0===O)throw new Error("list of properties cannot be empty.");return(0,vr.U)(P=>{let Z=P;for(let He=0;He{te.onselectstart=()=>!1})}function Xl(te){return(0,Yi.b)(()=>{te.onselectstart=null})}function Jo(){return(0,Yi.b)(te=>te.stopPropagation())}function ml(te,O){return te.clientX>=O.left&&te.clientX<=O.left+O.width&&te.clientY>=O.top&&te.clientY<=O.top+O.height}let gl=(()=>{class te{constructor(P){this.viewPort=P,this.nativeElement=P.nativeElement}get clientHeight(){return this.nativeElement.clientHeight}get clientWidth(){return this.nativeElement.clientWidth}get scrollHeight(){return this.nativeElement.scrollHeight}get scrollWidth(){return this.nativeElement.scrollWidth}get scrollTop(){return this.nativeElement.scrollTop}get scrollLeft(){return this.nativeElement.scrollLeft}get scrollMaxX(){return this.scrollWidth-this.clientWidth}get scrollMaxY(){return this.scrollHeight-this.clientHeight}get contentHeight(){var P;return(null===(P=this.contentWrapperElement)||void 0===P?void 0:P.clientHeight)||0}get contentWidth(){var P;return(null===(P=this.contentWrapperElement)||void 0===P?void 0:P.clientWidth)||0}activatePointerEvents(P,Z){this.hovered=new ul.y(He=>{const ut=(0,Ui.R)(this.nativeElement,"mousemove",{passive:!0}),It=P?ut:ut.pipe(Jo()),Rt=(0,Ui.R)(this.nativeElement,"mouseleave",{passive:!0}).pipe((0,vr.U)(()=>!1));(0,qr.T)(It,Rt).pipe((0,Yi.b)(jt=>He.next(jt)),(0,Dr.R)(Z)).subscribe()}),this.clicked=new ul.y(He=>{const ut=(0,Ui.R)(this.nativeElement,"mousedown",{passive:!0}).pipe((0,Yi.b)(Rt=>He.next(Rt))),It=(0,Ui.R)(this.nativeElement,"mouseup",{passive:!0}).pipe((0,Yi.b)(()=>He.next(!1)));ut.pipe((0,Mo.w)(()=>It),(0,Dr.R)(Z)).subscribe()})}setAsWrapper(){this.nativeElement.className="ng-native-scrollbar-hider ng-scroll-layer",this.nativeElement.firstElementChild&&(this.nativeElement.firstElementChild.className="ng-scroll-layer")}setAsViewport(P){this.nativeElement.className=`ng-native-scrollbar-hider ng-scroll-viewport ${P}`,this.nativeElement.firstElementChild&&(this.contentWrapperElement=this.nativeElement.firstElementChild,this.contentWrapperElement.classList.add("ng-scroll-content"))}scrollYTo(P){this.nativeElement.scrollTop=P}scrollXTo(P){this.nativeElement.scrollLeft=P}}return te.\u0275fac=function(P){return new(P||te)(m.Y36(m.SBq))},te.\u0275dir=m.lG2({type:te,selectors:[["","scrollViewport",""]]}),te})(),Fr=(()=>{class te{}return te.\u0275fac=function(P){return new(P||te)},te.\u0275dir=m.lG2({type:te}),te})();const Va=new m.OlP("NG_SCROLLBAR_OPTIONS"),_l={viewClass:"",trackClass:"",thumbClass:"",track:"vertical",appearance:"compact",visibility:"native",position:"native",pointerEventsMethod:"viewport",trackClickScrollDuration:300,minThumbSize:20,windowResizeDebounce:0,sensorDebounce:0,scrollAuditTime:0,viewportPropagateMouseMove:!0,autoHeightDisabled:!0,autoWidthDisabled:!0,sensorDisabled:!1,pointerEventsDisabled:!1};let ec=(()=>{class te{constructor(P){this.globalOptions=P?{..._l,...P}:_l,this.rtlScrollAxisType=(0,er._i)()}}return te.\u0275fac=function(P){return new(P||te)(m.LFG(Va,8))},te.\u0275prov=m.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"}),te})(),tc=(()=>{class te{constructor(P,Z,He){this.document=P,this.manager=Z,this.platform=He,this._scrollbarSize=new Ba.X(this.getNativeScrollbarSize()),this.scrollbarSize=this._scrollbarSize.asObservable(),He.isBrowser&&(0,Ui.R)(this.document.defaultView,"resize",{passive:!0}).pipe((0,pl.b)(this.manager.globalOptions.windowResizeDebounce),(0,vr.U)(()=>this.getNativeScrollbarSize()),(0,Yo.x)(),(0,Yi.b)(ut=>this._scrollbarSize.next(ut))).subscribe()}getNativeScrollbarSize(){if(!this.platform.isBrowser)return 0;if(this.platform.IOS)return 6;const P=this.document.createElement("div");P.className="ng-scrollbar-measure",P.style.left="0px",P.style.overflow="scroll",P.style.position="fixed",P.style.top="-9999px",this.document.body.appendChild(P);const Z=P.getBoundingClientRect().right;return this.document.body.removeChild(P),Z}}return te.\u0275fac=function(P){return new(P||te)(m.LFG(F.K0),m.LFG(ec),m.LFG(er.t4))},te.\u0275prov=m.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"}),te})(),Dh=(()=>{class te{constructor(P,Z,He){this.renderer=Z,this.hideNativeScrollbar=He,this._subscriber=qc.w0.EMPTY,this._subscriber=He.scrollbarSize.subscribe(ut=>{this.renderer.setStyle(P.nativeElement,"--native-scrollbar-size",`-${ut}px`,m.JOm.DashCase)})}ngOnDestroy(){this._subscriber.unsubscribe()}}return te.\u0275fac=function(P){return new(P||te)(m.Y36(m.SBq),m.Y36(m.Qsj),m.Y36(tc))},te.\u0275dir=m.lG2({type:te,selectors:[["","hideNativeScrollbar",""]]}),te})(),nc=(()=>{class te{constructor(P){this.el=P}set ngAttr(P){for(const[Z,He]of Object.entries(P))this.el.nativeElement.setAttribute(Z,He)}}return te.\u0275fac=function(P){return new(P||te)(m.Y36(m.SBq))},te.\u0275dir=m.lG2({type:te,selectors:[["","ngAttr",""]],inputs:{ngAttr:"ngAttr"}}),te})(),Ph=(()=>{class te{constructor(P,Z,He){if(this.zone=P,this.platform=Z,this.scrollbar=He,this._disabled=!1,this._currentSubscription=null,this.event=new m.vpe,!He)throw new Error("[NgScrollbar Resize Sensor Directive]: Host element must be an NgScrollbar component.")}get debounce(){return this._debounce}set debounce(P){this._debounce=(0,xr.su)(P),this._subscribe()}get disabled(){return this._disabled}set disabled(P){this._disabled=(0,xr.Ig)(P),this._disabled?this._unsubscribe():this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this._disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){if(this._unsubscribe(),this.platform.isBrowser){const P=new ul.y(Z=>{this._resizeObserver=new ResizeObserver(He=>Z.next(He)),this._resizeObserver.observe(this.scrollbar.viewport.nativeElement),this.scrollbar.viewport.contentWrapperElement&&this._resizeObserver.observe(this.scrollbar.viewport.contentWrapperElement)});this.zone.runOutsideAngular(()=>{this._currentSubscription=(this._debounce?P.pipe((0,pl.b)(this._debounce)):P).subscribe(this.event)})}}_unsubscribe(){var P,Z;null===(P=this._resizeObserver)||void 0===P||P.disconnect(),null===(Z=this._currentSubscription)||void 0===Z||Z.unsubscribe()}}return te.\u0275fac=function(P){return new(P||te)(m.Y36(m.R0b),m.Y36(er.t4),m.Y36(Fr))},te.\u0275dir=m.lG2({type:te,selectors:[["","resizeSensor",""]],inputs:{debounce:["sensorDebounce","debounce"],disabled:["sensorDisabled","disabled"]},outputs:{event:"resizeSensor"}}),te})(),Fa=(()=>{class te{constructor(P,Z,He){this.cmp=P,this.trackElement=Z,this.document=He}get clicked(){const P=(0,Ui.R)(this.trackElement,"mousedown",{passive:!0}).pipe(Jo(),fl(this.document)),Z=(0,Ui.R)(this.document,"mouseup",{passive:!0}).pipe(Jo(),Xl(this.document),(0,Mo.w)(()=>Xc.E));return(0,qr.T)(P,Z)}get clientRect(){return this.trackElement.getBoundingClientRect()}onTrackClicked(P,Z,He){return(0,La.of)(P).pipe(gs(this.pageProperty),(0,vr.U)(ut=>(ut-this.offset-Z/2)/this.size*He),(0,Yi.b)(ut=>{this.cmp.scrollTo({...this.mapToScrollToOption(ut),duration:(0,xr.su)(this.cmp.trackClickScrollDuration)})}))}}return te.\u0275fac=function(P){return new(P||te)(m.Y36(Fr),m.Y36(HTMLElement),m.Y36(Document))},te.\u0275dir=m.lG2({type:te}),te})(),Al=(()=>{class te extends Fa{constructor(P,Z,He){super(P,Z.nativeElement,He),this.cmp=P,this.document=He}get pageProperty(){return"pageX"}get offset(){return this.clientRect.left}get size(){return this.trackElement.clientWidth}mapToScrollToOption(P){return{left:P}}}return te.\u0275fac=function(P){return new(P||te)(m.Y36(Fr),m.Y36(m.SBq),m.Y36(F.K0))},te.\u0275dir=m.lG2({type:te,selectors:[["","scrollbarTrackX",""]],features:[m.qOj]}),te})(),As=(()=>{class te extends Fa{constructor(P,Z,He){super(P,Z.nativeElement,He),this.cmp=P,this.document=He}get pageProperty(){return"pageY"}get offset(){return this.clientRect.top}get size(){return this.trackElement.clientHeight}mapToScrollToOption(P){return{top:P}}}return te.\u0275fac=function(P){return new(P||te)(m.Y36(Fr),m.Y36(m.SBq),m.Y36(F.K0))},te.\u0275dir=m.lG2({type:te,selectors:[["","scrollbarTrackY",""]],features:[m.qOj]}),te})(),Ua=(()=>{class te{constructor(P,Z,He,ut){this.cmp=P,this.track=Z,this.thumbElement=He,this.document=ut,this._dragging=new Fi.x,this.dragging=this._dragging.pipe((0,Yo.x)())}get trackMax(){return this.track.size-this.size}get clientRect(){return this.thumbElement.getBoundingClientRect()}get clicked(){return(0,Ui.R)(this.thumbElement,"mousedown",{passive:!0}).pipe(Jo())}update(){const P=function bl(te,O,P){return Math.max(~~(te/O*te),P)}(this.track.size,this.viewportScrollSize,this.cmp.minThumbSize),Z=function fa(te,O,P){return te*P/O}(this.viewportScrollOffset,this.viewportScrollMax,this.trackMax);ua.Z.schedule(()=>this.updateStyles(this.handleDirection(Z,this.trackMax),P))}dragged(P){let Z,He;const ut=(0,La.of)(P).pipe(fl(this.document),(0,Yi.b)(()=>{Z=this.trackMax,He=this.viewportScrollMax,this.setDragging(!0)})),It=(0,Ui.R)(this.document,"mousemove",{capture:!0,passive:!0}).pipe(Jo()),Rt=(0,Ui.R)(this.document,"mouseup",{capture:!0}).pipe(Jo(),Xl(this.document),(0,Yi.b)(()=>this.setDragging(!1)));return ut.pipe(gs(this.pageProperty),(0,vr.U)(jt=>jt-this.dragStartOffset),(0,Kl.z)(jt=>It.pipe(gs(this.clientProperty),(0,vr.U)(Xt=>Xt-this.track.offset),(0,vr.U)(Xt=>He*(Xt-jt)/Z),(0,vr.U)(Xt=>this.handleDrag(Xt,He)),(0,Yi.b)(Xt=>this.scrollTo(Xt)),(0,Dr.R)(Rt))))}}return te.\u0275fac=function(P){return new(P||te)(m.Y36(Fr),m.Y36(Fa),m.Y36(HTMLElement),m.Y36(Document))},te.\u0275dir=m.lG2({type:te,outputs:{dragging:"dragging"}}),te})(),ic=(()=>{class te extends Ua{constructor(P,Z,He,ut,It){super(P,Z,He.nativeElement,ut),this.cmp=P,this.track=Z,this.element=He,this.document=ut,this.dir=It}get clientProperty(){return"clientX"}get pageProperty(){return"pageX"}get viewportScrollSize(){return this.cmp.viewport.scrollWidth}get viewportScrollOffset(){return this.cmp.viewport.scrollLeft}get viewportScrollMax(){return this.cmp.viewport.scrollMaxX}get dragStartOffset(){return this.clientRect.left+this.document.defaultView.pageXOffset||0}get size(){return this.thumbElement.clientWidth}updateStyles(P,Z){this.thumbElement.style.width=`${Z}px`,this.thumbElement.style.transform=`translate3d(${P}px, 0, 0)`}handleDrag(P,Z){if("rtl"===this.dir.value){if(1===this.cmp.manager.rtlScrollAxisType)return P-Z;if(2===this.cmp.manager.rtlScrollAxisType)return Z-P}return P}handleDirection(P,Z){if("rtl"===this.dir.value){if(2===this.cmp.manager.rtlScrollAxisType)return-P;if(0===this.cmp.manager.rtlScrollAxisType)return P-Z}return P}setDragging(P){this.cmp.setDragging({horizontalDragging:P})}scrollTo(P){this.cmp.viewport.scrollXTo(P)}}return te.\u0275fac=function(P){return new(P||te)(m.Y36(Fr),m.Y36(Al),m.Y36(m.SBq),m.Y36(F.K0),m.Y36(ar.Is))},te.\u0275dir=m.lG2({type:te,selectors:[["","scrollbarThumbX",""]],features:[m.qOj]}),te})(),rc=(()=>{class te extends Ua{constructor(P,Z,He,ut){super(P,Z,He.nativeElement,ut),this.cmp=P,this.track=Z,this.element=He,this.document=ut}get pageProperty(){return"pageY"}get viewportScrollSize(){return this.cmp.viewport.scrollHeight}get viewportScrollOffset(){return this.cmp.viewport.scrollTop}get viewportScrollMax(){return this.cmp.viewport.scrollMaxY}get clientProperty(){return"clientY"}get dragStartOffset(){return this.clientRect.top+this.document.defaultView.pageYOffset||0}get size(){return this.thumbElement.clientHeight}updateStyles(P,Z){this.thumbElement.style.height=`${Z}px`,this.thumbElement.style.transform=`translate3d(0px, ${P}px, 0)`}handleDrag(P){return P}handleDirection(P){return P}setDragging(P){this.cmp.setDragging({verticalDragging:P})}scrollTo(P){this.cmp.viewport.scrollYTo(P)}}return te.\u0275fac=function(P){return new(P||te)(m.Y36(Fr),m.Y36(As),m.Y36(m.SBq),m.Y36(F.K0))},te.\u0275dir=m.lG2({type:te,selectors:[["","scrollbarThumbY",""]],features:[m.qOj]}),te})(),id=(()=>{class te{constructor(P,Z,He,ut,It){this.el=P,this.cmp=Z,this.platform=He,this.document=ut,this.zone=It,this.destroyed=new Fi.x}activatePointerEvents(){let P,Z,He;return"viewport"===this.cmp.pointerEventsMethod?(this.viewportTrackClicked=new Fi.x,this.viewportThumbClicked=new Fi.x,this.cmp.viewport.activatePointerEvents(this.cmp.viewportPropagateMouseMove,this.destroyed),P=this.viewportThumbClicked,Z=this.viewportTrackClicked,He=this.cmp.viewport.hovered.pipe((0,vr.U)(ut=>!!ut&&ml(ut,this.el.getBoundingClientRect())),(0,Yo.x)(),(0,Yi.b)(ut=>this.document.onselectstart=ut?()=>!1:null)),this.cmp.viewport.clicked.pipe((0,Yi.b)(ut=>{ut?ml(ut,this.thumb.clientRect)?this.viewportThumbClicked.next(ut):ml(ut,this.track.clientRect)&&(this.cmp.setClicked(!0),this.viewportTrackClicked.next(ut)):this.cmp.setClicked(!1)}),(0,Dr.R)(this.destroyed)).subscribe()):(P=this.thumb.clicked,Z=this.track.clicked,He=this.hovered),(0,qr.T)(He.pipe((0,Yi.b)(ut=>this.setHovered(ut))),P.pipe((0,Mo.w)(ut=>this.thumb.dragged(ut))),Z.pipe((0,Mo.w)(ut=>this.track.onTrackClicked(ut,this.thumb.size,this.viewportScrollSize))))}get hovered(){const P=(0,Ui.R)(this.el,"mouseenter",{passive:!0}).pipe(Jo(),(0,vr.U)(()=>!0)),Z=(0,Ui.R)(this.el,"mouseleave",{passive:!0}).pipe(Jo(),(0,vr.U)(()=>!1));return(0,qr.T)(P,Z)}ngOnInit(){this.zone.runOutsideAngular(()=>{!(this.platform.IOS||this.platform.ANDROID)&&!this.cmp.pointerEventsDisabled&&this.activatePointerEvents().pipe((0,Dr.R)(this.destroyed)).subscribe(),(0,qr.T)(this.cmp.scrolled,this.cmp.updated).pipe((0,Yi.b)(()=>{var P;return null===(P=this.thumb)||void 0===P?void 0:P.update()}),(0,Dr.R)(this.destroyed)).subscribe()})}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete(),this.viewportThumbClicked&&this.viewportTrackClicked&&(this.viewportTrackClicked.complete(),this.viewportThumbClicked.complete())}}return te.\u0275fac=function(P){return new(P||te)(m.Y36(HTMLElement),m.Y36(Fr),m.Y36(er.t4),m.Y36(Document),m.Y36(m.R0b))},te.\u0275dir=m.lG2({type:te}),te})(),bs=(()=>{class te extends id{constructor(P,Z,He,ut,It){super(P.nativeElement,Z,He,ut,It),this.cmp=Z,this.platform=He,this.document=ut,this.zone=It}get viewportScrollSize(){return this.cmp.viewport.scrollHeight}setHovered(P){this.cmp.setHovered({verticalHovered:P})}}return te.\u0275fac=function(P){return new(P||te)(m.Y36(m.SBq),m.Y36(Fr),m.Y36(er.t4),m.Y36(F.K0),m.Y36(m.R0b))},te.\u0275cmp=m.Xpm({type:te,selectors:[["scrollbar-y"]],viewQuery:function(P,Z){if(1&P&&(m.Gf(As,7),m.Gf(rc,7)),2&P){let He;m.iGM(He=m.CRH())&&(Z.track=He.first),m.iGM(He=m.CRH())&&(Z.thumb=He.first)}},hostVars:2,hostBindings:function(P,Z){2&P&&m.ekj("scrollbar-control",!0)},features:[m.qOj],decls:2,vars:6,consts:[["scrollbarTrackY",""],["scrollbarThumbY",""]],template:function(P,Z){1&P&&(m.TgZ(0,"div",0),m._UZ(1,"div",1),m.qZA()),2&P&&(m.Gre("ng-scrollbar-track ",Z.cmp.trackClass,""),m.xp6(1),m.Gre("ng-scrollbar-thumb ",Z.cmp.thumbClass,""))},dependencies:[rc,As],styles:[".ng-scrollbar-wrapper>scrollbar-y.scrollbar-control{width:var(--vertical-scrollbar-total-size)} .ng-scrollbar-wrapper>scrollbar-y.scrollbar-control>.ng-scrollbar-track{width:var(--vertical-scrollbar-size);height:calc(100% - var(--scrollbar-padding) * 2)} .ng-scrollbar-wrapper>scrollbar-y.scrollbar-control>.ng-scrollbar-track>.ng-scrollbar-thumb{height:0;width:100%} .ng-scrollbar-wrapper[verticalHovered=true]>scrollbar-y.scrollbar-control .ng-scrollbar-thumb, .ng-scrollbar-wrapper[verticalDragging=true]>scrollbar-y.scrollbar-control .ng-scrollbar-thumb{background-color:var(--scrollbar-thumb-hover-color)} .ng-scrollbar-wrapper[deactivated=false]>scrollbar-y.scrollbar-control{top:0;bottom:0} .ng-scrollbar-wrapper[deactivated=false][dir=ltr]>scrollbar-y.scrollbar-control{right:0;left:initial} .ng-scrollbar-wrapper[deactivated=false][dir=ltr][position=invertY]>scrollbar-y.scrollbar-control, .ng-scrollbar-wrapper[deactivated=false][dir=ltr][position=invertAll]>scrollbar-y.scrollbar-control{left:0;right:initial} .ng-scrollbar-wrapper[deactivated=false][dir=rtl]>scrollbar-y.scrollbar-control{left:0;right:initial} .ng-scrollbar-wrapper[deactivated=false][dir=rtl][position=invertY]>scrollbar-y.scrollbar-control, .ng-scrollbar-wrapper[deactivated=false][dir=rtl][position=invertAll]>scrollbar-y.scrollbar-control{left:initial;right:0} .ng-scrollbar-wrapper[deactivated=false][track=all]>scrollbar-y.scrollbar-control[fit=true]{bottom:var(--scrollbar-total-size);top:0} .ng-scrollbar-wrapper[deactivated=false][track=all][position=invertX]>scrollbar-y.scrollbar-control[fit=true], .ng-scrollbar-wrapper[deactivated=false][track=all][position=invertAll]>scrollbar-y.scrollbar-control[fit=true]{top:var(--scrollbar-total-size);bottom:0}"],changeDetection:0}),te})(),Cl=(()=>{class te extends id{constructor(P,Z,He,ut,It){super(P.nativeElement,Z,He,ut,It),this.cmp=Z,this.platform=He,this.document=ut,this.zone=It}get viewportScrollSize(){return this.cmp.viewport.scrollWidth}setHovered(P){this.cmp.setHovered({horizontalHovered:P})}}return te.\u0275fac=function(P){return new(P||te)(m.Y36(m.SBq),m.Y36(Fr),m.Y36(er.t4),m.Y36(F.K0),m.Y36(m.R0b))},te.\u0275cmp=m.Xpm({type:te,selectors:[["scrollbar-x"]],viewQuery:function(P,Z){if(1&P&&(m.Gf(Al,7),m.Gf(ic,7)),2&P){let He;m.iGM(He=m.CRH())&&(Z.track=He.first),m.iGM(He=m.CRH())&&(Z.thumb=He.first)}},hostVars:2,hostBindings:function(P,Z){2&P&&m.ekj("scrollbar-control",!0)},features:[m.qOj],decls:2,vars:6,consts:[["scrollbarTrackX",""],["scrollbarThumbX",""]],template:function(P,Z){1&P&&(m.TgZ(0,"div",0),m._UZ(1,"div",1),m.qZA()),2&P&&(m.Gre("ng-scrollbar-track ",Z.cmp.trackClass,""),m.xp6(1),m.Gre("ng-scrollbar-thumb ",Z.cmp.thumbClass,""))},dependencies:[ic,Al],styles:[".ng-scrollbar-wrapper>scrollbar-x.scrollbar-control{height:var(--horizontal-scrollbar-total-size)} .ng-scrollbar-wrapper>scrollbar-x.scrollbar-control>.ng-scrollbar-track{height:var(--horizontal-scrollbar-size);width:calc(100% - var(--scrollbar-padding) * 2)} .ng-scrollbar-wrapper>scrollbar-x.scrollbar-control>.ng-scrollbar-track>.ng-scrollbar-thumb{width:0;height:100%} .ng-scrollbar-wrapper[horizontalHovered=true]>scrollbar-x.scrollbar-control .ng-scrollbar-thumb, .ng-scrollbar-wrapper[horizontalDragging=true]>scrollbar-x.scrollbar-control .ng-scrollbar-thumb{background-color:var(--scrollbar-thumb-hover-color)} .ng-scrollbar-wrapper[position=invertX]>scrollbar-x.scrollbar-control, .ng-scrollbar-wrapper[position=invertAll]>scrollbar-x.scrollbar-control{top:0;bottom:initial} .ng-scrollbar-wrapper[deactivated=false]>scrollbar-x.scrollbar-control{left:0;right:0;bottom:0;top:initial} .ng-scrollbar-wrapper[deactivated=false][position=invertX]>scrollbar-x.scrollbar-control, .ng-scrollbar-wrapper[deactivated=false][position=invertAll]>scrollbar-x.scrollbar-control{top:0;bottom:initial} .ng-scrollbar-wrapper[deactivated=false][track=all][dir=ltr]>scrollbar-x.scrollbar-control[fit=true]{right:var(--scrollbar-total-size);left:0} .ng-scrollbar-wrapper[deactivated=false][track=all][dir=ltr][position=invertY]>scrollbar-x.scrollbar-control[fit=true], .ng-scrollbar-wrapper[deactivated=false][track=all][dir=ltr][position=invertAll]>scrollbar-x.scrollbar-control[fit=true]{left:var(--scrollbar-total-size);right:0} .ng-scrollbar-wrapper[deactivated=false][track=all][dir=rtl]>scrollbar-x.scrollbar-control[fit=true]{left:var(--scrollbar-total-size);right:0} .ng-scrollbar-wrapper[deactivated=false][track=all][dir=rtl][position=invertY]>scrollbar-x.scrollbar-control[fit=true], .ng-scrollbar-wrapper[deactivated=false][track=all][dir=rtl][position=invertAll]>scrollbar-x.scrollbar-control[fit=true]{right:var(--scrollbar-total-size);left:0}"],changeDetection:0}),te})(),oc=(()=>{class te{constructor(P,Z,He,ut,It,Rt){this.el=P,this.zone=Z,this.changeDetectorRef=He,this.dir=ut,this.smoothScroll=It,this.manager=Rt,this._disabled=!1,this._sensorDisabled=this.manager.globalOptions.sensorDisabled,this._pointerEventsDisabled=this.manager.globalOptions.pointerEventsDisabled,this._autoHeightDisabled=this.manager.globalOptions.autoHeightDisabled,this._autoWidthDisabled=this.manager.globalOptions.autoWidthDisabled,this._viewportPropagateMouseMove=this.manager.globalOptions.viewportPropagateMouseMove,this.viewClass=this.manager.globalOptions.viewClass,this.trackClass=this.manager.globalOptions.trackClass,this.thumbClass=this.manager.globalOptions.thumbClass,this.minThumbSize=this.manager.globalOptions.minThumbSize,this.trackClickScrollDuration=this.manager.globalOptions.trackClickScrollDuration,this.pointerEventsMethod=this.manager.globalOptions.pointerEventsMethod,this.track=this.manager.globalOptions.track,this.visibility=this.manager.globalOptions.visibility,this.appearance=this.manager.globalOptions.appearance,this.position=this.manager.globalOptions.position,this.sensorDebounce=this.manager.globalOptions.sensorDebounce,this.scrollAuditTime=this.manager.globalOptions.scrollAuditTime,this.updated=new m.vpe,this.state={},this.destroyed=new Fi.x}get disabled(){return this._disabled}set disabled(P){this._disabled=(0,xr.Ig)(P)}get sensorDisabled(){return this._sensorDisabled}set sensorDisabled(P){this._sensorDisabled=(0,xr.Ig)(P)}get pointerEventsDisabled(){return this._pointerEventsDisabled}set pointerEventsDisabled(P){this._pointerEventsDisabled=(0,xr.Ig)(P)}get viewportPropagateMouseMove(){return this._viewportPropagateMouseMove}set viewportPropagateMouseMove(P){this._viewportPropagateMouseMove=(0,xr.Ig)(P)}get autoHeightDisabled(){return this._autoHeightDisabled}set autoHeightDisabled(P){this._autoHeightDisabled=(0,xr.Ig)(P)}get autoWidthDisabled(){return this._autoWidthDisabled}set autoWidthDisabled(P){this._autoWidthDisabled=(0,xr.Ig)(P)}get nativeElement(){return this.el.nativeElement}updateState(){let P=!1,Z=!1,He=!1,ut=!1;("all"===this.track||"vertical"===this.track)&&(He=this.viewport.scrollHeight>this.viewport.clientHeight,P="always"===this.visibility||He),("all"===this.track||"horizontal"===this.track)&&(ut=this.viewport.scrollWidth>this.viewport.clientWidth,Z="always"===this.visibility||ut),this.setState({position:this.position,track:this.track,appearance:this.appearance,visibility:this.visibility,deactivated:this.disabled,dir:this.dir.value,pointerEventsMethod:this.pointerEventsMethod,verticalUsed:P,horizontalUsed:Z,isVerticallyScrollable:He,isHorizontallyScrollable:ut})}setState(P){this.state={...this.state,...P},this.changeDetectorRef.detectChanges()}getScrolledByDirection(P){let Z;return this.scrolled.pipe((0,Yi.b)(He=>Z=He),gs("target",P),(0,Na.G)(),(0,_s.h)(([He,ut])=>He!==ut),(0,vr.U)(()=>Z))}setHovered(P){this.zone.run(()=>this.setState({...P}))}setDragging(P){this.zone.run(()=>this.setState({...P}))}setClicked(P){this.zone.run(()=>this.setState({scrollbarClicked:P}))}ngOnInit(){this.zone.runOutsideAngular(()=>{this.customViewPort?(this.viewport=this.customViewPort,this.defaultViewPort.setAsWrapper()):this.viewport=this.defaultViewPort,this.viewport.setAsViewport(this.viewClass);let P=(0,Ui.R)(this.viewport.nativeElement,"scroll",{passive:!0});P=this.scrollAuditTime?P.pipe((0,ql.e)(this.scrollAuditTime)):P,this.scrolled=P.pipe((0,Dr.R)(this.destroyed)),this.verticalScrolled=this.getScrolledByDirection("scrollTop"),this.horizontalScrolled=this.getScrolledByDirection("scrollLeft")})}ngOnChanges(P){this.viewport&&this.update()}ngAfterViewInit(){this.update(),this.dir.change.pipe((0,Yi.b)(()=>this.update()),(0,Dr.R)(this.destroyed)).subscribe()}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete()}update(){this.autoHeightDisabled||this.updateHeight(),this.autoWidthDisabled||this.updateWidth(),this.updateState(),this.updated.next()}scrollTo(P){return this.smoothScroll.scrollTo(this.viewport.nativeElement,P)}scrollToElement(P,Z){return this.smoothScroll.scrollToElement(this.viewport.nativeElement,P,Z)}updateHeight(){this.nativeElement.style.height="standard"===this.appearance&&this.scrollbarX?`${this.viewport.contentHeight+this.scrollbarX.nativeElement.clientHeight}px`:`${this.viewport.contentHeight}px`}updateWidth(){this.nativeElement.style.width="standard"===this.appearance&&this.scrollbarY?`${this.viewport.contentWidth+this.scrollbarY.nativeElement.clientWidth}px`:`${this.viewport.contentWidth}px`}}return te.\u0275fac=function(P){return new(P||te)(m.Y36(m.SBq),m.Y36(m.R0b),m.Y36(m.sBO),m.Y36(ar.Is),m.Y36(Ql),m.Y36(ec))},te.\u0275cmp=m.Xpm({type:te,selectors:[["ng-scrollbar"]],contentQueries:function(P,Z,He){if(1&P&&m.Suo(He,gl,7),2&P){let ut;m.iGM(ut=m.CRH())&&(Z.customViewPort=ut.first)}},viewQuery:function(P,Z){if(1&P&&(m.Gf(ed,5,m.SBq),m.Gf(td,5,m.SBq),m.Gf(gl,7)),2&P){let He;m.iGM(He=m.CRH())&&(Z.scrollbarY=He.first),m.iGM(He=m.CRH())&&(Z.scrollbarX=He.first),m.iGM(He=m.CRH())&&(Z.defaultViewPort=He.first)}},hostVars:2,hostBindings:function(P,Z){2&P&&m.ekj("ng-scrollbar",!0)},inputs:{disabled:"disabled",sensorDisabled:"sensorDisabled",pointerEventsDisabled:"pointerEventsDisabled",viewportPropagateMouseMove:"viewportPropagateMouseMove",autoHeightDisabled:"autoHeightDisabled",autoWidthDisabled:"autoWidthDisabled",viewClass:"viewClass",trackClass:"trackClass",thumbClass:"thumbClass",minThumbSize:"minThumbSize",trackClickScrollDuration:"trackClickScrollDuration",pointerEventsMethod:"pointerEventsMethod",track:"track",visibility:"visibility",appearance:"appearance",position:"position",sensorDebounce:"sensorDebounce",scrollAuditTime:"scrollAuditTime"},outputs:{updated:"updated"},exportAs:["ngScrollbar"],features:[m._Bn([{provide:Fr,useExisting:te}]),m.TTD],ngContentSelectors:xh,decls:6,vars:4,consts:[[1,"ng-scrollbar-wrapper",3,"ngAttr"],[1,"ng-scroll-viewport-wrapper",3,"sensorDebounce","sensorDisabled","resizeSensor"],["scrollViewport","","hideNativeScrollbar",""],[4,"ngIf"],["scrollbarX",""],["scrollbarY",""]],template:function(P,Z){1&P&&(m.F$t(),m.TgZ(0,"div",0)(1,"div",1),m.NdJ("resizeSensor",function(){return Z.update()}),m.TgZ(2,"div",2)(3,"div"),m.Hsn(4),m.qZA()()(),m.YNc(5,nd,3,2,"ng-container",3),m.qZA()),2&P&&(m.Q6J("ngAttr",Z.state),m.xp6(1),m.Q6J("sensorDebounce",Z.sensorDebounce)("sensorDisabled",Z.sensorDisabled),m.xp6(4),m.Q6J("ngIf",!Z.disabled))},dependencies:[F.O5,gl,Dh,nc,Ph,bs,Cl],styles:[".ng-scrollbar-measure{scrollbar-width:none;-ms-overflow-style:none} .ng-scrollbar-measure::-webkit-scrollbar{display:none}[_nghost-%COMP%]{--scrollbar-border-radius: 7px;--scrollbar-padding: 4px;--scrollbar-track-color: transparent;--scrollbar-thumb-color: rgba(0, 0, 0, .2);--scrollbar-thumb-hover-color: var(--scrollbar-thumb-color);--scrollbar-size: 5px;--scrollbar-hover-size: var(--scrollbar-size);--scrollbar-overscroll-behavior: initial;--scrollbar-transition-duration: .4s;--scrollbar-transition-delay: .8s;--scrollbar-thumb-transition: height ease-out .15s, width ease-out .15s;--scrollbar-track-transition: height ease-out .15s, width ease-out .15s;display:block;position:relative;height:100%;max-height:100%;max-width:100%;box-sizing:content-box!important}[_nghost-%COMP%] > .ng-scrollbar-wrapper[_ngcontent-%COMP%]{--scrollbar-total-size: calc(var(--scrollbar-size) + var(--scrollbar-padding) * 2);--vertical-scrollbar-size: var(--scrollbar-size);--horizontal-scrollbar-size: var(--scrollbar-size);--vertical-scrollbar-total-size: calc(var(--vertical-scrollbar-size) + var(--scrollbar-padding) * 2);--horizontal-scrollbar-total-size: calc(var(--horizontal-scrollbar-size) + var(--scrollbar-padding) * 2)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalHovered=true][_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalDragging=true][_ngcontent-%COMP%]{--vertical-scrollbar-size: var(--scrollbar-hover-size);--vertical-scrollbar-total-size: calc(var(--vertical-scrollbar-size) + var(--scrollbar-padding) * 2);cursor:default}[_nghost-%COMP%] > .ng-scrollbar-wrapper[horizontalHovered=true][_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[horizontalDragging=true][_ngcontent-%COMP%]{--horizontal-scrollbar-size: var(--scrollbar-hover-size);--horizontal-scrollbar-total-size: calc(var(--horizontal-scrollbar-size) + var(--scrollbar-padding) * 2);cursor:default}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=ltr][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{left:0;right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{padding-right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=rtl][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{left:var(--scrollbar-total-size);right:0}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{padding-left:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=ltr][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=ltr][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{left:var(--scrollbar-total-size);right:0}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{padding-left:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=rtl][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=rtl][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{left:0;right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{padding-right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{top:0;bottom:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{padding-bottom:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertX][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertAll][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{top:var(--scrollbar-total-size);bottom:0}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertX][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertX][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertAll][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertAll][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{padding-top:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{scrollbar-width:none;-ms-overflow-style:none}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%]::-webkit-scrollbar, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport::-webkit-scrollbar{display:none}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-native-scrollbar-hider[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-native-scrollbar-hider{bottom:var(--native-scrollbar-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][verticalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-native-scrollbar-hider[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][verticalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-native-scrollbar-hider{left:0;right:var(--native-scrollbar-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][verticalUsed=true][dir=rtl][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-native-scrollbar-hider[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][verticalUsed=true][dir=rtl][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-native-scrollbar-hider{right:0;left:var(--native-scrollbar-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][visibility=hover][_ngcontent-%COMP%] > .scrollbar-control[_ngcontent-%COMP%]{opacity:0;transition-property:opacity;transition-duration:var(--scrollbar-transition-duration);transition-delay:var(--scrollbar-transition-delay)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][visibility=hover][_ngcontent-%COMP%]:hover > .scrollbar-control[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][visibility=hover][_ngcontent-%COMP%]:active > .scrollbar-control[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][visibility=hover][_ngcontent-%COMP%]:focus > .scrollbar-control[_ngcontent-%COMP%]{opacity:1;transition-duration:var(--scrollbar-transition-duration);transition-delay:0ms}[_nghost-%COMP%] > .ng-scrollbar-wrapper[horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{overflow-x:auto;overflow-y:hidden}[_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{overflow-y:auto;overflow-x:hidden}[_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalUsed=true][horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalUsed=true][horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{overflow:auto}.ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{overflow:hidden}.ng-scroll-viewport[_ngcontent-%COMP%]{-webkit-overflow-scrolling:touch;contain:strict;will-change:scroll-position;overscroll-behavior:var(--scrollbar-overscroll-behavior)} .ng-scroll-content{position:relative!important;display:inline-block;min-width:100%}.ng-scrollbar-wrapper[_ngcontent-%COMP%], .ng-scroll-viewport-wrapper[_ngcontent-%COMP%], .ng-scroll-layer[_ngcontent-%COMP%], .ng-scroll-viewport{position:absolute;left:0;right:0;top:0;bottom:0}",".ng-scrollbar-wrapper[pointerEventsMethod=viewport]>.scrollbar-control{pointer-events:none} .ng-scrollbar-wrapper[horizontalDragging=true]>.ng-scroll-viewport-wrapper>.ng-scroll-viewport, .ng-scrollbar-wrapper[horizontalDragging=true]>.ng-scroll-viewport-wrapper>*>*> .ng-scroll-viewport, .ng-scrollbar-wrapper[verticalDragging=true]>.ng-scroll-viewport-wrapper>.ng-scroll-viewport, .ng-scrollbar-wrapper[verticalDragging=true]>.ng-scroll-viewport-wrapper>*>*> .ng-scroll-viewport, .ng-scrollbar-wrapper[scrollbarClicked=true]>.ng-scroll-viewport-wrapper>.ng-scroll-viewport, .ng-scrollbar-wrapper[scrollbarClicked=true]>.ng-scroll-viewport-wrapper>*>*> .ng-scroll-viewport{-webkit-user-select:none;-moz-user-select:none;user-select:none} .ng-scrollbar-wrapper>.scrollbar-control{position:absolute;display:flex;justify-content:center;align-items:center;transition:var(--scrollbar-track-transition)} .ng-scrollbar-wrapper>.scrollbar-control[scrollable=false] .ng-scrollbar-thumb{display:none} .ng-scrollbar-track{height:100%;width:100%;z-index:1;border-radius:var(--scrollbar-border-radius);background-color:var(--scrollbar-track-color);overflow:hidden;transition:var(--scrollbar-track-transition);cursor:default} .ng-scrollbar-thumb{box-sizing:border-box;position:relative;border-radius:inherit;background-color:var(--scrollbar-thumb-color);transform:translateZ(0);transition:var(--scrollbar-thumb-transition)}"],changeDetection:0}),te})(),ac=(()=>{class te{static withConfig(P){return{ngModule:te,providers:[{provide:Va,useValue:P}]}}}return te.\u0275fac=function(P){return new(P||te)},te.\u0275mod=m.oAB({type:te}),te.\u0275inj=m.cJS({imports:[F.ez,ar.vT,Vr.eL,er.ud,hl]}),te})();var vl=u(51214),$o=u(73228),rd=u(36769),od=u(22465);function ad(te,O){if(1&te){const P=m.EpF();m.TgZ(0,"div")(1,"perun-web-apps-notification",2),m.NdJ("closeNotification",function(){const ut=m.CHM(P).index,It=m.oxw();return m.KtG(It.removeNotification(ut))}),m.qZA()()}if(2&te){const P=O.$implicit;m.Q6J("@flyInOut",void 0),m.xp6(1),m.Q6J("data",P)("newNotification",!0)}}const sd=function(te){return{top:te}};let ld=(()=>{class te{constructor(P,Z){this.notificator=P,this.notificationStorageService=Z,this.displayWarning=!1,this.minWidth=992,this.notifications=[],this.mobileView=!1,this.notificator.addNotification.subscribe(He=>{this.processNotification(He)}),this.getScreenSize()}getScreenSize(){this.mobileView=window.innerWidth<=this.minWidth}getNotificatorTop(){return this.mobileView?"initial":this.displayWarning?"112px":"64px"}removeNotification(P){this.notifications.splice(P,1)}processNotification(P){this.notifications.push(P),this.notificationStorageService.storeNotification(P)}}return te.\u0275fac=function(P){return new(P||te)(m.Y36(g.V6),m.Y36(g.SZ))},te.\u0275cmp=m.Xpm({type:te,selectors:[["perun-web-apps-notificator"]],hostBindings:function(P,Z){1&P&&m.NdJ("resize",function(ut){return Z.getScreenSize(ut)},!1,m.Jf7)},inputs:{displayWarning:"displayWarning"},decls:2,vars:4,consts:[["id","notificator",3,"ngStyle"],[4,"ngFor","ngForOf"],[3,"data","newNotification","closeNotification"]],template:function(P,Z){1&P&&(m.TgZ(0,"div",0),m.YNc(1,ad,2,3,"div",1),m.qZA()),2&P&&(m.Q6J("ngStyle",m.VKq(2,sd,Z.getNotificatorTop())),m.xp6(1),m.Q6J("ngForOf",Z.notifications))},dependencies:[F.sg,F.PC,od.c],styles:["#notificator[_ngcontent-%COMP%]{position:fixed;right:0;z-index:1001;padding:8px}@media (max-width: 768px){#notificator[_ngcontent-%COMP%]{width:100%;top:auto;top:initial;bottom:0}}"],data:{animation:[rd.Pd]}}),te})();var uo=u(46453);const ma={provide:ze.TP,useExisting:(0,m.Gpc)(()=>g.yC),multi:!0};function cd(te){return new st(te,"./assets/i18n/",".json")}function dd(te){const O={basePath:te.getProperty("api_url")};return new p.VK(O)}const ud=te=>()=>te.initialize();let hd=(()=>{class te{constructor(P,Z){this.customIconService=P,this.translate=Z,this.translate.setDefaultLang("en"),this.translate.use("en"),this.customIconService.registerPerunRefreshIcon()}}return te.\u0275fac=function(P){return new(P||te)(m.LFG(g.EB),m.LFG(v.sK))},te.\u0275mod=m.oAB({type:te,bootstrap:[ie.y]}),te.\u0275inj=m.cJS({providers:[Di,{provide:m.ip1,useFactory:ud,multi:!0,deps:[Di]},{provide:p.VK,useFactory:dd,deps:[g.d6]},{provide:A.wN,useClass:xt},g.EB,{provide:Bt,useClass:g.sM},g.yC,ma,{provide:vl.Hy,useFactory:()=>localStorage}],imports:[Oa,e.b2,ze.JF,Ae.m,al,Le,$.Ps,Cr,v.aw.forRoot({loader:{provide:v.Zw,useFactory:cd,deps:[ze.eN]}}),p.au,i.ez,l,ac.withConfig({autoWidthDisabled:!1,visibility:"hover"}),vl.zr.forRoot()]}),te})();m.B6R(ie.y,function(){return[F.O5,F.PC,A.lC,$.Hw,$o.V,G.JX,G.TM,G.Rh,y.$,ld,uo.Y,fe,oc]},[]),(0,m.G48)(),e.q6().bootstrapModule(hd).catch(te=>console.error(te))},11243:(Qe,he,u)=>{"use strict";u.d(he,{r:()=>A});var e=u(36895),m=u(94650);let A=(()=>{class w{}return w.\u0275fac=function(g){return new(g||w)},w.\u0275mod=m.oAB({type:w}),w.\u0275inj=m.cJS({imports:[e.ez]}),w})()},6335:(Qe,he,u)=>{"use strict";u.d(he,{Ng:()=>w,Rc:()=>m,pI:()=>A});var e=u(94650);const m="GUI_CONFIG.PREF_PAGE_SIZE",A="GUI_CONFIG.PREF_PAGE_SIZE.";let w=(()=>{class p{getString(T){return localStorage.getItem(T)}getNumber(T){return parseInt(localStorage.getItem(T),10)}setNumber(T,E){localStorage.setItem(T,E.toString())}}return p.\u0275fac=function(T){return new(T||p)},p.\u0275prov=e.Yz7({token:p,factory:p.\u0275fac,providedIn:"root"}),p})()},10036:(Qe,he,u)=>{"use strict";u.d(he,{$I:()=>Mt,$V:()=>k,$t:()=>Gt,AA:()=>R,Ad:()=>pe,Af:()=>L,Aj:()=>Be,BV:()=>Te,Bf:()=>t,CE:()=>fe,CP:()=>w,Cf:()=>De,DR:()=>it,FF:()=>rt,H2:()=>z,HC:()=>re,HE:()=>_t,Hi:()=>ae,Is:()=>Oe,It:()=>_,Iz:()=>s,JO:()=>X,Jf:()=>xe,KE:()=>B,M8:()=>Le,NG:()=>J,NL:()=>ke,O7:()=>V,O9:()=>Xe,RS:()=>de,S7:()=>Ie,Sb:()=>N,US:()=>d,VR:()=>v,W1:()=>ge,Wv:()=>_e,XH:()=>Qt,YF:()=>T,_7:()=>Me,_c:()=>Ae,aL:()=>ot,bf:()=>Y,bj:()=>hn,cL:()=>Ce,d7:()=>le,dB:()=>A,dI:()=>G,dK:()=>st,e5:()=>i,ee:()=>qe,eq:()=>Tt,g:()=>ie,gB:()=>Q,gG:()=>y,gc:()=>E,iQ:()=>a,j1:()=>q,kO:()=>Ee,kZ:()=>$e,nT:()=>g,oK:()=>r,qV:()=>b,qy:()=>ce,rF:()=>Se,rc:()=>be,tY:()=>H,tw:()=>p,uC:()=>oe,uI:()=>an,uM:()=>D,v1:()=>S,vq:()=>ne,xt:()=>$,xx:()=>F,yW:()=>ze,z6:()=>c,zW:()=>Ue,zp:()=>l});var e=u(6335),m=u(94650);let A=(()=>{class Nt{constructor(yt){this.guiConfigService=yt}getTablePageSize(yt){const Ft=this.guiConfigService.getNumber(e.pI+yt);if(!isNaN(Ft))return Ft;const Kt=this.guiConfigService.getNumber(e.Rc);return isNaN(Kt)?10:Kt}setTablePageSize(yt,Ft){this.guiConfigService.setNumber(e.pI+yt,Ft)}}return Nt.\u0275fac=function(yt){return new(yt||Nt)(m.LFG(e.Ng))},Nt.\u0275prov=m.Yz7({token:Nt,factory:Nt.\u0275fac,providedIn:"root"}),Nt})();const w="0",p="1",g="2",T="3",E="4",S="5",R="6",v="7",D="8",F="9",z="10",$="11",G="12",q="13",_e="14",ce="15",Te="16",b="17",H="18",L="19",V="20",Q="21",ae="22",xe="23",ge="24",Se="25",Be="26",pe="27",$e="28",Ce="29",de="30",re="31",B="32",N="33",Me="34",Y="35",be="36",De="37",Tt="42",J="43",Xe="44",le="45",ne="46",ke="47",Ee="48",ot="49",it="50",oe="51",X="52",r="53",s="54",_="55",c="56",a="57",i="58",t="59",l="62",d="63",y="64",k="65",Ie="66",Ue="69",fe="71",Oe="72",Le="75",ie="76",Ae="77",st="78",ze="79",_t="80",qe="82",rt="83",Mt="84",Qt="85",Gt="86",an="87",hn="88"},36769:(Qe,he,u)=>{"use strict";u.d(he,{Ji:()=>p,Pd:()=>A,BQ:()=>m,Ly:()=>w,GH:()=>E,Ls:()=>S,SG:()=>T,es:()=>g});var e=u(37340);const m=(0,e.X$)("openClose",[(0,e.SB)("open",(0,e.oB)({overflow:"hidden"})),(0,e.SB)("closed",(0,e.oB)({height:"0px",overflow:"hidden"})),(0,e.eR)("open <=> closed",[(0,e.jt)(".3s ease-in")])]),A=(0,e.X$)("flyInOut",[(0,e.eR)(":enter",[(0,e.oB)({transform:"translateX(100%)"}),(0,e.jt)(".25s")]),(0,e.eR)(":leave",[(0,e.jt)(".5s",(0,e.oB)({transform:"translateX(100%)"}))])]),w=(0,e.X$)("rollInOut",[(0,e.eR)(":enter",[(0,e.oB)({height:"0px"}),(0,e.jt)(".25s")]),(0,e.eR)(":leave",[(0,e.jt)(".25s",(0,e.oB)({height:"0px"}))])]),p=(0,e.X$)("routeAnimations",[(0,e.eR)("* => *",[(0,e.oB)({position:"relative"}),(0,e.IO)(":enter",[(0,e.oB)({width:"100%",opacity:0})],{optional:!0}),(0,e.IO)(":leave",[(0,e.oB)({position:"absolute",width:"100%",opacity:1}),(0,e.jt)("0.15s",(0,e.oB)({position:"absolute",width:"100%",opacity:0}))],{optional:!0}),(0,e.IO)(":enter",[(0,e.oB)({position:"absolute",width:"100%",opacity:0}),(0,e.jt)("0.15s",(0,e.oB)({position:"absolute",width:"100%",opacity:1}))],{optional:!0})])]),g=(0,e.X$)("tagsOpenClose",[(0,e.SB)("open",(0,e.oB)({})),(0,e.SB)("closed",(0,e.oB)({width:"0px",height:"0px"})),(0,e.eR)("open <=> closed",[(0,e.jt)(".3s ease-in")])]),T=(0,e.X$)("switchAnimations",[(0,e.eR)("true => false",[(0,e.IO)(":enter, :leave",(0,e.oB)({})),(0,e.ru)([(0,e.IO)(":enter",[(0,e.oB)({transform:"translateX(-100%)"}),(0,e.jt)("1s ease-in-out",(0,e.oB)({transform:"translateX(0%)"}))],{optional:!0}),(0,e.IO)(":leave",[(0,e.oB)({transform:"translateX(0%)",position:"absolute"}),(0,e.jt)("1s ease-in-out",(0,e.oB)({transform:"translateX(100%)"}))],{optional:!0})])]),(0,e.eR)("false => true",[(0,e.IO)(":enter, :leave",(0,e.oB)({})),(0,e.ru)([(0,e.IO)(":enter",[(0,e.oB)({transform:"translateX(100%)"}),(0,e.jt)("1s ease-in-out",(0,e.oB)({transform:"translateX(0%)"}))],{optional:!0}),(0,e.IO)(":leave",[(0,e.oB)({transform:"translateX(0%)",position:"absolute"}),(0,e.jt)("1s ease-in-out",(0,e.oB)({transform:"translateX(-100%)"}))],{optional:!0})])])]),E=(0,e.X$)("slideInOutLeft",[(0,e.eR)(":enter",[(0,e.oB)({transform:"translateX(-100%)",position:"relative"}),(0,e.jt)("0.5s ease-in",(0,e.oB)({transform:"translateX(0%)"}))]),(0,e.eR)(":leave",[(0,e.jt)("0.5s ease-in",(0,e.oB)({transform:"translateX(-100%)"}))])]),S=(0,e.X$)("slideInOutRight",[(0,e.eR)(":enter",[(0,e.oB)({transform:"translateX(100%)",position:"fixed"}),(0,e.jt)("0.5s ease-in",(0,e.oB)({transform:"translateX(0%)"}))]),(0,e.eR)(":leave",[(0,e.oB)({transform:"translateX(-100%)",position:"relative"}),(0,e.jt)("0.5s ease-in",(0,e.oB)({transform:"translateX(100%)"}))])])},85147:(Qe,he,u)=>{"use strict";u.d(he,{Mw:()=>De.M,CZ:()=>y.C,qG:()=>r.qG,Sx:()=>oe.S,y9:()=>s,Nj:()=>Xe.N,ez:()=>Y,t$:()=>ne,N7:()=>l});var e=u(36895),m=u(56709),A=u(30671),w=u(89383),p=u(94364),g=u(96308),T=u(98739),E=u(51572),S=u(63189),R=u(97392),v=u(28255),D=u(4859),F=u(10266),z=u(59549),$=u(24006),G=u(284),q=u(77331),_e=u(73555),ce=u(3238),Te=u(19516),b=u(22465),H=u(64425),L=u(35423),V=u(99602),Q=u(71948),ae=u(84385),xe=u(33231),ge=u(67376),Se=u(65412),Be=u(9244),pe=u(60900),$e=u(42673),Ce=u(21029),de=u(94650),re=u(98380),B=u(34447);let N=(()=>{class Ie extends ce.LF{format(ct,Ue){return"input"===Ue?`${ct.getDate().toString()}.${(ct.getMonth()+1).toString()}.${ct.getFullYear()}`:ct.toDateString()}}return Ie.\u0275fac=function(){let tt;return function(Ue){return(tt||(tt=de.n5z(Ie)))(Ue||Ie)}}(),Ie.\u0275prov=de.Yz7({token:Ie,factory:Ie.\u0275fac}),Ie})();const Me={parse:{dateInput:{month:"short",year:"numeric",day:"numeric"}},display:{dateInput:"input",monthYearLabel:{year:"numeric",month:"numeric"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let Y=(()=>{class Ie{}return Ie.\u0275fac=function(ct){return new(ct||Ie)},Ie.\u0275mod=de.oAB({type:Ie}),Ie.\u0275inj=de.cJS({providers:[{provide:ce._A,useClass:N},{provide:ce.sG,useValue:Me}],imports:[e.ez,m.p9,A.p0,$.u5,q.Hi,_e._t,w.aw,p.Bz,g.JX,T.TU,E.Cq,S.r,R.Ps,v.Tx,D.ot,F.AV,z.lN,$.UX,G.c,ce.si,Te.d4,H.Iq,L.dp,V.FA,Q.Fk,ce.Ng,ae.LD,xe.Co,ge.Cl,Se.Is,Be.Je,pe.C,$e.g]}),Ie})();de.B6R(Ce.Us,[e.O5,re.w,D.lW,ge.xd,ge.x0,ge.N7,Se.uh,Se.H8,b.c],[w.X$,B.a]),u(53984);var De=u(43532),Xe=(u(38719),u(21963),u(28820),u(63167),u(62109),u(80275),u(53599)),le=u(69723);let ne=(()=>{class Ie{constructor(ct,Ue,at,fe){this.router=ct,this.route=Ue,this.location=at,this.forceRoute=fe}ngOnInit(){"back"!==this.forceRoute.getLastState()?this.route.queryParams.subscribe(ct=>{const Ue=Object.assign({},ct);delete Ue.redirectTo,delete Ue.applicationFormItems,this.router.navigate([ct.redirectTo],{queryParams:Ue,queryParamsHandling:""})}):this.location.back()}}return Ie.\u0275fac=function(ct){return new(ct||Ie)(de.Y36(p.F0),de.Y36(p.gz),de.Y36(e.Ye),de.Y36(le.xw))},Ie.\u0275cmp=de.Xpm({type:Ie,selectors:[["perun-web-apps-redirect-page"]],decls:0,vars:0,template:function(ct,Ue){}}),Ie})();u(25788),u(58956),u(41619),u(61150);var oe=u(63312),r=(u(52314),u(52170));let s=(()=>{class Ie{constructor(ct){this.router=ct}redirectToHome(){this.router.navigate(["/home"],{queryParamsHandling:"merge"})}}return Ie.\u0275fac=function(ct){return new(ct||Ie)(de.Y36(p.F0))},Ie.\u0275cmp=de.Xpm({type:Ie,selectors:[["perun-web-apps-not-authorized-page"]],decls:10,vars:9,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5"],[1,"page-title"],["mat-stroked-button","",1,"mt-2",3,"click"]],template:function(ct,Ue){1&ct&&(de.TgZ(0,"div",0)(1,"h1",1),de._uU(2),de.ALo(3,"translate"),de.qZA(),de.TgZ(4,"div"),de._uU(5),de.ALo(6,"translate"),de.qZA(),de.TgZ(7,"button",2),de.NdJ("click",function(){return Ue.redirectToHome()}),de._uU(8),de.ALo(9,"translate"),de.qZA()()),2&ct&&(de.xp6(2),de.Oqu(de.lcZ(3,3,"GENERAL.NOT_AUTHORIZED_PAGE.TITLE")),de.xp6(3),de.Oqu(de.lcZ(6,5,"GENERAL.NOT_AUTHORIZED_PAGE.DESC")),de.xp6(3),de.hij(" ",de.lcZ(9,7,"GENERAL.NOT_AUTHORIZED_PAGE.REDIRECT")," "))},dependencies:[D.lW,w.X$]}),Ie})();u(2541),u(74006);var a=u(32105),i=u(95017),t=u(96338);function n(Ie,tt){if(1&Ie){const ct=de.EpF();de.TgZ(0,"mat-list-item",4)(1,"p",5),de.NdJ("click",function(){const fe=de.CHM(ct).$implicit,Oe=de.oxw();return de.KtG(Oe.showWholeKey(fe))}),de._uU(2),de.qZA(),de.TgZ(3,"button",6),de.ALo(4,"translate"),de.ALo(5,"customTranslate"),de.TgZ(6,"mat-icon"),de._uU(7," file_copy "),de.qZA()(),de.TgZ(8,"button",7),de.NdJ("click",function(){const fe=de.CHM(ct).$implicit,Oe=de.oxw();return de.KtG(Oe.removeKey(fe,!1))}),de.ALo(9,"translate"),de.ALo(10,"customTranslate"),de.TgZ(11,"mat-icon"),de._uU(12," delete "),de.qZA()()()}if(2&Ie){const ct=tt.$implicit;de.xp6(2),de.Oqu(ct),de.xp6(1),de.s9C("matTooltip",de.lcZ(4,4,de.lcZ(5,6,"SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.COPY_TOOLTIP"))),de.Q6J("cdkCopyToClipboard",ct),de.xp6(5),de.s9C("matTooltip",de.lcZ(9,8,de.lcZ(10,10,"SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.REMOVE_TOOLTIP")))}}function o(Ie,tt){if(1&Ie){const ct=de.EpF();de.TgZ(0,"mat-list-item",4)(1,"label",8),de.NdJ("click",function(){const fe=de.CHM(ct).$implicit,Oe=de.oxw();return de.KtG(Oe.showWholeKey(fe))}),de._uU(2),de.qZA(),de.TgZ(3,"button",9)(4,"mat-icon"),de._uU(5," file_copy "),de.qZA()(),de.TgZ(6,"button",10),de.NdJ("click",function(){const fe=de.CHM(ct).$implicit,Oe=de.oxw();return de.KtG(Oe.removeKey(fe,!0))}),de.TgZ(7,"mat-icon"),de._uU(8," delete "),de.qZA()()()}if(2&Ie){const ct=tt.$implicit;de.xp6(2),de.Oqu(ct),de.xp6(1),de.Q6J("cdkCopyToClipboard",ct)}}let l=(()=>{class Ie{constructor(ct,Ue,at,fe,Oe){this.store=ct,this.attributesManagerService=Ue,this.dialog=at,this.translateService=fe,this.entityStorageService=Oe,this.adminKeys=[],this.userKeys=[],this.userUrn="urn:perun:user:attribute-def:def:sshPublicKey",this.adminUrn="urn:perun:user:attribute-def:def:sshPublicAdminKey",this.selection=new i.Ov(!1,[]),this.selectionAdmin=new i.Ov(!1,[]),fe.get("SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.REMOVE_DIALOG_DESCRIPTION").subscribe(Ke=>this.removeDialogDescription=Ke),fe.get("SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.REMOVE_DIALOG_TITLE").subscribe(Ke=>this.removeDialogTitle=Ke),fe.get("ALERTS.NO_ALT_PASSWORDS").subscribe(Ke=>this.alertText=Ke),fe.get("SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.HEADER_COLUMN").subscribe(Ke=>this.headerColumnText=Ke)}ngOnInit(){this.userId=window.location.pathname.startsWith("/myProfile")?this.entityStorageService.getEntity().id:this.store.getPerunPrincipal().userId,this.translateService.onLangChange.subscribe(()=>{this.translateService.get("SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.REMOVE_DIALOG_DESCRIPTION").subscribe(ct=>this.removeDialogDescription=ct),this.translateService.get("SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.REMOVE_DIALOG_TITLE").subscribe(ct=>this.removeDialogTitle=ct),this.translateService.get("ALERTS.NO_ALT_PASSWORDS").subscribe(ct=>this.alertText=ct),this.translateService.get("SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.HEADER_COLUMN").subscribe(ct=>this.headerColumnText=ct)}),this.loading=!0,this.getUserSSH(),this.getAdminSSH()}addKey(ct){const Ue=(0,Be.kZ)();Ue.width="850px",Ue.data={attribute:ct?this.adminKeyAttribute:this.userKeyAttribute,userId:this.userId},this.dialog.open(Ce.FJ,Ue).afterClosed().subscribe(fe=>{fe&&(ct?this.getAdminSSH():this.getUserSSH())})}removeKey(ct,Ue){const at=(0,Be.kZ)();at.width="600px",at.data={values:[ct],attribute:Ue?this.adminKeyAttribute:this.userKeyAttribute,userId:this.userId,title:this.removeDialogTitle,description:this.removeDialogDescription},this.dialog.open(Ce.eK,at).afterClosed().subscribe(Oe=>{Oe&&(this.loading=!0,Ue?(this.getAdminSSH(),this.selectionAdmin.clear()):(this.getUserSSH(),this.selection.clear()))})}getUserSSH(){this.attributesManagerService.getUserAttributeByName(this.userId,this.userUrn).subscribe(ct=>{this.userKeyAttribute=ct,this.userKeys=ct.value,this.loading=!1})}getAdminSSH(){this.attributesManagerService.getUserAttributeByName(this.userId,this.adminUrn).subscribe(ct=>{this.adminKeyAttribute=ct,this.adminKeys=ct.value,this.loading=!1})}showWholeKey(ct){const Ue=(0,Be.kZ)();Ue.width="600px",Ue.data={value:ct},this.dialog.open(Ce.iI,Ue)}}return Ie.\u0275fac=function(ct){return new(ct||Ie)(de.Y36(le.d6),de.Y36(a.H8),de.Y36(Se.uw),de.Y36(w.sK),de.Y36(le.fb))},Ie.\u0275cmp=de.Xpm({type:Ie,selectors:[["perun-web-apps-settings-ssh-keys"]],decls:28,vars:32,consts:[[1,"page-title"],["mat-flat-button","","color","accent",1,"action-button",3,"click"],["class","dark-hover-list-item w-auto","matRipple","",4,"ngFor","ngForOf"],[1,"page-title","mt-5"],["matRipple","",1,"dark-hover-list-item","w-auto"],[1,"truncate","center-content","cursor-pointer",3,"click"],["color","accent","mat-icon-button","",1,"ml-auto","center-content",3,"cdkCopyToClipboard","matTooltip"],["color","warn","mat-icon-button","",1,"ml-2","center-content",3,"matTooltip","click"],[1,"truncate","center-content",3,"click"],["mat-icon-button","","color","accent",1,"ml-auto","center-content",3,"cdkCopyToClipboard"],["mat-icon-button","","color","warn",1,"ml-2","center-content",3,"click"]],template:function(ct,Ue){1&ct&&(de.TgZ(0,"h1",0),de._uU(1),de.ALo(2,"translate"),de.ALo(3,"customTranslate"),de.qZA(),de.TgZ(4,"p"),de._uU(5),de.ALo(6,"translate"),de.ALo(7,"customTranslate"),de.qZA(),de.TgZ(8,"button",1),de.NdJ("click",function(){return Ue.addKey(!1)}),de._uU(9),de.ALo(10,"translate"),de.ALo(11,"customTranslate"),de.qZA(),de.TgZ(12,"mat-list"),de.YNc(13,n,13,12,"mat-list-item",2),de.qZA(),de.TgZ(14,"h1",3),de._uU(15),de.ALo(16,"translate"),de.ALo(17,"customTranslate"),de.qZA(),de.TgZ(18,"p"),de._uU(19),de.ALo(20,"translate"),de.ALo(21,"customTranslate"),de.qZA(),de.TgZ(22,"button",1),de.NdJ("click",function(){return Ue.addKey(!0)}),de._uU(23),de.ALo(24,"translate"),de.ALo(25,"customTranslate"),de.qZA(),de.TgZ(26,"mat-list"),de.YNc(27,o,9,2,"mat-list-item",2),de.qZA()),2&ct&&(de.xp6(1),de.hij(" ",de.lcZ(2,8,de.lcZ(3,10,"SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.SSH_KEYS_TITLE")),"\n"),de.xp6(4),de.Oqu(de.lcZ(6,12,de.lcZ(7,14,"SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.SSH_KEYS_DESCRIPTION"))),de.xp6(4),de.hij(" ",de.lcZ(10,16,de.lcZ(11,18,"SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.NEW_KEY")),"\n"),de.xp6(4),de.Q6J("ngForOf",Ue.userKeys),de.xp6(2),de.hij(" ",de.lcZ(16,20,de.lcZ(17,22,"SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.ADMIN_SSH_KEYS_TITLE")),"\n"),de.xp6(4),de.hij(" ",de.lcZ(20,24,de.lcZ(21,26,"SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.ADMIN_SSH_KEYS_DESCRIPTION")),"\n"),de.xp6(4),de.hij(" ",de.lcZ(24,28,de.lcZ(25,30,"SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.NEW_KEY")),"\n"),de.xp6(4),de.Q6J("ngForOf",Ue.adminKeys))},dependencies:[e.sg,R.Hw,D.lW,F.gM,ce.wG,H.i3,t.i$,t.Tg,w.X$,B.a],styles:[".truncate[_ngcontent-%COMP%]{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap}.center-content[_ngcontent-%COMP%]{margin-bottom:auto;margin-top:auto}label[_ngcontent-%COMP%]:hover, .cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),Ie})();u(46453);var y=u(29926);u(91880)},63312:(Qe,he,u)=>{"use strict";u.d(he,{S:()=>p,Y:()=>g});var e=u(94650),A=(u(32105),u(89383)),w=u(42377);const p={};let g=(()=>{class T{constructor(S){this.translate=S,this.item=null,this.itemSelected=new e.vpe,this.nameFunction=R=>R===p?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.NO_ITEM"):R.shortname,this.secondaryFunction=R=>R===p?"":R.id<0?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.NEW_ITEM"):"#"+String(R.id),this.searchFunction=R=>R===p?"":R.shortname+String(R.id)}}return T.\u0275fac=function(S){return new(S||T)(e.Y36(A.sK))},T.\u0275cmp=e.Xpm({type:T,selectors:[["perun-web-apps-app-form-item-search-select"]],inputs:{items:"items",item:"item"},outputs:{itemSelected:"itemSelected"},decls:4,vars:15,consts:[[3,"entities","searchFunction","mainTextFunction","secondaryTextFunction","entity","disableAutoSelect","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(S,R){1&S&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(D){return R.itemSelected.emit(D)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&S&&e.Q6J("entities",R.items)("searchFunction",R.searchFunction)("mainTextFunction",R.nameFunction)("secondaryTextFunction",R.secondaryFunction)("entity",R.item)("disableAutoSelect",!0)("selectPlaceholder",e.lcZ(1,9,"SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.SELECT_ITEM"))("findPlaceholder",e.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.FIND_ITEM"))("noEntriesText",e.lcZ(3,13,"SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.NO_ITEM_FOUND"))},dependencies:[w.i,A.X$]}),T})()},38719:(Qe,he,u)=>{"use strict";u.d(he,{u:()=>R});var e=u(94650),m=u(9244),A=u(36895),w=u(56709),p=u(24006),g=u(59549),T=u(64597);function E(v,D){if(1&v){const F=e.EpF();e.TgZ(0,"mat-checkbox",2),e.NdJ("change",function(){e.CHM(F);const $=e.oxw();return e.KtG($._sendEventToParent())})("ngModelChange",function($){e.CHM(F);const G=e.oxw();return e.KtG(G.attribute.value=$)}),e.ALo(1,"multiWordDataCy"),e.qZA()}if(2&v){const F=e.oxw();e.Q2q("data-cy","",e.lcZ(1,2,F.attribute.displayName),"-value"),e.Q6J("ngModel",F.attribute.value)}}function S(v,D){if(1&v&&(e.TgZ(0,"mat-label"),e._uU(1),e.qZA()),2&v){const F=e.oxw();e.xp6(1),e.Oqu(F.attribute.value)}}let R=(()=>{class v{constructor(){this.readonly=!1,this.sendEventToParent=new e.vpe}ngOnInit(){this.readonly||(this.readonly=(0,m.Hm)(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}}return v.\u0275fac=function(F){return new(F||v)},v.\u0275cmp=e.Xpm({type:v,selectors:[["perun-web-apps-attribute-value-boolean"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:3,vars:2,consts:[[3,"ngModel","change","ngModelChange",4,"ngIf"],[4,"ngIf"],[3,"ngModel","change","ngModelChange"]],template:function(F,z){1&F&&(e.TgZ(0,"div"),e.YNc(1,E,2,4,"mat-checkbox",0),e.YNc(2,S,2,1,"mat-label",1),e.qZA()),2&F&&(e.xp6(1),e.Q6J("ngIf",!z.readonly),e.xp6(1),e.Q6J("ngIf",z.readonly))},dependencies:[A.O5,w.oG,p.JJ,p.On,g.hX,T.R]}),v})()},21963:(Qe,he,u)=>{"use strict";u.d(he,{H:()=>H});var e=u(94650),m=u(29521),A=u(73555),w=u(21029),p=u(9244),g=u(65412),T=u(36895),E=u(77331),S=u(97392),R=u(4859),v=u(10266),D=u(59549),F=u(284);function z(L,V){if(1&L){const Q=e.EpF();e.TgZ(0,"mat-icon",9),e.NdJ("mousedown",function(){e.CHM(Q);const xe=e.oxw(2);return e.KtG(xe.dragDisabled=!1)}),e._uU(1,"drag_indicator"),e.qZA()}}function $(L,V){if(1&L){const Q=e.EpF();e.TgZ(0,"mat-icon",10),e.NdJ("click",function(){e.CHM(Q);const xe=e.oxw().$implicit,ge=e.oxw();return e.KtG(ge.edit(xe))}),e._uU(1,"edit"),e.qZA()}}function G(L,V){if(1&L){const Q=e.EpF();e.TgZ(0,"mat-icon",11),e.NdJ("click",function(){e.CHM(Q);const xe=e.oxw().$implicit,ge=e.oxw();return e.KtG(ge.remove(xe))}),e._uU(1,"cancel"),e.qZA()}}function q(L,V){if(1&L){const Q=e.EpF();e.TgZ(0,"mat-chip",4),e.NdJ("removed",function(){const ge=e.CHM(Q).$implicit,Se=e.oxw();return Se.remove(ge),e.KtG(Se._sendEventToParent())}),e.YNc(1,z,2,0,"mat-icon",5),e.TgZ(2,"div",6),e.NdJ("click",function(){const ge=e.CHM(Q).$implicit,Se=e.oxw();return e.KtG(Se.readonly&&void 0!==Se.attribute.displayName&&Se.showValue(ge,Se.attribute.displayName))}),e._uU(3),e.qZA(),e.YNc(4,$,2,0,"mat-icon",7),e.YNc(5,G,2,0,"mat-icon",8),e.qZA()}if(2&L){const Q=V.$implicit,ae=e.oxw();e.Q6J("selectable",ae.selectable)("cdkDragData",Q)("removable",ae.removable),e.xp6(1),e.Q6J("ngIf",ae.removable),e.xp6(1),e.ekj("cursor-pointer",ae.readonly&&void 0!==ae.attribute.displayName),e.xp6(1),e.hij(" ",Q," "),e.xp6(1),e.Q6J("ngIf",ae.removable),e.xp6(1),e.Q6J("ngIf",ae.removable)}}function _e(L,V){1&L&&(e.TgZ(0,"mat-icon"),e._uU(1,"more_horiz"),e.qZA())}function ce(L,V){1&L&&(e.TgZ(0,"mat-icon"),e._uU(1,"keyboard_arrow_up"),e.qZA())}function Te(L,V){if(1&L){const Q=e.EpF();e.TgZ(0,"div",12)(1,"span",13)(2,"button",14),e.NdJ("click",function(){e.CHM(Q);const xe=e.oxw();return e.KtG(xe.onShowChange())}),e.YNc(3,_e,2,0,"mat-icon",15),e.YNc(4,ce,2,0,"mat-icon",15),e.qZA()()()}if(2&L){const Q=e.oxw();e.xp6(1),e.Q6J("matTooltip",Q.showMore?"Show less":"Show more")("matTooltipPosition","above"),e.xp6(2),e.Q6J("ngIf",!Q.showMore),e.xp6(1),e.Q6J("ngIf",Q.showMore)}}function b(L,V){if(1&L){const Q=e.EpF();e.TgZ(0,"mat-form-field",12)(1,"input",16),e.NdJ("matChipInputTokenEnd",function(xe){e.CHM(Q);const ge=e.oxw();return e.KtG(ge.add(xe))})("change",function(){e.CHM(Q);const xe=e.oxw();return e.KtG(xe._sendEventToParent())}),e.qZA()()}if(2&L){const Q=e.oxw(),ae=e.MAs(2);e.xp6(1),e.Q6J("matChipInputFor",ae)("matChipInputSeparatorKeyCodes",Q.separatorKeysCodes)("matChipInputAddOnBlur",Q.addOnBlur)}}let H=(()=>{class L{constructor(Q,ae){this.dialog=Q,this.changeDetector=ae,this.readonly=!1,this.sendEventToParent=new e.vpe,this.selectable=!1,this.removable=!0,this.addOnBlur=!0,this.dragDisabled=!0,this.separatorKeysCodes=[m.K5,m.OC],this.values=[],this.showMore=!1,this.defaultItemsShown=5}ngOnInit(){this.removable=!(0,p.Hm)(this.attribute)&&!this.readonly,null==this.attribute.value&&(this.attribute.value=[]),this.values=this.attribute.value,this.itemsShown=this.readonly?this.values.length:this.defaultItemsShown,this.showMore=this.readonly,this.readonly||(this.readonly=(0,p.Hm)(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}add(Q){const ae=Q.input,xe=Q.value;(xe||"").trim()&&(this.attribute.value.push(xe.trim()),this.values=this.attribute.value,this.values.length>this.defaultItemsShown&&(this.showMore=!0,this.setItemsShown())),ae&&(ae.value=""),this.sendEventToParent.emit()}remove(Q){const ae=(0,p.kZ)();ae.width="400px",ae.data={name:Q},this.dialog.open(w.Wr,ae).afterClosed().subscribe(ge=>{if(ge){const Se=this.attribute.value.indexOf(Q);this.attribute.value.splice(Se,1),this.values=this.attribute.value,this.sendEventToParent.emit(),this.changeDetector.detectChanges()}})}drop(Q){this.dragDisabled=!0,(0,A.bA)(this.attribute.value,Q.previousIndex,Q.currentIndex),this.values=this.attribute.value}edit(Q){const ae=this.attribute.value.indexOf(Q),xe=(0,p.kZ)();xe.width="600px",xe.data={attribute:this.attribute,index:ae},this.dialog.open(w.r2,xe).afterClosed().subscribe(Se=>{Se&&(this.values=this.attribute.value,this.sendEventToParent.emit())})}showValue(Q,ae){const xe=(0,p.kZ)();xe.width="350px",xe.data={value:Q,title:ae},this.dialog.open(w.mk,xe)}setItemsShown(){this.itemsShown=this.showMore?this.values.length:this.defaultItemsShown}onShowChange(){this.showMore=!this.showMore,this.setItemsShown()}}return L.\u0275fac=function(Q){return new(Q||L)(e.Y36(g.uw),e.Y36(e.sBO))},L.\u0275cmp=e.Xpm({type:L,selectors:[["perun-web-apps-attribute-value-list"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:6,vars:4,consts:[["cdkDropList","","cdkDropListOrientation","vertical",1,"mat-chip-list-stacked",3,"cdkDropListDisabled","cdkDropListDropped"],["chipList",""],["class","chip-word-break","cdkDrag","",3,"selectable","cdkDragData","removable","removed",4,"ngFor","ngForOf"],["class","w-100",4,"ngIf"],["cdkDrag","",1,"chip-word-break",3,"selectable","cdkDragData","removable","removed"],["class","handle-icon",3,"mousedown",4,"ngIf"],[1,"chip-text","overflow-ellipsis",3,"click"],["class","edit-delete-icon ml-2",3,"click",4,"ngIf"],["class","edit-delete-icon",3,"click",4,"ngIf"],[1,"handle-icon",3,"mousedown"],[1,"edit-delete-icon","ml-2",3,"click"],[1,"edit-delete-icon",3,"click"],[1,"w-100"],[3,"matTooltip","matTooltipPosition"],["mat-icon-button","",1,"ml-auto",3,"click"],[4,"ngIf"],["matInput","","placeholder","New value",1,"w-100","m-0",3,"matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur","matChipInputTokenEnd","change"]],template:function(Q,ae){1&Q&&(e.TgZ(0,"div")(1,"mat-chip-list",0,1),e.NdJ("cdkDropListDropped",function(ge){return ae.drop(ge),ae._sendEventToParent()}),e.YNc(3,q,6,9,"mat-chip",2),e.YNc(4,Te,5,4,"div",3),e.YNc(5,b,2,3,"mat-form-field",3),e.qZA()()),2&Q&&(e.xp6(1),e.Q6J("cdkDropListDisabled",ae.dragDisabled),e.xp6(2),e.Q6J("ngForOf",ae.values.slice(0,ae.itemsShown)),e.xp6(1),e.Q6J("ngIf",ae.values.length>ae.defaultItemsShown),e.xp6(1),e.Q6J("ngIf",!ae.readonly))},dependencies:[T.sg,T.O5,E.qn,E.HS,E.oH,A.Wj,A.Zt,S.Hw,R.lW,v.gM,D.KE,F.Nt],styles:[".chip-word-break[_ngcontent-%COMP%]{word-break:break-all}.chip-text[_ngcontent-%COMP%]{display:-webkit-box!important;-webkit-line-clamp:1!important;-webkit-box-orient:vertical;overflow:hidden}.mat-chip-list[_ngcontent-%COMP%] .mat-chip[_ngcontent-%COMP%]{width:auto;min-width:0}.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}.chip-word-break[_ngcontent-%COMP%] .cdk-drop-list-dragging[_ngcontent-%COMP%] .example-box[_ngcontent-%COMP%]:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}.example-box[_ngcontent-%COMP%]:last-child{border:none}.edit-delete-icon[_ngcontent-%COMP%]{font-size:18px;justify-content:center;align-items:center;display:flex}.handle-icon[_ngcontent-%COMP%]{font-size:22px;justify-content:center;align-items:center;display:flex;margin-right:4px}.mat-standard-chip[_ngcontent-%COMP%]{padding:7px 5px}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}"]}),L})()},28820:(Qe,he,u)=>{"use strict";u.d(he,{$:()=>_e});var e=u(21029),m=u(9244),A=u(94650),w=u(65412),p=u(36895),g=u(24006),T=u(97392),E=u(4859),S=u(10266),R=u(59549),v=u(284);function D(ce,Te){if(1&ce){const b=A.EpF();A.TgZ(0,"button",15),A.NdJ("click",function(){A.CHM(b);const L=A.oxw().index,V=A.oxw();return A.KtG(V.removeValue(L))}),A.TgZ(1,"mat-icon"),A._uU(2," indeterminate_check_box "),A.qZA()()}}function F(ce,Te){if(1&ce){const b=A.EpF();A.TgZ(0,"div",9)(1,"mat-form-field",10),A._UZ(2,"label",11),A.TgZ(3,"input",12),A.NdJ("click",function(){const V=A.CHM(b).index,Q=A.oxw();return A.KtG(Q.readonly&&Q.attribute.displayName&&Q.showValue(Q.keys[V],Q.attribute.displayName))})("ngModelChange",function(L){const Q=A.CHM(b).index,ae=A.oxw();return A.KtG(ae.keys[Q]=L)}),A.qZA()(),A.TgZ(4,"mat-form-field",10),A._UZ(5,"label",11),A.TgZ(6,"input",13),A.NdJ("click",function(){const V=A.CHM(b).$implicit,Q=A.oxw();return A.KtG(Q.readonly&&void 0!==Q.attribute.displayName&&Q.showValue(V,Q.attribute.displayName))})("ngModelChange",function(L){const Q=A.CHM(b).index,ae=A.oxw();return A.KtG(ae.values[Q]=L)}),A.qZA()(),A.YNc(7,D,3,0,"button",14),A.qZA()}if(2&ce){const b=Te.index,H=A.oxw();A.xp6(1),A.s9C("appearance",H.readonly?"none":"standard"),A.xp6(1),A.hYB("for","",H.attribute.id,"-key-",b,""),A.xp6(1),A.ekj("cursor-pointer",H.readonly&&void 0!==H.attribute.displayName),A.hYB("id","",H.attribute.id,"-key-",b,""),A.MGl("name","key-",b,""),A.Q6J("ngModel",H.keys[b])("readonly",H.readonly),A.xp6(1),A.s9C("appearance",H.readonly?"none":"standard"),A.xp6(1),A.hYB("for","",H.attribute.id,"-value-",b,""),A.xp6(1),A.ekj("cursor-pointer",H.readonly&&void 0!==H.attribute.displayName),A.MGl("name","value-",b,""),A.hYB("id","",H.attribute.id,"-value-",b,""),A.Q6J("readonly",H.readonly)("ngModel",H.values[b]),A.xp6(1),A.Q6J("ngIf",!H.readonly)}}function z(ce,Te){1&ce&&(A.TgZ(0,"mat-icon"),A._uU(1,"more_horiz"),A.qZA())}function $(ce,Te){1&ce&&(A.TgZ(0,"mat-icon"),A._uU(1,"keyboard_arrow_up"),A.qZA())}function G(ce,Te){if(1&ce){const b=A.EpF();A.TgZ(0,"button",16),A.NdJ("click",function(){A.CHM(b);const L=A.oxw();return A.KtG(L.onShowChange())}),A.YNc(1,z,2,0,"mat-icon",17),A.YNc(2,$,2,0,"mat-icon",17),A.qZA()}if(2&ce){const b=A.oxw();A.xp6(1),A.Q6J("ngIf",!b.showMore),A.xp6(1),A.Q6J("ngIf",b.showMore)}}function q(ce,Te){if(1&ce){const b=A.EpF();A.TgZ(0,"button",18),A.NdJ("click",function(){A.CHM(b);const L=A.oxw();return A.KtG(L.addValue())}),A.TgZ(1,"mat-icon"),A._uU(2," add_box "),A.qZA()()}}let _e=(()=>{class ce{constructor(b){this.dialog=b,this.readonly=!1,this.keys=[],this.values=[],this.defaultItemsShown=3,this.showMore=!1}ngOnInit(){if(this.attribute.value){const b=new Map(Object.entries(this.attribute.value));for(const[H,L]of b.entries())this.keys.push(H),this.values.push(L)}this.itemsShown=this.readonly?this.values.length:this.defaultItemsShown,this.showMore=this.readonly,this.readonly||(this.readonly=(0,m.Hm)(this.attribute))}customTrackBy(b){return b}addValue(){this.keys.push(""),this.values.push(""),this.values.length>this.defaultItemsShown&&(this.showMore=!0,this.setItemsShown())}removeValue(b){this.keys.splice(b,1),this.values.splice(b,1)}updateAttribute(){const b={};for(let H=0;HH.defaultItemsShown),A.xp6(1),A.Q6J("ngIf",!H.readonly))},dependencies:[p.sg,p.O5,g._Y,g.Fj,g.JJ,g.JL,g.Q7,g.On,g.F,T.Hw,E.lW,S.gM,R.KE,v.Nt],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}.input-margin[_ngcontent-%COMP%]{margin-bottom:-30px}.btn-margin[_ngcontent-%COMP%]{margin-top:10px}"]}),ce})()},63167:(Qe,he,u)=>{"use strict";u.d(he,{_:()=>S});var e=u(94650),m=u(9244),A=u(21029),w=u(65412),p=u(24006),g=u(59549),T=u(284),E=u(64597);let S=(()=>{class R{constructor(D){this.dialog=D,this.readonly=!1,this.sendEventToParent=new e.vpe}ngOnInit(){this.value=this.attribute.value,this.readonly||(this.readonly=(0,m.Hm)(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}showValue(D,F){const z=(0,m.kZ)();z.width="350px",z.data={value:D,title:F},this.dialog.open(A.mk,z)}}return R.\u0275fac=function(D){return new(D||R)(e.Y36(w.uw))},R.\u0275cmp=e.Xpm({type:R,selectors:[["perun-web-apps-attribute-value-string"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:3,vars:8,consts:[[1,"w-100",3,"appearance"],["matInput","","type","text",1,"overflow-ellipsis",3,"readonly","ngModel","click","ngModelChange","keydown"]],template:function(D,F){1&D&&(e.TgZ(0,"mat-form-field",0)(1,"input",1),e.NdJ("click",function(){return F.readonly&&void 0!==F.value&&F.showValue(F.value,F.attribute.displayName)})("ngModelChange",function($){return F.attribute.value=$})("keydown",function(){return F._sendEventToParent()}),e.ALo(2,"multiWordDataCy"),e.qZA()()),2&D&&(e.s9C("appearance",F.readonly?"none":"standard"),e.xp6(1),e.ekj("cursor-pointer",F.readonly&&void 0!==F.value),e.Q2q("data-cy","",e.lcZ(2,6,F.attribute.displayName),"-value"),e.Q6J("readonly",F.readonly)("ngModel",F.attribute.value))},dependencies:[p.Fj,p.JJ,p.On,g.KE,T.Nt,E.R],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}"]}),R})()},43532:(Qe,he,u)=>{"use strict";u.d(he,{M:()=>Te});var e=u(94650),m=u(28820),A=u(36895),w=u(38719),p=u(21963),g=u(63167),T=u(9244),E=u(21029),S=u(65412),R=u(24006),v=u(59549),D=u(284);let F=(()=>{class b{constructor(L){this.dialog=L,this.readonly=!1,this.sendEventToParent=new e.vpe}ngOnInit(){this.readonly||(this.readonly=(0,T.Hm)(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}showValue(L){const V=(0,T.kZ)();V.width="350px",V.data={value:L.value,title:L.displayName},this.dialog.open(E.mk,V)}}return b.\u0275fac=function(L){return new(L||b)(e.Y36(S.uw))},b.\u0275cmp=e.Xpm({type:b,selectors:[["perun-web-apps-attribute-value-integer"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:2,vars:5,consts:[[1,"w-100",3,"appearance"],["matInput","","type","number",1,"overflow-ellipsis",3,"readonly","ngModel","click","ngModelChange","keydown"]],template:function(L,V){1&L&&(e.TgZ(0,"mat-form-field",0)(1,"input",1),e.NdJ("click",function(){return V.readonly&&void 0!==V.attribute.value&&V.showValue(V.attribute)})("ngModelChange",function(ae){return V.attribute.value=ae})("keydown",function(){return V._sendEventToParent()}),e.qZA()()),2&L&&(e.s9C("appearance",V.readonly?"none":"standard"),e.xp6(1),e.ekj("cursor-pointer",V.readonly&&void 0!==V.attribute.value),e.Q6J("readonly",V.readonly)("ngModel",V.attribute.value))},dependencies:[R.Fj,R.wV,R.JJ,R.On,v.KE,D.Nt],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),b})();const z=["map"];function $(b,H){if(1&b){const L=e.EpF();e.TgZ(0,"perun-web-apps-attribute-value-boolean",3),e.NdJ("sendEventToParent",function(){e.CHM(L);const Q=e.oxw();return e.KtG(Q._sendEventToParent2())}),e.qZA()}if(2&b){const L=e.oxw();e.Q6J("attribute",L.attribute)("readonly",L.readonly)}}function G(b,H){if(1&b){const L=e.EpF();e.TgZ(0,"perun-web-apps-attribute-value-list",3),e.NdJ("sendEventToParent",function(){e.CHM(L);const Q=e.oxw();return e.KtG(Q._sendEventToParent2())}),e.qZA()}if(2&b){const L=e.oxw();e.Q6J("attribute",L.attribute)("readonly",L.readonly)}}function q(b,H){if(1&b&&e._UZ(0,"perun-web-apps-attribute-value-map",4,5),2&b){const L=e.oxw();e.Q6J("attribute",L.attribute)("readonly",L.readonly)}}function _e(b,H){if(1&b){const L=e.EpF();e.TgZ(0,"perun-web-apps-attribute-value-string",3),e.NdJ("sendEventToParent",function(){e.CHM(L);const Q=e.oxw();return e.KtG(Q._sendEventToParent2())}),e.qZA()}if(2&b){const L=e.oxw();e.Q6J("attribute",L.attribute)("readonly",L.readonly)}}function ce(b,H){if(1&b){const L=e.EpF();e.TgZ(0,"perun-web-apps-attribute-value-integer",3),e.NdJ("sendEventToParent",function(){e.CHM(L);const Q=e.oxw();return e.KtG(Q._sendEventToParent2())}),e.qZA()}if(2&b){const L=e.oxw();e.Q6J("attribute",L.attribute)("readonly",L.readonly)}}let Te=(()=>{class b{constructor(){this.readonly=!1,this.sendEventToParent2=new e.vpe}updateMapAttribute(){"java.util.LinkedHashMap"===this.attribute.type&&this.mapComponent.updateAttribute()}_sendEventToParent2(){this.sendEventToParent2.emit()}}return b.\u0275fac=function(L){return new(L||b)},b.\u0275cmp=e.Xpm({type:b,selectors:[["perun-web-apps-attribute-value"]],viewQuery:function(L,V){if(1&L&&e.Gf(z,5),2&L){let Q;e.iGM(Q=e.CRH())&&(V.mapComponent=Q.first)}},inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent2:"sendEventToParent2"},decls:7,vars:5,consts:[[3,"attribute","readonly","sendEventToParent",4,"ngIf"],[3,"click"],[3,"attribute","readonly",4,"ngIf"],[3,"attribute","readonly","sendEventToParent"],[3,"attribute","readonly"],["map",""]],template:function(L,V){1&L&&(e.TgZ(0,"div"),e.YNc(1,$,1,2,"perun-web-apps-attribute-value-boolean",0),e.YNc(2,G,1,2,"perun-web-apps-attribute-value-list",0),e.TgZ(3,"div",1),e.NdJ("click",function(){return V._sendEventToParent2()}),e.YNc(4,q,2,2,"perun-web-apps-attribute-value-map",2),e.qZA(),e.YNc(5,_e,1,2,"perun-web-apps-attribute-value-string",0),e.YNc(6,ce,1,2,"perun-web-apps-attribute-value-integer",0),e.qZA()),2&L&&(e.xp6(1),e.Q6J("ngIf","java.lang.Boolean"===V.attribute.type),e.xp6(1),e.Q6J("ngIf","java.util.ArrayList"===V.attribute.type),e.xp6(2),e.Q6J("ngIf","java.util.LinkedHashMap"===V.attribute.type),e.xp6(1),e.Q6J("ngIf","java.lang.String"===V.attribute.type||"java.lang.LargeString"===V.attribute.type),e.xp6(1),e.Q6J("ngIf","java.lang.Integer"===V.attribute.type))},dependencies:[A.O5,w.u,p.H,m.$,g._,F]}),b})()},53984:(Qe,he,u)=>{"use strict";u.d(he,{p:()=>B});var e=u(96308),m=u(30671),A=u(95017),w=u(43532),p=u(9244),g=u(69723),T=u(94650),E=u(36895),S=u(56709),R=u(98380),v=u(10266),D=u(18750),F=u(89383);let z=(()=>{class N{transform(Y){return"virt"===Y.namespace.split(":")[4]}}return N.\u0275fac=function(Y){return new(Y||N)},N.\u0275pipe=T.Yjl({name:"isVirtualAttribute",type:N,pure:!0}),N})();var $=u(64597),G=u(9185),q=u(8231),_e=u(14849);function ce(N,Me){if(1&N){const Y=T.EpF();T.TgZ(0,"th",18)(1,"mat-checkbox",19),T.NdJ("change",function(De){T.CHM(Y);const We=T.oxw(2);return T.KtG(De?We.masterToggle():null)}),T.ALo(2,"translate"),T.ALo(3,"masterCheckboxLabel"),T.qZA()()}if(2&N){const Y=T.oxw().ngIf,be=T.oxw();T.xp6(1),T.Q6J("checked",be.selection.hasValue()&&Y.all)("indeterminate",be.selection.hasValue()&&!Y.all)("aria-label",T.lcZ(2,3,T.lcZ(3,5,Y.all)))}}const Te=function(N){return{name:N}};function b(N,Me){if(1&N){const Y=T.EpF();T.TgZ(0,"td",20)(1,"mat-checkbox",21),T.NdJ("click",function(De){return De.stopPropagation()})("change",function(De){const Pe=T.CHM(Y).$implicit,nt=T.oxw(2);return T.KtG(De?nt.selection.toggle(Pe):null)}),T.ALo(2,"multiWordDataCy"),T.ALo(3,"isVirtualAttribute"),T.ALo(4,"translate"),T.ALo(5,"checkboxLabel"),T.qZA()()}if(2&N){const Y=Me.$implicit,be=T.oxw(2);T.xp6(1),T.Q2q("data-cy","",T.lcZ(2,4,Y.displayName),"-checkbox"),T.Q6J("checked",be.selection.isSelected(Y))("disabled",T.lcZ(3,6,Y)||!Y.writable)("aria-label",T.xi3(4,8,T.lcZ(5,11,be.selection.isSelected(Y)),T.VKq(13,Te,Y.displayName)))}}function H(N,Me){1&N&&(T.ynx(0,15),T.YNc(1,ce,4,7,"th",16),T.YNc(2,b,6,15,"td",17),T.BQk())}function L(N,Me){1&N&&(T.TgZ(0,"th",22),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&N&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.ID")," "))}function V(N,Me){if(1&N&&(T.TgZ(0,"td",23),T._uU(1),T.qZA()),2&N){const Y=Me.$implicit;T.xp6(1),T.Oqu(Y.id)}}function Q(N,Me){1&N&&(T.TgZ(0,"th",22),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&N&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.NAME")," "))}function ae(N,Me){if(1&N&&(T.TgZ(0,"td",24),T.ALo(1,"multiWordDataCy"),T.TgZ(2,"div",25),T._uU(3),T.qZA()()),2&N){const Y=Me.$implicit,be=T.oxw();T.Q2q("data-cy","",T.lcZ(1,3,Y.friendlyName),"-friendlyName"),T.xp6(2),T.s9C("matTooltip",be.getAttributeFullName(Y)),T.xp6(1),T.hij(" ",Y.displayName," ")}}function xe(N,Me){1&N&&(T.TgZ(0,"th",26),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&N&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.VALUE")," "))}function ge(N,Me){if(1&N){const Y=T.EpF();T.TgZ(0,"td",24)(1,"perun-web-apps-attribute-value",27),T.NdJ("sendEventToParent2",function(){const We=T.CHM(Y).$implicit,Pe=T.oxw();return T.KtG(Pe.onValueChange(We))}),T.qZA()()}if(2&N){const Y=Me.$implicit,be=T.oxw();T.xp6(1),T.Q6J("attribute",Y)("readonly",be.readonly||!Y.writable)}}function Se(N,Me){1&N&&(T.TgZ(0,"th",22),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&N&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.DESCRIPTION")," "))}function Be(N,Me){if(1&N&&(T.TgZ(0,"td",24),T._uU(1),T.qZA()),2&N){const Y=Me.$implicit;T.xp6(1),T.Oqu(Y.description)}}function pe(N,Me){1&N&&T._UZ(0,"tr",28)}function $e(N,Me){if(1&N&&(T._UZ(0,"tr",29),T.ALo(1,"translate")),2&N){const Y=Me.$implicit,be=T.oxw();T.s9C("matTooltip",T.lcZ(1,3,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.DISABLED_HINT")),T.Q6J("matTooltipPosition","before")("matTooltipDisabled",Y.writable||be.readonly)}}function Ce(N,Me){1&N&&(T.TgZ(0,"perun-web-apps-alert",30),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&N&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function de(N,Me){if(1&N&&(T.TgZ(0,"perun-web-apps-alert",30),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&N){const Y=T.oxw();T.xp6(1),T.hij(" ",T.lcZ(2,1,Y.emptyListText),"\n")}}const re=function(N){return{all:N}};let B=(()=>{class N{constructor(Y,be){this.authResolver=Y,this.tableCheckbox=be,this.attributes=[],this.selection=new A.Ov(!0,[]),this.displayedColumns=["select","id","displayName","value","description"],this.inDialog=!1,this.filterValue="",this.readonly=!1,this.hiddenColumns=[],this.emptyListText="SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.EMPTY_SETTINGS",this.pageSizeOptions=p.f7}set matSort(Y){this.sort=Y,this.setDataSource()}static canBeSelected(Y){return!(0,p.Hm)(Y)&&Y.writable}static getDataForColumn(Y,be){switch(be){case"id":return Y.id.toString();case"displayName":return Y.displayName;case"description":return Y.description;case"value":return JSON.stringify(Y.value);case"urn":return Y.namespace+":"+Y.baseFriendlyName;default:return""}}canBeSelected(Y){return!(0,p.Hm)(Y)&&Y.writable}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(Y=>"id"!==Y)),this.dataSource=new m.by((0,p.MX)(this.attributes)),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}exportAllData(Y){(0,p.O6)((0,p.Xn)(this.dataSource.filteredData,this.displayedColumns,N.getDataForColumn),Y)}exportDisplayedData(Y){const be=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,De=be+this.dataSource.paginator.pageSize;(0,p.O6)((0,p.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(be,De),this.displayedColumns,N.getDataForColumn),Y)}setDataSource(){this.displayedColumns=this.displayedColumns.filter(Y=>!this.hiddenColumns.includes(Y)),this.dataSource&&(this.dataSource.filterPredicate=(Y,be)=>(0,p.Sd)(Y,be,this.displayedColumns.concat("urn"),N.getDataForColumn),this.dataSource.sortData=(Y,be)=>(0,p.pR)(Y,be,N.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource,N.canBeSelected)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!0,N.canBeSelected)}updateMapAttributes(){for(const Y of this.items.toArray())"java.util.LinkedHashMap"===Y.attribute.type&&Y.updateMapAttribute()}onValueChange(Y){N.canBeSelected(Y)&&this.selection.select(Y)}getAttributeFullName(Y){return`${Y.namespace}:${Y.friendlyName}`}}return N.\u0275fac=function(Y){return new(Y||N)(T.Y36(g.x4),T.Y36(g.UA))},N.\u0275cmp=T.Xpm({type:N,selectors:[["perun-web-apps-attributes-list"]],viewQuery:function(Y,be){if(1&Y&&(T.Gf(p.l9,7),T.Gf(e.YE,7),T.Gf(w.M,5)),2&Y){let De;T.iGM(De=T.CRH())&&(be.child=De.first),T.iGM(De=T.CRH())&&(be.matSort=De.first),T.iGM(De=T.CRH())&&(be.items=De)}},inputs:{attributes:"attributes",selection:"selection",displayedColumns:"displayedColumns",inDialog:"inDialog",filterValue:"filterValue",tableId:"tableId",readonly:"readonly",hiddenColumns:"hiddenColumns",emptyListText:"emptyListText"},features:[T.TTD],decls:21,vars:16,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size",4,"matCellDef"],["matColumnDef","displayName"],["mat-cell","",4,"matCellDef"],["matColumnDef","value"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","description"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","dark-hover-list-item",3,"matTooltip","matTooltipPosition","matTooltipDisabled",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size align-checkbox",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"checked","indeterminate","aria-label","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"checked","disabled","aria-label","click","change"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["matTooltipClass","urn-tooltip",3,"matTooltip"],["mat-header-cell",""],[3,"attribute","readonly","sendEventToParent2"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["alert_type","warn"]],template:function(Y,be){1&Y&&(T.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),T.NdJ("exportDisplayedData",function(We){return be.exportDisplayedData(We)})("exportAllData",function(We){return be.exportAllData(We)}),T.TgZ(2,"table",2),T.YNc(3,H,3,0,"ng-container",3),T.ALo(4,"isAllSelected"),T.ynx(5,4),T.YNc(6,L,3,3,"th",5),T.YNc(7,V,2,1,"td",6),T.BQk(),T.ynx(8,7),T.YNc(9,Q,3,3,"th",5),T.YNc(10,ae,4,5,"td",8),T.BQk(),T.ynx(11,9),T.YNc(12,xe,3,3,"th",10),T.YNc(13,ge,2,2,"td",8),T.BQk(),T.ynx(14,11),T.YNc(15,Se,3,3,"th",5),T.YNc(16,Be,2,1,"td",8),T.BQk(),T.YNc(17,pe,1,0,"tr",12),T.YNc(18,$e,2,5,"tr",13),T.qZA()()(),T.YNc(19,Ce,3,3,"perun-web-apps-alert",14),T.YNc(20,de,3,3,"perun-web-apps-alert",14)),2&Y&&(T.Q6J("hidden",0===be.dataSource.filteredData.length),T.xp6(1),T.Q6J("tableId",be.tableId)("dataLength",be.dataSource.filteredData.length)("pageSizeOptions",be.pageSizeOptions),T.xp6(1),T.Q6J("dataSource",be.dataSource),T.xp6(1),T.Q6J("ngIf",T.VKq(14,re,T.Dn7(4,10,be.dataSource,be.selection.selected.length,be.canBeSelected))),T.xp6(14),T.Q6J("matHeaderRowDef",be.displayedColumns),T.xp6(1),T.Q6J("matRowDefColumns",be.displayedColumns),T.xp6(1),T.Q6J("ngIf",0===be.dataSource.filteredData.length&&0!==be.dataSource.data.length),T.xp6(1),T.Q6J("ngIf",0===be.dataSource.data.length))},dependencies:[E.O5,S.oG,m.BZ,m.fO,m.as,m.w1,m.Dz,m.nj,m.ge,m.ev,m.XQ,m.Gk,e.YE,e.nU,R.w,v.gM,D.l,w.M,F.X$,z,$.R,G.I,q.G,_e.r],styles:["table[_ngcontent-%COMP%]{width:100%!important}.mat-row[_ngcontent-%COMP%]{height:auto}.mat-cell[_ngcontent-%COMP%]{padding:8px 8px 8px 0}.mat-column-select[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:50px!important}.mat-column-id[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:60px!important}.mat-column-value[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:300px!important}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:.25rem!important} .urn-tooltip{max-width:800px!important}"]}),N})()},4235:(Qe,he,u)=>{"use strict";u.d(he,{W:()=>S});var e=u(69723),m=u(94650),A=u(36895),w=u(97392),p=u(4859),g=u(10266),T=u(89383);const E=function(R){return{color:R}};let S=(()=>{class R{constructor(D,F){this.location=D,this.storeService=F}ngOnInit(){this.backButtonColor=this.storeService.getProperty("theme").back_button_color}goBack(){"false"===sessionStorage.getItem("onInitPage")&&this.location.back()}}return R.\u0275fac=function(D){return new(D||R)(m.Y36(A.Ye),m.Y36(e.d6))},R.\u0275cmp=m.Xpm({type:R,selectors:[["perun-web-apps-back-button"]],decls:4,vars:6,consts:[["mat-stroked-button","",1,"mb-2","mt-2",3,"ngStyle","matTooltip","click"],[1,"rotate"]],template:function(D,F){1&D&&(m.TgZ(0,"button",0),m.NdJ("click",function(){return F.goBack()}),m.ALo(1,"translate"),m.TgZ(2,"mat-icon",1),m._uU(3,"arrow_right_alt"),m.qZA()()),2&D&&(m.s9C("matTooltip",m.lcZ(1,2,"Back")),m.Q6J("ngStyle",m.VKq(4,E,F.backButtonColor)))},dependencies:[A.PC,w.Hw,p.lW,g.gM,T.X$],styles:[".rotate[_ngcontent-%COMP%]{transform:rotate(180deg) scale(1.5)}"]}),R})()},91880:(Qe,he,u)=>{"use strict";u.d(he,{s:()=>le});var e=u(94650),m=u(9244),A=u(95017),w=u(69723),p=u(30671),g=u(96308),T=u(19516),E=u(36895),S=u(29926),R=u(56709),v=u(98380),D=u(97392),F=u(4859),z=u(18750),$=u(89383),G=u(31359),q=u(9185),_e=u(8231),ce=u(14849);let Te=(()=>{class ne{constructor(Ee){this.authResolver=Ee}transform(Ee,ot){return this.authResolver.isAuthorized(ot,[Ee])}}return ne.\u0275fac=function(Ee){return new(Ee||ne)(e.Y36(w.x4,16))},ne.\u0275pipe=e.Yjl({name:"isAuthorized",type:ne,pure:!0}),ne})();function b(ne,ke){if(1&ne){const Ee=e.EpF();e.TgZ(0,"mat-checkbox",24),e.NdJ("change",function(it){e.CHM(Ee);const oe=e.oxw(2).ngIf,X=e.oxw();return e.KtG(it?X.masterToggle(oe.all):null)}),e.ALo(1,"translate"),e.ALo(2,"masterCheckboxLabel"),e.qZA()}if(2&ne){const Ee=e.oxw(2).ngIf,ot=e.oxw();e.Q6J("aria-label",e.lcZ(1,3,e.lcZ(2,5,Ee.all)))("checked",ot.selection.hasValue()&&Ee.all)("indeterminate",ot.selection.hasValue()&&!Ee.all)}}function H(ne,ke){if(1&ne&&(e.TgZ(0,"th",22),e.YNc(1,b,3,7,"mat-checkbox",23),e.qZA()),2&ne){const Ee=e.oxw(2);e.xp6(1),e.Q6J("ngIf",Ee.selection.isMultipleSelection())}}const L=function(ne){return{name:ne}};function V(ne,ke){if(1&ne){const Ee=e.EpF();e.TgZ(0,"td",25)(1,"mat-checkbox",26),e.NdJ("change",function(){const oe=e.CHM(Ee).$implicit,X=e.oxw(2);return e.KtG(X.toggle(oe))})("click",function(it){return it.stopPropagation()}),e.ALo(2,"translate"),e.ALo(3,"checkboxLabel"),e.qZA()()}if(2&ne){const Ee=ke.$implicit,ot=e.oxw(2);e.xp6(1),e.Q6J("aria-label",e.xi3(2,2,e.lcZ(3,5,ot.selection.isSelected(Ee)),e.VKq(7,L,Ee.name)))("checked",ot.selection.isSelected(Ee))}}function Q(ne,ke){1&ne&&(e.ynx(0,19),e.YNc(1,H,2,1,"th",20),e.YNc(2,V,4,9,"td",21),e.BQk())}function ae(ne,ke){1&ne&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ne&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BAN_ON_ENTITY_LIST.BAN_ID_HEADER")," "))}function xe(ne,ke){if(1&ne&&(e.TgZ(0,"td",28),e._uU(1),e.qZA()),2&ne){const Ee=ke.$implicit;e.xp6(1),e.Oqu(Ee.ban.id)}}const ge=function(ne){return{target:ne}};function Se(ne,ke){if(1&ne&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ne){const Ee=e.oxw();e.xp6(1),e.hij(" ",e.xi3(2,1,"SHARED_LIB.PERUN.COMPONENTS.BAN_ON_ENTITY_LIST.TARGET_ID_HEADER",e.VKq(4,ge,Ee.target))," ")}}function Be(ne,ke){if(1&ne&&(e.TgZ(0,"td",28),e._uU(1),e.qZA()),2&ne){const Ee=ke.$implicit;e.xp6(1),e.Oqu(Ee.ban.targetId)}}function pe(ne,ke){if(1&ne&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ne){const Ee=e.oxw();e.xp6(1),e.hij(" ",e.xi3(2,1,"SHARED_LIB.PERUN.COMPONENTS.BAN_ON_ENTITY_LIST.TARGET_NAME_HEADER",e.VKq(4,ge,Ee.target))," ")}}function $e(ne,ke){if(1&ne&&(e.TgZ(0,"td",29),e._uU(1),e.qZA()),2&ne){const Ee=ke.$implicit;let ot;e.xp6(1),e.hij(" ",null!==(ot=null!==(ot=null==Ee||null==Ee.vo?null:Ee.vo.name)&&void 0!==ot?ot:null==Ee||null==Ee.facility?null:Ee.facility.name)&&void 0!==ot?ot:null==Ee||null==Ee.resource?null:Ee.resource.name," ")}}const Ce=function(ne){return{subject:ne}};function de(ne,ke){if(1&ne&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ne){const Ee=e.oxw();e.xp6(1),e.hij(" ",e.xi3(2,1,"SHARED_LIB.PERUN.COMPONENTS.BAN_ON_ENTITY_LIST.SUBJECT_ID_HEADER",e.VKq(4,Ce,Ee.subject))," ")}}function re(ne,ke){if(1&ne&&(e.TgZ(0,"td",28),e._uU(1),e.qZA()),2&ne){const Ee=ke.$implicit;e.xp6(1),e.Oqu(Ee.ban.subjectId)}}function B(ne,ke){if(1&ne&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ne){const Ee=e.oxw();e.xp6(1),e.hij(" ",e.xi3(2,1,"SHARED_LIB.PERUN.COMPONENTS.BAN_ON_ENTITY_LIST.SUBJECT_NAME_HEADER",e.VKq(4,Ce,Ee.subject))," ")}}function N(ne,ke){if(1&ne&&(e.TgZ(0,"td",29),e._uU(1),e.ALo(2,"userFullName"),e.qZA()),2&ne){const Ee=ke.$implicit;let ot;e.xp6(1),e.hij(" ",e.lcZ(2,1,null!==(ot=Ee.user)&&void 0!==ot?ot:Ee.member.user)," ")}}function Me(ne,ke){1&ne&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ne&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BAN_ON_ENTITY_LIST.DESCRIPTION_HEADER")," "))}function Y(ne,ke){if(1&ne&&(e.TgZ(0,"td",29),e._uU(1),e.qZA()),2&ne){const Ee=ke.$implicit;e.xp6(1),e.Oqu(Ee.ban.description)}}function be(ne,ke){1&ne&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ne&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BAN_ON_ENTITY_LIST.EXPIRATION_HEADER")," "))}function De(ne,ke){if(1&ne&&(e.TgZ(0,"td",29),e._uU(1),e.ALo(2,"date"),e.qZA()),2&ne){const Ee=ke.$implicit,ot=e.oxw();e.xp6(1),e.hij(" ",Ee.ban.validityTo===ot.EXPIRE_NEVER?"never":e.xi3(2,1,Ee.ban.validityTo,"dd-MM-yyyy")," ")}}function We(ne,ke){1&ne&&e._UZ(0,"th",30)}function Pe(ne,ke){if(1&ne){const Ee=e.EpF();e.TgZ(0,"button",32),e.NdJ("click",function(){e.CHM(Ee);const it=e.oxw().$implicit,oe=e.oxw();return e.KtG(oe.updateBan.emit(it))}),e.TgZ(1,"mat-icon"),e._uU(2,"edit"),e.qZA()()}}function nt(ne,ke){if(1&ne&&(e.TgZ(0,"td",29),e.YNc(1,Pe,3,0,"button",31),e.ALo(2,"isAuthorized"),e.qZA()),2&ne){const Ee=ke.$implicit,ot=e.oxw();let it;e.xp6(1),e.Q6J("ngIf",e.xi3(2,1,null!==(it=null!==(it=Ee.vo)&&void 0!==it?it:Ee.resource)&&void 0!==it?it:Ee.facility,ot.updatePolicy))}}function Ye(ne,ke){1&ne&&e._UZ(0,"tr",33)}function Tt(ne,ke){1&ne&&e._UZ(0,"tr",34)}function J(ne,ke){1&ne&&(e.TgZ(0,"perun-web-apps-alert",35),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ne&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BAN_ON_ENTITY_LIST.NO_BANS"),"\n"))}const Xe=function(ne){return{all:ne}};let le=(()=>{class ne{constructor(Ee,ot,it){this.tableCheckbox=Ee,this.authResolver=ot,this.userName=it,this.selection=new A.Ov(!1,[]),this.pageSizeOptions=m.f7,this.columns=["select","banId","targetId","targetName","subjectId","subjectName","description","expiration","edit"],this.updateBan=new e.vpe,this.EXPIRE_NEVER=S.R,this.getDataForColumn=(oe,X)=>{const r=this.isFacilityBan(oe)?oe.facility:this.isResourceBan(oe)?oe.resource:oe.vo,s=this.isFacilityBan(oe)?oe.user:oe.member,_=this.isFacilityBan(oe)?oe.user:oe.member.user;switch(X){case"banId":return String(oe.ban.id);case"targetId":return String(r.id);case"targetName":return r.name;case"subjectId":return String(s.id);case"subjectName":return this.userName.transform(_);case"description":return oe.ban.description;case"expiration":return Number(oe.ban.validityTo)===this.EXPIRE_NEVER?"never":(0,E.p6)(oe.ban.validityTo,"dd-MM-yyy","en");default:return""}}}set bans(Ee){this.dataSource||this.dataSourceInit(Ee),0!==Ee.length&&this.setHeaderLabels(Ee[0]),this.dataSource.data=Ee}set filter(Ee){this.dataSource.filter=Ee}set displayedColumns(Ee){this.authResolver.isPerunAdminOrObserver()||(Ee=Ee.filter(ot=>!ot.endsWith("Id"))),this.columns=Ee}exportAllData(Ee){(0,m.O6)((0,m.Xn)(this.dataSource.filteredData,this.columns,this.getDataForColumn),Ee)}exportDisplayedData(Ee){const ot=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,it=ot+this.dataSource.paginator.pageSize;(0,m.O6)((0,m.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(ot,it),this.columns,this.getDataForColumn),Ee)}toggle(Ee){this.selection.toggle(Ee)}masterToggle(Ee){this.tableCheckbox.masterToggle(Ee,this.selection,this.dataSource.filter,this.dataSource,this.dataSource.sort,this.dataSource.paginator.pageSize,this.dataSource.paginator.pageIndex,!1)}dataSourceInit(Ee){this.dataSource=new p.by(Ee),this.dataSource.sort=this.sort,this.dataSource.paginator=this.tableWrapper.paginator,this.dataSource.filterPredicate=(ot,it)=>(0,m.Sd)(ot,it,this.columns,this.getDataForColumn,!0),this.dataSource.sortData=(ot,it)=>(0,m.pR)(ot,it,this.getDataForColumn)}isFacilityBan(Ee){return"facility"in Ee}isResourceBan(Ee){return"resource"in Ee}setHeaderLabels(Ee){this.isFacilityBan(Ee)?(this.target="Facility",this.subject="User"):this.isResourceBan(Ee)?(this.target="Resource",this.subject="Member"):(this.target="Organization",this.subject="Member")}}return ne.\u0275fac=function(Ee){return new(Ee||ne)(e.Y36(w.UA),e.Y36(w.x4),e.Y36(T.dp))},ne.\u0275cmp=e.Xpm({type:ne,selectors:[["perun-web-apps-ban-on-entity-list"]],viewQuery:function(Ee,ot){if(1&Ee&&(e.Gf(m.l9,7),e.Gf(g.YE,7)),2&Ee){let it;e.iGM(it=e.CRH())&&(ot.tableWrapper=it.first),e.iGM(it=e.CRH())&&(ot.sort=it.first)}},inputs:{selection:"selection",tableId:"tableId",updatePolicy:"updatePolicy",pageSizeOptions:"pageSizeOptions",columns:"columns",bans:"bans",filter:"filter",displayedColumns:"displayedColumns"},outputs:{updateBan:"updateBan"},features:[e._Bn([T.dp])],decls:32,vars:14,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","tableId","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","banId"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size",4,"matCellDef"],["matColumnDef","targetId"],["matColumnDef","targetName"],["mat-cell","",4,"matCellDef"],["matColumnDef","subjectId"],["matColumnDef","subjectName"],["matColumnDef","description"],["matColumnDef","expiration"],["matColumnDef","edit"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change",4,"ngIf"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-cell",""],["mat-icon-button","",3,"click",4,"ngIf"],["mat-icon-button","",3,"click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(Ee,ot){1&Ee&&(e.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),e.NdJ("exportDisplayedData",function(oe){return ot.exportDisplayedData(oe)})("exportAllData",function(oe){return ot.exportAllData(oe)}),e.TgZ(2,"table",2),e.YNc(3,Q,3,0,"ng-container",3),e.ALo(4,"isAllSelected"),e.ynx(5,4),e.YNc(6,ae,3,3,"th",5),e.YNc(7,xe,2,1,"td",6),e.BQk(),e.ynx(8,7),e.YNc(9,Se,3,6,"th",5),e.YNc(10,Be,2,1,"td",6),e.BQk(),e.ynx(11,8),e.YNc(12,pe,3,6,"th",5),e.YNc(13,$e,2,1,"td",9),e.BQk(),e.ynx(14,10),e.YNc(15,de,3,6,"th",5),e.YNc(16,re,2,1,"td",6),e.BQk(),e.ynx(17,11),e.YNc(18,B,3,6,"th",5),e.YNc(19,N,3,3,"td",9),e.BQk(),e.ynx(20,12),e.YNc(21,Me,3,3,"th",5),e.YNc(22,Y,2,1,"td",9),e.BQk(),e.ynx(23,13),e.YNc(24,be,3,3,"th",5),e.YNc(25,De,3,4,"td",9),e.BQk(),e.ynx(26,14),e.YNc(27,We,1,0,"th",15),e.YNc(28,nt,3,4,"td",9),e.BQk(),e.YNc(29,Ye,1,0,"tr",16),e.YNc(30,Tt,1,0,"tr",17),e.qZA()()(),e.YNc(31,J,3,3,"perun-web-apps-alert",18)),2&Ee&&(e.Q6J("hidden",0===ot.dataSource.filteredData.length),e.xp6(1),e.Q6J("dataLength",ot.dataSource.filteredData.length)("tableId",ot.tableId)("pageSizeOptions",ot.pageSizeOptions),e.xp6(1),e.Q6J("dataSource",ot.dataSource),e.xp6(1),e.Q6J("ngIf",e.VKq(12,Xe,e.xi3(4,9,ot.dataSource,ot.selection.selected.length))),e.xp6(26),e.Q6J("matHeaderRowDef",ot.columns),e.xp6(1),e.Q6J("matRowDefColumns",ot.columns),e.xp6(1),e.Q6J("ngIf",0===ot.dataSource.filteredData.length))},dependencies:[E.O5,R.oG,p.BZ,p.fO,p.as,p.w1,p.Dz,p.nj,p.ge,p.ev,p.XQ,p.Gk,g.YE,g.nU,v.w,D.Hw,F.lW,z.l,E.uU,$.X$,G.d,q.I,_e.G,ce.r,Te]}),ne})()},29926:(Qe,he,u)=>{"use strict";u.d(he,{C:()=>R,R:()=>S});var e=u(24006),m=u(36895),A=u(94650),w=u(59549),p=u(284),g=u(99602),T=u(71948),E=u(89383);const S=new Date(324721404e5).valueOf();let R=(()=>{class v{constructor(){this.minDate=new Date,this.validityControl=new e.NI(null),this.descriptionControl=new e.NI("")}set validity(F){this.newValidity=F&&Number(new Date(F))!==S?this.parseDate(F):"never",this.validityControl.setValue("never"!==this.newValidity?this.newValidity:this.parseDate(new Date))}set description(F){this.descriptionControl.setValue(F)}getDescription(){return this.descriptionControl.value}getValidity(){return"never"!==this.newValidity&&this.validityControl.value?this.parseDate(this.validityControl.value):null}parseDate(F){return(0,m.p6)(F,"yyyy-MM-dd","en")}}return v.\u0275fac=function(F){return new(F||v)},v.\u0275cmp=A.Xpm({type:v,selectors:[["perun-web-apps-ban-specification"]],inputs:{validity:"validity",description:"description"},decls:18,vars:18,consts:[[1,"d-flex","flex-column",3,"ngModel","ngModelChange"],[3,"value"],["color","primary",1,"cursor-pointer","mt-2",3,"click"],["readonly","","matInput","",1,"disabl",3,"formControl","min","matDatepicker"],["matSuffix","",3,"for","disabled"],[3,"disabled"],["picker",""],["value","never"],[1,"mt-3"],[1,"w-100","mt-2"],["matInput","","rows","5",3,"formControl","placeholder"]],template:function(F,z){if(1&F){const $=A.EpF();A.TgZ(0,"div")(1,"mat-radio-group",0),A.NdJ("ngModelChange",function(q){return z.newValidity=q}),A.TgZ(2,"mat-radio-button",1)(3,"mat-form-field",2),A.NdJ("click",function(){A.CHM($);const q=A.MAs(10);return A.KtG(q.open())}),A.TgZ(4,"mat-label"),A._uU(5),A.ALo(6,"translate"),A.qZA(),A._UZ(7,"input",3)(8,"mat-datepicker-toggle",4)(9,"mat-datepicker",5,6),A.qZA()(),A.TgZ(11,"mat-radio-button",7),A._uU(12),A.ALo(13,"translate"),A.qZA()()(),A.TgZ(14,"div",8)(15,"mat-form-field",9),A._UZ(16,"textarea",10),A.ALo(17,"translate"),A.qZA()()}if(2&F){const $=A.MAs(10);A.xp6(1),A.Q6J("ngModel",z.newValidity),A.xp6(1),A.s9C("value",z.validityControl.value),A.xp6(3),A.hij(" ",A.lcZ(6,12,"SHARED_LIB.PERUN.COMPONENTS.BAN_SPECIFICATION.VALIDITY")," "),A.xp6(2),A.Q6J("formControl",z.validityControl)("min",z.minDate)("matDatepicker",$),A.xp6(1),A.Q6J("for",$)("disabled",!1),A.xp6(1),A.Q6J("disabled",!1),A.xp6(3),A.hij(" ",A.lcZ(13,14,"SHARED_LIB.PERUN.COMPONENTS.BAN_SPECIFICATION.NEVER")," "),A.xp6(4),A.s9C("placeholder",A.lcZ(17,16,"SHARED_LIB.PERUN.COMPONENTS.BAN_SPECIFICATION.DESCRIPTION")),A.Q6J("formControl",z.descriptionControl)}},dependencies:[e.Fj,e.JJ,e.On,w.KE,w.hX,w.R9,e.oH,p.Nt,g.Mq,g.hl,g.nW,T.VQ,T.U0,E.X$]}),v})()},61150:(Qe,he,u)=>{"use strict";u.d(he,{r:()=>D});var e=u(94650),m=u(24006),A=u(69723),w=u(36895),p=u(56709),g=u(59549),T=u(284),E=u(82322),S=u(89383);function R(F,z){if(1&F){const $=e.EpF();e.TgZ(0,"mat-checkbox",7),e.NdJ("change",function(){e.CHM($);const q=e.oxw();return e.KtG(q.emitAsSubGroup())})("ngModelChange",function(q){e.CHM($);const _e=e.oxw();return e.KtG(_e.asSubgroup=q)}),e._uU(1),e.ALo(2,"translate"),e.qZA()}if(2&F){const $=e.oxw();e.Q6J("labelPosition","before")("ngModel",$.asSubgroup),e.xp6(1),e.hij(" ",e.lcZ(2,3,"DIALOGS.CREATE_GROUP.AS_SUBGROUP")," ")}}function v(F,z){if(1&F){const $=e.EpF();e.TgZ(0,"perun-web-apps-group-search-select",8),e.NdJ("groupSelected",function(q){e.CHM($);const _e=e.oxw();return e.KtG(_e.emitParentGroup(q))}),e.qZA()}if(2&F){const $=e.oxw();e.Q6J("disableAutoSelect",!0)("groups",$.voGroups)}}let D=(()=>{class F{constructor($){this.store=$,this.parentGroup=null,this.voGroups=[],this.nameChanged=new e.vpe,this.descriptionChanged=new e.vpe,this.parentGroupChanged=new e.vpe,this.asSubgroupChanged=new e.vpe,this.asSubgroup=!1,this.invalidNameMessage=this.store.getProperty("group_name_error_message"),this.secondaryRegex=this.store.getProperty("group_name_secondary_regex")}ngOnInit(){this.isNotSubGroup=null===this.parentGroup,this.nameControl=new m.p4("",[m.kI.required,m.kI.pattern(this.secondaryRegex?this.secondaryRegex:""),m.kI.pattern(".*[\\S]+.*")]),this.descriptionControl=new m.p4("",[m.kI.required,m.kI.maxLength(129)]),this.selectedParent=null,this.voGroups=this.voGroups.filter($=>"members"!==$.name)}emitName(){this.nameChanged.emit(this.nameControl.invalid?"":this.nameControl.value)}emitDescription(){this.descriptionChanged.emit(this.descriptionControl.invalid?"":this.descriptionControl.value)}emitParentGroup($){this.selectedParent=$,this.parentGroupChanged.emit($)}emitAsSubGroup(){this.asSubgroup||this.emitParentGroup(null),this.asSubgroupChanged.emit(this.asSubgroup)}}return F.\u0275fac=function($){return new($||F)(e.Y36(A.d6))},F.\u0275cmp=e.Xpm({type:F,selectors:[["perun-web-apps-create-group-form"]],inputs:{parentGroup:"parentGroup",voGroups:"voGroups"},outputs:{nameChanged:"nameChanged",descriptionChanged:"descriptionChanged",parentGroupChanged:"parentGroupChanged",asSubgroupChanged:"asSubgroupChanged"},decls:17,vars:16,consts:[[1,"dialog-container"],[3,"keyup"],[1,"w-100"],["matInput","","required","",3,"formControl","placeholder"],[1,"mt-4",3,"keyup"],[3,"labelPosition","ngModel","change","ngModelChange",4,"ngIf"],["class","long-input",3,"disableAutoSelect","groups","groupSelected",4,"ngIf"],[3,"labelPosition","ngModel","change","ngModelChange"],[1,"long-input",3,"disableAutoSelect","groups","groupSelected"]],template:function($,G){1&$&&(e.TgZ(0,"div",0)(1,"mat-form-field",1),e.NdJ("keyup",function(){return G.emitName()}),e.TgZ(2,"label",2),e._UZ(3,"input",3),e.ALo(4,"translate"),e.qZA(),e.TgZ(5,"mat-error"),e._uU(6),e.ALo(7,"translate"),e.qZA()(),e.TgZ(8,"mat-form-field",4),e.NdJ("keyup",function(){return G.emitDescription()}),e.TgZ(9,"label",2),e._UZ(10,"textarea",3),e.ALo(11,"translate"),e.qZA(),e.TgZ(12,"mat-error"),e._uU(13),e.ALo(14,"translate"),e.qZA()(),e.YNc(15,R,3,5,"mat-checkbox",5),e.YNc(16,v,1,2,"perun-web-apps-group-search-select",6),e.qZA()),2&$&&(e.xp6(3),e.s9C("placeholder",e.lcZ(4,8,"DIALOGS.CREATE_GROUP.NAME")),e.Q6J("formControl",G.nameControl),e.xp6(3),e.hij(" ",G.invalidNameMessage.length?G.invalidNameMessage:e.lcZ(7,10,"DIALOGS.CREATE_GROUP.FILL_VALUE")," "),e.xp6(4),e.s9C("placeholder",e.lcZ(11,12,"DIALOGS.CREATE_GROUP.DESCRIPTION")),e.Q6J("formControl",G.descriptionControl),e.xp6(3),e.hij(" ",e.lcZ(14,14,"DIALOGS.CREATE_GROUP.INVALID_DESCRIPTION")," "),e.xp6(2),e.Q6J("ngIf",G.isNotSubGroup),e.xp6(1),e.Q6J("ngIf",G.asSubgroup))},dependencies:[w.O5,p.oG,m.Fj,m.JJ,m.Q7,m.On,g.TO,g.KE,m.oH,T.Nt,E.h,S.X$]}),F})()},39798:(Qe,he,u)=>{"use strict";u.d(he,{S:()=>T});var e=u(94650),m=u(24006),A=u(59549),w=u(284),p=u(99602),g=u(89383);let T=(()=>{class E{constructor(){this.datePicker=new e.vpe}ngOnInit(){this.startMinDate=new Date(2e3,0,1),this.endMaxDate=new Date,this.startMaxDate=this.endDate.value,this.endMinDate=this.startDate.value}dateChange(){this.datePicker.emit(),this.startMaxDate=this.endDate.value,this.endMinDate=this.startDate.value}}return E.\u0275fac=function(R){return new(R||E)},E.\u0275cmp=e.Xpm({type:E,selectors:[["perun-web-apps-date-range"]],inputs:{startDate:"startDate",endDate:"endDate"},outputs:{datePicker:"datePicker"},decls:16,vars:16,consts:[["appearance","standard",1,"mr-2",3,"click"],["matInput","","readonly","",3,"matDatepicker","min","max","formControl","dateChange"],["matSuffix","",3,"for"],["datePickerStart",""],["appearance","standard",3,"click"],["datePickerEnd",""]],template:function(R,v){if(1&R){const D=e.EpF();e.TgZ(0,"mat-form-field",0),e.NdJ("click",function(){e.CHM(D);const z=e.MAs(7);return e.KtG(z.open())}),e.TgZ(1,"mat-label"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"input",1),e.NdJ("dateChange",function(){return v.dateChange()}),e.qZA(),e._UZ(5,"mat-datepicker-toggle",2)(6,"mat-datepicker",null,3),e.qZA(),e.TgZ(8,"mat-form-field",4),e.NdJ("click",function(){e.CHM(D);const z=e.MAs(15);return e.KtG(z.open())}),e.TgZ(9,"mat-label"),e._uU(10),e.ALo(11,"translate"),e.qZA(),e.TgZ(12,"input",1),e.NdJ("dateChange",function(){return v.dateChange()}),e.qZA(),e._UZ(13,"mat-datepicker-toggle",2)(14,"mat-datepicker",null,5),e.qZA()}if(2&R){const D=e.MAs(7),F=e.MAs(15);e.xp6(2),e.Oqu(e.lcZ(3,12,"VO_DETAIL.APPLICATION.DATE.START")),e.xp6(2),e.Q6J("matDatepicker",D)("min",v.startMinDate)("max",v.startMaxDate)("formControl",v.startDate),e.xp6(1),e.Q6J("for",D),e.xp6(5),e.Oqu(e.lcZ(11,14,"VO_DETAIL.APPLICATION.DATE.END")),e.xp6(2),e.Q6J("matDatepicker",F)("min",v.endMinDate)("max",v.endMaxDate)("formControl",v.endDate),e.xp6(1),e.Q6J("for",F)}},dependencies:[m.Fj,m.JJ,A.KE,A.hX,A.R9,m.oH,w.Nt,p.Mq,p.hl,p.nW,g.X$]}),E})()},64901:(Qe,he,u)=>{"use strict";u.d(he,{P:()=>v});var e=u(94650),m=u(54968),A=u(54004),w=u(78372),p=u(71884),g=u(24006),T=u(59549),E=u(284),S=u(89383);const R=["input"];let v=(()=>{class D{constructor(){this.autoFocus=!1,this.control=new g.p4,this.filter=new e.vpe}ngOnInit(){this.autoFocus&&this.input.nativeElement.focus(),(0,m.R)(this.input.nativeElement,"keyup").pipe((0,A.U)(z=>z.target.value),(0,w.b)(500),(0,p.x)()).subscribe(z=>{this.control.invalid||this.filter.emit(z)})}}return D.\u0275fac=function(z){return new(z||D)},D.\u0275cmp=e.Xpm({type:D,selectors:[["perun-web-apps-debounce-filter"]],viewQuery:function(z,$){if(1&z&&e.Gf(R,7),2&z){let G;e.iGM(G=e.CRH())&&($.input=G.first)}},inputs:{placeholder:"placeholder",autoFocus:"autoFocus",control:"control",error:"error"},outputs:{filter:"filter"},decls:6,vars:5,consts:[[1,"filter-field","mr-2"],["matInput","","data-cy","filter-input",3,"placeholder","formControl"],["input",""]],template:function(z,$){1&z&&(e.TgZ(0,"mat-form-field",0),e._UZ(1,"input",1,2),e.ALo(3,"translate"),e.TgZ(4,"mat-error"),e._uU(5),e.qZA()()),2&z&&(e.xp6(1),e.s9C("placeholder",e.lcZ(3,3,$.placeholder)),e.Q6J("formControl",$.control),e.xp6(4),e.hij(" ",$.error," "))},dependencies:[g.Fj,g.JJ,T.TO,T.KE,g.oH,E.Nt,S.X$],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:auto!important}"]}),D})()},42377:(Qe,he,u)=>{"use strict";u.d(he,{i:()=>ce});var e=u(94650),m=u(24006),A=u(4707),w=u(77579),p=u(71884),g=u(82722),T=u(36895),E=u(59549),S=u(3238),R=u(84385),v=u(33231),D=u(67376);const F=["scrollViewport"];function z(Te,b){if(1&Te&&(e.TgZ(0,"mat-select-trigger"),e._uU(1),e.qZA()),2&Te){const H=e.oxw();e.xp6(1),e.hij(" ",H.multipleSelectedText()," ")}}function $(Te,b){if(1&Te&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&Te){const H=e.oxw(2);e.Tol(H.colorByStatus(null==H.entitiesCtrl?null:H.entitiesCtrl.value)),e.xp6(1),e.hij(" ",H.statusTextFunction(null==H.entitiesCtrl?null:H.entitiesCtrl.value)?"("+H.statusTextFunction(null==H.entitiesCtrl?null:H.entitiesCtrl.value)+")":""," ")}}function G(Te,b){if(1&Te&&(e.TgZ(0,"mat-option",8),e._uU(1),e.TgZ(2,"span",9),e._uU(3),e.qZA(),e.YNc(4,$,2,4,"span",10),e.qZA()),2&Te){const H=e.oxw();e.Q6J("value",null==H.entitiesCtrl?null:H.entitiesCtrl.value),e.xp6(1),e.hij(" ",H.mainTextFunction(null==H.entitiesCtrl?null:H.entitiesCtrl.value)," "),e.xp6(2),e.Oqu(H.secondaryTextFunction(null==H.entitiesCtrl?null:H.entitiesCtrl.value)),e.xp6(1),e.Q6J("ngIf",H.displayStatus)}}function q(Te,b){if(1&Te&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&Te){const H=e.oxw().$implicit,L=e.oxw();e.Tol(L.colorByStatus(H)),e.xp6(1),e.hij(" ",L.statusTextFunction(H)?"("+L.statusTextFunction(H)+")":""," ")}}function _e(Te,b){if(1&Te&&(e.TgZ(0,"mat-option",11),e._uU(1),e.TgZ(2,"span",9),e._uU(3),e.qZA(),e.YNc(4,q,2,4,"span",10),e.qZA()),2&Te){const H=b.$implicit,L=e.oxw();e.Tol(L.theme),e.Q6J("value",H),e.xp6(1),e.hij(" ",L.mainTextFunction(H)," "),e.xp6(2),e.Oqu(L.secondaryTextFunction(H)),e.xp6(1),e.Q6J("ngIf",L.displayStatus)}}let ce=(()=>{class Te{constructor(H){this.cd=H,this.selectPlaceholder="Select",this.findPlaceholder="Find...",this.noEntriesText="Nothing found",this.disableAutoSelect=!1,this.entity=null,this.displayStatus=!1,this.multiple=!1,this.theme="",this.entitySelected=new e.vpe,this.entitiesCtrl=new m.p4,this.entityFilterCtrl=new m.p4,this.filteredEntities=new A.t(1),this._onDestroy=new w.x,this.entitiesLen=0,this.mainTextFunction=L=>JSON.stringify(L),this.secondaryTextFunction=L=>"#".concat(String(L.id),L.description?" ".concat(L.description):""),this.statusTextFunction=L=>L.status}ngOnInit(){this.entitiesCtrl.valueChanges.pipe((0,p.x)()).subscribe(H=>this.entitySelected.emit(H)),!this.disableAutoSelect&&null===this.entity&&this.entitiesCtrl.setValue(this.entities[0]),this.filteredEntities.subscribe(H=>this.entitiesLen=H.length),this.entityFilterCtrl.valueChanges.pipe((0,g.R)(this._onDestroy)).subscribe(()=>{this.filterEntites()}),null!==this.entity&&this.entitiesCtrl.setValue(this.entity)}colorByStatus(H){switch(H.status){case"ACTIVE":return"green";case"INACTIVE":return"grey";case"FAILED":return"red";case"PROCESSING":return"black"}}ngOnChanges(H){null!==this.entity&&this.entitiesCtrl.setValue(this.entity),H.entities&&this.filteredEntities.next(this.entities.slice())}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}normalize(H){return H.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase()}openChange(){this.scrollViewport.scrollToIndex(0),this.scrollViewport.checkViewportSize()}getViewportHeight(){let H=48*this.entitiesLen;return H>192&&(H=192),this.scrollViewport&&this.scrollViewport.checkViewportSize(),H}multipleSelectedText(){const H=this.entitiesCtrl.value;if(H&&0!==H.length)return H.length===this.entities.length?"ALL":H.length>1?this.mainTextFunction(H[0])+` + ${H.length-1} other(s)`:this.mainTextFunction(H[0])+" "+this.secondaryTextFunction(H[0])}filterEntites(){if(!this.entities)return;let H=this.entityFilterCtrl.value;if(!H)return this.filteredEntities.next(this.entities.slice()),void this.cd.detectChanges();H=this.normalize(H),this.filteredEntities.next(this.entities.filter(L=>this.normalize(this.searchFunction(L)).includes(H))),this.cd.detectChanges()}}return Te.\u0275fac=function(H){return new(H||Te)(e.Y36(e.sBO))},Te.\u0275cmp=e.Xpm({type:Te,selectors:[["perun-web-apps-entity-search-select"]],viewQuery:function(H,L){if(1&H&&e.Gf(F,5),2&H){let V;e.iGM(V=e.CRH())&&(L.scrollViewport=V.first)}},inputs:{entities:"entities",selectPlaceholder:"selectPlaceholder",findPlaceholder:"findPlaceholder",noEntriesText:"noEntriesText",disableAutoSelect:"disableAutoSelect",entity:"entity",displayStatus:"displayStatus",multiple:"multiple",theme:"theme",searchFunction:"searchFunction",mainTextFunction:"mainTextFunction",secondaryTextFunction:"secondaryTextFunction"},outputs:{entitySelected:"entitySelected"},features:[e.TTD],decls:10,vars:16,consts:[[1,"w-100"],["data-cy","search-select-input",3,"placeholder","formControl","multiple","openedChange"],[4,"ngIf"],["data-cy","find-input",3,"placeholderLabel","noEntriesFoundLabel","clearSearchInput","formControl"],["class","selected-options-bottom",3,"value",4,"ngIf"],["itemSize","48",3,"minBufferPx","maxBufferPx"],["scrollViewport",""],[3,"class","value",4,"cdkVirtualFor","cdkVirtualForOf"],[1,"selected-options-bottom",3,"value"],[1,"text-muted"],[3,"class",4,"ngIf"],[3,"value"]],template:function(H,L){1&H&&(e.TgZ(0,"mat-form-field",0)(1,"mat-select",1),e.NdJ("openedChange",function(){return L.openChange()}),e.YNc(2,z,2,1,"mat-select-trigger",2),e.TgZ(3,"mat-option"),e._UZ(4,"ngx-mat-select-search",3),e.qZA(),e.YNc(5,G,5,4,"mat-option",4),e.TgZ(6,"cdk-virtual-scroll-viewport",5,6),e.YNc(8,_e,5,7,"mat-option",7),e.ALo(9,"async"),e.qZA()()()),2&H&&(e.xp6(1),e.s9C("placeholder",L.selectPlaceholder),e.Q6J("formControl",L.entitiesCtrl)("multiple",L.multiple),e.xp6(1),e.Q6J("ngIf",L.multiple),e.xp6(2),e.s9C("placeholderLabel",L.findPlaceholder),e.s9C("noEntriesFoundLabel",L.noEntriesText),e.Q6J("clearSearchInput",!1)("formControl",L.entityFilterCtrl),e.xp6(1),e.Q6J("ngIf",null==L.entitiesCtrl?null:L.entitiesCtrl.value),e.xp6(1),e.Udp("height",L.getViewportHeight(),"px"),e.Q6J("minBufferPx",240)("maxBufferPx",480),e.xp6(2),e.Q6J("cdkVirtualForOf",e.lcZ(9,14,L.filteredEntities)))},dependencies:[T.O5,m.JJ,E.KE,m.oH,S.ey,R.gD,R.$L,v.nu,D.xd,D.x0,D.N7,T.Ov],styles:[".selected-options-bottom[_ngcontent-%COMP%]{visibility:hidden;position:absolute}.green[_ngcontent-%COMP%]{color:green}.grey[_ngcontent-%COMP%]{color:gray}.red[_ngcontent-%COMP%]{color:red}.black[_ngcontent-%COMP%]{color:#000}"]}),Te})()},87488:(Qe,he,u)=>{"use strict";u.d(he,{c:()=>S});var e=u(94650),m=u(24006),A=u(36895),w=u(59549),p=u(284),g=u(99602),T=u(71948),E=u(89383);let S=(()=>{class R{constructor(){this.expiration="never",this.datePicker=new e.vpe,this.expirationControl=new m.p4(null)}ngOnInit(){const D=new Date;this.minDate=new Date(D.getFullYear(),D.getMonth(),D.getDate()),this.expirationControl.setValue((0,A.p6)(this.minDate,"yyyy-MM-dd","en-GB"))}setExpiration(){this.expiration=(0,A.p6)(this.expirationControl.value,"yyyy-MM-dd","en-GB"),this.expirationControl.setValue((0,A.p6)(this.expirationControl.value,"yyyy-MM-dd","en-GB")),this.emitDate()}emitDate(){"never"!==this.expiration&&""===this.expirationControl.value||this.datePicker.emit(this.expiration)}}return R.\u0275fac=function(D){return new(D||R)},R.\u0275cmp=e.Xpm({type:R,selectors:[["perun-web-apps-expiration-select"]],inputs:{expiration:"expiration"},outputs:{datePicker:"datePicker"},decls:13,vars:14,consts:[[1,"d-flex","flex-column",3,"ngModel","ngModelChange","change"],["value","never"],[3,"value"],["color","primary",1,"cursor-pointer","mr-3",3,"click"],["readonly","","matInput","",1,"disable",3,"min","formControl","matDatepicker","dateChange"],["matSuffix","",3,"for","disabled"],[3,"disabled"],["picker",""]],template:function(D,F){if(1&D){const z=e.EpF();e.TgZ(0,"mat-radio-group",0),e.NdJ("ngModelChange",function(G){return F.expiration=G})("change",function(){return F.emitDate()}),e.TgZ(1,"mat-radio-button",1),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"mat-radio-button",2)(5,"mat-form-field",3),e.NdJ("click",function(){e.CHM(z);const G=e.MAs(12);return e.KtG(G.open())}),e.TgZ(6,"mat-label"),e._uU(7),e.ALo(8,"translate"),e.qZA(),e.TgZ(9,"input",4),e.NdJ("dateChange",function(){return F.setExpiration()}),e.qZA(),e._UZ(10,"mat-datepicker-toggle",5)(11,"mat-datepicker",6,7),e.qZA()()()}if(2&D){const z=e.MAs(12);e.Q6J("ngModel",F.expiration),e.xp6(2),e.hij(" ",e.lcZ(3,10,"DIALOGS.CHANGE_EXPIRATION.EXPIRATION_NEVER")," "),e.xp6(2),e.s9C("value",F.expirationControl.value),e.xp6(3),e.Oqu(e.lcZ(8,12,"DIALOGS.CHANGE_EXPIRATION.DATE_LABEL")),e.xp6(2),e.Q6J("min",F.minDate)("formControl",F.expirationControl)("matDatepicker",z),e.xp6(1),e.Q6J("for",z)("disabled",!1),e.xp6(1),e.Q6J("disabled",!1)}},dependencies:[m.Fj,m.JJ,m.On,w.KE,w.hX,w.R9,m.oH,p.Nt,g.Mq,g.hl,g.nW,T.VQ,T.U0,E.X$],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),R})()},74010:(Qe,he,u)=>{"use strict";u.d(he,{X:()=>le});var e=u(96308),m=u(30671),A=u(9244),w=u(69723),p=u(94650),g=u(36895),T=u(56709),E=u(94364),S=u(98380),R=u(18750),v=u(94391),D=u(10441),F=u(24006),z=u(97392),$=u(4859),G=u(10266);function q(ne,ke){if(1&ne&&(p.TgZ(0,"div",6),p._uU(1),p.qZA()),2&ne){const Ee=ke.$implicit,ot=p.oxw();p.xp6(1),p.hij(" ",Ee[ot.paramName]," ")}}function _e(ne,ke){1&ne&&(p.TgZ(0,"mat-icon"),p._uU(1,"more_horiz"),p.qZA())}function ce(ne,ke){1&ne&&(p.TgZ(0,"mat-icon"),p._uU(1,"keyboard_arrow_up"),p.qZA())}function Te(ne,ke){if(1&ne){const Ee=p.EpF();p.TgZ(0,"button",7),p.NdJ("click",function(){p.CHM(Ee);const it=p.oxw();return p.KtG(it.onShowChange())}),p.YNc(1,_e,2,0,"mat-icon",8),p.YNc(2,ce,2,0,"mat-icon",8),p.qZA()}if(2&ne){const Ee=p.oxw();p.xp6(1),p.Q6J("ngIf",!Ee.showMore),p.xp6(1),p.Q6J("ngIf",Ee.showMore)}}let b=(()=>{class ne{constructor(){this.objects=[],this.filterValue="",this.paramName="",this.showMore=!1,this.defaultItemsShown=3}ngOnInit(){this.itemsShown=this.defaultItemsShown}ngOnChanges(){this.itemsShown=this.defaultItemsShown,this.showMore=!1}onShowChange(){this.showMore=!this.showMore,this.itemsShown=this.showMore?this.objects.length:this.defaultItemsShown}}return ne.\u0275fac=function(Ee){return new(Ee||ne)},ne.\u0275cmp=p.Xpm({type:ne,selectors:[["perun-web-apps-object-list-values"]],inputs:{objects:"objects",filterValue:"filterValue",paramName:"paramName"},features:[p.TTD],decls:7,vars:4,consts:[[1,"d-flex","w-100"],[1,"w-100"],[1,"mr-5"],["class","d-flex mb-1",4,"ngFor","ngForOf"],[3,"matTooltip","matTooltipPosition"],["mat-icon-button","",3,"click",4,"ngIf"],[1,"d-flex","mb-1"],["mat-icon-button","",3,"click"],[4,"ngIf"]],template:function(Ee,ot){1&Ee&&(p.TgZ(0,"form",0)(1,"div",1)(2,"div",2),p.YNc(3,q,2,1,"div",3),p.qZA(),p.TgZ(4,"div")(5,"span",4),p.YNc(6,Te,3,2,"button",5),p.qZA()()()()),2&Ee&&(p.xp6(3),p.Q6J("ngForOf",ot.objects.slice(0,ot.itemsShown)),p.xp6(2),p.Q6J("matTooltip",ot.showMore?"Show less":"Show more")("matTooltipPosition","above"),p.xp6(1),p.Q6J("ngIf",ot.objects.length>ot.defaultItemsShown))},dependencies:[g.sg,g.O5,F._Y,F.JL,F.F,z.Hw,$.lW,G.gM]}),ne})();var H=u(89383),L=u(53561);let V=(()=>{class ne{transform(Ee,ot,it){return Ee.filter(oe=>oe[it].includes(ot)).filter((oe,X,r)=>r.findIndex(s=>s[it]===oe[it])===X)}}return ne.\u0275fac=function(Ee){return new(Ee||ne)},ne.\u0275pipe=p.Yjl({name:"filterUniqueObjects",type:ne,pure:!0}),ne})();var Q=u(8231);function ae(ne,ke){1&ne&&p._UZ(0,"th",20)}const xe=function(ne){return{name:ne}};function ge(ne,ke){if(1&ne){const Ee=p.EpF();p.TgZ(0,"td",21)(1,"mat-checkbox",22),p.NdJ("change",function(it){const X=p.CHM(Ee).$implicit,r=p.oxw();return p.KtG(it?r.selection.toggle(X):null)})("click",function(it){return it.stopPropagation()}),p.ALo(2,"translate"),p.ALo(3,"checkboxLabel"),p.qZA()()}if(2&ne){const Ee=ke.$implicit,ot=p.oxw();p.xp6(1),p.Q2q("data-cy","",Ee.facility.name,"-checkbox"),p.Q6J("aria-label",p.xi3(2,3,p.lcZ(3,6,ot.selection.isSelected(Ee)),p.VKq(8,xe,Ee.facility.name)))("checked",ot.selection.isSelected(Ee))}}function Se(ne,ke){1&ne&&(p.TgZ(0,"th",23),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&ne&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.ID")," "))}function Be(ne,ke){if(1&ne&&(p.TgZ(0,"td",24),p._uU(1),p.qZA()),2&ne){const Ee=ke.$implicit;p.xp6(1),p.hij(" ",Ee.facility.id," ")}}function pe(ne,ke){1&ne&&p._UZ(0,"th",25)}function $e(ne,ke){if(1&ne&&(p.TgZ(0,"td",26),p._UZ(1,"perun-web-apps-recently-viewed-icon",27),p.qZA()),2&ne){const Ee=ke.$implicit,ot=p.oxw();p.xp6(1),p.Q6J("id",Ee.facility.id)("recentIds",ot.recentIds)}}function Ce(ne,ke){1&ne&&(p.TgZ(0,"th",23),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&ne&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.NAME")," "))}function de(ne,ke){if(1&ne&&(p.TgZ(0,"td",26),p._uU(1),p.qZA()),2&ne){const Ee=ke.$implicit;p.uIk("data-cy",Ee.facility.name),p.xp6(1),p.hij(" ",Ee.facility.name," ")}}function re(ne,ke){1&ne&&(p.TgZ(0,"th",25),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&ne&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.DESCRIPTION")," "))}function B(ne,ke){if(1&ne&&(p.TgZ(0,"td",26),p._uU(1),p.qZA()),2&ne){const Ee=ke.$implicit;p.xp6(1),p.Oqu(Ee.facility.description)}}function N(ne,ke){1&ne&&(p.TgZ(0,"th",25),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&ne&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.TECHNICAL_OWNERS")," "))}function Me(ne,ke){if(1&ne&&(p.TgZ(0,"td",26),p._uU(1),p.ALo(2,"technicalOwners"),p.qZA()),2&ne){const Ee=ke.$implicit;p.xp6(1),p.Oqu(p.lcZ(2,1,Ee.owners))}}function Y(ne,ke){1&ne&&(p.TgZ(0,"th",25),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&ne&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.DESTINATIONS")," "))}function be(ne,ke){if(1&ne){const Ee=p.EpF();p.TgZ(0,"td",26)(1,"perun-web-apps-object-list-values",28),p.NdJ("mouseenter",function(){p.CHM(Ee);const it=p.oxw();return p.KtG(it.localDisableRouting=!0)})("mouseleave",function(){p.CHM(Ee);const it=p.oxw();return p.KtG(it.localDisableRouting=!1)}),p.ALo(2,"filterUniqueObjects"),p.qZA()()}if(2&ne){const Ee=ke.$implicit,ot=p.oxw();p.xp6(1),p.Q6J("objects",p.Dn7(2,2,Ee.destinations,ot.filterValue,"destination"))("paramName","destination")}}function De(ne,ke){1&ne&&(p.TgZ(0,"th",25),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&ne&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.HOSTS")," "))}function We(ne,ke){if(1&ne){const Ee=p.EpF();p.TgZ(0,"td",26)(1,"perun-web-apps-object-list-values",28),p.NdJ("mouseenter",function(){p.CHM(Ee);const it=p.oxw();return p.KtG(it.localDisableRouting=!0)})("mouseleave",function(){p.CHM(Ee);const it=p.oxw();return p.KtG(it.localDisableRouting=!1)}),p.ALo(2,"filterUniqueObjects"),p.qZA()()}if(2&ne){const Ee=ke.$implicit,ot=p.oxw();p.xp6(1),p.Q6J("objects",p.Dn7(2,2,Ee.hosts,ot.filterValue,"hostname"))("paramName","hostname")}}function Pe(ne,ke){1&ne&&p._UZ(0,"tr",29)}const nt=function(ne){return["/facilities",ne]},Ye=function(){return[]};function Tt(ne,ke){if(1&ne&&p._UZ(0,"tr",30),2&ne){const Ee=ke.$implicit,ot=p.oxw();p.ekj("cursor-pointer",!ot.disableRouting)("disable-outline",ot.disableRouting),p.Q6J("perunWebAppsMiddleClickRouterLink",p.VKq(6,nt,Ee.facility.id))("routerLink",ot.disableRouting||ot.localDisableRouting?p.DdM(8,Ye):p.VKq(9,nt,Ee.facility.id))}}function J(ne,ke){1&ne&&(p.TgZ(0,"perun-web-apps-alert",31),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&ne&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function Xe(ne,ke){1&ne&&(p.TgZ(0,"perun-web-apps-alert",31),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&ne&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FACILITIES"),"\n"))}let le=(()=>{class ne{constructor(Ee){this.authResolver=Ee,this.displayedColumns=["select","id","recent","name","description","technicalOwners","destinations","hosts"],this.pageSizeOptions=A.f7,this.disableRouting=!1,this.getDataForColumnFun=(ot,it)=>ne.getDataForColumn(ot,it,this.recentIds)}set matSort(Ee){this.sort=Ee}static getDataForColumn(Ee,ot,it){switch(ot){case"id":return Ee.facility.id.toString();case"name":return Ee.facility.name;case"description":return Ee.facility.description;case"technicalOwners":return(0,A.te)(Ee.owners);case"recent":return it&&it.includes(Ee.facility.id)?"#".repeat(it.indexOf(Ee.facility.id)):Ee.name;case"destinations":return Ee.destinations.map(oe=>oe.destination).join(" ; ");case"hosts":return Ee.hosts.map(oe=>oe.hostname).join(" ; ");default:return Ee[ot]}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(Ee=>"id"!==Ee)),this.setDataSource()}exportAllData(Ee){(0,A.O6)((0,A.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumnFun),Ee)}exportDisplayedData(Ee){const ot=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,it=ot+this.dataSource.paginator.pageSize;(0,A.O6)((0,A.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(ot,it),this.displayedColumns,this.getDataForColumnFun),Ee)}setDataSource(){this.dataSource||(this.dataSource=new m.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(Ee,ot)=>(0,A.Sd)(Ee,ot,this.displayedColumns,this.getDataForColumnFun),this.dataSource.sortData=(Ee,ot)=>(0,A.pR)(Ee,ot,this.getDataForColumnFun)),this.dataSource.filter=this.filterValue,this.dataSource.data=this.facilities}isAllSelected(){return this.selection.selected.length===this.dataSource.data.length}masterToggle(){this.isAllSelected()?this.selection.clear():this.dataSource.data.forEach(Ee=>this.selection.select(Ee))}}return ne.\u0275fac=function(Ee){return new(Ee||ne)(p.Y36(w.x4))},ne.\u0275cmp=p.Xpm({type:ne,selectors:[["perun-web-apps-facilities-list"]],viewQuery:function(Ee,ot){if(1&Ee&&(p.Gf(A.l9,7),p.Gf(e.YE,7)),2&Ee){let it;p.iGM(it=p.CRH())&&(ot.child=it.first),p.iGM(it=p.CRH())&&(ot.matSort=it.first)}},inputs:{facilities:"facilities",recentIds:"recentIds",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",selection:"selection",pageSizeOptions:"pageSizeOptions",disableRouting:"disableRouting"},features:[p.TTD],decls:31,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","recent"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","description"],["matColumnDef","technicalOwners"],["matColumnDef","destinations"],["matColumnDef","hosts"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-header-cell",""],["mat-cell",""],[3,"id","recentIds"],[3,"objects","paramName","mouseenter","mouseleave"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(Ee,ot){1&Ee&&(p.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),p.NdJ("exportDisplayedData",function(oe){return ot.exportDisplayedData(oe)})("exportAllData",function(oe){return ot.exportAllData(oe)}),p.TgZ(2,"table",2),p.ynx(3,3),p.YNc(4,ae,1,0,"th",4),p.YNc(5,ge,4,10,"td",5),p.BQk(),p.ynx(6,6),p.YNc(7,Se,3,3,"th",7),p.YNc(8,Be,2,1,"td",8),p.BQk(),p.ynx(9,9),p.YNc(10,pe,1,0,"th",10),p.YNc(11,$e,2,2,"td",11),p.BQk(),p.ynx(12,12),p.YNc(13,Ce,3,3,"th",7),p.YNc(14,de,2,2,"td",11),p.BQk(),p.ynx(15,13),p.YNc(16,re,3,3,"th",10),p.YNc(17,B,2,1,"td",11),p.BQk(),p.ynx(18,14),p.YNc(19,N,3,3,"th",10),p.YNc(20,Me,3,3,"td",11),p.BQk(),p.ynx(21,15),p.YNc(22,Y,3,3,"th",10),p.YNc(23,be,3,6,"td",11),p.BQk(),p.ynx(24,16),p.YNc(25,De,3,3,"th",10),p.YNc(26,We,3,6,"td",11),p.BQk(),p.YNc(27,Pe,1,0,"tr",17),p.YNc(28,Tt,1,11,"tr",18),p.qZA()()(),p.YNc(29,J,3,3,"perun-web-apps-alert",19),p.YNc(30,Xe,3,3,"perun-web-apps-alert",19)),2&Ee&&(p.Q6J("hidden",!ot.dataSource||0===ot.dataSource.filteredData.length||0===ot.facilities.length),p.xp6(1),p.Q6J("tableId",ot.tableId)("dataLength",ot.dataSource.filteredData.length)("pageSizeOptions",ot.pageSizeOptions),p.xp6(1),p.Q6J("dataSource",ot.dataSource),p.xp6(25),p.Q6J("matHeaderRowDef",ot.displayedColumns),p.xp6(1),p.Q6J("matRowDefColumns",ot.displayedColumns),p.xp6(1),p.Q6J("ngIf",0===ot.dataSource.filteredData.length&&0!==ot.facilities.length),p.xp6(1),p.Q6J("ngIf",0===ot.facilities.length))},dependencies:[g.O5,T.oG,m.BZ,m.fO,m.as,m.w1,m.Dz,m.nj,m.ge,m.ev,m.XQ,m.Gk,E.rH,e.YE,e.nU,S.w,R.l,v.YH,D.W,b,v.QG,H.X$,L.J,V,Q.G],styles:[".disable-outline[_ngcontent-%COMP%]{outline:none!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),ne})()},79707:(Qe,he,u)=>{"use strict";u.d(he,{R:()=>p});var e=u(94650),m=u(9244),A=u(42377),w=u(89383);let p=(()=>{class g{constructor(){this.disableAutoSelect=!1,this.facilitySelected=new e.vpe,this.nameFunction=E=>E.name}ngOnInit(){this.facilities=this.facilities.sort(m.aC)}}return g.\u0275fac=function(E){return new(E||g)},g.\u0275cmp=e.Xpm({type:g,selectors:[["perun-web-apps-facility-search-select"]],inputs:{facilities:"facilities",disableAutoSelect:"disableAutoSelect"},outputs:{facilitySelected:"facilitySelected"},decls:4,vars:13,consts:[[3,"entities","disableAutoSelect","searchFunction","mainTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(E,S){1&E&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(v){return S.facilitySelected.emit(v)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&E&&e.Q6J("entities",S.facilities)("disableAutoSelect",S.disableAutoSelect)("searchFunction",S.nameFunction)("mainTextFunction",S.nameFunction)("selectPlaceholder",e.lcZ(1,7,"SHARED_LIB.PERUN.COMPONENTS.FACILITY_SEARCH_SELECT.SELECT_FACILITY"))("findPlaceholder",e.lcZ(2,9,"SHARED_LIB.PERUN.COMPONENTS.FACILITY_SEARCH_SELECT.FIND_FACILITY"))("noEntriesText",e.lcZ(3,11,"SHARED_LIB.PERUN.COMPONENTS.FACILITY_SEARCH_SELECT.NO_FACILITY_FOUND"))},dependencies:[A.i,w.X$]}),g})()},13449:(Qe,he,u)=>{"use strict";u.d(he,{i:()=>b});var e=u(94650),m=u(69723),A=u(36895),w=u(97392),p=u(28255),g=u(4859),T=u(10266),E=u(64425),S=u(89383),R=u(29218),v=u(45942),D=u(28764);function F(H,L){if(1&H){const V=e.EpF();e.TgZ(0,"span",5),e.ALo(1,"translate"),e.ALo(2,"groupSyncToolTip"),e.TgZ(3,"button",6),e.NdJ("click",function(){e.CHM(V);const ae=e.oxw(2);return e.KtG(ae.onSyncDetail())}),e.ALo(4,"groupSyncIcon"),e.TgZ(5,"mat-icon"),e.ALo(6,"groupSyncIconColor"),e._uU(7),e.ALo(8,"groupSyncIcon"),e.qZA()()()}if(2&H){const V=e.oxw(2);e.Q6J("matTooltipPosition","above")("matTooltip",e.lcZ(1,7,e.lcZ(2,9,V.group))),e.xp6(3),e.Q6J("disabled","sync_disabled"===e.lcZ(4,11,V.group)),e.xp6(2),e.Tol(e.lcZ(6,13,V.group)),e.xp6(2),e.hij(" ",e.lcZ(8,15,V.group)," ")}}function z(H,L){if(1&H){const V=e.EpF();e.TgZ(0,"span",5),e.ALo(1,"translate"),e.TgZ(2,"button",6),e.NdJ("click",function(){e.CHM(V);const ae=e.oxw(2);return e.KtG(ae.onMoveGroup())}),e.TgZ(3,"mat-icon"),e._uU(4,"arrow_right_alt"),e.qZA()()()}if(2&H){const V=e.oxw(2);e.s9C("matTooltip",e.lcZ(1,3,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.MOVE")),e.Q6J("matTooltipPosition","above"),e.xp6(2),e.Q6J("disabled",V.disabled)}}function $(H,L){if(1&H){const V=e.EpF();e.TgZ(0,"span",5),e.ALo(1,"translate"),e.TgZ(2,"button",6),e.NdJ("click",function(){e.CHM(V);const ae=e.oxw(2);return e.KtG(ae.onChangeNameDescription())}),e.TgZ(3,"mat-icon"),e._uU(4,"text_format"),e.qZA()()()}if(2&H){const V=e.oxw(2);e.s9C("matTooltip",e.lcZ(1,3,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.RENAME")),e.Q6J("matTooltipPosition","above"),e.xp6(2),e.Q6J("disabled",V.disabled)}}function G(H,L){if(1&H&&(e.TgZ(0,"div",2)(1,"button",3),e.ALo(2,"translate"),e.TgZ(3,"mat-icon"),e._uU(4," file_copy "),e.qZA()(),e.YNc(5,F,9,17,"span",4),e.YNc(6,z,5,5,"span",4),e.YNc(7,$,5,5,"span",4),e.qZA()),2&H){const V=e.oxw();e.xp6(1),e.s9C("matTooltip",e.lcZ(2,6,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.COPY")),e.Q6J("cdkCopyToClipboard",V.group.name)("matTooltipPosition","above"),e.xp6(4),e.Q6J("ngIf",V.syncAuth),e.xp6(1),e.Q6J("ngIf",V.moveAuth),e.xp6(1),e.Q6J("ngIf",V.editAuth)}}function q(H,L){if(1&H){const V=e.EpF();e.TgZ(0,"button",11),e.NdJ("click",function(){e.CHM(V);const ae=e.oxw(2);return e.KtG(ae.onSyncDetail())}),e.ALo(1,"groupSyncIcon"),e.TgZ(2,"mat-icon"),e.ALo(3,"groupSyncIconColor"),e._uU(4),e.ALo(5,"groupSyncIcon"),e.qZA(),e.TgZ(6,"span"),e._uU(7),e.ALo(8,"translate"),e.ALo(9,"groupSyncToolTip"),e.qZA()()}if(2&H){const V=e.oxw(2);e.Q6J("disabled","sync_disabled"===e.lcZ(1,6,V.group)),e.xp6(2),e.Tol(e.lcZ(3,8,V.group)),e.xp6(2),e.hij(" ",e.lcZ(5,10,V.group)," "),e.xp6(3),e.Oqu(e.lcZ(8,12,e.lcZ(9,14,V.group)))}}function _e(H,L){if(1&H){const V=e.EpF();e.TgZ(0,"button",11),e.NdJ("click",function(){e.CHM(V);const ae=e.oxw(2);return e.KtG(ae.onMoveGroup())}),e.TgZ(1,"mat-icon"),e._uU(2,"arrow_right_alt"),e.qZA(),e.TgZ(3,"span"),e._uU(4),e.ALo(5,"translate"),e.qZA()()}if(2&H){const V=e.oxw(2);e.Q6J("disabled",V.disabled),e.xp6(4),e.Oqu(e.lcZ(5,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.MOVE"))}}function ce(H,L){if(1&H){const V=e.EpF();e.TgZ(0,"button",11),e.NdJ("click",function(){e.CHM(V);const ae=e.oxw(2);return e.KtG(ae.onChangeNameDescription())}),e.TgZ(1,"mat-icon"),e._uU(2,"text_format"),e.qZA(),e.TgZ(3,"span"),e._uU(4),e.ALo(5,"translate"),e.qZA()()}if(2&H){const V=e.oxw(2);e.Q6J("disabled",V.disabled),e.xp6(4),e.Oqu(e.lcZ(5,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.RENAME"))}}function Te(H,L){if(1&H&&(e.TgZ(0,"div")(1,"button",7)(2,"mat-icon"),e._uU(3,"more_vert"),e.qZA()(),e.TgZ(4,"mat-menu",null,8)(6,"button",9)(7,"mat-icon"),e._uU(8," file_copy "),e.qZA(),e.TgZ(9,"span"),e._uU(10),e.ALo(11,"translate"),e.qZA()(),e.YNc(12,q,10,16,"button",10),e.YNc(13,_e,6,4,"button",10),e.YNc(14,ce,6,4,"button",10),e.qZA()()),2&H){const V=e.MAs(5),Q=e.oxw();e.xp6(1),e.Q6J("mat-menu-trigger-for",V),e.xp6(5),e.Q6J("cdkCopyToClipboard",Q.group.name),e.xp6(4),e.Oqu(e.lcZ(11,6,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.COPY")),e.xp6(2),e.Q6J("ngIf",Q.syncAuth),e.xp6(1),e.Q6J("ngIf",Q.moveAuth),e.xp6(1),e.Q6J("ngIf",Q.editAuth)}}let b=(()=>{class H{constructor(V){this.authResolver=V,this.disabled=!1,this.moveGroup=new e.vpe,this.syncGroup=new e.vpe,this.changeNameDescription=new e.vpe}ngOnInit(){this.syncAuth=this.authResolver.isAuthorized("forceGroupSynchronization_Group_policy",[this.group]),this.editAuth=this.authResolver.isAuthorized("updateGroup_Group_policy",[this.group]),this.moveAuth=this.authResolver.isAuthorized("moveGroup_Group_Group_policy",[this.group])||this.authResolver.isAuthorized("destination_null-moveGroup_Group_Group_policy",[this.group])}onMoveGroup(){this.moveGroup.emit()}onSyncDetail(){this.syncGroup.emit()}onChangeNameDescription(){this.changeNameDescription.emit()}}return H.\u0275fac=function(V){return new(V||H)(e.Y36(m.x4))},H.\u0275cmp=e.Xpm({type:H,selectors:[["perun-web-apps-group-menu"]],inputs:{group:"group",disabled:"disabled",displayButtons:"displayButtons"},outputs:{moveGroup:"moveGroup",syncGroup:"syncGroup",changeNameDescription:"changeNameDescription"},decls:2,vars:2,consts:[["class","buttons-container",4,"ngIf"],[4,"ngIf"],[1,"buttons-container"],["mat-icon-button","",1,"ml-auto","horiz_right",3,"cdkCopyToClipboard","matTooltipPosition","matTooltip"],[3,"matTooltipPosition","matTooltip",4,"ngIf"],[3,"matTooltipPosition","matTooltip"],["mat-icon-button","",3,"disabled","click"],["mat-icon-button","",3,"mat-menu-trigger-for"],["groupMenu","matMenu"],["mat-menu-item","",3,"cdkCopyToClipboard"],["mat-menu-item","",3,"disabled","click",4,"ngIf"],["mat-menu-item","",3,"disabled","click"]],template:function(V,Q){1&V&&(e.YNc(0,G,8,8,"div",0),e.YNc(1,Te,15,8,"div",1)),2&V&&(e.Q6J("ngIf",Q.displayButtons),e.xp6(1),e.Q6J("ngIf",!Q.displayButtons))},dependencies:[A.O5,w.Hw,p.VK,p.OP,p.p6,g.lW,T.gM,E.i3,S.X$,R.J,v.r,D.F],styles:[".buttons-container[_ngcontent-%COMP%]{white-space:nowrap;width:160px}.horiz_right[_ngcontent-%COMP%]{float:right}"]}),H})()},8223:(Qe,he,u)=>{"use strict";u.d(he,{x:()=>F});var e=u(94650),m=u(9244),A=u(21029),w=u(65412),p=u(36895),g=u(97392),T=u(10266),E=u(89383);function S(z,$){if(1&z){const G=e.EpF();e.TgZ(0,"span",3),e.NdJ("click",function(){e.CHM(G);const _e=e.oxw();return e.KtG(_e.changeStatus())}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon",4),e._uU(3,"check_circle_outline"),e.qZA()()}if(2&z){const G=e.oxw();e.s9C("matTooltip",e.lcZ(1,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.ACTIVE")),e.Q2q("data-cy","",G.groupName,"-active")}}function R(z,$){if(1&z){const G=e.EpF();e.TgZ(0,"span",3),e.NdJ("click",function(){e.CHM(G);const _e=e.oxw();return e.KtG(_e.changeStatus())}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon",5),e._uU(3,"block"),e.qZA()()}if(2&z){const G=e.oxw();e.s9C("matTooltip",e.lcZ(1,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.INACTIVE")),e.Q2q("data-cy","",G.groupName,"-inactive")}}function v(z,$){if(1&z){const G=e.EpF();e.TgZ(0,"span",3),e.NdJ("click",function(){e.CHM(G);const _e=e.oxw();return e.KtG(_e.changeStatus())}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon",6),e._uU(3,"report"),e.qZA()()}if(2&z){const G=e.oxw();e.hYB("matTooltip","",e.lcZ(1,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.FAILED"),": ",G.failureCause,"")}}function D(z,$){1&z&&(e.TgZ(0,"span",7),e.ALo(1,"translate"),e.TgZ(2,"mat-icon",8),e._uU(3,"autorenew"),e.qZA()()),2&z&&e.s9C("matTooltip",e.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.PROCESSING"))}let F=(()=>{class z{constructor(G){this.dialog=G,this.status="",this.groupName="",this.statusChange=new e.vpe}changeStatus(){const G=(0,m.kZ)();G.width="500px",G.data={theme:this.theme,status:this.status,groupId:this.groupId,resourceId:this.resourceId},this.dialog.open(A.Qu,G).afterClosed().subscribe(_e=>{_e&&this.statusChange.emit()})}}return z.\u0275fac=function(G){return new(G||z)(e.Y36(w.uw))},z.\u0275cmp=e.Xpm({type:z,selectors:[["perun-web-apps-group-resource-status"]],inputs:{status:"status",groupId:"groupId",groupName:"groupName",resourceId:"resourceId",theme:"theme",failureCause:"failureCause"},outputs:{statusChange:"statusChange"},decls:5,vars:4,consts:[[1,"flex-container"],["matTooltipPosition","above",3,"matTooltip","click",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip","click"],[1,"green"],[1,"grey"],[1,"red"],["matTooltipPosition","above",3,"matTooltip"],[1,"black"]],template:function(G,q){1&G&&(e.TgZ(0,"div",0),e.YNc(1,S,4,4,"span",1),e.YNc(2,R,4,4,"span",1),e.YNc(3,v,4,4,"span",1),e.YNc(4,D,4,3,"span",2),e.qZA()),2&G&&(e.xp6(1),e.Q6J("ngIf","ACTIVE"===q.status),e.xp6(1),e.Q6J("ngIf","INACTIVE"===q.status),e.xp6(1),e.Q6J("ngIf","FAILED"===q.status),e.xp6(1),e.Q6J("ngIf","PROCESSING"===q.status))},dependencies:[p.O5,g.Hw,T.gM,E.X$]}),z})()},82322:(Qe,he,u)=>{"use strict";u.d(he,{h:()=>p});var e=u(94650),m=u(9244),A=u(42377),w=u(89383);let p=(()=>{class g{constructor(){this.disableAutoSelect=!1,this.displayStatus=!1,this.groupSelected=new e.vpe,this.nameFunction=E=>E.name}ngOnInit(){this.groups=this.groups.sort(m.aC)}}return g.\u0275fac=function(E){return new(E||g)},g.\u0275cmp=e.Xpm({type:g,selectors:[["perun-web-apps-group-search-select"]],inputs:{groups:"groups",disableAutoSelect:"disableAutoSelect",firstSelectedGroup:"firstSelectedGroup",displayStatus:"displayStatus"},outputs:{groupSelected:"groupSelected"},decls:4,vars:15,consts:[[1,"long-input",3,"entities","entity","displayStatus","disableAutoSelect","mainTextFunction","searchFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(E,S){if(1&E&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(v){return S.groupSelected.emit(v)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&E){let R;e.Q6J("entities",S.groups)("entity",null!==(R=S.firstSelectedGroup)&&void 0!==R?R:null)("displayStatus",S.displayStatus)("disableAutoSelect",S.disableAutoSelect)("mainTextFunction",S.nameFunction)("searchFunction",S.nameFunction)("selectPlaceholder",e.lcZ(1,9,"SHARED_LIB.PERUN.COMPONENTS.GROUP_SEARCH_SELECT.SELECT_GROUP"))("findPlaceholder",e.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.GROUP_SEARCH_SELECT.FIND_GROUP"))("noEntriesText",e.lcZ(3,13,"SHARED_LIB.PERUN.COMPONENTS.GROUP_SEARCH_SELECT.NO_GROUP_FOUND"))}},dependencies:[A.i,w.X$]}),g})()},25788:(Qe,he,u)=>{"use strict";u.d(he,{W:()=>ct});var e=u(94650),m=u(21029),A=u(32105),w=u(69723),p=u(9244),g=u(91479),T=u(96308),E=u(30671),S=u(95017),R=u(19516),v=u(65412),D=u(36895),F=u(56709),z=u(98380),$=u(97392),G=u(4859),q=u(10266),_e=u(18750),ce=u(13449),Te=u(94391),b=u(10441),H=u(8223),L=u(89383),V=u(21757);let Q=(()=>{class Ue{transform(fe){return fe.attributes.find(Ke=>"groupMembershipExpiration"===Ke.baseFriendlyName)?.value??"Never"}}return Ue.\u0275fac=function(fe){return new(fe||Ue)},Ue.\u0275pipe=e.Yjl({name:"groupExpiration",type:Ue,pure:!0}),Ue})();var ae=u(82514),xe=u(62383),ge=u(9185);let Se=(()=>{class Ue{transform(fe,Oe){return(0,p.cT)(fe,Oe)}}return Ue.\u0275fac=function(fe){return new(fe||Ue)},Ue.\u0275pipe=e.Yjl({name:"findAttribute",type:Ue,pure:!0}),Ue})(),Be=(()=>{class Ue{constructor(fe){this.authResolver=fe}transform(fe){return this.authResolver.isThisGroupAdmin(fe.id)||this.authResolver.isThisVoAdmin(fe.voId)}}return Ue.\u0275fac=function(fe){return new(fe||Ue)(e.Y36(w.x4,16))},Ue.\u0275pipe=e.Yjl({name:"canManageGroup",type:Ue,pure:!0}),Ue})();var pe=u(22908);let $e=(()=>{class Ue{transform(fe,Oe,Ke){return Oe?"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.CREATE_RELATION_AUTH_TOOLTIP":(0,p.bx)(fe)?"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.SYNCHRONIZED_GROUP":fe.sourceGroupId?"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.INDIRECT_GROUP":"members"===fe.name?"":Ke?"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.ALREADY_MEMBER_TOOLTIP":"MEMBERS_LIST.CHECKBOX_TOOLTIP_INDIRECT"}}return Ue.\u0275fac=function(fe){return new(fe||Ue)},Ue.\u0275pipe=e.Yjl({name:"groupCheckboxTooltip",type:Ue,pure:!0}),Ue})();var Ce=u(8231),de=u(14849);function re(Ue,at){if(1&Ue){const fe=e.EpF();e.TgZ(0,"mat-checkbox",27),e.NdJ("change",function(Ke){e.CHM(fe);const je=e.oxw(3);return e.KtG(Ke?je.masterToggle():null)}),e.ALo(1,"translate"),e.ALo(2,"masterCheckboxLabel"),e.qZA()}if(2&Ue){const fe=e.oxw(2).ngIf,Oe=e.oxw();e.Q6J("aria-label",e.lcZ(1,3,e.lcZ(2,5,fe.all)))("checked",Oe.selection.hasValue()&&fe.all)("indeterminate",Oe.selection.hasValue()&&!fe.all)}}function B(Ue,at){if(1&Ue&&(e.TgZ(0,"th",25),e.YNc(1,re,3,7,"mat-checkbox",26),e.qZA()),2&Ue){const fe=e.oxw(2);e.xp6(1),e.Q6J("ngIf",!fe.disableHeadCheckbox&&fe.selection.isMultipleSelection())}}const N=function(Ue){return{name:Ue}};function Me(Ue,at){if(1&Ue){const fe=e.EpF();e.TgZ(0,"span",30),e.ALo(1,"translate"),e.ALo(2,"groupCheckboxTooltip"),e.TgZ(3,"mat-checkbox",31),e.NdJ("change",function(Ke){e.CHM(fe);const je=e.oxw().$implicit,Le=e.oxw(2);return e.KtG(Ke?Le.itemSelectionToggle(je):null)})("click",function(Ke){return Ke.stopPropagation()}),e.ALo(4,"translate"),e.ALo(5,"checkboxLabel"),e.qZA()()}if(2&Ue){const fe=at.ngIf,Oe=e.oxw().$implicit,Ke=e.oxw(2);e.Q6J("matTooltip",e.lcZ(1,7,e.Dn7(2,9,Oe,!1,Ke.canBeSelected(Oe))))("matTooltipPosition","above")("matTooltipDisabled",!fe.disable&&Ke.canBeSelected(Oe)),e.xp6(3),e.Q2q("data-cy","",Oe.name,"-checkbox"),e.Q6J("aria-label",e.xi3(4,13,e.lcZ(5,16,Ke.selection.isSelected(Oe)),e.VKq(18,N,Oe.name)))("checked",Ke.selection.isSelected(Oe))("disabled",fe.disable||!Ke.canBeSelected(Oe))}}const Y=function(Ue){return{disable:Ue}};function be(Ue,at){if(1&Ue&&(e.TgZ(0,"td",28),e.YNc(1,Me,6,20,"span",29),e.ALo(2,"disableGroupSelect"),e.qZA()),2&Ue){const fe=at.$implicit,Oe=e.oxw(2);e.xp6(1),e.Q6J("ngIf",e.VKq(6,Y,e.gM2(2,1,fe,Oe.disableMembers,Oe.disableGroups,Oe.groupsToDisableCheckbox)))}}function De(Ue,at){1&Ue&&(e.ynx(0,22),e.YNc(1,B,2,1,"th",23),e.YNc(2,be,3,8,"td",24),e.BQk())}function We(Ue,at){1&Ue&&(e.TgZ(0,"th",32),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Ue&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_ID")," "))}function Pe(Ue,at){if(1&Ue&&(e.TgZ(0,"td",33),e._uU(1),e.qZA()),2&Ue){const fe=at.$implicit;e.xp6(1),e.Oqu(fe.id)}}function nt(Ue,at){1&Ue&&e._UZ(0,"th",34)}function Ye(Ue,at){if(1&Ue&&(e.TgZ(0,"td",35),e._UZ(1,"perun-web-apps-recently-viewed-icon",36),e.qZA()),2&Ue){const fe=at.$implicit,Oe=e.oxw();e.xp6(1),e.Q6J("recentIds",Oe.recentIds)("id",fe.id)}}function Tt(Ue,at){1&Ue&&(e.TgZ(0,"th",32),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Ue&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_VO_NAME")," "))}function J(Ue,at){if(1&Ue&&(e.TgZ(0,"td",33),e._uU(1),e.qZA()),2&Ue){const fe=at.$implicit,Oe=e.oxw();e.xp6(1),e.hij(" ",Oe.voNames.get(fe.voId)," ")}}function Xe(Ue,at){1&Ue&&e._UZ(0,"th",34)}function le(Ue,at){1&Ue&&(e.TgZ(0,"mat-icon",38),e.ALo(1,"translate"),e._uU(2,"account_tree"),e.qZA()),2&Ue&&e.Q6J("matTooltip",e.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.INDIRECT_GROUP"))}function ne(Ue,at){1&Ue&&(e.TgZ(0,"mat-icon",38),e.ALo(1,"translate"),e._uU(2,"alt_route"),e.qZA()),2&Ue&&e.Q6J("matTooltip",e.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.MULTIPLE_ASSIGNMENTS"))}function ke(Ue,at){if(1&Ue&&(e.TgZ(0,"td",35),e.YNc(1,le,3,3,"mat-icon",37),e.YNc(2,ne,3,3,"mat-icon",37),e.qZA()),2&Ue){const fe=at.$implicit;e.xp6(1),e.Q6J("ngIf",fe.sourceGroupId&&!fe.moreTypesOfAssignment),e.xp6(1),e.Q6J("ngIf",fe.moreTypesOfAssignment)}}function Ee(Ue,at){1&Ue&&(e.TgZ(0,"th",32),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Ue&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_NAME")," "))}function ot(Ue,at){if(1&Ue&&(e.TgZ(0,"td",35),e._uU(1),e.qZA()),2&Ue){const fe=at.$implicit;e.uIk("data-cy",fe.name),e.xp6(1),e.hij(" ",fe.name," ")}}function it(Ue,at){1&Ue&&(e.TgZ(0,"th",32),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Ue&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_STATUS")," "))}function oe(Ue,at){if(1&Ue){const fe=e.EpF();e.TgZ(0,"td",39)(1,"perun-web-apps-group-resource-status",40),e.NdJ("mouseenter",function(){e.CHM(fe);const Ke=e.oxw();return e.KtG(Ke.disabledRouting=!0)})("mouseleave",function(){e.CHM(fe);const Ke=e.oxw();return e.KtG(Ke.disabledRouting=Ke.disableRouting)})("statusChange",function(){e.CHM(fe);const Ke=e.oxw();return e.KtG(Ke.refreshTable.emit())}),e.qZA()()}if(2&Ue){const fe=at.$implicit,Oe=e.oxw();e.xp6(1),e.Q6J("theme","resource-theme")("groupId",fe.id)("groupName",fe.name)("resourceId",Oe.resourceId)("failureCause",fe.failureCause)("status",fe.status)}}function X(Ue,at){1&Ue&&(e.TgZ(0,"th",32),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Ue&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_STATUS")," "))}function r(Ue,at){if(1&Ue&&(e.TgZ(0,"i",42),e.ALo(1,"groupStatusIconColor"),e.TgZ(2,"span"),e._uU(3),e.ALo(4,"memberStatusIcon"),e.qZA()()),2&Ue){const fe=at.ngIf;e.Gre("material-icons ",e.lcZ(1,5,fe.status),""),e.s9C("matTooltip",fe.status),e.xp6(3),e.hij(" ",e.lcZ(4,7,fe.status)," ")}}const s=function(Ue){return{status:Ue}};function _(Ue,at){if(1&Ue&&(e.TgZ(0,"td",35),e.YNc(1,r,5,9,"i",41),e.ALo(2,"findAttribute"),e.qZA()),2&Ue){const fe=at.$implicit;e.xp6(1),e.Q6J("ngIf",e.VKq(4,s,e.xi3(2,1,fe.attributes,"groupStatus")))}}function c(Ue,at){1&Ue&&(e.TgZ(0,"th",32),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Ue&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_DESCRIPTION")," "))}function a(Ue,at){if(1&Ue&&(e.TgZ(0,"td",39),e._uU(1),e.qZA()),2&Ue){const fe=at.$implicit;e.xp6(1),e.Oqu(fe.description)}}function i(Ue,at){1&Ue&&(e.TgZ(0,"th",32),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Ue&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_EXPIRATION")," "))}function t(Ue,at){if(1&Ue){const fe=e.EpF();e.TgZ(0,"button",44),e.NdJ("click",function(){e.CHM(fe);const Ke=e.oxw().$implicit,je=e.oxw();return e.KtG(je.changeExpiration(Ke))})("mouseenter",function(){e.CHM(fe);const Ke=e.oxw(2);return e.KtG(Ke.disabledRouting=!0)})("mouseleave",function(){e.CHM(fe);const Ke=e.oxw(2);return e.KtG(Ke.disabledRouting=Ke.disableRouting)}),e.TgZ(1,"mat-icon"),e._uU(2,"edit"),e.qZA()()}}function n(Ue,at){if(1&Ue&&(e.TgZ(0,"td",39),e._uU(1),e.ALo(2,"parseDate"),e.ALo(3,"groupExpiration"),e.YNc(4,t,3,0,"button",43),e.ALo(5,"canManageGroup"),e.qZA()),2&Ue){const fe=at.$implicit;e.xp6(1),e.hij(" ",e.lcZ(2,2,e.lcZ(3,4,fe))," "),e.xp6(3),e.Q6J("ngIf",e.lcZ(5,6,fe))}}function o(Ue,at){1&Ue&&e._UZ(0,"th",34)}function l(Ue,at){if(1&Ue){const fe=e.EpF();e.TgZ(0,"td",35)(1,"perun-web-apps-group-menu",45),e.NdJ("mouseenter",function(){e.CHM(fe);const Ke=e.oxw();return e.KtG(Ke.disabledRouting=!0)})("mouseleave",function(){e.CHM(fe);const Ke=e.oxw();return e.KtG(Ke.disabledRouting=Ke.disableRouting)})("moveGroup",function(){const je=e.CHM(fe).$implicit,Le=e.oxw();return e.KtG(Le.moveGroup(je))})("changeNameDescription",function(){const je=e.CHM(fe).$implicit,Le=e.oxw();return e.KtG(Le.editGroup(je))})("syncGroup",function(){const je=e.CHM(fe).$implicit,Le=e.oxw();return e.KtG(Le.openSyncDetail(je))}),e.qZA()()}if(2&Ue){const fe=at.$implicit,Oe=e.oxw();e.xp6(1),e.Q6J("disabled","members"===fe.name)("displayButtons",Oe.displayButtons)("group",fe)}}function d(Ue,at){1&Ue&&e._UZ(0,"tr",46)}const y=function(Ue,at){return["/organizations",Ue,"groups",at]};function k(Ue,at){if(1&Ue&&e._UZ(0,"tr",47),2&Ue){const fe=at.$implicit,Oe=e.oxw();e.ekj("cursor-pointer",!Oe.disableRouting&&!Oe.groupsToDisableRouting.has(fe.id))("disable-outline",Oe.disableRouting||Oe.disabledRouting||Oe.groupsToDisableRouting.has(fe.id)),e.Q6J("perunWebAppsMiddleClickRouterLink",Oe.disableRouting||Oe.disabledRouting||Oe.groupsToDisableRouting.has(fe.id)?null:e.WLB(6,y,fe.voId,fe.id))("perunWebAppsForceRouterLink",Oe.disableRouting||Oe.disabledRouting||Oe.groupsToDisableRouting.has(fe.id)?null:e.WLB(9,y,fe.voId,fe.id))}}function Ie(Ue,at){if(1&Ue&&(e.TgZ(0,"perun-web-apps-alert",48),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Ue){const fe=e.oxw();e.xp6(1),e.hij(" ",e.lcZ(2,1,fe.noGroupsAlert),"\n")}}const tt=function(Ue){return{all:Ue}};let ct=(()=>{class Ue{constructor(fe,Oe,Ke,je,Le,ie){this.dialog=fe,this.authResolver=Oe,this.voService=Ke,this.tableCheckbox=je,this.disableGroupSelect=Le,this.groupUtils=ie,this.theme="group-theme",this.selection=new S.Ov(!0,[]),this.groupsToDisableCheckbox=new Set,this.groupsToDisableRouting=new Set,this.disableRouting=!1,this.pageSizeOptions=p.f7,this.recentIds=[],this.resourceId=null,this.relation=!1,this.noGroupsAlert="SHARED_LIB.UI.ALERTS.NO_GROUPS",this.groupMoved=new e.vpe,this.refreshTable=new e.vpe,this.queryChanged=new e.vpe,this.downloadAll=new e.vpe,this.displayButtons=window.innerWidth>800,this.disabledRouting=!1,this.voNames=new Map,this.columns=["select","id","recent","vo","indirectGroupAssigment","name","status","groupStatus","description","expiration","menu"],this.getDataForColumnFun=(Ae,st)=>this.groupUtils.getDataForColumn(Ae,st,this.voNames),this.getSortDataForColumnFun=(Ae,st)=>this.groupUtils.getSortDataForColumn(Ae,st,this.voNames,this.recentIds),this.canBeSelected=Ae=>{const st=Ae.attributes?.find(ze=>"groupStatusIndirect"===ze.friendlyName);return st?.value?!st.value:!this.disableGroupSelect.transform(Ae,this.disableMembers,this.disableGroups,this.groupsToDisableCheckbox)}}set groups(fe){this.dataSource||this.dataSourceInit(fe);const Oe=this.isPaginated(fe);(0,g.o)(this.dataSource)&&Oe?(this.dataSource.data=fe.data,this.dataSource.count=fe.totalCount):!(0,g.o)(this.dataSource)&&!Oe&&(this.dataSource.data=fe),this.updateVoNames()}set filter(fe){this.dataSource.filter=fe}set displayedColumns(fe){this.authResolver.isPerunAdminOrObserver()||(fe=fe.filter(Oe=>"id"!==Oe)),this.columns=fe}shouldHideButtons(){this.displayButtons=window.innerWidth>800}isPaginated(fe){return"data"in fe}exportAllData(fe){(0,g.o)(this.dataSource)?this.downloadAll.emit({format:fe,length:this.dataSource.paginator.length}):(0,p.O6)((0,p.Xn)(this.dataSource.filteredData,this.columns,this.getDataForColumnFun),fe)}exportDisplayedData(fe){if((0,g.o)(this.dataSource))(0,p.O6)((0,p.Xn)(this.dataSource.data,this.columns,this.getDataForColumnFun),fe);else{const Oe=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,Ke=Oe+this.dataSource.paginator.pageSize;(0,p.O6)((0,p.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(Oe,Ke),this.columns,this.getDataForColumnFun),fe)}}isAllSelected(){return(0,g.o)(this.dataSource)?this.tableCheckbox.isAllSelectedPaginated(this.dataSource,this.selection.selected.length,this.canBeSelected):this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource,this.canBeSelected)}masterToggle(){(0,g.o)(this.dataSource)?this.tableCheckbox.masterTogglePaginated(this.dataSource,this.selection,!this.isAllSelected(),this.canBeSelected):this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.dataSource.filter,this.dataSource,this.dataSource.sort,this.dataSource.paginator.pageSize,this.dataSource.paginator.pageIndex,!0,this.canBeSelected)}moveGroup(fe){this.groupMoved.emit(fe)}openSyncDetail(fe){const Oe=(0,p.kZ)();Oe.width="450px",Oe.data={groupId:fe.id,theme:this.theme},this.dialog.open(m.Bp,Oe)}editGroup(fe){const Oe=(0,p.kZ)();Oe.data={theme:"group-theme",group:fe,dialogType:m.Eg.GROUP},this.dialog.open(m.rd,Oe).afterClosed().subscribe(je=>{je&&this.refreshTable.emit()})}changeExpiration(fe){const Oe=fe.attributes.find(Le=>"groupMembershipExpiration"===Le.baseFriendlyName),Ke=(0,p.kZ)();Ke.width="400px",Ke.data={memberId:this.memberId,groupId:fe.id,expirationAttr:Oe,status:(0,p.cT)(fe.attributes,"groupStatus")},this.dialog.open(m.u3,Ke).afterClosed().subscribe(Le=>{Le.success&&this.refreshTable.emit()})}itemSelectionToggle(fe){this.selection.toggle(fe)}dataSourceInit(fe){const Oe=this.isPaginated(fe);this.dataSource=Oe?new g.H(fe.data,fe.totalCount,this.sort,this.tableWrapper.paginator):new E.by(fe),(0,g.o)(this.dataSource)?this.dataSource.pageQuery$.subscribe(Ke=>this.queryChanged.emit(Ke)):(this.dataSource.sort=this.sort,this.dataSource.paginator=this.tableWrapper.paginator,this.dataSource.filterPredicate=(Ke,je)=>(0,p.Sd)(Ke,je,this.columns,this.getDataForColumnFun,!0),this.dataSource.sortData=(Ke,je)=>(0,p.pR)(Ke,je,this.getSortDataForColumnFun))}updateVoNames(){if(this.columns.includes("vo")){const fe=new Set;this.dataSource.filteredData.forEach(Oe=>{!fe.has(Oe.voId)&&!this.voNames.has(Oe.voId)&&fe.add(Oe.voId)}),fe.size>0&&this.voService.getVosByIds([...fe]).subscribe(Oe=>{Oe.forEach(Ke=>{this.voNames.set(Ke.id,Ke.name)})})}}}return Ue.\u0275fac=function(fe){return new(fe||Ue)(e.Y36(v.uw),e.Y36(w.x4),e.Y36(A.YF),e.Y36(w.UA),e.Y36(R.yo),e.Y36(w.K1))},Ue.\u0275cmp=e.Xpm({type:Ue,selectors:[["perun-web-apps-groups-list"]],viewQuery:function(fe,Oe){if(1&fe&&(e.Gf(p.l9,7),e.Gf(T.YE,7)),2&fe){let Ke;e.iGM(Ke=e.CRH())&&(Oe.tableWrapper=Ke.first),e.iGM(Ke=e.CRH())&&(Oe.sort=Ke.first)}},hostBindings:function(fe,Oe){1&fe&&e.NdJ("resize",function(je){return Oe.shouldHideButtons(je)},!1,e.Jf7)},inputs:{theme:"theme",selection:"selection",disableMembers:"disableMembers",disableGroups:"disableGroups",groupsToDisableCheckbox:"groupsToDisableCheckbox",groupsToDisableRouting:"groupsToDisableRouting",disableHeadCheckbox:"disableHeadCheckbox",parentGroup:"parentGroup",disableRouting:"disableRouting",memberId:"memberId",memberGroupStatus:"memberGroupStatus",pageSizeOptions:"pageSizeOptions",recentIds:"recentIds",resourceId:"resourceId",tableId:"tableId",relation:"relation",noGroupsAlert:"noGroupsAlert",groups:"groups",filter:"filter",displayedColumns:"displayedColumns"},outputs:{groupMoved:"groupMoved",refreshTable:"refreshTable",queryChanged:"queryChanged",downloadAll:"downloadAll"},features:[e._Bn([R.yo])],decls:38,vars:15,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","tableId","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","recent"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","vo"],["matColumnDef","indirectGroupAssigment"],["matColumnDef","name"],["matColumnDef","status"],["class","wrap-content","mat-cell","",4,"matCellDef"],["matColumnDef","groupStatus"],["matColumnDef","description"],["matColumnDef","expiration"],["matColumnDef","menu"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","perunWebAppsForceRouterLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change",4,"ngIf"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],[3,"matTooltip","matTooltipPosition","matTooltipDisabled",4,"ngIf"],[3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-header-cell",""],["mat-cell",""],[3,"recentIds","id"],["matTooltipPosition","above",3,"matTooltip",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip"],["mat-cell","",1,"wrap-content"],[3,"theme","groupId","groupName","resourceId","failureCause","status","mouseenter","mouseleave","statusChange"],["matTooltipClass","status-tooltip","matTooltipPosition","left",3,"class","matTooltip",4,"ngIf"],["matTooltipClass","status-tooltip","matTooltipPosition","left",3,"matTooltip"],["mat-icon-button","",3,"click","mouseenter","mouseleave",4,"ngIf"],["mat-icon-button","",3,"click","mouseenter","mouseleave"],[3,"disabled","displayButtons","group","mouseenter","mouseleave","moveGroup","changeNameDescription","syncGroup"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","perunWebAppsForceRouterLink"],["alert_type","warn"]],template:function(fe,Oe){if(1&fe&&(e.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),e.NdJ("exportDisplayedData",function(je){return Oe.exportDisplayedData(je)})("exportAllData",function(je){return Oe.exportAllData(je)}),e.TgZ(2,"table",2),e.YNc(3,De,3,0,"ng-container",3),e.ALo(4,"isAllSelected"),e.ynx(5,4),e.YNc(6,We,3,3,"th",5),e.YNc(7,Pe,2,1,"td",6),e.BQk(),e.ynx(8,7),e.YNc(9,nt,1,0,"th",8),e.YNc(10,Ye,2,2,"td",9),e.BQk(),e.ynx(11,10),e.YNc(12,Tt,3,3,"th",5),e.YNc(13,J,2,1,"td",6),e.BQk(),e.ynx(14,11),e.YNc(15,Xe,1,0,"th",8),e.YNc(16,ke,3,2,"td",9),e.BQk(),e.ynx(17,12),e.YNc(18,Ee,3,3,"th",5),e.YNc(19,ot,2,2,"td",9),e.BQk(),e.ynx(20,13),e.YNc(21,it,3,3,"th",5),e.YNc(22,oe,2,6,"td",14),e.BQk(),e.ynx(23,15),e.YNc(24,X,3,3,"th",5),e.YNc(25,_,3,6,"td",9),e.BQk(),e.ynx(26,16),e.YNc(27,c,3,3,"th",5),e.YNc(28,a,2,1,"td",14),e.BQk(),e.ynx(29,17),e.YNc(30,i,3,3,"th",5),e.YNc(31,n,6,8,"td",14),e.BQk(),e.ynx(32,18),e.YNc(33,o,1,0,"th",8),e.YNc(34,l,2,3,"td",9),e.BQk(),e.YNc(35,d,1,0,"tr",19),e.YNc(36,k,1,12,"tr",20),e.qZA()()(),e.YNc(37,Ie,3,3,"perun-web-apps-alert",21)),2&fe){let Ke;e.Q6J("hidden",0===Oe.dataSource.filteredData.length),e.xp6(1),e.Q6J("dataLength",null!==(Ke=Oe.dataSource.count)&&void 0!==Ke?Ke:Oe.dataSource.filteredData.length)("pageSizeOptions",Oe.pageSizeOptions)("tableId",Oe.tableId),e.xp6(1),e.Q6J("dataSource",Oe.dataSource),e.xp6(1),e.Q6J("ngIf",e.VKq(13,tt,e.Dn7(4,9,Oe.dataSource,Oe.selection.selected.length,Oe.canBeSelected))),e.xp6(32),e.Q6J("matHeaderRowDef",Oe.columns),e.xp6(1),e.Q6J("matRowDefColumns",Oe.columns),e.xp6(1),e.Q6J("ngIf",0===Oe.dataSource.filteredData.length)}},dependencies:[D.O5,F.oG,E.BZ,E.fO,E.as,E.w1,E.Dz,E.nj,E.ge,E.ev,E.XQ,E.Gk,T.YE,T.nU,z.w,$.Hw,G.lW,q.gM,_e.l,ce.i,Te.Kd,Te.YH,b.W,H.x,L.X$,V.f,Q,ae.F,xe.M,ge.I,Se,Be,pe.y,$e,Ce.G,de.r],styles:[".card[_ngcontent-%COMP%]{border-radius:0!important}.static-column-size[_ngcontent-%COMP%]{width:80px}.disable-outline[_ngcontent-%COMP%]{outline:none!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:.25rem!important}"]}),Ue})()},58956:(Qe,he,u)=>{"use strict";u.d(he,{I:()=>Be});var e=u(94650),m=u(35423),A=u(57851),w=u(95017);class p{constructor($e){this.id=$e.id,this.name=$e.name,this.parentGroupId=$e.parentGroupId,this.voId=$e.voId,this.shortName=$e.shortName,this.description=$e.description,this.attributes=$e.attributes,this.beanName=$e.beanName}addChild($e){null==this.children?this.children=[$e]:this.children.push($e)}}var g=u(9244),T=u(21029),E=u(69723),S=u(65412),R=u(36895),v=u(56709),D=u(94364),F=u(98380),z=u(97392),$=u(4859),G=u(10266),q=u(67376),_e=u(13449),ce=u(94391),Te=u(89383);const b=["scrollViewport"];function H(pe,$e){if(1&pe){const Ce=e.EpF();e.TgZ(0,"mat-checkbox",19),e.NdJ("change",function(){e.CHM(Ce);const re=e.oxw().$implicit,B=e.oxw(2);return e.KtG(B.itemSelectionToggle(re))}),e.qZA()}if(2&pe){const Ce=e.oxw().$implicit,de=e.oxw(2);e.Q2q("data-cy","",Ce.name,"-checkbox"),e.Q6J("disabled","members"===Ce.fullName)("checked",de.selection.isSelected(Ce))("indeterminate",de.descendantsPartiallySelected(Ce))}}function L(pe,$e){if(1&pe&&(e.TgZ(0,"mat-icon",20),e._uU(1),e.qZA()),2&pe){const Ce=e.oxw().$implicit,de=e.oxw(2);e.xp6(1),e.hij(" ",de.treeControl.isExpanded(Ce)?"expand_more":"chevron_right"," ")}}function V(pe,$e){if(1&pe&&(e.TgZ(0,"span",21),e._uU(1),e.qZA()),2&pe){const Ce=e.oxw().$implicit;e.xp6(1),e.hij(" #",Ce.id," ")}}const Q=function(pe,$e){return["/organizations",pe,"groups",$e]};function ae(pe,$e){if(1&pe){const Ce=e.EpF();e.ynx(0),e.TgZ(1,"div",6),e.YNc(2,H,1,4,"mat-checkbox",7),e.TgZ(3,"a",8),e.NdJ("auxclick",function(re){return re.preventDefault()}),e.TgZ(4,"button",9),e.NdJ("mouseenter",function(){e.CHM(Ce);const re=e.oxw(2);return e.KtG(re.disableRouting=!0)})("mouseleave",function(){e.CHM(Ce);const re=e.oxw(2);return e.KtG(re.disableRouting=!1)})("click",function(){const B=e.CHM(Ce).$implicit,N=e.oxw(2);return e.KtG(N.treeControl.toggle(B))}),e.YNc(5,L,2,1,"mat-icon",10),e.qZA(),e.TgZ(6,"div",11)(7,"span",12),e._uU(8),e.qZA(),e.YNc(9,V,2,1,"span",13),e.qZA(),e.TgZ(10,"div",14,15)(12,"span",16),e._uU(13),e.qZA()()(),e.TgZ(14,"div",17)(15,"perun-web-apps-group-menu",18),e.NdJ("moveGroup",function(){const B=e.CHM(Ce).$implicit,N=e.oxw(2);return e.KtG(N.onMoveGroup(B))})("syncGroup",function(){const B=e.CHM(Ce).$implicit,N=e.oxw(2);return e.KtG(N.onSyncDetail(B))})("changeNameDescription",function(){const B=e.CHM(Ce).$implicit,N=e.oxw(2);return e.KtG(N.onChangeNameDescription(B))}),e.qZA()()(),e.BQk()}if(2&pe){const Ce=$e.$implicit,de=e.oxw(2);e.xp6(1),e.Udp("padding-left",24*Ce.level+"px"),e.xp6(1),e.Q6J("ngIf",!de.hideCheckbox),e.xp6(1),e.Q6J("perunWebAppsMiddleClickRouterLink",de.disableRouting?null:e.WLB(16,Q,Ce.voId.toString(),Ce.id.toString()))("routerLink",de.disableRouting?null:e.WLB(19,Q,Ce.voId,Ce.id)),e.xp6(1),e.Q6J("disabled",!Ce.expandable),e.uIk("aria-label","toggle "+Ce.name),e.xp6(1),e.Q6J("ngIf",Ce.expandable),e.xp6(2),e.uIk("data-cy",Ce.name),e.xp6(1),e.hij(" ",Ce.name," "),e.xp6(1),e.Q6J("ngIf",de.authResolver.isPerunAdminOrObserver()),e.xp6(3),e.s9C("matTooltip",Ce.description),e.xp6(1),e.hij(" ",Ce.description," "),e.xp6(2),e.Q6J("disabled","members"===Ce.fullName)("displayButtons",de.displayButtons)("group",Ce)}}const xe=function(pe){return{height:pe}};function ge(pe,$e){if(1&pe&&(e.TgZ(0,"div",2)(1,"cdk-virtual-scroll-viewport",3,4),e.YNc(3,ae,16,22,"ng-container",5),e.qZA()()),2&pe){const Ce=e.oxw();e.xp6(1),e.Q6J("minBufferPx",240)("maxBufferPx",480)("ngStyle",e.VKq(4,xe,Ce.getTreeViewHeight())),e.xp6(2),e.Q6J("cdkVirtualForOf",Ce.dataSource)}}function Se(pe,$e){1&pe&&(e.TgZ(0,"perun-web-apps-alert",22),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&pe&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}let Be=(()=>{class pe{constructor(Ce,de,re){this.cd=Ce,this.dialog=de,this.authResolver=re,this.theme="group-theme",this.moveGroup=new e.vpe,this.refreshTable=new e.vpe,this.expandAll=!1,this.disableRouting=!1,this.selection=new w.Ov(!0,[]),this.hideCheckbox=!1,this.displayButtons=window.innerWidth>600,this.treeControl=new A.C2(B=>B.level,B=>B.expandable),this.hasChild=(B,N)=>N.expandable,this.getLevel=B=>B.level,this.transformer=(B,N)=>({expandable:!!B.children&&B.children.length>0,name:B.shortName,fullName:B.name,parentGroupId:B.parentGroupId,level:N,id:B.id,voId:B.voId,attributes:B.attributes,beanName:B.beanName,description:B.description}),this.treeFlattener=new m.JZ(this.transformer,B=>B.level,B=>B.expandable,B=>B.children),this.dataSource=new m.kc(this.treeControl,this.treeFlattener)}shouldHideButtons(){this.displayButtons=window.innerWidth>600}ngOnChanges(){if(this.expandAll){this.filteredGroups=this.groups.filter(Ce=>Ce.name?.toLowerCase().includes(this.filterValue.toLowerCase())||Ce.description?.toLowerCase().includes(this.filterValue.toLowerCase())||Ce.id.toString().includes(this.filterValue.toLowerCase())||Ce.uuid.toLowerCase().includes(this.filterValue.toLowerCase()));for(const Ce of this.filteredGroups)Ce.parentGroupId&&(this.filteredGroups=this.filteredGroups.concat((0,g.oU)(Ce.parentGroupId,this.groups)))}else this.filteredGroups=this.groups;this.createGroupTrees(this.filteredGroups),this.expandAll&&this.treeControl.expandAll(),this.removeAuth=this.setRemoveAuth()}onSyncDetail(Ce){const de=(0,g.kZ)();de.width="450px",de.data={groupId:Ce.id,theme:this.theme},this.dialog.open(T.Bp,de)}onChangeNameDescription(Ce){const de=(0,g.kZ)();de.data={theme:"group-theme",group:Ce,dialogType:T.Eg.GROUP},this.dialog.open(T.rd,de).afterClosed().subscribe(B=>{B&&this.refreshTable.emit()})}createGroupTrees(Ce){const de=new Map;for(const N of Ce)de.set(N.id,new p(N));const re=new Set;de.forEach((N,Me,Y)=>{const be=Y.get(N.parentGroupId);void 0!==be&&(be.addChild(N),Y.set(N.parentGroupId,be)),null!==N.parentGroupId&&void 0===be&&re.add(N.id)});const B=[];de.forEach(N=>{(null===N.parentGroupId||re.has(N.id))&&B.push(N)}),this.dataSource.data=B,this.cd.detectChanges()}getParentNode(Ce){const de=this.getLevel(Ce);if(de<1)return null;for(let B=this.treeControl.dataNodes.indexOf(Ce)-1;B>=0;B--){const N=this.treeControl.dataNodes[B];if(this.getLevel(N)this.selection.isSelected(N));de&&!B&&this.selection.deselect(Ce)}checkAllParentsSelection(Ce){let de=this.getParentNode(Ce);for(;de;)this.checkRootNodeSelection(de),de=this.getParentNode(de);this.removeAuth=this.setRemoveAuth()}descendantsPartiallySelected(Ce){return this.treeControl.getDescendants(Ce).some(B=>this.selection.isSelected(B))&&!this.selection.isSelected(Ce)}itemSelectionToggle(Ce){this.selection.toggle(Ce);const de=this.treeControl.getDescendants(Ce);this.selection.isSelected(Ce)?this.selection.select(...de):this.selection.deselect(...de),de.every(re=>this.selection.isSelected(re)),this.checkAllParentsSelection(Ce)}setRemoveAuth(){return this.selection.selected.reduce(void 0!==this.vo?(Ce,de)=>Ce&&this.authResolver.isAuthorized("deleteGroups_List_boolean_policy",[this.vo,de]):(Ce,de)=>Ce&&this.authResolver.isAuthorized("deleteGroups_List_boolean_policy",[de]),!0)}onMoveGroup(Ce){this.moveGroup.emit(Ce)}getTreeViewHeight(){let Ce=0;this.scrollViewport&&(Ce=this.scrollViewport.getDataLength());let de=48*Ce;return de>672&&(de=696),this.scrollViewport&&this.scrollViewport.checkViewportSize(),String(de)+"px"}}return pe.\u0275fac=function(Ce){return new(Ce||pe)(e.Y36(e.sBO),e.Y36(S.uw),e.Y36(E.x4))},pe.\u0275cmp=e.Xpm({type:pe,selectors:[["perun-web-apps-groups-tree"]],viewQuery:function(Ce,de){if(1&Ce&&e.Gf(b,5),2&Ce){let re;e.iGM(re=e.CRH())&&(de.scrollViewport=re.first)}},hostBindings:function(Ce,de){1&Ce&&e.NdJ("resize",function(B){return de.shouldHideButtons(B)},!1,e.Jf7)},inputs:{theme:"theme",groups:"groups",filterValue:"filterValue",expandAll:"expandAll",disableRouting:"disableRouting",selection:"selection",hideCheckbox:"hideCheckbox",vo:"vo"},outputs:{moveGroup:"moveGroup",refreshTable:"refreshTable"},features:[e.TTD],decls:2,vars:2,consts:[["class","card mt-2",4,"ngIf"],["alert_type","warn",4,"ngIf"],[1,"card","mt-2"],["itemSize","48",1,"virtual-scroll-container",3,"minBufferPx","maxBufferPx","ngStyle"],["scrollViewport",""],[4,"cdkVirtualFor","cdkVirtualForOf"],[1,"node"],["color","primary","class","no-label-margin-bottom ml-4",3,"disabled","checked","indeterminate","change",4,"ngIf"],[1,"group-item-content","text-format",3,"perunWebAppsMiddleClickRouterLink","routerLink","auxclick"],["mat-icon-button","",3,"disabled","mouseenter","mouseleave","click"],["class","mat-icon-rtl-mirror",4,"ngIf"],[1,"w-50"],[1,"mr-2"],["class","text-muted",4,"ngIf"],[1,"w-50","text-muted","description-text"],["rootDescription",""],["matTooltipPosition","before",3,"matTooltip"],[1,"group-buttons"],[3,"disabled","displayButtons","group","moveGroup","syncGroup","changeNameDescription"],["color","primary",1,"no-label-margin-bottom","ml-4",3,"disabled","checked","indeterminate","change"],[1,"mat-icon-rtl-mirror"],[1,"text-muted"],["alert_type","warn"]],template:function(Ce,de){1&Ce&&(e.YNc(0,ge,4,6,"div",0),e.YNc(1,Se,3,3,"perun-web-apps-alert",1)),2&Ce&&(e.Q6J("ngIf",0!==de.filteredGroups.length),e.xp6(1),e.Q6J("ngIf",0===de.filteredGroups.length))},dependencies:[R.O5,R.PC,v.oG,D.yS,F.w,z.Hw,$.lW,G.gM,q.xd,q.x0,q.N7,_e.i,ce.YH,ce.QG,Te.X$],styles:[".group-tree-node[_ngcontent-%COMP%]:hover{background-color:#0000000d}.group-item-content[_ngcontent-%COMP%]{display:flex;align-items:center;min-height:48px;flex:1;overflow:hidden;word-wrap:break-word}mat-tree-node[_ngcontent-%COMP%]{cursor:pointer}.description-text[_ngcontent-%COMP%]{display:-webkit-box!important;-webkit-line-clamp:1!important;-webkit-box-orient:vertical;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.virtual-scroll-container[_ngcontent-%COMP%]{overflow:auto}cdk-tree-node[_ngcontent-%COMP%]{display:block}.node[_ngcontent-%COMP%]{display:flex;align-items:center;min-height:48px;flex:1;word-wrap:break-word;cursor:pointer}.node[_ngcontent-%COMP%]:hover{background-color:#0000000d}.text-format[_ngcontent-%COMP%]{text-decoration:none;color:#000;font-weight:400!important}"]}),pe})()},52314:(Qe,he,u)=>{"use strict";u.d(he,{X:()=>F});var e=u(69723),m=u(94650),A=u(36895),w=u(97392),p=u(28255),g=u(4859),T=u(10266),E=u(89383);const S=function(z){return{color:z}};function R(z,$){if(1&z&&(m.TgZ(0,"button",8),m.ALo(1,"translate"),m.TgZ(2,"mat-icon",4),m._uU(3," apps "),m.qZA()()),2&z){const G=m.oxw(),q=m.MAs(2);m.Q6J("matMenuTriggerFor",q)("matTooltip",m.lcZ(1,3,"NAV.OTHER_APPLICATIONS")),m.xp6(2),m.Q6J("ngStyle",m.VKq(5,S,G.iconColor))}}function v(z,$){if(1&z&&(m.TgZ(0,"span",9),m._uU(1),m.qZA()),2&z){const G=m.oxw();m.Q6J("ngStyle",m.VKq(6,S,G.textColor)),m.xp6(1),m.xDo(" ",G.user.titleBefore," ",G.user.firstName," ",G.user.middleName," ",G.user.lastName," ",G.user.titleAfter," ")}}function D(z,$){if(1&z){const G=m.EpF();m.TgZ(0,"button",2),m.NdJ("click",function(){m.CHM(G);const _e=m.oxw();return m.KtG(_e.onLogOut())}),m._uU(1),m.ALo(2,"translate"),m.qZA()}2&z&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"NAV.LOGOUT")," "))}let F=(()=>{class z{constructor(G){this.authService=G}redirectToUrl(){window.open(this.url,"_blank")}onLogOut(){this.authService.logout()}}return z.\u0275fac=function(G){return new(G||z)(m.Y36(e.e8))},z.\u0275cmp=m.Xpm({type:z,selectors:[["perun-web-apps-header-menu"]],inputs:{user:"user",iconColor:"iconColor",textColor:"textColor",logoutEnabled:"logoutEnabled",url:"url",label:"label"},decls:13,vars:8,consts:[["mat-icon-button","",3,"matMenuTriggerFor","matTooltip",4,"ngIf"],["appsMenu","matMenu"],["mat-menu-item","",3,"click"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],["class","d-none d-lg-inline",3,"ngStyle",4,"ngIf"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-icon-button","",3,"matMenuTriggerFor","matTooltip"],[1,"d-none","d-lg-inline",3,"ngStyle"]],template:function(G,q){if(1&G&&(m.YNc(0,R,4,7,"button",0),m.TgZ(1,"mat-menu",null,1)(3,"button",2),m.NdJ("click",function(){return q.redirectToUrl()}),m.TgZ(4,"span"),m._uU(5),m.qZA()()(),m.TgZ(6,"button",3)(7,"mat-icon",4),m._uU(8," person "),m.qZA(),m.YNc(9,v,2,8,"span",5),m.qZA(),m.TgZ(10,"mat-menu",null,6),m.YNc(12,D,3,3,"button",7),m.qZA()),2&G){const _e=m.MAs(11);m.Q6J("ngIf",q.url),m.xp6(5),m.Oqu(q.label),m.xp6(1),m.Q6J("matMenuTriggerFor",_e),m.xp6(1),m.Q6J("ngStyle",m.VKq(6,S,q.iconColor)),m.xp6(2),m.Q6J("ngIf",null!==q.user),m.xp6(3),m.Q6J("ngIf",q.logoutEnabled)}},dependencies:[A.O5,A.PC,w.Hw,p.VK,p.OP,p.p6,g.lW,T.gM,E.X$],styles:["@media (max-width: 991px){.no-left-padding[_ngcontent-%COMP%]{padding-left:0}}"]}),z})()},7434:(Qe,he,u)=>{"use strict";u.d(he,{L:()=>R});var e=u(94650),m=u(24006),A=u(36895),w=u(59549),p=u(284),g=u(94391),T=u(89383);function E(v,D){if(1&v&&(e._UZ(0,"input",3),e.ALo(1,"translate")),2&v){const F=e.oxw();e.s9C("placeholder",e.lcZ(1,2,F.placeholder)),e.Q6J("formControl",F.formControl)}}function S(v,D){if(1&v&&(e._UZ(0,"input",4),e.ALo(1,"translate")),2&v){const F=e.oxw();e.s9C("placeholder",e.lcZ(1,2,F.placeholder)),e.Q6J("formControl",F.formControl)}}let R=(()=>{class v{constructor(){this.filter=new e.vpe,this.autoFocus=!1,this.formControl=new m.p4}ngOnInit(){this.formControl.valueChanges.subscribe(F=>{let z=F.trim();z=z.toLowerCase(),this.filter.emit(z)})}}return v.\u0275fac=function(F){return new(F||v)},v.\u0275cmp=e.Xpm({type:v,selectors:[["perun-web-apps-immediate-filter"]],inputs:{placeholder:"placeholder",autoFocus:"autoFocus"},outputs:{filter:"filter"},decls:3,vars:2,consts:[[1,"filter-field","mr-2"],["matInput","","perunWebAppsAutoFocus","","data-cy","auto-focused-filter",3,"formControl","placeholder",4,"ngIf"],["matInput","","data-cy","unfocused-filter",3,"formControl","placeholder",4,"ngIf"],["matInput","","perunWebAppsAutoFocus","","data-cy","auto-focused-filter",3,"formControl","placeholder"],["matInput","","data-cy","unfocused-filter",3,"formControl","placeholder"]],template:function(F,z){1&F&&(e.TgZ(0,"mat-form-field",0),e.YNc(1,E,2,4,"input",1),e.YNc(2,S,2,4,"input",2),e.qZA()),2&F&&(e.xp6(1),e.Q6J("ngIf",z.autoFocus),e.xp6(1),e.Q6J("ngIf",!z.autoFocus))},dependencies:[A.O5,m.Fj,m.JJ,w.KE,m.oH,p.Nt,g.hT,T.X$],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:0!important;min-width:initial!important}"]}),v})()},4811:(Qe,he,u)=>{"use strict";u.d(he,{m:()=>i});var e=u(21029),m=u(69723),A=u(9244),w=u(96308),p=u(56451),g=u(18505),T=u(94650),E=u(65412),S=u(10036),R=u(36895),v=u(56709),D=u(30671),F=u(94364),z=u(51572),$=u(98380),G=u(97392),q=u(10266),_e=u(18750),ce=u(94391),Te=u(89383),b=u(31359),H=u(69773),L=u(21757),V=u(12856),Q=u(20919),ae=u(5865),xe=u(82514),ge=u(96974),Se=u(38993),Be=u(86349),pe=u(9185),$e=u(8231),Ce=u(14849);function de(t,n){1&t&&(T.TgZ(0,"div",20),T._UZ(1,"mat-spinner",21),T.qZA())}function re(t,n){if(1&t){const o=T.EpF();T.TgZ(0,"mat-checkbox",27),T.NdJ("change",function(d){T.CHM(o);const y=T.oxw(3);return T.KtG(d?y.masterToggle():null)}),T.ALo(1,"translate"),T.ALo(2,"masterCheckboxLabel"),T.qZA()}if(2&t){const o=T.oxw(2).ngIf,l=T.oxw();T.Q6J("aria-label",T.lcZ(1,3,T.lcZ(2,5,o.all)))("checked",l.selection.hasValue()&&o.all)("indeterminate",l.selection.hasValue()&&!o.all)}}function B(t,n){if(1&t&&(T.TgZ(0,"th",25),T.YNc(1,re,3,7,"mat-checkbox",26),T.qZA()),2&t){const o=T.oxw(2);T.xp6(1),T.Q6J("ngIf",o.selection.isMultipleSelection())}}const N=function(t){return{name:t}};function Me(t,n){if(1&t){const o=T.EpF();T.TgZ(0,"td",28)(1,"mat-checkbox",29),T.NdJ("change",function(d){const k=T.CHM(o).$implicit,Ie=T.oxw(2);return T.KtG(d?Ie.selection.toggle(k):null)})("click",function(d){return d.stopPropagation()}),T.ALo(2,"translate"),T.ALo(3,"checkboxLabel"),T.ALo(4,"userFullName"),T.ALo(5,"lowercase"),T.ALo(6,"memberStatusDisabled"),T.ALo(7,"memberCheckboxLabel"),T.qZA()()}if(2&t){const o=n.$implicit,l=T.oxw(2);T.xp6(1),T.Q2q("data-cy","",T.lcZ(5,12,o.user.firstName),"-checkbox"),T.Q6J("aria-label",T.xi3(2,5,T.lcZ(3,8,l.selection.isSelected(o)),T.VKq(20,N,T.lcZ(4,10,o.user))))("checked",l.selection.isSelected(o))("disabled",T.xi3(6,14,o,l.groupId))("matTooltip",T.xi3(7,17,o,l.groupId))}}function Y(t,n){1&t&&(T.ynx(0,22),T.YNc(1,B,2,1,"th",23),T.YNc(2,Me,8,22,"td",24),T.BQk())}function be(t,n){1&t&&(T.TgZ(0,"th",30),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&t&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"MEMBERS_LIST.ID")))}function De(t,n){if(1&t&&(T.TgZ(0,"td",31),T._uU(1),T.qZA()),2&t){const o=n.$implicit;T.xp6(1),T.Oqu(o.id)}}function We(t,n){1&t&&T._UZ(0,"th",30)}function Pe(t,n){if(1&t){const o=T.EpF();T.TgZ(0,"mat-icon",34),T.NdJ("click",function(d){T.CHM(o);const y=T.oxw().$implicit,k=T.oxw();return T.KtG(k.viewMemberGroupTree(d,y))}),T.ALo(1,"translate"),T._uU(2,"transfer_within_a_station"),T.qZA()}2&t&&T.Q6J("matTooltip",T.lcZ(1,1,"MEMBERS_LIST.INDIRECT_MEMBER"))}function nt(t,n){if(1&t&&(T.TgZ(0,"td",32),T.YNc(1,Pe,3,3,"mat-icon",33),T.qZA()),2&t){const o=n.$implicit;T.xp6(1),T.Q6J("ngIf","DIRECT"!==o.membershipType)}}function Ye(t,n){1&t&&(T.TgZ(0,"th",30),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&t&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"MEMBERS_LIST.NAME")," "))}function Tt(t,n){if(1&t&&(T.TgZ(0,"td",32),T.ALo(1,"lowercase"),T._uU(2),T.ALo(3,"userFullName"),T.qZA()),2&t){const o=n.$implicit;T.Q2q("data-cy","",T.lcZ(1,2,o.user.firstName),"-firstName-td"),T.xp6(2),T.hij(" ",T.lcZ(3,4,o.user)," ")}}function J(t,n){1&t&&(T.TgZ(0,"th",35),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&t&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"MEMBERS_LIST.STATUS")))}function Xe(t,n){if(1&t){const o=T.EpF();T.TgZ(0,"td",32)(1,"i",36),T.NdJ("click",function(d){const k=T.CHM(o).$implicit,Ie=T.oxw();return T.KtG(Ie.changeStatus(d,k))}),T.ALo(2,"memberStatusIconColor"),T.ALo(3,"memberStatusTooltip"),T.TgZ(4,"span"),T._uU(5),T.ALo(6,"memberStatusIcon"),T.qZA()()()}if(2&t){const o=n.$implicit,l=T.oxw();T.xp6(1),T.Gre("material-icons ",T.lcZ(2,7,o),""),T.ekj("cursor-default",!l.expireVoAuth),T.s9C("matTooltip",T.xi3(3,9,o,!1)),T.xp6(4),T.hij(" ",T.lcZ(6,12,o.status)," ")}}function le(t,n){1&t&&(T.TgZ(0,"th",35),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&t&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"MEMBERS_LIST.GROUP_STATUS")))}function ne(t,n){if(1&t){const o=T.EpF();T.TgZ(0,"td",32)(1,"i",36),T.NdJ("click",function(d){const k=T.CHM(o).$implicit,Ie=T.oxw();return T.KtG(Ie.changeStatus(d,k,Ie.groupId))}),T.ALo(2,"groupStatusIconColor"),T.ALo(3,"memberStatusTooltip"),T.TgZ(4,"span"),T._uU(5),T.ALo(6,"memberStatusIcon"),T.qZA()()()}if(2&t){const o=n.$implicit,l=T.oxw();T.xp6(1),T.Gre("material-icons ",T.Dn7(2,7,o.groupStatus,"INDIRECT"===o.membershipType,l.isMembersGroup),""),T.ekj("cursor-default",!l.expireGroupAuth),T.s9C("matTooltip",T.Dn7(3,11,o,!0,l.isMembersGroup)),T.xp6(4),T.hij(" ",T.lcZ(6,15,o.groupStatus)," ")}}function ke(t,n){1&t&&(T.TgZ(0,"th",35),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&t&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"MEMBERS_LIST.ORGANIZATION")))}function Ee(t,n){if(1&t&&(T.TgZ(0,"td",32),T._uU(1),T.ALo(2,"memberOrganization"),T.qZA()),2&t){const o=n.$implicit;T.xp6(1),T.Oqu(T.lcZ(2,1,o))}}function ot(t,n){1&t&&(T.TgZ(0,"th",35),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&t&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"MEMBERS_LIST.EMAIL")))}function it(t,n){if(1&t&&(T.TgZ(0,"td",32),T._uU(1),T.ALo(2,"memberEmail"),T.qZA()),2&t){const o=n.$implicit;T.xp6(1),T.Oqu(T.lcZ(2,1,o))}}function oe(t,n){1&t&&(T.TgZ(0,"th",35),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&t&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"MEMBERS_LIST.LOGINS")))}function X(t,n){if(1&t&&(T.TgZ(0,"td",32),T._uU(1),T.ALo(2,"memberLogins"),T.qZA()),2&t){const o=n.$implicit;T.xp6(1),T.Oqu(T.lcZ(2,1,o))}}function r(t,n){1&t&&T._UZ(0,"tr",37)}const s=function(t,n){return["/organizations",t,"members",n]};function _(t,n){if(1&t&&T._UZ(0,"tr",38),2&t){const o=n.$implicit,l=T.oxw();T.ekj("cursor-pointer",l.dataSource.routeAuth)("italic_font","INDIRECT"===o.membershipType)("disable-outline",l.disableRouting||!l.dataSource.routeAuth),T.Q6J("perunWebAppsMiddleClickRouterLink",l.disableRouting||!l.dataSource.routeAuth?null:T.WLB(8,s,o.voId,o.id))("routerLink",l.disableRouting||!l.dataSource.routeAuth?null:T.WLB(11,s,o.voId,o.id))}}function c(t,n){1&t&&(T.TgZ(0,"perun-web-apps-alert",39),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&t&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_MEMBERS"),"\n"))}const a=function(t){return{all:t}};let i=(()=>{class t{constructor(o,l,d,y,k,Ie){this.dialog=o,this.authResolver=l,this.tableCheckbox=d,this.tableConfigService=y,this.dynamicPaginatingService=k,this.entityStorage=Ie,this.displayedColumns=["checkbox","id","type","fullName","status","groupStatus","organization","email","logins"],this.selectedGroupStatuses=[],this.disableRouting=!1,this.pageSizeOptions=A.f7,this.canBeSelected=tt=>!(0,A.im)(tt)}static getExportDataForColumn(o,l){switch(l){case"id":return o.id.toString();case"fullName":return o.user?(0,A.bD)(o.user):"";case"status":return o.status;case"groupStatus":return o.groupStatus;case"organization":return(0,A.Gw)(o);case"email":return(0,A.g$)(o);case"logins":return(0,A.lt)(o);default:return""}}ngAfterViewInit(){this.sort.sortChange.subscribe(()=>this.child.paginator.pageIndex=0),(0,p.T)(this.sort.sortChange,this.child.paginator.page).pipe((0,g.b)(()=>this.loadMembersPage())).subscribe()}ngOnInit(){this.expireGroupAuth=this.authResolver.isAuthorized("setMemberGroupStatus_Member_Group_MemberGroupStatus_policy",[this.entityStorage.getEntity()]),this.expireVoAuth=this.authResolver.isAuthorized("setStatus_Member_Status_policy",[this.entityStorage.getEntity()]),this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(o=>"id"!==o)),this.dataSource=new m.Hy(this.dynamicPaginatingService,this.authResolver),this.dataSource.loadMembers(this.voId,this.attrNames,"ASCENDING",0,this.tableConfigService.getTablePageSize(this.tableId),"NAME",this.selectedStatuses,this.searchString,this.groupId,this.selectedGroupStatuses)}ngOnChanges(){this.dataSource&&(this.child.paginator.pageIndex=0,this.loadMembersPage())}masterToggle(){this.isAllSelected()?this.selection.clear():this.dataSource.getData().forEach(o=>{this.canBeSelected(o)&&this.selection.select(o)})}isAllSelected(){return this.selection.selected.length===this.dataSource.getData().filter(d=>this.canBeSelected(d)).length}changeStatus(o,l,d){if(o.stopPropagation(),d){if(!this.expireGroupAuth)return}else if(!this.expireVoAuth)return;if(this.isMembersGroup&&d)return;const y=(0,A.zr)(l);if("INDIRECT"===y&&d||!d&&"UNALTERABLE"===y)return;const k=(0,A.kZ)();k.width="500px",k.data={member:l,voId:this.voId,groupId:d};const Ie=d?l.groupStatus:l.status;this.dialog.open(e.pf,k).afterClosed().subscribe(ct=>{if(ct){const Ue=d?ct.groupStatus:ct.status;"VALID"===Ie&&("EXPIRED"===Ue||"DISABLED"===Ue)||"VALID"===Ue?(d?l.groupStatus=Ue:l.status=Ue,this.changeExpiration(l,d)):this.loadMembersPage()}})}changeExpiration(o,l){const d=o.memberAttributes.find(l?Ie=>"groupMembershipExpiration"===Ie.friendlyName:Ie=>"membershipExpiration"===Ie.friendlyName),y=(0,A.kZ)();let k;y.width="400px",y.data={voId:this.voId,groupId:l,memberId:o.id,expirationAttr:d,status:l?o.groupStatus:o.status,statusChanged:!0},k=this.dialog.open(l?e.u3:e.kZ,y),k.afterClosed().subscribe(()=>{this.loadMembersPage()})}loadMembersPage(){this.dataSource.loadMembers(this.voId,this.attrNames,"asc"===this.sort.direction?"ASCENDING":"DESCENDING",this.child.paginator.pageIndex,this.child.paginator.pageSize,"fullName"===this.sort.active?"NAME":"ID",this.selectedStatuses,this.searchString,this.groupId,this.selectedGroupStatuses)}exportDisplayedData(o){(0,A.O6)((0,A.Xn)(this.dataSource.getData(),this.displayedColumns,t.getExportDataForColumn),o)}exportAllData(o){const l="asc"===this.sort.direction?"ASCENDING":"DESCENDING",d="fullName"===this.sort.active?"NAME":"ID",y=(0,A.kZ)();y.width="300px";const k=this.dialog.open(e.QQ,y);this.dataSource.getAllMembers(this.voId,this.attrNames,l,this.child.paginator.length,d,this.selectedStatuses,this.searchString,this.groupId,this.selectedGroupStatuses).subscribe(Ie=>{k.close(),(0,A.O6)((0,A.Xn)(Ie,this.displayedColumns,t.getExportDataForColumn),o)})}viewMemberGroupTree(o,l){o.stopPropagation();const d=(0,A.kZ)();d.width="800px",d.data={member:l,groupId:this.groupId},this.dialog.open(e.jd,d)}}return t.\u0275fac=function(o){return new(o||t)(T.Y36(E.uw),T.Y36(m.x4),T.Y36(m.UA),T.Y36(S.dB),T.Y36(m.ly),T.Y36(m.fb))},t.\u0275cmp=T.Xpm({type:t,selectors:[["perun-web-apps-members-dynamic-list"]],viewQuery:function(o,l){if(1&o&&(T.Gf(A.l9,7),T.Gf(w.YE,5)),2&o){let d;T.iGM(d=T.CRH())&&(l.child=d.first),T.iGM(d=T.CRH())&&(l.sort=d.first)}},inputs:{selection:"selection",displayedColumns:"displayedColumns",voId:"voId",groupId:"groupId",selectedGroupStatuses:"selectedGroupStatuses",attrNames:"attrNames",searchString:"searchString",selectedStatuses:"selectedStatuses",tableId:"tableId",updateTable:"updateTable",isMembersGroup:"isMembersGroup",disableRouting:"disableRouting"},features:[T.TTD],decls:36,vars:22,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["class","spinner-container",4,"ngIf"],["mat-table","","matSort","","matSortActive","fullName","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","type"],["mat-cell","",4,"matCellDef"],["matColumnDef","fullName"],["matColumnDef","status"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","groupStatus"],["matColumnDef","organization"],["matColumnDef","email"],["matColumnDef","logins"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","italic_font","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],[1,"spinner-container"],[1,"ml-auto","mr-auto"],["matColumnDef","checkbox"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change",4,"ngIf"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","disabled","matTooltip","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],[3,"matTooltip","click",4,"ngIf"],[3,"matTooltip","click"],["mat-header-cell",""],["matTooltipClass","status-tooltip","matTooltipPosition","left",3,"matTooltip","click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(o,l){1&o&&(T.TgZ(0,"div",0),T.ALo(1,"async"),T.TgZ(2,"perun-web-apps-table-wrapper",1),T.NdJ("exportDisplayedData",function(y){return l.exportDisplayedData(y)})("exportAllData",function(y){return l.exportAllData(y)}),T.YNc(3,de,2,0,"div",2),T.ALo(4,"async"),T.TgZ(5,"table",3),T.YNc(6,Y,3,0,"ng-container",4),T.ALo(7,"isAllSelected"),T.ynx(8,5),T.YNc(9,be,3,3,"th",6),T.YNc(10,De,2,1,"td",7),T.BQk(),T.ynx(11,8),T.YNc(12,We,1,0,"th",6),T.YNc(13,nt,2,1,"td",9),T.BQk(),T.ynx(14,10),T.YNc(15,Ye,3,3,"th",6),T.YNc(16,Tt,4,6,"td",9),T.BQk(),T.ynx(17,11),T.YNc(18,J,3,3,"th",12),T.YNc(19,Xe,7,14,"td",9),T.BQk(),T.ynx(20,13),T.YNc(21,le,3,3,"th",12),T.YNc(22,ne,7,17,"td",9),T.BQk(),T.ynx(23,14),T.YNc(24,ke,3,3,"th",12),T.YNc(25,Ee,3,3,"td",9),T.BQk(),T.ynx(26,15),T.YNc(27,ot,3,3,"th",12),T.YNc(28,it,3,3,"td",9),T.BQk(),T.ynx(29,16),T.YNc(30,oe,3,3,"th",12),T.YNc(31,X,3,3,"td",9),T.BQk(),T.YNc(32,r,1,0,"tr",17),T.YNc(33,_,1,14,"tr",18),T.qZA()()(),T.YNc(34,c,3,3,"perun-web-apps-alert",19),T.ALo(35,"async")),2&o&&(T.Q6J("hidden",0===l.dataSource.allObjectCount&&!1===T.lcZ(1,10,l.dataSource.loading$)),T.xp6(2),T.Q6J("tableId",l.tableId)("dataLength",l.dataSource.allObjectCount)("pageSizeOptions",l.pageSizeOptions),T.xp6(1),T.Q6J("ngIf",T.lcZ(4,12,l.dataSource.loading$)),T.xp6(2),T.Q6J("dataSource",l.dataSource),T.xp6(1),T.Q6J("ngIf",T.VKq(20,a,T.Dn7(7,14,l.dataSource,l.selection.selected.length,l.canBeSelected))),T.xp6(26),T.Q6J("matHeaderRowDef",l.displayedColumns),T.xp6(1),T.Q6J("matRowDefColumns",l.displayedColumns),T.xp6(1),T.Q6J("ngIf",0===l.dataSource.allObjectCount&&!1===T.lcZ(35,18,l.dataSource.loading$)))},dependencies:[R.O5,v.oG,D.BZ,D.fO,D.as,D.w1,D.Dz,D.nj,D.ge,D.ev,D.XQ,D.Gk,F.rH,w.YE,w.nU,z.Ou,$.w,G.Hw,q.gM,_e.l,ce.YH,ce.QG,R.Ov,R.i8,Te.X$,b.d,H.u,L.f,V.i,Q.D,ae.p,xe.F,ge.M,Se.n,Be.A,pe.I,$e.G,Ce.r],styles:[".italic_font{font-style:italic}.cursor-pointer{cursor:pointer}.cursor-default{cursor:default}.status-tooltip{white-space:pre-line}\n"],encapsulation:2}),t})()},38383:(Qe,he,u)=>{"use strict";u.d(he,{O:()=>n});var e=u(94650),m=u(96308),A=u(30671),w=u(95017),p=u(9244),g=u(21029),T=u(69723),E=u(65412),S=u(94364),R=u(36895),v=u(56709),D=u(98380),F=u(97392),z=u(10266),$=u(18750),G=u(94391),q=u(89383),_e=u(31359),ce=u(69773),Te=u(21757),b=u(12856),H=u(20919),L=u(5865),V=u(82514),Q=u(96974),ae=u(9185),xe=u(8231),ge=u(14849);function Se(o,l){if(1&o){const d=e.EpF();e.TgZ(0,"mat-checkbox",29),e.NdJ("change",function(k){e.CHM(d);const Ie=e.oxw(3);return e.KtG(k?Ie.masterToggle():null)}),e.ALo(1,"translate"),e.ALo(2,"masterCheckboxLabel"),e.qZA()}if(2&o){const d=e.oxw(2).ngIf,y=e.oxw();e.Q6J("aria-label",e.lcZ(1,3,e.lcZ(2,5,d.all)))("checked",y.selection.hasValue()&&d.all)("indeterminate",y.selection.hasValue()&&!d.all)}}function Be(o,l){if(1&o&&(e.TgZ(0,"th",27),e.YNc(1,Se,3,7,"mat-checkbox",28),e.qZA()),2&o){const d=e.oxw(2);e.xp6(1),e.Q6J("ngIf",d.selection.isMultipleSelection())}}const pe=function(o){return{name:o}};function $e(o,l){if(1&o){const d=e.EpF();e.TgZ(0,"td",30)(1,"mat-checkbox",31),e.NdJ("change",function(k){const tt=e.CHM(d).$implicit,ct=e.oxw(2);return e.KtG(k?ct.selection.toggle(tt):null)})("click",function(k){return k.stopPropagation()}),e.ALo(2,"translate"),e.ALo(3,"checkboxLabel"),e.ALo(4,"userFullName"),e.ALo(5,"translate"),e.qZA()()}if(2&o){const d=l.$implicit,y=e.oxw(2);e.xp6(1),e.Q2q("data-cy","",d.user.firstName,"-checkbox"),e.Q6J("aria-label",e.xi3(2,5,e.lcZ(3,8,y.selection.isSelected(d)),e.VKq(14,pe,e.lcZ(4,10,d))))("checked",y.selection.isSelected(d))("disabled",y.allowCheckboxDisabled&&"DIRECT"!==d.membershipType)("matTooltip",y.allowCheckboxDisabled&&"DIRECT"!==d.membershipType?e.lcZ(5,12,"MEMBERS_LIST.CHECKBOX_TOOLTIP"):"")}}function Ce(o,l){1&o&&(e.ynx(0,24),e.YNc(1,Be,2,1,"th",25),e.YNc(2,$e,6,16,"td",26),e.BQk())}function de(o,l){1&o&&(e.TgZ(0,"th",32),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&o&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"MEMBERS_LIST.ID")))}function re(o,l){if(1&o&&(e.TgZ(0,"td",33),e._uU(1),e.qZA()),2&o){const d=l.$implicit;e.xp6(1),e.Oqu(d.id)}}function B(o,l){1&o&&(e.TgZ(0,"th",32),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&o&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.VO_ID")," "))}function N(o,l){if(1&o&&(e.TgZ(0,"td",34),e._uU(1),e.qZA()),2&o){const d=l.$implicit;e.xp6(1),e.Oqu(d.voId)}}function Me(o,l){1&o&&(e.TgZ(0,"th",32),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&o&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.USER_ID")," "))}function Y(o,l){if(1&o&&(e.TgZ(0,"td",34),e._uU(1),e.qZA()),2&o){const d=l.$implicit;e.xp6(1),e.Oqu(d.userId)}}function be(o,l){1&o&&e._UZ(0,"th",32)}function De(o,l){if(1&o){const d=e.EpF();e.TgZ(0,"mat-icon",36),e.NdJ("click",function(){e.CHM(d);const k=e.oxw().$implicit,Ie=e.oxw();return e.KtG(Ie.viewMemberGroupTree(k))})("mouseenter",function(){e.CHM(d);const k=e.oxw(2);return e.KtG(k.disableRouting=!0)})("mouseleave",function(){e.CHM(d);const k=e.oxw(2);return e.KtG(k.disableRouting=k.disabledRouting)}),e.ALo(1,"translate"),e._uU(2,"transfer_within_a_station"),e.qZA()}2&o&&e.Q6J("matTooltip",e.lcZ(1,1,"MEMBERS_LIST.INDIRECT_MEMBER"))}function We(o,l){if(1&o&&(e.TgZ(0,"td",34),e.YNc(1,De,3,3,"mat-icon",35),e.qZA()),2&o){const d=l.$implicit;e.xp6(1),e.Q6J("ngIf","DIRECT"!==d.membershipType)}}function Pe(o,l){1&o&&(e.TgZ(0,"th",32),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&o&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.NAME")," "))}function nt(o,l){if(1&o&&(e.TgZ(0,"td",34),e._uU(1),e.ALo(2,"userFullName"),e.qZA()),2&o){const d=l.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,d.user))}}function Ye(o,l){1&o&&(e.TgZ(0,"th",32),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&o&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.STATUS")," "))}function Tt(o,l){if(1&o){const d=e.EpF();e.TgZ(0,"td",34)(1,"i",37),e.NdJ("click",function(k){const tt=e.CHM(d).$implicit,ct=e.oxw();return e.KtG(ct.changeStatus(k,tt))}),e.ALo(2,"memberStatusIconColor"),e.ALo(3,"memberStatusTooltip"),e.TgZ(4,"span"),e._uU(5),e.ALo(6,"memberStatusIcon"),e.qZA()()()}if(2&o){const d=l.$implicit;e.xp6(1),e.Gre("material-icons ",e.lcZ(2,5,d),""),e.s9C("matTooltip",e.xi3(3,7,d,!1)),e.xp6(4),e.hij(" ",e.lcZ(6,10,d.status)," ")}}function J(o,l){1&o&&(e.TgZ(0,"th",32),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&o&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.GROUP_STATUS")," "))}function Xe(o,l){if(1&o){const d=e.EpF();e.TgZ(0,"td",34)(1,"i",37),e.NdJ("click",function(k){const tt=e.CHM(d).$implicit,ct=e.oxw();return e.KtG(ct.changeStatus(k,tt))}),e.ALo(2,"groupStatusIconColor"),e.ALo(3,"memberStatusTooltip"),e.TgZ(4,"span"),e._uU(5),e.ALo(6,"memberStatusIcon"),e.qZA()()()}if(2&o){const d=l.$implicit;e.xp6(1),e.Gre("material-icons ",e.lcZ(2,5,d.groupStatus),""),e.s9C("matTooltip",e.xi3(3,7,d,!0)),e.xp6(4),e.hij(" ",e.lcZ(6,10,d.groupStatus)," ")}}function le(o,l){1&o&&(e.TgZ(0,"th",38),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&o&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.ALREADY_SPONSORED")," "))}function ne(o,l){1&o&&(e.TgZ(0,"mat-icon"),e._uU(1,"check_circle_outline"),e.qZA())}function ke(o,l){if(1&o&&(e.TgZ(0,"td",39),e.YNc(1,ne,2,0,"mat-icon",40),e.qZA()),2&o){const d=l.$implicit;e.xp6(1),e.Q6J("ngIf",d.sponsored)}}function Ee(o,l){1&o&&(e.TgZ(0,"th",32),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&o&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.ORGANIZATION")," "))}function ot(o,l){if(1&o&&(e.TgZ(0,"td",34),e._uU(1),e.ALo(2,"memberOrganization"),e.qZA()),2&o){const d=l.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,d))}}function it(o,l){1&o&&(e.TgZ(0,"th",32),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&o&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.EMAIL")," "))}function oe(o,l){if(1&o&&(e.TgZ(0,"td",34),e._uU(1),e.ALo(2,"memberEmail"),e.qZA()),2&o){const d=l.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,d))}}function X(o,l){1&o&&(e.TgZ(0,"th",41),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&o&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"MEMBERS_LIST.LOGINS")))}function r(o,l){if(1&o&&(e.TgZ(0,"td",34),e._uU(1),e.ALo(2,"memberLogins"),e.qZA()),2&o){const d=l.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,d))}}function s(o,l){1&o&&e._UZ(0,"tr",42)}const _=function(o,l){return["/organizations",o,"members",l]};function c(o,l){if(1&o&&e._UZ(0,"tr",43),2&o){const d=l.$implicit,y=e.oxw();e.ekj("cursor-pointer",!y.disabledRouting)("disable-outline",y.disableRouting),e.Q6J("perunWebAppsMiddleClickRouterLink",y.disableRouting?null:e.WLB(6,_,d.voId,d.id))("routerLink",y.disableRouting?null:e.WLB(9,_,d.voId,d.id))}}function a(o,l){1&o&&(e.TgZ(0,"perun-web-apps-alert",44),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&o&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function i(o,l){1&o&&(e.TgZ(0,"perun-web-apps-alert",44),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&o&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_MEMBERS"),"\n"))}const t=function(o){return{all:o}};let n=(()=>{class o{constructor(d,y,k,Ie){this.dialog=d,this.authResolver=y,this.tableCheckbox=k,this.route=Ie,this.selection=new w.Ov,this.displayedColumns=["checkbox","id","voId","userId","type","fullName","status","groupStatus","sponsored","organization","email","logins"],this.disableStatusChange=!1,this.disableExpirationChange=!1,this.allowCheckboxDisabled=!0,this.disableRouting=!1,this.filter="",this.updateTable=new e.vpe,this.pageSizeOptions=p.f7,this.getExportDataForColumnFun=(tt,ct)=>o.getExportDataForColumn(tt,ct,this.showGroupStatuses),this.getSortDataForColumnFun=(tt,ct)=>o.getSortDataForColumn(tt,ct,this.showGroupStatuses),this.canBeSelected=tt=>"DIRECT"===tt.membershipType}set matSort(d){this.sort=d}static getFilterDataForColumn(d,y){switch(y){case"fullName":return d.user?(0,p.bD)(d.user):"";case"email":return(0,p.g$)(d);case"logins":return(0,p.lt)(d);default:return""}}static getExportDataForColumn(d,y,k){switch(y){case"id":return d.id.toString();case"fullName":return d.user?(0,p.bD)(d.user):"";case"status":return k?d.groupStatus:d.status;case"organization":return(0,p.Gw)(d);case"email":return(0,p.g$)(d);case"logins":return(0,p.lt)(d);default:return""}}static getSortDataForColumn(d,y,k){switch(y){case"id":return d.id.toString();case"fullName":return d.user?d.user.lastName?d.user.lastName:d.user.firstName??"":"";case"status":return k?d.groupStatus:d.status;case"organization":return(0,p.Gw)(d);case"email":return(0,p.g$)(d);default:return""}}exportDisplayedData(d){const y=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,k=y+this.dataSource.paginator.pageSize;(0,p.O6)((0,p.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(y,k),this.displayedColumns,this.getExportDataForColumnFun),d)}exportAllData(d){(0,p.O6)((0,p.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getExportDataForColumnFun),d)}setDataSource(){this.dataSource||(this.dataSource=new A.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(d,y)=>(0,p.Sd)(d,y,this.displayedColumns,o.getFilterDataForColumn),this.dataSource.sortData=(d,y)=>(0,p.pR)(d,y,this.getSortDataForColumnFun)),this.dataSource.filter=this.filter,this.dataSource.data=this.members}ngAfterViewInit(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(d=>"id"!==d))}ngOnChanges(){this.setDataSource(),this.disabledRouting=this.disableRouting,this.route.parent?.params.subscribe(d=>{d.groupId&&(this.groupId=Number(d.groupId))})}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource,this.canBeSelected)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filter,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!0,this.canBeSelected)}changeStatus(d,y){if(d.stopPropagation(),!this.disableStatusChange){const k=(0,p.kZ)();k.width="500px",k.data={member:y,disableChangeExpiration:this.disableExpirationChange},this.dialog.open(g.pf,k).afterClosed().subscribe(tt=>{tt&&this.updateTable.emit(!0)})}}viewMemberGroupTree(d){const y=(0,p.kZ)();y.width="800px",y.data={member:d,groupId:this.groupId},this.dialog.open(g.jd,y)}}return o.\u0275fac=function(d){return new(d||o)(e.Y36(E.uw),e.Y36(T.x4),e.Y36(T.UA),e.Y36(S.gz))},o.\u0275cmp=e.Xpm({type:o,selectors:[["perun-web-apps-members-list"]],viewQuery:function(d,y){if(1&d&&(e.Gf(p.l9,7),e.Gf(m.YE,7)),2&d){let k;e.iGM(k=e.CRH())&&(y.child=k.first),e.iGM(k=e.CRH())&&(y.matSort=k.first)}},inputs:{showGroupStatuses:"showGroupStatuses",members:"members",searchString:"searchString",selection:"selection",displayedColumns:"displayedColumns",disableStatusChange:"disableStatusChange",disableExpirationChange:"disableExpirationChange",allowCheckboxDisabled:"allowCheckboxDisabled",tableId:"tableId",disableRouting:"disableRouting",filter:"filter"},outputs:{updateTable:"updateTable"},features:[e.TTD],decls:42,vars:16,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","tableId","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","fullName","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","voId"],["mat-cell","",4,"matCellDef"],["matColumnDef","userId"],["matColumnDef","type"],["matColumnDef","fullName"],["matColumnDef","status"],["matColumnDef","groupStatus"],["matColumnDef","sponsored"],["class","center new-line","mat-header-cell","",4,"matHeaderCellDef"],["class","center","mat-cell","",4,"matCellDef"],["matColumnDef","organization"],["matColumnDef","email"],["matColumnDef","logins"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","checkbox"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change",4,"ngIf"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","disabled","matTooltip","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],[3,"matTooltip","click","mouseenter","mouseleave",4,"ngIf"],[3,"matTooltip","click","mouseenter","mouseleave"],["matTooltipClass","status-tooltip","matTooltipPosition","left",3,"matTooltip","click"],["mat-header-cell","",1,"center","new-line"],["mat-cell","",1,"center"],[4,"ngIf"],["mat-header-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(d,y){1&d&&(e.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),e.NdJ("exportDisplayedData",function(Ie){return y.exportDisplayedData(Ie)})("exportAllData",function(Ie){return y.exportAllData(Ie)}),e.TgZ(2,"table",2),e.YNc(3,Ce,3,0,"ng-container",3),e.ALo(4,"isAllSelected"),e.ynx(5,4),e.YNc(6,de,3,3,"th",5),e.YNc(7,re,2,1,"td",6),e.BQk(),e.ynx(8,7),e.YNc(9,B,3,3,"th",5),e.YNc(10,N,2,1,"td",8),e.BQk(),e.ynx(11,9),e.YNc(12,Me,3,3,"th",5),e.YNc(13,Y,2,1,"td",8),e.BQk(),e.ynx(14,10),e.YNc(15,be,1,0,"th",5),e.YNc(16,We,2,1,"td",8),e.BQk(),e.ynx(17,11),e.YNc(18,Pe,3,3,"th",5),e.YNc(19,nt,3,3,"td",8),e.BQk(),e.ynx(20,12),e.YNc(21,Ye,3,3,"th",5),e.YNc(22,Tt,7,12,"td",8),e.BQk(),e.ynx(23,13),e.YNc(24,J,3,3,"th",5),e.YNc(25,Xe,7,12,"td",8),e.BQk(),e.ynx(26,14),e.YNc(27,le,3,3,"th",15),e.YNc(28,ke,2,1,"td",16),e.BQk(),e.ynx(29,17),e.YNc(30,Ee,3,3,"th",5),e.YNc(31,ot,3,3,"td",8),e.BQk(),e.ynx(32,18),e.YNc(33,it,3,3,"th",5),e.YNc(34,oe,3,3,"td",8),e.BQk(),e.ynx(35,19),e.YNc(36,X,3,3,"th",20),e.YNc(37,r,3,3,"td",8),e.BQk(),e.YNc(38,s,1,0,"tr",21),e.YNc(39,c,1,12,"tr",22),e.qZA()()(),e.YNc(40,a,3,3,"perun-web-apps-alert",23),e.YNc(41,i,3,3,"perun-web-apps-alert",23)),2&d&&(e.Q6J("hidden",0===y.members.length||!y.dataSource||0===y.dataSource.filteredData.length),e.xp6(1),e.Q6J("dataLength",y.dataSource.filteredData.length)("tableId",y.tableId)("pageSizeOptions",y.pageSizeOptions),e.xp6(1),e.Q6J("dataSource",y.dataSource),e.xp6(1),e.Q6J("ngIf",e.VKq(14,t,e.Dn7(4,10,y.dataSource,y.selection.selected.length,y.canBeSelected))),e.xp6(35),e.Q6J("matHeaderRowDef",y.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",y.displayedColumns),e.xp6(1),e.Q6J("ngIf",0!==y.members.length&&0===y.dataSource.filteredData.length),e.xp6(1),e.Q6J("ngIf",0===y.members.length))},dependencies:[R.O5,v.oG,A.BZ,A.fO,A.as,A.w1,A.Dz,A.nj,A.ge,A.ev,A.XQ,A.Gk,S.rH,m.YE,m.nU,D.w,F.Hw,z.gM,$.l,G.YH,G.QG,q.X$,_e.d,ce.u,Te.f,b.i,H.D,L.p,V.F,Q.M,ae.I,xe.G,ge.r],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:.25rem!important} .status-tooltip{white-space:pre-line}.disable-outline[_ngcontent-%COMP%]{outline:none!important}.center[_ngcontent-%COMP%]{text-align:center}.new-line[_ngcontent-%COMP%]{white-space:pre-wrap}"]}),o})()},22465:(Qe,he,u)=>{"use strict";u.d(he,{c:()=>v});var e=u(94650),m=u(69723),A=u(9244),w=u(21029),p=u(65412),g=u(36895),T=u(97392),E=u(89383);function S(D,F){if(1&D&&(e.TgZ(0,"div",5)(1,"mat-icon"),e._uU(2),e.qZA()()),2&D){const z=e.oxw();e.xp6(2),e.Oqu(z.data.icon)}}function R(D,F){if(1&D&&(e.TgZ(0,"div",6),e._uU(1),e.qZA()),2&D){const z=e.oxw();e.xp6(1),e.hij(" ",z.showTimestamp()," ")}}let v=(()=>{class D{constructor(z,$){this.dialog=z,this.notificationStorageService=$,this.newNotification=!1,this.closeNotification=new e.vpe,this.alreadyPressed=!1,this.alreadyClosed=!1,this.waiting=!1}doAction(){if(this.newNotification&&(this.alreadyPressed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,void 0!==this.data.action)this.data.action();else{const z=(0,A.kZ)();z.width="550px",z.data=this.data,z.autoFocus=!1,this.dialog.open(w.FM,z).afterClosed().subscribe(()=>{this.closeSelf()})}}closeSelf(){this.inDialog||(this.newNotification&&(this.alreadyClosed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,this.closeNotification.emit())}ngOnInit(){(0,A.ys)(this.data.delay,()=>{!this.alreadyClosed&&!this.waiting&&this.closeSelf()})}showTimestamp(){const[z,$]=this.data.timeStamp.split(":");return $.length<2?z+":0"+$:this.data.timeStamp}}return D.\u0275fac=function(z){return new(z||D)(e.Y36(p.uw),e.Y36(m.SZ))},D.\u0275cmp=e.Xpm({type:D,selectors:[["perun-web-apps-notification"]],inputs:{data:"data",inDialog:"inDialog",newNotification:"newNotification"},outputs:{closeNotification:"closeNotification"},decls:9,vars:14,consts:[[1,"notification-container",3,"click"],["class","notification-icon",4,"ngIf"],["data-cy","notification-message",1,"notification-text","clickable"],["class","ml-auto mr-5 mt-auto mb-auto",4,"ngIf"],[1,"notification-action","mt-auto","mb-auto",3,"hidden","click"],[1,"notification-icon"],[1,"ml-auto","mr-5","mt-auto","mb-auto"]],template:function(z,$){1&z&&(e.TgZ(0,"div")(1,"div",0),e.NdJ("click",function(){return $.alreadyClosed||$.waiting?"":$.closeSelf()}),e.YNc(2,S,3,1,"div",1),e.TgZ(3,"div",2),e._uU(4),e.ALo(5,"translate"),e.qZA(),e.YNc(6,R,2,1,"div",3),e.TgZ(7,"div",4),e.NdJ("click",function(){return $.waiting=!0,$.doAction()}),e._uU(8),e.qZA()()()),2&z&&(e.Gre("notification ",$.inDialog?"":"mat-elevation-z7",""),e.ekj("error","error"===$.data.type)("success","success"===$.data.type),e.xp6(2),e.Q6J("ngIf",null!==$.data.icon),e.xp6(2),e.hij(" ",e.lcZ(5,12,$.data.title)," "),e.xp6(2),e.Q6J("ngIf",$.inDialog),e.xp6(1),e.Q6J("hidden",$.alreadyPressed),e.xp6(1),e.hij(" ",$.data.actionText," "))},dependencies:[g.O5,T.Hw,E.X$],styles:[".notification[_ngcontent-%COMP%]{width:450px;margin-bottom:16px;display:flex;flex-direction:row;justify-content:space-between;color:#fff}.notification-container[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:row;padding:16px}.notification-text[_ngcontent-%COMP%]{font-size:1.1em}.notification-action[_ngcontent-%COMP%]{margin-left:auto;text-decoration:underline;cursor:pointer}@media (max-width: 768px){.notification[_ngcontent-%COMP%]{width:100%}}.notification.error[_ngcontent-%COMP%]{background-color:#d32f2f}.notification.success[_ngcontent-%COMP%]{background-color:#288619}.notification-icon[_ngcontent-%COMP%]{padding-right:8px;color:#fff}"]}),D})()},53599:(Qe,he,u)=>{"use strict";u.d(he,{N:()=>xe});var e=u(94650),m=u(32105),A=u(69723),w=u(30671),p=u(9244),g=u(21029),T=u(40034),E=u(65412),S=u(94364),R=u(36895),v=u(96308),D=u(98380),F=u(4859),z=u(89383),$=u(34447);function G(ge,Se){1&ge&&(e.TgZ(0,"perun-web-apps-alert"),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"customTranslate"),e.qZA()),2&ge&&(e.xp6(1),e.Oqu(e.lcZ(2,1,e.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.NOT_SUPPORTED"))))}function q(ge,Se){1&ge&&(e.TgZ(0,"th",16),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"customTranslate"),e.qZA()),2&ge&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,e.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.NAMESPACE"))," "))}function _e(ge,Se){if(1&ge&&(e.TgZ(0,"td",17),e._uU(1),e.qZA()),2&ge){const Be=Se.$implicit;e.xp6(1),e.Oqu(Be.friendlyNameParameter)}}function ce(ge,Se){1&ge&&(e.TgZ(0,"th",16),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"customTranslate"),e.qZA()),2&ge&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,e.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.LOGIN"))," "))}function Te(ge,Se){if(1&ge&&(e.TgZ(0,"td",18),e._uU(1),e.qZA()),2&ge){const Be=Se.$implicit;e.xp6(1),e.Oqu(Be.value)}}function b(ge,Se){1&ge&&e._UZ(0,"th",16)}function H(ge,Se){if(1&ge){const Be=e.EpF();e.TgZ(0,"td",19)(1,"button",20),e.NdJ("click",function(){const Ce=e.CHM(Be).$implicit,de=e.oxw();return e.KtG(de.resetPassword(Ce.friendlyNameParameter))}),e._uU(2),e.ALo(3,"translate"),e.ALo(4,"customTranslate"),e.qZA()()}if(2&ge){const Be=Se.$implicit,pe=e.oxw();e.xp6(1),e.Q6J("disabled",!pe.logins.includes(Be)),e.xp6(1),e.hij(" ",e.lcZ(3,2,e.lcZ(4,4,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.RESET_PASSWORD"))," ")}}function L(ge,Se){1&ge&&e._UZ(0,"th",16)}function V(ge,Se){if(1&ge){const Be=e.EpF();e.TgZ(0,"td",19)(1,"button",21),e.NdJ("click",function(){const Ce=e.CHM(Be).$implicit,de=e.oxw();return e.KtG(de.changePassword(Ce))}),e._uU(2),e.ALo(3,"translate"),e.ALo(4,"customTranslate"),e.qZA()()}if(2&ge){const Be=Se.$implicit,pe=e.oxw();e.xp6(1),e.Q6J("disabled",!pe.logins.includes(Be)),e.xp6(1),e.hij(" ",e.lcZ(3,2,e.lcZ(4,4,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.CHANGE_PASSWORD"))," ")}}function Q(ge,Se){1&ge&&e._UZ(0,"tr",22)}function ae(ge,Se){1&ge&&e._UZ(0,"tr",23)}let xe=(()=>{class ge{constructor(Be,pe,$e,Ce,de,re,B){this.attributesManagerService=Be,this.store=pe,this.dialog=$e,this.route=Ce,this.router=de,this.otherApplicationService=re,this.entityStorageService=B,this.authenticationPage=!1,this.filteredNamespaces=new e.vpe,this.logins=[],this.nameSpaces=[]}ngOnInit(){this.userId=this.authenticationPage?this.entityStorageService.getEntity().id:this.store.getPerunPrincipal().userId,this.displayedColumns=this.authenticationPage?["namespace","value","change"]:["namespace","value","reset","change"],this.nameSpaces=this.store.getProperty("password_namespace_attributes").map(Be=>{const pe=Be.split(":");return pe[pe.length-1]}),this.refreshTable()}refreshTable(){this.attributesManagerService.getLogins(this.userId).subscribe(Be=>{if(this.logins=Be.filter(pe=>this.nameSpaces.includes(pe.friendlyNameParameter)),this.filteredNamespaces.emit(Be.map(pe=>pe.friendlyNameParameter)),this.dataSource=new w.by(Be),!this.authenticationPage){const $e=this.route.snapshot.queryParamMap.get("namespace");if($e){const Ce=this.logins.find(de=>de.friendlyNameParameter===$e);Ce&&this.changePassword(Ce)}}})}resetPassword(Be){window.open(this.otherApplicationService.getUrlForOtherApplication(T.p.PwdReset,Be),"_blank")}changePassword(Be){this.authenticationPage||this.router.navigate([],{queryParams:{namespace:Be.friendlyNameParameter},queryParamsHandling:"merge"});const pe=(0,p.kZ)();pe.width="600px",pe.data={login:String(Be.value),namespace:Be.friendlyName.split(":")[1]},this.dialog.open(g.xF,pe).afterClosed().subscribe(()=>{this.router.navigate([],{queryParams:{namespace:null},queryParamsHandling:"merge"})})}}return ge.\u0275fac=function(Be){return new(Be||ge)(e.Y36(m.H8),e.Y36(A.d6),e.Y36(E.uw),e.Y36(S.gz),e.Y36(S.F0),e.Y36(A.jq),e.Y36(A.fb))},ge.\u0275cmp=e.Xpm({type:ge,selectors:[["perun-web-apps-password-reset"]],inputs:{authenticationPage:"authenticationPage"},outputs:{filteredNamespaces:"filteredNamespaces"},decls:23,vars:9,consts:[[1,"page-subtitle"],[4,"ngIf"],[1,"card","mt-2","table-size-fix"],[1,"card-body"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","value","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","namespace"],["mat-header-cell","",4,"matHeaderCellDef"],["class","w-25","mat-cell","",4,"matCellDef"],["matColumnDef","value"],["class","w-50","mat-cell","",4,"matCellDef"],["matColumnDef","reset"],["mat-cell","",4,"matCellDef"],["matColumnDef","change"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"w-25"],["mat-cell","",1,"w-50"],["mat-cell",""],["color","accent","mat-flat-button","",3,"disabled","click"],["color","accent","mat-flat-button","",1,"action-button",3,"disabled","click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"]],template:function(Be,pe){1&Be&&(e.TgZ(0,"h1",0),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"customTranslate"),e.qZA(),e.YNc(4,G,4,5,"perun-web-apps-alert",1),e.TgZ(5,"div",2)(6,"div",3)(7,"div",4)(8,"table",5),e.ynx(9,6),e.YNc(10,q,4,5,"th",7),e.YNc(11,_e,2,1,"td",8),e.BQk(),e.ynx(12,9),e.YNc(13,ce,4,5,"th",7),e.YNc(14,Te,2,1,"td",10),e.BQk(),e.ynx(15,11),e.YNc(16,b,1,0,"th",7),e.YNc(17,H,5,6,"td",12),e.BQk(),e.ynx(18,13),e.YNc(19,L,1,0,"th",7),e.YNc(20,V,5,6,"td",12),e.BQk(),e.YNc(21,Q,1,0,"tr",14),e.YNc(22,ae,1,0,"tr",15),e.qZA()()()()),2&Be&&(e.xp6(1),e.hij(" ",pe.authenticationPage?"":e.lcZ(2,5,e.lcZ(3,7,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.TITLE")),"\n"),e.xp6(3),e.Q6J("ngIf",!pe.logins.length&&!pe.authenticationPage),e.xp6(4),e.Q6J("dataSource",pe.dataSource),e.xp6(13),e.Q6J("matHeaderRowDef",pe.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",pe.displayedColumns))},dependencies:[R.O5,w.BZ,w.fO,w.as,w.w1,w.Dz,w.nj,w.ge,w.ev,w.XQ,w.Gk,v.YE,D.w,F.lW,z.X$,$.a],styles:[".dark-hover-list-item[_ngcontent-%COMP%]:hover{background-color:#0000000d}"]}),ge})()},41619:(Qe,he,u)=>{"use strict";u.d(he,{$:()=>Ce});var e=u(69723),m=u(32105),A=u(94650),w=u(65412),p=u(89383),g=u(36895),T=u(24006),E=u(4859),S=u(59549),R=u(284);function v(de,re){1&de&&(A.TgZ(0,"mat-error"),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&de&&(A.xp6(1),A.Oqu(A.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT_ERROR")))}let D=(()=>{class de{constructor(B,N,Me,Y,be){this.dialogRef=B,this.translate=N,this.notificator=Me,this.rtMessages=Y,this.storeService=be,this.message="",this.subject="",this.instanceName=""}ngOnInit(){this.instanceName=this.storeService.getProperty("config")}sendBugReport(){this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(B=>{this.dialogRef.afterClosed().subscribe(()=>this.notificator.showSuccess(this.translate.instant("DIALOGS.REPORT_ISSUE.SUCCESS")+String(B.ticketNumber))),this.dialogRef.close()})}getFullEmailBody(){return this.message.concat("\n ","------------------------\n ","Perun instance: ",this.instanceName,"\n ","Sended from new Perun Gui, version: ",u(4147).i8)}close(){this.dialogRef.close()}}return de.\u0275fac=function(B){return new(B||de)(A.Y36(w.so),A.Y36(p.sK),A.Y36(e.V6),A.Y36(m.Hr),A.Y36(e.d6))},de.\u0275cmp=A.Xpm({type:de,selectors:[["perun-web-apps-report-issue-dialog"]],decls:29,vars:25,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","","type","text",3,"ngModel","ngModelChange"],["subjectModel","ngModel"],[4,"ngIf"],["matInput","",3,"placeholder","ngModel","ngModelChange"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(B,N){if(1&B&&(A.TgZ(0,"h1",0),A._uU(1),A.ALo(2,"translate"),A.qZA(),A.TgZ(3,"div",1)(4,"mat-form-field")(5,"mat-label"),A._uU(6),A.ALo(7,"translate"),A.qZA(),A.TgZ(8,"input",2,3),A.NdJ("ngModelChange",function(Y){return N.subject=Y}),A.qZA(),A.YNc(10,v,3,3,"mat-error",4),A.qZA(),A.TgZ(11,"mat-form-field")(12,"mat-label"),A._uU(13),A.ALo(14,"translate"),A.qZA(),A.TgZ(15,"textarea",5),A.NdJ("ngModelChange",function(Y){return N.message=Y}),A.ALo(16,"translate"),A._uU(17," "),A.qZA(),A.TgZ(18,"mat-hint"),A._uU(19),A.ALo(20,"translate"),A.qZA()()(),A.TgZ(21,"div",6)(22,"div",7)(23,"button",8),A.NdJ("click",function(){return N.close()}),A._uU(24),A.ALo(25,"translate"),A.qZA(),A.TgZ(26,"button",9),A.NdJ("click",function(){return N.sendBugReport()}),A._uU(27),A.ALo(28,"translate"),A.qZA()()()),2&B){const Me=A.MAs(9);A.xp6(1),A.Oqu(A.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.TITLE")),A.xp6(5),A.Oqu(A.lcZ(7,13,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT")),A.xp6(2),A.Q6J("ngModel",N.subject),A.xp6(2),A.Q6J("ngIf",Me.invalid),A.xp6(3),A.Oqu(A.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE")),A.xp6(2),A.s9C("placeholder",A.lcZ(16,17,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_PLACEHOLDER")),A.Q6J("ngModel",N.message),A.xp6(4),A.Oqu(A.lcZ(20,19,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_HINT")),A.xp6(5),A.hij(" ",A.lcZ(25,21,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.CANCEL")," "),A.xp6(2),A.Q6J("disabled",Me.invalid),A.xp6(1),A.hij(" ",A.lcZ(28,23,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SEND")," ")}},dependencies:[g.O5,T.Fj,T.JJ,T.Q7,T.On,E.lW,S.TO,S.KE,S.bx,S.hX,R.Nt,w.uh,w.xY,w.H8,p.X$],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),de})();var F=u(9244);let z=(()=>{class de{transform(B,N,Me){return B[`${Me}_${N}`]}}return de.\u0275fac=function(B){return new(B||de)},de.\u0275pipe=A.Yjl({name:"localisedText",type:de,pure:!0}),de})(),$=(()=>{class de{transform(B,N){return B["link_"+N]||B.link_en}}return de.\u0275fac=function(B){return new(B||de)},de.\u0275pipe=A.Yjl({name:"localisedLink",type:de,pure:!0}),de})(),G=(()=>{class de{transform(B){return B.includes("/")?B:"/assets/config/"+B}}return de.\u0275fac=function(B){return new(B||de)},de.\u0275pipe=A.Yjl({name:"footerLogoPath",type:de,pure:!0}),de})();function q(de,re){if(1&de&&(A.TgZ(0,"a",13),A.ALo(1,"localisedLink"),A._UZ(2,"img",14),A.ALo(3,"footerLogoPath"),A.qZA()),2&de){const B=A.oxw().$implicit,N=A.oxw(3);A.Q6J("href",A.xi3(1,2,B,N.language),A.LSH),A.xp6(2),A.s9C("src",A.lcZ(3,5,B.logo),A.LSH)}}function _e(de,re){if(1&de&&(A.TgZ(0,"span"),A._UZ(1,"img",14),A.ALo(2,"footerLogoPath"),A.qZA()),2&de){const B=A.oxw().$implicit;A.xp6(1),A.s9C("src",A.lcZ(2,1,B.logo),A.LSH)}}function ce(de,re){if(1&de&&(A.TgZ(0,"div"),A.YNc(1,q,4,7,"a",11),A.ALo(2,"localisedLink"),A.YNc(3,_e,3,3,"span",12),A.ALo(4,"localisedLink"),A.qZA()),2&de){const B=re.$implicit,N=A.oxw(3);A.xp6(1),A.Q6J("ngIf",A.xi3(2,2,B,N.language)),A.xp6(2),A.Q6J("ngIf",!A.xi3(4,5,B,N.language))}}const Te=function(de){return{"min-height":de}};function b(de,re){if(1&de&&(A.TgZ(0,"div",10),A.YNc(1,ce,5,8,"div",5),A.qZA()),2&de){const B=A.oxw().$implicit,N=A.oxw();A.Q6J("ngStyle",A.VKq(2,Te,N.columnContentHeight+"px")),A.xp6(1),A.Q6J("ngForOf",B.elements)}}const H=function(de){return{color:de}};function L(de,re){if(1&de&&(A.TgZ(0,"i",20),A._uU(1),A.qZA()),2&de){const B=A.oxw().$implicit,N=A.oxw(3);A.Q6J("ngStyle",A.VKq(2,H,N.linksTextColor)),A.xp6(1),A.hij(" ",B.icon," ")}}function V(de,re){if(1&de){const B=A.EpF();A.TgZ(0,"span",21),A.NdJ("click",function(){A.CHM(B);const Me=A.oxw().$implicit,Y=A.oxw(3);return A.KtG(Y.openDialog(Me.dialog))}),A._uU(1),A.ALo(2,"localisedText"),A.qZA()}if(2&de){const B=A.oxw().$implicit,N=A.oxw(3);A.Q6J("ngStyle",A.VKq(6,H,N.linksTextColor)),A.xp6(1),A.hij("",A.Dn7(2,2,B,N.language,"label")," ")}}function Q(de,re){if(1&de&&(A.TgZ(0,"a",22),A.ALo(1,"localisedLink"),A._uU(2),A.ALo(3,"localisedText"),A.qZA()),2&de){const B=A.oxw().$implicit,N=A.oxw(3);A.Q6J("href",A.xi3(1,3,B,N.language),A.LSH)("ngStyle",A.VKq(10,H,N.linksTextColor)),A.xp6(2),A.Oqu(A.Dn7(3,6,B,N.language,"label"))}}function ae(de,re){if(1&de&&(A.TgZ(0,"span",10),A._uU(1),A.ALo(2,"localisedText"),A.qZA()),2&de){const B=A.oxw().$implicit,N=A.oxw(3);A.Q6J("ngStyle",A.VKq(6,H,N.linksTextColor)),A.xp6(1),A.Oqu(A.Dn7(2,2,B,N.language,"label"))}}function xe(de,re){if(1&de&&(A.TgZ(0,"div",16),A.YNc(1,L,2,4,"i",17),A.YNc(2,V,3,8,"span",18),A.YNc(3,Q,4,12,"a",19),A.ALo(4,"localisedLink"),A.YNc(5,ae,3,8,"span",9),A.ALo(6,"localisedLink"),A.qZA()),2&de){const B=re.$implicit,N=A.oxw(3);A.xp6(1),A.Q6J("ngIf",B.icon),A.xp6(1),A.Q6J("ngIf",B.dialog),A.xp6(1),A.Q6J("ngIf",A.xi3(4,4,B,N.language)&&!B.dialog),A.xp6(2),A.Q6J("ngIf",!A.xi3(6,7,B,N.language)&&!B.dialog)}}const ge=function(de){return{height:de}};function Se(de,re){if(1&de&&(A.TgZ(0,"div",10),A.YNc(1,xe,7,10,"div",15),A.qZA()),2&de){const B=A.oxw().$implicit,N=A.oxw();A.Q6J("ngStyle",A.VKq(2,ge,N.columnContentHeight+"px")),A.xp6(1),A.Q6J("ngForOf",B.elements)}}function Be(de,re){if(1&de&&(A.TgZ(0,"div",7)(1,"h6",8),A._uU(2),A.ALo(3,"localisedText"),A.qZA(),A.YNc(4,b,2,4,"div",9),A.YNc(5,Se,2,4,"div",9),A.qZA()),2&de){const B=re.$implicit,N=A.oxw();A.ekj("my-auto",N.containsLogos),A.xp6(1),A.Q6J("ngStyle",A.VKq(10,H,N.headersTextColor)),A.xp6(1),A.hij(" ",A.Dn7(3,6,B,N.language,"title")," "),A.xp6(2),A.Q6J("ngIf",B.logos),A.xp6(1),A.Q6J("ngIf",B.elements&&!B.logos)}}function pe(de,re){if(1&de&&(A.TgZ(0,"span")(1,"a",6),A._uU(2),A.qZA()()),2&de){const B=re.$implicit,N=re.index,Me=A.oxw();A.xp6(1),A.Q6J("href",B.url,A.LSH)("ngStyle",A.VKq(3,H,Me.copyrightTextColor)),A.xp6(1),A.Oqu(N?", "+B.name:B.name)}}const $e=function(de){return{background:de}};let Ce=(()=>{class de{constructor(B,N,Me,Y,be,De){this.storeService=B,this.translateService=N,this.utilsService=Me,this.dialog=Y,this.authService=be,this.initAuthService=De,this.copyrightTextColor=this.storeService.getProperty("theme").footer_copyright_text_color,this.footerColumns=[],this.copyrightItems=[],this.currentYear=(new Date).getFullYear(),this.containsLogos=!1,this.headersTextColor=this.storeService.getProperty("theme").footer_headers_text_color,this.linksTextColor=this.storeService.getProperty("theme").footer_links_text_color,this.githubRepository=this.storeService.getProperty("footer").github_releases,this.githubBackendRepository=this.storeService.getProperty("footer").github_backend_releases,this.bgColor=this.storeService.getProperty("theme").footer_bg_color,this.version="",this.backendVersion="",this.guiVersion="",this.language="en",this.columnContentHeight=0}ngOnInit(){this.translateService.onLangChange.subscribe(B=>{this.language=B.lang}),this.version=u(4147).i8,this.footerColumns=this.storeService.getProperty("footer").columns,this.guiVersion=u(4147).i8,(this.authService.isLoggedIn()||this.initAuthService.isServiceAccess())&&this.utilsService.getPerunStatus().subscribe(B=>{const N=B[0];this.backendVersion=N.substring(N.indexOf(":")+2)}),this.footerColumns=this.storeService.getProperty("footer").columns;for(const B of this.footerColumns)B.logos?this.containsLogos=!0:25*B.elements.length>this.columnContentHeight&&(this.columnContentHeight=25*B.elements.length);this.copyrightItems=this.storeService.getProperty("footer").copyright_items}openDialog(B){const N=(0,F.kZ)();"reportIssue"===B&&(N.width="550px",this.dialog.open(D,N))}}return de.\u0275fac=function(B){return new(B||de)(A.Y36(e.d6),A.Y36(p.sK),A.Y36(m.FW),A.Y36(w.uw),A.Y36(e.e8),A.Y36(e.v0))},de.\u0275cmp=A.Xpm({type:de,selectors:[["perun-web-apps-footer"]],decls:13,vars:19,consts:[[1,"footer-container",3,"ngStyle"],[1,"footer-columns-container"],["class","footer-col mx-auto",3,"my-auto",4,"ngFor","ngForOf"],[1,"my-0","mt-3"],[1,"font-fix","text-center",3,"ngStyle"],[4,"ngFor","ngForOf"],["target","_blank",1,"text-decoration-none",3,"href","ngStyle"],[1,"footer-col","mx-auto"],[1,"font-weight-bold",3,"ngStyle"],[3,"ngStyle",4,"ngIf"],[3,"ngStyle"],[3,"href",4,"ngIf"],[4,"ngIf"],[3,"href"],["alt","image",3,"src"],["class","row-height",4,"ngFor","ngForOf"],[1,"row-height"],["class","material-icons align-bottom mr-1",3,"ngStyle",4,"ngIf"],["id","clickable",3,"ngStyle","click",4,"ngIf"],["target","_blank",3,"href","ngStyle",4,"ngIf"],[1,"material-icons","align-bottom","mr-1",3,"ngStyle"],["id","clickable",3,"ngStyle","click"],["target","_blank",3,"href","ngStyle"]],template:function(B,N){1&B&&(A.TgZ(0,"footer",0)(1,"div",1),A.YNc(2,Be,6,12,"div",2),A.qZA(),A._UZ(3,"hr",3),A.TgZ(4,"div",4),A._uU(5),A.YNc(6,pe,3,5,"span",5),A._uU(7,", web application: "),A.TgZ(8,"a",6),A._uU(9),A.qZA(),A._uU(10,", server: "),A.TgZ(11,"a",6),A._uU(12),A.qZA()()()),2&B&&(A.Q6J("ngStyle",A.VKq(11,$e,N.bgColor)),A.xp6(2),A.Q6J("ngForOf",N.footerColumns),A.xp6(2),A.Q6J("ngStyle",A.VKq(13,H,N.copyrightTextColor)),A.xp6(1),A.hij(" \xa9 ",N.currentYear," Copyright: "),A.xp6(1),A.Q6J("ngForOf",N.copyrightItems),A.xp6(2),A.Q6J("href",N.githubRepository,A.LSH)("ngStyle",A.VKq(15,H,N.copyrightTextColor)),A.xp6(1),A.Oqu(N.guiVersion),A.xp6(2),A.Q6J("href",N.githubBackendRepository,A.LSH)("ngStyle",A.VKq(17,H,N.copyrightTextColor)),A.xp6(1),A.Oqu(N.backendVersion))},dependencies:[g.sg,g.O5,g.PC,z,$,G],styles:["a[_ngcontent-%COMP%]{text-decoration:none}.font-fix[_ngcontent-%COMP%]{font-size:.8rem}.row-height[_ngcontent-%COMP%]{height:25px!important}.footer-col[_ngcontent-%COMP%]{padding-top:35px;white-space:nowrap;text-align:center}.wrap-content[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content}#clickable[_ngcontent-%COMP%]{cursor:pointer}.footer-columns-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-direction:column}@media (min-width: 768px){.footer-columns-container[_ngcontent-%COMP%]{flex-direction:row}}.footer-container[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content}"]}),de})()},46453:(Qe,he,u)=>{"use strict";u.d(he,{Y:()=>xe});var e=u(94650),m=u(69723),A=u(9244),w=u(21029),p=u(40034),g=u(11481),T=u(89383),E=u(65412),S=u(94364),R=u(36895),v=u(97392),D=u(28255),F=u(4859),z=u(10266),$=u(83683),G=u(42673),q=u(52314),_e=u(94391);const ce=function(ge){return{color:ge}};function Te(ge,Se){if(1&ge){const Be=e.EpF();e.TgZ(0,"button",9),e.NdJ("click",function(){e.CHM(Be);const $e=e.oxw();return e.KtG($e.onToggleSidenav())}),e.TgZ(1,"mat-icon"),e._uU(2,"menu"),e.qZA()()}if(2&ge){const Be=e.oxw();e.Q6J("ngStyle",e.VKq(1,ce,Be.iconColor))}}function b(ge,Se){if(1&ge){const Be=e.EpF();e.TgZ(0,"div",10)(1,"button",11)(2,"mat-icon",12),e._uU(3," language "),e.qZA()(),e.TgZ(4,"mat-menu",null,13)(6,"button",14),e.NdJ("click",function(){e.CHM(Be);const $e=e.oxw();return e.KtG($e.changeLanguage())}),e._uU(7),e.ALo(8,"translate"),e.qZA()()()}if(2&ge){const Be=e.MAs(5),pe=e.oxw();e.Q6J("ngStyle",e.VKq(6,ce,pe.textColor)),e.xp6(1),e.Q6J("matMenuTriggerFor",Be),e.xp6(1),e.Q6J("ngStyle",e.VKq(8,ce,pe.iconColor)),e.xp6(5),e.hij(" ",e.lcZ(8,4,"HEADER.LANGUAGE")," ")}}function H(ge,Se){if(1&ge){const Be=e.EpF();e.TgZ(0,"button",15),e.NdJ("click",function(){e.CHM(Be);const $e=e.oxw();return e.KtG($e.showNotificationHistory())}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon",16),e._uU(3),e.qZA()()}if(2&ge){const Be=e.oxw();e.Q6J("matTooltip",e.lcZ(1,5,"NAV.NOTIFICATIONS_TOOLTIP")),e.xp6(2),e.s9C("matBadge",Be.getNewNotificationsCount()>5?"5+":Be.getNewNotificationsCount()),e.Q6J("ngStyle",e.VKq(7,ce,Be.iconColor))("matBadgeHidden",0===Be.getNewNotificationsCount()),e.xp6(1),e.hij(" ",Be.getNewNotificationsCount()?"notifications_active":"notifications"," ")}}function L(ge,Se){if(1&ge&&e._UZ(0,"perun-web-apps-header-menu",17),2&ge){const Be=e.oxw();e.Q6J("url",Be.otherAppUrl)("label",Be.otherAppLabel)("user",Be.principal.user)("logoutEnabled",Be.logoutEnabled)("iconColor",Be.iconColor)("textColor",Be.textColor)}}const V=function(ge){return{background:ge}},Q=function(){return[]},ae=function(){return["/"]};let xe=(()=>{class ge{constructor(Be,pe,$e,Ce,de,re,B){this.storeService=Be,this.sanitizer=pe,this.translateService=$e,this.otherApplicationService=Ce,this.notificationStorageService=de,this.dialog=re,this.route=B,this.sidenavToggle=new e.vpe,this.showToggle=!0,this.showLanguageMenu=!1,this.showHeaderMenu=!0,this.showNotifications=!1,this.disableLogo=!1,this.label=this.storeService.getProperty("header_label_en"),this.logoutEnabled=this.storeService.getProperty("log_out_enabled"),this.principal=this.storeService.getPerunPrincipal(),this.bgColor=this.storeService.getProperty("theme").nav_bg_color,this.textColor=this.storeService.getProperty("theme").nav_text_color,this.iconColor=this.storeService.getProperty("theme").nav_icon_color,this.navTextColor=this.storeService.getProperty("theme").nav_text_color,this.activeLink=!1,this.onToggleSidenav=()=>{this.sidenavToggle.emit()}}ngOnInit(){this.otherAppLabel=this.getOtherAppLabel(),this.translateService.onLangChange.subscribe(Be=>{this.label=this.storeService.getProperty("en"===Be.lang?"header_label_en":"header_label_cs"),this.otherAppLabel=this.getOtherAppLabel(Be.lang)}),this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.getProperty("logo")),this.isLinkToOtherAppActive()}getOtherAppLabel(Be="en"){return this.storeService.getProperty(this.otherApp===p.p.Profile?"profile_label_en":"en"===Be?"admin_gui_label_en":"admin_gui_label_cs")}isLinkToOtherAppActive(){if(this.otherApp===p.p.Admin){this.linkRoles=this.storeService.getProperty("link_to_admin_gui_by_roles");for(const Be in this.storeService.getPerunPrincipal().roles)this.linkRoles.includes(Be)&&(this.activeLink=!0)}(this.otherApp!==p.p.Admin||this.activeLink)&&(this.otherAppUrl=this.otherApplicationService.getUrlForOtherApplication(this.otherApp))}changeLanguage(){this.translateService.use("en"===this.translateService.currentLang?"cs":"en")}showNotificationHistory(){this.notificationStorageService.newNotificationsCount=0;const Be=(0,A.kZ)();Be.width="520px",this.dialog.open(w.Us,Be)}getNewNotificationsCount(){return this.notificationStorageService.newNotificationsCount}}return ge.\u0275fac=function(Be){return new(Be||ge)(e.Y36(m.d6),e.Y36(g.H7),e.Y36(T.sK),e.Y36(m.jq),e.Y36(m.SZ),e.Y36(E.uw),e.Y36(S.gz))},ge.\u0275cmp=e.Xpm({type:ge,selectors:[["perun-web-apps-header"]],inputs:{showToggle:"showToggle",showLanguageMenu:"showLanguageMenu",showHeaderMenu:"showHeaderMenu",showNotifications:"showNotifications",disableLogo:"disableLogo",otherApp:"otherApp"},outputs:{sidenavToggle:"sidenavToggle"},decls:10,vars:19,consts:[[1,"sticky-top","header-container","mat-elevation-z3",3,"ngStyle"],["id","nav-menu-icons"],["aria-label","Menu","mat-icon-button","",3,"ngStyle","click",4,"ngIf"],["queryParamsHandling","merge",1,"logo-container","mt-auto","mb-auto",3,"innerHTML","routerLink","queryParams"],[1,"mt-auto","mb-auto","hide-label","page-subtitle",3,"ngStyle"],["id","nav-menu-user-info",3,"ngStyle"],["id","nav-menu-language",3,"ngStyle",4,"ngIf"],["mat-icon-button","",3,"matTooltip","click",4,"ngIf"],[3,"url","label","user","logoutEnabled","iconColor","textColor",4,"ngIf"],["aria-label","Menu","mat-icon-button","",3,"ngStyle","click"],["id","nav-menu-language",3,"ngStyle"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],["menu","matMenu"],["mat-menu-item","",3,"click"],["mat-icon-button","",3,"matTooltip","click"],["matBadgeColor","warn",3,"ngStyle","matBadge","matBadgeHidden"],[3,"url","label","user","logoutEnabled","iconColor","textColor"]],template:function(Be,pe){1&Be&&(e.TgZ(0,"mat-toolbar",0)(1,"div",1),e.YNc(2,Te,3,3,"button",2),e._UZ(3,"a",3),e.TgZ(4,"p",4),e._uU(5),e.qZA()(),e.TgZ(6,"div",5),e.YNc(7,b,9,10,"div",6),e.YNc(8,H,4,9,"button",7),e.YNc(9,L,1,6,"perun-web-apps-header-menu",8),e.qZA()()),2&Be&&(e.Q6J("ngStyle",e.VKq(11,V,pe.bgColor)),e.xp6(2),e.Q6J("ngIf",pe.showToggle),e.xp6(1),e.Q6J("innerHTML",pe.logo,e.oJD)("routerLink",pe.disableLogo?e.DdM(13,Q):e.DdM(14,ae))("queryParams",pe.route.snapshot.queryParams),e.xp6(1),e.Q6J("ngStyle",e.VKq(15,ce,pe.textColor)),e.xp6(1),e.hij(" ",pe.label," "),e.xp6(1),e.Q6J("ngStyle",e.VKq(17,ce,pe.navTextColor)),e.xp6(1),e.Q6J("ngIf",pe.showLanguageMenu),e.xp6(1),e.Q6J("ngIf",pe.showNotifications),e.xp6(1),e.Q6J("ngIf",pe.showHeaderMenu))},dependencies:[R.O5,R.PC,S.yS,v.Hw,D.VK,D.OP,D.p6,F.lW,z.gM,$.Ye,G.k,q.X,_e.QG,T.X$],styles:[".header-container[_ngcontent-%COMP%]{height:64px!important;display:flex;justify-content:space-between;padding:0 0 0 8px;z-index:999}#nav-menu-user-info[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding-right:16px;margin-left:auto;margin-right:0}@media (max-width: 570px){.hide-label[_ngcontent-%COMP%]{display:none}}#nav-devel-info[_ngcontent-%COMP%]{margin-left:auto;font-weight:500;font-size:1.4rem;display:flex;align-items:center;font-family:Roboto,Helvetica Neue,sans-serif}#nav-menu-icons[_ngcontent-%COMP%]{display:flex;flex-direction:row}.logo-container[_ngcontent-%COMP%]{padding:0 20px 0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}#nav-menu-language[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding-right:16px}"]}),ge})()},10441:(Qe,he,u)=>{"use strict";u.d(he,{W:()=>T});var e=u(94650),m=u(36895),A=u(97392),w=u(10266),p=u(89383);function g(E,S){1&E&&(e.TgZ(0,"mat-icon",1),e.ALo(1,"translate"),e._uU(2," visibility\n"),e.qZA()),2&E&&e.s9C("matTooltip",e.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.RECENTLY_VIEWED_ICON.RECENT"))}let T=(()=>{class E{constructor(){this.recentIds=[]}}return E.\u0275fac=function(R){return new(R||E)},E.\u0275cmp=e.Xpm({type:E,selectors:[["perun-web-apps-recently-viewed-icon"]],inputs:{recentIds:"recentIds",id:"id"},decls:1,vars:1,consts:[["class","align-bottom disabled-icon",3,"matTooltip",4,"ngIf"],[1,"align-bottom","disabled-icon",3,"matTooltip"]],template:function(R,v){1&R&&e.YNc(0,g,3,3,"mat-icon",0),2&R&&e.Q6J("ngIf",v.recentIds.indexOf(v.id)>-1)},dependencies:[m.O5,A.Hw,w.gM,p.X$],styles:[".disabled-icon[_ngcontent-%COMP%]{color:#00000042}"]}),E})()},96214:(Qe,he,u)=>{"use strict";u.d(he,{t:()=>g});var e=u(94650),m=u(97392),A=u(4859),w=u(10266),p=u(89383);let g=(()=>{class T{constructor(){this.refresh=new e.vpe}onClickbutton(S){this.refresh.emit(S)}}return T.\u0275fac=function(S){return new(S||T)},T.\u0275cmp=e.Xpm({type:T,selectors:[["perun-web-apps-refresh-button"]],inputs:{disabled:"disabled"},outputs:{refresh:"refresh"},decls:3,vars:5,consts:[["mat-stroked-button","","data-cy","refresh-button",1,"mr-2",3,"disabled","matTooltip","click"],[1,"center-icon","perun-icon",3,"svgIcon"]],template:function(S,R){1&S&&(e.TgZ(0,"button",0),e.NdJ("click",function(D){return R.onClickbutton(D)}),e.ALo(1,"translate"),e._UZ(2,"mat-icon",1),e.qZA()),2&S&&(e.s9C("matTooltip",e.lcZ(1,3,"SHARED_LIB.PERUN.REFRESH_BUTTON")),e.Q6J("disabled",R.disabled),e.xp6(2),e.s9C("svgIcon",R.disabled?"perun-refresh-disabled":"perun-refresh-enabled"))},dependencies:[m.Hw,A.lW,w.gM,p.X$],styles:[".center-icon[_ngcontent-%COMP%]{display:inline-flex}.perun-icon[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{fill:currentColor}.perun-icon[_ngcontent-%COMP%] rect[_ngcontent-%COMP%]{fill:currentColor}.perun-icon[_ngcontent-%COMP%] polygon[_ngcontent-%COMP%]{fill:currentColor}"]}),T})()},45703:(Qe,he,u)=>{"use strict";u.d(he,{L:()=>p});var e=u(94650),m=u(9244),A=u(42377),w=u(89383);let p=(()=>{class g{constructor(){this.resource=null,this.displayStatus=!0,this.disableAutoSelect=!1,this.resourceSelected=new e.vpe,this.nameFunction=E=>E.name,this.secondaryFunction=()=>null}ngOnInit(){this.resources=this.resources.sort(m.aC)}}return g.\u0275fac=function(E){return new(E||g)},g.\u0275cmp=e.Xpm({type:g,selectors:[["perun-web-apps-resource-search-select"]],inputs:{resource:"resource",resources:"resources",displayStatus:"displayStatus",disableAutoSelect:"disableAutoSelect"},outputs:{resourceSelected:"resourceSelected"},decls:4,vars:16,consts:[[3,"entity","entities","disableAutoSelect","displayStatus","searchFunction","mainTextFunction","secondaryTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(E,S){1&E&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(v){return S.resourceSelected.emit(v)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&E&&e.Q6J("entity",S.resource)("entities",S.resources)("disableAutoSelect",S.disableAutoSelect)("displayStatus",S.displayStatus)("searchFunction",S.nameFunction)("mainTextFunction",S.nameFunction)("secondaryTextFunction",S.secondaryFunction)("selectPlaceholder",e.lcZ(1,10,"SHARED_LIB.PERUN.COMPONENTS.RESOURCE_SEARCH_SELECT.SELECT_RESOURCE"))("findPlaceholder",e.lcZ(2,12,"SHARED_LIB.PERUN.COMPONENTS.RESOURCE_SEARCH_SELECT.FIND_RESOURCE"))("noEntriesText",e.lcZ(3,14,"SHARED_LIB.PERUN.COMPONENTS.RESOURCE_SEARCH_SELECT.NO_RESOURCE_FOUND"))},dependencies:[A.i,w.X$]}),g})()},62109:(Qe,he,u)=>{"use strict";u.d(he,{C:()=>r});var e=u(94650),m=u(96308),A=u(30671),w=u(95017),p=u(9244),g=u(69723),T=u(36895),E=u(56709),S=u(94364),R=u(98380),v=u(97392),D=u(10266),F=u(18750),z=u(94391),$=u(10441),G=u(8223),q=u(89383);let _e=(()=>{class s{transform(c){if(null==c)return null;let i="";return c.forEach(function(t){i=i.concat(t.tagName)}),i}}return s.\u0275fac=function(c){return new(c||s)},s.\u0275pipe=e.Yjl({name:"resourceTagsToString",type:s,pure:!0}),s})();var ce=u(82895),Te=u(9185),b=u(8231),H=u(14849);function L(s,_){if(1&s){const c=e.EpF();e.TgZ(0,"mat-checkbox",27),e.NdJ("change",function(i){e.CHM(c);const t=e.oxw(3);return e.KtG(i?t.masterToggle():null)}),e.ALo(1,"translate"),e.ALo(2,"masterCheckboxLabel"),e.qZA()}if(2&s){const c=e.oxw(2).ngIf,a=e.oxw();e.Q6J("aria-label",e.lcZ(1,3,e.lcZ(2,5,c.all)))("checked",a.selection.hasValue()&&c.all)("indeterminate",a.selection.hasValue()&&!c.all)}}function V(s,_){if(1&s&&(e.TgZ(0,"th",25),e.YNc(1,L,3,7,"mat-checkbox",26),e.qZA()),2&s){const c=e.oxw(2);e.xp6(1),e.Q6J("ngIf",c.selection.isMultipleSelection())}}const Q=function(s){return{name:s}};function ae(s,_){if(1&s){const c=e.EpF();e.TgZ(0,"td",28)(1,"span",29),e.ALo(2,"translate"),e.TgZ(3,"mat-checkbox",30),e.NdJ("change",function(i){const n=e.CHM(c).$implicit,o=e.oxw(2);return e.KtG(i?o.itemSelectionToggle(n):null)})("click",function(i){return i.stopPropagation()}),e.ALo(4,"translate"),e.ALo(5,"checkboxLabel"),e.qZA()()()}if(2&s){const c=_.$implicit,a=e.oxw(2);e.xp6(1),e.s9C("matTooltip",e.lcZ(2,7,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.INDIRECT_RESOURCE")),e.Q6J("matTooltipPosition","above")("matTooltipDisabled",!a.disableSelect(c)),e.xp6(2),e.Q2q("data-cy","",c.name,"-checkbox"),e.Q6J("aria-label",e.xi3(4,9,e.lcZ(5,12,a.selection.isSelected(c)),e.VKq(14,Q,c.name)))("checked",a.selection.isSelected(c))("disabled",a.disableSelect(c))}}function xe(s,_){1&s&&(e.ynx(0,22),e.YNc(1,V,2,1,"th",23),e.YNc(2,ae,6,16,"td",24),e.BQk())}function ge(s,_){1&s&&(e.TgZ(0,"th",31),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_ID")," "))}function Se(s,_){if(1&s&&(e.TgZ(0,"td",32),e._uU(1),e.qZA()),2&s){const c=_.$implicit;e.xp6(1),e.Oqu(c.id)}}function Be(s,_){1&s&&e._UZ(0,"th",33)}function pe(s,_){if(1&s&&(e.TgZ(0,"td",34),e._UZ(1,"perun-web-apps-recently-viewed-icon",35),e.qZA()),2&s){const c=_.$implicit,a=e.oxw();e.xp6(1),e.Q6J("recentIds",a.recentIds)("id",c.id)}}function $e(s,_){1&s&&e._UZ(0,"th",33)}function Ce(s,_){1&s&&(e.TgZ(0,"mat-icon",37),e.ALo(1,"translate"),e._uU(2,"account_tree"),e.qZA()),2&s&&e.Q6J("matTooltip",e.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.INDIRECT_RESOURCE"))}function de(s,_){if(1&s&&(e.TgZ(0,"td",34),e.YNc(1,Ce,3,3,"mat-icon",36),e.qZA()),2&s){const c=_.$implicit;e.xp6(1),e.Q6J("ngIf",c.sourceGroupId)}}function re(s,_){1&s&&(e.TgZ(0,"th",31),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_NAME")," "))}function B(s,_){if(1&s&&(e.TgZ(0,"td",34),e._uU(1),e.qZA()),2&s){const c=_.$implicit;e.uIk("data-cy",c.name),e.xp6(1),e.hij(" ",c.name," ")}}function N(s,_){1&s&&(e.TgZ(0,"th",31),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_VO_NAME")," "))}function Me(s,_){if(1&s&&(e.TgZ(0,"td",34),e._uU(1),e.qZA()),2&s){const c=_.$implicit;e.xp6(1),e.Oqu(c.vo.name)}}function Y(s,_){1&s&&(e.TgZ(0,"th",31),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_VO_ID")," "))}function be(s,_){if(1&s&&(e.TgZ(0,"td",34),e._uU(1),e.qZA()),2&s){const c=_.$implicit;e.xp6(1),e.Oqu(c.voId)}}function De(s,_){1&s&&(e.TgZ(0,"th",31),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_GROUP_RESOURCE_STATUS")," "))}function We(s,_){if(1&s){const c=e.EpF();e.TgZ(0,"td",34)(1,"perun-web-apps-group-resource-status",38),e.NdJ("mouseenter",function(){e.CHM(c);const i=e.oxw();return e.KtG(i.disabledRouting=!0)})("mouseleave",function(){e.CHM(c);const i=e.oxw();return e.KtG(i.disabledRouting=i.disableRouting)})("statusChange",function(){e.CHM(c);const i=e.oxw();return e.KtG(i.refreshTable.emit())}),e.qZA()()}if(2&s){const c=_.$implicit,a=e.oxw();e.xp6(1),e.Q6J("theme","group-theme")("resourceId",c.id)("groupId",a.groupId)("failureCause",c.failureCause)("status",c.status)}}function Pe(s,_){1&s&&(e.TgZ(0,"th",31),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_FACILITY_NAME")," "))}function nt(s,_){if(1&s&&(e.TgZ(0,"td",34),e._uU(1),e.qZA()),2&s){const c=_.$implicit;e.xp6(1),e.Oqu(c.facility.name)}}function Ye(s,_){1&s&&(e.TgZ(0,"th",31),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_FACILITY_ID")," "))}function Tt(s,_){if(1&s&&(e.TgZ(0,"td",34),e._uU(1),e.qZA()),2&s){const c=_.$implicit;e.xp6(1),e.Oqu(c.facilityId)}}function J(s,_){1&s&&(e.TgZ(0,"th",31),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_TAGS")," "))}function Xe(s,_){if(1&s&&(e.TgZ(0,"td",34),e._uU(1),e.ALo(2,"resourceTagsToString"),e.qZA()),2&s){const c=_.$implicit;e.xp6(1),e.hij(" ",e.lcZ(2,1,c.resourceTags)," ")}}function le(s,_){1&s&&(e.TgZ(0,"th",31),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_DESCRIPTION")," "))}function ne(s,_){if(1&s&&(e.TgZ(0,"td",34),e._uU(1),e.qZA()),2&s){const c=_.$implicit;e.xp6(1),e.Oqu(c.description)}}function ke(s,_){1&s&&e._UZ(0,"tr",39)}const Ee=function(s){return[s]};function ot(s,_){if(1&s&&(e._UZ(0,"tr",40),e.ALo(1,"getResourceRoute"),e.ALo(2,"getResourceRoute")),2&s){const c=_.$implicit,a=e.oxw();e.ekj("cursor-pointer",!a.disableRouting)("disable-outline",a.disabledRouting),e.Q6J("perunWebAppsMiddleClickRouterLink",e.VKq(12,Ee,a.disabledRouting?null:e.xi3(1,6,c,a.routingVo)))("routerLink",a.disabledRouting?null:e.xi3(2,9,c,a.routingVo))}}function it(s,_){1&s&&(e.TgZ(0,"perun-web-apps-alert",41),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function oe(s,_){1&s&&(e.TgZ(0,"perun-web-apps-alert",41),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.NO_RESOURCES_WARNING"),"\n"))}const X=function(s){return{all:s}};let r=(()=>{class s{constructor(c,a){this.guiAuthResolver=c,this.tableCheckbox=a,this.resources=[],this.selection=new w.Ov(!0,[]),this.disableRouting=!1,this.routingVo=!1,this.displayedColumns=["select","id","recent","indirectResourceAssigment","name","vo","voId","status","facility","facilityId","tags","description"],this.pageSizeOptions=p.f7,this.groupId=null,this.resourcesToDisableCheckbox=new Set,this.refreshTable=new e.vpe,this.allSelected=new e.vpe,this.removeAuth=!1,this.addAuth=!1,this.getDataForColumnFun=(i,t)=>s.getDataForColumn(i,t,this.recentIds),this.canBeSelected=i=>!this.disableSelect(i)}set matSort(c){this.sort=c}static getDataForColumn(c,a,i){switch(a){case"id":return c.id.toString();case"vo":return c.vo.name;case"name":return c.name;case"facility":return c.facility.name;case"description":return c.description;case"recent":return i&&i.includes(c.id)?"#".repeat(i.indexOf(c.id)):c.name;case"tags":{if(!c.resourceTags)return c[a];let n="";return c.resourceTags.forEach(function(o){n=n.concat(o.tagName)}),n}case"status":return c.status;case"uuid":return c.uuid;default:return c[a]}}ngOnInit(){this.disabledRouting=this.disableRouting}ngOnChanges(){this.guiAuthResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(c=>"id"!==c)),this.setDataSource(),this.setAuth()}exportAllData(c){(0,p.O6)((0,p.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumnFun),c)}exportDisplayedData(c){const a=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,i=a+this.dataSource.paginator.pageSize;(0,p.O6)((0,p.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(a,i),this.displayedColumns,this.getDataForColumnFun),c)}setDataSource(){this.dataSource||(this.dataSource=new A.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(c,a)=>(0,p.Sd)(c,a,this.displayedColumns,this.getDataForColumnFun,!0),this.dataSource.sortData=(c,a)=>(0,p.pR)(c,a,this.getDataForColumnFun)),this.dataSource.filter=this.filterValue,this.dataSource.data=this.resources}isAllSelected(){const c=this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource,this.canBeSelected);return this.allSelected.emit(c),c}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!0,this.canBeSelected),this.setAuth()}setAuth(){const c=this.groupToResource?[this.groupToResource]:[];this.removeAuth=this.selection.selected.reduce((a,i)=>a&&this.guiAuthResolver.isAuthorized("removeGroupFromResources_Group_List_policy",c.concat([i])),!0),this.addAuth=this.selection.selected.reduce((a,i)=>a&&this.guiAuthResolver.isAuthorized("assignGroupToResources_Group_List_policy",c.concat([i])),!0)}itemSelectionToggle(c){this.selection.toggle(c),this.setAuth()}disableSelect(c){return this.resourcesToDisableCheckbox.has(c.id)}}return s.\u0275fac=function(c){return new(c||s)(e.Y36(g.x4),e.Y36(g.UA))},s.\u0275cmp=e.Xpm({type:s,selectors:[["perun-web-apps-resources-list"]],viewQuery:function(c,a){if(1&c&&(e.Gf(p.l9,7),e.Gf(m.YE,7)),2&c){let i;e.iGM(i=e.CRH())&&(a.child=i.first),e.iGM(i=e.CRH())&&(a.matSort=i.first)}},inputs:{resources:"resources",selection:"selection",filterValue:"filterValue",disableRouting:"disableRouting",routingVo:"routingVo",displayedColumns:"displayedColumns",groupToResource:"groupToResource",pageSizeOptions:"pageSizeOptions",recentIds:"recentIds",groupId:"groupId",resourcesToDisableCheckbox:"resourcesToDisableCheckbox",tableId:"tableId"},outputs:{refreshTable:"refreshTable",allSelected:"allSelected"},features:[e.TTD],decls:42,vars:16,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","tableId","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size",4,"matCellDef"],["matColumnDef","recent"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","indirectResourceAssigment"],["matColumnDef","name"],["matColumnDef","vo"],["matColumnDef","voId"],["matColumnDef","status"],["matColumnDef","facility"],["matColumnDef","facilityId"],["matColumnDef","tags"],["matColumnDef","description"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change",4,"ngIf"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],[3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-header-cell",""],["mat-cell",""],[3,"recentIds","id"],["matTooltipPosition","above",3,"matTooltip",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip"],[3,"theme","resourceId","groupId","failureCause","status","mouseenter","mouseleave","statusChange"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(c,a){1&c&&(e.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),e.NdJ("exportDisplayedData",function(t){return a.exportDisplayedData(t)})("exportAllData",function(t){return a.exportAllData(t)}),e.TgZ(2,"table",2),e.YNc(3,xe,3,0,"ng-container",3),e.ALo(4,"isAllSelected"),e.ynx(5,4),e.YNc(6,ge,3,3,"th",5),e.YNc(7,Se,2,1,"td",6),e.BQk(),e.ynx(8,7),e.YNc(9,Be,1,0,"th",8),e.YNc(10,pe,2,2,"td",9),e.BQk(),e.ynx(11,10),e.YNc(12,$e,1,0,"th",8),e.YNc(13,de,2,1,"td",9),e.BQk(),e.ynx(14,11),e.YNc(15,re,3,3,"th",5),e.YNc(16,B,2,2,"td",9),e.BQk(),e.ynx(17,12),e.YNc(18,N,3,3,"th",5),e.YNc(19,Me,2,1,"td",9),e.BQk(),e.ynx(20,13),e.YNc(21,Y,3,3,"th",5),e.YNc(22,be,2,1,"td",9),e.BQk(),e.ynx(23,14),e.YNc(24,De,3,3,"th",5),e.YNc(25,We,2,5,"td",9),e.BQk(),e.ynx(26,15),e.YNc(27,Pe,3,3,"th",5),e.YNc(28,nt,2,1,"td",9),e.BQk(),e.ynx(29,16),e.YNc(30,Ye,3,3,"th",5),e.YNc(31,Tt,2,1,"td",9),e.BQk(),e.ynx(32,17),e.YNc(33,J,3,3,"th",5),e.YNc(34,Xe,3,3,"td",9),e.BQk(),e.ynx(35,18),e.YNc(36,le,3,3,"th",5),e.YNc(37,ne,2,1,"td",9),e.BQk(),e.YNc(38,ke,1,0,"tr",19),e.YNc(39,ot,3,14,"tr",20),e.qZA()()(),e.YNc(40,it,3,3,"perun-web-apps-alert",21),e.YNc(41,oe,3,3,"perun-web-apps-alert",21)),2&c&&(e.Q6J("hidden",0===a.dataSource.filteredData.length||0===a.resources.length),e.xp6(1),e.Q6J("dataLength",a.dataSource.filteredData.length)("tableId",a.tableId)("pageSizeOptions",a.pageSizeOptions),e.xp6(1),e.Q6J("dataSource",a.dataSource),e.xp6(1),e.Q6J("ngIf",e.VKq(14,X,e.Dn7(4,10,a.dataSource,a.selection.selected.length,a.canBeSelected))),e.xp6(35),e.Q6J("matHeaderRowDef",a.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",a.displayedColumns),e.xp6(1),e.Q6J("ngIf",0===a.dataSource.filteredData.length&&0!==a.resources.length),e.xp6(1),e.Q6J("ngIf",0===a.resources.length))},dependencies:[T.O5,E.oG,A.BZ,A.fO,A.as,A.w1,A.Dz,A.nj,A.ge,A.ev,A.XQ,A.Gk,S.rH,m.YE,m.nU,R.w,v.Hw,D.gM,F.l,z.YH,$.W,G.x,z.QG,q.X$,_e,ce.r,Te.I,b.G,H.r],styles:["table[_ngcontent-%COMP%]{width:100%!important}.mat-cell[_ngcontent-%COMP%]{padding:8px 8px 8px 0}.mat-column-select[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:50px!important}.mat-column-id[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:60px!important}.filter-input[_ngcontent-%COMP%]{width:300px!important}.disable-outline[_ngcontent-%COMP%]{outline:none!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:.25rem!important}"]}),s})()},52170:(Qe,he,u)=>{"use strict";u.d(he,{$x:()=>g,qG:()=>p});var e=u(94650),m=u(89383),A=u(42377);class w{constructor(E,S){this.value=S,this.displayName=E}}var p=(()=>{return(T=p||(p={}))[T.SOURCE=0]="SOURCE",T[T.DESTINATION=1]="DESTINATION",T[T.FEDERATION=2]="FEDERATION",p;var T})();let g=(()=>{class T{constructor(S){this.translateService=S,this.attributes=[],this.asGroup=!1,this.itemSelected=new e.vpe,this.items=[],this.nameFunction=R=>R.displayName,this.shortNameFunction=()=>null,this.searchFunction=R=>R.displayName}static getDefinition(S){const R=S.namespace.split(":");return null===R[4]?"null":R[4]}ngOnInit(){this.type===p.FEDERATION?(this.getFederationAttributes(),this.getFederationAttribute()):this.createSelectionItems(),this.sortAttributes(this.items)}createSelectionItems(){this.translateService.get("DIALOGS.APPLICATION_FORM_EDIT_ITEM.NO_SELECTED_ITEM").subscribe(S=>{const R=new w(S,"");this.items.push(R),this.item=R});for(const S of this.attributes){const R=new w(S.friendlyName+" ("+S.entity+" / "+T.getDefinition(S)+")",S.namespace+":"+S.friendlyName);R.value===this.selectedAttribute&&(this.item=R),("user"===S.entity.toLowerCase()||"member"===S.entity.toLowerCase()||"vo"===S.entity.toLowerCase()&&this.type===p.SOURCE||"group"===S.entity.toLowerCase()&&this.asGroup&&this.type===p.SOURCE)&&this.items.push(R)}}getFederationAttributes(){this.translateService.get("DIALOGS.APPLICATION_FORM_EDIT_ITEM.NO_SELECTED_ITEM").subscribe(S=>{this.items.push(new w(S,"")),this.translateService.get("DIALOGS.APPLICATION_FORM_EDIT_ITEM.CUSTOM_VALUE").subscribe(R=>{this.items.push(new w(R,"custom")),this.items.push(new w("Display name","displayName")),this.items.push(new w("Common name","cn")),this.items.push(new w("Mail","mail")),this.items.push(new w("Organization","o")),this.items.push(new w("Level of Assurance (LoA)","loa")),this.items.push(new w("First name","givenName")),this.items.push(new w("Surname","sn")),this.items.push(new w("EPPN","eppn")),this.items.push(new w("IdP Category","md_entityCategory")),this.items.push(new w("IdP Affiliation","affiliation")),this.items.push(new w("EduPersonScopedAffiliation","eduPersonScopedAffiliation")),this.items.push(new w("Forwarded Affiliation from Proxy","forwardedScopedAffiliation")),this.items.push(new w("schacHomeOrganization","schacHomeOrganization")),this.items.push(new w("Login","uid")),this.items.push(new w("Alternative login name","alternativeLoginName"))})})}getFederationAttribute(){for(const S of this.items)if(S.value===this.selectedAttribute)return void(this.item=S);this.item=this.items[1],this.item.value=this.selectedAttribute}sortAttributes(S){S.sort((R,v)=>""===R.value?-1:""===v.value?1:R.displayName.localeCompare(v.displayName))}}return T.\u0275fac=function(S){return new(S||T)(e.Y36(m.sK))},T.\u0275cmp=e.Xpm({type:T,selectors:[["perun-web-apps-selection-item-search-select"]],inputs:{attributes:"attributes",selectedAttribute:"selectedAttribute",type:"type",asGroup:"asGroup"},outputs:{itemSelected:"itemSelected"},decls:4,vars:14,consts:[[3,"entities","entity","searchFunction","mainTextFunction","secondaryTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(S,R){1&S&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(D){return R.itemSelected.emit(D)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&S&&e.Q6J("entities",R.items)("entity",R.item)("searchFunction",R.searchFunction)("mainTextFunction",R.nameFunction)("secondaryTextFunction",R.shortNameFunction)("selectPlaceholder",e.lcZ(1,8,"SHARED_LIB.PERUN.COMPONENTS.SELECTION_ITEM_SEARCH_SELECT.SELECT_ITEM"))("findPlaceholder",e.lcZ(2,10,"SHARED_LIB.PERUN.COMPONENTS.SELECTION_ITEM_SEARCH_SELECT.FIND_ITEM"))("noEntriesText",e.lcZ(3,12,"SHARED_LIB.PERUN.COMPONENTS.SELECTION_ITEM_SEARCH_SELECT.NO_ITEM_FOUND"))},dependencies:[A.i,m.X$]}),T})()},30540:(Qe,he,u)=>{"use strict";u.d(he,{J:()=>w});var e=u(94650),m=u(42377),A=u(89383);let w=(()=>{class p{constructor(){this.service=null,this.multiple=!1,this.disableAutoSelect=!1,this.theme="",this.serviceSelected=new e.vpe,this.nameFunction=T=>T.name,this.secondaryFunction=()=>"",this.searchFunction=T=>T.name}}return p.\u0275fac=function(T){return new(T||p)},p.\u0275cmp=e.Xpm({type:p,selectors:[["perun-web-apps-service-search-select"]],inputs:{service:"service",services:"services",multiple:"multiple",disableAutoSelect:"disableAutoSelect",theme:"theme"},outputs:{serviceSelected:"serviceSelected"},decls:4,vars:17,consts:[[3,"entity","entities","multiple","disableAutoSelect","searchFunction","mainTextFunction","secondaryTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","theme","entitySelected"]],template:function(T,E){1&T&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(R){return E.serviceSelected.emit(R)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&T&&e.Q6J("entity",E.service)("entities",E.services)("multiple",E.multiple)("disableAutoSelect",E.disableAutoSelect)("searchFunction",E.searchFunction)("mainTextFunction",E.nameFunction)("secondaryTextFunction",E.secondaryFunction)("selectPlaceholder",e.lcZ(1,11,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_SEARCH_SELECT.SELECT_SERVICE"))("findPlaceholder",e.lcZ(2,13,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_SEARCH_SELECT.FIND_SERVICE"))("noEntriesText",e.lcZ(3,15,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_SEARCH_SELECT.NO_SERVICE_FOUND"))("theme",E.theme)},dependencies:[m.i,A.X$]}),p})()},2541:(Qe,he,u)=>{"use strict";u.d(he,{m:()=>L});var e=u(69723),m=u(32105),A=u(21029),w=u(9244),p=u(94650),g=u(65412),T=u(36895),E=u(51572),S=u(98380),R=u(4859),v=u(37084),D=u(7434),F=u(89383),z=u(34447);function $(V,Q){1&V&&p._UZ(0,"mat-spinner",8)}function G(V,Q){1&V&&(p.TgZ(0,"perun-web-apps-alert",9),p._uU(1),p.ALo(2,"translate"),p.ALo(3,"customTranslate"),p.qZA()),2&V&&(p.xp6(1),p.Oqu(p.lcZ(2,1,p.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.DATA_QUOTAS.NO_QUOTAS"))))}function q(V,Q){if(1&V){const ae=p.EpF();p.TgZ(0,"div")(1,"p")(2,"strong"),p._uU(3),p.ALo(4,"translate"),p.ALo(5,"customTranslate"),p.qZA(),p._uU(6),p.qZA(),p.TgZ(7,"p",10),p._uU(8),p.ALo(9,"translate"),p.ALo(10,"customTranslate"),p.qZA(),p.TgZ(11,"button",11),p.NdJ("click",function(){p.CHM(ae);const ge=p.oxw().$implicit,Se=p.oxw(3).$implicit,Be=p.oxw();return p.KtG(Be.requestChangeQuota(Se,ge))}),p._uU(12),p.ALo(13,"translate"),p.ALo(14,"customTranslate"),p.qZA()()}if(2&V){const ae=p.oxw(5);p.xp6(3),p.Oqu(p.lcZ(4,4,p.lcZ(5,6,"SHARED_LIB.PERUN.COMPONENTS.DATA_QUOTAS.QUOTA"))),p.xp6(3),p.hij(" ",ae.quotasMarkup," "),p.xp6(2),p.hij(" ",p.lcZ(9,8,p.lcZ(10,10,"SHARED_LIB.PERUN.COMPONENTS.DATA_QUOTAS.QUOTA_INFO"))," "),p.xp6(4),p.hij(" ",p.lcZ(13,12,p.lcZ(14,14,"SHARED_LIB.PERUN.COMPONENTS.DATA_QUOTAS.CHANGE"))," ")}}function _e(V,Q){1&V&&(p.TgZ(0,"p"),p._uU(1),p.ALo(2,"translate"),p.ALo(3,"customTranslate"),p.qZA()),2&V&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,p.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.DATA_QUOTAS.NO_QUOTAS"))," "))}function ce(V,Q){if(1&V){const ae=p.EpF();p.TgZ(0,"mat-expansion-panel",3),p.NdJ("opened",function(){const Se=p.CHM(ae).$implicit,Be=p.oxw(4);return p.KtG(Be.getResAttributes(Se.id))}),p.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),p._uU(3),p.qZA()(),p.YNc(4,q,15,16,"div",7),p.YNc(5,_e,4,5,"p",7),p.qZA()}if(2&V){const ae=Q.$implicit,xe=p.oxw(4);p.xp6(3),p.hij(" ",ae.name," "),p.xp6(1),p.Q6J("ngIf",xe.defaultQuota),p.xp6(1),p.Q6J("ngIf",!xe.defaultQuota)}}function Te(V,Q){if(1&V&&(p.TgZ(0,"mat-accordion"),p.YNc(1,ce,6,3,"mat-expansion-panel",2),p.qZA()),2&V){const ae=p.oxw(3);p.xp6(1),p.Q6J("ngForOf",ae.resources)}}function b(V,Q){if(1&V&&(p.YNc(0,$,1,0,"mat-spinner",5),p.YNc(1,G,4,5,"perun-web-apps-alert",6),p.YNc(2,Te,2,1,"mat-accordion",7)),2&V){const ae=p.oxw(2);p.Q6J("ngIf",ae.loading),p.xp6(1),p.Q6J("ngIf",0===ae.resources.length&&!ae.loading),p.xp6(1),p.Q6J("ngIf",ae.resources.length&&!ae.loading)}}function H(V,Q){if(1&V){const ae=p.EpF();p.TgZ(0,"mat-expansion-panel",3),p.NdJ("opened",function(){const Se=p.CHM(ae).$implicit,Be=p.oxw();return p.KtG(Be.getMembersResources(Se))}),p.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),p._uU(3),p.qZA()(),p.YNc(4,b,3,3,"ng-template",4),p.qZA()}if(2&V){const ae=Q.$implicit;p.xp6(3),p.hij(" ",ae.name," ")}}let L=(()=>{class V{constructor(ae,xe,ge,Se,Be,pe,$e){this.store=ae,this.usersManagerService=xe,this.membersService=ge,this.resourcesManagerService=Se,this.attributesManagerService=Be,this.dialog=pe,this.entityStorageService=$e,this.vos=[],this.resources=[],this.quotasMarkup="",this.filteredVos=[]}ngOnInit(){this.usersManagerService.getVosWhereUserIsMember(this.user.id).subscribe(ae=>{this.vos=ae,this.filteredVos=ae})}getMembersResources(ae){this.loading=!0,this.resources=[],this.membersService.getMemberByUser(ae.id,this.user.id).subscribe(xe=>{this.resourcesManagerService.getAssignedRichResourcesWithMember(xe.id).subscribe(ge=>{let Se=ge.length;Se||(this.loading=!1),ge.forEach(Be=>{this.attributesManagerService.getResourceAttributes(Be.id).subscribe(pe=>{Se--,pe.find($e=>"defaultDataQuotas"===$e.friendlyName)&&this.resources.push(Be),this.loading=0!==Se})})})})}getResAttributes(ae){this.attributesManagerService.getResourceAttributes(ae).subscribe(xe=>{let ge=xe.find(Se=>"dataQuotas"===Se.friendlyName);if(ge?.value){const Se=Object.entries(ge.value).map(Be=>String(Be[1]));this.currentQuota=Se[0]}else this.currentQuota="";if(ge=xe.find(Se=>"defaultDataQuotas"===Se.friendlyName),ge?.value){const Se=Object.entries(ge.value).map(Be=>String(Be[1]));this.defaultQuota=Se[0]}else this.defaultQuota="";this.currentQuota||(this.currentQuota=this.defaultQuota),this.parseMarkup()})}requestChangeQuota(ae,xe){const ge=(0,w.kZ)();ge.width="400px",ge.data={vo:ae,resource:xe,user:this.user,currentQuota:this.quotasMarkup},this.dialog.open(A.h4,ge)}applyFilter(ae){this.filteredVos=this.vos.filter(xe=>xe.name.toLowerCase().includes(ae.toLowerCase()))}parseMarkup(){let ae="";ae+=this.currentQuota,ae+=` (default: ${this.defaultQuota})`,ae=ae.split(":").join(" : ").split("K").join(" KiB").split("M").join(" MiB").split("G").join(" GiB").split("T").join(" TiB").split("E").join(" EiB"),this.quotasMarkup=ae}}return V.\u0275fac=function(ae){return new(ae||V)(p.Y36(e.d6),p.Y36(m.Fv),p.Y36(m.uq),p.Y36(m.xk),p.Y36(m.H8),p.Y36(g.uw),p.Y36(e.fb))},V.\u0275cmp=p.Xpm({type:V,selectors:[["perun-web-apps-data-quotas"]],inputs:{user:"user"},decls:9,vars:11,consts:[[1,"page-title"],[3,"placeholder","filter"],[3,"opened",4,"ngFor","ngForOf"],[3,"opened"],["matExpansionPanelContent",""],["class","ml-auto mr-auto",4,"ngIf"],["alert_type","warn",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["alert_type","warn"],[1,"color-gray"],["mat-flat-button","","color","primary",3,"click"]],template:function(ae,xe){1&ae&&(p.TgZ(0,"h1",0),p._uU(1),p.ALo(2,"translate"),p.ALo(3,"customTranslate"),p.qZA(),p.TgZ(4,"perun-web-apps-immediate-filter",1),p.NdJ("filter",function(Se){return xe.applyFilter(Se)}),p.ALo(5,"translate"),p.ALo(6,"customTranslate"),p.qZA(),p.TgZ(7,"mat-accordion"),p.YNc(8,H,5,1,"mat-expansion-panel",2),p.qZA()),2&ae&&(p.xp6(1),p.hij(" ",p.lcZ(2,3,p.lcZ(3,5,"SHARED_LIB.PERUN.COMPONENTS.DATA_QUOTAS.TITLE")),"\n"),p.xp6(3),p.Q6J("placeholder",p.lcZ(5,7,p.lcZ(6,9,"SHARED_LIB.PERUN.COMPONENTS.DATA_QUOTAS.FILTER"))),p.xp6(4),p.Q6J("ngForOf",xe.filteredVos))},dependencies:[T.sg,T.O5,E.Ou,S.w,R.lW,v.pp,v.ib,v.yz,v.yK,v.HS,D.L,F.X$,z.a],styles:[".color-gray[_ngcontent-%COMP%]{color:gray}"]}),V})()},74006:(Qe,he,u)=>{"use strict";u.d(he,{E:()=>Te});var e=u(32105),m=u(69723),A=u(9244),w=u(94650),p=u(94364),g=u(89383),T=u(36895),E=u(56709),S=u(51572),R=u(98380),v=u(37084),D=u(7434),F=u(34447);function z(b,H){1&b&&w._UZ(0,"mat-spinner",8)}function $(b,H){1&b&&(w.TgZ(0,"perun-web-apps-alert",9),w._uU(1),w.ALo(2,"translate"),w.ALo(3,"customTranslate"),w.qZA()),2&b&&(w.xp6(1),w.Oqu(w.lcZ(2,1,w.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.OPT_OUT_MAILING_LISTS.NO_MAILING_LISTS_ALERT"))))}function G(b,H){if(1&b){const L=w.EpF();w.TgZ(0,"mat-expansion-panel",3),w.NdJ("closed",function(){w.CHM(L);const Q=w.oxw(4);return w.KtG(Q.deselectResource())})("afterExpand",function(){const ae=w.CHM(L).$implicit,xe=w.oxw(4);return w.KtG(xe.changeSelectedResource(ae))}),w.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),w._uU(3),w.qZA()(),w.TgZ(4,"div",10)(5,"mat-checkbox",11),w.NdJ("change",function(){w.CHM(L);const Q=w.oxw(4);return w.KtG(Q.setOptOut())}),w.qZA(),w.TgZ(6,"p"),w._uU(7),w.ALo(8,"translate"),w.ALo(9,"customTranslate"),w.qZA()()()}if(2&b){const L=H.$implicit,V=w.oxw(4);w.Q6J("expanded",L.name===V.selectedResource),w.xp6(3),w.hij(" ",L.name," "),w.xp6(2),w.Q6J("checked",V.optOutAttribute&&null!==V.optOutAttribute.value),w.xp6(2),w.hij(" ",w.lcZ(8,4,w.lcZ(9,6,"SHARED_LIB.PERUN.COMPONENTS.OPT_OUT_MAILING_LISTS.OPT_OUT_LABEL"))," ")}}function q(b,H){if(1&b&&(w.TgZ(0,"mat-accordion"),w.YNc(1,G,10,8,"mat-expansion-panel",2),w.qZA()),2&b){const L=w.oxw(3);w.xp6(1),w.Q6J("ngForOf",L.resources)}}function _e(b,H){if(1&b&&(w.YNc(0,z,1,0,"mat-spinner",5),w.YNc(1,$,4,5,"perun-web-apps-alert",6),w.YNc(2,q,2,1,"mat-accordion",7)),2&b){const L=w.oxw(2);w.Q6J("ngIf",L.loading),w.xp6(1),w.Q6J("ngIf",0===L.resources.length&&!L.loading),w.xp6(1),w.Q6J("ngIf",L.resources.length&&!L.loading)}}function ce(b,H){if(1&b){const L=w.EpF();w.TgZ(0,"mat-expansion-panel",3),w.NdJ("closed",function(){w.CHM(L);const Q=w.oxw();return w.KtG(Q.deselectVo())})("afterExpand",function(){const ae=w.CHM(L).$implicit,xe=w.oxw();return w.KtG(xe.changeSelectedVo(ae))}),w.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),w._uU(3),w.qZA()(),w.YNc(4,_e,3,3,"ng-template",4),w.qZA()}if(2&b){const L=H.$implicit,V=w.oxw();w.Q6J("expanded",L.shortName===V.selectedVo),w.xp6(3),w.hij(" ",L.name," ")}}let Te=(()=>{class b{constructor(L,V,Q,ae,xe,ge,Se,Be,pe){this.store=L,this.usersManagerService=V,this.membersService=Q,this.resourcesManagerService=ae,this.attributesManagerService=xe,this.route=ge,this.router=Se,this.notificator=Be,this.translate=pe,this.vos=[],this.resources=[],this.optOuts=[],this.filteredVos=[],this.loading=!0,this.selectedVo=null,this.selectedResource=null}ngOnDestroy(){this.isService||this.router.navigate([],{relativeTo:this.route,queryParams:{vo:null,resource:null},replaceUrl:!0,queryParamsHandling:"merge"})}ngOnInit(){this.route.queryParams.subscribe(L=>{this.selectedVo=String(L.vo),this.selectedResource=String(L.resource),this.changeOptOut=String(L.action),this.usersManagerService.getVosWhereUserIsMember(this.user.id).subscribe(V=>{if(this.vos=V.sort(A.aC),this.filteredVos=V,void 0!==this.selectedResource){const Q=this.vos.find(ae=>ae.shortName===this.selectedVo);Q&&this.getMailingLists(Q)}else if(void 0!==this.selectedVo){const Q=this.vos.find(ae=>ae.shortName===this.selectedVo);Q&&(this.getMailingLists(Q),this.changeSelectedVo(Q))}})}).unsubscribe()}changeSelectedResource(L){this.selectedResource!==L.name&&this.getOptOutAttribute(L),this.isService||(this.changeOptOut&&("subscribe"===this.changeOptOut?this.subscribe():"unsubscribe"===this.changeOptOut&&this.unsubscribe(),this.changeOptOut=null),this.router.navigate([],{relativeTo:this.route,queryParams:{vo:this.selectedVo,resource:this.selectedResource,action:null},queryParamsHandling:"merge"}))}changeSelectedVo(L){this.selectedVo!==L.shortName&&(this.getMailingLists(L),this.selectedResource=null),this.isService||this.router.navigate([],{relativeTo:this.route,queryParams:{vo:this.selectedVo,resource:this.selectedResource},queryParamsHandling:"merge"})}getMailingLists(L){this.selectedVo=L.shortName,this.loading=!0,this.resources=[],this.membersService.getMemberByUser(L.id,this.user.id).subscribe(V=>{this.resourcesManagerService.getMailingServiceRichResourcesWithMember(V.id).subscribe(Q=>{let ae=Q.length;ae||(this.loading=!1),Q.forEach(xe=>{this.attributesManagerService.getRequiredAttributesMemberResource(V.id,xe.id).subscribe(ge=>{this.attributesManagerService.getResourceAttributeByName(xe.id,"urn:perun:resource:attribute-def:def:disableMailingListOptOut").subscribe(Se=>{ae--;const Be=ge.find(pe=>"optOutMailingList"===pe.friendlyName);Be&&"true"!==Se?.value&&(this.optOuts.push({resource:xe.id,member:V.id,attribute:Be}),this.resources.push(xe),this.selectedResource===xe.name&&(this.getOptOutAttribute(xe),this.changeSelectedResource(xe))),this.loading=0!==ae})})})}),this.resources.sort(A.aC)})}getOptOutAttribute(L){this.selectedResource=L.name,this.index=this.resources.indexOf(L),this.optOutAttribute=this.optOuts[this.index].attribute}unsubscribe(){const L=String(this.optOuts[this.index].attribute.value);this.optOuts[this.index].attribute.value="true",this.attributesManagerService.setMemberResourceAttribute(this.optOuts[this.index]).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.OPT_OUT_MAILING_LISTS.UNSUBSCRIBED")+this.selectedResource+".")},()=>{this.optOuts[this.index].attribute.value=L})}subscribe(){const L=String(this.optOuts[this.index].attribute.value);this.optOuts[this.index].attribute.value=null,this.attributesManagerService.setMemberResourceAttribute(this.optOuts[this.index]).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.OPT_OUT_MAILING_LISTS.SUBSCRIBED")+this.selectedResource+".")},()=>{this.optOuts[this.index].attribute.value=L})}setOptOut(){this.optOutAttribute.value?this.subscribe():this.unsubscribe()}applyFilter(L){this.filteredVos=this.vos.filter(V=>V.name.toLowerCase().includes(L.toLowerCase()))}deselectVo(){this.loading=!0,this.selectedVo=null,this.selectedResource=null,this.isService||this.router.navigate([],{relativeTo:this.route,queryParams:{vo:this.selectedVo,resource:this.selectedResource},queryParamsHandling:"merge"})}deselectResource(){this.selectedResource=null,this.isService||this.router.navigate([],{relativeTo:this.route,queryParams:{vo:this.selectedVo,resource:this.selectedResource},queryParamsHandling:"merge"})}}return b.\u0275fac=function(L){return new(L||b)(w.Y36(m.d6),w.Y36(e.Fv),w.Y36(e.uq),w.Y36(e.xk),w.Y36(e.H8),w.Y36(p.gz),w.Y36(p.F0),w.Y36(m.V6),w.Y36(g.sK))},b.\u0275cmp=w.Xpm({type:b,selectors:[["perun-web-apps-mailing-lists"]],inputs:{user:"user",isService:"isService"},decls:9,vars:11,consts:[[1,"page-title"],[3,"placeholder","filter"],[3,"expanded","closed","afterExpand",4,"ngFor","ngForOf"],[3,"expanded","closed","afterExpand"],["matExpansionPanelContent",""],["class","ml-auto mr-auto",4,"ngIf"],["alert_type","warn",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["alert_type","warn"],[1,"row"],[1,"ml-3","mr-2",3,"checked","change"]],template:function(L,V){1&L&&(w.TgZ(0,"h1",0),w._uU(1),w.ALo(2,"translate"),w.ALo(3,"customTranslate"),w.qZA(),w.TgZ(4,"perun-web-apps-immediate-filter",1),w.NdJ("filter",function(ae){return V.applyFilter(ae)}),w.ALo(5,"translate"),w.ALo(6,"customTranslate"),w.qZA(),w.TgZ(7,"mat-accordion"),w.YNc(8,ce,5,2,"mat-expansion-panel",2),w.qZA()),2&L&&(w.xp6(1),w.hij(" ",w.lcZ(2,3,w.lcZ(3,5,"SHARED_LIB.PERUN.COMPONENTS.OPT_OUT_MAILING_LISTS.TITLE")),"\n"),w.xp6(3),w.Q6J("placeholder",w.lcZ(5,7,w.lcZ(6,9,"SHARED_LIB.PERUN.COMPONENTS.OPT_OUT_MAILING_LISTS.FILTER"))),w.xp6(4),w.Q6J("ngForOf",V.filteredVos))},dependencies:[T.sg,T.O5,E.oG,S.Ou,R.w,v.pp,v.ib,v.yz,v.yK,v.HS,D.L,g.X$,F.a]}),b})()},80275:(Qe,he,u)=>{"use strict";u.d(he,{j:()=>B});var e=u(95017),m=u(96308),A=u(30671),w=u(69723),p=u(9244),g=u(94650),T=u(94364),E=u(36895),S=u(56709),R=u(98380),v=u(10266),D=u(18750),F=u(94391),z=u(89383);let $=(()=>{class N{transform(Y){return Y.find(De=>"mail"===De.friendlyName)?.value??""}}return N.\u0275fac=function(Y){return new(Y||N)},N.\u0275pipe=g.Yjl({name:"getMailFromAttributes",type:N,pure:!0}),N})();var G=u(34447),q=u(8231);function _e(N,Me){1&N&&g._UZ(0,"th",18)}const ce=function(N){return{name:N}};function Te(N,Me){if(1&N){const Y=g.EpF();g.TgZ(0,"td",19)(1,"span",20),g.ALo(2,"translate"),g.ALo(3,"customTranslate"),g.TgZ(4,"mat-checkbox",21),g.NdJ("change",function(De){const Pe=g.CHM(Y).$implicit,nt=g.oxw();return g.KtG(De?nt.selection.toggle(Pe):null)})("click",function(De){return De.stopPropagation()}),g.ALo(5,"translate"),g.ALo(6,"checkboxLabel"),g.qZA()()()}if(2&N){const Y=Me.$implicit,be=g.oxw();g.xp6(1),g.s9C("matTooltip",g.lcZ(2,6,g.lcZ(3,8,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.CANNOT_BE_DELETED_TOOLTIP"))),g.Q6J("matTooltipPosition","above")("matTooltipDisabled",!Y.userExtSource.persistent),g.xp6(3),g.Q6J("aria-label",g.xi3(5,10,g.lcZ(6,13,be.selection.isSelected(Y)),g.VKq(15,ce,Y.userExtSource.extSource.name)))("checked",be.selection.isSelected(Y))("disabled",Y.userExtSource.persistent)}}function b(N,Me){1&N&&(g.TgZ(0,"th",22),g._uU(1),g.ALo(2,"translate"),g.ALo(3,"customTranslate"),g.qZA()),2&N&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,g.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.ID"))," "))}function H(N,Me){if(1&N&&(g.TgZ(0,"td",23),g._uU(1),g.qZA()),2&N){const Y=Me.$implicit;g.xp6(1),g.hij(" ",Y.userExtSource.id," ")}}function L(N,Me){1&N&&(g.TgZ(0,"th",24),g._uU(1),g.ALo(2,"translate"),g.ALo(3,"customTranslate"),g.qZA()),2&N&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,g.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.MAIL"))," "))}function V(N,Me){if(1&N&&(g.TgZ(0,"td",23),g._uU(1),g.ALo(2,"getMailFromAttributes"),g.qZA()),2&N){const Y=Me.$implicit;g.xp6(1),g.hij(" ",g.lcZ(2,1,Y.attributes)," ")}}function Q(N,Me){if(1&N&&(g.TgZ(0,"th",22),g._uU(1),g.ALo(2,"translate"),g.ALo(3,"customTranslate"),g.qZA()),2&N){const Y=g.oxw();g.xp6(1),g.hij(" ",g.lcZ(2,1,g.lcZ(3,3,Y.extSourceNameHeader?Y.extSourceNameHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.EXT_SOURCE_NAME"))," ")}}function ae(N,Me){if(1&N&&(g.TgZ(0,"td",23),g._uU(1),g.qZA()),2&N){const Y=Me.$implicit;g.xp6(1),g.hij(" ",Y.userExtSource.extSource.name," ")}}function xe(N,Me){if(1&N&&(g.TgZ(0,"th",22),g._uU(1),g.ALo(2,"translate"),g.ALo(3,"customTranslate"),g.qZA()),2&N){const Y=g.oxw();g.xp6(1),g.hij(" ",g.lcZ(2,1,g.lcZ(3,3,Y.loginHeader?Y.loginHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LOGIN"))," ")}}function ge(N,Me){if(1&N&&(g.TgZ(0,"td",23),g._uU(1),g.qZA()),2&N){const Y=Me.$implicit;g.xp6(1),g.hij(" ",Y.userExtSource.login," ")}}function Se(N,Me){1&N&&(g.TgZ(0,"th",22),g._uU(1),g.ALo(2,"translate"),g.ALo(3,"customTranslate"),g.qZA()),2&N&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,g.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LAST_ACCESS"))," "))}function Be(N,Me){if(1&N&&(g.TgZ(0,"td",25),g._uU(1),g.ALo(2,"date"),g.qZA()),2&N){const Y=Me.$implicit;g.xp6(1),g.hij(" ",g.xi3(2,1,Y.userExtSource.lastAccess,"d.M.y H:mm:ss")," ")}}function pe(N,Me){1&N&&g._UZ(0,"tr",26)}const $e=function(N,Me){return["/admin","users",N,"identities",Me]};function Ce(N,Me){if(1&N&&g._UZ(0,"tr",27),2&N){const Y=Me.$implicit,be=g.oxw();g.ekj("cursor-pointer",!be.disableRouting)("disable-outline",be.disableRouting),g.Q6J("perunWebAppsMiddleClickRouterLink",be.disableRouting?null:g.WLB(6,$e,be.userId.toString(),Y.userExtSource.id.toString()))("routerLink",be.disableRouting?null:g.WLB(9,$e,be.userId,Y.userExtSource.id))}}function de(N,Me){1&N&&(g.TgZ(0,"perun-web-apps-alert",28),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&N&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function re(N,Me){1&N&&(g.TgZ(0,"perun-web-apps-alert",28),g._uU(1),g.ALo(2,"translate"),g.ALo(3,"customTranslate"),g.qZA()),2&N&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,g.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.NO_IDENTITIES")),"\n"))}let B=(()=>{class N{constructor(Y,be){this.route=Y,this.authResolver=be,this.selection=new e.Ov,this.filterValue="",this.displayedColumns=["select","id","mail","extSourceName","login","lastAccess"],this.pageSizeOptions=p.f7}set matSort(Y){this.sort=Y,this.setDataSource()}static getDataForColumn(Y,be){switch(be){case"id":return Y.userExtSource.id.toString();case"mail":{const De=Y.attributes.find(We=>"mail"===We.friendlyName);return De?De.value:"N/A"}case"extSourceName":return Y.userExtSource.extSource.name;case"login":return Y.userExtSource.login;case"lastAccess":return Y.userExtSource.lastAccess.split(".")[0];default:return Y[be]}}ngOnInit(){this.disableRouting||this.route.parent.params.subscribe(Y=>{this.userId=Number(Y.userId)}),this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(Y=>"id"!==Y)),this.dataSource=new A.by(this.userExtSources),this.setDataSource()}exportAllData(Y){(0,p.O6)((0,p.Xn)(this.dataSource.filteredData,this.displayedColumns,N.getDataForColumn),Y)}exportDisplayedData(Y){const be=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,De=be+this.dataSource.paginator.pageSize;(0,p.O6)((0,p.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(be,De),this.displayedColumns,N.getDataForColumn),Y)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(Y,be)=>(0,p.Sd)(Y,be,this.displayedColumns,N.getDataForColumn),this.dataSource.sortData=(Y,be)=>(0,p.pR)(Y,be,N.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}}return N.\u0275fac=function(Y){return new(Y||N)(g.Y36(T.gz),g.Y36(w.x4))},N.\u0275cmp=g.Xpm({type:N,selectors:[["perun-web-apps-user-ext-sources-list"]],viewQuery:function(Y,be){if(1&Y&&(g.Gf(p.l9,7),g.Gf(m.YE,7)),2&Y){let De;g.iGM(De=g.CRH())&&(be.child=De.first),g.iGM(De=g.CRH())&&(be.matSort=De.first)}},inputs:{userExtSources:"userExtSources",selection:"selection",filterValue:"filterValue",displayedColumns:"displayedColumns",tableId:"tableId",extSourceNameHeader:"extSourceNameHeader",loginHeader:"loginHeader",disableRouting:"disableRouting"},features:[g.TTD],decls:25,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","lastAccess","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","truncate","mat-cell","",4,"matCellDef"],["matColumnDef","mail"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","extSourceName"],["matColumnDef","login"],["matColumnDef","lastAccess",1,"pl-3"],["mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["mat-cell","",1,"static-column-size","align-checkbox"],[3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"truncate"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(Y,be){1&Y&&(g.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),g.NdJ("exportDisplayedData",function(We){return be.exportDisplayedData(We)})("exportAllData",function(We){return be.exportAllData(We)}),g.TgZ(2,"table",2),g.ynx(3,3),g.YNc(4,_e,1,0,"th",4),g.YNc(5,Te,7,17,"td",5),g.BQk(),g.ynx(6,6),g.YNc(7,b,4,5,"th",7),g.YNc(8,H,2,1,"td",8),g.BQk(),g.ynx(9,9),g.YNc(10,L,4,5,"th",10),g.YNc(11,V,3,3,"td",8),g.BQk(),g.ynx(12,11),g.YNc(13,Q,4,5,"th",7),g.YNc(14,ae,2,1,"td",8),g.BQk(),g.ynx(15,12),g.YNc(16,xe,4,5,"th",7),g.YNc(17,ge,2,1,"td",8),g.BQk(),g.ynx(18,13),g.YNc(19,Se,4,5,"th",7),g.YNc(20,Be,3,4,"td",14),g.BQk(),g.YNc(21,pe,1,0,"tr",15),g.YNc(22,Ce,1,12,"tr",16),g.qZA()()(),g.YNc(23,de,3,3,"perun-web-apps-alert",17),g.YNc(24,re,4,5,"perun-web-apps-alert",17)),2&Y&&(g.Q6J("hidden",0===be.userExtSources.length||0===be.dataSource.filteredData.length),g.xp6(1),g.Q6J("tableId",be.tableId)("dataLength",be.dataSource.filteredData.length)("pageSizeOptions",be.pageSizeOptions),g.xp6(1),g.Q6J("dataSource",be.dataSource),g.xp6(19),g.Q6J("matHeaderRowDef",be.displayedColumns),g.xp6(1),g.Q6J("matRowDefColumns",be.displayedColumns),g.xp6(1),g.Q6J("ngIf",0===be.dataSource.filteredData.length&&0!==be.userExtSources.length),g.xp6(1),g.Q6J("ngIf",0===be.userExtSources.length))},dependencies:[E.O5,S.oG,A.BZ,A.fO,A.as,A.w1,A.Dz,A.nj,A.ge,A.ev,A.XQ,A.Gk,T.rH,m.YE,m.nU,R.w,v.gM,D.l,F.YH,F.QG,E.uU,z.X$,$,G.a,q.G],styles:[".static-column-size[_ngcontent-%COMP%]{width:80px!important}.truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;max-width:10rem}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:.25rem!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.disable-outline[_ngcontent-%COMP%]{outline:none!important}"]}),N})()},74250:(Qe,he,u)=>{"use strict";u.d(he,{S:()=>p});var e=u(94650),m=u(9244),A=u(42377),w=u(89383);let p=(()=>{class g{constructor(){this.disableAutoSelect=!1,this.userSelected=new e.vpe,this.userFullNameFunction=m.bD}ngOnInit(){this.users=this.users.sort(m.fx)}}return g.\u0275fac=function(E){return new(E||g)},g.\u0275cmp=e.Xpm({type:g,selectors:[["perun-web-apps-user-search-select"]],inputs:{users:"users",disableAutoSelect:"disableAutoSelect"},outputs:{userSelected:"userSelected"},decls:4,vars:13,consts:[[3,"entities","disableAutoSelect","searchFunction","mainTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(E,S){1&E&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(v){return S.userSelected.emit(v)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&E&&e.Q6J("entities",S.users)("disableAutoSelect",S.disableAutoSelect)("searchFunction",S.userFullNameFunction)("mainTextFunction",S.userFullNameFunction)("selectPlaceholder",e.lcZ(1,7,"SHARED_LIB.PERUN.COMPONENTS.USER_SEARCH_SELECT.SELECT_USER"))("findPlaceholder",e.lcZ(2,9,"SHARED_LIB.PERUN.COMPONENTS.USER_SEARCH_SELECT.FIND_USER"))("noEntriesText",e.lcZ(3,11,"SHARED_LIB.PERUN.COMPONENTS.USER_SEARCH_SELECT.NO_USER_FOUND"))},dependencies:[A.i,w.X$]}),g})()},11447:(Qe,he,u)=>{"use strict";u.d(he,{M:()=>t});var e=u(32105),m=u(95017),A=u(9244),w=u(96308),p=u(69723),g=u(56451),T=u(18505),E=u(21029),S=u(19516),R=u(94650),v=u(10036),D=u(65412),F=u(89383),z=u(36895),$=u(56709),G=u(30671),q=u(51572),_e=u(98380),ce=u(97392),Te=u(10266),b=u(18750),H=u(94391),L=u(34447);function V(n,o){1&n&&(R.TgZ(0,"span")(1,"mat-icon",1),R._uU(2,"priority_high"),R.qZA(),R.TgZ(3,"span"),R._uU(4),R.ALo(5,"translate"),R.ALo(6,"customTranslate"),R.qZA()()),2&n&&(R.xp6(4),R.hij(" ",R.lcZ(5,1,R.lcZ(6,3,"CONSENTS.STATUS_UNSIGNED")),""))}function Q(n,o){1&n&&(R.TgZ(0,"span")(1,"mat-icon",1),R._uU(2,"close"),R.qZA(),R.TgZ(3,"span"),R._uU(4),R.ALo(5,"translate"),R.ALo(6,"customTranslate"),R.qZA()()),2&n&&(R.xp6(4),R.hij(" ",R.lcZ(5,1,R.lcZ(6,3,"CONSENTS.STATUS_REVOKED")),""))}function ae(n,o){1&n&&(R.TgZ(0,"span")(1,"mat-icon",2),R._uU(2,"check"),R.qZA(),R.TgZ(3,"span"),R._uU(4),R.ALo(5,"translate"),R.ALo(6,"customTranslate"),R.qZA()()),2&n&&(R.xp6(4),R.hij(" ",R.lcZ(5,1,R.lcZ(6,3,"CONSENTS.STATUS_GRANTED")),""))}let xe=(()=>{class n{}return n.\u0275fac=function(l){return new(l||n)},n.\u0275cmp=R.Xpm({type:n,selectors:[["perun-web-apps-consent-status"]],inputs:{consentStatus:"consentStatus"},decls:3,vars:3,consts:[[4,"ngIf"],["color","warn"],["color","accent"]],template:function(l,d){1&l&&(R.YNc(0,V,7,5,"span",0),R.YNc(1,Q,7,5,"span",0),R.YNc(2,ae,7,5,"span",0)),2&l&&(R.Q6J("ngIf","UNSIGNED"===d.consentStatus),R.xp6(1),R.Q6J("ngIf","REVOKED"===d.consentStatus),R.xp6(1),R.Q6J("ngIf","GRANTED"===d.consentStatus))},dependencies:[z.O5,ce.Hw,F.X$,L.a],styles:["mat-icon[_ngcontent-%COMP%]{vertical-align:bottom}"]}),n})();var ge=u(31359),Se=u(16119),Be=u(7598),pe=u(9954),$e=u(9185),Ce=u(8231),de=u(14849),re=u(10293);function B(n,o){1&n&&(R.TgZ(0,"div",19),R._UZ(1,"mat-spinner",20),R.qZA())}function N(n,o){if(1&n){const l=R.EpF();R.TgZ(0,"mat-checkbox",26),R.NdJ("change",function(y){R.CHM(l);const k=R.oxw(3);return R.KtG(y?k.masterToggle():null)}),R.ALo(1,"translate"),R.ALo(2,"masterCheckboxLabel"),R.qZA()}if(2&n){const l=R.oxw(2).ngIf,d=R.oxw();R.Q6J("aria-label",R.lcZ(1,3,R.lcZ(2,5,l.all)))("checked",d.selection.hasValue()&&l.all)("indeterminate",d.selection.hasValue()&&!l.all)}}function Me(n,o){if(1&n&&(R.TgZ(0,"th",24),R.YNc(1,N,3,7,"mat-checkbox",25),R.qZA()),2&n){const l=R.oxw(2);R.xp6(1),R.Q6J("ngIf",l.selection.isMultipleSelection())}}const Y=function(n){return{name:n}};function be(n,o){if(1&n){const l=R.EpF();R.TgZ(0,"td",27)(1,"mat-checkbox",28),R.NdJ("change",function(y){const Ie=R.CHM(l).$implicit,tt=R.oxw(2);return R.KtG(y?tt.selection.toggle(Ie):null)})("click",function(y){return y.stopPropagation()}),R.ALo(2,"translate"),R.ALo(3,"checkboxLabel"),R.ALo(4,"userFullName"),R.qZA()()}if(2&n){const l=o.$implicit,d=R.oxw(2);R.xp6(1),R.Q6J("aria-label",R.xi3(2,2,R.lcZ(3,5,d.selection.isSelected(l)),R.VKq(9,Y,R.lcZ(4,7,l))))("checked",d.selection.isSelected(l))}}function De(n,o){1&n&&(R.ynx(0,21),R.YNc(1,Me,2,1,"th",22),R.YNc(2,be,5,11,"td",23),R.BQk())}function We(n,o){1&n&&R._UZ(0,"th",29)}function Pe(n,o){1&n&&(R.TgZ(0,"mat-icon",33),R.ALo(1,"translate"),R._uU(2," account_circle "),R.qZA()),2&n&&R.s9C("matTooltip",R.lcZ(1,1,"MANAGERS_LIST.PERSON"))}function nt(n,o){if(1&n&&(R._UZ(0,"mat-icon",34),R.ALo(1,"translate")),2&n){const l=R.oxw(2);R.s9C("matTooltip",R.lcZ(1,2,"MANAGERS_LIST.SERVICE")),R.Q6J("svgIcon",l.svgIcon)}}function Ye(n,o){if(1&n&&(R.TgZ(0,"td",30),R.YNc(1,Pe,3,3,"mat-icon",31),R.YNc(2,nt,2,4,"mat-icon",32),R.qZA()),2&n){const l=o.$implicit;R.xp6(1),R.Q6J("ngIf",!l.serviceUser),R.xp6(1),R.Q6J("ngIf",l.serviceUser)}}function Tt(n,o){1&n&&(R.TgZ(0,"th",35),R._uU(1),R.ALo(2,"translate"),R.qZA()),2&n&&(R.xp6(1),R.hij(" ",R.lcZ(2,1,"MANAGERS_LIST.ID")," "))}function J(n,o){if(1&n&&(R.TgZ(0,"td",30),R._uU(1),R.qZA()),2&n){const l=o.$implicit;R.xp6(1),R.hij(" ",l.id," ")}}function Xe(n,o){1&n&&(R.TgZ(0,"th",35),R._uU(1),R.ALo(2,"translate"),R.qZA()),2&n&&(R.xp6(1),R.hij(" ",R.lcZ(2,1,"MANAGERS_LIST.NAME")," "))}function le(n,o){if(1&n&&(R.TgZ(0,"td",36),R.ALo(1,"lowercase"),R._uU(2),R.ALo(3,"userFullName"),R.qZA()),2&n){const l=o.$implicit;R.Q2q("data-cy","",R.lcZ(1,2,l.firstName),"-td"),R.xp6(2),R.hij(" ",R.lcZ(3,4,l)," ")}}function ne(n,o){1&n&&(R.TgZ(0,"th",29),R._uU(1),R.ALo(2,"translate"),R.qZA()),2&n&&(R.xp6(1),R.Oqu(R.lcZ(2,1,"MANAGERS_LIST.ORGANIZATION")))}function ke(n,o){if(1&n&&(R.TgZ(0,"td",36),R._uU(1),R.ALo(2,"userVo"),R.qZA()),2&n){const l=o.$implicit;R.xp6(1),R.Oqu(R.lcZ(2,1,l))}}function Ee(n,o){1&n&&(R.TgZ(0,"th",29),R._uU(1),R.ALo(2,"translate"),R.qZA()),2&n&&(R.xp6(1),R.Oqu(R.lcZ(2,1,"MANAGERS_LIST.EMAIL")))}function ot(n,o){if(1&n&&(R.TgZ(0,"td",36),R._uU(1),R.ALo(2,"userEmail"),R.qZA()),2&n){const l=o.$implicit;R.xp6(1),R.Oqu(R.lcZ(2,1,l))}}function it(n,o){1&n&&(R.TgZ(0,"th",29),R._uU(1),R.ALo(2,"translate"),R.qZA()),2&n&&(R.xp6(1),R.Oqu(R.lcZ(2,1,"MANAGERS_LIST.LOGINS")))}function oe(n,o){if(1&n&&(R.TgZ(0,"td",36),R._uU(1),R.ALo(2,"userLogins"),R.qZA()),2&n){const l=o.$implicit;R.xp6(1),R.Oqu(R.lcZ(2,1,l))}}function X(n,o){1&n&&(R.TgZ(0,"th",29),R._uU(1),R.ALo(2,"translate"),R.qZA()),2&n&&(R.xp6(1),R.hij(" ",R.lcZ(2,1,"CONSENTS.STATUS")," "))}function r(n,o){if(1&n&&(R.TgZ(0,"td",36),R._UZ(1,"perun-web-apps-consent-status",37),R.ALo(2,"consentStatusIcon"),R.qZA()),2&n){const l=o.$implicit,d=R.oxw();R.xp6(1),R.Q6J("consentStatus",R.xi3(2,1,l,d.consents))}}function s(n,o){1&n&&R._UZ(0,"tr",38)}const _=function(n){return["/admin/users",n]};function c(n,o){if(1&n&&R._UZ(0,"tr",39),2&n){const l=o.$implicit,d=R.oxw();R.ekj("cursor-pointer",!d.disableRouting),R.Q6J("perunWebAppsForceRouterLink",d.disableRouting?null:R.VKq(4,_,l.id))("perunWebAppsMiddleClickRouterLink",d.disableRouting?null:R.VKq(6,_,l.id))}}function a(n,o){1&n&&(R.TgZ(0,"perun-web-apps-alert",40),R._uU(1),R.ALo(2,"translate"),R.qZA()),2&n&&(R.Q6J("alert_type","warn"),R.xp6(1),R.hij(" ",R.lcZ(2,2,"SHARED_LIB.UI.ALERTS.NO_USERS"),"\n"))}const i=function(n){return{all:n}};let t=(()=>{class n{constructor(l,d,y,k,Ie,tt,ct,Ue){this.authResolver=l,this.consentService=d,this.tableCheckbox=y,this.tableConfigService=k,this.dynamicPaginatingService=Ie,this.dialog=tt,this.consentPipe=ct,this.translate=Ue,this.selection=new m.Ov(!0,[]),this.displayedColumns=["select","user","id","name","email","logins","organization"],this.disableRouting=!1,this.searchString="",this.attrNames=[],this.includeConsents=!1,this.svgIcon="perun-service-identity-black",this.pageSizeOptions=A.f7}static getExportDataForColumn(l,d){switch(d){case"id":return l.id.toString();case"user":return l.serviceUser?"service-user":"user";case"name":return l?(0,A.bD)(l):"";case"organization":return(0,A.OV)(l);case"email":return(0,A.kN)(l);case"logins":return(0,A.lt)(l);case"consentStatus":return l.consent;default:return""}}ngAfterViewInit(){this.sort.sortChange.subscribe(()=>this.child.paginator.pageIndex=0),(0,g.T)(this.sort.sortChange,this.child.paginator.page).pipe((0,T.b)(()=>this.loadUsersPage())).subscribe()}ngOnInit(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(l=>"id"!==l)),this.includeConsents&&this.displayedColumns.push("consentStatus"),this.dataSource=new p.Hy(this.dynamicPaginatingService,this.authResolver),this.loadConsents(),this.dataSource.loadUsers(this.attrNames,this.tableConfigService.getTablePageSize(this.tableId),0,"ASCENDING","NAME",this.searchString,this.withoutVo,this.facilityId,this.voId,this.resourceId,this.serviceId,this.onlyAllowed,this.consentStatuses)}ngOnChanges(){this.dataSource&&(this.child.paginator.pageIndex=0,this.loadUsersPage())}masterToggle(){this.isAllSelected()?this.selection.clear():this.dataSource.getData().forEach(l=>this.selection.select(l))}isAllSelected(){return this.selection.selected.length===this.dataSource.getData().length}loadUsersPage(){this.dataSource.loadUsers(this.attrNames,this.child.paginator.pageSize,this.child.paginator.pageIndex,"asc"===this.sort.direction?"ASCENDING":"DESCENDING","name"===this.sort.active?"NAME":"ID",this.searchString,this.withoutVo,this.facilityId,this.voId,this.resourceId,this.serviceId,this.onlyAllowed,this.consentStatuses)}loadConsents(){this.includeConsents&&this.consentService.getConsentHubByFacility(this.facilityId).subscribe(l=>this.consentService.getConsentsForConsentHub(l.id).subscribe(d=>this.consents=d))}exportDisplayedData(l){(0,A.O6)((0,A.Xn)(this.getConsentsForUsers(this.dataSource.getData()),this.displayedColumns,n.getExportDataForColumn),l)}exportAllData(l){const d="asc"===this.sort.direction?"ASCENDING":"DESCENDING",y="name"===this.sort.active?"NAME":"ID",k=(0,A.kZ)();k.width="300px";const Ie=this.dialog.open(E.QQ,k);this.dataSource.getAllUsers(this.attrNames,d,this.child.paginator.length,y,this.searchString,this.withoutVo,this.facilityId,this.voId,this.resourceId,this.serviceId,this.onlyAllowed,this.consentStatuses).subscribe(tt=>{Ie.close(),(0,A.O6)((0,A.Xn)(this.getConsentsForUsers(tt),this.displayedColumns,n.getExportDataForColumn),l)})}getConsentsForUsers(l){const d=[];return this.includeConsents?(l.forEach(y=>{const k=y;k.consent=this.translate.instant("CONSENTS.STATUS_"+this.consentPipe.transform(y,this.consents)),d.push(k)}),d):l}}return n.\u0275fac=function(l){return new(l||n)(R.Y36(p.x4),R.Y36(e.WY),R.Y36(p.UA),R.Y36(v.dB),R.Y36(p.ly),R.Y36(D.uw),R.Y36(S.m2),R.Y36(F.sK))},n.\u0275cmp=R.Xpm({type:n,selectors:[["perun-web-apps-users-dynamic-list"]],viewQuery:function(l,d){if(1&l&&(R.Gf(A.l9,7),R.Gf(w.YE,5)),2&l){let y;R.iGM(y=R.CRH())&&(d.child=y.first),R.iGM(y=R.CRH())&&(d.sort=y.first)}},inputs:{selection:"selection",displayedColumns:"displayedColumns",tableId:"tableId",disableRouting:"disableRouting",searchString:"searchString",attrNames:"attrNames",withoutVo:"withoutVo",updateTable:"updateTable",facilityId:"facilityId",voId:"voId",resourceId:"resourceId",serviceId:"serviceId",onlyAllowed:"onlyAllowed",consentStatuses:"consentStatuses",includeConsents:"includeConsents"},features:[R._Bn([S.m2]),R.TTD],decls:33,vars:21,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["class","spinner-container",4,"ngIf"],["mat-table","","matSort","","matSortActive","name","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","user"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","organization"],["matColumnDef","email"],["matColumnDef","logins"],["matColumnDef","consentStatus"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","perunWebAppsForceRouterLink","perunWebAppsMiddleClickRouterLink",4,"matRowDef","matRowDefColumns"],[3,"alert_type",4,"ngIf"],[1,"spinner-container"],[1,"ml-auto","mr-auto"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change",4,"ngIf"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell",""],["mat-cell","",1,"static-column-size"],["class","align-bottom",3,"matTooltip",4,"ngIf"],["class","align-bottom",3,"matTooltip","svgIcon",4,"ngIf"],[1,"align-bottom",3,"matTooltip"],[1,"align-bottom",3,"matTooltip","svgIcon"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"consentStatus"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsForceRouterLink","perunWebAppsMiddleClickRouterLink"],[3,"alert_type"]],template:function(l,d){1&l&&(R.TgZ(0,"div",0),R.ALo(1,"async"),R.TgZ(2,"perun-web-apps-table-wrapper",1),R.NdJ("exportDisplayedData",function(k){return d.exportDisplayedData(k)})("exportAllData",function(k){return d.exportAllData(k)}),R.YNc(3,B,2,0,"div",2),R.ALo(4,"async"),R.TgZ(5,"table",3),R.YNc(6,De,3,0,"ng-container",4),R.ALo(7,"isAllSelected"),R.ynx(8,5),R.YNc(9,We,1,0,"th",6),R.YNc(10,Ye,3,2,"td",7),R.BQk(),R.ynx(11,8),R.YNc(12,Tt,3,3,"th",9),R.YNc(13,J,2,1,"td",7),R.BQk(),R.ynx(14,10),R.YNc(15,Xe,3,3,"th",9),R.YNc(16,le,4,6,"td",11),R.BQk(),R.ynx(17,12),R.YNc(18,ne,3,3,"th",6),R.YNc(19,ke,3,3,"td",11),R.BQk(),R.ynx(20,13),R.YNc(21,Ee,3,3,"th",6),R.YNc(22,ot,3,3,"td",11),R.BQk(),R.ynx(23,14),R.YNc(24,it,3,3,"th",6),R.YNc(25,oe,3,3,"td",11),R.BQk(),R.ynx(26,15),R.YNc(27,X,3,3,"th",6),R.YNc(28,r,3,4,"td",11),R.BQk(),R.YNc(29,s,1,0,"tr",16),R.YNc(30,c,1,8,"tr",17),R.qZA()()(),R.YNc(31,a,3,4,"perun-web-apps-alert",18),R.ALo(32,"async")),2&l&&(R.Q6J("hidden",0===d.dataSource.allObjectCount&&!1===R.lcZ(1,10,d.dataSource.loading$)),R.xp6(2),R.Q6J("tableId",d.tableId)("dataLength",d.dataSource.allObjectCount)("pageSizeOptions",d.pageSizeOptions),R.xp6(1),R.Q6J("ngIf",R.lcZ(4,12,d.dataSource.loading$)),R.xp6(2),R.Q6J("dataSource",d.dataSource),R.xp6(1),R.Q6J("ngIf",R.VKq(19,i,R.xi3(7,14,d.dataSource,d.selection.selected.length))),R.xp6(23),R.Q6J("matHeaderRowDef",d.displayedColumns),R.xp6(1),R.Q6J("matRowDefColumns",d.displayedColumns),R.xp6(1),R.Q6J("ngIf",0===d.dataSource.allObjectCount&&!1===R.lcZ(32,17,d.dataSource.loading$)))},dependencies:[z.O5,$.oG,G.BZ,G.fO,G.as,G.w1,G.Dz,G.nj,G.ge,G.ev,G.XQ,G.Gk,w.YE,w.nU,q.Ou,_e.w,ce.Hw,Te.gM,b.l,H.Kd,H.YH,xe,z.Ov,z.i8,F.X$,ge.d,Se.S,Be.g,pe.Z,$e.I,Ce.G,de.r,re.m],styles:[".italic_font[_ngcontent-%COMP%]{font-style:italic}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),n})()},62707:(Qe,he,u)=>{"use strict";u.d(he,{M:()=>p});var e=u(94650),m=u(9244),A=u(42377),w=u(89383);let p=(()=>{class g{constructor(){this.disableAutoSelect=!1,this.voSelected=new e.vpe,this.nameFunction=E=>E.name,this.shortNameFunction=E=>E.shortName,this.searchFunction=E=>E.name+E.shortName+String(E.id)}ngOnChanges(){this.vos.sort(m.aC),!this.vo&&!this.disableAutoSelect&&(this.vo=this.vos[0])}}return g.\u0275fac=function(E){return new(E||g)},g.\u0275cmp=e.Xpm({type:g,selectors:[["perun-web-apps-vo-search-select"]],inputs:{vo:"vo",vos:"vos",disableAutoSelect:"disableAutoSelect"},outputs:{voSelected:"voSelected"},features:[e.TTD],decls:4,vars:15,consts:[[3,"entity","entities","disableAutoSelect","searchFunction","mainTextFunction","secondaryTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(E,S){1&E&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(v){return S.voSelected.emit(v)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&E&&e.Q6J("entity",S.vo)("entities",S.vos)("disableAutoSelect",S.disableAutoSelect)("searchFunction",S.searchFunction)("mainTextFunction",S.nameFunction)("secondaryTextFunction",S.shortNameFunction)("selectPlaceholder",e.lcZ(1,9,"SHARED_LIB.PERUN.COMPONENTS.VO_SEARCH_SELECT.SELECT_VO"))("findPlaceholder",e.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.VO_SEARCH_SELECT.FIND_VO"))("noEntriesText",e.lcZ(3,13,"SHARED_LIB.PERUN.COMPONENTS.VO_SEARCH_SELECT.NO_VO_FOUND"))},dependencies:[A.i,w.X$]}),g})()},87831:(Qe,he,u)=>{"use strict";u.d(he,{Z:()=>de});var e=u(96308),m=u(30671),A=u(9244),w=u(69723),p=u(94650),g=u(36895),T=u(56709),E=u(98380),S=u(97392),R=u(18750),v=u(94391),D=u(10441),F=u(89383),z=u(8231);function $(re,B){1&re&&p._UZ(0,"th",19)}const G=function(re){return{name:re}};function q(re,B){if(1&re){const N=p.EpF();p.TgZ(0,"td",20)(1,"mat-checkbox",21),p.NdJ("change",function(Y){const De=p.CHM(N).$implicit,We=p.oxw();return p.KtG(Y?We.selection.toggle(De):null)})("click",function(Y){return Y.stopPropagation()}),p.ALo(2,"translate"),p.ALo(3,"checkboxLabel"),p.qZA()()}if(2&re){const N=B.$implicit,Me=p.oxw();let Y;p.xp6(1),p.Q6J("aria-label",p.xi3(2,2,p.lcZ(3,5,Me.selection.isSelected(N)),p.VKq(7,G,null!==(Y=N.name)&&void 0!==Y?Y:N.vo.name)))("checked",Me.selection.isSelected(N))}}function _e(re,B){1&re&&(p.TgZ(0,"th",22),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&re&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.VOS_LIST.ID")," "))}function ce(re,B){if(1&re&&(p.TgZ(0,"td",23),p._uU(1),p.qZA()),2&re){const N=B.$implicit;let Me;p.xp6(1),p.Oqu(null!==(Me=N.id)&&void 0!==Me?Me:N.vo.id)}}function Te(re,B){1&re&&p._UZ(0,"th",24)}function b(re,B){if(1&re&&(p.TgZ(0,"td",25),p._UZ(1,"perun-web-apps-recently-viewed-icon",26),p.qZA()),2&re){const N=B.$implicit,Me=p.oxw();let Y;p.xp6(1),p.Q6J("recentIds",Me.recentIds)("id",null!==(Y=N.id)&&void 0!==Y?Y:N.vo.id)}}function H(re,B){1&re&&p._UZ(0,"th",24)}function L(re,B){1&re&&p._UZ(0,"mat-icon",28),2&re&&p.Q6J("svgIcon","perun-hierarchical-vo")}function V(re,B){if(1&re&&(p.TgZ(0,"td",25),p.YNc(1,L,1,1,"mat-icon",27),p.qZA()),2&re){const N=B.$implicit;p.xp6(1),p.Q6J("ngIf",0!==(null==N||null==N.memberVos?null:N.memberVos.length))}}function Q(re,B){1&re&&(p.TgZ(0,"th",22),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&re&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.VOS_LIST.SHORTNAME")," "))}function ae(re,B){if(1&re&&(p.TgZ(0,"td",25),p._uU(1),p.qZA()),2&re){const N=B.$implicit;let Me,Y;p.uIk("data-cy",null!==(Me=N.shortName)&&void 0!==Me?Me:N.vo.shortName),p.xp6(1),p.hij(" ",null!==(Y=N.shortName)&&void 0!==Y?Y:N.vo.shortName," ")}}function xe(re,B){1&re&&(p.TgZ(0,"th",22),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&re&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.VOS_LIST.NAME")," "))}function ge(re,B){if(1&re&&(p.TgZ(0,"td",25),p._uU(1),p.qZA()),2&re){const N=B.$implicit;let Me;p.xp6(1),p.Oqu(null!==(Me=N.name)&&void 0!==Me?Me:N.vo.name)}}function Se(re,B){1&re&&p._UZ(0,"tr",29)}const Be=function(re){return["/organizations",re]};function pe(re,B){if(1&re&&p._UZ(0,"tr",30),2&re){const N=B.$implicit,Me=p.oxw();let Y,be;p.ekj("disable-outline",Me.disableRouting)("cursor-pointer",!Me.disableRouting),p.Q6J("perunWebAppsMiddleClickRouterLink",Me.disableRouting?null:p.VKq(6,Be,null!==(Y=N.id)&&void 0!==Y?Y:N.vo.id))("perunWebAppsForceRouterLink",Me.disableRouting?null:p.VKq(8,Be,null!==(be=N.id)&&void 0!==be?be:N.vo.id))}}function $e(re,B){1&re&&(p.TgZ(0,"perun-web-apps-alert",31),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&re&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function Ce(re,B){1&re&&(p.TgZ(0,"perun-web-apps-alert",32),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&re&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_ORGANIZATIONS"),"\n"))}let de=(()=>{class re{constructor(N){this.authResolver=N,this.vos=[],this.displayedColumns=[],this.disableRouting=!1,this.pageSizeOptions=A.f7,this.getDataForColumnFun=(Me,Y)=>re.getDataForColumn(Me,Y,this.recentIds)}set matSort(N){this.sort=N}static getDataForColumn(N,Me,Y){switch(re.isEnrichedVo(N)&&(N=N.vo),Me){case"id":return N.id.toString();case"shortName":return N.shortName;case"name":return N.name;case"recent":return Y&&Y.includes(N.id)?"#".repeat(Y.indexOf(N.id)):N.name;default:return N[Me]}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(N=>"id"!==N)),this.setDataSource()}exportAllData(N){(0,A.O6)((0,A.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumnFun),N)}exportDisplayedData(N){const Me=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,Y=Me+this.dataSource.paginator.pageSize;(0,A.O6)((0,A.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(Me,Y),this.displayedColumns,this.getDataForColumnFun),N)}setDataSource(){this.dataSource||(this.dataSource=new m.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(N,Me)=>(0,A.Sd)(N,Me,this.displayedColumns,this.getDataForColumnFun),this.dataSource.sortData=(N,Me)=>(0,A.pR)(N,Me,this.getDataForColumnFun)),this.dataSource.filter=this.filterValue,this.dataSource.data=this.vos}}return re.isEnrichedVo=B=>void 0!==B.vo,re.\u0275fac=function(N){return new(N||re)(p.Y36(w.x4))},re.\u0275cmp=p.Xpm({type:re,selectors:[["perun-web-apps-vos-list"]],viewQuery:function(N,Me){if(1&N&&(p.Gf(A.l9,7),p.Gf(e.YE,7)),2&N){let Y;p.iGM(Y=p.CRH())&&(Me.child=Y.first),p.iGM(Y=p.CRH())&&(Me.matSort=Y.first)}},inputs:{vos:"vos",recentIds:"recentIds",filterValue:"filterValue",selection:"selection",displayedColumns:"displayedColumns",disableRouting:"disableRouting",pageSizeOptions:"pageSizeOptions",tableId:"tableId"},features:[p.TTD],decls:25,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","tableId","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","recent"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","hierarchy"],["matColumnDef","shortName"],["matColumnDef","name"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"disable-outline","cursor-pointer","perunWebAppsMiddleClickRouterLink","perunWebAppsForceRouterLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn","data-cy","no-filter-result",4,"ngIf"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-header-cell",""],["mat-cell",""],[3,"recentIds","id"],[3,"svgIcon",4,"ngIf"],[3,"svgIcon"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","perunWebAppsForceRouterLink"],["alert_type","warn","data-cy","no-filter-result"],["alert_type","warn"]],template:function(N,Me){1&N&&(p.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),p.NdJ("exportDisplayedData",function(be){return Me.exportDisplayedData(be)})("exportAllData",function(be){return Me.exportAllData(be)}),p.TgZ(2,"table",2),p.ynx(3,3),p.YNc(4,$,1,0,"th",4),p.YNc(5,q,4,9,"td",5),p.BQk(),p.ynx(6,6),p.YNc(7,_e,3,3,"th",7),p.YNc(8,ce,2,1,"td",8),p.BQk(),p.ynx(9,9),p.YNc(10,Te,1,0,"th",10),p.YNc(11,b,2,2,"td",11),p.BQk(),p.ynx(12,12),p.YNc(13,H,1,0,"th",10),p.YNc(14,V,2,1,"td",11),p.BQk(),p.ynx(15,13),p.YNc(16,Q,3,3,"th",7),p.YNc(17,ae,2,2,"td",11),p.BQk(),p.ynx(18,14),p.YNc(19,xe,3,3,"th",7),p.YNc(20,ge,2,1,"td",11),p.BQk(),p.YNc(21,Se,1,0,"tr",15),p.YNc(22,pe,1,10,"tr",16),p.qZA()()(),p.YNc(23,$e,3,3,"perun-web-apps-alert",17),p.YNc(24,Ce,3,3,"perun-web-apps-alert",18)),2&N&&(p.Q6J("hidden",0===Me.dataSource.filteredData.length||0===Me.vos.length),p.xp6(1),p.Q6J("dataLength",Me.dataSource.filteredData.length)("tableId",Me.tableId)("pageSizeOptions",Me.pageSizeOptions),p.xp6(1),p.Q6J("dataSource",Me.dataSource),p.xp6(19),p.Q6J("matHeaderRowDef",Me.displayedColumns),p.xp6(1),p.Q6J("matRowDefColumns",Me.displayedColumns),p.xp6(1),p.Q6J("ngIf",0===Me.dataSource.filteredData.length&&0!==Me.vos.length),p.xp6(1),p.Q6J("ngIf",0===Me.vos.length))},dependencies:[g.O5,T.oG,m.BZ,m.fO,m.as,m.w1,m.Dz,m.nj,m.ge,m.ev,m.XQ,m.Gk,e.YE,e.nU,E.w,S.Hw,R.l,v.Kd,v.YH,D.W,F.X$,z.G],styles:[".card[_ngcontent-%COMP%]{border-radius:0!important}.static-column-size[_ngcontent-%COMP%]{width:80px}.disable-outline[_ngcontent-%COMP%]{outline:none!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:.25rem!important}"]}),re})()},21029:(Qe,he,u)=>{"use strict";u.d(he,{FJ:()=>on,GI:()=>Dt,Wr:()=>Ue,r2:()=>ct,gr:()=>Ke,u3:()=>Gn,Qu:()=>Ei,pf:()=>Ce,xF:()=>Bn,hd:()=>vi,kZ:()=>ri,wA:()=>tt,rd:()=>Pe,Eg:()=>We,QQ:()=>nn,Bp:()=>ne,qD:()=>lt,jd:()=>pt,FM:()=>X,jD:()=>H,eK:()=>fr,Lc:()=>n,h4:()=>Vt,Us:()=>Hr,iI:()=>Ni,mk:()=>l,Ts:()=>Qt});var e=u(36895),m=u(89383),A=u(30671),w=u(65412),p=u(4859),g=u(59549),T=u(24006),E=u(284),S=u(51572),R=u(71948),v=u(99602),D=u(64425),F=u(97392),z=u(19516),$=u(63189),G=u(94364),q=u(35423),_e=u(84385),ce=u(28499),Te=u(60900),b=u(94650);let H=(()=>{class dt{}return dt.\u0275fac=function(Je){return new(Je||dt)},dt.\u0275mod=b.oAB({type:dt}),dt.\u0275inj=b.cJS({imports:[e.ez,m.aw,A.p0,w.Is,p.ot,g.lN,T.u5,E.c,S.Cq,R.Fk,v.FA,T.UX,D.Iq,F.Ps,z.d4,$.r,G.Bz,q.dp,_e.LD,ce.E3,Te.C]}),dt})();var L=u(32105),V=u(69723),Q=u(3238),ae=u(20551);function xe(dt,Ut){1&dt&&b._UZ(0,"mat-spinner",6)}function ge(dt,Ut){if(1&dt&&(b.TgZ(0,"mat-option",17),b._uU(1),b.ALo(2,"memberStatus"),b.qZA()),2&dt){const Je=Ut.$implicit;b.Q6J("value",Je),b.xp6(1),b.Oqu(b.lcZ(2,2,Je))}}function Se(dt,Ut){if(1&dt){const Je=b.EpF();b.TgZ(0,"mat-form-field",14)(1,"mat-label"),b._uU(2),b.ALo(3,"translate"),b.qZA(),b.TgZ(4,"mat-select",15),b.NdJ("selectionChange",function(zt){b.CHM(Je);const un=b.oxw(3);return b.KtG(un.changeStatus(zt))}),b.YNc(5,ge,3,4,"mat-option",16),b.qZA()()}if(2&dt){const Je=b.oxw(3);b.xp6(2),b.Oqu(b.lcZ(3,2,"DIALOGS.CHANGE_STATUS.SELECT_STATUS")),b.xp6(3),b.Q6J("ngForOf",Je.allStatuses)}}function Be(dt,Ut){if(1&dt&&(b.TgZ(0,"div",8),b._uU(1),b.ALo(2,"translate"),b.YNc(3,Se,6,4,"mat-form-field",13),b.qZA()),2&dt){const Je=b.oxw(2);b.xp6(1),b.hij(" ",b.lcZ(2,2,"DIALOGS.CHANGE_STATUS.NEW_STATUS")," "),b.xp6(2),b.Q6J("ngIf",!Je.loading)}}function pe(dt,Ut){if(1&dt&&(b.TgZ(0,"div",8),b._uU(1),b.ALo(2,"translate"),b.ALo(3,"memberStatus"),b.qZA()),2&dt){const Je=b.oxw(2);b.xp6(1),b.AsE(" ",b.lcZ(2,2,"DIALOGS.CHANGE_STATUS.NEW_STATUS")," ",b.lcZ(3,4,Je.allStatuses[0])," ")}}function $e(dt,Ut){if(1&dt&&(b.TgZ(0,"div",7)(1,"div",8),b._uU(2),b.ALo(3,"translate"),b.ALo(4,"memberStatus"),b.qZA(),b.TgZ(5,"div",9),b._uU(6),b.qZA(),b.YNc(7,Be,4,4,"div",10),b.YNc(8,pe,4,6,"div",10),b.TgZ(9,"div",11),b._UZ(10,"i",12),b.qZA()()),2&dt){const Je=b.oxw();b.xp6(2),b.AsE(" ",b.lcZ(3,6,"DIALOGS.CHANGE_STATUS.CURRENT_STATUS")," ",b.lcZ(4,8,Je.actualStatus)," "),b.xp6(4),b.Oqu(Je.description),b.xp6(1),b.Q6J("ngIf",Je.allStatuses.length>1),b.xp6(1),b.Q6J("ngIf",1===Je.allStatuses.length),b.xp6(2),b.Q6J("innerHTML",Je.changeMessage,b.oJD)}}let Ce=(()=>{class dt{constructor(Je,Et,zt,un,gn,Jn){this.dialogRef=Je,this.data=Et,this.memberManager=zt,this.groupsManager=un,this.notificatorService=gn,this.translate=Jn,this.loading=!1,this.allStatuses=["VALID","INVALID","EXPIRED","DISABLED"]}ngOnInit(){switch(this.data.groupId?(this.theme="group-theme",this.actualStatus=this.data.member.groupStatus):(this.theme="vo-theme",this.actualStatus=this.data.member.status),this.changeStatusButton=this.translate.instant("DIALOGS.CHANGE_STATUS.CHANGE_STATUS"),this.changeStatusWithExpButton=this.translate.instant("DIALOGS.CHANGE_STATUS.CHANGE_STATUS_WITH_EXPIRATION"),this.submitButtonText=this.changeStatusButton,this.data.groupId?("VALID"===this.actualStatus?(this.allStatuses=["EXPIRED"],this.selectedStatus="EXPIRED"):(this.allStatuses=["VALID"],this.selectedStatus="VALID"),this.submitButtonText=this.changeStatusWithExpButton,this.changeStatusMessage(this.actualStatus,this.selectedStatus)):this.allStatuses="INVALID"===this.actualStatus?["VALID","EXPIRED"]:this.allStatuses.filter(Je=>Je!==this.actualStatus),this.actualStatus){case"VALID":this.description=this.translate.instant("DIALOGS.CHANGE_STATUS.VALID_DESCRIPTION");break;case"INVALID":this.description=this.translate.instant("DIALOGS.CHANGE_STATUS.INVALID_DESCRIPTION");break;case"EXPIRED":this.description=this.translate.instant("DIALOGS.CHANGE_STATUS.EXPIRED_DESCRIPTION");break;case"DISABLED":this.description=this.translate.instant("DIALOGS.CHANGE_STATUS.DISABLED_DESCRIPTION");break;default:this.description=""}}changeStatus(Je){this.selectedStatus=Je.value,this.submitButtonText=("VALID"===this.actualStatus&&"EXPIRED"===this.selectedStatus||"VALID"===this.actualStatus&&"DISABLED"===this.selectedStatus||"VALID"===this.selectedStatus)&&!this.data.disableChangeExpiration?this.changeStatusWithExpButton:this.changeStatusButton,this.changeStatusMessage(this.actualStatus,this.selectedStatus)}cancel(){this.dialogRef.close()}submit(){this.loading=!0,this.data.groupId?this.groupsManager.setGroupsMemberStatus(this.data.member.id,this.data.groupId,this.selectedStatus).subscribe(Je=>{this.translate.get("DIALOGS.CHANGE_STATUS.SUCCESS").subscribe(Et=>{this.notificatorService.showSuccess(Et),this.dialogRef.close(Je)})},()=>this.loading=!1):this.memberManager.setStatus(this.data.member.id,this.selectedStatus).subscribe(Je=>{this.translate.get("DIALOGS.CHANGE_STATUS.SUCCESS").subscribe(Et=>{this.notificatorService.showSuccess(Et),this.dialogRef.close(Je)})},()=>this.loading=!1)}changeStatusMessage(Je,Et){if("VALID"===Je)switch(Et){case"INVALID":this.changeMessage=this.translate.instant("DIALOGS.CHANGE_STATUS.CHANGE_VALID_TO_INVALID");break;case"EXPIRED":this.changeMessage=this.translate.instant("DIALOGS.CHANGE_STATUS.CHANGE_VALID_TO_EXPIRED");break;case"DISABLED":this.changeMessage=this.translate.instant("DIALOGS.CHANGE_STATUS.CHANGE_VALID_TO_DISABLED");break;default:this.changeMessage=""}else switch(Et){case"VALID":this.changeMessage=this.translate.instant("DIALOGS.CHANGE_STATUS.CHANGE_NO_VALID_TO_VALID");break;case"INVALID":this.changeMessage=this.translate.instant("DIALOGS.CHANGE_STATUS.CHANGE_NO_VALID_TO_INVALID");break;case"EXPIRED":this.changeMessage=this.translate.instant("DIALOGS.CHANGE_STATUS.CHANGE_NO_VALID_TO_EXPIRED");break;case"DISABLED":this.changeMessage=this.translate.instant("DIALOGS.CHANGE_STATUS.CHANGE_NO_VALID_TO_DISABLED");break;default:this.changeMessage=""}}}return dt.\u0275fac=function(Je){return new(Je||dt)(b.Y36(w.so),b.Y36(w.WI),b.Y36(L.uq),b.Y36(L.ff),b.Y36(V.V6),b.Y36(m.sK))},dt.\u0275cmp=b.Xpm({type:dt,selectors:[["perun-web-apps-change-member-status-dialog"]],decls:12,vars:13,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[1,"font-weight-bold","pb-1"],[1,"text-muted","pb-3"],["class","font-weight-bold pb-1",4,"ngIf"],[1,"text-muted","new-line"],[3,"innerHTML"],["class","mr-2 mt-2",4,"ngIf"],[1,"mr-2","mt-2"],[3,"selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(Je,Et){1&Je&&(b.TgZ(0,"div")(1,"h1",0),b._uU(2),b.ALo(3,"translate"),b.qZA(),b.YNc(4,xe,1,0,"mat-spinner",1),b.YNc(5,$e,11,10,"div",2),b.TgZ(6,"div",3)(7,"button",4),b.NdJ("click",function(){return Et.cancel()}),b._uU(8),b.ALo(9,"translate"),b.qZA(),b.TgZ(10,"button",5),b.NdJ("click",function(){return Et.submit()}),b._uU(11),b.qZA()()()),2&Je&&(b.Tol(Et.theme),b.xp6(2),b.Oqu(b.lcZ(3,9,"DIALOGS.CHANGE_STATUS.TITLE")),b.xp6(2),b.Q6J("ngIf",Et.loading),b.xp6(1),b.Q6J("ngIf",!Et.loading),b.xp6(3),b.hij(" ",b.lcZ(9,11,"DIALOGS.CHANGE_STATUS.CANCEL")," "),b.xp6(2),b.Q6J("disabled",Et.loading||!Et.selectedStatus),b.xp6(1),b.hij(" ",Et.submitButtonText," "))},dependencies:[e.sg,e.O5,w.uh,w.xY,w.H8,p.lW,g.KE,g.hX,S.Ou,_e.gD,Q.ey,m.X$,ae.l],styles:[".new-line[_ngcontent-%COMP%]{white-space:pre-wrap}"]}),dt})();function de(dt,Ut){1&dt&&(b.TgZ(0,"h1",7),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&dt&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_FACILITY")," "))}function re(dt,Ut){1&dt&&(b.TgZ(0,"h1",7),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&dt&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_RESOURCE")," "))}function B(dt,Ut){1&dt&&(b.TgZ(0,"h1",7),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&dt&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_VO")," "))}function N(dt,Ut){1&dt&&(b.TgZ(0,"h1",7),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&dt&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_GROUP")," "))}function Me(dt,Ut){1&dt&&b._UZ(0,"mat-spinner",8)}function Y(dt,Ut){if(1&dt&&(b.TgZ(0,"mat-form-field"),b._UZ(1,"input",13),b.ALo(2,"translate"),b.qZA()),2&dt){const Je=b.oxw(2);b.xp6(1),b.MGl("placeholder","",b.lcZ(2,2,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.SHORT_NAME"),":"),b.Q6J("value",Je.shortName)}}function be(dt,Ut){if(1&dt&&(b.TgZ(0,"mat-form-field",14),b._UZ(1,"textarea",15),b.ALo(2,"translate"),b.qZA()),2&dt){const Je=b.oxw(2);b.xp6(1),b.MGl("placeholder","",b.lcZ(2,2,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.DESCRIPTION"),":"),b.Q6J("formControl",Je.descriptionCtrl)}}function De(dt,Ut){if(1&dt&&(b.TgZ(0,"div",9),b.YNc(1,Y,3,4,"mat-form-field",10),b.TgZ(2,"mat-form-field"),b._UZ(3,"input",11),b.ALo(4,"translate"),b.TgZ(5,"mat-error"),b._uU(6),b.ALo(7,"translate"),b.qZA()(),b.YNc(8,be,3,4,"mat-form-field",12),b.qZA()),2&dt){const Je=b.oxw();b.xp6(1),b.Q6J("ngIf",2===Je.dialogType),b.xp6(2),b.MGl("placeholder","",b.lcZ(4,5,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.NAME"),":"),b.Q6J("formControl",Je.nameCtrl),b.xp6(3),b.hij(" ",Je.invalidNameMessage.length?Je.invalidNameMessage:b.lcZ(7,7,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.FILL_NAME")," "),b.xp6(2),b.Q6J("ngIf",2!==Je.dialogType)}}var We=(()=>{return(dt=We||(We={}))[dt.FACILITY=0]="FACILITY",dt[dt.RESOURCE=1]="RESOURCE",dt[dt.VO=2]="VO",dt[dt.GROUP=3]="GROUP",We;var dt})();let Pe=(()=>{class dt{constructor(Je,Et,zt,un,gn,Jn,si,mi,Ii){this.dialogRef=Je,this.data=Et,this.notificator=zt,this.translateService=un,this.facilitiesManager=gn,this.resourcesManager=Jn,this.groupsManager=si,this.vosManager=mi,this.store=Ii,this.invalidNameMessage=this.data.dialogType===We.GROUP?this.store.getProperty("group_name_error_message"):"",this.loading=!1,this.secondaryRegex=this.data.dialogType===We.GROUP?this.store.getProperty("group_name_secondary_regex"):""}ngOnInit(){switch(this.theme=this.data.theme,this.dialogType=this.data.dialogType,this.dialogType){case We.FACILITY:this.nameCtrl=new T.p4(this.data.facility.name,[T.kI.required,T.kI.pattern(".*[\\S]+.*"),T.kI.maxLength(129)]),this.descriptionCtrl=new T.p4(this.data.facility.description);break;case We.RESOURCE:this.nameCtrl=new T.p4(this.data.resource.name,[T.kI.required,T.kI.pattern(".*[\\S]+.*")]),this.descriptionCtrl=new T.p4(this.data.resource.description);break;case We.GROUP:{const Je=this.data.group.name.split(":");this.nameCtrl=new T.p4(Je[Je.length-1],[T.kI.required,T.kI.pattern(".*[\\S]+.*"),T.kI.pattern(this.secondaryRegex),T.kI.maxLength(129)]),this.descriptionCtrl=new T.p4(this.data.group.description);break}case We.VO:this.shortName=this.data.vo.shortName,this.nameCtrl=new T.p4(this.data.vo.name,[T.kI.required,T.kI.pattern(".*[\\S]+.*"),T.kI.maxLength(129)]),this.descriptionCtrl=new T.p4}}cancel(){this.dialogRef.close(!1)}submit(){switch(this.loading=!0,this.dialogType){case We.FACILITY:this.editFacility();break;case We.RESOURCE:this.editResource();break;case We.GROUP:this.editGroup();break;case We.VO:this.editVo()}}editResource(){this.data.resource.name=this.nameCtrl.value,this.data.resource.description=this.descriptionCtrl.value,this.resourcesManager.updateResource({resource:this.data.resource}).subscribe(()=>{this.translateService.get("DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.RESOURCE_SUCCESS").subscribe(Je=>{this.notificator.showSuccess(Je),this.dialogRef.close(!0)})},()=>this.loading=!1)}editFacility(){this.data.facility.name=this.nameCtrl.value,this.data.facility.description=this.descriptionCtrl.value,this.facilitiesManager.updateFacility({facility:this.data.facility}).subscribe(()=>{this.translateService.get("DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.FACILITY_SUCCESS").subscribe(Je=>{this.notificator.showSuccess(Je),this.dialogRef.close(!0)})},()=>this.loading=!1)}editGroup(){this.groupsManager.getGroupById(this.data.group.id).subscribe(Je=>{const Et=Je;Et.name=this.nameCtrl.value,Et.description=this.descriptionCtrl.value,this.groupsManager.updateGroup({group:Et}).subscribe(()=>{this.translateService.get("DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.GROUP_SUCCESS").subscribe(zt=>{this.notificator.showSuccess(zt),this.dialogRef.close(!0)})},()=>this.loading=!1)},()=>this.loading=!1)}editVo(){this.data.vo.name=this.nameCtrl.value,this.vosManager.updateVo({vo:this.data.vo}).subscribe(()=>{this.translateService.get("DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.VO_SUCCESS").subscribe(Je=>{this.notificator.showSuccess(Je),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return dt.\u0275fac=function(Je){return new(Je||dt)(b.Y36(w.so),b.Y36(w.WI),b.Y36(V.V6),b.Y36(m.sK),b.Y36(L.IQ),b.Y36(L.xk),b.Y36(L.ff),b.Y36(L.YF),b.Y36(V.d6))},dt.\u0275cmp=b.Xpm({type:dt,selectors:[["perun-web-apps-edit-facility-resource-group-vo-dialog"]],decls:15,vars:16,consts:[["mat-dialog-title","",4,"ngIf"],["mat-dialog-content",""],["class","mr-auto ml-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],["mat-dialog-title",""],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],[4,"ngIf"],["matInput","","required","",3,"formControl","placeholder"],["class","mt-3",4,"ngIf"],["disabled","","matInput","","required","",3,"value","placeholder"],[1,"mt-3"],["mat-autosize","","matInput","",1,"overflow-hidden",3,"formControl","placeholder"]],template:function(Je,Et){1&Je&&(b.TgZ(0,"div"),b.YNc(1,de,3,3,"h1",0),b.YNc(2,re,3,3,"h1",0),b.YNc(3,B,3,3,"h1",0),b.YNc(4,N,3,3,"h1",0),b.TgZ(5,"div",1),b.YNc(6,Me,1,0,"mat-spinner",2),b.YNc(7,De,9,9,"div",3),b.qZA(),b.TgZ(8,"div",4)(9,"button",5),b.NdJ("click",function(){return Et.cancel()}),b._uU(10),b.ALo(11,"translate"),b.qZA(),b.TgZ(12,"button",6),b.NdJ("click",function(){return Et.submit()}),b._uU(13),b.ALo(14,"translate"),b.qZA()()()),2&Je&&(b.Tol(Et.theme),b.xp6(1),b.Q6J("ngIf",0===Et.dialogType),b.xp6(1),b.Q6J("ngIf",1===Et.dialogType),b.xp6(1),b.Q6J("ngIf",2===Et.dialogType),b.xp6(1),b.Q6J("ngIf",3===Et.dialogType),b.xp6(2),b.Q6J("ngIf",Et.loading),b.xp6(1),b.Q6J("ngIf",!Et.loading),b.xp6(3),b.hij(" ",b.lcZ(11,12,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.CANCEL_BUTTON")," "),b.xp6(2),b.Q6J("disabled",Et.loading||Et.nameCtrl.invalid||Et.descriptionCtrl.invalid),b.xp6(1),b.hij(" ",b.lcZ(14,14,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.SUBMIT_BUTTON")," "))},dependencies:[e.O5,w.uh,w.xY,w.H8,p.lW,g.TO,g.KE,T.Fj,T.JJ,T.Q7,E.Nt,S.Ou,T.oH,m.X$]}),dt})();var nt=u(64080),Ye=u(9244);function Tt(dt,Ut){1&dt&&b._UZ(0,"mat-spinner",7)}const J=function(dt){return{interval:dt}};function Xe(dt,Ut){if(1&dt&&(b.TgZ(0,"div",8)(1,"mat-form-field"),b._UZ(2,"input",9),b.ALo(3,"translate"),b.qZA(),b.TgZ(4,"mat-form-field"),b._UZ(5,"input",9),b.ALo(6,"translate"),b.ALo(7,"translate"),b.qZA(),b.TgZ(8,"mat-form-field"),b._UZ(9,"input",9),b.ALo(10,"translate"),b.qZA(),b.TgZ(11,"mat-form-field"),b._UZ(12,"input",9),b.ALo(13,"translate"),b.ALo(14,"translate"),b.qZA(),b.TgZ(15,"mat-form-field"),b._UZ(16,"input",9),b.ALo(17,"translate"),b.ALo(18,"translate"),b.qZA()()),2&dt){const Je=b.oxw();b.xp6(2),b.s9C("placeholder",b.lcZ(3,10,"DIALOGS.GROUP_SYNC_DETAIL.GROUP_NAME")),b.Q6J("value",Je.group.name),b.xp6(3),b.s9C("placeholder",b.lcZ(7,14,"DIALOGS.GROUP_SYNC_DETAIL.SYNCHRONIZATION")),b.Q6J("value",b.lcZ(6,12,Je.syncType)),b.xp6(4),b.s9C("placeholder",b.lcZ(10,16,"DIALOGS.GROUP_SYNC_DETAIL.LAST_SYNC_STATE")),b.Q6J("value",Je.syncState),b.xp6(3),b.s9C("placeholder",b.lcZ(14,20,"DIALOGS.GROUP_SYNC_DETAIL.LAST_SYNC_TIME")),b.Q6J("value",b.lcZ(13,18,Je.syncTime)),b.xp6(4),b.s9C("placeholder",b.lcZ(18,25,"DIALOGS.GROUP_SYNC_DETAIL.SYNC_INTERVAL")),b.Q6J("value",b.xi3(17,22,"DIALOGS.GROUP_SYNC_DETAIL.SYNC_INTERVAL_MINUTES",b.VKq(27,J,Je.syncInterval)))}}function le(dt,Ut){if(1&dt){const Je=b.EpF();b.TgZ(0,"button",10),b.NdJ("click",function(){b.CHM(Je);const zt=b.oxw();return b.KtG(zt.onForce())}),b._uU(1),b.ALo(2,"translate"),b.qZA()}if(2&dt){const Je=b.oxw();b.Q6J("disabled",Je.loading),b.xp6(1),b.hij(" ",b.lcZ(2,2,"DIALOGS.GROUP_SYNC_DETAIL.FORCE")," ")}}let ne=(()=>{class dt{constructor(Je,Et,zt,un){this.dialogRef=Je,this.data=Et,this.groupService=zt,this.notificator=un,this.loading=!0,this.syncInterval="",this.syncState="",this.syncTime="",this.syncType=""}ngOnInit(){this.theme=this.data.theme,this.loadGroup()}onCancel(){this.dialogRef.close(null)}onForce(){this.loading=!0,"BASIC"===this.type?this.groupService.forceGroupSynchronization(this.group.id).subscribe({next:()=>{this.notificator.showSuccess("DIALOGS.GROUP_SYNC_DETAIL.FORCE_SUCCESS"),this.refresh()},error:()=>this.loading=!1}):this.groupService.forceGroupStructureSynchronization(this.group.id).subscribe({next:()=>{this.notificator.showSuccess("DIALOGS.GROUP_SYNC_DETAIL.FORCE_SUCCESS"),this.refresh()},error:()=>this.loading=!1})}refresh(){this.loadGroup()}loadGroup(){this.loading=!0,this.groupService.getRichGroupByIdWithAttributesByNames(this.data.groupId,[nt.r.GROUP_SYNC_ENABLED,nt.r.GROUP_LAST_SYNC_STATE,nt.r.GROUP_LAST_SYNC_TIMESTAMP,nt.r.GROUP_STRUCTURE_SYNC_ENABLED,nt.r.GROUP_LAST_STRUCTURE_SYNC_STATE,nt.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP,nt.r.GROUP_SYNC_INTERVAL]).subscribe(Je=>{this.group=Je;const Et=(0,Ye.IL)(this.group.attributes,nt.r.GROUP_SYNC_ENABLED).value,zt=(0,Ye.IL)(this.group.attributes,nt.r.GROUP_LAST_SYNC_STATE).value,un=(0,Ye.IL)(this.group.attributes,nt.r.GROUP_LAST_SYNC_TIMESTAMP).value,gn=(0,Ye.IL)(this.group.attributes,nt.r.GROUP_STRUCTURE_SYNC_ENABLED).value,Jn=(0,Ye.IL)(this.group.attributes,nt.r.GROUP_LAST_STRUCTURE_SYNC_STATE).value,si=(0,Ye.IL)(this.group.attributes,nt.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP).value,mi=(0,Ye.IL)(this.group.attributes,nt.r.GROUP_SYNC_INTERVAL).value;this.syncInterval=null===mi?"N/A":(5*+mi).toString(),null!==Et&&"true"===Et&&(this.type="BASIC",this.syncType="DIALOGS.GROUP_SYNC_DETAIL.NORMAL_SYNC",this.syncState=""!==zt?zt:"OK",this.syncTime=(0,e.p6)(un,"YYYY-MM-dd H:mm:ss","en")),null!==gn&&gn&&(this.type="STRUCTURED",this.syncType="DIALOGS.GROUP_SYNC_DETAIL.STRUCT_SYNC",this.syncState=""!==Jn?Jn:"OK",this.syncTime=(0,e.p6)(si,"YYYY-MM-dd H:mm:ss","en")),this.loading=!1})}}return dt.\u0275fac=function(Je){return new(Je||dt)(b.Y36(w.so),b.Y36(w.WI),b.Y36(L.ff),b.Y36(V.V6))},dt.\u0275cmp=b.Xpm({type:dt,selectors:[["perun-web-apps-group-sync-detail-dialog"]],decls:12,vars:12,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-flat-button","",1,"ml-2",3,"click"],["class","ml-2","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","readonly","",3,"value","placeholder"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(Je,Et){1&Je&&(b.TgZ(0,"div")(1,"h1",0),b._uU(2),b.ALo(3,"translate"),b.qZA(),b.YNc(4,Tt,1,0,"mat-spinner",1),b.YNc(5,Xe,19,29,"div",2),b.TgZ(6,"div",3)(7,"div",4)(8,"button",5),b.NdJ("click",function(){return Et.onCancel()}),b._uU(9),b.ALo(10,"translate"),b.qZA(),b.YNc(11,le,3,4,"button",6),b.qZA()()()),2&Je&&(b.Tol(Et.theme),b.xp6(2),b.Oqu(b.lcZ(3,8,"DIALOGS.GROUP_SYNC_DETAIL.TITLE")),b.xp6(2),b.Q6J("ngIf",Et.loading),b.xp6(1),b.Q6J("ngIf",!Et.loading),b.xp6(4),b.hij(" ",b.lcZ(10,10,"DIALOGS.GROUP_SYNC_DETAIL.CANCEL")," "),b.xp6(2),b.Q6J("ngIf","BASIC"===Et.type||"STRUCTURED"===Et.type))},dependencies:[e.O5,w.uh,w.xY,w.H8,p.lW,g.KE,E.Nt,S.Ou,m.X$]}),dt})();function ke(dt,Ut){1&dt&&b._UZ(0,"mat-spinner",7)}function Ee(dt,Ut){1&dt&&(b.TgZ(0,"mat-error"),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&dt&&(b.xp6(1),b.Oqu(b.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_ERROR")))}function ot(dt,Ut){1&dt&&(b.TgZ(0,"mat-error"),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&dt&&(b.xp6(1),b.Oqu(b.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_ERROR")))}function it(dt,Ut){if(1&dt){const Je=b.EpF();b.TgZ(0,"div",8)(1,"mat-form-field")(2,"mat-label"),b._uU(3),b.ALo(4,"translate"),b.qZA(),b.TgZ(5,"input",9,10),b.NdJ("ngModelChange",function(zt){b.CHM(Je);const un=b.oxw();return b.KtG(un.subject=zt)}),b.qZA(),b.YNc(7,Ee,3,3,"mat-error",11),b.qZA(),b.TgZ(8,"mat-form-field")(9,"mat-label"),b._uU(10),b.ALo(11,"translate"),b.qZA(),b.TgZ(12,"textarea",12,13),b.NdJ("ngModelChange",function(zt){b.CHM(Je);const un=b.oxw();return b.KtG(un.message=zt)}),b.ALo(14,"translate"),b._uU(15," "),b.qZA(),b.YNc(16,ot,3,3,"mat-error",11),b.qZA()()}if(2&dt){const Je=b.MAs(6),Et=b.MAs(13),zt=b.oxw();b.xp6(3),b.Oqu(b.lcZ(4,7,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT")),b.xp6(2),b.Q6J("ngModel",zt.subject),b.xp6(2),b.Q6J("ngIf",Je.invalid),b.xp6(3),b.Oqu(b.lcZ(11,9,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE")),b.xp6(2),b.s9C("placeholder",b.lcZ(14,11,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_PLACEHOLDER")),b.Q6J("ngModel",zt.message),b.xp6(4),b.Q6J("ngIf",Et.invalid)}}let oe=(()=>{class dt{constructor(Je,Et,zt,un,gn,Jn){this.dialogRef=Je,this.translate=Et,this.notificator=zt,this.rtMessages=un,this.data=gn,this.storeService=Jn,this.message="",this.subject="",this.methodRegexp=/(\w+\/\w+)$/g,this.loading=!1}ngOnInit(){this.data?.error?.errorId&&(this.subject="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_VALUE"),this.parseMethod(this.data.error.call)," (",this.data.error.errorId,")"))}sendBugReport(){this.loading=!0,this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(Je=>{this.dialogRef.afterClosed().subscribe(()=>{const Et="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS1"),Je.ticketNumber.toString(),this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS2"));this.notificator.showSuccess(Et)}),this.dialogRef.close()},()=>{this.loading=!1,this.dialogRef.afterClosed().subscribe(()=>{})})}getFullEmailBody(){const Je=this.storeService.getProperty("config");let Et=this.message+"\n------------------------\nTechnical details:\n\n"+this.data.error.errorId;if(Et=Et.concat(this.data.error.type?" "+this.data.error.type+"\n":"\n"),Et=Et.concat(this.data.error.message,"\n","Perun instance: ",Je,"\n","Request:\n",this.data.error.urlWithParams,"\n\n"),this.data.error.payload){const zt=/"password":".+?"/;let un=JSON.stringify(this.data.error.payload);un=un.replace(zt,'"password":"####"'),Et=Et.concat("Payload:\n"+un+"\n\n")}return Et=Et.concat("Sent from new Perun Gui, version: ",u(4147).i8),Et.split("\n").join("\n ")}parseMethod(Je){return Je&&this.methodRegexp.exec(Je)[1]}}return dt.\u0275fac=function(Je){return new(Je||dt)(b.Y36(w.so),b.Y36(m.sK),b.Y36(V.V6),b.Y36(L.Hr),b.Y36(w.WI),b.Y36(V.d6))},dt.\u0275cmp=b.Xpm({type:dt,selectors:[["perun-web-apps-bug-report-dialog"]],decls:13,vars:12,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","",3,"ngModel","ngModelChange"],["subjectModel","ngModel"],[4,"ngIf"],["matInput","","required","",3,"ngModel","placeholder","ngModelChange"],["messageModel","ngModel"]],template:function(Je,Et){1&Je&&(b.TgZ(0,"h1",0),b._uU(1),b.ALo(2,"translate"),b.qZA(),b.YNc(3,ke,1,0,"mat-spinner",1),b.YNc(4,it,17,13,"div",2),b.TgZ(5,"div",3)(6,"div",4)(7,"button",5),b.NdJ("click",function(){return Et.dialogRef.close()}),b._uU(8),b.ALo(9,"translate"),b.qZA(),b.TgZ(10,"button",6),b.NdJ("click",function(){return Et.sendBugReport()}),b._uU(11),b.ALo(12,"translate"),b.qZA()()()),2&Je&&(b.xp6(1),b.Oqu(b.lcZ(2,6,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.TITLE")),b.xp6(2),b.Q6J("ngIf",Et.loading),b.xp6(1),b.Q6J("ngIf",!Et.loading),b.xp6(4),b.hij(" ",b.lcZ(9,8,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.CANCEL")," "),b.xp6(2),b.Q6J("disabled",""===Et.message||""===Et.subject||Et.loading),b.xp6(1),b.hij(" ",b.lcZ(12,10,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SEND")," "))},dependencies:[e.O5,w.uh,w.xY,w.H8,p.lW,g.TO,g.KE,g.hX,T.Fj,T.JJ,T.Q7,T.On,E.Nt,S.Ou,m.X$],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),dt})(),X=(()=>{class dt{constructor(Je,Et,zt){this.dialogRef=Je,this.dialog=Et,this.data=zt}onCloseClick(){this.dialogRef.close()}onBugReportClick(){this.dialogRef.afterClosed().subscribe(()=>{const Je=(0,Ye.kZ)();Je.width="550px",Je.data={error:this.data.error},Je.autoFocus=!1,this.dialog.open(oe,Je)}),this.dialogRef.close()}}return dt.\u0275fac=function(Je){return new(Je||dt)(b.Y36(w.so),b.Y36(w.uw),b.Y36(w.WI))},dt.\u0275cmp=b.Xpm({type:dt,selectors:[["perun-web-apps-notification-dialog"]],decls:12,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"hidden","click"],["autofocus","","mat-button","",1,"ml-2",3,"click"]],template:function(Je,Et){1&Je&&(b.TgZ(0,"h1",0),b._uU(1),b.qZA(),b.TgZ(2,"div",1),b._uU(3),b.qZA(),b.TgZ(4,"div",2)(5,"div",3)(6,"button",4),b.NdJ("click",function(){return Et.onBugReportClick()}),b._uU(7),b.ALo(8,"translate"),b.qZA(),b.TgZ(9,"button",5),b.NdJ("click",function(){return Et.onCloseClick()}),b._uU(10),b.ALo(11,"translate"),b.qZA()()()),2&Je&&(b.xp6(1),b.Oqu(Et.data.title),b.xp6(2),b.hij(" ",Et.data.description,"\n"),b.xp6(3),b.Q6J("hidden","error"!==Et.data.type),b.xp6(1),b.hij(" ",b.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_BUG_REPORT")," "),b.xp6(3),b.hij(" ",b.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_CLOSE")," "))},dependencies:[w.uh,w.xY,w.H8,p.lW,m.X$]}),dt})();var r=u(34447);function s(dt,Ut){1&dt&&b._UZ(0,"mat-spinner",3)}function _(dt,Ut){1&dt&&b._UZ(0,"th",15)}function c(dt,Ut){if(1&dt&&(b.TgZ(0,"td",16),b._uU(1),b.qZA()),2&dt){const Je=Ut.$implicit;b.xp6(1),b.hij(" ",Je.userExtSource.extSource.name," ")}}function a(dt,Ut){1&dt&&b._UZ(0,"tr",17)}function i(dt,Ut){1&dt&&b._UZ(0,"tr",18)}function t(dt,Ut){if(1&dt){const Je=b.EpF();b.TgZ(0,"div")(1,"div",4)(2,"p"),b._uU(3),b.ALo(4,"translate"),b.ALo(5,"customTranslate"),b.qZA(),b.TgZ(6,"div",5),b._uU(7),b.ALo(8,"translate"),b.ALo(9,"customTranslate"),b.qZA(),b.TgZ(10,"table",6),b.ynx(11,7),b.YNc(12,_,1,0,"th",8),b.YNc(13,c,2,1,"td",9),b.BQk(),b.YNc(14,a,1,0,"tr",10),b.YNc(15,i,1,0,"tr",11),b.qZA()(),b.TgZ(16,"div",12)(17,"button",13),b.NdJ("click",function(){b.CHM(Je);const zt=b.oxw();return b.KtG(zt.onCancel())}),b._uU(18),b.ALo(19,"translate"),b.ALo(20,"customTranslate"),b.qZA(),b.TgZ(21,"button",14),b.NdJ("click",function(){b.CHM(Je);const zt=b.oxw();return b.KtG(zt.onSubmit())}),b._uU(22),b.ALo(23,"translate"),b.ALo(24,"customTranslate"),b.qZA()()()}if(2&dt){const Je=b.oxw();b.xp6(3),b.hij(" ",b.lcZ(4,7,b.lcZ(5,9,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.DESCRIPTION"))," "),b.xp6(4),b.hij(" ",b.lcZ(8,11,b.lcZ(9,13,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.ASK"))," "),b.xp6(3),b.Q6J("dataSource",Je.dataSource),b.xp6(4),b.Q6J("matHeaderRowDef",Je.displayedColumns),b.xp6(1),b.Q6J("matRowDefColumns",Je.displayedColumns),b.xp6(3),b.hij(" ",b.lcZ(19,15,b.lcZ(20,17,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.CANCEL"))," "),b.xp6(4),b.hij(" ",b.lcZ(23,19,b.lcZ(24,21,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.REMOVE"))," ")}}let n=(()=>{class dt{constructor(Je,Et,zt,un,gn){this.dialogRef=Je,this.data=Et,this.usersManagerService=zt,this.translate=un,this.notificator=gn,this.force=!1,this.displayedColumns=["name"],un.get("SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.SUCCESS").subscribe(Jn=>this.successMessage=Jn)}ngOnInit(){this.theme=this.data.theme,this.dataSource=new A.by(this.data.extSources)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.data.extSources.length?this.usersManagerService.removeUserExtSource(this.data.userId,this.data.extSources.pop().userExtSource.id,this.force).subscribe(()=>{this.onSubmit()},()=>this.loading=!1):(this.loading=!1,this.data.showSuccess&&this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0))}}return dt.\u0275fac=function(Je){return new(Je||dt)(b.Y36(w.so),b.Y36(w.WI),b.Y36(L.Fv),b.Y36(m.sK),b.Y36(V.V6))},dt.\u0275cmp=b.Xpm({type:dt,selectors:[["perun-web-apps-remove-user-ext-source-dialog"]],decls:7,vars:10,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"click"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(Je,Et){1&Je&&(b.TgZ(0,"h1",0),b._uU(1),b.ALo(2,"translate"),b.ALo(3,"customTranslate"),b.qZA(),b.TgZ(4,"div"),b.YNc(5,s,1,0,"mat-spinner",1),b.YNc(6,t,25,23,"div",2),b.qZA()),2&Je&&(b.xp6(1),b.hij(" ",b.lcZ(2,6,b.lcZ(3,8,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.TITLE")),"\n"),b.xp6(3),b.Tol(Et.theme),b.xp6(1),b.Q6J("ngIf",Et.loading),b.xp6(1),b.Q6J("ngIf",!Et.loading))},dependencies:[e.O5,A.BZ,A.fO,A.as,A.w1,A.Dz,A.nj,A.ge,A.ev,A.XQ,A.Gk,w.uh,w.xY,w.H8,p.lW,S.Ou,m.X$,r.a]}),dt})();var o=u(39349);let l=(()=>{class dt{constructor(Je,Et){this.dialogRef=Je,this.data=Et}ngOnInit(){this.value=this.data.value,this.title=this.data.title}onCancel(){this.dialogRef.close()}}return dt.\u0275fac=function(Je){return new(Je||dt)(b.Y36(w.so),b.Y36(w.WI))},dt.\u0275cmp=b.Xpm({type:dt,selectors:[["perun-web-apps-show-value-dialog"]],decls:12,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","overflow-hidden"],["cdkTextareaAutosize","","matInput","","readonly","",1,"w-100","display-fix"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"cdkCopyToClipboard"]],template:function(Je,Et){1&Je&&(b.TgZ(0,"h1",0),b._uU(1),b.qZA(),b.TgZ(2,"div",1)(3,"textarea",2),b._uU(4),b.qZA()(),b.TgZ(5,"div",3)(6,"button",4),b.NdJ("click",function(){return Et.onCancel()}),b._uU(7),b.ALo(8,"translate"),b.qZA(),b.TgZ(9,"button",5),b._uU(10),b.ALo(11,"translate"),b.qZA()()),2&Je&&(b.xp6(1),b.Oqu(Et.title),b.xp6(3),b.Oqu(Et.value),b.xp6(3),b.hij(" ",b.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.SHOW_VALUE.CLOSE")," "),b.xp6(2),b.Q6J("cdkCopyToClipboard",Et.value),b.xp6(1),b.hij(" ",b.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.SHOW_VALUE.COPY")," "))},dependencies:[w.uh,w.xY,w.H8,p.lW,o.IC,E.Nt,D.i3,m.X$],styles:[".display-fix[_ngcontent-%COMP%]{overflow:hidden;border:none}"]}),dt})();function d(dt,Ut){1&dt&&b._UZ(0,"th",12)}function y(dt,Ut){if(1&dt&&(b.TgZ(0,"td",13),b._uU(1),b.qZA()),2&dt){const Je=Ut.$implicit;b.xp6(1),b.Oqu(Je.displayName)}}function k(dt,Ut){1&dt&&b._UZ(0,"tr",14)}function Ie(dt,Ut){1&dt&&b._UZ(0,"tr",15)}let tt=(()=>{class dt{constructor(Je,Et,zt,un,gn){this.dialogRef=Je,this.data=Et,this.notificator=zt,this.translate=un,this.attributesManager=gn,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new A.by(this.data.attributes)}onCancel(){this.dialogRef.close(!1)}onSubmit(){switch(this.data.entity){case"vo":this.attributesManager.setVoAttributes({vo:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>{this.onSuccess()});break;case"group":"resource"===this.data.secondEntity?this.attributesManager.setGroupResourceAttributes({group:this.data.entityId,resource:this.data.secondEntityId,attributes:this.data.attributes}).subscribe(()=>this.onSuccess()):this.attributesManager.setGroupAttributes({group:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>{this.onSuccess()});break;case"user":"facility"===this.data.secondEntity?this.attributesManager.setUserFacilityAttributes({user:this.data.entityId,facility:this.data.secondEntityId,attributes:this.data.attributes}).subscribe(()=>this.onSuccess()):this.attributesManager.setUserAttributes({user:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>{this.onSuccess()});break;case"member":switch(this.data.secondEntity){case"resource":this.attributesManager.setMemberResourceAttributes({member:this.data.entityId,resource:this.data.secondEntityId,attributes:this.data.attributes}).subscribe(()=>this.onSuccess());break;case"group":this.attributesManager.setMemberGroupAttributes({member:this.data.entityId,group:this.data.secondEntityId,attributes:this.data.attributes}).subscribe(()=>this.onSuccess());break;default:this.attributesManager.setMemberAttributes({member:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>{this.onSuccess()})}break;case"facility":"user"===this.data.secondEntity?this.attributesManager.setFacilityUserAttributes({facility:this.data.entityId,user:this.data.secondEntityId,attributes:this.data.attributes}).subscribe(()=>this.onSuccess()):this.attributesManager.setFacilityAttributes({facility:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>{this.onSuccess()});break;case"host":this.attributesManager.setHostAttributes({host:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>{this.onSuccess()});break;case"ues":this.attributesManager.setUserExtSourceAttributes({userExtSource:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>{this.onSuccess()});break;case"resource":switch(this.data.secondEntity){case"member":this.attributesManager.setMemberResourceAttributes({resource:this.data.entityId,member:this.data.secondEntityId,attributes:this.data.attributes}).subscribe(()=>this.onSuccess());break;case"group":this.attributesManager.setResourceGroupAttributes({resource:this.data.entityId,group:this.data.secondEntityId,attributes:this.data.attributes}).subscribe(()=>this.onSuccess());break;default:this.attributesManager.setResourceAttributes({resource:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>this.onSuccess())}}}onSuccess(){this.translate.get("DIALOGS.EDIT_ATTRIBUTES.SUCCESS").subscribe(Je=>{this.notificator.showSuccess(Je),this.dialogRef.close(!0)})}}return dt.\u0275fac=function(Je){return new(Je||dt)(b.Y36(w.so),b.Y36(w.WI),b.Y36(V.V6),b.Y36(m.sK),b.Y36(L.H8))},dt.\u0275cmp=b.Xpm({type:dt,selectors:[["perun-web-apps-edit-attribute-dialog"]],decls:23,vars:18,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(Je,Et){1&Je&&(b.TgZ(0,"h1",0),b._uU(1),b.ALo(2,"translate"),b.qZA(),b.TgZ(3,"div",1)(4,"div"),b._uU(5),b.ALo(6,"translate"),b.qZA(),b.TgZ(7,"div",2),b._uU(8),b.ALo(9,"translate"),b.qZA(),b.TgZ(10,"table",3),b.ynx(11,4),b.YNc(12,d,1,0,"th",5),b.YNc(13,y,2,1,"td",6),b.BQk(),b.YNc(14,k,1,0,"tr",7),b.YNc(15,Ie,1,0,"tr",8),b.qZA()(),b.TgZ(16,"div",9)(17,"button",10),b.NdJ("click",function(){return Et.onCancel()}),b._uU(18),b.ALo(19,"translate"),b.qZA(),b.TgZ(20,"button",11),b.NdJ("click",function(){return Et.onSubmit()}),b._uU(21),b.ALo(22,"translate"),b.qZA()()),2&Je&&(b.xp6(1),b.Oqu(b.lcZ(2,8,"DIALOGS.EDIT_ATTRIBUTES.TITLE")),b.xp6(4),b.hij(" ",b.lcZ(6,10,"DIALOGS.EDIT_ATTRIBUTES.DESCRIPTION")," "),b.xp6(3),b.hij(" ",b.lcZ(9,12,"DIALOGS.EDIT_ATTRIBUTES.ASK")," "),b.xp6(2),b.Q6J("dataSource",Et.dataSource),b.xp6(4),b.Q6J("matHeaderRowDef",Et.displayedColumns),b.xp6(1),b.Q6J("matRowDefColumns",Et.displayedColumns),b.xp6(3),b.hij(" ",b.lcZ(19,14,"DIALOGS.EDIT_ATTRIBUTES.CANCEL")," "),b.xp6(3),b.hij(" ",b.lcZ(22,16,"DIALOGS.EDIT_ATTRIBUTES.SAVE")," "))},dependencies:[A.BZ,A.fO,A.as,A.w1,A.Dz,A.nj,A.ge,A.ev,A.XQ,A.Gk,w.uh,w.xY,w.H8,p.lW,m.X$]}),dt})(),ct=(()=>{class dt{constructor(Je,Et){this.dialogRef=Je,this.data=Et,this.attributeValue=""}ngOnInit(){this.attributeValue=this.data.attribute.value[this.data.index]}cancel(){this.dialogRef.close()}submit(){this.data.attribute.value[this.data.index]=this.attributeValue,this.dialogRef.close(!0)}}return dt.\u0275fac=function(Je){return new(Je||dt)(b.Y36(w.so),b.Y36(w.WI))},dt.\u0275cmp=b.Xpm({type:dt,selectors:[["perun-web-apps-attribute-value-list-edit-dialog"]],decls:13,vars:10,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["cdkTextareaAutosize","true","matInput","",3,"ngModel","ngModelChange"],["mat-dialog-actions","",1,"d-flex"],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"]],template:function(Je,Et){1&Je&&(b.TgZ(0,"h5",0),b._uU(1),b.ALo(2,"translate"),b.qZA(),b.TgZ(3,"div",1)(4,"mat-form-field")(5,"textarea",2),b.NdJ("ngModelChange",function(un){return Et.attributeValue=un}),b.qZA()()(),b.TgZ(6,"div",3)(7,"button",4),b.NdJ("click",function(){return Et.cancel()}),b._uU(8),b.ALo(9,"translate"),b.qZA(),b.TgZ(10,"button",5),b.NdJ("click",function(){return Et.submit()}),b._uU(11),b.ALo(12,"translate"),b.qZA()()),2&Je&&(b.xp6(1),b.hij(" ",b.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.TITLE"),"\n"),b.xp6(4),b.Q6J("ngModel",Et.attributeValue),b.xp6(3),b.hij(" ",b.lcZ(9,6,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.CANCEL_BUTTON")," "),b.xp6(3),b.hij(" ",b.lcZ(12,8,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.SUBMIT_BUTTON")," "))},dependencies:[w.uh,w.xY,w.H8,p.lW,g.KE,T.Fj,T.JJ,T.On,o.IC,E.Nt,m.X$]}),dt})(),Ue=(()=>{class dt{constructor(Je,Et){this.dialogRef=Je,this.data=Et}cancel(){this.dialogRef.close()}submit(){this.dialogRef.close(!0)}}return dt.\u0275fac=function(Je){return new(Je||dt)(b.Y36(w.so),b.Y36(w.WI))},dt.\u0275cmp=b.Xpm({type:dt,selectors:[["perun-web-apps-attribute-value-list-delete-dialog"]],decls:16,vars:13,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],[1,"mt-2","font-weight-bold"],["mat-dialog-actions","",1,"d-flex"],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"click"]],template:function(Je,Et){1&Je&&(b.TgZ(0,"h5",0),b._uU(1),b.ALo(2,"translate"),b.qZA(),b.TgZ(3,"div",1)(4,"div"),b._uU(5),b.ALo(6,"translate"),b.qZA(),b.TgZ(7,"div",2),b._uU(8),b.qZA()(),b.TgZ(9,"div",3)(10,"button",4),b.NdJ("click",function(){return Et.cancel()}),b._uU(11),b.ALo(12,"translate"),b.qZA(),b.TgZ(13,"button",5),b.NdJ("click",function(){return Et.submit()}),b._uU(14),b.ALo(15,"translate"),b.qZA()()),2&Je&&(b.xp6(1),b.hij(" ",b.lcZ(2,5,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.TITLE"),"\n"),b.xp6(4),b.hij(" ",b.lcZ(6,7,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.DESCRIPTION")," "),b.xp6(3),b.hij(" ",Et.data.name," "),b.xp6(3),b.hij(" ",b.lcZ(12,9,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.CANCEL_BUTTON")," "),b.xp6(3),b.hij(" ",b.lcZ(15,11,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.SUBMIT_BUTTON")," "))},dependencies:[w.uh,w.xY,w.H8,p.lW,m.X$]}),dt})();var at=u(98380);function fe(dt,Ut){if(1&dt&&(b.TgZ(0,"perun-web-apps-alert",9),b._uU(1),b.qZA()),2&dt){const Je=b.oxw();b.xp6(1),b.Oqu(Je.pendingEmailsMessage)}}function Oe(dt,Ut){1&dt&&(b.TgZ(0,"mat-error"),b._uU(1),b.ALo(2,"translate"),b.ALo(3,"customTranslate"),b.qZA()),2&dt&&(b.xp6(1),b.Oqu(b.lcZ(2,1,b.lcZ(3,3,"DIALOGS.CHANGE_EMAIL.EMAIL_ERROR"))))}let Ke=(()=>{class dt{constructor(Je,Et,zt,un,gn,Jn){this.dialogRef=Je,this.data=Et,this.translate=zt,this.notificator=un,this.usersManagerService=gn,this.authService=Jn,this.pendingMails=[],zt.get("DIALOGS.CHANGE_EMAIL.SUCCESS").subscribe(si=>this.successMessage=si),zt.get("DIALOGS.CHANGE_EMAIL.PENDING_MAILS_BEGIN").subscribe(si=>this.pendingEmailsMessageStart=si),zt.get("DIALOGS.CHANGE_EMAIL.PENDING_MAILS_END").subscribe(si=>this.pendingEmailsMessageEnd=si)}ngOnInit(){this.emailControl=new T.p4(null,[T.kI.required,T.kI.pattern(/^(([^<>()[\].,;:\s@"]+(\.[^<>()[\].,;:\s@"]+)*)|(".+"))@(([^<>()[\].,;:\s@"]+\.)+[^<>()[\].,;:\s@"]{2,})$/i)]),this.usersManagerService.getPendingPreferredEmailChanges(this.data.userId).subscribe(Je=>{this.pendingMails=Je.filter((zt,un,gn)=>un===gn.indexOf(zt));let Et="";this.pendingMails.forEach(zt=>Et+=`${zt===this.pendingMails[0]?"":", "}${zt}`),this.pendingEmailsMessage=this.pendingEmailsMessageStart+Et+this.pendingEmailsMessageEnd})}onCancel(){this.dialogRef.close()}onSubmit(){const Et=window.location.href.split("/");this.usersManagerService.requestPreferredEmailChange(this.data.userId,this.emailControl.value,this.translate.currentLang,"",Et[0]+"//"+Et[2],this.authService.getIdpFilter()).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.dialogRef.close()})}}return dt.\u0275fac=function(Je){return new(Je||dt)(b.Y36(w.so),b.Y36(w.WI),b.Y36(m.sK),b.Y36(V.V6),b.Y36(L.Fv),b.Y36(V.e8))},dt.\u0275cmp=b.Xpm({type:dt,selectors:[["perun-web-apps-change-email-dialog"]],decls:21,vars:24,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","user-theme"],["alert_type","warn",4,"ngIf"],[1,"w-100"],["matInput","","required","",3,"placeholder","formControl"],[4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],["alert_type","warn"]],template:function(Je,Et){1&Je&&(b.TgZ(0,"h1",0),b._uU(1),b.ALo(2,"translate"),b.ALo(3,"customTranslate"),b.qZA(),b.TgZ(4,"div",1),b.YNc(5,fe,2,1,"perun-web-apps-alert",2),b.TgZ(6,"mat-form-field",3)(7,"label",3),b._UZ(8,"input",4),b.ALo(9,"translate"),b.ALo(10,"customTranslate"),b.qZA(),b.YNc(11,Oe,4,5,"mat-error",5),b.qZA()(),b.TgZ(12,"div",6)(13,"button",7),b.NdJ("click",function(){return Et.onCancel()}),b._uU(14),b.ALo(15,"translate"),b.ALo(16,"customTranslate"),b.qZA(),b.TgZ(17,"button",8),b.NdJ("click",function(){return Et.onSubmit()}),b._uU(18),b.ALo(19,"translate"),b.ALo(20,"customTranslate"),b.qZA()()),2&Je&&(b.xp6(1),b.Oqu(b.lcZ(2,8,b.lcZ(3,10,"DIALOGS.CHANGE_EMAIL.TITLE"))),b.xp6(4),b.Q6J("ngIf",Et.pendingMails.length),b.xp6(3),b.s9C("placeholder",b.lcZ(9,12,b.lcZ(10,14,"DIALOGS.CHANGE_EMAIL.INPUT_PLACEHOLDER"))),b.Q6J("formControl",Et.emailControl),b.xp6(3),b.Q6J("ngIf",Et.emailControl.invalid),b.xp6(3),b.hij(" ",b.lcZ(15,16,b.lcZ(16,18,"DIALOGS.CHANGE_EMAIL.CANCEL"))," "),b.xp6(3),b.Q6J("disabled",!Et.emailControl.valid),b.xp6(1),b.hij(" ",b.lcZ(19,20,b.lcZ(20,22,"DIALOGS.CHANGE_EMAIL.CHANGE"))," "))},dependencies:[e.O5,w.uh,w.xY,w.H8,p.lW,g.TO,g.KE,T.Fj,T.JJ,T.Q7,E.Nt,T.oH,at.w,m.X$,r.a]}),dt})();function je(dt,Ut){1&dt&&b._UZ(0,"mat-spinner",7)}function Le(dt,Ut){1&dt&&(b.TgZ(0,"div",12),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&dt&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.ASK")," "))}function ie(dt,Ut){1&dt&&b._UZ(0,"th",19)}function Ae(dt,Ut){if(1&dt&&(b.TgZ(0,"td",20),b._uU(1),b.qZA()),2&dt){const Je=Ut.$implicit;b.xp6(1),b.Oqu(Je)}}function st(dt,Ut){1&dt&&b._UZ(0,"tr",21)}function ze(dt,Ut){1&dt&&b._UZ(0,"tr",22)}function _t(dt,Ut){if(1&dt&&(b.TgZ(0,"table",13),b.ynx(1,14),b.YNc(2,ie,1,0,"th",15),b.YNc(3,Ae,2,1,"td",16),b.BQk(),b.YNc(4,st,1,0,"tr",17),b.YNc(5,ze,1,0,"tr",18),b.qZA()),2&dt){const Je=b.oxw(2);b.Q6J("dataSource",Je.dataSource),b.xp6(4),b.Q6J("matHeaderRowDef",Je.displayedColumns),b.xp6(1),b.Q6J("matRowDefColumns",Je.displayedColumns)}}function me(dt,Ut){if(1&dt&&(b.TgZ(0,"perun-web-apps-alert",23),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&dt){const Je=b.oxw(2);b.Q6J("alert_type","warn"),b.xp6(1),b.hij(" ",b.lcZ(2,2,Je.data.alert)," ")}}function qe(dt,Ut){if(1&dt&&(b.TgZ(0,"div",8)(1,"p"),b._uU(2),b.ALo(3,"translate"),b.qZA(),b.YNc(4,Le,3,3,"div",9),b.YNc(5,_t,6,3,"table",10),b.YNc(6,me,3,4,"perun-web-apps-alert",11),b.qZA()),2&dt){const Je=b.oxw();b.xp6(2),b.hij(" ",b.lcZ(3,4,Je.data.description)," "),b.xp6(2),b.Q6J("ngIf",Je.data.showAsk),b.xp6(1),b.Q6J("ngIf",Je.data.items.length),b.xp6(1),b.Q6J("ngIf",Je.data.alert)}}function rt(dt,Ut){if(1&dt){const Je=b.EpF();b.TgZ(0,"button",24),b.NdJ("click",function(){b.CHM(Je);const zt=b.oxw();return b.KtG(zt.onSubmit())}),b._uU(1),b.ALo(2,"translate"),b.qZA()}if(2&dt){const Je=b.oxw();b.Q6J("disabled",Je.loading),b.xp6(1),b.hij(" ",b.lcZ(2,2,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.REMOVE_BUTTON")," ")}}function Mt(dt,Ut){if(1&dt){const Je=b.EpF();b.TgZ(0,"button",25),b.NdJ("click",function(){b.CHM(Je);const zt=b.oxw();return b.KtG(zt.onSubmit())}),b._uU(1),b.ALo(2,"translate"),b.qZA()}if(2&dt){const Je=b.oxw();b.Q6J("disabled",Je.loading),b.xp6(1),b.hij(" ",b.lcZ(2,2,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.SUBMIT_BUTTON")," ")}}let Qt=(()=>{class dt{constructor(Je,Et){this.dialogRef=Je,this.data=Et,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new A.by(this.data.items)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.dialogRef.close(!0)}}return dt.\u0275fac=function(Je){return new(Je||dt)(b.Y36(w.so),b.Y36(w.WI))},dt.\u0275cmp=b.Xpm({type:dt,selectors:[["perun-web-apps-universal-confirmation-items-dialog"]],decls:12,vars:13,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","class","ml-2","color","warn",3,"disabled","click",4,"ngIf"],["mat-flat-button","","class","ml-2","color","accent",3,"disabled","click",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],["class","font-weight-bold",4,"ngIf"],["mat-table","","class","w-100",3,"dataSource",4,"ngIf"],[3,"alert_type",4,"ngIf"],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-header-row","","class","font-weight-bolder",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""],[3,"alert_type"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(Je,Et){1&Je&&(b.TgZ(0,"div")(1,"h1",0),b._uU(2),b.ALo(3,"translate"),b.qZA(),b.YNc(4,je,1,0,"mat-spinner",1),b.YNc(5,qe,7,6,"div",2),b.TgZ(6,"div",3)(7,"button",4),b.NdJ("click",function(){return Et.onCancel()}),b._uU(8),b.ALo(9,"translate"),b.qZA(),b.YNc(10,rt,3,4,"button",5),b.YNc(11,Mt,3,4,"button",6),b.qZA()()),2&Je&&(b.Tol(Et.theme),b.xp6(2),b.Oqu(b.lcZ(3,9,Et.data.title)),b.xp6(2),b.Q6J("ngIf",Et.loading),b.xp6(1),b.Q6J("ngIf",!Et.loading),b.xp6(3),b.hij(" ",b.lcZ(9,11,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.CANCEL_BUTTON")," "),b.xp6(2),b.Q6J("ngIf","remove"===Et.data.type),b.xp6(1),b.Q6J("ngIf","confirmation"===Et.data.type))},dependencies:[e.O5,A.BZ,A.fO,A.as,A.w1,A.Dz,A.nj,A.ge,A.ev,A.XQ,A.Gk,w.uh,w.xY,w.H8,p.lW,S.Ou,at.w,m.X$]}),dt})();var Gt=u(57851);let an=(()=>{class dt{transform(Je){const Et=Je.split(":");return Et[Et.length-1]}}return dt.\u0275fac=function(Je){return new(Je||dt)},dt.\u0275pipe=b.Yjl({name:"parseGroupName",type:dt,pure:!0}),dt})();function hn(dt,Ut){1&dt&&b._UZ(0,"mat-spinner",7)}function Nt(dt,Ut){1&dt&&(b.TgZ(0,"perun-web-apps-alert"),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&dt&&(b.xp6(1),b.Oqu(b.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.NO_PATHS")))}function Ht(dt,Ut){1&dt&&(b.TgZ(0,"span",23),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&dt&&(b.xp6(1),b.Oqu(b.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.DIRECT")))}function yt(dt,Ut){1&dt&&(b.TgZ(0,"span",23),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&dt&&(b.xp6(1),b.Oqu(b.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.INCLUDE")))}const Ft=function(dt){return{"min-width":dt}};function Kt(dt,Ut){if(1&dt){const Je=b.EpF();b.TgZ(0,"mat-tree-node",16)(1,"li",17)(2,"div",18),b.NdJ("click",function(){const un=b.CHM(Je).$implicit,gn=b.oxw(3);return b.KtG(gn.navigate(un.id,un.include))}),b._UZ(3,"button",19),b.TgZ(4,"div",20)(5,"span"),b._uU(6),b.ALo(7,"parseGroupName"),b.qZA(),b.YNc(8,Ht,3,3,"span",21),b.YNc(9,yt,3,3,"span",21),b.qZA(),b.TgZ(10,"span",22),b._uU(11),b.qZA()()()()}if(2&dt){const Je=Ut.$implicit,Et=b.oxw(3);b.xp6(2),b.ekj("cursor-pointer",Je.direct||Je.include)("act-disabled",!Je.direct&&!Je.include),b.xp6(2),b.Q6J("ngStyle",b.VKq(11,Ft,Et.getMinWidth(Je.level))),b.xp6(2),b.Oqu(b.lcZ(7,9,Je.name)),b.xp6(2),b.Q6J("ngIf",Je.direct),b.xp6(1),b.Q6J("ngIf",Je.include),b.xp6(2),b.Oqu(Je.description)}}function Cn(dt,Ut){1&dt&&(b.TgZ(0,"span",23),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&dt&&(b.xp6(1),b.Oqu(b.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.DIRECT")))}function Mn(dt,Ut){1&dt&&(b.TgZ(0,"span",23),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&dt&&(b.xp6(1),b.Oqu(b.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.INCLUDE")))}function pn(dt,Ut){if(1&dt){const Je=b.EpF();b.TgZ(0,"mat-nested-tree-node")(1,"li")(2,"div",17)(3,"button",24)(4,"mat-icon",25),b._uU(5),b.qZA()(),b.TgZ(6,"div",18),b.NdJ("click",function(){const un=b.CHM(Je).$implicit,gn=b.oxw(3);return b.KtG(gn.navigate(un.id,un.include))}),b.TgZ(7,"div",20)(8,"span"),b._uU(9),b.ALo(10,"parseGroupName"),b.qZA(),b.YNc(11,Cn,3,3,"span",21),b.YNc(12,Mn,3,3,"span",21),b.qZA(),b.TgZ(13,"span",22),b._uU(14),b.qZA()()(),b.TgZ(15,"ul"),b.GkF(16,26),b.qZA()()()}if(2&dt){const Je=Ut.$implicit,Et=b.oxw(3);b.xp6(3),b.uIk("aria-label","Toggle "+Je.name),b.xp6(2),b.hij(" ",Et.treeControl.isExpanded(Je)?"expand_more":"chevron_right"," "),b.xp6(1),b.ekj("cursor-pointer",Je.direct||Je.include)("act-disabled",!Je.direct&&!Je.include),b.xp6(1),b.Q6J("ngStyle",b.VKq(15,Ft,Et.getMinWidth(Je.level))),b.xp6(2),b.Oqu(b.lcZ(10,13,Je.name)),b.xp6(2),b.Q6J("ngIf",Je.direct),b.xp6(1),b.Q6J("ngIf",Je.include),b.xp6(2),b.Oqu(Je.description),b.xp6(1),b.ekj("example-tree-invisible",!Et.treeControl.isExpanded(Je))}}function Hn(dt,Ut){if(1&dt&&(b.TgZ(0,"mat-tree",13),b.YNc(1,Kt,12,13,"mat-tree-node",14),b.YNc(2,pn,17,17,"mat-nested-tree-node",15),b.qZA()),2&dt){const Je=b.oxw(2);b.Q6J("dataSource",Je.dataSource)("treeControl",Je.treeControl),b.xp6(2),b.Q6J("matTreeNodeDefWhen",Je.hasChild)}}function Ct(dt,Ut){if(1&dt&&(b.TgZ(0,"div",8)(1,"p"),b._uU(2),b.ALo(3,"translate"),b.qZA(),b.TgZ(4,"mat-form-field",9),b._UZ(5,"input",10),b.ALo(6,"translate"),b.qZA(),b.YNc(7,Nt,3,3,"perun-web-apps-alert",11),b.YNc(8,Hn,3,3,"mat-tree",12),b.qZA()),2&dt){const Je=b.oxw();b.xp6(2),b.Oqu(b.lcZ(3,5,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.INFO")),b.xp6(3),b.s9C("placeholder",b.lcZ(6,7,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.FILTER")),b.Q6J("formControl",Je.formControl),b.xp6(2),b.Q6J("ngIf",!Je.dataSource.data.length),b.xp6(1),b.Q6J("ngIf",Je.dataSource.data.length)}}const Ot=function(dt){return{name:dt}};let pt=(()=>{class dt{constructor(Je,Et,zt){this.dialogRef=Je,this.data=Et,this.groupsManagerService=zt,this.treeControl=new Gt.VY(un=>un.children),this.dataSource=new q.WX,this.formControl=new T.p4(""),this.userName="",this.groupTree=[],this.paths=[],this.hasChild=(un,gn)=>!!gn.children&&gn.children.length>0}ngOnInit(){this.loading=!0,this.groupsManagerService.getIndirectMembershipPaths(this.data.member.id,this.data.groupId).subscribe(Je=>{this.paths=Je,this.createGroupTree(this.paths),this.dataSource.data=this.groupTree,this.loading=!1}),this.formControl.valueChanges.subscribe(Je=>{const Et=Je.trim().toLowerCase(),zt=this.paths.filter(un=>un.filter(gn=>gn.name.includes(Et)).length);this.createGroupTree(zt),this.dataSource.data=this.groupTree}),this.userName=(0,Ye.bD)(this.data.member.user)}onCancel(){this.dialogRef.close()}navigate(Je,Et=!1){window.open(`/organizations/${this.data.member.voId}/groups/${Je}${Et?"/settings/relations":""}`,"_blank")}getMinWidth(Je){return String(400-40*Je)+"px"}recursiveSearch(Je,Et,zt){for(const gn of Je)if(gn.name===Et[zt].name)return Et.length===zt+1?(gn.direct=!0,Je):(gn.children=Et[++zt].name.includes(Et[zt-1].name)?this.recursiveSearch(gn.children,Et,zt):[{name:Et[zt].name,id:Et[zt-1].id,description:Et[zt].description,direct:!1,include:!0,level:zt,children:[]}].concat(gn.children),Je);return Je.push({name:Et[zt].name,id:Et[zt].id,description:Et[zt].description,direct:!1,include:!1,level:zt,children:[]}),this.recursiveSearch(Je,Et,zt)}createGroupTree(Je){this.groupTree=[],Je.forEach(Et=>{this.groupTree=this.recursiveSearch(this.groupTree,Et,0)}),this.groupTree.length&&(this.groupTree=this.groupTree[0].children)}}return dt.\u0275fac=function(Je){return new(Je||dt)(b.Y36(w.so),b.Y36(w.WI),b.Y36(L.ff))},dt.\u0275cmp=b.Xpm({type:dt,selectors:[["perun-web-apps-member-tree-view-dialog"]],decls:11,vars:11,consts:[[1,"group-theme"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","","class","mr-0",4,"ngIf"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-flat-button","",3,"click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"mr-0"],[1,"filter-field","ml-2"],["matInput","",3,"formControl","placeholder"],[4,"ngIf"],["class","example-tree",3,"dataSource","treeControl",4,"ngIf"],[1,"example-tree",3,"dataSource","treeControl"],["matTreeNodeToggle","",4,"matTreeNodeDef"],[4,"matTreeNodeDef","matTreeNodeDefWhen"],["matTreeNodeToggle",""],[1,"mat-tree-node"],[1,"row","flex-nowrap",3,"click"],["mat-icon-button",""],[1,"mt-auto","mb-auto",3,"ngStyle"],["class","text-muted ml-2",4,"ngIf"],[1,"text-muted","ml-3"],[1,"text-muted","ml-2"],["mat-icon-button","","matTreeNodeToggle",""],[1,"mr-3"],["matTreeNodeOutlet",""]],template:function(Je,Et){1&Je&&(b.TgZ(0,"div",0)(1,"h1",1),b._uU(2),b.ALo(3,"translate"),b.qZA(),b.YNc(4,hn,1,0,"mat-spinner",2),b.YNc(5,Ct,9,9,"div",3),b.TgZ(6,"div",4)(7,"div",5)(8,"button",6),b.NdJ("click",function(){return Et.onCancel()}),b._uU(9),b.ALo(10,"translate"),b.qZA()()()()),2&Je&&(b.xp6(2),b.hij(" ",b.xi3(3,4,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.TITLE",b.VKq(9,Ot,Et.userName))," "),b.xp6(2),b.Q6J("ngIf",Et.loading),b.xp6(1),b.Q6J("ngIf",!Et.loading),b.xp6(4),b.hij(" ",b.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.CLOSE")," "))},dependencies:[e.O5,e.PC,w.uh,w.xY,w.H8,p.lW,g.KE,T.Fj,T.JJ,E.Nt,S.Ou,T.oH,F.Hw,at.w,q.GZ,q.fQ,q.eu,q.gi,q.uo,q.Ar,m.X$,an],styles:[".example-tree-invisible[_ngcontent-%COMP%]{display:none}.example-tree[_ngcontent-%COMP%] ul[_ngcontent-%COMP%], .example-tree[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0;list-style-type:none}.act-disabled[_ngcontent-%COMP%]{pointer-events:none}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:0!important;min-width:initial!important}"]}),dt})(),lt=(()=>{class dt{constructor(Je,Et){this.dialogRef=Je,this.router=Et}onClose(){this.router.navigate([],{queryParamsHandling:"preserve"}),this.dialogRef.close()}}return dt.\u0275fac=function(Je){return new(Je||dt)(b.Y36(w.so),b.Y36(G.F0))},dt.\u0275cmp=b.Xpm({type:dt,selectors:[["perun-web-apps-mail-change-failed-dialog"]],decls:11,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["alert_type","error"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"]],template:function(Je,Et){1&Je&&(b.TgZ(0,"h1",0),b._uU(1),b.ALo(2,"translate"),b.qZA(),b.TgZ(3,"div",1)(4,"perun-web-apps-alert",2),b._uU(5),b.ALo(6,"translate"),b.qZA()(),b.TgZ(7,"div",3)(8,"button",4),b.NdJ("click",function(){return Et.onClose()}),b._uU(9),b.ALo(10,"translate"),b.qZA()()),2&Je&&(b.xp6(1),b.hij(" ",b.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.TITLE"),"\n"),b.xp6(4),b.Oqu(b.lcZ(6,5,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.INFO")),b.xp6(4),b.hij(" ",b.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.CLOSE")," "))},dependencies:[w.uh,w.xY,w.H8,p.lW,at.w,m.X$]}),dt})();var wt=u(62383);function W(dt,Ut){1&dt&&(b.TgZ(0,"mat-radio-button",16),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&dt&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"DIALOGS.CHANGE_EXPIRATION.VO_RULES")," "))}function Ze(dt,Ut){1&dt&&(b.TgZ(0,"mat-radio-button",17),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&dt&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"DIALOGS.CHANGE_EXPIRATION.GROUP_RULES")," "))}function vt(dt,Ut){1&dt&&(b.TgZ(0,"perun-web-apps-alert",18),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&dt&&(b.xp6(1),b.Oqu(b.lcZ(2,1,"DIALOGS.CHANGE_EXPIRATION.STATUS_CHANGE_INFO")))}let Pt=(()=>{class dt{constructor(Je){this.dialogRef=Je,this.canExtendMembership=!1,this.expirationChanged=new b.vpe,this.statusChange=new b.vpe,this.expirationControl=new T.p4(null)}ngOnInit(){const Je=new Date;this.currentDate=(0,e.p6)(new Date(Je.getFullYear(),Je.getMonth(),Je.getDate()),"yyyy-MM-dd","en_US"),"never"!==this.newExpiration&&this.expirationControl.setValue(this.newExpiration)}parseDate(Je){return(0,e.p6)(Je,"yyyy-MM-dd","en_US")}onChange(){"EXPIRED"===this.status&&("never"===this.newExpiration||this.parseDate(this.expirationControl.value)>this.currentDate)&&this.statusChange.emit(!0),this.expirationChanged.emit(this.newExpiration)}onCancel(){this.dialogRef.close({success:!1})}setExpiration(){this.newExpiration=(0,e.p6)(this.expirationControl.value,"yyyy-MM-dd","en"),this.expirationControl.setValue((0,e.p6)(this.expirationControl.value,"yyyy-MM-dd","en"))}}return dt.\u0275fac=function(Je){return new(Je||dt)(b.Y36(w.so))},dt.\u0275cmp=b.Xpm({type:dt,selectors:[["perun-web-apps-change-expiration-dialog"]],inputs:{currentExpiration:"currentExpiration",newExpiration:"newExpiration",canExtendMembership:"canExtendMembership",minDate:"minDate",maxDate:"maxDate",mode:"mode",status:"status"},outputs:{expirationChanged:"expirationChanged",statusChange:"statusChange"},decls:37,vars:37,consts:[[1,"member-theme"],["mat-dialog-content",""],[1,"d-flex","flex-column",3,"ngModel","ngModelChange"],[3,"value"],["color","primary",1,"cursor-pointer",3,"click"],["readonly","","matInput","",1,"disable",3,"min","max","formControl","matDatepicker","dateChange"],["matSuffix","",3,"for","disabled"],[3,"disabled"],["picker",""],["class","bottom-padding","value","voRules",4,"ngIf"],["class","bottom-padding","value","groupRules",4,"ngIf"],["value","never"],["alert_type","info",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],["value","voRules",1,"bottom-padding"],["value","groupRules",1,"bottom-padding"],["alert_type","info"]],template:function(Je,Et){if(1&Je){const zt=b.EpF();b.TgZ(0,"div",0)(1,"div",1)(2,"p")(3,"strong"),b._uU(4),b.ALo(5,"translate"),b.qZA(),b._uU(6),b.ALo(7,"parseDate"),b.qZA(),b.TgZ(8,"p")(9,"strong"),b._uU(10),b.ALo(11,"translate"),b.qZA(),b._uU(12),b.ALo(13,"parseDate"),b.qZA(),b.TgZ(14,"mat-radio-group",2),b.NdJ("ngModelChange",function(gn){return Et.newExpiration=gn}),b.TgZ(15,"mat-radio-button",3)(16,"mat-form-field",4),b.NdJ("click",function(){b.CHM(zt);const gn=b.MAs(23);return b.KtG(gn.open())}),b.TgZ(17,"mat-label"),b._uU(18),b.ALo(19,"translate"),b.qZA(),b.TgZ(20,"input",5),b.NdJ("dateChange",function(){return Et.setExpiration()}),b.qZA(),b._UZ(21,"mat-datepicker-toggle",6)(22,"mat-datepicker",7,8),b.qZA()(),b.YNc(24,W,3,3,"mat-radio-button",9),b.YNc(25,Ze,3,3,"mat-radio-button",10),b.TgZ(26,"mat-radio-button",11),b._uU(27),b.ALo(28,"translate"),b.qZA()(),b.YNc(29,vt,3,3,"perun-web-apps-alert",12),b.qZA(),b.TgZ(30,"div",13)(31,"button",14),b.NdJ("click",function(){return Et.onCancel()}),b._uU(32),b.ALo(33,"translate"),b.qZA(),b.TgZ(34,"button",15),b.NdJ("click",function(){return Et.onChange()}),b._uU(35),b.ALo(36,"translate"),b.qZA()()()}if(2&Je){const zt=b.MAs(23);b.xp6(4),b.Oqu(b.lcZ(5,21,"DIALOGS.CHANGE_EXPIRATION.CURRENT_EXPIRATION")),b.xp6(2),b.hij(" ",b.lcZ(7,23,Et.currentExpiration)," "),b.xp6(4),b.Oqu(b.lcZ(11,25,"DIALOGS.CHANGE_EXPIRATION.NEW_EXPIRATION")),b.xp6(2),b.hij(" ",Et.newExpiration?b.lcZ(13,27,Et.newExpiration):"never"," "),b.xp6(2),b.Q6J("ngModel",Et.newExpiration),b.xp6(1),b.s9C("value",Et.expirationControl.value),b.xp6(3),b.Oqu(b.lcZ(19,29,"DIALOGS.CHANGE_EXPIRATION.DATE_LABEL")),b.xp6(2),b.Q6J("min",Et.minDate)("max",Et.maxDate)("formControl",Et.expirationControl)("matDatepicker",zt),b.xp6(1),b.Q6J("for",zt)("disabled",!1),b.xp6(1),b.Q6J("disabled",!1),b.xp6(2),b.Q6J("ngIf",Et.canExtendMembership&&"vo"===Et.mode),b.xp6(1),b.Q6J("ngIf",Et.canExtendMembership&&"group"===Et.mode),b.xp6(2),b.hij(" ",b.lcZ(28,31,"DIALOGS.CHANGE_EXPIRATION.EXPIRATION_NEVER")," "),b.xp6(2),b.Q6J("ngIf","EXPIRED"===Et.status&&("never"===Et.newExpiration||Et.parseDate(Et.expirationControl.value)>Et.currentDate)),b.xp6(3),b.hij(" ",b.lcZ(33,33,"DIALOGS.CHANGE_EXPIRATION.CANCEL")," "),b.xp6(2),b.Q6J("disabled",Et.expirationControl.invalid),b.xp6(1),b.hij(" ",b.lcZ(36,35,"DIALOGS.CHANGE_EXPIRATION.SAVE")," ")}},dependencies:[e.O5,w.xY,w.H8,p.lW,g.KE,g.hX,g.R9,T.Fj,T.JJ,T.On,E.Nt,R.VQ,R.U0,v.Mq,v.hl,v.nW,T.oH,at.w,m.X$,wt.M],styles:[".disable[_ngcontent-%COMP%]{cursor:not-allowed;pointer-events:none}.bottom-padding[_ngcontent-%COMP%]{padding-bottom:20px} .mat-form-field.mat-focused .mat-form-field-underline{display:none}"]}),dt})();function en(dt,Ut){1&dt&&b._UZ(0,"mat-spinner",4)}function Tn(dt,Ut){if(1&dt){const Je=b.EpF();b.TgZ(0,"perun-web-apps-change-expiration-dialog",5),b.NdJ("statusChange",function(){b.CHM(Je);const zt=b.oxw();return b.KtG(zt.changeStatus=!0)})("expirationChanged",function(zt){b.CHM(Je);const un=b.oxw();return b.KtG(un.onExpirationChanged(zt))}),b.qZA()}if(2&dt){const Je=b.oxw();b.Q6J("minDate",Je.minDate)("maxDate",Je.maxDate)("currentExpiration",Je.currentExpiration)("newExpiration",Je.newExpiration)("canExtendMembership",Je.canExtendMembership)("mode","group")("status",Je.status)}}let Gn=(()=>{class dt{constructor(Je,Et,zt,un,gn,Jn,si){this.dialogRef=Je,this.data=Et,this.attributesManagerService=zt,this.memberManager=un,this.groupManager=gn,this.translate=Jn,this.notificator=si,this.loading=!1,this.canExtendMembership=!1,this.expirationAttr=null,Jn.get("DIALOGS.CHANGE_EXPIRATION.SUCCESS").subscribe(mi=>this.successMessage=mi)}ngOnInit(){this.status=this.data.status,this.loading=!0;const Je=new Date;"VALID"!==this.data.status?this.maxDate="EXPIRED"===this.data.status?void 0:new Date(Je.getFullYear(),Je.getMonth(),Je.getDate()):this.minDate=new Date(Je.getFullYear(),Je.getMonth(),Je.getDate()),this.expirationAttr=this.data.expirationAttr,this.currentExpiration=this.expirationAttr?.value??"never",this.newExpiration=this.currentExpiration,this.data.statusChanged&&("VALID"!==this.data.status?(this.newExpiration=(0,e.p6)(Je,"yyyy-MM-dd","en"),this.maxDate=Je):this.newExpiration="never"),"VALID"===this.data.status?this.attributesManagerService.getGroupAttributeByName(this.data.groupId,nt.r.GROUP_DEF_EXPIRATION_RULES).subscribe(Et=>{null!==Et.value?this.groupManager.canExtendMembershipInGroup(this.data.memberId,this.data.groupId).subscribe(zt=>{this.canExtendMembership=!!zt,this.loading=!1},()=>this.loading=!1):this.loading=!1},()=>this.loading=!1):this.loading=!1}onExpirationChanged(Je){this.loading=!0,"groupRules"===Je?this.groupManager.extendMembershipInGroup(this.data.memberId,this.data.groupId).subscribe(()=>{this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0})},()=>this.loading=!1):(this.expirationAttr.value="never"===Je?null:Je,this.attributesManagerService.setMemberGroupAttributes({member:this.data.memberId,group:this.data.groupId,attributes:[this.expirationAttr]}).subscribe(()=>{this.changeStatus&&"EXPIRED"===this.status?this.groupManager.setGroupsMemberStatus(this.data.memberId,this.data.groupId,"VALID").subscribe(Et=>{this.translate.get("DIALOGS.CHANGE_STATUS.SUCCESS").subscribe(zt=>{this.notificator.showSuccess(zt),this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0,member:Et})})},()=>this.loading=!1):(this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0}))},()=>this.loading=!1))}}return dt.\u0275fac=function(Je){return new(Je||dt)(b.Y36(w.so),b.Y36(w.WI),b.Y36(L.H8),b.Y36(L.uq),b.Y36(L.ff),b.Y36(m.sK),b.Y36(V.V6))},dt.\u0275cmp=b.Xpm({type:dt,selectors:[["perun-web-apps-change-group-expiration-dialog"]],decls:6,vars:5,consts:[[1,"member-theme"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[3,"minDate","maxDate","currentExpiration","newExpiration","canExtendMembership","mode","status","statusChange","expirationChanged",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"minDate","maxDate","currentExpiration","newExpiration","canExtendMembership","mode","status","statusChange","expirationChanged"]],template:function(Je,Et){1&Je&&(b.TgZ(0,"div",0)(1,"h1",1),b._uU(2),b.ALo(3,"translate"),b.qZA(),b.YNc(4,en,1,0,"mat-spinner",2),b.YNc(5,Tn,1,7,"perun-web-apps-change-expiration-dialog",3),b.qZA()),2&Je&&(b.xp6(2),b.Oqu(b.lcZ(3,3,"DIALOGS.CHANGE_GROUP_EXPIRATION.TITLE")),b.xp6(2),b.Q6J("ngIf",Et.loading),b.xp6(1),b.Q6J("ngIf",!Et.loading))},dependencies:[e.O5,w.uh,S.Ou,Pt,m.X$]}),dt})();var Ln=u(13469);function qn(dt,Ut){1&dt&&(b.TgZ(0,"mat-error"),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&dt&&(b.xp6(1),b.Oqu(b.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.FIELD_EMPTY")))}function fi(dt,Ut){if(1&dt){const Je=b.EpF();b.TgZ(0,"form",5)(1,"div",6)(2,"mat-form-field")(3,"mat-label"),b._uU(4),b.ALo(5,"translate"),b.qZA(),b._UZ(6,"input",7),b.TgZ(7,"mat-icon",8),b.NdJ("click",function(){b.CHM(Je);const zt=b.oxw();return b.KtG(zt.showOldPassword=!zt.showOldPassword)}),b._uU(8),b.qZA(),b.YNc(9,qn,3,3,"mat-error",9),b.qZA(),b._UZ(10,"perun-web-apps-password-form",10),b.qZA()()}if(2&dt){const Je=b.oxw();b.Q6J("formGroup",Je.formGroup),b.xp6(4),b.Oqu(b.lcZ(5,7,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.OLD_PASSWORD")),b.xp6(2),b.Q6J("type",Je.showOldPassword?"text":"password"),b.xp6(2),b.hij(" ",Je.showOldPassword?"visibility_off":"visibility"," "),b.xp6(1),b.Q6J("ngIf",Je.oldPwd.hasError("required")),b.xp6(1),b.Q6J("formGroup",Je.formGroup)("namespace",Je.data.namespace)}}function ci(dt,Ut){1&dt&&b._UZ(0,"mat-spinner",11)}function Qn(dt,Ut){if(1&dt){const Je=b.EpF();b.TgZ(0,"div",12)(1,"div",13)(2,"button",14),b.NdJ("click",function(){b.CHM(Je);const zt=b.oxw();return b.KtG(zt.close())}),b._uU(3),b.ALo(4,"translate"),b.qZA(),b.TgZ(5,"button",15),b.NdJ("click",function(){b.CHM(Je);const zt=b.oxw();return b.KtG(zt.changePassword())}),b._uU(6),b.ALo(7,"translate"),b.qZA()()()}if(2&dt){const Je=b.oxw();b.xp6(3),b.hij(" ",b.lcZ(4,3,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.CANCEL")," "),b.xp6(2),b.Q6J("disabled",Je.formGroup.invalid||Je.formGroup.pending),b.xp6(1),b.hij(" ",b.lcZ(7,5,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.CHANGE")," ")}}let Bn=(()=>{class dt{constructor(Je,Et,zt,un,gn,Jn,si){this.dialogRef=Je,this.data=Et,this._formBuilder=zt,this.usersManagerService=un,this.apiRequestConfiguration=gn,this.notificator=Jn,this.translate=si,this.showOldPassword=!1,si.get("SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.SUCCESS").subscribe(mi=>this.successMessage=mi)}ngOnInit(){this.formGroup=this._formBuilder.group({oldPasswordCtrl:["",T.kI.required],passwordCtrl:["",T.kI.required,[(0,ce.yT)(this.data.namespace,this.usersManagerService,this.apiRequestConfiguration)]],passwordAgainCtrl:[""]},{validators:Ye.dN.passwordMatchValidator}),this.oldPwd=this.formGroup.get("oldPasswordCtrl"),this.newPwd=this.formGroup.get("passwordCtrl"),this.newPwdAgain=this.formGroup.get("passwordAgainCtrl")}close(){this.dialogRef.close(!1)}changePassword(){this.loading=!0,this.usersManagerService.changePasswordForLogin({login:this.data.login,namespace:this.data.namespace,newPassword:this.newPwd.value,oldPassword:this.oldPwd.value,checkOldPassword:!0}).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)})}}return dt.\u0275fac=function(Je){return new(Je||dt)(b.Y36(w.so),b.Y36(w.WI),b.Y36(T.QS),b.Y36(L.Fv),b.Y36(V.F5),b.Y36(V.V6),b.Y36(m.sK))},dt.\u0275cmp=b.Xpm({type:dt,selectors:[["perun-web-apps-change-password-dialog"]],decls:7,vars:6,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","user-theme"],[3,"formGroup",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[3,"formGroup"],[1,"display-flex"],["formControlName","oldPasswordCtrl","matInput","","required","",3,"type"],["matSuffix","",3,"click"],[4,"ngIf"],[3,"formGroup","namespace"],[1,"ml-auto","mr-auto"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(Je,Et){1&Je&&(b.TgZ(0,"h1",0),b._uU(1),b.ALo(2,"translate"),b.qZA(),b.TgZ(3,"div",1),b.YNc(4,fi,11,9,"form",2),b.YNc(5,ci,1,0,"mat-spinner",3),b.qZA(),b.YNc(6,Qn,8,7,"div",4)),2&Je&&(b.xp6(1),b.Oqu(b.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.TITLE")),b.xp6(3),b.Q6J("ngIf",!Et.loading),b.xp6(1),b.Q6J("ngIf",Et.loading),b.xp6(1),b.Q6J("ngIf",!Et.loading))},dependencies:[e.O5,w.uh,w.xY,w.H8,p.lW,g.TO,g.KE,g.hX,g.R9,T._Y,T.Fj,T.JJ,T.JL,T.Q7,E.Nt,S.Ou,T.sg,T.u,F.Hw,Ln.G,m.X$],styles:[".display-flex[_ngcontent-%COMP%]{display:flex;flex-direction:column}.white-space-pre[_ngcontent-%COMP%]{white-space:pre}mat-icon[_ngcontent-%COMP%]:hover{cursor:default}"]}),dt})();function nr(dt,Ut){1&dt&&b._UZ(0,"mat-spinner",4)}function Wn(dt,Ut){if(1&dt){const Je=b.EpF();b.TgZ(0,"perun-web-apps-change-expiration-dialog",5),b.NdJ("statusChange",function(){b.CHM(Je);const zt=b.oxw();return b.KtG(zt.changeStatus=!0)})("expirationChanged",function(zt){b.CHM(Je);const un=b.oxw();return b.KtG(un.onExpirationChanged(zt))}),b.qZA()}if(2&dt){const Je=b.oxw();b.Q6J("minDate",Je.minDate)("maxDate",Je.maxDate)("currentExpiration",Je.currentExpiration)("newExpiration",Je.newExpiration)("canExtendMembership",Je.canExtendMembership)("mode","vo")("status",Je.status)}}let ri=(()=>{class dt{constructor(Je,Et,zt,un,gn,Jn){this.dialogRef=Je,this.data=Et,this.attributesManagerService=zt,this.memberManager=un,this.translate=gn,this.notificator=Jn,this.loading=!1,this.canExtendMembership=!1,this.expirationAttr=null,gn.get("DIALOGS.CHANGE_EXPIRATION.SUCCESS").subscribe(si=>this.successMessage=si)}ngOnInit(){this.status=this.data.status,this.loading=!0;const Je=new Date;"VALID"!==this.data.status?this.maxDate="EXPIRED"===this.data.status?void 0:new Date(Je.getFullYear(),Je.getMonth(),Je.getDate()):this.minDate=new Date(Je.getFullYear(),Je.getMonth(),Je.getDate()),this.expirationAttr=this.data.expirationAttr,this.currentExpiration=this.expirationAttr?.value??"never",this.newExpiration=this.currentExpiration,this.data.statusChanged&&("VALID"!==this.data.status?(this.newExpiration=(0,e.p6)(Je,"yyyy-MM-dd","en"),this.maxDate=Je):this.newExpiration="never"),"VALID"===this.data.status?this.attributesManagerService.getVoAttributeByName(this.data.voId,nt.r.VO_DEF_EXPIRATION_RULES).subscribe(Et=>{null!==Et.value?this.memberManager.canExtendMembership(this.data.memberId).subscribe(zt=>{this.canExtendMembership=!!zt,this.loading=!1},()=>this.loading=!1):this.loading=!1},()=>this.loading=!1):this.loading=!1}onExpirationChanged(Je){this.loading=!0,"voRules"===Je?this.memberManager.extendMembership(this.data.memberId).subscribe(()=>{this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0})},()=>this.loading=!1):(this.expirationAttr.value="never"===Je?null:Je,this.attributesManagerService.setMemberAttribute({member:this.data.memberId,attribute:this.expirationAttr}).subscribe(()=>{this.changeStatus&&"EXPIRED"===this.status?this.memberManager.setStatus(this.data.memberId,"VALID").subscribe(Et=>{this.translate.get("DIALOGS.CHANGE_STATUS.SUCCESS").subscribe(zt=>{this.notificator.showSuccess(zt),this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0,member:Et})})},()=>this.loading=!1):(this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0}))},()=>this.loading=!1))}}return dt.\u0275fac=function(Je){return new(Je||dt)(b.Y36(w.so),b.Y36(w.WI),b.Y36(L.H8),b.Y36(L.uq),b.Y36(m.sK),b.Y36(V.V6))},dt.\u0275cmp=b.Xpm({type:dt,selectors:[["perun-web-apps-change-vo-expiration-dialog"]],decls:6,vars:5,consts:[[1,"member-theme"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[3,"minDate","maxDate","currentExpiration","newExpiration","canExtendMembership","mode","status","statusChange","expirationChanged",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"minDate","maxDate","currentExpiration","newExpiration","canExtendMembership","mode","status","statusChange","expirationChanged"]],template:function(Je,Et){1&Je&&(b.TgZ(0,"div",0)(1,"h1",1),b._uU(2),b.ALo(3,"translate"),b.qZA(),b.YNc(4,nr,1,0,"mat-spinner",2),b.YNc(5,Wn,1,7,"perun-web-apps-change-expiration-dialog",3),b.qZA()),2&Je&&(b.xp6(2),b.Oqu(b.lcZ(3,3,"DIALOGS.CHANGE_VO_EXPIRATION.TITLE")),b.xp6(2),b.Q6J("ngIf",Et.loading),b.xp6(1),b.Q6J("ngIf",!Et.loading))},dependencies:[e.O5,w.uh,S.Ou,Pt,m.X$]}),dt})();function Qi(dt,Ut){1&dt&&b._UZ(0,"mat-spinner",4)}function ji(dt,Ut){if(1&dt){const Je=b.EpF();b.TgZ(0,"perun-web-apps-change-expiration-dialog",5),b.NdJ("expirationChanged",function(zt){b.CHM(Je);const un=b.oxw();return b.KtG(un.onExpirationChanged(zt))}),b.qZA()}if(2&dt){const Je=b.oxw();b.Q6J("minDate",Je.minDate)("currentExpiration",Je.currentExpiration)("newExpiration",Je.newExpiration)("mode","sponsor")}}let vi=(()=>{class dt{constructor(Je,Et,zt,un,gn,Jn,si){this.dialogRef=Je,this.data=Et,this.attributesManagerService=zt,this.memberManager=un,this.groupManager=gn,this.translate=Jn,this.notificator=si,this.loading=!1,Jn.get("DIALOGS.CHANGE_EXPIRATION.SUCCESS").subscribe(mi=>this.successMessage=mi)}ngOnInit(){this.loading=!0,this.currentExpiration=this.data.sponsor.validityTo?this.data.sponsor.validityTo:"never",this.newExpiration=this.currentExpiration;const Je=new Date;this.minDate=new Date(Je.getFullYear(),Je.getMonth(),Je.getDate()),this.loading=!1}onExpirationChanged(Je){this.loading=!0,this.memberManager.updateSponsorshipValidity(this.data.memberId,this.data.sponsor.user.id,"never"===Je?null:Je).subscribe(()=>{this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0)},()=>this.loading=!1)}}return dt.\u0275fac=function(Je){return new(Je||dt)(b.Y36(w.so),b.Y36(w.WI),b.Y36(L.H8),b.Y36(L.uq),b.Y36(L.ff),b.Y36(m.sK),b.Y36(V.V6))},dt.\u0275cmp=b.Xpm({type:dt,selectors:[["perun-web-apps-change-sponsorship-expiration-dialog"]],decls:6,vars:5,consts:[[1,"member-theme"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[3,"minDate","currentExpiration","newExpiration","mode","expirationChanged",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"minDate","currentExpiration","newExpiration","mode","expirationChanged"]],template:function(Je,Et){1&Je&&(b.TgZ(0,"div",0)(1,"h1",1),b._uU(2),b.ALo(3,"translate"),b.qZA(),b.YNc(4,Qi,1,0,"mat-spinner",2),b.YNc(5,ji,1,4,"perun-web-apps-change-expiration-dialog",3),b.qZA()),2&Je&&(b.xp6(2),b.Oqu(b.lcZ(3,3,"DIALOGS.CHANGE_SPONSORSHIP_EXPIRATION.TITLE")),b.xp6(2),b.Q6J("ngIf",Et.loading),b.xp6(1),b.Q6J("ngIf",!Et.loading))},dependencies:[e.O5,w.uh,S.Ou,Pt,m.X$]}),dt})();function wi(dt,Ut){1&dt&&b._UZ(0,"mat-spinner",4)}function cr(dt,Ut){1&dt&&(b.TgZ(0,"span",11),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&dt&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ACTIVE_HINT")," "))}function Or(dt,Ut){1&dt&&(b.TgZ(0,"span",11),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&dt&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.INACTIVE_HINT")," "))}function dr(dt,Ut){if(1&dt){const Je=b.EpF();b.TgZ(0,"mat-radio-group",12),b.NdJ("ngModelChange",function(zt){b.CHM(Je);const un=b.oxw(2);return b.KtG(un.asyncValidation=zt)}),b.TgZ(1,"span",13),b._uU(2),b.ALo(3,"translate"),b.qZA(),b.TgZ(4,"mat-radio-button",14),b._uU(5),b.ALo(6,"translate"),b.qZA(),b.TgZ(7,"mat-radio-button",14),b._uU(8),b.ALo(9,"translate"),b.qZA()()}if(2&dt){const Je=b.oxw(2);b.Q6J("ngModel",Je.asyncValidation),b.xp6(2),b.hij(" ",b.lcZ(3,6,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.VALIDATE")," : "),b.xp6(2),b.Q6J("value",!1),b.xp6(1),b.hij(" ",b.lcZ(6,8,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.SYNC")," "),b.xp6(2),b.Q6J("value",!0),b.xp6(1),b.hij(" ",b.lcZ(9,10,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ASYNC")," ")}}function bi(dt,Ut){1&dt&&(b.TgZ(0,"span",11),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&dt&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.SYNC_HINT")," "))}function ur(dt,Ut){1&dt&&(b.TgZ(0,"span",11),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&dt&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ASYNC_HINT")," "))}function hr(dt,Ut){if(1&dt&&(b.TgZ(0,"div",5)(1,"p",6),b._uU(2),b.TgZ(3,"span",7),b._uU(4),b.qZA(),b._uU(5),b.TgZ(6,"span",7),b._uU(7),b.qZA()(),b.TgZ(8,"p")(9,"strong",8),b._uU(10),b.ALo(11,"translate"),b.qZA(),b._uU(12),b.qZA(),b.TgZ(13,"p")(14,"strong",8),b._uU(15),b.ALo(16,"translate"),b.qZA(),b._uU(17),b.qZA(),b.YNc(18,cr,3,3,"span",9),b.YNc(19,Or,3,3,"span",9),b.YNc(20,dr,10,12,"mat-radio-group",10),b.YNc(21,bi,3,3,"span",9),b.YNc(22,ur,3,3,"span",9),b.qZA()),2&dt){const Je=b.oxw();b.xp6(2),b.hij(" ",Je.group.name," "),b.xp6(2),b.hij("#",Je.group.id,""),b.xp6(1),b.hij(" - ",Je.resource.name," "),b.xp6(2),b.hij("#",Je.resource.id,""),b.xp6(3),b.hij(" ",b.lcZ(11,13,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.CURRENT")," : "),b.xp6(2),b.hij(" ",Je.status," "),b.xp6(3),b.hij(" ",b.lcZ(16,15,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.NEW")," : "),b.xp6(2),b.hij(" ",Je.getReversedStatus()," "),b.xp6(1),b.Q6J("ngIf","INACTIVE"===Je.status||"FAILED"===Je.status),b.xp6(1),b.Q6J("ngIf","ACTIVE"===Je.status),b.xp6(1),b.Q6J("ngIf","INACTIVE"===Je.status||"FAILED"===Je.status),b.xp6(1),b.Q6J("ngIf",("INACTIVE"===Je.status||"FAILED"===Je.status)&&!1===Je.asyncValidation),b.xp6(1),b.Q6J("ngIf",("INACTIVE"===Je.status||"FAILED"===Je.status)&&!0===Je.asyncValidation)}}function zr(dt,Ut){if(1&dt){const Je=b.EpF();b.TgZ(0,"div",15)(1,"button",16),b.NdJ("click",function(){b.CHM(Je);const zt=b.oxw();return b.KtG(zt.onCancel())}),b._uU(2),b.ALo(3,"translate"),b.qZA(),b.TgZ(4,"button",17),b.NdJ("click",function(){b.CHM(Je);const zt=b.oxw();return b.KtG(zt.onSubmit())}),b._uU(5),b.ALo(6,"translate"),b.qZA()()}if(2&dt){const Je=b.oxw();b.xp6(2),b.hij(" ",b.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.CANCEL")," "),b.xp6(2),b.Q6J("disabled",Je.loading),b.xp6(1),b.hij(" ",b.lcZ(6,5,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG."+("ACTIVE"===Je.status?"DEACTIVATE":"ACTIVATE"))," ")}}let Ei=(()=>{class dt{constructor(Je,Et,zt,un){this.dialogRef=Je,this.data=Et,this.resourceService=zt,this.groupService=un,this.loading=!1,this.asyncValidation=!1,this.resource=null,this.group=null}ngOnInit(){this.loading=!0,this.status=this.data.status,this.theme=this.data.theme,this.resourceService.getResourceById(this.data.resourceId).subscribe(Je=>{this.resource=Je,this.groupService.getGroupById(this.data.groupId).subscribe(Et=>{this.group=Et,this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,"ACTIVE"===this.status?this.resourceService.deactivateGroupResourceAssignment(this.data.groupId,this.data.resourceId).subscribe(()=>{this.dialogRef.close(!0),this.loading=!1},()=>this.loading=!1):this.resourceService.activateGroupResourceAssignment(this.data.groupId,this.data.resourceId,this.asyncValidation).subscribe(()=>{this.dialogRef.close(!0),this.loading=!1},()=>this.loading=!1)}getReversedStatus(){return"ACTIVE"===this.status?"INACTIVE":"ACTIVE"}}return dt.\u0275fac=function(Je){return new(Je||dt)(b.Y36(w.so),b.Y36(w.WI),b.Y36(L.xk),b.Y36(L.ff))},dt.\u0275cmp=b.Xpm({type:dt,selectors:[["perun-web-apps-change-group-resource-assigment-dialog"]],decls:7,vars:9,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"mb-4"],[1,"text-muted","id-font"],[1,"mr-2"],["class","text-muted",4,"ngIf"],["class","d-flex flex-column mt-3",3,"ngModel","ngModelChange",4,"ngIf"],[1,"text-muted"],[1,"d-flex","flex-column","mt-3",3,"ngModel","ngModelChange"],[1,"font-weight-bold"],[3,"value"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["data-cy","change-status-button","mat-flat-button","","color","accent",3,"disabled","click"]],template:function(Je,Et){1&Je&&(b.TgZ(0,"div")(1,"h1",0),b._uU(2),b.ALo(3,"translate"),b.qZA(),b.YNc(4,wi,1,0,"mat-spinner",1),b.YNc(5,hr,23,17,"div",2),b.YNc(6,zr,7,7,"div",3),b.qZA()),2&Je&&(b.Tol(Et.theme),b.xp6(2),b.hij(" ",b.lcZ(3,7,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.TITLE")," "),b.xp6(2),b.Q6J("ngIf",Et.loading),b.xp6(1),b.Q6J("ngIf",!Et.loading),b.xp6(1),b.Q6J("ngIf",!Et.loading))},dependencies:[e.O5,w.uh,w.xY,w.H8,p.lW,T.JJ,T.On,S.Ou,R.VQ,R.U0,m.X$],styles:[".id-font[_ngcontent-%COMP%]{font-size:1rem}"]}),dt})();var yr=u(90995);let Dt=(()=>{class dt{constructor(Je,Et,zt,un,gn){this.dialogRef=Je,this.data=Et,this.notificator=zt,this.usersService=un,this.translate=gn,this.force=!1,this.displayedColumns=["name"],this.relations=[]}ngOnInit(){this.theme=this.data.theme,this.dataSource=new A.by([this.data.user]),this.relations.push(this.translate.instant("DIALOGS.ANONYMIZE_USER.GROUP_RELATION")),this.relations.push(this.translate.instant("DIALOGS.ANONYMIZE_USER.VO_RELATION"))}onCancel(){this.dialogRef.close(!1)}anonymizeUser(){this.loading=!0,this.usersService.anonymizeUser(this.data.user.id,this.force).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.ANONYMIZE_USER.SUCCESS_NOTIFICATION")),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}onSubmit(Je){this.force=Je.force,Je.deleted?this.anonymizeUser():this.onCancel()}}return dt.\u0275fac=function(Je){return new(Je||dt)(b.Y36(w.so),b.Y36(w.WI),b.Y36(V.V6),b.Y36(L.Fv),b.Y36(m.sK))},dt.\u0275cmp=b.Xpm({type:dt,selectors:[["perun-web-apps-anonymize-user-dialog"]],decls:2,vars:8,consts:[[3,"entityNames","entityType","relations","loading","anonymize","deleted"]],template:function(Je,Et){1&Je&&(b.TgZ(0,"div")(1,"perun-web-apps-delete-entity-dialog",0),b.NdJ("deleted",function(un){return Et.onSubmit(un)}),b.qZA()()),2&Je&&(b.Tol(Et.theme),b.xp6(1),b.Q6J("entityNames",Et.dataSource)("entityType","user")("relations",Et.relations)("loading",Et.loading)("anonymize",!0))},dependencies:[yr.e]}),dt})(),nn=(()=>{class dt{constructor(Je){this.dialogRef=Je}close(){this.dialogRef.close()}}return dt.\u0275fac=function(Je){return new(Je||dt)(b.Y36(w.so))},dt.\u0275cmp=b.Xpm({type:dt,selectors:[["perun-web-apps-export-data-dialog"]],decls:6,vars:4,consts:[[1,"loading-container"],["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","user-theme"],[1,"mr-auto","ml-auto",3,"diameter"]],template:function(Je,Et){1&Je&&(b.TgZ(0,"div",0)(1,"h1",1),b._uU(2),b.ALo(3,"translate"),b.qZA(),b.TgZ(4,"div",2),b._UZ(5,"mat-spinner",3),b.qZA()()),2&Je&&(b.xp6(2),b.hij(" ",b.lcZ(3,2,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.EXPORT_LOADING")," "),b.xp6(3),b.Q6J("diameter",50))},dependencies:[w.uh,w.xY,S.Ou,m.X$],styles:[".loading-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center}"]}),dt})();function ht(dt,Ut){if(1&dt&&(b.TgZ(0,"mat-option",13),b._uU(1),b.qZA()),2&dt){const Je=Ut.$implicit,Et=b.oxw();b.Q6J("value",Et.selectedUnit),b.xp6(1),b.hij(" ",Je," ")}}let Vt=(()=>{class dt{constructor(Je,Et,zt,un,gn){this.dialogRef=Je,this.data=Et,this.rtMessagesService=zt,this.notificator=un,this.translate=gn,this.resource="",this.currentQuota="",this.units=["MiB","GiB","TiB"],this.selectedUnit="GiB",gn.get("DIALOGS.REQUEST_DATA_QUOTA_CHANGE.SUCCESS").subscribe(Jn=>this.successMessage=Jn)}ngOnInit(){this.resource=this.data.resource.name,this.currentQuota=this.data.currentQuota,this.reasonControl=new T.p4(null,[T.kI.required]),this.newValueControl=new T.p4(null,[T.kI.required,T.kI.pattern("[1-9][0-9]*")])}onCancel(){this.dialogRef.close()}onSubmit(){const zt=`QUOTA CHANGE REQUEST\u21b5 \u21b5 User: ${(new z.dp).transform(this.data.user)} (user ID: ${this.data.user.id})\u21b5 VO: ${this.data.vo.shortName} / ${this.data.vo.name} (vo ID: ${this.data.vo.id})\u21b5 Resource: ${this.data.resource.name} (resource ID: ${this.data.resource.id})\u21b5 Data quota\u21b5 Requested quota: ${this.newValueControl.value}\u21b5 Reason: ${this.reasonControl.value}\u21b5 \u21b5 \u21b5 -------------------------------------\u21b5 Sent from Perun GUI`;this.rtMessagesService.sentMessageToRTWithVo(this.data.vo.id,"QUOTA: Change request",zt).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.dialogRef.close()})}}return dt.\u0275fac=function(Je){return new(Je||dt)(b.Y36(w.so),b.Y36(w.WI),b.Y36(L.Hr),b.Y36(V.V6),b.Y36(m.sK))},dt.\u0275cmp=b.Xpm({type:dt,selectors:[["perun-web-apps-request-change-data-quota-dialog"]],decls:42,vars:42,consts:[["mat-dialog-title","",1,"mb-3"],[1,"user-theme"],[1,"column-size"],["fxLayout","row","fxFlexAlign","center center"],[1,"label-width"],["matInput","","required","","type","number",3,"placeholder","formControl"],[1,"select-width","mt-auto","mb-auto","ml-2",3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[1,"form-width"],["matInput","","required","","rows","4",3,"placeholder","formControl"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[3,"value"]],template:function(Je,Et){1&Je&&(b.TgZ(0,"h1",0),b._uU(1),b.ALo(2,"translate"),b.ALo(3,"customTranslate"),b.qZA(),b.TgZ(4,"div",1)(5,"div")(6,"p",2),b._uU(7),b.ALo(8,"translate"),b.ALo(9,"customTranslate"),b.qZA(),b.TgZ(10,"p"),b._uU(11),b.qZA()(),b.TgZ(12,"div")(13,"p",2),b._uU(14),b.ALo(15,"translate"),b.ALo(16,"customTranslate"),b.qZA(),b.TgZ(17,"p"),b._uU(18),b.qZA()(),b.TgZ(19,"div",3)(20,"mat-form-field")(21,"label",4),b._UZ(22,"input",5),b.ALo(23,"translate"),b.ALo(24,"customTranslate"),b.qZA()(),b.TgZ(25,"mat-select",6),b.NdJ("valueChange",function(un){return Et.selectedUnit=un}),b.YNc(26,ht,2,2,"mat-option",7),b.qZA()(),b.TgZ(27,"div")(28,"mat-form-field",8)(29,"label",4),b._UZ(30,"textarea",9),b.ALo(31,"translate"),b.ALo(32,"customTranslate"),b.qZA()()(),b.TgZ(33,"div",10)(34,"button",11),b.NdJ("click",function(){return Et.onCancel()}),b._uU(35),b.ALo(36,"translate"),b.ALo(37,"customTranslate"),b.qZA(),b.TgZ(38,"button",12),b.NdJ("click",function(){return Et.onSubmit()}),b._uU(39),b.ALo(40,"translate"),b.ALo(41,"customTranslate"),b.qZA()()()),2&Je&&(b.xp6(1),b.hij(" ",b.lcZ(2,14,b.lcZ(3,16,"SHARED_LIB.PERUN.COMPONENTS.REQUEST_DATA_QUOTA_CHANGE.TITLE")),"\n"),b.xp6(6),b.hij(" ",b.lcZ(8,18,b.lcZ(9,20,"SHARED_LIB.PERUN.COMPONENTS.REQUEST_DATA_QUOTA_CHANGE.RESOURCE"))," "),b.xp6(4),b.Oqu(Et.resource),b.xp6(3),b.hij(" ",b.lcZ(15,22,b.lcZ(16,24,"SHARED_LIB.PERUN.COMPONENTS.REQUEST_DATA_QUOTA_CHANGE.CURRENT_QUOTA"))," "),b.xp6(4),b.Oqu(Et.currentQuota),b.xp6(4),b.s9C("placeholder",b.lcZ(23,26,b.lcZ(24,28,"SHARED_LIB.PERUN.COMPONENTS.REQUEST_DATA_QUOTA_CHANGE.REQUESTED_QUOTA"))),b.Q6J("formControl",Et.newValueControl),b.xp6(3),b.Q6J("value",Et.selectedUnit),b.xp6(1),b.Q6J("ngForOf",Et.units),b.xp6(4),b.s9C("placeholder",b.lcZ(31,30,b.lcZ(32,32,"SHARED_LIB.PERUN.COMPONENTS.REQUEST_DATA_QUOTA_CHANGE.REASON"))),b.Q6J("formControl",Et.reasonControl),b.xp6(5),b.hij(" ",b.lcZ(36,34,b.lcZ(37,36,"SHARED_LIB.PERUN.COMPONENTS.REQUEST_DATA_QUOTA_CHANGE.CANCEL"))," "),b.xp6(3),b.Q6J("disabled",Et.reasonControl.invalid),b.xp6(1),b.hij(" ",b.lcZ(40,38,b.lcZ(41,40,"SHARED_LIB.PERUN.COMPONENTS.REQUEST_DATA_QUOTA_CHANGE.SEND"))," "))},dependencies:[e.sg,w.uh,w.H8,p.lW,g.KE,T.Fj,T.wV,T.JJ,T.Q7,E.Nt,T.oH,_e.gD,Q.ey,m.X$,r.a],styles:[".column-size[_ngcontent-%COMP%]{width:10rem!important;font-weight:700}.form-width[_ngcontent-%COMP%]{width:100%;overflow:hidden}.label-width[_ngcontent-%COMP%]{width:100%}.select-width[_ngcontent-%COMP%]{width:4rem}.mat-input-underline.mat-form-field-underline[_ngcontent-%COMP%], .mat-input-ripple.mat-form-field-ripple[_ngcontent-%COMP%]{display:none}"]}),dt})();function Zt(dt,Ut){1&dt&&(b.TgZ(0,"mat-error",8),b._uU(1),b.ALo(2,"translate"),b.ALo(3,"customTranslate"),b.qZA()),2&dt&&(b.xp6(1),b.Oqu(b.lcZ(2,1,b.lcZ(3,3,"DIALOGS.ADD_SSH.INVALID_TYPE"))))}class on{constructor(Ut,Je,Et){this.dialogRef=Ut,this.data=Je,this.attributesManagerService=Et}ngOnInit(){this.sshControl=new T.p4(null,[T.kI.required,T.kI.pattern(on.sshKeyPattern)])}onCancel(){this.dialogRef.close(!1)}onSubmit(){const Ut=this.data.attribute?.value??[],Je=this.sshControl.value;Ut.includes(Je)||Ut.push(Je),this.data.attribute.value=Ut,this.attributesManagerService.setUserAttribute({user:this.data.userId,attribute:this.data.attribute}).subscribe(()=>{this.dialogRef.close(!0)},()=>{Ut.pop()})}}function Dn(dt,Ut){1&dt&&b._UZ(0,"mat-spinner",4)}function Fn(dt,Ut){1&dt&&b._UZ(0,"th",17)}function Yn(dt,Ut){if(1&dt&&(b.TgZ(0,"td",18),b._uU(1),b.qZA()),2&dt){const Je=Ut.$implicit;b.xp6(1),b.Oqu(Je)}}function Ti(dt,Ut){1&dt&&b._UZ(0,"tr",19)}function Pi(dt,Ut){1&dt&&b._UZ(0,"tr",20)}function pr(dt,Ut){if(1&dt&&(b.TgZ(0,"table",11),b.ynx(1,12),b.YNc(2,Fn,1,0,"th",13),b.YNc(3,Yn,2,1,"td",14),b.BQk(),b.YNc(4,Ti,1,0,"tr",15),b.YNc(5,Pi,1,0,"tr",16),b.qZA()),2&dt){const Je=b.oxw(2);b.Q6J("dataSource",Je.dataSource),b.xp6(4),b.Q6J("matHeaderRowDef",Je.displayedColumns),b.xp6(1),b.Q6J("matRowDefColumns",Je.displayedColumns)}}function Zi(dt,Ut){if(1&dt){const Je=b.EpF();b.TgZ(0,"div",1)(1,"div",5)(2,"p"),b._uU(3),b.qZA(),b.TgZ(4,"div",6),b._uU(5),b.ALo(6,"translate"),b.ALo(7,"customTranslate"),b.qZA(),b.YNc(8,pr,6,3,"table",7),b.qZA(),b.TgZ(9,"div",8)(10,"button",9),b.NdJ("click",function(){b.CHM(Je);const zt=b.oxw();return b.KtG(zt.onCancel())}),b._uU(11),b.ALo(12,"translate"),b.ALo(13,"customTranslate"),b.qZA(),b.TgZ(14,"button",10),b.NdJ("click",function(){b.CHM(Je);const zt=b.oxw();return b.KtG(zt.onSubmit())}),b._uU(15),b.ALo(16,"translate"),b.ALo(17,"customTranslate"),b.qZA()()()}if(2&dt){const Je=b.oxw();b.xp6(3),b.hij(" ",Je.description," "),b.xp6(2),b.hij(" ",b.lcZ(6,5,b.lcZ(7,7,"DIALOGS.REMOVE_STRING_VALUE.ASK"))," "),b.xp6(3),b.Q6J("ngIf",Je.dataSource.data.length),b.xp6(3),b.hij(" ",b.lcZ(12,9,b.lcZ(13,11,"DIALOGS.REMOVE_STRING_VALUE.CANCEL"))," "),b.xp6(4),b.hij(" ",b.lcZ(16,13,b.lcZ(17,15,"DIALOGS.REMOVE_STRING_VALUE.REMOVE"))," ")}}on.allowedSshKeys=["ssh-ed25519","ssh-ed25519-cert-v01@openssh.com","sk-ssh-ed25519@openssh.com","sk-ssh-ed25519-cert-v01@openssh.com","ssh-rsa","ssh-dss","ecdsa-sha2-nistp256","ecdsa-sha2-nistp384","ecdsa-sha2-nistp521","sk-ecdsa-sha2-nistp256@openssh.com","ssh-rsa-cert-v01@openssh.com","ssh-dss-cert-v01@openssh.com","ecdsa-sha2-nistp256-cert-v01@openssh.com","ecdsa-sha2-nistp384-cert-v01@openssh.com","ecdsa-sha2-nistp521-cert-v01@openssh.com","sk-ecdsa-sha2-nistp256-cert-v01@openssh.com"],on.sshKeyPattern="^("+on.allowedSshKeys.join("|")+").+$",on.\u0275fac=function(Ut){return new(Ut||on)(b.Y36(w.so),b.Y36(w.WI),b.Y36(L.H8))},on.\u0275cmp=b.Xpm({type:on,selectors:[["perun-web-apps-add-ssh-dialog"]],decls:20,vars:23,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","user-theme"],[1,"input-width"],["matInput","","required","","cdkTextareaAutosize","","cdkAutosizeMinRows","4",3,"placeholder","formControl"],["class","white-space-pre",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[1,"white-space-pre"]],template:function(Ut,Je){1&Ut&&(b.TgZ(0,"h1",0),b._uU(1),b.ALo(2,"translate"),b.ALo(3,"customTranslate"),b.qZA(),b.TgZ(4,"div",1)(5,"mat-form-field",2)(6,"label",2),b._UZ(7,"textarea",3),b.ALo(8,"translate"),b.ALo(9,"customTranslate"),b.qZA(),b.YNc(10,Zt,4,5,"mat-error",4),b.qZA()(),b.TgZ(11,"div",5)(12,"button",6),b.NdJ("click",function(){return Je.onCancel()}),b._uU(13),b.ALo(14,"translate"),b.ALo(15,"customTranslate"),b.qZA(),b.TgZ(16,"button",7),b.NdJ("click",function(){return Je.onSubmit()}),b._uU(17),b.ALo(18,"translate"),b.ALo(19,"customTranslate"),b.qZA()()),2&Ut&&(b.xp6(1),b.Oqu(b.lcZ(2,7,b.lcZ(3,9,"DIALOGS.ADD_SSH.TITLE"))),b.xp6(6),b.s9C("placeholder",b.lcZ(8,11,b.lcZ(9,13,"DIALOGS.ADD_SSH.INPUT_PLACEHOLDER"))),b.Q6J("formControl",Je.sshControl),b.xp6(3),b.Q6J("ngIf",Je.sshControl.invalid&&Je.sshControl.dirty),b.xp6(3),b.hij(" ",b.lcZ(14,15,b.lcZ(15,17,"DIALOGS.ADD_SSH.CANCEL"))," "),b.xp6(3),b.Q6J("disabled",Je.sshControl.invalid),b.xp6(1),b.hij(" ",b.lcZ(18,19,b.lcZ(19,21,"DIALOGS.ADD_SSH.ADD"))," "))},dependencies:[e.O5,T.Fj,T.JJ,T.Q7,p.lW,g.TO,g.KE,T.oH,o.IC,E.Nt,w.uh,w.xY,w.H8,m.X$,r.a],styles:[".input-width{width:100%}.white-space-pre{white-space:pre-wrap}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper{padding-bottom:0}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-underline{position:static!important;position:initial!important;display:block;margin-top:-1px}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper,perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-ripple{position:static!important;position:initial!important;display:table}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper{min-height:calc(1em + 1px)}\n"],encapsulation:2});let fr=(()=>{class dt{constructor(Je,Et,zt){this.dialogRef=Je,this.data=Et,this.attributesManagerService=zt,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new A.by(this.data.values),this.description=this.data.description,this.title=this.data.title}onCancel(){this.dialogRef.close(!1)}onSubmit(){if(this.loading=!0,this.data.doNotShowValues)this.data.attribute.value="";else{let Je=this.data.attribute?.value??[];void 0!==this.data.valueIndex?Je.splice(this.data.valueIndex,1):Je=Je.filter(Et=>!this.data.values.find(zt=>zt===Et)),this.data.attribute.value=Je}this.attributesManagerService.setUserAttribute({user:this.data.userId,attribute:this.data.attribute}).subscribe(()=>{this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}}return dt.\u0275fac=function(Je){return new(Je||dt)(b.Y36(w.so),b.Y36(w.WI),b.Y36(L.H8))},dt.\u0275cmp=b.Xpm({type:dt,selectors:[["perun-web-apps-remove-string-value-dialog"]],decls:5,vars:3,consts:[["mat-dialog-title",""],[1,"user-theme"],["class","ml-auto mr-auto",4,"ngIf"],["class","user-theme",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["class","w-100","mat-table","",3,"dataSource",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"click"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-header-row","","class","font-weight-bolder",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(Je,Et){1&Je&&(b.TgZ(0,"h1",0),b._uU(1),b.qZA(),b.TgZ(2,"div",1),b.YNc(3,Dn,1,0,"mat-spinner",2),b.qZA(),b.YNc(4,Zi,18,17,"div",3)),2&Je&&(b.xp6(1),b.Oqu(Et.title),b.xp6(2),b.Q6J("ngIf",Et.loading),b.xp6(1),b.Q6J("ngIf",!Et.loading))},dependencies:[e.O5,A.BZ,A.fO,A.as,A.w1,A.Dz,A.nj,A.ge,A.ev,A.XQ,A.Gk,S.Ou,p.lW,w.uh,w.xY,w.H8,m.X$,r.a]}),dt})(),Ni=(()=>{class dt{constructor(Je,Et){this.dialogRef=Je,this.data=Et}ngOnInit(){this.sshKey=this.data.value}onClose(){this.dialogRef.close()}}return dt.\u0275fac=function(Je){return new(Je||dt)(b.Y36(w.so),b.Y36(w.WI))},dt.\u0275cmp=b.Xpm({type:dt,selectors:[["perun-web-apps-show-ssh-dialog"]],decls:8,vars:6,consts:[[1,"user-theme"],["matInput","","cdkTextareaAutosize","","readonly","",1,"w-100","display-fix"],["mat-flat-button","","color","warn",1,"ml-auto",3,"click"]],template:function(Je,Et){1&Je&&(b.TgZ(0,"div",0)(1,"textarea",1),b._uU(2),b.qZA()(),b.TgZ(3,"mat-dialog-actions")(4,"button",2),b.NdJ("click",function(){return Et.onClose()}),b._uU(5),b.ALo(6,"translate"),b.ALo(7,"customTranslate"),b.qZA()()),2&Je&&(b.xp6(2),b.Oqu(Et.sshKey),b.xp6(3),b.hij(" ",b.lcZ(6,2,b.lcZ(7,4,"DIALOGS.SHOW_SSH.CLOSE"))," "))},dependencies:[p.lW,o.IC,E.Nt,w.H8,m.X$,r.a],styles:[".display-fix[_ngcontent-%COMP%]{overflow:hidden;border:none}*[_ngcontent-%COMP%]:focus{outline:none}"]}),dt})();function wr(dt,Ut){if(1&dt&&(b.TgZ(0,"div",9),b._UZ(1,"perun-web-apps-notification",10),b.qZA()),2&dt){const Je=Ut.$implicit;b.xp6(1),b.Q6J("data",Je)("inDialog",!0)}}function Gi(dt,Ut){if(1&dt&&(b.TgZ(0,"div",6)(1,"cdk-virtual-scroll-viewport",7),b.YNc(2,wr,2,2,"div",8),b.qZA()()),2&dt){const Je=b.oxw();b.xp6(2),b.Q6J("cdkVirtualForOf",Je.notifications)}}function zi(dt,Ut){1&dt&&(b.TgZ(0,"perun-web-apps-alert",11),b._uU(1),b.ALo(2,"translate"),b.ALo(3,"customTranslate"),b.qZA()),2&dt&&(b.xp6(1),b.Oqu(b.lcZ(2,1,b.lcZ(3,3,"DIALOGS.NOTIFICATION_LIST.NO_NOTIFICATIONS_ALERT"))))}let Hr=(()=>{class dt{constructor(Je,Et){this.dialogRef=Je,this.notificationStorageService=Et}ngOnInit(){this.notifications=this.notificationStorageService.getNotifications()}onCancel(){this.dialogRef.close()}onClear(){this.notificationStorageService.clearNotifications(),this.notifications=[]}}return dt.\u0275fac=function(Je){return new(Je||dt)(b.Y36(w.so),b.Y36(V.SZ))},dt.\u0275cmp=b.Xpm({type:dt,selectors:[["perun-web-apps-show-notification-history-dialog"]],decls:15,vars:17,consts:[["mat-dialog-title",""],["class","hide-horizontal-scrollbar",4,"ngIf"],["alert_type","warn",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","",1,"ml-2",3,"click"],[1,"hide-horizontal-scrollbar"],["itemSize","50",1,"viewport"],["class","mb-1",4,"cdkVirtualFor","cdkVirtualForOf"],[1,"mb-1"],[3,"data","inDialog"],["alert_type","warn"]],template:function(Je,Et){1&Je&&(b.TgZ(0,"h1",0),b._uU(1),b.ALo(2,"translate"),b.ALo(3,"customTranslate"),b.qZA(),b.YNc(4,Gi,3,1,"div",1),b.YNc(5,zi,4,5,"perun-web-apps-alert",2),b.TgZ(6,"div",3)(7,"button",4),b.NdJ("click",function(){return Et.onClear()}),b._uU(8),b.ALo(9,"translate"),b.ALo(10,"customTranslate"),b.qZA(),b.TgZ(11,"button",5),b.NdJ("click",function(){return Et.onCancel()}),b._uU(12),b.ALo(13,"translate"),b.ALo(14,"customTranslate"),b.qZA()()),2&Je&&(b.xp6(1),b.Oqu(b.lcZ(2,5,b.lcZ(3,7,"DIALOGS.NOTIFICATION_LIST.TITLE"))),b.xp6(3),b.Q6J("ngIf",0!==Et.notifications.length),b.xp6(1),b.Q6J("ngIf",0===Et.notifications.length),b.xp6(3),b.hij(" ",b.lcZ(9,9,b.lcZ(10,11,"DIALOGS.NOTIFICATION_LIST.CLEAR"))," "),b.xp6(4),b.hij(" ",b.lcZ(13,13,b.lcZ(14,15,"DIALOGS.NOTIFICATION_LIST.CANCEL"))," "))},styles:[".viewport[_ngcontent-%COMP%]{height:400px;width:470px}.hide-horizontal-scrollbar[_ngcontent-%COMP%]{overflow-x:hidden}"]}),dt})()},90995:(Qe,he,u)=>{"use strict";u.d(he,{e:()=>de});var e=u(94650),m=u(24006),A=u(30671),w=u(36895),p=u(65412),g=u(4859),T=u(59549),E=u(284),S=u(51572),R=u(97392),v=u(98380),D=u(96338),F=u(89383),z=u(31359);let $=(()=>{class re{constructor(N){this.translate=N}transform(N){return this.translate.instant(N?"DIALOGS.DELETE_ENTITY.TYPE_ANONYMIZE":"DIALOGS.DELETE_ENTITY.TYPE_DELETE")}}return re.\u0275fac=function(N){return new(N||re)(e.Y36(F.sK,16))},re.\u0275pipe=e.Yjl({name:"deleteDialogType",type:re,pure:!0}),re})();function G(re,B){1&re&&e._UZ(0,"mat-spinner",2)}const q=function(re){return{action:re}};function _e(re,B){if(1&re&&(e.TgZ(0,"div",16),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"deleteDialogType"),e.ALo(4,"translate"),e.TgZ(5,"span",17),e._uU(6),e.ALo(7,"translate"),e.qZA(),e._uU(8),e.ALo(9,"translate"),e.qZA()),2&re){const N=e.oxw(2);e.xp6(1),e.lnq(" ",e.xi3(2,6,"DIALOGS.DELETE_ENTITY.BASIC",e.VKq(17,q,e.lcZ(3,9,N.anonymize)))," ",e.lcZ(4,11,"DIALOGS.DELETE_ENTITY.ONLY")," ",N.entityType," "),e.xp6(5),e.Oqu(e.lcZ(7,13,"DIALOGS.DELETE_ENTITY.OR")),e.xp6(2),e.AsE(" ",N.entityType," ",e.lcZ(9,15,"DIALOGS.DELETE_ENTITY.RELATIONS"),"? ")}}function ce(re,B){if(1&re&&(e.TgZ(0,"div",16),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"deleteDialogType"),e.qZA()),2&re){const N=e.oxw(2);e.xp6(1),e.AsE(" ",e.xi3(2,2,"DIALOGS.DELETE_ENTITY.BASIC",e.VKq(7,q,e.lcZ(3,5,N.anonymize)))," ",N.entityType," ? ")}}function Te(re,B){1&re&&e._UZ(0,"th",18)}function b(re,B){if(1&re&&(e.TgZ(0,"td",19),e._uU(1),e.ALo(2,"userFullName"),e.qZA()),2&re){const N=B.$implicit,Me=e.oxw(2);e.xp6(1),e.hij(" ",Me.anonymize?e.lcZ(2,1,N):N.name," ")}}function H(re,B){1&re&&e._UZ(0,"tr",20)}function L(re,B){1&re&&e._UZ(0,"tr",21)}function V(re,B){if(1&re){const N=e.EpF();e.TgZ(0,"button",22),e.NdJ("click",function(){e.CHM(N);const Y=e.oxw(2);return e.KtG(Y.force=!0)}),e.TgZ(1,"mat-icon"),e._uU(2,"warning"),e.qZA(),e._uU(3),e.ALo(4,"translate"),e.ALo(5,"titlecase"),e.ALo(6,"deleteDialogType"),e.ALo(7,"translate"),e.qZA()}if(2&re){const N=e.oxw(2);e.xp6(3),e.AsE(" ",e.xi3(4,2,"DIALOGS.DELETE_ENTITY.DELETE",e.VKq(11,q,e.lcZ(5,5,e.lcZ(6,7,N.anonymize))))," ",e.lcZ(7,9,"DIALOGS.DELETE_ENTITY.RELATIONS")," ")}}const Q=function(){return["name"]};function ae(re,B){if(1&re){const N=e.EpF();e.TgZ(0,"div")(1,"h1",3),e._uU(2),e.ALo(3,"translate"),e.ALo(4,"titlecase"),e.ALo(5,"deleteDialogType"),e.qZA(),e.TgZ(6,"div",4),e.YNc(7,_e,10,19,"div",5),e.YNc(8,ce,4,9,"div",5),e.TgZ(9,"table",6),e.ynx(10,7),e.YNc(11,Te,1,0,"th",8),e.YNc(12,b,3,3,"td",9),e.BQk(),e.YNc(13,H,1,0,"tr",10),e.YNc(14,L,1,0,"tr",11),e.qZA()(),e.TgZ(15,"div",12)(16,"button",13),e.NdJ("click",function(){e.CHM(N);const Y=e.oxw();return e.KtG(Y.onCancel())}),e._uU(17),e.ALo(18,"translate"),e.qZA(),e.TgZ(19,"button",14),e.NdJ("click",function(){e.CHM(N);const Y=e.oxw();return e.KtG(Y.onDelete())}),e._uU(20),e.ALo(21,"translate"),e.ALo(22,"titlecase"),e.ALo(23,"deleteDialogType"),e.qZA(),e.YNc(24,V,8,13,"button",15),e.qZA()()}if(2&re){const N=e.oxw();e.xp6(2),e.AsE(" ",e.xi3(3,10,"DIALOGS.DELETE_ENTITY.DELETE",e.VKq(26,q,e.lcZ(4,13,e.lcZ(5,15,N.anonymize))))," ",N.entityType," "),e.xp6(5),e.Q6J("ngIf",!N.disableForce),e.xp6(1),e.Q6J("ngIf",N.disableForce),e.xp6(1),e.Q6J("dataSource",N.entityNames),e.xp6(4),e.Q6J("matHeaderRowDef",e.DdM(28,Q)),e.xp6(1),e.Q6J("matRowDefColumns",e.DdM(29,Q)),e.xp6(3),e.hij(" ",e.lcZ(18,17,"DIALOGS.DELETE_ENTITY.CANCEL")," "),e.xp6(3),e.hij(" ",e.xi3(21,19,"DIALOGS.DELETE_ENTITY.DELETE",e.VKq(30,q,e.lcZ(22,22,e.lcZ(23,24,N.anonymize))))," "),e.xp6(4),e.Q6J("ngIf",!N.disableForce)}}function xe(re,B){if(1&re&&(e.TgZ(0,"mat-list-item")(1,"span")(2,"mat-icon",27),e._uU(3,"fiber_manual_record"),e.qZA(),e._uU(4),e.qZA()()),2&re){const N=B.$implicit;e.xp6(4),e.hij(" ",N," ")}}function ge(re,B){if(1&re&&(e.TgZ(0,"div"),e._uU(1),e.qZA()),2&re){const N=e.oxw(2);e.xp6(1),e.hij(" ",N.anotherMessage," ")}}function Se(re,B){1&re&&e._UZ(0,"th",18)}function Be(re,B){if(1&re&&(e.TgZ(0,"td",19),e._uU(1),e.ALo(2,"userFullName"),e.qZA()),2&re){const N=B.$implicit,Me=e.oxw(2);e.xp6(1),e.hij(" ",Me.anonymize?e.lcZ(2,1,N):N.name," ")}}function pe(re,B){1&re&&e._UZ(0,"tr",20)}function $e(re,B){1&re&&e._UZ(0,"tr",21)}function Ce(re,B){if(1&re){const N=e.EpF();e.TgZ(0,"div")(1,"h1",3),e._uU(2),e.ALo(3,"translate"),e.ALo(4,"titlecase"),e.ALo(5,"deleteDialogType"),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"div",4)(8,"div",16),e._uU(9),e.ALo(10,"translate"),e.TgZ(11,"mat-list"),e.YNc(12,xe,5,1,"mat-list-item",23),e.qZA(),e.YNc(13,ge,2,1,"div",1),e.TgZ(14,"perun-web-apps-alert",24),e._uU(15),e.ALo(16,"translate"),e.ALo(17,"deleteDialogType"),e.qZA(),e.TgZ(18,"table",6),e.ynx(19,7),e.YNc(20,Se,1,0,"th",8),e.YNc(21,Be,3,3,"td",9),e.BQk(),e.YNc(22,pe,1,0,"tr",10),e.YNc(23,$e,1,0,"tr",11),e.qZA()(),e.TgZ(24,"mat-form-field"),e._UZ(25,"input",25),e.ALo(26,"translate"),e.ALo(27,"uppercase"),e.ALo(28,"deleteDialogType"),e.qZA()(),e.TgZ(29,"div",12)(30,"button",13),e.NdJ("click",function(){e.CHM(N);const Y=e.oxw();return e.KtG(Y.onCancel())}),e._uU(31),e.ALo(32,"translate"),e.qZA(),e.TgZ(33,"button",26),e.NdJ("click",function(){e.CHM(N);const Y=e.oxw();return e.KtG(Y.onDelete())}),e.TgZ(34,"mat-icon"),e._uU(35,"warning"),e.qZA(),e._uU(36),e.ALo(37,"translate"),e.ALo(38,"titlecase"),e.ALo(39,"deleteDialogType"),e.ALo(40,"translate"),e.qZA()()()}if(2&re){const N=e.oxw();e.xp6(2),e.lnq(" ",e.xi3(3,17,"DIALOGS.DELETE_ENTITY.DELETE",e.VKq(51,q,e.lcZ(4,20,e.lcZ(5,22,N.anonymize))))," ",N.entityType," ",e.lcZ(6,24,"DIALOGS.DELETE_ENTITY.RELATIONS")," "),e.xp6(7),e.hij(" ",e.lcZ(10,26,"DIALOGS.DELETE_ENTITY.WARN"),": "),e.xp6(3),e.Q6J("ngForOf",N.relations),e.xp6(1),e.Q6J("ngIf",N.anotherMessage),e.xp6(2),e.AsE(" ",e.xi3(16,28,"DIALOGS.DELETE_ENTITY.ASK",e.VKq(53,q,e.lcZ(17,31,N.anonymize)))," ",N.entityType," ? "),e.xp6(3),e.Q6J("dataSource",N.entityNames),e.xp6(4),e.Q6J("matHeaderRowDef",e.DdM(55,Q)),e.xp6(1),e.Q6J("matRowDefColumns",e.DdM(56,Q)),e.xp6(2),e.s9C("placeholder",e.xi3(26,33,"DIALOGS.DELETE_ENTITY.CONTROL",e.VKq(57,q,e.lcZ(27,36,e.lcZ(28,38,N.anonymize))))),e.Q6J("formControl",N.deleteControl),e.xp6(6),e.hij(" ",e.lcZ(32,40,"DIALOGS.DELETE_ENTITY.CANCEL")," "),e.xp6(2),e.Q6J("disabled",N.deleteControl.invalid),e.xp6(3),e.AsE(" ",e.xi3(37,42,"DIALOGS.DELETE_ENTITY.DELETE",e.VKq(59,q,e.lcZ(38,45,e.lcZ(39,47,N.anonymize))))," ",e.lcZ(40,49,"DIALOGS.DELETE_ENTITY.RELATIONS")," ")}}let de=(()=>{class re{constructor(){this.entityNames=new A.by,this.relations=[],this.disableForce=!1,this.loading=!1,this.anonymize=!1,this.deleted=new e.vpe,this.force=!1}ngOnInit(){this.deleteReg=this.anonymize?/^ANONYMIZE$/:/^DELETE$/,this.deleteControl=new m.p4("",[m.kI.required,m.kI.pattern(this.deleteReg)])}onCancel(){this.deleted.emit({deleted:!1,force:!1})}onDelete(){this.deleted.emit({deleted:!0,force:this.force})}}return re.\u0275fac=function(N){return new(N||re)},re.\u0275cmp=e.Xpm({type:re,selectors:[["perun-web-apps-delete-entity-dialog"]],inputs:{title:"title",entityNames:"entityNames",entityType:"entityType",relations:"relations",anotherMessage:"anotherMessage",disableForce:"disableForce",loading:"loading",anonymize:"anonymize"},outputs:{deleted:"deleted"},decls:3,vars:3,consts:[["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["class","mb-4",4,"ngIf"],["mat-table","",1,"w-100","table-margin",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["data-cy","delete-button-dialog","color","warn","mat-flat-button","",1,"ml-2",3,"click"],["class","ml-2","data-cy","force-delete","color","warn","mat-flat-button","",3,"click",4,"ngIf"],[1,"mb-4"],[1,"font-weight-bold"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""],["data-cy","force-delete","color","warn","mat-flat-button","",1,"ml-2",3,"click"],[4,"ngFor","ngForOf"],["alert_type","warn"],["data-cy","force-delete-control","matInput","",3,"formControl","placeholder"],["data-cy","force-delete-button","color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"dot-icon"]],template:function(N,Me){1&N&&(e.YNc(0,G,1,0,"mat-spinner",0),e.YNc(1,ae,25,32,"div",1),e.YNc(2,Ce,41,61,"div",1)),2&N&&(e.Q6J("ngIf",Me.loading),e.xp6(1),e.Q6J("ngIf",!Me.force&&!Me.loading),e.xp6(1),e.Q6J("ngIf",Me.force&&!Me.loading))},dependencies:[w.sg,w.O5,A.BZ,A.fO,A.as,A.w1,A.Dz,A.nj,A.ge,A.ev,A.XQ,A.Gk,p.uh,p.xY,p.H8,g.lW,T.KE,m.Fj,m.JJ,E.Nt,S.Ou,m.oH,R.Hw,v.w,D.i$,D.Tg,w.gd,w.rS,F.X$,z.d,$],styles:[".dot-icon[_ngcontent-%COMP%]{font-size:small;vertical-align:-1px}.table-margin[_ngcontent-%COMP%]{margin-top:-50px;margin-bottom:20px}"]}),re})()},94391:(Qe,he,u)=>{"use strict";u.d(he,{hT:()=>m,Kd:()=>w,e5:()=>g,YH:()=>p,QG:()=>E});var e=u(94650);let m=(()=>{class S{constructor(v){this.elementRef=v}ngOnInit(){this.elementRef.nativeElement.focus()}}return S.\u0275fac=function(v){return new(v||S)(e.Y36(e.SBq))},S.\u0275dir=e.lG2({type:S,selectors:[["","perunWebAppsAutoFocus",""]]}),S})();var A=u(69723);let w=(()=>{class S{constructor(v){this.router=v}onClick(){this.router.forceNavigate(this.perunWebAppsForceRouterLink)}}return S.\u0275fac=function(v){return new(v||S)(e.Y36(A.xw))},S.\u0275dir=e.lG2({type:S,selectors:[["","perunWebAppsForceRouterLink",""]],hostBindings:function(v,D){1&v&&e.NdJ("click",function(){return D.onClick()})},inputs:{perunWebAppsForceRouterLink:"perunWebAppsForceRouterLink"}}),S})(),p=(()=>{class S{onClick(v){if(1===v.button&&null!=this.perunWebAppsMiddleClickRouterLink){const D=this.perunWebAppsMiddleClickRouterLink.join("/"),F=location.search;window.open(D+F)}}}return S.\u0275fac=function(v){return new(v||S)},S.\u0275dir=e.lG2({type:S,selectors:[["","perunWebAppsMiddleClickRouterLink",""]],hostBindings:function(v,D){1&v&&e.NdJ("mouseup",function(z){return D.onClick(z)})},inputs:{perunWebAppsMiddleClickRouterLink:"perunWebAppsMiddleClickRouterLink"}}),S})(),g=(()=>{class S{constructor(v,D){this.viewContainerRef=v,this.template=D,this.loading=!1,this.loadingIndicatorRef=null}ngOnInit(){this.viewContainerRef.createEmbeddedView(this.template)}ngOnChanges(){this.loading&&(this.loadingIndicatorRef=this.viewContainerRef.createEmbeddedView(this.loadingIndicator)),!this.loading&&this.loadingIndicatorRef&&this.loadingIndicatorRef.destroy()}}return S.\u0275fac=function(v){return new(v||S)(e.Y36(e.s_b),e.Y36(e.Rgc))},S.\u0275dir=e.lG2({type:S,selectors:[["","perunWebAppsLoader",""]],inputs:{loading:["perunWebAppsLoader","loading"],loadingIndicator:["perunWebAppsLoaderIndicator","loadingIndicator"]},features:[e.TTD]}),S})();var T=u(94364);let E=(()=>{class S extends T.rH{constructor(){super(...arguments),this.queryParamsHandling="merge"}ngOnChanges(){if(this.queryParams&&"applicationFormItems"in this.queryParams){this.queryParamsHandling="";const v=Object.assign({},this.queryParams);delete v.applicationFormItems,this.queryParams=v}}}return S.\u0275fac=function(){let R;return function(D){return(R||(R=e.n5z(S)))(D||S)}}(),S.\u0275dir=e.lG2({type:S,selectors:[["tr","routerLink",""],["a","routerLink",""]],features:[e.qOj,e.TTD]}),S})()},40034:(Qe,he,u)=>{"use strict";u.d(he,{p:()=>e});var e=(()=>{return(m=e||(e={})).Admin="admin",m.Profile="profile",m.PwdReset="pwdReset",m.Consolidator="consolidator",m.Linker="linker",e;var m})()},91479:(Qe,he,u)=>{"use strict";u.d(he,{H:()=>T,o:()=>g});var e=u(61135),m=u(39841),A=u(39646),w=u(68675),p=u(63900);function g(E){return"_count"in E}class T{constructor(S,R,v,D){this.pageQuery$=new e.X({}),this.updateSubscription=null,this.data$=new e.X([]),this._filter=new e.X(""),this.data$.next(S),this._count=R,this._sort=v,this._paginator=D,this.update()}get data(){return this.data$.value}set data(S){this.data$.next(S)}get filteredData(){return this.data$.value}get count(){return this._count}set count(S){this._count=S}get sort(){return this._sort}set sort(S){this._sort=S,this.update()}get paginator(){return this._paginator}set paginator(S){this._paginator=S,this.update()}set filter(S){this._filter.next(S)}connect(){return this.data$.asObservable()}disconnect(){this.data$.complete(),this.updateSubscription?.unsubscribe()}sortData(S,R){return this.sort=R,S}update(){const S=this._sort.sortChange.pipe((0,w.O)({active:"NAME",direction:this._sort.direction})),R=this._paginator.page.pipe((0,w.O)({pageSize:5,pageIndex:this._paginator.pageIndex,length:this._paginator.length})),v=(0,m.a)([S,R,this._filter]).pipe((0,p.w)(([D,F,z])=>(0,A.of)({order:"asc"===D.direction?"ASCENDING":"DESCENDING",sortColumn:D.active.toUpperCase(),pageSize:F.pageSize,offset:F.pageIndex*F.pageSize,searchString:z})));this.updateSubscription?.unsubscribe(),this.updateSubscription=v.subscribe(D=>{this.pageQuery$.next(D)})}}},45323:(Qe,he,u)=>{"use strict";u.d(he,{u:()=>e});var e=(()=>{return(m=e||(e={})).PERUNADMIN="PERUNADMIN",m.PERUNOBSERVER="PERUNOBSERVER",m.VOADMIN="VOADMIN",m.GROUPADMIN="GROUPADMIN",m.GROUPOBSERVER="GROUPOBSERVER",m.GROUPMEMBERSHIPMANAGER="GROUPMEMBERSHIPMANAGER",m.SELF="SELF",m.FACILITYADMIN="FACILITYADMIN",m.FACILITIYOBSERVER="FACILITYOBSERVER",m.RESOURCEADMIN="RESOURCEADMIN",m.RESOURCESELFSERVICE="RESOURCESELFSERVICE",m.REGISTRAR="REGISTRAR",m.ENGINE="ENGINE",m.RPC="RPC",m.NOTIFICATIONS="NOTIFICATIONS",m.SERVICEUSER="SERVICEUSER",m.SPONSOR="SPONSOR",m.VOOBSERVER="VOOBSERVER",m.TOPGROUPCREATOR="TOPGROUPCREATOR",m.SECURITYADMIN="SECURITYADMIN",m.CABINETADMIN="CABINETADMIN",m.UNKNOWNROLENAME="UNKNOWNROLENAME",m.AUDITCONSUMERADMIN="AUDITCONSUMERADMIN",m.UNKNOWN="UNKNOWN",m.MEMBERSHIP="MEMBERSHIP",e;var m})()},28499:(Qe,he,u)=>{"use strict";u.d(he,{E3:()=>v,yT:()=>D.y});var e=u(36895),m=u(59549),A=u(10266),w=u(24006),p=u(284),g=u(89383),T=u(51572),E=u(97392),S=u(63189),R=u(94650);let v=(()=>{class z{}return z.\u0275fac=function(G){return new(G||z)},z.\u0275mod=R.oAB({type:z}),z.\u0275inj=R.cJS({imports:[e.ez,m.lN,A.AV,w.UX,p.c,g.aw,T.Cq,E.Ps,S.r]}),z})();var D=u(47549);u(13469)},13469:(Qe,he,u)=>{"use strict";u.d(he,{G:()=>Te});var e=u(47549),m=u(69723),A=u(32105),w=u(94650),p=u(89383),g=u(36895),T=u(59549),E=u(10266),S=u(24006),R=u(284),v=u(51572),D=u(97392),F=u(98380);function z(b,H){1&b&&w._UZ(0,"mat-spinner",12),2&b&&w.Q6J("diameter",18)}function $(b,H){if(1&b&&(w.TgZ(0,"mat-icon",13),w._uU(1," error "),w.qZA()),2&b){const L=w.oxw();w.Q6J("matTooltip",L.getErrorTooltip())("matTooltipDisabled",!L.formGroup.get("passwordCtrl").hasError("backendError"))}}function G(b,H){1&b&&(w.TgZ(0,"mat-error"),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&b&&(w.xp6(1),w.Oqu(w.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function q(b,H){if(1&b&&(w.TgZ(0,"mat-error",14),w._uU(1),w.qZA()),2&b){const L=w.oxw();w.Q6J("matTooltip",L.getErrorTooltip()),w.xp6(1),w.Oqu(L.getErrorTooltip())}}function _e(b,H){1&b&&(w.TgZ(0,"mat-error"),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&b&&(w.xp6(1),w.Oqu(w.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function ce(b,H){1&b&&(w.TgZ(0,"mat-error"),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&b&&(w.xp6(1),w.Oqu(w.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PWD_DONT_MATCH")))}let Te=(()=>{class b{constructor(L,V,Q){this.translator=L,this.usersManagerService=V,this.store=Q,this.passwordRequired=!0,this.tooltipPwdViaEmail=!1,this.tooltipPwdDisabledForNamespace=!1,this.language="en",this.passwordRequirement=null,this.showNewPassword=!1,this.showPasswordConfirm=!1,this.passwordStateMatcher=new e.S,this.allPasswordRequirements=this.store.getProperty("password_help")}ngOnInit(){window.location.href.includes("/profile")?this.usersManagerService.getRichUserWithAttributes(this.store.getPerunPrincipal().userId).subscribe(L=>{const V=L.userAttributes.find(Q=>"preferredLanguage"===Q.friendlyName);this.language=V?.value??"en","en"!==this.language&&(this.allPasswordRequirements=this.store.getProperty("en"===this.language?"password_help":"password_help_cs")),this.changeHelp()}):this.changeHelp()}ngOnChanges(){this.allPasswordRequirements=this.store.getProperty("en"===this.language?"password_help":"password_help_cs"),this.changeHelp()}getPasswordDisabledTooltip(){return this.translator.instant(this.tooltipPwdViaEmail?"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.TOOLTIP_PASSWORD_VIA_EMAIL":"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.TOOLTIP_PASSWORD_DISABLED")}getErrorTooltip(){let L=this.formGroup.get("passwordCtrl").getError("backendError");return L&&(L=L.replace(":null","")),L}changeHelp(){this.passwordRequirement=this.allPasswordRequirements[this.namespace],this.passwordRequirement||(this.passwordRequirement=this.allPasswordRequirements.default)}}return b.\u0275fac=function(L){return new(L||b)(w.Y36(p.sK),w.Y36(A.Fv),w.Y36(m.d6))},b.\u0275cmp=w.Xpm({type:b,selectors:[["perun-web-apps-password-form"]],inputs:{formGroup:"formGroup",passwordRequired:"passwordRequired",tooltipPwdViaEmail:"tooltipPwdViaEmail",tooltipPwdDisabledForNamespace:"tooltipPwdDisabledForNamespace",namespace:"namespace",language:"language"},features:[w.TTD],decls:21,vars:23,consts:[[3,"formGroup"],["matTooltipPosition","left",1,"max-width",3,"matTooltip","matTooltipDisabled"],["data-cy","passwd-input","matInput","","formControlName","passwordCtrl",3,"type","required","errorStateMatcher","placeholder"],["matSuffix","","class","input-spinner",3,"diameter",4,"ngIf"],["matSuffix","",3,"click"],["color","warn","matSuffix","","class","error-icon",3,"matTooltip","matTooltipDisabled",4,"ngIf"],[4,"ngIf"],["matTooltipPosition","after",3,"matTooltip",4,"ngIf"],[1,"max-width"],["data-cy","confirm-passwd-input","matInput","","formControlName","passwordAgainCtrl",3,"type","required"],["alert_type","info"],[3,"innerHTML"],["matSuffix","",1,"input-spinner",3,"diameter"],["color","warn","matSuffix","",1,"error-icon",3,"matTooltip","matTooltipDisabled"],["matTooltipPosition","after",3,"matTooltip"]],template:function(L,V){1&L&&(w.TgZ(0,"div",0)(1,"mat-form-field",1),w._UZ(2,"input",2),w.ALo(3,"translate"),w.YNc(4,z,1,1,"mat-spinner",3),w.TgZ(5,"mat-icon",4),w.NdJ("click",function(){return V.showNewPassword=!V.showNewPassword}),w._uU(6),w.qZA(),w.YNc(7,$,2,2,"mat-icon",5),w.YNc(8,G,3,3,"mat-error",6),w.YNc(9,q,2,2,"mat-error",7),w.qZA(),w.TgZ(10,"mat-form-field",8)(11,"mat-label"),w._uU(12),w.ALo(13,"translate"),w.qZA(),w._UZ(14,"input",9),w.TgZ(15,"mat-icon",4),w.NdJ("click",function(){return V.showPasswordConfirm=!V.showPasswordConfirm}),w._uU(16),w.qZA(),w.YNc(17,_e,3,3,"mat-error",6),w.YNc(18,ce,3,3,"mat-error",6),w.qZA(),w.TgZ(19,"perun-web-apps-alert",10),w._UZ(20,"div",11),w.qZA()()),2&L&&(w.Q6J("formGroup",V.formGroup),w.xp6(1),w.Q6J("matTooltip",V.getPasswordDisabledTooltip())("matTooltipDisabled",V.formGroup.get("passwordCtrl").enabled||V.tooltipPwdDisabledForNamespace),w.xp6(1),w.s9C("placeholder",w.lcZ(3,19,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD")),w.Q6J("type",V.showNewPassword?"text":"password")("required",V.passwordRequired)("errorStateMatcher",V.passwordStateMatcher),w.xp6(2),w.Q6J("ngIf",V.formGroup.get("passwordCtrl").pending),w.xp6(2),w.hij(" ",V.showNewPassword?"visibility_off":"visibility"," "),w.xp6(1),w.Q6J("ngIf",V.formGroup.get("passwordCtrl").dirty&&null!==V.formGroup.get("passwordCtrl").errors),w.xp6(1),w.Q6J("ngIf",V.formGroup.get("passwordCtrl").hasError("required")),w.xp6(1),w.Q6J("ngIf",V.formGroup.get("passwordCtrl").hasError("backendError")),w.xp6(3),w.Oqu(w.lcZ(13,21,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD_AGAIN")),w.xp6(2),w.Q6J("type",V.showPasswordConfirm?"text":"password")("required",V.passwordRequired),w.xp6(2),w.hij(" ",V.showPasswordConfirm?"visibility_off":"visibility"," "),w.xp6(1),w.Q6J("ngIf",V.formGroup.get("passwordAgainCtrl").hasError("required")),w.xp6(1),w.Q6J("ngIf",V.formGroup.get("passwordAgainCtrl").hasError("noPasswordMatch")),w.xp6(2),w.Q6J("innerHTML",V.passwordRequirement,w.oJD))},dependencies:[g.O5,T.TO,T.KE,T.hX,T.R9,E.gM,S.Fj,S.JJ,S.JL,S.Q7,S.sg,S.u,R.Nt,v.Ou,D.Hw,F.w,p.X$],styles:[".max-width[_ngcontent-%COMP%]{width:100%!important}.input-spinner[_ngcontent-%COMP%]{float:right;margin-left:5px}.error-icon[_ngcontent-%COMP%]{margin-left:5px}mat-icon[_ngcontent-%COMP%]:hover{cursor:default}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper{padding-bottom:0}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-underline{position:static!important;position:initial!important;display:block;margin-top:-1px}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper, [_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-ripple{position:static!important;position:initial!important;display:table}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper{min-height:calc(1em + 1px)}"]}),b})()},47549:(Qe,he,u)=>{"use strict";u.d(he,{S:()=>g,y:()=>T});var e=u(82805),m=u(39646),A=u(63900),w=u(54004),p=u(70262);class g{isErrorState(S){return!(!S?.invalid||!S?.dirty)}}const T=(E,S,R,v=500)=>D=>(0,e.H)(v).pipe((0,A.w)(()=>(R.dontHandleErrorForNext(),E&&"No namespace"!==E?S.checkPasswordStrength({password:D.value,namespace:E}):(0,m.of)(null))),(0,w.U)(()=>null),(0,p.K)(F=>{const z={backendError:F.message.substring(F.message.indexOf(":")+1)};return(0,m.of)(z)}))},32105:(Qe,he,u)=>{"use strict";u.d(he,{au:()=>it,sY:()=>Ce,oW:()=>de,H8:()=>T,jw:()=>E,Ct:()=>S,VK:()=>g,WY:()=>v,KG:()=>F,IQ:()=>z,ff:()=>G,uq:()=>_e,aC:()=>ce,Hr:()=>Te,tk:()=>b,xk:()=>H,t7:()=>L,KK:()=>V,Ob:()=>Q,Dy:()=>ne,Fv:()=>ae,FW:()=>xe,YF:()=>ge});var e=u(80529);class m{encodeKey(X){return encodeURIComponent(X)}encodeValue(X){return encodeURIComponent(X)}decodeKey(X){return decodeURIComponent(X)}decodeValue(X){return decodeURIComponent(X)}}var A=u(94650);const w=new A.OlP("basePath");class g{constructor(X={}){this.apiKeys=X.apiKeys,this.username=X.username,this.password=X.password,this.accessToken=X.accessToken,this.basePath=X.basePath,this.withCredentials=X.withCredentials,this.encoder=X.encoder,this.credentials=X.credentials?X.credentials:{},this.credentials.BasicAuth||(this.credentials.BasicAuth=()=>this.username||this.password?btoa(this.username+":"+this.password):void 0),this.credentials.BearerAuth||(this.credentials.BearerAuth=()=>"function"==typeof this.accessToken?this.accessToken():this.accessToken)}selectHeaderContentType(X){if(0===X.length)return;const r=X.find(s=>this.isJsonMime(s));return void 0===r?X[0]:r}selectHeaderAccept(X){if(0===X.length)return;const r=X.find(s=>this.isJsonMime(s));return void 0===r?X[0]:r}isJsonMime(X){const r=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==X&&(r.test(X)||"application/json-patch+json"===X.toLowerCase())}lookupCredential(X){const r=this.credentials[X];return"function"==typeof r?r():r}}let T=(()=>{class oe{constructor(r,s,_){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new g,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof s&&(s=this.basePath),this.configuration.basePath=s),this.encoder=this.configuration.encoder||new m}addToHttpParams(r,s,_){return"object"!=typeof s||s instanceof Date?this.addToHttpParamsRecursive(r,s,_):this.addToHttpParamsRecursive(r,s)}addToHttpParamsRecursive(r,s,_){if(null==s)return r;if("object"==typeof s)if(Array.isArray(s))s.forEach(c=>r=this.addToHttpParamsRecursive(r,c,_));else if(s instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,s.toISOString().substr(0,10))}else Object.keys(s).forEach(c=>r=this.addToHttpParamsRecursive(r,s[c],null!=_?`${_}.${c}`:c));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,s)}return r}convertAttributeToNonunique(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToNonunique.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"attributeDefinition"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToNonunique`,null,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}convertAttributeToUnique(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToUnique.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"attributeDefinition"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToUnique`,null,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}createAttributeDefinition(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputCreateAttributeDefinition was null or undefined when calling createAttributeDefinition.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/createAttribute`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}deleteAttributeDefinition(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter attribute was null or undefined when calling deleteAttributeDefinition.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"attribute"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttribute`,null,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}deleteAttributeDefinitions(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter attributes was null or undefined when calling deleteAttributeDefinitions.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{a=this.addToHttpParams(a,d,"attributes[]")});let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttributes`,null,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getAllAttributeDefinitions(r="body",s=!1,_){let a,c=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(c=c.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(c=c.set("Authorization","Bearer "+a));let i=_&&_.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let t=_&&_.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributesDefinition`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:s})}getAttribute(r,s,_,c,a,i,t,n,o,l,d,y="body",k=!1,Ie){let tt=new e.LE({encoder:this.encoder});null!=r&&(tt=this.addToHttpParams(tt,r,"attributeName")),null!=s&&(tt=this.addToHttpParams(tt,s,"attributeId")),null!=_&&(tt=this.addToHttpParams(tt,_,"facility")),null!=c&&(tt=this.addToHttpParams(tt,c,"user")),null!=a&&(tt=this.addToHttpParams(tt,a,"vo")),null!=i&&(tt=this.addToHttpParams(tt,i,"resource")),null!=t&&(tt=this.addToHttpParams(tt,t,"member")),null!=n&&(tt=this.addToHttpParams(tt,n,"group")),null!=o&&(tt=this.addToHttpParams(tt,o,"host")),null!=l&&(tt=this.addToHttpParams(tt,l,"userExtSource")),null!=d&&(tt=this.addToHttpParams(tt,d,"key"));let Ue,ct=this.defaultHeaders;Ue=this.configuration.lookupCredential("BasicAuth"),Ue&&(ct=ct.set("Authorization","Basic "+Ue)),Ue=this.configuration.lookupCredential("BearerAuth"),Ue&&(ct=ct.set("Authorization","Bearer "+Ue));let at=Ie&&Ie.httpHeaderAccept;void 0===at&&(at=this.configuration.selectHeaderAccept(["application/json"])),void 0!==at&&(ct=ct.set("Accept",at));let fe=Ie&&Ie.context;void 0===fe&&(fe=new e.qT);let Oe="json";return at&&(Oe=at.startsWith("text")?"text":this.configuration.isJsonMime(at)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/any`,{context:fe,params:tt,responseType:Oe,withCredentials:this.configuration.withCredentials,headers:ct,observe:y,reportProgress:k})}getAttributeDefinitionById(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter id was null or undefined when calling getAttributeDefinitionById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinitionById`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getAttributeDefinitionByName(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter attributeName was null or undefined when calling getAttributeDefinitionByName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"attributeName"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinition`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getAttributeDefinitionsByNamespace(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter namespace was null or undefined when calling getAttributeDefinitionsByNamespace.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"namespace"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributesDefinitionByNamespace`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getAttributeModulesDependenciesForAttributeGraphText(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");if(null==s)throw new Error("Required parameter attrName was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"format")),null!=s&&(i=this.addToHttpParams(i,s,"attrName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText/for-attribute`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getAttributeModulesDependenciesGraphText(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesGraphText.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"format"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getAttributePolicyCollections(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter attributeId was null or undefined when calling getAttributePolicyCollections.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"attributeId"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributePolicyCollections`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getAttributeRights(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter attributeId was null or undefined when calling getAttributeRights.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"attributeId"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeRights`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getAttributeRules(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter attributeDefinition was null or undefined when calling getAttributeRules.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"attributeDefinition"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeRules`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getAttributesDefinitionWithRights(r,s,_,c,a,i,t,n,o="body",l=!1,d){let y=new e.LE({encoder:this.encoder});null!=r&&(y=this.addToHttpParams(y,r,"member")),null!=s&&(y=this.addToHttpParams(y,s,"user")),null!=_&&(y=this.addToHttpParams(y,_,"vo")),null!=c&&(y=this.addToHttpParams(y,c,"group")),null!=a&&(y=this.addToHttpParams(y,a,"resource")),null!=i&&(y=this.addToHttpParams(y,i,"facility")),null!=t&&(y=this.addToHttpParams(y,t,"host")),null!=n&&(y=this.addToHttpParams(y,n,"userExtSource"));let Ie,k=this.defaultHeaders;Ie=this.configuration.lookupCredential("BasicAuth"),Ie&&(k=k.set("Authorization","Basic "+Ie)),Ie=this.configuration.lookupCredential("BearerAuth"),Ie&&(k=k.set("Authorization","Bearer "+Ie));let tt=d&&d.httpHeaderAccept;void 0===tt&&(tt=this.configuration.selectHeaderAccept(["application/json"])),void 0!==tt&&(k=k.set("Accept",tt));let ct=d&&d.context;void 0===ct&&(ct=new e.qT);let Ue="json";return tt&&(Ue=tt.startsWith("text")?"text":this.configuration.isJsonMime(tt)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/attributesManager/getAttributesDefinitionWithRights`,{context:ct,params:y,responseType:Ue,withCredentials:this.configuration.withCredentials,headers:k,observe:o,reportProgress:l})}getEntitylessAttributeByName(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributeByName.");if(null==s)throw new Error("Required parameter attributeName was null or undefined when calling getEntitylessAttributeByName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"key")),null!=s&&(i=this.addToHttpParams(i,s,"attributeName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-entityless`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getEntitylessAttributesByKey(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributesByKey.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"key"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/key`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getEntitylessAttributesByName(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesByName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"attrName"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributes`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getEntitylessAttributesWithKeys(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesWithKeys.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"attrName")),s&&s.forEach(y=>{i=this.addToHttpParams(i,y,"keys[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributesWithKeys`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getEntitylessKeys(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter attributeDefinition was null or undefined when calling getEntitylessKeys.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"attributeDefinition"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessKeys`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getFacilityAttributeById(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeById.");if(null==s)throw new Error("Required parameter attributeId was null or undefined when calling getFacilityAttributeById.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=s&&(i=this.addToHttpParams(i,s,"attributeId"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-facility`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getFacilityAttributeByName(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeByName.");if(null==s)throw new Error("Required parameter attributeName was null or undefined when calling getFacilityAttributeByName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=s&&(i=this.addToHttpParams(i,s,"attributeName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-facility`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getFacilityAttributes(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributes.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getFacilityAttributesByNames(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributesByNames.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getFacilityAttributesByNames.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),s&&s.forEach(y=>{i=this.addToHttpParams(i,y,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-names`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getFacilityResourceUserMemberAttributes(r,s,_,c,a="body",i=!1,t){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==_)throw new Error("Required parameter user was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==c)throw new Error("Required parameter member was null or undefined when calling getFacilityResourceUserMemberAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=s&&(n=this.addToHttpParams(n,s,"resource")),null!=_&&(n=this.addToHttpParams(n,_,"user")),null!=c&&(n=this.addToHttpParams(n,c,"member"));let l,o=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(o=o.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(o=o.set("Authorization","Bearer "+l));let d=t&&t.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(o=o.set("Accept",d));let y=t&&t.context;void 0===y&&(y=new e.qT);let k="json";return d&&(k=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-r-u-m`,{context:y,params:n,responseType:k,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}getFacilityUserAttributes(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityUserAttributes.");if(null==s)throw new Error("Required parameter user was null or undefined when calling getFacilityUserAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=s&&(i=this.addToHttpParams(i,s,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-u`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getGroupAttributeById(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeById.");if(null==s)throw new Error("Required parameter attributeId was null or undefined when calling getGroupAttributeById.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),null!=s&&(i=this.addToHttpParams(i,s,"attributeId"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getGroupAttributeByName(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeByName.");if(null==s)throw new Error("Required parameter attributeName was null or undefined when calling getGroupAttributeByName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),null!=s&&(i=this.addToHttpParams(i,s,"attributeName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getGroupAttributes(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupAttributes.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/g`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getGroupAttributesByNames(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupAttributesByNames.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getGroupAttributesByNames.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),s&&s.forEach(y=>{i=this.addToHttpParams(i,y,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/g-names`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getGroupResourceAttributeById(r,s,_,c="body",a=!1,i){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeById.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeById.");if(null==_)throw new Error("Required parameter attributeId was null or undefined when calling getGroupResourceAttributeById.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"group")),null!=s&&(t=this.addToHttpParams(t,s,"resource")),null!=_&&(t=this.addToHttpParams(t,_,"attributeId"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let l=i&&i.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(n=n.set("Accept",l));let d=i&&i.context;void 0===d&&(d=new e.qT);let y="json";return l&&(y=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group-resource`,{context:d,params:t,responseType:y,withCredentials:this.configuration.withCredentials,headers:n,observe:c,reportProgress:a})}getGroupResourceAttributeByName(r,s,_,c="body",a=!1,i){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeByName.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeByName.");if(null==_)throw new Error("Required parameter attributeName was null or undefined when calling getGroupResourceAttributeByName.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"group")),null!=s&&(t=this.addToHttpParams(t,s,"resource")),null!=_&&(t=this.addToHttpParams(t,_,"attributeName"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let l=i&&i.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(n=n.set("Accept",l));let d=i&&i.context;void 0===d&&(d=new e.qT);let y="json";return l&&(y=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group-resource`,{context:d,params:t,responseType:y,withCredentials:this.configuration.withCredentials,headers:n,observe:c,reportProgress:a})}getGroupResourceAttributes(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributes.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),null!=s&&(i=this.addToHttpParams(i,s,"resource"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/group-resource`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getHostAttributeById(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter host was null or undefined when calling getHostAttributeById.");if(null==s)throw new Error("Required parameter attributeId was null or undefined when calling getHostAttributeById.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"host")),null!=s&&(i=this.addToHttpParams(i,s,"attributeId"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-host`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getHostAttributeByName(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter host was null or undefined when calling getHostAttributeByName.");if(null==s)throw new Error("Required parameter attributeName was null or undefined when calling getHostAttributeByName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"host")),null!=s&&(i=this.addToHttpParams(i,s,"attributeName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-host`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getHostAttributes(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter host was null or undefined when calling getHostAttributes.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"host"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/h`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getHostAttributesByNames(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter host was null or undefined when calling getHostAttributesByNames.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getHostAttributesByNames.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"host")),s&&s.forEach(y=>{i=this.addToHttpParams(i,y,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/h-names`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getLogins(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter user was null or undefined when calling getLogins.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getLogins`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getMemberAndUserAttributes(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributes.");if(null==s)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),null!=s&&(i=this.addToHttpParams(i,s,"workWithUserAttributes"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-wu`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getMemberAndUserAttributesByNames(r,s,_,c="body",a=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==_)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributesByNames.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),s&&s.forEach(k=>{t=this.addToHttpParams(t,k,"attrNames[]")}),null!=_&&(t=this.addToHttpParams(t,_,"workWithUserAttributes"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let l=i&&i.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(n=n.set("Accept",l));let d=i&&i.context;void 0===d&&(d=new e.qT);let y="json";return l&&(y=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names-wu`,{context:d,params:t,responseType:y,withCredentials:this.configuration.withCredentials,headers:n,observe:c,reportProgress:a})}getMemberAttributeById(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeById.");if(null==s)throw new Error("Required parameter attributeId was null or undefined when calling getMemberAttributeById.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),null!=s&&(i=this.addToHttpParams(i,s,"attributeId"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getMemberAttributeByName(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeByName.");if(null==s)throw new Error("Required parameter attributeName was null or undefined when calling getMemberAttributeByName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),null!=s&&(i=this.addToHttpParams(i,s,"attributeName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getMemberAttributes(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberAttributes.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getMemberAttributesByNames(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberAttributesByNames.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAttributesByNames.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),s&&s.forEach(y=>{i=this.addToHttpParams(i,y,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getMemberGroupAndUserAttributesByNames(r,s,_,c,a="body",i=!1,t){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==s)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==_)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==c)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberGroupAndUserAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),null!=s&&(n=this.addToHttpParams(n,s,"group")),_&&_.forEach(Ie=>{n=this.addToHttpParams(n,Ie,"attrNames[]")}),null!=c&&(n=this.addToHttpParams(n,c,"workWithUserAttributes"));let l,o=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(o=o.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(o=o.set("Authorization","Bearer "+l));let d=t&&t.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(o=o.set("Accept",d));let y=t&&t.context;void 0===y&&(y=new e.qT);let k="json";return d&&(k=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names-wu`,{context:y,params:n,responseType:k,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}getMemberGroupAttributeById(r,s,_,c="body",a=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeById.");if(null==s)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeById.");if(null==_)throw new Error("Required parameter attributeId was null or undefined when calling getMemberGroupAttributeById.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=s&&(t=this.addToHttpParams(t,s,"group")),null!=_&&(t=this.addToHttpParams(t,_,"attributeId"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let l=i&&i.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(n=n.set("Accept",l));let d=i&&i.context;void 0===d&&(d=new e.qT);let y="json";return l&&(y=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-group`,{context:d,params:t,responseType:y,withCredentials:this.configuration.withCredentials,headers:n,observe:c,reportProgress:a})}getMemberGroupAttributeByName(r,s,_,c="body",a=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeByName.");if(null==s)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeByName.");if(null==_)throw new Error("Required parameter attributeName was null or undefined when calling getMemberGroupAttributeByName.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=s&&(t=this.addToHttpParams(t,s,"group")),null!=_&&(t=this.addToHttpParams(t,_,"attributeName"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let l=i&&i.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(n=n.set("Accept",l));let d=i&&i.context;void 0===d&&(d=new e.qT);let y="json";return l&&(y=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-group`,{context:d,params:t,responseType:y,withCredentials:this.configuration.withCredentials,headers:n,observe:c,reportProgress:a})}getMemberGroupAttributes(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributes.");if(null==s)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),null!=s&&(i=this.addToHttpParams(i,s,"group"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getMemberGroupAttributesByNames(r,s,_,c="body",a=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributesByNames.");if(null==s)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributesByNames.");if(null==_)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAttributesByNames.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=s&&(t=this.addToHttpParams(t,s,"group")),_&&_.forEach(k=>{t=this.addToHttpParams(t,k,"attrNames[]")});let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let l=i&&i.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(n=n.set("Accept",l));let d=i&&i.context;void 0===d&&(d=new e.qT);let y="json";return l&&(y=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names`,{context:d,params:t,responseType:y,withCredentials:this.configuration.withCredentials,headers:n,observe:c,reportProgress:a})}getMemberResourceAndUserFacilityAttributes(r,s,_,c="body",a=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==_)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=s&&(t=this.addToHttpParams(t,s,"resource")),null!=_&&(t=this.addToHttpParams(t,_,"workWithUserAttributes"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let l=i&&i.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(n=n.set("Accept",l));let d=i&&i.context;void 0===d&&(d=new e.qT);let y="json";return l&&(y=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-wu`,{context:d,params:t,responseType:y,withCredentials:this.configuration.withCredentials,headers:n,observe:c,reportProgress:a})}getMemberResourceAndUserFacilityAttributesByNames(r,s,_,c,a="body",i=!1,t){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==_)throw new Error("Required parameter attrNames was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==c)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),null!=s&&(n=this.addToHttpParams(n,s,"resource")),_&&_.forEach(Ie=>{n=this.addToHttpParams(n,Ie,"attrNames[]")}),null!=c&&(n=this.addToHttpParams(n,c,"workWithUserAttributes"));let l,o=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(o=o.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(o=o.set("Authorization","Bearer "+l));let d=t&&t.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(o=o.set("Accept",d));let y=t&&t.context;void 0===y&&(y=new e.qT);let k="json";return d&&(k=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-names-wu`,{context:y,params:n,responseType:k,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}getMemberResourceAttributeById(r,s,_,c="body",a=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeById.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeById.");if(null==_)throw new Error("Required parameter attributeId was null or undefined when calling getMemberResourceAttributeById.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=s&&(t=this.addToHttpParams(t,s,"resource")),null!=_&&(t=this.addToHttpParams(t,_,"attributeId"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let l=i&&i.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(n=n.set("Accept",l));let d=i&&i.context;void 0===d&&(d=new e.qT);let y="json";return l&&(y=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-resource`,{context:d,params:t,responseType:y,withCredentials:this.configuration.withCredentials,headers:n,observe:c,reportProgress:a})}getMemberResourceAttributeByName(r,s,_,c="body",a=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeByName.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeByName.");if(null==_)throw new Error("Required parameter attributeName was null or undefined when calling getMemberResourceAttributeByName.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=s&&(t=this.addToHttpParams(t,s,"resource")),null!=_&&(t=this.addToHttpParams(t,_,"attributeName"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let l=i&&i.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(n=n.set("Accept",l));let d=i&&i.context;void 0===d&&(d=new e.qT);let y="json";return l&&(y=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-resource`,{context:d,params:t,responseType:y,withCredentials:this.configuration.withCredentials,headers:n,observe:c,reportProgress:a})}getMemberResourceAttributes(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributes.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),null!=s&&(i=this.addToHttpParams(i,s,"resource"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getRequiredAttributesDefinition(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesDefinition.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"service"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributesDefinition`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getRequiredAttributesFacility(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacility.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/f`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getRequiredAttributesFacilityService(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesFacilityService.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityService.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=s&&(i=this.addToHttpParams(i,s,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-f`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getRequiredAttributesFacilityServices(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesFacilityServices.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityServices.");let i=new e.LE({encoder:this.encoder});r&&r.forEach(y=>{i=this.addToHttpParams(i,y,"services[]")}),null!=s&&(i=this.addToHttpParams(i,s,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-f`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getRequiredAttributesGroupResourceService(r,s,_,c="body",a=!1,i){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==_)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesGroupResourceService.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"service")),null!=s&&(t=this.addToHttpParams(t,s,"resource")),null!=_&&(t=this.addToHttpParams(t,_,"group"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let l=i&&i.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(n=n.set("Accept",l));let d=i&&i.context;void 0===d&&(d=new e.qT);let y="json";return l&&(y=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g`,{context:d,params:t,responseType:y,withCredentials:this.configuration.withCredentials,headers:n,observe:c,reportProgress:a})}getRequiredAttributesHostService(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesHostService.");if(null==s)throw new Error("Required parameter host was null or undefined when calling getRequiredAttributesHostService.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=s&&(i=this.addToHttpParams(i,s,"host"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-h`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getRequiredAttributesMember(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMember.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),null!=s&&(i=this.addToHttpParams(i,s,"workWithUserAttributes"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getRequiredAttributesMemberGroup(r,s,_,c="body",a=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroup.");if(null==s)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroup.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=s&&(t=this.addToHttpParams(t,s,"group")),null!=_&&(t=this.addToHttpParams(t,_,"workWithUserAttributes"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let l=i&&i.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(n=n.set("Accept",l));let d=i&&i.context;void 0===d&&(d=new e.qT);let y="json";return l&&(y=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-g`,{context:d,params:t,responseType:y,withCredentials:this.configuration.withCredentials,headers:n,observe:c,reportProgress:a})}getRequiredAttributesMemberGroupResourceService(r,s,_,c,a,i="body",t=!1,n){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==_)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==c)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"service")),null!=s&&(o=this.addToHttpParams(o,s,"resource")),null!=_&&(o=this.addToHttpParams(o,_,"group")),null!=c&&(o=this.addToHttpParams(o,c,"member")),null!=a&&(o=this.addToHttpParams(o,a,"workWithUserAttributes"));let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let y=n&&n.httpHeaderAccept;void 0===y&&(y=this.configuration.selectHeaderAccept(["application/json"])),void 0!==y&&(l=l.set("Accept",y));let k=n&&n.context;void 0===k&&(k=new e.qT);let Ie="json";return y&&(Ie=y.startsWith("text")?"text":this.configuration.isJsonMime(y)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g-m`,{context:k,params:o,responseType:Ie,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:t})}getRequiredAttributesMemberGroupService(r,s,_,c,a="body",i=!1,t){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==s)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==_)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupService.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=s&&(n=this.addToHttpParams(n,s,"group")),null!=_&&(n=this.addToHttpParams(n,_,"member")),null!=c&&(n=this.addToHttpParams(n,c,"workWithUserAttributes"));let l,o=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(o=o.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(o=o.set("Authorization","Bearer "+l));let d=t&&t.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(o=o.set("Accept",d));let y=t&&t.context;void 0===y&&(y=new e.qT);let k="json";return d&&(k=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-g-m`,{context:y,params:n,responseType:k,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}getRequiredAttributesMemberResource(r,s,_,c="body",a=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResource.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResource.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=s&&(t=this.addToHttpParams(t,s,"resource")),null!=_&&(t=this.addToHttpParams(t,_,"workWithUserAttributes"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let l=i&&i.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(n=n.set("Accept",l));let d=i&&i.context;void 0===d&&(d=new e.qT);let y="json";return l&&(y=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-r`,{context:d,params:t,responseType:y,withCredentials:this.configuration.withCredentials,headers:n,observe:c,reportProgress:a})}getRequiredAttributesMemberResourceService(r,s,_,c,a="body",i=!1,t){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==_)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResourceService.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=s&&(n=this.addToHttpParams(n,s,"resource")),null!=_&&(n=this.addToHttpParams(n,_,"member")),null!=c&&(n=this.addToHttpParams(n,c,"workWithUserAttributes"));let l,o=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(o=o.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(o=o.set("Authorization","Bearer "+l));let d=t&&t.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(o=o.set("Accept",d));let y=t&&t.context;void 0===y&&(y=new e.qT);let k="json";return d&&(k=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-m`,{context:y,params:n,responseType:k,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}getRequiredAttributesResource(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResource.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"resource"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/r`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getRequiredAttributesResourceService(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesResourceService.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceService.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=s&&(i=this.addToHttpParams(i,s,"resource"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getRequiredAttributesResourceServices(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesResourceServices.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceServices.");let i=new e.LE({encoder:this.encoder});r&&r.forEach(y=>{i=this.addToHttpParams(i,y,"services[]")}),null!=s&&(i=this.addToHttpParams(i,s,"resource"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-r`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getRequiredAttributesUser(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUser.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getRequiredAttributesUserFacility(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUserFacility.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesUserFacility.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),null!=s&&(i=this.addToHttpParams(i,s,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u-f`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getRequiredAttributesVoService(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesVoService.");if(null==s)throw new Error("Required parameter vo was null or undefined when calling getRequiredAttributesVoService.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=s&&(i=this.addToHttpParams(i,s,"vo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-v`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getResourceAttributeById(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeById.");if(null==s)throw new Error("Required parameter attributeId was null or undefined when calling getResourceAttributeById.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"attributeId"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-resource`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getResourceAttributeByName(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeByName.");if(null==s)throw new Error("Required parameter attributeName was null or undefined when calling getResourceAttributeByName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"attributeName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-resource`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getResourceAttributes(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributes.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"resource"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getResourceAttributesByNames(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributesByNames.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getResourceAttributesByNames.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),s&&s.forEach(y=>{i=this.addToHttpParams(i,y,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-names`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getResourceGroupAndGroupAttributes(r,s,_,c="body",a=!1,i){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==s)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==_)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributes.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"resource")),null!=s&&(t=this.addToHttpParams(t,s,"group")),null!=_&&(t=this.addToHttpParams(t,_,"workWithGroupAttributes"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let l=i&&i.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(n=n.set("Accept",l));let d=i&&i.context;void 0===d&&(d=new e.qT);let y="json";return l&&(y=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-wg`,{context:d,params:t,responseType:y,withCredentials:this.configuration.withCredentials,headers:n,observe:c,reportProgress:a})}getResourceGroupAndGroupAttributesByNames(r,s,_,c,a="body",i=!1,t){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==s)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==_)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==c)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),null!=s&&(n=this.addToHttpParams(n,s,"group")),_&&_.forEach(Ie=>{n=this.addToHttpParams(n,Ie,"attrNames[]")}),null!=c&&(n=this.addToHttpParams(n,c,"workWithGroupAttributes"));let l,o=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(o=o.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(o=o.set("Authorization","Bearer "+l));let d=t&&t.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(o=o.set("Accept",d));let y=t&&t.context;void 0===y&&(y=new e.qT);let k="json";return d&&(k=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-names-wg`,{context:y,params:n,responseType:k,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}getResourceGroupAttributes(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAttributes.");if(null==s)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"group"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getResourceGroupMemberAttributesByNames(r,s,_,c,a="body",i=!1,t){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==s)throw new Error("Required parameter group was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==_)throw new Error("Required parameter member was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==c)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupMemberAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),null!=s&&(n=this.addToHttpParams(n,s,"group")),null!=_&&(n=this.addToHttpParams(n,_,"member")),c&&c.forEach(Ie=>{n=this.addToHttpParams(n,Ie,"attrNames[]")});let l,o=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(o=o.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(o=o.set("Authorization","Bearer "+l));let d=t&&t.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(o=o.set("Accept",d));let y=t&&t.context;void 0===y&&(y=new e.qT);let k="json";return d&&(k=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-m-names`,{context:y,params:n,responseType:k,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}getUserAttributeById(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling getUserAttributeById.");if(null==s)throw new Error("Required parameter attributeId was null or undefined when calling getUserAttributeById.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),null!=s&&(i=this.addToHttpParams(i,s,"attributeId"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getUserAttributeByName(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling getUserAttributeByName.");if(null==s)throw new Error("Required parameter attributeName was null or undefined when calling getUserAttributeByName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),null!=s&&(i=this.addToHttpParams(i,s,"attributeName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getUserAttributes(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter user was null or undefined when calling getUserAttributes.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/u`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getUserAttributesByNames(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling getUserAttributesByNames.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getUserAttributesByNames.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),s&&s.forEach(y=>{i=this.addToHttpParams(i,y,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/u-names`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getUserExtSourceAttributeById(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeById.");if(null==s)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceAttributeById.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"userExtSource")),null!=s&&(i=this.addToHttpParams(i,s,"attributeId"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-ues`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getUserExtSourceAttributeByName(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeByName.");if(null==s)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceAttributeByName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"userExtSource")),null!=s&&(i=this.addToHttpParams(i,s,"attributeName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-ues`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getUserExtSourceAttributes(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributes.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"userExtSource"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/ues`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getUserExtSourceAttributesByNames(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributesByNames.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getUserExtSourceAttributesByNames.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"userExtSource")),s&&s.forEach(y=>{i=this.addToHttpParams(i,y,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/ues-names`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getUserFacilityAttributeById(r,s,_,c="body",a=!1,i){if(null==r)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeById.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeById.");if(null==_)throw new Error("Required parameter attributeId was null or undefined when calling getUserFacilityAttributeById.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"user")),null!=s&&(t=this.addToHttpParams(t,s,"facility")),null!=_&&(t=this.addToHttpParams(t,_,"attributeId"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let l=i&&i.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(n=n.set("Accept",l));let d=i&&i.context;void 0===d&&(d=new e.qT);let y="json";return l&&(y=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user_facility`,{context:d,params:t,responseType:y,withCredentials:this.configuration.withCredentials,headers:n,observe:c,reportProgress:a})}getUserFacilityAttributeByName(r,s,_,c="body",a=!1,i){if(null==r)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeByName.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeByName.");if(null==_)throw new Error("Required parameter attributeName was null or undefined when calling getUserFacilityAttributeByName.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"user")),null!=s&&(t=this.addToHttpParams(t,s,"facility")),null!=_&&(t=this.addToHttpParams(t,_,"attributeName"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let l=i&&i.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(n=n.set("Accept",l));let d=i&&i.context;void 0===d&&(d=new e.qT);let y="json";return l&&(y=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user_facility`,{context:d,params:t,responseType:y,withCredentials:this.configuration.withCredentials,headers:n,observe:c,reportProgress:a})}getUserFacilityAttributes(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributes.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),null!=s&&(i=this.addToHttpParams(i,s,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/user-facility`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getVoAttributeById(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeById.");if(null==s)throw new Error("Required parameter attributeId was null or undefined when calling getVoAttributeById.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=s&&(i=this.addToHttpParams(i,s,"attributeId"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-vo`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getVoAttributeByName(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeByName.");if(null==s)throw new Error("Required parameter attributeName was null or undefined when calling getVoAttributeByName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=s&&(i=this.addToHttpParams(i,s,"attributeName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-vo`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getVoAttributes(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoAttributes.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/vo`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getVoAttributesByNames(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoAttributesByNames.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getVoAttributesByNames.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),s&&s.forEach(y=>{i=this.addToHttpParams(i,y,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/vo-names`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}removeAttributesForFacilityResourceGroupUserMember(r,s,_,c,a,i,t="body",n=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==_)throw new Error("Required parameter group was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==c)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==a)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");let l=new e.LE({encoder:this.encoder});null!=r&&(l=this.addToHttpParams(l,r,"facility")),null!=s&&(l=this.addToHttpParams(l,s,"resource")),null!=_&&(l=this.addToHttpParams(l,_,"group")),null!=c&&(l=this.addToHttpParams(l,c,"user")),null!=a&&(l=this.addToHttpParams(l,a,"member")),i&&i.forEach(ct=>{l=this.addToHttpParams(l,ct,"attributes[]")});let y,d=this.defaultHeaders;y=this.configuration.lookupCredential("BasicAuth"),y&&(d=d.set("Authorization","Basic "+y)),y=this.configuration.lookupCredential("BearerAuth"),y&&(d=d.set("Authorization","Bearer "+y));let k=o&&o.httpHeaderAccept;void 0===k&&(k=this.configuration.selectHeaderAccept(["application/json"])),void 0!==k&&(d=d.set("Accept",k));let Ie=o&&o.context;void 0===Ie&&(Ie=new e.qT);let tt="json";return k&&(tt=k.startsWith("text")?"text":this.configuration.isJsonMime(k)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-g-u-m`,null,{context:Ie,params:l,responseType:tt,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:n})}removeAttributesForFacilityResourceUserMember(r,s,_,c,a,i="body",t=!1,n){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==_)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==c)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==a)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceUserMember.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility")),null!=s&&(o=this.addToHttpParams(o,s,"resource")),null!=_&&(o=this.addToHttpParams(o,_,"user")),null!=c&&(o=this.addToHttpParams(o,c,"member")),a&&a.forEach(tt=>{o=this.addToHttpParams(o,tt,"attributes[]")});let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let y=n&&n.httpHeaderAccept;void 0===y&&(y=this.configuration.selectHeaderAccept(["application/json"])),void 0!==y&&(l=l.set("Accept",y));let k=n&&n.context;void 0===k&&(k=new e.qT);let Ie="json";return y&&(Ie=y.startsWith("text")?"text":this.configuration.isJsonMime(y)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-u-m`,null,{context:k,params:o,responseType:Ie,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:t})}removeEntitylessAttribute(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter key was null or undefined when calling removeEntitylessAttribute.");if(null==s)throw new Error("Required parameter attribute was null or undefined when calling removeEntitylessAttribute.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"key")),null!=s&&(i=this.addToHttpParams(i,s,"attribute"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/e`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}removeFacilityAttribute(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttribute.");if(null==s)throw new Error("Required parameter attribute was null or undefined when calling removeFacilityAttribute.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=s&&(i=this.addToHttpParams(i,s,"attribute"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/f`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}removeFacilityAttributes(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeFacilityAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),s&&s.forEach(y=>{i=this.addToHttpParams(i,y,"attributes[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}removeGroupAttribute(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling removeGroupAttribute.");if(null==s)throw new Error("Required parameter attribute was null or undefined when calling removeGroupAttribute.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),null!=s&&(i=this.addToHttpParams(i,s,"attribute"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}removeGroupAttributes(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling removeGroupAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeGroupAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),s&&s.forEach(y=>{i=this.addToHttpParams(i,y,"attributes[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}removeGroupResourceAttribute(r,s,_,c="body",a=!1,i){if(null==r)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttribute.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttribute.");if(null==_)throw new Error("Required parameter attribute was null or undefined when calling removeGroupResourceAttribute.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"group")),null!=s&&(t=this.addToHttpParams(t,s,"resource")),null!=_&&(t=this.addToHttpParams(t,_,"attribute"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let l=i&&i.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(n=n.set("Accept",l));let d=i&&i.context;void 0===d&&(d=new e.qT);let y="json";return l&&(y=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g-r`,null,{context:d,params:t,responseType:y,withCredentials:this.configuration.withCredentials,headers:n,observe:c,reportProgress:a})}removeGroupResourceAttributes(r,s,_,c="body",a=!1,i){if(null==r)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributes.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributes.");if(null==_)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributes.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"group")),null!=s&&(t=this.addToHttpParams(t,s,"resource")),_&&_.forEach(k=>{t=this.addToHttpParams(t,k,"attributes[]")});let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let l=i&&i.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(n=n.set("Accept",l));let d=i&&i.context;void 0===d&&(d=new e.qT);let y="json";return l&&(y=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r`,null,{context:d,params:t,responseType:y,withCredentials:this.configuration.withCredentials,headers:n,observe:c,reportProgress:a})}removeGroupResourceAttributesWorkWithGroupAttributes(r,s,_,c,a="body",i=!1,t){if(null==r)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==_)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==c)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),null!=s&&(n=this.addToHttpParams(n,s,"resource")),_&&_.forEach(Ie=>{n=this.addToHttpParams(n,Ie,"attributes[]")}),null!=c&&(n=this.addToHttpParams(n,c,"workWithGroupAttributes"));let l,o=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(o=o.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(o=o.set("Authorization","Bearer "+l));let d=t&&t.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(o=o.set("Accept",d));let y=t&&t.context;void 0===y&&(y=new e.qT);let k="json";return d&&(k=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r-workWithGroupAttributes`,null,{context:y,params:n,responseType:k,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}removeHostAttribute(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter host was null or undefined when calling removeHostAttribute.");if(null==s)throw new Error("Required parameter attribute was null or undefined when calling removeHostAttribute.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"host")),null!=s&&(i=this.addToHttpParams(i,s,"attribute"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/h`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}removeHostAttributes(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter host was null or undefined when calling removeHostAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeHostAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"host")),s&&s.forEach(y=>{i=this.addToHttpParams(i,y,"attributes[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/h`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}removeMemberAttribute(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeMemberAttribute.");if(null==s)throw new Error("Required parameter attribute was null or undefined when calling removeMemberAttribute.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),null!=s&&(i=this.addToHttpParams(i,s,"attribute"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}removeMemberAttributes(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),s&&s.forEach(y=>{i=this.addToHttpParams(i,y,"attributes[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}removeMemberAttributesWorkWithUserAttributes(r,s,_,c="body",a=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==_)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),s&&s.forEach(k=>{t=this.addToHttpParams(t,k,"attributes[]")}),null!=_&&(t=this.addToHttpParams(t,_,"workWithUserAttributes"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let l=i&&i.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(n=n.set("Accept",l));let d=i&&i.context;void 0===d&&(d=new e.qT);let y="json";return l&&(y=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-workWithUserAttributes`,null,{context:d,params:t,responseType:y,withCredentials:this.configuration.withCredentials,headers:n,observe:c,reportProgress:a})}removeMemberGroupAttribute(r,s,_,c="body",a=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttribute.");if(null==s)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttribute.");if(null==_)throw new Error("Required parameter attribute was null or undefined when calling removeMemberGroupAttribute.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=s&&(t=this.addToHttpParams(t,s,"group")),null!=_&&(t=this.addToHttpParams(t,_,"attribute"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let l=i&&i.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(n=n.set("Accept",l));let d=i&&i.context;void 0===d&&(d=new e.qT);let y="json";return l&&(y=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-g`,null,{context:d,params:t,responseType:y,withCredentials:this.configuration.withCredentials,headers:n,observe:c,reportProgress:a})}removeMemberGroupAttributes(r,s,_,c="body",a=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributes.");if(null==s)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributes.");if(null==_)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributes.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=s&&(t=this.addToHttpParams(t,s,"group")),_&&_.forEach(k=>{t=this.addToHttpParams(t,k,"attributes[]")});let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let l=i&&i.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(n=n.set("Accept",l));let d=i&&i.context;void 0===d&&(d=new e.qT);let y="json";return l&&(y=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g`,null,{context:d,params:t,responseType:y,withCredentials:this.configuration.withCredentials,headers:n,observe:c,reportProgress:a})}removeMemberGroupAttributesWorkWithUserAttributes(r,s,_,c,a="body",i=!1,t){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==s)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==_)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==c)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),null!=s&&(n=this.addToHttpParams(n,s,"group")),_&&_.forEach(Ie=>{n=this.addToHttpParams(n,Ie,"attributes[]")}),null!=c&&(n=this.addToHttpParams(n,c,"workWithUserAttributes"));let l,o=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(o=o.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(o=o.set("Authorization","Bearer "+l));let d=t&&t.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(o=o.set("Accept",d));let y=t&&t.context;void 0===y&&(y=new e.qT);let k="json";return d&&(k=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g-workWithUserAttributes`,null,{context:y,params:n,responseType:k,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}removeMemberResourceAttribute(r,s,_,c="body",a=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttribute.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttribute.");if(null==_)throw new Error("Required parameter attribute was null or undefined when calling removeMemberResourceAttribute.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=s&&(t=this.addToHttpParams(t,s,"resource")),null!=_&&(t=this.addToHttpParams(t,_,"attribute"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let l=i&&i.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(n=n.set("Accept",l));let d=i&&i.context;void 0===d&&(d=new e.qT);let y="json";return l&&(y=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-r`,null,{context:d,params:t,responseType:y,withCredentials:this.configuration.withCredentials,headers:n,observe:c,reportProgress:a})}removeMemberResourceAttributes(r,s,_,c="body",a=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttributes.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttributes.");if(null==_)throw new Error("Required parameter attributes was null or undefined when calling removeMemberResourceAttributes.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=s&&(t=this.addToHttpParams(t,s,"resource")),_&&_.forEach(k=>{t=this.addToHttpParams(t,k,"attributes[]")});let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let l=i&&i.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(n=n.set("Accept",l));let d=i&&i.context;void 0===d&&(d=new e.qT);let y="json";return l&&(y=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-r`,null,{context:d,params:t,responseType:y,withCredentials:this.configuration.withCredentials,headers:n,observe:c,reportProgress:a})}removeResourceAttribute(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttribute.");if(null==s)throw new Error("Required parameter attribute was null or undefined when calling removeResourceAttribute.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"attribute"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/r`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}removeResourceAttributes(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeResourceAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),s&&s.forEach(y=>{i=this.addToHttpParams(i,y,"attributes[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/r`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}removeUesAttributes(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter userExtSource was null or undefined when calling removeUesAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeUesAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"userExtSource")),s&&s.forEach(y=>{i=this.addToHttpParams(i,y,"attributes[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/ues`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}removeUserAttribute(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling removeUserAttribute.");if(null==s)throw new Error("Required parameter attribute was null or undefined when calling removeUserAttribute.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),null!=s&&(i=this.addToHttpParams(i,s,"attribute"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}removeUserAttributes(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling removeUserAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeUserAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),s&&s.forEach(y=>{i=this.addToHttpParams(i,y,"attributes[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}removeUserExtSourceAttribute(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSourceAttribute.");if(null==s)throw new Error("Required parameter attribute was null or undefined when calling removeUserExtSourceAttribute.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"userExtSource")),null!=s&&(i=this.addToHttpParams(i,s,"attribute"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/ues`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}removeUserFacilityAttribute(r,s,_,c="body",a=!1,i){if(null==r)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttribute.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttribute.");if(null==_)throw new Error("Required parameter attribute was null or undefined when calling removeUserFacilityAttribute.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"user")),null!=s&&(t=this.addToHttpParams(t,s,"facility")),null!=_&&(t=this.addToHttpParams(t,_,"attribute"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let l=i&&i.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(n=n.set("Accept",l));let d=i&&i.context;void 0===d&&(d=new e.qT);let y="json";return l&&(y=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u-f`,null,{context:d,params:t,responseType:y,withCredentials:this.configuration.withCredentials,headers:n,observe:c,reportProgress:a})}removeUserFacilityAttributes(r,s,_,c="body",a=!1,i){if(null==r)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttributes.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttributes.");if(null==_)throw new Error("Required parameter attributes was null or undefined when calling removeUserFacilityAttributes.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"user")),null!=s&&(t=this.addToHttpParams(t,s,"facility")),_&&_.forEach(k=>{t=this.addToHttpParams(t,k,"attributes[]")});let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let l=i&&i.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(n=n.set("Accept",l));let d=i&&i.context;void 0===d&&(d=new e.qT);let y="json";return l&&(y=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u-f`,null,{context:d,params:t,responseType:y,withCredentials:this.configuration.withCredentials,headers:n,observe:c,reportProgress:a})}removeVoAttribute(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling removeVoAttribute.");if(null==s)throw new Error("Required parameter attribute was null or undefined when calling removeVoAttribute.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=s&&(i=this.addToHttpParams(i,s,"attribute"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/v`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}removeVoAttributes(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling removeVoAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeVoAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),s&&s.forEach(y=>{i=this.addToHttpParams(i,y,"attributes[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/v`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}setAttributeActionCriticality(r,s,_,c="body",a=!1,i){if(null==r)throw new Error("Required parameter attributeDefinition was null or undefined when calling setAttributeActionCriticality.");if(null==s)throw new Error("Required parameter action was null or undefined when calling setAttributeActionCriticality.");if(null==_)throw new Error("Required parameter critical was null or undefined when calling setAttributeActionCriticality.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"attributeDefinition")),null!=s&&(t=this.addToHttpParams(t,s,"action")),null!=_&&(t=this.addToHttpParams(t,_,"critical"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let l=i&&i.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(n=n.set("Accept",l));let d=i&&i.context;void 0===d&&(d=new e.qT);let y="json";return l&&(y=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/setAttributeActionCriticality`,null,{context:d,params:t,responseType:y,withCredentials:this.configuration.withCredentials,headers:n,observe:c,reportProgress:a})}setAttributePolicyCollections(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputAttributePolicyCollections was null or undefined when calling setAttributePolicyCollections.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributePolicyCollections`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}setAttributeRights(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputAttributeRights was null or undefined when calling setAttributeRights.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributeRights`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}setEntitylessAttribute(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputEntitylessAttribute was null or undefined when calling setEntitylessAttribute.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/entityless`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}setFacilityAttribute(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputSetFacilityAttribute was null or undefined when calling setFacilityAttribute.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/facility`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}setFacilityAttributes(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputSetFacilityAttributes was null or undefined when calling setFacilityAttributes.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}setFacilityResourceGroupUserMemberAttributes(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputSetFacilityResourceGroupUserMemberAttributes was null or undefined when calling setFacilityResourceGroupUserMemberAttributes.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-g-u-m`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}setFacilityResourceUserMemberAttributes(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputSetFacilityResourceUserMemberAttributes was null or undefined when calling setFacilityResourceUserMemberAttributes.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-u-m`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}setFacilityUserAttributes(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputSetFacilityUserAttributes was null or undefined when calling setFacilityUserAttributes.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-u`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}setGroupAttribute(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputSetGroupAttribute was null or undefined when calling setGroupAttribute.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/group`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}setGroupAttributes(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputSetGroupAttributes was null or undefined when calling setGroupAttributes.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/g`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}setGroupResourceAttribute(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputSetGroupResourceAttribute was null or undefined when calling setGroupResourceAttribute.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/group-resource`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}setGroupResourceAttributes(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputSetGroupResourceAttributes was null or undefined when calling setGroupResourceAttributes.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/group-resource`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}setHostAttribute(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputSetHostAttribute was null or undefined when calling setHostAttribute.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/host`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}setHostAttributes(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputSetHostAttributes was null or undefined when calling setHostAttributes.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/h`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}setMemberAttribute(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputSetMemberAttribute was null or undefined when calling setMemberAttribute.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}setMemberAttributes(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputSetMemberAttributes was null or undefined when calling setMemberAttributes.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}setMemberGroupAttribute(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputSetMemberGroupAttribute was null or undefined when calling setMemberGroupAttribute.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member-group`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}setMemberGroupAttributes(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputSetMemberGroupAttributes was null or undefined when calling setMemberGroupAttributes.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}setMemberGroupWithUserAttributes(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputSetMemberGroupWithUserAttributes was null or undefined when calling setMemberGroupWithUserAttributes.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g-wu`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}setMemberResourceAndUserAttributes(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputSetMemberResourceAndUserAttributes was null or undefined when calling setMemberResourceAndUserAttributes.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r-wu`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}setMemberResourceAttribute(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputSetMemberResourceAttribute was null or undefined when calling setMemberResourceAttribute.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member-resource`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}setMemberResourceAttributes(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputSetMemberResourceAttributes was null or undefined when calling setMemberResourceAttributes.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}setMemberWithUserAttributes(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputSetMemberWithUserAttributes was null or undefined when calling setMemberWithUserAttributes.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-wu`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}setResourceAttribute(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputSetResourceAttribute was null or undefined when calling setResourceAttribute.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/resource`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}setResourceAttributes(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputSetResourceAttributes was null or undefined when calling setResourceAttributes.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}setResourceGroupAttributes(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputSetResourceGroupAttributes was null or undefined when calling setResourceGroupAttributes.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}setResourceGroupWithGroupAttributes(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputSetResourceGroupWithGroupAttributes was null or undefined when calling setResourceGroupWithGroupAttributes.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g-wg`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}setUserAttribute(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputSetUserAttribute was null or undefined when calling setUserAttribute.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/user`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}setUserAttributes(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputSetUserAttributes was null or undefined when calling setUserAttributes.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/u`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}setUserExtSourceAttribute(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputSetUserExtSourceAttribute was null or undefined when calling setUserExtSourceAttribute.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/userExtSource`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}setUserExtSourceAttributes(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputSetUserExtSourceAttributes was null or undefined when calling setUserExtSourceAttributes.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/ues`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}setUserFacilityAttribute(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputSetUserFacilityAttribute was null or undefined when calling setUserFacilityAttribute.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/facility-user`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}setUserFacilityAttributes(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputSetUserFacilityAttributes was null or undefined when calling setUserFacilityAttributes.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/facility-user`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}setVoAttribute(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputSetVoAttribute was null or undefined when calling setVoAttribute.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/vo`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}setVoAttributes(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputSetVoAttributes was null or undefined when calling setVoAttributes.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/vo`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}updateAttributeDefinition(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputAttributeDefinition was null or undefined when calling updateAttributeDefinition.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/updateAttributeDefinition`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}}return oe.\u0275fac=function(r){return new(r||oe)(A.LFG(e.eN),A.LFG(w,8),A.LFG(g,8))},oe.\u0275prov=A.Yz7({token:oe,factory:oe.\u0275fac,providedIn:"root"}),oe})(),E=(()=>{class oe{constructor(r,s,_){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new g,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof s&&(s=this.basePath),this.configuration.basePath=s),this.encoder=this.configuration.encoder||new m}addToHttpParams(r,s,_){return"object"!=typeof s||s instanceof Date?this.addToHttpParamsRecursive(r,s,_):this.addToHttpParamsRecursive(r,s)}addToHttpParamsRecursive(r,s,_){if(null==s)return r;if("object"==typeof s)if(Array.isArray(s))s.forEach(c=>r=this.addToHttpParamsRecursive(r,c,_));else if(s instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,s.toISOString().substr(0,10))}else Object.keys(s).forEach(c=>r=this.addToHttpParamsRecursive(r,s[c],null!=_?`${_}.${c}`:c));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,s)}return r}auditMessagesManagerLog(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter msg was null or undefined when calling auditMessagesManagerLog.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"msg"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/auditMessagesManager/log`,null,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}createAuditerConsumer(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter consumerName was null or undefined when calling createAuditerConsumer.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"consumerName"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/auditMessagesManager/createAuditerConsumer`,null,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getAllAuditerConsumers(r="body",s=!1,_){let a,c=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(c=c.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(c=c.set("Authorization","Bearer "+a));let i=_&&_.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let t=_&&_.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/getAllAuditerConsumers`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:s})}getAuditerMessagesCount(r="body",s=!1,_){let a,c=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(c=c.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(c=c.set("Authorization","Bearer "+a));let i=_&&_.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let t=_&&_.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/getAuditerMessagesCount`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:s})}getLastMessageId(r="body",s=!1,_){let a,c=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(c=c.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(c=c.set("Authorization","Bearer "+a));let i=_&&_.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let t=_&&_.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/getLastMessageId`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:s})}getMessages(r,s="body",_=!1,c){let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"count"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/getMessages`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getMessagesByCount(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter count was null or undefined when calling getMessagesByCount.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"count"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/getMessagesByCount`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getMessagesByIdAndCount(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter id was null or undefined when calling getMessagesByIdAndCount.");if(null==s)throw new Error("Required parameter count was null or undefined when calling getMessagesByIdAndCount.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"id")),null!=s&&(i=this.addToHttpParams(i,s,"count"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/getMessagesByIdAndCount`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getMessagesPage(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputGetMessagesPage was null or undefined when calling getMessagesPage.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/auditMessagesManager/getMessagesPage`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}pollConsumerMessages(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter consumerName was null or undefined when calling pollConsumerMessages.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"consumerName"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/pollConsumerMessages`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}setLastProcessedId(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter consumerName was null or undefined when calling setLastProcessedId.");if(null==s)throw new Error("Required parameter lastProcessedId was null or undefined when calling setLastProcessedId.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"consumerName")),null!=s&&(i=this.addToHttpParams(i,s,"lastProcessedId"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/auditMessagesManager/setLastProcessedId`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}}return oe.\u0275fac=function(r){return new(r||oe)(A.LFG(e.eN),A.LFG(w,8),A.LFG(g,8))},oe.\u0275prov=A.Yz7({token:oe,factory:oe.\u0275fac,providedIn:"root"}),oe})(),S=(()=>{class oe{constructor(r,s,_){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new g,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof s&&(s=this.basePath),this.configuration.basePath=s),this.encoder=this.configuration.encoder||new m}addToHttpParams(r,s,_){return"object"!=typeof s||s instanceof Date?this.addToHttpParamsRecursive(r,s,_):this.addToHttpParamsRecursive(r,s)}addToHttpParamsRecursive(r,s,_){if(null==s)return r;if("object"==typeof s)if(Array.isArray(s))s.forEach(c=>r=this.addToHttpParamsRecursive(r,c,_));else if(s instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,s.toISOString().substr(0,10))}else Object.keys(s).forEach(c=>r=this.addToHttpParamsRecursive(r,s[c],null!=_?`${_}.${c}`:c));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,s)}return r}getAllPolicies(r="body",s=!1,_){let a,c=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(c=c.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(c=c.set("Authorization","Bearer "+a));let i=_&&_.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let t=_&&_.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllPolicies`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:s})}getAllRolesManagementRules(r="body",s=!1,_){let a,c=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(c=c.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(c=c.set("Authorization","Bearer "+a));let i=_&&_.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let t=_&&_.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllRolesManagementRules`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:s})}getAuthzAdminGroups(r,s,_,c="body",a=!1,i){if(null==r)throw new Error("Required parameter role was null or undefined when calling getAuthzAdminGroups.");if(null==s)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzAdminGroups.");if(null==_)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzAdminGroups.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"role")),null!=s&&(t=this.addToHttpParams(t,s,"complementaryObjectId")),null!=_&&(t=this.addToHttpParams(t,_,"complementaryObjectName"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let l=i&&i.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(n=n.set("Accept",l));let d=i&&i.context;void 0===d&&(d=new e.qT);let y="json";return l&&(y=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAdminGroups`,{context:d,params:t,responseType:y,withCredentials:this.configuration.withCredentials,headers:n,observe:c,reportProgress:a})}getAuthzRichAdmins(r,s,_,c,a,i,t="body",n=!1,o){if(null==r)throw new Error("Required parameter role was null or undefined when calling getAuthzRichAdmins.");if(null==s)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzRichAdmins.");if(null==_)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzRichAdmins.");if(null==c)throw new Error("Required parameter specificAttributes was null or undefined when calling getAuthzRichAdmins.");let l=new e.LE({encoder:this.encoder});null!=r&&(l=this.addToHttpParams(l,r,"role")),null!=s&&(l=this.addToHttpParams(l,s,"complementaryObjectId")),null!=_&&(l=this.addToHttpParams(l,_,"complementaryObjectName")),c&&c.forEach(ct=>{l=this.addToHttpParams(l,ct,"specificAttributes")}),null!=a&&(l=this.addToHttpParams(l,a,"allUserAttributes")),null!=i&&(l=this.addToHttpParams(l,i,"onlyDirectAdmins"));let y,d=this.defaultHeaders;y=this.configuration.lookupCredential("BasicAuth"),y&&(d=d.set("Authorization","Basic "+y)),y=this.configuration.lookupCredential("BearerAuth"),y&&(d=d.set("Authorization","Bearer "+y));let k=o&&o.httpHeaderAccept;void 0===k&&(k=this.configuration.selectHeaderAccept(["application/json"])),void 0!==k&&(d=d.set("Accept",k));let Ie=o&&o.context;void 0===Ie&&(Ie=new e.qT);let tt="json";return k&&(tt=k.startsWith("text")?"text":this.configuration.isJsonMime(k)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getRichAdmins`,{context:Ie,params:l,responseType:tt,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:n})}getFacilitiesWhereUserIsInRoles(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter roles was null or undefined when calling getFacilitiesWhereUserIsInRoles.");let i=new e.LE({encoder:this.encoder});null!=s&&(i=this.addToHttpParams(i,s,"user")),r&&r.forEach(y=>{i=this.addToHttpParams(i,y,"roles[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getFacilitiesWhereUserIsInRoles`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getGroupRoleNames(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupRoleNames`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getGroupRoles(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"groupId"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/getGroupRoles`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getGroupsWhereUserIsInRoles(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter roles was null or undefined when calling getGroupsWhereUserIsInRoles.");let i=new e.LE({encoder:this.encoder});null!=s&&(i=this.addToHttpParams(i,s,"user")),r&&r.forEach(y=>{i=this.addToHttpParams(i,y,"roles[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupsWhereUserIsInRoles`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getLoggedUser(r="body",s=!1,_){let a,c=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(c=c.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(c=c.set("Authorization","Bearer "+a));let i=_&&_.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let t=_&&_.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getLoggedUser`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:s})}getMembersWhereUserIsInRoles(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter roles was null or undefined when calling getMembersWhereUserIsInRoles.");let i=new e.LE({encoder:this.encoder});null!=s&&(i=this.addToHttpParams(i,s,"user")),r&&r.forEach(y=>{i=this.addToHttpParams(i,y,"roles[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getMembersWhereUserIsInRoles`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getPerunPrincipal(r="body",s=!1,_){let a,c=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(c=c.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(c=c.set("Authorization","Bearer "+a));let i=_&&_.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let t=_&&_.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPerunPrincipal`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:s})}getPrincipalRoleNames(r="body",s=!1,_){let a,c=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(c=c.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(c=c.set("Authorization","Bearer "+a));let i=_&&_.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let t=_&&_.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPrincipalRoleNames`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:s})}getResourcesWhereUserIsInRoles(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter roles was null or undefined when calling getResourcesWhereUserIsInRoles.");let i=new e.LE({encoder:this.encoder});null!=s&&(i=this.addToHttpParams(i,s,"user")),r&&r.forEach(y=>{i=this.addToHttpParams(i,y,"roles[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getResourcesWhereUserIsInRoles`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getSecurityTeamsWhereUserIsInRoles(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter roles was null or undefined when calling getSecurityTeamsWhereUserIsInRoles.");let i=new e.LE({encoder:this.encoder});null!=s&&(i=this.addToHttpParams(i,s,"user")),r&&r.forEach(y=>{i=this.addToHttpParams(i,y,"roles[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getSecurityTeamsWhereUserIsInRoles`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getUserRoleNames(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoleNames`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getUserRoles(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"userId"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoles`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getVosWhereUserIsInRoles(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter roles was null or undefined when calling getVosWhereUserIsInRoles.");let i=new e.LE({encoder:this.encoder});null!=s&&(i=this.addToHttpParams(i,s,"user")),r&&r.forEach(y=>{i=this.addToHttpParams(i,y,"roles[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getVosWhereUserIsInRoles`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}isFacilityAdmin(r,s="body",_=!1,c){let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isFacilityAdmin`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}isGroupAdmin(r,s="body",_=!1,c){let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isGroupAdmin`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}isPerunAdmin(r="body",s=!1,_){let a,c=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(c=c.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(c=c.set("Authorization","Bearer "+a));let i=_&&_.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let t=_&&_.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/isPerunAdmin`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:s})}isVoAdmin(r,s="body",_=!1,c){let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isVoAdmin`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}keepAlive(r="body",s=!1,_){let a,c=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(c=c.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(c=c.set("Authorization","Bearer "+a));let i=_&&_.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let t=_&&_.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/keepAlive`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:s})}loadAuthorizationComponents(r="body",s=!1,_){let a,c=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(c=c.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(c=c.set("Authorization","Bearer "+a));let i=_&&_.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let t=_&&_.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/loadAuthorizationComponents`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:s})}refreshMfa(r="body",s=!1,_){let a,c=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(c=c.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(c=c.set("Authorization","Bearer "+a));let i=_&&_.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let t=_&&_.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/refreshMfa`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:s})}setRoleForGroup(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter SetRoleForGroup was null or undefined when calling setRoleForGroup.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/g`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}setRoleForUser(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter SetRoleForUser was null or undefined when calling setRoleForUser.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/u`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}setRoleWithGroupComplementaryObject(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter SetRoleWithGroupComplementaryObject was null or undefined when calling setRoleWithGroupComplementaryObject.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/g-co`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}setRoleWithUserComplementaryObject(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter SetRoleWithUserComplementaryObject was null or undefined when calling setRoleWithUserComplementaryObject.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/u-co`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}unsetRoleForGroup(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter UnsetRoleForGroup was null or undefined when calling unsetRoleForGroup.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/g`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}unsetRoleForUser(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter UnsetRoleForUser was null or undefined when calling unsetRoleForUser.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/u`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}unsetRoleWithGroupComplementaryObject(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter UnsetRoleWithGroupComplementaryObject was null or undefined when calling unsetRoleWithGroupComplementaryObject.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/g-co`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}unsetRoleWithUserComplementaryObject(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter UnsetRoleWithUserComplementaryObject was null or undefined when calling unsetRoleWithUserComplementaryObject.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/u-co`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}}return oe.\u0275fac=function(r){return new(r||oe)(A.LFG(e.eN),A.LFG(w,8),A.LFG(g,8))},oe.\u0275prov=A.Yz7({token:oe,factory:oe.\u0275fac,providedIn:"root"}),oe})(),v=(()=>{class oe{constructor(r,s,_){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new g,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof s&&(s=this.basePath),this.configuration.basePath=s),this.encoder=this.configuration.encoder||new m}addToHttpParams(r,s,_){return"object"!=typeof s||s instanceof Date?this.addToHttpParamsRecursive(r,s,_):this.addToHttpParamsRecursive(r,s)}addToHttpParamsRecursive(r,s,_){if(null==s)return r;if("object"==typeof s)if(Array.isArray(s))s.forEach(c=>r=this.addToHttpParamsRecursive(r,c,_));else if(s instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,s.toISOString().substr(0,10))}else Object.keys(s).forEach(c=>r=this.addToHttpParamsRecursive(r,s[c],null!=_?`${_}.${c}`:c));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,s)}return r}changeConsentStatus(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter consent was null or undefined when calling changeConsentStatus.");if(null==s)throw new Error("Required parameter status was null or undefined when calling changeConsentStatus.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"consent")),null!=s&&(i=this.addToHttpParams(i,s,"status"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/consentsManager/changeConsentStatus`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}evaluateConsentsForConsentHub(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter consentHub was null or undefined when calling evaluateConsentsForConsentHub.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"consentHub"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/consentsManager/evaluateConsentsForConsentHub`,null,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}evaluateConsentsForService(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter service was null or undefined when calling evaluateConsentsForService.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"service"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/consentsManager/evaluateConsentsForService`,null,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getAllConsentHubs(r="body",s=!1,_){let a,c=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(c=c.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(c=c.set("Authorization","Bearer "+a));let i=_&&_.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let t=_&&_.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getAllConsentHubs`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:s})}getAllConsents(r="body",s=!1,_){let a,c=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(c=c.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(c=c.set("Authorization","Bearer "+a));let i=_&&_.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let t=_&&_.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getAllConsents`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:s})}getConsentById(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter id was null or undefined when calling getConsentById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentById`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getConsentForUserAndConsentHub(r,s,_,c="body",a=!1,i){if(null==r)throw new Error("Required parameter user was null or undefined when calling getConsentForUserAndConsentHub.");if(null==s)throw new Error("Required parameter consentHub was null or undefined when calling getConsentForUserAndConsentHub.");if(null==_)throw new Error("Required parameter status was null or undefined when calling getConsentForUserAndConsentHub.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"user")),null!=s&&(t=this.addToHttpParams(t,s,"consentHub")),null!=_&&(t=this.addToHttpParams(t,_,"status"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let l=i&&i.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(n=n.set("Accept",l));let d=i&&i.context;void 0===d&&(d=new e.qT);let y="json";return l&&(y=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentForUserAndConsentHub`,{context:d,params:t,responseType:y,withCredentials:this.configuration.withCredentials,headers:n,observe:c,reportProgress:a})}getConsentHubByFacility(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getConsentHubByFacility.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentHubByFacility`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getConsentHubById(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter id was null or undefined when calling getConsentHubById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentHubById`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getConsentHubByName(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter name was null or undefined when calling getConsentHubByName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"name"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentHubByName`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getConsentsForConsentHub(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter consentHub was null or undefined when calling getConsentsForConsentHub.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"consentHub"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentsForConsentHub/id`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getConsentsForConsentHubWithStatus(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter consentHub was null or undefined when calling getConsentsForConsentHubWithStatus.");if(null==s)throw new Error("Required parameter status was null or undefined when calling getConsentsForConsentHubWithStatus.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"consentHub")),null!=s&&(i=this.addToHttpParams(i,s,"status"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentsForConsentHub/id-s`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getConsentsForUser(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter user was null or undefined when calling getConsentsForUser.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentsForUser/id`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getConsentsForUserAndConsentHub(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling getConsentsForUserAndConsentHub.");if(null==s)throw new Error("Required parameter consentHub was null or undefined when calling getConsentsForUserAndConsentHub.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),null!=s&&(i=this.addToHttpParams(i,s,"consentHub"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentsForUserAndConsentHub`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getConsentsForUserWithStatus(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling getConsentsForUserWithStatus.");if(null==s)throw new Error("Required parameter status was null or undefined when calling getConsentsForUserWithStatus.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),null!=s&&(i=this.addToHttpParams(i,s,"status"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentsForUser/id-s`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}updateConsentHub(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputUpdateConsentHub was null or undefined when calling updateConsentHub.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/consentsManager/updateConsentHub`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}}return oe.\u0275fac=function(r){return new(r||oe)(A.LFG(e.eN),A.LFG(w,8),A.LFG(g,8))},oe.\u0275prov=A.Yz7({token:oe,factory:oe.\u0275fac,providedIn:"root"}),oe})(),F=(()=>{class oe{constructor(r,s,_){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new g,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof s&&(s=this.basePath),this.configuration.basePath=s),this.encoder=this.configuration.encoder||new m}addToHttpParams(r,s,_){return"object"!=typeof s||s instanceof Date?this.addToHttpParamsRecursive(r,s,_):this.addToHttpParamsRecursive(r,s)}addToHttpParamsRecursive(r,s,_){if(null==s)return r;if("object"==typeof s)if(Array.isArray(s))s.forEach(c=>r=this.addToHttpParamsRecursive(r,c,_));else if(s instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,s.toISOString().substr(0,10))}else Object.keys(s).forEach(c=>r=this.addToHttpParamsRecursive(r,s[c],null!=_?`${_}.${c}`:c));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,s)}return r}addExtSourceWithGroupSource(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling addExtSourceWithGroupSource.");if(null==s)throw new Error("Required parameter source was null or undefined when calling addExtSourceWithGroupSource.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),null!=s&&(i=this.addToHttpParams(i,s,"source"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/addExtSource/g-s`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}addExtSourceWithVoSource(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling addExtSourceWithVoSource.");if(null==s)throw new Error("Required parameter source was null or undefined when calling addExtSourceWithVoSource.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=s&&(i=this.addToHttpParams(i,s,"source"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/addExtSource/v-s`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}createExtSourceFromExtSourceObject(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter ExtSourceObject was null or undefined when calling createExtSourceFromExtSourceObject.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/extSourcesManager/createExtSource/es`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}createExtSourceWithNameType(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter name was null or undefined when calling createExtSourceWithNameType.");if(null==s)throw new Error("Required parameter type was null or undefined when calling createExtSourceWithNameType.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"name")),null!=s&&(i=this.addToHttpParams(i,s,"type"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/createExtSource/n-t`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}deleteExtSource(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter id was null or undefined when calling deleteExtSource.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/deleteExtSource`,null,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getExtSourceById(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter id was null or undefined when calling getExtSourceById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getExtSourceById`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getExtSourceByName(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter name was null or undefined when calling getExtSourceByName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"name"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getExtSourceByName`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getExtSources(r="body",s=!1,_){let a,c=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(c=c.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(c=c.set("Authorization","Bearer "+a));let i=_&&_.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let t=_&&_.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getExtSources`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:s})}getGroupExtSources(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupExtSources.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getGroupExtSources`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getVoExtSources(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoExtSources.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getVoExtSources`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}loadExtSourcesDefinitions(r="body",s=!1,_){let a,c=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(c=c.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(c=c.set("Authorization","Bearer "+a));let i=_&&_.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let t=_&&_.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/loadExtSourcesDefinitions`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:s})}removeExtSourceWithGroupSource(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling removeExtSourceWithGroupSource.");if(null==s)throw new Error("Required parameter source was null or undefined when calling removeExtSourceWithGroupSource.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),null!=s&&(i=this.addToHttpParams(i,s,"source"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/removeExtSource/g-s`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}removeExtSourceWithVoSource(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling removeExtSourceWithVoSource.");if(null==s)throw new Error("Required parameter source was null or undefined when calling removeExtSourceWithVoSource.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=s&&(i=this.addToHttpParams(i,s,"source"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/removeExtSource/v-s`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}}return oe.\u0275fac=function(r){return new(r||oe)(A.LFG(e.eN),A.LFG(w,8),A.LFG(g,8))},oe.\u0275prov=A.Yz7({token:oe,factory:oe.\u0275fac,providedIn:"root"}),oe})(),z=(()=>{class oe{constructor(r,s,_){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new g,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof s&&(s=this.basePath),this.configuration.basePath=s),this.encoder=this.configuration.encoder||new m}addToHttpParams(r,s,_){return"object"!=typeof s||s instanceof Date?this.addToHttpParamsRecursive(r,s,_):this.addToHttpParamsRecursive(r,s)}addToHttpParamsRecursive(r,s,_){if(null==s)return r;if("object"==typeof s)if(Array.isArray(s))s.forEach(c=>r=this.addToHttpParamsRecursive(r,c,_));else if(s instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,s.toISOString().substr(0,10))}else Object.keys(s).forEach(c=>r=this.addToHttpParamsRecursive(r,s[c],null!=_?`${_}.${c}`:c));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,s)}return r}addFacilityAdminGroup(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminGroup.");if(null==s)throw new Error("Required parameter authorizedGroup was null or undefined when calling addFacilityAdminGroup.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=s&&(i=this.addToHttpParams(i,s,"authorizedGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/group`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}addFacilityAdminGroupByFacilityName(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminGroupByFacilityName.");if(null==s)throw new Error("Required parameter authorizedGroup was null or undefined when calling addFacilityAdminGroupByFacilityName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=s&&(i=this.addToHttpParams(i,s,"authorizedGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/group/f-name`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}addFacilityAdminUser(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminUser.");if(null==s)throw new Error("Required parameter user was null or undefined when calling addFacilityAdminUser.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=s&&(i=this.addToHttpParams(i,s,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/user`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}addFacilityAdminUserByFacilityName(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminUserByFacilityName.");if(null==s)throw new Error("Required parameter user was null or undefined when calling addFacilityAdminUserByFacilityName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=s&&(i=this.addToHttpParams(i,s,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/user/f-name`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}addFacilityOwner(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwner.");if(null==s)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwner.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=s&&(i=this.addToHttpParams(i,s,"owner"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}addFacilityOwnerByFacilityName(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByFacilityName.");if(null==s)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByFacilityName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=s&&(i=this.addToHttpParams(i,s,"owner"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner/f-name`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}addFacilityOwnerByFacilityNameOwnerName(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByFacilityNameOwnerName.");if(null==s)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByFacilityNameOwnerName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=s&&(i=this.addToHttpParams(i,s,"owner"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner/f-o-name`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}addFacilityOwnerByOwnerName(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByOwnerName.");if(null==s)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByOwnerName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=s&&(i=this.addToHttpParams(i,s,"owner"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner/o-name`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}addHost(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addHost.");if(null==s)throw new Error("Required parameter hostname was null or undefined when calling addHost.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=s&&(i=this.addToHttpParams(i,s,"hostname"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHost`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}addHostByFacilityName(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addHostByFacilityName.");if(null==s)throw new Error("Required parameter hostname was null or undefined when calling addHostByFacilityName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=s&&(i=this.addToHttpParams(i,s,"hostname"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHost/f-name`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}addHosts(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addHosts.");if(null==s)throw new Error("Required parameter hostnames was null or undefined when calling addHosts.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),s&&s.forEach(y=>{i=this.addToHttpParams(i,y,"hostnames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHosts`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}addHostsByFacilityName(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addHostsByFacilityName.");if(null==s)throw new Error("Required parameter hostnames was null or undefined when calling addHostsByFacilityName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),s&&s.forEach(y=>{i=this.addToHttpParams(i,y,"hostnames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHosts/f-name`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}assignSecurityTeam(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling assignSecurityTeam.");if(null==s)throw new Error("Required parameter securityTeam was null or undefined when calling assignSecurityTeam.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=s&&(i=this.addToHttpParams(i,s,"securityTeam"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/assignSecurityTeam`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}assignSecurityTeamByFacilityName(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling assignSecurityTeamByFacilityName.");if(null==s)throw new Error("Required parameter securityTeam was null or undefined when calling assignSecurityTeamByFacilityName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=s&&(i=this.addToHttpParams(i,s,"securityTeam"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/assignSecurityTeam/f-name`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}copyAttributes(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter srcFacility was null or undefined when calling copyAttributes.");if(null==s)throw new Error("Required parameter destFacility was null or undefined when calling copyAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"srcFacility")),null!=s&&(i=this.addToHttpParams(i,s,"destFacility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}copyAttributesByDestinationName(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter srcFacility was null or undefined when calling copyAttributesByDestinationName.");if(null==s)throw new Error("Required parameter destFacilityName was null or undefined when calling copyAttributesByDestinationName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"srcFacility")),null!=s&&(i=this.addToHttpParams(i,s,"destFacilityName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes/dest-name`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}copyAttributesBySourceDestinationNames(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyAttributesBySourceDestinationNames.");if(null==s)throw new Error("Required parameter destFacilityName was null or undefined when calling copyAttributesBySourceDestinationNames.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"srcFacilityName")),null!=s&&(i=this.addToHttpParams(i,s,"destFacilityName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes/src-dest-names`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}copyAttributesBySourceName(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyAttributesBySourceName.");if(null==s)throw new Error("Required parameter destFacility was null or undefined when calling copyAttributesBySourceName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"srcFacilityName")),null!=s&&(i=this.addToHttpParams(i,s,"destFacility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes/src-name`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}copyManagers(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter srcFacility was null or undefined when calling copyManagers.");if(null==s)throw new Error("Required parameter destFacility was null or undefined when calling copyManagers.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"srcFacility")),null!=s&&(i=this.addToHttpParams(i,s,"destFacility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}copyManagersByDestinationName(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter srcFacility was null or undefined when calling copyManagersByDestinationName.");if(null==s)throw new Error("Required parameter destFacilityName was null or undefined when calling copyManagersByDestinationName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"srcFacility")),null!=s&&(i=this.addToHttpParams(i,s,"destFacilityName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers/dest-name`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}copyManagersBySourceDestinationNames(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyManagersBySourceDestinationNames.");if(null==s)throw new Error("Required parameter destFacilityName was null or undefined when calling copyManagersBySourceDestinationNames.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"srcFacilityName")),null!=s&&(i=this.addToHttpParams(i,s,"destFacilityName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers/src-dest-name`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}copyManagersBySourceName(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyManagersBySourceName.");if(null==s)throw new Error("Required parameter destFacility was null or undefined when calling copyManagersBySourceName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"srcFacilityName")),null!=s&&(i=this.addToHttpParams(i,s,"destFacility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers/src-name`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}copyOwners(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter srcFacility was null or undefined when calling copyOwners.");if(null==s)throw new Error("Required parameter destFacility was null or undefined when calling copyOwners.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"srcFacility")),null!=s&&(i=this.addToHttpParams(i,s,"destFacility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}copyOwnersByDestinationName(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter srcFacility was null or undefined when calling copyOwnersByDestinationName.");if(null==s)throw new Error("Required parameter destFacilityName was null or undefined when calling copyOwnersByDestinationName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"srcFacility")),null!=s&&(i=this.addToHttpParams(i,s,"destFacilityName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners/dest-name`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}copyOwnersBySourceDestinationNames(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyOwnersBySourceDestinationNames.");if(null==s)throw new Error("Required parameter destFacilityName was null or undefined when calling copyOwnersBySourceDestinationNames.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"srcFacilityName")),null!=s&&(i=this.addToHttpParams(i,s,"destFacilityName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners/src-dest-name`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}copyOwnersBySourceName(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyOwnersBySourceName.");if(null==s)throw new Error("Required parameter destFacility was null or undefined when calling copyOwnersBySourceName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"srcFacilityName")),null!=s&&(i=this.addToHttpParams(i,s,"destFacility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners/src-name`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}createFacility(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter name was null or undefined when calling createFacility.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"name")),null!=s&&(i=this.addToHttpParams(i,s,"description"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/createFacility`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}deleteFacility(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling deleteFacility.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=s&&(i=this.addToHttpParams(i,s,"force"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/deleteFacility`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}deleteFacilityByFacilityName(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter facility was null or undefined when calling deleteFacilityByFacilityName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/deleteFacility/f-name`,null,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getAllFacilities(r="body",s=!1,_){let a,c=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(c=c.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(c=c.set("Authorization","Bearer "+a));let i=_&&_.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let t=_&&_.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilities`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:s})}getAllowedGroups(r,s,_,c="body",a=!1,i){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAllowedGroups.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"facility")),null!=s&&(t=this.addToHttpParams(t,s,"vo")),null!=_&&(t=this.addToHttpParams(t,_,"service"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let l=i&&i.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(n=n.set("Accept",l));let d=i&&i.context;void 0===d&&(d=new e.qT);let y="json";return l&&(y=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedGroups`,{context:d,params:t,responseType:y,withCredentials:this.configuration.withCredentials,headers:n,observe:c,reportProgress:a})}getAllowedGroupsByFacilityName(r,s,_,c="body",a=!1,i){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAllowedGroupsByFacilityName.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"facility")),null!=s&&(t=this.addToHttpParams(t,s,"vo")),null!=_&&(t=this.addToHttpParams(t,_,"service"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let l=i&&i.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(n=n.set("Accept",l));let d=i&&i.context;void 0===d&&(d=new e.qT);let y="json";return l&&(y=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedGroups/f-name`,{context:d,params:t,responseType:y,withCredentials:this.configuration.withCredentials,headers:n,observe:c,reportProgress:a})}getAllowedRichGroupsWithAttributes(r,s,_,c,a="body",i=!1,t){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAllowedRichGroupsWithAttributes.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getAllowedRichGroupsWithAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),s&&s.forEach(Ie=>{n=this.addToHttpParams(n,Ie,"attrNames[]")}),null!=_&&(n=this.addToHttpParams(n,_,"vo")),null!=c&&(n=this.addToHttpParams(n,c,"service"));let l,o=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(o=o.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(o=o.set("Authorization","Bearer "+l));let d=t&&t.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(o=o.set("Accept",d));let y=t&&t.context;void 0===y&&(y=new e.qT);let k="json";return d&&(k=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedRichGroupsWithAttributes`,{context:y,params:n,responseType:k,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}getAllowedRichGroupsWithAttributesByFacilityName(r,s,_,c,a="body",i=!1,t){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAllowedRichGroupsWithAttributesByFacilityName.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getAllowedRichGroupsWithAttributesByFacilityName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),s&&s.forEach(Ie=>{n=this.addToHttpParams(n,Ie,"attrNames[]")}),null!=_&&(n=this.addToHttpParams(n,_,"vo")),null!=c&&(n=this.addToHttpParams(n,c,"service"));let l,o=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(o=o.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(o=o.set("Authorization","Bearer "+l));let d=t&&t.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(o=o.set("Accept",d));let y=t&&t.context;void 0===y&&(y=new e.qT);let k="json";return d&&(k=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedRichGroupsWithAttributes/f-name`,{context:y,params:n,responseType:k,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}getAllowedUsersOfFacility(r,s,_,c="body",a=!1,i){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAllowedUsersOfFacility.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"facility")),null!=s&&(t=this.addToHttpParams(t,s,"vo")),null!=_&&(t=this.addToHttpParams(t,_,"service"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let l=i&&i.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(n=n.set("Accept",l));let d=i&&i.context;void 0===d&&(d=new e.qT);let y="json";return l&&(y=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedUsers/v-f-s`,{context:d,params:t,responseType:y,withCredentials:this.configuration.withCredentials,headers:n,observe:c,reportProgress:a})}getAllowedUsersOfFacilityByFacilityName(r,s,_,c="body",a=!1,i){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAllowedUsersOfFacilityByFacilityName.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"facility")),null!=s&&(t=this.addToHttpParams(t,s,"vo")),null!=_&&(t=this.addToHttpParams(t,_,"service"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let l=i&&i.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(n=n.set("Accept",l));let d=i&&i.context;void 0===d&&(d=new e.qT);let y="json";return l&&(y=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedUsers/v-f-s/f-name`,{context:d,params:t,responseType:y,withCredentials:this.configuration.withCredentials,headers:n,observe:c,reportProgress:a})}getAllowedVos(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAllowedVos.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/getAllowedVos`,null,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getAllowedVosByFacilityName(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAllowedVosByFacilityName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/getAllowedVos/f-name`,null,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getAssignedFacilitiesByGroup(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter group was null or undefined when calling getAssignedFacilitiesByGroup.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/group`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getAssignedFacilitiesByMember(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter member was null or undefined when calling getAssignedFacilitiesByMember.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/member`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getAssignedFacilitiesByService(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter service was null or undefined when calling getAssignedFacilitiesByService.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"service"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/service`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getAssignedFacilitiesByUser(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter user was null or undefined when calling getAssignedFacilitiesByUser.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/user`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getAssignedResourcesByAssignedServiceForFacility(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesByAssignedServiceForFacility.");if(null==s)throw new Error("Required parameter service was null or undefined when calling getAssignedResourcesByAssignedServiceForFacility.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=s&&(i=this.addToHttpParams(i,s,"service"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedResourcesByAssignedService`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getAssignedResourcesForFacility(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesForFacility.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedResources`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getAssignedResourcesForFacilityByFacilityName(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesForFacilityByFacilityName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedResources/f-name`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getAssignedRichResourcesForFacility(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedRichResourcesForFacility.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedRichResources`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getAssignedRichResourcesForFacilityAndService(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedRichResourcesForFacilityAndService.");if(null==s)throw new Error("Required parameter service was null or undefined when calling getAssignedRichResourcesForFacilityAndService.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=s&&(i=this.addToHttpParams(i,s,"service"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedRichResources/f-s`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getAssignedRichResourcesForFacilityByFacilityName(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedRichResourcesForFacilityByFacilityName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedRichResources/f-name`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getAssignedSecurityTeams(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedSecurityTeams.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedSecurityTeams`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getAssignedSecurityTeamsByFacilityName(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedSecurityTeamsByFacilityName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedSecurityTeams/f-name`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getAssignedUsers(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedUsers.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=s&&(i=this.addToHttpParams(i,s,"service"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedUsers`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getAssignedUsersByFacilityName(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedUsersByFacilityName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=s&&(i=this.addToHttpParams(i,s,"service"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedUsers/f-name`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getBansForFacility(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter facilityId was null or undefined when calling getBansForFacility.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facilityId"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getBansForFacility`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getBansForUser(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter user was null or undefined when calling getBansForUser.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getBansForUser`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getEnricheFacilitydBansForUser(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling getEnricheFacilitydBansForUser.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),s&&s.forEach(y=>{i=this.addToHttpParams(i,y,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getEnrichedBansForUser`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getEnrichedBansForFacility(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getEnrichedBansForFacility.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),s&&s.forEach(y=>{i=this.addToHttpParams(i,y,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getEnrichedBansForFacility`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getEnrichedFacilities(r="body",s=!1,_){let a,c=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(c=c.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(c=c.set("Authorization","Bearer "+a));let i=_&&_.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let t=_&&_.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getEnrichedFacilities`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:s})}getEnrichedHosts(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getEnrichedHosts.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getEnrichedHosts.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),s&&s.forEach(y=>{i=this.addToHttpParams(i,y,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getEnrichedHosts`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getFacilitiesByAttribute(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter attributeName was null or undefined when calling getFacilitiesByAttribute.");if(null==s)throw new Error("Required parameter attributeValue was null or undefined when calling getFacilitiesByAttribute.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"attributeName")),null!=s&&(i=this.addToHttpParams(i,s,"attributeValue"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByAttribute`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getFacilitiesByAttributeWithAttributes(r,s,_,c="body",a=!1,i){if(null==r)throw new Error("Required parameter attributeName was null or undefined when calling getFacilitiesByAttributeWithAttributes.");if(null==s)throw new Error("Required parameter attributeValue was null or undefined when calling getFacilitiesByAttributeWithAttributes.");if(null==_)throw new Error("Required parameter attrNames was null or undefined when calling getFacilitiesByAttributeWithAttributes.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"attributeName")),null!=s&&(t=this.addToHttpParams(t,s,"attributeValue")),_&&_.forEach(k=>{t=this.addToHttpParams(t,k,"attrNames[]")});let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let l=i&&i.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(n=n.set("Accept",l));let d=i&&i.context;void 0===d&&(d=new e.qT);let y="json";return l&&(y=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByAttributeWithAttributes`,{context:d,params:t,responseType:y,withCredentials:this.configuration.withCredentials,headers:n,observe:c,reportProgress:a})}getFacilitiesByDestination(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter destination was null or undefined when calling getFacilitiesByDestination.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"destination"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByDestination`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getFacilitiesByHostName(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter hostname was null or undefined when calling getFacilitiesByHostName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"hostname"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByHostName`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getFacilitiesByIds(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getFacilitiesByIds.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{a=this.addToHttpParams(a,d,"ids[]")});let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByIds`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getFacilitiesCount(r="body",s=!1,_){let a,c=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(c=c.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(c=c.set("Authorization","Bearer "+a));let i=_&&_.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let t=_&&_.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesCount`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:s})}getFacilitiesWhereUserIsAdmin(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter user was null or undefined when calling getFacilitiesWhereUserIsAdmin.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesWhereUserIsAdmin`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getFacilityAdminGroups(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminGroups.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAdminGroups`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getFacilityAdminUsers(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminUsers.");if(null==s)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getFacilityAdminUsers.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=s&&(i=this.addToHttpParams(i,s,"onlyDirectAdmins"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAdmins`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getFacilityAdminUsersByFacilityName(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminUsersByFacilityName.");if(null==s)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getFacilityAdminUsersByFacilityName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=s&&(i=this.addToHttpParams(i,s,"onlyDirectAdmins"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAdmins/f-name`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getFacilityBan(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling getFacilityBan.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling getFacilityBan.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),null!=s&&(i=this.addToHttpParams(i,s,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getBan`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getFacilityBanById(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter banId was null or undefined when calling getFacilityBanById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"banId"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getBanById`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getFacilityById(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter id was null or undefined when calling getFacilityById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilityById`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getFacilityByName(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter name was null or undefined when calling getFacilityByName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"name"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilityByName`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getFacilityForHost(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter host was null or undefined when calling getFacilityForHost.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"host"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilityForHost`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getFacilityOwners(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityOwners.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getOwners`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getFacilityOwnersByFacilityName(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityOwnersByFacilityName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getOwners/f-name`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getHostById(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter id was null or undefined when calling getHostById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHostById`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getHosts(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getHosts.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHosts`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getHostsByFacilityName(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getHostsByFacilityName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHosts/f-name`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getHostsByHostname(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter hostname was null or undefined when calling getHostsByHostname.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"hostname"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHostsByHostname`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getHostsCount(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getHostsCount.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHostsCount`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getHostsCountByFacilityName(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getHostsCountByFacilityName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHostsCount/f-name`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getOwnerFacilities(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter owner was null or undefined when calling getOwnerFacilities.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"owner"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getOwnerFacilities`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getRichFacilities(r="body",s=!1,_){let a,c=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(c=c.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(c=c.set("Authorization","Bearer "+a));let i=_&&_.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let t=_&&_.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getRichFacilities`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:s})}removeBanByUserIdFacilityId(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling removeBanByUserIdFacilityId.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling removeBanByUserIdFacilityId.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),null!=s&&(i=this.addToHttpParams(i,s,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeBan/byUserIdFacilityId`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}removeFacilityAdminGroup(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminGroup.");if(null==s)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeFacilityAdminGroup.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=s&&(i=this.addToHttpParams(i,s,"authorizedGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/group`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}removeFacilityAdminGroupByFacilityName(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminGroupByFacilityName.");if(null==s)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeFacilityAdminGroupByFacilityName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=s&&(i=this.addToHttpParams(i,s,"authorizedGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/group/f-name`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}removeFacilityAdminUser(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminUser.");if(null==s)throw new Error("Required parameter user was null or undefined when calling removeFacilityAdminUser.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=s&&(i=this.addToHttpParams(i,s,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/user`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}removeFacilityAdminUserByFacilityName(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminUserByFacilityName.");if(null==s)throw new Error("Required parameter user was null or undefined when calling removeFacilityAdminUserByFacilityName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=s&&(i=this.addToHttpParams(i,s,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/user/f-name`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}removeFacilityBanById(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter banId was null or undefined when calling removeFacilityBanById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"banId"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeBan/byId`,null,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}removeFacilityOwner(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwner.");if(null==s)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwner.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=s&&(i=this.addToHttpParams(i,s,"owner"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}removeFacilityOwnerByFacilityName(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByFacilityName.");if(null==s)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByFacilityName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=s&&(i=this.addToHttpParams(i,s,"owner"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner/f-name`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}removeFacilityOwnerByFacilityNameOwnerName(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByFacilityNameOwnerName.");if(null==s)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByFacilityNameOwnerName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=s&&(i=this.addToHttpParams(i,s,"owner"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner/f-o-name`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}removeFacilityOwnerByOwnerName(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByOwnerName.");if(null==s)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByOwnerName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=s&&(i=this.addToHttpParams(i,s,"owner"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner/o-name`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}removeHost(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter host was null or undefined when calling removeHost.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"host"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHost`,null,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}removeHostByHostname(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter hostname was null or undefined when calling removeHostByHostname.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"hostname"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHostByHostname`,null,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}removeHosts(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeHosts.");if(null==s)throw new Error("Required parameter hosts was null or undefined when calling removeHosts.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),s&&s.forEach(y=>{i=this.addToHttpParams(i,y,"hosts[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHosts`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}removeHostsByFacilityName(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeHostsByFacilityName.");if(null==s)throw new Error("Required parameter hosts was null or undefined when calling removeHostsByFacilityName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),s&&s.forEach(y=>{i=this.addToHttpParams(i,y,"hosts[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHosts/f-name`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}removeSecurityTeam(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeSecurityTeam.");if(null==s)throw new Error("Required parameter securityTeam was null or undefined when calling removeSecurityTeam.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=s&&(i=this.addToHttpParams(i,s,"securityTeam"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeSecurityTeam`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}removeSecurityTeamByFacilityName(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeSecurityTeamByFacilityName.");if(null==s)throw new Error("Required parameter securityTeam was null or undefined when calling removeSecurityTeamByFacilityName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=s&&(i=this.addToHttpParams(i,s,"securityTeam"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeSecurityTeam/f-name`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}setFacilityBan(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputSetBanForUserOnFacility was null or undefined when calling setFacilityBan.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/facilitiesManager/setBan`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}updateFacility(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputUpdateFacility was null or undefined when calling updateFacility.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/facilitiesManager/updateFacility`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}updateFacilityBan(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputUpdateBanForFacility was null or undefined when calling updateFacilityBan.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/facilitiesManager/updateBan`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}}return oe.\u0275fac=function(r){return new(r||oe)(A.LFG(e.eN),A.LFG(w,8),A.LFG(g,8))},oe.\u0275prov=A.Yz7({token:oe,factory:oe.\u0275fac,providedIn:"root"}),oe})(),G=(()=>{class oe{constructor(r,s,_){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new g,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof s&&(s=this.basePath),this.configuration.basePath=s),this.encoder=this.configuration.encoder||new m}addToHttpParams(r,s,_){return"object"!=typeof s||s instanceof Date?this.addToHttpParamsRecursive(r,s,_):this.addToHttpParamsRecursive(r,s)}addToHttpParamsRecursive(r,s,_){if(null==s)return r;if("object"==typeof s)if(Array.isArray(s))s.forEach(c=>r=this.addToHttpParamsRecursive(r,c,_));else if(s instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,s.toISOString().substr(0,10))}else Object.keys(s).forEach(c=>r=this.addToHttpParamsRecursive(r,s[c],null!=_?`${_}.${c}`:c));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,s)}return r}addMember(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter groups was null or undefined when calling addMember.");if(null==s)throw new Error("Required parameter member was null or undefined when calling addMember.");let i=new e.LE({encoder:this.encoder});r&&r.forEach(y=>{i=this.addToHttpParams(i,y,"groups[]")}),null!=s&&(i=this.addToHttpParams(i,s,"member"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/addMember`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}addMembers(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling addMembers.");if(null==s)throw new Error("Required parameter members was null or undefined when calling addMembers.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),s&&s.forEach(y=>{i=this.addToHttpParams(i,y,"members[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/addMembers`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}allowGroupToHierarchicalVo(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling allowGroupToHierarchicalVo.");if(null==s)throw new Error("Required parameter vo was null or undefined when calling allowGroupToHierarchicalVo.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),null!=s&&(i=this.addToHttpParams(i,s,"vo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/allowGroupToHierarchicalVo`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}canExtendMembershipInGroup(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling canExtendMembershipInGroup.");if(null==s)throw new Error("Required parameter group was null or undefined when calling canExtendMembershipInGroup.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),null!=s&&(i=this.addToHttpParams(i,s,"group"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/canExtendMembershipInGroup`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}createGroupUnion(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter resultGroup was null or undefined when calling createGroupUnion.");if(null==s)throw new Error("Required parameter operandGroup was null or undefined when calling createGroupUnion.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resultGroup")),null!=s&&(i=this.addToHttpParams(i,s,"operandGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroupUnion`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}createGroupWithParentGroupNameDescription(r,s,_,c="body",a=!1,i){if(null==r)throw new Error("Required parameter parentGroup was null or undefined when calling createGroupWithParentGroupNameDescription.");if(null==s)throw new Error("Required parameter name was null or undefined when calling createGroupWithParentGroupNameDescription.");if(null==_)throw new Error("Required parameter description was null or undefined when calling createGroupWithParentGroupNameDescription.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"parentGroup")),null!=s&&(t=this.addToHttpParams(t,s,"name")),null!=_&&(t=this.addToHttpParams(t,_,"description"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let l=i&&i.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(n=n.set("Accept",l));let d=i&&i.context;void 0===d&&(d=new e.qT);let y="json";return l&&(y=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroup/pg-n-d`,null,{context:d,params:t,responseType:y,withCredentials:this.configuration.withCredentials,headers:n,observe:c,reportProgress:a})}createGroupWithVoNameDescription(r,s,_,c="body",a=!1,i){if(null==r)throw new Error("Required parameter vo was null or undefined when calling createGroupWithVoNameDescription.");if(null==s)throw new Error("Required parameter name was null or undefined when calling createGroupWithVoNameDescription.");if(null==_)throw new Error("Required parameter description was null or undefined when calling createGroupWithVoNameDescription.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"vo")),null!=s&&(t=this.addToHttpParams(t,s,"name")),null!=_&&(t=this.addToHttpParams(t,_,"description"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let l=i&&i.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(n=n.set("Accept",l));let d=i&&i.context;void 0===d&&(d=new e.qT);let y="json";return l&&(y=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroup/v-n-d`,null,{context:d,params:t,responseType:y,withCredentials:this.configuration.withCredentials,headers:n,observe:c,reportProgress:a})}deleteGroup(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling deleteGroup.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),null!=s&&(i=this.addToHttpParams(i,s,"force"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/deleteGroup`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}deleteGroups(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputDeleteGroups was null or undefined when calling deleteGroups.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/deleteGroups`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}disallowGroupToHierarchicalVo(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling disallowGroupToHierarchicalVo.");if(null==s)throw new Error("Required parameter vo was null or undefined when calling disallowGroupToHierarchicalVo.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),null!=s&&(i=this.addToHttpParams(i,s,"vo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/disallowGroupToHierarchicalVo`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}extendMembershipInGroup(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling extendMembershipInGroup.");if(null==s)throw new Error("Required parameter group was null or undefined when calling extendMembershipInGroup.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),null!=s&&(i=this.addToHttpParams(i,s,"group"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/extendMembershipInGroup`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}forceAllSubGroupsSynchronization(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter group was null or undefined when calling forceAllSubGroupsSynchronization.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceAllSubGroupsSynchronization`,null,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}forceGroupStructureSynchronization(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter group was null or undefined when calling forceGroupStructureSynchronization.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceGroupStructureSynchronization`,null,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}forceGroupSynchronization(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter group was null or undefined when calling forceGroupSynchronization.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceGroupSynchronization`,null,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getAllAllowedGroupsToHierarchicalVo(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getAllAllowedGroupsToHierarchicalVo.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllAllowedGroupsToHierarchicalVo/v`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getAllGroups(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getAllGroups.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllGroups`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getAllGroupsFromAllVos(r="body",s=!1,_){let a,c=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(c=c.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(c=c.set("Authorization","Bearer "+a));let i=_&&_.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let t=_&&_.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllGroups/all`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:s})}getAllMemberGroups(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter member was null or undefined when calling getAllMemberGroups.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllMemberGroups`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getAllRichGroups(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter attrNames was null or undefined when calling getAllRichGroups.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{a=this.addToHttpParams(a,d,"attrNames[]")});let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllRichGroups`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getAllRichGroupsWithAttributesByNames(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getAllRichGroupsWithAttributesByNames.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getAllRichGroupsWithAttributesByNames.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),s&&s.forEach(y=>{i=this.addToHttpParams(i,y,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllRichGroupsWithAttributesByNames`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getAllRichSubGroupsWithGroupAttributesByNames(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling getAllRichSubGroupsWithGroupAttributesByNames.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),s&&s.forEach(y=>{i=this.addToHttpParams(i,y,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllRichSubGroupsWithAttributesByNames`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getGroupById(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter id was null or undefined when calling getGroupById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupById`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getGroupByName(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getGroupByName.");if(null==s)throw new Error("Required parameter name was null or undefined when calling getGroupByName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=s&&(i=this.addToHttpParams(i,s,"name"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupByName`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getGroupMemberById(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupMemberById.");if(null==s)throw new Error("Required parameter member was null or undefined when calling getGroupMemberById.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),null!=s&&(i=this.addToHttpParams(i,s,"member"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMemberById`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getGroupMembers(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupMembers.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembers`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getGroupMembersCount(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCount.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCount`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getGroupMembersCountsByGroupStatus(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByGroupStatus.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCountsByGroupStatus`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getGroupMembersCountsByVoStatus(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByVoStatus.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCountsByVoStatus`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getGroupRichMembersByIds(r,s,_,c="body",a=!1,i){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupRichMembersByIds.");if(null==s)throw new Error("Required parameter members was null or undefined when calling getGroupRichMembersByIds.");if(null==_)throw new Error("Required parameter attrNames was null or undefined when calling getGroupRichMembersByIds.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"group")),s&&s.forEach(k=>{t=this.addToHttpParams(t,k,"members[]")}),_&&_.forEach(k=>{t=this.addToHttpParams(t,k,"attrNames[]")});let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let l=i&&i.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(n=n.set("Accept",l));let d=i&&i.context;void 0===d&&(d=new e.qT);let y="json";return l&&(y=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupRichMembersByIds`,{context:d,params:t,responseType:y,withCredentials:this.configuration.withCredentials,headers:n,observe:c,reportProgress:a})}getGroupUnions(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupUnions.");if(null==s)throw new Error("Required parameter reverseDirection was null or undefined when calling getGroupUnions.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),null!=s&&(i=this.addToHttpParams(i,s,"reverseDirection"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupUnions`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getGroupsByIds(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getGroupsByIds.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{a=this.addToHttpParams(a,d,"ids[]")});let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupsByIds`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getGroupsPage(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputGetPaginatedGroups was null or undefined when calling getGroupsPage.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/getGroupsPage`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}getGroupsWhereMemberIsActive(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter member was null or undefined when calling getGroupsWhereMemberIsActive.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupsWhereMemberIsActive`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getIndirectMembershipPaths(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling getIndirectMembershipPaths.");if(null==s)throw new Error("Required parameter group was null or undefined when calling getIndirectMembershipPaths.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),null!=s&&(i=this.addToHttpParams(i,s,"group"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getIndirectMembershipPaths`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getMemberGroups(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberGroups.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getMemberGroups`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getMemberRichGroupsWithAttributesByNames(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberRichGroupsWithAttributesByNames.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getMemberRichGroupsWithAttributesByNames.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),s&&s.forEach(y=>{i=this.addToHttpParams(i,y,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getMemberRichGroupsWithAttributesByNames`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getParentGroup(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter group was null or undefined when calling getParentGroup.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getParentGroup`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getRichGroupByIdWithAttributesByNames(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter groupId was null or undefined when calling getRichGroupByIdWithAttributesByNames.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"groupId")),s&&s.forEach(y=>{i=this.addToHttpParams(i,y,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getRichGroupByIdWithAttributesByNames`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getSubgroupsPage(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputGetPaginatedSubgroups was null or undefined when calling getSubgroupsPage.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/getSubgroupsPage`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}getVoAllAllowedGroupsToHierarchicalVo(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoAllAllowedGroupsToHierarchicalVo.");if(null==s)throw new Error("Required parameter memberVo was null or undefined when calling getVoAllAllowedGroupsToHierarchicalVo.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=s&&(i=this.addToHttpParams(i,s,"memberVo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllAllowedGroupsToHierarchicalVo/v-v`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}isAllowedGroupToHierarchicalVo(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling isAllowedGroupToHierarchicalVo.");if(null==s)throw new Error("Required parameter vo was null or undefined when calling isAllowedGroupToHierarchicalVo.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),null!=s&&(i=this.addToHttpParams(i,s,"vo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/isAllowedGroupToHierarchicalVo`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}isGroupMember(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling isGroupMember.");if(null==s)throw new Error("Required parameter group was null or undefined when calling isGroupMember.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),null!=s&&(i=this.addToHttpParams(i,s,"group"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/isGroupMember`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}moveGroupWithDestinationGroupMovingGroup(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter movingGroup was null or undefined when calling moveGroupWithDestinationGroupMovingGroup.");let i=new e.LE({encoder:this.encoder});null!=s&&(i=this.addToHttpParams(i,s,"destinationGroup")),null!=r&&(i=this.addToHttpParams(i,r,"movingGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/moveGroup/dg-mg`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}removeGroupUnion(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter resultGroup was null or undefined when calling removeGroupUnion.");if(null==s)throw new Error("Required parameter operandGroup was null or undefined when calling removeGroupUnion.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resultGroup")),null!=s&&(i=this.addToHttpParams(i,s,"operandGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeGroupUnion`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}removeMember(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter groups was null or undefined when calling removeMember.");if(null==s)throw new Error("Required parameter member was null or undefined when calling removeMember.");let i=new e.LE({encoder:this.encoder});r&&r.forEach(y=>{i=this.addToHttpParams(i,y,"groups[]")}),null!=s&&(i=this.addToHttpParams(i,s,"member"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeMember`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}removeMembers(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling removeMembers.");if(null==s)throw new Error("Required parameter members was null or undefined when calling removeMembers.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),s&&s.forEach(y=>{i=this.addToHttpParams(i,y,"members[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeMembers`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}setGroupsMemberStatus(r,s,_,c="body",a=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling setGroupsMemberStatus.");if(null==s)throw new Error("Required parameter group was null or undefined when calling setGroupsMemberStatus.");if(null==_)throw new Error("Required parameter status was null or undefined when calling setGroupsMemberStatus.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=s&&(t=this.addToHttpParams(t,s,"group")),null!=_&&(t=this.addToHttpParams(t,_,"status"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let l=i&&i.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(n=n.set("Accept",l));let d=i&&i.context;void 0===d&&(d=new e.qT);let y="json";return l&&(y=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/setGroupsMemberStatus`,null,{context:d,params:t,responseType:y,withCredentials:this.configuration.withCredentials,headers:n,observe:c,reportProgress:a})}updateGroup(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputUpdateGroup was null or undefined when calling updateGroup.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/updateGroup`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}}return oe.\u0275fac=function(r){return new(r||oe)(A.LFG(e.eN),A.LFG(w,8),A.LFG(g,8))},oe.\u0275prov=A.Yz7({token:oe,factory:oe.\u0275fac,providedIn:"root"}),oe})(),_e=(()=>{class oe{constructor(r,s,_){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new g,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof s&&(s=this.basePath),this.configuration.basePath=s),this.encoder=this.configuration.encoder||new m}addToHttpParams(r,s,_){return"object"!=typeof s||s instanceof Date?this.addToHttpParamsRecursive(r,s,_):this.addToHttpParamsRecursive(r,s)}addToHttpParamsRecursive(r,s,_){if(null==s)return r;if("object"==typeof s)if(Array.isArray(s))s.forEach(c=>r=this.addToHttpParamsRecursive(r,c,_));else if(s instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,s.toISOString().substr(0,10))}else Object.keys(s).forEach(c=>r=this.addToHttpParamsRecursive(r,s[c],null!=_?`${_}.${c}`:c));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,s)}return r}canExtendMembership(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter member was null or undefined when calling canExtendMembership.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/canExtendMembership`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}createMemberForCandidate(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputCreateMemberForCandidate was null or undefined when calling createMemberForCandidate.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/c`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}createMemberForUser(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputCreateMemberForUser was null or undefined when calling createMemberForUser.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/u`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}createMemberFromExtSource(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputCreateMemberFromExtSource was null or undefined when calling createMemberFromExtSource.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/extSource`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}createSpecificMember(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputSpecificMember was null or undefined when calling createSpecificMember.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSpecificMember`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}createSponsoredMember(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputCreateSponsoredMember was null or undefined when calling createSponsoredMember.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMember/withFullName`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}createSponsoredMembers(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputCreateSponsoredMembers was null or undefined when calling createSponsoredMembers.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMembers`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}createSponsoredMembersFromCSV(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputCreateSponsoredMemberFromCSV was null or undefined when calling createSponsoredMembersFromCSV.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMembersFromCSV`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}deleteMember(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter member was null or undefined when calling deleteMember.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/deleteMember`,null,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}deleteMembers(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter members was null or undefined when calling deleteMembers.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{a=this.addToHttpParams(a,d,"members[]")});let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/deleteMembers`,null,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}extendMembership(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter member was null or undefined when calling extendMembership.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/extendMembership`,null,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}findCompleteRichMembersByAttributes(r,s,_,c="body",a=!1,i){if(null==r)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersByAttributes.");if(null==s)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersByAttributes.");let t=new e.LE({encoder:this.encoder});r&&r.forEach(k=>{t=this.addToHttpParams(t,k,"attrsNames[]")}),null!=s&&(t=this.addToHttpParams(t,s,"searchString")),_&&_.forEach(k=>{t=this.addToHttpParams(t,k,"allowedStatuses[]")});let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let l=i&&i.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(n=n.set("Accept",l));let d=i&&i.context;void 0===d&&(d=new e.qT);let y="json";return l&&(y=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/attrs`,{context:d,params:t,responseType:y,withCredentials:this.configuration.withCredentials,headers:n,observe:c,reportProgress:a})}findCompleteRichMembersForGroup(r,s,_,c,a,i,t="body",n=!1,o){if(null==r)throw new Error("Required parameter group was null or undefined when calling findCompleteRichMembersForGroup.");if(null==s)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersForGroup.");if(null==_)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForGroup.");if(null==c)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling findCompleteRichMembersForGroup.");let l=new e.LE({encoder:this.encoder});null!=r&&(l=this.addToHttpParams(l,r,"group")),s&&s.forEach(ct=>{l=this.addToHttpParams(l,ct,"attrsNames[]")}),a&&a.forEach(ct=>{l=this.addToHttpParams(l,ct,"allowedStatuses[]")}),i&&i.forEach(ct=>{l=this.addToHttpParams(l,ct,"allowedGroupStatuses[]")}),null!=_&&(l=this.addToHttpParams(l,_,"searchString")),null!=c&&(l=this.addToHttpParams(l,c,"lookingInParentGroup"));let y,d=this.defaultHeaders;y=this.configuration.lookupCredential("BasicAuth"),y&&(d=d.set("Authorization","Basic "+y)),y=this.configuration.lookupCredential("BearerAuth"),y&&(d=d.set("Authorization","Bearer "+y));let k=o&&o.httpHeaderAccept;void 0===k&&(k=this.configuration.selectHeaderAccept(["application/json"])),void 0!==k&&(d=d.set("Accept",k));let Ie=o&&o.context;void 0===Ie&&(Ie=new e.qT);let tt="json";return k&&(tt=k.startsWith("text")?"text":this.configuration.isJsonMime(k)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/g`,{context:Ie,params:l,responseType:tt,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:n})}findCompleteRichMembersForVo(r,s,_,c,a="body",i=!1,t){if(null==r)throw new Error("Required parameter vo was null or undefined when calling findCompleteRichMembersForVo.");if(null==s)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersForVo.");if(null==_)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForVo.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),s&&s.forEach(Ie=>{n=this.addToHttpParams(n,Ie,"attrsNames[]")}),c&&c.forEach(Ie=>{n=this.addToHttpParams(n,Ie,"allowedStatuses[]")}),null!=_&&(n=this.addToHttpParams(n,_,"searchString"));let l,o=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(o=o.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(o=o.set("Authorization","Bearer "+l));let d=t&&t.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(o=o.set("Accept",d));let y=t&&t.context;void 0===y&&(y=new e.qT);let k="json";return d&&(k=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/v`,{context:y,params:n,responseType:k,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}findMembersInVo(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling findMembersInVo.");if(null==s)throw new Error("Required parameter searchString was null or undefined when calling findMembersInVo.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=s&&(i=this.addToHttpParams(i,s,"searchString"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findMembersInVo`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}findSponsoredCompleteRichMembersForVo(r,s,_,c,a="body",i=!1,t){if(null==r)throw new Error("Required parameter vo was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==s)throw new Error("Required parameter attrsNames was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==_)throw new Error("Required parameter searchString was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==c)throw new Error("Required parameter onlySponsored was null or undefined when calling findSponsoredCompleteRichMembersForVo.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),s&&s.forEach(Ie=>{n=this.addToHttpParams(n,Ie,"attrsNames[]")}),null!=_&&(n=this.addToHttpParams(n,_,"searchString")),null!=c&&(n=this.addToHttpParams(n,c,"onlySponsored"));let l,o=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(o=o.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(o=o.set("Authorization","Bearer "+l));let d=t&&t.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(o=o.set("Accept",d));let y=t&&t.context;void 0===y&&(y=new e.qT);let k="json";return d&&(k=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/v-sponsored`,{context:y,params:n,responseType:k,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}getAllMembers(r="body",s=!1,_){let a,c=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(c=c.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(c=c.set("Authorization","Bearer "+a));let i=_&&_.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let t=_&&_.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllMembers`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:s})}getAllNamespacesRules(r="body",s=!1,_){let a,c=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(c=c.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(c=c.set("Authorization","Bearer "+a));let i=_&&_.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let t=_&&_.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllNamespacesRules`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:s})}getAllSponsoredMembers(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembers.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllSponsoredMembers`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getAllSponsoredMembersAndTheirSponsors(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembersAndTheirSponsors.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getAllSponsoredMembersAndTheirSponsors.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),s&&s.forEach(y=>{i=this.addToHttpParams(i,y,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllSponsoredMembersAndTheirSponsors`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getCompleteRichMembersForGroup(r,s,_,c,a,i="body",t=!1,n){if(null==r)throw new Error("Required parameter group was null or undefined when calling getCompleteRichMembersForGroup.");if(null==s)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling getCompleteRichMembersForGroup.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"group")),_&&_.forEach(tt=>{o=this.addToHttpParams(o,tt,"allowedStatuses[]")}),c&&c.forEach(tt=>{o=this.addToHttpParams(o,tt,"allowedGroupStatuses[]")}),null!=s&&(o=this.addToHttpParams(o,s,"lookingInParentGroup")),a&&a.forEach(tt=>{o=this.addToHttpParams(o,tt,"attrsNames[]")});let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let y=n&&n.httpHeaderAccept;void 0===y&&(y=this.configuration.selectHeaderAccept(["application/json"])),void 0!==y&&(l=l.set("Accept",y));let k=n&&n.context;void 0===k&&(k=new e.qT);let Ie="json";return y&&(Ie=y.startsWith("text")?"text":this.configuration.isJsonMime(y)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/g`,{context:k,params:o,responseType:Ie,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:t})}getCompleteRichMembersForGroupResource(r,s,_,c,a="body",i=!1,t){if(null==r)throw new Error("Required parameter group was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==_)throw new Error("Required parameter attrsNames was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==c)throw new Error("Required parameter allowedStatuses was null or undefined when calling getCompleteRichMembersForGroupResource.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),null!=s&&(n=this.addToHttpParams(n,s,"resource")),_&&_.forEach(Ie=>{n=this.addToHttpParams(n,Ie,"attrsNames[]")}),c&&c.forEach(Ie=>{n=this.addToHttpParams(n,Ie,"allowedStatuses[]")});let l,o=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(o=o.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(o=o.set("Authorization","Bearer "+l));let d=t&&t.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(o=o.set("Accept",d));let y=t&&t.context;void 0===y&&(y=new e.qT);let k="json";return d&&(k=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/g-r`,{context:y,params:n,responseType:k,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}getCompleteRichMembersForVo(r,s,_,c="body",a=!1,i){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getCompleteRichMembersForVo.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"vo")),s&&s.forEach(k=>{t=this.addToHttpParams(t,k,"allowedStatuses[]")}),_&&_.forEach(k=>{t=this.addToHttpParams(t,k,"attrsNames[]")});let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let l=i&&i.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(n=n.set("Accept",l));let d=i&&i.context;void 0===d&&(d=new e.qT);let y="json";return l&&(y=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/v`,{context:d,params:t,responseType:y,withCredentials:this.configuration.withCredentials,headers:n,observe:c,reportProgress:a})}getMemberByExtSourceNameAndExtLogin(r,s,_,c="body",a=!1,i){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");if(null==s)throw new Error("Required parameter extLogin was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");if(null==_)throw new Error("Required parameter extSourceName was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"vo")),null!=s&&(t=this.addToHttpParams(t,s,"extLogin")),null!=_&&(t=this.addToHttpParams(t,_,"extSourceName"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let l=i&&i.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(n=n.set("Accept",l));let d=i&&i.context;void 0===d&&(d=new e.qT);let y="json";return l&&(y=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberByExtSourceNameAndExtLogin`,{context:d,params:t,responseType:y,withCredentials:this.configuration.withCredentials,headers:n,observe:c,reportProgress:a})}getMemberById(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter id was null or undefined when calling getMemberById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberById`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getMemberByUser(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getMemberByUser.");if(null==s)throw new Error("Required parameter user was null or undefined when calling getMemberByUser.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=s&&(i=this.addToHttpParams(i,s,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberByUser`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getMembers(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getMembers.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=s&&(i=this.addToHttpParams(i,s,"status"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembers`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getMembersByIds(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getMembersByIds.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{a=this.addToHttpParams(a,d,"ids[]")});let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersByIds`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getMembersByUser(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter user was null or undefined when calling getMembersByUser.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersByUser`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getMembersCount(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getMembersCount.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersCount`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getMembersPage(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputGetPaginatedMembers was null or undefined when calling getMembersPage.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/getMembersPage`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}getMembersWithStatusCount(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getMembersWithStatusCount.");if(null==s)throw new Error("Required parameter status was null or undefined when calling getMembersWithStatusCount.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=s&&(i=this.addToHttpParams(i,s,"status"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersCount/status`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getRichMember(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter id was null or undefined when calling getRichMember.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMember`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getRichMemberWithAttributes(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter id was null or undefined when calling getRichMemberWithAttributes.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMemberWithAttributes`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getRichMembersByIds(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getRichMembersByIds.");let i=new e.LE({encoder:this.encoder});r&&r.forEach(y=>{i=this.addToHttpParams(i,y,"ids[]")}),s&&s.forEach(y=>{i=this.addToHttpParams(i,y,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMembersByIds`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getRichMembersNoUserAttributes(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getRichMembersNoUserAttributes.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMembersNoUserAttributes`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getSponsoredMembers(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembers.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsoredMembers/v`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getSponsoredMembersAndTheirSponsors(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembersAndTheirSponsors.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getSponsoredMembersAndTheirSponsors.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),s&&s.forEach(y=>{i=this.addToHttpParams(i,y,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsoredMembersAndTheirSponsors`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getSponsorsByMember(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling getSponsorsByMember.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),s&&s.forEach(y=>{i=this.addToHttpParams(i,y,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsors/member`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getSponsorsByVo(r,s,_,c,a="body",i=!1,t){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getSponsorsByVo.");if(null==s)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsByVo.");if(null==_)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsByVo.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=s&&(n=this.addToHttpParams(n,s,"extSourceName")),null!=_&&(n=this.addToHttpParams(n,_,"extLogin")),c&&c.forEach(Ie=>{n=this.addToHttpParams(n,Ie,"attrNames[]")});let l,o=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(o=o.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(o=o.set("Authorization","Bearer "+l));let d=t&&t.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(o=o.set("Accept",d));let y=t&&t.context;void 0===y&&(y=new e.qT);let k="json";return d&&(k=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsors/vo`,{context:y,params:n,responseType:k,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}moveMembership(r,s,_,c="body",a=!1,i){if(null==r)throw new Error("Required parameter vo was null or undefined when calling moveMembership.");if(null==s)throw new Error("Required parameter sourceUser was null or undefined when calling moveMembership.");if(null==_)throw new Error("Required parameter targetUser was null or undefined when calling moveMembership.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"vo")),null!=s&&(t=this.addToHttpParams(t,s,"sourceUser")),null!=_&&(t=this.addToHttpParams(t,_,"targetUser"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let l=i&&i.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(n=n.set("Accept",l));let d=i&&i.context;void 0===d&&(d=new e.qT);let y="json";return l&&(y=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/moveMembership`,null,{context:d,params:t,responseType:y,withCredentials:this.configuration.withCredentials,headers:n,observe:c,reportProgress:a})}removeSponsor(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeSponsor.");if(null==s)throw new Error("Required parameter sponsor was null or undefined when calling removeSponsor.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),null!=s&&(i=this.addToHttpParams(i,s,"sponsor"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/removeSponsor`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}sendAccountActivationLinkEmail(r,s,_,c,a="body",i=!1,t){if(null==r)throw new Error("Required parameter member was null or undefined when calling sendAccountActivationLinkEmail.");if(null==s)throw new Error("Required parameter namespace was null or undefined when calling sendAccountActivationLinkEmail.");if(null==_)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendAccountActivationLinkEmail.");if(null==c)throw new Error("Required parameter language was null or undefined when calling sendAccountActivationLinkEmail.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),null!=s&&(n=this.addToHttpParams(n,s,"namespace")),null!=_&&(n=this.addToHttpParams(n,_,"emailAttributeURN")),null!=c&&(n=this.addToHttpParams(n,c,"language"));let l,o=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(o=o.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(o=o.set("Authorization","Bearer "+l));let d=t&&t.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(o=o.set("Accept",d));let y=t&&t.context;void 0===y&&(y=new e.qT);let k="json";return d&&(k=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sendAccountActivationLinkEmail`,null,{context:y,params:n,responseType:k,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}sendPasswordResetLinkEmail(r,s,_,c,a,i="body",t=!1,n){if(null==r)throw new Error("Required parameter member was null or undefined when calling sendPasswordResetLinkEmail.");if(null==s)throw new Error("Required parameter namespace was null or undefined when calling sendPasswordResetLinkEmail.");if(null==_)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendPasswordResetLinkEmail.");if(null==c)throw new Error("Required parameter language was null or undefined when calling sendPasswordResetLinkEmail.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"member")),null!=s&&(o=this.addToHttpParams(o,s,"namespace")),null!=_&&(o=this.addToHttpParams(o,_,"emailAttributeURN")),null!=c&&(o=this.addToHttpParams(o,c,"language")),null!=a&&(o=this.addToHttpParams(o,a,"baseUrl"));let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let y=n&&n.httpHeaderAccept;void 0===y&&(y=this.configuration.selectHeaderAccept(["application/json"])),void 0!==y&&(l=l.set("Accept",y));let k=n&&n.context;void 0===k&&(k=new e.qT);let Ie="json";return y&&(Ie=y.startsWith("text")?"text":this.configuration.isJsonMime(y)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sendPasswordResetLinkEmail`,null,{context:k,params:o,responseType:Ie,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:t})}setSponsoredMember(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputSetSponsoredMember was null or undefined when calling setSponsoredMember.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/setSponsoredMember`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}setSponsorshipForMember(r,s,_,c="body",a=!1,i){if(null==r)throw new Error("Required parameter sponsoredMember was null or undefined when calling setSponsorshipForMember.");if(null==s)throw new Error("Required parameter sponsor was null or undefined when calling setSponsorshipForMember.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"sponsoredMember")),null!=s&&(t=this.addToHttpParams(t,s,"sponsor")),null!=_&&(t=this.addToHttpParams(t,_,"validityTo"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let l=i&&i.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(n=n.set("Accept",l));let d=i&&i.context;void 0===d&&(d=new e.qT);let y="json";return l&&(y=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/setSponsorshipForMember`,null,{context:d,params:t,responseType:y,withCredentials:this.configuration.withCredentials,headers:n,observe:c,reportProgress:a})}setStatus(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling setStatus.");if(null==s)throw new Error("Required parameter status was null or undefined when calling setStatus.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),null!=s&&(i=this.addToHttpParams(i,s,"status"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/setStatus`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}sponsorMember(r,s,_,c="body",a=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling sponsorMember.");if(null==s)throw new Error("Required parameter sponsor was null or undefined when calling sponsorMember.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=s&&(t=this.addToHttpParams(t,s,"sponsor")),null!=_&&(t=this.addToHttpParams(t,_,"validityTo"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let l=i&&i.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(n=n.set("Accept",l));let d=i&&i.context;void 0===d&&(d=new e.qT);let y="json";return l&&(y=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sponsorMember`,null,{context:d,params:t,responseType:y,withCredentials:this.configuration.withCredentials,headers:n,observe:c,reportProgress:a})}updateSponsorshipValidity(r,s,_,c="body",a=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling updateSponsorshipValidity.");if(null==s)throw new Error("Required parameter sponsor was null or undefined when calling updateSponsorshipValidity.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=s&&(t=this.addToHttpParams(t,s,"sponsor")),null!=_&&(t=this.addToHttpParams(t,_,"validityTo"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let l=i&&i.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(n=n.set("Accept",l));let d=i&&i.context;void 0===d&&(d=new e.qT);let y="json";return l&&(y=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/updateSponsorshipValidity`,null,{context:d,params:t,responseType:y,withCredentials:this.configuration.withCredentials,headers:n,observe:c,reportProgress:a})}validateMemberAsync(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter member was null or undefined when calling validateMemberAsync.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/validateMemberAsync`,null,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}}return oe.\u0275fac=function(r){return new(r||oe)(A.LFG(e.eN),A.LFG(w,8),A.LFG(g,8))},oe.\u0275prov=A.Yz7({token:oe,factory:oe.\u0275fac,providedIn:"root"}),oe})(),ce=(()=>{class oe{constructor(r,s,_){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new g,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof s&&(s=this.basePath),this.configuration.basePath=s),this.encoder=this.configuration.encoder||new m}addToHttpParams(r,s,_){return"object"!=typeof s||s instanceof Date?this.addToHttpParamsRecursive(r,s,_):this.addToHttpParamsRecursive(r,s)}addToHttpParamsRecursive(r,s,_){if(null==s)return r;if("object"==typeof s)if(Array.isArray(s))s.forEach(c=>r=this.addToHttpParamsRecursive(r,c,_));else if(s instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,s.toISOString().substr(0,10))}else Object.keys(s).forEach(c=>r=this.addToHttpParamsRecursive(r,s[c],null!=_?`${_}.${c}`:c));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,s)}return r}createOwner(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputCreateOwner was null or undefined when calling createOwner.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/ownersManager/createOwner`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}deleteOwner(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter owner was null or undefined when calling deleteOwner.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"owner")),null!=s&&(i=this.addToHttpParams(i,s,"force"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/ownersManager/deleteOwner`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getAllOwners(r="body",s=!1,_){let a,c=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(c=c.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(c=c.set("Authorization","Bearer "+a));let i=_&&_.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let t=_&&_.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/ownersManager/getOwners`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:s})}getOwnerById(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter id was null or undefined when calling getOwnerById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/ownersManager/getOwnerById`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getOwnerByName(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter owner was null or undefined when calling getOwnerByName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"owner"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/ownersManager/getOwnerByName`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}}return oe.\u0275fac=function(r){return new(r||oe)(A.LFG(e.eN),A.LFG(w,8),A.LFG(g,8))},oe.\u0275prov=A.Yz7({token:oe,factory:oe.\u0275fac,providedIn:"root"}),oe})(),Te=(()=>{class oe{constructor(r,s,_){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new g,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof s&&(s=this.basePath),this.configuration.basePath=s),this.encoder=this.configuration.encoder||new m}addToHttpParams(r,s,_){return"object"!=typeof s||s instanceof Date?this.addToHttpParamsRecursive(r,s,_):this.addToHttpParamsRecursive(r,s)}addToHttpParamsRecursive(r,s,_){if(null==s)return r;if("object"==typeof s)if(Array.isArray(s))s.forEach(c=>r=this.addToHttpParamsRecursive(r,c,_));else if(s instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,s.toISOString().substr(0,10))}else Object.keys(s).forEach(c=>r=this.addToHttpParamsRecursive(r,s[c],null!=_?`${_}.${c}`:c));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,s)}return r}sentMessageToRTWithMemberQueue(r,s,_,c,a="body",i=!1,t){if(null==r)throw new Error("Required parameter memberId was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==s)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==_)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==c)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithMemberQueue.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"memberId")),null!=s&&(n=this.addToHttpParams(n,s,"queue")),null!=_&&(n=this.addToHttpParams(n,_,"subject")),null!=c&&(n=this.addToHttpParams(n,c,"text"));let l,o=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(o=o.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(o=o.set("Authorization","Bearer "+l));let d=t&&t.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(o=o.set("Accept",d));let y=t&&t.context;void 0===y&&(y=new e.qT);let k="json";return d&&(k=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/m-q`,null,{context:y,params:n,responseType:k,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}sentMessageToRTWithQueue(r,s,_,c="body",a=!1,i){if(null==r)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithQueue.");if(null==s)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithQueue.");if(null==_)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithQueue.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"queue")),null!=s&&(t=this.addToHttpParams(t,s,"subject")),null!=_&&(t=this.addToHttpParams(t,_,"text"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let l=i&&i.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(n=n.set("Accept",l));let d=i&&i.context;void 0===d&&(d=new e.qT);let y="json";return l&&(y=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/q`,null,{context:d,params:t,responseType:y,withCredentials:this.configuration.withCredentials,headers:n,observe:c,reportProgress:a})}sentMessageToRTWithVo(r,s,_,c="body",a=!1,i){if(null==r)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVo.");if(null==s)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVo.");if(null==_)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVo.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"voId")),null!=s&&(t=this.addToHttpParams(t,s,"subject")),null!=_&&(t=this.addToHttpParams(t,_,"text"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let l=i&&i.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(n=n.set("Accept",l));let d=i&&i.context;void 0===d&&(d=new e.qT);let y="json";return l&&(y=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v`,null,{context:d,params:t,responseType:y,withCredentials:this.configuration.withCredentials,headers:n,observe:c,reportProgress:a})}sentMessageToRTWithVoQueue(r,s,_,c,a="body",i=!1,t){if(null==r)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==s)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==_)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==c)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVoQueue.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"voId")),null!=s&&(n=this.addToHttpParams(n,s,"queue")),null!=_&&(n=this.addToHttpParams(n,_,"subject")),null!=c&&(n=this.addToHttpParams(n,c,"text"));let l,o=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(o=o.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(o=o.set("Authorization","Bearer "+l));let d=t&&t.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(o=o.set("Accept",d));let y=t&&t.context;void 0===y&&(y=new e.qT);let k="json";return d&&(k=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v-q`,null,{context:y,params:n,responseType:k,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}}return oe.\u0275fac=function(r){return new(r||oe)(A.LFG(e.eN),A.LFG(w,8),A.LFG(g,8))},oe.\u0275prov=A.Yz7({token:oe,factory:oe.\u0275fac,providedIn:"root"}),oe})(),b=(()=>{class oe{constructor(r,s,_){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new g,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof s&&(s=this.basePath),this.configuration.basePath=s),this.encoder=this.configuration.encoder||new m}addToHttpParams(r,s,_){return"object"!=typeof s||s instanceof Date?this.addToHttpParamsRecursive(r,s,_):this.addToHttpParamsRecursive(r,s)}addToHttpParamsRecursive(r,s,_){if(null==s)return r;if("object"==typeof s)if(Array.isArray(s))s.forEach(c=>r=this.addToHttpParamsRecursive(r,c,_));else if(s instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,s.toISOString().substr(0,10))}else Object.keys(s).forEach(c=>r=this.addToHttpParamsRecursive(r,s[c],null!=_?`${_}.${c}`:c));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,s)}return r}addApplicationMailForGroup(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputAddApplicationMailForGroup was null or undefined when calling addApplicationMailForGroup.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/addApplicationMail/g`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}addApplicationMailForVo(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputAddApplicationMailForVo was null or undefined when calling addApplicationMailForVo.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/addApplicationMail/v`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}addGroupsToAutoRegistration(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter groups was null or undefined when calling addGroupsToAutoRegistration.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{a=this.addToHttpParams(a,d,"groups[]")});let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/addGroupsToAutoRegistration`,null,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}approveApplication(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter id was null or undefined when calling approveApplication.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/approveApplication`,null,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}checkForSimilarRichIdentities(r="body",s=!1,_){let a,c=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(c=c.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(c=c.set("Authorization","Bearer "+a));let i=_&&_.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let t=_&&_.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/checkForSimilarRichIdentities`,null,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:s})}checkForSimilarUsersWithAuthInfo(r="body",s=!1,_){let a,c=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(c=c.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(c=c.set("Authorization","Bearer "+a));let i=_&&_.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let t=_&&_.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/checkForSimilarUsers/authInfo`,null,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:s})}consolidate(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputConsolidate was null or undefined when calling consolidate.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/consolidate`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}consolidateIdentityUsingToken(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter token was null or undefined when calling consolidateIdentityUsingToken.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"token"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/consolidateIdentityUsingToken`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}copyFormFromGroupToGroup(r,s,_="body",c=!1,a){let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"fromGroup")),null!=s&&(i=this.addToHttpParams(i,s,"toGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToGroup`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}copyFormFromGroupToVo(r,s,_="body",c=!1,a){let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"fromGroup")),null!=s&&(i=this.addToHttpParams(i,s,"toVo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToVo`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}copyFormFromVoToGroup(r,s,_="body",c=!1,a){let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"fromVo")),null!=s&&(i=this.addToHttpParams(i,s,"toGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToGroup`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}copyFormFromVoToVo(r,s,_="body",c=!1,a){let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"fromVo")),null!=s&&(i=this.addToHttpParams(i,s,"toVo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToVo`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}copyMailsFromGroupToGroup(r,s,_="body",c=!1,a){let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"fromGroup")),null!=s&&(i=this.addToHttpParams(i,s,"toGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToGroup`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}copyMailsFromGroupToVo(r,s,_="body",c=!1,a){let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"fromGroup")),null!=s&&(i=this.addToHttpParams(i,s,"toVo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToVo`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}copyMailsFromVoToGroup(r,s,_="body",c=!1,a){let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"fromVo")),null!=s&&(i=this.addToHttpParams(i,s,"toGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToGroup`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}copyMailsFromVoToVo(r,s,_="body",c=!1,a){let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"fromVo")),null!=s&&(i=this.addToHttpParams(i,s,"toVo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToVo`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}createApplicationFormInGroup(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter group was null or undefined when calling createApplicationFormInGroup.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/group`,null,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}createApplicationFormInVo(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter vo was null or undefined when calling createApplicationFormInVo.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/vo`,null,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}deleteApplication(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter id was null or undefined when calling deleteApplication.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplication`,null,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}deleteApplicationMailForGroup(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling deleteApplicationMailForGroup.");if(null==s)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForGroup.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),null!=s&&(i=this.addToHttpParams(i,s,"id"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/g`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}deleteApplicationMailForVo(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling deleteApplicationMailForVo.");if(null==s)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForVo.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=s&&(i=this.addToHttpParams(i,s,"id"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/v`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}deleteGroupsFromAutoRegistration(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter groups was null or undefined when calling deleteGroupsFromAutoRegistration.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{a=this.addToHttpParams(a,d,"groups[]")});let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteGroupsFromAutoRegistration`,null,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getApplicationById(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter id was null or undefined when calling getApplicationById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationById`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getApplicationDataById(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter id was null or undefined when calling getApplicationDataById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationDataById`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getApplicationMailsForGroup(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter group was null or undefined when calling getApplicationMailsForGroup.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationMails/g`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getApplicationMailsForVo(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getApplicationMailsForVo.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationMails/v`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getApplicationsForGroup(r,s,_,c,a="body",i=!1,t){if(null==r)throw new Error("Required parameter group was null or undefined when calling getApplicationsForGroup.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),s&&s.forEach(Ie=>{n=this.addToHttpParams(n,Ie,"state[]")}),null!=_&&(n=this.addToHttpParams(n,_,"dateFrom")),null!=c&&(n=this.addToHttpParams(n,c,"dateTo"));let l,o=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(o=o.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(o=o.set("Authorization","Bearer "+l));let d=t&&t.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(o=o.set("Accept",d));let y=t&&t.context;void 0===y&&(y=new e.qT);let k="json";return d&&(k=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForGroup`,{context:y,params:n,responseType:k,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}getApplicationsForMember(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling getApplicationsForMember.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),null!=s&&(i=this.addToHttpParams(i,s,"group"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForMember`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getApplicationsForVo(r,s,_,c,a="body",i=!1,t){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getApplicationsForVo.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),s&&s.forEach(Ie=>{n=this.addToHttpParams(n,Ie,"state[]")}),null!=_&&(n=this.addToHttpParams(n,_,"dateFrom")),null!=c&&(n=this.addToHttpParams(n,c,"dateTo"));let l,o=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(o=o.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(o=o.set("Authorization","Bearer "+l));let d=t&&t.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(o=o.set("Accept",d));let y=t&&t.context;void 0===y&&(y=new e.qT);let k="json";return d&&(k=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForVo`,{context:y,params:n,responseType:k,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}getApplicationsPage(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputGetPaginatedApplications was null or undefined when calling getApplicationsPage.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/getApplicationsPage`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}getConsolidatorToken(r="body",s=!1,_){let a,c=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(c=c.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(c=c.set("Authorization","Bearer "+a));let i=_&&_.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let t=_&&_.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getConsolidatorToken`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:s})}getFormItemsForGroup(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroup.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/group`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getFormItemsForGroupWithType(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroupWithType.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),null!=s&&(i=this.addToHttpParams(i,s,"type"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/group-type`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getFormItemsForVo(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVo.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/vo`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getFormItemsForVoWithType(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVoWithType.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=s&&(i=this.addToHttpParams(i,s,"type"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/vo-type`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getGroupApplicationForm(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupApplicationForm.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationForm/group`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getGroupsToAutoRegistration(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getGroupsToAutoRegistration.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getGroupsToAutoRegistration`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getVoApplicationForm(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoApplicationForm.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationForm/vo`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}rejectApplication(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter id was null or undefined when calling rejectApplication.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"id")),null!=s&&(i=this.addToHttpParams(i,s,"reason"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/rejectApplication`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}sendInvitation(r,s,_,c,a="body",i=!1,t){if(null==r)throw new Error("Required parameter email was null or undefined when calling sendInvitation.");if(null==s)throw new Error("Required parameter language was null or undefined when calling sendInvitation.");let n=new e.LE({encoder:this.encoder});null!=_&&(n=this.addToHttpParams(n,_,"voId")),null!=c&&(n=this.addToHttpParams(n,c,"name")),null!=r&&(n=this.addToHttpParams(n,r,"email")),null!=s&&(n=this.addToHttpParams(n,s,"language"));let l,o=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(o=o.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(o=o.set("Authorization","Bearer "+l));let d=t&&t.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(o=o.set("Accept",d));let y=t&&t.context;void 0===y&&(y=new e.qT);let k="json";return d&&(k=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation`,null,{context:y,params:n,responseType:k,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}sendInvitationForGroup(r,s,_,c,a,i="body",t=!1,n){if(null==r)throw new Error("Required parameter email was null or undefined when calling sendInvitationForGroup.");if(null==s)throw new Error("Required parameter language was null or undefined when calling sendInvitationForGroup.");let o=new e.LE({encoder:this.encoder});null!=_&&(o=this.addToHttpParams(o,_,"voId")),null!=c&&(o=this.addToHttpParams(o,c,"groupId")),null!=a&&(o=this.addToHttpParams(o,a,"name")),null!=r&&(o=this.addToHttpParams(o,r,"email")),null!=s&&(o=this.addToHttpParams(o,s,"language"));let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let y=n&&n.httpHeaderAccept;void 0===y&&(y=this.configuration.selectHeaderAccept(["application/json"])),void 0!==y&&(l=l.set("Accept",y));let k=n&&n.context;void 0===k&&(k=new e.qT);let Ie="json";return y&&(Ie=y.startsWith("text")?"text":this.configuration.isJsonMime(y)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/g`,null,{context:k,params:o,responseType:Ie,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:t})}sendInvitationGroupToExistingUser(r,s,_,c="body",a=!1,i){let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"userId")),null!=s&&(t=this.addToHttpParams(t,s,"voId")),null!=_&&(t=this.addToHttpParams(t,_,"groupId"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let l=i&&i.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(n=n.set("Accept",l));let d=i&&i.context;void 0===d&&(d=new e.qT);let y="json";return l&&(y=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u-g`,null,{context:d,params:t,responseType:y,withCredentials:this.configuration.withCredentials,headers:n,observe:c,reportProgress:a})}sendInvitationToExistingUser(r,s,_="body",c=!1,a){let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"userId")),null!=s&&(i=this.addToHttpParams(i,s,"voId"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}sendInvitationsFromCsv(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputInvitationsFromCsv was null or undefined when calling sendInvitationsFromCsv.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/sendInvitationsFromCsv`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}sendMessage(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputSendMessage was null or undefined when calling sendMessage.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/sendMessage`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}setSendingEnabled(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputSetSendingEnabled was null or undefined when calling setSendingEnabled.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/setSendingEnabled`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}submitApplication(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputSubmitApplication was null or undefined when calling submitApplication.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/submitApplication`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}updateApplicationMail(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputUpdateApplicationMail was null or undefined when calling updateApplicationMail.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateApplicationMail`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}updateForm(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputUpdateForm was null or undefined when calling updateForm.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateForm`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}updateFormItemData(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputFormItemData was null or undefined when calling updateFormItemData.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItemData`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}updateFormItemsData(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputFormItemsData was null or undefined when calling updateFormItemsData.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItemsData`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}updateFormItemsForGroup(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputUpdateFormItemsForGroup was null or undefined when calling updateFormItemsForGroup.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItems/group`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}updateFormItemsForVo(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputUpdateFormItemsForVo was null or undefined when calling updateFormItemsForVo.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItems/vo`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}verifyApplication(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter id was null or undefined when calling verifyApplication.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/verifyApplication`,null,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}}return oe.\u0275fac=function(r){return new(r||oe)(A.LFG(e.eN),A.LFG(w,8),A.LFG(g,8))},oe.\u0275prov=A.Yz7({token:oe,factory:oe.\u0275fac,providedIn:"root"}),oe})(),H=(()=>{class oe{constructor(r,s,_){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new g,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof s&&(s=this.basePath),this.configuration.basePath=s),this.encoder=this.configuration.encoder||new m}addToHttpParams(r,s,_){return"object"!=typeof s||s instanceof Date?this.addToHttpParamsRecursive(r,s,_):this.addToHttpParamsRecursive(r,s)}addToHttpParamsRecursive(r,s,_){if(null==s)return r;if("object"==typeof s)if(Array.isArray(s))s.forEach(c=>r=this.addToHttpParamsRecursive(r,c,_));else if(s instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,s.toISOString().substr(0,10))}else Object.keys(s).forEach(c=>r=this.addToHttpParamsRecursive(r,s[c],null!=_?`${_}.${c}`:c));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,s)}return r}activateGroupResourceAssignment(r,s,_,c="body",a=!1,i){if(null==r)throw new Error("Required parameter group was null or undefined when calling activateGroupResourceAssignment.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling activateGroupResourceAssignment.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"group")),null!=s&&(t=this.addToHttpParams(t,s,"resource")),null!=_&&(t=this.addToHttpParams(t,_,"async"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let l=i&&i.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(n=n.set("Accept",l));let d=i&&i.context;void 0===d&&(d=new e.qT);let y="json";return l&&(y=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/activateGroupResourceAssignment`,null,{context:d,params:t,responseType:y,withCredentials:this.configuration.withCredentials,headers:n,observe:c,reportProgress:a})}addAdminToGroup(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling addAdminToGroup.");if(null==s)throw new Error("Required parameter authorizedGroup was null or undefined when calling addAdminToGroup.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"authorizedGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addAdmin/r-g`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}addAdminToUser(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling addAdminToUser.");if(null==s)throw new Error("Required parameter user was null or undefined when calling addAdminToUser.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addAdmin/r-u`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}addResourceSelfServiceGroup(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceGroup.");if(null==s)throw new Error("Required parameter group was null or undefined when calling addResourceSelfServiceGroup.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"group"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addResourceSelfServiceGroup`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}addResourceSelfServiceUser(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceUser.");if(null==s)throw new Error("Required parameter user was null or undefined when calling addResourceSelfServiceUser.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addResourceSelfServiceUser`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}allowGroupsToResources(r,s,_,c="body",a=!1,i){if(null==r)throw new Error("Required parameter groups was null or undefined when calling allowGroupsToResources.");if(null==s)throw new Error("Required parameter resources was null or undefined when calling allowGroupsToResources.");let t=new e.LE({encoder:this.encoder});r&&r.forEach(k=>{t=this.addToHttpParams(t,k,"groups[]")}),s&&s.forEach(k=>{t=this.addToHttpParams(t,k,"resources[]")}),null!=_&&(t=this.addToHttpParams(t,_,"async"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let l=i&&i.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(n=n.set("Accept",l));let d=i&&i.context;void 0===d&&(d=new e.qT);let y="json";return l&&(y=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/allowGroupsToResources`,null,{context:d,params:t,responseType:y,withCredentials:this.configuration.withCredentials,headers:n,observe:c,reportProgress:a})}assignGroupToResource(r,s,_,c,a,i="body",t=!1,n){if(null==r)throw new Error("Required parameter group was null or undefined when calling assignGroupToResource.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling assignGroupToResource.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"group")),null!=s&&(o=this.addToHttpParams(o,s,"resource")),null!=_&&(o=this.addToHttpParams(o,_,"async")),null!=c&&(o=this.addToHttpParams(o,c,"assignInactive")),null!=a&&(o=this.addToHttpParams(o,a,"autoAssignSubgroups"));let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let y=n&&n.httpHeaderAccept;void 0===y&&(y=this.configuration.selectHeaderAccept(["application/json"])),void 0!==y&&(l=l.set("Accept",y));let k=n&&n.context;void 0===k&&(k=new e.qT);let Ie="json";return y&&(Ie=y.startsWith("text")?"text":this.configuration.isJsonMime(y)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupToResource`,null,{context:k,params:o,responseType:Ie,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:t})}assignGroupToResources(r,s,_,c,a,i="body",t=!1,n){if(null==r)throw new Error("Required parameter group was null or undefined when calling assignGroupToResources.");if(null==s)throw new Error("Required parameter resources was null or undefined when calling assignGroupToResources.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"group")),s&&s.forEach(tt=>{o=this.addToHttpParams(o,tt,"resources[]")}),null!=_&&(o=this.addToHttpParams(o,_,"async")),null!=c&&(o=this.addToHttpParams(o,c,"assignInactive")),null!=a&&(o=this.addToHttpParams(o,a,"autoAssignSubgroups"));let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let y=n&&n.httpHeaderAccept;void 0===y&&(y=this.configuration.selectHeaderAccept(["application/json"])),void 0!==y&&(l=l.set("Accept",y));let k=n&&n.context;void 0===k&&(k=new e.qT);let Ie="json";return y&&(Ie=y.startsWith("text")?"text":this.configuration.isJsonMime(y)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupToResources`,null,{context:k,params:o,responseType:Ie,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:t})}assignGroupsToResource(r,s,_,c,a,i="body",t=!1,n){if(null==r)throw new Error("Required parameter groups was null or undefined when calling assignGroupsToResource.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling assignGroupsToResource.");let o=new e.LE({encoder:this.encoder});r&&r.forEach(tt=>{o=this.addToHttpParams(o,tt,"groups[]")}),null!=s&&(o=this.addToHttpParams(o,s,"resource")),null!=_&&(o=this.addToHttpParams(o,_,"async")),null!=c&&(o=this.addToHttpParams(o,c,"assignInactive")),null!=a&&(o=this.addToHttpParams(o,a,"autoAssignSubgroups"));let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let y=n&&n.httpHeaderAccept;void 0===y&&(y=this.configuration.selectHeaderAccept(["application/json"])),void 0!==y&&(l=l.set("Accept",y));let k=n&&n.context;void 0===k&&(k=new e.qT);let Ie="json";return y&&(Ie=y.startsWith("text")?"text":this.configuration.isJsonMime(y)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupsToResource`,null,{context:k,params:o,responseType:Ie,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:t})}assignResourceTagToResource(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputAssignResourceTagToResource was null or undefined when calling assignResourceTagToResource.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/assignResourceTagToResource`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}assignService(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling assignService.");if(null==s)throw new Error("Required parameter service was null or undefined when calling assignService.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"service"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignService`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}assignServices(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling assignServices.");if(null==s)throw new Error("Required parameter services was null or undefined when calling assignServices.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),s&&s.forEach(y=>{i=this.addToHttpParams(i,y,"services[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignServices`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}assignServicesPackage(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling assignServicesPackage.");if(null==s)throw new Error("Required parameter servicesPackage was null or undefined when calling assignServicesPackage.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"servicesPackage"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignServicesPackage`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}copyResource(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputCopyResource was null or undefined when calling copyResource.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/copyResource`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}createResource(r,s,_,c,a="body",i=!1,t){if(null==r)throw new Error("Required parameter vo was null or undefined when calling createResource.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling createResource.");if(null==_)throw new Error("Required parameter name was null or undefined when calling createResource.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=s&&(n=this.addToHttpParams(n,s,"facility")),null!=_&&(n=this.addToHttpParams(n,_,"name")),null!=c&&(n=this.addToHttpParams(n,c,"description"));let l,o=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(o=o.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(o=o.set("Authorization","Bearer "+l));let d=t&&t.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(o=o.set("Accept",d));let y=t&&t.context;void 0===y&&(y=new e.qT);let k="json";return d&&(k=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/createResource`,null,{context:y,params:n,responseType:k,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}createResourceTagWithResourceTag(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputCreateResourceTagWithResourceTag was null or undefined when calling createResourceTagWithResourceTag.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/createResourceTag/resourceTag`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}createResourceTagWithTagName(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter tagName was null or undefined when calling createResourceTagWithTagName.");if(null==s)throw new Error("Required parameter vo was null or undefined when calling createResourceTagWithTagName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"tagName")),null!=s&&(i=this.addToHttpParams(i,s,"vo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/createResourceTag/tagName`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}deactivateGroupResourceAssignment(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling deactivateGroupResourceAssignment.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling deactivateGroupResourceAssignment.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),null!=s&&(i=this.addToHttpParams(i,s,"resource"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deactivateGroupResourceAssignment`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}deleteAllResources(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter vo was null or undefined when calling deleteAllResources.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteAllResources`,null,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}deleteAllResourcesTagsForVo(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter vo was null or undefined when calling deleteAllResourcesTagsForVo.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteAllResourcesTagsForVo`,null,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}deleteResource(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter resource was null or undefined when calling deleteResource.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"resource"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteResource`,null,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}deleteResourceTag(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputDeleteResourceTag was null or undefined when calling deleteResourceTag.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/deleteResourceTag`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}getAdminGroups(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAdminGroups.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"resource"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAdminGroups`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getAdmins(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAdmins.");if(null==s)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getAdmins.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"onlyDirectAdmins"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAdmins`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getAllResources(r="body",s=!1,_){let a,c=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(c=c.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(c=c.set("Authorization","Bearer "+a));let i=_&&_.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let t=_&&_.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllResources`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:s})}getAllResourcesByResourceTag(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputGetAllResourcesByResourceTag was null or undefined when calling getAllResourcesByResourceTag.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesByResourceTag`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}getAllResourcesTagsForResource(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAllResourcesTagsForResource.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"resource"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesTagsForResource`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getAllResourcesTagsForVo(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getAllResourcesTagsForVo.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesTagsForVo`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getAllResourcesWhereUserIsAdmin(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter user was null or undefined when calling getAllResourcesWhereUserIsAdmin.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/all`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getAllowedMembers(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAllowedMembers.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"resource"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedMembers`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getAllowedResources(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter member was null or undefined when calling getAllowedResources.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedResources`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getAllowedUsersOfResource(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAllowedUsersOfResource.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"resource"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedUsers`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getAssignedGroups(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAssignedGroups.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"member"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedGroups`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getAssignedMembers(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAssignedMembers.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"resource"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedMembers`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getAssignedMembersWithStatus(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAssignedMembersWithStatus.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"resource"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedMembersWithStatus`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getAssignedResourcesWithGroup(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter group was null or undefined when calling getAssignedResourcesWithGroup.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResources/g`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getAssignedResourcesWithMember(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter member was null or undefined when calling getAssignedResourcesWithMember.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResources/m`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getAssignedResourcesWithStatus(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter member was null or undefined when calling getAssignedResourcesWithStatus.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResourcesWithStatus`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getAssignedRichMembers(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAssignedRichMembers.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"resource"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichMembers`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getAssignedRichResourcesWithGroup(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter group was null or undefined when calling getAssignedRichResourcesWithGroup.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/g`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getAssignedRichResourcesWithMember(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMember.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/m`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getAssignedRichResourcesWithMemberService(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMemberService.");if(null==s)throw new Error("Required parameter service was null or undefined when calling getAssignedRichResourcesWithMemberService.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),null!=s&&(i=this.addToHttpParams(i,s,"service"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/s-m`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getAssignedServicesToResource(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAssignedServicesToResource.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"resource"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedServices`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getBansForMember(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter member was null or undefined when calling getBansForMember.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBansForMember`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getBansForResource(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getBansForResource.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"resource"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBansForResource`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getEnrichedBansForResource(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getEnrichedBansForResource.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),s&&s.forEach(y=>{i=this.addToHttpParams(i,y,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedBansForResource`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getEnrichedBansForUser(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling getEnrichedBansForUser.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),s&&s.forEach(y=>{i=this.addToHttpParams(i,y,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedBansForUser`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getEnrichedResourceById(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter id was null or undefined when calling getEnrichedResourceById.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"id")),s&&s.forEach(y=>{i=this.addToHttpParams(i,y,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourceById`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getEnrichedResourcesForFacility(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getEnrichedResourcesForFacility.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),s&&s.forEach(y=>{i=this.addToHttpParams(i,y,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourcesForFacility`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getEnrichedResourcesForVo(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getEnrichedResourcesForVo.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),s&&s.forEach(y=>{i=this.addToHttpParams(i,y,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourcesForVo`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getFacility(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getFacility.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"resource"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getFacility`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getGroupAssignments(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getGroupAssignments.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),s&&s.forEach(y=>{i=this.addToHttpParams(i,y,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getGroupAssignments`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getMailingServiceRichResourcesWithMember(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMailingServiceRichResourcesWithMember.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getMailingServiceRichResourcesWithMember`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getResourceAssignments(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling getResourceAssignments.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),s&&s.forEach(y=>{i=this.addToHttpParams(i,y,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceAssignments`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getResourceBan(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling getResourceBan.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling getResourceBan.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),null!=s&&(i=this.addToHttpParams(i,s,"resource"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBan`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getResourceBanById(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter banId was null or undefined when calling getResourceBanById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"banId"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBanById`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getResourceById(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter id was null or undefined when calling getResourceById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceById`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getResourceByName(r,s,_,c="body",a=!1,i){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getResourceByName.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling getResourceByName.");if(null==_)throw new Error("Required parameter name was null or undefined when calling getResourceByName.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"vo")),null!=s&&(t=this.addToHttpParams(t,s,"facility")),null!=_&&(t=this.addToHttpParams(t,_,"name"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let l=i&&i.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(n=n.set("Accept",l));let d=i&&i.context;void 0===d&&(d=new e.qT);let y="json";return l&&(y=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceByName`,{context:d,params:t,responseType:y,withCredentials:this.configuration.withCredentials,headers:n,observe:c,reportProgress:a})}getResources(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getResources.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResources`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getResourcesByIds(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getResourcesByIds.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{a=this.addToHttpParams(a,d,"ids[]")});let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesByIds`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getResourcesCountForAll(r="body",s=!1,_){let a,c=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(c=c.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(c=c.set("Authorization","Bearer "+a));let i=_&&_.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let t=_&&_.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesCount/all`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:s})}getResourcesCountForVo(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getResourcesCountForVo.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesCount/vo`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getResourcesFromVoWhereUserIsAdmin(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getResourcesFromVoWhereUserIsAdmin.");if(null==s)throw new Error("Required parameter user was null or undefined when calling getResourcesFromVoWhereUserIsAdmin.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=s&&(i=this.addToHttpParams(i,s,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/fromVo`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getResourcesWhereGroupIsAdmin(r,s,_,c="body",a=!1,i){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getResourcesWhereGroupIsAdmin.");if(null==s)throw new Error("Required parameter vo was null or undefined when calling getResourcesWhereGroupIsAdmin.");if(null==_)throw new Error("Required parameter group was null or undefined when calling getResourcesWhereGroupIsAdmin.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"facility")),null!=s&&(t=this.addToHttpParams(t,s,"vo")),null!=_&&(t=this.addToHttpParams(t,_,"group"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let l=i&&i.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(n=n.set("Accept",l));let d=i&&i.context;void 0===d&&(d=new e.qT);let y="json";return l&&(y=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/group`,{context:d,params:t,responseType:y,withCredentials:this.configuration.withCredentials,headers:n,observe:c,reportProgress:a})}getResourcesWhereUserIsAdmin(r,s,_,c="body",a=!1,i){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getResourcesWhereUserIsAdmin.");if(null==s)throw new Error("Required parameter vo was null or undefined when calling getResourcesWhereUserIsAdmin.");if(null==_)throw new Error("Required parameter user was null or undefined when calling getResourcesWhereUserIsAdmin.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"facility")),null!=s&&(t=this.addToHttpParams(t,s,"vo")),null!=_&&(t=this.addToHttpParams(t,_,"user"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let l=i&&i.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(n=n.set("Accept",l));let d=i&&i.context;void 0===d&&(d=new e.qT);let y="json";return l&&(y=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin`,{context:d,params:t,responseType:y,withCredentials:this.configuration.withCredentials,headers:n,observe:c,reportProgress:a})}getRichAdmins(r,s,_,c,a="body",i=!1,t){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getRichAdmins.");if(null==s)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdmins.");if(null==_)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdmins.");if(null==c)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdmins.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),s&&s.forEach(Ie=>{n=this.addToHttpParams(n,Ie,"specificAttributes")}),null!=_&&(n=this.addToHttpParams(n,_,"allUserAttributes")),null!=c&&(n=this.addToHttpParams(n,c,"onlyDirectAdmins"));let l,o=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(o=o.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(o=o.set("Authorization","Bearer "+l));let d=t&&t.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(o=o.set("Accept",d));let y=t&&t.context;void 0===y&&(y=new e.qT);let k="json";return d&&(k=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichAdmins`,{context:y,params:n,responseType:k,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}getRichResourceById(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter id was null or undefined when calling getRichResourceById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResourceById`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getRichResources(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getRichResources.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResources`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getRichResourcesByIds(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getRichResourcesByIds.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{a=this.addToHttpParams(a,d,"ids[]")});let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResourcesByIds`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getVo(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getVo.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"resource"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getVo`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}removeAllResourceTagsFromResource(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeAllResourceTagsFromResource.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"resource"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAllResourcesTagFromResource`,null,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}removeBanByMemberAndResource(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeBanByMemberAndResource.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling removeBanByMemberAndResource.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),null!=s&&(i=this.addToHttpParams(i,s,"resource"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeBan/member-resource-id`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}removeGroupAdminResource(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeGroupAdminResource.");if(null==s)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeGroupAdminResource.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"authorizedGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAdmin/r-g`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}removeGroupFromResource(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResource.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling removeGroupFromResource.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),null!=s&&(i=this.addToHttpParams(i,s,"resource"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupFromResource`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}removeGroupFromResources(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResources.");if(null==s)throw new Error("Required parameter resources was null or undefined when calling removeGroupFromResources.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),s&&s.forEach(y=>{i=this.addToHttpParams(i,y,"resources[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupFromResources`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}removeGroupsFromResource(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter groups was null or undefined when calling removeGroupsFromResource.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling removeGroupsFromResource.");let i=new e.LE({encoder:this.encoder});r&&r.forEach(y=>{i=this.addToHttpParams(i,y,"groups[]")}),null!=s&&(i=this.addToHttpParams(i,s,"resource"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupsFromResource`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}removeResourceBanById(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter banId was null or undefined when calling removeResourceBanById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"banId"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeBan/id`,null,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}removeResourceSelfServiceGroup(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceGroup.");if(null==s)throw new Error("Required parameter group was null or undefined when calling removeResourceSelfServiceGroup.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"group"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeResourceSelfServiceGroup`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}removeResourceSelfServiceUser(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceUser.");if(null==s)throw new Error("Required parameter user was null or undefined when calling removeResourceSelfServiceUser.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeResourceSelfServiceUser`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}removeResourceTagFromResource(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputRemoveResourceTagFromResource was null or undefined when calling removeResourceTagFromResource.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/removeResourceTagFromResource`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}removeService(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeService.");if(null==s)throw new Error("Required parameter service was null or undefined when calling removeService.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"service"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeService`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}removeServices(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeServices.");if(null==s)throw new Error("Required parameter services was null or undefined when calling removeServices.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),s&&s.forEach(y=>{i=this.addToHttpParams(i,y,"services[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeServices`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}removeServicesPackage(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeServicesPackage.");if(null==s)throw new Error("Required parameter servicesPackage was null or undefined when calling removeServicesPackage.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"servicesPackage"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeServicesPackage`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}removeUserAdminResource(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeUserAdminResource.");if(null==s)throw new Error("Required parameter user was null or undefined when calling removeUserAdminResource.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAdmin/r-u`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}setResourceBan(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputSetBan was null or undefined when calling setResourceBan.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/setBan`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}unallowGroupsFromResources(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter groups was null or undefined when calling unallowGroupsFromResources.");if(null==s)throw new Error("Required parameter resources was null or undefined when calling unallowGroupsFromResources.");let i=new e.LE({encoder:this.encoder});r&&r.forEach(y=>{i=this.addToHttpParams(i,y,"groups[]")}),s&&s.forEach(y=>{i=this.addToHttpParams(i,y,"resources[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/unallowGroupsFromResources`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}updateResource(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputUpdateResource was null or undefined when calling updateResource.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateResource`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}updateResourceBan(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputUpdateBan was null or undefined when calling updateResourceBan.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateBan`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}updateResourceTag(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputUpdateResourceTag was null or undefined when calling updateResourceTag.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateResourceTag`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}}return oe.\u0275fac=function(r){return new(r||oe)(A.LFG(e.eN),A.LFG(w,8),A.LFG(g,8))},oe.\u0275prov=A.Yz7({token:oe,factory:oe.\u0275fac,providedIn:"root"}),oe})(),L=(()=>{class oe{constructor(r,s,_){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new g,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof s&&(s=this.basePath),this.configuration.basePath=s),this.encoder=this.configuration.encoder||new m}addToHttpParams(r,s,_){return"object"!=typeof s||s instanceof Date?this.addToHttpParamsRecursive(r,s,_):this.addToHttpParamsRecursive(r,s)}addToHttpParamsRecursive(r,s,_){if(null==s)return r;if("object"==typeof s)if(Array.isArray(s))s.forEach(c=>r=this.addToHttpParamsRecursive(r,c,_));else if(s instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,s.toISOString().substr(0,10))}else Object.keys(s).forEach(c=>r=this.addToHttpParamsRecursive(r,s[c],null!=_?`${_}.${c}`:c));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,s)}return r}getAttributesMatchResources(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputGetMatchResources was null or undefined when calling getAttributesMatchResources.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/searcher/getResources/attributes-match`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}getAttributesResources(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputGetResources was null or undefined when calling getAttributesResources.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/searcher/getResources/attributes`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}getFacilities(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputGetFacilities was null or undefined when calling getFacilities.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/searcher/getFacilities`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}getMembersByUserAttributes(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputGetMembersByUserAttributes was null or undefined when calling getMembersByUserAttributes.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/searcher/getMembersByUserAttributes`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}getUsersSearcher(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputGetUsers was null or undefined when calling getUsersSearcher.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/searcher/getUsers`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}}return oe.\u0275fac=function(r){return new(r||oe)(A.LFG(e.eN),A.LFG(w,8),A.LFG(g,8))},oe.\u0275prov=A.Yz7({token:oe,factory:oe.\u0275fac,providedIn:"root"}),oe})(),V=(()=>{class oe{constructor(r,s,_){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new g,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof s&&(s=this.basePath),this.configuration.basePath=s),this.encoder=this.configuration.encoder||new m}addToHttpParams(r,s,_){return"object"!=typeof s||s instanceof Date?this.addToHttpParamsRecursive(r,s,_):this.addToHttpParamsRecursive(r,s)}addToHttpParamsRecursive(r,s,_){if(null==s)return r;if("object"==typeof s)if(Array.isArray(s))s.forEach(c=>r=this.addToHttpParamsRecursive(r,c,_));else if(s instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,s.toISOString().substr(0,10))}else Object.keys(s).forEach(c=>r=this.addToHttpParamsRecursive(r,s[c],null!=_?`${_}.${c}`:c));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,s)}return r}addDestination(r,s,_,c,a,i="body",t=!1,n){if(null==r)throw new Error("Required parameter service was null or undefined when calling addDestination.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling addDestination.");if(null==_)throw new Error("Required parameter destination was null or undefined when calling addDestination.");if(null==c)throw new Error("Required parameter type was null or undefined when calling addDestination.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"service")),null!=s&&(o=this.addToHttpParams(o,s,"facility")),null!=_&&(o=this.addToHttpParams(o,_,"destination")),null!=c&&(o=this.addToHttpParams(o,c,"type")),null!=a&&(o=this.addToHttpParams(o,a,"propagationType"));let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let y=n&&n.httpHeaderAccept;void 0===y&&(y=this.configuration.selectHeaderAccept(["application/json"])),void 0!==y&&(l=l.set("Accept",y));let k=n&&n.context;void 0===k&&(k=new e.qT);let Ie="json";return y&&(Ie=y.startsWith("text")?"text":this.configuration.isJsonMime(y)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestination`,null,{context:k,params:o,responseType:Ie,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:t})}addDestinationToMultipleServices(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputAddDestinationToMultipleServices was null or undefined when calling addDestinationToMultipleServices.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/addDestination`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}addDestinationsDefinedByHostsOnFacilityWithFacility(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithFacility.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestinationsDefinedByHostsOnFacility/f`,null,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}addDestinationsDefinedByHostsOnFacilityWithListOfServiceAndFacility(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputAddDestinationsDefinedByHostsOnFacility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithListOfServiceAndFacility.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/addDestinationsDefinedByHostsOnFacility/lists-f`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=s&&(i=this.addToHttpParams(i,s,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestinationsDefinedByHostsOnFacility/s-f`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}addDestinationsForAllServicesOnFacility(r,s,_,c,a="body",i=!1,t){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addDestinationsForAllServicesOnFacility.");if(null==s)throw new Error("Required parameter destination was null or undefined when calling addDestinationsForAllServicesOnFacility.");if(null==_)throw new Error("Required parameter type was null or undefined when calling addDestinationsForAllServicesOnFacility.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=s&&(n=this.addToHttpParams(n,s,"destination")),null!=_&&(n=this.addToHttpParams(n,_,"type")),null!=c&&(n=this.addToHttpParams(n,c,"propagationType"));let l,o=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(o=o.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(o=o.set("Authorization","Bearer "+l));let d=t&&t.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(o=o.set("Accept",d));let y=t&&t.context;void 0===y&&(y=new e.qT);let k="json";return d&&(k=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestinationsForAllServicesOnFacility`,null,{context:y,params:n,responseType:k,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}addRequiredAttribute(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling addRequiredAttribute.");if(null==s)throw new Error("Required parameter attributeId was null or undefined when calling addRequiredAttribute.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=s&&(i=this.addToHttpParams(i,s,"attributeId"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addRequiredAttribute`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}addRequiredAttributes(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling addRequiredAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling addRequiredAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),s&&s.forEach(y=>{i=this.addToHttpParams(i,y,"attributes[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addRequiredAttributes`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}addServiceToServicesPackage(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter servicesPackage was null or undefined when calling addServiceToServicesPackage.");if(null==s)throw new Error("Required parameter service was null or undefined when calling addServiceToServicesPackage.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"servicesPackage")),null!=s&&(i=this.addToHttpParams(i,s,"service"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addServiceToServicesPackage`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}blockAllServicesOnDestinationById(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter destination was null or undefined when calling blockAllServicesOnDestinationById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"destination"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockAllServicesOnDestination/d`,null,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}blockAllServicesOnDestinationByName(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter destination was null or undefined when calling blockAllServicesOnDestinationByName.");if(null==s)throw new Error("Required parameter destinationType was null or undefined when calling blockAllServicesOnDestinationByName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"destination")),null!=s&&(i=this.addToHttpParams(i,s,"destinationType"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockAllServicesOnDestination/dname-dtype`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}blockAllServicesOnFacility(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter facility was null or undefined when calling blockAllServicesOnFacility.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockAllServicesOnFacility`,null,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}blockServiceOnDestination(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling blockServiceOnDestination.");if(null==s)throw new Error("Required parameter destination was null or undefined when calling blockServiceOnDestination.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=s&&(i=this.addToHttpParams(i,s,"destination"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockServiceOnDestination/s-d`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}blockServiceOnDestinationWithNameAndType(r,s,_,c="body",a=!1,i){if(null==r)throw new Error("Required parameter service was null or undefined when calling blockServiceOnDestinationWithNameAndType.");if(null==s)throw new Error("Required parameter destination was null or undefined when calling blockServiceOnDestinationWithNameAndType.");if(null==_)throw new Error("Required parameter destinationType was null or undefined when calling blockServiceOnDestinationWithNameAndType.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"service")),null!=s&&(t=this.addToHttpParams(t,s,"destination")),null!=_&&(t=this.addToHttpParams(t,_,"destinationType"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let l=i&&i.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(n=n.set("Accept",l));let d=i&&i.context;void 0===d&&(d=new e.qT);let y="json";return l&&(y=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockServiceOnDestination/s-dname-dtype`,null,{context:d,params:t,responseType:y,withCredentials:this.configuration.withCredentials,headers:n,observe:c,reportProgress:a})}blockServiceOnFacility(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling blockServiceOnFacility.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling blockServiceOnFacility.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=s&&(i=this.addToHttpParams(i,s,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockServiceOnFacility`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}createService(r,s,_,c="body",a=!1,i){if(null==r)throw new Error("Required parameter name was null or undefined when calling createService.");if(null==s)throw new Error("Required parameter description was null or undefined when calling createService.");if(null==_)throw new Error("Required parameter script was null or undefined when calling createService.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"name")),null!=s&&(t=this.addToHttpParams(t,s,"description")),null!=_&&(t=this.addToHttpParams(t,_,"script"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let l=i&&i.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(n=n.set("Accept",l));let d=i&&i.context;void 0===d&&(d=new e.qT);let y="json";return l&&(y=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/createService`,null,{context:d,params:t,responseType:y,withCredentials:this.configuration.withCredentials,headers:n,observe:c,reportProgress:a})}createServiceWithService(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputCreateService was null or undefined when calling createServiceWithService.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/createService`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}createServicesPackage(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputCreateServicesPackage was null or undefined when calling createServicesPackage.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/createServicesPackage`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}createServicesPackageByNameAndDescription(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter name was null or undefined when calling createServicesPackageByNameAndDescription.");if(null==s)throw new Error("Required parameter description was null or undefined when calling createServicesPackageByNameAndDescription.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"name")),null!=s&&(i=this.addToHttpParams(i,s,"description"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/createServicesPackage`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}deleteService(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling deleteService.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=s&&(i=this.addToHttpParams(i,s,"force"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/deleteService`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}deleteServicesPackage(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter servicesPackage was null or undefined when calling deleteServicesPackage.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"servicesPackage"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/deleteServicesPackage`,null,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}forceServicePropagation(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling forceServicePropagation.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=s&&(i=this.addToHttpParams(i,s,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/forceServicePropagation`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getAllDestinations(r="body",s=!1,_){let a,c=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(c=c.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(c=c.set("Authorization","Bearer "+a));let i=_&&_.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let t=_&&_.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDestinations/all`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:s})}getAllRichDestinationsForFacility(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAllRichDestinationsForFacility.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getAllRichDestinations/f`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getAllRichDestinationsForService(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter service was null or undefined when calling getAllRichDestinationsForService.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"service"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getAllRichDestinations/s`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getAssignedResources(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter service was null or undefined when calling getAssignedResources.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"service"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getAssignedResourcesForService`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getAssignedServices(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedServices.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getAssignedServices/f`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getAssignedServicesVo(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedServicesVo.");if(null==s)throw new Error("Required parameter vo was null or undefined when calling getAssignedServicesVo.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=s&&(i=this.addToHttpParams(i,s,"vo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getAssignedServices/f-v`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getDataWithGroups(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling getDataWithGroups.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling getDataWithGroups.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=s&&(i=this.addToHttpParams(i,s,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDataWithGroups`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getDataWithVos(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling getDataWithVos.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling getDataWithVos.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=s&&(i=this.addToHttpParams(i,s,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDataWithVos`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getDestinationById(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter id was null or undefined when calling getDestinationById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDestinationById`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getDestinations(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling getDestinations.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling getDestinations.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=s&&(i=this.addToHttpParams(i,s,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDestinations/s-f`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getDestinationsCount(r="body",s=!1,_){let a,c=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(c=c.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(c=c.set("Authorization","Bearer "+a));let i=_&&_.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let t=_&&_.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDestinationsCount`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:s})}getFacilitiesDestinations(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getFacilitiesDestinations.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getFacilitiesDestinations`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getFacilityAssignedServicesForGUI(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityAssignedServicesForGUI.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getFacilityAssignedServicesForGUI`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getFlatData(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling getFlatData.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling getFlatData.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=s&&(i=this.addToHttpParams(i,s,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getFlatData`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getHashedDataWithGroups(r,s,_,c="body",a=!1,i){if(null==r)throw new Error("Required parameter service was null or undefined when calling getHashedDataWithGroups.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling getHashedDataWithGroups.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"service")),null!=s&&(t=this.addToHttpParams(t,s,"facility")),null!=_&&(t=this.addToHttpParams(t,_,"consentEval"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let l=i&&i.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(n=n.set("Accept",l));let d=i&&i.context;void 0===d&&(d=new e.qT);let y="json";return l&&(y=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getHashedDataWithGroups`,{context:d,params:t,responseType:y,withCredentials:this.configuration.withCredentials,headers:n,observe:c,reportProgress:a})}getHashedHierarchicalData(r,s,_,c="body",a=!1,i){if(null==r)throw new Error("Required parameter service was null or undefined when calling getHashedHierarchicalData.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling getHashedHierarchicalData.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"service")),null!=s&&(t=this.addToHttpParams(t,s,"facility")),null!=_&&(t=this.addToHttpParams(t,_,"consentEval"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let l=i&&i.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(n=n.set("Accept",l));let d=i&&i.context;void 0===d&&(d=new e.qT);let y="json";return l&&(y=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getHashedHierarchicalData`,{context:d,params:t,responseType:y,withCredentials:this.configuration.withCredentials,headers:n,observe:c,reportProgress:a})}getHierarchicalData(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling getHierarchicalData.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling getHierarchicalData.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=s&&(i=this.addToHttpParams(i,s,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getHierarchicalData`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getRichDestinations(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRichDestinations.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling getRichDestinations.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=s&&(i=this.addToHttpParams(i,s,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getRichDestinations`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getServiceById(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter id was null or undefined when calling getServiceById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServiceById`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getServiceByName(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter name was null or undefined when calling getServiceByName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"name"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServiceByName`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getServices(r="body",s=!1,_){let a,c=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(c=c.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(c=c.set("Authorization","Bearer "+a));let i=_&&_.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let t=_&&_.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServices`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:s})}getServicesBlockedOnDestination(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter destination was null or undefined when calling getServicesBlockedOnDestination.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"destination"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesBlockedOnDestination`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getServicesBlockedOnFacility(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getServicesBlockedOnFacility.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesBlockedOnFacility`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getServicesByAttributeDefinition(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter attributeDefinition was null or undefined when calling getServicesByAttributeDefinition.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"attributeDefinition"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesByAttributeDefinition`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getServicesFromServicesPackage(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter servicesPackage was null or undefined when calling getServicesFromServicesPackage.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"servicesPackage"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesFromServicesPackage`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getServicesPackageById(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter servicesPackage was null or undefined when calling getServicesPackageById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"servicesPackage"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesPackageById`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getServicesPackageByName(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter name was null or undefined when calling getServicesPackageByName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"name"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesPackageByName`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getServicesPackages(r="body",s=!1,_){let a,c=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(c=c.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(c=c.set("Authorization","Bearer "+a));let i=_&&_.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let t=_&&_.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesPackages`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:s})}isServiceBlockedOnDestination(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling isServiceBlockedOnDestination.");if(null==s)throw new Error("Required parameter destination was null or undefined when calling isServiceBlockedOnDestination.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=s&&(i=this.addToHttpParams(i,s,"destination"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/isServiceBlockedOnDestination`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}isServiceBlockedOnFacility(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling isServiceBlockedOnFacility.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling isServiceBlockedOnFacility.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=s&&(i=this.addToHttpParams(i,s,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/isServiceBlockedOnFacility`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}planServicePropagation(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling planServicePropagation.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=s&&(i=this.addToHttpParams(i,s,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/planServicePropagation`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}removeAllDestinations(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling removeAllDestinations.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling removeAllDestinations.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=s&&(i=this.addToHttpParams(i,s,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeAllDestinations`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}removeAllRequiredAttributes(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter service was null or undefined when calling removeAllRequiredAttributes.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"service"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeAllRequiredAttributes`,null,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}removeDestination(r,s,_,c,a="body",i=!1,t){if(null==r)throw new Error("Required parameter service was null or undefined when calling removeDestination.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling removeDestination.");if(null==_)throw new Error("Required parameter destination was null or undefined when calling removeDestination.");if(null==c)throw new Error("Required parameter type was null or undefined when calling removeDestination.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=s&&(n=this.addToHttpParams(n,s,"facility")),null!=_&&(n=this.addToHttpParams(n,_,"destination")),null!=c&&(n=this.addToHttpParams(n,c,"type"));let l,o=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(o=o.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(o=o.set("Authorization","Bearer "+l));let d=t&&t.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(o=o.set("Accept",d));let y=t&&t.context;void 0===y&&(y=new e.qT);let k="json";return d&&(k=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeDestination`,null,{context:y,params:n,responseType:k,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}removeRequiredAttribute(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling removeRequiredAttribute.");if(null==s)throw new Error("Required parameter attributeId was null or undefined when calling removeRequiredAttribute.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=s&&(i=this.addToHttpParams(i,s,"attributeId"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeRequiredAttribute`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}removeRequiredAttributes(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling removeRequiredAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeRequiredAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),s&&s.forEach(y=>{i=this.addToHttpParams(i,y,"attributes[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeRequiredAttributes`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}removeServiceFromServicesPackage(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter servicesPackage was null or undefined when calling removeServiceFromServicesPackage.");if(null==s)throw new Error("Required parameter service was null or undefined when calling removeServiceFromServicesPackage.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"servicesPackage")),null!=s&&(i=this.addToHttpParams(i,s,"service"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeServiceFromServicesPackage`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}unblockAllServicesOnDestinationById(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter destination was null or undefined when calling unblockAllServicesOnDestinationById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"destination"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockAllServicesOnDestination/d`,null,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}unblockAllServicesOnDestinationByName(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter destination was null or undefined when calling unblockAllServicesOnDestinationByName.");if(null==s)throw new Error("Required parameter destinationType was null or undefined when calling unblockAllServicesOnDestinationByName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"destination")),null!=s&&(i=this.addToHttpParams(i,s,"destinationType"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockAllServicesOnDestination/dname-dtype`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}unblockAllServicesOnFacility(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter facility was null or undefined when calling unblockAllServicesOnFacility.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockAllServicesOnFacility`,null,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}unblockServiceOnDestinationById(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnDestinationById.");if(null==s)throw new Error("Required parameter destination was null or undefined when calling unblockServiceOnDestinationById.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=s&&(i=this.addToHttpParams(i,s,"destination"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockServiceOnDestination/s-d`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}unblockServiceOnDestinationByName(r,s,_,c="body",a=!1,i){if(null==r)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnDestinationByName.");if(null==s)throw new Error("Required parameter destination was null or undefined when calling unblockServiceOnDestinationByName.");if(null==_)throw new Error("Required parameter destinationType was null or undefined when calling unblockServiceOnDestinationByName.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"service")),null!=s&&(t=this.addToHttpParams(t,s,"destination")),null!=_&&(t=this.addToHttpParams(t,_,"destinationType"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let l=i&&i.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(n=n.set("Accept",l));let d=i&&i.context;void 0===d&&(d=new e.qT);let y="json";return l&&(y=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockServiceOnDestination/s-dname-dtype`,null,{context:d,params:t,responseType:y,withCredentials:this.configuration.withCredentials,headers:n,observe:c,reportProgress:a})}unblockServiceOnFacility(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnFacility.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling unblockServiceOnFacility.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=s&&(i=this.addToHttpParams(i,s,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockServiceOnFacility`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}updateService(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputUpdateService was null or undefined when calling updateService.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/updateService`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}updateServicesPackage(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputUpdateServicesPackage was null or undefined when calling updateServicesPackage.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/updateServicesPackage`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}}return oe.\u0275fac=function(r){return new(r||oe)(A.LFG(e.eN),A.LFG(w,8),A.LFG(g,8))},oe.\u0275prov=A.Yz7({token:oe,factory:oe.\u0275fac,providedIn:"root"}),oe})(),Q=(()=>{class oe{constructor(r,s,_){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new g,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof s&&(s=this.basePath),this.configuration.basePath=s),this.encoder=this.configuration.encoder||new m}addToHttpParams(r,s,_){return"object"!=typeof s||s instanceof Date?this.addToHttpParamsRecursive(r,s,_):this.addToHttpParamsRecursive(r,s)}addToHttpParamsRecursive(r,s,_){if(null==s)return r;if("object"==typeof s)if(Array.isArray(s))s.forEach(c=>r=this.addToHttpParamsRecursive(r,c,_));else if(s instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,s.toISOString().substr(0,10))}else Object.keys(s).forEach(c=>r=this.addToHttpParamsRecursive(r,s[c],null!=_?`${_}.${c}`:c));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,s)}return r}countTasks(r="body",s=!1,_){let a,c=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(c=c.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(c=c.set("Authorization","Bearer "+a));let i=_&&_.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let t=_&&_.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/countTasks`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:s})}deleteTask(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter TaskIdObject was null or undefined when calling deleteTask.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/deleteTask`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}deleteTaskResultById(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter TaskResultIdObject was null or undefined when calling deleteTaskResultById.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/deleteTaskResultById`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}deleteTaskResultsIds(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter TaskAndDestinationIdObject was null or undefined when calling deleteTaskResultsIds.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/deleteTaskResults/id`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}deleteTaskResultsNames(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter TaskAndDestinationNameObject was null or undefined when calling deleteTaskResultsNames.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/deleteTaskResults/name`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}getAllFacilitiesStates(r,s="body",_=!1,c){let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getAllFacilitiesStates`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getAllResourcesState(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter voId was null or undefined when calling getAllResourcesState.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"voId"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getAllResourcesState`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getFacilityServicesState(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityServicesState.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getFacilityServicesState`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getFacilityState(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityState.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getFacilityState`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getTask(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling getTask.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling getTask.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=s&&(i=this.addToHttpParams(i,s,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTask`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getTaskById(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter id was null or undefined when calling getTaskById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskById`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getTaskResultById(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter taskResult was null or undefined when calling getTaskResultById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"taskResult"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultById`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getTaskResults(r="body",s=!1,_){let a,c=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(c=c.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(c=c.set("Authorization","Bearer "+a));let i=_&&_.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let t=_&&_.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResults`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:s})}getTaskResultsByTask(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter task was null or undefined when calling getTaskResultsByTask.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"task"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsByTask`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getTaskResultsForDestinations(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter destinations was null or undefined when calling getTaskResultsForDestinations.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{a=this.addToHttpParams(a,d,"destinations[]")});let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsForDestinations`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getTaskResultsForGUIByTask(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTask.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"task"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsForGUIByTask`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getTaskResultsForGUIByTaskAndDestination(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTaskAndDestination.");if(null==s)throw new Error("Required parameter destination was null or undefined when calling getTaskResultsForGUIByTaskAndDestination.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"task")),null!=s&&(i=this.addToHttpParams(i,s,"destination"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsForGUIByTaskAndDestination`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getTaskResultsForGUIByTaskOnlyNewest(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTaskOnlyNewest.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"task"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsForGUIByTaskOnlyNewest`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}isThereSuchTask(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter service was null or undefined when calling isThereSuchTask.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling isThereSuchTask.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=s&&(i=this.addToHttpParams(i,s,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/isThereSuchTask`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}listAllTasks(r="body",s=!1,_){let a,c=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(c=c.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(c=c.set("Authorization","Bearer "+a));let i=_&&_.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let t=_&&_.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/listAllTasks`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:s})}listAllTasksForFacility(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter facility was null or undefined when calling listAllTasksForFacility.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/listAllTasksForFacility`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}suspendTasksPropagation(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter suspend was null or undefined when calling suspendTasksPropagation.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"suspend"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/suspendTasksPropagation`,null,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}}return oe.\u0275fac=function(r){return new(r||oe)(A.LFG(e.eN),A.LFG(w,8),A.LFG(g,8))},oe.\u0275prov=A.Yz7({token:oe,factory:oe.\u0275fac,providedIn:"root"}),oe})(),ae=(()=>{class oe{constructor(r,s,_){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new g,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof s&&(s=this.basePath),this.configuration.basePath=s),this.encoder=this.configuration.encoder||new m}addToHttpParams(r,s,_){return"object"!=typeof s||s instanceof Date?this.addToHttpParamsRecursive(r,s,_):this.addToHttpParamsRecursive(r,s)}addToHttpParamsRecursive(r,s,_){if(null==s)return r;if("object"==typeof s)if(Array.isArray(s))s.forEach(c=>r=this.addToHttpParamsRecursive(r,c,_));else if(s instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,s.toISOString().substr(0,10))}else Object.keys(s).forEach(c=>r=this.addToHttpParamsRecursive(r,s[c],null!=_?`${_}.${c}`:c));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,s)}return r}addSpecificUserOwner(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling addSpecificUserOwner.");if(null==s)throw new Error("Required parameter specificUser was null or undefined when calling addSpecificUserOwner.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),null!=s&&(i=this.addToHttpParams(i,s,"specificUser"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/addSpecificUserOwner`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}addUserExtSource(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter AddUserExtSourceInput was null or undefined when calling addUserExtSource.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/addUserExtSource`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}anonymizeUser(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling anonymizeUser.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),null!=s&&(i=this.addToHttpParams(i,s,"force"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/anonymizeUser`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}changeNonAuthzPasswordByToken(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputChangeNonAuthzPasswordByToken was null or undefined when calling changeNonAuthzPasswordByToken.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/changeNonAuthzPassword/token`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}changePasswordForLogin(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputChangePasswordForLogin was null or undefined when calling changePasswordForLogin.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/changePassword/login`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}changePasswordForUser(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputChangePasswordForUser was null or undefined when calling changePasswordForUser.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/changePassword/user`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}checkPasswordResetRequestByTokenIsValid(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter token was null or undefined when calling checkPasswordResetRequestByTokenIsValid.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"token"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/checkPasswordResetRequestIsValid/token`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}checkPasswordStrength(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputCheckPasswordStrength was null or undefined when calling checkPasswordStrength.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/checkPasswordStrength`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}createAlternativePassword(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputCreateAlternativePassword was null or undefined when calling createAlternativePassword.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/createAlternativePassword`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}createServiceUser(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputCreateServiceUser was null or undefined when calling createServiceUser.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/createServiceUser`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}deleteAlternativePassword(r,s,_,c="body",a=!1,i){if(null==r)throw new Error("Required parameter user was null or undefined when calling deleteAlternativePassword.");if(null==s)throw new Error("Required parameter loginNamespace was null or undefined when calling deleteAlternativePassword.");if(null==_)throw new Error("Required parameter passwordId was null or undefined when calling deleteAlternativePassword.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"user")),null!=s&&(t=this.addToHttpParams(t,s,"loginNamespace")),null!=_&&(t=this.addToHttpParams(t,_,"passwordId"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let l=i&&i.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(n=n.set("Accept",l));let d=i&&i.context;void 0===d&&(d=new e.qT);let y="json";return l&&(y=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteAlternativePassword`,null,{context:d,params:t,responseType:y,withCredentials:this.configuration.withCredentials,headers:n,observe:c,reportProgress:a})}deletePasswordForLogin(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter login was null or undefined when calling deletePasswordForLogin.");if(null==s)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForLogin.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"login")),null!=s&&(i=this.addToHttpParams(i,s,"namespace"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/login`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}deletePasswordForUser(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling deletePasswordForUser.");if(null==s)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForUser.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),null!=s&&(i=this.addToHttpParams(i,s,"namespace"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/user`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}deleteUser(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling deleteUser.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),null!=s&&(i=this.addToHttpParams(i,s,"force"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteUser`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}findRichUsers(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter searchString was null or undefined when calling findRichUsers.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"searchString"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsers`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}findRichUsersWithAttributes(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter searchString was null or undefined when calling findRichUsersWithAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"searchString")),s&&s.forEach(y=>{i=this.addToHttpParams(i,y,"attrsNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsersWithAttributes`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}findUsers(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter searchString was null or undefined when calling findUsers.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"searchString"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findUsers`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}generateAccountForName(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter namespace was null or undefined when calling generateAccountForName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"namespace")),null!=s&&(i=this.addToHttpParams(i,s,"name"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/generateAccount/name`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getAllRichUsersWithAttributes(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter includedSpecificUsers was null or undefined when calling getAllRichUsersWithAttributes.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"includedSpecificUsers"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAllRichUsersWithAttributes`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getAssignedRichResourcesForUser(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter user was null or undefined when calling getAssignedRichResourcesForUser.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAssignedRichResources`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getGroupsForFacilityWhereUserIsActive(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),null!=s&&(i=this.addToHttpParams(i,s,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/facility`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getGroupsForResourceWhereUserIsActive(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling getGroupsForResourceWhereUserIsActive.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling getGroupsForResourceWhereUserIsActive.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),null!=s&&(i=this.addToHttpParams(i,s,"resource"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/resource`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getGroupsInVoWhereUserIsAdmin(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");if(null==s)throw new Error("Required parameter vo was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),null!=s&&(i=this.addToHttpParams(i,s,"vo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u-v`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getGroupsWhereUserIsAdmin(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter user was null or undefined when calling getGroupsWhereUserIsAdmin.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getPendingPreferredEmailChanges(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter user was null or undefined when calling getPendingPreferredEmailChanges.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getPendingPreferredEmailChanges`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getRichUserExtSources(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter user was null or undefined when calling getRichUserExtSources.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserExtSources/u`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getRichUserWithAttributes(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter user was null or undefined when calling getRichUserWithAttributes.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserWithAttributes`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getRichUsersByIds(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getRichUsersByIds.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{a=this.addToHttpParams(a,d,"ids[]")});let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersByIds`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getRichUsersWithAttributesByIds(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getRichUsersWithAttributesByIds.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{a=this.addToHttpParams(a,d,"ids[]")});let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithAttributesByIds`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getRichUsersWithoutVoWithAttributes(r,s="body",_=!1,c){let a=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{a=this.addToHttpParams(a,d,"attrsNames[]")});let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithoutVoWithAttributes`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getSpecificUsersByUser(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter user was null or undefined when calling getSpecificUsersByUser.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSpecificUsersByUser`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getSponsorsForMember(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter member was null or undefined when calling getSponsorsForMember.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),s&&s.forEach(y=>{i=this.addToHttpParams(i,y,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/member`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getSponsorsForMemberByVoAndLogin(r,s,_,c,a="body",i=!1,t){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==s)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==_)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsForMemberByVoAndLogin.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=s&&(n=this.addToHttpParams(n,s,"extSourceName")),null!=_&&(n=this.addToHttpParams(n,_,"extLogin")),c&&c.forEach(Ie=>{n=this.addToHttpParams(n,Ie,"attrNames[]")});let l,o=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(o=o.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(o=o.set("Authorization","Bearer "+l));let d=t&&t.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(o=o.set("Accept",d));let y=t&&t.context;void 0===y&&(y=new e.qT);let k="json";return d&&(k=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/vo`,{context:y,params:n,responseType:k,withCredentials:this.configuration.withCredentials,headers:o,observe:a,reportProgress:i})}getUserByExtSourceNameAndExtLogin(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter extLogin was null or undefined when calling getUserByExtSourceNameAndExtLogin.");if(null==s)throw new Error("Required parameter extSourceName was null or undefined when calling getUserByExtSourceNameAndExtLogin.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"extLogin")),null!=s&&(i=this.addToHttpParams(i,s,"extSourceName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserByExtSourceNameAndExtLogin`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getUserById(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter id was null or undefined when calling getUserById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserById`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getUserExtSourceByExtLoginAndExtSourceName(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter extSourceName was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");if(null==s)throw new Error("Required parameter extSourceLogin was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"extSourceName")),null!=s&&(i=this.addToHttpParams(i,s,"extSourceLogin"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByExtLoginAndExtSourceName`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getUserExtSourceById(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"userExtSource"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceById`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getUserExtSourceByUniqueAttributeValueAndAttributeId(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");if(null==s)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"attributeId")),null!=s&&(i=this.addToHttpParams(i,s,"attributeValue"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/id`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getUserExtSourceByUniqueAttributeValueAndAttributeName(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");if(null==s)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"attributeName")),null!=s&&(i=this.addToHttpParams(i,s,"attributeValue"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/name`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getUserExtSources(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter user was null or undefined when calling getUserExtSources.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSources`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getUserExtSourcesByIds(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getUserExtSourcesByIds.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{a=this.addToHttpParams(a,d,"ids[]")});let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourcesByIds`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getUsers(r="body",s=!1,_){let a,c=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(c=c.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(c=c.set("Authorization","Bearer "+a));let i=_&&_.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let t=_&&_.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsers`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:s})}getUsersByIds(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getUsersByIds.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{a=this.addToHttpParams(a,d,"ids[]")});let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersByIds`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getUsersBySpecificUser(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter specificUser was null or undefined when calling getUsersBySpecificUser.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"specificUser"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersBySpecificUser`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getUsersPage(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputGetPaginatedUsers was null or undefined when calling getUsersPage.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/getUsersPage`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}getVosWhereUserIsAdmin(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsAdmin.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsAdmin`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getVosWhereUserIsMember(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsMember.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"user"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsMember`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}isLoginAvailable(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter loginNamespace was null or undefined when calling isLoginAvailable.");if(null==s)throw new Error("Required parameter login was null or undefined when calling isLoginAvailable.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"loginNamespace")),null!=s&&(i=this.addToHttpParams(i,s,"login"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/isLoginAvailable`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}loginExist(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling loginExist.");if(null==s)throw new Error("Required parameter namespace was null or undefined when calling loginExist.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),null!=s&&(i=this.addToHttpParams(i,s,"namespace"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/loginExist`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}removeSpecificUserOwner(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling removeSpecificUserOwner.");if(null==s)throw new Error("Required parameter specificUser was null or undefined when calling removeSpecificUserOwner.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),null!=s&&(i=this.addToHttpParams(i,s,"specificUser"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeSpecificUserOwner`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}removeUserExtSource(r,s,_,c="body",a=!1,i){if(null==r)throw new Error("Required parameter user was null or undefined when calling removeUserExtSource.");if(null==s)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSource.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"user")),null!=s&&(t=this.addToHttpParams(t,s,"userExtSource")),null!=_&&(t=this.addToHttpParams(t,_,"force"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let l=i&&i.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(n=n.set("Accept",l));let d=i&&i.context;void 0===d&&(d=new e.qT);let y="json";return l&&(y=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeUserExtSource`,null,{context:d,params:t,responseType:y,withCredentials:this.configuration.withCredentials,headers:n,observe:c,reportProgress:a})}requestPreferredEmailChange(r,s,_,c,a,i,t="body",n=!1,o){if(null==r)throw new Error("Required parameter user was null or undefined when calling requestPreferredEmailChange.");if(null==s)throw new Error("Required parameter email was null or undefined when calling requestPreferredEmailChange.");let l=new e.LE({encoder:this.encoder});null!=r&&(l=this.addToHttpParams(l,r,"user")),null!=s&&(l=this.addToHttpParams(l,s,"email")),null!=_&&(l=this.addToHttpParams(l,_,"lang")),null!=c&&(l=this.addToHttpParams(l,c,"linkPath")),null!=a&&(l=this.addToHttpParams(l,a,"customUrl")),null!=i&&(l=this.addToHttpParams(l,i,"idpFilter"));let y,d=this.defaultHeaders;y=this.configuration.lookupCredential("BasicAuth"),y&&(d=d.set("Authorization","Basic "+y)),y=this.configuration.lookupCredential("BearerAuth"),y&&(d=d.set("Authorization","Bearer "+y));let k=o&&o.httpHeaderAccept;void 0===k&&(k=this.configuration.selectHeaderAccept(["application/json"])),void 0!==k&&(d=d.set("Accept",k));let Ie=o&&o.context;void 0===Ie&&(Ie=new e.qT);let tt="json";return k&&(tt=k.startsWith("text")?"text":this.configuration.isJsonMime(k)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/requestPreferredEmailChange`,null,{context:Ie,params:l,responseType:tt,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:n})}reservePasswordForLogin(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputReservePasswordForLogin was null or undefined when calling reservePasswordForLogin.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/reservePassword/login`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}reservePasswordForUser(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputReservePasswordForUser was null or undefined when calling reservePasswordForUser.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/reservePassword/user`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}reserveRandomPassword(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling reserveRandomPassword.");if(null==s)throw new Error("Required parameter namespace was null or undefined when calling reserveRandomPassword.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),null!=s&&(i=this.addToHttpParams(i,s,"namespace"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reserveRandomPassword`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}setLogin(r,s,_,c="body",a=!1,i){if(null==r)throw new Error("Required parameter user was null or undefined when calling setLogin.");if(null==s)throw new Error("Required parameter login was null or undefined when calling setLogin.");if(null==_)throw new Error("Required parameter namespace was null or undefined when calling setLogin.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"user")),null!=s&&(t=this.addToHttpParams(t,s,"login")),null!=_&&(t=this.addToHttpParams(t,_,"namespace"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let l=i&&i.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(n=n.set("Accept",l));let d=i&&i.context;void 0===d&&(d=new e.qT);let y="json";return l&&(y=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/setLogin`,null,{context:d,params:t,responseType:y,withCredentials:this.configuration.withCredentials,headers:n,observe:c,reportProgress:a})}updateUser(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputUpdateUser was null or undefined when calling updateUser.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/updateUser`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}updateUserExtSourceLastAccess(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter userExtSource was null or undefined when calling updateUserExtSourceLastAccess.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"userExtSource"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/updateUserExtSourceLastAccess`,null,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}validatePasswordForLogin(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter login was null or undefined when calling validatePasswordForLogin.");if(null==s)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForLogin.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"login")),null!=s&&(i=this.addToHttpParams(i,s,"namespace"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/login`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}validatePasswordForUser(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling validatePasswordForUser.");if(null==s)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForUser.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),null!=s&&(i=this.addToHttpParams(i,s,"namespace"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/user`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}validatePreferredEmailChangeWithToken(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter token was null or undefined when calling validatePreferredEmailChangeWithToken.");if(null==s)throw new Error("Required parameter u was null or undefined when calling validatePreferredEmailChangeWithToken.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"token")),null!=s&&(i=this.addToHttpParams(i,s,"u"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePreferredEmailChange`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}}return oe.\u0275fac=function(r){return new(r||oe)(A.LFG(e.eN),A.LFG(w,8),A.LFG(g,8))},oe.\u0275prov=A.Yz7({token:oe,factory:oe.\u0275fac,providedIn:"root"}),oe})(),xe=(()=>{class oe{constructor(r,s,_){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new g,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof s&&(s=this.basePath),this.configuration.basePath=s),this.encoder=this.configuration.encoder||new m}addToHttpParams(r,s,_){return"object"!=typeof s||s instanceof Date?this.addToHttpParamsRecursive(r,s,_):this.addToHttpParamsRecursive(r,s)}addToHttpParamsRecursive(r,s,_){if(null==s)return r;if("object"==typeof s)if(Array.isArray(s))s.forEach(c=>r=this.addToHttpParamsRecursive(r,c,_));else if(s instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,s.toISOString().substr(0,10))}else Object.keys(s).forEach(c=>r=this.addToHttpParamsRecursive(r,s[c],null!=_?`${_}.${c}`:c));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,s)}return r}getAppsConfig(r="body",s=!1,_){let a,c=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(c=c.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(c=c.set("Authorization","Bearer "+a));let i=_&&_.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let t=_&&_.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getAppsConfig`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:s})}getGuiConfiguration(r="body",s=!1,_){let a,c=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(c=c.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(c=c.set("Authorization","Bearer "+a));let i=_&&_.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let t=_&&_.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getGuiConfiguration`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:s})}getNewGuiAlert(r="body",s=!1,_){let a,c=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(c=c.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(c=c.set("Authorization","Bearer "+a));let i=_&&_.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let t=_&&_.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getNewGuiAlert`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:s})}getPerunRPCVersion(r="body",s=!1,_){let a,c=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(c=c.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(c=c.set("Authorization","Bearer "+a));let i=_&&_.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["text/plain"])),void 0!==i&&(c=c.set("Accept",i));let t=_&&_.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:s})}getPerunStatistics(r="body",s=!1,_){let a,c=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(c=c.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(c=c.set("Authorization","Bearer "+a));let i=_&&_.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let t=_&&_.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatistics`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:s})}getPerunStatus(r="body",s=!1,_){let a,c=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(c=c.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(c=c.set("Authorization","Bearer "+a));let i=_&&_.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let t=_&&_.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatus`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:s})}getPerunSystemTimeInMillis(r="body",s=!1,_){let a,c=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(c=c.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(c=c.set("Authorization","Bearer "+a));let i=_&&_.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let t=_&&_.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunSystemTimeInMillis`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:s})}}return oe.\u0275fac=function(r){return new(r||oe)(A.LFG(e.eN),A.LFG(w,8),A.LFG(g,8))},oe.\u0275prov=A.Yz7({token:oe,factory:oe.\u0275fac,providedIn:"root"}),oe})(),ge=(()=>{class oe{constructor(r,s,_){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new g,_&&(this.configuration=_),"string"!=typeof this.configuration.basePath&&("string"!=typeof s&&(s=this.basePath),this.configuration.basePath=s),this.encoder=this.configuration.encoder||new m}addToHttpParams(r,s,_){return"object"!=typeof s||s instanceof Date?this.addToHttpParamsRecursive(r,s,_):this.addToHttpParamsRecursive(r,s)}addToHttpParamsRecursive(r,s,_){if(null==s)return r;if("object"==typeof s)if(Array.isArray(s))s.forEach(c=>r=this.addToHttpParamsRecursive(r,c,_));else if(s instanceof Date){if(null==_)throw Error("key may not be null if value is Date");r=r.append(_,s.toISOString().substr(0,10))}else Object.keys(s).forEach(c=>r=this.addToHttpParamsRecursive(r,s[c],null!=_?`${_}.${c}`:c));else{if(null==_)throw Error("key may not be null if value is not object or array");r=r.append(_,s)}return r}addMemberVo(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling addMemberVo.");if(null==s)throw new Error("Required parameter memberVo was null or undefined when calling addMemberVo.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=s&&(i=this.addToHttpParams(i,s,"memberVo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addMemberVo`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}addSponsorRoleToGroup(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToGroup.");if(null==s)throw new Error("Required parameter authorizedGroup was null or undefined when calling addSponsorRoleToGroup.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=s&&(i=this.addToHttpParams(i,s,"authorizedGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addSponsorRole/group`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}addSponsorRoleToUser(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToUser.");if(null==s)throw new Error("Required parameter user was null or undefined when calling addSponsorRoleToUser.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=s&&(i=this.addToHttpParams(i,s,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addSponsorRole/user`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}addVoAdminGroup(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling addVoAdminGroup.");if(null==s)throw new Error("Required parameter authorizedGroup was null or undefined when calling addVoAdminGroup.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=s&&(i=this.addToHttpParams(i,s,"authorizedGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addAdmin/group`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}addVoAdminUser(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling addVoAdminUser.");if(null==s)throw new Error("Required parameter user was null or undefined when calling addVoAdminUser.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=s&&(i=this.addToHttpParams(i,s,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addAdmin/user`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}createVoWithName(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter name was null or undefined when calling createVoWithName.");if(null==s)throw new Error("Required parameter shortName was null or undefined when calling createVoWithName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"name")),null!=s&&(i=this.addToHttpParams(i,s,"shortName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/createVo/withName`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}createVoWithVo(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputCreateVoWithVo was null or undefined when calling createVoWithVo.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/createVo/withVo`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}deleteVo(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling deleteVo.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=s&&(i=this.addToHttpParams(i,s,"force"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/deleteVo`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}findCandidates(r,s,_,c="body",a=!1,i){if(null==r)throw new Error("Required parameter id was null or undefined when calling findCandidates.");if(null==s)throw new Error("Required parameter searchString was null or undefined when calling findCandidates.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"id")),null!=s&&(t=this.addToHttpParams(t,s,"searchString")),null!=_&&(t=this.addToHttpParams(t,_,"maxNumOfResults"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let l=i&&i.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(n=n.set("Accept",l));let d=i&&i.context;void 0===d&&(d=new e.qT);let y="json";return l&&(y=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/findCandidates`,{context:d,params:t,responseType:y,withCredentials:this.configuration.withCredentials,headers:n,observe:c,reportProgress:a})}findCandidatesForGroup(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling findCandidatesForGroup.");if(null==s)throw new Error("Required parameter searchString was null or undefined when calling findCandidatesForGroup.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),null!=s&&(i=this.addToHttpParams(i,s,"searchString"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/findCandidates/forGroup`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getAllVos(r="body",s=!1,_){let a,c=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(c=c.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(c=c.set("Authorization","Bearer "+a));let i=_&&_.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let t=_&&_.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAllVos`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:s})}getCompleteCandidatesForGroup(r,s,_,c="body",a=!1,i){if(null==r)throw new Error("Required parameter group was null or undefined when calling getCompleteCandidatesForGroup.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getCompleteCandidatesForGroup.");if(null==_)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForGroup.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"group")),s&&s.forEach(k=>{t=this.addToHttpParams(t,k,"attrNames[]")}),null!=_&&(t=this.addToHttpParams(t,_,"searchString"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let l=i&&i.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(n=n.set("Accept",l));let d=i&&i.context;void 0===d&&(d=new e.qT);let y="json";return l&&(y=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getCompleteCandidates/forGroup`,{context:d,params:t,responseType:y,withCredentials:this.configuration.withCredentials,headers:n,observe:c,reportProgress:a})}getCompleteCandidatesForVo(r,s,_,c="body",a=!1,i){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getCompleteCandidatesForVo.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getCompleteCandidatesForVo.");if(null==_)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForVo.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"vo")),s&&s.forEach(k=>{t=this.addToHttpParams(t,k,"attrNames[]")}),null!=_&&(t=this.addToHttpParams(t,_,"searchString"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let l=i&&i.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(n=n.set("Accept",l));let d=i&&i.context;void 0===d&&(d=new e.qT);let y="json";return l&&(y=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getCompleteCandidates/forVo`,{context:d,params:t,responseType:y,withCredentials:this.configuration.withCredentials,headers:n,observe:c,reportProgress:a})}getEnrichedBansForVo(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getEnrichedBansForVo.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),s&&s.forEach(y=>{i=this.addToHttpParams(i,y,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getEnrichedBansForVo`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getEnrichedVoBansForUser(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling getEnrichedVoBansForUser.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"user")),s&&s.forEach(y=>{i=this.addToHttpParams(i,y,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getEnrichedBansForUser`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getEnrichedVoById(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter id was null or undefined when calling getEnrichedVoById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getEnrichedVoById`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getMemberVos(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getMemberVos.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getMemberVos`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getMyEnrichedVos(r="body",s=!1,_){let a,c=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(c=c.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(c=c.set("Authorization","Bearer "+a));let i=_&&_.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let t=_&&_.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getEnrichedVos`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:s})}getMyVos(r="body",s=!1,_){let a,c=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(c=c.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(c=c.set("Authorization","Bearer "+a));let i=_&&_.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let t=_&&_.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVos`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:s})}getParentVos(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getParentVos.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getParentVos`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getRichAdminsForVo(r,s,_,c,a,i="body",t=!1,n){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getRichAdminsForVo.");if(null==s)throw new Error("Required parameter role was null or undefined when calling getRichAdminsForVo.");if(null==_)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdminsForVo.");if(null==c)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdminsForVo.");if(null==a)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdminsForVo.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"vo")),null!=s&&(o=this.addToHttpParams(o,s,"role")),_&&_.forEach(tt=>{o=this.addToHttpParams(o,tt,"specificAttributes")}),null!=c&&(o=this.addToHttpParams(o,c,"allUserAttributes")),null!=a&&(o=this.addToHttpParams(o,a,"onlyDirectAdmins"));let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let y=n&&n.httpHeaderAccept;void 0===y&&(y=this.configuration.selectHeaderAccept(["application/json"])),void 0!==y&&(l=l.set("Accept",y));let k=n&&n.context;void 0===k&&(k=new e.qT);let Ie="json";return y&&(Ie=y.startsWith("text")?"text":this.configuration.isJsonMime(y)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getRichAdmins`,{context:k,params:o,responseType:Ie,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:t})}getVoAdminGroups(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoAdminGroups.");if(null==s)throw new Error("Required parameter role was null or undefined when calling getVoAdminGroups.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=s&&(i=this.addToHttpParams(i,s,"role"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAdminGroups`,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}getVoAdminUsers(r,s,_,c="body",a=!1,i){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoAdminUsers.");if(null==s)throw new Error("Required parameter role was null or undefined when calling getVoAdminUsers.");if(null==_)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getVoAdminUsers.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"vo")),null!=s&&(t=this.addToHttpParams(t,s,"role")),null!=_&&(t=this.addToHttpParams(t,_,"onlyDirectAdmins"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let l=i&&i.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(n=n.set("Accept",l));let d=i&&i.context;void 0===d&&(d=new e.qT);let y="json";return l&&(y=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAdmins`,{context:d,params:t,responseType:y,withCredentials:this.configuration.withCredentials,headers:n,observe:c,reportProgress:a})}getVoBanById(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter banId was null or undefined when calling getVoBanById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"banId"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBanById`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getVoBanForMember(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter member was null or undefined when calling getVoBanForMember.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBanForMember`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getVoBansForVo(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoBansForVo.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBansForVo`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getVoById(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter id was null or undefined when calling getVoById.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"id"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoById`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getVoByShortName(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter shortName was null or undefined when calling getVoByShortName.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"shortName"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoByShortName`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getVoMembersCountsByStatus(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoMembersCountsByStatus.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoMembersCountsByStatus`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getVosByIds(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getVosByIds.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(d=>{a=this.addToHttpParams(a,d,"ids[]")});let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVosByIds`,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}getVosCount(r="body",s=!1,_){let a,c=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(c=c.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(c=c.set("Authorization","Bearer "+a));let i=_&&_.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let t=_&&_.context;void 0===t&&(t=new e.qT);let n="json";return i&&(n=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVosCount`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:s})}removeMemberVo(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling removeMemberVo.");if(null==s)throw new Error("Required parameter memberVo was null or undefined when calling removeMemberVo.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=s&&(i=this.addToHttpParams(i,s,"memberVo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeMemberVo`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}removeSponsorRoleFromGroup(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromGroup.");if(null==s)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeSponsorRoleFromGroup.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=s&&(i=this.addToHttpParams(i,s,"authorizedGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeSponsorRole/group`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}removeSponsorRoleFromUser(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromUser.");if(null==s)throw new Error("Required parameter user was null or undefined when calling removeSponsorRoleFromUser.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=s&&(i=this.addToHttpParams(i,s,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeSponsorRole/user`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}removeVoAdminGroup(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminGroup.");if(null==s)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeVoAdminGroup.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=s&&(i=this.addToHttpParams(i,s,"authorizedGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeAdmin/group`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}removeVoAdminUser(r,s,_="body",c=!1,a){if(null==r)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminUser.");if(null==s)throw new Error("Required parameter user was null or undefined when calling removeVoAdminUser.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=s&&(i=this.addToHttpParams(i,s,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=a&&a.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let l=a&&a.context;void 0===l&&(l=new e.qT);let d="json";return o&&(d=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeAdmin/user`,null,{context:l,params:i,responseType:d,withCredentials:this.configuration.withCredentials,headers:t,observe:_,reportProgress:c})}removeVoBan(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter banId was null or undefined when calling removeVoBan.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"banId"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeBan`,null,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}removeVoBanForMember(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeVoBanForMember.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member"));let t,i=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(i=i.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(i=i.set("Authorization","Bearer "+t));let n=c&&c.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(i=i.set("Accept",n));let o=c&&c.context;void 0===o&&(o=new e.qT);let l="json";return n&&(l=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeBanForMember`,null,{context:o,params:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:_})}setVoBan(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputSetVoBan was null or undefined when calling setVoBan.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/setBan`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}updateVo(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputUpdateVo was null or undefined when calling updateVo.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/updateVo`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}updateVoBan(r,s="body",_=!1,c){if(null==r)throw new Error("Required parameter InputUpdateBan1 was null or undefined when calling updateVoBan.");let i,a=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(a=a.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(a=a.set("Authorization","Bearer "+i));let t=c&&c.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let n=c&&c.context;void 0===n&&(n=new e.qT);const l=this.configuration.selectHeaderContentType(["application/json"]);void 0!==l&&(a=a.set("Content-Type",l));let d="json";return t&&(d=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/updateBan`,r,{context:n,responseType:d,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:_})}}return oe.\u0275fac=function(r){return new(r||oe)(A.LFG(e.eN),A.LFG(w,8),A.LFG(g,8))},oe.\u0275prov=A.Yz7({token:oe,factory:oe.\u0275fac,providedIn:"root"}),oe})();const Ce={ID:"ID",DATE_CREATED:"DATE_CREATED",TYPE:"TYPE",STATE:"STATE",SUBMITTER:"SUBMITTER",GROUP_NAME:"GROUP_NAME",MODIFIED_BY:"MODIFIED_BY"},de={WRITE:"WRITE",READ:"READ"},ne={HTML_COMMENT:"HTML_COMMENT",SUBMIT_BUTTON:"SUBMIT_BUTTON",AUTO_SUBMIT_BUTTON:"AUTO_SUBMIT_BUTTON",PASSWORD:"PASSWORD",VALIDATED_EMAIL:"VALIDATED_EMAIL",TEXTFIELD:"TEXTFIELD",TEXTAREA:"TEXTAREA",CHECKBOX:"CHECKBOX",RADIO:"RADIO",SELECTIONBOX:"SELECTIONBOX",COMBOBOX:"COMBOBOX",USERNAME:"USERNAME",HEADING:"HEADING",TIMEZONE:"TIMEZONE",EMBEDDED_GROUP_APPLICATION:"EMBEDDED_GROUP_APPLICATION",LIST_INPUT_BOX:"LIST_INPUT_BOX",MAP_INPUT_BOX:"MAP_INPUT_BOX"};let it=(()=>{class oe{constructor(r,s){if(r)throw new Error("ApiModule is already loaded. Import in your base AppModule only.");if(!s)throw new Error("You need to import the HttpClientModule in your AppModule! \nSee also https://github.com/angular/angular/issues/20575")}static forRoot(r){return{ngModule:oe,providers:[{provide:g,useFactory:r}]}}}return oe.\u0275fac=function(r){return new(r||oe)(A.LFG(oe,12),A.LFG(e.eN,8))},oe.\u0275mod=A.oAB({type:oe}),oe.\u0275inj=A.cJS({}),oe})()},19516:(Qe,he,u)=>{"use strict";u.d(he,{m2:()=>ce.m,yo:()=>_e.y,bY:()=>q.b,i2:()=>Te.i,r5:()=>g.r,GY:()=>b.G,d4:()=>A,dp:()=>w.d});var e=u(36895),m=u(94650);let A=(()=>{class H{}return H.\u0275fac=function(V){return new(V||H)},H.\u0275mod=m.oAB({type:H}),H.\u0275inj=m.cJS({imports:[e.ez]}),H})();var w=u(31359),g=(u(34447),u(82895)),q=(u(69773),u(12856),u(20919),u(5865),u(38993),u(86349),u(53561),u(16119),u(7598),u(9954),u(4765)),_e=u(22908),ce=u(10293),Te=u(23123),b=u(56575)},8231:(Qe,he,u)=>{"use strict";u.d(he,{G:()=>m});var e=u(94650);let m=(()=>{class A{transform(p){const g="SHARED_LIB.PERUN.CHECKBOX_LABEL.";return p?g+"DESELECT_ROW":g+"SELECT_ROW"}}return A.\u0275fac=function(p){return new(p||A)},A.\u0275pipe=e.Yjl({name:"checkboxLabel",type:A,pure:!0}),A})()},10293:(Qe,he,u)=>{"use strict";u.d(he,{m:()=>m});var e=u(94650);let m=(()=>{class A{transform(p,g){if(!g||0===g.length)return;const T=g.filter(E=>E.userId===p.id);return 0!==T.length?T.reduce((E,S)=>E.id>S.id?E:S).status:void 0}}return A.\u0275fac=function(p){return new(p||A)},A.\u0275pipe=e.Yjl({name:"consentStatusIcon",type:A,pure:!0}),A})()},34447:(Qe,he,u)=>{"use strict";u.d(he,{a:()=>w});var e=u(69723),m=u(94650),A=u(89383);let w=(()=>{class p{constructor(T,E){this.translate=T,this.storage=E}transform(T,E="en"){const S=this.storage.getProperty("custom_labels");if(S)for(const R of S)if(R.label===T)return R[E];return T}}return p.\u0275fac=function(T){return new(T||p)(m.Y36(A.sK,16),m.Y36(e.d6,16))},p.\u0275pipe=m.Yjl({name:"customTranslate",type:p,pure:!0}),p})()},22908:(Qe,he,u)=>{"use strict";u.d(he,{y:()=>A});var e=u(9244),m=u(94650);let A=(()=>{class w{transform(g,T,E,S){return T&&"members"===g.name||E&&(S.has(g.id)||(0,e.bx)(g))}}return w.\u0275fac=function(g){return new(g||w)},w.\u0275pipe=m.Yjl({name:"disableGroupSelect",type:w,pure:!0}),w})()},4765:(Qe,he,u)=>{"use strict";u.d(he,{b:()=>m});var e=u(94650);let m=(()=>{class A{transform(p){return p.namespace.includes("virt")||p.namespace.includes("core")||p.namespace.includes("entityless")}}return A.\u0275fac=function(p){return new(p||A)},A.\u0275pipe=e.Yjl({name:"disableUniqueAttribute",type:A,pure:!0}),A})()},23123:(Qe,he,u)=>{"use strict";u.d(he,{i:()=>A});var e=u(69723),m=u(94650);let A=(()=>{class w{constructor(g){this.translate=g,this.prefix="ROLES."}transform(g){return"displayName"in g&&g.displayName?g.displayName:this.translate.instant(this.prefix+g.roleName)}}return w.\u0275fac=function(g){return new(g||w)(m.Y36(e.Te,16))},w.\u0275pipe=m.Yjl({name:"displayedRole",type:w,pure:!0}),w})()},82895:(Qe,he,u)=>{"use strict";u.d(he,{r:()=>m});var e=u(94650);let m=(()=>{class A{transform(p,g){return g?`/organizations/${p.voId}/resources/${p.id}`:`/facilities/${p.facilityId}/resources/${p.id}`}}return A.\u0275fac=function(p){return new(p||A)},A.\u0275pipe=e.Yjl({name:"getResourceRoute",type:A,pure:!0}),A})()},82514:(Qe,he,u)=>{"use strict";u.d(he,{F:()=>m});var e=u(94650);let m=(()=>{class A{transform(p,g,T){let E;switch(p){case"VALID":E="green";break;case"INVALID":E="red";break;default:E=""}return`${E}${T||g?" cursor-default":""}`}}return A.\u0275fac=function(p){return new(p||A)},A.\u0275pipe=e.Yjl({name:"groupStatusIconColor",type:A,pure:!0}),A})()},28764:(Qe,he,u)=>{"use strict";u.d(he,{F:()=>w});var e=u(9244),m=u(64080),A=u(94650);let w=(()=>{class p{transform(T){if(null==T||null==T.attributes)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";const E=(0,e.IL)(T.attributes,m.r.GROUP_SYNC_ENABLED),S=(0,e.IL)(T.attributes,m.r.GROUP_STRUCTURE_SYNC_ENABLED);if(null===E&&null===S)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";const R=S.value;if("true"===E.value){const D=(0,e.IL)(T.attributes,m.r.GROUP_LAST_SYNC_STATE),F=(0,e.IL)(T.attributes,m.r.GROUP_LAST_SYNC_TIMESTAMP),z=D.value,$=F.value;return null!=z&&z.trim().length>0?"red":null!==$&&$.trim().length>0?"green":""}if(R){const D=(0,e.IL)(T.attributes,m.r.GROUP_LAST_STRUCTURE_SYNC_STATE),F=(0,e.IL)(T.attributes,m.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP),z=D.value,$=F.value;return null!=z&&z.trim().length>0?"red":null!==$&&$.trim().length>0?"green":""}return""}}return p.\u0275fac=function(T){return new(T||p)},p.\u0275pipe=A.Yjl({name:"groupSyncIconColor",type:p,pure:!0}),p})()},29218:(Qe,he,u)=>{"use strict";u.d(he,{J:()=>w});var e=u(64080),m=u(9244),A=u(94650);let w=(()=>{class p{transform(T){if(null==T||null==T.attributes)return"";const E=(0,m.IL)(T.attributes,e.r.GROUP_SYNC_ENABLED),S=(0,m.IL)(T.attributes,e.r.GROUP_STRUCTURE_SYNC_ENABLED);if(null===E&&null===S)return"";const R=S.value;if("true"===E.value){const D=(0,m.IL)(T.attributes,e.r.GROUP_LAST_SYNC_STATE),F=(0,m.IL)(T.attributes,e.r.GROUP_LAST_SYNC_TIMESTAMP),z=D.value,$=F.value;return null!=z&&z.trim().length>0?"sync_problem":(null!==$&&$.trim(),"sync")}if(R){const D=(0,m.IL)(T.attributes,e.r.GROUP_LAST_STRUCTURE_SYNC_STATE),F=(0,m.IL)(T.attributes,e.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP),z=D.value,$=F.value;return null!=z&&z.trim().length>0?"sync_problem":(null!==$&&$.trim(),"sync")}return"sync_disabled"}}return p.\u0275fac=function(T){return new(T||p)},p.\u0275pipe=A.Yjl({name:"groupSyncIcon",type:p,pure:!0}),p})()},45942:(Qe,he,u)=>{"use strict";u.d(he,{r:()=>w});var e=u(9244),m=u(64080),A=u(94650);let w=(()=>{class p{transform(T){if(null==T||null==T.attributes)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";const E=(0,e.IL)(T.attributes,m.r.GROUP_SYNC_ENABLED),S=(0,e.IL)(T.attributes,m.r.GROUP_STRUCTURE_SYNC_ENABLED);if(null===E&&null===S)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";const R=S.value;if("true"===E.value){const D=(0,e.IL)(T.attributes,m.r.GROUP_LAST_SYNC_STATE),F=(0,e.IL)(T.attributes,m.r.GROUP_LAST_SYNC_TIMESTAMP),z=D.value,$=F.value;return null!=z&&z.trim().length>0?"VO_DETAIL.GROUPS.GROUP_SYNC_FAILED":null!==$&&$.trim().length>0?"VO_DETAIL.GROUPS.GROUP_SYNCED":"VO_DETAIL.GROUPS.GROUP_NOT_YET_SYNCED"}if(R){const D=(0,e.IL)(T.attributes,m.r.GROUP_LAST_STRUCTURE_SYNC_STATE),F=(0,e.IL)(T.attributes,m.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP),z=D.value,$=F.value;return null!=z&&z.trim().length>0?"VO_DETAIL.GROUPS.GROUP_SYNC_FAILED":null!==$&&$.trim().length>0?"VO_DETAIL.GROUPS.GROUP_STRUCTURE_SYNCED":"VO_DETAIL.GROUPS.GROUP_NOT_YET_SYNCED"}return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED"}}return p.\u0275fac=function(T){return new(T||p)},p.\u0275pipe=A.Yjl({name:"groupSyncToolTip",type:p,pure:!0}),p})()},9185:(Qe,he,u)=>{"use strict";u.d(he,{I:()=>w});var e=u(69723),m=u(91479),A=u(94650);let w=(()=>{class p{constructor(T){this.tableCheckboxService=T}transform(T,E,S){return 0!==E&&((0,e.uI)(T)?E===T.getData().length:(0,m.o)(T)?this.tableCheckboxService.isAllSelectedPaginated(T,E,S):this.tableCheckboxService.isAllSelected(E,T,S))}}return p.\u0275fac=function(T){return new(T||p)(A.Y36(e.UA,16))},p.\u0275pipe=A.Yjl({name:"isAllSelected",type:p,pure:!0}),p})()},56575:(Qe,he,u)=>{"use strict";u.d(he,{G:()=>A});var e=u(69723),m=u(94650);let A=(()=>{class w{constructor(g){this.authResolver=g}transform(g,T){return g.filter(E=>this.canSetRoleForEntity(E,T))}canSetRoleForEntity(g,T){const E=new Map;return this.authResolver.setRolesAuthorization([T],g,E),E.get(T.roleName).manageAuth}}return w.\u0275fac=function(g){return new(g||w)(m.Y36(e.x4,16))},w.\u0275pipe=m.Yjl({name:"manageableEntities",type:w,pure:!0}),w})()},14849:(Qe,he,u)=>{"use strict";u.d(he,{r:()=>m});var e=u(94650);let m=(()=>{class A{transform(p){const g="SHARED_LIB.PERUN.CHECKBOX_LABEL.";return p?g+"DESELECT_ALL":g+"SELECT_ALL"}}return A.\u0275fac=function(p){return new(p||A)},A.\u0275pipe=e.Yjl({name:"masterCheckboxLabel",type:A,pure:!0}),A})()},86349:(Qe,he,u)=>{"use strict";u.d(he,{A:()=>w});var e=u(9244),m=u(94650),A=u(89383);let w=(()=>{class p{constructor(T){this.translate=T}transform(T,E){const S=(0,e.zr)(T);return"INDIRECT"===S?this.translate.instant("MEMBERS_LIST.CHECKBOX_TOOLTIP_INDIRECT"):E||"UNALTERABLE"!==S?"":this.translate.instant("MEMBERS_LIST.CHECKBOX_TOOLTIP_UNALTERABLE")}}return p.\u0275fac=function(T){return new(T||p)(m.Y36(A.sK,16))},p.\u0275pipe=m.Yjl({name:"memberCheckboxLabel",type:p,pure:!0}),p})()},20919:(Qe,he,u)=>{"use strict";u.d(he,{D:()=>A});var e=u(9244),m=u(94650);let A=(()=>{class w{transform(g){return(0,e.g$)(g)}}return w.\u0275fac=function(g){return new(g||w)},w.\u0275pipe=m.Yjl({name:"memberEmail",type:w,pure:!0}),w})()},5865:(Qe,he,u)=>{"use strict";u.d(he,{p:()=>A});var e=u(9244),m=u(94650);let A=(()=>{class w{transform(g){return(0,e.lt)(g)}}return w.\u0275fac=function(g){return new(g||w)},w.\u0275pipe=m.Yjl({name:"memberLogins",type:w,pure:!0}),w})()},96974:(Qe,he,u)=>{"use strict";u.d(he,{M:()=>A});var e=u(9244),m=u(94650);let A=(()=>{class w{transform(g){return(0,e.Gw)(g)}}return w.\u0275fac=function(g){return new(g||w)},w.\u0275pipe=m.Yjl({name:"memberOrganization",type:w,pure:!0}),w})()},38993:(Qe,he,u)=>{"use strict";u.d(he,{n:()=>A});var e=u(9244),m=u(94650);let A=(()=>{class w{transform(g,T){const E=(0,e.zr)(g);return"INDIRECT"===E||!T&&"UNALTERABLE"===E}}return w.\u0275fac=function(g){return new(g||w)},w.\u0275pipe=m.Yjl({name:"memberStatusDisabled",type:w,pure:!0}),w})()},69773:(Qe,he,u)=>{"use strict";u.d(he,{u:()=>A});var e=u(9244),m=u(94650);let A=(()=>{class w{transform(g){const T=(0,e.zr)(g);let E;switch(g.status){case"VALID":E="green";break;case"INVALID":E="red";break;case"DISABLED":E="black";break;default:return""}return`${E}${"UNALTERABLE"===T?" cursor-default":""}`}}return w.\u0275fac=function(g){return new(g||w)},w.\u0275pipe=m.Yjl({name:"memberStatusIconColor",type:w,pure:!0}),w})()},21757:(Qe,he,u)=>{"use strict";u.d(he,{f:()=>m});var e=u(94650);let m=(()=>{class A{transform(p){switch(p){case"VALID":return"verified_user";case"INVALID":return"report";case"EXPIRED":return"schedule";case"DISABLED":return"delete";default:return p}}}return A.\u0275fac=function(p){return new(p||A)},A.\u0275pipe=e.Yjl({name:"memberStatusIcon",type:A,pure:!0}),A})()},12856:(Qe,he,u)=>{"use strict";u.d(he,{i:()=>w});var e=u(9244),m=u(94650),A=u(89383);let w=(()=>{class p{constructor(T){this.translate=T}transform(T,E,S){let R=null,v=null;T.memberAttributes&&(R=T.memberAttributes.find(z=>"membershipExpiration"===z.friendlyName),v=T.memberAttributes.find(z=>"groupMembershipExpiration"===z.friendlyName));let D="";D=E?`\n Group status: ${(0,e.Oe)(T.groupStatus)}\n Expiration: ${v?.value??"never"}`:T.memberAttributes?`Status: ${(0,e.Oe)(T.status,T.groupStatus)}\n Vo status: ${(0,e.Oe)(T.status)}\n Expiration: ${R?.value??"never"}`:`Status: ${(0,e.Oe)(T.status,T.groupStatus)}\n Vo status: ${(0,e.Oe)(T.status)}`;const F=(0,e.zr)(T);return S?D=`${D}\n ${this.translate.instant("MEMBERS_LIST.STATUS_TOOLTIP_MEMBERS_GROUP")}`:"INDIRECT"===F&&E?D=`${D}\n ${this.translate.instant("MEMBERS_LIST.STATUS_TOOLTIP_GROUP_INDIRECT")}`:!E&&"UNALTERABLE"===F&&(D=`${D}\n ${this.translate.instant("MEMBERS_LIST.STATUS_TOOLTIP_INDIRECT")}`),D}}return p.\u0275fac=function(T){return new(T||p)(m.Y36(A.sK,16))},p.\u0275pipe=m.Yjl({name:"memberStatusTooltip",type:p,pure:!0}),p})()},20551:(Qe,he,u)=>{"use strict";u.d(he,{l:()=>m});var e=u(94650);let m=(()=>{class A{transform(p){return p.replace("VALID","ACTIVE")}}return A.\u0275fac=function(p){return new(p||A)},A.\u0275pipe=e.Yjl({name:"memberStatus",type:A,pure:!0}),A})()},64597:(Qe,he,u)=>{"use strict";u.d(he,{R:()=>m});var e=u(94650);let m=(()=>{class A{transform(p){return p.replace(/\s/g,"-").replace(/\./g,"-").toLowerCase()}}return A.\u0275fac=function(p){return new(p||A)},A.\u0275pipe=e.Yjl({name:"multiWordDataCy",type:A,pure:!0}),A})()},62383:(Qe,he,u)=>{"use strict";u.d(he,{M:()=>A});var e=u(36895),m=u(94650);let A=(()=>{class w{transform(g,T){return"voRules"===g?"Vo rules":"groupRules"===g?"Group rules":g&&"never"!==g.toLowerCase()?(0,e.p6)(g.replace(" ","T"),"d.M.yyyy "+(T?"H:mm:ss":""),"en"):"never"}}return w.\u0275fac=function(g){return new(g||w)},w.\u0275pipe=m.Yjl({name:"parseDate",type:w,pure:!0}),w})()},30076:(Qe,he,u)=>{"use strict";u.d(he,{A:()=>A});var e=u(94650),m=u(11481);let A=(()=>{class w{constructor(g){this.sanitizer=g}transform(g){return this.sanitizer.bypassSecurityTrustHtml(g)}}return w.\u0275fac=function(g){return new(g||w)(e.Y36(m.H7,16))},w.\u0275pipe=e.Yjl({name:"sanitizeHtml",type:w,pure:!0}),w})()},53561:(Qe,he,u)=>{"use strict";u.d(he,{J:()=>A});var e=u(9244),m=u(94650);let A=(()=>{class w{transform(g){return(0,e.te)(g)}}return w.\u0275fac=function(g){return new(g||w)},w.\u0275pipe=m.Yjl({name:"technicalOwners",type:w,pure:!0}),w})()},16119:(Qe,he,u)=>{"use strict";u.d(he,{S:()=>A});var e=u(9244),m=u(94650);let A=(()=>{class w{transform(g){return(0,e.kN)(g)}}return w.\u0275fac=function(g){return new(g||w)},w.\u0275pipe=m.Yjl({name:"userEmail",type:w,pure:!0}),w})()},31359:(Qe,he,u)=>{"use strict";u.d(he,{d:()=>m});var e=u(94650);let m=(()=>{class A{transform(p){return[p.titleBefore,p.firstName,p.middleName,p.lastName,p.titleAfter].join(" ")}}return A.\u0275fac=function(p){return new(p||A)},A.\u0275pipe=e.Yjl({name:"userFullName",type:A,pure:!0}),A})()},7598:(Qe,he,u)=>{"use strict";u.d(he,{g:()=>A});var e=u(9244),m=u(94650);let A=(()=>{class w{transform(g){return(0,e.$0)(g)}}return w.\u0275fac=function(g){return new(g||w)},w.\u0275pipe=m.Yjl({name:"userLogins",type:w,pure:!0}),w})()},9954:(Qe,he,u)=>{"use strict";u.d(he,{Z:()=>A});var e=u(9244),m=u(94650);let A=(()=>{class w{transform(g){return(0,e.OV)(g)}}return w.\u0275fac=function(g){return new(g||w)},w.\u0275pipe=m.Yjl({name:"userVo",type:w,pure:!0}),w})()},69723:(Qe,he,u)=>{"use strict";u.d(he,{yC:()=>N,F5:()=>re,sM:()=>Y,eE:()=>c,e8:()=>F,EB:()=>xe,Be:()=>it,Hy:()=>J,ly:()=>We,fb:()=>oe,Mf:()=>t,xw:()=>be,K1:()=>i,x4:()=>g,v0:()=>V,hy:()=>L,SZ:()=>Me,V6:()=>B,jq:()=>Ee,Te:()=>A,BN:()=>Xe,Nj:()=>n,Ip:()=>r,HV:()=>ke,d6:()=>R,UA:()=>De,uI:()=>Tt});var e=u(89383),m=u(94650);let A=(()=>{class o extends e.sK{instant(d,y){return String(super.instant(d,y))}}return o.\u0275fac=function(){let l;return function(y){return(l||(l=m.n5z(o)))(y||o)}}(),o.\u0275prov=m.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();var w=u(32105),p=u(45323);let g=(()=>{class o{constructor(d){this.authzSevice=d,this.principalRoles=new Set,this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[],this.sortRoles=(y,k)=>y.roleName>k.roleName?1:y.roleName{this.authzSevice.getAllRolesManagementRules().subscribe(k=>{this.allRolesManagementRules=k,d()},k=>y(k))})}assignAvailableRoles(d,y){this.allRolesManagementRules.forEach(k=>{k.primaryObject===y&&d.push(k)}),d.sort(this.sortRoles),"Vo"===y&&this.voCustomSort(d)}isManagerPagePrivileged(d){const y=[];let k=d.beanName;k.startsWith("Rich")&&(k=k.substring(4)),this.assignAvailableRoles(y,k);const Ie=new Map;this.setRolesAuthorization(y,d,Ie);for(const tt of Ie.values())if(tt.readAuth||tt.manageAuth)return!0;return!1}setRolesAuthorization(d,y,k){for(const Ie of d){let tt=[],ct=[],Ue=[];for(const je of this.allRolesManagementRules)if(je.roleName===Ie.roleName){tt=tt.concat(je.privilegedRolesToRead),ct=ct.concat(je.privilegedRolesToManage);for(const Le of Object.keys(je.entitiesToManage))Ue="User"===Le?[Le].concat(Ue):Ue.concat(Le);break}const at=this.fetchAllRelatedObjects([y]),fe=this.resolveAuthorization(tt,at),Oe=this.resolveAuthorization(ct,at);k.set(Ie.roleName,{readAuth:fe,manageAuth:Oe,modes:Ue})}}initializeVariables(){this.principalRoles.clear(),this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}getPrimaryObjectOfRole(d){for(const y of this.allRolesManagementRules)if(y.roleName===d)return y.primaryObject;return""}getAllRules(){return this.allRolesManagementRules.sort(this.sortRoles)}getRuleForRole(d){return this.allRolesManagementRules.find(y=>y.roleName===d)}getAssignableRoleRules(d){const y=[],k=["UNKNOWN","RPC","NOTIFICATIONS","ENGINE","MFA","REGISTRAR","AUDITCONSUMERADMIN","SPONSORSHIP","MEMBERSHIP","SERVICEUSER","SELF","SECURITYADMIN"];return this.allRolesManagementRules.forEach(Ie=>{!k.includes(Ie.roleName)&&this.canManage(Ie)&&this.ruleHasMode(Ie,d)&&y.push(Ie)}),y.sort(this.sortRoles)}ruleHasMode(d,y){return Object.keys(d.entitiesToManage).map(k=>k.toUpperCase()).includes(y)}canManage(d){return d.privilegedRolesToManage.some(y=>this.principalRoles.has(Object.keys(y)[0]))}resolveAuthorization(d,y){for(const k of d){let Ie=!0;for(const tt of Object.keys(k)){const ct=k[tt];if(null===ct)this.principalRoles.has(tt)||(Ie=!1);else if(y[ct]){for(const Ue of y[ct])if(!this.principalHasRole(tt,ct,Ue)){Ie=!1;break}}else Ie=!1;if(!Ie)break}if(Ie)return!0}return!1}getPerunPolicy(d){for(const y of this.perunPolicies)if(y.policyName===d)return y;return null}fetchAllRelatedObjects(d){const y={};for(const k of d){let Ie=k.beanName;switch(k.beanName.startsWith("Rich")&&(Ie=k.beanName.substring(4)),y[Ie]?y[Ie].push(k.id):y[Ie]=[k.id],Ie){case"Member":y.User?y.User.push(k.userId):y.User=[k.userId],y.Vo?y.Vo.push(k.voId):y.Vo=[k.voId];break;case"Group":case"ResourceTag":y.Vo?y.Vo.push(k.voId):y.Vo=[k.voId];break;case"Resource":y.Facility?y.Facility.push(k.facilityId):y.Facility=[k.facilityId],y.Vo?y.Vo.push(k.voId):y.Vo=[k.voId]}}return y}fetchPolicyWithAllIncludedPolicies(d){const y=new Map;let k=[];for(k.push(d);0!==k.length;){const tt=k.shift();if(y.has(tt))continue;const ct=this.getPerunPolicy(tt);if(!ct)return[];y.set(tt,ct),k=k.concat(ct.includePolicies)}const Ie=[];for(const tt of y.values())Ie.push(tt);return Ie}voCustomSort(d){for(let y=0;y{class o{constructor(){this.branding=""}setInstanceConfig(d){this.instanceConfig=d}setDefaultConfig(d){this.defaultConfig=d}getAppsConfig(){return this.appsConfig}setAppsConfig(d){this.appsConfig=d}setPerunPrincipal(d){this.principal=d}getPerunPrincipal(){return this.principal}getInitialPageId(){return this.initialPageId}setInitialPageId(d){this.initialPageId=d}getLoginAttributeNames(){return this.getProperty("login_namespace_attributes")}getMemberProfileAttributeNames(){return this.getProperty("member_profile_attributes_friendly_names")}setBanding(d){this.branding=d}getProperty(d){if(!this.instanceConfig||!this.defaultConfig)return null;const y=[this.instanceConfig?.brandings?.[this.branding],this.instanceConfig],k=this.defaultConfig[d];let Ie=null;for(const tt of y)tt&&null==Ie&&(Ie=tt[d]);return null===Ie?k:this.addMissingValuesToProperty(Ie,k)}addMissingValuesToProperty(d,y){if("object"!=typeof d||Array.isArray(d)||null==d){if(null!=d)return d}else for(const k of Object.keys(y))y[k]=this.addMissingValuesToProperty(d[k],y[k]);return y}}return o.\u0275fac=function(d){return new(d||o)},o.\u0275prov=m.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();var v=u(65412),D=u(51214);let F=(()=>{class o{constructor(d,y,k,Ie,tt){this.injector=d,this.store=y,this.dialog=k,this.route=Ie,this.oauthService=tt,setTimeout(()=>{this.router=this.injector.get(E.F0),this.startIdpFilterKeeper()}),this.route.queryParams.subscribe(ct=>{ct.idpFilter&&(this.filterShortname=String(ct.idpFilter))})}loadOidcConfigData(){this.oauthService.configure(this.getClientConfig())}logout(){sessionStorage.getItem("baPrincipal")?(sessionStorage.removeItem("baPrincipal"),sessionStorage.removeItem("basicUsername"),sessionStorage.removeItem("basicPassword"),sessionStorage.setItem("baLogout","true"),this.router.navigate(["/service-access"],{queryParamsHandling:"preserve"})):this.oauthService.logOut()}isLoggedIn(){return this.oauthService.hasValidAccessToken()}getAuthorizationHeaderValue(){return this.oauthService.hasValidAccessToken()?"Bearer "+this.oauthService.getAccessToken():""}startAuthentication(){this.oauthService.loadDiscoveryDocumentAndLogin()}getIdpFilter(){return this.filterShortname}getClientConfig(){const d=this.setIdpFilter(),Ie=.5+.25*Math.random(),tt=d?{acr_values:d}:{},ct=this.store.getProperty("oidc_client");if(ct.oauth_scopes.split(" ").includes("offline_access")&&ct.oauth_offline_access_consent_prompt&&(tt.prompt="consent"),(sessionStorage.getItem("mfa_route")||sessionStorage.getItem("mfaProcessed"))&&(tt.acr_values="https://refeds.org/profile/mfa"),sessionStorage.getItem("mfa_route")&&(tt.prompt?tt.prompt+=" login":tt.prompt="login",tt.max_age="0"),"Linker"===this.store.getProperty("application")){tt.prompt?tt.prompt+=" login":tt.prompt="login";const Ue=(0,S.O5)("idphint",location.search.substring(1));Ue&&(tt.idphint=Ue)}return{requestAccessToken:!0,issuer:ct.oauth_authority,clientId:ct.oauth_client_id,redirectUri:ct.oauth_redirect_uri,postLogoutRedirectUri:ct.oauth_post_logout_redirect_uri,responseType:ct.oauth_response_type,scope:ct.oauth_scopes,clockSkewInSec:1,timeoutFactor:Ie,userinfoEndpoint:this.store.getProperty("oidc_client").user_info_endpoint_url,customQueryParams:tt}}setIdpFilter(){const d=location.search.length?location.search.substring(1).split("&"):[];this.filterShortname=null;const y=this.store.getProperty("oidc_client").filters;if(!y)return null;let k=null;return d.forEach(Ie=>{const tt=Ie.split("=");"idpFilter"===tt[0]&&y[tt[1]]&&(this.filterShortname=tt[1],k=y[tt[1]])}),y.default&&!k?(this.filterShortname="default",y.default):k}startIdpFilterKeeper(){this.router.events.pipe((0,T.h)(d=>d instanceof E.m2)).subscribe(()=>{const d={idpFilter:this.getIdpFilter()};this.router.navigate([],{relativeTo:this.route,queryParams:"default"===d.idpFilter?{}:d,queryParamsHandling:"merge",replaceUrl:!0})})}}return o.\u0275fac=function(d){return new(d||o)(m.LFG(m.zs3),m.LFG(R),m.LFG(v.uw),m.LFG(E.gz),m.LFG(D.Ct))},o.\u0275prov=m.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),z=(()=>{class o{constructor(d){this.dialogRef=d}}return o.\u0275fac=function(d){return new(d||o)(m.Y36(v.so))},o.\u0275cmp=m.Xpm({type:o,selectors:[["perun-web-apps-user-dont-exist-dialog"]],decls:3,vars:3,consts:[["mat-dialog-content","",1,"mt-2","mb-2"]],template:function(d,y){1&d&&(m.TgZ(0,"h2",0),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&d&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.USER_DONT_EXIST.TITLE"),"\n"))},dependencies:[v.xY,e.X$]}),o})();var $=u(83905),G=u(69751),q=u(4859),_e=u(98380);let ce=(()=>{class o{constructor(d,y){this.dialogRef=d,this.data=y}cancel(){this.dialogRef.close(!1)}submit(){this.dialogRef.close(!0)}}return o.\u0275fac=function(d){return new(d||o)(m.Y36(v.so),m.Y36(v.WI))},o.\u0275cmp=m.Xpm({type:o,selectors:[["perun-web-apps-mfa-required-dialog"]],decls:15,vars:17,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["alert_type","warn"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"hidden","click"],["color","accent","mat-flat-button","",3,"click"]],template:function(d,y){1&d&&(m.TgZ(0,"h1",0),m._uU(1),m.ALo(2,"translate"),m.qZA(),m.TgZ(3,"div",1)(4,"perun-web-apps-alert",2),m._uU(5),m.ALo(6,"translate"),m.ALo(7,"translate"),m.qZA()(),m.TgZ(8,"div",3)(9,"button",4),m.NdJ("click",function(){return y.cancel()}),m._uU(10),m.ALo(11,"translate"),m.qZA(),m.TgZ(12,"button",5),m.NdJ("click",function(){return y.submit()}),m._uU(13),m.ALo(14,"translate"),m.qZA()()),2&d&&(m.xp6(1),m.Oqu(m.lcZ(2,7,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.TITLE")),m.xp6(4),m.hij(" ",y.data.mfaRoleException?m.lcZ(6,9,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.INFO_ROLE"):m.lcZ(7,11,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.INFO")," "),m.xp6(4),m.Q6J("hidden",y.data.mfaRoleException),m.xp6(1),m.hij(" ",m.lcZ(11,13,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.CANCEL")," "),m.xp6(2),m.Tol(y.data.mfaRoleException?"ml-auto":"ml-2"),m.xp6(1),m.hij(" ",m.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.STEP_UP")," "))},dependencies:[v.uh,v.xY,v.H8,q.lW,_e.w,e.X$]}),o})();var Te=u(97392);let b=(()=>{class o{}return o.\u0275fac=function(d){return new(d||o)},o.\u0275cmp=m.Xpm({type:o,selectors:[["perun-web-apps-focus-on-mfa-window"]],decls:9,vars:6,consts:[[1,"text-center","custom-dialog"],[1,"align-text-bottom"]],template:function(d,y){1&d&&(m.TgZ(0,"div",0)(1,"div")(2,"mat-icon",1),m._uU(3," info "),m.qZA(),m._uU(4),m.ALo(5,"translate"),m.qZA(),m.TgZ(6,"div"),m._uU(7),m.ALo(8,"translate"),m.qZA()()),2&d&&(m.xp6(4),m.hij(" ",m.lcZ(5,2,"SHARED_LIB.PERUN.COMPONENTS.FOCUS_ON_MFA_DIALOG.MODAL")," "),m.xp6(3),m.hij(" ",m.lcZ(8,4,"SHARED_LIB.PERUN.COMPONENTS.FOCUS_ON_MFA_DIALOG.MODAL_WARNING")," "))},dependencies:[Te.Hw,e.X$],styles:[".custom-dialog[_ngcontent-%COMP%]{background-color:#000;color:#fffffff2;font-size:1.2rem}"]}),o})(),H=(()=>{class o{constructor(d,y){this.data=d,this.dialogRef=y}cancel(){this.dialogRef.close(!1)}submit(){window.open(this.data.tokensUrl,"_blank"),this.dialogRef.close(!0)}}return o.\u0275fac=function(d){return new(d||o)(m.Y36(v.WI),m.Y36(v.so))},o.\u0275cmp=m.Xpm({type:o,selectors:[["perun-web-apps-no-mfa-tokens-dialog"]],decls:14,vars:12,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["alert_type","warn"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"]],template:function(d,y){1&d&&(m.TgZ(0,"h1",0),m._uU(1),m.ALo(2,"translate"),m.qZA(),m.TgZ(3,"div",1)(4,"perun-web-apps-alert",2),m._uU(5),m.ALo(6,"translate"),m.qZA()(),m.TgZ(7,"div",3)(8,"button",4),m.NdJ("click",function(){return y.cancel()}),m._uU(9),m.ALo(10,"translate"),m.qZA(),m.TgZ(11,"button",5),m.NdJ("click",function(){return y.submit()}),m._uU(12),m.ALo(13,"translate"),m.qZA()()),2&d&&(m.xp6(1),m.Oqu(m.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.TITLE")),m.xp6(4),m.hij(" ",m.lcZ(6,6,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.INFO")," "),m.xp6(4),m.hij(" ",m.lcZ(10,8,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.CANCEL")," "),m.xp6(3),m.hij(" ",m.lcZ(13,10,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.MANAGE_TOKENS")," "))},dependencies:[v.uh,v.xY,v.H8,q.lW,_e.w,e.X$]}),o})(),L=(()=>{class o{constructor(d,y,k,Ie){this.dialog=d,this.oauthService=y,this.authService=k,this.store=Ie}openMfaWindow(d){let y=null,k=null;const Ie=(0,S.kZ)();Ie.width="450px",Ie.data={mfaRoleException:d};const tt=this.dialog.open(ce,Ie);let ct=!1;if(tt.afterClosed().subscribe(Ue=>{if(Ue){if(sessionStorage.setItem("mfaRequired","true"),sessionStorage.setItem("oldAccessToken",this.oauthService.getAccessToken()),sessionStorage.setItem("oldRefreshToken",this.oauthService.getRefreshToken()),y=this.setupMfaWindow(),y){const at=(0,S.kZ)();at.width="450px",at.panelClass="noBorderDialog",k=this.dialog.open(b,at)}}else ct=!0}),localStorage.getItem("noMfaTokenDialog")){localStorage.removeItem("noMfaTokenDialog");const Ue=(0,S.kZ)();Ue.width="450px",Ue.data={tokensUrl:this.store.getProperty("mfa").url_en},this.dialog.open(H,Ue)}return new G.y(Ue=>{const at=setInterval(()=>y?.closed?(clearInterval(at),k.close(),sessionStorage.removeItem("mfaRequired"),sessionStorage.removeItem("mfaProcessed"),null===this.oauthService.getAccessToken()&&(localStorage.setItem("access_token",sessionStorage.getItem("oldAccessToken")),localStorage.setItem("refresh_token",sessionStorage.getItem("oldRefreshToken"))),Ue.next(!0)):ct?(clearInterval(at),Ue.next(!1)):void 0,1e3)})}catchNoMfaTokenError(d){"unmet_authentication_requirements"===d&&(localStorage.setItem("noMfaTokenDialog","true"),window.close())}mfaWindowForceLogout(){if(sessionStorage.getItem("mfaRequired")&&!sessionStorage.getItem("mfaProcessed"))return sessionStorage.setItem("mfaProcessed","true"),this.oauthService.logOut(!0),this.authService.loadOidcConfigData(),void this.oauthService.loadDiscoveryDocumentAndLogin();sessionStorage.removeItem("mfaRequired")}closeMfaWindow(){sessionStorage.getItem("mfaProcessed")&&!sessionStorage.getItem("mfaRequired")&&(sessionStorage.removeItem("mfaProcessed"),window.close())}setupMfaWindow(){const d=location.pathname+location.search,Ie=window.top;return window.open(d,"_blank",`width=600,height=600,top=${Ie.outerHeight/2+Ie.screenY-300}, left=${Ie.outerWidth/2+Ie.screenX-300}`)}}return o.\u0275fac=function(d){return new(d||o)(m.LFG(v.uw),m.LFG(D.Ct),m.LFG(F),m.LFG(R))},o.\u0275prov=m.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),V=(()=>{class o{constructor(d,y,k,Ie,tt,ct,Ue,at){this.authService=d,this.oauthService=y,this.storeService=k,this.authResolver=Ie,this.authzService=tt,this.dialog=ct,this.router=Ue,this.mfaHandlerService=at,this.loginScreenShown=!1,this.serviceAccess=!1,this.serviceAccessLoginScreen=!1}isLoginScreenShown(){return this.loginScreenShown}isServiceAccess(){return this.serviceAccess}isServiceAccessLoginScreenShown(){return this.serviceAccessLoginScreen}verifyAuth(){if(this.mfaHandlerService.mfaWindowForceLogout(),sessionStorage.getItem("baPrincipal"))return this.serviceAccess=!0,sessionStorage.getItem("auth:redirect")?this.redirectToOriginDestination():Promise.resolve(!0);if("/service-access"!==location.pathname&&!this.storeService.getProperty("auto_service_access_redirect")){this.authService.loadOidcConfigData();const d=location.pathname,y=location.search.substring(1);return"/api-callback"===d?this.oauthService.loadDiscoveryDocumentAndTryLogin().then(()=>this.startRefreshToken()).then(()=>this.redirectToOriginDestination()):this.oauthService.loadDiscoveryDocument().then(()=>this.tryRefreshToken()).then(()=>"Linker"===this.storeService.getProperty("application")?(sessionStorage.setItem("auth:queryParams",y),localStorage.removeItem("access_token"),!1):this.oauthService.hasValidAccessToken()?this.startRefreshToken():this.isPotentiallyValidPath(d)?(sessionStorage.setItem("auth:redirect",d),sessionStorage.setItem("auth:queryParams",y),!1):Promise.reject("Invalid path"))}}loadPrincipal(){return(0,$.z)(this.authzService.getPerunPrincipal()).then(d=>{if(null===d.user){const y=(0,S.kZ)();this.dialog.open(z,y)}else this.storeService.setPerunPrincipal(d),this.authResolver.init(d)})}simpleLoadPrincipal(){return(0,$.z)(this.authzService.getPerunPrincipal()).then(d=>{this.storeService.setPerunPrincipal(d)})}checkRouteGuard(){const d=localStorage.getItem("routeAuthGuard");d&&(localStorage.removeItem("routeAuthGuard"),this.router.navigate([d],{queryParamsHandling:"merge"}))}handleAuthStart(){if(this.storeService.getProperty("auto_service_access_redirect")&&"/service-access"!==location.pathname){this.serviceAccess=!0,this.serviceAccessLoginScreen=!0;const d=location.pathname,y=location.search.substring(1);sessionStorage.setItem("auth:redirect",d),sessionStorage.setItem("auth:queryParams",y);const k={};return y.split("&").forEach(Ie=>{const tt=Ie.split("=");k[tt[0]]=tt[1]}),this.router.navigate(["service-access"],{queryParams:k,queryParamsHandling:"merge"}).then()}if("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal")||this.storeService.getProperty("auto_service_access_redirect")){this.serviceAccess=!0,this.serviceAccessLoginScreen=!0;const d=location.search.substring(1);return sessionStorage.setItem("auth:queryParams",d),Promise.resolve()}return this.storeService.getProperty("auto_auth_redirect")?(sessionStorage.getItem("mfaProcessed")||localStorage.setItem("routeAuthGuard",window.location.pathname),this.startAuth().then(()=>new Promise(()=>{}))):(this.setLoginScreen(!0),localStorage.setItem("routeAuthGuard",window.location.pathname),void this.router.navigate(["login"],{queryParamsHandling:"merge"}))}setLoginScreen(d){this.loginScreenShown=d}isPotentiallyValidPath(d){const y=["/home","/organizations","/facilities","/myProfile","/admin","/login","/service-access","/profile"];if("/"===d)return!0;for(const k of y)if(d.startsWith(k))return!0;return!1}startRefreshToken(){return this.oauthService.hasValidAccessToken()?(this.oauthService.events.pipe((0,T.h)(d=>"token_expires"===d.type&&"access_token"===d.info)).subscribe(()=>{this.oauthService.refreshToken()}),Promise.resolve(!0)):Promise.resolve(!1)}tryRefreshToken(){return localStorage.getItem("refresh_token")&&!this.oauthService.hasValidAccessToken()?this.oauthService.refreshToken().then(()=>Promise.resolve()).catch(()=>Promise.resolve()):Promise.resolve()}redirectToOriginDestination(){const d=sessionStorage.getItem("mfa_route");if(d)return this.router.navigate([d],{replaceUrl:!0,queryParamsHandling:"merge"});let y=sessionStorage.getItem("auth:redirect");(!y||"/login"===y)&&(y="/"),sessionStorage.removeItem("auth:redirect");const k=sessionStorage.getItem("auth:queryParams");let Ie=[];k&&(Ie=k.split("&"));const tt={};return Ie.forEach(ct=>{const Ue=ct.split("=");tt[Ue[0]]=Ue[1]}),sessionStorage.removeItem("auth:queryParams"),this.router.navigate([y],{queryParams:tt,replaceUrl:!0,queryParamsHandling:"merge"})}startAuth(){return this.authService.startAuthentication(),Promise.resolve()}}return o.\u0275fac=function(d){return new(d||o)(m.LFG(F),m.LFG(D.Ct),m.LFG(R),m.LFG(g),m.LFG(w.Ct),m.LFG(v.uw),m.LFG(E.F0),m.LFG(L))},o.\u0275prov=m.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();var Q=u(11481);let xe=(()=>{class o{constructor(d,y){this.matIconRegistry=d,this.domSanitizer=y,this.customIcons=[{url:"assets/img/PerunWebImages/refresh_tab-black.svg",name:"perun-refresh-enabled"},{url:"assets/img/PerunWebImages/refresh_tab-grey.svg",name:"perun-refresh-disabled"},{url:"assets/img/PerunWebImages/manage_facility_white.svg",name:"perun-manage-facility"},{url:"assets/img/PerunWebImages/vo-white.svg",name:"perun-vo"},{url:"assets/img/PerunWebImages/user-white.svg",name:"perun-user"},{url:"assets/img/PerunWebImages/perun_admin-white.svg",name:"perun-perun-admin"},{url:"assets/img/PerunWebImages/group-white.svg",name:"perun-group"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/preview-white.svg",name:"perun-preview"},{url:"assets/img/PerunWebImages/module_dependencies.svg",name:"perun-module-dependencies"},{url:"assets/img/PerunWebImages/user_destination_relationship.svg",name:"perun-user-destination-relationship"},{url:"assets/img/PerunWebImages/settings2-white.svg",name:"perun-settings2"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/applications-white.svg",name:"perun-applications"},{url:"assets/img/PerunWebImages/manager-white.svg",name:"perun-manager"},{url:"assets/img/PerunWebImages/key-white.svg",name:"perun-key"},{url:"assets/img/PerunWebImages/application_form-white.svg",name:"perun-application-form"},{url:"assets/img/PerunWebImages/notification-white.svg",name:"perun-notification"},{url:"assets/img/PerunWebImages/invite_member-white.svg",name:"perun-invite-member"},{url:"assets/img/PerunWebImages/service_identity-white.svg",name:"perun-service-identity"},{url:"assets/img/PerunWebImages/service_identity-black.svg",name:"perun-service-identity-black"},{url:"assets/img/PerunWebImages/create1-white.svg",name:"perun-create1"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource"},{url:"assets/img/PerunWebImages/resource_tags-white.svg",name:"perun-resource-tags"},{url:"assets/img/PerunWebImages/resources_state-white.svg",name:"perun-resources-state"},{url:"assets/img/PerunWebImages/external_sources-white.svg",name:"perun-external-sources"},{url:"assets/img/PerunWebImages/vo-dark.svg",name:"perun-vo-black"},{url:"assets/img/PerunWebImages/group-dark.svg",name:"perun-group-black"},{url:"assets/img/PerunWebImages/facility-dark.svg",name:"perun-facility-black"},{url:"assets/img/publications.svg",name:"perun-publications-white"},{url:"assets/img/PerunWebImages/owner-grey.svg",name:"perun-owner-grey"},{url:"assets/img/PerunWebImages/settings1-blue.svg",name:"perun-settings1"},{url:"assets/img/PerunWebImages/service_destination-blue.svg",name:"perun-service_destination"},{url:"assets/img/PerunWebImages/host-blue.svg",name:"perun-hosts"},{url:"assets/img/PerunWebImages/home.svg",name:"perun-home-white"},{url:"assets/img/PerunWebImages/security_admin-blue.svg",name:"perun-security-teams"},{url:"assets/img/PerunWebImages/black_list-white.svg",name:"perun-black-list"},{url:"assets/img/PerunWebImages/facility-white.svg",name:"perun-facility-white"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource-white"},{url:"assets/img/PerunWebImages/service-white.svg",name:"perun-service"},{url:"assets/img/PerunWebImages/resource-black.svg",name:"perun-resource-black"},{url:"assets/img/PerunWebImages/service_status-grey.svg",name:"perun-service-status"},{url:"assets/img/PerunWebImages/user-dark.svg",name:"perun-user-dark"},{url:"assets/img/PerunWebImages/statistics-blue.svg",name:"perun-statistics"},{url:"assets/img/PerunWebImages/audit_log-blue.svg",name:"perun-audit-log"},{url:"assets/img/PerunWebImages/contact-grey.svg",name:"perun-identity"},{url:"assets/img/PerunWebImages/roles.svg",name:"perun-roles"},{url:"assets/img/PerunWebImages/consent-white.svg",name:"perun-consent-hubs"},{url:"assets/img/PerunWebImages/hierarchical_vo-black.svg",name:"perun-hierarchical-vo"},{url:"assets/img/PerunWebImages/searcher-blue.svg",name:"perun-searcher"},{url:"assets/img/PerunWebImages/propagation-blue.svg",name:"perun-hierarchical-inclusion"},{url:"assets/img/PerunWebImages/verify-grey.svg",name:"perun-verify-grey"},{url:"assets/img/PerunWebImages/info-grey.svg",name:"perun-info-grey"},{url:"assets/img/PerunWebImages/logins.svg",name:"perun-logins"},{url:"assets/img/PerunWebImages/certificates.svg",name:"perun-certificates"},{url:"assets/img/PerunWebImages/authentication.svg",name:"perun-authentication"},{url:"assets/img/PerunWebImages/ban.svg",name:"perun-ban"}]}registerPerunRefreshIcon(){this.customIcons.forEach(d=>{this.matIconRegistry.addSvgIcon(d.name,this.domSanitizer.bypassSecurityTrustResourceUrl(d.url))})}}return o.\u0275fac=function(d){return new(d||o)(m.LFG(Te.jv),m.LFG(Q.H7))},o.\u0275prov=m.Yz7({token:o,factory:o.\u0275fac}),o})();var ge=u(80529),Se=u(62843),Be=u(28746),pe=u(18505),$e=u(70262),Ce=u(63900);let de=(()=>{class o{constructor(d){this.dialogRef=d}close(){this.dialogRef.close(!0)}}return o.\u0275fac=function(d){return new(d||o)(m.Y36(v.so))},o.\u0275cmp=m.Xpm({type:o,selectors:[["perun-web-apps-session-expiration-dialog"]],decls:11,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"ml-auto"],["color","accent","mat-flat-button","",3,"click"]],template:function(d,y){1&d&&(m.TgZ(0,"h1",0),m._uU(1),m.ALo(2,"translate"),m.qZA(),m.TgZ(3,"div",1),m._uU(4),m.ALo(5,"translate"),m.qZA(),m.TgZ(6,"div",2)(7,"div",3)(8,"button",4),m.NdJ("click",function(){return y.close()}),m._uU(9),m.ALo(10,"translate"),m.qZA()()()),2&d&&(m.xp6(1),m.Oqu(m.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.TITLE")),m.xp6(3),m.hij(" ",m.lcZ(5,5,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.DESCRIPTION"),"\n"),m.xp6(5),m.hij(" ",m.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.SIGN_IN")," "))},dependencies:[v.uh,v.xY,v.H8,q.lW,e.X$]}),o})(),re=(()=>{class o{constructor(){this.handleNextError=!0}dontHandleErrorForNext(){this.handleNextError=!1}shouldHandleError(){const d=this.handleNextError;return this.handleNextError=!0,d}}return o.\u0275fac=function(d){return new(d||o)},o.\u0275prov=m.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),B=(()=>{class o{constructor(d){this.translate=d,this.addNotification=new m.vpe,this.defaultErrorDelayMs=5e3,this.defaultSuccessDelayMs=3e3}getDefaultActionMessage(){return void 0===this.defaultAction?this.defaultAction=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_ACTION"):this.defaultAction}getDefaultRpcMessage(){return void 0===this.defaultRpcMessage?this.defaultRpcMessage=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_RPC_ERROR_MESSAGE"):this.defaultRpcMessage}showRPCError(d,y=this.getDefaultRpcMessage()){this.showError("PrivilegeException"===d.name?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.PRIVILEGE_EXCEPTION"):void 0===d.name?y:y+"\n"+d.name,d,d.message)}showRouteError(){const d=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_ERROR"),y=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_DESC");this.showError(d,null,y)}showError(d,y,k,Ie,tt){this.addNotification.emit({type:"error",error:y,description:k,title:d,actionText:void 0===Ie&&void 0!==k?this.getDefaultActionMessage():Ie,delay:this.defaultErrorDelayMs,icon:"error_outline",action:tt,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}showSuccess(d,y,k,Ie){this.addNotification.emit({type:"success",description:y,title:d,actionText:void 0===k&&void 0!==y?this.getDefaultActionMessage():k,delay:this.defaultSuccessDelayMs,icon:"done",action:Ie,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}}return o.\u0275fac=function(d){return new(d||o)(m.LFG(e.sK))},o.\u0275prov=m.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),N=(()=>{class o{constructor(d,y,k,Ie,tt,ct,Ue,at){this.authService=d,this.apiRequestConfiguration=y,this.notificator=k,this.store=Ie,this.dialog=tt,this.initAuthService=ct,this.mfaHandlerService=Ue,this.oauthService=at}intercept(d,y){const k=this.store.getProperty("api_url");if(d.url.includes("i18n")&&(d=d.clone({setHeaders:{"Cache-control":"no-cache, must-revalidate"}})),void 0!==k&&this.isCallToPerunApi(d.url)&&!this.authService.isLoggedIn()&&!this.initAuthService.isServiceAccess()&&!this.dialogRefSessionExpiration){const Ie=(0,S.kZ)();Ie.width="450px",this.dialogRefSessionExpiration=this.dialog.open(de,Ie),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{(0,Be.x)(()=>this.dialogRefSessionExpiration=void 0),sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.reauthenticate()})}return this.initAuthService.isServiceAccess()?d=d.clone({setHeaders:{Authorization:"Basic "+btoa(sessionStorage.getItem("basicUsername")+":"+sessionStorage.getItem("basicPassword"))}}):this.isCallToPerunApi(d.url)&&(d=d.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}})),this.handleRequest(d,y)}reauthenticate(){sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.initAuthService.handleAuthStart()}handleRequest(d,y){const k=this.apiRequestConfiguration.shouldHandleError(),Ie="POST"===d.method&&this.isNotConsolidatorOrLinker()&&this.isCallToPerunApi(d.url);return y.handle(d).pipe((0,pe.b)(tt=>{tt instanceof ge.Zn&&Ie&&this.initAuthService.loadPrincipal()}),(0,$e.K)(tt=>{const ct=tt.error;if("MfaPrivilegeException"===ct.type||"MfaRolePrivilegeException"===ct.type)return this.mfaHandlerService.openMfaWindow("MfaRolePrivilegeException"===ct.type).pipe((0,Ce.w)(Ue=>Ue?("MfaRolePrivilegeException"===ct.type&&window.location.reload(),this.handleRequest(this.replaceAuthenticationToken(d),y)):(0,Se._)(()=>ct)));{this.handleInvalidAccessTokenError(tt);const Ue=this.formatErrors(tt,d);return void 0===Ue?(0,Se._)(()=>tt):(k&&this.notificator.showRPCError(Ue),(0,Se._)(()=>Ue))}}))}replaceAuthenticationToken(d){return d.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}})}isCallToPerunApi(d){return d.startsWith(this.store.getProperty("api_url"))}formatErrors(d,y){let k;console.error(d);const Ie=d.error;if(Ie.errorId&&(k=Ie),void 0!==k)return k.urlWithParams=y.urlWithParams,k.call=y.url,k.payload=y.body,k}isNotConsolidatorOrLinker(){const d=this.store.getProperty("application");return!("Linker"===d||"Consolidator"===d)}handleInvalidAccessTokenError(d){if(401===d.status){const y=(0,S.kZ)();this.dialogRefSessionExpiration=this.dialog.open(de,y),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{this.oauthService.logOut(!0),this.reauthenticate()})}}}return o.\u0275fac=function(d){return new(d||o)(m.LFG(F),m.LFG(re),m.LFG(B),m.LFG(R),m.LFG(v.uw),m.LFG(V),m.LFG(L),m.LFG(D.Ct))},o.\u0275prov=m.Yz7({token:o,factory:o.\u0275fac}),o})(),Me=(()=>{class o{constructor(){this.newNotificationsCount=0,this.notificationData=[]}storeNotification(d){this.newNotificationsCount++,this.notificationData.push(d)}getNotifications(){return this.notificationData.reverse()}clearNotifications(){this.notificationData=[]}}return o.\u0275fac=function(d){return new(d||o)},o.\u0275prov=m.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Y=(()=>{class o{constructor(d,y,k,Ie){this.http=d,this.notificator=y,this.authService=k,this.storeService=Ie}getApiUrl(){return void 0===this.api_url&&(this.api_url=this.storeService.getProperty("api_url")),this.api_url+"/"}getHeaders(){let d=new ge.WM;return d=d.set("Authorization",this.authService.getAuthorizationHeaderValue()),d}get(d,y=!0){const k=`${this.getApiUrl()}${d}`;return this.http.get(k,{headers:this.getHeaders()}).pipe((0,$e.K)(Ie=>this.formatErrors(Ie,k,null,y)))}put(d,y={},k=!0){const Ie=`${this.getApiUrl()}${d}`,tt=JSON.stringify(y);return this.http.put(Ie,tt,{headers:this.getHeaders()}).pipe((0,$e.K)(ct=>this.formatErrors(ct,Ie,tt,k)))}post(d,y={},k=!0){const Ie=`${this.getApiUrl()}${d}`,tt=JSON.stringify(y);let ct=this.getHeaders();return ct=ct.set("Content-Type","application/json; charset=utf-8"),this.http.post(Ie,tt,{headers:ct}).pipe((0,$e.K)(Ue=>this.formatErrors(Ue,Ie,tt,k)))}delete(d,y=!0){const k=`${this.getApiUrl()}${d}`;return this.http.delete(k,{headers:this.getHeaders()}).pipe((0,$e.K)(Ie=>this.formatErrors(Ie,k,null,y)))}formatErrors(d,y,k,Ie){const tt=d.error;return tt.call=y,tt.payload=k,Ie&&this.notificator.showRPCError(d.error),(0,Se._)(tt)}}return o.\u0275fac=function(d){return new(d||o)(m.LFG(ge.eN),m.LFG(B),m.LFG(F),m.LFG(R))},o.\u0275prov=m.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),be=(()=>{class o{constructor(d){this.router=d,this.lastState="forward",this.history=new Set,d.events.subscribe(y=>{y instanceof E.OD&&("popstate"===y.navigationTrigger?this.history.has(y.restoredState.navigationId)?(this.lastState="back",this.history.delete(y.restoredState.navigationId)):(this.lastState="forward",this.history.add(y.id)):(this.history.add(y.id),this.lastState="forward"))})}forceNavigate(d,y){if(null===d)return;let k="";d.forEach(Ie=>k+="/"+Ie),k.length>0&&(k=k.substring(1)),void 0===y&&(y={}),y.queryParams={redirectTo:k},y.queryParamsHandling="merge",this.router.navigate(["redirect"],y)}getLastState(){return this.lastState}}return o.\u0275fac=function(d){return new(d||o)(m.LFG(E.F0))},o.\u0275prov=m.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),De=(()=>{class o{isAllSelected(d,y,k=(()=>!0)){const Ie=y.paginator.pageSize??0,tt=y.paginator.pageIndex??0,ct=y.paginator.hasNextPage(),Ue=y.data.length===y.filteredData.length;this.numCanBeSelected=0,this.pageStart=tt*Ie,this.pageEnd=this.pageStart+Ie,this.numSelected=d,this.dataLength=Ue?y.data.length:y.filteredData.length;const at=y.sort;return ct||(this.modulo=this.dataLength%Ie,this.pageEnd=0===this.modulo?this.pageStart+Ie:this.pageStart+this.modulo),this.pageIterator=0,y.sortData(y.filteredData,at).forEach(fe=>{this.pageStart<=this.pageIterator&&this.pageIterator{at?fe(Oe)&&this.pageStart<=this.pageIterator&&this.pageIterator!0)){return y===d.data.reduce((Ie,tt)=>Ie+Number(k(tt)),0)}masterTogglePaginated(d,y,k,Ie=(()=>!0)){y.clear(),k&&d.data.forEach(tt=>{Ie(tt)&&y.select(tt)})}}return o.\u0275fac=function(d){return new(d||o)},o.\u0275prov=m.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),We=(()=>{class o{constructor(d,y,k,Ie){this.membersService=d,this.usersService=y,this.auditMessagesManagerService=k,this.registrarService=Ie}getMembers(d,y,k,Ie,tt,ct,Ue,at,fe,Oe){return this.membersService.getMembersPage({vo:d,attrNames:y,query:{pageSize:tt,offset:Ie*tt,order:k,sortColumn:ct,statuses:Ue,searchString:at,groupId:fe,groupStatuses:Oe}})}getUsers(d,y,k,Ie,tt,ct,Ue,at,fe,Oe,Ke,je,Le){return this.usersService.getUsersPage({attrNames:d,query:{offset:Ie*k,pageSize:Ie,order:y,sortColumn:tt,searchString:ct,withoutVo:Ue,facilityId:at,voId:fe,resourceId:Oe,serviceId:Ke,onlyAllowed:je,consentStatuses:Le}})}getAuditMessages(d,y,k){return this.auditMessagesManagerService.getMessagesPage({query:{offset:k*y,pageSize:k,order:d}})}getApplications(d,y,k,Ie,tt,ct,Ue,at,fe,Oe,Ke,je,Le){return this.registrarService.getApplicationsPage({vo:Ke,query:{pageSize:d,offset:y*d,order:k,sortColumn:Ie,searchString:ct,includeGroupApplications:tt,getDetails:Le,states:Ue,dateFrom:at,dateTo:fe,userId:Oe,groupId:je}})}}return o.\u0275fac=function(d){return new(d||o)(m.LFG(w.uq),m.LFG(w.Fv),m.LFG(w.jw),m.LFG(w.tk))},o.\u0275prov=m.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();var Pe=u(61135),nt=u(39646),Ye=u(4128);function Tt(o){return"allObjectCount"in o}class J{constructor(l,d){this.dynamicPaginatingService=l,this.authzService=d,this.allObjectCount=0,this.routeAuth=!0,this.step=1e4,this.dataSubject=new Pe.X([]),this.loadingSubject=new Pe.X(!1),this.loading$=this.loadingSubject.asObservable()}loadMembers(l,d,y,k,Ie,tt,ct,Ue,at,fe){this.loadingSubject.next(!0),this.latestQueryTime=Date.now();const Oe=this.latestQueryTime;this.dynamicPaginatingService.getMembers(l,d,y,k,Ie,tt,ct,Ue,at,fe).pipe((0,$e.K)(()=>(0,nt.of)([])),(0,Be.x)(()=>this.loadingSubject.next(!1))).subscribe(Ke=>{if(this.latestQueryTime<=Oe){const je=Ke.data;null!==je&&0!==je.length&&(this.routeAuth=this.authzService.isAuthorized("getMemberById_int_policy",[{beanName:"Vo",id:l},je[0]])),this.allObjectCount=Ke.totalCount,this.dataSubject.next(je)}})}getAllMembers(l,d,y,k,Ie,tt,ct,Ue,at){return new G.y(fe=>{const Oe=[];for(let Ke=0;Ke{const je=[].concat(...Ke.map(Le=>Le.data));fe.next(je),fe.complete()},error:Ke=>fe.error(Ke)})})}loadUsers(l,d,y,k,Ie,tt,ct,Ue,at,fe,Oe,Ke,je){this.loadingSubject.next(!0),this.latestQueryTime=Date.now();const Le=this.latestQueryTime;this.dynamicPaginatingService.getUsers(l,k,y,d,Ie,tt,ct,Ue,at,fe,Oe,Ke,je).pipe((0,$e.K)(()=>(0,nt.of)([])),(0,Be.x)(()=>this.loadingSubject.next(!1))).subscribe(ie=>{if(this.latestQueryTime<=Le){const Ae=ie.data;this.allObjectCount=ie.totalCount,this.dataSubject.next(Ae)}})}getAllUsers(l,d,y,k,Ie,tt,ct,Ue,at,fe,Oe,Ke){return new G.y(je=>{const Le=[];for(let ie=0;ie{const Ae=[].concat(...ie.map(st=>st.data));je.next(Ae),je.complete()},error:ie=>je.error(ie)})})}loadAuditMessages(l,d,y){this.loadingSubject.next(!0),this.latestQueryTime=Date.now();const k=this.latestQueryTime;this.dynamicPaginatingService.getAuditMessages(y,d,l).pipe((0,$e.K)(()=>(0,nt.of)([])),(0,Be.x)(()=>this.loadingSubject.next(!1))).subscribe(Ie=>{if(this.latestQueryTime<=k){const tt=Ie.data;this.allObjectCount=Ie.totalCount,this.dataSubject.next(tt)}})}getAllAuditMessages(l,d){return new G.y(y=>{const k=[];for(let Ie=0;Ie{const tt=[].concat(...Ie.map(ct=>ct.data));y.next(tt),y.complete()},error:Ie=>y.error(Ie)})})}loadApplications(l,d,y,k,Ie,tt,ct,Ue,at,fe,Oe,Ke,je){this.loadingSubject.next(!0),this.latestQueryTime=Date.now();const Le=this.latestQueryTime;this.dynamicPaginatingService.getApplications(l,d,y,k,tt,Ie,ct,Ue,at,fe,Ke,Oe,je??!1).pipe((0,$e.K)(()=>(0,nt.of)([])),(0,Be.x)(()=>this.loadingSubject.next(!1))).subscribe(ie=>{if(this.latestQueryTime<=Le){const Ae=ie.data;if(null!==Ae&&0!==Ae.length){const st=Ae;this.routeAuth=st[0].group?this.authzService.isAuthorized("getApplicationsForGroup_Group_List_policy",[st[0].group]):this.authzService.isAuthorized("getApplicationsForVo_Vo_List_Boolean_policy",[st[0].vo])}this.allObjectCount=ie.totalCount,this.dataSubject.next(Ae)}})}getAllApplications(l,d,y,k,Ie,tt,ct,Ue,at,fe,Oe,Ke){return new G.y(je=>{const Le=[];for(let ie=0;ie{const Ae=[].concat(...ie.map(st=>st.data));je.next(Ae),je.complete()},error:ie=>je.error(ie)})})}connect(){return this.dataSubject.asObservable()}disconnect(){this.dataSubject.complete(),this.loadingSubject.complete()}getData(){return this.dataSubject.value}}let Xe=(()=>{class o{constructor(d,y){this.route=d,this.store=y}getPreferredLanguage(d){const y=this.store.getProperty("supported_languages"),k=navigator.languages.map(ct=>ct.split("-")[0]),Ie=location.search.substring(1).split("&");let tt=null;for(const ct of Ie){const Ue=ct.split("=");"lang"===Ue[0]&&(tt=Ue[1])}return tt&&y.includes(tt)?tt:d&&y.includes(d)?d:k&&y.includes(k[0])?k[0]:"en"}}return o.\u0275fac=function(d){return new(d||o)(m.LFG(E.gz),m.LFG(R))},o.\u0275prov=m.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();var le=u(15861);let ne=(()=>{class o{generatePdf(d){var y=this;return(0,le.Z)(function*(){yield y.loadPdfMake(),y.pdfMake.createPdf(d).open()})()}loadPdfMake(){var d=this;return(0,le.Z)(function*(){if(!d.pdfMake){const y=yield u.e(641).then(u.t.bind(u,54641,23)),k=yield u.e(493).then(u.t.bind(u,58493,19));d.pdfMake=y.default,d.pdfMake.vfs=k.default.pdfMake.vfs}})()}}return o.\u0275fac=function(d){return new(d||o)},o.\u0275prov=m.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),ke=(()=>{class o{constructor(d){this.pdfService=d}static generateTableForUser(d){const y=d.name.replace(";"," ").split(";")[0];return"OK"!==d.status?this.generateErrorRowForUser(y,d.status):o.generateRowForUser(y,d.login,d.password)}static generateErrorRowForUser(d,y){return{table:{heights:[30,1,1],widths:[249,249],body:[[{text:d,colSpan:1,alignment:"center",bold:!0,fontSize:12,margin:[20,25],color:"red"},{text:y,alignment:"center",bold:!0,color:"red"}]]}}}static generateRowForUser(d,y,k){return{table:{heights:[30,0],widths:[120,120,120,120],body:[[o.generateNameCell(d),{},o.getPasswordLabelCell(),o.generatePasswordCell(k)],[o.getLoginLabelCell(),o.generateLoginCell(y),{},{}]]}}}static generateNameCell(d){return{text:d,colSpan:2,alignment:"center",border:[!0,!0,!0,!1],bold:!0,fontSize:12,margin:[10,10]}}static generatePasswordCell(d){return{text:d??"N/A",border:[!1,!0,!0,!0],bold:!0,margin:[0,25],rowSpan:2,alignment:"left"}}static generateLoginCell(d){return{text:d??"N/A",border:[!1,!1,!0,!0],bold:!0}}static getLoginLabelCell(){return{text:"Login:",border:[!0,!1,!1,!0],alignment:"right",margin:[0,0,0,10]}}static getPasswordLabelCell(){return{text:"Password:",border:[!0,!0,!1,!0],alignment:"right",margin:[0,25],rowSpan:2}}generate(d){var y=this;return(0,le.Z)(function*(){const k=[];for(const tt of d)k.push(o.generateTableForUser(tt));return y.pdfService.generatePdf({content:k})})()}}return o.\u0275fac=function(d){return new(d||o)(m.LFG(ne))},o.\u0275prov=m.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Ee=(()=>{class o{constructor(d){this.storeService=d}static getBrandContainingDomain(d,y){for(const Ie of d)if(Ie.newApps.admin===y||Ie.newApps.profile===y||Ie.newApps.pwdReset===y||Ie.newApps.consolidator===y||Ie.newApps.linker===y)return Ie;return d.filter(Ie=>"default"===Ie.name)[0]||d[0]}getUrlForOtherApplication(d,y){const Ie=window.location.href.split("/"),tt=Ie[0]+"//"+Ie[2],ct=o.getBrandContainingDomain(this.storeService.getAppsConfig().brands,tt);let Ue;if(ct.newApps[d])Ue=ct.newApps[d],"pwdReset"===d&&(Ue+=`?login-namespace=${y}`);else switch(Ue=ct.oldGuiDomain+"/fed",d){case"admin":Ue+="/gui/";break;case"profile":Ue+="/profile/";break;case"pwdReset":Ue+=`/pwd-reset/?login-namespace=${y}`}return Ue}}return o.\u0275fac=function(d){return new(d||o)(m.LFG(R))},o.\u0275prov=m.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();var ot=u(98739);let it=(()=>{class o extends ot.ye{constructor(){super(...arguments),this.getRangeLabel=function(d,y,k){let Ie;return Ie=k<1e3?String(k):k<1e4?"1 000":k<1e5?"10 000":"100 000",`${d*y+1} \u2013 ${(d+1)*y} of ${Ie} +`}}}return o.\u0275fac=function(){let l;return function(y){return(l||(l=m.n5z(o)))(y||o)}}(),o.\u0275prov=m.Yz7({token:o,factory:o.\u0275fac}),o})(),oe=(()=>{class o{setEntity(d){this.entity=d}getEntity(){return this.entity}}return o.\u0275fac=function(d){return new(d||o)},o.\u0275prov=m.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();var X=u(64080);let r=(()=>{class o{constructor(d,y,k,Ie,tt){this.authResolver=d,this.attributesManager=y,this.notificator=k,this.apiRequest=Ie,this.router=tt,this.routePolicies=new Map([["organizations",ct=>this.authResolver.isAuthorized("getEnrichedVoById_int_policy",[ct])],["organizations-members",ct=>this.authResolver.isAuthorized("getMembersPage_Vo_MembersPageQuery_List_policy",[ct])],["organizations-groups",ct=>this.authResolver.isAuthorized("getAllRichGroupsWithAttributesByNames_Vo_List_policy",[ct])],["organizations-resources",ct=>this.authResolver.isAuthorized("getRichResources_Vo_policy",[ct])||this.authResolver.isAuthorized("getAllResourcesTagsForVo_Vo_policy",[ct])||this.authResolver.isAuthorized("getResourcesState_Vo_policy",[ct])],["organizations-resources-preview",ct=>this.authResolver.isAuthorized("getRichResources_Vo_policy",[ct])],["organizations-resources-tags",ct=>this.authResolver.isAuthorized("getAllResourcesTagsForVo_Vo_policy",[ct])],["organizations-resources-states",ct=>this.authResolver.isAuthorized("getResourcesState_Vo_policy",[ct])],["organizations-applications",ct=>this.authResolver.isAuthorized("getApplicationsForVo_Vo_List_Boolean_policy",[ct])],["organizations-sponsoredMembers",ct=>this.authResolver.isAuthorized("getSponsoredMembersAndTheirSponsors_Vo_policy",[ct])],["organizations-serviceAccounts",ct=>this.authResolver.isAuthorized("createSpecificMember_Vo_Candidate_List_SpecificUserType_List_policy",[ct])],["organizations-attributes",ct=>this.authResolver.isAuthorized("getEnrichedVoById_int_policy",[ct])],["organizations-statistics",ct=>this.authResolver.isAuthorized("getMembersCount_Vo_Status_policy",[ct])&&this.authResolver.isAuthorized("getMembersCount_Vo_policy",[ct])],["organizations-settings",ct=>this.authResolver.isAuthorized("getVoExtSources_Vo_policy",[ct])||this.authResolver.isManagerPagePrivileged(ct)||this.authResolver.isThisVoAdminOrObserver(ct.id)],["organizations-settings-expiration",ct=>this.authResolver.isThisVoAdminOrObserver(ct.id)],["organizations-settings-managers",ct=>this.authResolver.isManagerPagePrivileged(ct)],["organizations-settings-applicationForm",ct=>this.authResolver.isThisVoAdminOrObserver(ct.id)],["organizations-settings-notifications",ct=>this.authResolver.isThisVoAdminOrObserver(ct.id)],["organizations-settings-extsources",ct=>this.authResolver.isAuthorized("getVoExtSources_Vo_policy",[ct])],["organizations-settings-memberOrganizations",()=>this.authResolver.isPerunAdmin()],["organizations-settings-hierarchicalInclusion",()=>this.authResolver.isPerunAdmin()],["organizations-settings-bans",ct=>this.authResolver.isAuthorized("getBansForVo_int_policy",[ct])],["members",ct=>this.authResolver.isAuthorized("getRichMemberWithAttributes_Member_policy",[ct])],["members-groups",ct=>this.authResolver.isAuthorized("getMemberGroups_Member_policy",[ct])],["members-applications",ct=>this.authResolver.isAuthorized("vo-getApplicationsForMember_Group_Member_policy",[ct])],["members-resources",ct=>this.authResolver.isAuthorized("getAssignedRichResources_Member_policy",[ct])],["members-attributes",ct=>this.authResolver.isAuthorized("getRichMemberWithAttributes_Member_policy",[ct])],["members-bans",ct=>this.authResolver.isAuthorized("vo-getBanForMember_member_policy",[ct])],["groups",ct=>this.authResolver.isAuthorized("getGroupById_int_policy",[ct])],["groups-members",ct=>this.authResolver.isAuthorized("group-getMembersPage_Vo_MembersPageQuery_List_policy",[ct])],["groups-subgroups",ct=>this.authResolver.isAuthorized("getAllRichSubGroupsWithAttributesByNames_Group_List_policy",[ct])],["groups-resources",ct=>this.authResolver.isAuthorized("getAssignedRichResources_Group_policy",[ct])],["groups-applications",ct=>this.authResolver.isAuthorized("getApplicationsForGroup_Group_List_policy",[ct])],["groups-attributes",ct=>this.authResolver.isAuthorized("getGroupById_int_policy",[ct])],["groups-statistics",ct=>this.authResolver.isAuthorized("getGroupMembersCount_Group_policy",[ct])&&this.authResolver.isAuthorized("getGroupMembersCountsByVoStatus_Group_policy",[ct])&&this.authResolver.isAuthorized("getGroupMembersCountsByGroupStatus_Group_policy",[ct])],["groups-roles",ct=>this.authResolver.isAuthorized("getGroupRoles_int_policy",[ct])],["groups-settings",ct=>this.authResolver.isManagerPagePrivileged(ct)||this.authResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[ct])||this.authResolver.isAuthorized("getGroupUnions_Group_boolean_policy",[ct])||this.authResolver.isAuthorized("getGroupExtSources_Group_policy",[ct])],["groups-settings-managers",ct=>this.authResolver.isManagerPagePrivileged(ct)],["groups-settings-applicationForm",ct=>this.authResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[ct])],["groups-settings-notifications",ct=>this.authResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[ct])],["groups-settings-relations",ct=>this.authResolver.isAuthorized("getGroupUnions_Group_boolean_policy",[ct])],["groups-settings-extsources",ct=>this.authResolver.isAuthorized("getGroupExtSources_Group_policy",[ct])],["groups-settings-expiration",ct=>(this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getGroupAttributeByName(ct.id,X.r.GROUP_DEF_EXPIRATION_RULES).subscribe({next:()=>{},error:()=>{this.notificator.showRouteError(),this.router.navigate(["/notAuthorized"],{queryParamsHandling:"preserve"})}}),!0)],["resources",ct=>this.authResolver.isAuthorized("getRichResourceById_int_policy",[ct])],["resources-groups",ct=>this.authResolver.isAuthorized("getAssignedGroups_Resource_policy",[ct])],["resources-services",ct=>this.authResolver.isAuthorized("getAssignedServices_Resource_policy",[ct])],["resources-members",ct=>this.authResolver.isAuthorized("getAssignedMembers_Resource_policy",[ct])],["resources-tags",ct=>this.authResolver.isAuthorized("getAllResourcesTagsForResource_Resource_policy",[ct])],["resources-attributes",ct=>this.authResolver.isAuthorized("getRichResourceById_int_policy",[ct])],["resources-settings",ct=>this.authResolver.isManagerPagePrivileged(ct)],["resources-settings-managers",ct=>this.authResolver.isManagerPagePrivileged(ct)],["resources-settings-bans",ct=>this.authResolver.isAuthorized("getBansForResource_int_policy",[ct])],["facilities",ct=>this.authResolver.isAuthorized("getFacilityById_int_policy",[ct])],["facilities-resources",ct=>this.authResolver.isAuthorized("getAssignedRichResources_Facility_policy",[ct])],["facilities-allowed-users",ct=>this.authResolver.isAuthorized("getAssignedUsers_Facility_Service_policy",[ct])],["facilities-allowed-groups",ct=>this.authResolver.isAuthorized("getAllowedGroups_Facility_Vo_Service_policy",[ct])],["facilities-services-status",ct=>this.authResolver.isAuthorized("getFacilityServicesState_Facility_policy",[ct])],["services-status",ct=>this.authResolver.isAuthorized("getTaskResultsByTask_int_policy",[ct])],["facilities-services-destinations",ct=>this.authResolver.isAuthorized("getAllRichDestinations_Facility_policy",[ct])],["facilities-hosts",()=>this.authResolver.isFacilityAdmin()],["facilities-attributes",ct=>this.authResolver.isAuthorized("getFacilityById_int_policy",[ct])],["facilities-settings",ct=>this.authResolver.isAuthorized("getOwners_Facility_policy",[ct])||this.authResolver.isManagerPagePrivileged(ct)||this.authResolver.isAuthorized("getAssignedSecurityTeams_Facility_policy",[ct])||this.authResolver.isAuthorized("getBansForFacility_int_policy",[ct])],["facilities-settings-owners",ct=>this.authResolver.isAuthorized("getOwners_Facility_policy",[ct])],["facilities-settings-managers",ct=>this.authResolver.isManagerPagePrivileged(ct)],["facilities-settings-security-teams",ct=>this.authResolver.isAuthorized("getAssignedSecurityTeams_Facility_policy",[ct])],["facilities-settings-blacklist",ct=>this.authResolver.isAuthorized("getBansForFacility_int_policy",[ct])],["facilities-settings-bans",ct=>this.authResolver.isAuthorized("getBansForUser_int_policy",[ct])]])}canNavigate(d,y){if(d.startsWith("admin")||d.startsWith("identities"))return this.authResolver.isPerunAdminOrObserver();if("facilities"===d&&-1===y.id)return this.authResolver.canManageFacilities();const k=this.routePolicies.get(d);return!k||k(y)}}return o.\u0275fac=function(d){return new(d||o)(m.LFG(g),m.LFG(w.H8),m.LFG(B),m.LFG(re),m.LFG(E.F0))},o.\u0275prov=m.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();var s=u(54004),_=u(4707);let c=(()=>{class o{constructor(d,y){this.attributesManager=d,this.authResolver=y,this.roleWithObjects$=new _.t(1),(0,nt.of)(this.authResolver.getAllRules()).pipe((0,s.U)(k=>k.filter(Ie=>Ie.assignableToAttributes)),(0,Ce.w)(k=>{const Ie=new Map;return k.map(tt=>Ie.set(tt.roleName,["None",...Object.keys(tt.assignedObjects)])),(0,nt.of)(new Map([...Ie.entries()].sort()))})).subscribe(this.roleWithObjects$)}getRoles(){return(0,nt.of)(this.authResolver.getAllRules().filter(d=>d.assignableToAttributes))}getObjects(d){return this.roleWithObjects$.pipe((0,Ce.w)(y=>(0,nt.of)(y.get(d))))}filterNullInPolicy(){return function(d){return d.pipe((0,s.U)(y=>(y.forEach(k=>k.policies=k.policies.filter(Ie=>null!==Ie.role&&null!==Ie.object)),y)))}}updateAttributeAction(d,y,k,Ie){return void 0!==d&&d!==y?this.attributesManager.setAttributeActionCriticality(k,Ie,d):(0,nt.of)(void 0)}addAttributeId(){return function(d){return d.pipe((0,s.U)(([y,k])=>(k.forEach(Ie=>Ie.attributeId=y),k)))}}}return o.\u0275fac=function(d){return new(d||o)(m.LFG(w.H8),m.LFG(g))},o.\u0275prov=m.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();var a=u(36895);let i=(()=>{class o{constructor(){this.getDataForColumn=(d,y,k)=>{switch(y){case"id":return d.id.toString();case"vo":return k.get(d.voId);case"name":return d.name;case"description":return d.description;case"expiration":{const Ie=(0,S.x2)(d);return(0,S.sG)(Ie)}case"recent":return"";case"status":return d.status;case"uuid":return d.uuid;default:return d[y]}},this.getSortDataForColumn=(d,y,k,Ie)=>{switch(y){case"id":return d.id.toString();case"vo":return k.get(d.voId);case"name":return d.name;case"description":return d.description;case"expiration":{const tt=(0,S.x2)(d);return tt&&"never"!==tt.toLowerCase()?(0,a.p6)(tt,"yyyy.MM.dd","en"):tt}case"recent":return Ie&&Ie.includes(d.id)?"#".repeat(Ie.indexOf(d.id)):d.name;case"status":return d.status;default:return d[y]}}}}return o.\u0275fac=function(d){return new(d||o)},o.\u0275prov=m.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),t=(()=>{class o{constructor(d,y){this.guiAuthResolver=d,this.authzResolver=y}findSponsorsAuth(d){const y=[this.guiAuthResolver.getRuleForRole("SPONSOR")],k=new Map;return this.guiAuthResolver.setRolesAuthorization(y,d,k),k.get(y[0].roleName).readAuth}getSponsors(d){const y=[X.r.USER_DEF_PREFERRED_MAIL];return new G.y(k=>{this.authzResolver.getAuthzRichAdmins(p.u.SPONSOR,d,"Vo",y,!1,!1).subscribe(Ie=>{k.next(Ie),k.complete()})})}}return o.\u0275fac=function(d){return new(d||o)(m.LFG(g),m.LFG(w.Ct))},o.\u0275prov=m.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),n=(()=>{class o{prepareRoles(d,y){const k=new Map;return y.forEach(Ie=>{const tt=new Map;Object.keys(d[Ie]).forEach(Ue=>{tt.set(Ue,d[Ie][Ue])}),k.set(Ie,tt)}),k}}return o.\u0275fac=function(d){return new(d||o)},o.\u0275prov=m.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})()},64080:(Qe,he,u)=>{"use strict";u.d(he,{r:()=>e});let e=(()=>{class m{}return m.MEMBER_DEF_EXPIRATION="urn:perun:member:attribute-def:def:membershipExpiration",m.MEMBER_DEF_GROUP_EXPIRATION="urn:perun:member_group:attribute-def:def:groupMembershipExpiration",m.MEMBER_GROUP_STATUS="urn:perun:member_group:attribute-def:virt:groupStatus",m.MEMBER_GROUP_STATUS_INDIRECT="urn:perun:member_group:attribute-def:virt:groupStatusIndirect",m.MEMBER_DEF_ORGANIZATION="urn:perun:member:attribute-def:def:organization",m.MEMBER_DEF_MAIL="urn:perun:member:attribute-def:def:mail",m.MEMBER_CORE_ID="urn:perun:member:attribute-def:core:id",m.MEMBER_LIFECYCLE_ALTERABLE="urn:perun:member:attribute-def:virt:isLifecycleAlterable",m.VO_DEF_EXPIRATION_RULES="urn:perun:vo:attribute-def:def:membershipExpirationRules",m.VO_DEF_MAIL_FOOTER="urn:perun:vo:attribute-def:def:mailFooter",m.VO_DEF_MAIL_HTML_FOOTER="urn:perun:vo:attribute-def:def:htmlMailFooter",m.VO_BLOCK_MANUAL_MEMBER_ADDING="urn:perun:vo:attribute-def:def:blockManualMemberAdding",m.USER_DEF_ORGANIZATION="urn:perun:user:attribute-def:def:organization",m.USER_DEF_PREFERRED_MAIL="urn:perun:user:attribute-def:def:preferredMail",m.USER_DEF_CERTIFICATES="urn:perun:user:attribute-def:def:userCertificates",m.GROUP_DEF_EXPIRATION_RULES="urn:perun:group:attribute-def:def:groupMembershipExpirationRules",m.GROUP_DEF_MAIL_FOOTER="urn:perun:group:attribute-def:def:mailFooter",m.GROUP_DEF_MAIL_HTML_FOOTER="urn:perun:group:attribute-def:def:htmlMailFooter",m.GROUP_SYNC_ENABLED="urn:perun:group:attribute-def:def:synchronizationEnabled",m.GROUP_LAST_SYNC_STATE="urn:perun:group:attribute-def:def:lastSynchronizationState",m.GROUP_LAST_SYNC_TIMESTAMP="urn:perun:group:attribute-def:def:lastSynchronizationTimestamp",m.GROUP_STRUCTURE_SYNC_ENABLED="urn:perun:group:attribute-def:def:groupStructureSynchronizationEnabled",m.GROUP_LAST_STRUCTURE_SYNC_STATE="urn:perun:group:attribute-def:def:lastGroupStructureSynchronizationState",m.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP="urn:perun:group:attribute-def:def:lastGroupStructureSynchronizationTimestamp",m.GROUP_SYNC_INTERVAL="urn:perun:group:attribute-def:def:synchronizationInterval",m.GROUP_BLOCK_MANUAL_MEMBER_ADDING="urn:perun:group:attribute-def:def:blockManualMemberAdding",m.UES_DEF_MAIL="urn:perun:ues:attribute-def:def:mail",m.UES_DEF_ORGANIZATION="urn:perun:ues:attribute-def:def:o",m.UES_SOURCE_IDP_NAME="urn:perun:ues:attribute-def:def:sourceIdPName",m.UES_IDP_ORGANIZATION_NAME="urn:perun:ues:attribute-def:def:IdPOrganizationName",m})()},9244:(Qe,he,u)=>{"use strict";u.d(he,{dN:()=>v,Je:()=>E,f7:()=>S.f7,l9:()=>R.l,sF:()=>S.sF,XI:()=>S.XI,Xd:()=>S.Xd,aC:()=>S.aC,fx:()=>S.fx,dv:()=>S.dv,i5:()=>S.i5,Sd:()=>S.Sd,pR:()=>S.pR,ys:()=>S.ys,O6:()=>S.O6,B2:()=>S.B2,mH:()=>S.mH,MX:()=>S.MX,cT:()=>S.cT,oU:()=>S.oU,IL:()=>S.IL,Jc:()=>S.Jc,Xn:()=>S.Xn,kZ:()=>S.kZ,v$:()=>S.v$,x2:()=>S.x2,vL:()=>S.vL,j4:()=>S.j4,jh:()=>S.jh,bx:()=>S.bx,im:()=>S.im,zr:()=>S.zr,Hm:()=>S.Hm,Cz:()=>S.Cz,sG:()=>S.sG,g$:()=>S.g$,bD:()=>S.bD,lt:()=>S.lt,Oe:()=>S.Oe,hu:()=>S.hu,Gw:()=>S.Gw,O5:()=>S.O5,te:()=>S.te,kN:()=>S.kN,$0:()=>S.$0,OV:()=>S.OV});var e=u(98739),m=u(28255),A=u(97392),w=u(4859),p=u(89383),g=u(36895),T=u(94650);let E=(()=>{class D{}return D.\u0275fac=function(z){return new(z||D)},D.\u0275mod=T.oAB({type:D}),D.\u0275inj=T.cJS({imports:[e.TU,m.Tx,A.Ps,w.ot,p.aw,g.ez]}),D})();var S=u(17218),R=u(18750);class v{static passwordMatchValidator(F){const z=F.get("passwordCtrl").value,$=F.get("passwordAgainCtrl").value;return F.get("passwordAgainCtrl").setErrors(z!==$?{noPasswordMatch:!0}:null),null}static patternValidator(F){return z=>{if(!z.value)return null;let $=0;for(const G of F)$+=G.test(z.value)?1:0;return $>=3?null:{isWeak:!0}}}}},17218:(Qe,he,u)=>{"use strict";u.d(he,{$0:()=>v,B2:()=>E,Cz:()=>G,Gw:()=>We,Hm:()=>be,IL:()=>pe,Jc:()=>$e,MX:()=>Se,O5:()=>r,O6:()=>ne,OV:()=>ge,Oe:()=>De,Sd:()=>J,XI:()=>Q,Xd:()=>Ee,Xn:()=>le,aC:()=>ke,bD:()=>z,bx:()=>X,cT:()=>Xe,dv:()=>Y,f7:()=>T,fx:()=>ot,g$:()=>S,hu:()=>$,i5:()=>N,im:()=>s,j4:()=>L,jh:()=>oe,kN:()=>R,kZ:()=>Me,lt:()=>D,mH:()=>it,oU:()=>Be,pR:()=>Tt,sF:()=>V,sG:()=>nt,te:()=>_e,v$:()=>Ce,vL:()=>H,x2:()=>Pe,ys:()=>ce,zr:()=>_});var e=u(15861),m=u(65412),A=u(36895),w=u(94327),g=u(64080);const T=[5,10,25,100],E=/^(([^<>+()[\]\\.,;:\s@"-#$%&=]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]+))$/;function S(c){let a="";return c?.userAttributes.forEach(i=>{"preferredMail"===i.friendlyName&&(a=i.value)}),a&&0===a.length&&null!==c.memberAttributes&&c.memberAttributes.forEach(i=>{"mail"===i.friendlyName&&null!==i.value&&(a=i.value)}),a}function R(c){let a="";return c&&c.userAttributes.forEach(i=>{"preferredMail"===i.friendlyName&&(a=i.value)}),a}function v(c){let a="";return!!c&&!!c.userAttributes&&c.userAttributes.filter(i=>"login-namespace"===i.baseFriendlyName).filter(i=>null!==i.value).forEach(i=>{a=a.concat(i.friendlyNameParameter,": ",i.value,", ")}),a.endsWith(", ")&&(a=a.substring(0,a.length-2)),a}function D(c){let a="";return!!c&&!!c.userAttributes&&c.userAttributes.filter(i=>"login-namespace"===i.baseFriendlyName).filter(i=>null!==i.value).forEach(i=>{a=a.concat(i.friendlyNameParameter,": ",i.value,", ")}),a.endsWith(", ")&&(a=a.substring(0,a.length-2)),a}function z(c){let a="";return null!==c.titleBefore&&(a+=c.titleBefore+" "),null!==c.firstName&&(a+=c.firstName+" "),null!==c.middleName&&(a+=c.middleName+" "),null!==c.lastName&&(a+=c.lastName+" "),null!==c.titleAfter&&(a+=c.titleAfter+" "),a.endsWith(" ")&&(a=a.substring(0,a.length-1)),a}function $(c){let a="";return null!==c.firstName&&(a+=c.firstName+" "),null!==c.middleName&&(a+=c.middleName+" "),null!==c.lastName&&(a+=c.lastName+" "),a.endsWith(" ")&&(a=a.substring(0,a.length-1)),a}function G(c){let a="";return c.split(/(?=[A-Z])/g).forEach(t=>{a=a.concat(t.toLowerCase()),a=a.concat(" ")}),a=a.charAt(0).toUpperCase()+a.slice(1,a.length-1),a}function _e(c){let a="";for(const i of c)"technical"===i.type&&(a+=i.name+", ");return a.endsWith(", ")&&(a=a.substring(0,a.length-2)),a}function ce(c,a){return Te.apply(this,arguments)}function Te(){return(Te=(0,e.Z)(function*(c,a){yield b(c),a()})).apply(this,arguments)}function b(c){return new Promise(a=>setTimeout(a,c))}function H(c){return JSON.parse(localStorage.getItem(c))||[]}function L(c){return JSON.parse(localStorage.getItem(c))||[]}function V(c,a){if(null===localStorage.getItem(c)){const i=[];i.unshift(a.id),localStorage.setItem(c,JSON.stringify(i))}else{const i=JSON.parse(localStorage.getItem(c)),t=function xe(c,a){for(let i=0;i0&&i.splice(t,1),0!==t&&i.unshift(a.id),i.length>5&&i.pop(),localStorage.setItem(c,JSON.stringify(i))}}function Q(c,a){if(null===localStorage.getItem("recent")){let i;i="Group"===c.beanName?[{id:c.id,name:c.shortName,fullName:c.name,type:c.beanName,voId:c.voId,voName:a}]:[{id:c.id,name:c.name,type:c.beanName,voId:c.voId}],localStorage.setItem("recent",JSON.stringify(i))}else{const i=JSON.parse(localStorage.getItem("recent"));let t;t="Group"===c.beanName?{id:c.id,name:c.shortName,fullName:c.name,type:c.beanName,voId:c.voId,voName:a}:{id:c.id,name:c.name,type:c.beanName,voId:c.voId};const n=function ae(c,a){for(let i=0;i0&&i.splice(n,1),0!==n&&i.unshift(t),i.length>5&&i.pop(),localStorage.setItem("recent",JSON.stringify(i))}}function ge(c){let a="";return c&&c.userAttributes.forEach(i=>{"organization"===i.friendlyName&&(a=i.value)}),a}function Se(c){return c.filter(a=>!a.namespace.includes("def:core"))}function Be(c,a){const i=a.find(t=>t.id===c);return i?i.parentGroupId?Be(i.parentGroupId,a).concat(i):[i]:[]}function pe(c,a){for(const i of c)if(i.namespace+":"+i.friendlyName===a)return i;return null}function $e(c){return null!=c.attributes["urn:perun:member:attribute-def:def:mail"]?c.attributes["urn:perun:member:attribute-def:def:mail"]:null!=c.attributes["urn:perun:user:attribute-def:def:preferredMail"]?c.attributes["urn:perun:user:attribute-def:def:preferredMail"]:""}function Ce(c){return c.userExtSource.extSource.type.toLowerCase()==="cz.metacentrum.perun.core.impl.ExtSourceX509".toLowerCase()?function de(c){if(c.includes("/CN=")){const a=c.split("/");for(const i of a)if(i.startsWith("CN="))return re(i.substring(3))}return c}(c.userExtSource.extSource.name):c.userExtSource.extSource.type.toLowerCase()==="cz.metacentrum.perun.core.impl.ExtSourceIdp".toLowerCase()?function B(c){switch(c){case"https://idp.upce.cz/idp/shibboleth":return"University in Pardubice";case"https://idp.slu.cz/idp/shibboleth":return"University in Opava";case"https://login.feld.cvut.cz/idp/shibboleth":return"Faculty of Electrical Engineering, Czech Technical University In Prague";case"https://www.vutbr.cz/SSO/saml2/idp":return"Brno University of Technology";case"https://shibboleth.nkp.cz/idp/shibboleth":return"The National Library of the Czech Republic";case"https://idp2.civ.cvut.cz/idp/shibboleth":return"Czech Technical University In Prague";case"https://shibbo.tul.cz/idp/shibboleth":return"Technical University of Liberec";case"https://idp.mendelu.cz/idp/shibboleth":return"Mendel University in Brno";case"https://cas.cuni.cz/idp/shibboleth":return"Charles University in Prague";case"https://wsso.vscht.cz/idp/shibboleth":return"Institute of Chemical Technology Prague";case"https://idp.vsb.cz/idp/shibboleth":return"VSB \u2013 Technical University of Ostrava";case"https://whoami.cesnet.cz/idp/shibboleth":return"CESNET";case"https://helium.jcu.cz/idp/shibboleth":return"University of South Bohemia";case"https://idp.ujep.cz/idp/shibboleth":return"Jan Evangelista Purkyne University in Usti nad Labem";case"https://idp.amu.cz/idp/shibboleth":return"Academy of Performing Arts in Prague";case"https://idp.lib.cas.cz/idp/shibboleth":return"Academy of Sciences Library";case"https://shibboleth.mzk.cz/simplesaml/metadata.xml":return"Moravian Library";case"https://idp2.ics.muni.cz/idp/shibboleth":return"Masaryk University";case"https://idp.upol.cz/idp/shibboleth":return"Palacky University, Olomouc";case"https://idp.fnplzen.cz/idp/shibboleth":return"FN Plzen";case"https://id.vse.cz/idp/shibboleth":return"University of Economics, Prague";case"https://shib.zcu.cz/idp/shibboleth":return"University of West Bohemia";case"https://idptoo.osu.cz/simplesaml/saml2/idp/metadata.php":return"University of Ostrava";case"https://login.ics.muni.cz/idp/shibboleth":return"MetaCentrum";case"https://idp.hostel.eduid.cz/idp/shibboleth":return"eduID.cz Hostel";case"https://shibboleth.techlib.cz/idp/shibboleth":return"National Library of Technology";case"https://eduid.jamu.cz/idp/shibboleth":return"Janacek Academy of Music and Performing Arts in Brno";case"https://marisa.uochb.cas.cz/simplesaml/saml2/idp/metadata.php":return"Institute of Organic Chemistry and Biochemistry AS CR";case"https://shibboleth.utb.cz/idp/shibboleth":return"Tomas Bata University in Zlin";case"https://engine.elixir-czech.org/authentication/idp/metadata":case"@elixir-europe.org":return"Elixir Europe";case"https://login.elixir-czech.org/idp":return"Elixir Czech";case"https://mojeid.cz/saml/idp.xml":case"@mojeid.extidp.cesnet.cz":return"MojeID";case"https://www.egi.eu/idp/shibboleth":return"EGI SSO";case"@google.extidp.cesnet.cz":return"Google";case"@facebook.extidp.cesnet.cz":return"Facebook";case"@linkedin.extidp.cesnet.cz":return"LinkedIn";case"@twitter.extidp.cesnet.cz":return"Twitter";case"@seznam.extidp.cesnet.cz":return"Seznam";case"@github.extidp.cesnet.cz":return"GitHub";case"@orcid.extidp.cesnet.cz":return"OrcID";default:return c}}(c.userExtSource.extSource.name):c.userExtSource.extSource.name}function re(c){return decodeURIComponent(c.replace(/\\x/g,"%"))}function N(c=["en","cs"]){const a={appType:"INITIAL",formId:0,mailType:"APP_CREATED_USER",send:!0,message:{},htmlMessage:{}};return c.forEach(i=>{a.message[i]={locale:i,htmlFormat:!1,subject:"",text:""},a.htmlMessage[i]={locale:i,htmlFormat:!0,subject:"",text:""}}),a}function Me(){const c=new m.vA;return c.disableClose=!0,c.autoFocus=!1,c}function Y(c){const a={applicationTypes:["INITIAL","EXTENSION"],federationAttribute:"",i18n:{},id:0,ordnum:0,perunDestinationAttribute:null,perunSourceAttribute:null,regex:"",required:!1,updatable:!0,disabled:"NEVER",hidden:"NEVER",disabledDependencyItemId:null,hiddenDependencyItemId:null,shortname:"",type:null};for(const i of c)a.i18n[i]={locale:i,errorMessage:"",help:"",label:"",options:""};return a}function be(c){return"virt"===c.namespace.split(":")[4]}function De(c,a){return"valid"!==c.toLowerCase()||a&&"valid"!==c.toLowerCase()?c:"ACTIVE"}function We(c){let a="";return c?.memberAttributes.forEach(i=>{"organization"===i.friendlyName&&null!==i.value&&(a=i.value)}),0===a.length&&c?.userAttributes.forEach(i=>{"organization"===i.friendlyName&&(a=i.value)}),a}function Pe(c){return c.attributes.find(i=>"groupMembershipExpiration"===i.baseFriendlyName)?.value??"Never"}function nt(c){return c&&"never"!==c.toLowerCase()?(0,A.p6)(c,"d.M.yyyy","en"):c}const Ye=new Intl.Collator("cs",{numeric:!0});function Tt(c,a,i){const t=a.active,n=a.direction;return t&&""!==n?c.sort((o,l)=>{const d=i(o,t),y=i(l,t);return Ye.compare(d,y)*("asc"===n?1:-1)}):c}function J(c,a,i,t,n){a=a.toLowerCase();let o="";return i.forEach(l=>{o+=";"+t(c,l)}),n&&(o+=";"+t(c,"uuid")),o.toLowerCase().includes(a)}function Xe(c,a){let i="";return c?.forEach(t=>{t.friendlyName===a&&(i=t.value)}),i}function le(c,a,i){const t=[],n=["checkbox","select","edit","menu","cite","extend","recent"];return a=a.filter(o=>!n.includes(o)),c.forEach(o=>{const l={};a.forEach(d=>{l[d]=(i(o,d)??"").split('"').join("''").trim()}),t.push(l)}),t}function ne(c,a="csv",i="export"){if("csv"===a){const t=(y,k)=>null===k?"":k,n=Object.keys(c[0]),o=c.map(y=>n.map(k=>JSON.stringify(y[k],t)).join(","));o.unshift(n.join(",").split(" ").join("_").split('"').join("''"));const l=o.join("\r\n"),d=new Blob([l],{type:"text/csv"});(0,w.saveAs)(d,`${i}.${a}`)}}function ke(c,a){return c.name.toLowerCase()>a.name.toLowerCase()?1:c.name.toLowerCase()===a.name.toLowerCase()?0:-1}function Ee(c,a){return c.displayName.toLowerCase()>a.displayName.toLowerCase()?1:c.displayName.toLowerCase()===a.displayName.toLowerCase()?0:-1}function ot(c,a){let i,t;return c.user?(i=c.user.lastName?c.user.lastName:c.user.firstName??"",t=a.user.lastName?a.user.lastName:a.user.firstName??""):(i=c.lastName?c.lastName:c.firstName??"",t=a.lastName?a.lastName:a.firstName??""),i>t?1:i===t?0:-1}function it(c,a,i=[]){c.enable(),c.clearValidators(),c.clearAsyncValidators(),c.setValidators(a),c.setAsyncValidators(i),c.updateValueAndValidity()}function oe(c,a){return!!c&&c.some(i=>i.namespace+":"+i.friendlyName===a&&null!==i.value&&"true"===String(i.value))}function X(c){return oe(c.attributes,g.r.GROUP_SYNC_ENABLED)||oe(c.attributes,g.r.GROUP_STRUCTURE_SYNC_ENABLED)}function r(c,a){const i=a.split("&");for(const t of i){const[n,o]=t.split("=");if(n.includes(c))return o}return""}function s(c){if("INDIRECT"===c.membershipType)return!0;const a=c.memberAttributes?.find(i=>"isLifecycleAlterable"===i.friendlyName);return!!a&&!a.value}function _(c){if("INDIRECT"===c.membershipType)return"INDIRECT";const a=c.memberAttributes?.find(i=>"isLifecycleAlterable"===i.friendlyName);return a?a.value?"DIRECT":"UNALTERABLE":"UNKNOWN"}},18750:(Qe,he,u)=>{"use strict";u.d(he,{l:()=>G});var e=u(94650),m=u(98739),A=u(17218),w=u(10036),p=u(36895),g=u(28255),T=u(97392),E=u(4859),S=u(89383);function R(q,_e){if(1&q){const ce=e.EpF();e.TgZ(0,"button",7),e.NdJ("click",function(){e.CHM(ce);const b=e.oxw();return e.KtG(b.exportAllData.emit("csv"))}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&q&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.ALL_DATA")," "))}let v=(()=>{class q{constructor(){this.exportDisplayedData=new e.vpe,this.exportAllData=new e.vpe}}return q.\u0275fac=function(ce){return new(ce||q)},q.\u0275cmp=e.Xpm({type:q,selectors:[["perun-web-apps-table-options"]],inputs:{allowExportAll:"allowExportAll"},outputs:{exportDisplayedData:"exportDisplayedData",exportAllData:"exportAllData"},decls:19,vars:10,consts:[[1,"position-right"],["mat-icon-button","",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"matMenuTriggerFor"],["exportOptions","matMenu"],["xPosition","before"],["selectData","matMenu"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"click",4,"ngIf"]],template:function(ce,Te){if(1&ce&&(e.TgZ(0,"div",0)(1,"button",1)(2,"mat-icon"),e._uU(3,"more_vert"),e.qZA()(),e.TgZ(4,"mat-menu",null,2)(6,"button",3),e._uU(7),e.ALo(8,"translate"),e.qZA()(),e.TgZ(9,"mat-menu",null,4)(11,"button",3),e._uU(12,"Csv"),e.qZA()(),e.TgZ(13,"mat-menu",5,6)(15,"button",7),e.NdJ("click",function(){return Te.exportDisplayedData.emit("csv")}),e._uU(16),e.ALo(17,"translate"),e.qZA(),e.YNc(18,R,3,3,"button",8),e.qZA()()),2&ce){const b=e.MAs(5),H=e.MAs(10),L=e.MAs(14);e.xp6(1),e.Q6J("matMenuTriggerFor",b),e.xp6(5),e.Q6J("matMenuTriggerFor",H),e.xp6(1),e.hij(" ",e.lcZ(8,6,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.EXPORT_TO_FILE")," "),e.xp6(4),e.Q6J("matMenuTriggerFor",L),e.xp6(5),e.hij(" ",e.lcZ(17,8,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.DISPLAYED_DATA")," "),e.xp6(2),e.Q6J("ngIf",Te.allowExportAll)}},dependencies:[g.VK,g.OP,g.p6,T.Hw,E.lW,p.O5,S.X$]}),q})();const D=["topNav"];function F(q,_e){if(1&q){const ce=e.EpF();e.TgZ(0,"perun-web-apps-table-options",7),e.NdJ("exportDisplayedData",function(b){e.CHM(ce);const H=e.oxw();return e.KtG(H.exportDisplayedData.emit(b))})("exportAllData",function(b){e.CHM(ce);const H=e.oxw();return e.KtG(H.exportAllData.emit(b))}),e.qZA()}if(2&q){const ce=e.oxw();e.Q6J("allowExportAll",ce.allowExportAll)}}function z(q,_e){if(1&q){const ce=e.EpF();e.TgZ(0,"perun-web-apps-table-options",7),e.NdJ("exportDisplayedData",function(b){e.CHM(ce);const H=e.oxw();return e.KtG(H.exportDisplayedData.emit(b))})("exportAllData",function(b){e.CHM(ce);const H=e.oxw();return e.KtG(H.exportAllData.emit(b))}),e.qZA()}if(2&q){const ce=e.oxw();e.Q6J("allowExportAll",ce.allowExportAll)}}const $=["*"];let G=(()=>{class q{constructor(ce){this.tableConfigService=ce,this.hideExport=!1,this.pageSizeOptions=A.f7,this.dataLength=0,this.allowExportAll=!0,this.exportDisplayedData=new e.vpe,this.exportAllData=new e.vpe,this.pageSize=5}set matPaginator(ce){this.paginator=ce}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),null===this.pageSizeOptions&&(this.pageSize=5),this.paginator._changePageSize(this.pageSize)}pageChangedTop(ce){this.pageSize=ce.pageSize,this.tableConfigService.setTablePageSize(this.tableId,ce.pageSize)}pageChangedBottom(ce){this.paginator.pageSize=ce.pageSize,this.paginator.pageIndex=ce.pageIndex,this.paginator.page.emit(ce),this.pageSize=ce.pageSize,this.tableId&&this.tableConfigService.setTablePageSize(this.tableId,ce.pageSize),this.topNav.nativeElement.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})}}return q.\u0275fac=function(ce){return new(ce||q)(e.Y36(w.dB))},q.\u0275cmp=e.Xpm({type:q,selectors:[["perun-web-apps-table-wrapper"]],viewQuery:function(ce,Te){if(1&ce&&(e.Gf(D,5),e.Gf(m.NW,7)),2&ce){let b;e.iGM(b=e.CRH())&&(Te.topNav=b.first),e.iGM(b=e.CRH())&&(Te.matPaginator=b.first)}},inputs:{hideExport:"hideExport",pageSizeOptions:"pageSizeOptions",dataLength:"dataLength",tableId:"tableId",allowExportAll:"allowExportAll"},outputs:{exportDisplayedData:"exportDisplayedData",exportAllData:"exportAllData"},ngContentSelectors:$,decls:10,vars:9,consts:[[1,"card-body","pt-0"],[1,"row","justify-content-end","align-items-center"],["topNav",""],[3,"length","pageSizeOptions","pageSize","page"],[3,"allowExportAll","exportDisplayedData","exportAllData",4,"ngIf"],[1,"overflow-auto","border-top"],[3,"length","pageIndex","pageSizeOptions","pageSize","page"],[3,"allowExportAll","exportDisplayedData","exportAllData"]],template:function(ce,Te){1&ce&&(e.F$t(),e.TgZ(0,"div",0)(1,"div",1,2)(3,"mat-paginator",3),e.NdJ("page",function(H){return Te.pageChangedTop(H)}),e.qZA(),e.YNc(4,F,1,1,"perun-web-apps-table-options",4),e.qZA(),e.TgZ(5,"div",5),e.Hsn(6),e.qZA(),e.TgZ(7,"div",1)(8,"mat-paginator",6),e.NdJ("page",function(H){return Te.pageChangedBottom(H)}),e.qZA(),e.YNc(9,z,1,1,"perun-web-apps-table-options",4),e.qZA()()),2&ce&&(e.xp6(3),e.Q6J("length",Te.dataLength)("pageSizeOptions",Te.pageSizeOptions)("pageSize",Te.pageSize),e.xp6(1),e.Q6J("ngIf",!Te.hideExport),e.xp6(4),e.Q6J("length",Te.paginator.length)("pageIndex",Te.paginator.pageIndex)("pageSizeOptions",Te.paginator.pageSizeOptions)("pageSize",Te.paginator.pageSize),e.xp6(1),e.Q6J("ngIf",!Te.hideExport))},dependencies:[m.NW,p.O5,v]}),q})()},98380:(Qe,he,u)=>{"use strict";u.d(he,{w:()=>S});var e=u(94650),m=u(97392),A=u(36895);function w(R,v){1&R&&(e.TgZ(0,"mat-icon",2),e._uU(1," info "),e.qZA())}function p(R,v){1&R&&(e.TgZ(0,"mat-icon",2),e._uU(1," warning "),e.qZA())}function g(R,v){1&R&&(e.TgZ(0,"mat-icon",2),e._uU(1," dangerous "),e.qZA())}function T(R,v){1&R&&(e.TgZ(0,"mat-icon",2),e._uU(1," check_circle "),e.qZA())}const E=["*"];let S=(()=>{class R{}return R.\u0275fac=function(D){return new(D||R)},R.\u0275cmp=e.Xpm({type:R,selectors:[["perun-web-apps-alert"]],inputs:{alert_type:"alert_type"},ngContentSelectors:E,decls:6,vars:12,consts:[[1,"perun-alert","d-flex","align-items-flex-start"],["class","perun-alert-icon",4,"ngIf"],[1,"perun-alert-icon"]],template:function(D,F){1&D&&(e.F$t(),e.TgZ(0,"div",0),e.YNc(1,w,2,0,"mat-icon",1),e.YNc(2,p,2,0,"mat-icon",1),e.YNc(3,g,2,0,"mat-icon",1),e.YNc(4,T,2,0,"mat-icon",1),e.Hsn(5),e.qZA()),2&D&&(e.ekj("warn-alert","warn"===F.alert_type)("error-alert","error"===F.alert_type)("success-alert","success"===F.alert_type)("info-alert","info"===F.alert_type),e.xp6(1),e.Q6J("ngIf","info"===F.alert_type),e.xp6(1),e.Q6J("ngIf","warn"===F.alert_type),e.xp6(1),e.Q6J("ngIf","error"===F.alert_type),e.xp6(1),e.Q6J("ngIf","success"===F.alert_type))},dependencies:[m.Hw,A.O5],styles:[".perun-alert[_ngcontent-%COMP%]{position:relative;padding:.75rem 1.25rem;margin-top:1rem;margin-bottom:1rem}.perun-alert.info-alert[_ngcontent-%COMP%]{font-style:italic;color:gray;text-align:left;border:1px #b3b3b3 solid;border-radius:10px}.perun-alert.warn-alert[_ngcontent-%COMP%]{font-weight:700;text-align:left;border:1px #ececec solid;border-radius:10px;background-color:#ececec}.perun-alert-icon[_ngcontent-%COMP%]{padding-right:2rem}.perun-alert.error-alert[_ngcontent-%COMP%]{text-align:left;border:1px #fedcda solid;border-radius:10px;background-color:#fedcda}.perun-alert.success-alert[_ngcontent-%COMP%]{text-align:left;border:1px #d7ffd7 solid;border-radius:10px;background-color:#d7ffd7}"]}),R})()},63189:(Qe,he,u)=>{"use strict";u.d(he,{r:()=>w});var e=u(97392),m=u(36895),A=u(94650);let w=(()=>{class p{}return p.\u0275fac=function(T){return new(T||p)},p.\u0275mod=A.oAB({type:p}),p.\u0275inj=A.cJS({imports:[e.Ps,m.ez]}),p})()},60900:(Qe,he,u)=>{"use strict";u.d(he,{C:()=>ot});var e=u(36895),m=u(4859),A=u(73546),w=u(56709),p=u(65412),g=u(44850),T=u(37084),E=u(59549),S=u(94650),R=u(3238);let $e=(()=>{class it{}return it.\u0275fac=function(X){return new(X||it)},it.\u0275mod=S.oAB({type:it}),it.\u0275inj=S.cJS({imports:[R.uc,R.BQ,R.uc,R.BQ]}),it})();var de=u(97392),re=u(284),B=u(51572),N=u(86257),Me=u(30671),Y=u(67376),be=u(24006),De=u(99602),We=u(23267),Pe=u(96338),nt=u(28255),Ye=u(83683),Tt=u(96308),J=u(98739),Xe=u(10266),le=u(84385),ne=u(3848),ke=u(90455),Ee=u(77331);let ot=(()=>{class it{}return it.\u0275fac=function(X){return new(X||it)},it.\u0275mod=S.oAB({type:it}),it.\u0275inj=S.cJS({imports:[e.ez,A.QW,g.t,T.To,m.ot,$e,w.p9,de.Ps,Me.p0,p.Is,B.Cq,E.lN,re.c,Y.Cl,be.u5,be.UX,N.T5,De.FA,R.XK,We.SJ,Pe.ie,nt.Tx,Ye.g0,Tt.JX,J.TU,Xe.AV,le.LD,R.si,Me.p0,ke.rP,Ee.Hi,A.QW,g.t,T.To,m.ot,$e,w.p9,de.Ps,Me.p0,p.Is,B.Cq,E.lN,re.c,Y.Cl,be.u5,be.UX,N.T5,De.FA,R.XK,We.SJ,Pe.ie,nt.Tx,Ye.g0,Tt.JX,J.TU,Xe.AV,le.LD,R.si,ne.Nh,ke.rP,Ee.Hi]}),it})()},71345:Qe=>{var w=.1,p="function"==typeof Float32Array;function g(z,$){return 1-3*$+3*z}function T(z,$){return 3*$-6*z}function E(z){return 3*z}function S(z,$,G){return((g($,G)*z+T($,G))*z+E($))*z}function R(z,$,G){return 3*g($,G)*z*z+2*T($,G)*z+E($)}function F(z){return z}Qe.exports=function($,G,q,_e){if(!(0<=$&&$<=1&&0<=q&&q<=1))throw new Error("bezier x values must be in [0, 1] range");if($===G&&q===_e)return F;for(var ce=p?new Float32Array(11):new Array(11),Te=0;Te<11;++Te)ce[Te]=S(Te*w,$,q);return function(L){return 0===L?0:1===L?1:S(function b(H){for(var L=0,V=1;10!==V&&ce[V]<=H;++V)L+=w;--V;var xe=L+(H-ce[V])/(ce[V+1]-ce[V])*w,ge=R(xe,$,q);return ge>=.001?function D(z,$,G,q){for(var _e=0;_e<4;++_e){var ce=R($,G,q);if(0===ce)return $;$-=(S($,G,q)-z)/ce}return $}(H,xe,$,q):0===ge?xe:function v(z,$,G,q,_e){var ce,Te,b=0;do{(ce=S(Te=$+(G-$)/2,q,_e)-z)>0?G=Te:$=Te}while(Math.abs(ce)>1e-7&&++b<10);return Te}(H,L,L+w,$,q)}(L),G,_e)}}},1302:function(Qe,he,u){var e;!function(m,A){var w={};!function(m){"use strict";m.__esModule=!0,m.digestLength=32,m.blockSize=64;var A=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function w(F,z,$,G,q){for(var _e,ce,Te,b,H,L,V,Q,ae,xe,ge,Se,Be;q>=64;){for(_e=z[0],ce=z[1],Te=z[2],b=z[3],H=z[4],L=z[5],V=z[6],Q=z[7],xe=0;xe<16;xe++)F[xe]=(255&$[ge=G+4*xe])<<24|(255&$[ge+1])<<16|(255&$[ge+2])<<8|255&$[ge+3];for(xe=16;xe<64;xe++)F[xe]=((Se=((ae=F[xe-2])>>>17|ae<<15)^(ae>>>19|ae<<13)^ae>>>10)+F[xe-7]|0)+((Be=((ae=F[xe-15])>>>7|ae<<25)^(ae>>>18|ae<<14)^ae>>>3)+F[xe-16]|0);for(xe=0;xe<64;xe++)Se=(((H>>>6|H<<26)^(H>>>11|H<<21)^(H>>>25|H<<7))+(H&L^~H&V)|0)+(Q+(A[xe]+F[xe]|0)|0)|0,Be=((_e>>>2|_e<<30)^(_e>>>13|_e<<19)^(_e>>>22|_e<<10))+(_e&ce^_e&Te^ce&Te)|0,Q=V,V=L,L=H,H=b+Se|0,b=Te,Te=ce,ce=_e,_e=Se+Be|0;z[0]+=_e,z[1]+=ce,z[2]+=Te,z[3]+=b,z[4]+=H,z[5]+=L,z[6]+=V,z[7]+=Q,G+=64,q-=64}return G}var p=function(){function F(){this.digestLength=m.digestLength,this.blockSize=m.blockSize,this.state=new Int32Array(8),this.temp=new Int32Array(64),this.buffer=new Uint8Array(128),this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this.reset()}return F.prototype.reset=function(){return this.state[0]=1779033703,this.state[1]=3144134277,this.state[2]=1013904242,this.state[3]=2773480762,this.state[4]=1359893119,this.state[5]=2600822924,this.state[6]=528734635,this.state[7]=1541459225,this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this},F.prototype.clean=function(){for(var z=0;z0){for(;this.bufferLength<64&&$>0;)this.buffer[this.bufferLength++]=z[G++],$--;64===this.bufferLength&&(w(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for($>=64&&(G=w(this.temp,this.state,z,G,$),$%=64);$>0;)this.buffer[this.bufferLength++]=z[G++],$--;return this},F.prototype.finish=function(z){if(!this.finished){var $=this.bytesHashed,G=this.bufferLength,q=$/536870912|0,_e=$<<3,ce=$%64<56?64:128;this.buffer[G]=128;for(var Te=G+1;Te>>24&255,this.buffer[ce-7]=q>>>16&255,this.buffer[ce-6]=q>>>8&255,this.buffer[ce-5]=q>>>0&255,this.buffer[ce-4]=_e>>>24&255,this.buffer[ce-3]=_e>>>16&255,this.buffer[ce-2]=_e>>>8&255,this.buffer[ce-1]=_e>>>0&255,w(this.temp,this.state,this.buffer,0,ce),this.finished=!0}for(Te=0;Te<8;Te++)z[4*Te+0]=this.state[Te]>>>24&255,z[4*Te+1]=this.state[Te]>>>16&255,z[4*Te+2]=this.state[Te]>>>8&255,z[4*Te+3]=this.state[Te]>>>0&255;return this},F.prototype.digest=function(){var z=new Uint8Array(this.digestLength);return this.finish(z),z},F.prototype._saveState=function(z){for(var $=0;$this.blockSize)(new p).update(z).finish($).clean();else for(var G=0;G1&&z.update(F),$&&z.update($),z.update(G),z.finish(F),G[0]++}m.HMAC=g,m.hash=T,m.default=T,m.hmac=E;var R=new Uint8Array(m.digestLength);m.hkdf=function v(F,z,$,G){void 0===z&&(z=R),void 0===G&&(G=32);for(var q=new Uint8Array([1]),_e=E(z,F),ce=new g(_e),Te=new Uint8Array(ce.digestLength),b=Te.length,H=new Uint8Array(G),L=0;L>>24&255,ce[1]=V>>>16&255,ce[2]=V>>>8&255,ce[3]=V>>>0&255,q.reset(),q.update(z),q.update(ce),q.finish(b);for(var Q=0;Q<_e;Q++)Te[Q]=b[Q];for(Q=2;Q<=$;Q++){q.reset(),q.update(b).finish(b);for(var ae=0;ae<_e;ae++)Te[ae]^=b[ae]}for(Q=0;Q<_e&&L*_e+Q=v.status}function g(R){try{R.dispatchEvent(new MouseEvent("click"))}catch{var v=document.createEvent("MouseEvents");v.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),R.dispatchEvent(v)}}var T="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,E=T.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),S=T.saveAs||("object"!=typeof window||window!==T?function(){}:"download"in HTMLAnchorElement.prototype&&!E?function(R,v,D){var F=T.URL||T.webkitURL,z=document.createElement("a");z.download=v=v||R.name||"download",z.rel="noopener","string"==typeof R?(z.href=R,z.origin===location.origin?g(z):p(z.href)?w(R,v,D):g(z,z.target="_blank")):(z.href=F.createObjectURL(R),setTimeout(function(){F.revokeObjectURL(z.href)},4e4),setTimeout(function(){g(z)},0))}:"msSaveOrOpenBlob"in navigator?function(R,v,D){if(v=v||R.name||"download","string"!=typeof R)navigator.msSaveOrOpenBlob(function A(R,v){return typeof v>"u"?v={autoBom:!1}:"object"!=typeof v&&(console.warn("Deprecated: Expected third argument to be a object"),v={autoBom:!v}),v.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(R.type)?new Blob(["\ufeff",R],{type:R.type}):R}(R,D),v);else if(p(R))w(R,v,D);else{var F=document.createElement("a");F.href=R,F.target="_blank",setTimeout(function(){g(F)})}}:function(R,v,D,F){if((F=F||open("","_blank"))&&(F.document.title=F.document.body.innerText="downloading..."),"string"==typeof R)return w(R,v,D);var z="application/octet-stream"===R.type,$=/constructor/i.test(T.HTMLElement)||T.safari,G=/CriOS\/[\d]+/.test(navigator.userAgent);if((G||z&&$||E)&&typeof FileReader<"u"){var q=new FileReader;q.onloadend=function(){var Te=q.result;Te=G?Te:Te.replace(/^data:[^;]*;/,"data:attachment/file;"),F?F.location.href=Te:location=Te,F=null},q.readAsDataURL(R)}else{var _e=T.URL||T.webkitURL,ce=_e.createObjectURL(R);F?F.location=ce:location.href=ce,F=null,setTimeout(function(){_e.revokeObjectURL(ce)},4e4)}});T.saveAs=S.saveAs=S,Qe.exports=S}.apply(he,[]))&&(Qe.exports=m)},61135:(Qe,he,u)=>{"use strict";u.d(he,{X:()=>m});var e=u(77579);class m extends e.x{constructor(w){super(),this._value=w}get value(){return this.getValue()}_subscribe(w){const p=super._subscribe(w);return!p.closed&&w.next(this._value),p}getValue(){const{hasError:w,thrownError:p,_value:g}=this;if(w)throw p;return this._throwIfClosed(),g}next(w){super.next(this._value=w)}}},69751:(Qe,he,u)=>{"use strict";u.d(he,{y:()=>E});var e=u(70930),m=u(50727),A=u(48822),w=u(89635),p=u(42416),g=u(30576),T=u(72806);let E=(()=>{class D{constructor(z){z&&(this._subscribe=z)}lift(z){const $=new D;return $.source=this,$.operator=z,$}subscribe(z,$,G){const q=function v(D){return D&&D instanceof e.Lv||function R(D){return D&&(0,g.m)(D.next)&&(0,g.m)(D.error)&&(0,g.m)(D.complete)}(D)&&(0,m.Nn)(D)}(z)?z:new e.Hp(z,$,G);return(0,T.x)(()=>{const{operator:_e,source:ce}=this;q.add(_e?_e.call(q,ce):ce?this._subscribe(q):this._trySubscribe(q))}),q}_trySubscribe(z){try{return this._subscribe(z)}catch($){z.error($)}}forEach(z,$){return new($=S($))((G,q)=>{const _e=new e.Hp({next:ce=>{try{z(ce)}catch(Te){q(Te),_e.unsubscribe()}},error:q,complete:G});this.subscribe(_e)})}_subscribe(z){var $;return null===($=this.source)||void 0===$?void 0:$.subscribe(z)}[A.L](){return this}pipe(...z){return(0,w.U)(z)(this)}toPromise(z){return new(z=S(z))(($,G)=>{let q;this.subscribe(_e=>q=_e,_e=>G(_e),()=>$(q))})}}return D.create=F=>new D(F),D})();function S(D){var F;return null!==(F=D??p.v.Promise)&&void 0!==F?F:Promise}},4707:(Qe,he,u)=>{"use strict";u.d(he,{t:()=>A});var e=u(77579),m=u(26063);class A extends e.x{constructor(p=1/0,g=1/0,T=m.l){super(),this._bufferSize=p,this._windowTime=g,this._timestampProvider=T,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=g===1/0,this._bufferSize=Math.max(1,p),this._windowTime=Math.max(1,g)}next(p){const{isStopped:g,_buffer:T,_infiniteTimeWindow:E,_timestampProvider:S,_windowTime:R}=this;g||(T.push(p),!E&&T.push(S.now()+R)),this._trimBuffer(),super.next(p)}_subscribe(p){this._throwIfClosed(),this._trimBuffer();const g=this._innerSubscribe(p),{_infiniteTimeWindow:T,_buffer:E}=this,S=E.slice();for(let R=0;R{"use strict";u.d(he,{x:()=>T});var e=u(69751),m=u(50727);const w=(0,u(83888).d)(S=>function(){S(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var p=u(38737),g=u(72806);let T=(()=>{class S extends e.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(v){const D=new E(this,this);return D.operator=v,D}_throwIfClosed(){if(this.closed)throw new w}next(v){(0,g.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const D of this.currentObservers)D.next(v)}})}error(v){(0,g.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=v;const{observers:D}=this;for(;D.length;)D.shift().error(v)}})}complete(){(0,g.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:v}=this;for(;v.length;)v.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var v;return(null===(v=this.observers)||void 0===v?void 0:v.length)>0}_trySubscribe(v){return this._throwIfClosed(),super._trySubscribe(v)}_subscribe(v){return this._throwIfClosed(),this._checkFinalizedStatuses(v),this._innerSubscribe(v)}_innerSubscribe(v){const{hasError:D,isStopped:F,observers:z}=this;return D||F?m.Lc:(this.currentObservers=null,z.push(v),new m.w0(()=>{this.currentObservers=null,(0,p.P)(z,v)}))}_checkFinalizedStatuses(v){const{hasError:D,thrownError:F,isStopped:z}=this;D?v.error(F):z&&v.complete()}asObservable(){const v=new e.y;return v.source=this,v}}return S.create=(R,v)=>new E(R,v),S})();class E extends T{constructor(R,v){super(),this.destination=R,this.source=v}next(R){var v,D;null===(D=null===(v=this.destination)||void 0===v?void 0:v.next)||void 0===D||D.call(v,R)}error(R){var v,D;null===(D=null===(v=this.destination)||void 0===v?void 0:v.error)||void 0===D||D.call(v,R)}complete(){var R,v;null===(v=null===(R=this.destination)||void 0===R?void 0:R.complete)||void 0===v||v.call(R)}_subscribe(R){var v,D;return null!==(D=null===(v=this.source)||void 0===v?void 0:v.subscribe(R))&&void 0!==D?D:m.Lc}}},70930:(Qe,he,u)=>{"use strict";u.d(he,{Hp:()=>G,Lv:()=>D});var e=u(30576),m=u(50727),A=u(42416),w=u(87849),p=u(25032);const g=S("C",void 0,void 0);function S(b,H,L){return{kind:b,value:H,error:L}}var R=u(43410),v=u(72806);class D extends m.w0{constructor(H){super(),this.isStopped=!1,H?(this.destination=H,(0,m.Nn)(H)&&H.add(this)):this.destination=Te}static create(H,L,V){return new G(H,L,V)}next(H){this.isStopped?ce(function E(b){return S("N",b,void 0)}(H),this):this._next(H)}error(H){this.isStopped?ce(function T(b){return S("E",void 0,b)}(H),this):(this.isStopped=!0,this._error(H))}complete(){this.isStopped?ce(g,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(H){this.destination.next(H)}_error(H){try{this.destination.error(H)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const F=Function.prototype.bind;function z(b,H){return F.call(b,H)}class ${constructor(H){this.partialObserver=H}next(H){const{partialObserver:L}=this;if(L.next)try{L.next(H)}catch(V){q(V)}}error(H){const{partialObserver:L}=this;if(L.error)try{L.error(H)}catch(V){q(V)}else q(H)}complete(){const{partialObserver:H}=this;if(H.complete)try{H.complete()}catch(L){q(L)}}}class G extends D{constructor(H,L,V){let Q;if(super(),(0,e.m)(H)||!H)Q={next:H??void 0,error:L??void 0,complete:V??void 0};else{let ae;this&&A.v.useDeprecatedNextContext?(ae=Object.create(H),ae.unsubscribe=()=>this.unsubscribe(),Q={next:H.next&&z(H.next,ae),error:H.error&&z(H.error,ae),complete:H.complete&&z(H.complete,ae)}):Q=H}this.destination=new $(Q)}}function q(b){A.v.useDeprecatedSynchronousErrorHandling?(0,v.O)(b):(0,w.h)(b)}function ce(b,H){const{onStoppedNotification:L}=A.v;L&&R.z.setTimeout(()=>L(b,H))}const Te={closed:!0,next:p.Z,error:function _e(b){throw b},complete:p.Z}},50727:(Qe,he,u)=>{"use strict";u.d(he,{Lc:()=>g,w0:()=>p,Nn:()=>T});var e=u(30576);const A=(0,u(83888).d)(S=>function(v){S(this),this.message=v?`${v.length} errors occurred during unsubscription:\n${v.map((D,F)=>`${F+1}) ${D.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=v});var w=u(38737);class p{constructor(R){this.initialTeardown=R,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let R;if(!this.closed){this.closed=!0;const{_parentage:v}=this;if(v)if(this._parentage=null,Array.isArray(v))for(const z of v)z.remove(this);else v.remove(this);const{initialTeardown:D}=this;if((0,e.m)(D))try{D()}catch(z){R=z instanceof A?z.errors:[z]}const{_finalizers:F}=this;if(F){this._finalizers=null;for(const z of F)try{E(z)}catch($){R=R??[],$ instanceof A?R=[...R,...$.errors]:R.push($)}}if(R)throw new A(R)}}add(R){var v;if(R&&R!==this)if(this.closed)E(R);else{if(R instanceof p){if(R.closed||R._hasParent(this))return;R._addParent(this)}(this._finalizers=null!==(v=this._finalizers)&&void 0!==v?v:[]).push(R)}}_hasParent(R){const{_parentage:v}=this;return v===R||Array.isArray(v)&&v.includes(R)}_addParent(R){const{_parentage:v}=this;this._parentage=Array.isArray(v)?(v.push(R),v):v?[v,R]:R}_removeParent(R){const{_parentage:v}=this;v===R?this._parentage=null:Array.isArray(v)&&(0,w.P)(v,R)}remove(R){const{_finalizers:v}=this;v&&(0,w.P)(v,R),R instanceof p&&R._removeParent(this)}}p.EMPTY=(()=>{const S=new p;return S.closed=!0,S})();const g=p.EMPTY;function T(S){return S instanceof p||S&&"closed"in S&&(0,e.m)(S.remove)&&(0,e.m)(S.add)&&(0,e.m)(S.unsubscribe)}function E(S){(0,e.m)(S)?S():S.unsubscribe()}},42416:(Qe,he,u)=>{"use strict";u.d(he,{v:()=>e});const e={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},83905:(Qe,he,u)=>{"use strict";u.d(he,{z:()=>A});var e=u(86805),m=u(70930);function A(w,p){const g="object"==typeof p;return new Promise((T,E)=>{const S=new m.Hp({next:R=>{T(R),S.unsubscribe()},error:E,complete:()=>{g?T(p.defaultValue):E(new e.K)}});w.subscribe(S)})}},39841:(Qe,he,u)=>{"use strict";u.d(he,{a:()=>R});var e=u(69751),m=u(54742),A=u(32076),w=u(44671),p=u(83268),g=u(63269),T=u(31810),E=u(25403),S=u(39672);function R(...F){const z=(0,g.yG)(F),$=(0,g.jO)(F),{args:G,keys:q}=(0,m.D)(F);if(0===G.length)return(0,A.D)([],z);const _e=new e.y(function v(F,z,$=w.y){return G=>{D(z,()=>{const{length:q}=F,_e=new Array(q);let ce=q,Te=q;for(let b=0;b{const H=(0,A.D)(F[b],z);let L=!1;H.subscribe((0,E.x)(G,V=>{_e[b]=V,L||(L=!0,Te--),Te||G.next($(_e.slice()))},()=>{--ce||G.complete()}))},G)},G)}}(G,z,q?ce=>(0,T.n)(q,ce):w.y));return $?_e.pipe((0,p.Z)($)):_e}function D(F,z,$){F?(0,S.f)($,F,z):z()}},97272:(Qe,he,u)=>{"use strict";u.d(he,{z:()=>p});var e=u(8189),A=u(63269),w=u(32076);function p(...g){return function m(){return(0,e.J)(1)}()((0,w.D)(g,(0,A.yG)(g)))}},49770:(Qe,he,u)=>{"use strict";u.d(he,{P:()=>A});var e=u(69751),m=u(38421);function A(w){return new e.y(p=>{(0,m.Xf)(w()).subscribe(p)})}},60515:(Qe,he,u)=>{"use strict";u.d(he,{E:()=>m});const m=new(u(69751).y)(p=>p.complete())},4128:(Qe,he,u)=>{"use strict";u.d(he,{D:()=>E});var e=u(69751),m=u(54742),A=u(38421),w=u(63269),p=u(25403),g=u(83268),T=u(31810);function E(...S){const R=(0,w.jO)(S),{args:v,keys:D}=(0,m.D)(S),F=new e.y(z=>{const{length:$}=v;if(!$)return void z.complete();const G=new Array($);let q=$,_e=$;for(let ce=0;ce<$;ce++){let Te=!1;(0,A.Xf)(v[ce]).subscribe((0,p.x)(z,b=>{Te||(Te=!0,_e--),G[ce]=b},()=>q--,void 0,()=>{(!q||!Te)&&(_e||z.next(D?(0,T.n)(D,G):G),z.complete())}))}});return R?F.pipe((0,g.Z)(R)):F}},32076:(Qe,he,u)=>{"use strict";u.d(he,{D:()=>V});var e=u(38421),m=u(39672),A=u(54482),w=u(25403);function p(Q,ae=0){return(0,A.e)((xe,ge)=>{xe.subscribe((0,w.x)(ge,Se=>(0,m.f)(ge,Q,()=>ge.next(Se),ae),()=>(0,m.f)(ge,Q,()=>ge.complete(),ae),Se=>(0,m.f)(ge,Q,()=>ge.error(Se),ae)))})}function g(Q,ae=0){return(0,A.e)((xe,ge)=>{ge.add(Q.schedule(()=>xe.subscribe(ge),ae))})}var S=u(69751),v=u(2202),D=u(30576);function z(Q,ae){if(!Q)throw new Error("Iterable cannot be null");return new S.y(xe=>{(0,m.f)(xe,ae,()=>{const ge=Q[Symbol.asyncIterator]();(0,m.f)(xe,ae,()=>{ge.next().then(Se=>{Se.done?xe.complete():xe.next(Se.value)})},0,!0)})})}var $=u(93670),G=u(28239),q=u(81144),_e=u(26495),ce=u(12206),Te=u(44532),b=u(53260);function V(Q,ae){return ae?function L(Q,ae){if(null!=Q){if((0,$.c)(Q))return function T(Q,ae){return(0,e.Xf)(Q).pipe(g(ae),p(ae))}(Q,ae);if((0,q.z)(Q))return function R(Q,ae){return new S.y(xe=>{let ge=0;return ae.schedule(function(){ge===Q.length?xe.complete():(xe.next(Q[ge++]),xe.closed||this.schedule())})})}(Q,ae);if((0,G.t)(Q))return function E(Q,ae){return(0,e.Xf)(Q).pipe(g(ae),p(ae))}(Q,ae);if((0,ce.D)(Q))return z(Q,ae);if((0,_e.T)(Q))return function F(Q,ae){return new S.y(xe=>{let ge;return(0,m.f)(xe,ae,()=>{ge=Q[v.h](),(0,m.f)(xe,ae,()=>{let Se,Be;try{({value:Se,done:Be}=ge.next())}catch(pe){return void xe.error(pe)}Be?xe.complete():xe.next(Se)},0,!0)}),()=>(0,D.m)(ge?.return)&&ge.return()})}(Q,ae);if((0,b.L)(Q))return function H(Q,ae){return z((0,b.Q)(Q),ae)}(Q,ae)}throw(0,Te.z)(Q)}(Q,ae):(0,e.Xf)(Q)}},54968:(Qe,he,u)=>{"use strict";u.d(he,{R:()=>R});var e=u(38421),m=u(69751),A=u(86099),w=u(81144),p=u(30576),g=u(83268);const T=["addListener","removeListener"],E=["addEventListener","removeEventListener"],S=["on","off"];function R($,G,q,_e){if((0,p.m)(q)&&(_e=q,q=void 0),_e)return R($,G,q).pipe((0,g.Z)(_e));const[ce,Te]=function z($){return(0,p.m)($.addEventListener)&&(0,p.m)($.removeEventListener)}($)?E.map(b=>H=>$[b](G,H,q)):function D($){return(0,p.m)($.addListener)&&(0,p.m)($.removeListener)}($)?T.map(v($,G)):function F($){return(0,p.m)($.on)&&(0,p.m)($.off)}($)?S.map(v($,G)):[];if(!ce&&(0,w.z)($))return(0,A.z)(b=>R(b,G,q))((0,e.Xf)($));if(!ce)throw new TypeError("Invalid event target");return new m.y(b=>{const H=(...L)=>b.next(1Te(H)})}function v($,G){return q=>_e=>$[q](G,_e)}},48382:(Qe,he,u)=>{"use strict";u.d(he,{s:()=>m});var e=u(49770);function m(A,w,p){return(0,e.P)(()=>A()?w:p)}},38421:(Qe,he,u)=>{"use strict";u.d(he,{Xf:()=>F});var e=u(70655),m=u(81144),A=u(28239),w=u(69751),p=u(93670),g=u(12206),T=u(44532),E=u(26495),S=u(53260),R=u(30576),v=u(87849),D=u(48822);function F(b){if(b instanceof w.y)return b;if(null!=b){if((0,p.c)(b))return function z(b){return new w.y(H=>{const L=b[D.L]();if((0,R.m)(L.subscribe))return L.subscribe(H);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(b);if((0,m.z)(b))return function $(b){return new w.y(H=>{for(let L=0;L{b.then(L=>{H.closed||(H.next(L),H.complete())},L=>H.error(L)).then(null,v.h)})}(b);if((0,g.D)(b))return _e(b);if((0,E.T)(b))return function q(b){return new w.y(H=>{for(const L of b)if(H.next(L),H.closed)return;H.complete()})}(b);if((0,S.L)(b))return function ce(b){return _e((0,S.Q)(b))}(b)}throw(0,T.z)(b)}function _e(b){return new w.y(H=>{(function Te(b,H){var L,V,Q,ae;return(0,e.mG)(this,void 0,void 0,function*(){try{for(L=(0,e.KL)(b);!(V=yield L.next()).done;)if(H.next(V.value),H.closed)return}catch(xe){Q={error:xe}}finally{try{V&&!V.done&&(ae=L.return)&&(yield ae.call(L))}finally{if(Q)throw Q.error}}H.complete()})})(b,H).catch(L=>H.error(L))})}},17445:(Qe,he,u)=>{"use strict";u.d(he,{F:()=>A});var e=u(34986),m=u(82805);function A(w=0,p=e.z){return w<0&&(w=0),(0,m.H)(w,w,p)}},56451:(Qe,he,u)=>{"use strict";u.d(he,{T:()=>g});var e=u(8189),m=u(38421),A=u(60515),w=u(63269),p=u(32076);function g(...T){const E=(0,w.yG)(T),S=(0,w._6)(T,1/0),R=T;return R.length?1===R.length?(0,m.Xf)(R[0]):(0,e.J)(S)((0,p.D)(R,E)):A.E}},39646:(Qe,he,u)=>{"use strict";u.d(he,{of:()=>A});var e=u(63269),m=u(32076);function A(...w){const p=(0,e.yG)(w);return(0,m.D)(w,p)}},54355:(Qe,he,u)=>{"use strict";u.d(he,{S:()=>p});var e=u(69751),m=u(38421),A=u(75797),w=u(25403);function p(...T){return 1===(T=(0,A.k)(T)).length?(0,m.Xf)(T[0]):new e.y(function g(T){return E=>{let S=[];for(let R=0;S&&!E.closed&&R{if(S){for(let D=0;D{"use strict";u.d(he,{_:()=>A});var e=u(69751),m=u(30576);function A(w,p){const g=(0,m.m)(w)?w:()=>w,T=E=>E.error(g());return new e.y(p?E=>p.schedule(T,0,E):T)}},82805:(Qe,he,u)=>{"use strict";u.d(he,{H:()=>p});var e=u(69751),m=u(34986),A=u(93532),w=u(51165);function p(g=0,T,E=m.P){let S=-1;return null!=T&&((0,A.K)(T)?E=T:S=T),new e.y(R=>{let v=(0,w.q)(g)?+g-E.now():g;v<0&&(v=0);let D=0;return E.schedule(function(){R.closed||(R.next(D++),0<=S?this.schedule(void 0,S):R.complete())},v)})}},25403:(Qe,he,u)=>{"use strict";u.d(he,{x:()=>m});var e=u(70930);function m(w,p,g,T,E){return new A(w,p,g,T,E)}class A extends e.Lv{constructor(p,g,T,E,S,R){super(p),this.onFinalize=S,this.shouldUnsubscribe=R,this._next=g?function(v){try{g(v)}catch(D){p.error(D)}}:super._next,this._error=E?function(v){try{E(v)}catch(D){p.error(D)}finally{this.unsubscribe()}}:super._error,this._complete=T?function(){try{T()}catch(v){p.error(v)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var p;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:g}=this;super.unsubscribe(),!g&&(null===(p=this.onFinalize)||void 0===p||p.call(this))}}}},23601:(Qe,he,u)=>{"use strict";u.d(he,{e:()=>T});var e=u(34986),m=u(54482),A=u(38421),w=u(25403),g=u(82805);function T(E,S=e.z){return function p(E){return(0,m.e)((S,R)=>{let v=!1,D=null,F=null,z=!1;const $=()=>{if(F?.unsubscribe(),F=null,v){v=!1;const q=D;D=null,R.next(q)}z&&R.complete()},G=()=>{F=null,z&&R.complete()};S.subscribe((0,w.x)(R,q=>{v=!0,D=q,F||(0,A.Xf)(E(q)).subscribe(F=(0,w.x)(R,$,G))},()=>{z=!0,(!v||!F||F.closed)&&R.complete()}))})}(()=>(0,g.H)(E,S))}},70262:(Qe,he,u)=>{"use strict";u.d(he,{K:()=>w});var e=u(38421),m=u(25403),A=u(54482);function w(p){return(0,A.e)((g,T)=>{let R,E=null,S=!1;E=g.subscribe((0,m.x)(T,void 0,void 0,v=>{R=(0,e.Xf)(p(v,w(p)(g))),E?(E.unsubscribe(),E=null,R.subscribe(T)):S=!0})),S&&(E.unsubscribe(),E=null,R.subscribe(T))})}},24351:(Qe,he,u)=>{"use strict";u.d(he,{b:()=>A});var e=u(86099),m=u(30576);function A(w,p){return(0,m.m)(p)?(0,e.z)(w,p,1):(0,e.z)(w,1)}},78372:(Qe,he,u)=>{"use strict";u.d(he,{b:()=>w});var e=u(34986),m=u(54482),A=u(25403);function w(p,g=e.z){return(0,m.e)((T,E)=>{let S=null,R=null,v=null;const D=()=>{if(S){S.unsubscribe(),S=null;const z=R;R=null,E.next(z)}};function F(){const z=v+p,$=g.now();if(${R=z,v=g.now(),S||(S=g.schedule(F,p),E.add(S))},()=>{D(),E.complete()},void 0,()=>{R=S=null}))})}},46590:(Qe,he,u)=>{"use strict";u.d(he,{d:()=>A});var e=u(54482),m=u(25403);function A(w){return(0,e.e)((p,g)=>{let T=!1;p.subscribe((0,m.x)(g,E=>{T=!0,g.next(E)},()=>{T||g.next(w),g.complete()}))})}},91005:(Qe,he,u)=>{"use strict";u.d(he,{g:()=>D});var e=u(34986),m=u(97272),A=u(95698),w=u(54482),p=u(25403),g=u(25032),E=u(69718),S=u(86099);function R(F,z){return z?$=>(0,m.z)(z.pipe((0,A.q)(1),function T(){return(0,w.e)((F,z)=>{F.subscribe((0,p.x)(z,g.Z))})}()),$.pipe(R(F))):(0,S.z)(($,G)=>F($,G).pipe((0,A.q)(1),(0,E.h)($)))}var v=u(82805);function D(F,z=e.z){const $=(0,v.H)(F,z);return R(()=>$)}},71884:(Qe,he,u)=>{"use strict";u.d(he,{x:()=>w});var e=u(44671),m=u(54482),A=u(25403);function w(g,T=e.y){return g=g??p,(0,m.e)((E,S)=>{let R,v=!0;E.subscribe((0,A.x)(S,D=>{const F=T(D);(v||!g(R,F))&&(v=!1,R=F,S.next(D))}))})}function p(g,T){return g===T}},39300:(Qe,he,u)=>{"use strict";u.d(he,{h:()=>A});var e=u(54482),m=u(25403);function A(w,p){return(0,e.e)((g,T)=>{let E=0;g.subscribe((0,m.x)(T,S=>w.call(p,S,E++)&&T.next(S)))})}},28746:(Qe,he,u)=>{"use strict";u.d(he,{x:()=>m});var e=u(54482);function m(A){return(0,e.e)((w,p)=>{try{w.subscribe(p)}finally{p.add(A)}})}},50590:(Qe,he,u)=>{"use strict";u.d(he,{P:()=>T});var e=u(86805),m=u(39300),A=u(95698),w=u(46590),p=u(18068),g=u(44671);function T(E,S){const R=arguments.length>=2;return v=>v.pipe(E?(0,m.h)((D,F)=>E(D,F,v)):g.y,(0,A.q)(1),R?(0,w.d)(S):(0,p.T)(()=>new e.K))}},54004:(Qe,he,u)=>{"use strict";u.d(he,{U:()=>A});var e=u(54482),m=u(25403);function A(w,p){return(0,e.e)((g,T)=>{let E=0;g.subscribe((0,m.x)(T,S=>{T.next(w.call(p,S,E++))}))})}},69718:(Qe,he,u)=>{"use strict";u.d(he,{h:()=>m});var e=u(54004);function m(A){return(0,e.U)(()=>A)}},8189:(Qe,he,u)=>{"use strict";u.d(he,{J:()=>A});var e=u(86099),m=u(44671);function A(w=1/0){return(0,e.z)(m.y,w)}},72733:(Qe,he,u)=>{"use strict";u.d(he,{p:()=>w});var e=u(38421),m=u(39672),A=u(25403);function w(p,g,T,E,S,R,v,D){const F=[];let z=0,$=0,G=!1;const q=()=>{G&&!F.length&&!z&&g.complete()},_e=Te=>z{R&&g.next(Te),z++;let b=!1;(0,e.Xf)(T(Te,$++)).subscribe((0,A.x)(g,H=>{S?.(H),R?_e(H):g.next(H)},()=>{b=!0},void 0,()=>{if(b)try{for(z--;F.length&&zce(H)):ce(H)}q()}catch(H){g.error(H)}}))};return p.subscribe((0,A.x)(g,_e,()=>{G=!0,q()})),()=>{D?.()}}},86099:(Qe,he,u)=>{"use strict";u.d(he,{z:()=>g});var e=u(54004),m=u(38421),A=u(54482),w=u(72733),p=u(30576);function g(T,E,S=1/0){return(0,p.m)(E)?g((R,v)=>(0,e.U)((D,F)=>E(R,D,v,F))((0,m.Xf)(T(R,v))),S):("number"==typeof E&&(S=E),(0,A.e)((R,v)=>(0,w.p)(R,v,T,S)))}},11520:(Qe,he,u)=>{"use strict";u.d(he,{G:()=>A});var e=u(54482),m=u(25403);function A(){return(0,e.e)((w,p)=>{let g,T=!1;w.subscribe((0,m.x)(p,E=>{const S=g;g=E,T&&p.next([S,E]),T=!0}))})}},57359:(Qe,he,u)=>{"use strict";u.d(he,{U:()=>m});var e=u(25403);function m(A,w,p,g,T){return(E,S)=>{let R=p,v=w,D=0;E.subscribe((0,e.x)(S,F=>{const z=D++;v=R?A(v,F,z):(R=!0,F),g&&S.next(v)},T&&(()=>{R&&S.next(v),S.complete()})))}}},13099:(Qe,he,u)=>{"use strict";u.d(he,{B:()=>p});var e=u(38421),m=u(77579),A=u(70930),w=u(54482);function p(T={}){const{connector:E=(()=>new m.x),resetOnError:S=!0,resetOnComplete:R=!0,resetOnRefCountZero:v=!0}=T;return D=>{let F,z,$,G=0,q=!1,_e=!1;const ce=()=>{z?.unsubscribe(),z=void 0},Te=()=>{ce(),F=$=void 0,q=_e=!1},b=()=>{const H=F;Te(),H?.unsubscribe()};return(0,w.e)((H,L)=>{G++,!_e&&!q&&ce();const V=$=$??E();L.add(()=>{G--,0===G&&!_e&&!q&&(z=g(b,v))}),V.subscribe(L),!F&&G>0&&(F=new A.Hp({next:Q=>V.next(Q),error:Q=>{_e=!0,ce(),z=g(Te,S,Q),V.error(Q)},complete:()=>{q=!0,ce(),z=g(Te,R),V.complete()}}),(0,e.Xf)(H).subscribe(F))})(D)}}function g(T,E,...S){if(!0===E)return void T();if(!1===E)return;const R=new A.Hp({next:()=>{R.unsubscribe(),T()}});return E(...S).subscribe(R)}},34782:(Qe,he,u)=>{"use strict";u.d(he,{d:()=>A});var e=u(4707),m=u(13099);function A(w,p,g){let T,E=!1;return w&&"object"==typeof w?({bufferSize:T=1/0,windowTime:p=1/0,refCount:E=!1,scheduler:g}=w):T=w??1/0,(0,m.B)({connector:()=>new e.t(T,p,g),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:E})}},35684:(Qe,he,u)=>{"use strict";u.d(he,{T:()=>m});var e=u(39300);function m(A){return(0,e.h)((w,p)=>A<=p)}},68675:(Qe,he,u)=>{"use strict";u.d(he,{O:()=>w});var e=u(97272),m=u(63269),A=u(54482);function w(...p){const g=(0,m.yG)(p);return(0,A.e)((T,E)=>{(g?(0,e.z)(p,T,g):(0,e.z)(p,T)).subscribe(E)})}},63900:(Qe,he,u)=>{"use strict";u.d(he,{w:()=>w});var e=u(38421),m=u(54482),A=u(25403);function w(p,g){return(0,m.e)((T,E)=>{let S=null,R=0,v=!1;const D=()=>v&&!S&&E.complete();T.subscribe((0,A.x)(E,F=>{S?.unsubscribe();let z=0;const $=R++;(0,e.Xf)(p(F,$)).subscribe(S=(0,A.x)(E,G=>E.next(g?g(F,G,$,z++):G),()=>{S=null,D()}))},()=>{v=!0,D()}))})}},95698:(Qe,he,u)=>{"use strict";u.d(he,{q:()=>w});var e=u(60515),m=u(54482),A=u(25403);function w(p){return p<=0?()=>e.E:(0,m.e)((g,T)=>{let E=0;g.subscribe((0,A.x)(T,S=>{++E<=p&&(T.next(S),p<=E&&T.complete())}))})}},82722:(Qe,he,u)=>{"use strict";u.d(he,{R:()=>p});var e=u(54482),m=u(25403),A=u(38421),w=u(25032);function p(g){return(0,e.e)((T,E)=>{(0,A.Xf)(g).subscribe((0,m.x)(E,()=>E.complete(),w.Z)),!E.closed&&T.subscribe(E)})}},22529:(Qe,he,u)=>{"use strict";u.d(he,{o:()=>A});var e=u(54482),m=u(25403);function A(w,p=!1){return(0,e.e)((g,T)=>{let E=0;g.subscribe((0,m.x)(T,S=>{const R=w(S,E++);(R||p)&&T.next(S),!R&&T.complete()}))})}},18505:(Qe,he,u)=>{"use strict";u.d(he,{b:()=>p});var e=u(30576),m=u(54482),A=u(25403),w=u(44671);function p(g,T,E){const S=(0,e.m)(g)||T||E?{next:g,error:T,complete:E}:g;return S?(0,m.e)((R,v)=>{var D;null===(D=S.subscribe)||void 0===D||D.call(S);let F=!0;R.subscribe((0,A.x)(v,z=>{var $;null===($=S.next)||void 0===$||$.call(S,z),v.next(z)},()=>{var z;F=!1,null===(z=S.complete)||void 0===z||z.call(S),v.complete()},z=>{var $;F=!1,null===($=S.error)||void 0===$||$.call(S,z),v.error(z)},()=>{var z,$;F&&(null===(z=S.unsubscribe)||void 0===z||z.call(S)),null===($=S.finalize)||void 0===$||$.call(S)}))}):w.y}},18068:(Qe,he,u)=>{"use strict";u.d(he,{T:()=>w});var e=u(86805),m=u(54482),A=u(25403);function w(g=p){return(0,m.e)((T,E)=>{let S=!1;T.subscribe((0,A.x)(E,R=>{S=!0,E.next(R)},()=>S?E.complete():E.error(g())))})}function p(){return new e.K}},17414:(Qe,he,u)=>{"use strict";u.d(he,{V:()=>S});var e=u(34986),m=u(51165),A=u(54482),w=u(38421),p=u(83888),g=u(25403),T=u(39672);const E=(0,p.d)(v=>function(F=null){v(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=F});function S(v,D){const{first:F,each:z,with:$=R,scheduler:G=D??e.z,meta:q=null}=(0,m.q)(v)?{first:v}:"number"==typeof v?{each:v}:v;if(null==F&&null==z)throw new TypeError("No timeout provided.");return(0,A.e)((_e,ce)=>{let Te,b,H=null,L=0;const V=Q=>{b=(0,T.f)(ce,G,()=>{try{Te.unsubscribe(),(0,w.Xf)($({meta:q,lastValue:H,seen:L})).subscribe(ce)}catch(ae){ce.error(ae)}},Q)};Te=_e.subscribe((0,g.x)(ce,Q=>{b?.unsubscribe(),L++,ce.next(H=Q),z>0&&V(z)},void 0,void 0,()=>{b?.closed||b?.unsubscribe(),H=null})),!L&&V(null!=F?"number"==typeof F?F:+F-G.now():z)})}function R(v){throw new E(v)}},84408:(Qe,he,u)=>{"use strict";u.d(he,{o:()=>p});var e=u(50727);class m extends e.w0{constructor(T,E){super()}schedule(T,E=0){return this}}const A={setInterval(g,T,...E){const{delegate:S}=A;return S?.setInterval?S.setInterval(g,T,...E):setInterval(g,T,...E)},clearInterval(g){const{delegate:T}=A;return(T?.clearInterval||clearInterval)(g)},delegate:void 0};var w=u(38737);class p extends m{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 S=this.id,R=this.scheduler;return null!=S&&(this.id=this.recycleAsyncId(R,S,E)),this.pending=!0,this.delay=E,this.id=this.id||this.requestAsyncId(R,this.id,E),this}requestAsyncId(T,E,S=0){return A.setInterval(T.flush.bind(T,this),S)}recycleAsyncId(T,E,S=0){if(null!=S&&this.delay===S&&!1===this.pending)return E;A.clearInterval(E)}execute(T,E){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const S=this._execute(T,E);if(S)return S;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(T,E){let R,S=!1;try{this.work(T)}catch(v){S=!0,R=v||new Error("Scheduled action threw falsy error")}if(S)return this.unsubscribe(),R}unsubscribe(){if(!this.closed){const{id:T,scheduler:E}=this,{actions:S}=E;this.work=this.state=this.scheduler=null,this.pending=!1,(0,w.P)(S,this),null!=T&&(this.id=this.recycleAsyncId(E,T,null)),this.delay=null,super.unsubscribe()}}}},97565:(Qe,he,u)=>{"use strict";u.d(he,{v:()=>A});var e=u(26063);class m{constructor(p,g=m.now){this.schedulerActionCtor=p,this.now=g}schedule(p,g=0,T){return new this.schedulerActionCtor(this,p).schedule(T,g)}}m.now=e.l.now;class A extends m{constructor(p,g=m.now){super(p,g),this.actions=[],this._active=!1,this._scheduled=void 0}flush(p){const{actions:g}=this;if(this._active)return void g.push(p);let T;this._active=!0;do{if(T=p.execute(p.state,p.delay))break}while(p=g.shift());if(this._active=!1,T){for(;p=g.shift();)p.unsubscribe();throw T}}}},66406:(Qe,he,u)=>{"use strict";u.d(he,{Z:()=>T});var e=u(84408),m=u(50727);const A={schedule(S){let R=requestAnimationFrame,v=cancelAnimationFrame;const{delegate:D}=A;D&&(R=D.requestAnimationFrame,v=D.cancelAnimationFrame);const F=R(z=>{v=void 0,S(z)});return new m.w0(()=>v?.(F))},requestAnimationFrame(...S){const{delegate:R}=A;return(R?.requestAnimationFrame||requestAnimationFrame)(...S)},cancelAnimationFrame(...S){const{delegate:R}=A;return(R?.cancelAnimationFrame||cancelAnimationFrame)(...S)},delegate:void 0};var p=u(97565);const T=new class g extends p.v{flush(R){this._active=!0;const v=this._scheduled;this._scheduled=void 0;const{actions:D}=this;let F;R=R||D.shift();do{if(F=R.execute(R.state,R.delay))break}while((R=D[0])&&R.id===v&&D.shift());if(this._active=!1,F){for(;(R=D[0])&&R.id===v&&D.shift();)R.unsubscribe();throw F}}}(class w extends e.o{constructor(R,v){super(R,v),this.scheduler=R,this.work=v}requestAsyncId(R,v,D=0){return null!==D&&D>0?super.requestAsyncId(R,v,D):(R.actions.push(this),R._scheduled||(R._scheduled=A.requestAnimationFrame(()=>R.flush(void 0))))}recycleAsyncId(R,v,D=0){if(null!=D&&D>0||null==D&&this.delay>0)return super.recycleAsyncId(R,v,D);R.actions.some(F=>F.id===v)||(A.cancelAnimationFrame(v),R._scheduled=void 0)}})},53101:(Qe,he,u)=>{"use strict";u.d(he,{E:()=>z});var e=u(84408);let A,m=1;const w={};function p(G){return G in w&&(delete w[G],!0)}const g={setImmediate(G){const q=m++;return w[q]=!0,A||(A=Promise.resolve()),A.then(()=>p(q)&&G()),q},clearImmediate(G){p(G)}},{setImmediate:E,clearImmediate:S}=g,R={setImmediate(...G){const{delegate:q}=R;return(q?.setImmediate||E)(...G)},clearImmediate(G){const{delegate:q}=R;return(q?.clearImmediate||S)(G)},delegate:void 0};var D=u(97565);const z=new class F extends D.v{flush(q){this._active=!0;const _e=this._scheduled;this._scheduled=void 0;const{actions:ce}=this;let Te;q=q||ce.shift();do{if(Te=q.execute(q.state,q.delay))break}while((q=ce[0])&&q.id===_e&&ce.shift());if(this._active=!1,Te){for(;(q=ce[0])&&q.id===_e&&ce.shift();)q.unsubscribe();throw Te}}}(class v extends e.o{constructor(q,_e){super(q,_e),this.scheduler=q,this.work=_e}requestAsyncId(q,_e,ce=0){return null!==ce&&ce>0?super.requestAsyncId(q,_e,ce):(q.actions.push(this),q._scheduled||(q._scheduled=R.setImmediate(q.flush.bind(q,void 0))))}recycleAsyncId(q,_e,ce=0){if(null!=ce&&ce>0||null==ce&&this.delay>0)return super.recycleAsyncId(q,_e,ce);q.actions.some(Te=>Te.id===_e)||(R.clearImmediate(_e),q._scheduled=void 0)}})},34986:(Qe,he,u)=>{"use strict";u.d(he,{P:()=>w,z:()=>A});var e=u(84408);const A=new(u(97565).v)(e.o),w=A},26063:(Qe,he,u)=>{"use strict";u.d(he,{l:()=>e});const e={now:()=>(e.delegate||Date).now(),delegate:void 0}},43410:(Qe,he,u)=>{"use strict";u.d(he,{z:()=>e});const e={setTimeout(m,A,...w){const{delegate:p}=e;return p?.setTimeout?p.setTimeout(m,A,...w):setTimeout(m,A,...w)},clearTimeout(m){const{delegate:A}=e;return(A?.clearTimeout||clearTimeout)(m)},delegate:void 0}},2202:(Qe,he,u)=>{"use strict";u.d(he,{h:()=>m});const m=function e(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},48822:(Qe,he,u)=>{"use strict";u.d(he,{L:()=>e});const e="function"==typeof Symbol&&Symbol.observable||"@@observable"},86805:(Qe,he,u)=>{"use strict";u.d(he,{K:()=>m});const m=(0,u(83888).d)(A=>function(){A(this),this.name="EmptyError",this.message="no elements in sequence"})},63269:(Qe,he,u)=>{"use strict";u.d(he,{_6:()=>g,jO:()=>w,yG:()=>p});var e=u(30576),m=u(93532);function A(T){return T[T.length-1]}function w(T){return(0,e.m)(A(T))?T.pop():void 0}function p(T){return(0,m.K)(A(T))?T.pop():void 0}function g(T,E){return"number"==typeof A(T)?T.pop():E}},54742:(Qe,he,u)=>{"use strict";u.d(he,{D:()=>p});const{isArray:e}=Array,{getPrototypeOf:m,prototype:A,keys:w}=Object;function p(T){if(1===T.length){const E=T[0];if(e(E))return{args:E,keys:null};if(function g(T){return T&&"object"==typeof T&&m(T)===A}(E)){const S=w(E);return{args:S.map(R=>E[R]),keys:S}}}return{args:T,keys:null}}},75797:(Qe,he,u)=>{"use strict";u.d(he,{k:()=>m});const{isArray:e}=Array;function m(A){return 1===A.length&&e(A[0])?A[0]:A}},38737:(Qe,he,u)=>{"use strict";function e(m,A){if(m){const w=m.indexOf(A);0<=w&&m.splice(w,1)}}u.d(he,{P:()=>e})},83888:(Qe,he,u)=>{"use strict";function e(m){const w=m(p=>{Error.call(p),p.stack=(new Error).stack});return w.prototype=Object.create(Error.prototype),w.prototype.constructor=w,w}u.d(he,{d:()=>e})},31810:(Qe,he,u)=>{"use strict";function e(m,A){return m.reduce((w,p,g)=>(w[p]=A[g],w),{})}u.d(he,{n:()=>e})},72806:(Qe,he,u)=>{"use strict";u.d(he,{O:()=>w,x:()=>A});var e=u(42416);let m=null;function A(p){if(e.v.useDeprecatedSynchronousErrorHandling){const g=!m;if(g&&(m={errorThrown:!1,error:null}),p(),g){const{errorThrown:T,error:E}=m;if(m=null,T)throw E}}else p()}function w(p){e.v.useDeprecatedSynchronousErrorHandling&&m&&(m.errorThrown=!0,m.error=p)}},39672:(Qe,he,u)=>{"use strict";function e(m,A,w,p=0,g=!1){const T=A.schedule(function(){w(),g?m.add(this.schedule(null,p)):this.unsubscribe()},p);if(m.add(T),!g)return T}u.d(he,{f:()=>e})},44671:(Qe,he,u)=>{"use strict";function e(m){return m}u.d(he,{y:()=>e})},81144:(Qe,he,u)=>{"use strict";u.d(he,{z:()=>e});const e=m=>m&&"number"==typeof m.length&&"function"!=typeof m},12206:(Qe,he,u)=>{"use strict";u.d(he,{D:()=>m});var e=u(30576);function m(A){return Symbol.asyncIterator&&(0,e.m)(A?.[Symbol.asyncIterator])}},51165:(Qe,he,u)=>{"use strict";function e(m){return m instanceof Date&&!isNaN(m)}u.d(he,{q:()=>e})},30576:(Qe,he,u)=>{"use strict";function e(m){return"function"==typeof m}u.d(he,{m:()=>e})},93670:(Qe,he,u)=>{"use strict";u.d(he,{c:()=>A});var e=u(48822),m=u(30576);function A(w){return(0,m.m)(w[e.L])}},26495:(Qe,he,u)=>{"use strict";u.d(he,{T:()=>A});var e=u(2202),m=u(30576);function A(w){return(0,m.m)(w?.[e.h])}},45191:(Qe,he,u)=>{"use strict";u.d(he,{b:()=>A});var e=u(69751),m=u(30576);function A(w){return!!w&&(w instanceof e.y||(0,m.m)(w.lift)&&(0,m.m)(w.subscribe))}},28239:(Qe,he,u)=>{"use strict";u.d(he,{t:()=>m});var e=u(30576);function m(A){return(0,e.m)(A?.then)}},53260:(Qe,he,u)=>{"use strict";u.d(he,{L:()=>w,Q:()=>A});var e=u(70655),m=u(30576);function A(p){return(0,e.FC)(this,arguments,function*(){const T=p.getReader();try{for(;;){const{value:E,done:S}=yield(0,e.qq)(T.read());if(S)return yield(0,e.qq)(void 0);yield yield(0,e.qq)(E)}}finally{T.releaseLock()}})}function w(p){return(0,m.m)(p?.getReader)}},93532:(Qe,he,u)=>{"use strict";u.d(he,{K:()=>m});var e=u(30576);function m(A){return A&&(0,e.m)(A.schedule)}},54482:(Qe,he,u)=>{"use strict";u.d(he,{A:()=>m,e:()=>A});var e=u(30576);function m(w){return(0,e.m)(w?.lift)}function A(w){return p=>{if(m(p))return p.lift(function(g){try{return w(g,this)}catch(T){this.error(T)}});throw new TypeError("Unable to lift unknown Observable type")}}},83268:(Qe,he,u)=>{"use strict";u.d(he,{Z:()=>w});var e=u(54004);const{isArray:m}=Array;function w(p){return(0,e.U)(g=>function A(p,g){return m(g)?p(...g):p(g)}(p,g))}},25032:(Qe,he,u)=>{"use strict";function e(){}u.d(he,{Z:()=>e})},89635:(Qe,he,u)=>{"use strict";u.d(he,{U:()=>A,z:()=>m});var e=u(44671);function m(...w){return A(w)}function A(w){return 0===w.length?e.y:1===w.length?w[0]:function(g){return w.reduce((T,E)=>E(T),g)}}},87849:(Qe,he,u)=>{"use strict";u.d(he,{h:()=>A});var e=u(42416),m=u(43410);function A(w){m.z.setTimeout(()=>{const{onUnhandledError:p}=e.v;if(!p)throw w;p(w)})}},44532:(Qe,he,u)=>{"use strict";function e(m){return new TypeError(`You provided ${null!==m&&"object"==typeof m?"an invalid object":`'${m}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}u.d(he,{z:()=>e})},70655:(Qe,he,u)=>{"use strict";function p(ge,Se,Be,pe){var de,$e=arguments.length,Ce=$e<3?Se:null===pe?pe=Object.getOwnPropertyDescriptor(Se,Be):pe;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)Ce=Reflect.decorate(ge,Se,Be,pe);else for(var re=ge.length-1;re>=0;re--)(de=ge[re])&&(Ce=($e<3?de(Ce):$e>3?de(Se,Be,Ce):de(Se,Be))||Ce);return $e>3&&Ce&&Object.defineProperty(Se,Be,Ce),Ce}function E(ge,Se,Be,pe){return new(Be||(Be=Promise))(function(Ce,de){function re(Me){try{N(pe.next(Me))}catch(Y){de(Y)}}function B(Me){try{N(pe.throw(Me))}catch(Y){de(Y)}}function N(Me){Me.done?Ce(Me.value):function $e(Ce){return Ce instanceof Be?Ce:new Be(function(de){de(Ce)})}(Me.value).then(re,B)}N((pe=pe.apply(ge,Se||[])).next())})}function q(ge){return this instanceof q?(this.v=ge,this):new q(ge)}function _e(ge,Se,Be){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var $e,pe=Be.apply(ge,Se||[]),Ce=[];return $e={},de("next"),de("throw"),de("return"),$e[Symbol.asyncIterator]=function(){return this},$e;function de(be){pe[be]&&($e[be]=function(De){return new Promise(function(We,Pe){Ce.push([be,De,We,Pe])>1||re(be,De)})})}function re(be,De){try{!function B(be){be.value instanceof q?Promise.resolve(be.value.v).then(N,Me):Y(Ce[0][2],be)}(pe[be](De))}catch(We){Y(Ce[0][3],We)}}function N(be){re("next",be)}function Me(be){re("throw",be)}function Y(be,De){be(De),Ce.shift(),Ce.length&&re(Ce[0][0],Ce[0][1])}}function Te(ge){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Be,Se=ge[Symbol.asyncIterator];return Se?Se.call(ge):(ge=function D(ge){var Se="function"==typeof Symbol&&Symbol.iterator,Be=Se&&ge[Se],pe=0;if(Be)return Be.call(ge);if(ge&&"number"==typeof ge.length)return{next:function(){return ge&&pe>=ge.length&&(ge=void 0),{value:ge&&ge[pe++],done:!ge}}};throw new TypeError(Se?"Object is not iterable.":"Symbol.iterator is not defined.")}(ge),Be={},pe("next"),pe("throw"),pe("return"),Be[Symbol.asyncIterator]=function(){return this},Be);function pe(Ce){Be[Ce]=ge[Ce]&&function(de){return new Promise(function(re,B){!function $e(Ce,de,re,B){Promise.resolve(B).then(function(N){Ce({value:N,done:re})},de)}(re,B,(de=ge[Ce](de)).done,de.value)})}}}u.d(he,{FC:()=>_e,KL:()=>Te,gn:()=>p,mG:()=>E,qq:()=>q})},37340:(Qe,he,u)=>{"use strict";u.d(he,{F4:()=>R,IO:()=>$,LC:()=>m,SB:()=>S,X$:()=>w,ZE:()=>ce,ZN:()=>_e,_j:()=>e,eR:()=>v,jt:()=>p,k1:()=>Te,l3:()=>A,oB:()=>E,pV:()=>F,ru:()=>g,vP:()=>T});class e{}class m{}const A="*";function w(b,H){return{type:7,name:b,definitions:H,options:{}}}function p(b,H=null){return{type:4,styles:H,timings:b}}function g(b,H=null){return{type:3,steps:b,options:H}}function T(b,H=null){return{type:2,steps:b,options:H}}function E(b){return{type:6,styles:b,offset:null}}function S(b,H,L){return{type:0,name:b,styles:H,options:L}}function R(b){return{type:5,steps:b}}function v(b,H,L=null){return{type:1,expr:b,animation:H,options:L}}function F(b=null){return{type:9,options:b}}function $(b,H,L=null){return{type:11,selector:b,animation:H,options:L}}function q(b){Promise.resolve(null).then(b)}class _e{constructor(H=0,L=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=H+L}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(H=>H()),this._onDoneFns=[])}onStart(H){this._originalOnStartFns.push(H),this._onStartFns.push(H)}onDone(H){this._originalOnDoneFns.push(H),this._onDoneFns.push(H)}onDestroy(H){this._onDestroyFns.push(H)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){q(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(H=>H()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(H=>H()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(H){this._position=this.totalTime?H*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(H){const L="start"==H?this._onStartFns:this._onDoneFns;L.forEach(V=>V()),L.length=0}}class ce{constructor(H){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=H;let L=0,V=0,Q=0;const ae=this.players.length;0==ae?q(()=>this._onFinish()):this.players.forEach(xe=>{xe.onDone(()=>{++L==ae&&this._onFinish()}),xe.onDestroy(()=>{++V==ae&&this._onDestroy()}),xe.onStart(()=>{++Q==ae&&this._onStart()})}),this.totalTime=this.players.reduce((xe,ge)=>Math.max(xe,ge.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(H=>H()),this._onDoneFns=[])}init(){this.players.forEach(H=>H.init())}onStart(H){this._onStartFns.push(H)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(H=>H()),this._onStartFns=[])}onDone(H){this._onDoneFns.push(H)}onDestroy(H){this._onDestroyFns.push(H)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(H=>H.play())}pause(){this.players.forEach(H=>H.pause())}restart(){this.players.forEach(H=>H.restart())}finish(){this._onFinish(),this.players.forEach(H=>H.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(H=>H.destroy()),this._onDestroyFns.forEach(H=>H()),this._onDestroyFns=[])}reset(){this.players.forEach(H=>H.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(H){const L=H*this.totalTime;this.players.forEach(V=>{const Q=V.totalTime?Math.min(1,L/V.totalTime):1;V.setPosition(Q)})}getPosition(){const H=this.players.reduce((L,V)=>null===L||V.totalTime>L.totalTime?V:L,null);return null!=H?H.getPosition():0}beforeDestroy(){this.players.forEach(H=>{H.beforeDestroy&&H.beforeDestroy()})}triggerCallback(H){const L="start"==H?this._onStartFns:this._onDoneFns;L.forEach(V=>V()),L.length=0}}const Te="!"},12687:(Qe,he,u)=>{"use strict";u.d(he,{$s:()=>ge,Em:()=>Ce,Kd:()=>l,X6:()=>X,ic:()=>re,kH:()=>tt,mK:()=>ne,qV:()=>le,qm:()=>fe,rt:()=>Oe,s1:()=>$e,tE:()=>Ie,yG:()=>r});var e=u(36895),m=u(94650),A=u(83353),w=u(77579),p=u(50727),g=u(61135),T=u(39646),E=u(29521),S=u(18505),R=u(78372),v=u(39300),D=u(54004),F=u(95698),z=u(35684),$=u(71884),G=u(82722),q=u(21281),_e=u(49643),ce=u(62289);function L(Ke,je){return(Ke.getAttribute(je)||"").match(/\S+/g)||[]}const Q="cdk-describedby-message",ae="cdk-describedby-host";let xe=0,ge=(()=>{class Ke{constructor(Le,ie){this._platform=ie,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+xe++,this._document=Le,this._id=(0,m.f3M)(m.AFp)+"-"+xe++}describe(Le,ie,Ae){if(!this._canBeDescribed(Le,ie))return;const st=Se(ie,Ae);"string"!=typeof ie?(Be(ie,this._id),this._messageRegistry.set(st,{messageElement:ie,referenceCount:0})):this._messageRegistry.has(st)||this._createMessageElement(ie,Ae),this._isElementDescribedByMessage(Le,st)||this._addMessageReference(Le,st)}removeDescription(Le,ie,Ae){var st;if(!ie||!this._isElementNode(Le))return;const ze=Se(ie,Ae);if(this._isElementDescribedByMessage(Le,ze)&&this._removeMessageReference(Le,ze),"string"==typeof ie){const _t=this._messageRegistry.get(ze);_t&&0===_t.referenceCount&&this._deleteMessageElement(ze)}0===(null===(st=this._messagesContainer)||void 0===st?void 0:st.childNodes.length)&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){var Le;const ie=this._document.querySelectorAll(`[${ae}="${this._id}"]`);for(let Ae=0;Ae0!=Ae.indexOf(Q));Le.setAttribute("aria-describedby",ie.join(" "))}_addMessageReference(Le,ie){const Ae=this._messageRegistry.get(ie);(function b(Ke,je,Le){const ie=L(Ke,je);ie.some(Ae=>Ae.trim()==Le.trim())||(ie.push(Le.trim()),Ke.setAttribute(je,ie.join(" ")))})(Le,"aria-describedby",Ae.messageElement.id),Le.setAttribute(ae,this._id),Ae.referenceCount++}_removeMessageReference(Le,ie){const Ae=this._messageRegistry.get(ie);Ae.referenceCount--,function H(Ke,je,Le){const Ae=L(Ke,je).filter(st=>st!=Le.trim());Ae.length?Ke.setAttribute(je,Ae.join(" ")):Ke.removeAttribute(je)}(Le,"aria-describedby",Ae.messageElement.id),Le.removeAttribute(ae)}_isElementDescribedByMessage(Le,ie){const Ae=L(Le,"aria-describedby"),st=this._messageRegistry.get(ie),ze=st&&st.messageElement.id;return!!ze&&-1!=Ae.indexOf(ze)}_canBeDescribed(Le,ie){if(!this._isElementNode(Le))return!1;if(ie&&"object"==typeof ie)return!0;const Ae=null==ie?"":`${ie}`.trim(),st=Le.getAttribute("aria-label");return!(!Ae||st&&st.trim()===Ae)}_isElementNode(Le){return Le.nodeType===this._document.ELEMENT_NODE}}return Ke.\u0275fac=function(Le){return new(Le||Ke)(m.LFG(e.K0),m.LFG(A.t4))},Ke.\u0275prov=m.Yz7({token:Ke,factory:Ke.\u0275fac,providedIn:"root"}),Ke})();function Se(Ke,je){return"string"==typeof Ke?`${je||""}/${Ke}`:Ke}function Be(Ke,je){Ke.id||(Ke.id=`${Q}-${je}-${xe++}`)}class pe{constructor(je){this._items=je,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new w.x,this._typeaheadSubscription=p.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=Le=>Le.disabled,this._pressedLetters=[],this.tabOut=new w.x,this.change=new w.x,je instanceof m.n_E&&je.changes.subscribe(Le=>{if(this._activeItem){const Ae=Le.toArray().indexOf(this._activeItem);Ae>-1&&Ae!==this._activeItemIndex&&(this._activeItemIndex=Ae)}})}skipPredicate(je){return this._skipPredicateFn=je,this}withWrap(je=!0){return this._wrap=je,this}withVerticalOrientation(je=!0){return this._vertical=je,this}withHorizontalOrientation(je){return this._horizontal=je,this}withAllowedModifierKeys(je){return this._allowedModifierKeys=je,this}withTypeAhead(je=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,S.b)(Le=>this._pressedLetters.push(Le)),(0,R.b)(je),(0,v.h)(()=>this._pressedLetters.length>0),(0,D.U)(()=>this._pressedLetters.join(""))).subscribe(Le=>{const ie=this._getItemsArray();for(let Ae=1;Ae!je[st]||this._allowedModifierKeys.indexOf(st)>-1);switch(Le){case E.Mf:return void this.tabOut.next();case E.JH:if(this._vertical&&Ae){this.setNextItemActive();break}return;case E.LH:if(this._vertical&&Ae){this.setPreviousItemActive();break}return;case E.SV:if(this._horizontal&&Ae){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case E.oh:if(this._horizontal&&Ae){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case E.Sd:if(this._homeAndEnd&&Ae){this.setFirstItemActive();break}return;case E.uR:if(this._homeAndEnd&&Ae){this.setLastItemActive();break}return;default:return void((Ae||(0,E.Vb)(je,"shiftKey"))&&(je.key&&1===je.key.length?this._letterKeyStream.next(je.key.toLocaleUpperCase()):(Le>=E.A&&Le<=E.Z||Le>=E.xE&&Le<=E.aO)&&this._letterKeyStream.next(String.fromCharCode(Le))))}this._pressedLetters=[],je.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(je){const Le=this._getItemsArray(),ie="number"==typeof je?je:Le.indexOf(je);this._activeItem=Le[ie]??null,this._activeItemIndex=ie}_setActiveItemByDelta(je){this._wrap?this._setActiveInWrapMode(je):this._setActiveInDefaultMode(je)}_setActiveInWrapMode(je){const Le=this._getItemsArray();for(let ie=1;ie<=Le.length;ie++){const Ae=(this._activeItemIndex+je*ie+Le.length)%Le.length;if(!this._skipPredicateFn(Le[Ae]))return void this.setActiveItem(Ae)}}_setActiveInDefaultMode(je){this._setActiveItemByIndex(this._activeItemIndex+je,je)}_setActiveItemByIndex(je,Le){const ie=this._getItemsArray();if(ie[je]){for(;this._skipPredicateFn(ie[je]);)if(!ie[je+=Le])return;this.setActiveItem(je)}}_getItemsArray(){return this._items instanceof m.n_E?this._items.toArray():this._items}}class $e extends pe{setActiveItem(je){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(je),this.activeItem&&this.activeItem.setActiveStyles()}}class Ce extends pe{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(je){return this._origin=je,this}setActiveItem(je){super.setActiveItem(je),this.activeItem&&this.activeItem.focus(this._origin)}}let re=(()=>{class Ke{constructor(Le){this._platform=Le}isDisabled(Le){return Le.hasAttribute("disabled")}isVisible(Le){return function N(Ke){return!!(Ke.offsetWidth||Ke.offsetHeight||"function"==typeof Ke.getClientRects&&Ke.getClientRects().length)}(Le)&&"visible"===getComputedStyle(Le).visibility}isTabbable(Le){if(!this._platform.isBrowser)return!1;const ie=function B(Ke){try{return Ke.frameElement}catch{return null}}(function J(Ke){return Ke.ownerDocument&&Ke.ownerDocument.defaultView||window}(Le));if(ie&&(-1===nt(ie)||!this.isVisible(ie)))return!1;let Ae=Le.nodeName.toLowerCase(),st=nt(Le);return Le.hasAttribute("contenteditable")?-1!==st:!("iframe"===Ae||"object"===Ae||this._platform.WEBKIT&&this._platform.IOS&&!function Ye(Ke){let je=Ke.nodeName.toLowerCase(),Le="input"===je&&Ke.type;return"text"===Le||"password"===Le||"select"===je||"textarea"===je}(Le))&&("audio"===Ae?!!Le.hasAttribute("controls")&&-1!==st:"video"===Ae?-1!==st&&(null!==st||this._platform.FIREFOX||Le.hasAttribute("controls")):Le.tabIndex>=0)}isFocusable(Le,ie){return function Tt(Ke){return!function Y(Ke){return function De(Ke){return"input"==Ke.nodeName.toLowerCase()}(Ke)&&"hidden"==Ke.type}(Ke)&&(function Me(Ke){let je=Ke.nodeName.toLowerCase();return"input"===je||"select"===je||"button"===je||"textarea"===je}(Ke)||function be(Ke){return function We(Ke){return"a"==Ke.nodeName.toLowerCase()}(Ke)&&Ke.hasAttribute("href")}(Ke)||Ke.hasAttribute("contenteditable")||Pe(Ke))}(Le)&&!this.isDisabled(Le)&&(ie?.ignoreVisibility||this.isVisible(Le))}}return Ke.\u0275fac=function(Le){return new(Le||Ke)(m.LFG(A.t4))},Ke.\u0275prov=m.Yz7({token:Ke,factory:Ke.\u0275fac,providedIn:"root"}),Ke})();function Pe(Ke){if(!Ke.hasAttribute("tabindex")||void 0===Ke.tabIndex)return!1;let je=Ke.getAttribute("tabindex");return!(!je||isNaN(parseInt(je,10)))}function nt(Ke){if(!Pe(Ke))return null;const je=parseInt(Ke.getAttribute("tabindex")||"",10);return isNaN(je)?-1:je}class Xe{constructor(je,Le,ie,Ae,st=!1){this._element=je,this._checker=Le,this._ngZone=ie,this._document=Ae,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,st||this.attachAnchors()}get enabled(){return this._enabled}set enabled(je){this._enabled=je,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(je,this._startAnchor),this._toggleAnchorTabIndex(je,this._endAnchor))}destroy(){const je=this._startAnchor,Le=this._endAnchor;je&&(je.removeEventListener("focus",this.startAnchorListener),je.remove()),Le&&(Le.removeEventListener("focus",this.endAnchorListener),Le.remove()),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(je){return new Promise(Le=>{this._executeOnStable(()=>Le(this.focusInitialElement(je)))})}focusFirstTabbableElementWhenReady(je){return new Promise(Le=>{this._executeOnStable(()=>Le(this.focusFirstTabbableElement(je)))})}focusLastTabbableElementWhenReady(je){return new Promise(Le=>{this._executeOnStable(()=>Le(this.focusLastTabbableElement(je)))})}_getRegionBoundary(je){const Le=this._element.querySelectorAll(`[cdk-focus-region-${je}], [cdkFocusRegion${je}], [cdk-focus-${je}]`);return"start"==je?Le.length?Le[0]:this._getFirstTabbableElement(this._element):Le.length?Le[Le.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(je){const Le=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(Le){if(!this._checker.isFocusable(Le)){const ie=this._getFirstTabbableElement(Le);return ie?.focus(je),!!ie}return Le.focus(je),!0}return this.focusFirstTabbableElement(je)}focusFirstTabbableElement(je){const Le=this._getRegionBoundary("start");return Le&&Le.focus(je),!!Le}focusLastTabbableElement(je){const Le=this._getRegionBoundary("end");return Le&&Le.focus(je),!!Le}hasAttached(){return this._hasAttached}_getFirstTabbableElement(je){if(this._checker.isFocusable(je)&&this._checker.isTabbable(je))return je;const Le=je.children;for(let ie=0;ie=0;ie--){const Ae=Le[ie].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(Le[ie]):null;if(Ae)return Ae}return null}_createAnchor(){const je=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,je),je.classList.add("cdk-visually-hidden"),je.classList.add("cdk-focus-trap-anchor"),je.setAttribute("aria-hidden","true"),je}_toggleAnchorTabIndex(je,Le){je?Le.setAttribute("tabindex","0"):Le.removeAttribute("tabindex")}toggleAnchors(je){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(je,this._startAnchor),this._toggleAnchorTabIndex(je,this._endAnchor))}_executeOnStable(je){this._ngZone.isStable?je():this._ngZone.onStable.pipe((0,F.q)(1)).subscribe(je)}}let le=(()=>{class Ke{constructor(Le,ie,Ae){this._checker=Le,this._ngZone=ie,this._document=Ae}create(Le,ie=!1){return new Xe(Le,this._checker,this._ngZone,this._document,ie)}}return Ke.\u0275fac=function(Le){return new(Le||Ke)(m.LFG(re),m.LFG(m.R0b),m.LFG(e.K0))},Ke.\u0275prov=m.Yz7({token:Ke,factory:Ke.\u0275fac,providedIn:"root"}),Ke})(),ne=(()=>{class Ke{constructor(Le,ie,Ae){this._elementRef=Le,this._focusTrapFactory=ie,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(Le){this.focusTrap.enabled=(0,q.Ig)(Le)}get autoCapture(){return this._autoCapture}set autoCapture(Le){this._autoCapture=(0,q.Ig)(Le)}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(Le){const ie=Le.autoCapture;ie&&!ie.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,A.ht)(),this.focusTrap.focusInitialElementWhenReady()}}return Ke.\u0275fac=function(Le){return new(Le||Ke)(m.Y36(m.SBq),m.Y36(le),m.Y36(e.K0))},Ke.\u0275dir=m.lG2({type:Ke,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[m.TTD]}),Ke})();function X(Ke){return 0===Ke.buttons||0===Ke.offsetX&&0===Ke.offsetY}function r(Ke){const je=Ke.touches&&Ke.touches[0]||Ke.changedTouches&&Ke.changedTouches[0];return!(!je||-1!==je.identifier||null!=je.radiusX&&1!==je.radiusX||null!=je.radiusY&&1!==je.radiusY)}const s=new m.OlP("cdk-input-modality-detector-options"),_={ignoreKeys:[E.zL,E.jx,E.b2,E.MW,E.JU]},a=(0,A.i$)({passive:!0,capture:!0});let i=(()=>{class Ke{constructor(Le,ie,Ae,st){this._platform=Le,this._mostRecentTarget=null,this._modality=new g.X(null),this._lastTouchMs=0,this._onKeydown=ze=>{var _t,me;null!==(_t=this._options)&&void 0!==_t&&null!==(me=_t.ignoreKeys)&&void 0!==me&&me.some(qe=>qe===ze.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,A.sA)(ze))},this._onMousedown=ze=>{Date.now()-this._lastTouchMs<650||(this._modality.next(X(ze)?"keyboard":"mouse"),this._mostRecentTarget=(0,A.sA)(ze))},this._onTouchstart=ze=>{r(ze)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,A.sA)(ze))},this._options={..._,...st},this.modalityDetected=this._modality.pipe((0,z.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,$.x)()),Le.isBrowser&&ie.runOutsideAngular(()=>{Ae.addEventListener("keydown",this._onKeydown,a),Ae.addEventListener("mousedown",this._onMousedown,a),Ae.addEventListener("touchstart",this._onTouchstart,a)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,a),document.removeEventListener("mousedown",this._onMousedown,a),document.removeEventListener("touchstart",this._onTouchstart,a))}}return Ke.\u0275fac=function(Le){return new(Le||Ke)(m.LFG(A.t4),m.LFG(m.R0b),m.LFG(e.K0),m.LFG(s,8))},Ke.\u0275prov=m.Yz7({token:Ke,factory:Ke.\u0275fac,providedIn:"root"}),Ke})();const t=new m.OlP("liveAnnouncerElement",{providedIn:"root",factory:function n(){return null}}),o=new m.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let l=(()=>{class Ke{constructor(Le,ie,Ae,st){this._ngZone=ie,this._defaultOptions=st,this._document=Ae,this._liveElement=Le||this._createLiveElement()}announce(Le,...ie){const Ae=this._defaultOptions;let st,ze;return 1===ie.length&&"number"==typeof ie[0]?ze=ie[0]:[st,ze]=ie,this.clear(),clearTimeout(this._previousTimeout),st||(st=Ae&&Ae.politeness?Ae.politeness:"polite"),null==ze&&Ae&&(ze=Ae.duration),this._liveElement.setAttribute("aria-live",st),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(_t=>this._currentResolve=_t)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=Le,"number"==typeof ze&&(this._previousTimeout=setTimeout(()=>this.clear(),ze)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){var Le,ie;clearTimeout(this._previousTimeout),null===(Le=this._liveElement)||void 0===Le||Le.remove(),this._liveElement=null,null===(ie=this._currentResolve)||void 0===ie||ie.call(this),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const Le="cdk-live-announcer-element",ie=this._document.getElementsByClassName(Le),Ae=this._document.createElement("div");for(let st=0;st{class Ke{constructor(Le,ie,Ae,st,ze){this._ngZone=Le,this._platform=ie,this._inputModalityDetector=Ae,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new w.x,this._rootNodeFocusAndBlurListener=_t=>{for(let qe=(0,A.sA)(_t);qe;qe=qe.parentElement)"focus"===_t.type?this._onFocus(_t,qe):this._onBlur(_t,qe)},this._document=st,this._detectionMode=ze?.detectionMode||0}monitor(Le,ie=!1){const Ae=(0,q.fI)(Le);if(!this._platform.isBrowser||1!==Ae.nodeType)return(0,T.of)(null);const st=(0,A.kV)(Ae)||this._getDocument(),ze=this._elementInfo.get(Ae);if(ze)return ie&&(ze.checkChildren=!0),ze.subject;const _t={checkChildren:ie,subject:new w.x,rootNode:st};return this._elementInfo.set(Ae,_t),this._registerGlobalListeners(_t),_t.subject}stopMonitoring(Le){const ie=(0,q.fI)(Le),Ae=this._elementInfo.get(ie);Ae&&(Ae.subject.complete(),this._setClasses(ie),this._elementInfo.delete(ie),this._removeGlobalListeners(Ae))}focusVia(Le,ie,Ae){const st=(0,q.fI)(Le);st===this._getDocument().activeElement?this._getClosestElementsInfo(st).forEach(([_t,me])=>this._originChanged(_t,ie,me)):(this._setOrigin(ie),"function"==typeof st.focus&&st.focus(Ae))}ngOnDestroy(){this._elementInfo.forEach((Le,ie)=>this.stopMonitoring(ie))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(Le){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(Le)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:Le&&this._isLastInteractionFromInputLabel(Le)?"mouse":"program"}_shouldBeAttributedToTouch(Le){return 1===this._detectionMode||!(null==Le||!Le.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(Le,ie){Le.classList.toggle("cdk-focused",!!ie),Le.classList.toggle("cdk-touch-focused","touch"===ie),Le.classList.toggle("cdk-keyboard-focused","keyboard"===ie),Le.classList.toggle("cdk-mouse-focused","mouse"===ie),Le.classList.toggle("cdk-program-focused","program"===ie)}_setOrigin(Le,ie=!1){this._ngZone.runOutsideAngular(()=>{this._origin=Le,this._originFromTouchInteraction="touch"===Le&&ie,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(Le,ie){const Ae=this._elementInfo.get(ie),st=(0,A.sA)(Le);!Ae||!Ae.checkChildren&&ie!==st||this._originChanged(ie,this._getFocusOrigin(st),Ae)}_onBlur(Le,ie){const Ae=this._elementInfo.get(ie);!Ae||Ae.checkChildren&&Le.relatedTarget instanceof Node&&ie.contains(Le.relatedTarget)||(this._setClasses(ie),this._emitOrigin(Ae,null))}_emitOrigin(Le,ie){Le.subject.observers.length&&this._ngZone.run(()=>Le.subject.next(ie))}_registerGlobalListeners(Le){if(!this._platform.isBrowser)return;const ie=Le.rootNode,Ae=this._rootNodeFocusListenerCount.get(ie)||0;Ae||this._ngZone.runOutsideAngular(()=>{ie.addEventListener("focus",this._rootNodeFocusAndBlurListener,k),ie.addEventListener("blur",this._rootNodeFocusAndBlurListener,k)}),this._rootNodeFocusListenerCount.set(ie,Ae+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,G.R)(this._stopInputModalityDetector)).subscribe(st=>{this._setOrigin(st,!0)}))}_removeGlobalListeners(Le){const ie=Le.rootNode;if(this._rootNodeFocusListenerCount.has(ie)){const Ae=this._rootNodeFocusListenerCount.get(ie);Ae>1?this._rootNodeFocusListenerCount.set(ie,Ae-1):(ie.removeEventListener("focus",this._rootNodeFocusAndBlurListener,k),ie.removeEventListener("blur",this._rootNodeFocusAndBlurListener,k),this._rootNodeFocusListenerCount.delete(ie))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(Le,ie,Ae){this._setClasses(Le,ie),this._emitOrigin(Ae,ie),this._lastFocusOrigin=ie}_getClosestElementsInfo(Le){const ie=[];return this._elementInfo.forEach((Ae,st)=>{(st===Le||Ae.checkChildren&&st.contains(Le))&&ie.push([st,Ae])}),ie}_isLastInteractionFromInputLabel(Le){const{_mostRecentTarget:ie,mostRecentModality:Ae}=this._inputModalityDetector;if("mouse"!==Ae||!ie||ie===Le||"INPUT"!==Le.nodeName&&"TEXTAREA"!==Le.nodeName||Le.disabled)return!1;const st=Le.labels;if(st)for(let ze=0;ze{class Ke{constructor(Le,ie){this._elementRef=Le,this._focusMonitor=ie,this.cdkFocusChange=new m.vpe}ngAfterViewInit(){const Le=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(Le,1===Le.nodeType&&Le.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(ie=>this.cdkFocusChange.emit(ie))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return Ke.\u0275fac=function(Le){return new(Le||Ke)(m.Y36(m.SBq),m.Y36(Ie))},Ke.\u0275dir=m.lG2({type:Ke,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),Ke})();const ct="cdk-high-contrast-black-on-white",Ue="cdk-high-contrast-white-on-black",at="cdk-high-contrast-active";let fe=(()=>{class Ke{constructor(Le,ie){this._platform=Le,this._document=ie,this._breakpointSubscription=(0,m.f3M)(ce.Yg).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const Le=this._document.createElement("div");Le.style.backgroundColor="rgb(1,2,3)",Le.style.position="absolute",this._document.body.appendChild(Le);const ie=this._document.defaultView||window,Ae=ie&&ie.getComputedStyle?ie.getComputedStyle(Le):null,st=(Ae&&Ae.backgroundColor||"").replace(/ /g,"");switch(Le.remove(),st){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const Le=this._document.body.classList;Le.remove(at,ct,Ue),this._hasCheckedHighContrastMode=!0;const ie=this.getHighContrastMode();1===ie?Le.add(at,ct):2===ie&&Le.add(at,Ue)}}}return Ke.\u0275fac=function(Le){return new(Le||Ke)(m.LFG(A.t4),m.LFG(e.K0))},Ke.\u0275prov=m.Yz7({token:Ke,factory:Ke.\u0275fac,providedIn:"root"}),Ke})(),Oe=(()=>{class Ke{constructor(Le){Le._applyBodyHighContrastModeCssClasses()}}return Ke.\u0275fac=function(Le){return new(Le||Ke)(m.LFG(fe))},Ke.\u0275mod=m.oAB({type:Ke}),Ke.\u0275inj=m.cJS({imports:[_e.Q8]}),Ke})()},40445:(Qe,he,u)=>{"use strict";u.d(he,{Is:()=>T,vT:()=>S});var e=u(94650),m=u(36895);const A=new e.OlP("cdk-dir-doc",{providedIn:"root",factory:function w(){return(0,e.f3M)(m.K0)}}),p=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let T=(()=>{class R{constructor(D){if(this.value="ltr",this.change=new e.vpe,D){const z=D.documentElement?D.documentElement.dir:null;this.value=function g(R){var v;const D=R?.toLowerCase()||"";return"auto"===D&&typeof navigator<"u"&&null!==(v=navigator)&&void 0!==v&&v.language?p.test(navigator.language)?"rtl":"ltr":"rtl"===D?"rtl":"ltr"}((D.body?D.body.dir:null)||z||"ltr")}}ngOnDestroy(){this.change.complete()}}return R.\u0275fac=function(D){return new(D||R)(e.LFG(A,8))},R.\u0275prov=e.Yz7({token:R,factory:R.\u0275fac,providedIn:"root"}),R})(),S=(()=>{class R{}return R.\u0275fac=function(D){return new(D||R)},R.\u0275mod=e.oAB({type:R}),R.\u0275inj=e.cJS({}),R})()},64425:(Qe,he,u)=>{"use strict";u.d(he,{Iq:()=>T,TU:()=>w,i3:()=>g});var e=u(36895),m=u(94650);class A{constructor(S,R){this._document=R;const v=this._textarea=this._document.createElement("textarea"),D=v.style;D.position="fixed",D.top=D.opacity="0",D.left="-999em",v.setAttribute("aria-hidden","true"),v.value=S,v.readOnly=!0,this._document.body.appendChild(v)}copy(){const S=this._textarea;let R=!1;try{if(S){const v=this._document.activeElement;S.select(),S.setSelectionRange(0,S.value.length),R=this._document.execCommand("copy"),v&&v.focus()}}catch{}return R}destroy(){const S=this._textarea;S&&(S.remove(),this._textarea=void 0)}}let w=(()=>{class E{constructor(R){this._document=R}copy(R){const v=this.beginCopy(R),D=v.copy();return v.destroy(),D}beginCopy(R){return new A(R,this._document)}}return E.\u0275fac=function(R){return new(R||E)(m.LFG(e.K0))},E.\u0275prov=m.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"}),E})();const p=new m.OlP("CDK_COPY_TO_CLIPBOARD_CONFIG");let g=(()=>{class E{constructor(R,v,D){this._clipboard=R,this._ngZone=v,this.text="",this.attempts=1,this.copied=new m.vpe,this._pending=new Set,D&&null!=D.attempts&&(this.attempts=D.attempts)}copy(R=this.attempts){if(R>1){let v=R;const D=this._clipboard.beginCopy(this.text);this._pending.add(D);const F=()=>{const z=D.copy();z||!--v||this._destroyed?(this._currentTimeout=null,this._pending.delete(D),D.destroy(),this.copied.emit(z)):this._currentTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(F,1))};F()}else this.copied.emit(this._clipboard.copy(this.text))}ngOnDestroy(){this._currentTimeout&&clearTimeout(this._currentTimeout),this._pending.forEach(R=>R.destroy()),this._pending.clear(),this._destroyed=!0}}return E.\u0275fac=function(R){return new(R||E)(m.Y36(w),m.Y36(m.R0b),m.Y36(p,8))},E.\u0275dir=m.lG2({type:E,selectors:[["","cdkCopyToClipboard",""]],hostBindings:function(R,v){1&R&&m.NdJ("click",function(){return v.copy()})},inputs:{text:["cdkCopyToClipboard","text"],attempts:["cdkCopyToClipboardAttempts","attempts"]},outputs:{copied:"cdkCopyToClipboardCopied"}}),E})(),T=(()=>{class E{}return E.\u0275fac=function(R){return new(R||E)},E.\u0275mod=m.oAB({type:E}),E.\u0275inj=m.cJS({}),E})()},21281:(Qe,he,u)=>{"use strict";u.d(he,{Eq:()=>p,HM:()=>g,Ig:()=>m,du:()=>E,fI:()=>T,su:()=>A,t6:()=>w});var e=u(94650);function m(S){return null!=S&&"false"!=`${S}`}function A(S,R=0){return w(S)?Number(S):R}function w(S){return!isNaN(parseFloat(S))&&!isNaN(Number(S))}function p(S){return Array.isArray(S)?S:[S]}function g(S){return null==S?"":"string"==typeof S?S:`${S}px`}function T(S){return S instanceof e.SBq?S.nativeElement:S}function E(S,R=/\s+/){const v=[];if(null!=S){const D=Array.isArray(S)?S:`${S}`.split(R);for(const F of D){const z=`${F}`.trim();z&&v.push(z)}}return v}},95017:(Qe,he,u)=>{"use strict";u.d(he,{A8:()=>D,Ov:()=>R,P3:()=>T,Z9:()=>g,eX:()=>S,k:()=>F,o2:()=>p,yy:()=>E});var e=u(45191),m=u(39646),A=u(77579),w=u(94650);class p{}function g(z){return z&&"function"==typeof z.connect}class T extends p{constructor($){super(),this._data=$}connect(){return(0,e.b)(this._data)?this._data:(0,m.of)(this._data)}disconnect(){}}class E{applyChanges($,G,q,_e,ce){$.forEachOperation((Te,b,H)=>{let L,V;if(null==Te.previousIndex){const ae=q(Te,b,H);L=G.createEmbeddedView(ae.templateRef,ae.context,ae.index),V=1}else null==H?(G.remove(b),V=3):(L=G.get(b),G.move(L,H),V=2);var Q;ce&&ce({context:null===(Q=L)||void 0===Q?void 0:Q.context,operation:V,record:Te})})}detach(){}}class S{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges($,G,q,_e,ce){$.forEachOperation((Te,b,H)=>{let L,V;var Q;null==Te.previousIndex?(L=this._insertView(()=>q(Te,b,H),H,G,_e(Te)),V=L?1:0):null==H?(this._detachAndCacheView(b,G),V=3):(L=this._moveView(b,H,G,_e(Te)),V=2),ce&&ce({context:null===(Q=L)||void 0===Q?void 0:Q.context,operation:V,record:Te})})}detach(){for(const $ of this._viewCache)$.destroy();this._viewCache=[]}_insertView($,G,q,_e){const ce=this._insertViewFromCache(G,q);if(ce)return void(ce.context.$implicit=_e);const Te=$();return q.createEmbeddedView(Te.templateRef,Te.context,Te.index)}_detachAndCacheView($,G){const q=G.detach($);this._maybeCacheView(q,G)}_moveView($,G,q,_e){const ce=q.get($);return q.move(ce,G),ce.context.$implicit=_e,ce}_maybeCacheView($,G){if(this._viewCache.lengththis._markSelected(ce)):this._markSelected(G[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...$){this._verifyValueAssignment($),$.forEach(q=>this._markSelected(q));const G=this._hasQueuedChanges();return this._emitChangeEvent(),G}deselect(...$){this._verifyValueAssignment($),$.forEach(q=>this._unmarkSelected(q));const G=this._hasQueuedChanges();return this._emitChangeEvent(),G}setSelection(...$){this._verifyValueAssignment($);const G=this.selected,q=new Set($);$.forEach(ce=>this._markSelected(ce)),G.filter(ce=>!q.has(ce)).forEach(ce=>this._unmarkSelected(ce));const _e=this._hasQueuedChanges();return this._emitChangeEvent(),_e}toggle($){return this.isSelected($)?this.deselect($):this.select($)}clear($=!0){this._unmarkAll();const G=this._hasQueuedChanges();return $&&this._emitChangeEvent(),G}isSelected($){if(this.compareWith){for(const G of this._selection)if(this.compareWith(G,$))return!0;return!1}return this._selection.has($)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort($){this._multiple&&this.selected&&this._selected.sort($)}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($){this.isSelected($)||(this._multiple||this._unmarkAll(),this.isSelected($)||this._selection.add($),this._emitChanges&&this._selectedToEmit.push($))}_unmarkSelected($){this.isSelected($)&&(this._selection.delete($),this._emitChanges&&this._deselectedToEmit.push($))}_unmarkAll(){this.isEmpty()||this._selection.forEach($=>this._unmarkSelected($))}_verifyValueAssignment($){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}}let D=(()=>{class z{constructor(){this._listeners=[]}notify(G,q){for(let _e of this._listeners)_e(G,q)}listen(G){return this._listeners.push(G),()=>{this._listeners=this._listeners.filter(q=>G!==q)}}ngOnDestroy(){this._listeners=[]}}return z.\u0275fac=function(G){return new(G||z)},z.\u0275prov=w.Yz7({token:z,factory:z.\u0275fac,providedIn:"root"}),z})();const F=new w.OlP("_ViewRepeater")},73555:(Qe,he,u)=>{"use strict";u.d(he,{Wj:()=>k,Zt:()=>Ke,_t:()=>je,bA:()=>J});var e=u(94650),m=u(36895),A=u(67376),w=u(83353),p=u(21281),g=u(12687),T=u(77579),E=u(50727),S=u(17445),R=u(66406),v=u(69751),D=u(56451),F=u(82722),z=u(68675),$=u(54004),G=u(95698),q=u(18505),_e=u(63900),ce=u(40445);function Te(Le,ie,Ae){for(let st in ie)if(ie.hasOwnProperty(st)){const ze=ie[st];ze?Le.setProperty(st,ze,null!=Ae&&Ae.has(st)?"important":""):Le.removeProperty(st)}return Le}function b(Le,ie){const Ae=ie?"":"none";Te(Le.style,{"touch-action":ie?"":"none","-webkit-user-drag":ie?"":"none","-webkit-tap-highlight-color":ie?"":"transparent","user-select":Ae,"-ms-user-select":Ae,"-webkit-user-select":Ae,"-moz-user-select":Ae})}function H(Le,ie,Ae){Te(Le.style,{position:ie?"":"fixed",top:ie?"":"0",opacity:ie?"":"0",left:ie?"":"-999em"},Ae)}function L(Le,ie){return ie&&"none"!=ie?Le+" "+ie:Le}function V(Le){const ie=Le.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(Le)*ie}function ae(Le,ie){return Le.getPropertyValue(ie).split(",").map(st=>st.trim())}function xe(Le){const ie=Le.getBoundingClientRect();return{top:ie.top,right:ie.right,bottom:ie.bottom,left:ie.left,width:ie.width,height:ie.height,x:ie.x,y:ie.y}}function ge(Le,ie,Ae){const{top:st,bottom:ze,left:_t,right:me}=Le;return Ae>=st&&Ae<=ze&&ie>=_t&&ie<=me}function Se(Le,ie,Ae){Le.top+=ie,Le.bottom=Le.top+Le.height,Le.left+=Ae,Le.right=Le.left+Le.width}function Be(Le,ie,Ae,st){const{top:ze,right:_t,bottom:me,left:qe,width:rt,height:Mt}=Le,Qt=rt*ie,Gt=Mt*ie;return st>ze-Gt&&stqe-Qt&&Ae<_t+Qt}class pe{constructor(ie){this._document=ie,this.positions=new Map}clear(){this.positions.clear()}cache(ie){this.clear(),this.positions.set(this._document,{scrollPosition:this.getViewportScrollPosition()}),ie.forEach(Ae=>{this.positions.set(Ae,{scrollPosition:{top:Ae.scrollTop,left:Ae.scrollLeft},clientRect:xe(Ae)})})}handleScroll(ie){const Ae=(0,w.sA)(ie),st=this.positions.get(Ae);if(!st)return null;const ze=st.scrollPosition;let _t,me;if(Ae===this._document){const Mt=this.getViewportScrollPosition();_t=Mt.top,me=Mt.left}else _t=Ae.scrollTop,me=Ae.scrollLeft;const qe=ze.top-_t,rt=ze.left-me;return this.positions.forEach((Mt,Qt)=>{Mt.clientRect&&Ae!==Qt&&Ae.contains(Qt)&&Se(Mt.clientRect,qe,rt)}),ze.top=_t,ze.left=me,{top:qe,left:rt}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function $e(Le){const ie=Le.cloneNode(!0),Ae=ie.querySelectorAll("[id]"),st=Le.nodeName.toLowerCase();ie.removeAttribute("id");for(let ze=0;ze{if(this.beforeStarted.next(),this._handles.length){const rt=this._getTargetHandle(qe);rt&&!this._disabledHandles.has(rt)&&!this.disabled&&this._initializeDragSequence(rt,qe)}else this.disabled||this._initializeDragSequence(this._rootElement,qe)},this._pointerMove=qe=>{const rt=this._getPointerPositionOnPage(qe);if(!this._hasStartedDragging){if(Math.abs(rt.x-this._pickupPositionOnPage.x)+Math.abs(rt.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const hn=Date.now()>=this._dragStartTime+this._getDragStartDelay(qe),Nt=this._dropContainer;if(!hn)return void this._endDragSequence(qe);(!Nt||!Nt.isDragging()&&!Nt.isReceiving())&&(qe.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(qe)))}return}qe.preventDefault();const Mt=this._getConstrainedPointerPosition(rt);if(this._hasMoved=!0,this._lastKnownPointerPosition=rt,this._updatePointerDirectionDelta(Mt),this._dropContainer)this._updateActiveDropContainer(Mt,rt);else{const Qt=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,Gt=this._activeTransform;Gt.x=Mt.x-Qt.x+this._passiveTransform.x,Gt.y=Mt.y-Qt.y+this._passiveTransform.y,this._applyRootElementTransform(Gt.x,Gt.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:Mt,event:qe,distance:this._getDragDistance(Mt),delta:this._pointerDirectionDelta})})},this._pointerUp=qe=>{this._endDragSequence(qe)},this._nativeDragStart=qe=>{if(this._handles.length){const rt=this._getTargetHandle(qe);rt&&!this._disabledHandles.has(rt)&&!this.disabled&&qe.preventDefault()}else this.disabled||qe.preventDefault()},this.withRootElement(ie).withParent(Ae.parentDragRef||null),this._parentPositions=new pe(st),me.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(ie){const Ae=(0,p.Ig)(ie);Ae!==this._disabled&&(this._disabled=Ae,this._toggleNativeDragInteractions(),this._handles.forEach(st=>b(st,Ae)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(ie){this._handles=ie.map(st=>(0,p.fI)(st)),this._handles.forEach(st=>b(st,this.disabled)),this._toggleNativeDragInteractions();const Ae=new Set;return this._disabledHandles.forEach(st=>{this._handles.indexOf(st)>-1&&Ae.add(st)}),this._disabledHandles=Ae,this}withPreviewTemplate(ie){return this._previewTemplate=ie,this}withPlaceholderTemplate(ie){return this._placeholderTemplate=ie,this}withRootElement(ie){const Ae=(0,p.fI)(ie);return Ae!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{Ae.addEventListener("mousedown",this._pointerDown,Me),Ae.addEventListener("touchstart",this._pointerDown,N),Ae.addEventListener("dragstart",this._nativeDragStart,Me)}),this._initialTransform=void 0,this._rootElement=Ae),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(ie){return this._boundaryElement=ie?(0,p.fI)(ie):null,this._resizeSubscription.unsubscribe(),ie&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(ie){return this._parentDragRef=ie,this}dispose(){var ie,Ae;this._removeRootElementListeners(this._rootElement),this.isDragging()&&(null===(Ae=this._rootElement)||void 0===Ae||Ae.remove()),null===(ie=this._anchor)||void 0===ie||ie.remove(),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=this._parentDragRef=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(ie){!this._disabledHandles.has(ie)&&this._handles.indexOf(ie)>-1&&(this._disabledHandles.add(ie),b(ie,!0))}enableHandle(ie){this._disabledHandles.has(ie)&&(this._disabledHandles.delete(ie),b(ie,this.disabled))}withDirection(ie){return this._direction=ie,this}_withDropContainer(ie){this._dropContainer=ie}getFreeDragPosition(){const ie=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:ie.x,y:ie.y}}setFreeDragPosition(ie){return this._activeTransform={x:0,y:0},this._passiveTransform.x=ie.x,this._passiveTransform.y=ie.y,this._dropContainer||this._applyRootElementTransform(ie.x,ie.y),this}withPreviewContainer(ie){return this._previewContainer=ie,this}_sortFromLastPointerPosition(){const ie=this._lastKnownPointerPosition;ie&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(ie),ie)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){var ie,Ae;null===(ie=this._preview)||void 0===ie||ie.remove(),null===(Ae=this._previewRef)||void 0===Ae||Ae.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){var ie,Ae;null===(ie=this._placeholder)||void 0===ie||ie.remove(),null===(Ae=this._placeholderRef)||void 0===Ae||Ae.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(ie){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:ie}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(ie),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const Ae=this._getPointerPositionOnPage(ie);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(Ae),dropPoint:Ae,event:ie})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(ie){nt(ie)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const Ae=this._dropContainer;if(Ae){const st=this._rootElement,ze=st.parentNode,_t=this._placeholder=this._createPlaceholderElement(),me=this._anchor=this._anchor||this._document.createComment(""),qe=this._getShadowRoot();ze.insertBefore(me,st),this._initialTransform=st.style.transform||"",this._preview=this._createPreviewElement(),H(st,!1,be),this._document.body.appendChild(ze.replaceChild(_t,st)),this._getPreviewInsertionPoint(ze,qe).appendChild(this._preview),this.started.next({source:this,event:ie}),Ae.start(),this._initialContainer=Ae,this._initialIndex=Ae.getItemIndex(this)}else this.started.next({source:this,event:ie}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(Ae?Ae.getScrollableParents():[])}_initializeDragSequence(ie,Ae){this._parentDragRef&&Ae.stopPropagation();const st=this.isDragging(),ze=nt(Ae),_t=!ze&&0!==Ae.button,me=this._rootElement,qe=(0,w.sA)(Ae),rt=!ze&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),Mt=ze?(0,g.yG)(Ae):(0,g.X6)(Ae);if(qe&&qe.draggable&&"mousedown"===Ae.type&&Ae.preventDefault(),st||_t||rt||Mt)return;if(this._handles.length){const an=me.style;this._rootElementTapHighlight=an.webkitTapHighlightColor||"",an.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(an=>this._updateOnScroll(an)),this._boundaryElement&&(this._boundaryRect=xe(this._boundaryElement));const Qt=this._previewTemplate;this._pickupPositionInElement=Qt&&Qt.template&&!Qt.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,ie,Ae);const Gt=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(Ae);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:Gt.x,y:Gt.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,Ae)}_cleanupDragArtifacts(ie){H(this._rootElement,!0,be),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const Ae=this._dropContainer,st=Ae.getItemIndex(this),ze=this._getPointerPositionOnPage(ie),_t=this._getDragDistance(ze),me=Ae._isOverContainer(ze.x,ze.y);this.ended.next({source:this,distance:_t,dropPoint:ze,event:ie}),this.dropped.next({item:this,currentIndex:st,previousIndex:this._initialIndex,container:Ae,previousContainer:this._initialContainer,isPointerOverContainer:me,distance:_t,dropPoint:ze,event:ie}),Ae.drop(this,st,this._initialIndex,this._initialContainer,me,_t,ze),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:ie,y:Ae},{x:st,y:ze}){let _t=this._initialContainer._getSiblingContainerFromPosition(this,ie,Ae);!_t&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(ie,Ae)&&(_t=this._initialContainer),_t&&_t!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=_t,this._dropContainer.enter(this,ie,Ae,_t===this._initialContainer&&_t.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:_t,currentIndex:_t.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(st,ze),this._dropContainer._sortItem(this,ie,Ae,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(ie,Ae):this._applyPreviewTransform(ie-this._pickupPositionInElement.x,Ae-this._pickupPositionInElement.y))}_createPreviewElement(){const ie=this._previewTemplate,Ae=this.previewClass,st=ie?ie.template:null;let ze;if(st&&ie){const _t=ie.matchSize?this._initialClientRect:null,me=ie.viewContainer.createEmbeddedView(st,ie.context);me.detectChanges(),ze=Ye(me,this._document),this._previewRef=me,ie.matchSize?Tt(ze,_t):ze.style.transform=We(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else ze=$e(this._rootElement),Tt(ze,this._initialClientRect),this._initialTransform&&(ze.style.transform=this._initialTransform);return Te(ze.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},be),b(ze,!1),ze.classList.add("cdk-drag-preview"),ze.setAttribute("dir",this._direction),Ae&&(Array.isArray(Ae)?Ae.forEach(_t=>ze.classList.add(_t)):ze.classList.add(Ae)),ze}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const ie=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(ie.left,ie.top);const Ae=function Q(Le){const ie=getComputedStyle(Le),Ae=ae(ie,"transition-property"),st=Ae.find(qe=>"transform"===qe||"all"===qe);if(!st)return 0;const ze=Ae.indexOf(st),_t=ae(ie,"transition-duration"),me=ae(ie,"transition-delay");return V(_t[ze])+V(me[ze])}(this._preview);return 0===Ae?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(st=>{const ze=me=>{var qe;(!me||(0,w.sA)(me)===this._preview&&"transform"===me.propertyName)&&(null===(qe=this._preview)||void 0===qe||qe.removeEventListener("transitionend",ze),st(),clearTimeout(_t))},_t=setTimeout(ze,1.5*Ae);this._preview.addEventListener("transitionend",ze)}))}_createPlaceholderElement(){const ie=this._placeholderTemplate,Ae=ie?ie.template:null;let st;return Ae?(this._placeholderRef=ie.viewContainer.createEmbeddedView(Ae,ie.context),this._placeholderRef.detectChanges(),st=Ye(this._placeholderRef,this._document)):st=$e(this._rootElement),st.style.pointerEvents="none",st.classList.add("cdk-drag-placeholder"),st}_getPointerPositionInElement(ie,Ae,st){const ze=Ae===this._rootElement?null:Ae,_t=ze?ze.getBoundingClientRect():ie,me=nt(st)?st.targetTouches[0]:st,qe=this._getViewportScrollPosition();return{x:_t.left-ie.left+(me.pageX-_t.left-qe.left),y:_t.top-ie.top+(me.pageY-_t.top-qe.top)}}_getPointerPositionOnPage(ie){const Ae=this._getViewportScrollPosition(),st=nt(ie)?ie.touches[0]||ie.changedTouches[0]||{pageX:0,pageY:0}:ie,ze=st.pageX-Ae.left,_t=st.pageY-Ae.top;if(this._ownerSVGElement){const me=this._ownerSVGElement.getScreenCTM();if(me){const qe=this._ownerSVGElement.createSVGPoint();return qe.x=ze,qe.y=_t,qe.matrixTransform(me.inverse())}}return{x:ze,y:_t}}_getConstrainedPointerPosition(ie){const Ae=this._dropContainer?this._dropContainer.lockAxis:null;let{x:st,y:ze}=this.constrainPosition?this.constrainPosition(ie,this,this._initialClientRect,this._pickupPositionInElement):ie;if("x"===this.lockAxis||"x"===Ae?ze=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===Ae)&&(st=this._pickupPositionOnPage.x),this._boundaryRect){const{x:_t,y:me}=this._pickupPositionInElement,qe=this._boundaryRect,{width:rt,height:Mt}=this._getPreviewRect(),Qt=qe.top+me,Gt=qe.bottom-(Mt-me);st=Pe(st,qe.left+_t,qe.right-(rt-_t)),ze=Pe(ze,Qt,Gt)}return{x:st,y:ze}}_updatePointerDirectionDelta(ie){const{x:Ae,y:st}=ie,ze=this._pointerDirectionDelta,_t=this._pointerPositionAtLastDirectionChange,me=Math.abs(Ae-_t.x),qe=Math.abs(st-_t.y);return me>this._config.pointerDirectionChangeThreshold&&(ze.x=Ae>_t.x?1:-1,_t.x=Ae),qe>this._config.pointerDirectionChangeThreshold&&(ze.y=st>_t.y?1:-1,_t.y=st),ze}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const ie=this._handles.length>0||!this.isDragging();ie!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=ie,b(this._rootElement,ie))}_removeRootElementListeners(ie){ie.removeEventListener("mousedown",this._pointerDown,Me),ie.removeEventListener("touchstart",this._pointerDown,N),ie.removeEventListener("dragstart",this._nativeDragStart,Me)}_applyRootElementTransform(ie,Ae){const st=We(ie,Ae),ze=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=ze.transform&&"none"!=ze.transform?ze.transform:""),ze.transform=L(st,this._initialTransform)}_applyPreviewTransform(ie,Ae){var st;const ze=null!==(st=this._previewTemplate)&&void 0!==st&&st.template?void 0:this._initialTransform,_t=We(ie,Ae);this._preview.style.transform=L(_t,ze)}_getDragDistance(ie){const Ae=this._pickupPositionOnPage;return Ae?{x:ie.x-Ae.x,y:ie.y-Ae.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:ie,y:Ae}=this._passiveTransform;if(0===ie&&0===Ae||this.isDragging()||!this._boundaryElement)return;const st=this._rootElement.getBoundingClientRect(),ze=this._boundaryElement.getBoundingClientRect();if(0===ze.width&&0===ze.height||0===st.width&&0===st.height)return;const _t=ze.left-st.left,me=st.right-ze.right,qe=ze.top-st.top,rt=st.bottom-ze.bottom;ze.width>st.width?(_t>0&&(ie+=_t),me>0&&(ie-=me)):ie=0,ze.height>st.height?(qe>0&&(Ae+=qe),rt>0&&(Ae-=rt)):Ae=0,(ie!==this._passiveTransform.x||Ae!==this._passiveTransform.y)&&this.setFreeDragPosition({y:Ae,x:ie})}_getDragStartDelay(ie){const Ae=this.dragStartDelay;return"number"==typeof Ae?Ae:nt(ie)?Ae.touch:Ae?Ae.mouse:0}_updateOnScroll(ie){const Ae=this._parentPositions.handleScroll(ie);if(Ae){const st=(0,w.sA)(ie);this._boundaryRect&&st!==this._boundaryElement&&st.contains(this._boundaryElement)&&Se(this._boundaryRect,Ae.top,Ae.left),this._pickupPositionOnPage.x+=Ae.left,this._pickupPositionOnPage.y+=Ae.top,this._dropContainer||(this._activeTransform.x-=Ae.left,this._activeTransform.y-=Ae.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){var ie;return(null===(ie=this._parentPositions.positions.get(this._document))||void 0===ie?void 0:ie.scrollPosition)||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=(0,w.kV)(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(ie,Ae){const st=this._previewContainer||"global";if("parent"===st)return ie;if("global"===st){const ze=this._document;return Ae||ze.fullscreenElement||ze.webkitFullscreenElement||ze.mozFullScreenElement||ze.msFullscreenElement||ze.body}return(0,p.fI)(st)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(ie){return this._handles.find(Ae=>ie.target&&(ie.target===Ae||Ae.contains(ie.target)))}}function We(Le,ie){return`translate3d(${Math.round(Le)}px, ${Math.round(ie)}px, 0)`}function Pe(Le,ie,Ae){return Math.max(ie,Math.min(Ae,Le))}function nt(Le){return"t"===Le.type[0]}function Ye(Le,ie){const Ae=Le.rootNodes;if(1===Ae.length&&Ae[0].nodeType===ie.ELEMENT_NODE)return Ae[0];const st=ie.createElement("div");return Ae.forEach(ze=>st.appendChild(ze)),st}function Tt(Le,ie){Le.style.width=`${ie.width}px`,Le.style.height=`${ie.height}px`,Le.style.transform=We(ie.left,ie.top)}function J(Le,ie,Ae){const st=ne(ie,Le.length-1),ze=ne(Ae,Le.length-1);if(st===ze)return;const _t=Le[st],me=ze0)return null;const qe="horizontal"===this.orientation,rt=_t.findIndex(yt=>yt.drag===ie),Mt=_t[me],Gt=Mt.clientRect,an=rt>me?1:-1,hn=this._getItemOffsetPx(_t[rt].clientRect,Gt,an),Nt=this._getSiblingOffsetPx(rt,_t,an),Ht=_t.slice();return J(_t,rt,me),_t.forEach((yt,Ft)=>{if(Ht[Ft]===yt)return;const Kt=yt.drag===ie,Cn=Kt?hn:Nt,Mn=Kt?ie.getPlaceholderElement():yt.drag.getRootElement();yt.offset+=Cn,qe?(Mn.style.transform=L(`translate3d(${Math.round(yt.offset)}px, 0, 0)`,yt.initialTransform),Se(yt.clientRect,0,Cn)):(Mn.style.transform=L(`translate3d(0, ${Math.round(yt.offset)}px, 0)`,yt.initialTransform),Se(yt.clientRect,Cn,0))}),this._previousSwap.overlaps=ge(Gt,Ae,st),this._previousSwap.drag=Mt.drag,this._previousSwap.delta=qe?ze.x:ze.y,{previousIndex:rt,currentIndex:me}}enter(ie,Ae,st,ze){const _t=null==ze||ze<0?this._getItemIndexFromPointerPosition(ie,Ae,st):ze,me=this._activeDraggables,qe=me.indexOf(ie),rt=ie.getPlaceholderElement();let Mt=me[_t];if(Mt===ie&&(Mt=me[_t+1]),!Mt&&(null==_t||-1===_t||_t-1&&me.splice(qe,1),Mt&&!this._dragDropRegistry.isDragging(Mt)){const Qt=Mt.getRootElement();Qt.parentElement.insertBefore(rt,Qt),me.splice(_t,0,ie)}else(0,p.fI)(this._element).appendChild(rt),me.push(ie);rt.style.transform="",this._cacheItemPositions()}withItems(ie){this._activeDraggables=ie.slice(),this._cacheItemPositions()}withSortPredicate(ie){this._sortPredicate=ie}reset(){this._activeDraggables.forEach(ie=>{const Ae=ie.getRootElement();if(Ae){var st;const ze=null===(st=this._itemPositions.find(_t=>_t.drag===ie))||void 0===st?void 0:st.initialTransform;Ae.style.transform=ze||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(ie){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(st=>st.drag===ie)}updateOnScroll(ie,Ae){this._itemPositions.forEach(({clientRect:st})=>{Se(st,ie,Ae)}),this._itemPositions.forEach(({drag:st})=>{this._dragDropRegistry.isDragging(st)&&st._sortFromLastPointerPosition()})}_cacheItemPositions(){const ie="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(Ae=>{const st=Ae.getVisibleElement();return{drag:Ae,offset:0,initialTransform:st.style.transform||"",clientRect:xe(st)}}).sort((Ae,st)=>ie?Ae.clientRect.left-st.clientRect.left:Ae.clientRect.top-st.clientRect.top)}_getItemOffsetPx(ie,Ae,st){const ze="horizontal"===this.orientation;let _t=ze?Ae.left-ie.left:Ae.top-ie.top;return-1===st&&(_t+=ze?Ae.width-ie.width:Ae.height-ie.height),_t}_getSiblingOffsetPx(ie,Ae,st){const ze="horizontal"===this.orientation,_t=Ae[ie].clientRect,me=Ae[ie+-1*st];let qe=_t[ze?"width":"height"]*st;if(me){const rt=ze?"left":"top",Mt=ze?"right":"bottom";-1===st?qe-=me.clientRect[rt]-_t[Mt]:qe+=_t[rt]-me.clientRect[Mt]}return qe}_shouldEnterAsFirstChild(ie,Ae){if(!this._activeDraggables.length)return!1;const st=this._itemPositions,ze="horizontal"===this.orientation;if(st[0].drag!==this._activeDraggables[0]){const me=st[st.length-1].clientRect;return ze?ie>=me.right:Ae>=me.bottom}{const me=st[0].clientRect;return ze?ie<=me.left:Ae<=me.top}}_getItemIndexFromPointerPosition(ie,Ae,st,ze){const _t="horizontal"===this.orientation,me=this._itemPositions.findIndex(({drag:qe,clientRect:rt})=>{if(qe===ie)return!1;if(ze){const Mt=_t?ze.x:ze.y;if(qe===this._previousSwap.drag&&this._previousSwap.overlaps&&Mt===this._previousSwap.delta)return!1}return _t?Ae>=Math.floor(rt.left)&&Ae=Math.floor(rt.top)&&st!0,this.sortPredicate=()=>!0,this.beforeStarted=new T.x,this.entered=new T.x,this.exited=new T.x,this.dropped=new T.x,this.sorted=new T.x,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=E.w0.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new T.x,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),(0,S.F)(0,R.Z).pipe((0,F.R)(this._stopScrollTimers)).subscribe(()=>{const me=this._scrollNode,qe=this.autoScrollStep;1===this._verticalScrollDirection?me.scrollBy(0,-qe):2===this._verticalScrollDirection&&me.scrollBy(0,qe),1===this._horizontalScrollDirection?me.scrollBy(-qe,0):2===this._horizontalScrollDirection&&me.scrollBy(qe,0)})},this.element=(0,p.fI)(ie),this._document=st,this.withScrollableParents([this.element]),Ae.registerDropContainer(this),this._parentPositions=new pe(st),this._sortStrategy=new ke(this.element,Ae),this._sortStrategy.withSortPredicate((me,qe)=>this.sortPredicate(me,qe,this))}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(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(ie,Ae,st,ze){this._draggingStarted(),null==ze&&this.sortingDisabled&&(ze=this._draggables.indexOf(ie)),this._sortStrategy.enter(ie,Ae,st,ze),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:ie,container:this,currentIndex:this.getItemIndex(ie)})}exit(ie){this._reset(),this.exited.next({item:ie,container:this})}drop(ie,Ae,st,ze,_t,me,qe,rt={}){this._reset(),this.dropped.next({item:ie,currentIndex:Ae,previousIndex:st,container:this,previousContainer:ze,isPointerOverContainer:_t,distance:me,dropPoint:qe,event:rt})}withItems(ie){const Ae=this._draggables;return this._draggables=ie,ie.forEach(st=>st._withDropContainer(this)),this.isDragging()&&(Ae.filter(ze=>ze.isDragging()).every(ze=>-1===ie.indexOf(ze))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(ie){return this._sortStrategy.direction=ie,this}connectedTo(ie){return this._siblings=ie.slice(),this}withOrientation(ie){return this._sortStrategy.orientation=ie,this}withScrollableParents(ie){const Ae=(0,p.fI)(this.element);return this._scrollableElements=-1===ie.indexOf(Ae)?[Ae,...ie]:ie.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(ie){return this._isDragging?this._sortStrategy.getItemIndex(ie):this._draggables.indexOf(ie)}isReceiving(){return this._activeSiblings.size>0}_sortItem(ie,Ae,st,ze){if(this.sortingDisabled||!this._clientRect||!Be(this._clientRect,.05,Ae,st))return;const _t=this._sortStrategy.sort(ie,Ae,st,ze);_t&&this.sorted.next({previousIndex:_t.previousIndex,currentIndex:_t.currentIndex,container:this,item:ie})}_startScrollingIfNecessary(ie,Ae){if(this.autoScrollDisabled)return;let st,ze=0,_t=0;if(this._parentPositions.positions.forEach((me,qe)=>{qe===this._document||!me.clientRect||st||Be(me.clientRect,.05,ie,Ae)&&([ze,_t]=function r(Le,ie,Ae,st){const ze=oe(ie,st),_t=X(ie,Ae);let me=0,qe=0;if(ze){const rt=Le.scrollTop;1===ze?rt>0&&(me=1):Le.scrollHeight-rt>Le.clientHeight&&(me=2)}if(_t){const rt=Le.scrollLeft;1===_t?rt>0&&(qe=1):Le.scrollWidth-rt>Le.clientWidth&&(qe=2)}return[me,qe]}(qe,me.clientRect,ie,Ae),(ze||_t)&&(st=qe))}),!ze&&!_t){const{width:me,height:qe}=this._viewportRuler.getViewportSize(),rt={width:me,height:qe,top:0,right:me,bottom:qe,left:0};ze=oe(rt,Ae),_t=X(rt,ie),st=window}st&&(ze!==this._verticalScrollDirection||_t!==this._horizontalScrollDirection||st!==this._scrollNode)&&(this._verticalScrollDirection=ze,this._horizontalScrollDirection=_t,this._scrollNode=st,(ze||_t)&&st?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const ie=(0,p.fI)(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=ie.msScrollSnapType||ie.scrollSnapType||"",ie.scrollSnapType=ie.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const ie=(0,p.fI)(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(ie).clientRect}_reset(){this._isDragging=!1;const ie=(0,p.fI)(this.element).style;ie.scrollSnapType=ie.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(Ae=>Ae._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(ie,Ae){return null!=this._clientRect&&ge(this._clientRect,ie,Ae)}_getSiblingContainerFromPosition(ie,Ae,st){return this._siblings.find(ze=>ze._canReceive(ie,Ae,st))}_canReceive(ie,Ae,st){if(!this._clientRect||!ge(this._clientRect,Ae,st)||!this.enterPredicate(ie,this))return!1;const ze=this._getShadowRoot().elementFromPoint(Ae,st);if(!ze)return!1;const _t=(0,p.fI)(this.element);return ze===_t||_t.contains(ze)}_startReceiving(ie,Ae){const st=this._activeSiblings;!st.has(ie)&&Ae.every(ze=>this.enterPredicate(ze,this)||this._draggables.indexOf(ze)>-1)&&(st.add(ie),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(ie){this._activeSiblings.delete(ie),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(ie=>{if(this.isDragging()){const Ae=this._parentPositions.handleScroll(ie);Ae&&this._sortStrategy.updateOnScroll(Ae.top,Ae.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const ie=(0,w.kV)((0,p.fI)(this.element));this._cachedShadowRoot=ie||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const ie=this._sortStrategy.getActiveItemsSnapshot().filter(Ae=>Ae.isDragging());this._siblings.forEach(Ae=>Ae._startReceiving(this,ie))}}function oe(Le,ie){const{top:Ae,bottom:st,height:ze}=Le,_t=.05*ze;return ie>=Ae-_t&&ie<=Ae+_t?1:ie>=st-_t&&ie<=st+_t?2:0}function X(Le,ie){const{left:Ae,right:st,width:ze}=Le,_t=.05*ze;return ie>=Ae-_t&&ie<=Ae+_t?1:ie>=st-_t&&ie<=st+_t?2:0}const s=(0,w.i$)({passive:!1,capture:!0});let _=(()=>{class Le{constructor(Ae,st){this._ngZone=Ae,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=ze=>ze.isDragging(),this.pointerMove=new T.x,this.pointerUp=new T.x,this.scroll=new T.x,this._preventDefaultWhileDragging=ze=>{this._activeDragInstances.length>0&&ze.preventDefault()},this._persistentTouchmoveListener=ze=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&ze.preventDefault(),this.pointerMove.next(ze))},this._document=st}registerDropContainer(Ae){this._dropInstances.has(Ae)||this._dropInstances.add(Ae)}registerDragItem(Ae){this._dragInstances.add(Ae),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,s)})}removeDropContainer(Ae){this._dropInstances.delete(Ae)}removeDragItem(Ae){this._dragInstances.delete(Ae),this.stopDragging(Ae),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,s)}startDragging(Ae,st){if(!(this._activeDragInstances.indexOf(Ae)>-1)&&(this._activeDragInstances.push(Ae),1===this._activeDragInstances.length)){const ze=st.type.startsWith("touch");this._globalListeners.set(ze?"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:s}),ze||this._globalListeners.set("mousemove",{handler:_t=>this.pointerMove.next(_t),options:s}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((_t,me)=>{this._document.addEventListener(me,_t.handler,_t.options)})})}}stopDragging(Ae){const st=this._activeDragInstances.indexOf(Ae);st>-1&&(this._activeDragInstances.splice(st,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(Ae){return this._activeDragInstances.indexOf(Ae)>-1}scrolled(Ae){const st=[this.scroll];return Ae&&Ae!==this._document&&st.push(new v.y(ze=>this._ngZone.runOutsideAngular(()=>{const me=qe=>{this._activeDragInstances.length&&ze.next(qe)};return Ae.addEventListener("scroll",me,!0),()=>{Ae.removeEventListener("scroll",me,!0)}}))),(0,D.T)(...st)}ngOnDestroy(){this._dragInstances.forEach(Ae=>this.removeDragItem(Ae)),this._dropInstances.forEach(Ae=>this.removeDropContainer(Ae)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((Ae,st)=>{this._document.removeEventListener(st,Ae.handler,Ae.options)}),this._globalListeners.clear()}}return Le.\u0275fac=function(Ae){return new(Ae||Le)(e.LFG(e.R0b),e.LFG(m.K0))},Le.\u0275prov=e.Yz7({token:Le,factory:Le.\u0275fac,providedIn:"root"}),Le})();const c={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let a=(()=>{class Le{constructor(Ae,st,ze,_t){this._document=Ae,this._ngZone=st,this._viewportRuler=ze,this._dragDropRegistry=_t}createDrag(Ae,st=c){return new De(Ae,st,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(Ae){return new it(Ae,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return Le.\u0275fac=function(Ae){return new(Ae||Le)(e.LFG(m.K0),e.LFG(e.R0b),e.LFG(A.rL),e.LFG(_))},Le.\u0275prov=e.Yz7({token:Le,factory:Le.\u0275fac,providedIn:"root"}),Le})();const i=new e.OlP("CDK_DRAG_PARENT"),t=new e.OlP("CdkDropListGroup"),o=new e.OlP("CDK_DRAG_CONFIG");let d=0;const y=new e.OlP("CdkDropList");let k=(()=>{class Le{constructor(Ae,st,ze,_t,me,qe,rt){this.element=Ae,this._changeDetectorRef=ze,this._scrollDispatcher=_t,this._dir=me,this._group=qe,this._destroyed=new T.x,this.connectedTo=[],this.id="cdk-drop-list-"+d++,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.dropped=new e.vpe,this.entered=new e.vpe,this.exited=new e.vpe,this.sorted=new e.vpe,this._unsortedItems=new Set,this._dropListRef=st.createDropList(Ae),this._dropListRef.data=this,rt&&this._assignDefaults(rt),this._dropListRef.enterPredicate=(Mt,Qt)=>this.enterPredicate(Mt.data,Qt.data),this._dropListRef.sortPredicate=(Mt,Qt,Gt)=>this.sortPredicate(Mt,Qt.data,Gt.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),Le._dropLists.push(this),qe&&qe._items.add(this)}get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(Ae){this._dropListRef.disabled=this._disabled=(0,p.Ig)(Ae)}addItem(Ae){this._unsortedItems.add(Ae),this._dropListRef.isDragging()&&this._syncItemsWithRef()}removeItem(Ae){this._unsortedItems.delete(Ae),this._dropListRef.isDragging()&&this._syncItemsWithRef()}getSortedItems(){return Array.from(this._unsortedItems).sort((Ae,st)=>Ae._dragRef.getVisibleElement().compareDocumentPosition(st._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){const Ae=Le._dropLists.indexOf(this);Ae>-1&&Le._dropLists.splice(Ae,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}_setupInputSyncSubscription(Ae){this._dir&&this._dir.change.pipe((0,z.O)(this._dir.value),(0,F.R)(this._destroyed)).subscribe(st=>Ae.withDirection(st)),Ae.beforeStarted.subscribe(()=>{const st=(0,p.Eq)(this.connectedTo).map(ze=>"string"==typeof ze?Le._dropLists.find(me=>me.id===ze):ze);if(this._group&&this._group._items.forEach(ze=>{-1===st.indexOf(ze)&&st.push(ze)}),!this._scrollableParentsResolved){const ze=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(_t=>_t.getElementRef().nativeElement);this._dropListRef.withScrollableParents(ze),this._scrollableParentsResolved=!0}Ae.disabled=this.disabled,Ae.lockAxis=this.lockAxis,Ae.sortingDisabled=(0,p.Ig)(this.sortingDisabled),Ae.autoScrollDisabled=(0,p.Ig)(this.autoScrollDisabled),Ae.autoScrollStep=(0,p.su)(this.autoScrollStep,2),Ae.connectedTo(st.filter(ze=>ze&&ze!==this).map(ze=>ze._dropListRef)).withOrientation(this.orientation)})}_handleEvents(Ae){Ae.beforeStarted.subscribe(()=>{this._syncItemsWithRef(),this._changeDetectorRef.markForCheck()}),Ae.entered.subscribe(st=>{this.entered.emit({container:this,item:st.item.data,currentIndex:st.currentIndex})}),Ae.exited.subscribe(st=>{this.exited.emit({container:this,item:st.item.data}),this._changeDetectorRef.markForCheck()}),Ae.sorted.subscribe(st=>{this.sorted.emit({previousIndex:st.previousIndex,currentIndex:st.currentIndex,container:this,item:st.item.data})}),Ae.dropped.subscribe(st=>{this.dropped.emit({previousIndex:st.previousIndex,currentIndex:st.currentIndex,previousContainer:st.previousContainer.data,container:st.container.data,item:st.item.data,isPointerOverContainer:st.isPointerOverContainer,distance:st.distance,dropPoint:st.dropPoint,event:st.event}),this._changeDetectorRef.markForCheck()})}_assignDefaults(Ae){const{lockAxis:st,draggingDisabled:ze,sortingDisabled:_t,listAutoScrollDisabled:me,listOrientation:qe}=Ae;this.disabled=ze??!1,this.sortingDisabled=_t??!1,this.autoScrollDisabled=me??!1,this.orientation=qe||"vertical",st&&(this.lockAxis=st)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(Ae=>Ae._dragRef))}}return Le._dropLists=[],Le.\u0275fac=function(Ae){return new(Ae||Le)(e.Y36(e.SBq),e.Y36(a),e.Y36(e.sBO),e.Y36(A.mF),e.Y36(ce.Is,8),e.Y36(t,12),e.Y36(o,8))},Le.\u0275dir=e.lG2({type:Le,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(Ae,st){2&Ae&&(e.uIk("id",st.id),e.ekj("cdk-drop-list-disabled",st.disabled)("cdk-drop-list-dragging",st._dropListRef.isDragging())("cdk-drop-list-receiving",st._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],data:["cdkDropListData","data"],orientation:["cdkDropListOrientation","orientation"],id:"id",lockAxis:["cdkDropListLockAxis","lockAxis"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],sortPredicate:["cdkDropListSortPredicate","sortPredicate"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],autoScrollStep:["cdkDropListAutoScrollStep","autoScrollStep"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[e._Bn([{provide:t,useValue:void 0},{provide:y,useExisting:Le}])]}),Le})();const Ie=new e.OlP("CdkDragHandle"),ct=new e.OlP("CdkDragPlaceholder"),at=new e.OlP("CdkDragPreview");let Ke=(()=>{class Le{constructor(Ae,st,ze,_t,me,qe,rt,Mt,Qt,Gt,an){this.element=Ae,this.dropContainer=st,this._ngZone=_t,this._viewContainerRef=me,this._dir=rt,this._changeDetectorRef=Qt,this._selfHandle=Gt,this._parentDrag=an,this._destroyed=new T.x,this.started=new e.vpe,this.released=new e.vpe,this.ended=new e.vpe,this.entered=new e.vpe,this.exited=new e.vpe,this.dropped=new e.vpe,this.moved=new v.y(hn=>{const Nt=this._dragRef.moved.pipe((0,$.U)(Ht=>({source:this,pointerPosition:Ht.pointerPosition,event:Ht.event,delta:Ht.delta,distance:Ht.distance}))).subscribe(hn);return()=>{Nt.unsubscribe()}}),this._dragRef=Mt.createDrag(Ae,{dragStartThreshold:qe&&null!=qe.dragStartThreshold?qe.dragStartThreshold:5,pointerDirectionChangeThreshold:qe&&null!=qe.pointerDirectionChangeThreshold?qe.pointerDirectionChangeThreshold:5,zIndex:qe?.zIndex}),this._dragRef.data=this,Le._dragInstances.push(this),qe&&this._assignDefaults(qe),st&&(this._dragRef._withDropContainer(st._dropListRef),st.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(Ae){this._disabled=(0,p.Ig)(Ae),this._dragRef.disabled=this._disabled}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}setFreeDragPosition(Ae){this._dragRef.setFreeDragPosition(Ae)}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,G.q)(1),(0,F.R)(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._setupHandlesListener(),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})})}ngOnChanges(Ae){const st=Ae.rootElementSelector,ze=Ae.freeDragPosition;st&&!st.firstChange&&this._updateRootElement(),ze&&!ze.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const Ae=Le._dragInstances.indexOf(this);Ae>-1&&Le._dragInstances.splice(Ae,1),this._ngZone.runOutsideAngular(()=>{this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_updateRootElement(){const Ae=this.element.nativeElement;let st=Ae;var ze;this.rootElementSelector&&(st=void 0!==Ae.closest?Ae.closest(this.rootElementSelector):null===(ze=Ae.parentElement)||void 0===ze?void 0:ze.closest(this.rootElementSelector)),this._dragRef.withRootElement(st||Ae)}_getBoundaryElement(){const Ae=this.boundaryElement;return Ae?"string"==typeof Ae?this.element.nativeElement.closest(Ae):(0,p.fI)(Ae):null}_syncInputs(Ae){Ae.beforeStarted.subscribe(()=>{if(!Ae.isDragging()){const st=this._dir,ze=this.dragStartDelay,_t=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,me=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;Ae.disabled=this.disabled,Ae.lockAxis=this.lockAxis,Ae.dragStartDelay="object"==typeof ze&&ze?ze:(0,p.su)(ze),Ae.constrainPosition=this.constrainPosition,Ae.previewClass=this.previewClass,Ae.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(_t).withPreviewTemplate(me).withPreviewContainer(this.previewContainer||"global"),st&&Ae.withDirection(st.value)}}),Ae.beforeStarted.pipe((0,G.q)(1)).subscribe(()=>{if(this._parentDrag)return void Ae.withParent(this._parentDrag._dragRef);let st=this.element.nativeElement.parentElement;for(;st;){if(st.classList.contains("cdk-drag")){var ze;Ae.withParent((null===(ze=Le._dragInstances.find(_t=>_t.element.nativeElement===st))||void 0===ze?void 0:ze._dragRef)||null);break}st=st.parentElement}})}_handleEvents(Ae){Ae.started.subscribe(st=>{this.started.emit({source:this,event:st.event}),this._changeDetectorRef.markForCheck()}),Ae.released.subscribe(st=>{this.released.emit({source:this,event:st.event})}),Ae.ended.subscribe(st=>{this.ended.emit({source:this,distance:st.distance,dropPoint:st.dropPoint,event:st.event}),this._changeDetectorRef.markForCheck()}),Ae.entered.subscribe(st=>{this.entered.emit({container:st.container.data,item:this,currentIndex:st.currentIndex})}),Ae.exited.subscribe(st=>{this.exited.emit({container:st.container.data,item:this})}),Ae.dropped.subscribe(st=>{this.dropped.emit({previousIndex:st.previousIndex,currentIndex:st.currentIndex,previousContainer:st.previousContainer.data,container:st.container.data,isPointerOverContainer:st.isPointerOverContainer,item:this,distance:st.distance,dropPoint:st.dropPoint,event:st.event})})}_assignDefaults(Ae){const{lockAxis:st,dragStartDelay:ze,constrainPosition:_t,previewClass:me,boundaryElement:qe,draggingDisabled:rt,rootElementSelector:Mt,previewContainer:Qt}=Ae;this.disabled=rt??!1,this.dragStartDelay=ze||0,st&&(this.lockAxis=st),_t&&(this.constrainPosition=_t),me&&(this.previewClass=me),qe&&(this.boundaryElement=qe),Mt&&(this.rootElementSelector=Mt),Qt&&(this.previewContainer=Qt)}_setupHandlesListener(){this._handles.changes.pipe((0,z.O)(this._handles),(0,q.b)(Ae=>{const st=Ae.filter(ze=>ze._parentDrag===this).map(ze=>ze.element);this._selfHandle&&this.rootElementSelector&&st.push(this.element),this._dragRef.withHandles(st)}),(0,_e.w)(Ae=>(0,D.T)(...Ae.map(st=>st._stateChanges.pipe((0,z.O)(st))))),(0,F.R)(this._destroyed)).subscribe(Ae=>{const st=this._dragRef,ze=Ae.element.nativeElement;Ae.disabled?st.disableHandle(ze):st.enableHandle(ze)})}}return Le._dragInstances=[],Le.\u0275fac=function(Ae){return new(Ae||Le)(e.Y36(e.SBq),e.Y36(y,12),e.Y36(m.K0),e.Y36(e.R0b),e.Y36(e.s_b),e.Y36(o,8),e.Y36(ce.Is,8),e.Y36(a),e.Y36(e.sBO),e.Y36(Ie,10),e.Y36(i,12))},Le.\u0275dir=e.lG2({type:Le,selectors:[["","cdkDrag",""]],contentQueries:function(Ae,st,ze){if(1&Ae&&(e.Suo(ze,at,5),e.Suo(ze,ct,5),e.Suo(ze,Ie,5)),2&Ae){let _t;e.iGM(_t=e.CRH())&&(st._previewTemplate=_t.first),e.iGM(_t=e.CRH())&&(st._placeholderTemplate=_t.first),e.iGM(_t=e.CRH())&&(st._handles=_t)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(Ae,st){2&Ae&&e.ekj("cdk-drag-disabled",st.disabled)("cdk-drag-dragging",st._dragRef.isDragging())},inputs:{data:["cdkDragData","data"],lockAxis:["cdkDragLockAxis","lockAxis"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],boundaryElement:["cdkDragBoundary","boundaryElement"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"],disabled:["cdkDragDisabled","disabled"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],previewContainer:["cdkDragPreviewContainer","previewContainer"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[e._Bn([{provide:i,useExisting:Le}]),e.TTD]}),Le})(),je=(()=>{class Le{}return Le.\u0275fac=function(Ae){return new(Ae||Le)},Le.\u0275mod=e.oAB({type:Le}),Le.\u0275inj=e.cJS({providers:[a],imports:[A.ZD]}),Le})()},29521:(Qe,he,u)=>{"use strict";u.d(he,{A:()=>Y,JH:()=>Te,JU:()=>g,K5:()=>p,Ku:()=>F,LH:()=>_e,L_:()=>D,MW:()=>o,Mf:()=>A,OC:()=>vt,SV:()=>ce,Sd:()=>G,VM:()=>z,Vb:()=>nr,Z:()=>n,ZH:()=>m,aO:()=>de,b2:()=>Bn,hY:()=>v,jx:()=>T,oh:()=>q,uR:()=>$,xE:()=>Q,yY:()=>V,zL:()=>E});const m=8,A=9,p=13,g=16,T=17,E=18,v=27,D=32,F=33,z=34,$=35,G=36,q=37,_e=38,ce=39,Te=40,V=46,Q=48,de=57,Y=65,n=90,o=91,vt=188,Bn=224;function nr(Wn,...ri){return ri.length?ri.some(Qi=>Wn[Qi]):Wn.altKey||Wn.shiftKey||Wn.ctrlKey||Wn.metaKey}},62289:(Qe,he,u)=>{"use strict";u.d(he,{Yg:()=>Te,u3:()=>H});var e=u(94650),m=u(21281),A=u(77579),w=u(39841),p=u(97272),g=u(69751),T=u(95698),E=u(35684),S=u(78372),R=u(54004),v=u(68675),D=u(82722),F=u(83353);const $=new Set;let G,q=(()=>{class L{constructor(Q){this._platform=Q,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):ce}matchMedia(Q){return(this._platform.WEBKIT||this._platform.BLINK)&&function _e(L){if(!$.has(L))try{G||(G=document.createElement("style"),G.setAttribute("type","text/css"),document.head.appendChild(G)),G.sheet&&(G.sheet.insertRule(`@media ${L} {body{ }}`,0),$.add(L))}catch(V){console.error(V)}}(Q),this._matchMedia(Q)}}return L.\u0275fac=function(Q){return new(Q||L)(e.LFG(F.t4))},L.\u0275prov=e.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})();function ce(L){return{matches:"all"===L||""===L,media:L,addListener:()=>{},removeListener:()=>{}}}let Te=(()=>{class L{constructor(Q,ae){this._mediaMatcher=Q,this._zone=ae,this._queries=new Map,this._destroySubject=new A.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(Q){return b((0,m.Eq)(Q)).some(xe=>this._registerQuery(xe).mql.matches)}observe(Q){const xe=b((0,m.Eq)(Q)).map(Se=>this._registerQuery(Se).observable);let ge=(0,w.a)(xe);return ge=(0,p.z)(ge.pipe((0,T.q)(1)),ge.pipe((0,E.T)(1),(0,S.b)(0))),ge.pipe((0,R.U)(Se=>{const Be={matches:!1,breakpoints:{}};return Se.forEach(({matches:pe,query:$e})=>{Be.matches=Be.matches||pe,Be.breakpoints[$e]=pe}),Be}))}_registerQuery(Q){if(this._queries.has(Q))return this._queries.get(Q);const ae=this._mediaMatcher.matchMedia(Q),ge={observable:new g.y(Se=>{const Be=pe=>this._zone.run(()=>Se.next(pe));return ae.addListener(Be),()=>{ae.removeListener(Be)}}).pipe((0,v.O)(ae),(0,R.U)(({matches:Se})=>({query:Q,matches:Se})),(0,D.R)(this._destroySubject)),mql:ae};return this._queries.set(Q,ge),ge}}return L.\u0275fac=function(Q){return new(Q||L)(e.LFG(q),e.LFG(e.R0b))},L.\u0275prov=e.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})();function b(L){return L.map(V=>V.split(",")).reduce((V,Q)=>V.concat(Q)).map(V=>V.trim())}const H={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)"}},49643:(Qe,he,u)=>{"use strict";u.d(he,{Q8:()=>S,wD:()=>E});var e=u(21281),m=u(94650),A=u(69751),w=u(77579),p=u(78372);let g=(()=>{class R{create(D){return typeof MutationObserver>"u"?null:new MutationObserver(D)}}return R.\u0275fac=function(D){return new(D||R)},R.\u0275prov=m.Yz7({token:R,factory:R.\u0275fac,providedIn:"root"}),R})(),T=(()=>{class R{constructor(D){this._mutationObserverFactory=D,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((D,F)=>this._cleanupObserver(F))}observe(D){const F=(0,e.fI)(D);return new A.y(z=>{const G=this._observeElement(F).subscribe(z);return()=>{G.unsubscribe(),this._unobserveElement(F)}})}_observeElement(D){if(this._observedElements.has(D))this._observedElements.get(D).count++;else{const F=new w.x,z=this._mutationObserverFactory.create($=>F.next($));z&&z.observe(D,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(D,{observer:z,stream:F,count:1})}return this._observedElements.get(D).stream}_unobserveElement(D){this._observedElements.has(D)&&(this._observedElements.get(D).count--,this._observedElements.get(D).count||this._cleanupObserver(D))}_cleanupObserver(D){if(this._observedElements.has(D)){const{observer:F,stream:z}=this._observedElements.get(D);F&&F.disconnect(),z.complete(),this._observedElements.delete(D)}}}return R.\u0275fac=function(D){return new(D||R)(m.LFG(g))},R.\u0275prov=m.Yz7({token:R,factory:R.\u0275fac,providedIn:"root"}),R})(),E=(()=>{class R{constructor(D,F,z){this._contentObserver=D,this._elementRef=F,this._ngZone=z,this.event=new m.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(D){this._disabled=(0,e.Ig)(D),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(D){this._debounce=(0,e.su)(D),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const D=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?D.pipe((0,p.b)(this.debounce)):D).subscribe(this.event)})}_unsubscribe(){var D;null===(D=this._currentSubscription)||void 0===D||D.unsubscribe()}}return R.\u0275fac=function(D){return new(D||R)(m.Y36(T),m.Y36(m.SBq),m.Y36(m.R0b))},R.\u0275dir=m.lG2({type:R,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),R})(),S=(()=>{class R{}return R.\u0275fac=function(D){return new(D||R)},R.\u0275mod=m.oAB({type:R}),R.\u0275inj=m.cJS({providers:[g]}),R})()},98184:(Qe,he,u)=>{"use strict";u.d(he,{Iu:()=>de,U8:()=>it,X_:()=>V,Xj:()=>Ce,_G:()=>N,aV:()=>J,pI:()=>ke,xu:()=>ne});var e=u(67376),m=u(36895),A=u(94650),w=u(21281),p=u(83353),g=u(40445),T=u(84080),E=u(77579),S=u(50727),R=u(56451),v=u(95698),D=u(82722),F=u(22529),z=u(29521);const $=(0,p.Mq)();class G{constructor(r,s){this._viewportRuler=r,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=s}attach(){}enable(){if(this._canBeEnabled()){const r=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=r.style.left||"",this._previousHTMLStyles.top=r.style.top||"",r.style.left=(0,w.HM)(-this._previousScrollPosition.left),r.style.top=(0,w.HM)(-this._previousScrollPosition.top),r.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const r=this._document.documentElement,_=r.style,c=this._document.body.style,a=_.scrollBehavior||"",i=c.scrollBehavior||"";this._isEnabled=!1,_.left=this._previousHTMLStyles.left,_.top=this._previousHTMLStyles.top,r.classList.remove("cdk-global-scrollblock"),$&&(_.scrollBehavior=c.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),$&&(_.scrollBehavior=a,c.scrollBehavior=i)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const s=this._document.body,_=this._viewportRuler.getViewportSize();return s.scrollHeight>_.height||s.scrollWidth>_.width}}class _e{constructor(r,s,_,c){this._scrollDispatcher=r,this._ngZone=s,this._viewportRuler=_,this._config=c,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(r){this._overlayRef=r}enable(){if(this._scrollSubscription)return;const r=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=r.subscribe(()=>{const s=this._viewportRuler.getViewportScrollPosition().top;Math.abs(s-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=r.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class ce{enable(){}disable(){}attach(){}}function Te(X,r){return r.some(s=>X.bottoms.bottom||X.rights.right)}function b(X,r){return r.some(s=>X.tops.bottom||X.lefts.right)}class H{constructor(r,s,_,c){this._scrollDispatcher=r,this._viewportRuler=s,this._ngZone=_,this._config=c,this._scrollSubscription=null}attach(r){this._overlayRef=r}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 s=this._overlayRef.overlayElement.getBoundingClientRect(),{width:_,height:c}=this._viewportRuler.getViewportSize();Te(s,[{width:_,height:c,bottom:c,right:_,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 L=(()=>{class X{constructor(s,_,c,a){this._scrollDispatcher=s,this._viewportRuler=_,this._ngZone=c,this.noop=()=>new ce,this.close=i=>new _e(this._scrollDispatcher,this._ngZone,this._viewportRuler,i),this.block=()=>new G(this._viewportRuler,this._document),this.reposition=i=>new H(this._scrollDispatcher,this._viewportRuler,this._ngZone,i),this._document=a}}return X.\u0275fac=function(s){return new(s||X)(A.LFG(e.mF),A.LFG(e.rL),A.LFG(A.R0b),A.LFG(m.K0))},X.\u0275prov=A.Yz7({token:X,factory:X.\u0275fac,providedIn:"root"}),X})();class V{constructor(r){if(this.scrollStrategy=new ce,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,r){const s=Object.keys(r);for(const _ of s)void 0!==r[_]&&(this[_]=r[_])}}}class xe{constructor(r,s){this.connectionPair=r,this.scrollableViewProperties=s}}let Be=(()=>{class X{constructor(s){this._attachedOverlays=[],this._document=s}ngOnDestroy(){this.detach()}add(s){this.remove(s),this._attachedOverlays.push(s)}remove(s){const _=this._attachedOverlays.indexOf(s);_>-1&&this._attachedOverlays.splice(_,1),0===this._attachedOverlays.length&&this.detach()}}return X.\u0275fac=function(s){return new(s||X)(A.LFG(m.K0))},X.\u0275prov=A.Yz7({token:X,factory:X.\u0275fac,providedIn:"root"}),X})(),pe=(()=>{class X extends Be{constructor(s,_){super(s),this._ngZone=_,this._keydownListener=c=>{const a=this._attachedOverlays;for(let i=a.length-1;i>-1;i--)if(a[i]._keydownEvents.observers.length>0){const t=a[i]._keydownEvents;this._ngZone?this._ngZone.run(()=>t.next(c)):t.next(c);break}}}add(s){super.add(s),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return X.\u0275fac=function(s){return new(s||X)(A.LFG(m.K0),A.LFG(A.R0b,8))},X.\u0275prov=A.Yz7({token:X,factory:X.\u0275fac,providedIn:"root"}),X})(),$e=(()=>{class X extends Be{constructor(s,_,c){super(s),this._platform=_,this._ngZone=c,this._cursorStyleIsSet=!1,this._pointerDownListener=a=>{this._pointerDownEventTarget=(0,p.sA)(a)},this._clickListener=a=>{const i=(0,p.sA)(a),t="click"===a.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:i;this._pointerDownEventTarget=null;const n=this._attachedOverlays.slice();for(let o=n.length-1;o>-1;o--){const l=n[o];if(l._outsidePointerEvents.observers.length<1||!l.hasAttached())continue;if(l.overlayElement.contains(i)||l.overlayElement.contains(t))break;const d=l._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>d.next(a)):d.next(a)}}}add(s){if(super.add(s),!this._isAttached){const _=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(_)):this._addEventListeners(_),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=_.style.cursor,_.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const s=this._document.body;s.removeEventListener("pointerdown",this._pointerDownListener,!0),s.removeEventListener("click",this._clickListener,!0),s.removeEventListener("auxclick",this._clickListener,!0),s.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(s.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(s){s.addEventListener("pointerdown",this._pointerDownListener,!0),s.addEventListener("click",this._clickListener,!0),s.addEventListener("auxclick",this._clickListener,!0),s.addEventListener("contextmenu",this._clickListener,!0)}}return X.\u0275fac=function(s){return new(s||X)(A.LFG(m.K0),A.LFG(p.t4),A.LFG(A.R0b,8))},X.\u0275prov=A.Yz7({token:X,factory:X.\u0275fac,providedIn:"root"}),X})(),Ce=(()=>{class X{constructor(s,_){this._platform=_,this._document=s}ngOnDestroy(){var s;null===(s=this._containerElement)||void 0===s||s.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const s="cdk-overlay-container";if(this._platform.isBrowser||(0,p.Oy)()){const c=this._document.querySelectorAll(`.${s}[platform="server"], .${s}[platform="test"]`);for(let a=0;athis._backdropClick.next(d),this._backdropTransitionendHandler=d=>{this._disposeBackdrop(d.target)},this._keydownEvents=new E.x,this._outsidePointerEvents=new E.x,c.scrollStrategy&&(this._scrollStrategy=c.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=c.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(r){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const s=this._portalOutlet.attach(r);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,v.q)(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),"function"==typeof s?.onDestroy&&s.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),s}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const r=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),r}dispose(){var r;const s=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),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),null===(r=this._host)||void 0===r||r.remove(),this._previousHostParent=this._pane=this._host=null,s&&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(r){r!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=r,this.hasAttached()&&(r.attach(this),this.updatePosition()))}updateSize(r){this._config={...this._config,...r},this._updateElementSize()}setDirection(r){this._config={...this._config,direction:r},this._updateElementDirection()}addPanelClass(r){this._pane&&this._toggleClasses(this._pane,r,!0)}removePanelClass(r){this._pane&&this._toggleClasses(this._pane,r,!1)}getDirection(){const r=this._config.direction;return r?"string"==typeof r?r:r.value:"ltr"}updateScrollStrategy(r){r!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=r,this.hasAttached()&&(r.attach(this),r.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const r=this._pane.style;r.width=(0,w.HM)(this._config.width),r.height=(0,w.HM)(this._config.height),r.minWidth=(0,w.HM)(this._config.minWidth),r.minHeight=(0,w.HM)(this._config.minHeight),r.maxWidth=(0,w.HM)(this._config.maxWidth),r.maxHeight=(0,w.HM)(this._config.maxHeight)}_togglePointerEvents(r){this._pane.style.pointerEvents=r?"":"none"}_attachBackdrop(){const r="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),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),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(r)})}):this._backdropElement.classList.add(r)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const r=this._backdropElement;if(r){if(this._animationsDisabled)return void this._disposeBackdrop(r);r.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{r.addEventListener("transitionend",this._backdropTransitionendHandler)}),r.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(r)},500))}}_toggleClasses(r,s,_){const c=(0,w.Eq)(s||[]).filter(a=>!!a);c.length&&(_?r.classList.add(...c):r.classList.remove(...c))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const r=this._ngZone.onStable.pipe((0,D.R)((0,R.T)(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._host.remove()),r.unsubscribe())})})}_disposeScrollStrategy(){const r=this._scrollStrategy;r&&(r.disable(),r.detach&&r.detach())}_disposeBackdrop(r){r&&(r.removeEventListener("click",this._backdropClickHandler),r.removeEventListener("transitionend",this._backdropTransitionendHandler),r.remove(),this._backdropElement===r&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const re="cdk-overlay-connected-position-bounding-box",B=/([A-Za-z%]+)$/;class N{constructor(r,s,_,c,a){this._viewportRuler=s,this._document=_,this._platform=c,this._overlayContainer=a,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 E.x,this._resizeSubscription=S.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(r)}get positions(){return this._preferredPositions}attach(r){this._validatePositions(),r.hostElement.classList.add(re),this._overlayRef=r,this._boundingBox=r.hostElement,this._pane=r.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(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const r=this._originRect,s=this._overlayRect,_=this._viewportRect,c=this._containerRect,a=[];let i;for(let t of this._preferredPositions){let n=this._getOriginPoint(r,c,t),o=this._getOverlayPoint(n,s,t),l=this._getOverlayFit(o,s,_,t);if(l.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(t,n);this._canFitWithFlexibleDimensions(l,o,_)?a.push({position:t,origin:n,overlayRect:s,boundingBoxRect:this._calculateBoundingBoxRect(n,t)}):(!i||i.overlayFit.visibleArean&&(n=l,t=o)}return this._isPushed=!1,void this._applyPosition(t.position,t.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(i.position,i.originPoint);this._applyPosition(i.position,i.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Me(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(re),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const r=this._lastPosition;if(r){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const s=this._getOriginPoint(this._originRect,this._containerRect,r);this._applyPosition(r,s)}else this.apply()}withScrollableContainers(r){return this._scrollables=r,this}withPositions(r){return this._preferredPositions=r,-1===r.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(r){return this._viewportMargin=r,this}withFlexibleDimensions(r=!0){return this._hasFlexibleDimensions=r,this}withGrowAfterOpen(r=!0){return this._growAfterOpen=r,this}withPush(r=!0){return this._canPush=r,this}withLockedPosition(r=!0){return this._positionLocked=r,this}setOrigin(r){return this._origin=r,this}withDefaultOffsetX(r){return this._offsetX=r,this}withDefaultOffsetY(r){return this._offsetY=r,this}withTransformOriginOn(r){return this._transformOriginSelector=r,this}_getOriginPoint(r,s,_){let c,a;if("center"==_.originX)c=r.left+r.width/2;else{const i=this._isRtl()?r.right:r.left,t=this._isRtl()?r.left:r.right;c="start"==_.originX?i:t}return s.left<0&&(c-=s.left),a="center"==_.originY?r.top+r.height/2:"top"==_.originY?r.top:r.bottom,s.top<0&&(a-=s.top),{x:c,y:a}}_getOverlayPoint(r,s,_){let c,a;return c="center"==_.overlayX?-s.width/2:"start"===_.overlayX?this._isRtl()?-s.width:0:this._isRtl()?0:-s.width,a="center"==_.overlayY?-s.height/2:"top"==_.overlayY?0:-s.height,{x:r.x+c,y:r.y+a}}_getOverlayFit(r,s,_,c){const a=be(s);let{x:i,y:t}=r,n=this._getOffset(c,"x"),o=this._getOffset(c,"y");n&&(i+=n),o&&(t+=o);let y=0-t,k=t+a.height-_.height,Ie=this._subtractOverflows(a.width,0-i,i+a.width-_.width),tt=this._subtractOverflows(a.height,y,k),ct=Ie*tt;return{visibleArea:ct,isCompletelyWithinViewport:a.width*a.height===ct,fitsInViewportVertically:tt===a.height,fitsInViewportHorizontally:Ie==a.width}}_canFitWithFlexibleDimensions(r,s,_){if(this._hasFlexibleDimensions){const c=_.bottom-s.y,a=_.right-s.x,i=Y(this._overlayRef.getConfig().minHeight),t=Y(this._overlayRef.getConfig().minWidth),o=r.fitsInViewportHorizontally||null!=t&&t<=a;return(r.fitsInViewportVertically||null!=i&&i<=c)&&o}return!1}_pushOverlayOnScreen(r,s,_){if(this._previousPushAmount&&this._positionLocked)return{x:r.x+this._previousPushAmount.x,y:r.y+this._previousPushAmount.y};const c=be(s),a=this._viewportRect,i=Math.max(r.x+c.width-a.width,0),t=Math.max(r.y+c.height-a.height,0),n=Math.max(a.top-_.top-r.y,0),o=Math.max(a.left-_.left-r.x,0);let l=0,d=0;return l=c.width<=a.width?o||-i:r.xIe&&!this._isInitialRender&&!this._growAfterOpen&&(i=r.y-Ie/2)}if("end"===s.overlayX&&!c||"start"===s.overlayX&&c)y=_.width-r.x+this._viewportMargin,l=r.x-this._viewportMargin;else if("start"===s.overlayX&&!c||"end"===s.overlayX&&c)d=r.x,l=_.right-r.x;else{const k=Math.min(_.right-r.x+_.left,r.x),Ie=this._lastBoundingBoxSize.width;l=2*k,d=r.x-k,l>Ie&&!this._isInitialRender&&!this._growAfterOpen&&(d=r.x-Ie/2)}return{top:i,left:d,bottom:t,right:y,width:l,height:a}}_setBoundingBoxStyles(r,s){const _=this._calculateBoundingBoxRect(r,s);!this._isInitialRender&&!this._growAfterOpen&&(_.height=Math.min(_.height,this._lastBoundingBoxSize.height),_.width=Math.min(_.width,this._lastBoundingBoxSize.width));const c={};if(this._hasExactPosition())c.top=c.left="0",c.bottom=c.right=c.maxHeight=c.maxWidth="",c.width=c.height="100%";else{const a=this._overlayRef.getConfig().maxHeight,i=this._overlayRef.getConfig().maxWidth;c.height=(0,w.HM)(_.height),c.top=(0,w.HM)(_.top),c.bottom=(0,w.HM)(_.bottom),c.width=(0,w.HM)(_.width),c.left=(0,w.HM)(_.left),c.right=(0,w.HM)(_.right),c.alignItems="center"===s.overlayX?"center":"end"===s.overlayX?"flex-end":"flex-start",c.justifyContent="center"===s.overlayY?"center":"bottom"===s.overlayY?"flex-end":"flex-start",a&&(c.maxHeight=(0,w.HM)(a)),i&&(c.maxWidth=(0,w.HM)(i))}this._lastBoundingBoxSize=_,Me(this._boundingBox.style,c)}_resetBoundingBoxStyles(){Me(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Me(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(r,s){const _={},c=this._hasExactPosition(),a=this._hasFlexibleDimensions,i=this._overlayRef.getConfig();if(c){const l=this._viewportRuler.getViewportScrollPosition();Me(_,this._getExactOverlayY(s,r,l)),Me(_,this._getExactOverlayX(s,r,l))}else _.position="static";let t="",n=this._getOffset(s,"x"),o=this._getOffset(s,"y");n&&(t+=`translateX(${n}px) `),o&&(t+=`translateY(${o}px)`),_.transform=t.trim(),i.maxHeight&&(c?_.maxHeight=(0,w.HM)(i.maxHeight):a&&(_.maxHeight="")),i.maxWidth&&(c?_.maxWidth=(0,w.HM)(i.maxWidth):a&&(_.maxWidth="")),Me(this._pane.style,_)}_getExactOverlayY(r,s,_){let c={top:"",bottom:""},a=this._getOverlayPoint(s,this._overlayRect,r);return this._isPushed&&(a=this._pushOverlayOnScreen(a,this._overlayRect,_)),"bottom"===r.overlayY?c.bottom=this._document.documentElement.clientHeight-(a.y+this._overlayRect.height)+"px":c.top=(0,w.HM)(a.y),c}_getExactOverlayX(r,s,_){let i,c={left:"",right:""},a=this._getOverlayPoint(s,this._overlayRect,r);return this._isPushed&&(a=this._pushOverlayOnScreen(a,this._overlayRect,_)),i=this._isRtl()?"end"===r.overlayX?"left":"right":"end"===r.overlayX?"right":"left","right"===i?c.right=this._document.documentElement.clientWidth-(a.x+this._overlayRect.width)+"px":c.left=(0,w.HM)(a.x),c}_getScrollVisibility(){const r=this._getOriginRect(),s=this._pane.getBoundingClientRect(),_=this._scrollables.map(c=>c.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:b(r,_),isOriginOutsideView:Te(r,_),isOverlayClipped:b(s,_),isOverlayOutsideView:Te(s,_)}}_subtractOverflows(r,...s){return s.reduce((_,c)=>_-Math.max(c,0),r)}_getNarrowedViewportRect(){const r=this._document.documentElement.clientWidth,s=this._document.documentElement.clientHeight,_=this._viewportRuler.getViewportScrollPosition();return{top:_.top+this._viewportMargin,left:_.left+this._viewportMargin,right:_.left+r-this._viewportMargin,bottom:_.top+s-this._viewportMargin,width:r-2*this._viewportMargin,height:s-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(r,s){return"x"===s?r.offsetX??this._offsetX:r.offsetY??this._offsetY}_validatePositions(){}_addPanelClasses(r){this._pane&&(0,w.Eq)(r).forEach(s=>{""!==s&&-1===this._appliedPanelClasses.indexOf(s)&&(this._appliedPanelClasses.push(s),this._pane.classList.add(s))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(r=>{this._pane.classList.remove(r)}),this._appliedPanelClasses=[])}_getOriginRect(){const r=this._origin;if(r instanceof A.SBq)return r.nativeElement.getBoundingClientRect();if(r instanceof Element)return r.getBoundingClientRect();const s=r.width||0,_=r.height||0;return{top:r.y,bottom:r.y+_,left:r.x,right:r.x+s,height:_,width:s}}}function Me(X,r){for(let s in r)r.hasOwnProperty(s)&&(X[s]=r[s]);return X}function Y(X){if("number"!=typeof X&&null!=X){const[r,s]=X.split(B);return s&&"px"!==s?null:parseFloat(r)}return X||null}function be(X){return{top:Math.floor(X.top),right:Math.floor(X.right),bottom:Math.floor(X.bottom),left:Math.floor(X.left),width:Math.floor(X.width),height:Math.floor(X.height)}}const Pe="cdk-global-overlay-wrapper";class nt{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(r){const s=r.getConfig();this._overlayRef=r,this._width&&!s.width&&r.updateSize({width:this._width}),this._height&&!s.height&&r.updateSize({height:this._height}),r.hostElement.classList.add(Pe),this._isDisposed=!1}top(r=""){return this._bottomOffset="",this._topOffset=r,this._alignItems="flex-start",this}left(r=""){return this._xOffset=r,this._xPosition="left",this}bottom(r=""){return this._topOffset="",this._bottomOffset=r,this._alignItems="flex-end",this}right(r=""){return this._xOffset=r,this._xPosition="right",this}start(r=""){return this._xOffset=r,this._xPosition="start",this}end(r=""){return this._xOffset=r,this._xPosition="end",this}width(r=""){return this._overlayRef?this._overlayRef.updateSize({width:r}):this._width=r,this}height(r=""){return this._overlayRef?this._overlayRef.updateSize({height:r}):this._height=r,this}centerHorizontally(r=""){return this.left(r),this._xPosition="center",this}centerVertically(r=""){return this.top(r),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const r=this._overlayRef.overlayElement.style,s=this._overlayRef.hostElement.style,_=this._overlayRef.getConfig(),{width:c,height:a,maxWidth:i,maxHeight:t}=_,n=!("100%"!==c&&"100vw"!==c||i&&"100%"!==i&&"100vw"!==i),o=!("100%"!==a&&"100vh"!==a||t&&"100%"!==t&&"100vh"!==t),l=this._xPosition,d=this._xOffset,y="rtl"===this._overlayRef.getConfig().direction;let k="",Ie="",tt="";n?tt="flex-start":"center"===l?(tt="center",y?Ie=d:k=d):y?"left"===l||"end"===l?(tt="flex-end",k=d):("right"===l||"start"===l)&&(tt="flex-start",Ie=d):"left"===l||"start"===l?(tt="flex-start",k=d):("right"===l||"end"===l)&&(tt="flex-end",Ie=d),r.position=this._cssPosition,r.marginLeft=n?"0":k,r.marginTop=o?"0":this._topOffset,r.marginBottom=this._bottomOffset,r.marginRight=n?"0":Ie,s.justifyContent=tt,s.alignItems=o?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const r=this._overlayRef.overlayElement.style,s=this._overlayRef.hostElement,_=s.style;s.classList.remove(Pe),_.justifyContent=_.alignItems=r.marginTop=r.marginBottom=r.marginLeft=r.marginRight=r.position="",this._overlayRef=null,this._isDisposed=!0}}let Ye=(()=>{class X{constructor(s,_,c,a){this._viewportRuler=s,this._document=_,this._platform=c,this._overlayContainer=a}global(){return new nt}flexibleConnectedTo(s){return new N(s,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return X.\u0275fac=function(s){return new(s||X)(A.LFG(e.rL),A.LFG(m.K0),A.LFG(p.t4),A.LFG(Ce))},X.\u0275prov=A.Yz7({token:X,factory:X.\u0275fac,providedIn:"root"}),X})(),Tt=0,J=(()=>{class X{constructor(s,_,c,a,i,t,n,o,l,d,y,k){this.scrollStrategies=s,this._overlayContainer=_,this._componentFactoryResolver=c,this._positionBuilder=a,this._keyboardDispatcher=i,this._injector=t,this._ngZone=n,this._document=o,this._directionality=l,this._location=d,this._outsideClickDispatcher=y,this._animationsModuleType=k}create(s){const _=this._createHostElement(),c=this._createPaneElement(_),a=this._createPortalOutlet(c),i=new V(s);return i.direction=i.direction||this._directionality.value,new de(a,_,c,i,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(s){const _=this._document.createElement("div");return _.id="cdk-overlay-"+Tt++,_.classList.add("cdk-overlay-pane"),s.appendChild(_),_}_createHostElement(){const s=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(s),s}_createPortalOutlet(s){return this._appRef||(this._appRef=this._injector.get(A.z2F)),new T.u0(s,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return X.\u0275fac=function(s){return new(s||X)(A.LFG(L),A.LFG(Ce),A.LFG(A._Vd),A.LFG(Ye),A.LFG(pe),A.LFG(A.zs3),A.LFG(A.R0b),A.LFG(m.K0),A.LFG(g.Is),A.LFG(m.Ye),A.LFG($e),A.LFG(A.QbO,8))},X.\u0275prov=A.Yz7({token:X,factory:X.\u0275fac}),X})();const Xe=[{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"}],le=new A.OlP("cdk-connected-overlay-scroll-strategy");let ne=(()=>{class X{constructor(s){this.elementRef=s}}return X.\u0275fac=function(s){return new(s||X)(A.Y36(A.SBq))},X.\u0275dir=A.lG2({type:X,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),X})(),ke=(()=>{class X{constructor(s,_,c,a,i){this._overlay=s,this._dir=i,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=S.w0.EMPTY,this._attachSubscription=S.w0.EMPTY,this._detachSubscription=S.w0.EMPTY,this._positionSubscription=S.w0.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new A.vpe,this.positionChange=new A.vpe,this.attach=new A.vpe,this.detach=new A.vpe,this.overlayKeydown=new A.vpe,this.overlayOutsideClick=new A.vpe,this._templatePortal=new T.UE(_,c),this._scrollStrategyFactory=a,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(s){this._offsetX=s,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(s){this._offsetY=s,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(s){this._hasBackdrop=(0,w.Ig)(s)}get lockPosition(){return this._lockPosition}set lockPosition(s){this._lockPosition=(0,w.Ig)(s)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(s){this._flexibleDimensions=(0,w.Ig)(s)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(s){this._growAfterOpen=(0,w.Ig)(s)}get push(){return this._push}set push(s){this._push=(0,w.Ig)(s)}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(s){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),s.origin&&this.open&&this._position.apply()),s.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=Xe);const s=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=s.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=s.detachments().subscribe(()=>this.detach.emit()),s.keydownEvents().subscribe(_=>{this.overlayKeydown.next(_),_.keyCode===z.hY&&!this.disableClose&&!(0,z.Vb)(_)&&(_.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(_=>{this.overlayOutsideClick.next(_)})}_buildConfig(){const s=this._position=this.positionStrategy||this._createPositionStrategy(),_=new V({direction:this._dir,positionStrategy:s,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(_.width=this.width),(this.height||0===this.height)&&(_.height=this.height),(this.minWidth||0===this.minWidth)&&(_.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(_.minHeight=this.minHeight),this.backdropClass&&(_.backdropClass=this.backdropClass),this.panelClass&&(_.panelClass=this.panelClass),_}_updatePositionStrategy(s){const _=this.positions.map(c=>({originX:c.originX,originY:c.originY,overlayX:c.overlayX,overlayY:c.overlayY,offsetX:c.offsetX||this.offsetX,offsetY:c.offsetY||this.offsetY,panelClass:c.panelClass||void 0}));return s.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(_).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const s=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(s),s}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof ne?this.origin.elementRef:this.origin}_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(s=>{this.backdropClick.emit(s)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe((0,F.o)(()=>this.positionChange.observers.length>0)).subscribe(s=>{this.positionChange.emit(s),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return X.\u0275fac=function(s){return new(s||X)(A.Y36(J),A.Y36(A.Rgc),A.Y36(A.s_b),A.Y36(le),A.Y36(g.Is,8))},X.\u0275dir=A.lG2({type:X,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[A.TTD]}),X})();const ot={provide:le,deps:[J],useFactory:function Ee(X){return()=>X.scrollStrategies.reposition()}};let it=(()=>{class X{}return X.\u0275fac=function(s){return new(s||X)},X.\u0275mod=A.oAB({type:X}),X.\u0275inj=A.cJS({providers:[J,ot],imports:[g.vT,T.eL,e.Cl,e.Cl]}),X})()},83353:(Qe,he,u)=>{"use strict";u.d(he,{Mq:()=>z,Oy:()=>b,_i:()=>$,ht:()=>ce,i$:()=>v,kV:()=>_e,qK:()=>E,sA:()=>Te,t4:()=>w,ud:()=>p});var e=u(94650),m=u(36895);let A;try{A=typeof Intl<"u"&&Intl.v8BreakIterator}catch{A=!1}let g,w=(()=>{class H{constructor(V){this._platformId=V,this.isBrowser=this._platformId?(0,m.NF)(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&&!A)&&typeof CSS<"u"&&!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 H.\u0275fac=function(V){return new(V||H)(e.LFG(e.Lbi))},H.\u0275prov=e.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"}),H})(),p=(()=>{class H{}return H.\u0275fac=function(V){return new(V||H)},H.\u0275mod=e.oAB({type:H}),H.\u0275inj=e.cJS({}),H})();const T=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function E(){if(g)return g;if("object"!=typeof document||!document)return g=new Set(T),g;let H=document.createElement("input");return g=new Set(T.filter(L=>(H.setAttribute("type",L),H.type===L))),g}let S,D,F,G;function v(H){return function R(){if(null==S&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>S=!0}))}finally{S=S||!1}return S}()?H:!!H.capture}function z(){if(null==F){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return F=!1,F;if("scrollBehavior"in document.documentElement.style)F=!0;else{const H=Element.prototype.scrollTo;F=!!H&&!/\{\s*\[native code\]\s*\}/.test(H.toString())}}return F}function $(){if("object"!=typeof document||!document)return 0;if(null==D){const H=document.createElement("div"),L=H.style;H.dir="rtl",L.width="1px",L.overflow="auto",L.visibility="hidden",L.pointerEvents="none",L.position="absolute";const V=document.createElement("div"),Q=V.style;Q.width="2px",Q.height="1px",H.appendChild(V),document.body.appendChild(H),D=0,0===H.scrollLeft&&(H.scrollLeft=1,D=0===H.scrollLeft?1:2),H.remove()}return D}function _e(H){if(function q(){if(null==G){const H=typeof document<"u"?document.head:null;G=!(!H||!H.createShadowRoot&&!H.attachShadow)}return G}()){const L=H.getRootNode?H.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&L instanceof ShadowRoot)return L}return null}function ce(){let H=typeof document<"u"&&document?document.activeElement:null;for(;H&&H.shadowRoot;){const L=H.shadowRoot.activeElement;if(L===H)break;H=L}return H}function Te(H){return H.composedPath?H.composedPath()[0]:H.target}function b(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},84080:(Qe,he,u)=>{"use strict";u.d(he,{C5:()=>R,Pl:()=>ce,UE:()=>v,eL:()=>b,en:()=>F,ig:()=>q,u0:()=>$});var e=u(94650),m=u(36895);class S{attach(V){return this._attachedHost=V,V.attach(this)}detach(){let V=this._attachedHost;null!=V&&(this._attachedHost=null,V.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(V){this._attachedHost=V}}class R extends S{constructor(V,Q,ae,xe){super(),this.component=V,this.viewContainerRef=Q,this.injector=ae,this.componentFactoryResolver=xe}}class v extends S{constructor(V,Q,ae,xe){super(),this.templateRef=V,this.viewContainerRef=Q,this.context=ae,this.injector=xe}get origin(){return this.templateRef.elementRef}attach(V,Q=this.context){return this.context=Q,super.attach(V)}detach(){return this.context=void 0,super.detach()}}class D extends S{constructor(V){super(),this.element=V instanceof e.SBq?V.nativeElement:V}}class F{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(V){return V instanceof R?(this._attachedPortal=V,this.attachComponentPortal(V)):V instanceof v?(this._attachedPortal=V,this.attachTemplatePortal(V)):this.attachDomPortal&&V instanceof D?(this._attachedPortal=V,this.attachDomPortal(V)):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(V){this._disposeFn=V}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class $ extends F{constructor(V,Q,ae,xe,ge){super(),this.outletElement=V,this._componentFactoryResolver=Q,this._appRef=ae,this._defaultInjector=xe,this.attachDomPortal=Se=>{const Be=Se.element,pe=this._document.createComment("dom-portal");Be.parentNode.insertBefore(pe,Be),this.outletElement.appendChild(Be),this._attachedPortal=Se,super.setDisposeFn(()=>{pe.parentNode&&pe.parentNode.replaceChild(Be,pe)})},this._document=ge}attachComponentPortal(V){const ae=(V.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(V.component);let xe;return V.viewContainerRef?(xe=V.viewContainerRef.createComponent(ae,V.viewContainerRef.length,V.injector||V.viewContainerRef.injector),this.setDisposeFn(()=>xe.destroy())):(xe=ae.create(V.injector||this._defaultInjector||e.zs3.NULL),this._appRef.attachView(xe.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(xe.hostView),xe.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(xe)),this._attachedPortal=V,xe}attachTemplatePortal(V){let Q=V.viewContainerRef,ae=Q.createEmbeddedView(V.templateRef,V.context,{injector:V.injector});return ae.rootNodes.forEach(xe=>this.outletElement.appendChild(xe)),ae.detectChanges(),this.setDisposeFn(()=>{let xe=Q.indexOf(ae);-1!==xe&&Q.remove(xe)}),this._attachedPortal=V,ae}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(V){return V.hostView.rootNodes[0]}}let q=(()=>{class L extends v{constructor(Q,ae){super(Q,ae)}}return L.\u0275fac=function(Q){return new(Q||L)(e.Y36(e.Rgc),e.Y36(e.s_b))},L.\u0275dir=e.lG2({type:L,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[e.qOj]}),L})(),ce=(()=>{class L extends F{constructor(Q,ae,xe){super(),this._componentFactoryResolver=Q,this._viewContainerRef=ae,this._isInitialized=!1,this.attached=new e.vpe,this.attachDomPortal=ge=>{const Se=ge.element,Be=this._document.createComment("dom-portal");ge.setAttachedHost(this),Se.parentNode.insertBefore(Be,Se),this._getRootNode().appendChild(Se),this._attachedPortal=ge,super.setDisposeFn(()=>{Be.parentNode&&Be.parentNode.replaceChild(Se,Be)})},this._document=xe}get portal(){return this._attachedPortal}set portal(Q){this.hasAttached()&&!Q&&!this._isInitialized||(this.hasAttached()&&super.detach(),Q&&super.attach(Q),this._attachedPortal=Q||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(Q){Q.setAttachedHost(this);const ae=null!=Q.viewContainerRef?Q.viewContainerRef:this._viewContainerRef,ge=(Q.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(Q.component),Se=ae.createComponent(ge,ae.length,Q.injector||ae.injector);return ae!==this._viewContainerRef&&this._getRootNode().appendChild(Se.hostView.rootNodes[0]),super.setDisposeFn(()=>Se.destroy()),this._attachedPortal=Q,this._attachedRef=Se,this.attached.emit(Se),Se}attachTemplatePortal(Q){Q.setAttachedHost(this);const ae=this._viewContainerRef.createEmbeddedView(Q.templateRef,Q.context,{injector:Q.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=Q,this._attachedRef=ae,this.attached.emit(ae),ae}_getRootNode(){const Q=this._viewContainerRef.element.nativeElement;return Q.nodeType===Q.ELEMENT_NODE?Q:Q.parentNode}}return L.\u0275fac=function(Q){return new(Q||L)(e.Y36(e._Vd),e.Y36(e.s_b),e.Y36(m.K0))},L.\u0275dir=e.lG2({type:L,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[e.qOj]}),L})(),b=(()=>{class L{}return L.\u0275fac=function(Q){return new(Q||L)},L.\u0275mod=e.oAB({type:L}),L.\u0275inj=e.cJS({}),L})()},67376:(Qe,he,u)=>{"use strict";u.d(he,{Cl:()=>nt,N7:()=>Me,PQ:()=>pe,ZD:()=>Pe,mF:()=>Be,rL:()=>Ce,x0:()=>be,xd:()=>ge});var e=u(21281),m=u(94650),A=u(77579),w=u(39646),p=u(69751),g=u(54968),T=u(66406),E=u(53101),S=u(50727),R=u(45191),v=u(71884),D=u(23601),F=u(39300),z=u(82722),$=u(68675),G=u(11520),q=u(63900),_e=u(34782),ce=u(83353),Te=u(36895),b=u(40445),H=u(95017);const L=["contentWrapper"],V=["*"],Q=new m.OlP("VIRTUAL_SCROLL_STRATEGY");class ae{constructor(Tt,J,Xe){this._scrolledIndexChange=new A.x,this.scrolledIndexChange=this._scrolledIndexChange.pipe((0,v.x)()),this._viewport=null,this._itemSize=Tt,this._minBufferPx=J,this._maxBufferPx=Xe}attach(Tt){this._viewport=Tt,this._updateTotalContentSize(),this._updateRenderedRange()}detach(){this._scrolledIndexChange.complete(),this._viewport=null}updateItemAndBufferSize(Tt,J,Xe){this._itemSize=Tt,this._minBufferPx=J,this._maxBufferPx=Xe,this._updateTotalContentSize(),this._updateRenderedRange()}onContentScrolled(){this._updateRenderedRange()}onDataLengthChanged(){this._updateTotalContentSize(),this._updateRenderedRange()}onContentRendered(){}onRenderedOffsetChanged(){}scrollToIndex(Tt,J){this._viewport&&this._viewport.scrollToOffset(Tt*this._itemSize,J)}_updateTotalContentSize(){!this._viewport||this._viewport.setTotalContentSize(this._viewport.getDataLength()*this._itemSize)}_updateRenderedRange(){if(!this._viewport)return;const Tt=this._viewport.getRenderedRange(),J={start:Tt.start,end:Tt.end},Xe=this._viewport.getViewportSize(),le=this._viewport.getDataLength();let ne=this._viewport.measureScrollOffset(),ke=this._itemSize>0?ne/this._itemSize:0;if(J.end>le){const ot=Math.ceil(Xe/this._itemSize),it=Math.max(0,Math.min(ke,le-ot));ke!=it&&(ke=it,ne=it*this._itemSize,J.start=Math.floor(ke)),J.end=Math.max(0,Math.min(le,J.start+ot))}const Ee=ne-J.start*this._itemSize;if(Ee0&&(J.end=Math.min(le,J.end+it),J.start=Math.max(0,Math.floor(ke-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(J),this._viewport.setRenderedContentOffset(this._itemSize*J.start),this._scrolledIndexChange.next(Math.floor(ke))}}function xe(Ye){return Ye._scrollStrategy}let ge=(()=>{class Ye{constructor(){this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new ae(this.itemSize,this.minBufferPx,this.maxBufferPx)}get itemSize(){return this._itemSize}set itemSize(J){this._itemSize=(0,e.su)(J)}get minBufferPx(){return this._minBufferPx}set minBufferPx(J){this._minBufferPx=(0,e.su)(J)}get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(J){this._maxBufferPx=(0,e.su)(J)}ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}}return Ye.\u0275fac=function(J){return new(J||Ye)},Ye.\u0275dir=m.lG2({type:Ye,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[m._Bn([{provide:Q,useFactory:xe,deps:[(0,m.Gpc)(()=>Ye)]}]),m.TTD]}),Ye})(),Be=(()=>{class Ye{constructor(J,Xe,le){this._ngZone=J,this._platform=Xe,this._scrolled=new A.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=le}register(J){this.scrollContainers.has(J)||this.scrollContainers.set(J,J.elementScrolled().subscribe(()=>this._scrolled.next(J)))}deregister(J){const Xe=this.scrollContainers.get(J);Xe&&(Xe.unsubscribe(),this.scrollContainers.delete(J))}scrolled(J=20){return this._platform.isBrowser?new p.y(Xe=>{this._globalSubscription||this._addGlobalListener();const le=J>0?this._scrolled.pipe((0,D.e)(J)).subscribe(Xe):this._scrolled.subscribe(Xe);return this._scrolledCount++,()=>{le.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,w.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((J,Xe)=>this.deregister(Xe)),this._scrolled.complete()}ancestorScrolled(J,Xe){const le=this.getAncestorScrollContainers(J);return this.scrolled(Xe).pipe((0,F.h)(ne=>!ne||le.indexOf(ne)>-1))}getAncestorScrollContainers(J){const Xe=[];return this.scrollContainers.forEach((le,ne)=>{this._scrollableContainsElement(ne,J)&&Xe.push(ne)}),Xe}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(J,Xe){let le=(0,e.fI)(Xe),ne=J.getElementRef().nativeElement;do{if(le==ne)return!0}while(le=le.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const J=this._getWindow();return(0,g.R)(J.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return Ye.\u0275fac=function(J){return new(J||Ye)(m.LFG(m.R0b),m.LFG(ce.t4),m.LFG(Te.K0,8))},Ye.\u0275prov=m.Yz7({token:Ye,factory:Ye.\u0275fac,providedIn:"root"}),Ye})(),pe=(()=>{class Ye{constructor(J,Xe,le,ne){this.elementRef=J,this.scrollDispatcher=Xe,this.ngZone=le,this.dir=ne,this._destroyed=new A.x,this._elementScrolled=new p.y(ke=>this.ngZone.runOutsideAngular(()=>(0,g.R)(this.elementRef.nativeElement,"scroll").pipe((0,z.R)(this._destroyed)).subscribe(ke)))}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(J){const Xe=this.elementRef.nativeElement,le=this.dir&&"rtl"==this.dir.value;null==J.left&&(J.left=le?J.end:J.start),null==J.right&&(J.right=le?J.start:J.end),null!=J.bottom&&(J.top=Xe.scrollHeight-Xe.clientHeight-J.bottom),le&&0!=(0,ce._i)()?(null!=J.left&&(J.right=Xe.scrollWidth-Xe.clientWidth-J.left),2==(0,ce._i)()?J.left=J.right:1==(0,ce._i)()&&(J.left=J.right?-J.right:J.right)):null!=J.right&&(J.left=Xe.scrollWidth-Xe.clientWidth-J.right),this._applyScrollToOptions(J)}_applyScrollToOptions(J){const Xe=this.elementRef.nativeElement;(0,ce.Mq)()?Xe.scrollTo(J):(null!=J.top&&(Xe.scrollTop=J.top),null!=J.left&&(Xe.scrollLeft=J.left))}measureScrollOffset(J){const Xe="left",ne=this.elementRef.nativeElement;if("top"==J)return ne.scrollTop;if("bottom"==J)return ne.scrollHeight-ne.clientHeight-ne.scrollTop;const ke=this.dir&&"rtl"==this.dir.value;return"start"==J?J=ke?"right":Xe:"end"==J&&(J=ke?Xe:"right"),ke&&2==(0,ce._i)()?J==Xe?ne.scrollWidth-ne.clientWidth-ne.scrollLeft:ne.scrollLeft:ke&&1==(0,ce._i)()?J==Xe?ne.scrollLeft+ne.scrollWidth-ne.clientWidth:-ne.scrollLeft:J==Xe?ne.scrollLeft:ne.scrollWidth-ne.clientWidth-ne.scrollLeft}}return Ye.\u0275fac=function(J){return new(J||Ye)(m.Y36(m.SBq),m.Y36(Be),m.Y36(m.R0b),m.Y36(b.Is,8))},Ye.\u0275dir=m.lG2({type:Ye,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),Ye})(),Ce=(()=>{class Ye{constructor(J,Xe,le){this._platform=J,this._change=new A.x,this._changeListener=ne=>{this._change.next(ne)},this._document=le,Xe.runOutsideAngular(()=>{if(J.isBrowser){const ne=this._getWindow();ne.addEventListener("resize",this._changeListener),ne.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const J=this._getWindow();J.removeEventListener("resize",this._changeListener),J.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const J={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),J}getViewportRect(){const J=this.getViewportScrollPosition(),{width:Xe,height:le}=this.getViewportSize();return{top:J.top,left:J.left,bottom:J.top+le,right:J.left+Xe,height:le,width:Xe}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const J=this._document,Xe=this._getWindow(),le=J.documentElement,ne=le.getBoundingClientRect();return{top:-ne.top||J.body.scrollTop||Xe.scrollY||le.scrollTop||0,left:-ne.left||J.body.scrollLeft||Xe.scrollX||le.scrollLeft||0}}change(J=20){return J>0?this._change.pipe((0,D.e)(J)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const J=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:J.innerWidth,height:J.innerHeight}:{width:0,height:0}}}return Ye.\u0275fac=function(J){return new(J||Ye)(m.LFG(ce.t4),m.LFG(m.R0b),m.LFG(Te.K0,8))},Ye.\u0275prov=m.Yz7({token:Ye,factory:Ye.\u0275fac,providedIn:"root"}),Ye})();const de=new m.OlP("VIRTUAL_SCROLLABLE");let re=(()=>{class Ye extends pe{constructor(J,Xe,le,ne){super(J,Xe,le,ne)}measureViewportSize(J){const Xe=this.elementRef.nativeElement;return"horizontal"===J?Xe.clientWidth:Xe.clientHeight}}return Ye.\u0275fac=function(J){return new(J||Ye)(m.Y36(m.SBq),m.Y36(Be),m.Y36(m.R0b),m.Y36(b.Is,8))},Ye.\u0275dir=m.lG2({type:Ye,features:[m.qOj]}),Ye})();const N=typeof requestAnimationFrame<"u"?T.Z:E.E;let Me=(()=>{class Ye extends re{constructor(J,Xe,le,ne,ke,Ee,ot,it){super(J,Ee,le,ke),this.elementRef=J,this._changeDetectorRef=Xe,this._scrollStrategy=ne,this.scrollable=it,this._detachedSubject=new A.x,this._renderedRangeSubject=new A.x,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new p.y(oe=>this._scrollStrategy.scrolledIndexChange.subscribe(X=>Promise.resolve().then(()=>this.ngZone.run(()=>oe.next(X))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=S.w0.EMPTY,this._viewportChanges=ot.change().subscribe(()=>{this.checkViewportSize()}),this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this)}get orientation(){return this._orientation}set orientation(J){this._orientation!==J&&(this._orientation=J,this._calculateSpacerSize())}get appendOnly(){return this._appendOnly}set appendOnly(J){this._appendOnly=(0,e.Ig)(J)}ngOnInit(){this.scrollable===this&&super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.scrollable.elementScrolled().pipe((0,$.O)(null),(0,D.e)(0,N)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()}))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(J){this.ngZone.runOutsideAngular(()=>{this._forOf=J,this._forOf.dataStream.pipe((0,z.R)(this._detachedSubject)).subscribe(Xe=>{const le=Xe.length;le!==this._dataLength&&(this._dataLength=le,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}measureBoundingClientRectWithScrollOffset(J){return this.getElementRef().nativeElement.getBoundingClientRect()[J]}setTotalContentSize(J){this._totalContentSize!==J&&(this._totalContentSize=J,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(J){(function B(Ye,Tt){return Ye.start==Tt.start&&Ye.end==Tt.end})(this._renderedRange,J)||(this.appendOnly&&(J={start:0,end:Math.max(this._renderedRange.end,J.end)}),this._renderedRangeSubject.next(this._renderedRange=J),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(J,Xe="to-start"){J=this.appendOnly&&"to-start"===Xe?0:J;const ne="horizontal"==this.orientation,ke=ne?"X":"Y";let ot=`translate${ke}(${Number((ne&&this.dir&&"rtl"==this.dir.value?-1:1)*J)}px)`;this._renderedContentOffset=J,"to-end"===Xe&&(ot+=` translate${ke}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=ot&&(this._renderedContentTransform=ot,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(J,Xe="auto"){const le={behavior:Xe};"horizontal"===this.orientation?le.start=J:le.top=J,this.scrollable.scrollTo(le)}scrollToIndex(J,Xe="auto"){this._scrollStrategy.scrollToIndex(J,Xe)}measureScrollOffset(J){let Xe;return Xe=this.scrollable==this?le=>super.measureScrollOffset(le):le=>this.scrollable.measureScrollOffset(le),Math.max(0,Xe(J??("horizontal"===this.orientation?"start":"top"))-this.measureViewportOffset())}measureViewportOffset(J){var Xe;let le;const Ee="rtl"==(null===(Xe=this.dir)||void 0===Xe?void 0:Xe.value);le="start"==J?Ee?"right":"left":"end"==J?Ee?"left":"right":J||("horizontal"===this.orientation?"left":"top");const ot=this.scrollable.measureBoundingClientRectWithScrollOffset(le);return this.elementRef.nativeElement.getBoundingClientRect()[le]-ot}measureRenderedContentSize(){const J=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?J.offsetWidth:J.offsetHeight}measureRangeSize(J){return this._forOf?this._forOf.measureRangeSize(J,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}_markChangeDetectionNeeded(J){J&&this._runAfterChangeDetection.push(J),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(()=>this._changeDetectorRef.markForCheck());const J=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const Xe of J)Xe()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}return Ye.\u0275fac=function(J){return new(J||Ye)(m.Y36(m.SBq),m.Y36(m.sBO),m.Y36(m.R0b),m.Y36(Q,8),m.Y36(b.Is,8),m.Y36(Be),m.Y36(Ce),m.Y36(de,8))},Ye.\u0275cmp=m.Xpm({type:Ye,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(J,Xe){if(1&J&&m.Gf(L,7),2&J){let le;m.iGM(le=m.CRH())&&(Xe._contentWrapper=le.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(J,Xe){2&J&&m.ekj("cdk-virtual-scroll-orientation-horizontal","horizontal"===Xe.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==Xe.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[m._Bn([{provide:pe,useFactory:(Tt,J)=>Tt||J,deps:[re,Ye]}]),m.qOj],ngContentSelectors:V,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(J,Xe){1&J&&(m.F$t(),m.TgZ(0,"div",0,1),m.Hsn(2),m.qZA(),m._UZ(3,"div",2)),2&J&&(m.xp6(3),m.Udp("width",Xe._totalContentWidth)("height",Xe._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}"],encapsulation:2,changeDetection:0}),Ye})();function Y(Ye,Tt,J){if(!J.getBoundingClientRect)return 0;const le=J.getBoundingClientRect();return"horizontal"===Ye?"start"===Tt?le.left:le.right:"start"===Tt?le.top:le.bottom}let be=(()=>{class Ye{constructor(J,Xe,le,ne,ke,Ee){this._viewContainerRef=J,this._template=Xe,this._differs=le,this._viewRepeater=ne,this._viewport=ke,this.viewChange=new A.x,this._dataSourceChanges=new A.x,this.dataStream=this._dataSourceChanges.pipe((0,$.O)(null),(0,G.G)(),(0,q.w)(([ot,it])=>this._changeDataSource(ot,it)),(0,_e.d)(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new A.x,this.dataStream.subscribe(ot=>{this._data=ot,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe((0,z.R)(this._destroyed)).subscribe(ot=>{this._renderedRange=ot,this.viewChange.observers.length&&Ee.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(J){this._cdkVirtualForOf=J,(0,H.Z9)(J)?this._dataSourceChanges.next(J):this._dataSourceChanges.next(new H.P3((0,R.b)(J)?J:Array.from(J||[])))}get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(J){this._needsUpdate=!0,this._cdkVirtualForTrackBy=J?(Xe,le)=>J(Xe+(this._renderedRange?this._renderedRange.start:0),le):void 0}set cdkVirtualForTemplate(J){J&&(this._needsUpdate=!0,this._template=J)}get cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set cdkVirtualForTemplateCacheSize(J){this._viewRepeater.viewCacheSize=(0,e.su)(J)}measureRangeSize(J,Xe){if(J.start>=J.end)return 0;const le=J.start-this._renderedRange.start,ne=J.end-J.start;let ke,Ee;for(let ot=0;ot-1;ot--){const it=this._viewContainerRef.get(ot+le);if(it&&it.rootNodes.length){Ee=it.rootNodes[it.rootNodes.length-1];break}}return ke&&Ee?Y(Xe,"end",Ee)-Y(Xe,"start",ke):0}ngDoCheck(){if(this._differ&&this._needsUpdate){const J=this._differ.diff(this._renderedItems);J?this._applyChanges(J):this._updateContext(),this._needsUpdate=!1}}ngOnDestroy(){this._viewport.detach(),this._dataSourceChanges.next(void 0),this._dataSourceChanges.complete(),this.viewChange.complete(),this._destroyed.next(),this._destroyed.complete(),this._viewRepeater.detach()}_onRenderedDataChange(){!this._renderedRange||(this._renderedItems=this._data.slice(this._renderedRange.start,this._renderedRange.end),this._differ||(this._differ=this._differs.find(this._renderedItems).create((J,Xe)=>this.cdkVirtualForTrackBy?this.cdkVirtualForTrackBy(J,Xe):Xe)),this._needsUpdate=!0)}_changeDataSource(J,Xe){return J&&J.disconnect(this),this._needsUpdate=!0,Xe?Xe.connect(this):(0,w.of)()}_updateContext(){const J=this._data.length;let Xe=this._viewContainerRef.length;for(;Xe--;){const le=this._viewContainerRef.get(Xe);le.context.index=this._renderedRange.start+Xe,le.context.count=J,this._updateComputedContextProperties(le.context),le.detectChanges()}}_applyChanges(J){this._viewRepeater.applyChanges(J,this._viewContainerRef,(ne,ke,Ee)=>this._getEmbeddedViewArgs(ne,Ee),ne=>ne.item),J.forEachIdentityChange(ne=>{this._viewContainerRef.get(ne.currentIndex).context.$implicit=ne.item});const Xe=this._data.length;let le=this._viewContainerRef.length;for(;le--;){const ne=this._viewContainerRef.get(le);ne.context.index=this._renderedRange.start+le,ne.context.count=Xe,this._updateComputedContextProperties(ne.context)}}_updateComputedContextProperties(J){J.first=0===J.index,J.last=J.index===J.count-1,J.even=J.index%2==0,J.odd=!J.even}_getEmbeddedViewArgs(J,Xe){return{templateRef:this._template,context:{$implicit:J.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:Xe}}}return Ye.\u0275fac=function(J){return new(J||Ye)(m.Y36(m.s_b),m.Y36(m.Rgc),m.Y36(m.ZZ4),m.Y36(H.k),m.Y36(Me,4),m.Y36(m.R0b))},Ye.\u0275dir=m.lG2({type:Ye,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},features:[m._Bn([{provide:H.k,useClass:H.eX}])]}),Ye})(),Pe=(()=>{class Ye{}return Ye.\u0275fac=function(J){return new(J||Ye)},Ye.\u0275mod=m.oAB({type:Ye}),Ye.\u0275inj=m.cJS({}),Ye})(),nt=(()=>{class Ye{}return Ye.\u0275fac=function(J){return new(J||Ye)},Ye.\u0275mod=m.oAB({type:Ye}),Ye.\u0275inj=m.cJS({imports:[b.vT,Pe,b.vT,Pe]}),Ye})()},39349:(Qe,he,u)=>{"use strict";u.d(he,{IC:()=>F,Ky:()=>z,Lq:()=>v});var e=u(83353),m=u(94650),A=u(21281),w=u(60515),p=u(77579),g=u(54968),T=u(23601),E=u(82722),S=u(36895);const R=(0,e.i$)({passive:!0});let v=(()=>{class ${constructor(q,_e){this._platform=q,this._ngZone=_e,this._monitoredElements=new Map}monitor(q){if(!this._platform.isBrowser)return w.E;const _e=(0,A.fI)(q),ce=this._monitoredElements.get(_e);if(ce)return ce.subject;const Te=new p.x,b="cdk-text-field-autofilled",H=L=>{"cdk-text-field-autofill-start"!==L.animationName||_e.classList.contains(b)?"cdk-text-field-autofill-end"===L.animationName&&_e.classList.contains(b)&&(_e.classList.remove(b),this._ngZone.run(()=>Te.next({target:L.target,isAutofilled:!1}))):(_e.classList.add(b),this._ngZone.run(()=>Te.next({target:L.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{_e.addEventListener("animationstart",H,R),_e.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(_e,{subject:Te,unlisten:()=>{_e.removeEventListener("animationstart",H,R)}}),Te}stopMonitoring(q){const _e=(0,A.fI)(q),ce=this._monitoredElements.get(_e);ce&&(ce.unlisten(),ce.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((q,_e)=>this.stopMonitoring(_e))}}return $.\u0275fac=function(q){return new(q||$)(m.LFG(e.t4),m.LFG(m.R0b))},$.\u0275prov=m.Yz7({token:$,factory:$.\u0275fac,providedIn:"root"}),$})(),F=(()=>{class ${constructor(q,_e,ce,Te){this._elementRef=q,this._platform=_e,this._ngZone=ce,this._destroyed=new p.x,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._handleFocusEvent=b=>{this._hasFocus="focus"===b.type},this._document=Te,this._textareaElement=this._elementRef.nativeElement}get minRows(){return this._minRows}set minRows(q){this._minRows=(0,A.su)(q),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(q){this._maxRows=(0,A.su)(q),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(q){q=(0,A.Ig)(q),this._enabled!==q&&((this._enabled=q)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(q){this._cachedPlaceholderHeight=void 0,q?this._textareaElement.setAttribute("placeholder",q):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}_setMinHeight(){const q=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;q&&(this._textareaElement.style.minHeight=q)}_setMaxHeight(){const q=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;q&&(this._textareaElement.style.maxHeight=q)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{const q=this._getWindow();(0,g.R)(q,"resize").pipe((0,T.e)(16),(0,E.R)(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0)),this._textareaElement.addEventListener("focus",this._handleFocusEvent),this._textareaElement.addEventListener("blur",this._handleFocusEvent)}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._textareaElement.removeEventListener("focus",this._handleFocusEvent),this._textareaElement.removeEventListener("blur",this._handleFocusEvent),this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let q=this._textareaElement.cloneNode(!1);q.rows=1,q.style.position="absolute",q.style.visibility="hidden",q.style.border="none",q.style.padding="0",q.style.height="",q.style.minHeight="",q.style.maxHeight="",q.style.overflow="hidden",this._textareaElement.parentNode.appendChild(q),this._cachedLineHeight=q.clientHeight,q.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){const q=this._textareaElement,_e=q.style.marginBottom||"",ce=this._platform.FIREFOX,Te=ce&&this._hasFocus,b=ce?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";Te&&(q.style.marginBottom=`${q.clientHeight}px`),q.classList.add(b);const H=q.scrollHeight-4;return q.classList.remove(b),Te&&(q.style.marginBottom=_e),H}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const q=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=q}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(q=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;const _e=this._elementRef.nativeElement,ce=_e.value;if(!q&&this._minRows===this._previousMinRows&&ce===this._previousValue)return;const Te=this._measureScrollHeight(),b=Math.max(Te,this._cachedPlaceholderHeight||0);_e.style.height=`${b}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(_e)):setTimeout(()=>this._scrollToCaretPosition(_e))}),this._previousValue=ce,this._previousMinRows=this._minRows}reset(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollToCaretPosition(q){const{selectionStart:_e,selectionEnd:ce}=q;!this._destroyed.isStopped&&this._hasFocus&&q.setSelectionRange(_e,ce)}}return $.\u0275fac=function(q){return new(q||$)(m.Y36(m.SBq),m.Y36(e.t4),m.Y36(m.R0b),m.Y36(S.K0,8))},$.\u0275dir=m.lG2({type:$,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(q,_e){1&q&&m.NdJ("input",function(){return _e._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]}),$})(),z=(()=>{class ${}return $.\u0275fac=function(q){return new(q||$)},$.\u0275mod=m.oAB({type:$}),$.\u0275inj=m.cJS({}),$})()},57851:(Qe,he,u)=>{"use strict";u.d(he,{C2:()=>F,HI:()=>$,Hs:()=>Q,Ud:()=>pe,VY:()=>z,XJ:()=>Be,Xx:()=>ge,_0:()=>V,cu:()=>G,nZ:()=>Ce,rO:()=>_e});var e=u(95017),m=u(45191),A=u(77579),w=u(61135),p=u(39646),g=u(95698),T=u(39300),E=u(82722),S=u(94650),R=u(21281),v=u(40445);class D{constructor(){this.expansionModel=new e.Ov(!0)}toggle(re){this.expansionModel.toggle(this._trackByValue(re))}expand(re){this.expansionModel.select(this._trackByValue(re))}collapse(re){this.expansionModel.deselect(this._trackByValue(re))}isExpanded(re){return this.expansionModel.isSelected(this._trackByValue(re))}toggleDescendants(re){this.expansionModel.isSelected(this._trackByValue(re))?this.collapseDescendants(re):this.expandDescendants(re)}collapseAll(){this.expansionModel.clear()}expandDescendants(re){let B=[re];B.push(...this.getDescendants(re)),this.expansionModel.select(...B.map(N=>this._trackByValue(N)))}collapseDescendants(re){let B=[re];B.push(...this.getDescendants(re)),this.expansionModel.deselect(...B.map(N=>this._trackByValue(N)))}_trackByValue(re){return this.trackBy?this.trackBy(re):re}}class F extends D{constructor(re,B,N){super(),this.getLevel=re,this.isExpandable=B,this.options=N,this.options&&(this.trackBy=this.options.trackBy)}getDescendants(re){const N=[];for(let Me=this.dataNodes.indexOf(re)+1;Methis._trackByValue(re)))}}class z extends D{constructor(re,B){super(),this.getChildren=re,this.options=B,this.options&&(this.trackBy=this.options.trackBy)}expandAll(){this.expansionModel.clear();const re=this.dataNodes.reduce((B,N)=>[...B,...this.getDescendants(N),N],[]);this.expansionModel.select(...re.map(B=>this._trackByValue(B)))}getDescendants(re){const B=[];return this._getDescendants(B,re),B.splice(1)}_getDescendants(re,B){re.push(B);const N=this.getChildren(B);Array.isArray(N)?N.forEach(Me=>this._getDescendants(re,Me)):(0,m.b)(N)&&N.pipe((0,g.q)(1),(0,T.h)(Boolean)).subscribe(Me=>{for(const Y of Me)this._getDescendants(re,Y)})}}const $=new S.OlP("CDK_TREE_NODE_OUTLET_NODE");let G=(()=>{class de{constructor(B,N){this.viewContainer=B,this._node=N}}return de.\u0275fac=function(B){return new(B||de)(S.Y36(S.s_b),S.Y36($,8))},de.\u0275dir=S.lG2({type:de,selectors:[["","cdkTreeNodeOutlet",""]]}),de})();class q{constructor(re){this.$implicit=re}}let _e=(()=>{class de{constructor(B){this.template=B}}return de.\u0275fac=function(B){return new(B||de)(S.Y36(S.Rgc))},de.\u0275dir=S.lG2({type:de,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:["cdkTreeNodeDefWhen","when"]}}),de})(),V=(()=>{class de{constructor(B,N){this._differs=B,this._changeDetectorRef=N,this._onDestroy=new A.x,this._levels=new Map,this.viewChange=new w.X({start:0,end:Number.MAX_VALUE})}get dataSource(){return this._dataSource}set dataSource(B){this._dataSource!==B&&this._switchDataSource(B)}ngOnInit(){this._dataDiffer=this._differs.find([]).create(this.trackBy)}ngOnDestroy(){this._nodeOutlet.viewContainer.clear(),this.viewChange.complete(),this._onDestroy.next(),this._onDestroy.complete(),this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null)}ngAfterContentChecked(){const B=this._nodeDefs.filter(N=>!N.when);this._defaultNodeDef=B[0],this.dataSource&&this._nodeDefs&&!this._dataSubscription&&this._observeRenderChanges()}_switchDataSource(B){this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),B||this._nodeOutlet.viewContainer.clear(),this._dataSource=B,this._nodeDefs&&this._observeRenderChanges()}_observeRenderChanges(){let B;(0,e.Z9)(this._dataSource)?B=this._dataSource.connect(this):(0,m.b)(this._dataSource)?B=this._dataSource:Array.isArray(this._dataSource)&&(B=(0,p.of)(this._dataSource)),B&&(this._dataSubscription=B.pipe((0,E.R)(this._onDestroy)).subscribe(N=>this.renderNodeChanges(N)))}renderNodeChanges(B,N=this._dataDiffer,Me=this._nodeOutlet.viewContainer,Y){const be=N.diff(B);!be||(be.forEachOperation((De,We,Pe)=>{if(null==De.previousIndex)this.insertNode(B[Pe],Pe,Me,Y);else if(null==Pe)Me.remove(We),this._levels.delete(De.item);else{const nt=Me.get(We);Me.move(nt,Pe)}}),this._changeDetectorRef.detectChanges())}_getNodeDef(B,N){return 1===this._nodeDefs.length?this._nodeDefs.first:this._nodeDefs.find(Y=>Y.when&&Y.when(N,B))||this._defaultNodeDef}insertNode(B,N,Me,Y){const be=this._getNodeDef(B,N),De=new q(B);De.level=this.treeControl.getLevel?this.treeControl.getLevel(B):typeof Y<"u"&&this._levels.has(Y)?this._levels.get(Y)+1:0,this._levels.set(B,De.level),(Me||this._nodeOutlet.viewContainer).createEmbeddedView(be.template,De,N),Q.mostRecentTreeNode&&(Q.mostRecentTreeNode.data=B)}}return de.\u0275fac=function(B){return new(B||de)(S.Y36(S.ZZ4),S.Y36(S.sBO))},de.\u0275cmp=S.Xpm({type:de,selectors:[["cdk-tree"]],contentQueries:function(B,N,Me){if(1&B&&S.Suo(Me,_e,5),2&B){let Y;S.iGM(Y=S.CRH())&&(N._nodeDefs=Y)}},viewQuery:function(B,N){if(1&B&&S.Gf(G,7),2&B){let Me;S.iGM(Me=S.CRH())&&(N._nodeOutlet=Me.first)}},hostAttrs:["role","tree",1,"cdk-tree"],inputs:{dataSource:"dataSource",treeControl:"treeControl",trackBy:"trackBy"},exportAs:["cdkTree"],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function(B,N){1&B&&S.GkF(0,0)},dependencies:[G],encapsulation:2}),de})(),Q=(()=>{class de{constructor(B,N){this._elementRef=B,this._tree=N,this._destroyed=new A.x,this._dataChanges=new A.x,de.mostRecentTreeNode=this,this.role="treeitem"}get role(){return"treeitem"}set role(B){this._elementRef.nativeElement.setAttribute("role",B)}get data(){return this._data}set data(B){B!==this._data&&(this._data=B,this._setRoleFromData(),this._dataChanges.next())}get isExpanded(){return this._tree.treeControl.isExpanded(this._data)}get level(){return this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._data):this._parentNodeAriaLevel}ngOnInit(){this._parentNodeAriaLevel=function ae(de){let re=de.parentElement;for(;re&&!xe(re);)re=re.parentElement;return re?re.classList.contains("cdk-nested-tree-node")?(0,R.su)(re.getAttribute("aria-level")):0:-1}(this._elementRef.nativeElement),this._elementRef.nativeElement.setAttribute("aria-level",`${this.level+1}`)}ngOnDestroy(){de.mostRecentTreeNode===this&&(de.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}focus(){this._elementRef.nativeElement.focus()}_setRoleFromData(){this.role="treeitem"}}return de.mostRecentTreeNode=null,de.\u0275fac=function(B){return new(B||de)(S.Y36(S.SBq),S.Y36(V))},de.\u0275dir=S.lG2({type:de,selectors:[["cdk-tree-node"]],hostAttrs:[1,"cdk-tree-node"],hostVars:1,hostBindings:function(B,N){2&B&&S.uIk("aria-expanded",N.isExpanded)},inputs:{role:"role"},exportAs:["cdkTreeNode"]}),de})();function xe(de){const re=de.classList;return!!(null!=re&&re.contains("cdk-nested-tree-node")||null!=re&&re.contains("cdk-tree"))}let ge=(()=>{class de extends Q{constructor(B,N,Me){super(B,N),this._differs=Me}ngAfterContentInit(){this._dataDiffer=this._differs.find([]).create(this._tree.trackBy);const B=this._tree.treeControl.getChildren(this.data);Array.isArray(B)?this.updateChildrenNodes(B):(0,m.b)(B)&&B.pipe((0,E.R)(this._destroyed)).subscribe(N=>this.updateChildrenNodes(N)),this.nodeOutlet.changes.pipe((0,E.R)(this._destroyed)).subscribe(()=>this.updateChildrenNodes())}ngOnInit(){super.ngOnInit()}ngOnDestroy(){this._clear(),super.ngOnDestroy()}updateChildrenNodes(B){const N=this._getNodeOutlet();B&&(this._children=B),N&&this._children?this._tree.renderNodeChanges(this._children,this._dataDiffer,N.viewContainer,this._data):this._dataDiffer.diff([])}_clear(){const B=this._getNodeOutlet();B&&(B.viewContainer.clear(),this._dataDiffer.diff([]))}_getNodeOutlet(){const B=this.nodeOutlet;return B&&B.find(N=>!N._node||N._node===this)}}return de.\u0275fac=function(B){return new(B||de)(S.Y36(S.SBq),S.Y36(V),S.Y36(S.ZZ4))},de.\u0275dir=S.lG2({type:de,selectors:[["cdk-nested-tree-node"]],contentQueries:function(B,N,Me){if(1&B&&S.Suo(Me,G,5),2&B){let Y;S.iGM(Y=S.CRH())&&(N.nodeOutlet=Y)}},hostAttrs:[1,"cdk-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["cdkNestedTreeNode"],features:[S._Bn([{provide:Q,useExisting:de},{provide:$,useExisting:de}]),S.qOj]}),de})();const Se=/([A-Za-z%]+)$/;let Be=(()=>{class de{constructor(B,N,Me,Y){this._treeNode=B,this._tree=N,this._element=Me,this._dir=Y,this._destroyed=new A.x,this.indentUnits="px",this._indent=40,this._setPadding(),Y&&Y.change.pipe((0,E.R)(this._destroyed)).subscribe(()=>this._setPadding(!0)),B._dataChanges.subscribe(()=>this._setPadding())}get level(){return this._level}set level(B){this._setLevelInput(B)}get indent(){return this._indent}set indent(B){this._setIndentInput(B)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_paddingIndent(){const B=this._treeNode.data&&this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._treeNode.data):null,N=this._level??B;return"number"==typeof N?`${N*this._indent}${this.indentUnits}`:null}_setPadding(B=!1){const N=this._paddingIndent();if(N!==this._currentPadding||B){const Me=this._element.nativeElement,Y=this._dir&&"rtl"===this._dir.value?"paddingRight":"paddingLeft",be="paddingLeft"===Y?"paddingRight":"paddingLeft";Me.style[Y]=N||"",Me.style[be]="",this._currentPadding=N}}_setLevelInput(B){this._level=(0,R.su)(B,null),this._setPadding()}_setIndentInput(B){let N=B,Me="px";if("string"==typeof B){const Y=B.split(Se);N=Y[0],Me=Y[1]||Me}this.indentUnits=Me,this._indent=(0,R.su)(N),this._setPadding()}}return de.\u0275fac=function(B){return new(B||de)(S.Y36(Q),S.Y36(V),S.Y36(S.SBq),S.Y36(v.Is,8))},de.\u0275dir=S.lG2({type:de,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:["cdkTreeNodePadding","level"],indent:["cdkTreeNodePaddingIndent","indent"]}}),de})(),pe=(()=>{class de{constructor(B,N){this._tree=B,this._treeNode=N,this._recursive=!1}get recursive(){return this._recursive}set recursive(B){this._recursive=(0,R.Ig)(B)}_toggle(B){this.recursive?this._tree.treeControl.toggleDescendants(this._treeNode.data):this._tree.treeControl.toggle(this._treeNode.data),B.stopPropagation()}}return de.\u0275fac=function(B){return new(B||de)(S.Y36(V),S.Y36(Q))},de.\u0275dir=S.lG2({type:de,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function(B,N){1&B&&S.NdJ("click",function(Y){return N._toggle(Y)})},inputs:{recursive:["cdkTreeNodeToggleRecursive","recursive"]}}),de})(),Ce=(()=>{class de{}return de.\u0275fac=function(B){return new(B||de)},de.\u0275mod=S.oAB({type:de}),de.\u0275inj=S.cJS({}),de})()},36895:(Qe,he,u)=>{"use strict";u.d(he,{Do:()=>Te,ED:()=>cr,EM:()=>rr,HT:()=>p,JF:()=>gi,K0:()=>T,Mx:()=>Tn,NF:()=>Ii,O5:()=>Wn,Ov:()=>Vt,PC:()=>ur,PM:()=>Wr,RF:()=>vi,S$:()=>q,V_:()=>R,Ye:()=>b,b0:()=>ce,bD:()=>gn,ez:()=>un,gd:()=>Fn,i8:()=>Zt,mk:()=>Gn,n9:()=>wi,p6:()=>o,q:()=>A,rS:()=>Dn,sg:()=>Qn,tP:()=>hr,uU:()=>Ti,w_:()=>g});var e=u(94650);let m=null;function A(){return m}function p(Ve){m||(m=Ve)}class g{}const T=new e.OlP("DocumentToken");let E=(()=>{class Ve{historyGo(Fe){throw new Error("Not implemented")}}return Ve.\u0275fac=function(Fe){return new(Fe||Ve)},Ve.\u0275prov=e.Yz7({token:Ve,factory:function(){return function S(){return(0,e.LFG)(v)}()},providedIn:"platform"}),Ve})();const R=new e.OlP("Location Initialized");let v=(()=>{class Ve extends E{constructor(Fe){super(),this._doc=Fe,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return A().getBaseHref(this._doc)}onPopState(Fe){const bt=A().getGlobalEventTarget(this._doc,"window");return bt.addEventListener("popstate",Fe,!1),()=>bt.removeEventListener("popstate",Fe)}onHashChange(Fe){const bt=A().getGlobalEventTarget(this._doc,"window");return bt.addEventListener("hashchange",Fe,!1),()=>bt.removeEventListener("hashchange",Fe)}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(Fe){this.location.pathname=Fe}pushState(Fe,bt,Lt){D()?this._history.pushState(Fe,bt,Lt):this.location.hash=Lt}replaceState(Fe,bt,Lt){D()?this._history.replaceState(Fe,bt,Lt):this.location.hash=Lt}forward(){this._history.forward()}back(){this._history.back()}historyGo(Fe=0){this._history.go(Fe)}getState(){return this._history.state}}return Ve.\u0275fac=function(Fe){return new(Fe||Ve)(e.LFG(T))},Ve.\u0275prov=e.Yz7({token:Ve,factory:function(){return function F(){return new v((0,e.LFG)(T))}()},providedIn:"platform"}),Ve})();function D(){return!!window.history.pushState}function z(Ve,mt){if(0==Ve.length)return mt;if(0==mt.length)return Ve;let Fe=0;return Ve.endsWith("/")&&Fe++,mt.startsWith("/")&&Fe++,2==Fe?Ve+mt.substring(1):1==Fe?Ve+mt:Ve+"/"+mt}function $(Ve){const mt=Ve.match(/#|\?|$/),Fe=mt&&mt.index||Ve.length;return Ve.slice(0,Fe-("/"===Ve[Fe-1]?1:0))+Ve.slice(Fe)}function G(Ve){return Ve&&"?"!==Ve[0]?"?"+Ve:Ve}let q=(()=>{class Ve{historyGo(Fe){throw new Error("Not implemented")}}return Ve.\u0275fac=function(Fe){return new(Fe||Ve)},Ve.\u0275prov=e.Yz7({token:Ve,factory:function(){return(0,e.f3M)(ce)},providedIn:"root"}),Ve})();const _e=new e.OlP("appBaseHref");let ce=(()=>{class Ve extends q{constructor(Fe,bt){var Lt,$t,Yt;super(),this._platformLocation=Fe,this._removeListenerFns=[],this._baseHref=null!==(Lt=null!==($t=bt??this._platformLocation.getBaseHrefFromDOM())&&void 0!==$t?$t:null===(Yt=(0,e.f3M)(T).location)||void 0===Yt?void 0:Yt.origin)&&void 0!==Lt?Lt:""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(Fe){this._removeListenerFns.push(this._platformLocation.onPopState(Fe),this._platformLocation.onHashChange(Fe))}getBaseHref(){return this._baseHref}prepareExternalUrl(Fe){return z(this._baseHref,Fe)}path(Fe=!1){const bt=this._platformLocation.pathname+G(this._platformLocation.search),Lt=this._platformLocation.hash;return Lt&&Fe?`${bt}${Lt}`:bt}pushState(Fe,bt,Lt,$t){const Yt=this.prepareExternalUrl(Lt+G($t));this._platformLocation.pushState(Fe,bt,Yt)}replaceState(Fe,bt,Lt,$t){const Yt=this.prepareExternalUrl(Lt+G($t));this._platformLocation.replaceState(Fe,bt,Yt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(Fe=0){var bt,Lt;null===(bt=(Lt=this._platformLocation).historyGo)||void 0===bt||bt.call(Lt,Fe)}}return Ve.\u0275fac=function(Fe){return new(Fe||Ve)(e.LFG(E),e.LFG(_e,8))},Ve.\u0275prov=e.Yz7({token:Ve,factory:Ve.\u0275fac,providedIn:"root"}),Ve})(),Te=(()=>{class Ve extends q{constructor(Fe,bt){super(),this._platformLocation=Fe,this._baseHref="",this._removeListenerFns=[],null!=bt&&(this._baseHref=bt)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(Fe){this._removeListenerFns.push(this._platformLocation.onPopState(Fe),this._platformLocation.onHashChange(Fe))}getBaseHref(){return this._baseHref}path(Fe=!1){let bt=this._platformLocation.hash;return null==bt&&(bt="#"),bt.length>0?bt.substring(1):bt}prepareExternalUrl(Fe){const bt=z(this._baseHref,Fe);return bt.length>0?"#"+bt:bt}pushState(Fe,bt,Lt,$t){let Yt=this.prepareExternalUrl(Lt+G($t));0==Yt.length&&(Yt=this._platformLocation.pathname),this._platformLocation.pushState(Fe,bt,Yt)}replaceState(Fe,bt,Lt,$t){let Yt=this.prepareExternalUrl(Lt+G($t));0==Yt.length&&(Yt=this._platformLocation.pathname),this._platformLocation.replaceState(Fe,bt,Yt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(Fe=0){var bt,Lt;null===(bt=(Lt=this._platformLocation).historyGo)||void 0===bt||bt.call(Lt,Fe)}}return Ve.\u0275fac=function(Fe){return new(Fe||Ve)(e.LFG(E),e.LFG(_e,8))},Ve.\u0275prov=e.Yz7({token:Ve,factory:Ve.\u0275fac}),Ve})(),b=(()=>{class Ve{constructor(Fe){this._subject=new e.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=Fe;const bt=this._locationStrategy.getBaseHref();this._baseHref=$(V(bt)),this._locationStrategy.onPopState(Lt=>{this._subject.emit({url:this.path(!0),pop:!0,state:Lt.state,type:Lt.type})})}ngOnDestroy(){var Fe;null===(Fe=this._urlChangeSubscription)||void 0===Fe||Fe.unsubscribe(),this._urlChangeListeners=[]}path(Fe=!1){return this.normalize(this._locationStrategy.path(Fe))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(Fe,bt=""){return this.path()==this.normalize(Fe+G(bt))}normalize(Fe){return Ve.stripTrailingSlash(function L(Ve,mt){return Ve&&mt.startsWith(Ve)?mt.substring(Ve.length):mt}(this._baseHref,V(Fe)))}prepareExternalUrl(Fe){return Fe&&"/"!==Fe[0]&&(Fe="/"+Fe),this._locationStrategy.prepareExternalUrl(Fe)}go(Fe,bt="",Lt=null){this._locationStrategy.pushState(Lt,"",Fe,bt),this._notifyUrlChangeListeners(this.prepareExternalUrl(Fe+G(bt)),Lt)}replaceState(Fe,bt="",Lt=null){this._locationStrategy.replaceState(Lt,"",Fe,bt),this._notifyUrlChangeListeners(this.prepareExternalUrl(Fe+G(bt)),Lt)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(Fe=0){var bt,Lt;null===(bt=(Lt=this._locationStrategy).historyGo)||void 0===bt||bt.call(Lt,Fe)}onUrlChange(Fe){return this._urlChangeListeners.push(Fe),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(bt=>{this._notifyUrlChangeListeners(bt.url,bt.state)})),()=>{const bt=this._urlChangeListeners.indexOf(Fe);var Lt;this._urlChangeListeners.splice(bt,1),0===this._urlChangeListeners.length&&(null===(Lt=this._urlChangeSubscription)||void 0===Lt||Lt.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(Fe="",bt){this._urlChangeListeners.forEach(Lt=>Lt(Fe,bt))}subscribe(Fe,bt,Lt){return this._subject.subscribe({next:Fe,error:bt,complete:Lt})}}return Ve.normalizeQueryParams=G,Ve.joinWithSlash=z,Ve.stripTrailingSlash=$,Ve.\u0275fac=function(Fe){return new(Fe||Ve)(e.LFG(q))},Ve.\u0275prov=e.Yz7({token:Ve,factory:function(){return function H(){return new b((0,e.LFG)(q))}()},providedIn:"root"}),Ve})();function V(Ve){return Ve.replace(/\/index.html$/,"")}var ge=(()=>((ge=ge||{})[ge.Format=0]="Format",ge[ge.Standalone=1]="Standalone",ge))(),Se=(()=>((Se=Se||{})[Se.Narrow=0]="Narrow",Se[Se.Abbreviated=1]="Abbreviated",Se[Se.Wide=2]="Wide",Se[Se.Short=3]="Short",Se))(),Be=(()=>((Be=Be||{})[Be.Short=0]="Short",Be[Be.Medium=1]="Medium",Be[Be.Long=2]="Long",Be[Be.Full=3]="Full",Be))(),pe=(()=>((pe=pe||{})[pe.Decimal=0]="Decimal",pe[pe.Group=1]="Group",pe[pe.List=2]="List",pe[pe.PercentSign=3]="PercentSign",pe[pe.PlusSign=4]="PlusSign",pe[pe.MinusSign=5]="MinusSign",pe[pe.Exponential=6]="Exponential",pe[pe.SuperscriptingExponent=7]="SuperscriptingExponent",pe[pe.PerMille=8]="PerMille",pe[pe.Infinity=9]="Infinity",pe[pe.NaN=10]="NaN",pe[pe.TimeSeparator=11]="TimeSeparator",pe[pe.CurrencyDecimal=12]="CurrencyDecimal",pe[pe.CurrencyGroup=13]="CurrencyGroup",pe))();function be(Ve,mt){return it((0,e.cg1)(Ve)[e.wAp.DateFormat],mt)}function De(Ve,mt){return it((0,e.cg1)(Ve)[e.wAp.TimeFormat],mt)}function We(Ve,mt){return it((0,e.cg1)(Ve)[e.wAp.DateTimeFormat],mt)}function Pe(Ve,mt){const Fe=(0,e.cg1)(Ve),bt=Fe[e.wAp.NumberSymbols][mt];if(typeof bt>"u"){if(mt===pe.CurrencyDecimal)return Fe[e.wAp.NumberSymbols][pe.Decimal];if(mt===pe.CurrencyGroup)return Fe[e.wAp.NumberSymbols][pe.Group]}return bt}function ne(Ve){if(!Ve[e.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${Ve[e.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function it(Ve,mt){for(let Fe=mt;Fe>-1;Fe--)if(typeof Ve[Fe]<"u")return Ve[Fe];throw new Error("Locale data API: locale data undefined")}function oe(Ve){const[mt,Fe]=Ve.split(":");return{hours:+mt,minutes:+Fe}}const _=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,c={},a=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var i=(()=>((i=i||{})[i.Short=0]="Short",i[i.ShortGMT=1]="ShortGMT",i[i.Long=2]="Long",i[i.Extended=3]="Extended",i))(),t=(()=>((t=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))(),n=(()=>((n=n||{})[n.DayPeriods=0]="DayPeriods",n[n.Days=1]="Days",n[n.Months=2]="Months",n[n.Eras=3]="Eras",n))();function o(Ve,mt,Fe,bt){let Lt=function rt(Ve){if(Qt(Ve))return Ve;if("number"==typeof Ve&&!isNaN(Ve))return new Date(Ve);if("string"==typeof Ve){if(Ve=Ve.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(Ve)){const[Lt,$t=1,Yt=1]=Ve.split("-").map(vn=>+vn);return l(Lt,$t-1,Yt)}const Fe=parseFloat(Ve);if(!isNaN(Ve-Fe))return new Date(Fe);let bt;if(bt=Ve.match(_))return function Mt(Ve){const mt=new Date(0);let Fe=0,bt=0;const Lt=Ve[8]?mt.setUTCFullYear:mt.setFullYear,$t=Ve[8]?mt.setUTCHours:mt.setHours;Ve[9]&&(Fe=Number(Ve[9]+Ve[10]),bt=Number(Ve[9]+Ve[11])),Lt.call(mt,Number(Ve[1]),Number(Ve[2])-1,Number(Ve[3]));const Yt=Number(Ve[4]||0)-Fe,vn=Number(Ve[5]||0)-bt,ti=Number(Ve[6]||0),ni=Math.floor(1e3*parseFloat("0."+(Ve[7]||0)));return $t.call(mt,Yt,vn,ti,ni),mt}(bt)}const mt=new Date(Ve);if(!Qt(mt))throw new Error(`Unable to convert "${Ve}" into a date`);return mt}(Ve);mt=d(Fe,mt)||mt;let vn,Yt=[];for(;mt;){if(vn=a.exec(mt),!vn){Yt.push(mt);break}{Yt=Yt.concat(vn.slice(1));const ei=Yt.pop();if(!ei)break;mt=ei}}let ti=Lt.getTimezoneOffset();bt&&(ti=_t(bt,ti),Lt=function qe(Ve,mt,Fe){const bt=Fe?-1:1,Lt=Ve.getTimezoneOffset();return function me(Ve,mt){return(Ve=new Date(Ve.getTime())).setMinutes(Ve.getMinutes()+mt),Ve}(Ve,bt*(_t(mt,Lt)-Lt))}(Lt,bt,!0));let ni="";return Yt.forEach(ei=>{const zn=function ze(Ve){if(st[Ve])return st[Ve];let mt;switch(Ve){case"G":case"GG":case"GGG":mt=Ue(n.Eras,Se.Abbreviated);break;case"GGGG":mt=Ue(n.Eras,Se.Wide);break;case"GGGGG":mt=Ue(n.Eras,Se.Narrow);break;case"y":mt=tt(t.FullYear,1,0,!1,!0);break;case"yy":mt=tt(t.FullYear,2,0,!0,!0);break;case"yyy":mt=tt(t.FullYear,3,0,!1,!0);break;case"yyyy":mt=tt(t.FullYear,4,0,!1,!0);break;case"Y":mt=Ae(1);break;case"YY":mt=Ae(2,!0);break;case"YYY":mt=Ae(3);break;case"YYYY":mt=Ae(4);break;case"M":case"L":mt=tt(t.Month,1,1);break;case"MM":case"LL":mt=tt(t.Month,2,1);break;case"MMM":mt=Ue(n.Months,Se.Abbreviated);break;case"MMMM":mt=Ue(n.Months,Se.Wide);break;case"MMMMM":mt=Ue(n.Months,Se.Narrow);break;case"LLL":mt=Ue(n.Months,Se.Abbreviated,ge.Standalone);break;case"LLLL":mt=Ue(n.Months,Se.Wide,ge.Standalone);break;case"LLLLL":mt=Ue(n.Months,Se.Narrow,ge.Standalone);break;case"w":mt=ie(1);break;case"ww":mt=ie(2);break;case"W":mt=ie(1,!0);break;case"d":mt=tt(t.Date,1);break;case"dd":mt=tt(t.Date,2);break;case"c":case"cc":mt=tt(t.Day,1);break;case"ccc":mt=Ue(n.Days,Se.Abbreviated,ge.Standalone);break;case"cccc":mt=Ue(n.Days,Se.Wide,ge.Standalone);break;case"ccccc":mt=Ue(n.Days,Se.Narrow,ge.Standalone);break;case"cccccc":mt=Ue(n.Days,Se.Short,ge.Standalone);break;case"E":case"EE":case"EEE":mt=Ue(n.Days,Se.Abbreviated);break;case"EEEE":mt=Ue(n.Days,Se.Wide);break;case"EEEEE":mt=Ue(n.Days,Se.Narrow);break;case"EEEEEE":mt=Ue(n.Days,Se.Short);break;case"a":case"aa":case"aaa":mt=Ue(n.DayPeriods,Se.Abbreviated);break;case"aaaa":mt=Ue(n.DayPeriods,Se.Wide);break;case"aaaaa":mt=Ue(n.DayPeriods,Se.Narrow);break;case"b":case"bb":case"bbb":mt=Ue(n.DayPeriods,Se.Abbreviated,ge.Standalone,!0);break;case"bbbb":mt=Ue(n.DayPeriods,Se.Wide,ge.Standalone,!0);break;case"bbbbb":mt=Ue(n.DayPeriods,Se.Narrow,ge.Standalone,!0);break;case"B":case"BB":case"BBB":mt=Ue(n.DayPeriods,Se.Abbreviated,ge.Format,!0);break;case"BBBB":mt=Ue(n.DayPeriods,Se.Wide,ge.Format,!0);break;case"BBBBB":mt=Ue(n.DayPeriods,Se.Narrow,ge.Format,!0);break;case"h":mt=tt(t.Hours,1,-12);break;case"hh":mt=tt(t.Hours,2,-12);break;case"H":mt=tt(t.Hours,1);break;case"HH":mt=tt(t.Hours,2);break;case"m":mt=tt(t.Minutes,1);break;case"mm":mt=tt(t.Minutes,2);break;case"s":mt=tt(t.Seconds,1);break;case"ss":mt=tt(t.Seconds,2);break;case"S":mt=tt(t.FractionalSeconds,1);break;case"SS":mt=tt(t.FractionalSeconds,2);break;case"SSS":mt=tt(t.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":mt=fe(i.Short);break;case"ZZZZZ":mt=fe(i.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":mt=fe(i.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":mt=fe(i.Long);break;default:return null}return st[Ve]=mt,mt}(ei);ni+=zn?zn(Lt,Fe,ti):"''"===ei?"'":ei.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),ni}function l(Ve,mt,Fe){const bt=new Date(0);return bt.setFullYear(Ve,mt,Fe),bt.setHours(0,0,0),bt}function d(Ve,mt){const Fe=function Ce(Ve){return(0,e.cg1)(Ve)[e.wAp.LocaleId]}(Ve);if(c[Fe]=c[Fe]||{},c[Fe][mt])return c[Fe][mt];let bt="";switch(mt){case"shortDate":bt=be(Ve,Be.Short);break;case"mediumDate":bt=be(Ve,Be.Medium);break;case"longDate":bt=be(Ve,Be.Long);break;case"fullDate":bt=be(Ve,Be.Full);break;case"shortTime":bt=De(Ve,Be.Short);break;case"mediumTime":bt=De(Ve,Be.Medium);break;case"longTime":bt=De(Ve,Be.Long);break;case"fullTime":bt=De(Ve,Be.Full);break;case"short":const Lt=d(Ve,"shortTime"),$t=d(Ve,"shortDate");bt=y(We(Ve,Be.Short),[Lt,$t]);break;case"medium":const Yt=d(Ve,"mediumTime"),vn=d(Ve,"mediumDate");bt=y(We(Ve,Be.Medium),[Yt,vn]);break;case"long":const ti=d(Ve,"longTime"),ni=d(Ve,"longDate");bt=y(We(Ve,Be.Long),[ti,ni]);break;case"full":const ei=d(Ve,"fullTime"),zn=d(Ve,"fullDate");bt=y(We(Ve,Be.Full),[ei,zn])}return bt&&(c[Fe][mt]=bt),bt}function y(Ve,mt){return mt&&(Ve=Ve.replace(/\{([^}]+)}/g,function(Fe,bt){return null!=mt&&bt in mt?mt[bt]:Fe})),Ve}function k(Ve,mt,Fe="-",bt,Lt){let $t="";(Ve<0||Lt&&Ve<=0)&&(Lt?Ve=1-Ve:(Ve=-Ve,$t=Fe));let Yt=String(Ve);for(;Yt.length0||vn>-Fe)&&(vn+=Fe),Ve===t.Hours)0===vn&&-12===Fe&&(vn=12);else if(Ve===t.FractionalSeconds)return function Ie(Ve,mt){return k(Ve,3).substring(0,mt)}(vn,mt);const ti=Pe(Yt,pe.MinusSign);return k(vn,mt,ti,bt,Lt)}}function Ue(Ve,mt,Fe=ge.Format,bt=!1){return function(Lt,$t){return function at(Ve,mt,Fe,bt,Lt,$t){switch(Fe){case n.Months:return function B(Ve,mt,Fe){const bt=(0,e.cg1)(Ve),$t=it([bt[e.wAp.MonthsFormat],bt[e.wAp.MonthsStandalone]],mt);return it($t,Fe)}(mt,Lt,bt)[Ve.getMonth()];case n.Days:return function re(Ve,mt,Fe){const bt=(0,e.cg1)(Ve),$t=it([bt[e.wAp.DaysFormat],bt[e.wAp.DaysStandalone]],mt);return it($t,Fe)}(mt,Lt,bt)[Ve.getDay()];case n.DayPeriods:const Yt=Ve.getHours(),vn=Ve.getMinutes();if($t){const ni=function ke(Ve){const mt=(0,e.cg1)(Ve);return ne(mt),(mt[e.wAp.ExtraData][2]||[]).map(bt=>"string"==typeof bt?oe(bt):[oe(bt[0]),oe(bt[1])])}(mt),ei=function Ee(Ve,mt,Fe){const bt=(0,e.cg1)(Ve);ne(bt);const $t=it([bt[e.wAp.ExtraData][0],bt[e.wAp.ExtraData][1]],mt)||[];return it($t,Fe)||[]}(mt,Lt,bt),zn=ni.findIndex(Mi=>{if(Array.isArray(Mi)){const[Kn,oi]=Mi,rn=Yt>=Kn.hours&&vn>=Kn.minutes,Nn=Yt0?Math.floor(Lt/60):Math.ceil(Lt/60);switch(Ve){case i.Short:return(Lt>=0?"+":"")+k(Yt,2,$t)+k(Math.abs(Lt%60),2,$t);case i.ShortGMT:return"GMT"+(Lt>=0?"+":"")+k(Yt,1,$t);case i.Long:return"GMT"+(Lt>=0?"+":"")+k(Yt,2,$t)+":"+k(Math.abs(Lt%60),2,$t);case i.Extended:return 0===bt?"Z":(Lt>=0?"+":"")+k(Yt,2,$t)+":"+k(Math.abs(Lt%60),2,$t);default:throw new Error(`Unknown zone width "${Ve}"`)}}}function Le(Ve){return l(Ve.getFullYear(),Ve.getMonth(),Ve.getDate()+(4-Ve.getDay()))}function ie(Ve,mt=!1){return function(Fe,bt){let Lt;if(mt){const $t=new Date(Fe.getFullYear(),Fe.getMonth(),1).getDay()-1,Yt=Fe.getDate();Lt=1+Math.floor((Yt+$t)/7)}else{const $t=Le(Fe),Yt=function je(Ve){const mt=l(Ve,0,1).getDay();return l(Ve,0,1+(mt<=4?4:11)-mt)}($t.getFullYear()),vn=$t.getTime()-Yt.getTime();Lt=1+Math.round(vn/6048e5)}return k(Lt,Ve,Pe(bt,pe.MinusSign))}}function Ae(Ve,mt=!1){return function(Fe,bt){return k(Le(Fe).getFullYear(),Ve,Pe(bt,pe.MinusSign),mt)}}const st={};function _t(Ve,mt){Ve=Ve.replace(/:/g,"");const Fe=Date.parse("Jan 01, 1970 00:00:00 "+Ve)/6e4;return isNaN(Fe)?mt:Fe}function Qt(Ve){return Ve instanceof Date&&!isNaN(Ve.valueOf())}function Tn(Ve,mt){mt=encodeURIComponent(mt);for(const Fe of Ve.split(";")){const bt=Fe.indexOf("="),[Lt,$t]=-1==bt?[Fe,""]:[Fe.slice(0,bt),Fe.slice(bt+1)];if(Lt.trim()===mt)return decodeURIComponent($t)}return null}let Gn=(()=>{class Ve{constructor(Fe,bt,Lt,$t){this._iterableDiffers=Fe,this._keyValueDiffers=bt,this._ngEl=Lt,this._renderer=$t,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(Fe){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof Fe?Fe.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(Fe){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof Fe?Fe.split(/\s+/):Fe,this._rawClass&&((0,e.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const Fe=this._iterableDiffer.diff(this._rawClass);Fe&&this._applyIterableChanges(Fe)}else if(this._keyValueDiffer){const Fe=this._keyValueDiffer.diff(this._rawClass);Fe&&this._applyKeyValueChanges(Fe)}}_applyKeyValueChanges(Fe){Fe.forEachAddedItem(bt=>this._toggleClass(bt.key,bt.currentValue)),Fe.forEachChangedItem(bt=>this._toggleClass(bt.key,bt.currentValue)),Fe.forEachRemovedItem(bt=>{bt.previousValue&&this._toggleClass(bt.key,!1)})}_applyIterableChanges(Fe){Fe.forEachAddedItem(bt=>{if("string"!=typeof bt.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,e.AaK)(bt.item)}`);this._toggleClass(bt.item,!0)}),Fe.forEachRemovedItem(bt=>this._toggleClass(bt.item,!1))}_applyClasses(Fe){Fe&&(Array.isArray(Fe)||Fe instanceof Set?Fe.forEach(bt=>this._toggleClass(bt,!0)):Object.keys(Fe).forEach(bt=>this._toggleClass(bt,!!Fe[bt])))}_removeClasses(Fe){Fe&&(Array.isArray(Fe)||Fe instanceof Set?Fe.forEach(bt=>this._toggleClass(bt,!1)):Object.keys(Fe).forEach(bt=>this._toggleClass(bt,!1)))}_toggleClass(Fe,bt){(Fe=Fe.trim())&&Fe.split(/\s+/g).forEach(Lt=>{bt?this._renderer.addClass(this._ngEl.nativeElement,Lt):this._renderer.removeClass(this._ngEl.nativeElement,Lt)})}}return Ve.\u0275fac=function(Fe){return new(Fe||Ve)(e.Y36(e.ZZ4),e.Y36(e.aQg),e.Y36(e.SBq),e.Y36(e.Qsj))},Ve.\u0275dir=e.lG2({type:Ve,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),Ve})();class ci{constructor(mt,Fe,bt,Lt){this.$implicit=mt,this.ngForOf=Fe,this.index=bt,this.count=Lt}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 Qn=(()=>{class Ve{constructor(Fe,bt,Lt){this._viewContainer=Fe,this._template=bt,this._differs=Lt,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(Fe){this._ngForOf=Fe,this._ngForOfDirty=!0}set ngForTrackBy(Fe){this._trackByFn=Fe}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(Fe){Fe&&(this._template=Fe)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const Fe=this._ngForOf;!this._differ&&Fe&&(this._differ=this._differs.find(Fe).create(this.ngForTrackBy))}if(this._differ){const Fe=this._differ.diff(this._ngForOf);Fe&&this._applyChanges(Fe)}}_applyChanges(Fe){const bt=this._viewContainer;Fe.forEachOperation((Lt,$t,Yt)=>{if(null==Lt.previousIndex)bt.createEmbeddedView(this._template,new ci(Lt.item,this._ngForOf,-1,-1),null===Yt?void 0:Yt);else if(null==Yt)bt.remove(null===$t?void 0:$t);else if(null!==$t){const vn=bt.get($t);bt.move(vn,Yt),Bn(vn,Lt)}});for(let Lt=0,$t=bt.length;Lt<$t;Lt++){const vn=bt.get(Lt).context;vn.index=Lt,vn.count=$t,vn.ngForOf=this._ngForOf}Fe.forEachIdentityChange(Lt=>{Bn(bt.get(Lt.currentIndex),Lt)})}static ngTemplateContextGuard(Fe,bt){return!0}}return Ve.\u0275fac=function(Fe){return new(Fe||Ve)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(e.ZZ4))},Ve.\u0275dir=e.lG2({type:Ve,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),Ve})();function Bn(Ve,mt){Ve.context.$implicit=mt.item}let Wn=(()=>{class Ve{constructor(Fe,bt){this._viewContainer=Fe,this._context=new ri,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=bt}set ngIf(Fe){this._context.$implicit=this._context.ngIf=Fe,this._updateView()}set ngIfThen(Fe){Qi("ngIfThen",Fe),this._thenTemplateRef=Fe,this._thenViewRef=null,this._updateView()}set ngIfElse(Fe){Qi("ngIfElse",Fe),this._elseTemplateRef=Fe,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(Fe,bt){return!0}}return Ve.\u0275fac=function(Fe){return new(Fe||Ve)(e.Y36(e.s_b),e.Y36(e.Rgc))},Ve.\u0275dir=e.lG2({type:Ve,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),Ve})();class ri{constructor(){this.$implicit=null,this.ngIf=null}}function Qi(Ve,mt){if(mt&&!mt.createEmbeddedView)throw new Error(`${Ve} must be a TemplateRef, but received '${(0,e.AaK)(mt)}'.`)}class ji{constructor(mt,Fe){this._viewContainerRef=mt,this._templateRef=Fe,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(mt){mt&&!this._created?this.create():!mt&&this._created&&this.destroy()}}let vi=(()=>{class Ve{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(Fe){this._ngSwitch=Fe,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(Fe){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(Fe)}_matchCase(Fe){const bt=Fe==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||bt,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),bt}_updateDefaultCases(Fe){if(this._defaultViews&&Fe!==this._defaultUsed){this._defaultUsed=Fe;for(let bt=0;bt{class Ve{constructor(Fe,bt,Lt){this.ngSwitch=Lt,Lt._addCase(),this._view=new ji(Fe,bt)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return Ve.\u0275fac=function(Fe){return new(Fe||Ve)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(vi,9))},Ve.\u0275dir=e.lG2({type:Ve,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),Ve})(),cr=(()=>{class Ve{constructor(Fe,bt,Lt){Lt._addDefault(new ji(Fe,bt))}}return Ve.\u0275fac=function(Fe){return new(Fe||Ve)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(vi,9))},Ve.\u0275dir=e.lG2({type:Ve,selectors:[["","ngSwitchDefault",""]],standalone:!0}),Ve})(),ur=(()=>{class Ve{constructor(Fe,bt,Lt){this._ngEl=Fe,this._differs=bt,this._renderer=Lt,this._ngStyle=null,this._differ=null}set ngStyle(Fe){this._ngStyle=Fe,!this._differ&&Fe&&(this._differ=this._differs.find(Fe).create())}ngDoCheck(){if(this._differ){const Fe=this._differ.diff(this._ngStyle);Fe&&this._applyChanges(Fe)}}_setStyle(Fe,bt){const[Lt,$t]=Fe.split("."),Yt=-1===Lt.indexOf("-")?void 0:e.JOm.DashCase;null!=bt?this._renderer.setStyle(this._ngEl.nativeElement,Lt,$t?`${bt}${$t}`:bt,Yt):this._renderer.removeStyle(this._ngEl.nativeElement,Lt,Yt)}_applyChanges(Fe){Fe.forEachRemovedItem(bt=>this._setStyle(bt.key,null)),Fe.forEachAddedItem(bt=>this._setStyle(bt.key,bt.currentValue)),Fe.forEachChangedItem(bt=>this._setStyle(bt.key,bt.currentValue))}}return Ve.\u0275fac=function(Fe){return new(Fe||Ve)(e.Y36(e.SBq),e.Y36(e.aQg),e.Y36(e.Qsj))},Ve.\u0275dir=e.lG2({type:Ve,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),Ve})(),hr=(()=>{class Ve{constructor(Fe){this._viewContainerRef=Fe,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(Fe){if(Fe.ngTemplateOutlet||Fe.ngTemplateOutletInjector){const bt=this._viewContainerRef;if(this._viewRef&&bt.remove(bt.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:Lt,ngTemplateOutletContext:$t,ngTemplateOutletInjector:Yt}=this;this._viewRef=bt.createEmbeddedView(Lt,$t,Yt?{injector:Yt}:void 0)}else this._viewRef=null}else this._viewRef&&Fe.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return Ve.\u0275fac=function(Fe){return new(Fe||Ve)(e.Y36(e.s_b))},Ve.\u0275dir=e.lG2({type:Ve,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[e.TTD]}),Ve})();function Ei(Ve,mt){return new e.vHH(2100,!1)}class yr{createSubscription(mt,Fe){return mt.subscribe({next:Fe,error:bt=>{throw bt}})}dispose(mt){mt.unsubscribe()}}class Dt{createSubscription(mt,Fe){return mt.then(Fe,bt=>{throw bt})}dispose(mt){}}const nn=new Dt,ht=new yr;let Vt=(()=>{class Ve{constructor(Fe){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=Fe}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(Fe){return this._obj?Fe!==this._obj?(this._dispose(),this.transform(Fe)):this._latestValue:(Fe&&this._subscribe(Fe),this._latestValue)}_subscribe(Fe){this._obj=Fe,this._strategy=this._selectStrategy(Fe),this._subscription=this._strategy.createSubscription(Fe,bt=>this._updateLatestValue(Fe,bt))}_selectStrategy(Fe){if((0,e.QGY)(Fe))return nn;if((0,e.F4k)(Fe))return ht;throw Ei()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(Fe,bt){Fe===this._obj&&(this._latestValue=bt,this._ref.markForCheck())}}return Ve.\u0275fac=function(Fe){return new(Fe||Ve)(e.Y36(e.sBO,16))},Ve.\u0275pipe=e.Yjl({name:"async",type:Ve,pure:!1,standalone:!0}),Ve})(),Zt=(()=>{class Ve{transform(Fe){if(null==Fe)return null;if("string"!=typeof Fe)throw Ei();return Fe.toLowerCase()}}return Ve.\u0275fac=function(Fe){return new(Fe||Ve)},Ve.\u0275pipe=e.Yjl({name:"lowercase",type:Ve,pure:!0,standalone:!0}),Ve})();const on=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g;let Dn=(()=>{class Ve{transform(Fe){if(null==Fe)return null;if("string"!=typeof Fe)throw Ei();return Fe.replace(on,bt=>bt[0].toUpperCase()+bt.slice(1).toLowerCase())}}return Ve.\u0275fac=function(Fe){return new(Fe||Ve)},Ve.\u0275pipe=e.Yjl({name:"titlecase",type:Ve,pure:!0,standalone:!0}),Ve})(),Fn=(()=>{class Ve{transform(Fe){if(null==Fe)return null;if("string"!=typeof Fe)throw Ei();return Fe.toUpperCase()}}return Ve.\u0275fac=function(Fe){return new(Fe||Ve)},Ve.\u0275pipe=e.Yjl({name:"uppercase",type:Ve,pure:!0,standalone:!0}),Ve})();const Yn=new e.OlP("DATE_PIPE_DEFAULT_TIMEZONE");let Ti=(()=>{class Ve{constructor(Fe,bt){this.locale=Fe,this.defaultTimezone=bt}transform(Fe,bt="mediumDate",Lt,$t){if(null==Fe||""===Fe||Fe!=Fe)return null;try{var Yt;return o(Fe,bt,$t||this.locale,null!==(Yt=Lt??this.defaultTimezone)&&void 0!==Yt?Yt:void 0)}catch(vn){throw Ei()}}}return Ve.\u0275fac=function(Fe){return new(Fe||Ve)(e.Y36(e.soG,16),e.Y36(Yn,24))},Ve.\u0275pipe=e.Yjl({name:"date",type:Ve,pure:!0,standalone:!0}),Ve})(),un=(()=>{class Ve{}return Ve.\u0275fac=function(Fe){return new(Fe||Ve)},Ve.\u0275mod=e.oAB({type:Ve}),Ve.\u0275inj=e.cJS({}),Ve})();const gn="browser";function Ii(Ve){return Ve===gn}function Wr(Ve){return"server"===Ve}let rr=(()=>{class Ve{}return Ve.\u0275prov=(0,e.Yz7)({token:Ve,providedIn:"root",factory:()=>new Vi((0,e.LFG)(T),window)}),Ve})();class Vi{constructor(mt,Fe){this.document=mt,this.window=Fe,this.offset=()=>[0,0]}setOffset(mt){this.offset=Array.isArray(mt)?()=>mt:mt}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(mt){this.supportsScrolling()&&this.window.scrollTo(mt[0],mt[1])}scrollToAnchor(mt){if(!this.supportsScrolling())return;const Fe=function to(Ve,mt){const Fe=Ve.getElementById(mt)||Ve.getElementsByName(mt)[0];if(Fe)return Fe;if("function"==typeof Ve.createTreeWalker&&Ve.body&&(Ve.body.createShadowRoot||Ve.body.attachShadow)){const bt=Ve.createTreeWalker(Ve.body,NodeFilter.SHOW_ELEMENT);let Lt=bt.currentNode;for(;Lt;){const $t=Lt.shadowRoot;if($t){const Yt=$t.getElementById(mt)||$t.querySelector(`[name="${mt}"]`);if(Yt)return Yt}Lt=bt.nextNode()}}return null}(this.document,mt);Fe&&(this.scrollToElement(Fe),Fe.focus())}setHistoryScrollRestoration(mt){if(this.supportScrollRestoration()){const Fe=this.window.history;Fe&&Fe.scrollRestoration&&(Fe.scrollRestoration=mt)}}scrollToElement(mt){const Fe=mt.getBoundingClientRect(),bt=Fe.left+this.window.pageXOffset,Lt=Fe.top+this.window.pageYOffset,$t=this.offset();this.window.scrollTo(bt-$t[0],Lt-$t[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const mt=eo(this.window.history)||eo(Object.getPrototypeOf(this.window.history));return!(!mt||!mt.writable&&!mt.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function eo(Ve){return Object.getOwnPropertyDescriptor(Ve,"scrollRestoration")}class gi{}},80529:(Qe,he,u)=>{"use strict";u.d(he,{JF:()=>s,LE:()=>_e,TP:()=>re,WM:()=>R,Zn:()=>Be,eN:()=>Ce,qT:()=>Te});var e=u(36895),m=u(94650),A=u(39646),w=u(69751),p=u(24351),g=u(39300),T=u(54004);class E{}class S{}class R{constructor(i){this.normalizedNames=new Map,this.lazyUpdate=null,i?this.lazyInit="string"==typeof i?()=>{this.headers=new Map,i.split("\n").forEach(t=>{const n=t.indexOf(":");if(n>0){const o=t.slice(0,n),l=o.toLowerCase(),d=t.slice(n+1).trim();this.maybeSetNormalizedName(o,l),this.headers.has(l)?this.headers.get(l).push(d):this.headers.set(l,[d])}})}:()=>{this.headers=new Map,Object.keys(i).forEach(t=>{let n=i[t];const o=t.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(o,n),this.maybeSetNormalizedName(t,o))})}:this.headers=new Map}has(i){return this.init(),this.headers.has(i.toLowerCase())}get(i){this.init();const t=this.headers.get(i.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(i){return this.init(),this.headers.get(i.toLowerCase())||null}append(i,t){return this.clone({name:i,value:t,op:"a"})}set(i,t){return this.clone({name:i,value:t,op:"s"})}delete(i,t){return this.clone({name:i,value:t,op:"d"})}maybeSetNormalizedName(i,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,i)}init(){this.lazyInit&&(this.lazyInit instanceof R?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(i=>this.applyUpdate(i)),this.lazyUpdate=null))}copyFrom(i){i.init(),Array.from(i.headers.keys()).forEach(t=>{this.headers.set(t,i.headers.get(t)),this.normalizedNames.set(t,i.normalizedNames.get(t))})}clone(i){const t=new R;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof R?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([i]),t}applyUpdate(i){const t=i.name.toLowerCase();switch(i.op){case"a":case"s":let n=i.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(i.name,t);const o=("a"===i.op?this.headers.get(t):void 0)||[];o.push(...n),this.headers.set(t,o);break;case"d":const l=i.value;if(l){let d=this.headers.get(t);if(!d)return;d=d.filter(y=>-1===l.indexOf(y)),0===d.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,d)}else this.headers.delete(t),this.normalizedNames.delete(t)}}forEach(i){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>i(this.normalizedNames.get(t),this.headers.get(t)))}}class D{encodeKey(i){return G(i)}encodeValue(i){return G(i)}decodeKey(i){return decodeURIComponent(i)}decodeValue(i){return decodeURIComponent(i)}}const z=/%(\d[a-f0-9])/gi,$={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function G(a){return encodeURIComponent(a).replace(z,(i,t)=>{var n;return null!==(n=$[t])&&void 0!==n?n:i})}function q(a){return`${a}`}class _e{constructor(i={}){if(this.updates=null,this.cloneFrom=null,this.encoder=i.encoder||new D,i.fromString){if(i.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function F(a,i){const t=new Map;return a.length>0&&a.replace(/^\?/,"").split("&").forEach(o=>{const l=o.indexOf("="),[d,y]=-1==l?[i.decodeKey(o),""]:[i.decodeKey(o.slice(0,l)),i.decodeValue(o.slice(l+1))],k=t.get(d)||[];k.push(y),t.set(d,k)}),t}(i.fromString,this.encoder)}else i.fromObject?(this.map=new Map,Object.keys(i.fromObject).forEach(t=>{const n=i.fromObject[t],o=Array.isArray(n)?n.map(q):[q(n)];this.map.set(t,o)})):this.map=null}has(i){return this.init(),this.map.has(i)}get(i){this.init();const t=this.map.get(i);return t?t[0]:null}getAll(i){return this.init(),this.map.get(i)||null}keys(){return this.init(),Array.from(this.map.keys())}append(i,t){return this.clone({param:i,value:t,op:"a"})}appendAll(i){const t=[];return Object.keys(i).forEach(n=>{const o=i[n];Array.isArray(o)?o.forEach(l=>{t.push({param:n,value:l,op:"a"})}):t.push({param:n,value:o,op:"a"})}),this.clone(t)}set(i,t){return this.clone({param:i,value:t,op:"s"})}delete(i,t){return this.clone({param:i,value:t,op:"d"})}toString(){return this.init(),this.keys().map(i=>{const t=this.encoder.encodeKey(i);return this.map.get(i).map(n=>t+"="+this.encoder.encodeValue(n)).join("&")}).filter(i=>""!==i).join("&")}clone(i){const t=new _e({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(i),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(i=>this.map.set(i,this.cloneFrom.map.get(i))),this.updates.forEach(i=>{switch(i.op){case"a":case"s":const t=("a"===i.op?this.map.get(i.param):void 0)||[];t.push(q(i.value)),this.map.set(i.param,t);break;case"d":if(void 0===i.value){this.map.delete(i.param);break}{let n=this.map.get(i.param)||[];const o=n.indexOf(q(i.value));-1!==o&&n.splice(o,1),n.length>0?this.map.set(i.param,n):this.map.delete(i.param)}}}),this.cloneFrom=this.updates=null)}}class Te{constructor(){this.map=new Map}set(i,t){return this.map.set(i,t),this}get(i){return this.map.has(i)||this.map.set(i,i.defaultValue()),this.map.get(i)}delete(i){return this.map.delete(i),this}has(i){return this.map.has(i)}keys(){return this.map.keys()}}function H(a){return typeof ArrayBuffer<"u"&&a instanceof ArrayBuffer}function L(a){return typeof Blob<"u"&&a instanceof Blob}function V(a){return typeof FormData<"u"&&a instanceof FormData}class ae{constructor(i,t,n,o){let l;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=i.toUpperCase(),function b(a){switch(a){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||o?(this.body=void 0!==n?n:null,l=o):l=n,l&&(this.reportProgress=!!l.reportProgress,this.withCredentials=!!l.withCredentials,l.responseType&&(this.responseType=l.responseType),l.headers&&(this.headers=l.headers),l.context&&(this.context=l.context),l.params&&(this.params=l.params)),this.headers||(this.headers=new R),this.context||(this.context=new Te),this.params){const d=this.params.toString();if(0===d.length)this.urlWithParams=t;else{const y=t.indexOf("?");this.urlWithParams=t+(-1===y?"?":yUe.set(at,i.setHeaders[at]),Ie)),i.setParams&&(tt=Object.keys(i.setParams).reduce((Ue,at)=>Ue.set(at,i.setParams[at]),tt)),new ae(n,o,d,{params:tt,headers:Ie,context:ct,reportProgress:k,responseType:l,withCredentials:y})}}var xe=(()=>((xe=xe||{})[xe.Sent=0]="Sent",xe[xe.UploadProgress=1]="UploadProgress",xe[xe.ResponseHeader=2]="ResponseHeader",xe[xe.DownloadProgress=3]="DownloadProgress",xe[xe.Response=4]="Response",xe[xe.User=5]="User",xe))();class ge{constructor(i,t=200,n="OK"){this.headers=i.headers||new R,this.status=void 0!==i.status?i.status:t,this.statusText=i.statusText||n,this.url=i.url||null,this.ok=this.status>=200&&this.status<300}}class Se extends ge{constructor(i={}){super(i),this.type=xe.ResponseHeader}clone(i={}){return new Se({headers:i.headers||this.headers,status:void 0!==i.status?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0})}}class Be extends ge{constructor(i={}){super(i),this.type=xe.Response,this.body=void 0!==i.body?i.body:null}clone(i={}){return new Be({body:void 0!==i.body?i.body:this.body,headers:i.headers||this.headers,status:void 0!==i.status?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0})}}class pe extends ge{constructor(i){super(i,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${i.url||"(unknown url)"}`:`Http failure response for ${i.url||"(unknown url)"}: ${i.status} ${i.statusText}`,this.error=i.error||null}}function $e(a,i){return{body:i,headers:a.headers,context:a.context,observe:a.observe,params:a.params,reportProgress:a.reportProgress,responseType:a.responseType,withCredentials:a.withCredentials}}let Ce=(()=>{class a{constructor(t){this.handler=t}request(t,n,o={}){let l;if(t instanceof ae)l=t;else{let k,Ie;k=o.headers instanceof R?o.headers:new R(o.headers),o.params&&(Ie=o.params instanceof _e?o.params:new _e({fromObject:o.params})),l=new ae(t,n,void 0!==o.body?o.body:null,{headers:k,context:o.context,params:Ie,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials})}const d=(0,A.of)(l).pipe((0,p.b)(k=>this.handler.handle(k)));if(t instanceof ae||"events"===o.observe)return d;const y=d.pipe((0,g.h)(k=>k instanceof Be));switch(o.observe||"body"){case"body":switch(l.responseType){case"arraybuffer":return y.pipe((0,T.U)(k=>{if(null!==k.body&&!(k.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return k.body}));case"blob":return y.pipe((0,T.U)(k=>{if(null!==k.body&&!(k.body instanceof Blob))throw new Error("Response is not a Blob.");return k.body}));case"text":return y.pipe((0,T.U)(k=>{if(null!==k.body&&"string"!=typeof k.body)throw new Error("Response is not a string.");return k.body}));default:return y.pipe((0,T.U)(k=>k.body))}case"response":return y;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(t,n={}){return this.request("DELETE",t,n)}get(t,n={}){return this.request("GET",t,n)}head(t,n={}){return this.request("HEAD",t,n)}jsonp(t,n){return this.request("JSONP",t,{params:(new _e).append(n,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,n={}){return this.request("OPTIONS",t,n)}patch(t,n,o={}){return this.request("PATCH",t,$e(o,n))}post(t,n,o={}){return this.request("POST",t,$e(o,n))}put(t,n,o={}){return this.request("PUT",t,$e(o,n))}}return a.\u0275fac=function(t){return new(t||a)(m.LFG(E))},a.\u0275prov=m.Yz7({token:a,factory:a.\u0275fac}),a})();class de{constructor(i,t){this.next=i,this.interceptor=t}handle(i){return this.interceptor.intercept(i,this.next)}}const re=new m.OlP("HTTP_INTERCEPTORS");let B=(()=>{class a{intercept(t,n){return n.handle(t)}}return a.\u0275fac=function(t){return new(t||a)},a.\u0275prov=m.Yz7({token:a,factory:a.\u0275fac}),a})();const Tt=/^\)\]\}',?\n/;let Xe=(()=>{class a{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new w.y(n=>{const o=this.xhrFactory.build();if(o.open(t.method,t.urlWithParams),t.withCredentials&&(o.withCredentials=!0),t.headers.forEach((at,fe)=>o.setRequestHeader(at,fe.join(","))),t.headers.has("Accept")||o.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const at=t.detectContentTypeHeader();null!==at&&o.setRequestHeader("Content-Type",at)}if(t.responseType){const at=t.responseType.toLowerCase();o.responseType="json"!==at?at:"text"}const l=t.serializeBody();let d=null;const y=()=>{if(null!==d)return d;const at=o.statusText||"OK",fe=new R(o.getAllResponseHeaders()),Oe=function J(a){return"responseURL"in a&&a.responseURL?a.responseURL:/^X-Request-URL:/m.test(a.getAllResponseHeaders())?a.getResponseHeader("X-Request-URL"):null}(o)||t.url;return d=new Se({headers:fe,status:o.status,statusText:at,url:Oe}),d},k=()=>{let{headers:at,status:fe,statusText:Oe,url:Ke}=y(),je=null;204!==fe&&(je=typeof o.response>"u"?o.responseText:o.response),0===fe&&(fe=je?200:0);let Le=fe>=200&&fe<300;if("json"===t.responseType&&"string"==typeof je){const ie=je;je=je.replace(Tt,"");try{je=""!==je?JSON.parse(je):null}catch(Ae){je=ie,Le&&(Le=!1,je={error:Ae,text:je})}}Le?(n.next(new Be({body:je,headers:at,status:fe,statusText:Oe,url:Ke||void 0})),n.complete()):n.error(new pe({error:je,headers:at,status:fe,statusText:Oe,url:Ke||void 0}))},Ie=at=>{const{url:fe}=y(),Oe=new pe({error:at,status:o.status||0,statusText:o.statusText||"Unknown Error",url:fe||void 0});n.error(Oe)};let tt=!1;const ct=at=>{tt||(n.next(y()),tt=!0);let fe={type:xe.DownloadProgress,loaded:at.loaded};at.lengthComputable&&(fe.total=at.total),"text"===t.responseType&&!!o.responseText&&(fe.partialText=o.responseText),n.next(fe)},Ue=at=>{let fe={type:xe.UploadProgress,loaded:at.loaded};at.lengthComputable&&(fe.total=at.total),n.next(fe)};return o.addEventListener("load",k),o.addEventListener("error",Ie),o.addEventListener("timeout",Ie),o.addEventListener("abort",Ie),t.reportProgress&&(o.addEventListener("progress",ct),null!==l&&o.upload&&o.upload.addEventListener("progress",Ue)),o.send(l),n.next({type:xe.Sent}),()=>{o.removeEventListener("error",Ie),o.removeEventListener("abort",Ie),o.removeEventListener("load",k),o.removeEventListener("timeout",Ie),t.reportProgress&&(o.removeEventListener("progress",ct),null!==l&&o.upload&&o.upload.removeEventListener("progress",Ue)),o.readyState!==o.DONE&&o.abort()}})}}return a.\u0275fac=function(t){return new(t||a)(m.LFG(e.JF))},a.\u0275prov=m.Yz7({token:a,factory:a.\u0275fac}),a})();const le=new m.OlP("XSRF_COOKIE_NAME"),ne=new m.OlP("XSRF_HEADER_NAME");class ke{}let Ee=(()=>{class a{constructor(t,n,o){this.doc=t,this.platform=n,this.cookieName=o,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=(0,e.Mx)(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return a.\u0275fac=function(t){return new(t||a)(m.LFG(e.K0),m.LFG(m.Lbi),m.LFG(le))},a.\u0275prov=m.Yz7({token:a,factory:a.\u0275fac}),a})(),ot=(()=>{class a{constructor(t,n){this.tokenService=t,this.headerName=n}intercept(t,n){const o=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||o.startsWith("http://")||o.startsWith("https://"))return n.handle(t);const l=this.tokenService.getToken();return null!==l&&!t.headers.has(this.headerName)&&(t=t.clone({headers:t.headers.set(this.headerName,l)})),n.handle(t)}}return a.\u0275fac=function(t){return new(t||a)(m.LFG(ke),m.LFG(ne))},a.\u0275prov=m.Yz7({token:a,factory:a.\u0275fac}),a})(),it=(()=>{class a{constructor(t,n){this.backend=t,this.injector=n,this.chain=null}handle(t){if(null===this.chain){const n=this.injector.get(re,[]);this.chain=n.reduceRight((o,l)=>new de(o,l),this.backend)}return this.chain.handle(t)}}return a.\u0275fac=function(t){return new(t||a)(m.LFG(S),m.LFG(m.zs3))},a.\u0275prov=m.Yz7({token:a,factory:a.\u0275fac}),a})(),r=(()=>{class a{static disable(){return{ngModule:a,providers:[{provide:ot,useClass:B}]}}static withOptions(t={}){return{ngModule:a,providers:[t.cookieName?{provide:le,useValue:t.cookieName}:[],t.headerName?{provide:ne,useValue:t.headerName}:[]]}}}return a.\u0275fac=function(t){return new(t||a)},a.\u0275mod=m.oAB({type:a}),a.\u0275inj=m.cJS({providers:[ot,{provide:re,useExisting:ot,multi:!0},{provide:ke,useClass:Ee},{provide:le,useValue:"XSRF-TOKEN"},{provide:ne,useValue:"X-XSRF-TOKEN"}]}),a})(),s=(()=>{class a{}return a.\u0275fac=function(t){return new(t||a)},a.\u0275mod=m.oAB({type:a}),a.\u0275inj=m.cJS({providers:[Ce,{provide:E,useClass:it},Xe,{provide:S,useExisting:Xe}],imports:[r.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),a})()},94650:(Qe,he,u)=>{"use strict";u.d(he,{$8M:()=>da,$Z:()=>Vp,AFp:()=>Qg,ALo:()=>pg,AaK:()=>E,AsE:()=>Ou,B6R:()=>Ke,BQk:()=>Sc,CHM:()=>qi,CRH:()=>Mg,CZH:()=>Fc,CqO:()=>Rf,D6c:()=>jT,DdM:()=>rg,Dn7:()=>gg,EJc:()=>iT,EiD:()=>Ko,EpF:()=>Pf,F$t:()=>Nf,F4k:()=>If,FYo:()=>jh,FiY:()=>Mo,G48:()=>yT,Gf:()=>yg,GfV:()=>Zh,GkF:()=>Tu,Gpc:()=>v,Gre:()=>um,HOy:()=>Lu,Hsn:()=>kf,Ikx:()=>Nu,JOm:()=>Do,JVY:()=>dd,Jf7:()=>ep,KtG:()=>Ri,L6k:()=>ud,LAX:()=>Ih,LFG:()=>Hi,LSH:()=>Ci,Lbi:()=>XE,Lck:()=>Xv,MAs:()=>Df,MGl:()=>xc,MMx:()=>Yu,NdJ:()=>wu,O4$:()=>no,OlP:()=>ai,Oqu:()=>Ru,PXZ:()=>AT,Q2q:()=>bu,Q6J:()=>Cu,QGY:()=>yu,QP$:()=>Ws,QbO:()=>eT,Qsj:()=>j_,R0b:()=>Gr,RDi:()=>Al,Rgc:()=>Fl,SBq:()=>Tl,Sil:()=>oT,Suo:()=>wg,TTD:()=>Gi,TgZ:()=>yc,Tol:()=>Xf,Udp:()=>Du,VKq:()=>og,W1O:()=>Pg,WFA:()=>Mu,WLB:()=>ag,XFs:()=>ot,Xpm:()=>Oe,Xts:()=>ba,Y36:()=>xs,YKP:()=>Qm,YNc:()=>xf,Yjl:()=>_t,Yz7:()=>De,ZZ4:()=>_h,_Bn:()=>$m,_UZ:()=>Eu,_Vd:()=>El,_c5:()=>FT,_uU:()=>am,aQg:()=>Ah,c2e:()=>tT,cJS:()=>Pe,cg1:()=>Vu,d8E:()=>ku,dDg:()=>fT,dqk:()=>n,eBb:()=>hd,eFA:()=>c_,ekj:()=>Pu,eoX:()=>a_,evT:()=>tp,f3M:()=>Kc,g9A:()=>qg,gM2:()=>_g,h0i:()=>Gs,hGG:()=>UT,hYB:()=>xu,hij:()=>Pc,iGM:()=>Tg,ifc:()=>t,ip1:()=>$g,kEZ:()=>sg,kL8:()=>vm,kcU:()=>ns,lG2:()=>ze,lcZ:()=>fg,lnq:()=>Hu,lqb:()=>Ga,lri:()=>r_,mCW:()=>jt,n5z:()=>Ia,n_E:()=>Lc,oAB:()=>ie,oJD:()=>Sn,oxw:()=>Bf,pB0:()=>te,q3G:()=>_n,qLn:()=>yl,qOj:()=>mu,qZA:()=>wc,qzn:()=>ma,rWj:()=>o_,s9C:()=>Su,sBO:()=>wT,sIi:()=>Il,s_b:()=>Nc,soG:()=>Uc,tb:()=>Xg,tp0:()=>Yo,uIk:()=>Au,vHH:()=>$,vpe:()=>Ho,wAp:()=>In,xDo:()=>Bu,xi3:()=>mg,xp6:()=>Mp,ynx:()=>Mc,z2F:()=>jc,z3N:()=>uo,zSh:()=>gd,zs3:()=>Wa});var e=u(77579),m=u(50727),A=u(69751),w=u(56451),p=u(13099);function g(h){for(let f in h)if(h[f]===g)return f;throw Error("Could not find renamed property on target object.")}function T(h,f){for(const C in f)f.hasOwnProperty(C)&&!h.hasOwnProperty(C)&&(h[C]=f[C])}function E(h){if("string"==typeof h)return h;if(Array.isArray(h))return"["+h.map(E).join(", ")+"]";if(null==h)return""+h;if(h.overriddenName)return`${h.overriddenName}`;if(h.name)return`${h.name}`;const f=h.toString();if(null==f)return""+f;const C=f.indexOf("\n");return-1===C?f:f.substring(0,C)}function S(h,f){return null==h||""===h?null===f?"":f:null==f||""===f?h:h+" "+f}const R=g({__forward_ref__:g});function v(h){return h.__forward_ref__=v,h.toString=function(){return E(this())},h}function D(h){return F(h)?h():h}function F(h){return"function"==typeof h&&h.hasOwnProperty(R)&&h.__forward_ref__===v}class $ extends Error{constructor(f,C){super(function G(h,f){return`NG0${Math.abs(h)}${f?": "+f.trim():""}`}(f,C)),this.code=f}}function q(h){return"string"==typeof h?h:null==h?"":String(h)}function H(h,f){throw new $(-201,!1)}function B(h,f){null==h&&function N(h,f,C,M){throw new Error(`ASSERTION ERROR: ${h}`+(null==M?"":` [Expected=> ${C} ${M} ${f} <=Actual]`))}(f,h,null,"!=")}function De(h){return{token:h.token,providedIn:h.providedIn||null,factory:h.factory,value:void 0}}function Pe(h){return{providers:h.providers||[],imports:h.imports||[]}}function nt(h){return Ye(h,le)||Ye(h,ke)}function Ye(h,f){return h.hasOwnProperty(f)?h[f]:null}function Xe(h){return h&&(h.hasOwnProperty(ne)||h.hasOwnProperty(Ee))?h[ne]:null}const le=g({\u0275prov:g}),ne=g({\u0275inj:g}),ke=g({ngInjectableDef:g}),Ee=g({ngInjectorDef:g});var ot=(()=>((ot=ot||{})[ot.Default=0]="Default",ot[ot.Host=1]="Host",ot[ot.Self=2]="Self",ot[ot.SkipSelf=4]="SkipSelf",ot[ot.Optional=8]="Optional",ot))();let it;function X(h){const f=it;return it=h,f}function r(h,f,C){const M=nt(h);return M&&"root"==M.providedIn?void 0===M.value?M.value=M.factory():M.value:C&ot.Optional?null:void 0!==f?f:void H(E(h))}function _(h){return{toString:h}.toString()}var c=(()=>((c=c||{})[c.OnPush=0]="OnPush",c[c.Default=1]="Default",c))(),t=(()=>{return(h=t||(t={}))[h.Emulated=0]="Emulated",h[h.None=2]="None",h[h.ShadowDom=3]="ShadowDom",t;var h})();const n=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),d={},y=[],k=g({\u0275cmp:g}),Ie=g({\u0275dir:g}),tt=g({\u0275pipe:g}),ct=g({\u0275mod:g}),Ue=g({\u0275fac:g}),at=g({__NG_ELEMENT_ID__:g});let fe=0;function Oe(h){return _(()=>{const C=!0===h.standalone,M={},x={type:h.type,providersResolver:null,decls:h.decls,vars:h.vars,factory:null,template:h.template||null,consts:h.consts||null,ngContentSelectors:h.ngContentSelectors,hostBindings:h.hostBindings||null,hostVars:h.hostVars||0,hostAttrs:h.hostAttrs||null,contentQueries:h.contentQueries||null,declaredInputs:M,inputs:null,outputs:null,exportAs:h.exportAs||null,onPush:h.changeDetection===c.OnPush,directiveDefs:null,pipeDefs:null,standalone:C,dependencies:C&&h.dependencies||null,getStandaloneInjector:null,selectors:h.selectors||y,viewQuery:h.viewQuery||null,features:h.features||null,data:h.data||{},encapsulation:h.encapsulation||t.Emulated,id:"c"+fe++,styles:h.styles||y,_:null,setInput:null,schemas:h.schemas||null,tView:null},I=h.dependencies,U=h.features;return x.inputs=st(h.inputs,M),x.outputs=st(h.outputs),U&&U.forEach(ue=>ue(x)),x.directiveDefs=I?()=>("function"==typeof I?I():I).map(je).filter(Le):null,x.pipeDefs=I?()=>("function"==typeof I?I():I).map(rt).filter(Le):null,x})}function Ke(h,f,C){const M=h.\u0275cmp;M.directiveDefs=()=>("function"==typeof f?f():f).map(je),M.pipeDefs=()=>("function"==typeof C?C():C).map(rt)}function je(h){return me(h)||qe(h)}function Le(h){return null!==h}function ie(h){return _(()=>({type:h.type,bootstrap:h.bootstrap||y,declarations:h.declarations||y,imports:h.imports||y,exports:h.exports||y,transitiveCompileScopes:null,schemas:h.schemas||null,id:h.id||null}))}function st(h,f){if(null==h)return d;const C={};for(const M in h)if(h.hasOwnProperty(M)){let x=h[M],I=x;Array.isArray(x)&&(I=x[1],x=x[0]),C[x]=M,f&&(f[x]=I)}return C}const ze=Oe;function _t(h){return{type:h.type,name:h.name,factory:null,pure:!1!==h.pure,standalone:!0===h.standalone,onDestroy:h.type.prototype.ngOnDestroy||null}}function me(h){return h[k]||null}function qe(h){return h[Ie]||null}function rt(h){return h[tt]||null}function Mt(h,f){const C=h[ct]||null;if(!C&&!0===f)throw new Error(`Type ${E(h)} does not have '\u0275mod' property.`);return C}const W=18;function Wn(h){return Array.isArray(h)&&"object"==typeof h[1]}function ri(h){return Array.isArray(h)&&!0===h[1]}function Qi(h){return 0!=(8&h.flags)}function ji(h){return 2==(2&h.flags)}function vi(h){return 1==(1&h.flags)}function wi(h){return null!==h.template}function cr(h){return 0!=(256&h[2])}function Ni(h,f){return h.hasOwnProperty(Ue)?h[Ue]:null}class wr{constructor(f,C,M){this.previousValue=f,this.currentValue=C,this.firstChange=M}isFirstChange(){return this.firstChange}}function Gi(){return zi}function zi(h){return h.type.prototype.ngOnChanges&&(h.setInput=dt),Hr}function Hr(){const h=Je(this),f=h?.current;if(f){const C=h.previous;if(C===d)h.previous=f;else for(let M in f)C[M]=f[M];h.current=null,this.ngOnChanges(f)}}function dt(h,f,C,M){const x=Je(h)||function Et(h,f){return h[Ut]=f}(h,{previous:d,current:null}),I=x.current||(x.current={}),U=x.previous,ue=this.declaredInputs[C],we=U[ue];I[ue]=new wr(we&&we.currentValue,f,U===d),h[M]=f}Gi.ngInherit=!0;const Ut="__ngSimpleChanges__";function Je(h){return h[Ut]||null}function Xn(h){for(;Array.isArray(h);)h=h[0];return h}function rr(h,f){return Xn(f[h])}function Vi(h,f){return Xn(f[h.index])}function to(h,f){return h.data[f]}function Ki(h,f){return h[f]}function gi(h,f){const C=f[h];return Wn(C)?C:C[0]}function Ve(h){return 4==(4&h[2])}function mt(h){return 64==(64&h[2])}function bt(h,f){return null==f?null:h[f]}function Lt(h){h[W]=0}function $t(h,f){h[5]+=f;let C=h,M=h[3];for(;null!==M&&(1===f&&1===C[5]||-1===f&&0===C[5]);)M[5]+=f,C=M,M=M[3]}const Yt={lFrame:ya(null),bindingsEnabled:!0};function Mi(){return Yt.bindingsEnabled}function rn(){return Yt.lFrame.lView}function Nn(){return Yt.lFrame.tView}function qi(h){return Yt.lFrame.contextLView=h,h[8]}function Ri(h){return Yt.lFrame.contextLView=null,h}function li(){let h=Nr();for(;null!==h&&64===h.type;)h=h.parent;return h}function Nr(){return Yt.lFrame.currentTNode}function Ge(h,f){const C=Yt.lFrame;C.currentTNode=h,C.isParent=f}function Re(){return Yt.lFrame.isParent}function ye(){Yt.lFrame.isParent=!1}function ii(){const h=Yt.lFrame;let f=h.bindingRootIndex;return-1===f&&(f=h.bindingRootIndex=h.tView.bindingStartIndex),f}function Xi(){return Yt.lFrame.bindingIndex}function Yr(){return Yt.lFrame.bindingIndex++}function Sr(h){const f=Yt.lFrame,C=f.bindingIndex;return f.bindingIndex=f.bindingIndex+h,C}function Js(h,f){const C=Yt.lFrame;C.bindingIndex=C.bindingRootIndex=h,Ta(f)}function Ta(h){Yt.lFrame.currentDirectiveIndex=h}function ia(h){const f=Yt.lFrame.currentDirectiveIndex;return-1===f?null:h[f]}function ra(){return Yt.lFrame.currentQueryIndex}function Lo(h){Yt.lFrame.currentQueryIndex=h}function Bo(h){const f=h[1];return 2===f.type?f.declTNode:1===f.type?h[6]:null}function _o(h,f,C){if(C&ot.SkipSelf){let x=f,I=h;for(;!(x=x.parent,null!==x||C&ot.Host||(x=Bo(I),null===x||(I=I[15],10&x.type))););if(null===x)return!1;f=x,h=I}const M=Yt.lFrame=Xa();return M.currentTNode=f,M.lView=h,!0}function kr(h){const f=Xa(),C=h[1];Yt.lFrame=f,f.currentTNode=C.firstChild,f.lView=h,f.tView=C,f.contextLView=h,f.bindingIndex=C.bindingStartIndex,f.inI18n=!1}function Xa(){const h=Yt.lFrame,f=null===h?null:h.child;return null===f?ya(h):f}function ya(h){const f={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:h,child:null,inI18n:!1};return null!==h&&(h.child=f),f}function es(){const h=Yt.lFrame;return Yt.lFrame=h.parent,h.currentTNode=null,h.lView=null,h}const Qs=es;function Jr(){const h=es();h.isParent=!0,h.tView=null,h.selectedIndex=-1,h.contextLView=null,h.elementDepthCount=0,h.currentDirectiveIndex=-1,h.currentNamespace=null,h.bindingRootIndex=-1,h.bindingIndex=-1,h.currentQueryIndex=0}function Oi(){return Yt.lFrame.selectedIndex}function gr(h){Yt.lFrame.selectedIndex=h}function ui(){const h=Yt.lFrame;return to(h.tView,h.selectedIndex)}function no(){Yt.lFrame.currentNamespace="svg"}function ns(){!function Xs(){Yt.lFrame.currentNamespace=null}()}function oa(h,f){for(let C=f.directiveStart,M=f.directiveEnd;C=M)break}else f[we]<0&&(h[W]+=65536),(ue>11>16&&(3&h[2])===f){h[2]+=2048;try{I.call(ue)}finally{}}}else try{I.call(ue)}finally{}}class ro{constructor(f,C,M){this.factory=f,this.resolving=!1,this.canSeeViewProviders=C,this.injectImpl=M}}function Qr(h,f,C){let M=0;for(;Mf){U=I-1;break}}}for(;I>16}(h),M=f;for(;C>0;)M=M[15],C--;return M}let Fo=!0;function Co(h){const f=Fo;return Fo=h,f}let il=0;const Ar={};function ao(h,f){const C=Eo(h,f);if(-1!==C)return C;const M=f[1];M.firstCreatePass&&(h.injectorIndex=f.length,vo(M.data,h),vo(f,null),vo(M.blueprint,null));const x=ca(h,f),I=h.injectorIndex;if(ls(x)){const U=bo(x),ue=Kr(x,f),we=ue[1].data;for(let et=0;et<8;et++)f[I+et]=ue[U+et]|we[U+et]}return f[I+8]=x,I}function vo(h,f){h.push(0,0,0,0,0,0,0,0,f)}function Eo(h,f){return-1===h.injectorIndex||h.parent&&h.parent.injectorIndex===h.injectorIndex||null===f[h.injectorIndex+8]?-1:h.injectorIndex}function ca(h,f){if(h.parent&&-1!==h.parent.injectorIndex)return h.parent.injectorIndex;let C=0,M=null,x=f;for(;null!==x;){if(M=Ra(x),null===M)return-1;if(C++,x=x[15],-1!==M.injectorIndex)return M.injectorIndex|C<<16}return-1}function so(h,f,C){!function xa(h,f,C){let M;"string"==typeof C?M=C.charCodeAt(0)||0:C.hasOwnProperty(at)&&(M=C[at]),null==M&&(M=C[at]=il++);const x=255&M;f.data[h+(x>>5)]|=1<=0?255&f:rl:f}(C);if("function"==typeof I){if(!_o(f,h,M))return M&ot.Host?ds(x,0,M):Pa(f,C,M,x);try{const U=I(M);if(null!=U||M&ot.Optional)return U;H()}finally{Qs()}}else if("number"==typeof I){let U=null,ue=Eo(h,f),we=-1,et=M&ot.Host?f[16][6]:null;for((-1===ue||M&ot.SkipSelf)&&(we=-1===ue?ca(h,f):f[ue+8],-1!==we&&jo(M,!1)?(U=f[1],ue=bo(we),f=Kr(we,f)):ue=-1);-1!==ue;){const ft=f[1];if(yo(I,ue,ft.data)){const St=ps(ue,f,C,U,M,et);if(St!==Ar)return St}we=f[ue+8],-1!==we&&jo(M,f[1].data[ue+8]===et)&&yo(I,ue,f)?(U=ft,ue=bo(we),f=Kr(we,f)):ue=-1}}return x}function ps(h,f,C,M,x,I){const U=f[1],ue=U.data[h+8],ft=Si(ue,U,C,null==M?ji(ue)&&Fo:M!=U&&0!=(3&ue.type),x&ot.Host&&I===ue);return null!==ft?To(f,U,ft,ue):Ar}function Si(h,f,C,M,x){const I=h.providerIndexes,U=f.data,ue=1048575&I,we=h.directiveStart,ft=I>>20,kt=x?ue+ft:h.directiveEnd;for(let Wt=M?ue:ue+ft;Wt=we&&tn.type===C)return Wt}if(x){const Wt=U[we];if(Wt&&wi(Wt)&&Wt.type===C)return we}return null}function To(h,f,C,M){let x=h[C];const I=f.data;if(function nl(h){return h instanceof ro}(x)){const U=x;U.resolving&&function ce(h,f){const C=f?`. Dependency path: ${f.join(" > ")} > ${h}`:"";throw new $(-200,`Circular dependency in DI detected for ${h}${C}`)}(function _e(h){return"function"==typeof h?h.name||h.toString():"object"==typeof h&&null!=h&&"function"==typeof h.type?h.type.name||h.type.toString():q(h)}(I[C]));const ue=Co(U.canSeeViewProviders);U.resolving=!0;const we=U.injectImpl?X(U.injectImpl):null;_o(h,M,ot.Default);try{x=h[C]=U.factory(void 0,I,h,M),f.firstCreatePass&&C>=M.directiveStart&&function tl(h,f,C){const{ngOnChanges:M,ngOnInit:x,ngDoCheck:I}=f.type.prototype;if(M){const U=zi(f);(C.preOrderHooks||(C.preOrderHooks=[])).push(h,U),(C.preOrderCheckHooks||(C.preOrderCheckHooks=[])).push(h,U)}x&&(C.preOrderHooks||(C.preOrderHooks=[])).push(0-h,x),I&&((C.preOrderHooks||(C.preOrderHooks=[])).push(h,I),(C.preOrderCheckHooks||(C.preOrderCheckHooks=[])).push(h,I))}(C,I[C],f)}finally{null!==we&&X(we),Co(ue),U.resolving=!1,Qs()}}return x}function yo(h,f,C){return!!(C[f+(h>>5)]&1<{const f=h.prototype.constructor,C=f[Ue]||fs(f),M=Object.prototype;let x=Object.getPrototypeOf(h.prototype).constructor;for(;x&&x!==M;){const I=x[Ue]||fs(x);if(I&&I!==C)return I;x=Object.getPrototypeOf(x)}return I=>new I})}function fs(h){return F(h)?()=>{const f=fs(D(h));return f&&f()}:Ni(h)}function Ra(h){const f=h[1],C=f.type;return 2===C?f.declTNode:1===C?h[6]:null}function da(h){return function Da(h,f){if("class"===f)return h.classes;if("style"===f)return h.styles;const C=h.attrs;if(C){const M=C.length;let x=0;for(;x{const M=function Ha(h){return function(...C){if(h){const M=h(...C);for(const x in M)this[x]=M[x]}}}(f);function x(...I){if(this instanceof x)return M.apply(this,I),this;const U=new x(...I);return ue.annotation=U,ue;function ue(we,et,ft){const St=we.hasOwnProperty(Wi)?we[Wi]:Object.defineProperty(we,Wi,{value:[]})[Wi];for(;St.length<=ft;)St.push(null);return(St[ft]=St[ft]||[]).push(U),we}}return C&&(x.prototype=Object.create(C.prototype)),x.prototype.ngMetadataName=h,x.annotationCls=x,x})}class ai{constructor(f,C){this._desc=f,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof C?this.__NG_ELEMENT_ID__=C:void 0!==C&&(this.\u0275prov=De({token:this,providedIn:C.providedIn||"root",factory:C.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function br(h,f){void 0===f&&(f=h);for(let C=0;CArray.isArray(C)?ee(C,f):f(C))}function se(h,f,C){f>=h.length?h.push(C):h.splice(f,0,C)}function j(h,f){return f>=h.length-1?h.pop():h.splice(f,1)[0]}function ve(h,f){const C=[];for(let M=0;M=0?h[1|M]=C:(M=~M,function xt(h,f,C,M){let x=h.length;if(x==f)h.push(C,M);else if(1===x)h.push(M,h[0]),h[0]=C;else{for(x--,h.push(h[x-1],h[x]);x>f;)h[x]=h[x-2],x--;h[f]=C,h[f+1]=M}}(h,M,f,C)),M}function bn(h,f){const C=Pn(h,f);if(C>=0)return h[1|C]}function Pn(h,f){return function Di(h,f,C){let M=0,x=h.length>>C;for(;x!==M;){const I=M+(x-M>>1),U=h[I<f?x=I:M=I+1}return~(x<h,createScript:h=>h,createScriptURL:h=>h})}catch{}return Ua}())||void 0===f?void 0:f.createHTML(h))||h}function oc(h){var f;return(null===(f=function Cl(){if(void 0===bs&&(bs=null,n.trustedTypes))try{bs=n.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:h=>h,createScript:h=>h,createScriptURL:h=>h})}catch{}return bs}())||void 0===f?void 0:f.createHTML(h))||h}class $o{constructor(f){this.changingThisBreaksApplicationSecurity=f}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class rd extends $o{getTypeName(){return"HTML"}}class od extends $o{getTypeName(){return"Style"}}class ad extends $o{getTypeName(){return"Script"}}class sd extends $o{getTypeName(){return"URL"}}class ld extends $o{getTypeName(){return"ResourceURL"}}function uo(h){return h instanceof $o?h.changingThisBreaksApplicationSecurity:h}function ma(h,f){const C=function cd(h){return h instanceof $o&&h.getTypeName()||null}(h);if(null!=C&&C!==f){if("ResourceURL"===C&&"URL"===f)return!0;throw new Error(`Required a safe ${f}, got a ${C} (see https://g.co/ng/security#xss)`)}return C===f}function dd(h){return new rd(h)}function ud(h){return new od(h)}function hd(h){return new ad(h)}function Ih(h){return new sd(h)}function te(h){return new ld(h)}class P{constructor(f){this.inertDocumentHelper=f}getInertBodyElement(f){f=""+f;try{const C=(new window.DOMParser).parseFromString(fa(f),"text/html").body;return null===C?this.inertDocumentHelper.getInertBodyElement(f):(C.removeChild(C.firstChild),C)}catch{return null}}}class Z{constructor(f){if(this.defaultDoc=f,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const C=this.inertDocument.createElement("html");this.inertDocument.appendChild(C);const M=this.inertDocument.createElement("body");C.appendChild(M)}}getInertBodyElement(f){const C=this.inertDocument.createElement("template");if("content"in C)return C.innerHTML=fa(f),C;const M=this.inertDocument.createElement("body");return M.innerHTML=fa(f),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(M),M}stripCustomNsAttrs(f){const C=f.attributes;for(let x=C.length-1;0jt(f.trim())).join(", ")),this.buf.push(" ",U,'="',_a(we),'"')}var h;return this.buf.push(">"),!0}endElement(f){const C=f.nodeName.toLowerCase();ki.hasOwnProperty(C)&&!Vn.hasOwnProperty(C)&&(this.buf.push(""))}chars(f){this.buf.push(_a(f))}checkClobberedElement(f,C){if(C&&(f.compareDocumentPosition(C)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${f.outerHTML}`);return C}}const Ur=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ja=/([^\#-~ |!])/g;function _a(h){return h.replace(/&/g,"&").replace(Ur,function(f){return"&#"+(1024*(f.charCodeAt(0)-55296)+(f.charCodeAt(1)-56320)+65536)+";"}).replace(ja,function(f){return"&#"+f.charCodeAt(0)+";"}).replace(//g,">")}let So;function Ko(h,f){let C=null;try{So=So||function O(h){const f=new Z(h);return function He(){try{return!!(new window.DOMParser).parseFromString(fa(""),"text/html")}catch{return!1}}()?new P(f):f}(h);let M=f?String(f):"";C=So.getInertBodyElement(M);let x=5,I=M;do{if(0===x)throw new Error("Failed to sanitize html because the input is unstable");x--,M=I,I=C.innerHTML,C=So.getInertBodyElement(M)}while(M!==I);return fa((new Cs).sanitizeChildren(vs(C)||C))}finally{if(C){const M=vs(C)||C;for(;M.firstChild;)M.removeChild(M.firstChild)}}}function vs(h){return"content"in h&&function wn(h){return h.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===h.nodeName}(h)?h.content:null}var _n=(()=>((_n=_n||{})[_n.NONE=0]="NONE",_n[_n.HTML=1]="HTML",_n[_n.STYLE=2]="STYLE",_n[_n.SCRIPT=3]="SCRIPT",_n[_n.URL=4]="URL",_n[_n.RESOURCE_URL=5]="RESOURCE_URL",_n))();function Sn(h){const f=tr();return f?oc(f.sanitize(_n.HTML,h)||""):ma(h,"HTML")?oc(uo(h)):Ko(function As(){return void 0!==Fa?Fa:typeof document<"u"?document:void 0}(),q(h))}function Ci(h){const f=tr();return f?f.sanitize(_n.URL,h)||"":ma(h,"URL")?uo(h):jt(q(h))}function tr(){const h=rn();return h&&h[12]}const ba=new ai("ENVIRONMENT_INITIALIZER"),Es=new ai("INJECTOR",-1),Rh=new ai("INJECTOR_DEF_TYPES");class Oh{get(f,C=ua){if(C===ua){const M=new Error(`NullInjectorError: No provider for ${E(f)}!`);throw M.name="NullInjectorError",M}return C}}function S_(...h){return{\u0275providers:Hh(0,h)}}function Hh(h,...f){const C=[],M=new Set;let x;return ee(f,I=>{const U=I;fd(U,C,[],M)&&(x||(x=[]),x.push(U))}),void 0!==x&&Lh(x,C),C}function Lh(h,f){for(let C=0;C{f.push(I)})}}function fd(h,f,C,M){if(!(h=D(h)))return!1;let x=null,I=Xe(h);const U=!I&&me(h);if(I||U){if(U&&!U.standalone)return!1;x=h}else{const we=h.ngModule;if(I=Xe(we),!I)return!1;x=we}const ue=M.has(x);if(U){if(ue)return!1;if(M.add(x),U.dependencies){const we="function"==typeof U.dependencies?U.dependencies():U.dependencies;for(const et of we)fd(et,f,C,M)}}else{if(!I)return!1;{if(null!=I.imports&&!ue){let et;M.add(x);try{ee(I.imports,ft=>{fd(ft,f,C,M)&&(et||(et=[]),et.push(ft))})}finally{}void 0!==et&&Lh(et,f)}if(!ue){const et=Ni(x)||(()=>new x);f.push({provide:x,useFactory:et,deps:y},{provide:Rh,useValue:x,multi:!0},{provide:ba,useValue:()=>Hi(x),multi:!0})}const we=I.providers;null==we||ue||ee(we,ft=>{f.push(ft)})}}return x!==h&&void 0!==h.providers}const x_=g({provide:String,useValue:g});function md(h){return null!==h&&"object"==typeof h&&x_ in h}function Za(h){return"function"==typeof h}const gd=new ai("Set Injector scope."),lc={},P_={};let _d;function cc(){return void 0===_d&&(_d=new Oh),_d}class Ga{}class kh extends Ga{constructor(f,C,M,x){super(),this.parent=C,this.source=M,this.scopes=x,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,bd(f,U=>this.processProvider(U)),this.records.set(Es,Ts(void 0,this)),x.has("environment")&&this.records.set(Ga,Ts(void 0,this));const I=this.records.get(gd);null!=I&&"string"==typeof I.value&&this.scopes.add(I.value),this.injectorDefTypes=new Set(this.get(Rh.multi,y,ot.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const f of this._ngOnDestroyHooks)f.ngOnDestroy();for(const f of this._onDestroyHooks)f()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(f){this._onDestroyHooks.push(f)}runInContext(f){this.assertNotDestroyed();const C=ha(this),M=X(void 0);try{return f()}finally{ha(C),X(M)}}get(f,C=ua,M=ot.Default){this.assertNotDestroyed();const x=ha(this),I=X(void 0);try{if(!(M&ot.SkipSelf)){let ue=this.records.get(f);if(void 0===ue){const we=function L_(h){return"function"==typeof h||"object"==typeof h&&h instanceof ai}(f)&&nt(f);ue=we&&this.injectableDefInScope(we)?Ts(Ad(f),lc):null,this.records.set(f,ue)}if(null!=ue)return this.hydrate(f,ue)}return(M&ot.Self?cc():this.parent).get(f,C=M&ot.Optional&&C===ua?null:C)}catch(U){if("NullInjectorError"===U.name){if((U[ms]=U[ms]||[]).unshift(E(f)),x)throw U;return function Xc(h,f,C,M){const x=h[ms];throw f[$l]&&x.unshift(f[$l]),h.message=function Yi(h,f,C,M=null){h=h&&"\n"===h.charAt(0)&&"\u0275"==h.charAt(1)?h.slice(2):h;let x=E(f);if(Array.isArray(f))x=f.map(E).join(" -> ");else if("object"==typeof f){let I=[];for(let U in f)if(f.hasOwnProperty(U)){let ue=f[U];I.push(U+":"+("string"==typeof ue?JSON.stringify(ue):E(ue)))}x=`{${I.join(", ")}}`}return`${C}${M?"("+M+")":""}[${x}]: ${h.replace(Jc,"\n ")}`}("\n"+h.message,x,C,M),h.ngTokenPath=x,h[ms]=null,h}(U,f,"R3InjectorError",this.source)}throw U}finally{X(I),ha(x)}}resolveInjectorInitializers(){const f=ha(this),C=X(void 0);try{const M=this.get(ba.multi,y,ot.Self);for(const x of M)x()}finally{ha(f),X(C)}}toString(){const f=[],C=this.records;for(const M of C.keys())f.push(E(M));return`R3Injector[${f.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new $(205,!1)}processProvider(f){let C=Za(f=D(f))?f:D(f&&f.provide);const M=function R_(h){return md(h)?Ts(void 0,h.useValue):Ts(Vh(h),lc)}(f);if(Za(f)||!0!==f.multi)this.records.get(C);else{let x=this.records.get(C);x||(x=Ts(void 0,lc,!0),x.factory=()=>hl(x.multi),this.records.set(C,x)),C=f,x.multi.push(f)}this.records.set(C,M)}hydrate(f,C){return C.value===lc&&(C.value=P_,C.value=C.factory()),"object"==typeof C.value&&C.value&&function H_(h){return null!==h&&"object"==typeof h&&"function"==typeof h.ngOnDestroy}(C.value)&&this._ngOnDestroyHooks.add(C.value),C.value}injectableDefInScope(f){if(!f.providedIn)return!1;const C=D(f.providedIn);return"string"==typeof C?"any"===C||this.scopes.has(C):this.injectorDefTypes.has(C)}}function Ad(h){const f=nt(h),C=null!==f?f.factory:Ni(h);if(null!==C)return C;if(h instanceof ai)throw new $(204,!1);if(h instanceof Function)return function I_(h){const f=h.length;if(f>0)throw ve(f,"?"),new $(204,!1);const C=function Tt(h){const f=h&&(h[le]||h[ke]);if(f){const C=function J(h){if(h.hasOwnProperty("name"))return h.name;const f=(""+h).match(/^function\s*([^\s(]+)/);return null===f?"":f[1]}(h);return console.warn(`DEPRECATED: DI is instantiating a token "${C}" 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 "${C}" class.`),f}return null}(h);return null!==C?()=>C.factory(h):()=>new h}(h);throw new $(204,!1)}function Vh(h,f,C){let M;if(Za(h)){const x=D(h);return Ni(x)||Ad(x)}if(md(h))M=()=>D(h.useValue);else if(function Nh(h){return!(!h||!h.useFactory)}(h))M=()=>h.useFactory(...hl(h.deps||[]));else if(function Bh(h){return!(!h||!h.useExisting)}(h))M=()=>Hi(D(h.useExisting));else{const x=D(h&&(h.useClass||h.provide));if(!function O_(h){return!!h.deps}(h))return Ni(x)||Ad(x);M=()=>new x(...hl(h.deps))}return M}function Ts(h,f,C=!1){return{factory:h,value:f,multi:C?[]:void 0}}function B_(h){return!!h.\u0275providers}function bd(h,f){for(const C of h)Array.isArray(C)?bd(C,f):B_(C)?bd(C.\u0275providers,f):f(C)}class Fh{}class V_{resolveComponentFactory(f){throw function k_(h){const f=Error(`No component factory found for ${E(h)}. Did you add it to @NgModule.entryComponents?`);return f.ngComponent=h,f}(f)}}let El=(()=>{class h{}return h.NULL=new V_,h})();function F_(){return ys(li(),rn())}function ys(h,f){return new Tl(Vi(h,f))}let Tl=(()=>{class h{constructor(C){this.nativeElement=C}}return h.__NG_ELEMENT_ID__=F_,h})();function U_(h){return h instanceof Tl?h.nativeElement:h}class jh{}let j_=(()=>{class h{}return h.__NG_ELEMENT_ID__=()=>function Z_(){const h=rn(),C=gi(li().index,h);return(Wn(C)?C:h)[11]}(),h})(),G_=(()=>{class h{}return h.\u0275prov=De({token:h,providedIn:"root",factory:()=>null}),h})();class Zh{constructor(f){this.full=f,this.major=f.split(".")[0],this.minor=f.split(".")[1],this.patch=f.split(".").slice(2).join(".")}}const z_=new Zh("14.1.2"),Cd={};function wd(h){return h.ngOriginalError}class yl{constructor(){this._console=console}handleError(f){const C=this._findOriginalError(f);this._console.error("ERROR",f),C&&this._console.error("ORIGINAL ERROR",C)}_findOriginalError(f){let C=f&&wd(f);for(;C&&wd(C);)C=wd(C);return C||null}}const Md=new Map;let iA=0;const xd="__ngContext__";function Er(h,f){Wn(f)?(h[xd]=f[20],function oA(h){Md.set(h[20],h)}(f)):h[xd]=f}function wl(h){const f=h[xd];return"number"==typeof f?function $h(h){return Md.get(h)||null}(f):f||null}function Dd(h){const f=wl(h);return f?Wn(f)?f:f.lView:null}const fA=(()=>(typeof requestAnimationFrame<"u"&&requestAnimationFrame||setTimeout).bind(n))();function ep(h){return h.ownerDocument.defaultView}function tp(h){return h.ownerDocument}function qo(h){return h instanceof Function?h():h}var Do=(()=>((Do=Do||{})[Do.Important=1]="Important",Do[Do.DashCase=2]="DashCase",Do))();function Id(h,f){return undefined(h,f)}function Ml(h){const f=h[3];return ri(f)?f[3]:f}function Rd(h){return op(h[13])}function Od(h){return op(h[4])}function op(h){for(;null!==h&&!ri(h);)h=h[4];return h}function Ms(h,f,C,M,x){if(null!=M){let I,U=!1;ri(M)?I=M:Wn(M)&&(U=!0,M=M[0]);const ue=Xn(M);0===h&&null!==C?null==x?up(f,C,ue):za(f,C,ue,x||null,!0):1===h&&null!==C?za(f,C,ue,x||null,!0):2===h?function Ap(h,f,C){const M=dc(h,f);M&&function PA(h,f,C,M){h.removeChild(f,C,M)}(h,M,f,C)}(f,ue,U):3===h&&f.destroyNode(ue),null!=I&&function OA(h,f,C,M,x){const I=C[7];I!==Xn(C)&&Ms(f,h,M,I,x);for(let ue=10;ue0&&(h[C-1][4]=M[4]);const I=j(h,10+f);!function EA(h,f){Sl(h,f,f[11],2,null,null),f[0]=null,f[6]=null}(M[1],M);const U=I[19];null!==U&&U.detachView(I[1]),M[3]=null,M[4]=null,M[2]&=-65}return M}function lp(h,f){if(!(128&f[2])){const C=f[11];C.destroyNode&&Sl(h,f,C,3,null,null),function wA(h){let f=h[13];if(!f)return Nd(h[1],h);for(;f;){let C=null;if(Wn(f))C=f[13];else{const M=f[10];M&&(C=M)}if(!C){for(;f&&!f[4]&&f!==h;)Wn(f)&&Nd(f[1],f),f=f[3];null===f&&(f=h),Wn(f)&&Nd(f[1],f),C=f&&f[4]}f=C}}(f)}}function Nd(h,f){if(!(128&f[2])){f[2]&=-65,f[2]|=128,function DA(h,f){let C;if(null!=h&&null!=(C=h.destroyHooks))for(let M=0;M=0?M[x=et]():M[x=-et].unsubscribe(),I+=2}else{const U=M[x=C[I+1]];C[I].call(U)}if(null!==M){for(let I=x+1;II?"":x[St+1].toLowerCase();const Wt=8&M?kt:null;if(Wt&&-1!==vp(Wt,et,0)||2&M&&et!==kt){if(ho(M))return!1;U=!0}}}}else{if(!U&&!ho(M)&&!ho(we))return!1;if(U&&ho(we))continue;U=!1,M=we|1&M}}return ho(M)||U}function ho(h){return 0==(1&h)}function kA(h,f,C,M){if(null===f)return-1;let x=0;if(M||!C){let I=!1;for(;x-1)for(C++;C0?'="'+ue+'"':"")+"]"}else 8&M?x+="."+U:4&M&&(x+=" "+U);else""!==x&&!ho(U)&&(f+=wp(I,x),x=""),M=U,I=I||!ho(M);C++}return""!==x&&(f+=wp(I,x)),f}const Un={};function Mp(h){Sp(Nn(),rn(),Oi()+h,!1)}function Sp(h,f,C,M){if(!M)if(3==(3&f[2])){const I=h.preOrderCheckHooks;null!==I&&io(f,I,C)}else{const I=h.preOrderHooks;null!==I&&No(f,I,0,C)}gr(C)}function Ip(h,f=null,C=null,M){const x=Rp(h,f,C,M);return x.resolveInjectorInitializers(),x}function Rp(h,f=null,C=null,M,x=new Set){const I=[C||y,S_(h)];return M=M||("object"==typeof h?void 0:E(h)),new kh(I,f||cc(),M||null,x)}let Wa=(()=>{class h{static create(C,M){if(Array.isArray(C))return Ip({name:""},M,C,"");{var x;const I=null!==(x=C.name)&&void 0!==x?x:"";return Ip({name:I},C.parent,C.providers,I)}}}return h.THROW_IF_NOT_FOUND=ua,h.NULL=new Oh,h.\u0275prov=De({token:h,providedIn:"any",factory:()=>Hi(Es)}),h.__NG_ELEMENT_ID__=-1,h})();function xs(h,f=ot.Default){const C=rn();return null===C?Hi(h,f):us(li(),C,D(h),f)}function Vp(){throw new Error("invalid")}function fc(h,f){return h<<17|f<<2}function po(h){return h>>17&32767}function Wd(h){return 2|h}function Xo(h){return(131068&h)>>2}function Yd(h,f){return-131069&h|f<<2}function Jd(h){return 1|h}function Qp(h,f){const C=h.contentQueries;if(null!==C)for(let M=0;M22&&Sp(h,f,22,!1),C(M,x)}finally{gr(I)}}function qp(h,f,C){if(Qi(f)){const x=f.directiveEnd;for(let I=f.directiveStart;I0;){const C=h[--f];if("number"==typeof C&&C<0)return C}return 0})(ue)!=we&&ue.push(we),ue.push(M,x,U)}}function sf(h,f){null!==h.hostBindings&&h.hostBindings(1,f)}function lf(h,f){f.flags|=2,(h.components||(h.components=[])).push(f.index)}function Lb(h,f,C){if(C){if(f.exportAs)for(let M=0;M0&&cu(C)}}function cu(h){for(let M=Rd(h);null!==M;M=Od(M))for(let x=10;x0&&cu(I)}const C=h[1].components;if(null!==C)for(let M=0;M0&&cu(x)}}function jb(h,f){const C=gi(f,h),M=C[1];(function Zb(h,f){for(let C=f.length;CPromise.resolve(null))();function ff(h){return h[7]||(h[7]=[])}function mf(h){return h.cleanup||(h.cleanup=[])}function gf(h,f,C){return(null===h||wi(h))&&(C=function ir(h){for(;Array.isArray(h);){if("object"==typeof h[1])return h;h=h[0]}return null}(C[f.index])),C[11]}function _f(h,f){const C=h[9],M=C?C.get(yl,null):null;M&&M.handleError(f)}function pu(h,f,C,M,x){for(let I=0;I-1&&(Bd(f,M),j(C,M))}this._attachedToViewContainer=!1}lp(this._lView[1],this._lView)}onDestroy(f){ef(this._lView[1],this._lView,null,f)}markForCheck(){du(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){!function uu(h,f,C){const M=f[10];M.begin&&M.begin();try{xl(h,f,h.template,C)}catch(x){throw _f(f,x),x}finally{M.end&&M.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new $(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function yA(h,f){Sl(h,f,f[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(f){if(this._attachedToViewContainer)throw new $(902,!1);this._appRef=f}}class Wb extends Dl{constructor(f){super(f),this._view=f}detectChanges(){pf(this._view)}checkNoChanges(){}get context(){return null}}class fu extends El{constructor(f){super(),this.ngModule=f}resolveComponentFactory(f){const C=me(f);return new Pl(C,this.ngModule)}}function Af(h){const f=[];for(let C in h)h.hasOwnProperty(C)&&f.push({propName:h[C],templateName:C});return f}class Jb{constructor(f,C){this.injector=f,this.parentInjector=C}get(f,C,M){const x=this.injector.get(f,Cd,M);return x!==Cd||C===Cd?x:this.parentInjector.get(f,C,M)}}class Pl extends Fh{constructor(f,C){super(),this.componentDef=f,this.ngModule=C,this.componentType=f.type,this.selector=function GA(h){return h.map(ZA).join(",")}(f.selectors),this.ngContentSelectors=f.ngContentSelectors?f.ngContentSelectors:[],this.isBoundToModule=!!C}get inputs(){return Af(this.componentDef.inputs)}get outputs(){return Af(this.componentDef.outputs)}create(f,C,M,x){var I;let U=(x=x||this.ngModule)instanceof Ga?x:null===(I=x)||void 0===I?void 0:I.injector;U&&null!==this.componentDef.getStandaloneInjector&&(U=this.componentDef.getStandaloneInjector(U)||U);const ue=U?new Jb(f,U):f,we=ue.get(jh,null);if(null===we)throw new $(407,!1);const et=ue.get(G_,null),ft=we.createRenderer(null,this.componentDef),St=this.componentDef.selectors[0][0]||"div",kt=M?function wb(h,f,C){return h.selectRootElement(f,C===t.ShadowDom)}(ft,M,this.componentDef.encapsulation):Ld(we.createRenderer(null,this.componentDef),St,function Yb(h){const f=h.toLowerCase();return"svg"===f?"svg":"math"===f?"math":null}(St)),Wt=this.componentDef.onPush?288:272,tn=function Xb(h,f){return{components:[],scheduler:h||fA,clean:zb,playerHandler:f||null,flags:0}}(),ln=au(0,null,null,1,0,null,null,null,null,null),fn=_c(null,ln,tn,Wt,null,null,we,ft,et,ue,null);let yn,xn;kr(fn);try{const sn=function Kb(h,f,C,M,x,I){const U=C[1];C[22]=h;const we=Ds(U,22,2,"#host",null),et=we.mergedAttrs=f.hostAttrs;null!==et&&(Cc(we,et,!0),null!==h&&(Qr(x,h,et),null!==we.classes&&Ud(x,h,we.classes),null!==we.styles&&Cp(x,h,we.styles)));const ft=M.createRenderer(h,f),St=_c(C,Xp(f),null,f.onPush?32:16,C[22],we,M,ft,I||null,null,null);return U.firstCreatePass&&(so(ao(we,C),U,f.type),lf(U,we),cf(we,C.length,1)),bc(C,St),C[22]=St}(kt,this.componentDef,fn,we,ft);if(kt)if(M)Qr(ft,kt,["ng-version",z_.full]);else{const{attrs:Rn,classes:jn}=function zA(h){const f=[],C=[];let M=1,x=2;for(;M0&&Ud(ft,kt,jn.join(" "))}if(xn=to(ln,22),void 0!==C){const Rn=xn.projection=[];for(let jn=0;jn=0;M--){const x=h[M];x.hostVars=f+=x.hostVars,x.hostAttrs=sa(x.hostAttrs,C=sa(C,x.hostAttrs))}}(M)}function gu(h){return h===d?{}:h===y?[]:h}function nC(h,f){const C=h.viewQuery;h.viewQuery=C?(M,x)=>{f(M,x),C(M,x)}:f}function iC(h,f){const C=h.contentQueries;h.contentQueries=C?(M,x,I)=>{f(M,x,I),C(M,x,I)}:f}function rC(h,f){const C=h.hostBindings;h.hostBindings=C?(M,x)=>{f(M,x),C(M,x)}:f}let Ec=null;function Ya(){if(!Ec){const h=n.Symbol;if(h&&h.iterator)Ec=h.iterator;else{const f=Object.getOwnPropertyNames(Map.prototype);for(let C=0;Cue(Xn(jn[M.index])):M.index;let Rn=null;if(!ue&&we&&(Rn=function _C(h,f,C,M){const x=h.cleanup;if(null!=x)for(let I=0;Iwe?ue[we]:null}"string"==typeof U&&(I+=2)}return null}(h,f,x,M.index)),null!==Rn)(Rn.__ngLastListenerFn__||Rn).__ngNextListenerFn__=I,Rn.__ngLastListenerFn__=I,Wt=!1;else{I=Lf(M,f,St,I,!1);const jn=C.listen(yn,x,I);kt.push(I,jn),ft&&ft.push(x,sn,xn,xn+1)}}else I=Lf(M,f,St,I,!1);const tn=M.outputs;let ln;if(Wt&&null!==tn&&(ln=tn[x])){const fn=ln.length;if(fn)for(let yn=0;yn0;)f=f[15],h--;return f}(h,Yt.lFrame.contextLView))[8]}(h)}function AC(h,f){let C=null;const M=function VA(h){const f=h.attrs;if(null!=f){const C=f.indexOf(5);if(0==(1&C))return f[C+1]}return null}(h);for(let x=0;x=0}const $i={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Yf(h){return h.substring($i.key,$i.keyEnd)}function Jf(h,f){const C=$i.textEnd;return C===f?-1:(f=$i.keyEnd=function wC(h,f,C){for(;f32;)f++;return f}(h,$i.key=f,C),Fs(h,f,C))}function Fs(h,f,C){for(;f=0;C=Jf(f,C))mn(h,Yf(f),!0)}function fo(h,f,C,M){const x=rn(),I=Nn(),U=Sr(2);I.firstUpdatePass&&tm(I,h,U,M),f!==Un&&Tr(x,U,f)&&im(I,I.data[Oi()],x,x[11],h,x[U+1]=function LC(h,f){return null==h||("string"==typeof f?h+=f:"object"==typeof h&&(h=E(uo(h)))),h}(f,C),M,U)}function mo(h,f,C,M){const x=Nn(),I=Sr(2);x.firstUpdatePass&&tm(x,null,I,M);const U=rn();if(C!==Un&&Tr(U,I,C)){const ue=x.data[Oi()];if(om(ue,M)&&!em(x,I)){let we=M?ue.classesWithoutHost:ue.stylesWithoutHost;null!==we&&(C=S(we,C||"")),vu(x,ue,U,C,M)}else!function HC(h,f,C,M,x,I,U,ue){x===Un&&(x=y);let we=0,et=0,ft=0=h.expandoStartIndex}function tm(h,f,C,M){const x=h.data;if(null===x[C+1]){const I=x[Oi()],U=em(h,C);om(I,M)&&null===f&&!U&&(f=!1),f=function DC(h,f,C,M){const x=ia(h);let I=M?f.residualClasses:f.residualStyles;if(null===x)0===(M?f.classBindings:f.styleBindings)&&(C=Ol(C=Iu(null,h,f,C,M),f.attrs,M),I=null);else{const U=f.directiveStylingLast;if(-1===U||h[U]!==x)if(C=Iu(x,h,f,C,M),null===I){let we=function PC(h,f,C){const M=C?f.classBindings:f.styleBindings;if(0!==Xo(M))return h[po(M)]}(h,f,M);void 0!==we&&Array.isArray(we)&&(we=Iu(null,h,f,we[1],M),we=Ol(we,f.attrs,M),function IC(h,f,C,M){h[po(C?f.classBindings:f.styleBindings)]=M}(h,f,M,we))}else I=function RC(h,f,C){let M;const x=f.directiveEnd;for(let I=1+f.directiveStylingLast;I0)&&(et=!0)}else ft=C;if(x)if(0!==we){const kt=po(h[ue+1]);h[M+1]=fc(kt,ue),0!==kt&&(h[kt+1]=Yd(h[kt+1],M)),h[ue+1]=function db(h,f){return 131071&h|f<<17}(h[ue+1],M)}else h[M+1]=fc(ue,0),0!==ue&&(h[ue+1]=Yd(h[ue+1],M)),ue=M;else h[M+1]=fc(we,0),0===ue?ue=M:h[we+1]=Yd(h[we+1],M),we=M;et&&(h[M+1]=Wd(h[M+1])),Wf(h,ft,M,!0),Wf(h,ft,M,!1),function CC(h,f,C,M,x){const I=x?h.residualClasses:h.residualStyles;null!=I&&"string"==typeof f&&Pn(I,f)>=0&&(C[M+1]=Jd(C[M+1]))}(f,ft,h,M,I),U=fc(ue,we),I?f.classBindings=U:f.styleBindings=U}(x,I,f,C,U,M)}}function Iu(h,f,C,M,x){let I=null;const U=C.directiveEnd;let ue=C.directiveStylingLast;for(-1===ue?ue=C.directiveStart:ue++;ue0;){const we=h[x],et=Array.isArray(we),ft=et?we[1]:we,St=null===ft;let kt=C[x+1];kt===Un&&(kt=St?y:void 0);let Wt=St?bn(kt,M):ft===M?kt:void 0;if(et&&!Dc(Wt)&&(Wt=bn(we,M)),Dc(Wt)&&(ue=Wt,U))return ue;const tn=h[x+1];x=U?po(tn):Xo(tn)}if(null!==f){let we=I?f.residualClasses:f.residualStyles;null!=we&&(ue=bn(we,M))}return ue}function Dc(h){return void 0!==h}function om(h,f){return 0!=(h.flags&(f?16:32))}function am(h,f=""){const C=rn(),M=Nn(),x=h+22,I=M.firstCreatePass?Ds(M,x,1,f,null):M.data[x],U=C[x]=function Hd(h,f){return h.createText(f)}(C[11],f);uc(M,C,U,I),Ge(I,!1)}function Ru(h){return Pc("",h,""),Ru}function Pc(h,f,C){const M=rn(),x=Rs(M,h,f,C);return x!==Un&&ea(M,Oi(),x),Pc}function Ou(h,f,C,M,x){const I=rn(),U=Os(I,h,f,C,M,x);return U!==Un&&ea(I,Oi(),U),Ou}function Hu(h,f,C,M,x,I,U){const ue=rn(),we=function Hs(h,f,C,M,x,I,U,ue){const et=Tc(h,Xi(),C,x,U);return Sr(3),et?f+q(C)+M+q(x)+I+q(U)+ue:Un}(ue,h,f,C,M,x,I,U);return we!==Un&&ea(ue,Oi(),we),Hu}function Lu(h,f,C,M,x,I,U,ue,we){const et=rn(),ft=function Ls(h,f,C,M,x,I,U,ue,we,et){const St=Xr(h,Xi(),C,x,U,we);return Sr(4),St?f+q(C)+M+q(x)+I+q(U)+ue+q(we)+et:Un}(et,h,f,C,M,x,I,U,ue,we);return ft!==Un&&ea(et,Oi(),ft),Lu}function Bu(h,f,C,M,x,I,U,ue,we,et,ft){const St=rn(),kt=function Bs(h,f,C,M,x,I,U,ue,we,et,ft,St){const kt=Xi();let Wt=Xr(h,kt,C,x,U,we);return Wt=Tr(h,kt+4,ft)||Wt,Sr(5),Wt?f+q(C)+M+q(x)+I+q(U)+ue+q(we)+et+q(ft)+St:Un}(St,h,f,C,M,x,I,U,ue,we,et,ft);return kt!==Un&&ea(St,Oi(),kt),Bu}function um(h,f,C){mo(mn,Oo,Rs(rn(),h,f,C),!0)}function Nu(h,f,C){const M=rn();return Tr(M,Yr(),f)&&Zr(Nn(),ui(),M,h,f,M[11],C,!0),Nu}function ku(h,f,C){const M=rn();if(Tr(M,Yr(),f)){const I=Nn(),U=ui();Zr(I,U,M,h,f,gf(ia(I.data),U,M),C,!0)}return ku}const $a=void 0;var ev=["en",[["a","p"],["AM","PM"],$a],[["AM","PM"],$a,$a],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],$a,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],$a,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",$a,"{1} 'at' {0}",$a],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function XC(h){const C=Math.floor(Math.abs(h)),M=h.toString().replace(/^[^.]*\.?/,"").length;return 1===C&&0===M?1:5}];let Us={};function Vu(h){const f=function tv(h){return h.toLowerCase().replace(/_/g,"-")}(h);let C=Em(f);if(C)return C;const M=f.split("-")[0];if(C=Em(M),C)return C;if("en"===M)return ev;throw new $(701,!1)}function vm(h){return Vu(h)[In.PluralCase]}function Em(h){return h in Us||(Us[h]=n.ng&&n.ng.common&&n.ng.common.locales&&n.ng.common.locales[h]),Us[h]}var In=(()=>((In=In||{})[In.LocaleId=0]="LocaleId",In[In.DayPeriodsFormat=1]="DayPeriodsFormat",In[In.DayPeriodsStandalone=2]="DayPeriodsStandalone",In[In.DaysFormat=3]="DaysFormat",In[In.DaysStandalone=4]="DaysStandalone",In[In.MonthsFormat=5]="MonthsFormat",In[In.MonthsStandalone=6]="MonthsStandalone",In[In.Eras=7]="Eras",In[In.FirstDayOfWeek=8]="FirstDayOfWeek",In[In.WeekendRange=9]="WeekendRange",In[In.DateFormat=10]="DateFormat",In[In.TimeFormat=11]="TimeFormat",In[In.DateTimeFormat=12]="DateTimeFormat",In[In.NumberSymbols=13]="NumberSymbols",In[In.NumberFormats=14]="NumberFormats",In[In.CurrencyCode=15]="CurrencyCode",In[In.CurrencySymbol=16]="CurrencySymbol",In[In.CurrencyName=17]="CurrencyName",In[In.Currencies=18]="Currencies",In[In.Directionality=19]="Directionality",In[In.PluralCase=20]="PluralCase",In[In.ExtraData=21]="ExtraData",In))();const js="en-US";let Tm=js;function ju(h,f,C,M,x){if(h=D(h),Array.isArray(h))for(let I=0;I>20;if(Za(h)||!h.multi){const Wt=new ro(we,x,xs),tn=Gu(ue,f,x?ft:ft+kt,St);-1===tn?(so(ao(et,U),I,ue),Zu(I,h,f.length),f.push(ue),et.directiveStart++,et.directiveEnd++,x&&(et.providerIndexes+=1048576),C.push(Wt),U.push(Wt)):(C[tn]=Wt,U[tn]=Wt)}else{const Wt=Gu(ue,f,ft+kt,St),tn=Gu(ue,f,ft,ft+kt),ln=Wt>=0&&C[Wt],fn=tn>=0&&C[tn];if(x&&!fn||!x&&!ln){so(ao(et,U),I,ue);const yn=function qv(h,f,C,M,x){const I=new ro(h,C,xs);return I.multi=[],I.index=f,I.componentProviders=0,Jm(I,x,M&&!C),I}(x?Kv:Qv,C.length,x,M,we);!x&&fn&&(C[tn].providerFactory=yn),Zu(I,h,f.length,0),f.push(ue),et.directiveStart++,et.directiveEnd++,x&&(et.providerIndexes+=1048576),C.push(yn),U.push(yn)}else Zu(I,h,Wt>-1?Wt:tn,Jm(C[x?tn:Wt],we,!x&&M));!x&&M&&fn&&C[tn].componentProviders++}}}function Zu(h,f,C,M){const x=Za(f),I=function D_(h){return!!h.useClass}(f);if(x||I){const we=(I?D(f.useClass):f).prototype.ngOnDestroy;if(we){const et=h.destroyHooks||(h.destroyHooks=[]);if(!x&&f.multi){const ft=et.indexOf(C);-1===ft?et.push(C,[M,we]):et[ft+1].push(M,we)}else et.push(C,we)}}}function Jm(h,f,C){return C&&h.componentProviders++,h.multi.push(f)-1}function Gu(h,f,C,M){for(let x=C;x{C.providersResolver=(M,x)=>function $v(h,f,C){const M=Nn();if(M.firstCreatePass){const x=wi(h);ju(C,M.data,M.blueprint,x,!0),ju(f,M.data,M.blueprint,x,!1)}}(M,x?x(h):h,f)}}class Gs{}class Qm{}function Xv(h,f){return new Km(h,f??null)}class Km extends Gs{constructor(f,C){super(),this._parent=C,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new fu(this);const M=Mt(f);this._bootstrapComponents=qo(M.bootstrap),this._r3Injector=Rp(f,C,[{provide:Gs,useValue:this},{provide:El,useValue:this.componentFactoryResolver}],E(f),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(f)}get injector(){return this._r3Injector}destroy(){const f=this._r3Injector;!f.destroyed&&f.destroy(),this.destroyCbs.forEach(C=>C()),this.destroyCbs=null}onDestroy(f){this.destroyCbs.push(f)}}class Wu extends Qm{constructor(f){super(),this.moduleType=f}create(f){return new Km(this.moduleType,f)}}class eE extends Gs{constructor(f,C,M){super(),this.componentFactoryResolver=new fu(this),this.instance=null;const x=new kh([...f,{provide:Gs,useValue:this},{provide:El,useValue:this.componentFactoryResolver}],C||cc(),M,new Set(["environment"]));this.injector=x,x.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(f){this.injector.onDestroy(f)}}function Yu(h,f,C=null){return new eE(h,f,C).injector}function rg(h,f,C){const M=ii()+h,x=rn();return x[M]===Un?Io(x,M,C?f.call(C):f()):function Rl(h,f){return h[f]}(x,M)}function og(h,f,C,M){return lg(rn(),ii(),h,f,C,M)}function ag(h,f,C,M,x){return cg(rn(),ii(),h,f,C,M,x)}function sg(h,f,C,M,x,I){return dg(rn(),ii(),h,f,C,M,x,I)}function kl(h,f){const C=h[f];return C===Un?void 0:C}function lg(h,f,C,M,x,I){const U=f+C;return Tr(h,U,x)?Io(h,U+1,I?M.call(I,x):M(x)):kl(h,U+1)}function cg(h,f,C,M,x,I,U){const ue=f+C;return Ja(h,ue,x,I)?Io(h,ue+2,U?M.call(U,x,I):M(x,I)):kl(h,ue+2)}function dg(h,f,C,M,x,I,U,ue){const we=f+C;return Tc(h,we,x,I,U)?Io(h,we+3,ue?M.call(ue,x,I,U):M(x,I,U)):kl(h,we+3)}function pg(h,f){const C=Nn();let M;const x=h+22;C.firstCreatePass?(M=function _E(h,f){if(f)for(let C=f.length-1;C>=0;C--){const M=f[C];if(h===M.name)return M}}(f,C.pipeRegistry),C.data[x]=M,M.onDestroy&&(C.destroyHooks||(C.destroyHooks=[])).push(x,M.onDestroy)):M=C.data[x];const I=M.factory||(M.factory=Ni(M.type)),U=X(xs);try{const ue=Co(!1),we=I();return Co(ue),function fC(h,f,C,M){C>=h.data.length&&(h.data[C]=null,h.blueprint[C]=null),f[C]=M}(C,rn(),x,we),we}finally{X(U)}}function fg(h,f,C){const M=h+22,x=rn(),I=Ki(x,M);return Vl(x,M)?lg(x,ii(),f,I.transform,C,I):I.transform(C)}function mg(h,f,C,M){const x=h+22,I=rn(),U=Ki(I,x);return Vl(I,x)?cg(I,ii(),f,U.transform,C,M,U):U.transform(C,M)}function gg(h,f,C,M,x){const I=h+22,U=rn(),ue=Ki(U,I);return Vl(U,I)?dg(U,ii(),f,ue.transform,C,M,x,ue):ue.transform(C,M,x)}function _g(h,f,C,M,x,I){const U=h+22,ue=rn(),we=Ki(ue,U);return Vl(ue,U)?function ug(h,f,C,M,x,I,U,ue,we){const et=f+C;return Xr(h,et,x,I,U,ue)?Io(h,et+4,we?M.call(we,x,I,U,ue):M(x,I,U,ue)):kl(h,et+4)}(ue,ii(),f,we.transform,C,M,x,I,we):we.transform(C,M,x,I)}function Vl(h,f){return h[1].data[f].pure}function $u(h){return f=>{setTimeout(h,void 0,f)}}const Ho=class bE extends e.x{constructor(f=!1){super(),this.__isAsync=f}emit(f){super.next(f)}subscribe(f,C,M){let x=f,I=C||(()=>null),U=M;if(f&&"object"==typeof f){var ue,we,et;const St=f;x=null===(ue=St.next)||void 0===ue?void 0:ue.bind(St),I=null===(we=St.error)||void 0===we?void 0:we.bind(St),U=null===(et=St.complete)||void 0===et?void 0:et.bind(St)}this.__isAsync&&(I=$u(I),x&&(x=$u(x)),U&&(U=$u(U)));const ft=super.subscribe({next:x,error:I,complete:U});return f instanceof m.w0&&f.add(ft),ft}};function CE(){return this._results[Ya()]()}class Lc{constructor(f=!1){this._emitDistinctChangesOnly=f,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const C=Ya(),M=Lc.prototype;M[C]||(M[C]=CE)}get changes(){return this._changes||(this._changes=new Ho)}get(f){return this._results[f]}map(f){return this._results.map(f)}filter(f){return this._results.filter(f)}find(f){return this._results.find(f)}reduce(f,C){return this._results.reduce(f,C)}forEach(f){this._results.forEach(f)}some(f){return this._results.some(f)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(f,C){const M=this;M.dirty=!1;const x=br(f);(this._changesDetected=!function dl(h,f,C){if(h.length!==f.length)return!1;for(let M=0;M{class h{}return h.__NG_ELEMENT_ID__=TE,h})();const vE=Fl,EE=class extends vE{constructor(f,C,M){super(),this._declarationLView=f,this._declarationTContainer=C,this.elementRef=M}createEmbeddedView(f,C){const M=this._declarationTContainer.tViews,x=_c(this._declarationLView,M,f,16,null,M.declTNode,null,null,null,null,C||null);x[17]=this._declarationLView[this._declarationTContainer.index];const U=this._declarationLView[19];return null!==U&&(x[19]=U.createEmbeddedView(M)),Ac(M,x,f),new Dl(x)}};function TE(){return Bc(li(),rn())}function Bc(h,f){return 4&h.type?new EE(f,h,ys(h,f)):null}let Nc=(()=>{class h{}return h.__NG_ELEMENT_ID__=yE,h})();function yE(){return Cg(li(),rn())}const wE=Nc,Ag=class extends wE{constructor(f,C,M){super(),this._lContainer=f,this._hostTNode=C,this._hostLView=M}get element(){return ys(this._hostTNode,this._hostLView)}get injector(){return new lo(this._hostTNode,this._hostLView)}get parentInjector(){const f=ca(this._hostTNode,this._hostLView);if(ls(f)){const C=Kr(f,this._hostLView),M=bo(f);return new lo(C[1].data[M+8],C)}return new lo(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(f){const C=bg(this._lContainer);return null!==C&&C[f]||null}get length(){return this._lContainer.length-10}createEmbeddedView(f,C,M){let x,I;"number"==typeof M?x=M:null!=M&&(x=M.index,I=M.injector);const U=f.createEmbeddedView(C||{},I);return this.insert(U,x),U}createComponent(f,C,M,x,I){const U=f&&!function Wo(h){return"function"==typeof h}(f);let ue;if(U)ue=C;else{const St=C||{};ue=St.index,M=St.injector,x=St.projectableNodes,I=St.environmentInjector||St.ngModuleRef}const we=U?f:new Pl(me(f)),et=M||this.parentInjector;if(!I&&null==we.ngModule){const kt=(U?et:this.parentInjector).get(Ga,null);kt&&(I=kt)}const ft=we.create(et,x,void 0,I);return this.insert(ft.hostView,ue),ft}insert(f,C){const M=f._lView,x=M[1];if(function Fe(h){return ri(h[3])}(M)){const ft=this.indexOf(f);if(-1!==ft)this.detach(ft);else{const St=M[3],kt=new Ag(St,St[6],St[3]);kt.detach(kt.indexOf(f))}}const I=this._adjustIndex(C),U=this._lContainer;!function MA(h,f,C,M){const x=10+M,I=C.length;M>0&&(C[x-1][4]=f),M0)M.push(U[ue/2]);else{const et=I[ue+1],ft=f[-we];for(let St=10;St{class h{constructor(C){this.appInits=C,this.resolve=Vc,this.reject=Vc,this.initialized=!1,this.done=!1,this.donePromise=new Promise((M,x)=>{this.resolve=M,this.reject=x})}runInitializers(){if(this.initialized)return;const C=[],M=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let x=0;x{I.subscribe({complete:ue,error:we})});C.push(U)}}Promise.all(C).then(()=>{M()}).catch(x=>{this.reject(x)}),0===C.length&&M(),this.initialized=!0}}return h.\u0275fac=function(C){return new(C||h)(Hi($g,8))},h.\u0275prov=De({token:h,factory:h.\u0275fac,providedIn:"root"}),h})();const Qg=new ai("AppId",{providedIn:"root",factory:function Kg(){return`${ah()}${ah()}${ah()}`}});function ah(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const qg=new ai("Platform Initializer"),XE=new ai("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Xg=new ai("appBootstrapListener"),eT=new ai("AnimationModuleType");let tT=(()=>{class h{log(C){console.log(C)}warn(C){console.warn(C)}}return h.\u0275fac=function(C){return new(C||h)},h.\u0275prov=De({token:h,factory:h.\u0275fac,providedIn:"platform"}),h})();const Uc=new ai("LocaleId",{providedIn:"root",factory:()=>Kc(Uc,ot.Optional|ot.SkipSelf)||function nT(){return typeof $localize<"u"&&$localize.locale||js}()}),iT=new ai("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class rT{constructor(f,C){this.ngModuleFactory=f,this.componentFactories=C}}let oT=(()=>{class h{compileModuleSync(C){return new Wu(C)}compileModuleAsync(C){return Promise.resolve(this.compileModuleSync(C))}compileModuleAndAllComponentsSync(C){const M=this.compileModuleSync(C),I=qo(Mt(C).declarations).reduce((U,ue)=>{const we=me(ue);return we&&U.push(new Pl(we)),U},[]);return new rT(M,I)}compileModuleAndAllComponentsAsync(C){return Promise.resolve(this.compileModuleAndAllComponentsSync(C))}clearCache(){}clearCacheFor(C){}getModuleId(C){}}return h.\u0275fac=function(C){return new(C||h)},h.\u0275prov=De({token:h,factory:h.\u0275fac,providedIn:"root"}),h})();const lT=(()=>Promise.resolve(0))();function sh(h){typeof Zone>"u"?lT.then(()=>{h&&h.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",h)}class Gr{constructor({enableLongStackTrace:f=!1,shouldCoalesceEventChangeDetection:C=!1,shouldCoalesceRunChangeDetection:M=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ho(!1),this.onMicrotaskEmpty=new Ho(!1),this.onStable=new Ho(!1),this.onError=new Ho(!1),typeof Zone>"u")throw new $(908,!1);Zone.assertZonePatched();const x=this;if(x._nesting=0,x._outer=x._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const I=Zone.AsyncStackTaggingZoneSpec;x._inner=x._inner.fork(new I("Angular"))}Zone.TaskTrackingZoneSpec&&(x._inner=x._inner.fork(new Zone.TaskTrackingZoneSpec)),f&&Zone.longStackTraceZoneSpec&&(x._inner=x._inner.fork(Zone.longStackTraceZoneSpec)),x.shouldCoalesceEventChangeDetection=!M&&C,x.shouldCoalesceRunChangeDetection=M,x.lastRequestAnimationFrameId=-1,x.nativeRequestAnimationFrame=function cT(){let h=n.requestAnimationFrame,f=n.cancelAnimationFrame;if(typeof Zone<"u"&&h&&f){const C=h[Zone.__symbol__("OriginalDelegate")];C&&(h=C);const M=f[Zone.__symbol__("OriginalDelegate")];M&&(f=M)}return{nativeRequestAnimationFrame:h,nativeCancelAnimationFrame:f}}().nativeRequestAnimationFrame,function hT(h){const f=()=>{!function uT(h){h.isCheckStableRunning||-1!==h.lastRequestAnimationFrameId||(h.lastRequestAnimationFrameId=h.nativeRequestAnimationFrame.call(n,()=>{h.fakeTopEventTask||(h.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{h.lastRequestAnimationFrameId=-1,ch(h),h.isCheckStableRunning=!0,lh(h),h.isCheckStableRunning=!1},void 0,()=>{},()=>{})),h.fakeTopEventTask.invoke()}),ch(h))}(h)};h._inner=h._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(C,M,x,I,U,ue)=>{try{return n_(h),C.invokeTask(x,I,U,ue)}finally{(h.shouldCoalesceEventChangeDetection&&"eventTask"===I.type||h.shouldCoalesceRunChangeDetection)&&f(),i_(h)}},onInvoke:(C,M,x,I,U,ue,we)=>{try{return n_(h),C.invoke(x,I,U,ue,we)}finally{h.shouldCoalesceRunChangeDetection&&f(),i_(h)}},onHasTask:(C,M,x,I)=>{C.hasTask(x,I),M===x&&("microTask"==I.change?(h._hasPendingMicrotasks=I.microTask,ch(h),lh(h)):"macroTask"==I.change&&(h.hasPendingMacrotasks=I.macroTask))},onHandleError:(C,M,x,I)=>(C.handleError(x,I),h.runOutsideAngular(()=>h.onError.emit(I)),!1)})}(x)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Gr.isInAngularZone())throw new $(909,!1)}static assertNotInAngularZone(){if(Gr.isInAngularZone())throw new $(909,!1)}run(f,C,M){return this._inner.run(f,C,M)}runTask(f,C,M,x){const I=this._inner,U=I.scheduleEventTask("NgZoneEvent: "+x,f,dT,Vc,Vc);try{return I.runTask(U,C,M)}finally{I.cancelTask(U)}}runGuarded(f,C,M){return this._inner.runGuarded(f,C,M)}runOutsideAngular(f){return this._outer.run(f)}}const dT={};function lh(h){if(0==h._nesting&&!h.hasPendingMicrotasks&&!h.isStable)try{h._nesting++,h.onMicrotaskEmpty.emit(null)}finally{if(h._nesting--,!h.hasPendingMicrotasks)try{h.runOutsideAngular(()=>h.onStable.emit(null))}finally{h.isStable=!0}}}function ch(h){h.hasPendingMicrotasks=!!(h._hasPendingMicrotasks||(h.shouldCoalesceEventChangeDetection||h.shouldCoalesceRunChangeDetection)&&-1!==h.lastRequestAnimationFrameId)}function n_(h){h._nesting++,h.isStable&&(h.isStable=!1,h.onUnstable.emit(null))}function i_(h){h._nesting--,lh(h)}class pT{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ho,this.onMicrotaskEmpty=new Ho,this.onStable=new Ho,this.onError=new Ho}run(f,C,M){return f.apply(C,M)}runGuarded(f,C,M){return f.apply(C,M)}runOutsideAngular(f){return f()}runTask(f,C,M,x){return f.apply(C,M)}}const r_=new ai(""),o_=new ai("");let dh,fT=(()=>{class h{constructor(C,M,x){this._ngZone=C,this.registry=M,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,dh||(function mT(h){dh=h}(x),x.addToWindow(M)),this._watchAngularEvents(),C.run(()=>{this.taskTrackingZone=typeof Zone>"u"?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:()=>{Gr.assertNotInAngularZone(),sh(()=>{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())sh(()=>{for(;0!==this._callbacks.length;){let C=this._callbacks.pop();clearTimeout(C.timeoutId),C.doneCb(this._didWork)}this._didWork=!1});else{let C=this.getPendingTasks();this._callbacks=this._callbacks.filter(M=>!M.updateCb||!M.updateCb(C)||(clearTimeout(M.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(C=>({source:C.source,creationLocation:C.creationLocation,data:C.data})):[]}addCallback(C,M,x){let I=-1;M&&M>0&&(I=setTimeout(()=>{this._callbacks=this._callbacks.filter(U=>U.timeoutId!==I),C(this._didWork,this.getPendingTasks())},M)),this._callbacks.push({doneCb:C,timeoutId:I,updateCb:x})}whenStable(C,M,x){if(x&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(C,M,x),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(C){this.registry.registerApplication(C,this)}unregisterApplication(C){this.registry.unregisterApplication(C)}findProviders(C,M,x){return[]}}return h.\u0275fac=function(C){return new(C||h)(Hi(Gr),Hi(a_),Hi(o_))},h.\u0275prov=De({token:h,factory:h.\u0275fac}),h})(),a_=(()=>{class h{constructor(){this._applications=new Map}registerApplication(C,M){this._applications.set(C,M)}unregisterApplication(C){this._applications.delete(C)}unregisterAllApplications(){this._applications.clear()}getTestability(C){return this._applications.get(C)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(C,M=!0){var x,I;return null!==(x=null===(I=dh)||void 0===I?void 0:I.findTestabilityInTree(this,C,M))&&void 0!==x?x:null}}return h.\u0275fac=function(C){return new(C||h)},h.\u0275prov=De({token:h,factory:h.\u0275fac,providedIn:"platform"}),h})(),Ea=null;const s_=new ai("AllowMultipleToken"),uh=new ai("PlatformDestroyListeners");class AT{constructor(f,C){this.name=f,this.token=C}}function c_(h,f,C=[]){const M=`Platform: ${f}`,x=new ai(M);return(I=[])=>{let U=hh();if(!U||U.injector.get(s_,!1)){const ue=[...C,...I,{provide:x,useValue:!0}];h?h(ue):function bT(h){if(Ea&&!Ea.get(s_,!1))throw new $(400,!1);Ea=h;const f=h.get(u_);(function l_(h){const f=h.get(qg,null);f&&f.forEach(C=>C())})(h)}(function d_(h=[],f){return Wa.create({name:f,providers:[{provide:gd,useValue:"platform"},{provide:uh,useValue:new Set([()=>Ea=null])},...h]})}(ue,M))}return function vT(h){const f=hh();if(!f)throw new $(401,!1);return f}()}}function hh(){var h,f;return null!==(h=null===(f=Ea)||void 0===f?void 0:f.get(u_))&&void 0!==h?h:null}let u_=(()=>{class h{constructor(C){this._injector=C,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(C,M){const x=function ET(h,f){let C;return C="noop"===h?new pT:("zone.js"===h?void 0:h)||new Gr(f),C}(M?.ngZone,function h_(h){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!h||!h.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!h||!h.ngZoneRunCoalescing)||!1}}(M)),I=[{provide:Gr,useValue:x}];return x.run(()=>{const U=Wa.create({providers:I,parent:this.injector,name:C.moduleType.name}),ue=C.create(U),we=ue.injector.get(yl,null);if(!we)throw new $(402,!1);return x.runOutsideAngular(()=>{const et=x.onError.subscribe({next:ft=>{we.handleError(ft)}});ue.onDestroy(()=>{Zc(this._modules,ue),et.unsubscribe()})}),function p_(h,f,C){try{const M=C();return yu(M)?M.catch(x=>{throw f.runOutsideAngular(()=>h.handleError(x)),x}):M}catch(M){throw f.runOutsideAngular(()=>h.handleError(M)),M}}(we,x,()=>{const et=ue.injector.get(Fc);return et.runInitializers(),et.donePromise.then(()=>(function ym(h){B(h,"Expected localeId to be defined"),"string"==typeof h&&(Tm=h.toLowerCase().replace(/_/g,"-"))}(ue.injector.get(Uc,js)||js),this._moduleDoBootstrap(ue),ue))})})}bootstrapModule(C,M=[]){const x=f_({},M);return function gT(h,f,C){const M=new Wu(C);return Promise.resolve(M)}(0,0,C).then(I=>this.bootstrapModuleFactory(I,x))}_moduleDoBootstrap(C){const M=C.injector.get(jc);if(C._bootstrapComponents.length>0)C._bootstrapComponents.forEach(x=>M.bootstrap(x));else{if(!C.instance.ngDoBootstrap)throw new $(403,!1);C.instance.ngDoBootstrap(M)}this._modules.push(C)}onDestroy(C){this._destroyListeners.push(C)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new $(404,!1);this._modules.slice().forEach(M=>M.destroy()),this._destroyListeners.forEach(M=>M());const C=this._injector.get(uh,null);C&&(C.forEach(M=>M()),C.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return h.\u0275fac=function(C){return new(C||h)(Hi(Wa))},h.\u0275prov=De({token:h,factory:h.\u0275fac,providedIn:"platform"}),h})();function f_(h,f){return Array.isArray(f)?f.reduce(f_,h):{...h,...f}}let jc=(()=>{class h{constructor(C,M,x){this._zone=C,this._injector=M,this._exceptionHandler=x,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const I=new A.y(ue=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{ue.next(this._stable),ue.complete()})}),U=new A.y(ue=>{let we;this._zone.runOutsideAngular(()=>{we=this._zone.onStable.subscribe(()=>{Gr.assertNotInAngularZone(),sh(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,ue.next(!0))})})});const et=this._zone.onUnstable.subscribe(()=>{Gr.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{ue.next(!1)}))});return()=>{we.unsubscribe(),et.unsubscribe()}});this.isStable=(0,w.T)(I,U.pipe((0,p.B)()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(C,M){const x=C instanceof Fh;if(!this._injector.get(Fc).done)throw!x&&Ws(C),new $(405,false);let U;U=x?C:this._injector.get(El).resolveComponentFactory(C),this.componentTypes.push(U.componentType);const ue=function _T(h){return h.isBoundToModule}(U)?void 0:this._injector.get(Gs),et=U.create(Wa.NULL,[],M||U.selector,ue),ft=et.location.nativeElement,St=et.injector.get(r_,null);return St?.registerApplication(ft),et.onDestroy(()=>{this.detachView(et.hostView),Zc(this.components,et),St?.unregisterApplication(ft)}),this._loadComponent(et),et}tick(){if(this._runningTick)throw new $(101,!1);try{this._runningTick=!0;for(let C of this._views)C.detectChanges()}catch(C){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(C))}finally{this._runningTick=!1}}attachView(C){const M=C;this._views.push(M),M.attachToAppRef(this)}detachView(C){const M=C;Zc(this._views,M),M.detachFromAppRef()}_loadComponent(C){this.attachView(C.hostView),this.tick(),this.components.push(C),this._injector.get(Xg,[]).concat(this._bootstrapListeners).forEach(x=>x(C))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(C=>C()),this._views.slice().forEach(C=>C.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(C){return this._destroyListeners.push(C),()=>Zc(this._destroyListeners,C)}destroy(){if(this._destroyed)throw new $(406,!1);const C=this._injector;C.destroy&&!C.destroyed&&C.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return h.\u0275fac=function(C){return new(C||h)(Hi(Gr),Hi(Ga),Hi(yl))},h.\u0275prov=De({token:h,factory:h.\u0275fac,providedIn:"root"}),h})();function Zc(h,f){const C=h.indexOf(f);C>-1&&h.splice(C,1)}let g_=!0;function yT(){g_=!1}let wT=(()=>{class h{}return h.__NG_ELEMENT_ID__=MT,h})();function MT(h){return function ST(h,f,C){if(ji(h)&&!C){const M=gi(h.index,f);return new Dl(M,M)}return 47&h.type?new Dl(f[16],f):null}(li(),rn(),16==(16&h))}class v_{constructor(){}supports(f){return Il(f)}create(f){return new OT(f)}}const RT=(h,f)=>f;class OT{constructor(f){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=f||RT}forEachItem(f){let C;for(C=this._itHead;null!==C;C=C._next)f(C)}forEachOperation(f){let C=this._itHead,M=this._removalsHead,x=0,I=null;for(;C||M;){const U=!M||C&&C.currentIndex{U=this._trackByFn(x,ue),null!==C&&Object.is(C.trackById,U)?(M&&(C=this._verifyReinsertion(C,ue,U,x)),Object.is(C.item,ue)||this._addIdentityChange(C,ue)):(C=this._mismatch(C,ue,U,x),M=!0),C=C._next,x++}),this.length=x;return this._truncate(C),this.collection=f,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let f;for(f=this._previousItHead=this._itHead;null!==f;f=f._next)f._nextPrevious=f._next;for(f=this._additionsHead;null!==f;f=f._nextAdded)f.previousIndex=f.currentIndex;for(this._additionsHead=this._additionsTail=null,f=this._movesHead;null!==f;f=f._nextMoved)f.previousIndex=f.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(f,C,M,x){let I;return null===f?I=this._itTail:(I=f._prev,this._remove(f)),null!==(f=null===this._unlinkedRecords?null:this._unlinkedRecords.get(M,null))?(Object.is(f.item,C)||this._addIdentityChange(f,C),this._reinsertAfter(f,I,x)):null!==(f=null===this._linkedRecords?null:this._linkedRecords.get(M,x))?(Object.is(f.item,C)||this._addIdentityChange(f,C),this._moveAfter(f,I,x)):f=this._addAfter(new HT(C,M),I,x),f}_verifyReinsertion(f,C,M,x){let I=null===this._unlinkedRecords?null:this._unlinkedRecords.get(M,null);return null!==I?f=this._reinsertAfter(I,f._prev,x):f.currentIndex!=x&&(f.currentIndex=x,this._addToMoves(f,x)),f}_truncate(f){for(;null!==f;){const C=f._next;this._addToRemovals(this._unlink(f)),f=C}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(f,C,M){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(f);const x=f._prevRemoved,I=f._nextRemoved;return null===x?this._removalsHead=I:x._nextRemoved=I,null===I?this._removalsTail=x:I._prevRemoved=x,this._insertAfter(f,C,M),this._addToMoves(f,M),f}_moveAfter(f,C,M){return this._unlink(f),this._insertAfter(f,C,M),this._addToMoves(f,M),f}_addAfter(f,C,M){return this._insertAfter(f,C,M),this._additionsTail=null===this._additionsTail?this._additionsHead=f:this._additionsTail._nextAdded=f,f}_insertAfter(f,C,M){const x=null===C?this._itHead:C._next;return f._next=x,f._prev=C,null===x?this._itTail=f:x._prev=f,null===C?this._itHead=f:C._next=f,null===this._linkedRecords&&(this._linkedRecords=new E_),this._linkedRecords.put(f),f.currentIndex=M,f}_remove(f){return this._addToRemovals(this._unlink(f))}_unlink(f){null!==this._linkedRecords&&this._linkedRecords.remove(f);const C=f._prev,M=f._next;return null===C?this._itHead=M:C._next=M,null===M?this._itTail=C:M._prev=C,f}_addToMoves(f,C){return f.previousIndex===C||(this._movesTail=null===this._movesTail?this._movesHead=f:this._movesTail._nextMoved=f),f}_addToRemovals(f){return null===this._unlinkedRecords&&(this._unlinkedRecords=new E_),this._unlinkedRecords.put(f),f.currentIndex=null,f._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=f,f._prevRemoved=null):(f._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=f),f}_addIdentityChange(f,C){return f.item=C,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=f:this._identityChangesTail._nextIdentityChange=f,f}}class HT{constructor(f,C){this.item=f,this.trackById=C,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 LT{constructor(){this._head=null,this._tail=null}add(f){null===this._head?(this._head=this._tail=f,f._nextDup=null,f._prevDup=null):(this._tail._nextDup=f,f._prevDup=this._tail,f._nextDup=null,this._tail=f)}get(f,C){let M;for(M=this._head;null!==M;M=M._nextDup)if((null===C||C<=M.currentIndex)&&Object.is(M.trackById,f))return M;return null}remove(f){const C=f._prevDup,M=f._nextDup;return null===C?this._head=M:C._nextDup=M,null===M?this._tail=C:M._prevDup=C,null===this._head}}class E_{constructor(){this.map=new Map}put(f){const C=f.trackById;let M=this.map.get(C);M||(M=new LT,this.map.set(C,M)),M.add(f)}get(f,C){const x=this.map.get(f);return x?x.get(f,C):null}remove(f){const C=f.trackById;return this.map.get(C).remove(f)&&this.map.delete(C),f}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function T_(h,f,C){const M=h.previousIndex;if(null===M)return M;let x=0;return C&&M{if(C&&C.key===x)this._maybeAddToChanges(C,M),this._appendAfter=C,C=C._next;else{const I=this._getOrCreateRecordForKey(x,M);C=this._insertBeforeOrAppend(C,I)}}),C){C._prev&&(C._prev._next=null),this._removalsHead=C;for(let M=C;null!==M;M=M._nextRemoved)M===this._mapHead&&(this._mapHead=null),this._records.delete(M.key),M._nextRemoved=M._next,M.previousValue=M.currentValue,M.currentValue=null,M._prev=null,M._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(f,C){if(f){const M=f._prev;return C._next=f,C._prev=M,f._prev=C,M&&(M._next=C),f===this._mapHead&&(this._mapHead=C),this._appendAfter=f,f}return this._appendAfter?(this._appendAfter._next=C,C._prev=this._appendAfter):this._mapHead=C,this._appendAfter=C,null}_getOrCreateRecordForKey(f,C){if(this._records.has(f)){const x=this._records.get(f);this._maybeAddToChanges(x,C);const I=x._prev,U=x._next;return I&&(I._next=U),U&&(U._prev=I),x._next=null,x._prev=null,x}const M=new NT(f);return this._records.set(f,M),M.currentValue=C,this._addToAdditions(M),M}_reset(){if(this.isDirty){let f;for(this._previousMapHead=this._mapHead,f=this._previousMapHead;null!==f;f=f._next)f._nextPrevious=f._next;for(f=this._changesHead;null!==f;f=f._nextChanged)f.previousValue=f.currentValue;for(f=this._additionsHead;null!=f;f=f._nextAdded)f.previousValue=f.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(f,C){Object.is(C,f.currentValue)||(f.previousValue=f.currentValue,f.currentValue=C,this._addToChanges(f))}_addToAdditions(f){null===this._additionsHead?this._additionsHead=this._additionsTail=f:(this._additionsTail._nextAdded=f,this._additionsTail=f)}_addToChanges(f){null===this._changesHead?this._changesHead=this._changesTail=f:(this._changesTail._nextChanged=f,this._changesTail=f)}_forEach(f,C){f instanceof Map?f.forEach(C):Object.keys(f).forEach(M=>C(f[M],M))}}class NT{constructor(f){this.key=f,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function w_(){return new _h([new v_])}let _h=(()=>{class h{constructor(C){this.factories=C}static create(C,M){if(null!=M){const x=M.factories.slice();C=C.concat(x)}return new h(C)}static extend(C){return{provide:h,useFactory:M=>h.create(C,M||w_()),deps:[[h,new Yo,new Mo]]}}find(C){const M=this.factories.find(x=>x.supports(C));if(null!=M)return M;throw new $(901,!1)}}return h.\u0275prov=De({token:h,providedIn:"root",factory:w_}),h})();function M_(){return new Ah([new y_])}let Ah=(()=>{class h{constructor(C){this.factories=C}static create(C,M){if(M){const x=M.factories.slice();C=C.concat(x)}return new h(C)}static extend(C){return{provide:h,useFactory:M=>h.create(C,M||M_()),deps:[[h,new Yo,new Mo]]}}find(C){const M=this.factories.find(x=>x.supports(C));if(M)return M;throw new $(901,!1)}}return h.\u0275prov=De({token:h,providedIn:"root",factory:M_}),h})();const FT=c_(null,"core",[]);let UT=(()=>{class h{constructor(C){}}return h.\u0275fac=function(C){return new(C||h)(Hi(jc))},h.\u0275mod=ie({type:h}),h.\u0275inj=Pe({}),h})();function jT(h){return"boolean"==typeof h?h:null!=h&&"false"!==h}},24006:(Qe,he,u)=>{"use strict";u.d(he,{Cf:()=>_e,EJ:()=>Je,F:()=>fi,Fj:()=>z,JJ:()=>it,JL:()=>oe,JU:()=>E,Kr:()=>mi,NI:()=>Bn,On:()=>ur,Q7:()=>Ki,QS:()=>Nr,UX:()=>Kn,YN:()=>Et,Zs:()=>gi,_Y:()=>hr,a5:()=>ne,c5:()=>vn,kI:()=>b,oH:()=>Yn,p4:()=>nr,sg:()=>Pi,u:()=>zi,u5:()=>Mi,wV:()=>Ei});var e=u(94650),m=u(36895),A=u(32076),w=u(4128),p=u(54004);let g=(()=>{class Ge{constructor(ye,At){this._renderer=ye,this._elementRef=At,this.onChange=qt=>{},this.onTouched=()=>{}}setProperty(ye,At){this._renderer.setProperty(this._elementRef.nativeElement,ye,At)}registerOnTouched(ye){this.onTouched=ye}registerOnChange(ye){this.onChange=ye}setDisabledState(ye){this.setProperty("disabled",ye)}}return Ge.\u0275fac=function(ye){return new(ye||Ge)(e.Y36(e.Qsj),e.Y36(e.SBq))},Ge.\u0275dir=e.lG2({type:Ge}),Ge})(),T=(()=>{class Ge extends g{}return Ge.\u0275fac=function(){let Re;return function(At){return(Re||(Re=e.n5z(Ge)))(At||Ge)}}(),Ge.\u0275dir=e.lG2({type:Ge,features:[e.qOj]}),Ge})();const E=new e.OlP("NgValueAccessor"),v={provide:E,useExisting:(0,e.Gpc)(()=>z),multi:!0},F=new e.OlP("CompositionEventMode");let z=(()=>{class Ge extends g{constructor(ye,At,qt){super(ye,At),this._compositionMode=qt,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function D(){const Ge=(0,m.q)()?(0,m.q)().getUserAgent():"";return/android (\d+)/.test(Ge.toLowerCase())}())}writeValue(ye){this.setProperty("value",ye??"")}_handleInput(ye){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(ye)}_compositionStart(){this._composing=!0}_compositionEnd(ye){this._composing=!1,this._compositionMode&&this.onChange(ye)}}return Ge.\u0275fac=function(ye){return new(ye||Ge)(e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(F,8))},Ge.\u0275dir=e.lG2({type:Ge,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(ye,At){1&ye&&e.NdJ("input",function(An){return At._handleInput(An.target.value)})("blur",function(){return At.onTouched()})("compositionstart",function(){return At._compositionStart()})("compositionend",function(An){return At._compositionEnd(An.target.value)})},features:[e._Bn([v]),e.qOj]}),Ge})();function G(Ge){return null==Ge||("string"==typeof Ge||Array.isArray(Ge))&&0===Ge.length}function q(Ge){return null!=Ge&&"number"==typeof Ge.length}const _e=new e.OlP("NgValidators"),ce=new e.OlP("NgAsyncValidators"),Te=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class b{static min(Re){return function H(Ge){return Re=>{if(G(Re.value)||G(Ge))return null;const ye=parseFloat(Re.value);return!isNaN(ye)&&ye{if(G(Re.value)||G(Ge))return null;const ye=parseFloat(Re.value);return!isNaN(ye)&&ye>Ge?{max:{max:Ge,actual:Re.value}}:null}}(Re)}static required(Re){return V(Re)}static requiredTrue(Re){return Q(Re)}static email(Re){return function ae(Ge){return G(Ge.value)||Te.test(Ge.value)?null:{email:!0}}(Re)}static minLength(Re){return function xe(Ge){return Re=>G(Re.value)||!q(Re.value)?null:Re.value.lengthq(Re.value)&&Re.value.length>Ge?{maxlength:{requiredLength:Ge,actualLength:Re.value.length}}:null}(Re)}static pattern(Re){return Se(Re)}static nullValidator(Re){return null}static compose(Re){return N(Re)}static composeAsync(Re){return Y(Re)}}function V(Ge){return G(Ge.value)?{required:!0}:null}function Q(Ge){return!0===Ge.value?null:{required:!0}}function Se(Ge){if(!Ge)return Be;let Re,ye;return"string"==typeof Ge?(ye="","^"!==Ge.charAt(0)&&(ye+="^"),ye+=Ge,"$"!==Ge.charAt(Ge.length-1)&&(ye+="$"),Re=new RegExp(ye)):(ye=Ge.toString(),Re=Ge),At=>{if(G(At.value))return null;const qt=At.value;return Re.test(qt)?null:{pattern:{requiredPattern:ye,actualValue:qt}}}}function Be(Ge){return null}function pe(Ge){return null!=Ge}function $e(Ge){return(0,e.QGY)(Ge)?(0,A.D)(Ge):Ge}function Ce(Ge){let Re={};return Ge.forEach(ye=>{Re=null!=ye?{...Re,...ye}:Re}),0===Object.keys(Re).length?null:Re}function de(Ge,Re){return Re.map(ye=>ye(Ge))}function B(Ge){return Ge.map(Re=>function re(Ge){return!Ge.validate}(Re)?Re:ye=>Re.validate(ye))}function N(Ge){if(!Ge)return null;const Re=Ge.filter(pe);return 0==Re.length?null:function(ye){return Ce(de(ye,Re))}}function Me(Ge){return null!=Ge?N(B(Ge)):null}function Y(Ge){if(!Ge)return null;const Re=Ge.filter(pe);return 0==Re.length?null:function(ye){const At=de(ye,Re).map($e);return(0,w.D)(At).pipe((0,p.U)(Ce))}}function be(Ge){return null!=Ge?Y(B(Ge)):null}function De(Ge,Re){return null===Ge?[Re]:Array.isArray(Ge)?[...Ge,Re]:[Ge,Re]}function We(Ge){return Ge._rawValidators}function Pe(Ge){return Ge._rawAsyncValidators}function nt(Ge){return Ge?Array.isArray(Ge)?Ge:[Ge]:[]}function Ye(Ge,Re){return Array.isArray(Ge)?Ge.includes(Re):Ge===Re}function Tt(Ge,Re){const ye=nt(Re);return nt(Ge).forEach(qt=>{Ye(ye,qt)||ye.push(qt)}),ye}function J(Ge,Re){return nt(Re).filter(ye=>!Ye(Ge,ye))}class Xe{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(Re){this._rawValidators=Re||[],this._composedValidatorFn=Me(this._rawValidators)}_setAsyncValidators(Re){this._rawAsyncValidators=Re||[],this._composedAsyncValidatorFn=be(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(Re){this._onDestroyCallbacks.push(Re)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(Re=>Re()),this._onDestroyCallbacks=[]}reset(Re){this.control&&this.control.reset(Re)}hasError(Re,ye){return!!this.control&&this.control.hasError(Re,ye)}getError(Re,ye){return this.control?this.control.getError(Re,ye):null}}class le extends Xe{get formDirective(){return null}get path(){return null}}class ne extends Xe{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class ke{constructor(Re){this._cd=Re}get isTouched(){var Re,ye;return!(null===(Re=this._cd)||void 0===Re||null===(ye=Re.control)||void 0===ye||!ye.touched)}get isUntouched(){var Re,ye;return!(null===(Re=this._cd)||void 0===Re||null===(ye=Re.control)||void 0===ye||!ye.untouched)}get isPristine(){var Re,ye;return!(null===(Re=this._cd)||void 0===Re||null===(ye=Re.control)||void 0===ye||!ye.pristine)}get isDirty(){var Re,ye;return!(null===(Re=this._cd)||void 0===Re||null===(ye=Re.control)||void 0===ye||!ye.dirty)}get isValid(){var Re,ye;return!(null===(Re=this._cd)||void 0===Re||null===(ye=Re.control)||void 0===ye||!ye.valid)}get isInvalid(){var Re,ye;return!(null===(Re=this._cd)||void 0===Re||null===(ye=Re.control)||void 0===ye||!ye.invalid)}get isPending(){var Re,ye;return!(null===(Re=this._cd)||void 0===Re||null===(ye=Re.control)||void 0===ye||!ye.pending)}get isSubmitted(){var Re;return!(null===(Re=this._cd)||void 0===Re||!Re.submitted)}}let it=(()=>{class Ge extends ke{constructor(ye){super(ye)}}return Ge.\u0275fac=function(ye){return new(ye||Ge)(e.Y36(ne,2))},Ge.\u0275dir=e.lG2({type:Ge,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(ye,At){2&ye&&e.ekj("ng-untouched",At.isUntouched)("ng-touched",At.isTouched)("ng-pristine",At.isPristine)("ng-dirty",At.isDirty)("ng-valid",At.isValid)("ng-invalid",At.isInvalid)("ng-pending",At.isPending)},features:[e.qOj]}),Ge})(),oe=(()=>{class Ge extends ke{constructor(ye){super(ye)}}return Ge.\u0275fac=function(ye){return new(ye||Ge)(e.Y36(le,10))},Ge.\u0275dir=e.lG2({type:Ge,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(ye,At){2&ye&&e.ekj("ng-untouched",At.isUntouched)("ng-touched",At.isTouched)("ng-pristine",At.isPristine)("ng-dirty",At.isDirty)("ng-valid",At.isValid)("ng-invalid",At.isInvalid)("ng-pending",At.isPending)("ng-submitted",At.isSubmitted)},features:[e.qOj]}),Ge})();const at="VALID",fe="INVALID",Oe="PENDING",Ke="DISABLED";function je(Ge){return(st(Ge)?Ge.validators:Ge)||null}function Le(Ge){return Array.isArray(Ge)?Me(Ge):Ge||null}function ie(Ge,Re){return(st(Re)?Re.asyncValidators:Ge)||null}function Ae(Ge){return Array.isArray(Ge)?be(Ge):Ge||null}function st(Ge){return null!=Ge&&!Array.isArray(Ge)&&"object"==typeof Ge}function ze(Ge,Re,ye){const At=Ge.controls;if(!(Re?Object.keys(At):At).length)throw new e.vHH(1e3,"");if(!At[ye])throw new e.vHH(1001,"")}function _t(Ge,Re,ye){Ge._forEachChild((At,qt)=>{if(void 0===ye[qt])throw new e.vHH(1002,"")})}class me{constructor(Re,ye){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=Re,this._rawAsyncValidators=ye,this._composedValidatorFn=Le(this._rawValidators),this._composedAsyncValidatorFn=Ae(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(Re){this._rawValidators=this._composedValidatorFn=Re}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(Re){this._rawAsyncValidators=this._composedAsyncValidatorFn=Re}get parent(){return this._parent}get valid(){return this.status===at}get invalid(){return this.status===fe}get pending(){return this.status==Oe}get disabled(){return this.status===Ke}get enabled(){return this.status!==Ke}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(Re){this._rawValidators=Re,this._composedValidatorFn=Le(Re)}setAsyncValidators(Re){this._rawAsyncValidators=Re,this._composedAsyncValidatorFn=Ae(Re)}addValidators(Re){this.setValidators(Tt(Re,this._rawValidators))}addAsyncValidators(Re){this.setAsyncValidators(Tt(Re,this._rawAsyncValidators))}removeValidators(Re){this.setValidators(J(Re,this._rawValidators))}removeAsyncValidators(Re){this.setAsyncValidators(J(Re,this._rawAsyncValidators))}hasValidator(Re){return Ye(this._rawValidators,Re)}hasAsyncValidator(Re){return Ye(this._rawAsyncValidators,Re)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(Re={}){this.touched=!0,this._parent&&!Re.onlySelf&&this._parent.markAsTouched(Re)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(Re=>Re.markAllAsTouched())}markAsUntouched(Re={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(ye=>{ye.markAsUntouched({onlySelf:!0})}),this._parent&&!Re.onlySelf&&this._parent._updateTouched(Re)}markAsDirty(Re={}){this.pristine=!1,this._parent&&!Re.onlySelf&&this._parent.markAsDirty(Re)}markAsPristine(Re={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(ye=>{ye.markAsPristine({onlySelf:!0})}),this._parent&&!Re.onlySelf&&this._parent._updatePristine(Re)}markAsPending(Re={}){this.status=Oe,!1!==Re.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!Re.onlySelf&&this._parent.markAsPending(Re)}disable(Re={}){const ye=this._parentMarkedDirty(Re.onlySelf);this.status=Ke,this.errors=null,this._forEachChild(At=>{At.disable({...Re,onlySelf:!0})}),this._updateValue(),!1!==Re.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...Re,skipPristineCheck:ye}),this._onDisabledChange.forEach(At=>At(!0))}enable(Re={}){const ye=this._parentMarkedDirty(Re.onlySelf);this.status=at,this._forEachChild(At=>{At.enable({...Re,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:Re.emitEvent}),this._updateAncestors({...Re,skipPristineCheck:ye}),this._onDisabledChange.forEach(At=>At(!1))}_updateAncestors(Re){this._parent&&!Re.onlySelf&&(this._parent.updateValueAndValidity(Re),Re.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(Re){this._parent=Re}getRawValue(){return this.value}updateValueAndValidity(Re={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===at||this.status===Oe)&&this._runAsyncValidator(Re.emitEvent)),!1!==Re.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!Re.onlySelf&&this._parent.updateValueAndValidity(Re)}_updateTreeValidity(Re={emitEvent:!0}){this._forEachChild(ye=>ye._updateTreeValidity(Re)),this.updateValueAndValidity({onlySelf:!0,emitEvent:Re.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Ke:at}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(Re){if(this.asyncValidator){this.status=Oe,this._hasOwnPendingAsyncValidator=!0;const ye=$e(this.asyncValidator(this));this._asyncValidationSubscription=ye.subscribe(At=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(At,{emitEvent:Re})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(Re,ye={}){this.errors=Re,this._updateControlsErrors(!1!==ye.emitEvent)}get(Re){let ye=Re;return null==ye||(Array.isArray(ye)||(ye=ye.split(".")),0===ye.length)?null:ye.reduce((At,qt)=>At&&At._find(qt),this)}getError(Re,ye){const At=ye?this.get(ye):this;return At&&At.errors?At.errors[Re]:null}hasError(Re,ye){return!!this.getError(Re,ye)}get root(){let Re=this;for(;Re._parent;)Re=Re._parent;return Re}_updateControlsErrors(Re){this.status=this._calculateStatus(),Re&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(Re)}_initObservables(){this.valueChanges=new e.vpe,this.statusChanges=new e.vpe}_calculateStatus(){return this._allControlsDisabled()?Ke:this.errors?fe:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Oe)?Oe:this._anyControlsHaveStatus(fe)?fe:at}_anyControlsHaveStatus(Re){return this._anyControls(ye=>ye.status===Re)}_anyControlsDirty(){return this._anyControls(Re=>Re.dirty)}_anyControlsTouched(){return this._anyControls(Re=>Re.touched)}_updatePristine(Re={}){this.pristine=!this._anyControlsDirty(),this._parent&&!Re.onlySelf&&this._parent._updatePristine(Re)}_updateTouched(Re={}){this.touched=this._anyControlsTouched(),this._parent&&!Re.onlySelf&&this._parent._updateTouched(Re)}_registerOnCollectionChange(Re){this._onCollectionChange=Re}_setUpdateStrategy(Re){st(Re)&&null!=Re.updateOn&&(this._updateOn=Re.updateOn)}_parentMarkedDirty(Re){return!Re&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(Re){return null}}class qe extends me{constructor(Re,ye,At){super(je(ye),ie(At,ye)),this.controls=Re,this._initObservables(),this._setUpdateStrategy(ye),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(Re,ye){return this.controls[Re]?this.controls[Re]:(this.controls[Re]=ye,ye.setParent(this),ye._registerOnCollectionChange(this._onCollectionChange),ye)}addControl(Re,ye,At={}){this.registerControl(Re,ye),this.updateValueAndValidity({emitEvent:At.emitEvent}),this._onCollectionChange()}removeControl(Re,ye={}){this.controls[Re]&&this.controls[Re]._registerOnCollectionChange(()=>{}),delete this.controls[Re],this.updateValueAndValidity({emitEvent:ye.emitEvent}),this._onCollectionChange()}setControl(Re,ye,At={}){this.controls[Re]&&this.controls[Re]._registerOnCollectionChange(()=>{}),delete this.controls[Re],ye&&this.registerControl(Re,ye),this.updateValueAndValidity({emitEvent:At.emitEvent}),this._onCollectionChange()}contains(Re){return this.controls.hasOwnProperty(Re)&&this.controls[Re].enabled}setValue(Re,ye={}){_t(this,0,Re),Object.keys(Re).forEach(At=>{ze(this,!0,At),this.controls[At].setValue(Re[At],{onlySelf:!0,emitEvent:ye.emitEvent})}),this.updateValueAndValidity(ye)}patchValue(Re,ye={}){null!=Re&&(Object.keys(Re).forEach(At=>{const qt=this.controls[At];qt&&qt.patchValue(Re[At],{onlySelf:!0,emitEvent:ye.emitEvent})}),this.updateValueAndValidity(ye))}reset(Re={},ye={}){this._forEachChild((At,qt)=>{At.reset(Re[qt],{onlySelf:!0,emitEvent:ye.emitEvent})}),this._updatePristine(ye),this._updateTouched(ye),this.updateValueAndValidity(ye)}getRawValue(){return this._reduceChildren({},(Re,ye,At)=>(Re[At]=ye.getRawValue(),Re))}_syncPendingControls(){let Re=this._reduceChildren(!1,(ye,At)=>!!At._syncPendingControls()||ye);return Re&&this.updateValueAndValidity({onlySelf:!0}),Re}_forEachChild(Re){Object.keys(this.controls).forEach(ye=>{const At=this.controls[ye];At&&Re(At,ye)})}_setUpControls(){this._forEachChild(Re=>{Re.setParent(this),Re._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(Re){for(const[ye,At]of Object.entries(this.controls))if(this.contains(ye)&&Re(At))return!0;return!1}_reduceValue(){return this._reduceChildren({},(ye,At,qt)=>((At.enabled||this.disabled)&&(ye[qt]=At.value),ye))}_reduceChildren(Re,ye){let At=Re;return this._forEachChild((qt,An)=>{At=ye(At,qt,An)}),At}_allControlsDisabled(){for(const Re of Object.keys(this.controls))if(this.controls[Re].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(Re){return this.controls.hasOwnProperty(Re)?this.controls[Re]:null}}function an(Ge,Re){return[...Re.path,Ge]}function hn(Ge,Re){var ye,At;Ft(Ge,Re),Re.valueAccessor.writeValue(Ge.value),Ge.disabled&&(null===(ye=(At=Re.valueAccessor).setDisabledState)||void 0===ye||ye.call(At,!0)),function Cn(Ge,Re){Re.valueAccessor.registerOnChange(ye=>{Ge._pendingValue=ye,Ge._pendingChange=!0,Ge._pendingDirty=!0,"change"===Ge.updateOn&&pn(Ge,Re)})}(Ge,Re),function Hn(Ge,Re){const ye=(At,qt)=>{Re.valueAccessor.writeValue(At),qt&&Re.viewToModelUpdate(At)};Ge.registerOnChange(ye),Re._registerOnDestroy(()=>{Ge._unregisterOnChange(ye)})}(Ge,Re),function Mn(Ge,Re){Re.valueAccessor.registerOnTouched(()=>{Ge._pendingTouched=!0,"blur"===Ge.updateOn&&Ge._pendingChange&&pn(Ge,Re),"submit"!==Ge.updateOn&&Ge.markAsTouched()})}(Ge,Re),function yt(Ge,Re){if(Re.valueAccessor.setDisabledState){const ye=At=>{Re.valueAccessor.setDisabledState(At)};Ge.registerOnDisabledChange(ye),Re._registerOnDestroy(()=>{Ge._unregisterOnDisabledChange(ye)})}}(Ge,Re)}function Nt(Ge,Re,ye=!0){const At=()=>{};Re.valueAccessor&&(Re.valueAccessor.registerOnChange(At),Re.valueAccessor.registerOnTouched(At)),Kt(Ge,Re),Ge&&(Re._invokeOnDestroyCallbacks(),Ge._registerOnCollectionChange(()=>{}))}function Ht(Ge,Re){Ge.forEach(ye=>{ye.registerOnValidatorChange&&ye.registerOnValidatorChange(Re)})}function Ft(Ge,Re){const ye=We(Ge);null!==Re.validator?Ge.setValidators(De(ye,Re.validator)):"function"==typeof ye&&Ge.setValidators([ye]);const At=Pe(Ge);null!==Re.asyncValidator?Ge.setAsyncValidators(De(At,Re.asyncValidator)):"function"==typeof At&&Ge.setAsyncValidators([At]);const qt=()=>Ge.updateValueAndValidity();Ht(Re._rawValidators,qt),Ht(Re._rawAsyncValidators,qt)}function Kt(Ge,Re){let ye=!1;if(null!==Ge){if(null!==Re.validator){const qt=We(Ge);if(Array.isArray(qt)&&qt.length>0){const An=qt.filter(di=>di!==Re.validator);An.length!==qt.length&&(ye=!0,Ge.setValidators(An))}}if(null!==Re.asyncValidator){const qt=Pe(Ge);if(Array.isArray(qt)&&qt.length>0){const An=qt.filter(di=>di!==Re.asyncValidator);An.length!==qt.length&&(ye=!0,Ge.setAsyncValidators(An))}}}const At=()=>{};return Ht(Re._rawValidators,At),Ht(Re._rawAsyncValidators,At),ye}function pn(Ge,Re){Ge._pendingDirty&&Ge.markAsDirty(),Ge.setValue(Ge._pendingValue,{emitModelToViewChange:!1}),Re.viewToModelUpdate(Ge._pendingValue),Ge._pendingChange=!1}function Ct(Ge,Re){Ft(Ge,Re)}function Ze(Ge,Re){if(!Ge.hasOwnProperty("model"))return!1;const ye=Ge.model;return!!ye.isFirstChange()||!Object.is(Re,ye.currentValue)}function Pt(Ge,Re){Ge._syncPendingControls(),Re.forEach(ye=>{const At=ye.control;"submit"===At.updateOn&&At._pendingChange&&(ye.viewToModelUpdate(At._pendingValue),At._pendingChange=!1)})}function en(Ge,Re){if(!Re)return null;let ye,At,qt;return Array.isArray(Re),Re.forEach(An=>{An.constructor===z?ye=An:function vt(Ge){return Object.getPrototypeOf(Ge.constructor)===T}(An)?At=An:qt=An}),qt||At||ye||null}const Ln={provide:le,useExisting:(0,e.Gpc)(()=>fi)},qn=(()=>Promise.resolve(null))();let fi=(()=>{class Ge extends le{constructor(ye,At){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new e.vpe,this.form=new qe({},Me(ye),be(At))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(ye){qn.then(()=>{const At=this._findContainer(ye.path);ye.control=At.registerControl(ye.name,ye.control),hn(ye.control,ye),ye.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(ye)})}getControl(ye){return this.form.get(ye.path)}removeControl(ye){qn.then(()=>{const At=this._findContainer(ye.path);At&&At.removeControl(ye.name),this._directives.delete(ye)})}addFormGroup(ye){qn.then(()=>{const At=this._findContainer(ye.path),qt=new qe({});Ct(qt,ye),At.registerControl(ye.name,qt),qt.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(ye){qn.then(()=>{const At=this._findContainer(ye.path);At&&At.removeControl(ye.name)})}getFormGroup(ye){return this.form.get(ye.path)}updateModel(ye,At){qn.then(()=>{this.form.get(ye.path).setValue(At)})}setValue(ye){this.control.setValue(ye)}onSubmit(ye){return this.submitted=!0,Pt(this.form,this._directives),this.ngSubmit.emit(ye),!1}onReset(){this.resetForm()}resetForm(ye){this.form.reset(ye),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(ye){return ye.pop(),ye.length?this.form.get(ye):this.form}}return Ge.\u0275fac=function(ye){return new(ye||Ge)(e.Y36(_e,10),e.Y36(ce,10))},Ge.\u0275dir=e.lG2({type:Ge,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(ye,At){1&ye&&e.NdJ("submit",function(An){return At.onSubmit(An)})("reset",function(){return At.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[e._Bn([Ln]),e.qOj]}),Ge})();function ci(Ge,Re){const ye=Ge.indexOf(Re);ye>-1&&Ge.splice(ye,1)}function Qn(Ge){return"object"==typeof Ge&&null!==Ge&&2===Object.keys(Ge).length&&"value"in Ge&&"disabled"in Ge}const Bn=class extends me{constructor(Re=null,ye,At){super(je(ye),ie(At,ye)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(Re),this._setUpdateStrategy(ye),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),st(ye)&&(ye.nonNullable||ye.initialValueIsDefault)&&(this.defaultValue=Qn(Re)?Re.value:Re)}setValue(Re,ye={}){this.value=this._pendingValue=Re,this._onChange.length&&!1!==ye.emitModelToViewChange&&this._onChange.forEach(At=>At(this.value,!1!==ye.emitViewToModelChange)),this.updateValueAndValidity(ye)}patchValue(Re,ye={}){this.setValue(Re,ye)}reset(Re=this.defaultValue,ye={}){this._applyFormState(Re),this.markAsPristine(ye),this.markAsUntouched(ye),this.setValue(this.value,ye),this._pendingChange=!1}_updateValue(){}_anyControls(Re){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(Re){this._onChange.push(Re)}_unregisterOnChange(Re){ci(this._onChange,Re)}registerOnDisabledChange(Re){this._onDisabledChange.push(Re)}_unregisterOnDisabledChange(Re){ci(this._onDisabledChange,Re)}_forEachChild(Re){}_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(Re){Qn(Re)?(this.value=this._pendingValue=Re.value,Re.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=Re}},nr=Bn,dr={provide:ne,useExisting:(0,e.Gpc)(()=>ur)},bi=(()=>Promise.resolve(null))();let ur=(()=>{class Ge extends ne{constructor(ye,At,qt,An,di){super(),this._changeDetectorRef=di,this.control=new Bn,this._registered=!1,this.update=new e.vpe,this._parent=ye,this._setValidators(At),this._setAsyncValidators(qt),this.valueAccessor=en(0,An)}ngOnChanges(ye){if(this._checkForErrors(),!this._registered||"name"in ye){if(this._registered&&(this._checkName(),this.formDirective)){const At=ye.name.previousValue;this.formDirective.removeControl({name:At,path:this._getPath(At)})}this._setUpControl()}"isDisabled"in ye&&this._updateDisabled(ye),Ze(ye,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(ye){this.viewModel=ye,this.update.emit(ye)}_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(){hn(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(ye){bi.then(()=>{var At;this.control.setValue(ye,{emitViewToModelChange:!1}),null===(At=this._changeDetectorRef)||void 0===At||At.markForCheck()})}_updateDisabled(ye){const At=ye.isDisabled.currentValue,qt=0!==At&&(0,e.D6c)(At);bi.then(()=>{var An;qt&&!this.control.disabled?this.control.disable():!qt&&this.control.disabled&&this.control.enable(),null===(An=this._changeDetectorRef)||void 0===An||An.markForCheck()})}_getPath(ye){return this._parent?an(ye,this._parent):[ye]}}return Ge.\u0275fac=function(ye){return new(ye||Ge)(e.Y36(le,9),e.Y36(_e,10),e.Y36(ce,10),e.Y36(E,10),e.Y36(e.sBO,8))},Ge.\u0275dir=e.lG2({type:Ge,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[e._Bn([dr]),e.qOj,e.TTD]}),Ge})(),hr=(()=>{class Ge{}return Ge.\u0275fac=function(ye){return new(ye||Ge)},Ge.\u0275dir=e.lG2({type:Ge,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),Ge})();const zr={provide:E,useExisting:(0,e.Gpc)(()=>Ei),multi:!0};let Ei=(()=>{class Ge extends T{writeValue(ye){this.setProperty("value",ye??"")}registerOnChange(ye){this.onChange=At=>{ye(""==At?null:parseFloat(At))}}}return Ge.\u0275fac=function(){let Re;return function(At){return(Re||(Re=e.n5z(Ge)))(At||Ge)}}(),Ge.\u0275dir=e.lG2({type:Ge,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(ye,At){1&ye&&e.NdJ("input",function(An){return At.onChange(An.target.value)})("blur",function(){return At.onTouched()})},features:[e._Bn([zr]),e.qOj]}),Ge})(),nn=(()=>{class Ge{}return Ge.\u0275fac=function(ye){return new(ye||Ge)},Ge.\u0275mod=e.oAB({type:Ge}),Ge.\u0275inj=e.cJS({}),Ge})();const Dn=new e.OlP("NgModelWithFormControlWarning"),Fn={provide:ne,useExisting:(0,e.Gpc)(()=>Yn)};let Yn=(()=>{class Ge extends ne{constructor(ye,At,qt,An){super(),this._ngModelWarningConfig=An,this.update=new e.vpe,this._ngModelWarningSent=!1,this._setValidators(ye),this._setAsyncValidators(At),this.valueAccessor=en(0,qt)}set isDisabled(ye){}ngOnChanges(ye){if(this._isControlChanged(ye)){const At=ye.form.previousValue;At&&Nt(At,this,!1),hn(this.form,this),this.form.updateValueAndValidity({emitEvent:!1})}Ze(ye,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Nt(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(ye){this.viewModel=ye,this.update.emit(ye)}_isControlChanged(ye){return ye.hasOwnProperty("form")}}return Ge._ngModelWarningSentOnce=!1,Ge.\u0275fac=function(ye){return new(ye||Ge)(e.Y36(_e,10),e.Y36(ce,10),e.Y36(E,10),e.Y36(Dn,8))},Ge.\u0275dir=e.lG2({type:Ge,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[e._Bn([Fn]),e.qOj,e.TTD]}),Ge})();const Ti={provide:le,useExisting:(0,e.Gpc)(()=>Pi)};let Pi=(()=>{class Ge extends le{constructor(ye,At){super(),this.validators=ye,this.asyncValidators=At,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new e.vpe,this._setValidators(ye),this._setAsyncValidators(At)}ngOnChanges(ye){this._checkFormPresent(),ye.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Kt(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(ye){const At=this.form.get(ye.path);return hn(At,ye),At.updateValueAndValidity({emitEvent:!1}),this.directives.push(ye),At}getControl(ye){return this.form.get(ye.path)}removeControl(ye){Nt(ye.control||null,ye,!1),function Tn(Ge,Re){const ye=Ge.indexOf(Re);ye>-1&&Ge.splice(ye,1)}(this.directives,ye)}addFormGroup(ye){this._setUpFormContainer(ye)}removeFormGroup(ye){this._cleanUpFormContainer(ye)}getFormGroup(ye){return this.form.get(ye.path)}addFormArray(ye){this._setUpFormContainer(ye)}removeFormArray(ye){this._cleanUpFormContainer(ye)}getFormArray(ye){return this.form.get(ye.path)}updateModel(ye,At){this.form.get(ye.path).setValue(At)}onSubmit(ye){return this.submitted=!0,Pt(this.form,this.directives),this.ngSubmit.emit(ye),!1}onReset(){this.resetForm()}resetForm(ye){this.form.reset(ye),this.submitted=!1}_updateDomValue(){this.directives.forEach(ye=>{const At=ye.control,qt=this.form.get(ye.path);At!==qt&&(Nt(At||null,ye),(Ge=>Ge instanceof Bn)(qt)&&(hn(qt,ye),ye.control=qt))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(ye){const At=this.form.get(ye.path);Ct(At,ye),At.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(ye){if(this.form){const At=this.form.get(ye.path);At&&function Ot(Ge,Re){return Kt(Ge,Re)}(At,ye)&&At.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Ft(this.form,this),this._oldForm&&Kt(this._oldForm,this)}_checkFormPresent(){}}return Ge.\u0275fac=function(ye){return new(ye||Ge)(e.Y36(_e,10),e.Y36(ce,10))},Ge.\u0275dir=e.lG2({type:Ge,selectors:[["","formGroup",""]],hostBindings:function(ye,At){1&ye&&e.NdJ("submit",function(An){return At.onSubmit(An)})("reset",function(){return At.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[e._Bn([Ti]),e.qOj,e.TTD]}),Ge})();const Gi={provide:ne,useExisting:(0,e.Gpc)(()=>zi)};let zi=(()=>{class Ge extends ne{constructor(ye,At,qt,An,di){super(),this._ngModelWarningConfig=di,this._added=!1,this.update=new e.vpe,this._ngModelWarningSent=!1,this._parent=ye,this._setValidators(At),this._setAsyncValidators(qt),this.valueAccessor=en(0,An)}set isDisabled(ye){}ngOnChanges(ye){this._added||this._setUpControl(),Ze(ye,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(ye){this.viewModel=ye,this.update.emit(ye)}get path(){return an(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._added=!0}}return Ge._ngModelWarningSentOnce=!1,Ge.\u0275fac=function(ye){return new(ye||Ge)(e.Y36(le,13),e.Y36(_e,10),e.Y36(ce,10),e.Y36(E,10),e.Y36(Dn,8))},Ge.\u0275dir=e.lG2({type:Ge,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[e._Bn([Gi]),e.qOj,e.TTD]}),Ge})();const Hr={provide:E,useExisting:(0,e.Gpc)(()=>Je),multi:!0};function dt(Ge,Re){return null==Ge?`${Re}`:(Re&&"object"==typeof Re&&(Re="Object"),`${Ge}: ${Re}`.slice(0,50))}let Je=(()=>{class Ge extends T{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(ye){this._compareWith=ye}writeValue(ye){this.value=ye;const qt=dt(this._getOptionId(ye),ye);this.setProperty("value",qt)}registerOnChange(ye){this.onChange=At=>{this.value=this._getOptionValue(At),ye(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(ye){for(const At of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(At),ye))return At;return null}_getOptionValue(ye){const At=function Ut(Ge){return Ge.split(":")[0]}(ye);return this._optionMap.has(At)?this._optionMap.get(At):ye}}return Ge.\u0275fac=function(){let Re;return function(At){return(Re||(Re=e.n5z(Ge)))(At||Ge)}}(),Ge.\u0275dir=e.lG2({type:Ge,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(ye,At){1&ye&&e.NdJ("change",function(An){return At.onChange(An.target.value)})("blur",function(){return At.onTouched()})},inputs:{compareWith:"compareWith"},features:[e._Bn([Hr]),e.qOj]}),Ge})(),Et=(()=>{class Ge{constructor(ye,At,qt){this._element=ye,this._renderer=At,this._select=qt,this._select&&(this.id=this._select._registerOption())}set ngValue(ye){null!=this._select&&(this._select._optionMap.set(this.id,ye),this._setElementValue(dt(this.id,ye)),this._select.writeValue(this._select.value))}set value(ye){this._setElementValue(ye),this._select&&this._select.writeValue(this._select.value)}_setElementValue(ye){this._renderer.setProperty(this._element.nativeElement,"value",ye)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return Ge.\u0275fac=function(ye){return new(ye||Ge)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(Je,9))},Ge.\u0275dir=e.lG2({type:Ge,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),Ge})();const zt={provide:E,useExisting:(0,e.Gpc)(()=>si),multi:!0};function un(Ge,Re){return null==Ge?`${Re}`:("string"==typeof Re&&(Re=`'${Re}'`),Re&&"object"==typeof Re&&(Re="Object"),`${Ge}: ${Re}`.slice(0,50))}let si=(()=>{class Ge extends T{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(ye){this._compareWith=ye}writeValue(ye){let At;if(this.value=ye,Array.isArray(ye)){const qt=ye.map(An=>this._getOptionId(An));At=(An,di)=>{An._setSelected(qt.indexOf(di.toString())>-1)}}else At=(qt,An)=>{qt._setSelected(!1)};this._optionMap.forEach(At)}registerOnChange(ye){this.onChange=At=>{const qt=[],An=At.selectedOptions;if(void 0!==An){const di=An;for(let ii=0;ii{class Ge{constructor(ye,At,qt){this._element=ye,this._renderer=At,this._select=qt,this._select&&(this.id=this._select._registerOption(this))}set ngValue(ye){null!=this._select&&(this._value=ye,this._setElementValue(un(this.id,ye)),this._select.writeValue(this._select.value))}set value(ye){this._select?(this._value=ye,this._setElementValue(un(this.id,ye)),this._select.writeValue(this._select.value)):this._setElementValue(ye)}_setElementValue(ye){this._renderer.setProperty(this._element.nativeElement,"value",ye)}_setSelected(ye){this._renderer.setProperty(this._element.nativeElement,"selected",ye)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return Ge.\u0275fac=function(ye){return new(ye||Ge)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(si,9))},Ge.\u0275dir=e.lG2({type:Ge,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),Ge})(),Xn=(()=>{class Ge{constructor(){this._validator=Be}ngOnChanges(ye){if(this.inputName in ye){const At=this.normalizeInput(ye[this.inputName].currentValue);this._enabled=this.enabled(At),this._validator=this._enabled?this.createValidator(At):Be,this._onChange&&this._onChange()}}validate(ye){return this._validator(ye)}registerOnValidatorChange(ye){this._onChange=ye}enabled(ye){return null!=ye}}return Ge.\u0275fac=function(ye){return new(ye||Ge)},Ge.\u0275dir=e.lG2({type:Ge,features:[e.TTD]}),Ge})();const eo={provide:_e,useExisting:(0,e.Gpc)(()=>Ki),multi:!0},to={provide:_e,useExisting:(0,e.Gpc)(()=>gi),multi:!0};let Ki=(()=>{class Ge extends Xn{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=e.D6c,this.createValidator=ye=>V}enabled(ye){return ye}}return Ge.\u0275fac=function(){let Re;return function(At){return(Re||(Re=e.n5z(Ge)))(At||Ge)}}(),Ge.\u0275dir=e.lG2({type:Ge,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(ye,At){2&ye&&e.uIk("required",At._enabled?"":null)},inputs:{required:"required"},features:[e._Bn([eo]),e.qOj]}),Ge})(),gi=(()=>{class Ge extends Ki{constructor(){super(...arguments),this.createValidator=ye=>Q}}return Ge.\u0275fac=function(){let Re;return function(At){return(Re||(Re=e.n5z(Ge)))(At||Ge)}}(),Ge.\u0275dir=e.lG2({type:Ge,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(ye,At){2&ye&&e.uIk("required",At._enabled?"":null)},features:[e._Bn([to]),e.qOj]}),Ge})();const Yt={provide:_e,useExisting:(0,e.Gpc)(()=>vn),multi:!0};let vn=(()=>{class Ge extends Xn{constructor(){super(...arguments),this.inputName="pattern",this.normalizeInput=ye=>ye,this.createValidator=ye=>Se(ye)}}return Ge.\u0275fac=function(){let Re;return function(At){return(Re||(Re=e.n5z(Ge)))(At||Ge)}}(),Ge.\u0275dir=e.lG2({type:Ge,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(ye,At){2&ye&&e.uIk("pattern",At._enabled?At.pattern:null)},inputs:{pattern:"pattern"},features:[e._Bn([Yt]),e.qOj]}),Ge})(),zn=(()=>{class Ge{}return Ge.\u0275fac=function(ye){return new(ye||Ge)},Ge.\u0275mod=e.oAB({type:Ge}),Ge.\u0275inj=e.cJS({imports:[nn]}),Ge})(),Mi=(()=>{class Ge{}return Ge.\u0275fac=function(ye){return new(ye||Ge)},Ge.\u0275mod=e.oAB({type:Ge}),Ge.\u0275inj=e.cJS({imports:[zn]}),Ge})(),Kn=(()=>{class Ge{static withConfig(ye){return{ngModule:Ge,providers:[{provide:Dn,useValue:ye.warnOnNgModelWithFormControl}]}}}return Ge.\u0275fac=function(ye){return new(ye||Ge)},Ge.\u0275mod=e.oAB({type:Ge}),Ge.\u0275inj=e.cJS({imports:[zn]}),Ge})();class oi extends me{constructor(Re,ye,At){super(je(ye),ie(At,ye)),this.controls=Re,this._initObservables(),this._setUpdateStrategy(ye),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(Re){return this.controls[this._adjustIndex(Re)]}push(Re,ye={}){this.controls.push(Re),this._registerControl(Re),this.updateValueAndValidity({emitEvent:ye.emitEvent}),this._onCollectionChange()}insert(Re,ye,At={}){this.controls.splice(Re,0,ye),this._registerControl(ye),this.updateValueAndValidity({emitEvent:At.emitEvent})}removeAt(Re,ye={}){let At=this._adjustIndex(Re);At<0&&(At=0),this.controls[At]&&this.controls[At]._registerOnCollectionChange(()=>{}),this.controls.splice(At,1),this.updateValueAndValidity({emitEvent:ye.emitEvent})}setControl(Re,ye,At={}){let qt=this._adjustIndex(Re);qt<0&&(qt=0),this.controls[qt]&&this.controls[qt]._registerOnCollectionChange(()=>{}),this.controls.splice(qt,1),ye&&(this.controls.splice(qt,0,ye),this._registerControl(ye)),this.updateValueAndValidity({emitEvent:At.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(Re,ye={}){_t(this,0,Re),Re.forEach((At,qt)=>{ze(this,!1,qt),this.at(qt).setValue(At,{onlySelf:!0,emitEvent:ye.emitEvent})}),this.updateValueAndValidity(ye)}patchValue(Re,ye={}){null!=Re&&(Re.forEach((At,qt)=>{this.at(qt)&&this.at(qt).patchValue(At,{onlySelf:!0,emitEvent:ye.emitEvent})}),this.updateValueAndValidity(ye))}reset(Re=[],ye={}){this._forEachChild((At,qt)=>{At.reset(Re[qt],{onlySelf:!0,emitEvent:ye.emitEvent})}),this._updatePristine(ye),this._updateTouched(ye),this.updateValueAndValidity(ye)}getRawValue(){return this.controls.map(Re=>Re.getRawValue())}clear(Re={}){this.controls.length<1||(this._forEachChild(ye=>ye._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:Re.emitEvent}))}_adjustIndex(Re){return Re<0?Re+this.length:Re}_syncPendingControls(){let Re=this.controls.reduce((ye,At)=>!!At._syncPendingControls()||ye,!1);return Re&&this.updateValueAndValidity({onlySelf:!0}),Re}_forEachChild(Re){this.controls.forEach((ye,At)=>{Re(ye,At)})}_updateValue(){this.value=this.controls.filter(Re=>Re.enabled||this.disabled).map(Re=>Re.value)}_anyControls(Re){return this.controls.some(ye=>ye.enabled&&Re(ye))}_setUpControls(){this._forEachChild(Re=>this._registerControl(Re))}_allControlsDisabled(){for(const Re of this.controls)if(Re.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(Re){Re.setParent(this),Re._registerOnCollectionChange(this._onCollectionChange)}_find(Re){var ye;return null!==(ye=this.at(Re))&&void 0!==ye?ye:null}}function qi(Ge){return!!Ge&&(void 0!==Ge.asyncValidators||void 0!==Ge.validators||void 0!==Ge.updateOn)}let Ri=(()=>{class Ge{constructor(){this.useNonNullable=!1}get nonNullable(){const ye=new Ge;return ye.useNonNullable=!0,ye}group(ye,At=null){const qt=this._reduceControls(ye);let An={};return qi(At)?An=At:null!==At&&(An.validators=At.validator,An.asyncValidators=At.asyncValidator),new qe(qt,An)}control(ye,At,qt){let An={};return this.useNonNullable?(qi(At)?An=At:(An.validators=At,An.asyncValidators=qt),new Bn(ye,{...An,nonNullable:!0})):new Bn(ye,At,qt)}array(ye,At,qt){const An=ye.map(di=>this._createControl(di));return new oi(An,At,qt)}_reduceControls(ye){const At={};return Object.keys(ye).forEach(qt=>{At[qt]=this._createControl(ye[qt])}),At}_createControl(ye){return ye instanceof Bn||ye instanceof me?ye:Array.isArray(ye)?this.control(ye[0],ye.length>1?ye[1]:null,ye.length>2?ye[2]:null):this.control(ye)}}return Ge.\u0275fac=function(ye){return new(ye||Ge)},Ge.\u0275prov=e.Yz7({token:Ge,factory:Ge.\u0275fac,providedIn:Kn}),Ge})(),Nr=(()=>{class Ge extends Ri{group(ye,At=null){return super.group(ye,At)}control(ye,At,qt){return super.control(ye,At,qt)}array(ye,At,qt){return super.array(ye,At,qt)}}return Ge.\u0275fac=function(){let Re;return function(At){return(Re||(Re=e.n5z(Ge)))(At||Ge)}}(),Ge.\u0275prov=e.Yz7({token:Ge,factory:Ge.\u0275fac,providedIn:Kn}),Ge})()},47957:(Qe,he,u)=>{"use strict";u.d(he,{Bb:()=>Tt,XC:()=>B,ZL:()=>Ye});var e=u(12687),m=u(21281),A=u(83353),w=u(94650),p=u(3238),g=u(50727),T=u(77579),E=u(49770),S=u(56451),R=u(39646),v=u(54968),D=u(36895),F=u(98184),z=u(67376),$=u(40445),G=u(29521),q=u(84080),_e=u(24006),ce=u(59549),Te=u(68675),b=u(63900),H=u(95698),L=u(39300),V=u(54004),Q=u(18505),ae=u(91005);const xe=["panel"];function ge(J,Xe){if(1&J&&(w.TgZ(0,"div",0,1),w.Hsn(2),w.qZA()),2&J){const le=Xe.id,ne=w.oxw();w.Q6J("id",ne.id)("ngClass",ne._classList),w.uIk("aria-label",ne.ariaLabel||null)("aria-labelledby",ne._getPanelAriaLabelledby(le))}}const Se=["*"];let Be=0;class pe{constructor(Xe,le){this.source=Xe,this.option=le}}const $e=(0,p.Kr)(class{}),Ce=new w.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function de(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1}}});let re=(()=>{class J extends $e{constructor(le,ne,ke,Ee){super(),this._changeDetectorRef=le,this._elementRef=ne,this._activeOptionChanges=g.w0.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new w.vpe,this.opened=new w.vpe,this.closed=new w.vpe,this.optionActivated=new w.vpe,this._classList={},this.id="mat-autocomplete-"+Be++,this.inertGroups=Ee?.SAFARI||!1,this._autoActiveFirstOption=!!ke.autoActiveFirstOption,this._autoSelectActiveOption=!!ke.autoSelectActiveOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(le){this._autoActiveFirstOption=(0,m.Ig)(le)}get autoSelectActiveOption(){return this._autoSelectActiveOption}set autoSelectActiveOption(le){this._autoSelectActiveOption=(0,m.Ig)(le)}set classList(le){this._classList=le&&le.length?(0,m.du)(le).reduce((ne,ke)=>(ne[ke]=!0,ne),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new e.s1(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(le=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[le]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(le){this.panel&&(this.panel.nativeElement.scrollTop=le)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(le){const ne=new pe(this,le);this.optionSelected.emit(ne)}_getPanelAriaLabelledby(le){return this.ariaLabel?null:this.ariaLabelledby?(le?le+" ":"")+this.ariaLabelledby:le}_setVisibilityClasses(le){le[this._visibleClass]=this.showPanel,le[this._hiddenClass]=!this.showPanel}}return J.\u0275fac=function(le){return new(le||J)(w.Y36(w.sBO),w.Y36(w.SBq),w.Y36(Ce),w.Y36(A.t4))},J.\u0275dir=w.lG2({type:J,viewQuery:function(le,ne){if(1&le&&(w.Gf(w.Rgc,7),w.Gf(xe,5)),2&le){let ke;w.iGM(ke=w.CRH())&&(ne.template=ke.first),w.iGM(ke=w.CRH())&&(ne.panel=ke.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",autoSelectActiveOption:"autoSelectActiveOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[w.qOj]}),J})(),B=(()=>{class J extends re{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return J.\u0275fac=function(){let Xe;return function(ne){return(Xe||(Xe=w.n5z(J)))(ne||J)}}(),J.\u0275cmp=w.Xpm({type:J,selectors:[["mat-autocomplete"]],contentQueries:function(le,ne,ke){if(1&le&&(w.Suo(ke,p.K7,5),w.Suo(ke,p.ey,5)),2&le){let Ee;w.iGM(Ee=w.CRH())&&(ne.optionGroups=Ee),w.iGM(Ee=w.CRH())&&(ne.options=Ee)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[w._Bn([{provide:p.HF,useExisting:J}]),w.qOj],ngContentSelectors:Se,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(le,ne){1&le&&(w.F$t(),w.YNc(0,ge,3,4,"ng-template"))},dependencies:[D.mk],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}"],encapsulation:2,changeDetection:0}),J})();const Y=new w.OlP("mat-autocomplete-scroll-strategy"),De={provide:Y,deps:[F.aV],useFactory:function be(J){return()=>J.scrollStrategies.reposition()}},We={provide:_e.JU,useExisting:(0,w.Gpc)(()=>Ye),multi:!0};let nt=(()=>{class J{constructor(le,ne,ke,Ee,ot,it,oe,X,r,s,_){this._element=le,this._overlay=ne,this._viewContainerRef=ke,this._zone=Ee,this._changeDetectorRef=ot,this._dir=oe,this._formField=X,this._document=r,this._viewportRuler=s,this._defaults=_,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=g.w0.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new T.x,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=(0,E.P)(()=>{const c=this.autocomplete?this.autocomplete.options:null;return c?c.changes.pipe((0,Te.O)(c),(0,b.w)(()=>(0,S.T)(...c.map(a=>a.onSelectionChange)))):this._zone.onStable.pipe((0,H.q)(1),(0,b.w)(()=>this.optionSelections))}),this._scrollStrategy=it}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(le){this._autocompleteDisabled=(0,m.Ig)(le)}ngAfterViewInit(){const le=this._getWindow();typeof le<"u"&&this._zone.runOutsideAngular(()=>le.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(le){le.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const le=this._getWindow();typeof le<"u"&&le.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._isOpen=this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return(0,S.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,L.h)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,L.h)(()=>this._overlayAttached)):(0,R.of)()).pipe((0,V.U)(le=>le instanceof p.rN?le:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,S.T)((0,v.R)(this._document,"click"),(0,v.R)(this._document,"auxclick"),(0,v.R)(this._document,"touchend")).pipe((0,L.h)(le=>{const ne=(0,A.sA)(le),ke=this._formField?this._formField._elementRef.nativeElement:null,Ee=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&ne!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!ke||!ke.contains(ne))&&(!Ee||!Ee.contains(ne))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(ne)}))}writeValue(le){Promise.resolve(null).then(()=>this._assignOptionValue(le))}registerOnChange(le){this._onChange=le}registerOnTouched(le){this._onTouched=le}setDisabledState(le){this._element.nativeElement.disabled=le}_handleKeydown(le){const ne=le.keyCode,ke=(0,G.Vb)(le);if(ne===G.hY&&!ke&&le.preventDefault(),this.activeOption&&ne===G.K5&&this.panelOpen&&!ke)this.activeOption._selectViaInteraction(),this._resetActiveItem(),le.preventDefault();else if(this.autocomplete){const Ee=this.autocomplete._keyManager.activeItem,ot=ne===G.LH||ne===G.JH;ne===G.Mf||ot&&!ke&&this.panelOpen?this.autocomplete._keyManager.onKeydown(le):ot&&this._canOpen()&&this.openPanel(),(ot||this.autocomplete._keyManager.activeItem!==Ee)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._element.nativeElement.value),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(le){let ne=le.target,ke=ne.value;"number"===ne.type&&(ke=""==ke?null:parseFloat(ke)),this._previousValue!==ke&&(this._previousValue=ke,this._pendingAutoselectedOption=null,this._onChange(ke),this._canOpen()&&this._document.activeElement===le.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this.openPanel()}_floatLabel(le=!1){this._formField&&"auto"===this._formField.floatLabel&&(le?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const le=this._zone.onStable.pipe((0,H.q)(1)),ne=this.autocomplete.options.changes.pipe((0,Q.b)(()=>this._positionStrategy.reapplyLastPosition()),(0,ae.g)(0));return(0,S.T)(le,ne).pipe((0,b.w)(()=>(this._zone.run(()=>{const ke=this.panelOpen;this._resetActiveItem(),this.autocomplete._setVisibility(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),ke!==this.panelOpen&&(this.panelOpen?this.autocomplete.opened.emit():this.autocomplete.closed.emit())}),this.panelClosingActions)),(0,H.q)(1)).subscribe(ke=>this._setValueAndClose(ke))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_assignOptionValue(le){const ne=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(le):le;this._updateNativeInputValue(ne??"")}_updateNativeInputValue(le){this._formField?this._formField._control.value=le:this._element.nativeElement.value=le,this._previousValue=le}_setValueAndClose(le){const ne=le?le.source:this._pendingAutoselectedOption;ne&&(this._clearPreviousSelectedOption(ne),this._assignOptionValue(ne.value),this._onChange(ne.value),this.autocomplete._emitSelectEvent(ne),this._element.nativeElement.focus()),this.closePanel()}_clearPreviousSelectedOption(le){this.autocomplete.options.forEach(ne=>{ne!==le&&ne.selected&&ne.deselect()})}_attachOverlay(){let le=this._overlayRef;var ne;le?(this._positionStrategy.setOrigin(this._getConnectedElement()),le.updateSize({width:this._getPanelWidth()})):(this._portal=new q.UE(this.autocomplete.template,this._viewContainerRef,{id:null===(ne=this._formField)||void 0===ne?void 0:ne.getLabelId()}),le=this._overlay.create(this._getOverlayConfig()),this._overlayRef=le,this._handleOverlayEvents(le),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&le&&le.updateSize({width:this._getPanelWidth()})})),le&&!le.hasAttached()&&(le.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const ke=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&ke!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){var le;return new F.X_({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(le=this._defaults)||void 0===le?void 0:le.overlayPanelClass})}_getOverlayPosition(){const le=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(le),this._positionStrategy=le,le}_setStrategyPositions(le){const ne=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],ke=this._aboveClass,Ee=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:ke},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:ke}];let ot;ot="above"===this.position?Ee:"below"===this.position?ne:[...ne,...Ee],le.withPositions(ot)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const le=this.autocomplete;le.autoActiveFirstOption?le._keyManager.setFirstItemActive():le._keyManager.setActiveItem(-1)}_canOpen(){const le=this._element.nativeElement;return!le.readOnly&&!le.disabled&&!this._autocompleteDisabled}_getWindow(){var le;return(null===(le=this._document)||void 0===le?void 0:le.defaultView)||window}_scrollToOption(le){const ne=this.autocomplete,ke=(0,p.CB)(le,ne.options,ne.optionGroups);if(0===le&&1===ke)ne._setScrollTop(0);else if(ne.panel){const Ee=ne.options.toArray()[le];if(Ee){const ot=Ee._getHostElement(),it=(0,p.jH)(ot.offsetTop,ot.offsetHeight,ne._getScrollTop(),ne.panel.nativeElement.offsetHeight);ne._setScrollTop(it)}}}_handleOverlayEvents(le){le.keydownEvents().subscribe(ne=>{var ke;(ne.keyCode===G.hY&&!(0,G.Vb)(ne)||ne.keyCode===G.LH&&(0,G.Vb)(ne,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(null!==(ke=this._valueBeforeAutoSelection)&&void 0!==ke?ke:""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),ne.stopPropagation(),ne.preventDefault())}),le.outsidePointerEvents().subscribe()}}return J.\u0275fac=function(le){return new(le||J)(w.Y36(w.SBq),w.Y36(F.aV),w.Y36(w.s_b),w.Y36(w.R0b),w.Y36(w.sBO),w.Y36(Y),w.Y36($.Is,8),w.Y36(ce.G_,9),w.Y36(D.K0,8),w.Y36(z.rL),w.Y36(Ce,8))},J.\u0275dir=w.lG2({type:J,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[w.TTD]}),J})(),Ye=(()=>{class J extends nt{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return J.\u0275fac=function(){let Xe;return function(ne){return(Xe||(Xe=w.n5z(J)))(ne||J)}}(),J.\u0275dir=w.lG2({type:J,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(le,ne){1&le&&w.NdJ("focusin",function(){return ne._handleFocus()})("blur",function(){return ne._onTouched()})("input",function(Ee){return ne._handleInput(Ee)})("keydown",function(Ee){return ne._handleKeydown(Ee)})("click",function(){return ne._handleClick()}),2&le&&w.uIk("autocomplete",ne.autocompleteAttribute)("role",ne.autocompleteDisabled?null:"combobox")("aria-autocomplete",ne.autocompleteDisabled?null:"list")("aria-activedescendant",ne.panelOpen&&ne.activeOption?ne.activeOption.id:null)("aria-expanded",ne.autocompleteDisabled?null:ne.panelOpen.toString())("aria-owns",ne.autocompleteDisabled||!ne.panelOpen||null==ne.autocomplete?null:ne.autocomplete.id)("aria-haspopup",ne.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[w._Bn([We]),w.qOj]}),J})(),Tt=(()=>{class J{}return J.\u0275fac=function(le){return new(le||J)},J.\u0275mod=w.oAB({type:J}),J.\u0275inj=w.cJS({providers:[De],imports:[F.U8,p.Ng,p.BQ,D.ez,z.ZD,p.Ng,p.BQ]}),J})()},42673:(Qe,he,u)=>{"use strict";u.d(he,{g:()=>S,k:()=>E});var e=u(94650),m=u(3238),A=u(12687),w=u(21281);let p=0;const g=(0,m.Id)(class{}),T="mat-badge-content";let E=(()=>{class R extends g{constructor(D,F,z,$,G){super(),this._ngZone=D,this._elementRef=F,this._ariaDescriber=z,this._renderer=$,this._animationMode=G,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=p++,this._isInitialized=!1}get color(){return this._color}set color(D){this._setColor(D),this._color=D}get overlap(){return this._overlap}set overlap(D){this._overlap=(0,w.Ig)(D)}get content(){return this._content}set content(D){this._updateRenderedContent(D)}get description(){return this._description}set description(D){this._updateHostAriaDescription(D)}get hidden(){return this._hidden}set hidden(D){this._hidden=(0,w.Ig)(D)}isAbove(){return-1===this.position.indexOf("below")}isAfter(){return-1===this.position.indexOf("before")}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=!0}ngOnDestroy(){this._renderer.destroyNode&&this._renderer.destroyNode(this._badgeElement),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_createBadgeElement(){const D=this._renderer.createElement("span"),F="mat-badge-active";return D.setAttribute("id",`mat-badge-content-${this._id}`),D.setAttribute("aria-hidden","true"),D.classList.add(T),"NoopAnimations"===this._animationMode&&D.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(D),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{D.classList.add(F)})}):D.classList.add(F),D}_updateRenderedContent(D){const F=`${D??""}`.trim();this._isInitialized&&F&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=F),this._content=F}_updateHostAriaDescription(D){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),D&&this._ariaDescriber.describe(this._elementRef.nativeElement,D),this._description=D}_setColor(D){const F=this._elementRef.nativeElement.classList;F.remove(`mat-badge-${this._color}`),D&&F.add(`mat-badge-${D}`)}_clearExistingBadges(){const D=this._elementRef.nativeElement.querySelectorAll(`:scope > .${T}`);for(const F of Array.from(D))F!==this._badgeElement&&F.remove()}}return R.\u0275fac=function(D){return new(D||R)(e.Y36(e.R0b),e.Y36(e.SBq),e.Y36(A.$s),e.Y36(e.Qsj),e.Y36(e.QbO,8))},R.\u0275dir=e.lG2({type:R,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(D,F){2&D&&e.ekj("mat-badge-overlap",F.overlap)("mat-badge-above",F.isAbove())("mat-badge-below",!F.isAbove())("mat-badge-before",!F.isAfter())("mat-badge-after",F.isAfter())("mat-badge-small","small"===F.size)("mat-badge-medium","medium"===F.size)("mat-badge-large","large"===F.size)("mat-badge-hidden",F.hidden||!F.content)("mat-badge-disabled",F.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],position:["matBadgePosition","position"],content:["matBadge","content"],description:["matBadgeDescription","description"],size:["matBadgeSize","size"],hidden:["matBadgeHidden","hidden"]},features:[e.qOj]}),R})(),S=(()=>{class R{}return R.\u0275fac=function(D){return new(D||R)},R.\u0275mod=e.oAB({type:R}),R.\u0275inj=e.cJS({imports:[A.rt,m.BQ,m.BQ]}),R})()},4859:(Qe,he,u)=>{"use strict";u.d(he,{lW:()=>R,ot:()=>D});var e=u(94650),m=u(3238),A=u(12687);const w=["mat-button",""],p=["*"],E=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],S=(0,m.pj)((0,m.Id)((0,m.Kr)(class{constructor(F){this._elementRef=F}})));let R=(()=>{class F extends S{constructor($,G,q){super($),this._focusMonitor=G,this._animationMode=q,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const _e of E)this._hasHostAttributes(_e)&&this._getHostElement().classList.add(_e);$.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($,G){$?this._focusMonitor.focusVia(this._getHostElement(),$,G):this._getHostElement().focus(G)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...$){return $.some(G=>this._getHostElement().hasAttribute(G))}}return F.\u0275fac=function($){return new($||F)(e.Y36(e.SBq),e.Y36(A.tE),e.Y36(e.QbO,8))},F.\u0275cmp=e.Xpm({type:F,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($,G){if(1&$&&e.Gf(m.wG,5),2&$){let q;e.iGM(q=e.CRH())&&(G.ripple=q.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function($,G){2&$&&(e.uIk("disabled",G.disabled||null),e.ekj("_mat-animation-noopable","NoopAnimations"===G._animationMode)("mat-button-disabled",G.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[e.qOj],attrs:w,ngContentSelectors:p,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($,G){1&$&&(e.F$t(),e.TgZ(0,"span",0),e.Hsn(1),e.qZA(),e._UZ(2,"span",1)(3,"span",2)),2&$&&(e.xp6(2),e.ekj("mat-button-ripple-round",G.isRoundButton||G.isIconButton),e.Q6J("matRippleDisabled",G._isRippleDisabled())("matRippleCentered",G.isIconButton)("matRippleTrigger",G._getHostElement()))},dependencies:[m.wG],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.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;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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-fab._mat-animation-noopable{transition:none !important;animation:none !important}.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;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.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:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.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}"],encapsulation:2,changeDetection:0}),F})(),D=(()=>{class F{}return F.\u0275fac=function($){return new($||F)},F.\u0275mod=e.oAB({type:F}),F.\u0275inj=e.cJS({imports:[m.si,m.BQ,m.BQ]}),F})()},73546:(Qe,he,u)=>{"use strict";u.d(he,{$j:()=>v,QW:()=>L,a8:()=>Te,dk:()=>b,dn:()=>S,kc:()=>ce,n5:()=>R});var e=u(94650),m=u(3238);const A=["*",[["mat-card-footer"]]],w=["*","mat-card-footer"],p=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],g=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"];let S=(()=>{class V{}return V.\u0275fac=function(ae){return new(ae||V)},V.\u0275dir=e.lG2({type:V,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),V})(),R=(()=>{class V{}return V.\u0275fac=function(ae){return new(ae||V)},V.\u0275dir=e.lG2({type:V,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),V})(),v=(()=>{class V{}return V.\u0275fac=function(ae){return new(ae||V)},V.\u0275dir=e.lG2({type:V,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),V})(),ce=(()=>{class V{}return V.\u0275fac=function(ae){return new(ae||V)},V.\u0275dir=e.lG2({type:V,selectors:[["","mat-card-avatar",""],["","matCardAvatar",""]],hostAttrs:[1,"mat-card-avatar"]}),V})(),Te=(()=>{class V{constructor(ae){this._animationMode=ae}}return V.\u0275fac=function(ae){return new(ae||V)(e.Y36(e.QbO,8))},V.\u0275cmp=e.Xpm({type:V,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(ae,xe){2&ae&&e.ekj("_mat-animation-noopable","NoopAnimations"===xe._animationMode)},exportAs:["matCard"],ngContentSelectors:w,decls:2,vars:0,template:function(ae,xe){1&ae&&(e.F$t(A),e.Hsn(0),e.Hsn(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-card._mat-animation-noopable{transition:none !important;animation:none !important}.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;display:block;overflow:hidden}.mat-card-image img{width:100%}.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:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-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}"],encapsulation:2,changeDetection:0}),V})(),b=(()=>{class V{}return V.\u0275fac=function(ae){return new(ae||V)},V.\u0275cmp=e.Xpm({type:V,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:g,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(ae,xe){1&ae&&(e.F$t(p),e.Hsn(0),e.TgZ(1,"div",0),e.Hsn(2,1),e.qZA(),e.Hsn(3,2))},encapsulation:2,changeDetection:0}),V})(),L=(()=>{class V{}return V.\u0275fac=function(ae){return new(ae||V)},V.\u0275mod=e.oAB({type:V}),V.\u0275inj=e.cJS({imports:[m.BQ,m.BQ]}),V})()},56709:(Qe,he,u)=>{"use strict";u.d(he,{oG:()=>ce,p9:()=>L});var e=u(12687),m=u(21281),A=u(94650),w=u(24006),p=u(3238),g=u(49643);const T=["input"],E=["label"],S=function(V){return{enterDuration:V}},R=["*"],v=new A.OlP("mat-checkbox-default-options",{providedIn:"root",factory:D});function D(){return{color:"accent",clickAction:"check-indeterminate"}}let F=0;const z=D(),$={provide:w.JU,useExisting:(0,A.Gpc)(()=>ce),multi:!0};class G{}const q=(0,p.sb)((0,p.pj)((0,p.Kr)((0,p.Id)(class{constructor(V){this._elementRef=V}}))));let _e=(()=>{class V extends q{constructor(ae,xe,ge,Se,Be,pe,$e){super(xe),this._changeDetectorRef=ge,this._ngZone=Se,this._animationMode=pe,this._options=$e,this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new A.vpe,this.indeterminateChange=new A.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||z,this.color=this.defaultColor=this._options.color||z.color,this.tabIndex=parseInt(Be)||0,this.id=this._uniqueId=`${ae}${++F}`}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(ae){this._required=(0,m.Ig)(ae)}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(ae){const xe=(0,m.Ig)(ae);xe!=this.checked&&(this._checked=xe,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(ae){const xe=(0,m.Ig)(ae);xe!==this.disabled&&(this._disabled=xe,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(ae){const xe=ae!=this._indeterminate;this._indeterminate=(0,m.Ig)(ae),xe&&(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(ae){this.checked=!!ae}registerOnChange(ae){this._controlValueAccessorChangeFn=ae}registerOnTouched(ae){this._onTouched=ae}setDisabledState(ae){this.disabled=ae}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(ae){let xe=this._currentCheckState,ge=this._getAnimationTargetElement();if(xe!==ae&&ge&&(this._currentAnimationClass&&ge.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(xe,ae),this._currentCheckState=ae,this._currentAnimationClass.length>0)){ge.classList.add(this._currentAnimationClass);const Se=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{ge.classList.remove(Se)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){var ae;const xe=null===(ae=this._options)||void 0===ae?void 0:ae.clickAction;this.disabled||"noop"===xe?!this.disabled&&"noop"===xe&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==xe&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}_onInteractionEvent(ae){ae.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(ae,xe){if("NoopAnimations"===this._animationMode)return"";switch(ae){case 0:if(1===xe)return this._animationClasses.uncheckedToChecked;if(3==xe)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===xe?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===xe?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===xe?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(ae){const xe=this._inputElement;xe&&(xe.nativeElement.indeterminate=ae)}}return V.\u0275fac=function(ae){A.$Z()},V.\u0275dir=A.lG2({type:V,viewQuery:function(ae,xe){if(1&ae&&(A.Gf(T,5),A.Gf(E,5),A.Gf(p.wG,5)),2&ae){let ge;A.iGM(ge=A.CRH())&&(xe._inputElement=ge.first),A.iGM(ge=A.CRH())&&(xe._labelElement=ge.first),A.iGM(ge=A.CRH())&&(xe.ripple=ge.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},features:[A.qOj]}),V})(),ce=(()=>{class V extends _e{constructor(ae,xe,ge,Se,Be,pe,$e){super("mat-checkbox-",ae,xe,Se,Be,pe,$e),this._focusMonitor=ge,this._animationClasses={uncheckedToChecked:"mat-checkbox-anim-unchecked-checked",uncheckedToIndeterminate:"mat-checkbox-anim-unchecked-indeterminate",checkedToUnchecked:"mat-checkbox-anim-checked-unchecked",checkedToIndeterminate:"mat-checkbox-anim-checked-indeterminate",indeterminateToChecked:"mat-checkbox-anim-indeterminate-checked",indeterminateToUnchecked:"mat-checkbox-anim-indeterminate-unchecked"}}_createChangeEvent(ae){const xe=new G;return xe.source=this,xe.checked=ae,xe}_getAnimationTargetElement(){return this._elementRef.nativeElement}ngAfterViewInit(){super.ngAfterViewInit(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(ae=>{ae||this._onBlur()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onInputClick(ae){ae.stopPropagation(),super._handleInputClick()}focus(ae,xe){ae?this._focusMonitor.focusVia(this._inputElement,ae,xe):this._inputElement.nativeElement.focus(xe)}}return V.\u0275fac=function(ae){return new(ae||V)(A.Y36(A.SBq),A.Y36(A.sBO),A.Y36(e.tE),A.Y36(A.R0b),A.$8M("tabindex"),A.Y36(A.QbO,8),A.Y36(v,8))},V.\u0275cmp=A.Xpm({type:V,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(ae,xe){2&ae&&(A.Ikx("id",xe.id),A.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null),A.ekj("mat-checkbox-indeterminate",xe.indeterminate)("mat-checkbox-checked",xe.checked)("mat-checkbox-disabled",xe.disabled)("mat-checkbox-label-before","before"==xe.labelPosition)("_mat-animation-noopable","NoopAnimations"===xe._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[A._Bn([$]),A.qOj],ngContentSelectors:R,decls:17,vars:21,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","aria-hidden","true",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(ae,xe){if(1&ae&&(A.F$t(),A.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),A.NdJ("change",function(Se){return xe._onInteractionEvent(Se)})("click",function(Se){return xe._onInputClick(Se)}),A.qZA(),A.TgZ(5,"span",5),A._UZ(6,"span",6),A.qZA(),A._UZ(7,"span",7),A.TgZ(8,"span",8),A.O4$(),A.TgZ(9,"svg",9),A._UZ(10,"path",10),A.qZA(),A.kcU(),A._UZ(11,"span",11),A.qZA()(),A.TgZ(12,"span",12,13),A.NdJ("cdkObserveContent",function(){return xe._onLabelTextChange()}),A.TgZ(14,"span",14),A._uU(15,"\xa0"),A.qZA(),A.Hsn(16),A.qZA()()),2&ae){const ge=A.MAs(1),Se=A.MAs(13);A.uIk("for",xe.inputId),A.xp6(2),A.ekj("mat-checkbox-inner-container-no-side-margin",!Se.textContent||!Se.textContent.trim()),A.xp6(1),A.Q6J("id",xe.inputId)("required",xe.required)("checked",xe.checked)("disabled",xe.disabled)("tabIndex",xe.tabIndex),A.uIk("value",xe.value)("name",xe.name)("aria-label",xe.ariaLabel||null)("aria-labelledby",xe.ariaLabelledby)("aria-checked",xe._getAriaChecked())("aria-describedby",xe.ariaDescribedby),A.xp6(2),A.Q6J("matRippleTrigger",ge)("matRippleDisabled",xe._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",A.VKq(19,S,"NoopAnimations"===xe._animationMode?0:150))}},dependencies:[p.wG,g.wD],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:rgba(0,0,0,0);position:relative}.mat-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.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}.mat-checkbox-layout{-webkit-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;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:rgba(0,0,0,0);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}.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);-webkit-print-color-adjust:exact;color-adjust:exact}._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:rgba(0,0,0,0)}.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-input:focus~.mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),V})(),H=(()=>{class V{}return V.\u0275fac=function(ae){return new(ae||V)},V.\u0275mod=A.oAB({type:V}),V.\u0275inj=A.cJS({}),V})(),L=(()=>{class V{}return V.\u0275fac=function(ae){return new(ae||V)},V.\u0275mod=A.oAB({type:V}),V.\u0275inj=A.cJS({imports:[p.si,p.BQ,g.Q8,H,p.BQ,H]}),V})()},77331:(Qe,he,u)=>{"use strict";u.d(he,{HS:()=>ae,Hi:()=>B,oH:()=>de,qn:()=>$e});var e=u(29521),m=u(94650),A=u(3238),w=u(21281),p=u(83353),g=u(36895),T=u(77579),E=u(56451),S=u(95698),R=u(82722),v=u(68675),D=u(12687),F=u(40445),z=u(95017),$=u(24006),G=u(59549);const q=["*"],ce=new m.OlP("MatChipRemove"),Te=new m.OlP("MatChipAvatar"),b=new m.OlP("MatChipTrailingIcon");class H{constructor(Me){this._elementRef=Me}}const L=(0,A.sb)((0,A.pj)((0,A.Kr)(H),"primary"),-1);let ae=(()=>{class N extends L{constructor(Y,be,De,We,Pe,nt,Ye,Tt){super(Y),this._ngZone=be,this._changeDetectorRef=Pe,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListDisabled=!1,this.role="option",this._selected=!1,this._selectable=!0,this._disabled=!1,this._removable=!0,this._onFocus=new T.x,this._onBlur=new T.x,this.selectionChange=new m.vpe,this.destroyed=new m.vpe,this.removed=new m.vpe,this._addHostClassName(),this._chipRippleTarget=nt.createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new A.IR(this,be,this._chipRippleTarget,De),this._chipRipple.setupTriggerEvents(Y),this.rippleConfig=We||{},this._animationsDisabled="NoopAnimations"===Ye,this.tabIndex=null!=Tt&&parseInt(Tt)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(Y){const be=(0,w.Ig)(Y);be!==this._selected&&(this._selected=be,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(Y){this._value=Y}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(Y){this._selectable=(0,w.Ig)(Y)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(Y){this._disabled=(0,w.Ig)(Y)}get removable(){return this._removable}set removable(Y){this._removable=(0,w.Ig)(Y)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}_addHostClassName(){const Y="mat-basic-chip",be=this._elementRef.nativeElement;be.hasAttribute(Y)||be.tagName.toLowerCase()===Y?be.classList.add(Y):be.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(Y=!1){return this._selected=!this.selected,this._dispatchSelectionChange(Y),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(Y){this.disabled&&Y.preventDefault()}_handleKeydown(Y){if(!this.disabled)switch(Y.keyCode){case e.yY:case e.ZH:this.remove(),Y.preventDefault();break;case e.L_:this.selectable&&this.toggleSelected(!0),Y.preventDefault()}}_blur(){this._ngZone.onStable.pipe((0,S.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(Y=!1){this.selectionChange.emit({source:this,isUserInput:Y,selected:this._selected})}}return N.\u0275fac=function(Y){return new(Y||N)(m.Y36(m.SBq),m.Y36(m.R0b),m.Y36(p.t4),m.Y36(A.Y2,8),m.Y36(m.sBO),m.Y36(g.K0),m.Y36(m.QbO,8),m.$8M("tabindex"))},N.\u0275dir=m.lG2({type:N,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(Y,be,De){if(1&Y&&(m.Suo(De,Te,5),m.Suo(De,b,5),m.Suo(De,ce,5)),2&Y){let We;m.iGM(We=m.CRH())&&(be.avatar=We.first),m.iGM(We=m.CRH())&&(be.trailingIcon=We.first),m.iGM(We=m.CRH())&&(be.removeIcon=We.first)}},hostAttrs:[1,"mat-chip","mat-focus-indicator"],hostVars:15,hostBindings:function(Y,be){1&Y&&m.NdJ("click",function(We){return be._handleClick(We)})("keydown",function(We){return be._handleKeydown(We)})("focus",function(){return be.focus()})("blur",function(){return be._blur()}),2&Y&&(m.uIk("tabindex",be.disabled?null:be.tabIndex)("role",be.role)("disabled",be.disabled||null)("aria-disabled",be.disabled.toString())("aria-selected",be.ariaSelected),m.ekj("mat-chip-selected",be.selected)("mat-chip-with-avatar",be.avatar)("mat-chip-with-trailing-icon",be.trailingIcon||be.removeIcon)("mat-chip-disabled",be.disabled)("_mat-animation-noopable",be._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",role:"role",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[m.qOj]}),N})();const ge=new m.OlP("mat-chips-default-options"),Se=(0,A.FD)(class{constructor(N,Me,Y,be){this._defaultErrorStateMatcher=N,this._parentForm=Me,this._parentFormGroup=Y,this.ngControl=be,this.stateChanges=new T.x}});let Be=0;class pe{constructor(Me,Y){this.source=Me,this.value=Y}}let $e=(()=>{class N extends Se{constructor(Y,be,De,We,Pe,nt,Ye){super(nt,We,Pe,Ye),this._elementRef=Y,this._changeDetectorRef=be,this._dir=De,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new T.x,this._uid="mat-chip-list-"+Be++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(Tt,J)=>Tt===J,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new m.vpe,this.valueChange=new m.vpe,this.ngControl&&(this.ngControl.valueAccessor=this)}get selected(){var Y,be;return this.multiple?(null===(Y=this._selectionModel)||void 0===Y?void 0:Y.selected)||[]:null===(be=this._selectionModel)||void 0===be?void 0:be.selected[0]}get role(){return this._explicitRole?this._explicitRole:this.empty?null:"listbox"}set role(Y){this._explicitRole=Y}get multiple(){return this._multiple}set multiple(Y){this._multiple=(0,w.Ig)(Y),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(Y){this._compareWith=Y,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(Y){this.writeValue(Y),this._value=Y}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){var Y,be,De,We;return null!==(Y=null!==(be=this._required)&&void 0!==be?be:null===(De=this.ngControl)||void 0===De||null===(We=De.control)||void 0===We?void 0:We.hasValidator($.kI.required))&&void 0!==Y&&Y}set required(Y){this._required=(0,w.Ig)(Y),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(Y){this._placeholder=Y,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(Y){this._disabled=(0,w.Ig)(Y),this._syncChipsState()}get selectable(){return this._selectable}set selectable(Y){this._selectable=(0,w.Ig)(Y),this.chips&&this.chips.forEach(be=>be.chipListSelectable=this._selectable)}set tabIndex(Y){this._userTabIndex=Y,this._tabIndex=Y}get chipSelectionChanges(){return(0,E.T)(...this.chips.map(Y=>Y.selectionChange))}get chipFocusChanges(){return(0,E.T)(...this.chips.map(Y=>Y._onFocus))}get chipBlurChanges(){return(0,E.T)(...this.chips.map(Y=>Y._onBlur))}get chipRemoveChanges(){return(0,E.T)(...this.chips.map(Y=>Y.destroyed))}ngAfterContentInit(){this._keyManager=new D.Em(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe((0,R.R)(this._destroyed)).subscribe(Y=>this._keyManager.withHorizontalOrientation(Y)),this._keyManager.tabOut.pipe((0,R.R)(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe((0,v.O)(null),(0,R.R)(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 z.Ov(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(Y){this._chipInput=Y,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",Y.id)}setDescribedByIds(Y){Y.length?this._elementRef.nativeElement.setAttribute("aria-describedby",Y.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}writeValue(Y){this.chips&&this._setSelectionByValue(Y,!1)}registerOnChange(Y){this._onChange=Y}registerOnTouched(Y){this._onTouched=Y}setDisabledState(Y){this.disabled=Y,this.stateChanges.next()}onContainerClick(Y){this._originatesFromChip(Y)||this.focus()}focus(Y){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(Y),this.stateChanges.next()))}_focusInput(Y){this._chipInput&&this._chipInput.focus(Y)}_keydown(Y){const be=Y.target;be&&be.classList.contains("mat-chip")&&(this._keyManager.onKeydown(Y),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const Y=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(Y)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(Y){return Y>=0&&YDe.deselect()),Array.isArray(Y))Y.forEach(De=>this._selectValue(De,be)),this._sortValues();else{const De=this._selectValue(Y,be);De&&be&&this._keyManager.setActiveItem(De)}}_selectValue(Y,be=!0){const De=this.chips.find(We=>null!=We.value&&this._compareWith(We.value,Y));return De&&(be?De.selectViaInteraction():De.select(),this._selectionModel.select(De)),De}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(Y){this._selectionModel.clear(),this.chips.forEach(be=>{be!==Y&&be.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(Y=>{Y.selected&&this._selectionModel.select(Y)}),this.stateChanges.next())}_propagateChanges(Y){let be=null;be=Array.isArray(this.selected)?this.selected.map(De=>De.value):this.selected?this.selected.value:Y,this._value=be,this.change.emit(new pe(this,be)),this.valueChange.emit(be),this._onChange(be),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(Y=>{Y.source.selected?this._selectionModel.select(Y.source):this._selectionModel.deselect(Y.source),this.multiple||this.chips.forEach(be=>{!this._selectionModel.isSelected(be)&&be.selected&&be.deselect()}),Y.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(Y=>{let be=this.chips.toArray().indexOf(Y.chip);this._isValidIndex(be)&&this._keyManager.updateActiveItem(be),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(Y=>{const be=Y.chip,De=this.chips.toArray().indexOf(Y.chip);this._isValidIndex(De)&&be._hasFocus&&(this._lastDestroyedChipIndex=De)})}_originatesFromChip(Y){let be=Y.target;for(;be&&be!==this._elementRef.nativeElement;){if(be.classList.contains("mat-chip"))return!0;be=be.parentElement}return!1}_hasFocusedChip(){return this.chips&&this.chips.some(Y=>Y._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(Y=>{Y._chipListDisabled=this._disabled,Y._chipListMultiple=this.multiple})}}return N.\u0275fac=function(Y){return new(Y||N)(m.Y36(m.SBq),m.Y36(m.sBO),m.Y36(F.Is,8),m.Y36($.F,8),m.Y36($.sg,8),m.Y36(A.rD),m.Y36($.a5,10))},N.\u0275cmp=m.Xpm({type:N,selectors:[["mat-chip-list"]],contentQueries:function(Y,be,De){if(1&Y&&m.Suo(De,ae,5),2&Y){let We;m.iGM(We=m.CRH())&&(be.chips=We)}},hostAttrs:[1,"mat-chip-list"],hostVars:14,hostBindings:function(Y,be){1&Y&&m.NdJ("focus",function(){return be.focus()})("blur",function(){return be._blur()})("keydown",function(We){return be._keydown(We)}),2&Y&&(m.Ikx("id",be._uid),m.uIk("tabindex",be.disabled?null:be._tabIndex)("aria-required",be.role?be.required:null)("aria-disabled",be.disabled.toString())("aria-invalid",be.errorState)("aria-multiselectable",be.multiple)("role",be.role)("aria-orientation",be.ariaOrientation),m.ekj("mat-chip-list-disabled",be.disabled)("mat-chip-list-invalid",be.errorState)("mat-chip-list-required",be.required))},inputs:{role:"role",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],errorStateMatcher:"errorStateMatcher",multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",ariaOrientation:["aria-orientation","ariaOrientation"],selectable:"selectable",tabIndex:"tabIndex"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[m._Bn([{provide:G.Eo,useExisting:N}]),m.qOj],ngContentSelectors:q,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(Y,be){1&Y&&(m.F$t(),m.TgZ(0,"div",0),m.Hsn(1),m.qZA())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-chip::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.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-standard-chip._mat-animation-noopable{transition:none !important;animation:none !important}.mat-standard-chip .mat-chip-remove{border:none;-webkit-appearance:none;-moz-appearance:none;padding:0;background:none}.mat-standard-chip .mat-chip-remove.mat-icon,.mat-standard-chip .mat-chip-remove .mat-icon{width:18px;height:18px;font-size: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.mat-chip-selected{outline-width:3px}.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;transform:translateZ(0)}.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}'],encapsulation:2,changeDetection:0}),N})(),Ce=0,de=(()=>{class N{constructor(Y,be){this._elementRef=Y,this._defaultOptions=be,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new m.vpe,this.placeholder="",this.id="mat-chip-list-input-"+Ce++,this._disabled=!1,this.inputElement=this._elementRef.nativeElement}set chipList(Y){Y&&(this._chipList=Y,this._chipList.registerInput(this))}get addOnBlur(){return this._addOnBlur}set addOnBlur(Y){this._addOnBlur=(0,w.Ig)(Y)}get disabled(){return this._disabled||this._chipList&&this._chipList.disabled}set disabled(Y){this._disabled=(0,w.Ig)(Y)}get empty(){return!this.inputElement.value}ngOnChanges(){this._chipList.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}ngAfterContentInit(){this._focusLastChipOnBackspace=this.empty}_keydown(Y){if(Y){if(Y.keyCode===e.Mf&&!(0,e.Vb)(Y,"shiftKey")&&this._chipList._allowFocusEscape(),Y.keyCode===e.ZH&&this._focusLastChipOnBackspace)return this._chipList._keyManager.setLastItemActive(),void Y.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(Y)}_keyup(Y){!this._focusLastChipOnBackspace&&Y.keyCode===e.ZH&&this.empty&&(this._focusLastChipOnBackspace=!0,Y.preventDefault())}_blur(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipList.focused||this._chipList._blur(),this._chipList.stateChanges.next()}_focus(){this.focused=!0,this._focusLastChipOnBackspace=this.empty,this._chipList.stateChanges.next()}_emitChipEnd(Y){!this.inputElement.value&&!!Y&&this._chipList._keydown(Y),(!Y||this._isSeparatorKey(Y))&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),Y?.preventDefault())}_onInput(){this._chipList.stateChanges.next()}focus(Y){this.inputElement.focus(Y)}clear(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}_isSeparatorKey(Y){return!(0,e.Vb)(Y)&&new Set(this.separatorKeyCodes).has(Y.keyCode)}}return N.\u0275fac=function(Y){return new(Y||N)(m.Y36(m.SBq),m.Y36(ge))},N.\u0275dir=m.lG2({type:N,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(Y,be){1&Y&&m.NdJ("keydown",function(We){return be._keydown(We)})("keyup",function(We){return be._keyup(We)})("blur",function(){return be._blur()})("focus",function(){return be._focus()})("input",function(){return be._onInput()}),2&Y&&(m.Ikx("id",be.id),m.uIk("disabled",be.disabled||null)("placeholder",be.placeholder||null)("aria-invalid",be._chipList&&be._chipList.ngControl?be._chipList.ngControl.invalid:null)("aria-required",be._chipList&&be._chipList.required||null))},inputs:{chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[m.TTD]}),N})(),B=(()=>{class N{}return N.\u0275fac=function(Y){return new(Y||N)},N.\u0275mod=m.oAB({type:N}),N.\u0275inj=m.cJS({providers:[A.rD,{provide:ge,useValue:{separatorKeyCodes:[e.K5]}}],imports:[A.BQ]}),N})()},3238:(Qe,he,u)=>{"use strict";u.d(he,{yN:()=>_e,mZ:()=>ce,_A:()=>de,rD:()=>Pe,sG:()=>re,K7:()=>o,HF:()=>a,Y2:()=>X,BQ:()=>H,X2:()=>nt,uc:()=>J,XK:()=>De,ey:()=>Ie,Ng:()=>Ue,rN:()=>y,nP:()=>_,us:()=>c,wG:()=>r,si:()=>s,LF:()=>Me,IR:()=>it,CB:()=>tt,jH:()=>ct,pj:()=>xe,Kr:()=>ge,Id:()=>ae,FD:()=>Be,dB:()=>pe,sb:()=>Se,E0:()=>Ye});var e=u(94650),m=u(12687),A=u(40445),p=u(36895),g=u(83353),T=u(21281),E=u(69751),S=u(77579),R=u(68675),v=u(29521);function z(at,fe){if(1&at&&e._UZ(0,"mat-pseudo-checkbox",4),2&at){const Oe=e.oxw();e.Q6J("state",Oe.selected?"checked":"unchecked")("disabled",Oe.disabled)}}function $(at,fe){if(1&at&&(e.TgZ(0,"span",5),e._uU(1),e.qZA()),2&at){const Oe=e.oxw();e.xp6(1),e.hij("(",Oe.group.label,")")}}const G=["*"];let _e=(()=>{class at{}return at.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",at.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",at.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",at.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",at})(),ce=(()=>{class at{}return at.COMPLEX="375ms",at.ENTERING="225ms",at.EXITING="195ms",at})();const b=new e.OlP("mat-sanity-checks",{providedIn:"root",factory:function Te(){return!0}});let H=(()=>{class at{constructor(Oe,Ke,je){this._sanityChecks=Ke,this._document=je,this._hasDoneGlobalChecks=!1,Oe._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(Oe){return!(0,g.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[Oe])}}return at.\u0275fac=function(Oe){return new(Oe||at)(e.LFG(m.qm),e.LFG(b,8),e.LFG(p.K0))},at.\u0275mod=e.oAB({type:at}),at.\u0275inj=e.cJS({imports:[A.vT,A.vT]}),at})();function ae(at){return class extends at{constructor(...fe){super(...fe),this._disabled=!1}get disabled(){return this._disabled}set disabled(fe){this._disabled=(0,T.Ig)(fe)}}}function xe(at,fe){return class extends at{constructor(...Oe){super(...Oe),this.defaultColor=fe,this.color=fe}get color(){return this._color}set color(Oe){const Ke=Oe||this.defaultColor;Ke!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),Ke&&this._elementRef.nativeElement.classList.add(`mat-${Ke}`),this._color=Ke)}}}function ge(at){return class extends at{constructor(...fe){super(...fe),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(fe){this._disableRipple=(0,T.Ig)(fe)}}}function Se(at,fe=0){return class extends at{constructor(...Oe){super(...Oe),this._tabIndex=fe,this.defaultTabIndex=fe}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(Oe){this._tabIndex=null!=Oe?(0,T.su)(Oe):this.defaultTabIndex}}}function Be(at){return class extends at{constructor(...fe){super(...fe),this.errorState=!1}updateErrorState(){const fe=this.errorState,Le=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);Le!==fe&&(this.errorState=Le,this.stateChanges.next())}}}function pe(at){return class extends at{constructor(...fe){super(...fe),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new E.y(Oe=>{this._isInitialized?this._notifySubscriber(Oe):this._pendingSubscribers.push(Oe)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(fe){fe.next(),fe.complete()}}}const $e=new e.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function Ce(){return(0,e.f3M)(e.soG)}});class de{constructor(){this._localeChanges=new S.x,this.localeChanges=this._localeChanges}getValidDateOrNull(fe){return this.isDateInstance(fe)&&this.isValid(fe)?fe:null}deserialize(fe){return null==fe||this.isDateInstance(fe)&&this.isValid(fe)?fe:this.invalid()}setLocale(fe){this.locale=fe,this._localeChanges.next()}compareDate(fe,Oe){return this.getYear(fe)-this.getYear(Oe)||this.getMonth(fe)-this.getMonth(Oe)||this.getDate(fe)-this.getDate(Oe)}sameDate(fe,Oe){if(fe&&Oe){let Ke=this.isValid(fe),je=this.isValid(Oe);return Ke&&je?!this.compareDate(fe,Oe):Ke==je}return fe==Oe}clampDate(fe,Oe,Ke){return Oe&&this.compareDate(fe,Oe)<0?Oe:Ke&&this.compareDate(fe,Ke)>0?Ke:fe}}const re=new e.OlP("mat-date-formats"),B=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function N(at,fe){const Oe=Array(at);for(let Ke=0;Ke{class at extends de{constructor(Oe,Ke){super(),this.useUtcForDisplay=!1,super.setLocale(Oe)}getYear(Oe){return Oe.getFullYear()}getMonth(Oe){return Oe.getMonth()}getDate(Oe){return Oe.getDate()}getDayOfWeek(Oe){return Oe.getDay()}getMonthNames(Oe){const Ke=new Intl.DateTimeFormat(this.locale,{month:Oe,timeZone:"utc"});return N(12,je=>this._format(Ke,new Date(2017,je,1)))}getDateNames(){const Oe=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return N(31,Ke=>this._format(Oe,new Date(2017,0,Ke+1)))}getDayOfWeekNames(Oe){const Ke=new Intl.DateTimeFormat(this.locale,{weekday:Oe,timeZone:"utc"});return N(7,je=>this._format(Ke,new Date(2017,0,je+1)))}getYearName(Oe){const Ke=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(Ke,Oe)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(Oe){return this.getDate(this._createDateWithOverflow(this.getYear(Oe),this.getMonth(Oe)+1,0))}clone(Oe){return new Date(Oe.getTime())}createDate(Oe,Ke,je){let Le=this._createDateWithOverflow(Oe,Ke,je);return Le.getMonth(),Le}today(){return new Date}parse(Oe,Ke){return"number"==typeof Oe?new Date(Oe):Oe?new Date(Date.parse(Oe)):null}format(Oe,Ke){if(!this.isValid(Oe))throw Error("NativeDateAdapter: Cannot format invalid date.");const je=new Intl.DateTimeFormat(this.locale,{...Ke,timeZone:"utc"});return this._format(je,Oe)}addCalendarYears(Oe,Ke){return this.addCalendarMonths(Oe,12*Ke)}addCalendarMonths(Oe,Ke){let je=this._createDateWithOverflow(this.getYear(Oe),this.getMonth(Oe)+Ke,this.getDate(Oe));return this.getMonth(je)!=((this.getMonth(Oe)+Ke)%12+12)%12&&(je=this._createDateWithOverflow(this.getYear(je),this.getMonth(je),0)),je}addCalendarDays(Oe,Ke){return this._createDateWithOverflow(this.getYear(Oe),this.getMonth(Oe),this.getDate(Oe)+Ke)}toIso8601(Oe){return[Oe.getUTCFullYear(),this._2digit(Oe.getUTCMonth()+1),this._2digit(Oe.getUTCDate())].join("-")}deserialize(Oe){if("string"==typeof Oe){if(!Oe)return null;if(B.test(Oe)){let Ke=new Date(Oe);if(this.isValid(Ke))return Ke}}return super.deserialize(Oe)}isDateInstance(Oe){return Oe instanceof Date}isValid(Oe){return!isNaN(Oe.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(Oe,Ke,je){const Le=new Date;return Le.setFullYear(Oe,Ke,je),Le.setHours(0,0,0,0),Le}_2digit(Oe){return("00"+Oe).slice(-2)}_format(Oe,Ke){const je=new Date;return je.setUTCFullYear(Ke.getFullYear(),Ke.getMonth(),Ke.getDate()),je.setUTCHours(Ke.getHours(),Ke.getMinutes(),Ke.getSeconds(),Ke.getMilliseconds()),Oe.format(je)}}return at.\u0275fac=function(Oe){return new(Oe||at)(e.LFG($e,8),e.LFG(g.t4))},at.\u0275prov=e.Yz7({token:at,factory:at.\u0275fac}),at})();const Y={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 be=(()=>{class at{}return at.\u0275fac=function(Oe){return new(Oe||at)},at.\u0275mod=e.oAB({type:at}),at.\u0275inj=e.cJS({providers:[{provide:de,useClass:Me}]}),at})(),De=(()=>{class at{}return at.\u0275fac=function(Oe){return new(Oe||at)},at.\u0275mod=e.oAB({type:at}),at.\u0275inj=e.cJS({providers:[{provide:re,useValue:Y}],imports:[be]}),at})(),Pe=(()=>{class at{isErrorState(Oe,Ke){return!!(Oe&&Oe.invalid&&(Oe.touched||Ke&&Ke.submitted))}}return at.\u0275fac=function(Oe){return new(Oe||at)},at.\u0275prov=e.Yz7({token:at,factory:at.\u0275fac,providedIn:"root"}),at})(),nt=(()=>{class at{}return at.\u0275fac=function(Oe){return new(Oe||at)},at.\u0275dir=e.lG2({type:at,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),at})();function Ye(at,fe,Oe="mat"){at.changes.pipe((0,R.O)(at)).subscribe(({length:Ke})=>{Tt(fe,`${Oe}-2-line`,!1),Tt(fe,`${Oe}-3-line`,!1),Tt(fe,`${Oe}-multi-line`,!1),2===Ke||3===Ke?Tt(fe,`${Oe}-${Ke}-line`,!0):Ke>3&&Tt(fe,`${Oe}-multi-line`,!0)})}function Tt(at,fe,Oe){at.nativeElement.classList.toggle(fe,Oe)}let J=(()=>{class at{}return at.\u0275fac=function(Oe){return new(Oe||at)},at.\u0275mod=e.oAB({type:at}),at.\u0275inj=e.cJS({imports:[H,H]}),at})();class Xe{constructor(fe,Oe,Ke,je=!1){this._renderer=fe,this.element=Oe,this.config=Ke,this._animationForciblyDisabledThroughCss=je,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const le={enterDuration:225,exitDuration:150},ke=(0,g.i$)({passive:!0}),Ee=["mousedown","touchstart"],ot=["mouseup","mouseleave","touchend","touchcancel"];class it{constructor(fe,Oe,Ke,je){this._target=fe,this._ngZone=Oe,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,je.isBrowser&&(this._containerElement=(0,T.fI)(Ke))}fadeInRipple(fe,Oe,Ke={}){const je=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),Le={...le,...Ke.animation};Ke.centered&&(fe=je.left+je.width/2,Oe=je.top+je.height/2);const ie=Ke.radius||function oe(at,fe,Oe){const Ke=Math.max(Math.abs(at-Oe.left),Math.abs(at-Oe.right)),je=Math.max(Math.abs(fe-Oe.top),Math.abs(fe-Oe.bottom));return Math.sqrt(Ke*Ke+je*je)}(fe,Oe,je),Ae=fe-je.left,st=Oe-je.top,ze=Le.enterDuration,_t=document.createElement("div");_t.classList.add("mat-ripple-element"),_t.style.left=Ae-ie+"px",_t.style.top=st-ie+"px",_t.style.height=2*ie+"px",_t.style.width=2*ie+"px",null!=Ke.color&&(_t.style.backgroundColor=Ke.color),_t.style.transitionDuration=`${ze}ms`,this._containerElement.appendChild(_t);const me=window.getComputedStyle(_t),rt=me.transitionDuration,Mt="none"===me.transitionProperty||"0s"===rt||"0s, 0s"===rt,Qt=new Xe(this,_t,Ke,Mt);_t.style.transform="scale3d(1, 1, 1)",Qt.state=0,Ke.persistent||(this._mostRecentTransientRipple=Qt);let Gt=null;return!Mt&&(ze||Le.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const an=()=>this._finishRippleTransition(Qt),hn=()=>this._destroyRipple(Qt);_t.addEventListener("transitionend",an),_t.addEventListener("transitioncancel",hn),Gt={onTransitionEnd:an,onTransitionCancel:hn}}),this._activeRipples.set(Qt,Gt),(Mt||!ze)&&this._finishRippleTransition(Qt),Qt}fadeOutRipple(fe){if(2===fe.state||3===fe.state)return;const Oe=fe.element,Ke={...le,...fe.config.animation};Oe.style.transitionDuration=`${Ke.exitDuration}ms`,Oe.style.opacity="0",fe.state=2,(fe._animationForciblyDisabledThroughCss||!Ke.exitDuration)&&this._finishRippleTransition(fe)}fadeOutAll(){this._getActiveRipples().forEach(fe=>fe.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(fe=>{fe.config.persistent||fe.fadeOut()})}setupTriggerEvents(fe){const Oe=(0,T.fI)(fe);!Oe||Oe===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=Oe,this._registerEvents(Ee))}handleEvent(fe){"mousedown"===fe.type?this._onMousedown(fe):"touchstart"===fe.type?this._onTouchStart(fe):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(ot),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(fe){0===fe.state?this._startFadeOutTransition(fe):2===fe.state&&this._destroyRipple(fe)}_startFadeOutTransition(fe){const Oe=fe===this._mostRecentTransientRipple,{persistent:Ke}=fe.config;fe.state=1,!Ke&&(!Oe||!this._isPointerDown)&&fe.fadeOut()}_destroyRipple(fe){var Oe;const Ke=null!==(Oe=this._activeRipples.get(fe))&&void 0!==Oe?Oe:null;this._activeRipples.delete(fe),this._activeRipples.size||(this._containerRect=null),fe===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),fe.state=3,null!==Ke&&(fe.element.removeEventListener("transitionend",Ke.onTransitionEnd),fe.element.removeEventListener("transitioncancel",Ke.onTransitionCancel)),fe.element.remove()}_onMousedown(fe){const Oe=(0,m.X6)(fe),Ke=this._lastTouchStartEvent&&Date.now(){!fe.config.persistent&&(1===fe.state||fe.config.terminateOnPointerUp&&0===fe.state)&&fe.fadeOut()}))}_registerEvents(fe){this._ngZone.runOutsideAngular(()=>{fe.forEach(Oe=>{this._triggerElement.addEventListener(Oe,this,ke)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(Ee.forEach(fe=>{this._triggerElement.removeEventListener(fe,this,ke)}),this._pointerUpEventsRegistered&&ot.forEach(fe=>{this._triggerElement.removeEventListener(fe,this,ke)}))}}const X=new e.OlP("mat-ripple-global-options");let r=(()=>{class at{constructor(Oe,Ke,je,Le,ie){this._elementRef=Oe,this._animationMode=ie,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=Le||{},this._rippleRenderer=new it(this,Ke,Oe,je)}get disabled(){return this._disabled}set disabled(Oe){Oe&&this.fadeOutAllNonPersistent(),this._disabled=Oe,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(Oe){this._trigger=Oe,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...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(Oe,Ke=0,je){return"number"==typeof Oe?this._rippleRenderer.fadeInRipple(Oe,Ke,{...this.rippleConfig,...je}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...Oe})}}return at.\u0275fac=function(Oe){return new(Oe||at)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(g.t4),e.Y36(X,8),e.Y36(e.QbO,8))},at.\u0275dir=e.lG2({type:at,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(Oe,Ke){2&Oe&&e.ekj("mat-ripple-unbounded",Ke.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),at})(),s=(()=>{class at{}return at.\u0275fac=function(Oe){return new(Oe||at)},at.\u0275mod=e.oAB({type:at}),at.\u0275inj=e.cJS({imports:[H,H]}),at})(),_=(()=>{class at{constructor(Oe){this._animationMode=Oe,this.state="unchecked",this.disabled=!1}}return at.\u0275fac=function(Oe){return new(Oe||at)(e.Y36(e.QbO,8))},at.\u0275cmp=e.Xpm({type:at,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(Oe,Ke){2&Oe&&e.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===Ke.state)("mat-pseudo-checkbox-checked","checked"===Ke.state)("mat-pseudo-checkbox-disabled",Ke.disabled)("_mat-animation-noopable","NoopAnimations"===Ke._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(Oe,Ke){},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:rgba(0,0,0,0)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::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}'],encapsulation:2,changeDetection:0}),at})(),c=(()=>{class at{}return at.\u0275fac=function(Oe){return new(Oe||at)},at.\u0275mod=e.oAB({type:at}),at.\u0275inj=e.cJS({imports:[H]}),at})();const a=new e.OlP("MAT_OPTION_PARENT_COMPONENT"),o=new e.OlP("MatOptgroup");let d=0;class y{constructor(fe,Oe=!1){this.source=fe,this.isUserInput=Oe}}let k=(()=>{class at{constructor(Oe,Ke,je,Le){this._element=Oe,this._changeDetectorRef=Ke,this._parent=je,this.group=Le,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+d++,this.onSelectionChange=new e.vpe,this._stateChanges=new S.x}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(Oe){this._disabled=(0,T.Ig)(Oe)}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(Oe,Ke){const je=this._getHostElement();"function"==typeof je.focus&&je.focus(Ke)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(Oe){(Oe.keyCode===v.K5||Oe.keyCode===v.L_)&&!(0,v.Vb)(Oe)&&(this._selectViaInteraction(),Oe.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 Oe=this.viewValue;Oe!==this._mostRecentViewValue&&(this._mostRecentViewValue=Oe,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(Oe=!1){this.onSelectionChange.emit(new y(this,Oe))}}return at.\u0275fac=function(Oe){e.$Z()},at.\u0275dir=e.lG2({type:at,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),at})(),Ie=(()=>{class at extends k{constructor(Oe,Ke,je,Le){super(Oe,Ke,je,Le)}}return at.\u0275fac=function(Oe){return new(Oe||at)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(a,8),e.Y36(o,8))},at.\u0275cmp=e.Xpm({type:at,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(Oe,Ke){1&Oe&&e.NdJ("click",function(){return Ke._selectViaInteraction()})("keydown",function(Le){return Ke._handleKeydown(Le)}),2&Oe&&(e.Ikx("id",Ke.id),e.uIk("tabindex",Ke._getTabIndex())("aria-selected",Ke._getAriaSelected())("aria-disabled",Ke.disabled.toString()),e.ekj("mat-selected",Ke.selected)("mat-option-multiple",Ke.multiple)("mat-active",Ke.active)("mat-option-disabled",Ke.disabled))},exportAs:["matOption"],features:[e.qOj],ngContentSelectors:G,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(Oe,Ke){1&Oe&&(e.F$t(),e.YNc(0,z,1,2,"mat-pseudo-checkbox",0),e.TgZ(1,"span",1),e.Hsn(2),e.qZA(),e.YNc(3,$,2,1,"span",2),e._UZ(4,"div",3)),2&Oe&&(e.Q6J("ngIf",Ke.multiple),e.xp6(3),e.Q6J("ngIf",Ke.group&&Ke.group._inert),e.xp6(1),e.Q6J("matRippleTrigger",Ke._getHostElement())("matRippleDisabled",Ke.disabled||Ke.disableRipple))},dependencies:[r,p.O5,_],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:rgba(0,0,0,0)}.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;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}.mat-option.mat-active::before{content:""}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{right:auto;left:16px}.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}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}'],encapsulation:2,changeDetection:0}),at})();function tt(at,fe,Oe){if(Oe.length){let Ke=fe.toArray(),je=Oe.toArray(),Le=0;for(let ie=0;ieOe+Ke?Math.max(0,at-Ke+fe):Oe}let Ue=(()=>{class at{}return at.\u0275fac=function(Oe){return new(Oe||at)},at.\u0275mod=e.oAB({type:at}),at.\u0275inj=e.cJS({imports:[s,p.ez,H,c]}),at})()},99602:(Qe,he,u)=>{"use strict";u.d(he,{FA:()=>pt,Mq:()=>_t,hl:()=>Gt,nW:()=>hn});var e=u(12687),m=u(98184),A=u(84080),w=u(36895),p=u(94650),g=u(4859),T=u(67376),E=u(3238),S=u(77579),R=u(50727),v=u(56451),D=u(39646),F=u(29521),z=u(40445),$=u(95698),G=u(68675),q=u(39300),_e=u(21281),ce=u(83353),Te=u(37340),b=u(24006),H=u(59549),L=u(284);const V=["mat-calendar-body",""];function Q(lt,wt){if(1<&&(p.TgZ(0,"tr",2)(1,"td",3),p._uU(2),p.qZA()()),2<){const W=p.oxw();p.xp6(1),p.Udp("padding-top",W._cellPadding)("padding-bottom",W._cellPadding),p.uIk("colspan",W.numCols),p.xp6(1),p.hij(" ",W.label," ")}}function ae(lt,wt){if(1<&&(p.TgZ(0,"td",3),p._uU(1),p.qZA()),2<){const W=p.oxw(2);p.Udp("padding-top",W._cellPadding)("padding-bottom",W._cellPadding),p.uIk("colspan",W._firstRowOffset),p.xp6(1),p.hij(" ",W._firstRowOffset>=W.labelMinRequiredCells?W.label:""," ")}}function xe(lt,wt){if(1<){const W=p.EpF();p.TgZ(0,"td",7)(1,"button",8),p.NdJ("click",function(vt){const en=p.CHM(W).$implicit,Tn=p.oxw(2);return p.KtG(Tn._cellClicked(en,vt))})("focus",function(vt){const en=p.CHM(W).$implicit,Tn=p.oxw(2);return p.KtG(Tn._emitActiveDateChange(en,vt))}),p.TgZ(2,"div",9),p._uU(3),p.qZA(),p._UZ(4,"div",10),p.qZA()()}if(2<){const W=wt.$implicit,Ze=wt.index,vt=p.oxw().index,Pt=p.oxw();p.Udp("width",Pt._cellWidth)("padding-top",Pt._cellPadding)("padding-bottom",Pt._cellPadding),p.uIk("data-mat-row",vt)("data-mat-col",Ze),p.xp6(1),p.ekj("mat-calendar-body-disabled",!W.enabled)("mat-calendar-body-active",Pt._isActiveCell(vt,Ze))("mat-calendar-body-range-start",Pt._isRangeStart(W.compareValue))("mat-calendar-body-range-end",Pt._isRangeEnd(W.compareValue))("mat-calendar-body-in-range",Pt._isInRange(W.compareValue))("mat-calendar-body-comparison-bridge-start",Pt._isComparisonBridgeStart(W.compareValue,vt,Ze))("mat-calendar-body-comparison-bridge-end",Pt._isComparisonBridgeEnd(W.compareValue,vt,Ze))("mat-calendar-body-comparison-start",Pt._isComparisonStart(W.compareValue))("mat-calendar-body-comparison-end",Pt._isComparisonEnd(W.compareValue))("mat-calendar-body-in-comparison-range",Pt._isInComparisonRange(W.compareValue))("mat-calendar-body-preview-start",Pt._isPreviewStart(W.compareValue))("mat-calendar-body-preview-end",Pt._isPreviewEnd(W.compareValue))("mat-calendar-body-in-preview",Pt._isInPreview(W.compareValue)),p.Q6J("ngClass",W.cssClasses)("tabindex",Pt._isActiveCell(vt,Ze)?0:-1),p.uIk("aria-label",W.ariaLabel)("aria-disabled",!W.enabled||null)("aria-pressed",Pt._isSelected(W.compareValue))("aria-current",Pt.todayValue===W.compareValue?"date":null),p.xp6(1),p.ekj("mat-calendar-body-selected",Pt._isSelected(W.compareValue))("mat-calendar-body-comparison-identical",Pt._isComparisonIdentical(W.compareValue))("mat-calendar-body-today",Pt.todayValue===W.compareValue),p.xp6(1),p.hij(" ",W.displayValue," ")}}function ge(lt,wt){if(1<&&(p.TgZ(0,"tr",4),p.YNc(1,ae,2,6,"td",5),p.YNc(2,xe,5,47,"td",6),p.qZA()),2<){const W=wt.$implicit,Ze=wt.index,vt=p.oxw();p.xp6(1),p.Q6J("ngIf",0===Ze&&vt._firstRowOffset),p.xp6(1),p.Q6J("ngForOf",W)}}function Se(lt,wt){if(1<&&(p.TgZ(0,"th",5)(1,"span",6),p._uU(2),p.qZA(),p.TgZ(3,"span",7),p._uU(4),p.qZA()()),2<){const W=wt.$implicit;p.xp6(2),p.Oqu(W.long),p.xp6(2),p.Oqu(W.narrow)}}const Be=["*"];function pe(lt,wt){}function $e(lt,wt){if(1<){const W=p.EpF();p.TgZ(0,"mat-month-view",5),p.NdJ("activeDateChange",function(vt){p.CHM(W);const Pt=p.oxw();return p.KtG(Pt.activeDate=vt)})("_userSelection",function(vt){p.CHM(W);const Pt=p.oxw();return p.KtG(Pt._dateSelected(vt))}),p.qZA()}if(2<){const W=p.oxw();p.Q6J("activeDate",W.activeDate)("selected",W.selected)("dateFilter",W.dateFilter)("maxDate",W.maxDate)("minDate",W.minDate)("dateClass",W.dateClass)("comparisonStart",W.comparisonStart)("comparisonEnd",W.comparisonEnd)}}function Ce(lt,wt){if(1<){const W=p.EpF();p.TgZ(0,"mat-year-view",6),p.NdJ("activeDateChange",function(vt){p.CHM(W);const Pt=p.oxw();return p.KtG(Pt.activeDate=vt)})("monthSelected",function(vt){p.CHM(W);const Pt=p.oxw();return p.KtG(Pt._monthSelectedInYearView(vt))})("selectedChange",function(vt){p.CHM(W);const Pt=p.oxw();return p.KtG(Pt._goToDateInView(vt,"month"))}),p.qZA()}if(2<){const W=p.oxw();p.Q6J("activeDate",W.activeDate)("selected",W.selected)("dateFilter",W.dateFilter)("maxDate",W.maxDate)("minDate",W.minDate)("dateClass",W.dateClass)}}function de(lt,wt){if(1<){const W=p.EpF();p.TgZ(0,"mat-multi-year-view",7),p.NdJ("activeDateChange",function(vt){p.CHM(W);const Pt=p.oxw();return p.KtG(Pt.activeDate=vt)})("yearSelected",function(vt){p.CHM(W);const Pt=p.oxw();return p.KtG(Pt._yearSelectedInMultiYearView(vt))})("selectedChange",function(vt){p.CHM(W);const Pt=p.oxw();return p.KtG(Pt._goToDateInView(vt,"year"))}),p.qZA()}if(2<){const W=p.oxw();p.Q6J("activeDate",W.activeDate)("selected",W.selected)("dateFilter",W.dateFilter)("maxDate",W.maxDate)("minDate",W.minDate)("dateClass",W.dateClass)}}function re(lt,wt){}const B=["button"];function N(lt,wt){1<&&(p.O4$(),p.TgZ(0,"svg",3),p._UZ(1,"path",4),p.qZA())}const Me=[[["","matDatepickerToggleIcon",""]]],Y=["[matDatepickerToggleIcon]"];let nt=(()=>{class lt{constructor(){this.changes=new S.x,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 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(W,Ze){return`${W} \u2013 ${Ze}`}formatYearRangeLabel(W,Ze){return`${W} to ${Ze}`}}return lt.\u0275fac=function(W){return new(W||lt)},lt.\u0275prov=p.Yz7({token:lt,factory:lt.\u0275fac,providedIn:"root"}),lt})();class Ye{constructor(wt,W,Ze,vt,Pt={},en=wt,Tn){this.value=wt,this.displayValue=W,this.ariaLabel=Ze,this.enabled=vt,this.cssClasses=Pt,this.compareValue=en,this.rawValue=Tn}}let Tt=(()=>{class lt{constructor(W,Ze){this._elementRef=W,this._ngZone=Ze,this._focusActiveCellAfterViewChecked=!1,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new p.vpe,this.previewChange=new p.vpe,this.activeDateChange=new p.vpe,this._enterHandler=vt=>{if(this._skipNextFocus&&"focus"===vt.type)this._skipNextFocus=!1;else if(vt.target&&this.isRange){const Pt=this._getCellFromElement(vt.target);Pt&&this._ngZone.run(()=>this.previewChange.emit({value:Pt.enabled?Pt:null,event:vt}))}},this._leaveHandler=vt=>{null!==this.previewEnd&&this.isRange&&vt.target&&this._getCellFromElement(vt.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:vt}))},Ze.runOutsideAngular(()=>{const vt=W.nativeElement;vt.addEventListener("mouseenter",this._enterHandler,!0),vt.addEventListener("focus",this._enterHandler,!0),vt.addEventListener("mouseleave",this._leaveHandler,!0),vt.addEventListener("blur",this._leaveHandler,!0)})}ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}_cellClicked(W,Ze){W.enabled&&this.selectedValueChange.emit({value:W.value,event:Ze})}_emitActiveDateChange(W,Ze){W.enabled&&this.activeDateChange.emit({value:W.value,event:Ze})}_isSelected(W){return this.startValue===W||this.endValue===W}ngOnChanges(W){const Ze=W.numCols,{rows:vt,numCols:Pt}=this;(W.rows||Ze)&&(this._firstRowOffset=vt&&vt.length&&vt[0].length?Pt-vt[0].length:0),(W.cellAspectRatio||Ze||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/Pt+"%"),(Ze||!this._cellWidth)&&(this._cellWidth=100/Pt+"%")}ngOnDestroy(){const W=this._elementRef.nativeElement;W.removeEventListener("mouseenter",this._enterHandler,!0),W.removeEventListener("focus",this._enterHandler,!0),W.removeEventListener("mouseleave",this._leaveHandler,!0),W.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(W,Ze){let vt=W*this.numCols+Ze;return W&&(vt-=this._firstRowOffset),vt==this.activeCell}_focusActiveCell(W=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,$.q)(1)).subscribe(()=>{setTimeout(()=>{const Ze=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");Ze&&(W||(this._skipNextFocus=!0),Ze.focus())})})})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(W){return Xe(W,this.startValue,this.endValue)}_isRangeEnd(W){return le(W,this.startValue,this.endValue)}_isInRange(W){return ne(W,this.startValue,this.endValue,this.isRange)}_isComparisonStart(W){return Xe(W,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(W,Ze,vt){if(!this._isComparisonStart(W)||this._isRangeStart(W)||!this._isInRange(W))return!1;let Pt=this.rows[Ze][vt-1];if(!Pt){const en=this.rows[Ze-1];Pt=en&&en[en.length-1]}return Pt&&!this._isRangeEnd(Pt.compareValue)}_isComparisonBridgeEnd(W,Ze,vt){if(!this._isComparisonEnd(W)||this._isRangeEnd(W)||!this._isInRange(W))return!1;let Pt=this.rows[Ze][vt+1];if(!Pt){const en=this.rows[Ze+1];Pt=en&&en[0]}return Pt&&!this._isRangeStart(Pt.compareValue)}_isComparisonEnd(W){return le(W,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(W){return ne(W,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(W){return this.comparisonStart===this.comparisonEnd&&W===this.comparisonStart}_isPreviewStart(W){return Xe(W,this.previewStart,this.previewEnd)}_isPreviewEnd(W){return le(W,this.previewStart,this.previewEnd)}_isInPreview(W){return ne(W,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(W){let Ze;if(J(W)?Ze=W:J(W.parentNode)&&(Ze=W.parentNode),Ze){const vt=Ze.getAttribute("data-mat-row"),Pt=Ze.getAttribute("data-mat-col");if(vt&&Pt)return this.rows[parseInt(vt)][parseInt(Pt)]}return null}}return lt.\u0275fac=function(W){return new(W||lt)(p.Y36(p.SBq),p.Y36(p.R0b))},lt.\u0275cmp=p.Xpm({type:lt,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange"},exportAs:["matCalendarBody"],features:[p.TTD],attrs:V,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"],["class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom",4,"ngFor","ngForOf"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click","focus"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(W,Ze){1&W&&(p.YNc(0,Q,3,6,"tr",0),p.YNc(1,ge,3,2,"tr",1)),2&W&&(p.Q6J("ngIf",Ze._firstRowOffset=wt&<===W}function ne(lt,wt,W,Ze){return Ze&&null!==wt&&null!==W&&wt!==W&<>=wt&<<=W}class ke{constructor(wt,W){this.start=wt,this.end=W}}let Ee=(()=>{class lt{constructor(W,Ze){this.selection=W,this._adapter=Ze,this._selectionChanged=new S.x,this.selectionChanged=this._selectionChanged,this.selection=W}updateSelection(W,Ze){const vt=this.selection;this.selection=W,this._selectionChanged.next({selection:W,source:Ze,oldValue:vt})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(W){return this._adapter.isDateInstance(W)&&this._adapter.isValid(W)}}return lt.\u0275fac=function(W){p.$Z()},lt.\u0275prov=p.Yz7({token:lt,factory:lt.\u0275fac}),lt})(),ot=(()=>{class lt extends Ee{constructor(W){super(null,W)}add(W){super.updateSelection(W,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const W=new lt(this._adapter);return W.updateSelection(this.selection,this),W}}return lt.\u0275fac=function(W){return new(W||lt)(p.LFG(E._A))},lt.\u0275prov=p.Yz7({token:lt,factory:lt.\u0275fac}),lt})();const X={provide:Ee,deps:[[new p.FiY,new p.tp0,Ee],E._A],useFactory:function oe(lt,wt){return lt||new ot(wt)}},_=new p.OlP("MAT_DATE_RANGE_SELECTION_STRATEGY");let n=(()=>{class lt{constructor(W,Ze,vt,Pt,en){this._changeDetectorRef=W,this._dateFormats=Ze,this._dateAdapter=vt,this._dir=Pt,this._rangeStrategy=en,this._rerenderSubscription=R.w0.EMPTY,this.selectedChange=new p.vpe,this._userSelection=new p.vpe,this.activeDateChange=new p.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(W){const Ze=this._activeDate,vt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(W))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(vt,this.minDate,this.maxDate),this._hasSameMonthAndYear(Ze,this._activeDate)||this._init()}get selected(){return this._selected}set selected(W){this._selected=W instanceof ke?W:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(W)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(W){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(W))}get maxDate(){return this._maxDate}set maxDate(W){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(W))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,G.O)(null)).subscribe(()=>this._init())}ngOnChanges(W){const Ze=W.comparisonStart||W.comparisonEnd;Ze&&!Ze.firstChange&&this._setRanges(this.selected)}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(W){const Ze=W.value,vt=this._getDateFromDayOfMonth(Ze);let Pt,en;this._selected instanceof ke?(Pt=this._getDateInCurrentMonth(this._selected.start),en=this._getDateInCurrentMonth(this._selected.end)):Pt=en=this._getDateInCurrentMonth(this._selected),(Pt!==Ze||en!==Ze)&&this.selectedChange.emit(vt),this._userSelection.emit({value:vt,event:W.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}_updateActiveDate(W){const vt=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(W.value),this._dateAdapter.compareDate(vt,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(W){const Ze=this._activeDate,vt=this._isRtl();switch(W.keyCode){case F.oh:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,vt?1:-1);break;case F.SV:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,vt?-1:1);break;case F.LH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case F.JH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case F.Sd:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case F.uR:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case F.Ku:this.activeDate=W.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case F.VM:this.activeDate=W.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case F.K5:case F.L_:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&W.preventDefault());case F.hY:return void(null!=this._previewEnd&&!(0,F.Vb)(W)&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:W}),W.preventDefault(),W.stopPropagation()));default:return}this._dateAdapter.compareDate(Ze,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),W.preventDefault()}_handleCalendarBodyKeyup(W){(W.keyCode===F.L_||W.keyCode===F.K5)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:W}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let W=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(W)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(W){this._matCalendarBody._focusActiveCell(W)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:W,value:Ze}){if(this._rangeStrategy){const Pt=this._rangeStrategy.createPreview(Ze?Ze.rawValue:null,this.selected,W);this._previewStart=this._getCellCompareValue(Pt.start),this._previewEnd=this._getCellCompareValue(Pt.end),this._changeDetectorRef.detectChanges()}}_getDateFromDayOfMonth(W){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),W)}_initWeekdays(){const W=this._dateAdapter.getFirstDayOfWeek(),Ze=this._dateAdapter.getDayOfWeekNames("narrow");let Pt=this._dateAdapter.getDayOfWeekNames("long").map((en,Tn)=>({long:en,narrow:Ze[Tn]}));this._weekdays=Pt.slice(W).concat(Pt.slice(0,W))}_createWeekCells(){const W=this._dateAdapter.getNumDaysInMonth(this.activeDate),Ze=this._dateAdapter.getDateNames();this._weeks=[[]];for(let vt=0,Pt=this._firstWeekOffset;vt=0)&&(!this.maxDate||this._dateAdapter.compareDate(W,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(W))}_getDateInCurrentMonth(W){return W&&this._hasSameMonthAndYear(W,this.activeDate)?this._dateAdapter.getDate(W):null}_hasSameMonthAndYear(W,Ze){return!(!W||!Ze||this._dateAdapter.getMonth(W)!=this._dateAdapter.getMonth(Ze)||this._dateAdapter.getYear(W)!=this._dateAdapter.getYear(Ze))}_getCellCompareValue(W){if(W){const Ze=this._dateAdapter.getYear(W),vt=this._dateAdapter.getMonth(W),Pt=this._dateAdapter.getDate(W);return new Date(Ze,vt,Pt).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(W){W instanceof ke?(this._rangeStart=this._getCellCompareValue(W.start),this._rangeEnd=this._getCellCompareValue(W.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(W),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(W){return!this.dateFilter||this.dateFilter(W)}}return lt.\u0275fac=function(W){return new(W||lt)(p.Y36(p.sBO),p.Y36(E.sG,8),p.Y36(E._A,8),p.Y36(z.Is,8),p.Y36(_,8))},lt.\u0275cmp=p.Xpm({type:lt,selectors:[["mat-month-view"]],viewQuery:function(W,Ze){if(1&W&&p.Gf(Tt,5),2&W){let vt;p.iGM(vt=p.CRH())&&(Ze._matCalendarBody=vt.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:[p.TTD],decls:7,vars:13,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["aria-hidden","true","colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","activeDateChange","previewChange","keyup","keydown"],["scope","col"],[1,"cdk-visually-hidden"],["aria-hidden","true"]],template:function(W,Ze){1&W&&(p.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),p.YNc(3,Se,5,2,"th",2),p.qZA(),p.TgZ(4,"tr"),p._UZ(5,"th",3),p.qZA()(),p.TgZ(6,"tbody",4),p.NdJ("selectedValueChange",function(Pt){return Ze._dateSelected(Pt)})("activeDateChange",function(Pt){return Ze._updateActiveDate(Pt)})("previewChange",function(Pt){return Ze._previewChanged(Pt)})("keyup",function(Pt){return Ze._handleCalendarBodyKeyup(Pt)})("keydown",function(Pt){return Ze._handleCalendarBodyKeydown(Pt)}),p.qZA()()),2&W&&(p.xp6(3),p.Q6J("ngForOf",Ze._weekdays),p.xp6(3),p.Q6J("label",Ze._monthLabel)("rows",Ze._weeks)("todayValue",Ze._todayDate)("startValue",Ze._rangeStart)("endValue",Ze._rangeEnd)("comparisonStart",Ze._comparisonRangeStart)("comparisonEnd",Ze._comparisonRangeEnd)("previewStart",Ze._previewStart)("previewEnd",Ze._previewEnd)("isRange",Ze._isRange)("labelMinRequiredCells",3)("activeCell",Ze._dateAdapter.getDate(Ze.activeDate)-1))},dependencies:[w.sg,Tt],encapsulation:2,changeDetection:0}),lt})();const o=24;let d=(()=>{class lt{constructor(W,Ze,vt){this._changeDetectorRef=W,this._dateAdapter=Ze,this._dir=vt,this._rerenderSubscription=R.w0.EMPTY,this.selectedChange=new p.vpe,this.yearSelected=new p.vpe,this.activeDateChange=new p.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(W){let Ze=this._activeDate;const vt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(W))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(vt,this.minDate,this.maxDate),y(this._dateAdapter,Ze,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(W){this._selected=W instanceof ke?W:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(W)),this._setSelectedYear(W)}get minDate(){return this._minDate}set minDate(W){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(W))}get maxDate(){return this._maxDate}set maxDate(W){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(W))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,G.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const Ze=this._dateAdapter.getYear(this._activeDate)-k(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let vt=0,Pt=[];vtthis._createCellForYear(en))),Pt=[]);this._changeDetectorRef.markForCheck()}_yearSelected(W){const Ze=W.value,vt=this._dateAdapter.createDate(Ze,0,1),Pt=this._getDateFromYear(Ze);this.yearSelected.emit(vt),this.selectedChange.emit(Pt)}_updateActiveDate(W){const vt=this._activeDate;this.activeDate=this._getDateFromYear(W.value),this._dateAdapter.compareDate(vt,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(W){const Ze=this._activeDate,vt=this._isRtl();switch(W.keyCode){case F.oh:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,vt?1:-1);break;case F.SV:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,vt?-1:1);break;case F.LH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case F.JH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case F.Sd:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-k(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case F.uR:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,o-k(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case F.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,W.altKey?-240:-o);break;case F.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,W.altKey?240:o);break;case F.K5:case F.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(Ze,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),W.preventDefault()}_handleCalendarBodyKeyup(W){(W.keyCode===F.L_||W.keyCode===F.K5)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:W}),this._selectionKeyPressed=!1)}_getActiveCell(){return k(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(W){const Ze=this._dateAdapter.getMonth(this.activeDate),vt=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(W,Ze,1));return this._dateAdapter.createDate(W,Ze,Math.min(this._dateAdapter.getDate(this.activeDate),vt))}_createCellForYear(W){const Ze=this._dateAdapter.createDate(W,0,1),vt=this._dateAdapter.getYearName(Ze),Pt=this.dateClass?this.dateClass(Ze,"multi-year"):void 0;return new Ye(W,vt,vt,this._shouldEnableYear(W),Pt)}_shouldEnableYear(W){if(null==W||this.maxDate&&W>this._dateAdapter.getYear(this.maxDate)||this.minDate&&W{class lt{constructor(W,Ze,vt,Pt){this._changeDetectorRef=W,this._dateFormats=Ze,this._dateAdapter=vt,this._dir=Pt,this._rerenderSubscription=R.w0.EMPTY,this.selectedChange=new p.vpe,this.monthSelected=new p.vpe,this.activeDateChange=new p.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(W){let Ze=this._activeDate;const vt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(W))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(vt,this.minDate,this.maxDate),this._dateAdapter.getYear(Ze)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(W){this._selected=W instanceof ke?W:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(W)),this._setSelectedMonth(W)}get minDate(){return this._minDate}set minDate(W){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(W))}get maxDate(){return this._maxDate}set maxDate(W){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(W))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,G.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(W){const Ze=W.value,vt=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Ze,1);this.monthSelected.emit(vt);const Pt=this._getDateFromMonth(Ze);this.selectedChange.emit(Pt)}_updateActiveDate(W){const vt=this._activeDate;this.activeDate=this._getDateFromMonth(W.value),this._dateAdapter.compareDate(vt,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(W){const Ze=this._activeDate,vt=this._isRtl();switch(W.keyCode){case F.oh:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,vt?1:-1);break;case F.SV:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,vt?-1:1);break;case F.LH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case F.JH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case F.Sd:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case F.uR:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case F.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,W.altKey?-10:-1);break;case F.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,W.altKey?10:1);break;case F.K5:case F.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(Ze,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),W.preventDefault()}_handleCalendarBodyKeyup(W){(W.keyCode===F.L_||W.keyCode===F.K5)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:W}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let W=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(Ze=>Ze.map(vt=>this._createCellForMonth(vt,W[vt]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(W){return W&&this._dateAdapter.getYear(W)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(W):null}_getDateFromMonth(W){const Ze=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),W,1),vt=this._dateAdapter.getNumDaysInMonth(Ze);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),W,Math.min(this._dateAdapter.getDate(this.activeDate),vt))}_createCellForMonth(W,Ze){const vt=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),W,1),Pt=this._dateAdapter.format(vt,this._dateFormats.display.monthYearA11yLabel),en=this.dateClass?this.dateClass(vt,"year"):void 0;return new Ye(W,Ze.toLocaleUpperCase(),Pt,this._shouldEnableMonth(W),en)}_shouldEnableMonth(W){const Ze=this._dateAdapter.getYear(this.activeDate);if(null==W||this._isYearAndMonthAfterMaxDate(Ze,W)||this._isYearAndMonthBeforeMinDate(Ze,W))return!1;if(!this.dateFilter)return!0;for(let Pt=this._dateAdapter.createDate(Ze,W,1);this._dateAdapter.getMonth(Pt)==W;Pt=this._dateAdapter.addCalendarDays(Pt,1))if(this.dateFilter(Pt))return!0;return!1}_isYearAndMonthAfterMaxDate(W,Ze){if(this.maxDate){const vt=this._dateAdapter.getYear(this.maxDate),Pt=this._dateAdapter.getMonth(this.maxDate);return W>vt||W===vt&&Ze>Pt}return!1}_isYearAndMonthBeforeMinDate(W,Ze){if(this.minDate){const vt=this._dateAdapter.getYear(this.minDate),Pt=this._dateAdapter.getMonth(this.minDate);return W{class lt{constructor(W,Ze,vt,Pt,en){this._intl=W,this.calendar=Ze,this._dateAdapter=vt,this._dateFormats=Pt,this._buttonDescriptionId="mat-calendar-button-"+Ue++,this.calendar.stateChanges.subscribe(()=>en.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 Ze=this._dateAdapter.getYear(this.calendar.activeDate)-k(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),vt=Ze+o-1,Pt=this._dateAdapter.getYearName(this._dateAdapter.createDate(Ze,0,1)),en=this._dateAdapter.getYearName(this._dateAdapter.createDate(vt,0,1));return this._intl.formatYearRange(Pt,en)}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:-o)}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:o)}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(W,Ze){return"month"==this.calendar.currentView?this._dateAdapter.getYear(W)==this._dateAdapter.getYear(Ze)&&this._dateAdapter.getMonth(W)==this._dateAdapter.getMonth(Ze):"year"==this.calendar.currentView?this._dateAdapter.getYear(W)==this._dateAdapter.getYear(Ze):y(this._dateAdapter,W,Ze,this.calendar.minDate,this.calendar.maxDate)}}return lt.\u0275fac=function(W){return new(W||lt)(p.Y36(nt),p.Y36((0,p.Gpc)(()=>fe)),p.Y36(E._A,8),p.Y36(E.sG,8),p.Y36(p.sBO))},lt.\u0275cmp=p.Xpm({type:lt,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:Be,decls:11,vars:10,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","aria-live","polite",1,"mat-calendar-period-button",3,"click"],["viewBox","0 0 10 5","focusable","false",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[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(W,Ze){1&W&&(p.F$t(),p.TgZ(0,"div",0)(1,"div",1)(2,"button",2),p.NdJ("click",function(){return Ze.currentPeriodClicked()}),p.TgZ(3,"span"),p._uU(4),p.qZA(),p.O4$(),p.TgZ(5,"svg",3),p._UZ(6,"polygon",4),p.qZA()(),p.kcU(),p._UZ(7,"div",5),p.Hsn(8),p.TgZ(9,"button",6),p.NdJ("click",function(){return Ze.previousClicked()}),p.qZA(),p.TgZ(10,"button",7),p.NdJ("click",function(){return Ze.nextClicked()}),p.qZA()()()),2&W&&(p.xp6(2),p.uIk("aria-label",Ze.periodButtonLabel)("aria-describedby",Ze._buttonDescriptionId),p.xp6(1),p.uIk("id",Ze._buttonDescriptionId),p.xp6(1),p.Oqu(Ze.periodButtonText),p.xp6(1),p.ekj("mat-calendar-invert","month"!==Ze.calendar.currentView),p.xp6(4),p.Q6J("disabled",!Ze.previousEnabled()),p.uIk("aria-label",Ze.prevButtonLabel),p.xp6(1),p.Q6J("disabled",!Ze.nextEnabled()),p.uIk("aria-label",Ze.nextButtonLabel))},dependencies:[g.lW],encapsulation:2,changeDetection:0}),lt})(),fe=(()=>{class lt{constructor(W,Ze,vt,Pt){this._dateAdapter=Ze,this._dateFormats=vt,this._changeDetectorRef=Pt,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new p.vpe,this.yearSelected=new p.vpe,this.monthSelected=new p.vpe,this.viewChanged=new p.vpe(!0),this._userSelection=new p.vpe,this.stateChanges=new S.x,this._intlChanges=W.changes.subscribe(()=>{Pt.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(W){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(W))}get selected(){return this._selected}set selected(W){this._selected=W instanceof ke?W:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(W))}get minDate(){return this._minDate}set minDate(W){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(W))}get maxDate(){return this._maxDate}set maxDate(W){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(W))}get activeDate(){return this._clampedActiveDate}set activeDate(W){this._clampedActiveDate=this._dateAdapter.clampDate(W,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(W){const Ze=this._currentView!==W?W:null;this._currentView=W,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),Ze&&this.viewChanged.emit(Ze)}ngAfterContentInit(){this._calendarHeaderPortal=new A.C5(this.headerComponent||at),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(W){const Ze=W.minDate&&!this._dateAdapter.sameDate(W.minDate.previousValue,W.minDate.currentValue)?W.minDate:void 0,vt=W.maxDate&&!this._dateAdapter.sameDate(W.maxDate.previousValue,W.maxDate.currentValue)?W.maxDate:void 0,Pt=Ze||vt||W.dateFilter;if(Pt&&!Pt.firstChange){const en=this._getCurrentViewComponent();en&&(this._changeDetectorRef.detectChanges(),en._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(W){const Ze=W.value;(this.selected instanceof ke||Ze&&!this._dateAdapter.sameDate(Ze,this.selected))&&this.selectedChange.emit(Ze),this._userSelection.emit(W)}_yearSelectedInMultiYearView(W){this.yearSelected.emit(W)}_monthSelectedInYearView(W){this.monthSelected.emit(W)}_goToDateInView(W,Ze){this.activeDate=W,this.currentView=Ze}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return lt.\u0275fac=function(W){return new(W||lt)(p.Y36(nt),p.Y36(E._A,8),p.Y36(E.sG,8),p.Y36(p.sBO))},lt.\u0275cmp=p.Xpm({type:lt,selectors:[["mat-calendar"]],viewQuery:function(W,Ze){if(1&W&&(p.Gf(n,5),p.Gf(ct,5),p.Gf(d,5)),2&W){let vt;p.iGM(vt=p.CRH())&&(Ze.monthView=vt.first),p.iGM(vt=p.CRH())&&(Ze.yearView=vt.first),p.iGM(vt=p.CRH())&&(Ze.multiYearView=vt.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection"},exportAs:["matCalendar"],features:[p._Bn([X]),p.TTD],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(W,Ze){1&W&&(p.YNc(0,pe,0,0,"ng-template",0),p.TgZ(1,"div",1),p.YNc(2,$e,1,8,"mat-month-view",2),p.YNc(3,Ce,1,6,"mat-year-view",3),p.YNc(4,de,1,6,"mat-multi-year-view",4),p.qZA()),2&W&&(p.Q6J("cdkPortalOutlet",Ze._calendarHeaderPortal),p.xp6(1),p.Q6J("ngSwitch",Ze.currentView),p.xp6(1),p.Q6J("ngSwitchCase","month"),p.xp6(1),p.Q6J("ngSwitchCase","year"),p.xp6(1),p.Q6J("ngSwitchCase","multi-year"))},dependencies:[w.RF,w.n9,e.kH,A.Pl,n,ct,d],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(4.7142857143% - 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:10px;height:5px;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}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.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}.mat-calendar-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),lt})();const Oe={transformPanel:(0,Te.X$)("transformPanel",[(0,Te.eR)("void => enter-dropdown",(0,Te.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,Te.F4)([(0,Te.oB)({opacity:0,transform:"scale(1, 0.8)"}),(0,Te.oB)({opacity:1,transform:"scale(1, 1)"})]))),(0,Te.eR)("void => enter-dialog",(0,Te.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,Te.F4)([(0,Te.oB)({opacity:0,transform:"scale(0.7)"}),(0,Te.oB)({transform:"none",opacity:1})]))),(0,Te.eR)("* => void",(0,Te.jt)("100ms linear",(0,Te.oB)({opacity:0})))]),fadeInCalendar:(0,Te.X$)("fadeInCalendar",[(0,Te.SB)("void",(0,Te.oB)({opacity:0})),(0,Te.SB)("enter",(0,Te.oB)({opacity:1})),(0,Te.eR)("void => *",(0,Te.jt)("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let Ke=0;const je=new p.OlP("mat-datepicker-scroll-strategy"),ie={provide:je,deps:[m.aV],useFactory:function Le(lt){return()=>lt.scrollStrategies.reposition()}},Ae=(0,E.pj)(class{constructor(lt){this._elementRef=lt}});let st=(()=>{class lt extends Ae{constructor(W,Ze,vt,Pt,en,Tn){super(W),this._changeDetectorRef=Ze,this._globalModel=vt,this._dateAdapter=Pt,this._rangeSelectionStrategy=en,this._subscriptions=new R.w0,this._animationDone=new S.x,this._actionsPortal=null,this._closeButtonText=Tn.closeCalendarLabel}ngOnInit(){this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(W){const Ze=this._model.selection,vt=W.value,Pt=Ze instanceof ke;if(Pt&&this._rangeSelectionStrategy){const en=this._rangeSelectionStrategy.selectionFinished(vt,Ze,W.event);this._model.updateSelection(en,this)}else vt&&(Pt||!this._dateAdapter.sameDate(vt,Ze))&&this._model.add(vt);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(W,Ze){this._model=W?this._globalModel.clone():this._globalModel,this._actionsPortal=W,Ze&&this._changeDetectorRef.detectChanges()}}return lt.\u0275fac=function(W){return new(W||lt)(p.Y36(p.SBq),p.Y36(p.sBO),p.Y36(Ee),p.Y36(E._A),p.Y36(_,8),p.Y36(nt))},lt.\u0275cmp=p.Xpm({type:lt,selectors:[["mat-datepicker-content"]],viewQuery:function(W,Ze){if(1&W&&p.Gf(fe,5),2&W){let vt;p.iGM(vt=p.CRH())&&(Ze._calendar=vt.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(W,Ze){1&W&&p.WFA("@transformPanel.done",function(){return Ze._animationDone.next()}),2&W&&(p.d8E("@transformPanel",Ze._animationState),p.ekj("mat-datepicker-content-touch",Ze.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[p.qOj],decls:5,vars:24,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","yearSelected","monthSelected","viewChanged","_userSelection"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"color","focus","blur","click"]],template:function(W,Ze){if(1&W&&(p.TgZ(0,"div",0)(1,"mat-calendar",1),p.NdJ("yearSelected",function(Pt){return Ze.datepicker._selectYear(Pt)})("monthSelected",function(Pt){return Ze.datepicker._selectMonth(Pt)})("viewChanged",function(Pt){return Ze.datepicker._viewChanged(Pt)})("_userSelection",function(Pt){return Ze._handleUserSelection(Pt)}),p.qZA(),p.YNc(2,re,0,0,"ng-template",2),p.TgZ(3,"button",3),p.NdJ("focus",function(){return Ze._closeButtonFocused=!0})("blur",function(){return Ze._closeButtonFocused=!1})("click",function(){return Ze.datepicker.close()}),p._uU(4),p.qZA()()),2&W){let vt;p.ekj("mat-datepicker-content-container-with-custom-header",Ze.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",Ze._actionsPortal),p.uIk("aria-modal",!0)("aria-labelledby",null!==(vt=Ze._dialogLabelId)&&void 0!==vt?vt:void 0),p.xp6(1),p.Q6J("id",Ze.datepicker.id)("ngClass",Ze.datepicker.panelClass)("startAt",Ze.datepicker.startAt)("startView",Ze.datepicker.startView)("minDate",Ze.datepicker._getMinDate())("maxDate",Ze.datepicker._getMaxDate())("dateFilter",Ze.datepicker._getDateFilter())("headerComponent",Ze.datepicker.calendarHeaderComponent)("selected",Ze._getSelected())("dateClass",Ze.datepicker.dateClass)("comparisonStart",Ze.comparisonStart)("comparisonEnd",Ze.comparisonEnd)("@fadeInCalendar","enter"),p.xp6(1),p.Q6J("cdkPortalOutlet",Ze._actionsPortal),p.xp6(1),p.ekj("cdk-visually-hidden",!Ze._closeButtonFocused),p.Q6J("color",Ze.color||"primary"),p.xp6(1),p.Oqu(Ze._closeButtonText)}},dependencies:[w.mk,g.lW,e.mK,A.Pl,fe],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}"],encapsulation:2,data:{animation:[Oe.transformPanel,Oe.fadeInCalendar]},changeDetection:0}),lt})(),ze=(()=>{class lt{constructor(W,Ze,vt,Pt,en,Tn,Gn){this._overlay=W,this._ngZone=Ze,this._viewContainerRef=vt,this._dateAdapter=en,this._dir=Tn,this._model=Gn,this._inputStateChanges=R.w0.EMPTY,this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new p.vpe,this.monthSelected=new p.vpe,this.viewChanged=new p.vpe(!0),this.openedStream=new p.vpe,this.closedStream=new p.vpe,this._opened=!1,this.id="mat-datepicker-"+Ke++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new S.x,this._scrollStrategy=Pt}get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(W){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(W))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(W){this._color=W}get touchUi(){return this._touchUi}set touchUi(W){this._touchUi=(0,_e.Ig)(W)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(W){const Ze=(0,_e.Ig)(W);Ze!==this._disabled&&(this._disabled=Ze,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(W){this._restoreFocus=(0,_e.Ig)(W)}get panelClass(){return this._panelClass}set panelClass(W){this._panelClass=(0,_e.du)(W)}get opened(){return this._opened}set opened(W){(0,_e.Ig)(W)?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(W){const Ze=W.xPosition||W.yPosition;if(Ze&&!Ze.firstChange&&this._overlayRef){const vt=this._overlayRef.getConfig().positionStrategy;vt instanceof m._G&&(this._setConnectedPositions(vt),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(W){this._model.add(W)}_selectYear(W){this.yearSelected.emit(W)}_selectMonth(W){this.monthSelected.emit(W)}_viewChanged(W){this.viewChanged.emit(W)}registerInput(W){return this._inputStateChanges.unsubscribe(),this.datepickerInput=W,this._inputStateChanges=W.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(W){var Ze;this._actionsPortal=W,null===(Ze=this._componentRef)||void 0===Ze||Ze.instance._assignActions(W,!0)}removeActions(W){var Ze;W===this._actionsPortal&&(this._actionsPortal=null,null===(Ze=this._componentRef)||void 0===Ze||Ze.instance._assignActions(null,!0))}open(){this._opened||this.disabled||(this._focusedElementBeforeOpen=(0,ce.ht)(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened)return;if(this._componentRef){const Ze=this._componentRef.instance;Ze._startExitAnimation(),Ze._animationDone.pipe((0,$.q)(1)).subscribe(()=>this._destroyOverlay())}const W=()=>{this._opened&&(this._opened=!1,this.closedStream.emit(),this._focusedElementBeforeOpen=null)};this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(W)):W()}_applyPendingSelection(){var W,Ze;null===(W=this._componentRef)||void 0===W||null===(Ze=W.instance)||void 0===Ze||Ze._applyPendingSelection()}_forwardContentValues(W){W.datepicker=this,W.color=this.color,W._dialogLabelId=this.datepickerInput.getOverlayLabelId(),W._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();const W=this.touchUi,Ze=new A.C5(st,this._viewContainerRef),vt=this._overlayRef=this._overlay.create(new m.X_({positionStrategy:W?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[W?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:W?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(W?"dialog":"popup")}));this._getCloseStream(vt).subscribe(Pt=>{Pt&&Pt.preventDefault(),this.close()}),vt.keydownEvents().subscribe(Pt=>{const en=Pt.keyCode;(en===F.LH||en===F.JH||en===F.oh||en===F.SV||en===F.Ku||en===F.VM)&&Pt.preventDefault()}),this._componentRef=vt.attach(Ze),this._forwardContentValues(this._componentRef.instance),W||this._ngZone.onStable.pipe((0,$.q)(1)).subscribe(()=>vt.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const W=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(W)}_setConnectedPositions(W){const Ze="end"===this.xPosition?"end":"start",vt="start"===Ze?"end":"start",Pt="above"===this.yPosition?"bottom":"top",en="top"===Pt?"bottom":"top";return W.withPositions([{originX:Ze,originY:en,overlayX:Ze,overlayY:Pt},{originX:Ze,originY:Pt,overlayX:Ze,overlayY:en},{originX:vt,originY:en,overlayX:vt,overlayY:Pt},{originX:vt,originY:Pt,overlayX:vt,overlayY:en}])}_getCloseStream(W){return(0,v.T)(W.backdropClick(),W.detachments(),W.keydownEvents().pipe((0,q.h)(Ze=>Ze.keyCode===F.hY&&!(0,F.Vb)(Ze)||this.datepickerInput&&(0,F.Vb)(Ze,"altKey")&&Ze.keyCode===F.LH)))}}return lt.\u0275fac=function(W){return new(W||lt)(p.Y36(m.aV),p.Y36(p.R0b),p.Y36(p.s_b),p.Y36(je),p.Y36(E._A,8),p.Y36(z.Is,8),p.Y36(Ee))},lt.\u0275dir=p.lG2({type:lt,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:"touchUi",disabled:"disabled",xPosition:"xPosition",yPosition:"yPosition",restoreFocus:"restoreFocus",dateClass:"dateClass",panelClass:"panelClass",opened:"opened"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[p.TTD]}),lt})(),_t=(()=>{class lt extends ze{}return lt.\u0275fac=function(){let wt;return function(Ze){return(wt||(wt=p.n5z(lt)))(Ze||lt)}}(),lt.\u0275cmp=p.Xpm({type:lt,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[p._Bn([X,{provide:ze,useExisting:lt}]),p.qOj],decls:0,vars:0,template:function(W,Ze){},encapsulation:2,changeDetection:0}),lt})();class me{constructor(wt,W){this.target=wt,this.targetElement=W,this.value=this.target.value}}let qe=(()=>{class lt{constructor(W,Ze,vt){this._elementRef=W,this._dateAdapter=Ze,this._dateFormats=vt,this.dateChange=new p.vpe,this.dateInput=new p.vpe,this.stateChanges=new S.x,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=R.w0.EMPTY,this._localeSubscription=R.w0.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=Pt=>{const en=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Pt.value));return!en||this._matchesFilter(en)?null:{matDatepickerFilter:!0}},this._minValidator=Pt=>{const en=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Pt.value)),Tn=this._getMinDate();return!Tn||!en||this._dateAdapter.compareDate(Tn,en)<=0?null:{matDatepickerMin:{min:Tn,actual:en}}},this._maxValidator=Pt=>{const en=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Pt.value)),Tn=this._getMaxDate();return!Tn||!en||this._dateAdapter.compareDate(Tn,en)>=0?null:{matDatepickerMax:{max:Tn,actual:en}}},this._lastValueValid=!1,this._localeSubscription=Ze.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(W){this._assignValueProgrammatically(W)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(W){const Ze=(0,_e.Ig)(W),vt=this._elementRef.nativeElement;this._disabled!==Ze&&(this._disabled=Ze,this.stateChanges.next(void 0)),Ze&&this._isInitialized&&vt.blur&&vt.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(W){this._model=W,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(Ze=>{if(this._shouldHandleChangeEvent(Ze)){const vt=this._getValueFromModel(Ze.selection);this._lastValueValid=this._isValidValue(vt),this._cvaOnChange(vt),this._onTouched(),this._formatValue(vt),this.dateInput.emit(new me(this,this._elementRef.nativeElement)),this.dateChange.emit(new me(this,this._elementRef.nativeElement))}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(W){(function rt(lt,wt){const W=Object.keys(lt);for(let Ze of W){const{previousValue:vt,currentValue:Pt}=lt[Ze];if(!wt.isDateInstance(vt)||!wt.isDateInstance(Pt))return!0;if(!wt.sameDate(vt,Pt))return!0}return!1})(W,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(W){this._validatorOnChange=W}validate(W){return this._validator?this._validator(W):null}writeValue(W){this._assignValueProgrammatically(W)}registerOnChange(W){this._cvaOnChange=W}registerOnTouched(W){this._onTouched=W}setDisabledState(W){this.disabled=W}_onKeydown(W){W.altKey&&W.keyCode===F.JH&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),W.preventDefault())}_onInput(W){const Ze=this._lastValueValid;let vt=this._dateAdapter.parse(W,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(vt),vt=this._dateAdapter.getValidDateOrNull(vt);const Pt=!this._dateAdapter.sameDate(vt,this.value);!vt||Pt?this._cvaOnChange(vt):(W&&!this.value&&this._cvaOnChange(vt),Ze!==this._lastValueValid&&this._validatorOnChange()),Pt&&(this._assignValue(vt),this.dateInput.emit(new me(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new me(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(W){this._elementRef.nativeElement.value=null!=W?this._dateAdapter.format(W,this._dateFormats.display.dateInput):""}_assignValue(W){this._model?(this._assignValueToModel(W),this._pendingValue=null):this._pendingValue=W}_isValidValue(W){return!W||this._dateAdapter.isValid(W)}_parentDisabled(){return!1}_assignValueProgrammatically(W){W=this._dateAdapter.deserialize(W),this._lastValueValid=this._isValidValue(W),W=this._dateAdapter.getValidDateOrNull(W),this._assignValue(W),this._formatValue(W)}_matchesFilter(W){const Ze=this._getDateFilter();return!Ze||Ze(W)}}return lt.\u0275fac=function(W){return new(W||lt)(p.Y36(p.SBq),p.Y36(E._A,8),p.Y36(E.sG,8))},lt.\u0275dir=p.lG2({type:lt,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[p.TTD]}),lt})();const Mt={provide:b.JU,useExisting:(0,p.Gpc)(()=>Gt),multi:!0},Qt={provide:b.Cf,useExisting:(0,p.Gpc)(()=>Gt),multi:!0};let Gt=(()=>{class lt extends qe{constructor(W,Ze,vt,Pt){super(W,Ze,vt),this._formField=Pt,this._closedSubscription=R.w0.EMPTY,this._validator=b.kI.compose(super._getValidators())}set matDatepicker(W){W&&(this._datepicker=W,this._closedSubscription=W.closedStream.subscribe(()=>this._onTouched()),this._registerModel(W.registerInput(this)))}get min(){return this._min}set min(W){const Ze=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(W));this._dateAdapter.sameDate(Ze,this._min)||(this._min=Ze,this._validatorOnChange())}get max(){return this._max}set max(W){const Ze=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(W));this._dateAdapter.sameDate(Ze,this._max)||(this._max=Ze,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(W){const Ze=this._matchesFilter(this.value);this._dateFilter=W,this._matchesFilter(this.value)!==Ze&&this._validatorOnChange()}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(W){return W}_assignValueToModel(W){this._model&&this._model.updateSelection(W,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(W){return W.source!==this}}return lt.\u0275fac=function(W){return new(W||lt)(p.Y36(p.SBq),p.Y36(E._A,8),p.Y36(E.sG,8),p.Y36(H.G_,8))},lt.\u0275dir=p.lG2({type:lt,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(W,Ze){1&W&&p.NdJ("input",function(Pt){return Ze._onInput(Pt.target.value)})("change",function(){return Ze._onChange()})("blur",function(){return Ze._onBlur()})("keydown",function(Pt){return Ze._onKeydown(Pt)}),2&W&&(p.Ikx("disabled",Ze.disabled),p.uIk("aria-haspopup",Ze._datepicker?"dialog":null)("aria-owns",(null==Ze._datepicker?null:Ze._datepicker.opened)&&Ze._datepicker.id||null)("min",Ze.min?Ze._dateAdapter.toIso8601(Ze.min):null)("max",Ze.max?Ze._dateAdapter.toIso8601(Ze.max):null)("data-mat-calendar",Ze._datepicker?Ze._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[p._Bn([Mt,Qt,{provide:L.Jk,useExisting:lt}]),p.qOj]}),lt})(),an=(()=>{class lt{}return lt.\u0275fac=function(W){return new(W||lt)},lt.\u0275dir=p.lG2({type:lt,selectors:[["","matDatepickerToggleIcon",""]]}),lt})(),hn=(()=>{class lt{constructor(W,Ze,vt){this._intl=W,this._changeDetectorRef=Ze,this._stateChanges=R.w0.EMPTY;const Pt=Number(vt);this.tabIndex=Pt||0===Pt?Pt:null}get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(W){this._disabled=(0,_e.Ig)(W)}ngOnChanges(W){W.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(W){this.datepicker&&!this.disabled&&(this.datepicker.open(),W.stopPropagation())}_watchStateChanges(){const W=this.datepicker?this.datepicker.stateChanges:(0,D.of)(),Ze=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:(0,D.of)(),vt=this.datepicker?(0,v.T)(this.datepicker.openedStream,this.datepicker.closedStream):(0,D.of)();this._stateChanges.unsubscribe(),this._stateChanges=(0,v.T)(this._intl.changes,W,Ze,vt).subscribe(()=>this._changeDetectorRef.markForCheck())}}return lt.\u0275fac=function(W){return new(W||lt)(p.Y36(nt),p.Y36(p.sBO),p.$8M("tabindex"))},lt.\u0275cmp=p.Xpm({type:lt,selectors:[["mat-datepicker-toggle"]],contentQueries:function(W,Ze,vt){if(1&W&&p.Suo(vt,an,5),2&W){let Pt;p.iGM(Pt=p.CRH())&&(Ze._customIcon=Pt.first)}},viewQuery:function(W,Ze){if(1&W&&p.Gf(B,5),2&W){let vt;p.iGM(vt=p.CRH())&&(Ze._button=vt.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(W,Ze){1&W&&p.NdJ("click",function(Pt){return Ze._open(Pt)}),2&W&&(p.uIk("tabindex",null)("data-mat-calendar",Ze.datepicker?Ze.datepicker.id:null),p.ekj("mat-datepicker-toggle-active",Ze.datepicker&&Ze.datepicker.opened)("mat-accent",Ze.datepicker&&"accent"===Ze.datepicker.color)("mat-warn",Ze.datepicker&&"warn"===Ze.datepicker.color))},inputs:{datepicker:["for","datepicker"],tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[p.TTD],ngContentSelectors:Y,decls:4,vars:6,consts:[["mat-icon-button","","type","button",3,"disabled","disableRipple"],["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(W,Ze){1&W&&(p.F$t(Me),p.TgZ(0,"button",0,1),p.YNc(2,N,2,0,"svg",2),p.Hsn(3),p.qZA()),2&W&&(p.Q6J("disabled",Ze.disabled)("disableRipple",Ze.disableRipple),p.uIk("aria-haspopup",Ze.datepicker?"dialog":null)("aria-label",Ze.ariaLabel||Ze._intl.openCalendarLabel)("tabindex",Ze.disabled?-1:Ze.tabIndex),p.xp6(2),p.Q6J("ngIf",!Ze._customIcon))},dependencies:[w.O5,g.lW],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}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}"],encapsulation:2,changeDetection:0}),lt})(),pt=(()=>{class lt{}return lt.\u0275fac=function(W){return new(W||lt)},lt.\u0275mod=p.oAB({type:lt}),lt.\u0275inj=p.cJS({providers:[nt,ie],imports:[w.ez,g.ot,m.U8,e.rt,A.eL,E.BQ,T.ZD]}),lt})()},65412:(Qe,he,u)=>{"use strict";u.d(he,{WI:()=>be,uw:()=>Xe,H8:()=>ot,vA:()=>re,xY:()=>Ee,Is:()=>oe,so:()=>Me,uh:()=>ke});var e=u(12687),m=u(98184),A=u(83353),w=u(84080),p=u(36895),g=u(94650),T=u(29521),E=u(77579),S=u(49770),R=u(39646),v=u(40445),D=u(68675);function F(X,r){}class z{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0}}let G=(()=>{class X extends w.en{constructor(s,_,c,a,i,t,n,o){super(),this._elementRef=s,this._focusTrapFactory=_,this._config=a,this._interactivityChecker=i,this._ngZone=t,this._overlayRef=n,this._focusMonitor=o,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=l=>{this._portalOutlet.hasAttached();const d=this._portalOutlet.attachDomPortal(l);return this._contentAttached(),d},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=c}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(s){this._portalOutlet.hasAttached();const _=this._portalOutlet.attachComponentPortal(s);return this._contentAttached(),_}attachTemplatePortal(s){this._portalOutlet.hasAttached();const _=this._portalOutlet.attachTemplatePortal(s);return this._contentAttached(),_}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(s,_){this._interactivityChecker.isFocusable(s)||(s.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const c=()=>{s.removeEventListener("blur",c),s.removeEventListener("mousedown",c),s.removeAttribute("tabindex")};s.addEventListener("blur",c),s.addEventListener("mousedown",c)})),s.focus(_)}_focusByCssSelector(s,_){let c=this._elementRef.nativeElement.querySelector(s);c&&this._forceFocus(c,_)}_trapFocus(){const s=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||s.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(_=>{_||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const s=this._config.restoreFocus;let _=null;if("string"==typeof s?_=this._document.querySelector(s):"boolean"==typeof s?_=s?this._elementFocusedBeforeDialogWasOpened:null:s&&(_=s),this._config.restoreFocus&&_&&"function"==typeof _.focus){const c=(0,A.ht)(),a=this._elementRef.nativeElement;(!c||c===this._document.body||c===a||a.contains(c))&&(this._focusMonitor?(this._focusMonitor.focusVia(_,this._closeInteractionType),this._closeInteractionType=null):_.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const s=this._elementRef.nativeElement,_=(0,A.ht)();return s===_||s.contains(_)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,A.ht)())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return X.\u0275fac=function(s){return new(s||X)(g.Y36(g.SBq),g.Y36(e.qV),g.Y36(p.K0,8),g.Y36(z),g.Y36(e.ic),g.Y36(g.R0b),g.Y36(m.Iu),g.Y36(e.tE))},X.\u0275cmp=g.Xpm({type:X,selectors:[["cdk-dialog-container"]],viewQuery:function(s,_){if(1&s&&g.Gf(w.Pl,7),2&s){let c;g.iGM(c=g.CRH())&&(_._portalOutlet=c.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(s,_){2&s&&g.uIk("id",_._config.id||null)("role",_._config.role)("aria-modal",_._config.ariaModal)("aria-labelledby",_._config.ariaLabel?null:_._ariaLabelledBy)("aria-label",_._config.ariaLabel)("aria-describedby",_._config.ariaDescribedBy||null)},features:[g.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(s,_){1&s&&g.YNc(0,F,0,0,"ng-template",0)},dependencies:[w.Pl],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),X})();class q{constructor(r,s){this.overlayRef=r,this.config=s,this.closed=new E.x,this.disableClose=s.disableClose,this.backdropClick=r.backdropClick(),this.keydownEvents=r.keydownEvents(),this.outsidePointerEvents=r.outsidePointerEvents(),this.id=s.id,this.keydownEvents.subscribe(_=>{_.keyCode===T.hY&&!this.disableClose&&!(0,T.Vb)(_)&&(_.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(r,s){if(this.containerInstance){const _=this.closed;this.containerInstance._closeInteractionType=s?.focusOrigin||"program",this.overlayRef.dispose(),_.next(r),_.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(r="",s=""){return this.overlayRef.updateSize({width:r,height:s}),this}addPanelClass(r){return this.overlayRef.addPanelClass(r),this}removePanelClass(r){return this.overlayRef.removePanelClass(r),this}}const _e=new g.OlP("DialogScrollStrategy"),ce=new g.OlP("DialogData"),Te=new g.OlP("DefaultDialogConfig"),H={provide:_e,deps:[m.aV],useFactory:function b(X){return()=>X.scrollStrategies.block()}};let L=0,V=(()=>{class X{constructor(s,_,c,a,i,t){this._overlay=s,this._injector=_,this._defaultOptions=c,this._parentDialog=a,this._overlayContainer=i,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new E.x,this._afterOpenedAtThisLevel=new E.x,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,S.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,D.O)(void 0))),this._scrollStrategy=t}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}open(s,_){(_={...this._defaultOptions||new z,..._}).id=_.id||"cdk-dialog-"+L++,_.id&&this.getDialogById(_.id);const a=this._getOverlayConfig(_),i=this._overlay.create(a),t=new q(i,_),n=this._attachContainer(i,t,_);return t.containerInstance=n,this._attachDialogContent(s,t,n,_),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(t),t.closed.subscribe(()=>this._removeOpenDialog(t,!0)),this.afterOpened.next(t),t}closeAll(){Q(this.openDialogs,s=>s.close())}getDialogById(s){return this.openDialogs.find(_=>_.id===s)}ngOnDestroy(){Q(this._openDialogsAtThisLevel,s=>{!1===s.config.closeOnDestroy&&this._removeOpenDialog(s,!1)}),Q(this._openDialogsAtThisLevel,s=>s.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(s){const _=new m.X_({positionStrategy:s.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:s.scrollStrategy||this._scrollStrategy(),panelClass:s.panelClass,hasBackdrop:s.hasBackdrop,direction:s.direction,minWidth:s.minWidth,minHeight:s.minHeight,maxWidth:s.maxWidth,maxHeight:s.maxHeight,width:s.width,height:s.height,disposeOnNavigation:s.closeOnNavigation});return s.backdropClass&&(_.backdropClass=s.backdropClass),_}_attachContainer(s,_,c){var a,i;const t=null!==(a=c.injector)&&void 0!==a?a:null===(i=c.viewContainerRef)||void 0===i?void 0:i.injector,n=[{provide:z,useValue:c},{provide:q,useValue:_},{provide:m.Iu,useValue:s}];let o;c.container?"function"==typeof c.container?o=c.container:(o=c.container.type,n.push(...c.container.providers(c))):o=G;const l=new w.C5(o,c.viewContainerRef,g.zs3.create({parent:t||this._injector,providers:n}),c.componentFactoryResolver);return s.attach(l).instance}_attachDialogContent(s,_,c,a){const i=this._createInjector(a,_,c);if(s instanceof g.Rgc){let t={$implicit:a.data,dialogRef:_};a.templateContext&&(t={...t,..."function"==typeof a.templateContext?a.templateContext():a.templateContext}),c.attachTemplatePortal(new w.UE(s,null,t,i))}else{const t=c.attachComponentPortal(new w.C5(s,a.viewContainerRef,i,a.componentFactoryResolver));_.componentInstance=t.instance}}_createInjector(s,_,c){const a=s&&s.viewContainerRef&&s.viewContainerRef.injector,i=[{provide:ce,useValue:s.data},{provide:q,useValue:_}];return s.providers&&("function"==typeof s.providers?i.push(...s.providers(_,s,c)):i.push(...s.providers)),s.direction&&(!a||!a.get(v.Is,null,g.XFs.Optional))&&i.push({provide:v.Is,useValue:{value:s.direction,change:(0,R.of)()}}),g.zs3.create({parent:s.injector||a||this._injector,providers:i})}_removeOpenDialog(s,_){const c=this.openDialogs.indexOf(s);c>-1&&(this.openDialogs.splice(c,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((a,i)=>{a?i.setAttribute("aria-hidden",a):i.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),_&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const s=this._overlayContainer.getContainerElement();if(s.parentElement){const _=s.parentElement.children;for(let c=_.length-1;c>-1;c--){const a=_[c];a!==s&&"SCRIPT"!==a.nodeName&&"STYLE"!==a.nodeName&&!a.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(a,a.getAttribute("aria-hidden")),a.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const s=this._parentDialog;return s?s._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return X.\u0275fac=function(s){return new(s||X)(g.LFG(m.aV),g.LFG(g.zs3),g.LFG(Te,8),g.LFG(X,12),g.LFG(m.Xj),g.LFG(_e))},X.\u0275prov=g.Yz7({token:X,factory:X.\u0275fac}),X})();function Q(X,r){let s=X.length;for(;s--;)r(X[s])}let ae=(()=>{class X{}return X.\u0275fac=function(s){return new(s||X)},X.\u0275mod=g.oAB({type:X}),X.\u0275inj=g.cJS({providers:[V,H],imports:[m.U8,w.eL,e.rt,w.eL]}),X})();var xe=u(3238),ge=u(56451),Se=u(39300),Be=u(95698),pe=u(37340);function $e(X,r){}const Ce={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},de={dialogContainer:(0,pe.X$)("dialogContainer",[(0,pe.SB)("void, exit",(0,pe.oB)({opacity:0,transform:"scale(0.7)"})),(0,pe.SB)("enter",(0,pe.oB)({transform:"none"})),(0,pe.eR)("* => enter",(0,pe.ru)([(0,pe.jt)("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",(0,pe.oB)({transform:"none",opacity:1})),(0,pe.IO)("@*",(0,pe.pV)(),{optional:!0})]),Ce),(0,pe.eR)("* => void, * => exit",(0,pe.ru)([(0,pe.jt)("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",(0,pe.oB)({opacity:0})),(0,pe.IO)("@*",(0,pe.pV)(),{optional:!0})]),Ce)])};class re{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="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0,this.enterAnimationDuration=Ce.params.enterAnimationDuration,this.exitAnimationDuration=Ce.params.exitAnimationDuration}}let B=(()=>{class X extends G{constructor(s,_,c,a,i,t,n,o){super(s,_,c,a,i,t,n,o),this._animationStateChanged=new g.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(s){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:s})}}return X.\u0275fac=function(s){return new(s||X)(g.Y36(g.SBq),g.Y36(e.qV),g.Y36(p.K0,8),g.Y36(re),g.Y36(e.ic),g.Y36(g.R0b),g.Y36(m.Iu),g.Y36(e.tE))},X.\u0275cmp=g.Xpm({type:X,selectors:[["ng-component"]],features:[g.qOj],decls:0,vars:0,template:function(s,_){},encapsulation:2}),X})(),N=(()=>{class X extends B{constructor(s,_,c,a,i,t,n,o,l){super(s,_,c,a,i,t,n,l),this._changeDetectorRef=o,this._state="enter"}_onAnimationDone({toState:s,totalTime:_}){"enter"===s?this._openAnimationDone(_):"exit"===s&&this._animationStateChanged.next({state:"closed",totalTime:_})}_onAnimationStart({toState:s,totalTime:_}){"enter"===s?this._animationStateChanged.next({state:"opening",totalTime:_}):("exit"===s||"void"===s)&&this._animationStateChanged.next({state:"closing",totalTime:_})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||Ce.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||Ce.params.exitAnimationDuration}}}}return X.\u0275fac=function(s){return new(s||X)(g.Y36(g.SBq),g.Y36(e.qV),g.Y36(p.K0,8),g.Y36(re),g.Y36(e.ic),g.Y36(g.R0b),g.Y36(m.Iu),g.Y36(g.sBO),g.Y36(e.tE))},X.\u0275cmp=g.Xpm({type:X,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(s,_){1&s&&g.WFA("@dialogContainer.start",function(a){return _._onAnimationStart(a)})("@dialogContainer.done",function(a){return _._onAnimationDone(a)}),2&s&&(g.Ikx("id",_._config.id),g.uIk("aria-modal",_._config.ariaModal)("role",_._config.role)("aria-labelledby",_._config.ariaLabel?null:_._ariaLabelledBy)("aria-label",_._config.ariaLabel)("aria-describedby",_._config.ariaDescribedBy||null),g.d8E("@dialogContainer",_._getAnimationState()))},features:[g.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(s,_){1&s&&g.YNc(0,$e,0,0,"ng-template",0)},dependencies:[w.Pl],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.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.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}"],encapsulation:2,data:{animation:[de.dialogContainer]}}),X})();class Me{constructor(r,s,_){this._ref=r,this._containerInstance=_,this._afterOpened=new E.x,this._beforeClosed=new E.x,this._state=0,this.disableClose=s.disableClose,this.id=r.id,_._animationStateChanged.pipe((0,Se.h)(c=>"opened"===c.state),(0,Be.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),_._animationStateChanged.pipe((0,Se.h)(c=>"closed"===c.state),(0,Be.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),r.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,ge.T)(this.backdropClick(),this.keydownEvents().pipe((0,Se.h)(c=>c.keyCode===T.hY&&!this.disableClose&&!(0,T.Vb)(c)))).subscribe(c=>{this.disableClose||(c.preventDefault(),function Y(X,r,s){X._closeInteractionType=r,X.close(s)}(this,"keydown"===c.type?"keyboard":"mouse"))})}close(r){this._result=r,this._containerInstance._animationStateChanged.pipe((0,Se.h)(s=>"closing"===s.state),(0,Be.q)(1)).subscribe(s=>{this._beforeClosed.next(r),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),s.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(r){let s=this._ref.config.positionStrategy;return r&&(r.left||r.right)?r.left?s.left(r.left):s.right(r.right):s.centerHorizontally(),r&&(r.top||r.bottom)?r.top?s.top(r.top):s.bottom(r.bottom):s.centerVertically(),this._ref.updatePosition(),this}updateSize(r="",s=""){return this._ref.updateSize(r,s),this}addPanelClass(r){return this._ref.addPanelClass(r),this}removePanelClass(r){return this._ref.removePanelClass(r),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}const be=new g.OlP("MatDialogData"),De=new g.OlP("mat-dialog-default-options"),We=new g.OlP("mat-dialog-scroll-strategy"),Ye={provide:We,deps:[m.aV],useFactory:function nt(X){return()=>X.scrollStrategies.block()}};let Tt=0,J=(()=>{class X{constructor(s,_,c,a,i,t,n,o,l,d){this._overlay=s,this._defaultOptions=c,this._parentDialog=a,this._dialogRefConstructor=n,this._dialogContainerType=o,this._dialogDataToken=l,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new E.x,this._afterOpenedAtThisLevel=new E.x,this._idPrefix="mat-dialog-",this.afterAllClosed=(0,S.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,D.O)(void 0))),this._scrollStrategy=t,this._dialog=_.get(V)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const s=this._parentDialog;return s?s._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(s,_){let c;(_={...this._defaultOptions||new re,..._}).id=_.id||`${this._idPrefix}${Tt++}`,_.scrollStrategy=_.scrollStrategy||this._scrollStrategy();const a=this._dialog.open(s,{..._,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:re,useValue:_},{provide:z,useValue:_}]},templateContext:()=>({dialogRef:c}),providers:(i,t,n)=>{var o;return c=new this._dialogRefConstructor(i,_,n),c.updatePosition(null===(o=_)||void 0===o?void 0:o.position),[{provide:this._dialogContainerType,useValue:n},{provide:this._dialogDataToken,useValue:t.data},{provide:this._dialogRefConstructor,useValue:c}]}});return c.componentInstance=a.componentInstance,this.openDialogs.push(c),this.afterOpened.next(c),c.afterClosed().subscribe(()=>{const i=this.openDialogs.indexOf(c);i>-1&&(this.openDialogs.splice(i,1),this.openDialogs.length||this._getAfterAllClosed().next())}),c}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(s){return this.openDialogs.find(_=>_.id===s)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(s){let _=s.length;for(;_--;)s[_].close()}}return X.\u0275fac=function(s){g.$Z()},X.\u0275prov=g.Yz7({token:X,factory:X.\u0275fac}),X})(),Xe=(()=>{class X extends J{constructor(s,_,c,a,i,t,n,o){super(s,_,a,t,n,i,Me,N,be,o)}}return X.\u0275fac=function(s){return new(s||X)(g.LFG(m.aV),g.LFG(g.zs3),g.LFG(p.Ye,8),g.LFG(De,8),g.LFG(We),g.LFG(X,12),g.LFG(m.Xj),g.LFG(g.QbO,8))},X.\u0275prov=g.Yz7({token:X,factory:X.\u0275fac}),X})(),le=0,ke=(()=>{class X{constructor(s,_,c){this._dialogRef=s,this._elementRef=_,this._dialog=c,this.id="mat-dialog-title-"+le++}ngOnInit(){this._dialogRef||(this._dialogRef=function it(X,r){let s=X.nativeElement.parentElement;for(;s&&!s.classList.contains("mat-dialog-container");)s=s.parentElement;return s?r.find(_=>_.id===s.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const s=this._dialogRef._containerInstance;s&&!s._ariaLabelledBy&&(s._ariaLabelledBy=this.id)})}}return X.\u0275fac=function(s){return new(s||X)(g.Y36(Me,8),g.Y36(g.SBq),g.Y36(Xe))},X.\u0275dir=g.lG2({type:X,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(s,_){2&s&&g.Ikx("id",_.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),X})(),Ee=(()=>{class X{}return X.\u0275fac=function(s){return new(s||X)},X.\u0275dir=g.lG2({type:X,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),X})(),ot=(()=>{class X{constructor(){this.align="start"}}return X.\u0275fac=function(s){return new(s||X)},X.\u0275dir=g.lG2({type:X,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(s,_){2&s&&g.ekj("mat-dialog-actions-align-center","center"===_.align)("mat-dialog-actions-align-end","end"===_.align)},inputs:{align:"align"}}),X})(),oe=(()=>{class X{}return X.\u0275fac=function(s){return new(s||X)},X.\u0275mod=g.oAB({type:X}),X.\u0275inj=g.cJS({providers:[Xe,Ye],imports:[ae,m.U8,w.eL,xe.BQ,xe.BQ]}),X})()},44850:(Qe,he,u)=>{"use strict";u.d(he,{d:()=>w,t:()=>p});var e=u(94650),m=u(21281),A=u(3238);let w=(()=>{class g{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(E){this._vertical=(0,m.Ig)(E)}get inset(){return this._inset}set inset(E){this._inset=(0,m.Ig)(E)}}return g.\u0275fac=function(E){return new(E||g)},g.\u0275cmp=e.Xpm({type:g,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(E,S){2&E&&(e.uIk("aria-orientation",S.vertical?"vertical":"horizontal"),e.ekj("mat-divider-vertical",S.vertical)("mat-divider-horizontal",!S.vertical)("mat-divider-inset",S.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(E,S){},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}"],encapsulation:2,changeDetection:0}),g})(),p=(()=>{class g{}return g.\u0275fac=function(E){return new(E||g)},g.\u0275mod=e.oAB({type:g}),g.\u0275inj=e.cJS({imports:[A.BQ,A.BQ]}),g})()},37084:(Qe,he,u)=>{"use strict";u.d(he,{pp:()=>Ye,To:()=>Tt,ib:()=>Me,HS:()=>re,u4:()=>Pe,yz:()=>We,yK:()=>nt});var e=u(94650),m=u(95017),A=u(21281),w=u(77579),p=u(50727);let g=0;const T=new e.OlP("CdkAccordion");let E=(()=>{class J{constructor(){this._stateChanges=new w.x,this._openCloseAllActions=new w.x,this.id="cdk-accordion-"+g++,this._multi=!1}get multi(){return this._multi}set multi(le){this._multi=(0,A.Ig)(le)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(le){this._stateChanges.next(le)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return J.\u0275fac=function(le){return new(le||J)},J.\u0275dir=e.lG2({type:J,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[e._Bn([{provide:T,useExisting:J}]),e.TTD]}),J})(),S=0,R=(()=>{class J{constructor(le,ne,ke){this.accordion=le,this._changeDetectorRef=ne,this._expansionDispatcher=ke,this._openCloseAllSubscription=p.w0.EMPTY,this.closed=new e.vpe,this.opened=new e.vpe,this.destroyed=new e.vpe,this.expandedChange=new e.vpe,this.id="cdk-accordion-child-"+S++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=ke.listen((Ee,ot)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===ot&&this.id!==Ee&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(le){le=(0,A.Ig)(le),this._expanded!==le&&(this._expanded=le,this.expandedChange.emit(le),le?(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(le){this._disabled=(0,A.Ig)(le)}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(le=>{this.disabled||(this.expanded=le)})}}return J.\u0275fac=function(le){return new(le||J)(e.Y36(T,12),e.Y36(e.sBO),e.Y36(m.A8))},J.\u0275dir=e.lG2({type:J,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[e._Bn([{provide:T,useValue:void 0}])]}),J})(),v=(()=>{class J{}return J.\u0275fac=function(le){return new(le||J)},J.\u0275mod=e.oAB({type:J}),J.\u0275inj=e.cJS({}),J})();var D=u(84080),F=u(36895),z=u(3238),$=u(12687),G=u(71884),q=u(68675),_e=u(39300),ce=u(95698),Te=u(29521),b=u(60515),H=u(56451),L=u(37340);const V=["body"];function Q(J,Xe){}const ae=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],xe=["mat-expansion-panel-header","*","mat-action-row"];function ge(J,Xe){if(1&J&&e._UZ(0,"span",2),2&J){const le=e.oxw();e.Q6J("@indicatorRotate",le._getExpandedState())}}const Se=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],Be=["mat-panel-title","mat-panel-description","*"],pe=new e.OlP("MAT_ACCORDION"),$e="225ms cubic-bezier(0.4,0.0,0.2,1)",Ce={indicatorRotate:(0,L.X$)("indicatorRotate",[(0,L.SB)("collapsed, void",(0,L.oB)({transform:"rotate(0deg)"})),(0,L.SB)("expanded",(0,L.oB)({transform:"rotate(180deg)"})),(0,L.eR)("expanded <=> collapsed, void => collapsed",(0,L.jt)($e))]),bodyExpansion:(0,L.X$)("bodyExpansion",[(0,L.SB)("collapsed, void",(0,L.oB)({height:"0px",visibility:"hidden"})),(0,L.SB)("expanded",(0,L.oB)({height:"*",visibility:"visible"})),(0,L.eR)("expanded <=> collapsed, void => collapsed",(0,L.jt)($e))])},de=new e.OlP("MAT_EXPANSION_PANEL");let re=(()=>{class J{constructor(le,ne){this._template=le,this._expansionPanel=ne}}return J.\u0275fac=function(le){return new(le||J)(e.Y36(e.Rgc),e.Y36(de,8))},J.\u0275dir=e.lG2({type:J,selectors:[["ng-template","matExpansionPanelContent",""]]}),J})(),B=0;const N=new e.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let Me=(()=>{class J extends R{constructor(le,ne,ke,Ee,ot,it,oe){super(le,ne,ke),this._viewContainerRef=Ee,this._animationMode=it,this._hideToggle=!1,this.afterExpand=new e.vpe,this.afterCollapse=new e.vpe,this._inputChanges=new w.x,this._headerId="mat-expansion-panel-header-"+B++,this._bodyAnimationDone=new w.x,this.accordion=le,this._document=ot,this._bodyAnimationDone.pipe((0,G.x)((X,r)=>X.fromState===r.fromState&&X.toState===r.toState)).subscribe(X=>{"void"!==X.fromState&&("expanded"===X.toState?this.afterExpand.emit():"collapsed"===X.toState&&this.afterCollapse.emit())}),oe&&(this.hideToggle=oe.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(le){this._hideToggle=(0,A.Ig)(le)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(le){this._togglePosition=le}_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._lazyContent._expansionPanel===this&&this.opened.pipe((0,q.O)(null),(0,_e.h)(()=>this.expanded&&!this._portal),(0,ce.q)(1)).subscribe(()=>{this._portal=new D.UE(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(le){this._inputChanges.next(le)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const le=this._document.activeElement,ne=this._body.nativeElement;return le===ne||ne.contains(le)}return!1}}return J.\u0275fac=function(le){return new(le||J)(e.Y36(pe,12),e.Y36(e.sBO),e.Y36(m.A8),e.Y36(e.s_b),e.Y36(F.K0),e.Y36(e.QbO,8),e.Y36(N,8))},J.\u0275cmp=e.Xpm({type:J,selectors:[["mat-expansion-panel"]],contentQueries:function(le,ne,ke){if(1&le&&e.Suo(ke,re,5),2&le){let Ee;e.iGM(Ee=e.CRH())&&(ne._lazyContent=Ee.first)}},viewQuery:function(le,ne){if(1&le&&e.Gf(V,5),2&le){let ke;e.iGM(ke=e.CRH())&&(ne._body=ke.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(le,ne){2&le&&e.ekj("mat-expanded",ne.expanded)("_mat-animation-noopable","NoopAnimations"===ne._animationMode)("mat-expansion-panel-spacing",ne._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[e._Bn([{provide:pe,useValue:void 0},{provide:de,useExisting:J}]),e.qOj,e.TTD],ngContentSelectors:xe,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(le,ne){1&le&&(e.F$t(ae),e.Hsn(0),e.TgZ(1,"div",0,1),e.NdJ("@bodyExpansion.done",function(Ee){return ne._bodyAnimationDone.next(Ee)}),e.TgZ(3,"div",2),e.Hsn(4,1),e.YNc(5,Q,0,0,"ng-template",3),e.qZA(),e.Hsn(6,2),e.qZA()),2&le&&(e.xp6(1),e.Q6J("@bodyExpansion",ne._getExpandedState())("id",ne.id),e.uIk("aria-labelledby",ne._headerId),e.xp6(4),e.Q6J("cdkPortalOutlet",ne._portal))},dependencies:[D.Pl],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-content[style*="visibility: hidden"] *{visibility:hidden !important}.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 .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[Ce.bodyExpansion]},changeDetection:0}),J})();class be{}const De=(0,z.sb)(be);let We=(()=>{class J extends De{constructor(le,ne,ke,Ee,ot,it,oe){super(),this.panel=le,this._element=ne,this._focusMonitor=ke,this._changeDetectorRef=Ee,this._animationMode=it,this._parentChangeSubscription=p.w0.EMPTY;const X=le.accordion?le.accordion._stateChanges.pipe((0,_e.h)(r=>!(!r.hideToggle&&!r.togglePosition))):b.E;this.tabIndex=parseInt(oe||"")||0,this._parentChangeSubscription=(0,H.T)(le.opened,le.closed,X,le._inputChanges.pipe((0,_e.h)(r=>!!(r.hideToggle||r.disabled||r.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),le.closed.pipe((0,_e.h)(()=>le._containsFocus())).subscribe(()=>ke.focusVia(ne,"program")),ot&&(this.expandedHeight=ot.expandedHeight,this.collapsedHeight=ot.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 le=this._isExpanded();return le&&this.expandedHeight?this.expandedHeight:!le&&this.collapsedHeight?this.collapsedHeight:null}_keydown(le){switch(le.keyCode){case Te.L_:case Te.K5:(0,Te.Vb)(le)||(le.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(le))}}focus(le,ne){le?this._focusMonitor.focusVia(this._element,le,ne):this._element.nativeElement.focus(ne)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(le=>{le&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return J.\u0275fac=function(le){return new(le||J)(e.Y36(Me,1),e.Y36(e.SBq),e.Y36($.tE),e.Y36(e.sBO),e.Y36(N,8),e.Y36(e.QbO,8),e.$8M("tabindex"))},J.\u0275cmp=e.Xpm({type:J,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(le,ne){1&le&&e.NdJ("click",function(){return ne._toggle()})("keydown",function(Ee){return ne._keydown(Ee)}),2&le&&(e.uIk("id",ne.panel._headerId)("tabindex",ne.tabIndex)("aria-controls",ne._getPanelId())("aria-expanded",ne._isExpanded())("aria-disabled",ne.panel.disabled),e.Udp("height",ne._getHeaderHeight()),e.ekj("mat-expanded",ne._isExpanded())("mat-expansion-toggle-indicator-after","after"===ne._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===ne._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===ne._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[e.qOj],ngContentSelectors:Be,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(le,ne){1&le&&(e.F$t(Se),e.TgZ(0,"span",0),e.Hsn(1),e.Hsn(2,1),e.Hsn(3,2),e.qZA(),e.YNc(4,ge,1,1,"span",1)),2&le&&(e.xp6(4),e.Q6J("ngIf",ne._showToggle()))},dependencies:[F.O5],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;align-items:center}[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}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[Ce.indicatorRotate]},changeDetection:0}),J})(),Pe=(()=>{class J{}return J.\u0275fac=function(le){return new(le||J)},J.\u0275dir=e.lG2({type:J,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),J})(),nt=(()=>{class J{}return J.\u0275fac=function(le){return new(le||J)},J.\u0275dir=e.lG2({type:J,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),J})(),Ye=(()=>{class J extends E{constructor(){super(...arguments),this._ownHeaders=new e.n_E,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(le){this._hideToggle=(0,A.Ig)(le)}ngAfterContentInit(){this._headers.changes.pipe((0,q.O)(this._headers)).subscribe(le=>{this._ownHeaders.reset(le.filter(ne=>ne.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new $.Em(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(le){this._keyManager.onKeydown(le)}_handleHeaderFocus(le){this._keyManager.updateActiveItem(le)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return J.\u0275fac=function(){let Xe;return function(ne){return(Xe||(Xe=e.n5z(J)))(ne||J)}}(),J.\u0275dir=e.lG2({type:J,selectors:[["mat-accordion"]],contentQueries:function(le,ne,ke){if(1&le&&e.Suo(ke,We,5),2&le){let Ee;e.iGM(Ee=e.CRH())&&(ne._headers=Ee)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(le,ne){2&le&&e.ekj("mat-accordion-multi",ne.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[e._Bn([{provide:pe,useExisting:J}]),e.qOj]}),J})(),Tt=(()=>{class J{}return J.\u0275fac=function(le){return new(le||J)},J.\u0275mod=e.oAB({type:J}),J.\u0275inj=e.cJS({imports:[F.ez,z.BQ,v,D.eL]}),J})()},59549:(Qe,he,u)=>{"use strict";u.d(he,{Eo:()=>re,G_:()=>ot,KE:()=>it,R9:()=>J,TO:()=>Ce,UY:()=>Pe,bx:()=>De,hX:()=>We,lN:()=>oe});var e=u(49643),m=u(36895),A=u(94650),w=u(3238),p=u(40445),g=u(21281),T=u(77579),E=u(56451),S=u(54968),R=u(68675),v=u(82722),D=u(95698),F=u(37340),z=u(83353);const $=["connectionContainer"],G=["inputContainer"],q=["label"];function _e(X,r){1&X&&(A.ynx(0),A.TgZ(1,"div",14),A._UZ(2,"div",15)(3,"div",16)(4,"div",17),A.qZA(),A.TgZ(5,"div",18),A._UZ(6,"div",15)(7,"div",16)(8,"div",17),A.qZA(),A.BQk())}function ce(X,r){if(1&X){const s=A.EpF();A.TgZ(0,"div",19),A.NdJ("cdkObserveContent",function(){A.CHM(s);const c=A.oxw();return A.KtG(c.updateOutlineGap())}),A.Hsn(1,1),A.qZA()}if(2&X){const s=A.oxw();A.Q6J("cdkObserveContentDisabled","outline"!=s.appearance)}}function Te(X,r){if(1&X&&(A.ynx(0),A.Hsn(1,2),A.TgZ(2,"span"),A._uU(3),A.qZA(),A.BQk()),2&X){const s=A.oxw(2);A.xp6(3),A.Oqu(s._control.placeholder)}}function b(X,r){1&X&&A.Hsn(0,3,["*ngSwitchCase","true"])}function H(X,r){1&X&&(A.TgZ(0,"span",23),A._uU(1," *"),A.qZA())}function L(X,r){if(1&X){const s=A.EpF();A.TgZ(0,"label",20,21),A.NdJ("cdkObserveContent",function(){A.CHM(s);const c=A.oxw();return A.KtG(c.updateOutlineGap())}),A.YNc(2,Te,4,1,"ng-container",12),A.YNc(3,b,1,0,"ng-content",12),A.YNc(4,H,2,0,"span",22),A.qZA()}if(2&X){const s=A.oxw();A.ekj("mat-empty",s._control.empty&&!s._shouldAlwaysFloat())("mat-form-field-empty",s._control.empty&&!s._shouldAlwaysFloat())("mat-accent","accent"==s.color)("mat-warn","warn"==s.color),A.Q6J("cdkObserveContentDisabled","outline"!=s.appearance)("id",s._labelId)("ngSwitch",s._hasLabel()),A.uIk("for",s._control.id)("aria-owns",s._control.id),A.xp6(2),A.Q6J("ngSwitchCase",!1),A.xp6(1),A.Q6J("ngSwitchCase",!0),A.xp6(1),A.Q6J("ngIf",!s.hideRequiredMarker&&s._control.required&&!s._control.disabled)}}function V(X,r){1&X&&(A.TgZ(0,"div",24),A.Hsn(1,4),A.qZA())}function Q(X,r){if(1&X&&(A.TgZ(0,"div",25),A._UZ(1,"span",26),A.qZA()),2&X){const s=A.oxw();A.xp6(1),A.ekj("mat-accent","accent"==s.color)("mat-warn","warn"==s.color)}}function ae(X,r){if(1&X&&(A.TgZ(0,"div"),A.Hsn(1,5),A.qZA()),2&X){const s=A.oxw();A.Q6J("@transitionMessages",s._subscriptAnimationState)}}function xe(X,r){if(1&X&&(A.TgZ(0,"div",30),A._uU(1),A.qZA()),2&X){const s=A.oxw(2);A.Q6J("id",s._hintLabelId),A.xp6(1),A.Oqu(s.hintLabel)}}function ge(X,r){if(1&X&&(A.TgZ(0,"div",27),A.YNc(1,xe,2,2,"div",28),A.Hsn(2,6),A._UZ(3,"div",29),A.Hsn(4,7),A.qZA()),2&X){const s=A.oxw();A.Q6J("@transitionMessages",s._subscriptAnimationState),A.xp6(1),A.Q6J("ngIf",s.hintLabel)}}const Se=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Be=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let pe=0;const $e=new A.OlP("MatError");let Ce=(()=>{class X{constructor(s,_){this.id="mat-error-"+pe++,s||_.nativeElement.setAttribute("aria-live","polite")}}return X.\u0275fac=function(s){return new(s||X)(A.$8M("aria-live"),A.Y36(A.SBq))},X.\u0275dir=A.lG2({type:X,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(s,_){2&s&&A.uIk("id",_.id)},inputs:{id:"id"},features:[A._Bn([{provide:$e,useExisting:X}])]}),X})();const de={transitionMessages:(0,F.X$)("transitionMessages",[(0,F.SB)("enter",(0,F.oB)({opacity:1,transform:"translateY(0%)"})),(0,F.eR)("void => enter",[(0,F.oB)({opacity:0,transform:"translateY(-5px)"}),(0,F.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let re=(()=>{class X{}return X.\u0275fac=function(s){return new(s||X)},X.\u0275dir=A.lG2({type:X}),X})(),Y=0;const be=new A.OlP("MatHint");let De=(()=>{class X{constructor(){this.align="start",this.id="mat-hint-"+Y++}}return X.\u0275fac=function(s){return new(s||X)},X.\u0275dir=A.lG2({type:X,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(s,_){2&s&&(A.uIk("id",_.id)("align",null),A.ekj("mat-form-field-hint-end","end"===_.align))},inputs:{align:"align",id:"id"},features:[A._Bn([{provide:be,useExisting:X}])]}),X})(),We=(()=>{class X{}return X.\u0275fac=function(s){return new(s||X)},X.\u0275dir=A.lG2({type:X,selectors:[["mat-label"]]}),X})(),Pe=(()=>{class X{}return X.\u0275fac=function(s){return new(s||X)},X.\u0275dir=A.lG2({type:X,selectors:[["mat-placeholder"]]}),X})();const nt=new A.OlP("MatPrefix"),Tt=new A.OlP("MatSuffix");let J=(()=>{class X{}return X.\u0275fac=function(s){return new(s||X)},X.\u0275dir=A.lG2({type:X,selectors:[["","matSuffix",""]],features:[A._Bn([{provide:Tt,useExisting:X}])]}),X})(),Xe=0;const ke=(0,w.pj)(class{constructor(X){this._elementRef=X}},"primary"),Ee=new A.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),ot=new A.OlP("MatFormField");let it=(()=>{class X extends ke{constructor(s,_,c,a,i,t,n){super(s),this._changeDetectorRef=_,this._dir=c,this._defaults=a,this._platform=i,this._ngZone=t,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new T.x,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+Xe++,this._labelId="mat-form-field-label-"+Xe++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==n,this.appearance=a?.appearance||"legacy",a&&(this._hideRequiredMarker=Boolean(a.hideRequiredMarker),a.color&&(this.color=this.defaultColor=a.color))}get appearance(){return this._appearance}set appearance(s){var _;const c=this._appearance;this._appearance=s||(null===(_=this._defaults)||void 0===_?void 0:_.appearance)||"legacy","outline"===this._appearance&&c!==s&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(s){this._hideRequiredMarker=(0,g.Ig)(s)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(s){this._hintLabel=s,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(s){s!==this._floatLabel&&(this._floatLabel=s||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(s){this._explicitFormFieldControl=s}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const s=this._control;s.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${s.controlType}`),s.stateChanges.pipe((0,R.O)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),s.ngControl&&s.ngControl.valueChanges&&s.ngControl.valueChanges.pipe((0,v.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,v.R)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,E.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,R.O)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,R.O)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,v.R)(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(s){const _=this._control?this._control.ngControl:null;return _&&_[s]}_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,(0,S.R)(this._label.nativeElement,"transitionend").pipe((0,D.q)(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 s=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&s.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const _=this._hintChildren?this._hintChildren.find(a=>"start"===a.align):null,c=this._hintChildren?this._hintChildren.find(a=>"end"===a.align):null;_?s.push(_.id):this._hintLabel&&s.push(this._hintLabelId),c&&s.push(c.id)}else this._errorChildren&&s.push(...this._errorChildren.map(_=>_.id));this._control.setDescribedByIds(s)}}_validateControlChild(){}updateOutlineGap(){const s=this._label?this._label.nativeElement:null,_=this._connectionContainerRef.nativeElement,c=".mat-form-field-outline-start",a=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!s||!s.children.length||!s.textContent.trim()){const l=_.querySelectorAll(`${c}, ${a}`);for(let d=0;d0?.75*Ie+10:0}for(let l=0;l{class X{}return X.\u0275fac=function(s){return new(s||X)},X.\u0275mod=A.oAB({type:X}),X.\u0275inj=A.cJS({imports:[m.ez,w.BQ,e.Q8,w.BQ]}),X})()},97392:(Qe,he,u)=>{"use strict";u.d(he,{Hw:()=>Y,Ps:()=>be,jv:()=>ae});var e=u(94650),m=u(3238),A=u(21281),w=u(36895),p=u(39646),g=u(62843),T=u(4128),E=u(50727),S=u(18505),R=u(54004),v=u(70262),D=u(28746),F=u(13099),z=u(95698),$=u(80529),G=u(11481);const q=["*"];let _e;function Te(De){var We;return(null===(We=function ce(){if(void 0===_e&&(_e=null,typeof window<"u")){const De=window;void 0!==De.trustedTypes&&(_e=De.trustedTypes.createPolicy("angular#components",{createHTML:We=>We}))}return _e}())||void 0===We?void 0:We.createHTML(De))||De}function b(De){return Error(`Unable to find icon with the name "${De}"`)}function L(De){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${De}".`)}function V(De){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${De}".`)}class Q{constructor(We,Pe,nt){this.url=We,this.svgText=Pe,this.options=nt}}let ae=(()=>{class De{constructor(Pe,nt,Ye,Tt){this._httpClient=Pe,this._sanitizer=nt,this._errorHandler=Tt,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=Ye}addSvgIcon(Pe,nt,Ye){return this.addSvgIconInNamespace("",Pe,nt,Ye)}addSvgIconLiteral(Pe,nt,Ye){return this.addSvgIconLiteralInNamespace("",Pe,nt,Ye)}addSvgIconInNamespace(Pe,nt,Ye,Tt){return this._addSvgIconConfig(Pe,nt,new Q(Ye,null,Tt))}addSvgIconResolver(Pe){return this._resolvers.push(Pe),this}addSvgIconLiteralInNamespace(Pe,nt,Ye,Tt){const J=this._sanitizer.sanitize(e.q3G.HTML,Ye);if(!J)throw V(Ye);const Xe=Te(J);return this._addSvgIconConfig(Pe,nt,new Q("",Xe,Tt))}addSvgIconSet(Pe,nt){return this.addSvgIconSetInNamespace("",Pe,nt)}addSvgIconSetLiteral(Pe,nt){return this.addSvgIconSetLiteralInNamespace("",Pe,nt)}addSvgIconSetInNamespace(Pe,nt,Ye){return this._addSvgIconSetConfig(Pe,new Q(nt,null,Ye))}addSvgIconSetLiteralInNamespace(Pe,nt,Ye){const Tt=this._sanitizer.sanitize(e.q3G.HTML,nt);if(!Tt)throw V(nt);const J=Te(Tt);return this._addSvgIconSetConfig(Pe,new Q("",J,Ye))}registerFontClassAlias(Pe,nt=Pe){return this._fontCssClassesByAlias.set(Pe,nt),this}classNameForFontAlias(Pe){return this._fontCssClassesByAlias.get(Pe)||Pe}setDefaultFontSetClass(...Pe){return this._defaultFontSetClass=Pe,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(Pe){const nt=this._sanitizer.sanitize(e.q3G.RESOURCE_URL,Pe);if(!nt)throw L(Pe);const Ye=this._cachedIconsByUrl.get(nt);return Ye?(0,p.of)(Se(Ye)):this._loadSvgIconFromConfig(new Q(Pe,null)).pipe((0,S.b)(Tt=>this._cachedIconsByUrl.set(nt,Tt)),(0,R.U)(Tt=>Se(Tt)))}getNamedSvgIcon(Pe,nt=""){const Ye=Be(nt,Pe);let Tt=this._svgIconConfigs.get(Ye);if(Tt)return this._getSvgFromConfig(Tt);if(Tt=this._getIconConfigFromResolvers(nt,Pe),Tt)return this._svgIconConfigs.set(Ye,Tt),this._getSvgFromConfig(Tt);const J=this._iconSetConfigs.get(nt);return J?this._getSvgFromIconSetConfigs(Pe,J):(0,g._)(b(Ye))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(Pe){return Pe.svgText?(0,p.of)(Se(this._svgElementFromConfig(Pe))):this._loadSvgIconFromConfig(Pe).pipe((0,R.U)(nt=>Se(nt)))}_getSvgFromIconSetConfigs(Pe,nt){const Ye=this._extractIconWithNameFromAnySet(Pe,nt);if(Ye)return(0,p.of)(Ye);const Tt=nt.filter(J=>!J.svgText).map(J=>this._loadSvgIconSetFromConfig(J).pipe((0,v.K)(Xe=>{const ne=`Loading icon set URL: ${this._sanitizer.sanitize(e.q3G.RESOURCE_URL,J.url)} failed: ${Xe.message}`;return this._errorHandler.handleError(new Error(ne)),(0,p.of)(null)})));return(0,T.D)(Tt).pipe((0,R.U)(()=>{const J=this._extractIconWithNameFromAnySet(Pe,nt);if(!J)throw b(Pe);return J}))}_extractIconWithNameFromAnySet(Pe,nt){for(let Ye=nt.length-1;Ye>=0;Ye--){const Tt=nt[Ye];if(Tt.svgText&&Tt.svgText.toString().indexOf(Pe)>-1){const J=this._svgElementFromConfig(Tt),Xe=this._extractSvgIconFromSet(J,Pe,Tt.options);if(Xe)return Xe}}return null}_loadSvgIconFromConfig(Pe){return this._fetchIcon(Pe).pipe((0,S.b)(nt=>Pe.svgText=nt),(0,R.U)(()=>this._svgElementFromConfig(Pe)))}_loadSvgIconSetFromConfig(Pe){return Pe.svgText?(0,p.of)(null):this._fetchIcon(Pe).pipe((0,S.b)(nt=>Pe.svgText=nt))}_extractSvgIconFromSet(Pe,nt,Ye){const Tt=Pe.querySelector(`[id="${nt}"]`);if(!Tt)return null;const J=Tt.cloneNode(!0);if(J.removeAttribute("id"),"svg"===J.nodeName.toLowerCase())return this._setSvgAttributes(J,Ye);if("symbol"===J.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(J),Ye);const Xe=this._svgElementFromString(Te(""));return Xe.appendChild(J),this._setSvgAttributes(Xe,Ye)}_svgElementFromString(Pe){const nt=this._document.createElement("DIV");nt.innerHTML=Pe;const Ye=nt.querySelector("svg");if(!Ye)throw Error(" tag not found");return Ye}_toSvgElement(Pe){const nt=this._svgElementFromString(Te("")),Ye=Pe.attributes;for(let Tt=0;TtTe(ke)),(0,D.x)(()=>this._inProgressUrlFetches.delete(Xe)),(0,F.B)());return this._inProgressUrlFetches.set(Xe,ne),ne}_addSvgIconConfig(Pe,nt,Ye){return this._svgIconConfigs.set(Be(Pe,nt),Ye),this}_addSvgIconSetConfig(Pe,nt){const Ye=this._iconSetConfigs.get(Pe);return Ye?Ye.push(nt):this._iconSetConfigs.set(Pe,[nt]),this}_svgElementFromConfig(Pe){if(!Pe.svgElement){const nt=this._svgElementFromString(Pe.svgText);this._setSvgAttributes(nt,Pe.options),Pe.svgElement=nt}return Pe.svgElement}_getIconConfigFromResolvers(Pe,nt){for(let Ye=0;YeWe?We.pathname+We.search:""}}}),B=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],N=B.map(De=>`[${De}]`).join(", "),Me=/^url\(['"]?#(.*?)['"]?\)$/;let Y=(()=>{class De extends $e{constructor(Pe,nt,Ye,Tt,J,Xe){super(Pe),this._iconRegistry=nt,this._location=Tt,this._errorHandler=J,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=E.w0.EMPTY,Xe&&(Xe.color&&(this.color=this.defaultColor=Xe.color),Xe.fontSet&&(this.fontSet=Xe.fontSet)),Ye||Pe.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(Pe){this._inline=(0,A.Ig)(Pe)}get svgIcon(){return this._svgIcon}set svgIcon(Pe){Pe!==this._svgIcon&&(Pe?this._updateSvgIcon(Pe):this._svgIcon&&this._clearSvgElement(),this._svgIcon=Pe)}get fontSet(){return this._fontSet}set fontSet(Pe){const nt=this._cleanupFontValue(Pe);nt!==this._fontSet&&(this._fontSet=nt,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(Pe){const nt=this._cleanupFontValue(Pe);nt!==this._fontIcon&&(this._fontIcon=nt,this._updateFontIconClasses())}_splitIconName(Pe){if(!Pe)return["",""];const nt=Pe.split(":");switch(nt.length){case 1:return["",nt[0]];case 2:return nt;default:throw Error(`Invalid icon name: "${Pe}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const Pe=this._elementsWithExternalReferences;if(Pe&&Pe.size){const nt=this._location.getPathname();nt!==this._previousPath&&(this._previousPath=nt,this._prependPathToReferences(nt))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(Pe){this._clearSvgElement();const nt=this._location.getPathname();this._previousPath=nt,this._cacheChildrenWithExternalReferences(Pe),this._prependPathToReferences(nt),this._elementRef.nativeElement.appendChild(Pe)}_clearSvgElement(){const Pe=this._elementRef.nativeElement;let nt=Pe.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();nt--;){const Ye=Pe.childNodes[nt];(1!==Ye.nodeType||"svg"===Ye.nodeName.toLowerCase())&&Ye.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const Pe=this._elementRef.nativeElement,nt=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(Ye=>Ye.length>0);this._previousFontSetClass.forEach(Ye=>Pe.classList.remove(Ye)),nt.forEach(Ye=>Pe.classList.add(Ye)),this._previousFontSetClass=nt,this.fontIcon!==this._previousFontIconClass&&!nt.includes("mat-ligature-font")&&(this._previousFontIconClass&&Pe.classList.remove(this._previousFontIconClass),this.fontIcon&&Pe.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(Pe){return"string"==typeof Pe?Pe.trim().split(" ")[0]:Pe}_prependPathToReferences(Pe){const nt=this._elementsWithExternalReferences;nt&&nt.forEach((Ye,Tt)=>{Ye.forEach(J=>{Tt.setAttribute(J.name,`url('${Pe}#${J.value}')`)})})}_cacheChildrenWithExternalReferences(Pe){const nt=Pe.querySelectorAll(N),Ye=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let Tt=0;Tt{const Xe=nt[Tt],le=Xe.getAttribute(J),ne=le?le.match(Me):null;if(ne){let ke=Ye.get(Xe);ke||(ke=[],Ye.set(Xe,ke)),ke.push({name:J,value:ne[1]})}})}_updateSvgIcon(Pe){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),Pe){const[nt,Ye]=this._splitIconName(Pe);nt&&(this._svgNamespace=nt),Ye&&(this._svgName=Ye),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(Ye,nt).pipe((0,z.q)(1)).subscribe(Tt=>this._setSvgElement(Tt),Tt=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${nt}:${Ye}! ${Tt.message}`))})}}}return De.\u0275fac=function(Pe){return new(Pe||De)(e.Y36(e.SBq),e.Y36(ae),e.$8M("aria-hidden"),e.Y36(de),e.Y36(e.qLn),e.Y36(Ce,8))},De.\u0275cmp=e.Xpm({type:De,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(Pe,nt){2&Pe&&(e.uIk("data-mat-icon-type",nt._usingFontIcon()?"font":"svg")("data-mat-icon-name",nt._svgName||nt.fontIcon)("data-mat-icon-namespace",nt._svgNamespace||nt.fontSet),e.ekj("mat-icon-inline",nt.inline)("mat-icon-no-color","primary"!==nt.color&&"accent"!==nt.color&&"warn"!==nt.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[e.qOj],ngContentSelectors:q,decls:1,vars:0,template:function(Pe,nt){1&Pe&&(e.F$t(),e.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[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}"],encapsulation:2,changeDetection:0}),De})(),be=(()=>{class De{}return De.\u0275fac=function(Pe){return new(Pe||De)},De.\u0275mod=e.oAB({type:De}),De.\u0275inj=e.cJS({imports:[m.BQ,m.BQ]}),De})()},284:(Qe,he,u)=>{"use strict";u.d(he,{Jk:()=>R,Nt:()=>z,c:()=>$});var e=u(21281),m=u(83353),A=u(39349),w=u(94650),p=u(24006),g=u(3238),T=u(59549),E=u(77579);const R=new w.OlP("MAT_INPUT_VALUE_ACCESSOR"),v=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let D=0;const F=(0,g.FD)(class{constructor(G,q,_e,ce){this._defaultErrorStateMatcher=G,this._parentForm=q,this._parentFormGroup=_e,this.ngControl=ce,this.stateChanges=new E.x}});let z=(()=>{class G extends F{constructor(_e,ce,Te,b,H,L,V,Q,ae,xe){super(L,b,H,Te),this._elementRef=_e,this._platform=ce,this._autofillMonitor=Q,this._formField=xe,this._uid="mat-input-"+D++,this.focused=!1,this.stateChanges=new E.x,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(Be=>(0,m.qK)().has(Be)),this._iOSKeyupListener=Be=>{const pe=Be.target;!pe.value&&0===pe.selectionStart&&0===pe.selectionEnd&&(pe.setSelectionRange(1,1),pe.setSelectionRange(0,0))};const ge=this._elementRef.nativeElement,Se=ge.nodeName.toLowerCase();this._inputValueAccessor=V||ge,this._previousNativeValue=this.value,this.id=this.id,ce.IOS&&ae.runOutsideAngular(()=>{_e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===Se,this._isTextarea="textarea"===Se,this._isInFormField=!!xe,this._isNativeSelect&&(this.controlType=ge.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(_e){this._disabled=(0,e.Ig)(_e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(_e){this._id=_e||this._uid}get required(){var _e,ce,Te,b;return null!==(_e=null!==(ce=this._required)&&void 0!==ce?ce:null===(Te=this.ngControl)||void 0===Te||null===(b=Te.control)||void 0===b?void 0:b.hasValidator(p.kI.required))&&void 0!==_e&&_e}set required(_e){this._required=(0,e.Ig)(_e)}get type(){return this._type}set type(_e){this._type=_e||"text",this._validateType(),!this._isTextarea&&(0,m.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(_e){_e!==this.value&&(this._inputValueAccessor.value=_e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(_e){this._readonly=(0,e.Ig)(_e)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(_e=>{this.autofilled=_e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(_e){this._elementRef.nativeElement.focus(_e)}_focusChanged(_e){_e!==this.focused&&(this.focused=_e,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var _e;const ce=this._formField,Te=!ce||"legacy"!==ce.appearance||null!==(_e=ce._hasLabel)&&void 0!==_e&&_e.call(ce)?this.placeholder:null;if(Te!==this._previousPlaceholder){const b=this._elementRef.nativeElement;this._previousPlaceholder=Te,Te?b.setAttribute("placeholder",Te):b.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const _e=this._elementRef.nativeElement.value;this._previousNativeValue!==_e&&(this._previousNativeValue=_e,this.stateChanges.next())}_validateType(){v.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let _e=this._elementRef.nativeElement.validity;return _e&&_e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const _e=this._elementRef.nativeElement,ce=_e.options[0];return this.focused||_e.multiple||!this.empty||!!(_e.selectedIndex>-1&&ce&&ce.label)}return this.focused||!this.empty}setDescribedByIds(_e){_e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",_e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const _e=this._elementRef.nativeElement;return this._isNativeSelect&&(_e.multiple||_e.size>1)}}return G.\u0275fac=function(_e){return new(_e||G)(w.Y36(w.SBq),w.Y36(m.t4),w.Y36(p.a5,10),w.Y36(p.F,8),w.Y36(p.sg,8),w.Y36(g.rD),w.Y36(R,10),w.Y36(A.Lq),w.Y36(w.R0b),w.Y36(T.G_,8))},G.\u0275dir=w.lG2({type:G,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(_e,ce){1&_e&&w.NdJ("focus",function(){return ce._focusChanged(!0)})("blur",function(){return ce._focusChanged(!1)})("input",function(){return ce._onInput()}),2&_e&&(w.Ikx("disabled",ce.disabled)("required",ce.required),w.uIk("id",ce.id)("data-placeholder",ce.placeholder)("name",ce.name||null)("readonly",ce.readonly&&!ce._isNativeSelect||null)("aria-invalid",ce.empty&&ce.required?null:ce.errorState)("aria-required",ce.required),w.ekj("mat-input-server",ce._isServer)("mat-native-select-inline",ce._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[w._Bn([{provide:T.Eo,useExisting:G}]),w.qOj,w.TTD]}),G})(),$=(()=>{class G{}return G.\u0275fac=function(_e){return new(_e||G)},G.\u0275mod=w.oAB({type:G}),G.\u0275inj=w.cJS({providers:[g.rD],imports:[A.Ky,T.lN,g.BQ,A.Ky,T.lN]}),G})()},96338:(Qe,he,u)=>{"use strict";u.d(he,{Tg:()=>Be,i$:()=>ae,ie:()=>N});var e=u(36895),m=u(94650),A=u(3238),w=u(21281),p=u(77579),g=u(82722),D=(u(68675),u(12687),u(95017),u(29521),u(24006),u(44850));const F=["*"],$=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],G=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],b=(0,A.Id)((0,A.Kr)(class{})),H=(0,A.Kr)(class{}),L=new m.OlP("MatList"),V=new m.OlP("MatNavList");let ae=(()=>{class Me extends b{constructor(be){super(),this._elementRef=be,this._stateChanges=new p.x,"action-list"===this._getListType()&&be.nativeElement.classList.add("mat-action-list")}_getListType(){const be=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===be?"list":"mat-action-list"===be?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return Me.\u0275fac=function(be){return new(be||Me)(m.Y36(m.SBq))},Me.\u0275cmp=m.Xpm({type:Me,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[m._Bn([{provide:L,useExisting:Me}]),m.qOj,m.TTD],ngContentSelectors:F,decls:1,vars:0,template:function(be,De){1&be&&(m.F$t(),m.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.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:rgba(0,0,0,0);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{display:block;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:rgba(0,0,0,0);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{display:block;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 .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-list-option:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:hover{outline:dotted 1px;z-index:1}.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}}'],encapsulation:2,changeDetection:0}),Me})(),xe=(()=>{class Me{}return Me.\u0275fac=function(be){return new(be||Me)},Me.\u0275dir=m.lG2({type:Me,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),Me})(),ge=(()=>{class Me{}return Me.\u0275fac=function(be){return new(be||Me)},Me.\u0275dir=m.lG2({type:Me,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),Me})(),Be=(()=>{class Me extends H{constructor(be,De,We,Pe){super(),this._element=be,this._isInteractiveList=!1,this._destroyed=new p.x,this._disabled=!1,this._isInteractiveList=!!(We||Pe&&"action-list"===Pe._getListType()),this._list=We||Pe;const nt=this._getHostElement();"button"===nt.nodeName.toLowerCase()&&!nt.hasAttribute("type")&&nt.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe((0,g.R)(this._destroyed)).subscribe(()=>{De.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(be){this._disabled=(0,w.Ig)(be)}ngAfterContentInit(){(0,A.E0)(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 Me.\u0275fac=function(be){return new(be||Me)(m.Y36(m.SBq),m.Y36(m.sBO),m.Y36(V,8),m.Y36(L,8))},Me.\u0275cmp=m.Xpm({type:Me,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(be,De,We){if(1&be&&(m.Suo(We,xe,5),m.Suo(We,ge,5),m.Suo(We,A.X2,5)),2&be){let Pe;m.iGM(Pe=m.CRH())&&(De._avatar=Pe.first),m.iGM(Pe=m.CRH())&&(De._icon=Pe.first),m.iGM(Pe=m.CRH())&&(De._lines=Pe)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:4,hostBindings:function(be,De){2&be&&m.ekj("mat-list-item-disabled",De.disabled)("mat-list-item-with-avatar",De._avatar||De._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[m.qOj],ngContentSelectors:G,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(be,De){1&be&&(m.F$t($),m.TgZ(0,"span",0),m._UZ(1,"span",1),m.Hsn(2),m.TgZ(3,"span",2),m.Hsn(4,1),m.qZA(),m.Hsn(5,2),m.qZA()),2&be&&(m.xp6(1),m.Q6J("matRippleTrigger",De._getHostElement())("matRippleDisabled",De._isRippleDisabled()))},dependencies:[A.wG],encapsulation:2,changeDetection:0}),Me})(),N=(()=>{class Me{}return Me.\u0275fac=function(be){return new(be||Me)},Me.\u0275mod=m.oAB({type:Me}),Me.\u0275inj=m.cJS({imports:[A.uc,A.si,A.BQ,A.us,e.ez,A.uc,A.BQ,A.us,D.t]}),Me})()},28255:(Qe,he,u)=>{"use strict";u.d(he,{OP:()=>Y,Tx:()=>Ee,VK:()=>nt,p6:()=>ke});var e=u(12687),m=u(21281),A=u(29521),w=u(94650),p=u(77579),g=u(50727),T=u(56451),E=u(39646),S=u(53101),R=u(68675),v=u(63900),D=u(95698),F=u(82722),z=u(39300),$=u(91005),G=u(37340),q=u(84080),_e=u(36895),ce=u(3238),Te=u(40445),b=u(98184),H=u(83353),L=u(67376);const V=["mat-menu-item",""];function Q(ot,it){1&ot&&(w.O4$(),w.TgZ(0,"svg",2),w._UZ(1,"polygon",3),w.qZA())}const ae=["*"];function xe(ot,it){if(1&ot){const oe=w.EpF();w.TgZ(0,"div",0),w.NdJ("keydown",function(r){w.CHM(oe);const s=w.oxw();return w.KtG(s._handleKeydown(r))})("click",function(){w.CHM(oe);const r=w.oxw();return w.KtG(r.closed.emit("click"))})("@transformMenu.start",function(r){w.CHM(oe);const s=w.oxw();return w.KtG(s._onAnimationStart(r))})("@transformMenu.done",function(r){w.CHM(oe);const s=w.oxw();return w.KtG(s._onAnimationDone(r))}),w.TgZ(1,"div",1),w.Hsn(2),w.qZA()()}if(2&ot){const oe=w.oxw();w.Q6J("id",oe.panelId)("ngClass",oe._classList)("@transformMenu",oe._panelAnimationState),w.uIk("aria-label",oe.ariaLabel||null)("aria-labelledby",oe.ariaLabelledby||null)("aria-describedby",oe.ariaDescribedby||null)}}const ge={transformMenu:(0,G.X$)("transformMenu",[(0,G.SB)("void",(0,G.oB)({opacity:0,transform:"scale(0.8)"})),(0,G.eR)("void => enter",(0,G.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,G.oB)({opacity:1,transform:"scale(1)"}))),(0,G.eR)("* => void",(0,G.jt)("100ms 25ms linear",(0,G.oB)({opacity:0})))]),fadeInItems:(0,G.X$)("fadeInItems",[(0,G.SB)("showing",(0,G.oB)({opacity:1})),(0,G.eR)("void => *",[(0,G.oB)({opacity:0}),(0,G.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},pe=new w.OlP("MatMenuContent"),N=new w.OlP("MAT_MENU_PANEL"),Me=(0,ce.Kr)((0,ce.Id)(class{}));let Y=(()=>{class ot extends Me{constructor(oe,X,r,s,_){var c;super(),this._elementRef=oe,this._document=X,this._focusMonitor=r,this._parentMenu=s,this._changeDetectorRef=_,this.role="menuitem",this._hovered=new p.x,this._focused=new p.x,this._highlighted=!1,this._triggersSubmenu=!1,null==s||null===(c=s.addItem)||void 0===c||c.call(s,this)}focus(oe,X){this._focusMonitor&&oe?this._focusMonitor.focusVia(this._getHostElement(),oe,X):this._getHostElement().focus(X),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(oe){this.disabled&&(oe.preventDefault(),oe.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var oe;const X=this._elementRef.nativeElement.cloneNode(!0),r=X.querySelectorAll("mat-icon, .material-icons");for(let s=0;s{class ot{constructor(oe,X,r,s){this._elementRef=oe,this._ngZone=X,this._defaultOptions=r,this._changeDetectorRef=s,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new w.n_E,this._tabSubscription=g.w0.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new p.x,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new w.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+We++}get xPosition(){return this._xPosition}set xPosition(oe){this._xPosition=oe,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(oe){this._yPosition=oe,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(oe){this._overlapTrigger=(0,m.Ig)(oe)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(oe){this._hasBackdrop=(0,m.Ig)(oe)}set panelClass(oe){const X=this._previousPanelClass;X&&X.length&&X.split(" ").forEach(r=>{this._classList[r]=!1}),this._previousPanelClass=oe,oe&&oe.length&&(oe.split(" ").forEach(r=>{this._classList[r]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(oe){this.panelClass=oe}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new e.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,R.O)(this._directDescendantItems),(0,v.w)(oe=>(0,T.T)(...oe.map(X=>X._focused)))).subscribe(oe=>this._keyManager.updateActiveItem(oe)),this._directDescendantItems.changes.subscribe(oe=>{var X;const r=this._keyManager;if("enter"===this._panelAnimationState&&null!==(X=r.activeItem)&&void 0!==X&&X._hasFocus()){const s=oe.toArray(),_=Math.max(0,Math.min(s.length-1,r.activeItemIndex||0));s[_]&&!s[_].disabled?r.setActiveItem(_):r.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe((0,R.O)(this._directDescendantItems),(0,v.w)(X=>(0,T.T)(...X.map(r=>r._hovered))))}addItem(oe){}removeItem(oe){}_handleKeydown(oe){const X=oe.keyCode,r=this._keyManager;switch(X){case A.hY:(0,A.Vb)(oe)||(oe.preventDefault(),this.closed.emit("keydown"));break;case A.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case A.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(X===A.LH||X===A.JH)&&r.setFocusOrigin("keyboard"),void r.onKeydown(oe)}oe.stopPropagation()}focusFirstItem(oe="program"){this._ngZone.onStable.pipe((0,D.q)(1)).subscribe(()=>{let X=null;if(this._directDescendantItems.length&&(X=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!X||!X.contains(document.activeElement)){const r=this._keyManager;r.setFocusOrigin(oe).setFirstItemActive(),!r.activeItem&&X&&X.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(oe){const X=Math.min(this._baseElevation+oe,24),r=`${this._elevationPrefix}${X}`,s=Object.keys(this._classList).find(_=>_.startsWith(this._elevationPrefix));(!s||s===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[r]=!0,this._previousElevation=r)}setPositionClasses(oe=this.xPosition,X=this.yPosition){var r;const s=this._classList;s["mat-menu-before"]="before"===oe,s["mat-menu-after"]="after"===oe,s["mat-menu-above"]="above"===X,s["mat-menu-below"]="below"===X,null===(r=this._changeDetectorRef)||void 0===r||r.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(oe){this._animationDone.next(oe),this._isAnimating=!1}_onAnimationStart(oe){this._isAnimating=!0,"enter"===oe.toState&&0===this._keyManager.activeItemIndex&&(oe.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,R.O)(this._allItems)).subscribe(oe=>{this._directDescendantItems.reset(oe.filter(X=>X._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return ot.\u0275fac=function(oe){return new(oe||ot)(w.Y36(w.SBq),w.Y36(w.R0b),w.Y36(be),w.Y36(w.sBO))},ot.\u0275dir=w.lG2({type:ot,contentQueries:function(oe,X,r){if(1&oe&&(w.Suo(r,pe,5),w.Suo(r,Y,5),w.Suo(r,Y,4)),2&oe){let s;w.iGM(s=w.CRH())&&(X.lazyContent=s.first),w.iGM(s=w.CRH())&&(X._allItems=s),w.iGM(s=w.CRH())&&(X.items=s)}},viewQuery:function(oe,X){if(1&oe&&w.Gf(w.Rgc,5),2&oe){let r;w.iGM(r=w.CRH())&&(X.templateRef=r.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),ot})(),nt=(()=>{class ot extends Pe{constructor(oe,X,r,s){super(oe,X,r,s),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return ot.\u0275fac=function(oe){return new(oe||ot)(w.Y36(w.SBq),w.Y36(w.R0b),w.Y36(be),w.Y36(w.sBO))},ot.\u0275cmp=w.Xpm({type:ot,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(oe,X){2&oe&&w.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[w._Bn([{provide:N,useExisting:ot}]),w.qOj],ngContentSelectors:ae,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(oe,X){1&oe&&(w.F$t(),w.YNc(0,xe,3,6,"ng-template"))},dependencies:[_e.mk],styles:['mat-menu{display:none}.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;position:relative}.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;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}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}'],encapsulation:2,data:{animation:[ge.transformMenu,ge.fadeInItems]},changeDetection:0}),ot})();const Ye=new w.OlP("mat-menu-scroll-strategy"),J={provide:Ye,deps:[b.aV],useFactory:function Tt(ot){return()=>ot.scrollStrategies.reposition()}},le=(0,H.i$)({passive:!0});let ne=(()=>{class ot{constructor(oe,X,r,s,_,c,a,i,t){this._overlay=oe,this._element=X,this._viewContainerRef=r,this._menuItemInstance=c,this._dir=a,this._focusMonitor=i,this._ngZone=t,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=g.w0.EMPTY,this._hoverSubscription=g.w0.EMPTY,this._menuCloseSubscription=g.w0.EMPTY,this._handleTouchStart=n=>{(0,e.yG)(n)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new w.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new w.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=s,this._parentMaterialMenu=_ instanceof Pe?_:void 0,X.nativeElement.addEventListener("touchstart",this._handleTouchStart,le),c&&(c._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(oe){this.menu=oe}get menu(){return this._menu}set menu(oe){oe!==this._menu&&(this._menu=oe,this._menuCloseSubscription.unsubscribe(),oe&&(this._menuCloseSubscription=oe.close.subscribe(X=>{this._destroyMenu(X),("click"===X||"tab"===X)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(X)})))}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,le),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(){const oe=this.menu;if(this._menuOpen||!oe)return;const X=this._createOverlay(oe),r=X.getConfig(),s=r.positionStrategy;this._setPosition(oe,s),r.hasBackdrop=oe.hasBackdrop??!this.triggersSubmenu(),X.attach(this._getPortal(oe)),oe.lazyContent&&oe.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(oe),oe instanceof Pe&&(oe._startAnimation(),oe._directDescendantItems.changes.pipe((0,F.R)(oe.close)).subscribe(()=>{s.withLockedPosition(!1).reapplyLastPosition(),s.withLockedPosition(!0)}))}closeMenu(){var oe;null===(oe=this.menu)||void 0===oe||oe.close.emit()}focus(oe,X){this._focusMonitor&&oe?this._focusMonitor.focusVia(this._element,oe,X):this._element.nativeElement.focus(X)}updatePosition(){var oe;null===(oe=this._overlayRef)||void 0===oe||oe.updatePosition()}_destroyMenu(oe){if(!this._overlayRef||!this.menuOpen)return;const X=this.menu;var r;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===oe||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,X instanceof Pe?(X._resetAnimation(),X.lazyContent?X._animationDone.pipe((0,z.h)(s=>"void"===s.toState),(0,D.q)(1),(0,F.R)(X.lazyContent._attached)).subscribe({next:()=>X.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),null==X||null===(r=X.lazyContent)||void 0===r||r.detach())}_initMenu(oe){oe.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,oe.direction=this.dir,this._setMenuElevation(oe),oe.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(oe){if(oe.setElevation){let X=0,r=oe.parentMenu;for(;r;)X++,r=r.parentMenu;oe.setElevation(X)}}_setIsMenuOpen(oe){this._menuOpen=oe,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(oe)}_createOverlay(oe){if(!this._overlayRef){const X=this._getOverlayConfig(oe);this._subscribeToPositions(oe,X.positionStrategy),this._overlayRef=this._overlay.create(X),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(oe){return new b.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:oe.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:oe.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(oe,X){oe.setPositionClasses&&X.positionChanges.subscribe(r=>{const s="start"===r.connectionPair.overlayX?"after":"before",_="top"===r.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>oe.setPositionClasses(s,_)):oe.setPositionClasses(s,_)})}_setPosition(oe,X){let[r,s]="before"===oe.xPosition?["end","start"]:["start","end"],[_,c]="above"===oe.yPosition?["bottom","top"]:["top","bottom"],[a,i]=[_,c],[t,n]=[r,s],o=0;if(this.triggersSubmenu()){if(n=r="before"===oe.xPosition?"start":"end",s=t="end"===r?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const l=this._parentMaterialMenu.items.first;this._parentInnerPadding=l?l._getHostElement().offsetTop:0}o="bottom"===_?this._parentInnerPadding:-this._parentInnerPadding}}else oe.overlapTrigger||(a="top"===_?"bottom":"top",i="top"===c?"bottom":"top");X.withPositions([{originX:r,originY:a,overlayX:t,overlayY:_,offsetY:o},{originX:s,originY:a,overlayX:n,overlayY:_,offsetY:o},{originX:r,originY:i,overlayX:t,overlayY:c,offsetY:-o},{originX:s,originY:i,overlayX:n,overlayY:c,offsetY:-o}])}_menuClosingActions(){const oe=this._overlayRef.backdropClick(),X=this._overlayRef.detachments(),r=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,E.of)(),s=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,z.h)(_=>_!==this._menuItemInstance),(0,z.h)(()=>this._menuOpen)):(0,E.of)();return(0,T.T)(oe,r,s,X)}_handleMousedown(oe){(0,e.X6)(oe)||(this._openedBy=0===oe.button?"mouse":void 0,this.triggersSubmenu()&&oe.preventDefault())}_handleKeydown(oe){const X=oe.keyCode;(X===A.K5||X===A.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(X===A.SV&&"ltr"===this.dir||X===A.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(oe){this.triggersSubmenu()?(oe.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,z.h)(oe=>oe===this._menuItemInstance&&!oe.disabled),(0,$.g)(0,S.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Pe&&this.menu._isAnimating?this.menu._animationDone.pipe((0,D.q)(1),(0,$.g)(0,S.E),(0,F.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(oe){return(!this._portal||this._portal.templateRef!==oe.templateRef)&&(this._portal=new q.UE(oe.templateRef,this._viewContainerRef)),this._portal}}return ot.\u0275fac=function(oe){return new(oe||ot)(w.Y36(b.aV),w.Y36(w.SBq),w.Y36(w.s_b),w.Y36(Ye),w.Y36(N,8),w.Y36(Y,10),w.Y36(Te.Is,8),w.Y36(e.tE),w.Y36(w.R0b))},ot.\u0275dir=w.lG2({type:ot,hostVars:3,hostBindings:function(oe,X){1&oe&&w.NdJ("click",function(s){return X._handleClick(s)})("mousedown",function(s){return X._handleMousedown(s)})("keydown",function(s){return X._handleKeydown(s)}),2&oe&&w.uIk("aria-haspopup",X.menu?"menu":null)("aria-expanded",X.menuOpen||null)("aria-controls",X.menuOpen?X.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),ot})(),ke=(()=>{class ot extends ne{}return ot.\u0275fac=function(){let it;return function(X){return(it||(it=w.n5z(ot)))(X||ot)}}(),ot.\u0275dir=w.lG2({type:ot,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[w.qOj]}),ot})(),Ee=(()=>{class ot{}return ot.\u0275fac=function(oe){return new(oe||ot)},ot.\u0275mod=w.oAB({type:ot}),ot.\u0275inj=w.cJS({providers:[J],imports:[_e.ez,ce.BQ,ce.si,b.U8,L.ZD,ce.BQ]}),ot})()},98739:(Qe,he,u)=>{"use strict";u.d(he,{NW:()=>V,TU:()=>Q,ye:()=>G});var e=u(36895),m=u(94650),A=u(3238),w=u(4859),p=u(84385),g=u(10266),T=u(21281),E=u(77579),S=u(59549);function R(ae,xe){if(1&ae&&(m.TgZ(0,"mat-option",19),m._uU(1),m.qZA()),2&ae){const ge=xe.$implicit;m.Q6J("value",ge),m.xp6(1),m.hij(" ",ge," ")}}function v(ae,xe){if(1&ae){const ge=m.EpF();m.TgZ(0,"mat-form-field",16)(1,"mat-select",17),m.NdJ("selectionChange",function(Be){m.CHM(ge);const pe=m.oxw(2);return m.KtG(pe._changePageSize(Be.value))}),m.YNc(2,R,2,2,"mat-option",18),m.qZA()()}if(2&ae){const ge=m.oxw(2);m.Q6J("appearance",ge._formFieldAppearance)("color",ge.color),m.xp6(1),m.Q6J("value",ge.pageSize)("disabled",ge.disabled)("panelClass",ge.selectConfig.panelClass||"")("disableOptionCentering",ge.selectConfig.disableOptionCentering)("aria-label",ge._intl.itemsPerPageLabel),m.xp6(1),m.Q6J("ngForOf",ge._displayedPageSizeOptions)}}function D(ae,xe){if(1&ae&&(m.TgZ(0,"div",20),m._uU(1),m.qZA()),2&ae){const ge=m.oxw(2);m.xp6(1),m.Oqu(ge.pageSize)}}function F(ae,xe){if(1&ae&&(m.TgZ(0,"div",12)(1,"div",13),m._uU(2),m.qZA(),m.YNc(3,v,3,8,"mat-form-field",14),m.YNc(4,D,2,1,"div",15),m.qZA()),2&ae){const ge=m.oxw();m.xp6(2),m.hij(" ",ge._intl.itemsPerPageLabel," "),m.xp6(1),m.Q6J("ngIf",ge._displayedPageSizeOptions.length>1),m.xp6(1),m.Q6J("ngIf",ge._displayedPageSizeOptions.length<=1)}}function z(ae,xe){if(1&ae){const ge=m.EpF();m.TgZ(0,"button",21),m.NdJ("click",function(){m.CHM(ge);const Be=m.oxw();return m.KtG(Be.firstPage())}),m.O4$(),m.TgZ(1,"svg",7),m._UZ(2,"path",22),m.qZA()()}if(2&ae){const ge=m.oxw();m.Q6J("matTooltip",ge._intl.firstPageLabel)("matTooltipDisabled",ge._previousButtonsDisabled())("matTooltipPosition","above")("disabled",ge._previousButtonsDisabled()),m.uIk("aria-label",ge._intl.firstPageLabel)}}function $(ae,xe){if(1&ae){const ge=m.EpF();m.O4$(),m.kcU(),m.TgZ(0,"button",23),m.NdJ("click",function(){m.CHM(ge);const Be=m.oxw();return m.KtG(Be.lastPage())}),m.O4$(),m.TgZ(1,"svg",7),m._UZ(2,"path",24),m.qZA()()}if(2&ae){const ge=m.oxw();m.Q6J("matTooltip",ge._intl.lastPageLabel)("matTooltipDisabled",ge._nextButtonsDisabled())("matTooltipPosition","above")("disabled",ge._nextButtonsDisabled()),m.uIk("aria-label",ge._intl.lastPageLabel)}}let G=(()=>{class ae{constructor(){this.changes=new E.x,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(ge,Se,Be)=>{if(0==Be||0==Se)return`0 of ${Be}`;const pe=ge*Se;return`${pe+1} \u2013 ${pe<(Be=Math.max(Be,0))?Math.min(pe+Se,Be):pe+Se} of ${Be}`}}}return ae.\u0275fac=function(ge){return new(ge||ae)},ae.\u0275prov=m.Yz7({token:ae,factory:ae.\u0275fac,providedIn:"root"}),ae})();const _e={provide:G,deps:[[new m.FiY,new m.tp0,G]],useFactory:function q(ae){return ae||new G}},b=new m.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),H=(0,A.Id)((0,A.dB)(class{}));let L=(()=>{class ae extends H{constructor(ge,Se,Be){if(super(),this._intl=ge,this._changeDetectorRef=Se,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.selectConfig={},this.page=new m.vpe,this._intlChanges=ge.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),Be){const{pageSize:pe,pageSizeOptions:$e,hidePageSize:Ce,showFirstLastButtons:de}=Be;null!=pe&&(this._pageSize=pe),null!=$e&&(this._pageSizeOptions=$e),null!=Ce&&(this._hidePageSize=Ce),null!=de&&(this._showFirstLastButtons=de)}}get pageIndex(){return this._pageIndex}set pageIndex(ge){this._pageIndex=Math.max((0,T.su)(ge),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(ge){this._length=(0,T.su)(ge),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(ge){this._pageSize=Math.max((0,T.su)(ge),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(ge){this._pageSizeOptions=(ge||[]).map(Se=>(0,T.su)(Se)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(ge){this._hidePageSize=(0,T.Ig)(ge)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(ge){this._showFirstLastButtons=(0,T.Ig)(ge)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const ge=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(ge)}previousPage(){if(!this.hasPreviousPage())return;const ge=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(ge)}firstPage(){if(!this.hasPreviousPage())return;const ge=this.pageIndex;this.pageIndex=0,this._emitPageEvent(ge)}lastPage(){if(!this.hasNextPage())return;const ge=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(ge)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const ge=this.getNumberOfPages()-1;return this.pageIndexge-Se),this._changeDetectorRef.markForCheck())}_emitPageEvent(ge){this.page.emit({previousPageIndex:ge,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return ae.\u0275fac=function(ge){m.$Z()},ae.\u0275dir=m.lG2({type:ae,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",selectConfig:"selectConfig"},outputs:{page:"page"},features:[m.qOj]}),ae})(),V=(()=>{class ae extends L{constructor(ge,Se,Be){super(ge,Se,Be),Be&&null!=Be.formFieldAppearance&&(this._formFieldAppearance=Be.formFieldAppearance)}}return ae.\u0275fac=function(ge){return new(ge||ae)(m.Y36(G),m.Y36(m.sBO),m.Y36(b,8))},ae.\u0275cmp=m.Xpm({type:ae,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[m.qOj],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","panelClass","disableOptionCentering","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(ge,Se){1&ge&&(m.TgZ(0,"div",0)(1,"div",1),m.YNc(2,F,5,3,"div",2),m.TgZ(3,"div",3)(4,"div",4),m._uU(5),m.qZA(),m.YNc(6,z,3,5,"button",5),m.TgZ(7,"button",6),m.NdJ("click",function(){return Se.previousPage()}),m.O4$(),m.TgZ(8,"svg",7),m._UZ(9,"path",8),m.qZA()(),m.kcU(),m.TgZ(10,"button",9),m.NdJ("click",function(){return Se.nextPage()}),m.O4$(),m.TgZ(11,"svg",7),m._UZ(12,"path",10),m.qZA()(),m.YNc(13,$,3,5,"button",11),m.qZA()()()),2&ge&&(m.xp6(2),m.Q6J("ngIf",!Se.hidePageSize),m.xp6(3),m.hij(" ",Se._intl.getRangeLabel(Se.pageIndex,Se.pageSize,Se.length)," "),m.xp6(1),m.Q6J("ngIf",Se.showFirstLastButtons),m.xp6(1),m.Q6J("matTooltip",Se._intl.previousPageLabel)("matTooltipDisabled",Se._previousButtonsDisabled())("matTooltipPosition","above")("disabled",Se._previousButtonsDisabled()),m.uIk("aria-label",Se._intl.previousPageLabel),m.xp6(3),m.Q6J("matTooltip",Se._intl.nextPageLabel)("matTooltipDisabled",Se._nextButtonsDisabled())("matTooltipPosition","above")("disabled",Se._nextButtonsDisabled()),m.uIk("aria-label",Se._intl.nextPageLabel),m.xp6(3),m.Q6J("ngIf",Se.showFirstLastButtons))},dependencies:[e.sg,e.O5,w.lW,S.KE,p.gD,A.ey,g.gM],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{display:inline-block;width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}"],encapsulation:2,changeDetection:0}),ae})(),Q=(()=>{class ae{}return ae.\u0275fac=function(ge){return new(ge||ae)},ae.\u0275mod=m.oAB({type:ae}),ae.\u0275inj=m.cJS({providers:[_e],imports:[e.ez,w.ot,p.LD,g.AV,A.BQ]}),ae})()},73162:(Qe,he,u)=>{"use strict";u.d(he,{Cv:()=>D});var e=u(94650),m=u(36895),A=u(3238);let D=(()=>{class F{}return F.\u0275fac=function($){return new($||F)},F.\u0275mod=e.oAB({type:F}),F.\u0275inj=e.cJS({imports:[m.ez,A.BQ,A.BQ]}),F})()},51572:(Qe,he,u)=>{"use strict";u.d(he,{Cq:()=>q,Ou:()=>G});var e=u(21281),m=u(83353),A=u(67376),w=u(36895),p=u(94650),g=u(3238),T=u(50727);function E(ce,Te){if(1&ce&&(p.O4$(),p._UZ(0,"circle",4)),2&ce){const b=p.oxw(),H=p.MAs(1);p.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+b._spinnerAnimationLabel)("stroke-dashoffset",b._getStrokeDashOffset(),"px")("stroke-dasharray",b._getStrokeCircumference(),"px")("stroke-width",b._getCircleStrokeWidth(),"%")("transform-origin",b._getCircleTransformOrigin(H)),p.uIk("r",b._getCircleRadius())}}function S(ce,Te){if(1&ce&&(p.O4$(),p._UZ(0,"circle",4)),2&ce){const b=p.oxw(),H=p.MAs(1);p.Udp("stroke-dashoffset",b._getStrokeDashOffset(),"px")("stroke-dasharray",b._getStrokeCircumference(),"px")("stroke-width",b._getCircleStrokeWidth(),"%")("transform-origin",b._getCircleTransformOrigin(H)),p.uIk("r",b._getCircleRadius())}}const D=(0,g.pj)(class{constructor(ce){this._elementRef=ce}},"primary"),F=new p.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function z(){return{diameter:100}}});class G extends D{constructor(Te,b,H,L,V,Q,ae,xe){super(Te),this._document=H,this._diameter=100,this._value=0,this._resizeSubscription=T.w0.EMPTY,this.mode="determinate";const ge=G._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),ge.has(H.head)||ge.set(H.head,new Set([100])),this._noopAnimations="NoopAnimations"===L&&!!V&&!V._forceAnimations,"mat-spinner"===Te.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),V&&(V.color&&(this.color=this.defaultColor=V.color),V.diameter&&(this.diameter=V.diameter),V.strokeWidth&&(this.strokeWidth=V.strokeWidth)),b.isBrowser&&b.SAFARI&&ae&&Q&&xe&&(this._resizeSubscription=ae.change(150).subscribe(()=>{"indeterminate"===this.mode&&xe.run(()=>Q.markForCheck())}))}get diameter(){return this._diameter}set diameter(Te){this._diameter=(0,e.su)(Te),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(Te){this._strokeWidth=(0,e.su)(Te)}get value(){return"determinate"===this.mode?this._value:0}set value(Te){this._value=Math.max(0,Math.min(100,(0,e.su)(Te)))}ngOnInit(){const Te=this._elementRef.nativeElement;this._styleRoot=(0,m.kV)(Te)||this._document.head,this._attachStyleNode(),Te.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const Te=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${Te} ${Te}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_getCircleTransformOrigin(Te){var b;const H=50*(null!==(b=Te.currentScale)&&void 0!==b?b:1);return`${H}% ${H}%`}_attachStyleNode(){const Te=this._styleRoot,b=this._diameter,H=G._diameters;let L=H.get(Te);if(!L||!L.has(b)){const V=this._document.createElement("style");V.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),V.textContent=this._getAnimationText(),Te.appendChild(V),L||(L=new Set,H.set(Te,L)),L.add(b)}}_getAnimationText(){const Te=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*Te).replace(/END_VALUE/g,""+.2*Te).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}G._diameters=new WeakMap,G.\u0275fac=function(Te){return new(Te||G)(p.Y36(p.SBq),p.Y36(m.t4),p.Y36(w.K0,8),p.Y36(p.QbO,8),p.Y36(F),p.Y36(p.sBO),p.Y36(A.rL),p.Y36(p.R0b))},G.\u0275cmp=p.Xpm({type:G,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(Te,b){2&Te&&(p.uIk("aria-valuemin","determinate"===b.mode?0:null)("aria-valuemax","determinate"===b.mode?100:null)("aria-valuenow","determinate"===b.mode?b.value:null)("mode",b.mode),p.Udp("width",b.diameter,"px")("height",b.diameter,"px"),p.ekj("_mat-animation-noopable",b._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[p.qOj],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(Te,b){1&Te&&(p.O4$(),p.TgZ(0,"svg",0,1),p.YNc(2,E,1,11,"circle",2),p.YNc(3,S,1,9,"circle",3),p.qZA()),2&Te&&(p.Udp("width",b.diameter,"px")("height",b.diameter,"px"),p.Q6J("ngSwitch","indeterminate"===b.mode),p.uIk("viewBox",b._getViewBox()),p.xp6(2),p.Q6J("ngSwitchCase",!0),p.xp6(1),p.Q6J("ngSwitchCase",!1))},dependencies:[w.RF,w.n9],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:rgba(0,0,0,0);transition:stroke-dashoffset 225ms linear}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}.mat-progress-spinner[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-progress-spinner._mat-animation-noopable svg,.mat-progress-spinner._mat-animation-noopable circle{animation:none;transition: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)}}"],encapsulation:2,changeDetection:0});let q=(()=>{class ce{}return ce.\u0275fac=function(b){return new(b||ce)},ce.\u0275mod=p.oAB({type:ce}),ce.\u0275inj=p.cJS({imports:[g.BQ,w.ez,g.BQ]}),ce})()},71948:(Qe,he,u)=>{"use strict";u.d(he,{Fk:()=>H,U0:()=>b,VQ:()=>q});var e=u(94650),m=u(3238),A=u(12687),w=u(21281),p=u(95017),g=u(24006);const T=["input"],E=function(L){return{enterDuration:L}},S=["*"],R=new e.OlP("mat-radio-default-options",{providedIn:"root",factory:function v(){return{color:"accent"}}});let D=0;const F={provide:g.JU,useExisting:(0,e.Gpc)(()=>q),multi:!0};class z{constructor(V,Q){this.source=V,this.value=Q}}const $=new e.OlP("MatRadioGroup");let G=(()=>{class L{constructor(Q){this._changeDetector=Q,this._value=null,this._name="mat-radio-group-"+D++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new e.vpe}get name(){return this._name}set name(Q){this._name=Q,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(Q){this._labelPosition="before"===Q?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(Q){this._value!==Q&&(this._value=Q,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(Q){this._selected=Q,this.value=Q?Q.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(Q){this._disabled=(0,w.Ig)(Q),this._markRadiosForCheck()}get required(){return this._required}set required(Q){this._required=(0,w.Ig)(Q),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(Q=>{Q.name=this.name,Q._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(ae=>{ae.checked=this.value===ae.value,ae.checked&&(this._selected=ae)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new z(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(Q=>Q._markForCheck())}writeValue(Q){this.value=Q,this._changeDetector.markForCheck()}registerOnChange(Q){this._controlValueAccessorChangeFn=Q}registerOnTouched(Q){this.onTouched=Q}setDisabledState(Q){this.disabled=Q,this._changeDetector.markForCheck()}}return L.\u0275fac=function(Q){return new(Q||L)(e.Y36(e.sBO))},L.\u0275dir=e.lG2({type:L,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}}),L})(),q=(()=>{class L extends G{}return L.\u0275fac=function(){let V;return function(ae){return(V||(V=e.n5z(L)))(ae||L)}}(),L.\u0275dir=e.lG2({type:L,selectors:[["mat-radio-group"]],contentQueries:function(Q,ae,xe){if(1&Q&&e.Suo(xe,b,5),2&Q){let ge;e.iGM(ge=e.CRH())&&(ae._radios=ge)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[e._Bn([F,{provide:$,useExisting:L}]),e.qOj]}),L})();class _e{constructor(V){this._elementRef=V}}const ce=(0,m.Kr)((0,m.sb)(_e));let Te=(()=>{class L extends ce{constructor(Q,ae,xe,ge,Se,Be,pe,$e){super(ae),this._changeDetector=xe,this._focusMonitor=ge,this._radioDispatcher=Se,this._providerOverride=pe,this._uniqueId="mat-radio-"+ ++D,this.id=this._uniqueId,this.change=new e.vpe,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=Q,this._noopAnimations="NoopAnimations"===Be,$e&&(this.tabIndex=(0,w.su)($e,0)),this._removeUniqueSelectionListener=Se.listen((Ce,de)=>{Ce!==this.id&&de===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(Q){const ae=(0,w.Ig)(Q);this._checked!==ae&&(this._checked=ae,ae&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!ae&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),ae&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(Q){this._value!==Q&&(this._value=Q,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===Q),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(Q){this._labelPosition=Q}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(Q){this._setDisabled((0,w.Ig)(Q))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(Q){this._required=(0,w.Ig)(Q)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(Q){this._color=Q}get inputId(){return`${this.id||this._uniqueId}-input`}focus(Q,ae){ae?this._focusMonitor.focusVia(this._inputElement,ae,Q):this._inputElement.nativeElement.focus(Q)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name)}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(Q=>{!Q&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new z(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(Q){Q.stopPropagation()}_onInputInteraction(Q){if(Q.stopPropagation(),!this.checked&&!this.disabled){const ae=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),ae&&this.radioGroup._emitChangeEvent())}}_setDisabled(Q){this._disabled!==Q&&(this._disabled=Q,this._changeDetector.markForCheck())}_updateTabIndex(){const Q=this.radioGroup;let ae;if(ae=Q&&Q.selected&&!this.disabled?Q.selected===this?this.tabIndex:-1:this.tabIndex,ae!==this._previousTabIndex){var xe;const ge=null===(xe=this._inputElement)||void 0===xe?void 0:xe.nativeElement;ge&&(ge.setAttribute("tabindex",ae+""),this._previousTabIndex=ae)}}}return L.\u0275fac=function(Q){e.$Z()},L.\u0275dir=e.lG2({type:L,viewQuery:function(Q,ae){if(1&Q&&e.Gf(T,5),2&Q){let xe;e.iGM(xe=e.CRH())&&(ae._inputElement=xe.first)}},inputs:{id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},features:[e.qOj]}),L})(),b=(()=>{class L extends Te{constructor(Q,ae,xe,ge,Se,Be,pe,$e){super(Q,ae,xe,ge,Se,Be,pe,$e)}}return L.\u0275fac=function(Q){return new(Q||L)(e.Y36($,8),e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(A.tE),e.Y36(p.A8),e.Y36(e.QbO,8),e.Y36(R,8),e.$8M("tabindex"))},L.\u0275cmp=e.Xpm({type:L,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(Q,ae){1&Q&&e.NdJ("focus",function(){return ae._inputElement.nativeElement.focus()}),2&Q&&(e.uIk("tabindex",null)("id",ae.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),e.ekj("mat-radio-checked",ae.checked)("mat-radio-disabled",ae.disabled)("_mat-animation-noopable",ae._noopAnimations)("mat-primary","primary"===ae.color)("mat-accent","accent"===ae.color)("mat-warn","warn"===ae.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[e.qOj],ngContentSelectors:S,decls:13,vars:19,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input",3,"id","checked","disabled","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(Q,ae){if(1&Q&&(e.F$t(),e.TgZ(0,"label",0,1)(2,"span",2),e._UZ(3,"span",3)(4,"span",4),e.TgZ(5,"input",5,6),e.NdJ("change",function(ge){return ae._onInputInteraction(ge)})("click",function(ge){return ae._onInputClick(ge)}),e.qZA(),e.TgZ(7,"span",7),e._UZ(8,"span",8),e.qZA()(),e.TgZ(9,"span",9)(10,"span",10),e._uU(11,"\xa0"),e.qZA(),e.Hsn(12),e.qZA()()),2&Q){const xe=e.MAs(1);e.uIk("for",ae.inputId),e.xp6(5),e.Q6J("id",ae.inputId)("checked",ae.checked)("disabled",ae.disabled)("required",ae.required),e.uIk("name",ae.name)("value",ae.value)("aria-label",ae.ariaLabel)("aria-labelledby",ae.ariaLabelledby)("aria-describedby",ae.ariaDescribedby),e.xp6(2),e.Q6J("matRippleTrigger",xe)("matRippleDisabled",ae._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",e.VKq(17,E,ae._noopAnimations?0:150)),e.xp6(2),e.ekj("mat-radio-label-before","before"==ae.labelPosition)}},dependencies:[m.wG],styles:['.mat-radio-button{display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-radio-label{-webkit-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;opacity:0;transition:transform ease 280ms,background-color ease 280ms,opacity linear 1ms 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5);opacity:1;transition:transform ease 280ms,background-color ease 280ms}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-label-content{-webkit-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none;top:0;left:0}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{opacity:0;position:absolute;top:0;left:0;margin:0;width:100%;height:100%;cursor:inherit;z-index:-1}.mat-radio-input:focus~.mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}'],encapsulation:2,changeDetection:0}),L})(),H=(()=>{class L{}return L.\u0275fac=function(Q){return new(Q||L)},L.\u0275mod=e.oAB({type:L}),L.\u0275inj=e.cJS({imports:[m.si,m.BQ,m.BQ]}),L})()},84385:(Qe,he,u)=>{"use strict";u.d(he,{$L:()=>ke,LD:()=>it,gD:()=>ot});var e=u(98184),m=u(36895),A=u(94650),w=u(3238),p=u(59549),g=u(67376),T=u(12687),E=u(40445),S=u(21281),R=u(95017),v=u(29521),D=u(24006),F=u(77579),z=u(49770),$=u(56451),G=u(68675),q=u(63900),_e=u(95698),ce=u(39300),Te=u(54004),b=u(71884),H=u(82722),L=u(37340);const V=["trigger"],Q=["panel"];function ae(oe,X){if(1&oe&&(A.TgZ(0,"span",8),A._uU(1),A.qZA()),2&oe){const r=A.oxw();A.xp6(1),A.Oqu(r.placeholder)}}function xe(oe,X){if(1&oe&&(A.TgZ(0,"span",12),A._uU(1),A.qZA()),2&oe){const r=A.oxw(2);A.xp6(1),A.Oqu(r.triggerValue)}}function ge(oe,X){1&oe&&A.Hsn(0,0,["*ngSwitchCase","true"])}function Se(oe,X){if(1&oe&&(A.TgZ(0,"span",9),A.YNc(1,xe,2,1,"span",10),A.YNc(2,ge,1,0,"ng-content",11),A.qZA()),2&oe){const r=A.oxw();A.Q6J("ngSwitch",!!r.customTrigger),A.xp6(2),A.Q6J("ngSwitchCase",!0)}}function Be(oe,X){if(1&oe){const r=A.EpF();A.TgZ(0,"div",13)(1,"div",14,15),A.NdJ("@transformPanel.done",function(_){A.CHM(r);const c=A.oxw();return A.KtG(c._panelDoneAnimatingStream.next(_.toState))})("keydown",function(_){A.CHM(r);const c=A.oxw();return A.KtG(c._handleKeydown(_))}),A.Hsn(3,1),A.qZA()()}if(2&oe){const r=A.oxw();A.Q6J("@transformPanelWrap",void 0),A.xp6(1),A.Gre("mat-select-panel ",r._getPanelTheme(),""),A.Udp("transform-origin",r._transformOrigin)("font-size",r._triggerFontSize,"px"),A.Q6J("ngClass",r.panelClass)("@transformPanel",r.multiple?"showing-multiple":"showing"),A.uIk("id",r.id+"-panel")("aria-multiselectable",r.multiple)("aria-label",r.ariaLabel||null)("aria-labelledby",r._getPanelAriaLabelledby())}}const pe=[[["mat-select-trigger"]],"*"],$e=["mat-select-trigger","*"],Ce={transformPanelWrap:(0,L.X$)("transformPanelWrap",[(0,L.eR)("* => void",(0,L.IO)("@transformPanel",[(0,L.pV)()],{optional:!0}))]),transformPanel:(0,L.X$)("transformPanel",[(0,L.SB)("void",(0,L.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,L.SB)("showing",(0,L.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,L.SB)("showing-multiple",(0,L.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,L.eR)("void => *",(0,L.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,L.eR)("* => void",(0,L.jt)("100ms 25ms linear",(0,L.oB)({opacity:0})))])};let N=0;const nt=new A.OlP("mat-select-scroll-strategy"),Tt=new A.OlP("MAT_SELECT_CONFIG"),J={provide:nt,deps:[e.aV],useFactory:function Ye(oe){return()=>oe.scrollStrategies.reposition()}};class Xe{constructor(X,r){this.source=X,this.value=r}}const le=(0,w.Kr)((0,w.sb)((0,w.Id)((0,w.FD)(class{constructor(oe,X,r,s,_){this._elementRef=oe,this._defaultErrorStateMatcher=X,this._parentForm=r,this._parentFormGroup=s,this.ngControl=_,this.stateChanges=new F.x}})))),ne=new A.OlP("MatSelectTrigger");let ke=(()=>{class oe{}return oe.\u0275fac=function(r){return new(r||oe)},oe.\u0275dir=A.lG2({type:oe,selectors:[["mat-select-trigger"]],features:[A._Bn([{provide:ne,useExisting:oe}])]}),oe})(),Ee=(()=>{class oe extends le{constructor(r,s,_,c,a,i,t,n,o,l,d,y,k,Ie){var tt,ct,Ue;super(a,c,t,n,l),this._viewportRuler=r,this._changeDetectorRef=s,this._ngZone=_,this._dir=i,this._parentFormField=o,this._liveAnnouncer=k,this._defaultOptions=Ie,this._panelOpen=!1,this._compareWith=(at,fe)=>at===fe,this._uid="mat-select-"+N++,this._triggerAriaLabelledBy=null,this._destroy=new F.x,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+N++,this._panelDoneAnimatingStream=new F.x,this._overlayPanelClass=(null===(tt=this._defaultOptions)||void 0===tt?void 0:tt.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=null!==(ct=null===(Ue=this._defaultOptions)||void 0===Ue?void 0:Ue.disableOptionCentering)&&void 0!==ct&&ct,this.ariaLabel="",this.optionSelectionChanges=(0,z.P)(()=>{const at=this.options;return at?at.changes.pipe((0,G.O)(at),(0,q.w)(()=>(0,$.T)(...at.map(fe=>fe.onSelectionChange)))):this._ngZone.onStable.pipe((0,_e.q)(1),(0,q.w)(()=>this.optionSelectionChanges))}),this.openedChange=new A.vpe,this._openedStream=this.openedChange.pipe((0,ce.h)(at=>at),(0,Te.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,ce.h)(at=>!at),(0,Te.U)(()=>{})),this.selectionChange=new A.vpe,this.valueChange=new A.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=Ie?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=Ie.typeaheadDebounceInterval),this._scrollStrategyFactory=y,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(d)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(r){this._placeholder=r,this.stateChanges.next()}get required(){var r,s,_,c;return null!==(r=null!==(s=this._required)&&void 0!==s?s:null===(_=this.ngControl)||void 0===_||null===(c=_.control)||void 0===c?void 0:c.hasValidator(D.kI.required))&&void 0!==r&&r}set required(r){this._required=(0,S.Ig)(r),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(r){this._multiple=(0,S.Ig)(r)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(r){this._disableOptionCentering=(0,S.Ig)(r)}get compareWith(){return this._compareWith}set compareWith(r){this._compareWith=r,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(r){this._assignValue(r)&&this._onChange(r)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(r){this._typeaheadDebounceInterval=(0,S.su)(r)}get id(){return this._id}set id(r){this._id=r||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new R.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,b.x)(),(0,H.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,H.R)(this._destroy)).subscribe(r=>{r.added.forEach(s=>s.select()),r.removed.forEach(s=>s.deselect())}),this.options.changes.pipe((0,G.O)(null),(0,H.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const r=this._getTriggerAriaLabelledby(),s=this.ngControl;if(r!==this._triggerAriaLabelledBy){const _=this._elementRef.nativeElement;this._triggerAriaLabelledBy=r,r?_.setAttribute("aria-labelledby",r):_.removeAttribute("aria-labelledby")}s&&(this._previousControl!==s.control&&(void 0!==this._previousControl&&null!==s.disabled&&s.disabled!==this.disabled&&(this.disabled=s.disabled),this._previousControl=s.control),this.updateErrorState())}ngOnChanges(r){(r.disabled||r.userAriaDescribedBy)&&this.stateChanges.next(),r.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(r){this._assignValue(r)}registerOnChange(r){this._onChange=r}registerOnTouched(r){this._onTouched=r}setDisabledState(r){this.disabled=r,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){var r,s;return this.multiple?(null===(r=this._selectionModel)||void 0===r?void 0:r.selected)||[]:null===(s=this._selectionModel)||void 0===s?void 0:s.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const r=this._selectionModel.selected.map(s=>s.viewValue);return this._isRtl()&&r.reverse(),r.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(r){this.disabled||(this.panelOpen?this._handleOpenKeydown(r):this._handleClosedKeydown(r))}_handleClosedKeydown(r){const s=r.keyCode,_=s===v.JH||s===v.LH||s===v.oh||s===v.SV,c=s===v.K5||s===v.L_,a=this._keyManager;if(!a.isTyping()&&c&&!(0,v.Vb)(r)||(this.multiple||r.altKey)&&_)r.preventDefault(),this.open();else if(!this.multiple){const i=this.selected;a.onKeydown(r);const t=this.selected;t&&i!==t&&this._liveAnnouncer.announce(t.viewValue,1e4)}}_handleOpenKeydown(r){const s=this._keyManager,_=r.keyCode,c=_===v.JH||_===v.LH,a=s.isTyping();if(c&&r.altKey)r.preventDefault(),this.close();else if(a||_!==v.K5&&_!==v.L_||!s.activeItem||(0,v.Vb)(r))if(!a&&this._multiple&&_===v.A&&r.ctrlKey){r.preventDefault();const i=this.options.some(t=>!t.disabled&&!t.selected);this.options.forEach(t=>{t.disabled||(i?t.select():t.deselect())})}else{const i=s.activeItemIndex;s.onKeydown(r),this._multiple&&c&&r.shiftKey&&s.activeItem&&s.activeItemIndex!==i&&s.activeItem._selectViaInteraction()}else r.preventDefault(),s.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((0,_e.q)(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.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(r){if(this._selectionModel.selected.forEach(s=>s.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&r)Array.isArray(r),r.forEach(s=>this._selectOptionByValue(s)),this._sortValues();else{const s=this._selectOptionByValue(r);s?this._keyManager.updateActiveItem(s):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(r){const s=this.options.find(_=>{if(this._selectionModel.isSelected(_))return!1;try{return null!=_.value&&this._compareWith(_.value,r)}catch{return!1}});return s&&this._selectionModel.select(s),s}_assignValue(r){return!!(r!==this._value||this._multiple&&Array.isArray(r))&&(this.options&&this._setSelectionByValue(r),this._value=r,!0)}_initKeyManager(){this._keyManager=new T.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,H.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe((0,H.R)(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 r=(0,$.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,H.R)(r)).subscribe(s=>{this._onSelect(s.source,s.isUserInput),s.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,$.T)(...this.options.map(s=>s._stateChanges)).pipe((0,H.R)(r)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(r,s){const _=this._selectionModel.isSelected(r);null!=r.value||this._multiple?(_!==r.selected&&(r.selected?this._selectionModel.select(r):this._selectionModel.deselect(r)),s&&this._keyManager.setActiveItem(r),this.multiple&&(this._sortValues(),s&&this.focus())):(r.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(r.value)),_!==this._selectionModel.isSelected(r)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const r=this.options.toArray();this._selectionModel.sort((s,_)=>this.sortComparator?this.sortComparator(s,_,r):r.indexOf(s)-r.indexOf(_)),this.stateChanges.next()}}_propagateChanges(r){let s=null;s=this.multiple?this.selected.map(_=>_.value):this.selected?this.selected.value:r,this._value=s,this.valueChange.emit(s),this._onChange(s),this.selectionChange.emit(this._getChangeEvent(s)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var r;return!this._panelOpen&&!this.disabled&&(null===(r=this.options)||void 0===r?void 0:r.length)>0}focus(r){this._elementRef.nativeElement.focus(r)}_getPanelAriaLabelledby(){var r;if(this.ariaLabel)return null;const s=null===(r=this._parentFormField)||void 0===r?void 0:r.getLabelId();return this.ariaLabelledby?(s?s+" ":"")+this.ariaLabelledby:s}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var r;if(this.ariaLabel)return null;const s=null===(r=this._parentFormField)||void 0===r?void 0:r.getLabelId();let _=(s?s+" ":"")+this._valueId;return this.ariaLabelledby&&(_+=" "+this.ariaLabelledby),_}_panelDoneAnimating(r){this.openedChange.emit(r)}setDescribedByIds(r){r.length?this._elementRef.nativeElement.setAttribute("aria-describedby",r.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return oe.\u0275fac=function(r){return new(r||oe)(A.Y36(g.rL),A.Y36(A.sBO),A.Y36(A.R0b),A.Y36(w.rD),A.Y36(A.SBq),A.Y36(E.Is,8),A.Y36(D.F,8),A.Y36(D.sg,8),A.Y36(p.G_,8),A.Y36(D.a5,10),A.$8M("tabindex"),A.Y36(nt),A.Y36(T.Kd),A.Y36(Tt,8))},oe.\u0275dir=A.lG2({type:oe,viewQuery:function(r,s){if(1&r&&(A.Gf(V,5),A.Gf(Q,5),A.Gf(e.pI,5)),2&r){let _;A.iGM(_=A.CRH())&&(s.trigger=_.first),A.iGM(_=A.CRH())&&(s.panel=_.first),A.iGM(_=A.CRH())&&(s._overlayDir=_.first)}},inputs:{userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[A.qOj,A.TTD]}),oe})(),ot=(()=>{class oe extends Ee{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(r,s,_){const c=this._getItemHeight();return Math.min(Math.max(0,c*r-s+c/2),_)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,H.R)(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((0,_e.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(r){const s=(0,w.CB)(r,this.options,this.optionGroups),_=this._getItemHeight();this.panel.nativeElement.scrollTop=0===r&&1===s?0:(0,w.jH)((r+s)*_,_,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(r){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(r)}_getChangeEvent(r){return new Xe(this,r)}_calculateOverlayOffsetX(){const r=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),s=this._viewportRuler.getViewportSize(),_=this._isRtl(),c=this.multiple?56:32;let a;if(this.multiple)a=40;else if(this.disableOptionCentering)a=16;else{let n=this._selectionModel.selected[0]||this.options.first;a=n&&n.group?32:16}_||(a*=-1);const i=0-(r.left+a-(_?c:0)),t=r.right+a-s.width+(_?0:c);i>0?a+=i+8:t>0&&(a-=t+8),this._overlayDir.offsetX=Math.round(a),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(r,s,_){const c=this._getItemHeight(),a=(c-this._triggerRect.height)/2,i=Math.floor(256/c);let t;return this.disableOptionCentering?0:(t=0===this._scrollTop?r*c:this._scrollTop===_?(r-(this._getItemCount()-i))*c+(c-(this._getItemCount()*c-256)%c):s-c/2,Math.round(-1*t-a))}_checkOverlayWithinViewport(r){const s=this._getItemHeight(),_=this._viewportRuler.getViewportSize(),c=this._triggerRect.top-8,a=_.height-this._triggerRect.bottom-8,i=Math.abs(this._offsetY),n=Math.min(this._getItemCount()*s,256)-i-this._triggerRect.height;n>a?this._adjustPanelUp(n,a):i>c?this._adjustPanelDown(i,c,r):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(r,s){const _=Math.round(r-s);this._scrollTop-=_,this._offsetY-=_,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(r,s,_){const c=Math.round(r-s);if(this._scrollTop+=c,this._offsetY+=c,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=_)return this._scrollTop=_,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const r=this._getItemHeight(),s=this._getItemCount(),_=Math.min(s*r,256),a=s*r-_;let i;i=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),i+=(0,w.CB)(i,this.options,this.optionGroups);const t=_/2;this._scrollTop=this._calculateOverlayScroll(i,t,a),this._offsetY=this._calculateOverlayOffsetY(i,t,a),this._checkOverlayWithinViewport(a)}_getOriginBasedOnOption(){const r=this._getItemHeight(),s=(r-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-s+r/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return oe.\u0275fac=function(){let X;return function(s){return(X||(X=A.n5z(oe)))(s||oe)}}(),oe.\u0275cmp=A.Xpm({type:oe,selectors:[["mat-select"]],contentQueries:function(r,s,_){if(1&r&&(A.Suo(_,ne,5),A.Suo(_,w.ey,5),A.Suo(_,w.K7,5)),2&r){let c;A.iGM(c=A.CRH())&&(s.customTrigger=c.first),A.iGM(c=A.CRH())&&(s.options=c),A.iGM(c=A.CRH())&&(s.optionGroups=c)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:19,hostBindings:function(r,s){1&r&&A.NdJ("keydown",function(c){return s._handleKeydown(c)})("focus",function(){return s._onFocus()})("blur",function(){return s._onBlur()}),2&r&&(A.uIk("id",s.id)("tabindex",s.tabIndex)("aria-controls",s.panelOpen?s.id+"-panel":null)("aria-expanded",s.panelOpen)("aria-label",s.ariaLabel||null)("aria-required",s.required.toString())("aria-disabled",s.disabled.toString())("aria-invalid",s.errorState)("aria-activedescendant",s._getAriaActiveDescendant()),A.ekj("mat-select-disabled",s.disabled)("mat-select-invalid",s.errorState)("mat-select-required",s.required)("mat-select-empty",s.empty)("mat-select-multiple",s.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[A._Bn([{provide:p.Eo,useExisting:oe},{provide:w.HF,useExisting:oe}]),A.qOj],ngContentSelectors:$e,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 mat-select-min-line",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","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(r,s){if(1&r&&(A.F$t(pe),A.TgZ(0,"div",0,1),A.NdJ("click",function(){return s.toggle()}),A.TgZ(3,"div",2),A.YNc(4,ae,2,1,"span",3),A.YNc(5,Se,3,2,"span",4),A.qZA(),A.TgZ(6,"div",5),A._UZ(7,"div",6),A.qZA()(),A.YNc(8,Be,4,14,"ng-template",7),A.NdJ("backdropClick",function(){return s.close()})("attach",function(){return s._onAttached()})("detach",function(){return s.close()})),2&r){const _=A.MAs(1);A.uIk("aria-owns",s.panelOpen?s.id+"-panel":null),A.xp6(3),A.Q6J("ngSwitch",s.empty),A.uIk("id",s._valueId),A.xp6(1),A.Q6J("ngSwitchCase",!0),A.xp6(1),A.Q6J("ngSwitchCase",!1),A.xp6(3),A.Q6J("cdkConnectedOverlayPanelClass",s._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",s._scrollStrategy)("cdkConnectedOverlayOrigin",_)("cdkConnectedOverlayOpen",s.panelOpen)("cdkConnectedOverlayPositions",s._positions)("cdkConnectedOverlayMinWidth",null==s._triggerRect?null:s._triggerRect.width)("cdkConnectedOverlayOffsetY",s._offsetY)}},dependencies:[m.mk,m.RF,m.n9,m.ED,e.pI,e.xu],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-select-value{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{height:16px;flex-shrink:0;display:inline-flex;align-items:center}.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 rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;margin:0 4px}.mat-form-field.mat-focused .mat-select-arrow{transform:translateX(0)}.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:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[Ce.transformPanelWrap,Ce.transformPanel]},changeDetection:0}),oe})(),it=(()=>{class oe{}return oe.\u0275fac=function(r){return new(r||oe)},oe.\u0275mod=A.oAB({type:oe}),oe.\u0275inj=A.cJS({providers:[J],imports:[m.ez,e.U8,w.Ng,w.BQ,g.ZD,p.lN,w.Ng,w.BQ]}),oe})()},23267:(Qe,he,u)=>{"use strict";u.d(he,{JX:()=>We,Rh:()=>De,SJ:()=>nt,TM:()=>Pe});var e=u(67376),m=u(36895),A=u(94650),w=u(3238),p=u(12687),g=u(40445),T=u(21281),E=u(29521),S=u(83353),R=u(77579),v=u(54968),D=u(56451),F=u(39300),z=u(54004),$=u(69718),G=u(82722),q=u(71884),_e=u(95698),ce=u(68675),Te=u(78372),b=u(37340);const H=["*"],L=["content"];function V(Ye,Tt){if(1&Ye){const J=A.EpF();A.TgZ(0,"div",2),A.NdJ("click",function(){A.CHM(J);const le=A.oxw();return A.KtG(le._onBackdropClicked())}),A.qZA()}if(2&Ye){const J=A.oxw();A.ekj("mat-drawer-shown",J._isShowingBackdrop())}}function Q(Ye,Tt){1&Ye&&(A.TgZ(0,"mat-drawer-content"),A.Hsn(1,2),A.qZA())}const ae=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],xe=["mat-drawer","mat-drawer-content","*"];function ge(Ye,Tt){if(1&Ye){const J=A.EpF();A.TgZ(0,"div",2),A.NdJ("click",function(){A.CHM(J);const le=A.oxw();return A.KtG(le._onBackdropClicked())}),A.qZA()}if(2&Ye){const J=A.oxw();A.ekj("mat-drawer-shown",J._isShowingBackdrop())}}function Se(Ye,Tt){1&Ye&&(A.TgZ(0,"mat-sidenav-content"),A.Hsn(1,2),A.qZA())}const Be=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],pe=["mat-sidenav","mat-sidenav-content","*"],Ce={transformDrawer:(0,b.X$)("transform",[(0,b.SB)("open, open-instant",(0,b.oB)({transform:"none",visibility:"visible"})),(0,b.SB)("void",(0,b.oB)({"box-shadow":"none",visibility:"hidden"})),(0,b.eR)("void => open-instant",(0,b.jt)("0ms")),(0,b.eR)("void <=> open, open-instant => void",(0,b.jt)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},re=new A.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function N(){return!1}}),B=new A.OlP("MAT_DRAWER_CONTAINER");let Me=(()=>{class Ye extends e.PQ{constructor(J,Xe,le,ne,ke){super(le,ne,ke),this._changeDetectorRef=J,this._container=Xe}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return Ye.\u0275fac=function(J){return new(J||Ye)(A.Y36(A.sBO),A.Y36((0,A.Gpc)(()=>be)),A.Y36(A.SBq),A.Y36(e.mF),A.Y36(A.R0b))},Ye.\u0275cmp=A.Xpm({type:Ye,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(J,Xe){2&J&&A.Udp("margin-left",Xe._container._contentMargins.left,"px")("margin-right",Xe._container._contentMargins.right,"px")},features:[A._Bn([{provide:e.PQ,useExisting:Ye}]),A.qOj],ngContentSelectors:H,decls:1,vars:0,template:function(J,Xe){1&J&&(A.F$t(),A.Hsn(0))},encapsulation:2,changeDetection:0}),Ye})(),Y=(()=>{class Ye{constructor(J,Xe,le,ne,ke,Ee,ot,it){this._elementRef=J,this._focusTrapFactory=Xe,this._focusMonitor=le,this._platform=ne,this._ngZone=ke,this._interactivityChecker=Ee,this._doc=ot,this._container=it,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new R.x,this._animationEnd=new R.x,this._animationState="void",this.openedChange=new A.vpe(!0),this._openedStream=this.openedChange.pipe((0,F.h)(oe=>oe),(0,z.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,F.h)(oe=>oe.fromState!==oe.toState&&0===oe.toState.indexOf("open")),(0,$.h)(void 0)),this._closedStream=this.openedChange.pipe((0,F.h)(oe=>!oe),(0,z.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,F.h)(oe=>oe.fromState!==oe.toState&&"void"===oe.toState),(0,$.h)(void 0)),this._destroyed=new R.x,this.onPositionChanged=new A.vpe,this._modeChanged=new R.x,this.openedChange.subscribe(oe=>{oe?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{(0,v.R)(this._elementRef.nativeElement,"keydown").pipe((0,F.h)(oe=>oe.keyCode===E.hY&&!this.disableClose&&!(0,E.Vb)(oe)),(0,G.R)(this._destroyed)).subscribe(oe=>this._ngZone.run(()=>{this.close(),oe.stopPropagation(),oe.preventDefault()}))}),this._animationEnd.pipe((0,q.x)((oe,X)=>oe.fromState===X.fromState&&oe.toState===X.toState)).subscribe(oe=>{const{fromState:X,toState:r}=oe;(0===r.indexOf("open")&&"void"===X||"void"===r&&0===X.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(J){(J="end"===J?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(J),this._position=J,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(J){this._mode=J,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(J){this._disableClose=(0,T.Ig)(J)}get autoFocus(){return this._autoFocus??("side"===this.mode?"dialog":"first-tabbable")}set autoFocus(J){("true"===J||"false"===J||null==J)&&(J=(0,T.Ig)(J)),this._autoFocus=J}get opened(){return this._opened}set opened(J){this.toggle((0,T.Ig)(J))}_forceFocus(J,Xe){this._interactivityChecker.isFocusable(J)||(J.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const le=()=>{J.removeEventListener("blur",le),J.removeEventListener("mousedown",le),J.removeAttribute("tabindex")};J.addEventListener("blur",le),J.addEventListener("mousedown",le)})),J.focus(Xe)}_focusByCssSelector(J,Xe){let le=this._elementRef.nativeElement.querySelector(J);le&&this._forceFocus(le,Xe)}_takeFocus(){if(!this._focusTrap)return;const J=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(Xe=>{!Xe&&"function"==typeof this._elementRef.nativeElement.focus&&J.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(J){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,J):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const J=this._doc.activeElement;return!!J&&this._elementRef.nativeElement.contains(J)}ngAfterViewInit(){this._isAttached=!0,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){var J;this._focusTrap&&this._focusTrap.destroy(),null===(J=this._anchor)||void 0===J||J.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(J){return this.toggle(!0,J)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(J=!this.opened,Xe){J&&Xe&&(this._openedVia=Xe);const le=this._setOpen(J,!J&&this._isFocusWithinDrawer(),this._openedVia||"program");return J||(this._openedVia=null),le}_setOpen(J,Xe,le){return this._opened=J,J?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",Xe&&this._restoreFocus(le)),this._updateFocusTrapState(),new Promise(ne=>{this.openedChange.pipe((0,_e.q)(1)).subscribe(ke=>ne(ke?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_updatePositionInParent(J){const Xe=this._elementRef.nativeElement,le=Xe.parentNode;"end"===J?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),le.insertBefore(this._anchor,Xe)),le.appendChild(Xe)):this._anchor&&this._anchor.parentNode.insertBefore(Xe,this._anchor)}}return Ye.\u0275fac=function(J){return new(J||Ye)(A.Y36(A.SBq),A.Y36(p.qV),A.Y36(p.tE),A.Y36(S.t4),A.Y36(A.R0b),A.Y36(p.ic),A.Y36(m.K0,8),A.Y36(B,8))},Ye.\u0275cmp=A.Xpm({type:Ye,selectors:[["mat-drawer"]],viewQuery:function(J,Xe){if(1&J&&A.Gf(L,5),2&J){let le;A.iGM(le=A.CRH())&&(Xe._content=le.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(J,Xe){1&J&&A.WFA("@transform.start",function(ne){return Xe._animationStarted.next(ne)})("@transform.done",function(ne){return Xe._animationEnd.next(ne)}),2&J&&(A.uIk("align",null),A.d8E("@transform",Xe._animationState),A.ekj("mat-drawer-end","end"===Xe.position)("mat-drawer-over","over"===Xe.mode)("mat-drawer-push","push"===Xe.mode)("mat-drawer-side","side"===Xe.mode)("mat-drawer-opened",Xe.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:H,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(J,Xe){1&J&&(A.F$t(),A.TgZ(0,"div",0,1),A.Hsn(2),A.qZA())},dependencies:[e.PQ],encapsulation:2,data:{animation:[Ce.transformDrawer]},changeDetection:0}),Ye})(),be=(()=>{class Ye{constructor(J,Xe,le,ne,ke,Ee=!1,ot){this._dir=J,this._element=Xe,this._ngZone=le,this._changeDetectorRef=ne,this._animationMode=ot,this._drawers=new A.n_E,this.backdropClick=new A.vpe,this._destroyed=new R.x,this._doCheckSubject=new R.x,this._contentMargins={left:null,right:null},this._contentMarginChanges=new R.x,J&&J.change.pipe((0,G.R)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),ke.change().pipe((0,G.R)(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=Ee}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(J){this._autosize=(0,T.Ig)(J)}get hasBackdrop(){return this._backdropOverride??(!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode)}set hasBackdrop(J){this._backdropOverride=null==J?null:(0,T.Ig)(J)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe((0,ce.O)(this._allDrawers),(0,G.R)(this._destroyed)).subscribe(J=>{this._drawers.reset(J.filter(Xe=>!Xe._container||Xe._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe((0,ce.O)(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(J=>{this._watchDrawerToggle(J),this._watchDrawerPosition(J),this._watchDrawerMode(J)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,Te.b)(10),(0,G.R)(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(J=>J.open())}close(){this._drawers.forEach(J=>J.close())}updateContentMargins(){let J=0,Xe=0;if(this._left&&this._left.opened)if("side"==this._left.mode)J+=this._left._getWidth();else if("push"==this._left.mode){const le=this._left._getWidth();J+=le,Xe-=le}if(this._right&&this._right.opened)if("side"==this._right.mode)Xe+=this._right._getWidth();else if("push"==this._right.mode){const le=this._right._getWidth();Xe+=le,J-=le}J=J||null,Xe=Xe||null,(J!==this._contentMargins.left||Xe!==this._contentMargins.right)&&(this._contentMargins={left:J,right:Xe},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(J){J._animationStarted.pipe((0,F.h)(Xe=>Xe.fromState!==Xe.toState),(0,G.R)(this._drawers.changes)).subscribe(Xe=>{"open-instant"!==Xe.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==J.mode&&J.openedChange.pipe((0,G.R)(this._drawers.changes)).subscribe(()=>this._setContainerClass(J.opened))}_watchDrawerPosition(J){!J||J.onPositionChanged.pipe((0,G.R)(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,_e.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(J){J&&J._modeChanged.pipe((0,G.R)((0,D.T)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(J){const Xe=this._element.nativeElement.classList,le="mat-drawer-container-has-open";J?Xe.add(le):Xe.remove(le)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(J=>{"end"==J.position?this._end=J:this._start=J}),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(J=>J&&!J.disableClose&&this._canHaveBackdrop(J)).forEach(J=>J._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(J){return"side"!==J.mode||!!this._backdropOverride}_isDrawerOpen(J){return null!=J&&J.opened}}return Ye.\u0275fac=function(J){return new(J||Ye)(A.Y36(g.Is,8),A.Y36(A.SBq),A.Y36(A.R0b),A.Y36(A.sBO),A.Y36(e.rL),A.Y36(re),A.Y36(A.QbO,8))},Ye.\u0275cmp=A.Xpm({type:Ye,selectors:[["mat-drawer-container"]],contentQueries:function(J,Xe,le){if(1&J&&(A.Suo(le,Me,5),A.Suo(le,Y,5)),2&J){let ne;A.iGM(ne=A.CRH())&&(Xe._content=ne.first),A.iGM(ne=A.CRH())&&(Xe._allDrawers=ne)}},viewQuery:function(J,Xe){if(1&J&&A.Gf(Me,5),2&J){let le;A.iGM(le=A.CRH())&&(Xe._userContent=le.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(J,Xe){2&J&&A.ekj("mat-drawer-container-explicit-backdrop",Xe._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[A._Bn([{provide:B,useExisting:Ye}])],ngContentSelectors:xe,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(J,Xe){1&J&&(A.F$t(ae),A.YNc(0,V,1,2,"div",0),A.Hsn(1),A.Hsn(2,1),A.YNc(3,Q,2,0,"mat-drawer-content",1)),2&J&&(A.Q6J("ngIf",Xe.hasBackdrop),A.xp6(3),A.Q6J("ngIf",!Xe._content))},dependencies:[m.O5,Me],styles:['.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[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),Ye})(),De=(()=>{class Ye extends Me{constructor(J,Xe,le,ne,ke){super(J,Xe,le,ne,ke)}}return Ye.\u0275fac=function(J){return new(J||Ye)(A.Y36(A.sBO),A.Y36((0,A.Gpc)(()=>Pe)),A.Y36(A.SBq),A.Y36(e.mF),A.Y36(A.R0b))},Ye.\u0275cmp=A.Xpm({type:Ye,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(J,Xe){2&J&&A.Udp("margin-left",Xe._container._contentMargins.left,"px")("margin-right",Xe._container._contentMargins.right,"px")},features:[A._Bn([{provide:e.PQ,useExisting:Ye}]),A.qOj],ngContentSelectors:H,decls:1,vars:0,template:function(J,Xe){1&J&&(A.F$t(),A.Hsn(0))},encapsulation:2,changeDetection:0}),Ye})(),We=(()=>{class Ye extends Y{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(J){this._fixedInViewport=(0,T.Ig)(J)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(J){this._fixedTopGap=(0,T.su)(J)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(J){this._fixedBottomGap=(0,T.su)(J)}}return Ye.\u0275fac=function(){let Tt;return function(Xe){return(Tt||(Tt=A.n5z(Ye)))(Xe||Ye)}}(),Ye.\u0275cmp=A.Xpm({type:Ye,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(J,Xe){2&J&&(A.uIk("align",null),A.Udp("top",Xe.fixedInViewport?Xe.fixedTopGap:null,"px")("bottom",Xe.fixedInViewport?Xe.fixedBottomGap:null,"px"),A.ekj("mat-drawer-end","end"===Xe.position)("mat-drawer-over","over"===Xe.mode)("mat-drawer-push","push"===Xe.mode)("mat-drawer-side","side"===Xe.mode)("mat-drawer-opened",Xe.opened)("mat-sidenav-fixed",Xe.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[A.qOj],ngContentSelectors:H,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(J,Xe){1&J&&(A.F$t(),A.TgZ(0,"div",0,1),A.Hsn(2),A.qZA())},dependencies:[e.PQ],encapsulation:2,data:{animation:[Ce.transformDrawer]},changeDetection:0}),Ye})(),Pe=(()=>{class Ye extends be{}return Ye.\u0275fac=function(){let Tt;return function(Xe){return(Tt||(Tt=A.n5z(Ye)))(Xe||Ye)}}(),Ye.\u0275cmp=A.Xpm({type:Ye,selectors:[["mat-sidenav-container"]],contentQueries:function(J,Xe,le){if(1&J&&(A.Suo(le,De,5),A.Suo(le,We,5)),2&J){let ne;A.iGM(ne=A.CRH())&&(Xe._content=ne.first),A.iGM(ne=A.CRH())&&(Xe._allDrawers=ne)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(J,Xe){2&J&&A.ekj("mat-drawer-container-explicit-backdrop",Xe._backdropOverride)},exportAs:["matSidenavContainer"],features:[A._Bn([{provide:B,useExisting:Ye}]),A.qOj],ngContentSelectors:pe,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(J,Xe){1&J&&(A.F$t(Be),A.YNc(0,ge,1,2,"div",0),A.Hsn(1),A.Hsn(2,1),A.YNc(3,Se,2,0,"mat-sidenav-content",1)),2&J&&(A.Q6J("ngIf",Xe.hasBackdrop),A.xp6(3),A.Q6J("ngIf",!Xe._content))},dependencies:[m.O5,De],styles:['.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[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),Ye})(),nt=(()=>{class Ye{}return Ye.\u0275fac=function(J){return new(J||Ye)},Ye.\u0275mod=A.oAB({type:Ye}),Ye.\u0275inj=A.cJS({imports:[m.ez,w.BQ,e.ZD,e.ZD,w.BQ]}),Ye})()},90455:(Qe,he,u)=>{"use strict";u.d(he,{Rr:()=>G,rP:()=>Te});var e=u(49643),m=u(94650),A=u(3238),w=u(12687),p=u(21281),g=u(24006);const T=["input"],E=function(b){return{enterDuration:b}},S=["*"],R=new m.OlP("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let v=0;const D={provide:g.JU,useExisting:(0,m.Gpc)(()=>G),multi:!0};class F{constructor(H,L){this.source=H,this.checked=L}}const z=(0,A.sb)((0,A.pj)((0,A.Kr)((0,A.Id)(class{constructor(b){this._elementRef=b}}))));let $=(()=>{class b extends z{constructor(L,V,Q,ae,xe,ge,Se){super(L),this._focusMonitor=V,this._changeDetectorRef=Q,this.defaults=xe,this._onChange=Be=>{},this._onTouched=()=>{},this._required=!1,this._checked=!1,this.name=null,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new m.vpe,this.toggleChange=new m.vpe,this.tabIndex=parseInt(ae)||0,this.color=this.defaultColor=xe.color||"accent",this._noopAnimations="NoopAnimations"===ge,this.id=this._uniqueId=`${Se}${++v}`}get required(){return this._required}set required(L){this._required=(0,p.Ig)(L)}get checked(){return this._checked}set checked(L){this._checked=(0,p.Ig)(L),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(L=>{"keyboard"===L||"program"===L?this._focused=!0:L||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(L){this.checked=!!L}registerOnChange(L){this._onChange=L}registerOnTouched(L){this._onTouched=L}setDisabledState(L){this.disabled=L,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}}return b.\u0275fac=function(L){m.$Z()},b.\u0275dir=m.lG2({type:b,inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},features:[m.qOj]}),b})(),G=(()=>{class b extends ${constructor(L,V,Q,ae,xe,ge){super(L,V,Q,ae,xe,ge,"mat-slide-toggle-")}_createChangeEvent(L){return new F(this,L)}_onChangeEvent(L){L.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(L){L.stopPropagation()}focus(L,V){V?this._focusMonitor.focusVia(this._inputElement,V,L):this._inputElement.nativeElement.focus(L)}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return b.\u0275fac=function(L){return new(L||b)(m.Y36(m.SBq),m.Y36(w.tE),m.Y36(m.sBO),m.$8M("tabindex"),m.Y36(R),m.Y36(m.QbO,8))},b.\u0275cmp=m.Xpm({type:b,selectors:[["mat-slide-toggle"]],viewQuery:function(L,V){if(1&L&&m.Gf(T,5),2&L){let Q;m.iGM(Q=m.CRH())&&(V._inputElement=Q.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:13,hostBindings:function(L,V){2&L&&(m.Ikx("id",V.id),m.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null)("name",null),m.ekj("mat-checked",V.checked)("mat-disabled",V.disabled)("mat-slide-toggle-label-before","before"==V.labelPosition)("_mat-animation-noopable",V._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matSlideToggle"],features:[m._Bn([D]),m.qOj],ngContentSelectors:S,decls:14,vars:20,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["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"],[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(L,V){if(1&L&&(m.F$t(),m.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),m.NdJ("change",function(ae){return V._onChangeEvent(ae)})("click",function(ae){return V._onInputClick(ae)}),m.qZA(),m.TgZ(5,"span",5),m._UZ(6,"span",6),m.TgZ(7,"span",7),m._UZ(8,"span",8),m.qZA()()(),m.TgZ(9,"span",9,10),m.NdJ("cdkObserveContent",function(){return V._onLabelTextChange()}),m.TgZ(11,"span",11),m._uU(12,"\xa0"),m.qZA(),m.Hsn(13),m.qZA()()),2&L){const Q=m.MAs(1),ae=m.MAs(10);m.uIk("for",V.inputId),m.xp6(2),m.ekj("mat-slide-toggle-bar-no-side-margin",!ae.textContent||!ae.textContent.trim()),m.xp6(1),m.Q6J("id",V.inputId)("required",V.required)("tabIndex",V.tabIndex)("checked",V.checked)("disabled",V.disabled),m.uIk("name",V.name)("aria-checked",V.checked)("aria-label",V.ariaLabel)("aria-labelledby",V.ariaLabelledby)("aria-describedby",V.ariaDescribedby),m.xp6(4),m.Q6J("matRippleTrigger",Q)("matRippleDisabled",V.disableRipple||V.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",m.VKq(18,E,V._noopAnimations?0:150))}},dependencies:[A.wG,e.wD],styles:['.mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.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{-webkit-user-select:none;user-select:none;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%;display:block}.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}}.mat-slide-toggle-input:focus~.mat-slide-toggle-thumb-container .mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}'],encapsulation:2,changeDetection:0}),b})(),ce=(()=>{class b{}return b.\u0275fac=function(L){return new(L||b)},b.\u0275mod=m.oAB({type:b}),b.\u0275inj=m.cJS({}),b})(),Te=(()=>{class b{}return b.\u0275fac=function(L){return new(L||b)},b.\u0275mod=m.oAB({type:b}),b.\u0275inj=m.cJS({imports:[ce,A.si,A.BQ,e.Q8,ce,A.BQ]}),b})()},17009:(Qe,he,u)=>{"use strict";u.d(he,{ZX:()=>_e});var e=u(98184),m=u(84080),A=u(36895),w=u(94650),p=u(3238),g=u(4859);u(37340);let _e=(()=>{class L{}return L.\u0275fac=function(Q){return new(Q||L)},L.\u0275mod=w.oAB({type:L}),L.\u0275inj=w.cJS({imports:[e.U8,m.eL,A.ez,g.ot,p.BQ,p.BQ]}),L})()},96308:(Qe,he,u)=>{"use strict";u.d(he,{JX:()=>ge,YE:()=>ce,nU:()=>xe});var e=u(94650),m=u(12687),A=u(21281),w=u(29521),p=u(3238),g=u(77579),T=u(56451),E=u(37340),S=u(36895);const R=["mat-sort-header",""];function v(Se,Be){if(1&Se){const pe=e.EpF();e.TgZ(0,"div",3),e.NdJ("@arrowPosition.start",function(){e.CHM(pe);const Ce=e.oxw();return e.KtG(Ce._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){e.CHM(pe);const Ce=e.oxw();return e.KtG(Ce._disableViewStateAnimation=!1)}),e._UZ(1,"div",4),e.TgZ(2,"div",5),e._UZ(3,"div",6)(4,"div",7)(5,"div",8),e.qZA()()}if(2&Se){const pe=e.oxw();e.Q6J("@arrowOpacity",pe._getArrowViewState())("@arrowPosition",pe._getArrowViewState())("@allowChildren",pe._getArrowDirectionState()),e.xp6(2),e.Q6J("@indicator",pe._getArrowDirectionState()),e.xp6(1),e.Q6J("@leftPointer",pe._getArrowDirectionState()),e.xp6(1),e.Q6J("@rightPointer",pe._getArrowDirectionState())}}const D=["*"],q=new e.OlP("MAT_SORT_DEFAULT_OPTIONS"),_e=(0,p.dB)((0,p.Id)(class{}));let ce=(()=>{class Se extends _e{constructor(pe){super(),this._defaultOptions=pe,this.sortables=new Map,this._stateChanges=new g.x,this.start="asc",this._direction="",this.sortChange=new e.vpe}get direction(){return this._direction}set direction(pe){this._direction=pe}get disableClear(){return this._disableClear}set disableClear(pe){this._disableClear=(0,A.Ig)(pe)}register(pe){this.sortables.set(pe.id,pe)}deregister(pe){this.sortables.delete(pe.id)}sort(pe){this.active!=pe.id?(this.active=pe.id,this.direction=pe.start?pe.start:this.start):this.direction=this.getNextSortDirection(pe),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(pe){var $e,Ce,de;if(!pe)return"";const re=null!==($e=null!==(Ce=pe?.disableClear)&&void 0!==Ce?Ce:this.disableClear)&&void 0!==$e?$e:!(null===(de=this._defaultOptions)||void 0===de||!de.disableClear);let B=function Te(Se,Be){let pe=["asc","desc"];return"desc"==Se&&pe.reverse(),Be||pe.push(""),pe}(pe.start||this.start,re),N=B.indexOf(this.direction)+1;return N>=B.length&&(N=0),B[N]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return Se.\u0275fac=function(pe){return new(pe||Se)(e.Y36(q,8))},Se.\u0275dir=e.lG2({type:Se,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],active:["matSortActive","active"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[e.qOj,e.TTD]}),Se})();const b=p.mZ.ENTERING+" "+p.yN.STANDARD_CURVE,H={indicator:(0,E.X$)("indicator",[(0,E.SB)("active-asc, asc",(0,E.oB)({transform:"translateY(0px)"})),(0,E.SB)("active-desc, desc",(0,E.oB)({transform:"translateY(10px)"})),(0,E.eR)("active-asc <=> active-desc",(0,E.jt)(b))]),leftPointer:(0,E.X$)("leftPointer",[(0,E.SB)("active-asc, asc",(0,E.oB)({transform:"rotate(-45deg)"})),(0,E.SB)("active-desc, desc",(0,E.oB)({transform:"rotate(45deg)"})),(0,E.eR)("active-asc <=> active-desc",(0,E.jt)(b))]),rightPointer:(0,E.X$)("rightPointer",[(0,E.SB)("active-asc, asc",(0,E.oB)({transform:"rotate(45deg)"})),(0,E.SB)("active-desc, desc",(0,E.oB)({transform:"rotate(-45deg)"})),(0,E.eR)("active-asc <=> active-desc",(0,E.jt)(b))]),arrowOpacity:(0,E.X$)("arrowOpacity",[(0,E.SB)("desc-to-active, asc-to-active, active",(0,E.oB)({opacity:1})),(0,E.SB)("desc-to-hint, asc-to-hint, hint",(0,E.oB)({opacity:.54})),(0,E.SB)("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",(0,E.oB)({opacity:0})),(0,E.eR)("* => asc, * => desc, * => active, * => hint, * => void",(0,E.jt)("0ms")),(0,E.eR)("* <=> *",(0,E.jt)(b))]),arrowPosition:(0,E.X$)("arrowPosition",[(0,E.eR)("* => desc-to-hint, * => desc-to-active",(0,E.jt)(b,(0,E.F4)([(0,E.oB)({transform:"translateY(-25%)"}),(0,E.oB)({transform:"translateY(0)"})]))),(0,E.eR)("* => hint-to-desc, * => active-to-desc",(0,E.jt)(b,(0,E.F4)([(0,E.oB)({transform:"translateY(0)"}),(0,E.oB)({transform:"translateY(25%)"})]))),(0,E.eR)("* => asc-to-hint, * => asc-to-active",(0,E.jt)(b,(0,E.F4)([(0,E.oB)({transform:"translateY(25%)"}),(0,E.oB)({transform:"translateY(0)"})]))),(0,E.eR)("* => hint-to-asc, * => active-to-asc",(0,E.jt)(b,(0,E.F4)([(0,E.oB)({transform:"translateY(0)"}),(0,E.oB)({transform:"translateY(-25%)"})]))),(0,E.SB)("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",(0,E.oB)({transform:"translateY(0)"})),(0,E.SB)("hint-to-desc, active-to-desc, desc",(0,E.oB)({transform:"translateY(-25%)"})),(0,E.SB)("hint-to-asc, active-to-asc, asc",(0,E.oB)({transform:"translateY(25%)"}))]),allowChildren:(0,E.X$)("allowChildren",[(0,E.eR)("* <=> *",[(0,E.IO)("@*",(0,E.pV)(),{optional:!0})])])};let L=(()=>{class Se{constructor(){this.changes=new g.x}}return Se.\u0275fac=function(pe){return new(pe||Se)},Se.\u0275prov=e.Yz7({token:Se,factory:Se.\u0275fac,providedIn:"root"}),Se})();const Q={provide:L,deps:[[new e.FiY,new e.tp0,L]],useFactory:function V(Se){return Se||new L}},ae=(0,p.Id)(class{});let xe=(()=>{class Se extends ae{constructor(pe,$e,Ce,de,re,B,N,Me){super(),this._intl=pe,this._changeDetectorRef=$e,this._sort=Ce,this._columnDef=de,this._focusMonitor=re,this._elementRef=B,this._ariaDescriber=N,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",null!=Me&&Me.arrowPosition&&(this.arrowPosition=Me?.arrowPosition),this._handleStateChanges()}get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(pe){this._updateSortActionDescription(pe)}get disableClear(){return this._disableClear}set disableClear(pe){this._disableClear=(0,A.Ig)(pe)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(pe=>{const $e=!!pe;$e!==this._showIndicatorHint&&(this._setIndicatorHintVisible($e),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(pe){this._isDisabled()&&pe||(this._showIndicatorHint=pe,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(pe){this._viewState=pe||{},this._disableViewStateAnimation&&(this._viewState={toState:pe.toState})}_toggleOnInteraction(){this._sort.sort(this),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(pe){!this._isDisabled()&&(pe.keyCode===w.L_||pe.keyCode===w.K5)&&(pe.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const pe=this._viewState.fromState;return(pe?`${pe}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(pe){var $e,Ce;this._sortButton&&(null===($e=this._ariaDescriber)||void 0===$e||$e.removeDescription(this._sortButton,this._sortActionDescription),null===(Ce=this._ariaDescriber)||void 0===Ce||Ce.describe(this._sortButton,pe)),this._sortActionDescription=pe}_handleStateChanges(){this._rerenderSubscription=(0,T.T)(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}}return Se.\u0275fac=function(pe){return new(pe||Se)(e.Y36(L),e.Y36(e.sBO),e.Y36(ce,8),e.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),e.Y36(m.tE),e.Y36(e.SBq),e.Y36(m.$s,8),e.Y36(q,8))},Se.\u0275cmp=e.Xpm({type:Se,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(pe,$e){1&pe&&e.NdJ("click",function(){return $e._handleClick()})("keydown",function(de){return $e._handleKeydown(de)})("mouseenter",function(){return $e._setIndicatorHintVisible(!0)})("mouseleave",function(){return $e._setIndicatorHintVisible(!1)}),2&pe&&(e.uIk("aria-sort",$e._getAriaSortAttribute()),e.ekj("mat-sort-header-disabled",$e._isDisabled()))},inputs:{disabled:"disabled",id:["mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[e.qOj],attrs:R,ngContentSelectors:D,decls:4,vars:7,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(pe,$e){1&pe&&(e.F$t(),e.TgZ(0,"div",0)(1,"div",1),e.Hsn(2),e.qZA(),e.YNc(3,v,6,6,"div",2),e.qZA()),2&pe&&(e.ekj("mat-sort-header-sorted",$e._isSorted())("mat-sort-header-position-before","before"===$e.arrowPosition),e.uIk("tabindex",$e._isDisabled()?null:0)("role",$e._isDisabled()?null:"button"),e.xp6(3),e.Q6J("ngIf",$e._renderArrow()))},dependencies:[S.O5],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}"],encapsulation:2,data:{animation:[H.indicator,H.leftPointer,H.rightPointer,H.arrowOpacity,H.arrowPosition,H.allowChildren]},changeDetection:0}),Se})(),ge=(()=>{class Se{}return Se.\u0275fac=function(pe){return new(pe||Se)},Se.\u0275mod=e.oAB({type:Se}),Se.\u0275inj=e.cJS({providers:[Q],imports:[S.ez,p.BQ]}),Se})()},86257:(Qe,he,u)=>{"use strict";u.d(he,{C0:()=>y,BY:()=>d,VY:()=>r,Vq:()=>k,T5:()=>ct,fd:()=>tt});var e=u(84080),m=u(12687),A=u(40445),w=u(21281),p=u(29521),g=u(94650),T=u(83353),E=u(77579),S=u(39646),R=u(68675),v=u(82722);function D(Ue,at){1&Ue&&g.Hsn(0)}const F=["*"];let z=(()=>{class Ue{constructor(fe){this._elementRef=fe}focus(){this._elementRef.nativeElement.focus()}}return Ue.\u0275fac=function(fe){return new(fe||Ue)(g.Y36(g.SBq))},Ue.\u0275dir=g.lG2({type:Ue,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),Ue})(),$=(()=>{class Ue{constructor(fe){this.template=fe}}return Ue.\u0275fac=function(fe){return new(fe||Ue)(g.Y36(g.Rgc))},Ue.\u0275dir=g.lG2({type:Ue,selectors:[["","cdkStepLabel",""]]}),Ue})(),G=0;const ce=new g.OlP("STEPPER_GLOBAL_OPTIONS");let Te=(()=>{class Ue{constructor(fe,Oe){this._stepper=fe,this.interacted=!1,this.interactedStream=new g.vpe,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=Oe||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType}get editable(){return this._editable}set editable(fe){this._editable=(0,w.Ig)(fe)}get optional(){return this._optional}set optional(fe){this._optional=(0,w.Ig)(fe)}get completed(){return this._completedOverride??this._getDefaultCompleted()}set completed(fe){this._completedOverride=(0,w.Ig)(fe)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return this._customError??this._getDefaultError()}set hasError(fe){this._customError=(0,w.Ig)(fe)}_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()}_markAsInteracted(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this))}_showError(){var fe;return null!==(fe=this._stepperOptions.showError)&&void 0!==fe?fe:null!=this._customError}}return Ue.\u0275fac=function(fe){return new(fe||Ue)(g.Y36((0,g.Gpc)(()=>b)),g.Y36(ce,8))},Ue.\u0275cmp=g.Xpm({type:Ue,selectors:[["cdk-step"]],contentQueries:function(fe,Oe,Ke){if(1&fe&&g.Suo(Ke,$,5),2&fe){let je;g.iGM(je=g.CRH())&&(Oe.stepLabel=je.first)}},viewQuery:function(fe,Oe){if(1&fe&&g.Gf(g.Rgc,7),2&fe){let Ke;g.iGM(Ke=g.CRH())&&(Oe.content=Ke.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],state:"state",editable:"editable",optional:"optional",completed:"completed",hasError:"hasError"},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[g.TTD],ngContentSelectors:F,decls:1,vars:0,template:function(fe,Oe){1&fe&&(g.F$t(),g.YNc(0,D,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),Ue})(),b=(()=>{class Ue{constructor(fe,Oe,Ke){this._dir=fe,this._changeDetectorRef=Oe,this._elementRef=Ke,this._destroyed=new E.x,this.steps=new g.n_E,this._sortedHeaders=new g.n_E,this._linear=!1,this._selectedIndex=0,this.selectionChange=new g.vpe,this._orientation="horizontal",this._groupId=G++}get linear(){return this._linear}set linear(fe){this._linear=(0,w.Ig)(fe)}get selectedIndex(){return this._selectedIndex}set selectedIndex(fe){const Oe=(0,w.su)(fe);var Ke;this.steps&&this._steps?(this._isValidIndex(Oe),null===(Ke=this.selected)||void 0===Ke||Ke._markAsInteracted(),this._selectedIndex!==Oe&&!this._anyControlsInvalidOrPending(Oe)&&(Oe>=this._selectedIndex||this.steps.toArray()[Oe].editable)&&this._updateSelectedItemIndex(Oe)):this._selectedIndex=Oe}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(fe){this.selectedIndex=fe&&this.steps?this.steps.toArray().indexOf(fe):-1}get orientation(){return this._orientation}set orientation(fe){this._orientation=fe,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===fe)}ngAfterContentInit(){this._steps.changes.pipe((0,R.O)(this._steps),(0,v.R)(this._destroyed)).subscribe(fe=>{this.steps.reset(fe.filter(Oe=>Oe._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._stepHeader.changes.pipe((0,R.O)(this._stepHeader),(0,v.R)(this._destroyed)).subscribe(fe=>{this._sortedHeaders.reset(fe.toArray().sort((Oe,Ke)=>Oe._elementRef.nativeElement.compareDocumentPosition(Ke._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new m.Em(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:(0,S.of)()).pipe((0,R.O)(this._layoutDirection()),(0,v.R)(this._destroyed)).subscribe(fe=>this._keyManager.withHorizontalOrientation(fe)),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._sortedHeaders.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(fe=>fe.reset()),this._stateChanged()}_getStepLabelId(fe){return`cdk-step-label-${this._groupId}-${fe}`}_getStepContentId(fe){return`cdk-step-content-${this._groupId}-${fe}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(fe){const Oe=fe-this._selectedIndex;return Oe<0?"rtl"===this._layoutDirection()?"next":"previous":Oe>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(fe,Oe="number"){const Ke=this.steps.toArray()[fe],je=this._isCurrentStep(fe);return Ke._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(Ke,je):this._getGuidelineLogic(Ke,je,Oe)}_getDefaultIndicatorLogic(fe,Oe){return fe._showError()&&fe.hasError&&!Oe?"error":!fe.completed||Oe?"number":fe.editable?"edit":"done"}_getGuidelineLogic(fe,Oe,Ke="number"){return fe._showError()&&fe.hasError&&!Oe?"error":fe.completed&&!Oe?"done":fe.completed&&Oe?Ke:fe.editable&&Oe?"edit":Ke}_isCurrentStep(fe){return this._selectedIndex===fe}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(fe){const Oe=this.steps.toArray();this.selectionChange.emit({selectedIndex:fe,previouslySelectedIndex:this._selectedIndex,selectedStep:Oe[fe],previouslySelectedStep:Oe[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(fe):this._keyManager.updateActiveItem(fe),this._selectedIndex=fe,this._stateChanged()}_onKeydown(fe){const Oe=(0,p.Vb)(fe),Ke=fe.keyCode,je=this._keyManager;null==je.activeItemIndex||Oe||Ke!==p.L_&&Ke!==p.K5?je.onKeydown(fe):(this.selectedIndex=je.activeItemIndex,fe.preventDefault())}_anyControlsInvalidOrPending(fe){return!!(this._linear&&fe>=0)&&this.steps.toArray().slice(0,fe).some(Oe=>{const Ke=Oe.stepControl;return(Ke?Ke.invalid||Ke.pending||!Oe.interacted:!Oe.completed)&&!Oe.optional&&!Oe._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){const fe=this._elementRef.nativeElement,Oe=(0,T.ht)();return fe===Oe||fe.contains(Oe)}_isValidIndex(fe){return fe>-1&&(!this.steps||fe{class Ue{constructor(fe){this._stepper=fe,this.type="button"}}return Ue.\u0275fac=function(fe){return new(fe||Ue)(g.Y36(b))},Ue.\u0275dir=g.lG2({type:Ue,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(fe,Oe){1&fe&&g.NdJ("click",function(){return Oe._stepper.previous()}),2&fe&&g.Ikx("type",Oe.type)},inputs:{type:"type"}}),Ue})(),V=(()=>{class Ue{}return Ue.\u0275fac=function(fe){return new(fe||Ue)},Ue.\u0275mod=g.oAB({type:Ue}),Ue.\u0275inj=g.cJS({imports:[A.vT]}),Ue})();var Q=u(36895),ae=u(4859),xe=u(3238),ge=u(97392),Se=u(50727),Be=u(63900),pe=u(54004),$e=u(71884),Ce=u(37340);function de(Ue,at){if(1&Ue&&g.GkF(0,8),2&Ue){const fe=g.oxw();g.Q6J("ngTemplateOutlet",fe.iconOverrides[fe.state])("ngTemplateOutletContext",fe._getIconContext())}}function re(Ue,at){if(1&Ue&&(g.TgZ(0,"span",13),g._uU(1),g.qZA()),2&Ue){const fe=g.oxw(2);g.xp6(1),g.Oqu(fe._getDefaultTextForState(fe.state))}}function B(Ue,at){if(1&Ue&&(g.TgZ(0,"span",14),g._uU(1),g.qZA()),2&Ue){const fe=g.oxw(2);g.xp6(1),g.Oqu(fe._intl.completedLabel)}}function N(Ue,at){if(1&Ue&&(g.TgZ(0,"span",14),g._uU(1),g.qZA()),2&Ue){const fe=g.oxw(2);g.xp6(1),g.Oqu(fe._intl.editableLabel)}}function Me(Ue,at){if(1&Ue&&(g.TgZ(0,"mat-icon",13),g._uU(1),g.qZA()),2&Ue){const fe=g.oxw(2);g.xp6(1),g.Oqu(fe._getDefaultTextForState(fe.state))}}function Y(Ue,at){if(1&Ue&&(g.ynx(0,9),g.YNc(1,re,2,1,"span",10),g.YNc(2,B,2,1,"span",11),g.YNc(3,N,2,1,"span",11),g.YNc(4,Me,2,1,"mat-icon",12),g.BQk()),2&Ue){const fe=g.oxw();g.Q6J("ngSwitch",fe.state),g.xp6(1),g.Q6J("ngSwitchCase","number"),g.xp6(1),g.Q6J("ngIf","done"===fe.state),g.xp6(1),g.Q6J("ngIf","edit"===fe.state)}}function be(Ue,at){if(1&Ue&&(g.TgZ(0,"div",15),g.GkF(1,16),g.qZA()),2&Ue){const fe=g.oxw();g.xp6(1),g.Q6J("ngTemplateOutlet",fe._templateLabel().template)}}function De(Ue,at){if(1&Ue&&(g.TgZ(0,"div",15),g._uU(1),g.qZA()),2&Ue){const fe=g.oxw();g.xp6(1),g.Oqu(fe.label)}}function We(Ue,at){if(1&Ue&&(g.TgZ(0,"div",17),g._uU(1),g.qZA()),2&Ue){const fe=g.oxw();g.xp6(1),g.Oqu(fe._intl.optionalLabel)}}function Pe(Ue,at){if(1&Ue&&(g.TgZ(0,"div",18),g._uU(1),g.qZA()),2&Ue){const fe=g.oxw();g.xp6(1),g.Oqu(fe.errorMessage)}}function nt(Ue,at){}function Ye(Ue,at){if(1&Ue&&(g.Hsn(0),g.YNc(1,nt,0,0,"ng-template",0)),2&Ue){const fe=g.oxw();g.xp6(1),g.Q6J("cdkPortalOutlet",fe._portal)}}const Tt=["*"];function J(Ue,at){1&Ue&&g._UZ(0,"div",11)}const Xe=function(Ue,at){return{step:Ue,i:at}};function le(Ue,at){if(1&Ue&&(g.ynx(0),g.GkF(1,9),g.YNc(2,J,1,0,"div",10),g.BQk()),2&Ue){const fe=at.$implicit,Oe=at.index,Ke=at.last;g.oxw(2);const je=g.MAs(4);g.xp6(1),g.Q6J("ngTemplateOutlet",je)("ngTemplateOutletContext",g.WLB(3,Xe,fe,Oe)),g.xp6(1),g.Q6J("ngIf",!Ke)}}const ne=function(Ue){return{animationDuration:Ue}},ke=function(Ue,at){return{value:Ue,params:at}};function Ee(Ue,at){if(1&Ue){const fe=g.EpF();g.TgZ(0,"div",12),g.NdJ("@horizontalStepTransition.done",function(Ke){g.CHM(fe);const je=g.oxw(2);return g.KtG(je._animationDone.next(Ke))}),g.GkF(1,13),g.qZA()}if(2&Ue){const fe=at.$implicit,Oe=at.index,Ke=g.oxw(2);g.Q6J("@horizontalStepTransition",g.WLB(7,ke,Ke._getAnimationDirection(Oe),g.VKq(5,ne,Ke._getAnimationDuration())))("id",Ke._getStepContentId(Oe)),g.uIk("aria-labelledby",Ke._getStepLabelId(Oe))("aria-expanded",Ke.selectedIndex===Oe),g.xp6(1),g.Q6J("ngTemplateOutlet",fe.content)}}function ot(Ue,at){if(1&Ue&&(g.TgZ(0,"div",4)(1,"div",5),g.YNc(2,le,3,6,"ng-container",6),g.qZA(),g.TgZ(3,"div",7),g.YNc(4,Ee,2,10,"div",8),g.qZA()()),2&Ue){const fe=g.oxw();g.xp6(2),g.Q6J("ngForOf",fe.steps),g.xp6(2),g.Q6J("ngForOf",fe.steps)}}function it(Ue,at){if(1&Ue){const fe=g.EpF();g.TgZ(0,"div",15),g.GkF(1,9),g.TgZ(2,"div",16)(3,"div",17),g.NdJ("@verticalStepTransition.done",function(Ke){g.CHM(fe);const je=g.oxw(2);return g.KtG(je._animationDone.next(Ke))}),g.TgZ(4,"div",18),g.GkF(5,13),g.qZA()()()()}if(2&Ue){const fe=at.$implicit,Oe=at.index,Ke=at.last,je=g.oxw(2),Le=g.MAs(4);g.xp6(1),g.Q6J("ngTemplateOutlet",Le)("ngTemplateOutletContext",g.WLB(9,Xe,fe,Oe)),g.xp6(1),g.ekj("mat-stepper-vertical-line",!Ke),g.xp6(1),g.Q6J("@verticalStepTransition",g.WLB(14,ke,je._getAnimationDirection(Oe),g.VKq(12,ne,je._getAnimationDuration())))("id",je._getStepContentId(Oe)),g.uIk("aria-labelledby",je._getStepLabelId(Oe))("aria-expanded",je.selectedIndex===Oe),g.xp6(2),g.Q6J("ngTemplateOutlet",fe.content)}}function oe(Ue,at){if(1&Ue&&(g.ynx(0),g.YNc(1,it,6,17,"div",14),g.BQk()),2&Ue){const fe=g.oxw();g.xp6(1),g.Q6J("ngForOf",fe.steps)}}function X(Ue,at){if(1&Ue){const fe=g.EpF();g.TgZ(0,"mat-step-header",19),g.NdJ("click",function(){const je=g.CHM(fe).step;return g.KtG(je.select())})("keydown",function(Ke){g.CHM(fe);const je=g.oxw();return g.KtG(je._onKeydown(Ke))}),g.qZA()}if(2&Ue){const fe=at.step,Oe=at.i,Ke=g.oxw();g.ekj("mat-horizontal-stepper-header","horizontal"===Ke.orientation)("mat-vertical-stepper-header","vertical"===Ke.orientation),g.Q6J("tabIndex",Ke._getFocusIndex()===Oe?0:-1)("id",Ke._getStepLabelId(Oe))("index",Oe)("state",Ke._getIndicatorType(Oe,fe.state))("label",fe.stepLabel||fe.label)("selected",Ke.selectedIndex===Oe)("active",Ke._stepIsNavigable(Oe,fe))("optional",fe.optional)("errorMessage",fe.errorMessage)("iconOverrides",Ke._iconOverrides)("disableRipple",Ke.disableRipple||!Ke._stepIsNavigable(Oe,fe))("color",fe.color||Ke.color),g.uIk("aria-posinset",Oe+1)("aria-setsize",Ke.steps.length)("aria-controls",Ke._getStepContentId(Oe))("aria-selected",Ke.selectedIndex==Oe)("aria-label",fe.ariaLabel||null)("aria-labelledby",!fe.ariaLabel&&fe.ariaLabelledby?fe.ariaLabelledby:null)("aria-disabled",!Ke._stepIsNavigable(Oe,fe)||null)}}let r=(()=>{class Ue extends ${}return Ue.\u0275fac=function(){let at;return function(Oe){return(at||(at=g.n5z(Ue)))(Oe||Ue)}}(),Ue.\u0275dir=g.lG2({type:Ue,selectors:[["","matStepLabel",""]],features:[g.qOj]}),Ue})(),s=(()=>{class Ue{constructor(){this.changes=new E.x,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return Ue.\u0275fac=function(fe){return new(fe||Ue)},Ue.\u0275prov=g.Yz7({token:Ue,factory:Ue.\u0275fac,providedIn:"root"}),Ue})();const c={provide:s,deps:[[new g.FiY,new g.tp0,s]],useFactory:function _(Ue){return Ue||new s}},a=(0,xe.pj)(class extends z{constructor(at){super(at)}},"primary");let i=(()=>{class Ue extends a{constructor(fe,Oe,Ke,je){super(Ke),this._intl=fe,this._focusMonitor=Oe,this._intlSubscription=fe.changes.subscribe(()=>je.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(fe,Oe){fe?this._focusMonitor.focusVia(this._elementRef,fe,Oe):this._elementRef.nativeElement.focus(Oe)}_stringLabel(){return this.label instanceof r?null:this.label}_templateLabel(){return this.label instanceof r?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(fe){return"number"==fe?`${this.index+1}`:"edit"==fe?"create":"error"==fe?"warning":fe}}return Ue.\u0275fac=function(fe){return new(fe||Ue)(g.Y36(s),g.Y36(m.tE),g.Y36(g.SBq),g.Y36(g.sBO))},Ue.\u0275cmp=g.Xpm({type:Ue,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],inputs:{color:"color",state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple"},features:[g.qOj],decls:10,vars:19,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",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"],["aria-hidden","true",4,"ngSwitchCase"],["class","cdk-visually-hidden",4,"ngIf"],["aria-hidden","true",4,"ngSwitchDefault"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[1,"mat-step-text-label"],[3,"ngTemplateOutlet"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"]],template:function(fe,Oe){1&fe&&(g._UZ(0,"div",0),g.TgZ(1,"div")(2,"div",1),g.YNc(3,de,1,2,"ng-container",2),g.YNc(4,Y,5,4,"ng-container",3),g.qZA()(),g.TgZ(5,"div",4),g.YNc(6,be,2,1,"div",5),g.YNc(7,De,2,1,"div",5),g.YNc(8,We,2,1,"div",6),g.YNc(9,Pe,2,1,"div",7),g.qZA()),2&fe&&(g.Q6J("matRippleTrigger",Oe._getHostElement())("matRippleDisabled",Oe.disableRipple),g.xp6(1),g.Gre("mat-step-icon-state-",Oe.state," mat-step-icon"),g.ekj("mat-step-icon-selected",Oe.selected),g.xp6(1),g.Q6J("ngSwitch",!(!Oe.iconOverrides||!Oe.iconOverrides[Oe.state])),g.xp6(1),g.Q6J("ngSwitchCase",!0),g.xp6(2),g.ekj("mat-step-label-active",Oe.active)("mat-step-label-selected",Oe.selected)("mat-step-label-error","error"==Oe.state),g.xp6(1),g.Q6J("ngIf",Oe._templateLabel()),g.xp6(1),g.Q6J("ngIf",Oe._stringLabel()),g.xp6(1),g.Q6J("ngIf",Oe.optional&&"error"!=Oe.state),g.xp6(1),g.Q6J("ngIf","error"==Oe.state))},dependencies:[Q.O5,Q.tP,Q.RF,Q.n9,Q.ED,ge.Hw,xe.wG],styles:['.mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-step-header:focus .mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-step-header{outline:solid 1px}.cdk-high-contrast-active .mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.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{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.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}'],encapsulation:2,changeDetection:0}),Ue})();const t="500ms",n="225ms",o={horizontalStepTransition:(0,Ce.X$)("horizontalStepTransition",[(0,Ce.SB)("previous",(0,Ce.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),(0,Ce.SB)("current",(0,Ce.oB)({transform:"none",visibility:"inherit"})),(0,Ce.SB)("next",(0,Ce.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),(0,Ce.eR)("* => *",(0,Ce.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)"),{params:{animationDuration:t}})]),verticalStepTransition:(0,Ce.X$)("verticalStepTransition",[(0,Ce.SB)("previous",(0,Ce.oB)({height:"0px",visibility:"hidden"})),(0,Ce.SB)("next",(0,Ce.oB)({height:"0px",visibility:"hidden"})),(0,Ce.SB)("current",(0,Ce.oB)({height:"*",visibility:"inherit"})),(0,Ce.eR)("* <=> current",(0,Ce.jt)("{{animationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)"),{params:{animationDuration:n}})])};let l=(()=>{class Ue{constructor(fe){this.templateRef=fe}}return Ue.\u0275fac=function(fe){return new(fe||Ue)(g.Y36(g.Rgc))},Ue.\u0275dir=g.lG2({type:Ue,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),Ue})(),d=(()=>{class Ue{constructor(fe){this._template=fe}}return Ue.\u0275fac=function(fe){return new(fe||Ue)(g.Y36(g.Rgc))},Ue.\u0275dir=g.lG2({type:Ue,selectors:[["ng-template","matStepContent",""]]}),Ue})(),y=(()=>{class Ue extends Te{constructor(fe,Oe,Ke,je){super(fe,je),this._errorStateMatcher=Oe,this._viewContainerRef=Ke,this._isSelected=Se.w0.EMPTY}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe((0,Be.w)(()=>this._stepper.selectionChange.pipe((0,pe.U)(fe=>fe.selectedStep===this),(0,R.O)(this._stepper.selected===this)))).subscribe(fe=>{fe&&this._lazyContent&&!this._portal&&(this._portal=new e.UE(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(fe,Oe){return this._errorStateMatcher.isErrorState(fe,Oe)||!!(fe&&fe.invalid&&this.interacted)}}return Ue.\u0275fac=function(fe){return new(fe||Ue)(g.Y36((0,g.Gpc)(()=>k)),g.Y36(xe.rD,4),g.Y36(g.s_b),g.Y36(ce,8))},Ue.\u0275cmp=g.Xpm({type:Ue,selectors:[["mat-step"]],contentQueries:function(fe,Oe,Ke){if(1&fe&&(g.Suo(Ke,r,5),g.Suo(Ke,d,5)),2&fe){let je;g.iGM(je=g.CRH())&&(Oe.stepLabel=je.first),g.iGM(je=g.CRH())&&(Oe._lazyContent=je.first)}},inputs:{color:"color"},exportAs:["matStep"],features:[g._Bn([{provide:xe.rD,useExisting:Ue},{provide:Te,useExisting:Ue}]),g.qOj],ngContentSelectors:Tt,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(fe,Oe){1&fe&&(g.F$t(),g.YNc(0,Ye,2,1,"ng-template"))},dependencies:[e.Pl],encapsulation:2,changeDetection:0}),Ue})(),k=(()=>{class Ue extends b{constructor(fe,Oe,Ke){super(fe,Oe,Ke),this.steps=new g.n_E,this.animationDone=new g.vpe,this.labelPosition="end",this.headerPosition="top",this._iconOverrides={},this._animationDone=new E.x,this._animationDuration="";const je=Ke.nativeElement.nodeName.toLowerCase();this.orientation="mat-vertical-stepper"===je?"vertical":"horizontal"}get animationDuration(){return this._animationDuration}set animationDuration(fe){this._animationDuration=/^\d+$/.test(fe)?fe+"ms":fe}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:fe,templateRef:Oe})=>this._iconOverrides[fe]=Oe),this.steps.changes.pipe((0,v.R)(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe((0,$e.x)((fe,Oe)=>fe.fromState===Oe.fromState&&fe.toState===Oe.toState),(0,v.R)(this._destroyed)).subscribe(fe=>{"current"===fe.toState&&this.animationDone.emit()})}_stepIsNavigable(fe,Oe){return Oe.completed||this.selectedIndex===fe||!this.linear}_getAnimationDuration(){return this.animationDuration?this.animationDuration:"horizontal"===this.orientation?t:n}}return Ue.\u0275fac=function(fe){return new(fe||Ue)(g.Y36(A.Is,8),g.Y36(g.sBO),g.Y36(g.SBq))},Ue.\u0275cmp=g.Xpm({type:Ue,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(fe,Oe,Ke){if(1&fe&&(g.Suo(Ke,y,5),g.Suo(Ke,l,5)),2&fe){let je;g.iGM(je=g.CRH())&&(Oe._steps=je),g.iGM(je=g.CRH())&&(Oe._icons=je)}},viewQuery:function(fe,Oe){if(1&fe&&g.Gf(i,5),2&fe){let Ke;g.iGM(Ke=g.CRH())&&(Oe._stepHeader=Ke)}},hostAttrs:["role","tablist"],hostVars:11,hostBindings:function(fe,Oe){2&fe&&(g.uIk("aria-orientation",Oe.orientation),g.ekj("mat-stepper-horizontal","horizontal"===Oe.orientation)("mat-stepper-vertical","vertical"===Oe.orientation)("mat-stepper-label-position-end","horizontal"===Oe.orientation&&"end"==Oe.labelPosition)("mat-stepper-label-position-bottom","horizontal"===Oe.orientation&&"bottom"==Oe.labelPosition)("mat-stepper-header-position-bottom","bottom"===Oe.headerPosition))},inputs:{selectedIndex:"selectedIndex",disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition",headerPosition:"headerPosition",animationDuration:"animationDuration"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[g._Bn([{provide:b,useExisting:Ue}]),g.qOj],decls:5,vars:3,consts:[[3,"ngSwitch"],["class","mat-horizontal-stepper-wrapper",4,"ngSwitchCase"],[4,"ngSwitchCase"],["stepTemplate",""],[1,"mat-horizontal-stepper-wrapper"],[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"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","mat-stepper-horizontal-line",4,"ngIf"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],["class","mat-step",4,"ngFor","ngForOf"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color","click","keydown"]],template:function(fe,Oe){1&fe&&(g.ynx(0,0),g.YNc(1,ot,5,2,"div",1),g.YNc(2,oe,2,1,"ng-container",2),g.BQk(),g.YNc(3,X,1,23,"ng-template",null,3,g.W1O)),2&fe&&(g.Q6J("ngSwitch",Oe.orientation),g.xp6(1),g.Q6J("ngSwitchCase","horizontal"),g.xp6(1),g.Q6J("ngSwitchCase","vertical"))},dependencies:[Q.sg,Q.O5,Q.tP,Q.RF,Q.n9,i],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-header-position-bottom .mat-horizontal-stepper-header-container{order:1}.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-wrapper{display:flex;flex-direction:column}.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}.cdk-high-contrast-active .mat-horizontal-content-container{outline:solid 1px}.mat-stepper-header-position-bottom .mat-horizontal-content-container{padding:24px 24px 0 24px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}.cdk-high-contrast-active .mat-vertical-content-container{outline:solid 1px}[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}'],encapsulation:2,data:{animation:[o.horizontalStepTransition,o.verticalStepTransition]},changeDetection:0}),Ue})(),tt=(()=>{class Ue extends L{}return Ue.\u0275fac=function(){let at;return function(Oe){return(at||(at=g.n5z(Ue)))(Oe||Ue)}}(),Ue.\u0275dir=g.lG2({type:Ue,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(fe,Oe){2&fe&&g.Ikx("type",Oe.type)},inputs:{type:"type"},features:[g.qOj]}),Ue})(),ct=(()=>{class Ue{}return Ue.\u0275fac=function(fe){return new(fe||Ue)},Ue.\u0275mod=g.oAB({type:Ue}),Ue.\u0275inj=g.cJS({providers:[c,xe.rD],imports:[xe.BQ,Q.ez,e.eL,ae.ot,V,ge.Ps,xe.si,xe.BQ]}),Ue})()},30671:(Qe,he,u)=>{"use strict";u.d(he,{ev:()=>Mt,Dz:()=>st,w1:()=>me,ge:()=>qe,fO:()=>ze,XQ:()=>hn,as:()=>Qt,Gk:()=>Ht,nj:()=>an,BZ:()=>Ae,by:()=>Hn,p0:()=>Cn});var e=u(94650),m=u(40445),A=u(21281),w=u(95017),p=u(83353),g=u(67376),T=u(36895),E=u(77579),S=u(32076),R=u(61135),v=u(45191),D=u(39646),F=u(82722),z=u(95698);const $=[[["caption"]],[["colgroup"],["col"]]],G=["caption","colgroup, col"];function ce(Ct){return class extends Ct{constructor(...Ot){super(...Ot),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(Ot){const pt=this._sticky;this._sticky=(0,A.Ig)(Ot),this._hasStickyChanged=pt!==this._sticky}hasStickyChanged(){const Ot=this._hasStickyChanged;return this._hasStickyChanged=!1,Ot}resetStickyChanged(){this._hasStickyChanged=!1}}}const Te=new e.OlP("CDK_TABLE");let H=(()=>{class Ct{constructor(pt){this.template=pt}}return Ct.\u0275fac=function(pt){return new(pt||Ct)(e.Y36(e.Rgc))},Ct.\u0275dir=e.lG2({type:Ct,selectors:[["","cdkCellDef",""]]}),Ct})(),L=(()=>{class Ct{constructor(pt){this.template=pt}}return Ct.\u0275fac=function(pt){return new(pt||Ct)(e.Y36(e.Rgc))},Ct.\u0275dir=e.lG2({type:Ct,selectors:[["","cdkHeaderCellDef",""]]}),Ct})(),V=(()=>{class Ct{constructor(pt){this.template=pt}}return Ct.\u0275fac=function(pt){return new(pt||Ct)(e.Y36(e.Rgc))},Ct.\u0275dir=e.lG2({type:Ct,selectors:[["","cdkFooterCellDef",""]]}),Ct})();class Q{}const ae=ce(Q);let xe=(()=>{class Ct extends ae{constructor(pt){super(),this._table=pt,this._stickyEnd=!1}get name(){return this._name}set name(pt){this._setNameInput(pt)}get stickyEnd(){return this._stickyEnd}set stickyEnd(pt){const lt=this._stickyEnd;this._stickyEnd=(0,A.Ig)(pt),this._hasStickyChanged=lt!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(pt){pt&&(this._name=pt,this.cssClassFriendlyName=pt.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return Ct.\u0275fac=function(pt){return new(pt||Ct)(e.Y36(Te,8))},Ct.\u0275dir=e.lG2({type:Ct,selectors:[["","cdkColumnDef",""]],contentQueries:function(pt,lt,wt){if(1&pt&&(e.Suo(wt,H,5),e.Suo(wt,L,5),e.Suo(wt,V,5)),2&pt){let W;e.iGM(W=e.CRH())&&(lt.cell=W.first),e.iGM(W=e.CRH())&&(lt.headerCell=W.first),e.iGM(W=e.CRH())&&(lt.footerCell=W.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[e._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:Ct}]),e.qOj]}),Ct})();class ge{constructor(Ot,pt){pt.nativeElement.classList.add(...Ot._columnCssClassName)}}let Se=(()=>{class Ct extends ge{constructor(pt,lt){super(pt,lt)}}return Ct.\u0275fac=function(pt){return new(pt||Ct)(e.Y36(xe),e.Y36(e.SBq))},Ct.\u0275dir=e.lG2({type:Ct,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[e.qOj]}),Ct})(),pe=(()=>{class Ct extends ge{constructor(pt,lt){var wt;if(super(pt,lt),1===(null===(wt=pt._table)||void 0===wt?void 0:wt._elementRef.nativeElement.nodeType)){const W=pt._table._elementRef.nativeElement.getAttribute("role");lt.nativeElement.setAttribute("role","grid"===W||"treegrid"===W?"gridcell":"cell")}}}return Ct.\u0275fac=function(pt){return new(pt||Ct)(e.Y36(xe),e.Y36(e.SBq))},Ct.\u0275dir=e.lG2({type:Ct,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[e.qOj]}),Ct})();class $e{constructor(){this.tasks=[],this.endTasks=[]}}const Ce=new e.OlP("_COALESCED_STYLE_SCHEDULER");let de=(()=>{class Ct{constructor(pt){this._ngZone=pt,this._currentSchedule=null,this._destroyed=new E.x}schedule(pt){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(pt)}scheduleEnd(pt){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(pt)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new $e,this._getScheduleObservable().pipe((0,F.R)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const pt=this._currentSchedule;this._currentSchedule=new $e;for(const lt of pt.tasks)lt();for(const lt of pt.endTasks)lt()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,S.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,z.q)(1))}}return Ct.\u0275fac=function(pt){return new(pt||Ct)(e.LFG(e.R0b))},Ct.\u0275prov=e.Yz7({token:Ct,factory:Ct.\u0275fac}),Ct})(),B=(()=>{class Ct{constructor(pt,lt){this.template=pt,this._differs=lt}ngOnChanges(pt){if(!this._columnsDiffer){const lt=pt.columns&&pt.columns.currentValue||[];this._columnsDiffer=this._differs.find(lt).create(),this._columnsDiffer.diff(lt)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(pt){return this instanceof Y?pt.headerCell.template:this instanceof We?pt.footerCell.template:pt.cell.template}}return Ct.\u0275fac=function(pt){return new(pt||Ct)(e.Y36(e.Rgc),e.Y36(e.ZZ4))},Ct.\u0275dir=e.lG2({type:Ct,features:[e.TTD]}),Ct})();class N extends B{}const Me=ce(N);let Y=(()=>{class Ct extends Me{constructor(pt,lt,wt){super(pt,lt),this._table=wt}ngOnChanges(pt){super.ngOnChanges(pt)}}return Ct.\u0275fac=function(pt){return new(pt||Ct)(e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(Te,8))},Ct.\u0275dir=e.lG2({type:Ct,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[e.qOj,e.TTD]}),Ct})();class be extends B{}const De=ce(be);let We=(()=>{class Ct extends De{constructor(pt,lt,wt){super(pt,lt),this._table=wt}ngOnChanges(pt){super.ngOnChanges(pt)}}return Ct.\u0275fac=function(pt){return new(pt||Ct)(e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(Te,8))},Ct.\u0275dir=e.lG2({type:Ct,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[e.qOj,e.TTD]}),Ct})(),Pe=(()=>{class Ct extends B{constructor(pt,lt,wt){super(pt,lt),this._table=wt}}return Ct.\u0275fac=function(pt){return new(pt||Ct)(e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(Te,8))},Ct.\u0275dir=e.lG2({type:Ct,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[e.qOj]}),Ct})(),nt=(()=>{class Ct{constructor(pt){this._viewContainer=pt,Ct.mostRecentCellOutlet=this}ngOnDestroy(){Ct.mostRecentCellOutlet===this&&(Ct.mostRecentCellOutlet=null)}}return Ct.mostRecentCellOutlet=null,Ct.\u0275fac=function(pt){return new(pt||Ct)(e.Y36(e.s_b))},Ct.\u0275dir=e.lG2({type:Ct,selectors:[["","cdkCellOutlet",""]]}),Ct})(),Ye=(()=>{class Ct{}return Ct.\u0275fac=function(pt){return new(pt||Ct)},Ct.\u0275cmp=e.Xpm({type:Ct,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(pt,lt){1&pt&&e.GkF(0,0)},dependencies:[nt],encapsulation:2}),Ct})(),J=(()=>{class Ct{}return Ct.\u0275fac=function(pt){return new(pt||Ct)},Ct.\u0275cmp=e.Xpm({type:Ct,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(pt,lt){1&pt&&e.GkF(0,0)},dependencies:[nt],encapsulation:2}),Ct})(),Xe=(()=>{class Ct{constructor(pt){this.templateRef=pt,this._contentClassName="cdk-no-data-row"}}return Ct.\u0275fac=function(pt){return new(pt||Ct)(e.Y36(e.Rgc))},Ct.\u0275dir=e.lG2({type:Ct,selectors:[["ng-template","cdkNoDataRow",""]]}),Ct})();const le=["top","bottom","left","right"];class ne{constructor(Ot,pt,lt,wt,W=!0,Ze=!0,vt){this._isNativeHtmlTable=Ot,this._stickCellCss=pt,this.direction=lt,this._coalescedStyleScheduler=wt,this._isBrowser=W,this._needsPositionStickyOnElement=Ze,this._positionListener=vt,this._cachedCellWidths=[],this._borderCellCss={top:`${pt}-border-elem-top`,bottom:`${pt}-border-elem-bottom`,left:`${pt}-border-elem-left`,right:`${pt}-border-elem-right`}}clearStickyPositioning(Ot,pt){const lt=[];for(const wt of Ot)if(wt.nodeType===wt.ELEMENT_NODE){lt.push(wt);for(let W=0;W{for(const wt of lt)this._removeStickyStyle(wt,pt)})}updateStickyColumns(Ot,pt,lt,wt=!0){if(!Ot.length||!this._isBrowser||!pt.some(Ln=>Ln)&&!lt.some(Ln=>Ln))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const W=Ot[0],Ze=W.children.length,vt=this._getCellWidths(W,wt),Pt=this._getStickyStartColumnPositions(vt,pt),en=this._getStickyEndColumnPositions(vt,lt),Tn=pt.lastIndexOf(!0),Gn=lt.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const Ln="rtl"===this.direction,qn=Ln?"right":"left",fi=Ln?"left":"right";for(const ci of Ot)for(let Qn=0;Qnpt[Qn]?ci:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===Gn?[]:vt.slice(Gn).map((ci,Qn)=>lt[Qn+Gn]?ci:null).reverse()}))})}stickRows(Ot,pt,lt){if(!this._isBrowser)return;const wt="bottom"===lt?Ot.slice().reverse():Ot,W="bottom"===lt?pt.slice().reverse():pt,Ze=[],vt=[],Pt=[];for(let Tn=0,Gn=0;Tn{for(let Ln=0;Ln{pt.some(wt=>!wt)?this._removeStickyStyle(lt,["bottom"]):this._addStickyStyle(lt,"bottom",0,!1)})}_removeStickyStyle(Ot,pt){for(const wt of pt)Ot.style[wt]="",Ot.classList.remove(this._borderCellCss[wt]);le.some(wt=>-1===pt.indexOf(wt)&&Ot.style[wt])?Ot.style.zIndex=this._getCalculatedZIndex(Ot):(Ot.style.zIndex="",this._needsPositionStickyOnElement&&(Ot.style.position=""),Ot.classList.remove(this._stickCellCss))}_addStickyStyle(Ot,pt,lt,wt){Ot.classList.add(this._stickCellCss),wt&&Ot.classList.add(this._borderCellCss[pt]),Ot.style[pt]=`${lt}px`,Ot.style.zIndex=this._getCalculatedZIndex(Ot),this._needsPositionStickyOnElement&&(Ot.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(Ot){const pt={top:100,bottom:10,left:1,right:1};let lt=0;for(const wt of le)Ot.style[wt]&&(lt+=pt[wt]);return lt?`${lt}`:""}_getCellWidths(Ot,pt=!0){if(!pt&&this._cachedCellWidths.length)return this._cachedCellWidths;const lt=[],wt=Ot.children;for(let W=0;W0;W--)pt[W]&&(lt[W]=wt,wt+=Ot[W]);return lt}}const _=new e.OlP("CDK_SPL");let a=(()=>{class Ct{constructor(pt,lt){this.viewContainer=pt,this.elementRef=lt}}return Ct.\u0275fac=function(pt){return new(pt||Ct)(e.Y36(e.s_b),e.Y36(e.SBq))},Ct.\u0275dir=e.lG2({type:Ct,selectors:[["","rowOutlet",""]]}),Ct})(),i=(()=>{class Ct{constructor(pt,lt){this.viewContainer=pt,this.elementRef=lt}}return Ct.\u0275fac=function(pt){return new(pt||Ct)(e.Y36(e.s_b),e.Y36(e.SBq))},Ct.\u0275dir=e.lG2({type:Ct,selectors:[["","headerRowOutlet",""]]}),Ct})(),t=(()=>{class Ct{constructor(pt,lt){this.viewContainer=pt,this.elementRef=lt}}return Ct.\u0275fac=function(pt){return new(pt||Ct)(e.Y36(e.s_b),e.Y36(e.SBq))},Ct.\u0275dir=e.lG2({type:Ct,selectors:[["","footerRowOutlet",""]]}),Ct})(),n=(()=>{class Ct{constructor(pt,lt){this.viewContainer=pt,this.elementRef=lt}}return Ct.\u0275fac=function(pt){return new(pt||Ct)(e.Y36(e.s_b),e.Y36(e.SBq))},Ct.\u0275dir=e.lG2({type:Ct,selectors:[["","noDataRowOutlet",""]]}),Ct})(),d=(()=>{class Ct{constructor(pt,lt,wt,W,Ze,vt,Pt,en,Tn,Gn,Ln,qn){this._differs=pt,this._changeDetectorRef=lt,this._elementRef=wt,this._dir=Ze,this._platform=Pt,this._viewRepeater=en,this._coalescedStyleScheduler=Tn,this._viewportRuler=Gn,this._stickyPositioningListener=Ln,this._ngZone=qn,this._onDestroy=new E.x,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.contentChanged=new e.vpe,this.viewChange=new R.X({start:0,end:Number.MAX_VALUE}),W||this._elementRef.nativeElement.setAttribute("role","table"),this._document=vt,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(pt){this._trackByFn=pt}get dataSource(){return this._dataSource}set dataSource(pt){this._dataSource!==pt&&this._switchDataSource(pt)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(pt){this._multiTemplateDataRows=(0,A.Ig)(pt),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(pt){this._fixedLayout=(0,A.Ig)(pt),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((pt,lt)=>this.trackBy?this.trackBy(lt.dataIndex,lt.data):lt),this._viewportRuler.change().pipe((0,F.R)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const lt=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||lt,this._forceRecalculateCellWidths=lt,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,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(pt=>{pt.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),(0,w.Z9)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const pt=this._dataDiffer.diff(this._renderRows);if(!pt)return this._updateNoDataRow(),void this.contentChanged.next();const lt=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(pt,lt,(wt,W,Ze)=>this._getEmbeddedViewArgs(wt.item,Ze),wt=>wt.item.data,wt=>{1===wt.operation&&wt.context&&this._renderCellTemplateForItem(wt.record.item.rowDef,wt.context)}),this._updateRowIndexContext(),pt.forEachIdentityChange(wt=>{lt.get(wt.currentIndex).context.$implicit=wt.item.data}),this._updateNoDataRow(),this._ngZone&&e.R0b.isInAngularZone()?this._ngZone.onStable.pipe((0,z.q)(1),(0,F.R)(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(pt){this._customColumnDefs.add(pt)}removeColumnDef(pt){this._customColumnDefs.delete(pt)}addRowDef(pt){this._customRowDefs.add(pt)}removeRowDef(pt){this._customRowDefs.delete(pt)}addHeaderRowDef(pt){this._customHeaderRowDefs.add(pt),this._headerRowDefChanged=!0}removeHeaderRowDef(pt){this._customHeaderRowDefs.delete(pt),this._headerRowDefChanged=!0}addFooterRowDef(pt){this._customFooterRowDefs.add(pt),this._footerRowDefChanged=!0}removeFooterRowDef(pt){this._customFooterRowDefs.delete(pt),this._footerRowDefChanged=!0}setNoDataRow(pt){this._customNoDataRow=pt}updateStickyHeaderRowStyles(){const pt=this._getRenderedRows(this._headerRowOutlet),wt=this._elementRef.nativeElement.querySelector("thead");wt&&(wt.style.display=pt.length?"":"none");const W=this._headerRowDefs.map(Ze=>Ze.sticky);this._stickyStyler.clearStickyPositioning(pt,["top"]),this._stickyStyler.stickRows(pt,W,"top"),this._headerRowDefs.forEach(Ze=>Ze.resetStickyChanged())}updateStickyFooterRowStyles(){const pt=this._getRenderedRows(this._footerRowOutlet),wt=this._elementRef.nativeElement.querySelector("tfoot");wt&&(wt.style.display=pt.length?"":"none");const W=this._footerRowDefs.map(Ze=>Ze.sticky);this._stickyStyler.clearStickyPositioning(pt,["bottom"]),this._stickyStyler.stickRows(pt,W,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,W),this._footerRowDefs.forEach(Ze=>Ze.resetStickyChanged())}updateStickyColumnStyles(){const pt=this._getRenderedRows(this._headerRowOutlet),lt=this._getRenderedRows(this._rowOutlet),wt=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...pt,...lt,...wt],["left","right"]),this._stickyColumnStylesNeedReset=!1),pt.forEach((W,Ze)=>{this._addStickyColumnStyles([W],this._headerRowDefs[Ze])}),this._rowDefs.forEach(W=>{const Ze=[];for(let vt=0;vt{this._addStickyColumnStyles([W],this._footerRowDefs[Ze])}),Array.from(this._columnDefsByName.values()).forEach(W=>W.resetStickyChanged())}_getAllRenderRows(){const pt=[],lt=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let wt=0;wt{const vt=wt&&wt.has(Ze)?wt.get(Ze):[];if(vt.length){const Pt=vt.shift();return Pt.dataIndex=lt,Pt}return{data:pt,rowDef:Ze,dataIndex:lt}})}_cacheColumnDefs(){this._columnDefsByName.clear(),y(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(lt=>{this._columnDefsByName.has(lt.name),this._columnDefsByName.set(lt.name,lt)})}_cacheRowDefs(){this._headerRowDefs=y(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=y(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=y(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const pt=this._rowDefs.filter(lt=>!lt.when);this._defaultRowDef=pt[0]}_renderUpdatedColumns(){const pt=(Ze,vt)=>Ze||!!vt.getColumnsDiff(),lt=this._rowDefs.reduce(pt,!1);lt&&this._forceRenderDataRows();const wt=this._headerRowDefs.reduce(pt,!1);wt&&this._forceRenderHeaderRows();const W=this._footerRowDefs.reduce(pt,!1);return W&&this._forceRenderFooterRows(),lt||wt||W}_switchDataSource(pt){this._data=[],(0,w.Z9)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),pt||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=pt}_observeRenderChanges(){if(!this.dataSource)return;let pt;(0,w.Z9)(this.dataSource)?pt=this.dataSource.connect(this):(0,v.b)(this.dataSource)?pt=this.dataSource:Array.isArray(this.dataSource)&&(pt=(0,D.of)(this.dataSource)),this._renderChangeSubscription=pt.pipe((0,F.R)(this._onDestroy)).subscribe(lt=>{this._data=lt||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((pt,lt)=>this._renderRow(this._headerRowOutlet,pt,lt)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((pt,lt)=>this._renderRow(this._footerRowOutlet,pt,lt)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(pt,lt){const wt=Array.from(lt.columns||[]).map(vt=>this._columnDefsByName.get(vt)),W=wt.map(vt=>vt.sticky),Ze=wt.map(vt=>vt.stickyEnd);this._stickyStyler.updateStickyColumns(pt,W,Ze,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(pt){const lt=[];for(let wt=0;wt!W.when||W.when(lt,pt));else{let W=this._rowDefs.find(Ze=>Ze.when&&Ze.when(lt,pt))||this._defaultRowDef;W&&wt.push(W)}return wt}_getEmbeddedViewArgs(pt,lt){return{templateRef:pt.rowDef.template,context:{$implicit:pt.data},index:lt}}_renderRow(pt,lt,wt,W={}){const Ze=pt.viewContainer.createEmbeddedView(lt.template,W,wt);return this._renderCellTemplateForItem(lt,W),Ze}_renderCellTemplateForItem(pt,lt){for(let wt of this._getCellTemplates(pt))nt.mostRecentCellOutlet&&nt.mostRecentCellOutlet._viewContainer.createEmbeddedView(wt,lt);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const pt=this._rowOutlet.viewContainer;for(let lt=0,wt=pt.length;lt{const wt=this._columnDefsByName.get(lt);return pt.extractCellTemplate(wt)}):[]}_applyNativeTableSections(){const pt=this._document.createDocumentFragment(),lt=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const wt of lt){const W=this._document.createElement(wt.tag);W.setAttribute("role","rowgroup");for(const Ze of wt.outlets)W.appendChild(Ze.elementRef.nativeElement);pt.appendChild(W)}this._elementRef.nativeElement.appendChild(pt)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const pt=(lt,wt)=>lt||wt.hasStickyChanged();this._headerRowDefs.reduce(pt,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(pt,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(pt,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new ne(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:(0,D.of)()).pipe((0,F.R)(this._onDestroy)).subscribe(lt=>{this._stickyStyler.direction=lt,this.updateStickyColumnStyles()})}_getOwnDefs(pt){return pt.filter(lt=>!lt._table||lt._table===this)}_updateNoDataRow(){const pt=this._customNoDataRow||this._noDataRow;if(!pt)return;const lt=0===this._rowOutlet.viewContainer.length;if(lt===this._isShowingNoDataRow)return;const wt=this._noDataRowOutlet.viewContainer;if(lt){const W=wt.createEmbeddedView(pt.templateRef),Ze=W.rootNodes[0];1===W.rootNodes.length&&Ze?.nodeType===this._document.ELEMENT_NODE&&(Ze.setAttribute("role","row"),Ze.classList.add(pt._contentClassName))}else wt.clear();this._isShowingNoDataRow=lt}}return Ct.\u0275fac=function(pt){return new(pt||Ct)(e.Y36(e.ZZ4),e.Y36(e.sBO),e.Y36(e.SBq),e.$8M("role"),e.Y36(m.Is,8),e.Y36(T.K0),e.Y36(p.t4),e.Y36(w.k),e.Y36(Ce),e.Y36(g.rL),e.Y36(_,12),e.Y36(e.R0b,8))},Ct.\u0275cmp=e.Xpm({type:Ct,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(pt,lt,wt){if(1&pt&&(e.Suo(wt,Xe,5),e.Suo(wt,xe,5),e.Suo(wt,Pe,5),e.Suo(wt,Y,5),e.Suo(wt,We,5)),2&pt){let W;e.iGM(W=e.CRH())&&(lt._noDataRow=W.first),e.iGM(W=e.CRH())&&(lt._contentColumnDefs=W),e.iGM(W=e.CRH())&&(lt._contentRowDefs=W),e.iGM(W=e.CRH())&&(lt._contentHeaderRowDefs=W),e.iGM(W=e.CRH())&&(lt._contentFooterRowDefs=W)}},viewQuery:function(pt,lt){if(1&pt&&(e.Gf(a,7),e.Gf(i,7),e.Gf(t,7),e.Gf(n,7)),2&pt){let wt;e.iGM(wt=e.CRH())&&(lt._rowOutlet=wt.first),e.iGM(wt=e.CRH())&&(lt._headerRowOutlet=wt.first),e.iGM(wt=e.CRH())&&(lt._footerRowOutlet=wt.first),e.iGM(wt=e.CRH())&&(lt._noDataRowOutlet=wt.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(pt,lt){2&pt&&e.ekj("cdk-table-fixed-layout",lt.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[e._Bn([{provide:Te,useExisting:Ct},{provide:w.k,useClass:w.yy},{provide:Ce,useClass:de},{provide:_,useValue:null}])],ngContentSelectors:G,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(pt,lt){1&pt&&(e.F$t($),e.Hsn(0),e.Hsn(1,1),e.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[a,i,t,n],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),Ct})();function y(Ct,Ot){return Ct.concat(Array.from(Ot))}let tt=(()=>{class Ct{}return Ct.\u0275fac=function(pt){return new(pt||Ct)},Ct.\u0275mod=e.oAB({type:Ct}),Ct.\u0275inj=e.cJS({imports:[g.Cl]}),Ct})();var ct=u(3238),Ue=u(56451),at=u(39841),fe=u(54004);const Oe=[[["caption"]],[["colgroup"],["col"]]],Ke=["caption","colgroup, col"];let Ae=(()=>{class Ct extends d{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return Ct.\u0275fac=function(){let Ot;return function(lt){return(Ot||(Ot=e.n5z(Ct)))(lt||Ct)}}(),Ct.\u0275cmp=e.Xpm({type:Ct,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(pt,lt){2&pt&&e.ekj("mat-table-fixed-layout",lt.fixedLayout)},exportAs:["matTable"],features:[e._Bn([{provide:w.k,useClass:w.yy},{provide:d,useExisting:Ct},{provide:Te,useExisting:Ct},{provide:Ce,useClass:de},{provide:_,useValue:null}]),e.qOj],ngContentSelectors:Ke,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(pt,lt){1&pt&&(e.F$t(Oe),e.Hsn(0),e.Hsn(1,1),e.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[a,i,t,n],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-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:sticky !important}.mat-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),Ct})(),st=(()=>{class Ct extends H{}return Ct.\u0275fac=function(){let Ot;return function(lt){return(Ot||(Ot=e.n5z(Ct)))(lt||Ct)}}(),Ct.\u0275dir=e.lG2({type:Ct,selectors:[["","matCellDef",""]],features:[e._Bn([{provide:H,useExisting:Ct}]),e.qOj]}),Ct})(),ze=(()=>{class Ct extends L{}return Ct.\u0275fac=function(){let Ot;return function(lt){return(Ot||(Ot=e.n5z(Ct)))(lt||Ct)}}(),Ct.\u0275dir=e.lG2({type:Ct,selectors:[["","matHeaderCellDef",""]],features:[e._Bn([{provide:L,useExisting:Ct}]),e.qOj]}),Ct})(),me=(()=>{class Ct extends xe{get name(){return this._name}set name(pt){this._setNameInput(pt)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return Ct.\u0275fac=function(){let Ot;return function(lt){return(Ot||(Ot=e.n5z(Ct)))(lt||Ct)}}(),Ct.\u0275dir=e.lG2({type:Ct,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[e._Bn([{provide:xe,useExisting:Ct},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:Ct}]),e.qOj]}),Ct})(),qe=(()=>{class Ct extends Se{}return Ct.\u0275fac=function(){let Ot;return function(lt){return(Ot||(Ot=e.n5z(Ct)))(lt||Ct)}}(),Ct.\u0275dir=e.lG2({type:Ct,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[e.qOj]}),Ct})(),Mt=(()=>{class Ct extends pe{}return Ct.\u0275fac=function(){let Ot;return function(lt){return(Ot||(Ot=e.n5z(Ct)))(lt||Ct)}}(),Ct.\u0275dir=e.lG2({type:Ct,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[e.qOj]}),Ct})(),Qt=(()=>{class Ct extends Y{}return Ct.\u0275fac=function(){let Ot;return function(lt){return(Ot||(Ot=e.n5z(Ct)))(lt||Ct)}}(),Ct.\u0275dir=e.lG2({type:Ct,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[e._Bn([{provide:Y,useExisting:Ct}]),e.qOj]}),Ct})(),an=(()=>{class Ct extends Pe{}return Ct.\u0275fac=function(){let Ot;return function(lt){return(Ot||(Ot=e.n5z(Ct)))(lt||Ct)}}(),Ct.\u0275dir=e.lG2({type:Ct,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[e._Bn([{provide:Pe,useExisting:Ct}]),e.qOj]}),Ct})(),hn=(()=>{class Ct extends Ye{}return Ct.\u0275fac=function(){let Ot;return function(lt){return(Ot||(Ot=e.n5z(Ct)))(lt||Ct)}}(),Ct.\u0275cmp=e.Xpm({type:Ct,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[e._Bn([{provide:Ye,useExisting:Ct}]),e.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(pt,lt){1&pt&&e.GkF(0,0)},dependencies:[nt],encapsulation:2}),Ct})(),Ht=(()=>{class Ct extends J{}return Ct.\u0275fac=function(){let Ot;return function(lt){return(Ot||(Ot=e.n5z(Ct)))(lt||Ct)}}(),Ct.\u0275cmp=e.Xpm({type:Ct,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[e._Bn([{provide:J,useExisting:Ct}]),e.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(pt,lt){1&pt&&e.GkF(0,0)},dependencies:[nt],encapsulation:2}),Ct})(),Cn=(()=>{class Ct{}return Ct.\u0275fac=function(pt){return new(pt||Ct)},Ct.\u0275mod=e.oAB({type:Ct}),Ct.\u0275inj=e.cJS({imports:[tt,ct.BQ,ct.BQ]}),Ct})();class pn extends w.o2{constructor(Ot=[]){super(),this._renderData=new R.X([]),this._filter=new R.X(""),this._internalPageChanges=new E.x,this._renderChangesSubscription=null,this.sortingDataAccessor=(pt,lt)=>{const wt=pt[lt];if((0,A.t6)(wt)){const W=Number(wt);return W<9007199254740991?W:wt}return wt},this.sortData=(pt,lt)=>{const wt=lt.active,W=lt.direction;return wt&&""!=W?pt.sort((Ze,vt)=>{let Pt=this.sortingDataAccessor(Ze,wt),en=this.sortingDataAccessor(vt,wt);const Tn=typeof Pt,Gn=typeof en;Tn!==Gn&&("number"===Tn&&(Pt+=""),"number"===Gn&&(en+=""));let Ln=0;return null!=Pt&&null!=en?Pt>en?Ln=1:Pt{const wt=Object.keys(pt).reduce((Ze,vt)=>Ze+pt[vt]+"\u25ec","").toLowerCase(),W=lt.trim().toLowerCase();return-1!=wt.indexOf(W)},this._data=new R.X(Ot),this._updateChangeSubscription()}get data(){return this._data.value}set data(Ot){Ot=Array.isArray(Ot)?Ot:[],this._data.next(Ot),this._renderChangesSubscription||this._filterData(Ot)}get filter(){return this._filter.value}set filter(Ot){this._filter.next(Ot),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(Ot){this._sort=Ot,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(Ot){this._paginator=Ot,this._updateChangeSubscription()}_updateChangeSubscription(){var Ot;const pt=this._sort?(0,Ue.T)(this._sort.sortChange,this._sort.initialized):(0,D.of)(null),lt=this._paginator?(0,Ue.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,D.of)(null),W=(0,at.a)([this._data,this._filter]).pipe((0,fe.U)(([Pt])=>this._filterData(Pt))),Ze=(0,at.a)([W,pt]).pipe((0,fe.U)(([Pt])=>this._orderData(Pt))),vt=(0,at.a)([Ze,lt]).pipe((0,fe.U)(([Pt])=>this._pageData(Pt)));null===(Ot=this._renderChangesSubscription)||void 0===Ot||Ot.unsubscribe(),this._renderChangesSubscription=vt.subscribe(Pt=>this._renderData.next(Pt))}_filterData(Ot){return this.filteredData=null==this.filter||""===this.filter?Ot:Ot.filter(pt=>this.filterPredicate(pt,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(Ot){return this.sort?this.sortData(Ot.slice(),this.sort):Ot}_pageData(Ot){if(!this.paginator)return Ot;const pt=this.paginator.pageIndex*this.paginator.pageSize;return Ot.slice(pt,pt+this.paginator.pageSize)}_updatePaginator(Ot){Promise.resolve().then(()=>{const pt=this.paginator;if(pt&&(pt.length=Ot,pt.pageIndex>0)){const lt=Math.ceil(pt.length/pt.pageSize)-1||0,wt=Math.min(pt.pageIndex,lt);wt!==pt.pageIndex&&(pt.pageIndex=wt,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){var Ot;null===(Ot=this._renderChangesSubscription)||void 0===Ot||Ot.unsubscribe(),this._renderChangesSubscription=null}}class Hn extends pn{}},3848:(Qe,he,u)=>{"use strict";u.d(he,{Nh:()=>st,SP:()=>at,Vc:()=>le,uD:()=>Ee,uX:()=>oe});var e=u(12687),m=u(49643),A=u(84080),w=u(36895),p=u(94650),g=u(3238),T=u(95698),E=u(68675),S=u(71884),R=u(82722),v=u(63900),D=u(35684),F=u(77579),z=u(50727),$=u(54968),G=u(39646),q=u(56451),_e=u(60515),ce=u(69751),Te=u(82805),b=u(40445),H=u(37340),L=u(21281),V=u(67376),Q=u(83353),ae=u(29521);function xe(ze,_t){1&ze&&p.Hsn(0)}const ge=["*"];function Se(ze,_t){}const Be=function(ze){return{animationDuration:ze}},pe=function(ze,_t){return{value:ze,params:_t}},$e=["tabListContainer"],Ce=["tabList"],de=["tabListInner"],re=["nextPaginator"],B=["previousPaginator"],N=["tabBodyWrapper"],Me=["tabHeader"];function Y(ze,_t){}function be(ze,_t){if(1&ze&&p.YNc(0,Y,0,0,"ng-template",10),2&ze){const me=p.oxw().$implicit;p.Q6J("cdkPortalOutlet",me.templateLabel)}}function De(ze,_t){if(1&ze&&p._uU(0),2&ze){const me=p.oxw().$implicit;p.Oqu(me.textLabel)}}function We(ze,_t){if(1&ze){const me=p.EpF();p.TgZ(0,"div",6),p.NdJ("click",function(){const rt=p.CHM(me),Mt=rt.$implicit,Qt=rt.index,Gt=p.oxw(),an=p.MAs(1);return p.KtG(Gt._handleClick(Mt,an,Qt))})("cdkFocusChange",function(rt){const Qt=p.CHM(me).index,Gt=p.oxw();return p.KtG(Gt._tabFocusChanged(rt,Qt))}),p.TgZ(1,"div",7),p.YNc(2,be,1,1,"ng-template",8),p.YNc(3,De,1,1,"ng-template",null,9,p.W1O),p.qZA()()}if(2&ze){const me=_t.$implicit,qe=_t.index,rt=p.MAs(4),Mt=p.oxw();p.ekj("mat-tab-label-active",Mt.selectedIndex===qe),p.Q6J("id",Mt._getTabLabelId(qe))("ngClass",me.labelClass)("disabled",me.disabled)("matRippleDisabled",me.disabled||Mt.disableRipple),p.uIk("tabIndex",Mt._getTabIndex(me,qe))("aria-posinset",qe+1)("aria-setsize",Mt._tabs.length)("aria-controls",Mt._getTabContentId(qe))("aria-selected",Mt.selectedIndex===qe)("aria-label",me.ariaLabel||null)("aria-labelledby",!me.ariaLabel&&me.ariaLabelledby?me.ariaLabelledby:null),p.xp6(2),p.Q6J("ngIf",me.templateLabel)("ngIfElse",rt)}}function Pe(ze,_t){if(1&ze){const me=p.EpF();p.TgZ(0,"mat-tab-body",11),p.NdJ("_onCentered",function(){p.CHM(me);const rt=p.oxw();return p.KtG(rt._removeTabBodyWrapperHeight())})("_onCentering",function(rt){p.CHM(me);const Mt=p.oxw();return p.KtG(Mt._setTabBodyWrapperHeight(rt))}),p.qZA()}if(2&ze){const me=_t.$implicit,qe=_t.index,rt=p.oxw();p.ekj("mat-tab-body-active",rt.selectedIndex===qe),p.Q6J("id",rt._getTabContentId(qe))("ngClass",me.bodyClass)("content",me.content)("position",me.position)("origin",me.origin)("animationDuration",rt.animationDuration)("preserveContent",rt.preserveContent),p.uIk("tabindex",null!=rt.contentTabIndex&&rt.selectedIndex===qe?rt.contentTabIndex:null)("aria-labelledby",rt._getTabLabelId(qe))}}const Ye=new p.OlP("MatInkBarPositioner",{providedIn:"root",factory:function Tt(){return _t=>({left:_t?(_t.offsetLeft||0)+"px":"0",width:_t?(_t.offsetWidth||0)+"px":"0"})}});let J=(()=>{class ze{constructor(me,qe,rt,Mt){this._elementRef=me,this._ngZone=qe,this._inkBarPositioner=rt,this._animationMode=Mt}alignToElement(me){this.show(),this._ngZone.run(()=>{this._ngZone.onStable.pipe((0,T.q)(1)).subscribe(()=>{const qe=this._inkBarPositioner(me),rt=this._elementRef.nativeElement;rt.style.left=qe.left,rt.style.width=qe.width})})}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}}return ze.\u0275fac=function(me){return new(me||ze)(p.Y36(p.SBq),p.Y36(p.R0b),p.Y36(Ye),p.Y36(p.QbO,8))},ze.\u0275dir=p.lG2({type:ze,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(me,qe){2&me&&p.ekj("_mat-animation-noopable","NoopAnimations"===qe._animationMode)}}),ze})();const Xe=new p.OlP("MatTabContent");let le=(()=>{class ze{constructor(me){this.template=me}}return ze.\u0275fac=function(me){return new(me||ze)(p.Y36(p.Rgc))},ze.\u0275dir=p.lG2({type:ze,selectors:[["","matTabContent",""]],features:[p._Bn([{provide:Xe,useExisting:ze}])]}),ze})();const ne=new p.OlP("MatTabLabel"),ke=new p.OlP("MAT_TAB");let Ee=(()=>{class ze extends A.ig{constructor(me,qe,rt){super(me,qe),this._closestTab=rt}}return ze.\u0275fac=function(me){return new(me||ze)(p.Y36(p.Rgc),p.Y36(p.s_b),p.Y36(ke,8))},ze.\u0275dir=p.lG2({type:ze,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[p._Bn([{provide:ne,useExisting:ze}]),p.qOj]}),ze})();const ot=(0,g.Id)(class{}),it=new p.OlP("MAT_TAB_GROUP");let oe=(()=>{class ze extends ot{constructor(me,qe){super(),this._viewContainerRef=me,this._closestTabGroup=qe,this.textLabel="",this._contentPortal=null,this._stateChanges=new F.x,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(me){this._setTemplateLabelInput(me)}get content(){return this._contentPortal}ngOnChanges(me){(me.hasOwnProperty("textLabel")||me.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new A.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(me){me&&me._closestTab===this&&(this._templateLabel=me)}}return ze.\u0275fac=function(me){return new(me||ze)(p.Y36(p.s_b),p.Y36(it,8))},ze.\u0275cmp=p.Xpm({type:ze,selectors:[["mat-tab"]],contentQueries:function(me,qe,rt){if(1&me&&(p.Suo(rt,ne,5),p.Suo(rt,Xe,7,p.Rgc)),2&me){let Mt;p.iGM(Mt=p.CRH())&&(qe.templateLabel=Mt.first),p.iGM(Mt=p.CRH())&&(qe._explicitContent=Mt.first)}},viewQuery:function(me,qe){if(1&me&&p.Gf(p.Rgc,7),2&me){let rt;p.iGM(rt=p.CRH())&&(qe._implicitContent=rt.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],features:[p._Bn([{provide:ke,useExisting:ze}]),p.qOj,p.TTD],ngContentSelectors:ge,decls:1,vars:0,template:function(me,qe){1&me&&(p.F$t(),p.YNc(0,xe,1,0,"ng-template"))},encapsulation:2}),ze})();const X={translateTab:(0,H.X$)("translateTab",[(0,H.SB)("center, void, left-origin-center, right-origin-center",(0,H.oB)({transform:"none"})),(0,H.SB)("left",(0,H.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,H.SB)("right",(0,H.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,H.eR)("* => left, * => right, left => center, right => center",(0,H.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,H.eR)("void => left-origin-center",[(0,H.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),(0,H.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,H.eR)("void => right-origin-center",[(0,H.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),(0,H.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let r=(()=>{class ze extends A.Pl{constructor(me,qe,rt,Mt){super(me,qe,Mt),this._host=rt,this._centeringSub=z.w0.EMPTY,this._leavingSub=z.w0.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,E.O)(this._host._isCenterPosition(this._host._position))).subscribe(me=>{me&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return ze.\u0275fac=function(me){return new(me||ze)(p.Y36(p._Vd),p.Y36(p.s_b),p.Y36((0,p.Gpc)(()=>_)),p.Y36(w.K0))},ze.\u0275dir=p.lG2({type:ze,selectors:[["","matTabBodyHost",""]],features:[p.qOj]}),ze})(),s=(()=>{class ze{constructor(me,qe,rt){this._elementRef=me,this._dir=qe,this._dirChangeSubscription=z.w0.EMPTY,this._translateTabComplete=new F.x,this._onCentering=new p.vpe,this._beforeCentering=new p.vpe,this._afterLeavingCenter=new p.vpe,this._onCentered=new p.vpe(!0),this.animationDuration="500ms",this.preserveContent=!1,qe&&(this._dirChangeSubscription=qe.change.subscribe(Mt=>{this._computePositionAnimationState(Mt),rt.markForCheck()})),this._translateTabComplete.pipe((0,S.x)((Mt,Qt)=>Mt.fromState===Qt.fromState&&Mt.toState===Qt.toState)).subscribe(Mt=>{this._isCenterPosition(Mt.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(Mt.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(me){this._positionIndex=me,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(me){const qe=this._isCenterPosition(me.toState);this._beforeCentering.emit(qe),qe&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(me){return"center"==me||"left-origin-center"==me||"right-origin-center"==me}_computePositionAnimationState(me=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==me?"left":"right":this._positionIndex>0?"ltr"==me?"right":"left":"center"}_computePositionFromOrigin(me){const qe=this._getLayoutDirection();return"ltr"==qe&&me<=0||"rtl"==qe&&me>0?"left-origin-center":"right-origin-center"}}return ze.\u0275fac=function(me){return new(me||ze)(p.Y36(p.SBq),p.Y36(b.Is,8),p.Y36(p.sBO))},ze.\u0275dir=p.lG2({type:ze,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),ze})(),_=(()=>{class ze extends s{constructor(me,qe,rt){super(me,qe,rt)}}return ze.\u0275fac=function(me){return new(me||ze)(p.Y36(p.SBq),p.Y36(b.Is,8),p.Y36(p.sBO))},ze.\u0275cmp=p.Xpm({type:ze,selectors:[["mat-tab-body"]],viewQuery:function(me,qe){if(1&me&&p.Gf(A.Pl,5),2&me){let rt;p.iGM(rt=p.CRH())&&(qe._portalHost=rt.first)}},hostAttrs:[1,"mat-tab-body"],features:[p.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(me,qe){1&me&&(p.TgZ(0,"div",0,1),p.NdJ("@translateTab.start",function(Mt){return qe._onTranslateTabStarted(Mt)})("@translateTab.done",function(Mt){return qe._translateTabComplete.next(Mt)}),p.YNc(2,Se,0,0,"ng-template",2),p.qZA()),2&me&&p.Q6J("@translateTab",p.WLB(3,pe,qe._position,p.VKq(1,Be,qe.animationDuration)))},dependencies:[r],styles:['.mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}.mat-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[X.translateTab]}}),ze})();const c=new p.OlP("MAT_TABS_CONFIG"),a=(0,g.Id)(class{});let i=(()=>{class ze extends a{constructor(me){super(),this.elementRef=me}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return ze.\u0275fac=function(me){return new(me||ze)(p.Y36(p.SBq))},ze.\u0275dir=p.lG2({type:ze,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(me,qe){2&me&&(p.uIk("aria-disabled",!!qe.disabled),p.ekj("mat-tab-disabled",qe.disabled))},inputs:{disabled:"disabled"},features:[p.qOj]}),ze})();const t=(0,Q.i$)({passive:!0});let d=(()=>{class ze{constructor(me,qe,rt,Mt,Qt,Gt,an){this._elementRef=me,this._changeDetectorRef=qe,this._viewportRuler=rt,this._dir=Mt,this._ngZone=Qt,this._platform=Gt,this._animationMode=an,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new F.x,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new F.x,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new p.vpe,this.indexFocused=new p.vpe,Qt.runOutsideAngular(()=>{(0,$.R)(me.nativeElement,"mouseleave").pipe((0,R.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get disablePagination(){return this._disablePagination}set disablePagination(me){this._disablePagination=(0,L.Ig)(me)}get selectedIndex(){return this._selectedIndex}set selectedIndex(me){me=(0,L.su)(me),this._selectedIndex!=me&&(this._selectedIndexChanged=!0,this._selectedIndex=me,this._keyManager&&this._keyManager.updateActiveItem(me))}ngAfterViewInit(){(0,$.R)(this._previousPaginator.nativeElement,"touchstart",t).pipe((0,R.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,$.R)(this._nextPaginator.nativeElement,"touchstart",t).pipe((0,R.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const me=this._dir?this._dir.change:(0,G.of)("ltr"),qe=this._viewportRuler.change(150),rt=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new e.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe((0,T.q)(1)).subscribe(rt),(0,q.T)(me,qe,this._items.changes,this._itemsResized()).pipe((0,R.R)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),rt()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe((0,R.R)(this._destroyed)).subscribe(Mt=>{this.indexFocused.emit(Mt),this._setTabFocus(Mt)})}_itemsResized(){return"function"!=typeof ResizeObserver?_e.E:this._items.changes.pipe((0,E.O)(this._items),(0,v.w)(me=>new ce.y(qe=>this._ngZone.runOutsideAngular(()=>{const rt=new ResizeObserver(()=>{qe.next()});return me.forEach(Mt=>{rt.observe(Mt.elementRef.nativeElement)}),()=>{rt.disconnect()}}))),(0,D.T)(1))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(me){if(!(0,ae.Vb)(me))switch(me.keyCode){case ae.K5:case ae.L_:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(me));break;default:this._keyManager.onKeydown(me)}}_onContentChanges(){const me=this._elementRef.nativeElement.textContent;me!==this._currentTextContent&&(this._currentTextContent=me||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(me){!this._isValidIndex(me)||this.focusIndex===me||!this._keyManager||this._keyManager.setActiveItem(me)}_isValidIndex(me){if(!this._items)return!0;const qe=this._items?this._items.toArray()[me]:null;return!!qe&&!qe.disabled}_setTabFocus(me){if(this._showPaginationControls&&this._scrollToLabel(me),this._items&&this._items.length){this._items.toArray()[me].focus();const qe=this._tabListContainer.nativeElement;qe.scrollLeft="ltr"==this._getLayoutDirection()?0:qe.scrollWidth-qe.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const me=this.scrollDistance,qe="ltr"===this._getLayoutDirection()?-me:me;this._tabList.nativeElement.style.transform=`translateX(${Math.round(qe)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(me){this._scrollTo(me)}_scrollHeader(me){return this._scrollTo(this._scrollDistance+("before"==me?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(me){this._stopInterval(),this._scrollHeader(me)}_scrollToLabel(me){if(this.disablePagination)return;const qe=this._items?this._items.toArray()[me]:null;if(!qe)return;const rt=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:Mt,offsetWidth:Qt}=qe.elementRef.nativeElement;let Gt,an;"ltr"==this._getLayoutDirection()?(Gt=Mt,an=Gt+Qt):(an=this._tabListInner.nativeElement.offsetWidth-Mt,Gt=an-Qt);const hn=this.scrollDistance,Nt=this.scrollDistance+rt;GtNt&&(this.scrollDistance+=an-Nt+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const me=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;me||(this.scrollDistance=0),me!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=me}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const me=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,qe=me?me.elementRef.nativeElement:null;qe?this._inkBar.alignToElement(qe):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(me,qe){qe&&null!=qe.button&&0!==qe.button||(this._stopInterval(),(0,Te.H)(650,100).pipe((0,R.R)((0,q.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:rt,distance:Mt}=this._scrollHeader(me);(0===Mt||Mt>=rt)&&this._stopInterval()}))}_scrollTo(me){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const qe=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(qe,me)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:qe,distance:this._scrollDistance}}}return ze.\u0275fac=function(me){return new(me||ze)(p.Y36(p.SBq),p.Y36(p.sBO),p.Y36(V.rL),p.Y36(b.Is,8),p.Y36(p.R0b),p.Y36(Q.t4),p.Y36(p.QbO,8))},ze.\u0275dir=p.lG2({type:ze,inputs:{disablePagination:"disablePagination"}}),ze})(),y=(()=>{class ze extends d{constructor(me,qe,rt,Mt,Qt,Gt,an){super(me,qe,rt,Mt,Qt,Gt,an),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(me){this._disableRipple=(0,L.Ig)(me)}_itemSelected(me){me.preventDefault()}}return ze.\u0275fac=function(me){return new(me||ze)(p.Y36(p.SBq),p.Y36(p.sBO),p.Y36(V.rL),p.Y36(b.Is,8),p.Y36(p.R0b),p.Y36(Q.t4),p.Y36(p.QbO,8))},ze.\u0275dir=p.lG2({type:ze,inputs:{disableRipple:"disableRipple"},features:[p.qOj]}),ze})(),k=(()=>{class ze extends y{constructor(me,qe,rt,Mt,Qt,Gt,an){super(me,qe,rt,Mt,Qt,Gt,an)}}return ze.\u0275fac=function(me){return new(me||ze)(p.Y36(p.SBq),p.Y36(p.sBO),p.Y36(V.rL),p.Y36(b.Is,8),p.Y36(p.R0b),p.Y36(Q.t4),p.Y36(p.QbO,8))},ze.\u0275cmp=p.Xpm({type:ze,selectors:[["mat-tab-header"]],contentQueries:function(me,qe,rt){if(1&me&&p.Suo(rt,i,4),2&me){let Mt;p.iGM(Mt=p.CRH())&&(qe._items=Mt)}},viewQuery:function(me,qe){if(1&me&&(p.Gf(J,7),p.Gf($e,7),p.Gf(Ce,7),p.Gf(de,7),p.Gf(re,5),p.Gf(B,5)),2&me){let rt;p.iGM(rt=p.CRH())&&(qe._inkBar=rt.first),p.iGM(rt=p.CRH())&&(qe._tabListContainer=rt.first),p.iGM(rt=p.CRH())&&(qe._tabList=rt.first),p.iGM(rt=p.CRH())&&(qe._tabListInner=rt.first),p.iGM(rt=p.CRH())&&(qe._nextPaginator=rt.first),p.iGM(rt=p.CRH())&&(qe._previousPaginator=rt.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(me,qe){2&me&&p.ekj("mat-tab-header-pagination-controls-enabled",qe._showPaginationControls)("mat-tab-header-rtl","rtl"==qe._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[p.qOj],ngContentSelectors:ge,decls:14,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(me,qe){1&me&&(p.F$t(),p.TgZ(0,"button",0,1),p.NdJ("click",function(){return qe._handlePaginatorClick("before")})("mousedown",function(Mt){return qe._handlePaginatorPress("before",Mt)})("touchend",function(){return qe._stopInterval()}),p._UZ(2,"div",2),p.qZA(),p.TgZ(3,"div",3,4),p.NdJ("keydown",function(Mt){return qe._handleKeydown(Mt)}),p.TgZ(5,"div",5,6),p.NdJ("cdkObserveContent",function(){return qe._onContentChanges()}),p.TgZ(7,"div",7,8),p.Hsn(9),p.qZA(),p._UZ(10,"mat-ink-bar"),p.qZA()(),p.TgZ(11,"button",9,10),p.NdJ("mousedown",function(Mt){return qe._handlePaginatorPress("after",Mt)})("click",function(){return qe._handlePaginatorClick("after")})("touchend",function(){return qe._stopInterval()}),p._UZ(13,"div",2),p.qZA()),2&me&&(p.ekj("mat-tab-header-pagination-disabled",qe._disableScrollBefore),p.Q6J("matRippleDisabled",qe._disableScrollBefore||qe.disableRipple)("disabled",qe._disableScrollBefore||null),p.xp6(5),p.ekj("_mat-animation-noopable","NoopAnimations"===qe._animationMode),p.xp6(6),p.ekj("mat-tab-header-pagination-disabled",qe._disableScrollAfter),p.Q6J("matRippleDisabled",qe._disableScrollAfter||qe.disableRipple)("disabled",qe._disableScrollAfter||null))},dependencies:[g.wG,m.wD,J],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-list._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}.mat-tab-label::before{margin:5px}@media(max-width: 599px){.mat-tab-label{min-width:72px}}"],encapsulation:2}),ze})(),Ie=0;class tt{}const ct=(0,g.pj)((0,g.Kr)(class{constructor(ze){this._elementRef=ze}}),"primary");let Ue=(()=>{class ze extends ct{constructor(me,qe,rt,Mt){var Qt;super(me),this._changeDetectorRef=qe,this._animationMode=Mt,this._tabs=new p.n_E,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=z.w0.EMPTY,this._tabLabelSubscription=z.w0.EMPTY,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this._disablePagination=!1,this._preserveContent=!1,this.selectedIndexChange=new p.vpe,this.focusChange=new p.vpe,this.animationDone=new p.vpe,this.selectedTabChange=new p.vpe(!0),this._groupId=Ie++,this.animationDuration=rt&&rt.animationDuration?rt.animationDuration:"500ms",this.disablePagination=!(!rt||null==rt.disablePagination)&&rt.disablePagination,this.dynamicHeight=!(!rt||null==rt.dynamicHeight)&&rt.dynamicHeight,this.contentTabIndex=null!==(Qt=rt?.contentTabIndex)&&void 0!==Qt?Qt:null,this.preserveContent=!(null==rt||!rt.preserveContent)}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(me){this._dynamicHeight=(0,L.Ig)(me)}get selectedIndex(){return this._selectedIndex}set selectedIndex(me){this._indexToSelect=(0,L.su)(me,null)}get animationDuration(){return this._animationDuration}set animationDuration(me){this._animationDuration=/^\d+$/.test(me+"")?me+"ms":me}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(me){this._contentTabIndex=(0,L.su)(me,null)}get disablePagination(){return this._disablePagination}set disablePagination(me){this._disablePagination=(0,L.Ig)(me)}get preserveContent(){return this._preserveContent}set preserveContent(me){this._preserveContent=(0,L.Ig)(me)}get backgroundColor(){return this._backgroundColor}set backgroundColor(me){const qe=this._elementRef.nativeElement;qe.classList.remove(`mat-background-${this.backgroundColor}`),me&&qe.classList.add(`mat-background-${me}`),this._backgroundColor=me}ngAfterContentChecked(){const me=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=me){const qe=null==this._selectedIndex;if(!qe){this.selectedTabChange.emit(this._createChangeEvent(me));const rt=this._tabBodyWrapper.nativeElement;rt.style.minHeight=rt.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((rt,Mt)=>rt.isActive=Mt===me),qe||(this.selectedIndexChange.emit(me),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((qe,rt)=>{qe.position=rt-me,null!=this._selectedIndex&&0==qe.position&&!qe.origin&&(qe.origin=me-this._selectedIndex)}),this._selectedIndex!==me&&(this._selectedIndex=me,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const me=this._clampTabIndex(this._indexToSelect);if(me===this._selectedIndex){const qe=this._tabs.toArray();let rt;for(let Mt=0;Mt{qe[me].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(me))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe((0,E.O)(this._allTabs)).subscribe(me=>{this._tabs.reset(me.filter(qe=>qe._closestTabGroup===this||!qe._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(me){const qe=this._tabHeader;qe&&(qe.focusIndex=me)}_focusChanged(me){this._lastFocusedTabIndex=me,this.focusChange.emit(this._createChangeEvent(me))}_createChangeEvent(me){const qe=new tt;return qe.index=me,this._tabs&&this._tabs.length&&(qe.tab=this._tabs.toArray()[me]),qe}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,q.T)(...this._tabs.map(me=>me._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(me){return Math.min(this._tabs.length-1,Math.max(me||0,0))}_getTabLabelId(me){return`mat-tab-label-${this._groupId}-${me}`}_getTabContentId(me){return`mat-tab-content-${this._groupId}-${me}`}_setTabBodyWrapperHeight(me){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const qe=this._tabBodyWrapper.nativeElement;qe.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(qe.style.height=me+"px")}_removeTabBodyWrapperHeight(){const me=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=me.clientHeight,me.style.height="",this.animationDone.emit()}_handleClick(me,qe,rt){me.disabled||(this.selectedIndex=qe.focusIndex=rt)}_getTabIndex(me,qe){var rt;return me.disabled?null:qe===(null!==(rt=this._lastFocusedTabIndex)&&void 0!==rt?rt:this.selectedIndex)?0:-1}_tabFocusChanged(me,qe){me&&"mouse"!==me&&"touch"!==me&&(this._tabHeader.focusIndex=qe)}}return ze.\u0275fac=function(me){return new(me||ze)(p.Y36(p.SBq),p.Y36(p.sBO),p.Y36(c,8),p.Y36(p.QbO,8))},ze.\u0275dir=p.lG2({type:ze,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",preserveContent:"preserveContent",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[p.qOj]}),ze})(),at=(()=>{class ze extends Ue{constructor(me,qe,rt,Mt){super(me,qe,rt,Mt)}}return ze.\u0275fac=function(me){return new(me||ze)(p.Y36(p.SBq),p.Y36(p.sBO),p.Y36(c,8),p.Y36(p.QbO,8))},ze.\u0275cmp=p.Xpm({type:ze,selectors:[["mat-tab-group"]],contentQueries:function(me,qe,rt){if(1&me&&p.Suo(rt,oe,5),2&me){let Mt;p.iGM(Mt=p.CRH())&&(qe._allTabs=Mt)}},viewQuery:function(me,qe){if(1&me&&(p.Gf(N,5),p.Gf(Me,5)),2&me){let rt;p.iGM(rt=p.CRH())&&(qe._tabBodyWrapper=rt.first),p.iGM(rt=p.CRH())&&(qe._tabHeader=rt.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(me,qe){2&me&&p.ekj("mat-tab-group-dynamic-height",qe.dynamicHeight)("mat-tab-group-inverted-header","below"===qe.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[p._Bn([{provide:it,useExisting:ze}]),p.qOj],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","ngClass","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","ngClass","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf","ngIfElse"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering"]],template:function(me,qe){1&me&&(p.TgZ(0,"mat-tab-header",0,1),p.NdJ("indexFocused",function(Mt){return qe._focusChanged(Mt)})("selectFocusedIndex",function(Mt){return qe.selectedIndex=Mt}),p.YNc(2,We,5,15,"div",2),p.qZA(),p.TgZ(3,"div",3,4),p.YNc(5,Pe,1,11,"mat-tab-body",5),p.qZA()),2&me&&(p.Q6J("selectedIndex",qe.selectedIndex||0)("disableRipple",qe.disableRipple)("disablePagination",qe.disablePagination),p.xp6(2),p.Q6J("ngForOf",qe._tabs),p.xp6(1),p.ekj("_mat-animation-noopable","NoopAnimations"===qe._animationMode),p.xp6(2),p.Q6J("ngForOf",qe._tabs))},dependencies:[w.mk,w.sg,w.O5,A.Pl,g.wG,e.kH,i,_,k],styles:[".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}"],encapsulation:2}),ze})(),st=(()=>{class ze{}return ze.\u0275fac=function(me){return new(me||ze)},ze.\u0275mod=p.oAB({type:ze}),ze.\u0275inj=p.cJS({imports:[w.ez,g.BQ,A.eL,g.si,m.Q8,e.rt,g.BQ]}),ze})()},83683:(Qe,he,u)=>{"use strict";u.d(he,{Ye:()=>S,g0:()=>v});var e=u(94650),m=u(3238),A=u(83353),w=u(36895);const p=["*",[["mat-toolbar-row"]]],g=["*","mat-toolbar-row"],T=(0,m.pj)(class{constructor(D){this._elementRef=D}});let E=(()=>{class D{}return D.\u0275fac=function(z){return new(z||D)},D.\u0275dir=e.lG2({type:D,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),D})(),S=(()=>{class D extends T{constructor(z,$,G){super(z),this._platform=$,this._document=G}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return D.\u0275fac=function(z){return new(z||D)(e.Y36(e.SBq),e.Y36(A.t4),e.Y36(w.K0))},D.\u0275cmp=e.Xpm({type:D,selectors:[["mat-toolbar"]],contentQueries:function(z,$,G){if(1&z&&e.Suo(G,E,5),2&z){let q;e.iGM(q=e.CRH())&&($._toolbarRows=q)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(z,$){2&z&&e.ekj("mat-toolbar-multiple-rows",$._toolbarRows.length>0)("mat-toolbar-single-row",0===$._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[e.qOj],ngContentSelectors:g,decls:2,vars:0,template:function(z,$){1&z&&(e.F$t(p),e.Hsn(0),e.Hsn(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%}"],encapsulation:2,changeDetection:0}),D})(),v=(()=>{class D{}return D.\u0275fac=function(z){return new(z||D)},D.\u0275mod=e.oAB({type:D}),D.\u0275inj=e.cJS({imports:[m.BQ,m.BQ]}),D})()},10266:(Qe,he,u)=>{"use strict";u.d(he,{AV:()=>Ce,gM:()=>Be});var e=u(98184),m=u(12687),A=u(36895),w=u(94650),p=u(3238),g=u(67376),T=u(40445),E=u(21281),S=u(29521),R=u(62289),v=u(83353),D=u(84080),F=u(77579),z=u(82722),$=u(95698);u(37340);const q=["tooltip"],Te="tooltip-panel",b=(0,v.i$)({passive:!0}),V=new w.OlP("mat-tooltip-scroll-strategy"),ae={provide:V,deps:[e.aV],useFactory:function Q(re){return()=>re.scrollStrategies.reposition({scrollThrottle:20})}},xe=new w.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function ge(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let Se=(()=>{class re{constructor(N,Me,Y,be,De,We,Pe,nt,Ye,Tt,J,Xe){this._overlay=N,this._elementRef=Me,this._scrollDispatcher=Y,this._viewContainerRef=be,this._ngZone=De,this._platform=We,this._ariaDescriber=Pe,this._focusMonitor=nt,this._dir=Tt,this._defaultOptions=J,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new F.x,this._scrollStrategy=Ye,this._document=Xe,J&&(J.position&&(this.position=J.position),J.touchGestures&&(this.touchGestures=J.touchGestures)),Tt.change.pipe((0,z.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(N){var Me;N!==this._position&&(this._position=N,this._overlayRef)&&(this._updatePosition(this._overlayRef),null===(Me=this._tooltipInstance)||void 0===Me||Me.show(0),this._overlayRef.updatePosition())}get disabled(){return this._disabled}set disabled(N){this._disabled=(0,E.Ig)(N),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(N){this._showDelay=(0,E.su)(N)}get hideDelay(){return this._hideDelay}set hideDelay(N){this._hideDelay=(0,E.su)(N),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(N){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=N?String(N).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,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(N){this._tooltipClass=N,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,z.R)(this._destroyed)).subscribe(N=>{N?"keyboard"===N&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const N=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([Me,Y])=>{N.removeEventListener(Me,Y,b)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(N,this.message,"tooltip"),this._focusMonitor.stopMonitoring(N)}show(N=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const Me=this._createOverlay();this._detach(),this._portal=this._portal||new D.C5(this._tooltipComponent,this._viewContainerRef);const Y=this._tooltipInstance=Me.attach(this._portal).instance;Y._triggerElement=this._elementRef.nativeElement,Y._mouseLeaveHideDelay=this._hideDelay,Y.afterHidden().pipe((0,z.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),Y.show(N)}hide(N=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(N)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){var N;if(this._overlayRef)return this._overlayRef;const Me=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),Y=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(Me);return Y.positionChanges.pipe((0,z.R)(this._destroyed)).subscribe(be=>{this._updateCurrentPositionClass(be.connectionPair),this._tooltipInstance&&be.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:Y,panelClass:`${this._cssClassPrefix}-${Te}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,z.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,z.R)(this._destroyed)).subscribe(()=>{var be;return null===(be=this._tooltipInstance)||void 0===be?void 0:be._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe((0,z.R)(this._destroyed)).subscribe(be=>{this._isTooltipVisible()&&be.keyCode===S.hY&&!(0,S.Vb)(be)&&(be.preventDefault(),be.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),null!==(N=this._defaultOptions)&&void 0!==N&&N.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(N){const Me=N.getConfig().positionStrategy,Y=this._getOrigin(),be=this._getOverlayPosition();Me.withPositions([this._addOffset({...Y.main,...be.main}),this._addOffset({...Y.fallback,...be.fallback})])}_addOffset(N){return N}_getOrigin(){const N=!this._dir||"ltr"==this._dir.value,Me=this.position;let Y;"above"==Me||"below"==Me?Y={originX:"center",originY:"above"==Me?"top":"bottom"}:"before"==Me||"left"==Me&&N||"right"==Me&&!N?Y={originX:"start",originY:"center"}:("after"==Me||"right"==Me&&N||"left"==Me&&!N)&&(Y={originX:"end",originY:"center"});const{x:be,y:De}=this._invertPosition(Y.originX,Y.originY);return{main:Y,fallback:{originX:be,originY:De}}}_getOverlayPosition(){const N=!this._dir||"ltr"==this._dir.value,Me=this.position;let Y;"above"==Me?Y={overlayX:"center",overlayY:"bottom"}:"below"==Me?Y={overlayX:"center",overlayY:"top"}:"before"==Me||"left"==Me&&N||"right"==Me&&!N?Y={overlayX:"end",overlayY:"center"}:("after"==Me||"right"==Me&&N||"left"==Me&&!N)&&(Y={overlayX:"start",overlayY:"center"});const{x:be,y:De}=this._invertPosition(Y.overlayX,Y.overlayY);return{main:Y,fallback:{overlayX:be,overlayY:De}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,$.q)(1),(0,z.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(N){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=N,this._tooltipInstance._markForCheck())}_invertPosition(N,Me){return"above"===this.position||"below"===this.position?"top"===Me?Me="bottom":"bottom"===Me&&(Me="top"):"end"===N?N="start":"start"===N&&(N="end"),{x:N,y:Me}}_updateCurrentPositionClass(N){const{overlayY:Me,originX:Y,originY:be}=N;let De;if(De="center"===Me?this._dir&&"rtl"===this._dir.value?"end"===Y?"left":"right":"start"===Y?"left":"right":"bottom"===Me&&"top"===be?"above":"below",De!==this._currentPosition){const We=this._overlayRef;if(We){const Pe=`${this._cssClassPrefix}-${Te}-`;We.removePanelClass(Pe+this._currentPosition),We.addPanelClass(Pe+De)}this._currentPosition=De}}_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 N=[];if(this._platformSupportsMouseEvents())N.push(["mouseleave",Me=>{var Y;const be=Me.relatedTarget;(!be||null===(Y=this._overlayRef)||void 0===Y||!Y.overlayElement.contains(be))&&this.hide()}],["wheel",Me=>this._wheelListener(Me)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const Me=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};N.push(["touchend",Me],["touchcancel",Me])}this._addListeners(N),this._passiveListeners.push(...N)}_addListeners(N){N.forEach(([Me,Y])=>{this._elementRef.nativeElement.addEventListener(Me,Y,b)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(N){if(this._isTooltipVisible()){const Me=this._document.elementFromPoint(N.clientX,N.clientY),Y=this._elementRef.nativeElement;Me!==Y&&!Y.contains(Me)&&this.hide()}}_disableNativeGesturesIfNecessary(){const N=this.touchGestures;if("off"!==N){const Me=this._elementRef.nativeElement,Y=Me.style;("on"===N||"INPUT"!==Me.nodeName&&"TEXTAREA"!==Me.nodeName)&&(Y.userSelect=Y.msUserSelect=Y.webkitUserSelect=Y.MozUserSelect="none"),("on"===N||!Me.draggable)&&(Y.webkitUserDrag="none"),Y.touchAction="none",Y.webkitTapHighlightColor="transparent"}}}return re.\u0275fac=function(N){w.$Z()},re.\u0275dir=w.lG2({type:re,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),re})(),Be=(()=>{class re extends Se{constructor(N,Me,Y,be,De,We,Pe,nt,Ye,Tt,J,Xe){super(N,Me,Y,be,De,We,Pe,nt,Ye,Tt,J,Xe),this._tooltipComponent=$e}}return re.\u0275fac=function(N){return new(N||re)(w.Y36(e.aV),w.Y36(w.SBq),w.Y36(g.mF),w.Y36(w.s_b),w.Y36(w.R0b),w.Y36(v.t4),w.Y36(m.$s),w.Y36(m.tE),w.Y36(V),w.Y36(T.Is,8),w.Y36(xe,8),w.Y36(A.K0))},re.\u0275dir=w.lG2({type:re,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[w.qOj]}),re})(),pe=(()=>{class re{constructor(N,Me){this._changeDetectorRef=N,this._visibility="initial",this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new F.x,this._animationsDisabled="NoopAnimations"===Me}show(N){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},N)}hide(N){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},N)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:N}){(!N||!this._triggerElement.contains(N))&&this.hide(this._mouseLeaveHideDelay)}_onShow(){}_handleAnimationEnd({animationName:N}){(N===this._showAnimation||N===this._hideAnimation)&&this._finalizeAnimation(N===this._showAnimation)}_finalizeAnimation(N){N?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(N){const Me=this._tooltip.nativeElement,Y=this._showAnimation,be=this._hideAnimation;if(Me.classList.remove(N?be:Y),Me.classList.add(N?Y:be),this._isVisible=N,N&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const De=getComputedStyle(Me);("0s"===De.getPropertyValue("animation-duration")||"none"===De.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}N&&this._onShow(),this._animationsDisabled&&(Me.classList.add("_mat-animation-noopable"),this._finalizeAnimation(N))}}return re.\u0275fac=function(N){return new(N||re)(w.Y36(w.sBO),w.Y36(w.QbO,8))},re.\u0275dir=w.lG2({type:re}),re})(),$e=(()=>{class re extends pe{constructor(N,Me,Y){super(N,Y),this._breakpointObserver=Me,this._isHandset=this._breakpointObserver.observe(R.u3.Handset),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return re.\u0275fac=function(N){return new(N||re)(w.Y36(w.sBO),w.Y36(R.Yg),w.Y36(w.QbO,8))},re.\u0275cmp=w.Xpm({type:re,selectors:[["mat-tooltip-component"]],viewQuery:function(N,Me){if(1&N&&w.Gf(q,7),2&N){let Y;w.iGM(Y=w.CRH())&&(Me._tooltip=Y.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(N,Me){1&N&&w.NdJ("mouseleave",function(be){return Me._handleMouseLeave(be)}),2&N&&w.Udp("zoom",Me.isVisible()?1:null)},features:[w.qOj],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(N,Me){if(1&N&&(w.TgZ(0,"div",0,1),w.NdJ("animationend",function(be){return Me._handleAnimationEnd(be)}),w.ALo(2,"async"),w._uU(3),w.qZA()),2&N){let Y;w.ekj("mat-tooltip-handset",null==(Y=w.lcZ(2,4,Me._isHandset))?null:Y.matches),w.Q6J("ngClass",Me.tooltipClass),w.xp6(3),w.Oqu(Me.message)}},dependencies:[A.mk,A.Ov],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}"],encapsulation:2,changeDetection:0}),re})(),Ce=(()=>{class re{}return re.\u0275fac=function(N){return new(N||re)},re.\u0275mod=w.oAB({type:re}),re.\u0275inj=w.cJS({providers:[ae],imports:[m.rt,A.ez,e.U8,p.BQ,p.BQ,g.ZD]}),re})()},35423:(Qe,he,u)=>{"use strict";u.d(he,{Ar:()=>$,GZ:()=>F,JZ:()=>Te,WX:()=>H,dp:()=>ce,eu:()=>q,fQ:()=>D,gi:()=>G,kc:()=>b,uo:()=>v});var e=u(57851),m=u(94650),A=u(3238),w=u(21281),p=u(95017),g=u(61135),T=u(56451),E=u(95698),S=u(54004);const R=(0,A.sb)((0,A.Id)(e.Hs));let v=(()=>{class L extends R{constructor(Q,ae,xe){super(Q,ae),this.tabIndex=Number(xe)||0}ngOnInit(){super.ngOnInit()}ngOnDestroy(){super.ngOnDestroy()}}return L.\u0275fac=function(Q){return new(Q||L)(m.Y36(m.SBq),m.Y36(e._0),m.$8M("tabindex"))},L.\u0275dir=m.lG2({type:L,selectors:[["mat-tree-node"]],hostAttrs:[1,"mat-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["matTreeNode"],features:[m._Bn([{provide:e.Hs,useExisting:L}]),m.qOj]}),L})(),D=(()=>{class L extends e.rO{}return L.\u0275fac=function(){let V;return function(ae){return(V||(V=m.n5z(L)))(ae||L)}}(),L.\u0275dir=m.lG2({type:L,selectors:[["","matTreeNodeDef",""]],inputs:{when:["matTreeNodeDefWhen","when"],data:["matTreeNode","data"]},features:[m._Bn([{provide:e.rO,useExisting:L}]),m.qOj]}),L})(),F=(()=>{class L extends e.Xx{constructor(Q,ae,xe,ge){super(Q,ae,xe),this._disabled=!1,this.tabIndex=Number(ge)||0}get disabled(){return this._disabled}set disabled(Q){this._disabled=(0,w.Ig)(Q)}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(Q){this._tabIndex=Q??0}ngOnInit(){super.ngOnInit()}ngAfterContentInit(){super.ngAfterContentInit()}ngOnDestroy(){super.ngOnDestroy()}}return L.\u0275fac=function(Q){return new(Q||L)(m.Y36(m.SBq),m.Y36(e._0),m.Y36(m.ZZ4),m.$8M("tabindex"))},L.\u0275dir=m.lG2({type:L,selectors:[["mat-nested-tree-node"]],hostAttrs:[1,"mat-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex",node:["matNestedTreeNode","node"]},exportAs:["matNestedTreeNode"],features:[m._Bn([{provide:e.Xx,useExisting:L},{provide:e.Hs,useExisting:L},{provide:e.HI,useExisting:L}]),m.qOj]}),L})(),$=(()=>{class L{constructor(Q,ae){this.viewContainer=Q,this._node=ae}}return L.\u0275fac=function(Q){return new(Q||L)(m.Y36(m.s_b),m.Y36(e.HI,8))},L.\u0275dir=m.lG2({type:L,selectors:[["","matTreeNodeOutlet",""]],features:[m._Bn([{provide:e.cu,useExisting:L}])]}),L})(),G=(()=>{class L extends e._0{}return L.\u0275fac=function(){let V;return function(ae){return(V||(V=m.n5z(L)))(ae||L)}}(),L.\u0275cmp=m.Xpm({type:L,selectors:[["mat-tree"]],viewQuery:function(Q,ae){if(1&Q&&m.Gf($,7),2&Q){let xe;m.iGM(xe=m.CRH())&&(ae._nodeOutlet=xe.first)}},hostAttrs:["role","tree",1,"mat-tree"],exportAs:["matTree"],features:[m._Bn([{provide:e._0,useExisting:L}]),m.qOj],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(Q,ae){1&Q&&m.GkF(0,0)},dependencies:[$],styles:[".mat-tree{display:block}.mat-tree-node{display:flex;align-items:center;flex:1;word-wrap:break-word}.mat-nested-tree-node{border-bottom-width:0}"],encapsulation:2}),L})(),q=(()=>{class L extends e.Ud{}return L.\u0275fac=function(){let V;return function(ae){return(V||(V=m.n5z(L)))(ae||L)}}(),L.\u0275dir=m.lG2({type:L,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:["matTreeNodeToggleRecursive","recursive"]},features:[m._Bn([{provide:e.Ud,useExisting:L}]),m.qOj]}),L})(),ce=(()=>{class L{}return L.\u0275fac=function(Q){return new(Q||L)},L.\u0275mod=m.oAB({type:L}),L.\u0275inj=m.cJS({imports:[e.nZ,A.BQ,A.BQ]}),L})();class Te{constructor(V,Q,ae,xe){this.transformFunction=V,this.getLevel=Q,this.isExpandable=ae,this.getChildren=xe}_flattenNode(V,Q,ae,xe){const ge=this.transformFunction(V,Q);if(ae.push(ge),this.isExpandable(ge)){const Se=this.getChildren(V);Se&&(Array.isArray(Se)?this._flattenChildren(Se,Q,ae,xe):Se.pipe((0,E.q)(1)).subscribe(Be=>{this._flattenChildren(Be,Q,ae,xe)}))}return ae}_flattenChildren(V,Q,ae,xe){V.forEach((ge,Se)=>{let Be=xe.slice();Be.push(Se!=V.length-1),this._flattenNode(ge,Q+1,ae,Be)})}flattenNodes(V){let Q=[];return V.forEach(ae=>this._flattenNode(ae,0,Q,[])),Q}expandFlattenedNodes(V,Q){let ae=[],xe=[];return xe[0]=!0,V.forEach(ge=>{let Se=!0;for(let Be=0;Be<=this.getLevel(ge);Be++)Se=Se&&xe[Be];Se&&ae.push(ge),this.isExpandable(ge)&&(xe[this.getLevel(ge)+1]=Q.isExpanded(ge))}),ae}}class b extends p.o2{constructor(V,Q,ae){super(),this._treeControl=V,this._treeFlattener=Q,this._flattenedData=new g.X([]),this._expandedData=new g.X([]),this._data=new g.X([]),ae&&(this.data=ae)}get data(){return this._data.value}set data(V){this._data.next(V),this._flattenedData.next(this._treeFlattener.flattenNodes(this.data)),this._treeControl.dataNodes=this._flattenedData.value}connect(V){return(0,T.T)(V.viewChange,this._treeControl.expansionModel.changed,this._flattenedData).pipe((0,S.U)(()=>(this._expandedData.next(this._treeFlattener.expandFlattenedNodes(this._flattenedData.value,this._treeControl)),this._expandedData.value)))}disconnect(){}}class H extends p.o2{constructor(){super(...arguments),this._data=new g.X([])}get data(){return this._data.value}set data(V){this._data.next(V)}connect(V){return(0,T.T)(V.viewChange,this._data).pipe((0,S.U)(()=>this.data))}disconnect(){}}},11481:(Qe,he,u)=>{"use strict";u.d(he,{Dx:()=>i,H7:()=>Qt,b2:()=>r,q6:()=>ot,se:()=>pe});var e=u(36895),m=u(94650);class A extends e.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class w extends A{static makeCurrent(){(0,e.HT)(new w)}onAndCancel(Ht,yt,Ft){return Ht.addEventListener(yt,Ft,!1),()=>{Ht.removeEventListener(yt,Ft,!1)}}dispatchEvent(Ht,yt){Ht.dispatchEvent(yt)}remove(Ht){Ht.parentNode&&Ht.parentNode.removeChild(Ht)}createElement(Ht,yt){return(yt=yt||this.getDefaultDocument()).createElement(Ht)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(Ht){return Ht.nodeType===Node.ELEMENT_NODE}isShadowRoot(Ht){return Ht instanceof DocumentFragment}getGlobalEventTarget(Ht,yt){return"window"===yt?window:"document"===yt?Ht:"body"===yt?Ht.body:null}getBaseHref(Ht){const yt=function g(){return p=p||document.querySelector("base"),p?p.getAttribute("href"):null}();return null==yt?null:function E(Nt){T=T||document.createElement("a"),T.setAttribute("href",Nt);const Ht=T.pathname;return"/"===Ht.charAt(0)?Ht:`/${Ht}`}(yt)}resetBaseElement(){p=null}getUserAgent(){return window.navigator.userAgent}getCookie(Ht){return(0,e.Mx)(document.cookie,Ht)}}let T,p=null;const S=new m.OlP("TRANSITION_ID"),v=[{provide:m.ip1,useFactory:function R(Nt,Ht,yt){return()=>{yt.get(m.CZH).donePromise.then(()=>{const Ft=(0,e.q)(),Kt=Ht.querySelectorAll(`style[ng-transition="${Nt}"]`);for(let Cn=0;Cn{class Nt{build(){return new XMLHttpRequest}}return Nt.\u0275fac=function(yt){return new(yt||Nt)},Nt.\u0275prov=m.Yz7({token:Nt,factory:Nt.\u0275fac}),Nt})();const z=new m.OlP("EventManagerPlugins");let $=(()=>{class Nt{constructor(yt,Ft){this._zone=Ft,this._eventNameToPlugin=new Map,yt.forEach(Kt=>Kt.manager=this),this._plugins=yt.slice().reverse()}addEventListener(yt,Ft,Kt){return this._findPluginFor(Ft).addEventListener(yt,Ft,Kt)}addGlobalEventListener(yt,Ft,Kt){return this._findPluginFor(Ft).addGlobalEventListener(yt,Ft,Kt)}getZone(){return this._zone}_findPluginFor(yt){const Ft=this._eventNameToPlugin.get(yt);if(Ft)return Ft;const Kt=this._plugins;for(let Cn=0;Cn{class Nt{constructor(){this._stylesSet=new Set}addStyles(yt){const Ft=new Set;yt.forEach(Kt=>{this._stylesSet.has(Kt)||(this._stylesSet.add(Kt),Ft.add(Kt))}),this.onStylesAdded(Ft)}onStylesAdded(yt){}getAllStyles(){return Array.from(this._stylesSet)}}return Nt.\u0275fac=function(yt){return new(yt||Nt)},Nt.\u0275prov=m.Yz7({token:Nt,factory:Nt.\u0275fac}),Nt})(),_e=(()=>{class Nt extends q{constructor(yt){super(),this._doc=yt,this._hostNodes=new Map,this._hostNodes.set(yt.head,[])}_addStylesToHost(yt,Ft,Kt){yt.forEach(Cn=>{const Mn=this._doc.createElement("style");Mn.textContent=Cn,Kt.push(Ft.appendChild(Mn))})}addHost(yt){const Ft=[];this._addStylesToHost(this._stylesSet,yt,Ft),this._hostNodes.set(yt,Ft)}removeHost(yt){const Ft=this._hostNodes.get(yt);Ft&&Ft.forEach(ce),this._hostNodes.delete(yt)}onStylesAdded(yt){this._hostNodes.forEach((Ft,Kt)=>{this._addStylesToHost(yt,Kt,Ft)})}ngOnDestroy(){this._hostNodes.forEach(yt=>yt.forEach(ce))}}return Nt.\u0275fac=function(yt){return new(yt||Nt)(m.LFG(e.K0))},Nt.\u0275prov=m.Yz7({token:Nt,factory:Nt.\u0275fac}),Nt})();function ce(Nt){(0,e.q)().remove(Nt)}const Te={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/",math:"http://www.w3.org/1998/MathML/"},b=/%COMP%/g,L="%COMP%",V=`_nghost-${L}`,Q=`_ngcontent-${L}`;function ge(Nt,Ht,yt){for(let Ft=0;Ft{if("__ngUnwrap__"===Ht)return Nt;!1===Nt(Ht)&&(Ht.preventDefault(),Ht.returnValue=!1)}}let pe=(()=>{class Nt{constructor(yt,Ft,Kt){this.eventManager=yt,this.sharedStylesHost=Ft,this.appId=Kt,this.rendererByCompId=new Map,this.defaultRenderer=new $e(yt)}createRenderer(yt,Ft){if(!yt||!Ft)return this.defaultRenderer;switch(Ft.encapsulation){case m.ifc.Emulated:{let Kt=this.rendererByCompId.get(Ft.id);return Kt||(Kt=new B(this.eventManager,this.sharedStylesHost,Ft,this.appId),this.rendererByCompId.set(Ft.id,Kt)),Kt.applyToHost(yt),Kt}case 1:case m.ifc.ShadowDom:return new N(this.eventManager,this.sharedStylesHost,yt,Ft);default:if(!this.rendererByCompId.has(Ft.id)){const Kt=ge(Ft.id,Ft.styles,[]);this.sharedStylesHost.addStyles(Kt),this.rendererByCompId.set(Ft.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return Nt.\u0275fac=function(yt){return new(yt||Nt)(m.LFG($),m.LFG(_e),m.LFG(m.AFp))},Nt.\u0275prov=m.Yz7({token:Nt,factory:Nt.\u0275fac}),Nt})();class $e{constructor(Ht){this.eventManager=Ht,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(Ht,yt){return yt?document.createElementNS(Te[yt]||yt,Ht):document.createElement(Ht)}createComment(Ht){return document.createComment(Ht)}createText(Ht){return document.createTextNode(Ht)}appendChild(Ht,yt){(re(Ht)?Ht.content:Ht).appendChild(yt)}insertBefore(Ht,yt,Ft){Ht&&(re(Ht)?Ht.content:Ht).insertBefore(yt,Ft)}removeChild(Ht,yt){Ht&&Ht.removeChild(yt)}selectRootElement(Ht,yt){let Ft="string"==typeof Ht?document.querySelector(Ht):Ht;if(!Ft)throw new Error(`The selector "${Ht}" did not match any elements`);return yt||(Ft.textContent=""),Ft}parentNode(Ht){return Ht.parentNode}nextSibling(Ht){return Ht.nextSibling}setAttribute(Ht,yt,Ft,Kt){if(Kt){yt=Kt+":"+yt;const Cn=Te[Kt];Cn?Ht.setAttributeNS(Cn,yt,Ft):Ht.setAttribute(yt,Ft)}else Ht.setAttribute(yt,Ft)}removeAttribute(Ht,yt,Ft){if(Ft){const Kt=Te[Ft];Kt?Ht.removeAttributeNS(Kt,yt):Ht.removeAttribute(`${Ft}:${yt}`)}else Ht.removeAttribute(yt)}addClass(Ht,yt){Ht.classList.add(yt)}removeClass(Ht,yt){Ht.classList.remove(yt)}setStyle(Ht,yt,Ft,Kt){Kt&(m.JOm.DashCase|m.JOm.Important)?Ht.style.setProperty(yt,Ft,Kt&m.JOm.Important?"important":""):Ht.style[yt]=Ft}removeStyle(Ht,yt,Ft){Ft&m.JOm.DashCase?Ht.style.removeProperty(yt):Ht.style[yt]=""}setProperty(Ht,yt,Ft){Ht[yt]=Ft}setValue(Ht,yt){Ht.nodeValue=yt}listen(Ht,yt,Ft){return"string"==typeof Ht?this.eventManager.addGlobalEventListener(Ht,yt,Se(Ft)):this.eventManager.addEventListener(Ht,yt,Se(Ft))}}function re(Nt){return"TEMPLATE"===Nt.tagName&&void 0!==Nt.content}class B extends $e{constructor(Ht,yt,Ft,Kt){super(Ht),this.component=Ft;const Cn=ge(Kt+"-"+Ft.id,Ft.styles,[]);yt.addStyles(Cn),this.contentAttr=function ae(Nt){return Q.replace(b,Nt)}(Kt+"-"+Ft.id),this.hostAttr=function xe(Nt){return V.replace(b,Nt)}(Kt+"-"+Ft.id)}applyToHost(Ht){super.setAttribute(Ht,this.hostAttr,"")}createElement(Ht,yt){const Ft=super.createElement(Ht,yt);return super.setAttribute(Ft,this.contentAttr,""),Ft}}class N extends $e{constructor(Ht,yt,Ft,Kt){super(Ht),this.sharedStylesHost=yt,this.hostEl=Ft,this.shadowRoot=Ft.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const Cn=ge(Kt.id,Kt.styles,[]);for(let Mn=0;Mn{class Nt extends G{constructor(yt){super(yt)}supports(yt){return!0}addEventListener(yt,Ft,Kt){return yt.addEventListener(Ft,Kt,!1),()=>this.removeEventListener(yt,Ft,Kt)}removeEventListener(yt,Ft,Kt){return yt.removeEventListener(Ft,Kt)}}return Nt.\u0275fac=function(yt){return new(yt||Nt)(m.LFG(e.K0))},Nt.\u0275prov=m.Yz7({token:Nt,factory:Nt.\u0275fac}),Nt})();const Y=["alt","control","meta","shift"],De={"\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"},We={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"},Pe={alt:Nt=>Nt.altKey,control:Nt=>Nt.ctrlKey,meta:Nt=>Nt.metaKey,shift:Nt=>Nt.shiftKey};let nt=(()=>{class Nt extends G{constructor(yt){super(yt)}supports(yt){return null!=Nt.parseEventName(yt)}addEventListener(yt,Ft,Kt){const Cn=Nt.parseEventName(Ft),Mn=Nt.eventCallback(Cn.fullKey,Kt,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,e.q)().onAndCancel(yt,Cn.domEventName,Mn))}static parseEventName(yt){const Ft=yt.toLowerCase().split("."),Kt=Ft.shift();if(0===Ft.length||"keydown"!==Kt&&"keyup"!==Kt)return null;const Cn=Nt._normalizeKey(Ft.pop());let Mn="";if(Y.forEach(Hn=>{const Ct=Ft.indexOf(Hn);Ct>-1&&(Ft.splice(Ct,1),Mn+=Hn+".")}),Mn+=Cn,0!=Ft.length||0===Cn.length)return null;const pn={};return pn.domEventName=Kt,pn.fullKey=Mn,pn}static getEventFullKey(yt){let Ft="",Kt=function Ye(Nt){let Ht=Nt.key;if(null==Ht){if(Ht=Nt.keyIdentifier,null==Ht)return"Unidentified";Ht.startsWith("U+")&&(Ht=String.fromCharCode(parseInt(Ht.substring(2),16)),3===Nt.location&&We.hasOwnProperty(Ht)&&(Ht=We[Ht]))}return De[Ht]||Ht}(yt);return Kt=Kt.toLowerCase()," "===Kt?Kt="space":"."===Kt&&(Kt="dot"),Y.forEach(Cn=>{Cn!=Kt&&(0,Pe[Cn])(yt)&&(Ft+=Cn+".")}),Ft+=Kt,Ft}static eventCallback(yt,Ft,Kt){return Cn=>{Nt.getEventFullKey(Cn)===yt&&Kt.runGuarded(()=>Ft(Cn))}}static _normalizeKey(yt){return"esc"===yt?"escape":yt}}return Nt.\u0275fac=function(yt){return new(yt||Nt)(m.LFG(e.K0))},Nt.\u0275prov=m.Yz7({token:Nt,factory:Nt.\u0275fac}),Nt})();const ot=(0,m.eFA)(m._c5,"browser",[{provide:m.Lbi,useValue:e.bD},{provide:m.g9A,useValue:function le(){w.makeCurrent()},multi:!0},{provide:e.K0,useFactory:function ke(){return(0,m.RDi)(document),document},deps:[]}]),it=new m.OlP(""),oe=[{provide:m.rWj,useClass:class D{addToWindow(Ht){m.dqk.getAngularTestability=(Ft,Kt=!0)=>{const Cn=Ht.findTestabilityInTree(Ft,Kt);if(null==Cn)throw new Error("Could not find testability for element.");return Cn},m.dqk.getAllAngularTestabilities=()=>Ht.getAllTestabilities(),m.dqk.getAllAngularRootElements=()=>Ht.getAllRootElements(),m.dqk.frameworkStabilizers||(m.dqk.frameworkStabilizers=[]),m.dqk.frameworkStabilizers.push(Ft=>{const Kt=m.dqk.getAllAngularTestabilities();let Cn=Kt.length,Mn=!1;const pn=function(Hn){Mn=Mn||Hn,Cn--,0==Cn&&Ft(Mn)};Kt.forEach(function(Hn){Hn.whenStable(pn)})})}findTestabilityInTree(Ht,yt,Ft){return null==yt?null:Ht.getTestability(yt)??(Ft?(0,e.q)().isShadowRoot(yt)?this.findTestabilityInTree(Ht,yt.host,!0):this.findTestabilityInTree(Ht,yt.parentElement,!0):null)}},deps:[]},{provide:m.lri,useClass:m.dDg,deps:[m.R0b,m.eoX,m.rWj]},{provide:m.dDg,useClass:m.dDg,deps:[m.R0b,m.eoX,m.rWj]}],X=[{provide:m.zSh,useValue:"root"},{provide:m.qLn,useFactory:function ne(){return new m.qLn},deps:[]},{provide:z,useClass:Me,multi:!0,deps:[e.K0,m.R0b,m.Lbi]},{provide:z,useClass:nt,multi:!0,deps:[e.K0]},{provide:pe,useClass:pe,deps:[$,_e,m.AFp]},{provide:m.FYo,useExisting:pe},{provide:q,useExisting:_e},{provide:_e,useClass:_e,deps:[e.K0]},{provide:$,useClass:$,deps:[z,m.R0b]},{provide:e.JF,useClass:F,deps:[]},[]];let r=(()=>{class Nt{constructor(yt){}static withServerTransition(yt){return{ngModule:Nt,providers:[{provide:m.AFp,useValue:yt.appId},{provide:S,useExisting:m.AFp},v]}}}return Nt.\u0275fac=function(yt){return new(yt||Nt)(m.LFG(it,12))},Nt.\u0275mod=m.oAB({type:Nt}),Nt.\u0275inj=m.cJS({providers:[...X,...oe],imports:[e.ez,m.hGG]}),Nt})(),i=(()=>{class Nt{constructor(yt){this._doc=yt}getTitle(){return this._doc.title}setTitle(yt){this._doc.title=yt||""}}return Nt.\u0275fac=function(yt){return new(yt||Nt)(m.LFG(e.K0))},Nt.\u0275prov=m.Yz7({token:Nt,factory:function(yt){let Ft=null;return Ft=yt?new yt:function a(){return new i((0,m.LFG)(e.K0))}(),Ft},providedIn:"root"}),Nt})();typeof window<"u"&&window;let Qt=(()=>{class Nt{}return Nt.\u0275fac=function(yt){return new(yt||Nt)},Nt.\u0275prov=m.Yz7({token:Nt,factory:function(yt){let Ft=null;return Ft=yt?new(yt||Nt):m.LFG(an),Ft},providedIn:"root"}),Nt})(),an=(()=>{class Nt extends Qt{constructor(yt){super(),this._doc=yt}sanitize(yt,Ft){if(null==Ft)return null;switch(yt){case m.q3G.NONE:return Ft;case m.q3G.HTML:return(0,m.qzn)(Ft,"HTML")?(0,m.z3N)(Ft):(0,m.EiD)(this._doc,String(Ft)).toString();case m.q3G.STYLE:return(0,m.qzn)(Ft,"Style")?(0,m.z3N)(Ft):Ft;case m.q3G.SCRIPT:if((0,m.qzn)(Ft,"Script"))return(0,m.z3N)(Ft);throw new Error("unsafe value used in a script context");case m.q3G.URL:return(0,m.qzn)(Ft,"URL")?(0,m.z3N)(Ft):(0,m.mCW)(String(Ft));case m.q3G.RESOURCE_URL:if((0,m.qzn)(Ft,"ResourceURL"))return(0,m.z3N)(Ft);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${yt} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(yt){return(0,m.JVY)(yt)}bypassSecurityTrustStyle(yt){return(0,m.L6k)(yt)}bypassSecurityTrustScript(yt){return(0,m.eBb)(yt)}bypassSecurityTrustUrl(yt){return(0,m.LAX)(yt)}bypassSecurityTrustResourceUrl(yt){return(0,m.pB0)(yt)}}return Nt.\u0275fac=function(yt){return new(yt||Nt)(m.LFG(e.K0))},Nt.\u0275prov=m.Yz7({token:Nt,factory:function(yt){let Ft=null;return Ft=yt?new yt:function Gt(Nt){return new an(Nt.get(e.K0))}(m.LFG(m.zs3)),Ft},providedIn:"root"}),Nt})()},94364:(Qe,he,u)=>{"use strict";u.d(he,{gz:()=>Ti,m2:()=>Wn,OD:()=>nr,GZ:()=>ol,wN:()=>cs,F0:()=>Si,rH:()=>yo,yS:()=>jo,Bz:()=>ai,lC:()=>Wr});var e=u(94650),m=u(69751),A=u(50727),w=u(54482),p=u(25403);function g(){return(0,w.e)((ee,se)=>{let j=null;ee._refCount++;const ve=(0,p.x)(se,void 0,void 0,void 0,()=>{if(!ee||ee._refCount<=0||0<--ee._refCount)return void(j=null);const Ne=ee._connection,gt=j;j=null,Ne&&(!gt||Ne===gt)&&Ne.unsubscribe(),se.unsubscribe()});ee.subscribe(ve),ve.closed||(j=ee.connect())})}class T extends m.y{constructor(se,j){super(),this.source=se,this.subjectFactory=j,this._subject=null,this._refCount=0,this._connection=null,(0,w.A)(se)&&(this.lift=se.lift)}_subscribe(se){return this.getSubject().subscribe(se)}getSubject(){const se=this._subject;return(!se||se.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:se}=this;this._subject=this._connection=null,se?.unsubscribe()}connect(){let se=this._connection;if(!se){se=this._connection=new A.w0;const j=this.getSubject();se.add(this.source.subscribe((0,p.x)(j,void 0,()=>{this._teardown(),j.complete()},ve=>{this._teardown(),j.error(ve)},()=>this._teardown()))),se.closed&&(this._connection=null,se=A.w0.EMPTY)}return se}refCount(){return g()(this)}}var E=u(32076),S=u(39646),R=u(61135),v=u(86805),D=u(39841),F=u(97272),z=u(49770),$=u(89635),G=u(62843),q=u(60515),_e=u(77579),ce=u(36895),Te=u(57359);function b(ee,se){return(0,w.e)((0,Te.U)(ee,se,arguments.length>=2,!0))}var H=u(39300);function L(ee){return ee<=0?()=>q.E:(0,w.e)((se,j)=>{let ve=[];se.subscribe((0,p.x)(j,Ne=>{ve.push(Ne),ee{for(const Ne of ve)j.next(Ne);j.complete()},void 0,()=>{ve=null}))})}var V=u(18068),Q=u(46590),ae=u(44671);function xe(ee,se){const j=arguments.length>=2;return ve=>ve.pipe(ee?(0,H.h)((Ne,gt)=>ee(Ne,gt,ve)):ae.y,L(1),j?(0,Q.d)(se):(0,V.T)(()=>new v.K))}var ge=u(54004),Se=u(63900),Be=u(95698),pe=u(68675),$e=u(86099),Ce=u(50590),de=u(24351),re=u(18505),B=u(70262),N=u(22529),Me=u(69718),Y=u(28746),be=u(8189),De=u(11481);const We="primary";class Pe{constructor(se){this.params=se||{}}has(se){return Object.prototype.hasOwnProperty.call(this.params,se)}get(se){if(this.has(se)){const j=this.params[se];return Array.isArray(j)?j[0]:j}return null}getAll(se){if(this.has(se)){const j=this.params[se];return Array.isArray(j)?j:[j]}return[]}get keys(){return Object.keys(this.params)}}function nt(ee){return new Pe(ee)}function Ye(ee,se,j){const ve=j.path.split("/");if(ve.length>ee.length||"full"===j.pathMatch&&(se.hasChildren()||ve.lengthve[gt]===Ne)}return ee===se}function le(ee){return Array.prototype.concat.apply([],ee)}function ne(ee){return ee.length>0?ee[ee.length-1]:null}function Ee(ee,se){for(const j in ee)ee.hasOwnProperty(j)&&se(ee[j],j)}function ot(ee){return(0,e.CqO)(ee)?ee:(0,e.QGY)(ee)?(0,E.D)(Promise.resolve(ee)):(0,S.of)(ee)}const X={exact:function c(ee,se,j){if(!k(ee.segments,se.segments)||!n(ee.segments,se.segments,j)||ee.numberOfChildren!==se.numberOfChildren)return!1;for(const ve in se.children)if(!ee.children[ve]||!c(ee.children[ve],se.children[ve],j))return!1;return!0},subset:i},r={exact:function _(ee,se){return J(ee,se)},subset:function a(ee,se){return Object.keys(se).length<=Object.keys(ee).length&&Object.keys(se).every(j=>Xe(ee[j],se[j]))},ignored:()=>!0};function s(ee,se,j){return X[j.paths](ee.root,se.root,j.matrixParams)&&r[j.queryParams](ee.queryParams,se.queryParams)&&!("exact"===j.fragment&&ee.fragment!==se.fragment)}function i(ee,se,j){return t(ee,se,se.segments,j)}function t(ee,se,j,ve){if(ee.segments.length>j.length){const Ne=ee.segments.slice(0,j.length);return!(!k(Ne,j)||se.hasChildren()||!n(Ne,j,ve))}if(ee.segments.length===j.length){if(!k(ee.segments,j)||!n(ee.segments,j,ve))return!1;for(const Ne in se.children)if(!ee.children[Ne]||!i(ee.children[Ne],se.children[Ne],ve))return!1;return!0}{const Ne=j.slice(0,ee.segments.length),gt=j.slice(ee.segments.length);return!!(k(ee.segments,Ne)&&n(ee.segments,Ne,ve)&&ee.children[We])&&t(ee.children[We],se,gt,ve)}}function n(ee,se,j){return se.every((ve,Ne)=>r[j](ee[Ne].parameters,ve.parameters))}class o{constructor(se,j,ve){this.root=se,this.queryParams=j,this.fragment=ve}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=nt(this.queryParams)),this._queryParamMap}toString(){return Ue.serialize(this)}}class l{constructor(se,j){this.segments=se,this.children=j,this.parent=null,Ee(j,(ve,Ne)=>ve.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return at(this)}}class d{constructor(se,j){this.path=se,this.parameters=j}get parameterMap(){return this._parameterMap||(this._parameterMap=nt(this.parameters)),this._parameterMap}toString(){return st(this)}}function k(ee,se){return ee.length===se.length&&ee.every((j,ve)=>j.path===se[ve].path)}let tt=(()=>{class ee{}return ee.\u0275fac=function(j){return new(j||ee)},ee.\u0275prov=e.Yz7({token:ee,factory:function(){return new ct},providedIn:"root"}),ee})();class ct{parse(se){const j=new an(se);return new o(j.parseRootSegment(),j.parseQueryParams(),j.parseFragment())}serialize(se){const j=`/${fe(se.root,!0)}`,ve=function _t(ee){const se=Object.keys(ee).map(j=>{const ve=ee[j];return Array.isArray(ve)?ve.map(Ne=>`${Ke(j)}=${Ke(Ne)}`).join("&"):`${Ke(j)}=${Ke(ve)}`}).filter(j=>!!j);return se.length?`?${se.join("&")}`:""}(se.queryParams);return`${j}${ve}${"string"==typeof se.fragment?`#${function je(ee){return encodeURI(ee)}(se.fragment)}`:""}`}}const Ue=new ct;function at(ee){return ee.segments.map(se=>st(se)).join("/")}function fe(ee,se){if(!ee.hasChildren())return at(ee);if(se){const j=ee.children[We]?fe(ee.children[We],!1):"",ve=[];return Ee(ee.children,(Ne,gt)=>{gt!==We&&ve.push(`${gt}:${fe(Ne,!1)}`)}),ve.length>0?`${j}(${ve.join("//")})`:j}{const j=function Ie(ee,se){let j=[];return Ee(ee.children,(ve,Ne)=>{Ne===We&&(j=j.concat(se(ve,Ne)))}),Ee(ee.children,(ve,Ne)=>{Ne!==We&&(j=j.concat(se(ve,Ne)))}),j}(ee,(ve,Ne)=>Ne===We?[fe(ee.children[We],!1)]:[`${Ne}:${fe(ve,!1)}`]);return 1===Object.keys(ee.children).length&&null!=ee.children[We]?`${at(ee)}/${j[0]}`:`${at(ee)}/(${j.join("//")})`}}function Oe(ee){return encodeURIComponent(ee).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ke(ee){return Oe(ee).replace(/%3B/gi,";")}function Le(ee){return Oe(ee).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ie(ee){return decodeURIComponent(ee)}function Ae(ee){return ie(ee.replace(/\+/g,"%20"))}function st(ee){return`${Le(ee.path)}${function ze(ee){return Object.keys(ee).map(se=>`;${Le(se)}=${Le(ee[se])}`).join("")}(ee.parameters)}`}const me=/^[^\/()?;=#]+/;function qe(ee){const se=ee.match(me);return se?se[0]:""}const rt=/^[^=?&#]+/,Qt=/^[^&#]+/;class an{constructor(se){this.url=se,this.remaining=se}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new l([],{}):new l([],this.parseChildren())}parseQueryParams(){const se={};if(this.consumeOptional("?"))do{this.parseQueryParam(se)}while(this.consumeOptional("&"));return se}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const se=[];for(this.peekStartsWith("(")||se.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),se.push(this.parseSegment());let j={};this.peekStartsWith("/(")&&(this.capture("/"),j=this.parseParens(!0));let ve={};return this.peekStartsWith("(")&&(ve=this.parseParens(!1)),(se.length>0||Object.keys(j).length>0)&&(ve[We]=new l(se,j)),ve}parseSegment(){const se=qe(this.remaining);if(""===se&&this.peekStartsWith(";"))throw new e.vHH(4009,!1);return this.capture(se),new d(ie(se),this.parseMatrixParams())}parseMatrixParams(){const se={};for(;this.consumeOptional(";");)this.parseParam(se);return se}parseParam(se){const j=qe(this.remaining);if(!j)return;this.capture(j);let ve="";if(this.consumeOptional("=")){const Ne=qe(this.remaining);Ne&&(ve=Ne,this.capture(ve))}se[ie(j)]=ie(ve)}parseQueryParam(se){const j=function Mt(ee){const se=ee.match(rt);return se?se[0]:""}(this.remaining);if(!j)return;this.capture(j);let ve="";if(this.consumeOptional("=")){const xt=function Gt(ee){const se=ee.match(Qt);return se?se[0]:""}(this.remaining);xt&&(ve=xt,this.capture(ve))}const Ne=Ae(j),gt=Ae(ve);if(se.hasOwnProperty(Ne)){let xt=se[Ne];Array.isArray(xt)||(xt=[xt],se[Ne]=xt),xt.push(gt)}else se[Ne]=gt}parseParens(se){const j={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const ve=qe(this.remaining),Ne=this.remaining[ve.length];if("/"!==Ne&&")"!==Ne&&";"!==Ne)throw new e.vHH(4010,!1);let gt;ve.indexOf(":")>-1?(gt=ve.slice(0,ve.indexOf(":")),this.capture(gt),this.capture(":")):se&&(gt=We);const xt=this.parseChildren();j[gt]=1===Object.keys(xt).length?xt[We]:new l([],xt),this.consumeOptional("//")}return j}peekStartsWith(se){return this.remaining.startsWith(se)}consumeOptional(se){return!!this.peekStartsWith(se)&&(this.remaining=this.remaining.substring(se.length),!0)}capture(se){if(!this.consumeOptional(se))throw new e.vHH(4011,!1)}}function hn(ee){return ee.segments.length>0?new l([],{[We]:ee}):ee}function Nt(ee){const se={};for(const ve of Object.keys(ee.children)){const gt=Nt(ee.children[ve]);(gt.segments.length>0||gt.hasChildren())&&(se[ve]=gt)}return function Ht(ee){if(1===ee.numberOfChildren&&ee.children[We]){const se=ee.children[We];return new l(ee.segments.concat(se.segments),se.children)}return ee}(new l(ee.segments,se))}function yt(ee){return ee instanceof o}function pn(ee,se,j,ve,Ne){var gt;if(0===j.length)return Ot(se.root,se.root,se.root,ve,Ne);const xt=function wt(ee){if("string"==typeof ee[0]&&1===ee.length&&"/"===ee[0])return new lt(!0,0,ee);let se=0,j=!1;const ve=ee.reduce((Ne,gt,xt)=>{if("object"==typeof gt&&null!=gt){if(gt.outlets){const Bt={};return Ee(gt.outlets,(Jt,dn)=>{Bt[dn]="string"==typeof Jt?Jt.split("/"):Jt}),[...Ne,{outlets:Bt}]}if(gt.segmentPath)return[...Ne,gt.segmentPath]}return"string"!=typeof gt?[...Ne,gt]:0===xt?(gt.split("/").forEach((Bt,Jt)=>{0==Jt&&"."===Bt||(0==Jt&&""===Bt?j=!0:".."===Bt?se++:""!=Bt&&Ne.push(Bt))}),Ne):[...Ne,gt]},[]);return new lt(j,se,ve)}(j);if(xt.toRoot())return Ot(se.root,se.root,new l([],{}),ve,Ne);const Jt=function Bt(mn){var bn;const Pn=function vt(ee,se,j,ve){if(ee.isAbsolute)return new W(se.root,!0,0);if(-1===ve)return new W(j,j===se.root,0);return function Pt(ee,se,j){let ve=ee,Ne=se,gt=j;for(;gt>Ne;){if(gt-=Ne,ve=ve.parent,!ve)throw new e.vHH(4005,!1);Ne=ve.segments.length}return new W(ve,!1,Ne-gt)}(j,ve+(Hn(ee.commands[0])?0:1),ee.numberOfDoubleDots)}(xt,se,null===(bn=ee.snapshot)||void 0===bn?void 0:bn._urlSegment,mn),hi=Pn.processChildren?Gn(Pn.segmentGroup,Pn.index,xt.commands):Tn(Pn.segmentGroup,Pn.index,xt.commands);return Ot(se.root,Pn.segmentGroup,hi,ve,Ne)}(null===(gt=ee.snapshot)||void 0===gt?void 0:gt._lastPathIndex);return Jt}function Hn(ee){return"object"==typeof ee&&null!=ee&&!ee.outlets&&!ee.segmentPath}function Ct(ee){return"object"==typeof ee&&null!=ee&&ee.outlets}function Ot(ee,se,j,ve,Ne){let xt,gt={};ve&&Ee(ve,(Jt,dn)=>{gt[dn]=Array.isArray(Jt)?Jt.map(mn=>`${mn}`):`${Jt}`}),xt=ee===se?j:pt(ee,se,j);const Bt=hn(Nt(xt));return new o(Bt,gt,Ne)}function pt(ee,se,j){const ve={};return Ee(ee.children,(Ne,gt)=>{ve[gt]=Ne===se?j:pt(Ne,se,j)}),new l(ee.segments,ve)}class lt{constructor(se,j,ve){if(this.isAbsolute=se,this.numberOfDoubleDots=j,this.commands=ve,se&&ve.length>0&&Hn(ve[0]))throw new e.vHH(4003,!1);const Ne=ve.find(Ct);if(Ne&&Ne!==ne(ve))throw new e.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class W{constructor(se,j,ve){this.segmentGroup=se,this.processChildren=j,this.index=ve}}function Tn(ee,se,j){if(ee||(ee=new l([],{})),0===ee.segments.length&&ee.hasChildren())return Gn(ee,se,j);const ve=function Ln(ee,se,j){let ve=0,Ne=se;const gt={match:!1,pathIndex:0,commandIndex:0};for(;Ne=j.length)return gt;const xt=ee.segments[Ne],Bt=j[ve];if(Ct(Bt))break;const Jt=`${Bt}`,dn=ve0&&void 0===Jt)break;if(Jt&&dn&&"object"==typeof dn&&void 0===dn.outlets){if(!Qn(Jt,dn,xt))return gt;ve+=2}else{if(!Qn(Jt,{},xt))return gt;ve++}Ne++}return{match:!0,pathIndex:Ne,commandIndex:ve}}(ee,se,j),Ne=j.slice(ve.commandIndex);if(ve.match&&ve.pathIndex{"string"==typeof gt&&(gt=[gt]),null!==gt&&(Ne[xt]=Tn(ee.children[xt],se,gt))}),Ee(ee.children,(gt,xt)=>{void 0===ve[xt]&&(Ne[xt]=gt)}),new l(ee.segments,Ne)}}function qn(ee,se,j){const ve=ee.segments.slice(0,se);let Ne=0;for(;Ne{"string"==typeof j&&(j=[j]),null!==j&&(se[ve]=qn(new l([],{}),0,j))}),se}function ci(ee){const se={};return Ee(ee,(j,ve)=>se[ve]=`${j}`),se}function Qn(ee,se,j){return ee==j.path&&J(se,j.parameters)}class Bn{constructor(se,j){this.id=se,this.url=j}}class nr extends Bn{constructor(se,j,ve="imperative",Ne=null){super(se,j),this.type=0,this.navigationTrigger=ve,this.restoredState=Ne}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Wn extends Bn{constructor(se,j,ve){super(se,j),this.urlAfterRedirects=ve,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class ri extends Bn{constructor(se,j,ve,Ne){super(se,j),this.reason=ve,this.code=Ne,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Qi extends Bn{constructor(se,j,ve,Ne){super(se,j),this.error=ve,this.target=Ne,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class ji extends Bn{constructor(se,j,ve,Ne){super(se,j),this.urlAfterRedirects=ve,this.state=Ne,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class vi extends Bn{constructor(se,j,ve,Ne){super(se,j),this.urlAfterRedirects=ve,this.state=Ne,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class wi extends Bn{constructor(se,j,ve,Ne,gt){super(se,j),this.urlAfterRedirects=ve,this.state=Ne,this.shouldActivate=gt,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class cr extends Bn{constructor(se,j,ve,Ne){super(se,j),this.urlAfterRedirects=ve,this.state=Ne,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Or extends Bn{constructor(se,j,ve,Ne){super(se,j),this.urlAfterRedirects=ve,this.state=Ne,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class dr{constructor(se){this.route=se,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class bi{constructor(se){this.route=se,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class ur{constructor(se){this.snapshot=se,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class hr{constructor(se){this.snapshot=se,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class zr{constructor(se){this.snapshot=se,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ei{constructor(se){this.snapshot=se,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class yr{constructor(se,j,ve){this.routerEvent=se,this.position=j,this.anchor=ve,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class nn{constructor(se){this._root=se}get root(){return this._root.value}parent(se){const j=this.pathFromRoot(se);return j.length>1?j[j.length-2]:null}children(se){const j=ht(se,this._root);return j?j.children.map(ve=>ve.value):[]}firstChild(se){const j=ht(se,this._root);return j&&j.children.length>0?j.children[0].value:null}siblings(se){const j=Vt(se,this._root);return j.length<2?[]:j[j.length-2].children.map(Ne=>Ne.value).filter(Ne=>Ne!==se)}pathFromRoot(se){return Vt(se,this._root).map(j=>j.value)}}function ht(ee,se){if(ee===se.value)return se;for(const j of se.children){const ve=ht(ee,j);if(ve)return ve}return null}function Vt(ee,se){if(ee===se.value)return[se];for(const j of se.children){const ve=Vt(ee,j);if(ve.length)return ve.unshift(se),ve}return[]}class Zt{constructor(se,j){this.value=se,this.children=j}toString(){return`TreeNode(${this.value})`}}function on(ee){const se={};return ee&&ee.children.forEach(j=>se[j.value.outlet]=j),se}class Dn extends nn{constructor(se,j){super(se),this.snapshot=j,Ni(this,se)}toString(){return this.snapshot.toString()}}function Fn(ee,se){const j=function Yn(ee,se){const xt=new Zi([],{},{},"",{},We,se,null,ee.root,-1,{});return new fr("",new Zt(xt,[]))}(ee,se),ve=new R.X([new d("",{})]),Ne=new R.X({}),gt=new R.X({}),xt=new R.X({}),Bt=new R.X(""),Jt=new Ti(ve,Ne,xt,Bt,gt,We,se,j.root);return Jt.snapshot=j.root,new Dn(new Zt(Jt,[]),j)}class Ti{constructor(se,j,ve,Ne,gt,xt,Bt,Jt){this.url=se,this.params=j,this.queryParams=ve,this.fragment=Ne,this.data=gt,this.outlet=xt,this.component=Bt,this._futureSnapshot=Jt}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,ge.U)(se=>nt(se)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,ge.U)(se=>nt(se)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Pi(ee,se="emptyOnly"){const j=ee.pathFromRoot;let ve=0;if("always"!==se)for(ve=j.length-1;ve>=1;){const Ne=j[ve],gt=j[ve-1];if(Ne.routeConfig&&""===Ne.routeConfig.path)ve--;else{if(gt.component)break;ve--}}return function pr(ee){return ee.reduce((se,j)=>{var ve;return{params:{...se.params,...j.params},data:{...se.data,...j.data},resolve:{...j.data,...se.resolve,...null===(ve=j.routeConfig)||void 0===ve?void 0:ve.data,...j._resolvedData}}},{params:{},data:{},resolve:{}})}(j.slice(ve))}class Zi{constructor(se,j,ve,Ne,gt,xt,Bt,Jt,dn,mn,bn,Pn){this.url=se,this.params=j,this.queryParams=ve,this.fragment=Ne,this.data=gt,this.outlet=xt,this.component=Bt,this.routeConfig=Jt,this._urlSegment=dn,this._lastPathIndex=mn,this._correctedLastPathIndex=Pn??mn,this._resolve=bn}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=nt(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=nt(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(ve=>ve.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class fr extends nn{constructor(se,j){super(j),this.url=se,Ni(this,j)}toString(){return wr(this._root)}}function Ni(ee,se){se.value._routerState=ee,se.children.forEach(j=>Ni(ee,j))}function wr(ee){const se=ee.children.length>0?` { ${ee.children.map(wr).join(", ")} } `:"";return`${ee.value}${se}`}function Gi(ee){if(ee.snapshot){const se=ee.snapshot,j=ee._futureSnapshot;ee.snapshot=j,J(se.queryParams,j.queryParams)||ee.queryParams.next(j.queryParams),se.fragment!==j.fragment&&ee.fragment.next(j.fragment),J(se.params,j.params)||ee.params.next(j.params),function Tt(ee,se){if(ee.length!==se.length)return!1;for(let j=0;jJ(j.parameters,se[ve].parameters))}(ee.url,se.url);return j&&!(!ee.parent!=!se.parent)&&(!ee.parent||zi(ee.parent,se.parent))}function dt(ee,se,j){if(j&&ee.shouldReuseRoute(se.value,j.value.snapshot)){const ve=j.value;ve._futureSnapshot=se.value;const Ne=function Ut(ee,se,j){return se.children.map(ve=>{for(const Ne of j.children)if(ee.shouldReuseRoute(ve.value,Ne.value.snapshot))return dt(ee,ve,Ne);return dt(ee,ve)})}(ee,se,j);return new Zt(ve,Ne)}{if(ee.shouldAttach(se.value)){const gt=ee.retrieve(se.value);if(null!==gt){const xt=gt.route;return xt.value._futureSnapshot=se.value,xt.children=se.children.map(Bt=>dt(ee,Bt)),xt}}const ve=function Je(ee){return new Ti(new R.X(ee.url),new R.X(ee.params),new R.X(ee.queryParams),new R.X(ee.fragment),new R.X(ee.data),ee.outlet,ee.component,ee)}(se.value),Ne=se.children.map(gt=>dt(ee,gt));return new Zt(ve,Ne)}}const Et="ngNavigationCancelingError";function zt(ee,se){const{redirectTo:j,navigationBehaviorOptions:ve}=yt(se)?{redirectTo:se,navigationBehaviorOptions:void 0}:se,Ne=un(!1,0,se);return Ne.url=j,Ne.navigationBehaviorOptions=ve,Ne}function un(ee,se,j){const ve=new Error("NavigationCancelingError: "+(ee||""));return ve[Et]=!0,ve.cancellationCode=se,j&&(ve.url=j),ve}function gn(ee){return Jn(ee)&&yt(ee.url)}function Jn(ee){return ee&&ee[Et]}class si{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new mi,this.attachRef=null}}let mi=(()=>{class ee{constructor(){this.contexts=new Map}onChildOutletCreated(j,ve){const Ne=this.getOrCreateContext(j);Ne.outlet=ve,this.contexts.set(j,Ne)}onChildOutletDestroyed(j){const ve=this.getContext(j);ve&&(ve.outlet=null,ve.attachRef=null)}onOutletDeactivated(){const j=this.contexts;return this.contexts=new Map,j}onOutletReAttached(j){this.contexts=j}getOrCreateContext(j){let ve=this.getContext(j);return ve||(ve=new si,this.contexts.set(j,ve)),ve}getContext(j){return this.contexts.get(j)||null}}return ee.\u0275fac=function(j){return new(j||ee)},ee.\u0275prov=e.Yz7({token:ee,factory:ee.\u0275fac,providedIn:"root"}),ee})();const Ii=!1;let Wr=(()=>{class ee{constructor(j,ve,Ne,gt,xt){this.parentContexts=j,this.location=ve,this.changeDetector=gt,this.environmentInjector=xt,this.activated=null,this._activatedRoute=null,this.activateEvents=new e.vpe,this.deactivateEvents=new e.vpe,this.attachEvents=new e.vpe,this.detachEvents=new e.vpe,this.name=Ne||We,j.onChildOutletCreated(this.name,this)}ngOnDestroy(){var j;(null===(j=this.parentContexts.getContext(this.name))||void 0===j?void 0:j.outlet)===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const j=this.parentContexts.getContext(this.name);j&&j.route&&(j.attachRef?this.attach(j.attachRef,j.route):this.activateWith(j.route,j.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new e.vHH(4012,Ii);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new e.vHH(4012,Ii);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new e.vHH(4012,Ii);this.location.detach();const j=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(j.instance),j}attach(j,ve){this.activated=j,this._activatedRoute=ve,this.location.insert(j.hostView),this.attachEvents.emit(j.instance)}deactivate(){if(this.activated){const j=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(j)}}activateWith(j,ve){if(this.isActivated)throw new e.vHH(4013,Ii);this._activatedRoute=j;const Ne=this.location,xt=j._futureSnapshot.component,Bt=this.parentContexts.getOrCreateContext(this.name).children,Jt=new Xn(j,Bt,Ne.injector);if(ve&&function ir(ee){return!!ee.resolveComponentFactory}(ve)){const dn=ve.resolveComponentFactory(xt);this.activated=Ne.createComponent(dn,Ne.length,Jt)}else this.activated=Ne.createComponent(xt,{index:Ne.length,injector:Jt,environmentInjector:ve??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return ee.\u0275fac=function(j){return new(j||ee)(e.Y36(mi),e.Y36(e.s_b),e.$8M("name"),e.Y36(e.sBO),e.Y36(e.lqb))},ee.\u0275dir=e.lG2({type:ee,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),ee})();class Xn{constructor(se,j,ve){this.route=se,this.childContexts=j,this.parent=ve}get(se,j){return se===Ti?this.route:se===mi?this.childContexts:this.parent.get(se,j)}}let Mr=(()=>{class ee{}return ee.\u0275fac=function(j){return new(j||ee)},ee.\u0275cmp=e.Xpm({type:ee,selectors:[["ng-component"]],decls:1,vars:0,template:function(j,ve){1&j&&e._UZ(0,"router-outlet")},dependencies:[Wr],encapsulation:2}),ee})();function rr(ee,se){var j;return ee.providers&&!ee._injector&&(ee._injector=(0,e.MMx)(ee.providers,se,`Route: ${ee.path}`)),null!==(j=ee._injector)&&void 0!==j?j:se}function bt(ee){const se=ee.children&&ee.children.map(bt),j=se?{...ee,children:se}:{...ee};return!j.component&&!j.loadComponent&&(se||j.loadChildren)&&j.outlet&&j.outlet!==We&&(j.component=Mr),j}function Lt(ee){return ee.outlet||We}function $t(ee,se){const j=ee.filter(ve=>Lt(ve)===se);return j.push(...ee.filter(ve=>Lt(ve)!==se)),j}function Yt(ee){var se;if(!ee)return null;if(null!==(se=ee.routeConfig)&&void 0!==se&&se._injector)return ee.routeConfig._injector;for(let j=ee.parent;j;j=j.parent){const ve=j.routeConfig;if(null!=ve&&ve._loadedInjector)return ve._loadedInjector;if(null!=ve&&ve._injector)return ve._injector}return null}class ti{constructor(se,j,ve,Ne){this.routeReuseStrategy=se,this.futureState=j,this.currState=ve,this.forwardEvent=Ne}activate(se){const j=this.futureState._root,ve=this.currState?this.currState._root:null;this.deactivateChildRoutes(j,ve,se),Gi(this.futureState.root),this.activateChildRoutes(j,ve,se)}deactivateChildRoutes(se,j,ve){const Ne=on(j);se.children.forEach(gt=>{const xt=gt.value.outlet;this.deactivateRoutes(gt,Ne[xt],ve),delete Ne[xt]}),Ee(Ne,(gt,xt)=>{this.deactivateRouteAndItsChildren(gt,ve)})}deactivateRoutes(se,j,ve){const Ne=se.value,gt=j?j.value:null;if(Ne===gt)if(Ne.component){const xt=ve.getContext(Ne.outlet);xt&&this.deactivateChildRoutes(se,j,xt.children)}else this.deactivateChildRoutes(se,j,ve);else gt&&this.deactivateRouteAndItsChildren(j,ve)}deactivateRouteAndItsChildren(se,j){se.value.component&&this.routeReuseStrategy.shouldDetach(se.value.snapshot)?this.detachAndStoreRouteSubtree(se,j):this.deactivateRouteAndOutlet(se,j)}detachAndStoreRouteSubtree(se,j){const ve=j.getContext(se.value.outlet),Ne=ve&&se.value.component?ve.children:j,gt=on(se);for(const xt of Object.keys(gt))this.deactivateRouteAndItsChildren(gt[xt],Ne);if(ve&&ve.outlet){const xt=ve.outlet.detach(),Bt=ve.children.onOutletDeactivated();this.routeReuseStrategy.store(se.value.snapshot,{componentRef:xt,route:se,contexts:Bt})}}deactivateRouteAndOutlet(se,j){const ve=j.getContext(se.value.outlet),Ne=ve&&se.value.component?ve.children:j,gt=on(se);for(const xt of Object.keys(gt))this.deactivateRouteAndItsChildren(gt[xt],Ne);ve&&ve.outlet&&(ve.outlet.deactivate(),ve.children.onOutletDeactivated(),ve.attachRef=null,ve.resolver=null,ve.route=null)}activateChildRoutes(se,j,ve){const Ne=on(j);se.children.forEach(gt=>{this.activateRoutes(gt,Ne[gt.value.outlet],ve),this.forwardEvent(new Ei(gt.value.snapshot))}),se.children.length&&this.forwardEvent(new hr(se.value.snapshot))}activateRoutes(se,j,ve){const Ne=se.value,gt=j?j.value:null;if(Gi(Ne),Ne===gt)if(Ne.component){const Bt=ve.getOrCreateContext(Ne.outlet);this.activateChildRoutes(se,j,Bt.children)}else this.activateChildRoutes(se,j,ve);else if(Ne.component){const Bt=ve.getOrCreateContext(Ne.outlet);if(this.routeReuseStrategy.shouldAttach(Ne.snapshot)){const Jt=this.routeReuseStrategy.retrieve(Ne.snapshot);this.routeReuseStrategy.store(Ne.snapshot,null),Bt.children.onOutletReAttached(Jt.contexts),Bt.attachRef=Jt.componentRef,Bt.route=Jt.route.value,Bt.outlet&&Bt.outlet.attach(Jt.componentRef,Jt.route.value),Gi(Jt.route.value),this.activateChildRoutes(se,null,Bt.children)}else{var xt;const Jt=Yt(Ne.snapshot),dn=null!==(xt=Jt?.get(e._Vd))&&void 0!==xt?xt:null;Bt.attachRef=null,Bt.route=Ne,Bt.resolver=dn,Bt.injector=Jt,Bt.outlet&&Bt.outlet.activateWith(Ne,Bt.injector),this.activateChildRoutes(se,null,Bt.children)}}else this.activateChildRoutes(se,null,ve)}}class ni{constructor(se){this.path=se,this.route=this.path[this.path.length-1]}}class ei{constructor(se,j){this.component=se,this.route=j}}function zn(ee,se,j){const ve=ee._root;return oi(ve,se?se._root:null,j,[ve.value])}function Kn(ee,se,j){return(Yt(se)??j).get(ee)}function oi(ee,se,j,ve,Ne={canDeactivateChecks:[],canActivateChecks:[]}){const gt=on(se);return ee.children.forEach(xt=>{(function rn(ee,se,j,ve,Ne={canDeactivateChecks:[],canActivateChecks:[]}){const gt=ee.value,xt=se?se.value:null,Bt=j?j.getContext(ee.value.outlet):null;if(xt&>.routeConfig===xt.routeConfig){const Jt=function Nn(ee,se,j){if("function"==typeof j)return j(ee,se);switch(j){case"pathParamsChange":return!k(ee.url,se.url);case"pathParamsOrQueryParamsChange":return!k(ee.url,se.url)||!J(ee.queryParams,se.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!zi(ee,se)||!J(ee.queryParams,se.queryParams);default:return!zi(ee,se)}}(xt,gt,gt.routeConfig.runGuardsAndResolvers);Jt?Ne.canActivateChecks.push(new ni(ve)):(gt.data=xt.data,gt._resolvedData=xt._resolvedData),oi(ee,se,gt.component?Bt?Bt.children:null:j,ve,Ne),Jt&&Bt&&Bt.outlet&&Bt.outlet.isActivated&&Ne.canDeactivateChecks.push(new ei(Bt.outlet.component,xt))}else xt&&qi(se,Bt,Ne),Ne.canActivateChecks.push(new ni(ve)),oi(ee,null,gt.component?Bt?Bt.children:null:j,ve,Ne)})(xt,gt[xt.value.outlet],j,ve.concat([xt.value]),Ne),delete gt[xt.value.outlet]}),Ee(gt,(xt,Bt)=>qi(xt,j.getContext(Bt),Ne)),Ne}function qi(ee,se,j){const ve=on(ee),Ne=ee.value;Ee(ve,(gt,xt)=>{qi(gt,Ne.component?se?se.children.getContext(xt):null:se,j)}),j.canDeactivateChecks.push(new ei(Ne.component&&se&&se.outlet&&se.outlet.isActivated?se.outlet.component:null,Ne))}function Ri(ee){return"function"==typeof ee}function An(ee){return ee instanceof v.K||"EmptyError"===ee?.name}const di=Symbol("INITIAL_VALUE");function ii(){return(0,Se.w)(ee=>(0,D.a)(ee.map(se=>se.pipe((0,Be.q)(1),(0,pe.O)(di)))).pipe((0,ge.U)(se=>{for(const j of se)if(!0!==j){if(j===di)return di;if(!1===j||j instanceof o)return j}return!0}),(0,H.h)(se=>se!==di),(0,Be.q)(1)))}function ia(ee){return(0,$.z)((0,re.b)(se=>{if(yt(se))throw zt(0,se)}),(0,ge.U)(se=>!0===se))}const Lo={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Bo(ee,se,j,ve,Ne){const gt=_o(ee,se,j);return gt.matched?function ra(ee,se,j,ve){const Ne=se.canMatch;if(!Ne||0===Ne.length)return(0,S.of)(!0);const gt=Ne.map(xt=>{const Bt=ee.get(xt),Jt=function ye(ee){return ee&&Ri(ee.canMatch)}(Bt)?Bt.canMatch(se,j):Bt(se,j);return ot(Jt)});return(0,S.of)(gt).pipe(ii(),ia())}(ve=rr(se,ve),se,j).pipe((0,ge.U)(xt=>!0===xt?gt:{...Lo})):(0,S.of)(gt)}function _o(ee,se,j){var ve;if(""===se.path)return"full"===se.pathMatch&&(ee.hasChildren()||j.length>0)?{...Lo}:{matched:!0,consumedSegments:[],remainingSegments:j,parameters:{},positionalParamSegments:{}};const gt=(se.matcher||Ye)(j,ee,se);if(!gt)return{...Lo};const xt={};Ee(gt.posParams,(Jt,dn)=>{xt[dn]=Jt.path});const Bt=gt.consumed.length>0?{...xt,...gt.consumed[gt.consumed.length-1].parameters}:xt;return{matched:!0,consumedSegments:gt.consumed,remainingSegments:j.slice(gt.consumed.length),parameters:Bt,positionalParamSegments:null!==(ve=gt.posParams)&&void 0!==ve?ve:{}}}function kr(ee,se,j,ve,Ne="corrected"){if(j.length>0&&function es(ee,se,j){return j.some(ve=>Jr(ee,se,ve)&&Lt(ve)!==We)}(ee,j,ve)){const xt=new l(se,function ya(ee,se,j,ve){const Ne={};Ne[We]=ve,ve._sourceSegment=ee,ve._segmentIndexShift=se.length;for(const gt of j)if(""===gt.path&&Lt(gt)!==We){const xt=new l([],{});xt._sourceSegment=ee,xt._segmentIndexShift=se.length,Ne[Lt(gt)]=xt}return Ne}(ee,se,ve,new l(j,ee.children)));return xt._sourceSegment=ee,xt._segmentIndexShift=se.length,{segmentGroup:xt,slicedSegments:[]}}if(0===j.length&&function Qs(ee,se,j){return j.some(ve=>Jr(ee,se,ve))}(ee,j,ve)){const xt=new l(ee.segments,function Xa(ee,se,j,ve,Ne,gt){const xt={};for(const Bt of ve)if(Jr(ee,j,Bt)&&!Ne[Lt(Bt)]){const Jt=new l([],{});Jt._sourceSegment=ee,Jt._segmentIndexShift="legacy"===gt?ee.segments.length:se.length,xt[Lt(Bt)]=Jt}return{...Ne,...xt}}(ee,se,j,ve,ee.children,Ne));return xt._sourceSegment=ee,xt._segmentIndexShift=se.length,{segmentGroup:xt,slicedSegments:j}}const gt=new l(ee.segments,ee.children);return gt._sourceSegment=ee,gt._segmentIndexShift=se.length,{segmentGroup:gt,slicedSegments:j}}function Jr(ee,se,j){return(!(ee.hasChildren()||se.length>0)||"full"!==j.pathMatch)&&""===j.path}function Ks(ee,se,j,ve){return!!(Lt(ee)===ve||ve!==We&&Jr(se,j,ee))&&("**"===ee.path||_o(se,ee,j).matched)}function ts(ee,se,j){return 0===se.length&&!ee.children[j]}const Oi=!1;class gr{constructor(se){this.segmentGroup=se||null}}class ui{constructor(se){this.urlTree=se}}function no(ee){return(0,G._)(new gr(ee))}function qs(ee){return(0,G._)(new ui(ee))}class tl{constructor(se,j,ve,Ne,gt){this.injector=se,this.configLoader=j,this.urlSerializer=ve,this.urlTree=Ne,this.config=gt,this.allowRedirects=!0}apply(){const se=kr(this.urlTree.root,[],[],this.config).segmentGroup,j=new l(se.segments,se.children);return this.expandSegmentGroup(this.injector,this.config,j,We).pipe((0,ge.U)(gt=>this.createUrlTree(Nt(gt),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,B.K)(gt=>{if(gt instanceof ui)return this.allowRedirects=!1,this.match(gt.urlTree);throw gt instanceof gr?this.noMatchError(gt):gt}))}match(se){return this.expandSegmentGroup(this.injector,this.config,se.root,We).pipe((0,ge.U)(Ne=>this.createUrlTree(Nt(Ne),se.queryParams,se.fragment))).pipe((0,B.K)(Ne=>{throw Ne instanceof gr?this.noMatchError(Ne):Ne}))}noMatchError(se){return new e.vHH(4002,Oi)}createUrlTree(se,j,ve){const Ne=hn(se);return new o(Ne,j,ve)}expandSegmentGroup(se,j,ve,Ne){return 0===ve.segments.length&&ve.hasChildren()?this.expandChildren(se,j,ve).pipe((0,ge.U)(gt=>new l([],gt))):this.expandSegment(se,ve,j,ve.segments,Ne,!0)}expandChildren(se,j,ve){const Ne=[];for(const gt of Object.keys(ve.children))"primary"===gt?Ne.unshift(gt):Ne.push(gt);return(0,E.D)(Ne).pipe((0,de.b)(gt=>{const xt=ve.children[gt],Bt=$t(j,gt);return this.expandSegmentGroup(se,Bt,xt,gt).pipe((0,ge.U)(Jt=>({segment:Jt,outlet:gt})))}),b((gt,xt)=>(gt[xt.outlet]=xt.segment,gt),{}),xe())}expandSegment(se,j,ve,Ne,gt,xt){return(0,E.D)(ve).pipe((0,de.b)(Bt=>this.expandSegmentAgainstRoute(se,j,ve,Bt,Ne,gt,xt).pipe((0,B.K)(dn=>{if(dn instanceof gr)return(0,S.of)(null);throw dn}))),(0,Ce.P)(Bt=>!!Bt),(0,B.K)((Bt,Jt)=>{if(An(Bt))return ts(j,Ne,gt)?(0,S.of)(new l([],{})):no(j);throw Bt}))}expandSegmentAgainstRoute(se,j,ve,Ne,gt,xt,Bt){return Ks(Ne,j,gt,xt)?void 0===Ne.redirectTo?this.matchSegmentAgainstRoute(se,j,Ne,gt,xt):Bt&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(se,j,ve,Ne,gt,xt):no(j):no(j)}expandSegmentAgainstRouteUsingRedirect(se,j,ve,Ne,gt,xt){return"**"===Ne.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(se,ve,Ne,xt):this.expandRegularSegmentAgainstRouteUsingRedirect(se,j,ve,Ne,gt,xt)}expandWildCardWithParamsAgainstRouteUsingRedirect(se,j,ve,Ne){const gt=this.applyRedirectCommands([],ve.redirectTo,{});return ve.redirectTo.startsWith("/")?qs(gt):this.lineralizeSegments(ve,gt).pipe((0,$e.z)(xt=>{const Bt=new l(xt,{});return this.expandSegment(se,Bt,j,xt,Ne,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(se,j,ve,Ne,gt,xt){const{matched:Bt,consumedSegments:Jt,remainingSegments:dn,positionalParamSegments:mn}=_o(j,Ne,gt);if(!Bt)return no(j);const bn=this.applyRedirectCommands(Jt,Ne.redirectTo,mn);return Ne.redirectTo.startsWith("/")?qs(bn):this.lineralizeSegments(Ne,bn).pipe((0,$e.z)(Pn=>this.expandSegment(se,j,ve,Pn.concat(dn),xt,!1)))}matchSegmentAgainstRoute(se,j,ve,Ne,gt){return"**"===ve.path?(se=rr(ve,se),ve.loadChildren?(ve._loadedRoutes?(0,S.of)({routes:ve._loadedRoutes,injector:ve._loadedInjector}):this.configLoader.loadChildren(se,ve)).pipe((0,ge.U)(Bt=>(ve._loadedRoutes=Bt.routes,ve._loadedInjector=Bt.injector,new l(Ne,{})))):(0,S.of)(new l(Ne,{}))):Bo(j,ve,Ne,se).pipe((0,Se.w)(({matched:xt,consumedSegments:Bt,remainingSegments:Jt})=>{var dn;return xt?(se=null!==(dn=ve._injector)&&void 0!==dn?dn:se,this.getChildConfig(se,ve,Ne).pipe((0,$e.z)(bn=>{var Pn;const hi=null!==(Pn=bn.injector)&&void 0!==Pn?Pn:se,Di=bn.routes,{segmentGroup:Cr,slicedSegments:ar}=kr(j,Bt,Jt,Di),Vr=new l(Cr.segments,Cr.children);if(0===ar.length&&Vr.hasChildren())return this.expandChildren(hi,Di,Vr).pipe((0,ge.U)(qr=>new l(Bt,qr)));if(0===Di.length&&0===ar.length)return(0,S.of)(new l(Bt,{}));const er=Lt(ve)===gt;return this.expandSegment(hi,Vr,Di,ar,er?We:gt,!0).pipe((0,ge.U)(Fi=>new l(Bt.concat(Fi.segments),Fi.children)))}))):no(j)}))}getChildConfig(se,j,ve){return j.children?(0,S.of)({routes:j.children,injector:se}):j.loadChildren?void 0!==j._loadedRoutes?(0,S.of)({routes:j._loadedRoutes,injector:j._loadedInjector}):function Ta(ee,se,j,ve){const Ne=se.canLoad;if(void 0===Ne||0===Ne.length)return(0,S.of)(!0);const gt=Ne.map(xt=>{const Bt=ee.get(xt),Jt=function Nr(ee){return ee&&Ri(ee.canLoad)}(Bt)?Bt.canLoad(se,j):Bt(se,j);return ot(Jt)});return(0,S.of)(gt).pipe(ii(),ia())}(se,j,ve).pipe((0,$e.z)(Ne=>Ne?this.configLoader.loadChildren(se,j).pipe((0,re.b)(gt=>{j._loadedRoutes=gt.routes,j._loadedInjector=gt.injector})):function Xs(ee){return(0,G._)(un(Oi,3))}())):(0,S.of)({routes:[],injector:se})}lineralizeSegments(se,j){let ve=[],Ne=j.root;for(;;){if(ve=ve.concat(Ne.segments),0===Ne.numberOfChildren)return(0,S.of)(ve);if(Ne.numberOfChildren>1||!Ne.children[We])return(0,G._)(new e.vHH(4e3,Oi));Ne=Ne.children[We]}}applyRedirectCommands(se,j,ve){return this.applyRedirectCreateUrlTree(j,this.urlSerializer.parse(j),se,ve)}applyRedirectCreateUrlTree(se,j,ve,Ne){const gt=this.createSegmentGroup(se,j.root,ve,Ne);return new o(gt,this.createQueryParams(j.queryParams,this.urlTree.queryParams),j.fragment)}createQueryParams(se,j){const ve={};return Ee(se,(Ne,gt)=>{if("string"==typeof Ne&&Ne.startsWith(":")){const Bt=Ne.substring(1);ve[gt]=j[Bt]}else ve[gt]=Ne}),ve}createSegmentGroup(se,j,ve,Ne){const gt=this.createSegments(se,j.segments,ve,Ne);let xt={};return Ee(j.children,(Bt,Jt)=>{xt[Jt]=this.createSegmentGroup(se,Bt,ve,Ne)}),new l(gt,xt)}createSegments(se,j,ve,Ne){return j.map(gt=>gt.path.startsWith(":")?this.findPosParam(se,gt,Ne):this.findOrReturn(gt,ve))}findPosParam(se,j,ve){const Ne=ve[j.path.substring(1)];if(!Ne)throw new e.vHH(4001,Oi);return Ne}findOrReturn(se,j){let ve=0;for(const Ne of j){if(Ne.path===se.path)return j.splice(ve),Ne;ve++}return se}}class No{}class rs{constructor(se,j,ve,Ne,gt,xt,Bt,Jt){this.injector=se,this.rootComponentType=j,this.config=ve,this.urlTree=Ne,this.url=gt,this.paramsInheritanceStrategy=xt,this.relativeLinkResolution=Bt,this.urlSerializer=Jt}recognize(){const se=kr(this.urlTree.root,[],[],this.config.filter(j=>void 0===j.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,se,We).pipe((0,ge.U)(j=>{if(null===j)return null;const ve=new Zi([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},We,this.rootComponentType,null,this.urlTree.root,-1,{}),Ne=new Zt(ve,j),gt=new fr(this.url,Ne);return this.inheritParamsAndData(gt._root),gt}))}inheritParamsAndData(se){const j=se.value,ve=Pi(j,this.paramsInheritanceStrategy);j.params=Object.freeze(ve.params),j.data=Object.freeze(ve.data),se.children.forEach(Ne=>this.inheritParamsAndData(Ne))}processSegmentGroup(se,j,ve,Ne){return 0===ve.segments.length&&ve.hasChildren()?this.processChildren(se,j,ve):this.processSegment(se,j,ve,ve.segments,Ne)}processChildren(se,j,ve){return(0,E.D)(Object.keys(ve.children)).pipe((0,de.b)(Ne=>{const gt=ve.children[Ne],xt=$t(j,Ne);return this.processSegmentGroup(se,xt,gt,Ne)}),b((Ne,gt)=>Ne&>?(Ne.push(...gt),Ne):null),(0,N.o)(Ne=>null!==Ne),(0,Q.d)(null),xe(),(0,ge.U)(Ne=>{if(null===Ne)return null;const gt=os(Ne);return function $r(ee){ee.sort((se,j)=>se.value.outlet===We?-1:j.value.outlet===We?1:se.value.outlet.localeCompare(j.value.outlet))}(gt),gt}))}processSegment(se,j,ve,Ne,gt){return(0,E.D)(j).pipe((0,de.b)(xt=>{var Bt;return this.processSegmentAgainstRoute(null!==(Bt=xt._injector)&&void 0!==Bt?Bt:se,xt,ve,Ne,gt)}),(0,Ce.P)(xt=>!!xt),(0,B.K)(xt=>{if(An(xt))return ts(ve,Ne,gt)?(0,S.of)([]):(0,S.of)(null);throw xt}))}processSegmentAgainstRoute(se,j,ve,Ne,gt){if(j.redirectTo||!Ks(j,ve,Ne,gt))return(0,S.of)(null);let xt;if("**"===j.path){var Bt,Jt;const dn=Ne.length>0?ne(Ne).parameters:{},mn=Ma(ve)+Ne.length,bn=new Zi(Ne,dn,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,_r(j),Lt(j),null!==(Bt=null!==(Jt=j.component)&&void 0!==Jt?Jt:j._loadedComponent)&&void 0!==Bt?Bt:null,j,aa(ve),mn,Sa(j),mn);xt=(0,S.of)({snapshot:bn,consumedSegments:[],remainingSegments:[]})}else xt=Bo(ve,j,Ne,se).pipe((0,ge.U)(({matched:dn,consumedSegments:mn,remainingSegments:bn,parameters:Pn})=>{var hi,Di;if(!dn)return null;const Cr=Ma(ve)+mn.length;return{snapshot:new Zi(mn,Pn,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,_r(j),Lt(j),null!==(hi=null!==(Di=j.component)&&void 0!==Di?Di:j._loadedComponent)&&void 0!==hi?hi:null,j,aa(ve),Cr,Sa(j),Cr),consumedSegments:mn,remainingSegments:bn}}));return xt.pipe((0,Se.w)(dn=>{var mn,bn;if(null===dn)return(0,S.of)(null);const{snapshot:Pn,consumedSegments:hi,remainingSegments:Di}=dn;se=null!==(mn=j._injector)&&void 0!==mn?mn:se;const Cr=null!==(bn=j._loadedInjector)&&void 0!==bn?bn:se,ar=function ro(ee){return ee.children?ee.children:ee.loadChildren?ee._loadedRoutes:[]}(j),{segmentGroup:Vr,slicedSegments:er}=kr(ve,hi,Di,ar.filter(Fi=>void 0===Fi.redirectTo),this.relativeLinkResolution);if(0===er.length&&Vr.hasChildren())return this.processChildren(Cr,ar,Vr).pipe((0,ge.U)(Fi=>null===Fi?null:[new Zt(Pn,Fi)]));if(0===ar.length&&0===er.length)return(0,S.of)([new Zt(Pn,[])]);const xr=Lt(j)===gt;return this.processSegment(Cr,ar,Vr,er,xr?We:gt).pipe((0,ge.U)(Fi=>null===Fi?null:[new Zt(Pn,Fi)]))}))}}function nl(ee){const se=ee.value.routeConfig;return se&&""===se.path&&void 0===se.redirectTo}function os(ee){const se=[],j=new Set;for(const ve of ee){if(!nl(ve)){se.push(ve);continue}const Ne=se.find(gt=>ve.value.routeConfig===gt.value.routeConfig);void 0!==Ne?(Ne.children.push(...ve.children),j.add(Ne)):se.push(ve)}for(const ve of j){const Ne=os(ve.children);se.push(new Zt(ve.value,Ne))}return se.filter(ve=>!j.has(ve))}function aa(ee){let se=ee;for(;se._sourceSegment;)se=se._sourceSegment;return se}function Ma(ee){var se;let j=ee,ve=null!==(se=j._segmentIndexShift)&&void 0!==se?se:0;for(;j._sourceSegment;){var Ne;j=j._sourceSegment,ve+=null!==(Ne=j._segmentIndexShift)&&void 0!==Ne?Ne:0}return ve-1}function _r(ee){return ee.data||{}}function Sa(ee){return ee.resolve||{}}const Ao=Symbol("RouteTitle");function Vo(ee){return"string"==typeof ee.title||null===ee.title}function Kr(ee){return(0,Se.w)(se=>{const j=ee(se);return j?(0,E.D)(j).pipe((0,ge.U)(()=>se)):(0,S.of)(se)})}let Fo=(()=>{class ee{buildTitle(j){let ve,Ne=j.root;for(;void 0!==Ne;){var gt;ve=null!==(gt=this.getResolvedTitleForRoute(Ne))&&void 0!==gt?gt:ve,Ne=Ne.children.find(xt=>xt.outlet===We)}return ve}getResolvedTitleForRoute(j){return j.data[Ao]}}return ee.\u0275fac=function(j){return new(j||ee)},ee.\u0275prov=e.Yz7({token:ee,factory:function(){return(0,e.f3M)(Co)},providedIn:"root"}),ee})(),Co=(()=>{class ee extends Fo{constructor(j){super(),this.title=j}updateTitle(j){const ve=this.buildTitle(j);void 0!==ve&&this.title.setTitle(ve)}}return ee.\u0275fac=function(j){return new(j||ee)(e.LFG(De.Dx))},ee.\u0275prov=e.Yz7({token:ee,factory:ee.\u0275fac,providedIn:"root"}),ee})();class cs{}class oo extends class or{shouldDetach(se){return!1}store(se,j){}shouldAttach(se){return!1}retrieve(se){return null}shouldReuseRoute(se,j){return se.routeConfig===j.routeConfig}}{}const Ar=new e.OlP("",{providedIn:"root",factory:()=>({})}),ao=new e.OlP("ROUTES");let vo=(()=>{class ee{constructor(j,ve){this.injector=j,this.compiler=ve,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(j){if(this.componentLoaders.get(j))return this.componentLoaders.get(j);if(j._loadedComponent)return(0,S.of)(j._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(j);const ve=ot(j.loadComponent()).pipe((0,re.b)(gt=>{this.onLoadEndListener&&this.onLoadEndListener(j),j._loadedComponent=gt}),(0,Y.x)(()=>{this.componentLoaders.delete(j)})),Ne=new T(ve,()=>new _e.x).pipe(g());return this.componentLoaders.set(j,Ne),Ne}loadChildren(j,ve){if(this.childrenLoaders.get(ve))return this.childrenLoaders.get(ve);if(ve._loadedRoutes)return(0,S.of)({routes:ve._loadedRoutes,injector:ve._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(ve);const gt=this.loadModuleFactoryOrRoutes(ve.loadChildren).pipe((0,ge.U)(Bt=>{this.onLoadEndListener&&this.onLoadEndListener(ve);let Jt,dn,mn=!1;Array.isArray(Bt)?dn=Bt:(Jt=Bt.create(j).injector,dn=le(Jt.get(ao,[],e.XFs.Self|e.XFs.Optional)));return{routes:dn.map(bt),injector:Jt}}),(0,Y.x)(()=>{this.childrenLoaders.delete(ve)})),xt=new T(gt,()=>new _e.x).pipe(g());return this.childrenLoaders.set(ve,xt),xt}loadModuleFactoryOrRoutes(j){return ot(j()).pipe((0,$e.z)(ve=>ve instanceof e.YKP||Array.isArray(ve)?(0,S.of)(ve):(0,E.D)(this.compiler.compileModuleAsync(ve))))}}return ee.\u0275fac=function(j){return new(j||ee)(e.LFG(e.zs3),e.LFG(e.Sil))},ee.\u0275prov=e.Yz7({token:ee,factory:ee.\u0275fac,providedIn:"root"}),ee})();class Eo{}class ca{shouldProcessUrl(se){return!0}extract(se){return se}merge(se,j){return se}}function Da(ee){throw ee}function ds(ee,se,j){return se.parse("/")}const Pa={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},us={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function ps(){var ee,se;const j=(0,e.f3M)(tt),ve=(0,e.f3M)(mi),Ne=(0,e.f3M)(ce.Ye),gt=(0,e.f3M)(e.zs3),xt=(0,e.f3M)(e.Sil),Bt=null!==(ee=(0,e.f3M)(ao,{optional:!0}))&&void 0!==ee?ee:[],Jt=null!==(se=(0,e.f3M)(Ar,{optional:!0}))&&void 0!==se?se:{},dn=(0,e.f3M)(Co),mn=(0,e.f3M)(Fo,{optional:!0}),bn=(0,e.f3M)(Eo,{optional:!0}),Pn=(0,e.f3M)(cs,{optional:!0}),hi=new Si(null,j,ve,Ne,gt,xt,le(Bt));return bn&&(hi.urlHandlingStrategy=bn),Pn&&(hi.routeReuseStrategy=Pn),hi.titleStrategy=mn??dn,function hs(ee,se){ee.errorHandler&&(se.errorHandler=ee.errorHandler),ee.malformedUriErrorHandler&&(se.malformedUriErrorHandler=ee.malformedUriErrorHandler),ee.onSameUrlNavigation&&(se.onSameUrlNavigation=ee.onSameUrlNavigation),ee.paramsInheritanceStrategy&&(se.paramsInheritanceStrategy=ee.paramsInheritanceStrategy),ee.relativeLinkResolution&&(se.relativeLinkResolution=ee.relativeLinkResolution),ee.urlUpdateStrategy&&(se.urlUpdateStrategy=ee.urlUpdateStrategy),ee.canceledNavigationResolution&&(se.canceledNavigationResolution=ee.canceledNavigationResolution)}(Jt,hi),hi}let Si=(()=>{class ee{constructor(j,ve,Ne,gt,xt,Bt,Jt){this.rootComponentType=j,this.urlSerializer=ve,this.rootContexts=Ne,this.location=gt,this.config=Jt,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new _e.x,this.errorHandler=Da,this.malformedUriErrorHandler=ds,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>(0,S.of)(void 0),this.urlHandlingStrategy=new ca,this.routeReuseStrategy=new oo,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=xt.get(vo),this.configLoader.onLoadEndListener=Pn=>this.triggerEvent(new bi(Pn)),this.configLoader.onLoadStartListener=Pn=>this.triggerEvent(new dr(Pn)),this.ngModule=xt.get(e.h0i),this.console=xt.get(e.c2e);const bn=xt.get(e.R0b);this.isNgZoneEnabled=bn instanceof e.R0b&&e.R0b.isInAngularZone(),this.resetConfig(Jt),this.currentUrlTree=function oe(){return new o(new l([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=Fn(this.currentUrlTree,this.rootComponentType),this.transitions=new R.X({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var j;return null===(j=this.location.getState())||void 0===j?void 0:j.\u0275routerPageId}setupNavigations(j){const ve=this.events;return j.pipe((0,H.h)(Ne=>0!==Ne.id),(0,ge.U)(Ne=>({...Ne,extractedUrl:this.urlHandlingStrategy.extract(Ne.rawUrl)})),(0,Se.w)(Ne=>{let gt=!1,xt=!1;return(0,S.of)(Ne).pipe((0,re.b)(Bt=>{this.currentNavigation={id:Bt.id,initialUrl:Bt.rawUrl,extractedUrl:Bt.extractedUrl,trigger:Bt.source,extras:Bt.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,Se.w)(Bt=>{const Jt=this.browserUrlTree.toString(),dn=!this.navigated||Bt.extractedUrl.toString()!==Jt||Jt!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||dn)&&this.urlHandlingStrategy.shouldProcessUrl(Bt.rawUrl))return Uo(Bt.source)&&(this.browserUrlTree=Bt.extractedUrl),(0,S.of)(Bt).pipe((0,Se.w)(bn=>{const Pn=this.transitions.getValue();return ve.next(new nr(bn.id,this.serializeUrl(bn.extractedUrl),bn.source,bn.restoredState)),Pn!==this.transitions.getValue()?q.E:Promise.resolve(bn)}),function oa(ee,se,j,ve){return(0,Se.w)(Ne=>function el(ee,se,j,ve,Ne){return new tl(ee,se,j,ve,Ne).apply()}(ee,se,j,Ne.extractedUrl,ve).pipe((0,ge.U)(gt=>({...Ne,urlAfterRedirects:gt}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,re.b)(bn=>{this.currentNavigation={...this.currentNavigation,finalUrl:bn.urlAfterRedirects},Ne.urlAfterRedirects=bn.urlAfterRedirects}),function Qr(ee,se,j,ve,Ne,gt){return(0,$e.z)(xt=>function is(ee,se,j,ve,Ne,gt,xt="emptyOnly",Bt="legacy"){return new rs(ee,se,j,ve,Ne,xt,Bt,gt).recognize().pipe((0,Se.w)(Jt=>null===Jt?function wa(ee){return new m.y(se=>se.error(ee))}(new No):(0,S.of)(Jt)))}(ee,se,j,xt.urlAfterRedirects,ve.serialize(xt.urlAfterRedirects),ve,Ne,gt).pipe((0,ge.U)(Bt=>({...xt,targetSnapshot:Bt}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,re.b)(bn=>{if(Ne.targetSnapshot=bn.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!bn.extras.skipLocationChange){const hi=this.urlHandlingStrategy.merge(bn.urlAfterRedirects,bn.rawUrl);this.setBrowserUrl(hi,bn)}this.browserUrlTree=bn.urlAfterRedirects}const Pn=new ji(bn.id,this.serializeUrl(bn.extractedUrl),this.serializeUrl(bn.urlAfterRedirects),bn.targetSnapshot);ve.next(Pn)}));if(dn&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:Pn,extractedUrl:hi,source:Di,restoredState:Cr,extras:ar}=Bt,Vr=new nr(Pn,this.serializeUrl(hi),Di,Cr);ve.next(Vr);const er=Fn(hi,this.rootComponentType).snapshot;return Ne={...Bt,targetSnapshot:er,urlAfterRedirects:hi,extras:{...ar,skipLocationChange:!1,replaceUrl:!1}},(0,S.of)(Ne)}return this.rawUrlTree=Bt.rawUrl,Bt.resolve(null),q.E}),(0,re.b)(Bt=>{const Jt=new vi(Bt.id,this.serializeUrl(Bt.extractedUrl),this.serializeUrl(Bt.urlAfterRedirects),Bt.targetSnapshot);this.triggerEvent(Jt)}),(0,ge.U)(Bt=>Ne={...Bt,guards:zn(Bt.targetSnapshot,Bt.currentSnapshot,this.rootContexts)}),function Xi(ee,se){return(0,$e.z)(j=>{const{targetSnapshot:ve,currentSnapshot:Ne,guards:{canActivateChecks:gt,canDeactivateChecks:xt}}=j;return 0===xt.length&&0===gt.length?(0,S.of)({...j,guardsResult:!0}):function mr(ee,se,j,ve){return(0,E.D)(ee).pipe((0,$e.z)(Ne=>function $s(ee,se,j,ve,Ne){const gt=se&&se.routeConfig?se.routeConfig.canDeactivate:null;if(!gt||0===gt.length)return(0,S.of)(!0);const xt=gt.map(Bt=>{const Jt=Kn(Bt,se,Ne);return ot(function Re(ee){return ee&&Ri(ee.canDeactivate)}(Jt)?Jt.canDeactivate(ee,se,j,ve):Jt(ee,se,j,ve)).pipe((0,Ce.P)())});return(0,S.of)(xt).pipe(ii())}(Ne.component,Ne.route,j,se,ve)),(0,Ce.P)(Ne=>!0!==Ne,!0))}(xt,ve,Ne,ee).pipe((0,$e.z)(Bt=>Bt&&function li(ee){return"boolean"==typeof ee}(Bt)?function Yr(ee,se,j,ve){return(0,E.D)(se).pipe((0,de.b)(Ne=>(0,F.z)(function na(ee,se){return null!==ee&&se&&se(new ur(ee)),(0,S.of)(!0)}(Ne.route.parent,ve),function Sr(ee,se){return null!==ee&&se&&se(new zr(ee)),(0,S.of)(!0)}(Ne.route,ve),function Js(ee,se,j){const ve=se[se.length-1],gt=se.slice(0,se.length-1).reverse().map(xt=>function Mi(ee){const se=ee.routeConfig?ee.routeConfig.canActivateChild:null;return se&&0!==se.length?{node:ee,guards:se}:null}(xt)).filter(xt=>null!==xt).map(xt=>(0,z.P)(()=>{const Bt=xt.guards.map(Jt=>{const dn=Kn(Jt,xt.node,j);return ot(function Ge(ee){return ee&&Ri(ee.canActivateChild)}(dn)?dn.canActivateChild(ve,ee):dn(ve,ee)).pipe((0,Ce.P)())});return(0,S.of)(Bt).pipe(ii())}));return(0,S.of)(gt).pipe(ii())}(ee,Ne.path,j),function qa(ee,se,j){const ve=se.routeConfig?se.routeConfig.canActivate:null;if(!ve||0===ve.length)return(0,S.of)(!0);const Ne=ve.map(gt=>(0,z.P)(()=>{const xt=Kn(gt,se,j);return ot(function Lr(ee){return ee&&Ri(ee.canActivate)}(xt)?xt.canActivate(se,ee):xt(se,ee)).pipe((0,Ce.P)())}));return(0,S.of)(Ne).pipe(ii())}(ee,Ne.route,j))),(0,Ce.P)(Ne=>!0!==Ne,!0))}(ve,gt,ee,se):(0,S.of)(Bt)),(0,ge.U)(Bt=>({...j,guardsResult:Bt})))})}(this.ngModule.injector,Bt=>this.triggerEvent(Bt)),(0,re.b)(Bt=>{if(Ne.guardsResult=Bt.guardsResult,yt(Bt.guardsResult))throw zt(0,Bt.guardsResult);const Jt=new wi(Bt.id,this.serializeUrl(Bt.extractedUrl),this.serializeUrl(Bt.urlAfterRedirects),Bt.targetSnapshot,!!Bt.guardsResult);this.triggerEvent(Jt)}),(0,H.h)(Bt=>!!Bt.guardsResult||(this.restoreHistory(Bt),this.cancelNavigationTransition(Bt,"",3),!1)),Kr(Bt=>{if(Bt.guards.canActivateChecks.length)return(0,S.of)(Bt).pipe((0,re.b)(Jt=>{const dn=new cr(Jt.id,this.serializeUrl(Jt.extractedUrl),this.serializeUrl(Jt.urlAfterRedirects),Jt.targetSnapshot);this.triggerEvent(dn)}),(0,Se.w)(Jt=>{let dn=!1;return(0,S.of)(Jt).pipe(function ss(ee,se){return(0,$e.z)(j=>{const{targetSnapshot:ve,guards:{canActivateChecks:Ne}}=j;if(!Ne.length)return(0,S.of)(j);let gt=0;return(0,E.D)(Ne).pipe((0,de.b)(xt=>function sa(ee,se,j,ve){const Ne=ee.routeConfig,gt=ee._resolve;return void 0!==Ne?.title&&!Vo(Ne)&&(gt[Ao]=Ne.title),function la(ee,se,j,ve){const Ne=function ls(ee){return[...Object.keys(ee),...Object.getOwnPropertySymbols(ee)]}(ee);if(0===Ne.length)return(0,S.of)({});const gt={};return(0,E.D)(Ne).pipe((0,$e.z)(xt=>function bo(ee,se,j,ve){const Ne=Kn(ee,se,ve);return ot(Ne.resolve?Ne.resolve(se,j):Ne(se,j))}(ee[xt],se,j,ve).pipe((0,Ce.P)(),(0,re.b)(Bt=>{gt[xt]=Bt}))),L(1),(0,Me.h)(gt),(0,B.K)(xt=>An(xt)?q.E:(0,G._)(xt)))}(gt,ee,se,ve).pipe((0,ge.U)(xt=>(ee._resolvedData=xt,ee.data=Pi(ee,j).resolve,Ne&&Vo(Ne)&&(ee.data[Ao]=Ne.title),null)))}(xt.route,ve,ee,se)),(0,re.b)(()=>gt++),L(1),(0,$e.z)(xt=>gt===Ne.length?(0,S.of)(j):q.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,re.b)({next:()=>dn=!0,complete:()=>{dn||(this.restoreHistory(Jt),this.cancelNavigationTransition(Jt,"",2))}}))}),(0,re.b)(Jt=>{const dn=new Or(Jt.id,this.serializeUrl(Jt.extractedUrl),this.serializeUrl(Jt.urlAfterRedirects),Jt.targetSnapshot);this.triggerEvent(dn)}))}),Kr(Bt=>{const Jt=dn=>{var mn;const bn=[];null!==(mn=dn.routeConfig)&&void 0!==mn&&mn.loadComponent&&!dn.routeConfig._loadedComponent&&bn.push(this.configLoader.loadComponent(dn.routeConfig).pipe((0,re.b)(Pn=>{dn.component=Pn}),(0,ge.U)(()=>{})));for(const Pn of dn.children)bn.push(...Jt(Pn));return bn};return(0,D.a)(Jt(Bt.targetSnapshot.root)).pipe((0,Q.d)(),(0,Be.q)(1))}),Kr(()=>this.afterPreactivation()),(0,ge.U)(Bt=>{const Jt=function Hr(ee,se,j){const ve=dt(ee,se._root,j?j._root:void 0);return new Dn(ve,se)}(this.routeReuseStrategy,Bt.targetSnapshot,Bt.currentRouterState);return Ne={...Bt,targetRouterState:Jt}}),(0,re.b)(Bt=>{this.currentUrlTree=Bt.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(Bt.urlAfterRedirects,Bt.rawUrl),this.routerState=Bt.targetRouterState,"deferred"===this.urlUpdateStrategy&&(Bt.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,Bt),this.browserUrlTree=Bt.urlAfterRedirects)}),((ee,se,j)=>(0,ge.U)(ve=>(new ti(se,ve.targetRouterState,ve.currentRouterState,j).activate(ee),ve)))(this.rootContexts,this.routeReuseStrategy,Bt=>this.triggerEvent(Bt)),(0,re.b)({next(){gt=!0},complete(){gt=!0}}),(0,Y.x)(()=>{var Bt;gt||xt||this.cancelNavigationTransition(Ne,"",1),(null===(Bt=this.currentNavigation)||void 0===Bt?void 0:Bt.id)===Ne.id&&(this.currentNavigation=null)}),(0,B.K)(Bt=>{if(xt=!0,Jn(Bt)){gn(Bt)||(this.navigated=!0,this.restoreHistory(Ne,!0));const dn=new ri(Ne.id,this.serializeUrl(Ne.extractedUrl),Bt.message,Bt.cancellationCode);if(ve.next(dn),gn(Bt)){const mn=this.urlHandlingStrategy.merge(Bt.url,this.rawUrlTree),bn={skipLocationChange:Ne.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Uo(Ne.source)};this.scheduleNavigation(mn,"imperative",null,bn,{resolve:Ne.resolve,reject:Ne.reject,promise:Ne.promise})}else Ne.resolve(!1)}else{var Jt;this.restoreHistory(Ne,!0);const dn=new Qi(Ne.id,this.serializeUrl(Ne.extractedUrl),Bt,null!==(Jt=Ne.targetSnapshot)&&void 0!==Jt?Jt:void 0);ve.next(dn);try{Ne.resolve(this.errorHandler(Bt))}catch(mn){Ne.reject(mn)}}return q.E}))}))}resetRootComponentType(j){this.rootComponentType=j,this.routerState.root.component=this.rootComponentType}setTransition(j){this.transitions.next({...this.transitions.value,...j})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(j=>{const ve="popstate"===j.type?"popstate":"hashchange";"popstate"===ve&&setTimeout(()=>{var Ne;const gt={replaceUrl:!0},xt=null!==(Ne=j.state)&&void 0!==Ne&&Ne.navigationId?j.state:null;if(xt){const Jt={...xt};delete Jt.navigationId,delete Jt.\u0275routerPageId,0!==Object.keys(Jt).length&&(gt.state=Jt)}const Bt=this.parseUrl(j.url);this.scheduleNavigation(Bt,ve,xt,gt)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(j){this.events.next(j)}resetConfig(j){this.config=j.map(bt),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(j,ve={}){const{relativeTo:Ne,queryParams:gt,fragment:xt,queryParamsHandling:Bt,preserveFragment:Jt}=ve,dn=Ne||this.routerState.root,mn=Jt?this.currentUrlTree.fragment:xt;let bn=null;switch(Bt){case"merge":bn={...this.currentUrlTree.queryParams,...gt};break;case"preserve":bn=this.currentUrlTree.queryParams;break;default:bn=gt||null}return null!==bn&&(bn=this.removeEmptyProps(bn)),pn(dn,this.currentUrlTree,j,bn,mn??null)}navigateByUrl(j,ve={skipLocationChange:!1}){const Ne=yt(j)?j:this.parseUrl(j),gt=this.urlHandlingStrategy.merge(Ne,this.rawUrlTree);return this.scheduleNavigation(gt,"imperative",null,ve)}navigate(j,ve={skipLocationChange:!1}){return function To(ee){for(let se=0;se{const gt=j[Ne];return null!=gt&&(ve[Ne]=gt),ve},{})}processNavigations(){this.navigations.subscribe(j=>{var ve;this.navigated=!0,this.lastSuccessfulId=j.id,this.currentPageId=j.targetPageId,this.events.next(new Wn(j.id,this.serializeUrl(j.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,null===(ve=this.titleStrategy)||void 0===ve||ve.updateTitle(this.routerState.snapshot),j.resolve(!0)},j=>{this.console.warn(`Unhandled Navigation Error: ${j}`)})}scheduleNavigation(j,ve,Ne,gt,xt){if(this.disposed)return Promise.resolve(!1);let Bt,Jt,dn;xt?(Bt=xt.resolve,Jt=xt.reject,dn=xt.promise):dn=new Promise((Di,Cr)=>{Bt=Di,Jt=Cr});const mn=++this.navigationId;let bn;if("computed"===this.canceledNavigationResolution)if(0===this.currentPageId&&(Ne=this.location.getState()),Ne&&Ne.\u0275routerPageId)bn=Ne.\u0275routerPageId;else if(gt.replaceUrl||gt.skipLocationChange){var Pn;bn=null!==(Pn=this.browserPageId)&&void 0!==Pn?Pn:0}else{var hi;bn=(null!==(hi=this.browserPageId)&&void 0!==hi?hi:0)+1}else bn=0;return this.setTransition({id:mn,targetPageId:bn,source:ve,restoredState:Ne,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:j,extras:gt,resolve:Bt,reject:Jt,promise:dn,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),dn.catch(Di=>Promise.reject(Di))}setBrowserUrl(j,ve){const Ne=this.urlSerializer.serialize(j),gt={...ve.extras.state,...this.generateNgRouterState(ve.id,ve.targetPageId)};this.location.isCurrentPathEqualTo(Ne)||ve.extras.replaceUrl?this.location.replaceState(Ne,"",gt):this.location.go(Ne,"",gt)}restoreHistory(j,ve=!1){if("computed"===this.canceledNavigationResolution){var Ne,gt;const xt=this.currentPageId-j.targetPageId;"popstate"!==j.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(Ne=this.currentNavigation)||void 0===Ne?void 0:Ne.finalUrl)||0===xt?this.currentUrlTree===(null===(gt=this.currentNavigation)||void 0===gt?void 0:gt.finalUrl)&&0===xt&&(this.resetState(j),this.browserUrlTree=j.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(xt)}else"replace"===this.canceledNavigationResolution&&(ve&&this.resetState(j),this.resetUrlToCurrentUrlTree())}resetState(j){this.routerState=j.currentRouterState,this.currentUrlTree=j.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,j.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(j,ve,Ne){const gt=new ri(j.id,this.serializeUrl(j.extractedUrl),ve,Ne);this.triggerEvent(gt),j.resolve(!1)}generateNgRouterState(j,ve){return"computed"===this.canceledNavigationResolution?{navigationId:j,\u0275routerPageId:ve}:{navigationId:j}}}return ee.\u0275fac=function(j){e.$Z()},ee.\u0275prov=e.Yz7({token:ee,factory:function(){return ps()},providedIn:"root"}),ee})();function Uo(ee){return"imperative"!==ee}let yo=(()=>{class ee{constructor(j,ve,Ne,gt,xt){this.router=j,this.route=ve,this.tabIndexAttribute=Ne,this.renderer=gt,this.el=xt,this.commands=null,this.onChanges=new _e.x,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(j){if(null!=this.tabIndexAttribute)return;const ve=this.renderer,Ne=this.el.nativeElement;null!==j?ve.setAttribute(Ne,"tabindex",j):ve.removeAttribute(Ne,"tabindex")}ngOnChanges(j){this.onChanges.next(this)}set routerLink(j){null!=j?(this.commands=Array.isArray(j)?j:[j],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const j={skipLocationChange:(0,e.D6c)(this.skipLocationChange),replaceUrl:(0,e.D6c)(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,j),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:(0,e.D6c)(this.preserveFragment)})}}return ee.\u0275fac=function(j){return new(j||ee)(e.Y36(Si),e.Y36(Ti),e.$8M("tabindex"),e.Y36(e.Qsj),e.Y36(e.SBq))},ee.\u0275dir=e.lG2({type:ee,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(j,ve){1&j&&e.NdJ("click",function(){return ve.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[e.TTD]}),ee})(),jo=(()=>{class ee{constructor(j,ve,Ne){this.router=j,this.route=ve,this.locationStrategy=Ne,this.commands=null,this.href=null,this.onChanges=new _e.x,this.subscription=j.events.subscribe(gt=>{gt instanceof Wn&&this.updateTargetUrlAndHref()})}set routerLink(j){this.commands=null!=j?Array.isArray(j)?j:[j]:null}ngOnChanges(j){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(j,ve,Ne,gt,xt){if(0!==j||ve||Ne||gt||xt||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const Bt={skipLocationChange:(0,e.D6c)(this.skipLocationChange),replaceUrl:(0,e.D6c)(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,Bt),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:(0,e.D6c)(this.preserveFragment)})}}return ee.\u0275fac=function(j){return new(j||ee)(e.Y36(Si),e.Y36(Ti),e.Y36(ce.S$))},ee.\u0275dir=e.lG2({type:ee,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(j,ve){1&j&&e.NdJ("click",function(gt){return ve.onClick(gt.button,gt.ctrlKey,gt.shiftKey,gt.altKey,gt.metaKey)}),2&j&&e.uIk("target",ve.target)("href",ve.href,e.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[e.TTD]}),ee})();class Ia{}let ol=(()=>{class ee{preload(j,ve){return(0,S.of)(null)}}return ee.\u0275fac=function(j){return new(j||ee)},ee.\u0275prov=e.Yz7({token:ee,factory:ee.\u0275fac,providedIn:"root"}),ee})(),Ra=(()=>{class ee{constructor(j,ve,Ne,gt,xt){this.router=j,this.injector=Ne,this.preloadingStrategy=gt,this.loader=xt}setUpPreloading(){this.subscription=this.router.events.pipe((0,H.h)(j=>j instanceof Wn),(0,de.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(j,ve){const Ne=[];for(const Jt of ve){var gt,xt;Jt.providers&&!Jt._injector&&(Jt._injector=(0,e.MMx)(Jt.providers,j,`Route: ${Jt.path}`));const dn=null!==(gt=Jt._injector)&&void 0!==gt?gt:j,mn=null!==(xt=Jt._loadedInjector)&&void 0!==xt?xt:dn;if(Jt.loadChildren&&!Jt._loadedRoutes&&void 0===Jt.canLoad||Jt.loadComponent&&!Jt._loadedComponent)Ne.push(this.preloadConfig(dn,Jt));else if(Jt.children||Jt._loadedRoutes){var Bt;Ne.push(this.processRoutes(mn,null!==(Bt=Jt.children)&&void 0!==Bt?Bt:Jt._loadedRoutes))}}return(0,E.D)(Ne).pipe((0,be.J)())}preloadConfig(j,ve){return this.preloadingStrategy.preload(ve,()=>{let Ne;Ne=ve.loadChildren&&void 0===ve.canLoad?this.loader.loadChildren(j,ve):(0,S.of)(null);const gt=Ne.pipe((0,$e.z)(xt=>{var Bt;return null===xt?(0,S.of)(void 0):(ve._loadedRoutes=xt.routes,ve._loadedInjector=xt.injector,this.processRoutes(null!==(Bt=xt.injector)&&void 0!==Bt?Bt:j,xt.routes))}));if(ve.loadComponent&&!ve._loadedComponent){const xt=this.loader.loadComponent(ve);return(0,E.D)([gt,xt]).pipe((0,be.J)())}return gt})}}return ee.\u0275fac=function(j){return new(j||ee)(e.LFG(Si),e.LFG(e.Sil),e.LFG(e.lqb),e.LFG(Ia),e.LFG(vo))},ee.\u0275prov=e.Yz7({token:ee,factory:ee.\u0275fac}),ee})();const da=new e.OlP("");let co=(()=>{class ee{constructor(j,ve,Ne={}){this.router=j,this.viewportScroller=ve,this.options=Ne,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},Ne.scrollPositionRestoration=Ne.scrollPositionRestoration||"disabled",Ne.anchorScrolling=Ne.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(j=>{j instanceof nr?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=j.navigationTrigger,this.restoredId=j.restoredState?j.restoredState.navigationId:0):j instanceof Wn&&(this.lastId=j.id,this.scheduleScrollEvent(j,this.router.parseUrl(j.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(j=>{j instanceof yr&&(j.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(j.position):j.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(j.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(j,ve){this.router.triggerEvent(new yr(j,"popstate"===this.lastSource?this.store[this.restoredId]:null,ve))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return ee.\u0275fac=function(j){e.$Z()},ee.\u0275prov=e.Yz7({token:ee,factory:ee.\u0275fac}),ee})();const Oa=new e.OlP("ROUTER_FORROOT_GUARD"),Ha=new e.OlP(""),Zo=[ce.Ye,{provide:tt,useClass:ct},{provide:Si,useFactory:ps},mi,{provide:Ti,useFactory:function Wc(ee){return ee.routerState.root},deps:[Si]},vo];function al(){return new e.PXZ("Router",Si)}let ai=(()=>{class ee{constructor(j){}static forRoot(j,ve){return{ngModule:ee,providers:[Zo,[],sl(j),{provide:Oa,useFactory:zl,deps:[[Si,new e.FiY,new e.tp0]]},{provide:Ar,useValue:ve||{}},null!=ve&&ve.useHash?{provide:ce.S$,useClass:ce.Do}:{provide:ce.S$,useClass:ce.b0},{provide:da,useFactory:()=>{const ee=(0,e.f3M)(Si),se=(0,e.f3M)(ce.EM),j=(0,e.f3M)(Ar);return j.scrollOffset&&se.setOffset(j.scrollOffset),new co(ee,se,j)}},null!=ve&&ve.preloadingStrategy?dl(ve.preloadingStrategy):[],{provide:e.PXZ,multi:!0,useFactory:al},null!=ve&&ve.initialNavigation?Go(ve):[],[{provide:ll,useFactory:Wl},{provide:e.tb,multi:!0,useExisting:ll}]]}}static forChild(j){return{ngModule:ee,providers:[sl(j)]}}}return ee.\u0275fac=function(j){return new(j||ee)(e.LFG(Oa,8))},ee.\u0275mod=e.oAB({type:ee}),ee.\u0275inj=e.cJS({}),ee})();function zl(ee){return"guarded"}function sl(ee){return[{provide:ao,multi:!0,useValue:ee}]}function Wl(){const ee=(0,e.f3M)(e.zs3);return se=>{var j,ve;const Ne=ee.get(e.z2F);if(se!==Ne.components[0])return;const gt=ee.get(Si),xt=ee.get(cl);1===ee.get(zo)&>.initialNavigation(),null===(j=ee.get(Ha,null,e.XFs.Optional))||void 0===j||j.setUpPreloading(),null===(ve=ee.get(da,null,e.XFs.Optional))||void 0===ve||ve.init(),gt.resetRootComponentType(Ne.componentTypes[0]),xt.next(),xt.complete()}}const ll=new e.OlP("");function Go(ee){return["disabled"===ee.initialNavigation?[{provide:e.ip1,multi:!0,useFactory:()=>{const ee=(0,e.f3M)(Si);return()=>{ee.setUpLocationChangeListener()}}},{provide:zo,useValue:2}]:[],"enabledBlocking"===ee.initialNavigation?[{provide:zo,useValue:0},{provide:e.ip1,multi:!0,deps:[e.zs3],useFactory:ee=>{const se=ee.get(ce.V_,Promise.resolve(null));let j=!1;return()=>se.then(()=>new Promise(Ne=>{const gt=ee.get(Si),xt=ee.get(cl);(function ve(Ne){ee.get(Si).events.pipe((0,H.h)(xt=>xt instanceof Wn||xt instanceof ri||xt instanceof Qi),(0,ge.U)(xt=>xt instanceof Wn||xt instanceof ri&&(0===xt.code||1===xt.code)&&null),(0,H.h)(xt=>null!==xt),(0,Be.q)(1)).subscribe(()=>{Ne()})})(()=>{Ne(!0),j=!0}),gt.afterPreactivation=()=>(Ne(!0),j||xt.closed?(0,S.of)(void 0):xt),gt.initialNavigation()}))}}]:[]]}const cl=new e.OlP("",{factory:()=>new _e.x}),zo=new e.OlP("",{providedIn:"root",factory:()=>1});function dl(ee){return[Ra,{provide:Ha,useExisting:Ra},{provide:Ia,useExisting:ee}]}},89383:(Qe,he,u)=>{"use strict";u.d(he,{X$:()=>pe,Zw:()=>D,aw:()=>$e,sK:()=>Se});var e=u(94650),m=u(39646),A=u(45191),w=u(4128),p=u(97272),g=u(49770),T=u(95698),E=u(34782),S=u(54004),R=u(24351),v=u(63900);class D{}let F=(()=>{class Ce extends D{getTranslation(re){return(0,m.of)({})}}return Ce.\u0275fac=function(){let de;return function(B){return(de||(de=e.n5z(Ce)))(B||Ce)}}(),Ce.\u0275prov=e.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})();class z{}let $=(()=>{class Ce{handle(re){return re.key}}return Ce.\u0275fac=function(re){return new(re||Ce)},Ce.\u0275prov=e.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})();function G(Ce,de){if(Ce===de)return!0;if(null===Ce||null===de)return!1;if(Ce!=Ce&&de!=de)return!0;let N,Me,Y,re=typeof Ce;if(re==typeof de&&"object"==re){if(!Array.isArray(Ce)){if(Array.isArray(de))return!1;for(Me in Y=Object.create(null),Ce){if(!G(Ce[Me],de[Me]))return!1;Y[Me]=!0}for(Me in de)if(!(Me in Y)&&typeof de[Me]<"u")return!1;return!0}if(!Array.isArray(de))return!1;if((N=Ce.length)==de.length){for(Me=0;Me{_e(de[B])?B in Ce?re[B]=ce(Ce[B],de[B]):Object.assign(re,{[B]:de[B]}):Object.assign(re,{[B]:de[B]})}),re}class Te{}let b=(()=>{class Ce extends Te{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(re,B){let N;return N="string"==typeof re?this.interpolateString(re,B):"function"==typeof re?this.interpolateFunction(re,B):re,N}getValue(re,B){let N="string"==typeof B?B.split("."):[B];B="";do{B+=N.shift(),!q(re)||!q(re[B])||"object"!=typeof re[B]&&N.length?N.length?B+=".":re=void 0:(re=re[B],B="")}while(N.length);return re}interpolateFunction(re,B){return re(B)}interpolateString(re,B){return B?re.replace(this.templateMatcher,(N,Me)=>{let Y=this.getValue(B,Me);return q(Y)?Y:N}):re}}return Ce.\u0275fac=function(){let de;return function(B){return(de||(de=e.n5z(Ce)))(B||Ce)}}(),Ce.\u0275prov=e.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})();class H{}let L=(()=>{class Ce extends H{compile(re,B){return re}compileTranslations(re,B){return re}}return Ce.\u0275fac=function(){let de;return function(B){return(de||(de=e.n5z(Ce)))(B||Ce)}}(),Ce.\u0275prov=e.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})();class V{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new e.vpe,this.onLangChange=new e.vpe,this.onDefaultLangChange=new e.vpe}}const Q=new e.OlP("USE_STORE"),ae=new e.OlP("USE_DEFAULT_LANG"),xe=new e.OlP("DEFAULT_LANGUAGE"),ge=new e.OlP("USE_EXTEND");let Se=(()=>{class Ce{constructor(re,B,N,Me,Y,be=!0,De=!1,We=!1,Pe){this.store=re,this.currentLoader=B,this.compiler=N,this.parser=Me,this.missingTranslationHandler=Y,this.useDefaultLang=be,this.isolate=De,this.extend=We,this.pending=!1,this._onTranslationChange=new e.vpe,this._onLangChange=new e.vpe,this._onDefaultLangChange=new e.vpe,this._langs=[],this._translations={},this._translationRequests={},Pe&&this.setDefaultLang(Pe)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(re){this.isolate?this._defaultLang=re:this.store.defaultLang=re}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(re){this.isolate?this._currentLang=re:this.store.currentLang=re}get langs(){return this.isolate?this._langs:this.store.langs}set langs(re){this.isolate?this._langs=re:this.store.langs=re}get translations(){return this.isolate?this._translations:this.store.translations}set translations(re){this.isolate?this._translations=re:this.store.translations=re}setDefaultLang(re){if(re===this.defaultLang)return;let B=this.retrieveTranslations(re);typeof B<"u"?(null==this.defaultLang&&(this.defaultLang=re),B.pipe((0,T.q)(1)).subscribe(N=>{this.changeDefaultLang(re)})):this.changeDefaultLang(re)}getDefaultLang(){return this.defaultLang}use(re){if(re===this.currentLang)return(0,m.of)(this.translations[re]);let B=this.retrieveTranslations(re);return typeof B<"u"?(this.currentLang||(this.currentLang=re),B.pipe((0,T.q)(1)).subscribe(N=>{this.changeLang(re)}),B):(this.changeLang(re),(0,m.of)(this.translations[re]))}retrieveTranslations(re){let B;return(typeof this.translations[re]>"u"||this.extend)&&(this._translationRequests[re]=this._translationRequests[re]||this.getTranslation(re),B=this._translationRequests[re]),B}getTranslation(re){this.pending=!0;const B=this.currentLoader.getTranslation(re).pipe((0,E.d)(1),(0,T.q)(1));return this.loadingTranslations=B.pipe((0,S.U)(N=>this.compiler.compileTranslations(N,re)),(0,E.d)(1),(0,T.q)(1)),this.loadingTranslations.subscribe({next:N=>{this.translations[re]=this.extend&&this.translations[re]?{...N,...this.translations[re]}:N,this.updateLangs(),this.pending=!1},error:N=>{this.pending=!1}}),B}setTranslation(re,B,N=!1){B=this.compiler.compileTranslations(B,re),this.translations[re]=(N||this.extend)&&this.translations[re]?ce(this.translations[re],B):B,this.updateLangs(),this.onTranslationChange.emit({lang:re,translations:this.translations[re]})}getLangs(){return this.langs}addLangs(re){re.forEach(B=>{-1===this.langs.indexOf(B)&&this.langs.push(B)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(re,B,N){let Me;if(B instanceof Array){let Y={},be=!1;for(let De of B)Y[De]=this.getParsedResult(re,De,N),(0,A.b)(Y[De])&&(be=!0);if(be){const De=B.map(We=>(0,A.b)(Y[We])?Y[We]:(0,m.of)(Y[We]));return(0,w.D)(De).pipe((0,S.U)(We=>{let Pe={};return We.forEach((nt,Ye)=>{Pe[B[Ye]]=nt}),Pe}))}return Y}if(re&&(Me=this.parser.interpolate(this.parser.getValue(re,B),N)),typeof Me>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(Me=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],B),N)),typeof Me>"u"){let Y={key:B,translateService:this};typeof N<"u"&&(Y.interpolateParams=N),Me=this.missingTranslationHandler.handle(Y)}return typeof Me<"u"?Me:B}get(re,B){if(!q(re)||!re.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,R.b)(N=>(N=this.getParsedResult(N,re,B),(0,A.b)(N)?N:(0,m.of)(N))));{let N=this.getParsedResult(this.translations[this.currentLang],re,B);return(0,A.b)(N)?N:(0,m.of)(N)}}getStreamOnTranslationChange(re,B){if(!q(re)||!re.length)throw new Error('Parameter "key" required');return(0,p.z)((0,g.P)(()=>this.get(re,B)),this.onTranslationChange.pipe((0,v.w)(N=>{const Me=this.getParsedResult(N.translations,re,B);return"function"==typeof Me.subscribe?Me:(0,m.of)(Me)})))}stream(re,B){if(!q(re)||!re.length)throw new Error('Parameter "key" required');return(0,p.z)((0,g.P)(()=>this.get(re,B)),this.onLangChange.pipe((0,v.w)(N=>{const Me=this.getParsedResult(N.translations,re,B);return(0,A.b)(Me)?Me:(0,m.of)(Me)})))}instant(re,B){if(!q(re)||!re.length)throw new Error('Parameter "key" required');let N=this.getParsedResult(this.translations[this.currentLang],re,B);if((0,A.b)(N)){if(re instanceof Array){let Me={};return re.forEach((Y,be)=>{Me[re[be]]=re[be]}),Me}return re}return N}set(re,B,N=this.currentLang){this.translations[N][re]=this.compiler.compile(B,N),this.updateLangs(),this.onTranslationChange.emit({lang:N,translations:this.translations[N]})}changeLang(re){this.currentLang=re,this.onLangChange.emit({lang:re,translations:this.translations[re]}),null==this.defaultLang&&this.changeDefaultLang(re)}changeDefaultLang(re){this.defaultLang=re,this.onDefaultLangChange.emit({lang:re,translations:this.translations[re]})}reloadLang(re){return this.resetLang(re),this.getTranslation(re)}resetLang(re){this._translationRequests[re]=void 0,this.translations[re]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let re=window.navigator.languages?window.navigator.languages[0]:null;return re=re||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof re>"u"?void 0:(-1!==re.indexOf("-")&&(re=re.split("-")[0]),-1!==re.indexOf("_")&&(re=re.split("_")[0]),re)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let re=window.navigator.languages?window.navigator.languages[0]:null;return re=re||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,re}}return Ce.\u0275fac=function(re){return new(re||Ce)(e.LFG(V),e.LFG(D),e.LFG(H),e.LFG(Te),e.LFG(z),e.LFG(ae),e.LFG(Q),e.LFG(ge),e.LFG(xe))},Ce.\u0275prov=e.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})(),pe=(()=>{class Ce{constructor(re,B){this.translate=re,this._ref=B,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(re,B,N){let Me=Y=>{this.value=void 0!==Y?Y:re,this.lastKey=re,this._ref.markForCheck()};if(N){let Y=this.translate.getParsedResult(N,re,B);(0,A.b)(Y.subscribe)?Y.subscribe(Me):Me(Y)}this.translate.get(re,B).subscribe(Me)}transform(re,...B){if(!re||!re.length)return re;if(G(re,this.lastKey)&&G(B,this.lastParams))return this.value;let N;if(q(B[0])&&B.length)if("string"==typeof B[0]&&B[0].length){let Me=B[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{N=JSON.parse(Me)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${B[0]}`)}}else"object"==typeof B[0]&&!Array.isArray(B[0])&&(N=B[0]);return this.lastKey=re,this.lastParams=B,this.updateValue(re,N),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(Me=>{this.lastKey&&Me.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(re,N,Me.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(Me=>{this.lastKey&&(this.lastKey=null,this.updateValue(re,N,Me.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(re,N))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return Ce.\u0275fac=function(re){return new(re||Ce)(e.Y36(Se,16),e.Y36(e.sBO,16))},Ce.\u0275pipe=e.Yjl({name:"translate",type:Ce,pure:!1}),Ce.\u0275prov=e.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})(),$e=(()=>{class Ce{static forRoot(re={}){return{ngModule:Ce,providers:[re.loader||{provide:D,useClass:F},re.compiler||{provide:H,useClass:L},re.parser||{provide:Te,useClass:b},re.missingTranslationHandler||{provide:z,useClass:$},V,{provide:Q,useValue:re.isolate},{provide:ae,useValue:re.useDefaultLang},{provide:ge,useValue:re.extend},{provide:xe,useValue:re.defaultLanguage},Se]}}static forChild(re={}){return{ngModule:Ce,providers:[re.loader||{provide:D,useClass:F},re.compiler||{provide:H,useClass:L},re.parser||{provide:Te,useClass:b},re.missingTranslationHandler||{provide:z,useClass:$},{provide:Q,useValue:re.isolate},{provide:ae,useValue:re.useDefaultLang},{provide:ge,useValue:re.extend},{provide:xe,useValue:re.defaultLanguage},Se]}}}return Ce.\u0275fac=function(re){return new(re||Ce)},Ce.\u0275mod=e.oAB({type:Ce}),Ce.\u0275inj=e.cJS({}),Ce})()},51214:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Ct:()=>OAuthService,Hy:()=>OAuthStorage,zr:()=>OAuthModule});var _home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(15861),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(94650),_angular_common__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(36895),_angular_common_http__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(80529),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(77579),rxjs__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(39646),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(32076),rxjs__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(54355),rxjs__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(62843),rxjs__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(39841),rxjs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(56451),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(39300),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(18505),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(78372),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(91005),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(63900),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(54004),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(50590),rxjs_operators__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(70262),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(17414),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(95698),rxjs_operators__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(86099),fast_sha256__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1302);class DateTimeProvider{}let SystemDateTimeProvider=(()=>{class Qe extends DateTimeProvider{now(){return Date.now()}new(){return new Date}}return Qe.\u0275fac=function(){let he;return function(e){return(he||(he=_angular_core__WEBPACK_IMPORTED_MODULE_1__.n5z(Qe)))(e||Qe)}}(),Qe.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:Qe,factory:Qe.\u0275fac}),Qe})();class LoginOptions{constructor(){this.disableNonceCheck=!1,this.preventClearHashAfterLogin=!1}}class OAuthLogger{}class OAuthStorage{}let MemoryStorage=(()=>{class Qe{constructor(){this.data=new Map}getItem(u){return this.data.get(u)}removeItem(u){this.data.delete(u)}setItem(u,e){this.data.set(u,e)}}return Qe.\u0275fac=function(u){return new(u||Qe)},Qe.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:Qe,factory:Qe.\u0275fac}),Qe})();class ReceivedTokens{}class OAuthEvent{constructor(he){this.type=he}}class OAuthSuccessEvent extends OAuthEvent{constructor(he,u=null){super(he),this.info=u}}class OAuthInfoEvent extends OAuthEvent{constructor(he,u=null){super(he),this.info=u}}class OAuthErrorEvent extends OAuthEvent{constructor(he,u,e=null){super(he),this.reason=u,this.params=e}}function b64DecodeUnicode(Qe){const he=Qe.replace(/\-/g,"+").replace(/\_/g,"/");return decodeURIComponent(atob(he).split("").map(function(u){return"%"+("00"+u.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function base64UrlEncode(Qe){return btoa(Qe).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}class AuthConfig{constructor(he){this.clientId="",this.redirectUri="",this.postLogoutRedirectUri="",this.redirectUriAsPostLogoutRedirectUriFallback=!0,this.loginUrl="",this.scope="openid profile",this.resource="",this.rngUrl="",this.oidc=!0,this.requestAccessToken=!0,this.options=null,this.issuer="",this.logoutUrl="",this.clearHashAfterLogin=!0,this.tokenEndpoint=null,this.revocationEndpoint=null,this.customTokenParameters=[],this.userinfoEndpoint=null,this.responseType="",this.showDebugInformation=!1,this.silentRefreshRedirectUri="",this.silentRefreshMessagePrefix="",this.silentRefreshShowIFrame=!1,this.siletRefreshTimeout=2e4,this.silentRefreshTimeout=2e4,this.dummyClientSecret=null,this.requireHttps="remoteOnly",this.strictDiscoveryDocumentValidation=!0,this.jwks=null,this.customQueryParams=null,this.silentRefreshIFrameName="angular-oauth-oidc-silent-refresh-iframe",this.timeoutFactor=.75,this.sessionChecksEnabled=!1,this.sessionCheckIntervall=3e3,this.sessionCheckIFrameUrl=null,this.sessionCheckIFrameName="angular-oauth-oidc-check-session-iframe",this.disableAtHashCheck=!1,this.skipSubjectCheck=!1,this.useIdTokenHintForSilentRefresh=!1,this.skipIssuerCheck=!1,this.nonceStateSeparator=";",this.useHttpBasicAuth=!1,this.waitForTokenInMsec=0,this.disablePKCE=!1,this.preserveRequestedRoute=!1,this.openUri=u=>{location.href=u},he&&Object.assign(this,he)}}class WebHttpUrlEncodingCodec{encodeKey(he){return encodeURIComponent(he)}encodeValue(he){return encodeURIComponent(he)}decodeKey(he){return decodeURIComponent(he)}decodeValue(he){return decodeURIComponent(he)}}class ValidationHandler{}class AbstractValidationHandler{validateAtHash(he){var u=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){let e=u.inferHashAlgorithm(he.idTokenHeader),m=yield u.calcHash(he.accessToken,e),w=base64UrlEncode(m.substr(0,m.length/2)),p=he.idTokenClaims.at_hash.replace(/=/g,"");return w!==p&&(console.error("exptected at_hash: "+w),console.error("actual at_hash: "+p)),w===p})()}inferHashAlgorithm(he){let u=he.alg;if(!u.match(/^.S[0-9]{3}$/))throw new Error("Algorithm not supported: "+u);return"sha-"+u.substr(2)}}let UrlHelperService=(()=>{class Qe{getHashFragmentParams(u){let e=u||window.location.hash;if(e=decodeURIComponent(e),0!==e.indexOf("#"))return{};const m=e.indexOf("?");return e=e.substr(m>-1?m+1:1),this.parseQueryString(e)}parseQueryString(u){const e={};let m,A,w,p,g,T,E;if(null===u)return e;m=u.split("&");for(let S=0;S>6,A[p++]=128|63&g):g<55296||g>=57344?(A[p++]=224|g>>12,A[p++]=128|g>>6&63,A[p++]=128|63&g):(g=65536+((1023&g)<<10|1023&Qe.charCodeAt(++e)),A[p++]=240|g>>18,A[p++]=128|g>>12&63,A[p++]=128|g>>6&63,A[p++]=128|63&g);Qe=A}else{if("object"!==m)throw new Error(ERROR);if(null===Qe)throw new Error(ERROR);if(ARRAY_BUFFER&&Qe.constructor===ArrayBuffer)Qe=new Uint8Array(Qe);else if(!(Array.isArray(Qe)||ARRAY_BUFFER&&ArrayBuffer.isView(Qe)))throw new Error(ERROR)}Qe.length>64&&(Qe=new Sha256(he,!0).update(Qe).array());var T=[],E=[];for(e=0;e<64;++e){var S=Qe[e]||0;T[e]=92^S,E[e]=54^S}Sha256.call(this,he,u),this.update(E),this.oKeyPad=T,this.inner=!0,this.sharedMemory=u}Sha256.prototype.update=function(Qe){if(!this.finalized){var he,u=typeof Qe;if("string"!==u){if("object"!==u)throw new Error(ERROR);if(null===Qe)throw new Error(ERROR);if(ARRAY_BUFFER&&Qe.constructor===ArrayBuffer)Qe=new Uint8Array(Qe);else if(!(Array.isArray(Qe)||ARRAY_BUFFER&&ArrayBuffer.isView(Qe)))throw new Error(ERROR);he=!0}for(var e,A,m=0,w=Qe.length,p=this.blocks;m>2]|=Qe[m]<>2]|=e<>2]|=(192|e>>6)<>2]|=(128|63&e)<=57344?(p[A>>2]|=(224|e>>12)<>2]|=(128|e>>6&63)<>2]|=(128|63&e)<>2]|=(240|e>>18)<>2]|=(128|e>>12&63)<>2]|=(128|e>>6&63)<>2]|=(128|63&e)<=64?(this.block=p[16],this.start=A-64,this.hash(),this.hashed=!0):this.start=A}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var Qe=this.blocks,he=this.lastByteIndex;Qe[16]=this.block,Qe[he>>2]|=EXTRA[3&he],this.block=Qe[16],he>=56&&(this.hashed||this.hash(),Qe[0]=this.block,Qe[16]=Qe[1]=Qe[2]=Qe[3]=Qe[4]=Qe[5]=Qe[6]=Qe[7]=Qe[8]=Qe[9]=Qe[10]=Qe[11]=Qe[12]=Qe[13]=Qe[14]=Qe[15]=0),Qe[14]=this.hBytes<<3|this.bytes>>>29,Qe[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var T,v,z,$,G,q,Qe=this.h0,he=this.h1,u=this.h2,e=this.h3,m=this.h4,A=this.h5,w=this.h6,p=this.h7,g=this.blocks;for(T=16;T<64;++T)g[T]=g[T-16]+(((v=g[T-15])>>>7|v<<25)^(v>>>18|v<<14)^v>>>3)+g[T-7]+(((v=g[T-2])>>>17|v<<15)^(v>>>19|v<<13)^v>>>10)<<0;for(q=he&u,T=0;T<64;T+=4)this.first?(this.is224?(z=300032,p=(v=g[0]-1413257819)-150054599<<0,e=v+24177077<<0):(z=704751109,p=(v=g[0]-210244248)-1521486534<<0,e=v+143694565<<0),this.first=!1):(p=e+(v=p+((m>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7))+(m&A^~m&w)+K[T]+g[T])<<0,e=v+(((Qe>>>2|Qe<<30)^(Qe>>>13|Qe<<19)^(Qe>>>22|Qe<<10))+((z=Qe&he)^Qe&u^q))<<0),w=u+(v=w+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+(p&m^~p&A)+K[T+1]+g[T+1])<<0,u=v+(((e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10))+(($=e&Qe)^e&he^z))<<0,A=he+(v=A+((w>>>6|w<<26)^(w>>>11|w<<21)^(w>>>25|w<<7))+(w&p^~w&m)+K[T+2]+g[T+2])<<0,he=v+(((u>>>2|u<<30)^(u>>>13|u<<19)^(u>>>22|u<<10))+((G=u&e)^u&Qe^$))<<0,m=Qe+(v=m+((A>>>6|A<<26)^(A>>>11|A<<21)^(A>>>25|A<<7))+(A&w^~A&p)+K[T+3]+g[T+3])<<0,Qe=v+(((he>>>2|he<<30)^(he>>>13|he<<19)^(he>>>22|he<<10))+((q=he&u)^he&e^G))<<0;this.h0=this.h0+Qe<<0,this.h1=this.h1+he<<0,this.h2=this.h2+u<<0,this.h3=this.h3+e<<0,this.h4=this.h4+m<<0,this.h5=this.h5+A<<0,this.h6=this.h6+w<<0,this.h7=this.h7+p<<0},Sha256.prototype.hex=function(){this.finalize();var Qe=this.h0,he=this.h1,u=this.h2,e=this.h3,m=this.h4,A=this.h5,w=this.h6,p=this.h7,g=HEX_CHARS[Qe>>28&15]+HEX_CHARS[Qe>>24&15]+HEX_CHARS[Qe>>20&15]+HEX_CHARS[Qe>>16&15]+HEX_CHARS[Qe>>12&15]+HEX_CHARS[Qe>>8&15]+HEX_CHARS[Qe>>4&15]+HEX_CHARS[15&Qe]+HEX_CHARS[he>>28&15]+HEX_CHARS[he>>24&15]+HEX_CHARS[he>>20&15]+HEX_CHARS[he>>16&15]+HEX_CHARS[he>>12&15]+HEX_CHARS[he>>8&15]+HEX_CHARS[he>>4&15]+HEX_CHARS[15&he]+HEX_CHARS[u>>28&15]+HEX_CHARS[u>>24&15]+HEX_CHARS[u>>20&15]+HEX_CHARS[u>>16&15]+HEX_CHARS[u>>12&15]+HEX_CHARS[u>>8&15]+HEX_CHARS[u>>4&15]+HEX_CHARS[15&u]+HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>4&15]+HEX_CHARS[15&e]+HEX_CHARS[m>>28&15]+HEX_CHARS[m>>24&15]+HEX_CHARS[m>>20&15]+HEX_CHARS[m>>16&15]+HEX_CHARS[m>>12&15]+HEX_CHARS[m>>8&15]+HEX_CHARS[m>>4&15]+HEX_CHARS[15&m]+HEX_CHARS[A>>28&15]+HEX_CHARS[A>>24&15]+HEX_CHARS[A>>20&15]+HEX_CHARS[A>>16&15]+HEX_CHARS[A>>12&15]+HEX_CHARS[A>>8&15]+HEX_CHARS[A>>4&15]+HEX_CHARS[15&A]+HEX_CHARS[w>>28&15]+HEX_CHARS[w>>24&15]+HEX_CHARS[w>>20&15]+HEX_CHARS[w>>16&15]+HEX_CHARS[w>>12&15]+HEX_CHARS[w>>8&15]+HEX_CHARS[w>>4&15]+HEX_CHARS[15&w];return this.is224||(g+=HEX_CHARS[p>>28&15]+HEX_CHARS[p>>24&15]+HEX_CHARS[p>>20&15]+HEX_CHARS[p>>16&15]+HEX_CHARS[p>>12&15]+HEX_CHARS[p>>8&15]+HEX_CHARS[p>>4&15]+HEX_CHARS[15&p]),g},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var Qe=this.h0,he=this.h1,u=this.h2,e=this.h3,m=this.h4,A=this.h5,w=this.h6,p=this.h7,g=[Qe>>24&255,Qe>>16&255,Qe>>8&255,255&Qe,he>>24&255,he>>16&255,he>>8&255,255&he,u>>24&255,u>>16&255,u>>8&255,255&u,e>>24&255,e>>16&255,e>>8&255,255&e,m>>24&255,m>>16&255,m>>8&255,255&m,A>>24&255,A>>16&255,A>>8&255,255&A,w>>24&255,w>>16&255,w>>8&255,255&w];return this.is224||g.push(p>>24&255,p>>16&255,p>>8&255,255&p),g},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var Qe=new ArrayBuffer(this.is224?28:32),he=new DataView(Qe);return he.setUint32(0,this.h0),he.setUint32(4,this.h1),he.setUint32(8,this.h2),he.setUint32(12,this.h3),he.setUint32(16,this.h4),he.setUint32(20,this.h5),he.setUint32(24,this.h6),this.is224||he.setUint32(28,this.h7),Qe},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var Qe=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(Qe),Sha256.prototype.finalize.call(this)}};var exports=createMethod();return exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),exports}const sha256=factory();class HashHandler{}function decodeUTF8(Qe){if("string"!=typeof Qe)throw new TypeError("expected string");var he,u=Qe,e=new Uint8Array(u.length);for(he=0;he{class Qe{calcHash(u,e){return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){return encodeUTF8(fast_sha256__WEBPACK_IMPORTED_MODULE_0__(decodeUTF8(u)))})()}toHashString2(u){let e="";for(let m of u)e+=String.fromCharCode(m);return e}toHashString(u){const e=new Uint8Array(u);let m="";for(let A of e)m+=String.fromCharCode(A);return m}}return Qe.\u0275fac=function(u){return new(u||Qe)},Qe.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:Qe,factory:Qe.\u0275fac}),Qe})(),OAuthService=(()=>{class Qe extends AuthConfig{constructor(u,e,m,A,w,p,g,T,E,S){super(),this.ngZone=u,this.http=e,this.config=w,this.urlHelper=p,this.logger=g,this.crypto=T,this.dateTimeService=S,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.discoveryDocumentLoadedSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=E,w||(w={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),A&&(this.tokenValidationHandler=A),w&&this.configure(w);try{m?this.setStorage(m):typeof sessionStorage<"u"&&this.setStorage(sessionStorage)}catch(D){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",D)}if(this.checkLocalStorageAccessable()){var R,v;const D=null===(R=window)||void 0===R||null===(v=R.navigator)||void 0===v?void 0:v.userAgent;(D?.includes("MSIE ")||D?.includes("Trident"))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if(typeof window>"u")return!1;const u="test";try{return!(typeof window.localStorage>"u"||(localStorage.setItem(u,u),localStorage.removeItem(u),0))}catch{return!1}}configure(u){Object.assign(this,new AuthConfig,u),this.config=Object.assign({},new AuthConfig,u),this.sessionChecksEnabled&&this.setupSessionCheck(),this.configChanged()}configChanged(){this.setupRefreshTimer()}restartSessionChecksIfStillLoggedIn(){this.hasValidIdToken()&&this.initSessionCheck()}restartRefreshTimerIfStillLoggedIn(){this.setupExpirationTimers()}setupSessionCheck(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(u=>"token_received"===u.type)).subscribe(u=>{this.initSessionCheck()})}setupAutomaticSilentRefresh(u={},e,m=!0){let A=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(w=>{"token_received"===w.type?A=!0:"logout"===w.type&&(A=!1)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(w=>"token_expires"===w.type&&(null==e||"any"===e||w.info===e)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.b)(1e3)).subscribe(w=>{A&&this.refreshInternal(u,m).catch(p=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(u,e){return this.useSilentRefresh||"code"!==this.responseType?this.silentRefresh(u,e):this.refreshToken()}loadDiscoveryDocumentAndTryLogin(u=null){return this.loadDiscoveryDocument().then(e=>this.tryLogin(u))}loadDiscoveryDocumentAndLogin(u=null){return this.loadDiscoveryDocumentAndTryLogin(u=u||{}).then(e=>!(!this.hasValidIdToken()||!this.hasValidAccessToken())||(this.initLoginFlow("string"==typeof u.state?u.state:""),!1))}debug(...u){this.showDebugInformation&&this.logger.debug.apply(this.logger,u)}validateUrlFromDiscoveryDocument(u){const e=[],m=this.validateUrlForHttps(u),A=this.validateUrlAgainstIssuer(u);return m||e.push("https for all urls required. Also for urls received by discovery."),A||e.push("Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation."),e}validateUrlForHttps(u){if(!u)return!0;const e=u.toLowerCase();return!(!1!==this.requireHttps&&(!e.match(/^http:\/\/localhost($|[:\/])/)&&!e.match(/^http:\/\/localhost($|[:\/])/)||"remoteOnly"!==this.requireHttps))||e.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(u,e){if(!u)throw new Error(`'${e}' should not be null`);if(!this.validateUrlForHttps(u))throw new Error(`'${e}' must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).`)}validateUrlAgainstIssuer(u){return!this.strictDiscoveryDocumentValidation||!u||u.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){typeof window>"u"?this.debug("timer not supported on this plattform"):((this.hasValidIdToken()||this.hasValidAccessToken())&&(this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()),this.tokenReceivedSubscription&&this.tokenReceivedSubscription.unsubscribe(),this.tokenReceivedSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(u=>"token_received"===u.type)).subscribe(u=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()}))}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){const u=this.getAccessTokenExpiration(),e=this.getAccessTokenStoredAt(),m=this.calcTimeout(e,u);this.ngZone.runOutsideAngular(()=>{this.accessTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","access_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(m)).subscribe(A=>{this.ngZone.run(()=>{this.eventsSubject.next(A)})})})}setupIdTokenTimer(){const u=this.getIdTokenExpiration(),e=this.getIdTokenStoredAt(),m=this.calcTimeout(e,u);this.ngZone.runOutsideAngular(()=>{this.idTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","id_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(m)).subscribe(A=>{this.ngZone.run(()=>{this.eventsSubject.next(A)})})})}stopAutomaticRefresh(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.clearAutomaticRefreshTimer()}clearAccessTokenTimer(){this.accessTokenTimeoutSubscription&&this.accessTokenTimeoutSubscription.unsubscribe()}clearIdTokenTimer(){this.idTokenTimeoutSubscription&&this.idTokenTimeoutSubscription.unsubscribe()}clearAutomaticRefreshTimer(){this.automaticRefreshSubscription&&this.automaticRefreshSubscription.unsubscribe()}calcTimeout(u,e){const m=this.dateTimeService.now();return Math.max(0,(e-u)*this.timeoutFactor-(m-u))}setStorage(u){this._storage=u,this.configChanged()}loadDiscoveryDocument(u=null){return new Promise((e,m)=>{u||((u=this.issuer||"").endsWith("/")||(u+="/"),u+=".well-known/openid-configuration"),this.validateUrlForHttps(u)?this.http.get(u).subscribe(A=>{if(!this.validateDiscoveryDocument(A))return this.eventsSubject.next(new OAuthErrorEvent("discovery_document_validation_error",null)),void m("discovery_document_validation_error");this.loginUrl=A.authorization_endpoint,this.logoutUrl=A.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=A.grant_types_supported,this.issuer=A.issuer,this.tokenEndpoint=A.token_endpoint,this.userinfoEndpoint=A.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=A.jwks_uri,this.sessionCheckIFrameUrl=A.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(A),this.revocationEndpoint=A.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(w=>{const g=new OAuthSuccessEvent("discovery_document_loaded",{discoveryDocument:A,jwks:w});this.eventsSubject.next(g),e(g)}).catch(w=>{this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",w)),m(w)})},A=>{this.logger.error("error loading discovery document",A),this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",A)),m(A)}):m("issuer must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).")})}loadJwks(){return new Promise((u,e)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(m=>{this.jwks=m,this.eventsSubject.next(new OAuthSuccessEvent("discovery_document_loaded")),u(m)},m=>{this.logger.error("error loading jwks",m),this.eventsSubject.next(new OAuthErrorEvent("jwks_load_error",m)),e(m)}):u(null)})}validateDiscoveryDocument(u){let e;return this.skipIssuerCheck||u.issuer===this.issuer?(e=this.validateUrlFromDiscoveryDocument(u.authorization_endpoint),e.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",e),!1):(e=this.validateUrlFromDiscoveryDocument(u.end_session_endpoint),e.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",e),!1):(e=this.validateUrlFromDiscoveryDocument(u.token_endpoint),e.length>0&&this.logger.error("error validating token_endpoint in discovery document",e),e=this.validateUrlFromDiscoveryDocument(u.revocation_endpoint),e.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",e),e=this.validateUrlFromDiscoveryDocument(u.userinfo_endpoint),e.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",e),!1):(e=this.validateUrlFromDiscoveryDocument(u.jwks_uri),e.length>0?(this.logger.error("error validating jwks_uri in discovery document",e),!1):(this.sessionChecksEnabled&&!u.check_session_iframe&&this.logger.warn("sessionChecksEnabled is activated but discovery document does not contain a check_session_iframe field"),!0))))):(this.logger.error("invalid issuer in discovery document","expected: "+this.issuer,"current: "+u.issuer),!1)}fetchTokenUsingPasswordFlowAndLoadUserProfile(u,e,m=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingPasswordFlow(u,e,m).then(()=>this.loadUserProfile())}loadUserProfile(){if(!this.hasValidAccessToken())throw new Error("Can not load User Profile without access_token");if(!this.validateUrlForHttps(this.userinfoEndpoint))throw new Error("userinfoEndpoint must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");return new Promise((u,e)=>{const m=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:m,observe:"response",responseType:"text"}).subscribe(A=>{if(this.debug("userinfo received",JSON.stringify(A)),A.headers.get("content-type").startsWith("application/json")){let w=JSON.parse(A.body);const p=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!p.sub||w.sub!==p.sub))return void e("if property oidc is true, the received user-id (sub) has to be the user-id of the user that has logged in with oidc.\nif you are not using oidc but just oauth2 password flow set oidc to false");w=Object.assign({},p,w),this._storage.setItem("id_token_claims_obj",JSON.stringify(w)),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),u({info:w})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),u(JSON.parse(A.body))},A=>{this.logger.error("error loading user info",A),this.eventsSubject.next(new OAuthErrorEvent("user_profile_load_error",A)),e(A)})})}fetchTokenUsingPasswordFlow(u,e,m=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingGrant("password",{username:u,password:e},m)}fetchTokenUsingGrant(u,e,m=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let A=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type",u).set("scope",this.scope);if(this.useHttpBasicAuth){const w=btoa(`${this.clientId}:${this.dummyClientSecret}`);m=m.set("Authorization","Basic "+w)}if(this.useHttpBasicAuth||(A=A.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(A=A.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const w of Object.getOwnPropertyNames(this.customQueryParams))A=A.set(w,this.customQueryParams[w]);for(const w of Object.keys(e))A=A.set(w,e[w]);return m=m.set("Content-Type","application/x-www-form-urlencoded"),new Promise((w,p)=>{this.http.post(this.tokenEndpoint,A,{headers:m}).subscribe(g=>{this.debug("tokenResponse",g),this.storeAccessTokenResponse(g.access_token,g.refresh_token,g.expires_in||this.fallbackAccessTokenExpirationTimeInSec,g.scope,this.extractRecognizedCustomParameters(g)),this.oidc&&g.id_token&&this.processIdToken(g.id_token,g.access_token).then(T=>{this.storeIdToken(T),w(g)}),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),w(g)},g=>{this.logger.error("Error performing ${grantType} flow",g),this.eventsSubject.next(new OAuthErrorEvent("token_error",g)),p(g)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((u,e)=>{let m=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","refresh_token").set("scope",this.scope).set("refresh_token",this._storage.getItem("refresh_token")),A=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const w=btoa(`${this.clientId}:${this.dummyClientSecret}`);A=A.set("Authorization","Basic "+w)}if(this.useHttpBasicAuth||(m=m.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(m=m.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const w of Object.getOwnPropertyNames(this.customQueryParams))m=m.set(w,this.customQueryParams[w]);this.http.post(this.tokenEndpoint,m,{headers:A}).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.w)(w=>w.id_token?(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.D)(this.processIdToken(w.id_token,w.access_token,!0)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(p=>this.storeIdToken(p)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(p=>w)):(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(w))).subscribe(w=>{this.debug("refresh tokenResponse",w),this.storeAccessTokenResponse(w.access_token,w.refresh_token,w.expires_in||this.fallbackAccessTokenExpirationTimeInSec,w.scope,this.extractRecognizedCustomParameters(w)),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),u(w)},w=>{this.logger.error("Error refreshing token",w),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",w)),e(w)})})}removeSilentRefreshEventListener(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}setupSilentRefreshEventListener(){this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=u=>{const e=this.processMessageEventMessage(u);this.tryLogin({customHashFragment:e,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri||this.redirectUri}).catch(m=>this.debug("tryLogin during silent refresh failed",m))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(u={},e=!0){const m=this.getIdentityClaims()||{};if(this.useIdTokenHintForSilentRefresh&&this.hasValidIdToken()&&(u.id_token_hint=this.getIdToken()),!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(typeof this.document>"u")throw new Error("silent refresh is not supported on this platform");const A=this.document.getElementById(this.silentRefreshIFrameName);A&&this.document.body.removeChild(A),this.silentRefreshSubject=m.sub;const w=this.document.createElement("iframe");w.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,e,u).then(S=>{w.setAttribute("src",S),this.silentRefreshShowIFrame||(w.style.display="none"),this.document.body.appendChild(w)});const g=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(S=>S instanceof OAuthErrorEvent),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),T=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(S=>"token_received"===S.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),E=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthErrorEvent("silent_refresh_timeout",null)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(this.silentRefreshTimeout));return(0,rxjs__WEBPACK_IMPORTED_MODULE_14__.S)([g,T,E]).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(S=>{if(S instanceof OAuthErrorEvent)throw"silent_refresh_timeout"===S.type||(S=new OAuthErrorEvent("silent_refresh_error",S)),this.eventsSubject.next(S),S;return"token_received"===S.type&&(S=new OAuthSuccessEvent("silently_refreshed"),this.eventsSubject.next(S)),S})).toPromise()}initImplicitFlowInPopup(u){return this.initLoginFlowInPopup(u)}initLoginFlowInPopup(u){return u=u||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(e=>new Promise((m,A)=>{let g,p=null;u.windowRef?u.windowRef&&!u.windowRef.closed&&(p=u.windowRef,p.location.href=e):p=window.open(e,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(u));const T=D=>{this.tryLogin({customHashFragment:D,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{S(),m(!0)},F=>{S(),A(F)})};p?g=window.setInterval(()=>{(!p||p.closed)&&(S(),A(new OAuthErrorEvent("popup_closed",{})))},500):A(new OAuthErrorEvent("popup_blocked",{}));const S=()=>{window.clearInterval(g),window.removeEventListener("storage",v),window.removeEventListener("message",R),null!==p&&p.close(),p=null},R=D=>{const F=this.processMessageEventMessage(D);F&&null!==F?(window.removeEventListener("storage",v),T(F)):console.log("false event firing")},v=D=>{"auth_hash"===D.key&&(window.removeEventListener("message",R),T(D.newValue))};window.addEventListener("message",R),window.addEventListener("storage",v)}))}calculatePopupFeatures(u){const e=u.height||470,m=u.width||500,A=window.screenLeft+(window.outerWidth-m)/2;return`location=no,toolbar=no,width=${m},height=${e},top=${window.screenTop+(window.outerHeight-e)/2},left=${A}`}processMessageEventMessage(u){let e="#";if(this.silentRefreshMessagePrefix&&(e+=this.silentRefreshMessagePrefix),!u||!u.data||"string"!=typeof u.data)return;const m=u.data;return m.startsWith(e)?"#"+m.substr(e.length):void 0}canPerformSessionCheck(){return!(!this.sessionChecksEnabled||(this.sessionCheckIFrameUrl?this.getSessionState()?typeof this.document>"u":(console.warn("sessionChecksEnabled is activated but there is no session_state"),1):(console.warn("sessionChecksEnabled is activated but there is no sessionCheckIFrameUrl"),1)))}setupSessionCheckEventListener(){this.removeSessionCheckEventListener(),this.sessionCheckEventListener=u=>{const e=u.origin.toLowerCase(),m=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),m.startsWith(e)){switch(u.data){case"unchanged":this.ngZone.run(()=>{this.handleSessionUnchanged()});break;case"changed":this.ngZone.run(()=>{this.handleSessionChange()});break;case"error":this.ngZone.run(()=>{this.handleSessionError()})}this.debug("got info from session check inframe",u)}else this.debug("sessionCheckEventListener","wrong origin",e,"expected",m,"event",u)},this.ngZone.runOutsideAngular(()=>{window.addEventListener("message",this.sessionCheckEventListener)})}handleSessionUnchanged(){this.debug("session check","session unchanged"),this.eventsSubject.next(new OAuthInfoEvent("session_unchanged"))}handleSessionChange(){this.eventsSubject.next(new OAuthInfoEvent("session_changed")),this.stopSessionCheckTimer(),this.useSilentRefresh||"code"!==this.responseType?this.silentRefreshRedirectUri?(this.silentRefresh().catch(u=>this.debug("silent refresh failed after session changed")),this.waitForSilentRefreshAfterSessionChange()):(this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)):this.refreshToken().then(u=>{this.debug("token refresh after session change worked")}).catch(u=>{this.debug("token refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)})}waitForSilentRefreshAfterSessionChange(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(u=>"silently_refreshed"===u.type||"silent_refresh_timeout"===u.type||"silent_refresh_error"===u.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()).subscribe(u=>{"silently_refreshed"!==u.type&&(this.debug("silent refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0))})}handleSessionError(){this.stopSessionCheckTimer(),this.eventsSubject.next(new OAuthInfoEvent("session_error"))}removeSessionCheckEventListener(){this.sessionCheckEventListener&&(window.removeEventListener("message",this.sessionCheckEventListener),this.sessionCheckEventListener=null)}initSessionCheck(){if(!this.canPerformSessionCheck())return;const u=this.document.getElementById(this.sessionCheckIFrameName);u&&this.document.body.removeChild(u);const e=this.document.createElement("iframe");e.id=this.sessionCheckIFrameName,this.setupSessionCheckEventListener(),e.setAttribute("src",this.sessionCheckIFrameUrl),e.style.display="none",this.document.body.appendChild(e),this.startSessionCheckTimer()}startSessionCheckTimer(){this.stopSessionCheckTimer(),this.ngZone.runOutsideAngular(()=>{this.sessionCheckTimer=setInterval(this.checkSession.bind(this),this.sessionCheckIntervall)})}stopSessionCheckTimer(){this.sessionCheckTimer&&(clearInterval(this.sessionCheckTimer),this.sessionCheckTimer=null)}checkSession(){const u=this.document.getElementById(this.sessionCheckIFrameName);u||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);const e=this.getSessionState();e||this.stopSessionCheckTimer(),u.contentWindow.postMessage(this.clientId+" "+e,this.issuer)}createLoginUrl(u="",e="",m="",A=!1,w={}){var p=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const g=p;let T;T=m||p.redirectUri;const E=yield p.createAndSaveNonce();if(u=u?E+p.config.nonceStateSeparator+encodeURIComponent(u):E,!p.requestAccessToken&&!p.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");p.responseType=p.config.responseType?p.config.responseType:p.oidc&&p.requestAccessToken?"id_token token":p.oidc&&!p.requestAccessToken?"id_token":"token";const S=g.loginUrl.indexOf("?")>-1?"&":"?";let R=g.scope;p.oidc&&!R.match(/(^|\s)openid($|\s)/)&&(R="openid "+R);let v=g.loginUrl+S+"response_type="+encodeURIComponent(g.responseType)+"&client_id="+encodeURIComponent(g.clientId)+"&state="+encodeURIComponent(u)+"&redirect_uri="+encodeURIComponent(T)+"&scope="+encodeURIComponent(R);if(p.responseType.includes("code")&&!p.disablePKCE){const[D,F]=yield p.createChallangeVerifierPairForPKCE();p.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("PKCE_verifier",F):p._storage.setItem("PKCE_verifier",F),v+="&code_challenge="+D,v+="&code_challenge_method=S256"}e&&(v+="&login_hint="+encodeURIComponent(e)),g.resource&&(v+="&resource="+encodeURIComponent(g.resource)),g.oidc&&(v+="&nonce="+encodeURIComponent(E)),A&&(v+="&prompt=none");for(const D of Object.keys(w))v+="&"+encodeURIComponent(D)+"="+encodeURIComponent(w[D]);if(p.customQueryParams)for(const D of Object.getOwnPropertyNames(p.customQueryParams))v+="&"+D+"="+encodeURIComponent(p.customQueryParams[D]);return v})()}initImplicitFlowInternal(u="",e=""){if(this.inImplicitFlow)return;if(this.inImplicitFlow=!0,!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let m={},A=null;"string"==typeof e?A=e:"object"==typeof e&&(m=e),this.createLoginUrl(u,A,null,!1,m).then(this.config.openUri).catch(w=>{console.error("Error in initImplicitFlow",w),this.inImplicitFlow=!1})}initImplicitFlow(u="",e=""){""!==this.loginUrl?this.initImplicitFlowInternal(u,e):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(m=>"discovery_document_loaded"===m.type)).subscribe(m=>this.initImplicitFlowInternal(u,e))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(u){const e=this;if(u.onTokenReceived){const m={idClaims:e.getIdentityClaims(),idToken:e.getIdToken(),accessToken:e.getAccessToken(),state:e.state};u.onTokenReceived(m)}}storeAccessTokenResponse(u,e,m,A,w){if(this._storage.setItem("access_token",u),A&&!Array.isArray(A)?this._storage.setItem("granted_scopes",JSON.stringify(A.split(" "))):A&&Array.isArray(A)&&this._storage.setItem("granted_scopes",JSON.stringify(A)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),m){const p=1e3*m,T=this.dateTimeService.new().getTime()+p;this._storage.setItem("expires_at",""+T)}e&&this._storage.setItem("refresh_token",e),w&&w.forEach((p,g)=>{this._storage.setItem(g,p)})}tryLogin(u=null){return"code"===this.config.responseType?this.tryLoginCodeFlow(u).then(e=>!0):this.tryLoginImplicitFlow(u)}parseQueryString(u){return u&&0!==u.length?("?"===u.charAt(0)&&(u=u.substr(1)),this.urlHelper.parseQueryString(u)):{}}tryLoginCodeFlow(u=null){var e=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const m=(u=u||{}).customHashFragment?u.customHashFragment.substring(1):window.location.search,A=e.getCodePartsFromUrl(m),w=A.code,p=A.state,g=A.session_state;if(!u.preventClearHashAfterLogin){const S=location.origin+location.pathname+location.search.replace(/code=[^&\$]*/,"").replace(/scope=[^&\$]*/,"").replace(/state=[^&\$]*/,"").replace(/session_state=[^&\$]*/,"").replace(/^\?&/,"?").replace(/&$/,"").replace(/^\?$/,"").replace(/&+/g,"&").replace(/\?&/,"?").replace(/\?$/,"")+location.hash;history.replaceState(null,window.name,S)}let[T,E]=e.parseState(p);if(e.state=E,A.error){e.debug("error trying to login"),e.handleLoginError(u,A);const S=new OAuthErrorEvent("code_error",{},A);return e.eventsSubject.next(S),Promise.reject(S)}if(!u.disableNonceCheck){if(!T)return e.saveRequestedRoute(),Promise.resolve();if(!u.disableOAuth2StateCheck&&!e.validateNonce(T)){const R=new OAuthErrorEvent("invalid_nonce_in_state",null);return e.eventsSubject.next(R),Promise.reject(R)}return e.storeSessionState(g),w&&(yield e.getTokenFromCode(w,u),e.restoreRequestedRoute()),Promise.resolve()}return Promise.reject()})()}saveRequestedRoute(){this.config.preserveRequestedRoute&&this._storage.setItem("requested_route",window.location.pathname+window.location.search)}restoreRequestedRoute(){const u=this._storage.getItem("requested_route");u&&history.replaceState(null,"",window.location.origin+u)}getCodePartsFromUrl(u){return u&&0!==u.length?("?"===u.charAt(0)&&(u=u.substr(1)),this.urlHelper.parseQueryString(u)):this.urlHelper.getHashFragmentParams()}getTokenFromCode(u,e){let m=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","authorization_code").set("code",u).set("redirect_uri",e.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let A;A=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("PKCE_verifier"):this._storage.getItem("PKCE_verifier"),A?m=m.set("code_verifier",A):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(m,e)}fetchAndProcessToken(u,e){e=e||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let m=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const A=btoa(`${this.clientId}:${this.dummyClientSecret}`);m=m.set("Authorization","Basic "+A)}return this.useHttpBasicAuth||(u=u.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(u=u.set("client_secret",this.dummyClientSecret)),new Promise((A,w)=>{if(this.customQueryParams)for(let p of Object.getOwnPropertyNames(this.customQueryParams))u=u.set(p,this.customQueryParams[p]);this.http.post(this.tokenEndpoint,u,{headers:m}).subscribe(p=>{this.debug("refresh tokenResponse",p),this.storeAccessTokenResponse(p.access_token,p.refresh_token,p.expires_in||this.fallbackAccessTokenExpirationTimeInSec,p.scope,this.extractRecognizedCustomParameters(p)),this.oidc&&p.id_token?this.processIdToken(p.id_token,p.access_token,e.disableNonceCheck).then(g=>{this.storeIdToken(g),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),A(p)}).catch(g=>{this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",g)),console.error("Error validating tokens"),console.error(g),w(g)}):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),A(p))},p=>{console.error("Error getting token",p),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",p)),w(p)})})}tryLoginImplicitFlow(u=null){let e;e=(u=u||{}).customHashFragment?this.urlHelper.getHashFragmentParams(u.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",e);const m=e.state;let[A,w]=this.parseState(m);if(this.state=w,e.error){this.debug("error trying to login"),this.handleLoginError(u,e);const S=new OAuthErrorEvent("token_error",{},e);return this.eventsSubject.next(S),Promise.reject(S)}const p=e.access_token,g=e.id_token,T=e.session_state,E=e.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!p||this.requestAccessToken&&!u.disableOAuth2StateCheck&&!m||this.oidc&&!g)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!T&&this.logger.warn("session checks (Session Status Change Notification) were activated in the configuration but the id_token does not contain a session_state claim"),this.requestAccessToken&&!u.disableNonceCheck&&!this.validateNonce(A)){const R=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(R),Promise.reject(R)}return this.requestAccessToken&&this.storeAccessTokenResponse(p,null,e.expires_in||this.fallbackAccessTokenExpirationTimeInSec,E),this.oidc?this.processIdToken(g,p,u.disableNonceCheck).then(S=>u.validationHandler?u.validationHandler({accessToken:p,idClaims:S.idTokenClaims,idToken:S.idToken,state:m}).then(R=>S):S).then(S=>(this.storeIdToken(S),this.storeSessionState(T),this.clearHashAfterLogin&&!u.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.callOnTokenReceivedIfExists(u),this.inImplicitFlow=!1,!0)).catch(S=>(this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",S)),this.logger.error("Error validating tokens"),this.logger.error(S),Promise.reject(S))):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.clearHashAfterLogin&&!u.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(u),Promise.resolve(!0))}parseState(u){let e=u,m="";if(u){const A=u.indexOf(this.config.nonceStateSeparator);A>-1&&(e=u.substr(0,A),m=u.substr(A+this.config.nonceStateSeparator.length))}return[e,m]}validateNonce(u){let e;return e=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),e===u||(console.error("Validating access_token failed, wrong state/nonce.",e,u),!1)}storeIdToken(u){this._storage.setItem("id_token",u.idToken),this._storage.setItem("id_token_claims_obj",u.idTokenClaimsJson),this._storage.setItem("id_token_expires_at",""+u.idTokenExpiresAt),this._storage.setItem("id_token_stored_at",""+this.dateTimeService.now())}storeSessionState(u){this._storage.setItem("session_state",u)}getSessionState(){return this._storage.getItem("session_state")}handleLoginError(u,e){u.onLoginError&&u.onLoginError(e),this.clearHashAfterLogin&&!u.preventClearHashAfterLogin&&this.clearLocationHash()}getClockSkewInMsec(u=6e5){return this.clockSkewInSec?1e3*this.clockSkewInSec:u}processIdToken(u,e,m=!1){const A=u.split("."),p=b64DecodeUnicode(this.padBase64(A[0])),g=JSON.parse(p),E=b64DecodeUnicode(this.padBase64(A[1])),S=JSON.parse(E);let R;if(R=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Array.isArray(S.aud)){if(S.aud.every(G=>G!==this.clientId)){const G="Wrong audience: "+S.aud.join(",");return this.logger.warn(G),Promise.reject(G)}}else if(S.aud!==this.clientId){const G="Wrong audience: "+S.aud;return this.logger.warn(G),Promise.reject(G)}if(!S.sub){const G="No sub claim in id_token";return this.logger.warn(G),Promise.reject(G)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==S.sub){const G=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${S.sub}`;return this.logger.warn(G),Promise.reject(G)}if(!S.iat){const G="No iat claim in id_token";return this.logger.warn(G),Promise.reject(G)}if(!this.skipIssuerCheck&&S.iss!==this.issuer){const G="Wrong issuer: "+S.iss;return this.logger.warn(G),Promise.reject(G)}if(!m&&S.nonce!==R){const G="Wrong nonce: "+S.nonce;return this.logger.warn(G),Promise.reject(G)}if(this.hasOwnProperty("responseType")&&("code"===this.responseType||"id_token"===this.responseType)&&(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!S.at_hash){const G="An at_hash is needed!";return this.logger.warn(G),Promise.reject(G)}const v=this.dateTimeService.now(),D=1e3*S.iat,F=1e3*S.exp,z=this.getClockSkewInMsec();if(D-z>=v||F+z<=v){const G="Token has expired";return console.error(G),console.error({now:v,issuedAtMSec:D,expiresAtMSec:F}),Promise.reject(G)}const $={accessToken:e,idToken:u,jwks:this.jwks,idTokenClaims:S,idTokenHeader:g,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature($).then(G=>({idToken:u,idTokenClaims:S,idTokenClaimsJson:E,idTokenHeader:g,idTokenHeaderJson:p,idTokenExpiresAt:F})):this.checkAtHash($).then(G=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!G){const q="Wrong at_hash";return this.logger.warn(q),Promise.reject(q)}return this.checkSignature($).then(q=>{const ce={idToken:u,idTokenClaims:S,idTokenClaimsJson:E,idTokenHeader:g,idTokenHeaderJson:p,idTokenExpiresAt:F};return this.disableAtHashCheck?ce:this.checkAtHash($).then(Te=>{if(this.requestAccessToken&&!Te){const b="Wrong at_hash";return this.logger.warn(b),Promise.reject(b)}return ce})})})}getIdentityClaims(){const u=this._storage.getItem("id_token_claims_obj");return u?JSON.parse(u):null}getGrantedScopes(){const u=this._storage.getItem("granted_scopes");return u?JSON.parse(u):null}getIdToken(){return this._storage?this._storage.getItem("id_token"):null}padBase64(u){for(;u.length%4!=0;)u+="=";return u}getAccessToken(){return this._storage?this._storage.getItem("access_token"):null}getRefreshToken(){return this._storage?this._storage.getItem("refresh_token"):null}getAccessTokenExpiration(){return this._storage.getItem("expires_at")?parseInt(this._storage.getItem("expires_at"),10):null}getAccessTokenStoredAt(){return parseInt(this._storage.getItem("access_token_stored_at"),10)}getIdTokenStoredAt(){return parseInt(this._storage.getItem("id_token_stored_at"),10)}getIdTokenExpiration(){return this._storage.getItem("id_token_expires_at")?parseInt(this._storage.getItem("id_token_expires_at"),10):null}hasValidAccessToken(){if(this.getAccessToken()){const u=this._storage.getItem("expires_at"),e=this.dateTimeService.new();return!(u&&parseInt(u,10)=0&&null!==this._storage.getItem(u)?JSON.parse(this._storage.getItem(u)):null}authorizationHeader(){return"Bearer "+this.getAccessToken()}logOut(u={},e=""){let m=!1;"boolean"==typeof u&&(m=u,u={});const A=this.getIdToken();if(this._storage.removeItem("access_token"),this._storage.removeItem("id_token"),this._storage.removeItem("refresh_token"),this.saveNoncesInLocalStorage?(localStorage.removeItem("nonce"),localStorage.removeItem("PKCE_verifier")):(this._storage.removeItem("nonce"),this._storage.removeItem("PKCE_verifier")),this._storage.removeItem("expires_at"),this._storage.removeItem("id_token_claims_obj"),this._storage.removeItem("id_token_expires_at"),this._storage.removeItem("id_token_stored_at"),this._storage.removeItem("access_token_stored_at"),this._storage.removeItem("granted_scopes"),this._storage.removeItem("session_state"),this.config.customTokenParameters&&this.config.customTokenParameters.forEach(p=>this._storage.removeItem(p)),this.silentRefreshSubject=null,this.eventsSubject.next(new OAuthInfoEvent("logout")),!this.logoutUrl||m||!A&&!this.postLogoutRedirectUri)return;let w;if(!this.validateUrlForHttps(this.logoutUrl))throw new Error("logoutUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(this.logoutUrl.indexOf("{{")>-1)w=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(A)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let p=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec});A&&(p=p.set("id_token_hint",A));const g=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";g&&(p=p.set("post_logout_redirect_uri",g),e&&(p=p.set("state",e)));for(let T in u)p=p.set(T,u[T]);w=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+p.toString()}this.config.openUri(w)}createAndSaveNonce(){const u=this;return this.createNonce().then(function(e){return u.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("nonce",e):u._storage.setItem("nonce",e),e})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();const u=this.document.getElementById(this.silentRefreshIFrameName);u&&u.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();const e=this.document.getElementById(this.sessionCheckIFrameName);e&&e.remove()}createNonce(){return new Promise(u=>{if(this.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";let m=45,A="";const w=typeof self>"u"?null:self.crypto||self.msCrypto;if(w){let p=new Uint8Array(m);w.getRandomValues(p),p.map||(p.map=Array.prototype.map),p=p.map(g=>e.charCodeAt(g%e.length)),A=String.fromCharCode.apply(null,p)}else for(;0"discovery_document_loaded"===m.type)).subscribe(m=>this.initCodeFlowInternal(u,e))}initCodeFlowInternal(u="",e={}){if(!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let m={},A=null;"string"==typeof e?A=e:"object"==typeof e&&(m=e),this.createLoginUrl(u,A,null,!1,m).then(this.config.openUri).catch(w=>{console.error("Error in initAuthorizationCodeFlow"),console.error(w)})}createChallangeVerifierPairForPKCE(){var u=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){if(!u.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");const e=yield u.createNonce();return[base64UrlEncode(yield u.crypto.calcHash(e,"sha-256")),e]})()}extractRecognizedCustomParameters(u){let e=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(m=>{u[m]&&e.set(m,JSON.stringify(u[m]))}),e}revokeTokenAndLogout(u={},e=!1){let m=this.revocationEndpoint,A=this.getAccessToken(),w=this.getRefreshToken();if(!A)return;let p=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}),g=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const T=btoa(`${this.clientId}:${this.dummyClientSecret}`);g=g.set("Authorization","Basic "+T)}if(this.useHttpBasicAuth||(p=p.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(p=p.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const T of Object.getOwnPropertyNames(this.customQueryParams))p=p.set(T,this.customQueryParams[T]);return new Promise((T,E)=>{let S,R;if(A){let v=p.set("token",A).set("token_type_hint","access_token");S=this.http.post(m,v,{headers:g})}else S=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);if(w){let v=p.set("token",w).set("token_type_hint","refresh_token");R=this.http.post(m,v,{headers:g})}else R=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);e&&(S=S.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(v=>0===v.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(v))),R=R.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(v=>0===v.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(v)))),(0,rxjs__WEBPACK_IMPORTED_MODULE_17__.a)([S,R]).subscribe(v=>{this.logOut(u),T(v),this.logger.info("Token successfully revoked")},v=>{this.logger.error("Error revoking token",v),this.eventsSubject.next(new OAuthErrorEvent("token_revoke_error",v)),E(v)})})}clearLocationHash(){""!=location.hash&&(location.hash="")}}return Qe.\u0275fac=function(u){return new(u||Qe)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_core__WEBPACK_IMPORTED_MODULE_1__.R0b),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.eN),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthStorage,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(ValidationHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(AuthConfig,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(UrlHelperService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthLogger),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(HashHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common__WEBPACK_IMPORTED_MODULE_18__.K0),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(DateTimeProvider))},Qe.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:Qe,factory:Qe.\u0275fac}),Qe})();class OAuthModuleConfig{}class OAuthResourceServerConfig{}class OAuthResourceServerErrorHandler{}class OAuthNoopResourceServerErrorHandler{handleError(he){return(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(he)}}let DefaultOAuthInterceptor=(()=>{class Qe{constructor(u,e,m){this.oAuthService=u,this.errorHandler=e,this.moduleConfig=m}checkUrl(u){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(u):!this.moduleConfig.resourceServer.allowedUrls||!!this.moduleConfig.resourceServer.allowedUrls.find(e=>u.toLowerCase().startsWith(e.toLowerCase()))}intercept(u,e){const m=u.url.toLowerCase();return this.moduleConfig&&this.moduleConfig.resourceServer&&this.checkUrl(m)?this.moduleConfig.resourceServer.sendAccessToken?(0,rxjs__WEBPACK_IMPORTED_MODULE_19__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(this.oAuthService.getAccessToken()).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(w=>!!w)),this.oAuthService.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(w=>"token_received"===w.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.V)(this.oAuthService.waitForTokenInMsec||0),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(w=>(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(w=>this.oAuthService.getAccessToken()))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.q)(1),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_22__.z)(w=>{if(w){const g=u.headers.set("Authorization","Bearer "+w);u=u.clone({headers:g})}return e.handle(u).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(p=>this.errorHandler.handleError(p)))})):e.handle(u).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(w=>this.errorHandler.handleError(w))):e.handle(u)}}return Qe.\u0275fac=function(u){return new(u||Qe)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthResourceServerErrorHandler),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthModuleConfig,8))},Qe.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:Qe,factory:Qe.\u0275fac}),Qe})();class NullValidationHandler{validateSignature(he){return Promise.resolve(null)}validateAtHash(he){return Promise.resolve(!0)}}function createDefaultLogger(){return console}function createDefaultStorage(){return typeof sessionStorage<"u"?sessionStorage:new MemoryStorage}let OAuthModule=(()=>{class Qe{static forRoot(u=null,e=NullValidationHandler){return{ngModule:Qe,providers:[OAuthService,UrlHelperService,{provide:OAuthLogger,useFactory:createDefaultLogger},{provide:OAuthStorage,useFactory:createDefaultStorage},{provide:ValidationHandler,useClass:e},{provide:HashHandler,useClass:DefaultHashHandler},{provide:OAuthResourceServerErrorHandler,useClass:OAuthNoopResourceServerErrorHandler},{provide:OAuthModuleConfig,useValue:u},{provide:_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.TP,useClass:DefaultOAuthInterceptor,multi:!0},{provide:DateTimeProvider,useClass:SystemDateTimeProvider}]}}}return Qe.\u0275fac=function(u){return new(u||Qe)},Qe.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_1__.oAB({type:Qe}),Qe.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_1__.cJS({imports:[[_angular_common__WEBPACK_IMPORTED_MODULE_18__.ez]]}),Qe})();const err="PLEASE READ THIS CAREFULLY:\n\nBeginning with angular-oauth2-oidc version 9, the JwksValidationHandler\nhas been moved to an library of its own. If you need it for implementing\nOAuth2/OIDC **implicit flow**, please install it using npm:\n\n npm i angular-oauth2-oidc-jwks --save\n\nAfter that, you can import it into your application:\n\n import { JwksValidationHandler } from 'angular-oauth2-oidc-jwks';\n\nPlease note, that this dependency is not needed for the **code flow**,\nwhich is nowadays the **recommented** one for single page applications.\nThis also results in smaller bundle sizes.\n";class JwksValidationHandler extends NullValidationHandler{constructor(){super(),console.error(err)}}const AUTH_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_1__.OlP("AUTH_CONFIG")},33231:(Qe,he,u)=>{"use strict";u.d(he,{Co:()=>le,nu:()=>J});var e=u(29521),m=u(94650),A=u(24006),w=u(3238),p=u(59549),g=u(84385),T=u(61135),E=u(39646),S=u(39841),R=u(77579),v=u(63900),D=u(54004),F=u(68675),z=u(91005),$=u(82722),G=u(95698),q=u(39300),_e=u(18505),ce=u(67376),Te=u(12687),b=u(56709),H=u(51572),L=u(4859),V=u(97392),Q=u(36895),ae=u(10266);const xe=["searchSelectInput"],ge=["innerSelectSearch"];function Se(ne,ke){if(1&ne){const Ee=m.EpF();m.TgZ(0,"mat-checkbox",9),m.NdJ("change",function(it){m.CHM(Ee);const oe=m.oxw();return m.KtG(oe._emitSelectAllBooleanToParent(it.checked))}),m.qZA()}if(2&ne){const Ee=m.oxw();m.Q6J("color",null==Ee.matFormField?null:Ee.matFormField.color)("checked",Ee.toggleAllCheckboxChecked)("indeterminate",Ee.toggleAllCheckboxIndeterminate)("matTooltip",Ee.toggleAllCheckboxTooltipMessage)("matTooltipPosition",Ee.toogleAllCheckboxTooltipPosition)}}function Be(ne,ke){1&ne&&m._UZ(0,"mat-spinner",10)}function pe(ne,ke){1&ne&&m.Hsn(0,1,["*ngIf","clearIcon; else defaultIcon"])}function $e(ne,ke){if(1&ne&&(m.TgZ(0,"mat-icon",14),m._uU(1),m.qZA()),2&ne){const Ee=m.oxw(2);m.Q6J("svgIcon",Ee.closeSvgIcon),m.xp6(1),m.hij(" ",Ee.closeSvgIcon?null:Ee.closeIcon," ")}}function Ce(ne,ke){if(1&ne){const Ee=m.EpF();m.TgZ(0,"button",11),m.NdJ("click",function(){m.CHM(Ee);const it=m.oxw();return m.KtG(it._reset(!0))}),m.YNc(1,pe,1,0,"ng-content",12),m.YNc(2,$e,2,2,"ng-template",null,13,m.W1O),m.qZA()}if(2&ne){const Ee=m.MAs(3),ot=m.oxw();m.xp6(1),m.Q6J("ngIf",ot.clearIcon)("ngIfElse",Ee)}}function de(ne,ke){1&ne&&m.Hsn(0,2,["*ngIf","noEntriesFound; else defaultNoEntriesFound"])}function re(ne,ke){if(1&ne&&m._uU(0),2&ne){const Ee=m.oxw(2);m.Oqu(Ee.noEntriesFoundLabel)}}function B(ne,ke){if(1&ne&&(m.TgZ(0,"div",15),m.YNc(1,de,1,0,"ng-content",12),m.YNc(2,re,1,1,"ng-template",null,16,m.W1O),m.qZA()),2&ne){const Ee=m.MAs(3),ot=m.oxw();m.xp6(1),m.Q6J("ngIf",ot.noEntriesFound)("ngIfElse",Ee)}}const N=[[["",8,"mat-select-search-custom-header-content"]],[["","ngxMatSelectSearchClear",""]],[["","ngxMatSelectNoEntriesFound",""]]],Me=function(ne,ke){return{"mat-select-search-inner-multiple":ne,"mat-select-search-inner-toggle-all":ke}},Y=[".mat-select-search-custom-header-content","[ngxMatSelectSearchClear]","[ngxMatSelectNoEntriesFound]"];let be=(()=>{class ne{}return ne.\u0275fac=function(Ee){return new(Ee||ne)},ne.\u0275dir=m.lG2({type:ne,selectors:[["","ngxMatSelectSearchClear",""]]}),ne})();const De=["ariaLabel","clearSearchInput","closeIcon","closeSvgIcon","disableInitialFocus","disableScrollToActiveOnOptionsChanged","enableClearOnEscapePressed","hideClearSearchButton","indexAndLengthScreenReaderText","noEntriesFoundLabel","placeholderLabel","preventHomeEndKeyPropagation","searching"],We=new m.OlP("mat-selectsearch-default-options");let Ye=(()=>{class ne{}return ne.\u0275fac=function(Ee){return new(Ee||ne)},ne.\u0275dir=m.lG2({type:ne,selectors:[["","ngxMatSelectNoEntriesFound",""]]}),ne})(),J=(()=>{class ne{constructor(Ee,ot,it,oe=null,X,r=null,s){this.matSelect=Ee,this.changeDetectorRef=ot,this._viewportRuler=it,this.matOption=oe,this.liveAnnouncer=X,this.matFormField=r,this.placeholderLabel="Suche",this.type="text",this.closeIcon="close",this.noEntriesFoundLabel="Keine Optionen gefunden",this.indexAndLengthScreenReaderText=" of ",this.clearSearchInput=!0,this.searching=!1,this.disableInitialFocus=!1,this.enableClearOnEscapePressed=!1,this.preventHomeEndKeyPropagation=!1,this.disableScrollToActiveOnOptionsChanged=!1,this.ariaLabel="dropdown search",this.showToggleAllCheckbox=!1,this.toggleAllCheckboxChecked=!1,this.toggleAllCheckboxIndeterminate=!1,this.toggleAllCheckboxTooltipMessage="",this.toogleAllCheckboxTooltipPosition="below",this.hideClearSearchButton=!1,this.alwaysRestoreSelectedOptionsMulti=!1,this.toggleAll=new m.vpe,this.onTouched=_=>{},this._options$=new T.X(null),this.optionsList$=this._options$.pipe((0,v.w)(_=>_?_.changes.pipe((0,D.U)(c=>c.toArray()),(0,F.O)(_.toArray())):(0,E.of)(null))),this.optionsLength$=this.optionsList$.pipe((0,D.U)(_=>_?_.length:0)),this._formControl=new A.NI(""),this._showNoEntriesFound$=(0,S.a)([this._formControl.valueChanges,this.optionsLength$]).pipe((0,D.U)(([_,c])=>this.noEntriesFoundLabel&&_&&c===this.getOptionsLengthOffset())),this._onDestroy=new R.x,this.applyDefaultOptions(s)}get isInsideMatOption(){return!!this.matOption}get value(){return this._formControl.value}set _options(Ee){this._options$.next(Ee)}get _options(){return this._options$.getValue()}applyDefaultOptions(Ee){if(Ee)for(const ot of De)Ee.hasOwnProperty(ot)&&(this[ot]=Ee[ot])}ngOnInit(){const Ee="mat-select-search-panel";this.matSelect.panelClass?Array.isArray(this.matSelect.panelClass)?this.matSelect.panelClass.push(Ee):"string"==typeof this.matSelect.panelClass?this.matSelect.panelClass=[this.matSelect.panelClass,Ee]:"object"==typeof this.matSelect.panelClass&&(this.matSelect.panelClass[Ee]=!0):this.matSelect.panelClass=Ee,this.matOption?(this.matOption.disabled=!0,this.matOption._getHostElement().classList.add("contains-mat-select-search")):console.error(" must be placed inside a element"),this.matSelect.openedChange.pipe((0,z.g)(1),(0,$.R)(this._onDestroy)).subscribe(ot=>{ot?(this.updateInputWidth(),this.disableInitialFocus||this._focus()):this.clearSearchInput&&this._reset()}),this.matSelect.openedChange.pipe((0,G.q)(1)).pipe((0,$.R)(this._onDestroy)).subscribe(()=>{this.matSelect._keyManager?this.matSelect._keyManager.change.pipe((0,$.R)(this._onDestroy)).subscribe(()=>this.adjustScrollTopToFitActiveOptionIntoView()):console.log("_keyManager was not initialized."),this._options=this.matSelect.options;let ot=this._options.toArray()[this.getOptionsLengthOffset()];this._options.changes.pipe((0,$.R)(this._onDestroy)).subscribe(()=>{setTimeout(()=>{const it=this._options.toArray(),oe=it[this.getOptionsLengthOffset()],X=this.matSelect._keyManager;X&&this.matSelect.panelOpen&&((!this.matSelect.compareWith(ot,oe)||!X.activeItem||!it.find(s=>this.matSelect.compareWith(s,X.activeItem)))&&X.setFirstItemActive(),setTimeout(()=>{this.updateInputWidth()}),this.disableScrollToActiveOnOptionsChanged||this.adjustScrollTopToFitActiveOptionIntoView()),ot=oe})})}),this._showNoEntriesFound$.pipe((0,$.R)(this._onDestroy)).subscribe(ot=>{this.matOption&&(ot?this.matOption._getHostElement().classList.add("mat-select-search-no-entries-found"):this.matOption._getHostElement().classList.remove("mat-select-search-no-entries-found"))}),this._viewportRuler.change().pipe((0,$.R)(this._onDestroy)).subscribe(()=>{this.matSelect.panelOpen&&this.updateInputWidth()}),this.initMultipleHandling(),this.optionsList$.pipe((0,$.R)(this._onDestroy)).subscribe(()=>{this.changeDetectorRef.markForCheck()})}_emitSelectAllBooleanToParent(Ee){this.toggleAll.emit(Ee)}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}_isToggleAllCheckboxVisible(){return this.matSelect.multiple&&this.showToggleAllCheckbox}_handleKeydown(Ee){(Ee.key&&1===Ee.key.length||Ee.keyCode>=e.A&&Ee.keyCode<=e.Z||Ee.keyCode>=e.xE&&Ee.keyCode<=e.aO||Ee.keyCode===e.L_||this.preventHomeEndKeyPropagation&&(Ee.keyCode===e.Sd||Ee.keyCode===e.uR))&&Ee.stopPropagation(),this.matSelect.multiple&&Ee.key&&Ee.keyCode===e.K5&&setTimeout(()=>this._focus()),!0===this.enableClearOnEscapePressed&&Ee.keyCode===e.hY&&this.value&&(this._reset(!0),Ee.stopPropagation())}_handleKeyup(Ee){if(Ee.keyCode===e.LH||Ee.keyCode===e.JH){const ot=this.matSelect._getAriaActiveDescendant(),it=this._options.toArray().findIndex(oe=>oe.id===ot);if(-1!==it){const oe=this._options.toArray()[it];this.liveAnnouncer.announce(oe.viewValue+" "+this.getAriaIndex(it)+this.indexAndLengthScreenReaderText+this.getAriaLength())}}}getAriaIndex(Ee){return 0===this.getOptionsLengthOffset()?Ee+1:Ee}getAriaLength(){return this._options.toArray().length-this.getOptionsLengthOffset()}writeValue(Ee){this._lastExternalInputValue=Ee,this._formControl.setValue(Ee),this.changeDetectorRef.markForCheck()}onBlur(){this.onTouched()}registerOnChange(Ee){this._formControl.valueChanges.pipe((0,q.h)(ot=>ot!==this._lastExternalInputValue),(0,_e.b)(()=>this._lastExternalInputValue=void 0),(0,$.R)(this._onDestroy)).subscribe(Ee)}registerOnTouched(Ee){this.onTouched=Ee}_focus(){if(!this.searchSelectInput||!this.matSelect.panel)return;const Ee=this.matSelect.panel.nativeElement,ot=Ee.scrollTop;this.searchSelectInput.nativeElement.focus(),Ee.scrollTop=ot}_reset(Ee){this._formControl.setValue(""),Ee&&this._focus()}initMultipleHandling(){this.matSelect.ngControl?(this.previousSelectedValues=this.matSelect.ngControl.value,this.matSelect.ngControl.valueChanges.pipe((0,$.R)(this._onDestroy)).subscribe(Ee=>{let ot=!1;if(this.matSelect.multiple&&(this.alwaysRestoreSelectedOptionsMulti||this._formControl.value&&this._formControl.value.length)&&this.previousSelectedValues&&Array.isArray(this.previousSelectedValues)){(!Ee||!Array.isArray(Ee))&&(Ee=[]);const it=this.matSelect.options.map(oe=>oe.value);this.previousSelectedValues.forEach(oe=>{!Ee.some(X=>this.matSelect.compareWith(X,oe))&&!it.some(X=>this.matSelect.compareWith(X,oe))&&(Ee.push(oe),ot=!0)})}this.previousSelectedValues=Ee,ot&&this.matSelect._onChange(Ee)})):this.matSelect.multiple&&console.error("the mat-select containing ngx-mat-select-search must have a ngModel or formControl directive when multiple=true")}adjustScrollTopToFitActiveOptionIntoView(){if(this.matSelect.panel&&this.matSelect.options.length>0){const Ee=this.getMatOptionHeight(),ot=this.matSelect._keyManager.activeItemIndex||0,it=(0,w.CB)(ot,this.matSelect.options,this.matSelect.optionGroups),oe=(this.matOption?-1:0)+it+ot,X=this.matSelect.panel.nativeElement.scrollTop,r=this.innerSelectSearch.nativeElement.offsetHeight,s=Math.floor((256-r)/Ee),_=Math.round((X+r)/Ee)-1;_>=oe?this.matSelect.panel.nativeElement.scrollTop=oe*Ee:_+s<=oe&&(this.matSelect.panel.nativeElement.scrollTop=(oe+1)*Ee-(256-r))}}updateInputWidth(){if(!this.innerSelectSearch||!this.innerSelectSearch.nativeElement)return;let ot,Ee=this.innerSelectSearch.nativeElement;for(;Ee=Ee.parentElement;)if(Ee.classList.contains("mat-select-panel")){ot=Ee;break}ot&&(this.innerSelectSearch.nativeElement.style.width=ot.clientWidth+"px")}getMatOptionHeight(){return this.matSelect.options.length>0?this.matSelect.options.first._getHostElement().getBoundingClientRect().height:0}getOptionsLengthOffset(){return this.matOption?1:0}}return ne.\u0275fac=function(Ee){return new(Ee||ne)(m.Y36(g.gD),m.Y36(m.sBO),m.Y36(ce.rL),m.Y36(w.ey,8),m.Y36(Te.Kd),m.Y36(p.KE,8),m.Y36(We,8))},ne.\u0275cmp=m.Xpm({type:ne,selectors:[["ngx-mat-select-search"]],contentQueries:function(Ee,ot,it){if(1&Ee&&(m.Suo(it,be,5),m.Suo(it,Ye,5)),2&Ee){let oe;m.iGM(oe=m.CRH())&&(ot.clearIcon=oe.first),m.iGM(oe=m.CRH())&&(ot.noEntriesFound=oe.first)}},viewQuery:function(Ee,ot){if(1&Ee&&(m.Gf(xe,7,m.SBq),m.Gf(ge,7,m.SBq)),2&Ee){let it;m.iGM(it=m.CRH())&&(ot.searchSelectInput=it.first),m.iGM(it=m.CRH())&&(ot.innerSelectSearch=it.first)}},hostVars:2,hostBindings:function(Ee,ot){2&Ee&&m.ekj("mat-select-search-inside-mat-option",ot.isInsideMatOption)},inputs:{placeholderLabel:"placeholderLabel",type:"type",closeIcon:"closeIcon",closeSvgIcon:"closeSvgIcon",noEntriesFoundLabel:"noEntriesFoundLabel",indexAndLengthScreenReaderText:"indexAndLengthScreenReaderText",clearSearchInput:"clearSearchInput",searching:"searching",disableInitialFocus:"disableInitialFocus",enableClearOnEscapePressed:"enableClearOnEscapePressed",preventHomeEndKeyPropagation:"preventHomeEndKeyPropagation",disableScrollToActiveOnOptionsChanged:"disableScrollToActiveOnOptionsChanged",ariaLabel:"ariaLabel",showToggleAllCheckbox:"showToggleAllCheckbox",toggleAllCheckboxChecked:"toggleAllCheckboxChecked",toggleAllCheckboxIndeterminate:"toggleAllCheckboxIndeterminate",toggleAllCheckboxTooltipMessage:"toggleAllCheckboxTooltipMessage",toogleAllCheckboxTooltipPosition:"toogleAllCheckboxTooltipPosition",hideClearSearchButton:"hideClearSearchButton",alwaysRestoreSelectedOptionsMulti:"alwaysRestoreSelectedOptionsMulti"},outputs:{toggleAll:"toggleAll"},features:[m._Bn([{provide:A.JU,useExisting:(0,m.Gpc)(()=>ne),multi:!0}])],ngContentSelectors:Y,decls:11,vars:14,consts:[["matInput","",1,"mat-select-search-input","mat-select-search-hidden"],[1,"mat-select-search-inner","mat-typography","mat-datepicker-content","mat-tab-header",3,"ngClass"],["innerSelectSearch",""],["class","mat-select-search-toggle-all-checkbox","matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",3,"color","checked","indeterminate","matTooltip","matTooltipPosition","change",4,"ngIf"],["autocomplete","off",1,"mat-select-search-input","mat-input-element",3,"type","formControl","placeholder","keydown","keyup","blur"],["searchSelectInput",""],["class","mat-select-search-spinner","diameter","16",4,"ngIf"],["mat-button","","mat-icon-button","","aria-label","Clear","class","mat-select-search-clear",3,"click",4,"ngIf"],["class","mat-select-search-no-entries-found",4,"ngIf"],["matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",1,"mat-select-search-toggle-all-checkbox",3,"color","checked","indeterminate","matTooltip","matTooltipPosition","change"],["diameter","16",1,"mat-select-search-spinner"],["mat-button","","mat-icon-button","","aria-label","Clear",1,"mat-select-search-clear",3,"click"],[4,"ngIf","ngIfElse"],["defaultIcon",""],[3,"svgIcon"],[1,"mat-select-search-no-entries-found"],["defaultNoEntriesFound",""]],template:function(Ee,ot){1&Ee&&(m.F$t(N),m._UZ(0,"input",0),m.TgZ(1,"div",1,2),m.YNc(3,Se,1,5,"mat-checkbox",3),m.TgZ(4,"input",4,5),m.NdJ("keydown",function(oe){return ot._handleKeydown(oe)})("keyup",function(oe){return ot._handleKeyup(oe)})("blur",function(){return ot.onBlur()}),m.qZA(),m.YNc(6,Be,1,0,"mat-spinner",6),m.YNc(7,Ce,4,2,"button",7),m.Hsn(8),m.qZA(),m.YNc(9,B,4,2,"div",8),m.ALo(10,"async")),2&Ee&&(m.xp6(1),m.Q6J("ngClass",m.WLB(11,Me,ot.matSelect.multiple,ot._isToggleAllCheckboxVisible())),m.xp6(2),m.Q6J("ngIf",ot._isToggleAllCheckboxVisible()),m.xp6(1),m.Q6J("type",ot.type)("formControl",ot._formControl)("placeholder",ot.placeholderLabel),m.uIk("aria-label",ot.ariaLabel),m.xp6(2),m.Q6J("ngIf",ot.searching),m.xp6(1),m.Q6J("ngIf",!ot.hideClearSearchButton&&ot.value&&!ot.searching),m.xp6(2),m.Q6J("ngIf",m.lcZ(10,9,ot._showNoEntriesFound$)))},dependencies:[b.oG,H.Ou,L.lW,V.Hw,Q.mk,Q.O5,ae.gM,A.Fj,A.JJ,A.oH,Q.Ov],styles:[".mat-select-search-hidden[_ngcontent-%COMP%]{visibility:hidden}.mat-select-search-inner[_ngcontent-%COMP%]{position:absolute;top:0;width:100%;border-bottom-width:1px;border-bottom-style:solid;z-index:100;font-size:inherit;box-shadow:none;border-radius:4px 4px 0 0;-webkit-transform:translate3d(0,0,0)}.mat-select-search-inner.mat-select-search-inner-multiple[_ngcontent-%COMP%]{width:100%}.mat-select-search-inner.mat-select-search-inner-multiple.mat-select-search-inner-toggle-all[_ngcontent-%COMP%]{display:flex;align-items:center}.mat-select-search-inner[_ngcontent-%COMP%] .mat-input-element[_ngcontent-%COMP%]{flex-basis:auto}.mat-select-search-inner[_ngcontent-%COMP%] .mat-input-element[_ngcontent-%COMP%]:-ms-input-placeholder{-ms-user-select:text} .mat-select-search-panel{transform:none!important;overflow-x:hidden}.mat-select-search-input[_ngcontent-%COMP%]{padding:16px 44px 16px 16px;box-sizing:border-box;width:100%}[dir=rtl][_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%]{padding-right:16px;padding-left:44px}.mat-select-search-no-entries-found[_ngcontent-%COMP%]{padding:16px}.mat-select-search-clear[_ngcontent-%COMP%]{position:absolute;right:4px;top:5px}[dir=rtl][_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%]{right:auto;left:4px}.mat-select-search-spinner[_ngcontent-%COMP%]{position:absolute;right:16px;top:calc(50% - 8px)}[dir=rtl][_nghost-%COMP%] .mat-select-search-spinner[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-spinner[_ngcontent-%COMP%]{right:auto;left:16px}.mat-select-search-inside-mat-option[_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0;height:3em;line-height:3em}.mat-select-search-inside-mat-option[_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%]{top:3px} .mat-option[aria-disabled=true].contains-mat-select-search{position:static;padding:0} .mat-option[aria-disabled=true].contains-mat-select-search .mat-icon{margin-right:0;margin-left:0} .mat-option[aria-disabled=true].contains-mat-select-search .mat-option-pseudo-checkbox{display:none} .mat-option[aria-disabled=true].contains-mat-select-search.mat-select-search-no-entries-found{height:6em}.mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%]{padding-left:16px;padding-bottom:2px}[dir=rtl][_nghost-%COMP%] .mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%]{padding-left:0;padding-right:16px}"],changeDetection:0}),ne})(),le=(()=>{class ne{}return ne.\u0275fac=function(Ee){return new(Ee||ne)},ne.\u0275mod=m.oAB({type:ne}),ne.\u0275inj=m.cJS({imports:[[Q.ez,A.UX,L.ot,b.p9,V.Ps,H.Cq,ae.AV]]}),ne})()},15861:(Qe,he,u)=>{"use strict";function e(A,w,p,g,T,E,S){try{var R=A[E](S),v=R.value}catch(D){return void p(D)}R.done?w(v):Promise.resolve(v).then(g,T)}function m(A){return function(){var w=this,p=arguments;return new Promise(function(g,T){var E=A.apply(w,p);function S(v){e(E,g,T,S,R,"next",v)}function R(v){e(E,g,T,S,R,"throw",v)}S(void 0)})}}u.d(he,{Z:()=>m})},4147:Qe=>{"use strict";Qe.exports={i8:"10.3.0"}}},Qe=>{Qe(Qe.s=92013)}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/runtime.f53188e5f15fd818.js b/dist/apps/admin-gui/runtime.71ddc20881644f82.js similarity index 54% rename from dist/apps/admin-gui/runtime.f53188e5f15fd818.js rename to dist/apps/admin-gui/runtime.71ddc20881644f82.js index 767e9c12a..db7e297be 100644 --- a/dist/apps/admin-gui/runtime.f53188e5f15fd818.js +++ b/dist/apps/admin-gui/runtime.71ddc20881644f82.js @@ -1 +1 @@ -(()=>{"use strict";var e,g={},v={};function r(e){var n=v[e];if(void 0!==n)return n.exports;var t=v[e]={id:e,loaded:!1,exports:{}};return g[e].call(t.exports,t,t.exports,r),t.loaded=!0,t.exports}r.m=g,e=[],r.O=(n,t,f,o)=>{if(!t){var a=1/0;for(i=0;i=o)&&Object.keys(r.O).every(p=>r.O[p](t[d]))?t.splice(d--,1):(l=!1,o0&&e[i-1][2]>o;i--)e[i]=e[i-1];e[i]=[t,f,o]},r.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return r.d(n,{a:n}),n},(()=>{var n,e=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__;r.t=function(t,f){if(1&f&&(t=this(t)),8&f||"object"==typeof t&&t&&(4&f&&t.__esModule||16&f&&"function"==typeof t.then))return t;var o=Object.create(null);r.r(o);var i={};n=n||[null,e({}),e([]),e(e)];for(var a=2&f&&t;"object"==typeof a&&!~n.indexOf(a);a=e(a))Object.getOwnPropertyNames(a).forEach(l=>i[l]=()=>t[l]);return i.default=()=>t,r.d(o,i),o}})(),r.d=(e,n)=>{for(var t in n)r.o(n,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((n,t)=>(r.f[t](e,n),n),[])),r.u=e=>e+"."+{283:"467873b8cf250687",338:"7e518000e29cc874",462:"6f501b5cb3f7f207",493:"2871d9551d589868",525:"cfe552e0f97a0401",641:"2e882839e7971673",745:"e0d21584d22b3df0",775:"d03b5f65f6c4a6cd",907:"a215b601e8106d58"}[e]+".js",r.miniCssF=e=>{},r.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),(()=>{var e={},n="admin-gui:";r.l=(t,f,o,i)=>{if(e[t])e[t].push(f);else{var a,l;if(void 0!==o)for(var d=document.getElementsByTagName("script"),u=0;u{a.onerror=a.onload=null,clearTimeout(b);var h=e[t];if(delete e[t],a.parentNode&&a.parentNode.removeChild(a),h&&h.forEach(y=>y(p)),_)return _(p)},b=setTimeout(s.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=s.bind(null,a.onerror),a.onload=s.bind(null,a.onload),l&&document.head.appendChild(a)}}})(),r.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;r.tt=()=>(void 0===e&&(e={createScriptURL:n=>n},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),r.tu=e=>r.tt().createScriptURL(e),r.p="",(()=>{var e={666:0};r.f.j=(f,o)=>{var i=r.o(e,f)?e[f]:void 0;if(0!==i)if(i)o.push(i[2]);else if(666!=f){var a=new Promise((c,s)=>i=e[f]=[c,s]);o.push(i[2]=a);var l=r.p+r.u(f),d=new Error;r.l(l,c=>{if(r.o(e,f)&&(0!==(i=e[f])&&(e[f]=void 0),i)){var s=c&&("load"===c.type?"missing":c.type),b=c&&c.target&&c.target.src;d.message="Loading chunk "+f+" failed.\n("+s+": "+b+")",d.name="ChunkLoadError",d.type=s,d.request=b,i[1](d)}},"chunk-"+f,f)}else e[f]=0},r.O.j=f=>0===e[f];var n=(f,o)=>{var d,u,[i,a,l]=o,c=0;if(i.some(b=>0!==e[b])){for(d in a)r.o(a,d)&&(r.m[d]=a[d]);if(l)var s=l(r)}for(f&&f(o);c{"use strict";var e,g={},v={};function r(e){var n=v[e];if(void 0!==n)return n.exports;var t=v[e]={id:e,loaded:!1,exports:{}};return g[e].call(t.exports,t,t.exports,r),t.loaded=!0,t.exports}r.m=g,e=[],r.O=(n,t,i,o)=>{if(!t){var a=1/0;for(f=0;f=o)&&Object.keys(r.O).every(p=>r.O[p](t[d]))?t.splice(d--,1):(l=!1,o0&&e[f-1][2]>o;f--)e[f]=e[f-1];e[f]=[t,i,o]},r.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return r.d(n,{a:n}),n},(()=>{var n,e=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__;r.t=function(t,i){if(1&i&&(t=this(t)),8&i||"object"==typeof t&&t&&(4&i&&t.__esModule||16&i&&"function"==typeof t.then))return t;var o=Object.create(null);r.r(o);var f={};n=n||[null,e({}),e([]),e(e)];for(var a=2&i&&t;"object"==typeof a&&!~n.indexOf(a);a=e(a))Object.getOwnPropertyNames(a).forEach(l=>f[l]=()=>t[l]);return f.default=()=>t,r.d(o,f),o}})(),r.d=(e,n)=>{for(var t in n)r.o(n,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((n,t)=>(r.f[t](e,n),n),[])),r.u=e=>e+"."+{109:"d722694daabc5484",254:"d447d12472cd3dcd",338:"eece52703f68413f",493:"2871d9551d589868",641:"2e882839e7971673",705:"365601fe31be80ca",775:"69d90981bcc1b878",839:"7b40c505f923811d",907:"92a494ce92a3e7ab"}[e]+".js",r.miniCssF=e=>{},r.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),(()=>{var e={},n="admin-gui:";r.l=(t,i,o,f)=>{if(e[t])e[t].push(i);else{var a,l;if(void 0!==o)for(var d=document.getElementsByTagName("script"),u=0;u{a.onerror=a.onload=null,clearTimeout(b);var h=e[t];if(delete e[t],a.parentNode&&a.parentNode.removeChild(a),h&&h.forEach(y=>y(p)),_)return _(p)},b=setTimeout(s.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=s.bind(null,a.onerror),a.onload=s.bind(null,a.onload),l&&document.head.appendChild(a)}}})(),r.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;r.tt=()=>(void 0===e&&(e={createScriptURL:n=>n},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),r.tu=e=>r.tt().createScriptURL(e),r.p="",(()=>{var e={666:0};r.f.j=(i,o)=>{var f=r.o(e,i)?e[i]:void 0;if(0!==f)if(f)o.push(f[2]);else if(666!=i){var a=new Promise((c,s)=>f=e[i]=[c,s]);o.push(f[2]=a);var l=r.p+r.u(i),d=new Error;r.l(l,c=>{if(r.o(e,i)&&(0!==(f=e[i])&&(e[i]=void 0),f)){var s=c&&("load"===c.type?"missing":c.type),b=c&&c.target&&c.target.src;d.message="Loading chunk "+i+" failed.\n("+s+": "+b+")",d.name="ChunkLoadError",d.type=s,d.request=b,f[1](d)}},"chunk-"+i,i)}else e[i]=0},r.O.j=i=>0===e[i];var n=(i,o)=>{var d,u,[f,a,l]=o,c=0;if(f.some(b=>0!==e[b])){for(d in a)r.o(a,d)&&(r.m[d]=a[d]);if(l)var s=l(r)}for(i&&i(o);c - + diff --git a/dist/apps/consolidator/main.3cdc0ff5a13d0b91.js b/dist/apps/consolidator/main.3cdc0ff5a13d0b91.js new file mode 100644 index 000000000..329bc5415 --- /dev/null +++ b/dist/apps/consolidator/main.3cdc0ff5a13d0b91.js @@ -0,0 +1 @@ +(self.webpackChunkconsolidator=self.webpackChunkconsolidator||[]).push([[179],{2605:(N,z,E)=>{"use strict";var M=E(6895),h=E(4650);class L extends M.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class F extends L{static makeCurrent(){(0,M.HT)(new F)}onAndCancel(a,e,t){return a.addEventListener(e,t,!1),()=>{a.removeEventListener(e,t,!1)}}dispatchEvent(a,e){a.dispatchEvent(e)}remove(a){a.parentNode&&a.parentNode.removeChild(a)}createElement(a,e){return(e=e||this.getDefaultDocument()).createElement(a)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(a){return a.nodeType===Node.ELEMENT_NODE}isShadowRoot(a){return a instanceof DocumentFragment}getGlobalEventTarget(a,e){return"window"===e?window:"document"===e?a:"body"===e?a.body:null}getBaseHref(a){const e=function q(){return B=B||document.querySelector("base"),B?B.getAttribute("href"):null}();return null==e?null:function ee(r){Y=Y||document.createElement("a"),Y.setAttribute("href",r);const a=Y.pathname;return"/"===a.charAt(0)?a:`/${a}`}(e)}resetBaseElement(){B=null}getUserAgent(){return window.navigator.userAgent}getCookie(a){return(0,M.Mx)(document.cookie,a)}}let Y,B=null;const W=new h.OlP("TRANSITION_ID"),G=[{provide:h.ip1,useFactory:function Q(r,a,e){return()=>{e.get(h.CZH).donePromise.then(()=>{const t=(0,M.q)(),s=a.querySelectorAll(`style[ng-transition="${r}"]`);for(let u=0;u{class r{build(){return new XMLHttpRequest}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac}),r})();const ie=new h.OlP("EventManagerPlugins");let ae=(()=>{class r{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(s=>s.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,s){return this._findPluginFor(t).addEventListener(e,t,s)}addGlobalEventListener(e,t,s){return this._findPluginFor(t).addGlobalEventListener(e,t,s)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const s=this._plugins;for(let u=0;u{class r{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(s=>{this._stylesSet.has(s)||(this._stylesSet.add(s),t.add(s))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac}),r})(),be=(()=>{class r extends fe{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,t,s){e.forEach(u=>{const d=this._doc.createElement("style");d.textContent=u,s.push(t.appendChild(d))})}addHost(e){const t=[];this._addStylesToHost(this._stylesSet,e,t),this._hostNodes.set(e,t)}removeHost(e){const t=this._hostNodes.get(e);t&&t.forEach(Le),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((t,s)=>{this._addStylesToHost(e,s,t)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(Le))}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(M.K0))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac}),r})();function Le(r){(0,M.q)().remove(r)}const je={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/",math:"http://www.w3.org/1998/MathML/"},Ae=/%COMP%/g;function le(r,a,e){for(let t=0;t{if("__ngUnwrap__"===a)return r;!1===r(a)&&(a.preventDefault(),a.returnValue=!1)}}let pe=(()=>{class r{constructor(e,t,s){this.eventManager=e,this.sharedStylesHost=t,this.appId=s,this.rendererByCompId=new Map,this.defaultRenderer=new Be(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case h.ifc.Emulated:{let s=this.rendererByCompId.get(t.id);return s||(s=new kt(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,s)),s.applyToHost(e),s}case 1:case h.ifc.ShadowDom:return new Fe(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const s=le(t.id,t.styles,[]);this.sharedStylesHost.addStyles(s),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(ae),h.LFG(be),h.LFG(h.AFp))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac}),r})();class Be{constructor(a){this.eventManager=a,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(a,e){return e?document.createElementNS(je[e]||e,a):document.createElement(a)}createComment(a){return document.createComment(a)}createText(a){return document.createTextNode(a)}appendChild(a,e){(xt(a)?a.content:a).appendChild(e)}insertBefore(a,e,t){a&&(xt(a)?a.content:a).insertBefore(e,t)}removeChild(a,e){a&&a.removeChild(e)}selectRootElement(a,e){let t="string"==typeof a?document.querySelector(a):a;if(!t)throw new Error(`The selector "${a}" did not match any elements`);return e||(t.textContent=""),t}parentNode(a){return a.parentNode}nextSibling(a){return a.nextSibling}setAttribute(a,e,t,s){if(s){e=s+":"+e;const u=je[s];u?a.setAttributeNS(u,e,t):a.setAttribute(e,t)}else a.setAttribute(e,t)}removeAttribute(a,e,t){if(t){const s=je[t];s?a.removeAttributeNS(s,e):a.removeAttribute(`${t}:${e}`)}else a.removeAttribute(e)}addClass(a,e){a.classList.add(e)}removeClass(a,e){a.classList.remove(e)}setStyle(a,e,t,s){s&(h.JOm.DashCase|h.JOm.Important)?a.style.setProperty(e,t,s&h.JOm.Important?"important":""):a.style[e]=t}removeStyle(a,e,t){t&h.JOm.DashCase?a.style.removeProperty(e):a.style[e]=""}setProperty(a,e,t){a[e]=t}setValue(a,e){a.nodeValue=e}listen(a,e,t){return"string"==typeof a?this.eventManager.addGlobalEventListener(a,e,ce(t)):this.eventManager.addEventListener(a,e,ce(t))}}function xt(r){return"TEMPLATE"===r.tagName&&void 0!==r.content}class kt extends Be{constructor(a,e,t,s){super(a),this.component=t;const u=le(s+"-"+t.id,t.styles,[]);e.addStyles(u),this.contentAttr=function Re(r){return"_ngcontent-%COMP%".replace(Ae,r)}(s+"-"+t.id),this.hostAttr=function De(r){return"_nghost-%COMP%".replace(Ae,r)}(s+"-"+t.id)}applyToHost(a){super.setAttribute(a,this.hostAttr,"")}createElement(a,e){const t=super.createElement(a,e);return super.setAttribute(t,this.contentAttr,""),t}}class Fe extends Be{constructor(a,e,t,s){super(a),this.sharedStylesHost=e,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const u=le(s.id,s.styles,[]);for(let d=0;d{class r extends he{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,s){return e.addEventListener(t,s,!1),()=>this.removeEventListener(e,t,s)}removeEventListener(e,t,s){return e.removeEventListener(t,s)}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(M.K0))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac}),r})();const Xn=["alt","control","meta","shift"],Et={"\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"},Rn={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"},ui={alt:r=>r.altKey,control:r=>r.ctrlKey,meta:r=>r.metaKey,shift:r=>r.shiftKey};let Jr=(()=>{class r extends he{constructor(e){super(e)}supports(e){return null!=r.parseEventName(e)}addEventListener(e,t,s){const u=r.parseEventName(t),d=r.eventCallback(u.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,M.q)().onAndCancel(e,u.domEventName,d))}static parseEventName(e){const t=e.toLowerCase().split("."),s=t.shift();if(0===t.length||"keydown"!==s&&"keyup"!==s)return null;const u=r._normalizeKey(t.pop());let d="";if(Xn.forEach(n=>{const i=t.indexOf(n);i>-1&&(t.splice(i,1),d+=n+".")}),d+=u,0!=t.length||0===u.length)return null;const l={};return l.domEventName=s,l.fullKey=d,l}static getEventFullKey(e){let t="",s=function dc(r){let a=r.key;if(null==a){if(a=r.keyIdentifier,null==a)return"Unidentified";a.startsWith("U+")&&(a=String.fromCharCode(parseInt(a.substring(2),16)),3===r.location&&Rn.hasOwnProperty(a)&&(a=Rn[a]))}return Et[a]||a}(e);return s=s.toLowerCase()," "===s?s="space":"."===s&&(s="dot"),Xn.forEach(u=>{u!=s&&(0,ui[u])(e)&&(t+=u+".")}),t+=s,t}static eventCallback(e,t,s){return u=>{r.getEventFullKey(u)===e&&s.runGuarded(()=>t(u))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(M.K0))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac}),r})();const Ze=(0,h.eFA)(h._c5,"browser",[{provide:h.Lbi,useValue:M.bD},{provide:h.g9A,useValue:function er(){F.makeCurrent()},multi:!0},{provide:M.K0,useFactory:function xa(){return(0,h.RDi)(document),document},deps:[]}]),bi=new h.OlP(""),Sa=[{provide:h.rWj,useClass:class re{addToWindow(a){h.dqk.getAngularTestability=(t,s=!0)=>{const u=a.findTestabilityInTree(t,s);if(null==u)throw new Error("Could not find testability for element.");return u},h.dqk.getAllAngularTestabilities=()=>a.getAllTestabilities(),h.dqk.getAllAngularRootElements=()=>a.getAllRootElements(),h.dqk.frameworkStabilizers||(h.dqk.frameworkStabilizers=[]),h.dqk.frameworkStabilizers.push(t=>{const s=h.dqk.getAllAngularTestabilities();let u=s.length,d=!1;const l=function(n){d=d||n,u--,0==u&&t(d)};s.forEach(function(n){n.whenStable(l)})})}findTestabilityInTree(a,e,t){return null==e?null:a.getTestability(e)??(t?(0,M.q)().isShadowRoot(e)?this.findTestabilityInTree(a,e.host,!0):this.findTestabilityInTree(a,e.parentElement,!0):null)}},deps:[]},{provide:h.lri,useClass:h.dDg,deps:[h.R0b,h.eoX,h.rWj]},{provide:h.dDg,useClass:h.dDg,deps:[h.R0b,h.eoX,h.rWj]}],ki=[{provide:h.zSh,useValue:"root"},{provide:h.qLn,useFactory:function tr(){return new h.qLn},deps:[]},{provide:ie,useClass:Ii,multi:!0,deps:[M.K0,h.R0b,h.Lbi]},{provide:ie,useClass:Jr,multi:!0,deps:[M.K0]},{provide:pe,useClass:pe,deps:[ae,be,h.AFp]},{provide:h.FYo,useExisting:pe},{provide:fe,useExisting:be},{provide:be,useClass:be,deps:[M.K0]},{provide:ae,useClass:ae,deps:[ie,h.R0b]},{provide:M.JF,useClass:oe,deps:[]},[]];let Ta=(()=>{class r{constructor(e){}static withServerTransition(e){return{ngModule:r,providers:[{provide:h.AFp,useValue:e.appId},{provide:W,useExisting:h.AFp},G]}}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(bi,12))},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({providers:[...ki,...Sa],imports:[M.ez,h.hGG]}),r})(),X=(()=>{class r{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(M.K0))},r.\u0275prov=h.Yz7({token:r,factory:function(e){let t=null;return t=e?new e:function ye(){return new X((0,h.LFG)(M.K0))}(),t},providedIn:"root"}),r})();typeof window<"u"&&window;let hi=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=h.Yz7({token:r,factory:function(e){let t=null;return t=e?new(e||r):h.LFG(st),t},providedIn:"root"}),r})(),st=(()=>{class r extends hi{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case h.q3G.NONE:return t;case h.q3G.HTML:return(0,h.qzn)(t,"HTML")?(0,h.z3N)(t):(0,h.EiD)(this._doc,String(t)).toString();case h.q3G.STYLE:return(0,h.qzn)(t,"Style")?(0,h.z3N)(t):t;case h.q3G.SCRIPT:if((0,h.qzn)(t,"Script"))return(0,h.z3N)(t);throw new Error("unsafe value used in a script context");case h.q3G.URL:return(0,h.qzn)(t,"URL")?(0,h.z3N)(t):(0,h.mCW)(String(t));case h.q3G.RESOURCE_URL:if((0,h.qzn)(t,"ResourceURL"))return(0,h.z3N)(t);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return(0,h.JVY)(e)}bypassSecurityTrustStyle(e){return(0,h.L6k)(e)}bypassSecurityTrustScript(e){return(0,h.eBb)(e)}bypassSecurityTrustUrl(e){return(0,h.LAX)(e)}bypassSecurityTrustResourceUrl(e){return(0,h.pB0)(e)}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(M.K0))},r.\u0275prov=h.Yz7({token:r,factory:function(e){let t=null;return t=e?new e:function Oe(r){return new st(r.get(M.K0))}(h.LFG(h.zs3)),t},providedIn:"root"}),r})();var Me=E(9646),ai=E(9751),It=E(576);function Kt(r){return!!r&&(r instanceof ai.y||(0,It.m)(r.lift)&&(0,It.m)(r.subscribe))}var jt=E(4742),In=E(8421),kn=E(3269),Xe=E(5403),Ma=E(3268),Xr=E(1810);function Sr(...r){const a=(0,kn.jO)(r),{args:e,keys:t}=(0,jt.D)(r),s=new ai.y(u=>{const{length:d}=e;if(!d)return void u.complete();const l=new Array(d);let n=d,i=d;for(let o=0;o{c||(c=!0,i--),l[o]=p},()=>n--,void 0,()=>{(!n||!c)&&(i||u.next(t?(0,Xr.n)(t,l):l),u.complete())}))}});return a?s.pipe((0,Ma.Z)(a)):s}var Qi=E(7272);function Gt(r){return new ai.y(a=>{(0,In.Xf)(r()).subscribe(a)})}var Dt=E(5698),He=E(7579),Ni=E(6063);class Tr extends He.x{constructor(a=1/0,e=1/0,t=Ni.l){super(),this._bufferSize=a,this._windowTime=e,this._timestampProvider=t,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,a),this._windowTime=Math.max(1,e)}next(a){const{isStopped:e,_buffer:t,_infiniteTimeWindow:s,_timestampProvider:u,_windowTime:d}=this;e||(t.push(a),!s&&t.push(u.now()+d)),this._trimBuffer(),super.next(a)}_subscribe(a){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(a),{_infiniteTimeWindow:t,_buffer:s}=this,u=s.slice();for(let d=0;dnew Tr(t,a,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:s})}var ct=E(4004),Vn=E(4351),oi=E(3900);class ir{}let Er=(()=>{class r extends ir{getTranslation(e){return(0,Me.of)({})}}return r.\u0275fac=function(){let a;return function(t){return(a||(a=h.n5z(r)))(t||r)}}(),r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac}),r})();class ea{}let Bn=(()=>{class r{handle(e){return e.key}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac}),r})();function Zt(r,a){if(r===a)return!0;if(null===r||null===a)return!1;if(r!=r&&a!=a)return!0;let s,u,d,e=typeof r;if(e==typeof a&&"object"==e){if(!Array.isArray(r)){if(Array.isArray(a))return!1;for(u in d=Object.create(null),r){if(!Zt(r[u],a[u]))return!1;d[u]=!0}for(u in a)if(!(u in d)&&typeof a[u]<"u")return!1;return!0}if(!Array.isArray(a))return!1;if((s=r.length)==a.length){for(u=0;u{Ci(a[t])?t in r?e[t]=Ji(r[t],a[t]):Object.assign(e,{[t]:a[t]}):Object.assign(e,{[t]:a[t]})}),e}class Mr{}let Dr=(()=>{class r extends Mr{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(e,t){let s;return s="string"==typeof e?this.interpolateString(e,t):"function"==typeof e?this.interpolateFunction(e,t):e,s}getValue(e,t){let s="string"==typeof t?t.split("."):[t];t="";do{t+=s.shift(),!nr(e)||!nr(e[t])||"object"!=typeof e[t]&&s.length?s.length?t+=".":e=void 0:(e=e[t],t="")}while(s.length);return e}interpolateFunction(e,t){return e(t)}interpolateString(e,t){return t?e.replace(this.templateMatcher,(s,u)=>{let d=this.getValue(t,u);return nr(d)?d:s}):e}}return r.\u0275fac=function(){let a;return function(t){return(a||(a=h.n5z(r)))(t||r)}}(),r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac}),r})();class An{}let qi=(()=>{class r extends An{compile(e,t){return e}compileTranslations(e,t){return e}}return r.\u0275fac=function(){let a;return function(t){return(a||(a=h.n5z(r)))(t||r)}}(),r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac}),r})();class hc{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new h.vpe,this.onLangChange=new h.vpe,this.onDefaultLangChange=new h.vpe}}const Xd=new h.OlP("USE_STORE"),Ao=new h.OlP("USE_DEFAULT_LANG"),Rs=new h.OlP("DEFAULT_LANGUAGE"),Ps=new h.OlP("USE_EXTEND");let hn=(()=>{class r{constructor(e,t,s,u,d,l=!0,n=!1,i=!1,o){this.store=e,this.currentLoader=t,this.compiler=s,this.parser=u,this.missingTranslationHandler=d,this.useDefaultLang=l,this.isolate=n,this.extend=i,this.pending=!1,this._onTranslationChange=new h.vpe,this._onLangChange=new h.vpe,this._onDefaultLangChange=new h.vpe,this._langs=[],this._translations={},this._translationRequests={},o&&this.setDefaultLang(o)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(e){this.isolate?this._currentLang=e:this.store.currentLang=e}get langs(){return this.isolate?this._langs:this.store.langs}set langs(e){this.isolate?this._langs=e:this.store.langs=e}get translations(){return this.isolate?this._translations:this.store.translations}set translations(e){this.isolate?this._translations=e:this.store.translations=e}setDefaultLang(e){if(e===this.defaultLang)return;let t=this.retrieveTranslations(e);typeof t<"u"?(null==this.defaultLang&&(this.defaultLang=e),t.pipe((0,Dt.q)(1)).subscribe(s=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(e===this.currentLang)return(0,Me.of)(this.translations[e]);let t=this.retrieveTranslations(e);return typeof t<"u"?(this.currentLang||(this.currentLang=e),t.pipe((0,Dt.q)(1)).subscribe(s=>{this.changeLang(e)}),t):(this.changeLang(e),(0,Me.of)(this.translations[e]))}retrieveTranslations(e){let t;return(typeof this.translations[e]>"u"||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),t=this._translationRequests[e]),t}getTranslation(e){this.pending=!0;const t=this.currentLoader.getTranslation(e).pipe(Ht(1),(0,Dt.q)(1));return this.loadingTranslations=t.pipe((0,ct.U)(s=>this.compiler.compileTranslations(s,e)),Ht(1),(0,Dt.q)(1)),this.loadingTranslations.subscribe({next:s=>{this.translations[e]=this.extend&&this.translations[e]?{...s,...this.translations[e]}:s,this.updateLangs(),this.pending=!1},error:s=>{this.pending=!1}}),t}setTranslation(e,t,s=!1){t=this.compiler.compileTranslations(t,e),this.translations[e]=(s||this.extend)&&this.translations[e]?Ji(this.translations[e],t):t,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return this.langs}addLangs(e){e.forEach(t=>{-1===this.langs.indexOf(t)&&this.langs.push(t)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(e,t,s){let u;if(t instanceof Array){let d={},l=!1;for(let n of t)d[n]=this.getParsedResult(e,n,s),Kt(d[n])&&(l=!0);return l?Sr(t.map(i=>Kt(d[i])?d[i]:(0,Me.of)(d[i]))).pipe((0,ct.U)(i=>{let o={};return i.forEach((c,p)=>{o[t[p]]=c}),o})):d}if(e&&(u=this.parser.interpolate(this.parser.getValue(e,t),s)),typeof u>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(u=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],t),s)),typeof u>"u"){let d={key:t,translateService:this};typeof s<"u"&&(d.interpolateParams=s),u=this.missingTranslationHandler.handle(d)}return typeof u<"u"?u:t}get(e,t){if(!nr(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,Vn.b)(s=>Kt(s=this.getParsedResult(s,e,t))?s:(0,Me.of)(s)));{let s=this.getParsedResult(this.translations[this.currentLang],e,t);return Kt(s)?s:(0,Me.of)(s)}}getStreamOnTranslationChange(e,t){if(!nr(e)||!e.length)throw new Error('Parameter "key" required');return(0,Qi.z)(Gt(()=>this.get(e,t)),this.onTranslationChange.pipe((0,oi.w)(s=>{const u=this.getParsedResult(s.translations,e,t);return"function"==typeof u.subscribe?u:(0,Me.of)(u)})))}stream(e,t){if(!nr(e)||!e.length)throw new Error('Parameter "key" required');return(0,Qi.z)(Gt(()=>this.get(e,t)),this.onLangChange.pipe((0,oi.w)(s=>{const u=this.getParsedResult(s.translations,e,t);return Kt(u)?u:(0,Me.of)(u)})))}instant(e,t){if(!nr(e)||!e.length)throw new Error('Parameter "key" required');let s=this.getParsedResult(this.translations[this.currentLang],e,t);if(Kt(s)){if(e instanceof Array){let u={};return e.forEach((d,l)=>{u[e[l]]=e[l]}),u}return e}return s}set(e,t,s=this.currentLang){this.translations[s][e]=this.compiler.compile(t,s),this.updateLangs(),this.onTranslationChange.emit({lang:s,translations:this.translations[s]})}changeLang(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),null==this.defaultLang&&this.changeDefaultLang(e)}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return this.resetLang(e),this.getTranslation(e)}resetLang(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof e>"u"?void 0:(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,e}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(hc),h.LFG(ir),h.LFG(An),h.LFG(Mr),h.LFG(ea),h.LFG(Ao),h.LFG(Xd),h.LFG(Ps),h.LFG(Rs))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac}),r})(),yt=(()=>{class r{constructor(e,t){this.translate=e,this._ref=t,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(e,t,s){let u=d=>{this.value=void 0!==d?d:e,this.lastKey=e,this._ref.markForCheck()};if(s){let d=this.translate.getParsedResult(s,e,t);Kt(d.subscribe)?d.subscribe(u):u(d)}this.translate.get(e,t).subscribe(u)}transform(e,...t){if(!e||!e.length)return e;if(Zt(e,this.lastKey)&&Zt(t,this.lastParams))return this.value;let s;if(nr(t[0])&&t.length)if("string"==typeof t[0]&&t[0].length){let u=t[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{s=JSON.parse(u)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${t[0]}`)}}else"object"==typeof t[0]&&!Array.isArray(t[0])&&(s=t[0]);return this.lastKey=e,this.lastParams=t,this.updateValue(e,s),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(u=>{this.lastKey&&u.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,s,u.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(u=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,s,u.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,s))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(hn,16),h.Y36(h.sBO,16))},r.\u0275pipe=h.Yjl({name:"translate",type:r,pure:!1}),r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac}),r})(),Da=(()=>{class r{static forRoot(e={}){return{ngModule:r,providers:[e.loader||{provide:ir,useClass:Er},e.compiler||{provide:An,useClass:qi},e.parser||{provide:Mr,useClass:Dr},e.missingTranslationHandler||{provide:ea,useClass:Bn},hc,{provide:Xd,useValue:e.isolate},{provide:Ao,useValue:e.useDefaultLang},{provide:Ps,useValue:e.extend},{provide:Rs,useValue:e.defaultLanguage},hn]}}static forChild(e={}){return{ngModule:r,providers:[e.loader||{provide:ir,useClass:Er},e.compiler||{provide:An,useClass:qi},e.parser||{provide:Mr,useClass:Dr},e.missingTranslationHandler||{provide:ea,useClass:Bn},{provide:Xd,useValue:e.isolate},{provide:Ao,useValue:e.useDefaultLang},{provide:Ps,useValue:e.extend},{provide:Rs,useValue:e.defaultLanguage},hn]}}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({}),r})(),bf=(()=>{class r extends hn{instant(e,t){return String(super.instant(e,t))}}return r.\u0275fac=function(){let a;return function(t){return(a||(a=h.n5z(r)))(t||r)}}(),r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();var v=E(529);class Xt{encodeKey(a){return encodeURIComponent(a)}encodeValue(a){return encodeURIComponent(a)}decodeKey(a){return decodeURIComponent(a)}decodeValue(a){return decodeURIComponent(a)}}const Wt=new h.OlP("basePath");class lt{constructor(a={}){this.apiKeys=a.apiKeys,this.username=a.username,this.password=a.password,this.accessToken=a.accessToken,this.basePath=a.basePath,this.withCredentials=a.withCredentials,this.encoder=a.encoder,this.credentials=a.credentials?a.credentials:{},this.credentials.BasicAuth||(this.credentials.BasicAuth=()=>this.username||this.password?btoa(this.username+":"+this.password):void 0),this.credentials.BearerAuth||(this.credentials.BearerAuth=()=>"function"==typeof this.accessToken?this.accessToken():this.accessToken)}selectHeaderContentType(a){if(0===a.length)return;const e=a.find(t=>this.isJsonMime(t));return void 0===e?a[0]:e}selectHeaderAccept(a){if(0===a.length)return;const e=a.find(t=>this.isJsonMime(t));return void 0===e?a[0]:e}isJsonMime(a){const e=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==a&&(e.test(a)||"application/json-patch+json"===a.toLowerCase())}lookupCredential(a){const e=this.credentials[a];return"function"==typeof e?e():e}}let eu=(()=>{class r{constructor(e,t,s){this.httpClient=e,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new v.WM,this.configuration=new lt,s&&(this.configuration=s),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Xt}addToHttpParams(e,t,s){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,s):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,s){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(u=>e=this.addToHttpParamsRecursive(e,u,s));else if(t instanceof Date){if(null==s)throw Error("key may not be null if value is Date");e=e.append(s,t.toISOString().substr(0,10))}else Object.keys(t).forEach(u=>e=this.addToHttpParamsRecursive(e,t[u],null!=s?`${s}.${u}`:u));else{if(null==s)throw Error("key may not be null if value is not object or array");e=e.append(s,t)}return e}convertAttributeToNonunique(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToNonunique.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attributeDefinition"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToNonunique`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}convertAttributeToUnique(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToUnique.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attributeDefinition"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToUnique`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}createAttributeDefinition(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputCreateAttributeDefinition was null or undefined when calling createAttributeDefinition.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/createAttribute`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}deleteAttributeDefinition(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attribute was null or undefined when calling deleteAttributeDefinition.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attribute"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttribute`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}deleteAttributeDefinitions(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attributes was null or undefined when calling deleteAttributeDefinitions.");let l=new v.LE({encoder:this.encoder});e&&e.forEach(g=>{l=this.addToHttpParams(l,g,"attributes[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttributes`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getAllAttributeDefinitions(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getAttributesDefinition`;if(e){let p=new URL(c),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),c=p.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getAttribute(e,t,s,u,d,l,n,i,o,c,p,m=!1,g="body",f=!1,w){let R=new v.LE({encoder:this.encoder});null!=e&&(R=this.addToHttpParams(R,e,"attributeName")),null!=t&&(R=this.addToHttpParams(R,t,"attributeId")),null!=s&&(R=this.addToHttpParams(R,s,"facility")),null!=u&&(R=this.addToHttpParams(R,u,"user")),null!=d&&(R=this.addToHttpParams(R,d,"vo")),null!=l&&(R=this.addToHttpParams(R,l,"resource")),null!=n&&(R=this.addToHttpParams(R,n,"member")),null!=i&&(R=this.addToHttpParams(R,i,"group")),null!=o&&(R=this.addToHttpParams(R,o,"host")),null!=c&&(R=this.addToHttpParams(R,c,"userExtSource")),null!=p&&(R=this.addToHttpParams(R,p,"key"));let Se,J=this.defaultHeaders;Se=this.configuration.lookupCredential("BasicAuth"),Se&&(J=J.set("Authorization","Basic "+Se)),Se=this.configuration.lookupCredential("BearerAuth"),Se&&(J=J.set("Authorization","Bearer "+Se));let at=w&&w.httpHeaderAccept;void 0===at&&(at=this.configuration.selectHeaderAccept(["application/json"])),void 0!==at&&(J=J.set("Accept",at));let Si=w&&w.context;void 0===Si&&(Si=new v.qT);let ni="json";at&&(ni=at.startsWith("text")?"text":this.configuration.isJsonMime(at)?"json":"blob");let _i=`${this.configuration.basePath}/json/attributesManager/getAttribute/any`;if(m){let yn=new URL(_i),vr=yn.pathname.split("/");vr[1]="non",yn.pathname=vr.join("/"),_i=yn.toString()}return this.httpClient.get(_i,{context:Si,params:R,responseType:ni,withCredentials:this.configuration.withCredentials,headers:J,observe:g,reportProgress:f})}getAttributeDefinitionById(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter id was null or undefined when calling getAttributeDefinitionById.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributeDefinitionById`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getAttributeDefinitionByName(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getAttributeDefinitionByName.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attributeName"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributeDefinition`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getAttributeDefinitionsByNamespace(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter namespace was null or undefined when calling getAttributeDefinitionsByNamespace.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"namespace"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributesDefinitionByNamespace`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getAttributeModulesDependenciesForAttributeGraphText(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");if(null==t)throw new Error("Required parameter attrName was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"format")),null!=t&&(n=this.addToHttpParams(n,t,"attrName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText/for-attribute`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getAttributeModulesDependenciesGraphText(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesGraphText.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"format"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getAttributePolicyCollections(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getAttributePolicyCollections.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attributeId"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributePolicyCollections`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getAttributeRights(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getAttributeRights.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attributeId"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributeRights`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getAttributeRules(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling getAttributeRules.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attributeDefinition"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributeRules`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getAttributesDefinitionWithRights(e,t,s,u,d,l,n,i,o=!1,c="body",p=!1,m){let g=new v.LE({encoder:this.encoder});null!=e&&(g=this.addToHttpParams(g,e,"member")),null!=t&&(g=this.addToHttpParams(g,t,"user")),null!=s&&(g=this.addToHttpParams(g,s,"vo")),null!=u&&(g=this.addToHttpParams(g,u,"group")),null!=d&&(g=this.addToHttpParams(g,d,"resource")),null!=l&&(g=this.addToHttpParams(g,l,"facility")),null!=n&&(g=this.addToHttpParams(g,n,"host")),null!=i&&(g=this.addToHttpParams(g,i,"userExtSource"));let w,f=this.defaultHeaders;w=this.configuration.lookupCredential("BasicAuth"),w&&(f=f.set("Authorization","Basic "+w)),w=this.configuration.lookupCredential("BearerAuth"),w&&(f=f.set("Authorization","Bearer "+w));let R=m&&m.httpHeaderAccept;void 0===R&&(R=this.configuration.selectHeaderAccept(["application/json"])),void 0!==R&&(f=f.set("Accept",R));let J=m&&m.context;void 0===J&&(J=new v.qT);let Se="json";R&&(Se=R.startsWith("text")?"text":this.configuration.isJsonMime(R)?"json":"blob");let at=`${this.configuration.basePath}/urlinjsonout/attributesManager/getAttributesDefinitionWithRights`;if(o){let Si=new URL(at),ni=Si.pathname.split("/");ni[1]="non",Si.pathname=ni.join("/"),at=Si.toString()}return this.httpClient.get(at,{context:J,params:g,responseType:Se,withCredentials:this.configuration.withCredentials,headers:f,observe:c,reportProgress:p})}getEntitylessAttributeByName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getEntitylessAttributeByName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"key")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-entityless`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getEntitylessAttributesByKey(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributesByKey.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"key"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/key`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getEntitylessAttributesByName(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesByName.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attrName"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributes`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getEntitylessAttributesWithKeys(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesWithKeys.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"attrName")),t&&t.forEach(f=>{n=this.addToHttpParams(n,f,"keys[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributesWithKeys`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getEntitylessKeys(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling getEntitylessKeys.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attributeDefinition"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getEntitylessKeys`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getFacilityAttributeById(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getFacilityAttributeById.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-facility`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getFacilityAttributeByName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getFacilityAttributeByName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-facility`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getFacilityAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"facility"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/f`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getFacilityAttributesByNames(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getFacilityAttributesByNames.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),t&&t.forEach(f=>{n=this.addToHttpParams(n,f,"attrNames[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/f-names`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getFacilityResourceUserMemberAttributes(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==s)throw new Error("Required parameter user was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==u)throw new Error("Required parameter member was null or undefined when calling getFacilityResourceUserMemberAttributes.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"facility")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),null!=s&&(o=this.addToHttpParams(o,s,"user")),null!=u&&(o=this.addToHttpParams(o,u,"member"));let p,c=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(c=c.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(c=c.set("Authorization","Bearer "+p));let m=i&&i.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(c=c.set("Accept",m));let g=i&&i.context;void 0===g&&(g=new v.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/attributesManager/getAttributes/f-r-u-m`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.get(w,{context:g,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}getFacilityUserAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityUserAttributes.");if(null==t)throw new Error("Required parameter user was null or undefined when calling getFacilityUserAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),null!=t&&(n=this.addToHttpParams(n,t,"user"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/f-u`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getGroupAttributeById(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getGroupAttributeById.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getGroupAttributeByName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getGroupAttributeByName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getGroupAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/g`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getGroupAttributesByNames(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getGroupAttributesByNames.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),t&&t.forEach(f=>{n=this.addToHttpParams(n,f,"attrNames[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/g-names`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getGroupResourceAttributeById(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeById.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeById.");if(null==s)throw new Error("Required parameter attributeId was null or undefined when calling getGroupResourceAttributeById.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"group")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"attributeId"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let p=n&&n.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group-resource`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getGroupResourceAttributeByName(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeByName.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeByName.");if(null==s)throw new Error("Required parameter attributeName was null or undefined when calling getGroupResourceAttributeByName.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"group")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"attributeName"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let p=n&&n.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group-resource`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getGroupResourceAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/group-resource`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getHostAttributeById(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getHostAttributeById.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-host`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getHostAttributeByName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getHostAttributeByName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-host`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getHostAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"host"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/h`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getHostAttributesByNames(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getHostAttributesByNames.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),t&&t.forEach(f=>{n=this.addToHttpParams(n,f,"attrNames[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/h-names`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getIdpAttributeDefinitions(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getIdpAttributeDefinitions`;if(e){let p=new URL(c),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),c=p.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getLogins(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getLogins.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getLogins`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getMemberAndUserAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributes.");if(null==t)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"workWithUserAttributes"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-wu`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getMemberAndUserAttributesByNames(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==s)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributesByNames.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),t&&t.forEach(w=>{i=this.addToHttpParams(i,w,"attrNames[]")}),null!=s&&(i=this.addToHttpParams(i,s,"workWithUserAttributes"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let p=n&&n.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names-wu`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getMemberAttributeById(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getMemberAttributeById.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getMemberAttributeByName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getMemberAttributeByName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getMemberAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"member"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/m`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getMemberAttributesByNames(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAttributesByNames.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),t&&t.forEach(f=>{n=this.addToHttpParams(n,f,"attrNames[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getMemberGroupAndUserAttributesByNames(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==u)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberGroupAndUserAttributesByNames.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group")),s&&s.forEach(R=>{o=this.addToHttpParams(o,R,"attrNames[]")}),null!=u&&(o=this.addToHttpParams(o,u,"workWithUserAttributes"));let p,c=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(c=c.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(c=c.set("Authorization","Bearer "+p));let m=i&&i.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(c=c.set("Accept",m));let g=i&&i.context;void 0===g&&(g=new v.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names-wu`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.get(w,{context:g,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}getMemberGroupAttributeById(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeById.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeById.");if(null==s)throw new Error("Required parameter attributeId was null or undefined when calling getMemberGroupAttributeById.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),null!=s&&(i=this.addToHttpParams(i,s,"attributeId"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let p=n&&n.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-group`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getMemberGroupAttributeByName(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeByName.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeByName.");if(null==s)throw new Error("Required parameter attributeName was null or undefined when calling getMemberGroupAttributeByName.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),null!=s&&(i=this.addToHttpParams(i,s,"attributeName"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let p=n&&n.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-group`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getMemberGroupAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"group"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getMemberGroupAttributesByNames(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributesByNames.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAttributesByNames.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),s&&s.forEach(w=>{i=this.addToHttpParams(i,w,"attrNames[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let p=n&&n.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getMemberResourceAndUserFacilityAttributes(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==s)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"workWithUserAttributes"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let p=n&&n.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-wu`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getMemberResourceAndUserFacilityAttributesByNames(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==u)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),s&&s.forEach(R=>{o=this.addToHttpParams(o,R,"attrNames[]")}),null!=u&&(o=this.addToHttpParams(o,u,"workWithUserAttributes"));let p,c=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(c=c.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(c=c.set("Authorization","Bearer "+p));let m=i&&i.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(c=c.set("Accept",m));let g=i&&i.context;void 0===g&&(g=new v.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-names-wu`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.get(w,{context:g,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}getMemberResourceAttributeById(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeById.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeById.");if(null==s)throw new Error("Required parameter attributeId was null or undefined when calling getMemberResourceAttributeById.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"attributeId"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let p=n&&n.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-resource`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getMemberResourceAttributeByName(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeByName.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeByName.");if(null==s)throw new Error("Required parameter attributeName was null or undefined when calling getMemberResourceAttributeByName.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"attributeName"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let p=n&&n.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-resource`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getMemberResourceAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getRequiredAttributesDefinition(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesDefinition.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"service"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributesDefinition`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getRequiredAttributesFacility(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacility.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"facility"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/f`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getRequiredAttributesFacilityService(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesFacilityService.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityService.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"service")),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-f`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getRequiredAttributesFacilityServices(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesFacilityServices.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityServices.");let n=new v.LE({encoder:this.encoder});e&&e.forEach(f=>{n=this.addToHttpParams(n,f,"services[]")}),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-f`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getRequiredAttributesGroupResourceService(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==s)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesGroupResourceService.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"service")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"group"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let p=n&&n.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getRequiredAttributesHostService(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesHostService.");if(null==t)throw new Error("Required parameter host was null or undefined when calling getRequiredAttributesHostService.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"service")),null!=t&&(n=this.addToHttpParams(n,t,"host"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-h`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getRequiredAttributesMember(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMember.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"workWithUserAttributes"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getRequiredAttributesMemberGroup(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroup.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroup.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),null!=s&&(i=this.addToHttpParams(i,s,"workWithUserAttributes"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let p=n&&n.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-g`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getRequiredAttributesMemberGroupResourceService(e,t,s,u,d,l=!1,n="body",i=!1,o){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==s)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==u)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"service")),null!=t&&(c=this.addToHttpParams(c,t,"resource")),null!=s&&(c=this.addToHttpParams(c,s,"group")),null!=u&&(c=this.addToHttpParams(c,u,"member")),null!=d&&(c=this.addToHttpParams(c,d,"workWithUserAttributes"));let m,p=this.defaultHeaders;m=this.configuration.lookupCredential("BasicAuth"),m&&(p=p.set("Authorization","Basic "+m)),m=this.configuration.lookupCredential("BearerAuth"),m&&(p=p.set("Authorization","Bearer "+m));let g=o&&o.httpHeaderAccept;void 0===g&&(g=this.configuration.selectHeaderAccept(["application/json"])),void 0!==g&&(p=p.set("Accept",g));let f=o&&o.context;void 0===f&&(f=new v.qT);let w="json";g&&(w=g.startsWith("text")?"text":this.configuration.isJsonMime(g)?"json":"blob");let R=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g-m`;if(l){let J=new URL(R),Se=J.pathname.split("/");Se[1]="non",J.pathname=Se.join("/"),R=J.toString()}return this.httpClient.get(R,{context:f,params:c,responseType:w,withCredentials:this.configuration.withCredentials,headers:p,observe:n,reportProgress:i})}getRequiredAttributesMemberGroupService(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==s)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupService.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"service")),null!=t&&(o=this.addToHttpParams(o,t,"group")),null!=s&&(o=this.addToHttpParams(o,s,"member")),null!=u&&(o=this.addToHttpParams(o,u,"workWithUserAttributes"));let p,c=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(c=c.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(c=c.set("Authorization","Bearer "+p));let m=i&&i.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(c=c.set("Accept",m));let g=i&&i.context;void 0===g&&(g=new v.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-g-m`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.get(w,{context:g,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}getRequiredAttributesMemberResource(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResource.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResource.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"workWithUserAttributes"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let p=n&&n.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-r`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getRequiredAttributesMemberResourceService(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==s)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResourceService.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"service")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),null!=s&&(o=this.addToHttpParams(o,s,"member")),null!=u&&(o=this.addToHttpParams(o,u,"workWithUserAttributes"));let p,c=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(c=c.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(c=c.set("Authorization","Bearer "+p));let m=i&&i.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(c=c.set("Accept",m));let g=i&&i.context;void 0===g&&(g=new v.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-m`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.get(w,{context:g,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}getRequiredAttributesResource(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResource.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"resource"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/r`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getRequiredAttributesResourceService(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceService.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"service")),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getRequiredAttributesResourceServices(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesResourceServices.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceServices.");let n=new v.LE({encoder:this.encoder});e&&e.forEach(f=>{n=this.addToHttpParams(n,f,"services[]")}),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-r`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getRequiredAttributesUser(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUser.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getRequiredAttributesUserFacility(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUserFacility.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesUserFacility.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u-f`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getRequiredAttributesVoService(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesVoService.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling getRequiredAttributesVoService.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"service")),null!=t&&(n=this.addToHttpParams(n,t,"vo"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-v`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getResourceAttributeById(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getResourceAttributeById.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-resource`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getResourceAttributeByName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getResourceAttributeByName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-resource`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getResourceAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"resource"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/r`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getResourceAttributesByNames(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getResourceAttributesByNames.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),t&&t.forEach(f=>{n=this.addToHttpParams(n,f,"attrNames[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-names`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getResourceGroupAndGroupAttributes(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==s)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributes.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"resource")),null!=t&&(i=this.addToHttpParams(i,t,"group")),null!=s&&(i=this.addToHttpParams(i,s,"workWithGroupAttributes"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let p=n&&n.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-wg`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getResourceGroupAndGroupAttributesByNames(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==u)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"group")),s&&s.forEach(R=>{o=this.addToHttpParams(o,R,"attrNames[]")}),null!=u&&(o=this.addToHttpParams(o,u,"workWithGroupAttributes"));let p,c=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(c=c.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(c=c.set("Authorization","Bearer "+p));let m=i&&i.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(c=c.set("Accept",m));let g=i&&i.context;void 0===g&&(g=new v.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-names-wg`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.get(w,{context:g,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}getResourceGroupAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),null!=t&&(n=this.addToHttpParams(n,t,"group"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getResourceGroupMemberAttributesByNames(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==s)throw new Error("Required parameter member was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupMemberAttributesByNames.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"group")),null!=s&&(o=this.addToHttpParams(o,s,"member")),u&&u.forEach(R=>{o=this.addToHttpParams(o,R,"attrNames[]")});let p,c=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(c=c.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(c=c.set("Authorization","Bearer "+p));let m=i&&i.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(c=c.set("Accept",m));let g=i&&i.context;void 0===g&&(g=new v.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-m-names`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.get(w,{context:g,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}getUserAttributeById(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getUserAttributeById.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getUserAttributeByName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getUserAttributeByName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getUserAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/u`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getUserAttributesByNames(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getUserAttributesByNames.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),t&&t.forEach(f=>{n=this.addToHttpParams(n,f,"attrNames[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/u-names`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getUserExtSourceAttributeById(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceAttributeById.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-ues`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getUserExtSourceAttributeByName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceAttributeByName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-ues`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getUserExtSourceAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"userExtSource"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/ues`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getUserExtSourceAttributesByNames(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getUserExtSourceAttributesByNames.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),t&&t.forEach(f=>{n=this.addToHttpParams(n,f,"attrNames[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/ues-names`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getUserFacilityAttributeById(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeById.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeById.");if(null==s)throw new Error("Required parameter attributeId was null or undefined when calling getUserFacilityAttributeById.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"facility")),null!=s&&(i=this.addToHttpParams(i,s,"attributeId"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let p=n&&n.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user_facility`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getUserFacilityAttributeByName(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeByName.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeByName.");if(null==s)throw new Error("Required parameter attributeName was null or undefined when calling getUserFacilityAttributeByName.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"facility")),null!=s&&(i=this.addToHttpParams(i,s,"attributeName"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let p=n&&n.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user_facility`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getUserFacilityAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributes.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/user-facility`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getVoAttributeById(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getVoAttributeById.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-vo`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getVoAttributeByName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getVoAttributeByName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-vo`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getVoAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/vo`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getVoAttributesByNames(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getVoAttributesByNames.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),t&&t.forEach(f=>{n=this.addToHttpParams(n,f,"attrNames[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/vo-names`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeAttributesForFacilityResourceGroupUserMember(e,t,s,u,d,l,n=!1,i="body",o=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==s)throw new Error("Required parameter group was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==u)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==d)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==l)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");let p=new v.LE({encoder:this.encoder});null!=e&&(p=this.addToHttpParams(p,e,"facility")),null!=t&&(p=this.addToHttpParams(p,t,"resource")),null!=s&&(p=this.addToHttpParams(p,s,"group")),null!=u&&(p=this.addToHttpParams(p,u,"user")),null!=d&&(p=this.addToHttpParams(p,d,"member")),l&&l.forEach(Se=>{p=this.addToHttpParams(p,Se,"attributes[]")});let g,m=this.defaultHeaders;g=this.configuration.lookupCredential("BasicAuth"),g&&(m=m.set("Authorization","Basic "+g)),g=this.configuration.lookupCredential("BearerAuth"),g&&(m=m.set("Authorization","Bearer "+g));let f=c&&c.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(m=m.set("Accept",f));let w=c&&c.context;void 0===w&&(w=new v.qT);let R="json";f&&(R=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob");let J=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-g-u-m`;if(n){let Se=new URL(J),at=Se.pathname.split("/");at[1]="non",Se.pathname=at.join("/"),J=Se.toString()}return this.httpClient.post(J,null,{context:w,params:p,responseType:R,withCredentials:this.configuration.withCredentials,headers:m,observe:i,reportProgress:o})}removeAttributesForFacilityResourceUserMember(e,t,s,u,d,l=!1,n="body",i=!1,o){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==s)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==u)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==d)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceUserMember.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"facility")),null!=t&&(c=this.addToHttpParams(c,t,"resource")),null!=s&&(c=this.addToHttpParams(c,s,"user")),null!=u&&(c=this.addToHttpParams(c,u,"member")),d&&d.forEach(J=>{c=this.addToHttpParams(c,J,"attributes[]")});let m,p=this.defaultHeaders;m=this.configuration.lookupCredential("BasicAuth"),m&&(p=p.set("Authorization","Basic "+m)),m=this.configuration.lookupCredential("BearerAuth"),m&&(p=p.set("Authorization","Bearer "+m));let g=o&&o.httpHeaderAccept;void 0===g&&(g=this.configuration.selectHeaderAccept(["application/json"])),void 0!==g&&(p=p.set("Accept",g));let f=o&&o.context;void 0===f&&(f=new v.qT);let w="json";g&&(w=g.startsWith("text")?"text":this.configuration.isJsonMime(g)?"json":"blob");let R=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-u-m`;if(l){let J=new URL(R),Se=J.pathname.split("/");Se[1]="non",J.pathname=Se.join("/"),R=J.toString()}return this.httpClient.post(R,null,{context:f,params:c,responseType:w,withCredentials:this.configuration.withCredentials,headers:p,observe:n,reportProgress:i})}removeEntitylessAttribute(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter key was null or undefined when calling removeEntitylessAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeEntitylessAttribute.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"key")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/e`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeFacilityAttribute(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeFacilityAttribute.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/f`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeFacilityAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeFacilityAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),t&&t.forEach(f=>{n=this.addToHttpParams(n,f,"attributes[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeGroupAttribute(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeGroupAttribute.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeGroupAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeGroupAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),t&&t.forEach(f=>{n=this.addToHttpParams(n,f,"attributes[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeGroupResourceAttribute(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttribute.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttribute.");if(null==s)throw new Error("Required parameter attribute was null or undefined when calling removeGroupResourceAttribute.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"group")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"attribute"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let p=n&&n.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g-r`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}removeGroupResourceAttributes(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributes.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"group")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),s&&s.forEach(w=>{i=this.addToHttpParams(i,w,"attributes[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let p=n&&n.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}removeGroupResourceAttributesWorkWithGroupAttributes(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==u)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),s&&s.forEach(R=>{o=this.addToHttpParams(o,R,"attributes[]")}),null!=u&&(o=this.addToHttpParams(o,u,"workWithGroupAttributes"));let p,c=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(c=c.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(c=c.set("Authorization","Bearer "+p));let m=i&&i.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(c=c.set("Accept",m));let g=i&&i.context;void 0===g&&(g=new v.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r-workWithGroupAttributes`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.post(w,null,{context:g,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}removeHostAttribute(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter host was null or undefined when calling removeHostAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeHostAttribute.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/h`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeHostAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter host was null or undefined when calling removeHostAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeHostAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),t&&t.forEach(f=>{n=this.addToHttpParams(n,f,"attributes[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/h`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeMemberAttribute(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeMemberAttribute.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeMemberAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),t&&t.forEach(f=>{n=this.addToHttpParams(n,f,"attributes[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeMemberAttributesWorkWithUserAttributes(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==s)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),t&&t.forEach(w=>{i=this.addToHttpParams(i,w,"attributes[]")}),null!=s&&(i=this.addToHttpParams(i,s,"workWithUserAttributes"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let p=n&&n.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-workWithUserAttributes`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}removeMemberGroupAttribute(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttribute.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttribute.");if(null==s)throw new Error("Required parameter attribute was null or undefined when calling removeMemberGroupAttribute.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),null!=s&&(i=this.addToHttpParams(i,s,"attribute"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let p=n&&n.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-g`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}removeMemberGroupAttributes(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributes.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),s&&s.forEach(w=>{i=this.addToHttpParams(i,w,"attributes[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let p=n&&n.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}removeMemberGroupAttributesWorkWithUserAttributes(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==u)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group")),s&&s.forEach(R=>{o=this.addToHttpParams(o,R,"attributes[]")}),null!=u&&(o=this.addToHttpParams(o,u,"workWithUserAttributes"));let p,c=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(c=c.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(c=c.set("Authorization","Bearer "+p));let m=i&&i.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(c=c.set("Accept",m));let g=i&&i.context;void 0===g&&(g=new v.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g-workWithUserAttributes`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.post(w,null,{context:g,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}removeMemberResourceAttribute(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttribute.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttribute.");if(null==s)throw new Error("Required parameter attribute was null or undefined when calling removeMemberResourceAttribute.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"attribute"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let p=n&&n.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-r`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}removeMemberResourceAttributes(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeMemberResourceAttributes.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),s&&s.forEach(w=>{i=this.addToHttpParams(i,w,"attributes[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let p=n&&n.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-r`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}removeResourceAttribute(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeResourceAttribute.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/r`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeResourceAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeResourceAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),t&&t.forEach(f=>{n=this.addToHttpParams(n,f,"attributes[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/r`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeUesAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling removeUesAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeUesAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),t&&t.forEach(f=>{n=this.addToHttpParams(n,f,"attributes[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/ues`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeUserAttribute(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeUserAttribute.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeUserAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeUserAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),t&&t.forEach(f=>{n=this.addToHttpParams(n,f,"attributes[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeUserExtSourceAttribute(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSourceAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeUserExtSourceAttribute.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/ues`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeUserFacilityAttribute(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttribute.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttribute.");if(null==s)throw new Error("Required parameter attribute was null or undefined when calling removeUserFacilityAttribute.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"facility")),null!=s&&(i=this.addToHttpParams(i,s,"attribute"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let p=n&&n.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u-f`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}removeUserFacilityAttributes(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttributes.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeUserFacilityAttributes.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"facility")),s&&s.forEach(w=>{i=this.addToHttpParams(i,w,"attributes[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let p=n&&n.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u-f`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}removeVoAttribute(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeVoAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeVoAttribute.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/v`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeVoAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeVoAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeVoAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),t&&t.forEach(f=>{n=this.addToHttpParams(n,f,"attributes[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/v`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}setAttributeActionCriticality(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling setAttributeActionCriticality.");if(null==t)throw new Error("Required parameter action was null or undefined when calling setAttributeActionCriticality.");if(null==s)throw new Error("Required parameter critical was null or undefined when calling setAttributeActionCriticality.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"attributeDefinition")),null!=t&&(i=this.addToHttpParams(i,t,"action")),null!=s&&(i=this.addToHttpParams(i,s,"critical"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let p=n&&n.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/setAttributeActionCriticality`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}setAttributePolicyCollections(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputAttributePolicyCollections was null or undefined when calling setAttributePolicyCollections.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributePolicyCollections`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setAttributeRights(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputAttributeRights was null or undefined when calling setAttributeRights.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributeRights`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setEntitylessAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputEntitylessAttribute was null or undefined when calling setEntitylessAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/entityless`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setFacilityAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetFacilityAttribute was null or undefined when calling setFacilityAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/facility`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setFacilityAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetFacilityAttributes was null or undefined when calling setFacilityAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/f`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setFacilityResourceGroupUserMemberAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetFacilityResourceGroupUserMemberAttributes was null or undefined when calling setFacilityResourceGroupUserMemberAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-g-u-m`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setFacilityResourceUserMemberAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetFacilityResourceUserMemberAttributes was null or undefined when calling setFacilityResourceUserMemberAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-u-m`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setFacilityUserAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetFacilityUserAttributes was null or undefined when calling setFacilityUserAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/f-u`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setGroupAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetGroupAttribute was null or undefined when calling setGroupAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/group`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setGroupAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetGroupAttributes was null or undefined when calling setGroupAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/g`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setGroupResourceAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetGroupResourceAttribute was null or undefined when calling setGroupResourceAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/group-resource`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setGroupResourceAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetGroupResourceAttributes was null or undefined when calling setGroupResourceAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/group-resource`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setHostAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetHostAttribute was null or undefined when calling setHostAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/host`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setHostAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetHostAttributes was null or undefined when calling setHostAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/h`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setMemberAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetMemberAttribute was null or undefined when calling setMemberAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/member`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setMemberAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetMemberAttributes was null or undefined when calling setMemberAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/m`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setMemberGroupAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetMemberGroupAttribute was null or undefined when calling setMemberGroupAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/member-group`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setMemberGroupAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetMemberGroupAttributes was null or undefined when calling setMemberGroupAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setMemberGroupWithUserAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetMemberGroupWithUserAttributes was null or undefined when calling setMemberGroupWithUserAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g-wu`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setMemberResourceAndUserAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetMemberResourceAndUserAttributes was null or undefined when calling setMemberResourceAndUserAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r-wu`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setMemberResourceAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetMemberResourceAttribute was null or undefined when calling setMemberResourceAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/member-resource`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setMemberResourceAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetMemberResourceAttributes was null or undefined when calling setMemberResourceAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setMemberWithUserAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetMemberWithUserAttributes was null or undefined when calling setMemberWithUserAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-wu`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setResourceAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetResourceAttribute was null or undefined when calling setResourceAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/resource`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setResourceAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetResourceAttributes was null or undefined when calling setResourceAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/r`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setResourceGroupAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetResourceGroupAttributes was null or undefined when calling setResourceGroupAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setResourceGroupWithGroupAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetResourceGroupWithGroupAttributes was null or undefined when calling setResourceGroupWithGroupAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g-wg`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setUserAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetUserAttribute was null or undefined when calling setUserAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/user`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setUserAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetUserAttributes was null or undefined when calling setUserAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/u`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setUserExtSourceAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetUserExtSourceAttribute was null or undefined when calling setUserExtSourceAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/userExtSource`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setUserExtSourceAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetUserExtSourceAttributes was null or undefined when calling setUserExtSourceAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/ues`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setUserFacilityAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetUserFacilityAttribute was null or undefined when calling setUserFacilityAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/facility-user`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setUserFacilityAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetUserFacilityAttributes was null or undefined when calling setUserFacilityAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/facility-user`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setVoAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetVoAttribute was null or undefined when calling setVoAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/vo`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setVoAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetVoAttributes was null or undefined when calling setVoAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/vo`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}updateAttributeDefinition(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputAttributeDefinition was null or undefined when calling updateAttributeDefinition.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/updateAttributeDefinition`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(v.eN),h.LFG(Wt,8),h.LFG(lt,8))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Is=(()=>{class r{constructor(e,t,s){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new v.WM,this.configuration=new lt,s&&(this.configuration=s),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Xt}addToHttpParams(e,t,s){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,s):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,s){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(u=>e=this.addToHttpParamsRecursive(e,u,s));else if(t instanceof Date){if(null==s)throw Error("key may not be null if value is Date");e=e.append(s,t.toISOString().substr(0,10))}else Object.keys(t).forEach(u=>e=this.addToHttpParamsRecursive(e,t[u],null!=s?`${s}.${u}`:u));else{if(null==s)throw Error("key may not be null if value is not object or array");e=e.append(s,t)}return e}getAllPolicies(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/getAllPolicies`;if(e){let p=new URL(c),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),c=p.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getAllRolesManagementRules(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/getAllRolesManagementRules`;if(e){let p=new URL(c),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),c=p.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getAuthzAdminGroups(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter role was null or undefined when calling getAuthzAdminGroups.");if(null==t)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzAdminGroups.");if(null==s)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzAdminGroups.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"role")),null!=t&&(i=this.addToHttpParams(i,t,"complementaryObjectId")),null!=s&&(i=this.addToHttpParams(i,s,"complementaryObjectName"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let p=n&&n.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/authzResolver/getAdminGroups`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getAuthzRichAdmins(e,t,s,u,d,l,n=!1,i="body",o=!1,c){if(null==e)throw new Error("Required parameter role was null or undefined when calling getAuthzRichAdmins.");if(null==t)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzRichAdmins.");if(null==s)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzRichAdmins.");if(null==u)throw new Error("Required parameter specificAttributes was null or undefined when calling getAuthzRichAdmins.");let p=new v.LE({encoder:this.encoder});null!=e&&(p=this.addToHttpParams(p,e,"role")),null!=t&&(p=this.addToHttpParams(p,t,"complementaryObjectId")),null!=s&&(p=this.addToHttpParams(p,s,"complementaryObjectName")),u&&u.forEach(Se=>{p=this.addToHttpParams(p,Se,"specificAttributes")}),null!=d&&(p=this.addToHttpParams(p,d,"allUserAttributes")),null!=l&&(p=this.addToHttpParams(p,l,"onlyDirectAdmins"));let g,m=this.defaultHeaders;g=this.configuration.lookupCredential("BasicAuth"),g&&(m=m.set("Authorization","Basic "+g)),g=this.configuration.lookupCredential("BearerAuth"),g&&(m=m.set("Authorization","Bearer "+g));let f=c&&c.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(m=m.set("Accept",f));let w=c&&c.context;void 0===w&&(w=new v.qT);let R="json";f&&(R=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob");let J=`${this.configuration.basePath}/json/authzResolver/getRichAdmins`;if(n){let Se=new URL(J),at=Se.pathname.split("/");at[1]="non",Se.pathname=at.join("/"),J=Se.toString()}return this.httpClient.get(J,{context:w,params:p,responseType:R,withCredentials:this.configuration.withCredentials,headers:m,observe:i,reportProgress:o})}getFacilitiesWhereUserIsInRoles(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getFacilitiesWhereUserIsInRoles.");let n=new v.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(f=>{n=this.addToHttpParams(n,f,"roles[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/getFacilitiesWhereUserIsInRoles`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getGroupRoleNames(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/getGroupRoleNames`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getGroupRoles(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"groupId"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/authzResolver/getGroupRoles`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getGroupsWhereUserIsInRoles(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getGroupsWhereUserIsInRoles.");let n=new v.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(f=>{n=this.addToHttpParams(n,f,"roles[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/getGroupsWhereUserIsInRoles`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getLoggedUser(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/getLoggedUser`;if(e){let p=new URL(c),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),c=p.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getMembersWhereUserIsInRoles(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getMembersWhereUserIsInRoles.");let n=new v.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(f=>{n=this.addToHttpParams(n,f,"roles[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/getMembersWhereUserIsInRoles`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getPerunPrincipal(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/getPerunPrincipal`;if(e){let p=new URL(c),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),c=p.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getPrincipalRoleNames(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/getPrincipalRoleNames`;if(e){let p=new URL(c),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),c=p.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getResourcesWhereUserIsInRoles(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getResourcesWhereUserIsInRoles.");let n=new v.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(f=>{n=this.addToHttpParams(n,f,"roles[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/getResourcesWhereUserIsInRoles`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getSecurityTeamsWhereUserIsInRoles(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getSecurityTeamsWhereUserIsInRoles.");let n=new v.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(f=>{n=this.addToHttpParams(n,f,"roles[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/getSecurityTeamsWhereUserIsInRoles`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getUserRoleNames(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/getUserRoleNames`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getUserRoles(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"userId"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/getUserRoles`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getVosWhereUserIsInRoles(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getVosWhereUserIsInRoles.");let n=new v.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(f=>{n=this.addToHttpParams(n,f,"roles[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/getVosWhereUserIsInRoles`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}isFacilityAdmin(e,t=!1,s="body",u=!1,d){let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"facility"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/authzResolver/isFacilityAdmin`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}isGroupAdmin(e,t=!1,s="body",u=!1,d){let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/authzResolver/isGroupAdmin`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}isPerunAdmin(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/isPerunAdmin`;if(e){let p=new URL(c),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),c=p.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}isVoAdmin(e,t=!1,s="body",u=!1,d){let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/authzResolver/isVoAdmin`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}keepAlive(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/keepAlive`;if(e){let p=new URL(c),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),c=p.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}loadAuthorizationComponents(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/loadAuthorizationComponents`;if(e){let p=new URL(c),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),c=p.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}refreshMfa(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/refreshMfa`;if(e){let p=new URL(c),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),c=p.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}setRoleForGroup(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter SetRoleForGroup was null or undefined when calling setRoleForGroup.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/setRole/g`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setRoleForUser(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter SetRoleForUser was null or undefined when calling setRoleForUser.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/setRole/u`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setRoleWithGroupComplementaryObject(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter SetRoleWithGroupComplementaryObject was null or undefined when calling setRoleWithGroupComplementaryObject.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/setRole/g-co`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setRoleWithGroupComplementaryObjects(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter SetRoleWithGroupComplementaryObjects was null or undefined when calling setRoleWithGroupComplementaryObjects.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/setRole/g-cos`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setRoleWithUserComplementaryObject(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter SetRoleWithUserComplementaryObject was null or undefined when calling setRoleWithUserComplementaryObject.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/setRole/u-co`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setRoleWithUserComplementaryObjects(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter SetRoleWithUserComplementaryObjects was null or undefined when calling setRoleWithUserComplementaryObjects.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/setRole/u-cos`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}unsetRoleForGroup(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter UnsetRoleForGroup was null or undefined when calling unsetRoleForGroup.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/unsetRole/g`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}unsetRoleForUser(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter UnsetRoleForUser was null or undefined when calling unsetRoleForUser.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/unsetRole/u`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}unsetRoleWithGroupComplementaryObject(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter UnsetRoleWithGroupComplementaryObject was null or undefined when calling unsetRoleWithGroupComplementaryObject.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/unsetRole/g-co`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}unsetRoleWithGroupComplementaryObjects(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter UnsetRoleWithGroupComplementaryObjects was null or undefined when calling unsetRoleWithGroupComplementaryObjects.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/unsetRole/g-cos`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}unsetRoleWithUserComplementaryObject(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter UnsetRoleWithUserComplementaryObject was null or undefined when calling unsetRoleWithUserComplementaryObject.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/unsetRole/u-co`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}unsetRoleWithUserComplementaryObjects(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter UnsetRoleWithUserComplementaryObjects was null or undefined when calling unsetRoleWithUserComplementaryObjects.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/unsetRole/u-cos`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(v.eN),h.LFG(Wt,8),h.LFG(lt,8))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Vs=(()=>{class r{constructor(e,t,s){this.httpClient=e,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new v.WM,this.configuration=new lt,s&&(this.configuration=s),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Xt}addToHttpParams(e,t,s){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,s):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,s){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(u=>e=this.addToHttpParamsRecursive(e,u,s));else if(t instanceof Date){if(null==s)throw Error("key may not be null if value is Date");e=e.append(s,t.toISOString().substr(0,10))}else Object.keys(t).forEach(u=>e=this.addToHttpParamsRecursive(e,t[u],null!=s?`${s}.${u}`:u));else{if(null==s)throw Error("key may not be null if value is not object or array");e=e.append(s,t)}return e}sentMessageToRTWithMemberQueue(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter memberId was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==s)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==u)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithMemberQueue.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"memberId")),null!=t&&(o=this.addToHttpParams(o,t,"queue")),null!=s&&(o=this.addToHttpParams(o,s,"subject")),null!=u&&(o=this.addToHttpParams(o,u,"text"));let p,c=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(c=c.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(c=c.set("Authorization","Bearer "+p));let m=i&&i.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(c=c.set("Accept",m));let g=i&&i.context;void 0===g&&(g=new v.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/m-q`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.post(w,null,{context:g,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}sentMessageToRTWithQueue(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithQueue.");if(null==t)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithQueue.");if(null==s)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithQueue.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"queue")),null!=t&&(i=this.addToHttpParams(i,t,"subject")),null!=s&&(i=this.addToHttpParams(i,s,"text"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let p=n&&n.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/q`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}sentMessageToRTWithVo(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVo.");if(null==t)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVo.");if(null==s)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVo.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"voId")),null!=t&&(i=this.addToHttpParams(i,t,"subject")),null!=s&&(i=this.addToHttpParams(i,s,"text"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let p=n&&n.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}sentMessageToRTWithVoQueue(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==s)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==u)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVoQueue.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"voId")),null!=t&&(o=this.addToHttpParams(o,t,"queue")),null!=s&&(o=this.addToHttpParams(o,s,"subject")),null!=u&&(o=this.addToHttpParams(o,u,"text"));let p,c=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(c=c.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(c=c.set("Authorization","Bearer "+p));let m=i&&i.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(c=c.set("Accept",m));let g=i&&i.context;void 0===g&&(g=new v.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v-q`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.post(w,null,{context:g,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(v.eN),h.LFG(Wt,8),h.LFG(lt,8))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),mc=(()=>{class r{constructor(e,t,s){this.httpClient=e,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new v.WM,this.configuration=new lt,s&&(this.configuration=s),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Xt}addToHttpParams(e,t,s){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,s):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,s){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(u=>e=this.addToHttpParamsRecursive(e,u,s));else if(t instanceof Date){if(null==s)throw Error("key may not be null if value is Date");e=e.append(s,t.toISOString().substr(0,10))}else Object.keys(t).forEach(u=>e=this.addToHttpParamsRecursive(e,t[u],null!=s?`${s}.${u}`:u));else{if(null==s)throw Error("key may not be null if value is not object or array");e=e.append(s,t)}return e}addApplicationMailForGroup(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputAddApplicationMailForGroup was null or undefined when calling addApplicationMailForGroup.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/addApplicationMail/g`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}addApplicationMailForVo(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputAddApplicationMailForVo was null or undefined when calling addApplicationMailForVo.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/addApplicationMail/v`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}addGroupsToAutoRegistration(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter groups was null or undefined when calling addGroupsToAutoRegistration.");let l=new v.LE({encoder:this.encoder});e&&e.forEach(g=>{l=this.addToHttpParams(l,g,"groups[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/registrarManager/addGroupsToAutoRegistration`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}approveApplication(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter id was null or undefined when calling approveApplication.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/registrarManager/approveApplication`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}checkForSimilarRichIdentities(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/registrarManager/checkForSimilarRichIdentities`;if(e){let p=new URL(c),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),c=p.toString()}return this.httpClient.post(c,null,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}checkForSimilarUsersWithAuthInfo(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/registrarManager/checkForSimilarUsers/authInfo`;if(e){let p=new URL(c),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),c=p.toString()}return this.httpClient.post(c,null,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}consolidate(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputConsolidate was null or undefined when calling consolidate.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/consolidate`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}consolidateIdentityUsingToken(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter token was null or undefined when calling consolidateIdentityUsingToken.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"token"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/consolidateIdentityUsingToken`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}copyFormFromGroupToGroup(e,t,s=!1,u="body",d=!1,l){let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromGroup")),null!=t&&(n=this.addToHttpParams(n,t,"toGroup"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToGroup`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}copyFormFromGroupToVo(e,t,s=!1,u="body",d=!1,l){let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromGroup")),null!=t&&(n=this.addToHttpParams(n,t,"toVo"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToVo`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}copyFormFromVoToGroup(e,t,s=!1,u="body",d=!1,l){let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromVo")),null!=t&&(n=this.addToHttpParams(n,t,"toGroup"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToGroup`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}copyFormFromVoToVo(e,t,s=!1,u="body",d=!1,l){let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromVo")),null!=t&&(n=this.addToHttpParams(n,t,"toVo"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToVo`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}copyMailsFromGroupToGroup(e,t,s=!1,u="body",d=!1,l){let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromGroup")),null!=t&&(n=this.addToHttpParams(n,t,"toGroup"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToGroup`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}copyMailsFromGroupToVo(e,t,s=!1,u="body",d=!1,l){let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromGroup")),null!=t&&(n=this.addToHttpParams(n,t,"toVo"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToVo`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}copyMailsFromVoToGroup(e,t,s=!1,u="body",d=!1,l){let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromVo")),null!=t&&(n=this.addToHttpParams(n,t,"toGroup"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToGroup`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}copyMailsFromVoToVo(e,t,s=!1,u="body",d=!1,l){let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromVo")),null!=t&&(n=this.addToHttpParams(n,t,"toVo"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToVo`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}createApplicationFormInGroup(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling createApplicationFormInGroup.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/group`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}createApplicationFormInVo(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling createApplicationFormInVo.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/vo`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}deleteApplication(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteApplication.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplication`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}deleteApplicationMailForGroup(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling deleteApplicationMailForGroup.");if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForGroup.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"id"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/g`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}deleteApplicationMailForVo(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling deleteApplicationMailForVo.");if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForVo.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"id"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/v`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}deleteGroupsFromAutoRegistration(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter groups was null or undefined when calling deleteGroupsFromAutoRegistration.");let l=new v.LE({encoder:this.encoder});e&&e.forEach(g=>{l=this.addToHttpParams(l,g,"groups[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteGroupsFromAutoRegistration`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getApplicationById(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter id was null or undefined when calling getApplicationById.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/getApplicationById`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getApplicationDataById(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter id was null or undefined when calling getApplicationDataById.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/getApplicationDataById`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getApplicationMailsForGroup(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling getApplicationMailsForGroup.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/getApplicationMails/g`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getApplicationMailsForVo(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getApplicationMailsForVo.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/getApplicationMails/v`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getApplicationsForGroup(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter group was null or undefined when calling getApplicationsForGroup.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),t&&t.forEach(R=>{o=this.addToHttpParams(o,R,"state[]")}),null!=s&&(o=this.addToHttpParams(o,s,"dateFrom")),null!=u&&(o=this.addToHttpParams(o,u,"dateTo"));let p,c=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(c=c.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(c=c.set("Authorization","Bearer "+p));let m=i&&i.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(c=c.set("Accept",m));let g=i&&i.context;void 0===g&&(g=new v.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/registrarManager/getApplicationsForGroup`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.get(w,{context:g,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}getApplicationsForMember(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getApplicationsForMember.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"group"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/getApplicationsForMember`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getApplicationsForVo(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getApplicationsForVo.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),t&&t.forEach(R=>{o=this.addToHttpParams(o,R,"state[]")}),null!=s&&(o=this.addToHttpParams(o,s,"dateFrom")),null!=u&&(o=this.addToHttpParams(o,u,"dateTo"));let p,c=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(c=c.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(c=c.set("Authorization","Bearer "+p));let m=i&&i.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(c=c.set("Accept",m));let g=i&&i.context;void 0===g&&(g=new v.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/registrarManager/getApplicationsForVo`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.get(w,{context:g,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}getApplicationsPage(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputGetPaginatedApplications was null or undefined when calling getApplicationsPage.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/getApplicationsPage`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}getConsolidatorToken(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/registrarManager/getConsolidatorToken`;if(e){let p=new URL(c),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),c=p.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getFormItemsForGroup(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroup.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/getFormItems/group`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getFormItemsForGroupWithType(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroupWithType.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"type"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/getFormItems/group-type`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getFormItemsForVo(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVo.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/getFormItems/vo`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getFormItemsForVoWithType(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVoWithType.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"type"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/getFormItems/vo-type`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getGroupApplicationForm(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupApplicationForm.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/getApplicationForm/group`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getGroupsToAutoRegistration(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getGroupsToAutoRegistration.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/getGroupsToAutoRegistration`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getVoApplicationForm(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoApplicationForm.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/getApplicationForm/vo`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}rejectApplication(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling rejectApplication.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"id")),null!=t&&(n=this.addToHttpParams(n,t,"reason"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/registrarManager/rejectApplication`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}sendInvitation(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter email was null or undefined when calling sendInvitation.");if(null==t)throw new Error("Required parameter language was null or undefined when calling sendInvitation.");let o=new v.LE({encoder:this.encoder});null!=s&&(o=this.addToHttpParams(o,s,"voId")),null!=u&&(o=this.addToHttpParams(o,u,"name")),null!=e&&(o=this.addToHttpParams(o,e,"email")),null!=t&&(o=this.addToHttpParams(o,t,"language"));let p,c=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(c=c.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(c=c.set("Authorization","Bearer "+p));let m=i&&i.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(c=c.set("Accept",m));let g=i&&i.context;void 0===g&&(g=new v.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.post(w,null,{context:g,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}sendInvitationForGroup(e,t,s,u,d,l=!1,n="body",i=!1,o){if(null==e)throw new Error("Required parameter email was null or undefined when calling sendInvitationForGroup.");if(null==t)throw new Error("Required parameter language was null or undefined when calling sendInvitationForGroup.");let c=new v.LE({encoder:this.encoder});null!=s&&(c=this.addToHttpParams(c,s,"voId")),null!=u&&(c=this.addToHttpParams(c,u,"groupId")),null!=d&&(c=this.addToHttpParams(c,d,"name")),null!=e&&(c=this.addToHttpParams(c,e,"email")),null!=t&&(c=this.addToHttpParams(c,t,"language"));let m,p=this.defaultHeaders;m=this.configuration.lookupCredential("BasicAuth"),m&&(p=p.set("Authorization","Basic "+m)),m=this.configuration.lookupCredential("BearerAuth"),m&&(p=p.set("Authorization","Bearer "+m));let g=o&&o.httpHeaderAccept;void 0===g&&(g=this.configuration.selectHeaderAccept(["application/json"])),void 0!==g&&(p=p.set("Accept",g));let f=o&&o.context;void 0===f&&(f=new v.qT);let w="json";g&&(w=g.startsWith("text")?"text":this.configuration.isJsonMime(g)?"json":"blob");let R=`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/g`;if(l){let J=new URL(R),Se=J.pathname.split("/");Se[1]="non",J.pathname=Se.join("/"),R=J.toString()}return this.httpClient.post(R,null,{context:f,params:c,responseType:w,withCredentials:this.configuration.withCredentials,headers:p,observe:n,reportProgress:i})}sendInvitationGroupToExistingUser(e,t,s,u=!1,d="body",l=!1,n){let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"userId")),null!=t&&(i=this.addToHttpParams(i,t,"voId")),null!=s&&(i=this.addToHttpParams(i,s,"groupId"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let p=n&&n.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u-g`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}sendInvitationToExistingUser(e,t,s=!1,u="body",d=!1,l){let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userId")),null!=t&&(n=this.addToHttpParams(n,t,"voId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}sendInvitationsFromCsv(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputInvitationsFromCsv was null or undefined when calling sendInvitationsFromCsv.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/sendInvitationsFromCsv`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}sendMessage(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSendMessage was null or undefined when calling sendMessage.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/sendMessage`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setSendingEnabled(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetSendingEnabled was null or undefined when calling setSendingEnabled.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/setSendingEnabled`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}submitApplication(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSubmitApplication was null or undefined when calling submitApplication.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/submitApplication`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}updateApplicationMail(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputUpdateApplicationMail was null or undefined when calling updateApplicationMail.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/updateApplicationMail`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}updateForm(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputUpdateForm was null or undefined when calling updateForm.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/updateForm`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}updateFormItemData(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputFormItemData was null or undefined when calling updateFormItemData.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/updateFormItemData`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}updateFormItemsData(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputFormItemsData was null or undefined when calling updateFormItemsData.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/updateFormItemsData`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}updateFormItemsForGroup(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputUpdateFormItemsForGroup was null or undefined when calling updateFormItemsForGroup.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/updateFormItems/group`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}updateFormItemsForVo(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputUpdateFormItemsForVo was null or undefined when calling updateFormItemsForVo.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/updateFormItems/vo`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}verifyApplication(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter id was null or undefined when calling verifyApplication.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/registrarManager/verifyApplication`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(v.eN),h.LFG(Wt,8),h.LFG(lt,8))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Bs=(()=>{class r{constructor(e,t,s){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new v.WM,this.configuration=new lt,s&&(this.configuration=s),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Xt}addToHttpParams(e,t,s){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,s):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,s){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(u=>e=this.addToHttpParamsRecursive(e,u,s));else if(t instanceof Date){if(null==s)throw Error("key may not be null if value is Date");e=e.append(s,t.toISOString().substr(0,10))}else Object.keys(t).forEach(u=>e=this.addToHttpParamsRecursive(e,t[u],null!=s?`${s}.${u}`:u));else{if(null==s)throw Error("key may not be null if value is not object or array");e=e.append(s,t)}return e}addSpecificUserOwner(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling addSpecificUserOwner.");if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling addSpecificUserOwner.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"specificUser"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/addSpecificUserOwner`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}addUserExtSource(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter AddUserExtSourceInput was null or undefined when calling addUserExtSource.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/addUserExtSource`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}anonymizeUser(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling anonymizeUser.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"force"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/anonymizeUser`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}changeNonAuthzPasswordByToken(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputChangeNonAuthzPasswordByToken was null or undefined when calling changeNonAuthzPasswordByToken.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/changeNonAuthzPassword/token`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}changePasswordForLogin(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputChangePasswordForLogin was null or undefined when calling changePasswordForLogin.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/changePassword/login`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}changePasswordForUser(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputChangePasswordForUser was null or undefined when calling changePasswordForUser.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/changePassword/user`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}checkPasswordResetRequestByTokenIsValid(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter token was null or undefined when calling checkPasswordResetRequestByTokenIsValid.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"token"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/checkPasswordResetRequestIsValid/token`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}checkPasswordStrength(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputCheckPasswordStrength was null or undefined when calling checkPasswordStrength.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/checkPasswordStrength`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}createAlternativePassword(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputCreateAlternativePassword was null or undefined when calling createAlternativePassword.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/createAlternativePassword`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}createServiceUser(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputCreateServiceUser was null or undefined when calling createServiceUser.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/createServiceUser`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}deleteAlternativePassword(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling deleteAlternativePassword.");if(null==t)throw new Error("Required parameter loginNamespace was null or undefined when calling deleteAlternativePassword.");if(null==s)throw new Error("Required parameter passwordId was null or undefined when calling deleteAlternativePassword.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"loginNamespace")),null!=s&&(i=this.addToHttpParams(i,s,"passwordId"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let p=n&&n.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/usersManager/deleteAlternativePassword`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}deletePasswordForLogin(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter login was null or undefined when calling deletePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForLogin.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"login")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/login`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}deletePasswordForUser(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling deletePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForUser.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/user`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}deleteUser(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling deleteUser.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"force"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/deleteUser`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}findRichUsers(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findRichUsers.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"searchString"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/findRichUsers`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}findRichUsersWithAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findRichUsersWithAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"searchString")),t&&t.forEach(f=>{n=this.addToHttpParams(n,f,"attrsNames[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/findRichUsersWithAttributes`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}findUsers(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findUsers.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"searchString"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/findUsers`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}generateAccountForName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter namespace was null or undefined when calling generateAccountForName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"namespace")),null!=t&&(n=this.addToHttpParams(n,t,"name"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/generateAccount/name`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getAllRichUsersWithAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter includedSpecificUsers was null or undefined when calling getAllRichUsersWithAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"includedSpecificUsers"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getAllRichUsersWithAttributes`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getAssignedRichResourcesForUser(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getAssignedRichResourcesForUser.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getAssignedRichResources`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getGroupsForFacilityWhereUserIsActive(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/facility`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getGroupsForResourceWhereUserIsActive(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsForResourceWhereUserIsActive.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupsForResourceWhereUserIsActive.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/resource`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getGroupsInVoWhereUserIsAdmin(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"vo"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u-v`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getGroupsWhereUserIsAdmin(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsWhereUserIsAdmin.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getPendingPreferredEmailChanges(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getPendingPreferredEmailChanges.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getPendingPreferredEmailChanges`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getRichUserExtSources(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserExtSources.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getRichUserExtSources/u`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getRichUserWithAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserWithAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getRichUserWithAttributes`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getRichUsersByIds(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersByIds.");let l=new v.LE({encoder:this.encoder});e&&e.forEach(g=>{l=this.addToHttpParams(l,g,"ids[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getRichUsersByIds`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getRichUsersWithAttributesByIds(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersWithAttributesByIds.");let l=new v.LE({encoder:this.encoder});e&&e.forEach(g=>{l=this.addToHttpParams(l,g,"ids[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getRichUsersWithAttributesByIds`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getRichUsersWithoutVoWithAttributes(e,t=!1,s="body",u=!1,d){let l=new v.LE({encoder:this.encoder});e&&e.forEach(g=>{l=this.addToHttpParams(l,g,"attrsNames[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getRichUsersWithoutVoWithAttributes`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getSpecificUsersByUser(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getSpecificUsersByUser.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getSpecificUsersByUser`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getSponsorsForMember(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getSponsorsForMember.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),t&&t.forEach(f=>{n=this.addToHttpParams(n,f,"attrNames[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/member`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getSponsorsForMemberByVoAndLogin(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==t)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==s)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsForMemberByVoAndLogin.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"extSourceName")),null!=s&&(o=this.addToHttpParams(o,s,"extLogin")),u&&u.forEach(R=>{o=this.addToHttpParams(o,R,"attrNames[]")});let p,c=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(c=c.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(c=c.set("Authorization","Bearer "+p));let m=i&&i.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(c=c.set("Accept",m));let g=i&&i.context;void 0===g&&(g=new v.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/vo`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.get(w,{context:g,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}getUserByExtSourceNameAndExtLogin(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter extLogin was null or undefined when calling getUserByExtSourceNameAndExtLogin.");if(null==t)throw new Error("Required parameter extSourceName was null or undefined when calling getUserByExtSourceNameAndExtLogin.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"extLogin")),null!=t&&(n=this.addToHttpParams(n,t,"extSourceName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getUserByExtSourceNameAndExtLogin`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getUserById(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter id was null or undefined when calling getUserById.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getUserById`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getUserExtSourceByExtLoginAndExtSourceName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");if(null==t)throw new Error("Required parameter extSourceLogin was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"extSourceName")),null!=t&&(n=this.addToHttpParams(n,t,"extSourceLogin"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getUserExtSourceByExtLoginAndExtSourceName`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getUserExtSourceById(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceById.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"userExtSource"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getUserExtSourceById`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getUserExtSourceByUniqueAttributeValueAndAttributeId(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");if(null==t)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"attributeId")),null!=t&&(n=this.addToHttpParams(n,t,"attributeValue"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/id`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getUserExtSourceByUniqueAttributeValueAndAttributeName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");if(null==t)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"attributeName")),null!=t&&(n=this.addToHttpParams(n,t,"attributeValue"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/name`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getUserExtSources(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserExtSources.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getUserExtSources`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getUserExtSourcesByIds(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUserExtSourcesByIds.");let l=new v.LE({encoder:this.encoder});e&&e.forEach(g=>{l=this.addToHttpParams(l,g,"ids[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getUserExtSourcesByIds`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getUsers(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/usersManager/getUsers`;if(e){let p=new URL(c),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),c=p.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getUsersByIds(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUsersByIds.");let l=new v.LE({encoder:this.encoder});e&&e.forEach(g=>{l=this.addToHttpParams(l,g,"ids[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getUsersByIds`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getUsersBySpecificUser(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter specificUser was null or undefined when calling getUsersBySpecificUser.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"specificUser"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getUsersBySpecificUser`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getUsersPage(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputGetPaginatedUsers was null or undefined when calling getUsersPage.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getUsersPage`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}getVosWhereUserIsAdmin(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsAdmin.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsAdmin`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getVosWhereUserIsMember(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsMember.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsMember`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}isLoginAvailable(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter loginNamespace was null or undefined when calling isLoginAvailable.");if(null==t)throw new Error("Required parameter login was null or undefined when calling isLoginAvailable.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"loginNamespace")),null!=t&&(n=this.addToHttpParams(n,t,"login"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/isLoginAvailable`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}loginExist(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling loginExist.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling loginExist.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/loginExist`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeSpecificUserOwner(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeSpecificUserOwner.");if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling removeSpecificUserOwner.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"specificUser"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/removeSpecificUserOwner`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeUserExtSource(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserExtSource.");if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSource.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"userExtSource")),null!=s&&(i=this.addToHttpParams(i,s,"force"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let p=n&&n.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/usersManager/removeUserExtSource`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}removeUserExtSources(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserExtSources.");if(null==t)throw new Error("Required parameter userExtSources was null or undefined when calling removeUserExtSources.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),t&&t.forEach(w=>{i=this.addToHttpParams(i,w,"userExtSources")}),null!=s&&(i=this.addToHttpParams(i,s,"force"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let p=n&&n.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/usersManager/removeUserExtSources`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}requestPreferredEmailChange(e,t,s,u,d,l,n=!1,i="body",o=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling requestPreferredEmailChange.");if(null==t)throw new Error("Required parameter email was null or undefined when calling requestPreferredEmailChange.");let p=new v.LE({encoder:this.encoder});null!=e&&(p=this.addToHttpParams(p,e,"user")),null!=t&&(p=this.addToHttpParams(p,t,"email")),null!=s&&(p=this.addToHttpParams(p,s,"lang")),null!=u&&(p=this.addToHttpParams(p,u,"linkPath")),null!=d&&(p=this.addToHttpParams(p,d,"customUrl")),null!=l&&(p=this.addToHttpParams(p,l,"idpFilter"));let g,m=this.defaultHeaders;g=this.configuration.lookupCredential("BasicAuth"),g&&(m=m.set("Authorization","Basic "+g)),g=this.configuration.lookupCredential("BearerAuth"),g&&(m=m.set("Authorization","Bearer "+g));let f=c&&c.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(m=m.set("Accept",f));let w=c&&c.context;void 0===w&&(w=new v.qT);let R="json";f&&(R=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob");let J=`${this.configuration.basePath}/urlinjsonout/usersManager/requestPreferredEmailChange`;if(n){let Se=new URL(J),at=Se.pathname.split("/");at[1]="non",Se.pathname=at.join("/"),J=Se.toString()}return this.httpClient.post(J,null,{context:w,params:p,responseType:R,withCredentials:this.configuration.withCredentials,headers:m,observe:i,reportProgress:o})}reservePasswordForLogin(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputReservePasswordForLogin was null or undefined when calling reservePasswordForLogin.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/reservePassword/login`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}reservePasswordForUser(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputReservePasswordForUser was null or undefined when calling reservePasswordForUser.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/reservePassword/user`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}reserveRandomPassword(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling reserveRandomPassword.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling reserveRandomPassword.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/reserveRandomPassword`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}setLogin(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling setLogin.");if(null==t)throw new Error("Required parameter login was null or undefined when calling setLogin.");if(null==s)throw new Error("Required parameter namespace was null or undefined when calling setLogin.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"login")),null!=s&&(i=this.addToHttpParams(i,s,"namespace"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let p=n&&n.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(o=o.set("Accept",p));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/usersManager/setLogin`;if(u){let w=new URL(f),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}updateUser(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputUpdateUser was null or undefined when calling updateUser.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(l=l.set("Content-Type",p));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/updateUser`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}updateUserExtSourceLastAccess(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling updateUserExtSourceLastAccess.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"userExtSource"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let p="json";o&&(p=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/usersManager/updateUserExtSourceLastAccess`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:c,params:l,responseType:p,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}validatePasswordForLogin(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter login was null or undefined when calling validatePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForLogin.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"login")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/login`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}validatePasswordForUser(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling validatePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForUser.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/user`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}validatePreferredEmailChangeWithToken(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter token was null or undefined when calling validatePreferredEmailChangeWithToken.");if(null==t)throw new Error("Required parameter u was null or undefined when calling validatePreferredEmailChangeWithToken.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"token")),null!=t&&(n=this.addToHttpParams(n,t,"u"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=l&&l.context;void 0===p&&(p=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/validatePreferredEmailChange`;if(s){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(v.eN),h.LFG(Wt,8),h.LFG(lt,8))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Ei=(()=>{class r{constructor(e,t,s){this.httpClient=e,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new v.WM,this.configuration=new lt,s&&(this.configuration=s),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Xt}addToHttpParams(e,t,s){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,s):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,s){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(u=>e=this.addToHttpParamsRecursive(e,u,s));else if(t instanceof Date){if(null==s)throw Error("key may not be null if value is Date");e=e.append(s,t.toISOString().substr(0,10))}else Object.keys(t).forEach(u=>e=this.addToHttpParamsRecursive(e,t[u],null!=s?`${s}.${u}`:u));else{if(null==s)throw Error("key may not be null if value is not object or array");e=e.append(s,t)}return e}getAppsConfig(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/utils/getAppsConfig`;if(e){let p=new URL(c),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),c=p.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getGuiConfiguration(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/utils/getGuiConfiguration`;if(e){let p=new URL(c),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),c=p.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getNewGuiAlert(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/utils/getNewGuiAlert`;if(e){let p=new URL(c),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),c=p.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getPerunRPCVersion(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["text/plain"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/`;if(e){let p=new URL(c),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),c=p.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getPerunStatistics(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/utils/getPerunStatistics`;if(e){let p=new URL(c),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),c=p.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getPerunStatus(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/utils/getPerunStatus`;if(e){let p=new URL(c),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),c=p.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getPerunSystemTimeInMillis(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/utils/getPerunSystemTimeInMillis`;if(e){let p=new URL(c),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),c=p.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(v.eN),h.LFG(Wt,8),h.LFG(lt,8))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),wi=(()=>{class r{constructor(e,t){if(e)throw new Error("ApiModule is already loaded. Import in your base AppModule only.");if(!t)throw new Error("You need to import the HttpClientModule in your AppModule! \nSee also https://github.com/angular/angular/issues/20575")}static forRoot(e){return{ngModule:r,providers:[{provide:lt,useFactory:e}]}}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(r,12),h.LFG(v.eN,8))},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({}),r})();var qe=(()=>{return(r=qe||(qe={})).PERUNADMIN="PERUNADMIN",r.PERUNOBSERVER="PERUNOBSERVER",r.VOADMIN="VOADMIN",r.GROUPADMIN="GROUPADMIN",r.GROUPOBSERVER="GROUPOBSERVER",r.GROUPMEMBERSHIPMANAGER="GROUPMEMBERSHIPMANAGER",r.SELF="SELF",r.FACILITYADMIN="FACILITYADMIN",r.FACILITIYOBSERVER="FACILITYOBSERVER",r.RESOURCEADMIN="RESOURCEADMIN",r.RESOURCESELFSERVICE="RESOURCESELFSERVICE",r.REGISTRAR="REGISTRAR",r.ENGINE="ENGINE",r.RPC="RPC",r.NOTIFICATIONS="NOTIFICATIONS",r.SERVICEUSER="SERVICEUSER",r.SPONSOR="SPONSOR",r.VOOBSERVER="VOOBSERVER",r.TOPGROUPCREATOR="TOPGROUPCREATOR",r.SECURITYADMIN="SECURITYADMIN",r.CABINETADMIN="CABINETADMIN",r.UNKNOWNROLENAME="UNKNOWNROLENAME",r.AUDITCONSUMERADMIN="AUDITCONSUMERADMIN",r.UNKNOWN="UNKNOWN",r.MEMBERSHIP="MEMBERSHIP",qe;var r})();let Mi=(()=>{class r{constructor(e){this.authzSevice=e,this.principalRoles=new Set,this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[],this.sortRoles=(t,s)=>t.roleName>s.roleName?1:t.roleName{this.authzSevice.getAllRolesManagementRules().subscribe(s=>{this.allRolesManagementRules=s,e()},s=>t(s))})}assignAvailableRoles(e,t){this.allRolesManagementRules.forEach(s=>{s.primaryObject===t&&e.push(s)}),e.sort(this.sortRoles),"Vo"===t&&this.voCustomSort(e)}isManagerPagePrivileged(e){const t=[];let s=e.beanName;s.startsWith("Rich")&&(s=s.substring(4)),this.assignAvailableRoles(t,s);const u=new Map;this.setRolesAuthorization(t,e,u);for(const d of u.values())if(d.readAuth||d.manageAuth)return!0;return!1}setRolesAuthorization(e,t,s){for(const u of e){let d=[],l=[],n=[];for(const m of this.allRolesManagementRules)if(m.roleName===u.roleName){d=d.concat(m.privilegedRolesToRead),l=l.concat(m.privilegedRolesToManage);for(const g of Object.keys(m.entitiesToManage))n="User"===g?[g].concat(n):n.concat(g);break}const i=this.fetchAllRelatedObjects([t]),o=this.resolveAuthorization(d,i),c=this.resolveAuthorization(l,i);s.set(u.roleName,{readAuth:o,manageAuth:c,modes:n})}}initializeVariables(){this.principalRoles.clear(),this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}getPrimaryObjectOfRole(e){for(const t of this.allRolesManagementRules)if(t.roleName===e)return t.primaryObject;return""}getAllRules(){return this.allRolesManagementRules.sort(this.sortRoles)}getRuleForRole(e){return this.allRolesManagementRules.find(t=>t.roleName===e)}getAssignableRoleRules(e){const t=[],s=["UNKNOWN","RPC","NOTIFICATIONS","ENGINE","MFA","REGISTRAR","AUDITCONSUMERADMIN","SPONSORSHIP","MEMBERSHIP","SERVICEUSER","SELF","SECURITYADMIN"];return this.allRolesManagementRules.forEach(u=>{!s.includes(u.roleName)&&this.canManage(u)&&this.ruleHasMode(u,e)&&t.push(u)}),t.sort(this.sortRoles)}ruleHasMode(e,t){return Object.keys(e.entitiesToManage).map(s=>s.toUpperCase()).includes(t)}canManage(e){return e.privilegedRolesToManage.some(t=>this.principalRoles.has(Object.keys(t)[0]))}resolveAuthorization(e,t){for(const s of e){let u=!0;for(const d of Object.keys(s)){const l=s[d];if(null===l)this.principalRoles.has(d)||(u=!1);else if(t[l]){for(const n of t[l])if(!this.principalHasRole(d,l,n)){u=!1;break}}else u=!1;if(!u)break}if(u)return!0}return!1}getPerunPolicy(e){for(const t of this.perunPolicies)if(t.policyName===e)return t;return null}fetchAllRelatedObjects(e){const t={};for(const s of e){let u=s.beanName;switch(s.beanName.startsWith("Rich")&&(u=s.beanName.substring(4)),t[u]?t[u].push(s.id):t[u]=[s.id],u){case"Member":t.User?t.User.push(s.userId):t.User=[s.userId],t.Vo?t.Vo.push(s.voId):t.Vo=[s.voId];break;case"Group":case"ResourceTag":t.Vo?t.Vo.push(s.voId):t.Vo=[s.voId];break;case"Resource":t.Facility?t.Facility.push(s.facilityId):t.Facility=[s.facilityId],t.Vo?t.Vo.push(s.voId):t.Vo=[s.voId]}}return t}fetchPolicyWithAllIncludedPolicies(e){const t=new Map;let s=[];for(s.push(e);0!==s.length;){const d=s.shift();if(t.has(d))continue;const l=this.getPerunPolicy(d);if(!l)return[];t.set(d,l),s=s.concat(l.includePolicies)}const u=[];for(const d of t.values())u.push(d);return u}voCustomSort(e){for(let t=0;t{let e=null;r._refCount++;const t=(0,Xe.x)(a,void 0,void 0,void 0,()=>{if(!r||r._refCount<=0||0<--r._refCount)return void(e=null);const s=r._connection,u=e;e=null,s&&(!u||s===u)&&s.unsubscribe(),a.unsubscribe()});r.subscribe(t),t.closed||(e=r.connect())})}class Tf extends ai.y{constructor(a,e){super(),this.source=a,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,(0,fn.A)(a)&&(this.lift=a.lift)}_subscribe(a){return this.getSubject().subscribe(a)}getSubject(){const a=this._subject;return(!a||a.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:a}=this;this._subject=this._connection=null,a?.unsubscribe()}connect(){let a=this._connection;if(!a){a=this._connection=new Yt.w0;const e=this.getSubject();a.add(this.source.subscribe((0,Xe.x)(e,void 0,()=>{this._teardown(),e.complete()},t=>{this._teardown(),e.error(t)},()=>this._teardown()))),a.closed&&(this._connection=null,a=Yt.w0.EMPTY)}return a}refCount(){return Sf()(this)}}function Zi(...r){const a=(0,kn.yG)(r);return(0,fn.e)((e,t)=>{(a?(0,Qi.z)(r,e,a):(0,Qi.z)(r,e)).subscribe(t)})}var Hi=E(5577),ei=E(590),Rt=E(8505),Xi=E(262);function Do(r,a,e,t,s){return(u,d)=>{let l=e,n=a,i=0;u.subscribe((0,Xe.x)(d,o=>{const c=i++;n=l?r(n,o,c):(l=!0,o),t&&d.next(n)},s&&(()=>{l&&d.next(n),d.complete()})))}}function rr(r,a){return(0,fn.e)(Do(r,a,arguments.length>=2,!0))}function ru(r){return r<=0?()=>Oi.E:(0,fn.e)((a,e)=>{let t=[];a.subscribe((0,Xe.x)(e,s=>{t.push(s),r{for(const s of t)e.next(s);e.complete()},void 0,()=>{t=null}))})}var Ef=E(8068),au=E(6590),Mf=E(4671);function wc(r,a){const e=arguments.length>=2;return t=>t.pipe(r?(0,ge.h)((s,u)=>r(s,u,t)):Mf.y,ru(1),e?(0,au.d)(a):(0,Ef.T)(()=>new On.K))}var Df=E(9718);function Ha(r){return(0,fn.e)((a,e)=>{try{a.subscribe(e)}finally{e.add(r)}})}var yc=E(8189);const ft="primary";class su{constructor(a){this.params=a||{}}has(a){return Object.prototype.hasOwnProperty.call(this.params,a)}get(a){if(this.has(a)){const e=this.params[a];return Array.isArray(e)?e[0]:e}return null}getAll(a){if(this.has(a)){const e=this.params[a];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Ra(r){return new su(r)}function Hf(r,a,e){const t=e.path.split("/");if(t.length>r.length||"full"===e.pathMatch&&(a.hasChildren()||t.lengtht[u]===s)}return r===a}function Pf(r){return Array.prototype.concat.apply([],r)}function If(r){return r.length>0?r[r.length-1]:null}function qt(r,a){for(const e in r)r.hasOwnProperty(e)&&a(r[e],e)}function Tt(r){return(0,h.CqO)(r)?r:(0,h.QGY)(r)?(0,$e.D)(Promise.resolve(r)):(0,Me.of)(r)}const kf={exact:function Ls(r,a,e){if(!Ia(r.segments,a.segments)||!Fs(r.segments,a.segments,e)||r.numberOfChildren!==a.numberOfChildren)return!1;for(const t in a.children)if(!r.children[t]||!Ls(r.children[t],a.children[t],e))return!1;return!0},subset:js},Vf={exact:function iw(r,a){return Ln(r,a)},subset:function xc(r,a){return Object.keys(a).length<=Object.keys(r).length&&Object.keys(a).every(e=>vc(r[e],a[e]))},ignored:()=>!0};function Bf(r,a,e){return kf[e.paths](r.root,a.root,e.matrixParams)&&Vf[e.queryParams](r.queryParams,a.queryParams)&&!("exact"===e.fragment&&r.fragment!==a.fragment)}function js(r,a,e){return Sc(r,a,a.segments,e)}function Sc(r,a,e,t){if(r.segments.length>e.length){const s=r.segments.slice(0,e.length);return!(!Ia(s,e)||a.hasChildren()||!Fs(s,e,t))}if(r.segments.length===e.length){if(!Ia(r.segments,e)||!Fs(r.segments,e,t))return!1;for(const s in a.children)if(!r.children[s]||!js(r.children[s],a.children[s],t))return!1;return!0}{const s=e.slice(0,r.segments.length),u=e.slice(r.segments.length);return!!(Ia(r.segments,s)&&Fs(r.segments,s,t)&&r.children[ft])&&Sc(r.children[ft],a,u,t)}}function Fs(r,a,e){return a.every((t,s)=>Vf[e](r[s].parameters,t.parameters))}class Pa{constructor(a,e,t){this.root=a,this.queryParams=e,this.fragment=t}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ra(this.queryParams)),this._queryParamMap}toString(){return rw.serialize(this)}}class dt{constructor(a,e){this.segments=a,this.children=e,this.parent=null,qt(e,(t,s)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return cu(this)}}class Rr{constructor(a,e){this.path=a,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Ra(this.parameters)),this._parameterMap}toString(){return ka(this)}}function Ia(r,a){return r.length===a.length&&r.every((e,t)=>e.path===a[t].path)}let Tc=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=h.Yz7({token:r,factory:function(){return new lu},providedIn:"root"}),r})();class lu{parse(a){const e=new ar(a);return new Pa(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(a){const e=`/${Ec(a.root,!0)}`,t=function Ro(r){const a=Object.keys(r).map(e=>{const t=r[e];return Array.isArray(t)?t.map(s=>`${qs(e)}=${qs(s)}`).join("&"):`${qs(e)}=${qs(t)}`}).filter(e=>!!e);return a.length?`?${a.join("&")}`:""}(a.queryParams);return`${e}${t}${"string"==typeof a.fragment?`#${function Of(r){return encodeURI(r)}(a.fragment)}`:""}`}}const rw=new lu;function cu(r){return r.segments.map(a=>ka(a)).join("/")}function Ec(r,a){if(!r.hasChildren())return cu(r);if(a){const e=r.children[ft]?Ec(r.children[ft],!1):"",t=[];return qt(r.children,(s,u)=>{u!==ft&&t.push(`${u}:${Ec(s,!1)}`)}),t.length>0?`${e}(${t.join("//")})`:e}{const e=function Us(r,a){let e=[];return qt(r.children,(t,s)=>{s===ft&&(e=e.concat(a(t,s)))}),qt(r.children,(t,s)=>{s!==ft&&(e=e.concat(a(t,s)))}),e}(r,(t,s)=>s===ft?[Ec(r.children[ft],!1)]:[`${s}:${Ec(t,!1)}`]);return 1===Object.keys(r.children).length&&null!=r.children[ft]?`${cu(r)}/${e[0]}`:`${cu(r)}/(${e.join("//")})`}}function Ns(r){return encodeURIComponent(r).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function qs(r){return Ns(r).replace(/%3B/gi,";")}function Ho(r){return Ns(r).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function zs(r){return decodeURIComponent(r)}function du(r){return zs(r.replace(/\+/g,"%20"))}function ka(r){return`${Ho(r.path)}${function aw(r){return Object.keys(r).map(a=>`;${Ho(a)}=${Ho(r[a])}`).join("")}(r.parameters)}`}const uu=/^[^\/()?;=#]+/;function Va(r){const a=r.match(uu);return a?a[0]:""}const zx=/^[^=?&#]+/,jf=/^[^&#]+/;class ar{constructor(a){this.url=a,this.remaining=a}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new dt([],{}):new dt([],this.parseChildren())}parseQueryParams(){const a={};if(this.consumeOptional("?"))do{this.parseQueryParam(a)}while(this.consumeOptional("&"));return a}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const a=[];for(this.peekStartsWith("(")||a.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),a.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let t={};return this.peekStartsWith("(")&&(t=this.parseParens(!1)),(a.length>0||Object.keys(e).length>0)&&(t[ft]=new dt(a,e)),t}parseSegment(){const a=Va(this.remaining);if(""===a&&this.peekStartsWith(";"))throw new h.vHH(4009,!1);return this.capture(a),new Rr(zs(a),this.parseMatrixParams())}parseMatrixParams(){const a={};for(;this.consumeOptional(";");)this.parseParam(a);return a}parseParam(a){const e=Va(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const s=Va(this.remaining);s&&(t=s,this.capture(t))}a[zs(e)]=zs(t)}parseQueryParam(a){const e=function Lf(r){const a=r.match(zx);return a?a[0]:""}(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const d=function ow(r){const a=r.match(jf);return a?a[0]:""}(this.remaining);d&&(t=d,this.capture(t))}const s=du(e),u=du(t);if(a.hasOwnProperty(s)){let d=a[s];Array.isArray(d)||(d=[d],a[s]=d),d.push(u)}else a[s]=u}parseParens(a){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const t=Va(this.remaining),s=this.remaining[t.length];if("/"!==s&&")"!==s&&";"!==s)throw new h.vHH(4010,!1);let u;t.indexOf(":")>-1?(u=t.slice(0,t.indexOf(":")),this.capture(u),this.capture(":")):a&&(u=ft);const d=this.parseChildren();e[u]=1===Object.keys(d).length?d[ft]:new dt([],d),this.consumeOptional("//")}return e}peekStartsWith(a){return this.remaining.startsWith(a)}consumeOptional(a){return!!this.peekStartsWith(a)&&(this.remaining=this.remaining.substring(a.length),!0)}capture(a){if(!this.consumeOptional(a))throw new h.vHH(4011,!1)}}function hu(r){return r.segments.length>0?new dt([],{[ft]:r}):r}function ta(r){const a={};for(const t of Object.keys(r.children)){const u=ta(r.children[t]);(u.segments.length>0||u.hasChildren())&&(a[t]=u)}return function pu(r){if(1===r.numberOfChildren&&r.children[ft]){const a=r.children[ft];return new dt(r.segments.concat(a.segments),a.children)}return r}(new dt(r.segments,a))}function Pr(r){return r instanceof Pa}function Uf(r,a,e,t,s){if(0===e.length)return Vo(a.root,a.root,a.root,t,s);const u=function Nf(r){if("string"==typeof r[0]&&1===r.length&&"/"===r[0])return new Bo(!0,0,r);let a=0,e=!1;const t=r.reduce((s,u,d)=>{if("object"==typeof u&&null!=u){if(u.outlets){const l={};return qt(u.outlets,(n,i)=>{l[i]="string"==typeof n?n.split("/"):n}),[...s,{outlets:l}]}if(u.segmentPath)return[...s,u.segmentPath]}return"string"!=typeof u?[...s,u]:0===d?(u.split("/").forEach((l,n)=>{0==n&&"."===l||(0==n&&""===l?e=!0:".."===l?a++:""!=l&&s.push(l))}),s):[...s,u]},[]);return new Bo(e,a,t)}(e);return u.toRoot()?Vo(a.root,a.root,new dt([],{}),t,s):function d(n){const i=function Oo(r,a,e,t){if(r.isAbsolute)return new Ba(a.root,!0,0);if(-1===t)return new Ba(e,e===a.root,0);return function zf(r,a,e){let t=r,s=a,u=e;for(;u>s;){if(u-=s,t=t.parent,!t)throw new h.vHH(4005,!1);s=t.segments.length}return new Ba(t,!1,s-u)}(e,t+(Io(r.commands[0])?0:1),r.numberOfDoubleDots)}(u,a,r.snapshot?._urlSegment,n),o=i.processChildren?$s(i.segmentGroup,i.index,u.commands):Ws(i.segmentGroup,i.index,u.commands);return Vo(a.root,i.segmentGroup,o,t,s)}(r.snapshot?._lastPathIndex)}function Io(r){return"object"==typeof r&&null!=r&&!r.outlets&&!r.segmentPath}function ko(r){return"object"==typeof r&&null!=r&&r.outlets}function Vo(r,a,e,t,s){let d,u={};t&&qt(t,(n,i)=>{u[i]=Array.isArray(n)?n.map(o=>`${o}`):`${n}`}),d=r===a?e:Gs(r,a,e);const l=hu(ta(d));return new Pa(l,u,s)}function Gs(r,a,e){const t={};return qt(r.children,(s,u)=>{t[u]=s===a?e:Gs(s,a,e)}),new dt(r.segments,t)}class Bo{constructor(a,e,t){if(this.isAbsolute=a,this.numberOfDoubleDots=e,this.commands=t,a&&t.length>0&&Io(t[0]))throw new h.vHH(4003,!1);const s=t.find(ko);if(s&&s!==If(t))throw new h.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Ba{constructor(a,e,t){this.segmentGroup=a,this.processChildren=e,this.index=t}}function Ws(r,a,e){if(r||(r=new dt([],{})),0===r.segments.length&&r.hasChildren())return $s(r,a,e);const t=function Wf(r,a,e){let t=0,s=a;const u={match:!1,pathIndex:0,commandIndex:0};for(;s=e.length)return u;const d=r.segments[s],l=e[t];if(ko(l))break;const n=`${l}`,i=t0&&void 0===n)break;if(n&&i&&"object"==typeof i&&void 0===i.outlets){if(!La(n,i,d))return u;t+=2}else{if(!La(n,{},d))return u;t++}s++}return{match:!0,pathIndex:s,commandIndex:t}}(r,a,e),s=e.slice(t.commandIndex);if(t.match&&t.pathIndex{"string"==typeof u&&(u=[u]),null!==u&&(s[d]=Ws(r.children[d],a,u))}),qt(r.children,(u,d)=>{void 0===t[d]&&(s[d]=u)}),new dt(r.segments,s)}}function Ys(r,a,e){const t=r.segments.slice(0,a);let s=0;for(;s{"string"==typeof e&&(e=[e]),null!==e&&(a[t]=Ys(new dt([],{}),0,e))}),a}function Oa(r){const a={};return qt(r,(e,t)=>a[t]=`${e}`),a}function La(r,a,e){return r==e.path&&Ln(a,e.parameters)}class or{constructor(a,e){this.id=a,this.url=e}}class Qs extends or{constructor(a,e,t="imperative",s=null){super(a,e),this.type=0,this.navigationTrigger=t,this.restoredState=s}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class mn extends or{constructor(a,e,t){super(a,e),this.urlAfterRedirects=t,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class mu extends or{constructor(a,e,t,s){super(a,e),this.reason=t,this.code=s,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class $f extends or{constructor(a,e,t,s){super(a,e),this.error=t,this.target=s,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Bt extends or{constructor(a,e,t,s){super(a,e),this.urlAfterRedirects=t,this.state=s,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Gx extends or{constructor(a,e,t,s){super(a,e),this.urlAfterRedirects=t,this.state=s,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Wx extends or{constructor(a,e,t,s,u){super(a,e),this.urlAfterRedirects=t,this.state=s,this.shouldActivate=u,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class $x extends or{constructor(a,e,t,s){super(a,e),this.urlAfterRedirects=t,this.state=s,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Yx extends or{constructor(a,e,t,s){super(a,e),this.urlAfterRedirects=t,this.state=s,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Qx{constructor(a){this.route=a,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Jx{constructor(a){this.route=a,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Kx{constructor(a){this.snapshot=a,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Js{constructor(a){this.snapshot=a,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Zx{constructor(a){this.snapshot=a,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Xx{constructor(a){this.snapshot=a,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class fi{constructor(a,e,t){this.routerEvent=a,this.position=e,this.anchor=t,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class jo{constructor(a){this._root=a}get root(){return this._root.value}parent(a){const e=this.pathFromRoot(a);return e.length>1?e[e.length-2]:null}children(a){const e=Yf(a,this._root);return e?e.children.map(t=>t.value):[]}firstChild(a){const e=Yf(a,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(a){const e=_u(a,this._root);return e.length<2?[]:e[e.length-2].children.map(s=>s.value).filter(s=>s!==a)}pathFromRoot(a){return _u(a,this._root).map(e=>e.value)}}function Yf(r,a){if(r===a.value)return a;for(const e of a.children){const t=Yf(r,e);if(t)return t}return null}function _u(r,a){if(r===a.value)return[a];for(const e of a.children){const t=_u(r,e);if(t.length)return t.unshift(a),t}return[]}class si{constructor(a,e){this.value=a,this.children=e}toString(){return`TreeNode(${this.value})`}}function tn(r){const a={};return r&&r.children.forEach(e=>a[e.value.outlet]=e),a}class bu extends jo{constructor(a,e){super(a),this.snapshot=e,Mc(this,a)}toString(){return this.snapshot.toString()}}function Ks(r,a){const e=function Zs(r,a){const d=new Cu([],{},{},"",{},ft,a,null,r.root,-1,{});return new cw("",new si(d,[]))}(r,a),t=new $t([new Rr("",{})]),s=new $t({}),u=new $t({}),d=new $t({}),l=new $t(""),n=new jn(t,s,d,l,u,ft,a,e.root);return n.snapshot=e.root,new bu(new si(n,[]),e)}class jn{constructor(a,e,t,s,u,d,l,n){this.url=a,this.params=e,this.queryParams=t,this.fragment=s,this.data=u,this.outlet=d,this.component=l,this._futureSnapshot=n}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,ct.U)(a=>Ra(a)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,ct.U)(a=>Ra(a)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Qf(r,a="emptyOnly"){const e=r.pathFromRoot;let t=0;if("always"!==a)for(t=e.length-1;t>=1;){const s=e[t],u=e[t-1];if(s.routeConfig&&""===s.routeConfig.path)t--;else{if(u.component)break;t--}}return function lw(r){return r.reduce((a,e)=>({params:{...a.params,...e.params},data:{...a.data,...e.data},resolve:{...e.data,...a.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(t))}class Cu{constructor(a,e,t,s,u,d,l,n,i,o,c,p){this.url=a,this.params=e,this.queryParams=t,this.fragment=s,this.data=u,this.outlet=d,this.component=l,this.routeConfig=n,this._urlSegment=i,this._lastPathIndex=o,this._correctedLastPathIndex=p??o,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Ra(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ra(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class cw extends jo{constructor(a,e){super(e),this.url=a,Mc(this,e)}toString(){return nn(this._root)}}function Mc(r,a){a.value._routerState=r,a.children.forEach(e=>Mc(r,e))}function nn(r){const a=r.children.length>0?` { ${r.children.map(nn).join(", ")} } `:"";return`${r.value}${a}`}function Xs(r){if(r.snapshot){const a=r.snapshot,e=r._futureSnapshot;r.snapshot=e,Ln(a.queryParams,e.queryParams)||r.queryParams.next(e.queryParams),a.fragment!==e.fragment&&r.fragment.next(e.fragment),Ln(a.params,e.params)||r.params.next(e.params),function Rf(r,a){if(r.length!==a.length)return!1;for(let e=0;eLn(e.parameters,a[t].parameters))}(r.url,a.url);return e&&!(!r.parent!=!a.parent)&&(!r.parent||ia(r.parent,a.parent))}function Fo(r,a,e){if(e&&r.shouldReuseRoute(a.value,e.value.snapshot)){const t=e.value;t._futureSnapshot=a.value;const s=function dw(r,a,e){return a.children.map(t=>{for(const s of e.children)if(r.shouldReuseRoute(t.value,s.value.snapshot))return Fo(r,t,s);return Fo(r,t)})}(r,a,e);return new si(t,s)}{if(r.shouldAttach(a.value)){const u=r.retrieve(a.value);if(null!==u){const d=u.route;return d.value._futureSnapshot=a.value,d.children=a.children.map(l=>Fo(r,l)),d}}const t=function uw(r){return new jn(new $t(r.url),new $t(r.params),new $t(r.queryParams),new $t(r.fragment),new $t(r.data),r.outlet,r.component,r)}(a.value),s=a.children.map(u=>Fo(r,u));return new si(t,s)}}const wu="ngNavigationCancelingError";function Jf(r,a){const{redirectTo:e,navigationBehaviorOptions:t}=Pr(a)?{redirectTo:a,navigationBehaviorOptions:void 0}:a,s=Kf(!1,0,a);return s.url=e,s.navigationBehaviorOptions=t,s}function Kf(r,a,e){const t=new Error("NavigationCancelingError: "+(r||""));return t[wu]=!0,t.cancellationCode=a,e&&(t.url=e),t}function Zf(r){return Dc(r)&&Pr(r.url)}function Dc(r){return r&&r[wu]}class Hc{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new Rc,this.attachRef=null}}let Rc=(()=>{class r{constructor(){this.contexts=new Map}onChildOutletCreated(e,t){const s=this.getOrCreateContext(e);s.outlet=t,this.contexts.set(e,s)}onChildOutletDestroyed(e){const t=this.getContext(e);t&&(t.outlet=null,t.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new Hc,this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const na=!1;let Uo=(()=>{class r{constructor(e,t,s,u,d){this.parentContexts=e,this.location=t,this.changeDetector=u,this.environmentInjector=d,this.activated=null,this._activatedRoute=null,this.activateEvents=new h.vpe,this.deactivateEvents=new h.vpe,this.attachEvents=new h.vpe,this.detachEvents=new h.vpe,this.name=s||ft,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.getContext(this.name)?.outlet===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new h.vHH(4012,na);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new h.vHH(4012,na);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new h.vHH(4012,na);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new h.vHH(4013,na);this._activatedRoute=e;const s=this.location,d=e._futureSnapshot.component,l=this.parentContexts.getOrCreateContext(this.name).children,n=new Pc(e,l,s.injector);if(t&&function hw(r){return!!r.resolveComponentFactory}(t)){const i=t.resolveComponentFactory(d);this.activated=s.createComponent(i,s.length,n)}else this.activated=s.createComponent(d,{index:s.length,injector:n,environmentInjector:t??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(Rc),h.Y36(h.s_b),h.$8M("name"),h.Y36(h.sBO),h.Y36(h.lqb))},r.\u0275dir=h.lG2({type:r,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),r})();class Pc{constructor(a,e,t){this.route=a,this.childContexts=e,this.parent=t}get(a,e){return a===jn?this.route:a===Rc?this.childContexts:this.parent.get(a,e)}}let Xf=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275cmp=h.Xpm({type:r,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&h._UZ(0,"router-outlet")},dependencies:[Uo],encapsulation:2}),r})();function em(r,a){return r.providers&&!r._injector&&(r._injector=(0,h.MMx)(r.providers,a,`Route: ${r.path}`)),r._injector??a}function ja(r){const a=r.children&&r.children.map(ja),e=a?{...r,children:a}:{...r};return!e.component&&!e.loadComponent&&(a||e.loadChildren)&&e.outlet&&e.outlet!==ft&&(e.component=Xf),e}function xn(r){return r.outlet||ft}function nm(r,a){const e=r.filter(t=>xn(t)===a);return e.push(...r.filter(t=>xn(t)!==a)),e}function rm(r){if(!r)return null;if(r.routeConfig?._injector)return r.routeConfig._injector;for(let a=r.parent;a;a=a.parent){const e=a.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class tl{constructor(a,e,t,s){this.routeReuseStrategy=a,this.futureState=e,this.currState=t,this.forwardEvent=s}activate(a){const e=this.futureState._root,t=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,t,a),Xs(this.futureState.root),this.activateChildRoutes(e,t,a)}deactivateChildRoutes(a,e,t){const s=tn(e);a.children.forEach(u=>{const d=u.value.outlet;this.deactivateRoutes(u,s[d],t),delete s[d]}),qt(s,(u,d)=>{this.deactivateRouteAndItsChildren(u,t)})}deactivateRoutes(a,e,t){const s=a.value,u=e?e.value:null;if(s===u)if(s.component){const d=t.getContext(s.outlet);d&&this.deactivateChildRoutes(a,e,d.children)}else this.deactivateChildRoutes(a,e,t);else u&&this.deactivateRouteAndItsChildren(e,t)}deactivateRouteAndItsChildren(a,e){a.value.component&&this.routeReuseStrategy.shouldDetach(a.value.snapshot)?this.detachAndStoreRouteSubtree(a,e):this.deactivateRouteAndOutlet(a,e)}detachAndStoreRouteSubtree(a,e){const t=e.getContext(a.value.outlet),s=t&&a.value.component?t.children:e,u=tn(a);for(const d of Object.keys(u))this.deactivateRouteAndItsChildren(u[d],s);if(t&&t.outlet){const d=t.outlet.detach(),l=t.children.onOutletDeactivated();this.routeReuseStrategy.store(a.value.snapshot,{componentRef:d,route:a,contexts:l})}}deactivateRouteAndOutlet(a,e){const t=e.getContext(a.value.outlet),s=t&&a.value.component?t.children:e,u=tn(a);for(const d of Object.keys(u))this.deactivateRouteAndItsChildren(u[d],s);t&&t.outlet&&(t.outlet.deactivate(),t.children.onOutletDeactivated(),t.attachRef=null,t.resolver=null,t.route=null)}activateChildRoutes(a,e,t){const s=tn(e);a.children.forEach(u=>{this.activateRoutes(u,s[u.value.outlet],t),this.forwardEvent(new Xx(u.value.snapshot))}),a.children.length&&this.forwardEvent(new Js(a.value.snapshot))}activateRoutes(a,e,t){const s=a.value,u=e?e.value:null;if(Xs(s),s===u)if(s.component){const d=t.getOrCreateContext(s.outlet);this.activateChildRoutes(a,e,d.children)}else this.activateChildRoutes(a,e,t);else if(s.component){const d=t.getOrCreateContext(s.outlet);if(this.routeReuseStrategy.shouldAttach(s.snapshot)){const l=this.routeReuseStrategy.retrieve(s.snapshot);this.routeReuseStrategy.store(s.snapshot,null),d.children.onOutletReAttached(l.contexts),d.attachRef=l.componentRef,d.route=l.route.value,d.outlet&&d.outlet.attach(l.componentRef,l.route.value),Xs(l.route.value),this.activateChildRoutes(a,null,d.children)}else{const l=rm(s.snapshot),n=l?.get(h._Vd)??null;d.attachRef=null,d.route=s,d.resolver=n,d.injector=l,d.outlet&&d.outlet.activateWith(s,d.injector),this.activateChildRoutes(a,null,d.children)}}else this.activateChildRoutes(a,null,t)}}class Au{constructor(a){this.path=a,this.route=this.path[this.path.length-1]}}class ra{constructor(a,e){this.component=a,this.route=e}}function fw(r,a,e){const t=r._root;return oa(t,a?a._root:null,e,[t.value])}function aa(r,a,e){return(rm(a)??e).get(r)}function oa(r,a,e,t,s={canDeactivateChecks:[],canActivateChecks:[]}){const u=tn(a);return r.children.forEach(d=>{(function om(r,a,e,t,s={canDeactivateChecks:[],canActivateChecks:[]}){const u=r.value,d=a?a.value:null,l=e?e.getContext(r.value.outlet):null;if(d&&u.routeConfig===d.routeConfig){const n=function mw(r,a,e){if("function"==typeof e)return e(r,a);switch(e){case"pathParamsChange":return!Ia(r.url,a.url);case"pathParamsOrQueryParamsChange":return!Ia(r.url,a.url)||!Ln(r.queryParams,a.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ia(r,a)||!Ln(r.queryParams,a.queryParams);default:return!ia(r,a)}}(d,u,u.routeConfig.runGuardsAndResolvers);n?s.canActivateChecks.push(new Au(t)):(u.data=d.data,u._resolvedData=d._resolvedData),oa(r,a,u.component?l?l.children:null:e,t,s),n&&l&&l.outlet&&l.outlet.isActivated&&s.canDeactivateChecks.push(new ra(l.outlet.component,d))}else d&&il(a,l,s),s.canActivateChecks.push(new Au(t)),oa(r,null,u.component?l?l.children:null:e,t,s)})(d,u[d.value.outlet],e,t.concat([d.value]),s),delete u[d.value.outlet]}),qt(u,(d,l)=>il(d,e.getContext(l),s)),s}function il(r,a,e){const t=tn(r),s=r.value;qt(t,(u,d)=>{il(u,s.component?a?a.children.getContext(d):null:a,e)}),e.canDeactivateChecks.push(new ra(s.component&&a&&a.outlet&&a.outlet.isActivated?a.outlet.component:null,s))}function sr(r){return"function"==typeof r}function xu(r){return r instanceof On.K||"EmptyError"===r?.name}const Fa=Symbol("INITIAL_VALUE");function Ua(){return(0,oi.w)(r=>(0,Vt.a)(r.map(a=>a.pipe((0,Dt.q)(1),Zi(Fa)))).pipe((0,ct.U)(a=>{for(const e of a)if(!0!==e){if(e===Fa)return Fa;if(!1===e||e instanceof Pa)return e}return!0}),(0,ge.h)(a=>a!==Fa),(0,Dt.q)(1)))}function Vc(r){return(0,Mo.z)((0,Rt.b)(a=>{if(Pr(a))throw Jf(0,a)}),(0,ct.U)(a=>!0===a))}const Tu={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function um(r,a,e,t,s){const u=hm(r,a,e);return u.matched?function No(r,a,e,t){const s=a.canMatch;if(!s||0===s.length)return(0,Me.of)(!0);const u=s.map(d=>{const l=r.get(d),n=function nS(r){return r&&sr(r.canMatch)}(l)?l.canMatch(a,e):l(a,e);return Tt(n)});return(0,Me.of)(u).pipe(Ua(),Vc())}(t=em(a,t),a,e).pipe((0,ct.U)(d=>!0===d?u:{...Tu})):(0,Me.of)(u)}function hm(r,a,e){if(""===a.path)return"full"===a.pathMatch&&(r.hasChildren()||e.length>0)?{...Tu}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const s=(a.matcher||Hf)(e,r,a);if(!s)return{...Tu};const u={};qt(s.posParams,(l,n)=>{u[n]=l.path});const d=s.consumed.length>0?{...u,...s.consumed[s.consumed.length-1].parameters}:u;return{matched:!0,consumedSegments:s.consumed,remainingSegments:e.slice(s.consumed.length),parameters:d,positionalParamSegments:s.posParams??{}}}function Na(r,a,e,t,s="corrected"){if(e.length>0&&function fm(r,a,e){return e.some(t=>lr(r,a,t)&&xn(t)!==ft)}(r,e,t)){const d=new dt(a,function pm(r,a,e,t){const s={};s[ft]=t,t._sourceSegment=r,t._segmentIndexShift=a.length;for(const u of e)if(""===u.path&&xn(u)!==ft){const d=new dt([],{});d._sourceSegment=r,d._segmentIndexShift=a.length,s[xn(u)]=d}return s}(r,a,t,new dt(e,r.children)));return d._sourceSegment=r,d._segmentIndexShift=a.length,{segmentGroup:d,slicedSegments:[]}}if(0===e.length&&function mm(r,a,e){return e.some(t=>lr(r,a,t))}(r,e,t)){const d=new dt(r.segments,function Eu(r,a,e,t,s,u){const d={};for(const l of t)if(lr(r,e,l)&&!s[xn(l)]){const n=new dt([],{});n._sourceSegment=r,n._segmentIndexShift="legacy"===u?r.segments.length:a.length,d[xn(l)]=n}return{...s,...d}}(r,a,e,t,r.children,s));return d._sourceSegment=r,d._segmentIndexShift=a.length,{segmentGroup:d,slicedSegments:e}}const u=new dt(r.segments,r.children);return u._sourceSegment=r,u._segmentIndexShift=a.length,{segmentGroup:u,slicedSegments:e}}function lr(r,a,e){return(!(r.hasChildren()||a.length>0)||"full"!==e.pathMatch)&&""===e.path}function gm(r,a,e,t){return!!(xn(r)===t||t!==ft&&lr(a,e,r))&&("**"===r.path||hm(a,r,e).matched)}function _m(r,a,e){return 0===a.length&&!r.children[e]}const Bc=!1;class Oc{constructor(a){this.segmentGroup=a||null}}class bm{constructor(a){this.urlTree=a}}function gn(r){return(0,Di._)(new Oc(r))}function qa(r){return(0,Di._)(new bm(r))}class xw{constructor(a,e,t,s,u){this.injector=a,this.configLoader=e,this.urlSerializer=t,this.urlTree=s,this.config=u,this.allowRedirects=!0}apply(){const a=Na(this.urlTree.root,[],[],this.config).segmentGroup,e=new dt(a.segments,a.children);return this.expandSegmentGroup(this.injector,this.config,e,ft).pipe((0,ct.U)(u=>this.createUrlTree(ta(u),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,Xi.K)(u=>{if(u instanceof bm)return this.allowRedirects=!1,this.match(u.urlTree);throw u instanceof Oc?this.noMatchError(u):u}))}match(a){return this.expandSegmentGroup(this.injector,this.config,a.root,ft).pipe((0,ct.U)(s=>this.createUrlTree(ta(s),a.queryParams,a.fragment))).pipe((0,Xi.K)(s=>{throw s instanceof Oc?this.noMatchError(s):s}))}noMatchError(a){return new h.vHH(4002,Bc)}createUrlTree(a,e,t){const s=hu(a);return new Pa(s,e,t)}expandSegmentGroup(a,e,t,s){return 0===t.segments.length&&t.hasChildren()?this.expandChildren(a,e,t).pipe((0,ct.U)(u=>new dt([],u))):this.expandSegment(a,t,e,t.segments,s,!0)}expandChildren(a,e,t){const s=[];for(const u of Object.keys(t.children))"primary"===u?s.unshift(u):s.push(u);return(0,$e.D)(s).pipe((0,Vn.b)(u=>{const d=t.children[u],l=nm(e,u);return this.expandSegmentGroup(a,l,d,u).pipe((0,ct.U)(n=>({segment:n,outlet:u})))}),rr((u,d)=>(u[d.outlet]=d.segment,u),{}),wc())}expandSegment(a,e,t,s,u,d){return(0,$e.D)(t).pipe((0,Vn.b)(l=>this.expandSegmentAgainstRoute(a,e,t,l,s,u,d).pipe((0,Xi.K)(i=>{if(i instanceof Oc)return(0,Me.of)(null);throw i}))),(0,ei.P)(l=>!!l),(0,Xi.K)((l,n)=>{if(xu(l))return _m(e,s,u)?(0,Me.of)(new dt([],{})):gn(e);throw l}))}expandSegmentAgainstRoute(a,e,t,s,u,d,l){return gm(s,e,u,d)?void 0===s.redirectTo?this.matchSegmentAgainstRoute(a,e,s,u,d):l&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(a,e,t,s,u,d):gn(e):gn(e)}expandSegmentAgainstRouteUsingRedirect(a,e,t,s,u,d){return"**"===s.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(a,t,s,d):this.expandRegularSegmentAgainstRouteUsingRedirect(a,e,t,s,u,d)}expandWildCardWithParamsAgainstRouteUsingRedirect(a,e,t,s){const u=this.applyRedirectCommands([],t.redirectTo,{});return t.redirectTo.startsWith("/")?qa(u):this.lineralizeSegments(t,u).pipe((0,Hi.z)(d=>{const l=new dt(d,{});return this.expandSegment(a,l,e,d,s,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(a,e,t,s,u,d){const{matched:l,consumedSegments:n,remainingSegments:i,positionalParamSegments:o}=hm(e,s,u);if(!l)return gn(e);const c=this.applyRedirectCommands(n,s.redirectTo,o);return s.redirectTo.startsWith("/")?qa(c):this.lineralizeSegments(s,c).pipe((0,Hi.z)(p=>this.expandSegment(a,e,t,p.concat(i),d,!1)))}matchSegmentAgainstRoute(a,e,t,s,u){return"**"===t.path?(a=em(t,a),t.loadChildren?(t._loadedRoutes?(0,Me.of)({routes:t._loadedRoutes,injector:t._loadedInjector}):this.configLoader.loadChildren(a,t)).pipe((0,ct.U)(l=>(t._loadedRoutes=l.routes,t._loadedInjector=l.injector,new dt(s,{})))):(0,Me.of)(new dt(s,{}))):um(e,t,s,a).pipe((0,oi.w)(({matched:d,consumedSegments:l,remainingSegments:n})=>d?this.getChildConfig(a=t._injector??a,t,s).pipe((0,Hi.z)(o=>{const c=o.injector??a,p=o.routes,{segmentGroup:m,slicedSegments:g}=Na(e,l,n,p),f=new dt(m.segments,m.children);if(0===g.length&&f.hasChildren())return this.expandChildren(c,p,f).pipe((0,ct.U)(Se=>new dt(l,Se)));if(0===p.length&&0===g.length)return(0,Me.of)(new dt(l,{}));const w=xn(t)===u;return this.expandSegment(c,f,p,g,w?ft:u,!0).pipe((0,ct.U)(J=>new dt(l.concat(J.segments),J.children)))})):gn(e)))}getChildConfig(a,e,t){return e.children?(0,Me.of)({routes:e.children,injector:a}):e.loadChildren?void 0!==e._loadedRoutes?(0,Me.of)({routes:e._loadedRoutes,injector:e._loadedInjector}):function kc(r,a,e,t){const s=a.canLoad;if(void 0===s||0===s.length)return(0,Me.of)(!0);const u=s.map(d=>{const l=r.get(d),n=function gw(r){return r&&sr(r.canLoad)}(l)?l.canLoad(a,e):l(a,e);return Tt(n)});return(0,Me.of)(u).pipe(Ua(),Vc())}(a,e,t).pipe((0,Hi.z)(s=>s?this.configLoader.loadChildren(a,e).pipe((0,Rt.b)(u=>{e._loadedRoutes=u.routes,e._loadedInjector=u.injector})):function vw(r){return(0,Di._)(Kf(Bc,3))}())):(0,Me.of)({routes:[],injector:a})}lineralizeSegments(a,e){let t=[],s=e.root;for(;;){if(t=t.concat(s.segments),0===s.numberOfChildren)return(0,Me.of)(t);if(s.numberOfChildren>1||!s.children[ft])return(0,Di._)(new h.vHH(4e3,Bc));s=s.children[ft]}}applyRedirectCommands(a,e,t){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),a,t)}applyRedirectCreateUrlTree(a,e,t,s){const u=this.createSegmentGroup(a,e.root,t,s);return new Pa(u,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(a,e){const t={};return qt(a,(s,u)=>{if("string"==typeof s&&s.startsWith(":")){const l=s.substring(1);t[u]=e[l]}else t[u]=s}),t}createSegmentGroup(a,e,t,s){const u=this.createSegments(a,e.segments,t,s);let d={};return qt(e.children,(l,n)=>{d[n]=this.createSegmentGroup(a,l,t,s)}),new dt(u,d)}createSegments(a,e,t,s){return e.map(u=>u.path.startsWith(":")?this.findPosParam(a,u,s):this.findOrReturn(u,t))}findPosParam(a,e,t){const s=t[e.path.substring(1)];if(!s)throw new h.vHH(4001,Bc);return s}findOrReturn(a,e){let t=0;for(const s of e){if(s.path===a.path)return e.splice(t),s;t++}return a}}class Cm{}class Mw{constructor(a,e,t,s,u,d,l,n){this.injector=a,this.rootComponentType=e,this.config=t,this.urlTree=s,this.url=u,this.paramsInheritanceStrategy=d,this.relativeLinkResolution=l,this.urlSerializer=n}recognize(){const a=Na(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,a,ft).pipe((0,ct.U)(e=>{if(null===e)return null;const t=new Cu([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},ft,this.rootComponentType,null,this.urlTree.root,-1,{}),s=new si(t,e),u=new cw(this.url,s);return this.inheritParamsAndData(u._root),u}))}inheritParamsAndData(a){const e=a.value,t=Qf(e,this.paramsInheritanceStrategy);e.params=Object.freeze(t.params),e.data=Object.freeze(t.data),a.children.forEach(s=>this.inheritParamsAndData(s))}processSegmentGroup(a,e,t,s){return 0===t.segments.length&&t.hasChildren()?this.processChildren(a,e,t):this.processSegment(a,e,t,t.segments,s)}processChildren(a,e,t){return(0,$e.D)(Object.keys(t.children)).pipe((0,Vn.b)(s=>{const u=t.children[s],d=nm(e,s);return this.processSegmentGroup(a,d,u,s)}),rr((s,u)=>s&&u?(s.push(...u),s):null),function ou(r,a=!1){return(0,fn.e)((e,t)=>{let s=0;e.subscribe((0,Xe.x)(t,u=>{const d=r(u,s++);(d||a)&&t.next(u),!d&&t.complete()}))})}(s=>null!==s),(0,au.d)(null),wc(),(0,ct.U)(s=>{if(null===s)return null;const u=qo(s);return function Dw(r){r.sort((a,e)=>a.value.outlet===ft?-1:e.value.outlet===ft?1:a.value.outlet.localeCompare(e.value.outlet))}(u),u}))}processSegment(a,e,t,s,u){return(0,$e.D)(e).pipe((0,Vn.b)(d=>this.processSegmentAgainstRoute(d._injector??a,d,t,s,u)),(0,ei.P)(d=>!!d),(0,Xi.K)(d=>{if(xu(d))return _m(t,s,u)?(0,Me.of)([]):(0,Me.of)(null);throw d}))}processSegmentAgainstRoute(a,e,t,s,u){if(e.redirectTo||!gm(e,t,s,u))return(0,Me.of)(null);let d;if("**"===e.path){const l=s.length>0?If(s).parameters:{},n=zo(t)+s.length,i=new Cu(s,l,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Du(e),xn(e),e.component??e._loadedComponent??null,e,Fn(t),n,Hu(e),n);d=(0,Me.of)({snapshot:i,consumedSegments:[],remainingSegments:[]})}else d=um(t,e,s,a).pipe((0,ct.U)(({matched:l,consumedSegments:n,remainingSegments:i,parameters:o})=>{if(!l)return null;const c=zo(t)+n.length;return{snapshot:new Cu(n,o,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Du(e),xn(e),e.component??e._loadedComponent??null,e,Fn(t),c,Hu(e),c),consumedSegments:n,remainingSegments:i}}));return d.pipe((0,oi.w)(l=>{if(null===l)return(0,Me.of)(null);const{snapshot:n,consumedSegments:i,remainingSegments:o}=l;a=e._injector??a;const c=e._loadedInjector??a,p=function sS(r){return r.children?r.children:r.loadChildren?r._loadedRoutes:[]}(e),{segmentGroup:m,slicedSegments:g}=Na(t,i,o,p.filter(w=>void 0===w.redirectTo),this.relativeLinkResolution);if(0===g.length&&m.hasChildren())return this.processChildren(c,p,m).pipe((0,ct.U)(w=>null===w?null:[new si(n,w)]));if(0===p.length&&0===g.length)return(0,Me.of)([new si(n,[])]);const f=xn(e)===u;return this.processSegment(c,p,m,g,f?ft:u).pipe((0,ct.U)(w=>null===w?null:[new si(n,w)]))}))}}function Hw(r){const a=r.value.routeConfig;return a&&""===a.path&&void 0===a.redirectTo}function qo(r){const a=[],e=new Set;for(const t of r){if(!Hw(t)){a.push(t);continue}const s=a.find(u=>t.value.routeConfig===u.value.routeConfig);void 0!==s?(s.children.push(...t.children),e.add(s)):a.push(t)}for(const t of e){const s=qo(t.children);a.push(new si(t.value,s))}return a.filter(t=>!e.has(t))}function Fn(r){let a=r;for(;a._sourceSegment;)a=a._sourceSegment;return a}function zo(r){let a=r,e=a._segmentIndexShift??0;for(;a._sourceSegment;)a=a._sourceSegment,e+=a._segmentIndexShift??0;return e-1}function Du(r){return r.data||{}}function Hu(r){return r.resolve||{}}const ym=Symbol("RouteTitle");function Rw(r){return"string"==typeof r.title||null===r.title}function jc(r){return(0,oi.w)(a=>{const e=r(a);return e?(0,$e.D)(e).pipe((0,ct.U)(()=>a)):(0,Me.of)(a)})}let vm=(()=>{class r{buildTitle(e){let t,s=e.root;for(;void 0!==s;)t=this.getResolvedTitleForRoute(s)??t,s=s.children.find(u=>u.outlet===ft);return t}getResolvedTitleForRoute(e){return e.data[ym]}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=h.Yz7({token:r,factory:function(){return(0,h.f3M)(Am)},providedIn:"root"}),r})(),Am=(()=>{class r extends vm{constructor(e){super(),this.title=e}updateTitle(e){const t=this.buildTitle(e);void 0!==t&&this.title.setTitle(t)}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(X))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();class Pw{}class xm extends class Iw{shouldDetach(a){return!1}store(a,e){}shouldAttach(a){return!1}retrieve(a){return null}shouldReuseRoute(a,e){return a.routeConfig===e.routeConfig}}{}const Uc=new h.OlP("",{providedIn:"root",factory:()=>({})}),ku=new h.OlP("ROUTES");let Qt=(()=>{class r{constructor(e,t){this.injector=e,this.compiler=t,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return(0,Me.of)(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const t=Tt(e.loadComponent()).pipe((0,Rt.b)(u=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=u}),Ha(()=>{this.componentLoaders.delete(e)})),s=new Tf(t,()=>new He.x).pipe(Sf());return this.componentLoaders.set(e,s),s}loadChildren(e,t){if(this.childrenLoaders.get(t))return this.childrenLoaders.get(t);if(t._loadedRoutes)return(0,Me.of)({routes:t._loadedRoutes,injector:t._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(t);const u=this.loadModuleFactoryOrRoutes(t.loadChildren).pipe((0,ct.U)(l=>{this.onLoadEndListener&&this.onLoadEndListener(t);let n,i,o=!1;Array.isArray(l)?i=l:(n=l.create(e).injector,i=Pf(n.get(ku,[],h.XFs.Self|h.XFs.Optional)));return{routes:i.map(ja),injector:n}}),Ha(()=>{this.childrenLoaders.delete(t)})),d=new Tf(u,()=>new He.x).pipe(Sf());return this.childrenLoaders.set(t,d),d}loadModuleFactoryOrRoutes(e){return Tt(e()).pipe((0,Hi.z)(t=>t instanceof h.YKP||Array.isArray(t)?(0,Me.of)(t):(0,$e.D)(this.compiler.compileModuleAsync(t))))}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(h.zs3),h.LFG(h.Sil))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();class Sm{}class kw{shouldProcessUrl(a){return!0}extract(a){return a}merge(a,e){return a}}function Tm(r){throw r}function Vw(r,a,e){return a.parse("/")}const Bw={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Ow={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function Em(){const r=(0,h.f3M)(Tc),a=(0,h.f3M)(Rc),e=(0,h.f3M)(M.Ye),t=(0,h.f3M)(h.zs3),s=(0,h.f3M)(h.Sil),u=(0,h.f3M)(ku,{optional:!0})??[],d=(0,h.f3M)(Uc,{optional:!0})??{},l=(0,h.f3M)(Am),n=(0,h.f3M)(vm,{optional:!0}),i=(0,h.f3M)(Sm,{optional:!0}),o=(0,h.f3M)(Pw,{optional:!0}),c=new yi(null,r,a,e,t,s,Pf(u));return i&&(c.urlHandlingStrategy=i),o&&(c.routeReuseStrategy=o),c.titleStrategy=n??l,function Lw(r,a){r.errorHandler&&(a.errorHandler=r.errorHandler),r.malformedUriErrorHandler&&(a.malformedUriErrorHandler=r.malformedUriErrorHandler),r.onSameUrlNavigation&&(a.onSameUrlNavigation=r.onSameUrlNavigation),r.paramsInheritanceStrategy&&(a.paramsInheritanceStrategy=r.paramsInheritanceStrategy),r.relativeLinkResolution&&(a.relativeLinkResolution=r.relativeLinkResolution),r.urlUpdateStrategy&&(a.urlUpdateStrategy=r.urlUpdateStrategy),r.canceledNavigationResolution&&(a.canceledNavigationResolution=r.canceledNavigationResolution)}(d,c),c}let yi=(()=>{class r{constructor(e,t,s,u,d,l,n){this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=s,this.location=u,this.config=n,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new He.x,this.errorHandler=Tm,this.malformedUriErrorHandler=Vw,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>(0,Me.of)(void 0),this.urlHandlingStrategy=new kw,this.routeReuseStrategy=new xm,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=d.get(Qt),this.configLoader.onLoadEndListener=p=>this.triggerEvent(new Jx(p)),this.configLoader.onLoadStartListener=p=>this.triggerEvent(new Qx(p)),this.ngModule=d.get(h.h0i),this.console=d.get(h.c2e);const c=d.get(h.R0b);this.isNgZoneEnabled=c instanceof h.R0b&&h.R0b.isInAngularZone(),this.resetConfig(n),this.currentUrlTree=function tw(){return new Pa(new dt([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=Ks(this.currentUrlTree,this.rootComponentType),this.transitions=new $t({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){return this.location.getState()?.\u0275routerPageId}setupNavigations(e){const t=this.events;return e.pipe((0,ge.h)(s=>0!==s.id),(0,ct.U)(s=>({...s,extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),(0,oi.w)(s=>{let u=!1,d=!1;return(0,Me.of)(s).pipe((0,Rt.b)(l=>{this.currentNavigation={id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,oi.w)(l=>{const n=this.browserUrlTree.toString(),i=!this.navigated||l.extractedUrl.toString()!==n||n!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||i)&&this.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return Wo(l.source)&&(this.browserUrlTree=l.extractedUrl),(0,Me.of)(l).pipe((0,oi.w)(c=>{const p=this.transitions.getValue();return t.next(new Qs(c.id,this.serializeUrl(c.extractedUrl),c.source,c.restoredState)),p!==this.transitions.getValue()?Oi.E:Promise.resolve(c)}),function Sw(r,a,e,t){return(0,oi.w)(s=>function Aw(r,a,e,t,s){return new xw(r,a,e,t,s).apply()}(r,a,e,s.extractedUrl,t).pipe((0,ct.U)(u=>({...s,urlAfterRedirects:u}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,Rt.b)(c=>{this.currentNavigation={...this.currentNavigation,finalUrl:c.urlAfterRedirects},s.urlAfterRedirects=c.urlAfterRedirects}),function lS(r,a,e,t,s,u){return(0,Hi.z)(d=>function Ew(r,a,e,t,s,u,d="emptyOnly",l="legacy"){return new Mw(r,a,e,t,s,d,l,u).recognize().pipe((0,oi.w)(n=>null===n?function Tw(r){return new ai.y(a=>a.error(r))}(new Cm):(0,Me.of)(n)))}(r,a,e,d.urlAfterRedirects,t.serialize(d.urlAfterRedirects),t,s,u).pipe((0,ct.U)(l=>({...d,targetSnapshot:l}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,Rt.b)(c=>{if(s.targetSnapshot=c.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!c.extras.skipLocationChange){const m=this.urlHandlingStrategy.merge(c.urlAfterRedirects,c.rawUrl);this.setBrowserUrl(m,c)}this.browserUrlTree=c.urlAfterRedirects}const p=new Bt(c.id,this.serializeUrl(c.extractedUrl),this.serializeUrl(c.urlAfterRedirects),c.targetSnapshot);t.next(p)}));if(i&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:p,extractedUrl:m,source:g,restoredState:f,extras:w}=l,R=new Qs(p,this.serializeUrl(m),g,f);t.next(R);const J=Ks(m,this.rootComponentType).snapshot;return s={...l,targetSnapshot:J,urlAfterRedirects:m,extras:{...w,skipLocationChange:!1,replaceUrl:!1}},(0,Me.of)(s)}return this.rawUrlTree=l.rawUrl,l.resolve(null),Oi.E}),(0,Rt.b)(l=>{const n=new Gx(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(n)}),(0,ct.U)(l=>s={...l,guards:fw(l.targetSnapshot,l.currentSnapshot,this.rootContexts)}),function Cw(r,a){return(0,Hi.z)(e=>{const{targetSnapshot:t,currentSnapshot:s,guards:{canActivateChecks:u,canDeactivateChecks:d}}=e;return 0===d.length&&0===u.length?(0,Me.of)({...e,guardsResult:!0}):function lm(r,a,e,t){return(0,$e.D)(r).pipe((0,Hi.z)(s=>function dm(r,a,e,t,s){const u=a&&a.routeConfig?a.routeConfig.canDeactivate:null;if(!u||0===u.length)return(0,Me.of)(!0);const d=u.map(l=>{const n=aa(l,a,s);return Tt(function _w(r){return r&&sr(r.canDeactivate)}(n)?n.canDeactivate(r,a,e,t):n(r,a,e,t)).pipe((0,ei.P)())});return(0,Me.of)(d).pipe(Ua())}(s.component,s.route,e,a,t)),(0,ei.P)(s=>!0!==s,!0))}(d,t,s,r).pipe((0,Hi.z)(l=>l&&function nl(r){return"boolean"==typeof r}(l)?function aS(r,a,e,t){return(0,$e.D)(a).pipe((0,Vn.b)(s=>(0,Qi.z)(function oS(r,a){return null!==r&&a&&a(new Kx(r)),(0,Me.of)(!0)}(s.route.parent,t),function cm(r,a){return null!==r&&a&&a(new Zx(r)),(0,Me.of)(!0)}(s.route,t),function ww(r,a,e){const t=a[a.length-1],u=a.slice(0,a.length-1).reverse().map(d=>function am(r){const a=r.routeConfig?r.routeConfig.canActivateChild:null;return a&&0!==a.length?{node:r,guards:a}:null}(d)).filter(d=>null!==d).map(d=>Gt(()=>{const l=d.guards.map(n=>{const i=aa(n,d.node,e);return Tt(function sm(r){return r&&sr(r.canActivateChild)}(i)?i.canActivateChild(t,r):i(t,r)).pipe((0,ei.P)())});return(0,Me.of)(l).pipe(Ua())}));return(0,Me.of)(u).pipe(Ua())}(r,s.path,e),function Su(r,a,e){const t=a.routeConfig?a.routeConfig.canActivate:null;if(!t||0===t.length)return(0,Me.of)(!0);const s=t.map(u=>Gt(()=>{const d=aa(u,a,e);return Tt(function iS(r){return r&&sr(r.canActivate)}(d)?d.canActivate(a,r):d(a,r)).pipe((0,ei.P)())}));return(0,Me.of)(s).pipe(Ua())}(r,s.route,e))),(0,ei.P)(s=>!0!==s,!0))}(t,u,r,a):(0,Me.of)(l)),(0,ct.U)(l=>({...e,guardsResult:l})))})}(this.ngModule.injector,l=>this.triggerEvent(l)),(0,Rt.b)(l=>{if(s.guardsResult=l.guardsResult,Pr(l.guardsResult))throw Jf(0,l.guardsResult);const n=new Wx(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.triggerEvent(n)}),(0,ge.h)(l=>!!l.guardsResult||(this.restoreHistory(l),this.cancelNavigationTransition(l,"",3),!1)),jc(l=>{if(l.guards.canActivateChecks.length)return(0,Me.of)(l).pipe((0,Rt.b)(n=>{const i=new $x(n.id,this.serializeUrl(n.extractedUrl),this.serializeUrl(n.urlAfterRedirects),n.targetSnapshot);this.triggerEvent(i)}),(0,oi.w)(n=>{let i=!1;return(0,Me.of)(n).pipe(function cS(r,a){return(0,Hi.z)(e=>{const{targetSnapshot:t,guards:{canActivateChecks:s}}=e;if(!s.length)return(0,Me.of)(e);let u=0;return(0,$e.D)(s).pipe((0,Vn.b)(d=>function Ru(r,a,e,t){const s=r.routeConfig,u=r._resolve;return void 0!==s?.title&&!Rw(s)&&(u[ym]=s.title),function Pu(r,a,e,t){const s=function Iu(r){return[...Object.keys(r),...Object.getOwnPropertySymbols(r)]}(r);if(0===s.length)return(0,Me.of)({});const u={};return(0,$e.D)(s).pipe((0,Hi.z)(d=>function dS(r,a,e,t){const s=aa(r,a,t);return Tt(s.resolve?s.resolve(a,e):s(a,e))}(r[d],a,e,t).pipe((0,ei.P)(),(0,Rt.b)(l=>{u[d]=l}))),ru(1),(0,Df.h)(u),(0,Xi.K)(d=>xu(d)?Oi.E:(0,Di._)(d)))}(u,r,a,t).pipe((0,ct.U)(d=>(r._resolvedData=d,r.data=Qf(r,e).resolve,s&&Rw(s)&&(r.data[ym]=s.title),null)))}(d.route,t,r,a)),(0,Rt.b)(()=>u++),ru(1),(0,Hi.z)(d=>u===s.length?(0,Me.of)(e):Oi.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,Rt.b)({next:()=>i=!0,complete:()=>{i||(this.restoreHistory(n),this.cancelNavigationTransition(n,"",2))}}))}),(0,Rt.b)(n=>{const i=new Yx(n.id,this.serializeUrl(n.extractedUrl),this.serializeUrl(n.urlAfterRedirects),n.targetSnapshot);this.triggerEvent(i)}))}),jc(l=>{const n=i=>{const o=[];i.routeConfig?.loadComponent&&!i.routeConfig._loadedComponent&&o.push(this.configLoader.loadComponent(i.routeConfig).pipe((0,Rt.b)(c=>{i.component=c}),(0,ct.U)(()=>{})));for(const c of i.children)o.push(...n(c));return o};return(0,Vt.a)(n(l.targetSnapshot.root)).pipe((0,au.d)(),(0,Dt.q)(1))}),jc(()=>this.afterPreactivation()),(0,ct.U)(l=>{const n=function eS(r,a,e){const t=Fo(r,a._root,e?e._root:void 0);return new bu(t,a)}(this.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return s={...l,targetRouterState:n}}),(0,Rt.b)(l=>{this.currentUrlTree=l.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(l.urlAfterRedirects,l.rawUrl),this.routerState=l.targetRouterState,"deferred"===this.urlUpdateStrategy&&(l.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,l),this.browserUrlTree=l.urlAfterRedirects)}),((r,a,e)=>(0,ct.U)(t=>(new tl(a,t.targetRouterState,t.currentRouterState,e).activate(r),t)))(this.rootContexts,this.routeReuseStrategy,l=>this.triggerEvent(l)),(0,Rt.b)({next(){u=!0},complete(){u=!0}}),Ha(()=>{u||d||this.cancelNavigationTransition(s,"",1),this.currentNavigation?.id===s.id&&(this.currentNavigation=null)}),(0,Xi.K)(l=>{if(d=!0,Dc(l)){Zf(l)||(this.navigated=!0,this.restoreHistory(s,!0));const n=new mu(s.id,this.serializeUrl(s.extractedUrl),l.message,l.cancellationCode);if(t.next(n),Zf(l)){const i=this.urlHandlingStrategy.merge(l.url,this.rawUrlTree),o={skipLocationChange:s.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Wo(s.source)};this.scheduleNavigation(i,"imperative",null,o,{resolve:s.resolve,reject:s.reject,promise:s.promise})}else s.resolve(!1)}else{this.restoreHistory(s,!0);const n=new $f(s.id,this.serializeUrl(s.extractedUrl),l,s.targetSnapshot??void 0);t.next(n);try{s.resolve(this.errorHandler(l))}catch(i){s.reject(i)}}return Oi.E}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next({...this.transitions.value,...e})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const t="popstate"===e.type?"popstate":"hashchange";"popstate"===t&&setTimeout(()=>{const s={replaceUrl:!0},u=e.state?.navigationId?e.state:null;if(u){const l={...u};delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(s.state=l)}const d=this.parseUrl(e.url);this.scheduleNavigation(d,t,u,s)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){this.config=e.map(ja),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,t={}){const{relativeTo:s,queryParams:u,fragment:d,queryParamsHandling:l,preserveFragment:n}=t,i=s||this.routerState.root,o=n?this.currentUrlTree.fragment:d;let c=null;switch(l){case"merge":c={...this.currentUrlTree.queryParams,...u};break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=u||null}return null!==c&&(c=this.removeEmptyProps(c)),Uf(i,this.currentUrlTree,e,c,o??null)}navigateByUrl(e,t={skipLocationChange:!1}){const s=Pr(e)?e:this.parseUrl(e),u=this.urlHandlingStrategy.merge(s,this.rawUrlTree);return this.scheduleNavigation(u,"imperative",null,t)}navigate(e,t={skipLocationChange:!1}){return function uS(r){for(let a=0;a{const u=e[s];return null!=u&&(t[s]=u),t},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new mn(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.titleStrategy?.updateTitle(this.routerState.snapshot),e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,t,s,u,d){if(this.disposed)return Promise.resolve(!1);let l,n,i;d?(l=d.resolve,n=d.reject,i=d.promise):i=new Promise((p,m)=>{l=p,n=m});const o=++this.navigationId;let c;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(s=this.location.getState()),c=s&&s.\u0275routerPageId?s.\u0275routerPageId:u.replaceUrl||u.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):c=0,this.setTransition({id:o,targetPageId:c,source:t,restoredState:s,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:u,resolve:l,reject:n,promise:i,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),i.catch(p=>Promise.reject(p))}setBrowserUrl(e,t){const s=this.urlSerializer.serialize(e),u={...t.extras.state,...this.generateNgRouterState(t.id,t.targetPageId)};this.location.isCurrentPathEqualTo(s)||t.extras.replaceUrl?this.location.replaceState(s,"",u):this.location.go(s,"",u)}restoreHistory(e,t=!1){if("computed"===this.canceledNavigationResolution){const s=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.currentNavigation?.finalUrl||0===s?this.currentUrlTree===this.currentNavigation?.finalUrl&&0===s&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(s)}else"replace"===this.canceledNavigationResolution&&(t&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,t,s){const u=new mu(e.id,this.serializeUrl(e.extractedUrl),t,s);this.triggerEvent(u),e.resolve(!1)}generateNgRouterState(e,t){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:t}:{navigationId:e}}}return r.\u0275fac=function(e){h.$Z()},r.\u0275prov=h.Yz7({token:r,factory:function(){return Em()},providedIn:"root"}),r})();function Wo(r){return"imperative"!==r}let $o=(()=>{class r{constructor(e,t,s,u,d){this.router=e,this.route=t,this.tabIndexAttribute=s,this.renderer=u,this.el=d,this.commands=null,this.onChanges=new He.x,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(e){if(null!=this.tabIndexAttribute)return;const t=this.renderer,s=this.el.nativeElement;null!==e?t.setAttribute(s,"tabindex",e):t.removeAttribute(s,"tabindex")}ngOnChanges(e){this.onChanges.next(this)}set routerLink(e){null!=e?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const e={skipLocationChange:(0,h.D6c)(this.skipLocationChange),replaceUrl:(0,h.D6c)(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,e),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:(0,h.D6c)(this.preserveFragment)})}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(yi),h.Y36(jn),h.$8M("tabindex"),h.Y36(h.Qsj),h.Y36(h.SBq))},r.\u0275dir=h.lG2({type:r,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(e,t){1&e&&h.NdJ("click",function(){return t.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[h.TTD]}),r})(),rl=(()=>{class r{constructor(e,t,s){this.router=e,this.route=t,this.locationStrategy=s,this.commands=null,this.href=null,this.onChanges=new He.x,this.subscription=e.events.subscribe(u=>{u instanceof mn&&this.updateTargetUrlAndHref()})}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:null}ngOnChanges(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(e,t,s,u,d){if(0!==e||t||s||u||d||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const l={skipLocationChange:(0,h.D6c)(this.skipLocationChange),replaceUrl:(0,h.D6c)(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,l),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:(0,h.D6c)(this.preserveFragment)})}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(yi),h.Y36(jn),h.Y36(M.S$))},r.\u0275dir=h.lG2({type:r,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,t){1&e&&h.NdJ("click",function(u){return t.onClick(u.button,u.ctrlKey,u.shiftKey,u.altKey,u.metaKey)}),2&e&&h.uIk("target",t.target)("href",t.href,h.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[h.TTD]}),r})();class Hm{}let Rm=(()=>{class r{preload(e,t){return(0,Me.of)(null)}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),qc=(()=>{class r{constructor(e,t,s,u,d){this.router=e,this.injector=s,this.preloadingStrategy=u,this.loader=d}setUpPreloading(){this.subscription=this.router.events.pipe((0,ge.h)(e=>e instanceof mn),(0,Vn.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,t){const s=[];for(const u of t){u.providers&&!u._injector&&(u._injector=(0,h.MMx)(u.providers,e,`Route: ${u.path}`));const d=u._injector??e,l=u._loadedInjector??d;u.loadChildren&&!u._loadedRoutes&&void 0===u.canLoad||u.loadComponent&&!u._loadedComponent?s.push(this.preloadConfig(d,u)):(u.children||u._loadedRoutes)&&s.push(this.processRoutes(l,u.children??u._loadedRoutes))}return(0,$e.D)(s).pipe((0,yc.J)())}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>{let s;s=t.loadChildren&&void 0===t.canLoad?this.loader.loadChildren(e,t):(0,Me.of)(null);const u=s.pipe((0,Hi.z)(d=>null===d?(0,Me.of)(void 0):(t._loadedRoutes=d.routes,t._loadedInjector=d.injector,this.processRoutes(d.injector??e,d.routes))));if(t.loadComponent&&!t._loadedComponent){const d=this.loader.loadComponent(t);return(0,$e.D)([u,d]).pipe((0,yc.J)())}return u})}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(yi),h.LFG(h.Sil),h.LFG(h.lqb),h.LFG(Hm),h.LFG(Qt))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac}),r})();const Fw=new h.OlP("");let Uw=(()=>{class r{constructor(e,t,s={}){this.router=e,this.viewportScroller=t,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration=s.scrollPositionRestoration||"disabled",s.anchorScrolling=s.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(e=>{e instanceof Qs?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof mn&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof fi&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,t){this.router.triggerEvent(new fi(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return r.\u0275fac=function(e){h.$Z()},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac}),r})();const Vu=new h.OlP("ROUTER_FORROOT_GUARD"),sa=new h.OlP(""),qw=[M.Ye,{provide:Tc,useClass:lu},{provide:yi,useFactory:Em},Rc,{provide:jn,useFactory:function Bu(r){return r.routerState.root},deps:[yi]},Qt];function zc(){return new h.PXZ("Router",yi)}let Gc=(()=>{class r{constructor(e){}static forRoot(e,t){return{ngModule:r,providers:[qw,[],$c(e),{provide:Vu,useFactory:Pm,deps:[[yi,new h.FiY,new h.tp0]]},{provide:Uc,useValue:t||{}},t?.useHash?{provide:M.S$,useClass:M.Do}:{provide:M.S$,useClass:M.b0},{provide:Fw,useFactory:()=>{const r=(0,h.f3M)(yi),a=(0,h.f3M)(M.EM),e=(0,h.f3M)(Uc);return e.scrollOffset&&a.setOffset(e.scrollOffset),new Uw(r,a,e)}},t?.preloadingStrategy?$w(t.preloadingStrategy):[],{provide:h.PXZ,multi:!0,useFactory:zc},t?.initialNavigation?km(t):[],[{provide:Im,useFactory:zw},{provide:h.tb,multi:!0,useExisting:Im}]]}}static forChild(e){return{ngModule:r,providers:[$c(e)]}}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(Vu,8))},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({}),r})();function Pm(r){return"guarded"}function $c(r){return[{provide:ku,multi:!0,useValue:r}]}function zw(){const r=(0,h.f3M)(h.zs3);return a=>{const e=r.get(h.z2F);if(a!==e.components[0])return;const t=r.get(yi),s=r.get(Vm);1===r.get(Lu)&&t.initialNavigation(),r.get(sa,null,h.XFs.Optional)?.setUpPreloading(),r.get(Fw,null,h.XFs.Optional)?.init(),t.resetRootComponentType(e.componentTypes[0]),s.next(),s.complete()}}const Im=new h.OlP("");function km(r){return["disabled"===r.initialNavigation?[{provide:h.ip1,multi:!0,useFactory:()=>{const r=(0,h.f3M)(yi);return()=>{r.setUpLocationChangeListener()}}},{provide:Lu,useValue:2}]:[],"enabledBlocking"===r.initialNavigation?[{provide:Lu,useValue:0},{provide:h.ip1,multi:!0,deps:[h.zs3],useFactory:r=>{const a=r.get(M.V_,Promise.resolve(null));let e=!1;return()=>a.then(()=>new Promise(s=>{const u=r.get(yi),d=r.get(Vm);(function t(s){r.get(yi).events.pipe((0,ge.h)(d=>d instanceof mn||d instanceof mu||d instanceof $f),(0,ct.U)(d=>d instanceof mn||d instanceof mu&&(0===d.code||1===d.code)&&null),(0,ge.h)(d=>null!==d),(0,Dt.q)(1)).subscribe(()=>{s()})})(()=>{s(!0),e=!0}),u.afterPreactivation=()=>(s(!0),e||d.closed?(0,Me.of)(void 0):d),u.initialNavigation()}))}}]:[]]}const Vm=new h.OlP("",{factory:()=>new He.x}),Lu=new h.OlP("",{providedIn:"root",factory:()=>1});function $w(r){return[qc,{provide:sa,useExisting:qc},{provide:Hm,useExisting:r}]}let Fu;try{Fu=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Fu=!1}let Qo,Jt=(()=>{class r{constructor(e){this._platformId=e,this.isBrowser=this._platformId?(0,M.NF)(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&&!Fu)&&typeof CSS<"u"&&!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 r.\u0275fac=function(e){return new(e||r)(h.LFG(h.Lbi))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const Jo=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Bm(){if(Qo)return Qo;if("object"!=typeof document||!document)return Qo=new Set(Jo),Qo;let r=document.createElement("input");return Qo=new Set(Jo.filter(a=>(r.setAttribute("type",a),r.type===a))),Qo}let dr,Uu,la,Nu;function ur(r){return function al(){if(null==dr&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>dr=!0}))}finally{dr=dr||!1}return dr}()?r:!!r.capture}function Om(){if(null==la){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return la=!1,la;if("scrollBehavior"in document.documentElement.style)la=!0;else{const r=Element.prototype.scrollTo;la=!!r&&!/\{\s*\[native code\]\s*\}/.test(r.toString())}}return la}function ol(){if("object"!=typeof document||!document)return 0;if(null==Uu){const r=document.createElement("div"),a=r.style;r.dir="rtl",a.width="1px",a.overflow="auto",a.visibility="hidden",a.pointerEvents="none",a.position="absolute";const e=document.createElement("div"),t=e.style;t.width="2px",t.height="1px",r.appendChild(e),document.body.appendChild(r),Uu=0,0===r.scrollLeft&&(r.scrollLeft=1,Uu=0===r.scrollLeft?1:2),r.remove()}return Uu}function Yc(r){if(function Lm(){if(null==Nu){const r=typeof document<"u"?document.head:null;Nu=!(!r||!r.createShadowRoot&&!r.attachShadow)}return Nu}()){const a=r.getRootNode?r.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&a instanceof ShadowRoot)return a}return null}function sl(){let r=typeof document<"u"&&document?document.activeElement:null;for(;r&&r.shadowRoot;){const a=r.shadowRoot.activeElement;if(a===r)break;r=a}return r}function Un(r){return r.composedPath?r.composedPath()[0]:r.target}function qu(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function hr(r,...a){return a.length?a.some(e=>r[e]):r.altKey||r.shiftKey||r.ctrlKey||r.metaKey}var ng=E(8372);function Zu(r){return(0,ge.h)((a,e)=>r<=e)}function rg(r,a=Mf.y){return r=r??ag,(0,fn.e)((e,t)=>{let s,u=!0;e.subscribe((0,Xe.x)(t,d=>{const l=a(d);(u||!r(s,l))&&(u=!1,s=l,t.next(d))}))})}function ag(r,a){return r===a}var Ty=E(5032);function gt(r){return(0,fn.e)((a,e)=>{(0,In.Xf)(r).subscribe((0,Xe.x)(e,()=>e.complete(),Ty.Z)),!e.closed&&a.subscribe(e)})}function ze(r){return null!=r&&"false"!=`${r}`}function Pi(r,a=0){return Xu(r)?Number(r):a}function Xu(r){return!isNaN(parseFloat(r))&&!isNaN(Number(r))}function Xc(r){return Array.isArray(r)?r:[r]}function mi(r){return null==r?"":"string"==typeof r?r:`${r}px`}function li(r){return r instanceof h.SBq?r.nativeElement:r}let eh=(()=>{class r{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Ey=(()=>{class r{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,t)=>this._cleanupObserver(t))}observe(e){const t=li(e);return new ai.y(s=>{const d=this._observeElement(t).subscribe(s);return()=>{d.unsubscribe(),this._unobserveElement(t)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const t=new He.x,s=this._mutationObserverFactory.create(u=>t.next(u));s&&s.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:s,stream:t,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:t,stream:s}=this._observedElements.get(e);t&&t.disconnect(),s.complete(),this._observedElements.delete(e)}}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(eh))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),th=(()=>{class r{constructor(e,t,s){this._contentObserver=e,this._elementRef=t,this._ngZone=s,this.event=new h.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=ze(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=Pi(e),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe((0,ng.b)(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(Ey),h.Y36(h.SBq),h.Y36(h.R0b))},r.\u0275dir=h.lG2({type:r,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),r})(),pl=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({providers:[eh]}),r})();const ih=new Set;let Wa,og=(()=>{class r{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Dy}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function My(r){if(!ih.has(r))try{Wa||(Wa=document.createElement("style"),Wa.setAttribute("type","text/css"),document.head.appendChild(Wa)),Wa.sheet&&(Wa.sheet.insertRule(`@media ${r} {body{ }}`,0),ih.add(r))}catch(a){console.error(a)}}(e),this._matchMedia(e)}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(Jt))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();function Dy(r){return{matches:"all"===r||""===r,media:r,addListener:()=>{},removeListener:()=>{}}}let nh=(()=>{class r{constructor(e,t){this._mediaMatcher=e,this._zone=t,this._queries=new Map,this._destroySubject=new He.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return sg(Xc(e)).some(s=>this._registerQuery(s).mql.matches)}observe(e){const s=sg(Xc(e)).map(d=>this._registerQuery(d).observable);let u=(0,Vt.a)(s);return u=(0,Qi.z)(u.pipe((0,Dt.q)(1)),u.pipe(Zu(1),(0,ng.b)(0))),u.pipe((0,ct.U)(d=>{const l={matches:!1,breakpoints:{}};return d.forEach(({matches:n,query:i})=>{l.matches=l.matches||n,l.breakpoints[i]=n}),l}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const t=this._mediaMatcher.matchMedia(e),u={observable:new ai.y(d=>{const l=n=>this._zone.run(()=>d.next(n));return t.addListener(l),()=>{t.removeListener(l)}}).pipe(Zi(t),(0,ct.U)(({matches:d})=>({query:e,matches:d})),gt(this._destroySubject)),mql:t};return this._queries.set(e,u),u}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(og),h.LFG(h.R0b))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();function sg(r){return r.map(a=>a.split(",")).reduce((a,e)=>a.concat(e)).map(a=>a.trim())}function fl(r,a){return(r.getAttribute(a)||"").match(/\S+/g)||[]}const da="cdk-describedby-message",ed="cdk-describedby-host";let ml=0,td=(()=>{class r{constructor(e,t){this._platform=t,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+ml++,this._document=e,this._id=(0,h.f3M)(h.AFp)+"-"+ml++}describe(e,t,s){if(!this._canBeDescribed(e,t))return;const u=rh(t,s);"string"!=typeof t?(Py(t,this._id),this._messageRegistry.set(u,{messageElement:t,referenceCount:0})):this._messageRegistry.has(u)||this._createMessageElement(t,s),this._isElementDescribedByMessage(e,u)||this._addMessageReference(e,u)}removeDescription(e,t,s){if(!t||!this._isElementNode(e))return;const u=rh(t,s);if(this._isElementDescribedByMessage(e,u)&&this._removeMessageReference(e,u),"string"==typeof t){const d=this._messageRegistry.get(u);d&&0===d.referenceCount&&this._deleteMessageElement(u)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const e=this._document.querySelectorAll(`[${ed}="${this._id}"]`);for(let t=0;t0!=s.indexOf(da));e.setAttribute("aria-describedby",t.join(" "))}_addMessageReference(e,t){const s=this._messageRegistry.get(t);(function Hy(r,a,e){const t=fl(r,a);t.some(s=>s.trim()==e.trim())||(t.push(e.trim()),r.setAttribute(a,t.join(" ")))})(e,"aria-describedby",s.messageElement.id),e.setAttribute(ed,this._id),s.referenceCount++}_removeMessageReference(e,t){const s=this._messageRegistry.get(t);s.referenceCount--,function eT(r,a,e){const s=fl(r,a).filter(u=>u!=e.trim());s.length?r.setAttribute(a,s.join(" ")):r.removeAttribute(a)}(e,"aria-describedby",s.messageElement.id),e.removeAttribute(ed)}_isElementDescribedByMessage(e,t){const s=fl(e,"aria-describedby"),u=this._messageRegistry.get(t),d=u&&u.messageElement.id;return!!d&&-1!=s.indexOf(d)}_canBeDescribed(e,t){if(!this._isElementNode(e))return!1;if(t&&"object"==typeof t)return!0;const s=null==t?"":`${t}`.trim(),u=e.getAttribute("aria-label");return!(!s||u&&u.trim()===s)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(M.K0),h.LFG(Jt))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();function rh(r,a){return"string"==typeof r?`${a||""}/${r}`:r}function Py(r,a){r.id||(r.id=`${da}-${a}-${ml++}`)}class ah extends class tT{constructor(a){this._items=a,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new He.x,this._typeaheadSubscription=Yt.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new He.x,this.change=new He.x,a instanceof h.n_E&&a.changes.subscribe(e=>{if(this._activeItem){const s=e.toArray().indexOf(this._activeItem);s>-1&&s!==this._activeItemIndex&&(this._activeItemIndex=s)}})}skipPredicate(a){return this._skipPredicateFn=a,this}withWrap(a=!0){return this._wrap=a,this}withVerticalOrientation(a=!0){return this._vertical=a,this}withHorizontalOrientation(a){return this._horizontal=a,this}withAllowedModifierKeys(a){return this._allowedModifierKeys=a,this}withTypeAhead(a=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,Rt.b)(e=>this._pressedLetters.push(e)),(0,ng.b)(a),(0,ge.h)(()=>this._pressedLetters.length>0),(0,ct.U)(()=>this._pressedLetters.join(""))).subscribe(e=>{const t=this._getItemsArray();for(let s=1;s!a[u]||this._allowedModifierKeys.indexOf(u)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&s){this.setNextItemActive();break}return;case 38:if(this._vertical&&s){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&s){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&s){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&s){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&s){this.setLastItemActive();break}return;default:return void((s||hr(a,"shiftKey"))&&(a.key&&1===a.key.length?this._letterKeyStream.next(a.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],a.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(a){const e=this._getItemsArray(),t="number"==typeof a?a:e.indexOf(a);this._activeItem=e[t]??null,this._activeItemIndex=t}_setActiveItemByDelta(a){this._wrap?this._setActiveInWrapMode(a):this._setActiveInDefaultMode(a)}_setActiveInWrapMode(a){const e=this._getItemsArray();for(let t=1;t<=e.length;t++){const s=(this._activeItemIndex+a*t+e.length)%e.length;if(!this._skipPredicateFn(e[s]))return void this.setActiveItem(s)}}_setActiveInDefaultMode(a){this._setActiveItemByIndex(this._activeItemIndex+a,a)}_setActiveItemByIndex(a,e){const t=this._getItemsArray();if(t[a]){for(;this._skipPredicateFn(t[a]);)if(!t[a+=e])return;this.setActiveItem(a)}}_getItemsArray(){return this._items instanceof h.n_E?this._items.toArray():this._items}}{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(a){return this._origin=a,this}setActiveItem(a){super.setActiveItem(a),this.activeItem&&this.activeItem.focus(this._origin)}}let oh=(()=>{class r{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function Zo(r){return!!(r.offsetWidth||r.offsetHeight||"function"==typeof r.getClientRects&&r.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const t=function ky(r){try{return r.frameElement}catch{return null}}(function jy(r){return r.ownerDocument&&r.ownerDocument.defaultView||window}(e));if(t&&(-1===pg(t)||!this.isVisible(t)))return!1;let s=e.nodeName.toLowerCase(),u=pg(e);return e.hasAttribute("contenteditable")?-1!==u:!("iframe"===s||"object"===s||this._platform.WEBKIT&&this._platform.IOS&&!function Oy(r){let a=r.nodeName.toLowerCase(),e="input"===a&&r.type;return"text"===e||"password"===e||"select"===a||"textarea"===a}(e))&&("audio"===s?!!e.hasAttribute("controls")&&-1!==u:"video"===s?-1!==u&&(null!==u||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,t){return function Ly(r){return!function dg(r){return function By(r){return"input"==r.nodeName.toLowerCase()}(r)&&"hidden"==r.type}(r)&&(function Vy(r){let a=r.nodeName.toLowerCase();return"input"===a||"select"===a||"button"===a||"textarea"===a}(r)||function id(r){return function ug(r){return"a"==r.nodeName.toLowerCase()}(r)&&r.hasAttribute("href")}(r)||r.hasAttribute("contenteditable")||hg(r))}(e)&&!this.isDisabled(e)&&(t?.ignoreVisibility||this.isVisible(e))}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(Jt))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();function hg(r){if(!r.hasAttribute("tabindex")||void 0===r.tabIndex)return!1;let a=r.getAttribute("tabindex");return!(!a||isNaN(parseInt(a,10)))}function pg(r){if(!hg(r))return null;const a=parseInt(r.getAttribute("tabindex")||"",10);return isNaN(a)?-1:a}class fg{constructor(a,e,t,s,u=!1){this._element=a,this._checker=e,this._ngZone=t,this._document=s,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,u||this.attachAnchors()}get enabled(){return this._enabled}set enabled(a){this._enabled=a,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(a,this._startAnchor),this._toggleAnchorTabIndex(a,this._endAnchor))}destroy(){const a=this._startAnchor,e=this._endAnchor;a&&(a.removeEventListener("focus",this.startAnchorListener),a.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),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(a){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(a)))})}focusFirstTabbableElementWhenReady(a){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(a)))})}focusLastTabbableElementWhenReady(a){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(a)))})}_getRegionBoundary(a){const e=this._element.querySelectorAll(`[cdk-focus-region-${a}], [cdkFocusRegion${a}], [cdk-focus-${a}]`);return"start"==a?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(a){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const t=this._getFirstTabbableElement(e);return t?.focus(a),!!t}return e.focus(a),!0}return this.focusFirstTabbableElement(a)}focusFirstTabbableElement(a){const e=this._getRegionBoundary("start");return e&&e.focus(a),!!e}focusLastTabbableElement(a){const e=this._getRegionBoundary("end");return e&&e.focus(a),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(a){if(this._checker.isFocusable(a)&&this._checker.isTabbable(a))return a;const e=a.children;for(let t=0;t=0;t--){const s=e[t].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[t]):null;if(s)return s}return null}_createAnchor(){const a=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,a),a.classList.add("cdk-visually-hidden"),a.classList.add("cdk-focus-trap-anchor"),a.setAttribute("aria-hidden","true"),a}_toggleAnchorTabIndex(a,e){a?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(a){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(a,this._startAnchor),this._toggleAnchorTabIndex(a,this._endAnchor))}_executeOnStable(a){this._ngZone.isStable?a():this._ngZone.onStable.pipe((0,Dt.q)(1)).subscribe(a)}}let sh=(()=>{class r{constructor(e,t,s){this._checker=e,this._ngZone=t,this._document=s}create(e,t=!1){return new fg(e,this._checker,this._ngZone,this._document,t)}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(oh),h.LFG(h.R0b),h.LFG(M.K0))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();function lh(r){return 0===r.buttons||0===r.offsetX&&0===r.offsetY}function kr(r){const a=r.touches&&r.touches[0]||r.changedTouches&&r.changedTouches[0];return!(!a||-1!==a.identifier||null!=a.radiusX&&1!==a.radiusX||null!=a.radiusY&&1!==a.radiusY)}const _g=new h.OlP("cdk-input-modality-detector-options"),bg={ignoreKeys:[18,17,224,91,16]},Li=ur({passive:!0,capture:!0});let Cg=(()=>{class r{constructor(e,t,s,u){this._platform=e,this._mostRecentTarget=null,this._modality=new $t(null),this._lastTouchMs=0,this._onKeydown=d=>{this._options?.ignoreKeys?.some(l=>l===d.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Un(d))},this._onMousedown=d=>{Date.now()-this._lastTouchMs<650||(this._modality.next(lh(d)?"keyboard":"mouse"),this._mostRecentTarget=Un(d))},this._onTouchstart=d=>{kr(d)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Un(d))},this._options={...bg,...u},this.modalityDetected=this._modality.pipe(Zu(1)),this.modalityChanged=this.modalityDetected.pipe(rg()),e.isBrowser&&t.runOutsideAngular(()=>{s.addEventListener("keydown",this._onKeydown,Li),s.addEventListener("mousedown",this._onMousedown,Li),s.addEventListener("touchstart",this._onTouchstart,Li)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Li),document.removeEventListener("mousedown",this._onMousedown,Li),document.removeEventListener("touchstart",this._onTouchstart,Li))}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(Jt),h.LFG(h.R0b),h.LFG(M.K0),h.LFG(_g,8))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const dh=new h.OlP("cdk-focus-monitor-default-options"),uh=ur({passive:!0,capture:!0});let Sn=(()=>{class r{constructor(e,t,s,u,d){this._ngZone=e,this._platform=t,this._inputModalityDetector=s,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new He.x,this._rootNodeFocusAndBlurListener=l=>{for(let i=Un(l);i;i=i.parentElement)"focus"===l.type?this._onFocus(l,i):this._onBlur(l,i)},this._document=u,this._detectionMode=d?.detectionMode||0}monitor(e,t=!1){const s=li(e);if(!this._platform.isBrowser||1!==s.nodeType)return(0,Me.of)(null);const u=Yc(s)||this._getDocument(),d=this._elementInfo.get(s);if(d)return t&&(d.checkChildren=!0),d.subject;const l={checkChildren:t,subject:new He.x,rootNode:u};return this._elementInfo.set(s,l),this._registerGlobalListeners(l),l.subject}stopMonitoring(e){const t=li(e),s=this._elementInfo.get(t);s&&(s.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(s))}focusVia(e,t,s){const u=li(e);u===this._getDocument().activeElement?this._getClosestElementsInfo(u).forEach(([l,n])=>this._originChanged(l,t,n)):(this._setOrigin(t),"function"==typeof u.focus&&u.focus(s))}ngOnDestroy(){this._elementInfo.forEach((e,t)=>this.stopMonitoring(t))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,t){e.classList.toggle("cdk-focused",!!t),e.classList.toggle("cdk-touch-focused","touch"===t),e.classList.toggle("cdk-keyboard-focused","keyboard"===t),e.classList.toggle("cdk-mouse-focused","mouse"===t),e.classList.toggle("cdk-program-focused","program"===t)}_setOrigin(e,t=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&t,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,t){const s=this._elementInfo.get(t),u=Un(e);!s||!s.checkChildren&&t!==u||this._originChanged(t,this._getFocusOrigin(u),s)}_onBlur(e,t){const s=this._elementInfo.get(t);!s||s.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(s,null))}_emitOrigin(e,t){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(t))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const t=e.rootNode,s=this._rootNodeFocusListenerCount.get(t)||0;s||this._ngZone.runOutsideAngular(()=>{t.addEventListener("focus",this._rootNodeFocusAndBlurListener,uh),t.addEventListener("blur",this._rootNodeFocusAndBlurListener,uh)}),this._rootNodeFocusListenerCount.set(t,s+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(gt(this._stopInputModalityDetector)).subscribe(u=>{this._setOrigin(u,!0)}))}_removeGlobalListeners(e){const t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){const s=this._rootNodeFocusListenerCount.get(t);s>1?this._rootNodeFocusListenerCount.set(t,s-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,uh),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,uh),this._rootNodeFocusListenerCount.delete(t))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,t,s){this._setClasses(e,t),this._emitOrigin(s,t),this._lastFocusOrigin=t}_getClosestElementsInfo(e){const t=[];return this._elementInfo.forEach((s,u)=>{(u===e||s.checkChildren&&u.contains(e))&&t.push([u,s])}),t}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:t,mostRecentModality:s}=this._inputModalityDetector;if("mouse"!==s||!t||t===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const u=e.labels;if(u)for(let d=0;d{class r{constructor(e,t){this._platform=e,this._document=t,this._breakpointSubscription=(0,h.f3M)(nh).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const t=this._document.defaultView||window,s=t&&t.getComputedStyle?t.getComputedStyle(e):null,u=(s&&s.backgroundColor||"").replace(/ /g,"");switch(e.remove(),u){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(Cl,_l,bl),this._hasCheckedHighContrastMode=!0;const t=this.getHighContrastMode();1===t?e.add(Cl,_l):2===t&&e.add(Cl,bl)}}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(Jt),h.LFG(M.K0))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),$a=(()=>{class r{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(nd))},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({imports:[pl]}),r})();const rT=new h.OlP("cdk-dir-doc",{providedIn:"root",factory:function qy(){return(0,h.f3M)(M.K0)}}),zy=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Tn=(()=>{class r{constructor(e){if(this.value="ltr",this.change=new h.vpe,e){const s=e.documentElement?e.documentElement.dir:null;this.value=function Gy(r){const a=r?.toLowerCase()||"";return"auto"===a&&typeof navigator<"u"&&navigator?.language?zy.test(navigator.language)?"rtl":"ltr":"rtl"===a?"rtl":"ltr"}((e.body?e.body.dir:null)||s||"ltr")}}ngOnDestroy(){this.change.complete()}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(rT,8))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),wl=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({}),r})();const cT=new h.OlP("mat-sanity-checks",{providedIn:"root",factory:function lT(){return!0}});let Ye=(()=>{class r{constructor(e,t,s){this._sanityChecks=t,this._document=s,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!qu()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(nd),h.LFG(cT,8),h.LFG(M.K0))},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({imports:[wl,wl]}),r})();function yl(r){return class extends r{constructor(...a){super(...a),this._disabled=!1}get disabled(){return this._disabled}set disabled(a){this._disabled=ze(a)}}}function zi(r,a){return class extends r{constructor(...e){super(...e),this.defaultColor=a,this.color=a}get color(){return this._color}set color(e){const t=e||this.defaultColor;t!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),t&&this._elementRef.nativeElement.classList.add(`mat-${t}`),this._color=t)}}}function pr(r){return class extends r{constructor(...a){super(...a),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(a){this._disableRipple=ze(a)}}}function hh(r){return class extends r{constructor(...a){super(...a),this.errorState=!1}updateErrorState(){const a=this.errorState,u=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);u!==a&&(this.errorState=u,this.stateChanges.next())}}}const xg=new h.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function ph(){return(0,h.f3M)(h.soG)}});class Nn{constructor(){this._localeChanges=new He.x,this.localeChanges=this._localeChanges}getValidDateOrNull(a){return this.isDateInstance(a)&&this.isValid(a)?a:null}deserialize(a){return null==a||this.isDateInstance(a)&&this.isValid(a)?a:this.invalid()}setLocale(a){this.locale=a,this._localeChanges.next()}compareDate(a,e){return this.getYear(a)-this.getYear(e)||this.getMonth(a)-this.getMonth(e)||this.getDate(a)-this.getDate(e)}sameDate(a,e){if(a&&e){let t=this.isValid(a),s=this.isValid(e);return t&&s?!this.compareDate(a,e):t==s}return a==e}clampDate(a,e,t){return e&&this.compareDate(a,e)<0?e:t&&this.compareDate(a,t)>0?t:a}}const qn=new h.OlP("mat-date-formats"),Sg=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function fh(r,a){const e=Array(r);for(let t=0;t{class r extends Nn{constructor(e,t){super(),this.useUtcForDisplay=!1,super.setLocale(e)}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){const t=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return fh(12,s=>this._format(t,new Date(2017,s,1)))}getDateNames(){const e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return fh(31,t=>this._format(e,new Date(2017,0,t+1)))}getDayOfWeekNames(e){const t=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return fh(7,s=>this._format(t,new Date(2017,0,s+1)))}getYearName(e){const t=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(t,e)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,t,s){let u=this._createDateWithOverflow(e,t,s);return u.getMonth(),u}today(){return new Date}parse(e,t){return"number"==typeof e?new Date(e):e?new Date(Date.parse(e)):null}format(e,t){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");const s=new Intl.DateTimeFormat(this.locale,{...t,timeZone:"utc"});return this._format(s,e)}addCalendarYears(e,t){return this.addCalendarMonths(e,12*t)}addCalendarMonths(e,t){let s=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+t,this.getDate(e));return this.getMonth(s)!=((this.getMonth(e)+t)%12+12)%12&&(s=this._createDateWithOverflow(this.getYear(s),this.getMonth(s),0)),s}addCalendarDays(e,t){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+t)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if("string"==typeof e){if(!e)return null;if(Sg.test(e)){let t=new Date(e);if(this.isValid(t))return t}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(e,t,s){const u=new Date;return u.setFullYear(e,t,s),u.setHours(0,0,0,0),u}_2digit(e){return("00"+e).slice(-2)}_format(e,t){const s=new Date;return s.setUTCFullYear(t.getFullYear(),t.getMonth(),t.getDate()),s.setUTCHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e.format(s)}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(xg,8),h.LFG(Jt))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac}),r})();const Jy={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 Tg=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({providers:[{provide:Nn,useClass:rd}]}),r})(),Eg=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({providers:[{provide:qn,useValue:Jy}],imports:[Tg]}),r})(),ha=(()=>{class r{isErrorState(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Ya=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({imports:[Ye,Ye]}),r})();class Al{constructor(a,e,t,s=!1){this._renderer=a,this.element=e,this.config=t,this._animationForciblyDisabledThroughCss=s,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Mg={enterDuration:225,exitDuration:150},ad=ur({passive:!0}),od=["mousedown","touchstart"],sd=["mouseup","mouseleave","touchend","touchcancel"];class gh{constructor(a,e,t,s){this._target=a,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,s.isBrowser&&(this._containerElement=li(t))}fadeInRipple(a,e,t={}){const s=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),u={...Mg,...t.animation};t.centered&&(a=s.left+s.width/2,e=s.top+s.height/2);const d=t.radius||function _h(r,a,e){const t=Math.max(Math.abs(r-e.left),Math.abs(r-e.right)),s=Math.max(Math.abs(a-e.top),Math.abs(a-e.bottom));return Math.sqrt(t*t+s*s)}(a,e,s),l=a-s.left,n=e-s.top,i=u.enterDuration,o=document.createElement("div");o.classList.add("mat-ripple-element"),o.style.left=l-d+"px",o.style.top=n-d+"px",o.style.height=2*d+"px",o.style.width=2*d+"px",null!=t.color&&(o.style.backgroundColor=t.color),o.style.transitionDuration=`${i}ms`,this._containerElement.appendChild(o);const c=window.getComputedStyle(o),m=c.transitionDuration,g="none"===c.transitionProperty||"0s"===m||"0s, 0s"===m,f=new Al(this,o,t,g);o.style.transform="scale3d(1, 1, 1)",f.state=0,t.persistent||(this._mostRecentTransientRipple=f);let w=null;return!g&&(i||u.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const R=()=>this._finishRippleTransition(f),J=()=>this._destroyRipple(f);o.addEventListener("transitionend",R),o.addEventListener("transitioncancel",J),w={onTransitionEnd:R,onTransitionCancel:J}}),this._activeRipples.set(f,w),(g||!i)&&this._finishRippleTransition(f),f}fadeOutRipple(a){if(2===a.state||3===a.state)return;const e=a.element,t={...Mg,...a.config.animation};e.style.transitionDuration=`${t.exitDuration}ms`,e.style.opacity="0",a.state=2,(a._animationForciblyDisabledThroughCss||!t.exitDuration)&&this._finishRippleTransition(a)}fadeOutAll(){this._getActiveRipples().forEach(a=>a.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(a=>{a.config.persistent||a.fadeOut()})}setupTriggerEvents(a){const e=li(a);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(od))}handleEvent(a){"mousedown"===a.type?this._onMousedown(a):"touchstart"===a.type?this._onTouchStart(a):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(sd),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(a){0===a.state?this._startFadeOutTransition(a):2===a.state&&this._destroyRipple(a)}_startFadeOutTransition(a){const e=a===this._mostRecentTransientRipple,{persistent:t}=a.config;a.state=1,!t&&(!e||!this._isPointerDown)&&a.fadeOut()}_destroyRipple(a){const e=this._activeRipples.get(a)??null;this._activeRipples.delete(a),this._activeRipples.size||(this._containerRect=null),a===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),a.state=3,null!==e&&(a.element.removeEventListener("transitionend",e.onTransitionEnd),a.element.removeEventListener("transitioncancel",e.onTransitionCancel)),a.element.remove()}_onMousedown(a){const e=lh(a),t=this._lastTouchStartEvent&&Date.now(){!a.config.persistent&&(1===a.state||a.config.terminateOnPointerUp&&0===a.state)&&a.fadeOut()}))}_registerEvents(a){this._ngZone.runOutsideAngular(()=>{a.forEach(e=>{this._triggerElement.addEventListener(e,this,ad)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(od.forEach(a=>{this._triggerElement.removeEventListener(a,this,ad)}),this._pointerUpEventsRegistered&&sd.forEach(a=>{this._triggerElement.removeEventListener(a,this,ad)}))}}const Hg=new h.OlP("mat-ripple-global-options");let Qa=(()=>{class r{constructor(e,t,s,u,d){this._elementRef=e,this._animationMode=d,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=u||{},this._rippleRenderer=new gh(this,t,e,s)}get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...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(e,t=0,s){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,{...this.rippleConfig,...s}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...e})}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(h.SBq),h.Y36(h.R0b),h.Y36(Jt),h.Y36(Hg,8),h.Y36(h.QbO,8))},r.\u0275dir=h.lG2({type:r,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&h.ekj("mat-ripple-unbounded",t.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),r})(),En=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({imports:[Ye,Ye]}),r})(),bh=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({imports:[Ye]}),r})(),Ch=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({imports:[En,M.ez,Ye,bh]}),r})();const Ig=["mat-button",""],tv=["*"],rv=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],kg=zi(yl(pr(class{constructor(r){this._elementRef=r}})));let ji=(()=>{class r extends kg{constructor(e,t,s){super(e),this._focusMonitor=t,this._animationMode=s,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const u of rv)this._hasHostAttributes(u)&&this._getHostElement().classList.add(u);e.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(e,t){e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...e){return e.some(t=>this._getHostElement().hasAttribute(t))}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(h.SBq),h.Y36(Sn),h.Y36(h.QbO,8))},r.\u0275cmp=h.Xpm({type:r,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(e,t){if(1&e&&h.Gf(Qa,5),2&e){let s;h.iGM(s=h.CRH())&&(t.ripple=s.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,t){2&e&&(h.uIk("disabled",t.disabled||null),h.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-button-disabled",t.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[h.qOj],attrs:Ig,ngContentSelectors:tv,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(e,t){1&e&&(h.F$t(),h.TgZ(0,"span",0),h.Hsn(1),h.qZA(),h._UZ(2,"span",1)(3,"span",2)),2&e&&(h.xp6(2),h.ekj("mat-button-ripple-round",t.isRoundButton||t.isIconButton),h.Q6J("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",t.isIconButton)("matRippleTrigger",t._getHostElement()))},dependencies:[Qa],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.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;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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-fab._mat-animation-noopable{transition:none !important;animation:none !important}.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;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.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:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.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}"],encapsulation:2,changeDetection:0}),r})(),vi=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({imports:[En,Ye,Ye]}),r})();var wh=E(1144);const av=["addListener","removeListener"],ov=["addEventListener","removeEventListener"],_T=["on","off"];function Ja(r,a,e,t){if((0,It.m)(e)&&(t=e,e=void 0),t)return Ja(r,a,e).pipe((0,Ma.Z)(t));const[s,u]=function yh(r){return(0,It.m)(r.addEventListener)&&(0,It.m)(r.removeEventListener)}(r)?ov.map(d=>l=>r[d](a,l,e)):function sv(r){return(0,It.m)(r.addListener)&&(0,It.m)(r.removeListener)}(r)?av.map(Vg(r,a)):function lv(r){return(0,It.m)(r.on)&&(0,It.m)(r.off)}(r)?_T.map(Vg(r,a)):[];if(!s&&(0,wh.z)(r))return(0,Hi.z)(d=>Ja(d,a,e))((0,In.Xf)(r));if(!s)throw new TypeError("Invalid event target");return new ai.y(d=>{const l=(...n)=>d.next(1u(l)})}function Vg(r,a){return e=>t=>r[e](a,t)}var Bg=E(4408);const xl={schedule(r){let a=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:t}=xl;t&&(a=t.requestAnimationFrame,e=t.cancelAnimationFrame);const s=a(u=>{e=void 0,r(u)});return new Yt.w0(()=>e?.(s))},requestAnimationFrame(...r){const{delegate:a}=xl;return(a?.requestAnimationFrame||requestAnimationFrame)(...r)},cancelAnimationFrame(...r){const{delegate:a}=xl;return(a?.cancelAnimationFrame||cancelAnimationFrame)(...r)},delegate:void 0};var cd=E(7565);const vh=new class cv extends cd.v{flush(a){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:t}=this;let s;a=a||t.shift();do{if(s=a.execute(a.state,a.delay))break}while((a=t[0])&&a.id===e&&t.shift());if(this._active=!1,s){for(;(a=t[0])&&a.id===e&&t.shift();)a.unsubscribe();throw s}}}(class ld extends Bg.o{constructor(a,e){super(a,e),this.scheduler=a,this.work=e}requestAsyncId(a,e,t=0){return null!==t&&t>0?super.requestAsyncId(a,e,t):(a.actions.push(this),a._scheduled||(a._scheduled=xl.requestAnimationFrame(()=>a.flush(void 0))))}recycleAsyncId(a,e,t=0){if(null!=t&&t>0||null==t&&this.delay>0)return super.recycleAsyncId(a,e,t);a.actions.some(s=>s.id===e)||(xl.cancelAnimationFrame(e),a._scheduled=void 0)}});let jg,Lg=1;const Ah={};function dd(r){return r in Ah&&(delete Ah[r],!0)}const bT={setImmediate(r){const a=Lg++;return Ah[a]=!0,jg||(jg=Promise.resolve()),jg.then(()=>dd(a)&&r()),a},clearImmediate(r){dd(r)}},{setImmediate:Fg,clearImmediate:Ug}=bT,Sl={setImmediate(...r){const{delegate:a}=Sl;return(a?.setImmediate||Fg)(...r)},clearImmediate(r){const{delegate:a}=Sl;return(a?.clearImmediate||Ug)(r)},delegate:void 0},zn=new class xh extends cd.v{flush(a){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:t}=this;let s;a=a||t.shift();do{if(s=a.execute(a.state,a.delay))break}while((a=t[0])&&a.id===e&&t.shift());if(this._active=!1,s){for(;(a=t[0])&&a.id===e&&t.shift();)a.unsubscribe();throw s}}}(class Ng extends Bg.o{constructor(a,e){super(a,e),this.scheduler=a,this.work=e}requestAsyncId(a,e,t=0){return null!==t&&t>0?super.requestAsyncId(a,e,t):(a.actions.push(this),a._scheduled||(a._scheduled=Sl.setImmediate(a.flush.bind(a,void 0))))}recycleAsyncId(a,e,t=0){if(null!=t&&t>0||null==t&&this.delay>0)return super.recycleAsyncId(a,e,t);a.actions.some(s=>s.id===e)||(Sl.clearImmediate(e),a._scheduled=void 0)}});var Tl=E(4986),qg=E(2805);function es(r,a=Tl.z){return function El(r){return(0,fn.e)((a,e)=>{let t=!1,s=null,u=null,d=!1;const l=()=>{if(u?.unsubscribe(),u=null,t){t=!1;const i=s;s=null,e.next(i)}d&&e.complete()},n=()=>{u=null,d&&e.complete()};a.subscribe((0,Xe.x)(e,i=>{t=!0,s=i,u||(0,In.Xf)(r(i)).subscribe(u=(0,Xe.x)(e,l,n))},()=>{d=!0,(!t||!u||u.closed)&&e.complete()}))})}(()=>(0,qg.H)(r,a))}class Gg{}function Ml(r){return r&&"function"==typeof r.connect}class Dl extends Gg{constructor(a){super(),this._data=a}connect(){return Kt(this._data)?this._data:(0,Me.of)(this._data)}disconnect(){}}class Wg{applyChanges(a,e,t,s,u){a.forEachOperation((d,l,n)=>{let i,o;if(null==d.previousIndex){const c=t(d,l,n);i=e.createEmbeddedView(c.templateRef,c.context,c.index),o=1}else null==n?(e.remove(l),o=3):(i=e.get(l),e.move(i,n),o=2);u&&u({context:i?.context,operation:o,record:d})})}detach(){}}class $g{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(a,e,t,s,u){a.forEachOperation((d,l,n)=>{let i,o;null==d.previousIndex?(i=this._insertView(()=>t(d,l,n),n,e,s(d)),o=i?1:0):null==n?(this._detachAndCacheView(l,e),o=3):(i=this._moveView(l,n,e,s(d)),o=2),u&&u({context:i?.context,operation:o,record:d})})}detach(){for(const a of this._viewCache)a.destroy();this._viewCache=[]}_insertView(a,e,t,s){const u=this._insertViewFromCache(e,t);if(u)return void(u.context.$implicit=s);const d=a();return t.createEmbeddedView(d.templateRef,d.context,d.index)}_detachAndCacheView(a,e){const t=e.detach(a);this._maybeCacheView(t,e)}_moveView(a,e,t,s){const u=t.get(a);return t.move(u,e),u.context.$implicit=s,u}_maybeCacheView(a,e){if(this._viewCache.length0?u/this._itemSize:0;if(e.end>s){const n=Math.ceil(t/this._itemSize),i=Math.max(0,Math.min(d,s-n));d!=i&&(d=i,u=i*this._itemSize,e.start=Math.floor(d)),e.end=Math.max(0,Math.min(s,e.start+n))}const l=u-e.start*this._itemSize;if(l0&&(e.end=Math.min(s,e.end+i),e.start=Math.max(0,Math.floor(d-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(e),this._viewport.setRenderedContentOffset(this._itemSize*e.start),this._scrolledIndexChange.next(Math.floor(d))}}function Eh(r){return r._scrollStrategy}let fv=(()=>{class r{constructor(){this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new Yg(this.itemSize,this.minBufferPx,this.maxBufferPx)}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=Pi(e)}get minBufferPx(){return this._minBufferPx}set minBufferPx(e){this._minBufferPx=Pi(e)}get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(e){this._maxBufferPx=Pi(e)}ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275dir=h.lG2({type:r,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[h._Bn([{provide:pv,useFactory:Eh,deps:[(0,h.Gpc)(()=>r)]}]),h.TTD]}),r})(),Hl=(()=>{class r{constructor(e,t,s){this._ngZone=e,this._platform=t,this._scrolled=new He.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=s}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new ai.y(t=>{this._globalSubscription||this._addGlobalListener();const s=e>0?this._scrolled.pipe(es(e)).subscribe(t):this._scrolled.subscribe(t);return this._scrolledCount++,()=>{s.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,Me.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,t)=>this.deregister(t)),this._scrolled.complete()}ancestorScrolled(e,t){const s=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe((0,ge.h)(u=>!u||s.indexOf(u)>-1))}getAncestorScrollContainers(e){const t=[];return this.scrollContainers.forEach((s,u)=>{this._scrollableContainsElement(u,e)&&t.push(u)}),t}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,t){let s=li(t),u=e.getElementRef().nativeElement;do{if(s==u)return!0}while(s=s.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Ja(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(h.R0b),h.LFG(Jt),h.LFG(M.K0,8))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Qg=(()=>{class r{constructor(e,t,s,u){this.elementRef=e,this.scrollDispatcher=t,this.ngZone=s,this.dir=u,this._destroyed=new He.x,this._elementScrolled=new ai.y(d=>this.ngZone.runOutsideAngular(()=>Ja(this.elementRef.nativeElement,"scroll").pipe(gt(this._destroyed)).subscribe(d)))}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(e){const t=this.elementRef.nativeElement,s=this.dir&&"rtl"==this.dir.value;null==e.left&&(e.left=s?e.end:e.start),null==e.right&&(e.right=s?e.start:e.end),null!=e.bottom&&(e.top=t.scrollHeight-t.clientHeight-e.bottom),s&&0!=ol()?(null!=e.left&&(e.right=t.scrollWidth-t.clientWidth-e.left),2==ol()?e.left=e.right:1==ol()&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.left=t.scrollWidth-t.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){const t=this.elementRef.nativeElement;Om()?t.scrollTo(e):(null!=e.top&&(t.scrollTop=e.top),null!=e.left&&(t.scrollLeft=e.left))}measureScrollOffset(e){const t="left",s="right",u=this.elementRef.nativeElement;if("top"==e)return u.scrollTop;if("bottom"==e)return u.scrollHeight-u.clientHeight-u.scrollTop;const d=this.dir&&"rtl"==this.dir.value;return"start"==e?e=d?s:t:"end"==e&&(e=d?t:s),d&&2==ol()?e==t?u.scrollWidth-u.clientWidth-u.scrollLeft:u.scrollLeft:d&&1==ol()?e==t?u.scrollLeft+u.scrollWidth-u.clientWidth:-u.scrollLeft:e==t?u.scrollLeft:u.scrollWidth-u.clientWidth-u.scrollLeft}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(h.SBq),h.Y36(Hl),h.Y36(h.R0b),h.Y36(Tn,8))},r.\u0275dir=h.lG2({type:r,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),r})(),ts=(()=>{class r{constructor(e,t,s){this._platform=e,this._change=new He.x,this._changeListener=u=>{this._change.next(u)},this._document=s,t.runOutsideAngular(()=>{if(e.isBrowser){const u=this._getWindow();u.addEventListener("resize",this._changeListener),u.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:t,height:s}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+s,right:e.left+t,height:s,width:t}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,t=this._getWindow(),s=e.documentElement,u=s.getBoundingClientRect();return{top:-u.top||e.body.scrollTop||t.scrollY||s.scrollTop||0,left:-u.left||e.body.scrollLeft||t.scrollX||s.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(es(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(Jt),h.LFG(h.R0b),h.LFG(M.K0,8))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const gv=new h.OlP("VIRTUAL_SCROLLABLE");let Jg=(()=>{class r extends Qg{constructor(e,t,s,u){super(e,t,s,u)}measureViewportSize(e){const t=this.elementRef.nativeElement;return"horizontal"===e?t.clientWidth:t.clientHeight}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(h.SBq),h.Y36(Hl),h.Y36(h.R0b),h.Y36(Tn,8))},r.\u0275dir=h.lG2({type:r,features:[h.qOj]}),r})();const Za=typeof requestAnimationFrame<"u"?vh:zn;let _v=(()=>{class r extends Jg{constructor(e,t,s,u,d,l,n,i){super(e,l,s,d),this.elementRef=e,this._changeDetectorRef=t,this._scrollStrategy=u,this.scrollable=i,this._detachedSubject=new He.x,this._renderedRangeSubject=new He.x,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new ai.y(o=>this._scrollStrategy.scrolledIndexChange.subscribe(c=>Promise.resolve().then(()=>this.ngZone.run(()=>o.next(c))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=Yt.w0.EMPTY,this._viewportChanges=n.change().subscribe(()=>{this.checkViewportSize()}),this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this)}get orientation(){return this._orientation}set orientation(e){this._orientation!==e&&(this._orientation=e,this._calculateSpacerSize())}get appendOnly(){return this._appendOnly}set appendOnly(e){this._appendOnly=ze(e)}ngOnInit(){this.scrollable===this&&super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.scrollable.elementScrolled().pipe(Zi(null),es(0,Za)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()}))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(e){this.ngZone.runOutsideAngular(()=>{this._forOf=e,this._forOf.dataStream.pipe(gt(this._detachedSubject)).subscribe(t=>{const s=t.length;s!==this._dataLength&&(this._dataLength=s,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}measureBoundingClientRectWithScrollOffset(e){return this.getElementRef().nativeElement.getBoundingClientRect()[e]}setTotalContentSize(e){this._totalContentSize!==e&&(this._totalContentSize=e,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(e){(function ud(r,a){return r.start==a.start&&r.end==a.end})(this._renderedRange,e)||(this.appendOnly&&(e={start:0,end:Math.max(this._renderedRange.end,e.end)}),this._renderedRangeSubject.next(this._renderedRange=e),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(e,t="to-start"){e=this.appendOnly&&"to-start"===t?0:e;const u="horizontal"==this.orientation,d=u?"X":"Y";let n=`translate${d}(${Number((u&&this.dir&&"rtl"==this.dir.value?-1:1)*e)}px)`;this._renderedContentOffset=e,"to-end"===t&&(n+=` translate${d}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=n&&(this._renderedContentTransform=n,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(e,t="auto"){const s={behavior:t};"horizontal"===this.orientation?s.start=e:s.top=e,this.scrollable.scrollTo(s)}scrollToIndex(e,t="auto"){this._scrollStrategy.scrollToIndex(e,t)}measureScrollOffset(e){let t;return t=this.scrollable==this?s=>super.measureScrollOffset(s):s=>this.scrollable.measureScrollOffset(s),Math.max(0,t(e??("horizontal"===this.orientation?"start":"top"))-this.measureViewportOffset())}measureViewportOffset(e){let t;const s="left",u="right",d="rtl"==this.dir?.value;t="start"==e?d?u:s:"end"==e?d?s:u:e||("horizontal"===this.orientation?"left":"top");const l=this.scrollable.measureBoundingClientRectWithScrollOffset(t);return this.elementRef.nativeElement.getBoundingClientRect()[t]-l}measureRenderedContentSize(){const e=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?e.offsetWidth:e.offsetHeight}measureRangeSize(e){return this._forOf?this._forOf.measureRangeSize(e,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}_markChangeDetectionNeeded(e){e&&this._runAfterChangeDetection.push(e),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(()=>this._changeDetectorRef.markForCheck());const e=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const t of e)t()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(h.SBq),h.Y36(h.sBO),h.Y36(h.R0b),h.Y36(pv,8),h.Y36(Tn,8),h.Y36(Hl),h.Y36(ts),h.Y36(gv,8))},r.\u0275cmp=h.Xpm({type:r,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(e,t){if(1&e&&h.Gf(uv,7),2&e){let s;h.iGM(s=h.CRH())&&(t._contentWrapper=s.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(e,t){2&e&&h.ekj("cdk-virtual-scroll-orientation-horizontal","horizontal"===t.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==t.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[h._Bn([{provide:Qg,useFactory:(a,e)=>a||e,deps:[Jg,r]}]),h.qOj],ngContentSelectors:hv,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(e,t){1&e&&(h.F$t(),h.TgZ(0,"div",0,1),h.Hsn(2),h.qZA(),h._UZ(3,"div",2)),2&e&&(h.xp6(3),h.Udp("width",t._totalContentWidth)("height",t._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}"],encapsulation:2,changeDetection:0}),r})();function is(r,a,e){if(!e.getBoundingClientRect)return 0;const s=e.getBoundingClientRect();return"horizontal"===r?"start"===a?s.left:s.right:"start"===a?s.top:s.bottom}let bv=(()=>{class r{constructor(e,t,s,u,d,l){this._viewContainerRef=e,this._template=t,this._differs=s,this._viewRepeater=u,this._viewport=d,this.viewChange=new He.x,this._dataSourceChanges=new He.x,this.dataStream=this._dataSourceChanges.pipe(Zi(null),function zg(){return(0,fn.e)((r,a)=>{let e,t=!1;r.subscribe((0,Xe.x)(a,s=>{const u=e;e=s,t&&a.next([u,s]),t=!0}))})}(),(0,oi.w)(([n,i])=>this._changeDataSource(n,i)),Ht(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new He.x,this.dataStream.subscribe(n=>{this._data=n,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe(gt(this._destroyed)).subscribe(n=>{this._renderedRange=n,this.viewChange.observers.length&&l.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(e){this._cdkVirtualForOf=e,Ml(e)?this._dataSourceChanges.next(e):this._dataSourceChanges.next(new Dl(Kt(e)?e:Array.from(e||[])))}get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(e){this._needsUpdate=!0,this._cdkVirtualForTrackBy=e?(t,s)=>e(t+(this._renderedRange?this._renderedRange.start:0),s):void 0}set cdkVirtualForTemplate(e){e&&(this._needsUpdate=!0,this._template=e)}get cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set cdkVirtualForTemplateCacheSize(e){this._viewRepeater.viewCacheSize=Pi(e)}measureRangeSize(e,t){if(e.start>=e.end)return 0;const s=e.start-this._renderedRange.start,u=e.end-e.start;let d,l;for(let n=0;n-1;n--){const i=this._viewContainerRef.get(n+s);if(i&&i.rootNodes.length){l=i.rootNodes[i.rootNodes.length-1];break}}return d&&l?is(t,"end",l)-is(t,"start",d):0}ngDoCheck(){if(this._differ&&this._needsUpdate){const e=this._differ.diff(this._renderedItems);e?this._applyChanges(e):this._updateContext(),this._needsUpdate=!1}}ngOnDestroy(){this._viewport.detach(),this._dataSourceChanges.next(void 0),this._dataSourceChanges.complete(),this.viewChange.complete(),this._destroyed.next(),this._destroyed.complete(),this._viewRepeater.detach()}_onRenderedDataChange(){!this._renderedRange||(this._renderedItems=this._data.slice(this._renderedRange.start,this._renderedRange.end),this._differ||(this._differ=this._differs.find(this._renderedItems).create((e,t)=>this.cdkVirtualForTrackBy?this.cdkVirtualForTrackBy(e,t):t)),this._needsUpdate=!0)}_changeDataSource(e,t){return e&&e.disconnect(this),this._needsUpdate=!0,t?t.connect(this):(0,Me.of)()}_updateContext(){const e=this._data.length;let t=this._viewContainerRef.length;for(;t--;){const s=this._viewContainerRef.get(t);s.context.index=this._renderedRange.start+t,s.context.count=e,this._updateComputedContextProperties(s.context),s.detectChanges()}}_applyChanges(e){this._viewRepeater.applyChanges(e,this._viewContainerRef,(u,d,l)=>this._getEmbeddedViewArgs(u,l),u=>u.item),e.forEachIdentityChange(u=>{this._viewContainerRef.get(u.currentIndex).context.$implicit=u.item});const t=this._data.length;let s=this._viewContainerRef.length;for(;s--;){const u=this._viewContainerRef.get(s);u.context.index=this._renderedRange.start+s,u.context.count=t,this._updateComputedContextProperties(u.context)}}_updateComputedContextProperties(e){e.first=0===e.index,e.last=e.index===e.count-1,e.even=e.index%2==0,e.odd=!e.even}_getEmbeddedViewArgs(e,t){return{templateRef:this._template,context:{$implicit:e.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:t}}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(h.s_b),h.Y36(h.Rgc),h.Y36(h.ZZ4),h.Y36(Ka),h.Y36(_v,4),h.Y36(h.R0b))},r.\u0275dir=h.lG2({type:r,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},features:[h._Bn([{provide:Ka,useClass:$g}])]}),r})(),Vr=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({}),r})(),Gi=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({imports:[wl,Vr,wl,Vr]}),r})();class pa{attach(a){return this._attachedHost=a,a.attach(this)}detach(){let a=this._attachedHost;null!=a&&(this._attachedHost=null,a.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(a){this._attachedHost=a}}class Br extends pa{constructor(a,e,t,s){super(),this.component=a,this.viewContainerRef=e,this.injector=t,this.componentFactoryResolver=s}}class fa extends pa{constructor(a,e,t,s){super(),this.templateRef=a,this.viewContainerRef=e,this.context=t,this.injector=s}get origin(){return this.templateRef.elementRef}attach(a,e=this.context){return this.context=e,super.attach(a)}detach(){return this.context=void 0,super.detach()}}class rs extends pa{constructor(a){super(),this.element=a instanceof h.SBq?a.nativeElement:a}}class ma{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(a){return a instanceof Br?(this._attachedPortal=a,this.attachComponentPortal(a)):a instanceof fa?(this._attachedPortal=a,this.attachTemplatePortal(a)):this.attachDomPortal&&a instanceof rs?(this._attachedPortal=a,this.attachDomPortal(a)):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(a){this._disposeFn=a}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class as extends ma{constructor(a,e,t,s,u){super(),this.outletElement=a,this._componentFactoryResolver=e,this._appRef=t,this._defaultInjector=s,this.attachDomPortal=d=>{const l=d.element,n=this._document.createComment("dom-portal");l.parentNode.insertBefore(n,l),this.outletElement.appendChild(l),this._attachedPortal=d,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(l,n)})},this._document=u}attachComponentPortal(a){const t=(a.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(a.component);let s;return a.viewContainerRef?(s=a.viewContainerRef.createComponent(t,a.viewContainerRef.length,a.injector||a.viewContainerRef.injector),this.setDisposeFn(()=>s.destroy())):(s=t.create(a.injector||this._defaultInjector||h.zs3.NULL),this._appRef.attachView(s.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(s.hostView),s.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(s)),this._attachedPortal=a,s}attachTemplatePortal(a){let e=a.viewContainerRef,t=e.createEmbeddedView(a.templateRef,a.context,{injector:a.injector});return t.rootNodes.forEach(s=>this.outletElement.appendChild(s)),t.detectChanges(),this.setDisposeFn(()=>{let s=e.indexOf(t);-1!==s&&e.remove(s)}),this._attachedPortal=a,t}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(a){return a.hostView.rootNodes[0]}}let pd=(()=>{class r extends ma{constructor(e,t,s){super(),this._componentFactoryResolver=e,this._viewContainerRef=t,this._isInitialized=!1,this.attached=new h.vpe,this.attachDomPortal=u=>{const d=u.element,l=this._document.createComment("dom-portal");u.setAttachedHost(this),d.parentNode.insertBefore(l,d),this._getRootNode().appendChild(d),this._attachedPortal=u,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(d,l)})},this._document=s}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(e){e.setAttachedHost(this);const t=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,u=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),d=t.createComponent(u,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(d.hostView.rootNodes[0]),super.setDisposeFn(()=>d.destroy()),this._attachedPortal=e,this._attachedRef=d,this.attached.emit(d),d}attachTemplatePortal(e){e.setAttachedHost(this);const t=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=t,this.attached.emit(t),t}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(h._Vd),h.Y36(h.s_b),h.Y36(M.K0))},r.\u0275dir=h.lG2({type:r,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[h.qOj]}),r})(),Or=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({}),r})();var an=E(6451);const Hh=Om();class Xg{constructor(a,e){this._viewportRuler=a,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const a=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=a.style.left||"",this._previousHTMLStyles.top=a.style.top||"",a.style.left=mi(-this._previousScrollPosition.left),a.style.top=mi(-this._previousScrollPosition.top),a.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const a=this._document.documentElement,t=a.style,s=this._document.body.style,u=t.scrollBehavior||"",d=s.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,a.classList.remove("cdk-global-scrollblock"),Hh&&(t.scrollBehavior=s.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Hh&&(t.scrollBehavior=u,s.scrollBehavior=d)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width}}class Av{constructor(a,e,t,s){this._scrollDispatcher=a,this._ngZone=e,this._viewportRuler=t,this._config=s,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(a){this._overlayRef=a}enable(){if(this._scrollSubscription)return;const a=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=a.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=a.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class e_{enable(){}disable(){}attach(){}}function Rh(r,a){return a.some(e=>r.bottome.bottom||r.righte.right)}function Ph(r,a){return a.some(e=>r.tope.bottom||r.lefte.right)}class xv{constructor(a,e,t,s){this._scrollDispatcher=a,this._viewportRuler=e,this._ngZone=t,this._config=s,this._scrollSubscription=null}attach(a){this._overlayRef=a}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 e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:t,height:s}=this._viewportRuler.getViewportSize();Rh(e,[{width:t,height:s,bottom:s,right:t,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 t_=(()=>{class r{constructor(e,t,s,u){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=s,this.noop=()=>new e_,this.close=d=>new Av(this._scrollDispatcher,this._ngZone,this._viewportRuler,d),this.block=()=>new Xg(this._viewportRuler,this._document),this.reposition=d=>new xv(this._scrollDispatcher,this._viewportRuler,this._ngZone,d),this._document=u}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(Hl),h.LFG(ts),h.LFG(h.R0b),h.LFG(M.K0))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();class kl{constructor(a){if(this.scrollStrategy=new e_,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,a){const e=Object.keys(a);for(const t of e)void 0!==a[t]&&(this[t]=a[t])}}}class fd{constructor(a,e){this.connectionPair=a,this.scrollableViewProperties=e}}let r_=(()=>{class r{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const t=this._attachedOverlays.indexOf(e);t>-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this.detach()}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(M.K0))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),md=(()=>{class r extends r_{constructor(e,t){super(e),this._ngZone=t,this._keydownListener=s=>{const u=this._attachedOverlays;for(let d=u.length-1;d>-1;d--)if(u[d]._keydownEvents.observers.length>0){const l=u[d]._keydownEvents;this._ngZone?this._ngZone.run(()=>l.next(s)):l.next(s);break}}}add(e){super.add(e),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(M.K0),h.LFG(h.R0b,8))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),gd=(()=>{class r extends r_{constructor(e,t,s){super(e),this._platform=t,this._ngZone=s,this._cursorStyleIsSet=!1,this._pointerDownListener=u=>{this._pointerDownEventTarget=Un(u)},this._clickListener=u=>{const d=Un(u),l="click"===u.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:d;this._pointerDownEventTarget=null;const n=this._attachedOverlays.slice();for(let i=n.length-1;i>-1;i--){const o=n[i];if(o._outsidePointerEvents.observers.length<1||!o.hasAttached())continue;if(o.overlayElement.contains(d)||o.overlayElement.contains(l))break;const c=o._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>c.next(u)):c.next(u)}}}add(e){if(super.add(e),!this._isAttached){const t=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(t)):this._addEventListeners(t),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(M.K0),h.LFG(Jt),h.LFG(h.R0b,8))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),os=(()=>{class r{constructor(e,t){this._platform=t,this._document=e}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||qu()){const s=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let u=0;uthis._backdropClick.next(c),this._backdropTransitionendHandler=c=>{this._disposeBackdrop(c.target)},this._keydownEvents=new He.x,this._outsidePointerEvents=new He.x,s.scrollStrategy&&(this._scrollStrategy=s.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=s.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(a){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const e=this._portalOutlet.attach(a);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,Dt.q)(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),"function"==typeof e?.onDestroy&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),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 a=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),a}dispose(){const a=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),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?.remove(),this._previousHostParent=this._pane=this._host=null,a&&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(a){a!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=a,this.hasAttached()&&(a.attach(this),this.updatePosition()))}updateSize(a){this._config={...this._config,...a},this._updateElementSize()}setDirection(a){this._config={...this._config,direction:a},this._updateElementDirection()}addPanelClass(a){this._pane&&this._toggleClasses(this._pane,a,!0)}removePanelClass(a){this._pane&&this._toggleClasses(this._pane,a,!1)}getDirection(){const a=this._config.direction;return a?"string"==typeof a?a:a.value:"ltr"}updateScrollStrategy(a){a!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=a,this.hasAttached()&&(a.attach(this),a.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const a=this._pane.style;a.width=mi(this._config.width),a.height=mi(this._config.height),a.minWidth=mi(this._config.minWidth),a.minHeight=mi(this._config.minHeight),a.maxWidth=mi(this._config.maxWidth),a.maxHeight=mi(this._config.maxHeight)}_togglePointerEvents(a){this._pane.style.pointerEvents=a?"":"none"}_attachBackdrop(){const a="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),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),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(a)})}):this._backdropElement.classList.add(a)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const a=this._backdropElement;if(a){if(this._animationsDisabled)return void this._disposeBackdrop(a);a.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{a.addEventListener("transitionend",this._backdropTransitionendHandler)}),a.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(a)},500))}}_toggleClasses(a,e,t){const s=Xc(e||[]).filter(u=>!!u);s.length&&(t?a.classList.add(...s):a.classList.remove(...s))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const a=this._ngZone.onStable.pipe(gt((0,an.T)(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._host.remove()),a.unsubscribe())})})}_disposeScrollStrategy(){const a=this._scrollStrategy;a&&(a.disable(),a.detach&&a.detach())}_disposeBackdrop(a){a&&(a.removeEventListener("click",this._backdropClickHandler),a.removeEventListener("transitionend",this._backdropTransitionendHandler),a.remove(),this._backdropElement===a&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const _d="cdk-overlay-connected-position-bounding-box",a_=/([A-Za-z%]+)$/;class o_{constructor(a,e,t,s,u){this._viewportRuler=e,this._document=t,this._platform=s,this._overlayContainer=u,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 He.x,this._resizeSubscription=Yt.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(a)}get positions(){return this._preferredPositions}attach(a){this._validatePositions(),a.hostElement.classList.add(_d),this._overlayRef=a,this._boundingBox=a.hostElement,this._pane=a.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(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const a=this._originRect,e=this._overlayRect,t=this._viewportRect,s=this._containerRect,u=[];let d;for(let l of this._preferredPositions){let n=this._getOriginPoint(a,s,l),i=this._getOverlayPoint(n,e,l),o=this._getOverlayFit(i,e,t,l);if(o.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(l,n);this._canFitWithFlexibleDimensions(o,i,t)?u.push({position:l,origin:n,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(n,l)}):(!d||d.overlayFit.visibleArean&&(n=o,l=i)}return this._isPushed=!1,void this._applyPosition(l.position,l.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(d.position,d.originPoint);this._applyPosition(d.position,d.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Lr(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(_d),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const a=this._lastPosition;if(a){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._getOriginPoint(this._originRect,this._containerRect,a);this._applyPosition(a,e)}else this.apply()}withScrollableContainers(a){return this._scrollables=a,this}withPositions(a){return this._preferredPositions=a,-1===a.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(a){return this._viewportMargin=a,this}withFlexibleDimensions(a=!0){return this._hasFlexibleDimensions=a,this}withGrowAfterOpen(a=!0){return this._growAfterOpen=a,this}withPush(a=!0){return this._canPush=a,this}withLockedPosition(a=!0){return this._positionLocked=a,this}setOrigin(a){return this._origin=a,this}withDefaultOffsetX(a){return this._offsetX=a,this}withDefaultOffsetY(a){return this._offsetY=a,this}withTransformOriginOn(a){return this._transformOriginSelector=a,this}_getOriginPoint(a,e,t){let s,u;if("center"==t.originX)s=a.left+a.width/2;else{const d=this._isRtl()?a.right:a.left,l=this._isRtl()?a.left:a.right;s="start"==t.originX?d:l}return e.left<0&&(s-=e.left),u="center"==t.originY?a.top+a.height/2:"top"==t.originY?a.top:a.bottom,e.top<0&&(u-=e.top),{x:s,y:u}}_getOverlayPoint(a,e,t){let s,u;return s="center"==t.overlayX?-e.width/2:"start"===t.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,u="center"==t.overlayY?-e.height/2:"top"==t.overlayY?0:-e.height,{x:a.x+s,y:a.y+u}}_getOverlayFit(a,e,t,s){const u=s_(e);let{x:d,y:l}=a,n=this._getOffset(s,"x"),i=this._getOffset(s,"y");n&&(d+=n),i&&(l+=i);let p=0-l,m=l+u.height-t.height,g=this._subtractOverflows(u.width,0-d,d+u.width-t.width),f=this._subtractOverflows(u.height,p,m),w=g*f;return{visibleArea:w,isCompletelyWithinViewport:u.width*u.height===w,fitsInViewportVertically:f===u.height,fitsInViewportHorizontally:g==u.width}}_canFitWithFlexibleDimensions(a,e,t){if(this._hasFlexibleDimensions){const s=t.bottom-e.y,u=t.right-e.x,d=bd(this._overlayRef.getConfig().minHeight),l=bd(this._overlayRef.getConfig().minWidth),i=a.fitsInViewportHorizontally||null!=l&&l<=u;return(a.fitsInViewportVertically||null!=d&&d<=s)&&i}return!1}_pushOverlayOnScreen(a,e,t){if(this._previousPushAmount&&this._positionLocked)return{x:a.x+this._previousPushAmount.x,y:a.y+this._previousPushAmount.y};const s=s_(e),u=this._viewportRect,d=Math.max(a.x+s.width-u.width,0),l=Math.max(a.y+s.height-u.height,0),n=Math.max(u.top-t.top-a.y,0),i=Math.max(u.left-t.left-a.x,0);let o=0,c=0;return o=s.width<=u.width?i||-d:a.xg&&!this._isInitialRender&&!this._growAfterOpen&&(d=a.y-g/2)}if("end"===e.overlayX&&!s||"start"===e.overlayX&&s)p=t.width-a.x+this._viewportMargin,o=a.x-this._viewportMargin;else if("start"===e.overlayX&&!s||"end"===e.overlayX&&s)c=a.x,o=t.right-a.x;else{const m=Math.min(t.right-a.x+t.left,a.x),g=this._lastBoundingBoxSize.width;o=2*m,c=a.x-m,o>g&&!this._isInitialRender&&!this._growAfterOpen&&(c=a.x-g/2)}return{top:d,left:c,bottom:l,right:p,width:o,height:u}}_setBoundingBoxStyles(a,e){const t=this._calculateBoundingBoxRect(a,e);!this._isInitialRender&&!this._growAfterOpen&&(t.height=Math.min(t.height,this._lastBoundingBoxSize.height),t.width=Math.min(t.width,this._lastBoundingBoxSize.width));const s={};if(this._hasExactPosition())s.top=s.left="0",s.bottom=s.right=s.maxHeight=s.maxWidth="",s.width=s.height="100%";else{const u=this._overlayRef.getConfig().maxHeight,d=this._overlayRef.getConfig().maxWidth;s.height=mi(t.height),s.top=mi(t.top),s.bottom=mi(t.bottom),s.width=mi(t.width),s.left=mi(t.left),s.right=mi(t.right),s.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",s.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",u&&(s.maxHeight=mi(u)),d&&(s.maxWidth=mi(d))}this._lastBoundingBoxSize=t,Lr(this._boundingBox.style,s)}_resetBoundingBoxStyles(){Lr(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Lr(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(a,e){const t={},s=this._hasExactPosition(),u=this._hasFlexibleDimensions,d=this._overlayRef.getConfig();if(s){const o=this._viewportRuler.getViewportScrollPosition();Lr(t,this._getExactOverlayY(e,a,o)),Lr(t,this._getExactOverlayX(e,a,o))}else t.position="static";let l="",n=this._getOffset(e,"x"),i=this._getOffset(e,"y");n&&(l+=`translateX(${n}px) `),i&&(l+=`translateY(${i}px)`),t.transform=l.trim(),d.maxHeight&&(s?t.maxHeight=mi(d.maxHeight):u&&(t.maxHeight="")),d.maxWidth&&(s?t.maxWidth=mi(d.maxWidth):u&&(t.maxWidth="")),Lr(this._pane.style,t)}_getExactOverlayY(a,e,t){let s={top:"",bottom:""},u=this._getOverlayPoint(e,this._overlayRect,a);return this._isPushed&&(u=this._pushOverlayOnScreen(u,this._overlayRect,t)),"bottom"===a.overlayY?s.bottom=this._document.documentElement.clientHeight-(u.y+this._overlayRect.height)+"px":s.top=mi(u.y),s}_getExactOverlayX(a,e,t){let d,s={left:"",right:""},u=this._getOverlayPoint(e,this._overlayRect,a);return this._isPushed&&(u=this._pushOverlayOnScreen(u,this._overlayRect,t)),d=this._isRtl()?"end"===a.overlayX?"left":"right":"end"===a.overlayX?"right":"left","right"===d?s.right=this._document.documentElement.clientWidth-(u.x+this._overlayRect.width)+"px":s.left=mi(u.x),s}_getScrollVisibility(){const a=this._getOriginRect(),e=this._pane.getBoundingClientRect(),t=this._scrollables.map(s=>s.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Ph(a,t),isOriginOutsideView:Rh(a,t),isOverlayClipped:Ph(e,t),isOverlayOutsideView:Rh(e,t)}}_subtractOverflows(a,...e){return e.reduce((t,s)=>t-Math.max(s,0),a)}_getNarrowedViewportRect(){const a=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,t=this._viewportRuler.getViewportScrollPosition();return{top:t.top+this._viewportMargin,left:t.left+this._viewportMargin,right:t.left+a-this._viewportMargin,bottom:t.top+e-this._viewportMargin,width:a-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(a,e){return"x"===e?a.offsetX??this._offsetX:a.offsetY??this._offsetY}_validatePositions(){}_addPanelClasses(a){this._pane&&Xc(a).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(a=>{this._pane.classList.remove(a)}),this._appliedPanelClasses=[])}_getOriginRect(){const a=this._origin;if(a instanceof h.SBq)return a.nativeElement.getBoundingClientRect();if(a instanceof Element)return a.getBoundingClientRect();const e=a.width||0,t=a.height||0;return{top:a.y,bottom:a.y+t,left:a.x,right:a.x+e,height:t,width:e}}}function Lr(r,a){for(let e in a)a.hasOwnProperty(e)&&(r[e]=a[e]);return r}function bd(r){if("number"!=typeof r&&null!=r){const[a,e]=r.split(a_);return e&&"px"!==e?null:parseFloat(a)}return r||null}function s_(r){return{top:Math.floor(r.top),right:Math.floor(r.right),bottom:Math.floor(r.bottom),left:Math.floor(r.left),width:Math.floor(r.width),height:Math.floor(r.height)}}const kh="cdk-global-overlay-wrapper";class l_{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(a){const e=a.getConfig();this._overlayRef=a,this._width&&!e.width&&a.updateSize({width:this._width}),this._height&&!e.height&&a.updateSize({height:this._height}),a.hostElement.classList.add(kh),this._isDisposed=!1}top(a=""){return this._bottomOffset="",this._topOffset=a,this._alignItems="flex-start",this}left(a=""){return this._xOffset=a,this._xPosition="left",this}bottom(a=""){return this._topOffset="",this._bottomOffset=a,this._alignItems="flex-end",this}right(a=""){return this._xOffset=a,this._xPosition="right",this}start(a=""){return this._xOffset=a,this._xPosition="start",this}end(a=""){return this._xOffset=a,this._xPosition="end",this}width(a=""){return this._overlayRef?this._overlayRef.updateSize({width:a}):this._width=a,this}height(a=""){return this._overlayRef?this._overlayRef.updateSize({height:a}):this._height=a,this}centerHorizontally(a=""){return this.left(a),this._xPosition="center",this}centerVertically(a=""){return this.top(a),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const a=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,t=this._overlayRef.getConfig(),{width:s,height:u,maxWidth:d,maxHeight:l}=t,n=!("100%"!==s&&"100vw"!==s||d&&"100%"!==d&&"100vw"!==d),i=!("100%"!==u&&"100vh"!==u||l&&"100%"!==l&&"100vh"!==l),o=this._xPosition,c=this._xOffset,p="rtl"===this._overlayRef.getConfig().direction;let m="",g="",f="";n?f="flex-start":"center"===o?(f="center",p?g=c:m=c):p?"left"===o||"end"===o?(f="flex-end",m=c):("right"===o||"start"===o)&&(f="flex-start",g=c):"left"===o||"start"===o?(f="flex-start",m=c):("right"===o||"end"===o)&&(f="flex-end",g=c),a.position=this._cssPosition,a.marginLeft=n?"0":m,a.marginTop=i?"0":this._topOffset,a.marginBottom=this._bottomOffset,a.marginRight=n?"0":g,e.justifyContent=f,e.alignItems=i?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const a=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,t=e.style;e.classList.remove(kh),t.justifyContent=t.alignItems=a.marginTop=a.marginBottom=a.marginLeft=a.marginRight=a.position="",this._overlayRef=null,this._isDisposed=!0}}let Ev=(()=>{class r{constructor(e,t,s,u){this._viewportRuler=e,this._document=t,this._platform=s,this._overlayContainer=u}global(){return new l_}flexibleConnectedTo(e){return new o_(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(ts),h.LFG(M.K0),h.LFG(Jt),h.LFG(os))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),c_=0,_n=(()=>{class r{constructor(e,t,s,u,d,l,n,i,o,c,p,m){this.scrollStrategies=e,this._overlayContainer=t,this._componentFactoryResolver=s,this._positionBuilder=u,this._keyboardDispatcher=d,this._injector=l,this._ngZone=n,this._document=i,this._directionality=o,this._location=c,this._outsideClickDispatcher=p,this._animationsModuleType=m}create(e){const t=this._createHostElement(),s=this._createPaneElement(t),u=this._createPortalOutlet(s),d=new kl(e);return d.direction=d.direction||this._directionality.value,new ss(u,t,s,d,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(e){const t=this._document.createElement("div");return t.id="cdk-overlay-"+c_++,t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(h.z2F)),new as(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(t_),h.LFG(os),h.LFG(h._Vd),h.LFG(Ev),h.LFG(md),h.LFG(h.zs3),h.LFG(h.R0b),h.LFG(M.K0),h.LFG(Tn),h.LFG(M.Ye),h.LFG(gd),h.LFG(h.QbO,8))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac}),r})();const h_={provide:new h.OlP("cdk-connected-overlay-scroll-strategy"),deps:[_n],useFactory:function u_(r){return()=>r.scrollStrategies.reposition()}};let Xa=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({providers:[_n,h_],imports:[wl,Or,Gi,Gi]}),r})();class Bh{}const ga="*";function ci(r,a){return{type:7,name:r,definitions:a,options:{}}}function vt(r,a=null){return{type:4,styles:a,timings:r}}function Oh(r,a=null){return{type:3,steps:r,options:a}}function f_(r,a=null){return{type:2,steps:r,options:a}}function Ie(r){return{type:6,styles:r,offset:null}}function mt(r,a,e){return{type:0,name:r,styles:a,options:e}}function bt(r,a,e=null){return{type:1,expr:r,animation:a,options:e}}function Cd(r=null){return{type:9,options:r}}function Vl(r,a,e=null){return{type:11,selector:r,animation:a,options:e}}function m_(r){Promise.resolve(null).then(r)}class Ol{constructor(a=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=a+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(a=>a()),this._onDoneFns=[])}onStart(a){this._originalOnStartFns.push(a),this._onStartFns.push(a)}onDone(a){this._originalOnDoneFns.push(a),this._onDoneFns.push(a)}onDestroy(a){this._onDestroyFns.push(a)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){m_(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(a=>a()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(a=>a()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(a){this._position=this.totalTime?a*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(a){const e="start"==a?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class Lh{constructor(a){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=a;let e=0,t=0,s=0;const u=this.players.length;0==u?m_(()=>this._onFinish()):this.players.forEach(d=>{d.onDone(()=>{++e==u&&this._onFinish()}),d.onDestroy(()=>{++t==u&&this._onDestroy()}),d.onStart(()=>{++s==u&&this._onStart()})}),this.totalTime=this.players.reduce((d,l)=>Math.max(d,l.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(a=>a()),this._onDoneFns=[])}init(){this.players.forEach(a=>a.init())}onStart(a){this._onStartFns.push(a)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(a=>a()),this._onStartFns=[])}onDone(a){this._onDoneFns.push(a)}onDestroy(a){this._onDestroyFns.push(a)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(a=>a.play())}pause(){this.players.forEach(a=>a.pause())}restart(){this.players.forEach(a=>a.restart())}finish(){this._onFinish(),this.players.forEach(a=>a.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(a=>a.destroy()),this._onDestroyFns.forEach(a=>a()),this._onDestroyFns=[])}reset(){this.players.forEach(a=>a.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(a){const e=a*this.totalTime;this.players.forEach(t=>{const s=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(s)})}getPosition(){const a=this.players.reduce((e,t)=>null===e||t.totalTime>e.totalTime?t:e,null);return null!=a?a.getPosition():0}beforeDestroy(){this.players.forEach(a=>{a.beforeDestroy&&a.beforeDestroy()})}triggerCallback(a){const e="start"==a?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}const g_=["connectionContainer"],vT=["inputContainer"],Fh=["label"];function Uh(r,a){1&r&&(h.ynx(0),h.TgZ(1,"div",14),h._UZ(2,"div",15)(3,"div",16)(4,"div",17),h.qZA(),h.TgZ(5,"div",18),h._UZ(6,"div",15)(7,"div",16)(8,"div",17),h.qZA(),h.BQk())}function mr(r,a){if(1&r){const e=h.EpF();h.TgZ(0,"div",19),h.NdJ("cdkObserveContent",function(){h.CHM(e);const s=h.oxw();return h.KtG(s.updateOutlineGap())}),h.Hsn(1,1),h.qZA()}if(2&r){const e=h.oxw();h.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)}}function Iv(r,a){if(1&r&&(h.ynx(0),h.Hsn(1,2),h.TgZ(2,"span"),h._uU(3),h.qZA(),h.BQk()),2&r){const e=h.oxw(2);h.xp6(3),h.Oqu(e._control.placeholder)}}function __(r,a){1&r&&h.Hsn(0,3,["*ngSwitchCase","true"])}function gr(r,a){1&r&&(h.TgZ(0,"span",23),h._uU(1," *"),h.qZA())}function Wn(r,a){if(1&r){const e=h.EpF();h.TgZ(0,"label",20,21),h.NdJ("cdkObserveContent",function(){h.CHM(e);const s=h.oxw();return h.KtG(s.updateOutlineGap())}),h.YNc(2,Iv,4,1,"ng-container",12),h.YNc(3,__,1,0,"ng-content",12),h.YNc(4,gr,2,0,"span",22),h.qZA()}if(2&r){const e=h.oxw();h.ekj("mat-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-form-field-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-accent","accent"==e.color)("mat-warn","warn"==e.color),h.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),h.uIk("for",e._control.id)("aria-owns",e._control.id),h.xp6(2),h.Q6J("ngSwitchCase",!1),h.xp6(1),h.Q6J("ngSwitchCase",!0),h.xp6(1),h.Q6J("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function $n(r,a){1&r&&(h.TgZ(0,"div",24),h.Hsn(1,4),h.qZA())}function b_(r,a){if(1&r&&(h.TgZ(0,"div",25),h._UZ(1,"span",26),h.qZA()),2&r){const e=h.oxw();h.xp6(1),h.ekj("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function C_(r,a){if(1&r&&(h.TgZ(0,"div"),h.Hsn(1,5),h.qZA()),2&r){const e=h.oxw();h.Q6J("@transitionMessages",e._subscriptAnimationState)}}function kv(r,a){if(1&r&&(h.TgZ(0,"div",30),h._uU(1),h.qZA()),2&r){const e=h.oxw(2);h.Q6J("id",e._hintLabelId),h.xp6(1),h.Oqu(e.hintLabel)}}function Vv(r,a){if(1&r&&(h.TgZ(0,"div",27),h.YNc(1,kv,2,2,"div",28),h.Hsn(2,6),h._UZ(3,"div",29),h.Hsn(4,7),h.qZA()),2&r){const e=h.oxw();h.Q6J("@transitionMessages",e._subscriptAnimationState),h.xp6(1),h.Q6J("ngIf",e.hintLabel)}}const Bv=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Ov=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let Nh=0;const ls=new h.OlP("MatError");let qh=(()=>{class r{constructor(e,t){this.id="mat-error-"+Nh++,e||t.nativeElement.setAttribute("aria-live","polite")}}return r.\u0275fac=function(e){return new(e||r)(h.$8M("aria-live"),h.Y36(h.SBq))},r.\u0275dir=h.lG2({type:r,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(e,t){2&e&&h.uIk("id",t.id)},inputs:{id:"id"},features:[h._Bn([{provide:ls,useExisting:r}])]}),r})();const w_={transitionMessages:ci("transitionMessages",[mt("enter",Ie({opacity:1,transform:"translateY(0%)"})),bt("void => enter",[Ie({opacity:0,transform:"translateY(-5px)"}),vt("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let wd=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275dir=h.lG2({type:r}),r})(),Fv=0;const Gh=new h.OlP("MatHint");let y_=(()=>{class r{constructor(){this.align="start",this.id="mat-hint-"+Fv++}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275dir=h.lG2({type:r,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(e,t){2&e&&(h.uIk("id",t.id)("align",null),h.ekj("mat-form-field-hint-end","end"===t.align))},inputs:{align:"align",id:"id"},features:[h._Bn([{provide:Gh,useExisting:r}])]}),r})(),cs=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275dir=h.lG2({type:r,selectors:[["mat-label"]]}),r})(),yd=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275dir=h.lG2({type:r,selectors:[["mat-placeholder"]]}),r})();const Wh=new h.OlP("MatPrefix"),A_=new h.OlP("MatSuffix");let $h=0;const T_=zi(class{constructor(r){this._elementRef=r}},"primary"),E_=new h.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Qh=new h.OlP("MatFormField");let Jh=(()=>{class r extends T_{constructor(e,t,s,u,d,l,n){super(e),this._changeDetectorRef=t,this._dir=s,this._defaults=u,this._platform=d,this._ngZone=l,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new He.x,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+$h++,this._labelId="mat-form-field-label-"+$h++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==n,this.appearance=u?.appearance||"legacy",u&&(this._hideRequiredMarker=Boolean(u.hideRequiredMarker),u.color&&(this.color=this.defaultColor=u.color))}get appearance(){return this._appearance}set appearance(e){const t=this._appearance;this._appearance=e||this._defaults?.appearance||"legacy","outline"===this._appearance&&t!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=ze(e)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(e){this._explicitFormFieldControl=e}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${e.controlType}`),e.stateChanges.pipe(Zi(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(gt(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(gt(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,an.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Zi(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Zi(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(gt(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(e){const t=this._control?this._control.ngControl:null;return t&&t[e]}_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,Ja(this._label.nativeElement,"transitionend").pipe((0,Dt.q)(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 e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const t=this._hintChildren?this._hintChildren.find(u=>"start"===u.align):null,s=this._hintChildren?this._hintChildren.find(u=>"end"===u.align):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),s&&e.push(s.id)}else this._errorChildren&&e.push(...this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(e)}}_validateControlChild(){}updateOutlineGap(){const e=this._label?this._label.nativeElement:null,t=this._connectionContainerRef.nativeElement,s=".mat-form-field-outline-start",u=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!e||!e.children.length||!e.textContent.trim()){const o=t.querySelectorAll(`${s}, ${u}`);for(let c=0;c0?.75*g+10:0}for(let o=0;o{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({imports:[M.ez,Ye,pl,Ye]}),r})();const Zh={provide:new h.OlP("mat-select-scroll-strategy"),deps:[_n],useFactory:function D_(r){return()=>r.scrollStrategies.reposition()}};let us=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({providers:[Zh],imports:[M.ez,Xa,Ch,Ye,Vr,to,Ch,Ye]}),r})();const OT=["tooltip"],Jv="tooltip-panel",Je=ur({passive:!0}),P_=new h.OlP("mat-tooltip-scroll-strategy"),Zv={provide:P_,deps:[_n],useFactory:function hs(r){return()=>r.scrollStrategies.reposition({scrollThrottle:20})}},vd=new h.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function Ad(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let ii=(()=>{class r{constructor(e,t,s,u,d,l,n,i,o,c,p,m){this._overlay=e,this._elementRef=t,this._scrollDispatcher=s,this._viewContainerRef=u,this._ngZone=d,this._platform=l,this._ariaDescriber=n,this._focusMonitor=i,this._dir=c,this._defaultOptions=p,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new He.x,this._scrollStrategy=o,this._document=m,p&&(p.position&&(this.position=p.position),p.touchGestures&&(this.touchGestures=p.touchGestures)),c.change.pipe(gt(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(e){this._disabled=ze(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=Pi(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=Pi(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).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,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(gt(this._destroyed)).subscribe(e=>{e?"keyboard"===e&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([t,s])=>{e.removeEventListener(t,s,Je)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const t=this._createOverlay();this._detach(),this._portal=this._portal||new Br(this._tooltipComponent,this._viewContainerRef);const s=this._tooltipInstance=t.attach(this._portal).instance;s._triggerElement=this._elementRef.nativeElement,s._mouseLeaveHideDelay=this._hideDelay,s.afterHidden().pipe(gt(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),s.show(e)}hide(e=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(e)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const e=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),t=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(e);return t.positionChanges.pipe(gt(this._destroyed)).subscribe(s=>{this._updateCurrentPositionClass(s.connectionPair),this._tooltipInstance&&s.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:t,panelClass:`${this._cssClassPrefix}-${Jv}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(gt(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(gt(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(gt(this._destroyed)).subscribe(s=>{this._isTooltipVisible()&&27===s.keyCode&&!hr(s)&&(s.preventDefault(),s.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){const t=e.getConfig().positionStrategy,s=this._getOrigin(),u=this._getOverlayPosition();t.withPositions([this._addOffset({...s.main,...u.main}),this._addOffset({...s.fallback,...u.fallback})])}_addOffset(e){return e}_getOrigin(){const e=!this._dir||"ltr"==this._dir.value,t=this.position;let s;"above"==t||"below"==t?s={originX:"center",originY:"above"==t?"top":"bottom"}:"before"==t||"left"==t&&e||"right"==t&&!e?s={originX:"start",originY:"center"}:("after"==t||"right"==t&&e||"left"==t&&!e)&&(s={originX:"end",originY:"center"});const{x:u,y:d}=this._invertPosition(s.originX,s.originY);return{main:s,fallback:{originX:u,originY:d}}}_getOverlayPosition(){const e=!this._dir||"ltr"==this._dir.value,t=this.position;let s;"above"==t?s={overlayX:"center",overlayY:"bottom"}:"below"==t?s={overlayX:"center",overlayY:"top"}:"before"==t||"left"==t&&e||"right"==t&&!e?s={overlayX:"end",overlayY:"center"}:("after"==t||"right"==t&&e||"left"==t&&!e)&&(s={overlayX:"start",overlayY:"center"});const{x:u,y:d}=this._invertPosition(s.overlayX,s.overlayY);return{main:s,fallback:{overlayX:u,overlayY:d}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,Dt.q)(1),gt(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,t){return"above"===this.position||"below"===this.position?"top"===t?t="bottom":"bottom"===t&&(t="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:t}}_updateCurrentPositionClass(e){const{overlayY:t,originX:s,originY:u}=e;let d;if(d="center"===t?this._dir&&"rtl"===this._dir.value?"end"===s?"left":"right":"start"===s?"left":"right":"bottom"===t&&"top"===u?"above":"below",d!==this._currentPosition){const l=this._overlayRef;if(l){const n=`${this._cssClassPrefix}-${Jv}-`;l.removePanelClass(n+this._currentPosition),l.addPanelClass(n+d)}this._currentPosition=d}}_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 e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",t=>{const s=t.relatedTarget;(!s||!this._overlayRef?.overlayElement.contains(s))&&this.hide()}],["wheel",t=>this._wheelListener(t)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const t=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",t],["touchcancel",t])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([t,s])=>{this._elementRef.nativeElement.addEventListener(t,s,Je)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const t=this._document.elementFromPoint(e.clientX,e.clientY),s=this._elementRef.nativeElement;t!==s&&!s.contains(t)&&this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const t=this._elementRef.nativeElement,s=t.style;("on"===e||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(s.userSelect=s.msUserSelect=s.webkitUserSelect=s.MozUserSelect="none"),("on"===e||!t.draggable)&&(s.webkitUserDrag="none"),s.touchAction="none",s.webkitTapHighlightColor="transparent"}}}return r.\u0275fac=function(e){h.$Z()},r.\u0275dir=h.lG2({type:r,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),r})(),I_=(()=>{class r extends ii{constructor(e,t,s,u,d,l,n,i,o,c,p,m){super(e,t,s,u,d,l,n,i,o,c,p,m),this._tooltipComponent=V_}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(_n),h.Y36(h.SBq),h.Y36(Hl),h.Y36(h.s_b),h.Y36(h.R0b),h.Y36(Jt),h.Y36(td),h.Y36(Sn),h.Y36(P_),h.Y36(Tn,8),h.Y36(vd,8),h.Y36(M.K0))},r.\u0275dir=h.lG2({type:r,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[h.qOj]}),r})(),k_=(()=>{class r{constructor(e,t){this._changeDetectorRef=e,this._visibility="initial",this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new He.x,this._animationsDisabled="NoopAnimations"===t}show(e){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:e}){(!e||!this._triggerElement.contains(e))&&this.hide(this._mouseLeaveHideDelay)}_onShow(){}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){const t=this._tooltip.nativeElement,s=this._showAnimation,u=this._hideAnimation;if(t.classList.remove(e?u:s),t.classList.add(e?s:u),this._isVisible=e,e&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const d=getComputedStyle(t);("0s"===d.getPropertyValue("animation-duration")||"none"===d.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(t.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(h.sBO),h.Y36(h.QbO,8))},r.\u0275dir=h.lG2({type:r}),r})(),V_=(()=>{class r extends k_{constructor(e,t,s){super(e,s),this._breakpointObserver=t,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)"),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(h.sBO),h.Y36(nh),h.Y36(h.QbO,8))},r.\u0275cmp=h.Xpm({type:r,selectors:[["mat-tooltip-component"]],viewQuery:function(e,t){if(1&e&&h.Gf(OT,7),2&e){let s;h.iGM(s=h.CRH())&&(t._tooltip=s.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,t){1&e&&h.NdJ("mouseleave",function(u){return t._handleMouseLeave(u)}),2&e&&h.Udp("zoom",t.isVisible()?1:null)},features:[h.qOj],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(e,t){if(1&e&&(h.TgZ(0,"div",0,1),h.NdJ("animationend",function(u){return t._handleAnimationEnd(u)}),h.ALo(2,"async"),h._uU(3),h.qZA()),2&e){let s;h.ekj("mat-tooltip-handset",null==(s=h.lcZ(2,4,t._isHandset))?null:s.matches),h.Q6J("ngClass",t.tooltipClass),h.xp6(3),h.Oqu(t.message)}},dependencies:[M.mk,M.Ov],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}"],encapsulation:2,changeDetection:0}),r})(),jl=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({providers:[Zv],imports:[$a,M.ez,Xa,Ye,Ye,Vr]}),r})(),io=(()=>{class r{constructor(){this.changes=new He.x,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(e,t,s)=>{if(0==s||0==t)return`0 of ${s}`;const u=e*t;return`${u+1} \u2013 ${u<(s=Math.max(s,0))?Math.min(u+t,s):u+t} of ${s}`}}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const tA={provide:io,deps:[[new h.FiY,new h.tp0,io]],useFactory:function eA(r){return r||new io}};let _a=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({providers:[tA],imports:[M.ez,vi,us,jl,Ye]}),r})();var ps=E(1005);const aA=["mat-menu-item",""];function oA(r,a){1&r&&(h.O4$(),h.TgZ(0,"svg",2),h._UZ(1,"polygon",3),h.qZA())}const j_=["*"];function F_(r,a){if(1&r){const e=h.EpF();h.TgZ(0,"div",0),h.NdJ("keydown",function(s){h.CHM(e);const u=h.oxw();return h.KtG(u._handleKeydown(s))})("click",function(){h.CHM(e);const s=h.oxw();return h.KtG(s.closed.emit("click"))})("@transformMenu.start",function(s){h.CHM(e);const u=h.oxw();return h.KtG(u._onAnimationStart(s))})("@transformMenu.done",function(s){h.CHM(e);const u=h.oxw();return h.KtG(u._onAnimationDone(s))}),h.TgZ(1,"div",1),h.Hsn(2),h.qZA()()}if(2&r){const e=h.oxw();h.Q6J("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),h.uIk("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const Fl={transformMenu:ci("transformMenu",[mt("void",Ie({opacity:0,transform:"scale(0.8)"})),bt("void => enter",vt("120ms cubic-bezier(0, 0, 0.2, 1)",Ie({opacity:1,transform:"scale(1)"}))),bt("* => void",vt("100ms 25ms linear",Ie({opacity:0})))]),fadeInItems:ci("fadeInItems",[mt("showing",Ie({opacity:1})),bt("void => *",[Ie({opacity:0}),vt("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},U_=new h.OlP("MatMenuContent"),N_=new h.OlP("MAT_MENU_PANEL"),q_=pr(yl(class{}));let ba=(()=>{class r extends q_{constructor(e,t,s,u,d){super(),this._elementRef=e,this._document=t,this._focusMonitor=s,this._parentMenu=u,this._changeDetectorRef=d,this.role="menuitem",this._hovered=new He.x,this._focused=new He.x,this._highlighted=!1,this._triggersSubmenu=!1,u?.addItem?.(this)}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),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(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const e=this._elementRef.nativeElement.cloneNode(!0),t=e.querySelectorAll("mat-icon, .material-icons");for(let s=0;s{class r{constructor(e,t,s,u){this._elementRef=e,this._ngZone=t,this._defaultOptions=s,this._changeDetectorRef=u,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new h.n_E,this._tabSubscription=Yt.w0.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new He.x,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new h.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+G_++}get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(e){this._overlapTrigger=ze(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=ze(e)}set panelClass(e){const t=this._previousPanelClass;t&&t.length&&t.split(" ").forEach(s=>{this._classList[s]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(s=>{this._classList[s]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(e){this.panelClass=e}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new ah(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Zi(this._directDescendantItems),(0,oi.w)(e=>(0,an.T)(...e.map(t=>t._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{const t=this._keyManager;if("enter"===this._panelAnimationState&&t.activeItem?._hasFocus()){const s=e.toArray(),u=Math.max(0,Math.min(s.length-1,t.activeItemIndex||0));s[u]&&!s[u].disabled?t.setActiveItem(u):t.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(Zi(this._directDescendantItems),(0,oi.w)(t=>(0,an.T)(...t.map(s=>s._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const t=e.keyCode,s=this._keyManager;switch(t){case 27:hr(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(38===t||40===t)&&s.setFocusOrigin("keyboard"),void s.onKeydown(e)}e.stopPropagation()}focusFirstItem(e="program"){this._ngZone.onStable.pipe((0,Dt.q)(1)).subscribe(()=>{let t=null;if(this._directDescendantItems.length&&(t=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!t||!t.contains(document.activeElement)){const s=this._keyManager;s.setFocusOrigin(e).setFirstItemActive(),!s.activeItem&&t&&t.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const t=Math.min(this._baseElevation+e,24),s=`${this._elevationPrefix}${t}`,u=Object.keys(this._classList).find(d=>d.startsWith(this._elevationPrefix));(!u||u===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[s]=!0,this._previousElevation=s)}setPositionClasses(e=this.xPosition,t=this.yPosition){const s=this._classList;s["mat-menu-before"]="before"===e,s["mat-menu-after"]="after"===e,s["mat-menu-above"]="above"===t,s["mat-menu-below"]="below"===t,this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(Zi(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(h.SBq),h.Y36(h.R0b),h.Y36(z_),h.Y36(h.sBO))},r.\u0275dir=h.lG2({type:r,contentQueries:function(e,t,s){if(1&e&&(h.Suo(s,U_,5),h.Suo(s,ba,5),h.Suo(s,ba,4)),2&e){let u;h.iGM(u=h.CRH())&&(t.lazyContent=u.first),h.iGM(u=h.CRH())&&(t._allItems=u),h.iGM(u=h.CRH())&&(t.items=u)}},viewQuery:function(e,t){if(1&e&&h.Gf(h.Rgc,5),2&e){let s;h.iGM(s=h.CRH())&&(t.templateRef=s.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),r})(),W_=(()=>{class r extends jr{constructor(e,t,s,u){super(e,t,s,u),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(h.SBq),h.Y36(h.R0b),h.Y36(z_),h.Y36(h.sBO))},r.\u0275cmp=h.Xpm({type:r,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,t){2&e&&h.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[h._Bn([{provide:N_,useExisting:r}]),h.qOj],ngContentSelectors:j_,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(e,t){1&e&&(h.F$t(),h.YNc(0,F_,3,6,"ng-template"))},dependencies:[M.mk],styles:['mat-menu{display:none}.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;position:relative}.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;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}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}'],encapsulation:2,data:{animation:[Fl.transformMenu,Fl.fadeInItems]},changeDetection:0}),r})();const $_=new h.OlP("mat-menu-scroll-strategy"),dA={provide:$_,deps:[_n],useFactory:function cA(r){return()=>r.scrollStrategies.reposition()}},ep=ur({passive:!0});let uA=(()=>{class r{constructor(e,t,s,u,d,l,n,i,o){this._overlay=e,this._element=t,this._viewContainerRef=s,this._menuItemInstance=l,this._dir=n,this._focusMonitor=i,this._ngZone=o,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=Yt.w0.EMPTY,this._hoverSubscription=Yt.w0.EMPTY,this._menuCloseSubscription=Yt.w0.EMPTY,this._handleTouchStart=c=>{kr(c)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new h.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new h.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=u,this._parentMaterialMenu=d instanceof jr?d:void 0,t.nativeElement.addEventListener("touchstart",this._handleTouchStart,ep),l&&(l._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(t=>{this._destroyMenu(t),("click"===t||"tab"===t)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(t)})))}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,ep),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(){const e=this.menu;if(this._menuOpen||!e)return;const t=this._createOverlay(e),s=t.getConfig(),u=s.positionStrategy;this._setPosition(e,u),s.hasBackdrop=e.hasBackdrop??!this.triggersSubmenu(),t.attach(this._getPortal(e)),e.lazyContent&&e.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(e),e instanceof jr&&(e._startAnimation(),e._directDescendantItems.changes.pipe(gt(e.close)).subscribe(()=>{u.withLockedPosition(!1).reapplyLastPosition(),u.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;const t=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,t instanceof jr?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe((0,ge.h)(s=>"void"===s.toState),(0,Dt.q)(1),gt(t.lazyContent._attached)).subscribe({next:()=>t.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),t?.lazyContent?.detach())}_initMenu(e){e.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,e.direction=this.dir,this._setMenuElevation(e),e.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(e){if(e.setElevation){let t=0,s=e.parentMenu;for(;s;)t++,s=s.parentMenu;e.setElevation(t)}}_setIsMenuOpen(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e)}_createOverlay(e){if(!this._overlayRef){const t=this._getOverlayConfig(e);this._subscribeToPositions(e,t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(e){return new kl({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e,t){e.setPositionClasses&&t.positionChanges.subscribe(s=>{const u="start"===s.connectionPair.overlayX?"after":"before",d="top"===s.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>e.setPositionClasses(u,d)):e.setPositionClasses(u,d)})}_setPosition(e,t){let[s,u]="before"===e.xPosition?["end","start"]:["start","end"],[d,l]="above"===e.yPosition?["bottom","top"]:["top","bottom"],[n,i]=[d,l],[o,c]=[s,u],p=0;if(this.triggersSubmenu()){if(c=s="before"===e.xPosition?"start":"end",u=o="end"===s?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const m=this._parentMaterialMenu.items.first;this._parentInnerPadding=m?m._getHostElement().offsetTop:0}p="bottom"===d?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(n="top"===d?"bottom":"top",i="top"===l?"bottom":"top");t.withPositions([{originX:s,originY:n,overlayX:o,overlayY:d,offsetY:p},{originX:u,originY:n,overlayX:c,overlayY:d,offsetY:p},{originX:s,originY:i,overlayX:o,overlayY:l,offsetY:-p},{originX:u,originY:i,overlayX:c,overlayY:l,offsetY:-p}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),t=this._overlayRef.detachments(),s=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,Me.of)(),u=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,ge.h)(d=>d!==this._menuItemInstance),(0,ge.h)(()=>this._menuOpen)):(0,Me.of)();return(0,an.T)(e,s,u,t)}_handleMousedown(e){lh(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){const t=e.keyCode;(13===t||32===t)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===t&&"ltr"===this.dir||37===t&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,ge.h)(e=>e===this._menuItemInstance&&!e.disabled),(0,ps.g)(0,zn)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof jr&&this.menu._isAnimating?this.menu._animationDone.pipe((0,Dt.q)(1),(0,ps.g)(0,zn),gt(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new fa(e.templateRef,this._viewContainerRef)),this._portal}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(_n),h.Y36(h.SBq),h.Y36(h.s_b),h.Y36($_),h.Y36(N_,8),h.Y36(ba,10),h.Y36(Tn,8),h.Y36(Sn),h.Y36(h.R0b))},r.\u0275dir=h.lG2({type:r,hostVars:3,hostBindings:function(e,t){1&e&&h.NdJ("click",function(u){return t._handleClick(u)})("mousedown",function(u){return t._handleMousedown(u)})("keydown",function(u){return t._handleKeydown(u)}),2&e&&h.uIk("aria-haspopup",t.menu?"menu":null)("aria-expanded",t.menuOpen||null)("aria-controls",t.menuOpen?t.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),r})(),Y_=(()=>{class r extends uA{}return r.\u0275fac=function(){let a;return function(t){return(a||(a=h.n5z(r)))(t||r)}}(),r.\u0275dir=h.lG2({type:r,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[h.qOj]}),r})(),Fr=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({providers:[dA],imports:[M.ez,Ye,En,Xa,Vr,Ye]}),r})();const hA=["*"];let Ul;function fs(r){return function pA(){if(void 0===Ul&&(Ul=null,typeof window<"u")){const r=window;void 0!==r.trustedTypes&&(Ul=r.trustedTypes.createPolicy("angular#components",{createHTML:a=>a}))}return Ul}()?.createHTML(r)||r}function Q_(r){return Error(`Unable to find icon with the name "${r}"`)}function K_(r){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${r}".`)}function xd(r){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${r}".`)}class no{constructor(a,e,t){this.url=a,this.svgText=e,this.options=t}}let ms=(()=>{class r{constructor(e,t,s,u){this._httpClient=e,this._sanitizer=t,this._errorHandler=u,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=s}addSvgIcon(e,t,s){return this.addSvgIconInNamespace("",e,t,s)}addSvgIconLiteral(e,t,s){return this.addSvgIconLiteralInNamespace("",e,t,s)}addSvgIconInNamespace(e,t,s,u){return this._addSvgIconConfig(e,t,new no(s,null,u))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,t,s,u){const d=this._sanitizer.sanitize(h.q3G.HTML,s);if(!d)throw xd(s);const l=fs(d);return this._addSvgIconConfig(e,t,new no("",l,u))}addSvgIconSet(e,t){return this.addSvgIconSetInNamespace("",e,t)}addSvgIconSetLiteral(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}addSvgIconSetInNamespace(e,t,s){return this._addSvgIconSetConfig(e,new no(t,null,s))}addSvgIconSetLiteralInNamespace(e,t,s){const u=this._sanitizer.sanitize(h.q3G.HTML,t);if(!u)throw xd(t);const d=fs(u);return this._addSvgIconSetConfig(e,new no("",d,s))}registerFontClassAlias(e,t=e){return this._fontCssClassesByAlias.set(e,t),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const t=this._sanitizer.sanitize(h.q3G.RESOURCE_URL,e);if(!t)throw K_(e);const s=this._cachedIconsByUrl.get(t);return s?(0,Me.of)(Sd(s)):this._loadSvgIconFromConfig(new no(e,null)).pipe((0,Rt.b)(u=>this._cachedIconsByUrl.set(t,u)),(0,ct.U)(u=>Sd(u)))}getNamedSvgIcon(e,t=""){const s=X_(t,e);let u=this._svgIconConfigs.get(s);if(u)return this._getSvgFromConfig(u);if(u=this._getIconConfigFromResolvers(t,e),u)return this._svgIconConfigs.set(s,u),this._getSvgFromConfig(u);const d=this._iconSetConfigs.get(t);return d?this._getSvgFromIconSetConfigs(e,d):(0,Di._)(Q_(s))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?(0,Me.of)(Sd(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe((0,ct.U)(t=>Sd(t)))}_getSvgFromIconSetConfigs(e,t){const s=this._extractIconWithNameFromAnySet(e,t);return s?(0,Me.of)(s):Sr(t.filter(d=>!d.svgText).map(d=>this._loadSvgIconSetFromConfig(d).pipe((0,Xi.K)(l=>{const i=`Loading icon set URL: ${this._sanitizer.sanitize(h.q3G.RESOURCE_URL,d.url)} failed: ${l.message}`;return this._errorHandler.handleError(new Error(i)),(0,Me.of)(null)})))).pipe((0,ct.U)(()=>{const d=this._extractIconWithNameFromAnySet(e,t);if(!d)throw Q_(e);return d}))}_extractIconWithNameFromAnySet(e,t){for(let s=t.length-1;s>=0;s--){const u=t[s];if(u.svgText&&u.svgText.toString().indexOf(e)>-1){const d=this._svgElementFromConfig(u),l=this._extractSvgIconFromSet(d,e,u.options);if(l)return l}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe((0,Rt.b)(t=>e.svgText=t),(0,ct.U)(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?(0,Me.of)(null):this._fetchIcon(e).pipe((0,Rt.b)(t=>e.svgText=t))}_extractSvgIconFromSet(e,t,s){const u=e.querySelector(`[id="${t}"]`);if(!u)return null;const d=u.cloneNode(!0);if(d.removeAttribute("id"),"svg"===d.nodeName.toLowerCase())return this._setSvgAttributes(d,s);if("symbol"===d.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(d),s);const l=this._svgElementFromString(fs(""));return l.appendChild(d),this._setSvgAttributes(l,s)}_svgElementFromString(e){const t=this._document.createElement("DIV");t.innerHTML=e;const s=t.querySelector("svg");if(!s)throw Error(" tag not found");return s}_toSvgElement(e){const t=this._svgElementFromString(fs("")),s=e.attributes;for(let u=0;ufs(i)),Ha(()=>this._inProgressUrlFetches.delete(d)),(0,Hs.B)());return this._inProgressUrlFetches.set(d,n),n}_addSvgIconConfig(e,t,s){return this._svgIconConfigs.set(X_(e,t),s),this}_addSvgIconSetConfig(e,t){const s=this._iconSetConfigs.get(e);return s?s.push(t):this._iconSetConfigs.set(e,[t]),this}_svgElementFromConfig(e){if(!e.svgElement){const t=this._svgElementFromString(e.svgText);this._setSvgAttributes(t,e.options),e.svgElement=t}return e.svgElement}_getIconConfigFromResolvers(e,t){for(let s=0;sa?a.pathname+a.search:""}}}),tb=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],_A=tb.map(r=>`[${r}]`).join(", "),bA=/^url\(['"]?#(.*?)['"]?\)$/;let Yn=(()=>{class r extends fA{constructor(e,t,s,u,d,l){super(e),this._iconRegistry=t,this._location=u,this._errorHandler=d,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=Yt.w0.EMPTY,l&&(l.color&&(this.color=this.defaultColor=l.color),l.fontSet&&(this.fontSet=l.fontSet)),s||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=ze(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const t=this._cleanupFontValue(e);t!==this._fontSet&&(this._fontSet=t,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const t=this._cleanupFontValue(e);t!==this._fontIcon&&(this._fontIcon=t,this._updateFontIconClasses())}_splitIconName(e){if(!e)return["",""];const t=e.split(":");switch(t.length){case 1:return["",t[0]];case 2:return t;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.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(e){this._clearSvgElement();const t=this._location.getPathname();this._previousPath=t,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(t),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let t=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();t--;){const s=e.childNodes[t];(1!==s.nodeType||"svg"===s.nodeName.toLowerCase())&&s.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,t=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(s=>s.length>0);this._previousFontSetClass.forEach(s=>e.classList.remove(s)),t.forEach(s=>e.classList.add(s)),this._previousFontSetClass=t,this.fontIcon!==this._previousFontIconClass&&!t.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return"string"==typeof e?e.trim().split(" ")[0]:e}_prependPathToReferences(e){const t=this._elementsWithExternalReferences;t&&t.forEach((s,u)=>{s.forEach(d=>{u.setAttribute(d.name,`url('${e}#${d.value}')`)})})}_cacheChildrenWithExternalReferences(e){const t=e.querySelectorAll(_A),s=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let u=0;u{const l=t[u],n=l.getAttribute(d),i=n?n.match(bA):null;if(i){let o=s.get(l);o||(o=[],s.set(l,o)),o.push({name:d,value:i[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[t,s]=this._splitIconName(e);t&&(this._svgNamespace=t),s&&(this._svgName=s),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(s,t).pipe((0,Dt.q)(1)).subscribe(u=>this._setSvgElement(u),u=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${t}:${s}! ${u.message}`))})}}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(h.SBq),h.Y36(ms),h.$8M("aria-hidden"),h.Y36(mA),h.Y36(h.qLn),h.Y36(eb,8))},r.\u0275cmp=h.Xpm({type:r,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,t){2&e&&(h.uIk("data-mat-icon-type",t._usingFontIcon()?"font":"svg")("data-mat-icon-name",t._svgName||t.fontIcon)("data-mat-icon-namespace",t._svgNamespace||t.fontSet),h.ekj("mat-icon-inline",t.inline)("mat-icon-no-color","primary"!==t.color&&"accent"!==t.color&&"warn"!==t.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[h.qOj],ngContentSelectors:hA,decls:1,vars:0,template:function(e,t){1&e&&(h.F$t(),h.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[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}"],encapsulation:2,changeDetection:0}),r})(),Ur=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({imports:[Ye,Ye]}),r})(),ib=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({imports:[_a,Fr,Ur,vi,Da,M.ez]}),r})();var nb=E(5861);function rb(r,a){}class Td{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0}}let ip=(()=>{class r extends ma{constructor(e,t,s,u,d,l,n,i){super(),this._elementRef=e,this._focusTrapFactory=t,this._config=u,this._interactivityChecker=d,this._ngZone=l,this._overlayRef=n,this._focusMonitor=i,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=o=>{this._portalOutlet.hasAttached();const c=this._portalOutlet.attachDomPortal(o);return this._contentAttached(),c},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=s}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();const t=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),t}attachTemplatePortal(e){this._portalOutlet.hasAttached();const t=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),t}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const s=()=>{e.removeEventListener("blur",s),e.removeEventListener("mousedown",s),e.removeAttribute("tabindex")};e.addEventListener("blur",s),e.addEventListener("mousedown",s)})),e.focus(t)}_focusByCssSelector(e,t){let s=this._elementRef.nativeElement.querySelector(e);s&&this._forceFocus(s,t)}_trapFocus(){const e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(t=>{t||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const e=this._config.restoreFocus;let t=null;if("string"==typeof e?t=this._document.querySelector(e):"boolean"==typeof e?t=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(t=e),this._config.restoreFocus&&t&&"function"==typeof t.focus){const s=sl(),u=this._elementRef.nativeElement;(!s||s===this._document.body||s===u||u.contains(s))&&(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,t=sl();return e===t||e.contains(t)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=sl())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(h.SBq),h.Y36(sh),h.Y36(M.K0,8),h.Y36(Td),h.Y36(oh),h.Y36(h.R0b),h.Y36(ss),h.Y36(Sn))},r.\u0275cmp=h.Xpm({type:r,selectors:[["cdk-dialog-container"]],viewQuery:function(e,t){if(1&e&&h.Gf(pd,7),2&e){let s;h.iGM(s=h.CRH())&&(t._portalOutlet=s.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(e,t){2&e&&h.uIk("id",t._config.id||null)("role",t._config.role)("aria-modal",t._config.ariaModal)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null)},features:[h.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&h.YNc(0,rb,0,0,"ng-template",0)},dependencies:[pd],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),r})();class np{constructor(a,e){this.overlayRef=a,this.config=e,this.closed=new He.x,this.disableClose=e.disableClose,this.backdropClick=a.backdropClick(),this.keydownEvents=a.keydownEvents(),this.outsidePointerEvents=a.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(t=>{27===t.keyCode&&!this.disableClose&&!hr(t)&&(t.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(a,e){if(this.containerInstance){const t=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this.overlayRef.dispose(),t.next(a),t.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(a="",e=""){return this.overlayRef.updateSize({width:a,height:e}),this}addPanelClass(a){return this.overlayRef.addPanelClass(a),this}removePanelClass(a){return this.overlayRef.removePanelClass(a),this}}const ab=new h.OlP("DialogScrollStrategy"),CA=new h.OlP("DialogData"),rp=new h.OlP("DefaultDialogConfig"),ob={provide:ab,deps:[_n],useFactory:function ap(r){return()=>r.scrollStrategies.block()}};let op=0,sb=(()=>{class r{constructor(e,t,s,u,d,l){this._overlay=e,this._injector=t,this._defaultOptions=s,this._parentDialog=u,this._overlayContainer=d,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new He.x,this._afterOpenedAtThisLevel=new He.x,this._ariaHiddenElements=new Map,this.afterAllClosed=Gt(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Zi(void 0))),this._scrollStrategy=l}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}open(e,t){(t={...this._defaultOptions||new Td,...t}).id=t.id||"cdk-dialog-"+op++,t.id&&this.getDialogById(t.id);const u=this._getOverlayConfig(t),d=this._overlay.create(u),l=new np(d,t),n=this._attachContainer(d,l,t);return l.containerInstance=n,this._attachDialogContent(e,l,n,t),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(l),l.closed.subscribe(()=>this._removeOpenDialog(l,!0)),this.afterOpened.next(l),l}closeAll(){sp(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){sp(this._openDialogsAtThisLevel,e=>{!1===e.config.closeOnDestroy&&this._removeOpenDialog(e,!1)}),sp(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){const t=new kl({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}_attachContainer(e,t,s){const u=s.injector??s.viewContainerRef?.injector,d=[{provide:Td,useValue:s},{provide:np,useValue:t},{provide:ss,useValue:e}];let l;s.container?"function"==typeof s.container?l=s.container:(l=s.container.type,d.push(...s.container.providers(s))):l=ip;const n=new Br(l,s.viewContainerRef,h.zs3.create({parent:u||this._injector,providers:d}),s.componentFactoryResolver);return e.attach(n).instance}_attachDialogContent(e,t,s,u){const d=this._createInjector(u,t,s);if(e instanceof h.Rgc){let l={$implicit:u.data,dialogRef:t};u.templateContext&&(l={...l,..."function"==typeof u.templateContext?u.templateContext():u.templateContext}),s.attachTemplatePortal(new fa(e,null,l,d))}else{const l=s.attachComponentPortal(new Br(e,u.viewContainerRef,d,u.componentFactoryResolver));t.componentInstance=l.instance}}_createInjector(e,t,s){const u=e&&e.viewContainerRef&&e.viewContainerRef.injector,d=[{provide:CA,useValue:e.data},{provide:np,useValue:t}];return e.providers&&("function"==typeof e.providers?d.push(...e.providers(t,e,s)):d.push(...e.providers)),e.direction&&(!u||!u.get(Tn,null,h.XFs.Optional))&&d.push({provide:Tn,useValue:{value:e.direction,change:(0,Me.of)()}}),h.zs3.create({parent:e.injector||u||this._injector,providers:d})}_removeOpenDialog(e,t){const s=this.openDialogs.indexOf(e);s>-1&&(this.openDialogs.splice(s,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((u,d)=>{u?d.setAttribute("aria-hidden",u):d.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),t&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const t=e.parentElement.children;for(let s=t.length-1;s>-1;s--){const u=t[s];u!==e&&"SCRIPT"!==u.nodeName&&"STYLE"!==u.nodeName&&!u.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(u,u.getAttribute("aria-hidden")),u.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(_n),h.LFG(h.zs3),h.LFG(rp,8),h.LFG(r,12),h.LFG(os),h.LFG(ab))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac}),r})();function sp(r,a){let e=r.length;for(;e--;)a(r[e])}let lp=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({providers:[sb,ob],imports:[Xa,Or,$a,Or]}),r})();function wA(r,a){}const ro={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},gs={dialogContainer:ci("dialogContainer",[mt("void, exit",Ie({opacity:0,transform:"scale(0.7)"})),mt("enter",Ie({transform:"none"})),bt("* => enter",Oh([vt("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",Ie({transform:"none",opacity:1})),Vl("@*",Cd(),{optional:!0})]),ro),bt("* => void, * => exit",Oh([vt("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",Ie({opacity:0})),Vl("@*",Cd(),{optional:!0})]),ro)])};class _s{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="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0,this.enterAnimationDuration=ro.params.enterAnimationDuration,this.exitAnimationDuration=ro.params.exitAnimationDuration}}let yA=(()=>{class r extends ip{constructor(e,t,s,u,d,l,n,i){super(e,t,s,u,d,l,n,i),this._animationStateChanged=new h.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(h.SBq),h.Y36(sh),h.Y36(M.K0,8),h.Y36(_s),h.Y36(oh),h.Y36(h.R0b),h.Y36(ss),h.Y36(Sn))},r.\u0275cmp=h.Xpm({type:r,selectors:[["ng-component"]],features:[h.qOj],decls:0,vars:0,template:function(e,t){},encapsulation:2}),r})(),JT=(()=>{class r extends yA{constructor(e,t,s,u,d,l,n,i,o){super(e,t,s,u,d,l,n,o),this._changeDetectorRef=i,this._state="enter"}_onAnimationDone({toState:e,totalTime:t}){"enter"===e?this._openAnimationDone(t):"exit"===e&&this._animationStateChanged.next({state:"closed",totalTime:t})}_onAnimationStart({toState:e,totalTime:t}){"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:t}):("exit"===e||"void"===e)&&this._animationStateChanged.next({state:"closing",totalTime:t})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||ro.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||ro.params.exitAnimationDuration}}}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(h.SBq),h.Y36(sh),h.Y36(M.K0,8),h.Y36(_s),h.Y36(oh),h.Y36(h.R0b),h.Y36(ss),h.Y36(h.sBO),h.Y36(Sn))},r.\u0275cmp=h.Xpm({type:r,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(e,t){1&e&&h.WFA("@dialogContainer.start",function(u){return t._onAnimationStart(u)})("@dialogContainer.done",function(u){return t._onAnimationDone(u)}),2&e&&(h.Ikx("id",t._config.id),h.uIk("aria-modal",t._config.ariaModal)("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),h.d8E("@dialogContainer",t._getAnimationState()))},features:[h.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&h.YNc(0,wA,0,0,"ng-template",0)},dependencies:[pd],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.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.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}"],encapsulation:2,data:{animation:[gs.dialogContainer]}}),r})();class bn{constructor(a,e,t){this._ref=a,this._containerInstance=t,this._afterOpened=new He.x,this._beforeClosed=new He.x,this._state=0,this.disableClose=e.disableClose,this.id=a.id,t._animationStateChanged.pipe((0,ge.h)(s=>"opened"===s.state),(0,Dt.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),t._animationStateChanged.pipe((0,ge.h)(s=>"closed"===s.state),(0,Dt.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),a.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,an.T)(this.backdropClick(),this.keydownEvents().pipe((0,ge.h)(s=>27===s.keyCode&&!this.disableClose&&!hr(s)))).subscribe(s=>{this.disableClose||(s.preventDefault(),function cp(r,a,e){r._closeInteractionType=a,r.close(e)}(this,"keydown"===s.type?"keyboard":"mouse"))})}close(a){this._result=a,this._containerInstance._animationStateChanged.pipe((0,ge.h)(e=>"closing"===e.state),(0,Dt.q)(1)).subscribe(e=>{this._beforeClosed.next(a),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(a){let e=this._ref.config.positionStrategy;return a&&(a.left||a.right)?a.left?e.left(a.left):e.right(a.right):e.centerHorizontally(),a&&(a.top||a.bottom)?a.top?e.top(a.top):e.bottom(a.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(a="",e=""){return this._ref.updateSize(a,e),this}addPanelClass(a){return this._ref.addPanelClass(a),this}removePanelClass(a){return this._ref.removePanelClass(a),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}const ao=new h.OlP("MatDialogData"),dp=new h.OlP("mat-dialog-default-options"),lb=new h.OlP("mat-dialog-scroll-strategy"),cb={provide:lb,deps:[_n],useFactory:function up(r){return()=>r.scrollStrategies.block()}};let db=0,ub=(()=>{class r{constructor(e,t,s,u,d,l,n,i,o,c){this._overlay=e,this._defaultOptions=s,this._parentDialog=u,this._dialogRefConstructor=n,this._dialogContainerType=i,this._dialogDataToken=o,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new He.x,this._afterOpenedAtThisLevel=new He.x,this._idPrefix="mat-dialog-",this.afterAllClosed=Gt(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Zi(void 0))),this._scrollStrategy=l,this._dialog=t.get(sb)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(e,t){let s;(t={...this._defaultOptions||new _s,...t}).id=t.id||`${this._idPrefix}${db++}`,t.scrollStrategy=t.scrollStrategy||this._scrollStrategy();const u=this._dialog.open(e,{...t,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:_s,useValue:t},{provide:Td,useValue:t}]},templateContext:()=>({dialogRef:s}),providers:(d,l,n)=>(s=new this._dialogRefConstructor(d,t,n),s.updatePosition(t?.position),[{provide:this._dialogContainerType,useValue:n},{provide:this._dialogDataToken,useValue:l.data},{provide:this._dialogRefConstructor,useValue:s}])});return s.componentInstance=u.componentInstance,this.openDialogs.push(s),this.afterOpened.next(s),s.afterClosed().subscribe(()=>{const d=this.openDialogs.indexOf(s);d>-1&&(this.openDialogs.splice(d,1),this.openDialogs.length||this._getAfterAllClosed().next())}),s}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let t=e.length;for(;t--;)e[t].close()}}return r.\u0275fac=function(e){h.$Z()},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac}),r})(),Cn=(()=>{class r extends ub{constructor(e,t,s,u,d,l,n,i){super(e,t,u,l,n,d,bn,JT,ao,i)}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(_n),h.LFG(h.zs3),h.LFG(M.Ye,8),h.LFG(dp,8),h.LFG(lb),h.LFG(r,12),h.LFG(os),h.LFG(h.QbO,8))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac}),r})(),vA=0,Nr=(()=>{class r{constructor(e,t,s){this._dialogRef=e,this._elementRef=t,this._dialog=s,this.id="mat-dialog-title-"+vA++}ngOnInit(){this._dialogRef||(this._dialogRef=function XT(r,a){let e=r.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-dialog-container");)e=e.parentElement;return e?a.find(t=>t.id===e.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const e=this._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=this.id)})}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(bn,8),h.Y36(h.SBq),h.Y36(Cn))},r.\u0275dir=h.lG2({type:r,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,t){2&e&&h.Ikx("id",t.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),r})(),qr=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275dir=h.lG2({type:r,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),r})(),_r=(()=>{class r{constructor(){this.align="start"}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275dir=h.lG2({type:r,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(e,t){2&e&&h.ekj("mat-dialog-actions-align-center","center"===t.align)("mat-dialog-actions-align-end","end"===t.align)},inputs:{align:"align"}}),r})(),Nl=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({providers:[Cn,cb],imports:[lp,Xa,Or,Ye,Ye]}),r})();function hp(){return(hp=(0,nb.Z)(function*(r,a){yield EA(r),a()})).apply(this,arguments)}function EA(r){return new Promise(a=>setTimeout(a,r))}function pp(r,a){for(const e of r)if(e.namespace+":"+e.friendlyName===a)return e;return null}function on(){const r=new _s;return r.disableClose=!0,r.autoFocus=!1,r}E(4327),new Intl.Collator("cs",{numeric:!0});let gi=(()=>{class r{constructor(){this.branding=""}setInstanceConfig(e){this.instanceConfig=e}setDefaultConfig(e){this.defaultConfig=e}getAppsConfig(){return this.appsConfig}setAppsConfig(e){this.appsConfig=e}setPerunPrincipal(e){this.principal=e}getPerunPrincipal(){return this.principal}getInitialPageId(){return this.initialPageId}setInitialPageId(e){this.initialPageId=e}getLoginAttributeNames(){return this.getProperty("login_namespace_attributes")}getMemberProfileAttributeNames(){return this.getProperty("member_profile_attributes_friendly_names")}setBanding(e){this.branding=e}getProperty(e){if(!this.instanceConfig||!this.defaultConfig)return null;const t=[this.instanceConfig?.brandings?.[this.branding],this.instanceConfig],s=this.defaultConfig[e];let u=null;for(const d of t)d&&null==u&&(u=d[e]);return null===u?s:this.addMissingValuesToProperty(u,s)}addMissingValuesToProperty(e,t){if("object"!=typeof e||Array.isArray(e)||null==e){if(null!=e)return e}else for(const s of Object.keys(t))t[s]=this.addMissingValuesToProperty(e[s],t[s]);return t}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();var Gr=E(1214);let Wr=(()=>{class r{constructor(e,t,s,u,d){this.injector=e,this.store=t,this.dialog=s,this.route=u,this.oauthService=d,setTimeout(()=>{this.router=this.injector.get(yi),this.startIdpFilterKeeper()}),this.route.queryParams.subscribe(l=>{l.idpFilter&&(this.filterShortname=String(l.idpFilter))})}loadOidcConfigData(){this.oauthService.configure(this.getClientConfig())}logout(){sessionStorage.getItem("baPrincipal")?(sessionStorage.removeItem("baPrincipal"),sessionStorage.removeItem("basicUsername"),sessionStorage.removeItem("basicPassword"),sessionStorage.setItem("baLogout","true"),this.router.navigate(["/service-access"],{queryParamsHandling:"preserve"})):this.oauthService.logOut()}isLoggedIn(){return this.oauthService.hasValidAccessToken()}getAuthorizationHeaderValue(){return this.oauthService.hasValidAccessToken()?"Bearer "+this.oauthService.getAccessToken():""}startAuthentication(){this.oauthService.loadDiscoveryDocumentAndLogin()}getIdpFilter(){return this.filterShortname}getClientConfig(){const e=this.setIdpFilter(),u=.5+.25*Math.random(),d=e?{acr_values:e}:{},l=this.store.getProperty("oidc_client");if(l.oauth_scopes.split(" ").includes("offline_access")&&l.oauth_offline_access_consent_prompt&&(d.prompt="consent"),(sessionStorage.getItem("mfa_route")||sessionStorage.getItem("mfaProcessed"))&&(d.acr_values="https://refeds.org/profile/mfa"),sessionStorage.getItem("mfa_route")&&(d.prompt?d.prompt+=" login":d.prompt="login",d.max_age="0"),"Linker"===this.store.getProperty("application")){d.prompt?d.prompt+=" login":d.prompt="login";const n=function _p(r,a){const e=a.split("&");for(const t of e){const[s,u]=t.split("=");if(s.includes(r))return u}return""}("idphint",location.search.substring(1));n&&(d.idphint=n)}return{requestAccessToken:!0,issuer:l.oauth_authority,clientId:l.oauth_client_id,redirectUri:l.oauth_redirect_uri,postLogoutRedirectUri:l.oauth_post_logout_redirect_uri,responseType:l.oauth_response_type,scope:l.oauth_scopes,clockSkewInSec:1,timeoutFactor:u,userinfoEndpoint:this.store.getProperty("oidc_client").user_info_endpoint_url,customQueryParams:d}}setIdpFilter(){const e=location.search.length?location.search.substring(1).split("&"):[];this.filterShortname=null;const t=this.store.getProperty("oidc_client").filters;if(!t)return null;let s=null;return e.forEach(u=>{const d=u.split("=");"idpFilter"===d[0]&&t[d[1]]&&(this.filterShortname=d[1],s=t[d[1]])}),t.default&&!s?(this.filterShortname="default",t.default):s}startIdpFilterKeeper(){this.router.events.pipe((0,ge.h)(e=>e instanceof mn)).subscribe(()=>{const e={idpFilter:this.getIdpFilter()};this.router.navigate([],{relativeTo:this.route,queryParams:"default"===e.idpFilter?{}:e,queryParamsHandling:"merge",replaceUrl:!0})})}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(h.zs3),h.LFG(gi),h.LFG(Cn),h.LFG(jn),h.LFG(Gr.Ct))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Cb=(()=>{class r{constructor(e){this.dialogRef=e}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(bn))},r.\u0275cmp=h.Xpm({type:r,selectors:[["perun-web-apps-user-dont-exist-dialog"]],decls:3,vars:3,consts:[["mat-dialog-content","",1,"mt-2","mb-2"]],template:function(e,t){1&e&&(h.TgZ(0,"h2",0),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&e&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.USER_DONT_EXIST.TITLE"),"\n"))},dependencies:[qr,yt]}),r})();var wb=E(930);function bp(r,a){const e="object"==typeof a;return new Promise((t,s)=>{const u=new wb.Hp({next:d=>{t(d),u.unsubscribe()},error:s,complete:()=>{e?t(a.defaultValue):s(new On.K)}});r.subscribe(u)})}function yb(r,a){1&r&&(h.TgZ(0,"mat-icon",2),h._uU(1," info "),h.qZA())}function UA(r,a){1&r&&(h.TgZ(0,"mat-icon",2),h._uU(1," warning "),h.qZA())}function vb(r,a){1&r&&(h.TgZ(0,"mat-icon",2),h._uU(1," dangerous "),h.qZA())}function Ab(r,a){1&r&&(h.TgZ(0,"mat-icon",2),h._uU(1," check_circle "),h.qZA())}const NA=["*"];let zl=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275cmp=h.Xpm({type:r,selectors:[["perun-web-apps-alert"]],inputs:{alert_type:"alert_type"},ngContentSelectors:NA,decls:6,vars:12,consts:[[1,"perun-alert","d-flex","align-items-flex-start"],["class","perun-alert-icon",4,"ngIf"],[1,"perun-alert-icon"]],template:function(e,t){1&e&&(h.F$t(),h.TgZ(0,"div",0),h.YNc(1,yb,2,0,"mat-icon",1),h.YNc(2,UA,2,0,"mat-icon",1),h.YNc(3,vb,2,0,"mat-icon",1),h.YNc(4,Ab,2,0,"mat-icon",1),h.Hsn(5),h.qZA()),2&e&&(h.ekj("warn-alert","warn"===t.alert_type)("error-alert","error"===t.alert_type)("success-alert","success"===t.alert_type)("info-alert","info"===t.alert_type),h.xp6(1),h.Q6J("ngIf","info"===t.alert_type),h.xp6(1),h.Q6J("ngIf","warn"===t.alert_type),h.xp6(1),h.Q6J("ngIf","error"===t.alert_type),h.xp6(1),h.Q6J("ngIf","success"===t.alert_type))},dependencies:[Yn,M.O5],styles:[".perun-alert[_ngcontent-%COMP%]{position:relative;padding:.75rem 1.25rem;margin-top:1rem;margin-bottom:1rem}.perun-alert.info-alert[_ngcontent-%COMP%]{font-style:italic;color:gray;text-align:left;border:1px #b3b3b3 solid;border-radius:10px}.perun-alert.warn-alert[_ngcontent-%COMP%]{font-weight:700;text-align:left;border:1px #ececec solid;border-radius:10px;background-color:#ececec}.perun-alert-icon[_ngcontent-%COMP%]{padding-right:2rem}.perun-alert.error-alert[_ngcontent-%COMP%]{text-align:left;border:1px #fedcda solid;border-radius:10px;background-color:#fedcda}.perun-alert.success-alert[_ngcontent-%COMP%]{text-align:left;border:1px #d7ffd7 solid;border-radius:10px;background-color:#d7ffd7}"]}),r})(),qA=(()=>{class r{constructor(e,t){this.dialogRef=e,this.data=t}cancel(){this.dialogRef.close(!1)}submit(){this.dialogRef.close(!0)}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(bn),h.Y36(ao))},r.\u0275cmp=h.Xpm({type:r,selectors:[["perun-web-apps-mfa-required-dialog"]],decls:15,vars:17,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["alert_type","warn"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"hidden","click"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,t){1&e&&(h.TgZ(0,"h1",0),h._uU(1),h.ALo(2,"translate"),h.qZA(),h.TgZ(3,"div",1)(4,"perun-web-apps-alert",2),h._uU(5),h.ALo(6,"translate"),h.ALo(7,"translate"),h.qZA()(),h.TgZ(8,"div",3)(9,"button",4),h.NdJ("click",function(){return t.cancel()}),h._uU(10),h.ALo(11,"translate"),h.qZA(),h.TgZ(12,"button",5),h.NdJ("click",function(){return t.submit()}),h._uU(13),h.ALo(14,"translate"),h.qZA()()),2&e&&(h.xp6(1),h.Oqu(h.lcZ(2,7,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.TITLE")),h.xp6(4),h.hij(" ",t.data.mfaRoleException?h.lcZ(6,9,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.INFO_ROLE"):h.lcZ(7,11,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.INFO")," "),h.xp6(4),h.Q6J("hidden",t.data.mfaRoleException),h.xp6(1),h.hij(" ",h.lcZ(11,13,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.CANCEL")," "),h.xp6(2),h.Tol(t.data.mfaRoleException?"ml-auto":"ml-2"),h.xp6(1),h.hij(" ",h.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.STEP_UP")," "))},dependencies:[Nr,qr,_r,ji,zl,yt]}),r})(),$i=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275cmp=h.Xpm({type:r,selectors:[["perun-web-apps-focus-on-mfa-window"]],decls:9,vars:6,consts:[[1,"text-center","custom-dialog"],[1,"align-text-bottom"]],template:function(e,t){1&e&&(h.TgZ(0,"div",0)(1,"div")(2,"mat-icon",1),h._uU(3," info "),h.qZA(),h._uU(4),h.ALo(5,"translate"),h.qZA(),h.TgZ(6,"div"),h._uU(7),h.ALo(8,"translate"),h.qZA()()),2&e&&(h.xp6(4),h.hij(" ",h.lcZ(5,2,"SHARED_LIB.PERUN.COMPONENTS.FOCUS_ON_MFA_DIALOG.MODAL")," "),h.xp6(3),h.hij(" ",h.lcZ(8,4,"SHARED_LIB.PERUN.COMPONENTS.FOCUS_ON_MFA_DIALOG.MODAL_WARNING")," "))},dependencies:[Yn,yt],styles:[".custom-dialog[_ngcontent-%COMP%]{background-color:#000;color:#fffffff2;font-size:1.2rem}"]}),r})(),bs=(()=>{class r{constructor(e,t){this.data=e,this.dialogRef=t}cancel(){this.dialogRef.close(!1)}submit(){window.open(this.data.tokensUrl,"_blank"),this.dialogRef.close(!0)}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(ao),h.Y36(bn))},r.\u0275cmp=h.Xpm({type:r,selectors:[["perun-web-apps-no-mfa-tokens-dialog"]],decls:14,vars:12,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["alert_type","warn"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(h.TgZ(0,"h1",0),h._uU(1),h.ALo(2,"translate"),h.qZA(),h.TgZ(3,"div",1)(4,"perun-web-apps-alert",2),h._uU(5),h.ALo(6,"translate"),h.qZA()(),h.TgZ(7,"div",3)(8,"button",4),h.NdJ("click",function(){return t.cancel()}),h._uU(9),h.ALo(10,"translate"),h.qZA(),h.TgZ(11,"button",5),h.NdJ("click",function(){return t.submit()}),h._uU(12),h.ALo(13,"translate"),h.qZA()()),2&e&&(h.xp6(1),h.Oqu(h.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.TITLE")),h.xp6(4),h.hij(" ",h.lcZ(6,6,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.INFO")," "),h.xp6(4),h.hij(" ",h.lcZ(10,8,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.CANCEL")," "),h.xp6(3),h.hij(" ",h.lcZ(13,10,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.MANAGE_TOKENS")," "))},dependencies:[Nr,qr,_r,ji,zl,yt]}),r})(),Cp=(()=>{class r{constructor(e,t,s,u){this.dialog=e,this.oauthService=t,this.authService=s,this.store=u}openMfaWindow(e){let t=null,s=null;const u=on();u.width="450px",u.data={mfaRoleException:e};const d=this.dialog.open(qA,u);let l=!1;if(d.afterClosed().subscribe(n=>{if(n){if(sessionStorage.setItem("mfaRequired","true"),sessionStorage.setItem("oldAccessToken",this.oauthService.getAccessToken()),sessionStorage.setItem("oldRefreshToken",this.oauthService.getRefreshToken()),t=this.setupMfaWindow(),t){const i=on();i.width="450px",i.panelClass="noBorderDialog",s=this.dialog.open($i,i)}}else l=!0}),localStorage.getItem("noMfaTokenDialog")){localStorage.removeItem("noMfaTokenDialog");const n=on();n.width="450px",n.data={tokensUrl:this.store.getProperty("mfa").url_en},this.dialog.open(bs,n)}return new ai.y(n=>{const i=setInterval(()=>t?.closed?(clearInterval(i),s.close(),sessionStorage.removeItem("mfaRequired"),sessionStorage.removeItem("mfaProcessed"),null===this.oauthService.getAccessToken()&&(localStorage.setItem("access_token",sessionStorage.getItem("oldAccessToken")),localStorage.setItem("refresh_token",sessionStorage.getItem("oldRefreshToken"))),n.next(!0)):l?(clearInterval(i),n.next(!1)):void 0,1e3)})}catchNoMfaTokenError(e){"unmet_authentication_requirements"===e&&(localStorage.setItem("noMfaTokenDialog","true"),window.close())}mfaWindowForceLogout(){if(sessionStorage.getItem("mfaRequired")&&!sessionStorage.getItem("mfaProcessed"))return sessionStorage.setItem("mfaProcessed","true"),this.oauthService.logOut(!0),this.authService.loadOidcConfigData(),void this.oauthService.loadDiscoveryDocumentAndLogin();sessionStorage.removeItem("mfaRequired")}closeMfaWindow(){sessionStorage.getItem("mfaProcessed")&&!sessionStorage.getItem("mfaRequired")&&(sessionStorage.removeItem("mfaProcessed"),window.close())}setupMfaWindow(){const e=location.pathname+location.search,u=window.top;return window.open(e,"_blank",`width=600,height=600,top=${u.outerHeight/2+u.screenY-300}, left=${u.outerWidth/2+u.screenX-300}`)}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(Cn),h.LFG(Gr.Ct),h.LFG(Wr),h.LFG(gi))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Cs=(()=>{class r{constructor(e,t,s,u,d,l,n,i){this.authService=e,this.oauthService=t,this.storeService=s,this.authResolver=u,this.authzService=d,this.dialog=l,this.router=n,this.mfaHandlerService=i,this.loginScreenShown=!1,this.serviceAccess=!1,this.serviceAccessLoginScreen=!1}isLoginScreenShown(){return this.loginScreenShown}isServiceAccess(){return this.serviceAccess}isServiceAccessLoginScreenShown(){return this.serviceAccessLoginScreen}verifyAuth(){if(this.mfaHandlerService.mfaWindowForceLogout(),sessionStorage.getItem("baPrincipal"))return this.serviceAccess=!0,sessionStorage.getItem("auth:redirect")?this.redirectToOriginDestination():Promise.resolve(!0);if("/service-access"!==location.pathname&&!this.storeService.getProperty("auto_service_access_redirect")){this.authService.loadOidcConfigData();const e=location.pathname,t=location.search.substring(1);return"/api-callback"===e?this.oauthService.loadDiscoveryDocumentAndTryLogin().then(()=>this.startRefreshToken()).then(()=>this.redirectToOriginDestination()):this.oauthService.loadDiscoveryDocument().then(()=>this.tryRefreshToken()).then(()=>"Linker"===this.storeService.getProperty("application")?(sessionStorage.setItem("auth:queryParams",t),localStorage.removeItem("access_token"),!1):this.oauthService.hasValidAccessToken()?this.startRefreshToken():this.isPotentiallyValidPath(e)?(sessionStorage.setItem("auth:redirect",e),sessionStorage.setItem("auth:queryParams",t),!1):Promise.reject("Invalid path"))}}loadPrincipal(){return bp(this.authzService.getPerunPrincipal()).then(e=>{if(null===e.user){const t=on();this.dialog.open(Cb,t)}else this.storeService.setPerunPrincipal(e),this.authResolver.init(e)})}simpleLoadPrincipal(){return bp(this.authzService.getPerunPrincipal()).then(e=>{this.storeService.setPerunPrincipal(e)})}checkRouteGuard(){const e=localStorage.getItem("routeAuthGuard");e&&(localStorage.removeItem("routeAuthGuard"),this.router.navigate([e],{queryParamsHandling:"merge"}))}handleAuthStart(){if(this.storeService.getProperty("auto_service_access_redirect")&&"/service-access"!==location.pathname){this.serviceAccess=!0,this.serviceAccessLoginScreen=!0;const e=location.pathname,t=location.search.substring(1);sessionStorage.setItem("auth:redirect",e),sessionStorage.setItem("auth:queryParams",t);const s={};return t.split("&").forEach(u=>{const d=u.split("=");s[d[0]]=d[1]}),this.router.navigate(["service-access"],{queryParams:s,queryParamsHandling:"merge"}).then()}if("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal")||this.storeService.getProperty("auto_service_access_redirect")){this.serviceAccess=!0,this.serviceAccessLoginScreen=!0;const e=location.search.substring(1);return sessionStorage.setItem("auth:queryParams",e),Promise.resolve()}return this.storeService.getProperty("auto_auth_redirect")?(sessionStorage.getItem("mfaProcessed")||localStorage.setItem("routeAuthGuard",window.location.pathname),this.startAuth().then(()=>new Promise(()=>{}))):(this.setLoginScreen(!0),localStorage.setItem("routeAuthGuard",window.location.pathname),void this.router.navigate(["login"],{queryParamsHandling:"merge"}))}setLoginScreen(e){this.loginScreenShown=e}isPotentiallyValidPath(e){const t=["/home","/organizations","/facilities","/myProfile","/admin","/login","/service-access","/profile"];if("/"===e)return!0;for(const s of t)if(e.startsWith(s))return!0;return!1}startRefreshToken(){return this.oauthService.hasValidAccessToken()?(this.oauthService.events.pipe((0,ge.h)(e=>"token_expires"===e.type&&"access_token"===e.info)).subscribe(()=>{this.oauthService.refreshToken()}),Promise.resolve(!0)):Promise.resolve(!1)}tryRefreshToken(){return localStorage.getItem("refresh_token")&&!this.oauthService.hasValidAccessToken()?this.oauthService.refreshToken().then(()=>Promise.resolve()).catch(()=>Promise.resolve()):Promise.resolve()}redirectToOriginDestination(){const e=sessionStorage.getItem("mfa_route");if(e)return this.router.navigate([e],{replaceUrl:!0,queryParamsHandling:"merge"});let t=sessionStorage.getItem("auth:redirect");(!t||"/login"===t)&&(t="/"),sessionStorage.removeItem("auth:redirect");const s=sessionStorage.getItem("auth:queryParams");let u=[];s&&(u=s.split("&"));const d={};return u.forEach(l=>{const n=l.split("=");d[n[0]]=n[1]}),sessionStorage.removeItem("auth:queryParams"),this.router.navigate([t],{queryParams:d,replaceUrl:!0,queryParamsHandling:"merge"})}startAuth(){return this.authService.startAuthentication(),Promise.resolve()}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(Wr),h.LFG(Gr.Ct),h.LFG(gi),h.LFG(Mi),h.LFG(Is),h.LFG(Cn),h.LFG(yi),h.LFG(Cp))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),zA=(()=>{class r{constructor(e,t){this.matIconRegistry=e,this.domSanitizer=t,this.customIcons=[{url:"assets/img/PerunWebImages/refresh_tab-black.svg",name:"perun-refresh-enabled"},{url:"assets/img/PerunWebImages/refresh_tab-grey.svg",name:"perun-refresh-disabled"},{url:"assets/img/PerunWebImages/manage_facility_white.svg",name:"perun-manage-facility"},{url:"assets/img/PerunWebImages/vo-white.svg",name:"perun-vo"},{url:"assets/img/PerunWebImages/user-white.svg",name:"perun-user"},{url:"assets/img/PerunWebImages/perun_admin-white.svg",name:"perun-perun-admin"},{url:"assets/img/PerunWebImages/group-white.svg",name:"perun-group"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/preview-white.svg",name:"perun-preview"},{url:"assets/img/PerunWebImages/module_dependencies.svg",name:"perun-module-dependencies"},{url:"assets/img/PerunWebImages/user_destination_relationship.svg",name:"perun-user-destination-relationship"},{url:"assets/img/PerunWebImages/settings2-white.svg",name:"perun-settings2"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/applications-white.svg",name:"perun-applications"},{url:"assets/img/PerunWebImages/manager-white.svg",name:"perun-manager"},{url:"assets/img/PerunWebImages/key-white.svg",name:"perun-key"},{url:"assets/img/PerunWebImages/application_form-white.svg",name:"perun-application-form"},{url:"assets/img/PerunWebImages/notification-white.svg",name:"perun-notification"},{url:"assets/img/PerunWebImages/invite_member-white.svg",name:"perun-invite-member"},{url:"assets/img/PerunWebImages/service_identity-white.svg",name:"perun-service-identity"},{url:"assets/img/PerunWebImages/service_identity-black.svg",name:"perun-service-identity-black"},{url:"assets/img/PerunWebImages/create1-white.svg",name:"perun-create1"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource"},{url:"assets/img/PerunWebImages/resource_tags-white.svg",name:"perun-resource-tags"},{url:"assets/img/PerunWebImages/resources_state-white.svg",name:"perun-resources-state"},{url:"assets/img/PerunWebImages/external_sources-white.svg",name:"perun-external-sources"},{url:"assets/img/PerunWebImages/vo-dark.svg",name:"perun-vo-black"},{url:"assets/img/PerunWebImages/group-dark.svg",name:"perun-group-black"},{url:"assets/img/PerunWebImages/facility-dark.svg",name:"perun-facility-black"},{url:"assets/img/publications.svg",name:"perun-publications-white"},{url:"assets/img/PerunWebImages/owner-grey.svg",name:"perun-owner-grey"},{url:"assets/img/PerunWebImages/settings1-blue.svg",name:"perun-settings1"},{url:"assets/img/PerunWebImages/service_destination-blue.svg",name:"perun-service_destination"},{url:"assets/img/PerunWebImages/host-blue.svg",name:"perun-hosts"},{url:"assets/img/PerunWebImages/home.svg",name:"perun-home-white"},{url:"assets/img/PerunWebImages/security_admin-blue.svg",name:"perun-security-teams"},{url:"assets/img/PerunWebImages/black_list-white.svg",name:"perun-black-list"},{url:"assets/img/PerunWebImages/facility-white.svg",name:"perun-facility-white"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource-white"},{url:"assets/img/PerunWebImages/service-white.svg",name:"perun-service"},{url:"assets/img/PerunWebImages/resource-black.svg",name:"perun-resource-black"},{url:"assets/img/PerunWebImages/service_status-grey.svg",name:"perun-service-status"},{url:"assets/img/PerunWebImages/user-dark.svg",name:"perun-user-dark"},{url:"assets/img/PerunWebImages/statistics-blue.svg",name:"perun-statistics"},{url:"assets/img/PerunWebImages/audit_log-blue.svg",name:"perun-audit-log"},{url:"assets/img/PerunWebImages/contact-grey.svg",name:"perun-identity"},{url:"assets/img/PerunWebImages/roles.svg",name:"perun-roles"},{url:"assets/img/PerunWebImages/consent-white.svg",name:"perun-consent-hubs"},{url:"assets/img/PerunWebImages/hierarchical_vo-black.svg",name:"perun-hierarchical-vo"},{url:"assets/img/PerunWebImages/searcher-blue.svg",name:"perun-searcher"},{url:"assets/img/PerunWebImages/propagation-blue.svg",name:"perun-hierarchical-inclusion"},{url:"assets/img/PerunWebImages/verify-grey.svg",name:"perun-verify-grey"},{url:"assets/img/PerunWebImages/info-grey.svg",name:"perun-info-grey"},{url:"assets/img/PerunWebImages/logins.svg",name:"perun-logins"},{url:"assets/img/PerunWebImages/certificates.svg",name:"perun-certificates"},{url:"assets/img/PerunWebImages/authentication.svg",name:"perun-authentication"},{url:"assets/img/PerunWebImages/ban.svg",name:"perun-ban"}]}registerPerunRefreshIcon(){this.customIcons.forEach(e=>{this.matIconRegistry.addSvgIcon(e.name,this.domSanitizer.bypassSecurityTrustResourceUrl(e.url))})}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(ms),h.LFG(hi))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac}),r})(),wp=(()=>{class r{constructor(e){this.dialogRef=e}close(){this.dialogRef.close(!0)}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(bn))},r.\u0275cmp=h.Xpm({type:r,selectors:[["perun-web-apps-session-expiration-dialog"]],decls:11,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"ml-auto"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,t){1&e&&(h.TgZ(0,"h1",0),h._uU(1),h.ALo(2,"translate"),h.qZA(),h.TgZ(3,"div",1),h._uU(4),h.ALo(5,"translate"),h.qZA(),h.TgZ(6,"div",2)(7,"div",3)(8,"button",4),h.NdJ("click",function(){return t.close()}),h._uU(9),h.ALo(10,"translate"),h.qZA()()()),2&e&&(h.xp6(1),h.Oqu(h.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.TITLE")),h.xp6(3),h.hij(" ",h.lcZ(5,5,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.DESCRIPTION"),"\n"),h.xp6(5),h.hij(" ",h.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.SIGN_IN")," "))},dependencies:[Nr,qr,_r,ji,yt]}),r})(),xb=(()=>{class r{constructor(){this.handleNextError=!0}dontHandleErrorForNext(){this.handleNextError=!1}shouldHandleError(){const e=this.handleNextError;return this.handleNextError=!0,e}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),$r=(()=>{class r{constructor(e){this.translate=e,this.addNotification=new h.vpe,this.defaultErrorDelayMs=5e3,this.defaultSuccessDelayMs=3e3}getDefaultActionMessage(){return void 0===this.defaultAction?this.defaultAction=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_ACTION"):this.defaultAction}getDefaultRpcMessage(){return void 0===this.defaultRpcMessage?this.defaultRpcMessage=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_RPC_ERROR_MESSAGE"):this.defaultRpcMessage}showRPCError(e,t=this.getDefaultRpcMessage()){this.showError("PrivilegeException"===e.name?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.PRIVILEGE_EXCEPTION"):void 0===e.name?t:t+"\n"+e.name,e,e.message)}showRouteError(){const e=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_ERROR"),t=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_DESC");this.showError(e,null,t)}showError(e,t,s,u,d){this.addNotification.emit({type:"error",error:t,description:s,title:e,actionText:void 0===u&&void 0!==s?this.getDefaultActionMessage():u,delay:this.defaultErrorDelayMs,icon:"error_outline",action:d,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}showSuccess(e,t,s,u){this.addNotification.emit({type:"success",description:t,title:e,actionText:void 0===s&&void 0!==t?this.getDefaultActionMessage():s,delay:this.defaultSuccessDelayMs,icon:"done",action:u,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(hn))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Sb=(()=>{class r{constructor(e,t,s,u,d,l,n,i){this.authService=e,this.apiRequestConfiguration=t,this.notificator=s,this.store=u,this.dialog=d,this.initAuthService=l,this.mfaHandlerService=n,this.oauthService=i}intercept(e,t){const s=this.store.getProperty("api_url");if(e.url.includes("i18n")&&(e=e.clone({setHeaders:{"Cache-control":"no-cache, must-revalidate"}})),void 0!==s&&this.isCallToPerunApi(e.url)&&!this.isLoggedIn()&&!this.dialogRefSessionExpiration){const u=on();u.width="450px",null==this.dialogRefSessionExpiration&&(this.dialogRefSessionExpiration=this.dialog.open(wp,u),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{Ha(()=>this.dialogRefSessionExpiration=void 0),sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.oauthService.logOut(!0),this.reauthenticate()}))}return this.initAuthService.isServiceAccess()?e=e.clone({setHeaders:{Authorization:"Basic "+btoa(sessionStorage.getItem("basicUsername")+":"+sessionStorage.getItem("basicPassword"))}}):this.isCallToPerunApi(e.url)&&(e=e.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}})),this.handleRequest(e,t)}isLoggedIn(){return(this.authService.isLoggedIn()||this.initAuthService.isServiceAccess())&&!this.initAuthService.isServiceAccessLoginScreenShown()}reauthenticate(){sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.initAuthService.handleAuthStart()}handleRequest(e,t){const s=this.apiRequestConfiguration.shouldHandleError(),u="POST"===e.method&&this.isNotConsolidatorOrLinker()&&this.isCallToPerunApi(e.url);return t.handle(e).pipe((0,Rt.b)(d=>{d instanceof v.Zn&&u&&this.initAuthService.loadPrincipal()}),(0,Xi.K)(d=>{const l=d.error;if("MfaPrivilegeException"===l.type||"MfaRolePrivilegeException"===l.type)return this.mfaHandlerService.openMfaWindow("MfaRolePrivilegeException"===l.type).pipe((0,oi.w)(n=>n?("MfaRolePrivilegeException"===l.type&&window.location.reload(),this.handleRequest(this.replaceAuthenticationToken(e),t)):(0,Di._)(()=>l)));{this.handleInvalidAccessTokenError(d);const n=this.formatErrors(d,e);return void 0===n?(0,Di._)(()=>d):(s&&this.notificator.showRPCError(n),(0,Di._)(()=>n))}}))}replaceAuthenticationToken(e){return e.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}})}isCallToPerunApi(e){return e.startsWith(this.store.getProperty("api_url"))}formatErrors(e,t){let s;console.error(e);const u=e.error;if(u.errorId&&(s=u),void 0!==s)return s.urlWithParams=t.urlWithParams,s.call=t.url,s.payload=t.body,s}isNotConsolidatorOrLinker(){const e=this.store.getProperty("application");return!("Linker"===e||"Consolidator"===e)}handleInvalidAccessTokenError(e){if(401===e.status){if(!this.isLoggedIn()||"invalid_token"===e.error.error||null!=this.dialogRefSessionExpiration)return;const t=on();this.dialogRefSessionExpiration=this.dialog.open(wp,t),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{this.oauthService.logOut(!0),this.reauthenticate()})}}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(Wr),h.LFG(xb),h.LFG($r),h.LFG(gi),h.LFG(Cn),h.LFG(Cs),h.LFG(Cp),h.LFG(Gr.Ct))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac}),r})(),Gl=(()=>{class r{constructor(){this.newNotificationsCount=0,this.notificationData=[]}storeNotification(e){this.newNotificationsCount++,this.notificationData.push(e)}getNotifications(){return this.notificationData.reverse()}clearNotifications(){this.notificationData=[]}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),GA=(()=>{class r{constructor(e,t,s,u){this.http=e,this.notificator=t,this.authService=s,this.storeService=u}getApiUrl(){return void 0===this.api_url&&(this.api_url=this.storeService.getProperty("api_url")),this.api_url+"/"}getHeaders(){let e=new v.WM;return e=e.set("Authorization",this.authService.getAuthorizationHeaderValue()),e}get(e,t=!0){const s=`${this.getApiUrl()}${e}`;return this.http.get(s,{headers:this.getHeaders()}).pipe((0,Xi.K)(u=>this.formatErrors(u,s,null,t)))}put(e,t={},s=!0){const u=`${this.getApiUrl()}${e}`,d=JSON.stringify(t);return this.http.put(u,d,{headers:this.getHeaders()}).pipe((0,Xi.K)(l=>this.formatErrors(l,u,d,s)))}post(e,t={},s=!0){const u=`${this.getApiUrl()}${e}`,d=JSON.stringify(t);let l=this.getHeaders();return l=l.set("Content-Type","application/json; charset=utf-8"),this.http.post(u,d,{headers:l}).pipe((0,Xi.K)(n=>this.formatErrors(n,u,d,s)))}delete(e,t=!0){const s=`${this.getApiUrl()}${e}`;return this.http.delete(s,{headers:this.getHeaders()}).pipe((0,Xi.K)(u=>this.formatErrors(u,s,null,t)))}formatErrors(e,t,s,u){const d=e.error;return d.call=t,d.payload=s,u&&this.notificator.showRPCError(e.error),(0,Di._)(d)}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(v.eN),h.LFG($r),h.LFG(Wr),h.LFG(gi))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),$A=(()=>{class r{constructor(e,t){this.route=e,this.store=t}getPreferredLanguage(e){const t=this.store.getProperty("supported_languages"),s=navigator.languages.map(l=>l.split("-")[0]),u=location.search.substring(1).split("&");let d=null;for(const l of u){const n=l.split("=");"lang"===n[0]&&(d=n[1])}return d&&t.includes(d)?d:e&&t.includes(e)?e:s&&t.includes(s[0])?s[0]:"en"}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(jn),h.LFG(gi))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Tb=(()=>{class r{constructor(e){this.storeService=e}static getBrandContainingDomain(e,t){for(const u of e)if(u.newApps.admin===t||u.newApps.profile===t||u.newApps.pwdReset===t||u.newApps.consolidator===t||u.newApps.linker===t)return u;return e.filter(u=>"default"===u.name)[0]||e[0]}getUrlForOtherApplication(e,t){const u=window.location.href.split("/"),d=u[0]+"//"+u[2],l=r.getBrandContainingDomain(this.storeService.getAppsConfig().brands,d);let n;if(l.newApps[e])n=l.newApps[e],"pwdReset"===e&&(n+=`?login-namespace=${t}`);else switch(n=l.oldGuiDomain+"/fed",e){case"admin":n+="/gui/";break;case"profile":n+="/profile/";break;case"pwdReset":n+=`/pwd-reset/?login-namespace=${t}`}return n}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(gi))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();var Yr=(()=>{return(r=Yr||(Yr={})).Admin="admin",r.Profile="profile",r.PwdReset="pwdReset",r.Consolidator="consolidator",r.Linker="linker",Yr;var r})();let $l=(()=>{class r{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=s=>{},this.onTouched=()=>{}}setProperty(e,t){this._renderer.setProperty(this._elementRef.nativeElement,e,t)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(h.Qsj),h.Y36(h.SBq))},r.\u0275dir=h.lG2({type:r}),r})(),Qr=(()=>{class r extends $l{}return r.\u0275fac=function(){let a;return function(t){return(a||(a=h.n5z(r)))(t||r)}}(),r.\u0275dir=h.lG2({type:r,features:[h.qOj]}),r})();const sn=new h.OlP("NgValueAccessor"),Hb={provide:sn,useExisting:(0,h.Gpc)(()=>oo),multi:!0},QA=new h.OlP("CompositionEventMode");let oo=(()=>{class r extends $l{constructor(e,t,s){super(e,t),this._compositionMode=s,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function ws(){const r=(0,M.q)()?(0,M.q)().getUserAgent():"";return/android (\d+)/.test(r.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(h.Qsj),h.Y36(h.SBq),h.Y36(QA,8))},r.\u0275dir=h.lG2({type:r,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(e,t){1&e&&h.NdJ("input",function(u){return t._handleInput(u.target.value)})("blur",function(){return t.onTouched()})("compositionstart",function(){return t._compositionStart()})("compositionend",function(u){return t._compositionEnd(u.target.value)})},features:[h._Bn([Hb]),h.qOj]}),r})();function so(r){return null==r||("string"==typeof r||Array.isArray(r))&&0===r.length}function Rb(r){return null!=r&&"number"==typeof r.length}const xi=new h.OlP("NgValidators"),Ca=new h.OlP("NgAsyncValidators"),JA=/^(?=.{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 Yl{static min(a){return function vp(r){return a=>{if(so(a.value)||so(r))return null;const e=parseFloat(a.value);return!isNaN(e)&&e{if(so(a.value)||so(r))return null;const e=parseFloat(a.value);return!isNaN(e)&&e>r?{max:{max:r,actual:a.value}}:null}}(a)}static required(a){return Pb(a)}static requiredTrue(a){return function xp(r){return!0===r.value?null:{required:!0}}(a)}static email(a){return function Sp(r){return so(r.value)||JA.test(r.value)?null:{email:!0}}(a)}static minLength(a){return function Ib(r){return a=>so(a.value)||!Rb(a.value)?null:a.value.lengthRb(a.value)&&a.value.length>r?{maxlength:{requiredLength:r,actualLength:a.value.length}}:null}(a)}static pattern(a){return function Tp(r){if(!r)return Dd;let a,e;return"string"==typeof r?(e="","^"!==r.charAt(0)&&(e+="^"),e+=r,"$"!==r.charAt(r.length-1)&&(e+="$"),a=new RegExp(e)):(e=r.toString(),a=r),t=>{if(so(t.value))return null;const s=t.value;return a.test(s)?null:{pattern:{requiredPattern:e,actualValue:s}}}}(a)}static nullValidator(a){return null}static compose(a){return ZA(a)}static composeAsync(a){return XA(a)}}function Pb(r){return so(r.value)?{required:!0}:null}function Dd(r){return null}function Ep(r){return null!=r}function Mp(r){return(0,h.QGY)(r)?(0,$e.D)(r):r}function Dp(r){let a={};return r.forEach(e=>{a=null!=e?{...a,...e}:a}),0===Object.keys(a).length?null:a}function Hp(r,a){return a.map(e=>e(r))}function Vb(r){return r.map(a=>function KA(r){return!r.validate}(a)?a:e=>a.validate(e))}function ZA(r){if(!r)return null;const a=r.filter(Ep);return 0==a.length?null:function(e){return Dp(Hp(e,a))}}function Hd(r){return null!=r?ZA(Vb(r)):null}function XA(r){if(!r)return null;const a=r.filter(Ep);return 0==a.length?null:function(e){return Sr(Hp(e,a).map(Mp)).pipe((0,ct.U)(Dp))}}function Bb(r){return null!=r?XA(Vb(r)):null}function e0(r,a){return null===r?[a]:Array.isArray(r)?[...r,a]:[r,a]}function t0(r){return r._rawValidators}function n0(r){return r._rawAsyncValidators}function Ob(r){return r?Array.isArray(r)?r:[r]:[]}function Rp(r,a){return Array.isArray(r)?r.includes(a):r===a}function r0(r,a){const e=Ob(a);return Ob(r).forEach(s=>{Rp(e,s)||e.push(s)}),e}function Ql(r,a){return Ob(a).filter(e=>!Rp(r,e))}class a0{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(a){this._rawValidators=a||[],this._composedValidatorFn=Hd(this._rawValidators)}_setAsyncValidators(a){this._rawAsyncValidators=a||[],this._composedAsyncValidatorFn=Bb(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(a){this._onDestroyCallbacks.push(a)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(a=>a()),this._onDestroyCallbacks=[]}reset(a){this.control&&this.control.reset(a)}hasError(a,e){return!!this.control&&this.control.hasError(a,e)}getError(a,e){return this.control?this.control.getError(a,e):null}}class Fi extends a0{get formDirective(){return null}get path(){return null}}class wn extends a0{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}let ys=(()=>{class r extends class Pp{constructor(a){this._cd=a}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}{constructor(e){super(e)}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(wn,2))},r.\u0275dir=h.lG2({type:r,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&h.ekj("ng-untouched",t.isUntouched)("ng-touched",t.isTouched)("ng-pristine",t.isPristine)("ng-dirty",t.isDirty)("ng-valid",t.isValid)("ng-invalid",t.isInvalid)("ng-pending",t.isPending)},features:[h.qOj]}),r})();const Pd="VALID",ln="INVALID",vs="PENDING",lo="DISABLED";function Bp(r){return(kd(r)?r.validators:r)||null}function cn(r){return Array.isArray(r)?Hd(r):r||null}function Op(r,a){return(kd(a)?a.asyncValidators:r)||null}function Id(r){return Array.isArray(r)?Bb(r):r||null}function kd(r){return null!=r&&!Array.isArray(r)&&"object"==typeof r}class Lp{constructor(a,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=a,this._rawAsyncValidators=e,this._composedValidatorFn=cn(this._rawValidators),this._composedAsyncValidatorFn=Id(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(a){this._rawValidators=this._composedValidatorFn=a}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(a){this._rawAsyncValidators=this._composedAsyncValidatorFn=a}get parent(){return this._parent}get valid(){return this.status===Pd}get invalid(){return this.status===ln}get pending(){return this.status==vs}get disabled(){return this.status===lo}get enabled(){return this.status!==lo}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(a){this._rawValidators=a,this._composedValidatorFn=cn(a)}setAsyncValidators(a){this._rawAsyncValidators=a,this._composedAsyncValidatorFn=Id(a)}addValidators(a){this.setValidators(r0(a,this._rawValidators))}addAsyncValidators(a){this.setAsyncValidators(r0(a,this._rawAsyncValidators))}removeValidators(a){this.setValidators(Ql(a,this._rawValidators))}removeAsyncValidators(a){this.setAsyncValidators(Ql(a,this._rawAsyncValidators))}hasValidator(a){return Rp(this._rawValidators,a)}hasAsyncValidator(a){return Rp(this._rawAsyncValidators,a)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(a={}){this.touched=!0,this._parent&&!a.onlySelf&&this._parent.markAsTouched(a)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(a=>a.markAllAsTouched())}markAsUntouched(a={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!a.onlySelf&&this._parent._updateTouched(a)}markAsDirty(a={}){this.pristine=!1,this._parent&&!a.onlySelf&&this._parent.markAsDirty(a)}markAsPristine(a={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!a.onlySelf&&this._parent._updatePristine(a)}markAsPending(a={}){this.status=vs,!1!==a.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!a.onlySelf&&this._parent.markAsPending(a)}disable(a={}){const e=this._parentMarkedDirty(a.onlySelf);this.status=lo,this.errors=null,this._forEachChild(t=>{t.disable({...a,onlySelf:!0})}),this._updateValue(),!1!==a.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...a,skipPristineCheck:e}),this._onDisabledChange.forEach(t=>t(!0))}enable(a={}){const e=this._parentMarkedDirty(a.onlySelf);this.status=Pd,this._forEachChild(t=>{t.enable({...a,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:a.emitEvent}),this._updateAncestors({...a,skipPristineCheck:e}),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(a){this._parent&&!a.onlySelf&&(this._parent.updateValueAndValidity(a),a.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(a){this._parent=a}getRawValue(){return this.value}updateValueAndValidity(a={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Pd||this.status===vs)&&this._runAsyncValidator(a.emitEvent)),!1!==a.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!a.onlySelf&&this._parent.updateValueAndValidity(a)}_updateTreeValidity(a={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(a)),this.updateValueAndValidity({onlySelf:!0,emitEvent:a.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?lo:Pd}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(a){if(this.asyncValidator){this.status=vs,this._hasOwnPendingAsyncValidator=!0;const e=Mp(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(t=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(t,{emitEvent:a})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(a,e={}){this.errors=a,this._updateControlsErrors(!1!==e.emitEvent)}get(a){let e=a;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((t,s)=>t&&t._find(s),this)}getError(a,e){const t=e?this.get(e):this;return t&&t.errors?t.errors[a]:null}hasError(a,e){return!!this.getError(a,e)}get root(){let a=this;for(;a._parent;)a=a._parent;return a}_updateControlsErrors(a){this.status=this._calculateStatus(),a&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(a)}_initObservables(){this.valueChanges=new h.vpe,this.statusChanges=new h.vpe}_calculateStatus(){return this._allControlsDisabled()?lo:this.errors?ln:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(vs)?vs:this._anyControlsHaveStatus(ln)?ln:Pd}_anyControlsHaveStatus(a){return this._anyControls(e=>e.status===a)}_anyControlsDirty(){return this._anyControls(a=>a.dirty)}_anyControlsTouched(){return this._anyControls(a=>a.touched)}_updatePristine(a={}){this.pristine=!this._anyControlsDirty(),this._parent&&!a.onlySelf&&this._parent._updatePristine(a)}_updateTouched(a={}){this.touched=this._anyControlsTouched(),this._parent&&!a.onlySelf&&this._parent._updateTouched(a)}_registerOnCollectionChange(a){this._onCollectionChange=a}_setUpdateStrategy(a){kd(a)&&null!=a.updateOn&&(this._updateOn=a.updateOn)}_parentMarkedDirty(a){return!a&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(a){return null}}class Bd extends Lp{constructor(a,e,t){super(Bp(e),Op(t,e)),this.controls=a,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(a,e){return this.controls[a]?this.controls[a]:(this.controls[a]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(a,e,t={}){this.registerControl(a,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}removeControl(a,e={}){this.controls[a]&&this.controls[a]._registerOnCollectionChange(()=>{}),delete this.controls[a],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(a,e,t={}){this.controls[a]&&this.controls[a]._registerOnCollectionChange(()=>{}),delete this.controls[a],e&&this.registerControl(a,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}contains(a){return this.controls.hasOwnProperty(a)&&this.controls[a].enabled}setValue(a,e={}){(function Vd(r,a,e){r._forEachChild((t,s)=>{if(void 0===e[s])throw new h.vHH(1002,"")})})(this,0,a),Object.keys(a).forEach(t=>{(function Ub(r,a,e){const t=r.controls;if(!(a?Object.keys(t):t).length)throw new h.vHH(1e3,"");if(!t[e])throw new h.vHH(1001,"")})(this,!0,t),this.controls[t].setValue(a[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(a,e={}){null!=a&&(Object.keys(a).forEach(t=>{const s=this.controls[t];s&&s.patchValue(a[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(a={},e={}){this._forEachChild((t,s)=>{t.reset(a[s],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(a,e,t)=>(a[t]=e.getRawValue(),a))}_syncPendingControls(){let a=this._reduceChildren(!1,(e,t)=>!!t._syncPendingControls()||e);return a&&this.updateValueAndValidity({onlySelf:!0}),a}_forEachChild(a){Object.keys(this.controls).forEach(e=>{const t=this.controls[e];t&&a(t,e)})}_setUpControls(){this._forEachChild(a=>{a.setParent(this),a._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(a){for(const[e,t]of Object.entries(this.controls))if(this.contains(e)&&a(t))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,t,s)=>((t.enabled||this.disabled)&&(e[s]=t.value),e))}_reduceChildren(a,e){let t=a;return this._forEachChild((s,u)=>{t=e(t,s,u)}),t}_allControlsDisabled(){for(const a of Object.keys(this.controls))if(this.controls[a].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(a){return this.controls.hasOwnProperty(a)?this.controls[a]:null}}function Zl(r,a){Xl(r,a),a.valueAccessor.writeValue(r.value),r.disabled&&a.valueAccessor.setDisabledState?.(!0),function u0(r,a){a.valueAccessor.registerOnChange(e=>{r._pendingValue=e,r._pendingChange=!0,r._pendingDirty=!0,"change"===r.updateOn&&zb(r,a)})}(r,a),function h0(r,a){const e=(t,s)=>{a.valueAccessor.writeValue(t),s&&a.viewToModelUpdate(t)};r.registerOnChange(e),a._registerOnDestroy(()=>{r._unregisterOnChange(e)})}(r,a),function ME(r,a){a.valueAccessor.registerOnTouched(()=>{r._pendingTouched=!0,"blur"===r.updateOn&&r._pendingChange&&zb(r,a),"submit"!==r.updateOn&&r.markAsTouched()})}(r,a),function qb(r,a){if(a.valueAccessor.setDisabledState){const e=t=>{a.valueAccessor.setDisabledState(t)};r.registerOnDisabledChange(e),a._registerOnDestroy(()=>{r._unregisterOnDisabledChange(e)})}}(r,a)}function As(r,a,e=!0){const t=()=>{};a.valueAccessor&&(a.valueAccessor.registerOnChange(t),a.valueAccessor.registerOnTouched(t)),Dn(r,a),r&&(a._invokeOnDestroyCallbacks(),r._registerOnCollectionChange(()=>{}))}function Qn(r,a){r.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(a)})}function Xl(r,a){const e=t0(r);null!==a.validator?r.setValidators(e0(e,a.validator)):"function"==typeof e&&r.setValidators([e]);const t=n0(r);null!==a.asyncValidator?r.setAsyncValidators(e0(t,a.asyncValidator)):"function"==typeof t&&r.setAsyncValidators([t]);const s=()=>r.updateValueAndValidity();Qn(a._rawValidators,s),Qn(a._rawAsyncValidators,s)}function Dn(r,a){let e=!1;if(null!==r){if(null!==a.validator){const s=t0(r);if(Array.isArray(s)&&s.length>0){const u=s.filter(d=>d!==a.validator);u.length!==s.length&&(e=!0,r.setValidators(u))}}if(null!==a.asyncValidator){const s=n0(r);if(Array.isArray(s)&&s.length>0){const u=s.filter(d=>d!==a.asyncValidator);u.length!==s.length&&(e=!0,r.setAsyncValidators(u))}}}const t=()=>{};return Qn(a._rawValidators,t),Qn(a._rawAsyncValidators,t),e}function zb(r,a){r._pendingDirty&&r.markAsDirty(),r.setValue(r._pendingValue,{emitModelToViewChange:!1}),a.viewToModelUpdate(r._pendingValue),r._pendingChange=!1}function Gb(r,a){Xl(r,a)}function Od(r,a){if(!r.hasOwnProperty("model"))return!1;const e=r.model;return!!e.isFirstChange()||!Object.is(a,e.currentValue)}function Ld(r,a){r._syncPendingControls(),a.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function jd(r,a){if(!a)return null;let e,t,s;return Array.isArray(a),a.forEach(u=>{u.constructor===oo?e=u:function RE(r){return Object.getPrototypeOf(r.constructor)===Qr}(u)?t=u:s=u}),s||t||e||null}const $b={provide:Fi,useExisting:(0,h.Gpc)(()=>wa)},xs=(()=>Promise.resolve(null))();let wa=(()=>{class r extends Fi{constructor(e,t){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new h.vpe,this.form=new Bd({},Hd(e),Bb(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){xs.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),Zl(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){xs.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){xs.then(()=>{const t=this._findContainer(e.path),s=new Bd({});Gb(s,e),t.registerControl(e.name,s),s.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){xs.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){xs.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,Ld(this.form,this._directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(xi,10),h.Y36(Ca,10))},r.\u0275dir=h.lG2({type:r,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&h.NdJ("submit",function(u){return t.onSubmit(u)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[h._Bn([$b]),h.qOj]}),r})();function ec(r,a){const e=r.indexOf(a);e>-1&&r.splice(e,1)}function Fp(r){return"object"==typeof r&&null!==r&&2===Object.keys(r).length&&"value"in r&&"disabled"in r}const Up=class extends Lp{constructor(a=null,e,t){super(Bp(e),Op(t,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(a),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),kd(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=Fp(a)?a.value:a)}setValue(a,e={}){this.value=this._pendingValue=a,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(a,e={}){this.setValue(a,e)}reset(a=this.defaultValue,e={}){this._applyFormState(a),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(a){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(a){this._onChange.push(a)}_unregisterOnChange(a){ec(this._onChange,a)}registerOnDisabledChange(a){this._onDisabledChange.push(a)}_unregisterOnDisabledChange(a){ec(this._onDisabledChange,a)}_forEachChild(a){}_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(a){Fp(a)?(this.value=this._pendingValue=a.value,a.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=a}},Yb=Up,b0={provide:wn,useExisting:(0,h.Gpc)(()=>Np)},C0=(()=>Promise.resolve(null))();let Np=(()=>{class r extends wn{constructor(e,t,s,u,d){super(),this._changeDetectorRef=d,this.control=new Up,this._registered=!1,this.update=new h.vpe,this._parent=e,this._setValidators(t),this._setAsyncValidators(s),this.valueAccessor=jd(0,u)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const t=e.name.previousValue;this.formDirective.removeControl({name:t,path:this._getPath(t)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),Od(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_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(){Zl(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(e){C0.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const t=e.isDisabled.currentValue,s=0!==t&&(0,h.D6c)(t);C0.then(()=>{s&&!this.control.disabled?this.control.disable():!s&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?function Kl(r,a){return[...a.path,r]}(e,this._parent):[e]}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(Fi,9),h.Y36(xi,10),h.Y36(Ca,10),h.Y36(sn,10),h.Y36(h.sBO,8))},r.\u0275dir=h.lG2({type:r,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[h._Bn([b0]),h.qOj,h.TTD]}),r})(),Kb=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({}),r})();const tc=new h.OlP("NgModelWithFormControlWarning"),Wp={provide:wn,useExisting:(0,h.Gpc)(()=>$p)};let $p=(()=>{class r extends wn{constructor(e,t,s,u){super(),this._ngModelWarningConfig=u,this.update=new h.vpe,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(t),this.valueAccessor=jd(0,s)}set isDisabled(e){}ngOnChanges(e){if(this._isControlChanged(e)){const t=e.form.previousValue;t&&As(t,this,!1),Zl(this.form,this),this.form.updateValueAndValidity({emitEvent:!1})}Od(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&As(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}}return r._ngModelWarningSentOnce=!1,r.\u0275fac=function(e){return new(e||r)(h.Y36(xi,10),h.Y36(Ca,10),h.Y36(sn,10),h.Y36(tc,8))},r.\u0275dir=h.lG2({type:r,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[h._Bn([Wp]),h.qOj,h.TTD]}),r})();const Yp={provide:Fi,useExisting:(0,h.Gpc)(()=>uo)};let uo=(()=>{class r extends Fi{constructor(e,t){super(),this.validators=e,this.asyncValidators=t,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new h.vpe,this._setValidators(e),this._setAsyncValidators(t)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Dn(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const t=this.form.get(e.path);return Zl(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){As(e.control||null,e,!1),function Wb(r,a){const e=r.indexOf(a);e>-1&&r.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,t){this.form.get(e.path).setValue(t)}onSubmit(e){return this.submitted=!0,Ld(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const t=e.control,s=this.form.get(e.path);t!==s&&(As(t||null,e),(r=>r instanceof Up)(s)&&(Zl(s,e),e.control=s))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const t=this.form.get(e.path);Gb(t,e),t.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const t=this.form.get(e.path);t&&function p0(r,a){return Dn(r,a)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Xl(this.form,this),this._oldForm&&Dn(this._oldForm,this)}_checkFormPresent(){}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(xi,10),h.Y36(Ca,10))},r.\u0275dir=h.lG2({type:r,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&h.NdJ("submit",function(u){return t.onSubmit(u)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[h._Bn([Yp]),h.qOj,h.TTD]}),r})(),ho=(()=>{class r{constructor(){this._validator=Dd}ngOnChanges(e){if(this.inputName in e){const t=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(t),this._validator=this._enabled?this.createValidator(t):Dd,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275dir=h.lG2({type:r,features:[h.TTD]}),r})();const H0={provide:xi,useExisting:(0,h.Gpc)(()=>nc),multi:!0};let nc=(()=>{class r extends ho{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=h.D6c,this.createValidator=e=>Pb}enabled(e){return e}}return r.\u0275fac=function(){let a;return function(t){return(a||(a=h.n5z(r)))(t||r)}}(),r.\u0275dir=h.lG2({type:r,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&h.uIk("required",t._enabled?"":null)},inputs:{required:"required"},features:[h._Bn([H0]),h.qOj]}),r})(),b=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({imports:[Kb]}),r})(),C=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({imports:[b]}),r})(),y=(()=>{class r{static withConfig(e){return{ngModule:r,providers:[{provide:tc,useValue:e.warnOnNgModelWithFormControl}]}}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({imports:[b]}),r})();const te=ur({passive:!0});let se=(()=>{class r{constructor(e,t){this._platform=e,this._ngZone=t,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return Oi.E;const t=li(e),s=this._monitoredElements.get(t);if(s)return s.subject;const u=new He.x,d="cdk-text-field-autofilled",l=n=>{"cdk-text-field-autofill-start"!==n.animationName||t.classList.contains(d)?"cdk-text-field-autofill-end"===n.animationName&&t.classList.contains(d)&&(t.classList.remove(d),this._ngZone.run(()=>u.next({target:n.target,isAutofilled:!1}))):(t.classList.add(d),this._ngZone.run(()=>u.next({target:n.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{t.addEventListener("animationstart",l,te),t.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(t,{subject:u,unlisten:()=>{t.removeEventListener("animationstart",l,te)}}),u}stopMonitoring(e){const t=li(e),s=this._monitoredElements.get(t);s&&(s.unlisten(),s.subject.complete(),t.classList.remove("cdk-text-field-autofill-monitored"),t.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(t))}ngOnDestroy(){this._monitoredElements.forEach((e,t)=>this.stopMonitoring(t))}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(Jt),h.LFG(h.R0b))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Te=(()=>{class r{constructor(e,t,s,u){this._elementRef=e,this._platform=t,this._ngZone=s,this._destroyed=new He.x,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._handleFocusEvent=d=>{this._hasFocus="focus"===d.type},this._document=u,this._textareaElement=this._elementRef.nativeElement}get minRows(){return this._minRows}set minRows(e){this._minRows=Pi(e),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(e){this._maxRows=Pi(e),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(e){e=ze(e),this._enabled!==e&&((this._enabled=e)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(e){this._cachedPlaceholderHeight=void 0,e?this._textareaElement.setAttribute("placeholder",e):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}_setMinHeight(){const e=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;e&&(this._textareaElement.style.minHeight=e)}_setMaxHeight(){const e=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;e&&(this._textareaElement.style.maxHeight=e)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{Ja(this._getWindow(),"resize").pipe(es(16),gt(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0)),this._textareaElement.addEventListener("focus",this._handleFocusEvent),this._textareaElement.addEventListener("blur",this._handleFocusEvent)}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._textareaElement.removeEventListener("focus",this._handleFocusEvent),this._textareaElement.removeEventListener("blur",this._handleFocusEvent),this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let e=this._textareaElement.cloneNode(!1);e.rows=1,e.style.position="absolute",e.style.visibility="hidden",e.style.border="none",e.style.padding="0",e.style.height="",e.style.minHeight="",e.style.maxHeight="",e.style.overflow="hidden",this._textareaElement.parentNode.appendChild(e),this._cachedLineHeight=e.clientHeight,e.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){const e=this._textareaElement,t=e.style.marginBottom||"",s=this._platform.FIREFOX,u=s&&this._hasFocus,d=s?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";u&&(e.style.marginBottom=`${e.clientHeight}px`),e.classList.add(d);const l=e.scrollHeight-4;return e.classList.remove(d),u&&(e.style.marginBottom=t),l}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const e=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=e}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(e=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;const t=this._elementRef.nativeElement,s=t.value;if(!e&&this._minRows===this._previousMinRows&&s===this._previousValue)return;const u=this._measureScrollHeight(),d=Math.max(u,this._cachedPlaceholderHeight||0);t.style.height=`${d}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(t)):setTimeout(()=>this._scrollToCaretPosition(t))}),this._previousValue=s,this._previousMinRows=this._minRows}reset(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollToCaretPosition(e){const{selectionStart:t,selectionEnd:s}=e;!this._destroyed.isStopped&&this._hasFocus&&e.setSelectionRange(t,s)}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(h.SBq),h.Y36(Jt),h.Y36(h.R0b),h.Y36(M.K0,8))},r.\u0275dir=h.lG2({type:r,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(e,t){1&e&&h.NdJ("input",function(){return t._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]}),r})(),Ve=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({}),r})();const et=new h.OlP("MAT_INPUT_VALUE_ACCESSOR"),ve=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let Qe=0;const _t=hh(class{constructor(r,a,e,t){this._defaultErrorStateMatcher=r,this._parentForm=a,this._parentFormGroup=e,this.ngControl=t,this.stateChanges=new He.x}});let Ot=(()=>{class r extends _t{constructor(e,t,s,u,d,l,n,i,o,c){super(l,u,d,s),this._elementRef=e,this._platform=t,this._autofillMonitor=i,this._formField=c,this._uid="mat-input-"+Qe++,this.focused=!1,this.stateChanges=new He.x,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(g=>Bm().has(g)),this._iOSKeyupListener=g=>{const f=g.target;!f.value&&0===f.selectionStart&&0===f.selectionEnd&&(f.setSelectionRange(1,1),f.setSelectionRange(0,0))};const p=this._elementRef.nativeElement,m=p.nodeName.toLowerCase();this._inputValueAccessor=n||p,this._previousNativeValue=this.value,this.id=this.id,t.IOS&&o.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===m,this._isTextarea="textarea"===m,this._isInFormField=!!c,this._isNativeSelect&&(this.controlType=p.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=ze(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(Yl.required)??!1}set required(e){this._required=ze(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&Bm().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=ze(e)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){const e=this._formField,t=e&&"legacy"===e.appearance&&!e._hasLabel?.()?null:this.placeholder;if(t!==this._previousPlaceholder){const s=this._elementRef.nativeElement;this._previousPlaceholder=t,t?s.setAttribute("placeholder",t):s.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){ve.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(h.SBq),h.Y36(Jt),h.Y36(wn,10),h.Y36(wa,8),h.Y36(uo,8),h.Y36(ha),h.Y36(et,10),h.Y36(se),h.Y36(h.R0b),h.Y36(Qh,8))},r.\u0275dir=h.lG2({type:r,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(e,t){1&e&&h.NdJ("focus",function(){return t._focusChanged(!0)})("blur",function(){return t._focusChanged(!1)})("input",function(){return t._onInput()}),2&e&&(h.Ikx("disabled",t.disabled)("required",t.required),h.uIk("id",t.id)("data-placeholder",t.placeholder)("name",t.name||null)("readonly",t.readonly&&!t._isNativeSelect||null)("aria-invalid",t.empty&&t.required?null:t.errorState)("aria-required",t.required),h.ekj("mat-input-server",t._isServer)("mat-native-select-inline",t._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[h._Bn([{provide:wd,useExisting:r}]),h.qOj,h.TTD]}),r})(),br=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({providers:[ha],imports:[Ve,to,Ye,Ve,to]}),r})();function Kp(r,a){1&r&&(h.TgZ(0,"mat-error"),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&r&&(h.xp6(1),h.Oqu(h.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT_ERROR")))}let Zp=(()=>{class r{constructor(e,t,s,u,d){this.dialogRef=e,this.translate=t,this.notificator=s,this.rtMessages=u,this.storeService=d,this.message="",this.subject="",this.instanceName=""}ngOnInit(){this.instanceName=this.storeService.getProperty("config")}sendBugReport(){this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(e=>{this.dialogRef.afterClosed().subscribe(()=>this.notificator.showSuccess(this.translate.instant("DIALOGS.REPORT_ISSUE.SUCCESS")+String(e.ticketNumber))),this.dialogRef.close()})}getFullEmailBody(){return this.message.concat("\n ","------------------------\n ","Perun instance: ",this.instanceName,"\n ","Sended from new Perun Gui, version: ",E(4147).i8)}close(){this.dialogRef.close()}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(bn),h.Y36(hn),h.Y36($r),h.Y36(Vs),h.Y36(gi))},r.\u0275cmp=h.Xpm({type:r,selectors:[["perun-web-apps-report-issue-dialog"]],decls:29,vars:25,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","","type","text",3,"ngModel","ngModelChange"],["subjectModel","ngModel"],[4,"ngIf"],["matInput","",3,"placeholder","ngModel","ngModelChange"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(e,t){if(1&e&&(h.TgZ(0,"h1",0),h._uU(1),h.ALo(2,"translate"),h.qZA(),h.TgZ(3,"div",1)(4,"mat-form-field")(5,"mat-label"),h._uU(6),h.ALo(7,"translate"),h.qZA(),h.TgZ(8,"input",2,3),h.NdJ("ngModelChange",function(u){return t.subject=u}),h.qZA(),h.YNc(10,Kp,3,3,"mat-error",4),h.qZA(),h.TgZ(11,"mat-form-field")(12,"mat-label"),h._uU(13),h.ALo(14,"translate"),h.qZA(),h.TgZ(15,"textarea",5),h.NdJ("ngModelChange",function(u){return t.message=u}),h.ALo(16,"translate"),h._uU(17," "),h.qZA(),h.TgZ(18,"mat-hint"),h._uU(19),h.ALo(20,"translate"),h.qZA()()(),h.TgZ(21,"div",6)(22,"div",7)(23,"button",8),h.NdJ("click",function(){return t.close()}),h._uU(24),h.ALo(25,"translate"),h.qZA(),h.TgZ(26,"button",9),h.NdJ("click",function(){return t.sendBugReport()}),h._uU(27),h.ALo(28,"translate"),h.qZA()()()),2&e){const s=h.MAs(9);h.xp6(1),h.Oqu(h.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.TITLE")),h.xp6(5),h.Oqu(h.lcZ(7,13,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT")),h.xp6(2),h.Q6J("ngModel",t.subject),h.xp6(2),h.Q6J("ngIf",s.invalid),h.xp6(3),h.Oqu(h.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE")),h.xp6(2),h.s9C("placeholder",h.lcZ(16,17,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_PLACEHOLDER")),h.Q6J("ngModel",t.message),h.xp6(4),h.Oqu(h.lcZ(20,19,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_HINT")),h.xp6(5),h.hij(" ",h.lcZ(25,21,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.CANCEL")," "),h.xp6(2),h.Q6J("disabled",s.invalid),h.xp6(1),h.hij(" ",h.lcZ(28,23,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SEND")," ")}},dependencies:[M.O5,oo,ys,nc,Np,ji,qh,Jh,y_,cs,Ot,Nr,qr,_r,yt],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),r})(),Xp=(()=>{class r{transform(e,t,s){return e[`${s}_${t}`]}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275pipe=h.Yjl({name:"localisedText",type:r,pure:!0}),r})(),ef=(()=>{class r{transform(e,t){return e["link_"+t]||e.link_en}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275pipe=h.Yjl({name:"localisedLink",type:r,pure:!0}),r})(),tf=(()=>{class r{transform(e){return e.includes("/")?e:"/assets/config/"+e}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275pipe=h.Yjl({name:"footerLogoPath",type:r,pure:!0}),r})();function nf(r,a){if(1&r&&(h.TgZ(0,"a",13),h.ALo(1,"localisedLink"),h._UZ(2,"img",14),h.ALo(3,"footerLogoPath"),h.qZA()),2&r){const e=h.oxw().$implicit,t=h.oxw(3);h.Q6J("href",h.xi3(1,2,e,t.language),h.LSH),h.xp6(2),h.s9C("src",h.lcZ(3,5,e.logo),h.LSH)}}function rf(r,a){if(1&r&&(h.TgZ(0,"span"),h._UZ(1,"img",14),h.ALo(2,"footerLogoPath"),h.qZA()),2&r){const e=h.oxw().$implicit;h.xp6(1),h.s9C("src",h.lcZ(2,1,e.logo),h.LSH)}}function af(r,a){if(1&r&&(h.TgZ(0,"div"),h.YNc(1,nf,4,7,"a",11),h.ALo(2,"localisedLink"),h.YNc(3,rf,3,3,"span",12),h.ALo(4,"localisedLink"),h.qZA()),2&r){const e=a.$implicit,t=h.oxw(3);h.xp6(1),h.Q6J("ngIf",h.xi3(2,2,e,t.language)),h.xp6(2),h.Q6J("ngIf",!h.xi3(4,5,e,t.language))}}const sf=function(r){return{"min-height":r}};function _H(r,a){if(1&r&&(h.TgZ(0,"div",10),h.YNc(1,af,5,8,"div",5),h.qZA()),2&r){const e=h.oxw().$implicit,t=h.oxw();h.Q6J("ngStyle",h.VKq(2,sf,t.columnContentHeight+"px")),h.xp6(1),h.Q6J("ngForOf",e.elements)}}const po=function(r){return{color:r}};function bH(r,a){if(1&r&&(h.TgZ(0,"i",20),h._uU(1),h.qZA()),2&r){const e=h.oxw().$implicit,t=h.oxw(3);h.Q6J("ngStyle",h.VKq(2,po,t.linksTextColor)),h.xp6(1),h.hij(" ",e.icon," ")}}function CH(r,a){if(1&r){const e=h.EpF();h.TgZ(0,"span",21),h.NdJ("click",function(){h.CHM(e);const s=h.oxw().$implicit,u=h.oxw(3);return h.KtG(u.openDialog(s.dialog))}),h._uU(1),h.ALo(2,"localisedText"),h.qZA()}if(2&r){const e=h.oxw().$implicit,t=h.oxw(3);h.Q6J("ngStyle",h.VKq(6,po,t.linksTextColor)),h.xp6(1),h.hij("",h.Dn7(2,2,e,t.language,"label")," ")}}function wH(r,a){if(1&r&&(h.TgZ(0,"a",22),h.ALo(1,"localisedLink"),h._uU(2),h.ALo(3,"localisedText"),h.qZA()),2&r){const e=h.oxw().$implicit,t=h.oxw(3);h.Q6J("href",h.xi3(1,3,e,t.language),h.LSH)("ngStyle",h.VKq(10,po,t.linksTextColor)),h.xp6(2),h.Oqu(h.Dn7(3,6,e,t.language,"label"))}}function yH(r,a){if(1&r&&(h.TgZ(0,"span",10),h._uU(1),h.ALo(2,"localisedText"),h.qZA()),2&r){const e=h.oxw().$implicit,t=h.oxw(3);h.Q6J("ngStyle",h.VKq(6,po,t.linksTextColor)),h.xp6(1),h.Oqu(h.Dn7(2,2,e,t.language,"label"))}}function vH(r,a){if(1&r&&(h.TgZ(0,"div",16),h.YNc(1,bH,2,4,"i",17),h.YNc(2,CH,3,8,"span",18),h.YNc(3,wH,4,12,"a",19),h.ALo(4,"localisedLink"),h.YNc(5,yH,3,8,"span",9),h.ALo(6,"localisedLink"),h.qZA()),2&r){const e=a.$implicit,t=h.oxw(3);h.xp6(1),h.Q6J("ngIf",e.icon),h.xp6(1),h.Q6J("ngIf",e.dialog),h.xp6(1),h.Q6J("ngIf",h.xi3(4,4,e,t.language)&&!e.dialog),h.xp6(2),h.Q6J("ngIf",!h.xi3(6,7,e,t.language)&&!e.dialog)}}const AH=function(r){return{height:r}};function xH(r,a){if(1&r&&(h.TgZ(0,"div",10),h.YNc(1,vH,7,10,"div",15),h.qZA()),2&r){const e=h.oxw().$implicit,t=h.oxw();h.Q6J("ngStyle",h.VKq(2,AH,t.columnContentHeight+"px")),h.xp6(1),h.Q6J("ngForOf",e.elements)}}function SH(r,a){if(1&r&&(h.TgZ(0,"div",7)(1,"h6",8),h._uU(2),h.ALo(3,"localisedText"),h.qZA(),h.YNc(4,_H,2,4,"div",9),h.YNc(5,xH,2,4,"div",9),h.qZA()),2&r){const e=a.$implicit,t=h.oxw();h.ekj("my-auto",t.containsLogos),h.xp6(1),h.Q6J("ngStyle",h.VKq(10,po,t.headersTextColor)),h.xp6(1),h.hij(" ",h.Dn7(3,6,e,t.language,"title")," "),h.xp6(2),h.Q6J("ngIf",e.logos),h.xp6(1),h.Q6J("ngIf",e.elements&&!e.logos)}}function TH(r,a){if(1&r&&(h.TgZ(0,"span")(1,"a",6),h._uU(2),h.qZA()()),2&r){const e=a.$implicit,t=a.index,s=h.oxw();h.xp6(1),h.Q6J("href",e.url,h.LSH)("ngStyle",h.VKq(3,po,s.copyrightTextColor)),h.xp6(1),h.Oqu(t?", "+e.name:e.name)}}const EH=function(r){return{background:r}};let qE=(()=>{class r{constructor(e,t,s,u,d,l){this.storeService=e,this.translateService=t,this.utilsService=s,this.dialog=u,this.authService=d,this.initAuthService=l,this.copyrightTextColor=this.storeService.getProperty("theme").footer_copyright_text_color,this.footerColumns=[],this.copyrightItems=[],this.currentYear=(new Date).getFullYear(),this.containsLogos=!1,this.headersTextColor=this.storeService.getProperty("theme").footer_headers_text_color,this.linksTextColor=this.storeService.getProperty("theme").footer_links_text_color,this.githubRepository=this.storeService.getProperty("footer").github_releases,this.githubBackendRepository=this.storeService.getProperty("footer").github_backend_releases,this.bgColor=this.storeService.getProperty("theme").footer_bg_color,this.version="",this.backendVersion="",this.guiVersion="",this.language="en",this.columnContentHeight=0}ngOnInit(){this.translateService.onLangChange.subscribe(e=>{this.language=e.lang}),this.version=E(4147).i8,this.footerColumns=this.storeService.getProperty("footer").columns,this.guiVersion=E(4147).i8,this.utilsService.getPerunRPCVersion(!0).subscribe(e=>{this.backendVersion=e.match("\\bVersion:\\s*([^,\\s]+)")[1]}),this.footerColumns=this.storeService.getProperty("footer").columns;for(const e of this.footerColumns)e.logos?this.containsLogos=!0:25*e.elements.length>this.columnContentHeight&&(this.columnContentHeight=25*e.elements.length);this.copyrightItems=this.storeService.getProperty("footer").copyright_items}openDialog(e){const t=on();"reportIssue"===e&&(t.width="550px",this.dialog.open(Zp,t))}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(gi),h.Y36(hn),h.Y36(Ei),h.Y36(Cn),h.Y36(Wr),h.Y36(Cs))},r.\u0275cmp=h.Xpm({type:r,selectors:[["perun-web-apps-footer"]],decls:13,vars:19,consts:[[1,"footer-container",3,"ngStyle"],[1,"footer-columns-container"],["class","footer-col mx-auto",3,"my-auto",4,"ngFor","ngForOf"],[1,"my-0","mt-3"],[1,"font-fix","text-center",3,"ngStyle"],[4,"ngFor","ngForOf"],["target","_blank",1,"text-decoration-none",3,"href","ngStyle"],[1,"footer-col","mx-auto"],[1,"font-weight-bold",3,"ngStyle"],[3,"ngStyle",4,"ngIf"],[3,"ngStyle"],[3,"href",4,"ngIf"],[4,"ngIf"],[3,"href"],["alt","image",3,"src"],["class","row-height",4,"ngFor","ngForOf"],[1,"row-height"],["class","material-icons align-bottom mr-1",3,"ngStyle",4,"ngIf"],["id","clickable",3,"ngStyle","click",4,"ngIf"],["target","_blank",3,"href","ngStyle",4,"ngIf"],[1,"material-icons","align-bottom","mr-1",3,"ngStyle"],["id","clickable",3,"ngStyle","click"],["target","_blank",3,"href","ngStyle"]],template:function(e,t){1&e&&(h.TgZ(0,"footer",0)(1,"div",1),h.YNc(2,SH,6,12,"div",2),h.qZA(),h._UZ(3,"hr",3),h.TgZ(4,"div",4),h._uU(5),h.YNc(6,TH,3,5,"span",5),h._uU(7,", web application: "),h.TgZ(8,"a",6),h._uU(9),h.qZA(),h._uU(10,", server: "),h.TgZ(11,"a",6),h._uU(12),h.qZA()()()),2&e&&(h.Q6J("ngStyle",h.VKq(11,EH,t.bgColor)),h.xp6(2),h.Q6J("ngForOf",t.footerColumns),h.xp6(2),h.Q6J("ngStyle",h.VKq(13,po,t.copyrightTextColor)),h.xp6(1),h.hij(" \xa9 ",t.currentYear," Copyright: "),h.xp6(1),h.Q6J("ngForOf",t.copyrightItems),h.xp6(2),h.Q6J("href",t.githubRepository,h.LSH)("ngStyle",h.VKq(15,po,t.copyrightTextColor)),h.xp6(1),h.Oqu(t.guiVersion),h.xp6(2),h.Q6J("href",t.githubBackendRepository,h.LSH)("ngStyle",h.VKq(17,po,t.copyrightTextColor)),h.xp6(1),h.Oqu(t.backendVersion))},dependencies:[M.sg,M.O5,M.PC,Xp,ef,tf],styles:["a[_ngcontent-%COMP%]{text-decoration:none}.font-fix[_ngcontent-%COMP%]{font-size:.8rem}.row-height[_ngcontent-%COMP%]{height:25px!important}.footer-col[_ngcontent-%COMP%]{padding-top:35px;white-space:nowrap;text-align:center}.wrap-content[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content}#clickable[_ngcontent-%COMP%]{cursor:pointer}.footer-columns-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-direction:column}@media (min-width: 768px){.footer-columns-container[_ngcontent-%COMP%]{flex-direction:row}}.footer-container[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content}"]}),r})();function MH(r,a){if(1&r&&(h.TgZ(0,"div",8),h._UZ(1,"div",9),h.qZA()),2&r){const e=h.oxw();h.xp6(1),h.Q6J("innerHTML",e.logo,h.oJD)}}function DH(r,a){if(1&r&&(h.TgZ(0,"div",10),h._UZ(1,"div",11)(2,"mat-icon",12),h.qZA()),2&r){const e=h.oxw();h.xp6(1),h.Q6J("innerHTML",e.logo,h.oJD)}}const HH=function(r){return{color:r}};function RH(r,a){if(1&r&&(h.TgZ(0,"p",13),h._uU(1),h.qZA()),2&r){const e=h.oxw();h.Q6J("ngStyle",h.VKq(2,HH,e.textColor)),h.xp6(1),h.hij(" ",e.headerTitle," ")}}const PH=function(r,a){return{background:r,color:a}},IH=function(r,a){return{"min-height":r,"background-color":a}};let kH=(()=>{class r{constructor(e,t,s,u){this.storeService=e,this.sanitizer=t,this.preferredLangService=s,this.translateService=u,this.contentBackgroundColor=this.storeService.getProperty("theme").content_bg_color}ngOnInit(){if(this.headerBackgroundColor=this.storeService.getProperty("theme").nav_bg_color,this.headerTextColor=this.storeService.getProperty("theme").nav_text_color,this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.getProperty("logo")),this.textColor=this.headerTitle?this.storeService.getProperty("theme").nav_text_color:"","user-profile"===this.application){const e=this.preferredLangService.getPreferredLanguage(null);this.translateService.use(e)}}getContentInnerMinHeight(){return"calc((100vh - 64px) + 0px)"}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(gi),h.Y36(hi),h.Y36($A),h.Y36(hn))},r.\u0275cmp=h.Xpm({type:r,selectors:[["perun-web-apps-login-screen-base"]],inputs:{application:"application",headerTitle:"headerTitle"},decls:10,vars:11,consts:[["id","login-nav",1,"mat-elevation-z3",3,"ngStyle"],["class","mt-auto mb-auto",4,"ngIf"],["class","display-flex-row",4,"ngIf"],["class","ml-3 mt-auto mb-auto page-subtitle",3,"ngStyle",4,"ngIf"],["id","content"],["id","content-inner",3,"ngStyle"],["id","content-wrap"],["id","footer"],[1,"mt-auto","mb-auto"],[1,"logo-container",3,"innerHTML"],[1,"display-flex-row"],[1,"logo-container","mt-auto","mb-auto",3,"innerHTML"],["svgIcon","perun-publications-white",1,"mt-auto","mb-auto","router-icon","ml-2","mr-2"],[1,"ml-3","mt-auto","mb-auto","page-subtitle",3,"ngStyle"]],template:function(e,t){1&e&&(h.TgZ(0,"div",0),h.YNc(1,MH,2,1,"div",1),h.YNc(2,DH,3,1,"div",2),h.YNc(3,RH,2,4,"p",3),h.qZA(),h.TgZ(4,"div",4)(5,"div",5)(6,"div",6),h._UZ(7,"router-outlet"),h.qZA(),h.TgZ(8,"div",7),h._UZ(9,"perun-web-apps-footer"),h.qZA()()()),2&e&&(h.Q6J("ngStyle",h.WLB(5,PH,t.headerBackgroundColor,t.headerTextColor)),h.xp6(1),h.Q6J("ngIf","admin-gui"===t.application||"user-profile"===t.application||"consolidator"===t.application),h.xp6(1),h.Q6J("ngIf","publications"===t.application),h.xp6(1),h.Q6J("ngIf",!!t.headerTitle),h.xp6(2),h.Q6J("ngStyle",h.WLB(8,IH,t.getContentInnerMinHeight(),t.contentBackgroundColor)))},dependencies:[M.O5,M.PC,Yn,Uo,qE],styles:["#login-nav[_ngcontent-%COMP%]{position:fixed;width:100%;z-index:999;display:flex;height:64px;max-height:64px;top:0}#footer[_ngcontent-%COMP%]{position:absolute;bottom:0;width:100%}#content[_ngcontent-%COMP%]{width:100%;min-height:calc(100vh - 64px);margin-top:64px}#content-inner[_ngcontent-%COMP%]{position:relative}#content-wrap[_ngcontent-%COMP%]{padding-bottom:250px;padding-top:10px}@media (max-width: 768px){#content-wrap[_ngcontent-%COMP%]{padding-bottom:500px}}.router-icon[_ngcontent-%COMP%]{height:2.5rem;width:2.5rem;cursor:pointer;outline:0}.page-subtitle[_ngcontent-%COMP%]{margin-bottom:1rem;font-size:1.5rem}.logo-container[_ngcontent-%COMP%]{padding:0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}.display-flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}"]}),r})(),zE=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({imports:[M.ez]}),r})(),VH=(()=>{class r{transform(e){return[e.titleBefore,e.firstName,e.middleName,e.lastName,e.titleAfter].join(" ")}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275pipe=h.Yjl({name:"userFullName",type:r,pure:!0}),r})(),V0=(()=>{class r{constructor(e,t){this.translate=e,this.storage=t}transform(e,t="en"){const s=this.storage.getProperty("custom_labels");if(s)for(const u of s)if(u.label===e)return u[t];return e}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(hn,16),h.Y36(gi,16))},r.\u0275pipe=h.Yjl({name:"customTranslate",type:r,pure:!0}),r})();function qH(r,a){if(1&r&&(h.O4$(),h._UZ(0,"circle",4)),2&r){const e=h.oxw(),t=h.MAs(1);h.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+e._spinnerAnimationLabel)("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),h.uIk("r",e._getCircleRadius())}}function zH(r,a){if(1&r&&(h.O4$(),h._UZ(0,"circle",4)),2&r){const e=h.oxw(),t=h.MAs(1);h.Udp("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),h.uIk("r",e._getCircleRadius())}}const WH=zi(class{constructor(r){this._elementRef=r}},"primary"),$H=new h.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function YH(){return{diameter:100}}});class Cr extends WH{constructor(a,e,t,s,u,d,l,n){super(a),this._document=t,this._diameter=100,this._value=0,this._resizeSubscription=Yt.w0.EMPTY,this.mode="determinate";const i=Cr._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),i.has(t.head)||i.set(t.head,new Set([100])),this._noopAnimations="NoopAnimations"===s&&!!u&&!u._forceAnimations,"mat-spinner"===a.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),u&&(u.color&&(this.color=this.defaultColor=u.color),u.diameter&&(this.diameter=u.diameter),u.strokeWidth&&(this.strokeWidth=u.strokeWidth)),e.isBrowser&&e.SAFARI&&l&&d&&n&&(this._resizeSubscription=l.change(150).subscribe(()=>{"indeterminate"===this.mode&&n.run(()=>d.markForCheck())}))}get diameter(){return this._diameter}set diameter(a){this._diameter=Pi(a),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(a){this._strokeWidth=Pi(a)}get value(){return"determinate"===this.mode?this._value:0}set value(a){this._value=Math.max(0,Math.min(100,Pi(a)))}ngOnInit(){const a=this._elementRef.nativeElement;this._styleRoot=Yc(a)||this._document.head,this._attachStyleNode(),a.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const a=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${a} ${a}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_getCircleTransformOrigin(a){const e=50*(a.currentScale??1);return`${e}% ${e}%`}_attachStyleNode(){const a=this._styleRoot,e=this._diameter,t=Cr._diameters;let s=t.get(a);if(!s||!s.has(e)){const u=this._document.createElement("style");u.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),u.textContent=this._getAnimationText(),a.appendChild(u),s||(s=new Set,t.set(a,s)),s.add(e)}}_getAnimationText(){const a=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*a).replace(/END_VALUE/g,""+.2*a).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}Cr._diameters=new WeakMap,Cr.\u0275fac=function(a){return new(a||Cr)(h.Y36(h.SBq),h.Y36(Jt),h.Y36(M.K0,8),h.Y36(h.QbO,8),h.Y36($H),h.Y36(h.sBO),h.Y36(ts),h.Y36(h.R0b))},Cr.\u0275cmp=h.Xpm({type:Cr,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(a,e){2&a&&(h.uIk("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),h.Udp("width",e.diameter,"px")("height",e.diameter,"px"),h.ekj("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[h.qOj],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(a,e){1&a&&(h.O4$(),h.TgZ(0,"svg",0,1),h.YNc(2,qH,1,11,"circle",2),h.YNc(3,zH,1,9,"circle",3),h.qZA()),2&a&&(h.Udp("width",e.diameter,"px")("height",e.diameter,"px"),h.Q6J("ngSwitch","indeterminate"===e.mode),h.uIk("viewBox",e._getViewBox()),h.xp6(2),h.Q6J("ngSwitchCase",!0),h.xp6(1),h.Q6J("ngSwitchCase",!1))},dependencies:[M.RF,M.n9],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:rgba(0,0,0,0);transition:stroke-dashoffset 225ms linear}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}.mat-progress-spinner[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-progress-spinner._mat-animation-noopable svg,.mat-progress-spinner._mat-animation-noopable circle{animation:none;transition: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)}}"],encapsulation:2,changeDetection:0});let lC=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({imports:[Ye,M.ez,Ye]}),r})();function JH(r,a){1&r&&h._UZ(0,"mat-spinner",7)}function KH(r,a){1&r&&(h.TgZ(0,"mat-error"),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&r&&(h.xp6(1),h.Oqu(h.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_ERROR")))}function ZH(r,a){1&r&&(h.TgZ(0,"mat-error"),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&r&&(h.xp6(1),h.Oqu(h.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_ERROR")))}function XH(r,a){if(1&r){const e=h.EpF();h.TgZ(0,"div",8)(1,"mat-form-field")(2,"mat-label"),h._uU(3),h.ALo(4,"translate"),h.qZA(),h.TgZ(5,"input",9,10),h.NdJ("ngModelChange",function(s){h.CHM(e);const u=h.oxw();return h.KtG(u.subject=s)}),h.qZA(),h.YNc(7,KH,3,3,"mat-error",11),h.qZA(),h.TgZ(8,"mat-form-field")(9,"mat-label"),h._uU(10),h.ALo(11,"translate"),h.qZA(),h.TgZ(12,"textarea",12,13),h.NdJ("ngModelChange",function(s){h.CHM(e);const u=h.oxw();return h.KtG(u.message=s)}),h.ALo(14,"translate"),h._uU(15," "),h.qZA(),h.YNc(16,ZH,3,3,"mat-error",11),h.qZA()()}if(2&r){const e=h.MAs(6),t=h.MAs(13),s=h.oxw();h.xp6(3),h.Oqu(h.lcZ(4,7,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT")),h.xp6(2),h.Q6J("ngModel",s.subject),h.xp6(2),h.Q6J("ngIf",e.invalid),h.xp6(3),h.Oqu(h.lcZ(11,9,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE")),h.xp6(2),h.s9C("placeholder",h.lcZ(14,11,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_PLACEHOLDER")),h.Q6J("ngModel",s.message),h.xp6(4),h.Q6J("ngIf",t.invalid)}}let eR=(()=>{class r{constructor(e,t,s,u,d,l){this.dialogRef=e,this.translate=t,this.notificator=s,this.rtMessages=u,this.data=d,this.storeService=l,this.message="",this.subject="",this.methodRegexp=/(\w+\/\w+)$/g,this.loading=!1}ngOnInit(){this.data?.error?.errorId&&(this.subject="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_VALUE"),this.parseMethod(this.data.error.call)," (",this.data.error.errorId,")"))}sendBugReport(){this.loading=!0,this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(e=>{this.dialogRef.afterClosed().subscribe(()=>{const t="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS1"),e.ticketNumber.toString(),this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS2"));this.notificator.showSuccess(t)}),this.dialogRef.close()},()=>{this.loading=!1,this.dialogRef.afterClosed().subscribe(()=>{})})}getFullEmailBody(){const e=this.storeService.getProperty("config");let t=this.message+"\n------------------------\nTechnical details:\n\n"+this.data.error.errorId;if(t=t.concat(this.data.error.type?" "+this.data.error.type+"\n":"\n"),t=t.concat(this.data.error.message,"\n","Perun instance: ",e,"\n","Request:\n",this.data.error.urlWithParams,"\n\n"),this.data.error.payload){const s=/"password":".+?"/;let u=JSON.stringify(this.data.error.payload);u=u.replace(s,'"password":"####"'),t=t.concat("Payload:\n"+u+"\n\n")}return t=t.concat("Sent from new Perun Gui, version: ",E(4147).i8),t.split("\n").join("\n ")}parseMethod(e){return e&&this.methodRegexp.exec(e)[1]}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(bn),h.Y36(hn),h.Y36($r),h.Y36(Vs),h.Y36(ao),h.Y36(gi))},r.\u0275cmp=h.Xpm({type:r,selectors:[["perun-web-apps-bug-report-dialog"]],decls:13,vars:12,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","",3,"ngModel","ngModelChange"],["subjectModel","ngModel"],[4,"ngIf"],["matInput","","required","",3,"ngModel","placeholder","ngModelChange"],["messageModel","ngModel"]],template:function(e,t){1&e&&(h.TgZ(0,"h1",0),h._uU(1),h.ALo(2,"translate"),h.qZA(),h.YNc(3,JH,1,0,"mat-spinner",1),h.YNc(4,XH,17,13,"div",2),h.TgZ(5,"div",3)(6,"div",4)(7,"button",5),h.NdJ("click",function(){return t.dialogRef.close()}),h._uU(8),h.ALo(9,"translate"),h.qZA(),h.TgZ(10,"button",6),h.NdJ("click",function(){return t.sendBugReport()}),h._uU(11),h.ALo(12,"translate"),h.qZA()()()),2&e&&(h.xp6(1),h.Oqu(h.lcZ(2,6,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.TITLE")),h.xp6(2),h.Q6J("ngIf",t.loading),h.xp6(1),h.Q6J("ngIf",!t.loading),h.xp6(4),h.hij(" ",h.lcZ(9,8,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.CANCEL")," "),h.xp6(2),h.Q6J("disabled",""===t.message||""===t.subject||t.loading),h.xp6(1),h.hij(" ",h.lcZ(12,10,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SEND")," "))},dependencies:[M.O5,Nr,qr,_r,ji,qh,Jh,cs,oo,ys,nc,Np,Ot,Cr,yt],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),r})(),tR=(()=>{class r{constructor(e,t,s){this.dialogRef=e,this.dialog=t,this.data=s}onCloseClick(){this.dialogRef.close()}onBugReportClick(){this.dialogRef.afterClosed().subscribe(()=>{const e=on();e.width="550px",e.data={error:this.data.error},e.autoFocus=!1,this.dialog.open(eR,e)}),this.dialogRef.close()}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(bn),h.Y36(Cn),h.Y36(ao))},r.\u0275cmp=h.Xpm({type:r,selectors:[["perun-web-apps-notification-dialog"]],decls:12,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"hidden","click"],["autofocus","","mat-button","",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(h.TgZ(0,"h1",0),h._uU(1),h.qZA(),h.TgZ(2,"div",1),h._uU(3),h.qZA(),h.TgZ(4,"div",2)(5,"div",3)(6,"button",4),h.NdJ("click",function(){return t.onBugReportClick()}),h._uU(7),h.ALo(8,"translate"),h.qZA(),h.TgZ(9,"button",5),h.NdJ("click",function(){return t.onCloseClick()}),h._uU(10),h.ALo(11,"translate"),h.qZA()()()),2&e&&(h.xp6(1),h.Oqu(t.data.title),h.xp6(2),h.hij(" ",t.data.description,"\n"),h.xp6(3),h.Q6J("hidden","error"!==t.data.type),h.xp6(1),h.hij(" ",h.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_BUG_REPORT")," "),h.xp6(3),h.hij(" ",h.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_CLOSE")," "))},dependencies:[Nr,qr,_r,ji,yt]}),r})();const iR=[[["caption"]],[["colgroup"],["col"]]],nR=["caption","colgroup, col"];function O0(r){return class extends r{constructor(...a){super(...a),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(a){const e=this._sticky;this._sticky=ze(a),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const a=this._hasStickyChanged;return this._hasStickyChanged=!1,a}resetStickyChanged(){this._hasStickyChanged=!1}}}const qd=new h.OlP("CDK_TABLE");let zd=(()=>{class r{constructor(e){this.template=e}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(h.Rgc))},r.\u0275dir=h.lG2({type:r,selectors:[["","cdkCellDef",""]]}),r})(),Gd=(()=>{class r{constructor(e){this.template=e}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(h.Rgc))},r.\u0275dir=h.lG2({type:r,selectors:[["","cdkHeaderCellDef",""]]}),r})(),cC=(()=>{class r{constructor(e){this.template=e}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(h.Rgc))},r.\u0275dir=h.lG2({type:r,selectors:[["","cdkFooterCellDef",""]]}),r})();class sR{}const lR=O0(sR);let fo=(()=>{class r extends lR{constructor(e){super(),this._table=e,this._stickyEnd=!1}get name(){return this._name}set name(e){this._setNameInput(e)}get stickyEnd(){return this._stickyEnd}set stickyEnd(e){const t=this._stickyEnd;this._stickyEnd=ze(e),this._hasStickyChanged=t!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(qd,8))},r.\u0275dir=h.lG2({type:r,selectors:[["","cdkColumnDef",""]],contentQueries:function(e,t,s){if(1&e&&(h.Suo(s,zd,5),h.Suo(s,Gd,5),h.Suo(s,cC,5)),2&e){let u;h.iGM(u=h.CRH())&&(t.cell=u.first),h.iGM(u=h.CRH())&&(t.headerCell=u.first),h.iGM(u=h.CRH())&&(t.footerCell=u.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[h._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:r}]),h.qOj]}),r})();class L0{constructor(a,e){e.nativeElement.classList.add(...a._columnCssClassName)}}let j0=(()=>{class r extends L0{constructor(e,t){super(e,t)}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(fo),h.Y36(h.SBq))},r.\u0275dir=h.lG2({type:r,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[h.qOj]}),r})(),F0=(()=>{class r extends L0{constructor(e,t){if(super(e,t),1===e._table?._elementRef.nativeElement.nodeType){const s=e._table._elementRef.nativeElement.getAttribute("role");t.nativeElement.setAttribute("role","grid"===s||"treegrid"===s?"gridcell":"cell")}}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(fo),h.Y36(h.SBq))},r.\u0275dir=h.lG2({type:r,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[h.qOj]}),r})();class WE{constructor(){this.tasks=[],this.endTasks=[]}}const U0=new h.OlP("_COALESCED_STYLE_SCHEDULER");let $E=(()=>{class r{constructor(e){this._ngZone=e,this._currentSchedule=null,this._destroyed=new He.x}schedule(e){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(e)}scheduleEnd(e){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(e)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new WE,this._getScheduleObservable().pipe(gt(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const e=this._currentSchedule;this._currentSchedule=new WE;for(const t of e.tasks)t();for(const t of e.endTasks)t()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,$e.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,Dt.q)(1))}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(h.R0b))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac}),r})(),N0=(()=>{class r{constructor(e,t){this.template=e,this._differs=t}ngOnChanges(e){if(!this._columnsDiffer){const t=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(t).create(),this._columnsDiffer.diff(t)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof lf?e.headerCell.template:this instanceof cf?e.footerCell.template:e.cell.template}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(h.Rgc),h.Y36(h.ZZ4))},r.\u0275dir=h.lG2({type:r,features:[h.TTD]}),r})();class cR extends N0{}const dR=O0(cR);let lf=(()=>{class r extends dR{constructor(e,t,s){super(e,t),this._table=s}ngOnChanges(e){super.ngOnChanges(e)}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(h.Rgc),h.Y36(h.ZZ4),h.Y36(qd,8))},r.\u0275dir=h.lG2({type:r,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[h.qOj,h.TTD]}),r})();class uR extends N0{}const hR=O0(uR);let cf=(()=>{class r extends hR{constructor(e,t,s){super(e,t),this._table=s}ngOnChanges(e){super.ngOnChanges(e)}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(h.Rgc),h.Y36(h.ZZ4),h.Y36(qd,8))},r.\u0275dir=h.lG2({type:r,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[h.qOj,h.TTD]}),r})(),dC=(()=>{class r extends N0{constructor(e,t,s){super(e,t),this._table=s}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(h.Rgc),h.Y36(h.ZZ4),h.Y36(qd,8))},r.\u0275dir=h.lG2({type:r,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[h.qOj]}),r})(),mo=(()=>{class r{constructor(e){this._viewContainer=e,r.mostRecentCellOutlet=this}ngOnDestroy(){r.mostRecentCellOutlet===this&&(r.mostRecentCellOutlet=null)}}return r.mostRecentCellOutlet=null,r.\u0275fac=function(e){return new(e||r)(h.Y36(h.s_b))},r.\u0275dir=h.lG2({type:r,selectors:[["","cdkCellOutlet",""]]}),r})(),q0=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275cmp=h.Xpm({type:r,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&h.GkF(0,0)},dependencies:[mo],encapsulation:2}),r})(),G0=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275cmp=h.Xpm({type:r,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&h.GkF(0,0)},dependencies:[mo],encapsulation:2}),r})(),uC=(()=>{class r{constructor(e){this.templateRef=e,this._contentClassName="cdk-no-data-row"}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(h.Rgc))},r.\u0275dir=h.lG2({type:r,selectors:[["ng-template","cdkNoDataRow",""]]}),r})();const YE=["top","bottom","left","right"];class pR{constructor(a,e,t,s,u=!0,d=!0,l){this._isNativeHtmlTable=a,this._stickCellCss=e,this.direction=t,this._coalescedStyleScheduler=s,this._isBrowser=u,this._needsPositionStickyOnElement=d,this._positionListener=l,this._cachedCellWidths=[],this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(a,e){const t=[];for(const s of a)if(s.nodeType===s.ELEMENT_NODE){t.push(s);for(let u=0;u{for(const s of t)this._removeStickyStyle(s,e)})}updateStickyColumns(a,e,t,s=!0){if(!a.length||!this._isBrowser||!e.some(p=>p)&&!t.some(p=>p))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const u=a[0],d=u.children.length,l=this._getCellWidths(u,s),n=this._getStickyStartColumnPositions(l,e),i=this._getStickyEndColumnPositions(l,t),o=e.lastIndexOf(!0),c=t.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const p="rtl"===this.direction,m=p?"right":"left",g=p?"left":"right";for(const f of a)for(let w=0;we[w]?f:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===c?[]:l.slice(c).map((f,w)=>t[w+c]?f:null).reverse()}))})}stickRows(a,e,t){if(!this._isBrowser)return;const s="bottom"===t?a.slice().reverse():a,u="bottom"===t?e.slice().reverse():e,d=[],l=[],n=[];for(let o=0,c=0;o{for(let o=0;o{e.some(s=>!s)?this._removeStickyStyle(t,["bottom"]):this._addStickyStyle(t,"bottom",0,!1)})}_removeStickyStyle(a,e){for(const s of e)a.style[s]="",a.classList.remove(this._borderCellCss[s]);YE.some(s=>-1===e.indexOf(s)&&a.style[s])?a.style.zIndex=this._getCalculatedZIndex(a):(a.style.zIndex="",this._needsPositionStickyOnElement&&(a.style.position=""),a.classList.remove(this._stickCellCss))}_addStickyStyle(a,e,t,s){a.classList.add(this._stickCellCss),s&&a.classList.add(this._borderCellCss[e]),a.style[e]=`${t}px`,a.style.zIndex=this._getCalculatedZIndex(a),this._needsPositionStickyOnElement&&(a.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(a){const e={top:100,bottom:10,left:1,right:1};let t=0;for(const s of YE)a.style[s]&&(t+=e[s]);return t?`${t}`:""}_getCellWidths(a,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;const t=[],s=a.children;for(let u=0;u0;u--)e[u]&&(t[u]=s,s+=a[u]);return t}}const W0=new h.OlP("CDK_SPL");let hC=(()=>{class r{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(h.s_b),h.Y36(h.SBq))},r.\u0275dir=h.lG2({type:r,selectors:[["","rowOutlet",""]]}),r})(),pC=(()=>{class r{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(h.s_b),h.Y36(h.SBq))},r.\u0275dir=h.lG2({type:r,selectors:[["","headerRowOutlet",""]]}),r})(),fC=(()=>{class r{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(h.s_b),h.Y36(h.SBq))},r.\u0275dir=h.lG2({type:r,selectors:[["","footerRowOutlet",""]]}),r})(),mC=(()=>{class r{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(h.s_b),h.Y36(h.SBq))},r.\u0275dir=h.lG2({type:r,selectors:[["","noDataRowOutlet",""]]}),r})(),gC=(()=>{class r{constructor(e,t,s,u,d,l,n,i,o,c,p,m){this._differs=e,this._changeDetectorRef=t,this._elementRef=s,this._dir=d,this._platform=n,this._viewRepeater=i,this._coalescedStyleScheduler=o,this._viewportRuler=c,this._stickyPositioningListener=p,this._ngZone=m,this._onDestroy=new He.x,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.contentChanged=new h.vpe,this.viewChange=new $t({start:0,end:Number.MAX_VALUE}),u||this._elementRef.nativeElement.setAttribute("role","table"),this._document=l,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(e){this._trackByFn=e}get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&this._switchDataSource(e)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(e){this._multiTemplateDataRows=ze(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(e){this._fixedLayout=ze(e),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((e,t)=>this.trackBy?this.trackBy(t.dataIndex,t.data):t),this._viewportRuler.change().pipe(gt(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,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(e=>{e.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),Ml(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const e=this._dataDiffer.diff(this._renderRows);if(!e)return this._updateNoDataRow(),void this.contentChanged.next();const t=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,t,(s,u,d)=>this._getEmbeddedViewArgs(s.item,d),s=>s.item.data,s=>{1===s.operation&&s.context&&this._renderCellTemplateForItem(s.record.item.rowDef,s.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(s=>{t.get(s.currentIndex).context.$implicit=s.item.data}),this._updateNoDataRow(),this._ngZone&&h.R0b.isInAngularZone()?this._ngZone.onStable.pipe((0,Dt.q)(1),gt(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(e){this._customColumnDefs.add(e)}removeColumnDef(e){this._customColumnDefs.delete(e)}addRowDef(e){this._customRowDefs.add(e)}removeRowDef(e){this._customRowDefs.delete(e)}addHeaderRowDef(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}removeHeaderRowDef(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}addFooterRowDef(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}removeFooterRowDef(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}setNoDataRow(e){this._customNoDataRow=e}updateStickyHeaderRowStyles(){const e=this._getRenderedRows(this._headerRowOutlet),s=this._elementRef.nativeElement.querySelector("thead");s&&(s.style.display=e.length?"":"none");const u=this._headerRowDefs.map(d=>d.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,u,"top"),this._headerRowDefs.forEach(d=>d.resetStickyChanged())}updateStickyFooterRowStyles(){const e=this._getRenderedRows(this._footerRowOutlet),s=this._elementRef.nativeElement.querySelector("tfoot");s&&(s.style.display=e.length?"":"none");const u=this._footerRowDefs.map(d=>d.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,u,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,u),this._footerRowDefs.forEach(d=>d.resetStickyChanged())}updateStickyColumnStyles(){const e=this._getRenderedRows(this._headerRowOutlet),t=this._getRenderedRows(this._rowOutlet),s=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...t,...s],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((u,d)=>{this._addStickyColumnStyles([u],this._headerRowDefs[d])}),this._rowDefs.forEach(u=>{const d=[];for(let l=0;l{this._addStickyColumnStyles([u],this._footerRowDefs[d])}),Array.from(this._columnDefsByName.values()).forEach(u=>u.resetStickyChanged())}_getAllRenderRows(){const e=[],t=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let s=0;s{const l=s&&s.has(d)?s.get(d):[];if(l.length){const n=l.shift();return n.dataIndex=t,n}return{data:e,rowDef:d,dataIndex:t}})}_cacheColumnDefs(){this._columnDefsByName.clear(),_C(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(t=>{this._columnDefsByName.has(t.name),this._columnDefsByName.set(t.name,t)})}_cacheRowDefs(){this._headerRowDefs=_C(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=_C(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=_C(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const e=this._rowDefs.filter(t=>!t.when);this._defaultRowDef=e[0]}_renderUpdatedColumns(){const e=(d,l)=>d||!!l.getColumnsDiff(),t=this._rowDefs.reduce(e,!1);t&&this._forceRenderDataRows();const s=this._headerRowDefs.reduce(e,!1);s&&this._forceRenderHeaderRows();const u=this._footerRowDefs.reduce(e,!1);return u&&this._forceRenderFooterRows(),t||s||u}_switchDataSource(e){this._data=[],Ml(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=e}_observeRenderChanges(){if(!this.dataSource)return;let e;Ml(this.dataSource)?e=this.dataSource.connect(this):Kt(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=(0,Me.of)(this.dataSource)),this._renderChangeSubscription=e.pipe(gt(this._onDestroy)).subscribe(t=>{this._data=t||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,t)=>this._renderRow(this._headerRowOutlet,e,t)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,t)=>this._renderRow(this._footerRowOutlet,e,t)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,t){const s=Array.from(t.columns||[]).map(l=>this._columnDefsByName.get(l)),u=s.map(l=>l.sticky),d=s.map(l=>l.stickyEnd);this._stickyStyler.updateStickyColumns(e,u,d,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){const t=[];for(let s=0;s!u.when||u.when(t,e));else{let u=this._rowDefs.find(d=>d.when&&d.when(t,e))||this._defaultRowDef;u&&s.push(u)}return s}_getEmbeddedViewArgs(e,t){return{templateRef:e.rowDef.template,context:{$implicit:e.data},index:t}}_renderRow(e,t,s,u={}){const d=e.viewContainer.createEmbeddedView(t.template,u,s);return this._renderCellTemplateForItem(t,u),d}_renderCellTemplateForItem(e,t){for(let s of this._getCellTemplates(e))mo.mostRecentCellOutlet&&mo.mostRecentCellOutlet._viewContainer.createEmbeddedView(s,t);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const e=this._rowOutlet.viewContainer;for(let t=0,s=e.length;t{const s=this._columnDefsByName.get(t);return e.extractCellTemplate(s)}):[]}_applyNativeTableSections(){const e=this._document.createDocumentFragment(),t=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const s of t){const u=this._document.createElement(s.tag);u.setAttribute("role","rowgroup");for(const d of s.outlets)u.appendChild(d.elementRef.nativeElement);e.appendChild(u)}this._elementRef.nativeElement.appendChild(e)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const e=(t,s)=>t||s.hasStickyChanged();this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new pR(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:(0,Me.of)()).pipe(gt(this._onDestroy)).subscribe(t=>{this._stickyStyler.direction=t,this.updateStickyColumnStyles()})}_getOwnDefs(e){return e.filter(t=>!t._table||t._table===this)}_updateNoDataRow(){const e=this._customNoDataRow||this._noDataRow;if(!e)return;const t=0===this._rowOutlet.viewContainer.length;if(t===this._isShowingNoDataRow)return;const s=this._noDataRowOutlet.viewContainer;if(t){const u=s.createEmbeddedView(e.templateRef),d=u.rootNodes[0];1===u.rootNodes.length&&d?.nodeType===this._document.ELEMENT_NODE&&(d.setAttribute("role","row"),d.classList.add(e._contentClassName))}else s.clear();this._isShowingNoDataRow=t}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(h.ZZ4),h.Y36(h.sBO),h.Y36(h.SBq),h.$8M("role"),h.Y36(Tn,8),h.Y36(M.K0),h.Y36(Jt),h.Y36(Ka),h.Y36(U0),h.Y36(ts),h.Y36(W0,12),h.Y36(h.R0b,8))},r.\u0275cmp=h.Xpm({type:r,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(e,t,s){if(1&e&&(h.Suo(s,uC,5),h.Suo(s,fo,5),h.Suo(s,dC,5),h.Suo(s,lf,5),h.Suo(s,cf,5)),2&e){let u;h.iGM(u=h.CRH())&&(t._noDataRow=u.first),h.iGM(u=h.CRH())&&(t._contentColumnDefs=u),h.iGM(u=h.CRH())&&(t._contentRowDefs=u),h.iGM(u=h.CRH())&&(t._contentHeaderRowDefs=u),h.iGM(u=h.CRH())&&(t._contentFooterRowDefs=u)}},viewQuery:function(e,t){if(1&e&&(h.Gf(hC,7),h.Gf(pC,7),h.Gf(fC,7),h.Gf(mC,7)),2&e){let s;h.iGM(s=h.CRH())&&(t._rowOutlet=s.first),h.iGM(s=h.CRH())&&(t._headerRowOutlet=s.first),h.iGM(s=h.CRH())&&(t._footerRowOutlet=s.first),h.iGM(s=h.CRH())&&(t._noDataRowOutlet=s.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(e,t){2&e&&h.ekj("cdk-table-fixed-layout",t.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[h._Bn([{provide:qd,useExisting:r},{provide:Ka,useClass:Wg},{provide:U0,useClass:$E},{provide:W0,useValue:null}])],ngContentSelectors:nR,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(h.F$t(iR),h.Hsn(0),h.Hsn(1,1),h.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[hC,pC,fC,mC],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),r})();function _C(r,a){return r.concat(Array.from(a))}let mR=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({imports:[Gi]}),r})();const gR=[[["caption"]],[["colgroup"],["col"]]],_R=["caption","colgroup, col"];let $0=(()=>{class r extends gC{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return r.\u0275fac=function(){let a;return function(t){return(a||(a=h.n5z(r)))(t||r)}}(),r.\u0275cmp=h.Xpm({type:r,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(e,t){2&e&&h.ekj("mat-table-fixed-layout",t.fixedLayout)},exportAs:["matTable"],features:[h._Bn([{provide:Ka,useClass:Wg},{provide:gC,useExisting:r},{provide:qd,useExisting:r},{provide:U0,useClass:$E},{provide:W0,useValue:null}]),h.qOj],ngContentSelectors:_R,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(h.F$t(gR),h.Hsn(0),h.Hsn(1,1),h.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[hC,pC,fC,mC],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-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:sticky !important}.mat-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),r})(),bC=(()=>{class r extends zd{}return r.\u0275fac=function(){let a;return function(t){return(a||(a=h.n5z(r)))(t||r)}}(),r.\u0275dir=h.lG2({type:r,selectors:[["","matCellDef",""]],features:[h._Bn([{provide:zd,useExisting:r}]),h.qOj]}),r})(),CC=(()=>{class r extends Gd{}return r.\u0275fac=function(){let a;return function(t){return(a||(a=h.n5z(r)))(t||r)}}(),r.\u0275dir=h.lG2({type:r,selectors:[["","matHeaderCellDef",""]],features:[h._Bn([{provide:Gd,useExisting:r}]),h.qOj]}),r})(),wC=(()=>{class r extends fo{get name(){return this._name}set name(e){this._setNameInput(e)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return r.\u0275fac=function(){let a;return function(t){return(a||(a=h.n5z(r)))(t||r)}}(),r.\u0275dir=h.lG2({type:r,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[h._Bn([{provide:fo,useExisting:r},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:r}]),h.qOj]}),r})(),yC=(()=>{class r extends j0{}return r.\u0275fac=function(){let a;return function(t){return(a||(a=h.n5z(r)))(t||r)}}(),r.\u0275dir=h.lG2({type:r,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[h.qOj]}),r})(),vC=(()=>{class r extends F0{}return r.\u0275fac=function(){let a;return function(t){return(a||(a=h.n5z(r)))(t||r)}}(),r.\u0275dir=h.lG2({type:r,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[h.qOj]}),r})(),JE=(()=>{class r extends lf{}return r.\u0275fac=function(){let a;return function(t){return(a||(a=h.n5z(r)))(t||r)}}(),r.\u0275dir=h.lG2({type:r,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[h._Bn([{provide:lf,useExisting:r}]),h.qOj]}),r})(),Y0=(()=>{class r extends dC{}return r.\u0275fac=function(){let a;return function(t){return(a||(a=h.n5z(r)))(t||r)}}(),r.\u0275dir=h.lG2({type:r,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[h._Bn([{provide:dC,useExisting:r}]),h.qOj]}),r})(),KE=(()=>{class r extends q0{}return r.\u0275fac=function(){let a;return function(t){return(a||(a=h.n5z(r)))(t||r)}}(),r.\u0275cmp=h.Xpm({type:r,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[h._Bn([{provide:q0,useExisting:r}]),h.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&h.GkF(0,0)},dependencies:[mo],encapsulation:2}),r})(),Q0=(()=>{class r extends G0{}return r.\u0275fac=function(){let a;return function(t){return(a||(a=h.n5z(r)))(t||r)}}(),r.\u0275cmp=h.Xpm({type:r,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[h._Bn([{provide:G0,useExisting:r}]),h.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&h.GkF(0,0)},dependencies:[mo],encapsulation:2}),r})(),AC=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({imports:[mR,Ye,Ye]}),r})();class MR extends Gg{constructor(a=[]){super(),this._renderData=new $t([]),this._filter=new $t(""),this._internalPageChanges=new He.x,this._renderChangesSubscription=null,this.sortingDataAccessor=(e,t)=>{const s=e[t];if(Xu(s)){const u=Number(s);return u<9007199254740991?u:s}return s},this.sortData=(e,t)=>{const s=t.active,u=t.direction;return s&&""!=u?e.sort((d,l)=>{let n=this.sortingDataAccessor(d,s),i=this.sortingDataAccessor(l,s);const o=typeof n,c=typeof i;o!==c&&("number"===o&&(n+=""),"number"===c&&(i+=""));let p=0;return null!=n&&null!=i?n>i?p=1:n{const s=Object.keys(e).reduce((d,l)=>d+e[l]+"\u25ec","").toLowerCase(),u=t.trim().toLowerCase();return-1!=s.indexOf(u)},this._data=new $t(a),this._updateChangeSubscription()}get data(){return this._data.value}set data(a){a=Array.isArray(a)?a:[],this._data.next(a),this._renderChangesSubscription||this._filterData(a)}get filter(){return this._filter.value}set filter(a){this._filter.next(a),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(a){this._sort=a,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(a){this._paginator=a,this._updateChangeSubscription()}_updateChangeSubscription(){const a=this._sort?(0,an.T)(this._sort.sortChange,this._sort.initialized):(0,Me.of)(null),e=this._paginator?(0,an.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,Me.of)(null),s=(0,Vt.a)([this._data,this._filter]).pipe((0,ct.U)(([l])=>this._filterData(l))),u=(0,Vt.a)([s,a]).pipe((0,ct.U)(([l])=>this._orderData(l))),d=(0,Vt.a)([u,e]).pipe((0,ct.U)(([l])=>this._pageData(l)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=d.subscribe(l=>this._renderData.next(l))}_filterData(a){return this.filteredData=null==this.filter||""===this.filter?a:a.filter(e=>this.filterPredicate(e,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(a){return this.sort?this.sortData(a.slice(),this.sort):a}_pageData(a){if(!this.paginator)return a;const e=this.paginator.pageIndex*this.paginator.pageSize;return a.slice(e,e+this.paginator.pageSize)}_updatePaginator(a){Promise.resolve().then(()=>{const e=this.paginator;if(e&&(e.length=a,e.pageIndex>0)){const t=Math.ceil(e.length/e.pageSize)-1||0,s=Math.min(e.pageIndex,t);s!==e.pageIndex&&(e.pageIndex=s,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}}class xC extends MR{}function DR(r,a){1&r&&h._UZ(0,"mat-spinner",3)}function HR(r,a){1&r&&h._UZ(0,"th",15)}function RR(r,a){if(1&r&&(h.TgZ(0,"td",16),h._uU(1),h.qZA()),2&r){const e=a.$implicit;h.xp6(1),h.hij(" ",e.userExtSource.extSource.name," ")}}function PR(r,a){1&r&&h._UZ(0,"tr",17)}function IR(r,a){1&r&&h._UZ(0,"tr",18)}function kR(r,a){if(1&r){const e=h.EpF();h.TgZ(0,"div")(1,"div",4)(2,"p"),h._uU(3),h.ALo(4,"translate"),h.ALo(5,"customTranslate"),h.qZA(),h.TgZ(6,"div",5),h._uU(7),h.ALo(8,"translate"),h.ALo(9,"customTranslate"),h.qZA(),h.TgZ(10,"table",6),h.ynx(11,7),h.YNc(12,HR,1,0,"th",8),h.YNc(13,RR,2,1,"td",9),h.BQk(),h.YNc(14,PR,1,0,"tr",10),h.YNc(15,IR,1,0,"tr",11),h.qZA()(),h.TgZ(16,"div",12)(17,"button",13),h.NdJ("click",function(){h.CHM(e);const s=h.oxw();return h.KtG(s.onCancel())}),h._uU(18),h.ALo(19,"translate"),h.ALo(20,"customTranslate"),h.qZA(),h.TgZ(21,"button",14),h.NdJ("click",function(){h.CHM(e);const s=h.oxw();return h.KtG(s.onSubmit())}),h._uU(22),h.ALo(23,"translate"),h.ALo(24,"customTranslate"),h.qZA()()()}if(2&r){const e=h.oxw();h.xp6(3),h.hij(" ",h.lcZ(4,7,h.lcZ(5,9,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.DESCRIPTION"))," "),h.xp6(4),h.hij(" ",h.lcZ(8,11,h.lcZ(9,13,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.ASK"))," "),h.xp6(3),h.Q6J("dataSource",e.dataSource),h.xp6(4),h.Q6J("matHeaderRowDef",e.displayedColumns),h.xp6(1),h.Q6J("matRowDefColumns",e.displayedColumns),h.xp6(3),h.hij(" ",h.lcZ(19,15,h.lcZ(20,17,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.CANCEL"))," "),h.xp6(4),h.hij(" ",h.lcZ(23,19,h.lcZ(24,21,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.REMOVE"))," ")}}let VR=(()=>{class r{constructor(e,t,s,u,d){this.dialogRef=e,this.data=t,this.usersManagerService=s,this.translate=u,this.notificator=d,this.force=!1,this.displayedColumns=["name"]}ngOnInit(){this.theme=this.data.theme,this.dataSource=new xC(this.data.extSources)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;const e=this.data.extSources.map(t=>t.userExtSource.id);this.usersManagerService.removeUserExtSources(this.data.userId,e,this.force).subscribe({next:()=>{this.loading=!1,this.data.showSuccess&&this.notificator.showSuccess(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.SUCCESS")),this.dialogRef.close(!0)},error:()=>this.loading=!1})}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(bn),h.Y36(ao),h.Y36(Bs),h.Y36(bf),h.Y36($r))},r.\u0275cmp=h.Xpm({type:r,selectors:[["perun-web-apps-remove-user-ext-source-dialog"]],decls:7,vars:10,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"click"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,t){1&e&&(h.TgZ(0,"h1",0),h._uU(1),h.ALo(2,"translate"),h.ALo(3,"customTranslate"),h.qZA(),h.TgZ(4,"div"),h.YNc(5,DR,1,0,"mat-spinner",1),h.YNc(6,kR,25,23,"div",2),h.qZA()),2&e&&(h.xp6(1),h.hij(" ",h.lcZ(2,6,h.lcZ(3,8,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.TITLE")),"\n"),h.xp6(3),h.Tol(t.theme),h.xp6(1),h.Q6J("ngIf",t.loading),h.xp6(1),h.Q6J("ngIf",!t.loading))},dependencies:[M.O5,$0,CC,JE,wC,bC,Y0,yC,vC,KE,Q0,Nr,qr,_r,ji,Cr,yt,V0]}),r})();function JR(r,a){1&r&&(h.TgZ(0,"mat-error",8),h._uU(1),h.ALo(2,"translate"),h.ALo(3,"customTranslate"),h.qZA()),2&r&&(h.xp6(1),h.Oqu(h.lcZ(2,1,h.lcZ(3,3,"DIALOGS.ADD_SSH.INVALID_TYPE"))))}class go{constructor(a,e,t){this.dialogRef=a,this.data=e,this.attributesManagerService=t}ngOnInit(){this.sshControl=new Yb(null,[Yl.required,Yl.pattern(go.sshKeyPattern)])}onCancel(){this.dialogRef.close(!1)}onSubmit(){const a=this.data.attribute?.value??[],e=this.sshControl.value;a.includes(e)||a.push(e),this.data.attribute.value=a,this.attributesManagerService.setUserAttribute({user:this.data.userId,attribute:this.data.attribute}).subscribe(()=>{this.dialogRef.close(!0)},()=>{a.pop()})}}function iP(r,a){if(1&r&&(h.TgZ(0,"div",9),h._UZ(1,"perun-web-apps-notification",10),h.qZA()),2&r){const e=a.$implicit;h.xp6(1),h.Q6J("data",e)("inDialog",!0)}}function nP(r,a){if(1&r&&(h.TgZ(0,"div",6)(1,"cdk-virtual-scroll-viewport",7),h.YNc(2,iP,2,2,"div",8),h.qZA()()),2&r){const e=h.oxw();h.xp6(2),h.Q6J("cdkVirtualForOf",e.notifications)}}function rP(r,a){1&r&&(h.TgZ(0,"perun-web-apps-alert",11),h._uU(1),h.ALo(2,"translate"),h.ALo(3,"customTranslate"),h.qZA()),2&r&&(h.xp6(1),h.Oqu(h.lcZ(2,1,h.lcZ(3,3,"DIALOGS.NOTIFICATION_LIST.NO_NOTIFICATIONS_ALERT"))))}go.allowedSshKeys=["ssh-ed25519","ssh-ed25519-cert-v01@openssh.com","sk-ssh-ed25519@openssh.com","sk-ssh-ed25519-cert-v01@openssh.com","ssh-rsa","ssh-dss","ecdsa-sha2-nistp256","ecdsa-sha2-nistp384","ecdsa-sha2-nistp521","sk-ecdsa-sha2-nistp256@openssh.com","ssh-rsa-cert-v01@openssh.com","ssh-dss-cert-v01@openssh.com","ecdsa-sha2-nistp256-cert-v01@openssh.com","ecdsa-sha2-nistp384-cert-v01@openssh.com","ecdsa-sha2-nistp521-cert-v01@openssh.com","sk-ecdsa-sha2-nistp256-cert-v01@openssh.com"],go.sshKeyPattern="^("+go.allowedSshKeys.join("|")+").+$",go.\u0275fac=function(a){return new(a||go)(h.Y36(bn),h.Y36(ao),h.Y36(eu))},go.\u0275cmp=h.Xpm({type:go,selectors:[["perun-web-apps-add-ssh-dialog"]],decls:20,vars:23,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","user-theme"],[1,"input-width"],["matInput","","required","","cdkTextareaAutosize","","cdkAutosizeMinRows","4",3,"placeholder","formControl"],["class","white-space-pre",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[1,"white-space-pre"]],template:function(a,e){1&a&&(h.TgZ(0,"h1",0),h._uU(1),h.ALo(2,"translate"),h.ALo(3,"customTranslate"),h.qZA(),h.TgZ(4,"div",1)(5,"mat-form-field",2)(6,"label",2),h._UZ(7,"textarea",3),h.ALo(8,"translate"),h.ALo(9,"customTranslate"),h.qZA(),h.YNc(10,JR,4,5,"mat-error",4),h.qZA()(),h.TgZ(11,"div",5)(12,"button",6),h.NdJ("click",function(){return e.onCancel()}),h._uU(13),h.ALo(14,"translate"),h.ALo(15,"customTranslate"),h.qZA(),h.TgZ(16,"button",7),h.NdJ("click",function(){return e.onSubmit()}),h._uU(17),h.ALo(18,"translate"),h.ALo(19,"customTranslate"),h.qZA()()),2&a&&(h.xp6(1),h.Oqu(h.lcZ(2,7,h.lcZ(3,9,"DIALOGS.ADD_SSH.TITLE"))),h.xp6(6),h.s9C("placeholder",h.lcZ(8,11,h.lcZ(9,13,"DIALOGS.ADD_SSH.INPUT_PLACEHOLDER"))),h.Q6J("formControl",e.sshControl),h.xp6(3),h.Q6J("ngIf",e.sshControl.invalid&&e.sshControl.dirty),h.xp6(3),h.hij(" ",h.lcZ(14,15,h.lcZ(15,17,"DIALOGS.ADD_SSH.CANCEL"))," "),h.xp6(3),h.Q6J("disabled",e.sshControl.invalid),h.xp6(1),h.hij(" ",h.lcZ(18,19,h.lcZ(19,21,"DIALOGS.ADD_SSH.ADD"))," "))},dependencies:[M.O5,oo,ys,nc,ji,qh,Jh,$p,Te,Ot,Nr,qr,_r,yt,V0],styles:[".input-width{width:100%}.white-space-pre{white-space:pre-wrap}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper{padding-bottom:0}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-underline{position:initial!important;display:block;margin-top:-1px}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper,perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-ripple{position:initial!important;display:table}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper{min-height:calc(1em + 1px)}\n"],encapsulation:2});let XE=(()=>{class r{constructor(e,t){this.dialogRef=e,this.notificationStorageService=t}ngOnInit(){this.notifications=this.notificationStorageService.getNotifications()}onCancel(){this.dialogRef.close()}onClear(){this.notificationStorageService.clearNotifications(),this.notifications=[]}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(bn),h.Y36(Gl))},r.\u0275cmp=h.Xpm({type:r,selectors:[["perun-web-apps-show-notification-history-dialog"]],decls:15,vars:17,consts:[["mat-dialog-title",""],["class","hide-horizontal-scrollbar",4,"ngIf"],["alert_type","warn",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","",1,"ml-2",3,"click"],[1,"hide-horizontal-scrollbar"],["itemSize","50",1,"viewport"],["class","mb-1",4,"cdkVirtualFor","cdkVirtualForOf"],[1,"mb-1"],[3,"data","inDialog"],["alert_type","warn"]],template:function(e,t){1&e&&(h.TgZ(0,"h1",0),h._uU(1),h.ALo(2,"translate"),h.ALo(3,"customTranslate"),h.qZA(),h.YNc(4,nP,3,1,"div",1),h.YNc(5,rP,4,5,"perun-web-apps-alert",2),h.TgZ(6,"div",3)(7,"button",4),h.NdJ("click",function(){return t.onClear()}),h._uU(8),h.ALo(9,"translate"),h.ALo(10,"customTranslate"),h.qZA(),h.TgZ(11,"button",5),h.NdJ("click",function(){return t.onCancel()}),h._uU(12),h.ALo(13,"translate"),h.ALo(14,"customTranslate"),h.qZA()()),2&e&&(h.xp6(1),h.Oqu(h.lcZ(2,5,h.lcZ(3,7,"DIALOGS.NOTIFICATION_LIST.TITLE"))),h.xp6(3),h.Q6J("ngIf",0!==t.notifications.length),h.xp6(1),h.Q6J("ngIf",0===t.notifications.length),h.xp6(3),h.hij(" ",h.lcZ(9,9,h.lcZ(10,11,"DIALOGS.NOTIFICATION_LIST.CLEAR"))," "),h.xp6(4),h.hij(" ",h.lcZ(13,13,h.lcZ(14,15,"DIALOGS.NOTIFICATION_LIST.CANCEL"))," "))},styles:[".viewport[_ngcontent-%COMP%]{height:400px;width:470px}.hide-horizontal-scrollbar[_ngcontent-%COMP%]{overflow-x:hidden}"]}),r})();const aP=["*",[["mat-toolbar-row"]]],oP=["*","mat-toolbar-row"],sP=zi(class{constructor(r){this._elementRef=r}});let lP=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275dir=h.lG2({type:r,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),r})(),cP=(()=>{class r extends sP{constructor(e,t,s){super(e),this._platform=t,this._document=s}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(h.SBq),h.Y36(Jt),h.Y36(M.K0))},r.\u0275cmp=h.Xpm({type:r,selectors:[["mat-toolbar"]],contentQueries:function(e,t,s){if(1&e&&h.Suo(s,lP,5),2&e){let u;h.iGM(u=h.CRH())&&(t._toolbarRows=u)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,t){2&e&&h.ekj("mat-toolbar-multiple-rows",t._toolbarRows.length>0)("mat-toolbar-single-row",0===t._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[h.qOj],ngContentSelectors:oP,decls:2,vars:0,template:function(e,t){1&e&&(h.F$t(aP),h.Hsn(0),h.Hsn(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%}"],encapsulation:2,changeDetection:0}),r})(),eM=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({imports:[Ye,Ye]}),r})(),dP=0;const uP=yl(class{}),tM="mat-badge-content";let hP=(()=>{class r extends uP{constructor(e,t,s,u,d){super(),this._ngZone=e,this._elementRef=t,this._ariaDescriber=s,this._renderer=u,this._animationMode=d,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=dP++,this._isInitialized=!1}get color(){return this._color}set color(e){this._setColor(e),this._color=e}get overlap(){return this._overlap}set overlap(e){this._overlap=ze(e)}get content(){return this._content}set content(e){this._updateRenderedContent(e)}get description(){return this._description}set description(e){this._updateHostAriaDescription(e)}get hidden(){return this._hidden}set hidden(e){this._hidden=ze(e)}isAbove(){return-1===this.position.indexOf("below")}isAfter(){return-1===this.position.indexOf("before")}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=!0}ngOnDestroy(){this._renderer.destroyNode&&this._renderer.destroyNode(this._badgeElement),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_createBadgeElement(){const e=this._renderer.createElement("span"),t="mat-badge-active";return e.setAttribute("id",`mat-badge-content-${this._id}`),e.setAttribute("aria-hidden","true"),e.classList.add(tM),"NoopAnimations"===this._animationMode&&e.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(e),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{e.classList.add(t)})}):e.classList.add(t),e}_updateRenderedContent(e){const t=`${e??""}`.trim();this._isInitialized&&t&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=t),this._content=t}_updateHostAriaDescription(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),e&&this._ariaDescriber.describe(this._elementRef.nativeElement,e),this._description=e}_setColor(e){const t=this._elementRef.nativeElement.classList;t.remove(`mat-badge-${this._color}`),e&&t.add(`mat-badge-${e}`)}_clearExistingBadges(){const e=this._elementRef.nativeElement.querySelectorAll(`:scope > .${tM}`);for(const t of Array.from(e))t!==this._badgeElement&&t.remove()}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(h.R0b),h.Y36(h.SBq),h.Y36(td),h.Y36(h.Qsj),h.Y36(h.QbO,8))},r.\u0275dir=h.lG2({type:r,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(e,t){2&e&&h.ekj("mat-badge-overlap",t.overlap)("mat-badge-above",t.isAbove())("mat-badge-below",!t.isAbove())("mat-badge-before",!t.isAfter())("mat-badge-after",t.isAfter())("mat-badge-small","small"===t.size)("mat-badge-medium","medium"===t.size)("mat-badge-large","large"===t.size)("mat-badge-hidden",t.hidden||!t.content)("mat-badge-disabled",t.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],position:["matBadgePosition","position"],content:["matBadge","content"],description:["matBadgeDescription","description"],size:["matBadgeSize","size"],hidden:["matBadgeHidden","hidden"]},features:[h.qOj]}),r})(),pP=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({imports:[$a,Ye,Ye]}),r})();const J0=function(r){return{color:r}};function fP(r,a){if(1&r&&(h.TgZ(0,"button",8),h.ALo(1,"translate"),h.TgZ(2,"mat-icon",4),h._uU(3," apps "),h.qZA()()),2&r){const e=h.oxw(),t=h.MAs(2);h.Q6J("matMenuTriggerFor",t)("matTooltip",h.lcZ(1,3,"NAV.OTHER_APPLICATIONS")),h.xp6(2),h.Q6J("ngStyle",h.VKq(5,J0,e.iconColor))}}function mP(r,a){if(1&r&&(h.TgZ(0,"span",9),h._uU(1),h.qZA()),2&r){const e=h.oxw();h.Q6J("ngStyle",h.VKq(6,J0,e.textColor)),h.xp6(1),h.xDo(" ",e.user.titleBefore," ",e.user.firstName," ",e.user.middleName," ",e.user.lastName," ",e.user.titleAfter," ")}}function gP(r,a){if(1&r){const e=h.EpF();h.TgZ(0,"button",10),h.NdJ("click",function(){h.CHM(e);const s=h.oxw();return h.KtG(s.onLogOut())}),h._uU(1),h.ALo(2,"translate"),h.qZA()}2&r&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"NAV.LOGOUT")," "))}let _P=(()=>{class r{constructor(e){this.authService=e}redirectToUrl(){window.open(this.url,"_blank")}onLogOut(){this.authService.logout()}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(Wr))},r.\u0275cmp=h.Xpm({type:r,selectors:[["perun-web-apps-header-menu"]],inputs:{user:"user",iconColor:"iconColor",textColor:"textColor",logoutEnabled:"logoutEnabled",url:"url",label:"label"},decls:13,vars:8,consts:[["mat-icon-button","",3,"matMenuTriggerFor","matTooltip",4,"ngIf"],["appsMenu","matMenu"],["mat-menu-item","",3,"click","auxclick"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],["class","d-none d-lg-inline",3,"ngStyle",4,"ngIf"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-icon-button","",3,"matMenuTriggerFor","matTooltip"],[1,"d-none","d-lg-inline",3,"ngStyle"],["mat-menu-item","",3,"click"]],template:function(e,t){if(1&e&&(h.YNc(0,fP,4,7,"button",0),h.TgZ(1,"mat-menu",null,1)(3,"button",2),h.NdJ("click",function(){return t.redirectToUrl()})("auxclick",function(){return t.redirectToUrl()}),h.TgZ(4,"span"),h._uU(5),h.qZA()()(),h.TgZ(6,"button",3)(7,"mat-icon",4),h._uU(8," person "),h.qZA(),h.YNc(9,mP,2,8,"span",5),h.qZA(),h.TgZ(10,"mat-menu",null,6),h.YNc(12,gP,3,3,"button",7),h.qZA()),2&e){const s=h.MAs(11);h.Q6J("ngIf",t.url),h.xp6(5),h.Oqu(t.label),h.xp6(1),h.Q6J("matMenuTriggerFor",s),h.xp6(1),h.Q6J("ngStyle",h.VKq(6,J0,t.iconColor)),h.xp6(2),h.Q6J("ngIf",null!==t.user),h.xp6(3),h.Q6J("ngIf",t.logoutEnabled)}},dependencies:[M.O5,M.PC,Yn,W_,ba,Y_,ji,I_,yt],styles:["@media (max-width: 991px){.no-left-padding[_ngcontent-%COMP%]{padding-left:0}}"]}),r})(),bP=(()=>{class r extends $o{constructor(){super(...arguments),this.queryParamsHandling="merge"}ngOnChanges(){if(this.queryParams&&"applicationFormItems"in this.queryParams){this.queryParamsHandling="";const e=Object.assign({},this.queryParams);delete e.applicationFormItems,this.queryParams=e}}}return r.\u0275fac=function(){let a;return function(t){return(a||(a=h.n5z(r)))(t||r)}}(),r.\u0275dir=h.lG2({type:r,selectors:[["tr","routerLink",""],["a","routerLink",""]],features:[h.qOj,h.TTD]}),r})();const Wd=function(r){return{color:r}};function CP(r,a){if(1&r){const e=h.EpF();h.TgZ(0,"button",9),h.NdJ("click",function(){h.CHM(e);const s=h.oxw();return h.KtG(s.onToggleSidenav())}),h.TgZ(1,"mat-icon"),h._uU(2,"menu"),h.qZA()()}if(2&r){const e=h.oxw();h.Q6J("ngStyle",h.VKq(1,Wd,e.iconColor))}}function wP(r,a){if(1&r){const e=h.EpF();h.TgZ(0,"div",10)(1,"button",11)(2,"mat-icon",12),h._uU(3," language "),h.qZA()(),h.TgZ(4,"mat-menu",null,13)(6,"button",14),h.NdJ("click",function(){h.CHM(e);const s=h.oxw();return h.KtG(s.changeLanguage())}),h._uU(7),h.ALo(8,"translate"),h.qZA()()()}if(2&r){const e=h.MAs(5),t=h.oxw();h.Q6J("ngStyle",h.VKq(6,Wd,t.textColor)),h.xp6(1),h.Q6J("matMenuTriggerFor",e),h.xp6(1),h.Q6J("ngStyle",h.VKq(8,Wd,t.iconColor)),h.xp6(5),h.hij(" ",h.lcZ(8,4,"HEADER.LANGUAGE")," ")}}function yP(r,a){if(1&r){const e=h.EpF();h.TgZ(0,"button",15),h.NdJ("click",function(){h.CHM(e);const s=h.oxw();return h.KtG(s.showNotificationHistory())}),h.ALo(1,"translate"),h.TgZ(2,"mat-icon",16),h._uU(3),h.qZA()()}if(2&r){const e=h.oxw();h.Q6J("matTooltip",h.lcZ(1,5,"NAV.NOTIFICATIONS_TOOLTIP")),h.xp6(2),h.s9C("matBadge",e.getNewNotificationsCount()>5?"5+":e.getNewNotificationsCount()),h.Q6J("ngStyle",h.VKq(7,Wd,e.iconColor))("matBadgeHidden",0===e.getNewNotificationsCount()),h.xp6(1),h.hij(" ",e.getNewNotificationsCount()?"notifications_active":"notifications"," ")}}function vP(r,a){if(1&r&&h._UZ(0,"perun-web-apps-header-menu",17),2&r){const e=h.oxw();h.Q6J("url",e.otherAppUrl)("label",e.otherAppLabel)("user",e.principal.user)("logoutEnabled",e.logoutEnabled)("iconColor",e.iconColor)("textColor",e.textColor)}}const AP=function(r){return{background:r}},xP=function(){return[]},SP=function(){return["/"]};let TP=(()=>{class r{constructor(e,t,s,u,d,l,n){this.storeService=e,this.sanitizer=t,this.translateService=s,this.otherApplicationService=u,this.notificationStorageService=d,this.dialog=l,this.route=n,this.sidenavToggle=new h.vpe,this.showToggle=!0,this.showLanguageMenu=!1,this.showHeaderMenu=!0,this.showNotifications=!1,this.disableLogo=!1,this.label=this.storeService.getProperty("header_label_en"),this.logoutEnabled=this.storeService.getProperty("log_out_enabled"),this.principal=this.storeService.getPerunPrincipal(),this.bgColor=this.storeService.getProperty("theme").nav_bg_color,this.textColor=this.storeService.getProperty("theme").nav_text_color,this.iconColor=this.storeService.getProperty("theme").nav_icon_color,this.navTextColor=this.storeService.getProperty("theme").nav_text_color,this.activeLink=!1,this.onToggleSidenav=()=>{this.sidenavToggle.emit()}}ngOnInit(){this.otherAppLabel=this.getOtherAppLabel(),this.translateService.onLangChange.subscribe(e=>{this.label=this.storeService.getProperty("en"===e.lang?"header_label_en":"header_label_cs"),this.otherAppLabel=this.getOtherAppLabel(e.lang)}),this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.getProperty("logo")),this.isLinkToOtherAppActive()}getOtherAppLabel(e="en"){return this.storeService.getProperty(this.otherApp===Yr.Profile?"profile_label_en":"en"===e?"admin_gui_label_en":"admin_gui_label_cs")}isLinkToOtherAppActive(){if(this.otherApp===Yr.Admin){this.linkRoles=this.storeService.getProperty("link_to_admin_gui_by_roles");for(const e in this.storeService.getPerunPrincipal().roles)this.linkRoles.includes(e)&&(this.activeLink=!0)}(this.otherApp!==Yr.Admin||this.activeLink)&&(this.otherAppUrl=this.otherApplicationService.getUrlForOtherApplication(this.otherApp))}changeLanguage(){this.translateService.use("en"===this.translateService.currentLang?"cs":"en")}showNotificationHistory(){this.notificationStorageService.newNotificationsCount=0;const e=on();e.width="520px",this.dialog.open(XE,e)}getNewNotificationsCount(){return this.notificationStorageService.newNotificationsCount}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(gi),h.Y36(hi),h.Y36(hn),h.Y36(Tb),h.Y36(Gl),h.Y36(Cn),h.Y36(jn))},r.\u0275cmp=h.Xpm({type:r,selectors:[["perun-web-apps-header"]],inputs:{showToggle:"showToggle",showLanguageMenu:"showLanguageMenu",showHeaderMenu:"showHeaderMenu",showNotifications:"showNotifications",disableLogo:"disableLogo",otherApp:"otherApp"},outputs:{sidenavToggle:"sidenavToggle"},decls:10,vars:19,consts:[[1,"sticky-top","header-container","mat-elevation-z3",3,"ngStyle"],["id","nav-menu-icons"],["aria-label","Menu","mat-icon-button","",3,"ngStyle","click",4,"ngIf"],["queryParamsHandling","merge",1,"logo-container","mt-auto","mb-auto",3,"innerHTML","routerLink","queryParams"],[1,"mt-auto","mb-auto","hide-label","page-subtitle",3,"ngStyle"],["id","nav-menu-user-info",3,"ngStyle"],["id","nav-menu-language",3,"ngStyle",4,"ngIf"],["mat-icon-button","",3,"matTooltip","click",4,"ngIf"],[3,"url","label","user","logoutEnabled","iconColor","textColor",4,"ngIf"],["aria-label","Menu","mat-icon-button","",3,"ngStyle","click"],["id","nav-menu-language",3,"ngStyle"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],["menu","matMenu"],["mat-menu-item","",3,"click"],["mat-icon-button","",3,"matTooltip","click"],["matBadgeColor","warn",3,"ngStyle","matBadge","matBadgeHidden"],[3,"url","label","user","logoutEnabled","iconColor","textColor"]],template:function(e,t){1&e&&(h.TgZ(0,"mat-toolbar",0)(1,"div",1),h.YNc(2,CP,3,3,"button",2),h._UZ(3,"a",3),h.TgZ(4,"p",4),h._uU(5),h.qZA()(),h.TgZ(6,"div",5),h.YNc(7,wP,9,10,"div",6),h.YNc(8,yP,4,9,"button",7),h.YNc(9,vP,1,6,"perun-web-apps-header-menu",8),h.qZA()()),2&e&&(h.Q6J("ngStyle",h.VKq(11,AP,t.bgColor)),h.xp6(2),h.Q6J("ngIf",t.showToggle),h.xp6(1),h.Q6J("innerHTML",t.logo,h.oJD)("routerLink",t.disableLogo?h.DdM(13,xP):h.DdM(14,SP))("queryParams",t.route.snapshot.queryParams),h.xp6(1),h.Q6J("ngStyle",h.VKq(15,Wd,t.textColor)),h.xp6(1),h.hij(" ",t.label," "),h.xp6(1),h.Q6J("ngStyle",h.VKq(17,Wd,t.navTextColor)),h.xp6(1),h.Q6J("ngIf",t.showLanguageMenu),h.xp6(1),h.Q6J("ngIf",t.showNotifications),h.xp6(1),h.Q6J("ngIf",t.showHeaderMenu))},dependencies:[M.O5,M.PC,rl,Yn,W_,ba,Y_,ji,I_,cP,hP,_P,bP,yt],styles:[".header-container[_ngcontent-%COMP%]{height:64px!important;display:flex;justify-content:space-between;padding:0 0 0 8px;z-index:999}#nav-menu-user-info[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding-right:16px;margin-left:auto;margin-right:0}@media (max-width: 570px){.hide-label[_ngcontent-%COMP%]{display:none}}#nav-devel-info[_ngcontent-%COMP%]{margin-left:auto;font-weight:500;font-size:1.4rem;display:flex;align-items:center;font-family:Roboto,Helvetica Neue,sans-serif}#nav-menu-icons[_ngcontent-%COMP%]{display:flex;flex-direction:row}.logo-container[_ngcontent-%COMP%]{padding:0 20px 0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}#nav-menu-language[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding-right:16px}"]}),r})();const EP=function(r){return{"background-color":r}};function MP(r,a){if(1&r&&(h.TgZ(0,"div"),h._UZ(1,"perun-web-apps-header",1),h.TgZ(2,"div",2)(3,"div",3),h._UZ(4,"router-outlet"),h.qZA(),h.TgZ(5,"div",4),h._UZ(6,"perun-web-apps-footer"),h.qZA()()()),2&r){const e=h.oxw();h.xp6(1),h.Q6J("showToggle",!1)("otherApp",e.otherApp),h.xp6(1),h.Q6J("ngStyle",h.VKq(3,EP,e.contentBackgroundColor))}}function DP(r,a){1&r&&(h.TgZ(0,"div"),h._UZ(1,"perun-web-apps-login-screen-base",5),h.ALo(2,"translate"),h.qZA()),2&r&&(h.xp6(1),h.Q6J("application","consolidator")("headerTitle",h.lcZ(2,2,"HEADER.TITLE")))}let HP=(()=>{class r{constructor(e,t){this.store=e,this.initAuth=t,this.contentBackgroundColor=this.store.getProperty("theme").content_bg_color,this.isLoginScreenShow=this.initAuth.isLoginScreenShown(),this.otherApp=Yr.Profile}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(gi),h.Y36(Cs))},r.\u0275cmp=h.Xpm({type:r,selectors:[["perun-web-apps-root"]],decls:2,vars:2,consts:[[4,"ngIf"],["id","nav-menu",3,"showToggle","otherApp"],["id","content-inner",3,"ngStyle"],["id","content-wrap"],["id","footer"],[3,"application","headerTitle"]],template:function(e,t){1&e&&(h.YNc(0,MP,7,5,"div",0),h.YNc(1,DP,3,4,"div",0)),2&e&&(h.Q6J("ngIf",!t.isLoginScreenShow),h.xp6(1),h.Q6J("ngIf",t.isLoginScreenShow))},dependencies:[M.O5,M.PC,Uo,kH,qE,TP,yt],styles:["#content-inner[_ngcontent-%COMP%]{display:flex;flex-direction:column;min-height:100vh;padding-top:64px;justify-content:space-between}#content-wrap[_ngcontent-%COMP%]{padding:25px}#footer[_ngcontent-%COMP%]{bottom:0;width:100%}#nav-menu[_ngcontent-%COMP%]{top:0;background:#102027;position:fixed;width:100%;z-index:999;height:64px;max-height:64px}"]}),r})();function iM(r){return new h.vHH(3e3,!1)}function h1(){return typeof window<"u"&&typeof window.document<"u"}function K0(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function Ss(r){switch(r.length){case 0:return new Ol;case 1:return r[0];default:return new Lh(r)}}function nM(r,a,e,t,s=new Map,u=new Map){const d=[],l=[];let n=-1,i=null;if(t.forEach(o=>{const c=o.get("offset"),p=c==n,m=p&&i||new Map;o.forEach((g,f)=>{let w=f,R=g;if("offset"!==f)switch(w=a.normalizePropertyName(w,d),R){case"!":R=s.get(f);break;case ga:R=u.get(f);break;default:R=a.normalizeStyleValue(f,w,R,d)}m.set(w,R)}),p||l.push(m),i=m,n=c}),d.length)throw function XP(r){return new h.vHH(3502,!1)}();return l}function Z0(r,a,e,t){switch(a){case"start":r.onStart(()=>t(e&&X0(e,"start",r)));break;case"done":r.onDone(()=>t(e&&X0(e,"done",r)));break;case"destroy":r.onDestroy(()=>t(e&&X0(e,"destroy",r)))}}function X0(r,a,e){const u=ex(r.element,r.triggerName,r.fromState,r.toState,a||r.phaseName,e.totalTime??r.totalTime,!!e.disabled),d=r._data;return null!=d&&(u._data=d),u}function ex(r,a,e,t,s="",u=0,d){return{element:r,triggerName:a,fromState:e,toState:t,phaseName:s,totalTime:u,disabled:!!d}}function Jn(r,a,e){let t=r.get(a);return t||r.set(a,t=e),t}function rM(r){const a=r.indexOf(":");return[r.substring(1,a),r.slice(a+1)]}let tx=(r,a)=>!1,aM=(r,a,e)=>[],oM=null;function ix(r){const a=r.parentNode||r.host;return a===oM?null:a}(K0()||typeof Element<"u")&&(h1()?(oM=(()=>document.documentElement)(),tx=(r,a)=>{for(;a;){if(a===r)return!0;a=ix(a)}return!1}):tx=(r,a)=>r.contains(a),aM=(r,a,e)=>{if(e)return Array.from(r.querySelectorAll(a));const t=r.querySelector(a);return t?[t]:[]});let rc=null,sM=!1;const lM=tx,cM=aM;let dM=(()=>{class r{validateStyleProperty(e){return function f1(r){rc||(rc=function m1(){return typeof document<"u"?document.body:null}()||{},sM=!!rc.style&&"WebkitAppearance"in rc.style);let a=!0;return rc.style&&!function p1(r){return"ebkit"==r.substring(1,6)}(r)&&(a=r in rc.style,!a&&sM&&(a="Webkit"+r.charAt(0).toUpperCase()+r.slice(1)in rc.style)),a}(e)}matchesElement(e,t){return!1}containsElement(e,t){return lM(e,t)}getParentElement(e){return ix(e)}query(e,t,s){return cM(e,t,s)}computeStyle(e,t,s){return s||""}animate(e,t,s,u,d,l=[],n){return new Ol(s,u)}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac}),r})(),nx=(()=>{class r{}return r.NOOP=new dM,r})();const rx="ng-enter",SC="ng-leave",TC="ng-trigger",EC=".ng-trigger",hM="ng-animating",ax=".ng-animating";function Ts(r){if("number"==typeof r)return r;const a=r.match(/^(-?[\.\d]+)(m?s)/);return!a||a.length<2?0:ox(parseFloat(a[1]),a[2])}function ox(r,a){return"s"===a?1e3*r:r}function MC(r,a,e){return r.hasOwnProperty("duration")?r:function b1(r,a,e){let s,u=0,d="";if("string"==typeof r){const l=r.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===l)return a.push(iM()),{duration:0,delay:0,easing:""};s=ox(parseFloat(l[1]),l[2]);const n=l[3];null!=n&&(u=ox(parseFloat(n),l[4]));const i=l[5];i&&(d=i)}else s=r;if(!e){let l=!1,n=a.length;s<0&&(a.push(function RP(){return new h.vHH(3100,!1)}()),l=!0),u<0&&(a.push(function PP(){return new h.vHH(3101,!1)}()),l=!0),l&&a.splice(n,0,iM())}return{duration:s,delay:u,easing:d}}(r,a,e)}function df(r,a={}){return Object.keys(r).forEach(e=>{a[e]=r[e]}),a}function pM(r){const a=new Map;return Object.keys(r).forEach(e=>{a.set(e,r[e])}),a}function Es(r,a=new Map,e){if(e)for(let[t,s]of e)a.set(t,s);for(let[t,s]of r)a.set(t,s);return a}function mM(r,a,e){return e?a+":"+e+";":""}function gM(r){let a="";for(let e=0;e{const u=lx(s);e&&!e.has(s)&&e.set(s,r.style[u]),r.style[u]=t}),K0()&&gM(r))}function ac(r,a){r.style&&(a.forEach((e,t)=>{const s=lx(t);r.style[s]=""}),K0()&&gM(r))}function uf(r){return Array.isArray(r)?1==r.length?r[0]:f_(r):r}const sx=new RegExp("{{\\s*(.+?)\\s*}}","g");function _M(r){let a=[];if("string"==typeof r){let e;for(;e=sx.exec(r);)a.push(e[1]);sx.lastIndex=0}return a}function DC(r,a,e){const t=r.toString(),s=t.replace(sx,(u,d)=>{let l=a[d];return null==l&&(e.push(function kP(r){return new h.vHH(3003,!1)}()),l=""),l.toString()});return s==t?r:s}function HC(r){const a=[];let e=r.next();for(;!e.done;)a.push(e.value),e=r.next();return a}const y1=/-+([a-z0-9])/g;function lx(r){return r.replace(y1,(...a)=>a[1].toUpperCase())}function v1(r){return r.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Kn(r,a,e){switch(a.type){case 7:return r.visitTrigger(a,e);case 0:return r.visitState(a,e);case 1:return r.visitTransition(a,e);case 2:return r.visitSequence(a,e);case 3:return r.visitGroup(a,e);case 4:return r.visitAnimate(a,e);case 5:return r.visitKeyframes(a,e);case 6:return r.visitStyle(a,e);case 8:return r.visitReference(a,e);case 9:return r.visitAnimateChild(a,e);case 10:return r.visitAnimateRef(a,e);case 11:return r.visitQuery(a,e);case 12:return r.visitStagger(a,e);default:throw function VP(r){return new h.vHH(3004,!1)}()}}function bM(r,a){return window.getComputedStyle(r)[a]}function M1(r,a){const e=[];return"string"==typeof r?r.split(/\s*,\s*/).forEach(t=>function D1(r,a,e){if(":"==r[0]){const n=function H1(r,a){switch(r){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t) *"}}(r,e);if("function"==typeof n)return void a.push(n);r=n}const t=r.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==t||t.length<4)return e.push(function YP(r){return new h.vHH(3015,!1)}()),a;const s=t[1],u=t[2],d=t[3];a.push(CM(s,d));"<"==u[0]&&!("*"==s&&"*"==d)&&a.push(CM(d,s))}(t,e,a)):e.push(r),e}const kC=new Set(["true","1"]),VC=new Set(["false","0"]);function CM(r,a){const e=kC.has(r)||VC.has(r),t=kC.has(a)||VC.has(a);return(s,u)=>{let d="*"==r||r==s,l="*"==a||a==u;return!d&&e&&"boolean"==typeof s&&(d=s?kC.has(r):VC.has(r)),!l&&t&&"boolean"==typeof u&&(l=u?kC.has(a):VC.has(a)),d&&l}}const R1=new RegExp("s*:selfs*,?","g");function cx(r,a,e,t){return new P1(r).build(a,e,t)}class P1{constructor(a){this._driver=a}build(a,e,t){const s=new V1(e);return this._resetContextStyleTimingState(s),Kn(this,uf(a),s)}_resetContextStyleTimingState(a){a.currentQuerySelector="",a.collectedStyles=new Map,a.collectedStyles.set("",new Map),a.currentTime=0}visitTrigger(a,e){let t=e.queryCount=0,s=e.depCount=0;const u=[],d=[];return"@"==a.name.charAt(0)&&e.errors.push(function OP(){return new h.vHH(3006,!1)}()),a.definitions.forEach(l=>{if(this._resetContextStyleTimingState(e),0==l.type){const n=l,i=n.name;i.toString().split(/\s*,\s*/).forEach(o=>{n.name=o,u.push(this.visitState(n,e))}),n.name=i}else if(1==l.type){const n=this.visitTransition(l,e);t+=n.queryCount,s+=n.depCount,d.push(n)}else e.errors.push(function LP(){return new h.vHH(3007,!1)}())}),{type:7,name:a.name,states:u,transitions:d,queryCount:t,depCount:s,options:null}}visitState(a,e){const t=this.visitStyle(a.styles,e),s=a.options&&a.options.params||null;if(t.containsDynamicStyles){const u=new Set,d=s||{};t.styles.forEach(l=>{l instanceof Map&&l.forEach(n=>{_M(n).forEach(i=>{d.hasOwnProperty(i)||u.add(i)})})}),u.size&&(HC(u.values()),e.errors.push(function jP(r,a){return new h.vHH(3008,!1)}()))}return{type:0,name:a.name,style:t,options:s?{params:s}:null}}visitTransition(a,e){e.queryCount=0,e.depCount=0;const t=Kn(this,uf(a.animation),e);return{type:1,matchers:M1(a.expr,e.errors),animation:t,queryCount:e.queryCount,depCount:e.depCount,options:oc(a.options)}}visitSequence(a,e){return{type:2,steps:a.steps.map(t=>Kn(this,t,e)),options:oc(a.options)}}visitGroup(a,e){const t=e.currentTime;let s=0;const u=a.steps.map(d=>{e.currentTime=t;const l=Kn(this,d,e);return s=Math.max(s,e.currentTime),l});return e.currentTime=s,{type:3,steps:u,options:oc(a.options)}}visitAnimate(a,e){const t=function O1(r,a){if(r.hasOwnProperty("duration"))return r;if("number"==typeof r)return dx(MC(r,a).duration,0,"");const e=r;if(e.split(/\s+/).some(u=>"{"==u.charAt(0)&&"{"==u.charAt(1))){const u=dx(0,0,"");return u.dynamic=!0,u.strValue=e,u}const s=MC(e,a);return dx(s.duration,s.delay,s.easing)}(a.timings,e.errors);e.currentAnimateTimings=t;let s,u=a.styles?a.styles:Ie({});if(5==u.type)s=this.visitKeyframes(u,e);else{let d=a.styles,l=!1;if(!d){l=!0;const i={};t.easing&&(i.easing=t.easing),d=Ie(i)}e.currentTime+=t.duration+t.delay;const n=this.visitStyle(d,e);n.isEmptyStep=l,s=n}return e.currentAnimateTimings=null,{type:4,timings:t,style:s,options:null}}visitStyle(a,e){const t=this._makeStyleAst(a,e);return this._validateStyleAst(t,e),t}_makeStyleAst(a,e){const t=[],s=Array.isArray(a.styles)?a.styles:[a.styles];for(let l of s)"string"==typeof l?l===ga?t.push(l):e.errors.push(new h.vHH(3002,!1)):t.push(pM(l));let u=!1,d=null;return t.forEach(l=>{if(l instanceof Map&&(l.has("easing")&&(d=l.get("easing"),l.delete("easing")),!u))for(let n of l.values())if(n.toString().indexOf("{{")>=0){u=!0;break}}),{type:6,styles:t,easing:d,offset:a.offset,containsDynamicStyles:u,options:null}}_validateStyleAst(a,e){const t=e.currentAnimateTimings;let s=e.currentTime,u=e.currentTime;t&&u>0&&(u-=t.duration+t.delay),a.styles.forEach(d=>{"string"!=typeof d&&d.forEach((l,n)=>{const i=e.collectedStyles.get(e.currentQuerySelector),o=i.get(n);let c=!0;o&&(u!=s&&u>=o.startTime&&s<=o.endTime&&(e.errors.push(function UP(r,a,e,t,s){return new h.vHH(3010,!1)}()),c=!1),u=o.startTime),c&&i.set(n,{startTime:u,endTime:s}),e.options&&function w1(r,a,e){const t=a.params||{},s=_M(r);s.length&&s.forEach(u=>{t.hasOwnProperty(u)||e.push(function IP(r){return new h.vHH(3001,!1)}())})}(l,e.options,e.errors)})})}visitKeyframes(a,e){const t={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function NP(){return new h.vHH(3011,!1)}()),t;let u=0;const d=[];let l=!1,n=!1,i=0;const o=a.steps.map(R=>{const J=this._makeStyleAst(R,e);let Se=null!=J.offset?J.offset:function B1(r){if("string"==typeof r)return null;let a=null;if(Array.isArray(r))r.forEach(e=>{if(e instanceof Map&&e.has("offset")){const t=e;a=parseFloat(t.get("offset")),t.delete("offset")}});else if(r instanceof Map&&r.has("offset")){const e=r;a=parseFloat(e.get("offset")),e.delete("offset")}return a}(J.styles),at=0;return null!=Se&&(u++,at=J.offset=Se),n=n||at<0||at>1,l=l||at0&&u{const Se=p>0?J==m?1:p*J:d[J],at=Se*w;e.currentTime=g+f.delay+at,f.duration=at,this._validateStyleAst(R,e),R.offset=Se,t.styles.push(R)}),t}visitReference(a,e){return{type:8,animation:Kn(this,uf(a.animation),e),options:oc(a.options)}}visitAnimateChild(a,e){return e.depCount++,{type:9,options:oc(a.options)}}visitAnimateRef(a,e){return{type:10,animation:this.visitReference(a.animation,e),options:oc(a.options)}}visitQuery(a,e){const t=e.currentQuerySelector,s=a.options||{};e.queryCount++,e.currentQuery=a;const[u,d]=function I1(r){const a=!!r.split(/\s*,\s*/).find(e=>":self"==e);return a&&(r=r.replace(R1,"")),r=r.replace(/@\*/g,EC).replace(/@\w+/g,e=>EC+"-"+e.slice(1)).replace(/:animating/g,ax),[r,a]}(a.selector);e.currentQuerySelector=t.length?t+" "+u:u,Jn(e.collectedStyles,e.currentQuerySelector,new Map);const l=Kn(this,uf(a.animation),e);return e.currentQuery=null,e.currentQuerySelector=t,{type:11,selector:u,limit:s.limit||0,optional:!!s.optional,includeSelf:d,animation:l,originalSelector:a.selector,options:oc(a.options)}}visitStagger(a,e){e.currentQuery||e.errors.push(function WP(){return new h.vHH(3013,!1)}());const t="full"===a.timings?{duration:0,delay:0,easing:"full"}:MC(a.timings,e.errors,!0);return{type:12,animation:Kn(this,uf(a.animation),e),timings:t,options:null}}}class V1{constructor(a){this.errors=a,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function oc(r){return r?(r=df(r)).params&&(r.params=function k1(r){return r?df(r):null}(r.params)):r={},r}function dx(r,a,e){return{duration:r,delay:a,easing:e}}function ux(r,a,e,t,s,u,d=null,l=!1){return{type:1,element:r,keyframes:a,preStyleProps:e,postStyleProps:t,duration:s,delay:u,totalTime:s+u,easing:d,subTimeline:l}}class BC{constructor(){this._map=new Map}get(a){return this._map.get(a)||[]}append(a,e){let t=this._map.get(a);t||this._map.set(a,t=[]),t.push(...e)}has(a){return this._map.has(a)}clear(){this._map.clear()}}const F1=new RegExp(":enter","g"),N1=new RegExp(":leave","g");function hx(r,a,e,t,s,u=new Map,d=new Map,l,n,i=[]){return(new q1).buildKeyframes(r,a,e,t,s,u,d,l,n,i)}class q1{buildKeyframes(a,e,t,s,u,d,l,n,i,o=[]){i=i||new BC;const c=new px(a,e,i,s,u,o,[]);c.options=n;const p=n.delay?Ts(n.delay):0;c.currentTimeline.delayNextStep(p),c.currentTimeline.setStyles([d],null,c.errors,n),Kn(this,t,c);const m=c.timelines.filter(g=>g.containsAnimation());if(m.length&&l.size){let g;for(let f=m.length-1;f>=0;f--){const w=m[f];if(w.element===e){g=w;break}}g&&!g.allowOnlyTimelineStyles()&&g.setStyles([l],null,c.errors,n)}return m.length?m.map(g=>g.buildKeyframes()):[ux(e,[],[],[],0,p,"",!1)]}visitTrigger(a,e){}visitState(a,e){}visitTransition(a,e){}visitAnimateChild(a,e){const t=e.subInstructions.get(e.element);if(t){const s=e.createSubContext(a.options),u=e.currentTimeline.currentTime,d=this._visitSubInstructions(t,s,s.options);u!=d&&e.transformIntoNewTimeline(d)}e.previousNode=a}visitAnimateRef(a,e){const t=e.createSubContext(a.options);t.transformIntoNewTimeline(),this.visitReference(a.animation,t),e.transformIntoNewTimeline(t.currentTimeline.currentTime),e.previousNode=a}_visitSubInstructions(a,e,t){let u=e.currentTimeline.currentTime;const d=null!=t.duration?Ts(t.duration):null,l=null!=t.delay?Ts(t.delay):null;return 0!==d&&a.forEach(n=>{const i=e.appendInstructionToTimeline(n,d,l);u=Math.max(u,i.duration+i.delay)}),u}visitReference(a,e){e.updateOptions(a.options,!0),Kn(this,a.animation,e),e.previousNode=a}visitSequence(a,e){const t=e.subContextCount;let s=e;const u=a.options;if(u&&(u.params||u.delay)&&(s=e.createSubContext(u),s.transformIntoNewTimeline(),null!=u.delay)){6==s.previousNode.type&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=OC);const d=Ts(u.delay);s.delayNextStep(d)}a.steps.length&&(a.steps.forEach(d=>Kn(this,d,s)),s.currentTimeline.applyStylesToKeyframe(),s.subContextCount>t&&s.transformIntoNewTimeline()),e.previousNode=a}visitGroup(a,e){const t=[];let s=e.currentTimeline.currentTime;const u=a.options&&a.options.delay?Ts(a.options.delay):0;a.steps.forEach(d=>{const l=e.createSubContext(a.options);u&&l.delayNextStep(u),Kn(this,d,l),s=Math.max(s,l.currentTimeline.currentTime),t.push(l.currentTimeline)}),t.forEach(d=>e.currentTimeline.mergeTimelineCollectedStyles(d)),e.transformIntoNewTimeline(s),e.previousNode=a}_visitTiming(a,e){if(a.dynamic){const t=a.strValue;return MC(e.params?DC(t,e.params,e.errors):t,e.errors)}return{duration:a.duration,delay:a.delay,easing:a.easing}}visitAnimate(a,e){const t=e.currentAnimateTimings=this._visitTiming(a.timings,e),s=e.currentTimeline;t.delay&&(e.incrementTime(t.delay),s.snapshotCurrentStyles());const u=a.style;5==u.type?this.visitKeyframes(u,e):(e.incrementTime(t.duration),this.visitStyle(u,e),s.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=a}visitStyle(a,e){const t=e.currentTimeline,s=e.currentAnimateTimings;!s&&t.hasCurrentStyleProperties()&&t.forwardFrame();const u=s&&s.easing||a.easing;a.isEmptyStep?t.applyEmptyStep(u):t.setStyles(a.styles,u,e.errors,e.options),e.previousNode=a}visitKeyframes(a,e){const t=e.currentAnimateTimings,s=e.currentTimeline.duration,u=t.duration,l=e.createSubContext().currentTimeline;l.easing=t.easing,a.styles.forEach(n=>{l.forwardTime((n.offset||0)*u),l.setStyles(n.styles,n.easing,e.errors,e.options),l.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(l),e.transformIntoNewTimeline(s+u),e.previousNode=a}visitQuery(a,e){const t=e.currentTimeline.currentTime,s=a.options||{},u=s.delay?Ts(s.delay):0;u&&(6===e.previousNode.type||0==t&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=OC);let d=t;const l=e.invokeQuery(a.selector,a.originalSelector,a.limit,a.includeSelf,!!s.optional,e.errors);e.currentQueryTotal=l.length;let n=null;l.forEach((i,o)=>{e.currentQueryIndex=o;const c=e.createSubContext(a.options,i);u&&c.delayNextStep(u),i===e.element&&(n=c.currentTimeline),Kn(this,a.animation,c),c.currentTimeline.applyStylesToKeyframe(),d=Math.max(d,c.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(d),n&&(e.currentTimeline.mergeTimelineCollectedStyles(n),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=a}visitStagger(a,e){const t=e.parentContext,s=e.currentTimeline,u=a.timings,d=Math.abs(u.duration),l=d*(e.currentQueryTotal-1);let n=d*e.currentQueryIndex;switch(u.duration<0?"reverse":u.easing){case"reverse":n=l-n;break;case"full":n=t.currentStaggerTime}const o=e.currentTimeline;n&&o.delayNextStep(n);const c=o.currentTime;Kn(this,a.animation,e),e.previousNode=a,t.currentStaggerTime=s.currentTime-c+(s.startTime-t.currentTimeline.startTime)}}const OC={};class px{constructor(a,e,t,s,u,d,l,n){this._driver=a,this.element=e,this.subInstructions=t,this._enterClassName=s,this._leaveClassName=u,this.errors=d,this.timelines=l,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=OC,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=n||new LC(this._driver,e,0),l.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(a,e){if(!a)return;const t=a;let s=this.options;null!=t.duration&&(s.duration=Ts(t.duration)),null!=t.delay&&(s.delay=Ts(t.delay));const u=t.params;if(u){let d=s.params;d||(d=this.options.params={}),Object.keys(u).forEach(l=>{(!e||!d.hasOwnProperty(l))&&(d[l]=DC(u[l],d,this.errors))})}}_copyOptions(){const a={};if(this.options){const e=this.options.params;if(e){const t=a.params={};Object.keys(e).forEach(s=>{t[s]=e[s]})}}return a}createSubContext(a=null,e,t){const s=e||this.element,u=new px(this._driver,s,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(s,t||0));return u.previousNode=this.previousNode,u.currentAnimateTimings=this.currentAnimateTimings,u.options=this._copyOptions(),u.updateOptions(a),u.currentQueryIndex=this.currentQueryIndex,u.currentQueryTotal=this.currentQueryTotal,u.parentContext=this,this.subContextCount++,u}transformIntoNewTimeline(a){return this.previousNode=OC,this.currentTimeline=this.currentTimeline.fork(this.element,a),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(a,e,t){const s={duration:e??a.duration,delay:this.currentTimeline.currentTime+(t??0)+a.delay,easing:""},u=new z1(this._driver,a.element,a.keyframes,a.preStyleProps,a.postStyleProps,s,a.stretchStartingKeyframe);return this.timelines.push(u),s}incrementTime(a){this.currentTimeline.forwardTime(this.currentTimeline.duration+a)}delayNextStep(a){a>0&&this.currentTimeline.delayNextStep(a)}invokeQuery(a,e,t,s,u,d){let l=[];if(s&&l.push(this.element),a.length>0){a=(a=a.replace(F1,"."+this._enterClassName)).replace(N1,"."+this._leaveClassName);let i=this._driver.query(this.element,a,1!=t);0!==t&&(i=t<0?i.slice(i.length+t,i.length):i.slice(0,t)),l.push(...i)}return!u&&0==l.length&&d.push(function $P(r){return new h.vHH(3014,!1)}()),l}}class LC{constructor(a,e,t,s){this._driver=a,this.element=e,this.startTime=t,this._elementTimelineStylesLookup=s,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),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.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(a){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+a),e&&this.snapshotCurrentStyles()):this.startTime+=a}fork(a,e){return this.applyStylesToKeyframe(),new LC(this._driver,a,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(a){this.applyStylesToKeyframe(),this.duration=a,this._loadKeyframe()}_updateStyle(a,e){this._localTimelineStyles.set(a,e),this._globalTimelineStyles.set(a,e),this._styleSummary.set(a,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(a){a&&this._previousKeyframe.set("easing",a);for(let[e,t]of this._globalTimelineStyles)this._backFill.set(e,t||ga),this._currentKeyframe.set(e,ga);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(a,e,t,s){e&&this._previousKeyframe.set("easing",e);const u=s&&s.params||{},d=function G1(r,a){const e=new Map;let t;return r.forEach(s=>{if("*"===s){t=t||a.keys();for(let u of t)e.set(u,ga)}else Es(s,e)}),e}(a,this._globalTimelineStyles);for(let[l,n]of d){const i=DC(n,u,t);this._pendingStyles.set(l,i),this._localTimelineStyles.has(l)||this._backFill.set(l,this._globalTimelineStyles.get(l)??ga),this._updateStyle(l,i)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((a,e)=>{this._currentKeyframe.set(e,a)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((a,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,a)}))}snapshotCurrentStyles(){for(let[a,e]of this._localTimelineStyles)this._pendingStyles.set(a,e),this._updateStyle(a,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const a=[];for(let e in this._currentKeyframe)a.push(e);return a}mergeTimelineCollectedStyles(a){a._styleSummary.forEach((e,t)=>{const s=this._styleSummary.get(t);(!s||e.time>s.time)&&this._updateStyle(t,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const a=new Set,e=new Set,t=1===this._keyframes.size&&0===this.duration;let s=[];this._keyframes.forEach((l,n)=>{const i=Es(l,new Map,this._backFill);i.forEach((o,c)=>{"!"===o?a.add(c):o===ga&&e.add(c)}),t||i.set("offset",n/this.duration),s.push(i)});const u=a.size?HC(a.values()):[],d=e.size?HC(e.values()):[];if(t){const l=s[0],n=new Map(l);l.set("offset",0),n.set("offset",1),s=[l,n]}return ux(this.element,s,u,d,this.duration,this.startTime,this.easing,!1)}}class z1 extends LC{constructor(a,e,t,s,u,d,l=!1){super(a,e,d.delay),this.keyframes=t,this.preStyleProps=s,this.postStyleProps=u,this._stretchStartingKeyframe=l,this.timings={duration:d.duration,delay:d.delay,easing:d.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let a=this.keyframes,{delay:e,duration:t,easing:s}=this.timings;if(this._stretchStartingKeyframe&&e){const u=[],d=t+e,l=e/d,n=Es(a[0]);n.set("offset",0),u.push(n);const i=Es(a[0]);i.set("offset",vM(l)),u.push(i);const o=a.length-1;for(let c=1;c<=o;c++){let p=Es(a[c]);const m=p.get("offset");p.set("offset",vM((e+m*t)/d)),u.push(p)}t=d,e=0,s="",a=u}return ux(this.element,a,this.preStyleProps,this.postStyleProps,t,e,s,!0)}}function vM(r,a=3){const e=Math.pow(10,a-1);return Math.round(r*e)/e}class fx{}const W1=new Set(["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"]);class $1 extends fx{normalizePropertyName(a,e){return lx(a)}normalizeStyleValue(a,e,t,s){let u="";const d=t.toString().trim();if(W1.has(e)&&0!==t&&"0"!==t)if("number"==typeof t)u="px";else{const l=t.match(/^[+-]?[\d\.]+([a-z]*)$/);l&&0==l[1].length&&s.push(function BP(r,a){return new h.vHH(3005,!1)}())}return d+u}}function AM(r,a,e,t,s,u,d,l,n,i,o,c,p){return{type:0,element:r,triggerName:a,isRemovalTransition:s,fromState:e,fromStyles:u,toState:t,toStyles:d,timelines:l,queriedElements:n,preStyleProps:i,postStyleProps:o,totalTime:c,errors:p}}const mx={};class xM{constructor(a,e,t){this._triggerName=a,this.ast=e,this._stateStyles=t}match(a,e,t,s){return function Y1(r,a,e,t,s){return r.some(u=>u(a,e,t,s))}(this.ast.matchers,a,e,t,s)}buildStyles(a,e,t){let s=this._stateStyles.get("*");return void 0!==a&&(s=this._stateStyles.get(a?.toString())||s),s?s.buildStyles(e,t):new Map}build(a,e,t,s,u,d,l,n,i,o){const c=[],p=this.ast.options&&this.ast.options.params||mx,g=this.buildStyles(t,l&&l.params||mx,c),f=n&&n.params||mx,w=this.buildStyles(s,f,c),R=new Set,J=new Map,Se=new Map,at="void"===s,Si={params:Q1(f,p),delay:this.ast.options?.delay},ni=o?[]:hx(a,e,this.ast.animation,u,d,g,w,Si,i,c);let _i=0;if(ni.forEach(vr=>{_i=Math.max(vr.duration+vr.delay,_i)}),c.length)return AM(e,this._triggerName,t,s,at,g,w,[],[],J,Se,_i,c);ni.forEach(vr=>{const bo=vr.element,VD=Jn(J,bo,new Set);vr.preStyleProps.forEach(lc=>VD.add(lc));const _f=Jn(Se,bo,new Set);vr.postStyleProps.forEach(lc=>_f.add(lc)),bo!==e&&R.add(bo)});const yn=HC(R.values());return AM(e,this._triggerName,t,s,at,g,w,ni,yn,J,Se,_i)}}function Q1(r,a){const e=df(a);for(const t in r)r.hasOwnProperty(t)&&null!=r[t]&&(e[t]=r[t]);return e}class J1{constructor(a,e,t){this.styles=a,this.defaultParams=e,this.normalizer=t}buildStyles(a,e){const t=new Map,s=df(this.defaultParams);return Object.keys(a).forEach(u=>{const d=a[u];null!==d&&(s[u]=d)}),this.styles.styles.forEach(u=>{"string"!=typeof u&&u.forEach((d,l)=>{d&&(d=DC(d,s,e));const n=this.normalizer.normalizePropertyName(l,e);d=this.normalizer.normalizeStyleValue(l,n,d,e),t.set(n,d)})}),t}}class Z1{constructor(a,e,t){this.name=a,this.ast=e,this._normalizer=t,this.transitionFactories=[],this.states=new Map,e.states.forEach(s=>{this.states.set(s.name,new J1(s.style,s.options&&s.options.params||{},t))}),SM(this.states,"true","1"),SM(this.states,"false","0"),e.transitions.forEach(s=>{this.transitionFactories.push(new xM(a,s,this.states))}),this.fallbackTransition=function X1(r,a,e){return new xM(r,{type:1,animation:{type:2,steps:[],options:null},matchers:[(d,l)=>!0],options:null,queryCount:0,depCount:0},a)}(a,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(a,e,t,s){return this.transitionFactories.find(d=>d.match(a,e,t,s))||null}matchStyles(a,e,t){return this.fallbackTransition.buildStyles(a,e,t)}}function SM(r,a,e){r.has(a)?r.has(e)||r.set(e,r.get(a)):r.has(e)&&r.set(a,r.get(e))}const eI=new BC;class tI{constructor(a,e,t){this.bodyNode=a,this._driver=e,this._normalizer=t,this._animations=new Map,this._playersById=new Map,this.players=[]}register(a,e){const t=[],u=cx(this._driver,e,t,[]);if(t.length)throw function e1(r){return new h.vHH(3503,!1)}();this._animations.set(a,u)}_buildPlayer(a,e,t){const s=a.element,u=nM(0,this._normalizer,0,a.keyframes,e,t);return this._driver.animate(s,u,a.duration,a.delay,a.easing,[],!0)}create(a,e,t={}){const s=[],u=this._animations.get(a);let d;const l=new Map;if(u?(d=hx(this._driver,e,u,rx,SC,new Map,new Map,t,eI,s),d.forEach(o=>{const c=Jn(l,o.element,new Map);o.postStyleProps.forEach(p=>c.set(p,null))})):(s.push(function t1(){return new h.vHH(3300,!1)}()),d=[]),s.length)throw function n1(r){return new h.vHH(3504,!1)}();l.forEach((o,c)=>{o.forEach((p,m)=>{o.set(m,this._driver.computeStyle(c,m,ga))})});const i=Ss(d.map(o=>{const c=l.get(o.element);return this._buildPlayer(o,new Map,c)}));return this._playersById.set(a,i),i.onDestroy(()=>this.destroy(a)),this.players.push(i),i}destroy(a){const e=this._getPlayer(a);e.destroy(),this._playersById.delete(a);const t=this.players.indexOf(e);t>=0&&this.players.splice(t,1)}_getPlayer(a){const e=this._playersById.get(a);if(!e)throw function r1(r){return new h.vHH(3301,!1)}();return e}listen(a,e,t,s){const u=ex(e,"","","");return Z0(this._getPlayer(a),t,u,s),()=>{}}command(a,e,t,s){if("register"==t)return void this.register(a,s[0]);if("create"==t)return void this.create(a,e,s[0]||{});const u=this._getPlayer(a);switch(t){case"play":u.play();break;case"pause":u.pause();break;case"reset":u.reset();break;case"restart":u.restart();break;case"finish":u.finish();break;case"init":u.init();break;case"setPosition":u.setPosition(parseFloat(s[0]));break;case"destroy":this.destroy(a)}}}const TM="ng-animate-queued",gx="ng-animate-disabled",oI=[],EM={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},sI={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},wr="__ng_removed";class _x{constructor(a,e=""){this.namespaceId=e;const t=a&&a.hasOwnProperty("value");if(this.value=function uI(r){return r??null}(t?a.value:a),t){const u=df(a);delete u.value,this.options=u}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(a){const e=a.params;if(e){const t=this.options.params;Object.keys(e).forEach(s=>{null==t[s]&&(t[s]=e[s])})}}}const hf="void",bx=new _x(hf);class lI{constructor(a,e,t){this.id=a,this.hostElement=e,this._engine=t,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+a,yr(e,this._hostClassName)}listen(a,e,t,s){if(!this._triggers.has(e))throw function a1(r,a){return new h.vHH(3302,!1)}();if(null==t||0==t.length)throw function o1(r){return new h.vHH(3303,!1)}();if(!function hI(r){return"start"==r||"done"==r}(t))throw function s1(r,a){return new h.vHH(3400,!1)}();const u=Jn(this._elementListeners,a,[]),d={name:e,phase:t,callback:s};u.push(d);const l=Jn(this._engine.statesByElement,a,new Map);return l.has(e)||(yr(a,TC),yr(a,TC+"-"+e),l.set(e,bx)),()=>{this._engine.afterFlush(()=>{const n=u.indexOf(d);n>=0&&u.splice(n,1),this._triggers.has(e)||l.delete(e)})}}register(a,e){return!this._triggers.has(a)&&(this._triggers.set(a,e),!0)}_getTrigger(a){const e=this._triggers.get(a);if(!e)throw function l1(r){return new h.vHH(3401,!1)}();return e}trigger(a,e,t,s=!0){const u=this._getTrigger(e),d=new Cx(this.id,e,a);let l=this._engine.statesByElement.get(a);l||(yr(a,TC),yr(a,TC+"-"+e),this._engine.statesByElement.set(a,l=new Map));let n=l.get(e);const i=new _x(t,this.id);if(!(t&&t.hasOwnProperty("value"))&&n&&i.absorbOptions(n.options),l.set(e,i),n||(n=bx),i.value!==hf&&n.value===i.value){if(!function mI(r,a){const e=Object.keys(r),t=Object.keys(a);if(e.length!=t.length)return!1;for(let s=0;s{ac(a,w),ya(a,R)})}return}const p=Jn(this._engine.playersByElement,a,[]);p.forEach(f=>{f.namespaceId==this.id&&f.triggerName==e&&f.queued&&f.destroy()});let m=u.matchTransition(n.value,i.value,a,i.params),g=!1;if(!m){if(!s)return;m=u.fallbackTransition,g=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:a,triggerName:e,transition:m,fromState:n,toState:i,player:d,isFallbackTransition:g}),g||(yr(a,TM),d.onStart(()=>{$d(a,TM)})),d.onDone(()=>{let f=this.players.indexOf(d);f>=0&&this.players.splice(f,1);const w=this._engine.playersByElement.get(a);if(w){let R=w.indexOf(d);R>=0&&w.splice(R,1)}}),this.players.push(d),p.push(d),d}deregister(a){this._triggers.delete(a),this._engine.statesByElement.forEach(e=>e.delete(a)),this._elementListeners.forEach((e,t)=>{this._elementListeners.set(t,e.filter(s=>s.name!=a))})}clearElementCache(a){this._engine.statesByElement.delete(a),this._elementListeners.delete(a);const e=this._engine.playersByElement.get(a);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(a))}_signalRemovalForInnerTriggers(a,e){const t=this._engine.driver.query(a,EC,!0);t.forEach(s=>{if(s[wr])return;const u=this._engine.fetchNamespacesByElement(s);u.size?u.forEach(d=>d.triggerLeaveAnimation(s,e,!1,!0)):this.clearElementCache(s)}),this._engine.afterFlushAnimationsDone(()=>t.forEach(s=>this.clearElementCache(s)))}triggerLeaveAnimation(a,e,t,s){const u=this._engine.statesByElement.get(a),d=new Map;if(u){const l=[];if(u.forEach((n,i)=>{if(d.set(i,n.value),this._triggers.has(i)){const o=this.trigger(a,i,hf,s);o&&l.push(o)}}),l.length)return this._engine.markElementAsRemoved(this.id,a,!0,e,d),t&&Ss(l).onDone(()=>this._engine.processLeaveNode(a)),!0}return!1}prepareLeaveAnimationListeners(a){const e=this._elementListeners.get(a),t=this._engine.statesByElement.get(a);if(e&&t){const s=new Set;e.forEach(u=>{const d=u.name;if(s.has(d))return;s.add(d);const n=this._triggers.get(d).fallbackTransition,i=t.get(d)||bx,o=new _x(hf),c=new Cx(this.id,d,a);this._engine.totalQueuedPlayers++,this._queue.push({element:a,triggerName:d,transition:n,fromState:i,toState:o,player:c,isFallbackTransition:!0})})}}removeNode(a,e){const t=this._engine;if(a.childElementCount&&this._signalRemovalForInnerTriggers(a,e),this.triggerLeaveAnimation(a,e,!0))return;let s=!1;if(t.totalAnimations){const u=t.players.length?t.playersByQueriedElement.get(a):[];if(u&&u.length)s=!0;else{let d=a;for(;d=d.parentNode;)if(t.statesByElement.get(d)){s=!0;break}}}if(this.prepareLeaveAnimationListeners(a),s)t.markElementAsRemoved(this.id,a,!1,e);else{const u=a[wr];(!u||u===EM)&&(t.afterFlush(()=>this.clearElementCache(a)),t.destroyInnerAnimations(a),t._onRemovalComplete(a,e))}}insertNode(a,e){yr(a,this._hostClassName)}drainQueuedTransitions(a){const e=[];return this._queue.forEach(t=>{const s=t.player;if(s.destroyed)return;const u=t.element,d=this._elementListeners.get(u);d&&d.forEach(l=>{if(l.name==t.triggerName){const n=ex(u,t.triggerName,t.fromState.value,t.toState.value);n._data=a,Z0(t.player,l.phase,n,l.callback)}}),s.markedForDestroy?this._engine.afterFlush(()=>{s.destroy()}):e.push(t)}),this._queue=[],e.sort((t,s)=>{const u=t.transition.ast.depCount,d=s.transition.ast.depCount;return 0==u||0==d?u-d:this._engine.driver.containsElement(t.element,s.element)?1:-1})}destroy(a){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,a)}elementContainsData(a){let e=!1;return this._elementListeners.has(a)&&(e=!0),e=!!this._queue.find(t=>t.element===a)||e,e}}class cI{constructor(a,e,t){this.bodyNode=a,this.driver=e,this._normalizer=t,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=(s,u)=>{}}_onRemovalComplete(a,e){this.onRemovalComplete(a,e)}get queuedPlayers(){const a=[];return this._namespaceList.forEach(e=>{e.players.forEach(t=>{t.queued&&a.push(t)})}),a}createNamespace(a,e){const t=new lI(a,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(t,e):(this.newHostElements.set(e,t),this.collectEnterElement(e)),this._namespaceLookup[a]=t}_balanceNamespaceList(a,e){const t=this._namespaceList,s=this.namespacesByHostElement;if(t.length-1>=0){let d=!1,l=this.driver.getParentElement(e);for(;l;){const n=s.get(l);if(n){const i=t.indexOf(n);t.splice(i+1,0,a),d=!0;break}l=this.driver.getParentElement(l)}d||t.unshift(a)}else t.push(a);return s.set(e,a),a}register(a,e){let t=this._namespaceLookup[a];return t||(t=this.createNamespace(a,e)),t}registerTrigger(a,e,t){let s=this._namespaceLookup[a];s&&s.register(e,t)&&this.totalAnimations++}destroy(a,e){if(!a)return;const t=this._fetchNamespace(a);this.afterFlush(()=>{this.namespacesByHostElement.delete(t.hostElement),delete this._namespaceLookup[a];const s=this._namespaceList.indexOf(t);s>=0&&this._namespaceList.splice(s,1)}),this.afterFlushAnimationsDone(()=>t.destroy(e))}_fetchNamespace(a){return this._namespaceLookup[a]}fetchNamespacesByElement(a){const e=new Set,t=this.statesByElement.get(a);if(t)for(let s of t.values())if(s.namespaceId){const u=this._fetchNamespace(s.namespaceId);u&&e.add(u)}return e}trigger(a,e,t,s){if(jC(e)){const u=this._fetchNamespace(a);if(u)return u.trigger(e,t,s),!0}return!1}insertNode(a,e,t,s){if(!jC(e))return;const u=e[wr];if(u&&u.setForRemoval){u.setForRemoval=!1,u.setForMove=!0;const d=this.collectedLeaveElements.indexOf(e);d>=0&&this.collectedLeaveElements.splice(d,1)}if(a){const d=this._fetchNamespace(a);d&&d.insertNode(e,t)}s&&this.collectEnterElement(e)}collectEnterElement(a){this.collectedEnterElements.push(a)}markElementAsDisabled(a,e){e?this.disabledNodes.has(a)||(this.disabledNodes.add(a),yr(a,gx)):this.disabledNodes.has(a)&&(this.disabledNodes.delete(a),$d(a,gx))}removeNode(a,e,t,s){if(jC(e)){const u=a?this._fetchNamespace(a):null;if(u?u.removeNode(e,s):this.markElementAsRemoved(a,e,!1,s),t){const d=this.namespacesByHostElement.get(e);d&&d.id!==a&&d.removeNode(e,s)}}else this._onRemovalComplete(e,s)}markElementAsRemoved(a,e,t,s,u){this.collectedLeaveElements.push(e),e[wr]={namespaceId:a,setForRemoval:s,hasAnimation:t,removedBeforeQueried:!1,previousTriggersValues:u}}listen(a,e,t,s,u){return jC(e)?this._fetchNamespace(a).listen(e,t,s,u):()=>{}}_buildInstruction(a,e,t,s,u){return a.transition.build(this.driver,a.element,a.fromState.value,a.toState.value,t,s,a.fromState.options,a.toState.options,e,u)}destroyInnerAnimations(a){let e=this.driver.query(a,EC,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(a,ax,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(a){const e=this.playersByElement.get(a);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(a){const e=this.playersByQueriedElement.get(a);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(a=>{if(this.players.length)return Ss(this.players).onDone(()=>a());a()})}processLeaveNode(a){const e=a[wr];if(e&&e.setForRemoval){if(a[wr]=EM,e.namespaceId){this.destroyInnerAnimations(a);const t=this._fetchNamespace(e.namespaceId);t&&t.clearElementCache(a)}this._onRemovalComplete(a,e.setForRemoval)}a.classList?.contains(gx)&&this.markElementAsDisabled(a,!1),this.driver.query(a,".ng-animate-disabled",!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(a=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,s)=>this._balanceNamespaceList(t,s)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let t=0;tt()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?Ss(e).onDone(()=>{t.forEach(s=>s())}):t.forEach(s=>s())}}reportError(a){throw function c1(r){return new h.vHH(3402,!1)}()}_flushAnimations(a,e){const t=new BC,s=[],u=new Map,d=[],l=new Map,n=new Map,i=new Map,o=new Set;this.disabledNodes.forEach(Ge=>{o.add(Ge);const it=this.driver.query(Ge,".ng-animate-queued",!0);for(let ot=0;ot{const ot=rx+f++;g.set(it,ot),Ge.forEach(At=>yr(At,ot))});const w=[],R=new Set,J=new Set;for(let Ge=0;GeR.add(At)):J.add(it))}const Se=new Map,at=HM(p,Array.from(R));at.forEach((Ge,it)=>{const ot=SC+f++;Se.set(it,ot),Ge.forEach(At=>yr(At,ot))}),a.push(()=>{m.forEach((Ge,it)=>{const ot=g.get(it);Ge.forEach(At=>$d(At,ot))}),at.forEach((Ge,it)=>{const ot=Se.get(it);Ge.forEach(At=>$d(At,ot))}),w.forEach(Ge=>{this.processLeaveNode(Ge)})});const Si=[],ni=[];for(let Ge=this._namespaceList.length-1;Ge>=0;Ge--)this._namespaceList[Ge].drainQueuedTransitions(e).forEach(ot=>{const At=ot.player,Ui=ot.element;if(Si.push(At),this.collectedEnterElements.length){const dn=Ui[wr];if(dn&&dn.setForMove){if(dn.previousTriggersValues&&dn.previousTriggersValues.has(ot.triggerName)){const cc=dn.previousTriggersValues.get(ot.triggerName),Ar=this.statesByElement.get(ot.element);if(Ar&&Ar.has(ot.triggerName)){const ZC=Ar.get(ot.triggerName);ZC.value=cc,Ar.set(ot.triggerName,ZC)}}return void At.destroy()}}const Aa=!c||!this.driver.containsElement(c,Ui),Zn=Se.get(Ui),Ds=g.get(Ui),di=this._buildInstruction(ot,t,Ds,Zn,Aa);if(di.errors&&di.errors.length)return void ni.push(di);if(Aa)return At.onStart(()=>ac(Ui,di.fromStyles)),At.onDestroy(()=>ya(Ui,di.toStyles)),void s.push(At);if(ot.isFallbackTransition)return At.onStart(()=>ac(Ui,di.fromStyles)),At.onDestroy(()=>ya(Ui,di.toStyles)),void s.push(At);const LD=[];di.timelines.forEach(dn=>{dn.stretchStartingKeyframe=!0,this.disabledNodes.has(dn.element)||LD.push(dn)}),di.timelines=LD,t.append(Ui,di.timelines),d.push({instruction:di,player:At,element:Ui}),di.queriedElements.forEach(dn=>Jn(l,dn,[]).push(At)),di.preStyleProps.forEach((dn,cc)=>{if(dn.size){let Ar=n.get(cc);Ar||n.set(cc,Ar=new Set),dn.forEach((ZC,Fx)=>Ar.add(Fx))}}),di.postStyleProps.forEach((dn,cc)=>{let Ar=i.get(cc);Ar||i.set(cc,Ar=new Set),dn.forEach((ZC,Fx)=>Ar.add(Fx))})});if(ni.length){const Ge=[];ni.forEach(it=>{Ge.push(function d1(r,a){return new h.vHH(3505,!1)}())}),Si.forEach(it=>it.destroy()),this.reportError(Ge)}const _i=new Map,yn=new Map;d.forEach(Ge=>{const it=Ge.element;t.has(it)&&(yn.set(it,it),this._beforeAnimationBuild(Ge.player.namespaceId,Ge.instruction,_i))}),s.forEach(Ge=>{const it=Ge.element;this._getPreviousPlayers(it,!1,Ge.namespaceId,Ge.triggerName,null).forEach(At=>{Jn(_i,it,[]).push(At),At.destroy()})});const vr=w.filter(Ge=>PM(Ge,n,i)),bo=new Map;DM(bo,this.driver,J,i,ga).forEach(Ge=>{PM(Ge,n,i)&&vr.push(Ge)});const _f=new Map;m.forEach((Ge,it)=>{DM(_f,this.driver,new Set(Ge),n,"!")}),vr.forEach(Ge=>{const it=bo.get(Ge),ot=_f.get(Ge);bo.set(Ge,new Map([...Array.from(it?.entries()??[]),...Array.from(ot?.entries()??[])]))});const lc=[],BD=[],OD={};d.forEach(Ge=>{const{element:it,player:ot,instruction:At}=Ge;if(t.has(it)){if(o.has(it))return ot.onDestroy(()=>ya(it,At.toStyles)),ot.disabled=!0,ot.overrideTotalTime(At.totalTime),void s.push(ot);let Ui=OD;if(yn.size>1){let Zn=it;const Ds=[];for(;Zn=Zn.parentNode;){const di=yn.get(Zn);if(di){Ui=di;break}Ds.push(Zn)}Ds.forEach(di=>yn.set(di,Ui))}const Aa=this._buildAnimation(ot.namespaceId,At,_i,u,_f,bo);if(ot.setRealPlayer(Aa),Ui===OD)lc.push(ot);else{const Zn=this.playersByElement.get(Ui);Zn&&Zn.length&&(ot.parentPlayer=Ss(Zn)),s.push(ot)}}else ac(it,At.fromStyles),ot.onDestroy(()=>ya(it,At.toStyles)),BD.push(ot),o.has(it)&&s.push(ot)}),BD.forEach(Ge=>{const it=u.get(Ge.element);if(it&&it.length){const ot=Ss(it);Ge.setRealPlayer(ot)}}),s.forEach(Ge=>{Ge.parentPlayer?Ge.syncPlayerEvents(Ge.parentPlayer):Ge.destroy()});for(let Ge=0;Ge!Aa.destroyed);Ui.length?pI(this,it,Ui):this.processLeaveNode(it)}return w.length=0,lc.forEach(Ge=>{this.players.push(Ge),Ge.onDone(()=>{Ge.destroy();const it=this.players.indexOf(Ge);this.players.splice(it,1)}),Ge.play()}),lc}elementContainsData(a,e){let t=!1;const s=e[wr];return s&&s.setForRemoval&&(t=!0),this.playersByElement.has(e)&&(t=!0),this.playersByQueriedElement.has(e)&&(t=!0),this.statesByElement.has(e)&&(t=!0),this._fetchNamespace(a).elementContainsData(e)||t}afterFlush(a){this._flushFns.push(a)}afterFlushAnimationsDone(a){this._whenQuietFns.push(a)}_getPreviousPlayers(a,e,t,s,u){let d=[];if(e){const l=this.playersByQueriedElement.get(a);l&&(d=l)}else{const l=this.playersByElement.get(a);if(l){const n=!u||u==hf;l.forEach(i=>{i.queued||!n&&i.triggerName!=s||d.push(i)})}}return(t||s)&&(d=d.filter(l=>!(t&&t!=l.namespaceId||s&&s!=l.triggerName))),d}_beforeAnimationBuild(a,e,t){const u=e.element,d=e.isRemovalTransition?void 0:a,l=e.isRemovalTransition?void 0:e.triggerName;for(const n of e.timelines){const i=n.element,o=i!==u,c=Jn(t,i,[]);this._getPreviousPlayers(i,o,d,l,e.toState).forEach(m=>{const g=m.getRealPlayer();g.beforeDestroy&&g.beforeDestroy(),m.destroy(),c.push(m)})}ac(u,e.fromStyles)}_buildAnimation(a,e,t,s,u,d){const l=e.triggerName,n=e.element,i=[],o=new Set,c=new Set,p=e.timelines.map(g=>{const f=g.element;o.add(f);const w=f[wr];if(w&&w.removedBeforeQueried)return new Ol(g.duration,g.delay);const R=f!==n,J=function fI(r){const a=[];return RM(r,a),a}((t.get(f)||oI).map(_i=>_i.getRealPlayer())).filter(_i=>!!_i.element&&_i.element===f),Se=u.get(f),at=d.get(f),Si=nM(0,this._normalizer,0,g.keyframes,Se,at),ni=this._buildPlayer(g,Si,J);if(g.subTimeline&&s&&c.add(f),R){const _i=new Cx(a,l,f);_i.setRealPlayer(ni),i.push(_i)}return ni});i.forEach(g=>{Jn(this.playersByQueriedElement,g.element,[]).push(g),g.onDone(()=>function dI(r,a,e){let t=r.get(a);if(t){if(t.length){const s=t.indexOf(e);t.splice(s,1)}0==t.length&&r.delete(a)}return t}(this.playersByQueriedElement,g.element,g))}),o.forEach(g=>yr(g,hM));const m=Ss(p);return m.onDestroy(()=>{o.forEach(g=>$d(g,hM)),ya(n,e.toStyles)}),c.forEach(g=>{Jn(s,g,[]).push(m)}),m}_buildPlayer(a,e,t){return e.length>0?this.driver.animate(a.element,e,a.duration,a.delay,a.easing,t):new Ol(a.duration,a.delay)}}class Cx{constructor(a,e,t){this.namespaceId=a,this.triggerName=e,this.element=t,this._player=new Ol,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(a){this._containsRealPlayer||(this._player=a,this._queuedCallbacks.forEach((e,t)=>{e.forEach(s=>Z0(a,t,void 0,s))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(a.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(a){this.totalTime=a}syncPlayerEvents(a){const e=this._player;e.triggerCallback&&a.onStart(()=>e.triggerCallback("start")),a.onDone(()=>this.finish()),a.onDestroy(()=>this.destroy())}_queueEvent(a,e){Jn(this._queuedCallbacks,a,[]).push(e)}onDone(a){this.queued&&this._queueEvent("done",a),this._player.onDone(a)}onStart(a){this.queued&&this._queueEvent("start",a),this._player.onStart(a)}onDestroy(a){this.queued&&this._queueEvent("destroy",a),this._player.onDestroy(a)}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(a){this.queued||this._player.setPosition(a)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(a){const e=this._player;e.triggerCallback&&e.triggerCallback(a)}}function jC(r){return r&&1===r.nodeType}function MM(r,a){const e=r.style.display;return r.style.display=a??"none",e}function DM(r,a,e,t,s){const u=[];e.forEach(n=>u.push(MM(n)));const d=[];t.forEach((n,i)=>{const o=new Map;n.forEach(c=>{const p=a.computeStyle(i,c,s);o.set(c,p),(!p||0==p.length)&&(i[wr]=sI,d.push(i))}),r.set(i,o)});let l=0;return e.forEach(n=>MM(n,u[l++])),d}function HM(r,a){const e=new Map;if(r.forEach(l=>e.set(l,[])),0==a.length)return e;const s=new Set(a),u=new Map;function d(l){if(!l)return 1;let n=u.get(l);if(n)return n;const i=l.parentNode;return n=e.has(i)?i:s.has(i)?1:d(i),u.set(l,n),n}return a.forEach(l=>{const n=d(l);1!==n&&e.get(n).push(l)}),e}function yr(r,a){r.classList?.add(a)}function $d(r,a){r.classList?.remove(a)}function pI(r,a,e){Ss(e).onDone(()=>r.processLeaveNode(a))}function RM(r,a){for(let e=0;es.add(u)):a.set(r,t),e.delete(r),!0}class FC{constructor(a,e,t){this.bodyNode=a,this._driver=e,this._normalizer=t,this._triggerCache={},this.onRemovalComplete=(s,u)=>{},this._transitionEngine=new cI(a,e,t),this._timelineEngine=new tI(a,e,t),this._transitionEngine.onRemovalComplete=(s,u)=>this.onRemovalComplete(s,u)}registerTrigger(a,e,t,s,u){const d=a+"-"+s;let l=this._triggerCache[d];if(!l){const n=[],o=cx(this._driver,u,n,[]);if(n.length)throw function ZP(r,a){return new h.vHH(3404,!1)}();l=function K1(r,a,e){return new Z1(r,a,e)}(s,o,this._normalizer),this._triggerCache[d]=l}this._transitionEngine.registerTrigger(e,s,l)}register(a,e){this._transitionEngine.register(a,e)}destroy(a,e){this._transitionEngine.destroy(a,e)}onInsert(a,e,t,s){this._transitionEngine.insertNode(a,e,t,s)}onRemove(a,e,t,s){this._transitionEngine.removeNode(a,e,s||!1,t)}disableAnimations(a,e){this._transitionEngine.markElementAsDisabled(a,e)}process(a,e,t,s){if("@"==t.charAt(0)){const[u,d]=rM(t);this._timelineEngine.command(u,e,d,s)}else this._transitionEngine.trigger(a,e,t,s)}listen(a,e,t,s,u){if("@"==t.charAt(0)){const[d,l]=rM(t);return this._timelineEngine.listen(d,e,l,u)}return this._transitionEngine.listen(a,e,t,s,u)}flush(a=-1){this._transitionEngine.flush(a)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let _I=(()=>{class r{constructor(e,t,s){this._element=e,this._startStyles=t,this._endStyles=s,this._state=0;let u=r.initialStylesByElement.get(e);u||r.initialStylesByElement.set(e,u=new Map),this._initialStyles=u}start(){this._state<1&&(this._startStyles&&ya(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ya(this._element,this._initialStyles),this._endStyles&&(ya(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(r.initialStylesByElement.delete(this._element),this._startStyles&&(ac(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ac(this._element,this._endStyles),this._endStyles=null),ya(this._element,this._initialStyles),this._state=3)}}return r.initialStylesByElement=new WeakMap,r})();function wx(r){let a=null;return r.forEach((e,t)=>{(function bI(r){return"display"===r||"position"===r})(t)&&(a=a||new Map,a.set(t,e))}),a}class IM{constructor(a,e,t,s){this.element=a,this.keyframes=e,this.options=t,this._specialStyles=s,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=t.duration,this._delay=t.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(a=>a()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const a=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,a,this.options),this._finalKeyframe=a.length?a[a.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(a){const e=[];return a.forEach(t=>{e.push(Object.fromEntries(t))}),e}_triggerWebAnimation(a,e,t){return a.animate(this._convertKeyframesToObject(e),t)}onStart(a){this._originalOnStartFns.push(a),this._onStartFns.push(a)}onDone(a){this._originalOnDoneFns.push(a),this._onDoneFns.push(a)}onDestroy(a){this._onDestroyFns.push(a)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(a=>a()),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,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_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(a=>a()),this._onDestroyFns=[])}setPosition(a){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=a*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const a=new Map;this.hasStarted()&&this._finalKeyframe.forEach((t,s)=>{"offset"!==s&&a.set(s,this._finished?t:bM(this.element,s))}),this.currentSnapshot=a}triggerCallback(a){const e="start"===a?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class CI{validateStyleProperty(a){return!0}validateAnimatableStyleProperty(a){return!0}matchesElement(a,e){return!1}containsElement(a,e){return lM(a,e)}getParentElement(a){return ix(a)}query(a,e,t){return cM(a,e,t)}computeStyle(a,e,t){return window.getComputedStyle(a)[e]}animate(a,e,t,s,u,d=[]){const n={duration:t,delay:s,fill:0==s?"both":"forwards"};u&&(n.easing=u);const i=new Map,o=d.filter(m=>m instanceof IM);(function A1(r,a){return 0===r||0===a})(t,s)&&o.forEach(m=>{m.currentSnapshot.forEach((g,f)=>i.set(f,g))});let c=function C1(r){return r.length?r[0]instanceof Map?r:r.map(a=>pM(a)):[]}(e).map(m=>Es(m));c=function x1(r,a,e){if(e.size&&a.length){let t=a[0],s=[];if(e.forEach((u,d)=>{t.has(d)||s.push(d),t.set(d,u)}),s.length)for(let u=1;ud.set(l,bM(r,l)))}}return a}(a,c,i);const p=function gI(r,a){let e=null,t=null;return Array.isArray(a)&&a.length?(e=wx(a[0]),a.length>1&&(t=wx(a[a.length-1]))):a instanceof Map&&(e=wx(a)),e||t?new _I(r,e,t):null}(a,c);return new IM(a,c,n,p)}}let wI=(()=>{class r extends Bh{constructor(e,t){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(t.body,{id:"0",encapsulation:h.ifc.None,styles:[],data:{animation:[]}})}build(e){const t=this._nextAnimationId.toString();this._nextAnimationId++;const s=Array.isArray(e)?f_(e):e;return kM(this._renderer,null,t,"register",[s]),new yI(t,this._renderer)}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(h.FYo),h.LFG(M.K0))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac}),r})();class yI extends class p_{}{constructor(a,e){super(),this._id=a,this._renderer=e}create(a,e){return new vI(this._id,a,e||{},this._renderer)}}class vI{constructor(a,e,t,s){this.id=a,this.element=e,this._renderer=s,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",t)}_listen(a,e){return this._renderer.listen(this.element,`@@${this.id}:${a}`,e)}_command(a,...e){return kM(this._renderer,this.element,this.id,a,e)}onDone(a){this._listen("done",a)}onStart(a){this._listen("start",a)}onDestroy(a){this._listen("destroy",a)}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"),this._started=!1}setPosition(a){this._command("setPosition",a)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function kM(r,a,e,t,s){return r.setProperty(a,`@@${e}:${t}`,s)}const VM="@.disabled";let AI=(()=>{class r{constructor(e,t,s){this.delegate=e,this.engine=t,this._zone=s,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),t.onRemovalComplete=(u,d)=>{const l=d?.parentNode(u);l&&d.removeChild(l,u)}}createRenderer(e,t){const u=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){let o=this._rendererCache.get(u);return o||(o=new BM("",u,this.engine),this._rendererCache.set(u,o)),o}const d=t.id,l=t.id+"-"+this._currentId;this._currentId++,this.engine.register(l,e);const n=o=>{Array.isArray(o)?o.forEach(n):this.engine.registerTrigger(d,l,e,o.name,o)};return t.data.animation.forEach(n),new xI(this,l,u,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,s){e>=0&&et(s)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(u=>{const[d,l]=u;d(l)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,s]))}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 r.\u0275fac=function(e){return new(e||r)(h.LFG(h.FYo),h.LFG(FC),h.LFG(h.R0b))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac}),r})();class BM{constructor(a,e,t){this.namespaceId=a,this.delegate=e,this.engine=t,this.destroyNode=this.delegate.destroyNode?s=>e.destroyNode(s):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(a,e){return this.delegate.createElement(a,e)}createComment(a){return this.delegate.createComment(a)}createText(a){return this.delegate.createText(a)}appendChild(a,e){this.delegate.appendChild(a,e),this.engine.onInsert(this.namespaceId,e,a,!1)}insertBefore(a,e,t,s=!0){this.delegate.insertBefore(a,e,t),this.engine.onInsert(this.namespaceId,e,a,s)}removeChild(a,e,t){this.engine.onRemove(this.namespaceId,e,this.delegate,t)}selectRootElement(a,e){return this.delegate.selectRootElement(a,e)}parentNode(a){return this.delegate.parentNode(a)}nextSibling(a){return this.delegate.nextSibling(a)}setAttribute(a,e,t,s){this.delegate.setAttribute(a,e,t,s)}removeAttribute(a,e,t){this.delegate.removeAttribute(a,e,t)}addClass(a,e){this.delegate.addClass(a,e)}removeClass(a,e){this.delegate.removeClass(a,e)}setStyle(a,e,t,s){this.delegate.setStyle(a,e,t,s)}removeStyle(a,e,t){this.delegate.removeStyle(a,e,t)}setProperty(a,e,t){"@"==e.charAt(0)&&e==VM?this.disableAnimations(a,!!t):this.delegate.setProperty(a,e,t)}setValue(a,e){this.delegate.setValue(a,e)}listen(a,e,t){return this.delegate.listen(a,e,t)}disableAnimations(a,e){this.engine.disableAnimations(a,e)}}class xI extends BM{constructor(a,e,t,s){super(e,t,s),this.factory=a,this.namespaceId=e}setProperty(a,e,t){"@"==e.charAt(0)?"."==e.charAt(1)&&e==VM?this.disableAnimations(a,t=void 0===t||!!t):this.engine.process(this.namespaceId,a,e.slice(1),t):this.delegate.setProperty(a,e,t)}listen(a,e,t){if("@"==e.charAt(0)){const s=function SI(r){switch(r){case"body":return document.body;case"document":return document;case"window":return window;default:return r}}(a);let u=e.slice(1),d="";return"@"!=u.charAt(0)&&([u,d]=function TI(r){const a=r.indexOf(".");return[r.substring(0,a),r.slice(a+1)]}(u)),this.engine.listen(this.namespaceId,s,u,d,l=>{this.factory.scheduleListenerCallback(l._data||-1,t,l)})}return this.delegate.listen(a,e,t)}}const OM=[{provide:Bh,useClass:wI},{provide:fx,useFactory:function MI(){return new $1}},{provide:FC,useClass:(()=>{class r extends FC{constructor(e,t,s,u){super(e.body,t,s)}ngOnDestroy(){this.flush()}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(M.K0),h.LFG(nx),h.LFG(fx),h.LFG(h.z2F))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac}),r})()},{provide:h.FYo,useFactory:function DI(r,a,e){return new AI(r,a,e)},deps:[pe,FC,h.R0b]}],yx=[{provide:nx,useFactory:()=>new CI},{provide:h.QbO,useValue:"BrowserAnimations"},...OM],LM=[{provide:nx,useClass:dM},{provide:h.QbO,useValue:"NoopAnimations"},...OM];let HI=(()=>{class r{static withConfig(e){return{ngModule:r,providers:e.disableAnimations?LM:yx}}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({providers:yx,imports:[Ta]}),r})(),UM=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({}),r})(),NC=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({imports:[En,Ye,pl,UM,Ye,UM]}),r})(),vx=(()=>{class r{constructor(){this.changes=new He.x}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const GI={provide:vx,deps:[[new h.FiY,new h.tp0,vx]],useFactory:function zI(r){return r||new vx}};let Ax=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({providers:[GI],imports:[M.ez,Ye]}),r})(),xx=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({imports:[Ur,M.ez]}),r})();const GM=new h.OlP("mat-chips-default-options");let Tx=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({providers:[ha,{provide:GM,useValue:{separatorKeyCodes:[13]}}],imports:[Ye]}),r})();function Ex(r,a,e){for(let t in a)if(a.hasOwnProperty(t)){const s=a[t];s?r.setProperty(t,s,e?.has(t)?"important":""):r.removeProperty(t)}return r}function Yd(r,a){const e=a?"":"none";Ex(r.style,{"touch-action":a?"":"none","-webkit-user-drag":a?"":"none","-webkit-tap-highlight-color":a?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function WM(r,a,e){Ex(r.style,{position:a?"":"fixed",top:a?"":"0",opacity:a?"":"0",left:a?"":"-999em"},e)}function qC(r,a){return a&&"none"!=a?r+" "+a:r}function $M(r){const a=r.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(r)*a}function Mx(r,a){return r.getPropertyValue(a).split(",").map(t=>t.trim())}function Dx(r){const a=r.getBoundingClientRect();return{top:a.top,right:a.right,bottom:a.bottom,left:a.left,width:a.width,height:a.height,x:a.x,y:a.y}}function Hx(r,a,e){const{top:t,bottom:s,left:u,right:d}=r;return e>=t&&e<=s&&a>=u&&a<=d}function pf(r,a,e){r.top+=a,r.bottom=r.top+r.height,r.left+=e,r.right=r.left+r.width}function YM(r,a,e,t){const{top:s,right:u,bottom:d,left:l,width:n,height:i}=r,o=n*a,c=i*a;return t>s-c&&tl-o&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:Dx(e)})})}handleScroll(a){const e=Un(a),t=this.positions.get(e);if(!t)return null;const s=t.scrollPosition;let u,d;if(e===this._document){const i=this.getViewportScrollPosition();u=i.top,d=i.left}else u=e.scrollTop,d=e.scrollLeft;const l=s.top-u,n=s.left-d;return this.positions.forEach((i,o)=>{i.clientRect&&e!==o&&e.contains(o)&&pf(i.clientRect,l,n)}),s.top=u,s.left=d,{top:l,left:n}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function JM(r){const a=r.cloneNode(!0),e=a.querySelectorAll("[id]"),t=r.nodeName.toLowerCase();a.removeAttribute("id");for(let s=0;s{if(this.beforeStarted.next(),this._handles.length){const n=this._getTargetHandle(l);n&&!this._disabledHandles.has(n)&&!this.disabled&&this._initializeDragSequence(n,l)}else this.disabled||this._initializeDragSequence(this._rootElement,l)},this._pointerMove=l=>{const n=this._getPointerPositionOnPage(l);if(!this._hasStartedDragging){if(Math.abs(n.x-this._pickupPositionOnPage.x)+Math.abs(n.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const m=Date.now()>=this._dragStartTime+this._getDragStartDelay(l),g=this._dropContainer;if(!m)return void this._endDragSequence(l);(!g||!g.isDragging()&&!g.isReceiving())&&(l.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(l)))}return}l.preventDefault();const i=this._getConstrainedPointerPosition(n);if(this._hasMoved=!0,this._lastKnownPointerPosition=n,this._updatePointerDirectionDelta(i),this._dropContainer)this._updateActiveDropContainer(i,n);else{const o=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,c=this._activeTransform;c.x=i.x-o.x+this._passiveTransform.x,c.y=i.y-o.y+this._passiveTransform.y,this._applyRootElementTransform(c.x,c.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:i,event:l,distance:this._getDragDistance(i),delta:this._pointerDirectionDelta})})},this._pointerUp=l=>{this._endDragSequence(l)},this._nativeDragStart=l=>{if(this._handles.length){const n=this._getTargetHandle(l);n&&!this._disabledHandles.has(n)&&!this.disabled&&l.preventDefault()}else this.disabled||l.preventDefault()},this.withRootElement(a).withParent(e.parentDragRef||null),this._parentPositions=new QM(t),d.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(a){const e=ze(a);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(t=>Yd(t,e)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(a){this._handles=a.map(t=>li(t)),this._handles.forEach(t=>Yd(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(a){return this._previewTemplate=a,this}withPlaceholderTemplate(a){return this._placeholderTemplate=a,this}withRootElement(a){const e=li(a);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,zC),e.addEventListener("touchstart",this._pointerDown,eD),e.addEventListener("dragstart",this._nativeDragStart,zC)}),this._initialTransform=void 0,this._rootElement=e),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(a){return this._boundaryElement=a?li(a):null,this._resizeSubscription.unsubscribe(),a&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(a){return this._parentDragRef=a,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),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=this._parentDragRef=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(a){!this._disabledHandles.has(a)&&this._handles.indexOf(a)>-1&&(this._disabledHandles.add(a),Yd(a,!0))}enableHandle(a){this._disabledHandles.has(a)&&(this._disabledHandles.delete(a),Yd(a,this.disabled))}withDirection(a){return this._direction=a,this}_withDropContainer(a){this._dropContainer=a}getFreeDragPosition(){const a=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:a.x,y:a.y}}setFreeDragPosition(a){return this._activeTransform={x:0,y:0},this._passiveTransform.x=a.x,this._passiveTransform.y=a.y,this._dropContainer||this._applyRootElementTransform(a.x,a.y),this}withPreviewContainer(a){return this._previewContainer=a,this}_sortFromLastPointerPosition(){const a=this._lastKnownPointerPosition;a&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(a),a)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview?.remove(),this._previewRef?.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(a){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:a}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(a),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(a);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e,event:a})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(a){ff(a)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const t=this._rootElement,s=t.parentNode,u=this._placeholder=this._createPlaceholderElement(),d=this._anchor=this._anchor||this._document.createComment(""),l=this._getShadowRoot();s.insertBefore(d,t),this._initialTransform=t.style.transform||"",this._preview=this._createPreviewElement(),WM(t,!1,Rx),this._document.body.appendChild(s.replaceChild(u,t)),this._getPreviewInsertionPoint(s,l).appendChild(this._preview),this.started.next({source:this,event:a}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this,event:a}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(a,e){this._parentDragRef&&e.stopPropagation();const t=this.isDragging(),s=ff(e),u=!s&&0!==e.button,d=this._rootElement,l=Un(e),n=!s&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),i=s?kr(e):lh(e);if(l&&l.draggable&&"mousedown"===e.type&&e.preventDefault(),t||u||n||i)return;if(this._handles.length){const p=d.style;this._rootElementTapHighlight=p.webkitTapHighlightColor||"",p.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(p=>this._updateOnScroll(p)),this._boundaryElement&&(this._boundaryRect=Dx(this._boundaryElement));const o=this._previewTemplate;this._pickupPositionInElement=o&&o.template&&!o.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,a,e);const c=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:c.x,y:c.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(a){WM(this._rootElement,!0,Rx),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,t=e.getItemIndex(this),s=this._getPointerPositionOnPage(a),u=this._getDragDistance(s),d=e._isOverContainer(s.x,s.y);this.ended.next({source:this,distance:u,dropPoint:s,event:a}),this.dropped.next({item:this,currentIndex:t,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:d,distance:u,dropPoint:s,event:a}),e.drop(this,t,this._initialIndex,this._initialContainer,d,u,s),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:a,y:e},{x:t,y:s}){let u=this._initialContainer._getSiblingContainerFromPosition(this,a,e);!u&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(a,e)&&(u=this._initialContainer),u&&u!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=u,this._dropContainer.enter(this,a,e,u===this._initialContainer&&u.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:u,currentIndex:u.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(t,s),this._dropContainer._sortItem(this,a,e,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(a,e):this._applyPreviewTransform(a-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const a=this._previewTemplate,e=this.previewClass,t=a?a.template:null;let s;if(t&&a){const u=a.matchSize?this._initialClientRect:null,d=a.viewContainer.createEmbeddedView(t,a.context);d.detectChanges(),s=iD(d,this._document),this._previewRef=d,a.matchSize?nD(s,u):s.style.transform=GC(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else s=JM(this._rootElement),nD(s,this._initialClientRect),this._initialTransform&&(s.style.transform=this._initialTransform);return Ex(s.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},Rx),Yd(s,!1),s.classList.add("cdk-drag-preview"),s.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(u=>s.classList.add(u)):s.classList.add(e)),s}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const a=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(a.left,a.top);const e=function ak(r){const a=getComputedStyle(r),e=Mx(a,"transition-property"),t=e.find(l=>"transform"===l||"all"===l);if(!t)return 0;const s=e.indexOf(t),u=Mx(a,"transition-duration"),d=Mx(a,"transition-delay");return $M(u[s])+$M(d[s])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{const s=d=>{(!d||Un(d)===this._preview&&"transform"===d.propertyName)&&(this._preview?.removeEventListener("transitionend",s),t(),clearTimeout(u))},u=setTimeout(s,1.5*e);this._preview.addEventListener("transitionend",s)}))}_createPlaceholderElement(){const a=this._placeholderTemplate,e=a?a.template:null;let t;return e?(this._placeholderRef=a.viewContainer.createEmbeddedView(e,a.context),this._placeholderRef.detectChanges(),t=iD(this._placeholderRef,this._document)):t=JM(this._rootElement),t.style.pointerEvents="none",t.classList.add("cdk-drag-placeholder"),t}_getPointerPositionInElement(a,e,t){const s=e===this._rootElement?null:e,u=s?s.getBoundingClientRect():a,d=ff(t)?t.targetTouches[0]:t,l=this._getViewportScrollPosition();return{x:u.left-a.left+(d.pageX-u.left-l.left),y:u.top-a.top+(d.pageY-u.top-l.top)}}_getPointerPositionOnPage(a){const e=this._getViewportScrollPosition(),t=ff(a)?a.touches[0]||a.changedTouches[0]||{pageX:0,pageY:0}:a,s=t.pageX-e.left,u=t.pageY-e.top;if(this._ownerSVGElement){const d=this._ownerSVGElement.getScreenCTM();if(d){const l=this._ownerSVGElement.createSVGPoint();return l.x=s,l.y=u,l.matrixTransform(d.inverse())}}return{x:s,y:u}}_getConstrainedPointerPosition(a){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:t,y:s}=this.constrainPosition?this.constrainPosition(a,this,this._initialClientRect,this._pickupPositionInElement):a;if("x"===this.lockAxis||"x"===e?s=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===e)&&(t=this._pickupPositionOnPage.x),this._boundaryRect){const{x:u,y:d}=this._pickupPositionInElement,l=this._boundaryRect,{width:n,height:i}=this._getPreviewRect(),o=l.top+d,c=l.bottom-(i-d);t=tD(t,l.left+u,l.right-(n-u)),s=tD(s,o,c)}return{x:t,y:s}}_updatePointerDirectionDelta(a){const{x:e,y:t}=a,s=this._pointerDirectionDelta,u=this._pointerPositionAtLastDirectionChange,d=Math.abs(e-u.x),l=Math.abs(t-u.y);return d>this._config.pointerDirectionChangeThreshold&&(s.x=e>u.x?1:-1,u.x=e),l>this._config.pointerDirectionChangeThreshold&&(s.y=t>u.y?1:-1,u.y=t),s}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const a=this._handles.length>0||!this.isDragging();a!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=a,Yd(this._rootElement,a))}_removeRootElementListeners(a){a.removeEventListener("mousedown",this._pointerDown,zC),a.removeEventListener("touchstart",this._pointerDown,eD),a.removeEventListener("dragstart",this._nativeDragStart,zC)}_applyRootElementTransform(a,e){const t=GC(a,e),s=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=s.transform&&"none"!=s.transform?s.transform:""),s.transform=qC(t,this._initialTransform)}_applyPreviewTransform(a,e){const t=this._previewTemplate?.template?void 0:this._initialTransform,s=GC(a,e);this._preview.style.transform=qC(s,t)}_getDragDistance(a){const e=this._pickupPositionOnPage;return e?{x:a.x-e.x,y:a.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:a,y:e}=this._passiveTransform;if(0===a&&0===e||this.isDragging()||!this._boundaryElement)return;const t=this._rootElement.getBoundingClientRect(),s=this._boundaryElement.getBoundingClientRect();if(0===s.width&&0===s.height||0===t.width&&0===t.height)return;const u=s.left-t.left,d=t.right-s.right,l=s.top-t.top,n=t.bottom-s.bottom;s.width>t.width?(u>0&&(a+=u),d>0&&(a-=d)):a=0,s.height>t.height?(l>0&&(e+=l),n>0&&(e-=n)):e=0,(a!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:a})}_getDragStartDelay(a){const e=this.dragStartDelay;return"number"==typeof e?e:ff(a)?e.touch:e?e.mouse:0}_updateOnScroll(a){const e=this._parentPositions.handleScroll(a);if(e){const t=Un(a);this._boundaryRect&&t!==this._boundaryElement&&t.contains(this._boundaryElement)&&pf(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(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=Yc(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(a,e){const t=this._previewContainer||"global";if("parent"===t)return a;if("global"===t){const s=this._document;return e||s.fullscreenElement||s.webkitFullscreenElement||s.mozFullScreenElement||s.msFullscreenElement||s.body}return li(t)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(a){return this._handles.find(e=>a.target&&(a.target===e||e.contains(a.target)))}}function GC(r,a){return`translate3d(${Math.round(r)}px, ${Math.round(a)}px, 0)`}function tD(r,a,e){return Math.max(a,Math.min(e,r))}function ff(r){return"t"===r.type[0]}function iD(r,a){const e=r.rootNodes;if(1===e.length&&e[0].nodeType===a.ELEMENT_NODE)return e[0];const t=a.createElement("div");return e.forEach(s=>t.appendChild(s)),t}function nD(r,a){r.style.width=`${a.width}px`,r.style.height=`${a.height}px`,r.style.transform=GC(a.left,a.top)}function mf(r,a){return Math.max(0,Math.min(a,r))}class dk{constructor(a,e){this._element=a,this._dragDropRegistry=e,this._itemPositions=[],this.orientation="vertical",this._previousSwap={drag:null,delta:0,overlaps:!1}}start(a){this.withItems(a)}sort(a,e,t,s){const u=this._itemPositions,d=this._getItemIndexFromPointerPosition(a,e,t,s);if(-1===d&&u.length>0)return null;const l="horizontal"===this.orientation,n=u.findIndex(w=>w.drag===a),i=u[d],c=i.clientRect,p=n>d?1:-1,m=this._getItemOffsetPx(u[n].clientRect,c,p),g=this._getSiblingOffsetPx(n,u,p),f=u.slice();return function ck(r,a,e){const t=mf(a,r.length-1),s=mf(e,r.length-1);if(t===s)return;const u=r[t],d=s{if(f[R]===w)return;const J=w.drag===a,Se=J?m:g,at=J?a.getPlaceholderElement():w.drag.getRootElement();w.offset+=Se,l?(at.style.transform=qC(`translate3d(${Math.round(w.offset)}px, 0, 0)`,w.initialTransform),pf(w.clientRect,0,Se)):(at.style.transform=qC(`translate3d(0, ${Math.round(w.offset)}px, 0)`,w.initialTransform),pf(w.clientRect,Se,0))}),this._previousSwap.overlaps=Hx(c,e,t),this._previousSwap.drag=i.drag,this._previousSwap.delta=l?s.x:s.y,{previousIndex:n,currentIndex:d}}enter(a,e,t,s){const u=null==s||s<0?this._getItemIndexFromPointerPosition(a,e,t):s,d=this._activeDraggables,l=d.indexOf(a),n=a.getPlaceholderElement();let i=d[u];if(i===a&&(i=d[u+1]),!i&&(null==u||-1===u||u-1&&d.splice(l,1),i&&!this._dragDropRegistry.isDragging(i)){const o=i.getRootElement();o.parentElement.insertBefore(n,o),d.splice(u,0,a)}else li(this._element).appendChild(n),d.push(a);n.style.transform="",this._cacheItemPositions()}withItems(a){this._activeDraggables=a.slice(),this._cacheItemPositions()}withSortPredicate(a){this._sortPredicate=a}reset(){this._activeDraggables.forEach(a=>{const e=a.getRootElement();if(e){const t=this._itemPositions.find(s=>s.drag===a)?.initialTransform;e.style.transform=t||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(a){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(t=>t.drag===a)}updateOnScroll(a,e){this._itemPositions.forEach(({clientRect:t})=>{pf(t,a,e)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()})}_cacheItemPositions(){const a="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(e=>{const t=e.getVisibleElement();return{drag:e,offset:0,initialTransform:t.style.transform||"",clientRect:Dx(t)}}).sort((e,t)=>a?e.clientRect.left-t.clientRect.left:e.clientRect.top-t.clientRect.top)}_getItemOffsetPx(a,e,t){const s="horizontal"===this.orientation;let u=s?e.left-a.left:e.top-a.top;return-1===t&&(u+=s?e.width-a.width:e.height-a.height),u}_getSiblingOffsetPx(a,e,t){const s="horizontal"===this.orientation,u=e[a].clientRect,d=e[a+-1*t];let l=u[s?"width":"height"]*t;if(d){const n=s?"left":"top",i=s?"right":"bottom";-1===t?l-=d.clientRect[n]-u[i]:l+=u[n]-d.clientRect[i]}return l}_shouldEnterAsFirstChild(a,e){if(!this._activeDraggables.length)return!1;const t=this._itemPositions,s="horizontal"===this.orientation;if(t[0].drag!==this._activeDraggables[0]){const d=t[t.length-1].clientRect;return s?a>=d.right:e>=d.bottom}{const d=t[0].clientRect;return s?a<=d.left:e<=d.top}}_getItemIndexFromPointerPosition(a,e,t,s){const u="horizontal"===this.orientation,d=this._itemPositions.findIndex(({drag:l,clientRect:n})=>{if(l===a)return!1;if(s){const i=u?s.x:s.y;if(l===this._previousSwap.drag&&this._previousSwap.overlaps&&i===this._previousSwap.delta)return!1}return u?e>=Math.floor(n.left)&&e=Math.floor(n.top)&&t!0,this.sortPredicate=()=>!0,this.beforeStarted=new He.x,this.entered=new He.x,this.exited=new He.x,this.dropped=new He.x,this.sorted=new He.x,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=Yt.w0.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new He.x,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function rk(r=0,a=Tl.z){return r<0&&(r=0),(0,qg.H)(r,r,a)}(0,vh).pipe(gt(this._stopScrollTimers)).subscribe(()=>{const d=this._scrollNode,l=this.autoScrollStep;1===this._verticalScrollDirection?d.scrollBy(0,-l):2===this._verticalScrollDirection&&d.scrollBy(0,l),1===this._horizontalScrollDirection?d.scrollBy(-l,0):2===this._horizontalScrollDirection&&d.scrollBy(l,0)})},this.element=li(a),this._document=t,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new QM(t),this._sortStrategy=new dk(this.element,e),this._sortStrategy.withSortPredicate((d,l)=>this.sortPredicate(d,l,this))}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(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(a,e,t,s){this._draggingStarted(),null==s&&this.sortingDisabled&&(s=this._draggables.indexOf(a)),this._sortStrategy.enter(a,e,t,s),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:a,container:this,currentIndex:this.getItemIndex(a)})}exit(a){this._reset(),this.exited.next({item:a,container:this})}drop(a,e,t,s,u,d,l,n={}){this._reset(),this.dropped.next({item:a,currentIndex:e,previousIndex:t,container:this,previousContainer:s,isPointerOverContainer:u,distance:d,dropPoint:l,event:n})}withItems(a){const e=this._draggables;return this._draggables=a,a.forEach(t=>t._withDropContainer(this)),this.isDragging()&&(e.filter(s=>s.isDragging()).every(s=>-1===a.indexOf(s))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(a){return this._sortStrategy.direction=a,this}connectedTo(a){return this._siblings=a.slice(),this}withOrientation(a){return this._sortStrategy.orientation=a,this}withScrollableParents(a){const e=li(this.element);return this._scrollableElements=-1===a.indexOf(e)?[e,...a]:a.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(a){return this._isDragging?this._sortStrategy.getItemIndex(a):this._draggables.indexOf(a)}isReceiving(){return this._activeSiblings.size>0}_sortItem(a,e,t,s){if(this.sortingDisabled||!this._clientRect||!YM(this._clientRect,.05,e,t))return;const u=this._sortStrategy.sort(a,e,t,s);u&&this.sorted.next({previousIndex:u.previousIndex,currentIndex:u.currentIndex,container:this,item:a})}_startScrollingIfNecessary(a,e){if(this.autoScrollDisabled)return;let t,s=0,u=0;if(this._parentPositions.positions.forEach((d,l)=>{l===this._document||!d.clientRect||t||YM(d.clientRect,.05,a,e)&&([s,u]=function hk(r,a,e,t){const s=oD(a,t),u=sD(a,e);let d=0,l=0;if(s){const n=r.scrollTop;1===s?n>0&&(d=1):r.scrollHeight-n>r.clientHeight&&(d=2)}if(u){const n=r.scrollLeft;1===u?n>0&&(l=1):r.scrollWidth-n>r.clientWidth&&(l=2)}return[d,l]}(l,d.clientRect,a,e),(s||u)&&(t=l))}),!s&&!u){const{width:d,height:l}=this._viewportRuler.getViewportSize(),n={width:d,height:l,top:0,right:d,bottom:l,left:0};s=oD(n,e),u=sD(n,a),t=window}t&&(s!==this._verticalScrollDirection||u!==this._horizontalScrollDirection||t!==this._scrollNode)&&(this._verticalScrollDirection=s,this._horizontalScrollDirection=u,this._scrollNode=t,(s||u)&&t?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const a=li(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=a.msScrollSnapType||a.scrollSnapType||"",a.scrollSnapType=a.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const a=li(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(a).clientRect}_reset(){this._isDragging=!1;const a=li(this.element).style;a.scrollSnapType=a.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(e=>e._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(a,e){return null!=this._clientRect&&Hx(this._clientRect,a,e)}_getSiblingContainerFromPosition(a,e,t){return this._siblings.find(s=>s._canReceive(a,e,t))}_canReceive(a,e,t){if(!this._clientRect||!Hx(this._clientRect,e,t)||!this.enterPredicate(a,this))return!1;const s=this._getShadowRoot().elementFromPoint(e,t);if(!s)return!1;const u=li(this.element);return s===u||u.contains(s)}_startReceiving(a,e){const t=this._activeSiblings;!t.has(a)&&e.every(s=>this.enterPredicate(s,this)||this._draggables.indexOf(s)>-1)&&(t.add(a),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(a){this._activeSiblings.delete(a),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(a=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(a);e&&this._sortStrategy.updateOnScroll(e.top,e.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const a=Yc(li(this.element));this._cachedShadowRoot=a||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const a=this._sortStrategy.getActiveItemsSnapshot().filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,a))}}function oD(r,a){const{top:e,bottom:t,height:s}=r,u=.05*s;return a>=e-u&&a<=e+u?1:a>=t-u&&a<=t+u?2:0}function sD(r,a){const{left:e,right:t,width:s}=r,u=.05*s;return a>=e-u&&a<=e+u?1:a>=t-u&&a<=t+u?2:0}const WC=ur({passive:!1,capture:!0});let pk=(()=>{class r{constructor(e,t){this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=s=>s.isDragging(),this.pointerMove=new He.x,this.pointerUp=new He.x,this.scroll=new He.x,this._preventDefaultWhileDragging=s=>{this._activeDragInstances.length>0&&s.preventDefault()},this._persistentTouchmoveListener=s=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&s.preventDefault(),this.pointerMove.next(s))},this._document=t}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,WC)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,WC)}startDragging(e,t){if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){const s=t.type.startsWith("touch");this._globalListeners.set(s?"touchend":"mouseup",{handler:u=>this.pointerUp.next(u),options:!0}).set("scroll",{handler:u=>this.scroll.next(u),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:WC}),s||this._globalListeners.set("mousemove",{handler:u=>this.pointerMove.next(u),options:WC}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((u,d)=>{this._document.addEventListener(d,u.handler,u.options)})})}}stopDragging(e){const t=this._activeDragInstances.indexOf(e);t>-1&&(this._activeDragInstances.splice(t,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(e){return this._activeDragInstances.indexOf(e)>-1}scrolled(e){const t=[this.scroll];return e&&e!==this._document&&t.push(new ai.y(s=>this._ngZone.runOutsideAngular(()=>{const d=l=>{this._activeDragInstances.length&&s.next(l)};return e.addEventListener("scroll",d,!0),()=>{e.removeEventListener("scroll",d,!0)}}))),(0,an.T)(...t)}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((e,t)=>{this._document.removeEventListener(t,e.handler,e.options)}),this._globalListeners.clear()}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(h.R0b),h.LFG(M.K0))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const fk={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let mk=(()=>{class r{constructor(e,t,s,u){this._document=e,this._ngZone=t,this._viewportRuler=s,this._dragDropRegistry=u}createDrag(e,t=fk){return new lk(e,t,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new uk(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(M.K0),h.LFG(h.R0b),h.LFG(ts),h.LFG(pk))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),gk=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({providers:[mk],imports:[Vr]}),r})();function _k(r,a){if(1&r&&(h.TgZ(0,"div",5)(1,"mat-icon"),h._uU(2),h.qZA()()),2&r){const e=h.oxw();h.xp6(2),h.Oqu(e.data.icon)}}function bk(r,a){if(1&r&&(h.TgZ(0,"div",6),h._uU(1),h.qZA()),2&r){const e=h.oxw();h.xp6(1),h.hij(" ",e.showTimestamp()," ")}}let Ck=(()=>{class r{constructor(e,t){this.dialog=e,this.notificationStorageService=t,this.newNotification=!1,this.closeNotification=new h.vpe,this.alreadyPressed=!1,this.alreadyClosed=!1,this.waiting=!1}doAction(){if(this.newNotification&&(this.alreadyPressed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,void 0!==this.data.action)this.data.action();else{const e=on();e.width="550px",e.data=this.data,e.autoFocus=!1,this.dialog.open(tR,e).afterClosed().subscribe(()=>{this.closeSelf()})}}closeSelf(){this.inDialog||(this.newNotification&&(this.alreadyClosed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,this.closeNotification.emit())}ngOnInit(){!function TA(r,a){hp.apply(this,arguments)}(this.data.delay,()=>{!this.alreadyClosed&&!this.waiting&&this.closeSelf()})}showTimestamp(){const[e,t]=this.data.timeStamp.split(":");return t.length<2?e+":0"+t:this.data.timeStamp}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(Cn),h.Y36(Gl))},r.\u0275cmp=h.Xpm({type:r,selectors:[["perun-web-apps-notification"]],inputs:{data:"data",inDialog:"inDialog",newNotification:"newNotification"},outputs:{closeNotification:"closeNotification"},decls:9,vars:14,consts:[[1,"notification-container",3,"click"],["class","notification-icon",4,"ngIf"],["data-cy","notification-message",1,"notification-text","clickable"],["class","ml-auto mr-5 mt-auto mb-auto",4,"ngIf"],[1,"notification-action","mt-auto","mb-auto",3,"hidden","click"],[1,"notification-icon"],[1,"ml-auto","mr-5","mt-auto","mb-auto"]],template:function(e,t){1&e&&(h.TgZ(0,"div")(1,"div",0),h.NdJ("click",function(){return t.alreadyClosed||t.waiting?"":t.closeSelf()}),h.YNc(2,_k,3,1,"div",1),h.TgZ(3,"div",2),h._uU(4),h.ALo(5,"translate"),h.qZA(),h.YNc(6,bk,2,1,"div",3),h.TgZ(7,"div",4),h.NdJ("click",function(){return t.waiting=!0,t.doAction()}),h._uU(8),h.qZA()()()),2&e&&(h.Gre("notification ",t.inDialog?"":"mat-elevation-z7",""),h.ekj("error","error"===t.data.type)("success","success"===t.data.type),h.xp6(2),h.Q6J("ngIf",null!==t.data.icon),h.xp6(2),h.hij(" ",h.lcZ(5,12,t.data.title)," "),h.xp6(2),h.Q6J("ngIf",t.inDialog),h.xp6(1),h.Q6J("hidden",t.alreadyPressed),h.xp6(1),h.hij(" ",t.data.actionText," "))},dependencies:[M.O5,Yn,yt],styles:[".notification[_ngcontent-%COMP%]{width:450px;margin-bottom:16px;display:flex;flex-direction:row;justify-content:space-between;color:#fff}.notification-container[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:row;padding:16px}.notification-text[_ngcontent-%COMP%]{font-size:1.1em}.notification-action[_ngcontent-%COMP%]{margin-left:auto;text-decoration:underline;cursor:pointer}@media (max-width: 768px){.notification[_ngcontent-%COMP%]{width:100%}}.notification.error[_ngcontent-%COMP%]{background-color:#d32f2f}.notification.success[_ngcontent-%COMP%]{background-color:#288619}.notification-icon[_ngcontent-%COMP%]{padding-right:8px;color:#fff}"]}),r})(),wk=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({}),r})(),Sk=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({}),r})(),Ik=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({imports:[Sk,Ye,Ye]}),r})(),Bk=(()=>{class r{constructor(){this.changes=new He.x,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 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(e,t){return`${e} \u2013 ${t}`}formatYearRangeLabel(e,t){return`${e} to ${t}`}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const Wk={provide:new h.OlP("mat-datepicker-scroll-strategy"),deps:[_n],useFactory:function Gk(r){return()=>r.scrollStrategies.reposition()}};let Bx=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({providers:[Bk,Wk],imports:[M.ez,vi,Xa,$a,Or,Ye,Vr]}),r})(),cV=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({imports:[En,Ye,Ye]}),r})();new h.OlP("mat-selectsearch-default-options");let fV=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({imports:[[M.ez,y,vi,NC,Ur,lC,jl]]}),r})(),fD=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({imports:[Ye,Ye]}),r})(),mV=(()=>{class r{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(e){this._vertical=ze(e)}get inset(){return this._inset}set inset(e){this._inset=ze(e)}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275cmp=h.Xpm({type:r,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(e,t){2&e&&(h.uIk("aria-orientation",t.vertical?"vertical":"horizontal"),h.ekj("mat-divider-vertical",t.vertical)("mat-divider-horizontal",!t.vertical)("mat-divider-inset",t.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(e,t){},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}"],encapsulation:2,changeDetection:0}),r})(),Ox=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({imports:[Ye,Ye]}),r})(),gV=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({}),r})(),gD=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({imports:[M.ez,Ye,gV,Or]}),r})(),bD=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({imports:[Ya,Ye,Ya,Ye]}),r})(),CV=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({imports:[wl]}),r})(),Lx=(()=>{class r{constructor(){this.changes=new He.x,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const HV={provide:Lx,deps:[[new h.FiY,new h.tp0,Lx]],useFactory:function DV(r){return r||new Lx}};let vD=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({providers:[HV,ha],imports:[Ye,M.ez,Or,vi,CV,Ur,En,Ye]}),r})(),AD=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({imports:[M.ez,Ye,Vr,Vr,Ye]}),r})(),SD=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({imports:[Ya,En,Ye,bh,M.ez,Ya,Ye,bh,Ox]}),r})(),QV=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({imports:[M.ez,Ye,Or,En,pl,$a,Ye]}),r})(),TD=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({}),r})(),ED=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({imports:[TD,En,Ye,pl,TD,Ye]}),r})(),jx=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({imports:[M.ez,fD,Ox,gD,vi,bD,NC,Ur,AC,Nl,lC,to,br,Gi,C,y,vD,Bx,Eg,AD,SD,Fr,eM,Ax,_a,jl,us,En,AC,ED,Tx,fD,Ox,gD,vi,bD,NC,Ur,AC,Nl,lC,to,br,Gi,C,y,vD,Bx,Eg,AD,SD,Fr,eM,Ax,_a,jl,us,En,QV,ED,Tx]}),r})(),lB=(()=>{class r extends rd{format(e,t){return"input"===t?`${e.getDate().toString()}.${(e.getMonth()+1).toString()}.${e.getFullYear()}`:e.toDateString()}}return r.\u0275fac=function(){let a;return function(t){return(a||(a=h.n5z(r)))(t||r)}}(),r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac}),r})();const cB={parse:{dateInput:{month:"short",year:"numeric",day:"numeric"}},display:{dateInput:"input",monthYearLabel:{year:"numeric",month:"numeric"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let MD=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({providers:[{provide:Nn,useClass:lB},{provide:qn,useValue:cB}],imports:[M.ez,NC,AC,C,Tx,gk,Da,Gc,Ax,_a,lC,xx,Ur,Fr,vi,jl,to,y,br,En,zE,wk,Ik,Bx,cV,Ch,us,fV,Gi,Nl,ib,jx,pP]}),r})();h.B6R(XE,[M.O5,zl,ji,fv,bv,_v,Nr,_r,Ck],[yt,V0]),new Date(324721404e5).valueOf();let RO=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({imports:[M.ez,vi,Ur,Gc,MD,Da,to,y,br,xx]}),r})(),PO=(()=>{class r{constructor(e,t){this.auth=e,this.router=t}ngOnInit(){(this.auth.isLoggedIn()||sessionStorage.getItem("baPrincipal"))&&this.router.navigate([""],{queryParamsHandling:"merge"})}startAuth(){this.auth.startAuthentication()}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(Wr),h.Y36(yi))},r.\u0275cmp=h.Xpm({type:r,selectors:[["perun-web-apps-login-screen"]],decls:11,vars:6,consts:[[1,"container","login-con"],[1,"row"],[1,"ml-auto","mr-auto","d-flex","flex-column","align-items-center"],[1,"mb-3"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(h.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h4",3),h._uU(4),h.ALo(5,"translate"),h.qZA(),h.TgZ(6,"button",4),h.NdJ("click",function(){return t.startAuth()}),h._uU(7),h.ALo(8,"translate"),h.TgZ(9,"mat-icon"),h._uU(10," login "),h.qZA()()()()()),2&e&&(h.xp6(4),h.hij(" ",h.lcZ(5,2,"SHARED_LIB.PERUN.LOGIN.TEXT")," "),h.xp6(3),h.hij(" ",h.lcZ(8,4,"SHARED_LIB.PERUN.LOGIN.SIGN_IN")," "))},dependencies:[ji,Yn,yt],styles:[".login-con[_ngcontent-%COMP%]{padding:120px 0}"]}),r})();const IO=new h.OlP("perun-api-service");class kO{constructor(a,e="/assets/i18n/",t=".json"){this.http=a,this.prefix=e,this.suffix=t}getTranslation(a){return this.http.get(`${this.prefix}${a}${this.suffix}`)}}let VO=(()=>{class r{constructor(e,t,s,u,d){this.http=e,this.storeService=t,this.authzSevice=s,this.titleService=u,this.utilsService=d}initializeColors(e,t){return new Promise(s=>{t.forEach(u=>{const d=this.storeService.getProperty("theme")[u.configValue];document.documentElement.style.setProperty(u.cssVariable,d)}),e.forEach(u=>{const d=this.storeService.getProperty("theme")[u.configValue];document.documentElement.style.setProperty(u.cssVariable,d),this.setEntityTheme(u.entity,d)}),s()})}setEntityTheme(e,t){const s=function BO(r){return[Hn(tinycolor(r).lighten(52),"50"),Hn(tinycolor(r).lighten(37),"100"),Hn(tinycolor(r).lighten(26),"200"),Hn(tinycolor(r).lighten(12),"300"),Hn(tinycolor(r).lighten(6),"400"),Hn(tinycolor(r),"500"),Hn(tinycolor(r).darken(6),"600"),Hn(tinycolor(r).darken(12),"700"),Hn(tinycolor(r).darken(18),"800"),Hn(tinycolor(r).darken(24),"900"),Hn(tinycolor(r).lighten(50).saturate(30),"A100"),Hn(tinycolor(r).lighten(30).saturate(30),"A200"),Hn(tinycolor(r).lighten(10).saturate(15),"A400"),Hn(tinycolor(r).lighten(5).saturate(5),"A700")]}(t);for(const u of s){const n=`--${e}-theme-primary-contrast-${u.name}`,i=u.darkContrast?"30,30,30":"255,255,255";document.documentElement.style.setProperty(`--${e}-theme-primary-${u.name}`,`${u.red},${u.green},${u.blue}`),document.documentElement.style.setProperty(n,i)}}loadAppDefaultConfig(){return new Promise(e=>{this.http.get("/assets/config/defaultConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{this.storeService.setDefaultConfig(t),e()})})}loadAppInstanceConfig(){return new Promise(e=>{this.http.get("/assets/config/instanceConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{this.storeService.setInstanceConfig(t);const s=document.location.hostname;t?.brandings?.[s]&&this.storeService.setBanding(s),e()},()=>{e()})})}getNoCacheHeaders(){return new v.WM({CacheControl:"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"})}setInstanceFavicon(){return new Promise(e=>{const t=document.querySelector("link[rel*='icon']")||document.createElement("link");t.type="image/x-icon",t.rel="shortcut icon",t.href=this.storeService.getProperty("instance_favicon")?"./assets/config/instanceFavicon.ico":"./assets/img/perun.ico",document.getElementsByTagName("head")[0].appendChild(t),e()})}setApiUrl(){return new Promise(e=>{let t=this.storeService.getProperty("api_url");("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal")||this.storeService.getProperty("auto_service_access_redirect"))&&(t=t.replace("oauth","ba")),this.authzSevice.configuration.basePath=t,this.titleService.setTitle(this.storeService.getProperty("document_title").en),e()})}loadAppsConfig(){return new Promise((e,t)=>{this.utilsService.getAppsConfig().subscribe(s=>{this.storeService.setAppsConfig(s),e()},s=>t(s))})}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(v.eN),h.LFG(gi),h.LFG(Is),h.LFG(X),h.LFG(Ei))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();function Hn(r,a){const e=tinycolor(r),t=e.toRgb();return{name:a,hex:e.toHexString(),darkContrast:e.isLight(),red:t.r,green:t.g,blue:t.b}}let OO=(()=>{class r{constructor(e,t,s,u){this.initAuthService=e,this.appConfigService=t,this.location=s,this.mfaHandlerService=u}loadConfigs(){return this.appConfigService.loadAppDefaultConfig().then(()=>this.appConfigService.loadAppInstanceConfig()).then(()=>this.appConfigService.setApiUrl()).then(()=>this.initAuthService.verifyAuth()).catch(e=>{throw this.mfaHandlerService.catchNoMfaTokenError(e?.params?.error),console.error(e),this.location.go("/"),location.reload(),e}).then(e=>e?(this.mfaHandlerService.closeMfaWindow(),this.initAuthService.simpleLoadPrincipal().then(()=>this.appConfigService.loadAppsConfig())):this.initAuthService.handleAuthStart())}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(Cs),h.LFG(VO),h.LFG(M.Ye),h.LFG(Cp))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),LO=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({providers:[VH],imports:[M.ez,jx,Da,zE]}),r})(),jO=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275cmp=h.Xpm({type:r,selectors:[["perun-web-apps-focus-on-linker-dialog"]],decls:9,vars:6,consts:[[1,"text-center","custom-dialog"],[1,"align-text-bottom"]],template:function(e,t){1&e&&(h.TgZ(0,"div",0)(1,"div")(2,"mat-icon",1),h._uU(3," info "),h.qZA(),h._uU(4),h.ALo(5,"translate"),h.qZA(),h.TgZ(6,"div"),h._uU(7),h.ALo(8,"translate"),h.qZA()()),2&e&&(h.xp6(4),h.hij(" ",h.lcZ(5,2,"SHARED_LIB.CONSOLIDATOR.FOCUS_ON_LINKER.MODAL")," "),h.xp6(3),h.hij(" ",h.lcZ(8,4,"SHARED_LIB.CONSOLIDATOR.FOCUS_ON_LINKER.MODAL_WARNING")," "))},dependencies:[Yn,yt],styles:[".custom-dialog[_ngcontent-%COMP%]{background-color:#000;color:#fffffff2;font-size:1.2rem}"]}),r})(),FO=(()=>{class r{constructor(e,t,s,u){this.otherApplicationsService=e,this.storeService=t,this.oauthService=s,this.dialog=u}openLinkerWindow(e,t){let s=this.otherApplicationsService.getUrlForOtherApplication(Yr.Linker);this.storeService.getProperty("use_localhost_linker_url")&&(s="http://localhost:4201/");let u=s+"?formerToken="+this.oauthService.getAccessToken();t&&0!==t.length&&(u+="&idphint="+t.toString());const n=window.top,c=window.open(u,"_blank",`width=600,height=600,top=${n.outerHeight/2+n.screenY-300}, left=${n.outerWidth/2+n.screenX-300}`);let p;if(c){const g=on();g.width="450px",g.panelClass="noBorderDialog",p=this.dialog.open(jO,g)}window.addEventListener("message",g=>{sessionStorage.setItem("linkedResult",g.data)});const m=setInterval(()=>{if(c.closed){clearInterval(m),p.close();const g=sessionStorage.getItem("linkedResult");sessionStorage.removeItem("linkedResult"),e(g)}},1e3)}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(Tb),h.LFG(gi),h.LFG(Gr.Ct),h.LFG(Cn))},r.\u0275prov=h.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),kD=(()=>{class r{}return r.MEMBER_DEF_EXPIRATION="urn:perun:member:attribute-def:def:membershipExpiration",r.MEMBER_DEF_GROUP_EXPIRATION="urn:perun:member_group:attribute-def:def:groupMembershipExpiration",r.MEMBER_GROUP_STATUS="urn:perun:member_group:attribute-def:virt:groupStatus",r.MEMBER_GROUP_STATUS_INDIRECT="urn:perun:member_group:attribute-def:virt:groupStatusIndirect",r.MEMBER_DEF_ORGANIZATION="urn:perun:member:attribute-def:def:organization",r.MEMBER_DEF_MAIL="urn:perun:member:attribute-def:def:mail",r.MEMBER_CORE_ID="urn:perun:member:attribute-def:core:id",r.MEMBER_LIFECYCLE_ALTERABLE="urn:perun:member:attribute-def:virt:isLifecycleAlterable",r.VO_DEF_EXPIRATION_RULES="urn:perun:vo:attribute-def:def:membershipExpirationRules",r.VO_DEF_MAIL_FOOTER="urn:perun:vo:attribute-def:def:mailFooter",r.VO_DEF_MAIL_HTML_FOOTER="urn:perun:vo:attribute-def:def:htmlMailFooter",r.VO_BLOCK_MANUAL_MEMBER_ADDING="urn:perun:vo:attribute-def:def:blockManualMemberAdding",r.USER_DEF_ORGANIZATION="urn:perun:user:attribute-def:def:organization",r.USER_DEF_PREFERRED_MAIL="urn:perun:user:attribute-def:def:preferredMail",r.USER_DEF_CERTIFICATES="urn:perun:user:attribute-def:def:userCertificates",r.GROUP_DEF_EXPIRATION_RULES="urn:perun:group:attribute-def:def:groupMembershipExpirationRules",r.GROUP_DEF_MAIL_FOOTER="urn:perun:group:attribute-def:def:mailFooter",r.GROUP_DEF_MAIL_HTML_FOOTER="urn:perun:group:attribute-def:def:htmlMailFooter",r.GROUP_SYNC_ENABLED="urn:perun:group:attribute-def:def:synchronizationEnabled",r.GROUP_LAST_SYNC_STATE="urn:perun:group:attribute-def:def:lastSynchronizationState",r.GROUP_LAST_SYNC_TIMESTAMP="urn:perun:group:attribute-def:def:lastSynchronizationTimestamp",r.GROUP_STRUCTURE_SYNC_ENABLED="urn:perun:group:attribute-def:def:groupStructureSynchronizationEnabled",r.GROUP_LAST_STRUCTURE_SYNC_STATE="urn:perun:group:attribute-def:def:lastGroupStructureSynchronizationState",r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP="urn:perun:group:attribute-def:def:lastGroupStructureSynchronizationTimestamp",r.GROUP_SYNC_INTERVAL="urn:perun:group:attribute-def:def:synchronizationInterval",r.GROUP_BLOCK_MANUAL_MEMBER_ADDING="urn:perun:group:attribute-def:def:blockManualMemberAdding",r.UES_DEF_MAIL="urn:perun:ues:attribute-def:def:mail",r.UES_DEF_ORGANIZATION="urn:perun:ues:attribute-def:def:o",r.UES_SOURCE_IDP_NAME="urn:perun:ues:attribute-def:def:sourceIdPName",r.UES_IDP_ORGANIZATION_NAME="urn:perun:ues:attribute-def:def:IdPOrganizationName",r})();function UO(r,a){1&r&&h._UZ(0,"mat-spinner",2)}function NO(r,a){1&r&&(h.TgZ(0,"span",17),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&r&&(h.xp6(1),h.Oqu(h.lcZ(2,1,"LIST_OF_IDENTITIES.SIGN_NOT_KNOW")))}function qO(r,a){1&r&&(h.TgZ(0,"span",17),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&r&&(h.xp6(1),h.Oqu(h.lcZ(2,1,"LIST_OF_IDENTITIES.SIGN_KNOW")))}function zO(r,a){if(1&r&&h._UZ(0,"img",18),2&r){const e=h.oxw(2);h.s9C("src",e.logo,h.LSH),h.Q6J("height",e.height)("width",e.width)}}function GO(r,a){1&r&&h._UZ(0,"mat-icon",19)}function WO(r,a){1&r&&h._UZ(0,"mat-icon",20)}function $O(r,a){1&r&&h._UZ(0,"th",21)}function YO(r,a){if(1&r&&(h.TgZ(0,"td",22),h._uU(1),h.qZA()),2&r){const e=a.$implicit;h.xp6(1),h.hij(" ",e.name,": ")}}function QO(r,a){1&r&&h._UZ(0,"th",21)}function JO(r,a){if(1&r&&(h.TgZ(0,"span"),h._uU(1),h.qZA()),2&r){const e=h.oxw().$implicit;h.xp6(1),h.Oqu(e.value)}}function KO(r,a){if(1&r){const e=h.EpF();h.TgZ(0,"span"),h._uU(1),h.TgZ(2,"span",25),h.ALo(3,"translate"),h.TgZ(4,"button",26),h.NdJ("click",function(){const u=h.CHM(e).$implicit,d=h.oxw(4);return h.KtG(d.openDeleteDialog(u))}),h.TgZ(5,"mat-icon"),h._uU(6,"clear"),h.qZA()()(),h._UZ(7,"br"),h.qZA()}if(2&r){const e=a.$implicit,t=h.oxw(4);h.xp6(1),h.hij(" ",e," "),h.xp6(1),h.Q6J("matTooltip",h.lcZ(3,4,"LIST_OF_IDENTITIES.DELETE_DISABLED_TOOLTIP"))("matTooltipDisabled",!e.includes(t.idpProvider)),h.xp6(2),h.Q6J("disabled",e.includes(t.idpProvider))}}function ZO(r,a){if(1&r&&(h.TgZ(0,"span"),h.YNc(1,KO,8,6,"span",24),h.qZA()),2&r){const e=h.oxw().$implicit;h.xp6(1),h.Q6J("ngForOf",e.value)}}function XO(r,a){if(1&r&&(h.TgZ(0,"td",23),h.YNc(1,JO,2,1,"span",1),h.YNc(2,ZO,2,1,"span",1),h.qZA()),2&r){const e=a.$implicit;h.xp6(1),h.Q6J("ngIf","Linked accounts"!==e.name),h.xp6(1),h.Q6J("ngIf","Linked accounts"===e.name)}}function eL(r,a){1&r&&h._UZ(0,"tr",27)}const tL=function(){return["name","value"]};function iL(r,a){if(1&r&&(h.TgZ(0,"div"),h.YNc(1,NO,3,3,"span",3),h.YNc(2,qO,3,3,"span",3),h.TgZ(3,"div",4)(4,"div",5),h.YNc(5,zO,1,3,"img",6),h.YNc(6,GO,1,0,"mat-icon",7),h.YNc(7,WO,1,0,"mat-icon",8),h.qZA(),h.TgZ(8,"div")(9,"h2",9),h._uU(10),h.qZA(),h._UZ(11,"mat-divider"),h.TgZ(12,"table",10),h.ynx(13,11),h.YNc(14,$O,1,0,"th",12),h.YNc(15,YO,2,1,"td",13),h.BQk(),h.ynx(16,14),h.YNc(17,QO,1,0,"th",12),h.YNc(18,XO,3,2,"td",15),h.BQk(),h.YNc(19,eL,1,0,"tr",16),h.qZA()()()()),2&r){const e=h.oxw();h.xp6(1),h.Q6J("ngIf",e.unknownIdentity),h.xp6(1),h.Q6J("ngIf",!e.unknownIdentity),h.xp6(3),h.Q6J("ngIf",e.logo),h.xp6(1),h.Q6J("ngIf",!e.logo&&!e.unknownIdentity),h.xp6(1),h.Q6J("ngIf",!e.logo&&e.unknownIdentity),h.xp6(3),h.Oqu(e.idpProvider),h.xp6(2),h.Q6J("dataSource",e.dataSource),h.xp6(7),h.Q6J("matRowDefColumns",h.DdM(8,tL))}}let nL=(()=>{class r{constructor(e,t,s,u,d){this.oauthService=e,this.userService=t,this.storeService=s,this.initService=u,this.dialog=d,this.idpProvider="",this.dataSource=new xC,this.info=[],this.loading=!1}ngOnInit(){this.loading=!0,this.initProfileAndPrincipal()}ngOnChanges(){0!==this.reloadData&&(this.info=[],this.initProfileAndPrincipal())}initProfileAndPrincipal(){this.oauthService.loadUserProfile().then(e=>{this.setIdpInfo(e),this.initService.simpleLoadPrincipal().then(()=>{this.userId=this.storeService.getPerunPrincipal().userId,this.unknownIdentity=-1===this.userId,this.reloadAccounts()})})}reloadAccounts(){if(this.loading=!0,this.unknownIdentity)this.dataSource=new xC(this.info),this.loading=!1;else{const e=[];this.userService.getRichUserExtSources(this.userId).subscribe(t=>{this.userExtSources=t,t.forEach(s=>{if(0!==s.attributes.length){const u=pp(s.attributes,kD.UES_SOURCE_IDP_NAME),d=pp(s.attributes,kD.UES_DEF_MAIL);u?.value&&e.push(`${u.value}${d?.value?" ("+d.value+")":""}`)}}),0!==this.info.length&&(this.info=this.info.filter(s=>"Linked accounts"!==s.name)),this.info.push({name:"Linked accounts",value:e}),this.dataSource=new xC(this.info),this.loading=!1})}}setIdpInfo(e){const t=this.getUserName(e);null!=t&&""!==t&&this.info.push({name:"Name",value:t});const s=this.getUserLogin(e);null!=s&&""!==s&&this.info.push({name:"Login",value:s}),e.info.email&&this.info.push({name:"Email",value:e.info.email}),this.idpProvider=this.getNestedItem(e,this.storeService.getProperty("path_to_idp_provider_userinfo")),this.logo=this.getNestedItem(e,this.storeService.getProperty("path_to_idp_logo_userinfo")),this.width=this.getNestedItem(e,this.storeService.getProperty("path_to_idp_logo_width_userinfo")),this.height=this.getNestedItem(e,this.storeService.getProperty("path_to_idp_logo_height_userinfo"))}getNestedItem(e,t){let s=e.info;for(const u of t)s=s[u],Array.isArray(s)&&(s=s[0]);return String(s)}getUserName(e){const t=e.info.name;if(t&&""!==t)return t;const s=e.info.given_name,u=e.info.family_name;return s&&u?s+" "+u:""}getUserLogin(e){const t=e.info.preferred_username;if(t&&""!==t)return t;const s=e.info.nickname;return s&&""!==s?s:""}openDeleteDialog(e){const t=[];this.userExtSources.filter(d=>d.attributes.forEach(l=>{"sourceIdPName"===l.baseFriendlyName&&e.includes(l.value)&&t.push(d)}));const s=on();s.width="450px",s.data={theme:"user-theme",userId:this.userId,extSources:t},this.dialog.open(VR,s).afterClosed().subscribe(d=>{d&&this.reloadAccounts()})}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(Gr.Ct),h.Y36(Bs),h.Y36(gi),h.Y36(Cs),h.Y36(Cn))},r.\u0275cmp=h.Xpm({type:r,selectors:[["perun-web-apps-list-of-identities"]],inputs:{reloadData:"reloadData"},features:[h.TTD],decls:3,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],["class","mt-n3",4,"ngIf"],[1,"identity-flexbox"],[1,"d-flex","align-items-center","justify-content-center"],["class","logo text-center",3,"height","width","src",4,"ngIf"],["svgIcon","perun-verify-grey","class","perun-icon perun-icon-identity",4,"ngIf"],["svgIcon","perun-info-grey","class","perun-icon perun-icon-identity",4,"ngIf"],[1,"px-3"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["class","font-weight-bold px-3","mat-cell","",4,"matCellDef"],["matColumnDef","value"],["class","pr-3","mat-cell","",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mt-n3"],[1,"logo","text-center",3,"height","width","src"],["svgIcon","perun-verify-grey",1,"perun-icon","perun-icon-identity"],["svgIcon","perun-info-grey",1,"perun-icon","perun-icon-identity"],["mat-header-cell",""],["mat-cell","",1,"font-weight-bold","px-3"],["mat-cell","",1,"pr-3"],[4,"ngFor","ngForOf"],[3,"matTooltip","matTooltipDisabled"],["mat-icon-button","","color","warn",3,"disabled","click"],["mat-row",""]],template:function(e,t){1&e&&(h.TgZ(0,"div"),h.YNc(1,UO,1,0,"mat-spinner",0),h.YNc(2,iL,20,9,"div",1),h.qZA()),2&e&&(h.xp6(1),h.Q6J("ngIf",t.loading),h.xp6(1),h.Q6J("ngIf",!t.loading))},dependencies:[M.sg,M.O5,mV,ji,Yn,$0,CC,wC,bC,Y0,yC,vC,Q0,Cr,I_,yt],styles:[".logo[_ngcontent-%COMP%]{display:block;margin-top:auto;margin-bottom:auto}.perun-icon-identity[_ngcontent-%COMP%]{transform:scale(3.5);margin-left:.9rem;margin-top:1rem;color:#000}.identity-flexbox[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;justify-content:center;width:100%;gap:.5rem 1rem;margin-top:.5rem}"]}),r})(),rL=(()=>{class r{transform(e){let t="";return e.forEach(s=>{const u=s.attributes;if(u){const d=u.sourceIdPName;d&&""!==d&&(t=t+d+", ")}}),t.slice(0,-2)}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275pipe=h.Yjl({name:"similarIdentityFriendlyNamesString",type:r,pure:!0}),r})();function aL(r,a){1&r&&(h.TgZ(0,"perun-web-apps-alert",7),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&r&&(h.xp6(1),h.Oqu(h.lcZ(2,1,"MAIN_WINDOW.IS_NOT_KNOWN_IDENTITY")))}function oL(r,a){if(1&r){const e=h.EpF();h.TgZ(0,"div",10)(1,"div",11),h._UZ(2,"mat-icon",12),h.TgZ(3,"div",13)(4,"div"),h._uU(5),h.qZA(),h.TgZ(6,"div",14),h._uU(7),h.ALo(8,"translate"),h.ALo(9,"similarIdentityFriendlyNamesString"),h.qZA()()(),h.TgZ(10,"button",15),h.NdJ("click",function(){const u=h.CHM(e).$implicit,d=h.oxw(2);return h.KtG(d.openPopUp(u.identities))}),h._uU(11),h.ALo(12,"translate"),h.qZA()()}if(2&r){const e=a.$implicit;h.xp6(5),h.Oqu(e.email),h.xp6(2),h.AsE(" ",h.lcZ(8,4,"MAIN_WINDOW.LINKED_ACCOUNTS"),": ",h.lcZ(9,6,e.identities)," "),h.xp6(4),h.hij(" ",h.lcZ(12,8,"MAIN_WINDOW.CONNECT_THIS_ACCOUNT")," ")}}function sL(r,a){if(1&r){const e=h.EpF();h.TgZ(0,"div")(1,"h2"),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.TgZ(4,"p"),h._uU(5),h.ALo(6,"translate"),h.qZA(),h.YNc(7,oL,13,10,"div",8),h.TgZ(8,"button",9),h.NdJ("click",function(){h.CHM(e);const s=h.oxw();return h.KtG(s.openPopUp([]))}),h._uU(9),h.ALo(10,"translate"),h.qZA()()}if(2&r){const e=h.oxw();h.xp6(2),h.hij(" ",h.lcZ(3,4,"MAIN_WINDOW.TITLE_"+e.titleHelpTranslatePath)," "),h.xp6(3),h.hij(" ",h.lcZ(6,6,"MAIN_WINDOW."+e.titleHelpTranslatePath+"_HELP")," "),h.xp6(2),h.Q6J("ngForOf",e.similarIdentities),h.xp6(2),h.hij(" ",h.lcZ(10,8,"MAIN_WINDOW.CONNECT_OTHER_ACCOUNT")," ")}}function lL(r,a){1&r&&h._UZ(0,"mat-spinner",16)}let cL=(()=>{class r{constructor(e,t,s,u,d){this.storeService=e,this.initService=t,this.registrarService=s,this.router=u,this.openLinkerService=d,this.loading=!1,this.similarIdentities=[],this.titleHelpTranslatePath="SIMILAR_FOUND",this.reloadData=0}ngOnInit(){this.initData()}initData(){this.loading=!0,this.initService.simpleLoadPrincipal().then(()=>{this.unknownIdentity=-1===this.storeService.getPerunPrincipal().userId,this.reloadSimilarIdentities()})}reloadSimilarIdentities(){this.registrarService.checkForSimilarRichIdentities().subscribe(e=>{this.similarIdentities=e.slice(0,2),0===this.similarIdentities.length&&(this.titleHelpTranslatePath="NO_SIMILAR_FOUND"),this.loading=!1})}openPopUp(e){const t=[];e.forEach(s=>{s.attributes.sourceIdPName&&t.push(s.extSource.name)}),this.openLinkerService.openLinkerWindow(s=>{"TOKEN_EXPIRED"===s?location.reload():"OK"===s?(this.reloadData++,this.initData()):"MESSAGE_SENT_TO_SUPPORT"===s&&this.router.navigate(["/result",s],{queryParamsHandling:"preserve"})},t)}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(gi),h.Y36(Cs),h.Y36(mc),h.Y36(yi),h.Y36(FO))},r.\u0275cmp=h.Xpm({type:r,selectors:[["perun-web-apps-main-window"]],decls:9,vars:4,consts:[[1,"d-flex"],[1,"d-inline-block","ml-auto","mr-auto"],["alert_type","warn",4,"ngIf"],[1,"main-flexbox","card","p-4","mat-elevation-z3"],[1,"identities-list",3,"reloadData"],[4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],["alert_type","warn"],["class","card d-flex mt-3 p-2 identity-card mat-elevation-z3",4,"ngFor","ngForOf"],["mat-flat-button","","color","accent",1,"mt-3",3,"click"],[1,"card","d-flex","mt-3","p-2","identity-card","mat-elevation-z3"],[1,"d-flex","flex-row"],["svgIcon","perun-verify-grey",1,"perun-icon","perun-icon-similar"],[1,"ml-3","mt-1"],[1,"pl-1"],["mat-flat-button","","color","accent",1,"ml-auto","mr-2","mb-2","mt-3",3,"click"],[1,"mr-auto","ml-auto"]],template:function(e,t){1&e&&(h.TgZ(0,"div",0)(1,"div",1),h.YNc(2,aL,3,3,"perun-web-apps-alert",2),h.TgZ(3,"div",3),h._UZ(4,"perun-web-apps-list-of-identities",4)(5,"br"),h.TgZ(6,"div"),h.YNc(7,sL,11,10,"div",5),h.YNc(8,lL,1,0,"mat-spinner",6),h.qZA()()()()),2&e&&(h.xp6(2),h.Q6J("ngIf",t.unknownIdentity),h.xp6(2),h.Q6J("reloadData",t.reloadData),h.xp6(3),h.Q6J("ngIf",!t.loading),h.xp6(1),h.Q6J("ngIf",t.loading))},dependencies:[M.sg,M.O5,ji,Yn,Cr,zl,nL,rL,yt],styles:[".identities-list[_ngcontent-%COMP%]{max-width:650px}.main-flexbox[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex-wrap:wrap;gap:1.5rem}.perun-icon-similar[_ngcontent-%COMP%]{transform:scale(2);margin-left:1rem;margin-top:1rem;color:#000}.identity-card[_ngcontent-%COMP%]{background-color:#f5f5f5;max-width:450px}"]}),r})();function dL(r,a){if(1&r&&(h.TgZ(0,"mat-icon",6),h._uU(1),h.qZA()),2&r){const e=h.oxw();h.xp6(1),h.hij(" ",e.icon," ")}}function uL(r,a){1&r&&h._UZ(0,"mat-icon",7)}function hL(r,a){if(1&r&&(h.TgZ(0,"span"),h._uU(1),h.qZA()),2&r){const e=h.oxw(2);h.xp6(1),h.hij(" ",e.supportMail," ")}}function pL(r,a){if(1&r&&(h.TgZ(0,"span"),h._uU(1),h.qZA()),2&r){const e=h.oxw(2);h.xp6(1),h.hij(" ",e.userMail," ")}}function fL(r,a){if(1&r&&(h.TgZ(0,"h5"),h._uU(1),h.ALo(2,"translate"),h.YNc(3,hL,2,1,"span",5),h.YNc(4,pL,2,1,"span",5),h.qZA()),2&r){const e=h.oxw();h.xp6(1),h.hij(" ",h.lcZ(2,3,"SHARED_LIB.CONSOLIDATOR."+e.result+"_SUBTITLE")," "),h.xp6(2),h.Q6J("ngIf","UNKNOWN_ERROR"===e.result),h.xp6(1),h.Q6J("ngIf","MESSAGE_SENT_TO_SUPPORT"===e.result)}}function mL(r,a){if(1&r&&(h.TgZ(0,"h5"),h._uU(1),h.ALo(2,"translate"),h.ALo(3,"translate"),h.qZA()),2&r){const e=h.oxw();h.xp6(1),h.lnq(" ",h.lcZ(2,3,"SHARED_LIB.CONSOLIDATOR.OK_SUBTITLE_WITH_MAIL_1")," ",e.userMail," ",h.lcZ(3,5,"SHARED_LIB.CONSOLIDATOR.OK_SUBTITLE_WITH_MAIL_2")," ")}}const gL=function(r){return{"background-color":r}},_L=["*"];let bL=(()=>{class r{constructor(e){this.store=e,this.supportMail=this.store.getProperty("support_mail"),this.userMail=this.store.getPerunPrincipal().additionalInformations.mail,this.color="",this.icon="",this.greenColor="#e0ffd4",this.blueColor="#d4f2ff",this.redColor="#ffd4d4",this.warningIcon="warning",this.infoIcon="info",this.messageSent="mark_email_read"}ngOnChanges(){switch(this.result){case"OK":this.color=this.greenColor;break;case"IDENTITY_REGISTERED_ALREADY":case"UNKNOWN_ERROR":this.color=this.redColor,this.icon=this.warningIcon;break;case"IDENTITY_IDENTICAL":case"IDENTITY_LINKED":case"IDENTITY_UNKNOWN":this.color=this.blueColor,this.icon=this.infoIcon;break;case"MESSAGE_SENT_TO_SUPPORT":this.color=this.blueColor,this.icon=this.messageSent;break;case"TOKEN_EXPIRED":this.color=this.blueColor,this.icon=this.warningIcon}}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(gi))},r.\u0275cmp=h.Xpm({type:r,selectors:[["perun-web-apps-consolidation-result"]],inputs:{result:"result"},features:[h.TTD],ngContentSelectors:_L,decls:12,vars:10,consts:[[1,"p-4","m-3",3,"ngStyle"],[1,"d-flex","pb-5","flex-row"],["class","mat-icon-war mr-4",4,"ngIf"],["svgIcon","perun-verify-grey","class","perun-icon perun-icon-detail",4,"ngIf"],[1,"ml-5"],[4,"ngIf"],[1,"mat-icon-war","mr-4"],["svgIcon","perun-verify-grey",1,"perun-icon","perun-icon-detail"]],template:function(e,t){1&e&&(h.F$t(),h.TgZ(0,"div",0)(1,"div",1)(2,"div"),h.YNc(3,dL,2,1,"mat-icon",2),h.YNc(4,uL,1,0,"mat-icon",3),h.qZA(),h.TgZ(5,"div",4)(6,"h1"),h._uU(7),h.ALo(8,"translate"),h.qZA(),h.YNc(9,fL,5,5,"h5",5),h.YNc(10,mL,4,7,"h5",5),h.qZA()(),h.Hsn(11),h.qZA()),2&e&&(h.Q6J("ngStyle",h.VKq(8,gL,t.color)),h.xp6(3),h.Q6J("ngIf","OK"!==t.result),h.xp6(1),h.Q6J("ngIf","OK"===t.result),h.xp6(3),h.hij(" ",h.lcZ(8,6,"SHARED_LIB.CONSOLIDATOR."+t.result+"_TITLE")," "),h.xp6(2),h.Q6J("ngIf",!(t.userMail&&"OK"===t.result)),h.xp6(1),h.Q6J("ngIf",t.userMail&&"OK"===t.result))},dependencies:[M.O5,M.PC,Yn,yt],styles:[".mat-icon-war[_ngcontent-%COMP%]{font-size:82px}.perun-icon-detail[_ngcontent-%COMP%]{transform:scale(4.5);margin-left:3rem;margin-top:1.5rem;color:#000}"]}),r})();const CL=[{path:"",redirectTo:"consolidate",pathMatch:"full"},{path:"login",component:PO},{path:"consolidate",component:cL},{path:"result/:result",component:(()=>{class r{constructor(e,t){this.route=e,this.router=t}ngOnInit(){this.route.params.subscribe(e=>{this.linkerResult=e.result})}onClick(){this.router.navigate(["/consolidate"],{queryParamsHandling:"merge"})}}return r.\u0275fac=function(e){return new(e||r)(h.Y36(jn),h.Y36(yi))},r.\u0275cmp=h.Xpm({type:r,selectors:[["perun-web-apps-show-result-page"]],decls:6,vars:4,consts:[[1,"show-result","ml-auto","mr-auto"],[3,"result"],[1,"d-flex","flex-column","mt-5"],["mat-flat-button","",1,"ml-auto",3,"click"]],template:function(e,t){1&e&&(h.TgZ(0,"div",0)(1,"perun-web-apps-consolidation-result",1)(2,"div",2)(3,"button",3),h.NdJ("click",function(){return t.onClick()}),h._uU(4),h.ALo(5,"translate"),h.qZA()()()()),2&e&&(h.xp6(1),h.Q6J("result",t.linkerResult),h.xp6(3),h.hij(" ",h.lcZ(5,2,"SHOW_RESULT.BACK_HOME")," "))},dependencies:[ji,bL,yt],styles:[".show-result[_ngcontent-%COMP%]{max-width:55vw!important}"]}),r})()}];let wL=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({imports:[Gc.forRoot(CL,{preloadingStrategy:Rm,scrollPositionRestoration:"enabled",relativeLinkResolution:"legacy"}),Gc]}),r})(),yL=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({imports:[M.ez,Nl,vi,Da]}),r})();const vL={provide:v.TP,useExisting:(0,h.Gpc)(()=>Sb),multi:!0};function AL(r){return new kO(r,"./assets/i18n/",".json")}function xL(r){const a={basePath:r.getProperty("api_url")};return new lt(a)}const SL=r=>()=>r.loadConfigs();let TL=(()=>{class r{constructor(e,t){this.customIconService=e,this.translate=t,this.translate.setDefaultLang("en"),this.translate.use("en"),this.customIconService.registerPerunRefreshIcon()}}return r.\u0275fac=function(e){return new(e||r)(h.LFG(zA),h.LFG(hn))},r.\u0275mod=h.oAB({type:r,bootstrap:[HP]}),r.\u0275inj=h.cJS({providers:[zA,{provide:h.ip1,useFactory:SL,multi:!0,deps:[OO]},{provide:lt,useFactory:xL,deps:[gi]},Sb,vL,{provide:IO,useClass:GA},{provide:Gr.Hy,useFactory:()=>localStorage}],imports:[Ta,HI,v.JF,wi,wL,jx,RO,Ur,MD,xx,ib,yL,Gr.zr.forRoot(),LO,Da.forRoot({loader:{provide:ir,useFactory:AL,deps:[v.eN]}})]}),r})();(0,h.G48)(),Ze().bootstrapModule(TL).catch(r=>console.error(r))},1302:function(N,z,E){var M;!function(h,L){var F={};!function(h){"use strict";h.__esModule=!0,h.digestLength=32,h.blockSize=64;var L=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function F(oe,ie,ae,he,fe){for(var be,Le,je,Ae,we,xe,Ke,Pe,Re,De,le,ce,_e;fe>=64;){for(be=ie[0],Le=ie[1],je=ie[2],Ae=ie[3],we=ie[4],xe=ie[5],Ke=ie[6],Pe=ie[7],De=0;De<16;De++)oe[De]=(255&ae[le=he+4*De])<<24|(255&ae[le+1])<<16|(255&ae[le+2])<<8|255&ae[le+3];for(De=16;De<64;De++)oe[De]=((ce=((Re=oe[De-2])>>>17|Re<<15)^(Re>>>19|Re<<13)^Re>>>10)+oe[De-7]|0)+((_e=((Re=oe[De-15])>>>7|Re<<25)^(Re>>>18|Re<<14)^Re>>>3)+oe[De-16]|0);for(De=0;De<64;De++)ce=(((we>>>6|we<<26)^(we>>>11|we<<21)^(we>>>25|we<<7))+(we&xe^~we&Ke)|0)+(Pe+(L[De]+oe[De]|0)|0)|0,_e=((be>>>2|be<<30)^(be>>>13|be<<19)^(be>>>22|be<<10))+(be&Le^be&je^Le&je)|0,Pe=Ke,Ke=xe,xe=we,we=Ae+ce|0,Ae=je,je=Le,Le=be,be=ce+_e|0;ie[0]+=be,ie[1]+=Le,ie[2]+=je,ie[3]+=Ae,ie[4]+=we,ie[5]+=xe,ie[6]+=Ke,ie[7]+=Pe,he+=64,fe-=64}return he}var B=function(){function oe(){this.digestLength=h.digestLength,this.blockSize=h.blockSize,this.state=new Int32Array(8),this.temp=new Int32Array(64),this.buffer=new Uint8Array(128),this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this.reset()}return oe.prototype.reset=function(){return this.state[0]=1779033703,this.state[1]=3144134277,this.state[2]=1013904242,this.state[3]=2773480762,this.state[4]=1359893119,this.state[5]=2600822924,this.state[6]=528734635,this.state[7]=1541459225,this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this},oe.prototype.clean=function(){for(var ie=0;ie0){for(;this.bufferLength<64&&ae>0;)this.buffer[this.bufferLength++]=ie[he++],ae--;64===this.bufferLength&&(F(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(ae>=64&&(he=F(this.temp,this.state,ie,he,ae),ae%=64);ae>0;)this.buffer[this.bufferLength++]=ie[he++],ae--;return this},oe.prototype.finish=function(ie){if(!this.finished){var ae=this.bytesHashed,he=this.bufferLength,fe=ae/536870912|0,be=ae<<3,Le=ae%64<56?64:128;this.buffer[he]=128;for(var je=he+1;je>>24&255,this.buffer[Le-7]=fe>>>16&255,this.buffer[Le-6]=fe>>>8&255,this.buffer[Le-5]=fe>>>0&255,this.buffer[Le-4]=be>>>24&255,this.buffer[Le-3]=be>>>16&255,this.buffer[Le-2]=be>>>8&255,this.buffer[Le-1]=be>>>0&255,F(this.temp,this.state,this.buffer,0,Le),this.finished=!0}for(je=0;je<8;je++)ie[4*je+0]=this.state[je]>>>24&255,ie[4*je+1]=this.state[je]>>>16&255,ie[4*je+2]=this.state[je]>>>8&255,ie[4*je+3]=this.state[je]>>>0&255;return this},oe.prototype.digest=function(){var ie=new Uint8Array(this.digestLength);return this.finish(ie),ie},oe.prototype._saveState=function(ie){for(var ae=0;aethis.blockSize)(new B).update(ie).finish(ae).clean();else for(var he=0;he1&&ie.update(oe),ae&&ie.update(ae),ie.update(he),ie.finish(oe),he[0]++}h.HMAC=q,h.hash=Y,h.default=Y,h.hmac=ee;var Q=new Uint8Array(h.digestLength);h.hkdf=function G(oe,ie,ae,he){void 0===ie&&(ie=Q),void 0===he&&(he=32);for(var fe=new Uint8Array([1]),be=ee(ie,oe),Le=new q(be),je=new Uint8Array(Le.digestLength),Ae=je.length,we=new Uint8Array(he),xe=0;xe>>24&255,Le[1]=Ke>>>16&255,Le[2]=Ke>>>8&255,Le[3]=Ke>>>0&255,fe.reset(),fe.update(ie),fe.update(Le),fe.finish(Ae);for(var Pe=0;Pe=G.status}function q(Q){try{Q.dispatchEvent(new MouseEvent("click"))}catch{var G=document.createEvent("MouseEvents");G.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),Q.dispatchEvent(G)}}var Y="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,ee=Y.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),W=Y.saveAs||("object"!=typeof window||window!==Y?function(){}:"download"in HTMLAnchorElement.prototype&&!ee?function(Q,G,re){var oe=Y.URL||Y.webkitURL,ie=document.createElement("a");ie.download=G=G||Q.name||"download",ie.rel="noopener","string"==typeof Q?(ie.href=Q,ie.origin===location.origin?q(ie):B(ie.href)?F(Q,G,re):q(ie,ie.target="_blank")):(ie.href=oe.createObjectURL(Q),setTimeout(function(){oe.revokeObjectURL(ie.href)},4e4),setTimeout(function(){q(ie)},0))}:"msSaveOrOpenBlob"in navigator?function(Q,G,re){if(G=G||Q.name||"download","string"!=typeof Q)navigator.msSaveOrOpenBlob(function L(Q,G){return typeof G>"u"?G={autoBom:!1}:"object"!=typeof G&&(console.warn("Deprecated: Expected third argument to be a object"),G={autoBom:!G}),G.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(Q.type)?new Blob(["\ufeff",Q],{type:Q.type}):Q}(Q,re),G);else if(B(Q))F(Q,G,re);else{var oe=document.createElement("a");oe.href=Q,oe.target="_blank",setTimeout(function(){q(oe)})}}:function(Q,G,re,oe){if((oe=oe||open("","_blank"))&&(oe.document.title=oe.document.body.innerText="downloading..."),"string"==typeof Q)return F(Q,G,re);var ie="application/octet-stream"===Q.type,ae=/constructor/i.test(Y.HTMLElement)||Y.safari,he=/CriOS\/[\d]+/.test(navigator.userAgent);if((he||ie&&ae||ee)&&typeof FileReader<"u"){var fe=new FileReader;fe.onloadend=function(){var je=fe.result;je=he?je:je.replace(/^data:[^;]*;/,"data:attachment/file;"),oe?oe.location.href=je:location=je,oe=null},fe.readAsDataURL(Q)}else{var be=Y.URL||Y.webkitURL,Le=be.createObjectURL(Q);oe?oe.location=Le:location.href=Le,oe=null,setTimeout(function(){be.revokeObjectURL(Le)},4e4)}});Y.saveAs=W.saveAs=W,N.exports=W}.apply(z,[]))&&(N.exports=h)},9751:(N,z,E)=>{"use strict";E.d(z,{y:()=>ee});var M=E(930),h=E(727),L=E(8822),F=E(9635),B=E(2416),q=E(576),Y=E(2806);let ee=(()=>{class re{constructor(ie){ie&&(this._subscribe=ie)}lift(ie){const ae=new re;return ae.source=this,ae.operator=ie,ae}subscribe(ie,ae,he){const fe=function G(re){return re&&re instanceof M.Lv||function Q(re){return re&&(0,q.m)(re.next)&&(0,q.m)(re.error)&&(0,q.m)(re.complete)}(re)&&(0,h.Nn)(re)}(ie)?ie:new M.Hp(ie,ae,he);return(0,Y.x)(()=>{const{operator:be,source:Le}=this;fe.add(be?be.call(fe,Le):Le?this._subscribe(fe):this._trySubscribe(fe))}),fe}_trySubscribe(ie){try{return this._subscribe(ie)}catch(ae){ie.error(ae)}}forEach(ie,ae){return new(ae=W(ae))((he,fe)=>{const be=new M.Hp({next:Le=>{try{ie(Le)}catch(je){fe(je),be.unsubscribe()}},error:fe,complete:he});this.subscribe(be)})}_subscribe(ie){var ae;return null===(ae=this.source)||void 0===ae?void 0:ae.subscribe(ie)}[L.L](){return this}pipe(...ie){return(0,F.U)(ie)(this)}toPromise(ie){return new(ie=W(ie))((ae,he)=>{let fe;this.subscribe(be=>fe=be,be=>he(be),()=>ae(fe))})}}return re.create=oe=>new re(oe),re})();function W(re){var oe;return null!==(oe=re??B.v.Promise)&&void 0!==oe?oe:Promise}},7579:(N,z,E)=>{"use strict";E.d(z,{x:()=>Y});var M=E(9751),h=E(727);const F=(0,E(3888).d)(W=>function(){W(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var B=E(8737),q=E(2806);let Y=(()=>{class W extends M.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(G){const re=new ee(this,this);return re.operator=G,re}_throwIfClosed(){if(this.closed)throw new F}next(G){(0,q.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const re of this.currentObservers)re.next(G)}})}error(G){(0,q.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=G;const{observers:re}=this;for(;re.length;)re.shift().error(G)}})}complete(){(0,q.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:G}=this;for(;G.length;)G.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var G;return(null===(G=this.observers)||void 0===G?void 0:G.length)>0}_trySubscribe(G){return this._throwIfClosed(),super._trySubscribe(G)}_subscribe(G){return this._throwIfClosed(),this._checkFinalizedStatuses(G),this._innerSubscribe(G)}_innerSubscribe(G){const{hasError:re,isStopped:oe,observers:ie}=this;return re||oe?h.Lc:(this.currentObservers=null,ie.push(G),new h.w0(()=>{this.currentObservers=null,(0,B.P)(ie,G)}))}_checkFinalizedStatuses(G){const{hasError:re,thrownError:oe,isStopped:ie}=this;re?G.error(oe):ie&&G.complete()}asObservable(){const G=new M.y;return G.source=this,G}}return W.create=(Q,G)=>new ee(Q,G),W})();class ee extends Y{constructor(Q,G){super(),this.destination=Q,this.source=G}next(Q){var G,re;null===(re=null===(G=this.destination)||void 0===G?void 0:G.next)||void 0===re||re.call(G,Q)}error(Q){var G,re;null===(re=null===(G=this.destination)||void 0===G?void 0:G.error)||void 0===re||re.call(G,Q)}complete(){var Q,G;null===(G=null===(Q=this.destination)||void 0===Q?void 0:Q.complete)||void 0===G||G.call(Q)}_subscribe(Q){var G,re;return null!==(re=null===(G=this.source)||void 0===G?void 0:G.subscribe(Q))&&void 0!==re?re:h.Lc}}},930:(N,z,E)=>{"use strict";E.d(z,{Hp:()=>he,Lv:()=>re});var M=E(576),h=E(727),L=E(2416),F=E(7849),B=E(5032);const q=W("C",void 0,void 0);function W(Ae,we,xe){return{kind:Ae,value:we,error:xe}}var Q=E(3410),G=E(2806);class re extends h.w0{constructor(we){super(),this.isStopped=!1,we?(this.destination=we,(0,h.Nn)(we)&&we.add(this)):this.destination=je}static create(we,xe,Ke){return new he(we,xe,Ke)}next(we){this.isStopped?Le(function ee(Ae){return W("N",Ae,void 0)}(we),this):this._next(we)}error(we){this.isStopped?Le(function Y(Ae){return W("E",void 0,Ae)}(we),this):(this.isStopped=!0,this._error(we))}complete(){this.isStopped?Le(q,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(we){this.destination.next(we)}_error(we){try{this.destination.error(we)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const oe=Function.prototype.bind;function ie(Ae,we){return oe.call(Ae,we)}class ae{constructor(we){this.partialObserver=we}next(we){const{partialObserver:xe}=this;if(xe.next)try{xe.next(we)}catch(Ke){fe(Ke)}}error(we){const{partialObserver:xe}=this;if(xe.error)try{xe.error(we)}catch(Ke){fe(Ke)}else fe(we)}complete(){const{partialObserver:we}=this;if(we.complete)try{we.complete()}catch(xe){fe(xe)}}}class he extends re{constructor(we,xe,Ke){let Pe;if(super(),(0,M.m)(we)||!we)Pe={next:we??void 0,error:xe??void 0,complete:Ke??void 0};else{let Re;this&&L.v.useDeprecatedNextContext?(Re=Object.create(we),Re.unsubscribe=()=>this.unsubscribe(),Pe={next:we.next&&ie(we.next,Re),error:we.error&&ie(we.error,Re),complete:we.complete&&ie(we.complete,Re)}):Pe=we}this.destination=new ae(Pe)}}function fe(Ae){L.v.useDeprecatedSynchronousErrorHandling?(0,G.O)(Ae):(0,F.h)(Ae)}function Le(Ae,we){const{onStoppedNotification:xe}=L.v;xe&&Q.z.setTimeout(()=>xe(Ae,we))}const je={closed:!0,next:B.Z,error:function be(Ae){throw Ae},complete:B.Z}},727:(N,z,E)=>{"use strict";E.d(z,{Lc:()=>q,w0:()=>B,Nn:()=>Y});var M=E(576);const L=(0,E(3888).d)(W=>function(G){W(this),this.message=G?`${G.length} errors occurred during unsubscription:\n${G.map((re,oe)=>`${oe+1}) ${re.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=G});var F=E(8737);class B{constructor(Q){this.initialTeardown=Q,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let Q;if(!this.closed){this.closed=!0;const{_parentage:G}=this;if(G)if(this._parentage=null,Array.isArray(G))for(const ie of G)ie.remove(this);else G.remove(this);const{initialTeardown:re}=this;if((0,M.m)(re))try{re()}catch(ie){Q=ie instanceof L?ie.errors:[ie]}const{_finalizers:oe}=this;if(oe){this._finalizers=null;for(const ie of oe)try{ee(ie)}catch(ae){Q=Q??[],ae instanceof L?Q=[...Q,...ae.errors]:Q.push(ae)}}if(Q)throw new L(Q)}}add(Q){var G;if(Q&&Q!==this)if(this.closed)ee(Q);else{if(Q instanceof B){if(Q.closed||Q._hasParent(this))return;Q._addParent(this)}(this._finalizers=null!==(G=this._finalizers)&&void 0!==G?G:[]).push(Q)}}_hasParent(Q){const{_parentage:G}=this;return G===Q||Array.isArray(G)&&G.includes(Q)}_addParent(Q){const{_parentage:G}=this;this._parentage=Array.isArray(G)?(G.push(Q),G):G?[G,Q]:Q}_removeParent(Q){const{_parentage:G}=this;G===Q?this._parentage=null:Array.isArray(G)&&(0,F.P)(G,Q)}remove(Q){const{_finalizers:G}=this;G&&(0,F.P)(G,Q),Q instanceof B&&Q._removeParent(this)}}B.EMPTY=(()=>{const W=new B;return W.closed=!0,W})();const q=B.EMPTY;function Y(W){return W instanceof B||W&&"closed"in W&&(0,M.m)(W.remove)&&(0,M.m)(W.add)&&(0,M.m)(W.unsubscribe)}function ee(W){(0,M.m)(W)?W():W.unsubscribe()}},2416:(N,z,E)=>{"use strict";E.d(z,{v:()=>M});const M={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9841:(N,z,E)=>{"use strict";E.d(z,{a:()=>Q});var M=E(9751),h=E(4742),L=E(2076),F=E(4671),B=E(3268),q=E(3269),Y=E(1810),ee=E(5403),W=E(9672);function Q(...oe){const ie=(0,q.yG)(oe),ae=(0,q.jO)(oe),{args:he,keys:fe}=(0,h.D)(oe);if(0===he.length)return(0,L.D)([],ie);const be=new M.y(function G(oe,ie,ae=F.y){return he=>{re(ie,()=>{const{length:fe}=oe,be=new Array(fe);let Le=fe,je=fe;for(let Ae=0;Ae{const we=(0,L.D)(oe[Ae],ie);let xe=!1;we.subscribe((0,ee.x)(he,Ke=>{be[Ae]=Ke,xe||(xe=!0,je--),je||he.next(ae(be.slice()))},()=>{--Le||he.complete()}))},he)},he)}}(he,ie,fe?Le=>(0,Y.n)(fe,Le):F.y));return ae?be.pipe((0,B.Z)(ae)):be}function re(oe,ie,ae){oe?(0,W.f)(ae,oe,ie):ie()}},7272:(N,z,E)=>{"use strict";E.d(z,{z:()=>B});var M=E(8189),L=E(3269),F=E(2076);function B(...q){return function h(){return(0,M.J)(1)}()((0,F.D)(q,(0,L.yG)(q)))}},515:(N,z,E)=>{"use strict";E.d(z,{E:()=>h});const h=new(E(9751).y)(B=>B.complete())},2076:(N,z,E)=>{"use strict";E.d(z,{D:()=>Ke});var M=E(8421),h=E(9672),L=E(4482),F=E(5403);function B(Pe,Re=0){return(0,L.e)((De,le)=>{De.subscribe((0,F.x)(le,ce=>(0,h.f)(le,Pe,()=>le.next(ce),Re),()=>(0,h.f)(le,Pe,()=>le.complete(),Re),ce=>(0,h.f)(le,Pe,()=>le.error(ce),Re)))})}function q(Pe,Re=0){return(0,L.e)((De,le)=>{le.add(Pe.schedule(()=>De.subscribe(le),Re))})}var W=E(9751),G=E(2202),re=E(576);function ie(Pe,Re){if(!Pe)throw new Error("Iterable cannot be null");return new W.y(De=>{(0,h.f)(De,Re,()=>{const le=Pe[Symbol.asyncIterator]();(0,h.f)(De,Re,()=>{le.next().then(ce=>{ce.done?De.complete():De.next(ce.value)})},0,!0)})})}var ae=E(3670),he=E(8239),fe=E(1144),be=E(6495),Le=E(2206),je=E(4532),Ae=E(3260);function Ke(Pe,Re){return Re?function xe(Pe,Re){if(null!=Pe){if((0,ae.c)(Pe))return function Y(Pe,Re){return(0,M.Xf)(Pe).pipe(q(Re),B(Re))}(Pe,Re);if((0,fe.z)(Pe))return function Q(Pe,Re){return new W.y(De=>{let le=0;return Re.schedule(function(){le===Pe.length?De.complete():(De.next(Pe[le++]),De.closed||this.schedule())})})}(Pe,Re);if((0,he.t)(Pe))return function ee(Pe,Re){return(0,M.Xf)(Pe).pipe(q(Re),B(Re))}(Pe,Re);if((0,Le.D)(Pe))return ie(Pe,Re);if((0,be.T)(Pe))return function oe(Pe,Re){return new W.y(De=>{let le;return(0,h.f)(De,Re,()=>{le=Pe[G.h](),(0,h.f)(De,Re,()=>{let ce,_e;try{({value:ce,done:_e}=le.next())}catch(pe){return void De.error(pe)}_e?De.complete():De.next(ce)},0,!0)}),()=>(0,re.m)(le?.return)&&le.return()})}(Pe,Re);if((0,Ae.L)(Pe))return function we(Pe,Re){return ie((0,Ae.Q)(Pe),Re)}(Pe,Re)}throw(0,je.z)(Pe)}(Pe,Re):(0,M.Xf)(Pe)}},8421:(N,z,E)=>{"use strict";E.d(z,{Xf:()=>oe});var M=E(655),h=E(1144),L=E(8239),F=E(9751),B=E(3670),q=E(2206),Y=E(4532),ee=E(6495),W=E(3260),Q=E(576),G=E(7849),re=E(8822);function oe(Ae){if(Ae instanceof F.y)return Ae;if(null!=Ae){if((0,B.c)(Ae))return function ie(Ae){return new F.y(we=>{const xe=Ae[re.L]();if((0,Q.m)(xe.subscribe))return xe.subscribe(we);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(Ae);if((0,h.z)(Ae))return function ae(Ae){return new F.y(we=>{for(let xe=0;xe{Ae.then(xe=>{we.closed||(we.next(xe),we.complete())},xe=>we.error(xe)).then(null,G.h)})}(Ae);if((0,q.D)(Ae))return be(Ae);if((0,ee.T)(Ae))return function fe(Ae){return new F.y(we=>{for(const xe of Ae)if(we.next(xe),we.closed)return;we.complete()})}(Ae);if((0,W.L)(Ae))return function Le(Ae){return be((0,W.Q)(Ae))}(Ae)}throw(0,Y.z)(Ae)}function be(Ae){return new F.y(we=>{(function je(Ae,we){var xe,Ke,Pe,Re;return(0,M.mG)(this,void 0,void 0,function*(){try{for(xe=(0,M.KL)(Ae);!(Ke=yield xe.next()).done;)if(we.next(Ke.value),we.closed)return}catch(De){Pe={error:De}}finally{try{Ke&&!Ke.done&&(Re=xe.return)&&(yield Re.call(xe))}finally{if(Pe)throw Pe.error}}we.complete()})})(Ae,we).catch(xe=>we.error(xe))})}},6451:(N,z,E)=>{"use strict";E.d(z,{T:()=>q});var M=E(8189),h=E(8421),L=E(515),F=E(3269),B=E(2076);function q(...Y){const ee=(0,F.yG)(Y),W=(0,F._6)(Y,1/0),Q=Y;return Q.length?1===Q.length?(0,h.Xf)(Q[0]):(0,M.J)(W)((0,B.D)(Q,ee)):L.E}},9646:(N,z,E)=>{"use strict";E.d(z,{of:()=>L});var M=E(3269),h=E(2076);function L(...F){const B=(0,M.yG)(F);return(0,h.D)(F,B)}},102:(N,z,E)=>{"use strict";E.d(z,{S:()=>q});var M=E(9751),h=E(8421);const{isArray:L}=Array;var B=E(5403);function q(...ee){return 1===(ee=function F(ee){return 1===ee.length&&L(ee[0])?ee[0]:ee}(ee)).length?(0,h.Xf)(ee[0]):new M.y(function Y(ee){return W=>{let Q=[];for(let G=0;Q&&!W.closed&&G{if(Q){for(let oe=0;oe{"use strict";E.d(z,{_:()=>L});var M=E(9751),h=E(576);function L(F,B){const q=(0,h.m)(F)?F:()=>F,Y=ee=>ee.error(q());return new M.y(B?ee=>B.schedule(Y,0,ee):Y)}},2805:(N,z,E)=>{"use strict";E.d(z,{H:()=>B});var M=E(9751),h=E(4986),L=E(3532),F=E(1165);function B(q=0,Y,ee=h.P){let W=-1;return null!=Y&&((0,L.K)(Y)?ee=Y:W=Y),new M.y(Q=>{let G=(0,F.q)(q)?+q-ee.now():q;G<0&&(G=0);let re=0;return ee.schedule(function(){Q.closed||(Q.next(re++),0<=W?this.schedule(void 0,W):Q.complete())},G)})}},5403:(N,z,E)=>{"use strict";E.d(z,{x:()=>h});var M=E(930);function h(F,B,q,Y,ee){return new L(F,B,q,Y,ee)}class L extends M.Lv{constructor(B,q,Y,ee,W,Q){super(B),this.onFinalize=W,this.shouldUnsubscribe=Q,this._next=q?function(G){try{q(G)}catch(re){B.error(re)}}:super._next,this._error=ee?function(G){try{ee(G)}catch(re){B.error(re)}finally{this.unsubscribe()}}:super._error,this._complete=Y?function(){try{Y()}catch(G){B.error(G)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var B;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:q}=this;super.unsubscribe(),!q&&(null===(B=this.onFinalize)||void 0===B||B.call(this))}}}},262:(N,z,E)=>{"use strict";E.d(z,{K:()=>F});var M=E(8421),h=E(5403),L=E(4482);function F(B){return(0,L.e)((q,Y)=>{let Q,ee=null,W=!1;ee=q.subscribe((0,h.x)(Y,void 0,void 0,G=>{Q=(0,M.Xf)(B(G,F(B)(q))),ee?(ee.unsubscribe(),ee=null,Q.subscribe(Y)):W=!0})),W&&(ee.unsubscribe(),ee=null,Q.subscribe(Y))})}},4351:(N,z,E)=>{"use strict";E.d(z,{b:()=>L});var M=E(5577),h=E(576);function L(F,B){return(0,h.m)(B)?(0,M.z)(F,B,1):(0,M.z)(F,1)}},8372:(N,z,E)=>{"use strict";E.d(z,{b:()=>F});var M=E(4986),h=E(4482),L=E(5403);function F(B,q=M.z){return(0,h.e)((Y,ee)=>{let W=null,Q=null,G=null;const re=()=>{if(W){W.unsubscribe(),W=null;const ie=Q;Q=null,ee.next(ie)}};function oe(){const ie=G+B,ae=q.now();if(ae{Q=ie,G=q.now(),W||(W=q.schedule(oe,B),ee.add(W))},()=>{re(),ee.complete()},void 0,()=>{Q=W=null}))})}},6590:(N,z,E)=>{"use strict";E.d(z,{d:()=>L});var M=E(4482),h=E(5403);function L(F){return(0,M.e)((B,q)=>{let Y=!1;B.subscribe((0,h.x)(q,ee=>{Y=!0,q.next(ee)},()=>{Y||q.next(F),q.complete()}))})}},1005:(N,z,E)=>{"use strict";E.d(z,{g:()=>re});var M=E(4986),h=E(7272),L=E(5698),F=E(4482),B=E(5403),q=E(5032),ee=E(9718),W=E(5577);function Q(oe,ie){return ie?ae=>(0,h.z)(ie.pipe((0,L.q)(1),function Y(){return(0,F.e)((oe,ie)=>{oe.subscribe((0,B.x)(ie,q.Z))})}()),ae.pipe(Q(oe))):(0,W.z)((ae,he)=>oe(ae,he).pipe((0,L.q)(1),(0,ee.h)(ae)))}var G=E(2805);function re(oe,ie=M.z){const ae=(0,G.H)(oe,ie);return Q(()=>ae)}},9300:(N,z,E)=>{"use strict";E.d(z,{h:()=>L});var M=E(4482),h=E(5403);function L(F,B){return(0,M.e)((q,Y)=>{let ee=0;q.subscribe((0,h.x)(Y,W=>F.call(B,W,ee++)&&Y.next(W)))})}},590:(N,z,E)=>{"use strict";E.d(z,{P:()=>Y});var M=E(6805),h=E(9300),L=E(5698),F=E(6590),B=E(8068),q=E(4671);function Y(ee,W){const Q=arguments.length>=2;return G=>G.pipe(ee?(0,h.h)((re,oe)=>ee(re,oe,G)):q.y,(0,L.q)(1),Q?(0,F.d)(W):(0,B.T)(()=>new M.K))}},4004:(N,z,E)=>{"use strict";E.d(z,{U:()=>L});var M=E(4482),h=E(5403);function L(F,B){return(0,M.e)((q,Y)=>{let ee=0;q.subscribe((0,h.x)(Y,W=>{Y.next(F.call(B,W,ee++))}))})}},9718:(N,z,E)=>{"use strict";E.d(z,{h:()=>h});var M=E(4004);function h(L){return(0,M.U)(()=>L)}},8189:(N,z,E)=>{"use strict";E.d(z,{J:()=>L});var M=E(5577),h=E(4671);function L(F=1/0){return(0,M.z)(h.y,F)}},5577:(N,z,E)=>{"use strict";E.d(z,{z:()=>ee});var M=E(4004),h=E(8421),L=E(4482),F=E(9672),B=E(5403),Y=E(576);function ee(W,Q,G=1/0){return(0,Y.m)(Q)?ee((re,oe)=>(0,M.U)((ie,ae)=>Q(re,ie,oe,ae))((0,h.Xf)(W(re,oe))),G):("number"==typeof Q&&(G=Q),(0,L.e)((re,oe)=>function q(W,Q,G,re,oe,ie,ae,he){const fe=[];let be=0,Le=0,je=!1;const Ae=()=>{je&&!fe.length&&!be&&Q.complete()},we=Ke=>be{ie&&Q.next(Ke),be++;let Pe=!1;(0,h.Xf)(G(Ke,Le++)).subscribe((0,B.x)(Q,Re=>{oe?.(Re),ie?we(Re):Q.next(Re)},()=>{Pe=!0},void 0,()=>{if(Pe)try{for(be--;fe.length&&bexe(Re)):xe(Re)}Ae()}catch(Re){Q.error(Re)}}))};return W.subscribe((0,B.x)(Q,we,()=>{je=!0,Ae()})),()=>{he?.()}}(re,oe,W,G)))}},3099:(N,z,E)=>{"use strict";E.d(z,{B:()=>B});var M=E(8421),h=E(7579),L=E(930),F=E(4482);function B(Y={}){const{connector:ee=(()=>new h.x),resetOnError:W=!0,resetOnComplete:Q=!0,resetOnRefCountZero:G=!0}=Y;return re=>{let oe,ie,ae,he=0,fe=!1,be=!1;const Le=()=>{ie?.unsubscribe(),ie=void 0},je=()=>{Le(),oe=ae=void 0,fe=be=!1},Ae=()=>{const we=oe;je(),we?.unsubscribe()};return(0,F.e)((we,xe)=>{he++,!be&&!fe&&Le();const Ke=ae=ae??ee();xe.add(()=>{he--,0===he&&!be&&!fe&&(ie=q(Ae,G))}),Ke.subscribe(xe),!oe&&he>0&&(oe=new L.Hp({next:Pe=>Ke.next(Pe),error:Pe=>{be=!0,Le(),ie=q(je,W,Pe),Ke.error(Pe)},complete:()=>{fe=!0,Le(),ie=q(je,Q),Ke.complete()}}),(0,M.Xf)(we).subscribe(oe))})(re)}}function q(Y,ee,...W){if(!0===ee)return void Y();if(!1===ee)return;const Q=new L.Hp({next:()=>{Q.unsubscribe(),Y()}});return ee(...W).subscribe(Q)}},3900:(N,z,E)=>{"use strict";E.d(z,{w:()=>F});var M=E(8421),h=E(4482),L=E(5403);function F(B,q){return(0,h.e)((Y,ee)=>{let W=null,Q=0,G=!1;const re=()=>G&&!W&&ee.complete();Y.subscribe((0,L.x)(ee,oe=>{W?.unsubscribe();let ie=0;const ae=Q++;(0,M.Xf)(B(oe,ae)).subscribe(W=(0,L.x)(ee,he=>ee.next(q?q(oe,he,ae,ie++):he),()=>{W=null,re()}))},()=>{G=!0,re()}))})}},5698:(N,z,E)=>{"use strict";E.d(z,{q:()=>F});var M=E(515),h=E(4482),L=E(5403);function F(B){return B<=0?()=>M.E:(0,h.e)((q,Y)=>{let ee=0;q.subscribe((0,L.x)(Y,W=>{++ee<=B&&(Y.next(W),B<=ee&&Y.complete())}))})}},8505:(N,z,E)=>{"use strict";E.d(z,{b:()=>B});var M=E(576),h=E(4482),L=E(5403),F=E(4671);function B(q,Y,ee){const W=(0,M.m)(q)||Y||ee?{next:q,error:Y,complete:ee}:q;return W?(0,h.e)((Q,G)=>{var re;null===(re=W.subscribe)||void 0===re||re.call(W);let oe=!0;Q.subscribe((0,L.x)(G,ie=>{var ae;null===(ae=W.next)||void 0===ae||ae.call(W,ie),G.next(ie)},()=>{var ie;oe=!1,null===(ie=W.complete)||void 0===ie||ie.call(W),G.complete()},ie=>{var ae;oe=!1,null===(ae=W.error)||void 0===ae||ae.call(W,ie),G.error(ie)},()=>{var ie,ae;oe&&(null===(ie=W.unsubscribe)||void 0===ie||ie.call(W)),null===(ae=W.finalize)||void 0===ae||ae.call(W)}))}):F.y}},8068:(N,z,E)=>{"use strict";E.d(z,{T:()=>F});var M=E(6805),h=E(4482),L=E(5403);function F(q=B){return(0,h.e)((Y,ee)=>{let W=!1;Y.subscribe((0,L.x)(ee,Q=>{W=!0,ee.next(Q)},()=>W?ee.complete():ee.error(q())))})}function B(){return new M.K}},7414:(N,z,E)=>{"use strict";E.d(z,{V:()=>W});var M=E(4986),h=E(1165),L=E(4482),F=E(8421),B=E(3888),q=E(5403),Y=E(9672);const ee=(0,B.d)(G=>function(oe=null){G(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=oe});function W(G,re){const{first:oe,each:ie,with:ae=Q,scheduler:he=re??M.z,meta:fe=null}=(0,h.q)(G)?{first:G}:"number"==typeof G?{each:G}:G;if(null==oe&&null==ie)throw new TypeError("No timeout provided.");return(0,L.e)((be,Le)=>{let je,Ae,we=null,xe=0;const Ke=Pe=>{Ae=(0,Y.f)(Le,he,()=>{try{je.unsubscribe(),(0,F.Xf)(ae({meta:fe,lastValue:we,seen:xe})).subscribe(Le)}catch(Re){Le.error(Re)}},Pe)};je=be.subscribe((0,q.x)(Le,Pe=>{Ae?.unsubscribe(),xe++,Le.next(we=Pe),ie>0&&Ke(ie)},void 0,void 0,()=>{Ae?.closed||Ae?.unsubscribe(),we=null})),!xe&&Ke(null!=oe?"number"==typeof oe?oe:+oe-he.now():ie)})}function Q(G){throw new ee(G)}},4408:(N,z,E)=>{"use strict";E.d(z,{o:()=>B});var M=E(727);class h extends M.w0{constructor(Y,ee){super()}schedule(Y,ee=0){return this}}const L={setInterval(q,Y,...ee){const{delegate:W}=L;return W?.setInterval?W.setInterval(q,Y,...ee):setInterval(q,Y,...ee)},clearInterval(q){const{delegate:Y}=L;return(Y?.clearInterval||clearInterval)(q)},delegate:void 0};var F=E(8737);class B extends h{constructor(Y,ee){super(Y,ee),this.scheduler=Y,this.work=ee,this.pending=!1}schedule(Y,ee=0){if(this.closed)return this;this.state=Y;const W=this.id,Q=this.scheduler;return null!=W&&(this.id=this.recycleAsyncId(Q,W,ee)),this.pending=!0,this.delay=ee,this.id=this.id||this.requestAsyncId(Q,this.id,ee),this}requestAsyncId(Y,ee,W=0){return L.setInterval(Y.flush.bind(Y,this),W)}recycleAsyncId(Y,ee,W=0){if(null!=W&&this.delay===W&&!1===this.pending)return ee;L.clearInterval(ee)}execute(Y,ee){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const W=this._execute(Y,ee);if(W)return W;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(Y,ee){let Q,W=!1;try{this.work(Y)}catch(G){W=!0,Q=G||new Error("Scheduled action threw falsy error")}if(W)return this.unsubscribe(),Q}unsubscribe(){if(!this.closed){const{id:Y,scheduler:ee}=this,{actions:W}=ee;this.work=this.state=this.scheduler=null,this.pending=!1,(0,F.P)(W,this),null!=Y&&(this.id=this.recycleAsyncId(ee,Y,null)),this.delay=null,super.unsubscribe()}}}},7565:(N,z,E)=>{"use strict";E.d(z,{v:()=>L});var M=E(6063);class h{constructor(B,q=h.now){this.schedulerActionCtor=B,this.now=q}schedule(B,q=0,Y){return new this.schedulerActionCtor(this,B).schedule(Y,q)}}h.now=M.l.now;class L extends h{constructor(B,q=h.now){super(B,q),this.actions=[],this._active=!1,this._scheduled=void 0}flush(B){const{actions:q}=this;if(this._active)return void q.push(B);let Y;this._active=!0;do{if(Y=B.execute(B.state,B.delay))break}while(B=q.shift());if(this._active=!1,Y){for(;B=q.shift();)B.unsubscribe();throw Y}}}},4986:(N,z,E)=>{"use strict";E.d(z,{P:()=>F,z:()=>L});var M=E(4408);const L=new(E(7565).v)(M.o),F=L},6063:(N,z,E)=>{"use strict";E.d(z,{l:()=>M});const M={now:()=>(M.delegate||Date).now(),delegate:void 0}},3410:(N,z,E)=>{"use strict";E.d(z,{z:()=>M});const M={setTimeout(h,L,...F){const{delegate:B}=M;return B?.setTimeout?B.setTimeout(h,L,...F):setTimeout(h,L,...F)},clearTimeout(h){const{delegate:L}=M;return(L?.clearTimeout||clearTimeout)(h)},delegate:void 0}},2202:(N,z,E)=>{"use strict";E.d(z,{h:()=>h});const h=function M(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(N,z,E)=>{"use strict";E.d(z,{L:()=>M});const M="function"==typeof Symbol&&Symbol.observable||"@@observable"},6805:(N,z,E)=>{"use strict";E.d(z,{K:()=>h});const h=(0,E(3888).d)(L=>function(){L(this),this.name="EmptyError",this.message="no elements in sequence"})},3269:(N,z,E)=>{"use strict";E.d(z,{_6:()=>q,jO:()=>F,yG:()=>B});var M=E(576),h=E(3532);function L(Y){return Y[Y.length-1]}function F(Y){return(0,M.m)(L(Y))?Y.pop():void 0}function B(Y){return(0,h.K)(L(Y))?Y.pop():void 0}function q(Y,ee){return"number"==typeof L(Y)?Y.pop():ee}},4742:(N,z,E)=>{"use strict";E.d(z,{D:()=>B});const{isArray:M}=Array,{getPrototypeOf:h,prototype:L,keys:F}=Object;function B(Y){if(1===Y.length){const ee=Y[0];if(M(ee))return{args:ee,keys:null};if(function q(Y){return Y&&"object"==typeof Y&&h(Y)===L}(ee)){const W=F(ee);return{args:W.map(Q=>ee[Q]),keys:W}}}return{args:Y,keys:null}}},8737:(N,z,E)=>{"use strict";function M(h,L){if(h){const F=h.indexOf(L);0<=F&&h.splice(F,1)}}E.d(z,{P:()=>M})},3888:(N,z,E)=>{"use strict";function M(h){const F=h(B=>{Error.call(B),B.stack=(new Error).stack});return F.prototype=Object.create(Error.prototype),F.prototype.constructor=F,F}E.d(z,{d:()=>M})},1810:(N,z,E)=>{"use strict";function M(h,L){return h.reduce((F,B,q)=>(F[B]=L[q],F),{})}E.d(z,{n:()=>M})},2806:(N,z,E)=>{"use strict";E.d(z,{O:()=>F,x:()=>L});var M=E(2416);let h=null;function L(B){if(M.v.useDeprecatedSynchronousErrorHandling){const q=!h;if(q&&(h={errorThrown:!1,error:null}),B(),q){const{errorThrown:Y,error:ee}=h;if(h=null,Y)throw ee}}else B()}function F(B){M.v.useDeprecatedSynchronousErrorHandling&&h&&(h.errorThrown=!0,h.error=B)}},9672:(N,z,E)=>{"use strict";function M(h,L,F,B=0,q=!1){const Y=L.schedule(function(){F(),q?h.add(this.schedule(null,B)):this.unsubscribe()},B);if(h.add(Y),!q)return Y}E.d(z,{f:()=>M})},4671:(N,z,E)=>{"use strict";function M(h){return h}E.d(z,{y:()=>M})},1144:(N,z,E)=>{"use strict";E.d(z,{z:()=>M});const M=h=>h&&"number"==typeof h.length&&"function"!=typeof h},2206:(N,z,E)=>{"use strict";E.d(z,{D:()=>h});var M=E(576);function h(L){return Symbol.asyncIterator&&(0,M.m)(L?.[Symbol.asyncIterator])}},1165:(N,z,E)=>{"use strict";function M(h){return h instanceof Date&&!isNaN(h)}E.d(z,{q:()=>M})},576:(N,z,E)=>{"use strict";function M(h){return"function"==typeof h}E.d(z,{m:()=>M})},3670:(N,z,E)=>{"use strict";E.d(z,{c:()=>L});var M=E(8822),h=E(576);function L(F){return(0,h.m)(F[M.L])}},6495:(N,z,E)=>{"use strict";E.d(z,{T:()=>L});var M=E(2202),h=E(576);function L(F){return(0,h.m)(F?.[M.h])}},8239:(N,z,E)=>{"use strict";E.d(z,{t:()=>h});var M=E(576);function h(L){return(0,M.m)(L?.then)}},3260:(N,z,E)=>{"use strict";E.d(z,{L:()=>F,Q:()=>L});var M=E(655),h=E(576);function L(B){return(0,M.FC)(this,arguments,function*(){const Y=B.getReader();try{for(;;){const{value:ee,done:W}=yield(0,M.qq)(Y.read());if(W)return yield(0,M.qq)(void 0);yield yield(0,M.qq)(ee)}}finally{Y.releaseLock()}})}function F(B){return(0,h.m)(B?.getReader)}},3532:(N,z,E)=>{"use strict";E.d(z,{K:()=>h});var M=E(576);function h(L){return L&&(0,M.m)(L.schedule)}},4482:(N,z,E)=>{"use strict";E.d(z,{A:()=>h,e:()=>L});var M=E(576);function h(F){return(0,M.m)(F?.lift)}function L(F){return B=>{if(h(B))return B.lift(function(q){try{return F(q,this)}catch(Y){this.error(Y)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(N,z,E)=>{"use strict";E.d(z,{Z:()=>F});var M=E(4004);const{isArray:h}=Array;function F(B){return(0,M.U)(q=>function L(B,q){return h(q)?B(...q):B(q)}(B,q))}},5032:(N,z,E)=>{"use strict";function M(){}E.d(z,{Z:()=>M})},9635:(N,z,E)=>{"use strict";E.d(z,{U:()=>L,z:()=>h});var M=E(4671);function h(...F){return L(F)}function L(F){return 0===F.length?M.y:1===F.length?F[0]:function(q){return F.reduce((Y,ee)=>ee(Y),q)}}},7849:(N,z,E)=>{"use strict";E.d(z,{h:()=>L});var M=E(2416),h=E(3410);function L(F){h.z.setTimeout(()=>{const{onUnhandledError:B}=M.v;if(!B)throw F;B(F)})}},4532:(N,z,E)=>{"use strict";function M(h){return new TypeError(`You provided ${null!==h&&"object"==typeof h?"an invalid object":`'${h}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}E.d(z,{z:()=>M})},655:(N,z,E)=>{"use strict";function ee(le,ce,_e,pe){return new(_e||(_e=Promise))(function(ke,ut){function xt(Ii){try{Fe(pe.next(Ii))}catch(Xn){ut(Xn)}}function kt(Ii){try{Fe(pe.throw(Ii))}catch(Xn){ut(Xn)}}function Fe(Ii){Ii.done?ke(Ii.value):function Be(ke){return ke instanceof _e?ke:new _e(function(ut){ut(ke)})}(Ii.value).then(xt,kt)}Fe((pe=pe.apply(le,ce||[])).next())})}function fe(le){return this instanceof fe?(this.v=le,this):new fe(le)}function be(le,ce,_e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Be,pe=_e.apply(le,ce||[]),ke=[];return Be={},ut("next"),ut("throw"),ut("return"),Be[Symbol.asyncIterator]=function(){return this},Be;function ut(zt){pe[zt]&&(Be[zt]=function(Et){return new Promise(function(Rn,ui){ke.push([zt,Et,Rn,ui])>1||xt(zt,Et)})})}function xt(zt,Et){try{!function kt(zt){zt.value instanceof fe?Promise.resolve(zt.value.v).then(Fe,Ii):Xn(ke[0][2],zt)}(pe[zt](Et))}catch(Rn){Xn(ke[0][3],Rn)}}function Fe(zt){xt("next",zt)}function Ii(zt){xt("throw",zt)}function Xn(zt,Et){zt(Et),ke.shift(),ke.length&&xt(ke[0][0],ke[0][1])}}function je(le){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var _e,ce=le[Symbol.asyncIterator];return ce?ce.call(le):(le=function re(le){var ce="function"==typeof Symbol&&Symbol.iterator,_e=ce&&le[ce],pe=0;if(_e)return _e.call(le);if(le&&"number"==typeof le.length)return{next:function(){return le&&pe>=le.length&&(le=void 0),{value:le&&le[pe++],done:!le}}};throw new TypeError(ce?"Object is not iterable.":"Symbol.iterator is not defined.")}(le),_e={},pe("next"),pe("throw"),pe("return"),_e[Symbol.asyncIterator]=function(){return this},_e);function pe(ke){_e[ke]=le[ke]&&function(ut){return new Promise(function(xt,kt){!function Be(ke,ut,xt,kt){Promise.resolve(kt).then(function(Fe){ke({value:Fe,done:xt})},ut)}(xt,kt,(ut=le[ke](ut)).done,ut.value)})}}}E.d(z,{FC:()=>be,KL:()=>je,mG:()=>ee,qq:()=>fe})},6895:(N,z,E)=>{"use strict";E.d(z,{Do:()=>je,EM:()=>Os,HT:()=>B,JF:()=>Ki,K0:()=>Y,Mx:()=>ct,NF:()=>xf,O5:()=>Ci,Ov:()=>Wt,PC:()=>Ps,RF:()=>An,S$:()=>fe,V_:()=>Q,Ye:()=>Ae,b0:()=>Le,bD:()=>Ei,ez:()=>Bs,mk:()=>Vn,n9:()=>qi,q:()=>L,sg:()=>Bn,w_:()=>q});var M=E(4650);let h=null;function L(){return h}function B(P){h||(h=P)}class q{}const Y=new M.OlP("DocumentToken");let ee=(()=>{class P{historyGo(I){throw new Error("Not implemented")}}return P.\u0275fac=function(I){return new(I||P)},P.\u0275prov=M.Yz7({token:P,factory:function(){return function W(){return(0,M.LFG)(G)}()},providedIn:"platform"}),P})();const Q=new M.OlP("Location Initialized");let G=(()=>{class P extends ee{constructor(I){super(),this._doc=I,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return L().getBaseHref(this._doc)}onPopState(I){const j=L().getGlobalEventTarget(this._doc,"window");return j.addEventListener("popstate",I,!1),()=>j.removeEventListener("popstate",I)}onHashChange(I){const j=L().getGlobalEventTarget(this._doc,"window");return j.addEventListener("hashchange",I,!1),()=>j.removeEventListener("hashchange",I)}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(I){this.location.pathname=I}pushState(I,j,ne){re()?this._history.pushState(I,j,ne):this.location.hash=ne}replaceState(I,j,ne){re()?this._history.replaceState(I,j,ne):this.location.hash=ne}forward(){this._history.forward()}back(){this._history.back()}historyGo(I=0){this._history.go(I)}getState(){return this._history.state}}return P.\u0275fac=function(I){return new(I||P)(M.LFG(Y))},P.\u0275prov=M.Yz7({token:P,factory:function(){return function oe(){return new G((0,M.LFG)(Y))}()},providedIn:"platform"}),P})();function re(){return!!window.history.pushState}function ie(P,O){if(0==P.length)return O;if(0==O.length)return P;let I=0;return P.endsWith("/")&&I++,O.startsWith("/")&&I++,2==I?P+O.substring(1):1==I?P+O:P+"/"+O}function ae(P){const O=P.match(/#|\?|$/),I=O&&O.index||P.length;return P.slice(0,I-("/"===P[I-1]?1:0))+P.slice(I)}function he(P){return P&&"?"!==P[0]?"?"+P:P}let fe=(()=>{class P{historyGo(I){throw new Error("Not implemented")}}return P.\u0275fac=function(I){return new(I||P)},P.\u0275prov=M.Yz7({token:P,factory:function(){return(0,M.f3M)(Le)},providedIn:"root"}),P})();const be=new M.OlP("appBaseHref");let Le=(()=>{class P extends fe{constructor(I,j){super(),this._platformLocation=I,this._removeListenerFns=[],this._baseHref=j??this._platformLocation.getBaseHrefFromDOM()??(0,M.f3M)(Y).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(I){this._removeListenerFns.push(this._platformLocation.onPopState(I),this._platformLocation.onHashChange(I))}getBaseHref(){return this._baseHref}prepareExternalUrl(I){return ie(this._baseHref,I)}path(I=!1){const j=this._platformLocation.pathname+he(this._platformLocation.search),ne=this._platformLocation.hash;return ne&&I?`${j}${ne}`:j}pushState(I,j,ne,me){const ue=this.prepareExternalUrl(ne+he(me));this._platformLocation.pushState(I,j,ue)}replaceState(I,j,ne,me){const ue=this.prepareExternalUrl(ne+he(me));this._platformLocation.replaceState(I,j,ue)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(I=0){this._platformLocation.historyGo?.(I)}}return P.\u0275fac=function(I){return new(I||P)(M.LFG(ee),M.LFG(be,8))},P.\u0275prov=M.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"}),P})(),je=(()=>{class P extends fe{constructor(I,j){super(),this._platformLocation=I,this._baseHref="",this._removeListenerFns=[],null!=j&&(this._baseHref=j)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(I){this._removeListenerFns.push(this._platformLocation.onPopState(I),this._platformLocation.onHashChange(I))}getBaseHref(){return this._baseHref}path(I=!1){let j=this._platformLocation.hash;return null==j&&(j="#"),j.length>0?j.substring(1):j}prepareExternalUrl(I){const j=ie(this._baseHref,I);return j.length>0?"#"+j:j}pushState(I,j,ne,me){let ue=this.prepareExternalUrl(ne+he(me));0==ue.length&&(ue=this._platformLocation.pathname),this._platformLocation.pushState(I,j,ue)}replaceState(I,j,ne,me){let ue=this.prepareExternalUrl(ne+he(me));0==ue.length&&(ue=this._platformLocation.pathname),this._platformLocation.replaceState(I,j,ue)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(I=0){this._platformLocation.historyGo?.(I)}}return P.\u0275fac=function(I){return new(I||P)(M.LFG(ee),M.LFG(be,8))},P.\u0275prov=M.Yz7({token:P,factory:P.\u0275fac}),P})(),Ae=(()=>{class P{constructor(I){this._subject=new M.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=I;const j=this._locationStrategy.getBaseHref();this._baseHref=ae(Ke(j)),this._locationStrategy.onPopState(ne=>{this._subject.emit({url:this.path(!0),pop:!0,state:ne.state,type:ne.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(I=!1){return this.normalize(this._locationStrategy.path(I))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(I,j=""){return this.path()==this.normalize(I+he(j))}normalize(I){return P.stripTrailingSlash(function xe(P,O){return P&&O.startsWith(P)?O.substring(P.length):O}(this._baseHref,Ke(I)))}prepareExternalUrl(I){return I&&"/"!==I[0]&&(I="/"+I),this._locationStrategy.prepareExternalUrl(I)}go(I,j="",ne=null){this._locationStrategy.pushState(ne,"",I,j),this._notifyUrlChangeListeners(this.prepareExternalUrl(I+he(j)),ne)}replaceState(I,j="",ne=null){this._locationStrategy.replaceState(ne,"",I,j),this._notifyUrlChangeListeners(this.prepareExternalUrl(I+he(j)),ne)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(I=0){this._locationStrategy.historyGo?.(I)}onUrlChange(I){return this._urlChangeListeners.push(I),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(j=>{this._notifyUrlChangeListeners(j.url,j.state)})),()=>{const j=this._urlChangeListeners.indexOf(I);this._urlChangeListeners.splice(j,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(I="",j){this._urlChangeListeners.forEach(ne=>ne(I,j))}subscribe(I,j,ne){return this._subject.subscribe({next:I,error:j,complete:ne})}}return P.normalizeQueryParams=he,P.joinWithSlash=ie,P.stripTrailingSlash=ae,P.\u0275fac=function(I){return new(I||P)(M.LFG(fe))},P.\u0275prov=M.Yz7({token:P,factory:function(){return function we(){return new Ae((0,M.LFG)(fe))}()},providedIn:"root"}),P})();function Ke(P){return P.replace(/\/index.html$/,"")}function ct(P,O){O=encodeURIComponent(O);for(const I of P.split(";")){const j=I.indexOf("="),[ne,me]=-1==j?[I,""]:[I.slice(0,j),I.slice(j+1)];if(ne.trim()===O)return decodeURIComponent(me)}return null}let Vn=(()=>{class P{constructor(I,j,ne,me){this._iterableDiffers=I,this._keyValueDiffers=j,this._ngEl=ne,this._renderer=me,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(I){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof I?I.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(I){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof I?I.split(/\s+/):I,this._rawClass&&((0,M.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const I=this._iterableDiffer.diff(this._rawClass);I&&this._applyIterableChanges(I)}else if(this._keyValueDiffer){const I=this._keyValueDiffer.diff(this._rawClass);I&&this._applyKeyValueChanges(I)}}_applyKeyValueChanges(I){I.forEachAddedItem(j=>this._toggleClass(j.key,j.currentValue)),I.forEachChangedItem(j=>this._toggleClass(j.key,j.currentValue)),I.forEachRemovedItem(j=>{j.previousValue&&this._toggleClass(j.key,!1)})}_applyIterableChanges(I){I.forEachAddedItem(j=>{if("string"!=typeof j.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,M.AaK)(j.item)}`);this._toggleClass(j.item,!0)}),I.forEachRemovedItem(j=>this._toggleClass(j.item,!1))}_applyClasses(I){I&&(Array.isArray(I)||I instanceof Set?I.forEach(j=>this._toggleClass(j,!0)):Object.keys(I).forEach(j=>this._toggleClass(j,!!I[j])))}_removeClasses(I){I&&(Array.isArray(I)||I instanceof Set?I.forEach(j=>this._toggleClass(j,!1)):Object.keys(I).forEach(j=>this._toggleClass(j,!1)))}_toggleClass(I,j){(I=I.trim())&&I.split(/\s+/g).forEach(ne=>{j?this._renderer.addClass(this._ngEl.nativeElement,ne):this._renderer.removeClass(this._ngEl.nativeElement,ne)})}}return P.\u0275fac=function(I){return new(I||P)(M.Y36(M.ZZ4),M.Y36(M.aQg),M.Y36(M.SBq),M.Y36(M.Qsj))},P.\u0275dir=M.lG2({type:P,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),P})();class ea{constructor(O,I,j,ne){this.$implicit=O,this.ngForOf=I,this.index=j,this.count=ne}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 Bn=(()=>{class P{constructor(I,j,ne){this._viewContainer=I,this._template=j,this._differs=ne,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(I){this._ngForOf=I,this._ngForOfDirty=!0}set ngForTrackBy(I){this._trackByFn=I}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(I){I&&(this._template=I)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const I=this._ngForOf;!this._differ&&I&&(this._differ=this._differs.find(I).create(this.ngForTrackBy))}if(this._differ){const I=this._differ.diff(this._ngForOf);I&&this._applyChanges(I)}}_applyChanges(I){const j=this._viewContainer;I.forEachOperation((ne,me,ue)=>{if(null==ne.previousIndex)j.createEmbeddedView(this._template,new ea(ne.item,this._ngForOf,-1,-1),null===ue?void 0:ue);else if(null==ue)j.remove(null===me?void 0:me);else if(null!==me){const We=j.get(me);j.move(We,ue),Zt(We,ne)}});for(let ne=0,me=j.length;ne{Zt(j.get(ne.currentIndex),ne)})}static ngTemplateContextGuard(I,j){return!0}}return P.\u0275fac=function(I){return new(I||P)(M.Y36(M.s_b),M.Y36(M.Rgc),M.Y36(M.ZZ4))},P.\u0275dir=M.lG2({type:P,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),P})();function Zt(P,O){P.context.$implicit=O.item}let Ci=(()=>{class P{constructor(I,j){this._viewContainer=I,this._context=new Ji,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=j}set ngIf(I){this._context.$implicit=this._context.ngIf=I,this._updateView()}set ngIfThen(I){Mr("ngIfThen",I),this._thenTemplateRef=I,this._thenViewRef=null,this._updateView()}set ngIfElse(I){Mr("ngIfElse",I),this._elseTemplateRef=I,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(I,j){return!0}}return P.\u0275fac=function(I){return new(I||P)(M.Y36(M.s_b),M.Y36(M.Rgc))},P.\u0275dir=M.lG2({type:P,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),P})();class Ji{constructor(){this.$implicit=null,this.ngIf=null}}function Mr(P,O){if(O&&!O.createEmbeddedView)throw new Error(`${P} must be a TemplateRef, but received '${(0,M.AaK)(O)}'.`)}class Dr{constructor(O,I){this._viewContainerRef=O,this._templateRef=I,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(O){O&&!this._created?this.create():!O&&this._created&&this.destroy()}}let An=(()=>{class P{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(I){this._ngSwitch=I,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(I){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(I)}_matchCase(I){const j=I==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||j,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),j}_updateDefaultCases(I){if(this._defaultViews&&I!==this._defaultUsed){this._defaultUsed=I;for(let j=0;j{class P{constructor(I,j,ne){this.ngSwitch=ne,ne._addCase(),this._view=new Dr(I,j)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return P.\u0275fac=function(I){return new(I||P)(M.Y36(M.s_b),M.Y36(M.Rgc),M.Y36(An,9))},P.\u0275dir=M.lG2({type:P,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),P})(),Ps=(()=>{class P{constructor(I,j,ne){this._ngEl=I,this._differs=j,this._renderer=ne,this._ngStyle=null,this._differ=null}set ngStyle(I){this._ngStyle=I,!this._differ&&I&&(this._differ=this._differs.find(I).create())}ngDoCheck(){if(this._differ){const I=this._differ.diff(this._ngStyle);I&&this._applyChanges(I)}}_setStyle(I,j){const[ne,me]=I.split("."),ue=-1===ne.indexOf("-")?void 0:M.JOm.DashCase;null!=j?this._renderer.setStyle(this._ngEl.nativeElement,ne,me?`${j}${me}`:j,ue):this._renderer.removeStyle(this._ngEl.nativeElement,ne,ue)}_applyChanges(I){I.forEachRemovedItem(j=>this._setStyle(j.key,null)),I.forEachAddedItem(j=>this._setStyle(j.key,j.currentValue)),I.forEachChangedItem(j=>this._setStyle(j.key,j.currentValue))}}return P.\u0275fac=function(I){return new(I||P)(M.Y36(M.SBq),M.Y36(M.aQg),M.Y36(M.Qsj))},P.\u0275dir=M.lG2({type:P,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),P})();class Da{createSubscription(O,I){return O.subscribe({next:I,error:j=>{throw j}})}dispose(O){O.unsubscribe()}}class bf{createSubscription(O,I){return O.then(I,j=>{throw j})}dispose(O){}}const v=new bf,Xt=new Da;let Wt=(()=>{class P{constructor(I){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=I}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(I){return this._obj?I!==this._obj?(this._dispose(),this.transform(I)):this._latestValue:(I&&this._subscribe(I),this._latestValue)}_subscribe(I){this._obj=I,this._strategy=this._selectStrategy(I),this._subscription=this._strategy.createSubscription(I,j=>this._updateLatestValue(I,j))}_selectStrategy(I){if((0,M.QGY)(I))return v;if((0,M.F4k)(I))return Xt;throw function yt(P,O){return new M.vHH(2100,!1)}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(I,j){I===this._obj&&(this._latestValue=j,this._ref.markForCheck())}}return P.\u0275fac=function(I){return new(I||P)(M.Y36(M.sBO,16))},P.\u0275pipe=M.Yjl({name:"async",type:P,pure:!1,standalone:!0}),P})(),Bs=(()=>{class P{}return P.\u0275fac=function(I){return new(I||P)},P.\u0275mod=M.oAB({type:P}),P.\u0275inj=M.cJS({}),P})();const Ei="browser";function xf(P){return P===Ei}let Os=(()=>{class P{}return P.\u0275prov=(0,M.Yz7)({token:P,providedIn:"root",factory:()=>new pn((0,M.LFG)(Y),window)}),P})();class pn{constructor(O,I){this.document=O,this.window=I,this.offset=()=>[0,0]}setOffset(O){this.offset=Array.isArray(O)?()=>O:O}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(O){this.supportsScrolling()&&this.window.scrollTo(O[0],O[1])}scrollToAnchor(O){if(!this.supportsScrolling())return;const I=function Cc(P,O){const I=P.getElementById(O)||P.getElementsByName(O)[0];if(I)return I;if("function"==typeof P.createTreeWalker&&P.body&&(P.body.createShadowRoot||P.body.attachShadow)){const j=P.createTreeWalker(P.body,NodeFilter.SHOW_ELEMENT);let ne=j.currentNode;for(;ne;){const me=ne.shadowRoot;if(me){const ue=me.getElementById(O)||me.querySelector(`[name="${O}"]`);if(ue)return ue}ne=j.nextNode()}}return null}(this.document,O);I&&(this.scrollToElement(I),I.focus())}setHistoryScrollRestoration(O){if(this.supportScrollRestoration()){const I=this.window.history;I&&I.scrollRestoration&&(I.scrollRestoration=O)}}scrollToElement(O){const I=O.getBoundingClientRect(),j=I.left+this.window.pageXOffset,ne=I.top+this.window.pageYOffset,me=this.offset();this.window.scrollTo(j-me[0],ne-me[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const O=nu(this.window.history)||nu(Object.getPrototypeOf(this.window.history));return!(!O||!O.writable&&!O.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function nu(P){return Object.getOwnPropertyDescriptor(P,"scrollRestoration")}class Ki{}},529:(N,z,E)=>{"use strict";E.d(z,{JF:()=>Kd,LE:()=>be,TP:()=>xt,WM:()=>Q,Zn:()=>_e,eN:()=>ke,qT:()=>je});var M=E(6895),h=E(4650),L=E(9646),F=E(9751),B=E(4351),q=E(9300),Y=E(4004);class ee{}class W{}class Q{constructor(X){this.normalizedNames=new Map,this.lazyUpdate=null,X?this.lazyInit="string"==typeof X?()=>{this.headers=new Map,X.split("\n").forEach($=>{const de=$.indexOf(":");if(de>0){const Ee=$.slice(0,de),nt=Ee.toLowerCase(),ht=$.slice(de+1).trim();this.maybeSetNormalizedName(Ee,nt),this.headers.has(nt)?this.headers.get(nt).push(ht):this.headers.set(nt,[ht])}})}:()=>{this.headers=new Map,Object.keys(X).forEach($=>{let de=X[$];const Ee=$.toLowerCase();"string"==typeof de&&(de=[de]),de.length>0&&(this.headers.set(Ee,de),this.maybeSetNormalizedName($,Ee))})}:this.headers=new Map}has(X){return this.init(),this.headers.has(X.toLowerCase())}get(X){this.init();const $=this.headers.get(X.toLowerCase());return $&&$.length>0?$[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(X){return this.init(),this.headers.get(X.toLowerCase())||null}append(X,$){return this.clone({name:X,value:$,op:"a"})}set(X,$){return this.clone({name:X,value:$,op:"s"})}delete(X,$){return this.clone({name:X,value:$,op:"d"})}maybeSetNormalizedName(X,$){this.normalizedNames.has($)||this.normalizedNames.set($,X)}init(){this.lazyInit&&(this.lazyInit instanceof Q?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(X=>this.applyUpdate(X)),this.lazyUpdate=null))}copyFrom(X){X.init(),Array.from(X.headers.keys()).forEach($=>{this.headers.set($,X.headers.get($)),this.normalizedNames.set($,X.normalizedNames.get($))})}clone(X){const $=new Q;return $.lazyInit=this.lazyInit&&this.lazyInit instanceof Q?this.lazyInit:this,$.lazyUpdate=(this.lazyUpdate||[]).concat([X]),$}applyUpdate(X){const $=X.name.toLowerCase();switch(X.op){case"a":case"s":let de=X.value;if("string"==typeof de&&(de=[de]),0===de.length)return;this.maybeSetNormalizedName(X.name,$);const Ee=("a"===X.op?this.headers.get($):void 0)||[];Ee.push(...de),this.headers.set($,Ee);break;case"d":const nt=X.value;if(nt){let ht=this.headers.get($);if(!ht)return;ht=ht.filter(Ne=>-1===nt.indexOf(Ne)),0===ht.length?(this.headers.delete($),this.normalizedNames.delete($)):this.headers.set($,ht)}else this.headers.delete($),this.normalizedNames.delete($)}}forEach(X){this.init(),Array.from(this.normalizedNames.keys()).forEach($=>X(this.normalizedNames.get($),this.headers.get($)))}}class re{encodeKey(X){return he(X)}encodeValue(X){return he(X)}decodeKey(X){return decodeURIComponent(X)}decodeValue(X){return decodeURIComponent(X)}}const ie=/%(\d[a-f0-9])/gi,ae={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function he(ye){return encodeURIComponent(ye).replace(ie,(X,$)=>ae[$]??X)}function fe(ye){return`${ye}`}class be{constructor(X={}){if(this.updates=null,this.cloneFrom=null,this.encoder=X.encoder||new re,X.fromString){if(X.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function oe(ye,X){const $=new Map;return ye.length>0&&ye.replace(/^\?/,"").split("&").forEach(Ee=>{const nt=Ee.indexOf("="),[ht,Ne]=-1==nt?[X.decodeKey(Ee),""]:[X.decodeKey(Ee.slice(0,nt)),X.decodeValue(Ee.slice(nt+1))],tt=$.get(ht)||[];tt.push(Ne),$.set(ht,tt)}),$}(X.fromString,this.encoder)}else X.fromObject?(this.map=new Map,Object.keys(X.fromObject).forEach($=>{const de=X.fromObject[$],Ee=Array.isArray(de)?de.map(fe):[fe(de)];this.map.set($,Ee)})):this.map=null}has(X){return this.init(),this.map.has(X)}get(X){this.init();const $=this.map.get(X);return $?$[0]:null}getAll(X){return this.init(),this.map.get(X)||null}keys(){return this.init(),Array.from(this.map.keys())}append(X,$){return this.clone({param:X,value:$,op:"a"})}appendAll(X){const $=[];return Object.keys(X).forEach(de=>{const Ee=X[de];Array.isArray(Ee)?Ee.forEach(nt=>{$.push({param:de,value:nt,op:"a"})}):$.push({param:de,value:Ee,op:"a"})}),this.clone($)}set(X,$){return this.clone({param:X,value:$,op:"s"})}delete(X,$){return this.clone({param:X,value:$,op:"d"})}toString(){return this.init(),this.keys().map(X=>{const $=this.encoder.encodeKey(X);return this.map.get(X).map(de=>$+"="+this.encoder.encodeValue(de)).join("&")}).filter(X=>""!==X).join("&")}clone(X){const $=new be({encoder:this.encoder});return $.cloneFrom=this.cloneFrom||this,$.updates=(this.updates||[]).concat(X),$}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(X=>this.map.set(X,this.cloneFrom.map.get(X))),this.updates.forEach(X=>{switch(X.op){case"a":case"s":const $=("a"===X.op?this.map.get(X.param):void 0)||[];$.push(fe(X.value)),this.map.set(X.param,$);break;case"d":if(void 0===X.value){this.map.delete(X.param);break}{let de=this.map.get(X.param)||[];const Ee=de.indexOf(fe(X.value));-1!==Ee&&de.splice(Ee,1),de.length>0?this.map.set(X.param,de):this.map.delete(X.param)}}}),this.cloneFrom=this.updates=null)}}class je{constructor(){this.map=new Map}set(X,$){return this.map.set(X,$),this}get(X){return this.map.has(X)||this.map.set(X,X.defaultValue()),this.map.get(X)}delete(X){return this.map.delete(X),this}has(X){return this.map.has(X)}keys(){return this.map.keys()}}function we(ye){return typeof ArrayBuffer<"u"&&ye instanceof ArrayBuffer}function xe(ye){return typeof Blob<"u"&&ye instanceof Blob}function Ke(ye){return typeof FormData<"u"&&ye instanceof FormData}class Re{constructor(X,$,de,Ee){let nt;if(this.url=$,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=X.toUpperCase(),function Ae(ye){switch(ye){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Ee?(this.body=void 0!==de?de:null,nt=Ee):nt=de,nt&&(this.reportProgress=!!nt.reportProgress,this.withCredentials=!!nt.withCredentials,nt.responseType&&(this.responseType=nt.responseType),nt.headers&&(this.headers=nt.headers),nt.context&&(this.context=nt.context),nt.params&&(this.params=nt.params)),this.headers||(this.headers=new Q),this.context||(this.context=new je),this.params){const ht=this.params.toString();if(0===ht.length)this.urlWithParams=$;else{const Ne=$.indexOf("?");this.urlWithParams=$+(-1===Ne?"?":Ne<$.length-1?"&":"")+ht}}else this.params=new be,this.urlWithParams=$}serializeBody(){return null===this.body?null:we(this.body)||xe(this.body)||Ke(this.body)||function Pe(ye){return typeof URLSearchParams<"u"&&ye instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof be?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||Ke(this.body)?null:xe(this.body)?this.body.type||null:we(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof be?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(X={}){const $=X.method||this.method,de=X.url||this.url,Ee=X.responseType||this.responseType,nt=void 0!==X.body?X.body:this.body,ht=void 0!==X.withCredentials?X.withCredentials:this.withCredentials,Ne=void 0!==X.reportProgress?X.reportProgress:this.reportProgress;let tt=X.headers||this.headers,ri=X.params||this.params;const wt=X.context??this.context;return void 0!==X.setHeaders&&(tt=Object.keys(X.setHeaders).reduce((un,rt)=>un.set(rt,X.setHeaders[rt]),tt)),X.setParams&&(ri=Object.keys(X.setParams).reduce((un,rt)=>un.set(rt,X.setParams[rt]),ri)),new Re($,de,nt,{params:ri,headers:tt,context:wt,reportProgress:Ne,responseType:Ee,withCredentials:ht})}}var De=(()=>((De=De||{})[De.Sent=0]="Sent",De[De.UploadProgress=1]="UploadProgress",De[De.ResponseHeader=2]="ResponseHeader",De[De.DownloadProgress=3]="DownloadProgress",De[De.Response=4]="Response",De[De.User=5]="User",De))();class le{constructor(X,$=200,de="OK"){this.headers=X.headers||new Q,this.status=void 0!==X.status?X.status:$,this.statusText=X.statusText||de,this.url=X.url||null,this.ok=this.status>=200&&this.status<300}}class ce extends le{constructor(X={}){super(X),this.type=De.ResponseHeader}clone(X={}){return new ce({headers:X.headers||this.headers,status:void 0!==X.status?X.status:this.status,statusText:X.statusText||this.statusText,url:X.url||this.url||void 0})}}class _e extends le{constructor(X={}){super(X),this.type=De.Response,this.body=void 0!==X.body?X.body:null}clone(X={}){return new _e({body:void 0!==X.body?X.body:this.body,headers:X.headers||this.headers,status:void 0!==X.status?X.status:this.status,statusText:X.statusText||this.statusText,url:X.url||this.url||void 0})}}class pe extends le{constructor(X){super(X,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${X.url||"(unknown url)"}`:`Http failure response for ${X.url||"(unknown url)"}: ${X.status} ${X.statusText}`,this.error=X.error||null}}function Be(ye,X){return{body:X,headers:ye.headers,context:ye.context,observe:ye.observe,params:ye.params,reportProgress:ye.reportProgress,responseType:ye.responseType,withCredentials:ye.withCredentials}}let ke=(()=>{class ye{constructor($){this.handler=$}request($,de,Ee={}){let nt;if($ instanceof Re)nt=$;else{let tt,ri;tt=Ee.headers instanceof Q?Ee.headers:new Q(Ee.headers),Ee.params&&(ri=Ee.params instanceof be?Ee.params:new be({fromObject:Ee.params})),nt=new Re($,de,void 0!==Ee.body?Ee.body:null,{headers:tt,context:Ee.context,params:ri,reportProgress:Ee.reportProgress,responseType:Ee.responseType||"json",withCredentials:Ee.withCredentials})}const ht=(0,L.of)(nt).pipe((0,B.b)(tt=>this.handler.handle(tt)));if($ instanceof Re||"events"===Ee.observe)return ht;const Ne=ht.pipe((0,q.h)(tt=>tt instanceof _e));switch(Ee.observe||"body"){case"body":switch(nt.responseType){case"arraybuffer":return Ne.pipe((0,Y.U)(tt=>{if(null!==tt.body&&!(tt.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return tt.body}));case"blob":return Ne.pipe((0,Y.U)(tt=>{if(null!==tt.body&&!(tt.body instanceof Blob))throw new Error("Response is not a Blob.");return tt.body}));case"text":return Ne.pipe((0,Y.U)(tt=>{if(null!==tt.body&&"string"!=typeof tt.body)throw new Error("Response is not a string.");return tt.body}));default:return Ne.pipe((0,Y.U)(tt=>tt.body))}case"response":return Ne;default:throw new Error(`Unreachable: unhandled observe type ${Ee.observe}}`)}}delete($,de={}){return this.request("DELETE",$,de)}get($,de={}){return this.request("GET",$,de)}head($,de={}){return this.request("HEAD",$,de)}jsonp($,de){return this.request("JSONP",$,{params:(new be).append(de,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options($,de={}){return this.request("OPTIONS",$,de)}patch($,de,Ee={}){return this.request("PATCH",$,Be(Ee,de))}post($,de,Ee={}){return this.request("POST",$,Be(Ee,de))}put($,de,Ee={}){return this.request("PUT",$,Be(Ee,de))}}return ye.\u0275fac=function($){return new($||ye)(h.LFG(ee))},ye.\u0275prov=h.Yz7({token:ye,factory:ye.\u0275fac}),ye})();class ut{constructor(X,$){this.next=X,this.interceptor=$}handle(X){return this.interceptor.intercept(X,this.next)}}const xt=new h.OlP("HTTP_INTERCEPTORS");let kt=(()=>{class ye{intercept($,de){return de.handle($)}}return ye.\u0275fac=function($){return new($||ye)},ye.\u0275prov=h.Yz7({token:ye,factory:ye.\u0275fac}),ye})();const Co=/^\)\]\}',?\n/;let wo=(()=>{class ye{constructor($){this.xhrFactory=$}handle($){if("JSONP"===$.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new F.y(de=>{const Ee=this.xhrFactory.build();if(Ee.open($.method,$.urlWithParams),$.withCredentials&&(Ee.withCredentials=!0),$.headers.forEach((Mt,Lt)=>Ee.setRequestHeader(Mt,Lt.join(","))),$.headers.has("Accept")||Ee.setRequestHeader("Accept","application/json, text/plain, */*"),!$.headers.has("Content-Type")){const Mt=$.detectContentTypeHeader();null!==Mt&&Ee.setRequestHeader("Content-Type",Mt)}if($.responseType){const Mt=$.responseType.toLowerCase();Ee.responseType="json"!==Mt?Mt:"text"}const nt=$.serializeBody();let ht=null;const Ne=()=>{if(null!==ht)return ht;const Mt=Ee.statusText||"OK",Lt=new Q(Ee.getAllResponseHeaders()),vn=function Jd(ye){return"responseURL"in ye&&ye.responseURL?ye.responseURL:/^X-Request-URL:/m.test(ye.getAllResponseHeaders())?ye.getResponseHeader("X-Request-URL"):null}(Ee)||$.url;return ht=new ce({headers:Lt,status:Ee.status,statusText:Mt,url:vn}),ht},tt=()=>{let{headers:Mt,status:Lt,statusText:vn,url:xr}=Ne(),Ai=null;204!==Lt&&(Ai=typeof Ee.response>"u"?Ee.responseText:Ee.response),0===Lt&&(Lt=Ai?200:0);let Kr=Lt>=200&&Lt<300;if("json"===$.responseType&&"string"==typeof Ai){const Zr=Ai;Ai=Ai.replace(Co,"");try{Ai=""!==Ai?JSON.parse(Ai):null}catch(Ea){Ai=Zr,Kr&&(Kr=!1,Ai={error:Ea,text:Ai})}}Kr?(de.next(new _e({body:Ai,headers:Mt,status:Lt,statusText:vn,url:xr||void 0})),de.complete()):de.error(new pe({error:Ai,headers:Mt,status:Lt,statusText:vn,url:xr||void 0}))},ri=Mt=>{const{url:Lt}=Ne(),vn=new pe({error:Mt,status:Ee.status||0,statusText:Ee.statusText||"Unknown Error",url:Lt||void 0});de.error(vn)};let wt=!1;const un=Mt=>{wt||(de.next(Ne()),wt=!0);let Lt={type:De.DownloadProgress,loaded:Mt.loaded};Mt.lengthComputable&&(Lt.total=Mt.total),"text"===$.responseType&&!!Ee.responseText&&(Lt.partialText=Ee.responseText),de.next(Lt)},rt=Mt=>{let Lt={type:De.UploadProgress,loaded:Mt.loaded};Mt.lengthComputable&&(Lt.total=Mt.total),de.next(Lt)};return Ee.addEventListener("load",tt),Ee.addEventListener("error",ri),Ee.addEventListener("timeout",ri),Ee.addEventListener("abort",ri),$.reportProgress&&(Ee.addEventListener("progress",un),null!==nt&&Ee.upload&&Ee.upload.addEventListener("progress",rt)),Ee.send(nt),de.next({type:De.Sent}),()=>{Ee.removeEventListener("error",ri),Ee.removeEventListener("abort",ri),Ee.removeEventListener("load",tt),Ee.removeEventListener("timeout",ri),$.reportProgress&&(Ee.removeEventListener("progress",un),null!==nt&&Ee.upload&&Ee.upload.removeEventListener("progress",rt)),Ee.readyState!==Ee.DONE&&Ee.abort()}})}}return ye.\u0275fac=function($){return new($||ye)(h.LFG(M.JF))},ye.\u0275prov=h.Yz7({token:ye,factory:ye.\u0275fac}),ye})();const er=new h.OlP("XSRF_COOKIE_NAME"),tr=new h.OlP("XSRF_HEADER_NAME");class xa{}let yo=(()=>{class ye{constructor($,de,Ee){this.doc=$,this.platform=de,this.cookieName=Ee,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const $=this.doc.cookie||"";return $!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,M.Mx)($,this.cookieName),this.lastCookieString=$),this.lastToken}}return ye.\u0275fac=function($){return new($||ye)(h.LFG(M.K0),h.LFG(h.Lbi),h.LFG(er))},ye.\u0275prov=h.Yz7({token:ye,factory:ye.\u0275fac}),ye})(),Ze=(()=>{class ye{constructor($,de){this.tokenService=$,this.headerName=de}intercept($,de){const Ee=$.url.toLowerCase();if("GET"===$.method||"HEAD"===$.method||Ee.startsWith("http://")||Ee.startsWith("https://"))return de.handle($);const nt=this.tokenService.getToken();return null!==nt&&!$.headers.has(this.headerName)&&($=$.clone({headers:$.headers.set(this.headerName,nt)})),de.handle($)}}return ye.\u0275fac=function($){return new($||ye)(h.LFG(xa),h.LFG(tr))},ye.\u0275prov=h.Yz7({token:ye,factory:ye.\u0275fac}),ye})(),bi=(()=>{class ye{constructor($,de){this.backend=$,this.injector=de,this.chain=null}handle($){if(null===this.chain){const de=this.injector.get(xt,[]);this.chain=de.reduceRight((Ee,nt)=>new ut(Ee,nt),this.backend)}return this.chain.handle($)}}return ye.\u0275fac=function($){return new($||ye)(h.LFG(W),h.LFG(h.zs3))},ye.\u0275prov=h.Yz7({token:ye,factory:ye.\u0275fac}),ye})(),Ta=(()=>{class ye{static disable(){return{ngModule:ye,providers:[{provide:Ze,useClass:kt}]}}static withOptions($={}){return{ngModule:ye,providers:[$.cookieName?{provide:er,useValue:$.cookieName}:[],$.headerName?{provide:tr,useValue:$.headerName}:[]]}}}return ye.\u0275fac=function($){return new($||ye)},ye.\u0275mod=h.oAB({type:ye}),ye.\u0275inj=h.cJS({providers:[Ze,{provide:xt,useExisting:Ze,multi:!0},{provide:xa,useClass:yo},{provide:er,useValue:"XSRF-TOKEN"},{provide:tr,useValue:"X-XSRF-TOKEN"}]}),ye})(),Kd=(()=>{class ye{}return ye.\u0275fac=function($){return new($||ye)},ye.\u0275mod=h.oAB({type:ye}),ye.\u0275inj=h.cJS({providers:[ke,{provide:ee,useClass:bi},wo,{provide:W,useExisting:wo}],imports:[Ta.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),ye})()},4650:(N,z,E)=>{"use strict";E.d(z,{$8M:()=>Ys,$Z:()=>_g,AFp:()=>Pp,ALo:()=>RA,AaK:()=>ee,AsE:()=>Wh,B6R:()=>xr,BQk:()=>gd,CHM:()=>$t,CRH:()=>yb,CZH:()=>wn,CqO:()=>o_,D6c:()=>R0,DdM:()=>AA,Dn7:()=>IA,EJc:()=>AE,EiD:()=>Uc,EpF:()=>ss,F$t:()=>c_,F4k:()=>a_,FYo:()=>la,FiY:()=>tl,G48:()=>IE,Gf:()=>wb,GfV:()=>Lm,GkF:()=>os,Gpc:()=>G,Gre:()=>E_,Hsn:()=>_n,Ikx:()=>Zh,JOm:()=>Ir,JVY:()=>vw,KtG:()=>On,L6k:()=>Aw,LAX:()=>Sw,LFG:()=>ti,LSH:()=>Go,Lbi:()=>Ip,Lck:()=>yA,MAs:()=>t_,MMx:()=>dp,NdJ:()=>Lr,O4$:()=>Ac,OlP:()=>Bt,Oqu:()=>cs,PXZ:()=>h0,Q6J:()=>kl,QGY:()=>_d,QP$:()=>Wl,QbO:()=>kp,Qsj:()=>Om,R0b:()=>cn,RDi:()=>ww,Rgc:()=>Md,SBq:()=>al,Sil:()=>l0,Suo:()=>bp,TTD:()=>xo,TgZ:()=>fd,Tol:()=>__,Udp:()=>Fh,VKq:()=>xA,WFA:()=>bd,WLB:()=>SA,XFs:()=>Ze,Xpm:()=>vn,Xts:()=>$o,Y36:()=>kr,YKP:()=>_s,YNc:()=>Ph,Yjl:()=>uc,Yz7:()=>Et,ZZ4:()=>ic,_Bn:()=>ro,_UZ:()=>n_,_Vd:()=>Jo,_c5:()=>oC,_uU:()=>y_,aQg:()=>Nd,c2e:()=>s0,cJS:()=>ui,cg1:()=>us,d8E:()=>H_,dDg:()=>EE,dqk:()=>de,eBb:()=>xw,eFA:()=>jp,ekj:()=>Uh,eoX:()=>Kl,f3M:()=>im,g9A:()=>Lb,h0i:()=>gs,hGG:()=>H0,hij:()=>yd,iGM:()=>Cb,ifc:()=>$,ip1:()=>Fi,kL8:()=>R_,kcU:()=>kf,lG2:()=>Zd,lcZ:()=>pp,lnq:()=>v_,lqb:()=>za,lri:()=>d0,mCW:()=>qo,n5z:()=>Gf,n_E:()=>fp,oAB:()=>Zr,oJD:()=>Sm,oxw:()=>l_,pB0:()=>Lc,q3G:()=>Qt,qLn:()=>Ga,qOj:()=>Eh,qZA:()=>Ih,qzn:()=>qa,rWj:()=>Nb,s9C:()=>d_,sBO:()=>_0,sIi:()=>is,s_b:()=>gp,soG:()=>Vp,tb:()=>Jl,tp0:()=>ra,uIk:()=>Zg,vHH:()=>ae,vpe:()=>zr,wAp:()=>Je,xDo:()=>x_,xi3:()=>PA,xp6:()=>ih,ynx:()=>md,z2F:()=>wa,z3N:()=>gn,zSh:()=>Bu,zs3:()=>da});var M=E(7579),h=E(727),L=E(9751),F=E(6451),B=E(3099);function q(_){for(let b in _)if(_[b]===q)return b;throw Error("Could not find renamed property on target object.")}function Y(_,b){for(const C in b)b.hasOwnProperty(C)&&!_.hasOwnProperty(C)&&(_[C]=b[C])}function ee(_){if("string"==typeof _)return _;if(Array.isArray(_))return"["+_.map(ee).join(", ")+"]";if(null==_)return""+_;if(_.overriddenName)return`${_.overriddenName}`;if(_.name)return`${_.name}`;const b=_.toString();if(null==b)return""+b;const C=b.indexOf("\n");return-1===C?b:b.substring(0,C)}function W(_,b){return null==_||""===_?null===b?"":b:null==b||""===b?_:_+" "+b}const Q=q({__forward_ref__:q});function G(_){return _.__forward_ref__=G,_.toString=function(){return ee(this())},_}function re(_){return oe(_)?_():_}function oe(_){return"function"==typeof _&&_.hasOwnProperty(Q)&&_.__forward_ref__===G}class ae extends Error{constructor(b,C){super(function he(_,b){return`NG0${Math.abs(_)}${b?": "+b.trim():""}`}(b,C)),this.code=b}}function fe(_){return"string"==typeof _?_:null==_?"":String(_)}function we(_,b){throw new ae(-201,!1)}function kt(_,b){null==_&&function Fe(_,b,C,y){throw new Error(`ASSERTION ERROR: ${_}`+(null==y?"":` [Expected=> ${C} ${y} ${b} <=Actual]`))}(b,_,null,"!=")}function Et(_){return{token:_.token,providedIn:_.providedIn||null,factory:_.factory,value:void 0}}function ui(_){return{providers:_.providers||[],imports:_.imports||[]}}function Jr(_){return dc(_,er)||dc(_,xa)}function dc(_,b){return _.hasOwnProperty(b)?_[b]:null}function wo(_){return _&&(_.hasOwnProperty(tr)||_.hasOwnProperty(yo))?_[tr]:null}const er=q({\u0275prov:q}),tr=q({\u0275inj:q}),xa=q({ngInjectableDef:q}),yo=q({ngInjectorDef:q});var Ze=(()=>((Ze=Ze||{})[Ze.Default=0]="Default",Ze[Ze.Host=1]="Host",Ze[Ze.Self=2]="Self",Ze[Ze.SkipSelf=4]="SkipSelf",Ze[Ze.Optional=8]="Optional",Ze))();let bi;function ki(_){const b=bi;return bi=_,b}function Ta(_,b,C){const y=Jr(_);return y&&"root"==y.providedIn?void 0===y.value?y.value=y.factory():y.value:C&Ze.Optional?null:void 0!==b?b:void we(ee(_))}function Pn(_){return{toString:_}.toString()}var Ti=(()=>((Ti=Ti||{})[Ti.OnPush=0]="OnPush",Ti[Ti.Default=1]="Default",Ti))(),$=(()=>{return(_=$||($={}))[_.Emulated=0]="Emulated",_[_.None=2]="None",_[_.ShadowDom=3]="ShadowDom",$;var _})();const de=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),ht={},Ne=[],tt=q({\u0275cmp:q}),ri=q({\u0275dir:q}),wt=q({\u0275pipe:q}),un=q({\u0275mod:q}),rt=q({\u0275fac:q}),Mt=q({__NG_ELEMENT_ID__:q});let Lt=0;function vn(_){return Pn(()=>{const C=!0===_.standalone,y={},x={type:_.type,providersResolver:null,decls:_.decls,vars:_.vars,factory:null,template:_.template||null,consts:_.consts||null,ngContentSelectors:_.ngContentSelectors,hostBindings:_.hostBindings||null,hostVars:_.hostVars||0,hostAttrs:_.hostAttrs||null,contentQueries:_.contentQueries||null,declaredInputs:y,inputs:null,outputs:null,exportAs:_.exportAs||null,onPush:_.changeDetection===Ti.OnPush,directiveDefs:null,pipeDefs:null,standalone:C,dependencies:C&&_.dependencies||null,getStandaloneInjector:null,selectors:_.selectors||Ne,viewQuery:_.viewQuery||null,features:_.features||null,data:_.data||{},encapsulation:_.encapsulation||$.Emulated,id:"c"+Lt++,styles:_.styles||Ne,_:null,setInput:null,schemas:_.schemas||null,tView:null},S=_.dependencies,T=_.features;return x.inputs=vo(_.inputs,y),x.outputs=vo(_.outputs),T&&T.forEach(D=>D(x)),x.directiveDefs=S?()=>("function"==typeof S?S():S).map(Ai).filter(Kr):null,x.pipeDefs=S?()=>("function"==typeof S?S():S).map(Bi).filter(Kr):null,x})}function xr(_,b,C){const y=_.\u0275cmp;y.directiveDefs=()=>("function"==typeof b?b():b).map(Ai),y.pipeDefs=()=>("function"==typeof C?C():C).map(Bi)}function Ai(_){return St(_)||Vi(_)}function Kr(_){return null!==_}function Zr(_){return Pn(()=>({type:_.type,bootstrap:_.bootstrap||Ne,declarations:_.declarations||Ne,imports:_.imports||Ne,exports:_.exports||Ne,transitiveCompileScopes:null,schemas:_.schemas||null,id:_.id||null}))}function vo(_,b){if(null==_)return ht;const C={};for(const y in _)if(_.hasOwnProperty(y)){let x=_[y],S=x;Array.isArray(x)&&(S=x[1],x=x[0]),C[x]=y,b&&(b[x]=S)}return C}const Zd=vn;function uc(_){return{type:_.type,name:_.name,factory:null,pure:!1!==_.pure,standalone:!0===_.standalone,onDestroy:_.type.prototype.ngOnDestroy||null}}function St(_){return _[tt]||null}function Vi(_){return _[ri]||null}function Bi(_){return _[wt]||null}function Yi(_,b){const C=_[un]||null;if(!C&&!0===b)throw new Error(`Type ${ee(_)} does not have '\u0275mod' property.`);return C}function Ci(_){return Array.isArray(_)&&"object"==typeof _[1]}function Ji(_){return Array.isArray(_)&&!0===_[1]}function Mr(_){return 0!=(8&_.flags)}function Dr(_){return 2==(2&_.flags)}function An(_){return 1==(1&_.flags)}function qi(_){return null!==_.template}function hc(_){return 0!=(256&_[2])}function Hr(_,b){return _.hasOwnProperty(rt)?_[rt]:null}class tu{constructor(b,C,y){this.previousValue=b,this.currentValue=C,this.firstChange=y}isFirstChange(){return this.firstChange}}function xo(){return fc}function fc(_){return _.type.prototype.ngOnChanges&&(_.setInput=mc),Vs}function Vs(){const _=To(this),b=_?.current;if(b){const C=_.previous;if(C===ht)_.previous=b;else for(let y in b)C[y]=b[y];_.current=null,this.ngOnChanges(b)}}function mc(_,b,C,y){const x=To(_)||function iu(_,b){return _[So]=b}(_,{previous:ht,current:null}),S=x.current||(x.current={}),T=x.previous,D=this.declaredInputs[C],H=T[D];S[D]=new tu(H&&H.currentValue,b,T===ht),_[y]=b}xo.ngInherit=!0;const So="__ngSimpleChanges__";function To(_){return _[So]||null}function pi(_){for(;Array.isArray(_);)_=_[0];return _}function Os(_,b){return pi(b[_])}function pn(_,b){return pi(b[_.index])}function Cc(_,b){return _.data[b]}function Eo(_,b){return _[b]}function Ki(_,b){const C=b[_];return Ci(C)?C:C[0]}function P(_){return 4==(4&_[2])}function O(_){return 64==(64&_[2])}function j(_,b){return null==b?null:_[b]}function ne(_){_[18]=0}function me(_,b){_[5]+=b;let C=_,y=_[3];for(;null!==y&&(1===b&&1===C[5]||-1===b&&0===C[5]);)y[5]+=b,C=y,y=y[3]}const ue={lFrame:Hf(null),bindingsEnabled:!0};function wi(){return ue.bindingsEnabled}function ge(){return ue.lFrame.lView}function $e(){return ue.lFrame.tView}function $t(_){return ue.lFrame.contextLView=_,_[8]}function On(_){return ue.lFrame.contextLView=null,_}function Vt(){let _=Mo();for(;null!==_&&64===_.type;)_=_.parent;return _}function Mo(){return ue.lFrame.currentTNode}function Oi(_,b){const C=ue.lFrame;C.currentTNode=_,C.isParent=b}function Yt(){return ue.lFrame.isParent}function fn(){ue.lFrame.isParent=!1}function ei(){const _=ue.lFrame;let b=_.bindingRootIndex;return-1===b&&(b=_.bindingRootIndex=_.tView.bindingStartIndex),b}function Rt(){return ue.lFrame.bindingIndex}function Do(){return ue.lFrame.bindingIndex++}function rr(_){const b=ue.lFrame,C=b.bindingIndex;return b.bindingIndex=b.bindingIndex+_,C}function au(_,b){const C=ue.lFrame;C.bindingIndex=C.bindingRootIndex=_,wc(b)}function wc(_){ue.lFrame.currentDirectiveIndex=_}function ou(_){const b=ue.lFrame.currentDirectiveIndex;return-1===b?null:_[b]}function Df(){return ue.lFrame.currentQueryIndex}function Ha(_){ue.lFrame.currentQueryIndex=_}function yc(_){const b=_[1];return 2===b.type?b.declTNode:1===b.type?_[6]:null}function ft(_,b,C){if(C&Ze.SkipSelf){let x=b,S=_;for(;!(x=x.parent,null!==x||C&Ze.Host||(x=yc(S),null===x||(S=S[15],10&x.type))););if(null===x)return!1;b=x,_=S}const y=ue.lFrame=Ra();return y.currentTNode=b,y.lView=_,!0}function su(_){const b=Ra(),C=_[1];ue.lFrame=b,b.currentTNode=C.firstChild,b.lView=_,b.tView=C,b.contextLView=_,b.bindingIndex=C.bindingStartIndex,b.inI18n=!1}function Ra(){const _=ue.lFrame,b=null===_?null:_.child;return null===b?Hf(_):b}function Hf(_){const b={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:_,child:null,inI18n:!1};return null!==_&&(_.child=b),b}function Rf(){const _=ue.lFrame;return ue.lFrame=_.parent,_.currentTNode=null,_.lView=null,_}const Ln=Rf;function vc(){const _=Rf();_.isParent=!0,_.tView=null,_.selectedIndex=-1,_.contextLView=null,_.elementDepthCount=0,_.currentDirectiveIndex=-1,_.currentNamespace=null,_.bindingRootIndex=-1,_.bindingIndex=-1,_.currentQueryIndex=0}function en(){return ue.lFrame.selectedIndex}function qt(_){ue.lFrame.selectedIndex=_}function Tt(){const _=ue.lFrame;return Cc(_.tView,_.selectedIndex)}function Ac(){ue.lFrame.currentNamespace="svg"}function kf(){!function Vf(){ue.lFrame.currentNamespace=null}()}function Ls(_,b){for(let C=b.directiveStart,y=b.directiveEnd;C=y)break}else b[H]<0&&(_[18]+=65536),(D>11<_[18]>>16&&(3&_[2])===b){_[2]+=2048;try{S.call(D)}finally{}}}else try{S.call(D)}finally{}}class Rr{constructor(b,C,y){this.factory=b,this.resolving=!1,this.canSeeViewProviders=C,this.injectImpl=y}}function Ns(_,b,C){let y=0;for(;yb){T=S-1;break}}}for(;S<_.length;){const D=_[S];if("number"==typeof D)break;if(D===C){if(null===y)return void(null!==x&&(_[S+1]=x));if(y===_[S+1])return void(_[S+2]=x)}S++,null!==y&&S++,null!==x&&S++}-1!==T&&(_.splice(T,0,b),S=T+1),_.splice(S++,0,C),null!==y&&_.splice(S++,0,y),null!==x&&_.splice(S++,0,x)}function du(_){return-1!==_}function ka(_){return 32767&_}function Ro(_,b){let C=function aw(_){return _>>16}(_),y=b;for(;C>0;)y=y[15],C--;return y}let uu=!0;function Va(_){const b=uu;return uu=_,b}let ow=0;const ar={};function ta(_,b){const C=Pr(_,b);if(-1!==C)return C;const y=b[1];y.firstCreatePass&&(_.injectorIndex=b.length,pu(y.data,_),pu(b,null),pu(y.blueprint,null));const x=Po(_,b),S=_.injectorIndex;if(du(x)){const T=ka(x),D=Ro(x,b),H=D[1].data;for(let k=0;k<8;k++)b[S+k]=D[T+k]|H[T+k]}return b[S+8]=x,S}function pu(_,b){_.push(0,0,0,0,0,0,0,0,b)}function Pr(_,b){return-1===_.injectorIndex||_.parent&&_.parent.injectorIndex===_.injectorIndex||null===b[_.injectorIndex+8]?-1:_.injectorIndex}function Po(_,b){if(_.parent&&-1!==_.parent.injectorIndex)return _.parent.injectorIndex;let C=0,y=null,x=b;for(;null!==x;){if(y=Wf(x),null===y)return-1;if(C++,x=x[15],-1!==y.injectorIndex)return y.injectorIndex|C<<16}return-1}function fu(_,b,C){!function hu(_,b,C){let y;"string"==typeof C?y=C.charCodeAt(0)||0:C.hasOwnProperty(Mt)&&(y=C[Mt]),null==y&&(y=C[Mt]=ow++);const x=255&y;b.data[_+(x>>5)]|=1<=0?255&b:zf:b}(C);if("function"==typeof S){if(!ft(b,_,y))return y&Ze.Host?Ff(x,0,y):Uf(b,C,y,x);try{const T=S(y);if(null!=T||y&Ze.Optional)return T;we()}finally{Ln()}}else if("number"==typeof S){let T=null,D=Pr(_,b),H=-1,k=y&Ze.Host?b[16][6]:null;for((-1===D||y&Ze.SkipSelf)&&(H=-1===D?Po(_,b):b[D+8],-1!==H&&qf(y,!1)?(T=b[1],D=ka(H),b=Ro(H,b)):D=-1);-1!==D;){const V=b[1];if(Ba(S,D,V.data)){const U=Vo(D,b,C,T,y,k);if(U!==ar)return U}H=b[D+8],-1!==H&&qf(y,b[1].data[D+8]===k)&&Ba(S,D,b)?(T=V,D=ka(H),b=Ro(H,b)):D=-1}}return x}function Vo(_,b,C,y,x,S){const T=b[1],D=T.data[_+8],V=Gs(D,T,C,null==y?Dr(D)&&uu:y!=T&&0!=(3&D.type),x&Ze.Host&&S===D);return null!==V?Bo(b,T,V,D):ar}function Gs(_,b,C,y,x){const S=_.providerIndexes,T=b.data,D=1048575&S,H=_.directiveStart,V=S>>20,te=x?D+V:_.directiveEnd;for(let se=y?D:D+V;se=H&&Ce.type===C)return se}if(x){const se=T[H];if(se&&qi(se)&&se.type===C)return H}return null}function Bo(_,b,C,y){let x=_[C];const S=b.data;if(function nw(_){return _ instanceof Rr}(x)){const T=x;T.resolving&&function Le(_,b){const C=b?`. Dependency path: ${b.join(" > ")} > ${_}`:"";throw new ae(-200,`Circular dependency in DI detected for ${_}${C}`)}(function be(_){return"function"==typeof _?_.name||_.toString():"object"==typeof _&&null!=_&&"function"==typeof _.type?_.type.name||_.type.toString():fe(_)}(S[C]));const D=Va(T.canSeeViewProviders);T.resolving=!0;const H=T.injectImpl?ki(T.injectImpl):null;ft(_,y,Ze.Default);try{x=_[C]=T.factory(void 0,S,_,y),b.firstCreatePass&&C>=y.directiveStart&&function iw(_,b,C){const{ngOnChanges:y,ngOnInit:x,ngDoCheck:S}=b.type.prototype;if(y){const T=fc(b);(C.preOrderHooks||(C.preOrderHooks=[])).push(_,T),(C.preOrderCheckHooks||(C.preOrderCheckHooks=[])).push(_,T)}x&&(C.preOrderHooks||(C.preOrderHooks=[])).push(0-_,x),S&&((C.preOrderHooks||(C.preOrderHooks=[])).push(_,S),(C.preOrderCheckHooks||(C.preOrderCheckHooks=[])).push(_,S))}(C,S[C],b)}finally{null!==H&&ki(H),Va(D),T.resolving=!1,Ln()}}return x}function Ba(_,b,C){return!!(C[b+(_>>5)]&1<<_)}function qf(_,b){return!(_&Ze.Self||_&Ze.Host&&b)}class Oo{constructor(b,C){this._tNode=b,this._lView=C}get(b,C,y){return Io(this._tNode,this._lView,b,y,C)}}function zf(){return new Oo(Vt(),ge())}function Gf(_){return Pn(()=>{const b=_.prototype.constructor,C=b[rt]||Ws(b),y=Object.prototype;let x=Object.getPrototypeOf(_.prototype).constructor;for(;x&&x!==y;){const S=x[rt]||Ws(x);if(S&&S!==C)return S;x=Object.getPrototypeOf(x)}return S=>new S})}function Ws(_){return oe(_)?()=>{const b=Ws(re(_));return b&&b()}:Hr(_)}function Wf(_){const b=_[1],C=b.type;return 2===C?b.declTNode:1===C?_[6]:null}function Ys(_){return function sw(_,b){if("class"===b)return _.classes;if("style"===b)return _.styles;const C=_.attrs;if(C){const y=C.length;let x=0;for(;x{const y=function Qs(_){return function(...C){if(_){const y=_(...C);for(const x in y)this[x]=y[x]}}}(b);function x(...S){if(this instanceof x)return y.apply(this,S),this;const T=new x(...S);return D.annotation=T,D;function D(H,k,V){const U=H.hasOwnProperty(Oa)?H[Oa]:Object.defineProperty(H,Oa,{value:[]})[Oa];for(;U.length<=V;)U.push(null);return(U[V]=U[V]||[]).push(T),H}}return C&&(x.prototype=Object.create(C.prototype)),x.prototype.ngMetadataName=_,x.annotationCls=x,x})}class Bt{constructor(b,C){this._desc=b,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof C?this.__NG_ELEMENT_ID__=C:void 0!==C&&(this.\u0275prov=Et({token:this,providedIn:C.providedIn||"root",factory:C.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function si(_,b){void 0===b&&(b=_);for(let C=0;C<_.length;C++){let y=_[C];Array.isArray(y)?(b===_&&(b=_.slice(0,C)),si(y,b)):b!==_&&b.push(y)}return b}function tn(_,b){_.forEach(C=>Array.isArray(C)?tn(C,b):b(C))}function bu(_,b,C){b>=_.length?_.push(C):_.splice(b,0,C)}function Ks(_,b){return b>=_.length-1?_.pop():_.splice(b,1)[0]}function Zs(_,b){const C=[];for(let y=0;y<_;y++)C.push(b);return C}function nn(_,b,C){let y=ia(_,b);return y>=0?_[1|y]=C:(y=~y,function lw(_,b,C,y){let x=_.length;if(x==b)_.push(C,y);else if(1===x)_.push(y,_[0]),_[0]=C;else{for(x--,_.push(_[x-1],_[x]);x>b;)_[x]=_[x-2],x--;_[b]=C,_[b+1]=y}}(_,y,b,C)),y}function Xs(_,b){const C=ia(_,b);if(C>=0)return _[1|C]}function ia(_,b){return function Fo(_,b,C){let y=0,x=_.length>>C;for(;x!==y;){const S=y+(x-y>>1),T=_[S<b?x=S:y=S+1}return~(x<_,createScript:_=>_,createScriptURL:_=>_})}catch{}return kc}()?.createHTML(_)||_}function pm(_){return function Eu(){if(void 0===Na&&(Na=null,de.trustedTypes))try{Na=de.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:_=>_,createScript:_=>_,createScriptURL:_=>_})}catch{}return Na}()?.createHTML(_)||_}class lr{constructor(b){this.changingThisBreaksApplicationSecurity=b}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class gm extends lr{getTypeName(){return"HTML"}}class _m extends lr{getTypeName(){return"Style"}}class Bc extends lr{getTypeName(){return"Script"}}class Oc extends lr{getTypeName(){return"URL"}}class bm extends lr{getTypeName(){return"ResourceURL"}}function gn(_){return _ instanceof lr?_.changingThisBreaksApplicationSecurity:_}function qa(_,b){const C=function yw(_){return _ instanceof lr&&_.getTypeName()||null}(_);if(null!=C&&C!==b){if("ResourceURL"===C&&"URL"===b)return!0;throw new Error(`Required a safe ${b}, got a ${C} (see https://g.co/ng/security#xss)`)}return C===b}function vw(_){return new gm(_)}function Aw(_){return new _m(_)}function xw(_){return new Bc(_)}function Sw(_){return new Oc(_)}function Lc(_){return new bm(_)}class Tw{constructor(b){this.inertDocumentHelper=b}getInertBodyElement(b){b=""+b;try{const C=(new window.DOMParser).parseFromString(No(b),"text/html").body;return null===C?this.inertDocumentHelper.getInertBodyElement(b):(C.removeChild(C.firstChild),C)}catch{return null}}}class Ew{constructor(b){if(this.defaultDoc=b,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const C=this.inertDocument.createElement("html");this.inertDocument.appendChild(C);const y=this.inertDocument.createElement("body");C.appendChild(y)}}getInertBodyElement(b){const C=this.inertDocument.createElement("template");if("content"in C)return C.innerHTML=No(b),C;const y=this.inertDocument.createElement("body");return y.innerHTML=No(b),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(y),y}stripCustomNsAttrs(b){const C=b.attributes;for(let x=C.length-1;0qo(b.trim())).join(", ")),this.buf.push(" ",T,'="',xm(H),'"')}var _;return this.buf.push(">"),!0}endElement(b){const C=b.nodeName.toLowerCase();Ru.hasOwnProperty(C)&&!Mu.hasOwnProperty(C)&&(this.buf.push(""))}chars(b){this.buf.push(xm(b))}checkClobberedElement(b,C){if(C&&(b.compareDocumentPosition(C)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${b.outerHTML}`);return C}}const Pw=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Iw=/([^\#-~ |!])/g;function xm(_){return _.replace(/&/g,"&").replace(Pw,function(b){return"&#"+(1024*(b.charCodeAt(0)-55296)+(b.charCodeAt(1)-56320)+65536)+";"}).replace(Iw,function(b){return"&#"+b.charCodeAt(0)+";"}).replace(//g,">")}let Fc;function Uc(_,b){let C=null;try{Fc=Fc||function Cm(_){const b=new Ew(_);return function Mw(){try{return!!(new window.DOMParser).parseFromString(No(""),"text/html")}catch{return!1}}()?new Tw(b):b}(_);let y=b?String(b):"";C=Fc.getInertBodyElement(y);let x=5,S=y;do{if(0===x)throw new Error("Failed to sanitize html because the input is unstable");x--,y=S,S=C.innerHTML,C=Fc.getInertBodyElement(y)}while(y!==S);return No((new Am).sanitizeChildren(Nc(C)||C))}finally{if(C){const y=Nc(C)||C;for(;y.firstChild;)y.removeChild(y.firstChild)}}}function Nc(_){return"content"in _&&function ku(_){return _.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===_.nodeName}(_)?_.content:null}var Qt=(()=>((Qt=Qt||{})[Qt.NONE=0]="NONE",Qt[Qt.HTML=1]="HTML",Qt[Qt.STYLE=2]="STYLE",Qt[Qt.SCRIPT=3]="SCRIPT",Qt[Qt.URL=4]="URL",Qt[Qt.RESOURCE_URL=5]="RESOURCE_URL",Qt))();function Sm(_){const b=Wo();return b?pm(b.sanitize(Qt.HTML,_)||""):qa(_,"HTML")?pm(gn(_)):Uc(function dm(){return void 0!==Su?Su:typeof document<"u"?document:void 0}(),fe(_))}function Go(_){const b=Wo();return b?b.sanitize(Qt.URL,_)||"":qa(_,"URL")?gn(_):qo(fe(_))}function Wo(){const _=ge();return _&&_[12]}const $o=new Bt("ENVIRONMENT_INITIALIZER"),rl=new Bt("INJECTOR",-1),Mm=new Bt("INJECTOR_DEF_TYPES");class Dm{get(b,C=na){if(C===na){const y=new Error(`NullInjectorError: No provider for ${ee(b)}!`);throw y.name="NullInjectorError",y}return C}}function Hm(..._){return{\u0275providers:jw(0,_)}}function jw(_,...b){const C=[],y=new Set;let x;return tn(b,S=>{const T=S;qc(T,C,[],y)&&(x||(x=[]),x.push(T))}),void 0!==x&&Rm(x,C),C}function Rm(_,b){for(let C=0;C<_.length;C++){const{providers:x}=_[C];tn(x,S=>{b.push(S)})}}function qc(_,b,C,y){if(!(_=re(_)))return!1;let x=null,S=wo(_);const T=!S&&St(_);if(S||T){if(T&&!T.standalone)return!1;x=_}else{const H=_.ngModule;if(S=wo(H),!S)return!1;x=H}const D=y.has(x);if(T){if(D)return!1;if(y.add(x),T.dependencies){const H="function"==typeof T.dependencies?T.dependencies():T.dependencies;for(const k of H)qc(k,b,C,y)}}else{if(!S)return!1;{if(null!=S.imports&&!D){let k;y.add(x);try{tn(S.imports,V=>{qc(V,b,C,y)&&(k||(k=[]),k.push(V))})}finally{}void 0!==k&&Rm(k,b)}if(!D){const k=Hr(x)||(()=>new x);b.push({provide:x,useFactory:k,deps:Ne},{provide:Mm,useValue:x,multi:!0},{provide:$o,useValue:()=>ti(x),multi:!0})}const H=S.providers;null==H||D||tn(H,V=>{b.push(V)})}}return x!==_&&void 0!==_.providers}const Uw=q({provide:String,useValue:q});function cr(_){return null!==_&&"object"==typeof _&&Uw in _}function sa(_){return"function"==typeof _}const Bu=new Bt("Set Injector scope."),zc={},Gc={};let Ou;function Wc(){return void 0===Ou&&(Ou=new Dm),Ou}class za{}class Pm extends za{constructor(b,C,y,x){super(),this.parent=C,this.source=y,this.scopes=x,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,ju(b,T=>this.processProvider(T)),this.records.set(rl,Yo(void 0,this)),x.has("environment")&&this.records.set(za,Yo(void 0,this));const S=this.records.get(Bu);null!=S&&"string"==typeof S.value&&this.scopes.add(S.value),this.injectorDefTypes=new Set(this.get(Mm.multi,Ne,Ze.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const b of this._ngOnDestroyHooks)b.ngOnDestroy();for(const b of this._onDestroyHooks)b()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(b){this._onDestroyHooks.push(b)}runInContext(b){this.assertNotDestroyed();const C=el(this),y=ki(void 0);try{return b()}finally{el(C),ki(y)}}get(b,C=na,y=Ze.Default){this.assertNotDestroyed();const x=el(this),S=ki(void 0);try{if(!(y&Ze.SkipSelf)){let D=this.records.get(b);if(void 0===D){const H=function Lu(_){return"function"==typeof _||"object"==typeof _&&_ instanceof Bt}(b)&&Jr(b);D=H&&this.injectableDefInScope(H)?Yo($c(b),zc):null,this.records.set(b,D)}if(null!=D)return this.hydrate(b,D)}return(y&Ze.Self?Wc():this.parent).get(b,C=y&Ze.Optional&&C===na?null:C)}catch(T){if("NullInjectorError"===T.name){if((T[Pc]=T[Pc]||[]).unshift(ee(b)),x)throw T;return function nm(_,b,C,y){const x=_[Pc];throw b[pw]&&x.unshift(b[pw]),_.message=function rm(_,b,C,y=null){_=_&&"\n"===_.charAt(0)&&"\u0275"==_.charAt(1)?_.slice(2):_;let x=ee(b);if(Array.isArray(b))x=b.map(ee).join(" -> ");else if("object"==typeof b){let S=[];for(let T in b)if(b.hasOwnProperty(T)){let D=b[T];S.push(T+":"+("string"==typeof D?JSON.stringify(D):ee(D)))}x=`{${S.join(", ")}}`}return`${C}${y?"("+y+")":""}[${x}]: ${_.replace(Xf,"\n ")}`}("\n"+_.message,x,C,y),_.ngTokenPath=x,_[Pc]=null,_}(T,b,"R3InjectorError",this.source)}throw T}finally{ki(S),el(x)}}resolveInjectorInitializers(){const b=el(this),C=ki(void 0);try{const y=this.get($o.multi,Ne,Ze.Self);for(const x of y)x()}finally{el(b),ki(C)}}toString(){const b=[],C=this.records;for(const y of C.keys())b.push(ee(y));return`R3Injector[${b.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ae(205,!1)}processProvider(b){let C=sa(b=re(b))?b:re(b&&b.provide);const y=function Im(_){return cr(_)?Yo(void 0,_.useValue):Yo(km(_),zc)}(b);if(sa(b)||!0!==b.multi)this.records.get(C);else{let x=this.records.get(C);x||(x=Yo(void 0,zc,!0),x.factory=()=>yu(x.multi),this.records.set(C,x)),C=b,x.multi.push(b)}this.records.set(C,y)}hydrate(b,C){return C.value===zc&&(C.value=Gc,C.value=C.factory()),"object"==typeof C.value&&C.value&&function Gw(_){return null!==_&&"object"==typeof _&&"function"==typeof _.ngOnDestroy}(C.value)&&this._ngOnDestroyHooks.add(C.value),C.value}injectableDefInScope(b){if(!b.providedIn)return!1;const C=re(b.providedIn);return"string"==typeof C?"any"===C||this.scopes.has(C):this.injectorDefTypes.has(C)}}function $c(_){const b=Jr(_),C=null!==b?b.factory:Hr(_);if(null!==C)return C;if(_ instanceof Bt)throw new ae(204,!1);if(_ instanceof Function)return function zw(_){const b=_.length;if(b>0)throw Zs(b,"?"),new ae(204,!1);const C=function Co(_){const b=_&&(_[er]||_[xa]);if(b){const C=function Jd(_){if(_.hasOwnProperty("name"))return _.name;const b=(""+_).match(/^function\s*([^\s(]+)/);return null===b?"":b[1]}(_);return console.warn(`DEPRECATED: DI is instantiating a token "${C}" 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 "${C}" class.`),b}return null}(_);return null!==C?()=>C.factory(_):()=>new _}(_);throw new ae(204,!1)}function km(_,b,C){let y;if(sa(_)){const x=re(_);return Hr(x)||$c(x)}if(cr(_))y=()=>re(_.useValue);else if(function Vu(_){return!(!_||!_.useFactory)}(_))y=()=>_.useFactory(...yu(_.deps||[]));else if(function Nw(_){return!(!_||!_.useExisting)}(_))y=()=>ti(re(_.useExisting));else{const x=re(_&&(_.useClass||_.provide));if(!function Vm(_){return!!_.deps}(_))return Hr(x)||$c(x);y=()=>new x(...yu(_.deps))}return y}function Yo(_,b,C=!1){return{factory:_,value:b,multi:C?[]:void 0}}function Ww(_){return!!_.\u0275providers}function ju(_,b){for(const C of _)Array.isArray(C)?ju(C,b):Ww(C)?ju(C.\u0275providers,b):b(C)}class Yw{}class Qo{resolveComponentFactory(b){throw function Fu(_){const b=Error(`No component factory found for ${ee(_)}. Did you add it to @NgModule.entryComponents?`);return b.ngComponent=_,b}(b)}}let Jo=(()=>{class _{}return _.NULL=new Qo,_})();function Bm(){return dr(Vt(),ge())}function dr(_,b){return new al(pn(_,b))}let al=(()=>{class _{constructor(C){this.nativeElement=C}}return _.__NG_ELEMENT_ID__=Bm,_})();function ur(_){return _ instanceof al?_.nativeElement:_}class la{}let Om=(()=>{class _{}return _.__NG_ELEMENT_ID__=()=>function ol(){const _=ge(),C=Ki(Vt().index,_);return(Ci(C)?C:_)[11]}(),_})(),Nu=(()=>{class _{}return _.\u0275prov=Et({token:_,providedIn:"root",factory:()=>null}),_})();class Lm{constructor(b){this.full=b,this.major=b.split(".")[0],this.minor=b.split(".")[1],this.patch=b.split(".").slice(2).join(".")}}const Yc=new Lm("14.1.2"),sl={};function dl(_){return _.ngOriginalError}class Ga{constructor(){this._console=console}handleError(b){const C=this._findOriginalError(b);this._console.error("ERROR",b),C&&this._console.error("ORIGINAL ERROR",C)}_findOriginalError(b){let C=b&&dl(b);for(;C&&dl(C);)C=dl(C);return C||null}}const zm=new Map;let wS=0;const Wm="__ngContext__";function Ri(_,b){Ci(b)?(_[Wm]=b[20],function vS(_){zm.set(_[20],_)}(b)):_[Wm]=b}function Jc(_){const b=_[Wm];return"number"==typeof b?function ty(_){return zm.get(_)||null}(b):b||null}function $m(_){const b=Jc(_);return b?Ci(b)?b:b.lView:null}const HS=(()=>(typeof requestAnimationFrame<"u"&&requestAnimationFrame||setTimeout).bind(de))();function ca(_){return _ instanceof Function?_():_}var Ir=(()=>((Ir=Ir||{})[Ir.Important=1]="Important",Ir[Ir.DashCase=2]="DashCase",Ir))();function $u(_,b){return undefined(_,b)}function Kc(_){const b=_[3];return Ji(b)?b[3]:b}function Ym(_){return dy(_[13])}function Qm(_){return dy(_[4])}function dy(_){for(;null!==_&&!Ji(_);)_=_[4];return _}function hl(_,b,C,y,x){if(null!=y){let S,T=!1;Ji(y)?S=y:Ci(y)&&(T=!0,y=y[0]);const D=pi(y);0===_&&null!==C?null==x?gy(b,C,D):Ko(b,C,D,x||null,!0):1===_&&null!==C?Ko(b,C,D,x||null,!0):2===_?function Ay(_,b,C){const y=Yu(_,b);y&&function YS(_,b,C,y){_.removeChild(b,C,y)}(_,y,b,C)}(b,D,T):3===_&&b.destroyNode(D),null!=S&&function KS(_,b,C,y,x){const S=C[7];S!==pi(C)&&hl(b,_,y,S,x);for(let D=10;D0&&(_[C-1][4]=y[4]);const S=Ks(_,10+b);!function FS(_,b){Zc(_,b,b[11],2,null,null),b[0]=null,b[6]=null}(y[1],y);const T=S[19];null!==T&&T.detachView(S[1]),y[3]=null,y[4]=null,y[2]&=-65}return y}function py(_,b){if(!(128&b[2])){const C=b[11];C.destroyNode&&Zc(_,b,C,3,null,null),function qS(_){let b=_[13];if(!b)return Xm(_[1],_);for(;b;){let C=null;if(Ci(b))C=b[13];else{const y=b[10];y&&(C=y)}if(!C){for(;b&&!b[4]&&b!==_;)Ci(b)&&Xm(b[1],b),b=b[3];null===b&&(b=_),Ci(b)&&Xm(b[1],b),C=b&&b[4]}b=C}}(b)}}function Xm(_,b){if(!(128&b[2])){b[2]&=-65,b[2]|=128,function $S(_,b){let C;if(null!=_&&null!=(C=_.destroyHooks))for(let y=0;y=0?y[x=k]():y[x=-k].unsubscribe(),S+=2}else{const T=y[x=C[S+1]];C[S].call(T)}if(null!==y){for(let S=x+1;SS?"":x[U+1].toLowerCase();const se=8&y?te:null;if(se&&-1!==hr(se,k,0)||2&y&&k!==te){if(ze(y))return!1;T=!0}}}}else{if(!T&&!ze(y)&&!ze(H))return!1;if(T&&ze(H))continue;T=!1,y=H|1&y}}return ze(y)||T}function ze(_){return 0==(1&_)}function Pi(_,b,C,y){if(null===b)return-1;let x=0;if(y||!C){let S=!1;for(;x-1)for(C++;C<_.length;){const y=_[C];if("number"==typeof y)return-1;if(y===b)return C;C++}return-1}(b,_)}function Xu(_,b,C=!1){for(let y=0;y0?'="'+D+'"':"")+"]"}else 8&y?x+="."+T:4&y&&(x+=" "+T);else""!==x&&!ze(T)&&(b+=eh(S,x),x=""),y=T,S=S||!ze(y);C++}return""!==x&&(b+=eh(S,x)),b}const pt={};function ih(_){Wa($e(),ge(),en()+_,!1)}function Wa(_,b,C,y){if(!y)if(3==(3&b[2])){const S=_.preOrderCheckHooks;null!==S&&xc(b,S,C)}else{const S=_.preOrderHooks;null!==S&&js(b,S,0,C)}qt(C)}function fl(_,b=null,C=null,y){const x=Ry(_,b,C,y);return x.resolveInjectorInitializers(),x}function Ry(_,b=null,C=null,y,x=new Set){const S=[C||Ne,Hm(_)];return y=y||("object"==typeof _?void 0:ee(_)),new Pm(S,b||Wc(),y||null,x)}let da=(()=>{class _{static create(C,y){if(Array.isArray(C))return fl({name:""},y,C,"");{const x=C.name??"";return fl({name:x},C.parent,C.providers,x)}}}return _.THROW_IF_NOT_FOUND=na,_.NULL=new Dm,_.\u0275prov=Et({token:_,providedIn:"any",factory:()=>ti(rl)}),_.__NG_ELEMENT_ID__=-1,_})();function kr(_,b=Ze.Default){const C=ge();return null===C?ti(_,b):Io(Vt(),C,re(_),b)}function _g(){throw new Error("invalid")}function gl(_,b){return _<<17|b<<2}function Li(_){return _>>17&32767}function ch(_){return 2|_}function ua(_){return(131068&_)>>2}function wg(_,b){return-131069&_|b<<2}function dh(_){return 1|_}function Tg(_,b){const C=_.contentQueries;if(null!==C)for(let y=0;y22&&Wa(_,b,22,!1),C(y,x)}finally{qt(S)}}function ad(_,b,C){if(Mr(b)){const x=b.directiveEnd;for(let S=b.directiveStart;S0;){const C=_[--b];if("number"==typeof C&&C<0)return C}return 0})(D)!=H&&D.push(H),D.push(y,x,T)}}function Ig(_,b){null!==_.hostBindings&&_.hostBindings(1,b)}function iv(_,b){b.flags|=2,(_.components||(_.components=[])).push(b.index)}function rv(_,b,C){if(C){if(b.exportAs)for(let y=0;y0&&yh(C)}}function yh(_){for(let y=Ym(_);null!==y;y=Qm(y))for(let x=10;x0&&yh(S)}const C=_[1].components;if(null!==C)for(let y=0;y0&&yh(x)}}function Bg(_,b){const C=Ki(b,_),y=C[1];(function xl(_,b){for(let C=b.length;C<_.blueprint.length;C++)b.push(_.blueprint[C])})(y,C),Ya(y,C,C[8])}function ld(_,b){return _[13]?_[14][4]=b:_[13]=b,_[14]=b,b}function cd(_){for(;_;){_[2]|=32;const b=Kc(_);if(hc(_)&&!b)return _;_=b}return null}function Lg(_){!function vh(_){for(let b=0;b<_.components.length;b++){const C=_.components[b],y=$m(C);if(null!==y){const x=y[1];Mg(x,y,x.template,C)}}}(_[8])}function dd(_,b,C){Ha(0),b(_,C)}const CT=(()=>Promise.resolve(null))();function Fg(_){return _[7]||(_[7]=[])}function Ug(_){return _.cleanup||(_.cleanup=[])}function Sl(_,b,C){return(null===_||qi(_))&&(C=function ew(_){for(;Array.isArray(_);){if("object"==typeof _[1])return _;_=_[0]}return null}(C[b.index])),C[11]}function Ng(_,b){const C=_[9],y=C?C.get(Ga,null):null;y&&y.handleError(b)}function xh(_,b,C,y,x){for(let S=0;S-1&&(Zm(b,y),Ks(C,y))}this._attachedToViewContainer=!1}py(this._lView[1],this._lView)}onDestroy(b){Rg(this._lView[1],this._lView,null,b)}markForCheck(){cd(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){!function Og(_,b,C){const y=b[10];y.begin&&y.begin();try{Al(_,b,_.template,C)}catch(x){throw Ng(b,x),x}finally{y.end&&y.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ae(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function NS(_,b){Zc(_,b,b[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(b){if(this._attachedToViewContainer)throw new ae(902,!1);this._appRef=b}}class qg extends El{constructor(b){super(b),this._view=b}detectChanges(){Lg(this._view)}checkNoChanges(){}get context(){return null}}class es extends Jo{constructor(b){super(),this.ngModule=b}resolveComponentFactory(b){const C=St(b);return new Dl(C,this.ngModule)}}function zg(_){const b=[];for(let C in _)_.hasOwnProperty(C)&&b.push({propName:_[C],templateName:C});return b}class Ml{constructor(b,C){this.injector=b,this.parentInjector=C}get(b,C,y){const x=this.injector.get(b,sl,y);return x!==sl||C===sl?x:this.parentInjector.get(b,C,y)}}class Dl extends Yw{constructor(b,C){super(),this.componentDef=b,this.ngModule=C,this.componentType=b.type,this.selector=function th(_){return _.map(Ey).join(",")}(b.selectors),this.ngContentSelectors=b.ngContentSelectors?b.ngContentSelectors:[],this.isBoundToModule=!!C}get inputs(){return zg(this.componentDef.inputs)}get outputs(){return zg(this.componentDef.outputs)}create(b,C,y,x){let S=(x=x||this.ngModule)instanceof za?x:x?.injector;S&&null!==this.componentDef.getStandaloneInjector&&(S=this.componentDef.getStandaloneInjector(S)||S);const T=S?new Ml(b,S):b,D=T.get(la,null);if(null===D)throw new ae(407,!1);const H=T.get(Nu,null),k=D.createRenderer(null,this.componentDef),V=this.componentDef.selectors[0][0]||"div",U=y?function En(_,b,C){return _.selectRootElement(b,C===$.ShadowDom)}(k,y,this.componentDef.encapsulation):Km(D.createRenderer(null,this.componentDef),V,function Gg(_){const b=_.toLowerCase();return"svg"===b?"svg":"math"===b?"math":null}(V)),te=this.componentDef.onPush?288:272,se=function uv(_,b){return{components:[],scheduler:_||HS,clean:CT,playerHandler:b||null,flags:0}}(),Ce=_h(0,null,null,1,0,null,null,null,null,null),Te=ha(null,Ce,se,te,null,null,D,k,H,T,null);let Ve,Ue;su(Te);try{const et=function dv(_,b,C,y,x,S){const T=C[1];C[22]=_;const H=Xo(T,22,2,"#host",null),k=H.mergedAttrs=b.hostAttrs;null!==k&&(Sh(H,k,!0),null!==_&&(Ns(x,_,k),null!==H.classes&&Ku(x,_,H.classes),null!==H.styles&&Sy(x,_,H.styles)));const V=y.createRenderer(_,b),U=ha(C,gh(b),null,b.onPush?32:16,C[22],H,y,V,S||null,null,null);return T.firstCreatePass&&(fu(ta(H,C),T,b.type),iv(T,H),kg(H,C.length,1)),ld(C,U),C[22]=U}(U,this.componentDef,Te,D,k);if(U)if(y)Ns(k,U,["ng-version",Yc.full]);else{const{attrs:ve,classes:Qe}=function pl(_){const b=[],C=[];let y=1,x=2;for(;y<_.length;){let S=_[y];if("string"==typeof S)2===x?""!==S&&b.push(S,_[++y]):8===x&&C.push(S);else{if(!ze(x))break;x=S}y++}return{attrs:b,classes:C}}(this.componentDef.selectors[0]);ve&&Ns(k,U,ve),Qe&&Qe.length>0&&Ku(k,U,Qe.join(" "))}if(Ue=Cc(Ce,22),void 0!==C){const ve=Ue.projection=[];for(let Qe=0;Qe=0;y--){const x=_[y];x.hostVars=b+=x.hostVars,x.hostAttrs=Ho(x.hostAttrs,C=Ho(C,x.hostAttrs))}}(y)}function Mh(_){return _===ht?{}:_===Ne?[]:_}function Hl(_,b){const C=_.viewQuery;_.viewQuery=C?(y,x)=>{b(y,x),C(y,x)}:b}function Qg(_,b){const C=_.contentQueries;_.contentQueries=C?(y,x,S)=>{b(y,x,S),C(y,x,S)}:b}function mv(_,b){const C=_.hostBindings;_.hostBindings=C?(y,x)=>{b(y,x),C(y,x)}:b}let ud=null;function Za(){if(!ud){const _=de.Symbol;if(_&&_.iterator)ud=_.iterator;else{const b=Object.getOwnPropertyNames(Map.prototype);for(let C=0;CD(pi(_t[y.index])):y.index;let Qe=null;if(!D&&H&&(Qe=function s_(_,b,C,y){const x=_.cleanup;if(null!=x)for(let S=0;SH?D[H]:null}"string"==typeof T&&(S+=2)}return null}(_,b,x,y.index)),null!==Qe)(Qe.__ngLastListenerFn__||Qe).__ngNextListenerFn__=S,Qe.__ngLastListenerFn__=S,se=!1;else{S=kh(y,b,U,S,!1);const _t=C.listen(Ue,x,S);te.push(S,_t),V&&V.push(x,ve,et,et+1)}}else S=kh(y,b,U,S,!1);const Ce=y.outputs;let Te;if(se&&null!==Ce&&(Te=Ce[x])){const Ve=Te.length;if(Ve)for(let Ue=0;Ue0;)b=b[15],_--;return b}(_,ue.lFrame.contextLView))[8]}(_)}function Ev(_,b){let C=null;const y=function Xc(_){const b=_.attrs;if(null!=b){const C=b.indexOf(5);if(0==(1&C))return b[C+1]}return null}(_);for(let x=0;x=0}const Ie={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function mt(_){return _.substring(Ie.key,Ie.keyEnd)}function Rv(_,b){const C=Ie.textEnd;return C===b?-1:(b=Ie.keyEnd=function m_(_,b,C){for(;b32;)b++;return b}(_,Ie.key=b,C),Bl(_,b,C))}function Bl(_,b,C){for(;b=0;C=Rv(b,C))nn(_,mt(b),!0)}function Wn(_,b,C,y){const x=ge(),S=$e(),T=rr(2);S.firstUpdatePass&&C_(S,_,T,y),b!==pt&&Wi(x,T,b)&&Lv(S,S.data[en()],x,x[11],_,x[T+1]=function Fv(_,b){return null==_||("string"==typeof b?_+=b:"object"==typeof _&&(_=ee(gn(_)))),_}(b,C),y,T)}function $n(_,b,C,y){const x=$e(),S=rr(2);x.firstUpdatePass&&C_(x,null,S,y);const T=ge();if(C!==pt&&Wi(T,S,C)){const D=x.data[en()];if(Gh(D,y)&&!b_(x,S)){let H=y?D.classesWithoutHost:D.stylesWithoutHost;null!==H&&(C=W(H,C||"")),i_(x,D,T,C,y)}else!function wd(_,b,C,y,x,S,T,D){x===pt&&(x=Ne);let H=0,k=0,V=0=_.expandoStartIndex}function C_(_,b,C,y){const x=_.data;if(null===x[C+1]){const S=x[en()],T=b_(_,C);Gh(S,y)&&null===b&&!T&&(b=!1),b=function kv(_,b,C,y){const x=ou(_);let S=y?b.residualClasses:b.residualStyles;if(null===x)0===(y?b.classBindings:b.styleBindings)&&(C=ls(C=Nh(null,_,b,C,y),b.attrs,y),S=null);else{const T=b.directiveStylingLast;if(-1===T||_[T]!==x)if(C=Nh(x,_,b,C,y),null===S){let H=function Vv(_,b,C){const y=C?b.classBindings:b.styleBindings;if(0!==ua(y))return _[Li(y)]}(_,b,y);void 0!==H&&Array.isArray(H)&&(H=Nh(null,_,b,H[1],y),H=ls(H,b.attrs,y),function Bv(_,b,C,y){_[Li(C?b.classBindings:b.styleBindings)]=y}(_,b,y,H))}else S=function Ov(_,b,C){let y;const x=b.directiveEnd;for(let S=1+b.directiveStylingLast;S0)&&(k=!0)}else V=C;if(x)if(0!==H){const te=Li(_[D+1]);_[y+1]=gl(te,D),0!==te&&(_[te+1]=wg(_[te+1],y)),_[D+1]=function nT(_,b){return 131071&_|b<<17}(_[D+1],y)}else _[y+1]=gl(D,0),0!==D&&(_[D+1]=wg(_[D+1],y)),D=y;else _[y+1]=gl(H,0),0===D?D=y:_[H+1]=wg(_[H+1],y),H=y;k&&(_[y+1]=ch(_[y+1])),Oh(_,V,y,!0),Oh(_,V,y,!1),function vt(_,b,C,y,x){const S=x?_.residualClasses:_.residualStyles;null!=S&&"string"==typeof b&&ia(S,b)>=0&&(C[y+1]=dh(C[y+1]))}(b,V,_,y,S),T=gl(D,H),S?b.classBindings=T:b.styleBindings=T}(x,S,b,C,T,y)}}function Nh(_,b,C,y,x){let S=null;const T=C.directiveEnd;let D=C.directiveStylingLast;for(-1===D?D=C.directiveStart:D++;D0;){const H=_[x],k=Array.isArray(H),V=k?H[1]:H,U=null===V;let te=C[x+1];te===pt&&(te=U?Ne:void 0);let se=U?Xs(te,y):V===y?te:void 0;if(k&&!zh(se)&&(se=Xs(H,y)),zh(se)&&(D=se,T))return D;const Ce=_[x+1];x=T?Li(Ce):ua(Ce)}if(null!==b){let H=S?b.residualClasses:b.residualStyles;null!=H&&(D=Xs(H,y))}return D}function zh(_){return void 0!==_}function Gh(_,b){return 0!=(_.flags&(b?16:32))}function y_(_,b=""){const C=ge(),y=$e(),x=_+22,S=y.firstCreatePass?Xo(y,x,1,b,null):y.data[x],T=C[x]=function Jm(_,b){return _.createText(b)}(C[11],b);Qu(y,C,T,S),Oi(S,!1)}function cs(_){return yd("",_,""),cs}function yd(_,b,C){const y=ge(),x=Br(y,_,b,C);return x!==pt&&zn(y,en(),x),yd}function Wh(_,b,C,y,x){const S=ge(),T=function fa(_,b,C,y,x,S){const D=ns(_,Rt(),C,x);return rr(2),D?b+fe(C)+y+fe(x)+S:pt}(S,_,b,C,y,x);return T!==pt&&zn(S,en(),T),Wh}function v_(_,b,C,y,x,S,T){const D=ge(),H=function rs(_,b,C,y,x,S,T,D){const k=Dh(_,Rt(),C,x,T);return rr(3),k?b+fe(C)+y+fe(x)+S+fe(T)+D:pt}(D,_,b,C,y,x,S,T);return H!==pt&&zn(D,en(),H),v_}function x_(_,b,C,y,x,S,T,D,H,k,V){const U=ge(),te=Rl(U,_,b,C,y,x,S,T,D,H,k,V);return te!==pt&&zn(U,en(),te),x_}function E_(_,b,C){$n(nn,gr,Br(ge(),_,b,C),!0)}function Zh(_,b,C){const y=ge();return Wi(y,Do(),b)&&Mn($e(),Tt(),y,_,b,y[11],C,!0),Zh}function H_(_,b,C){const y=ge();if(Wi(y,Do(),b)){const S=$e(),T=Tt();Mn(S,T,y,_,b,Sl(ou(S.data),T,y),C,!0)}return H_}const ds=void 0;var BT=["en",[["a","p"],["AM","PM"],ds],[["AM","PM"],ds,ds],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],ds,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],ds,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",ds,"{1} 'at' {0}",ds],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function VT(_){const C=Math.floor(Math.abs(_)),y=_.toString().replace(/^[^.]*\.?/,"").length;return 1===C&&0===y?1:5}];let Ll={};function us(_){const b=function Kv(_){return _.toLowerCase().replace(/_/g,"-")}(_);let C=Qv(b);if(C)return C;const y=b.split("-")[0];if(C=Qv(y),C)return C;if("en"===y)return BT;throw new ae(701,!1)}function R_(_){return us(_)[Je.PluralCase]}function Qv(_){return _ in Ll||(Ll[_]=de.ng&&de.ng.common&&de.ng.common.locales&&de.ng.common.locales[_]),Ll[_]}var Je=(()=>((Je=Je||{})[Je.LocaleId=0]="LocaleId",Je[Je.DayPeriodsFormat=1]="DayPeriodsFormat",Je[Je.DayPeriodsStandalone=2]="DayPeriodsStandalone",Je[Je.DaysFormat=3]="DaysFormat",Je[Je.DaysStandalone=4]="DaysStandalone",Je[Je.MonthsFormat=5]="MonthsFormat",Je[Je.MonthsStandalone=6]="MonthsStandalone",Je[Je.Eras=7]="Eras",Je[Je.FirstDayOfWeek=8]="FirstDayOfWeek",Je[Je.WeekendRange=9]="WeekendRange",Je[Je.DateFormat=10]="DateFormat",Je[Je.TimeFormat=11]="TimeFormat",Je[Je.DateTimeFormat=12]="DateTimeFormat",Je[Je.NumberSymbols=13]="NumberSymbols",Je[Je.NumberFormats=14]="NumberFormats",Je[Je.CurrencyCode=15]="CurrencyCode",Je[Je.CurrencySymbol=16]="CurrencySymbol",Je[Je.CurrencyName=17]="CurrencyName",Je[Je.Currencies=18]="Currencies",Je[Je.Directionality=19]="Directionality",Je[Je.PluralCase=20]="PluralCase",Je[Je.ExtraData=21]="ExtraData",Je))();const hs="en-US";let k_=hs;function rp(_,b,C,y,x){if(_=re(_),Array.isArray(_))for(let S=0;S<_.length;S++)rp(_[S],b,C,y,x);else{const S=$e(),T=ge();let D=sa(_)?_:re(_.provide),H=km(_);const k=Vt(),V=1048575&k.providerIndexes,U=k.directiveStart,te=k.providerIndexes>>20;if(sa(_)||!_.multi){const se=new Rr(H,x,kr),Ce=op(D,b,x?V:V+te,U);-1===Ce?(fu(ta(k,T),S,D),ap(S,_,b.length),b.push(D),k.directiveStart++,k.directiveEnd++,x&&(k.providerIndexes+=1048576),C.push(se),T.push(se)):(C[Ce]=se,T[Ce]=se)}else{const se=op(D,b,V+te,U),Ce=op(D,b,V,V+te),Te=se>=0&&C[se],Ve=Ce>=0&&C[Ce];if(x&&!Ve||!x&&!Te){fu(ta(k,T),S,D);const Ue=function wA(_,b,C,y,x){const S=new Rr(_,C,kr);return S.multi=[],S.index=b,S.componentProviders=0,ob(S,x,y&&!C),S}(x?sp:sb,C.length,x,y,H);!x&&Ve&&(C[Ce].providerFactory=Ue),ap(S,_,b.length,0),b.push(D),k.directiveStart++,k.directiveEnd++,x&&(k.providerIndexes+=1048576),C.push(Ue),T.push(Ue)}else ap(S,_,se>-1?se:Ce,ob(C[x?Ce:se],H,!x&&y));!x&&y&&Ve&&C[Ce].componentProviders++}}}function ap(_,b,C,y){const x=sa(b),S=function qw(_){return!!_.useClass}(b);if(x||S){const H=(S?re(b.useClass):b).prototype.ngOnDestroy;if(H){const k=_.destroyHooks||(_.destroyHooks=[]);if(!x&&b.multi){const V=k.indexOf(C);-1===V?k.push(C,[y,H]):k[V+1].push(y,H)}else k.push(C,H)}}}function ob(_,b,C){return C&&_.componentProviders++,_.multi.push(b)-1}function op(_,b,C,y){for(let x=C;x{C.providersResolver=(y,x)=>function CA(_,b,C){const y=$e();if(y.firstCreatePass){const x=qi(_);rp(C,y.data,y.blueprint,x,!0),rp(b,y.data,y.blueprint,x,!1)}}(y,x?x(_):_,b)}}class gs{}class _s{}function yA(_,b){return new bn(_,b??null)}class bn extends gs{constructor(b,C){super(),this._parent=C,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new es(this);const y=Yi(b);this._bootstrapComponents=ca(y.bootstrap),this._r3Injector=Ry(b,C,[{provide:gs,useValue:this},{provide:Jo,useValue:this.componentFactoryResolver}],ee(b),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(b)}get injector(){return this._r3Injector}destroy(){const b=this._r3Injector;!b.destroyed&&b.destroy(),this.destroyCbs.forEach(C=>C()),this.destroyCbs=null}onDestroy(b){this.destroyCbs.push(b)}}class cp extends _s{constructor(b){super(),this.moduleType=b}create(b){return new bn(this.moduleType,b)}}class ao extends gs{constructor(b,C,y){super(),this.componentFactoryResolver=new es(this),this.instance=null;const x=new Pm([...b,{provide:gs,useValue:this},{provide:Jo,useValue:this.componentFactoryResolver}],C||Wc(),y,new Set(["environment"]));this.injector=x,x.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(b){this.injector.onDestroy(b)}}function dp(_,b,C=null){return new ao(_,b,C).injector}function AA(_,b,C){const y=ei()+_,x=ge();return x[y]===pt?Gi(x,y,C?b.call(C):b()):function hd(_,b){return _[b]}(x,y)}function xA(_,b,C,y){return MA(ge(),ei(),_,b,C,y)}function SA(_,b,C,y,x){return DA(ge(),ei(),_,b,C,y,x)}function Ed(_,b){const C=_[b];return C===pt?void 0:C}function MA(_,b,C,y,x,S){const T=b+C;return Wi(_,T,x)?Gi(_,T+1,S?y.call(S,x):y(x)):Ed(_,T+1)}function DA(_,b,C,y,x,S,T){const D=b+C;return ns(_,D,x,S)?Gi(_,D+2,T?y.call(T,x,S):y(x,S)):Ed(_,D+2)}function RA(_,b){const C=$e();let y;const x=_+22;C.firstCreatePass?(y=function lE(_,b){if(b)for(let C=b.length-1;C>=0;C--){const y=b[C];if(_===y.name)return y}}(b,C.pipeRegistry),C.data[x]=y,y.onDestroy&&(C.destroyHooks||(C.destroyHooks=[])).push(x,y.onDestroy)):y=C.data[x];const S=y.factory||(y.factory=Hr(y.type)),T=ki(kr);try{const D=Va(!1),H=S();return Va(D),function xv(_,b,C,y){C>=_.data.length&&(_.data[C]=null,_.blueprint[C]=null),b[C]=y}(C,ge(),x,H),H}finally{ki(T)}}function pp(_,b,C){const y=_+22,x=ge(),S=Eo(x,y);return ql(x,y)?MA(x,ei(),b,S.transform,C,S):S.transform(C)}function PA(_,b,C,y){const x=_+22,S=ge(),T=Eo(S,x);return ql(S,x)?DA(S,ei(),b,T.transform,C,y,T):T.transform(C,y)}function IA(_,b,C,y,x){const S=_+22,T=ge(),D=Eo(T,S);return ql(T,S)?function HA(_,b,C,y,x,S,T,D){const H=b+C;return Dh(_,H,x,S,T)?Gi(_,H+3,D?y.call(D,x,S,T):y(x,S,T)):Ed(_,H+3)}(T,ei(),b,D.transform,C,y,x,D):D.transform(C,y,x)}function ql(_,b){return _[1].data[b].pure}function on(_){return b=>{setTimeout(_,void 0,b)}}const zr=class dE extends M.x{constructor(b=!1){super(),this.__isAsync=b}emit(b){super.next(b)}subscribe(b,C,y){let x=b,S=C||(()=>null),T=y;if(b&&"object"==typeof b){const H=b;x=H.next?.bind(H),S=H.error?.bind(H),T=H.complete?.bind(H)}this.__isAsync&&(S=on(S),x&&(x=on(x)),T&&(T=on(T)));const D=super.subscribe({next:x,error:S,complete:T});return b instanceof h.w0&&b.add(D),D}};function uE(){return this._results[Za()]()}class fp{constructor(b=!1){this._emitDistinctChangesOnly=b,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const C=Za(),y=fp.prototype;y[C]||(y[C]=uE)}get changes(){return this._changes||(this._changes=new zr)}get(b){return this._results[b]}map(b){return this._results.map(b)}filter(b){return this._results.filter(b)}find(b){return this._results.find(b)}reduce(b,C){return this._results.reduce(b,C)}forEach(b){this._results.forEach(b)}some(b){return this._results.some(b)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(b,C){const y=this;y.dirty=!1;const x=si(b);(this._changesDetected=!function _u(_,b,C){if(_.length!==b.length)return!1;for(let y=0;y<_.length;y++){let x=_[y],S=b[y];if(C&&(x=C(x),S=C(S)),S!==x)return!1}return!0}(y._results,x,C))&&(y._results=x,y.length=x.length,y.last=x[this.length-1],y.first=x[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}let Md=(()=>{class _{}return _.__NG_ELEMENT_ID__=BA,_})();const hE=Md,pE=class extends hE{constructor(b,C,y){super(),this._declarationLView=b,this._declarationTContainer=C,this.elementRef=y}createEmbeddedView(b,C){const y=this._declarationTContainer.tViews,x=ha(this._declarationLView,y,b,16,null,y.declTNode,null,null,null,null,C||null);x[17]=this._declarationLView[this._declarationTContainer.index];const T=this._declarationLView[19];return null!==T&&(x[19]=T.createEmbeddedView(y)),Ya(y,x,b),new El(x)}};function BA(){return mp(Vt(),ge())}function mp(_,b){return 4&_.type?new pE(b,_,dr(_,b)):null}let gp=(()=>{class _{}return _.__NG_ELEMENT_ID__=fE,_})();function fE(){return jA(Vt(),ge())}const mE=gp,OA=class extends mE{constructor(b,C,y){super(),this._lContainer=b,this._hostTNode=C,this._hostLView=y}get element(){return dr(this._hostTNode,this._hostLView)}get injector(){return new Oo(this._hostTNode,this._hostLView)}get parentInjector(){const b=Po(this._hostTNode,this._hostLView);if(du(b)){const C=Ro(b,this._hostLView),y=ka(b);return new Oo(C[1].data[y+8],C)}return new Oo(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(b){const C=LA(this._lContainer);return null!==C&&C[b]||null}get length(){return this._lContainer.length-10}createEmbeddedView(b,C,y){let x,S;"number"==typeof y?x=y:null!=y&&(x=y.index,S=y.injector);const T=b.createEmbeddedView(C||{},S);return this.insert(T,x),T}createComponent(b,C,y,x,S){const T=b&&!function jo(_){return"function"==typeof _}(b);let D;if(T)D=C;else{const U=C||{};D=U.index,y=U.injector,x=U.projectableNodes,S=U.environmentInjector||U.ngModuleRef}const H=T?b:new Dl(St(b)),k=y||this.parentInjector;if(!S&&null==H.ngModule){const te=(T?k:this.parentInjector).get(za,null);te&&(S=te)}const V=H.create(k,x,void 0,S);return this.insert(V.hostView,D),V}insert(b,C){const y=b._lView,x=y[1];if(function I(_){return Ji(_[3])}(y)){const V=this.indexOf(b);if(-1!==V)this.detach(V);else{const U=y[3],te=new OA(U,U[6],U[3]);te.detach(te.indexOf(b))}}const S=this._adjustIndex(C),T=this._lContainer;!function zS(_,b,C,y){const x=10+y,S=C.length;y>0&&(C[x-1][4]=b),y0)y.push(T[D/2]);else{const k=S[D+1],V=b[-H];for(let U=10;U{class _{constructor(C){this.appInits=C,this.resolve=Ql,this.reject=Ql,this.initialized=!1,this.done=!1,this.donePromise=new Promise((y,x)=>{this.resolve=y,this.reject=x})}runInitializers(){if(this.initialized)return;const C=[],y=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let x=0;x{S.subscribe({complete:D,error:H})});C.push(T)}}Promise.all(C).then(()=>{y()}).catch(x=>{this.reject(x)}),0===C.length&&y(),this.initialized=!0}}return _.\u0275fac=function(C){return new(C||_)(ti(Fi,8))},_.\u0275prov=Et({token:_,factory:_.\u0275fac,providedIn:"root"}),_})();const Pp=new Bt("AppId",{providedIn:"root",factory:function o0(){return`${ys()}${ys()}${ys()}`}});function ys(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Lb=new Bt("Platform Initializer"),Ip=new Bt("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Jl=new Bt("appBootstrapListener"),kp=new Bt("AnimationModuleType");let s0=(()=>{class _{log(C){console.log(C)}warn(C){console.warn(C)}}return _.\u0275fac=function(C){return new(C||_)},_.\u0275prov=Et({token:_,factory:_.\u0275fac,providedIn:"platform"}),_})();const Vp=new Bt("LocaleId",{providedIn:"root",factory:()=>im(Vp,Ze.Optional|Ze.SkipSelf)||function vE(){return typeof $localize<"u"&&$localize.locale||hs}()}),AE=new Bt("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class xE{constructor(b,C){this.ngModuleFactory=b,this.componentFactories=C}}let l0=(()=>{class _{compileModuleSync(C){return new cp(C)}compileModuleAsync(C){return Promise.resolve(this.compileModuleSync(C))}compileModuleAndAllComponentsSync(C){const y=this.compileModuleSync(C),S=ca(Yi(C).declarations).reduce((T,D)=>{const H=St(D);return H&&T.push(new Dl(H)),T},[]);return new xE(y,S)}compileModuleAndAllComponentsAsync(C){return Promise.resolve(this.compileModuleAndAllComponentsSync(C))}clearCache(){}clearCacheFor(C){}getModuleId(C){}}return _.\u0275fac=function(C){return new(C||_)},_.\u0275prov=Et({token:_,factory:_.\u0275fac,providedIn:"root"}),_})();const vs=(()=>Promise.resolve(0))();function lo(_){typeof Zone>"u"?vs.then(()=>{_&&_.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",_)}class cn{constructor({enableLongStackTrace:b=!1,shouldCoalesceEventChangeDetection:C=!1,shouldCoalesceRunChangeDetection:y=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new zr(!1),this.onMicrotaskEmpty=new zr(!1),this.onStable=new zr(!1),this.onError=new zr(!1),typeof Zone>"u")throw new ae(908,!1);Zone.assertZonePatched();const x=this;if(x._nesting=0,x._outer=x._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const S=Zone.AsyncStackTaggingZoneSpec;x._inner=x._inner.fork(new S("Angular"))}Zone.TaskTrackingZoneSpec&&(x._inner=x._inner.fork(new Zone.TaskTrackingZoneSpec)),b&&Zone.longStackTraceZoneSpec&&(x._inner=x._inner.fork(Zone.longStackTraceZoneSpec)),x.shouldCoalesceEventChangeDetection=!y&&C,x.shouldCoalesceRunChangeDetection=y,x.lastRequestAnimationFrameId=-1,x.nativeRequestAnimationFrame=function Bp(){let _=de.requestAnimationFrame,b=de.cancelAnimationFrame;if(typeof Zone<"u"&&_&&b){const C=_[Zone.__symbol__("OriginalDelegate")];C&&(_=C);const y=b[Zone.__symbol__("OriginalDelegate")];y&&(b=y)}return{nativeRequestAnimationFrame:_,nativeCancelAnimationFrame:b}}().nativeRequestAnimationFrame,function Ub(_){const b=()=>{!function kd(_){_.isCheckStableRunning||-1!==_.lastRequestAnimationFrameId||(_.lastRequestAnimationFrameId=_.nativeRequestAnimationFrame.call(de,()=>{_.fakeTopEventTask||(_.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{_.lastRequestAnimationFrameId=-1,Vd(_),_.isCheckStableRunning=!0,Id(_),_.isCheckStableRunning=!1},void 0,()=>{},()=>{})),_.fakeTopEventTask.invoke()}),Vd(_))}(_)};_._inner=_._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(C,y,x,S,T,D)=>{try{return Lp(_),C.invokeTask(x,S,T,D)}finally{(_.shouldCoalesceEventChangeDetection&&"eventTask"===S.type||_.shouldCoalesceRunChangeDetection)&&b(),Bd(_)}},onInvoke:(C,y,x,S,T,D,H)=>{try{return Lp(_),C.invoke(x,S,T,D,H)}finally{_.shouldCoalesceRunChangeDetection&&b(),Bd(_)}},onHasTask:(C,y,x,S)=>{C.hasTask(x,S),y===x&&("microTask"==S.change?(_._hasPendingMicrotasks=S.microTask,Vd(_),Id(_)):"macroTask"==S.change&&(_.hasPendingMacrotasks=S.macroTask))},onHandleError:(C,y,x,S)=>(C.handleError(x,S),_.runOutsideAngular(()=>_.onError.emit(S)),!1)})}(x)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!cn.isInAngularZone())throw new ae(909,!1)}static assertNotInAngularZone(){if(cn.isInAngularZone())throw new ae(909,!1)}run(b,C,y){return this._inner.run(b,C,y)}runTask(b,C,y,x){const S=this._inner,T=S.scheduleEventTask("NgZoneEvent: "+x,b,Op,Ql,Ql);try{return S.runTask(T,C,y)}finally{S.cancelTask(T)}}runGuarded(b,C,y){return this._inner.runGuarded(b,C,y)}runOutsideAngular(b){return this._outer.run(b)}}const Op={};function Id(_){if(0==_._nesting&&!_.hasPendingMicrotasks&&!_.isStable)try{_._nesting++,_.onMicrotaskEmpty.emit(null)}finally{if(_._nesting--,!_.hasPendingMicrotasks)try{_.runOutsideAngular(()=>_.onStable.emit(null))}finally{_.isStable=!0}}}function Vd(_){_.hasPendingMicrotasks=!!(_._hasPendingMicrotasks||(_.shouldCoalesceEventChangeDetection||_.shouldCoalesceRunChangeDetection)&&-1!==_.lastRequestAnimationFrameId)}function Lp(_){_._nesting++,_.isStable&&(_.isStable=!1,_.onUnstable.emit(null))}function Bd(_){_._nesting--,Id(_)}class TE{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new zr,this.onMicrotaskEmpty=new zr,this.onStable=new zr,this.onError=new zr}run(b,C,y){return b.apply(C,y)}runGuarded(b,C,y){return b.apply(C,y)}runOutsideAngular(b){return b()}runTask(b,C,y,x){return b.apply(C,y)}}const d0=new Bt(""),Nb=new Bt("");let As,EE=(()=>{class _{constructor(C,y,x){this._ngZone=C,this.registry=y,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,As||(function Zl(_){As=_}(x),x.addToWindow(y)),this._watchAngularEvents(),C.run(()=>{this.taskTrackingZone=typeof Zone>"u"?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:()=>{cn.assertNotInAngularZone(),lo(()=>{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())lo(()=>{for(;0!==this._callbacks.length;){let C=this._callbacks.pop();clearTimeout(C.timeoutId),C.doneCb(this._didWork)}this._didWork=!1});else{let C=this.getPendingTasks();this._callbacks=this._callbacks.filter(y=>!y.updateCb||!y.updateCb(C)||(clearTimeout(y.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(C=>({source:C.source,creationLocation:C.creationLocation,data:C.data})):[]}addCallback(C,y,x){let S=-1;y&&y>0&&(S=setTimeout(()=>{this._callbacks=this._callbacks.filter(T=>T.timeoutId!==S),C(this._didWork,this.getPendingTasks())},y)),this._callbacks.push({doneCb:C,timeoutId:S,updateCb:x})}whenStable(C,y,x){if(x&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(C,y,x),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(C){this.registry.registerApplication(C,this)}unregisterApplication(C){this.registry.unregisterApplication(C)}findProviders(C,y,x){return[]}}return _.\u0275fac=function(C){return new(C||_)(ti(cn),ti(Kl),ti(Nb))},_.\u0275prov=Et({token:_,factory:_.\u0275fac}),_})(),Kl=(()=>{class _{constructor(){this._applications=new Map}registerApplication(C,y){this._applications.set(C,y)}unregisterApplication(C){this._applications.delete(C)}unregisterAllApplications(){this._applications.clear()}getTestability(C){return this._applications.get(C)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(C,y=!0){return As?.findTestabilityInTree(this,C,y)??null}}return _.\u0275fac=function(C){return new(C||_)},_.\u0275prov=Et({token:_,factory:_.\u0275fac,providedIn:"platform"}),_})(),Qn=null;const qb=new Bt("AllowMultipleToken"),Xl=new Bt("PlatformDestroyListeners");class h0{constructor(b,C){this.name=b,this.token=C}}function jp(_,b,C=[]){const y=`Platform: ${b}`,x=new Bt(y);return(S=[])=>{let T=Ld();if(!T||T.injector.get(qb,!1)){const D=[...C,...S,{provide:x,useValue:!0}];_?_(D):function Gb(_){if(Qn&&!Qn.get(qb,!1))throw new ae(400,!1);Qn=_;const b=_.get(jd);(function f0(_){const b=_.get(Lb,null);b&&b.forEach(C=>C())})(_)}(function Od(_=[],b){return da.create({name:b,providers:[{provide:Bu,useValue:"platform"},{provide:Xl,useValue:new Set([()=>Qn=null])},..._]})}(D,y))}return function HE(_){const b=Ld();if(!b)throw new ae(401,!1);return b}()}}function Ld(){return Qn?.get(jd)??null}let jd=(()=>{class _{constructor(C){this._injector=C,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(C,y){const x=function PE(_,b){let C;return C="noop"===_?new TE:("zone.js"===_?void 0:_)||new cn(b),C}(y?.ngZone,function Wb(_){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!_||!_.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!_||!_.ngZoneRunCoalescing)||!1}}(y)),S=[{provide:cn,useValue:x}];return x.run(()=>{const T=da.create({providers:S,parent:this.injector,name:C.moduleType.name}),D=C.create(T),H=D.injector.get(Ga,null);if(!H)throw new ae(402,!1);return x.runOutsideAngular(()=>{const k=x.onError.subscribe({next:V=>{H.handleError(V)}});D.onDestroy(()=>{ec(this._modules,D),k.unsubscribe()})}),function $b(_,b,C){try{const y=C();return _d(y)?y.catch(x=>{throw b.runOutsideAngular(()=>_.handleError(x)),x}):y}catch(y){throw b.runOutsideAngular(()=>_.handleError(y)),y}}(H,x,()=>{const k=D.injector.get(wn);return k.runInitializers(),k.donePromise.then(()=>(function V_(_){kt(_,"Expected localeId to be defined"),"string"==typeof _&&(k_=_.toLowerCase().replace(/_/g,"-"))}(D.injector.get(Vp,hs)||hs),this._moduleDoBootstrap(D),D))})})}bootstrapModule(C,y=[]){const x=xs({},y);return function u0(_,b,C){const y=new cp(C);return Promise.resolve(y)}(0,0,C).then(S=>this.bootstrapModuleFactory(S,x))}_moduleDoBootstrap(C){const y=C.injector.get(wa);if(C._bootstrapComponents.length>0)C._bootstrapComponents.forEach(x=>y.bootstrap(x));else{if(!C.instance.ngDoBootstrap)throw new ae(403,!1);C.instance.ngDoBootstrap(y)}this._modules.push(C)}onDestroy(C){this._destroyListeners.push(C)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ae(404,!1);this._modules.slice().forEach(y=>y.destroy()),this._destroyListeners.forEach(y=>y());const C=this._injector.get(Xl,null);C&&(C.forEach(y=>y()),C.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return _.\u0275fac=function(C){return new(C||_)(ti(da))},_.\u0275prov=Et({token:_,factory:_.\u0275fac,providedIn:"platform"}),_})();function xs(_,b){return Array.isArray(b)?b.reduce(xs,_):{..._,...b}}let wa=(()=>{class _{constructor(C,y,x){this._zone=C,this._injector=y,this._exceptionHandler=x,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const S=new L.y(D=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{D.next(this._stable),D.complete()})}),T=new L.y(D=>{let H;this._zone.runOutsideAngular(()=>{H=this._zone.onStable.subscribe(()=>{cn.assertNotInAngularZone(),lo(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,D.next(!0))})})});const k=this._zone.onUnstable.subscribe(()=>{cn.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{D.next(!1)}))});return()=>{H.unsubscribe(),k.unsubscribe()}});this.isStable=(0,F.T)(S,T.pipe((0,B.B)()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(C,y){const x=C instanceof Yw;if(!this._injector.get(wn).done)throw!x&&Wl(C),new ae(405,false);let T;T=x?C:this._injector.get(Jo).resolveComponentFactory(C),this.componentTypes.push(T.componentType);const D=function zb(_){return _.isBoundToModule}(T)?void 0:this._injector.get(gs),k=T.create(da.NULL,[],y||T.selector,D),V=k.location.nativeElement,U=k.injector.get(d0,null);return U?.registerApplication(V),k.onDestroy(()=>{this.detachView(k.hostView),ec(this.components,k),U?.unregisterApplication(V)}),this._loadComponent(k),k}tick(){if(this._runningTick)throw new ae(101,!1);try{this._runningTick=!0;for(let C of this._views)C.detectChanges()}catch(C){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(C))}finally{this._runningTick=!1}}attachView(C){const y=C;this._views.push(y),y.attachToAppRef(this)}detachView(C){const y=C;ec(this._views,y),y.detachFromAppRef()}_loadComponent(C){this.attachView(C.hostView),this.tick(),this.components.push(C),this._injector.get(Jl,[]).concat(this._bootstrapListeners).forEach(x=>x(C))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(C=>C()),this._views.slice().forEach(C=>C.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(C){return this._destroyListeners.push(C),()=>ec(this._destroyListeners,C)}destroy(){if(this._destroyed)throw new ae(406,!1);const C=this._injector;C.destroy&&!C.destroyed&&C.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return _.\u0275fac=function(C){return new(C||_)(ti(cn),ti(za),ti(Ga))},_.\u0275prov=Et({token:_,factory:_.\u0275fac,providedIn:"root"}),_})();function ec(_,b){const C=_.indexOf(b);C>-1&&_.splice(C,1)}let Yb=!0;function IE(){Yb=!1}let _0=(()=>{class _{}return _.__NG_ELEMENT_ID__=Jb,_})();function Jb(_){return function b0(_,b,C){if(Dr(_)&&!C){const y=Ki(_.index,b);return new El(y,y)}return 47&_.type?new El(b[16],b):null}(Vt(),ge(),16==(16&_))}class eC{constructor(){}supports(b){return is(b)}create(b){return new x0(b)}}const tC=(_,b)=>b;class x0{constructor(b){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=b||tC}forEachItem(b){let C;for(C=this._itHead;null!==C;C=C._next)b(C)}forEachOperation(b){let C=this._itHead,y=this._removalsHead,x=0,S=null;for(;C||y;){const T=!y||C&&C.currentIndex{T=this._trackByFn(x,D),null!==C&&Object.is(C.trackById,T)?(y&&(C=this._verifyReinsertion(C,D,T,x)),Object.is(C.item,D)||this._addIdentityChange(C,D)):(C=this._mismatch(C,D,T,x),y=!0),C=C._next,x++}),this.length=x;return this._truncate(C),this.collection=b,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let b;for(b=this._previousItHead=this._itHead;null!==b;b=b._next)b._nextPrevious=b._next;for(b=this._additionsHead;null!==b;b=b._nextAdded)b.previousIndex=b.currentIndex;for(this._additionsHead=this._additionsTail=null,b=this._movesHead;null!==b;b=b._nextMoved)b.previousIndex=b.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(b,C,y,x){let S;return null===b?S=this._itTail:(S=b._prev,this._remove(b)),null!==(b=null===this._unlinkedRecords?null:this._unlinkedRecords.get(y,null))?(Object.is(b.item,C)||this._addIdentityChange(b,C),this._reinsertAfter(b,S,x)):null!==(b=null===this._linkedRecords?null:this._linkedRecords.get(y,x))?(Object.is(b.item,C)||this._addIdentityChange(b,C),this._moveAfter(b,S,x)):b=this._addAfter(new iC(C,y),S,x),b}_verifyReinsertion(b,C,y,x){let S=null===this._unlinkedRecords?null:this._unlinkedRecords.get(y,null);return null!==S?b=this._reinsertAfter(S,b._prev,x):b.currentIndex!=x&&(b.currentIndex=x,this._addToMoves(b,x)),b}_truncate(b){for(;null!==b;){const C=b._next;this._addToRemovals(this._unlink(b)),b=C}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(b,C,y){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(b);const x=b._prevRemoved,S=b._nextRemoved;return null===x?this._removalsHead=S:x._nextRemoved=S,null===S?this._removalsTail=x:S._prevRemoved=x,this._insertAfter(b,C,y),this._addToMoves(b,y),b}_moveAfter(b,C,y){return this._unlink(b),this._insertAfter(b,C,y),this._addToMoves(b,y),b}_addAfter(b,C,y){return this._insertAfter(b,C,y),this._additionsTail=null===this._additionsTail?this._additionsHead=b:this._additionsTail._nextAdded=b,b}_insertAfter(b,C,y){const x=null===C?this._itHead:C._next;return b._next=x,b._prev=C,null===x?this._itTail=b:x._prev=b,null===C?this._itHead=b:C._next=b,null===this._linkedRecords&&(this._linkedRecords=new Ud),this._linkedRecords.put(b),b.currentIndex=y,b}_remove(b){return this._addToRemovals(this._unlink(b))}_unlink(b){null!==this._linkedRecords&&this._linkedRecords.remove(b);const C=b._prev,y=b._next;return null===C?this._itHead=y:C._next=y,null===y?this._itTail=C:y._prev=C,b}_addToMoves(b,C){return b.previousIndex===C||(this._movesTail=null===this._movesTail?this._movesHead=b:this._movesTail._nextMoved=b),b}_addToRemovals(b){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Ud),this._unlinkedRecords.put(b),b.currentIndex=null,b._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=b,b._prevRemoved=null):(b._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=b),b}_addIdentityChange(b,C){return b.item=C,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=b:this._identityChangesTail._nextIdentityChange=b,b}}class iC{constructor(b,C){this.item=b,this.trackById=C,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 S0{constructor(){this._head=null,this._tail=null}add(b){null===this._head?(this._head=this._tail=b,b._nextDup=null,b._prevDup=null):(this._tail._nextDup=b,b._prevDup=this._tail,b._nextDup=null,this._tail=b)}get(b,C){let y;for(y=this._head;null!==y;y=y._nextDup)if((null===C||C<=y.currentIndex)&&Object.is(y.trackById,b))return y;return null}remove(b){const C=b._prevDup,y=b._nextDup;return null===C?this._head=y:C._nextDup=y,null===y?this._tail=C:y._prevDup=C,null===this._head}}class Ud{constructor(){this.map=new Map}put(b){const C=b.trackById;let y=this.map.get(C);y||(y=new S0,this.map.set(C,y)),y.add(b)}get(b,C){const x=this.map.get(b);return x?x.get(b,C):null}remove(b){const C=b.trackById;return this.map.get(C).remove(b)&&this.map.delete(C),b}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function nC(_,b,C){const y=_.previousIndex;if(null===y)return y;let x=0;return C&&y{if(C&&C.key===x)this._maybeAddToChanges(C,y),this._appendAfter=C,C=C._next;else{const S=this._getOrCreateRecordForKey(x,y);C=this._insertBeforeOrAppend(C,S)}}),C){C._prev&&(C._prev._next=null),this._removalsHead=C;for(let y=C;null!==y;y=y._nextRemoved)y===this._mapHead&&(this._mapHead=null),this._records.delete(y.key),y._nextRemoved=y._next,y.previousValue=y.currentValue,y.currentValue=null,y._prev=null,y._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(b,C){if(b){const y=b._prev;return C._next=b,C._prev=y,b._prev=C,y&&(y._next=C),b===this._mapHead&&(this._mapHead=C),this._appendAfter=b,b}return this._appendAfter?(this._appendAfter._next=C,C._prev=this._appendAfter):this._mapHead=C,this._appendAfter=C,null}_getOrCreateRecordForKey(b,C){if(this._records.has(b)){const x=this._records.get(b);this._maybeAddToChanges(x,C);const S=x._prev,T=x._next;return S&&(S._next=T),T&&(T._prev=S),x._next=null,x._prev=null,x}const y=new T0(b);return this._records.set(b,y),y.currentValue=C,this._addToAdditions(y),y}_reset(){if(this.isDirty){let b;for(this._previousMapHead=this._mapHead,b=this._previousMapHead;null!==b;b=b._next)b._nextPrevious=b._next;for(b=this._changesHead;null!==b;b=b._nextChanged)b.previousValue=b.currentValue;for(b=this._additionsHead;null!=b;b=b._nextAdded)b.previousValue=b.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(b,C){Object.is(C,b.currentValue)||(b.previousValue=b.currentValue,b.currentValue=C,this._addToChanges(b))}_addToAdditions(b){null===this._additionsHead?this._additionsHead=this._additionsTail=b:(this._additionsTail._nextAdded=b,this._additionsTail=b)}_addToChanges(b){null===this._changesHead?this._changesHead=this._changesTail=b:(this._changesTail._nextChanged=b,this._changesTail=b)}_forEach(b,C){b instanceof Map?b.forEach(C):Object.keys(b).forEach(y=>C(b[y],y))}}class T0{constructor(b){this.key=b,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function E0(){return new ic([new eC])}let ic=(()=>{class _{constructor(C){this.factories=C}static create(C,y){if(null!=y){const x=y.factories.slice();C=C.concat(x)}return new _(C)}static extend(C){return{provide:_,useFactory:y=>_.create(C,y||E0()),deps:[[_,new ra,new tl]]}}find(C){const y=this.factories.find(x=>x.supports(C));if(null!=y)return y;throw new ae(901,!1)}}return _.\u0275prov=Et({token:_,providedIn:"root",factory:E0}),_})();function Qp(){return new Nd([new rC])}let Nd=(()=>{class _{constructor(C){this.factories=C}static create(C,y){if(y){const x=y.factories.slice();C=C.concat(x)}return new _(C)}static extend(C){return{provide:_,useFactory:y=>_.create(C,y||Qp()),deps:[[_,new ra,new tl]]}}find(C){const y=this.factories.find(x=>x.supports(C));if(y)return y;throw new ae(901,!1)}}return _.\u0275prov=Et({token:_,providedIn:"root",factory:Qp}),_})();const oC=jp(null,"core",[]);let H0=(()=>{class _{constructor(C){}}return _.\u0275fac=function(C){return new(C||_)(ti(wa))},_.\u0275mod=Zr({type:_}),_.\u0275inj=ui({}),_})();function R0(_){return"boolean"==typeof _?_:null!=_&&"false"!==_}},1214:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Ct:()=>OAuthService,Hy:()=>OAuthStorage,zr:()=>OAuthModule});var _home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5861),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(4650),_angular_common__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(6895),_angular_common_http__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(529),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(7579),rxjs__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(9646),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(2076),rxjs__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(102),rxjs__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(2843),rxjs__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(9841),rxjs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(6451),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(9300),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(8505),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(8372),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(1005),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(3900),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(4004),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(590),rxjs_operators__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(262),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(7414),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(5698),rxjs_operators__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(5577),fast_sha256__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1302);class DateTimeProvider{}let SystemDateTimeProvider=(()=>{class N extends DateTimeProvider{now(){return Date.now()}new(){return new Date}}return N.\u0275fac=function(){let z;return function(M){return(z||(z=_angular_core__WEBPACK_IMPORTED_MODULE_1__.n5z(N)))(M||N)}}(),N.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:N,factory:N.\u0275fac}),N})();class LoginOptions{constructor(){this.disableNonceCheck=!1,this.preventClearHashAfterLogin=!1}}class OAuthLogger{}class OAuthStorage{}let MemoryStorage=(()=>{class N{constructor(){this.data=new Map}getItem(E){return this.data.get(E)}removeItem(E){this.data.delete(E)}setItem(E,M){this.data.set(E,M)}}return N.\u0275fac=function(E){return new(E||N)},N.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:N,factory:N.\u0275fac}),N})();class ReceivedTokens{}class OAuthEvent{constructor(z){this.type=z}}class OAuthSuccessEvent extends OAuthEvent{constructor(z,E=null){super(z),this.info=E}}class OAuthInfoEvent extends OAuthEvent{constructor(z,E=null){super(z),this.info=E}}class OAuthErrorEvent extends OAuthEvent{constructor(z,E,M=null){super(z),this.reason=E,this.params=M}}function b64DecodeUnicode(N){const z=N.replace(/\-/g,"+").replace(/\_/g,"/");return decodeURIComponent(atob(z).split("").map(function(E){return"%"+("00"+E.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function base64UrlEncode(N){return btoa(N).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}class AuthConfig{constructor(z){this.clientId="",this.redirectUri="",this.postLogoutRedirectUri="",this.redirectUriAsPostLogoutRedirectUriFallback=!0,this.loginUrl="",this.scope="openid profile",this.resource="",this.rngUrl="",this.oidc=!0,this.requestAccessToken=!0,this.options=null,this.issuer="",this.logoutUrl="",this.clearHashAfterLogin=!0,this.tokenEndpoint=null,this.revocationEndpoint=null,this.customTokenParameters=[],this.userinfoEndpoint=null,this.responseType="",this.showDebugInformation=!1,this.silentRefreshRedirectUri="",this.silentRefreshMessagePrefix="",this.silentRefreshShowIFrame=!1,this.siletRefreshTimeout=2e4,this.silentRefreshTimeout=2e4,this.dummyClientSecret=null,this.requireHttps="remoteOnly",this.strictDiscoveryDocumentValidation=!0,this.jwks=null,this.customQueryParams=null,this.silentRefreshIFrameName="angular-oauth-oidc-silent-refresh-iframe",this.timeoutFactor=.75,this.sessionChecksEnabled=!1,this.sessionCheckIntervall=3e3,this.sessionCheckIFrameUrl=null,this.sessionCheckIFrameName="angular-oauth-oidc-check-session-iframe",this.disableAtHashCheck=!1,this.skipSubjectCheck=!1,this.useIdTokenHintForSilentRefresh=!1,this.skipIssuerCheck=!1,this.nonceStateSeparator=";",this.useHttpBasicAuth=!1,this.waitForTokenInMsec=0,this.disablePKCE=!1,this.preserveRequestedRoute=!1,this.openUri=E=>{location.href=E},z&&Object.assign(this,z)}}class WebHttpUrlEncodingCodec{encodeKey(z){return encodeURIComponent(z)}encodeValue(z){return encodeURIComponent(z)}decodeKey(z){return decodeURIComponent(z)}decodeValue(z){return decodeURIComponent(z)}}class ValidationHandler{}class AbstractValidationHandler{validateAtHash(z){var E=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){let M=E.inferHashAlgorithm(z.idTokenHeader),h=yield E.calcHash(z.accessToken,M),F=base64UrlEncode(h.substr(0,h.length/2)),B=z.idTokenClaims.at_hash.replace(/=/g,"");return F!==B&&(console.error("exptected at_hash: "+F),console.error("actual at_hash: "+B)),F===B})()}inferHashAlgorithm(z){let E=z.alg;if(!E.match(/^.S[0-9]{3}$/))throw new Error("Algorithm not supported: "+E);return"sha-"+E.substr(2)}}let UrlHelperService=(()=>{class N{getHashFragmentParams(E){let M=E||window.location.hash;if(M=decodeURIComponent(M),0!==M.indexOf("#"))return{};const h=M.indexOf("?");return M=M.substr(h>-1?h+1:1),this.parseQueryString(M)}parseQueryString(E){const M={};let h,L,F,B,q,Y,ee;if(null===E)return M;h=E.split("&");for(let W=0;W>6,L[B++]=128|63&q):q<55296||q>=57344?(L[B++]=224|q>>12,L[B++]=128|q>>6&63,L[B++]=128|63&q):(q=65536+((1023&q)<<10|1023&N.charCodeAt(++M)),L[B++]=240|q>>18,L[B++]=128|q>>12&63,L[B++]=128|q>>6&63,L[B++]=128|63&q);N=L}else{if("object"!==h)throw new Error(ERROR);if(null===N)throw new Error(ERROR);if(ARRAY_BUFFER&&N.constructor===ArrayBuffer)N=new Uint8Array(N);else if(!(Array.isArray(N)||ARRAY_BUFFER&&ArrayBuffer.isView(N)))throw new Error(ERROR)}N.length>64&&(N=new Sha256(z,!0).update(N).array());var Y=[],ee=[];for(M=0;M<64;++M){var W=N[M]||0;Y[M]=92^W,ee[M]=54^W}Sha256.call(this,z,E),this.update(ee),this.oKeyPad=Y,this.inner=!0,this.sharedMemory=E}Sha256.prototype.update=function(N){if(!this.finalized){var z,E=typeof N;if("string"!==E){if("object"!==E)throw new Error(ERROR);if(null===N)throw new Error(ERROR);if(ARRAY_BUFFER&&N.constructor===ArrayBuffer)N=new Uint8Array(N);else if(!(Array.isArray(N)||ARRAY_BUFFER&&ArrayBuffer.isView(N)))throw new Error(ERROR);z=!0}for(var M,L,h=0,F=N.length,B=this.blocks;h>2]|=N[h]<>2]|=M<>2]|=(192|M>>6)<>2]|=(128|63&M)<=57344?(B[L>>2]|=(224|M>>12)<>2]|=(128|M>>6&63)<>2]|=(128|63&M)<>2]|=(240|M>>18)<>2]|=(128|M>>12&63)<>2]|=(128|M>>6&63)<>2]|=(128|63&M)<=64?(this.block=B[16],this.start=L-64,this.hash(),this.hashed=!0):this.start=L}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var N=this.blocks,z=this.lastByteIndex;N[16]=this.block,N[z>>2]|=EXTRA[3&z],this.block=N[16],z>=56&&(this.hashed||this.hash(),N[0]=this.block,N[16]=N[1]=N[2]=N[3]=N[4]=N[5]=N[6]=N[7]=N[8]=N[9]=N[10]=N[11]=N[12]=N[13]=N[14]=N[15]=0),N[14]=this.hBytes<<3|this.bytes>>>29,N[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var Y,G,ie,ae,he,fe,N=this.h0,z=this.h1,E=this.h2,M=this.h3,h=this.h4,L=this.h5,F=this.h6,B=this.h7,q=this.blocks;for(Y=16;Y<64;++Y)q[Y]=q[Y-16]+(((G=q[Y-15])>>>7|G<<25)^(G>>>18|G<<14)^G>>>3)+q[Y-7]+(((G=q[Y-2])>>>17|G<<15)^(G>>>19|G<<13)^G>>>10)<<0;for(fe=z&E,Y=0;Y<64;Y+=4)this.first?(this.is224?(ie=300032,B=(G=q[0]-1413257819)-150054599<<0,M=G+24177077<<0):(ie=704751109,B=(G=q[0]-210244248)-1521486534<<0,M=G+143694565<<0),this.first=!1):(B=M+(G=B+((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&L^~h&F)+K[Y]+q[Y])<<0,M=G+(((N>>>2|N<<30)^(N>>>13|N<<19)^(N>>>22|N<<10))+((ie=N&z)^N&E^fe))<<0),F=E+(G=F+((B>>>6|B<<26)^(B>>>11|B<<21)^(B>>>25|B<<7))+(B&h^~B&L)+K[Y+1]+q[Y+1])<<0,E=G+(((M>>>2|M<<30)^(M>>>13|M<<19)^(M>>>22|M<<10))+((ae=M&N)^M&z^ie))<<0,L=z+(G=L+((F>>>6|F<<26)^(F>>>11|F<<21)^(F>>>25|F<<7))+(F&B^~F&h)+K[Y+2]+q[Y+2])<<0,z=G+(((E>>>2|E<<30)^(E>>>13|E<<19)^(E>>>22|E<<10))+((he=E&M)^E&N^ae))<<0,h=N+(G=h+((L>>>6|L<<26)^(L>>>11|L<<21)^(L>>>25|L<<7))+(L&F^~L&B)+K[Y+3]+q[Y+3])<<0,N=G+(((z>>>2|z<<30)^(z>>>13|z<<19)^(z>>>22|z<<10))+((fe=z&E)^z&M^he))<<0;this.h0=this.h0+N<<0,this.h1=this.h1+z<<0,this.h2=this.h2+E<<0,this.h3=this.h3+M<<0,this.h4=this.h4+h<<0,this.h5=this.h5+L<<0,this.h6=this.h6+F<<0,this.h7=this.h7+B<<0},Sha256.prototype.hex=function(){this.finalize();var N=this.h0,z=this.h1,E=this.h2,M=this.h3,h=this.h4,L=this.h5,F=this.h6,B=this.h7,q=HEX_CHARS[N>>28&15]+HEX_CHARS[N>>24&15]+HEX_CHARS[N>>20&15]+HEX_CHARS[N>>16&15]+HEX_CHARS[N>>12&15]+HEX_CHARS[N>>8&15]+HEX_CHARS[N>>4&15]+HEX_CHARS[15&N]+HEX_CHARS[z>>28&15]+HEX_CHARS[z>>24&15]+HEX_CHARS[z>>20&15]+HEX_CHARS[z>>16&15]+HEX_CHARS[z>>12&15]+HEX_CHARS[z>>8&15]+HEX_CHARS[z>>4&15]+HEX_CHARS[15&z]+HEX_CHARS[E>>28&15]+HEX_CHARS[E>>24&15]+HEX_CHARS[E>>20&15]+HEX_CHARS[E>>16&15]+HEX_CHARS[E>>12&15]+HEX_CHARS[E>>8&15]+HEX_CHARS[E>>4&15]+HEX_CHARS[15&E]+HEX_CHARS[M>>28&15]+HEX_CHARS[M>>24&15]+HEX_CHARS[M>>20&15]+HEX_CHARS[M>>16&15]+HEX_CHARS[M>>12&15]+HEX_CHARS[M>>8&15]+HEX_CHARS[M>>4&15]+HEX_CHARS[15&M]+HEX_CHARS[h>>28&15]+HEX_CHARS[h>>24&15]+HEX_CHARS[h>>20&15]+HEX_CHARS[h>>16&15]+HEX_CHARS[h>>12&15]+HEX_CHARS[h>>8&15]+HEX_CHARS[h>>4&15]+HEX_CHARS[15&h]+HEX_CHARS[L>>28&15]+HEX_CHARS[L>>24&15]+HEX_CHARS[L>>20&15]+HEX_CHARS[L>>16&15]+HEX_CHARS[L>>12&15]+HEX_CHARS[L>>8&15]+HEX_CHARS[L>>4&15]+HEX_CHARS[15&L]+HEX_CHARS[F>>28&15]+HEX_CHARS[F>>24&15]+HEX_CHARS[F>>20&15]+HEX_CHARS[F>>16&15]+HEX_CHARS[F>>12&15]+HEX_CHARS[F>>8&15]+HEX_CHARS[F>>4&15]+HEX_CHARS[15&F];return this.is224||(q+=HEX_CHARS[B>>28&15]+HEX_CHARS[B>>24&15]+HEX_CHARS[B>>20&15]+HEX_CHARS[B>>16&15]+HEX_CHARS[B>>12&15]+HEX_CHARS[B>>8&15]+HEX_CHARS[B>>4&15]+HEX_CHARS[15&B]),q},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var N=this.h0,z=this.h1,E=this.h2,M=this.h3,h=this.h4,L=this.h5,F=this.h6,B=this.h7,q=[N>>24&255,N>>16&255,N>>8&255,255&N,z>>24&255,z>>16&255,z>>8&255,255&z,E>>24&255,E>>16&255,E>>8&255,255&E,M>>24&255,M>>16&255,M>>8&255,255&M,h>>24&255,h>>16&255,h>>8&255,255&h,L>>24&255,L>>16&255,L>>8&255,255&L,F>>24&255,F>>16&255,F>>8&255,255&F];return this.is224||q.push(B>>24&255,B>>16&255,B>>8&255,255&B),q},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var N=new ArrayBuffer(this.is224?28:32),z=new DataView(N);return z.setUint32(0,this.h0),z.setUint32(4,this.h1),z.setUint32(8,this.h2),z.setUint32(12,this.h3),z.setUint32(16,this.h4),z.setUint32(20,this.h5),z.setUint32(24,this.h6),this.is224||z.setUint32(28,this.h7),N},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var N=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(N),Sha256.prototype.finalize.call(this)}};var exports=createMethod();return exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),exports}const sha256=factory();class HashHandler{}function decodeUTF8(N){if("string"!=typeof N)throw new TypeError("expected string");var z,E=N,M=new Uint8Array(E.length);for(z=0;z{class N{calcHash(E,M){return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){return encodeUTF8(fast_sha256__WEBPACK_IMPORTED_MODULE_0__(decodeUTF8(E)))})()}toHashString2(E){let M="";for(let h of E)M+=String.fromCharCode(h);return M}toHashString(E){const M=new Uint8Array(E);let h="";for(let L of M)h+=String.fromCharCode(L);return h}}return N.\u0275fac=function(E){return new(E||N)},N.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:N,factory:N.\u0275fac}),N})(),OAuthService=(()=>{class N extends AuthConfig{constructor(E,M,h,L,F,B,q,Y,ee,W){super(),this.ngZone=E,this.http=M,this.config=F,this.urlHelper=B,this.logger=q,this.crypto=Y,this.dateTimeService=W,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.discoveryDocumentLoadedSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=ee,F||(F={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),L&&(this.tokenValidationHandler=L),F&&this.configure(F);try{h?this.setStorage(h):typeof sessionStorage<"u"&&this.setStorage(sessionStorage)}catch(Q){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",Q)}if(this.checkLocalStorageAccessable()){const Q=window?.navigator?.userAgent;(Q?.includes("MSIE ")||Q?.includes("Trident"))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if(typeof window>"u")return!1;const E="test";try{return!(typeof window.localStorage>"u"||(localStorage.setItem(E,E),localStorage.removeItem(E),0))}catch{return!1}}configure(E){Object.assign(this,new AuthConfig,E),this.config=Object.assign({},new AuthConfig,E),this.sessionChecksEnabled&&this.setupSessionCheck(),this.configChanged()}configChanged(){this.setupRefreshTimer()}restartSessionChecksIfStillLoggedIn(){this.hasValidIdToken()&&this.initSessionCheck()}restartRefreshTimerIfStillLoggedIn(){this.setupExpirationTimers()}setupSessionCheck(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(E=>"token_received"===E.type)).subscribe(E=>{this.initSessionCheck()})}setupAutomaticSilentRefresh(E={},M,h=!0){let L=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(F=>{"token_received"===F.type?L=!0:"logout"===F.type&&(L=!1)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(F=>"token_expires"===F.type&&(null==M||"any"===M||F.info===M)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.b)(1e3)).subscribe(F=>{L&&this.refreshInternal(E,h).catch(B=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(E,M){return this.useSilentRefresh||"code"!==this.responseType?this.silentRefresh(E,M):this.refreshToken()}loadDiscoveryDocumentAndTryLogin(E=null){return this.loadDiscoveryDocument().then(M=>this.tryLogin(E))}loadDiscoveryDocumentAndLogin(E=null){return this.loadDiscoveryDocumentAndTryLogin(E=E||{}).then(M=>!(!this.hasValidIdToken()||!this.hasValidAccessToken())||(this.initLoginFlow("string"==typeof E.state?E.state:""),!1))}debug(...E){this.showDebugInformation&&this.logger.debug.apply(this.logger,E)}validateUrlFromDiscoveryDocument(E){const M=[],h=this.validateUrlForHttps(E),L=this.validateUrlAgainstIssuer(E);return h||M.push("https for all urls required. Also for urls received by discovery."),L||M.push("Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation."),M}validateUrlForHttps(E){if(!E)return!0;const M=E.toLowerCase();return!(!1!==this.requireHttps&&(!M.match(/^http:\/\/localhost($|[:\/])/)&&!M.match(/^http:\/\/localhost($|[:\/])/)||"remoteOnly"!==this.requireHttps))||M.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(E,M){if(!E)throw new Error(`'${M}' should not be null`);if(!this.validateUrlForHttps(E))throw new Error(`'${M}' must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).`)}validateUrlAgainstIssuer(E){return!this.strictDiscoveryDocumentValidation||!E||E.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){typeof window>"u"?this.debug("timer not supported on this plattform"):((this.hasValidIdToken()||this.hasValidAccessToken())&&(this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()),this.tokenReceivedSubscription&&this.tokenReceivedSubscription.unsubscribe(),this.tokenReceivedSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(E=>"token_received"===E.type)).subscribe(E=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()}))}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){const E=this.getAccessTokenExpiration(),M=this.getAccessTokenStoredAt(),h=this.calcTimeout(M,E);this.ngZone.runOutsideAngular(()=>{this.accessTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","access_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(h)).subscribe(L=>{this.ngZone.run(()=>{this.eventsSubject.next(L)})})})}setupIdTokenTimer(){const E=this.getIdTokenExpiration(),M=this.getIdTokenStoredAt(),h=this.calcTimeout(M,E);this.ngZone.runOutsideAngular(()=>{this.idTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","id_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(h)).subscribe(L=>{this.ngZone.run(()=>{this.eventsSubject.next(L)})})})}stopAutomaticRefresh(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.clearAutomaticRefreshTimer()}clearAccessTokenTimer(){this.accessTokenTimeoutSubscription&&this.accessTokenTimeoutSubscription.unsubscribe()}clearIdTokenTimer(){this.idTokenTimeoutSubscription&&this.idTokenTimeoutSubscription.unsubscribe()}clearAutomaticRefreshTimer(){this.automaticRefreshSubscription&&this.automaticRefreshSubscription.unsubscribe()}calcTimeout(E,M){const h=this.dateTimeService.now();return Math.max(0,(M-E)*this.timeoutFactor-(h-E))}setStorage(E){this._storage=E,this.configChanged()}loadDiscoveryDocument(E=null){return new Promise((M,h)=>{E||((E=this.issuer||"").endsWith("/")||(E+="/"),E+=".well-known/openid-configuration"),this.validateUrlForHttps(E)?this.http.get(E).subscribe(L=>{if(!this.validateDiscoveryDocument(L))return this.eventsSubject.next(new OAuthErrorEvent("discovery_document_validation_error",null)),void h("discovery_document_validation_error");this.loginUrl=L.authorization_endpoint,this.logoutUrl=L.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=L.grant_types_supported,this.issuer=L.issuer,this.tokenEndpoint=L.token_endpoint,this.userinfoEndpoint=L.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=L.jwks_uri,this.sessionCheckIFrameUrl=L.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(L),this.revocationEndpoint=L.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(F=>{const q=new OAuthSuccessEvent("discovery_document_loaded",{discoveryDocument:L,jwks:F});this.eventsSubject.next(q),M(q)}).catch(F=>{this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",F)),h(F)})},L=>{this.logger.error("error loading discovery document",L),this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",L)),h(L)}):h("issuer must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).")})}loadJwks(){return new Promise((E,M)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(h=>{this.jwks=h,this.eventsSubject.next(new OAuthSuccessEvent("discovery_document_loaded")),E(h)},h=>{this.logger.error("error loading jwks",h),this.eventsSubject.next(new OAuthErrorEvent("jwks_load_error",h)),M(h)}):E(null)})}validateDiscoveryDocument(E){let M;return this.skipIssuerCheck||E.issuer===this.issuer?(M=this.validateUrlFromDiscoveryDocument(E.authorization_endpoint),M.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",M),!1):(M=this.validateUrlFromDiscoveryDocument(E.end_session_endpoint),M.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",M),!1):(M=this.validateUrlFromDiscoveryDocument(E.token_endpoint),M.length>0&&this.logger.error("error validating token_endpoint in discovery document",M),M=this.validateUrlFromDiscoveryDocument(E.revocation_endpoint),M.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",M),M=this.validateUrlFromDiscoveryDocument(E.userinfo_endpoint),M.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",M),!1):(M=this.validateUrlFromDiscoveryDocument(E.jwks_uri),M.length>0?(this.logger.error("error validating jwks_uri in discovery document",M),!1):(this.sessionChecksEnabled&&!E.check_session_iframe&&this.logger.warn("sessionChecksEnabled is activated but discovery document does not contain a check_session_iframe field"),!0))))):(this.logger.error("invalid issuer in discovery document","expected: "+this.issuer,"current: "+E.issuer),!1)}fetchTokenUsingPasswordFlowAndLoadUserProfile(E,M,h=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingPasswordFlow(E,M,h).then(()=>this.loadUserProfile())}loadUserProfile(){if(!this.hasValidAccessToken())throw new Error("Can not load User Profile without access_token");if(!this.validateUrlForHttps(this.userinfoEndpoint))throw new Error("userinfoEndpoint must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");return new Promise((E,M)=>{const h=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:h,observe:"response",responseType:"text"}).subscribe(L=>{if(this.debug("userinfo received",JSON.stringify(L)),L.headers.get("content-type").startsWith("application/json")){let F=JSON.parse(L.body);const B=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!B.sub||F.sub!==B.sub))return void M("if property oidc is true, the received user-id (sub) has to be the user-id of the user that has logged in with oidc.\nif you are not using oidc but just oauth2 password flow set oidc to false");F=Object.assign({},B,F),this._storage.setItem("id_token_claims_obj",JSON.stringify(F)),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),E({info:F})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),E(JSON.parse(L.body))},L=>{this.logger.error("error loading user info",L),this.eventsSubject.next(new OAuthErrorEvent("user_profile_load_error",L)),M(L)})})}fetchTokenUsingPasswordFlow(E,M,h=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingGrant("password",{username:E,password:M},h)}fetchTokenUsingGrant(E,M,h=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let L=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type",E).set("scope",this.scope);if(this.useHttpBasicAuth){const F=btoa(`${this.clientId}:${this.dummyClientSecret}`);h=h.set("Authorization","Basic "+F)}if(this.useHttpBasicAuth||(L=L.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(L=L.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const F of Object.getOwnPropertyNames(this.customQueryParams))L=L.set(F,this.customQueryParams[F]);for(const F of Object.keys(M))L=L.set(F,M[F]);return h=h.set("Content-Type","application/x-www-form-urlencoded"),new Promise((F,B)=>{this.http.post(this.tokenEndpoint,L,{headers:h}).subscribe(q=>{this.debug("tokenResponse",q),this.storeAccessTokenResponse(q.access_token,q.refresh_token,q.expires_in||this.fallbackAccessTokenExpirationTimeInSec,q.scope,this.extractRecognizedCustomParameters(q)),this.oidc&&q.id_token&&this.processIdToken(q.id_token,q.access_token).then(Y=>{this.storeIdToken(Y),F(q)}),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),F(q)},q=>{this.logger.error("Error performing ${grantType} flow",q),this.eventsSubject.next(new OAuthErrorEvent("token_error",q)),B(q)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((E,M)=>{let h=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","refresh_token").set("scope",this.scope).set("refresh_token",this._storage.getItem("refresh_token")),L=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const F=btoa(`${this.clientId}:${this.dummyClientSecret}`);L=L.set("Authorization","Basic "+F)}if(this.useHttpBasicAuth||(h=h.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(h=h.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const F of Object.getOwnPropertyNames(this.customQueryParams))h=h.set(F,this.customQueryParams[F]);this.http.post(this.tokenEndpoint,h,{headers:L}).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.w)(F=>F.id_token?(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.D)(this.processIdToken(F.id_token,F.access_token,!0)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(B=>this.storeIdToken(B)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(B=>F)):(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(F))).subscribe(F=>{this.debug("refresh tokenResponse",F),this.storeAccessTokenResponse(F.access_token,F.refresh_token,F.expires_in||this.fallbackAccessTokenExpirationTimeInSec,F.scope,this.extractRecognizedCustomParameters(F)),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),E(F)},F=>{this.logger.error("Error refreshing token",F),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",F)),M(F)})})}removeSilentRefreshEventListener(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}setupSilentRefreshEventListener(){this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=E=>{const M=this.processMessageEventMessage(E);this.tryLogin({customHashFragment:M,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri||this.redirectUri}).catch(h=>this.debug("tryLogin during silent refresh failed",h))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(E={},M=!0){const h=this.getIdentityClaims()||{};if(this.useIdTokenHintForSilentRefresh&&this.hasValidIdToken()&&(E.id_token_hint=this.getIdToken()),!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(typeof this.document>"u")throw new Error("silent refresh is not supported on this platform");const L=this.document.getElementById(this.silentRefreshIFrameName);L&&this.document.body.removeChild(L),this.silentRefreshSubject=h.sub;const F=this.document.createElement("iframe");F.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,M,E).then(W=>{F.setAttribute("src",W),this.silentRefreshShowIFrame||(F.style.display="none"),this.document.body.appendChild(F)});const q=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(W=>W instanceof OAuthErrorEvent),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),Y=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(W=>"token_received"===W.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),ee=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthErrorEvent("silent_refresh_timeout",null)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(this.silentRefreshTimeout));return(0,rxjs__WEBPACK_IMPORTED_MODULE_14__.S)([q,Y,ee]).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(W=>{if(W instanceof OAuthErrorEvent)throw"silent_refresh_timeout"===W.type||(W=new OAuthErrorEvent("silent_refresh_error",W)),this.eventsSubject.next(W),W;return"token_received"===W.type&&(W=new OAuthSuccessEvent("silently_refreshed"),this.eventsSubject.next(W)),W})).toPromise()}initImplicitFlowInPopup(E){return this.initLoginFlowInPopup(E)}initLoginFlowInPopup(E){return E=E||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(M=>new Promise((h,L)=>{let q,B=null;E.windowRef?E.windowRef&&!E.windowRef.closed&&(B=E.windowRef,B.location.href=M):B=window.open(M,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(E));const Y=re=>{this.tryLogin({customHashFragment:re,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{W(),h(!0)},oe=>{W(),L(oe)})};B?q=window.setInterval(()=>{(!B||B.closed)&&(W(),L(new OAuthErrorEvent("popup_closed",{})))},500):L(new OAuthErrorEvent("popup_blocked",{}));const W=()=>{window.clearInterval(q),window.removeEventListener("storage",G),window.removeEventListener("message",Q),null!==B&&B.close(),B=null},Q=re=>{const oe=this.processMessageEventMessage(re);oe&&null!==oe?(window.removeEventListener("storage",G),Y(oe)):console.log("false event firing")},G=re=>{"auth_hash"===re.key&&(window.removeEventListener("message",Q),Y(re.newValue))};window.addEventListener("message",Q),window.addEventListener("storage",G)}))}calculatePopupFeatures(E){const M=E.height||470,h=E.width||500,L=window.screenLeft+(window.outerWidth-h)/2;return`location=no,toolbar=no,width=${h},height=${M},top=${window.screenTop+(window.outerHeight-M)/2},left=${L}`}processMessageEventMessage(E){let M="#";if(this.silentRefreshMessagePrefix&&(M+=this.silentRefreshMessagePrefix),!E||!E.data||"string"!=typeof E.data)return;const h=E.data;return h.startsWith(M)?"#"+h.substr(M.length):void 0}canPerformSessionCheck(){return!(!this.sessionChecksEnabled||(this.sessionCheckIFrameUrl?this.getSessionState()?typeof this.document>"u":(console.warn("sessionChecksEnabled is activated but there is no session_state"),1):(console.warn("sessionChecksEnabled is activated but there is no sessionCheckIFrameUrl"),1)))}setupSessionCheckEventListener(){this.removeSessionCheckEventListener(),this.sessionCheckEventListener=E=>{const M=E.origin.toLowerCase(),h=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),h.startsWith(M)){switch(E.data){case"unchanged":this.ngZone.run(()=>{this.handleSessionUnchanged()});break;case"changed":this.ngZone.run(()=>{this.handleSessionChange()});break;case"error":this.ngZone.run(()=>{this.handleSessionError()})}this.debug("got info from session check inframe",E)}else this.debug("sessionCheckEventListener","wrong origin",M,"expected",h,"event",E)},this.ngZone.runOutsideAngular(()=>{window.addEventListener("message",this.sessionCheckEventListener)})}handleSessionUnchanged(){this.debug("session check","session unchanged"),this.eventsSubject.next(new OAuthInfoEvent("session_unchanged"))}handleSessionChange(){this.eventsSubject.next(new OAuthInfoEvent("session_changed")),this.stopSessionCheckTimer(),this.useSilentRefresh||"code"!==this.responseType?this.silentRefreshRedirectUri?(this.silentRefresh().catch(E=>this.debug("silent refresh failed after session changed")),this.waitForSilentRefreshAfterSessionChange()):(this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)):this.refreshToken().then(E=>{this.debug("token refresh after session change worked")}).catch(E=>{this.debug("token refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)})}waitForSilentRefreshAfterSessionChange(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(E=>"silently_refreshed"===E.type||"silent_refresh_timeout"===E.type||"silent_refresh_error"===E.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()).subscribe(E=>{"silently_refreshed"!==E.type&&(this.debug("silent refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0))})}handleSessionError(){this.stopSessionCheckTimer(),this.eventsSubject.next(new OAuthInfoEvent("session_error"))}removeSessionCheckEventListener(){this.sessionCheckEventListener&&(window.removeEventListener("message",this.sessionCheckEventListener),this.sessionCheckEventListener=null)}initSessionCheck(){if(!this.canPerformSessionCheck())return;const E=this.document.getElementById(this.sessionCheckIFrameName);E&&this.document.body.removeChild(E);const M=this.document.createElement("iframe");M.id=this.sessionCheckIFrameName,this.setupSessionCheckEventListener(),M.setAttribute("src",this.sessionCheckIFrameUrl),M.style.display="none",this.document.body.appendChild(M),this.startSessionCheckTimer()}startSessionCheckTimer(){this.stopSessionCheckTimer(),this.ngZone.runOutsideAngular(()=>{this.sessionCheckTimer=setInterval(this.checkSession.bind(this),this.sessionCheckIntervall)})}stopSessionCheckTimer(){this.sessionCheckTimer&&(clearInterval(this.sessionCheckTimer),this.sessionCheckTimer=null)}checkSession(){const E=this.document.getElementById(this.sessionCheckIFrameName);E||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);const M=this.getSessionState();M||this.stopSessionCheckTimer(),E.contentWindow.postMessage(this.clientId+" "+M,this.issuer)}createLoginUrl(E="",M="",h="",L=!1,F={}){var B=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const q=B;let Y;Y=h||B.redirectUri;const ee=yield B.createAndSaveNonce();if(E=E?ee+B.config.nonceStateSeparator+encodeURIComponent(E):ee,!B.requestAccessToken&&!B.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");B.responseType=B.config.responseType?B.config.responseType:B.oidc&&B.requestAccessToken?"id_token token":B.oidc&&!B.requestAccessToken?"id_token":"token";const W=q.loginUrl.indexOf("?")>-1?"&":"?";let Q=q.scope;B.oidc&&!Q.match(/(^|\s)openid($|\s)/)&&(Q="openid "+Q);let G=q.loginUrl+W+"response_type="+encodeURIComponent(q.responseType)+"&client_id="+encodeURIComponent(q.clientId)+"&state="+encodeURIComponent(E)+"&redirect_uri="+encodeURIComponent(Y)+"&scope="+encodeURIComponent(Q);if(B.responseType.includes("code")&&!B.disablePKCE){const[re,oe]=yield B.createChallangeVerifierPairForPKCE();B.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("PKCE_verifier",oe):B._storage.setItem("PKCE_verifier",oe),G+="&code_challenge="+re,G+="&code_challenge_method=S256"}M&&(G+="&login_hint="+encodeURIComponent(M)),q.resource&&(G+="&resource="+encodeURIComponent(q.resource)),q.oidc&&(G+="&nonce="+encodeURIComponent(ee)),L&&(G+="&prompt=none");for(const re of Object.keys(F))G+="&"+encodeURIComponent(re)+"="+encodeURIComponent(F[re]);if(B.customQueryParams)for(const re of Object.getOwnPropertyNames(B.customQueryParams))G+="&"+re+"="+encodeURIComponent(B.customQueryParams[re]);return G})()}initImplicitFlowInternal(E="",M=""){if(this.inImplicitFlow)return;if(this.inImplicitFlow=!0,!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let h={},L=null;"string"==typeof M?L=M:"object"==typeof M&&(h=M),this.createLoginUrl(E,L,null,!1,h).then(this.config.openUri).catch(F=>{console.error("Error in initImplicitFlow",F),this.inImplicitFlow=!1})}initImplicitFlow(E="",M=""){""!==this.loginUrl?this.initImplicitFlowInternal(E,M):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(h=>"discovery_document_loaded"===h.type)).subscribe(h=>this.initImplicitFlowInternal(E,M))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(E){const M=this;if(E.onTokenReceived){const h={idClaims:M.getIdentityClaims(),idToken:M.getIdToken(),accessToken:M.getAccessToken(),state:M.state};E.onTokenReceived(h)}}storeAccessTokenResponse(E,M,h,L,F){if(this._storage.setItem("access_token",E),L&&!Array.isArray(L)?this._storage.setItem("granted_scopes",JSON.stringify(L.split(" "))):L&&Array.isArray(L)&&this._storage.setItem("granted_scopes",JSON.stringify(L)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),h){const B=1e3*h,Y=this.dateTimeService.new().getTime()+B;this._storage.setItem("expires_at",""+Y)}M&&this._storage.setItem("refresh_token",M),F&&F.forEach((B,q)=>{this._storage.setItem(q,B)})}tryLogin(E=null){return"code"===this.config.responseType?this.tryLoginCodeFlow(E).then(M=>!0):this.tryLoginImplicitFlow(E)}parseQueryString(E){return E&&0!==E.length?("?"===E.charAt(0)&&(E=E.substr(1)),this.urlHelper.parseQueryString(E)):{}}tryLoginCodeFlow(E=null){var M=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const h=(E=E||{}).customHashFragment?E.customHashFragment.substring(1):window.location.search,L=M.getCodePartsFromUrl(h),F=L.code,B=L.state,q=L.session_state;if(!E.preventClearHashAfterLogin){const W=location.origin+location.pathname+location.search.replace(/code=[^&\$]*/,"").replace(/scope=[^&\$]*/,"").replace(/state=[^&\$]*/,"").replace(/session_state=[^&\$]*/,"").replace(/^\?&/,"?").replace(/&$/,"").replace(/^\?$/,"").replace(/&+/g,"&").replace(/\?&/,"?").replace(/\?$/,"")+location.hash;history.replaceState(null,window.name,W)}let[Y,ee]=M.parseState(B);if(M.state=ee,L.error){M.debug("error trying to login"),M.handleLoginError(E,L);const W=new OAuthErrorEvent("code_error",{},L);return M.eventsSubject.next(W),Promise.reject(W)}if(!E.disableNonceCheck){if(!Y)return M.saveRequestedRoute(),Promise.resolve();if(!E.disableOAuth2StateCheck&&!M.validateNonce(Y)){const Q=new OAuthErrorEvent("invalid_nonce_in_state",null);return M.eventsSubject.next(Q),Promise.reject(Q)}return M.storeSessionState(q),F&&(yield M.getTokenFromCode(F,E),M.restoreRequestedRoute()),Promise.resolve()}return Promise.reject()})()}saveRequestedRoute(){this.config.preserveRequestedRoute&&this._storage.setItem("requested_route",window.location.pathname+window.location.search)}restoreRequestedRoute(){const E=this._storage.getItem("requested_route");E&&history.replaceState(null,"",window.location.origin+E)}getCodePartsFromUrl(E){return E&&0!==E.length?("?"===E.charAt(0)&&(E=E.substr(1)),this.urlHelper.parseQueryString(E)):this.urlHelper.getHashFragmentParams()}getTokenFromCode(E,M){let h=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","authorization_code").set("code",E).set("redirect_uri",M.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let L;L=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("PKCE_verifier"):this._storage.getItem("PKCE_verifier"),L?h=h.set("code_verifier",L):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(h,M)}fetchAndProcessToken(E,M){M=M||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let h=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const L=btoa(`${this.clientId}:${this.dummyClientSecret}`);h=h.set("Authorization","Basic "+L)}return this.useHttpBasicAuth||(E=E.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(E=E.set("client_secret",this.dummyClientSecret)),new Promise((L,F)=>{if(this.customQueryParams)for(let B of Object.getOwnPropertyNames(this.customQueryParams))E=E.set(B,this.customQueryParams[B]);this.http.post(this.tokenEndpoint,E,{headers:h}).subscribe(B=>{this.debug("refresh tokenResponse",B),this.storeAccessTokenResponse(B.access_token,B.refresh_token,B.expires_in||this.fallbackAccessTokenExpirationTimeInSec,B.scope,this.extractRecognizedCustomParameters(B)),this.oidc&&B.id_token?this.processIdToken(B.id_token,B.access_token,M.disableNonceCheck).then(q=>{this.storeIdToken(q),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),L(B)}).catch(q=>{this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",q)),console.error("Error validating tokens"),console.error(q),F(q)}):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),L(B))},B=>{console.error("Error getting token",B),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",B)),F(B)})})}tryLoginImplicitFlow(E=null){let M;M=(E=E||{}).customHashFragment?this.urlHelper.getHashFragmentParams(E.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",M);const h=M.state;let[L,F]=this.parseState(h);if(this.state=F,M.error){this.debug("error trying to login"),this.handleLoginError(E,M);const W=new OAuthErrorEvent("token_error",{},M);return this.eventsSubject.next(W),Promise.reject(W)}const B=M.access_token,q=M.id_token,Y=M.session_state,ee=M.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!B||this.requestAccessToken&&!E.disableOAuth2StateCheck&&!h||this.oidc&&!q)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!Y&&this.logger.warn("session checks (Session Status Change Notification) were activated in the configuration but the id_token does not contain a session_state claim"),this.requestAccessToken&&!E.disableNonceCheck&&!this.validateNonce(L)){const Q=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(Q),Promise.reject(Q)}return this.requestAccessToken&&this.storeAccessTokenResponse(B,null,M.expires_in||this.fallbackAccessTokenExpirationTimeInSec,ee),this.oidc?this.processIdToken(q,B,E.disableNonceCheck).then(W=>E.validationHandler?E.validationHandler({accessToken:B,idClaims:W.idTokenClaims,idToken:W.idToken,state:h}).then(Q=>W):W).then(W=>(this.storeIdToken(W),this.storeSessionState(Y),this.clearHashAfterLogin&&!E.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.callOnTokenReceivedIfExists(E),this.inImplicitFlow=!1,!0)).catch(W=>(this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",W)),this.logger.error("Error validating tokens"),this.logger.error(W),Promise.reject(W))):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.clearHashAfterLogin&&!E.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(E),Promise.resolve(!0))}parseState(E){let M=E,h="";if(E){const L=E.indexOf(this.config.nonceStateSeparator);L>-1&&(M=E.substr(0,L),h=E.substr(L+this.config.nonceStateSeparator.length))}return[M,h]}validateNonce(E){let M;return M=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),M===E||(console.error("Validating access_token failed, wrong state/nonce.",M,E),!1)}storeIdToken(E){this._storage.setItem("id_token",E.idToken),this._storage.setItem("id_token_claims_obj",E.idTokenClaimsJson),this._storage.setItem("id_token_expires_at",""+E.idTokenExpiresAt),this._storage.setItem("id_token_stored_at",""+this.dateTimeService.now())}storeSessionState(E){this._storage.setItem("session_state",E)}getSessionState(){return this._storage.getItem("session_state")}handleLoginError(E,M){E.onLoginError&&E.onLoginError(M),this.clearHashAfterLogin&&!E.preventClearHashAfterLogin&&this.clearLocationHash()}getClockSkewInMsec(E=6e5){return this.clockSkewInSec?1e3*this.clockSkewInSec:E}processIdToken(E,M,h=!1){const L=E.split("."),B=b64DecodeUnicode(this.padBase64(L[0])),q=JSON.parse(B),ee=b64DecodeUnicode(this.padBase64(L[1])),W=JSON.parse(ee);let Q;if(Q=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Array.isArray(W.aud)){if(W.aud.every(he=>he!==this.clientId)){const he="Wrong audience: "+W.aud.join(",");return this.logger.warn(he),Promise.reject(he)}}else if(W.aud!==this.clientId){const he="Wrong audience: "+W.aud;return this.logger.warn(he),Promise.reject(he)}if(!W.sub){const he="No sub claim in id_token";return this.logger.warn(he),Promise.reject(he)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==W.sub){const he=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${W.sub}`;return this.logger.warn(he),Promise.reject(he)}if(!W.iat){const he="No iat claim in id_token";return this.logger.warn(he),Promise.reject(he)}if(!this.skipIssuerCheck&&W.iss!==this.issuer){const he="Wrong issuer: "+W.iss;return this.logger.warn(he),Promise.reject(he)}if(!h&&W.nonce!==Q){const he="Wrong nonce: "+W.nonce;return this.logger.warn(he),Promise.reject(he)}if(this.hasOwnProperty("responseType")&&("code"===this.responseType||"id_token"===this.responseType)&&(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!W.at_hash){const he="An at_hash is needed!";return this.logger.warn(he),Promise.reject(he)}const G=this.dateTimeService.now(),re=1e3*W.iat,oe=1e3*W.exp,ie=this.getClockSkewInMsec();if(re-ie>=G||oe+ie<=G){const he="Token has expired";return console.error(he),console.error({now:G,issuedAtMSec:re,expiresAtMSec:oe}),Promise.reject(he)}const ae={accessToken:M,idToken:E,jwks:this.jwks,idTokenClaims:W,idTokenHeader:q,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(ae).then(he=>({idToken:E,idTokenClaims:W,idTokenClaimsJson:ee,idTokenHeader:q,idTokenHeaderJson:B,idTokenExpiresAt:oe})):this.checkAtHash(ae).then(he=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!he){const fe="Wrong at_hash";return this.logger.warn(fe),Promise.reject(fe)}return this.checkSignature(ae).then(fe=>{const Le={idToken:E,idTokenClaims:W,idTokenClaimsJson:ee,idTokenHeader:q,idTokenHeaderJson:B,idTokenExpiresAt:oe};return this.disableAtHashCheck?Le:this.checkAtHash(ae).then(je=>{if(this.requestAccessToken&&!je){const Ae="Wrong at_hash";return this.logger.warn(Ae),Promise.reject(Ae)}return Le})})})}getIdentityClaims(){const E=this._storage.getItem("id_token_claims_obj");return E?JSON.parse(E):null}getGrantedScopes(){const E=this._storage.getItem("granted_scopes");return E?JSON.parse(E):null}getIdToken(){return this._storage?this._storage.getItem("id_token"):null}padBase64(E){for(;E.length%4!=0;)E+="=";return E}getAccessToken(){return this._storage?this._storage.getItem("access_token"):null}getRefreshToken(){return this._storage?this._storage.getItem("refresh_token"):null}getAccessTokenExpiration(){return this._storage.getItem("expires_at")?parseInt(this._storage.getItem("expires_at"),10):null}getAccessTokenStoredAt(){return parseInt(this._storage.getItem("access_token_stored_at"),10)}getIdTokenStoredAt(){return parseInt(this._storage.getItem("id_token_stored_at"),10)}getIdTokenExpiration(){return this._storage.getItem("id_token_expires_at")?parseInt(this._storage.getItem("id_token_expires_at"),10):null}hasValidAccessToken(){if(this.getAccessToken()){const E=this._storage.getItem("expires_at"),M=this.dateTimeService.new();return!(E&&parseInt(E,10)=0&&null!==this._storage.getItem(E)?JSON.parse(this._storage.getItem(E)):null}authorizationHeader(){return"Bearer "+this.getAccessToken()}logOut(E={},M=""){let h=!1;"boolean"==typeof E&&(h=E,E={});const L=this.getIdToken();if(this._storage.removeItem("access_token"),this._storage.removeItem("id_token"),this._storage.removeItem("refresh_token"),this.saveNoncesInLocalStorage?(localStorage.removeItem("nonce"),localStorage.removeItem("PKCE_verifier")):(this._storage.removeItem("nonce"),this._storage.removeItem("PKCE_verifier")),this._storage.removeItem("expires_at"),this._storage.removeItem("id_token_claims_obj"),this._storage.removeItem("id_token_expires_at"),this._storage.removeItem("id_token_stored_at"),this._storage.removeItem("access_token_stored_at"),this._storage.removeItem("granted_scopes"),this._storage.removeItem("session_state"),this.config.customTokenParameters&&this.config.customTokenParameters.forEach(B=>this._storage.removeItem(B)),this.silentRefreshSubject=null,this.eventsSubject.next(new OAuthInfoEvent("logout")),!this.logoutUrl||h||!L&&!this.postLogoutRedirectUri)return;let F;if(!this.validateUrlForHttps(this.logoutUrl))throw new Error("logoutUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(this.logoutUrl.indexOf("{{")>-1)F=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(L)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let B=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec});L&&(B=B.set("id_token_hint",L));const q=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";q&&(B=B.set("post_logout_redirect_uri",q),M&&(B=B.set("state",M)));for(let Y in E)B=B.set(Y,E[Y]);F=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+B.toString()}this.config.openUri(F)}createAndSaveNonce(){const E=this;return this.createNonce().then(function(M){return E.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("nonce",M):E._storage.setItem("nonce",M),M})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();const E=this.document.getElementById(this.silentRefreshIFrameName);E&&E.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();const M=this.document.getElementById(this.sessionCheckIFrameName);M&&M.remove()}createNonce(){return new Promise(E=>{if(this.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");const M="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";let h=45,L="";const F=typeof self>"u"?null:self.crypto||self.msCrypto;if(F){let B=new Uint8Array(h);F.getRandomValues(B),B.map||(B.map=Array.prototype.map),B=B.map(q=>M.charCodeAt(q%M.length)),L=String.fromCharCode.apply(null,B)}else for(;0"discovery_document_loaded"===h.type)).subscribe(h=>this.initCodeFlowInternal(E,M))}initCodeFlowInternal(E="",M={}){if(!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let h={},L=null;"string"==typeof M?L=M:"object"==typeof M&&(h=M),this.createLoginUrl(E,L,null,!1,h).then(this.config.openUri).catch(F=>{console.error("Error in initAuthorizationCodeFlow"),console.error(F)})}createChallangeVerifierPairForPKCE(){var E=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){if(!E.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");const M=yield E.createNonce();return[base64UrlEncode(yield E.crypto.calcHash(M,"sha-256")),M]})()}extractRecognizedCustomParameters(E){let M=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(h=>{E[h]&&M.set(h,JSON.stringify(E[h]))}),M}revokeTokenAndLogout(E={},M=!1){let h=this.revocationEndpoint,L=this.getAccessToken(),F=this.getRefreshToken();if(!L)return;let B=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}),q=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const Y=btoa(`${this.clientId}:${this.dummyClientSecret}`);q=q.set("Authorization","Basic "+Y)}if(this.useHttpBasicAuth||(B=B.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(B=B.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const Y of Object.getOwnPropertyNames(this.customQueryParams))B=B.set(Y,this.customQueryParams[Y]);return new Promise((Y,ee)=>{let W,Q;if(L){let G=B.set("token",L).set("token_type_hint","access_token");W=this.http.post(h,G,{headers:q})}else W=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);if(F){let G=B.set("token",F).set("token_type_hint","refresh_token");Q=this.http.post(h,G,{headers:q})}else Q=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);M&&(W=W.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(G=>0===G.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(G))),Q=Q.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(G=>0===G.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(G)))),(0,rxjs__WEBPACK_IMPORTED_MODULE_17__.a)([W,Q]).subscribe(G=>{this.logOut(E),Y(G),this.logger.info("Token successfully revoked")},G=>{this.logger.error("Error revoking token",G),this.eventsSubject.next(new OAuthErrorEvent("token_revoke_error",G)),ee(G)})})}clearLocationHash(){""!=location.hash&&(location.hash="")}}return N.\u0275fac=function(E){return new(E||N)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_core__WEBPACK_IMPORTED_MODULE_1__.R0b),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.eN),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthStorage,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(ValidationHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(AuthConfig,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(UrlHelperService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthLogger),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(HashHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common__WEBPACK_IMPORTED_MODULE_18__.K0),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(DateTimeProvider))},N.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:N,factory:N.\u0275fac}),N})();class OAuthModuleConfig{}class OAuthResourceServerConfig{}class OAuthResourceServerErrorHandler{}class OAuthNoopResourceServerErrorHandler{handleError(z){return(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(z)}}let DefaultOAuthInterceptor=(()=>{class N{constructor(E,M,h){this.oAuthService=E,this.errorHandler=M,this.moduleConfig=h}checkUrl(E){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(E):!this.moduleConfig.resourceServer.allowedUrls||!!this.moduleConfig.resourceServer.allowedUrls.find(M=>E.toLowerCase().startsWith(M.toLowerCase()))}intercept(E,M){const h=E.url.toLowerCase();return this.moduleConfig&&this.moduleConfig.resourceServer&&this.checkUrl(h)?this.moduleConfig.resourceServer.sendAccessToken?(0,rxjs__WEBPACK_IMPORTED_MODULE_19__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(this.oAuthService.getAccessToken()).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(F=>!!F)),this.oAuthService.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(F=>"token_received"===F.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.V)(this.oAuthService.waitForTokenInMsec||0),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(F=>(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(F=>this.oAuthService.getAccessToken()))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.q)(1),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_22__.z)(F=>{if(F){const q=E.headers.set("Authorization","Bearer "+F);E=E.clone({headers:q})}return M.handle(E).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(B=>this.errorHandler.handleError(B)))})):M.handle(E).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(F=>this.errorHandler.handleError(F))):M.handle(E)}}return N.\u0275fac=function(E){return new(E||N)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthResourceServerErrorHandler),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthModuleConfig,8))},N.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:N,factory:N.\u0275fac}),N})();class NullValidationHandler{validateSignature(z){return Promise.resolve(null)}validateAtHash(z){return Promise.resolve(!0)}}function createDefaultLogger(){return console}function createDefaultStorage(){return typeof sessionStorage<"u"?sessionStorage:new MemoryStorage}let OAuthModule=(()=>{class N{static forRoot(E=null,M=NullValidationHandler){return{ngModule:N,providers:[OAuthService,UrlHelperService,{provide:OAuthLogger,useFactory:createDefaultLogger},{provide:OAuthStorage,useFactory:createDefaultStorage},{provide:ValidationHandler,useClass:M},{provide:HashHandler,useClass:DefaultHashHandler},{provide:OAuthResourceServerErrorHandler,useClass:OAuthNoopResourceServerErrorHandler},{provide:OAuthModuleConfig,useValue:E},{provide:_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.TP,useClass:DefaultOAuthInterceptor,multi:!0},{provide:DateTimeProvider,useClass:SystemDateTimeProvider}]}}}return N.\u0275fac=function(E){return new(E||N)},N.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_1__.oAB({type:N}),N.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_1__.cJS({imports:[[_angular_common__WEBPACK_IMPORTED_MODULE_18__.ez]]}),N})();const err="PLEASE READ THIS CAREFULLY:\n\nBeginning with angular-oauth2-oidc version 9, the JwksValidationHandler\nhas been moved to an library of its own. If you need it for implementing\nOAuth2/OIDC **implicit flow**, please install it using npm:\n\n npm i angular-oauth2-oidc-jwks --save\n\nAfter that, you can import it into your application:\n\n import { JwksValidationHandler } from 'angular-oauth2-oidc-jwks';\n\nPlease note, that this dependency is not needed for the **code flow**,\nwhich is nowadays the **recommented** one for single page applications.\nThis also results in smaller bundle sizes.\n";class JwksValidationHandler extends NullValidationHandler{constructor(){super(),console.error(err)}}const AUTH_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_1__.OlP("AUTH_CONFIG")},5861:(N,z,E)=>{"use strict";function M(L,F,B,q,Y,ee,W){try{var Q=L[ee](W),G=Q.value}catch(re){return void B(re)}Q.done?F(G):Promise.resolve(G).then(q,Y)}function h(L){return function(){var F=this,B=arguments;return new Promise(function(q,Y){var ee=L.apply(F,B);function W(G){M(ee,q,Y,W,Q,"next",G)}function Q(G){M(ee,q,Y,W,Q,"throw",G)}W(void 0)})}}E.d(z,{Z:()=>h})},4147:N=>{"use strict";N.exports={i8:"10.4.0"}}},N=>{N(N.s=2605)}]); \ No newline at end of file diff --git a/dist/apps/consolidator/main.c6a283106318706e.js b/dist/apps/consolidator/main.c6a283106318706e.js deleted file mode 100644 index 83c7a3a5b..000000000 --- a/dist/apps/consolidator/main.c6a283106318706e.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkconsolidator=self.webpackChunkconsolidator||[]).push([[179],{5237:(F,z,x)=>{"use strict";var T=x(6895),u=x(4650);class V extends T.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class O extends V{static makeCurrent(){(0,T.HT)(new O)}onAndCancel(a,e,t){return a.addEventListener(e,t,!1),()=>{a.removeEventListener(e,t,!1)}}dispatchEvent(a,e){a.dispatchEvent(e)}remove(a){a.parentNode&&a.parentNode.removeChild(a)}createElement(a,e){return(e=e||this.getDefaultDocument()).createElement(a)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(a){return a.nodeType===Node.ELEMENT_NODE}isShadowRoot(a){return a instanceof DocumentFragment}getGlobalEventTarget(a,e){return"window"===e?window:"document"===e?a:"body"===e?a.body:null}getBaseHref(a){const e=function N(){return I=I||document.querySelector("base"),I?I.getAttribute("href"):null}();return null==e?null:function Q(r){W=W||document.createElement("a"),W.setAttribute("href",r);const a=W.pathname;return"/"===a.charAt(0)?a:`/${a}`}(e)}resetBaseElement(){I=null}getUserAgent(){return window.navigator.userAgent}getCookie(a){return(0,T.Mx)(document.cookie,a)}}let W,I=null;const G=new u.OlP("TRANSITION_ID"),U=[{provide:u.ip1,useFactory:function $(r,a,e){return()=>{e.get(u.CZH).donePromise.then(()=>{const t=(0,T.q)(),o=a.querySelectorAll(`style[ng-transition="${r}"]`);for(let l=0;l{class r{build(){return new XMLHttpRequest}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac}),r})();const X=new u.OlP("EventManagerPlugins");let ie=(()=>{class r{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(o=>o.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,o){return this._findPluginFor(t).addEventListener(e,t,o)}addGlobalEventListener(e,t,o){return this._findPluginFor(t).addGlobalEventListener(e,t,o)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const o=this._plugins;for(let l=0;l{class r{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(o=>{this._stylesSet.has(o)||(this._stylesSet.add(o),t.add(o))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac}),r})(),me=(()=>{class r extends he{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,t,o){e.forEach(l=>{const c=this._doc.createElement("style");c.textContent=l,o.push(t.appendChild(c))})}addHost(e){const t=[];this._addStylesToHost(this._stylesSet,e,t),this._hostNodes.set(e,t)}removeHost(e){const t=this._hostNodes.get(e);t&&t.forEach(Ve),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((t,o)=>{this._addStylesToHost(e,o,t)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(Ve))}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(T.K0))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac}),r})();function Ve(r){(0,T.q)().remove(r)}const Be={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/",math:"http://www.w3.org/1998/MathML/"},we=/%COMP%/g;function oe(r,a,e){for(let t=0;t{if("__ngUnwrap__"===a)return r;!1===r(a)&&(a.preventDefault(),a.returnValue=!1)}}let ue=(()=>{class r{constructor(e,t,o){this.eventManager=e,this.sharedStylesHost=t,this.appId=o,this.rendererByCompId=new Map,this.defaultRenderer=new Re(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case u.ifc.Emulated:{let o=this.rendererByCompId.get(t.id);return o||(o=new kt(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,o)),o.applyToHost(e),o}case 1:case u.ifc.ShadowDom:return new Le(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const o=oe(t.id,t.styles,[]);this.sharedStylesHost.addStyles(o),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(ie),u.LFG(me),u.LFG(u.AFp))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac}),r})();class Re{constructor(a){this.eventManager=a,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(a,e){return e?document.createElementNS(Be[e]||e,a):document.createElement(a)}createComment(a){return document.createComment(a)}createText(a){return document.createTextNode(a)}appendChild(a,e){(Tt(a)?a.content:a).appendChild(e)}insertBefore(a,e,t){a&&(Tt(a)?a.content:a).insertBefore(e,t)}removeChild(a,e){a&&a.removeChild(e)}selectRootElement(a,e){let t="string"==typeof a?document.querySelector(a):a;if(!t)throw new Error(`The selector "${a}" did not match any elements`);return e||(t.textContent=""),t}parentNode(a){return a.parentNode}nextSibling(a){return a.nextSibling}setAttribute(a,e,t,o){if(o){e=o+":"+e;const l=Be[o];l?a.setAttributeNS(l,e,t):a.setAttribute(e,t)}else a.setAttribute(e,t)}removeAttribute(a,e,t){if(t){const o=Be[t];o?a.removeAttributeNS(o,e):a.removeAttribute(`${t}:${e}`)}else a.removeAttribute(e)}addClass(a,e){a.classList.add(e)}removeClass(a,e){a.classList.remove(e)}setStyle(a,e,t,o){o&(u.JOm.DashCase|u.JOm.Important)?a.style.setProperty(e,t,o&u.JOm.Important?"important":""):a.style[e]=t}removeStyle(a,e,t){t&u.JOm.DashCase?a.style.removeProperty(e):a.style[e]=""}setProperty(a,e,t){a[e]=t}setValue(a,e){a.nodeValue=e}listen(a,e,t){return"string"==typeof a?this.eventManager.addGlobalEventListener(a,e,se(t)):this.eventManager.addEventListener(a,e,se(t))}}function Tt(r){return"TEMPLATE"===r.tagName&&void 0!==r.content}class kt extends Re{constructor(a,e,t,o){super(a),this.component=t;const l=oe(o+"-"+t.id,t.styles,[]);e.addStyles(l),this.contentAttr=function Ee(r){return"_ngcontent-%COMP%".replace(we,r)}(o+"-"+t.id),this.hostAttr=function Te(r){return"_nghost-%COMP%".replace(we,r)}(o+"-"+t.id)}applyToHost(a){super.setAttribute(a,this.hostAttr,"")}createElement(a,e){const t=super.createElement(a,e);return super.setAttribute(t,this.contentAttr,""),t}}class Le extends Re{constructor(a,e,t,o){super(a),this.sharedStylesHost=e,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const l=oe(o.id,o.styles,[]);for(let c=0;c{class r extends de{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,o){return e.addEventListener(t,o,!1),()=>this.removeEventListener(e,t,o)}removeEventListener(e,t,o){return e.removeEventListener(t,o)}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(T.K0))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac}),r})();const Un=["alt","control","meta","shift"],Dt={"\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"},Mn={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"},li={alt:r=>r.altKey,control:r=>r.ctrlKey,meta:r=>r.metaKey,shift:r=>r.shiftKey};let qr=(()=>{class r extends de{constructor(e){super(e)}supports(e){return null!=r.parseEventName(e)}addEventListener(e,t,o){const l=r.parseEventName(t),c=r.eventCallback(l.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,T.q)().onAndCancel(e,l.domEventName,c))}static parseEventName(e){const t=e.toLowerCase().split("."),o=t.shift();if(0===t.length||"keydown"!==o&&"keyup"!==o)return null;const l=r._normalizeKey(t.pop());let c="";if(Un.forEach(i=>{const s=t.indexOf(i);s>-1&&(t.splice(s,1),c+=i+".")}),c+=l,0!=t.length||0===l.length)return null;const n={};return n.domEventName=o,n.fullKey=c,n}static getEventFullKey(e){let t="",o=function dc(r){let a=r.key;if(null==a){if(a=r.keyIdentifier,null==a)return"Unidentified";a.startsWith("U+")&&(a=String.fromCharCode(parseInt(a.substring(2),16)),3===r.location&&Mn.hasOwnProperty(a)&&(a=Mn[a]))}return Dt[a]||a}(e);return o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),Un.forEach(l=>{l!=o&&(0,li[l])(e)&&(t+=l+".")}),t+=o,t}static eventCallback(e,t,o){return l=>{r.getEventFullKey(l)===e&&o.runGuarded(()=>t(l))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(T.K0))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac}),r})();const Qe=(0,u.eFA)(u._c5,"browser",[{provide:u.Lbi,useValue:T.bD},{provide:u.g9A,useValue:function Gn(){O.makeCurrent()},multi:!0},{provide:T.K0,useFactory:function Da(){return(0,u.RDi)(document),document},deps:[]}]),hi=new u.OlP(""),Ha=[{provide:u.rWj,useClass:class te{addToWindow(a){u.dqk.getAngularTestability=(t,o=!0)=>{const l=a.findTestabilityInTree(t,o);if(null==l)throw new Error("Could not find testability for element.");return l},u.dqk.getAllAngularTestabilities=()=>a.getAllTestabilities(),u.dqk.getAllAngularRootElements=()=>a.getAllRootElements(),u.dqk.frameworkStabilizers||(u.dqk.frameworkStabilizers=[]),u.dqk.frameworkStabilizers.push(t=>{const o=u.dqk.getAllAngularTestabilities();let l=o.length,c=!1;const n=function(i){c=c||i,l--,0==l&&t(c)};o.forEach(function(i){i.whenStable(n)})})}findTestabilityInTree(a,e,t){return null==e?null:a.getTestability(e)??(t?(0,T.q)().isShadowRoot(e)?this.findTestabilityInTree(a,e.host,!0):this.findTestabilityInTree(a,e.parentElement,!0):null)}},deps:[]},{provide:u.lri,useClass:u.dDg,deps:[u.R0b,u.eoX,u.rWj]},{provide:u.dDg,useClass:u.dDg,deps:[u.R0b,u.eoX,u.rWj]}],Di=[{provide:u.zSh,useValue:"root"},{provide:u.qLn,useFactory:function qn(){return new u.qLn},deps:[]},{provide:X,useClass:Mi,multi:!0,deps:[T.K0,u.R0b,u.Lbi]},{provide:X,useClass:qr,multi:!0,deps:[T.K0]},{provide:ue,useClass:ue,deps:[ie,me,u.AFp]},{provide:u.FYo,useExisting:ue},{provide:he,useExisting:me},{provide:me,useClass:me,deps:[T.K0]},{provide:ie,useClass:ie,deps:[X,u.R0b]},{provide:T.JF,useClass:ne,deps:[]},[]];let Pa=(()=>{class r{constructor(e){}static withServerTransition(e){return{ngModule:r,providers:[{provide:u.AFp,useValue:e.appId},{provide:G,useExisting:u.AFp},U]}}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(hi,12))},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({providers:[...Di,...Ha],imports:[T.ez,u.hGG]}),r})(),Y=(()=>{class r{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(T.K0))},r.\u0275prov=u.Yz7({token:r,factory:function(e){let t=null;return t=e?new e:function Ce(){return new Y((0,u.LFG)(T.K0))}(),t},providedIn:"root"}),r})();typeof window<"u"&&window;let ci=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=u.Yz7({token:r,factory:function(e){let t=null;return t=e?new(e||r):u.LFG(rt),t},providedIn:"root"}),r})(),rt=(()=>{class r extends ci{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case u.q3G.NONE:return t;case u.q3G.HTML:return(0,u.qzn)(t,"HTML")?(0,u.z3N)(t):(0,u.EiD)(this._doc,String(t)).toString();case u.q3G.STYLE:return(0,u.qzn)(t,"Style")?(0,u.z3N)(t):t;case u.q3G.SCRIPT:if((0,u.qzn)(t,"Script"))return(0,u.z3N)(t);throw new Error("unsafe value used in a script context");case u.q3G.URL:return(0,u.qzn)(t,"URL")?(0,u.z3N)(t):(0,u.mCW)(String(t));case u.q3G.RESOURCE_URL:if((0,u.qzn)(t,"ResourceURL"))return(0,u.z3N)(t);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return(0,u.JVY)(e)}bypassSecurityTrustStyle(e){return(0,u.L6k)(e)}bypassSecurityTrustScript(e){return(0,u.eBb)(e)}bypassSecurityTrustUrl(e){return(0,u.LAX)(e)}bypassSecurityTrustResourceUrl(e){return(0,u.pB0)(e)}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(T.K0))},r.\u0275prov=u.Yz7({token:r,factory:function(e){let t=null;return t=e?new e:function Ie(r){return new rt(r.get(T.K0))}(u.LFG(u.zs3)),t},providedIn:"root"}),r})();var y=x(529);class St{encodeKey(a){return encodeURIComponent(a)}encodeValue(a){return encodeURIComponent(a)}decodeKey(a){return decodeURIComponent(a)}decodeValue(a){return decodeURIComponent(a)}}const pt=new u.OlP("basePath");class Oe{constructor(a={}){this.apiKeys=a.apiKeys,this.username=a.username,this.password=a.password,this.accessToken=a.accessToken,this.basePath=a.basePath,this.withCredentials=a.withCredentials,this.encoder=a.encoder,this.credentials=a.credentials?a.credentials:{},this.credentials.BasicAuth||(this.credentials.BasicAuth=()=>this.username||this.password?btoa(this.username+":"+this.password):void 0),this.credentials.BearerAuth||(this.credentials.BearerAuth=()=>"function"==typeof this.accessToken?this.accessToken():this.accessToken)}selectHeaderContentType(a){if(0===a.length)return;const e=a.find(t=>this.isJsonMime(t));return void 0===e?a[0]:e}selectHeaderAccept(a){if(0===a.length)return;const e=a.find(t=>this.isJsonMime(t));return void 0===e?a[0]:e}isJsonMime(a){const e=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==a&&(e.test(a)||"application/json-patch+json"===a.toLowerCase())}lookupCredential(a){const e=this.credentials[a];return"function"==typeof e?e():e}}let Yr=(()=>{class r{constructor(e,t,o){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new Oe,o&&(this.configuration=o),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new St}addToHttpParams(e,t,o){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,o):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,o){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,o));else if(t instanceof Date){if(null==o)throw Error("key may not be null if value is Date");e=e.append(o,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=o?`${o}.${l}`:l));else{if(null==o)throw Error("key may not be null if value is not object or array");e=e.append(o,t)}return e}convertAttributeToNonunique(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToNonunique.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeDefinition"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToNonunique`,null,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}convertAttributeToUnique(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToUnique.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeDefinition"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToUnique`,null,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}createAttributeDefinition(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputCreateAttributeDefinition was null or undefined when calling createAttributeDefinition.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/createAttribute`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}deleteAttributeDefinition(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter attribute was null or undefined when calling deleteAttributeDefinition.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attribute"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttribute`,null,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}deleteAttributeDefinitions(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter attributes was null or undefined when calling deleteAttributeDefinitions.");let c=new y.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"attributes[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttributes`,null,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getAllAttributeDefinitions(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributesDefinition`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAttribute(e,t,o,l,c,n,i,s,d,h,f,b="body",H=!1,j){let ae=new y.LE({encoder:this.encoder});null!=e&&(ae=this.addToHttpParams(ae,e,"attributeName")),null!=t&&(ae=this.addToHttpParams(ae,t,"attributeId")),null!=o&&(ae=this.addToHttpParams(ae,o,"facility")),null!=l&&(ae=this.addToHttpParams(ae,l,"user")),null!=c&&(ae=this.addToHttpParams(ae,c,"vo")),null!=n&&(ae=this.addToHttpParams(ae,n,"resource")),null!=i&&(ae=this.addToHttpParams(ae,i,"member")),null!=s&&(ae=this.addToHttpParams(ae,s,"group")),null!=d&&(ae=this.addToHttpParams(ae,d,"host")),null!=h&&(ae=this.addToHttpParams(ae,h,"userExtSource")),null!=f&&(ae=this.addToHttpParams(ae,f,"key"));let ct,ke=this.defaultHeaders;ct=this.configuration.lookupCredential("BasicAuth"),ct&&(ke=ke.set("Authorization","Basic "+ct)),ct=this.configuration.lookupCredential("BearerAuth"),ct&&(ke=ke.set("Authorization","Bearer "+ct));let yt=j&&j.httpHeaderAccept;void 0===yt&&(yt=this.configuration.selectHeaderAccept(["application/json"])),void 0!==yt&&(ke=ke.set("Accept",yt));let zt=j&&j.context;void 0===zt&&(zt=new y.qT);let Gr="json";return yt&&(Gr=yt.startsWith("text")?"text":this.configuration.isJsonMime(yt)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/any`,{context:zt,params:ae,responseType:Gr,withCredentials:this.configuration.withCredentials,headers:ke,observe:b,reportProgress:H})}getAttributeDefinitionById(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getAttributeDefinitionById.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinitionById`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getAttributeDefinitionByName(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getAttributeDefinitionByName.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeName"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinition`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getAttributeDefinitionsByNamespace(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter namespace was null or undefined when calling getAttributeDefinitionsByNamespace.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"namespace"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributesDefinitionByNamespace`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getAttributeModulesDependenciesForAttributeGraphText(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");if(null==t)throw new Error("Required parameter attrName was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"format")),null!=t&&(n=this.addToHttpParams(n,t,"attrName"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText/for-attribute`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getAttributeModulesDependenciesGraphText(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesGraphText.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"format"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getAttributePolicyCollections(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getAttributePolicyCollections.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeId"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributePolicyCollections`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getAttributeRights(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getAttributeRights.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeId"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeRights`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getAttributeRules(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling getAttributeRules.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeDefinition"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeRules`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getAttributesDefinitionWithRights(e,t,o,l,c,n,i,s,d="body",h=!1,f){let b=new y.LE({encoder:this.encoder});null!=e&&(b=this.addToHttpParams(b,e,"member")),null!=t&&(b=this.addToHttpParams(b,t,"user")),null!=o&&(b=this.addToHttpParams(b,o,"vo")),null!=l&&(b=this.addToHttpParams(b,l,"group")),null!=c&&(b=this.addToHttpParams(b,c,"resource")),null!=n&&(b=this.addToHttpParams(b,n,"facility")),null!=i&&(b=this.addToHttpParams(b,i,"host")),null!=s&&(b=this.addToHttpParams(b,s,"userExtSource"));let j,H=this.defaultHeaders;j=this.configuration.lookupCredential("BasicAuth"),j&&(H=H.set("Authorization","Basic "+j)),j=this.configuration.lookupCredential("BearerAuth"),j&&(H=H.set("Authorization","Bearer "+j));let ae=f&&f.httpHeaderAccept;void 0===ae&&(ae=this.configuration.selectHeaderAccept(["application/json"])),void 0!==ae&&(H=H.set("Accept",ae));let ke=f&&f.context;void 0===ke&&(ke=new y.qT);let ct="json";return ae&&(ct=ae.startsWith("text")?"text":this.configuration.isJsonMime(ae)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/attributesManager/getAttributesDefinitionWithRights`,{context:ke,params:b,responseType:ct,withCredentials:this.configuration.withCredentials,headers:H,observe:d,reportProgress:h})}getEntitylessAttributeByName(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getEntitylessAttributeByName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"key")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-entityless`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getEntitylessAttributesByKey(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributesByKey.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"key"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/key`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getEntitylessAttributesByName(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesByName.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attrName"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributes`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getEntitylessAttributesWithKeys(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesWithKeys.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"attrName")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"keys[]")});let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributesWithKeys`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getEntitylessKeys(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling getEntitylessKeys.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeDefinition"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessKeys`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getFacilityAttributeById(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getFacilityAttributeById.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-facility`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getFacilityAttributeByName(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getFacilityAttributeByName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-facility`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getFacilityAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributes.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"facility"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getFacilityAttributesByNames(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getFacilityAttributesByNames.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrNames[]")});let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-names`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getFacilityResourceUserMemberAttributes(e,t,o,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==o)throw new Error("Required parameter user was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==l)throw new Error("Required parameter member was null or undefined when calling getFacilityResourceUserMemberAttributes.");let s=new y.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"facility")),null!=t&&(s=this.addToHttpParams(s,t,"resource")),null!=o&&(s=this.addToHttpParams(s,o,"user")),null!=l&&(s=this.addToHttpParams(s,l,"member"));let h,d=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(d=d.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(d=d.set("Authorization","Bearer "+h));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let H="json";return f&&(H=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-r-u-m`,{context:b,params:s,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}getFacilityUserAttributes(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityUserAttributes.");if(null==t)throw new Error("Required parameter user was null or undefined when calling getFacilityUserAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),null!=t&&(n=this.addToHttpParams(n,t,"user"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-u`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getGroupAttributeById(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getGroupAttributeById.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getGroupAttributeByName(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getGroupAttributeByName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getGroupAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributes.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/g`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getGroupAttributesByNames(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getGroupAttributesByNames.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrNames[]")});let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/g-names`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getGroupResourceAttributeById(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeById.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeById.");if(null==o)throw new Error("Required parameter attributeId was null or undefined when calling getGroupResourceAttributeById.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"group")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=o&&(i=this.addToHttpParams(i,o,"attributeId"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group-resource`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:s,observe:l,reportProgress:c})}getGroupResourceAttributeByName(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeByName.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeByName.");if(null==o)throw new Error("Required parameter attributeName was null or undefined when calling getGroupResourceAttributeByName.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"group")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=o&&(i=this.addToHttpParams(i,o,"attributeName"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group-resource`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:s,observe:l,reportProgress:c})}getGroupResourceAttributes(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/group-resource`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getHostAttributeById(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getHostAttributeById.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-host`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getHostAttributeByName(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getHostAttributeByName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-host`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getHostAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributes.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"host"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/h`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getHostAttributesByNames(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getHostAttributesByNames.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrNames[]")});let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/h-names`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getLogins(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getLogins.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getLogins`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getMemberAndUserAttributes(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributes.");if(null==t)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"workWithUserAttributes"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-wu`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getMemberAndUserAttributesByNames(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==o)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributesByNames.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),t&&t.forEach(H=>{i=this.addToHttpParams(i,H,"attrNames[]")}),null!=o&&(i=this.addToHttpParams(i,o,"workWithUserAttributes"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names-wu`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:s,observe:l,reportProgress:c})}getMemberAttributeById(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getMemberAttributeById.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getMemberAttributeByName(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getMemberAttributeByName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getMemberAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributes.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getMemberAttributesByNames(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAttributesByNames.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrNames[]")});let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getMemberGroupAndUserAttributesByNames(e,t,o,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==o)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==l)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberGroupAndUserAttributesByNames.");let s=new y.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"group")),o&&o.forEach(j=>{s=this.addToHttpParams(s,j,"attrNames[]")}),null!=l&&(s=this.addToHttpParams(s,l,"workWithUserAttributes"));let h,d=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(d=d.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(d=d.set("Authorization","Bearer "+h));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let H="json";return f&&(H=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names-wu`,{context:b,params:s,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}getMemberGroupAttributeById(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeById.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeById.");if(null==o)throw new Error("Required parameter attributeId was null or undefined when calling getMemberGroupAttributeById.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),null!=o&&(i=this.addToHttpParams(i,o,"attributeId"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-group`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:s,observe:l,reportProgress:c})}getMemberGroupAttributeByName(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeByName.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeByName.");if(null==o)throw new Error("Required parameter attributeName was null or undefined when calling getMemberGroupAttributeByName.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),null!=o&&(i=this.addToHttpParams(i,o,"attributeName"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-group`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:s,observe:l,reportProgress:c})}getMemberGroupAttributes(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"group"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getMemberGroupAttributesByNames(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributesByNames.");if(null==o)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAttributesByNames.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),o&&o.forEach(H=>{i=this.addToHttpParams(i,H,"attrNames[]")});let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:s,observe:l,reportProgress:c})}getMemberResourceAndUserFacilityAttributes(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==o)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=o&&(i=this.addToHttpParams(i,o,"workWithUserAttributes"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-wu`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:s,observe:l,reportProgress:c})}getMemberResourceAndUserFacilityAttributesByNames(e,t,o,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==o)throw new Error("Required parameter attrNames was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==l)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");let s=new y.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"resource")),o&&o.forEach(j=>{s=this.addToHttpParams(s,j,"attrNames[]")}),null!=l&&(s=this.addToHttpParams(s,l,"workWithUserAttributes"));let h,d=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(d=d.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(d=d.set("Authorization","Bearer "+h));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let H="json";return f&&(H=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-names-wu`,{context:b,params:s,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}getMemberResourceAttributeById(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeById.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeById.");if(null==o)throw new Error("Required parameter attributeId was null or undefined when calling getMemberResourceAttributeById.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=o&&(i=this.addToHttpParams(i,o,"attributeId"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-resource`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:s,observe:l,reportProgress:c})}getMemberResourceAttributeByName(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeByName.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeByName.");if(null==o)throw new Error("Required parameter attributeName was null or undefined when calling getMemberResourceAttributeByName.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=o&&(i=this.addToHttpParams(i,o,"attributeName"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-resource`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:s,observe:l,reportProgress:c})}getMemberResourceAttributes(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getRequiredAttributesDefinition(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesDefinition.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"service"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributesDefinition`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getRequiredAttributesFacility(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacility.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"facility"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/f`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getRequiredAttributesFacilityService(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesFacilityService.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityService.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"service")),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-f`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getRequiredAttributesFacilityServices(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesFacilityServices.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityServices.");let n=new y.LE({encoder:this.encoder});e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"services[]")}),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-f`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getRequiredAttributesGroupResourceService(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==o)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesGroupResourceService.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"service")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=o&&(i=this.addToHttpParams(i,o,"group"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:s,observe:l,reportProgress:c})}getRequiredAttributesHostService(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesHostService.");if(null==t)throw new Error("Required parameter host was null or undefined when calling getRequiredAttributesHostService.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"service")),null!=t&&(n=this.addToHttpParams(n,t,"host"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-h`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getRequiredAttributesMember(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMember.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"workWithUserAttributes"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getRequiredAttributesMemberGroup(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroup.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroup.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),null!=o&&(i=this.addToHttpParams(i,o,"workWithUserAttributes"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-g`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:s,observe:l,reportProgress:c})}getRequiredAttributesMemberGroupResourceService(e,t,o,l,c,n="body",i=!1,s){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==o)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==l)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");let d=new y.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"service")),null!=t&&(d=this.addToHttpParams(d,t,"resource")),null!=o&&(d=this.addToHttpParams(d,o,"group")),null!=l&&(d=this.addToHttpParams(d,l,"member")),null!=c&&(d=this.addToHttpParams(d,c,"workWithUserAttributes"));let f,h=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(h=h.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(h=h.set("Authorization","Bearer "+f));let b=s&&s.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let H=s&&s.context;void 0===H&&(H=new y.qT);let j="json";return b&&(j=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g-m`,{context:H,params:d,responseType:j,withCredentials:this.configuration.withCredentials,headers:h,observe:n,reportProgress:i})}getRequiredAttributesMemberGroupService(e,t,o,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==o)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupService.");let s=new y.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"service")),null!=t&&(s=this.addToHttpParams(s,t,"group")),null!=o&&(s=this.addToHttpParams(s,o,"member")),null!=l&&(s=this.addToHttpParams(s,l,"workWithUserAttributes"));let h,d=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(d=d.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(d=d.set("Authorization","Bearer "+h));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let H="json";return f&&(H=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-g-m`,{context:b,params:s,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}getRequiredAttributesMemberResource(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResource.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResource.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=o&&(i=this.addToHttpParams(i,o,"workWithUserAttributes"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-r`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:s,observe:l,reportProgress:c})}getRequiredAttributesMemberResourceService(e,t,o,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==o)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResourceService.");let s=new y.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"service")),null!=t&&(s=this.addToHttpParams(s,t,"resource")),null!=o&&(s=this.addToHttpParams(s,o,"member")),null!=l&&(s=this.addToHttpParams(s,l,"workWithUserAttributes"));let h,d=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(d=d.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(d=d.set("Authorization","Bearer "+h));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let H="json";return f&&(H=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-m`,{context:b,params:s,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}getRequiredAttributesResource(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResource.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/r`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getRequiredAttributesResourceService(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceService.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"service")),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getRequiredAttributesResourceServices(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesResourceServices.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceServices.");let n=new y.LE({encoder:this.encoder});e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"services[]")}),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-r`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getRequiredAttributesUser(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUser.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getRequiredAttributesUserFacility(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUserFacility.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesUserFacility.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u-f`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getRequiredAttributesVoService(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesVoService.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling getRequiredAttributesVoService.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"service")),null!=t&&(n=this.addToHttpParams(n,t,"vo"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-v`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getResourceAttributeById(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getResourceAttributeById.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-resource`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getResourceAttributeByName(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getResourceAttributeByName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-resource`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getResourceAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributes.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getResourceAttributesByNames(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getResourceAttributesByNames.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrNames[]")});let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-names`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getResourceGroupAndGroupAttributes(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==o)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributes.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"resource")),null!=t&&(i=this.addToHttpParams(i,t,"group")),null!=o&&(i=this.addToHttpParams(i,o,"workWithGroupAttributes"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-wg`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:s,observe:l,reportProgress:c})}getResourceGroupAndGroupAttributesByNames(e,t,o,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==o)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==l)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");let s=new y.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"group")),o&&o.forEach(j=>{s=this.addToHttpParams(s,j,"attrNames[]")}),null!=l&&(s=this.addToHttpParams(s,l,"workWithGroupAttributes"));let h,d=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(d=d.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(d=d.set("Authorization","Bearer "+h));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let H="json";return f&&(H=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-names-wg`,{context:b,params:s,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}getResourceGroupAttributes(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),null!=t&&(n=this.addToHttpParams(n,t,"group"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getResourceGroupMemberAttributesByNames(e,t,o,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==o)throw new Error("Required parameter member was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==l)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupMemberAttributesByNames.");let s=new y.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"group")),null!=o&&(s=this.addToHttpParams(s,o,"member")),l&&l.forEach(j=>{s=this.addToHttpParams(s,j,"attrNames[]")});let h,d=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(d=d.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(d=d.set("Authorization","Bearer "+h));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let H="json";return f&&(H=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-m-names`,{context:b,params:s,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}getUserAttributeById(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getUserAttributeById.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getUserAttributeByName(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getUserAttributeByName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getUserAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributes.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/u`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getUserAttributesByNames(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getUserAttributesByNames.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrNames[]")});let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/u-names`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getUserExtSourceAttributeById(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceAttributeById.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-ues`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getUserExtSourceAttributeByName(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceAttributeByName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-ues`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getUserExtSourceAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributes.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"userExtSource"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/ues`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getUserExtSourceAttributesByNames(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getUserExtSourceAttributesByNames.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrNames[]")});let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/ues-names`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getUserFacilityAttributeById(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeById.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeById.");if(null==o)throw new Error("Required parameter attributeId was null or undefined when calling getUserFacilityAttributeById.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"facility")),null!=o&&(i=this.addToHttpParams(i,o,"attributeId"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user_facility`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:s,observe:l,reportProgress:c})}getUserFacilityAttributeByName(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeByName.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeByName.");if(null==o)throw new Error("Required parameter attributeName was null or undefined when calling getUserFacilityAttributeByName.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"facility")),null!=o&&(i=this.addToHttpParams(i,o,"attributeName"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user_facility`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:s,observe:l,reportProgress:c})}getUserFacilityAttributes(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributes.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/user-facility`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getVoAttributeById(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getVoAttributeById.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-vo`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getVoAttributeByName(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getVoAttributeByName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-vo`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getVoAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributes.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/vo`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getVoAttributesByNames(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getVoAttributesByNames.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrNames[]")});let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/vo-names`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}removeAttributesForFacilityResourceGroupUserMember(e,t,o,l,c,n,i="body",s=!1,d){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==o)throw new Error("Required parameter group was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==l)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==c)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==n)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");let h=new y.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"facility")),null!=t&&(h=this.addToHttpParams(h,t,"resource")),null!=o&&(h=this.addToHttpParams(h,o,"group")),null!=l&&(h=this.addToHttpParams(h,l,"user")),null!=c&&(h=this.addToHttpParams(h,c,"member")),n&&n.forEach(ke=>{h=this.addToHttpParams(h,ke,"attributes[]")});let b,f=this.defaultHeaders;b=this.configuration.lookupCredential("BasicAuth"),b&&(f=f.set("Authorization","Basic "+b)),b=this.configuration.lookupCredential("BearerAuth"),b&&(f=f.set("Authorization","Bearer "+b));let H=d&&d.httpHeaderAccept;void 0===H&&(H=this.configuration.selectHeaderAccept(["application/json"])),void 0!==H&&(f=f.set("Accept",H));let j=d&&d.context;void 0===j&&(j=new y.qT);let ae="json";return H&&(ae=H.startsWith("text")?"text":this.configuration.isJsonMime(H)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-g-u-m`,null,{context:j,params:h,responseType:ae,withCredentials:this.configuration.withCredentials,headers:f,observe:i,reportProgress:s})}removeAttributesForFacilityResourceUserMember(e,t,o,l,c,n="body",i=!1,s){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==o)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==l)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==c)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceUserMember.");let d=new y.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"facility")),null!=t&&(d=this.addToHttpParams(d,t,"resource")),null!=o&&(d=this.addToHttpParams(d,o,"user")),null!=l&&(d=this.addToHttpParams(d,l,"member")),c&&c.forEach(ae=>{d=this.addToHttpParams(d,ae,"attributes[]")});let f,h=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(h=h.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(h=h.set("Authorization","Bearer "+f));let b=s&&s.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let H=s&&s.context;void 0===H&&(H=new y.qT);let j="json";return b&&(j=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-u-m`,null,{context:H,params:d,responseType:j,withCredentials:this.configuration.withCredentials,headers:h,observe:n,reportProgress:i})}removeEntitylessAttribute(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter key was null or undefined when calling removeEntitylessAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeEntitylessAttribute.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"key")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/e`,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}removeFacilityAttribute(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeFacilityAttribute.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/f`,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}removeFacilityAttributes(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeFacilityAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attributes[]")});let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f`,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}removeGroupAttribute(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeGroupAttribute.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g`,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}removeGroupAttributes(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeGroupAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attributes[]")});let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g`,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}removeGroupResourceAttribute(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttribute.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttribute.");if(null==o)throw new Error("Required parameter attribute was null or undefined when calling removeGroupResourceAttribute.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"group")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=o&&(i=this.addToHttpParams(i,o,"attribute"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g-r`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:s,observe:l,reportProgress:c})}removeGroupResourceAttributes(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributes.");if(null==o)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributes.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"group")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),o&&o.forEach(H=>{i=this.addToHttpParams(i,H,"attributes[]")});let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:s,observe:l,reportProgress:c})}removeGroupResourceAttributesWorkWithGroupAttributes(e,t,o,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==o)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==l)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");let s=new y.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"resource")),o&&o.forEach(j=>{s=this.addToHttpParams(s,j,"attributes[]")}),null!=l&&(s=this.addToHttpParams(s,l,"workWithGroupAttributes"));let h,d=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(d=d.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(d=d.set("Authorization","Bearer "+h));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let H="json";return f&&(H=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r-workWithGroupAttributes`,null,{context:b,params:s,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}removeHostAttribute(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling removeHostAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeHostAttribute.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/h`,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}removeHostAttributes(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling removeHostAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeHostAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attributes[]")});let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/h`,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}removeMemberAttribute(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeMemberAttribute.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m`,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}removeMemberAttributes(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attributes[]")});let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m`,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}removeMemberAttributesWorkWithUserAttributes(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==o)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),t&&t.forEach(H=>{i=this.addToHttpParams(i,H,"attributes[]")}),null!=o&&(i=this.addToHttpParams(i,o,"workWithUserAttributes"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-workWithUserAttributes`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:s,observe:l,reportProgress:c})}removeMemberGroupAttribute(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttribute.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttribute.");if(null==o)throw new Error("Required parameter attribute was null or undefined when calling removeMemberGroupAttribute.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),null!=o&&(i=this.addToHttpParams(i,o,"attribute"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-g`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:s,observe:l,reportProgress:c})}removeMemberGroupAttributes(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributes.");if(null==o)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributes.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),o&&o.forEach(H=>{i=this.addToHttpParams(i,H,"attributes[]")});let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:s,observe:l,reportProgress:c})}removeMemberGroupAttributesWorkWithUserAttributes(e,t,o,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==o)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==l)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");let s=new y.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"group")),o&&o.forEach(j=>{s=this.addToHttpParams(s,j,"attributes[]")}),null!=l&&(s=this.addToHttpParams(s,l,"workWithUserAttributes"));let h,d=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(d=d.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(d=d.set("Authorization","Bearer "+h));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let H="json";return f&&(H=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g-workWithUserAttributes`,null,{context:b,params:s,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}removeMemberResourceAttribute(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttribute.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttribute.");if(null==o)throw new Error("Required parameter attribute was null or undefined when calling removeMemberResourceAttribute.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=o&&(i=this.addToHttpParams(i,o,"attribute"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-r`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:s,observe:l,reportProgress:c})}removeMemberResourceAttributes(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttributes.");if(null==o)throw new Error("Required parameter attributes was null or undefined when calling removeMemberResourceAttributes.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),o&&o.forEach(H=>{i=this.addToHttpParams(i,H,"attributes[]")});let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-r`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:s,observe:l,reportProgress:c})}removeResourceAttribute(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeResourceAttribute.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/r`,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}removeResourceAttributes(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeResourceAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attributes[]")});let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/r`,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}removeUesAttributes(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling removeUesAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeUesAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attributes[]")});let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/ues`,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}removeUserAttribute(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeUserAttribute.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u`,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}removeUserAttributes(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeUserAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attributes[]")});let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u`,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}removeUserExtSourceAttribute(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSourceAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeUserExtSourceAttribute.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/ues`,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}removeUserFacilityAttribute(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttribute.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttribute.");if(null==o)throw new Error("Required parameter attribute was null or undefined when calling removeUserFacilityAttribute.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"facility")),null!=o&&(i=this.addToHttpParams(i,o,"attribute"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u-f`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:s,observe:l,reportProgress:c})}removeUserFacilityAttributes(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttributes.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttributes.");if(null==o)throw new Error("Required parameter attributes was null or undefined when calling removeUserFacilityAttributes.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"facility")),o&&o.forEach(H=>{i=this.addToHttpParams(i,H,"attributes[]")});let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u-f`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:s,observe:l,reportProgress:c})}removeVoAttribute(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeVoAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeVoAttribute.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/v`,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}removeVoAttributes(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeVoAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeVoAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attributes[]")});let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/v`,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}setAttributeActionCriticality(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling setAttributeActionCriticality.");if(null==t)throw new Error("Required parameter action was null or undefined when calling setAttributeActionCriticality.");if(null==o)throw new Error("Required parameter critical was null or undefined when calling setAttributeActionCriticality.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"attributeDefinition")),null!=t&&(i=this.addToHttpParams(i,t,"action")),null!=o&&(i=this.addToHttpParams(i,o,"critical"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/setAttributeActionCriticality`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:s,observe:l,reportProgress:c})}setAttributePolicyCollections(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputAttributePolicyCollections was null or undefined when calling setAttributePolicyCollections.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributePolicyCollections`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setAttributeRights(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputAttributeRights was null or undefined when calling setAttributeRights.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributeRights`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setEntitylessAttribute(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputEntitylessAttribute was null or undefined when calling setEntitylessAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/entityless`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setFacilityAttribute(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetFacilityAttribute was null or undefined when calling setFacilityAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/facility`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setFacilityAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetFacilityAttributes was null or undefined when calling setFacilityAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setFacilityResourceGroupUserMemberAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetFacilityResourceGroupUserMemberAttributes was null or undefined when calling setFacilityResourceGroupUserMemberAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-g-u-m`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setFacilityResourceUserMemberAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetFacilityResourceUserMemberAttributes was null or undefined when calling setFacilityResourceUserMemberAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-u-m`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setFacilityUserAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetFacilityUserAttributes was null or undefined when calling setFacilityUserAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-u`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setGroupAttribute(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetGroupAttribute was null or undefined when calling setGroupAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/group`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setGroupAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetGroupAttributes was null or undefined when calling setGroupAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/g`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setGroupResourceAttribute(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetGroupResourceAttribute was null or undefined when calling setGroupResourceAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/group-resource`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setGroupResourceAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetGroupResourceAttributes was null or undefined when calling setGroupResourceAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/group-resource`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setHostAttribute(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetHostAttribute was null or undefined when calling setHostAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/host`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setHostAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetHostAttributes was null or undefined when calling setHostAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/h`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setMemberAttribute(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberAttribute was null or undefined when calling setMemberAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setMemberAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberAttributes was null or undefined when calling setMemberAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setMemberGroupAttribute(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberGroupAttribute was null or undefined when calling setMemberGroupAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member-group`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setMemberGroupAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberGroupAttributes was null or undefined when calling setMemberGroupAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setMemberGroupWithUserAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberGroupWithUserAttributes was null or undefined when calling setMemberGroupWithUserAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g-wu`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setMemberResourceAndUserAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberResourceAndUserAttributes was null or undefined when calling setMemberResourceAndUserAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r-wu`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setMemberResourceAttribute(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberResourceAttribute was null or undefined when calling setMemberResourceAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member-resource`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setMemberResourceAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberResourceAttributes was null or undefined when calling setMemberResourceAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setMemberWithUserAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberWithUserAttributes was null or undefined when calling setMemberWithUserAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-wu`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setResourceAttribute(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetResourceAttribute was null or undefined when calling setResourceAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/resource`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setResourceAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetResourceAttributes was null or undefined when calling setResourceAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setResourceGroupAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetResourceGroupAttributes was null or undefined when calling setResourceGroupAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setResourceGroupWithGroupAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetResourceGroupWithGroupAttributes was null or undefined when calling setResourceGroupWithGroupAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g-wg`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setUserAttribute(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetUserAttribute was null or undefined when calling setUserAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/user`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setUserAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetUserAttributes was null or undefined when calling setUserAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/u`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setUserExtSourceAttribute(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetUserExtSourceAttribute was null or undefined when calling setUserExtSourceAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/userExtSource`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setUserExtSourceAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetUserExtSourceAttributes was null or undefined when calling setUserExtSourceAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/ues`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setUserFacilityAttribute(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetUserFacilityAttribute was null or undefined when calling setUserFacilityAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/facility-user`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setUserFacilityAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetUserFacilityAttributes was null or undefined when calling setUserFacilityAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/facility-user`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setVoAttribute(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetVoAttribute was null or undefined when calling setVoAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/vo`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setVoAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetVoAttributes was null or undefined when calling setVoAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/vo`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}updateAttributeDefinition(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputAttributeDefinition was null or undefined when calling updateAttributeDefinition.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/updateAttributeDefinition`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(y.eN),u.LFG(pt,8),u.LFG(Oe,8))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),at=(()=>{class r{constructor(e,t,o){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new Oe,o&&(this.configuration=o),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new St}addToHttpParams(e,t,o){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,o):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,o){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,o));else if(t instanceof Date){if(null==o)throw Error("key may not be null if value is Date");e=e.append(o,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=o?`${o}.${l}`:l));else{if(null==o)throw Error("key may not be null if value is not object or array");e=e.append(o,t)}return e}getAllPolicies(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllPolicies`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAllRolesManagementRules(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllRolesManagementRules`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAuthzAdminGroups(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter role was null or undefined when calling getAuthzAdminGroups.");if(null==t)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzAdminGroups.");if(null==o)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzAdminGroups.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"role")),null!=t&&(i=this.addToHttpParams(i,t,"complementaryObjectId")),null!=o&&(i=this.addToHttpParams(i,o,"complementaryObjectName"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAdminGroups`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:s,observe:l,reportProgress:c})}getAuthzRichAdmins(e,t,o,l,c,n,i="body",s=!1,d){if(null==e)throw new Error("Required parameter role was null or undefined when calling getAuthzRichAdmins.");if(null==t)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzRichAdmins.");if(null==o)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzRichAdmins.");if(null==l)throw new Error("Required parameter specificAttributes was null or undefined when calling getAuthzRichAdmins.");let h=new y.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"role")),null!=t&&(h=this.addToHttpParams(h,t,"complementaryObjectId")),null!=o&&(h=this.addToHttpParams(h,o,"complementaryObjectName")),l&&l.forEach(ke=>{h=this.addToHttpParams(h,ke,"specificAttributes")}),null!=c&&(h=this.addToHttpParams(h,c,"allUserAttributes")),null!=n&&(h=this.addToHttpParams(h,n,"onlyDirectAdmins"));let b,f=this.defaultHeaders;b=this.configuration.lookupCredential("BasicAuth"),b&&(f=f.set("Authorization","Basic "+b)),b=this.configuration.lookupCredential("BearerAuth"),b&&(f=f.set("Authorization","Bearer "+b));let H=d&&d.httpHeaderAccept;void 0===H&&(H=this.configuration.selectHeaderAccept(["application/json"])),void 0!==H&&(f=f.set("Accept",H));let j=d&&d.context;void 0===j&&(j=new y.qT);let ae="json";return H&&(ae=H.startsWith("text")?"text":this.configuration.isJsonMime(H)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getRichAdmins`,{context:j,params:h,responseType:ae,withCredentials:this.configuration.withCredentials,headers:f,observe:i,reportProgress:s})}getFacilitiesWhereUserIsInRoles(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getFacilitiesWhereUserIsInRoles.");let n=new y.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"roles[]")});let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getFacilitiesWhereUserIsInRoles`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getGroupRoleNames(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupRoleNames`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getGroupRoles(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"groupId"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/getGroupRoles`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getGroupsWhereUserIsInRoles(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getGroupsWhereUserIsInRoles.");let n=new y.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"roles[]")});let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupsWhereUserIsInRoles`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getLoggedUser(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getLoggedUser`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getMembersWhereUserIsInRoles(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getMembersWhereUserIsInRoles.");let n=new y.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"roles[]")});let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getMembersWhereUserIsInRoles`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getPerunPrincipal(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPerunPrincipal`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPrincipalRoleNames(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPrincipalRoleNames`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getResourcesWhereUserIsInRoles(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getResourcesWhereUserIsInRoles.");let n=new y.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"roles[]")});let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getResourcesWhereUserIsInRoles`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getSecurityTeamsWhereUserIsInRoles(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getSecurityTeamsWhereUserIsInRoles.");let n=new y.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"roles[]")});let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getSecurityTeamsWhereUserIsInRoles`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getUserRoleNames(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoleNames`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getUserRoles(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"userId"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoles`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getVosWhereUserIsInRoles(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getVosWhereUserIsInRoles.");let n=new y.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"roles[]")});let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getVosWhereUserIsInRoles`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}isFacilityAdmin(e,t="body",o=!1,l){let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"facility"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isFacilityAdmin`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}isGroupAdmin(e,t="body",o=!1,l){let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isGroupAdmin`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}isPerunAdmin(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/isPerunAdmin`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}isVoAdmin(e,t="body",o=!1,l){let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isVoAdmin`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}keepAlive(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/keepAlive`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}loadAuthorizationComponents(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/loadAuthorizationComponents`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}refreshMfa(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/refreshMfa`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}setRoleForGroup(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter SetRoleForGroup was null or undefined when calling setRoleForGroup.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/g`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setRoleForUser(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter SetRoleForUser was null or undefined when calling setRoleForUser.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/u`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setRoleWithGroupComplementaryObject(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter SetRoleWithGroupComplementaryObject was null or undefined when calling setRoleWithGroupComplementaryObject.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/g-co`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setRoleWithUserComplementaryObject(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter SetRoleWithUserComplementaryObject was null or undefined when calling setRoleWithUserComplementaryObject.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/u-co`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}unsetRoleForGroup(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter UnsetRoleForGroup was null or undefined when calling unsetRoleForGroup.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/g`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}unsetRoleForUser(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter UnsetRoleForUser was null or undefined when calling unsetRoleForUser.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/u`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}unsetRoleWithGroupComplementaryObject(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter UnsetRoleWithGroupComplementaryObject was null or undefined when calling unsetRoleWithGroupComplementaryObject.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/g-co`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}unsetRoleWithUserComplementaryObject(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter UnsetRoleWithUserComplementaryObject was null or undefined when calling unsetRoleWithUserComplementaryObject.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/u-co`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(y.eN),u.LFG(pt,8),u.LFG(Oe,8))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Pt=(()=>{class r{constructor(e,t,o){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new Oe,o&&(this.configuration=o),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new St}addToHttpParams(e,t,o){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,o):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,o){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,o));else if(t instanceof Date){if(null==o)throw Error("key may not be null if value is Date");e=e.append(o,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=o?`${o}.${l}`:l));else{if(null==o)throw Error("key may not be null if value is not object or array");e=e.append(o,t)}return e}sentMessageToRTWithMemberQueue(e,t,o,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter memberId was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==o)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==l)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithMemberQueue.");let s=new y.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"memberId")),null!=t&&(s=this.addToHttpParams(s,t,"queue")),null!=o&&(s=this.addToHttpParams(s,o,"subject")),null!=l&&(s=this.addToHttpParams(s,l,"text"));let h,d=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(d=d.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(d=d.set("Authorization","Bearer "+h));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let H="json";return f&&(H=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/m-q`,null,{context:b,params:s,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}sentMessageToRTWithQueue(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithQueue.");if(null==t)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithQueue.");if(null==o)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithQueue.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"queue")),null!=t&&(i=this.addToHttpParams(i,t,"subject")),null!=o&&(i=this.addToHttpParams(i,o,"text"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/q`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:s,observe:l,reportProgress:c})}sentMessageToRTWithVo(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVo.");if(null==t)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVo.");if(null==o)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVo.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"voId")),null!=t&&(i=this.addToHttpParams(i,t,"subject")),null!=o&&(i=this.addToHttpParams(i,o,"text"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:s,observe:l,reportProgress:c})}sentMessageToRTWithVoQueue(e,t,o,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==o)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==l)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVoQueue.");let s=new y.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"voId")),null!=t&&(s=this.addToHttpParams(s,t,"queue")),null!=o&&(s=this.addToHttpParams(s,o,"subject")),null!=l&&(s=this.addToHttpParams(s,l,"text"));let h,d=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(d=d.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(d=d.set("Authorization","Bearer "+h));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let H="json";return f&&(H=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v-q`,null,{context:b,params:s,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(y.eN),u.LFG(pt,8),u.LFG(Oe,8))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),pc=(()=>{class r{constructor(e,t,o){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new Oe,o&&(this.configuration=o),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new St}addToHttpParams(e,t,o){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,o):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,o){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,o));else if(t instanceof Date){if(null==o)throw Error("key may not be null if value is Date");e=e.append(o,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=o?`${o}.${l}`:l));else{if(null==o)throw Error("key may not be null if value is not object or array");e=e.append(o,t)}return e}addApplicationMailForGroup(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputAddApplicationMailForGroup was null or undefined when calling addApplicationMailForGroup.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/addApplicationMail/g`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}addApplicationMailForVo(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputAddApplicationMailForVo was null or undefined when calling addApplicationMailForVo.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/addApplicationMail/v`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}addGroupsToAutoRegistration(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter groups was null or undefined when calling addGroupsToAutoRegistration.");let c=new y.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"groups[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/addGroupsToAutoRegistration`,null,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}approveApplication(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling approveApplication.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/approveApplication`,null,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}checkForSimilarRichIdentities(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/checkForSimilarRichIdentities`,null,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}checkForSimilarUsersWithAuthInfo(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/checkForSimilarUsers/authInfo`,null,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}consolidate(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputConsolidate was null or undefined when calling consolidate.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/consolidate`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}consolidateIdentityUsingToken(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter token was null or undefined when calling consolidateIdentityUsingToken.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"token"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/consolidateIdentityUsingToken`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}copyFormFromGroupToGroup(e,t,o="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromGroup")),null!=t&&(n=this.addToHttpParams(n,t,"toGroup"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToGroup`,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}copyFormFromGroupToVo(e,t,o="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromGroup")),null!=t&&(n=this.addToHttpParams(n,t,"toVo"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToVo`,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}copyFormFromVoToGroup(e,t,o="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromVo")),null!=t&&(n=this.addToHttpParams(n,t,"toGroup"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToGroup`,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}copyFormFromVoToVo(e,t,o="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromVo")),null!=t&&(n=this.addToHttpParams(n,t,"toVo"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToVo`,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}copyMailsFromGroupToGroup(e,t,o="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromGroup")),null!=t&&(n=this.addToHttpParams(n,t,"toGroup"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToGroup`,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}copyMailsFromGroupToVo(e,t,o="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromGroup")),null!=t&&(n=this.addToHttpParams(n,t,"toVo"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToVo`,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}copyMailsFromVoToGroup(e,t,o="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromVo")),null!=t&&(n=this.addToHttpParams(n,t,"toGroup"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToGroup`,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}copyMailsFromVoToVo(e,t,o="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromVo")),null!=t&&(n=this.addToHttpParams(n,t,"toVo"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToVo`,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}createApplicationFormInGroup(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling createApplicationFormInGroup.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/group`,null,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}createApplicationFormInVo(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling createApplicationFormInVo.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/vo`,null,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}deleteApplication(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteApplication.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplication`,null,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}deleteApplicationMailForGroup(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling deleteApplicationMailForGroup.");if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForGroup.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"id"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/g`,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}deleteApplicationMailForVo(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling deleteApplicationMailForVo.");if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForVo.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"id"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/v`,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}deleteGroupsFromAutoRegistration(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter groups was null or undefined when calling deleteGroupsFromAutoRegistration.");let c=new y.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"groups[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteGroupsFromAutoRegistration`,null,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getApplicationById(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getApplicationById.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationById`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getApplicationDataById(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getApplicationDataById.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationDataById`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getApplicationMailsForGroup(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getApplicationMailsForGroup.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationMails/g`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getApplicationMailsForVo(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getApplicationMailsForVo.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationMails/v`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getApplicationsForGroup(e,t,o,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter group was null or undefined when calling getApplicationsForGroup.");let s=new y.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),t&&t.forEach(j=>{s=this.addToHttpParams(s,j,"state[]")}),null!=o&&(s=this.addToHttpParams(s,o,"dateFrom")),null!=l&&(s=this.addToHttpParams(s,l,"dateTo"));let h,d=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(d=d.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(d=d.set("Authorization","Bearer "+h));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let H="json";return f&&(H=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForGroup`,{context:b,params:s,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}getApplicationsForMember(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getApplicationsForMember.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"group"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForMember`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getApplicationsForVo(e,t,o,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getApplicationsForVo.");let s=new y.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),t&&t.forEach(j=>{s=this.addToHttpParams(s,j,"state[]")}),null!=o&&(s=this.addToHttpParams(s,o,"dateFrom")),null!=l&&(s=this.addToHttpParams(s,l,"dateTo"));let h,d=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(d=d.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(d=d.set("Authorization","Bearer "+h));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let H="json";return f&&(H=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForVo`,{context:b,params:s,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}getApplicationsPage(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputGetPaginatedApplications was null or undefined when calling getApplicationsPage.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/getApplicationsPage`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}getConsolidatorToken(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getConsolidatorToken`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getFormItemsForGroup(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroup.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/group`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getFormItemsForGroupWithType(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroupWithType.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"type"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/group-type`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getFormItemsForVo(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVo.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/vo`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getFormItemsForVoWithType(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVoWithType.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"type"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/vo-type`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getGroupApplicationForm(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupApplicationForm.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationForm/group`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getGroupsToAutoRegistration(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getGroupsToAutoRegistration.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getGroupsToAutoRegistration`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getVoApplicationForm(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoApplicationForm.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationForm/vo`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}rejectApplication(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter id was null or undefined when calling rejectApplication.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"id")),null!=t&&(n=this.addToHttpParams(n,t,"reason"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/rejectApplication`,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}sendInvitation(e,t,o,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter email was null or undefined when calling sendInvitation.");if(null==t)throw new Error("Required parameter language was null or undefined when calling sendInvitation.");let s=new y.LE({encoder:this.encoder});null!=o&&(s=this.addToHttpParams(s,o,"voId")),null!=l&&(s=this.addToHttpParams(s,l,"name")),null!=e&&(s=this.addToHttpParams(s,e,"email")),null!=t&&(s=this.addToHttpParams(s,t,"language"));let h,d=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(d=d.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(d=d.set("Authorization","Bearer "+h));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let H="json";return f&&(H=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation`,null,{context:b,params:s,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}sendInvitationForGroup(e,t,o,l,c,n="body",i=!1,s){if(null==e)throw new Error("Required parameter email was null or undefined when calling sendInvitationForGroup.");if(null==t)throw new Error("Required parameter language was null or undefined when calling sendInvitationForGroup.");let d=new y.LE({encoder:this.encoder});null!=o&&(d=this.addToHttpParams(d,o,"voId")),null!=l&&(d=this.addToHttpParams(d,l,"groupId")),null!=c&&(d=this.addToHttpParams(d,c,"name")),null!=e&&(d=this.addToHttpParams(d,e,"email")),null!=t&&(d=this.addToHttpParams(d,t,"language"));let f,h=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(h=h.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(h=h.set("Authorization","Bearer "+f));let b=s&&s.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let H=s&&s.context;void 0===H&&(H=new y.qT);let j="json";return b&&(j=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/g`,null,{context:H,params:d,responseType:j,withCredentials:this.configuration.withCredentials,headers:h,observe:n,reportProgress:i})}sendInvitationGroupToExistingUser(e,t,o,l="body",c=!1,n){let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"userId")),null!=t&&(i=this.addToHttpParams(i,t,"voId")),null!=o&&(i=this.addToHttpParams(i,o,"groupId"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u-g`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:s,observe:l,reportProgress:c})}sendInvitationToExistingUser(e,t,o="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userId")),null!=t&&(n=this.addToHttpParams(n,t,"voId"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u`,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}sendInvitationsFromCsv(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputInvitationsFromCsv was null or undefined when calling sendInvitationsFromCsv.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/sendInvitationsFromCsv`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}sendMessage(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSendMessage was null or undefined when calling sendMessage.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/sendMessage`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setSendingEnabled(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetSendingEnabled was null or undefined when calling setSendingEnabled.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/setSendingEnabled`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}submitApplication(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSubmitApplication was null or undefined when calling submitApplication.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/submitApplication`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}updateApplicationMail(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputUpdateApplicationMail was null or undefined when calling updateApplicationMail.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateApplicationMail`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}updateForm(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputUpdateForm was null or undefined when calling updateForm.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateForm`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}updateFormItemData(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputFormItemData was null or undefined when calling updateFormItemData.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItemData`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}updateFormItemsData(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputFormItemsData was null or undefined when calling updateFormItemsData.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItemsData`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}updateFormItemsForGroup(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputUpdateFormItemsForGroup was null or undefined when calling updateFormItemsForGroup.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItems/group`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}updateFormItemsForVo(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputUpdateFormItemsForVo was null or undefined when calling updateFormItemsForVo.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItems/vo`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}verifyApplication(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling verifyApplication.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/verifyApplication`,null,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(y.eN),u.LFG(pt,8),u.LFG(Oe,8))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Kr=(()=>{class r{constructor(e,t,o){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new Oe,o&&(this.configuration=o),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new St}addToHttpParams(e,t,o){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,o):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,o){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,o));else if(t instanceof Date){if(null==o)throw Error("key may not be null if value is Date");e=e.append(o,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=o?`${o}.${l}`:l));else{if(null==o)throw Error("key may not be null if value is not object or array");e=e.append(o,t)}return e}addSpecificUserOwner(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling addSpecificUserOwner.");if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling addSpecificUserOwner.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"specificUser"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/addSpecificUserOwner`,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}addUserExtSource(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter AddUserExtSourceInput was null or undefined when calling addUserExtSource.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/addUserExtSource`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}anonymizeUser(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling anonymizeUser.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"force"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/anonymizeUser`,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}changeNonAuthzPasswordByToken(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputChangeNonAuthzPasswordByToken was null or undefined when calling changeNonAuthzPasswordByToken.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/changeNonAuthzPassword/token`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}changePasswordForLogin(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputChangePasswordForLogin was null or undefined when calling changePasswordForLogin.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/changePassword/login`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}changePasswordForUser(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputChangePasswordForUser was null or undefined when calling changePasswordForUser.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/changePassword/user`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}checkPasswordResetRequestByTokenIsValid(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter token was null or undefined when calling checkPasswordResetRequestByTokenIsValid.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"token"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/checkPasswordResetRequestIsValid/token`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}checkPasswordStrength(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputCheckPasswordStrength was null or undefined when calling checkPasswordStrength.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/checkPasswordStrength`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}createAlternativePassword(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputCreateAlternativePassword was null or undefined when calling createAlternativePassword.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/createAlternativePassword`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}createServiceUser(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputCreateServiceUser was null or undefined when calling createServiceUser.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/createServiceUser`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}deleteAlternativePassword(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling deleteAlternativePassword.");if(null==t)throw new Error("Required parameter loginNamespace was null or undefined when calling deleteAlternativePassword.");if(null==o)throw new Error("Required parameter passwordId was null or undefined when calling deleteAlternativePassword.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"loginNamespace")),null!=o&&(i=this.addToHttpParams(i,o,"passwordId"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteAlternativePassword`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:s,observe:l,reportProgress:c})}deletePasswordForLogin(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter login was null or undefined when calling deletePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForLogin.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"login")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/login`,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}deletePasswordForUser(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling deletePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForUser.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/user`,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}deleteUser(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling deleteUser.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"force"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteUser`,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}findRichUsers(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findRichUsers.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"searchString"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsers`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}findRichUsersWithAttributes(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findRichUsersWithAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"searchString")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrsNames[]")});let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsersWithAttributes`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}findUsers(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findUsers.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"searchString"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findUsers`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}generateAccountForName(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter namespace was null or undefined when calling generateAccountForName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"namespace")),null!=t&&(n=this.addToHttpParams(n,t,"name"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/generateAccount/name`,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getAllRichUsersWithAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter includedSpecificUsers was null or undefined when calling getAllRichUsersWithAttributes.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"includedSpecificUsers"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAllRichUsersWithAttributes`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getAssignedRichResourcesForUser(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getAssignedRichResourcesForUser.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAssignedRichResources`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getGroupsForFacilityWhereUserIsActive(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/facility`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getGroupsForResourceWhereUserIsActive(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsForResourceWhereUserIsActive.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupsForResourceWhereUserIsActive.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/resource`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getGroupsInVoWhereUserIsAdmin(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"vo"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u-v`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getGroupsWhereUserIsAdmin(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsWhereUserIsAdmin.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getPendingPreferredEmailChanges(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getPendingPreferredEmailChanges.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getPendingPreferredEmailChanges`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getRichUserExtSources(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserExtSources.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserExtSources/u`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getRichUserWithAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserWithAttributes.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserWithAttributes`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getRichUsersByIds(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersByIds.");let c=new y.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"ids[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersByIds`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getRichUsersWithAttributesByIds(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersWithAttributesByIds.");let c=new y.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"ids[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithAttributesByIds`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getRichUsersWithoutVoWithAttributes(e,t="body",o=!1,l){let c=new y.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"attrsNames[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithoutVoWithAttributes`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getSpecificUsersByUser(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getSpecificUsersByUser.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSpecificUsersByUser`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getSponsorsForMember(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getSponsorsForMember.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrNames[]")});let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/member`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getSponsorsForMemberByVoAndLogin(e,t,o,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==t)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==o)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsForMemberByVoAndLogin.");let s=new y.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"extSourceName")),null!=o&&(s=this.addToHttpParams(s,o,"extLogin")),l&&l.forEach(j=>{s=this.addToHttpParams(s,j,"attrNames[]")});let h,d=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(d=d.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(d=d.set("Authorization","Bearer "+h));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let H="json";return f&&(H=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/vo`,{context:b,params:s,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}getUserByExtSourceNameAndExtLogin(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter extLogin was null or undefined when calling getUserByExtSourceNameAndExtLogin.");if(null==t)throw new Error("Required parameter extSourceName was null or undefined when calling getUserByExtSourceNameAndExtLogin.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"extLogin")),null!=t&&(n=this.addToHttpParams(n,t,"extSourceName"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserByExtSourceNameAndExtLogin`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getUserById(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getUserById.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserById`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getUserExtSourceByExtLoginAndExtSourceName(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");if(null==t)throw new Error("Required parameter extSourceLogin was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"extSourceName")),null!=t&&(n=this.addToHttpParams(n,t,"extSourceLogin"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByExtLoginAndExtSourceName`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getUserExtSourceById(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceById.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"userExtSource"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceById`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getUserExtSourceByUniqueAttributeValueAndAttributeId(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");if(null==t)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"attributeId")),null!=t&&(n=this.addToHttpParams(n,t,"attributeValue"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/id`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getUserExtSourceByUniqueAttributeValueAndAttributeName(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");if(null==t)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"attributeName")),null!=t&&(n=this.addToHttpParams(n,t,"attributeValue"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/name`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getUserExtSources(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserExtSources.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSources`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getUserExtSourcesByIds(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUserExtSourcesByIds.");let c=new y.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"ids[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourcesByIds`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getUsers(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsers`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getUsersByIds(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUsersByIds.");let c=new y.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"ids[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersByIds`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getUsersBySpecificUser(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter specificUser was null or undefined when calling getUsersBySpecificUser.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"specificUser"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersBySpecificUser`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getUsersPage(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputGetPaginatedUsers was null or undefined when calling getUsersPage.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/getUsersPage`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}getVosWhereUserIsAdmin(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsAdmin.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsAdmin`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getVosWhereUserIsMember(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsMember.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsMember`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}isLoginAvailable(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter loginNamespace was null or undefined when calling isLoginAvailable.");if(null==t)throw new Error("Required parameter login was null or undefined when calling isLoginAvailable.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"loginNamespace")),null!=t&&(n=this.addToHttpParams(n,t,"login"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/isLoginAvailable`,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}loginExist(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling loginExist.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling loginExist.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/loginExist`,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}removeSpecificUserOwner(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeSpecificUserOwner.");if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling removeSpecificUserOwner.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"specificUser"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeSpecificUserOwner`,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}removeUserExtSource(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserExtSource.");if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSource.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"userExtSource")),null!=o&&(i=this.addToHttpParams(i,o,"force"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeUserExtSource`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:s,observe:l,reportProgress:c})}requestPreferredEmailChange(e,t,o,l,c,n,i="body",s=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling requestPreferredEmailChange.");if(null==t)throw new Error("Required parameter email was null or undefined when calling requestPreferredEmailChange.");let h=new y.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"user")),null!=t&&(h=this.addToHttpParams(h,t,"email")),null!=o&&(h=this.addToHttpParams(h,o,"lang")),null!=l&&(h=this.addToHttpParams(h,l,"linkPath")),null!=c&&(h=this.addToHttpParams(h,c,"customUrl")),null!=n&&(h=this.addToHttpParams(h,n,"idpFilter"));let b,f=this.defaultHeaders;b=this.configuration.lookupCredential("BasicAuth"),b&&(f=f.set("Authorization","Basic "+b)),b=this.configuration.lookupCredential("BearerAuth"),b&&(f=f.set("Authorization","Bearer "+b));let H=d&&d.httpHeaderAccept;void 0===H&&(H=this.configuration.selectHeaderAccept(["application/json"])),void 0!==H&&(f=f.set("Accept",H));let j=d&&d.context;void 0===j&&(j=new y.qT);let ae="json";return H&&(ae=H.startsWith("text")?"text":this.configuration.isJsonMime(H)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/requestPreferredEmailChange`,null,{context:j,params:h,responseType:ae,withCredentials:this.configuration.withCredentials,headers:f,observe:i,reportProgress:s})}reservePasswordForLogin(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputReservePasswordForLogin was null or undefined when calling reservePasswordForLogin.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/reservePassword/login`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}reservePasswordForUser(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputReservePasswordForUser was null or undefined when calling reservePasswordForUser.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/reservePassword/user`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}reserveRandomPassword(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling reserveRandomPassword.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling reserveRandomPassword.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reserveRandomPassword`,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}setLogin(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling setLogin.");if(null==t)throw new Error("Required parameter login was null or undefined when calling setLogin.");if(null==o)throw new Error("Required parameter namespace was null or undefined when calling setLogin.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"login")),null!=o&&(i=this.addToHttpParams(i,o,"namespace"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/setLogin`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:s,observe:l,reportProgress:c})}updateUser(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputUpdateUser was null or undefined when calling updateUser.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/updateUser`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}updateUserExtSourceLastAccess(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling updateUserExtSourceLastAccess.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"userExtSource"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/updateUserExtSourceLastAccess`,null,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}validatePasswordForLogin(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter login was null or undefined when calling validatePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForLogin.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"login")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/login`,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}validatePasswordForUser(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling validatePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForUser.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/user`,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}validatePreferredEmailChangeWithToken(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter token was null or undefined when calling validatePreferredEmailChangeWithToken.");if(null==t)throw new Error("Required parameter u was null or undefined when calling validatePreferredEmailChangeWithToken.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"token")),null!=t&&(n=this.addToHttpParams(n,t,"u"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePreferredEmailChange`,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(y.eN),u.LFG(pt,8),u.LFG(Oe,8))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),mn=(()=>{class r{constructor(e,t,o){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new Oe,o&&(this.configuration=o),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new St}addToHttpParams(e,t,o){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,o):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,o){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,o));else if(t instanceof Date){if(null==o)throw Error("key may not be null if value is Date");e=e.append(o,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=o?`${o}.${l}`:l));else{if(null==o)throw Error("key may not be null if value is not object or array");e=e.append(o,t)}return e}getAppsConfig(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getAppsConfig`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getGuiConfiguration(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getGuiConfiguration`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getNewGuiAlert(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getNewGuiAlert`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunRPCVersion(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["text/plain"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunStatistics(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatistics`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunStatus(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatus`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunSystemTimeInMillis(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunSystemTimeInMillis`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(y.eN),u.LFG(pt,8),u.LFG(Oe,8))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),mc=(()=>{class r{constructor(e,t){if(e)throw new Error("ApiModule is already loaded. Import in your base AppModule only.");if(!t)throw new Error("You need to import the HttpClientModule in your AppModule! \nSee also https://github.com/angular/angular/issues/20575")}static forRoot(e){return{ngModule:r,providers:[{provide:Oe,useFactory:e}]}}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(r,12),u.LFG(y.eN,8))},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({}),r})();var ut=(()=>{return(r=ut||(ut={})).PERUNADMIN="PERUNADMIN",r.PERUNOBSERVER="PERUNOBSERVER",r.VOADMIN="VOADMIN",r.GROUPADMIN="GROUPADMIN",r.GROUPOBSERVER="GROUPOBSERVER",r.GROUPMEMBERSHIPMANAGER="GROUPMEMBERSHIPMANAGER",r.SELF="SELF",r.FACILITYADMIN="FACILITYADMIN",r.FACILITIYOBSERVER="FACILITYOBSERVER",r.RESOURCEADMIN="RESOURCEADMIN",r.RESOURCESELFSERVICE="RESOURCESELFSERVICE",r.REGISTRAR="REGISTRAR",r.ENGINE="ENGINE",r.RPC="RPC",r.NOTIFICATIONS="NOTIFICATIONS",r.SERVICEUSER="SERVICEUSER",r.SPONSOR="SPONSOR",r.VOOBSERVER="VOOBSERVER",r.TOPGROUPCREATOR="TOPGROUPCREATOR",r.SECURITYADMIN="SECURITYADMIN",r.CABINETADMIN="CABINETADMIN",r.UNKNOWNROLENAME="UNKNOWNROLENAME",r.AUDITCONSUMERADMIN="AUDITCONSUMERADMIN",r.UNKNOWN="UNKNOWN",r.MEMBERSHIP="MEMBERSHIP",ut;var r})();let Mf=(()=>{class r{constructor(e){this.authzSevice=e,this.principalRoles=new Set,this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[],this.sortRoles=(t,o)=>t.roleName>o.roleName?1:t.roleName{this.authzSevice.getAllRolesManagementRules().subscribe(o=>{this.allRolesManagementRules=o,e()},o=>t(o))})}assignAvailableRoles(e,t){this.allRolesManagementRules.forEach(o=>{o.primaryObject===t&&e.push(o)}),e.sort(this.sortRoles),"Vo"===t&&this.voCustomSort(e)}isManagerPagePrivileged(e){const t=[];let o=e.beanName;o.startsWith("Rich")&&(o=o.substring(4)),this.assignAvailableRoles(t,o);const l=new Map;this.setRolesAuthorization(t,e,l);for(const c of l.values())if(c.readAuth||c.manageAuth)return!0;return!1}setRolesAuthorization(e,t,o){for(const l of e){let c=[],n=[],i=[];for(const b of this.allRolesManagementRules)if(b.roleName===l.roleName){c=c.concat(b.privilegedRolesToRead),n=n.concat(b.privilegedRolesToManage);for(const H of Object.keys(b.entitiesToManage))i="User"===H?[H].concat(i):i.concat(H);break}const s=this.fetchAllRelatedObjects([t]),d=this.resolveAuthorization(c,s),h=this.resolveAuthorization(n,s);o.set(l.roleName,{readAuth:d,manageAuth:h,modes:i})}}initializeVariables(){this.principalRoles.clear(),this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}getPrimaryObjectOfRole(e){for(const t of this.allRolesManagementRules)if(t.roleName===e)return t.primaryObject;return""}getAllRules(){return this.allRolesManagementRules.sort(this.sortRoles)}getRuleForRole(e){return this.allRolesManagementRules.find(t=>t.roleName===e)}getAssignableRoleRules(e){const t=[],o=["UNKNOWN","RPC","NOTIFICATIONS","ENGINE","MFA","REGISTRAR","AUDITCONSUMERADMIN","SPONSORSHIP","MEMBERSHIP","SERVICEUSER","SELF","SECURITYADMIN"];return this.allRolesManagementRules.forEach(l=>{!o.includes(l.roleName)&&this.canManage(l)&&this.ruleHasMode(l,e)&&t.push(l)}),t.sort(this.sortRoles)}ruleHasMode(e,t){return Object.keys(e.entitiesToManage).map(o=>o.toUpperCase()).includes(t)}canManage(e){return e.privilegedRolesToManage.some(t=>this.principalRoles.has(Object.keys(t)[0]))}resolveAuthorization(e,t){for(const o of e){let l=!0;for(const c of Object.keys(o)){const n=o[c];if(null===n)this.principalRoles.has(c)||(l=!1);else if(t[n]){for(const i of t[n])if(!this.principalHasRole(c,n,i)){l=!1;break}}else l=!1;if(!l)break}if(l)return!0}return!1}getPerunPolicy(e){for(const t of this.perunPolicies)if(t.policyName===e)return t;return null}fetchAllRelatedObjects(e){const t={};for(const o of e){let l=o.beanName;switch(o.beanName.startsWith("Rich")&&(l=o.beanName.substring(4)),t[l]?t[l].push(o.id):t[l]=[o.id],l){case"Member":t.User?t.User.push(o.userId):t.User=[o.userId],t.Vo?t.Vo.push(o.voId):t.Vo=[o.voId];break;case"Group":case"ResourceTag":t.Vo?t.Vo.push(o.voId):t.Vo=[o.voId];break;case"Resource":t.Facility?t.Facility.push(o.facilityId):t.Facility=[o.facilityId],t.Vo?t.Vo.push(o.voId):t.Vo=[o.voId]}}return t}fetchPolicyWithAllIncludedPolicies(e){const t=new Map;let o=[];for(o.push(e);0!==o.length;){const c=o.shift();if(t.has(c))continue;const n=this.getPerunPolicy(c);if(!n)return[];t.set(c,n),o=o.concat(n.includePolicies)}const l=[];for(const c of t.values())l.push(c);return l}voCustomSort(e){for(let t=0;t{(0,Qn.Xf)(r()).subscribe(a)})}var gc=x(9635),_n=x(2843),ii=x(515),Ft=x(727),nn=x(4482),Li=x(5403);function Rs(){return(0,nn.e)((r,a)=>{let e=null;r._refCount++;const t=(0,Li.x)(a,void 0,void 0,void 0,()=>{if(!r||r._refCount<=0||0<--r._refCount)return void(e=null);const o=r._connection,l=e;e=null,o&&(!l||o===l)&&o.unsubscribe(),a.unsubscribe()});r.subscribe(t),t.closed||(e=r.connect())})}class Df extends bi.y{constructor(a,e){super(),this.source=a,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,(0,nn.A)(a)&&(this.lift=a.lift)}_subscribe(a){return this.getSubject().subscribe(a)}getSubject(){const a=this._subject;return(!a||a.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:a}=this;this._subject=this._connection=null,a?.unsubscribe()}connect(){let a=this._connection;if(!a){a=this._connection=new Ft.w0;const e=this.getSubject();a.add(this.source.subscribe((0,Li.x)(e,void 0,()=>{this._teardown(),e.complete()},t=>{this._teardown(),e.error(t)},()=>this._teardown()))),a.closed&&(this._connection=null,a=Ft.w0.EMPTY)}return a}refCount(){return Rs()(this)}}var ze=x(4004),Ai=x(3900),Gt=x(5698),Ba=x(3269);function It(...r){const a=(0,Ba.yG)(r);return(0,nn.e)((e,t)=>{(a?(0,ea.z)(r,e,a):(0,ea.z)(r,e)).subscribe(t)})}var xi=x(5577),bn=x(590),Gi=x(4351),bt=x(8505),M=x(262);function k(r,a,e,t,o){return(l,c)=>{let n=e,i=a,s=0;l.subscribe((0,Li.x)(c,d=>{const h=s++;i=n?r(i,d,h):(n=!0,d),t&&c.next(i)},o&&(()=>{n&&c.next(i),c.complete()})))}}function D(r,a){return(0,nn.e)(k(r,a,arguments.length>=2,!0))}function B(r){return r<=0?()=>ii.E:(0,nn.e)((a,e)=>{let t=[];a.subscribe((0,Li.x)(e,o=>{t.push(o),r{for(const o of t)e.next(o);e.complete()},void 0,()=>{t=null}))})}var ee=x(8068),pe=x(6590),le=x(4671);function Ue(r,a){const e=arguments.length>=2;return t=>t.pipe(r?(0,ti.h)((o,l)=>r(o,l,t)):le.y,B(1),e?(0,pe.d)(a):(0,ee.T)(()=>new ko.K))}var Ot=x(9718);function Mt(r){return(0,nn.e)((a,e)=>{try{a.subscribe(e)}finally{e.add(r)}})}var gt=x(8189);const We="primary";class jt{constructor(a){this.params=a||{}}has(a){return Object.prototype.hasOwnProperty.call(this.params,a)}get(a){if(this.has(a)){const e=this.params[a];return Array.isArray(e)?e[0]:e}return null}getAll(a){if(this.has(a)){const e=this.params[a];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Qt(r){return new jt(r)}function be(r,a,e){const t=e.path.split("/");if(t.length>r.length||"full"===e.pathMatch&&(a.hasChildren()||t.lengtht[l]===o)}return r===a}function qt(r){return Array.prototype.concat.apply([],r)}function Oa(r){return r.length>0?r[r.length-1]:null}function Lt(r,a){for(const e in r)r.hasOwnProperty(e)&&a(r[e],e)}function Pn(r){return(0,u.CqO)(r)?r:(0,u.QGY)(r)?(0,vi.D)(Promise.resolve(r)):(0,De.of)(r)}const KC={exact:function Kn(r,a,e){if(!yr(r.segments,a.segments)||!_c(r.segments,a.segments,e)||r.numberOfChildren!==a.numberOfChildren)return!1;for(const t in a.children)if(!r.children[t]||!Kn(r.children[t],a.children[t],e))return!1;return!0},subset:Fa},ZC={exact:function Fi(r,a){return Ii(r,a)},subset:function Hf(r,a){return Object.keys(a).length<=Object.keys(r).length&&Object.keys(a).every(e=>Jn(r[e],a[e]))},ignored:()=>!0};function ks(r,a,e){return KC[e.paths](r.root,a.root,e.matrixParams)&&ZC[e.queryParams](r.queryParams,a.queryParams)&&!("exact"===e.fragment&&r.fragment!==a.fragment)}function Fa(r,a,e){return Zn(r,a,a.segments,e)}function Zn(r,a,e,t){if(r.segments.length>e.length){const o=r.segments.slice(0,e.length);return!(!yr(o,e)||a.hasChildren()||!_c(o,e,t))}if(r.segments.length===e.length){if(!yr(r.segments,e)||!_c(r.segments,e,t))return!1;for(const o in a.children)if(!r.children[o]||!Fa(r.children[o],a.children[o],t))return!1;return!0}{const o=e.slice(0,r.segments.length),l=e.slice(r.segments.length);return!!(yr(r.segments,o)&&_c(r.segments,o,t)&&r.children[We])&&Zn(r.children[We],a,l,t)}}function _c(r,a,e){return a.every((t,o)=>ZC[e](r[o].parameters,t.parameters))}class ia{constructor(a,e,t){this.root=a,this.queryParams=e,this.fragment=t}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Qt(this.queryParams)),this._queryParamMap}toString(){return Rf.serialize(this)}}class mt{constructor(a,e){this.segments=a,this.children=e,this.parent=null,Lt(e,(t,o)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Vo(this)}}class Vs{constructor(a,e){this.path=a,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Qt(this.parameters)),this._parameterMap}toString(){return ki(this)}}function yr(r,a){return r.length===a.length&&r.every((e,t)=>e.path===a[t].path)}let bc=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=u.Yz7({token:r,factory:function(){return new _u},providedIn:"root"}),r})();class _u{parse(a){const e=new wc(a);return new ia(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(a){const e=`/${Bo(a.root,!0)}`,t=function Jt(r){const a=Object.keys(r).map(e=>{const t=r[e];return Array.isArray(t)?t.map(o=>`${Bs(e)}=${Bs(o)}`).join("&"):`${Bs(e)}=${Bs(t)}`}).filter(e=>!!e);return a.length?`?${a.join("&")}`:""}(a.queryParams);return`${e}${t}${"string"==typeof a.fragment?`#${function If(r){return encodeURI(r)}(a.fragment)}`:""}`}}const Rf=new _u;function Vo(r){return r.segments.map(a=>ki(a)).join("/")}function Bo(r,a){if(!r.hasChildren())return Vo(r);if(a){const e=r.children[We]?Bo(r.children[We],!1):"",t=[];return Lt(r.children,(o,l)=>{l!==We&&t.push(`${l}:${Bo(o,!1)}`)}),t.length>0?`${e}(${t.join("//")})`:e}{const e=function Pf(r,a){let e=[];return Lt(r.children,(t,o)=>{o===We&&(e=e.concat(a(t,o)))}),Lt(r.children,(t,o)=>{o!==We&&(e=e.concat(a(t,o)))}),e}(r,(t,o)=>o===We?[Bo(r.children[We],!1)]:[`${o}:${Bo(t,!1)}`]);return 1===Object.keys(r.children).length&&null!=r.children[We]?`${Vo(r)}/${e[0]}`:`${Vo(r)}/(${e.join("//")})`}}function bu(r){return encodeURIComponent(r).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Bs(r){return bu(r).replace(/%3B/gi,";")}function Os(r){return bu(r).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Cc(r){return decodeURIComponent(r)}function kf(r){return Cc(r.replace(/\+/g,"%20"))}function ki(r){return`${Os(r.path)}${function na(r){return Object.keys(r).map(a=>`;${Os(a)}=${Os(r[a])}`).join("")}(r.parameters)}`}const Vf=/^[^\/()?;=#]+/;function yc(r){const a=r.match(Vf);return a?a[0]:""}const Bf=/^[^=?&#]+/,ey=/^[^&#]+/;class wc{constructor(a){this.url=a,this.remaining=a}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new mt([],{}):new mt([],this.parseChildren())}parseQueryParams(){const a={};if(this.consumeOptional("?"))do{this.parseQueryParam(a)}while(this.consumeOptional("&"));return a}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const a=[];for(this.peekStartsWith("(")||a.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),a.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let t={};return this.peekStartsWith("(")&&(t=this.parseParens(!1)),(a.length>0||Object.keys(e).length>0)&&(t[We]=new mt(a,e)),t}parseSegment(){const a=yc(this.remaining);if(""===a&&this.peekStartsWith(";"))throw new u.vHH(4009,!1);return this.capture(a),new Vs(Cc(a),this.parseMatrixParams())}parseMatrixParams(){const a={};for(;this.consumeOptional(";");)this.parseParam(a);return a}parseParam(a){const e=yc(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const o=yc(this.remaining);o&&(t=o,this.capture(t))}a[Cc(e)]=Cc(t)}parseQueryParam(a){const e=function XC(r){const a=r.match(Bf);return a?a[0]:""}(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const c=function ty(r){const a=r.match(ey);return a?a[0]:""}(this.remaining);c&&(t=c,this.capture(t))}const o=kf(e),l=kf(t);if(a.hasOwnProperty(o)){let c=a[o];Array.isArray(c)||(c=[c],a[o]=c),c.push(l)}else a[o]=l}parseParens(a){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const t=yc(this.remaining),o=this.remaining[t.length];if("/"!==o&&")"!==o&&";"!==o)throw new u.vHH(4010,!1);let l;t.indexOf(":")>-1?(l=t.slice(0,t.indexOf(":")),this.capture(l),this.capture(":")):a&&(l=We);const c=this.parseChildren();e[l]=1===Object.keys(c).length?c[We]:new mt([],c),this.consumeOptional("//")}return e}peekStartsWith(a){return this.remaining.startsWith(a)}consumeOptional(a){return!!this.peekStartsWith(a)&&(this.remaining=this.remaining.substring(a.length),!0)}capture(a){if(!this.consumeOptional(a))throw new u.vHH(4011,!1)}}function Oo(r){return r.segments.length>0?new mt([],{[We]:r}):r}function Na(r){const a={};for(const t of Object.keys(r.children)){const l=Na(r.children[t]);(l.segments.length>0||l.hasChildren())&&(a[t]=l)}return function Cu(r){if(1===r.numberOfChildren&&r.children[We]){const a=r.children[We];return new mt(r.segments.concat(a.segments),a.children)}return r}(new mt(r.segments,a))}function ra(r){return r instanceof ia}function ny(r,a,e,t,o){if(0===e.length)return Lo(a.root,a.root,a.root,t,o);const l=function ay(r){if("string"==typeof r[0]&&1===r.length&&"/"===r[0])return new ry(!0,0,r);let a=0,e=!1;const t=r.reduce((o,l,c)=>{if("object"==typeof l&&null!=l){if(l.outlets){const n={};return Lt(l.outlets,(i,s)=>{n[s]="string"==typeof i?i.split("/"):i}),[...o,{outlets:n}]}if(l.segmentPath)return[...o,l.segmentPath]}return"string"!=typeof l?[...o,l]:0===c?(l.split("/").forEach((n,i)=>{0==i&&"."===n||(0==i&&""===n?e=!0:".."===n?a++:""!=n&&o.push(n))}),o):[...o,l]},[]);return new ry(e,a,t)}(e);return l.toRoot()?Lo(a.root,a.root,new mt([],{}),t,o):function c(i){const s=function Ff(r,a,e,t){if(r.isAbsolute)return new vr(a.root,!0,0);if(-1===t)return new vr(e,e===a.root,0);return function Fs(r,a,e){let t=r,o=a,l=e;for(;l>o;){if(l-=o,t=t.parent,!t)throw new u.vHH(4005,!1);o=t.segments.length}return new vr(t,!1,o-l)}(e,t+(wr(r.commands[0])?0:1),r.numberOfDoubleDots)}(l,a,r.snapshot?._urlSegment,i),d=s.processChildren?Xn(s.segmentGroup,s.index,l.commands):vc(s.segmentGroup,s.index,l.commands);return Lo(a.root,s.segmentGroup,d,t,o)}(r.snapshot?._lastPathIndex)}function wr(r){return"object"==typeof r&&null!=r&&!r.outlets&&!r.segmentPath}function za(r){return"object"==typeof r&&null!=r&&r.outlets}function Lo(r,a,e,t,o){let c,l={};t&&Lt(t,(i,s)=>{l[s]=Array.isArray(i)?i.map(d=>`${d}`):`${i}`}),c=r===a?e:Of(r,a,e);const n=Oo(Na(c));return new ia(n,l,o)}function Of(r,a,e){const t={};return Lt(r.children,(o,l)=>{t[l]=o===a?e:Of(o,a,e)}),new mt(r.segments,t)}class ry{constructor(a,e,t){if(this.isAbsolute=a,this.numberOfDoubleDots=e,this.commands=t,a&&t.length>0&&wr(t[0]))throw new u.vHH(4003,!1);const o=t.find(za);if(o&&o!==Oa(t))throw new u.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class vr{constructor(a,e,t){this.segmentGroup=a,this.processChildren=e,this.index=t}}function vc(r,a,e){if(r||(r=new mt([],{})),0===r.segments.length&&r.hasChildren())return Xn(r,a,e);const t=function oy(r,a,e){let t=0,o=a;const l={match:!1,pathIndex:0,commandIndex:0};for(;o=e.length)return l;const c=r.segments[o],n=e[t];if(za(n))break;const i=`${n}`,s=t0&&void 0===i)break;if(i&&s&&"object"==typeof s&&void 0===s.outlets){if(!sy(i,s,c))return l;t+=2}else{if(!sy(i,{},c))return l;t++}o++}return{match:!0,pathIndex:o,commandIndex:t}}(r,a,e),o=e.slice(t.commandIndex);if(t.match&&t.pathIndex{"string"==typeof l&&(l=[l]),null!==l&&(o[c]=vc(r.children[c],a,l))}),Lt(r.children,(l,c)=>{void 0===t[c]&&(o[c]=l)}),new mt(r.segments,o)}}function aa(r,a,e){const t=r.segments.slice(0,a);let o=0;for(;o{"string"==typeof e&&(e=[e]),null!==e&&(a[t]=aa(new mt([],{}),0,e))}),a}function Ns(r){const a={};return Lt(r,(e,t)=>a[t]=`${e}`),a}function sy(r,a,e){return r==e.path&&Ii(a,e.parameters)}class er{constructor(a,e){this.id=a,this.url=e}}class Ac extends er{constructor(a,e,t="imperative",o=null){super(a,e),this.type=0,this.navigationTrigger=t,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class oa extends er{constructor(a,e,t){super(a,e),this.urlAfterRedirects=t,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class rn extends er{constructor(a,e,t,o){super(a,e),this.reason=t,this.code=o,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class jf extends er{constructor(a,e,t,o){super(a,e),this.error=t,this.target=o,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class js extends er{constructor(a,e,t,o){super(a,e),this.urlAfterRedirects=t,this.state=o,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class vu extends er{constructor(a,e,t,o){super(a,e),this.urlAfterRedirects=t,this.state=o,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Au extends er{constructor(a,e,t,o,l){super(a,e),this.urlAfterRedirects=t,this.state=o,this.shouldActivate=l,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class xc extends er{constructor(a,e,t,o){super(a,e),this.urlAfterRedirects=t,this.state=o,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Tc extends er{constructor(a,e,t,o){super(a,e),this.urlAfterRedirects=t,this.state=o,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ly{constructor(a){this.route=a,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class zf{constructor(a){this.route=a,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Uf{constructor(a){this.snapshot=a,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Gf{constructor(a){this.snapshot=a,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class qf{constructor(a){this.snapshot=a,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class cy{constructor(a){this.snapshot=a,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class zs{constructor(a,e,t){this.routerEvent=a,this.position=e,this.anchor=t,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Wf{constructor(a){this._root=a}get root(){return this._root.value}parent(a){const e=this.pathFromRoot(a);return e.length>1?e[e.length-2]:null}children(a){const e=Ec(a,this._root);return e?e.children.map(t=>t.value):[]}firstChild(a){const e=Ec(a,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(a){const e=Sc(a,this._root);return e.length<2?[]:e[e.length-2].children.map(o=>o.value).filter(o=>o!==a)}pathFromRoot(a){return Sc(a,this._root).map(e=>e.value)}}function Ec(r,a){if(r===a.value)return a;for(const e of a.children){const t=Ec(r,e);if(t)return t}return null}function Sc(r,a){if(r===a.value)return[a];for(const e of a.children){const t=Sc(r,e);if(t.length)return t.unshift(a),t}return[]}class qi{constructor(a,e){this.value=a,this.children=e}toString(){return`TreeNode(${this.value})`}}function Fo(r){const a={};return r&&r.children.forEach(e=>a[e.value.outlet]=e),a}class xu extends Wf{constructor(a,e){super(a),this.snapshot=e,Hc(this,a)}toString(){return this.snapshot.toString()}}function Mc(r,a){const e=function dy(r,a){const c=new Ar([],{},{},"",{},We,a,null,r.root,-1,{});return new Ua("",new qi(c,[]))}(r,a),t=new Yt([new Vs("",{})]),o=new Yt({}),l=new Yt({}),c=new Yt({}),n=new Yt(""),i=new Rn(t,o,c,n,l,We,a,e.root);return i.snapshot=e.root,new xu(new qi(i,[]),e)}class Rn{constructor(a,e,t,o,l,c,n,i){this.url=a,this.params=e,this.queryParams=t,this.fragment=o,this.data=l,this.outlet=c,this.component=n,this._futureSnapshot=i}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,ze.U)(a=>Qt(a)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,ze.U)(a=>Qt(a)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Dc(r,a="emptyOnly"){const e=r.pathFromRoot;let t=0;if("always"!==a)for(t=e.length-1;t>=1;){const o=e[t],l=e[t-1];if(o.routeConfig&&""===o.routeConfig.path)t--;else{if(l.component)break;t--}}return function No(r){return r.reduce((a,e)=>({params:{...a.params,...e.params},data:{...a.data,...e.data},resolve:{...e.data,...a.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(t))}class Ar{constructor(a,e,t,o,l,c,n,i,s,d,h,f){this.url=a,this.params=e,this.queryParams=t,this.fragment=o,this.data=l,this.outlet=c,this.component=n,this.routeConfig=i,this._urlSegment=s,this._lastPathIndex=d,this._correctedLastPathIndex=f??d,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=Qt(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Qt(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Ua extends Wf{constructor(a,e){super(e),this.url=a,Hc(this,e)}toString(){return Pc(this._root)}}function Hc(r,a){a.value._routerState=r,a.children.forEach(e=>Hc(r,e))}function Pc(r){const a=r.children.length>0?` { ${r.children.map(Pc).join(", ")} } `:"";return`${r.value}${a}`}function sa(r){if(r.snapshot){const a=r.snapshot,e=r._futureSnapshot;r.snapshot=e,Ii(a.queryParams,e.queryParams)||r.queryParams.next(e.queryParams),a.fragment!==e.fragment&&r.fragment.next(e.fragment),Ii(a.params,e.params)||r.params.next(e.params),function ht(r,a){if(r.length!==a.length)return!1;for(let e=0;eIi(e.parameters,a[t].parameters))}(r.url,a.url);return e&&!(!r.parent!=!a.parent)&&(!r.parent||$f(r.parent,a.parent))}function At(r,a,e){if(e&&r.shouldReuseRoute(a.value,e.value.snapshot)){const t=e.value;t._futureSnapshot=a.value;const o=function $x(r,a,e){return a.children.map(t=>{for(const o of e.children)if(r.shouldReuseRoute(t.value,o.value.snapshot))return At(r,t,o);return At(r,t)})}(r,a,e);return new qi(t,o)}{if(r.shouldAttach(a.value)){const l=r.retrieve(a.value);if(null!==l){const c=l.route;return c.value._futureSnapshot=a.value,c.children=a.children.map(n=>At(r,n)),c}}const t=function Yx(r){return new Rn(new Yt(r.url),new Yt(r.params),new Yt(r.queryParams),new Yt(r.fragment),new Yt(r.data),r.outlet,r.component,r)}(a.value),o=a.children.map(l=>At(r,l));return new qi(t,o)}}const Yf="ngNavigationCancelingError";function hy(r,a){const{redirectTo:e,navigationBehaviorOptions:t}=ra(a)?{redirectTo:a,navigationBehaviorOptions:void 0}:a,o=py(!1,0,a);return o.url=e,o.navigationBehaviorOptions=t,o}function py(r,a,e){const t=new Error("NavigationCancelingError: "+(r||""));return t[Yf]=!0,t.cancellationCode=a,e&&(t.url=e),t}function fy(r){return my(r)&&ra(r.url)}function my(r){return r&&r[Yf]}class Gs{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new Rc,this.attachRef=null}}let Rc=(()=>{class r{constructor(){this.contexts=new Map}onChildOutletCreated(e,t){const o=this.getOrCreateContext(e);o.outlet=t,this.contexts.set(e,o)}onChildOutletDestroyed(e){const t=this.getContext(e);t&&(t.outlet=null,t.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new Gs,this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const Tu=!1;let Kt=(()=>{class r{constructor(e,t,o,l,c){this.parentContexts=e,this.location=t,this.changeDetector=l,this.environmentInjector=c,this.activated=null,this._activatedRoute=null,this.activateEvents=new u.vpe,this.deactivateEvents=new u.vpe,this.attachEvents=new u.vpe,this.detachEvents=new u.vpe,this.name=o||We,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.getContext(this.name)?.outlet===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new u.vHH(4012,Tu);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new u.vHH(4012,Tu);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new u.vHH(4012,Tu);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new u.vHH(4013,Tu);this._activatedRoute=e;const o=this.location,c=e._futureSnapshot.component,n=this.parentContexts.getOrCreateContext(this.name).children,i=new Eu(e,n,o.injector);if(t&&function qs(r){return!!r.resolveComponentFactory}(t)){const s=t.resolveComponentFactory(c);this.activated=o.createComponent(s,o.length,i)}else this.activated=o.createComponent(c,{index:o.length,injector:i,environmentInjector:t??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(Rc),u.Y36(u.s_b),u.$8M("name"),u.Y36(u.sBO),u.Y36(u.lqb))},r.\u0275dir=u.lG2({type:r,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),r})();class Eu{constructor(a,e,t){this.route=a,this.childContexts=e,this.parent=t}get(a,e){return a===Rn?this.route:a===Rc?this.childContexts:this.parent.get(a,e)}}let gy=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275cmp=u.Xpm({type:r,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&u._UZ(0,"router-outlet")},dependencies:[Kt],encapsulation:2}),r})();function Qf(r,a){return r.providers&&!r._injector&&(r._injector=(0,u.MMx)(r.providers,a,`Route: ${r.path}`)),r._injector??a}function Kf(r){const a=r.children&&r.children.map(Kf),e=a?{...r,children:a}:{...r};return!e.component&&!e.loadComponent&&(a||e.loadChildren)&&e.outlet&&e.outlet!==We&&(e.component=gy),e}function In(r){return r.outlet||We}function Mu(r,a){const e=r.filter(t=>In(t)===a);return e.push(...r.filter(t=>In(t)!==a)),e}function Wi(r){if(!r)return null;if(r.routeConfig?._injector)return r.routeConfig._injector;for(let a=r.parent;a;a=a.parent){const e=a.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class jo{constructor(a,e,t,o){this.routeReuseStrategy=a,this.futureState=e,this.currState=t,this.forwardEvent=o}activate(a){const e=this.futureState._root,t=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,t,a),sa(this.futureState.root),this.activateChildRoutes(e,t,a)}deactivateChildRoutes(a,e,t){const o=Fo(e);a.children.forEach(l=>{const c=l.value.outlet;this.deactivateRoutes(l,o[c],t),delete o[c]}),Lt(o,(l,c)=>{this.deactivateRouteAndItsChildren(l,t)})}deactivateRoutes(a,e,t){const o=a.value,l=e?e.value:null;if(o===l)if(o.component){const c=t.getContext(o.outlet);c&&this.deactivateChildRoutes(a,e,c.children)}else this.deactivateChildRoutes(a,e,t);else l&&this.deactivateRouteAndItsChildren(e,t)}deactivateRouteAndItsChildren(a,e){a.value.component&&this.routeReuseStrategy.shouldDetach(a.value.snapshot)?this.detachAndStoreRouteSubtree(a,e):this.deactivateRouteAndOutlet(a,e)}detachAndStoreRouteSubtree(a,e){const t=e.getContext(a.value.outlet),o=t&&a.value.component?t.children:e,l=Fo(a);for(const c of Object.keys(l))this.deactivateRouteAndItsChildren(l[c],o);if(t&&t.outlet){const c=t.outlet.detach(),n=t.children.onOutletDeactivated();this.routeReuseStrategy.store(a.value.snapshot,{componentRef:c,route:a,contexts:n})}}deactivateRouteAndOutlet(a,e){const t=e.getContext(a.value.outlet),o=t&&a.value.component?t.children:e,l=Fo(a);for(const c of Object.keys(l))this.deactivateRouteAndItsChildren(l[c],o);t&&t.outlet&&(t.outlet.deactivate(),t.children.onOutletDeactivated(),t.attachRef=null,t.resolver=null,t.route=null)}activateChildRoutes(a,e,t){const o=Fo(e);a.children.forEach(l=>{this.activateRoutes(l,o[l.value.outlet],t),this.forwardEvent(new cy(l.value.snapshot))}),a.children.length&&this.forwardEvent(new Gf(a.value.snapshot))}activateRoutes(a,e,t){const o=a.value,l=e?e.value:null;if(sa(o),o===l)if(o.component){const c=t.getOrCreateContext(o.outlet);this.activateChildRoutes(a,e,c.children)}else this.activateChildRoutes(a,e,t);else if(o.component){const c=t.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){const n=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),c.children.onOutletReAttached(n.contexts),c.attachRef=n.componentRef,c.route=n.route.value,c.outlet&&c.outlet.attach(n.componentRef,n.route.value),sa(n.route.value),this.activateChildRoutes(a,null,c.children)}else{const n=Wi(o.snapshot),i=n?.get(u._Vd)??null;c.attachRef=null,c.route=o,c.resolver=i,c.injector=n,c.outlet&&c.outlet.activateWith(o,c.injector),this.activateChildRoutes(a,null,c.children)}}else this.activateChildRoutes(a,null,t)}}class yy{constructor(a){this.path=a,this.route=this.path[this.path.length-1]}}class Ws{constructor(a,e){this.component=a,this.route=e}}function wy(r,a,e){const t=r._root;return $s(t,a?a._root:null,e,[t.value])}function Ic(r,a,e){return(Wi(a)??e).get(r)}function $s(r,a,e,t,o={canDeactivateChecks:[],canActivateChecks:[]}){const l=Fo(a);return r.children.forEach(c=>{(function Ay(r,a,e,t,o={canDeactivateChecks:[],canActivateChecks:[]}){const l=r.value,c=a?a.value:null,n=e?e.getContext(r.value.outlet):null;if(c&&l.routeConfig===c.routeConfig){const i=function xy(r,a,e){if("function"==typeof e)return e(r,a);switch(e){case"pathParamsChange":return!yr(r.url,a.url);case"pathParamsOrQueryParamsChange":return!yr(r.url,a.url)||!Ii(r.queryParams,a.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!$f(r,a)||!Ii(r.queryParams,a.queryParams);default:return!$f(r,a)}}(c,l,l.routeConfig.runGuardsAndResolvers);i?o.canActivateChecks.push(new yy(t)):(l.data=c.data,l._resolvedData=c._resolvedData),$s(r,a,l.component?n?n.children:null:e,t,o),i&&n&&n.outlet&&n.outlet.isActivated&&o.canDeactivateChecks.push(new Ws(n.outlet.component,c))}else c&&qa(a,n,o),o.canActivateChecks.push(new yy(t)),$s(r,null,l.component?n?n.children:null:e,t,o)})(c,l[c.value.outlet],e,t.concat([c.value]),o),delete l[c.value.outlet]}),Lt(l,(c,n)=>qa(c,e.getContext(n),o)),o}function qa(r,a,e){const t=Fo(r),o=r.value;Lt(t,(l,c)=>{qa(l,o.component?a?a.children.getContext(c):null:a,e)}),e.canDeactivateChecks.push(new Ws(o.component&&a&&a.outlet&&a.outlet.isActivated?a.outlet.component:null,o))}function ca(r){return"function"==typeof r}function Wa(r){return r instanceof ko.K||"EmptyError"===r?.name}const xr=Symbol("INITIAL_VALUE");function zo(){return(0,Ai.w)(r=>(0,Xr.a)(r.map(a=>a.pipe((0,Gt.q)(1),It(xr)))).pipe((0,ze.U)(a=>{for(const e of a)if(!0!==e){if(e===xr)return xr;if(!1===e||e instanceof ia)return e}return!0}),(0,ti.h)(a=>a!==xr),(0,Gt.q)(1)))}function Uo(r){return(0,gc.z)((0,bt.b)(a=>{if(ra(a))throw hy(0,a)}),(0,ze.U)(a=>!0===a))}const $a={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function im(r,a,e,t,o){const l=Vc(r,a,e);return l.matched?function tm(r,a,e,t){const o=a.canMatch;if(!o||0===o.length)return(0,De.of)(!0);const l=o.map(c=>{const n=r.get(c),i=function Ey(r){return r&&ca(r.canMatch)}(n)?n.canMatch(a,e):n(a,e);return Pn(i)});return(0,De.of)(l).pipe(zo(),Uo())}(t=Qf(a,t),a,e).pipe((0,ze.U)(c=>!0===c?l:{...$a})):(0,De.of)(l)}function Vc(r,a,e){if(""===a.path)return"full"===a.pathMatch&&(r.hasChildren()||e.length>0)?{...$a}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const o=(a.matcher||be)(e,r,a);if(!o)return{...$a};const l={};Lt(o.posParams,(n,i)=>{l[i]=n.path});const c=o.consumed.length>0?{...l,...o.consumed[o.consumed.length-1].parameters}:l;return{matched:!0,consumedSegments:o.consumed,remainingSegments:e.slice(o.consumed.length),parameters:c,positionalParamSegments:o.posParams??{}}}function da(r,a,e,t,o="corrected"){if(e.length>0&&function Hy(r,a,e){return e.some(t=>Tr(r,a,t)&&In(t)!==We)}(r,e,t)){const c=new mt(a,function nm(r,a,e,t){const o={};o[We]=t,t._sourceSegment=r,t._segmentIndexShift=a.length;for(const l of e)if(""===l.path&&In(l)!==We){const c=new mt([],{});c._sourceSegment=r,c._segmentIndexShift=a.length,o[In(l)]=c}return o}(r,a,t,new mt(e,r.children)));return c._sourceSegment=r,c._segmentIndexShift=a.length,{segmentGroup:c,slicedSegments:[]}}if(0===e.length&&function Py(r,a,e){return e.some(t=>Tr(r,a,t))}(r,e,t)){const c=new mt(r.segments,function Bc(r,a,e,t,o,l){const c={};for(const n of t)if(Tr(r,e,n)&&!o[In(n)]){const i=new mt([],{});i._sourceSegment=r,i._segmentIndexShift="legacy"===l?r.segments.length:a.length,c[In(n)]=i}return{...o,...c}}(r,a,e,t,r.children,o));return c._sourceSegment=r,c._segmentIndexShift=a.length,{segmentGroup:c,slicedSegments:e}}const l=new mt(r.segments,r.children);return l._sourceSegment=r,l._segmentIndexShift=a.length,{segmentGroup:l,slicedSegments:e}}function Tr(r,a,e){return(!(r.hasChildren()||a.length>0)||"full"!==e.pathMatch)&&""===e.path}function Go(r,a,e,t){return!!(In(r)===t||t!==We&&Tr(a,e,r))&&("**"===r.path||Vc(a,r,e).matched)}function rm(r,a,e){return 0===a.length&&!r.children[e]}const Iu=!1;class Js{constructor(a){this.segmentGroup=a||null}}class am{constructor(a){this.urlTree=a}}function Oc(r){return(0,_n._)(new Js(r))}function om(r){return(0,_n._)(new am(r))}class sm{constructor(a,e,t,o,l){this.injector=a,this.configLoader=e,this.urlSerializer=t,this.urlTree=o,this.config=l,this.allowRedirects=!0}apply(){const a=da(this.urlTree.root,[],[],this.config).segmentGroup,e=new mt(a.segments,a.children);return this.expandSegmentGroup(this.injector,this.config,e,We).pipe((0,ze.U)(l=>this.createUrlTree(Na(l),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,M.K)(l=>{if(l instanceof am)return this.allowRedirects=!1,this.match(l.urlTree);throw l instanceof Js?this.noMatchError(l):l}))}match(a){return this.expandSegmentGroup(this.injector,this.config,a.root,We).pipe((0,ze.U)(o=>this.createUrlTree(Na(o),a.queryParams,a.fragment))).pipe((0,M.K)(o=>{throw o instanceof Js?this.noMatchError(o):o}))}noMatchError(a){return new u.vHH(4002,Iu)}createUrlTree(a,e,t){const o=Oo(a);return new ia(o,e,t)}expandSegmentGroup(a,e,t,o){return 0===t.segments.length&&t.hasChildren()?this.expandChildren(a,e,t).pipe((0,ze.U)(l=>new mt([],l))):this.expandSegment(a,t,e,t.segments,o,!0)}expandChildren(a,e,t){const o=[];for(const l of Object.keys(t.children))"primary"===l?o.unshift(l):o.push(l);return(0,vi.D)(o).pipe((0,Gi.b)(l=>{const c=t.children[l],n=Mu(e,l);return this.expandSegmentGroup(a,n,c,l).pipe((0,ze.U)(i=>({segment:i,outlet:l})))}),D((l,c)=>(l[c.outlet]=c.segment,l),{}),Ue())}expandSegment(a,e,t,o,l,c){return(0,vi.D)(t).pipe((0,Gi.b)(n=>this.expandSegmentAgainstRoute(a,e,t,n,o,l,c).pipe((0,M.K)(s=>{if(s instanceof Js)return(0,De.of)(null);throw s}))),(0,bn.P)(n=>!!n),(0,M.K)((n,i)=>{if(Wa(n))return rm(e,o,l)?(0,De.of)(new mt([],{})):Oc(e);throw n}))}expandSegmentAgainstRoute(a,e,t,o,l,c,n){return Go(o,e,l,c)?void 0===o.redirectTo?this.matchSegmentAgainstRoute(a,e,o,l,c):n&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(a,e,t,o,l,c):Oc(e):Oc(e)}expandSegmentAgainstRouteUsingRedirect(a,e,t,o,l,c){return"**"===o.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(a,t,o,c):this.expandRegularSegmentAgainstRouteUsingRedirect(a,e,t,o,l,c)}expandWildCardWithParamsAgainstRouteUsingRedirect(a,e,t,o){const l=this.applyRedirectCommands([],t.redirectTo,{});return t.redirectTo.startsWith("/")?om(l):this.lineralizeSegments(t,l).pipe((0,xi.z)(c=>{const n=new mt(c,{});return this.expandSegment(a,n,e,c,o,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(a,e,t,o,l,c){const{matched:n,consumedSegments:i,remainingSegments:s,positionalParamSegments:d}=Vc(e,o,l);if(!n)return Oc(e);const h=this.applyRedirectCommands(i,o.redirectTo,d);return o.redirectTo.startsWith("/")?om(h):this.lineralizeSegments(o,h).pipe((0,xi.z)(f=>this.expandSegment(a,e,t,f.concat(s),c,!1)))}matchSegmentAgainstRoute(a,e,t,o,l){return"**"===t.path?(a=Qf(t,a),t.loadChildren?(t._loadedRoutes?(0,De.of)({routes:t._loadedRoutes,injector:t._loadedInjector}):this.configLoader.loadChildren(a,t)).pipe((0,ze.U)(n=>(t._loadedRoutes=n.routes,t._loadedInjector=n.injector,new mt(o,{})))):(0,De.of)(new mt(o,{}))):im(e,t,o,a).pipe((0,Ai.w)(({matched:c,consumedSegments:n,remainingSegments:i})=>c?this.getChildConfig(a=t._injector??a,t,o).pipe((0,xi.z)(d=>{const h=d.injector??a,f=d.routes,{segmentGroup:b,slicedSegments:H}=da(e,n,i,f),j=new mt(b.segments,b.children);if(0===H.length&&j.hasChildren())return this.expandChildren(h,f,j).pipe((0,ze.U)(yt=>new mt(n,yt)));if(0===f.length&&0===H.length)return(0,De.of)(new mt(n,{}));const ae=In(t)===l;return this.expandSegment(h,j,f,H,ae?We:l,!0).pipe((0,ze.U)(ct=>new mt(n.concat(ct.segments),ct.children)))})):Oc(e)))}getChildConfig(a,e,t){return e.children?(0,De.of)({routes:e.children,injector:a}):e.loadChildren?void 0!==e._loadedRoutes?(0,De.of)({routes:e._loadedRoutes,injector:e._loadedInjector}):function Ru(r,a,e,t){const o=a.canLoad;if(void 0===o||0===o.length)return(0,De.of)(!0);const l=o.map(c=>{const n=r.get(c),i=function Ys(r){return r&&ca(r.canLoad)}(n)?n.canLoad(a,e):n(a,e);return Pn(i)});return(0,De.of)(l).pipe(zo(),Uo())}(a,e,t).pipe((0,xi.z)(o=>o?this.configLoader.loadChildren(a,e).pipe((0,bt.b)(l=>{e._loadedRoutes=l.routes,e._loadedInjector=l.injector})):function Iy(r){return(0,_n._)(py(Iu,3))}())):(0,De.of)({routes:[],injector:a})}lineralizeSegments(a,e){let t=[],o=e.root;for(;;){if(t=t.concat(o.segments),0===o.numberOfChildren)return(0,De.of)(t);if(o.numberOfChildren>1||!o.children[We])return(0,_n._)(new u.vHH(4e3,Iu));o=o.children[We]}}applyRedirectCommands(a,e,t){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),a,t)}applyRedirectCreateUrlTree(a,e,t,o){const l=this.createSegmentGroup(a,e.root,t,o);return new ia(l,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(a,e){const t={};return Lt(a,(o,l)=>{if("string"==typeof o&&o.startsWith(":")){const n=o.substring(1);t[l]=e[n]}else t[l]=o}),t}createSegmentGroup(a,e,t,o){const l=this.createSegments(a,e.segments,t,o);let c={};return Lt(e.children,(n,i)=>{c[i]=this.createSegmentGroup(a,n,t,o)}),new mt(l,c)}createSegments(a,e,t,o){return e.map(l=>l.path.startsWith(":")?this.findPosParam(a,l,o):this.findOrReturn(l,t))}findPosParam(a,e,t){const o=t[e.path.substring(1)];if(!o)throw new u.vHH(4001,Iu);return o}findOrReturn(a,e){let t=0;for(const o of e){if(o.path===a.path)return e.splice(t),o;t++}return a}}class Kx{}class ku{constructor(a,e,t,o,l,c,n,i){this.injector=a,this.rootComponentType=e,this.config=t,this.urlTree=o,this.url=l,this.paramsInheritanceStrategy=c,this.relativeLinkResolution=n,this.urlSerializer=i}recognize(){const a=da(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,a,We).pipe((0,ze.U)(e=>{if(null===e)return null;const t=new Ar([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},We,this.rootComponentType,null,this.urlTree.root,-1,{}),o=new qi(t,e),l=new Ua(this.url,o);return this.inheritParamsAndData(l._root),l}))}inheritParamsAndData(a){const e=a.value,t=Dc(e,this.paramsInheritanceStrategy);e.params=Object.freeze(t.params),e.data=Object.freeze(t.data),a.children.forEach(o=>this.inheritParamsAndData(o))}processSegmentGroup(a,e,t,o){return 0===t.segments.length&&t.hasChildren()?this.processChildren(a,e,t):this.processSegment(a,e,t,t.segments,o)}processChildren(a,e,t){return(0,vi.D)(Object.keys(t.children)).pipe((0,Gi.b)(o=>{const l=t.children[o],c=Mu(e,o);return this.processSegmentGroup(a,c,l,o)}),D((o,l)=>o&&l?(o.push(...l),o):null),function Nt(r,a=!1){return(0,nn.e)((e,t)=>{let o=0;e.subscribe((0,Li.x)(t,l=>{const c=r(l,o++);(c||a)&&t.next(l),!c&&t.complete()}))})}(o=>null!==o),(0,pe.d)(null),Ue(),(0,ze.U)(o=>{if(null===o)return null;const l=Nc(o);return function Vy(r){r.sort((a,e)=>a.value.outlet===We?-1:e.value.outlet===We?1:a.value.outlet.localeCompare(e.value.outlet))}(l),l}))}processSegment(a,e,t,o,l){return(0,vi.D)(e).pipe((0,Gi.b)(c=>this.processSegmentAgainstRoute(c._injector??a,c,t,o,l)),(0,bn.P)(c=>!!c),(0,M.K)(c=>{if(Wa(c))return rm(t,o,l)?(0,De.of)([]):(0,De.of)(null);throw c}))}processSegmentAgainstRoute(a,e,t,o,l){if(e.redirectTo||!Go(e,t,o,l))return(0,De.of)(null);let c;if("**"===e.path){const n=o.length>0?Oa(o).parameters:{},i=um(t)+o.length,s=new Ar(o,n,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Zs(e),In(e),e.component??e._loadedComponent??null,e,dm(t),i,jc(e),i);c=(0,De.of)({snapshot:s,consumedSegments:[],remainingSegments:[]})}else c=im(t,e,o,a).pipe((0,ze.U)(({matched:n,consumedSegments:i,remainingSegments:s,parameters:d})=>{if(!n)return null;const h=um(t)+i.length;return{snapshot:new Ar(i,d,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Zs(e),In(e),e.component??e._loadedComponent??null,e,dm(t),h,jc(e),h),consumedSegments:i,remainingSegments:s}}));return c.pipe((0,Ai.w)(n=>{if(null===n)return(0,De.of)(null);const{snapshot:i,consumedSegments:s,remainingSegments:d}=n;a=e._injector??a;const h=e._loadedInjector??a,f=function cm(r){return r.children?r.children:r.loadChildren?r._loadedRoutes:[]}(e),{segmentGroup:b,slicedSegments:H}=da(t,s,d,f.filter(ae=>void 0===ae.redirectTo),this.relativeLinkResolution);if(0===H.length&&b.hasChildren())return this.processChildren(h,f,b).pipe((0,ze.U)(ae=>null===ae?null:[new qi(i,ae)]));if(0===f.length&&0===H.length)return(0,De.of)([new qi(i,[])]);const j=In(e)===l;return this.processSegment(h,f,b,H,j?We:l).pipe((0,ze.U)(ae=>null===ae?null:[new qi(i,ae)]))}))}}function Fc(r){const a=r.value.routeConfig;return a&&""===a.path&&void 0===a.redirectTo}function Nc(r){const a=[],e=new Set;for(const t of r){if(!Fc(t)){a.push(t);continue}const o=a.find(l=>t.value.routeConfig===l.value.routeConfig);void 0!==o?(o.children.push(...t.children),e.add(o)):a.push(t)}for(const t of e){const o=Nc(t.children);a.push(new qi(t.value,o))}return a.filter(t=>!e.has(t))}function dm(r){let a=r;for(;a._sourceSegment;)a=a._sourceSegment;return a}function um(r){let a=r,e=a._segmentIndexShift??0;for(;a._sourceSegment;)a=a._sourceSegment,e+=a._segmentIndexShift??0;return e-1}function Zs(r){return r.data||{}}function jc(r){return r.resolve||{}}const zc=Symbol("RouteTitle");function fm(r){return"string"==typeof r.title||null===r.title}function Vu(r){return(0,Ai.w)(a=>{const e=r(a);return e?(0,vi.D)(e).pipe((0,ze.U)(()=>a)):(0,De.of)(a)})}let tr=(()=>{class r{buildTitle(e){let t,o=e.root;for(;void 0!==o;)t=this.getResolvedTitleForRoute(o)??t,o=o.children.find(l=>l.outlet===We);return t}getResolvedTitleForRoute(e){return e.data[zc]}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=u.Yz7({token:r,factory:function(){return(0,u.f3M)(Qa)},providedIn:"root"}),r})(),Qa=(()=>{class r extends tr{constructor(e){super(),this.title=e}updateTitle(e){const t=this.buildTitle(e);void 0!==t&&this.title.setTitle(t)}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(Y))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();class Ny{}class zy extends class jy{shouldDetach(a){return!1}store(a,e){}shouldAttach(a){return!1}retrieve(a){return null}shouldReuseRoute(a,e){return a.routeConfig===e.routeConfig}}{}const Bu=new u.OlP("",{providedIn:"root",factory:()=>({})}),Uc=new u.OlP("ROUTES");let Ou=(()=>{class r{constructor(e,t){this.injector=e,this.compiler=t,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return(0,De.of)(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const t=Pn(e.loadComponent()).pipe((0,bt.b)(l=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=l}),Mt(()=>{this.componentLoaders.delete(e)})),o=new Df(t,()=>new Se.x).pipe(Rs());return this.componentLoaders.set(e,o),o}loadChildren(e,t){if(this.childrenLoaders.get(t))return this.childrenLoaders.get(t);if(t._loadedRoutes)return(0,De.of)({routes:t._loadedRoutes,injector:t._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(t);const l=this.loadModuleFactoryOrRoutes(t.loadChildren).pipe((0,ze.U)(n=>{this.onLoadEndListener&&this.onLoadEndListener(t);let i,s,d=!1;Array.isArray(n)?s=n:(i=n.create(e).injector,s=qt(i.get(Uc,[],u.XFs.Self|u.XFs.Optional)));return{routes:s.map(Kf),injector:i}}),Mt(()=>{this.childrenLoaders.delete(t)})),c=new Df(l,()=>new Se.x).pipe(Rs());return this.childrenLoaders.set(t,c),c}loadModuleFactoryOrRoutes(e){return Pn(e()).pipe((0,xi.z)(t=>t instanceof u.YKP||Array.isArray(t)?(0,De.of)(t):(0,vi.D)(this.compiler.compileModuleAsync(t))))}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(u.zs3),u.LFG(u.Sil))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();class Gy{}class qy{shouldProcessUrl(a){return!0}extract(a){return a}merge(a,e){return a}}function Xx(r){throw r}function Wy(r,a,e){return a.parse("/")}const Xs={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},gm={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function Wo(){const r=(0,u.f3M)(bc),a=(0,u.f3M)(Rc),e=(0,u.f3M)(T.Ye),t=(0,u.f3M)(u.zs3),o=(0,u.f3M)(u.Sil),l=(0,u.f3M)(Uc,{optional:!0})??[],c=(0,u.f3M)(Bu,{optional:!0})??{},n=(0,u.f3M)(Qa),i=(0,u.f3M)(tr,{optional:!0}),s=(0,u.f3M)(Gy,{optional:!0}),d=(0,u.f3M)(Ny,{optional:!0}),h=new ni(null,r,a,e,t,o,qt(l));return s&&(h.urlHandlingStrategy=s),d&&(h.routeReuseStrategy=d),h.titleStrategy=i??n,function ir(r,a){r.errorHandler&&(a.errorHandler=r.errorHandler),r.malformedUriErrorHandler&&(a.malformedUriErrorHandler=r.malformedUriErrorHandler),r.onSameUrlNavigation&&(a.onSameUrlNavigation=r.onSameUrlNavigation),r.paramsInheritanceStrategy&&(a.paramsInheritanceStrategy=r.paramsInheritanceStrategy),r.relativeLinkResolution&&(a.relativeLinkResolution=r.relativeLinkResolution),r.urlUpdateStrategy&&(a.urlUpdateStrategy=r.urlUpdateStrategy),r.canceledNavigationResolution&&(a.canceledNavigationResolution=r.canceledNavigationResolution)}(c,h),h}let ni=(()=>{class r{constructor(e,t,o,l,c,n,i){this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=o,this.location=l,this.config=i,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Se.x,this.errorHandler=Xx,this.malformedUriErrorHandler=Wy,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>(0,De.of)(void 0),this.urlHandlingStrategy=new qy,this.routeReuseStrategy=new zy,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=c.get(Ou),this.configLoader.onLoadEndListener=f=>this.triggerEvent(new zf(f)),this.configLoader.onLoadStartListener=f=>this.triggerEvent(new ly(f)),this.ngModule=c.get(u.h0i),this.console=c.get(u.c2e);const h=c.get(u.R0b);this.isNgZoneEnabled=h instanceof u.R0b&&u.R0b.isInAngularZone(),this.resetConfig(i),this.currentUrlTree=function Wx(){return new ia(new mt([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=Mc(this.currentUrlTree,this.rootComponentType),this.transitions=new Yt({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){return this.location.getState()?.\u0275routerPageId}setupNavigations(e){const t=this.events;return e.pipe((0,ti.h)(o=>0!==o.id),(0,ze.U)(o=>({...o,extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),(0,Ai.w)(o=>{let l=!1,c=!1;return(0,De.of)(o).pipe((0,bt.b)(n=>{this.currentNavigation={id:n.id,initialUrl:n.rawUrl,extractedUrl:n.extractedUrl,trigger:n.source,extras:n.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,Ai.w)(n=>{const i=this.browserUrlTree.toString(),s=!this.navigated||n.extractedUrl.toString()!==i||i!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||s)&&this.urlHandlingStrategy.shouldProcessUrl(n.rawUrl))return Lu(n.source)&&(this.browserUrlTree=n.extractedUrl),(0,De.of)(n).pipe((0,Ai.w)(h=>{const f=this.transitions.getValue();return t.next(new Ac(h.id,this.serializeUrl(h.extractedUrl),h.source,h.restoredState)),f!==this.transitions.getValue()?ii.E:Promise.resolve(h)}),function ky(r,a,e,t){return(0,Ai.w)(o=>function Lc(r,a,e,t,o){return new sm(r,a,e,t,o).apply()}(r,a,e,o.extractedUrl,t).pipe((0,ze.U)(l=>({...o,urlAfterRedirects:l}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,bt.b)(h=>{this.currentNavigation={...this.currentNavigation,finalUrl:h.urlAfterRedirects},o.urlAfterRedirects=h.urlAfterRedirects}),function hm(r,a,e,t,o,l){return(0,xi.z)(c=>function Zx(r,a,e,t,o,l,c="emptyOnly",n="legacy"){return new ku(r,a,e,t,o,c,n,l).recognize().pipe((0,Ai.w)(i=>null===i?function lm(r){return new bi.y(a=>a.error(r))}(new Kx):(0,De.of)(i)))}(r,a,e,c.urlAfterRedirects,t.serialize(c.urlAfterRedirects),t,o,l).pipe((0,ze.U)(n=>({...c,targetSnapshot:n}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,bt.b)(h=>{if(o.targetSnapshot=h.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!h.extras.skipLocationChange){const b=this.urlHandlingStrategy.merge(h.urlAfterRedirects,h.rawUrl);this.setBrowserUrl(b,h)}this.browserUrlTree=h.urlAfterRedirects}const f=new js(h.id,this.serializeUrl(h.extractedUrl),this.serializeUrl(h.urlAfterRedirects),h.targetSnapshot);t.next(f)}));if(s&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:f,extractedUrl:b,source:H,restoredState:j,extras:ae}=n,ke=new Ac(f,this.serializeUrl(b),H,j);t.next(ke);const ct=Mc(b,this.rootComponentType).snapshot;return o={...n,targetSnapshot:ct,urlAfterRedirects:b,extras:{...ae,skipLocationChange:!1,replaceUrl:!1}},(0,De.of)(o)}return this.rawUrlTree=n.rawUrl,n.resolve(null),ii.E}),(0,bt.b)(n=>{const i=new vu(n.id,this.serializeUrl(n.extractedUrl),this.serializeUrl(n.urlAfterRedirects),n.targetSnapshot);this.triggerEvent(i)}),(0,ze.U)(n=>o={...n,guards:wy(n.targetSnapshot,n.currentSnapshot,this.rootContexts)}),function di(r,a){return(0,xi.z)(e=>{const{targetSnapshot:t,currentSnapshot:o,guards:{canActivateChecks:l,canDeactivateChecks:c}}=e;return 0===c.length&&0===l.length?(0,De.of)({...e,guardsResult:!0}):function Xf(r,a,e,t){return(0,vi.D)(r).pipe((0,xi.z)(o=>function Dy(r,a,e,t,o){const l=a&&a.routeConfig?a.routeConfig.canDeactivate:null;if(!l||0===l.length)return(0,De.of)(!0);const c=l.map(n=>{const i=Ic(n,a,o);return Pn(function Ty(r){return r&&ca(r.canDeactivate)}(i)?i.canDeactivate(r,a,e,t):i(r,a,e,t)).pipe((0,bn.P)())});return(0,De.of)(c).pipe(zo())}(o.component,o.route,e,a,t)),(0,bn.P)(o=>!0!==o,!0))}(c,t,o,r).pipe((0,xi.z)(n=>n&&function Qx(r){return"boolean"==typeof r}(n)?function em(r,a,e,t){return(0,vi.D)(a).pipe((0,Gi.b)(o=>(0,ea.z)(function Qs(r,a){return null!==r&&a&&a(new Uf(r)),(0,De.of)(!0)}(o.route.parent,t),function Pu(r,a){return null!==r&&a&&a(new qf(r)),(0,De.of)(!0)}(o.route,t),function My(r,a,e){const t=a[a.length-1],l=a.slice(0,a.length-1).reverse().map(c=>function vy(r){const a=r.routeConfig?r.routeConfig.canActivateChild:null;return a&&0!==a.length?{node:r,guards:a}:null}(c)).filter(c=>null!==c).map(c=>ta(()=>{const n=c.guards.map(i=>{const s=Ic(i,c.node,e);return Pn(function kc(r){return r&&ca(r.canActivateChild)}(s)?s.canActivateChild(t,r):s(t,r)).pipe((0,bn.P)())});return(0,De.of)(n).pipe(zo())}));return(0,De.of)(l).pipe(zo())}(r,o.path,e),function Sy(r,a,e){const t=a.routeConfig?a.routeConfig.canActivate:null;if(!t||0===t.length)return(0,De.of)(!0);const o=t.map(l=>ta(()=>{const c=Ic(l,a,e);return Pn(function Hu(r){return r&&ca(r.canActivate)}(c)?c.canActivate(a,r):c(a,r)).pipe((0,bn.P)())}));return(0,De.of)(o).pipe(zo())}(r,o.route,e))),(0,bn.P)(o=>!0!==o,!0))}(t,l,r,a):(0,De.of)(n)),(0,ze.U)(n=>({...e,guardsResult:n})))})}(this.ngModule.injector,n=>this.triggerEvent(n)),(0,bt.b)(n=>{if(o.guardsResult=n.guardsResult,ra(n.guardsResult))throw hy(0,n.guardsResult);const i=new Au(n.id,this.serializeUrl(n.extractedUrl),this.serializeUrl(n.urlAfterRedirects),n.targetSnapshot,!!n.guardsResult);this.triggerEvent(i)}),(0,ti.h)(n=>!!n.guardsResult||(this.restoreHistory(n),this.cancelNavigationTransition(n,"",3),!1)),Vu(n=>{if(n.guards.canActivateChecks.length)return(0,De.of)(n).pipe((0,bt.b)(i=>{const s=new xc(i.id,this.serializeUrl(i.extractedUrl),this.serializeUrl(i.urlAfterRedirects),i.targetSnapshot);this.triggerEvent(s)}),(0,Ai.w)(i=>{let s=!1;return(0,De.of)(i).pipe(function pm(r,a){return(0,xi.z)(e=>{const{targetSnapshot:t,guards:{canActivateChecks:o}}=e;if(!o.length)return(0,De.of)(e);let l=0;return(0,vi.D)(o).pipe((0,Gi.b)(c=>function Ya(r,a,e,t){const o=r.routeConfig,l=r._resolve;return void 0!==o?.title&&!fm(o)&&(l[zc]=o.title),function Oy(r,a,e,t){const o=function Ly(r){return[...Object.keys(r),...Object.getOwnPropertySymbols(r)]}(r);if(0===o.length)return(0,De.of)({});const l={};return(0,vi.D)(o).pipe((0,xi.z)(c=>function Fy(r,a,e,t){const o=Ic(r,a,t);return Pn(o.resolve?o.resolve(a,e):o(a,e))}(r[c],a,e,t).pipe((0,bn.P)(),(0,bt.b)(n=>{l[c]=n}))),B(1),(0,Ot.h)(l),(0,M.K)(c=>Wa(c)?ii.E:(0,_n._)(c)))}(l,r,a,t).pipe((0,ze.U)(c=>(r._resolvedData=c,r.data=Dc(r,e).resolve,o&&fm(o)&&(r.data[zc]=o.title),null)))}(c.route,t,r,a)),(0,bt.b)(()=>l++),B(1),(0,xi.z)(c=>l===o.length?(0,De.of)(e):ii.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,bt.b)({next:()=>s=!0,complete:()=>{s||(this.restoreHistory(i),this.cancelNavigationTransition(i,"",2))}}))}),(0,bt.b)(i=>{const s=new Tc(i.id,this.serializeUrl(i.extractedUrl),this.serializeUrl(i.urlAfterRedirects),i.targetSnapshot);this.triggerEvent(s)}))}),Vu(n=>{const i=s=>{const d=[];s.routeConfig?.loadComponent&&!s.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(s.routeConfig).pipe((0,bt.b)(h=>{s.component=h}),(0,ze.U)(()=>{})));for(const h of s.children)d.push(...i(h));return d};return(0,Xr.a)(i(n.targetSnapshot.root)).pipe((0,pe.d)(),(0,Gt.q)(1))}),Vu(()=>this.afterPreactivation()),(0,ze.U)(n=>{const i=function uy(r,a,e){const t=At(r,a._root,e?e._root:void 0);return new xu(t,a)}(this.routeReuseStrategy,n.targetSnapshot,n.currentRouterState);return o={...n,targetRouterState:i}}),(0,bt.b)(n=>{this.currentUrlTree=n.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(n.urlAfterRedirects,n.rawUrl),this.routerState=n.targetRouterState,"deferred"===this.urlUpdateStrategy&&(n.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,n),this.browserUrlTree=n.urlAfterRedirects)}),((r,a,e)=>(0,ze.U)(t=>(new jo(a,t.targetRouterState,t.currentRouterState,e).activate(r),t)))(this.rootContexts,this.routeReuseStrategy,n=>this.triggerEvent(n)),(0,bt.b)({next(){l=!0},complete(){l=!0}}),Mt(()=>{l||c||this.cancelNavigationTransition(o,"",1),this.currentNavigation?.id===o.id&&(this.currentNavigation=null)}),(0,M.K)(n=>{if(c=!0,my(n)){fy(n)||(this.navigated=!0,this.restoreHistory(o,!0));const i=new rn(o.id,this.serializeUrl(o.extractedUrl),n.message,n.cancellationCode);if(t.next(i),fy(n)){const s=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree),d={skipLocationChange:o.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Lu(o.source)};this.scheduleNavigation(s,"imperative",null,d,{resolve:o.resolve,reject:o.reject,promise:o.promise})}else o.resolve(!1)}else{this.restoreHistory(o,!0);const i=new jf(o.id,this.serializeUrl(o.extractedUrl),n,o.targetSnapshot??void 0);t.next(i);try{o.resolve(this.errorHandler(n))}catch(s){o.reject(s)}}return ii.E}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next({...this.transitions.value,...e})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const t="popstate"===e.type?"popstate":"hashchange";"popstate"===t&&setTimeout(()=>{const o={replaceUrl:!0},l=e.state?.navigationId?e.state:null;if(l){const n={...l};delete n.navigationId,delete n.\u0275routerPageId,0!==Object.keys(n).length&&(o.state=n)}const c=this.parseUrl(e.url);this.scheduleNavigation(c,t,l,o)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){this.config=e.map(Kf),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,t={}){const{relativeTo:o,queryParams:l,fragment:c,queryParamsHandling:n,preserveFragment:i}=t,s=o||this.routerState.root,d=i?this.currentUrlTree.fragment:c;let h=null;switch(n){case"merge":h={...this.currentUrlTree.queryParams,...l};break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=l||null}return null!==h&&(h=this.removeEmptyProps(h)),ny(s,this.currentUrlTree,e,h,d??null)}navigateByUrl(e,t={skipLocationChange:!1}){const o=ra(e)?e:this.parseUrl(e),l=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(l,"imperative",null,t)}navigate(e,t={skipLocationChange:!1}){return function _m(r){for(let a=0;a{const l=e[o];return null!=l&&(t[o]=l),t},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new oa(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.titleStrategy?.updateTitle(this.routerState.snapshot),e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,t,o,l,c){if(this.disposed)return Promise.resolve(!1);let n,i,s;c?(n=c.resolve,i=c.reject,s=c.promise):s=new Promise((f,b)=>{n=f,i=b});const d=++this.navigationId;let h;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(o=this.location.getState()),h=o&&o.\u0275routerPageId?o.\u0275routerPageId:l.replaceUrl||l.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):h=0,this.setTransition({id:d,targetPageId:h,source:t,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:l,resolve:n,reject:i,promise:s,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),s.catch(f=>Promise.reject(f))}setBrowserUrl(e,t){const o=this.urlSerializer.serialize(e),l={...t.extras.state,...this.generateNgRouterState(t.id,t.targetPageId)};this.location.isCurrentPathEqualTo(o)||t.extras.replaceUrl?this.location.replaceState(o,"",l):this.location.go(o,"",l)}restoreHistory(e,t=!1){if("computed"===this.canceledNavigationResolution){const o=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.currentNavigation?.finalUrl||0===o?this.currentUrlTree===this.currentNavigation?.finalUrl&&0===o&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(o)}else"replace"===this.canceledNavigationResolution&&(t&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,t,o){const l=new rn(e.id,this.serializeUrl(e.extractedUrl),t,o);this.triggerEvent(l),e.resolve(!1)}generateNgRouterState(e,t){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:t}:{navigationId:e}}}return r.\u0275fac=function(e){u.$Z()},r.\u0275prov=u.Yz7({token:r,factory:function(){return Wo()},providedIn:"root"}),r})();function Lu(r){return"imperative"!==r}let Fu=(()=>{class r{constructor(e,t,o,l,c){this.router=e,this.route=t,this.tabIndexAttribute=o,this.renderer=l,this.el=c,this.commands=null,this.onChanges=new Se.x,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(e){if(null!=this.tabIndexAttribute)return;const t=this.renderer,o=this.el.nativeElement;null!==e?t.setAttribute(o,"tabindex",e):t.removeAttribute(o,"tabindex")}ngOnChanges(e){this.onChanges.next(this)}set routerLink(e){null!=e?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const e={skipLocationChange:(0,u.D6c)(this.skipLocationChange),replaceUrl:(0,u.D6c)(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,e),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:(0,u.D6c)(this.preserveFragment)})}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(ni),u.Y36(Rn),u.$8M("tabindex"),u.Y36(u.Qsj),u.Y36(u.SBq))},r.\u0275dir=u.lG2({type:r,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(e,t){1&e&&u.NdJ("click",function(){return t.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[u.TTD]}),r})(),Nu=(()=>{class r{constructor(e,t,o){this.router=e,this.route=t,this.locationStrategy=o,this.commands=null,this.href=null,this.onChanges=new Se.x,this.subscription=e.events.subscribe(l=>{l instanceof oa&&this.updateTargetUrlAndHref()})}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:null}ngOnChanges(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(e,t,o,l,c){if(0!==e||t||o||l||c||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const n={skipLocationChange:(0,u.D6c)(this.skipLocationChange),replaceUrl:(0,u.D6c)(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,n),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:(0,u.D6c)(this.preserveFragment)})}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(ni),u.Y36(Rn),u.Y36(T.S$))},r.\u0275dir=u.lG2({type:r,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,t){1&e&&u.NdJ("click",function(l){return t.onClick(l.button,l.ctrlKey,l.shiftKey,l.altKey,l.metaKey)}),2&e&&u.uIk("target",t.target)("href",t.href,u.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[u.TTD]}),r})();class qc{}let tT=(()=>{class r{preload(e,t){return(0,De.of)(null)}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),$y=(()=>{class r{constructor(e,t,o,l,c){this.router=e,this.injector=o,this.preloadingStrategy=l,this.loader=c}setUpPreloading(){this.subscription=this.router.events.pipe((0,ti.h)(e=>e instanceof oa),(0,Gi.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,t){const o=[];for(const l of t){l.providers&&!l._injector&&(l._injector=(0,u.MMx)(l.providers,e,`Route: ${l.path}`));const c=l._injector??e,n=l._loadedInjector??c;l.loadChildren&&!l._loadedRoutes&&void 0===l.canLoad||l.loadComponent&&!l._loadedComponent?o.push(this.preloadConfig(c,l)):(l.children||l._loadedRoutes)&&o.push(this.processRoutes(n,l.children??l._loadedRoutes))}return(0,vi.D)(o).pipe((0,gt.J)())}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>{let o;o=t.loadChildren&&void 0===t.canLoad?this.loader.loadChildren(e,t):(0,De.of)(null);const l=o.pipe((0,xi.z)(c=>null===c?(0,De.of)(void 0):(t._loadedRoutes=c.routes,t._loadedInjector=c.injector,this.processRoutes(c.injector??e,c.routes))));if(t.loadComponent&&!t._loadedComponent){const c=this.loader.loadComponent(t);return(0,vi.D)([l,c]).pipe((0,gt.J)())}return l})}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(ni),u.LFG(u.Sil),u.LFG(u.lqb),u.LFG(qc),u.LFG(Ou))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac}),r})();const zu=new u.OlP("");let Yy=(()=>{class r{constructor(e,t,o={}){this.router=e,this.viewportScroller=t,this.options=o,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},o.scrollPositionRestoration=o.scrollPositionRestoration||"disabled",o.anchorScrolling=o.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(e=>{e instanceof Ac?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof oa&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof zs&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,t){this.router.triggerEvent(new zs(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return r.\u0275fac=function(e){u.$Z()},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac}),r})();const Cm=new u.OlP("ROUTER_FORROOT_GUARD"),Uu=new u.OlP(""),Wc=[T.Ye,{provide:bc,useClass:_u},{provide:ni,useFactory:Wo},Rc,{provide:Rn,useFactory:function ym(r){return r.routerState.root},deps:[ni]},Ou];function Gu(){return new u.PXZ("Router",ni)}let $c=(()=>{class r{constructor(e){}static forRoot(e,t){return{ngModule:r,providers:[Wc,[],Wu(e),{provide:Cm,useFactory:qu,deps:[[ni,new u.FiY,new u.tp0]]},{provide:Bu,useValue:t||{}},t?.useHash?{provide:T.S$,useClass:T.Do}:{provide:T.S$,useClass:T.b0},{provide:zu,useFactory:()=>{const r=(0,u.f3M)(ni),a=(0,u.f3M)(T.EM),e=(0,u.f3M)(Bu);return e.scrollOffset&&a.setOffset(e.scrollOffset),new Yy(r,a,e)}},t?.preloadingStrategy?Tm(t.preloadingStrategy):[],{provide:u.PXZ,multi:!0,useFactory:Gu},t?.initialNavigation?Ky(t):[],[{provide:vm,useFactory:Jy},{provide:u.tb,multi:!0,useExisting:vm}]]}}static forChild(e){return{ngModule:r,providers:[Wu(e)]}}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(Cm,8))},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({}),r})();function qu(r){return"guarded"}function Wu(r){return[{provide:Uc,multi:!0,useValue:r}]}function Jy(){const r=(0,u.f3M)(u.zs3);return a=>{const e=r.get(u.z2F);if(a!==e.components[0])return;const t=r.get(ni),o=r.get(Am);1===r.get(xm)&&t.initialNavigation(),r.get(Uu,null,u.XFs.Optional)?.setUpPreloading(),r.get(zu,null,u.XFs.Optional)?.init(),t.resetRootComponentType(e.componentTypes[0]),o.next(),o.complete()}}const vm=new u.OlP("");function Ky(r){return["disabled"===r.initialNavigation?[{provide:u.ip1,multi:!0,useFactory:()=>{const r=(0,u.f3M)(ni);return()=>{r.setUpLocationChangeListener()}}},{provide:xm,useValue:2}]:[],"enabledBlocking"===r.initialNavigation?[{provide:xm,useValue:0},{provide:u.ip1,multi:!0,deps:[u.zs3],useFactory:r=>{const a=r.get(T.V_,Promise.resolve(null));let e=!1;return()=>a.then(()=>new Promise(o=>{const l=r.get(ni),c=r.get(Am);(function t(o){r.get(ni).events.pipe((0,ti.h)(c=>c instanceof oa||c instanceof rn||c instanceof jf),(0,ze.U)(c=>c instanceof oa||c instanceof rn&&(0===c.code||1===c.code)&&null),(0,ti.h)(c=>null!==c),(0,Gt.q)(1)).subscribe(()=>{o()})})(()=>{o(!0),e=!0}),l.afterPreactivation=()=>(o(!0),e||c.closed?(0,De.of)(void 0):c),l.initialNavigation()}))}}]:[]]}const Am=new u.OlP("",{factory:()=>new Se.x}),xm=new u.OlP("",{providedIn:"root",factory:()=>1});function Tm(r){return[$y,{provide:Uu,useExisting:$y},{provide:qc,useExisting:r}]}let Yc;try{Yc=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Yc=!1}let Ja,Zt=(()=>{class r{constructor(e){this._platformId=e,this.isBrowser=this._platformId?(0,T.NF)(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&&!Yc)&&typeof CSS<"u"&&!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 r.\u0275fac=function(e){return new(e||r)(u.LFG(u.Lbi))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const Qc=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function tw(){if(Ja)return Ja;if("object"!=typeof document||!document)return Ja=new Set(Qc),Ja;let r=document.createElement("input");return Ja=new Set(Qc.filter(a=>(r.setAttribute("type",a),r.type===a))),Ja}let tl,il,an,$o;function kn(r){return function Yu(){if(null==tl&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>tl=!0}))}finally{tl=tl||!1}return tl}()?r:!!r.capture}function Em(){if(null==an){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return an=!1,an;if("scrollBehavior"in document.documentElement.style)an=!0;else{const r=Element.prototype.scrollTo;an=!!r&&!/\{\s*\[native code\]\s*\}/.test(r.toString())}}return an}function Ka(){if("object"!=typeof document||!document)return 0;if(null==il){const r=document.createElement("div"),a=r.style;r.dir="rtl",a.width="1px",a.overflow="auto",a.visibility="hidden",a.pointerEvents="none",a.position="absolute";const e=document.createElement("div"),t=e.style;t.width="2px",t.height="1px",r.appendChild(e),document.body.appendChild(r),il=0,0===r.scrollLeft&&(r.scrollLeft=1,il=0===r.scrollLeft?1:2),r.remove()}return il}function Yo(r){if(function iw(){if(null==$o){const r=typeof document<"u"?document.head:null;$o=!(!r||!r.createShadowRoot&&!r.attachShadow)}return $o}()){const a=r.getRootNode?r.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&a instanceof ShadowRoot)return a}return null}function Qo(){let r=typeof document<"u"&&document?document.activeElement:null;for(;r&&r.shadowRoot;){const a=r.shadowRoot.activeElement;if(a===r)break;r=a}return r}function Ti(r){return r.composedPath?r.composedPath()[0]:r.target}function Jc(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function nr(r,...a){return a.length?a.some(e=>r[e]):r.altKey||r.shiftKey||r.ctrlKey||r.metaKey}var al=x(8372);function Wm(r){return(0,ti.h)((a,e)=>r<=e)}function $m(r,a=le.y){return r=r??Ym,(0,nn.e)((e,t)=>{let o,l=!0;e.subscribe((0,Li.x)(t,c=>{const n=a(c);(l||!r(o,n))&&(l=!1,o=n,t.next(c))}))})}function Ym(r,a){return r===a}var Qm=x(5032);function st(r){return(0,nn.e)((a,e)=>{(0,Qn.Xf)(r).subscribe((0,Li.x)(e,()=>e.complete(),Qm.Z)),!e.closed&&a.subscribe(e)})}function Ze(r){return null!=r&&"false"!=`${r}`}function Ci(r,a=0){return Jm(r)?Number(r):a}function Jm(r){return!isNaN(parseFloat(r))&&!isNaN(Number(r))}function Zu(r){return Array.isArray(r)?r:[r]}function Wt(r){return null==r?"":"string"==typeof r?r:`${r}px`}function ai(r){return r instanceof u.SBq?r.nativeElement:r}let Xu=(()=>{class r{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Km=(()=>{class r{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,t)=>this._cleanupObserver(t))}observe(e){const t=ai(e);return new bi.y(o=>{const c=this._observeElement(t).subscribe(o);return()=>{c.unsubscribe(),this._unobserveElement(t)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const t=new Se.x,o=this._mutationObserverFactory.create(l=>t.next(l));o&&o.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:o,stream:t,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:t,stream:o}=this._observedElements.get(e);t&&t.disconnect(),o.complete(),this._observedElements.delete(e)}}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(Xu))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),ol=(()=>{class r{constructor(e,t,o){this._contentObserver=e,this._elementRef=t,this._ngZone=o,this.event=new u.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=Ze(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=Ci(e),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe((0,al.b)(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(Km),u.Y36(u.SBq),u.Y36(u.R0b))},r.\u0275dir=u.lG2({type:r,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),r})(),Jo=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({providers:[Xu]}),r})();const sl=new Set;let Xa,th=(()=>{class r{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):ih}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function Zm(r){if(!sl.has(r))try{Xa||(Xa=document.createElement("style"),Xa.setAttribute("type","text/css"),document.head.appendChild(Xa)),Xa.sheet&&(Xa.sheet.insertRule(`@media ${r} {body{ }}`,0),sl.add(r))}catch(a){console.error(a)}}(e),this._matchMedia(e)}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(Zt))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();function ih(r){return{matches:"all"===r||""===r,media:r,addListener:()=>{},removeListener:()=>{}}}let Ko=(()=>{class r{constructor(e,t){this._mediaMatcher=e,this._zone=t,this._queries=new Map,this._destroySubject=new Se.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return Xm(Zu(e)).some(o=>this._registerQuery(o).mql.matches)}observe(e){const o=Xm(Zu(e)).map(c=>this._registerQuery(c).observable);let l=(0,Xr.a)(o);return l=(0,ea.z)(l.pipe((0,Gt.q)(1)),l.pipe(Wm(1),(0,al.b)(0))),l.pipe((0,ze.U)(c=>{const n={matches:!1,breakpoints:{}};return c.forEach(({matches:i,query:s})=>{n.matches=n.matches||i,n.breakpoints[s]=i}),n}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const t=this._mediaMatcher.matchMedia(e),l={observable:new bi.y(c=>{const n=i=>this._zone.run(()=>c.next(i));return t.addListener(n),()=>{t.removeListener(n)}}).pipe(It(t),(0,ze.U)(({matches:c})=>({query:e,matches:c})),st(this._destroySubject)),mql:t};return this._queries.set(e,l),l}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(th),u.LFG(u.R0b))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();function Xm(r){return r.map(a=>a.split(",")).reduce((a,e)=>a.concat(e)).map(a=>a.trim())}function Zo(r,a){return(r.getAttribute(a)||"").match(/\S+/g)||[]}const Vw="cdk-describedby-message",ll="cdk-describedby-host";let nh=0,rh=(()=>{class r{constructor(e,t){this._platform=t,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+nh++,this._document=e,this._id=(0,u.f3M)(u.AFp)+"-"+nh++}describe(e,t,o){if(!this._canBeDescribed(e,t))return;const l=ah(t,o);"string"!=typeof t?(ng(t,this._id),this._messageRegistry.set(l,{messageElement:t,referenceCount:0})):this._messageRegistry.has(l)||this._createMessageElement(t,o),this._isElementDescribedByMessage(e,l)||this._addMessageReference(e,l)}removeDescription(e,t,o){if(!t||!this._isElementNode(e))return;const l=ah(t,o);if(this._isElementDescribedByMessage(e,l)&&this._removeMessageReference(e,l),"string"==typeof t){const c=this._messageRegistry.get(l);c&&0===c.referenceCount&&this._deleteMessageElement(l)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const e=this._document.querySelectorAll(`[${ll}="${this._id}"]`);for(let t=0;t0!=o.indexOf(Vw));e.setAttribute("aria-describedby",t.join(" "))}_addMessageReference(e,t){const o=this._messageRegistry.get(t);(function Iw(r,a,e){const t=Zo(r,a);t.some(o=>o.trim()==e.trim())||(t.push(e.trim()),r.setAttribute(a,t.join(" ")))})(e,"aria-describedby",o.messageElement.id),e.setAttribute(ll,this._id),o.referenceCount++}_removeMessageReference(e,t){const o=this._messageRegistry.get(t);o.referenceCount--,function ig(r,a,e){const o=Zo(r,a).filter(l=>l!=e.trim());o.length?r.setAttribute(a,o.join(" ")):r.removeAttribute(a)}(e,"aria-describedby",o.messageElement.id),e.removeAttribute(ll)}_isElementDescribedByMessage(e,t){const o=Zo(e,"aria-describedby"),l=this._messageRegistry.get(t),c=l&&l.messageElement.id;return!!c&&-1!=o.indexOf(c)}_canBeDescribed(e,t){if(!this._isElementNode(e))return!1;if(t&&"object"==typeof t)return!0;const o=null==t?"":`${t}`.trim(),l=e.getAttribute("aria-label");return!(!o||l&&l.trim()===o)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(T.K0),u.LFG(Zt))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();function ah(r,a){return"string"==typeof r?`${a||""}/${r}`:r}function ng(r,a){r.id||(r.id=`${Vw}-${a}-${nh++}`)}class id extends class Vn{constructor(a){this._items=a,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new Se.x,this._typeaheadSubscription=Ft.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new Se.x,this.change=new Se.x,a instanceof u.n_E&&a.changes.subscribe(e=>{if(this._activeItem){const o=e.toArray().indexOf(this._activeItem);o>-1&&o!==this._activeItemIndex&&(this._activeItemIndex=o)}})}skipPredicate(a){return this._skipPredicateFn=a,this}withWrap(a=!0){return this._wrap=a,this}withVerticalOrientation(a=!0){return this._vertical=a,this}withHorizontalOrientation(a){return this._horizontal=a,this}withAllowedModifierKeys(a){return this._allowedModifierKeys=a,this}withTypeAhead(a=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,bt.b)(e=>this._pressedLetters.push(e)),(0,al.b)(a),(0,ti.h)(()=>this._pressedLetters.length>0),(0,ze.U)(()=>this._pressedLetters.join(""))).subscribe(e=>{const t=this._getItemsArray();for(let o=1;o!a[l]||this._allowedModifierKeys.indexOf(l)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&o){this.setNextItemActive();break}return;case 38:if(this._vertical&&o){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&o){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&o){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&o){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&o){this.setLastItemActive();break}return;default:return void((o||nr(a,"shiftKey"))&&(a.key&&1===a.key.length?this._letterKeyStream.next(a.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],a.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(a){const e=this._getItemsArray(),t="number"==typeof a?a:e.indexOf(a);this._activeItem=e[t]??null,this._activeItemIndex=t}_setActiveItemByDelta(a){this._wrap?this._setActiveInWrapMode(a):this._setActiveInDefaultMode(a)}_setActiveInWrapMode(a){const e=this._getItemsArray();for(let t=1;t<=e.length;t++){const o=(this._activeItemIndex+a*t+e.length)%e.length;if(!this._skipPredicateFn(e[o]))return void this.setActiveItem(o)}}_setActiveInDefaultMode(a){this._setActiveItemByIndex(this._activeItemIndex+a,a)}_setActiveItemByIndex(a,e){const t=this._getItemsArray();if(t[a]){for(;this._skipPredicateFn(t[a]);)if(!t[a+=e])return;this.setActiveItem(a)}}_getItemsArray(){return this._items instanceof u.n_E?this._items.toArray():this._items}}{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(a){return this._origin=a,this}setActiveItem(a){super.setActiveItem(a),this.activeItem&&this.activeItem.focus(this._origin)}}let nd=(()=>{class r{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function Ow(r){return!!(r.offsetWidth||r.offsetHeight||"function"==typeof r.getClientRects&&r.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const t=function Bw(r){try{return r.frameElement}catch{return null}}(function zw(r){return r.ownerDocument&&r.ownerDocument.defaultView||window}(e));if(t&&(-1===sh(t)||!this.isVisible(t)))return!1;let o=e.nodeName.toLowerCase(),l=sh(e);return e.hasAttribute("contenteditable")?-1!==l:!("iframe"===o||"object"===o||this._platform.WEBKIT&&this._platform.IOS&&!function ag(r){let a=r.nodeName.toLowerCase(),e="input"===a&&r.type;return"text"===e||"password"===e||"select"===a||"textarea"===a}(e))&&("audio"===o?!!e.hasAttribute("controls")&&-1!==l:"video"===o?-1!==l&&(null!==l||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,t){return function jw(r){return!function Lw(r){return function Nw(r){return"input"==r.nodeName.toLowerCase()}(r)&&"hidden"==r.type}(r)&&(function rg(r){let a=r.nodeName.toLowerCase();return"input"===a||"select"===a||"button"===a||"textarea"===a}(r)||function Fw(r){return function lt(r){return"a"==r.nodeName.toLowerCase()}(r)&&r.hasAttribute("href")}(r)||r.hasAttribute("contenteditable")||oh(r))}(e)&&!this.isDisabled(e)&&(t?.ignoreVisibility||this.isVisible(e))}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(Zt))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();function oh(r){if(!r.hasAttribute("tabindex")||void 0===r.tabIndex)return!1;let a=r.getAttribute("tabindex");return!(!a||isNaN(parseInt(a,10)))}function sh(r){if(!oh(r))return null;const a=parseInt(r.getAttribute("tabindex")||"",10);return isNaN(a)?-1:a}class og{constructor(a,e,t,o,l=!1){this._element=a,this._checker=e,this._ngZone=t,this._document=o,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,l||this.attachAnchors()}get enabled(){return this._enabled}set enabled(a){this._enabled=a,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(a,this._startAnchor),this._toggleAnchorTabIndex(a,this._endAnchor))}destroy(){const a=this._startAnchor,e=this._endAnchor;a&&(a.removeEventListener("focus",this.startAnchorListener),a.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),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(a){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(a)))})}focusFirstTabbableElementWhenReady(a){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(a)))})}focusLastTabbableElementWhenReady(a){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(a)))})}_getRegionBoundary(a){const e=this._element.querySelectorAll(`[cdk-focus-region-${a}], [cdkFocusRegion${a}], [cdk-focus-${a}]`);return"start"==a?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(a){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const t=this._getFirstTabbableElement(e);return t?.focus(a),!!t}return e.focus(a),!0}return this.focusFirstTabbableElement(a)}focusFirstTabbableElement(a){const e=this._getRegionBoundary("start");return e&&e.focus(a),!!e}focusLastTabbableElement(a){const e=this._getRegionBoundary("end");return e&&e.focus(a),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(a){if(this._checker.isFocusable(a)&&this._checker.isTabbable(a))return a;const e=a.children;for(let t=0;t=0;t--){const o=e[t].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[t]):null;if(o)return o}return null}_createAnchor(){const a=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,a),a.classList.add("cdk-visually-hidden"),a.classList.add("cdk-focus-trap-anchor"),a.setAttribute("aria-hidden","true"),a}_toggleAnchorTabIndex(a,e){a?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(a){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(a,this._startAnchor),this._toggleAnchorTabIndex(a,this._endAnchor))}_executeOnStable(a){this._ngZone.isStable?a():this._ngZone.onStable.pipe((0,Gt.q)(1)).subscribe(a)}}let lh=(()=>{class r{constructor(e,t,o){this._checker=e,this._ngZone=t,this._document=o}create(e,t=!1){return new og(e,this._checker,this._ngZone,this._document,t)}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(nd),u.LFG(u.R0b),u.LFG(T.K0))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();function rr(r){return 0===r.buttons||0===r.offsetX&&0===r.offsetY}function rd(r){const a=r.touches&&r.touches[0]||r.changedTouches&&r.changedTouches[0];return!(!a||-1!==a.identifier||null!=a.radiusX&&1!==a.radiusX||null!=a.radiusY&&1!==a.radiusY)}const ch=new u.OlP("cdk-input-modality-detector-options"),dh={ignoreKeys:[18,17,224,91,16]},cl=kn({passive:!0,capture:!0});let KT=(()=>{class r{constructor(e,t,o,l){this._platform=e,this._mostRecentTarget=null,this._modality=new Yt(null),this._lastTouchMs=0,this._onKeydown=c=>{this._options?.ignoreKeys?.some(n=>n===c.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Ti(c))},this._onMousedown=c=>{Date.now()-this._lastTouchMs<650||(this._modality.next(rr(c)?"keyboard":"mouse"),this._mostRecentTarget=Ti(c))},this._onTouchstart=c=>{rd(c)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Ti(c))},this._options={...dh,...l},this.modalityDetected=this._modality.pipe(Wm(1)),this.modalityChanged=this.modalityDetected.pipe($m()),e.isBrowser&&t.runOutsideAngular(()=>{o.addEventListener("keydown",this._onKeydown,cl),o.addEventListener("mousedown",this._onMousedown,cl),o.addEventListener("touchstart",this._onTouchstart,cl)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,cl),document.removeEventListener("mousedown",this._onMousedown,cl),document.removeEventListener("touchstart",this._onTouchstart,cl))}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(Zt),u.LFG(u.R0b),u.LFG(T.K0),u.LFG(ch,8))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const Xo=new u.OlP("cdk-focus-monitor-default-options"),ad=kn({passive:!0,capture:!0});let yn=(()=>{class r{constructor(e,t,o,l,c){this._ngZone=e,this._platform=t,this._inputModalityDetector=o,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new Se.x,this._rootNodeFocusAndBlurListener=n=>{for(let s=Ti(n);s;s=s.parentElement)"focus"===n.type?this._onFocus(n,s):this._onBlur(n,s)},this._document=l,this._detectionMode=c?.detectionMode||0}monitor(e,t=!1){const o=ai(e);if(!this._platform.isBrowser||1!==o.nodeType)return(0,De.of)(null);const l=Yo(o)||this._getDocument(),c=this._elementInfo.get(o);if(c)return t&&(c.checkChildren=!0),c.subject;const n={checkChildren:t,subject:new Se.x,rootNode:l};return this._elementInfo.set(o,n),this._registerGlobalListeners(n),n.subject}stopMonitoring(e){const t=ai(e),o=this._elementInfo.get(t);o&&(o.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(o))}focusVia(e,t,o){const l=ai(e);l===this._getDocument().activeElement?this._getClosestElementsInfo(l).forEach(([n,i])=>this._originChanged(n,t,i)):(this._setOrigin(t),"function"==typeof l.focus&&l.focus(o))}ngOnDestroy(){this._elementInfo.forEach((e,t)=>this.stopMonitoring(t))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,t){e.classList.toggle("cdk-focused",!!t),e.classList.toggle("cdk-touch-focused","touch"===t),e.classList.toggle("cdk-keyboard-focused","keyboard"===t),e.classList.toggle("cdk-mouse-focused","mouse"===t),e.classList.toggle("cdk-program-focused","program"===t)}_setOrigin(e,t=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&t,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,t){const o=this._elementInfo.get(t),l=Ti(e);!o||!o.checkChildren&&t!==l||this._originChanged(t,this._getFocusOrigin(l),o)}_onBlur(e,t){const o=this._elementInfo.get(t);!o||o.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(o,null))}_emitOrigin(e,t){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(t))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const t=e.rootNode,o=this._rootNodeFocusListenerCount.get(t)||0;o||this._ngZone.runOutsideAngular(()=>{t.addEventListener("focus",this._rootNodeFocusAndBlurListener,ad),t.addEventListener("blur",this._rootNodeFocusAndBlurListener,ad)}),this._rootNodeFocusListenerCount.set(t,o+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(st(this._stopInputModalityDetector)).subscribe(l=>{this._setOrigin(l,!0)}))}_removeGlobalListeners(e){const t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){const o=this._rootNodeFocusListenerCount.get(t);o>1?this._rootNodeFocusListenerCount.set(t,o-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,ad),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,ad),this._rootNodeFocusListenerCount.delete(t))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,t,o){this._setClasses(e,t),this._emitOrigin(o,t),this._lastFocusOrigin=t}_getClosestElementsInfo(e){const t=[];return this._elementInfo.forEach((o,l)=>{(l===e||o.checkChildren&&l.contains(e))&&t.push([l,o])}),t}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:t,mostRecentModality:o}=this._inputModalityDetector;if("mouse"!==o||!t||t===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const l=e.labels;if(l)for(let c=0;c{class r{constructor(e,t){this._platform=e,this._document=t,this._breakpointSubscription=(0,u.f3M)(Ko).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const t=this._document.defaultView||window,o=t&&t.getComputedStyle?t.getComputedStyle(e):null,l=(o&&o.backgroundColor||"").replace(/ /g,"");switch(e.remove(),l){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(ph,lg,hh),this._hasCheckedHighContrastMode=!0;const t=this.getHighContrastMode();1===t?e.add(ph,lg):2===t&&e.add(ph,hh)}}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(Zt),u.LFG(T.K0))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),dl=(()=>{class r{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(cg))},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({imports:[Jo]}),r})();const Yw=new u.OlP("cdk-dir-doc",{providedIn:"root",factory:function Qw(){return(0,u.f3M)(T.K0)}}),dg=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let on=(()=>{class r{constructor(e){if(this.value="ltr",this.change=new u.vpe,e){const o=e.documentElement?e.documentElement.dir:null;this.value=function Jw(r){const a=r?.toLowerCase()||"";return"auto"===a&&typeof navigator<"u"&&navigator?.language?dg.test(navigator.language)?"rtl":"ltr":"rtl"===a?"rtl":"ltr"}((e.body?e.body.dir:null)||o||"ltr")}}ngOnDestroy(){this.change.complete()}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(Yw,8))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),ga=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({}),r})();const ev=new u.OlP("mat-sanity-checks",{providedIn:"root",factory:function hg(){return!0}});let qe=(()=>{class r{constructor(e,t,o){this._sanityChecks=t,this._document=o,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!Jc()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(cg),u.LFG(ev,8),u.LFG(T.K0))},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({imports:[ga,ga]}),r})();function ba(r){return class extends r{constructor(...a){super(...a),this._disabled=!1}get disabled(){return this._disabled}set disabled(a){this._disabled=Ze(a)}}}function eo(r,a){return class extends r{constructor(...e){super(...e),this.defaultColor=a,this.color=a}get color(){return this._color}set color(e){const t=e||this.defaultColor;t!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),t&&this._elementRef.nativeElement.classList.add(`mat-${t}`),this._color=t)}}}function Sr(r){return class extends r{constructor(...a){super(...a),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(a){this._disableRipple=Ze(a)}}}function hl(r){return class extends r{constructor(...a){super(...a),this.errorState=!1}updateErrorState(){const a=this.errorState,l=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);l!==a&&(this.errorState=l,this.stateChanges.next())}}}const gh=new u.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function _h(){return(0,u.f3M)(u.soG)}});class sn{constructor(){this._localeChanges=new Se.x,this.localeChanges=this._localeChanges}getValidDateOrNull(a){return this.isDateInstance(a)&&this.isValid(a)?a:null}deserialize(a){return null==a||this.isDateInstance(a)&&this.isValid(a)?a:this.invalid()}setLocale(a){this.locale=a,this._localeChanges.next()}compareDate(a,e){return this.getYear(a)-this.getYear(e)||this.getMonth(a)-this.getMonth(e)||this.getDate(a)-this.getDate(e)}sameDate(a,e){if(a&&e){let t=this.isValid(a),o=this.isValid(e);return t&&o?!this.compareDate(a,e):t==o}return a==e}clampDate(a,e,t){return e&&this.compareDate(a,e)<0?e:t&&this.compareDate(a,t)>0?t:a}}const bh=new u.OlP("mat-date-formats"),iv=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Ch(r,a){const e=Array(r);for(let t=0;t{class r extends sn{constructor(e,t){super(),this.useUtcForDisplay=!1,super.setLocale(e)}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){const t=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return Ch(12,o=>this._format(t,new Date(2017,o,1)))}getDateNames(){const e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Ch(31,t=>this._format(e,new Date(2017,0,t+1)))}getDayOfWeekNames(e){const t=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return Ch(7,o=>this._format(t,new Date(2017,0,o+1)))}getYearName(e){const t=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(t,e)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,t,o){let l=this._createDateWithOverflow(e,t,o);return l.getMonth(),l}today(){return new Date}parse(e,t){return"number"==typeof e?new Date(e):e?new Date(Date.parse(e)):null}format(e,t){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");const o=new Intl.DateTimeFormat(this.locale,{...t,timeZone:"utc"});return this._format(o,e)}addCalendarYears(e,t){return this.addCalendarMonths(e,12*t)}addCalendarMonths(e,t){let o=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+t,this.getDate(e));return this.getMonth(o)!=((this.getMonth(e)+t)%12+12)%12&&(o=this._createDateWithOverflow(this.getYear(o),this.getMonth(o),0)),o}addCalendarDays(e,t){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+t)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if("string"==typeof e){if(!e)return null;if(iv.test(e)){let t=new Date(e);if(this.isValid(t))return t}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(e,t,o){const l=new Date;return l.setFullYear(e,t,o),l.setHours(0,0,0,0),l}_2digit(e){return("00"+e).slice(-2)}_format(e,t){const o=new Date;return o.setUTCFullYear(t.getFullYear(),t.getMonth(),t.getDate()),o.setUTCHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e.format(o)}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(gh,8),u.LFG(Zt))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac}),r})();const nv={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 mg=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({providers:[{provide:sn,useClass:fg}]}),r})(),rv=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({providers:[{provide:bh,useValue:nv}],imports:[mg]}),r})(),ld=(()=>{class r{isErrorState(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),es=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({imports:[qe,qe]}),r})();class tE{constructor(a,e,t,o=!1){this._renderer=a,this.element=e,this.config=t,this._animationForciblyDisabledThroughCss=o,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const av={enterDuration:225,exitDuration:150},bg=kn({passive:!0}),ov=["mousedown","touchstart"],sv=["mouseup","mouseleave","touchend","touchcancel"];class lv{constructor(a,e,t,o){this._target=a,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,o.isBrowser&&(this._containerElement=ai(t))}fadeInRipple(a,e,t={}){const o=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),l={...av,...t.animation};t.centered&&(a=o.left+o.width/2,e=o.top+o.height/2);const c=t.radius||function nE(r,a,e){const t=Math.max(Math.abs(r-e.left),Math.abs(r-e.right)),o=Math.max(Math.abs(a-e.top),Math.abs(a-e.bottom));return Math.sqrt(t*t+o*o)}(a,e,o),n=a-o.left,i=e-o.top,s=l.enterDuration,d=document.createElement("div");d.classList.add("mat-ripple-element"),d.style.left=n-c+"px",d.style.top=i-c+"px",d.style.height=2*c+"px",d.style.width=2*c+"px",null!=t.color&&(d.style.backgroundColor=t.color),d.style.transitionDuration=`${s}ms`,this._containerElement.appendChild(d);const h=window.getComputedStyle(d),b=h.transitionDuration,H="none"===h.transitionProperty||"0s"===b||"0s, 0s"===b,j=new tE(this,d,t,H);d.style.transform="scale3d(1, 1, 1)",j.state=0,t.persistent||(this._mostRecentTransientRipple=j);let ae=null;return!H&&(s||l.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const ke=()=>this._finishRippleTransition(j),ct=()=>this._destroyRipple(j);d.addEventListener("transitionend",ke),d.addEventListener("transitioncancel",ct),ae={onTransitionEnd:ke,onTransitionCancel:ct}}),this._activeRipples.set(j,ae),(H||!s)&&this._finishRippleTransition(j),j}fadeOutRipple(a){if(2===a.state||3===a.state)return;const e=a.element,t={...av,...a.config.animation};e.style.transitionDuration=`${t.exitDuration}ms`,e.style.opacity="0",a.state=2,(a._animationForciblyDisabledThroughCss||!t.exitDuration)&&this._finishRippleTransition(a)}fadeOutAll(){this._getActiveRipples().forEach(a=>a.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(a=>{a.config.persistent||a.fadeOut()})}setupTriggerEvents(a){const e=ai(a);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(ov))}handleEvent(a){"mousedown"===a.type?this._onMousedown(a):"touchstart"===a.type?this._onTouchStart(a):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(sv),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(a){0===a.state?this._startFadeOutTransition(a):2===a.state&&this._destroyRipple(a)}_startFadeOutTransition(a){const e=a===this._mostRecentTransientRipple,{persistent:t}=a.config;a.state=1,!t&&(!e||!this._isPointerDown)&&a.fadeOut()}_destroyRipple(a){const e=this._activeRipples.get(a)??null;this._activeRipples.delete(a),this._activeRipples.size||(this._containerRect=null),a===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),a.state=3,null!==e&&(a.element.removeEventListener("transitionend",e.onTransitionEnd),a.element.removeEventListener("transitioncancel",e.onTransitionCancel)),a.element.remove()}_onMousedown(a){const e=rr(a),t=this._lastTouchStartEvent&&Date.now(){!a.config.persistent&&(1===a.state||a.config.terminateOnPointerUp&&0===a.state)&&a.fadeOut()}))}_registerEvents(a){this._ngZone.runOutsideAngular(()=>{a.forEach(e=>{this._triggerElement.addEventListener(e,this,bg)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(ov.forEach(a=>{this._triggerElement.removeEventListener(a,this,bg)}),this._pointerUpEventsRegistered&&sv.forEach(a=>{this._triggerElement.removeEventListener(a,this,bg)}))}}const cv=new u.OlP("mat-ripple-global-options");let to=(()=>{class r{constructor(e,t,o,l,c){this._elementRef=e,this._animationMode=c,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=l||{},this._rippleRenderer=new lv(this,t,e,o)}get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...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(e,t=0,o){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,{...this.rippleConfig,...o}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...e})}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(u.SBq),u.Y36(u.R0b),u.Y36(Zt),u.Y36(cv,8),u.Y36(u.QbO,8))},r.\u0275dir=u.lG2({type:r,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&u.ekj("mat-ripple-unbounded",t.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),r})(),pi=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({imports:[qe,qe]}),r})(),wh=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({imports:[qe]}),r})(),vh=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({imports:[pi,T.ez,qe,wh]}),r})();const cd=["mat-button",""],ts=["*"],dd=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],fl=eo(ba(Sr(class{constructor(r){this._elementRef=r}})));let ji=(()=>{class r extends fl{constructor(e,t,o){super(e),this._focusMonitor=t,this._animationMode=o,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const l of dd)this._hasHostAttributes(l)&&this._getHostElement().classList.add(l);e.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(e,t){e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...e){return e.some(t=>this._getHostElement().hasAttribute(t))}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(u.SBq),u.Y36(yn),u.Y36(u.QbO,8))},r.\u0275cmp=u.Xpm({type:r,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(e,t){if(1&e&&u.Gf(to,5),2&e){let o;u.iGM(o=u.CRH())&&(t.ripple=o.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,t){2&e&&(u.uIk("disabled",t.disabled||null),u.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-button-disabled",t.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[u.qOj],attrs:cd,ngContentSelectors:ts,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(e,t){1&e&&(u.F$t(),u.TgZ(0,"span",0),u.Hsn(1),u.qZA(),u._UZ(2,"span",1)(3,"span",2)),2&e&&(u.xp6(2),u.ekj("mat-button-ripple-round",t.isRoundButton||t.isIconButton),u.Q6J("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",t.isIconButton)("matRippleTrigger",t._getHostElement()))},dependencies:[to],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.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;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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-fab._mat-animation-noopable{transition:none !important;animation:none !important}.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;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.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:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.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}"],encapsulation:2,changeDetection:0}),r})(),On=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({imports:[pi,qe,qe]}),r})();var Ah=x(1144),Ln=x(576),xh=x(3268);const Th=["addListener","removeListener"],mv=["addEventListener","removeEventListener"],lE=["on","off"];function ns(r,a,e,t){if((0,Ln.m)(e)&&(t=e,e=void 0),t)return ns(r,a,e).pipe((0,xh.Z)(t));const[o,l]=function xg(r){return(0,Ln.m)(r.addEventListener)&&(0,Ln.m)(r.removeEventListener)}(r)?mv.map(c=>n=>r[c](a,n,e)):function gv(r){return(0,Ln.m)(r.addListener)&&(0,Ln.m)(r.removeListener)}(r)?Th.map(Eh(r,a)):function Ag(r){return(0,Ln.m)(r.on)&&(0,Ln.m)(r.off)}(r)?lE.map(Eh(r,a)):[];if(!o&&(0,Ah.z)(r))return(0,xi.z)(c=>ns(c,a,e))((0,Qn.Xf)(r));if(!o)throw new TypeError("Invalid event target");return new bi.y(c=>{const n=(...i)=>c.next(1l(n)})}function Eh(r,a){return e=>t=>r[e](a,t)}var Tg=x(4408);const Ei={schedule(r){let a=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:t}=Ei;t&&(a=t.requestAnimationFrame,e=t.cancelAnimationFrame);const o=a(l=>{e=void 0,r(l)});return new Ft.w0(()=>e?.(o))},requestAnimationFrame(...r){const{delegate:a}=Ei;return(a?.requestAnimationFrame||requestAnimationFrame)(...r)},cancelAnimationFrame(...r){const{delegate:a}=Ei;return(a?.cancelAnimationFrame||cancelAnimationFrame)(...r)},delegate:void 0};var Sg=x(7565);const Mg=new class cE extends Sg.v{flush(a){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:t}=this;let o;a=a||t.shift();do{if(o=a.execute(a.state,a.delay))break}while((a=t[0])&&a.id===e&&t.shift());if(this._active=!1,o){for(;(a=t[0])&&a.id===e&&t.shift();)a.unsubscribe();throw o}}}(class Eg extends Tg.o{constructor(a,e){super(a,e),this.scheduler=a,this.work=e}requestAsyncId(a,e,t=0){return null!==t&&t>0?super.requestAsyncId(a,e,t):(a.actions.push(this),a._scheduled||(a._scheduled=Ei.requestAnimationFrame(()=>a.flush(void 0))))}recycleAsyncId(a,e,t=0){if(null!=t&&t>0||null==t&&this.delay>0)return super.recycleAsyncId(a,e,t);a.actions.some(o=>o.id===e)||(Ei.cancelAnimationFrame(e),a._scheduled=void 0)}});let Sh,Hg=1;const ud={};function Pg(r){return r in ud&&(delete ud[r],!0)}const Rg={setImmediate(r){const a=Hg++;return ud[a]=!0,Sh||(Sh=Promise.resolve()),Sh.then(()=>Pg(a)&&r()),a},clearImmediate(r){Pg(r)}},{setImmediate:Ig,clearImmediate:_v}=Rg,hd={setImmediate(...r){const{delegate:a}=hd;return(a?.setImmediate||Ig)(...r)},clearImmediate(r){const{delegate:a}=hd;return(a?.clearImmediate||_v)(r)},delegate:void 0},Mh=new class Vg extends Sg.v{flush(a){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:t}=this;let o;a=a||t.shift();do{if(o=a.execute(a.state,a.delay))break}while((a=t[0])&&a.id===e&&t.shift());if(this._active=!1,o){for(;(a=t[0])&&a.id===e&&t.shift();)a.unsubscribe();throw o}}}(class kg extends Tg.o{constructor(a,e){super(a,e),this.scheduler=a,this.work=e}requestAsyncId(a,e,t=0){return null!==t&&t>0?super.requestAsyncId(a,e,t):(a.actions.push(this),a._scheduled||(a._scheduled=hd.setImmediate(a.flush.bind(a,void 0))))}recycleAsyncId(a,e,t=0){if(null!=t&&t>0||null==t&&this.delay>0)return super.recycleAsyncId(a,e,t);a.actions.some(o=>o.id===e)||(hd.clearImmediate(e),a._scheduled=void 0)}});function Yi(r){return!!r&&(r instanceof bi.y||(0,Ln.m)(r.lift)&&(0,Ln.m)(r.subscribe))}var Bg=x(4986),Cv=x(2805);function ml(r,a=Bg.z){return function bv(r){return(0,nn.e)((a,e)=>{let t=!1,o=null,l=null,c=!1;const n=()=>{if(l?.unsubscribe(),l=null,t){t=!1;const s=o;o=null,e.next(s)}c&&e.complete()},i=()=>{l=null,c&&e.complete()};a.subscribe((0,Li.x)(e,s=>{t=!0,o=s,l||(0,Qn.Xf)(r(s)).subscribe(l=(0,Li.x)(e,n,i))},()=>{c=!0,(!t||!l||l.closed)&&e.complete()}))})}(()=>(0,Cv.H)(r,a))}var wv=x(6063);class vv extends Se.x{constructor(a=1/0,e=1/0,t=wv.l){super(),this._bufferSize=a,this._windowTime=e,this._timestampProvider=t,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,a),this._windowTime=Math.max(1,e)}next(a){const{isStopped:e,_buffer:t,_infiniteTimeWindow:o,_timestampProvider:l,_windowTime:c}=this;e||(t.push(a),!o&&t.push(l.now()+c)),this._trimBuffer(),super.next(a)}_subscribe(a){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(a),{_infiniteTimeWindow:t,_buffer:o}=this,l=o.slice();for(let c=0;cnew vv(t,a,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}class Og{}function Ca(r){return r&&"function"==typeof r.connect}class Hh extends Og{constructor(a){super(),this._data=a}connect(){return Yi(this._data)?this._data:(0,De.of)(this._data)}disconnect(){}}class Lg{applyChanges(a,e,t,o,l){a.forEachOperation((c,n,i)=>{let s,d;if(null==c.previousIndex){const h=t(c,n,i);s=e.createEmbeddedView(h.templateRef,h.context,h.index),d=1}else null==i?(e.remove(n),d=3):(s=e.get(n),e.move(s,i),d=2);l&&l({context:s?.context,operation:d,record:c})})}detach(){}}class fd{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(a,e,t,o,l){a.forEachOperation((c,n,i)=>{let s,d;null==c.previousIndex?(s=this._insertView(()=>t(c,n,i),i,e,o(c)),d=s?1:0):null==i?(this._detachAndCacheView(n,e),d=3):(s=this._moveView(n,i,e,o(c)),d=2),l&&l({context:s?.context,operation:d,record:c})})}detach(){for(const a of this._viewCache)a.destroy();this._viewCache=[]}_insertView(a,e,t,o){const l=this._insertViewFromCache(e,t);if(l)return void(l.context.$implicit=o);const c=a();return t.createEmbeddedView(c.templateRef,c.context,c.index)}_detachAndCacheView(a,e){const t=e.detach(a);this._maybeCacheView(t,e)}_moveView(a,e,t,o){const l=t.get(a);return t.move(l,e),l.context.$implicit=o,l}_maybeCacheView(a,e){if(this._viewCache.length0?l/this._itemSize:0;if(e.end>o){const i=Math.ceil(t/this._itemSize),s=Math.max(0,Math.min(c,o-i));c!=s&&(c=s,l=s*this._itemSize,e.start=Math.floor(c)),e.end=Math.max(0,Math.min(o,e.start+i))}const n=l-e.start*this._itemSize;if(n0&&(e.end=Math.min(o,e.end+s),e.start=Math.max(0,Math.floor(c-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(e),this._viewport.setRenderedContentOffset(this._itemSize*e.start),this._scrolledIndexChange.next(Math.floor(c))}}function jg(r){return r._scrollStrategy}let zg=(()=>{class r{constructor(){this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new Ng(this.itemSize,this.minBufferPx,this.maxBufferPx)}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=Ci(e)}get minBufferPx(){return this._minBufferPx}set minBufferPx(e){this._minBufferPx=Ci(e)}get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(e){this._maxBufferPx=Ci(e)}ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275dir=u.lG2({type:r,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[u._Bn([{provide:Fg,useFactory:jg,deps:[(0,u.Gpc)(()=>r)]}]),u.TTD]}),r})(),no=(()=>{class r{constructor(e,t,o){this._ngZone=e,this._platform=t,this._scrolled=new Se.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=o}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new bi.y(t=>{this._globalSubscription||this._addGlobalListener();const o=e>0?this._scrolled.pipe(ml(e)).subscribe(t):this._scrolled.subscribe(t);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,De.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,t)=>this.deregister(t)),this._scrolled.complete()}ancestorScrolled(e,t){const o=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe((0,ti.h)(l=>!l||o.indexOf(l)>-1))}getAncestorScrollContainers(e){const t=[];return this.scrollContainers.forEach((o,l)=>{this._scrollableContainsElement(l,e)&&t.push(l)}),t}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,t){let o=ai(t),l=e.getElementRef().nativeElement;do{if(o==l)return!0}while(o=o.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>ns(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(u.R0b),u.LFG(Zt),u.LFG(T.K0,8))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),ar=(()=>{class r{constructor(e,t,o,l){this.elementRef=e,this.scrollDispatcher=t,this.ngZone=o,this.dir=l,this._destroyed=new Se.x,this._elementScrolled=new bi.y(c=>this.ngZone.runOutsideAngular(()=>ns(this.elementRef.nativeElement,"scroll").pipe(st(this._destroyed)).subscribe(c)))}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(e){const t=this.elementRef.nativeElement,o=this.dir&&"rtl"==this.dir.value;null==e.left&&(e.left=o?e.end:e.start),null==e.right&&(e.right=o?e.start:e.end),null!=e.bottom&&(e.top=t.scrollHeight-t.clientHeight-e.bottom),o&&0!=Ka()?(null!=e.left&&(e.right=t.scrollWidth-t.clientWidth-e.left),2==Ka()?e.left=e.right:1==Ka()&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.left=t.scrollWidth-t.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){const t=this.elementRef.nativeElement;Em()?t.scrollTo(e):(null!=e.top&&(t.scrollTop=e.top),null!=e.left&&(t.scrollLeft=e.left))}measureScrollOffset(e){const t="left",o="right",l=this.elementRef.nativeElement;if("top"==e)return l.scrollTop;if("bottom"==e)return l.scrollHeight-l.clientHeight-l.scrollTop;const c=this.dir&&"rtl"==this.dir.value;return"start"==e?e=c?o:t:"end"==e&&(e=c?t:o),c&&2==Ka()?e==t?l.scrollWidth-l.clientWidth-l.scrollLeft:l.scrollLeft:c&&1==Ka()?e==t?l.scrollLeft+l.scrollWidth-l.clientWidth:-l.scrollLeft:e==t?l.scrollLeft:l.scrollWidth-l.clientWidth-l.scrollLeft}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(u.SBq),u.Y36(no),u.Y36(u.R0b),u.Y36(on,8))},r.\u0275dir=u.lG2({type:r,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),r})(),Dr=(()=>{class r{constructor(e,t,o){this._platform=e,this._change=new Se.x,this._changeListener=l=>{this._change.next(l)},this._document=o,t.runOutsideAngular(()=>{if(e.isBrowser){const l=this._getWindow();l.addEventListener("resize",this._changeListener),l.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:t,height:o}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+o,right:e.left+t,height:o,width:t}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,t=this._getWindow(),o=e.documentElement,l=o.getBoundingClientRect();return{top:-l.top||e.body.scrollTop||t.scrollY||o.scrollTop||0,left:-l.left||e.body.scrollLeft||t.scrollX||o.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(ml(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(Zt),u.LFG(u.R0b),u.LFG(T.K0,8))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const _l=new u.OlP("VIRTUAL_SCROLLABLE");let Gg=(()=>{class r extends ar{constructor(e,t,o,l){super(e,t,o,l)}measureViewportSize(e){const t=this.elementRef.nativeElement;return"horizontal"===e?t.clientWidth:t.clientHeight}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(u.SBq),u.Y36(no),u.Y36(u.R0b),u.Y36(on,8))},r.\u0275dir=u.lG2({type:r,features:[u.qOj]}),r})();const qg=typeof requestAnimationFrame<"u"?Mg:Mh;let Wg=(()=>{class r extends Gg{constructor(e,t,o,l,c,n,i,s){super(e,n,o,c),this.elementRef=e,this._changeDetectorRef=t,this._scrollStrategy=l,this.scrollable=s,this._detachedSubject=new Se.x,this._renderedRangeSubject=new Se.x,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new bi.y(d=>this._scrollStrategy.scrolledIndexChange.subscribe(h=>Promise.resolve().then(()=>this.ngZone.run(()=>d.next(h))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=Ft.w0.EMPTY,this._viewportChanges=i.change().subscribe(()=>{this.checkViewportSize()}),this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this)}get orientation(){return this._orientation}set orientation(e){this._orientation!==e&&(this._orientation=e,this._calculateSpacerSize())}get appendOnly(){return this._appendOnly}set appendOnly(e){this._appendOnly=Ze(e)}ngOnInit(){this.scrollable===this&&super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.scrollable.elementScrolled().pipe(It(null),ml(0,qg)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()}))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(e){this.ngZone.runOutsideAngular(()=>{this._forOf=e,this._forOf.dataStream.pipe(st(this._detachedSubject)).subscribe(t=>{const o=t.length;o!==this._dataLength&&(this._dataLength=o,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}measureBoundingClientRectWithScrollOffset(e){return this.getElementRef().nativeElement.getBoundingClientRect()[e]}setTotalContentSize(e){this._totalContentSize!==e&&(this._totalContentSize=e,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(e){(function Rh(r,a){return r.start==a.start&&r.end==a.end})(this._renderedRange,e)||(this.appendOnly&&(e={start:0,end:Math.max(this._renderedRange.end,e.end)}),this._renderedRangeSubject.next(this._renderedRange=e),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(e,t="to-start"){e=this.appendOnly&&"to-start"===t?0:e;const l="horizontal"==this.orientation,c=l?"X":"Y";let i=`translate${c}(${Number((l&&this.dir&&"rtl"==this.dir.value?-1:1)*e)}px)`;this._renderedContentOffset=e,"to-end"===t&&(i+=` translate${c}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=i&&(this._renderedContentTransform=i,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(e,t="auto"){const o={behavior:t};"horizontal"===this.orientation?o.start=e:o.top=e,this.scrollable.scrollTo(o)}scrollToIndex(e,t="auto"){this._scrollStrategy.scrollToIndex(e,t)}measureScrollOffset(e){let t;return t=this.scrollable==this?o=>super.measureScrollOffset(o):o=>this.scrollable.measureScrollOffset(o),Math.max(0,t(e??("horizontal"===this.orientation?"start":"top"))-this.measureViewportOffset())}measureViewportOffset(e){let t;const o="left",l="right",c="rtl"==this.dir?.value;t="start"==e?c?l:o:"end"==e?c?o:l:e||("horizontal"===this.orientation?"left":"top");const n=this.scrollable.measureBoundingClientRectWithScrollOffset(t);return this.elementRef.nativeElement.getBoundingClientRect()[t]-n}measureRenderedContentSize(){const e=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?e.offsetWidth:e.offsetHeight}measureRangeSize(e){return this._forOf?this._forOf.measureRangeSize(e,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}_markChangeDetectionNeeded(e){e&&this._runAfterChangeDetection.push(e),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(()=>this._changeDetectorRef.markForCheck());const e=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const t of e)t()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(u.SBq),u.Y36(u.sBO),u.Y36(u.R0b),u.Y36(Fg,8),u.Y36(on,8),u.Y36(no),u.Y36(Dr),u.Y36(_l,8))},r.\u0275cmp=u.Xpm({type:r,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(e,t){if(1&e&&u.Gf(Ph,7),2&e){let o;u.iGM(o=u.CRH())&&(t._contentWrapper=o.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(e,t){2&e&&u.ekj("cdk-virtual-scroll-orientation-horizontal","horizontal"===t.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==t.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[u._Bn([{provide:ar,useFactory:(a,e)=>a||e,deps:[Gg,r]}]),u.qOj],ngContentSelectors:hE,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(e,t){1&e&&(u.F$t(),u.TgZ(0,"div",0,1),u.Hsn(2),u.qZA(),u._UZ(3,"div",2)),2&e&&(u.xp6(3),u.Udp("width",t._totalContentWidth)("height",t._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}"],encapsulation:2,changeDetection:0}),r})();function $g(r,a,e){if(!e.getBoundingClientRect)return 0;const o=e.getBoundingClientRect();return"horizontal"===r?"start"===a?o.left:o.right:"start"===a?o.top:o.bottom}let bl=(()=>{class r{constructor(e,t,o,l,c,n){this._viewContainerRef=e,this._template=t,this._differs=o,this._viewRepeater=l,this._viewport=c,this.viewChange=new Se.x,this._dataSourceChanges=new Se.x,this.dataStream=this._dataSourceChanges.pipe(It(null),function yv(){return(0,nn.e)((r,a)=>{let e,t=!1;r.subscribe((0,Li.x)(a,o=>{const l=e;e=o,t&&a.next([l,o]),t=!0}))})}(),(0,Ai.w)(([i,s])=>this._changeDataSource(i,s)),Dh(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new Se.x,this.dataStream.subscribe(i=>{this._data=i,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe(st(this._destroyed)).subscribe(i=>{this._renderedRange=i,this.viewChange.observers.length&&n.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(e){this._cdkVirtualForOf=e,Ca(e)?this._dataSourceChanges.next(e):this._dataSourceChanges.next(new Hh(Yi(e)?e:Array.from(e||[])))}get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(e){this._needsUpdate=!0,this._cdkVirtualForTrackBy=e?(t,o)=>e(t+(this._renderedRange?this._renderedRange.start:0),o):void 0}set cdkVirtualForTemplate(e){e&&(this._needsUpdate=!0,this._template=e)}get cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set cdkVirtualForTemplateCacheSize(e){this._viewRepeater.viewCacheSize=Ci(e)}measureRangeSize(e,t){if(e.start>=e.end)return 0;const o=e.start-this._renderedRange.start,l=e.end-e.start;let c,n;for(let i=0;i-1;i--){const s=this._viewContainerRef.get(i+o);if(s&&s.rootNodes.length){n=s.rootNodes[s.rootNodes.length-1];break}}return c&&n?$g(t,"end",n)-$g(t,"start",c):0}ngDoCheck(){if(this._differ&&this._needsUpdate){const e=this._differ.diff(this._renderedItems);e?this._applyChanges(e):this._updateContext(),this._needsUpdate=!1}}ngOnDestroy(){this._viewport.detach(),this._dataSourceChanges.next(void 0),this._dataSourceChanges.complete(),this.viewChange.complete(),this._destroyed.next(),this._destroyed.complete(),this._viewRepeater.detach()}_onRenderedDataChange(){!this._renderedRange||(this._renderedItems=this._data.slice(this._renderedRange.start,this._renderedRange.end),this._differ||(this._differ=this._differs.find(this._renderedItems).create((e,t)=>this.cdkVirtualForTrackBy?this.cdkVirtualForTrackBy(e,t):t)),this._needsUpdate=!0)}_changeDataSource(e,t){return e&&e.disconnect(this),this._needsUpdate=!0,t?t.connect(this):(0,De.of)()}_updateContext(){const e=this._data.length;let t=this._viewContainerRef.length;for(;t--;){const o=this._viewContainerRef.get(t);o.context.index=this._renderedRange.start+t,o.context.count=e,this._updateComputedContextProperties(o.context),o.detectChanges()}}_applyChanges(e){this._viewRepeater.applyChanges(e,this._viewContainerRef,(l,c,n)=>this._getEmbeddedViewArgs(l,n),l=>l.item),e.forEachIdentityChange(l=>{this._viewContainerRef.get(l.currentIndex).context.$implicit=l.item});const t=this._data.length;let o=this._viewContainerRef.length;for(;o--;){const l=this._viewContainerRef.get(o);l.context.index=this._renderedRange.start+o,l.context.count=t,this._updateComputedContextProperties(l.context)}}_updateComputedContextProperties(e){e.first=0===e.index,e.last=e.index===e.count-1,e.even=e.index%2==0,e.odd=!e.even}_getEmbeddedViewArgs(e,t){return{templateRef:this._template,context:{$implicit:e.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:t}}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(u.s_b),u.Y36(u.Rgc),u.Y36(u.ZZ4),u.Y36(rs),u.Y36(Wg,4),u.Y36(u.R0b))},r.\u0275dir=u.lG2({type:r,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},features:[u._Bn([{provide:rs,useClass:fd}])]}),r})(),Hr=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({}),r})(),Cl=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({imports:[ga,Hr,ga,Hr]}),r})();class yl{attach(a){return this._attachedHost=a,a.attach(this)}detach(){let a=this._attachedHost;null!=a&&(this._attachedHost=null,a.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(a){this._attachedHost=a}}class gd extends yl{constructor(a,e,t,o){super(),this.component=a,this.viewContainerRef=e,this.injector=t,this.componentFactoryResolver=o}}class wl extends yl{constructor(a,e,t,o){super(),this.templateRef=a,this.viewContainerRef=e,this.context=t,this.injector=o}get origin(){return this.templateRef.elementRef}attach(a,e=this.context){return this.context=e,super.attach(a)}detach(){return this.context=void 0,super.detach()}}class Tv extends yl{constructor(a){super(),this.element=a instanceof u.SBq?a.nativeElement:a}}class Ih{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(a){return a instanceof gd?(this._attachedPortal=a,this.attachComponentPortal(a)):a instanceof wl?(this._attachedPortal=a,this.attachTemplatePortal(a)):this.attachDomPortal&&a instanceof Tv?(this._attachedPortal=a,this.attachDomPortal(a)):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(a){this._disposeFn=a}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class Ev extends Ih{constructor(a,e,t,o,l){super(),this.outletElement=a,this._componentFactoryResolver=e,this._appRef=t,this._defaultInjector=o,this.attachDomPortal=c=>{const n=c.element,i=this._document.createComment("dom-portal");n.parentNode.insertBefore(i,n),this.outletElement.appendChild(n),this._attachedPortal=c,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(n,i)})},this._document=l}attachComponentPortal(a){const t=(a.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(a.component);let o;return a.viewContainerRef?(o=a.viewContainerRef.createComponent(t,a.viewContainerRef.length,a.injector||a.viewContainerRef.injector),this.setDisposeFn(()=>o.destroy())):(o=t.create(a.injector||this._defaultInjector||u.zs3.NULL),this._appRef.attachView(o.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(o.hostView),o.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(o)),this._attachedPortal=a,o}attachTemplatePortal(a){let e=a.viewContainerRef,t=e.createEmbeddedView(a.templateRef,a.context,{injector:a.injector});return t.rootNodes.forEach(o=>this.outletElement.appendChild(o)),t.detectChanges(),this.setDisposeFn(()=>{let o=e.indexOf(t);-1!==o&&e.remove(o)}),this._attachedPortal=a,t}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(a){return a.hostView.rootNodes[0]}}let Pr=(()=>{class r extends Ih{constructor(e,t,o){super(),this._componentFactoryResolver=e,this._viewContainerRef=t,this._isInitialized=!1,this.attached=new u.vpe,this.attachDomPortal=l=>{const c=l.element,n=this._document.createComment("dom-portal");l.setAttachedHost(this),c.parentNode.insertBefore(n,c),this._getRootNode().appendChild(c),this._attachedPortal=l,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(c,n)})},this._document=o}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(e){e.setAttachedHost(this);const t=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,l=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),c=t.createComponent(l,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(c.hostView.rootNodes[0]),super.setDisposeFn(()=>c.destroy()),this._attachedPortal=e,this._attachedRef=c,this.attached.emit(c),c}attachTemplatePortal(e){e.setAttachedHost(this);const t=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=t,this.attached.emit(t),t}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(u._Vd),u.Y36(u.s_b),u.Y36(T.K0))},r.\u0275dir=u.lG2({type:r,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[u.qOj]}),r})(),wn=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({}),r})();var ln=x(6451);const _d=Em();class Sv{constructor(a,e){this._viewportRuler=a,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const a=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=a.style.left||"",this._previousHTMLStyles.top=a.style.top||"",a.style.left=Wt(-this._previousScrollPosition.left),a.style.top=Wt(-this._previousScrollPosition.top),a.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const a=this._document.documentElement,t=a.style,o=this._document.body.style,l=t.scrollBehavior||"",c=o.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,a.classList.remove("cdk-global-scrollblock"),_d&&(t.scrollBehavior=o.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),_d&&(t.scrollBehavior=l,o.scrollBehavior=c)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width}}class vl{constructor(a,e,t,o){this._scrollDispatcher=a,this._ngZone=e,this._viewportRuler=t,this._config=o,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(a){this._overlayRef=a}enable(){if(this._scrollSubscription)return;const a=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=a.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=a.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Si{enable(){}disable(){}attach(){}}function Ir(r,a){return a.some(e=>r.bottome.bottom||r.righte.right)}function Al(r,a){return a.some(e=>r.tope.bottom||r.lefte.right)}class vn{constructor(a,e,t,o){this._scrollDispatcher=a,this._viewportRuler=e,this._ngZone=t,this._config=o,this._scrollSubscription=null}attach(a){this._overlayRef=a}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 e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:t,height:o}=this._viewportRuler.getViewportSize();Ir(e,[{width:t,height:o,bottom:o,right:t,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 Vh=(()=>{class r{constructor(e,t,o,l){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=o,this.noop=()=>new Si,this.close=c=>new vl(this._scrollDispatcher,this._ngZone,this._viewportRuler,c),this.block=()=>new Sv(this._viewportRuler,this._document),this.reposition=c=>new vn(this._scrollDispatcher,this._viewportRuler,this._ngZone,c),this._document=l}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(no),u.LFG(Dr),u.LFG(u.R0b),u.LFG(T.K0))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();class ya{constructor(a){if(this.scrollStrategy=new Si,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,a){const e=Object.keys(a);for(const t of e)void 0!==a[t]&&(this[t]=a[t])}}}class as{constructor(a,e){this.connectionPair=a,this.scrollableViewProperties=e}}let ro=(()=>{class r{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const t=this._attachedOverlays.indexOf(e);t>-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this.detach()}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(T.K0))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),os=(()=>{class r extends ro{constructor(e,t){super(e),this._ngZone=t,this._keydownListener=o=>{const l=this._attachedOverlays;for(let c=l.length-1;c>-1;c--)if(l[c]._keydownEvents.observers.length>0){const n=l[c]._keydownEvents;this._ngZone?this._ngZone.run(()=>n.next(o)):n.next(o);break}}}add(e){super.add(e),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(T.K0),u.LFG(u.R0b,8))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),ss=(()=>{class r extends ro{constructor(e,t,o){super(e),this._platform=t,this._ngZone=o,this._cursorStyleIsSet=!1,this._pointerDownListener=l=>{this._pointerDownEventTarget=Ti(l)},this._clickListener=l=>{const c=Ti(l),n="click"===l.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:c;this._pointerDownEventTarget=null;const i=this._attachedOverlays.slice();for(let s=i.length-1;s>-1;s--){const d=i[s];if(d._outsidePointerEvents.observers.length<1||!d.hasAttached())continue;if(d.overlayElement.contains(c)||d.overlayElement.contains(n))break;const h=d._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>h.next(l)):h.next(l)}}}add(e){if(super.add(e),!this._isAttached){const t=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(t)):this._addEventListeners(t),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(T.K0),u.LFG(Zt),u.LFG(u.R0b,8))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Ml=(()=>{class r{constructor(e,t){this._platform=t,this._document=e}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||Jc()){const o=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let l=0;lthis._backdropClick.next(h),this._backdropTransitionendHandler=h=>{this._disposeBackdrop(h.target)},this._keydownEvents=new Se.x,this._outsidePointerEvents=new Se.x,o.scrollStrategy&&(this._scrollStrategy=o.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=o.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(a){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const e=this._portalOutlet.attach(a);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,Gt.q)(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),"function"==typeof e?.onDestroy&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),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 a=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),a}dispose(){const a=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),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?.remove(),this._previousHostParent=this._pane=this._host=null,a&&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(a){a!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=a,this.hasAttached()&&(a.attach(this),this.updatePosition()))}updateSize(a){this._config={...this._config,...a},this._updateElementSize()}setDirection(a){this._config={...this._config,direction:a},this._updateElementDirection()}addPanelClass(a){this._pane&&this._toggleClasses(this._pane,a,!0)}removePanelClass(a){this._pane&&this._toggleClasses(this._pane,a,!1)}getDirection(){const a=this._config.direction;return a?"string"==typeof a?a:a.value:"ltr"}updateScrollStrategy(a){a!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=a,this.hasAttached()&&(a.attach(this),a.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const a=this._pane.style;a.width=Wt(this._config.width),a.height=Wt(this._config.height),a.minWidth=Wt(this._config.minWidth),a.minHeight=Wt(this._config.minHeight),a.maxWidth=Wt(this._config.maxWidth),a.maxHeight=Wt(this._config.maxHeight)}_togglePointerEvents(a){this._pane.style.pointerEvents=a?"":"none"}_attachBackdrop(){const a="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),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),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(a)})}):this._backdropElement.classList.add(a)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const a=this._backdropElement;if(a){if(this._animationsDisabled)return void this._disposeBackdrop(a);a.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{a.addEventListener("transitionend",this._backdropTransitionendHandler)}),a.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(a)},500))}}_toggleClasses(a,e,t){const o=Zu(e||[]).filter(l=>!!l);o.length&&(t?a.classList.add(...o):a.classList.remove(...o))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const a=this._ngZone.onStable.pipe(st((0,ln.T)(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._host.remove()),a.unsubscribe())})})}_disposeScrollStrategy(){const a=this._scrollStrategy;a&&(a.disable(),a.detach&&a.detach())}_disposeBackdrop(a){a&&(a.removeEventListener("click",this._backdropClickHandler),a.removeEventListener("transitionend",this._backdropTransitionendHandler),a.remove(),this._backdropElement===a&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const Bh="cdk-overlay-connected-position-bounding-box",Yg=/([A-Za-z%]+)$/;class Qg{constructor(a,e,t,o,l){this._viewportRuler=e,this._document=t,this._platform=o,this._overlayContainer=l,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 Se.x,this._resizeSubscription=Ft.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(a)}get positions(){return this._preferredPositions}attach(a){this._validatePositions(),a.hostElement.classList.add(Bh),this._overlayRef=a,this._boundingBox=a.hostElement,this._pane=a.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(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const a=this._originRect,e=this._overlayRect,t=this._viewportRect,o=this._containerRect,l=[];let c;for(let n of this._preferredPositions){let i=this._getOriginPoint(a,o,n),s=this._getOverlayPoint(i,e,n),d=this._getOverlayFit(s,e,t,n);if(d.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(n,i);this._canFitWithFlexibleDimensions(d,s,t)?l.push({position:n,origin:i,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(i,n)}):(!c||c.overlayFit.visibleAreai&&(i=d,n=s)}return this._isPushed=!1,void this._applyPosition(n.position,n.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(c.position,c.originPoint);this._applyPosition(c.position,c.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&wa(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Bh),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const a=this._lastPosition;if(a){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._getOriginPoint(this._originRect,this._containerRect,a);this._applyPosition(a,e)}else this.apply()}withScrollableContainers(a){return this._scrollables=a,this}withPositions(a){return this._preferredPositions=a,-1===a.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(a){return this._viewportMargin=a,this}withFlexibleDimensions(a=!0){return this._hasFlexibleDimensions=a,this}withGrowAfterOpen(a=!0){return this._growAfterOpen=a,this}withPush(a=!0){return this._canPush=a,this}withLockedPosition(a=!0){return this._positionLocked=a,this}setOrigin(a){return this._origin=a,this}withDefaultOffsetX(a){return this._offsetX=a,this}withDefaultOffsetY(a){return this._offsetY=a,this}withTransformOriginOn(a){return this._transformOriginSelector=a,this}_getOriginPoint(a,e,t){let o,l;if("center"==t.originX)o=a.left+a.width/2;else{const c=this._isRtl()?a.right:a.left,n=this._isRtl()?a.left:a.right;o="start"==t.originX?c:n}return e.left<0&&(o-=e.left),l="center"==t.originY?a.top+a.height/2:"top"==t.originY?a.top:a.bottom,e.top<0&&(l-=e.top),{x:o,y:l}}_getOverlayPoint(a,e,t){let o,l;return o="center"==t.overlayX?-e.width/2:"start"===t.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,l="center"==t.overlayY?-e.height/2:"top"==t.overlayY?0:-e.height,{x:a.x+o,y:a.y+l}}_getOverlayFit(a,e,t,o){const l=Lh(e);let{x:c,y:n}=a,i=this._getOffset(o,"x"),s=this._getOffset(o,"y");i&&(c+=i),s&&(n+=s);let f=0-n,b=n+l.height-t.height,H=this._subtractOverflows(l.width,0-c,c+l.width-t.width),j=this._subtractOverflows(l.height,f,b),ae=H*j;return{visibleArea:ae,isCompletelyWithinViewport:l.width*l.height===ae,fitsInViewportVertically:j===l.height,fitsInViewportHorizontally:H==l.width}}_canFitWithFlexibleDimensions(a,e,t){if(this._hasFlexibleDimensions){const o=t.bottom-e.y,l=t.right-e.x,c=Oh(this._overlayRef.getConfig().minHeight),n=Oh(this._overlayRef.getConfig().minWidth),s=a.fitsInViewportHorizontally||null!=n&&n<=l;return(a.fitsInViewportVertically||null!=c&&c<=o)&&s}return!1}_pushOverlayOnScreen(a,e,t){if(this._previousPushAmount&&this._positionLocked)return{x:a.x+this._previousPushAmount.x,y:a.y+this._previousPushAmount.y};const o=Lh(e),l=this._viewportRect,c=Math.max(a.x+o.width-l.width,0),n=Math.max(a.y+o.height-l.height,0),i=Math.max(l.top-t.top-a.y,0),s=Math.max(l.left-t.left-a.x,0);let d=0,h=0;return d=o.width<=l.width?s||-c:a.xH&&!this._isInitialRender&&!this._growAfterOpen&&(c=a.y-H/2)}if("end"===e.overlayX&&!o||"start"===e.overlayX&&o)f=t.width-a.x+this._viewportMargin,d=a.x-this._viewportMargin;else if("start"===e.overlayX&&!o||"end"===e.overlayX&&o)h=a.x,d=t.right-a.x;else{const b=Math.min(t.right-a.x+t.left,a.x),H=this._lastBoundingBoxSize.width;d=2*b,h=a.x-b,d>H&&!this._isInitialRender&&!this._growAfterOpen&&(h=a.x-H/2)}return{top:c,left:h,bottom:n,right:f,width:d,height:l}}_setBoundingBoxStyles(a,e){const t=this._calculateBoundingBoxRect(a,e);!this._isInitialRender&&!this._growAfterOpen&&(t.height=Math.min(t.height,this._lastBoundingBoxSize.height),t.width=Math.min(t.width,this._lastBoundingBoxSize.width));const o={};if(this._hasExactPosition())o.top=o.left="0",o.bottom=o.right=o.maxHeight=o.maxWidth="",o.width=o.height="100%";else{const l=this._overlayRef.getConfig().maxHeight,c=this._overlayRef.getConfig().maxWidth;o.height=Wt(t.height),o.top=Wt(t.top),o.bottom=Wt(t.bottom),o.width=Wt(t.width),o.left=Wt(t.left),o.right=Wt(t.right),o.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",o.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",l&&(o.maxHeight=Wt(l)),c&&(o.maxWidth=Wt(c))}this._lastBoundingBoxSize=t,wa(this._boundingBox.style,o)}_resetBoundingBoxStyles(){wa(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){wa(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(a,e){const t={},o=this._hasExactPosition(),l=this._hasFlexibleDimensions,c=this._overlayRef.getConfig();if(o){const d=this._viewportRuler.getViewportScrollPosition();wa(t,this._getExactOverlayY(e,a,d)),wa(t,this._getExactOverlayX(e,a,d))}else t.position="static";let n="",i=this._getOffset(e,"x"),s=this._getOffset(e,"y");i&&(n+=`translateX(${i}px) `),s&&(n+=`translateY(${s}px)`),t.transform=n.trim(),c.maxHeight&&(o?t.maxHeight=Wt(c.maxHeight):l&&(t.maxHeight="")),c.maxWidth&&(o?t.maxWidth=Wt(c.maxWidth):l&&(t.maxWidth="")),wa(this._pane.style,t)}_getExactOverlayY(a,e,t){let o={top:"",bottom:""},l=this._getOverlayPoint(e,this._overlayRect,a);return this._isPushed&&(l=this._pushOverlayOnScreen(l,this._overlayRect,t)),"bottom"===a.overlayY?o.bottom=this._document.documentElement.clientHeight-(l.y+this._overlayRect.height)+"px":o.top=Wt(l.y),o}_getExactOverlayX(a,e,t){let c,o={left:"",right:""},l=this._getOverlayPoint(e,this._overlayRect,a);return this._isPushed&&(l=this._pushOverlayOnScreen(l,this._overlayRect,t)),c=this._isRtl()?"end"===a.overlayX?"left":"right":"end"===a.overlayX?"right":"left","right"===c?o.right=this._document.documentElement.clientWidth-(l.x+this._overlayRect.width)+"px":o.left=Wt(l.x),o}_getScrollVisibility(){const a=this._getOriginRect(),e=this._pane.getBoundingClientRect(),t=this._scrollables.map(o=>o.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Al(a,t),isOriginOutsideView:Ir(a,t),isOverlayClipped:Al(e,t),isOverlayOutsideView:Ir(e,t)}}_subtractOverflows(a,...e){return e.reduce((t,o)=>t-Math.max(o,0),a)}_getNarrowedViewportRect(){const a=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,t=this._viewportRuler.getViewportScrollPosition();return{top:t.top+this._viewportMargin,left:t.left+this._viewportMargin,right:t.left+a-this._viewportMargin,bottom:t.top+e-this._viewportMargin,width:a-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(a,e){return"x"===e?a.offsetX??this._offsetX:a.offsetY??this._offsetY}_validatePositions(){}_addPanelClasses(a){this._pane&&Zu(a).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(a=>{this._pane.classList.remove(a)}),this._appliedPanelClasses=[])}_getOriginRect(){const a=this._origin;if(a instanceof u.SBq)return a.nativeElement.getBoundingClientRect();if(a instanceof Element)return a.getBoundingClientRect();const e=a.width||0,t=a.height||0;return{top:a.y,bottom:a.y+t,left:a.x,right:a.x+e,height:t,width:e}}}function wa(r,a){for(let e in a)a.hasOwnProperty(e)&&(r[e]=a[e]);return r}function Oh(r){if("number"!=typeof r&&null!=r){const[a,e]=r.split(Yg);return e&&"px"!==e?null:parseFloat(a)}return r||null}function Lh(r){return{top:Math.floor(r.top),right:Math.floor(r.right),bottom:Math.floor(r.bottom),left:Math.floor(r.left),width:Math.floor(r.width),height:Math.floor(r.height)}}const Jg="cdk-global-overlay-wrapper";class Dv{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(a){const e=a.getConfig();this._overlayRef=a,this._width&&!e.width&&a.updateSize({width:this._width}),this._height&&!e.height&&a.updateSize({height:this._height}),a.hostElement.classList.add(Jg),this._isDisposed=!1}top(a=""){return this._bottomOffset="",this._topOffset=a,this._alignItems="flex-start",this}left(a=""){return this._xOffset=a,this._xPosition="left",this}bottom(a=""){return this._topOffset="",this._bottomOffset=a,this._alignItems="flex-end",this}right(a=""){return this._xOffset=a,this._xPosition="right",this}start(a=""){return this._xOffset=a,this._xPosition="start",this}end(a=""){return this._xOffset=a,this._xPosition="end",this}width(a=""){return this._overlayRef?this._overlayRef.updateSize({width:a}):this._width=a,this}height(a=""){return this._overlayRef?this._overlayRef.updateSize({height:a}):this._height=a,this}centerHorizontally(a=""){return this.left(a),this._xPosition="center",this}centerVertically(a=""){return this.top(a),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const a=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,t=this._overlayRef.getConfig(),{width:o,height:l,maxWidth:c,maxHeight:n}=t,i=!("100%"!==o&&"100vw"!==o||c&&"100%"!==c&&"100vw"!==c),s=!("100%"!==l&&"100vh"!==l||n&&"100%"!==n&&"100vh"!==n),d=this._xPosition,h=this._xOffset,f="rtl"===this._overlayRef.getConfig().direction;let b="",H="",j="";i?j="flex-start":"center"===d?(j="center",f?H=h:b=h):f?"left"===d||"end"===d?(j="flex-end",b=h):("right"===d||"start"===d)&&(j="flex-start",H=h):"left"===d||"start"===d?(j="flex-start",b=h):("right"===d||"end"===d)&&(j="flex-end",H=h),a.position=this._cssPosition,a.marginLeft=i?"0":b,a.marginTop=s?"0":this._topOffset,a.marginBottom=this._bottomOffset,a.marginRight=i?"0":H,e.justifyContent=j,e.alignItems=s?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const a=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,t=e.style;e.classList.remove(Jg),t.justifyContent=t.alignItems=a.marginTop=a.marginBottom=a.marginLeft=a.marginRight=a.position="",this._overlayRef=null,this._isDisposed=!0}}let Kg=(()=>{class r{constructor(e,t,o,l){this._viewportRuler=e,this._document=t,this._platform=o,this._overlayContainer=l}global(){return new Dv}flexibleConnectedTo(e){return new Qg(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(Dr),u.LFG(T.K0),u.LFG(Zt),u.LFG(Ml))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Hv=0,cn=(()=>{class r{constructor(e,t,o,l,c,n,i,s,d,h,f,b){this.scrollStrategies=e,this._overlayContainer=t,this._componentFactoryResolver=o,this._positionBuilder=l,this._keyboardDispatcher=c,this._injector=n,this._ngZone=i,this._document=s,this._directionality=d,this._location=h,this._outsideClickDispatcher=f,this._animationsModuleType=b}create(e){const t=this._createHostElement(),o=this._createPaneElement(t),l=this._createPortalOutlet(o),c=new ya(e);return c.direction=c.direction||this._directionality.value,new ls(l,t,o,c,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(e){const t=this._document.createElement("div");return t.id="cdk-overlay-"+Hv++,t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(u.z2F)),new Ev(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(Vh),u.LFG(Ml),u.LFG(u._Vd),u.LFG(Kg),u.LFG(os),u.LFG(u.zs3),u.LFG(u.R0b),u.LFG(T.K0),u.LFG(on),u.LFG(T.Ye),u.LFG(ss),u.LFG(u.QbO,8))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac}),r})();const jh={provide:new u.OlP("cdk-connected-overlay-scroll-strategy"),deps:[cn],useFactory:function bd(r){return()=>r.scrollStrategies.reposition()}};let cs=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({providers:[cn,jh],imports:[ga,wn,Cl,Cl]}),r})();class Dl{}const or="*";function $t(r,a){return{type:7,name:r,definitions:a,options:{}}}function wt(r,a=null){return{type:4,styles:a,timings:r}}function Gh(r,a=null){return{type:3,steps:r,options:a}}function Cd(r,a=null){return{type:2,steps:r,options:a}}function Fe(r){return{type:6,styles:r,offset:null}}function ft(r,a,e){return{type:0,name:r,styles:a,options:e}}function Ct(r,a,e=null){return{type:1,expr:r,animation:a,options:e}}function Hl(r=null){return{type:9,options:r}}function Pl(r,a,e=null){return{type:11,selector:r,animation:a,options:e}}function yd(r){Promise.resolve(null).then(r)}class ao{constructor(a=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=a+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(a=>a()),this._onDoneFns=[])}onStart(a){this._originalOnStartFns.push(a),this._onStartFns.push(a)}onDone(a){this._originalOnDoneFns.push(a),this._onDoneFns.push(a)}onDestroy(a){this._onDestroyFns.push(a)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){yd(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(a=>a()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(a=>a()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(a){this._position=this.totalTime?a*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(a){const e="start"==a?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class qh{constructor(a){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=a;let e=0,t=0,o=0;const l=this.players.length;0==l?yd(()=>this._onFinish()):this.players.forEach(c=>{c.onDone(()=>{++e==l&&this._onFinish()}),c.onDestroy(()=>{++t==l&&this._onDestroy()}),c.onStart(()=>{++o==l&&this._onStart()})}),this.totalTime=this.players.reduce((c,n)=>Math.max(c,n.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(a=>a()),this._onDoneFns=[])}init(){this.players.forEach(a=>a.init())}onStart(a){this._onStartFns.push(a)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(a=>a()),this._onStartFns=[])}onDone(a){this._onDoneFns.push(a)}onDestroy(a){this._onDestroyFns.push(a)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(a=>a.play())}pause(){this.players.forEach(a=>a.pause())}restart(){this.players.forEach(a=>a.restart())}finish(){this._onFinish(),this.players.forEach(a=>a.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(a=>a.destroy()),this._onDestroyFns.forEach(a=>a()),this._onDestroyFns=[])}reset(){this.players.forEach(a=>a.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(a){const e=a*this.totalTime;this.players.forEach(t=>{const o=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(o)})}getPosition(){const a=this.players.reduce((e,t)=>null===e||t.totalTime>e.totalTime?t:e,null);return null!=a?a.getPosition():0}beforeDestroy(){this.players.forEach(a=>{a.beforeDestroy&&a.beforeDestroy()})}triggerCallback(a){const e="start"==a?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}const Xg=["connectionContainer"],e_=["inputContainer"],t_=["label"];function i_(r,a){1&r&&(u.ynx(0),u.TgZ(1,"div",14),u._UZ(2,"div",15)(3,"div",16)(4,"div",17),u.qZA(),u.TgZ(5,"div",18),u._UZ(6,"div",15)(7,"div",16)(8,"div",17),u.qZA(),u.BQk())}function n_(r,a){if(1&r){const e=u.EpF();u.TgZ(0,"div",19),u.NdJ("cdkObserveContent",function(){u.CHM(e);const o=u.oxw();return u.KtG(o.updateOutlineGap())}),u.Hsn(1,1),u.qZA()}if(2&r){const e=u.oxw();u.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)}}function r_(r,a){if(1&r&&(u.ynx(0),u.Hsn(1,2),u.TgZ(2,"span"),u._uU(3),u.qZA(),u.BQk()),2&r){const e=u.oxw(2);u.xp6(3),u.Oqu(e._control.placeholder)}}function TE(r,a){1&r&&u.Hsn(0,3,["*ngSwitchCase","true"])}function Iv(r,a){1&r&&(u.TgZ(0,"span",23),u._uU(1," *"),u.qZA())}function kv(r,a){if(1&r){const e=u.EpF();u.TgZ(0,"label",20,21),u.NdJ("cdkObserveContent",function(){u.CHM(e);const o=u.oxw();return u.KtG(o.updateOutlineGap())}),u.YNc(2,r_,4,1,"ng-container",12),u.YNc(3,TE,1,0,"ng-content",12),u.YNc(4,Iv,2,0,"span",22),u.qZA()}if(2&r){const e=u.oxw();u.ekj("mat-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-form-field-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-accent","accent"==e.color)("mat-warn","warn"==e.color),u.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),u.uIk("for",e._control.id)("aria-owns",e._control.id),u.xp6(2),u.Q6J("ngSwitchCase",!1),u.xp6(1),u.Q6J("ngSwitchCase",!0),u.xp6(1),u.Q6J("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function a_(r,a){1&r&&(u.TgZ(0,"div",24),u.Hsn(1,4),u.qZA())}function Vv(r,a){if(1&r&&(u.TgZ(0,"div",25),u._UZ(1,"span",26),u.qZA()),2&r){const e=u.oxw();u.xp6(1),u.ekj("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function fi(r,a){if(1&r&&(u.TgZ(0,"div"),u.Hsn(1,5),u.qZA()),2&r){const e=u.oxw();u.Q6J("@transitionMessages",e._subscriptAnimationState)}}function o_(r,a){if(1&r&&(u.TgZ(0,"div",30),u._uU(1),u.qZA()),2&r){const e=u.oxw(2);u.Q6J("id",e._hintLabelId),u.xp6(1),u.Oqu(e.hintLabel)}}function Bv(r,a){if(1&r&&(u.TgZ(0,"div",27),u.YNc(1,o_,2,2,"div",28),u.Hsn(2,6),u._UZ(3,"div",29),u.Hsn(4,7),u.qZA()),2&r){const e=u.oxw();u.Q6J("@transitionMessages",e._subscriptAnimationState),u.xp6(1),u.Q6J("ngIf",e.hintLabel)}}const Ov=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],s_=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let Lv=0;const Wh=new u.OlP("MatError");let vd=(()=>{class r{constructor(e,t){this.id="mat-error-"+Lv++,e||t.nativeElement.setAttribute("aria-live","polite")}}return r.\u0275fac=function(e){return new(e||r)(u.$8M("aria-live"),u.Y36(u.SBq))},r.\u0275dir=u.lG2({type:r,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(e,t){2&e&&u.uIk("id",t.id)},inputs:{id:"id"},features:[u._Bn([{provide:Wh,useExisting:r}])]}),r})();const ds={transitionMessages:$t("transitionMessages",[ft("enter",Fe({opacity:1,transform:"translateY(0%)"})),Ct("void => enter",[Fe({opacity:0,transform:"translateY(-5px)"}),wt("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Ad=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275dir=u.lG2({type:r}),r})(),l_=0;const Nv=new u.OlP("MatHint");let $h=(()=>{class r{constructor(){this.align="start",this.id="mat-hint-"+l_++}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275dir=u.lG2({type:r,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(e,t){2&e&&(u.uIk("id",t.id)("align",null),u.ekj("mat-form-field-hint-end","end"===t.align))},inputs:{align:"align",id:"id"},features:[u._Bn([{provide:Nv,useExisting:r}])]}),r})(),us=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275dir=u.lG2({type:r,selectors:[["mat-label"]]}),r})(),sr=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275dir=u.lG2({type:r,selectors:[["mat-placeholder"]]}),r})();const jv=new u.OlP("MatPrefix"),lr=new u.OlP("MatSuffix");let An=0;const Uv=eo(class{constructor(r){this._elementRef=r}},"primary"),Gv=new u.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Qh=new u.OlP("MatFormField");let Jh=(()=>{class r extends Uv{constructor(e,t,o,l,c,n,i){super(e),this._changeDetectorRef=t,this._dir=o,this._defaults=l,this._platform=c,this._ngZone=n,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new Se.x,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+An++,this._labelId="mat-form-field-label-"+An++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==i,this.appearance=l?.appearance||"legacy",l&&(this._hideRequiredMarker=Boolean(l.hideRequiredMarker),l.color&&(this.color=this.defaultColor=l.color))}get appearance(){return this._appearance}set appearance(e){const t=this._appearance;this._appearance=e||this._defaults?.appearance||"legacy","outline"===this._appearance&&t!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=Ze(e)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(e){this._explicitFormFieldControl=e}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${e.controlType}`),e.stateChanges.pipe(It(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(st(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(st(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,ln.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(It(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(It(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(st(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(e){const t=this._control?this._control.ngControl:null;return t&&t[e]}_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,ns(this._label.nativeElement,"transitionend").pipe((0,Gt.q)(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 e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const t=this._hintChildren?this._hintChildren.find(l=>"start"===l.align):null,o=this._hintChildren?this._hintChildren.find(l=>"end"===l.align):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),o&&e.push(o.id)}else this._errorChildren&&e.push(...this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(e)}}_validateControlChild(){}updateOutlineGap(){const e=this._label?this._label.nativeElement:null,t=this._connectionContainerRef.nativeElement,o=".mat-form-field-outline-start",l=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!e||!e.children.length||!e.textContent.trim()){const d=t.querySelectorAll(`${o}, ${l}`);for(let h=0;h0?.75*H+10:0}for(let d=0;d{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({imports:[T.ez,qe,Jo,qe]}),r})();const iA={provide:new u.OlP("mat-select-scroll-strategy"),deps:[cn],useFactory:function tA(r){return()=>r.scrollStrategies.reposition()}};let Ed=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({providers:[iA],imports:[T.ez,cs,vh,qe,Hr,kr,vh,qe]}),r})();const nA=["tooltip"],m_="tooltip-panel",g_=kn({passive:!0}),Xh=new u.OlP("mat-tooltip-scroll-strategy"),b_={provide:Xh,deps:[cn],useFactory:function __(r){return()=>r.scrollStrategies.reposition({scrollThrottle:20})}},C_=new u.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function y_(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let w_=(()=>{class r{constructor(e,t,o,l,c,n,i,s,d,h,f,b){this._overlay=e,this._elementRef=t,this._scrollDispatcher=o,this._viewContainerRef=l,this._ngZone=c,this._platform=n,this._ariaDescriber=i,this._focusMonitor=s,this._dir=h,this._defaultOptions=f,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new Se.x,this._scrollStrategy=d,this._document=b,f&&(f.position&&(this.position=f.position),f.touchGestures&&(this.touchGestures=f.touchGestures)),h.change.pipe(st(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(e){this._disabled=Ze(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=Ci(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=Ci(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).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,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(st(this._destroyed)).subscribe(e=>{e?"keyboard"===e&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([t,o])=>{e.removeEventListener(t,o,g_)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const t=this._createOverlay();this._detach(),this._portal=this._portal||new gd(this._tooltipComponent,this._viewContainerRef);const o=this._tooltipInstance=t.attach(this._portal).instance;o._triggerElement=this._elementRef.nativeElement,o._mouseLeaveHideDelay=this._hideDelay,o.afterHidden().pipe(st(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),o.show(e)}hide(e=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(e)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const e=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),t=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(e);return t.positionChanges.pipe(st(this._destroyed)).subscribe(o=>{this._updateCurrentPositionClass(o.connectionPair),this._tooltipInstance&&o.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:t,panelClass:`${this._cssClassPrefix}-${m_}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(st(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(st(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(st(this._destroyed)).subscribe(o=>{this._isTooltipVisible()&&27===o.keyCode&&!nr(o)&&(o.preventDefault(),o.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){const t=e.getConfig().positionStrategy,o=this._getOrigin(),l=this._getOverlayPosition();t.withPositions([this._addOffset({...o.main,...l.main}),this._addOffset({...o.fallback,...l.fallback})])}_addOffset(e){return e}_getOrigin(){const e=!this._dir||"ltr"==this._dir.value,t=this.position;let o;"above"==t||"below"==t?o={originX:"center",originY:"above"==t?"top":"bottom"}:"before"==t||"left"==t&&e||"right"==t&&!e?o={originX:"start",originY:"center"}:("after"==t||"right"==t&&e||"left"==t&&!e)&&(o={originX:"end",originY:"center"});const{x:l,y:c}=this._invertPosition(o.originX,o.originY);return{main:o,fallback:{originX:l,originY:c}}}_getOverlayPosition(){const e=!this._dir||"ltr"==this._dir.value,t=this.position;let o;"above"==t?o={overlayX:"center",overlayY:"bottom"}:"below"==t?o={overlayX:"center",overlayY:"top"}:"before"==t||"left"==t&&e||"right"==t&&!e?o={overlayX:"end",overlayY:"center"}:("after"==t||"right"==t&&e||"left"==t&&!e)&&(o={overlayX:"start",overlayY:"center"});const{x:l,y:c}=this._invertPosition(o.overlayX,o.overlayY);return{main:o,fallback:{overlayX:l,overlayY:c}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,Gt.q)(1),st(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,t){return"above"===this.position||"below"===this.position?"top"===t?t="bottom":"bottom"===t&&(t="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:t}}_updateCurrentPositionClass(e){const{overlayY:t,originX:o,originY:l}=e;let c;if(c="center"===t?this._dir&&"rtl"===this._dir.value?"end"===o?"left":"right":"start"===o?"left":"right":"bottom"===t&&"top"===l?"above":"below",c!==this._currentPosition){const n=this._overlayRef;if(n){const i=`${this._cssClassPrefix}-${m_}-`;n.removePanelClass(i+this._currentPosition),n.addPanelClass(i+c)}this._currentPosition=c}}_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 e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",t=>{const o=t.relatedTarget;(!o||!this._overlayRef?.overlayElement.contains(o))&&this.hide()}],["wheel",t=>this._wheelListener(t)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const t=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",t],["touchcancel",t])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([t,o])=>{this._elementRef.nativeElement.addEventListener(t,o,g_)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const t=this._document.elementFromPoint(e.clientX,e.clientY),o=this._elementRef.nativeElement;t!==o&&!o.contains(t)&&this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const t=this._elementRef.nativeElement,o=t.style;("on"===e||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(o.userSelect=o.msUserSelect=o.webkitUserSelect=o.MozUserSelect="none"),("on"===e||!t.draggable)&&(o.webkitUserDrag="none"),o.touchAction="none",o.webkitTapHighlightColor="transparent"}}}return r.\u0275fac=function(e){u.$Z()},r.\u0275dir=u.lG2({type:r,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),r})(),Sd=(()=>{class r extends w_{constructor(e,t,o,l,c,n,i,s,d,h,f,b){super(e,t,o,l,c,n,i,s,d,h,f,b),this._tooltipComponent=A_}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(cn),u.Y36(u.SBq),u.Y36(no),u.Y36(u.s_b),u.Y36(u.R0b),u.Y36(Zt),u.Y36(rh),u.Y36(yn),u.Y36(Xh),u.Y36(on,8),u.Y36(C_,8),u.Y36(T.K0))},r.\u0275dir=u.lG2({type:r,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[u.qOj]}),r})(),v_=(()=>{class r{constructor(e,t){this._changeDetectorRef=e,this._visibility="initial",this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new Se.x,this._animationsDisabled="NoopAnimations"===t}show(e){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:e}){(!e||!this._triggerElement.contains(e))&&this.hide(this._mouseLeaveHideDelay)}_onShow(){}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){const t=this._tooltip.nativeElement,o=this._showAnimation,l=this._hideAnimation;if(t.classList.remove(e?l:o),t.classList.add(e?o:l),this._isVisible=e,e&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const c=getComputedStyle(t);("0s"===c.getPropertyValue("animation-duration")||"none"===c.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(t.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(u.sBO),u.Y36(u.QbO,8))},r.\u0275dir=u.lG2({type:r}),r})(),A_=(()=>{class r extends v_{constructor(e,t,o){super(e,o),this._breakpointObserver=t,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)"),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(u.sBO),u.Y36(Ko),u.Y36(u.QbO,8))},r.\u0275cmp=u.Xpm({type:r,selectors:[["mat-tooltip-component"]],viewQuery:function(e,t){if(1&e&&u.Gf(nA,7),2&e){let o;u.iGM(o=u.CRH())&&(t._tooltip=o.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,t){1&e&&u.NdJ("mouseleave",function(l){return t._handleMouseLeave(l)}),2&e&&u.Udp("zoom",t.isVisible()?1:null)},features:[u.qOj],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(e,t){if(1&e&&(u.TgZ(0,"div",0,1),u.NdJ("animationend",function(l){return t._handleAnimationEnd(l)}),u.ALo(2,"async"),u._uU(3),u.qZA()),2&e){let o;u.ekj("mat-tooltip-handset",null==(o=u.lcZ(2,4,t._isHandset))?null:o.matches),u.Q6J("ngClass",t.tooltipClass),u.xp6(3),u.Oqu(t.message)}},dependencies:[T.mk,T.Ov],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}"],encapsulation:2,changeDetection:0}),r})(),oo=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({providers:[b_],imports:[dl,T.ez,cs,qe,qe,Hr]}),r})(),E_=(()=>{class r{constructor(){this.changes=new Se.x,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(e,t,o)=>{if(0==o||0==t)return`0 of ${o}`;const l=e*t;return`${l+1} \u2013 ${l<(o=Math.max(o,0))?Math.min(l+t,o):l+t} of ${o}`}}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const M_={provide:E_,deps:[[new u.FiY,new u.tp0,E_]],useFactory:function S_(r){return r||new E_}};let Md=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({providers:[M_],imports:[T.ez,On,Ed,oo,qe]}),r})();var kl=x(1005);const Dd=["mat-menu-item",""];function Xt(r,a){1&r&&(u.O4$(),u.TgZ(0,"svg",2),u._UZ(1,"polygon",3),u.qZA())}const lA=["*"];function D_(r,a){if(1&r){const e=u.EpF();u.TgZ(0,"div",0),u.NdJ("keydown",function(o){u.CHM(e);const l=u.oxw();return u.KtG(l._handleKeydown(o))})("click",function(){u.CHM(e);const o=u.oxw();return u.KtG(o.closed.emit("click"))})("@transformMenu.start",function(o){u.CHM(e);const l=u.oxw();return u.KtG(l._onAnimationStart(o))})("@transformMenu.done",function(o){u.CHM(e);const l=u.oxw();return u.KtG(l._onAnimationDone(o))}),u.TgZ(1,"div",1),u.Hsn(2),u.qZA()()}if(2&r){const e=u.oxw();u.Q6J("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),u.uIk("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const Vl={transformMenu:$t("transformMenu",[ft("void",Fe({opacity:0,transform:"scale(0.8)"})),Ct("void => enter",wt("120ms cubic-bezier(0, 0, 0.2, 1)",Fe({opacity:1,transform:"scale(1)"}))),Ct("* => void",wt("100ms 25ms linear",Fe({opacity:0})))]),fadeInItems:$t("fadeInItems",[ft("showing",Fe({opacity:1})),Ct("void => *",[Fe({opacity:0}),wt("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},H_=new u.OlP("MatMenuContent"),lo=new u.OlP("MAT_MENU_PANEL"),hA=Sr(ba(class{}));let Bl=(()=>{class r extends hA{constructor(e,t,o,l,c){super(),this._elementRef=e,this._document=t,this._focusMonitor=o,this._parentMenu=l,this._changeDetectorRef=c,this.role="menuitem",this._hovered=new Se.x,this._focused=new Se.x,this._highlighted=!1,this._triggersSubmenu=!1,l?.addItem?.(this)}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),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(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const e=this._elementRef.nativeElement.cloneNode(!0),t=e.querySelectorAll("mat-icon, .material-icons");for(let o=0;o{class r{constructor(e,t,o,l){this._elementRef=e,this._ngZone=t,this._defaultOptions=o,this._changeDetectorRef=l,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new u.n_E,this._tabSubscription=Ft.w0.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new Se.x,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new u.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+R_++}get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(e){this._overlapTrigger=Ze(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=Ze(e)}set panelClass(e){const t=this._previousPanelClass;t&&t.length&&t.split(" ").forEach(o=>{this._classList[o]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(o=>{this._classList[o]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(e){this.panelClass=e}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new id(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(It(this._directDescendantItems),(0,Ai.w)(e=>(0,ln.T)(...e.map(t=>t._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{const t=this._keyManager;if("enter"===this._panelAnimationState&&t.activeItem?._hasFocus()){const o=e.toArray(),l=Math.max(0,Math.min(o.length-1,t.activeItemIndex||0));o[l]&&!o[l].disabled?t.setActiveItem(l):t.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(It(this._directDescendantItems),(0,Ai.w)(t=>(0,ln.T)(...t.map(o=>o._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const t=e.keyCode,o=this._keyManager;switch(t){case 27:nr(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(38===t||40===t)&&o.setFocusOrigin("keyboard"),void o.onKeydown(e)}e.stopPropagation()}focusFirstItem(e="program"){this._ngZone.onStable.pipe((0,Gt.q)(1)).subscribe(()=>{let t=null;if(this._directDescendantItems.length&&(t=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!t||!t.contains(document.activeElement)){const o=this._keyManager;o.setFocusOrigin(e).setFirstItemActive(),!o.activeItem&&t&&t.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const t=Math.min(this._baseElevation+e,24),o=`${this._elevationPrefix}${t}`,l=Object.keys(this._classList).find(c=>c.startsWith(this._elevationPrefix));(!l||l===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[o]=!0,this._previousElevation=o)}setPositionClasses(e=this.xPosition,t=this.yPosition){const o=this._classList;o["mat-menu-before"]="before"===e,o["mat-menu-after"]="after"===e,o["mat-menu-above"]="above"===t,o["mat-menu-below"]="below"===t,this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(It(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(u.SBq),u.Y36(u.R0b),u.Y36(P_),u.Y36(u.sBO))},r.\u0275dir=u.lG2({type:r,contentQueries:function(e,t,o){if(1&e&&(u.Suo(o,H_,5),u.Suo(o,Bl,5),u.Suo(o,Bl,4)),2&e){let l;u.iGM(l=u.CRH())&&(t.lazyContent=l.first),u.iGM(l=u.CRH())&&(t._allItems=l),u.iGM(l=u.CRH())&&(t.items=l)}},viewQuery:function(e,t){if(1&e&&u.Gf(u.Rgc,5),2&e){let o;u.iGM(o=u.CRH())&&(t.templateRef=o.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),r})(),ep=(()=>{class r extends hs{constructor(e,t,o,l){super(e,t,o,l),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(u.SBq),u.Y36(u.R0b),u.Y36(P_),u.Y36(u.sBO))},r.\u0275cmp=u.Xpm({type:r,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,t){2&e&&u.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[u._Bn([{provide:lo,useExisting:r}]),u.qOj],ngContentSelectors:lA,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(e,t){1&e&&(u.F$t(),u.YNc(0,D_,3,6,"ng-template"))},dependencies:[T.mk],styles:['mat-menu{display:none}.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;position:relative}.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;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}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}'],encapsulation:2,data:{animation:[Vl.transformMenu,Vl.fadeInItems]},changeDetection:0}),r})();const I_=new u.OlP("mat-menu-scroll-strategy"),Ll={provide:I_,deps:[cn],useFactory:function Ol(r){return()=>r.scrollStrategies.reposition()}},k_=kn({passive:!0});let pA=(()=>{class r{constructor(e,t,o,l,c,n,i,s,d){this._overlay=e,this._element=t,this._viewContainerRef=o,this._menuItemInstance=n,this._dir=i,this._focusMonitor=s,this._ngZone=d,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=Ft.w0.EMPTY,this._hoverSubscription=Ft.w0.EMPTY,this._menuCloseSubscription=Ft.w0.EMPTY,this._handleTouchStart=h=>{rd(h)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new u.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new u.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=l,this._parentMaterialMenu=c instanceof hs?c:void 0,t.nativeElement.addEventListener("touchstart",this._handleTouchStart,k_),n&&(n._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(t=>{this._destroyMenu(t),("click"===t||"tab"===t)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(t)})))}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,k_),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(){const e=this.menu;if(this._menuOpen||!e)return;const t=this._createOverlay(e),o=t.getConfig(),l=o.positionStrategy;this._setPosition(e,l),o.hasBackdrop=e.hasBackdrop??!this.triggersSubmenu(),t.attach(this._getPortal(e)),e.lazyContent&&e.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(e),e instanceof hs&&(e._startAnimation(),e._directDescendantItems.changes.pipe(st(e.close)).subscribe(()=>{l.withLockedPosition(!1).reapplyLastPosition(),l.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;const t=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,t instanceof hs?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe((0,ti.h)(o=>"void"===o.toState),(0,Gt.q)(1),st(t.lazyContent._attached)).subscribe({next:()=>t.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),t?.lazyContent?.detach())}_initMenu(e){e.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,e.direction=this.dir,this._setMenuElevation(e),e.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(e){if(e.setElevation){let t=0,o=e.parentMenu;for(;o;)t++,o=o.parentMenu;e.setElevation(t)}}_setIsMenuOpen(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e)}_createOverlay(e){if(!this._overlayRef){const t=this._getOverlayConfig(e);this._subscribeToPositions(e,t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(e){return new ya({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e,t){e.setPositionClasses&&t.positionChanges.subscribe(o=>{const l="start"===o.connectionPair.overlayX?"after":"before",c="top"===o.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>e.setPositionClasses(l,c)):e.setPositionClasses(l,c)})}_setPosition(e,t){let[o,l]="before"===e.xPosition?["end","start"]:["start","end"],[c,n]="above"===e.yPosition?["bottom","top"]:["top","bottom"],[i,s]=[c,n],[d,h]=[o,l],f=0;if(this.triggersSubmenu()){if(h=o="before"===e.xPosition?"start":"end",l=d="end"===o?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const b=this._parentMaterialMenu.items.first;this._parentInnerPadding=b?b._getHostElement().offsetTop:0}f="bottom"===c?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(i="top"===c?"bottom":"top",s="top"===n?"bottom":"top");t.withPositions([{originX:o,originY:i,overlayX:d,overlayY:c,offsetY:f},{originX:l,originY:i,overlayX:h,overlayY:c,offsetY:f},{originX:o,originY:s,overlayX:d,overlayY:n,offsetY:-f},{originX:l,originY:s,overlayX:h,overlayY:n,offsetY:-f}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),t=this._overlayRef.detachments(),o=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,De.of)(),l=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,ti.h)(c=>c!==this._menuItemInstance),(0,ti.h)(()=>this._menuOpen)):(0,De.of)();return(0,ln.T)(e,o,l,t)}_handleMousedown(e){rr(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){const t=e.keyCode;(13===t||32===t)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===t&&"ltr"===this.dir||37===t&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,ti.h)(e=>e===this._menuItemInstance&&!e.disabled),(0,kl.g)(0,Mh)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof hs&&this.menu._isAnimating?this.menu._animationDone.pipe((0,Gt.q)(1),(0,kl.g)(0,Mh),st(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new wl(e.templateRef,this._viewContainerRef)),this._portal}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(cn),u.Y36(u.SBq),u.Y36(u.s_b),u.Y36(I_),u.Y36(lo,8),u.Y36(Bl,10),u.Y36(on,8),u.Y36(yn),u.Y36(u.R0b))},r.\u0275dir=u.lG2({type:r,hostVars:3,hostBindings:function(e,t){1&e&&u.NdJ("click",function(l){return t._handleClick(l)})("mousedown",function(l){return t._handleMousedown(l)})("keydown",function(l){return t._handleKeydown(l)}),2&e&&u.uIk("aria-haspopup",t.menu?"menu":null)("aria-expanded",t.menuOpen||null)("aria-controls",t.menuOpen?t.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),r})(),tp=(()=>{class r extends pA{}return r.\u0275fac=function(){let a;return function(t){return(a||(a=u.n5z(r)))(t||r)}}(),r.\u0275dir=u.lG2({type:r,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[u.qOj]}),r})(),Fl=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({providers:[Ll],imports:[T.ez,qe,pi,cs,Hr,qe]}),r})();var V_=x(4742),fA=x(1810);function Pd(...r){const a=(0,Ba.jO)(r),{args:e,keys:t}=(0,V_.D)(r),o=new bi.y(l=>{const{length:c}=e;if(!c)return void l.complete();const n=new Array(c);let i=c,s=c;for(let d=0;d{h||(h=!0,s--),n[d]=f},()=>i--,void 0,()=>{(!i||!h)&&(s||l.next(t?(0,fA.n)(t,n):n),l.complete())}))}});return a?o.pipe((0,xh.Z)(a)):o}const mA=["*"];let Rd;function Id(r){return function $E(){if(void 0===Rd&&(Rd=null,typeof window<"u")){const r=window;void 0!==r.trustedTypes&&(Rd=r.trustedTypes.createPolicy("angular#components",{createHTML:a=>a}))}return Rd}()?.createHTML(r)||r}function gA(r){return Error(`Unable to find icon with the name "${r}"`)}function ip(r){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${r}".`)}function Nl(r){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${r}".`)}class co{constructor(a,e,t){this.url=a,this.svgText=e,this.options=t}}let jl=(()=>{class r{constructor(e,t,o,l){this._httpClient=e,this._sanitizer=t,this._errorHandler=l,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=o}addSvgIcon(e,t,o){return this.addSvgIconInNamespace("",e,t,o)}addSvgIconLiteral(e,t,o){return this.addSvgIconLiteralInNamespace("",e,t,o)}addSvgIconInNamespace(e,t,o,l){return this._addSvgIconConfig(e,t,new co(o,null,l))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,t,o,l){const c=this._sanitizer.sanitize(u.q3G.HTML,o);if(!c)throw Nl(o);const n=Id(c);return this._addSvgIconConfig(e,t,new co("",n,l))}addSvgIconSet(e,t){return this.addSvgIconSetInNamespace("",e,t)}addSvgIconSetLiteral(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}addSvgIconSetInNamespace(e,t,o){return this._addSvgIconSetConfig(e,new co(t,null,o))}addSvgIconSetLiteralInNamespace(e,t,o){const l=this._sanitizer.sanitize(u.q3G.HTML,t);if(!l)throw Nl(t);const c=Id(l);return this._addSvgIconSetConfig(e,new co("",c,o))}registerFontClassAlias(e,t=e){return this._fontCssClassesByAlias.set(e,t),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const t=this._sanitizer.sanitize(u.q3G.RESOURCE_URL,e);if(!t)throw ip(e);const o=this._cachedIconsByUrl.get(t);return o?(0,De.of)(Vd(o)):this._loadSvgIconFromConfig(new co(e,null)).pipe((0,bt.b)(l=>this._cachedIconsByUrl.set(t,l)),(0,ze.U)(l=>Vd(l)))}getNamedSvgIcon(e,t=""){const o=O_(t,e);let l=this._svgIconConfigs.get(o);if(l)return this._getSvgFromConfig(l);if(l=this._getIconConfigFromResolvers(t,e),l)return this._svgIconConfigs.set(o,l),this._getSvgFromConfig(l);const c=this._iconSetConfigs.get(t);return c?this._getSvgFromIconSetConfigs(e,c):(0,_n._)(gA(o))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?(0,De.of)(Vd(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe((0,ze.U)(t=>Vd(t)))}_getSvgFromIconSetConfigs(e,t){const o=this._extractIconWithNameFromAnySet(e,t);return o?(0,De.of)(o):Pd(t.filter(c=>!c.svgText).map(c=>this._loadSvgIconSetFromConfig(c).pipe((0,M.K)(n=>{const s=`Loading icon set URL: ${this._sanitizer.sanitize(u.q3G.RESOURCE_URL,c.url)} failed: ${n.message}`;return this._errorHandler.handleError(new Error(s)),(0,De.of)(null)})))).pipe((0,ze.U)(()=>{const c=this._extractIconWithNameFromAnySet(e,t);if(!c)throw gA(e);return c}))}_extractIconWithNameFromAnySet(e,t){for(let o=t.length-1;o>=0;o--){const l=t[o];if(l.svgText&&l.svgText.toString().indexOf(e)>-1){const c=this._svgElementFromConfig(l),n=this._extractSvgIconFromSet(c,e,l.options);if(n)return n}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe((0,bt.b)(t=>e.svgText=t),(0,ze.U)(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?(0,De.of)(null):this._fetchIcon(e).pipe((0,bt.b)(t=>e.svgText=t))}_extractSvgIconFromSet(e,t,o){const l=e.querySelector(`[id="${t}"]`);if(!l)return null;const c=l.cloneNode(!0);if(c.removeAttribute("id"),"svg"===c.nodeName.toLowerCase())return this._setSvgAttributes(c,o);if("symbol"===c.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(c),o);const n=this._svgElementFromString(Id(""));return n.appendChild(c),this._setSvgAttributes(n,o)}_svgElementFromString(e){const t=this._document.createElement("DIV");t.innerHTML=e;const o=t.querySelector("svg");if(!o)throw Error(" tag not found");return o}_toSvgElement(e){const t=this._svgElementFromString(Id("")),o=e.attributes;for(let l=0;lId(s)),Mt(()=>this._inProgressUrlFetches.delete(c)),(0,pd.B)());return this._inProgressUrlFetches.set(c,i),i}_addSvgIconConfig(e,t,o){return this._svgIconConfigs.set(O_(e,t),o),this}_addSvgIconSetConfig(e,t){const o=this._iconSetConfigs.get(e);return o?o.push(t):this._iconSetConfigs.set(e,[t]),this}_svgElementFromConfig(e){if(!e.svgElement){const t=this._svgElementFromString(e.svgText);this._setSvgAttributes(t,e.options),e.svgElement=t}return e.svgElement}_getIconConfigFromResolvers(e,t){for(let o=0;oa?a.pathname+a.search:""}}}),F_=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],ps=F_.map(r=>`[${r}]`).join(", "),wA=/^url\(['"]?#(.*?)['"]?\)$/;let xn=(()=>{class r extends bA{constructor(e,t,o,l,c,n){super(e),this._iconRegistry=t,this._location=l,this._errorHandler=c,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=Ft.w0.EMPTY,n&&(n.color&&(this.color=this.defaultColor=n.color),n.fontSet&&(this.fontSet=n.fontSet)),o||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=Ze(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const t=this._cleanupFontValue(e);t!==this._fontSet&&(this._fontSet=t,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const t=this._cleanupFontValue(e);t!==this._fontIcon&&(this._fontIcon=t,this._updateFontIconClasses())}_splitIconName(e){if(!e)return["",""];const t=e.split(":");switch(t.length){case 1:return["",t[0]];case 2:return t;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.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(e){this._clearSvgElement();const t=this._location.getPathname();this._previousPath=t,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(t),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let t=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();t--;){const o=e.childNodes[t];(1!==o.nodeType||"svg"===o.nodeName.toLowerCase())&&o.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,t=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(o=>o.length>0);this._previousFontSetClass.forEach(o=>e.classList.remove(o)),t.forEach(o=>e.classList.add(o)),this._previousFontSetClass=t,this.fontIcon!==this._previousFontIconClass&&!t.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return"string"==typeof e?e.trim().split(" ")[0]:e}_prependPathToReferences(e){const t=this._elementsWithExternalReferences;t&&t.forEach((o,l)=>{o.forEach(c=>{l.setAttribute(c.name,`url('${e}#${c.value}')`)})})}_cacheChildrenWithExternalReferences(e){const t=e.querySelectorAll(ps),o=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let l=0;l{const n=t[l],i=n.getAttribute(c),s=i?i.match(wA):null;if(s){let d=o.get(n);d||(d=[],o.set(n,d)),d.push({name:c,value:s[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[t,o]=this._splitIconName(e);t&&(this._svgNamespace=t),o&&(this._svgName=o),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(o,t).pipe((0,Gt.q)(1)).subscribe(l=>this._setSvgElement(l),l=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${t}:${o}! ${l.message}`))})}}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(u.SBq),u.Y36(jl),u.$8M("aria-hidden"),u.Y36(L_),u.Y36(u.qLn),u.Y36(CA,8))},r.\u0275cmp=u.Xpm({type:r,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,t){2&e&&(u.uIk("data-mat-icon-type",t._usingFontIcon()?"font":"svg")("data-mat-icon-name",t._svgName||t.fontIcon)("data-mat-icon-namespace",t._svgNamespace||t.fontSet),u.ekj("mat-icon-inline",t.inline)("mat-icon-no-color","primary"!==t.color&&"accent"!==t.color&&"warn"!==t.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[u.qOj],ngContentSelectors:mA,decls:1,vars:0,template:function(e,t){1&e&&(u.F$t(),u.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[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}"],encapsulation:2,changeDetection:0}),r})(),Vr=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({imports:[qe,qe]}),r})();class fs{}let N_=(()=>{class r extends fs{getTranslation(e){return(0,De.of)({})}}return r.\u0275fac=function(){let a;return function(t){return(a||(a=u.n5z(r)))(t||r)}}(),r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac}),r})();class Bd{}let j_=(()=>{class r{handle(e){return e.key}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac}),r})();function ms(r,a){if(r===a)return!0;if(null===r||null===a)return!1;if(r!=r&&a!=a)return!0;let o,l,c,e=typeof r;if(e==typeof a&&"object"==e){if(!Array.isArray(r)){if(Array.isArray(a))return!1;for(l in c=Object.create(null),r){if(!ms(r[l],a[l]))return!1;c[l]=!0}for(l in a)if(!(l in c)&&typeof a[l]<"u")return!1;return!0}if(!Array.isArray(a))return!1;if((o=r.length)==a.length){for(l=0;l{Od(a[t])?t in r?e[t]=np(r[t],a[t]):Object.assign(e,{[t]:a[t]}):Object.assign(e,{[t]:a[t]})}),e}class Ld{}let z_=(()=>{class r extends Ld{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(e,t){let o;return o="string"==typeof e?this.interpolateString(e,t):"function"==typeof e?this.interpolateFunction(e,t):e,o}getValue(e,t){let o="string"==typeof t?t.split("."):[t];t="";do{t+=o.shift(),!Aa(e)||!Aa(e[t])||"object"!=typeof e[t]&&o.length?o.length?t+=".":e=void 0:(e=e[t],t="")}while(o.length);return e}interpolateFunction(e,t){return e(t)}interpolateString(e,t){return t?e.replace(this.templateMatcher,(o,l)=>{let c=this.getValue(t,l);return Aa(c)?c:o}):e}}return r.\u0275fac=function(){let a;return function(t){return(a||(a=u.n5z(r)))(t||r)}}(),r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac}),r})();class Fd{}let Nd=(()=>{class r extends Fd{compile(e,t){return e}compileTranslations(e,t){return e}}return r.\u0275fac=function(){let a;return function(t){return(a||(a=u.n5z(r)))(t||r)}}(),r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac}),r})();class U_{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new u.vpe,this.onLangChange=new u.vpe,this.onDefaultLangChange=new u.vpe}}const jd=new u.OlP("USE_STORE"),rp=new u.OlP("USE_DEFAULT_LANG"),ap=new u.OlP("DEFAULT_LANGUAGE"),op=new u.OlP("USE_EXTEND");let Tn=(()=>{class r{constructor(e,t,o,l,c,n=!0,i=!1,s=!1,d){this.store=e,this.currentLoader=t,this.compiler=o,this.parser=l,this.missingTranslationHandler=c,this.useDefaultLang=n,this.isolate=i,this.extend=s,this.pending=!1,this._onTranslationChange=new u.vpe,this._onLangChange=new u.vpe,this._onDefaultLangChange=new u.vpe,this._langs=[],this._translations={},this._translationRequests={},d&&this.setDefaultLang(d)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(e){this.isolate?this._currentLang=e:this.store.currentLang=e}get langs(){return this.isolate?this._langs:this.store.langs}set langs(e){this.isolate?this._langs=e:this.store.langs=e}get translations(){return this.isolate?this._translations:this.store.translations}set translations(e){this.isolate?this._translations=e:this.store.translations=e}setDefaultLang(e){if(e===this.defaultLang)return;let t=this.retrieveTranslations(e);typeof t<"u"?(null==this.defaultLang&&(this.defaultLang=e),t.pipe((0,Gt.q)(1)).subscribe(o=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(e===this.currentLang)return(0,De.of)(this.translations[e]);let t=this.retrieveTranslations(e);return typeof t<"u"?(this.currentLang||(this.currentLang=e),t.pipe((0,Gt.q)(1)).subscribe(o=>{this.changeLang(e)}),t):(this.changeLang(e),(0,De.of)(this.translations[e]))}retrieveTranslations(e){let t;return(typeof this.translations[e]>"u"||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),t=this._translationRequests[e]),t}getTranslation(e){this.pending=!0;const t=this.currentLoader.getTranslation(e).pipe(Dh(1),(0,Gt.q)(1));return this.loadingTranslations=t.pipe((0,ze.U)(o=>this.compiler.compileTranslations(o,e)),Dh(1),(0,Gt.q)(1)),this.loadingTranslations.subscribe({next:o=>{this.translations[e]=this.extend&&this.translations[e]?{...o,...this.translations[e]}:o,this.updateLangs(),this.pending=!1},error:o=>{this.pending=!1}}),t}setTranslation(e,t,o=!1){t=this.compiler.compileTranslations(t,e),this.translations[e]=(o||this.extend)&&this.translations[e]?np(this.translations[e],t):t,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return this.langs}addLangs(e){e.forEach(t=>{-1===this.langs.indexOf(t)&&this.langs.push(t)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(e,t,o){let l;if(t instanceof Array){let c={},n=!1;for(let i of t)c[i]=this.getParsedResult(e,i,o),Yi(c[i])&&(n=!0);return n?Pd(t.map(s=>Yi(c[s])?c[s]:(0,De.of)(c[s]))).pipe((0,ze.U)(s=>{let d={};return s.forEach((h,f)=>{d[t[f]]=h}),d})):c}if(e&&(l=this.parser.interpolate(this.parser.getValue(e,t),o)),typeof l>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(l=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],t),o)),typeof l>"u"){let c={key:t,translateService:this};typeof o<"u"&&(c.interpolateParams=o),l=this.missingTranslationHandler.handle(c)}return typeof l<"u"?l:t}get(e,t){if(!Aa(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,Gi.b)(o=>Yi(o=this.getParsedResult(o,e,t))?o:(0,De.of)(o)));{let o=this.getParsedResult(this.translations[this.currentLang],e,t);return Yi(o)?o:(0,De.of)(o)}}getStreamOnTranslationChange(e,t){if(!Aa(e)||!e.length)throw new Error('Parameter "key" required');return(0,ea.z)(ta(()=>this.get(e,t)),this.onTranslationChange.pipe((0,Ai.w)(o=>{const l=this.getParsedResult(o.translations,e,t);return"function"==typeof l.subscribe?l:(0,De.of)(l)})))}stream(e,t){if(!Aa(e)||!e.length)throw new Error('Parameter "key" required');return(0,ea.z)(ta(()=>this.get(e,t)),this.onLangChange.pipe((0,Ai.w)(o=>{const l=this.getParsedResult(o.translations,e,t);return Yi(l)?l:(0,De.of)(l)})))}instant(e,t){if(!Aa(e)||!e.length)throw new Error('Parameter "key" required');let o=this.getParsedResult(this.translations[this.currentLang],e,t);if(Yi(o)){if(e instanceof Array){let l={};return e.forEach((c,n)=>{l[e[n]]=e[n]}),l}return e}return o}set(e,t,o=this.currentLang){this.translations[o][e]=this.compiler.compile(t,o),this.updateLangs(),this.onTranslationChange.emit({lang:o,translations:this.translations[o]})}changeLang(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),null==this.defaultLang&&this.changeDefaultLang(e)}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return this.resetLang(e),this.getTranslation(e)}resetLang(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof e>"u"?void 0:(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,e}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(U_),u.LFG(fs),u.LFG(Fd),u.LFG(Ld),u.LFG(Bd),u.LFG(rp),u.LFG(jd),u.LFG(op),u.LFG(ap))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac}),r})(),oi=(()=>{class r{constructor(e,t){this.translate=e,this._ref=t,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(e,t,o){let l=c=>{this.value=void 0!==c?c:e,this.lastKey=e,this._ref.markForCheck()};if(o){let c=this.translate.getParsedResult(o,e,t);Yi(c.subscribe)?c.subscribe(l):l(c)}this.translate.get(e,t).subscribe(l)}transform(e,...t){if(!e||!e.length)return e;if(ms(e,this.lastKey)&&ms(t,this.lastParams))return this.value;let o;if(Aa(t[0])&&t.length)if("string"==typeof t[0]&&t[0].length){let l=t[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{o=JSON.parse(l)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${t[0]}`)}}else"object"==typeof t[0]&&!Array.isArray(t[0])&&(o=t[0]);return this.lastKey=e,this.lastParams=t,this.updateValue(e,o),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(l=>{this.lastKey&&l.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,o,l.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(l=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,o,l.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,o))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(Tn,16),u.Y36(u.sBO,16))},r.\u0275pipe=u.Yjl({name:"translate",type:r,pure:!1}),r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac}),r})(),gs=(()=>{class r{static forRoot(e={}){return{ngModule:r,providers:[e.loader||{provide:fs,useClass:N_},e.compiler||{provide:Fd,useClass:Nd},e.parser||{provide:Ld,useClass:z_},e.missingTranslationHandler||{provide:Bd,useClass:j_},U_,{provide:jd,useValue:e.isolate},{provide:rp,useValue:e.useDefaultLang},{provide:op,useValue:e.extend},{provide:ap,useValue:e.defaultLanguage},Tn]}}static forChild(e={}){return{ngModule:r,providers:[e.loader||{provide:fs,useClass:N_},e.compiler||{provide:Fd,useClass:Nd},e.parser||{provide:Ld,useClass:z_},e.missingTranslationHandler||{provide:Bd,useClass:j_},{provide:jd,useValue:e.isolate},{provide:rp,useValue:e.useDefaultLang},{provide:op,useValue:e.extend},{provide:ap,useValue:e.defaultLanguage},Tn]}}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({}),r})(),G_=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({imports:[Md,Fl,Vr,On,gs,T.ez]}),r})();var q_=x(5861);function W_(r,a){}class zd{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0}}let sp=(()=>{class r extends Ih{constructor(e,t,o,l,c,n,i,s){super(),this._elementRef=e,this._focusTrapFactory=t,this._config=l,this._interactivityChecker=c,this._ngZone=n,this._overlayRef=i,this._focusMonitor=s,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=d=>{this._portalOutlet.hasAttached();const h=this._portalOutlet.attachDomPortal(d);return this._contentAttached(),h},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=o}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();const t=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),t}attachTemplatePortal(e){this._portalOutlet.hasAttached();const t=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),t}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const o=()=>{e.removeEventListener("blur",o),e.removeEventListener("mousedown",o),e.removeAttribute("tabindex")};e.addEventListener("blur",o),e.addEventListener("mousedown",o)})),e.focus(t)}_focusByCssSelector(e,t){let o=this._elementRef.nativeElement.querySelector(e);o&&this._forceFocus(o,t)}_trapFocus(){const e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(t=>{t||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const e=this._config.restoreFocus;let t=null;if("string"==typeof e?t=this._document.querySelector(e):"boolean"==typeof e?t=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(t=e),this._config.restoreFocus&&t&&"function"==typeof t.focus){const o=Qo(),l=this._elementRef.nativeElement;(!o||o===this._document.body||o===l||l.contains(o))&&(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,t=Qo();return e===t||e.contains(t)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=Qo())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(u.SBq),u.Y36(lh),u.Y36(T.K0,8),u.Y36(zd),u.Y36(nd),u.Y36(u.R0b),u.Y36(ls),u.Y36(yn))},r.\u0275cmp=u.Xpm({type:r,selectors:[["cdk-dialog-container"]],viewQuery:function(e,t){if(1&e&&u.Gf(Pr,7),2&e){let o;u.iGM(o=u.CRH())&&(t._portalOutlet=o.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(e,t){2&e&&u.uIk("id",t._config.id||null)("role",t._config.role)("aria-modal",t._config.ariaModal)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null)},features:[u.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&u.YNc(0,W_,0,0,"ng-template",0)},dependencies:[Pr],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),r})();class lp{constructor(a,e){this.overlayRef=a,this.config=e,this.closed=new Se.x,this.disableClose=e.disableClose,this.backdropClick=a.backdropClick(),this.keydownEvents=a.keydownEvents(),this.outsidePointerEvents=a.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(t=>{27===t.keyCode&&!this.disableClose&&!nr(t)&&(t.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(a,e){if(this.containerInstance){const t=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this.overlayRef.dispose(),t.next(a),t.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(a="",e=""){return this.overlayRef.updateSize({width:a,height:e}),this}addPanelClass(a){return this.overlayRef.addPanelClass(a),this}removePanelClass(a){return this.overlayRef.removePanelClass(a),this}}const $_=new u.OlP("DialogScrollStrategy"),vA=new u.OlP("DialogData"),cp=new u.OlP("DefaultDialogConfig"),Y_={provide:$_,deps:[cn],useFactory:function dp(r){return()=>r.scrollStrategies.block()}};let up=0,Q_=(()=>{class r{constructor(e,t,o,l,c,n){this._overlay=e,this._injector=t,this._defaultOptions=o,this._parentDialog=l,this._overlayContainer=c,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Se.x,this._afterOpenedAtThisLevel=new Se.x,this._ariaHiddenElements=new Map,this.afterAllClosed=ta(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(It(void 0))),this._scrollStrategy=n}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}open(e,t){(t={...this._defaultOptions||new zd,...t}).id=t.id||"cdk-dialog-"+up++,t.id&&this.getDialogById(t.id);const l=this._getOverlayConfig(t),c=this._overlay.create(l),n=new lp(c,t),i=this._attachContainer(c,n,t);return n.containerInstance=i,this._attachDialogContent(e,n,i,t),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(n),n.closed.subscribe(()=>this._removeOpenDialog(n,!0)),this.afterOpened.next(n),n}closeAll(){hp(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){hp(this._openDialogsAtThisLevel,e=>{!1===e.config.closeOnDestroy&&this._removeOpenDialog(e,!1)}),hp(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){const t=new ya({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}_attachContainer(e,t,o){const l=o.injector??o.viewContainerRef?.injector,c=[{provide:zd,useValue:o},{provide:lp,useValue:t},{provide:ls,useValue:e}];let n;o.container?"function"==typeof o.container?n=o.container:(n=o.container.type,c.push(...o.container.providers(o))):n=sp;const i=new gd(n,o.viewContainerRef,u.zs3.create({parent:l||this._injector,providers:c}),o.componentFactoryResolver);return e.attach(i).instance}_attachDialogContent(e,t,o,l){const c=this._createInjector(l,t,o);if(e instanceof u.Rgc){let n={$implicit:l.data,dialogRef:t};l.templateContext&&(n={...n,..."function"==typeof l.templateContext?l.templateContext():l.templateContext}),o.attachTemplatePortal(new wl(e,null,n,c))}else{const n=o.attachComponentPortal(new gd(e,l.viewContainerRef,c,l.componentFactoryResolver));t.componentInstance=n.instance}}_createInjector(e,t,o){const l=e&&e.viewContainerRef&&e.viewContainerRef.injector,c=[{provide:vA,useValue:e.data},{provide:lp,useValue:t}];return e.providers&&("function"==typeof e.providers?c.push(...e.providers(t,e,o)):c.push(...e.providers)),e.direction&&(!l||!l.get(on,null,u.XFs.Optional))&&c.push({provide:on,useValue:{value:e.direction,change:(0,De.of)()}}),u.zs3.create({parent:e.injector||l||this._injector,providers:c})}_removeOpenDialog(e,t){const o=this.openDialogs.indexOf(e);o>-1&&(this.openDialogs.splice(o,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((l,c)=>{l?c.setAttribute("aria-hidden",l):c.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),t&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const t=e.parentElement.children;for(let o=t.length-1;o>-1;o--){const l=t[o];l!==e&&"SCRIPT"!==l.nodeName&&"STYLE"!==l.nodeName&&!l.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(l,l.getAttribute("aria-hidden")),l.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(cn),u.LFG(u.zs3),u.LFG(cp,8),u.LFG(r,12),u.LFG(Ml),u.LFG($_))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac}),r})();function hp(r,a){let e=r.length;for(;e--;)a(r[e])}let pp=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({providers:[Q_,Y_],imports:[cs,wn,dl,wn]}),r})();function AA(r,a){}const uo={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},_s={dialogContainer:$t("dialogContainer",[ft("void, exit",Fe({opacity:0,transform:"scale(0.7)"})),ft("enter",Fe({transform:"none"})),Ct("* => enter",Gh([wt("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",Fe({transform:"none",opacity:1})),Pl("@*",Hl(),{optional:!0})]),uo),Ct("* => void, * => exit",Gh([wt("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",Fe({opacity:0})),Pl("@*",Hl(),{optional:!0})]),uo)])};class bs{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="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0,this.enterAnimationDuration=uo.params.enterAnimationDuration,this.exitAnimationDuration=uo.params.exitAnimationDuration}}let xA=(()=>{class r extends sp{constructor(e,t,o,l,c,n,i,s){super(e,t,o,l,c,n,i,s),this._animationStateChanged=new u.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(u.SBq),u.Y36(lh),u.Y36(T.K0,8),u.Y36(bs),u.Y36(nd),u.Y36(u.R0b),u.Y36(ls),u.Y36(yn))},r.\u0275cmp=u.Xpm({type:r,selectors:[["ng-component"]],features:[u.qOj],decls:0,vars:0,template:function(e,t){},encapsulation:2}),r})(),KE=(()=>{class r extends xA{constructor(e,t,o,l,c,n,i,s,d){super(e,t,o,l,c,n,i,d),this._changeDetectorRef=s,this._state="enter"}_onAnimationDone({toState:e,totalTime:t}){"enter"===e?this._openAnimationDone(t):"exit"===e&&this._animationStateChanged.next({state:"closed",totalTime:t})}_onAnimationStart({toState:e,totalTime:t}){"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:t}):("exit"===e||"void"===e)&&this._animationStateChanged.next({state:"closing",totalTime:t})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||uo.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||uo.params.exitAnimationDuration}}}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(u.SBq),u.Y36(lh),u.Y36(T.K0,8),u.Y36(bs),u.Y36(nd),u.Y36(u.R0b),u.Y36(ls),u.Y36(u.sBO),u.Y36(yn))},r.\u0275cmp=u.Xpm({type:r,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(e,t){1&e&&u.WFA("@dialogContainer.start",function(l){return t._onAnimationStart(l)})("@dialogContainer.done",function(l){return t._onAnimationDone(l)}),2&e&&(u.Ikx("id",t._config.id),u.uIk("aria-modal",t._config.ariaModal)("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),u.d8E("@dialogContainer",t._getAnimationState()))},features:[u.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&u.YNc(0,AA,0,0,"ng-template",0)},dependencies:[Pr],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.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.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}"],encapsulation:2,data:{animation:[_s.dialogContainer]}}),r})();class dn{constructor(a,e,t){this._ref=a,this._containerInstance=t,this._afterOpened=new Se.x,this._beforeClosed=new Se.x,this._state=0,this.disableClose=e.disableClose,this.id=a.id,t._animationStateChanged.pipe((0,ti.h)(o=>"opened"===o.state),(0,Gt.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),t._animationStateChanged.pipe((0,ti.h)(o=>"closed"===o.state),(0,Gt.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),a.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,ln.T)(this.backdropClick(),this.keydownEvents().pipe((0,ti.h)(o=>27===o.keyCode&&!this.disableClose&&!nr(o)))).subscribe(o=>{this.disableClose||(o.preventDefault(),function fp(r,a,e){r._closeInteractionType=a,r.close(e)}(this,"keydown"===o.type?"keyboard":"mouse"))})}close(a){this._result=a,this._containerInstance._animationStateChanged.pipe((0,ti.h)(e=>"closing"===e.state),(0,Gt.q)(1)).subscribe(e=>{this._beforeClosed.next(a),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(a){let e=this._ref.config.positionStrategy;return a&&(a.left||a.right)?a.left?e.left(a.left):e.right(a.right):e.centerHorizontally(),a&&(a.top||a.bottom)?a.top?e.top(a.top):e.bottom(a.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(a="",e=""){return this._ref.updateSize(a,e),this}addPanelClass(a){return this._ref.addPanelClass(a),this}removePanelClass(a){return this._ref.removePanelClass(a),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}const ho=new u.OlP("MatDialogData"),mp=new u.OlP("mat-dialog-default-options"),J_=new u.OlP("mat-dialog-scroll-strategy"),K_={provide:J_,deps:[cn],useFactory:function gp(r){return()=>r.scrollStrategies.block()}};let Z_=0,X_=(()=>{class r{constructor(e,t,o,l,c,n,i,s,d,h){this._overlay=e,this._defaultOptions=o,this._parentDialog=l,this._dialogRefConstructor=i,this._dialogContainerType=s,this._dialogDataToken=d,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Se.x,this._afterOpenedAtThisLevel=new Se.x,this._idPrefix="mat-dialog-",this.afterAllClosed=ta(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(It(void 0))),this._scrollStrategy=n,this._dialog=t.get(Q_)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(e,t){let o;(t={...this._defaultOptions||new bs,...t}).id=t.id||`${this._idPrefix}${Z_++}`,t.scrollStrategy=t.scrollStrategy||this._scrollStrategy();const l=this._dialog.open(e,{...t,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:bs,useValue:t},{provide:zd,useValue:t}]},templateContext:()=>({dialogRef:o}),providers:(c,n,i)=>(o=new this._dialogRefConstructor(c,t,i),o.updatePosition(t?.position),[{provide:this._dialogContainerType,useValue:i},{provide:this._dialogDataToken,useValue:n.data},{provide:this._dialogRefConstructor,useValue:o}])});return o.componentInstance=l.componentInstance,this.openDialogs.push(o),this.afterOpened.next(o),o.afterClosed().subscribe(()=>{const c=this.openDialogs.indexOf(o);c>-1&&(this.openDialogs.splice(c,1),this.openDialogs.length||this._getAfterAllClosed().next())}),o}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let t=e.length;for(;t--;)e[t].close()}}return r.\u0275fac=function(e){u.$Z()},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac}),r})(),un=(()=>{class r extends X_{constructor(e,t,o,l,c,n,i,s){super(e,t,l,n,i,c,dn,KE,ho,s)}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(cn),u.LFG(u.zs3),u.LFG(T.Ye,8),u.LFG(mp,8),u.LFG(J_),u.LFG(r,12),u.LFG(Ml),u.LFG(u.QbO,8))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac}),r})(),TA=0,Br=(()=>{class r{constructor(e,t,o){this._dialogRef=e,this._elementRef=t,this._dialog=o,this.id="mat-dialog-title-"+TA++}ngOnInit(){this._dialogRef||(this._dialogRef=function eS(r,a){let e=r.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-dialog-container");)e=e.parentElement;return e?a.find(t=>t.id===e.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const e=this._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=this.id)})}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(dn,8),u.Y36(u.SBq),u.Y36(un))},r.\u0275dir=u.lG2({type:r,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,t){2&e&&u.Ikx("id",t.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),r})(),Or=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275dir=u.lG2({type:r,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),r})(),dr=(()=>{class r{constructor(){this.align="start"}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275dir=u.lG2({type:r,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(e,t){2&e&&u.ekj("mat-dialog-actions-align-center","center"===t.align)("mat-dialog-actions-align-end","end"===t.align)},inputs:{align:"align"}}),r})(),zl=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({providers:[un,K_],imports:[pp,cs,wn,qe,qe]}),r})();function _p(){return(_p=(0,q_.Z)(function*(r,a){yield HA(r),a()})).apply(this,arguments)}function HA(r){return new Promise(a=>setTimeout(a,r))}function bp(r,a){for(const e of r)if(e.namespace+":"+e.friendlyName===a)return e;return null}function Qi(){const r=new bs;return r.disableClose=!0,r.autoFocus=!1,r}x(4327),new Intl.Collator("cs",{numeric:!0});let ui=(()=>{class r{constructor(){this.branding=""}setInstanceConfig(e){this.instanceConfig=e}setDefaultConfig(e){this.defaultConfig=e}getAppsConfig(){return this.appsConfig}setAppsConfig(e){this.appsConfig=e}setPerunPrincipal(e){this.principal=e}getPerunPrincipal(){return this.principal}getInitialPageId(){return this.initialPageId}setInitialPageId(e){this.initialPageId=e}getLoginAttributeNames(){return this.getProperty("login_namespace_attributes")}getMemberProfileAttributeNames(){return this.getProperty("member_profile_attributes_friendly_names")}setBanding(e){this.branding=e}getProperty(e){if(!this.instanceConfig||!this.defaultConfig)return null;const t=[this.instanceConfig?.brandings?.[this.branding],this.instanceConfig],o=this.defaultConfig[e];let l=null;for(const c of t)c&&null==l&&(l=c[e]);return null===l?o:this.addMissingValuesToProperty(l,o)}addMissingValuesToProperty(e,t){if("object"!=typeof e||Array.isArray(e)||null==e){if(null!=e)return e}else for(const o of Object.keys(t))t[o]=this.addMissingValuesToProperty(e[o],t[o]);return t}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();var Fr=x(1214);let Nr=(()=>{class r{constructor(e,t,o,l,c){this.injector=e,this.store=t,this.dialog=o,this.route=l,this.oauthService=c,setTimeout(()=>{this.router=this.injector.get(ni),this.startIdpFilterKeeper()}),this.route.queryParams.subscribe(n=>{n.idpFilter&&(this.filterShortname=String(n.idpFilter))})}loadOidcConfigData(){this.oauthService.configure(this.getClientConfig())}logout(){sessionStorage.getItem("baPrincipal")?(sessionStorage.removeItem("baPrincipal"),sessionStorage.removeItem("basicUsername"),sessionStorage.removeItem("basicPassword"),sessionStorage.setItem("baLogout","true"),this.router.navigate(["/service-access"],{queryParamsHandling:"preserve"})):this.oauthService.logOut()}isLoggedIn(){return this.oauthService.hasValidAccessToken()}getAuthorizationHeaderValue(){return this.oauthService.hasValidAccessToken()?"Bearer "+this.oauthService.getAccessToken():""}startAuthentication(){this.oauthService.loadDiscoveryDocumentAndLogin()}getIdpFilter(){return this.filterShortname}getClientConfig(){const e=this.setIdpFilter(),l=.5+.25*Math.random(),c=e?{acr_values:e}:{},n=this.store.getProperty("oidc_client");if(n.oauth_scopes.split(" ").includes("offline_access")&&n.oauth_offline_access_consent_prompt&&(c.prompt="consent"),(sessionStorage.getItem("mfa_route")||sessionStorage.getItem("mfaProcessed"))&&(c.acr_values="https://refeds.org/profile/mfa"),sessionStorage.getItem("mfa_route")&&(c.prompt?c.prompt+=" login":c.prompt="login",c.max_age="0"),"Linker"===this.store.getProperty("application")){c.prompt?c.prompt+=" login":c.prompt="login";const i=function vp(r,a){const e=a.split("&");for(const t of e){const[o,l]=t.split("=");if(o.includes(r))return l}return""}("idphint",location.search.substring(1));i&&(c.idphint=i)}return{requestAccessToken:!0,issuer:n.oauth_authority,clientId:n.oauth_client_id,redirectUri:n.oauth_redirect_uri,postLogoutRedirectUri:n.oauth_post_logout_redirect_uri,responseType:n.oauth_response_type,scope:n.oauth_scopes,clockSkewInSec:1,timeoutFactor:l,userinfoEndpoint:this.store.getProperty("oidc_client").user_info_endpoint_url,customQueryParams:c}}setIdpFilter(){const e=location.search.length?location.search.substring(1).split("&"):[];this.filterShortname=null;const t=this.store.getProperty("oidc_client").filters;if(!t)return null;let o=null;return e.forEach(l=>{const c=l.split("=");"idpFilter"===c[0]&&t[c[1]]&&(this.filterShortname=c[1],o=t[c[1]])}),t.default&&!o?(this.filterShortname="default",t.default):o}startIdpFilterKeeper(){this.router.events.pipe((0,ti.h)(e=>e instanceof oa)).subscribe(()=>{const e={idpFilter:this.getIdpFilter()};this.router.navigate([],{relativeTo:this.route,queryParams:"default"===e.idpFilter?{}:e,queryParamsHandling:"merge",replaceUrl:!0})})}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(u.zs3),u.LFG(ui),u.LFG(un),u.LFG(Rn),u.LFG(Fr.Ct))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),sb=(()=>{class r{constructor(e){this.dialogRef=e}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(dn))},r.\u0275cmp=u.Xpm({type:r,selectors:[["perun-web-apps-user-dont-exist-dialog"]],decls:3,vars:3,consts:[["mat-dialog-content","",1,"mt-2","mb-2"]],template:function(e,t){1&e&&(u.TgZ(0,"h2",0),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.USER_DONT_EXIST.TITLE"),"\n"))},dependencies:[Or,oi]}),r})();var lb=x(930);function Ap(r,a){const e="object"==typeof a;return new Promise((t,o)=>{const l=new lb.Hp({next:c=>{t(c),l.unsubscribe()},error:o,complete:()=>{e?t(a.defaultValue):o(new ko.K)}});r.subscribe(l)})}function cb(r,a){1&r&&(u.TgZ(0,"mat-icon",2),u._uU(1," info "),u.qZA())}function GA(r,a){1&r&&(u.TgZ(0,"mat-icon",2),u._uU(1," warning "),u.qZA())}function db(r,a){1&r&&(u.TgZ(0,"mat-icon",2),u._uU(1," dangerous "),u.qZA())}function ub(r,a){1&r&&(u.TgZ(0,"mat-icon",2),u._uU(1," check_circle "),u.qZA())}const qA=["*"];let Gl=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275cmp=u.Xpm({type:r,selectors:[["perun-web-apps-alert"]],inputs:{alert_type:"alert_type"},ngContentSelectors:qA,decls:6,vars:12,consts:[[1,"perun-alert","d-flex","align-items-flex-start"],["class","perun-alert-icon",4,"ngIf"],[1,"perun-alert-icon"]],template:function(e,t){1&e&&(u.F$t(),u.TgZ(0,"div",0),u.YNc(1,cb,2,0,"mat-icon",1),u.YNc(2,GA,2,0,"mat-icon",1),u.YNc(3,db,2,0,"mat-icon",1),u.YNc(4,ub,2,0,"mat-icon",1),u.Hsn(5),u.qZA()),2&e&&(u.ekj("warn-alert","warn"===t.alert_type)("error-alert","error"===t.alert_type)("success-alert","success"===t.alert_type)("info-alert","info"===t.alert_type),u.xp6(1),u.Q6J("ngIf","info"===t.alert_type),u.xp6(1),u.Q6J("ngIf","warn"===t.alert_type),u.xp6(1),u.Q6J("ngIf","error"===t.alert_type),u.xp6(1),u.Q6J("ngIf","success"===t.alert_type))},dependencies:[xn,T.O5],styles:[".perun-alert[_ngcontent-%COMP%]{position:relative;padding:.75rem 1.25rem;margin-top:1rem;margin-bottom:1rem}.perun-alert.info-alert[_ngcontent-%COMP%]{font-style:italic;color:gray;text-align:left;border:1px #b3b3b3 solid;border-radius:10px}.perun-alert.warn-alert[_ngcontent-%COMP%]{font-weight:700;text-align:left;border:1px #ececec solid;border-radius:10px;background-color:#ececec}.perun-alert-icon[_ngcontent-%COMP%]{padding-right:2rem}.perun-alert.error-alert[_ngcontent-%COMP%]{text-align:left;border:1px #fedcda solid;border-radius:10px;background-color:#fedcda}.perun-alert.success-alert[_ngcontent-%COMP%]{text-align:left;border:1px #d7ffd7 solid;border-radius:10px;background-color:#d7ffd7}"]}),r})(),WA=(()=>{class r{constructor(e,t){this.dialogRef=e,this.data=t}cancel(){this.dialogRef.close(!1)}submit(){this.dialogRef.close(!0)}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(dn),u.Y36(ho))},r.\u0275cmp=u.Xpm({type:r,selectors:[["perun-web-apps-mfa-required-dialog"]],decls:15,vars:17,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["alert_type","warn"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"hidden","click"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,t){1&e&&(u.TgZ(0,"h1",0),u._uU(1),u.ALo(2,"translate"),u.qZA(),u.TgZ(3,"div",1)(4,"perun-web-apps-alert",2),u._uU(5),u.ALo(6,"translate"),u.ALo(7,"translate"),u.qZA()(),u.TgZ(8,"div",3)(9,"button",4),u.NdJ("click",function(){return t.cancel()}),u._uU(10),u.ALo(11,"translate"),u.qZA(),u.TgZ(12,"button",5),u.NdJ("click",function(){return t.submit()}),u._uU(13),u.ALo(14,"translate"),u.qZA()()),2&e&&(u.xp6(1),u.Oqu(u.lcZ(2,7,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.TITLE")),u.xp6(4),u.hij(" ",t.data.mfaRoleException?u.lcZ(6,9,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.INFO_ROLE"):u.lcZ(7,11,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.INFO")," "),u.xp6(4),u.Q6J("hidden",t.data.mfaRoleException),u.xp6(1),u.hij(" ",u.lcZ(11,13,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.CANCEL")," "),u.xp6(2),u.Tol(t.data.mfaRoleException?"ml-auto":"ml-2"),u.xp6(1),u.hij(" ",u.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.STEP_UP")," "))},dependencies:[Br,Or,dr,ji,Gl,oi]}),r})(),zi=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275cmp=u.Xpm({type:r,selectors:[["perun-web-apps-focus-on-mfa-window"]],decls:9,vars:6,consts:[[1,"text-center","custom-dialog"],[1,"align-text-bottom"]],template:function(e,t){1&e&&(u.TgZ(0,"div",0)(1,"div")(2,"mat-icon",1),u._uU(3," info "),u.qZA(),u._uU(4),u.ALo(5,"translate"),u.qZA(),u.TgZ(6,"div"),u._uU(7),u.ALo(8,"translate"),u.qZA()()),2&e&&(u.xp6(4),u.hij(" ",u.lcZ(5,2,"SHARED_LIB.PERUN.COMPONENTS.FOCUS_ON_MFA_DIALOG.MODAL")," "),u.xp6(3),u.hij(" ",u.lcZ(8,4,"SHARED_LIB.PERUN.COMPONENTS.FOCUS_ON_MFA_DIALOG.MODAL_WARNING")," "))},dependencies:[xn,oi],styles:[".custom-dialog[_ngcontent-%COMP%]{background-color:#000;color:#fffffff2;font-size:1.2rem}"]}),r})(),Cs=(()=>{class r{constructor(e,t){this.data=e,this.dialogRef=t}cancel(){this.dialogRef.close(!1)}submit(){window.open(this.data.tokensUrl,"_blank"),this.dialogRef.close(!0)}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(ho),u.Y36(dn))},r.\u0275cmp=u.Xpm({type:r,selectors:[["perun-web-apps-no-mfa-tokens-dialog"]],decls:14,vars:12,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["alert_type","warn"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(u.TgZ(0,"h1",0),u._uU(1),u.ALo(2,"translate"),u.qZA(),u.TgZ(3,"div",1)(4,"perun-web-apps-alert",2),u._uU(5),u.ALo(6,"translate"),u.qZA()(),u.TgZ(7,"div",3)(8,"button",4),u.NdJ("click",function(){return t.cancel()}),u._uU(9),u.ALo(10,"translate"),u.qZA(),u.TgZ(11,"button",5),u.NdJ("click",function(){return t.submit()}),u._uU(12),u.ALo(13,"translate"),u.qZA()()),2&e&&(u.xp6(1),u.Oqu(u.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.TITLE")),u.xp6(4),u.hij(" ",u.lcZ(6,6,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.INFO")," "),u.xp6(4),u.hij(" ",u.lcZ(10,8,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.CANCEL")," "),u.xp6(3),u.hij(" ",u.lcZ(13,10,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.MANAGE_TOKENS")," "))},dependencies:[Br,Or,dr,ji,Gl,oi]}),r})(),xp=(()=>{class r{constructor(e,t,o,l){this.dialog=e,this.oauthService=t,this.authService=o,this.store=l}openMfaWindow(e){let t=null,o=null;const l=Qi();l.width="450px",l.data={mfaRoleException:e};const c=this.dialog.open(WA,l);let n=!1;if(c.afterClosed().subscribe(i=>{if(i){if(sessionStorage.setItem("mfaRequired","true"),sessionStorage.setItem("oldAccessToken",this.oauthService.getAccessToken()),sessionStorage.setItem("oldRefreshToken",this.oauthService.getRefreshToken()),t=this.setupMfaWindow(),t){const s=Qi();s.width="450px",s.panelClass="noBorderDialog",o=this.dialog.open(zi,s)}}else n=!0}),localStorage.getItem("noMfaTokenDialog")){localStorage.removeItem("noMfaTokenDialog");const i=Qi();i.width="450px",i.data={tokensUrl:this.store.getProperty("mfa").url_en},this.dialog.open(Cs,i)}return new bi.y(i=>{const s=setInterval(()=>t?.closed?(clearInterval(s),o.close(),sessionStorage.removeItem("mfaRequired"),sessionStorage.removeItem("mfaProcessed"),null===this.oauthService.getAccessToken()&&(localStorage.setItem("access_token",sessionStorage.getItem("oldAccessToken")),localStorage.setItem("refresh_token",sessionStorage.getItem("oldRefreshToken"))),i.next(!0)):n?(clearInterval(s),i.next(!1)):void 0,1e3)})}catchNoMfaTokenError(e){"unmet_authentication_requirements"===e&&(localStorage.setItem("noMfaTokenDialog","true"),window.close())}mfaWindowForceLogout(){if(sessionStorage.getItem("mfaRequired")&&!sessionStorage.getItem("mfaProcessed"))return sessionStorage.setItem("mfaProcessed","true"),this.oauthService.logOut(!0),this.authService.loadOidcConfigData(),void this.oauthService.loadDiscoveryDocumentAndLogin();sessionStorage.removeItem("mfaRequired")}closeMfaWindow(){sessionStorage.getItem("mfaProcessed")&&!sessionStorage.getItem("mfaRequired")&&(sessionStorage.removeItem("mfaProcessed"),window.close())}setupMfaWindow(){const e=location.pathname+location.search,l=window.top;return window.open(e,"_blank",`width=600,height=600,top=${l.outerHeight/2+l.screenY-300}, left=${l.outerWidth/2+l.screenX-300}`)}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(un),u.LFG(Fr.Ct),u.LFG(Nr),u.LFG(ui))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),ys=(()=>{class r{constructor(e,t,o,l,c,n,i,s){this.authService=e,this.oauthService=t,this.storeService=o,this.authResolver=l,this.authzService=c,this.dialog=n,this.router=i,this.mfaHandlerService=s,this.loginScreenShown=!1,this.serviceAccess=!1,this.serviceAccessLoginScreen=!1}isLoginScreenShown(){return this.loginScreenShown}isServiceAccess(){return this.serviceAccess}isServiceAccessLoginScreenShown(){return this.serviceAccessLoginScreen}verifyAuth(){if(this.mfaHandlerService.mfaWindowForceLogout(),sessionStorage.getItem("baPrincipal"))return this.serviceAccess=!0,sessionStorage.getItem("auth:redirect")?this.redirectToOriginDestination():Promise.resolve(!0);if("/service-access"!==location.pathname&&!this.storeService.getProperty("auto_service_access_redirect")){this.authService.loadOidcConfigData();const e=location.pathname,t=location.search.substring(1);return"/api-callback"===e?this.oauthService.loadDiscoveryDocumentAndTryLogin().then(()=>this.startRefreshToken()).then(()=>this.redirectToOriginDestination()):this.oauthService.loadDiscoveryDocument().then(()=>this.tryRefreshToken()).then(()=>"Linker"===this.storeService.getProperty("application")?(sessionStorage.setItem("auth:queryParams",t),localStorage.removeItem("access_token"),!1):this.oauthService.hasValidAccessToken()?this.startRefreshToken():this.isPotentiallyValidPath(e)?(sessionStorage.setItem("auth:redirect",e),sessionStorage.setItem("auth:queryParams",t),!1):Promise.reject("Invalid path"))}}loadPrincipal(){return Ap(this.authzService.getPerunPrincipal()).then(e=>{if(null===e.user){const t=Qi();this.dialog.open(sb,t)}else this.storeService.setPerunPrincipal(e),this.authResolver.init(e)})}simpleLoadPrincipal(){return Ap(this.authzService.getPerunPrincipal()).then(e=>{this.storeService.setPerunPrincipal(e)})}checkRouteGuard(){const e=localStorage.getItem("routeAuthGuard");e&&(localStorage.removeItem("routeAuthGuard"),this.router.navigate([e],{queryParamsHandling:"merge"}))}handleAuthStart(){if(this.storeService.getProperty("auto_service_access_redirect")&&"/service-access"!==location.pathname){this.serviceAccess=!0,this.serviceAccessLoginScreen=!0;const e=location.pathname,t=location.search.substring(1);sessionStorage.setItem("auth:redirect",e),sessionStorage.setItem("auth:queryParams",t);const o={};return t.split("&").forEach(l=>{const c=l.split("=");o[c[0]]=c[1]}),this.router.navigate(["service-access"],{queryParams:o,queryParamsHandling:"merge"}).then()}if("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal")||this.storeService.getProperty("auto_service_access_redirect")){this.serviceAccess=!0,this.serviceAccessLoginScreen=!0;const e=location.search.substring(1);return sessionStorage.setItem("auth:queryParams",e),Promise.resolve()}return this.storeService.getProperty("auto_auth_redirect")?(sessionStorage.getItem("mfaProcessed")||localStorage.setItem("routeAuthGuard",window.location.pathname),this.startAuth().then(()=>new Promise(()=>{}))):(this.setLoginScreen(!0),localStorage.setItem("routeAuthGuard",window.location.pathname),void this.router.navigate(["login"],{queryParamsHandling:"merge"}))}setLoginScreen(e){this.loginScreenShown=e}isPotentiallyValidPath(e){const t=["/home","/organizations","/facilities","/myProfile","/admin","/login","/service-access","/profile"];if("/"===e)return!0;for(const o of t)if(e.startsWith(o))return!0;return!1}startRefreshToken(){return this.oauthService.hasValidAccessToken()?(this.oauthService.events.pipe((0,ti.h)(e=>"token_expires"===e.type&&"access_token"===e.info)).subscribe(()=>{this.oauthService.refreshToken()}),Promise.resolve(!0)):Promise.resolve(!1)}tryRefreshToken(){return localStorage.getItem("refresh_token")&&!this.oauthService.hasValidAccessToken()?this.oauthService.refreshToken().then(()=>Promise.resolve()).catch(()=>Promise.resolve()):Promise.resolve()}redirectToOriginDestination(){const e=sessionStorage.getItem("mfa_route");if(e)return this.router.navigate([e],{replaceUrl:!0,queryParamsHandling:"merge"});let t=sessionStorage.getItem("auth:redirect");(!t||"/login"===t)&&(t="/"),sessionStorage.removeItem("auth:redirect");const o=sessionStorage.getItem("auth:queryParams");let l=[];o&&(l=o.split("&"));const c={};return l.forEach(n=>{const i=n.split("=");c[i[0]]=i[1]}),sessionStorage.removeItem("auth:queryParams"),this.router.navigate([t],{queryParams:c,replaceUrl:!0,queryParamsHandling:"merge"})}startAuth(){return this.authService.startAuthentication(),Promise.resolve()}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(Nr),u.LFG(Fr.Ct),u.LFG(ui),u.LFG(Mf),u.LFG(at),u.LFG(un),u.LFG(ni),u.LFG(xp))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),$A=(()=>{class r{constructor(e,t){this.matIconRegistry=e,this.domSanitizer=t,this.customIcons=[{url:"assets/img/PerunWebImages/refresh_tab-black.svg",name:"perun-refresh-enabled"},{url:"assets/img/PerunWebImages/refresh_tab-grey.svg",name:"perun-refresh-disabled"},{url:"assets/img/PerunWebImages/manage_facility_white.svg",name:"perun-manage-facility"},{url:"assets/img/PerunWebImages/vo-white.svg",name:"perun-vo"},{url:"assets/img/PerunWebImages/user-white.svg",name:"perun-user"},{url:"assets/img/PerunWebImages/perun_admin-white.svg",name:"perun-perun-admin"},{url:"assets/img/PerunWebImages/group-white.svg",name:"perun-group"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/preview-white.svg",name:"perun-preview"},{url:"assets/img/PerunWebImages/module_dependencies.svg",name:"perun-module-dependencies"},{url:"assets/img/PerunWebImages/user_destination_relationship.svg",name:"perun-user-destination-relationship"},{url:"assets/img/PerunWebImages/settings2-white.svg",name:"perun-settings2"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/applications-white.svg",name:"perun-applications"},{url:"assets/img/PerunWebImages/manager-white.svg",name:"perun-manager"},{url:"assets/img/PerunWebImages/key-white.svg",name:"perun-key"},{url:"assets/img/PerunWebImages/application_form-white.svg",name:"perun-application-form"},{url:"assets/img/PerunWebImages/notification-white.svg",name:"perun-notification"},{url:"assets/img/PerunWebImages/invite_member-white.svg",name:"perun-invite-member"},{url:"assets/img/PerunWebImages/service_identity-white.svg",name:"perun-service-identity"},{url:"assets/img/PerunWebImages/service_identity-black.svg",name:"perun-service-identity-black"},{url:"assets/img/PerunWebImages/create1-white.svg",name:"perun-create1"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource"},{url:"assets/img/PerunWebImages/resource_tags-white.svg",name:"perun-resource-tags"},{url:"assets/img/PerunWebImages/resources_state-white.svg",name:"perun-resources-state"},{url:"assets/img/PerunWebImages/external_sources-white.svg",name:"perun-external-sources"},{url:"assets/img/PerunWebImages/vo-dark.svg",name:"perun-vo-black"},{url:"assets/img/PerunWebImages/group-dark.svg",name:"perun-group-black"},{url:"assets/img/PerunWebImages/facility-dark.svg",name:"perun-facility-black"},{url:"assets/img/publications.svg",name:"perun-publications-white"},{url:"assets/img/PerunWebImages/owner-grey.svg",name:"perun-owner-grey"},{url:"assets/img/PerunWebImages/settings1-blue.svg",name:"perun-settings1"},{url:"assets/img/PerunWebImages/service_destination-blue.svg",name:"perun-service_destination"},{url:"assets/img/PerunWebImages/host-blue.svg",name:"perun-hosts"},{url:"assets/img/PerunWebImages/home.svg",name:"perun-home-white"},{url:"assets/img/PerunWebImages/security_admin-blue.svg",name:"perun-security-teams"},{url:"assets/img/PerunWebImages/black_list-white.svg",name:"perun-black-list"},{url:"assets/img/PerunWebImages/facility-white.svg",name:"perun-facility-white"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource-white"},{url:"assets/img/PerunWebImages/service-white.svg",name:"perun-service"},{url:"assets/img/PerunWebImages/resource-black.svg",name:"perun-resource-black"},{url:"assets/img/PerunWebImages/service_status-grey.svg",name:"perun-service-status"},{url:"assets/img/PerunWebImages/user-dark.svg",name:"perun-user-dark"},{url:"assets/img/PerunWebImages/statistics-blue.svg",name:"perun-statistics"},{url:"assets/img/PerunWebImages/audit_log-blue.svg",name:"perun-audit-log"},{url:"assets/img/PerunWebImages/contact-grey.svg",name:"perun-identity"},{url:"assets/img/PerunWebImages/roles.svg",name:"perun-roles"},{url:"assets/img/PerunWebImages/consent-white.svg",name:"perun-consent-hubs"},{url:"assets/img/PerunWebImages/hierarchical_vo-black.svg",name:"perun-hierarchical-vo"},{url:"assets/img/PerunWebImages/searcher-blue.svg",name:"perun-searcher"},{url:"assets/img/PerunWebImages/propagation-blue.svg",name:"perun-hierarchical-inclusion"},{url:"assets/img/PerunWebImages/verify-grey.svg",name:"perun-verify-grey"},{url:"assets/img/PerunWebImages/info-grey.svg",name:"perun-info-grey"},{url:"assets/img/PerunWebImages/logins.svg",name:"perun-logins"},{url:"assets/img/PerunWebImages/certificates.svg",name:"perun-certificates"},{url:"assets/img/PerunWebImages/authentication.svg",name:"perun-authentication"},{url:"assets/img/PerunWebImages/ban.svg",name:"perun-ban"}]}registerPerunRefreshIcon(){this.customIcons.forEach(e=>{this.matIconRegistry.addSvgIcon(e.name,this.domSanitizer.bypassSecurityTrustResourceUrl(e.url))})}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(jl),u.LFG(ci))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac}),r})(),Tp=(()=>{class r{constructor(e){this.dialogRef=e}close(){this.dialogRef.close(!0)}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(dn))},r.\u0275cmp=u.Xpm({type:r,selectors:[["perun-web-apps-session-expiration-dialog"]],decls:11,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"ml-auto"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,t){1&e&&(u.TgZ(0,"h1",0),u._uU(1),u.ALo(2,"translate"),u.qZA(),u.TgZ(3,"div",1),u._uU(4),u.ALo(5,"translate"),u.qZA(),u.TgZ(6,"div",2)(7,"div",3)(8,"button",4),u.NdJ("click",function(){return t.close()}),u._uU(9),u.ALo(10,"translate"),u.qZA()()()),2&e&&(u.xp6(1),u.Oqu(u.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.TITLE")),u.xp6(3),u.hij(" ",u.lcZ(5,5,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.DESCRIPTION"),"\n"),u.xp6(5),u.hij(" ",u.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.SIGN_IN")," "))},dependencies:[Br,Or,dr,ji,oi]}),r})(),hb=(()=>{class r{constructor(){this.handleNextError=!0}dontHandleErrorForNext(){this.handleNextError=!1}shouldHandleError(){const e=this.handleNextError;return this.handleNextError=!0,e}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),jr=(()=>{class r{constructor(e){this.translate=e,this.addNotification=new u.vpe,this.defaultErrorDelayMs=5e3,this.defaultSuccessDelayMs=3e3}getDefaultActionMessage(){return void 0===this.defaultAction?this.defaultAction=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_ACTION"):this.defaultAction}getDefaultRpcMessage(){return void 0===this.defaultRpcMessage?this.defaultRpcMessage=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_RPC_ERROR_MESSAGE"):this.defaultRpcMessage}showRPCError(e,t=this.getDefaultRpcMessage()){this.showError("PrivilegeException"===e.name?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.PRIVILEGE_EXCEPTION"):void 0===e.name?t:t+"\n"+e.name,e,e.message)}showRouteError(){const e=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_ERROR"),t=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_DESC");this.showError(e,null,t)}showError(e,t,o,l,c){this.addNotification.emit({type:"error",error:t,description:o,title:e,actionText:void 0===l&&void 0!==o?this.getDefaultActionMessage():l,delay:this.defaultErrorDelayMs,icon:"error_outline",action:c,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}showSuccess(e,t,o,l){this.addNotification.emit({type:"success",description:t,title:e,actionText:void 0===o&&void 0!==t?this.getDefaultActionMessage():o,delay:this.defaultSuccessDelayMs,icon:"done",action:l,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(Tn))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),pb=(()=>{class r{constructor(e,t,o,l,c,n,i,s){this.authService=e,this.apiRequestConfiguration=t,this.notificator=o,this.store=l,this.dialog=c,this.initAuthService=n,this.mfaHandlerService=i,this.oauthService=s}intercept(e,t){const o=this.store.getProperty("api_url");if(e.url.includes("i18n")&&(e=e.clone({setHeaders:{"Cache-control":"no-cache, must-revalidate"}})),void 0!==o&&this.isCallToPerunApi(e.url)&&!this.authService.isLoggedIn()&&!this.initAuthService.isServiceAccess()&&!this.dialogRefSessionExpiration){const l=Qi();l.width="450px",this.dialogRefSessionExpiration=this.dialog.open(Tp,l),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{Mt(()=>this.dialogRefSessionExpiration=void 0),sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.reauthenticate()})}return this.initAuthService.isServiceAccess()?e=e.clone({setHeaders:{Authorization:"Basic "+btoa(sessionStorage.getItem("basicUsername")+":"+sessionStorage.getItem("basicPassword"))}}):this.isCallToPerunApi(e.url)&&(e=e.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}})),this.handleRequest(e,t)}reauthenticate(){sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.initAuthService.handleAuthStart()}handleRequest(e,t){const o=this.apiRequestConfiguration.shouldHandleError(),l="POST"===e.method&&this.isNotConsolidatorOrLinker()&&this.isCallToPerunApi(e.url);return t.handle(e).pipe((0,bt.b)(c=>{c instanceof y.Zn&&l&&this.initAuthService.loadPrincipal()}),(0,M.K)(c=>{const n=c.error;if("MfaPrivilegeException"===n.type||"MfaRolePrivilegeException"===n.type)return this.mfaHandlerService.openMfaWindow("MfaRolePrivilegeException"===n.type).pipe((0,Ai.w)(i=>i?("MfaRolePrivilegeException"===n.type&&window.location.reload(),this.handleRequest(this.replaceAuthenticationToken(e),t)):(0,_n._)(()=>n)));{this.handleInvalidAccessTokenError(c);const i=this.formatErrors(c,e);return void 0===i?(0,_n._)(()=>c):(o&&this.notificator.showRPCError(i),(0,_n._)(()=>i))}}))}replaceAuthenticationToken(e){return e.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}})}isCallToPerunApi(e){return e.startsWith(this.store.getProperty("api_url"))}formatErrors(e,t){let o;console.error(e);const l=e.error;if(l.errorId&&(o=l),void 0!==o)return o.urlWithParams=t.urlWithParams,o.call=t.url,o.payload=t.body,o}isNotConsolidatorOrLinker(){const e=this.store.getProperty("application");return!("Linker"===e||"Consolidator"===e)}handleInvalidAccessTokenError(e){if(401===e.status){const t=Qi();this.dialogRefSessionExpiration=this.dialog.open(Tp,t),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{this.oauthService.logOut(!0),this.reauthenticate()})}}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(Nr),u.LFG(hb),u.LFG(jr),u.LFG(ui),u.LFG(un),u.LFG(ys),u.LFG(xp),u.LFG(Fr.Ct))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac}),r})(),ql=(()=>{class r{constructor(){this.newNotificationsCount=0,this.notificationData=[]}storeNotification(e){this.newNotificationsCount++,this.notificationData.push(e)}getNotifications(){return this.notificationData.reverse()}clearNotifications(){this.notificationData=[]}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),YA=(()=>{class r{constructor(e,t,o,l){this.http=e,this.notificator=t,this.authService=o,this.storeService=l}getApiUrl(){return void 0===this.api_url&&(this.api_url=this.storeService.getProperty("api_url")),this.api_url+"/"}getHeaders(){let e=new y.WM;return e=e.set("Authorization",this.authService.getAuthorizationHeaderValue()),e}get(e,t=!0){const o=`${this.getApiUrl()}${e}`;return this.http.get(o,{headers:this.getHeaders()}).pipe((0,M.K)(l=>this.formatErrors(l,o,null,t)))}put(e,t={},o=!0){const l=`${this.getApiUrl()}${e}`,c=JSON.stringify(t);return this.http.put(l,c,{headers:this.getHeaders()}).pipe((0,M.K)(n=>this.formatErrors(n,l,c,o)))}post(e,t={},o=!0){const l=`${this.getApiUrl()}${e}`,c=JSON.stringify(t);let n=this.getHeaders();return n=n.set("Content-Type","application/json; charset=utf-8"),this.http.post(l,c,{headers:n}).pipe((0,M.K)(i=>this.formatErrors(i,l,c,o)))}delete(e,t=!0){const o=`${this.getApiUrl()}${e}`;return this.http.delete(o,{headers:this.getHeaders()}).pipe((0,M.K)(l=>this.formatErrors(l,o,null,t)))}formatErrors(e,t,o,l){const c=e.error;return c.call=t,c.payload=o,l&&this.notificator.showRPCError(e.error),(0,_n._)(c)}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(y.eN),u.LFG(jr),u.LFG(Nr),u.LFG(ui))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),JA=(()=>{class r{constructor(e,t){this.route=e,this.store=t}getPreferredLanguage(e){const t=this.store.getProperty("supported_languages"),o=navigator.languages.map(n=>n.split("-")[0]),l=location.search.substring(1).split("&");let c=null;for(const n of l){const i=n.split("=");"lang"===i[0]&&(c=i[1])}return c&&t.includes(c)?c:e&&t.includes(e)?e:o&&t.includes(o[0])?o[0]:"en"}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(Rn),u.LFG(ui))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),fb=(()=>{class r{constructor(e){this.storeService=e}static getBrandContainingDomain(e,t){for(const l of e)if(l.newApps.admin===t||l.newApps.profile===t||l.newApps.pwdReset===t||l.newApps.consolidator===t||l.newApps.linker===t)return l;return e.filter(l=>"default"===l.name)[0]||e[0]}getUrlForOtherApplication(e,t){const l=window.location.href.split("/"),c=l[0]+"//"+l[2],n=r.getBrandContainingDomain(this.storeService.getAppsConfig().brands,c);let i;if(n.newApps[e])i=n.newApps[e],"pwdReset"===e&&(i+=`?login-namespace=${t}`);else switch(i=n.oldGuiDomain+"/fed",e){case"admin":i+="/gui/";break;case"profile":i+="/profile/";break;case"pwdReset":i+=`/pwd-reset/?login-namespace=${t}`}return i}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(ui))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();var zr=(()=>{return(r=zr||(zr={})).Admin="admin",r.Profile="profile",r.PwdReset="pwdReset",r.Consolidator="consolidator",r.Linker="linker",zr;var r})();let $l=(()=>{class r{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(e,t){this._renderer.setProperty(this._elementRef.nativeElement,e,t)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(u.Qsj),u.Y36(u.SBq))},r.\u0275dir=u.lG2({type:r}),r})(),Ur=(()=>{class r extends $l{}return r.\u0275fac=function(){let a;return function(t){return(a||(a=u.n5z(r)))(t||r)}}(),r.\u0275dir=u.lG2({type:r,features:[u.qOj]}),r})();const Ji=new u.OlP("NgValueAccessor"),bb={provide:Ji,useExisting:(0,u.Gpc)(()=>po),multi:!0},ZA=new u.OlP("CompositionEventMode");let po=(()=>{class r extends $l{constructor(e,t,o){super(e,t),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function ws(){const r=(0,T.q)()?(0,T.q)().getUserAgent():"";return/android (\d+)/.test(r.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(u.Qsj),u.Y36(u.SBq),u.Y36(ZA,8))},r.\u0275dir=u.lG2({type:r,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(e,t){1&e&&u.NdJ("input",function(l){return t._handleInput(l.target.value)})("blur",function(){return t.onTouched()})("compositionstart",function(){return t._compositionStart()})("compositionend",function(l){return t._compositionEnd(l.target.value)})},features:[u._Bn([bb]),u.qOj]}),r})();function fo(r){return null==r||("string"==typeof r||Array.isArray(r))&&0===r.length}function Cb(r){return null!=r&&"number"==typeof r.length}const yi=new u.OlP("NgValidators"),xa=new u.OlP("NgAsyncValidators"),XA=/^(?=.{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 Yl{static min(a){return function Sp(r){return a=>{if(fo(a.value)||fo(r))return null;const e=parseFloat(a.value);return!isNaN(e)&&e{if(fo(a.value)||fo(r))return null;const e=parseFloat(a.value);return!isNaN(e)&&e>r?{max:{max:r,actual:a.value}}:null}}(a)}static required(a){return yb(a)}static requiredTrue(a){return function Dp(r){return!0===r.value?null:{required:!0}}(a)}static email(a){return function Hp(r){return fo(r.value)||XA.test(r.value)?null:{email:!0}}(a)}static minLength(a){return function wb(r){return a=>fo(a.value)||!Cb(a.value)?null:a.value.lengthCb(a.value)&&a.value.length>r?{maxlength:{requiredLength:r,actualLength:a.value.length}}:null}(a)}static pattern(a){return function Pp(r){if(!r)return qd;let a,e;return"string"==typeof r?(e="","^"!==r.charAt(0)&&(e+="^"),e+=r,"$"!==r.charAt(r.length-1)&&(e+="$"),a=new RegExp(e)):(e=r.toString(),a=r),t=>{if(fo(t.value))return null;const o=t.value;return a.test(o)?null:{pattern:{requiredPattern:e,actualValue:o}}}}(a)}static nullValidator(a){return null}static compose(a){return t0(a)}static composeAsync(a){return n0(a)}}function yb(r){return fo(r.value)?{required:!0}:null}function qd(r){return null}function Rp(r){return null!=r}function Ip(r){return(0,u.QGY)(r)?(0,vi.D)(r):r}function kp(r){let a={};return r.forEach(e=>{a=null!=e?{...a,...e}:a}),0===Object.keys(a).length?null:a}function Vp(r,a){return a.map(e=>e(r))}function Ab(r){return r.map(a=>function e0(r){return!r.validate}(a)?a:e=>a.validate(e))}function t0(r){if(!r)return null;const a=r.filter(Rp);return 0==a.length?null:function(e){return kp(Vp(e,a))}}function Wd(r){return null!=r?t0(Ab(r)):null}function n0(r){if(!r)return null;const a=r.filter(Rp);return 0==a.length?null:function(e){return Pd(Vp(e,a).map(Ip)).pipe((0,ze.U)(kp))}}function xb(r){return null!=r?n0(Ab(r)):null}function r0(r,a){return null===r?[a]:Array.isArray(r)?[...r,a]:[r,a]}function a0(r){return r._rawValidators}function o0(r){return r._rawAsyncValidators}function Tb(r){return r?Array.isArray(r)?r:[r]:[]}function Bp(r,a){return Array.isArray(r)?r.includes(a):r===a}function s0(r,a){const e=Tb(a);return Tb(r).forEach(o=>{Bp(e,o)||e.push(o)}),e}function Ql(r,a){return Tb(a).filter(e=>!Bp(r,e))}class l0{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(a){this._rawValidators=a||[],this._composedValidatorFn=Wd(this._rawValidators)}_setAsyncValidators(a){this._rawAsyncValidators=a||[],this._composedAsyncValidatorFn=xb(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(a){this._onDestroyCallbacks.push(a)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(a=>a()),this._onDestroyCallbacks=[]}reset(a){this.control&&this.control.reset(a)}hasError(a,e){return!!this.control&&this.control.hasError(a,e)}getError(a,e){return this.control?this.control.getError(a,e):null}}class Vi extends l0{get formDirective(){return null}get path(){return null}}class hn extends l0{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}let vs=(()=>{class r extends class Op{constructor(a){this._cd=a}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}{constructor(e){super(e)}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(hn,2))},r.\u0275dir=u.lG2({type:r,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&u.ekj("ng-untouched",t.isUntouched)("ng-touched",t.isTouched)("ng-pristine",t.isPristine)("ng-dirty",t.isDirty)("ng-valid",t.isValid)("ng-invalid",t.isInvalid)("ng-pending",t.isPending)},features:[u.qOj]}),r})();const Yd="VALID",Ki="INVALID",As="PENDING",mo="DISABLED";function jp(r){return(Jd(r)?r.validators:r)||null}function Zi(r){return Array.isArray(r)?Wd(r):r||null}function zp(r,a){return(Jd(a)?a.asyncValidators:r)||null}function Qd(r){return Array.isArray(r)?xb(r):r||null}function Jd(r){return null!=r&&!Array.isArray(r)&&"object"==typeof r}class Up{constructor(a,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=a,this._rawAsyncValidators=e,this._composedValidatorFn=Zi(this._rawValidators),this._composedAsyncValidatorFn=Qd(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(a){this._rawValidators=this._composedValidatorFn=a}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(a){this._rawAsyncValidators=this._composedAsyncValidatorFn=a}get parent(){return this._parent}get valid(){return this.status===Yd}get invalid(){return this.status===Ki}get pending(){return this.status==As}get disabled(){return this.status===mo}get enabled(){return this.status!==mo}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(a){this._rawValidators=a,this._composedValidatorFn=Zi(a)}setAsyncValidators(a){this._rawAsyncValidators=a,this._composedAsyncValidatorFn=Qd(a)}addValidators(a){this.setValidators(s0(a,this._rawValidators))}addAsyncValidators(a){this.setAsyncValidators(s0(a,this._rawAsyncValidators))}removeValidators(a){this.setValidators(Ql(a,this._rawValidators))}removeAsyncValidators(a){this.setAsyncValidators(Ql(a,this._rawAsyncValidators))}hasValidator(a){return Bp(this._rawValidators,a)}hasAsyncValidator(a){return Bp(this._rawAsyncValidators,a)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(a={}){this.touched=!0,this._parent&&!a.onlySelf&&this._parent.markAsTouched(a)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(a=>a.markAllAsTouched())}markAsUntouched(a={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!a.onlySelf&&this._parent._updateTouched(a)}markAsDirty(a={}){this.pristine=!1,this._parent&&!a.onlySelf&&this._parent.markAsDirty(a)}markAsPristine(a={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!a.onlySelf&&this._parent._updatePristine(a)}markAsPending(a={}){this.status=As,!1!==a.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!a.onlySelf&&this._parent.markAsPending(a)}disable(a={}){const e=this._parentMarkedDirty(a.onlySelf);this.status=mo,this.errors=null,this._forEachChild(t=>{t.disable({...a,onlySelf:!0})}),this._updateValue(),!1!==a.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...a,skipPristineCheck:e}),this._onDisabledChange.forEach(t=>t(!0))}enable(a={}){const e=this._parentMarkedDirty(a.onlySelf);this.status=Yd,this._forEachChild(t=>{t.enable({...a,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:a.emitEvent}),this._updateAncestors({...a,skipPristineCheck:e}),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(a){this._parent&&!a.onlySelf&&(this._parent.updateValueAndValidity(a),a.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(a){this._parent=a}getRawValue(){return this.value}updateValueAndValidity(a={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Yd||this.status===As)&&this._runAsyncValidator(a.emitEvent)),!1!==a.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!a.onlySelf&&this._parent.updateValueAndValidity(a)}_updateTreeValidity(a={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(a)),this.updateValueAndValidity({onlySelf:!0,emitEvent:a.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?mo:Yd}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(a){if(this.asyncValidator){this.status=As,this._hasOwnPendingAsyncValidator=!0;const e=Ip(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(t=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(t,{emitEvent:a})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(a,e={}){this.errors=a,this._updateControlsErrors(!1!==e.emitEvent)}get(a){let e=a;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((t,o)=>t&&t._find(o),this)}getError(a,e){const t=e?this.get(e):this;return t&&t.errors?t.errors[a]:null}hasError(a,e){return!!this.getError(a,e)}get root(){let a=this;for(;a._parent;)a=a._parent;return a}_updateControlsErrors(a){this.status=this._calculateStatus(),a&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(a)}_initObservables(){this.valueChanges=new u.vpe,this.statusChanges=new u.vpe}_calculateStatus(){return this._allControlsDisabled()?mo:this.errors?Ki:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(As)?As:this._anyControlsHaveStatus(Ki)?Ki:Yd}_anyControlsHaveStatus(a){return this._anyControls(e=>e.status===a)}_anyControlsDirty(){return this._anyControls(a=>a.dirty)}_anyControlsTouched(){return this._anyControls(a=>a.touched)}_updatePristine(a={}){this.pristine=!this._anyControlsDirty(),this._parent&&!a.onlySelf&&this._parent._updatePristine(a)}_updateTouched(a={}){this.touched=this._anyControlsTouched(),this._parent&&!a.onlySelf&&this._parent._updateTouched(a)}_registerOnCollectionChange(a){this._onCollectionChange=a}_setUpdateStrategy(a){Jd(a)&&null!=a.updateOn&&(this._updateOn=a.updateOn)}_parentMarkedDirty(a){return!a&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(a){return null}}class Zd extends Up{constructor(a,e,t){super(jp(e),zp(t,e)),this.controls=a,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(a,e){return this.controls[a]?this.controls[a]:(this.controls[a]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(a,e,t={}){this.registerControl(a,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}removeControl(a,e={}){this.controls[a]&&this.controls[a]._registerOnCollectionChange(()=>{}),delete this.controls[a],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(a,e,t={}){this.controls[a]&&this.controls[a]._registerOnCollectionChange(()=>{}),delete this.controls[a],e&&this.registerControl(a,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}contains(a){return this.controls.hasOwnProperty(a)&&this.controls[a].enabled}setValue(a,e={}){(function Kd(r,a,e){r._forEachChild((t,o)=>{if(void 0===e[o])throw new u.vHH(1002,"")})})(this,0,a),Object.keys(a).forEach(t=>{(function Db(r,a,e){const t=r.controls;if(!(a?Object.keys(t):t).length)throw new u.vHH(1e3,"");if(!t[e])throw new u.vHH(1001,"")})(this,!0,t),this.controls[t].setValue(a[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(a,e={}){null!=a&&(Object.keys(a).forEach(t=>{const o=this.controls[t];o&&o.patchValue(a[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(a={},e={}){this._forEachChild((t,o)=>{t.reset(a[o],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(a,e,t)=>(a[t]=e.getRawValue(),a))}_syncPendingControls(){let a=this._reduceChildren(!1,(e,t)=>!!t._syncPendingControls()||e);return a&&this.updateValueAndValidity({onlySelf:!0}),a}_forEachChild(a){Object.keys(this.controls).forEach(e=>{const t=this.controls[e];t&&a(t,e)})}_setUpControls(){this._forEachChild(a=>{a.setParent(this),a._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(a){for(const[e,t]of Object.entries(this.controls))if(this.contains(e)&&a(t))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,t,o)=>((t.enabled||this.disabled)&&(e[o]=t.value),e))}_reduceChildren(a,e){let t=a;return this._forEachChild((o,l)=>{t=e(t,o,l)}),t}_allControlsDisabled(){for(const a of Object.keys(this.controls))if(this.controls[a].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(a){return this.controls.hasOwnProperty(a)?this.controls[a]:null}}function Zl(r,a){Xl(r,a),a.valueAccessor.writeValue(r.value),r.disabled&&a.valueAccessor.setDisabledState?.(!0),function f0(r,a){a.valueAccessor.registerOnChange(e=>{r._pendingValue=e,r._pendingChange=!0,r._pendingDirty=!0,"change"===r.updateOn&&Rb(r,a)})}(r,a),function m0(r,a){const e=(t,o)=>{a.valueAccessor.writeValue(t),o&&a.viewToModelUpdate(t)};r.registerOnChange(e),a._registerOnDestroy(()=>{r._unregisterOnChange(e)})}(r,a),function DS(r,a){a.valueAccessor.registerOnTouched(()=>{r._pendingTouched=!0,"blur"===r.updateOn&&r._pendingChange&&Rb(r,a),"submit"!==r.updateOn&&r.markAsTouched()})}(r,a),function Pb(r,a){if(a.valueAccessor.setDisabledState){const e=t=>{a.valueAccessor.setDisabledState(t)};r.registerOnDisabledChange(e),a._registerOnDestroy(()=>{r._unregisterOnDisabledChange(e)})}}(r,a)}function xs(r,a,e=!0){const t=()=>{};a.valueAccessor&&(a.valueAccessor.registerOnChange(t),a.valueAccessor.registerOnTouched(t)),En(r,a),r&&(a._invokeOnDestroyCallbacks(),r._registerOnCollectionChange(()=>{}))}function Fn(r,a){r.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(a)})}function Xl(r,a){const e=a0(r);null!==a.validator?r.setValidators(r0(e,a.validator)):"function"==typeof e&&r.setValidators([e]);const t=o0(r);null!==a.asyncValidator?r.setAsyncValidators(r0(t,a.asyncValidator)):"function"==typeof t&&r.setAsyncValidators([t]);const o=()=>r.updateValueAndValidity();Fn(a._rawValidators,o),Fn(a._rawAsyncValidators,o)}function En(r,a){let e=!1;if(null!==r){if(null!==a.validator){const o=a0(r);if(Array.isArray(o)&&o.length>0){const l=o.filter(c=>c!==a.validator);l.length!==o.length&&(e=!0,r.setValidators(l))}}if(null!==a.asyncValidator){const o=o0(r);if(Array.isArray(o)&&o.length>0){const l=o.filter(c=>c!==a.asyncValidator);l.length!==o.length&&(e=!0,r.setAsyncValidators(l))}}}const t=()=>{};return Fn(a._rawValidators,t),Fn(a._rawAsyncValidators,t),e}function Rb(r,a){r._pendingDirty&&r.markAsDirty(),r.setValue(r._pendingValue,{emitModelToViewChange:!1}),a.viewToModelUpdate(r._pendingValue),r._pendingChange=!1}function Ib(r,a){Xl(r,a)}function Xd(r,a){if(!r.hasOwnProperty("model"))return!1;const e=r.model;return!!e.isFirstChange()||!Object.is(a,e.currentValue)}function eu(r,a){r._syncPendingControls(),a.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function tu(r,a){if(!a)return null;let e,t,o;return Array.isArray(a),a.forEach(l=>{l.constructor===po?e=l:function RS(r){return Object.getPrototypeOf(r.constructor)===Ur}(l)?t=l:o=l}),o||t||e||null}const Vb={provide:Vi,useExisting:(0,u.Gpc)(()=>Ta)},Ts=(()=>Promise.resolve(null))();let Ta=(()=>{class r extends Vi{constructor(e,t){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new u.vpe,this.form=new Zd({},Wd(e),xb(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Ts.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),Zl(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Ts.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Ts.then(()=>{const t=this._findContainer(e.path),o=new Zd({});Ib(o,e),t.registerControl(e.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Ts.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){Ts.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,eu(this.form,this._directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(yi,10),u.Y36(xa,10))},r.\u0275dir=u.lG2({type:r,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&u.NdJ("submit",function(l){return t.onSubmit(l)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[u._Bn([Vb]),u.qOj]}),r})();function ec(r,a){const e=r.indexOf(a);e>-1&&r.splice(e,1)}function qp(r){return"object"==typeof r&&null!==r&&2===Object.keys(r).length&&"value"in r&&"disabled"in r}const Wp=class extends Up{constructor(a=null,e,t){super(jp(e),zp(t,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(a),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Jd(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=qp(a)?a.value:a)}setValue(a,e={}){this.value=this._pendingValue=a,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(a,e={}){this.setValue(a,e)}reset(a=this.defaultValue,e={}){this._applyFormState(a),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(a){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(a){this._onChange.push(a)}_unregisterOnChange(a){ec(this._onChange,a)}registerOnDisabledChange(a){this._onDisabledChange.push(a)}_unregisterOnDisabledChange(a){ec(this._onDisabledChange,a)}_forEachChild(a){}_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(a){qp(a)?(this.value=this._pendingValue=a.value,a.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=a}},Bb=Wp,w0={provide:hn,useExisting:(0,u.Gpc)(()=>$p)},v0=(()=>Promise.resolve(null))();let $p=(()=>{class r extends hn{constructor(e,t,o,l,c){super(),this._changeDetectorRef=c,this.control=new Wp,this._registered=!1,this.update=new u.vpe,this._parent=e,this._setValidators(t),this._setAsyncValidators(o),this.valueAccessor=tu(0,l)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const t=e.name.previousValue;this.formDirective.removeControl({name:t,path:this._getPath(t)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),Xd(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_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(){Zl(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(e){v0.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const t=e.isDisabled.currentValue,o=0!==t&&(0,u.D6c)(t);v0.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?function Kl(r,a){return[...a.path,r]}(e,this._parent):[e]}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(Vi,9),u.Y36(yi,10),u.Y36(xa,10),u.Y36(Ji,10),u.Y36(u.sBO,8))},r.\u0275dir=u.lG2({type:r,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[u._Bn([w0]),u.qOj,u.TTD]}),r})(),Fb=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({}),r})();const tc=new u.OlP("NgModelWithFormControlWarning"),Kp={provide:hn,useExisting:(0,u.Gpc)(()=>Zp)};let Zp=(()=>{class r extends hn{constructor(e,t,o,l){super(),this._ngModelWarningConfig=l,this.update=new u.vpe,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(t),this.valueAccessor=tu(0,o)}set isDisabled(e){}ngOnChanges(e){if(this._isControlChanged(e)){const t=e.form.previousValue;t&&xs(t,this,!1),Zl(this.form,this),this.form.updateValueAndValidity({emitEvent:!1})}Xd(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&xs(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}}return r._ngModelWarningSentOnce=!1,r.\u0275fac=function(e){return new(e||r)(u.Y36(yi,10),u.Y36(xa,10),u.Y36(Ji,10),u.Y36(tc,8))},r.\u0275dir=u.lG2({type:r,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[u._Bn([Kp]),u.qOj,u.TTD]}),r})();const Xp={provide:Vi,useExisting:(0,u.Gpc)(()=>_o)};let _o=(()=>{class r extends Vi{constructor(e,t){super(),this.validators=e,this.asyncValidators=t,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new u.vpe,this._setValidators(e),this._setAsyncValidators(t)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(En(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const t=this.form.get(e.path);return Zl(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){xs(e.control||null,e,!1),function kb(r,a){const e=r.indexOf(a);e>-1&&r.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,t){this.form.get(e.path).setValue(t)}onSubmit(e){return this.submitted=!0,eu(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const t=e.control,o=this.form.get(e.path);t!==o&&(xs(t||null,e),(r=>r instanceof Wp)(o)&&(Zl(o,e),e.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const t=this.form.get(e.path);Ib(t,e),t.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const t=this.form.get(e.path);t&&function g0(r,a){return En(r,a)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Xl(this.form,this),this._oldForm&&En(this._oldForm,this)}_checkFormPresent(){}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(yi,10),u.Y36(xa,10))},r.\u0275dir=u.lG2({type:r,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&u.NdJ("submit",function(l){return t.onSubmit(l)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[u._Bn([Xp]),u.qOj,u.TTD]}),r})(),bo=(()=>{class r{constructor(){this._validator=qd}ngOnChanges(e){if(this.inputName in e){const t=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(t),this._validator=this._enabled?this.createValidator(t):qd,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275dir=u.lG2({type:r,features:[u.TTD]}),r})();const I0={provide:yi,useExisting:(0,u.Gpc)(()=>nc),multi:!0};let nc=(()=>{class r extends bo{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=u.D6c,this.createValidator=e=>yb}enabled(e){return e}}return r.\u0275fac=function(){let a;return function(t){return(a||(a=u.n5z(r)))(t||r)}}(),r.\u0275dir=u.lG2({type:r,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&u.uIk("required",t._enabled?"":null)},inputs:{required:"required"},features:[u._Bn([I0]),u.qOj]}),r})(),m=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({imports:[Fb]}),r})(),g=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({imports:[m]}),r})(),_=(()=>{class r{static withConfig(e){return{ngModule:r,providers:[{provide:tc,useValue:e.warnOnNgModelWithFormControl}]}}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({imports:[m]}),r})();const J=kn({passive:!0});let re=(()=>{class r{constructor(e,t){this._platform=e,this._ngZone=t,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return ii.E;const t=ai(e),o=this._monitoredElements.get(t);if(o)return o.subject;const l=new Se.x,c="cdk-text-field-autofilled",n=i=>{"cdk-text-field-autofill-start"!==i.animationName||t.classList.contains(c)?"cdk-text-field-autofill-end"===i.animationName&&t.classList.contains(c)&&(t.classList.remove(c),this._ngZone.run(()=>l.next({target:i.target,isAutofilled:!1}))):(t.classList.add(c),this._ngZone.run(()=>l.next({target:i.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{t.addEventListener("animationstart",n,J),t.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(t,{subject:l,unlisten:()=>{t.removeEventListener("animationstart",n,J)}}),l}stopMonitoring(e){const t=ai(e),o=this._monitoredElements.get(t);o&&(o.unlisten(),o.subject.complete(),t.classList.remove("cdk-text-field-autofill-monitored"),t.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(t))}ngOnDestroy(){this._monitoredElements.forEach((e,t)=>this.stopMonitoring(t))}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(Zt),u.LFG(u.R0b))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Ae=(()=>{class r{constructor(e,t,o,l){this._elementRef=e,this._platform=t,this._ngZone=o,this._destroyed=new Se.x,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._handleFocusEvent=c=>{this._hasFocus="focus"===c.type},this._document=l,this._textareaElement=this._elementRef.nativeElement}get minRows(){return this._minRows}set minRows(e){this._minRows=Ci(e),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(e){this._maxRows=Ci(e),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(e){e=Ze(e),this._enabled!==e&&((this._enabled=e)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(e){this._cachedPlaceholderHeight=void 0,e?this._textareaElement.setAttribute("placeholder",e):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}_setMinHeight(){const e=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;e&&(this._textareaElement.style.minHeight=e)}_setMaxHeight(){const e=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;e&&(this._textareaElement.style.maxHeight=e)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{ns(this._getWindow(),"resize").pipe(ml(16),st(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0)),this._textareaElement.addEventListener("focus",this._handleFocusEvent),this._textareaElement.addEventListener("blur",this._handleFocusEvent)}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._textareaElement.removeEventListener("focus",this._handleFocusEvent),this._textareaElement.removeEventListener("blur",this._handleFocusEvent),this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let e=this._textareaElement.cloneNode(!1);e.rows=1,e.style.position="absolute",e.style.visibility="hidden",e.style.border="none",e.style.padding="0",e.style.height="",e.style.minHeight="",e.style.maxHeight="",e.style.overflow="hidden",this._textareaElement.parentNode.appendChild(e),this._cachedLineHeight=e.clientHeight,e.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){const e=this._textareaElement,t=e.style.marginBottom||"",o=this._platform.FIREFOX,l=o&&this._hasFocus,c=o?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";l&&(e.style.marginBottom=`${e.clientHeight}px`),e.classList.add(c);const n=e.scrollHeight-4;return e.classList.remove(c),l&&(e.style.marginBottom=t),n}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const e=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=e}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(e=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;const t=this._elementRef.nativeElement,o=t.value;if(!e&&this._minRows===this._previousMinRows&&o===this._previousValue)return;const l=this._measureScrollHeight(),c=Math.max(l,this._cachedPlaceholderHeight||0);t.style.height=`${c}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(t)):setTimeout(()=>this._scrollToCaretPosition(t))}),this._previousValue=o,this._previousMinRows=this._minRows}reset(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollToCaretPosition(e){const{selectionStart:t,selectionEnd:o}=e;!this._destroyed.isStopped&&this._hasFocus&&e.setSelectionRange(t,o)}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(u.SBq),u.Y36(Zt),u.Y36(u.R0b),u.Y36(T.K0,8))},r.\u0275dir=u.lG2({type:r,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(e,t){1&e&&u.NdJ("input",function(){return t._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]}),r})(),Pe=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({}),r})();const Je=new u.OlP("MAT_INPUT_VALUE_ACCESSOR"),ye=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let $e=0;const _t=hl(class{constructor(r,a,e,t){this._defaultErrorStateMatcher=r,this._parentForm=a,this._parentFormGroup=e,this.ngControl=t,this.stateChanges=new Se.x}});let Vt=(()=>{class r extends _t{constructor(e,t,o,l,c,n,i,s,d,h){super(n,l,c,o),this._elementRef=e,this._platform=t,this._autofillMonitor=s,this._formField=h,this._uid="mat-input-"+$e++,this.focused=!1,this.stateChanges=new Se.x,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(H=>tw().has(H)),this._iOSKeyupListener=H=>{const j=H.target;!j.value&&0===j.selectionStart&&0===j.selectionEnd&&(j.setSelectionRange(1,1),j.setSelectionRange(0,0))};const f=this._elementRef.nativeElement,b=f.nodeName.toLowerCase();this._inputValueAccessor=i||f,this._previousNativeValue=this.value,this.id=this.id,t.IOS&&d.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===b,this._isTextarea="textarea"===b,this._isInFormField=!!h,this._isNativeSelect&&(this.controlType=f.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=Ze(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(Yl.required)??!1}set required(e){this._required=Ze(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&tw().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=Ze(e)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){const e=this._formField,t=e&&"legacy"===e.appearance&&!e._hasLabel?.()?null:this.placeholder;if(t!==this._previousPlaceholder){const o=this._elementRef.nativeElement;this._previousPlaceholder=t,t?o.setAttribute("placeholder",t):o.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){ye.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(u.SBq),u.Y36(Zt),u.Y36(hn,10),u.Y36(Ta,8),u.Y36(_o,8),u.Y36(ld),u.Y36(Je,10),u.Y36(re),u.Y36(u.R0b),u.Y36(Qh,8))},r.\u0275dir=u.lG2({type:r,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(e,t){1&e&&u.NdJ("focus",function(){return t._focusChanged(!0)})("blur",function(){return t._focusChanged(!1)})("input",function(){return t._onInput()}),2&e&&(u.Ikx("disabled",t.disabled)("required",t.required),u.uIk("id",t.id)("data-placeholder",t.placeholder)("name",t.name||null)("readonly",t.readonly&&!t._isNativeSelect||null)("aria-invalid",t.empty&&t.required?null:t.errorState)("aria-required",t.required),u.ekj("mat-input-server",t._isServer)("mat-native-select-inline",t._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[u._Bn([{provide:Ad,useExisting:r}]),u.qOj,u.TTD]}),r})(),ur=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({providers:[ld],imports:[Pe,kr,qe,Pe,kr]}),r})();function nf(r,a){1&r&&(u.TgZ(0,"mat-error"),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&r&&(u.xp6(1),u.Oqu(u.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT_ERROR")))}let rf=(()=>{class r{constructor(e,t,o,l,c){this.dialogRef=e,this.translate=t,this.notificator=o,this.rtMessages=l,this.storeService=c,this.message="",this.subject="",this.instanceName=""}ngOnInit(){this.instanceName=this.storeService.getProperty("config")}sendBugReport(){this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(e=>{this.dialogRef.afterClosed().subscribe(()=>this.notificator.showSuccess(this.translate.instant("DIALOGS.REPORT_ISSUE.SUCCESS")+String(e.ticketNumber))),this.dialogRef.close()})}getFullEmailBody(){return this.message.concat("\n ","------------------------\n ","Perun instance: ",this.instanceName,"\n ","Sended from new Perun Gui, version: ",x(4147).i8)}close(){this.dialogRef.close()}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(dn),u.Y36(Tn),u.Y36(jr),u.Y36(Pt),u.Y36(ui))},r.\u0275cmp=u.Xpm({type:r,selectors:[["perun-web-apps-report-issue-dialog"]],decls:29,vars:25,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","","type","text",3,"ngModel","ngModelChange"],["subjectModel","ngModel"],[4,"ngIf"],["matInput","",3,"placeholder","ngModel","ngModelChange"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(e,t){if(1&e&&(u.TgZ(0,"h1",0),u._uU(1),u.ALo(2,"translate"),u.qZA(),u.TgZ(3,"div",1)(4,"mat-form-field")(5,"mat-label"),u._uU(6),u.ALo(7,"translate"),u.qZA(),u.TgZ(8,"input",2,3),u.NdJ("ngModelChange",function(l){return t.subject=l}),u.qZA(),u.YNc(10,nf,3,3,"mat-error",4),u.qZA(),u.TgZ(11,"mat-form-field")(12,"mat-label"),u._uU(13),u.ALo(14,"translate"),u.qZA(),u.TgZ(15,"textarea",5),u.NdJ("ngModelChange",function(l){return t.message=l}),u.ALo(16,"translate"),u._uU(17," "),u.qZA(),u.TgZ(18,"mat-hint"),u._uU(19),u.ALo(20,"translate"),u.qZA()()(),u.TgZ(21,"div",6)(22,"div",7)(23,"button",8),u.NdJ("click",function(){return t.close()}),u._uU(24),u.ALo(25,"translate"),u.qZA(),u.TgZ(26,"button",9),u.NdJ("click",function(){return t.sendBugReport()}),u._uU(27),u.ALo(28,"translate"),u.qZA()()()),2&e){const o=u.MAs(9);u.xp6(1),u.Oqu(u.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.TITLE")),u.xp6(5),u.Oqu(u.lcZ(7,13,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT")),u.xp6(2),u.Q6J("ngModel",t.subject),u.xp6(2),u.Q6J("ngIf",o.invalid),u.xp6(3),u.Oqu(u.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE")),u.xp6(2),u.s9C("placeholder",u.lcZ(16,17,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_PLACEHOLDER")),u.Q6J("ngModel",t.message),u.xp6(4),u.Oqu(u.lcZ(20,19,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_HINT")),u.xp6(5),u.hij(" ",u.lcZ(25,21,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.CANCEL")," "),u.xp6(2),u.Q6J("disabled",o.invalid),u.xp6(1),u.hij(" ",u.lcZ(28,23,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SEND")," ")}},dependencies:[T.O5,po,vs,nc,$p,ji,vd,Jh,$h,us,Vt,Br,Or,dr,oi],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),r})(),af=(()=>{class r{transform(e,t,o){return e[`${o}_${t}`]}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275pipe=u.Yjl({name:"localisedText",type:r,pure:!0}),r})(),sf=(()=>{class r{transform(e,t){return e["link_"+t]||e.link_en}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275pipe=u.Yjl({name:"localisedLink",type:r,pure:!0}),r})(),lf=(()=>{class r{transform(e){return e.includes("/")?e:"/assets/config/"+e}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275pipe=u.Yjl({name:"footerLogoPath",type:r,pure:!0}),r})();function cf(r,a){if(1&r&&(u.TgZ(0,"a",13),u.ALo(1,"localisedLink"),u._UZ(2,"img",14),u.ALo(3,"footerLogoPath"),u.qZA()),2&r){const e=u.oxw().$implicit,t=u.oxw(3);u.Q6J("href",u.xi3(1,2,e,t.language),u.LSH),u.xp6(2),u.s9C("src",u.lcZ(3,5,e.logo),u.LSH)}}function df(r,a){if(1&r&&(u.TgZ(0,"span"),u._UZ(1,"img",14),u.ALo(2,"footerLogoPath"),u.qZA()),2&r){const e=u.oxw().$implicit;u.xp6(1),u.s9C("src",u.lcZ(2,1,e.logo),u.LSH)}}function uf(r,a){if(1&r&&(u.TgZ(0,"div"),u.YNc(1,cf,4,7,"a",11),u.ALo(2,"localisedLink"),u.YNc(3,df,3,3,"span",12),u.ALo(4,"localisedLink"),u.qZA()),2&r){const e=a.$implicit,t=u.oxw(3);u.xp6(1),u.Q6J("ngIf",u.xi3(2,2,e,t.language)),u.xp6(2),u.Q6J("ngIf",!u.xi3(4,5,e,t.language))}}const hf=function(r){return{"min-height":r}};function _H(r,a){if(1&r&&(u.TgZ(0,"div",10),u.YNc(1,uf,5,8,"div",5),u.qZA()),2&r){const e=u.oxw().$implicit,t=u.oxw();u.Q6J("ngStyle",u.VKq(2,hf,t.columnContentHeight+"px")),u.xp6(1),u.Q6J("ngForOf",e.elements)}}const Co=function(r){return{color:r}};function bH(r,a){if(1&r&&(u.TgZ(0,"i",20),u._uU(1),u.qZA()),2&r){const e=u.oxw().$implicit,t=u.oxw(3);u.Q6J("ngStyle",u.VKq(2,Co,t.linksTextColor)),u.xp6(1),u.hij(" ",e.icon," ")}}function CH(r,a){if(1&r){const e=u.EpF();u.TgZ(0,"span",21),u.NdJ("click",function(){u.CHM(e);const o=u.oxw().$implicit,l=u.oxw(3);return u.KtG(l.openDialog(o.dialog))}),u._uU(1),u.ALo(2,"localisedText"),u.qZA()}if(2&r){const e=u.oxw().$implicit,t=u.oxw(3);u.Q6J("ngStyle",u.VKq(6,Co,t.linksTextColor)),u.xp6(1),u.hij("",u.Dn7(2,2,e,t.language,"label")," ")}}function yH(r,a){if(1&r&&(u.TgZ(0,"a",22),u.ALo(1,"localisedLink"),u._uU(2),u.ALo(3,"localisedText"),u.qZA()),2&r){const e=u.oxw().$implicit,t=u.oxw(3);u.Q6J("href",u.xi3(1,3,e,t.language),u.LSH)("ngStyle",u.VKq(10,Co,t.linksTextColor)),u.xp6(2),u.Oqu(u.Dn7(3,6,e,t.language,"label"))}}function wH(r,a){if(1&r&&(u.TgZ(0,"span",10),u._uU(1),u.ALo(2,"localisedText"),u.qZA()),2&r){const e=u.oxw().$implicit,t=u.oxw(3);u.Q6J("ngStyle",u.VKq(6,Co,t.linksTextColor)),u.xp6(1),u.Oqu(u.Dn7(2,2,e,t.language,"label"))}}function vH(r,a){if(1&r&&(u.TgZ(0,"div",16),u.YNc(1,bH,2,4,"i",17),u.YNc(2,CH,3,8,"span",18),u.YNc(3,yH,4,12,"a",19),u.ALo(4,"localisedLink"),u.YNc(5,wH,3,8,"span",9),u.ALo(6,"localisedLink"),u.qZA()),2&r){const e=a.$implicit,t=u.oxw(3);u.xp6(1),u.Q6J("ngIf",e.icon),u.xp6(1),u.Q6J("ngIf",e.dialog),u.xp6(1),u.Q6J("ngIf",u.xi3(4,4,e,t.language)&&!e.dialog),u.xp6(2),u.Q6J("ngIf",!u.xi3(6,7,e,t.language)&&!e.dialog)}}const AH=function(r){return{height:r}};function xH(r,a){if(1&r&&(u.TgZ(0,"div",10),u.YNc(1,vH,7,10,"div",15),u.qZA()),2&r){const e=u.oxw().$implicit,t=u.oxw();u.Q6J("ngStyle",u.VKq(2,AH,t.columnContentHeight+"px")),u.xp6(1),u.Q6J("ngForOf",e.elements)}}function TH(r,a){if(1&r&&(u.TgZ(0,"div",7)(1,"h6",8),u._uU(2),u.ALo(3,"localisedText"),u.qZA(),u.YNc(4,_H,2,4,"div",9),u.YNc(5,xH,2,4,"div",9),u.qZA()),2&r){const e=a.$implicit,t=u.oxw();u.ekj("my-auto",t.containsLogos),u.xp6(1),u.Q6J("ngStyle",u.VKq(10,Co,t.headersTextColor)),u.xp6(1),u.hij(" ",u.Dn7(3,6,e,t.language,"title")," "),u.xp6(2),u.Q6J("ngIf",e.logos),u.xp6(1),u.Q6J("ngIf",e.elements&&!e.logos)}}function EH(r,a){if(1&r&&(u.TgZ(0,"span")(1,"a",6),u._uU(2),u.qZA()()),2&r){const e=a.$implicit,t=a.index,o=u.oxw();u.xp6(1),u.Q6J("href",e.url,u.LSH)("ngStyle",u.VKq(3,Co,o.copyrightTextColor)),u.xp6(1),u.Oqu(t?", "+e.name:e.name)}}const SH=function(r){return{background:r}};let GS=(()=>{class r{constructor(e,t,o,l,c,n){this.storeService=e,this.translateService=t,this.utilsService=o,this.dialog=l,this.authService=c,this.initAuthService=n,this.copyrightTextColor=this.storeService.getProperty("theme").footer_copyright_text_color,this.footerColumns=[],this.copyrightItems=[],this.currentYear=(new Date).getFullYear(),this.containsLogos=!1,this.headersTextColor=this.storeService.getProperty("theme").footer_headers_text_color,this.linksTextColor=this.storeService.getProperty("theme").footer_links_text_color,this.githubRepository=this.storeService.getProperty("footer").github_releases,this.githubBackendRepository=this.storeService.getProperty("footer").github_backend_releases,this.bgColor=this.storeService.getProperty("theme").footer_bg_color,this.version="",this.backendVersion="",this.guiVersion="",this.language="en",this.columnContentHeight=0}ngOnInit(){this.translateService.onLangChange.subscribe(e=>{this.language=e.lang}),this.version=x(4147).i8,this.footerColumns=this.storeService.getProperty("footer").columns,this.guiVersion=x(4147).i8,(this.authService.isLoggedIn()||this.initAuthService.isServiceAccess())&&this.utilsService.getPerunStatus().subscribe(e=>{const t=e[0];this.backendVersion=t.substring(t.indexOf(":")+2)}),this.footerColumns=this.storeService.getProperty("footer").columns;for(const e of this.footerColumns)e.logos?this.containsLogos=!0:25*e.elements.length>this.columnContentHeight&&(this.columnContentHeight=25*e.elements.length);this.copyrightItems=this.storeService.getProperty("footer").copyright_items}openDialog(e){const t=Qi();"reportIssue"===e&&(t.width="550px",this.dialog.open(rf,t))}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(ui),u.Y36(Tn),u.Y36(mn),u.Y36(un),u.Y36(Nr),u.Y36(ys))},r.\u0275cmp=u.Xpm({type:r,selectors:[["perun-web-apps-footer"]],decls:13,vars:19,consts:[[1,"footer-container",3,"ngStyle"],[1,"footer-columns-container"],["class","footer-col mx-auto",3,"my-auto",4,"ngFor","ngForOf"],[1,"my-0","mt-3"],[1,"font-fix","text-center",3,"ngStyle"],[4,"ngFor","ngForOf"],["target","_blank",1,"text-decoration-none",3,"href","ngStyle"],[1,"footer-col","mx-auto"],[1,"font-weight-bold",3,"ngStyle"],[3,"ngStyle",4,"ngIf"],[3,"ngStyle"],[3,"href",4,"ngIf"],[4,"ngIf"],[3,"href"],["alt","image",3,"src"],["class","row-height",4,"ngFor","ngForOf"],[1,"row-height"],["class","material-icons align-bottom mr-1",3,"ngStyle",4,"ngIf"],["id","clickable",3,"ngStyle","click",4,"ngIf"],["target","_blank",3,"href","ngStyle",4,"ngIf"],[1,"material-icons","align-bottom","mr-1",3,"ngStyle"],["id","clickable",3,"ngStyle","click"],["target","_blank",3,"href","ngStyle"]],template:function(e,t){1&e&&(u.TgZ(0,"footer",0)(1,"div",1),u.YNc(2,TH,6,12,"div",2),u.qZA(),u._UZ(3,"hr",3),u.TgZ(4,"div",4),u._uU(5),u.YNc(6,EH,3,5,"span",5),u._uU(7,", web application: "),u.TgZ(8,"a",6),u._uU(9),u.qZA(),u._uU(10,", server: "),u.TgZ(11,"a",6),u._uU(12),u.qZA()()()),2&e&&(u.Q6J("ngStyle",u.VKq(11,SH,t.bgColor)),u.xp6(2),u.Q6J("ngForOf",t.footerColumns),u.xp6(2),u.Q6J("ngStyle",u.VKq(13,Co,t.copyrightTextColor)),u.xp6(1),u.hij(" \xa9 ",t.currentYear," Copyright: "),u.xp6(1),u.Q6J("ngForOf",t.copyrightItems),u.xp6(2),u.Q6J("href",t.githubRepository,u.LSH)("ngStyle",u.VKq(15,Co,t.copyrightTextColor)),u.xp6(1),u.Oqu(t.guiVersion),u.xp6(2),u.Q6J("href",t.githubBackendRepository,u.LSH)("ngStyle",u.VKq(17,Co,t.copyrightTextColor)),u.xp6(1),u.Oqu(t.backendVersion))},dependencies:[T.sg,T.O5,T.PC,af,sf,lf],styles:["a[_ngcontent-%COMP%]{text-decoration:none}.font-fix[_ngcontent-%COMP%]{font-size:.8rem}.row-height[_ngcontent-%COMP%]{height:25px!important}.footer-col[_ngcontent-%COMP%]{padding-top:35px;white-space:nowrap;text-align:center}.wrap-content[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content}#clickable[_ngcontent-%COMP%]{cursor:pointer}.footer-columns-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-direction:column}@media (min-width: 768px){.footer-columns-container[_ngcontent-%COMP%]{flex-direction:row}}.footer-container[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content}"]}),r})();function MH(r,a){if(1&r&&(u.TgZ(0,"div",8),u._UZ(1,"div",9),u.qZA()),2&r){const e=u.oxw();u.xp6(1),u.Q6J("innerHTML",e.logo,u.oJD)}}function DH(r,a){if(1&r&&(u.TgZ(0,"div",10),u._UZ(1,"div",11)(2,"mat-icon",12),u.qZA()),2&r){const e=u.oxw();u.xp6(1),u.Q6J("innerHTML",e.logo,u.oJD)}}const HH=function(r){return{color:r}};function PH(r,a){if(1&r&&(u.TgZ(0,"p",13),u._uU(1),u.qZA()),2&r){const e=u.oxw();u.Q6J("ngStyle",u.VKq(2,HH,e.textColor)),u.xp6(1),u.hij(" ",e.headerTitle," ")}}const RH=function(r,a){return{background:r,color:a}},IH=function(r,a){return{"min-height":r,"background-color":a}};let kH=(()=>{class r{constructor(e,t,o,l){this.storeService=e,this.sanitizer=t,this.preferredLangService=o,this.translateService=l,this.contentBackgroundColor=this.storeService.getProperty("theme").content_bg_color}ngOnInit(){if(this.headerBackgroundColor=this.storeService.getProperty("theme").nav_bg_color,this.headerTextColor=this.storeService.getProperty("theme").nav_text_color,this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.getProperty("logo")),this.textColor=this.headerTitle?this.storeService.getProperty("theme").nav_text_color:"","user-profile"===this.application){const e=this.preferredLangService.getPreferredLanguage(null);this.translateService.use(e)}}getContentInnerMinHeight(){return"calc((100vh - 64px) + 0px)"}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(ui),u.Y36(ci),u.Y36(JA),u.Y36(Tn))},r.\u0275cmp=u.Xpm({type:r,selectors:[["perun-web-apps-login-screen-base"]],inputs:{application:"application",headerTitle:"headerTitle"},decls:10,vars:11,consts:[["id","login-nav",1,"mat-elevation-z3",3,"ngStyle"],["class","mt-auto mb-auto",4,"ngIf"],["class","display-flex-row",4,"ngIf"],["class","ml-3 mt-auto mb-auto page-subtitle",3,"ngStyle",4,"ngIf"],["id","content"],["id","content-inner",3,"ngStyle"],["id","content-wrap"],["id","footer"],[1,"mt-auto","mb-auto"],[1,"logo-container",3,"innerHTML"],[1,"display-flex-row"],[1,"logo-container","mt-auto","mb-auto",3,"innerHTML"],["svgIcon","perun-publications-white",1,"mt-auto","mb-auto","router-icon","ml-2","mr-2"],[1,"ml-3","mt-auto","mb-auto","page-subtitle",3,"ngStyle"]],template:function(e,t){1&e&&(u.TgZ(0,"div",0),u.YNc(1,MH,2,1,"div",1),u.YNc(2,DH,3,1,"div",2),u.YNc(3,PH,2,4,"p",3),u.qZA(),u.TgZ(4,"div",4)(5,"div",5)(6,"div",6),u._UZ(7,"router-outlet"),u.qZA(),u.TgZ(8,"div",7),u._UZ(9,"perun-web-apps-footer"),u.qZA()()()),2&e&&(u.Q6J("ngStyle",u.WLB(5,RH,t.headerBackgroundColor,t.headerTextColor)),u.xp6(1),u.Q6J("ngIf","admin-gui"===t.application||"user-profile"===t.application||"consolidator"===t.application),u.xp6(1),u.Q6J("ngIf","publications"===t.application),u.xp6(1),u.Q6J("ngIf",!!t.headerTitle),u.xp6(2),u.Q6J("ngStyle",u.WLB(8,IH,t.getContentInnerMinHeight(),t.contentBackgroundColor)))},dependencies:[T.O5,T.PC,xn,Kt,GS],styles:["#login-nav[_ngcontent-%COMP%]{position:fixed;width:100%;z-index:999;display:flex;height:64px;max-height:64px;top:0}#footer[_ngcontent-%COMP%]{position:absolute;bottom:0;width:100%}#content[_ngcontent-%COMP%]{width:100%;min-height:calc(100vh - 64px);margin-top:64px}#content-inner[_ngcontent-%COMP%]{position:relative}#content-wrap[_ngcontent-%COMP%]{padding-bottom:250px;padding-top:10px}@media (max-width: 768px){#content-wrap[_ngcontent-%COMP%]{padding-bottom:500px}}.router-icon[_ngcontent-%COMP%]{height:2.5rem;width:2.5rem;cursor:pointer;outline:0}.page-subtitle[_ngcontent-%COMP%]{margin-bottom:1rem;font-size:1.5rem}.logo-container[_ngcontent-%COMP%]{padding:0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}.display-flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}"]}),r})(),qS=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({imports:[T.ez]}),r})(),VH=(()=>{class r{transform(e){return[e.titleBefore,e.firstName,e.middleName,e.lastName,e.titleAfter].join(" ")}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275pipe=u.Yjl({name:"userFullName",type:r,pure:!0}),r})(),L0=(()=>{class r{constructor(e,t){this.translate=e,this.storage=t}transform(e,t="en"){const o=this.storage.getProperty("custom_labels");if(o)for(const l of o)if(l.label===e)return l[t];return e}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(Tn,16),u.Y36(ui,16))},r.\u0275pipe=u.Yjl({name:"customTranslate",type:r,pure:!0}),r})();function UH(r,a){if(1&r&&(u.O4$(),u._UZ(0,"circle",4)),2&r){const e=u.oxw(),t=u.MAs(1);u.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+e._spinnerAnimationLabel)("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),u.uIk("r",e._getCircleRadius())}}function GH(r,a){if(1&r&&(u.O4$(),u._UZ(0,"circle",4)),2&r){const e=u.oxw(),t=u.MAs(1);u.Udp("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),u.uIk("r",e._getCircleRadius())}}const WH=eo(class{constructor(r){this._elementRef=r}},"primary"),$H=new u.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function YH(){return{diameter:100}}});class hr extends WH{constructor(a,e,t,o,l,c,n,i){super(a),this._document=t,this._diameter=100,this._value=0,this._resizeSubscription=Ft.w0.EMPTY,this.mode="determinate";const s=hr._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),s.has(t.head)||s.set(t.head,new Set([100])),this._noopAnimations="NoopAnimations"===o&&!!l&&!l._forceAnimations,"mat-spinner"===a.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),l&&(l.color&&(this.color=this.defaultColor=l.color),l.diameter&&(this.diameter=l.diameter),l.strokeWidth&&(this.strokeWidth=l.strokeWidth)),e.isBrowser&&e.SAFARI&&n&&c&&i&&(this._resizeSubscription=n.change(150).subscribe(()=>{"indeterminate"===this.mode&&i.run(()=>c.markForCheck())}))}get diameter(){return this._diameter}set diameter(a){this._diameter=Ci(a),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(a){this._strokeWidth=Ci(a)}get value(){return"determinate"===this.mode?this._value:0}set value(a){this._value=Math.max(0,Math.min(100,Ci(a)))}ngOnInit(){const a=this._elementRef.nativeElement;this._styleRoot=Yo(a)||this._document.head,this._attachStyleNode(),a.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const a=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${a} ${a}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_getCircleTransformOrigin(a){const e=50*(a.currentScale??1);return`${e}% ${e}%`}_attachStyleNode(){const a=this._styleRoot,e=this._diameter,t=hr._diameters;let o=t.get(a);if(!o||!o.has(e)){const l=this._document.createElement("style");l.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),l.textContent=this._getAnimationText(),a.appendChild(l),o||(o=new Set,t.set(a,o)),o.add(e)}}_getAnimationText(){const a=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*a).replace(/END_VALUE/g,""+.2*a).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}hr._diameters=new WeakMap,hr.\u0275fac=function(a){return new(a||hr)(u.Y36(u.SBq),u.Y36(Zt),u.Y36(T.K0,8),u.Y36(u.QbO,8),u.Y36($H),u.Y36(u.sBO),u.Y36(Dr),u.Y36(u.R0b))},hr.\u0275cmp=u.Xpm({type:hr,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(a,e){2&a&&(u.uIk("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),u.Udp("width",e.diameter,"px")("height",e.diameter,"px"),u.ekj("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[u.qOj],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(a,e){1&a&&(u.O4$(),u.TgZ(0,"svg",0,1),u.YNc(2,UH,1,11,"circle",2),u.YNc(3,GH,1,9,"circle",3),u.qZA()),2&a&&(u.Udp("width",e.diameter,"px")("height",e.diameter,"px"),u.Q6J("ngSwitch","indeterminate"===e.mode),u.uIk("viewBox",e._getViewBox()),u.xp6(2),u.Q6J("ngSwitchCase",!0),u.xp6(1),u.Q6J("ngSwitchCase",!1))},dependencies:[T.RF,T.n9],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:rgba(0,0,0,0);transition:stroke-dashoffset 225ms linear}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}.mat-progress-spinner[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-progress-spinner._mat-animation-noopable svg,.mat-progress-spinner._mat-animation-noopable circle{animation:none;transition: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)}}"],encapsulation:2,changeDetection:0});let Jb=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({imports:[qe,T.ez,qe]}),r})();function JH(r,a){1&r&&u._UZ(0,"mat-spinner",7)}function KH(r,a){1&r&&(u.TgZ(0,"mat-error"),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&r&&(u.xp6(1),u.Oqu(u.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_ERROR")))}function ZH(r,a){1&r&&(u.TgZ(0,"mat-error"),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&r&&(u.xp6(1),u.Oqu(u.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_ERROR")))}function XH(r,a){if(1&r){const e=u.EpF();u.TgZ(0,"div",8)(1,"mat-form-field")(2,"mat-label"),u._uU(3),u.ALo(4,"translate"),u.qZA(),u.TgZ(5,"input",9,10),u.NdJ("ngModelChange",function(o){u.CHM(e);const l=u.oxw();return u.KtG(l.subject=o)}),u.qZA(),u.YNc(7,KH,3,3,"mat-error",11),u.qZA(),u.TgZ(8,"mat-form-field")(9,"mat-label"),u._uU(10),u.ALo(11,"translate"),u.qZA(),u.TgZ(12,"textarea",12,13),u.NdJ("ngModelChange",function(o){u.CHM(e);const l=u.oxw();return u.KtG(l.message=o)}),u.ALo(14,"translate"),u._uU(15," "),u.qZA(),u.YNc(16,ZH,3,3,"mat-error",11),u.qZA()()}if(2&r){const e=u.MAs(6),t=u.MAs(13),o=u.oxw();u.xp6(3),u.Oqu(u.lcZ(4,7,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT")),u.xp6(2),u.Q6J("ngModel",o.subject),u.xp6(2),u.Q6J("ngIf",e.invalid),u.xp6(3),u.Oqu(u.lcZ(11,9,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE")),u.xp6(2),u.s9C("placeholder",u.lcZ(14,11,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_PLACEHOLDER")),u.Q6J("ngModel",o.message),u.xp6(4),u.Q6J("ngIf",t.invalid)}}let eP=(()=>{class r{constructor(e,t,o,l,c,n){this.dialogRef=e,this.translate=t,this.notificator=o,this.rtMessages=l,this.data=c,this.storeService=n,this.message="",this.subject="",this.methodRegexp=/(\w+\/\w+)$/g,this.loading=!1}ngOnInit(){this.data?.error?.errorId&&(this.subject="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_VALUE"),this.parseMethod(this.data.error.call)," (",this.data.error.errorId,")"))}sendBugReport(){this.loading=!0,this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(e=>{this.dialogRef.afterClosed().subscribe(()=>{const t="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS1"),e.ticketNumber.toString(),this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS2"));this.notificator.showSuccess(t)}),this.dialogRef.close()},()=>{this.loading=!1,this.dialogRef.afterClosed().subscribe(()=>{})})}getFullEmailBody(){const e=this.storeService.getProperty("config");let t=this.message+"\n------------------------\nTechnical details:\n\n"+this.data.error.errorId;if(t=t.concat(this.data.error.type?" "+this.data.error.type+"\n":"\n"),t=t.concat(this.data.error.message,"\n","Perun instance: ",e,"\n","Request:\n",this.data.error.urlWithParams,"\n\n"),this.data.error.payload){const o=/"password":".+?"/;let l=JSON.stringify(this.data.error.payload);l=l.replace(o,'"password":"####"'),t=t.concat("Payload:\n"+l+"\n\n")}return t=t.concat("Sent from new Perun Gui, version: ",x(4147).i8),t.split("\n").join("\n ")}parseMethod(e){return e&&this.methodRegexp.exec(e)[1]}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(dn),u.Y36(Tn),u.Y36(jr),u.Y36(Pt),u.Y36(ho),u.Y36(ui))},r.\u0275cmp=u.Xpm({type:r,selectors:[["perun-web-apps-bug-report-dialog"]],decls:13,vars:12,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","",3,"ngModel","ngModelChange"],["subjectModel","ngModel"],[4,"ngIf"],["matInput","","required","",3,"ngModel","placeholder","ngModelChange"],["messageModel","ngModel"]],template:function(e,t){1&e&&(u.TgZ(0,"h1",0),u._uU(1),u.ALo(2,"translate"),u.qZA(),u.YNc(3,JH,1,0,"mat-spinner",1),u.YNc(4,XH,17,13,"div",2),u.TgZ(5,"div",3)(6,"div",4)(7,"button",5),u.NdJ("click",function(){return t.dialogRef.close()}),u._uU(8),u.ALo(9,"translate"),u.qZA(),u.TgZ(10,"button",6),u.NdJ("click",function(){return t.sendBugReport()}),u._uU(11),u.ALo(12,"translate"),u.qZA()()()),2&e&&(u.xp6(1),u.Oqu(u.lcZ(2,6,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.TITLE")),u.xp6(2),u.Q6J("ngIf",t.loading),u.xp6(1),u.Q6J("ngIf",!t.loading),u.xp6(4),u.hij(" ",u.lcZ(9,8,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.CANCEL")," "),u.xp6(2),u.Q6J("disabled",""===t.message||""===t.subject||t.loading),u.xp6(1),u.hij(" ",u.lcZ(12,10,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SEND")," "))},dependencies:[T.O5,Br,Or,dr,ji,vd,Jh,us,po,vs,nc,$p,Vt,hr,oi],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),r})(),tP=(()=>{class r{constructor(e,t,o){this.dialogRef=e,this.dialog=t,this.data=o}onCloseClick(){this.dialogRef.close()}onBugReportClick(){this.dialogRef.afterClosed().subscribe(()=>{const e=Qi();e.width="550px",e.data={error:this.data.error},e.autoFocus=!1,this.dialog.open(eP,e)}),this.dialogRef.close()}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(dn),u.Y36(un),u.Y36(ho))},r.\u0275cmp=u.Xpm({type:r,selectors:[["perun-web-apps-notification-dialog"]],decls:12,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"hidden","click"],["autofocus","","mat-button","",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(u.TgZ(0,"h1",0),u._uU(1),u.qZA(),u.TgZ(2,"div",1),u._uU(3),u.qZA(),u.TgZ(4,"div",2)(5,"div",3)(6,"button",4),u.NdJ("click",function(){return t.onBugReportClick()}),u._uU(7),u.ALo(8,"translate"),u.qZA(),u.TgZ(9,"button",5),u.NdJ("click",function(){return t.onCloseClick()}),u._uU(10),u.ALo(11,"translate"),u.qZA()()()),2&e&&(u.xp6(1),u.Oqu(t.data.title),u.xp6(2),u.hij(" ",t.data.description,"\n"),u.xp6(3),u.Q6J("hidden","error"!==t.data.type),u.xp6(1),u.hij(" ",u.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_BUG_REPORT")," "),u.xp6(3),u.hij(" ",u.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_CLOSE")," "))},dependencies:[Br,Or,dr,ji,oi]}),r})();const iP=[[["caption"]],[["colgroup"],["col"]]],nP=["caption","colgroup, col"];function N0(r){return class extends r{constructor(...a){super(...a),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(a){const e=this._sticky;this._sticky=Ze(a),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const a=this._hasStickyChanged;return this._hasStickyChanged=!1,a}resetStickyChanged(){this._hasStickyChanged=!1}}}const au=new u.OlP("CDK_TABLE");let ou=(()=>{class r{constructor(e){this.template=e}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(u.Rgc))},r.\u0275dir=u.lG2({type:r,selectors:[["","cdkCellDef",""]]}),r})(),su=(()=>{class r{constructor(e){this.template=e}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(u.Rgc))},r.\u0275dir=u.lG2({type:r,selectors:[["","cdkHeaderCellDef",""]]}),r})(),Kb=(()=>{class r{constructor(e){this.template=e}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(u.Rgc))},r.\u0275dir=u.lG2({type:r,selectors:[["","cdkFooterCellDef",""]]}),r})();class sP{}const lP=N0(sP);let yo=(()=>{class r extends lP{constructor(e){super(),this._table=e,this._stickyEnd=!1}get name(){return this._name}set name(e){this._setNameInput(e)}get stickyEnd(){return this._stickyEnd}set stickyEnd(e){const t=this._stickyEnd;this._stickyEnd=Ze(e),this._hasStickyChanged=t!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(au,8))},r.\u0275dir=u.lG2({type:r,selectors:[["","cdkColumnDef",""]],contentQueries:function(e,t,o){if(1&e&&(u.Suo(o,ou,5),u.Suo(o,su,5),u.Suo(o,Kb,5)),2&e){let l;u.iGM(l=u.CRH())&&(t.cell=l.first),u.iGM(l=u.CRH())&&(t.headerCell=l.first),u.iGM(l=u.CRH())&&(t.footerCell=l.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[u._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:r}]),u.qOj]}),r})();class j0{constructor(a,e){e.nativeElement.classList.add(...a._columnCssClassName)}}let z0=(()=>{class r extends j0{constructor(e,t){super(e,t)}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(yo),u.Y36(u.SBq))},r.\u0275dir=u.lG2({type:r,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[u.qOj]}),r})(),U0=(()=>{class r extends j0{constructor(e,t){if(super(e,t),1===e._table?._elementRef.nativeElement.nodeType){const o=e._table._elementRef.nativeElement.getAttribute("role");t.nativeElement.setAttribute("role","grid"===o||"treegrid"===o?"gridcell":"cell")}}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(yo),u.Y36(u.SBq))},r.\u0275dir=u.lG2({type:r,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[u.qOj]}),r})();class $S{constructor(){this.tasks=[],this.endTasks=[]}}const G0=new u.OlP("_COALESCED_STYLE_SCHEDULER");let YS=(()=>{class r{constructor(e){this._ngZone=e,this._currentSchedule=null,this._destroyed=new Se.x}schedule(e){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(e)}scheduleEnd(e){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(e)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new $S,this._getScheduleObservable().pipe(st(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const e=this._currentSchedule;this._currentSchedule=new $S;for(const t of e.tasks)t();for(const t of e.endTasks)t()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,vi.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,Gt.q)(1))}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(u.R0b))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac}),r})(),q0=(()=>{class r{constructor(e,t){this.template=e,this._differs=t}ngOnChanges(e){if(!this._columnsDiffer){const t=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(t).create(),this._columnsDiffer.diff(t)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof pf?e.headerCell.template:this instanceof ff?e.footerCell.template:e.cell.template}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(u.Rgc),u.Y36(u.ZZ4))},r.\u0275dir=u.lG2({type:r,features:[u.TTD]}),r})();class cP extends q0{}const dP=N0(cP);let pf=(()=>{class r extends dP{constructor(e,t,o){super(e,t),this._table=o}ngOnChanges(e){super.ngOnChanges(e)}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(u.Rgc),u.Y36(u.ZZ4),u.Y36(au,8))},r.\u0275dir=u.lG2({type:r,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[u.qOj,u.TTD]}),r})();class uP extends q0{}const hP=N0(uP);let ff=(()=>{class r extends hP{constructor(e,t,o){super(e,t),this._table=o}ngOnChanges(e){super.ngOnChanges(e)}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(u.Rgc),u.Y36(u.ZZ4),u.Y36(au,8))},r.\u0275dir=u.lG2({type:r,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[u.qOj,u.TTD]}),r})(),Zb=(()=>{class r extends q0{constructor(e,t,o){super(e,t),this._table=o}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(u.Rgc),u.Y36(u.ZZ4),u.Y36(au,8))},r.\u0275dir=u.lG2({type:r,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[u.qOj]}),r})(),wo=(()=>{class r{constructor(e){this._viewContainer=e,r.mostRecentCellOutlet=this}ngOnDestroy(){r.mostRecentCellOutlet===this&&(r.mostRecentCellOutlet=null)}}return r.mostRecentCellOutlet=null,r.\u0275fac=function(e){return new(e||r)(u.Y36(u.s_b))},r.\u0275dir=u.lG2({type:r,selectors:[["","cdkCellOutlet",""]]}),r})(),W0=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275cmp=u.Xpm({type:r,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&u.GkF(0,0)},dependencies:[wo],encapsulation:2}),r})(),Y0=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275cmp=u.Xpm({type:r,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&u.GkF(0,0)},dependencies:[wo],encapsulation:2}),r})(),Xb=(()=>{class r{constructor(e){this.templateRef=e,this._contentClassName="cdk-no-data-row"}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(u.Rgc))},r.\u0275dir=u.lG2({type:r,selectors:[["ng-template","cdkNoDataRow",""]]}),r})();const QS=["top","bottom","left","right"];class pP{constructor(a,e,t,o,l=!0,c=!0,n){this._isNativeHtmlTable=a,this._stickCellCss=e,this.direction=t,this._coalescedStyleScheduler=o,this._isBrowser=l,this._needsPositionStickyOnElement=c,this._positionListener=n,this._cachedCellWidths=[],this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(a,e){const t=[];for(const o of a)if(o.nodeType===o.ELEMENT_NODE){t.push(o);for(let l=0;l{for(const o of t)this._removeStickyStyle(o,e)})}updateStickyColumns(a,e,t,o=!0){if(!a.length||!this._isBrowser||!e.some(f=>f)&&!t.some(f=>f))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const l=a[0],c=l.children.length,n=this._getCellWidths(l,o),i=this._getStickyStartColumnPositions(n,e),s=this._getStickyEndColumnPositions(n,t),d=e.lastIndexOf(!0),h=t.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const f="rtl"===this.direction,b=f?"right":"left",H=f?"left":"right";for(const j of a)for(let ae=0;aee[ae]?j:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===h?[]:n.slice(h).map((j,ae)=>t[ae+h]?j:null).reverse()}))})}stickRows(a,e,t){if(!this._isBrowser)return;const o="bottom"===t?a.slice().reverse():a,l="bottom"===t?e.slice().reverse():e,c=[],n=[],i=[];for(let d=0,h=0;d{for(let d=0;d{e.some(o=>!o)?this._removeStickyStyle(t,["bottom"]):this._addStickyStyle(t,"bottom",0,!1)})}_removeStickyStyle(a,e){for(const o of e)a.style[o]="",a.classList.remove(this._borderCellCss[o]);QS.some(o=>-1===e.indexOf(o)&&a.style[o])?a.style.zIndex=this._getCalculatedZIndex(a):(a.style.zIndex="",this._needsPositionStickyOnElement&&(a.style.position=""),a.classList.remove(this._stickCellCss))}_addStickyStyle(a,e,t,o){a.classList.add(this._stickCellCss),o&&a.classList.add(this._borderCellCss[e]),a.style[e]=`${t}px`,a.style.zIndex=this._getCalculatedZIndex(a),this._needsPositionStickyOnElement&&(a.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(a){const e={top:100,bottom:10,left:1,right:1};let t=0;for(const o of QS)a.style[o]&&(t+=e[o]);return t?`${t}`:""}_getCellWidths(a,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;const t=[],o=a.children;for(let l=0;l0;l--)e[l]&&(t[l]=o,o+=a[l]);return t}}const Q0=new u.OlP("CDK_SPL");let eC=(()=>{class r{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(u.s_b),u.Y36(u.SBq))},r.\u0275dir=u.lG2({type:r,selectors:[["","rowOutlet",""]]}),r})(),tC=(()=>{class r{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(u.s_b),u.Y36(u.SBq))},r.\u0275dir=u.lG2({type:r,selectors:[["","headerRowOutlet",""]]}),r})(),iC=(()=>{class r{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(u.s_b),u.Y36(u.SBq))},r.\u0275dir=u.lG2({type:r,selectors:[["","footerRowOutlet",""]]}),r})(),nC=(()=>{class r{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(u.s_b),u.Y36(u.SBq))},r.\u0275dir=u.lG2({type:r,selectors:[["","noDataRowOutlet",""]]}),r})(),rC=(()=>{class r{constructor(e,t,o,l,c,n,i,s,d,h,f,b){this._differs=e,this._changeDetectorRef=t,this._elementRef=o,this._dir=c,this._platform=i,this._viewRepeater=s,this._coalescedStyleScheduler=d,this._viewportRuler=h,this._stickyPositioningListener=f,this._ngZone=b,this._onDestroy=new Se.x,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.contentChanged=new u.vpe,this.viewChange=new Yt({start:0,end:Number.MAX_VALUE}),l||this._elementRef.nativeElement.setAttribute("role","table"),this._document=n,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(e){this._trackByFn=e}get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&this._switchDataSource(e)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(e){this._multiTemplateDataRows=Ze(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(e){this._fixedLayout=Ze(e),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((e,t)=>this.trackBy?this.trackBy(t.dataIndex,t.data):t),this._viewportRuler.change().pipe(st(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,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(e=>{e.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),Ca(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const e=this._dataDiffer.diff(this._renderRows);if(!e)return this._updateNoDataRow(),void this.contentChanged.next();const t=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,t,(o,l,c)=>this._getEmbeddedViewArgs(o.item,c),o=>o.item.data,o=>{1===o.operation&&o.context&&this._renderCellTemplateForItem(o.record.item.rowDef,o.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(o=>{t.get(o.currentIndex).context.$implicit=o.item.data}),this._updateNoDataRow(),this._ngZone&&u.R0b.isInAngularZone()?this._ngZone.onStable.pipe((0,Gt.q)(1),st(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(e){this._customColumnDefs.add(e)}removeColumnDef(e){this._customColumnDefs.delete(e)}addRowDef(e){this._customRowDefs.add(e)}removeRowDef(e){this._customRowDefs.delete(e)}addHeaderRowDef(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}removeHeaderRowDef(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}addFooterRowDef(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}removeFooterRowDef(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}setNoDataRow(e){this._customNoDataRow=e}updateStickyHeaderRowStyles(){const e=this._getRenderedRows(this._headerRowOutlet),o=this._elementRef.nativeElement.querySelector("thead");o&&(o.style.display=e.length?"":"none");const l=this._headerRowDefs.map(c=>c.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,l,"top"),this._headerRowDefs.forEach(c=>c.resetStickyChanged())}updateStickyFooterRowStyles(){const e=this._getRenderedRows(this._footerRowOutlet),o=this._elementRef.nativeElement.querySelector("tfoot");o&&(o.style.display=e.length?"":"none");const l=this._footerRowDefs.map(c=>c.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,l,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,l),this._footerRowDefs.forEach(c=>c.resetStickyChanged())}updateStickyColumnStyles(){const e=this._getRenderedRows(this._headerRowOutlet),t=this._getRenderedRows(this._rowOutlet),o=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...t,...o],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((l,c)=>{this._addStickyColumnStyles([l],this._headerRowDefs[c])}),this._rowDefs.forEach(l=>{const c=[];for(let n=0;n{this._addStickyColumnStyles([l],this._footerRowDefs[c])}),Array.from(this._columnDefsByName.values()).forEach(l=>l.resetStickyChanged())}_getAllRenderRows(){const e=[],t=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let o=0;o{const n=o&&o.has(c)?o.get(c):[];if(n.length){const i=n.shift();return i.dataIndex=t,i}return{data:e,rowDef:c,dataIndex:t}})}_cacheColumnDefs(){this._columnDefsByName.clear(),aC(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(t=>{this._columnDefsByName.has(t.name),this._columnDefsByName.set(t.name,t)})}_cacheRowDefs(){this._headerRowDefs=aC(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=aC(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=aC(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const e=this._rowDefs.filter(t=>!t.when);this._defaultRowDef=e[0]}_renderUpdatedColumns(){const e=(c,n)=>c||!!n.getColumnsDiff(),t=this._rowDefs.reduce(e,!1);t&&this._forceRenderDataRows();const o=this._headerRowDefs.reduce(e,!1);o&&this._forceRenderHeaderRows();const l=this._footerRowDefs.reduce(e,!1);return l&&this._forceRenderFooterRows(),t||o||l}_switchDataSource(e){this._data=[],Ca(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=e}_observeRenderChanges(){if(!this.dataSource)return;let e;Ca(this.dataSource)?e=this.dataSource.connect(this):Yi(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=(0,De.of)(this.dataSource)),this._renderChangeSubscription=e.pipe(st(this._onDestroy)).subscribe(t=>{this._data=t||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,t)=>this._renderRow(this._headerRowOutlet,e,t)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,t)=>this._renderRow(this._footerRowOutlet,e,t)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,t){const o=Array.from(t.columns||[]).map(n=>this._columnDefsByName.get(n)),l=o.map(n=>n.sticky),c=o.map(n=>n.stickyEnd);this._stickyStyler.updateStickyColumns(e,l,c,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){const t=[];for(let o=0;o!l.when||l.when(t,e));else{let l=this._rowDefs.find(c=>c.when&&c.when(t,e))||this._defaultRowDef;l&&o.push(l)}return o}_getEmbeddedViewArgs(e,t){return{templateRef:e.rowDef.template,context:{$implicit:e.data},index:t}}_renderRow(e,t,o,l={}){const c=e.viewContainer.createEmbeddedView(t.template,l,o);return this._renderCellTemplateForItem(t,l),c}_renderCellTemplateForItem(e,t){for(let o of this._getCellTemplates(e))wo.mostRecentCellOutlet&&wo.mostRecentCellOutlet._viewContainer.createEmbeddedView(o,t);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const e=this._rowOutlet.viewContainer;for(let t=0,o=e.length;t{const o=this._columnDefsByName.get(t);return e.extractCellTemplate(o)}):[]}_applyNativeTableSections(){const e=this._document.createDocumentFragment(),t=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const o of t){const l=this._document.createElement(o.tag);l.setAttribute("role","rowgroup");for(const c of o.outlets)l.appendChild(c.elementRef.nativeElement);e.appendChild(l)}this._elementRef.nativeElement.appendChild(e)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const e=(t,o)=>t||o.hasStickyChanged();this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new pP(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:(0,De.of)()).pipe(st(this._onDestroy)).subscribe(t=>{this._stickyStyler.direction=t,this.updateStickyColumnStyles()})}_getOwnDefs(e){return e.filter(t=>!t._table||t._table===this)}_updateNoDataRow(){const e=this._customNoDataRow||this._noDataRow;if(!e)return;const t=0===this._rowOutlet.viewContainer.length;if(t===this._isShowingNoDataRow)return;const o=this._noDataRowOutlet.viewContainer;if(t){const l=o.createEmbeddedView(e.templateRef),c=l.rootNodes[0];1===l.rootNodes.length&&c?.nodeType===this._document.ELEMENT_NODE&&(c.setAttribute("role","row"),c.classList.add(e._contentClassName))}else o.clear();this._isShowingNoDataRow=t}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(u.ZZ4),u.Y36(u.sBO),u.Y36(u.SBq),u.$8M("role"),u.Y36(on,8),u.Y36(T.K0),u.Y36(Zt),u.Y36(rs),u.Y36(G0),u.Y36(Dr),u.Y36(Q0,12),u.Y36(u.R0b,8))},r.\u0275cmp=u.Xpm({type:r,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(e,t,o){if(1&e&&(u.Suo(o,Xb,5),u.Suo(o,yo,5),u.Suo(o,Zb,5),u.Suo(o,pf,5),u.Suo(o,ff,5)),2&e){let l;u.iGM(l=u.CRH())&&(t._noDataRow=l.first),u.iGM(l=u.CRH())&&(t._contentColumnDefs=l),u.iGM(l=u.CRH())&&(t._contentRowDefs=l),u.iGM(l=u.CRH())&&(t._contentHeaderRowDefs=l),u.iGM(l=u.CRH())&&(t._contentFooterRowDefs=l)}},viewQuery:function(e,t){if(1&e&&(u.Gf(eC,7),u.Gf(tC,7),u.Gf(iC,7),u.Gf(nC,7)),2&e){let o;u.iGM(o=u.CRH())&&(t._rowOutlet=o.first),u.iGM(o=u.CRH())&&(t._headerRowOutlet=o.first),u.iGM(o=u.CRH())&&(t._footerRowOutlet=o.first),u.iGM(o=u.CRH())&&(t._noDataRowOutlet=o.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(e,t){2&e&&u.ekj("cdk-table-fixed-layout",t.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[u._Bn([{provide:au,useExisting:r},{provide:rs,useClass:Lg},{provide:G0,useClass:YS},{provide:Q0,useValue:null}])],ngContentSelectors:nP,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(u.F$t(iP),u.Hsn(0),u.Hsn(1,1),u.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[eC,tC,iC,nC],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),r})();function aC(r,a){return r.concat(Array.from(a))}let mP=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({imports:[Cl]}),r})();const gP=[[["caption"]],[["colgroup"],["col"]]],_P=["caption","colgroup, col"];let J0=(()=>{class r extends rC{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return r.\u0275fac=function(){let a;return function(t){return(a||(a=u.n5z(r)))(t||r)}}(),r.\u0275cmp=u.Xpm({type:r,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(e,t){2&e&&u.ekj("mat-table-fixed-layout",t.fixedLayout)},exportAs:["matTable"],features:[u._Bn([{provide:rs,useClass:Lg},{provide:rC,useExisting:r},{provide:au,useExisting:r},{provide:G0,useClass:YS},{provide:Q0,useValue:null}]),u.qOj],ngContentSelectors:_P,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(u.F$t(gP),u.Hsn(0),u.Hsn(1,1),u.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[eC,tC,iC,nC],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-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:sticky !important}.mat-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),r})(),oC=(()=>{class r extends ou{}return r.\u0275fac=function(){let a;return function(t){return(a||(a=u.n5z(r)))(t||r)}}(),r.\u0275dir=u.lG2({type:r,selectors:[["","matCellDef",""]],features:[u._Bn([{provide:ou,useExisting:r}]),u.qOj]}),r})(),sC=(()=>{class r extends su{}return r.\u0275fac=function(){let a;return function(t){return(a||(a=u.n5z(r)))(t||r)}}(),r.\u0275dir=u.lG2({type:r,selectors:[["","matHeaderCellDef",""]],features:[u._Bn([{provide:su,useExisting:r}]),u.qOj]}),r})(),lC=(()=>{class r extends yo{get name(){return this._name}set name(e){this._setNameInput(e)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return r.\u0275fac=function(){let a;return function(t){return(a||(a=u.n5z(r)))(t||r)}}(),r.\u0275dir=u.lG2({type:r,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[u._Bn([{provide:yo,useExisting:r},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:r}]),u.qOj]}),r})(),cC=(()=>{class r extends z0{}return r.\u0275fac=function(){let a;return function(t){return(a||(a=u.n5z(r)))(t||r)}}(),r.\u0275dir=u.lG2({type:r,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[u.qOj]}),r})(),dC=(()=>{class r extends U0{}return r.\u0275fac=function(){let a;return function(t){return(a||(a=u.n5z(r)))(t||r)}}(),r.\u0275dir=u.lG2({type:r,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[u.qOj]}),r})(),KS=(()=>{class r extends pf{}return r.\u0275fac=function(){let a;return function(t){return(a||(a=u.n5z(r)))(t||r)}}(),r.\u0275dir=u.lG2({type:r,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[u._Bn([{provide:pf,useExisting:r}]),u.qOj]}),r})(),K0=(()=>{class r extends Zb{}return r.\u0275fac=function(){let a;return function(t){return(a||(a=u.n5z(r)))(t||r)}}(),r.\u0275dir=u.lG2({type:r,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[u._Bn([{provide:Zb,useExisting:r}]),u.qOj]}),r})(),ZS=(()=>{class r extends W0{}return r.\u0275fac=function(){let a;return function(t){return(a||(a=u.n5z(r)))(t||r)}}(),r.\u0275cmp=u.Xpm({type:r,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[u._Bn([{provide:W0,useExisting:r}]),u.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&u.GkF(0,0)},dependencies:[wo],encapsulation:2}),r})(),Z0=(()=>{class r extends Y0{}return r.\u0275fac=function(){let a;return function(t){return(a||(a=u.n5z(r)))(t||r)}}(),r.\u0275cmp=u.Xpm({type:r,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[u._Bn([{provide:Y0,useExisting:r}]),u.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&u.GkF(0,0)},dependencies:[wo],encapsulation:2}),r})(),uC=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({imports:[mP,qe,qe]}),r})();class MP extends Og{constructor(a=[]){super(),this._renderData=new Yt([]),this._filter=new Yt(""),this._internalPageChanges=new Se.x,this._renderChangesSubscription=null,this.sortingDataAccessor=(e,t)=>{const o=e[t];if(Jm(o)){const l=Number(o);return l<9007199254740991?l:o}return o},this.sortData=(e,t)=>{const o=t.active,l=t.direction;return o&&""!=l?e.sort((c,n)=>{let i=this.sortingDataAccessor(c,o),s=this.sortingDataAccessor(n,o);const d=typeof i,h=typeof s;d!==h&&("number"===d&&(i+=""),"number"===h&&(s+=""));let f=0;return null!=i&&null!=s?i>s?f=1:i{const o=Object.keys(e).reduce((c,n)=>c+e[n]+"\u25ec","").toLowerCase(),l=t.trim().toLowerCase();return-1!=o.indexOf(l)},this._data=new Yt(a),this._updateChangeSubscription()}get data(){return this._data.value}set data(a){a=Array.isArray(a)?a:[],this._data.next(a),this._renderChangesSubscription||this._filterData(a)}get filter(){return this._filter.value}set filter(a){this._filter.next(a),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(a){this._sort=a,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(a){this._paginator=a,this._updateChangeSubscription()}_updateChangeSubscription(){const a=this._sort?(0,ln.T)(this._sort.sortChange,this._sort.initialized):(0,De.of)(null),e=this._paginator?(0,ln.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,De.of)(null),o=(0,Xr.a)([this._data,this._filter]).pipe((0,ze.U)(([n])=>this._filterData(n))),l=(0,Xr.a)([o,a]).pipe((0,ze.U)(([n])=>this._orderData(n))),c=(0,Xr.a)([l,e]).pipe((0,ze.U)(([n])=>this._pageData(n)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=c.subscribe(n=>this._renderData.next(n))}_filterData(a){return this.filteredData=null==this.filter||""===this.filter?a:a.filter(e=>this.filterPredicate(e,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(a){return this.sort?this.sortData(a.slice(),this.sort):a}_pageData(a){if(!this.paginator)return a;const e=this.paginator.pageIndex*this.paginator.pageSize;return a.slice(e,e+this.paginator.pageSize)}_updatePaginator(a){Promise.resolve().then(()=>{const e=this.paginator;if(e&&(e.length=a,e.pageIndex>0)){const t=Math.ceil(e.length/e.pageSize)-1||0,o=Math.min(e.pageIndex,t);o!==e.pageIndex&&(e.pageIndex=o,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}}class hC extends MP{}function DP(r,a){1&r&&u._UZ(0,"mat-spinner",3)}function HP(r,a){1&r&&u._UZ(0,"th",15)}function PP(r,a){if(1&r&&(u.TgZ(0,"td",16),u._uU(1),u.qZA()),2&r){const e=a.$implicit;u.xp6(1),u.hij(" ",e.userExtSource.extSource.name," ")}}function RP(r,a){1&r&&u._UZ(0,"tr",17)}function IP(r,a){1&r&&u._UZ(0,"tr",18)}function kP(r,a){if(1&r){const e=u.EpF();u.TgZ(0,"div")(1,"div",4)(2,"p"),u._uU(3),u.ALo(4,"translate"),u.ALo(5,"customTranslate"),u.qZA(),u.TgZ(6,"div",5),u._uU(7),u.ALo(8,"translate"),u.ALo(9,"customTranslate"),u.qZA(),u.TgZ(10,"table",6),u.ynx(11,7),u.YNc(12,HP,1,0,"th",8),u.YNc(13,PP,2,1,"td",9),u.BQk(),u.YNc(14,RP,1,0,"tr",10),u.YNc(15,IP,1,0,"tr",11),u.qZA()(),u.TgZ(16,"div",12)(17,"button",13),u.NdJ("click",function(){u.CHM(e);const o=u.oxw();return u.KtG(o.onCancel())}),u._uU(18),u.ALo(19,"translate"),u.ALo(20,"customTranslate"),u.qZA(),u.TgZ(21,"button",14),u.NdJ("click",function(){u.CHM(e);const o=u.oxw();return u.KtG(o.onSubmit())}),u._uU(22),u.ALo(23,"translate"),u.ALo(24,"customTranslate"),u.qZA()()()}if(2&r){const e=u.oxw();u.xp6(3),u.hij(" ",u.lcZ(4,7,u.lcZ(5,9,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.DESCRIPTION"))," "),u.xp6(4),u.hij(" ",u.lcZ(8,11,u.lcZ(9,13,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.ASK"))," "),u.xp6(3),u.Q6J("dataSource",e.dataSource),u.xp6(4),u.Q6J("matHeaderRowDef",e.displayedColumns),u.xp6(1),u.Q6J("matRowDefColumns",e.displayedColumns),u.xp6(3),u.hij(" ",u.lcZ(19,15,u.lcZ(20,17,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.CANCEL"))," "),u.xp6(4),u.hij(" ",u.lcZ(23,19,u.lcZ(24,21,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.REMOVE"))," ")}}let VP=(()=>{class r{constructor(e,t,o,l,c){this.dialogRef=e,this.data=t,this.usersManagerService=o,this.translate=l,this.notificator=c,this.force=!1,this.displayedColumns=["name"],l.get("SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.SUCCESS").subscribe(n=>this.successMessage=n)}ngOnInit(){this.theme=this.data.theme,this.dataSource=new hC(this.data.extSources)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.data.extSources.length?this.usersManagerService.removeUserExtSource(this.data.userId,this.data.extSources.pop().userExtSource.id,this.force).subscribe(()=>{this.onSubmit()},()=>this.loading=!1):(this.loading=!1,this.data.showSuccess&&this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0))}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(dn),u.Y36(ho),u.Y36(Kr),u.Y36(Tn),u.Y36(jr))},r.\u0275cmp=u.Xpm({type:r,selectors:[["perun-web-apps-remove-user-ext-source-dialog"]],decls:7,vars:10,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"click"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,t){1&e&&(u.TgZ(0,"h1",0),u._uU(1),u.ALo(2,"translate"),u.ALo(3,"customTranslate"),u.qZA(),u.TgZ(4,"div"),u.YNc(5,DP,1,0,"mat-spinner",1),u.YNc(6,kP,25,23,"div",2),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,6,u.lcZ(3,8,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.TITLE")),"\n"),u.xp6(3),u.Tol(t.theme),u.xp6(1),u.Q6J("ngIf",t.loading),u.xp6(1),u.Q6J("ngIf",!t.loading))},dependencies:[T.O5,J0,sC,KS,lC,oC,K0,cC,dC,ZS,Z0,Br,Or,dr,ji,hr,oi,L0]}),r})();function JP(r,a){1&r&&(u.TgZ(0,"mat-error",8),u._uU(1),u.ALo(2,"translate"),u.ALo(3,"customTranslate"),u.qZA()),2&r&&(u.xp6(1),u.Oqu(u.lcZ(2,1,u.lcZ(3,3,"DIALOGS.ADD_SSH.INVALID_TYPE"))))}class vo{constructor(a,e,t){this.dialogRef=a,this.data=e,this.attributesManagerService=t}ngOnInit(){this.sshControl=new Bb(null,[Yl.required,Yl.pattern(vo.sshKeyPattern)])}onCancel(){this.dialogRef.close(!1)}onSubmit(){const a=this.data.attribute?.value??[],e=this.sshControl.value;a.includes(e)||a.push(e),this.data.attribute.value=a,this.attributesManagerService.setUserAttribute({user:this.data.userId,attribute:this.data.attribute}).subscribe(()=>{this.dialogRef.close(!0)},()=>{a.pop()})}}function iR(r,a){if(1&r&&(u.TgZ(0,"div",9),u._UZ(1,"perun-web-apps-notification",10),u.qZA()),2&r){const e=a.$implicit;u.xp6(1),u.Q6J("data",e)("inDialog",!0)}}function nR(r,a){if(1&r&&(u.TgZ(0,"div",6)(1,"cdk-virtual-scroll-viewport",7),u.YNc(2,iR,2,2,"div",8),u.qZA()()),2&r){const e=u.oxw();u.xp6(2),u.Q6J("cdkVirtualForOf",e.notifications)}}function rR(r,a){1&r&&(u.TgZ(0,"perun-web-apps-alert",11),u._uU(1),u.ALo(2,"translate"),u.ALo(3,"customTranslate"),u.qZA()),2&r&&(u.xp6(1),u.Oqu(u.lcZ(2,1,u.lcZ(3,3,"DIALOGS.NOTIFICATION_LIST.NO_NOTIFICATIONS_ALERT"))))}vo.allowedSshKeys=["ssh-ed25519","ssh-ed25519-cert-v01@openssh.com","sk-ssh-ed25519@openssh.com","sk-ssh-ed25519-cert-v01@openssh.com","ssh-rsa","ssh-dss","ecdsa-sha2-nistp256","ecdsa-sha2-nistp384","ecdsa-sha2-nistp521","sk-ecdsa-sha2-nistp256@openssh.com","ssh-rsa-cert-v01@openssh.com","ssh-dss-cert-v01@openssh.com","ecdsa-sha2-nistp256-cert-v01@openssh.com","ecdsa-sha2-nistp384-cert-v01@openssh.com","ecdsa-sha2-nistp521-cert-v01@openssh.com","sk-ecdsa-sha2-nistp256-cert-v01@openssh.com"],vo.sshKeyPattern="^("+vo.allowedSshKeys.join("|")+").+$",vo.\u0275fac=function(a){return new(a||vo)(u.Y36(dn),u.Y36(ho),u.Y36(Yr))},vo.\u0275cmp=u.Xpm({type:vo,selectors:[["perun-web-apps-add-ssh-dialog"]],decls:20,vars:23,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","user-theme"],[1,"input-width"],["matInput","","required","","cdkTextareaAutosize","","cdkAutosizeMinRows","4",3,"placeholder","formControl"],["class","white-space-pre",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[1,"white-space-pre"]],template:function(a,e){1&a&&(u.TgZ(0,"h1",0),u._uU(1),u.ALo(2,"translate"),u.ALo(3,"customTranslate"),u.qZA(),u.TgZ(4,"div",1)(5,"mat-form-field",2)(6,"label",2),u._UZ(7,"textarea",3),u.ALo(8,"translate"),u.ALo(9,"customTranslate"),u.qZA(),u.YNc(10,JP,4,5,"mat-error",4),u.qZA()(),u.TgZ(11,"div",5)(12,"button",6),u.NdJ("click",function(){return e.onCancel()}),u._uU(13),u.ALo(14,"translate"),u.ALo(15,"customTranslate"),u.qZA(),u.TgZ(16,"button",7),u.NdJ("click",function(){return e.onSubmit()}),u._uU(17),u.ALo(18,"translate"),u.ALo(19,"customTranslate"),u.qZA()()),2&a&&(u.xp6(1),u.Oqu(u.lcZ(2,7,u.lcZ(3,9,"DIALOGS.ADD_SSH.TITLE"))),u.xp6(6),u.s9C("placeholder",u.lcZ(8,11,u.lcZ(9,13,"DIALOGS.ADD_SSH.INPUT_PLACEHOLDER"))),u.Q6J("formControl",e.sshControl),u.xp6(3),u.Q6J("ngIf",e.sshControl.invalid&&e.sshControl.dirty),u.xp6(3),u.hij(" ",u.lcZ(14,15,u.lcZ(15,17,"DIALOGS.ADD_SSH.CANCEL"))," "),u.xp6(3),u.Q6J("disabled",e.sshControl.invalid),u.xp6(1),u.hij(" ",u.lcZ(18,19,u.lcZ(19,21,"DIALOGS.ADD_SSH.ADD"))," "))},dependencies:[T.O5,po,vs,nc,ji,vd,Jh,Zp,Ae,Vt,Br,Or,dr,oi,L0],styles:[".input-width{width:100%}.white-space-pre{white-space:pre-wrap}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper{padding-bottom:0}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-underline{position:initial!important;display:block;margin-top:-1px}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper,perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-ripple{position:initial!important;display:table}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper{min-height:calc(1em + 1px)}\n"],encapsulation:2});let eM=(()=>{class r{constructor(e,t){this.dialogRef=e,this.notificationStorageService=t}ngOnInit(){this.notifications=this.notificationStorageService.getNotifications()}onCancel(){this.dialogRef.close()}onClear(){this.notificationStorageService.clearNotifications(),this.notifications=[]}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(dn),u.Y36(ql))},r.\u0275cmp=u.Xpm({type:r,selectors:[["perun-web-apps-show-notification-history-dialog"]],decls:15,vars:17,consts:[["mat-dialog-title",""],["class","hide-horizontal-scrollbar",4,"ngIf"],["alert_type","warn",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","",1,"ml-2",3,"click"],[1,"hide-horizontal-scrollbar"],["itemSize","50",1,"viewport"],["class","mb-1",4,"cdkVirtualFor","cdkVirtualForOf"],[1,"mb-1"],[3,"data","inDialog"],["alert_type","warn"]],template:function(e,t){1&e&&(u.TgZ(0,"h1",0),u._uU(1),u.ALo(2,"translate"),u.ALo(3,"customTranslate"),u.qZA(),u.YNc(4,nR,3,1,"div",1),u.YNc(5,rR,4,5,"perun-web-apps-alert",2),u.TgZ(6,"div",3)(7,"button",4),u.NdJ("click",function(){return t.onClear()}),u._uU(8),u.ALo(9,"translate"),u.ALo(10,"customTranslate"),u.qZA(),u.TgZ(11,"button",5),u.NdJ("click",function(){return t.onCancel()}),u._uU(12),u.ALo(13,"translate"),u.ALo(14,"customTranslate"),u.qZA()()),2&e&&(u.xp6(1),u.Oqu(u.lcZ(2,5,u.lcZ(3,7,"DIALOGS.NOTIFICATION_LIST.TITLE"))),u.xp6(3),u.Q6J("ngIf",0!==t.notifications.length),u.xp6(1),u.Q6J("ngIf",0===t.notifications.length),u.xp6(3),u.hij(" ",u.lcZ(9,9,u.lcZ(10,11,"DIALOGS.NOTIFICATION_LIST.CLEAR"))," "),u.xp6(4),u.hij(" ",u.lcZ(13,13,u.lcZ(14,15,"DIALOGS.NOTIFICATION_LIST.CANCEL"))," "))},styles:[".viewport[_ngcontent-%COMP%]{height:400px;width:470px}.hide-horizontal-scrollbar[_ngcontent-%COMP%]{overflow-x:hidden}"]}),r})();const aR=["*",[["mat-toolbar-row"]]],oR=["*","mat-toolbar-row"],sR=eo(class{constructor(r){this._elementRef=r}});let lR=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275dir=u.lG2({type:r,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),r})(),cR=(()=>{class r extends sR{constructor(e,t,o){super(e),this._platform=t,this._document=o}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(u.SBq),u.Y36(Zt),u.Y36(T.K0))},r.\u0275cmp=u.Xpm({type:r,selectors:[["mat-toolbar"]],contentQueries:function(e,t,o){if(1&e&&u.Suo(o,lR,5),2&e){let l;u.iGM(l=u.CRH())&&(t._toolbarRows=l)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,t){2&e&&u.ekj("mat-toolbar-multiple-rows",t._toolbarRows.length>0)("mat-toolbar-single-row",0===t._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[u.qOj],ngContentSelectors:oR,decls:2,vars:0,template:function(e,t){1&e&&(u.F$t(aR),u.Hsn(0),u.Hsn(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%}"],encapsulation:2,changeDetection:0}),r})(),tM=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({imports:[qe,qe]}),r})(),dR=0;const uR=ba(class{}),iM="mat-badge-content";let hR=(()=>{class r extends uR{constructor(e,t,o,l,c){super(),this._ngZone=e,this._elementRef=t,this._ariaDescriber=o,this._renderer=l,this._animationMode=c,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=dR++,this._isInitialized=!1}get color(){return this._color}set color(e){this._setColor(e),this._color=e}get overlap(){return this._overlap}set overlap(e){this._overlap=Ze(e)}get content(){return this._content}set content(e){this._updateRenderedContent(e)}get description(){return this._description}set description(e){this._updateHostAriaDescription(e)}get hidden(){return this._hidden}set hidden(e){this._hidden=Ze(e)}isAbove(){return-1===this.position.indexOf("below")}isAfter(){return-1===this.position.indexOf("before")}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=!0}ngOnDestroy(){this._renderer.destroyNode&&this._renderer.destroyNode(this._badgeElement),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_createBadgeElement(){const e=this._renderer.createElement("span"),t="mat-badge-active";return e.setAttribute("id",`mat-badge-content-${this._id}`),e.setAttribute("aria-hidden","true"),e.classList.add(iM),"NoopAnimations"===this._animationMode&&e.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(e),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{e.classList.add(t)})}):e.classList.add(t),e}_updateRenderedContent(e){const t=`${e??""}`.trim();this._isInitialized&&t&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=t),this._content=t}_updateHostAriaDescription(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),e&&this._ariaDescriber.describe(this._elementRef.nativeElement,e),this._description=e}_setColor(e){const t=this._elementRef.nativeElement.classList;t.remove(`mat-badge-${this._color}`),e&&t.add(`mat-badge-${e}`)}_clearExistingBadges(){const e=this._elementRef.nativeElement.querySelectorAll(`:scope > .${iM}`);for(const t of Array.from(e))t!==this._badgeElement&&t.remove()}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(u.R0b),u.Y36(u.SBq),u.Y36(rh),u.Y36(u.Qsj),u.Y36(u.QbO,8))},r.\u0275dir=u.lG2({type:r,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(e,t){2&e&&u.ekj("mat-badge-overlap",t.overlap)("mat-badge-above",t.isAbove())("mat-badge-below",!t.isAbove())("mat-badge-before",!t.isAfter())("mat-badge-after",t.isAfter())("mat-badge-small","small"===t.size)("mat-badge-medium","medium"===t.size)("mat-badge-large","large"===t.size)("mat-badge-hidden",t.hidden||!t.content)("mat-badge-disabled",t.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],position:["matBadgePosition","position"],content:["matBadge","content"],description:["matBadgeDescription","description"],size:["matBadgeSize","size"],hidden:["matBadgeHidden","hidden"]},features:[u.qOj]}),r})(),pR=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({imports:[dl,qe,qe]}),r})();const X0=function(r){return{color:r}};function fR(r,a){if(1&r&&(u.TgZ(0,"button",8),u.ALo(1,"translate"),u.TgZ(2,"mat-icon",4),u._uU(3," apps "),u.qZA()()),2&r){const e=u.oxw(),t=u.MAs(2);u.Q6J("matMenuTriggerFor",t)("matTooltip",u.lcZ(1,3,"NAV.OTHER_APPLICATIONS")),u.xp6(2),u.Q6J("ngStyle",u.VKq(5,X0,e.iconColor))}}function mR(r,a){if(1&r&&(u.TgZ(0,"span",9),u._uU(1),u.qZA()),2&r){const e=u.oxw();u.Q6J("ngStyle",u.VKq(6,X0,e.textColor)),u.xp6(1),u.xDo(" ",e.user.titleBefore," ",e.user.firstName," ",e.user.middleName," ",e.user.lastName," ",e.user.titleAfter," ")}}function gR(r,a){if(1&r){const e=u.EpF();u.TgZ(0,"button",2),u.NdJ("click",function(){u.CHM(e);const o=u.oxw();return u.KtG(o.onLogOut())}),u._uU(1),u.ALo(2,"translate"),u.qZA()}2&r&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"NAV.LOGOUT")," "))}let _R=(()=>{class r{constructor(e){this.authService=e}redirectToUrl(){window.open(this.url,"_blank")}onLogOut(){this.authService.logout()}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(Nr))},r.\u0275cmp=u.Xpm({type:r,selectors:[["perun-web-apps-header-menu"]],inputs:{user:"user",iconColor:"iconColor",textColor:"textColor",logoutEnabled:"logoutEnabled",url:"url",label:"label"},decls:13,vars:8,consts:[["mat-icon-button","",3,"matMenuTriggerFor","matTooltip",4,"ngIf"],["appsMenu","matMenu"],["mat-menu-item","",3,"click"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],["class","d-none d-lg-inline",3,"ngStyle",4,"ngIf"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-icon-button","",3,"matMenuTriggerFor","matTooltip"],[1,"d-none","d-lg-inline",3,"ngStyle"]],template:function(e,t){if(1&e&&(u.YNc(0,fR,4,7,"button",0),u.TgZ(1,"mat-menu",null,1)(3,"button",2),u.NdJ("click",function(){return t.redirectToUrl()}),u.TgZ(4,"span"),u._uU(5),u.qZA()()(),u.TgZ(6,"button",3)(7,"mat-icon",4),u._uU(8," person "),u.qZA(),u.YNc(9,mR,2,8,"span",5),u.qZA(),u.TgZ(10,"mat-menu",null,6),u.YNc(12,gR,3,3,"button",7),u.qZA()),2&e){const o=u.MAs(11);u.Q6J("ngIf",t.url),u.xp6(5),u.Oqu(t.label),u.xp6(1),u.Q6J("matMenuTriggerFor",o),u.xp6(1),u.Q6J("ngStyle",u.VKq(6,X0,t.iconColor)),u.xp6(2),u.Q6J("ngIf",null!==t.user),u.xp6(3),u.Q6J("ngIf",t.logoutEnabled)}},dependencies:[T.O5,T.PC,xn,ep,Bl,tp,ji,Sd,oi],styles:["@media (max-width: 991px){.no-left-padding[_ngcontent-%COMP%]{padding-left:0}}"]}),r})(),bR=(()=>{class r extends Fu{constructor(){super(...arguments),this.queryParamsHandling="merge"}ngOnChanges(){if(this.queryParams&&"applicationFormItems"in this.queryParams){this.queryParamsHandling="";const e=Object.assign({},this.queryParams);delete e.applicationFormItems,this.queryParams=e}}}return r.\u0275fac=function(){let a;return function(t){return(a||(a=u.n5z(r)))(t||r)}}(),r.\u0275dir=u.lG2({type:r,selectors:[["tr","routerLink",""],["a","routerLink",""]],features:[u.qOj,u.TTD]}),r})();const lu=function(r){return{color:r}};function CR(r,a){if(1&r){const e=u.EpF();u.TgZ(0,"button",9),u.NdJ("click",function(){u.CHM(e);const o=u.oxw();return u.KtG(o.onToggleSidenav())}),u.TgZ(1,"mat-icon"),u._uU(2,"menu"),u.qZA()()}if(2&r){const e=u.oxw();u.Q6J("ngStyle",u.VKq(1,lu,e.iconColor))}}function yR(r,a){if(1&r){const e=u.EpF();u.TgZ(0,"div",10)(1,"button",11)(2,"mat-icon",12),u._uU(3," language "),u.qZA()(),u.TgZ(4,"mat-menu",null,13)(6,"button",14),u.NdJ("click",function(){u.CHM(e);const o=u.oxw();return u.KtG(o.changeLanguage())}),u._uU(7),u.ALo(8,"translate"),u.qZA()()()}if(2&r){const e=u.MAs(5),t=u.oxw();u.Q6J("ngStyle",u.VKq(6,lu,t.textColor)),u.xp6(1),u.Q6J("matMenuTriggerFor",e),u.xp6(1),u.Q6J("ngStyle",u.VKq(8,lu,t.iconColor)),u.xp6(5),u.hij(" ",u.lcZ(8,4,"HEADER.LANGUAGE")," ")}}function wR(r,a){if(1&r){const e=u.EpF();u.TgZ(0,"button",15),u.NdJ("click",function(){u.CHM(e);const o=u.oxw();return u.KtG(o.showNotificationHistory())}),u.ALo(1,"translate"),u.TgZ(2,"mat-icon",16),u._uU(3),u.qZA()()}if(2&r){const e=u.oxw();u.Q6J("matTooltip",u.lcZ(1,5,"NAV.NOTIFICATIONS_TOOLTIP")),u.xp6(2),u.s9C("matBadge",e.getNewNotificationsCount()>5?"5+":e.getNewNotificationsCount()),u.Q6J("ngStyle",u.VKq(7,lu,e.iconColor))("matBadgeHidden",0===e.getNewNotificationsCount()),u.xp6(1),u.hij(" ",e.getNewNotificationsCount()?"notifications_active":"notifications"," ")}}function vR(r,a){if(1&r&&u._UZ(0,"perun-web-apps-header-menu",17),2&r){const e=u.oxw();u.Q6J("url",e.otherAppUrl)("label",e.otherAppLabel)("user",e.principal.user)("logoutEnabled",e.logoutEnabled)("iconColor",e.iconColor)("textColor",e.textColor)}}const AR=function(r){return{background:r}},xR=function(){return[]},TR=function(){return["/"]};let ER=(()=>{class r{constructor(e,t,o,l,c,n,i){this.storeService=e,this.sanitizer=t,this.translateService=o,this.otherApplicationService=l,this.notificationStorageService=c,this.dialog=n,this.route=i,this.sidenavToggle=new u.vpe,this.showToggle=!0,this.showLanguageMenu=!1,this.showHeaderMenu=!0,this.showNotifications=!1,this.disableLogo=!1,this.label=this.storeService.getProperty("header_label_en"),this.logoutEnabled=this.storeService.getProperty("log_out_enabled"),this.principal=this.storeService.getPerunPrincipal(),this.bgColor=this.storeService.getProperty("theme").nav_bg_color,this.textColor=this.storeService.getProperty("theme").nav_text_color,this.iconColor=this.storeService.getProperty("theme").nav_icon_color,this.navTextColor=this.storeService.getProperty("theme").nav_text_color,this.activeLink=!1,this.onToggleSidenav=()=>{this.sidenavToggle.emit()}}ngOnInit(){this.otherAppLabel=this.getOtherAppLabel(),this.translateService.onLangChange.subscribe(e=>{this.label=this.storeService.getProperty("en"===e.lang?"header_label_en":"header_label_cs"),this.otherAppLabel=this.getOtherAppLabel(e.lang)}),this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.getProperty("logo")),this.isLinkToOtherAppActive()}getOtherAppLabel(e="en"){return this.storeService.getProperty(this.otherApp===zr.Profile?"profile_label_en":"en"===e?"admin_gui_label_en":"admin_gui_label_cs")}isLinkToOtherAppActive(){if(this.otherApp===zr.Admin){this.linkRoles=this.storeService.getProperty("link_to_admin_gui_by_roles");for(const e in this.storeService.getPerunPrincipal().roles)this.linkRoles.includes(e)&&(this.activeLink=!0)}(this.otherApp!==zr.Admin||this.activeLink)&&(this.otherAppUrl=this.otherApplicationService.getUrlForOtherApplication(this.otherApp))}changeLanguage(){this.translateService.use("en"===this.translateService.currentLang?"cs":"en")}showNotificationHistory(){this.notificationStorageService.newNotificationsCount=0;const e=Qi();e.width="520px",this.dialog.open(eM,e)}getNewNotificationsCount(){return this.notificationStorageService.newNotificationsCount}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(ui),u.Y36(ci),u.Y36(Tn),u.Y36(fb),u.Y36(ql),u.Y36(un),u.Y36(Rn))},r.\u0275cmp=u.Xpm({type:r,selectors:[["perun-web-apps-header"]],inputs:{showToggle:"showToggle",showLanguageMenu:"showLanguageMenu",showHeaderMenu:"showHeaderMenu",showNotifications:"showNotifications",disableLogo:"disableLogo",otherApp:"otherApp"},outputs:{sidenavToggle:"sidenavToggle"},decls:10,vars:19,consts:[[1,"sticky-top","header-container","mat-elevation-z3",3,"ngStyle"],["id","nav-menu-icons"],["aria-label","Menu","mat-icon-button","",3,"ngStyle","click",4,"ngIf"],["queryParamsHandling","merge",1,"logo-container","mt-auto","mb-auto",3,"innerHTML","routerLink","queryParams"],[1,"mt-auto","mb-auto","hide-label","page-subtitle",3,"ngStyle"],["id","nav-menu-user-info",3,"ngStyle"],["id","nav-menu-language",3,"ngStyle",4,"ngIf"],["mat-icon-button","",3,"matTooltip","click",4,"ngIf"],[3,"url","label","user","logoutEnabled","iconColor","textColor",4,"ngIf"],["aria-label","Menu","mat-icon-button","",3,"ngStyle","click"],["id","nav-menu-language",3,"ngStyle"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],["menu","matMenu"],["mat-menu-item","",3,"click"],["mat-icon-button","",3,"matTooltip","click"],["matBadgeColor","warn",3,"ngStyle","matBadge","matBadgeHidden"],[3,"url","label","user","logoutEnabled","iconColor","textColor"]],template:function(e,t){1&e&&(u.TgZ(0,"mat-toolbar",0)(1,"div",1),u.YNc(2,CR,3,3,"button",2),u._UZ(3,"a",3),u.TgZ(4,"p",4),u._uU(5),u.qZA()(),u.TgZ(6,"div",5),u.YNc(7,yR,9,10,"div",6),u.YNc(8,wR,4,9,"button",7),u.YNc(9,vR,1,6,"perun-web-apps-header-menu",8),u.qZA()()),2&e&&(u.Q6J("ngStyle",u.VKq(11,AR,t.bgColor)),u.xp6(2),u.Q6J("ngIf",t.showToggle),u.xp6(1),u.Q6J("innerHTML",t.logo,u.oJD)("routerLink",t.disableLogo?u.DdM(13,xR):u.DdM(14,TR))("queryParams",t.route.snapshot.queryParams),u.xp6(1),u.Q6J("ngStyle",u.VKq(15,lu,t.textColor)),u.xp6(1),u.hij(" ",t.label," "),u.xp6(1),u.Q6J("ngStyle",u.VKq(17,lu,t.navTextColor)),u.xp6(1),u.Q6J("ngIf",t.showLanguageMenu),u.xp6(1),u.Q6J("ngIf",t.showNotifications),u.xp6(1),u.Q6J("ngIf",t.showHeaderMenu))},dependencies:[T.O5,T.PC,Nu,xn,ep,Bl,tp,ji,Sd,cR,hR,_R,bR,oi],styles:[".header-container[_ngcontent-%COMP%]{height:64px!important;display:flex;justify-content:space-between;padding:0 0 0 8px;z-index:999}#nav-menu-user-info[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding-right:16px;margin-left:auto;margin-right:0}@media (max-width: 570px){.hide-label[_ngcontent-%COMP%]{display:none}}#nav-devel-info[_ngcontent-%COMP%]{margin-left:auto;font-weight:500;font-size:1.4rem;display:flex;align-items:center;font-family:Roboto,Helvetica Neue,sans-serif}#nav-menu-icons[_ngcontent-%COMP%]{display:flex;flex-direction:row}.logo-container[_ngcontent-%COMP%]{padding:0 20px 0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}#nav-menu-language[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding-right:16px}"]}),r})();const SR=function(r){return{"background-color":r}};function MR(r,a){if(1&r&&(u.TgZ(0,"div"),u._UZ(1,"perun-web-apps-header",1),u.TgZ(2,"div",2)(3,"div",3),u._UZ(4,"router-outlet"),u.qZA(),u.TgZ(5,"div",4),u._UZ(6,"perun-web-apps-footer"),u.qZA()()()),2&r){const e=u.oxw();u.xp6(1),u.Q6J("showToggle",!1)("otherApp",e.otherApp),u.xp6(1),u.Q6J("ngStyle",u.VKq(3,SR,e.contentBackgroundColor))}}function DR(r,a){1&r&&(u.TgZ(0,"div"),u._UZ(1,"perun-web-apps-login-screen-base",5),u.ALo(2,"translate"),u.qZA()),2&r&&(u.xp6(1),u.Q6J("application","consolidator")("headerTitle",u.lcZ(2,2,"HEADER.TITLE")))}let HR=(()=>{class r{constructor(e,t){this.store=e,this.initAuth=t,this.contentBackgroundColor=this.store.getProperty("theme").content_bg_color,this.isLoginScreenShow=this.initAuth.isLoginScreenShown(),this.otherApp=zr.Profile}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(ui),u.Y36(ys))},r.\u0275cmp=u.Xpm({type:r,selectors:[["perun-web-apps-root"]],decls:2,vars:2,consts:[[4,"ngIf"],["id","nav-menu",3,"showToggle","otherApp"],["id","content-inner",3,"ngStyle"],["id","content-wrap"],["id","footer"],[3,"application","headerTitle"]],template:function(e,t){1&e&&(u.YNc(0,MR,7,5,"div",0),u.YNc(1,DR,3,4,"div",0)),2&e&&(u.Q6J("ngIf",!t.isLoginScreenShow),u.xp6(1),u.Q6J("ngIf",t.isLoginScreenShow))},dependencies:[T.O5,T.PC,Kt,kH,GS,ER,oi],styles:["#content-inner[_ngcontent-%COMP%]{display:flex;flex-direction:column;min-height:100vh;padding-top:64px;justify-content:space-between}#content-wrap[_ngcontent-%COMP%]{padding:25px}#footer[_ngcontent-%COMP%]{bottom:0;width:100%}#nav-menu[_ngcontent-%COMP%]{top:0;background:#102027;position:fixed;width:100%;z-index:999;height:64px;max-height:64px}"]}),r})();function nM(r){return new u.vHH(3e3,!1)}function uI(){return typeof window<"u"&&typeof window.document<"u"}function ex(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function Es(r){switch(r.length){case 0:return new ao;case 1:return r[0];default:return new qh(r)}}function rM(r,a,e,t,o=new Map,l=new Map){const c=[],n=[];let i=-1,s=null;if(t.forEach(d=>{const h=d.get("offset"),f=h==i,b=f&&s||new Map;d.forEach((H,j)=>{let ae=j,ke=H;if("offset"!==j)switch(ae=a.normalizePropertyName(ae,c),ke){case"!":ke=o.get(j);break;case or:ke=l.get(j);break;default:ke=a.normalizeStyleValue(j,ae,ke,c)}b.set(ae,ke)}),f||n.push(b),s=b,i=h}),c.length)throw function XR(r){return new u.vHH(3502,!1)}();return n}function tx(r,a,e,t){switch(a){case"start":r.onStart(()=>t(e&&ix(e,"start",r)));break;case"done":r.onDone(()=>t(e&&ix(e,"done",r)));break;case"destroy":r.onDestroy(()=>t(e&&ix(e,"destroy",r)))}}function ix(r,a,e){const l=nx(r.element,r.triggerName,r.fromState,r.toState,a||r.phaseName,e.totalTime??r.totalTime,!!e.disabled),c=r._data;return null!=c&&(l._data=c),l}function nx(r,a,e,t,o="",l=0,c){return{element:r,triggerName:a,fromState:e,toState:t,phaseName:o,totalTime:l,disabled:!!c}}function Nn(r,a,e){let t=r.get(a);return t||r.set(a,t=e),t}function aM(r){const a=r.indexOf(":");return[r.substring(1,a),r.slice(a+1)]}let rx=(r,a)=>!1,oM=(r,a,e)=>[],sM=null;function ax(r){const a=r.parentNode||r.host;return a===sM?null:a}(ex()||typeof Element<"u")&&(uI()?(sM=(()=>document.documentElement)(),rx=(r,a)=>{for(;a;){if(a===r)return!0;a=ax(a)}return!1}):rx=(r,a)=>r.contains(a),oM=(r,a,e)=>{if(e)return Array.from(r.querySelectorAll(a));const t=r.querySelector(a);return t?[t]:[]});let rc=null,lM=!1;const cM=rx,dM=oM;let uM=(()=>{class r{validateStyleProperty(e){return function pI(r){rc||(rc=function fI(){return typeof document<"u"?document.body:null}()||{},lM=!!rc.style&&"WebkitAppearance"in rc.style);let a=!0;return rc.style&&!function hI(r){return"ebkit"==r.substring(1,6)}(r)&&(a=r in rc.style,!a&&lM&&(a="Webkit"+r.charAt(0).toUpperCase()+r.slice(1)in rc.style)),a}(e)}matchesElement(e,t){return!1}containsElement(e,t){return cM(e,t)}getParentElement(e){return ax(e)}query(e,t,o){return dM(e,t,o)}computeStyle(e,t,o){return o||""}animate(e,t,o,l,c,n=[],i){return new ao(o,l)}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac}),r})(),ox=(()=>{class r{}return r.NOOP=new uM,r})();const sx="ng-enter",pC="ng-leave",fC="ng-trigger",mC=".ng-trigger",pM="ng-animating",lx=".ng-animating";function Ss(r){if("number"==typeof r)return r;const a=r.match(/^(-?[\.\d]+)(m?s)/);return!a||a.length<2?0:cx(parseFloat(a[1]),a[2])}function cx(r,a){return"s"===a?1e3*r:r}function gC(r,a,e){return r.hasOwnProperty("duration")?r:function _I(r,a,e){let o,l=0,c="";if("string"==typeof r){const n=r.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return a.push(nM()),{duration:0,delay:0,easing:""};o=cx(parseFloat(n[1]),n[2]);const i=n[3];null!=i&&(l=cx(parseFloat(i),n[4]));const s=n[5];s&&(c=s)}else o=r;if(!e){let n=!1,i=a.length;o<0&&(a.push(function PR(){return new u.vHH(3100,!1)}()),n=!0),l<0&&(a.push(function RR(){return new u.vHH(3101,!1)}()),n=!0),n&&a.splice(i,0,nM())}return{duration:o,delay:l,easing:c}}(r,a,e)}function mf(r,a={}){return Object.keys(r).forEach(e=>{a[e]=r[e]}),a}function fM(r){const a=new Map;return Object.keys(r).forEach(e=>{a.set(e,r[e])}),a}function Ms(r,a=new Map,e){if(e)for(let[t,o]of e)a.set(t,o);for(let[t,o]of r)a.set(t,o);return a}function gM(r,a,e){return e?a+":"+e+";":""}function _M(r){let a="";for(let e=0;e{const l=ux(o);e&&!e.has(o)&&e.set(o,r.style[l]),r.style[l]=t}),ex()&&_M(r))}function ac(r,a){r.style&&(a.forEach((e,t)=>{const o=ux(t);r.style[o]=""}),ex()&&_M(r))}function gf(r){return Array.isArray(r)?1==r.length?r[0]:Cd(r):r}const dx=new RegExp("{{\\s*(.+?)\\s*}}","g");function bM(r){let a=[];if("string"==typeof r){let e;for(;e=dx.exec(r);)a.push(e[1]);dx.lastIndex=0}return a}function _C(r,a,e){const t=r.toString(),o=t.replace(dx,(l,c)=>{let n=a[c];return null==n&&(e.push(function kR(r){return new u.vHH(3003,!1)}()),n=""),n.toString()});return o==t?r:o}function bC(r){const a=[];let e=r.next();for(;!e.done;)a.push(e.value),e=r.next();return a}const yI=/-+([a-z0-9])/g;function ux(r){return r.replace(yI,(...a)=>a[1].toUpperCase())}function wI(r){return r.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function jn(r,a,e){switch(a.type){case 7:return r.visitTrigger(a,e);case 0:return r.visitState(a,e);case 1:return r.visitTransition(a,e);case 2:return r.visitSequence(a,e);case 3:return r.visitGroup(a,e);case 4:return r.visitAnimate(a,e);case 5:return r.visitKeyframes(a,e);case 6:return r.visitStyle(a,e);case 8:return r.visitReference(a,e);case 9:return r.visitAnimateChild(a,e);case 10:return r.visitAnimateRef(a,e);case 11:return r.visitQuery(a,e);case 12:return r.visitStagger(a,e);default:throw function VR(r){return new u.vHH(3004,!1)}()}}function CM(r,a){return window.getComputedStyle(r)[a]}function SI(r,a){const e=[];return"string"==typeof r?r.split(/\s*,\s*/).forEach(t=>function MI(r,a,e){if(":"==r[0]){const i=function DI(r,a){switch(r){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t) *"}}(r,e);if("function"==typeof i)return void a.push(i);r=i}const t=r.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==t||t.length<4)return e.push(function YR(r){return new u.vHH(3015,!1)}()),a;const o=t[1],l=t[2],c=t[3];a.push(yM(o,c));"<"==l[0]&&!("*"==o&&"*"==c)&&a.push(yM(c,o))}(t,e,a)):e.push(r),e}const vC=new Set(["true","1"]),AC=new Set(["false","0"]);function yM(r,a){const e=vC.has(r)||AC.has(r),t=vC.has(a)||AC.has(a);return(o,l)=>{let c="*"==r||r==o,n="*"==a||a==l;return!c&&e&&"boolean"==typeof o&&(c=o?vC.has(r):AC.has(r)),!n&&t&&"boolean"==typeof l&&(n=l?vC.has(a):AC.has(a)),c&&n}}const HI=new RegExp("s*:selfs*,?","g");function hx(r,a,e,t){return new PI(r).build(a,e,t)}class PI{constructor(a){this._driver=a}build(a,e,t){const o=new kI(e);return this._resetContextStyleTimingState(o),jn(this,gf(a),o)}_resetContextStyleTimingState(a){a.currentQuerySelector="",a.collectedStyles=new Map,a.collectedStyles.set("",new Map),a.currentTime=0}visitTrigger(a,e){let t=e.queryCount=0,o=e.depCount=0;const l=[],c=[];return"@"==a.name.charAt(0)&&e.errors.push(function OR(){return new u.vHH(3006,!1)}()),a.definitions.forEach(n=>{if(this._resetContextStyleTimingState(e),0==n.type){const i=n,s=i.name;s.toString().split(/\s*,\s*/).forEach(d=>{i.name=d,l.push(this.visitState(i,e))}),i.name=s}else if(1==n.type){const i=this.visitTransition(n,e);t+=i.queryCount,o+=i.depCount,c.push(i)}else e.errors.push(function LR(){return new u.vHH(3007,!1)}())}),{type:7,name:a.name,states:l,transitions:c,queryCount:t,depCount:o,options:null}}visitState(a,e){const t=this.visitStyle(a.styles,e),o=a.options&&a.options.params||null;if(t.containsDynamicStyles){const l=new Set,c=o||{};t.styles.forEach(n=>{n instanceof Map&&n.forEach(i=>{bM(i).forEach(s=>{c.hasOwnProperty(s)||l.add(s)})})}),l.size&&(bC(l.values()),e.errors.push(function FR(r,a){return new u.vHH(3008,!1)}()))}return{type:0,name:a.name,style:t,options:o?{params:o}:null}}visitTransition(a,e){e.queryCount=0,e.depCount=0;const t=jn(this,gf(a.animation),e);return{type:1,matchers:SI(a.expr,e.errors),animation:t,queryCount:e.queryCount,depCount:e.depCount,options:oc(a.options)}}visitSequence(a,e){return{type:2,steps:a.steps.map(t=>jn(this,t,e)),options:oc(a.options)}}visitGroup(a,e){const t=e.currentTime;let o=0;const l=a.steps.map(c=>{e.currentTime=t;const n=jn(this,c,e);return o=Math.max(o,e.currentTime),n});return e.currentTime=o,{type:3,steps:l,options:oc(a.options)}}visitAnimate(a,e){const t=function BI(r,a){if(r.hasOwnProperty("duration"))return r;if("number"==typeof r)return px(gC(r,a).duration,0,"");const e=r;if(e.split(/\s+/).some(l=>"{"==l.charAt(0)&&"{"==l.charAt(1))){const l=px(0,0,"");return l.dynamic=!0,l.strValue=e,l}const o=gC(e,a);return px(o.duration,o.delay,o.easing)}(a.timings,e.errors);e.currentAnimateTimings=t;let o,l=a.styles?a.styles:Fe({});if(5==l.type)o=this.visitKeyframes(l,e);else{let c=a.styles,n=!1;if(!c){n=!0;const s={};t.easing&&(s.easing=t.easing),c=Fe(s)}e.currentTime+=t.duration+t.delay;const i=this.visitStyle(c,e);i.isEmptyStep=n,o=i}return e.currentAnimateTimings=null,{type:4,timings:t,style:o,options:null}}visitStyle(a,e){const t=this._makeStyleAst(a,e);return this._validateStyleAst(t,e),t}_makeStyleAst(a,e){const t=[],o=Array.isArray(a.styles)?a.styles:[a.styles];for(let n of o)"string"==typeof n?n===or?t.push(n):e.errors.push(new u.vHH(3002,!1)):t.push(fM(n));let l=!1,c=null;return t.forEach(n=>{if(n instanceof Map&&(n.has("easing")&&(c=n.get("easing"),n.delete("easing")),!l))for(let i of n.values())if(i.toString().indexOf("{{")>=0){l=!0;break}}),{type:6,styles:t,easing:c,offset:a.offset,containsDynamicStyles:l,options:null}}_validateStyleAst(a,e){const t=e.currentAnimateTimings;let o=e.currentTime,l=e.currentTime;t&&l>0&&(l-=t.duration+t.delay),a.styles.forEach(c=>{"string"!=typeof c&&c.forEach((n,i)=>{const s=e.collectedStyles.get(e.currentQuerySelector),d=s.get(i);let h=!0;d&&(l!=o&&l>=d.startTime&&o<=d.endTime&&(e.errors.push(function jR(r,a,e,t,o){return new u.vHH(3010,!1)}()),h=!1),l=d.startTime),h&&s.set(i,{startTime:l,endTime:o}),e.options&&function CI(r,a,e){const t=a.params||{},o=bM(r);o.length&&o.forEach(l=>{t.hasOwnProperty(l)||e.push(function IR(r){return new u.vHH(3001,!1)}())})}(n,e.options,e.errors)})})}visitKeyframes(a,e){const t={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function zR(){return new u.vHH(3011,!1)}()),t;let l=0;const c=[];let n=!1,i=!1,s=0;const d=a.steps.map(ke=>{const ct=this._makeStyleAst(ke,e);let yt=null!=ct.offset?ct.offset:function VI(r){if("string"==typeof r)return null;let a=null;if(Array.isArray(r))r.forEach(e=>{if(e instanceof Map&&e.has("offset")){const t=e;a=parseFloat(t.get("offset")),t.delete("offset")}});else if(r instanceof Map&&r.has("offset")){const e=r;a=parseFloat(e.get("offset")),e.delete("offset")}return a}(ct.styles),zt=0;return null!=yt&&(l++,zt=ct.offset=yt),i=i||zt<0||zt>1,n=n||zt0&&l{const yt=f>0?ct==b?1:f*ct:c[ct],zt=yt*ae;e.currentTime=H+j.delay+zt,j.duration=zt,this._validateStyleAst(ke,e),ke.offset=yt,t.styles.push(ke)}),t}visitReference(a,e){return{type:8,animation:jn(this,gf(a.animation),e),options:oc(a.options)}}visitAnimateChild(a,e){return e.depCount++,{type:9,options:oc(a.options)}}visitAnimateRef(a,e){return{type:10,animation:this.visitReference(a.animation,e),options:oc(a.options)}}visitQuery(a,e){const t=e.currentQuerySelector,o=a.options||{};e.queryCount++,e.currentQuery=a;const[l,c]=function RI(r){const a=!!r.split(/\s*,\s*/).find(e=>":self"==e);return a&&(r=r.replace(HI,"")),r=r.replace(/@\*/g,mC).replace(/@\w+/g,e=>mC+"-"+e.slice(1)).replace(/:animating/g,lx),[r,a]}(a.selector);e.currentQuerySelector=t.length?t+" "+l:l,Nn(e.collectedStyles,e.currentQuerySelector,new Map);const n=jn(this,gf(a.animation),e);return e.currentQuery=null,e.currentQuerySelector=t,{type:11,selector:l,limit:o.limit||0,optional:!!o.optional,includeSelf:c,animation:n,originalSelector:a.selector,options:oc(a.options)}}visitStagger(a,e){e.currentQuery||e.errors.push(function WR(){return new u.vHH(3013,!1)}());const t="full"===a.timings?{duration:0,delay:0,easing:"full"}:gC(a.timings,e.errors,!0);return{type:12,animation:jn(this,gf(a.animation),e),timings:t,options:null}}}class kI{constructor(a){this.errors=a,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function oc(r){return r?(r=mf(r)).params&&(r.params=function II(r){return r?mf(r):null}(r.params)):r={},r}function px(r,a,e){return{duration:r,delay:a,easing:e}}function fx(r,a,e,t,o,l,c=null,n=!1){return{type:1,element:r,keyframes:a,preStyleProps:e,postStyleProps:t,duration:o,delay:l,totalTime:o+l,easing:c,subTimeline:n}}class xC{constructor(){this._map=new Map}get(a){return this._map.get(a)||[]}append(a,e){let t=this._map.get(a);t||this._map.set(a,t=[]),t.push(...e)}has(a){return this._map.has(a)}clear(){this._map.clear()}}const FI=new RegExp(":enter","g"),jI=new RegExp(":leave","g");function mx(r,a,e,t,o,l=new Map,c=new Map,n,i,s=[]){return(new zI).buildKeyframes(r,a,e,t,o,l,c,n,i,s)}class zI{buildKeyframes(a,e,t,o,l,c,n,i,s,d=[]){s=s||new xC;const h=new gx(a,e,s,o,l,d,[]);h.options=i;const f=i.delay?Ss(i.delay):0;h.currentTimeline.delayNextStep(f),h.currentTimeline.setStyles([c],null,h.errors,i),jn(this,t,h);const b=h.timelines.filter(H=>H.containsAnimation());if(b.length&&n.size){let H;for(let j=b.length-1;j>=0;j--){const ae=b[j];if(ae.element===e){H=ae;break}}H&&!H.allowOnlyTimelineStyles()&&H.setStyles([n],null,h.errors,i)}return b.length?b.map(H=>H.buildKeyframes()):[fx(e,[],[],[],0,f,"",!1)]}visitTrigger(a,e){}visitState(a,e){}visitTransition(a,e){}visitAnimateChild(a,e){const t=e.subInstructions.get(e.element);if(t){const o=e.createSubContext(a.options),l=e.currentTimeline.currentTime,c=this._visitSubInstructions(t,o,o.options);l!=c&&e.transformIntoNewTimeline(c)}e.previousNode=a}visitAnimateRef(a,e){const t=e.createSubContext(a.options);t.transformIntoNewTimeline(),this.visitReference(a.animation,t),e.transformIntoNewTimeline(t.currentTimeline.currentTime),e.previousNode=a}_visitSubInstructions(a,e,t){let l=e.currentTimeline.currentTime;const c=null!=t.duration?Ss(t.duration):null,n=null!=t.delay?Ss(t.delay):null;return 0!==c&&a.forEach(i=>{const s=e.appendInstructionToTimeline(i,c,n);l=Math.max(l,s.duration+s.delay)}),l}visitReference(a,e){e.updateOptions(a.options,!0),jn(this,a.animation,e),e.previousNode=a}visitSequence(a,e){const t=e.subContextCount;let o=e;const l=a.options;if(l&&(l.params||l.delay)&&(o=e.createSubContext(l),o.transformIntoNewTimeline(),null!=l.delay)){6==o.previousNode.type&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=TC);const c=Ss(l.delay);o.delayNextStep(c)}a.steps.length&&(a.steps.forEach(c=>jn(this,c,o)),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>t&&o.transformIntoNewTimeline()),e.previousNode=a}visitGroup(a,e){const t=[];let o=e.currentTimeline.currentTime;const l=a.options&&a.options.delay?Ss(a.options.delay):0;a.steps.forEach(c=>{const n=e.createSubContext(a.options);l&&n.delayNextStep(l),jn(this,c,n),o=Math.max(o,n.currentTimeline.currentTime),t.push(n.currentTimeline)}),t.forEach(c=>e.currentTimeline.mergeTimelineCollectedStyles(c)),e.transformIntoNewTimeline(o),e.previousNode=a}_visitTiming(a,e){if(a.dynamic){const t=a.strValue;return gC(e.params?_C(t,e.params,e.errors):t,e.errors)}return{duration:a.duration,delay:a.delay,easing:a.easing}}visitAnimate(a,e){const t=e.currentAnimateTimings=this._visitTiming(a.timings,e),o=e.currentTimeline;t.delay&&(e.incrementTime(t.delay),o.snapshotCurrentStyles());const l=a.style;5==l.type?this.visitKeyframes(l,e):(e.incrementTime(t.duration),this.visitStyle(l,e),o.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=a}visitStyle(a,e){const t=e.currentTimeline,o=e.currentAnimateTimings;!o&&t.hasCurrentStyleProperties()&&t.forwardFrame();const l=o&&o.easing||a.easing;a.isEmptyStep?t.applyEmptyStep(l):t.setStyles(a.styles,l,e.errors,e.options),e.previousNode=a}visitKeyframes(a,e){const t=e.currentAnimateTimings,o=e.currentTimeline.duration,l=t.duration,n=e.createSubContext().currentTimeline;n.easing=t.easing,a.styles.forEach(i=>{n.forwardTime((i.offset||0)*l),n.setStyles(i.styles,i.easing,e.errors,e.options),n.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(n),e.transformIntoNewTimeline(o+l),e.previousNode=a}visitQuery(a,e){const t=e.currentTimeline.currentTime,o=a.options||{},l=o.delay?Ss(o.delay):0;l&&(6===e.previousNode.type||0==t&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=TC);let c=t;const n=e.invokeQuery(a.selector,a.originalSelector,a.limit,a.includeSelf,!!o.optional,e.errors);e.currentQueryTotal=n.length;let i=null;n.forEach((s,d)=>{e.currentQueryIndex=d;const h=e.createSubContext(a.options,s);l&&h.delayNextStep(l),s===e.element&&(i=h.currentTimeline),jn(this,a.animation,h),h.currentTimeline.applyStylesToKeyframe(),c=Math.max(c,h.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(c),i&&(e.currentTimeline.mergeTimelineCollectedStyles(i),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=a}visitStagger(a,e){const t=e.parentContext,o=e.currentTimeline,l=a.timings,c=Math.abs(l.duration),n=c*(e.currentQueryTotal-1);let i=c*e.currentQueryIndex;switch(l.duration<0?"reverse":l.easing){case"reverse":i=n-i;break;case"full":i=t.currentStaggerTime}const d=e.currentTimeline;i&&d.delayNextStep(i);const h=d.currentTime;jn(this,a.animation,e),e.previousNode=a,t.currentStaggerTime=o.currentTime-h+(o.startTime-t.currentTimeline.startTime)}}const TC={};class gx{constructor(a,e,t,o,l,c,n,i){this._driver=a,this.element=e,this.subInstructions=t,this._enterClassName=o,this._leaveClassName=l,this.errors=c,this.timelines=n,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=TC,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=i||new EC(this._driver,e,0),n.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(a,e){if(!a)return;const t=a;let o=this.options;null!=t.duration&&(o.duration=Ss(t.duration)),null!=t.delay&&(o.delay=Ss(t.delay));const l=t.params;if(l){let c=o.params;c||(c=this.options.params={}),Object.keys(l).forEach(n=>{(!e||!c.hasOwnProperty(n))&&(c[n]=_C(l[n],c,this.errors))})}}_copyOptions(){const a={};if(this.options){const e=this.options.params;if(e){const t=a.params={};Object.keys(e).forEach(o=>{t[o]=e[o]})}}return a}createSubContext(a=null,e,t){const o=e||this.element,l=new gx(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,t||0));return l.previousNode=this.previousNode,l.currentAnimateTimings=this.currentAnimateTimings,l.options=this._copyOptions(),l.updateOptions(a),l.currentQueryIndex=this.currentQueryIndex,l.currentQueryTotal=this.currentQueryTotal,l.parentContext=this,this.subContextCount++,l}transformIntoNewTimeline(a){return this.previousNode=TC,this.currentTimeline=this.currentTimeline.fork(this.element,a),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(a,e,t){const o={duration:e??a.duration,delay:this.currentTimeline.currentTime+(t??0)+a.delay,easing:""},l=new UI(this._driver,a.element,a.keyframes,a.preStyleProps,a.postStyleProps,o,a.stretchStartingKeyframe);return this.timelines.push(l),o}incrementTime(a){this.currentTimeline.forwardTime(this.currentTimeline.duration+a)}delayNextStep(a){a>0&&this.currentTimeline.delayNextStep(a)}invokeQuery(a,e,t,o,l,c){let n=[];if(o&&n.push(this.element),a.length>0){a=(a=a.replace(FI,"."+this._enterClassName)).replace(jI,"."+this._leaveClassName);let s=this._driver.query(this.element,a,1!=t);0!==t&&(s=t<0?s.slice(s.length+t,s.length):s.slice(0,t)),n.push(...s)}return!l&&0==n.length&&c.push(function $R(r){return new u.vHH(3014,!1)}()),n}}class EC{constructor(a,e,t,o){this._driver=a,this.element=e,this.startTime=t,this._elementTimelineStylesLookup=o,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),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.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(a){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+a),e&&this.snapshotCurrentStyles()):this.startTime+=a}fork(a,e){return this.applyStylesToKeyframe(),new EC(this._driver,a,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(a){this.applyStylesToKeyframe(),this.duration=a,this._loadKeyframe()}_updateStyle(a,e){this._localTimelineStyles.set(a,e),this._globalTimelineStyles.set(a,e),this._styleSummary.set(a,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(a){a&&this._previousKeyframe.set("easing",a);for(let[e,t]of this._globalTimelineStyles)this._backFill.set(e,t||or),this._currentKeyframe.set(e,or);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(a,e,t,o){e&&this._previousKeyframe.set("easing",e);const l=o&&o.params||{},c=function GI(r,a){const e=new Map;let t;return r.forEach(o=>{if("*"===o){t=t||a.keys();for(let l of t)e.set(l,or)}else Ms(o,e)}),e}(a,this._globalTimelineStyles);for(let[n,i]of c){const s=_C(i,l,t);this._pendingStyles.set(n,s),this._localTimelineStyles.has(n)||this._backFill.set(n,this._globalTimelineStyles.get(n)??or),this._updateStyle(n,s)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((a,e)=>{this._currentKeyframe.set(e,a)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((a,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,a)}))}snapshotCurrentStyles(){for(let[a,e]of this._localTimelineStyles)this._pendingStyles.set(a,e),this._updateStyle(a,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const a=[];for(let e in this._currentKeyframe)a.push(e);return a}mergeTimelineCollectedStyles(a){a._styleSummary.forEach((e,t)=>{const o=this._styleSummary.get(t);(!o||e.time>o.time)&&this._updateStyle(t,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const a=new Set,e=new Set,t=1===this._keyframes.size&&0===this.duration;let o=[];this._keyframes.forEach((n,i)=>{const s=Ms(n,new Map,this._backFill);s.forEach((d,h)=>{"!"===d?a.add(h):d===or&&e.add(h)}),t||s.set("offset",i/this.duration),o.push(s)});const l=a.size?bC(a.values()):[],c=e.size?bC(e.values()):[];if(t){const n=o[0],i=new Map(n);n.set("offset",0),i.set("offset",1),o=[n,i]}return fx(this.element,o,l,c,this.duration,this.startTime,this.easing,!1)}}class UI extends EC{constructor(a,e,t,o,l,c,n=!1){super(a,e,c.delay),this.keyframes=t,this.preStyleProps=o,this.postStyleProps=l,this._stretchStartingKeyframe=n,this.timings={duration:c.duration,delay:c.delay,easing:c.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let a=this.keyframes,{delay:e,duration:t,easing:o}=this.timings;if(this._stretchStartingKeyframe&&e){const l=[],c=t+e,n=e/c,i=Ms(a[0]);i.set("offset",0),l.push(i);const s=Ms(a[0]);s.set("offset",AM(n)),l.push(s);const d=a.length-1;for(let h=1;h<=d;h++){let f=Ms(a[h]);const b=f.get("offset");f.set("offset",AM((e+b*t)/c)),l.push(f)}t=c,e=0,o="",a=l}return fx(this.element,a,this.preStyleProps,this.postStyleProps,t,e,o,!0)}}function AM(r,a=3){const e=Math.pow(10,a-1);return Math.round(r*e)/e}class _x{}const qI=new Set(["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"]);class WI extends _x{normalizePropertyName(a,e){return ux(a)}normalizeStyleValue(a,e,t,o){let l="";const c=t.toString().trim();if(qI.has(e)&&0!==t&&"0"!==t)if("number"==typeof t)l="px";else{const n=t.match(/^[+-]?[\d\.]+([a-z]*)$/);n&&0==n[1].length&&o.push(function BR(r,a){return new u.vHH(3005,!1)}())}return c+l}}function xM(r,a,e,t,o,l,c,n,i,s,d,h,f){return{type:0,element:r,triggerName:a,isRemovalTransition:o,fromState:e,fromStyles:l,toState:t,toStyles:c,timelines:n,queriedElements:i,preStyleProps:s,postStyleProps:d,totalTime:h,errors:f}}const bx={};class TM{constructor(a,e,t){this._triggerName=a,this.ast=e,this._stateStyles=t}match(a,e,t,o){return function $I(r,a,e,t,o){return r.some(l=>l(a,e,t,o))}(this.ast.matchers,a,e,t,o)}buildStyles(a,e,t){let o=this._stateStyles.get("*");return void 0!==a&&(o=this._stateStyles.get(a?.toString())||o),o?o.buildStyles(e,t):new Map}build(a,e,t,o,l,c,n,i,s,d){const h=[],f=this.ast.options&&this.ast.options.params||bx,H=this.buildStyles(t,n&&n.params||bx,h),j=i&&i.params||bx,ae=this.buildStyles(o,j,h),ke=new Set,ct=new Map,yt=new Map,zt="void"===o,Gr={params:YI(j,f),delay:this.ast.options?.delay},mr=d?[]:mx(a,e,this.ast.animation,l,c,H,ae,Gr,s,h);let pn=0;if(mr.forEach(To=>{pn=Math.max(To.duration+To.delay,pn)}),h.length)return xM(e,this._triggerName,t,o,zt,H,ae,[],[],ct,yt,pn,h);mr.forEach(To=>{const Eo=To.element,BD=Nn(ct,Eo,new Set);To.preStyleProps.forEach(lc=>BD.add(lc));const vf=Nn(yt,Eo,new Set);To.postStyleProps.forEach(lc=>vf.add(lc)),Eo!==e&&ke.add(Eo)});const xo=bC(ke.values());return xM(e,this._triggerName,t,o,zt,H,ae,mr,xo,ct,yt,pn)}}function YI(r,a){const e=mf(a);for(const t in r)r.hasOwnProperty(t)&&null!=r[t]&&(e[t]=r[t]);return e}class QI{constructor(a,e,t){this.styles=a,this.defaultParams=e,this.normalizer=t}buildStyles(a,e){const t=new Map,o=mf(this.defaultParams);return Object.keys(a).forEach(l=>{const c=a[l];null!==c&&(o[l]=c)}),this.styles.styles.forEach(l=>{"string"!=typeof l&&l.forEach((c,n)=>{c&&(c=_C(c,o,e));const i=this.normalizer.normalizePropertyName(n,e);c=this.normalizer.normalizeStyleValue(n,i,c,e),t.set(i,c)})}),t}}class KI{constructor(a,e,t){this.name=a,this.ast=e,this._normalizer=t,this.transitionFactories=[],this.states=new Map,e.states.forEach(o=>{this.states.set(o.name,new QI(o.style,o.options&&o.options.params||{},t))}),EM(this.states,"true","1"),EM(this.states,"false","0"),e.transitions.forEach(o=>{this.transitionFactories.push(new TM(a,o,this.states))}),this.fallbackTransition=function ZI(r,a,e){return new TM(r,{type:1,animation:{type:2,steps:[],options:null},matchers:[(c,n)=>!0],options:null,queryCount:0,depCount:0},a)}(a,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(a,e,t,o){return this.transitionFactories.find(c=>c.match(a,e,t,o))||null}matchStyles(a,e,t){return this.fallbackTransition.buildStyles(a,e,t)}}function EM(r,a,e){r.has(a)?r.has(e)||r.set(e,r.get(a)):r.has(e)&&r.set(a,r.get(e))}const XI=new xC;class ek{constructor(a,e,t){this.bodyNode=a,this._driver=e,this._normalizer=t,this._animations=new Map,this._playersById=new Map,this.players=[]}register(a,e){const t=[],l=hx(this._driver,e,t,[]);if(t.length)throw function eI(r){return new u.vHH(3503,!1)}();this._animations.set(a,l)}_buildPlayer(a,e,t){const o=a.element,l=rM(0,this._normalizer,0,a.keyframes,e,t);return this._driver.animate(o,l,a.duration,a.delay,a.easing,[],!0)}create(a,e,t={}){const o=[],l=this._animations.get(a);let c;const n=new Map;if(l?(c=mx(this._driver,e,l,sx,pC,new Map,new Map,t,XI,o),c.forEach(d=>{const h=Nn(n,d.element,new Map);d.postStyleProps.forEach(f=>h.set(f,null))})):(o.push(function tI(){return new u.vHH(3300,!1)}()),c=[]),o.length)throw function iI(r){return new u.vHH(3504,!1)}();n.forEach((d,h)=>{d.forEach((f,b)=>{d.set(b,this._driver.computeStyle(h,b,or))})});const s=Es(c.map(d=>{const h=n.get(d.element);return this._buildPlayer(d,new Map,h)}));return this._playersById.set(a,s),s.onDestroy(()=>this.destroy(a)),this.players.push(s),s}destroy(a){const e=this._getPlayer(a);e.destroy(),this._playersById.delete(a);const t=this.players.indexOf(e);t>=0&&this.players.splice(t,1)}_getPlayer(a){const e=this._playersById.get(a);if(!e)throw function nI(r){return new u.vHH(3301,!1)}();return e}listen(a,e,t,o){const l=nx(e,"","","");return tx(this._getPlayer(a),t,l,o),()=>{}}command(a,e,t,o){if("register"==t)return void this.register(a,o[0]);if("create"==t)return void this.create(a,e,o[0]||{});const l=this._getPlayer(a);switch(t){case"play":l.play();break;case"pause":l.pause();break;case"reset":l.reset();break;case"restart":l.restart();break;case"finish":l.finish();break;case"init":l.init();break;case"setPosition":l.setPosition(parseFloat(o[0]));break;case"destroy":this.destroy(a)}}}const SM="ng-animate-queued",Cx="ng-animate-disabled",ak=[],MM={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},ok={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},pr="__ng_removed";class yx{constructor(a,e=""){this.namespaceId=e;const t=a&&a.hasOwnProperty("value");if(this.value=function dk(r){return r??null}(t?a.value:a),t){const l=mf(a);delete l.value,this.options=l}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(a){const e=a.params;if(e){const t=this.options.params;Object.keys(e).forEach(o=>{null==t[o]&&(t[o]=e[o])})}}}const _f="void",wx=new yx(_f);class sk{constructor(a,e,t){this.id=a,this.hostElement=e,this._engine=t,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+a,fr(e,this._hostClassName)}listen(a,e,t,o){if(!this._triggers.has(e))throw function rI(r,a){return new u.vHH(3302,!1)}();if(null==t||0==t.length)throw function aI(r){return new u.vHH(3303,!1)}();if(!function uk(r){return"start"==r||"done"==r}(t))throw function oI(r,a){return new u.vHH(3400,!1)}();const l=Nn(this._elementListeners,a,[]),c={name:e,phase:t,callback:o};l.push(c);const n=Nn(this._engine.statesByElement,a,new Map);return n.has(e)||(fr(a,fC),fr(a,fC+"-"+e),n.set(e,wx)),()=>{this._engine.afterFlush(()=>{const i=l.indexOf(c);i>=0&&l.splice(i,1),this._triggers.has(e)||n.delete(e)})}}register(a,e){return!this._triggers.has(a)&&(this._triggers.set(a,e),!0)}_getTrigger(a){const e=this._triggers.get(a);if(!e)throw function sI(r){return new u.vHH(3401,!1)}();return e}trigger(a,e,t,o=!0){const l=this._getTrigger(e),c=new vx(this.id,e,a);let n=this._engine.statesByElement.get(a);n||(fr(a,fC),fr(a,fC+"-"+e),this._engine.statesByElement.set(a,n=new Map));let i=n.get(e);const s=new yx(t,this.id);if(!(t&&t.hasOwnProperty("value"))&&i&&s.absorbOptions(i.options),n.set(e,s),i||(i=wx),s.value!==_f&&i.value===s.value){if(!function fk(r,a){const e=Object.keys(r),t=Object.keys(a);if(e.length!=t.length)return!1;for(let o=0;o{ac(a,ae),Ea(a,ke)})}return}const f=Nn(this._engine.playersByElement,a,[]);f.forEach(j=>{j.namespaceId==this.id&&j.triggerName==e&&j.queued&&j.destroy()});let b=l.matchTransition(i.value,s.value,a,s.params),H=!1;if(!b){if(!o)return;b=l.fallbackTransition,H=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:a,triggerName:e,transition:b,fromState:i,toState:s,player:c,isFallbackTransition:H}),H||(fr(a,SM),c.onStart(()=>{cu(a,SM)})),c.onDone(()=>{let j=this.players.indexOf(c);j>=0&&this.players.splice(j,1);const ae=this._engine.playersByElement.get(a);if(ae){let ke=ae.indexOf(c);ke>=0&&ae.splice(ke,1)}}),this.players.push(c),f.push(c),c}deregister(a){this._triggers.delete(a),this._engine.statesByElement.forEach(e=>e.delete(a)),this._elementListeners.forEach((e,t)=>{this._elementListeners.set(t,e.filter(o=>o.name!=a))})}clearElementCache(a){this._engine.statesByElement.delete(a),this._elementListeners.delete(a);const e=this._engine.playersByElement.get(a);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(a))}_signalRemovalForInnerTriggers(a,e){const t=this._engine.driver.query(a,mC,!0);t.forEach(o=>{if(o[pr])return;const l=this._engine.fetchNamespacesByElement(o);l.size?l.forEach(c=>c.triggerLeaveAnimation(o,e,!1,!0)):this.clearElementCache(o)}),this._engine.afterFlushAnimationsDone(()=>t.forEach(o=>this.clearElementCache(o)))}triggerLeaveAnimation(a,e,t,o){const l=this._engine.statesByElement.get(a),c=new Map;if(l){const n=[];if(l.forEach((i,s)=>{if(c.set(s,i.value),this._triggers.has(s)){const d=this.trigger(a,s,_f,o);d&&n.push(d)}}),n.length)return this._engine.markElementAsRemoved(this.id,a,!0,e,c),t&&Es(n).onDone(()=>this._engine.processLeaveNode(a)),!0}return!1}prepareLeaveAnimationListeners(a){const e=this._elementListeners.get(a),t=this._engine.statesByElement.get(a);if(e&&t){const o=new Set;e.forEach(l=>{const c=l.name;if(o.has(c))return;o.add(c);const i=this._triggers.get(c).fallbackTransition,s=t.get(c)||wx,d=new yx(_f),h=new vx(this.id,c,a);this._engine.totalQueuedPlayers++,this._queue.push({element:a,triggerName:c,transition:i,fromState:s,toState:d,player:h,isFallbackTransition:!0})})}}removeNode(a,e){const t=this._engine;if(a.childElementCount&&this._signalRemovalForInnerTriggers(a,e),this.triggerLeaveAnimation(a,e,!0))return;let o=!1;if(t.totalAnimations){const l=t.players.length?t.playersByQueriedElement.get(a):[];if(l&&l.length)o=!0;else{let c=a;for(;c=c.parentNode;)if(t.statesByElement.get(c)){o=!0;break}}}if(this.prepareLeaveAnimationListeners(a),o)t.markElementAsRemoved(this.id,a,!1,e);else{const l=a[pr];(!l||l===MM)&&(t.afterFlush(()=>this.clearElementCache(a)),t.destroyInnerAnimations(a),t._onRemovalComplete(a,e))}}insertNode(a,e){fr(a,this._hostClassName)}drainQueuedTransitions(a){const e=[];return this._queue.forEach(t=>{const o=t.player;if(o.destroyed)return;const l=t.element,c=this._elementListeners.get(l);c&&c.forEach(n=>{if(n.name==t.triggerName){const i=nx(l,t.triggerName,t.fromState.value,t.toState.value);i._data=a,tx(t.player,n.phase,i,n.callback)}}),o.markedForDestroy?this._engine.afterFlush(()=>{o.destroy()}):e.push(t)}),this._queue=[],e.sort((t,o)=>{const l=t.transition.ast.depCount,c=o.transition.ast.depCount;return 0==l||0==c?l-c:this._engine.driver.containsElement(t.element,o.element)?1:-1})}destroy(a){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,a)}elementContainsData(a){let e=!1;return this._elementListeners.has(a)&&(e=!0),e=!!this._queue.find(t=>t.element===a)||e,e}}class lk{constructor(a,e,t){this.bodyNode=a,this.driver=e,this._normalizer=t,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=(o,l)=>{}}_onRemovalComplete(a,e){this.onRemovalComplete(a,e)}get queuedPlayers(){const a=[];return this._namespaceList.forEach(e=>{e.players.forEach(t=>{t.queued&&a.push(t)})}),a}createNamespace(a,e){const t=new sk(a,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(t,e):(this.newHostElements.set(e,t),this.collectEnterElement(e)),this._namespaceLookup[a]=t}_balanceNamespaceList(a,e){const t=this._namespaceList,o=this.namespacesByHostElement;if(t.length-1>=0){let c=!1,n=this.driver.getParentElement(e);for(;n;){const i=o.get(n);if(i){const s=t.indexOf(i);t.splice(s+1,0,a),c=!0;break}n=this.driver.getParentElement(n)}c||t.unshift(a)}else t.push(a);return o.set(e,a),a}register(a,e){let t=this._namespaceLookup[a];return t||(t=this.createNamespace(a,e)),t}registerTrigger(a,e,t){let o=this._namespaceLookup[a];o&&o.register(e,t)&&this.totalAnimations++}destroy(a,e){if(!a)return;const t=this._fetchNamespace(a);this.afterFlush(()=>{this.namespacesByHostElement.delete(t.hostElement),delete this._namespaceLookup[a];const o=this._namespaceList.indexOf(t);o>=0&&this._namespaceList.splice(o,1)}),this.afterFlushAnimationsDone(()=>t.destroy(e))}_fetchNamespace(a){return this._namespaceLookup[a]}fetchNamespacesByElement(a){const e=new Set,t=this.statesByElement.get(a);if(t)for(let o of t.values())if(o.namespaceId){const l=this._fetchNamespace(o.namespaceId);l&&e.add(l)}return e}trigger(a,e,t,o){if(SC(e)){const l=this._fetchNamespace(a);if(l)return l.trigger(e,t,o),!0}return!1}insertNode(a,e,t,o){if(!SC(e))return;const l=e[pr];if(l&&l.setForRemoval){l.setForRemoval=!1,l.setForMove=!0;const c=this.collectedLeaveElements.indexOf(e);c>=0&&this.collectedLeaveElements.splice(c,1)}if(a){const c=this._fetchNamespace(a);c&&c.insertNode(e,t)}o&&this.collectEnterElement(e)}collectEnterElement(a){this.collectedEnterElements.push(a)}markElementAsDisabled(a,e){e?this.disabledNodes.has(a)||(this.disabledNodes.add(a),fr(a,Cx)):this.disabledNodes.has(a)&&(this.disabledNodes.delete(a),cu(a,Cx))}removeNode(a,e,t,o){if(SC(e)){const l=a?this._fetchNamespace(a):null;if(l?l.removeNode(e,o):this.markElementAsRemoved(a,e,!1,o),t){const c=this.namespacesByHostElement.get(e);c&&c.id!==a&&c.removeNode(e,o)}}else this._onRemovalComplete(e,o)}markElementAsRemoved(a,e,t,o,l){this.collectedLeaveElements.push(e),e[pr]={namespaceId:a,setForRemoval:o,hasAnimation:t,removedBeforeQueried:!1,previousTriggersValues:l}}listen(a,e,t,o,l){return SC(e)?this._fetchNamespace(a).listen(e,t,o,l):()=>{}}_buildInstruction(a,e,t,o,l){return a.transition.build(this.driver,a.element,a.fromState.value,a.toState.value,t,o,a.fromState.options,a.toState.options,e,l)}destroyInnerAnimations(a){let e=this.driver.query(a,mC,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(a,lx,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(a){const e=this.playersByElement.get(a);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(a){const e=this.playersByQueriedElement.get(a);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(a=>{if(this.players.length)return Es(this.players).onDone(()=>a());a()})}processLeaveNode(a){const e=a[pr];if(e&&e.setForRemoval){if(a[pr]=MM,e.namespaceId){this.destroyInnerAnimations(a);const t=this._fetchNamespace(e.namespaceId);t&&t.clearElementCache(a)}this._onRemovalComplete(a,e.setForRemoval)}a.classList?.contains(Cx)&&this.markElementAsDisabled(a,!1),this.driver.query(a,".ng-animate-disabled",!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(a=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,o)=>this._balanceNamespaceList(t,o)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let t=0;tt()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?Es(e).onDone(()=>{t.forEach(o=>o())}):t.forEach(o=>o())}}reportError(a){throw function lI(r){return new u.vHH(3402,!1)}()}_flushAnimations(a,e){const t=new xC,o=[],l=new Map,c=[],n=new Map,i=new Map,s=new Map,d=new Set;this.disabledNodes.forEach(Ge=>{d.add(Ge);const et=this.driver.query(Ge,".ng-animate-queued",!0);for(let nt=0;nt{const nt=sx+j++;H.set(et,nt),Ge.forEach(xt=>fr(xt,nt))});const ae=[],ke=new Set,ct=new Set;for(let Ge=0;Geke.add(xt)):ct.add(et))}const yt=new Map,zt=PM(f,Array.from(ke));zt.forEach((Ge,et)=>{const nt=pC+j++;yt.set(et,nt),Ge.forEach(xt=>fr(xt,nt))}),a.push(()=>{b.forEach((Ge,et)=>{const nt=H.get(et);Ge.forEach(xt=>cu(xt,nt))}),zt.forEach((Ge,et)=>{const nt=yt.get(et);Ge.forEach(xt=>cu(xt,nt))}),ae.forEach(Ge=>{this.processLeaveNode(Ge)})});const Gr=[],mr=[];for(let Ge=this._namespaceList.length-1;Ge>=0;Ge--)this._namespaceList[Ge].drainQueuedTransitions(e).forEach(nt=>{const xt=nt.player,Bi=nt.element;if(Gr.push(xt),this.collectedEnterElements.length){const Xi=Bi[pr];if(Xi&&Xi.setForMove){if(Xi.previousTriggersValues&&Xi.previousTriggersValues.has(nt.triggerName)){const cc=Xi.previousTriggersValues.get(nt.triggerName),gr=this.statesByElement.get(nt.element);if(gr&&gr.has(nt.triggerName)){const NC=gr.get(nt.triggerName);NC.value=cc,gr.set(nt.triggerName,NC)}}return void xt.destroy()}}const Ma=!h||!this.driver.containsElement(h,Bi),zn=yt.get(Bi),Hs=H.get(Bi),si=this._buildInstruction(nt,t,Hs,zn,Ma);if(si.errors&&si.errors.length)return void mr.push(si);if(Ma)return xt.onStart(()=>ac(Bi,si.fromStyles)),xt.onDestroy(()=>Ea(Bi,si.toStyles)),void o.push(xt);if(nt.isFallbackTransition)return xt.onStart(()=>ac(Bi,si.fromStyles)),xt.onDestroy(()=>Ea(Bi,si.toStyles)),void o.push(xt);const FD=[];si.timelines.forEach(Xi=>{Xi.stretchStartingKeyframe=!0,this.disabledNodes.has(Xi.element)||FD.push(Xi)}),si.timelines=FD,t.append(Bi,si.timelines),c.push({instruction:si,player:xt,element:Bi}),si.queriedElements.forEach(Xi=>Nn(n,Xi,[]).push(xt)),si.preStyleProps.forEach((Xi,cc)=>{if(Xi.size){let gr=i.get(cc);gr||i.set(cc,gr=new Set),Xi.forEach((NC,Ux)=>gr.add(Ux))}}),si.postStyleProps.forEach((Xi,cc)=>{let gr=s.get(cc);gr||s.set(cc,gr=new Set),Xi.forEach((NC,Ux)=>gr.add(Ux))})});if(mr.length){const Ge=[];mr.forEach(et=>{Ge.push(function cI(r,a){return new u.vHH(3505,!1)}())}),Gr.forEach(et=>et.destroy()),this.reportError(Ge)}const pn=new Map,xo=new Map;c.forEach(Ge=>{const et=Ge.element;t.has(et)&&(xo.set(et,et),this._beforeAnimationBuild(Ge.player.namespaceId,Ge.instruction,pn))}),o.forEach(Ge=>{const et=Ge.element;this._getPreviousPlayers(et,!1,Ge.namespaceId,Ge.triggerName,null).forEach(xt=>{Nn(pn,et,[]).push(xt),xt.destroy()})});const To=ae.filter(Ge=>IM(Ge,i,s)),Eo=new Map;HM(Eo,this.driver,ct,s,or).forEach(Ge=>{IM(Ge,i,s)&&To.push(Ge)});const vf=new Map;b.forEach((Ge,et)=>{HM(vf,this.driver,new Set(Ge),i,"!")}),To.forEach(Ge=>{const et=Eo.get(Ge),nt=vf.get(Ge);Eo.set(Ge,new Map([...Array.from(et?.entries()??[]),...Array.from(nt?.entries()??[])]))});const lc=[],OD=[],LD={};c.forEach(Ge=>{const{element:et,player:nt,instruction:xt}=Ge;if(t.has(et)){if(d.has(et))return nt.onDestroy(()=>Ea(et,xt.toStyles)),nt.disabled=!0,nt.overrideTotalTime(xt.totalTime),void o.push(nt);let Bi=LD;if(xo.size>1){let zn=et;const Hs=[];for(;zn=zn.parentNode;){const si=xo.get(zn);if(si){Bi=si;break}Hs.push(zn)}Hs.forEach(si=>xo.set(si,Bi))}const Ma=this._buildAnimation(nt.namespaceId,xt,pn,l,vf,Eo);if(nt.setRealPlayer(Ma),Bi===LD)lc.push(nt);else{const zn=this.playersByElement.get(Bi);zn&&zn.length&&(nt.parentPlayer=Es(zn)),o.push(nt)}}else ac(et,xt.fromStyles),nt.onDestroy(()=>Ea(et,xt.toStyles)),OD.push(nt),d.has(et)&&o.push(nt)}),OD.forEach(Ge=>{const et=l.get(Ge.element);if(et&&et.length){const nt=Es(et);Ge.setRealPlayer(nt)}}),o.forEach(Ge=>{Ge.parentPlayer?Ge.syncPlayerEvents(Ge.parentPlayer):Ge.destroy()});for(let Ge=0;Ge!Ma.destroyed);Bi.length?hk(this,et,Bi):this.processLeaveNode(et)}return ae.length=0,lc.forEach(Ge=>{this.players.push(Ge),Ge.onDone(()=>{Ge.destroy();const et=this.players.indexOf(Ge);this.players.splice(et,1)}),Ge.play()}),lc}elementContainsData(a,e){let t=!1;const o=e[pr];return o&&o.setForRemoval&&(t=!0),this.playersByElement.has(e)&&(t=!0),this.playersByQueriedElement.has(e)&&(t=!0),this.statesByElement.has(e)&&(t=!0),this._fetchNamespace(a).elementContainsData(e)||t}afterFlush(a){this._flushFns.push(a)}afterFlushAnimationsDone(a){this._whenQuietFns.push(a)}_getPreviousPlayers(a,e,t,o,l){let c=[];if(e){const n=this.playersByQueriedElement.get(a);n&&(c=n)}else{const n=this.playersByElement.get(a);if(n){const i=!l||l==_f;n.forEach(s=>{s.queued||!i&&s.triggerName!=o||c.push(s)})}}return(t||o)&&(c=c.filter(n=>!(t&&t!=n.namespaceId||o&&o!=n.triggerName))),c}_beforeAnimationBuild(a,e,t){const l=e.element,c=e.isRemovalTransition?void 0:a,n=e.isRemovalTransition?void 0:e.triggerName;for(const i of e.timelines){const s=i.element,d=s!==l,h=Nn(t,s,[]);this._getPreviousPlayers(s,d,c,n,e.toState).forEach(b=>{const H=b.getRealPlayer();H.beforeDestroy&&H.beforeDestroy(),b.destroy(),h.push(b)})}ac(l,e.fromStyles)}_buildAnimation(a,e,t,o,l,c){const n=e.triggerName,i=e.element,s=[],d=new Set,h=new Set,f=e.timelines.map(H=>{const j=H.element;d.add(j);const ae=j[pr];if(ae&&ae.removedBeforeQueried)return new ao(H.duration,H.delay);const ke=j!==i,ct=function pk(r){const a=[];return RM(r,a),a}((t.get(j)||ak).map(pn=>pn.getRealPlayer())).filter(pn=>!!pn.element&&pn.element===j),yt=l.get(j),zt=c.get(j),Gr=rM(0,this._normalizer,0,H.keyframes,yt,zt),mr=this._buildPlayer(H,Gr,ct);if(H.subTimeline&&o&&h.add(j),ke){const pn=new vx(a,n,j);pn.setRealPlayer(mr),s.push(pn)}return mr});s.forEach(H=>{Nn(this.playersByQueriedElement,H.element,[]).push(H),H.onDone(()=>function ck(r,a,e){let t=r.get(a);if(t){if(t.length){const o=t.indexOf(e);t.splice(o,1)}0==t.length&&r.delete(a)}return t}(this.playersByQueriedElement,H.element,H))}),d.forEach(H=>fr(H,pM));const b=Es(f);return b.onDestroy(()=>{d.forEach(H=>cu(H,pM)),Ea(i,e.toStyles)}),h.forEach(H=>{Nn(o,H,[]).push(b)}),b}_buildPlayer(a,e,t){return e.length>0?this.driver.animate(a.element,e,a.duration,a.delay,a.easing,t):new ao(a.duration,a.delay)}}class vx{constructor(a,e,t){this.namespaceId=a,this.triggerName=e,this.element=t,this._player=new ao,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(a){this._containsRealPlayer||(this._player=a,this._queuedCallbacks.forEach((e,t)=>{e.forEach(o=>tx(a,t,void 0,o))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(a.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(a){this.totalTime=a}syncPlayerEvents(a){const e=this._player;e.triggerCallback&&a.onStart(()=>e.triggerCallback("start")),a.onDone(()=>this.finish()),a.onDestroy(()=>this.destroy())}_queueEvent(a,e){Nn(this._queuedCallbacks,a,[]).push(e)}onDone(a){this.queued&&this._queueEvent("done",a),this._player.onDone(a)}onStart(a){this.queued&&this._queueEvent("start",a),this._player.onStart(a)}onDestroy(a){this.queued&&this._queueEvent("destroy",a),this._player.onDestroy(a)}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(a){this.queued||this._player.setPosition(a)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(a){const e=this._player;e.triggerCallback&&e.triggerCallback(a)}}function SC(r){return r&&1===r.nodeType}function DM(r,a){const e=r.style.display;return r.style.display=a??"none",e}function HM(r,a,e,t,o){const l=[];e.forEach(i=>l.push(DM(i)));const c=[];t.forEach((i,s)=>{const d=new Map;i.forEach(h=>{const f=a.computeStyle(s,h,o);d.set(h,f),(!f||0==f.length)&&(s[pr]=ok,c.push(s))}),r.set(s,d)});let n=0;return e.forEach(i=>DM(i,l[n++])),c}function PM(r,a){const e=new Map;if(r.forEach(n=>e.set(n,[])),0==a.length)return e;const o=new Set(a),l=new Map;function c(n){if(!n)return 1;let i=l.get(n);if(i)return i;const s=n.parentNode;return i=e.has(s)?s:o.has(s)?1:c(s),l.set(n,i),i}return a.forEach(n=>{const i=c(n);1!==i&&e.get(i).push(n)}),e}function fr(r,a){r.classList?.add(a)}function cu(r,a){r.classList?.remove(a)}function hk(r,a,e){Es(e).onDone(()=>r.processLeaveNode(a))}function RM(r,a){for(let e=0;eo.add(l)):a.set(r,t),e.delete(r),!0}class MC{constructor(a,e,t){this.bodyNode=a,this._driver=e,this._normalizer=t,this._triggerCache={},this.onRemovalComplete=(o,l)=>{},this._transitionEngine=new lk(a,e,t),this._timelineEngine=new ek(a,e,t),this._transitionEngine.onRemovalComplete=(o,l)=>this.onRemovalComplete(o,l)}registerTrigger(a,e,t,o,l){const c=a+"-"+o;let n=this._triggerCache[c];if(!n){const i=[],d=hx(this._driver,l,i,[]);if(i.length)throw function ZR(r,a){return new u.vHH(3404,!1)}();n=function JI(r,a,e){return new KI(r,a,e)}(o,d,this._normalizer),this._triggerCache[c]=n}this._transitionEngine.registerTrigger(e,o,n)}register(a,e){this._transitionEngine.register(a,e)}destroy(a,e){this._transitionEngine.destroy(a,e)}onInsert(a,e,t,o){this._transitionEngine.insertNode(a,e,t,o)}onRemove(a,e,t,o){this._transitionEngine.removeNode(a,e,o||!1,t)}disableAnimations(a,e){this._transitionEngine.markElementAsDisabled(a,e)}process(a,e,t,o){if("@"==t.charAt(0)){const[l,c]=aM(t);this._timelineEngine.command(l,e,c,o)}else this._transitionEngine.trigger(a,e,t,o)}listen(a,e,t,o,l){if("@"==t.charAt(0)){const[c,n]=aM(t);return this._timelineEngine.listen(c,e,n,l)}return this._transitionEngine.listen(a,e,t,o,l)}flush(a=-1){this._transitionEngine.flush(a)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let gk=(()=>{class r{constructor(e,t,o){this._element=e,this._startStyles=t,this._endStyles=o,this._state=0;let l=r.initialStylesByElement.get(e);l||r.initialStylesByElement.set(e,l=new Map),this._initialStyles=l}start(){this._state<1&&(this._startStyles&&Ea(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Ea(this._element,this._initialStyles),this._endStyles&&(Ea(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(r.initialStylesByElement.delete(this._element),this._startStyles&&(ac(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ac(this._element,this._endStyles),this._endStyles=null),Ea(this._element,this._initialStyles),this._state=3)}}return r.initialStylesByElement=new WeakMap,r})();function Ax(r){let a=null;return r.forEach((e,t)=>{(function _k(r){return"display"===r||"position"===r})(t)&&(a=a||new Map,a.set(t,e))}),a}class kM{constructor(a,e,t,o){this.element=a,this.keyframes=e,this.options=t,this._specialStyles=o,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=t.duration,this._delay=t.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(a=>a()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const a=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,a,this.options),this._finalKeyframe=a.length?a[a.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(a){const e=[];return a.forEach(t=>{e.push(Object.fromEntries(t))}),e}_triggerWebAnimation(a,e,t){return a.animate(this._convertKeyframesToObject(e),t)}onStart(a){this._originalOnStartFns.push(a),this._onStartFns.push(a)}onDone(a){this._originalOnDoneFns.push(a),this._onDoneFns.push(a)}onDestroy(a){this._onDestroyFns.push(a)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(a=>a()),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,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_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(a=>a()),this._onDestroyFns=[])}setPosition(a){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=a*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const a=new Map;this.hasStarted()&&this._finalKeyframe.forEach((t,o)=>{"offset"!==o&&a.set(o,this._finished?t:CM(this.element,o))}),this.currentSnapshot=a}triggerCallback(a){const e="start"===a?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class bk{validateStyleProperty(a){return!0}validateAnimatableStyleProperty(a){return!0}matchesElement(a,e){return!1}containsElement(a,e){return cM(a,e)}getParentElement(a){return ax(a)}query(a,e,t){return dM(a,e,t)}computeStyle(a,e,t){return window.getComputedStyle(a)[e]}animate(a,e,t,o,l,c=[]){const i={duration:t,delay:o,fill:0==o?"both":"forwards"};l&&(i.easing=l);const s=new Map,d=c.filter(b=>b instanceof kM);(function vI(r,a){return 0===r||0===a})(t,o)&&d.forEach(b=>{b.currentSnapshot.forEach((H,j)=>s.set(j,H))});let h=function bI(r){return r.length?r[0]instanceof Map?r:r.map(a=>fM(a)):[]}(e).map(b=>Ms(b));h=function AI(r,a,e){if(e.size&&a.length){let t=a[0],o=[];if(e.forEach((l,c)=>{t.has(c)||o.push(c),t.set(c,l)}),o.length)for(let l=1;lc.set(n,CM(r,n)))}}return a}(a,h,s);const f=function mk(r,a){let e=null,t=null;return Array.isArray(a)&&a.length?(e=Ax(a[0]),a.length>1&&(t=Ax(a[a.length-1]))):a instanceof Map&&(e=Ax(a)),e||t?new gk(r,e,t):null}(a,h);return new kM(a,h,i,f)}}let Ck=(()=>{class r extends Dl{constructor(e,t){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(t.body,{id:"0",encapsulation:u.ifc.None,styles:[],data:{animation:[]}})}build(e){const t=this._nextAnimationId.toString();this._nextAnimationId++;const o=Array.isArray(e)?Cd(e):e;return VM(this._renderer,null,t,"register",[o]),new yk(t,this._renderer)}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(u.FYo),u.LFG(T.K0))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac}),r})();class yk extends class Uh{}{constructor(a,e){super(),this._id=a,this._renderer=e}create(a,e){return new wk(this._id,a,e||{},this._renderer)}}class wk{constructor(a,e,t,o){this.id=a,this.element=e,this._renderer=o,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",t)}_listen(a,e){return this._renderer.listen(this.element,`@@${this.id}:${a}`,e)}_command(a,...e){return VM(this._renderer,this.element,this.id,a,e)}onDone(a){this._listen("done",a)}onStart(a){this._listen("start",a)}onDestroy(a){this._listen("destroy",a)}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"),this._started=!1}setPosition(a){this._command("setPosition",a)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function VM(r,a,e,t,o){return r.setProperty(a,`@@${e}:${t}`,o)}const BM="@.disabled";let vk=(()=>{class r{constructor(e,t,o){this.delegate=e,this.engine=t,this._zone=o,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),t.onRemovalComplete=(l,c)=>{const n=c?.parentNode(l);n&&c.removeChild(n,l)}}createRenderer(e,t){const l=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){let d=this._rendererCache.get(l);return d||(d=new OM("",l,this.engine),this._rendererCache.set(l,d)),d}const c=t.id,n=t.id+"-"+this._currentId;this._currentId++,this.engine.register(n,e);const i=d=>{Array.isArray(d)?d.forEach(i):this.engine.registerTrigger(c,n,e,d.name,d)};return t.data.animation.forEach(i),new Ak(this,n,l,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,o){e>=0&&et(o)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(l=>{const[c,n]=l;c(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,o]))}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 r.\u0275fac=function(e){return new(e||r)(u.LFG(u.FYo),u.LFG(MC),u.LFG(u.R0b))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac}),r})();class OM{constructor(a,e,t){this.namespaceId=a,this.delegate=e,this.engine=t,this.destroyNode=this.delegate.destroyNode?o=>e.destroyNode(o):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(a,e){return this.delegate.createElement(a,e)}createComment(a){return this.delegate.createComment(a)}createText(a){return this.delegate.createText(a)}appendChild(a,e){this.delegate.appendChild(a,e),this.engine.onInsert(this.namespaceId,e,a,!1)}insertBefore(a,e,t,o=!0){this.delegate.insertBefore(a,e,t),this.engine.onInsert(this.namespaceId,e,a,o)}removeChild(a,e,t){this.engine.onRemove(this.namespaceId,e,this.delegate,t)}selectRootElement(a,e){return this.delegate.selectRootElement(a,e)}parentNode(a){return this.delegate.parentNode(a)}nextSibling(a){return this.delegate.nextSibling(a)}setAttribute(a,e,t,o){this.delegate.setAttribute(a,e,t,o)}removeAttribute(a,e,t){this.delegate.removeAttribute(a,e,t)}addClass(a,e){this.delegate.addClass(a,e)}removeClass(a,e){this.delegate.removeClass(a,e)}setStyle(a,e,t,o){this.delegate.setStyle(a,e,t,o)}removeStyle(a,e,t){this.delegate.removeStyle(a,e,t)}setProperty(a,e,t){"@"==e.charAt(0)&&e==BM?this.disableAnimations(a,!!t):this.delegate.setProperty(a,e,t)}setValue(a,e){this.delegate.setValue(a,e)}listen(a,e,t){return this.delegate.listen(a,e,t)}disableAnimations(a,e){this.engine.disableAnimations(a,e)}}class Ak extends OM{constructor(a,e,t,o){super(e,t,o),this.factory=a,this.namespaceId=e}setProperty(a,e,t){"@"==e.charAt(0)?"."==e.charAt(1)&&e==BM?this.disableAnimations(a,t=void 0===t||!!t):this.engine.process(this.namespaceId,a,e.slice(1),t):this.delegate.setProperty(a,e,t)}listen(a,e,t){if("@"==e.charAt(0)){const o=function xk(r){switch(r){case"body":return document.body;case"document":return document;case"window":return window;default:return r}}(a);let l=e.slice(1),c="";return"@"!=l.charAt(0)&&([l,c]=function Tk(r){const a=r.indexOf(".");return[r.substring(0,a),r.slice(a+1)]}(l)),this.engine.listen(this.namespaceId,o,l,c,n=>{this.factory.scheduleListenerCallback(n._data||-1,t,n)})}return this.delegate.listen(a,e,t)}}const LM=[{provide:Dl,useClass:Ck},{provide:_x,useFactory:function Sk(){return new WI}},{provide:MC,useClass:(()=>{class r extends MC{constructor(e,t,o,l){super(e.body,t,o)}ngOnDestroy(){this.flush()}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(T.K0),u.LFG(ox),u.LFG(_x),u.LFG(u.z2F))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac}),r})()},{provide:u.FYo,useFactory:function Mk(r,a,e){return new vk(r,a,e)},deps:[ue,MC,u.R0b]}],xx=[{provide:ox,useFactory:()=>new bk},{provide:u.QbO,useValue:"BrowserAnimations"},...LM],FM=[{provide:ox,useClass:uM},{provide:u.QbO,useValue:"NoopAnimations"},...LM];let Dk=(()=>{class r{static withConfig(e){return{ngModule:r,providers:e.disableAnimations?FM:xx}}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({providers:xx,imports:[Pa]}),r})(),zM=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({}),r})(),HC=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({imports:[pi,qe,Jo,zM,qe,zM]}),r})(),Tx=(()=>{class r{constructor(){this.changes=new Se.x}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const Gk={provide:Tx,deps:[[new u.FiY,new u.tp0,Tx]],useFactory:function Uk(r){return r||new Tx}};let Ex=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({providers:[Gk],imports:[T.ez,qe]}),r})(),Sx=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({imports:[Vr,T.ez]}),r})();const WM=new u.OlP("mat-chips-default-options");let Dx=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({providers:[ld,{provide:WM,useValue:{separatorKeyCodes:[13]}}],imports:[qe]}),r})();function Hx(r,a,e){for(let t in a)if(a.hasOwnProperty(t)){const o=a[t];o?r.setProperty(t,o,e?.has(t)?"important":""):r.removeProperty(t)}return r}function du(r,a){const e=a?"":"none";Hx(r.style,{"touch-action":a?"":"none","-webkit-user-drag":a?"":"none","-webkit-tap-highlight-color":a?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function $M(r,a,e){Hx(r.style,{position:a?"":"fixed",top:a?"":"0",opacity:a?"":"0",left:a?"":"-999em"},e)}function PC(r,a){return a&&"none"!=a?r+" "+a:r}function YM(r){const a=r.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(r)*a}function Px(r,a){return r.getPropertyValue(a).split(",").map(t=>t.trim())}function Rx(r){const a=r.getBoundingClientRect();return{top:a.top,right:a.right,bottom:a.bottom,left:a.left,width:a.width,height:a.height,x:a.x,y:a.y}}function Ix(r,a,e){const{top:t,bottom:o,left:l,right:c}=r;return e>=t&&e<=o&&a>=l&&a<=c}function bf(r,a,e){r.top+=a,r.bottom=r.top+r.height,r.left+=e,r.right=r.left+r.width}function QM(r,a,e,t){const{top:o,right:l,bottom:c,left:n,width:i,height:s}=r,d=i*a,h=s*a;return t>o-h&&tn-d&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:Rx(e)})})}handleScroll(a){const e=Ti(a),t=this.positions.get(e);if(!t)return null;const o=t.scrollPosition;let l,c;if(e===this._document){const s=this.getViewportScrollPosition();l=s.top,c=s.left}else l=e.scrollTop,c=e.scrollLeft;const n=o.top-l,i=o.left-c;return this.positions.forEach((s,d)=>{s.clientRect&&e!==d&&e.contains(d)&&bf(s.clientRect,n,i)}),o.top=l,o.left=c,{top:n,left:i}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function KM(r){const a=r.cloneNode(!0),e=a.querySelectorAll("[id]"),t=r.nodeName.toLowerCase();a.removeAttribute("id");for(let o=0;o{if(this.beforeStarted.next(),this._handles.length){const i=this._getTargetHandle(n);i&&!this._disabledHandles.has(i)&&!this.disabled&&this._initializeDragSequence(i,n)}else this.disabled||this._initializeDragSequence(this._rootElement,n)},this._pointerMove=n=>{const i=this._getPointerPositionOnPage(n);if(!this._hasStartedDragging){if(Math.abs(i.x-this._pickupPositionOnPage.x)+Math.abs(i.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const b=Date.now()>=this._dragStartTime+this._getDragStartDelay(n),H=this._dropContainer;if(!b)return void this._endDragSequence(n);(!H||!H.isDragging()&&!H.isReceiving())&&(n.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(n)))}return}n.preventDefault();const s=this._getConstrainedPointerPosition(i);if(this._hasMoved=!0,this._lastKnownPointerPosition=i,this._updatePointerDirectionDelta(s),this._dropContainer)this._updateActiveDropContainer(s,i);else{const d=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,h=this._activeTransform;h.x=s.x-d.x+this._passiveTransform.x,h.y=s.y-d.y+this._passiveTransform.y,this._applyRootElementTransform(h.x,h.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:s,event:n,distance:this._getDragDistance(s),delta:this._pointerDirectionDelta})})},this._pointerUp=n=>{this._endDragSequence(n)},this._nativeDragStart=n=>{if(this._handles.length){const i=this._getTargetHandle(n);i&&!this._disabledHandles.has(i)&&!this.disabled&&n.preventDefault()}else this.disabled||n.preventDefault()},this.withRootElement(a).withParent(e.parentDragRef||null),this._parentPositions=new JM(t),c.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(a){const e=Ze(a);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(t=>du(t,e)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(a){this._handles=a.map(t=>ai(t)),this._handles.forEach(t=>du(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(a){return this._previewTemplate=a,this}withPlaceholderTemplate(a){return this._placeholderTemplate=a,this}withRootElement(a){const e=ai(a);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,RC),e.addEventListener("touchstart",this._pointerDown,tD),e.addEventListener("dragstart",this._nativeDragStart,RC)}),this._initialTransform=void 0,this._rootElement=e),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(a){return this._boundaryElement=a?ai(a):null,this._resizeSubscription.unsubscribe(),a&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(a){return this._parentDragRef=a,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),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=this._parentDragRef=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(a){!this._disabledHandles.has(a)&&this._handles.indexOf(a)>-1&&(this._disabledHandles.add(a),du(a,!0))}enableHandle(a){this._disabledHandles.has(a)&&(this._disabledHandles.delete(a),du(a,this.disabled))}withDirection(a){return this._direction=a,this}_withDropContainer(a){this._dropContainer=a}getFreeDragPosition(){const a=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:a.x,y:a.y}}setFreeDragPosition(a){return this._activeTransform={x:0,y:0},this._passiveTransform.x=a.x,this._passiveTransform.y=a.y,this._dropContainer||this._applyRootElementTransform(a.x,a.y),this}withPreviewContainer(a){return this._previewContainer=a,this}_sortFromLastPointerPosition(){const a=this._lastKnownPointerPosition;a&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(a),a)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview?.remove(),this._previewRef?.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(a){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:a}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(a),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(a);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e,event:a})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(a){Cf(a)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const t=this._rootElement,o=t.parentNode,l=this._placeholder=this._createPlaceholderElement(),c=this._anchor=this._anchor||this._document.createComment(""),n=this._getShadowRoot();o.insertBefore(c,t),this._initialTransform=t.style.transform||"",this._preview=this._createPreviewElement(),$M(t,!1,kx),this._document.body.appendChild(o.replaceChild(l,t)),this._getPreviewInsertionPoint(o,n).appendChild(this._preview),this.started.next({source:this,event:a}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this,event:a}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(a,e){this._parentDragRef&&e.stopPropagation();const t=this.isDragging(),o=Cf(e),l=!o&&0!==e.button,c=this._rootElement,n=Ti(e),i=!o&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),s=o?rd(e):rr(e);if(n&&n.draggable&&"mousedown"===e.type&&e.preventDefault(),t||l||i||s)return;if(this._handles.length){const f=c.style;this._rootElementTapHighlight=f.webkitTapHighlightColor||"",f.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(f=>this._updateOnScroll(f)),this._boundaryElement&&(this._boundaryRect=Rx(this._boundaryElement));const d=this._previewTemplate;this._pickupPositionInElement=d&&d.template&&!d.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,a,e);const h=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:h.x,y:h.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(a){$M(this._rootElement,!0,kx),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,t=e.getItemIndex(this),o=this._getPointerPositionOnPage(a),l=this._getDragDistance(o),c=e._isOverContainer(o.x,o.y);this.ended.next({source:this,distance:l,dropPoint:o,event:a}),this.dropped.next({item:this,currentIndex:t,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:c,distance:l,dropPoint:o,event:a}),e.drop(this,t,this._initialIndex,this._initialContainer,c,l,o),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:a,y:e},{x:t,y:o}){let l=this._initialContainer._getSiblingContainerFromPosition(this,a,e);!l&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(a,e)&&(l=this._initialContainer),l&&l!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=l,this._dropContainer.enter(this,a,e,l===this._initialContainer&&l.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:l,currentIndex:l.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(t,o),this._dropContainer._sortItem(this,a,e,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(a,e):this._applyPreviewTransform(a-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const a=this._previewTemplate,e=this.previewClass,t=a?a.template:null;let o;if(t&&a){const l=a.matchSize?this._initialClientRect:null,c=a.viewContainer.createEmbeddedView(t,a.context);c.detectChanges(),o=nD(c,this._document),this._previewRef=c,a.matchSize?rD(o,l):o.style.transform=IC(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else o=KM(this._rootElement),rD(o,this._initialClientRect),this._initialTransform&&(o.style.transform=this._initialTransform);return Hx(o.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},kx),du(o,!1),o.classList.add("cdk-drag-preview"),o.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(l=>o.classList.add(l)):o.classList.add(e)),o}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const a=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(a.left,a.top);const e=function a1(r){const a=getComputedStyle(r),e=Px(a,"transition-property"),t=e.find(n=>"transform"===n||"all"===n);if(!t)return 0;const o=e.indexOf(t),l=Px(a,"transition-duration"),c=Px(a,"transition-delay");return YM(l[o])+YM(c[o])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{const o=c=>{(!c||Ti(c)===this._preview&&"transform"===c.propertyName)&&(this._preview?.removeEventListener("transitionend",o),t(),clearTimeout(l))},l=setTimeout(o,1.5*e);this._preview.addEventListener("transitionend",o)}))}_createPlaceholderElement(){const a=this._placeholderTemplate,e=a?a.template:null;let t;return e?(this._placeholderRef=a.viewContainer.createEmbeddedView(e,a.context),this._placeholderRef.detectChanges(),t=nD(this._placeholderRef,this._document)):t=KM(this._rootElement),t.style.pointerEvents="none",t.classList.add("cdk-drag-placeholder"),t}_getPointerPositionInElement(a,e,t){const o=e===this._rootElement?null:e,l=o?o.getBoundingClientRect():a,c=Cf(t)?t.targetTouches[0]:t,n=this._getViewportScrollPosition();return{x:l.left-a.left+(c.pageX-l.left-n.left),y:l.top-a.top+(c.pageY-l.top-n.top)}}_getPointerPositionOnPage(a){const e=this._getViewportScrollPosition(),t=Cf(a)?a.touches[0]||a.changedTouches[0]||{pageX:0,pageY:0}:a,o=t.pageX-e.left,l=t.pageY-e.top;if(this._ownerSVGElement){const c=this._ownerSVGElement.getScreenCTM();if(c){const n=this._ownerSVGElement.createSVGPoint();return n.x=o,n.y=l,n.matrixTransform(c.inverse())}}return{x:o,y:l}}_getConstrainedPointerPosition(a){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:t,y:o}=this.constrainPosition?this.constrainPosition(a,this,this._initialClientRect,this._pickupPositionInElement):a;if("x"===this.lockAxis||"x"===e?o=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===e)&&(t=this._pickupPositionOnPage.x),this._boundaryRect){const{x:l,y:c}=this._pickupPositionInElement,n=this._boundaryRect,{width:i,height:s}=this._getPreviewRect(),d=n.top+c,h=n.bottom-(s-c);t=iD(t,n.left+l,n.right-(i-l)),o=iD(o,d,h)}return{x:t,y:o}}_updatePointerDirectionDelta(a){const{x:e,y:t}=a,o=this._pointerDirectionDelta,l=this._pointerPositionAtLastDirectionChange,c=Math.abs(e-l.x),n=Math.abs(t-l.y);return c>this._config.pointerDirectionChangeThreshold&&(o.x=e>l.x?1:-1,l.x=e),n>this._config.pointerDirectionChangeThreshold&&(o.y=t>l.y?1:-1,l.y=t),o}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const a=this._handles.length>0||!this.isDragging();a!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=a,du(this._rootElement,a))}_removeRootElementListeners(a){a.removeEventListener("mousedown",this._pointerDown,RC),a.removeEventListener("touchstart",this._pointerDown,tD),a.removeEventListener("dragstart",this._nativeDragStart,RC)}_applyRootElementTransform(a,e){const t=IC(a,e),o=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=o.transform&&"none"!=o.transform?o.transform:""),o.transform=PC(t,this._initialTransform)}_applyPreviewTransform(a,e){const t=this._previewTemplate?.template?void 0:this._initialTransform,o=IC(a,e);this._preview.style.transform=PC(o,t)}_getDragDistance(a){const e=this._pickupPositionOnPage;return e?{x:a.x-e.x,y:a.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:a,y:e}=this._passiveTransform;if(0===a&&0===e||this.isDragging()||!this._boundaryElement)return;const t=this._rootElement.getBoundingClientRect(),o=this._boundaryElement.getBoundingClientRect();if(0===o.width&&0===o.height||0===t.width&&0===t.height)return;const l=o.left-t.left,c=t.right-o.right,n=o.top-t.top,i=t.bottom-o.bottom;o.width>t.width?(l>0&&(a+=l),c>0&&(a-=c)):a=0,o.height>t.height?(n>0&&(e+=n),i>0&&(e-=i)):e=0,(a!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:a})}_getDragStartDelay(a){const e=this.dragStartDelay;return"number"==typeof e?e:Cf(a)?e.touch:e?e.mouse:0}_updateOnScroll(a){const e=this._parentPositions.handleScroll(a);if(e){const t=Ti(a);this._boundaryRect&&t!==this._boundaryElement&&t.contains(this._boundaryElement)&&bf(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(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=Yo(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(a,e){const t=this._previewContainer||"global";if("parent"===t)return a;if("global"===t){const o=this._document;return e||o.fullscreenElement||o.webkitFullscreenElement||o.mozFullScreenElement||o.msFullscreenElement||o.body}return ai(t)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(a){return this._handles.find(e=>a.target&&(a.target===e||e.contains(a.target)))}}function IC(r,a){return`translate3d(${Math.round(r)}px, ${Math.round(a)}px, 0)`}function iD(r,a,e){return Math.max(a,Math.min(e,r))}function Cf(r){return"t"===r.type[0]}function nD(r,a){const e=r.rootNodes;if(1===e.length&&e[0].nodeType===a.ELEMENT_NODE)return e[0];const t=a.createElement("div");return e.forEach(o=>t.appendChild(o)),t}function rD(r,a){r.style.width=`${a.width}px`,r.style.height=`${a.height}px`,r.style.transform=IC(a.left,a.top)}function yf(r,a){return Math.max(0,Math.min(a,r))}class d1{constructor(a,e){this._element=a,this._dragDropRegistry=e,this._itemPositions=[],this.orientation="vertical",this._previousSwap={drag:null,delta:0,overlaps:!1}}start(a){this.withItems(a)}sort(a,e,t,o){const l=this._itemPositions,c=this._getItemIndexFromPointerPosition(a,e,t,o);if(-1===c&&l.length>0)return null;const n="horizontal"===this.orientation,i=l.findIndex(ae=>ae.drag===a),s=l[c],h=s.clientRect,f=i>c?1:-1,b=this._getItemOffsetPx(l[i].clientRect,h,f),H=this._getSiblingOffsetPx(i,l,f),j=l.slice();return function c1(r,a,e){const t=yf(a,r.length-1),o=yf(e,r.length-1);if(t===o)return;const l=r[t],c=o{if(j[ke]===ae)return;const ct=ae.drag===a,yt=ct?b:H,zt=ct?a.getPlaceholderElement():ae.drag.getRootElement();ae.offset+=yt,n?(zt.style.transform=PC(`translate3d(${Math.round(ae.offset)}px, 0, 0)`,ae.initialTransform),bf(ae.clientRect,0,yt)):(zt.style.transform=PC(`translate3d(0, ${Math.round(ae.offset)}px, 0)`,ae.initialTransform),bf(ae.clientRect,yt,0))}),this._previousSwap.overlaps=Ix(h,e,t),this._previousSwap.drag=s.drag,this._previousSwap.delta=n?o.x:o.y,{previousIndex:i,currentIndex:c}}enter(a,e,t,o){const l=null==o||o<0?this._getItemIndexFromPointerPosition(a,e,t):o,c=this._activeDraggables,n=c.indexOf(a),i=a.getPlaceholderElement();let s=c[l];if(s===a&&(s=c[l+1]),!s&&(null==l||-1===l||l-1&&c.splice(n,1),s&&!this._dragDropRegistry.isDragging(s)){const d=s.getRootElement();d.parentElement.insertBefore(i,d),c.splice(l,0,a)}else ai(this._element).appendChild(i),c.push(a);i.style.transform="",this._cacheItemPositions()}withItems(a){this._activeDraggables=a.slice(),this._cacheItemPositions()}withSortPredicate(a){this._sortPredicate=a}reset(){this._activeDraggables.forEach(a=>{const e=a.getRootElement();if(e){const t=this._itemPositions.find(o=>o.drag===a)?.initialTransform;e.style.transform=t||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(a){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(t=>t.drag===a)}updateOnScroll(a,e){this._itemPositions.forEach(({clientRect:t})=>{bf(t,a,e)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()})}_cacheItemPositions(){const a="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(e=>{const t=e.getVisibleElement();return{drag:e,offset:0,initialTransform:t.style.transform||"",clientRect:Rx(t)}}).sort((e,t)=>a?e.clientRect.left-t.clientRect.left:e.clientRect.top-t.clientRect.top)}_getItemOffsetPx(a,e,t){const o="horizontal"===this.orientation;let l=o?e.left-a.left:e.top-a.top;return-1===t&&(l+=o?e.width-a.width:e.height-a.height),l}_getSiblingOffsetPx(a,e,t){const o="horizontal"===this.orientation,l=e[a].clientRect,c=e[a+-1*t];let n=l[o?"width":"height"]*t;if(c){const i=o?"left":"top",s=o?"right":"bottom";-1===t?n-=c.clientRect[i]-l[s]:n+=l[i]-c.clientRect[s]}return n}_shouldEnterAsFirstChild(a,e){if(!this._activeDraggables.length)return!1;const t=this._itemPositions,o="horizontal"===this.orientation;if(t[0].drag!==this._activeDraggables[0]){const c=t[t.length-1].clientRect;return o?a>=c.right:e>=c.bottom}{const c=t[0].clientRect;return o?a<=c.left:e<=c.top}}_getItemIndexFromPointerPosition(a,e,t,o){const l="horizontal"===this.orientation,c=this._itemPositions.findIndex(({drag:n,clientRect:i})=>{if(n===a)return!1;if(o){const s=l?o.x:o.y;if(n===this._previousSwap.drag&&this._previousSwap.overlaps&&s===this._previousSwap.delta)return!1}return l?e>=Math.floor(i.left)&&e=Math.floor(i.top)&&t!0,this.sortPredicate=()=>!0,this.beforeStarted=new Se.x,this.entered=new Se.x,this.exited=new Se.x,this.dropped=new Se.x,this.sorted=new Se.x,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=Ft.w0.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new Se.x,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function r1(r=0,a=Bg.z){return r<0&&(r=0),(0,Cv.H)(r,r,a)}(0,Mg).pipe(st(this._stopScrollTimers)).subscribe(()=>{const c=this._scrollNode,n=this.autoScrollStep;1===this._verticalScrollDirection?c.scrollBy(0,-n):2===this._verticalScrollDirection&&c.scrollBy(0,n),1===this._horizontalScrollDirection?c.scrollBy(-n,0):2===this._horizontalScrollDirection&&c.scrollBy(n,0)})},this.element=ai(a),this._document=t,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new JM(t),this._sortStrategy=new d1(this.element,e),this._sortStrategy.withSortPredicate((c,n)=>this.sortPredicate(c,n,this))}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(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(a,e,t,o){this._draggingStarted(),null==o&&this.sortingDisabled&&(o=this._draggables.indexOf(a)),this._sortStrategy.enter(a,e,t,o),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:a,container:this,currentIndex:this.getItemIndex(a)})}exit(a){this._reset(),this.exited.next({item:a,container:this})}drop(a,e,t,o,l,c,n,i={}){this._reset(),this.dropped.next({item:a,currentIndex:e,previousIndex:t,container:this,previousContainer:o,isPointerOverContainer:l,distance:c,dropPoint:n,event:i})}withItems(a){const e=this._draggables;return this._draggables=a,a.forEach(t=>t._withDropContainer(this)),this.isDragging()&&(e.filter(o=>o.isDragging()).every(o=>-1===a.indexOf(o))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(a){return this._sortStrategy.direction=a,this}connectedTo(a){return this._siblings=a.slice(),this}withOrientation(a){return this._sortStrategy.orientation=a,this}withScrollableParents(a){const e=ai(this.element);return this._scrollableElements=-1===a.indexOf(e)?[e,...a]:a.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(a){return this._isDragging?this._sortStrategy.getItemIndex(a):this._draggables.indexOf(a)}isReceiving(){return this._activeSiblings.size>0}_sortItem(a,e,t,o){if(this.sortingDisabled||!this._clientRect||!QM(this._clientRect,.05,e,t))return;const l=this._sortStrategy.sort(a,e,t,o);l&&this.sorted.next({previousIndex:l.previousIndex,currentIndex:l.currentIndex,container:this,item:a})}_startScrollingIfNecessary(a,e){if(this.autoScrollDisabled)return;let t,o=0,l=0;if(this._parentPositions.positions.forEach((c,n)=>{n===this._document||!c.clientRect||t||QM(c.clientRect,.05,a,e)&&([o,l]=function h1(r,a,e,t){const o=sD(a,t),l=lD(a,e);let c=0,n=0;if(o){const i=r.scrollTop;1===o?i>0&&(c=1):r.scrollHeight-i>r.clientHeight&&(c=2)}if(l){const i=r.scrollLeft;1===l?i>0&&(n=1):r.scrollWidth-i>r.clientWidth&&(n=2)}return[c,n]}(n,c.clientRect,a,e),(o||l)&&(t=n))}),!o&&!l){const{width:c,height:n}=this._viewportRuler.getViewportSize(),i={width:c,height:n,top:0,right:c,bottom:n,left:0};o=sD(i,e),l=lD(i,a),t=window}t&&(o!==this._verticalScrollDirection||l!==this._horizontalScrollDirection||t!==this._scrollNode)&&(this._verticalScrollDirection=o,this._horizontalScrollDirection=l,this._scrollNode=t,(o||l)&&t?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const a=ai(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=a.msScrollSnapType||a.scrollSnapType||"",a.scrollSnapType=a.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const a=ai(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(a).clientRect}_reset(){this._isDragging=!1;const a=ai(this.element).style;a.scrollSnapType=a.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(e=>e._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(a,e){return null!=this._clientRect&&Ix(this._clientRect,a,e)}_getSiblingContainerFromPosition(a,e,t){return this._siblings.find(o=>o._canReceive(a,e,t))}_canReceive(a,e,t){if(!this._clientRect||!Ix(this._clientRect,e,t)||!this.enterPredicate(a,this))return!1;const o=this._getShadowRoot().elementFromPoint(e,t);if(!o)return!1;const l=ai(this.element);return o===l||l.contains(o)}_startReceiving(a,e){const t=this._activeSiblings;!t.has(a)&&e.every(o=>this.enterPredicate(o,this)||this._draggables.indexOf(o)>-1)&&(t.add(a),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(a){this._activeSiblings.delete(a),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(a=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(a);e&&this._sortStrategy.updateOnScroll(e.top,e.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const a=Yo(ai(this.element));this._cachedShadowRoot=a||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const a=this._sortStrategy.getActiveItemsSnapshot().filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,a))}}function sD(r,a){const{top:e,bottom:t,height:o}=r,l=.05*o;return a>=e-l&&a<=e+l?1:a>=t-l&&a<=t+l?2:0}function lD(r,a){const{left:e,right:t,width:o}=r,l=.05*o;return a>=e-l&&a<=e+l?1:a>=t-l&&a<=t+l?2:0}const kC=kn({passive:!1,capture:!0});let p1=(()=>{class r{constructor(e,t){this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=o=>o.isDragging(),this.pointerMove=new Se.x,this.pointerUp=new Se.x,this.scroll=new Se.x,this._preventDefaultWhileDragging=o=>{this._activeDragInstances.length>0&&o.preventDefault()},this._persistentTouchmoveListener=o=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&o.preventDefault(),this.pointerMove.next(o))},this._document=t}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,kC)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,kC)}startDragging(e,t){if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){const o=t.type.startsWith("touch");this._globalListeners.set(o?"touchend":"mouseup",{handler:l=>this.pointerUp.next(l),options:!0}).set("scroll",{handler:l=>this.scroll.next(l),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:kC}),o||this._globalListeners.set("mousemove",{handler:l=>this.pointerMove.next(l),options:kC}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((l,c)=>{this._document.addEventListener(c,l.handler,l.options)})})}}stopDragging(e){const t=this._activeDragInstances.indexOf(e);t>-1&&(this._activeDragInstances.splice(t,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(e){return this._activeDragInstances.indexOf(e)>-1}scrolled(e){const t=[this.scroll];return e&&e!==this._document&&t.push(new bi.y(o=>this._ngZone.runOutsideAngular(()=>{const c=n=>{this._activeDragInstances.length&&o.next(n)};return e.addEventListener("scroll",c,!0),()=>{e.removeEventListener("scroll",c,!0)}}))),(0,ln.T)(...t)}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((e,t)=>{this._document.removeEventListener(t,e.handler,e.options)}),this._globalListeners.clear()}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(u.R0b),u.LFG(T.K0))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const f1={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let m1=(()=>{class r{constructor(e,t,o,l){this._document=e,this._ngZone=t,this._viewportRuler=o,this._dragDropRegistry=l}createDrag(e,t=f1){return new l1(e,t,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new u1(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(T.K0),u.LFG(u.R0b),u.LFG(Dr),u.LFG(p1))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),g1=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({providers:[m1],imports:[Hr]}),r})();function _1(r,a){if(1&r&&(u.TgZ(0,"div",5)(1,"mat-icon"),u._uU(2),u.qZA()()),2&r){const e=u.oxw();u.xp6(2),u.Oqu(e.data.icon)}}function b1(r,a){if(1&r&&(u.TgZ(0,"div",6),u._uU(1),u.qZA()),2&r){const e=u.oxw();u.xp6(1),u.hij(" ",e.showTimestamp()," ")}}let C1=(()=>{class r{constructor(e,t){this.dialog=e,this.notificationStorageService=t,this.newNotification=!1,this.closeNotification=new u.vpe,this.alreadyPressed=!1,this.alreadyClosed=!1,this.waiting=!1}doAction(){if(this.newNotification&&(this.alreadyPressed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,void 0!==this.data.action)this.data.action();else{const e=Qi();e.width="550px",e.data=this.data,e.autoFocus=!1,this.dialog.open(tP,e).afterClosed().subscribe(()=>{this.closeSelf()})}}closeSelf(){this.inDialog||(this.newNotification&&(this.alreadyClosed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,this.closeNotification.emit())}ngOnInit(){!function DA(r,a){_p.apply(this,arguments)}(this.data.delay,()=>{!this.alreadyClosed&&!this.waiting&&this.closeSelf()})}showTimestamp(){const[e,t]=this.data.timeStamp.split(":");return t.length<2?e+":0"+t:this.data.timeStamp}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(un),u.Y36(ql))},r.\u0275cmp=u.Xpm({type:r,selectors:[["perun-web-apps-notification"]],inputs:{data:"data",inDialog:"inDialog",newNotification:"newNotification"},outputs:{closeNotification:"closeNotification"},decls:9,vars:14,consts:[[1,"notification-container",3,"click"],["class","notification-icon",4,"ngIf"],["data-cy","notification-message",1,"notification-text","clickable"],["class","ml-auto mr-5 mt-auto mb-auto",4,"ngIf"],[1,"notification-action","mt-auto","mb-auto",3,"hidden","click"],[1,"notification-icon"],[1,"ml-auto","mr-5","mt-auto","mb-auto"]],template:function(e,t){1&e&&(u.TgZ(0,"div")(1,"div",0),u.NdJ("click",function(){return t.alreadyClosed||t.waiting?"":t.closeSelf()}),u.YNc(2,_1,3,1,"div",1),u.TgZ(3,"div",2),u._uU(4),u.ALo(5,"translate"),u.qZA(),u.YNc(6,b1,2,1,"div",3),u.TgZ(7,"div",4),u.NdJ("click",function(){return t.waiting=!0,t.doAction()}),u._uU(8),u.qZA()()()),2&e&&(u.Gre("notification ",t.inDialog?"":"mat-elevation-z7",""),u.ekj("error","error"===t.data.type)("success","success"===t.data.type),u.xp6(2),u.Q6J("ngIf",null!==t.data.icon),u.xp6(2),u.hij(" ",u.lcZ(5,12,t.data.title)," "),u.xp6(2),u.Q6J("ngIf",t.inDialog),u.xp6(1),u.Q6J("hidden",t.alreadyPressed),u.xp6(1),u.hij(" ",t.data.actionText," "))},dependencies:[T.O5,xn,oi],styles:[".notification[_ngcontent-%COMP%]{width:450px;margin-bottom:16px;display:flex;flex-direction:row;justify-content:space-between;color:#fff}.notification-container[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:row;padding:16px}.notification-text[_ngcontent-%COMP%]{font-size:1.1em}.notification-action[_ngcontent-%COMP%]{margin-left:auto;text-decoration:underline;cursor:pointer}@media (max-width: 768px){.notification[_ngcontent-%COMP%]{width:100%}}.notification.error[_ngcontent-%COMP%]{background-color:#d32f2f}.notification.success[_ngcontent-%COMP%]{background-color:#288619}.notification-icon[_ngcontent-%COMP%]{padding-right:8px;color:#fff}"]}),r})(),y1=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({}),r})(),T1=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({}),r})(),I1=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({imports:[T1,qe,qe]}),r})(),B1=(()=>{class r{constructor(){this.changes=new Se.x,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 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(e,t){return`${e} \u2013 ${t}`}formatYearRangeLabel(e,t){return`${e} to ${t}`}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const W1={provide:new u.OlP("mat-datepicker-scroll-strategy"),deps:[cn],useFactory:function q1(r){return()=>r.scrollStrategies.reposition()}};let Fx=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({providers:[B1,W1],imports:[T.ez,On,cs,dl,wn,qe,Hr]}),r})(),cV=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({imports:[pi,qe,qe]}),r})();new u.OlP("mat-selectsearch-default-options");let fV=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({imports:[[T.ez,_,On,HC,Vr,Jb,oo]]}),r})(),mD=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({imports:[qe,qe]}),r})(),mV=(()=>{class r{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(e){this._vertical=Ze(e)}get inset(){return this._inset}set inset(e){this._inset=Ze(e)}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275cmp=u.Xpm({type:r,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(e,t){2&e&&(u.uIk("aria-orientation",t.vertical?"vertical":"horizontal"),u.ekj("mat-divider-vertical",t.vertical)("mat-divider-horizontal",!t.vertical)("mat-divider-inset",t.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(e,t){},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}"],encapsulation:2,changeDetection:0}),r})(),Nx=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({imports:[qe,qe]}),r})(),gV=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({}),r})(),_D=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({imports:[T.ez,qe,gV,wn]}),r})(),CD=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({imports:[es,qe,es,qe]}),r})(),CV=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({imports:[ga]}),r})(),jx=(()=>{class r{constructor(){this.changes=new Se.x,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const HV={provide:jx,deps:[[new u.FiY,new u.tp0,jx]],useFactory:function DV(r){return r||new jx}};let AD=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({providers:[HV,ld],imports:[qe,T.ez,wn,On,CV,Vr,pi,qe]}),r})(),xD=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({imports:[T.ez,qe,Hr,Hr,qe]}),r})(),ED=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({imports:[es,pi,qe,wh,T.ez,es,qe,wh,Nx]}),r})(),QV=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({imports:[T.ez,qe,wn,pi,Jo,dl,qe]}),r})(),SD=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({}),r})(),MD=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({imports:[SD,pi,qe,Jo,SD,qe]}),r})(),zx=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({imports:[T.ez,mD,Nx,_D,On,CD,HC,Vr,uC,zl,Jb,kr,ur,Cl,g,_,AD,Fx,rv,xD,ED,Fl,tM,Ex,Md,oo,Ed,pi,uC,MD,Dx,mD,Nx,_D,On,CD,HC,Vr,uC,zl,Jb,kr,ur,Cl,g,_,AD,Fx,rv,xD,ED,Fl,tM,Ex,Md,oo,Ed,pi,QV,MD,Dx]}),r})(),lB=(()=>{class r extends fg{format(e,t){return"input"===t?`${e.getDate().toString()}.${(e.getMonth()+1).toString()}.${e.getFullYear()}`:e.toDateString()}}return r.\u0275fac=function(){let a;return function(t){return(a||(a=u.n5z(r)))(t||r)}}(),r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac}),r})();const cB={parse:{dateInput:{month:"short",year:"numeric",day:"numeric"}},display:{dateInput:"input",monthYearLabel:{year:"numeric",month:"numeric"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let DD=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({providers:[{provide:sn,useClass:lB},{provide:bh,useValue:cB}],imports:[T.ez,HC,uC,g,Dx,g1,gs,$c,Ex,Md,Jb,Sx,Vr,Fl,On,oo,kr,_,ur,pi,qS,y1,I1,Fx,cV,vh,Ed,fV,Cl,zl,G_,zx,pR]}),r})();u.B6R(eM,[T.O5,Gl,ji,zg,bl,Wg,Br,dr,C1],[oi,L0]),new Date(324721404e5).valueOf();let pO=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({imports:[T.ez,On,Vr,$c,DD,gs,kr,_,ur,Sx]}),r})(),fO=(()=>{class r{constructor(e,t){this.auth=e,this.router=t}ngOnInit(){this.auth.isLoggedIn()&&this.router.navigate([""],{queryParamsHandling:"merge"})}startAuth(){this.auth.startAuthentication()}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(Nr),u.Y36(ni))},r.\u0275cmp=u.Xpm({type:r,selectors:[["perun-web-apps-login-screen"]],decls:11,vars:6,consts:[[1,"container","login-con"],[1,"row"],[1,"ml-auto","mr-auto","d-flex","flex-column","align-items-center"],[1,"mb-3"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(u.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h4",3),u._uU(4),u.ALo(5,"translate"),u.qZA(),u.TgZ(6,"button",4),u.NdJ("click",function(){return t.startAuth()}),u._uU(7),u.ALo(8,"translate"),u.TgZ(9,"mat-icon"),u._uU(10," login "),u.qZA()()()()()),2&e&&(u.xp6(4),u.hij(" ",u.lcZ(5,2,"SHARED_LIB.PERUN.LOGIN.TEXT")," "),u.xp6(3),u.hij(" ",u.lcZ(8,4,"SHARED_LIB.PERUN.LOGIN.SIGN_IN")," "))},dependencies:[ji,xn,oi],styles:[".login-con[_ngcontent-%COMP%]{padding:120px 0}"]}),r})();const mO=new u.OlP("perun-api-service");class gO{constructor(a,e="/assets/i18n/",t=".json"){this.http=a,this.prefix=e,this.suffix=t}getTranslation(a){return this.http.get(`${this.prefix}${a}${this.suffix}`)}}let _O=(()=>{class r{constructor(e,t,o,l,c){this.http=e,this.storeService=t,this.authzSevice=o,this.titleService=l,this.utilsService=c}initializeColors(e,t){return new Promise(o=>{t.forEach(l=>{const c=this.storeService.getProperty("theme")[l.configValue];document.documentElement.style.setProperty(l.cssVariable,c)}),e.forEach(l=>{const c=this.storeService.getProperty("theme")[l.configValue];document.documentElement.style.setProperty(l.cssVariable,c),this.setEntityTheme(l.entity,c)}),o()})}setEntityTheme(e,t){const o=function bO(r){return[Sn(tinycolor(r).lighten(52),"50"),Sn(tinycolor(r).lighten(37),"100"),Sn(tinycolor(r).lighten(26),"200"),Sn(tinycolor(r).lighten(12),"300"),Sn(tinycolor(r).lighten(6),"400"),Sn(tinycolor(r),"500"),Sn(tinycolor(r).darken(6),"600"),Sn(tinycolor(r).darken(12),"700"),Sn(tinycolor(r).darken(18),"800"),Sn(tinycolor(r).darken(24),"900"),Sn(tinycolor(r).lighten(50).saturate(30),"A100"),Sn(tinycolor(r).lighten(30).saturate(30),"A200"),Sn(tinycolor(r).lighten(10).saturate(15),"A400"),Sn(tinycolor(r).lighten(5).saturate(5),"A700")]}(t);for(const l of o){const i=`--${e}-theme-primary-contrast-${l.name}`,s=l.darkContrast?"30,30,30":"255,255,255";document.documentElement.style.setProperty(`--${e}-theme-primary-${l.name}`,`${l.red},${l.green},${l.blue}`),document.documentElement.style.setProperty(i,s)}}loadAppDefaultConfig(){return new Promise(e=>{this.http.get("/assets/config/defaultConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{this.storeService.setDefaultConfig(t),e()})})}loadAppInstanceConfig(){return new Promise(e=>{this.http.get("/assets/config/instanceConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{this.storeService.setInstanceConfig(t);const o=document.location.hostname;t?.brandings?.[o]&&this.storeService.setBanding(o),e()},()=>{e()})})}getNoCacheHeaders(){return new y.WM({CacheControl:"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"})}setInstanceFavicon(){return new Promise(e=>{const t=document.querySelector("link[rel*='icon']")||document.createElement("link");t.type="image/x-icon",t.rel="shortcut icon",t.href=this.storeService.getProperty("instance_favicon")?"./assets/config/instanceFavicon.ico":"./assets/img/perun.ico",document.getElementsByTagName("head")[0].appendChild(t),e()})}setApiUrl(){return new Promise(e=>{let t=this.storeService.getProperty("api_url");("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal")||this.storeService.getProperty("auto_service_access_redirect"))&&(t=t.replace("oauth","ba")),this.authzSevice.configuration.basePath=t,this.titleService.setTitle(this.storeService.getProperty("document_title").en),e()})}loadAppsConfig(){return new Promise((e,t)=>{this.utilsService.getAppsConfig().subscribe(o=>{this.storeService.setAppsConfig(o),e()},o=>t(o))})}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(y.eN),u.LFG(ui),u.LFG(at),u.LFG(Y),u.LFG(mn))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();function Sn(r,a){const e=tinycolor(r),t=e.toRgb();return{name:a,hex:e.toHexString(),darkContrast:e.isLight(),red:t.r,green:t.g,blue:t.b}}let CO=(()=>{class r{constructor(e,t,o,l){this.initAuthService=e,this.appConfigService=t,this.location=o,this.mfaHandlerService=l}loadConfigs(){return this.appConfigService.loadAppDefaultConfig().then(()=>this.appConfigService.loadAppInstanceConfig()).then(()=>this.appConfigService.setApiUrl()).then(()=>this.initAuthService.verifyAuth()).catch(e=>{throw this.mfaHandlerService.catchNoMfaTokenError(e?.params?.error),console.error(e),this.location.go("/"),location.reload(),e}).then(e=>e?(this.mfaHandlerService.closeMfaWindow(),this.initAuthService.simpleLoadPrincipal().then(()=>this.appConfigService.loadAppsConfig())):this.initAuthService.handleAuthStart())}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(ys),u.LFG(_O),u.LFG(T.Ye),u.LFG(xp))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),yO=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({providers:[VH],imports:[T.ez,zx,gs,qS]}),r})(),wO=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275cmp=u.Xpm({type:r,selectors:[["perun-web-apps-focus-on-linker-dialog"]],decls:9,vars:6,consts:[[1,"text-center","custom-dialog"],[1,"align-text-bottom"]],template:function(e,t){1&e&&(u.TgZ(0,"div",0)(1,"div")(2,"mat-icon",1),u._uU(3," info "),u.qZA(),u._uU(4),u.ALo(5,"translate"),u.qZA(),u.TgZ(6,"div"),u._uU(7),u.ALo(8,"translate"),u.qZA()()),2&e&&(u.xp6(4),u.hij(" ",u.lcZ(5,2,"SHARED_LIB.CONSOLIDATOR.FOCUS_ON_LINKER.MODAL")," "),u.xp6(3),u.hij(" ",u.lcZ(8,4,"SHARED_LIB.CONSOLIDATOR.FOCUS_ON_LINKER.MODAL_WARNING")," "))},dependencies:[xn,oi],styles:[".custom-dialog[_ngcontent-%COMP%]{background-color:#000;color:#fffffff2;font-size:1.2rem}"]}),r})(),vO=(()=>{class r{constructor(e,t,o,l){this.otherApplicationsService=e,this.storeService=t,this.oauthService=o,this.dialog=l}openLinkerWindow(e,t){let o=this.otherApplicationsService.getUrlForOtherApplication(zr.Linker);this.storeService.getProperty("use_localhost_linker_url")&&(o="http://localhost:4201/");let l=o+"?formerToken="+this.oauthService.getAccessToken();t&&0!==t.length&&(l+="&idphint="+t.toString());const i=window.top,h=window.open(l,"_blank",`width=600,height=600,top=${i.outerHeight/2+i.screenY-300}, left=${i.outerWidth/2+i.screenX-300}`);let f;if(h){const H=Qi();H.width="450px",H.panelClass="noBorderDialog",f=this.dialog.open(wO,H)}window.addEventListener("message",H=>{sessionStorage.setItem("linkedResult",H.data)});const b=setInterval(()=>{if(h.closed){clearInterval(b),f.close();const H=sessionStorage.getItem("linkedResult");sessionStorage.removeItem("linkedResult"),e(H)}},1e3)}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(fb),u.LFG(ui),u.LFG(Fr.Ct),u.LFG(un))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),VD=(()=>{class r{}return r.MEMBER_DEF_EXPIRATION="urn:perun:member:attribute-def:def:membershipExpiration",r.MEMBER_DEF_GROUP_EXPIRATION="urn:perun:member_group:attribute-def:def:groupMembershipExpiration",r.MEMBER_GROUP_STATUS="urn:perun:member_group:attribute-def:virt:groupStatus",r.MEMBER_GROUP_STATUS_INDIRECT="urn:perun:member_group:attribute-def:virt:groupStatusIndirect",r.MEMBER_DEF_ORGANIZATION="urn:perun:member:attribute-def:def:organization",r.MEMBER_DEF_MAIL="urn:perun:member:attribute-def:def:mail",r.MEMBER_CORE_ID="urn:perun:member:attribute-def:core:id",r.MEMBER_LIFECYCLE_ALTERABLE="urn:perun:member:attribute-def:virt:isLifecycleAlterable",r.VO_DEF_EXPIRATION_RULES="urn:perun:vo:attribute-def:def:membershipExpirationRules",r.VO_DEF_MAIL_FOOTER="urn:perun:vo:attribute-def:def:mailFooter",r.VO_DEF_MAIL_HTML_FOOTER="urn:perun:vo:attribute-def:def:htmlMailFooter",r.VO_BLOCK_MANUAL_MEMBER_ADDING="urn:perun:vo:attribute-def:def:blockManualMemberAdding",r.USER_DEF_ORGANIZATION="urn:perun:user:attribute-def:def:organization",r.USER_DEF_PREFERRED_MAIL="urn:perun:user:attribute-def:def:preferredMail",r.USER_DEF_CERTIFICATES="urn:perun:user:attribute-def:def:userCertificates",r.GROUP_DEF_EXPIRATION_RULES="urn:perun:group:attribute-def:def:groupMembershipExpirationRules",r.GROUP_DEF_MAIL_FOOTER="urn:perun:group:attribute-def:def:mailFooter",r.GROUP_DEF_MAIL_HTML_FOOTER="urn:perun:group:attribute-def:def:htmlMailFooter",r.GROUP_SYNC_ENABLED="urn:perun:group:attribute-def:def:synchronizationEnabled",r.GROUP_LAST_SYNC_STATE="urn:perun:group:attribute-def:def:lastSynchronizationState",r.GROUP_LAST_SYNC_TIMESTAMP="urn:perun:group:attribute-def:def:lastSynchronizationTimestamp",r.GROUP_STRUCTURE_SYNC_ENABLED="urn:perun:group:attribute-def:def:groupStructureSynchronizationEnabled",r.GROUP_LAST_STRUCTURE_SYNC_STATE="urn:perun:group:attribute-def:def:lastGroupStructureSynchronizationState",r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP="urn:perun:group:attribute-def:def:lastGroupStructureSynchronizationTimestamp",r.GROUP_SYNC_INTERVAL="urn:perun:group:attribute-def:def:synchronizationInterval",r.GROUP_BLOCK_MANUAL_MEMBER_ADDING="urn:perun:group:attribute-def:def:blockManualMemberAdding",r.UES_DEF_MAIL="urn:perun:ues:attribute-def:def:mail",r.UES_DEF_ORGANIZATION="urn:perun:ues:attribute-def:def:o",r.UES_SOURCE_IDP_NAME="urn:perun:ues:attribute-def:def:sourceIdPName",r.UES_IDP_ORGANIZATION_NAME="urn:perun:ues:attribute-def:def:IdPOrganizationName",r})();function AO(r,a){1&r&&u._UZ(0,"mat-spinner",2)}function xO(r,a){1&r&&(u.TgZ(0,"span",17),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&r&&(u.xp6(1),u.Oqu(u.lcZ(2,1,"LIST_OF_IDENTITIES.SIGN_NOT_KNOW")))}function TO(r,a){1&r&&(u.TgZ(0,"span",17),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&r&&(u.xp6(1),u.Oqu(u.lcZ(2,1,"LIST_OF_IDENTITIES.SIGN_KNOW")))}function EO(r,a){if(1&r&&u._UZ(0,"img",18),2&r){const e=u.oxw(2);u.s9C("src",e.logo,u.LSH),u.Q6J("height",e.height)("width",e.width)}}function SO(r,a){1&r&&u._UZ(0,"mat-icon",19)}function MO(r,a){1&r&&u._UZ(0,"mat-icon",20)}function DO(r,a){1&r&&u._UZ(0,"th",21)}function HO(r,a){if(1&r&&(u.TgZ(0,"td",22),u._uU(1),u.qZA()),2&r){const e=a.$implicit;u.xp6(1),u.hij(" ",e.name,": ")}}function PO(r,a){1&r&&u._UZ(0,"th",21)}function RO(r,a){if(1&r&&(u.TgZ(0,"span"),u._uU(1),u.qZA()),2&r){const e=u.oxw().$implicit;u.xp6(1),u.Oqu(e.value)}}function IO(r,a){if(1&r){const e=u.EpF();u.TgZ(0,"span"),u._uU(1),u.TgZ(2,"span",25),u.ALo(3,"translate"),u.TgZ(4,"button",26),u.NdJ("click",function(){const l=u.CHM(e).$implicit,c=u.oxw(4);return u.KtG(c.openDeleteDialog(l))}),u.TgZ(5,"mat-icon"),u._uU(6,"clear"),u.qZA()()(),u._UZ(7,"br"),u.qZA()}if(2&r){const e=a.$implicit,t=u.oxw(4);u.xp6(1),u.hij(" ",e," "),u.xp6(1),u.Q6J("matTooltip",u.lcZ(3,4,"LIST_OF_IDENTITIES.DELETE_DISABLED_TOOLTIP"))("matTooltipDisabled",!e.includes(t.idpProvider)),u.xp6(2),u.Q6J("disabled",e.includes(t.idpProvider))}}function kO(r,a){if(1&r&&(u.TgZ(0,"span"),u.YNc(1,IO,8,6,"span",24),u.qZA()),2&r){const e=u.oxw().$implicit;u.xp6(1),u.Q6J("ngForOf",e.value)}}function VO(r,a){if(1&r&&(u.TgZ(0,"td",23),u.YNc(1,RO,2,1,"span",1),u.YNc(2,kO,2,1,"span",1),u.qZA()),2&r){const e=a.$implicit;u.xp6(1),u.Q6J("ngIf","Linked accounts"!==e.name),u.xp6(1),u.Q6J("ngIf","Linked accounts"===e.name)}}function BO(r,a){1&r&&u._UZ(0,"tr",27)}const OO=function(){return["name","value"]};function LO(r,a){if(1&r&&(u.TgZ(0,"div"),u.YNc(1,xO,3,3,"span",3),u.YNc(2,TO,3,3,"span",3),u.TgZ(3,"div",4)(4,"div",5),u.YNc(5,EO,1,3,"img",6),u.YNc(6,SO,1,0,"mat-icon",7),u.YNc(7,MO,1,0,"mat-icon",8),u.qZA(),u.TgZ(8,"div")(9,"h2",9),u._uU(10),u.qZA(),u._UZ(11,"mat-divider"),u.TgZ(12,"table",10),u.ynx(13,11),u.YNc(14,DO,1,0,"th",12),u.YNc(15,HO,2,1,"td",13),u.BQk(),u.ynx(16,14),u.YNc(17,PO,1,0,"th",12),u.YNc(18,VO,3,2,"td",15),u.BQk(),u.YNc(19,BO,1,0,"tr",16),u.qZA()()()()),2&r){const e=u.oxw();u.xp6(1),u.Q6J("ngIf",e.unknownIdentity),u.xp6(1),u.Q6J("ngIf",!e.unknownIdentity),u.xp6(3),u.Q6J("ngIf",e.logo),u.xp6(1),u.Q6J("ngIf",!e.logo&&!e.unknownIdentity),u.xp6(1),u.Q6J("ngIf",!e.logo&&e.unknownIdentity),u.xp6(3),u.Oqu(e.idpProvider),u.xp6(2),u.Q6J("dataSource",e.dataSource),u.xp6(7),u.Q6J("matRowDefColumns",u.DdM(8,OO))}}let FO=(()=>{class r{constructor(e,t,o,l,c){this.oauthService=e,this.userService=t,this.storeService=o,this.initService=l,this.dialog=c,this.idpProvider="",this.dataSource=new hC,this.info=[],this.loading=!1}ngOnInit(){this.loading=!0,this.initProfileAndPrincipal()}ngOnChanges(){0!==this.reloadData&&(this.info=[],this.initProfileAndPrincipal())}initProfileAndPrincipal(){this.oauthService.loadUserProfile().then(e=>{this.setIdpInfo(e),this.initService.simpleLoadPrincipal().then(()=>{this.userId=this.storeService.getPerunPrincipal().userId,this.unknownIdentity=-1===this.userId,this.reloadAccounts()})})}reloadAccounts(){if(this.loading=!0,this.unknownIdentity)this.dataSource=new hC(this.info),this.loading=!1;else{const e=[];this.userService.getRichUserExtSources(this.userId).subscribe(t=>{this.userExtSources=t,t.forEach(o=>{if(0!==o.attributes.length){const l=bp(o.attributes,VD.UES_SOURCE_IDP_NAME),c=bp(o.attributes,VD.UES_DEF_MAIL);l?.value&&e.push(`${l.value}${c?.value?" ("+c.value+")":""}`)}}),0!==this.info.length&&(this.info=this.info.filter(o=>"Linked accounts"!==o.name)),this.info.push({name:"Linked accounts",value:e}),this.dataSource=new hC(this.info),this.loading=!1})}}setIdpInfo(e){const t=this.getUserName(e);null!=t&&""!==t&&this.info.push({name:"Name",value:t});const o=this.getUserLogin(e);null!=o&&""!==o&&this.info.push({name:"Login",value:o}),e.info.email&&this.info.push({name:"Email",value:e.info.email}),this.idpProvider=this.getNestedItem(e,this.storeService.getProperty("path_to_idp_provider_userinfo")),this.logo=this.getNestedItem(e,this.storeService.getProperty("path_to_idp_logo_userinfo")),this.width=this.getNestedItem(e,this.storeService.getProperty("path_to_idp_logo_width_userinfo")),this.height=this.getNestedItem(e,this.storeService.getProperty("path_to_idp_logo_height_userinfo"))}getNestedItem(e,t){let o=e.info;for(const l of t)o=o[l],Array.isArray(o)&&(o=o[0]);return String(o)}getUserName(e){const t=e.info.name;if(t&&""!==t)return t;const o=e.info.given_name,l=e.info.family_name;return o&&l?o+" "+l:""}getUserLogin(e){const t=e.info.preferred_username;if(t&&""!==t)return t;const o=e.info.nickname;return o&&""!==o?o:""}openDeleteDialog(e){const t=[];this.userExtSources.filter(c=>c.attributes.forEach(n=>{"sourceIdPName"===n.baseFriendlyName&&e.includes(n.value)&&t.push(c)}));const o=Qi();o.width="450px",o.data={theme:"user-theme",userId:this.userId,extSources:t},this.dialog.open(VP,o).afterClosed().subscribe(c=>{c&&this.reloadAccounts()})}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(Fr.Ct),u.Y36(Kr),u.Y36(ui),u.Y36(ys),u.Y36(un))},r.\u0275cmp=u.Xpm({type:r,selectors:[["perun-web-apps-list-of-identities"]],inputs:{reloadData:"reloadData"},features:[u.TTD],decls:3,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],["class","mt-n3",4,"ngIf"],[1,"identity-flexbox"],[1,"d-flex","align-items-center","justify-content-center"],["class","logo text-center",3,"height","width","src",4,"ngIf"],["svgIcon","perun-verify-grey","class","perun-icon perun-icon-identity",4,"ngIf"],["svgIcon","perun-info-grey","class","perun-icon perun-icon-identity",4,"ngIf"],[1,"px-3"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["class","font-weight-bold px-3","mat-cell","",4,"matCellDef"],["matColumnDef","value"],["class","pr-3","mat-cell","",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mt-n3"],[1,"logo","text-center",3,"height","width","src"],["svgIcon","perun-verify-grey",1,"perun-icon","perun-icon-identity"],["svgIcon","perun-info-grey",1,"perun-icon","perun-icon-identity"],["mat-header-cell",""],["mat-cell","",1,"font-weight-bold","px-3"],["mat-cell","",1,"pr-3"],[4,"ngFor","ngForOf"],[3,"matTooltip","matTooltipDisabled"],["mat-icon-button","","color","warn",3,"disabled","click"],["mat-row",""]],template:function(e,t){1&e&&(u.TgZ(0,"div"),u.YNc(1,AO,1,0,"mat-spinner",0),u.YNc(2,LO,20,9,"div",1),u.qZA()),2&e&&(u.xp6(1),u.Q6J("ngIf",t.loading),u.xp6(1),u.Q6J("ngIf",!t.loading))},dependencies:[T.sg,T.O5,mV,ji,xn,J0,sC,lC,oC,K0,cC,dC,Z0,hr,Sd,oi],styles:[".logo[_ngcontent-%COMP%]{display:block;margin-top:auto;margin-bottom:auto}.perun-icon-identity[_ngcontent-%COMP%]{transform:scale(3.5);margin-left:.9rem;margin-top:1rem;color:#000}.identity-flexbox[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;justify-content:center;width:100%;gap:.5rem 1rem;margin-top:.5rem}"]}),r})(),NO=(()=>{class r{transform(e){let t="";return e.forEach(o=>{const l=o.attributes;if(l){const c=l.sourceIdPName;c&&""!==c&&(t=t+c+", ")}}),t.slice(0,-2)}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275pipe=u.Yjl({name:"similarIdentityFriendlyNamesString",type:r,pure:!0}),r})();function jO(r,a){1&r&&(u.TgZ(0,"perun-web-apps-alert",7),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&r&&(u.xp6(1),u.Oqu(u.lcZ(2,1,"MAIN_WINDOW.IS_NOT_KNOWN_IDENTITY")))}function zO(r,a){if(1&r){const e=u.EpF();u.TgZ(0,"div",10)(1,"div",11),u._UZ(2,"mat-icon",12),u.TgZ(3,"div",13)(4,"div"),u._uU(5),u.qZA(),u.TgZ(6,"div",14),u._uU(7),u.ALo(8,"translate"),u.ALo(9,"similarIdentityFriendlyNamesString"),u.qZA()()(),u.TgZ(10,"button",15),u.NdJ("click",function(){const l=u.CHM(e).$implicit,c=u.oxw(2);return u.KtG(c.openPopUp(l.identities))}),u._uU(11),u.ALo(12,"translate"),u.qZA()()}if(2&r){const e=a.$implicit;u.xp6(5),u.Oqu(e.email),u.xp6(2),u.AsE(" ",u.lcZ(8,4,"MAIN_WINDOW.LINKED_ACCOUNTS"),": ",u.lcZ(9,6,e.identities)," "),u.xp6(4),u.hij(" ",u.lcZ(12,8,"MAIN_WINDOW.CONNECT_THIS_ACCOUNT")," ")}}function UO(r,a){if(1&r){const e=u.EpF();u.TgZ(0,"div")(1,"h2"),u._uU(2),u.ALo(3,"translate"),u.qZA(),u.TgZ(4,"p"),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.YNc(7,zO,13,10,"div",8),u.TgZ(8,"button",9),u.NdJ("click",function(){u.CHM(e);const o=u.oxw();return u.KtG(o.openPopUp([]))}),u._uU(9),u.ALo(10,"translate"),u.qZA()()}if(2&r){const e=u.oxw();u.xp6(2),u.hij(" ",u.lcZ(3,4,"MAIN_WINDOW.TITLE_"+e.titleHelpTranslatePath)," "),u.xp6(3),u.hij(" ",u.lcZ(6,6,"MAIN_WINDOW."+e.titleHelpTranslatePath+"_HELP")," "),u.xp6(2),u.Q6J("ngForOf",e.similarIdentities),u.xp6(2),u.hij(" ",u.lcZ(10,8,"MAIN_WINDOW.CONNECT_OTHER_ACCOUNT")," ")}}function GO(r,a){1&r&&u._UZ(0,"mat-spinner",16)}let qO=(()=>{class r{constructor(e,t,o,l,c){this.storeService=e,this.initService=t,this.registrarService=o,this.router=l,this.openLinkerService=c,this.loading=!1,this.similarIdentities=[],this.titleHelpTranslatePath="SIMILAR_FOUND",this.reloadData=0}ngOnInit(){this.initData()}initData(){this.loading=!0,this.initService.simpleLoadPrincipal().then(()=>{this.unknownIdentity=-1===this.storeService.getPerunPrincipal().userId,this.reloadSimilarIdentities()})}reloadSimilarIdentities(){this.registrarService.checkForSimilarRichIdentities().subscribe(e=>{this.similarIdentities=e.slice(0,2),0===this.similarIdentities.length&&(this.titleHelpTranslatePath="NO_SIMILAR_FOUND"),this.loading=!1})}openPopUp(e){const t=[];e.forEach(o=>{o.attributes.sourceIdPName&&t.push(o.extSource.name)}),this.openLinkerService.openLinkerWindow(o=>{"TOKEN_EXPIRED"===o?location.reload():"OK"===o?(this.reloadData++,this.initData()):"MESSAGE_SENT_TO_SUPPORT"===o&&this.router.navigate(["/result",o],{queryParamsHandling:"preserve"})},t)}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(ui),u.Y36(ys),u.Y36(pc),u.Y36(ni),u.Y36(vO))},r.\u0275cmp=u.Xpm({type:r,selectors:[["perun-web-apps-main-window"]],decls:9,vars:4,consts:[[1,"d-flex"],[1,"d-inline-block","ml-auto","mr-auto"],["alert_type","warn",4,"ngIf"],[1,"main-flexbox","card","p-4","mat-elevation-z3"],[1,"identities-list",3,"reloadData"],[4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],["alert_type","warn"],["class","card d-flex mt-3 p-2 identity-card mat-elevation-z3",4,"ngFor","ngForOf"],["mat-flat-button","","color","accent",1,"mt-3",3,"click"],[1,"card","d-flex","mt-3","p-2","identity-card","mat-elevation-z3"],[1,"d-flex","flex-row"],["svgIcon","perun-verify-grey",1,"perun-icon","perun-icon-similar"],[1,"ml-3","mt-1"],[1,"pl-1"],["mat-flat-button","","color","accent",1,"ml-auto","mr-2","mb-2","mt-3",3,"click"],[1,"mr-auto","ml-auto"]],template:function(e,t){1&e&&(u.TgZ(0,"div",0)(1,"div",1),u.YNc(2,jO,3,3,"perun-web-apps-alert",2),u.TgZ(3,"div",3),u._UZ(4,"perun-web-apps-list-of-identities",4)(5,"br"),u.TgZ(6,"div"),u.YNc(7,UO,11,10,"div",5),u.YNc(8,GO,1,0,"mat-spinner",6),u.qZA()()()()),2&e&&(u.xp6(2),u.Q6J("ngIf",t.unknownIdentity),u.xp6(2),u.Q6J("reloadData",t.reloadData),u.xp6(3),u.Q6J("ngIf",!t.loading),u.xp6(1),u.Q6J("ngIf",t.loading))},dependencies:[T.sg,T.O5,ji,xn,hr,Gl,FO,NO,oi],styles:[".identities-list[_ngcontent-%COMP%]{max-width:650px}.main-flexbox[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex-wrap:wrap;gap:1.5rem}.perun-icon-similar[_ngcontent-%COMP%]{transform:scale(2);margin-left:1rem;margin-top:1rem;color:#000}.identity-card[_ngcontent-%COMP%]{background-color:#f5f5f5;max-width:450px}"]}),r})();function WO(r,a){if(1&r&&(u.TgZ(0,"mat-icon",6),u._uU(1),u.qZA()),2&r){const e=u.oxw();u.xp6(1),u.hij(" ",e.icon," ")}}function $O(r,a){1&r&&u._UZ(0,"mat-icon",7)}function YO(r,a){if(1&r&&(u.TgZ(0,"span"),u._uU(1),u.qZA()),2&r){const e=u.oxw(2);u.xp6(1),u.hij(" ",e.supportMail," ")}}function QO(r,a){if(1&r&&(u.TgZ(0,"span"),u._uU(1),u.qZA()),2&r){const e=u.oxw(2);u.xp6(1),u.hij(" ",e.userMail," ")}}function JO(r,a){if(1&r&&(u.TgZ(0,"h5"),u._uU(1),u.ALo(2,"translate"),u.YNc(3,YO,2,1,"span",5),u.YNc(4,QO,2,1,"span",5),u.qZA()),2&r){const e=u.oxw();u.xp6(1),u.hij(" ",u.lcZ(2,3,"SHARED_LIB.CONSOLIDATOR."+e.result+"_SUBTITLE")," "),u.xp6(2),u.Q6J("ngIf","UNKNOWN_ERROR"===e.result),u.xp6(1),u.Q6J("ngIf","MESSAGE_SENT_TO_SUPPORT"===e.result)}}function KO(r,a){if(1&r&&(u.TgZ(0,"h5"),u._uU(1),u.ALo(2,"translate"),u.ALo(3,"translate"),u.qZA()),2&r){const e=u.oxw();u.xp6(1),u.lnq(" ",u.lcZ(2,3,"SHARED_LIB.CONSOLIDATOR.OK_SUBTITLE_WITH_MAIL_1")," ",e.userMail," ",u.lcZ(3,5,"SHARED_LIB.CONSOLIDATOR.OK_SUBTITLE_WITH_MAIL_2")," ")}}const ZO=function(r){return{"background-color":r}},XO=["*"];let eL=(()=>{class r{constructor(e){this.store=e,this.supportMail=this.store.getProperty("support_mail"),this.userMail=this.store.getPerunPrincipal().additionalInformations.mail,this.color="",this.icon="",this.greenColor="#e0ffd4",this.blueColor="#d4f2ff",this.redColor="#ffd4d4",this.warningIcon="warning",this.infoIcon="info",this.messageSent="mark_email_read"}ngOnChanges(){switch(this.result){case"OK":this.color=this.greenColor;break;case"IDENTITY_REGISTERED_ALREADY":case"UNKNOWN_ERROR":this.color=this.redColor,this.icon=this.warningIcon;break;case"IDENTITY_IDENTICAL":case"IDENTITY_LINKED":case"IDENTITY_UNKNOWN":this.color=this.blueColor,this.icon=this.infoIcon;break;case"MESSAGE_SENT_TO_SUPPORT":this.color=this.blueColor,this.icon=this.messageSent;break;case"TOKEN_EXPIRED":this.color=this.blueColor,this.icon=this.warningIcon}}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(ui))},r.\u0275cmp=u.Xpm({type:r,selectors:[["perun-web-apps-consolidation-result"]],inputs:{result:"result"},features:[u.TTD],ngContentSelectors:XO,decls:12,vars:10,consts:[[1,"p-4","m-3",3,"ngStyle"],[1,"d-flex","pb-5","flex-row"],["class","mat-icon-war mr-4",4,"ngIf"],["svgIcon","perun-verify-grey","class","perun-icon perun-icon-detail",4,"ngIf"],[1,"ml-5"],[4,"ngIf"],[1,"mat-icon-war","mr-4"],["svgIcon","perun-verify-grey",1,"perun-icon","perun-icon-detail"]],template:function(e,t){1&e&&(u.F$t(),u.TgZ(0,"div",0)(1,"div",1)(2,"div"),u.YNc(3,WO,2,1,"mat-icon",2),u.YNc(4,$O,1,0,"mat-icon",3),u.qZA(),u.TgZ(5,"div",4)(6,"h1"),u._uU(7),u.ALo(8,"translate"),u.qZA(),u.YNc(9,JO,5,5,"h5",5),u.YNc(10,KO,4,7,"h5",5),u.qZA()(),u.Hsn(11),u.qZA()),2&e&&(u.Q6J("ngStyle",u.VKq(8,ZO,t.color)),u.xp6(3),u.Q6J("ngIf","OK"!==t.result),u.xp6(1),u.Q6J("ngIf","OK"===t.result),u.xp6(3),u.hij(" ",u.lcZ(8,6,"SHARED_LIB.CONSOLIDATOR."+t.result+"_TITLE")," "),u.xp6(2),u.Q6J("ngIf",!(t.userMail&&"OK"===t.result)),u.xp6(1),u.Q6J("ngIf",t.userMail&&"OK"===t.result))},dependencies:[T.O5,T.PC,xn,oi],styles:[".mat-icon-war[_ngcontent-%COMP%]{font-size:82px}.perun-icon-detail[_ngcontent-%COMP%]{transform:scale(4.5);margin-left:3rem;margin-top:1.5rem;color:#000}"]}),r})();const tL=[{path:"",redirectTo:"consolidate",pathMatch:"full"},{path:"login",component:fO},{path:"consolidate",component:qO},{path:"result/:result",component:(()=>{class r{constructor(e,t){this.route=e,this.router=t}ngOnInit(){this.route.params.subscribe(e=>{this.linkerResult=e.result})}onClick(){this.router.navigate(["/consolidate"],{queryParamsHandling:"merge"})}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(Rn),u.Y36(ni))},r.\u0275cmp=u.Xpm({type:r,selectors:[["perun-web-apps-show-result-page"]],decls:6,vars:4,consts:[[1,"show-result","ml-auto","mr-auto"],[3,"result"],[1,"d-flex","flex-column","mt-5"],["mat-flat-button","",1,"ml-auto",3,"click"]],template:function(e,t){1&e&&(u.TgZ(0,"div",0)(1,"perun-web-apps-consolidation-result",1)(2,"div",2)(3,"button",3),u.NdJ("click",function(){return t.onClick()}),u._uU(4),u.ALo(5,"translate"),u.qZA()()()()),2&e&&(u.xp6(1),u.Q6J("result",t.linkerResult),u.xp6(3),u.hij(" ",u.lcZ(5,2,"SHOW_RESULT.BACK_HOME")," "))},dependencies:[ji,eL,oi],styles:[".show-result[_ngcontent-%COMP%]{max-width:55vw!important}"]}),r})()}];let iL=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({imports:[$c.forRoot(tL,{preloadingStrategy:tT,scrollPositionRestoration:"enabled",relativeLinkResolution:"legacy"}),$c]}),r})(),nL=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({imports:[T.ez,zl,On,gs]}),r})();const rL={provide:y.TP,useExisting:(0,u.Gpc)(()=>pb),multi:!0};function aL(r){return new gO(r,"./assets/i18n/",".json")}function oL(r){const a={basePath:r.getProperty("api_url")};return new Oe(a)}const sL=r=>()=>r.loadConfigs();let lL=(()=>{class r{constructor(e,t){this.customIconService=e,this.translate=t,this.translate.setDefaultLang("en"),this.translate.use("en"),this.customIconService.registerPerunRefreshIcon()}}return r.\u0275fac=function(e){return new(e||r)(u.LFG($A),u.LFG(Tn))},r.\u0275mod=u.oAB({type:r,bootstrap:[HR]}),r.\u0275inj=u.cJS({providers:[$A,{provide:u.ip1,useFactory:sL,multi:!0,deps:[CO]},{provide:Oe,useFactory:oL,deps:[ui]},pb,rL,{provide:mO,useClass:YA},{provide:Fr.Hy,useFactory:()=>localStorage}],imports:[Pa,Dk,y.JF,mc,iL,zx,pO,Vr,DD,Sx,G_,nL,Fr.zr.forRoot(),yO,gs.forRoot({loader:{provide:fs,useFactory:aL,deps:[y.eN]}})]}),r})();(0,u.G48)(),Qe().bootstrapModule(lL).catch(r=>console.error(r))},1302:function(F,z,x){var T;!function(u,V){var O={};!function(u){"use strict";u.__esModule=!0,u.digestLength=32,u.blockSize=64;var V=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function O(ne,X,ie,de,he){for(var me,Ve,Be,we,_e,ve,Ye,Me,Ee,Te,oe,se,fe;he>=64;){for(me=X[0],Ve=X[1],Be=X[2],we=X[3],_e=X[4],ve=X[5],Ye=X[6],Me=X[7],Te=0;Te<16;Te++)ne[Te]=(255&ie[oe=de+4*Te])<<24|(255&ie[oe+1])<<16|(255&ie[oe+2])<<8|255&ie[oe+3];for(Te=16;Te<64;Te++)ne[Te]=((se=((Ee=ne[Te-2])>>>17|Ee<<15)^(Ee>>>19|Ee<<13)^Ee>>>10)+ne[Te-7]|0)+((fe=((Ee=ne[Te-15])>>>7|Ee<<25)^(Ee>>>18|Ee<<14)^Ee>>>3)+ne[Te-16]|0);for(Te=0;Te<64;Te++)se=(((_e>>>6|_e<<26)^(_e>>>11|_e<<21)^(_e>>>25|_e<<7))+(_e&ve^~_e&Ye)|0)+(Me+(V[Te]+ne[Te]|0)|0)|0,fe=((me>>>2|me<<30)^(me>>>13|me<<19)^(me>>>22|me<<10))+(me&Ve^me&Be^Ve&Be)|0,Me=Ye,Ye=ve,ve=_e,_e=we+se|0,we=Be,Be=Ve,Ve=me,me=se+fe|0;X[0]+=me,X[1]+=Ve,X[2]+=Be,X[3]+=we,X[4]+=_e,X[5]+=ve,X[6]+=Ye,X[7]+=Me,de+=64,he-=64}return de}var I=function(){function ne(){this.digestLength=u.digestLength,this.blockSize=u.blockSize,this.state=new Int32Array(8),this.temp=new Int32Array(64),this.buffer=new Uint8Array(128),this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this.reset()}return ne.prototype.reset=function(){return this.state[0]=1779033703,this.state[1]=3144134277,this.state[2]=1013904242,this.state[3]=2773480762,this.state[4]=1359893119,this.state[5]=2600822924,this.state[6]=528734635,this.state[7]=1541459225,this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this},ne.prototype.clean=function(){for(var X=0;X0){for(;this.bufferLength<64&&ie>0;)this.buffer[this.bufferLength++]=X[de++],ie--;64===this.bufferLength&&(O(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(ie>=64&&(de=O(this.temp,this.state,X,de,ie),ie%=64);ie>0;)this.buffer[this.bufferLength++]=X[de++],ie--;return this},ne.prototype.finish=function(X){if(!this.finished){var ie=this.bytesHashed,de=this.bufferLength,he=ie/536870912|0,me=ie<<3,Ve=ie%64<56?64:128;this.buffer[de]=128;for(var Be=de+1;Be>>24&255,this.buffer[Ve-7]=he>>>16&255,this.buffer[Ve-6]=he>>>8&255,this.buffer[Ve-5]=he>>>0&255,this.buffer[Ve-4]=me>>>24&255,this.buffer[Ve-3]=me>>>16&255,this.buffer[Ve-2]=me>>>8&255,this.buffer[Ve-1]=me>>>0&255,O(this.temp,this.state,this.buffer,0,Ve),this.finished=!0}for(Be=0;Be<8;Be++)X[4*Be+0]=this.state[Be]>>>24&255,X[4*Be+1]=this.state[Be]>>>16&255,X[4*Be+2]=this.state[Be]>>>8&255,X[4*Be+3]=this.state[Be]>>>0&255;return this},ne.prototype.digest=function(){var X=new Uint8Array(this.digestLength);return this.finish(X),X},ne.prototype._saveState=function(X){for(var ie=0;iethis.blockSize)(new I).update(X).finish(ie).clean();else for(var de=0;de1&&X.update(ne),ie&&X.update(ie),X.update(de),X.finish(ne),de[0]++}u.HMAC=N,u.hash=W,u.default=W,u.hmac=Q;var $=new Uint8Array(u.digestLength);u.hkdf=function U(ne,X,ie,de){void 0===X&&(X=$),void 0===de&&(de=32);for(var he=new Uint8Array([1]),me=Q(X,ne),Ve=new N(me),Be=new Uint8Array(Ve.digestLength),we=Be.length,_e=new Uint8Array(de),ve=0;ve>>24&255,Ve[1]=Ye>>>16&255,Ve[2]=Ye>>>8&255,Ve[3]=Ye>>>0&255,he.reset(),he.update(X),he.update(Ve),he.finish(we);for(var Me=0;Me=U.status}function N($){try{$.dispatchEvent(new MouseEvent("click"))}catch{var U=document.createEvent("MouseEvents");U.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),$.dispatchEvent(U)}}var W="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,Q=W.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),G=W.saveAs||("object"!=typeof window||window!==W?function(){}:"download"in HTMLAnchorElement.prototype&&!Q?function($,U,te){var ne=W.URL||W.webkitURL,X=document.createElement("a");X.download=U=U||$.name||"download",X.rel="noopener","string"==typeof $?(X.href=$,X.origin===location.origin?N(X):I(X.href)?O($,U,te):N(X,X.target="_blank")):(X.href=ne.createObjectURL($),setTimeout(function(){ne.revokeObjectURL(X.href)},4e4),setTimeout(function(){N(X)},0))}:"msSaveOrOpenBlob"in navigator?function($,U,te){if(U=U||$.name||"download","string"!=typeof $)navigator.msSaveOrOpenBlob(function V($,U){return typeof U>"u"?U={autoBom:!1}:"object"!=typeof U&&(console.warn("Deprecated: Expected third argument to be a object"),U={autoBom:!U}),U.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test($.type)?new Blob(["\ufeff",$],{type:$.type}):$}($,te),U);else if(I($))O($,U,te);else{var ne=document.createElement("a");ne.href=$,ne.target="_blank",setTimeout(function(){N(ne)})}}:function($,U,te,ne){if((ne=ne||open("","_blank"))&&(ne.document.title=ne.document.body.innerText="downloading..."),"string"==typeof $)return O($,U,te);var X="application/octet-stream"===$.type,ie=/constructor/i.test(W.HTMLElement)||W.safari,de=/CriOS\/[\d]+/.test(navigator.userAgent);if((de||X&&ie||Q)&&typeof FileReader<"u"){var he=new FileReader;he.onloadend=function(){var Be=he.result;Be=de?Be:Be.replace(/^data:[^;]*;/,"data:attachment/file;"),ne?ne.location.href=Be:location=Be,ne=null},he.readAsDataURL($)}else{var me=W.URL||W.webkitURL,Ve=me.createObjectURL($);ne?ne.location=Ve:location.href=Ve,ne=null,setTimeout(function(){me.revokeObjectURL(Ve)},4e4)}});W.saveAs=G.saveAs=G,F.exports=G}.apply(z,[]))&&(F.exports=u)},9751:(F,z,x)=>{"use strict";x.d(z,{y:()=>Q});var T=x(930),u=x(727),V=x(8822),O=x(9635),I=x(2416),N=x(576),W=x(2806);let Q=(()=>{class te{constructor(X){X&&(this._subscribe=X)}lift(X){const ie=new te;return ie.source=this,ie.operator=X,ie}subscribe(X,ie,de){const he=function U(te){return te&&te instanceof T.Lv||function $(te){return te&&(0,N.m)(te.next)&&(0,N.m)(te.error)&&(0,N.m)(te.complete)}(te)&&(0,u.Nn)(te)}(X)?X:new T.Hp(X,ie,de);return(0,W.x)(()=>{const{operator:me,source:Ve}=this;he.add(me?me.call(he,Ve):Ve?this._subscribe(he):this._trySubscribe(he))}),he}_trySubscribe(X){try{return this._subscribe(X)}catch(ie){X.error(ie)}}forEach(X,ie){return new(ie=G(ie))((de,he)=>{const me=new T.Hp({next:Ve=>{try{X(Ve)}catch(Be){he(Be),me.unsubscribe()}},error:he,complete:de});this.subscribe(me)})}_subscribe(X){var ie;return null===(ie=this.source)||void 0===ie?void 0:ie.subscribe(X)}[V.L](){return this}pipe(...X){return(0,O.U)(X)(this)}toPromise(X){return new(X=G(X))((ie,de)=>{let he;this.subscribe(me=>he=me,me=>de(me),()=>ie(he))})}}return te.create=ne=>new te(ne),te})();function G(te){var ne;return null!==(ne=te??I.v.Promise)&&void 0!==ne?ne:Promise}},7579:(F,z,x)=>{"use strict";x.d(z,{x:()=>W});var T=x(9751),u=x(727);const O=(0,x(3888).d)(G=>function(){G(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var I=x(8737),N=x(2806);let W=(()=>{class G extends T.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(U){const te=new Q(this,this);return te.operator=U,te}_throwIfClosed(){if(this.closed)throw new O}next(U){(0,N.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const te of this.currentObservers)te.next(U)}})}error(U){(0,N.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=U;const{observers:te}=this;for(;te.length;)te.shift().error(U)}})}complete(){(0,N.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:U}=this;for(;U.length;)U.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var U;return(null===(U=this.observers)||void 0===U?void 0:U.length)>0}_trySubscribe(U){return this._throwIfClosed(),super._trySubscribe(U)}_subscribe(U){return this._throwIfClosed(),this._checkFinalizedStatuses(U),this._innerSubscribe(U)}_innerSubscribe(U){const{hasError:te,isStopped:ne,observers:X}=this;return te||ne?u.Lc:(this.currentObservers=null,X.push(U),new u.w0(()=>{this.currentObservers=null,(0,I.P)(X,U)}))}_checkFinalizedStatuses(U){const{hasError:te,thrownError:ne,isStopped:X}=this;te?U.error(ne):X&&U.complete()}asObservable(){const U=new T.y;return U.source=this,U}}return G.create=($,U)=>new Q($,U),G})();class Q extends W{constructor($,U){super(),this.destination=$,this.source=U}next($){var U,te;null===(te=null===(U=this.destination)||void 0===U?void 0:U.next)||void 0===te||te.call(U,$)}error($){var U,te;null===(te=null===(U=this.destination)||void 0===U?void 0:U.error)||void 0===te||te.call(U,$)}complete(){var $,U;null===(U=null===($=this.destination)||void 0===$?void 0:$.complete)||void 0===U||U.call($)}_subscribe($){var U,te;return null!==(te=null===(U=this.source)||void 0===U?void 0:U.subscribe($))&&void 0!==te?te:u.Lc}}},930:(F,z,x)=>{"use strict";x.d(z,{Hp:()=>de,Lv:()=>te});var T=x(576),u=x(727),V=x(2416),O=x(7849),I=x(5032);const N=G("C",void 0,void 0);function G(we,_e,ve){return{kind:we,value:_e,error:ve}}var $=x(3410),U=x(2806);class te extends u.w0{constructor(_e){super(),this.isStopped=!1,_e?(this.destination=_e,(0,u.Nn)(_e)&&_e.add(this)):this.destination=Be}static create(_e,ve,Ye){return new de(_e,ve,Ye)}next(_e){this.isStopped?Ve(function Q(we){return G("N",we,void 0)}(_e),this):this._next(_e)}error(_e){this.isStopped?Ve(function W(we){return G("E",void 0,we)}(_e),this):(this.isStopped=!0,this._error(_e))}complete(){this.isStopped?Ve(N,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(_e){this.destination.next(_e)}_error(_e){try{this.destination.error(_e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const ne=Function.prototype.bind;function X(we,_e){return ne.call(we,_e)}class ie{constructor(_e){this.partialObserver=_e}next(_e){const{partialObserver:ve}=this;if(ve.next)try{ve.next(_e)}catch(Ye){he(Ye)}}error(_e){const{partialObserver:ve}=this;if(ve.error)try{ve.error(_e)}catch(Ye){he(Ye)}else he(_e)}complete(){const{partialObserver:_e}=this;if(_e.complete)try{_e.complete()}catch(ve){he(ve)}}}class de extends te{constructor(_e,ve,Ye){let Me;if(super(),(0,T.m)(_e)||!_e)Me={next:_e??void 0,error:ve??void 0,complete:Ye??void 0};else{let Ee;this&&V.v.useDeprecatedNextContext?(Ee=Object.create(_e),Ee.unsubscribe=()=>this.unsubscribe(),Me={next:_e.next&&X(_e.next,Ee),error:_e.error&&X(_e.error,Ee),complete:_e.complete&&X(_e.complete,Ee)}):Me=_e}this.destination=new ie(Me)}}function he(we){V.v.useDeprecatedSynchronousErrorHandling?(0,U.O)(we):(0,O.h)(we)}function Ve(we,_e){const{onStoppedNotification:ve}=V.v;ve&&$.z.setTimeout(()=>ve(we,_e))}const Be={closed:!0,next:I.Z,error:function me(we){throw we},complete:I.Z}},727:(F,z,x)=>{"use strict";x.d(z,{Lc:()=>N,w0:()=>I,Nn:()=>W});var T=x(576);const V=(0,x(3888).d)(G=>function(U){G(this),this.message=U?`${U.length} errors occurred during unsubscription:\n${U.map((te,ne)=>`${ne+1}) ${te.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=U});var O=x(8737);class I{constructor($){this.initialTeardown=$,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let $;if(!this.closed){this.closed=!0;const{_parentage:U}=this;if(U)if(this._parentage=null,Array.isArray(U))for(const X of U)X.remove(this);else U.remove(this);const{initialTeardown:te}=this;if((0,T.m)(te))try{te()}catch(X){$=X instanceof V?X.errors:[X]}const{_finalizers:ne}=this;if(ne){this._finalizers=null;for(const X of ne)try{Q(X)}catch(ie){$=$??[],ie instanceof V?$=[...$,...ie.errors]:$.push(ie)}}if($)throw new V($)}}add($){var U;if($&&$!==this)if(this.closed)Q($);else{if($ instanceof I){if($.closed||$._hasParent(this))return;$._addParent(this)}(this._finalizers=null!==(U=this._finalizers)&&void 0!==U?U:[]).push($)}}_hasParent($){const{_parentage:U}=this;return U===$||Array.isArray(U)&&U.includes($)}_addParent($){const{_parentage:U}=this;this._parentage=Array.isArray(U)?(U.push($),U):U?[U,$]:$}_removeParent($){const{_parentage:U}=this;U===$?this._parentage=null:Array.isArray(U)&&(0,O.P)(U,$)}remove($){const{_finalizers:U}=this;U&&(0,O.P)(U,$),$ instanceof I&&$._removeParent(this)}}I.EMPTY=(()=>{const G=new I;return G.closed=!0,G})();const N=I.EMPTY;function W(G){return G instanceof I||G&&"closed"in G&&(0,T.m)(G.remove)&&(0,T.m)(G.add)&&(0,T.m)(G.unsubscribe)}function Q(G){(0,T.m)(G)?G():G.unsubscribe()}},2416:(F,z,x)=>{"use strict";x.d(z,{v:()=>T});const T={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9841:(F,z,x)=>{"use strict";x.d(z,{a:()=>$});var T=x(9751),u=x(4742),V=x(2076),O=x(4671),I=x(3268),N=x(3269),W=x(1810),Q=x(5403),G=x(9672);function $(...ne){const X=(0,N.yG)(ne),ie=(0,N.jO)(ne),{args:de,keys:he}=(0,u.D)(ne);if(0===de.length)return(0,V.D)([],X);const me=new T.y(function U(ne,X,ie=O.y){return de=>{te(X,()=>{const{length:he}=ne,me=new Array(he);let Ve=he,Be=he;for(let we=0;we{const _e=(0,V.D)(ne[we],X);let ve=!1;_e.subscribe((0,Q.x)(de,Ye=>{me[we]=Ye,ve||(ve=!0,Be--),Be||de.next(ie(me.slice()))},()=>{--Ve||de.complete()}))},de)},de)}}(de,X,he?Ve=>(0,W.n)(he,Ve):O.y));return ie?me.pipe((0,I.Z)(ie)):me}function te(ne,X,ie){ne?(0,G.f)(ie,ne,X):X()}},7272:(F,z,x)=>{"use strict";x.d(z,{z:()=>I});var T=x(8189),V=x(3269),O=x(2076);function I(...N){return function u(){return(0,T.J)(1)}()((0,O.D)(N,(0,V.yG)(N)))}},515:(F,z,x)=>{"use strict";x.d(z,{E:()=>u});const u=new(x(9751).y)(I=>I.complete())},2076:(F,z,x)=>{"use strict";x.d(z,{D:()=>Ye});var T=x(8421),u=x(9672),V=x(4482),O=x(5403);function I(Me,Ee=0){return(0,V.e)((Te,oe)=>{Te.subscribe((0,O.x)(oe,se=>(0,u.f)(oe,Me,()=>oe.next(se),Ee),()=>(0,u.f)(oe,Me,()=>oe.complete(),Ee),se=>(0,u.f)(oe,Me,()=>oe.error(se),Ee)))})}function N(Me,Ee=0){return(0,V.e)((Te,oe)=>{oe.add(Me.schedule(()=>Te.subscribe(oe),Ee))})}var G=x(9751),U=x(2202),te=x(576);function X(Me,Ee){if(!Me)throw new Error("Iterable cannot be null");return new G.y(Te=>{(0,u.f)(Te,Ee,()=>{const oe=Me[Symbol.asyncIterator]();(0,u.f)(Te,Ee,()=>{oe.next().then(se=>{se.done?Te.complete():Te.next(se.value)})},0,!0)})})}var ie=x(3670),de=x(8239),he=x(1144),me=x(6495),Ve=x(2206),Be=x(4532),we=x(3260);function Ye(Me,Ee){return Ee?function ve(Me,Ee){if(null!=Me){if((0,ie.c)(Me))return function W(Me,Ee){return(0,T.Xf)(Me).pipe(N(Ee),I(Ee))}(Me,Ee);if((0,he.z)(Me))return function $(Me,Ee){return new G.y(Te=>{let oe=0;return Ee.schedule(function(){oe===Me.length?Te.complete():(Te.next(Me[oe++]),Te.closed||this.schedule())})})}(Me,Ee);if((0,de.t)(Me))return function Q(Me,Ee){return(0,T.Xf)(Me).pipe(N(Ee),I(Ee))}(Me,Ee);if((0,Ve.D)(Me))return X(Me,Ee);if((0,me.T)(Me))return function ne(Me,Ee){return new G.y(Te=>{let oe;return(0,u.f)(Te,Ee,()=>{oe=Me[U.h](),(0,u.f)(Te,Ee,()=>{let se,fe;try{({value:se,done:fe}=oe.next())}catch(ue){return void Te.error(ue)}fe?Te.complete():Te.next(se)},0,!0)}),()=>(0,te.m)(oe?.return)&&oe.return()})}(Me,Ee);if((0,we.L)(Me))return function _e(Me,Ee){return X((0,we.Q)(Me),Ee)}(Me,Ee)}throw(0,Be.z)(Me)}(Me,Ee):(0,T.Xf)(Me)}},8421:(F,z,x)=>{"use strict";x.d(z,{Xf:()=>ne});var T=x(655),u=x(1144),V=x(8239),O=x(9751),I=x(3670),N=x(2206),W=x(4532),Q=x(6495),G=x(3260),$=x(576),U=x(7849),te=x(8822);function ne(we){if(we instanceof O.y)return we;if(null!=we){if((0,I.c)(we))return function X(we){return new O.y(_e=>{const ve=we[te.L]();if((0,$.m)(ve.subscribe))return ve.subscribe(_e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(we);if((0,u.z)(we))return function ie(we){return new O.y(_e=>{for(let ve=0;ve{we.then(ve=>{_e.closed||(_e.next(ve),_e.complete())},ve=>_e.error(ve)).then(null,U.h)})}(we);if((0,N.D)(we))return me(we);if((0,Q.T)(we))return function he(we){return new O.y(_e=>{for(const ve of we)if(_e.next(ve),_e.closed)return;_e.complete()})}(we);if((0,G.L)(we))return function Ve(we){return me((0,G.Q)(we))}(we)}throw(0,W.z)(we)}function me(we){return new O.y(_e=>{(function Be(we,_e){var ve,Ye,Me,Ee;return(0,T.mG)(this,void 0,void 0,function*(){try{for(ve=(0,T.KL)(we);!(Ye=yield ve.next()).done;)if(_e.next(Ye.value),_e.closed)return}catch(Te){Me={error:Te}}finally{try{Ye&&!Ye.done&&(Ee=ve.return)&&(yield Ee.call(ve))}finally{if(Me)throw Me.error}}_e.complete()})})(we,_e).catch(ve=>_e.error(ve))})}},6451:(F,z,x)=>{"use strict";x.d(z,{T:()=>N});var T=x(8189),u=x(8421),V=x(515),O=x(3269),I=x(2076);function N(...W){const Q=(0,O.yG)(W),G=(0,O._6)(W,1/0),$=W;return $.length?1===$.length?(0,u.Xf)($[0]):(0,T.J)(G)((0,I.D)($,Q)):V.E}},9646:(F,z,x)=>{"use strict";x.d(z,{of:()=>V});var T=x(3269),u=x(2076);function V(...O){const I=(0,T.yG)(O);return(0,u.D)(O,I)}},102:(F,z,x)=>{"use strict";x.d(z,{S:()=>N});var T=x(9751),u=x(8421);const{isArray:V}=Array;var I=x(5403);function N(...Q){return 1===(Q=function O(Q){return 1===Q.length&&V(Q[0])?Q[0]:Q}(Q)).length?(0,u.Xf)(Q[0]):new T.y(function W(Q){return G=>{let $=[];for(let U=0;$&&!G.closed&&U{if($){for(let ne=0;ne<$.length;ne++)ne!==U&&$[ne].unsubscribe();$=null}G.next(te)})))}}(Q))}},2843:(F,z,x)=>{"use strict";x.d(z,{_:()=>V});var T=x(9751),u=x(576);function V(O,I){const N=(0,u.m)(O)?O:()=>O,W=Q=>Q.error(N());return new T.y(I?Q=>I.schedule(W,0,Q):W)}},2805:(F,z,x)=>{"use strict";x.d(z,{H:()=>I});var T=x(9751),u=x(4986),V=x(3532),O=x(1165);function I(N=0,W,Q=u.P){let G=-1;return null!=W&&((0,V.K)(W)?Q=W:G=W),new T.y($=>{let U=(0,O.q)(N)?+N-Q.now():N;U<0&&(U=0);let te=0;return Q.schedule(function(){$.closed||($.next(te++),0<=G?this.schedule(void 0,G):$.complete())},U)})}},5403:(F,z,x)=>{"use strict";x.d(z,{x:()=>u});var T=x(930);function u(O,I,N,W,Q){return new V(O,I,N,W,Q)}class V extends T.Lv{constructor(I,N,W,Q,G,$){super(I),this.onFinalize=G,this.shouldUnsubscribe=$,this._next=N?function(U){try{N(U)}catch(te){I.error(te)}}:super._next,this._error=Q?function(U){try{Q(U)}catch(te){I.error(te)}finally{this.unsubscribe()}}:super._error,this._complete=W?function(){try{W()}catch(U){I.error(U)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var I;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:N}=this;super.unsubscribe(),!N&&(null===(I=this.onFinalize)||void 0===I||I.call(this))}}}},262:(F,z,x)=>{"use strict";x.d(z,{K:()=>O});var T=x(8421),u=x(5403),V=x(4482);function O(I){return(0,V.e)((N,W)=>{let $,Q=null,G=!1;Q=N.subscribe((0,u.x)(W,void 0,void 0,U=>{$=(0,T.Xf)(I(U,O(I)(N))),Q?(Q.unsubscribe(),Q=null,$.subscribe(W)):G=!0})),G&&(Q.unsubscribe(),Q=null,$.subscribe(W))})}},4351:(F,z,x)=>{"use strict";x.d(z,{b:()=>V});var T=x(5577),u=x(576);function V(O,I){return(0,u.m)(I)?(0,T.z)(O,I,1):(0,T.z)(O,1)}},8372:(F,z,x)=>{"use strict";x.d(z,{b:()=>O});var T=x(4986),u=x(4482),V=x(5403);function O(I,N=T.z){return(0,u.e)((W,Q)=>{let G=null,$=null,U=null;const te=()=>{if(G){G.unsubscribe(),G=null;const X=$;$=null,Q.next(X)}};function ne(){const X=U+I,ie=N.now();if(ie{$=X,U=N.now(),G||(G=N.schedule(ne,I),Q.add(G))},()=>{te(),Q.complete()},void 0,()=>{$=G=null}))})}},6590:(F,z,x)=>{"use strict";x.d(z,{d:()=>V});var T=x(4482),u=x(5403);function V(O){return(0,T.e)((I,N)=>{let W=!1;I.subscribe((0,u.x)(N,Q=>{W=!0,N.next(Q)},()=>{W||N.next(O),N.complete()}))})}},1005:(F,z,x)=>{"use strict";x.d(z,{g:()=>te});var T=x(4986),u=x(7272),V=x(5698),O=x(4482),I=x(5403),N=x(5032),Q=x(9718),G=x(5577);function $(ne,X){return X?ie=>(0,u.z)(X.pipe((0,V.q)(1),function W(){return(0,O.e)((ne,X)=>{ne.subscribe((0,I.x)(X,N.Z))})}()),ie.pipe($(ne))):(0,G.z)((ie,de)=>ne(ie,de).pipe((0,V.q)(1),(0,Q.h)(ie)))}var U=x(2805);function te(ne,X=T.z){const ie=(0,U.H)(ne,X);return $(()=>ie)}},9300:(F,z,x)=>{"use strict";x.d(z,{h:()=>V});var T=x(4482),u=x(5403);function V(O,I){return(0,T.e)((N,W)=>{let Q=0;N.subscribe((0,u.x)(W,G=>O.call(I,G,Q++)&&W.next(G)))})}},590:(F,z,x)=>{"use strict";x.d(z,{P:()=>W});var T=x(6805),u=x(9300),V=x(5698),O=x(6590),I=x(8068),N=x(4671);function W(Q,G){const $=arguments.length>=2;return U=>U.pipe(Q?(0,u.h)((te,ne)=>Q(te,ne,U)):N.y,(0,V.q)(1),$?(0,O.d)(G):(0,I.T)(()=>new T.K))}},4004:(F,z,x)=>{"use strict";x.d(z,{U:()=>V});var T=x(4482),u=x(5403);function V(O,I){return(0,T.e)((N,W)=>{let Q=0;N.subscribe((0,u.x)(W,G=>{W.next(O.call(I,G,Q++))}))})}},9718:(F,z,x)=>{"use strict";x.d(z,{h:()=>u});var T=x(4004);function u(V){return(0,T.U)(()=>V)}},8189:(F,z,x)=>{"use strict";x.d(z,{J:()=>V});var T=x(5577),u=x(4671);function V(O=1/0){return(0,T.z)(u.y,O)}},5577:(F,z,x)=>{"use strict";x.d(z,{z:()=>Q});var T=x(4004),u=x(8421),V=x(4482),O=x(9672),I=x(5403),W=x(576);function Q(G,$,U=1/0){return(0,W.m)($)?Q((te,ne)=>(0,T.U)((X,ie)=>$(te,X,ne,ie))((0,u.Xf)(G(te,ne))),U):("number"==typeof $&&(U=$),(0,V.e)((te,ne)=>function N(G,$,U,te,ne,X,ie,de){const he=[];let me=0,Ve=0,Be=!1;const we=()=>{Be&&!he.length&&!me&&$.complete()},_e=Ye=>me{X&&$.next(Ye),me++;let Me=!1;(0,u.Xf)(U(Ye,Ve++)).subscribe((0,I.x)($,Ee=>{ne?.(Ee),X?_e(Ee):$.next(Ee)},()=>{Me=!0},void 0,()=>{if(Me)try{for(me--;he.length&&meve(Ee)):ve(Ee)}we()}catch(Ee){$.error(Ee)}}))};return G.subscribe((0,I.x)($,_e,()=>{Be=!0,we()})),()=>{de?.()}}(te,ne,G,U)))}},3099:(F,z,x)=>{"use strict";x.d(z,{B:()=>I});var T=x(8421),u=x(7579),V=x(930),O=x(4482);function I(W={}){const{connector:Q=(()=>new u.x),resetOnError:G=!0,resetOnComplete:$=!0,resetOnRefCountZero:U=!0}=W;return te=>{let ne,X,ie,de=0,he=!1,me=!1;const Ve=()=>{X?.unsubscribe(),X=void 0},Be=()=>{Ve(),ne=ie=void 0,he=me=!1},we=()=>{const _e=ne;Be(),_e?.unsubscribe()};return(0,O.e)((_e,ve)=>{de++,!me&&!he&&Ve();const Ye=ie=ie??Q();ve.add(()=>{de--,0===de&&!me&&!he&&(X=N(we,U))}),Ye.subscribe(ve),!ne&&de>0&&(ne=new V.Hp({next:Me=>Ye.next(Me),error:Me=>{me=!0,Ve(),X=N(Be,G,Me),Ye.error(Me)},complete:()=>{he=!0,Ve(),X=N(Be,$),Ye.complete()}}),(0,T.Xf)(_e).subscribe(ne))})(te)}}function N(W,Q,...G){if(!0===Q)return void W();if(!1===Q)return;const $=new V.Hp({next:()=>{$.unsubscribe(),W()}});return Q(...G).subscribe($)}},3900:(F,z,x)=>{"use strict";x.d(z,{w:()=>O});var T=x(8421),u=x(4482),V=x(5403);function O(I,N){return(0,u.e)((W,Q)=>{let G=null,$=0,U=!1;const te=()=>U&&!G&&Q.complete();W.subscribe((0,V.x)(Q,ne=>{G?.unsubscribe();let X=0;const ie=$++;(0,T.Xf)(I(ne,ie)).subscribe(G=(0,V.x)(Q,de=>Q.next(N?N(ne,de,ie,X++):de),()=>{G=null,te()}))},()=>{U=!0,te()}))})}},5698:(F,z,x)=>{"use strict";x.d(z,{q:()=>O});var T=x(515),u=x(4482),V=x(5403);function O(I){return I<=0?()=>T.E:(0,u.e)((N,W)=>{let Q=0;N.subscribe((0,V.x)(W,G=>{++Q<=I&&(W.next(G),I<=Q&&W.complete())}))})}},8505:(F,z,x)=>{"use strict";x.d(z,{b:()=>I});var T=x(576),u=x(4482),V=x(5403),O=x(4671);function I(N,W,Q){const G=(0,T.m)(N)||W||Q?{next:N,error:W,complete:Q}:N;return G?(0,u.e)(($,U)=>{var te;null===(te=G.subscribe)||void 0===te||te.call(G);let ne=!0;$.subscribe((0,V.x)(U,X=>{var ie;null===(ie=G.next)||void 0===ie||ie.call(G,X),U.next(X)},()=>{var X;ne=!1,null===(X=G.complete)||void 0===X||X.call(G),U.complete()},X=>{var ie;ne=!1,null===(ie=G.error)||void 0===ie||ie.call(G,X),U.error(X)},()=>{var X,ie;ne&&(null===(X=G.unsubscribe)||void 0===X||X.call(G)),null===(ie=G.finalize)||void 0===ie||ie.call(G)}))}):O.y}},8068:(F,z,x)=>{"use strict";x.d(z,{T:()=>O});var T=x(6805),u=x(4482),V=x(5403);function O(N=I){return(0,u.e)((W,Q)=>{let G=!1;W.subscribe((0,V.x)(Q,$=>{G=!0,Q.next($)},()=>G?Q.complete():Q.error(N())))})}function I(){return new T.K}},7414:(F,z,x)=>{"use strict";x.d(z,{V:()=>G});var T=x(4986),u=x(1165),V=x(4482),O=x(8421),I=x(3888),N=x(5403),W=x(9672);const Q=(0,I.d)(U=>function(ne=null){U(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=ne});function G(U,te){const{first:ne,each:X,with:ie=$,scheduler:de=te??T.z,meta:he=null}=(0,u.q)(U)?{first:U}:"number"==typeof U?{each:U}:U;if(null==ne&&null==X)throw new TypeError("No timeout provided.");return(0,V.e)((me,Ve)=>{let Be,we,_e=null,ve=0;const Ye=Me=>{we=(0,W.f)(Ve,de,()=>{try{Be.unsubscribe(),(0,O.Xf)(ie({meta:he,lastValue:_e,seen:ve})).subscribe(Ve)}catch(Ee){Ve.error(Ee)}},Me)};Be=me.subscribe((0,N.x)(Ve,Me=>{we?.unsubscribe(),ve++,Ve.next(_e=Me),X>0&&Ye(X)},void 0,void 0,()=>{we?.closed||we?.unsubscribe(),_e=null})),!ve&&Ye(null!=ne?"number"==typeof ne?ne:+ne-de.now():X)})}function $(U){throw new Q(U)}},4408:(F,z,x)=>{"use strict";x.d(z,{o:()=>I});var T=x(727);class u extends T.w0{constructor(W,Q){super()}schedule(W,Q=0){return this}}const V={setInterval(N,W,...Q){const{delegate:G}=V;return G?.setInterval?G.setInterval(N,W,...Q):setInterval(N,W,...Q)},clearInterval(N){const{delegate:W}=V;return(W?.clearInterval||clearInterval)(N)},delegate:void 0};var O=x(8737);class I extends u{constructor(W,Q){super(W,Q),this.scheduler=W,this.work=Q,this.pending=!1}schedule(W,Q=0){if(this.closed)return this;this.state=W;const G=this.id,$=this.scheduler;return null!=G&&(this.id=this.recycleAsyncId($,G,Q)),this.pending=!0,this.delay=Q,this.id=this.id||this.requestAsyncId($,this.id,Q),this}requestAsyncId(W,Q,G=0){return V.setInterval(W.flush.bind(W,this),G)}recycleAsyncId(W,Q,G=0){if(null!=G&&this.delay===G&&!1===this.pending)return Q;V.clearInterval(Q)}execute(W,Q){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const G=this._execute(W,Q);if(G)return G;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(W,Q){let $,G=!1;try{this.work(W)}catch(U){G=!0,$=U||new Error("Scheduled action threw falsy error")}if(G)return this.unsubscribe(),$}unsubscribe(){if(!this.closed){const{id:W,scheduler:Q}=this,{actions:G}=Q;this.work=this.state=this.scheduler=null,this.pending=!1,(0,O.P)(G,this),null!=W&&(this.id=this.recycleAsyncId(Q,W,null)),this.delay=null,super.unsubscribe()}}}},7565:(F,z,x)=>{"use strict";x.d(z,{v:()=>V});var T=x(6063);class u{constructor(I,N=u.now){this.schedulerActionCtor=I,this.now=N}schedule(I,N=0,W){return new this.schedulerActionCtor(this,I).schedule(W,N)}}u.now=T.l.now;class V extends u{constructor(I,N=u.now){super(I,N),this.actions=[],this._active=!1,this._scheduled=void 0}flush(I){const{actions:N}=this;if(this._active)return void N.push(I);let W;this._active=!0;do{if(W=I.execute(I.state,I.delay))break}while(I=N.shift());if(this._active=!1,W){for(;I=N.shift();)I.unsubscribe();throw W}}}},4986:(F,z,x)=>{"use strict";x.d(z,{P:()=>O,z:()=>V});var T=x(4408);const V=new(x(7565).v)(T.o),O=V},6063:(F,z,x)=>{"use strict";x.d(z,{l:()=>T});const T={now:()=>(T.delegate||Date).now(),delegate:void 0}},3410:(F,z,x)=>{"use strict";x.d(z,{z:()=>T});const T={setTimeout(u,V,...O){const{delegate:I}=T;return I?.setTimeout?I.setTimeout(u,V,...O):setTimeout(u,V,...O)},clearTimeout(u){const{delegate:V}=T;return(V?.clearTimeout||clearTimeout)(u)},delegate:void 0}},2202:(F,z,x)=>{"use strict";x.d(z,{h:()=>u});const u=function T(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(F,z,x)=>{"use strict";x.d(z,{L:()=>T});const T="function"==typeof Symbol&&Symbol.observable||"@@observable"},6805:(F,z,x)=>{"use strict";x.d(z,{K:()=>u});const u=(0,x(3888).d)(V=>function(){V(this),this.name="EmptyError",this.message="no elements in sequence"})},3269:(F,z,x)=>{"use strict";x.d(z,{_6:()=>N,jO:()=>O,yG:()=>I});var T=x(576),u=x(3532);function V(W){return W[W.length-1]}function O(W){return(0,T.m)(V(W))?W.pop():void 0}function I(W){return(0,u.K)(V(W))?W.pop():void 0}function N(W,Q){return"number"==typeof V(W)?W.pop():Q}},4742:(F,z,x)=>{"use strict";x.d(z,{D:()=>I});const{isArray:T}=Array,{getPrototypeOf:u,prototype:V,keys:O}=Object;function I(W){if(1===W.length){const Q=W[0];if(T(Q))return{args:Q,keys:null};if(function N(W){return W&&"object"==typeof W&&u(W)===V}(Q)){const G=O(Q);return{args:G.map($=>Q[$]),keys:G}}}return{args:W,keys:null}}},8737:(F,z,x)=>{"use strict";function T(u,V){if(u){const O=u.indexOf(V);0<=O&&u.splice(O,1)}}x.d(z,{P:()=>T})},3888:(F,z,x)=>{"use strict";function T(u){const O=u(I=>{Error.call(I),I.stack=(new Error).stack});return O.prototype=Object.create(Error.prototype),O.prototype.constructor=O,O}x.d(z,{d:()=>T})},1810:(F,z,x)=>{"use strict";function T(u,V){return u.reduce((O,I,N)=>(O[I]=V[N],O),{})}x.d(z,{n:()=>T})},2806:(F,z,x)=>{"use strict";x.d(z,{O:()=>O,x:()=>V});var T=x(2416);let u=null;function V(I){if(T.v.useDeprecatedSynchronousErrorHandling){const N=!u;if(N&&(u={errorThrown:!1,error:null}),I(),N){const{errorThrown:W,error:Q}=u;if(u=null,W)throw Q}}else I()}function O(I){T.v.useDeprecatedSynchronousErrorHandling&&u&&(u.errorThrown=!0,u.error=I)}},9672:(F,z,x)=>{"use strict";function T(u,V,O,I=0,N=!1){const W=V.schedule(function(){O(),N?u.add(this.schedule(null,I)):this.unsubscribe()},I);if(u.add(W),!N)return W}x.d(z,{f:()=>T})},4671:(F,z,x)=>{"use strict";function T(u){return u}x.d(z,{y:()=>T})},1144:(F,z,x)=>{"use strict";x.d(z,{z:()=>T});const T=u=>u&&"number"==typeof u.length&&"function"!=typeof u},2206:(F,z,x)=>{"use strict";x.d(z,{D:()=>u});var T=x(576);function u(V){return Symbol.asyncIterator&&(0,T.m)(V?.[Symbol.asyncIterator])}},1165:(F,z,x)=>{"use strict";function T(u){return u instanceof Date&&!isNaN(u)}x.d(z,{q:()=>T})},576:(F,z,x)=>{"use strict";function T(u){return"function"==typeof u}x.d(z,{m:()=>T})},3670:(F,z,x)=>{"use strict";x.d(z,{c:()=>V});var T=x(8822),u=x(576);function V(O){return(0,u.m)(O[T.L])}},6495:(F,z,x)=>{"use strict";x.d(z,{T:()=>V});var T=x(2202),u=x(576);function V(O){return(0,u.m)(O?.[T.h])}},8239:(F,z,x)=>{"use strict";x.d(z,{t:()=>u});var T=x(576);function u(V){return(0,T.m)(V?.then)}},3260:(F,z,x)=>{"use strict";x.d(z,{L:()=>O,Q:()=>V});var T=x(655),u=x(576);function V(I){return(0,T.FC)(this,arguments,function*(){const W=I.getReader();try{for(;;){const{value:Q,done:G}=yield(0,T.qq)(W.read());if(G)return yield(0,T.qq)(void 0);yield yield(0,T.qq)(Q)}}finally{W.releaseLock()}})}function O(I){return(0,u.m)(I?.getReader)}},3532:(F,z,x)=>{"use strict";x.d(z,{K:()=>u});var T=x(576);function u(V){return V&&(0,T.m)(V.schedule)}},4482:(F,z,x)=>{"use strict";x.d(z,{A:()=>u,e:()=>V});var T=x(576);function u(O){return(0,T.m)(O?.lift)}function V(O){return I=>{if(u(I))return I.lift(function(N){try{return O(N,this)}catch(W){this.error(W)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(F,z,x)=>{"use strict";x.d(z,{Z:()=>O});var T=x(4004);const{isArray:u}=Array;function O(I){return(0,T.U)(N=>function V(I,N){return u(N)?I(...N):I(N)}(I,N))}},5032:(F,z,x)=>{"use strict";function T(){}x.d(z,{Z:()=>T})},9635:(F,z,x)=>{"use strict";x.d(z,{U:()=>V,z:()=>u});var T=x(4671);function u(...O){return V(O)}function V(O){return 0===O.length?T.y:1===O.length?O[0]:function(N){return O.reduce((W,Q)=>Q(W),N)}}},7849:(F,z,x)=>{"use strict";x.d(z,{h:()=>V});var T=x(2416),u=x(3410);function V(O){u.z.setTimeout(()=>{const{onUnhandledError:I}=T.v;if(!I)throw O;I(O)})}},4532:(F,z,x)=>{"use strict";function T(u){return new TypeError(`You provided ${null!==u&&"object"==typeof u?"an invalid object":`'${u}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}x.d(z,{z:()=>T})},655:(F,z,x)=>{"use strict";function Q(oe,se,fe,ue){return new(fe||(fe=Promise))(function(He,ot){function Tt(Mi){try{Le(ue.next(Mi))}catch(Un){ot(Un)}}function kt(Mi){try{Le(ue.throw(Mi))}catch(Un){ot(Un)}}function Le(Mi){Mi.done?He(Mi.value):function Re(He){return He instanceof fe?He:new fe(function(ot){ot(He)})}(Mi.value).then(Tt,kt)}Le((ue=ue.apply(oe,se||[])).next())})}function he(oe){return this instanceof he?(this.v=oe,this):new he(oe)}function me(oe,se,fe){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Re,ue=fe.apply(oe,se||[]),He=[];return Re={},ot("next"),ot("throw"),ot("return"),Re[Symbol.asyncIterator]=function(){return this},Re;function ot(Ut){ue[Ut]&&(Re[Ut]=function(Dt){return new Promise(function(Mn,li){He.push([Ut,Dt,Mn,li])>1||Tt(Ut,Dt)})})}function Tt(Ut,Dt){try{!function kt(Ut){Ut.value instanceof he?Promise.resolve(Ut.value.v).then(Le,Mi):Un(He[0][2],Ut)}(ue[Ut](Dt))}catch(Mn){Un(He[0][3],Mn)}}function Le(Ut){Tt("next",Ut)}function Mi(Ut){Tt("throw",Ut)}function Un(Ut,Dt){Ut(Dt),He.shift(),He.length&&Tt(He[0][0],He[0][1])}}function Be(oe){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var fe,se=oe[Symbol.asyncIterator];return se?se.call(oe):(oe=function te(oe){var se="function"==typeof Symbol&&Symbol.iterator,fe=se&&oe[se],ue=0;if(fe)return fe.call(oe);if(oe&&"number"==typeof oe.length)return{next:function(){return oe&&ue>=oe.length&&(oe=void 0),{value:oe&&oe[ue++],done:!oe}}};throw new TypeError(se?"Object is not iterable.":"Symbol.iterator is not defined.")}(oe),fe={},ue("next"),ue("throw"),ue("return"),fe[Symbol.asyncIterator]=function(){return this},fe);function ue(He){fe[He]=oe[He]&&function(ot){return new Promise(function(Tt,kt){!function Re(He,ot,Tt,kt){Promise.resolve(kt).then(function(Le){He({value:Le,done:Tt})},ot)}(Tt,kt,(ot=oe[He](ot)).done,ot.value)})}}}x.d(z,{FC:()=>me,KL:()=>Be,mG:()=>Q,qq:()=>he})},6895:(F,z,x)=>{"use strict";x.d(z,{Do:()=>Be,EM:()=>Ba,HT:()=>I,JF:()=>bt,K0:()=>W,Mx:()=>pc,NF:()=>Rs,O5:()=>Ri,Ov:()=>Sf,PC:()=>Ef,RF:()=>Zr,S$:()=>he,V_:()=>$,Ye:()=>we,b0:()=>Ve,bD:()=>ii,ez:()=>_n,mk:()=>fc,n9:()=>tn,q:()=>V,sg:()=>mn,w_:()=>N});var T=x(4650);let u=null;function V(){return u}function I(M){u||(u=M)}class N{}const W=new T.OlP("DocumentToken");let Q=(()=>{class M{historyGo(D){throw new Error("Not implemented")}}return M.\u0275fac=function(D){return new(D||M)},M.\u0275prov=T.Yz7({token:M,factory:function(){return function G(){return(0,T.LFG)(U)}()},providedIn:"platform"}),M})();const $=new T.OlP("Location Initialized");let U=(()=>{class M extends Q{constructor(D){super(),this._doc=D,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return V().getBaseHref(this._doc)}onPopState(D){const B=V().getGlobalEventTarget(this._doc,"window");return B.addEventListener("popstate",D,!1),()=>B.removeEventListener("popstate",D)}onHashChange(D){const B=V().getGlobalEventTarget(this._doc,"window");return B.addEventListener("hashchange",D,!1),()=>B.removeEventListener("hashchange",D)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(D){this.location.pathname=D}pushState(D,B,ee){te()?this._history.pushState(D,B,ee):this.location.hash=ee}replaceState(D,B,ee){te()?this._history.replaceState(D,B,ee):this.location.hash=ee}forward(){this._history.forward()}back(){this._history.back()}historyGo(D=0){this._history.go(D)}getState(){return this._history.state}}return M.\u0275fac=function(D){return new(D||M)(T.LFG(W))},M.\u0275prov=T.Yz7({token:M,factory:function(){return function ne(){return new U((0,T.LFG)(W))}()},providedIn:"platform"}),M})();function te(){return!!window.history.pushState}function X(M,k){if(0==M.length)return k;if(0==k.length)return M;let D=0;return M.endsWith("/")&&D++,k.startsWith("/")&&D++,2==D?M+k.substring(1):1==D?M+k:M+"/"+k}function ie(M){const k=M.match(/#|\?|$/),D=k&&k.index||M.length;return M.slice(0,D-("/"===M[D-1]?1:0))+M.slice(D)}function de(M){return M&&"?"!==M[0]?"?"+M:M}let he=(()=>{class M{historyGo(D){throw new Error("Not implemented")}}return M.\u0275fac=function(D){return new(D||M)},M.\u0275prov=T.Yz7({token:M,factory:function(){return(0,T.f3M)(Ve)},providedIn:"root"}),M})();const me=new T.OlP("appBaseHref");let Ve=(()=>{class M extends he{constructor(D,B){super(),this._platformLocation=D,this._removeListenerFns=[],this._baseHref=B??this._platformLocation.getBaseHrefFromDOM()??(0,T.f3M)(W).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(D){this._removeListenerFns.push(this._platformLocation.onPopState(D),this._platformLocation.onHashChange(D))}getBaseHref(){return this._baseHref}prepareExternalUrl(D){return X(this._baseHref,D)}path(D=!1){const B=this._platformLocation.pathname+de(this._platformLocation.search),ee=this._platformLocation.hash;return ee&&D?`${B}${ee}`:B}pushState(D,B,ee,pe){const le=this.prepareExternalUrl(ee+de(pe));this._platformLocation.pushState(D,B,le)}replaceState(D,B,ee,pe){const le=this.prepareExternalUrl(ee+de(pe));this._platformLocation.replaceState(D,B,le)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(D=0){this._platformLocation.historyGo?.(D)}}return M.\u0275fac=function(D){return new(D||M)(T.LFG(Q),T.LFG(me,8))},M.\u0275prov=T.Yz7({token:M,factory:M.\u0275fac,providedIn:"root"}),M})(),Be=(()=>{class M extends he{constructor(D,B){super(),this._platformLocation=D,this._baseHref="",this._removeListenerFns=[],null!=B&&(this._baseHref=B)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(D){this._removeListenerFns.push(this._platformLocation.onPopState(D),this._platformLocation.onHashChange(D))}getBaseHref(){return this._baseHref}path(D=!1){let B=this._platformLocation.hash;return null==B&&(B="#"),B.length>0?B.substring(1):B}prepareExternalUrl(D){const B=X(this._baseHref,D);return B.length>0?"#"+B:B}pushState(D,B,ee,pe){let le=this.prepareExternalUrl(ee+de(pe));0==le.length&&(le=this._platformLocation.pathname),this._platformLocation.pushState(D,B,le)}replaceState(D,B,ee,pe){let le=this.prepareExternalUrl(ee+de(pe));0==le.length&&(le=this._platformLocation.pathname),this._platformLocation.replaceState(D,B,le)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(D=0){this._platformLocation.historyGo?.(D)}}return M.\u0275fac=function(D){return new(D||M)(T.LFG(Q),T.LFG(me,8))},M.\u0275prov=T.Yz7({token:M,factory:M.\u0275fac}),M})(),we=(()=>{class M{constructor(D){this._subject=new T.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=D;const B=this._locationStrategy.getBaseHref();this._baseHref=ie(Ye(B)),this._locationStrategy.onPopState(ee=>{this._subject.emit({url:this.path(!0),pop:!0,state:ee.state,type:ee.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(D=!1){return this.normalize(this._locationStrategy.path(D))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(D,B=""){return this.path()==this.normalize(D+de(B))}normalize(D){return M.stripTrailingSlash(function ve(M,k){return M&&k.startsWith(M)?k.substring(M.length):k}(this._baseHref,Ye(D)))}prepareExternalUrl(D){return D&&"/"!==D[0]&&(D="/"+D),this._locationStrategy.prepareExternalUrl(D)}go(D,B="",ee=null){this._locationStrategy.pushState(ee,"",D,B),this._notifyUrlChangeListeners(this.prepareExternalUrl(D+de(B)),ee)}replaceState(D,B="",ee=null){this._locationStrategy.replaceState(ee,"",D,B),this._notifyUrlChangeListeners(this.prepareExternalUrl(D+de(B)),ee)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(D=0){this._locationStrategy.historyGo?.(D)}onUrlChange(D){return this._urlChangeListeners.push(D),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(B=>{this._notifyUrlChangeListeners(B.url,B.state)})),()=>{const B=this._urlChangeListeners.indexOf(D);this._urlChangeListeners.splice(B,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(D="",B){this._urlChangeListeners.forEach(ee=>ee(D,B))}subscribe(D,B,ee){return this._subject.subscribe({next:D,error:B,complete:ee})}}return M.normalizeQueryParams=de,M.joinWithSlash=X,M.stripTrailingSlash=ie,M.\u0275fac=function(D){return new(D||M)(T.LFG(he))},M.\u0275prov=T.Yz7({token:M,factory:function(){return function _e(){return new we((0,T.LFG)(he))}()},providedIn:"root"}),M})();function Ye(M){return M.replace(/\/index.html$/,"")}function pc(M,k){k=encodeURIComponent(k);for(const D of M.split(";")){const B=D.indexOf("="),[ee,pe]=-1==B?[D,""]:[D.slice(0,B),D.slice(B+1)];if(ee.trim()===k)return decodeURIComponent(pe)}return null}let fc=(()=>{class M{constructor(D,B,ee,pe){this._iterableDiffers=D,this._keyValueDiffers=B,this._ngEl=ee,this._renderer=pe,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(D){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof D?D.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(D){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof D?D.split(/\s+/):D,this._rawClass&&((0,T.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const D=this._iterableDiffer.diff(this._rawClass);D&&this._applyIterableChanges(D)}else if(this._keyValueDiffer){const D=this._keyValueDiffer.diff(this._rawClass);D&&this._applyKeyValueChanges(D)}}_applyKeyValueChanges(D){D.forEachAddedItem(B=>this._toggleClass(B.key,B.currentValue)),D.forEachChangedItem(B=>this._toggleClass(B.key,B.currentValue)),D.forEachRemovedItem(B=>{B.previousValue&&this._toggleClass(B.key,!1)})}_applyIterableChanges(D){D.forEachAddedItem(B=>{if("string"!=typeof B.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,T.AaK)(B.item)}`);this._toggleClass(B.item,!0)}),D.forEachRemovedItem(B=>this._toggleClass(B.item,!1))}_applyClasses(D){D&&(Array.isArray(D)||D instanceof Set?D.forEach(B=>this._toggleClass(B,!0)):Object.keys(D).forEach(B=>this._toggleClass(B,!!D[B])))}_removeClasses(D){D&&(Array.isArray(D)||D instanceof Set?D.forEach(B=>this._toggleClass(B,!1)):Object.keys(D).forEach(B=>this._toggleClass(B,!1)))}_toggleClass(D,B){(D=D.trim())&&D.split(/\s+/g).forEach(ee=>{B?this._renderer.addClass(this._ngEl.nativeElement,ee):this._renderer.removeClass(this._ngEl.nativeElement,ee)})}}return M.\u0275fac=function(D){return new(D||M)(T.Y36(T.ZZ4),T.Y36(T.aQg),T.Y36(T.SBq),T.Y36(T.Qsj))},M.\u0275dir=T.lG2({type:M,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),M})();class Kr{constructor(k,D,B,ee){this.$implicit=k,this.ngForOf=D,this.index=B,this.count=ee}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 mn=(()=>{class M{constructor(D,B,ee){this._viewContainer=D,this._template=B,this._differs=ee,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(D){this._ngForOf=D,this._ngForOfDirty=!0}set ngForTrackBy(D){this._trackByFn=D}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(D){D&&(this._template=D)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const D=this._ngForOf;!this._differ&&D&&(this._differ=this._differs.find(D).create(this.ngForTrackBy))}if(this._differ){const D=this._differ.diff(this._ngForOf);D&&this._applyChanges(D)}}_applyChanges(D){const B=this._viewContainer;D.forEachOperation((ee,pe,le)=>{if(null==ee.previousIndex)B.createEmbeddedView(this._template,new Kr(ee.item,this._ngForOf,-1,-1),null===le?void 0:le);else if(null==le)B.remove(null===pe?void 0:pe);else if(null!==pe){const Ue=B.get(pe);B.move(Ue,le),_i(Ue,ee)}});for(let ee=0,pe=B.length;ee{_i(B.get(ee.currentIndex),ee)})}static ngTemplateContextGuard(D,B){return!0}}return M.\u0275fac=function(D){return new(D||M)(T.Y36(T.s_b),T.Y36(T.Rgc),T.Y36(T.ZZ4))},M.\u0275dir=T.lG2({type:M,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),M})();function _i(M,k){M.context.$implicit=k.item}let Ri=(()=>{class M{constructor(D,B){this._viewContainer=D,this._context=new gn,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=B}set ngIf(D){this._context.$implicit=this._context.ngIf=D,this._updateView()}set ngIfThen(D){Ps("ngIfThen",D),this._thenTemplateRef=D,this._thenViewRef=null,this._updateView()}set ngIfElse(D){Ps("ngIfElse",D),this._elseTemplateRef=D,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(D,B){return!0}}return M.\u0275fac=function(D){return new(D||M)(T.Y36(T.s_b),T.Y36(T.Rgc))},M.\u0275dir=T.lG2({type:M,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),M})();class gn{constructor(){this.$implicit=null,this.ngIf=null}}function Ps(M,k){if(k&&!k.createEmbeddedView)throw new Error(`${M} must be a TemplateRef, but received '${(0,T.AaK)(k)}'.`)}class Va{constructor(k,D){this._viewContainerRef=k,this._templateRef=D,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(k){k&&!this._created?this.create():!k&&this._created&&this.destroy()}}let Zr=(()=>{class M{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(D){this._ngSwitch=D,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(D){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(D)}_matchCase(D){const B=D==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||B,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),B}_updateDefaultCases(D){if(this._defaultViews&&D!==this._defaultUsed){this._defaultUsed=D;for(let B=0;B{class M{constructor(D,B,ee){this.ngSwitch=ee,ee._addCase(),this._view=new Va(D,B)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return M.\u0275fac=function(D){return new(D||M)(T.Y36(T.s_b),T.Y36(T.Rgc),T.Y36(Zr,9))},M.\u0275dir=T.lG2({type:M,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),M})(),Ef=(()=>{class M{constructor(D,B,ee){this._ngEl=D,this._differs=B,this._renderer=ee,this._ngStyle=null,this._differ=null}set ngStyle(D){this._ngStyle=D,!this._differ&&D&&(this._differ=this._differs.find(D).create())}ngDoCheck(){if(this._differ){const D=this._differ.diff(this._ngStyle);D&&this._applyChanges(D)}}_setStyle(D,B){const[ee,pe]=D.split("."),le=-1===ee.indexOf("-")?void 0:T.JOm.DashCase;null!=B?this._renderer.setStyle(this._ngEl.nativeElement,ee,pe?`${B}${pe}`:B,le):this._renderer.removeStyle(this._ngEl.nativeElement,ee,le)}_applyChanges(D){D.forEachRemovedItem(B=>this._setStyle(B.key,null)),D.forEachAddedItem(B=>this._setStyle(B.key,B.currentValue)),D.forEachChangedItem(B=>this._setStyle(B.key,B.currentValue))}}return M.\u0275fac=function(D){return new(D||M)(T.Y36(T.SBq),T.Y36(T.aQg),T.Y36(T.Qsj))},M.\u0275dir=T.lG2({type:M,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),M})();class zC{createSubscription(k,D){return k.subscribe({next:D,error:B=>{throw B}})}dispose(k){k.unsubscribe()}}class UC{createSubscription(k,D){return k.then(D,B=>{throw B})}dispose(k){}}const GC=new UC,qC=new zC;let Sf=(()=>{class M{constructor(D){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=D}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(D){return this._obj?D!==this._obj?(this._dispose(),this.transform(D)):this._latestValue:(D&&this._subscribe(D),this._latestValue)}_subscribe(D){this._obj=D,this._strategy=this._selectStrategy(D),this._subscription=this._strategy.createSubscription(D,B=>this._updateLatestValue(D,B))}_selectStrategy(D){if((0,T.QGY)(D))return GC;if((0,T.F4k)(D))return qC;throw function Hn(M,k){return new T.vHH(2100,!1)}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(D,B){D===this._obj&&(this._latestValue=B,this._ref.markForCheck())}}return M.\u0275fac=function(D){return new(D||M)(T.Y36(T.sBO,16))},M.\u0275pipe=T.Yjl({name:"async",type:M,pure:!1,standalone:!0}),M})(),_n=(()=>{class M{}return M.\u0275fac=function(D){return new(D||M)},M.\u0275mod=T.oAB({type:M}),M.\u0275inj=T.cJS({}),M})();const ii="browser";function Rs(M){return M===ii}let Ba=(()=>{class M{}return M.\u0275prov=(0,T.Yz7)({token:M,providedIn:"root",factory:()=>new It((0,T.LFG)(W),window)}),M})();class It{constructor(k,D){this.document=k,this.window=D,this.offset=()=>[0,0]}setOffset(k){this.offset=Array.isArray(k)?()=>k:k}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(k){this.supportsScrolling()&&this.window.scrollTo(k[0],k[1])}scrollToAnchor(k){if(!this.supportsScrolling())return;const D=function bn(M,k){const D=M.getElementById(k)||M.getElementsByName(k)[0];if(D)return D;if("function"==typeof M.createTreeWalker&&M.body&&(M.body.createShadowRoot||M.body.attachShadow)){const B=M.createTreeWalker(M.body,NodeFilter.SHOW_ELEMENT);let ee=B.currentNode;for(;ee;){const pe=ee.shadowRoot;if(pe){const le=pe.getElementById(k)||pe.querySelector(`[name="${k}"]`);if(le)return le}ee=B.nextNode()}}return null}(this.document,k);D&&(this.scrollToElement(D),D.focus())}setHistoryScrollRestoration(k){if(this.supportScrollRestoration()){const D=this.window.history;D&&D.scrollRestoration&&(D.scrollRestoration=k)}}scrollToElement(k){const D=k.getBoundingClientRect(),B=D.left+this.window.pageXOffset,ee=D.top+this.window.pageYOffset,pe=this.offset();this.window.scrollTo(B-pe[0],ee-pe[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const k=xi(this.window.history)||xi(Object.getPrototypeOf(this.window.history));return!(!k||!k.writable&&!k.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function xi(M){return Object.getOwnPropertyDescriptor(M,"scrollRestoration")}class bt{}},529:(F,z,x)=>{"use strict";x.d(z,{JF:()=>pu,LE:()=>me,TP:()=>Tt,WM:()=>$,Zn:()=>fe,eN:()=>He,qT:()=>Be});var T=x(6895),u=x(4650),V=x(9646),O=x(9751),I=x(4351),N=x(9300),W=x(4004);class Q{}class G{}class ${constructor(Y){this.normalizedNames=new Map,this.lazyUpdate=null,Y?this.lazyInit="string"==typeof Y?()=>{this.headers=new Map,Y.split("\n").forEach(q=>{const ce=q.indexOf(":");if(ce>0){const xe=q.slice(0,ce),tt=xe.toLowerCase(),dt=q.slice(ce+1).trim();this.maybeSetNormalizedName(xe,tt),this.headers.has(tt)?this.headers.get(tt).push(dt):this.headers.set(tt,[dt])}})}:()=>{this.headers=new Map,Object.keys(Y).forEach(q=>{let ce=Y[q];const xe=q.toLowerCase();"string"==typeof ce&&(ce=[ce]),ce.length>0&&(this.headers.set(xe,ce),this.maybeSetNormalizedName(q,xe))})}:this.headers=new Map}has(Y){return this.init(),this.headers.has(Y.toLowerCase())}get(Y){this.init();const q=this.headers.get(Y.toLowerCase());return q&&q.length>0?q[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(Y){return this.init(),this.headers.get(Y.toLowerCase())||null}append(Y,q){return this.clone({name:Y,value:q,op:"a"})}set(Y,q){return this.clone({name:Y,value:q,op:"s"})}delete(Y,q){return this.clone({name:Y,value:q,op:"d"})}maybeSetNormalizedName(Y,q){this.normalizedNames.has(q)||this.normalizedNames.set(q,Y)}init(){this.lazyInit&&(this.lazyInit instanceof $?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(Y=>this.applyUpdate(Y)),this.lazyUpdate=null))}copyFrom(Y){Y.init(),Array.from(Y.headers.keys()).forEach(q=>{this.headers.set(q,Y.headers.get(q)),this.normalizedNames.set(q,Y.normalizedNames.get(q))})}clone(Y){const q=new $;return q.lazyInit=this.lazyInit&&this.lazyInit instanceof $?this.lazyInit:this,q.lazyUpdate=(this.lazyUpdate||[]).concat([Y]),q}applyUpdate(Y){const q=Y.name.toLowerCase();switch(Y.op){case"a":case"s":let ce=Y.value;if("string"==typeof ce&&(ce=[ce]),0===ce.length)return;this.maybeSetNormalizedName(Y.name,q);const xe=("a"===Y.op?this.headers.get(q):void 0)||[];xe.push(...ce),this.headers.set(q,xe);break;case"d":const tt=Y.value;if(tt){let dt=this.headers.get(q);if(!dt)return;dt=dt.filter(je=>-1===tt.indexOf(je)),0===dt.length?(this.headers.delete(q),this.normalizedNames.delete(q)):this.headers.set(q,dt)}else this.headers.delete(q),this.normalizedNames.delete(q)}}forEach(Y){this.init(),Array.from(this.normalizedNames.keys()).forEach(q=>Y(this.normalizedNames.get(q),this.headers.get(q)))}}class te{encodeKey(Y){return de(Y)}encodeValue(Y){return de(Y)}decodeKey(Y){return decodeURIComponent(Y)}decodeValue(Y){return decodeURIComponent(Y)}}const X=/%(\d[a-f0-9])/gi,ie={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function de(Ce){return encodeURIComponent(Ce).replace(X,(Y,q)=>ie[q]??Y)}function he(Ce){return`${Ce}`}class me{constructor(Y={}){if(this.updates=null,this.cloneFrom=null,this.encoder=Y.encoder||new te,Y.fromString){if(Y.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function ne(Ce,Y){const q=new Map;return Ce.length>0&&Ce.replace(/^\?/,"").split("&").forEach(xe=>{const tt=xe.indexOf("="),[dt,je]=-1==tt?[Y.decodeKey(xe),""]:[Y.decodeKey(xe.slice(0,tt)),Y.decodeValue(xe.slice(tt+1))],Ke=q.get(dt)||[];Ke.push(je),q.set(dt,Ke)}),q}(Y.fromString,this.encoder)}else Y.fromObject?(this.map=new Map,Object.keys(Y.fromObject).forEach(q=>{const ce=Y.fromObject[q],xe=Array.isArray(ce)?ce.map(he):[he(ce)];this.map.set(q,xe)})):this.map=null}has(Y){return this.init(),this.map.has(Y)}get(Y){this.init();const q=this.map.get(Y);return q?q[0]:null}getAll(Y){return this.init(),this.map.get(Y)||null}keys(){return this.init(),Array.from(this.map.keys())}append(Y,q){return this.clone({param:Y,value:q,op:"a"})}appendAll(Y){const q=[];return Object.keys(Y).forEach(ce=>{const xe=Y[ce];Array.isArray(xe)?xe.forEach(tt=>{q.push({param:ce,value:tt,op:"a"})}):q.push({param:ce,value:xe,op:"a"})}),this.clone(q)}set(Y,q){return this.clone({param:Y,value:q,op:"s"})}delete(Y,q){return this.clone({param:Y,value:q,op:"d"})}toString(){return this.init(),this.keys().map(Y=>{const q=this.encoder.encodeKey(Y);return this.map.get(Y).map(ce=>q+"="+this.encoder.encodeValue(ce)).join("&")}).filter(Y=>""!==Y).join("&")}clone(Y){const q=new me({encoder:this.encoder});return q.cloneFrom=this.cloneFrom||this,q.updates=(this.updates||[]).concat(Y),q}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(Y=>this.map.set(Y,this.cloneFrom.map.get(Y))),this.updates.forEach(Y=>{switch(Y.op){case"a":case"s":const q=("a"===Y.op?this.map.get(Y.param):void 0)||[];q.push(he(Y.value)),this.map.set(Y.param,q);break;case"d":if(void 0===Y.value){this.map.delete(Y.param);break}{let ce=this.map.get(Y.param)||[];const xe=ce.indexOf(he(Y.value));-1!==xe&&ce.splice(xe,1),ce.length>0?this.map.set(Y.param,ce):this.map.delete(Y.param)}}}),this.cloneFrom=this.updates=null)}}class Be{constructor(){this.map=new Map}set(Y,q){return this.map.set(Y,q),this}get(Y){return this.map.has(Y)||this.map.set(Y,Y.defaultValue()),this.map.get(Y)}delete(Y){return this.map.delete(Y),this}has(Y){return this.map.has(Y)}keys(){return this.map.keys()}}function _e(Ce){return typeof ArrayBuffer<"u"&&Ce instanceof ArrayBuffer}function ve(Ce){return typeof Blob<"u"&&Ce instanceof Blob}function Ye(Ce){return typeof FormData<"u"&&Ce instanceof FormData}class Ee{constructor(Y,q,ce,xe){let tt;if(this.url=q,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=Y.toUpperCase(),function we(Ce){switch(Ce){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||xe?(this.body=void 0!==ce?ce:null,tt=xe):tt=ce,tt&&(this.reportProgress=!!tt.reportProgress,this.withCredentials=!!tt.withCredentials,tt.responseType&&(this.responseType=tt.responseType),tt.headers&&(this.headers=tt.headers),tt.context&&(this.context=tt.context),tt.params&&(this.params=tt.params)),this.headers||(this.headers=new $),this.context||(this.context=new Be),this.params){const dt=this.params.toString();if(0===dt.length)this.urlWithParams=q;else{const je=q.indexOf("?");this.urlWithParams=q+(-1===je?"?":jeen.set(it,Y.setHeaders[it]),Ke)),Y.setParams&&(ei=Object.keys(Y.setParams).reduce((en,it)=>en.set(it,Y.setParams[it]),ei)),new Ee(q,ce,tt,{params:ei,headers:Ke,context:vt,reportProgress:je,responseType:xe,withCredentials:dt})}}var Te=(()=>((Te=Te||{})[Te.Sent=0]="Sent",Te[Te.UploadProgress=1]="UploadProgress",Te[Te.ResponseHeader=2]="ResponseHeader",Te[Te.DownloadProgress=3]="DownloadProgress",Te[Te.Response=4]="Response",Te[Te.User=5]="User",Te))();class oe{constructor(Y,q=200,ce="OK"){this.headers=Y.headers||new $,this.status=void 0!==Y.status?Y.status:q,this.statusText=Y.statusText||ce,this.url=Y.url||null,this.ok=this.status>=200&&this.status<300}}class se extends oe{constructor(Y={}){super(Y),this.type=Te.ResponseHeader}clone(Y={}){return new se({headers:Y.headers||this.headers,status:void 0!==Y.status?Y.status:this.status,statusText:Y.statusText||this.statusText,url:Y.url||this.url||void 0})}}class fe extends oe{constructor(Y={}){super(Y),this.type=Te.Response,this.body=void 0!==Y.body?Y.body:null}clone(Y={}){return new fe({body:void 0!==Y.body?Y.body:this.body,headers:Y.headers||this.headers,status:void 0!==Y.status?Y.status:this.status,statusText:Y.statusText||this.statusText,url:Y.url||this.url||void 0})}}class ue extends oe{constructor(Y){super(Y,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${Y.url||"(unknown url)"}`:`Http failure response for ${Y.url||"(unknown url)"}: ${Y.status} ${Y.statusText}`,this.error=Y.error||null}}function Re(Ce,Y){return{body:Y,headers:Ce.headers,context:Ce.context,observe:Ce.observe,params:Ce.params,reportProgress:Ce.reportProgress,responseType:Ce.responseType,withCredentials:Ce.withCredentials}}let He=(()=>{class Ce{constructor(q){this.handler=q}request(q,ce,xe={}){let tt;if(q instanceof Ee)tt=q;else{let Ke,ei;Ke=xe.headers instanceof $?xe.headers:new $(xe.headers),xe.params&&(ei=xe.params instanceof me?xe.params:new me({fromObject:xe.params})),tt=new Ee(q,ce,void 0!==xe.body?xe.body:null,{headers:Ke,context:xe.context,params:ei,reportProgress:xe.reportProgress,responseType:xe.responseType||"json",withCredentials:xe.withCredentials})}const dt=(0,V.of)(tt).pipe((0,I.b)(Ke=>this.handler.handle(Ke)));if(q instanceof Ee||"events"===xe.observe)return dt;const je=dt.pipe((0,N.h)(Ke=>Ke instanceof fe));switch(xe.observe||"body"){case"body":switch(tt.responseType){case"arraybuffer":return je.pipe((0,W.U)(Ke=>{if(null!==Ke.body&&!(Ke.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Ke.body}));case"blob":return je.pipe((0,W.U)(Ke=>{if(null!==Ke.body&&!(Ke.body instanceof Blob))throw new Error("Response is not a Blob.");return Ke.body}));case"text":return je.pipe((0,W.U)(Ke=>{if(null!==Ke.body&&"string"!=typeof Ke.body)throw new Error("Response is not a string.");return Ke.body}));default:return je.pipe((0,W.U)(Ke=>Ke.body))}case"response":return je;default:throw new Error(`Unreachable: unhandled observe type ${xe.observe}}`)}}delete(q,ce={}){return this.request("DELETE",q,ce)}get(q,ce={}){return this.request("GET",q,ce)}head(q,ce={}){return this.request("HEAD",q,ce)}jsonp(q,ce){return this.request("JSONP",q,{params:(new me).append(ce,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(q,ce={}){return this.request("OPTIONS",q,ce)}patch(q,ce,xe={}){return this.request("PATCH",q,Re(xe,ce))}post(q,ce,xe={}){return this.request("POST",q,Re(xe,ce))}put(q,ce,xe={}){return this.request("PUT",q,Re(xe,ce))}}return Ce.\u0275fac=function(q){return new(q||Ce)(u.LFG(Q))},Ce.\u0275prov=u.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})();class ot{constructor(Y,q){this.next=Y,this.interceptor=q}handle(Y){return this.interceptor.intercept(Y,this.next)}}const Tt=new u.OlP("HTTP_INTERCEPTORS");let kt=(()=>{class Ce{intercept(q,ce){return ce.handle(q)}}return Ce.\u0275fac=function(q){return new(q||Ce)},Ce.\u0275prov=u.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})();const So=/^\)\]\}',?\n/;let Mo=(()=>{class Ce{constructor(q){this.xhrFactory=q}handle(q){if("JSONP"===q.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new O.y(ce=>{const xe=this.xhrFactory.build();if(xe.open(q.method,q.urlWithParams),q.withCredentials&&(xe.withCredentials=!0),q.headers.forEach((Ht,Bt)=>xe.setRequestHeader(Ht,Bt.join(","))),q.headers.has("Accept")||xe.setRequestHeader("Accept","application/json, text/plain, */*"),!q.headers.has("Content-Type")){const Ht=q.detectContentTypeHeader();null!==Ht&&xe.setRequestHeader("Content-Type",Ht)}if(q.responseType){const Ht=q.responseType.toLowerCase();xe.responseType="json"!==Ht?Ht:"text"}const tt=q.serializeBody();let dt=null;const je=()=>{if(null!==dt)return dt;const Ht=xe.statusText||"OK",Bt=new $(xe.getAllResponseHeaders()),fn=function hu(Ce){return"responseURL"in Ce&&Ce.responseURL?Ce.responseURL:/^X-Request-URL:/m.test(Ce.getAllResponseHeaders())?Ce.getResponseHeader("X-Request-URL"):null}(xe)||q.url;return dt=new se({headers:Bt,status:xe.status,statusText:Ht,url:fn}),dt},Ke=()=>{let{headers:Ht,status:Bt,statusText:fn,url:_r}=je(),mi=null;204!==Bt&&(mi=typeof xe.response>"u"?xe.responseText:xe.response),0===Bt&&(Bt=mi?200:0);let Wr=Bt>=200&&Bt<300;if("json"===q.responseType&&"string"==typeof mi){const $r=mi;mi=mi.replace(So,"");try{mi=""!==mi?JSON.parse(mi):null}catch(Ra){mi=$r,Wr&&(Wr=!1,mi={error:Ra,text:mi})}}Wr?(ce.next(new fe({body:mi,headers:Ht,status:Bt,statusText:fn,url:_r||void 0})),ce.complete()):ce.error(new ue({error:mi,headers:Ht,status:Bt,statusText:fn,url:_r||void 0}))},ei=Ht=>{const{url:Bt}=je(),fn=new ue({error:Ht,status:xe.status||0,statusText:xe.statusText||"Unknown Error",url:Bt||void 0});ce.error(fn)};let vt=!1;const en=Ht=>{vt||(ce.next(je()),vt=!0);let Bt={type:Te.DownloadProgress,loaded:Ht.loaded};Ht.lengthComputable&&(Bt.total=Ht.total),"text"===q.responseType&&!!xe.responseText&&(Bt.partialText=xe.responseText),ce.next(Bt)},it=Ht=>{let Bt={type:Te.UploadProgress,loaded:Ht.loaded};Ht.lengthComputable&&(Bt.total=Ht.total),ce.next(Bt)};return xe.addEventListener("load",Ke),xe.addEventListener("error",ei),xe.addEventListener("timeout",ei),xe.addEventListener("abort",ei),q.reportProgress&&(xe.addEventListener("progress",en),null!==tt&&xe.upload&&xe.upload.addEventListener("progress",it)),xe.send(tt),ce.next({type:Te.Sent}),()=>{xe.removeEventListener("error",ei),xe.removeEventListener("abort",ei),xe.removeEventListener("load",Ke),xe.removeEventListener("timeout",ei),q.reportProgress&&(xe.removeEventListener("progress",en),null!==tt&&xe.upload&&xe.upload.removeEventListener("progress",it)),xe.readyState!==xe.DONE&&xe.abort()}})}}return Ce.\u0275fac=function(q){return new(q||Ce)(u.LFG(T.JF))},Ce.\u0275prov=u.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})();const Gn=new u.OlP("XSRF_COOKIE_NAME"),qn=new u.OlP("XSRF_HEADER_NAME");class Da{}let Do=(()=>{class Ce{constructor(q,ce,xe){this.doc=q,this.platform=ce,this.cookieName=xe,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const q=this.doc.cookie||"";return q!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,T.Mx)(q,this.cookieName),this.lastCookieString=q),this.lastToken}}return Ce.\u0275fac=function(q){return new(q||Ce)(u.LFG(T.K0),u.LFG(u.Lbi),u.LFG(Gn))},Ce.\u0275prov=u.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})(),Qe=(()=>{class Ce{constructor(q,ce){this.tokenService=q,this.headerName=ce}intercept(q,ce){const xe=q.url.toLowerCase();if("GET"===q.method||"HEAD"===q.method||xe.startsWith("http://")||xe.startsWith("https://"))return ce.handle(q);const tt=this.tokenService.getToken();return null!==tt&&!q.headers.has(this.headerName)&&(q=q.clone({headers:q.headers.set(this.headerName,tt)})),ce.handle(q)}}return Ce.\u0275fac=function(q){return new(q||Ce)(u.LFG(Da),u.LFG(qn))},Ce.\u0275prov=u.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})(),hi=(()=>{class Ce{constructor(q,ce){this.backend=q,this.injector=ce,this.chain=null}handle(q){if(null===this.chain){const ce=this.injector.get(Tt,[]);this.chain=ce.reduceRight((xe,tt)=>new ot(xe,tt),this.backend)}return this.chain.handle(q)}}return Ce.\u0275fac=function(q){return new(q||Ce)(u.LFG(G),u.LFG(u.zs3))},Ce.\u0275prov=u.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})(),Pa=(()=>{class Ce{static disable(){return{ngModule:Ce,providers:[{provide:Qe,useClass:kt}]}}static withOptions(q={}){return{ngModule:Ce,providers:[q.cookieName?{provide:Gn,useValue:q.cookieName}:[],q.headerName?{provide:qn,useValue:q.headerName}:[]]}}}return Ce.\u0275fac=function(q){return new(q||Ce)},Ce.\u0275mod=u.oAB({type:Ce}),Ce.\u0275inj=u.cJS({providers:[Qe,{provide:Tt,useExisting:Qe,multi:!0},{provide:Da,useClass:Do},{provide:Gn,useValue:"XSRF-TOKEN"},{provide:qn,useValue:"X-XSRF-TOKEN"}]}),Ce})(),pu=(()=>{class Ce{}return Ce.\u0275fac=function(q){return new(q||Ce)},Ce.\u0275mod=u.oAB({type:Ce}),Ce.\u0275inj=u.cJS({providers:[He,{provide:Q,useClass:hi},Mo,{provide:G,useExisting:Mo}],imports:[Pa.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),Ce})()},4650:(F,z,x)=>{"use strict";x.d(z,{$8M:()=>Dc,$Z:()=>Xw,AFp:()=>Op,ALo:()=>kA,AaK:()=>Q,AsE:()=>h_,B6R:()=>_r,BQk:()=>Dl,CHM:()=>Ii,CRH:()=>cb,CZH:()=>hn,CqO:()=>Gh,D6c:()=>k0,DdM:()=>EA,Dn7:()=>BA,EJc:()=>xS,EiD:()=>ym,EpF:()=>or,F$t:()=>Pl,F4k:()=>wt,FYo:()=>cw,FiY:()=>Uo,G48:()=>kS,Gf:()=>lb,GfV:()=>hw,GkF:()=>Uh,Gpc:()=>U,Gre:()=>f_,Hsn:()=>Rv,Ikx:()=>oo,JOm:()=>Er,JVY:()=>jy,KtG:()=>Jn,L6k:()=>zy,LAX:()=>Bu,LFG:()=>di,LSH:()=>qu,Lbi:()=>Lp,Lck:()=>xA,MAs:()=>cn,MMx:()=>mp,NdJ:()=>Cd,O4$:()=>Vf,OlP:()=>At,Oqu:()=>u_,PXZ:()=>m0,Q6J:()=>Zg,QGY:()=>$t,QP$:()=>Wl,QbO:()=>Fp,Qsj:()=>dw,R0b:()=>Zi,RDi:()=>Vy,Rgc:()=>Gd,SBq:()=>fa,Sil:()=>u0,Suo:()=>Ap,TTD:()=>Yt,TgZ:()=>Nh,Tol:()=>zv,Udp:()=>$h,VKq:()=>SA,WFA:()=>Fe,WLB:()=>MA,XFs:()=>Qe,Xpm:()=>fn,Xts:()=>$u,Y36:()=>ul,YKP:()=>bs,YNc:()=>Kg,Yjl:()=>uc,Yz7:()=>Dt,ZZ4:()=>ic,_Bn:()=>uo,_UZ:()=>jh,_Vd:()=>Za,_c5:()=>Yb,_uU:()=>Qv,aQg:()=>ru,c2e:()=>d0,cJS:()=>li,cg1:()=>T_,d8E:()=>x_,dDg:()=>MS,dqk:()=>ce,eBb:()=>Uy,eFA:()=>Gp,ekj:()=>us,eoX:()=>Kl,f3M:()=>em,g9A:()=>Eb,h0i:()=>_s,hGG:()=>I0,hij:()=>Zh,iGM:()=>sb,ifc:()=>q,ip1:()=>Vi,kL8:()=>S_,kcU:()=>Bf,lG2:()=>fu,lcZ:()=>bp,lnq:()=>p_,lqb:()=>Ti,lri:()=>p0,mCW:()=>Xs,n5z:()=>xu,n_E:()=>Cp,oAB:()=>$r,oJD:()=>wm,oxw:()=>Hl,pB0:()=>mm,q3G:()=>ri,qLn:()=>Xc,qOj:()=>yl,qZA:()=>bd,qzn:()=>Qa,rWj:()=>Hb,s9C:()=>yd,sBO:()=>y0,sIi:()=>wn,s_b:()=>wp,soG:()=>Np,tb:()=>Jl,tp0:()=>$a,uIk:()=>Vh,vHH:()=>ie,vpe:()=>Lr,wAp:()=>Xe,xDo:()=>Td,xi3:()=>VA,xp6:()=>oh,ynx:()=>zh,z2F:()=>Ta,z3N:()=>tr,zSh:()=>Ka,zs3:()=>rr});var T=x(7579),u=x(727),V=x(9751),O=x(6451),I=x(3099);function N(p){for(let m in p)if(p[m]===N)return m;throw Error("Could not find renamed property on target object.")}function W(p,m){for(const g in m)m.hasOwnProperty(g)&&!p.hasOwnProperty(g)&&(p[g]=m[g])}function Q(p){if("string"==typeof p)return p;if(Array.isArray(p))return"["+p.map(Q).join(", ")+"]";if(null==p)return""+p;if(p.overriddenName)return`${p.overriddenName}`;if(p.name)return`${p.name}`;const m=p.toString();if(null==m)return""+m;const g=m.indexOf("\n");return-1===g?m:m.substring(0,g)}function G(p,m){return null==p||""===p?null===m?"":m:null==m||""===m?p:p+" "+m}const $=N({__forward_ref__:N});function U(p){return p.__forward_ref__=U,p.toString=function(){return Q(this())},p}function te(p){return ne(p)?p():p}function ne(p){return"function"==typeof p&&p.hasOwnProperty($)&&p.__forward_ref__===U}class ie extends Error{constructor(m,g){super(function de(p,m){return`NG0${Math.abs(p)}${m?": "+m.trim():""}`}(m,g)),this.code=m}}function he(p){return"string"==typeof p?p:null==p?"":String(p)}function _e(p,m){throw new ie(-201,!1)}function kt(p,m){null==p&&function Le(p,m,g,_){throw new Error(`ASSERTION ERROR: ${p}`+(null==_?"":` [Expected=> ${g} ${_} ${m} <=Actual]`))}(m,p,null,"!=")}function Dt(p){return{token:p.token,providedIn:p.providedIn||null,factory:p.factory,value:void 0}}function li(p){return{providers:p.providers||[],imports:p.imports||[]}}function qr(p){return dc(p,Gn)||dc(p,Da)}function dc(p,m){return p.hasOwnProperty(m)?p[m]:null}function Mo(p){return p&&(p.hasOwnProperty(qn)||p.hasOwnProperty(Do))?p[qn]:null}const Gn=N({\u0275prov:N}),qn=N({\u0275inj:N}),Da=N({ngInjectableDef:N}),Do=N({ngInjectorDef:N});var Qe=(()=>((Qe=Qe||{})[Qe.Default=0]="Default",Qe[Qe.Host=1]="Host",Qe[Qe.Self=2]="Self",Qe[Qe.SkipSelf=4]="SkipSelf",Qe[Qe.Optional=8]="Optional",Qe))();let hi;function Di(p){const m=hi;return hi=p,m}function Pa(p,m,g){const _=qr(p);return _&&"root"==_.providedIn?void 0===_.value?_.value=_.factory():_.value:g&Qe.Optional?null:void 0!==m?m:void _e(Q(p))}function Dn(p){return{toString:p}.toString()}var wi=(()=>((wi=wi||{})[wi.OnPush=0]="OnPush",wi[wi.Default=1]="Default",wi))(),q=(()=>{return(p=q||(q={}))[p.Emulated=0]="Emulated",p[p.None=2]="None",p[p.ShadowDom=3]="ShadowDom",q;var p})();const ce=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),dt={},je=[],Ke=N({\u0275cmp:N}),ei=N({\u0275dir:N}),vt=N({\u0275pipe:N}),en=N({\u0275mod:N}),it=N({\u0275fac:N}),Ht=N({__NG_ELEMENT_ID__:N});let Bt=0;function fn(p){return Dn(()=>{const g=!0===p.standalone,_={},C={type:p.type,providersResolver:null,decls:p.decls,vars:p.vars,factory:null,template:p.template||null,consts:p.consts||null,ngContentSelectors:p.ngContentSelectors,hostBindings:p.hostBindings||null,hostVars:p.hostVars||0,hostAttrs:p.hostAttrs||null,contentQueries:p.contentQueries||null,declaredInputs:_,inputs:null,outputs:null,exportAs:p.exportAs||null,onPush:p.changeDetection===wi.OnPush,directiveDefs:null,pipeDefs:null,standalone:g,dependencies:g&&p.dependencies||null,getStandaloneInjector:null,selectors:p.selectors||je,viewQuery:p.viewQuery||null,features:p.features||null,data:p.data||{},encapsulation:p.encapsulation||q.Emulated,id:"c"+Bt++,styles:p.styles||je,_:null,setInput:null,schemas:p.schemas||null,tView:null},w=p.dependencies,v=p.features;return C.inputs=Ho(p.inputs,_),C.outputs=Ho(p.outputs),v&&v.forEach(E=>E(C)),C.directiveDefs=w?()=>("function"==typeof w?w():w).map(mi).filter(Wr):null,C.pipeDefs=w?()=>("function"==typeof w?w():w).map(Pi).filter(Wr):null,C})}function _r(p,m,g){const _=p.\u0275cmp;_.directiveDefs=()=>("function"==typeof m?m():m).map(mi),_.pipeDefs=()=>("function"==typeof g?g():g).map(Pi)}function mi(p){return Et(p)||Hi(p)}function Wr(p){return null!==p}function $r(p){return Dn(()=>({type:p.type,bootstrap:p.bootstrap||je,declarations:p.declarations||je,imports:p.imports||je,exports:p.exports||je,transitiveCompileScopes:null,schemas:p.schemas||null,id:p.id||null}))}function Ho(p,m){if(null==p)return dt;const g={};for(const _ in p)if(p.hasOwnProperty(_)){let C=p[_],w=C;Array.isArray(C)&&(w=C[1],C=C[0]),g[C]=_,m&&(m[C]=w)}return g}const fu=fn;function uc(p){return{type:p.type,name:p.name,factory:null,pure:!1!==p.pure,standalone:!0===p.standalone,onDestroy:p.type.prototype.ngOnDestroy||null}}function Et(p){return p[Ke]||null}function Hi(p){return p[ei]||null}function Pi(p){return p[vt]||null}function Ui(p,m){const g=p[en]||null;if(!g&&!0===m)throw new Error(`Type ${Q(p)} does not have '\u0275mod' property.`);return g}function Ri(p){return Array.isArray(p)&&"object"==typeof p[1]}function gn(p){return Array.isArray(p)&&!0===p[1]}function Ps(p){return 0!=(8&p.flags)}function Va(p){return 2==(2&p.flags)}function Zr(p){return 1==(1&p.flags)}function tn(p){return null!==p.template}function xf(p){return 0!=(256&p[2])}function De(p,m){return p.hasOwnProperty(it)?p[it]:null}class Se{constructor(m,g,_){this.previousValue=m,this.currentValue=g,this.firstChange=_}isFirstChange(){return this.firstChange}}function Yt(){return ko}function ko(p){return p.type.prototype.ngOnChanges&&(p.setInput=ea),Xr}function Xr(){const p=Qn(this),m=p?.current;if(m){const g=p.previous;if(g===dt)p.previous=m;else for(let _ in m)g[_]=m[_];p.current=null,this.ngOnChanges(m)}}function ea(p,m,g,_){const C=Qn(p)||function ta(p,m){return p[bi]=m}(p,{previous:dt,current:null}),w=C.current||(C.current={}),v=C.previous,E=this.declaredInputs[g],S=v[E];w[E]=new Se(S&&S.currentValue,m,v===dt),p[_]=m}Yt.ngInherit=!0;const bi="__ngSimpleChanges__";function Qn(p){return p[bi]||null}function ze(p){for(;Array.isArray(p);)p=p[0];return p}function Ba(p,m){return ze(m[p])}function It(p,m){return ze(m[p.index])}function bn(p,m){return p.data[m]}function Gi(p,m){return p[m]}function bt(p,m){const g=m[p];return Ri(g)?g:g[0]}function M(p){return 4==(4&p[2])}function k(p){return 64==(64&p[2])}function B(p,m){return null==m?null:p[m]}function ee(p){p[18]=0}function pe(p,m){p[5]+=m;let g=p,_=p[3];for(;null!==_&&(1===m&&1===g[5]||-1===m&&0===g[5]);)_[5]+=m,g=_,_=_[3]}const le={lFrame:bu(null),bindingsEnabled:!0};function We(){return le.bindingsEnabled}function be(){return le.lFrame.lView}function ht(){return le.lFrame.tView}function Ii(p){return le.lFrame.contextLView=p,p[8]}function Jn(p){return le.lFrame.contextLView=null,p}function qt(){let p=Oa();for(;null!==p&&64===p.type;)p=p.parent;return p}function Oa(){return le.lFrame.currentTNode}function Lt(p,m){const g=le.lFrame;g.currentTNode=p,g.isParent=m}function Pn(){return le.lFrame.isParent}function Is(){le.lFrame.isParent=!1}function Fi(){const p=le.lFrame;let m=p.bindingRootIndex;return-1===m&&(m=p.bindingRootIndex=p.tView.bindingStartIndex),m}function Kn(){return le.lFrame.bindingIndex}function Fa(){return le.lFrame.bindingIndex++}function Zn(p){const m=le.lFrame,g=m.bindingIndex;return m.bindingIndex=m.bindingIndex+p,g}function mt(p,m){const g=le.lFrame;g.bindingIndex=g.bindingRootIndex=p,gu(m)}function gu(p){le.lFrame.currentDirectiveIndex=p}function yr(p){const m=le.lFrame.currentDirectiveIndex;return-1===m?null:p[m]}function Pf(){return le.lFrame.currentQueryIndex}function bc(p){le.lFrame.currentQueryIndex=p}function _u(p){const m=p[1];return 2===m.type?m.declTNode:1===m.type?p[6]:null}function Rf(p,m,g){if(g&Qe.SkipSelf){let C=m,w=p;for(;!(C=C.parent,null!==C||g&Qe.Host||(C=_u(w),null===C||(w=w[15],10&C.type))););if(null===C)return!1;m=C,p=w}const _=le.lFrame=Bo();return _.currentTNode=m,_.lView=p,!0}function Vo(p){const m=Bo(),g=p[1];le.lFrame=m,m.currentTNode=g.firstChild,m.lView=p,m.tView=g,m.contextLView=p,m.bindingIndex=g.bindingStartIndex,m.inI18n=!1}function Bo(){const p=le.lFrame,m=null===p?null:p.child;return null===m?bu(p):m}function bu(p){const m={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:p,child:null,inI18n:!1};return null!==p&&(p.child=m),m}function Bs(){const p=le.lFrame;return le.lFrame=p.parent,p.currentTNode=null,p.lView=null,p}const If=Bs;function Os(){const p=Bs();p.isParent=!0,p.tView=null,p.selectedIndex=-1,p.contextLView=null,p.elementDepthCount=0,p.currentDirectiveIndex=-1,p.currentNamespace=null,p.bindingRootIndex=-1,p.bindingIndex=-1,p.currentQueryIndex=0}function ki(){return le.lFrame.selectedIndex}function na(p){le.lFrame.selectedIndex=p}function Jt(){const p=le.lFrame;return bn(p.tView,p.selectedIndex)}function Vf(){le.lFrame.currentNamespace="svg"}function Bf(){!function XC(){le.lFrame.currentNamespace=null}()}function wc(p,m){for(let g=m.directiveStart,_=m.directiveEnd;g<_;g++){const w=p.data[g].type.prototype,{ngAfterContentInit:v,ngAfterContentChecked:E,ngAfterViewInit:S,ngAfterViewChecked:P,ngOnDestroy:R}=w;v&&(p.contentHooks||(p.contentHooks=[])).push(-g,v),E&&((p.contentHooks||(p.contentHooks=[])).push(g,E),(p.contentCheckHooks||(p.contentCheckHooks=[])).push(g,E)),S&&(p.viewHooks||(p.viewHooks=[])).push(-g,S),P&&((p.viewHooks||(p.viewHooks=[])).push(g,P),(p.viewCheckHooks||(p.viewCheckHooks=[])).push(g,P)),null!=R&&(p.destroyHooks||(p.destroyHooks=[])).push(g,R)}}function Oo(p,m,g){ra(p,m,3,g)}function Na(p,m,g,_){(3&p[2])===g&&ra(p,m,g,_)}function Cu(p,m){let g=p[2];(3&g)===m&&(g&=2047,g+=1,p[2]=g)}function ra(p,m,g,_){const w=_??-1,v=m.length-1;let E=0;for(let S=void 0!==_?65535&p[18]:0;S=_)break}else m[S]<0&&(p[18]+=65536),(E>11>16&&(3&p[2])===m){p[2]+=2048;try{w.call(E)}finally{}}}else try{w.call(E)}finally{}}class Ls{constructor(m,g,_){this.factory=m,this.resolving=!1,this.canSeeViewProviders=g,this.injectImpl=_}}function vr(p,m,g){let _=0;for(;_m){v=w-1;break}}}for(;w>16}(p),_=m;for(;g>0;)_=_[15],g--;return _}let wu=!0;function Ns(p){const m=wu;return wu=p,m}let oa=0;const rn={};function js(p,m){const g=Au(p,m);if(-1!==g)return g;const _=m[1];_.firstCreatePass&&(p.injectorIndex=m.length,vu(_.data,p),vu(m,null),vu(_.blueprint,null));const C=xc(p,m),w=p.injectorIndex;if(vc(C)){const v=Xn(C),E=aa(C,m),S=E[1].data;for(let P=0;P<8;P++)m[w+P]=E[v+P]|S[v+P]}return m[w+8]=C,w}function vu(p,m){p.push(0,0,0,0,0,0,0,0,m)}function Au(p,m){return-1===p.injectorIndex||p.parent&&p.parent.injectorIndex===p.injectorIndex||null===m[p.injectorIndex+8]?-1:p.injectorIndex}function xc(p,m){if(p.parent&&-1!==p.parent.injectorIndex)return p.parent.injectorIndex;let g=0,_=null,C=m;for(;null!==C;){if(_=Rn(C),null===_)return-1;if(g++,C=C[15],-1!==_.injectorIndex)return _.injectorIndex|g<<16}return-1}function Tc(p,m,g){!function jf(p,m,g){let _;"string"==typeof g?_=g.charCodeAt(0)||0:g.hasOwnProperty(Ht)&&(_=g[Ht]),null==_&&(_=g[Ht]=oa++);const C=255&_;m.data[p+(C>>5)]|=1<=0?255&m:Fo:m}(g);if("function"==typeof w){if(!Rf(m,p,_))return _&Qe.Host?zf(C,0,_):Uf(m,g,_,C);try{const v=w(_);if(null!=v||_&Qe.Optional)return v;_e()}finally{If()}}else if("number"==typeof w){let v=null,E=Au(p,m),S=-1,P=_&Qe.Host?m[16][6]:null;for((-1===E||_&Qe.SkipSelf)&&(S=-1===E?xc(p,m):m[E+8],-1!==S&&Sc(_,!1)?(v=m[1],E=Xn(S),m=aa(S,m)):E=-1);-1!==E;){const R=m[1];if(Ec(w,E,R.data)){const L=cy(E,m,g,v,_,P);if(L!==rn)return L}S=m[E+8],-1!==S&&Sc(_,m[1].data[E+8]===P)&&Ec(w,E,m)?(v=R,E=Xn(S),m=aa(S,m)):E=-1}}return C}function cy(p,m,g,_,C,w){const v=m[1],E=v.data[p+8],R=zs(E,v,g,null==_?Va(E)&&wu:_!=v&&0!=(3&E.type),C&Qe.Host&&w===E);return null!==R?Us(m,v,R,E):rn}function zs(p,m,g,_,C){const w=p.providerIndexes,v=m.data,E=1048575&w,S=p.directiveStart,R=w>>20,J=C?E+R:p.directiveEnd;for(let re=_?E:E+R;re=S&&ge.type===g)return re}if(C){const re=v[S];if(re&&tn(re)&&re.type===g)return S}return null}function Us(p,m,g,_){let C=p[g];const w=m.data;if(function iy(p){return p instanceof Ls}(C)){const v=C;v.resolving&&function Ve(p,m){const g=m?`. Dependency path: ${m.join(" > ")} > ${p}`:"";throw new ie(-200,`Circular dependency in DI detected for ${p}${g}`)}(function me(p){return"function"==typeof p?p.name||p.toString():"object"==typeof p&&null!=p&&"function"==typeof p.type?p.type.name||p.type.toString():he(p)}(w[g]));const E=Ns(v.canSeeViewProviders);v.resolving=!0;const S=v.injectImpl?Di(v.injectImpl):null;Rf(p,_,Qe.Default);try{C=p[g]=v.factory(void 0,w,p,_),m.firstCreatePass&&g>=_.directiveStart&&function ty(p,m,g){const{ngOnChanges:_,ngOnInit:C,ngDoCheck:w}=m.type.prototype;if(_){const v=ko(m);(g.preOrderHooks||(g.preOrderHooks=[])).push(p,v),(g.preOrderCheckHooks||(g.preOrderCheckHooks=[])).push(p,v)}C&&(g.preOrderHooks||(g.preOrderHooks=[])).push(0-p,C),w&&((g.preOrderHooks||(g.preOrderHooks=[])).push(p,w),(g.preOrderCheckHooks||(g.preOrderCheckHooks=[])).push(p,w))}(g,w[g],m)}finally{null!==S&&Di(S),Ns(E),v.resolving=!1,If()}}return C}function Ec(p,m,g){return!!(g[m+(p>>5)]&1<{const m=p.prototype.constructor,g=m[it]||Mc(m),_=Object.prototype;let C=Object.getPrototypeOf(p.prototype).constructor;for(;C&&C!==_;){const w=C[it]||Mc(C);if(w&&w!==g)return w;C=Object.getPrototypeOf(C)}return w=>new w})}function Mc(p){return ne(p)?()=>{const m=Mc(te(p));return m&&m()}:De(p)}function Rn(p){const m=p[1],g=m.type;return 2===g?m.declTNode:1===g?p[6]:null}function Dc(p){return function ly(p,m){if("class"===m)return p.classes;if("style"===m)return p.styles;const g=p.attrs;if(g){const _=g.length;let C=0;for(;C<_;){const w=g[C];if(Lf(w))break;if(0===w)C+=2;else if("number"==typeof w)for(C++;C<_&&"string"==typeof g[C];)C++;else{if(w===m)return g[C+1];C+=2}}}return null}(qt(),p)}const Ar="__parameters__";function sa(p,m,g){return Dn(()=>{const _=function Pc(p){return function(...g){if(p){const _=p(...g);for(const C in _)this[C]=_[C]}}}(m);function C(...w){if(this instanceof C)return _.apply(this,w),this;const v=new C(...w);return E.annotation=v,E;function E(S,P,R){const L=S.hasOwnProperty(Ar)?S[Ar]:Object.defineProperty(S,Ar,{value:[]})[Ar];for(;L.length<=R;)L.push(null);return(L[R]=L[R]||[]).push(v),S}}return g&&(C.prototype=Object.create(g.prototype)),C.prototype.ngMetadataName=p,C.annotationCls=C,C})}class At{constructor(m,g){this._desc=m,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof g?this.__NG_ELEMENT_ID__=g:void 0!==g&&(this.\u0275prov=Dt({token:this,providedIn:g.providedIn||"root",factory:g.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Cn(p,m){void 0===m&&(m=p);for(let g=0;gArray.isArray(g)?la(g,m):m(g))}function _y(p,m,g){m>=p.length?p.push(g):p.splice(m,0,g)}function Su(p,m){return m>=p.length-1?p.pop():p.splice(m,1)[0]}function Ga(p,m){const g=[];for(let _=0;_=0?p[1|_]=g:(_=~_,function Cy(p,m,g,_){let C=p.length;if(C==m)p.push(g,_);else if(1===C)p.push(_,p[0]),p[0]=g;else{for(C--,p.push(p[C-1],p[C]);C>m;)p[C]=p[C-2],C--;p[m]=g,p[m+1]=_}}(p,_,m,g)),_}function Du(p,m){const g=jo(p,m);if(g>=0)return p[1|g]}function jo(p,m){return function Ws(p,m,g){let _=0,C=p.length>>g;for(;C!==_;){const w=_+(C-_>>1),v=p[w<m?C=w:_=w+1}return~(C<p,createScript:p=>p,createScriptURL:p=>p})}catch{}return Fc}()?.createHTML(p)||p}function hm(p){return function jc(){if(void 0===Zs&&(Zs=null,ce.trustedTypes))try{Zs=ce.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:p=>p,createScript:p=>p,createScriptURL:p=>p})}catch{}return Zs}()?.createHTML(p)||p}class Ya{constructor(m){this.changingThisBreaksApplicationSecurity=m}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Oy extends Ya{getTypeName(){return"HTML"}}class Ly extends Ya{getTypeName(){return"Style"}}class Fy extends Ya{getTypeName(){return"Script"}}class fm extends Ya{getTypeName(){return"URL"}}class Vu extends Ya{getTypeName(){return"ResourceURL"}}function tr(p){return p instanceof Ya?p.changingThisBreaksApplicationSecurity:p}function Qa(p,m){const g=function Ny(p){return p instanceof Ya&&p.getTypeName()||null}(p);if(null!=g&&g!==m){if("ResourceURL"===g&&"URL"===m)return!0;throw new Error(`Required a safe ${m}, got a ${g} (see https://g.co/ng/security#xss)`)}return g===m}function jy(p){return new Oy(p)}function zy(p){return new Ly(p)}function Uy(p){return new Fy(p)}function Bu(p){return new fm(p)}function mm(p){return new Vu(p)}class Ou{constructor(m){this.inertDocumentHelper=m}getInertBodyElement(m){m=""+m;try{const g=(new window.DOMParser).parseFromString(qo(m),"text/html").body;return null===g?this.inertDocumentHelper.getInertBodyElement(m):(g.removeChild(g.firstChild),g)}catch{return null}}}class Gy{constructor(m){if(this.defaultDoc=m,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const g=this.inertDocument.createElement("html");this.inertDocument.appendChild(g);const _=this.inertDocument.createElement("body");g.appendChild(_)}}getInertBodyElement(m){const g=this.inertDocument.createElement("template");if("content"in g)return g.innerHTML=qo(m),g;const _=this.inertDocument.createElement("body");return _.innerHTML=qo(m),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(_),_}stripCustomNsAttrs(m){const g=m.attributes;for(let C=g.length-1;0Xs(m.trim())).join(", ")),this.buf.push(" ",v,'="',Uu(S),'"')}var p;return this.buf.push(">"),!0}endElement(m){const g=m.nodeName.toLowerCase();ju.hasOwnProperty(g)&&!ni.hasOwnProperty(g)&&(this.buf.push(""))}chars(m){this.buf.push(Uu(m))}checkClobberedElement(m,g){if(g&&(m.compareDocumentPosition(g)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${m.outerHTML}`);return g}}const iT=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Cm=/([^\#-~ |!])/g;function Uu(p){return p.replace(/&/g,"&").replace(iT,function(m){return"&#"+(1024*(m.charCodeAt(0)-55296)+(m.charCodeAt(1)-56320)+65536)+";"}).replace(Cm,function(m){return"&#"+m.charCodeAt(0)+";"}).replace(//g,">")}let Wc;function ym(p,m){let g=null;try{Wc=Wc||function Uc(p){const m=new Gy(p);return function qy(){try{return!!(new window.DOMParser).parseFromString(qo(""),"text/html")}catch{return!1}}()?new Ou(m):m}(p);let _=m?String(m):"";g=Wc.getInertBodyElement(_);let C=5,w=_;do{if(0===C)throw new Error("Failed to sanitize html because the input is unstable");C--,_=w,w=g.innerHTML,g=Wc.getInertBodyElement(_)}while(_!==w);return qo((new ua).sanitizeChildren(Gu(g)||g))}finally{if(g){const _=Gu(g)||g;for(;_.firstChild;)_.removeChild(_.firstChild)}}}function Gu(p){return"content"in p&&function $c(p){return p.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===p.nodeName}(p)?p.content:null}var ri=(()=>((ri=ri||{})[ri.NONE=0]="NONE",ri[ri.HTML=1]="HTML",ri[ri.STYLE=2]="STYLE",ri[ri.SCRIPT=3]="SCRIPT",ri[ri.URL=4]="URL",ri[ri.RESOURCE_URL=5]="RESOURCE_URL",ri))();function wm(p){const m=el();return m?hm(m.sanitize(ri.HTML,p)||""):Qa(p,"HTML")?hm(tr(p)):ym(function cm(){return void 0!==ku?ku:typeof document<"u"?document:void 0}(),he(p))}function qu(p){const m=el();return m?m.sanitize(ri.URL,p)||"":Qa(p,"URL")?tr(p):Xs(he(p))}function el(){const p=be();return p&&p[12]}const $u=new At("ENVIRONMENT_INITIALIZER"),Tm=new At("INJECTOR",-1),Xy=new At("INJECTOR_DEF_TYPES");class Yc{get(m,g=Ys){if(g===Ys){const _=new Error(`NullInjectorError: No provider for ${Q(m)}!`);throw _.name="NullInjectorError",_}return g}}function Zt(...p){return{\u0275providers:ew(0,p)}}function ew(p,...m){const g=[],_=new Set;let C;return la(m,w=>{const v=w;Qc(v,g,[],_)&&(C||(C=[]),C.push(v))}),void 0!==C&&Ja(C,g),g}function Ja(p,m){for(let g=0;g{m.push(w)})}}function Qc(p,m,g,_){if(!(p=te(p)))return!1;let C=null,w=Mo(p);const v=!w&&Et(p);if(w||v){if(v&&!v.standalone)return!1;C=p}else{const S=p.ngModule;if(w=Mo(S),!w)return!1;C=S}const E=_.has(C);if(v){if(E)return!1;if(_.add(C),v.dependencies){const S="function"==typeof v.dependencies?v.dependencies():v.dependencies;for(const P of S)Qc(P,m,g,_)}}else{if(!w)return!1;{if(null!=w.imports&&!E){let P;_.add(C);try{la(w.imports,R=>{Qc(R,m,g,_)&&(P||(P=[]),P.push(R))})}finally{}void 0!==P&&Ja(P,m)}if(!E){const P=De(C)||(()=>new C);m.push({provide:C,useFactory:P,deps:je},{provide:Xy,useValue:C,multi:!0},{provide:$u,useValue:()=>di(C),multi:!0})}const S=w.providers;null==S||E||la(S,R=>{m.push(R)})}}return C!==p&&void 0!==p.providers}const tl=N({provide:String,useValue:N});function Yu(p){return null!==p&&"object"==typeof p&&tl in p}function an(p){return"function"==typeof p}const Ka=new At("Set Injector scope."),$o={},iw={};let Yo;function Qo(){return void 0===Yo&&(Yo=new Yc),Yo}class Ti{}class Jc extends Ti{constructor(m,g,_,C){super(),this.parent=g,this.source=_,this.scopes=C,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Dm(m,v=>this.processProvider(v)),this.records.set(Tm,ha(void 0,this)),C.has("environment")&&this.records.set(Ti,ha(void 0,this));const w=this.records.get(Ka);null!=w&&"string"==typeof w.value&&this.scopes.add(w.value),this.injectorDefTypes=new Set(this.get(Xy.multi,je,Qe.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const m of this._ngOnDestroyHooks)m.ngOnDestroy();for(const m of this._onDestroyHooks)m()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(m){this._onDestroyHooks.push(m)}runInContext(m){this.assertNotDestroyed();const g=xr(this),_=Di(void 0);try{return m()}finally{xr(g),Di(_)}}get(m,g=Ys,_=Qe.Default){this.assertNotDestroyed();const C=xr(this),w=Di(void 0);try{if(!(_&Qe.SkipSelf)){let E=this.records.get(m);if(void 0===E){const S=function ow(p){return"function"==typeof p||"object"==typeof p&&p instanceof At}(m)&&qr(m);E=S&&this.injectableDefInScope(S)?ha(Sm(m),$o):null,this.records.set(m,E)}if(null!=E)return this.hydrate(m,E)}return(_&Qe.Self?Qo():this.parent).get(m,g=_&Qe.Optional&&g===Ys?null:g)}catch(v){if("NullInjectorError"===v.name){if((v[kc]=v[kc]||[]).unshift(Q(m)),C)throw v;return function My(p,m,g,_){const C=p[kc];throw m[Zf]&&C.unshift(m[Zf]),p.message=function Dy(p,m,g,_=null){p=p&&"\n"===p.charAt(0)&&"\u0275"==p.charAt(1)?p.slice(2):p;let C=Q(m);if(Array.isArray(m))C=m.map(Q).join(" -> ");else if("object"==typeof m){let w=[];for(let v in m)if(m.hasOwnProperty(v)){let E=m[v];w.push(v+":"+("string"==typeof E?JSON.stringify(E):Q(E)))}C=`{${w.join(", ")}}`}return`${g}${_?"("+_+")":""}[${C}]: ${p.replace(Ey,"\n ")}`}("\n"+p.message,C,g,_),p.ngTokenPath=C,p[kc]=null,p}(v,m,"R3InjectorError",this.source)}throw v}finally{Di(w),xr(C)}}resolveInjectorInitializers(){const m=xr(this),g=Di(void 0);try{const _=this.get($u.multi,je,Qe.Self);for(const C of _)C()}finally{xr(m),Di(g)}}toString(){const m=[],g=this.records;for(const _ of g.keys())m.push(Q(_));return`R3Injector[${m.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ie(205,!1)}processProvider(m){let g=an(m=te(m))?m:te(m&&m.provide);const _=function Mm(p){return Yu(p)?ha(void 0,p.useValue):ha(nw(p),$o)}(m);if(an(m)||!0!==m.multi)this.records.get(g);else{let C=this.records.get(g);C||(C=ha(void 0,$o,!0),C.factory=()=>Pu(C.multi),this.records.set(g,C)),g=m,C.multi.push(m)}this.records.set(g,_)}hydrate(m,g){return g.value===$o&&(g.value=iw,g.value=g.factory()),"object"==typeof g.value&&g.value&&function aw(p){return null!==p&&"object"==typeof p&&"function"==typeof p.ngOnDestroy}(g.value)&&this._ngOnDestroyHooks.add(g.value),g.value}injectableDefInScope(m){if(!m.providedIn)return!1;const g=te(m.providedIn);return"string"==typeof g?"any"===g||this.scopes.has(g):this.injectorDefTypes.has(g)}}function Sm(p){const m=qr(p),g=null!==m?m.factory:De(p);if(null!==g)return g;if(p instanceof At)throw new ie(204,!1);if(p instanceof Function)return function Qu(p){const m=p.length;if(m>0)throw Ga(m,"?"),new ie(204,!1);const g=function So(p){const m=p&&(p[Gn]||p[Da]);if(m){const g=function hu(p){if(p.hasOwnProperty("name"))return p.name;const m=(""+p).match(/^function\s*([^\s(]+)/);return null===m?"":m[1]}(p);return console.warn(`DEPRECATED: DI is instantiating a token "${g}" 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 "${g}" class.`),m}return null}(p);return null!==g?()=>g.factory(p):()=>new p}(p);throw new ie(204,!1)}function nw(p,m,g){let _;if(an(p)){const C=te(p);return De(C)||Sm(C)}if(Yu(p))_=()=>te(p.useValue);else if(function il(p){return!(!p||!p.useFactory)}(p))_=()=>p.useFactory(...Pu(p.deps||[]));else if(function kn(p){return!(!p||!p.useExisting)}(p))_=()=>di(te(p.useExisting));else{const C=te(p&&(p.useClass||p.provide));if(!function rw(p){return!!p.deps}(p))return De(C)||Sm(C);_=()=>new C(...Pu(p.deps))}return _}function ha(p,m,g=!1){return{factory:p,value:m,multi:g?[]:void 0}}function rT(p){return!!p.\u0275providers}function Dm(p,m){for(const g of p)Array.isArray(g)?Dm(g,m):rT(g)?Dm(g.\u0275providers,m):m(g)}class Zc{}class lw{resolveComponentFactory(m){throw function aT(p){const m=Error(`No component factory found for ${Q(p)}. Did you add it to @NgModule.entryComponents?`);return m.ngComponent=p,m}(m)}}let Za=(()=>{class p{}return p.NULL=new lw,p})();function Ju(){return pa(qt(),be())}function pa(p,m){return new fa(It(p,m))}let fa=(()=>{class p{constructor(g){this.nativeElement=g}}return p.__NG_ELEMENT_ID__=Ju,p})();function sT(p){return p instanceof fa?p.nativeElement:p}class cw{}let dw=(()=>{class p{}return p.__NG_ELEMENT_ID__=()=>function uw(){const p=be(),g=bt(qt().index,p);return(Ri(g)?g:p)[11]}(),p})(),lT=(()=>{class p{}return p.\u0275prov=Dt({token:p,providedIn:"root",factory:()=>null}),p})();class hw{constructor(m){this.full=m,this.major=m.split(".")[0],this.minor=m.split(".")[1],this.patch=m.split(".").slice(2).join(".")}}const cT=new hw("14.1.2"),Hm={};function Vm(p){return p.ngOriginalError}class Xc{constructor(){this._console=console}handleError(m){const g=this._findOriginalError(m);this._console.error("ERROR",m),g&&this._console.error("ORIGINAL ERROR",g)}_findOriginalError(m){let g=m&&Vm(m);for(;g&&Vm(g);)g=Vm(g);return g||null}}const Bm=new Map;let vT=0;const Lm="__ngContext__";function Ni(p,m){Ri(m)?(p[Lm]=m[20],function xT(p){Bm.set(p[20],p)}(m)):p[Lm]=m}function ed(p){const m=p[Lm];return"number"==typeof m?function Cw(p){return Bm.get(p)||null}(m):m||null}function Fm(p){const m=ed(p);return m?Ri(m)?m:m.lView:null}const PT=(()=>(typeof requestAnimationFrame<"u"&&requestAnimationFrame||setTimeout).bind(ce))();function ma(p){return p instanceof Function?p():p}var Er=(()=>((Er=Er||{})[Er.Important=1]="Important",Er[Er.DashCase=2]="DashCase",Er))();function jm(p,m){return undefined(p,m)}function td(p){const m=p[3];return gn(m)?m[3]:m}function zm(p){return Dw(p[13])}function Um(p){return Dw(p[4])}function Dw(p){for(;null!==p&&!gn(p);)p=p[4];return p}function rl(p,m,g,_,C){if(null!=_){let w,v=!1;gn(_)?w=_:Ri(_)&&(v=!0,_=_[0]);const E=ze(_);0===p&&null!==g?null==C?Ze(m,g,E):st(m,g,E,C||null,!0):1===p&&null!==g?st(m,g,E,C||null,!0):2===p?function Zm(p,m,g){const _=Wt(p,m);_&&function Jm(p,m,g,_){p.removeChild(m,g,_)}(p,_,m,g)}(m,E,v):3===p&&m.destroyNode(E),null!=w&&function tg(p,m,g,_,C){const w=g[7];w!==ze(g)&&rl(m,p,_,w,C);for(let E=10;E0&&(p[g-1][4]=_[4]);const w=Su(p,10+m);!function jT(p,m){Ko(p,m,m[11],2,null,null),m[0]=null,m[6]=null}(_[1],_);const v=w[19];null!==v&&v.detachView(w[1]),_[3]=null,_[4]=null,_[2]&=-65}return _}function nr(p,m){if(!(128&m[2])){const g=m[11];g.destroyNode&&Ko(p,m,g,3,null,null),function GT(p){let m=p[13];if(!m)return al(p[1],p);for(;m;){let g=null;if(Ri(m))g=m[13];else{const _=m[10];_&&(g=_)}if(!g){for(;m&&!m[4]&&m!==p;)Ri(m)&&al(m[1],m),m=m[3];null===m&&(m=p),Ri(m)&&al(m[1],m),g=m&&m[4]}m=g}}(m)}}function al(p,m){if(!(128&m[2])){m[2]&=-65,m[2]|=128,function $m(p,m){let g;if(null!=p&&null!=(g=p.destroyHooks))for(let _=0;_=0?_[C=P]():_[C=-P].unsubscribe(),w+=2}else{const v=_[C=g[w+1]];g[w].call(v)}if(null!==_){for(let w=C+1;w<_.length;w++)(0,_[w])();m[7]=null}}(p,m),1===m[1].type&&m[11].destroy();const g=m[17];if(null!==g&&gn(m[3])){g!==m[3]&&Pw(g,m);const _=m[19];null!==_&&_.detachView(p)}!function yw(p){Bm.delete(p[20])}(m)}}function Ym(p,m,g){return function Qm(p,m,g){let _=m;for(;null!==_&&40&_.type;)_=(m=_).parent;if(null===_)return g[0];if(2&_.flags){const C=p.data[_.directiveStart].encapsulation;if(C===q.None||C===q.Emulated)return null}return It(_,g)}(p,m.parent,g)}function st(p,m,g,_,C){p.insertBefore(m,g,_,C)}function Ze(p,m,g){p.appendChild(m,g)}function Ci(p,m,g,_,C){null!==_?st(p,m,g,_,C):Ze(p,m,g)}function Wt(p,m){return p.parentNode(m)}function Rw(p,m,g){return Km(p,m,g)}let Km=function Xu(p,m,g){return 40&p.type?It(p,g):null};function eh(p,m,g,_){const C=Ym(p,_,m),w=m[11],E=Rw(_.parent||m[6],_,m);if(null!=C)if(Array.isArray(g))for(let S=0;Sw?"":C[L+1].toLowerCase();const re=8&_?J:null;if(re&&-1!==kw(re,P,0)||2&_&&P!==J){if(Vn(_))return!1;v=!0}}}}else{if(!v&&!Vn(_)&&!Vn(S))return!1;if(v&&Vn(S))continue;v=!1,_=S|1&_}}return Vn(_)||v}function Vn(p){return 0==(1&p)}function $T(p,m,g,_){if(null===m)return-1;let C=0;if(_||!g){let w=!1;for(;C-1)for(g++;g0?'="'+E+'"':"")+"]"}else 8&_?C+="."+v:4&_&&(C+=" "+v);else""!==C&&!Vn(v)&&(m+=rg(w,C),C=""),_=v,w=w||!Vn(_);g++}return""!==C&&(m+=rg(w,C)),m}const lt={};function oh(p){sh(ht(),be(),ki()+p,!1)}function sh(p,m,g,_){if(!_)if(3==(3&m[2])){const w=p.preOrderCheckHooks;null!==w&&Oo(m,w,g)}else{const w=p.preOrderHooks;null!==w&&Na(m,w,0,g)}na(g)}function Gw(p,m=null,g=null,_){const C=qw(p,m,g,_);return C.resolveInjectorInitializers(),C}function qw(p,m=null,g=null,_,C=new Set){const w=[g||je,Zt(p)];return _=_||("object"==typeof p?void 0:Q(p)),new Jc(w,m||Qo(),_||null,C)}let rr=(()=>{class p{static create(g,_){if(Array.isArray(g))return Gw({name:""},_,g,"");{const C=g.name??"";return Gw({name:C},g.parent,g.providers,C)}}}return p.THROW_IF_NOT_FOUND=Ys,p.NULL=new Yc,p.\u0275prov=Dt({token:p,providedIn:"any",factory:()=>di(Tm)}),p.__NG_ELEMENT_ID__=-1,p})();function ul(p,m=Qe.Default){const g=be();return null===g?di(p,m):Gf(qt(),g,te(p),m)}function Xw(){throw new Error("invalid")}function od(p,m){return p<<17|m<<2}function Bn(p){return p>>17&32767}function qe(p){return 2|p}function _a(p){return(131068&p)>>2}function pg(p,m){return-131069&p|m<<2}function ba(p){return 1|p}function pv(p,m){const g=p.contentQueries;if(null!==g)for(let _=0;_22&&sh(p,m,22,!1),g(_,C)}finally{na(w)}}function On(p,m,g){if(Ps(m)){const C=m.directiveEnd;for(let w=m.directiveStart;w0;){const g=p[--m];if("number"==typeof g&&g<0)return g}return 0})(E)!=S&&E.push(S),E.push(_,C,v)}}function Rg(p,m){null!==p.hostBindings&&p.hostBindings(1,m)}function Ig(p,m){m.flags|=2,(p.components||(p.components=[])).push(m.index)}function hd(p,m,g){if(g){if(m.exportAs)for(let _=0;_0&&pd(g)}}function pd(p){for(let _=zm(p);null!==_;_=Um(_))for(let C=10;C<_.length;C++){const w=_[C];if(k(w))if(512&w[2]){const v=w[1];fl(v,w,v.template,w[8])}else w[5]>0&&pd(w)}const g=p[1].components;if(null!==g)for(let _=0;_0&&pd(C)}}function Dh(p,m){const g=bt(m,p),_=g[1];(function Og(p,m){for(let g=m.length;gPromise.resolve(null))();function Ng(p){return p[7]||(p[7]=[])}function jg(p){return p.cleanup||(p.cleanup=[])}function zg(p,m,g){return(null===p||tn(p))&&(g=function Ai(p){for(;Array.isArray(p);){if("object"==typeof p[1])return p;p=p[0]}return null}(g[m.index])),g[11]}function Ug(p,m){const g=p[9],_=g?g.get(Xc,null):null;_&&_.handleError(m)}function no(p,m,g,_,C){for(let w=0;w-1&&(Ku(m,_),Su(g,_))}this._attachedToViewContainer=!1}nr(this._lView[1],this._lView)}onDestroy(m){Eh(this._lView[1],this._lView,null,m)}markForCheck(){Hh(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){!function gl(p,m,g){const _=m[10];_.begin&&_.begin();try{fl(p,m,p.template,g)}catch(C){throw Ug(m,C),C}finally{_.end&&_.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ie(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function UT(p,m){Ko(p,m,m[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(m){if(this._attachedToViewContainer)throw new ie(902,!1);this._appRef=m}}class Gg extends _l{constructor(m){super(m),this._view=m}detectChanges(){Av(this._view)}checkNoChanges(){}get context(){return null}}class Rh extends Za{constructor(m){super(),this.ngModule=m}resolveComponentFactory(m){const g=Et(m);return new bl(g,this.ngModule)}}function qg(p){const m=[];for(let g in p)p.hasOwnProperty(g)&&m.push({propName:p[g],templateName:g});return m}class $g{constructor(m,g){this.injector=m,this.parentInjector=g}get(m,g,_){const C=this.injector.get(m,Hm,_);return C!==Hm||g===Hm?C:this.parentInjector.get(m,g,_)}}class bl extends Zc{constructor(m,g){super(),this.componentDef=m,this.ngModule=g,this.componentType=m.type,this.selector=function Fw(p){return p.map(Lw).join(",")}(m.selectors),this.ngContentSelectors=m.ngContentSelectors?m.ngContentSelectors:[],this.isBoundToModule=!!g}get inputs(){return qg(this.componentDef.inputs)}get outputs(){return qg(this.componentDef.outputs)}create(m,g,_,C){let w=(C=C||this.ngModule)instanceof Ti?C:C?.injector;w&&null!==this.componentDef.getStandaloneInjector&&(w=this.componentDef.getStandaloneInjector(w)||w);const v=w?new $g(m,w):m,E=v.get(cw,null);if(null===E)throw new ie(407,!1);const S=v.get(lT,null),P=E.createRenderer(null,this.componentDef),R=this.componentDef.selectors[0][0]||"div",L=_?function ns(p,m,g){return p.selectRootElement(m,g===q.ShadowDom)}(P,_,this.componentDef.encapsulation):qm(E.createRenderer(null,this.componentDef),R,function Wg(p){const m=p.toLowerCase();return"svg"===m?"svg":"math"===m?"math":null}(R)),J=this.componentDef.onPush?288:272,re=function gE(p,m){return{components:[],scheduler:p||PT,clean:Fg,playerHandler:m||null,flags:0}}(),ge=Th(0,null,null,1,0,null,null,null,null,null),Ae=cd(null,ge,re,J,null,null,E,P,S,v,null);let Pe,Ne;Vo(Ae);try{const Je=function fE(p,m,g,_,C,w){const v=g[1];g[22]=p;const S=ts(v,22,2,"#host",null),P=S.mergedAttrs=m.hostAttrs;null!==P&&(md(S,P,!0),null!==p&&(vr(C,p,P),null!==S.classes&&Zo(C,p,S.classes),null!==S.styles&&ig(C,p,S.styles)));const R=_.createRenderer(p,m),L=cd(g,xh(m),null,m.onPush?32:16,g[22],S,_,R,w||null,null,null);return v.firstCreatePass&&(Tc(js(S,g),v,m.type),Ig(v,S),kg(S,g.length,1)),Ca(g,L),g[22]=L}(L,this.componentDef,Ae,E,P);if(L)if(_)vr(P,L,["ng-version",cT.full]);else{const{attrs:ye,classes:$e}=function Nw(p){const m=[],g=[];let _=1,C=2;for(;_0&&Zo(P,L,$e.join(" "))}if(Ne=bn(ge,22),void 0!==g){const ye=Ne.projection=[];for(let $e=0;$e=0;_--){const C=p[_];C.hostVars=m+=C.hostVars,C.hostAttrs=Fs(C.hostAttrs,g=Fs(g,C.hostAttrs))}}(_)}function wl(p){return p===dt?{}:p===je?[]:p}function Tv(p,m){const g=p.viewQuery;p.viewQuery=g?(_,C)=>{m(_,C),g(_,C)}:m}function Ih(p,m){const g=p.contentQueries;p.contentQueries=g?(_,C,w)=>{m(_,C,w),g(_,C,w)}:m}function bE(p,m){const g=p.hostBindings;p.hostBindings=g?(_,C)=>{m(_,C),g(_,C)}:m}let kh=null;function Pr(){if(!kh){const p=ce.Symbol;if(p&&p.iterator)kh=p.iterator;else{const m=Object.getOwnPropertyNames(Map.prototype);for(let g=0;gE(ze(_t[_.index])):_.index;let $e=null;if(!E&&S&&($e=function ft(p,m,g,_){const C=p.cleanup;if(null!=C)for(let w=0;wS?E[S]:null}"string"==typeof v&&(w+=2)}return null}(p,m,C,_.index)),null!==$e)($e.__ngLastListenerFn__||$e).__ngNextListenerFn__=w,$e.__ngLastListenerFn__=w,re=!1;else{w=Pv(_,m,L,w,!1);const _t=g.listen(Ne,C,w);J.push(w,_t),R&&R.push(C,ye,Je,Je+1)}}else w=Pv(_,m,L,w,!1);const ge=_.outputs;let Ae;if(re&&null!==ge&&(Ae=ge[C])){const Pe=Ae.length;if(Pe)for(let Ne=0;Ne0;)m=m[15],p--;return m}(p,le.lFrame.contextLView))[8]}(p)}function xE(p,m){let g=null;const _=function YT(p){const m=p.attrs;if(null!=m){const g=m.indexOf(5);if(0==(1&g))return m[g+1]}return null}(p);for(let C=0;C=0}const fi={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function o_(p){return p.substring(fi.key,fi.keyEnd)}function s_(p,m){const g=fi.textEnd;return g===m?-1:(m=fi.keyEnd=function Ad(p,m,g){for(;m32;)m++;return m}(p,fi.key=m,g),ds(p,m,g))}function ds(p,m,g){for(;m=0;g=s_(m,g))Wi(p,o_(m),!0)}function cr(p,m,g,_){const C=be(),w=ht(),v=Zn(2);w.firstUpdatePass&&Yh(w,p,v,_),m!==lt&&Si(C,v,m)&&d_(w,w.data[ki()],C,C[11],p,C[v+1]=function DE(p,m){return null==p||("string"==typeof m?p+=m:"object"==typeof p&&(p=Q(tr(p)))),p}(m,g),_,v)}function An(p,m,g,_){const C=ht(),w=Zn(2);C.firstUpdatePass&&Yh(C,null,w,_);const v=be();if(g!==lt&&Si(v,w,g)){const E=C.data[ki()];if(Yv(E,_)&&!c_(C,w)){let S=_?E.classesWithoutHost:E.stylesWithoutHost;null!==S&&(g=G(S,g||"")),Fh(C,E,v,g,_)}else!function Wv(p,m,g,_,C,w,v,E){C===lt&&(C=je);let S=0,P=0,R=0=p.expandoStartIndex}function Yh(p,m,g,_){const C=p.data;if(null===C[g+1]){const w=C[ki()],v=c_(p,g);Yv(w,_)&&null===m&&!v&&(m=!1),m=function Uv(p,m,g,_){const C=yr(p);let w=_?m.residualClasses:m.residualStyles;if(null===C)0===(_?m.classBindings:m.styleBindings)&&(g=xd(g=kr(null,p,m,g,_),m.attrs,_),w=null);else{const v=m.directiveStylingLast;if(-1===v||p[v]!==C)if(g=kr(C,p,m,g,_),null===w){let S=function Gv(p,m,g){const _=g?m.classBindings:m.styleBindings;if(0!==_a(_))return p[Bn(_)]}(p,m,_);void 0!==S&&Array.isArray(S)&&(S=kr(null,p,m,S[1],_),S=xd(S,m.attrs,_),function Qh(p,m,g,_){p[Bn(g?m.classBindings:m.styleBindings)]=_}(p,m,_,S))}else w=function Jh(p,m,g){let _;const C=m.directiveEnd;for(let w=1+m.directiveStylingLast;w0)&&(P=!0)}else R=g;if(C)if(0!==S){const J=Bn(p[E+1]);p[_+1]=od(J,E),0!==J&&(p[J+1]=pg(p[J+1],_)),p[E+1]=function ev(p,m){return 131071&p|m<<17}(p[E+1],_)}else p[_+1]=od(E,0),0!==E&&(p[E+1]=pg(p[E+1],_)),E=_;else p[_+1]=od(S,0),0===E?E=_:p[S+1]=pg(p[S+1],_),S=_;P&&(p[_+1]=qe(p[_+1])),a_(p,R,_,!0),a_(p,R,_,!1),function kv(p,m,g,_,C){const w=C?p.residualClasses:p.residualStyles;null!=w&&"string"==typeof m&&jo(w,m)>=0&&(g[_+1]=ba(g[_+1]))}(m,R,p,_,w),v=od(E,S),w?m.classBindings=v:m.styleBindings=v}(C,w,m,g,v,_)}}function kr(p,m,g,_,C){let w=null;const v=g.directiveEnd;let E=g.directiveStylingLast;for(-1===E?E=g.directiveStart:E++;E0;){const S=p[C],P=Array.isArray(S),R=P?S[1]:S,L=null===R;let J=g[C+1];J===lt&&(J=L?je:void 0);let re=L?Du(J,_):R===_?J:void 0;if(P&&!Kh(re)&&(re=Du(S,_)),Kh(re)&&(E=re,v))return E;const ge=p[C+1];C=v?Bn(ge):_a(ge)}if(null!==m){let S=w?m.residualClasses:m.residualStyles;null!=S&&(E=Du(S,_))}return E}function Kh(p){return void 0!==p}function Yv(p,m){return 0!=(p.flags&(m?16:32))}function Qv(p,m=""){const g=be(),_=ht(),C=p+22,w=_.firstCreatePass?ts(_,C,1,m,null):_.data[C],v=g[C]=function Gm(p,m){return p.createText(m)}(g[11],m);eh(_,g,v,w),Lt(w,!1)}function u_(p){return Zh("",p,""),u_}function Zh(p,m,g){const _=be(),C=xl(_,p,m,g);return C!==lt&&ar(_,ki(),C),Zh}function h_(p,m,g,_,C){const w=be(),v=function Tl(p,m,g,_,C,w){const E=Ir(p,Kn(),g,C);return Zn(2),E?m+he(g)+_+he(C)+w:lt}(w,p,m,g,_,C);return v!==lt&&ar(w,ki(),v),h_}function p_(p,m,g,_,C,w,v){const E=be(),S=function as(p,m,g,_,C,w,v,E){const P=Al(p,Kn(),g,C,v);return Zn(3),P?m+he(g)+_+he(C)+w+he(v)+E:lt}(E,p,m,g,_,C,w,v);return S!==lt&&ar(E,ki(),S),p_}function Td(p,m,g,_,C,w,v,E,S,P,R){const L=be(),J=Sl(L,p,m,g,_,C,w,v,E,S,P,R);return J!==lt&&ar(L,ki(),J),Td}function f_(p,m,g){An(Wi,lr,xl(be(),p,m,g),!0)}function oo(p,m,g){const _=be();return Si(_,Fa(),m)&&Ei(ht(),Jt(),_,p,m,_[11],g,!0),oo}function x_(p,m,g){const _=be();if(Si(_,Fa(),m)){const w=ht(),v=Jt();Ei(w,v,_,p,m,zg(yr(w.data),v,_),g,!0)}return x_}const so=void 0;var sA=["en",[["a","p"],["AM","PM"],so],[["AM","PM"],so,so],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],so,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],so,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",so,"{1} 'at' {0}",so],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function oA(p){const g=Math.floor(Math.abs(p)),_=p.toString().replace(/^[^.]*\.?/,"").length;return 1===g&&0===_?1:5}];let Rl={};function T_(p){const m=function FE(p){return p.toLowerCase().replace(/_/g,"-")}(p);let g=M_(m);if(g)return g;const _=m.split("-")[0];if(g=M_(_),g)return g;if("en"===_)return sA;throw new ie(701,!1)}function S_(p){return T_(p)[Xe.PluralCase]}function M_(p){return p in Rl||(Rl[p]=ce.ng&&ce.ng.common&&ce.ng.common.locales&&ce.ng.common.locales[p]),Rl[p]}var Xe=(()=>((Xe=Xe||{})[Xe.LocaleId=0]="LocaleId",Xe[Xe.DayPeriodsFormat=1]="DayPeriodsFormat",Xe[Xe.DayPeriodsStandalone=2]="DayPeriodsStandalone",Xe[Xe.DaysFormat=3]="DaysFormat",Xe[Xe.DaysStandalone=4]="DaysStandalone",Xe[Xe.MonthsFormat=5]="MonthsFormat",Xe[Xe.MonthsStandalone=6]="MonthsStandalone",Xe[Xe.Eras=7]="Eras",Xe[Xe.FirstDayOfWeek=8]="FirstDayOfWeek",Xe[Xe.WeekendRange=9]="WeekendRange",Xe[Xe.DateFormat=10]="DateFormat",Xe[Xe.TimeFormat=11]="TimeFormat",Xe[Xe.DateTimeFormat=12]="DateTimeFormat",Xe[Xe.NumberSymbols=13]="NumberSymbols",Xe[Xe.NumberFormats=14]="NumberFormats",Xe[Xe.CurrencyCode=15]="CurrencyCode",Xe[Xe.CurrencySymbol=16]="CurrencySymbol",Xe[Xe.CurrencyName=17]="CurrencyName",Xe[Xe.Currencies=18]="Currencies",Xe[Xe.Directionality=19]="Directionality",Xe[Xe.PluralCase=20]="PluralCase",Xe[Xe.ExtraData=21]="ExtraData",Xe))();const Il="en-US";let D_=Il;function cp(p,m,g,_,C){if(p=te(p),Array.isArray(p))for(let w=0;w>20;if(an(p)||!p.multi){const re=new Ls(S,C,ul),ge=up(E,m,C?R:R+J,L);-1===ge?(Tc(js(P,v),w,E),dp(w,p,m.length),m.push(E),P.directiveStart++,P.directiveEnd++,C&&(P.providerIndexes+=1048576),g.push(re),v.push(re)):(g[ge]=re,v[ge]=re)}else{const re=up(E,m,R+J,L),ge=up(E,m,R,R+J),Ae=re>=0&&g[re],Pe=ge>=0&&g[ge];if(C&&!Pe||!C&&!Ae){Tc(js(P,v),w,E);const Ne=function AA(p,m,g,_,C){const w=new Ls(p,g,ul);return w.multi=[],w.index=m,w.componentProviders=0,Y_(w,C,_&&!g),w}(C?hp:Q_,g.length,C,_,S);!C&&Pe&&(g[ge].providerFactory=Ne),dp(w,p,m.length,0),m.push(E),P.directiveStart++,P.directiveEnd++,C&&(P.providerIndexes+=1048576),g.push(Ne),v.push(Ne)}else dp(w,p,re>-1?re:ge,Y_(g[C?ge:re],S,!C&&_));!C&&_&&Pe&&g[ge].componentProviders++}}}function dp(p,m,g,_){const C=an(m),w=function Em(p){return!!p.useClass}(m);if(C||w){const S=(w?te(m.useClass):m).prototype.ngOnDestroy;if(S){const P=p.destroyHooks||(p.destroyHooks=[]);if(!C&&m.multi){const R=P.indexOf(g);-1===R?P.push(g,[_,S]):P[R+1].push(_,S)}else P.push(g,S)}}}function Y_(p,m,g){return g&&p.componentProviders++,p.multi.push(m)-1}function up(p,m,g,_){for(let C=g;C<_;C++)if(m[C]===p)return C;return-1}function Q_(p,m,g,_){return pp(this.multi,[])}function hp(p,m,g,_){const C=this.multi;let w;if(this.providerFactory){const v=this.providerFactory.componentProviders,E=Us(g,g[1],this.providerFactory.index,_);w=E.slice(0,v),pp(C,w);for(let S=v;S{g.providersResolver=(_,C)=>function vA(p,m,g){const _=ht();if(_.firstCreatePass){const C=tn(p);cp(g,_.data,_.blueprint,C,!0),cp(m,_.data,_.blueprint,C,!1)}}(_,C?C(p):p,m)}}class _s{}class bs{}function xA(p,m){return new dn(p,m??null)}class dn extends _s{constructor(m,g){super(),this._parent=g,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Rh(this);const _=Ui(m);this._bootstrapComponents=ma(_.bootstrap),this._r3Injector=qw(m,g,[{provide:_s,useValue:this},{provide:Za,useValue:this.componentFactoryResolver}],Q(m),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(m)}get injector(){return this._r3Injector}destroy(){const m=this._r3Injector;!m.destroyed&&m.destroy(),this.destroyCbs.forEach(g=>g()),this.destroyCbs=null}onDestroy(m){this.destroyCbs.push(m)}}class fp extends bs{constructor(m){super(),this.moduleType=m}create(m){return new dn(this.moduleType,m)}}class ho extends _s{constructor(m,g,_){super(),this.componentFactoryResolver=new Rh(this),this.instance=null;const C=new Jc([...m,{provide:_s,useValue:this},{provide:Za,useValue:this.componentFactoryResolver}],g||Qo(),_,new Set(["environment"]));this.injector=C,C.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(m){this.injector.onDestroy(m)}}function mp(p,m,g=null){return new ho(p,m,g).injector}function EA(p,m,g){const _=Fi()+p,C=be();return C[_]===lt?Rr(C,_,g?m.call(g):m()):function vl(p,m){return p[m]}(C,_)}function SA(p,m,g,_){return PA(be(),Fi(),p,m,g,_)}function MA(p,m,g,_,C){return RA(be(),Fi(),p,m,g,_,C)}function Ud(p,m){const g=p[m];return g===lt?void 0:g}function PA(p,m,g,_,C,w){const v=m+g;return Si(p,v,C)?Rr(p,v+1,w?_.call(w,C):_(C)):Ud(p,v+1)}function RA(p,m,g,_,C,w,v){const E=m+g;return Ir(p,E,C,w)?Rr(p,E+2,v?_.call(v,C,w):_(C,w)):Ud(p,E+2)}function kA(p,m){const g=ht();let _;const C=p+22;g.firstCreatePass?(_=function cS(p,m){if(m)for(let g=m.length-1;g>=0;g--){const _=m[g];if(p===_.name)return _}}(m,g.pipeRegistry),g.data[C]=_,_.onDestroy&&(g.destroyHooks||(g.destroyHooks=[])).push(C,_.onDestroy)):_=g.data[C];const w=_.factory||(_.factory=De(_.type)),v=Di(ul);try{const E=Ns(!1),S=w();return Ns(E),function Hv(p,m,g,_){g>=p.data.length&&(p.data[g]=null,p.blueprint[g]=null),m[g]=_}(g,be(),C,S),S}finally{Di(v)}}function bp(p,m,g){const _=p+22,C=be(),w=Gi(C,_);return Ul(C,_)?PA(C,Fi(),m,w.transform,g,w):w.transform(g)}function VA(p,m,g,_){const C=p+22,w=be(),v=Gi(w,C);return Ul(w,C)?RA(w,Fi(),m,v.transform,g,_,v):v.transform(g,_)}function BA(p,m,g,_,C){const w=p+22,v=be(),E=Gi(v,w);return Ul(v,w)?function IA(p,m,g,_,C,w,v,E){const S=m+g;return Al(p,S,C,w,v)?Rr(p,S+3,E?_.call(E,C,w,v):_(C,w,v)):Ud(p,S+3)}(v,Fi(),m,E.transform,g,_,C,E):E.transform(g,_,C)}function Ul(p,m){return p[1].data[m].pure}function Qi(p){return m=>{setTimeout(p,void 0,m)}}const Lr=class uS extends T.x{constructor(m=!1){super(),this.__isAsync=m}emit(m){super.next(m)}subscribe(m,g,_){let C=m,w=g||(()=>null),v=_;if(m&&"object"==typeof m){const S=m;C=S.next?.bind(S),w=S.error?.bind(S),v=S.complete?.bind(S)}this.__isAsync&&(w=Qi(w),C&&(C=Qi(C)),v&&(v=Qi(v)));const E=super.subscribe({next:C,error:w,complete:v});return m instanceof u.w0&&m.add(E),E}};function hS(){return this._results[Pr()]()}class Cp{constructor(m=!1){this._emitDistinctChangesOnly=m,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const g=Pr(),_=Cp.prototype;_[g]||(_[g]=hS)}get changes(){return this._changes||(this._changes=new Lr)}get(m){return this._results[m]}map(m){return this._results.map(m)}filter(m){return this._results.filter(m)}find(m){return this._results.find(m)}reduce(m,g){return this._results.reduce(m,g)}forEach(m){this._results.forEach(m)}some(m){return this._results.some(m)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(m,g){const _=this;_.dirty=!1;const C=Cn(m);(this._changesDetected=!function Qf(p,m,g){if(p.length!==m.length)return!1;for(let _=0;_{class p{}return p.__NG_ELEMENT_ID__=FA,p})();const pS=Gd,fS=class extends pS{constructor(m,g,_){super(),this._declarationLView=m,this._declarationTContainer=g,this.elementRef=_}createEmbeddedView(m,g){const _=this._declarationTContainer.tViews,C=cd(this._declarationLView,_,m,16,null,_.declTNode,null,null,null,null,g||null);C[17]=this._declarationLView[this._declarationTContainer.index];const v=this._declarationLView[19];return null!==v&&(C[19]=v.createEmbeddedView(_)),dd(_,C,m),new _l(C)}};function FA(){return yp(qt(),be())}function yp(p,m){return 4&p.type?new fS(m,p,pa(p,m)):null}let wp=(()=>{class p{}return p.__NG_ELEMENT_ID__=mS,p})();function mS(){return zA(qt(),be())}const gS=wp,NA=class extends gS{constructor(m,g,_){super(),this._lContainer=m,this._hostTNode=g,this._hostLView=_}get element(){return pa(this._hostTNode,this._hostLView)}get injector(){return new qi(this._hostTNode,this._hostLView)}get parentInjector(){const m=xc(this._hostTNode,this._hostLView);if(vc(m)){const g=aa(m,this._hostLView),_=Xn(m);return new qi(g[1].data[_+8],g)}return new qi(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(m){const g=jA(this._lContainer);return null!==g&&g[m]||null}get length(){return this._lContainer.length-10}createEmbeddedView(m,g,_){let C,w;"number"==typeof _?C=_:null!=_&&(C=_.index,w=_.injector);const v=m.createEmbeddedView(g||{},w);return this.insert(v,C),v}createComponent(m,g,_,C,w){const v=m&&!function qs(p){return"function"==typeof p}(m);let E;if(v)E=g;else{const L=g||{};E=L.index,_=L.injector,C=L.projectableNodes,w=L.environmentInjector||L.ngModuleRef}const S=v?m:new bl(Et(m)),P=_||this.parentInjector;if(!w&&null==S.ngModule){const J=(v?P:this.parentInjector).get(Ti,null);J&&(w=J)}const R=S.create(P,C,void 0,w);return this.insert(R.hostView,E),R}insert(m,g){const _=m._lView,C=_[1];if(function D(p){return gn(p[3])}(_)){const R=this.indexOf(m);if(-1!==R)this.detach(R);else{const L=_[3],J=new NA(L,L[6],L[3]);J.detach(J.indexOf(m))}}const w=this._adjustIndex(g),v=this._lContainer;!function qT(p,m,g,_){const C=10+_,w=g.length;_>0&&(g[C-1][4]=m),_0)_.push(v[E/2]);else{const P=w[E+1],R=m[-S];for(let L=10;L{class p{constructor(g){this.appInits=g,this.resolve=Ql,this.reject=Ql,this.initialized=!1,this.done=!1,this.donePromise=new Promise((_,C)=>{this.resolve=_,this.reject=C})}runInitializers(){if(this.initialized)return;const g=[],_=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let C=0;C{w.subscribe({complete:E,error:S})});g.push(v)}}Promise.all(g).then(()=>{_()}).catch(C=>{this.reject(C)}),0===g.length&&_(),this.initialized=!0}}return p.\u0275fac=function(g){return new(g||p)(di(Vi,8))},p.\u0275prov=Dt({token:p,factory:p.\u0275fac,providedIn:"root"}),p})();const Op=new At("AppId",{providedIn:"root",factory:function c0(){return`${vs()}${vs()}${vs()}`}});function vs(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Eb=new At("Platform Initializer"),Lp=new At("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Jl=new At("appBootstrapListener"),Fp=new At("AnimationModuleType");let d0=(()=>{class p{log(g){console.log(g)}warn(g){console.warn(g)}}return p.\u0275fac=function(g){return new(g||p)},p.\u0275prov=Dt({token:p,factory:p.\u0275fac,providedIn:"platform"}),p})();const Np=new At("LocaleId",{providedIn:"root",factory:()=>em(Np,Qe.Optional|Qe.SkipSelf)||function AS(){return typeof $localize<"u"&&$localize.locale||Il}()}),xS=new At("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class TS{constructor(m,g){this.ngModuleFactory=m,this.componentFactories=g}}let u0=(()=>{class p{compileModuleSync(g){return new fp(g)}compileModuleAsync(g){return Promise.resolve(this.compileModuleSync(g))}compileModuleAndAllComponentsSync(g){const _=this.compileModuleSync(g),w=ma(Ui(g).declarations).reduce((v,E)=>{const S=Et(E);return S&&v.push(new bl(S)),v},[]);return new TS(_,w)}compileModuleAndAllComponentsAsync(g){return Promise.resolve(this.compileModuleAndAllComponentsSync(g))}clearCache(){}clearCacheFor(g){}getModuleId(g){}}return p.\u0275fac=function(g){return new(g||p)},p.\u0275prov=Dt({token:p,factory:p.\u0275fac,providedIn:"root"}),p})();const As=(()=>Promise.resolve(0))();function mo(p){typeof Zone>"u"?As.then(()=>{p&&p.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",p)}class Zi{constructor({enableLongStackTrace:m=!1,shouldCoalesceEventChangeDetection:g=!1,shouldCoalesceRunChangeDetection:_=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Lr(!1),this.onMicrotaskEmpty=new Lr(!1),this.onStable=new Lr(!1),this.onError=new Lr(!1),typeof Zone>"u")throw new ie(908,!1);Zone.assertZonePatched();const C=this;if(C._nesting=0,C._outer=C._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const w=Zone.AsyncStackTaggingZoneSpec;C._inner=C._inner.fork(new w("Angular"))}Zone.TaskTrackingZoneSpec&&(C._inner=C._inner.fork(new Zone.TaskTrackingZoneSpec)),m&&Zone.longStackTraceZoneSpec&&(C._inner=C._inner.fork(Zone.longStackTraceZoneSpec)),C.shouldCoalesceEventChangeDetection=!_&&g,C.shouldCoalesceRunChangeDetection=_,C.lastRequestAnimationFrameId=-1,C.nativeRequestAnimationFrame=function jp(){let p=ce.requestAnimationFrame,m=ce.cancelAnimationFrame;if(typeof Zone<"u"&&p&&m){const g=p[Zone.__symbol__("OriginalDelegate")];g&&(p=g);const _=m[Zone.__symbol__("OriginalDelegate")];_&&(m=_)}return{nativeRequestAnimationFrame:p,nativeCancelAnimationFrame:m}}().nativeRequestAnimationFrame,function Db(p){const m=()=>{!function Jd(p){p.isCheckStableRunning||-1!==p.lastRequestAnimationFrameId||(p.lastRequestAnimationFrameId=p.nativeRequestAnimationFrame.call(ce,()=>{p.fakeTopEventTask||(p.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{p.lastRequestAnimationFrameId=-1,Kd(p),p.isCheckStableRunning=!0,Qd(p),p.isCheckStableRunning=!1},void 0,()=>{},()=>{})),p.fakeTopEventTask.invoke()}),Kd(p))}(p)};p._inner=p._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(g,_,C,w,v,E)=>{try{return Up(p),g.invokeTask(C,w,v,E)}finally{(p.shouldCoalesceEventChangeDetection&&"eventTask"===w.type||p.shouldCoalesceRunChangeDetection)&&m(),Zd(p)}},onInvoke:(g,_,C,w,v,E,S)=>{try{return Up(p),g.invoke(C,w,v,E,S)}finally{p.shouldCoalesceRunChangeDetection&&m(),Zd(p)}},onHasTask:(g,_,C,w)=>{g.hasTask(C,w),_===C&&("microTask"==w.change?(p._hasPendingMicrotasks=w.microTask,Kd(p),Qd(p)):"macroTask"==w.change&&(p.hasPendingMacrotasks=w.macroTask))},onHandleError:(g,_,C,w)=>(g.handleError(C,w),p.runOutsideAngular(()=>p.onError.emit(w)),!1)})}(C)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Zi.isInAngularZone())throw new ie(909,!1)}static assertNotInAngularZone(){if(Zi.isInAngularZone())throw new ie(909,!1)}run(m,g,_){return this._inner.run(m,g,_)}runTask(m,g,_,C){const w=this._inner,v=w.scheduleEventTask("NgZoneEvent: "+C,m,zp,Ql,Ql);try{return w.runTask(v,g,_)}finally{w.cancelTask(v)}}runGuarded(m,g,_){return this._inner.runGuarded(m,g,_)}runOutsideAngular(m){return this._outer.run(m)}}const zp={};function Qd(p){if(0==p._nesting&&!p.hasPendingMicrotasks&&!p.isStable)try{p._nesting++,p.onMicrotaskEmpty.emit(null)}finally{if(p._nesting--,!p.hasPendingMicrotasks)try{p.runOutsideAngular(()=>p.onStable.emit(null))}finally{p.isStable=!0}}}function Kd(p){p.hasPendingMicrotasks=!!(p._hasPendingMicrotasks||(p.shouldCoalesceEventChangeDetection||p.shouldCoalesceRunChangeDetection)&&-1!==p.lastRequestAnimationFrameId)}function Up(p){p._nesting++,p.isStable&&(p.isStable=!1,p.onUnstable.emit(null))}function Zd(p){p._nesting--,Qd(p)}class SS{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Lr,this.onMicrotaskEmpty=new Lr,this.onStable=new Lr,this.onError=new Lr}run(m,g,_){return m.apply(g,_)}runGuarded(m,g,_){return m.apply(g,_)}runOutsideAngular(m){return m()}runTask(m,g,_,C){return m.apply(g,_)}}const p0=new At(""),Hb=new At("");let xs,MS=(()=>{class p{constructor(g,_,C){this._ngZone=g,this.registry=_,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,xs||(function Zl(p){xs=p}(C),C.addToWindow(_)),this._watchAngularEvents(),g.run(()=>{this.taskTrackingZone=typeof Zone>"u"?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:()=>{Zi.assertNotInAngularZone(),mo(()=>{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())mo(()=>{for(;0!==this._callbacks.length;){let g=this._callbacks.pop();clearTimeout(g.timeoutId),g.doneCb(this._didWork)}this._didWork=!1});else{let g=this.getPendingTasks();this._callbacks=this._callbacks.filter(_=>!_.updateCb||!_.updateCb(g)||(clearTimeout(_.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(g=>({source:g.source,creationLocation:g.creationLocation,data:g.data})):[]}addCallback(g,_,C){let w=-1;_&&_>0&&(w=setTimeout(()=>{this._callbacks=this._callbacks.filter(v=>v.timeoutId!==w),g(this._didWork,this.getPendingTasks())},_)),this._callbacks.push({doneCb:g,timeoutId:w,updateCb:C})}whenStable(g,_,C){if(C&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(g,_,C),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(g){this.registry.registerApplication(g,this)}unregisterApplication(g){this.registry.unregisterApplication(g)}findProviders(g,_,C){return[]}}return p.\u0275fac=function(g){return new(g||p)(di(Zi),di(Kl),di(Hb))},p.\u0275prov=Dt({token:p,factory:p.\u0275fac}),p})(),Kl=(()=>{class p{constructor(){this._applications=new Map}registerApplication(g,_){this._applications.set(g,_)}unregisterApplication(g){this._applications.delete(g)}unregisterAllApplications(){this._applications.clear()}getTestability(g){return this._applications.get(g)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(g,_=!0){return xs?.findTestabilityInTree(this,g,_)??null}}return p.\u0275fac=function(g){return new(g||p)},p.\u0275prov=Dt({token:p,factory:p.\u0275fac,providedIn:"platform"}),p})(),Fn=null;const Pb=new At("AllowMultipleToken"),Xl=new At("PlatformDestroyListeners");class m0{constructor(m,g){this.name=m,this.token=g}}function Gp(p,m,g=[]){const _=`Platform: ${m}`,C=new At(_);return(w=[])=>{let v=eu();if(!v||v.injector.get(Pb,!1)){const E=[...g,...w,{provide:C,useValue:!0}];p?p(E):function Ib(p){if(Fn&&!Fn.get(Pb,!1))throw new ie(400,!1);Fn=p;const m=p.get(tu);(function _0(p){const m=p.get(Eb,null);m&&m.forEach(g=>g())})(p)}(function Xd(p=[],m){return rr.create({name:m,providers:[{provide:Ka,useValue:"platform"},{provide:Xl,useValue:new Set([()=>Fn=null])},...p]})}(E,_))}return function PS(p){const m=eu();if(!m)throw new ie(401,!1);return m}()}}function eu(){return Fn?.get(tu)??null}let tu=(()=>{class p{constructor(g){this._injector=g,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(g,_){const C=function IS(p,m){let g;return g="noop"===p?new SS:("zone.js"===p?void 0:p)||new Zi(m),g}(_?.ngZone,function kb(p){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!p||!p.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!p||!p.ngZoneRunCoalescing)||!1}}(_)),w=[{provide:Zi,useValue:C}];return C.run(()=>{const v=rr.create({providers:w,parent:this.injector,name:g.moduleType.name}),E=g.create(v),S=E.injector.get(Xc,null);if(!S)throw new ie(402,!1);return C.runOutsideAngular(()=>{const P=C.onError.subscribe({next:R=>{S.handleError(R)}});E.onDestroy(()=>{ec(this._modules,E),P.unsubscribe()})}),function Vb(p,m,g){try{const _=g();return $t(_)?_.catch(C=>{throw m.runOutsideAngular(()=>p.handleError(C)),C}):_}catch(_){throw m.runOutsideAngular(()=>p.handleError(_)),_}}(S,C,()=>{const P=E.injector.get(hn);return P.runInitializers(),P.donePromise.then(()=>(function Vl(p){kt(p,"Expected localeId to be defined"),"string"==typeof p&&(D_=p.toLowerCase().replace(/_/g,"-"))}(E.injector.get(Np,Il)||Il),this._moduleDoBootstrap(E),E))})})}bootstrapModule(g,_=[]){const C=Ts({},_);return function f0(p,m,g){const _=new fp(g);return Promise.resolve(_)}(0,0,g).then(w=>this.bootstrapModuleFactory(w,C))}_moduleDoBootstrap(g){const _=g.injector.get(Ta);if(g._bootstrapComponents.length>0)g._bootstrapComponents.forEach(C=>_.bootstrap(C));else{if(!g.instance.ngDoBootstrap)throw new ie(403,!1);g.instance.ngDoBootstrap(_)}this._modules.push(g)}onDestroy(g){this._destroyListeners.push(g)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ie(404,!1);this._modules.slice().forEach(_=>_.destroy()),this._destroyListeners.forEach(_=>_());const g=this._injector.get(Xl,null);g&&(g.forEach(_=>_()),g.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return p.\u0275fac=function(g){return new(g||p)(di(rr))},p.\u0275prov=Dt({token:p,factory:p.\u0275fac,providedIn:"platform"}),p})();function Ts(p,m){return Array.isArray(m)?m.reduce(Ts,p):{...p,...m}}let Ta=(()=>{class p{constructor(g,_,C){this._zone=g,this._injector=_,this._exceptionHandler=C,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const w=new V.y(E=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{E.next(this._stable),E.complete()})}),v=new V.y(E=>{let S;this._zone.runOutsideAngular(()=>{S=this._zone.onStable.subscribe(()=>{Zi.assertNotInAngularZone(),mo(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,E.next(!0))})})});const P=this._zone.onUnstable.subscribe(()=>{Zi.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{E.next(!1)}))});return()=>{S.unsubscribe(),P.unsubscribe()}});this.isStable=(0,O.T)(w,v.pipe((0,I.B)()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(g,_){const C=g instanceof Zc;if(!this._injector.get(hn).done)throw!C&&Wl(g),new ie(405,false);let v;v=C?g:this._injector.get(Za).resolveComponentFactory(g),this.componentTypes.push(v.componentType);const E=function Rb(p){return p.isBoundToModule}(v)?void 0:this._injector.get(_s),P=v.create(rr.NULL,[],_||v.selector,E),R=P.location.nativeElement,L=P.injector.get(p0,null);return L?.registerApplication(R),P.onDestroy(()=>{this.detachView(P.hostView),ec(this.components,P),L?.unregisterApplication(R)}),this._loadComponent(P),P}tick(){if(this._runningTick)throw new ie(101,!1);try{this._runningTick=!0;for(let g of this._views)g.detectChanges()}catch(g){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(g))}finally{this._runningTick=!1}}attachView(g){const _=g;this._views.push(_),_.attachToAppRef(this)}detachView(g){const _=g;ec(this._views,_),_.detachFromAppRef()}_loadComponent(g){this.attachView(g.hostView),this.tick(),this.components.push(g),this._injector.get(Jl,[]).concat(this._bootstrapListeners).forEach(C=>C(g))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(g=>g()),this._views.slice().forEach(g=>g.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(g){return this._destroyListeners.push(g),()=>ec(this._destroyListeners,g)}destroy(){if(this._destroyed)throw new ie(406,!1);const g=this._injector;g.destroy&&!g.destroyed&&g.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return p.\u0275fac=function(g){return new(g||p)(di(Zi),di(Ti),di(Xc))},p.\u0275prov=Dt({token:p,factory:p.\u0275fac,providedIn:"root"}),p})();function ec(p,m){const g=p.indexOf(m);g>-1&&p.splice(g,1)}let Bb=!0;function kS(){Bb=!1}let y0=(()=>{class p{}return p.__NG_ELEMENT_ID__=Lb,p})();function Lb(p){return function w0(p,m,g){if(Va(p)&&!g){const _=bt(p.index,m);return new _l(_,_)}return 47&p.type?new _l(m[16],m):null}(qt(),be(),16==(16&p))}class zb{constructor(){}supports(m){return wn(m)}create(m){return new S0(m)}}const Ub=(p,m)=>m;class S0{constructor(m){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=m||Ub}forEachItem(m){let g;for(g=this._itHead;null!==g;g=g._next)m(g)}forEachOperation(m){let g=this._itHead,_=this._removalsHead,C=0,w=null;for(;g||_;){const v=!_||g&&g.currentIndex{v=this._trackByFn(C,E),null!==g&&Object.is(g.trackById,v)?(_&&(g=this._verifyReinsertion(g,E,v,C)),Object.is(g.item,E)||this._addIdentityChange(g,E)):(g=this._mismatch(g,E,v,C),_=!0),g=g._next,C++}),this.length=C;return this._truncate(g),this.collection=m,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let m;for(m=this._previousItHead=this._itHead;null!==m;m=m._next)m._nextPrevious=m._next;for(m=this._additionsHead;null!==m;m=m._nextAdded)m.previousIndex=m.currentIndex;for(this._additionsHead=this._additionsTail=null,m=this._movesHead;null!==m;m=m._nextMoved)m.previousIndex=m.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(m,g,_,C){let w;return null===m?w=this._itTail:(w=m._prev,this._remove(m)),null!==(m=null===this._unlinkedRecords?null:this._unlinkedRecords.get(_,null))?(Object.is(m.item,g)||this._addIdentityChange(m,g),this._reinsertAfter(m,w,C)):null!==(m=null===this._linkedRecords?null:this._linkedRecords.get(_,C))?(Object.is(m.item,g)||this._addIdentityChange(m,g),this._moveAfter(m,w,C)):m=this._addAfter(new Gb(g,_),w,C),m}_verifyReinsertion(m,g,_,C){let w=null===this._unlinkedRecords?null:this._unlinkedRecords.get(_,null);return null!==w?m=this._reinsertAfter(w,m._prev,C):m.currentIndex!=C&&(m.currentIndex=C,this._addToMoves(m,C)),m}_truncate(m){for(;null!==m;){const g=m._next;this._addToRemovals(this._unlink(m)),m=g}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(m,g,_){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(m);const C=m._prevRemoved,w=m._nextRemoved;return null===C?this._removalsHead=w:C._nextRemoved=w,null===w?this._removalsTail=C:w._prevRemoved=C,this._insertAfter(m,g,_),this._addToMoves(m,_),m}_moveAfter(m,g,_){return this._unlink(m),this._insertAfter(m,g,_),this._addToMoves(m,_),m}_addAfter(m,g,_){return this._insertAfter(m,g,_),this._additionsTail=null===this._additionsTail?this._additionsHead=m:this._additionsTail._nextAdded=m,m}_insertAfter(m,g,_){const C=null===g?this._itHead:g._next;return m._next=C,m._prev=g,null===C?this._itTail=m:C._prev=m,null===g?this._itHead=m:g._next=m,null===this._linkedRecords&&(this._linkedRecords=new nu),this._linkedRecords.put(m),m.currentIndex=_,m}_remove(m){return this._addToRemovals(this._unlink(m))}_unlink(m){null!==this._linkedRecords&&this._linkedRecords.remove(m);const g=m._prev,_=m._next;return null===g?this._itHead=_:g._next=_,null===_?this._itTail=g:_._prev=g,m}_addToMoves(m,g){return m.previousIndex===g||(this._movesTail=null===this._movesTail?this._movesHead=m:this._movesTail._nextMoved=m),m}_addToRemovals(m){return null===this._unlinkedRecords&&(this._unlinkedRecords=new nu),this._unlinkedRecords.put(m),m.currentIndex=null,m._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=m,m._prevRemoved=null):(m._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=m),m}_addIdentityChange(m,g){return m.item=g,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=m:this._identityChangesTail._nextIdentityChange=m,m}}class Gb{constructor(m,g){this.item=m,this.trackById=g,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 M0{constructor(){this._head=null,this._tail=null}add(m){null===this._head?(this._head=this._tail=m,m._nextDup=null,m._prevDup=null):(this._tail._nextDup=m,m._prevDup=this._tail,m._nextDup=null,this._tail=m)}get(m,g){let _;for(_=this._head;null!==_;_=_._nextDup)if((null===g||g<=_.currentIndex)&&Object.is(_.trackById,m))return _;return null}remove(m){const g=m._prevDup,_=m._nextDup;return null===g?this._head=_:g._nextDup=_,null===_?this._tail=g:_._prevDup=g,null===this._head}}class nu{constructor(){this.map=new Map}put(m){const g=m.trackById;let _=this.map.get(g);_||(_=new M0,this.map.set(g,_)),_.add(m)}get(m,g){const C=this.map.get(m);return C?C.get(m,g):null}remove(m){const g=m.trackById;return this.map.get(g).remove(m)&&this.map.delete(g),m}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function qb(p,m,g){const _=p.previousIndex;if(null===_)return _;let C=0;return g&&_{if(g&&g.key===C)this._maybeAddToChanges(g,_),this._appendAfter=g,g=g._next;else{const w=this._getOrCreateRecordForKey(C,_);g=this._insertBeforeOrAppend(g,w)}}),g){g._prev&&(g._prev._next=null),this._removalsHead=g;for(let _=g;null!==_;_=_._nextRemoved)_===this._mapHead&&(this._mapHead=null),this._records.delete(_.key),_._nextRemoved=_._next,_.previousValue=_.currentValue,_.currentValue=null,_._prev=null,_._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(m,g){if(m){const _=m._prev;return g._next=m,g._prev=_,m._prev=g,_&&(_._next=g),m===this._mapHead&&(this._mapHead=g),this._appendAfter=m,m}return this._appendAfter?(this._appendAfter._next=g,g._prev=this._appendAfter):this._mapHead=g,this._appendAfter=g,null}_getOrCreateRecordForKey(m,g){if(this._records.has(m)){const C=this._records.get(m);this._maybeAddToChanges(C,g);const w=C._prev,v=C._next;return w&&(w._next=v),v&&(v._prev=w),C._next=null,C._prev=null,C}const _=new D0(m);return this._records.set(m,_),_.currentValue=g,this._addToAdditions(_),_}_reset(){if(this.isDirty){let m;for(this._previousMapHead=this._mapHead,m=this._previousMapHead;null!==m;m=m._next)m._nextPrevious=m._next;for(m=this._changesHead;null!==m;m=m._nextChanged)m.previousValue=m.currentValue;for(m=this._additionsHead;null!=m;m=m._nextAdded)m.previousValue=m.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(m,g){Object.is(g,m.currentValue)||(m.previousValue=m.currentValue,m.currentValue=g,this._addToChanges(m))}_addToAdditions(m){null===this._additionsHead?this._additionsHead=this._additionsTail=m:(this._additionsTail._nextAdded=m,this._additionsTail=m)}_addToChanges(m){null===this._changesHead?this._changesHead=this._changesTail=m:(this._changesTail._nextChanged=m,this._changesTail=m)}_forEach(m,g){m instanceof Map?m.forEach(g):Object.keys(m).forEach(_=>g(m[_],_))}}class D0{constructor(m){this.key=m,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function H0(){return new ic([new zb])}let ic=(()=>{class p{constructor(g){this.factories=g}static create(g,_){if(null!=_){const C=_.factories.slice();g=g.concat(C)}return new p(g)}static extend(g){return{provide:p,useFactory:_=>p.create(g,_||H0()),deps:[[p,new $a,new Uo]]}}find(g){const _=this.factories.find(C=>C.supports(g));if(null!=_)return _;throw new ie(901,!1)}}return p.\u0275prov=Dt({token:p,providedIn:"root",factory:H0}),p})();function ef(){return new ru([new Wb])}let ru=(()=>{class p{constructor(g){this.factories=g}static create(g,_){if(_){const C=_.factories.slice();g=g.concat(C)}return new p(g)}static extend(g){return{provide:p,useFactory:_=>p.create(g,_||ef()),deps:[[p,new $a,new Uo]]}}find(g){const _=this.factories.find(C=>C.supports(g));if(_)return _;throw new ie(901,!1)}}return p.\u0275prov=Dt({token:p,providedIn:"root",factory:ef}),p})();const Yb=Gp(null,"core",[]);let I0=(()=>{class p{constructor(g){}}return p.\u0275fac=function(g){return new(g||p)(di(Ta))},p.\u0275mod=$r({type:p}),p.\u0275inj=li({}),p})();function k0(p){return"boolean"==typeof p?p:null!=p&&"false"!==p}},1214:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Ct:()=>OAuthService,Hy:()=>OAuthStorage,zr:()=>OAuthModule});var _home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5861),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(4650),_angular_common__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(6895),_angular_common_http__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(529),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(7579),rxjs__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(9646),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(2076),rxjs__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(102),rxjs__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(2843),rxjs__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(9841),rxjs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(6451),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(9300),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(8505),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(8372),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(1005),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(3900),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(4004),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(590),rxjs_operators__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(262),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(7414),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(5698),rxjs_operators__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(5577),fast_sha256__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1302);class DateTimeProvider{}let SystemDateTimeProvider=(()=>{class F extends DateTimeProvider{now(){return Date.now()}new(){return new Date}}return F.\u0275fac=function(){let z;return function(T){return(z||(z=_angular_core__WEBPACK_IMPORTED_MODULE_1__.n5z(F)))(T||F)}}(),F.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:F,factory:F.\u0275fac}),F})();class LoginOptions{constructor(){this.disableNonceCheck=!1,this.preventClearHashAfterLogin=!1}}class OAuthLogger{}class OAuthStorage{}let MemoryStorage=(()=>{class F{constructor(){this.data=new Map}getItem(x){return this.data.get(x)}removeItem(x){this.data.delete(x)}setItem(x,T){this.data.set(x,T)}}return F.\u0275fac=function(x){return new(x||F)},F.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:F,factory:F.\u0275fac}),F})();class ReceivedTokens{}class OAuthEvent{constructor(z){this.type=z}}class OAuthSuccessEvent extends OAuthEvent{constructor(z,x=null){super(z),this.info=x}}class OAuthInfoEvent extends OAuthEvent{constructor(z,x=null){super(z),this.info=x}}class OAuthErrorEvent extends OAuthEvent{constructor(z,x,T=null){super(z),this.reason=x,this.params=T}}function b64DecodeUnicode(F){const z=F.replace(/\-/g,"+").replace(/\_/g,"/");return decodeURIComponent(atob(z).split("").map(function(x){return"%"+("00"+x.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function base64UrlEncode(F){return btoa(F).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}class AuthConfig{constructor(z){this.clientId="",this.redirectUri="",this.postLogoutRedirectUri="",this.redirectUriAsPostLogoutRedirectUriFallback=!0,this.loginUrl="",this.scope="openid profile",this.resource="",this.rngUrl="",this.oidc=!0,this.requestAccessToken=!0,this.options=null,this.issuer="",this.logoutUrl="",this.clearHashAfterLogin=!0,this.tokenEndpoint=null,this.revocationEndpoint=null,this.customTokenParameters=[],this.userinfoEndpoint=null,this.responseType="",this.showDebugInformation=!1,this.silentRefreshRedirectUri="",this.silentRefreshMessagePrefix="",this.silentRefreshShowIFrame=!1,this.siletRefreshTimeout=2e4,this.silentRefreshTimeout=2e4,this.dummyClientSecret=null,this.requireHttps="remoteOnly",this.strictDiscoveryDocumentValidation=!0,this.jwks=null,this.customQueryParams=null,this.silentRefreshIFrameName="angular-oauth-oidc-silent-refresh-iframe",this.timeoutFactor=.75,this.sessionChecksEnabled=!1,this.sessionCheckIntervall=3e3,this.sessionCheckIFrameUrl=null,this.sessionCheckIFrameName="angular-oauth-oidc-check-session-iframe",this.disableAtHashCheck=!1,this.skipSubjectCheck=!1,this.useIdTokenHintForSilentRefresh=!1,this.skipIssuerCheck=!1,this.nonceStateSeparator=";",this.useHttpBasicAuth=!1,this.waitForTokenInMsec=0,this.disablePKCE=!1,this.preserveRequestedRoute=!1,this.openUri=x=>{location.href=x},z&&Object.assign(this,z)}}class WebHttpUrlEncodingCodec{encodeKey(z){return encodeURIComponent(z)}encodeValue(z){return encodeURIComponent(z)}decodeKey(z){return decodeURIComponent(z)}decodeValue(z){return decodeURIComponent(z)}}class ValidationHandler{}class AbstractValidationHandler{validateAtHash(z){var x=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){let T=x.inferHashAlgorithm(z.idTokenHeader),u=yield x.calcHash(z.accessToken,T),O=base64UrlEncode(u.substr(0,u.length/2)),I=z.idTokenClaims.at_hash.replace(/=/g,"");return O!==I&&(console.error("exptected at_hash: "+O),console.error("actual at_hash: "+I)),O===I})()}inferHashAlgorithm(z){let x=z.alg;if(!x.match(/^.S[0-9]{3}$/))throw new Error("Algorithm not supported: "+x);return"sha-"+x.substr(2)}}let UrlHelperService=(()=>{class F{getHashFragmentParams(x){let T=x||window.location.hash;if(T=decodeURIComponent(T),0!==T.indexOf("#"))return{};const u=T.indexOf("?");return T=T.substr(u>-1?u+1:1),this.parseQueryString(T)}parseQueryString(x){const T={};let u,V,O,I,N,W,Q;if(null===x)return T;u=x.split("&");for(let G=0;G>6,V[I++]=128|63&N):N<55296||N>=57344?(V[I++]=224|N>>12,V[I++]=128|N>>6&63,V[I++]=128|63&N):(N=65536+((1023&N)<<10|1023&F.charCodeAt(++T)),V[I++]=240|N>>18,V[I++]=128|N>>12&63,V[I++]=128|N>>6&63,V[I++]=128|63&N);F=V}else{if("object"!==u)throw new Error(ERROR);if(null===F)throw new Error(ERROR);if(ARRAY_BUFFER&&F.constructor===ArrayBuffer)F=new Uint8Array(F);else if(!(Array.isArray(F)||ARRAY_BUFFER&&ArrayBuffer.isView(F)))throw new Error(ERROR)}F.length>64&&(F=new Sha256(z,!0).update(F).array());var W=[],Q=[];for(T=0;T<64;++T){var G=F[T]||0;W[T]=92^G,Q[T]=54^G}Sha256.call(this,z,x),this.update(Q),this.oKeyPad=W,this.inner=!0,this.sharedMemory=x}Sha256.prototype.update=function(F){if(!this.finalized){var z,x=typeof F;if("string"!==x){if("object"!==x)throw new Error(ERROR);if(null===F)throw new Error(ERROR);if(ARRAY_BUFFER&&F.constructor===ArrayBuffer)F=new Uint8Array(F);else if(!(Array.isArray(F)||ARRAY_BUFFER&&ArrayBuffer.isView(F)))throw new Error(ERROR);z=!0}for(var T,V,u=0,O=F.length,I=this.blocks;u>2]|=F[u]<>2]|=T<>2]|=(192|T>>6)<>2]|=(128|63&T)<=57344?(I[V>>2]|=(224|T>>12)<>2]|=(128|T>>6&63)<>2]|=(128|63&T)<>2]|=(240|T>>18)<>2]|=(128|T>>12&63)<>2]|=(128|T>>6&63)<>2]|=(128|63&T)<=64?(this.block=I[16],this.start=V-64,this.hash(),this.hashed=!0):this.start=V}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var F=this.blocks,z=this.lastByteIndex;F[16]=this.block,F[z>>2]|=EXTRA[3&z],this.block=F[16],z>=56&&(this.hashed||this.hash(),F[0]=this.block,F[16]=F[1]=F[2]=F[3]=F[4]=F[5]=F[6]=F[7]=F[8]=F[9]=F[10]=F[11]=F[12]=F[13]=F[14]=F[15]=0),F[14]=this.hBytes<<3|this.bytes>>>29,F[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var W,U,X,ie,de,he,F=this.h0,z=this.h1,x=this.h2,T=this.h3,u=this.h4,V=this.h5,O=this.h6,I=this.h7,N=this.blocks;for(W=16;W<64;++W)N[W]=N[W-16]+(((U=N[W-15])>>>7|U<<25)^(U>>>18|U<<14)^U>>>3)+N[W-7]+(((U=N[W-2])>>>17|U<<15)^(U>>>19|U<<13)^U>>>10)<<0;for(he=z&x,W=0;W<64;W+=4)this.first?(this.is224?(X=300032,I=(U=N[0]-1413257819)-150054599<<0,T=U+24177077<<0):(X=704751109,I=(U=N[0]-210244248)-1521486534<<0,T=U+143694565<<0),this.first=!1):(I=T+(U=I+((u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7))+(u&V^~u&O)+K[W]+N[W])<<0,T=U+(((F>>>2|F<<30)^(F>>>13|F<<19)^(F>>>22|F<<10))+((X=F&z)^F&x^he))<<0),O=x+(U=O+((I>>>6|I<<26)^(I>>>11|I<<21)^(I>>>25|I<<7))+(I&u^~I&V)+K[W+1]+N[W+1])<<0,x=U+(((T>>>2|T<<30)^(T>>>13|T<<19)^(T>>>22|T<<10))+((ie=T&F)^T&z^X))<<0,V=z+(U=V+((O>>>6|O<<26)^(O>>>11|O<<21)^(O>>>25|O<<7))+(O&I^~O&u)+K[W+2]+N[W+2])<<0,z=U+(((x>>>2|x<<30)^(x>>>13|x<<19)^(x>>>22|x<<10))+((de=x&T)^x&F^ie))<<0,u=F+(U=u+((V>>>6|V<<26)^(V>>>11|V<<21)^(V>>>25|V<<7))+(V&O^~V&I)+K[W+3]+N[W+3])<<0,F=U+(((z>>>2|z<<30)^(z>>>13|z<<19)^(z>>>22|z<<10))+((he=z&x)^z&T^de))<<0;this.h0=this.h0+F<<0,this.h1=this.h1+z<<0,this.h2=this.h2+x<<0,this.h3=this.h3+T<<0,this.h4=this.h4+u<<0,this.h5=this.h5+V<<0,this.h6=this.h6+O<<0,this.h7=this.h7+I<<0},Sha256.prototype.hex=function(){this.finalize();var F=this.h0,z=this.h1,x=this.h2,T=this.h3,u=this.h4,V=this.h5,O=this.h6,I=this.h7,N=HEX_CHARS[F>>28&15]+HEX_CHARS[F>>24&15]+HEX_CHARS[F>>20&15]+HEX_CHARS[F>>16&15]+HEX_CHARS[F>>12&15]+HEX_CHARS[F>>8&15]+HEX_CHARS[F>>4&15]+HEX_CHARS[15&F]+HEX_CHARS[z>>28&15]+HEX_CHARS[z>>24&15]+HEX_CHARS[z>>20&15]+HEX_CHARS[z>>16&15]+HEX_CHARS[z>>12&15]+HEX_CHARS[z>>8&15]+HEX_CHARS[z>>4&15]+HEX_CHARS[15&z]+HEX_CHARS[x>>28&15]+HEX_CHARS[x>>24&15]+HEX_CHARS[x>>20&15]+HEX_CHARS[x>>16&15]+HEX_CHARS[x>>12&15]+HEX_CHARS[x>>8&15]+HEX_CHARS[x>>4&15]+HEX_CHARS[15&x]+HEX_CHARS[T>>28&15]+HEX_CHARS[T>>24&15]+HEX_CHARS[T>>20&15]+HEX_CHARS[T>>16&15]+HEX_CHARS[T>>12&15]+HEX_CHARS[T>>8&15]+HEX_CHARS[T>>4&15]+HEX_CHARS[15&T]+HEX_CHARS[u>>28&15]+HEX_CHARS[u>>24&15]+HEX_CHARS[u>>20&15]+HEX_CHARS[u>>16&15]+HEX_CHARS[u>>12&15]+HEX_CHARS[u>>8&15]+HEX_CHARS[u>>4&15]+HEX_CHARS[15&u]+HEX_CHARS[V>>28&15]+HEX_CHARS[V>>24&15]+HEX_CHARS[V>>20&15]+HEX_CHARS[V>>16&15]+HEX_CHARS[V>>12&15]+HEX_CHARS[V>>8&15]+HEX_CHARS[V>>4&15]+HEX_CHARS[15&V]+HEX_CHARS[O>>28&15]+HEX_CHARS[O>>24&15]+HEX_CHARS[O>>20&15]+HEX_CHARS[O>>16&15]+HEX_CHARS[O>>12&15]+HEX_CHARS[O>>8&15]+HEX_CHARS[O>>4&15]+HEX_CHARS[15&O];return this.is224||(N+=HEX_CHARS[I>>28&15]+HEX_CHARS[I>>24&15]+HEX_CHARS[I>>20&15]+HEX_CHARS[I>>16&15]+HEX_CHARS[I>>12&15]+HEX_CHARS[I>>8&15]+HEX_CHARS[I>>4&15]+HEX_CHARS[15&I]),N},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var F=this.h0,z=this.h1,x=this.h2,T=this.h3,u=this.h4,V=this.h5,O=this.h6,I=this.h7,N=[F>>24&255,F>>16&255,F>>8&255,255&F,z>>24&255,z>>16&255,z>>8&255,255&z,x>>24&255,x>>16&255,x>>8&255,255&x,T>>24&255,T>>16&255,T>>8&255,255&T,u>>24&255,u>>16&255,u>>8&255,255&u,V>>24&255,V>>16&255,V>>8&255,255&V,O>>24&255,O>>16&255,O>>8&255,255&O];return this.is224||N.push(I>>24&255,I>>16&255,I>>8&255,255&I),N},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var F=new ArrayBuffer(this.is224?28:32),z=new DataView(F);return z.setUint32(0,this.h0),z.setUint32(4,this.h1),z.setUint32(8,this.h2),z.setUint32(12,this.h3),z.setUint32(16,this.h4),z.setUint32(20,this.h5),z.setUint32(24,this.h6),this.is224||z.setUint32(28,this.h7),F},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var F=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(F),Sha256.prototype.finalize.call(this)}};var exports=createMethod();return exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),exports}const sha256=factory();class HashHandler{}function decodeUTF8(F){if("string"!=typeof F)throw new TypeError("expected string");var z,x=F,T=new Uint8Array(x.length);for(z=0;z{class F{calcHash(x,T){return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){return encodeUTF8(fast_sha256__WEBPACK_IMPORTED_MODULE_0__(decodeUTF8(x)))})()}toHashString2(x){let T="";for(let u of x)T+=String.fromCharCode(u);return T}toHashString(x){const T=new Uint8Array(x);let u="";for(let V of T)u+=String.fromCharCode(V);return u}}return F.\u0275fac=function(x){return new(x||F)},F.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:F,factory:F.\u0275fac}),F})(),OAuthService=(()=>{class F extends AuthConfig{constructor(x,T,u,V,O,I,N,W,Q,G){super(),this.ngZone=x,this.http=T,this.config=O,this.urlHelper=I,this.logger=N,this.crypto=W,this.dateTimeService=G,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.discoveryDocumentLoadedSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=Q,O||(O={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),V&&(this.tokenValidationHandler=V),O&&this.configure(O);try{u?this.setStorage(u):typeof sessionStorage<"u"&&this.setStorage(sessionStorage)}catch($){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",$)}if(this.checkLocalStorageAccessable()){const $=window?.navigator?.userAgent;($?.includes("MSIE ")||$?.includes("Trident"))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if(typeof window>"u")return!1;const x="test";try{return!(typeof window.localStorage>"u"||(localStorage.setItem(x,x),localStorage.removeItem(x),0))}catch{return!1}}configure(x){Object.assign(this,new AuthConfig,x),this.config=Object.assign({},new AuthConfig,x),this.sessionChecksEnabled&&this.setupSessionCheck(),this.configChanged()}configChanged(){this.setupRefreshTimer()}restartSessionChecksIfStillLoggedIn(){this.hasValidIdToken()&&this.initSessionCheck()}restartRefreshTimerIfStillLoggedIn(){this.setupExpirationTimers()}setupSessionCheck(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(x=>"token_received"===x.type)).subscribe(x=>{this.initSessionCheck()})}setupAutomaticSilentRefresh(x={},T,u=!0){let V=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(O=>{"token_received"===O.type?V=!0:"logout"===O.type&&(V=!1)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(O=>"token_expires"===O.type&&(null==T||"any"===T||O.info===T)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.b)(1e3)).subscribe(O=>{V&&this.refreshInternal(x,u).catch(I=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(x,T){return this.useSilentRefresh||"code"!==this.responseType?this.silentRefresh(x,T):this.refreshToken()}loadDiscoveryDocumentAndTryLogin(x=null){return this.loadDiscoveryDocument().then(T=>this.tryLogin(x))}loadDiscoveryDocumentAndLogin(x=null){return this.loadDiscoveryDocumentAndTryLogin(x=x||{}).then(T=>!(!this.hasValidIdToken()||!this.hasValidAccessToken())||(this.initLoginFlow("string"==typeof x.state?x.state:""),!1))}debug(...x){this.showDebugInformation&&this.logger.debug.apply(this.logger,x)}validateUrlFromDiscoveryDocument(x){const T=[],u=this.validateUrlForHttps(x),V=this.validateUrlAgainstIssuer(x);return u||T.push("https for all urls required. Also for urls received by discovery."),V||T.push("Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation."),T}validateUrlForHttps(x){if(!x)return!0;const T=x.toLowerCase();return!(!1!==this.requireHttps&&(!T.match(/^http:\/\/localhost($|[:\/])/)&&!T.match(/^http:\/\/localhost($|[:\/])/)||"remoteOnly"!==this.requireHttps))||T.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(x,T){if(!x)throw new Error(`'${T}' should not be null`);if(!this.validateUrlForHttps(x))throw new Error(`'${T}' must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).`)}validateUrlAgainstIssuer(x){return!this.strictDiscoveryDocumentValidation||!x||x.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){typeof window>"u"?this.debug("timer not supported on this plattform"):((this.hasValidIdToken()||this.hasValidAccessToken())&&(this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()),this.tokenReceivedSubscription&&this.tokenReceivedSubscription.unsubscribe(),this.tokenReceivedSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(x=>"token_received"===x.type)).subscribe(x=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()}))}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){const x=this.getAccessTokenExpiration(),T=this.getAccessTokenStoredAt(),u=this.calcTimeout(T,x);this.ngZone.runOutsideAngular(()=>{this.accessTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","access_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(u)).subscribe(V=>{this.ngZone.run(()=>{this.eventsSubject.next(V)})})})}setupIdTokenTimer(){const x=this.getIdTokenExpiration(),T=this.getIdTokenStoredAt(),u=this.calcTimeout(T,x);this.ngZone.runOutsideAngular(()=>{this.idTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","id_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(u)).subscribe(V=>{this.ngZone.run(()=>{this.eventsSubject.next(V)})})})}stopAutomaticRefresh(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.clearAutomaticRefreshTimer()}clearAccessTokenTimer(){this.accessTokenTimeoutSubscription&&this.accessTokenTimeoutSubscription.unsubscribe()}clearIdTokenTimer(){this.idTokenTimeoutSubscription&&this.idTokenTimeoutSubscription.unsubscribe()}clearAutomaticRefreshTimer(){this.automaticRefreshSubscription&&this.automaticRefreshSubscription.unsubscribe()}calcTimeout(x,T){const u=this.dateTimeService.now();return Math.max(0,(T-x)*this.timeoutFactor-(u-x))}setStorage(x){this._storage=x,this.configChanged()}loadDiscoveryDocument(x=null){return new Promise((T,u)=>{x||((x=this.issuer||"").endsWith("/")||(x+="/"),x+=".well-known/openid-configuration"),this.validateUrlForHttps(x)?this.http.get(x).subscribe(V=>{if(!this.validateDiscoveryDocument(V))return this.eventsSubject.next(new OAuthErrorEvent("discovery_document_validation_error",null)),void u("discovery_document_validation_error");this.loginUrl=V.authorization_endpoint,this.logoutUrl=V.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=V.grant_types_supported,this.issuer=V.issuer,this.tokenEndpoint=V.token_endpoint,this.userinfoEndpoint=V.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=V.jwks_uri,this.sessionCheckIFrameUrl=V.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(V),this.revocationEndpoint=V.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(O=>{const N=new OAuthSuccessEvent("discovery_document_loaded",{discoveryDocument:V,jwks:O});this.eventsSubject.next(N),T(N)}).catch(O=>{this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",O)),u(O)})},V=>{this.logger.error("error loading discovery document",V),this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",V)),u(V)}):u("issuer must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).")})}loadJwks(){return new Promise((x,T)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(u=>{this.jwks=u,this.eventsSubject.next(new OAuthSuccessEvent("discovery_document_loaded")),x(u)},u=>{this.logger.error("error loading jwks",u),this.eventsSubject.next(new OAuthErrorEvent("jwks_load_error",u)),T(u)}):x(null)})}validateDiscoveryDocument(x){let T;return this.skipIssuerCheck||x.issuer===this.issuer?(T=this.validateUrlFromDiscoveryDocument(x.authorization_endpoint),T.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",T),!1):(T=this.validateUrlFromDiscoveryDocument(x.end_session_endpoint),T.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",T),!1):(T=this.validateUrlFromDiscoveryDocument(x.token_endpoint),T.length>0&&this.logger.error("error validating token_endpoint in discovery document",T),T=this.validateUrlFromDiscoveryDocument(x.revocation_endpoint),T.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",T),T=this.validateUrlFromDiscoveryDocument(x.userinfo_endpoint),T.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",T),!1):(T=this.validateUrlFromDiscoveryDocument(x.jwks_uri),T.length>0?(this.logger.error("error validating jwks_uri in discovery document",T),!1):(this.sessionChecksEnabled&&!x.check_session_iframe&&this.logger.warn("sessionChecksEnabled is activated but discovery document does not contain a check_session_iframe field"),!0))))):(this.logger.error("invalid issuer in discovery document","expected: "+this.issuer,"current: "+x.issuer),!1)}fetchTokenUsingPasswordFlowAndLoadUserProfile(x,T,u=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingPasswordFlow(x,T,u).then(()=>this.loadUserProfile())}loadUserProfile(){if(!this.hasValidAccessToken())throw new Error("Can not load User Profile without access_token");if(!this.validateUrlForHttps(this.userinfoEndpoint))throw new Error("userinfoEndpoint must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");return new Promise((x,T)=>{const u=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:u,observe:"response",responseType:"text"}).subscribe(V=>{if(this.debug("userinfo received",JSON.stringify(V)),V.headers.get("content-type").startsWith("application/json")){let O=JSON.parse(V.body);const I=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!I.sub||O.sub!==I.sub))return void T("if property oidc is true, the received user-id (sub) has to be the user-id of the user that has logged in with oidc.\nif you are not using oidc but just oauth2 password flow set oidc to false");O=Object.assign({},I,O),this._storage.setItem("id_token_claims_obj",JSON.stringify(O)),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),x({info:O})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),x(JSON.parse(V.body))},V=>{this.logger.error("error loading user info",V),this.eventsSubject.next(new OAuthErrorEvent("user_profile_load_error",V)),T(V)})})}fetchTokenUsingPasswordFlow(x,T,u=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingGrant("password",{username:x,password:T},u)}fetchTokenUsingGrant(x,T,u=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let V=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type",x).set("scope",this.scope);if(this.useHttpBasicAuth){const O=btoa(`${this.clientId}:${this.dummyClientSecret}`);u=u.set("Authorization","Basic "+O)}if(this.useHttpBasicAuth||(V=V.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(V=V.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const O of Object.getOwnPropertyNames(this.customQueryParams))V=V.set(O,this.customQueryParams[O]);for(const O of Object.keys(T))V=V.set(O,T[O]);return u=u.set("Content-Type","application/x-www-form-urlencoded"),new Promise((O,I)=>{this.http.post(this.tokenEndpoint,V,{headers:u}).subscribe(N=>{this.debug("tokenResponse",N),this.storeAccessTokenResponse(N.access_token,N.refresh_token,N.expires_in||this.fallbackAccessTokenExpirationTimeInSec,N.scope,this.extractRecognizedCustomParameters(N)),this.oidc&&N.id_token&&this.processIdToken(N.id_token,N.access_token).then(W=>{this.storeIdToken(W),O(N)}),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),O(N)},N=>{this.logger.error("Error performing ${grantType} flow",N),this.eventsSubject.next(new OAuthErrorEvent("token_error",N)),I(N)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((x,T)=>{let u=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","refresh_token").set("scope",this.scope).set("refresh_token",this._storage.getItem("refresh_token")),V=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const O=btoa(`${this.clientId}:${this.dummyClientSecret}`);V=V.set("Authorization","Basic "+O)}if(this.useHttpBasicAuth||(u=u.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(u=u.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const O of Object.getOwnPropertyNames(this.customQueryParams))u=u.set(O,this.customQueryParams[O]);this.http.post(this.tokenEndpoint,u,{headers:V}).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.w)(O=>O.id_token?(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.D)(this.processIdToken(O.id_token,O.access_token,!0)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(I=>this.storeIdToken(I)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(I=>O)):(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(O))).subscribe(O=>{this.debug("refresh tokenResponse",O),this.storeAccessTokenResponse(O.access_token,O.refresh_token,O.expires_in||this.fallbackAccessTokenExpirationTimeInSec,O.scope,this.extractRecognizedCustomParameters(O)),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),x(O)},O=>{this.logger.error("Error refreshing token",O),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",O)),T(O)})})}removeSilentRefreshEventListener(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}setupSilentRefreshEventListener(){this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=x=>{const T=this.processMessageEventMessage(x);this.tryLogin({customHashFragment:T,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri||this.redirectUri}).catch(u=>this.debug("tryLogin during silent refresh failed",u))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(x={},T=!0){const u=this.getIdentityClaims()||{};if(this.useIdTokenHintForSilentRefresh&&this.hasValidIdToken()&&(x.id_token_hint=this.getIdToken()),!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(typeof this.document>"u")throw new Error("silent refresh is not supported on this platform");const V=this.document.getElementById(this.silentRefreshIFrameName);V&&this.document.body.removeChild(V),this.silentRefreshSubject=u.sub;const O=this.document.createElement("iframe");O.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,T,x).then(G=>{O.setAttribute("src",G),this.silentRefreshShowIFrame||(O.style.display="none"),this.document.body.appendChild(O)});const N=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(G=>G instanceof OAuthErrorEvent),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),W=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(G=>"token_received"===G.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),Q=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthErrorEvent("silent_refresh_timeout",null)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(this.silentRefreshTimeout));return(0,rxjs__WEBPACK_IMPORTED_MODULE_14__.S)([N,W,Q]).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(G=>{if(G instanceof OAuthErrorEvent)throw"silent_refresh_timeout"===G.type||(G=new OAuthErrorEvent("silent_refresh_error",G)),this.eventsSubject.next(G),G;return"token_received"===G.type&&(G=new OAuthSuccessEvent("silently_refreshed"),this.eventsSubject.next(G)),G})).toPromise()}initImplicitFlowInPopup(x){return this.initLoginFlowInPopup(x)}initLoginFlowInPopup(x){return x=x||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(T=>new Promise((u,V)=>{let N,I=null;x.windowRef?x.windowRef&&!x.windowRef.closed&&(I=x.windowRef,I.location.href=T):I=window.open(T,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(x));const W=te=>{this.tryLogin({customHashFragment:te,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{G(),u(!0)},ne=>{G(),V(ne)})};I?N=window.setInterval(()=>{(!I||I.closed)&&(G(),V(new OAuthErrorEvent("popup_closed",{})))},500):V(new OAuthErrorEvent("popup_blocked",{}));const G=()=>{window.clearInterval(N),window.removeEventListener("storage",U),window.removeEventListener("message",$),null!==I&&I.close(),I=null},$=te=>{const ne=this.processMessageEventMessage(te);ne&&null!==ne?(window.removeEventListener("storage",U),W(ne)):console.log("false event firing")},U=te=>{"auth_hash"===te.key&&(window.removeEventListener("message",$),W(te.newValue))};window.addEventListener("message",$),window.addEventListener("storage",U)}))}calculatePopupFeatures(x){const T=x.height||470,u=x.width||500,V=window.screenLeft+(window.outerWidth-u)/2;return`location=no,toolbar=no,width=${u},height=${T},top=${window.screenTop+(window.outerHeight-T)/2},left=${V}`}processMessageEventMessage(x){let T="#";if(this.silentRefreshMessagePrefix&&(T+=this.silentRefreshMessagePrefix),!x||!x.data||"string"!=typeof x.data)return;const u=x.data;return u.startsWith(T)?"#"+u.substr(T.length):void 0}canPerformSessionCheck(){return!(!this.sessionChecksEnabled||(this.sessionCheckIFrameUrl?this.getSessionState()?typeof this.document>"u":(console.warn("sessionChecksEnabled is activated but there is no session_state"),1):(console.warn("sessionChecksEnabled is activated but there is no sessionCheckIFrameUrl"),1)))}setupSessionCheckEventListener(){this.removeSessionCheckEventListener(),this.sessionCheckEventListener=x=>{const T=x.origin.toLowerCase(),u=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),u.startsWith(T)){switch(x.data){case"unchanged":this.ngZone.run(()=>{this.handleSessionUnchanged()});break;case"changed":this.ngZone.run(()=>{this.handleSessionChange()});break;case"error":this.ngZone.run(()=>{this.handleSessionError()})}this.debug("got info from session check inframe",x)}else this.debug("sessionCheckEventListener","wrong origin",T,"expected",u,"event",x)},this.ngZone.runOutsideAngular(()=>{window.addEventListener("message",this.sessionCheckEventListener)})}handleSessionUnchanged(){this.debug("session check","session unchanged"),this.eventsSubject.next(new OAuthInfoEvent("session_unchanged"))}handleSessionChange(){this.eventsSubject.next(new OAuthInfoEvent("session_changed")),this.stopSessionCheckTimer(),this.useSilentRefresh||"code"!==this.responseType?this.silentRefreshRedirectUri?(this.silentRefresh().catch(x=>this.debug("silent refresh failed after session changed")),this.waitForSilentRefreshAfterSessionChange()):(this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)):this.refreshToken().then(x=>{this.debug("token refresh after session change worked")}).catch(x=>{this.debug("token refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)})}waitForSilentRefreshAfterSessionChange(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(x=>"silently_refreshed"===x.type||"silent_refresh_timeout"===x.type||"silent_refresh_error"===x.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()).subscribe(x=>{"silently_refreshed"!==x.type&&(this.debug("silent refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0))})}handleSessionError(){this.stopSessionCheckTimer(),this.eventsSubject.next(new OAuthInfoEvent("session_error"))}removeSessionCheckEventListener(){this.sessionCheckEventListener&&(window.removeEventListener("message",this.sessionCheckEventListener),this.sessionCheckEventListener=null)}initSessionCheck(){if(!this.canPerformSessionCheck())return;const x=this.document.getElementById(this.sessionCheckIFrameName);x&&this.document.body.removeChild(x);const T=this.document.createElement("iframe");T.id=this.sessionCheckIFrameName,this.setupSessionCheckEventListener(),T.setAttribute("src",this.sessionCheckIFrameUrl),T.style.display="none",this.document.body.appendChild(T),this.startSessionCheckTimer()}startSessionCheckTimer(){this.stopSessionCheckTimer(),this.ngZone.runOutsideAngular(()=>{this.sessionCheckTimer=setInterval(this.checkSession.bind(this),this.sessionCheckIntervall)})}stopSessionCheckTimer(){this.sessionCheckTimer&&(clearInterval(this.sessionCheckTimer),this.sessionCheckTimer=null)}checkSession(){const x=this.document.getElementById(this.sessionCheckIFrameName);x||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);const T=this.getSessionState();T||this.stopSessionCheckTimer(),x.contentWindow.postMessage(this.clientId+" "+T,this.issuer)}createLoginUrl(x="",T="",u="",V=!1,O={}){var I=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const N=I;let W;W=u||I.redirectUri;const Q=yield I.createAndSaveNonce();if(x=x?Q+I.config.nonceStateSeparator+encodeURIComponent(x):Q,!I.requestAccessToken&&!I.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");I.responseType=I.config.responseType?I.config.responseType:I.oidc&&I.requestAccessToken?"id_token token":I.oidc&&!I.requestAccessToken?"id_token":"token";const G=N.loginUrl.indexOf("?")>-1?"&":"?";let $=N.scope;I.oidc&&!$.match(/(^|\s)openid($|\s)/)&&($="openid "+$);let U=N.loginUrl+G+"response_type="+encodeURIComponent(N.responseType)+"&client_id="+encodeURIComponent(N.clientId)+"&state="+encodeURIComponent(x)+"&redirect_uri="+encodeURIComponent(W)+"&scope="+encodeURIComponent($);if(I.responseType.includes("code")&&!I.disablePKCE){const[te,ne]=yield I.createChallangeVerifierPairForPKCE();I.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("PKCE_verifier",ne):I._storage.setItem("PKCE_verifier",ne),U+="&code_challenge="+te,U+="&code_challenge_method=S256"}T&&(U+="&login_hint="+encodeURIComponent(T)),N.resource&&(U+="&resource="+encodeURIComponent(N.resource)),N.oidc&&(U+="&nonce="+encodeURIComponent(Q)),V&&(U+="&prompt=none");for(const te of Object.keys(O))U+="&"+encodeURIComponent(te)+"="+encodeURIComponent(O[te]);if(I.customQueryParams)for(const te of Object.getOwnPropertyNames(I.customQueryParams))U+="&"+te+"="+encodeURIComponent(I.customQueryParams[te]);return U})()}initImplicitFlowInternal(x="",T=""){if(this.inImplicitFlow)return;if(this.inImplicitFlow=!0,!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let u={},V=null;"string"==typeof T?V=T:"object"==typeof T&&(u=T),this.createLoginUrl(x,V,null,!1,u).then(this.config.openUri).catch(O=>{console.error("Error in initImplicitFlow",O),this.inImplicitFlow=!1})}initImplicitFlow(x="",T=""){""!==this.loginUrl?this.initImplicitFlowInternal(x,T):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(u=>"discovery_document_loaded"===u.type)).subscribe(u=>this.initImplicitFlowInternal(x,T))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(x){const T=this;if(x.onTokenReceived){const u={idClaims:T.getIdentityClaims(),idToken:T.getIdToken(),accessToken:T.getAccessToken(),state:T.state};x.onTokenReceived(u)}}storeAccessTokenResponse(x,T,u,V,O){if(this._storage.setItem("access_token",x),V&&!Array.isArray(V)?this._storage.setItem("granted_scopes",JSON.stringify(V.split(" "))):V&&Array.isArray(V)&&this._storage.setItem("granted_scopes",JSON.stringify(V)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),u){const I=1e3*u,W=this.dateTimeService.new().getTime()+I;this._storage.setItem("expires_at",""+W)}T&&this._storage.setItem("refresh_token",T),O&&O.forEach((I,N)=>{this._storage.setItem(N,I)})}tryLogin(x=null){return"code"===this.config.responseType?this.tryLoginCodeFlow(x).then(T=>!0):this.tryLoginImplicitFlow(x)}parseQueryString(x){return x&&0!==x.length?("?"===x.charAt(0)&&(x=x.substr(1)),this.urlHelper.parseQueryString(x)):{}}tryLoginCodeFlow(x=null){var T=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const u=(x=x||{}).customHashFragment?x.customHashFragment.substring(1):window.location.search,V=T.getCodePartsFromUrl(u),O=V.code,I=V.state,N=V.session_state;if(!x.preventClearHashAfterLogin){const G=location.origin+location.pathname+location.search.replace(/code=[^&\$]*/,"").replace(/scope=[^&\$]*/,"").replace(/state=[^&\$]*/,"").replace(/session_state=[^&\$]*/,"").replace(/^\?&/,"?").replace(/&$/,"").replace(/^\?$/,"").replace(/&+/g,"&").replace(/\?&/,"?").replace(/\?$/,"")+location.hash;history.replaceState(null,window.name,G)}let[W,Q]=T.parseState(I);if(T.state=Q,V.error){T.debug("error trying to login"),T.handleLoginError(x,V);const G=new OAuthErrorEvent("code_error",{},V);return T.eventsSubject.next(G),Promise.reject(G)}if(!x.disableNonceCheck){if(!W)return T.saveRequestedRoute(),Promise.resolve();if(!x.disableOAuth2StateCheck&&!T.validateNonce(W)){const $=new OAuthErrorEvent("invalid_nonce_in_state",null);return T.eventsSubject.next($),Promise.reject($)}return T.storeSessionState(N),O&&(yield T.getTokenFromCode(O,x),T.restoreRequestedRoute()),Promise.resolve()}return Promise.reject()})()}saveRequestedRoute(){this.config.preserveRequestedRoute&&this._storage.setItem("requested_route",window.location.pathname+window.location.search)}restoreRequestedRoute(){const x=this._storage.getItem("requested_route");x&&history.replaceState(null,"",window.location.origin+x)}getCodePartsFromUrl(x){return x&&0!==x.length?("?"===x.charAt(0)&&(x=x.substr(1)),this.urlHelper.parseQueryString(x)):this.urlHelper.getHashFragmentParams()}getTokenFromCode(x,T){let u=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","authorization_code").set("code",x).set("redirect_uri",T.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let V;V=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("PKCE_verifier"):this._storage.getItem("PKCE_verifier"),V?u=u.set("code_verifier",V):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(u,T)}fetchAndProcessToken(x,T){T=T||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let u=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const V=btoa(`${this.clientId}:${this.dummyClientSecret}`);u=u.set("Authorization","Basic "+V)}return this.useHttpBasicAuth||(x=x.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(x=x.set("client_secret",this.dummyClientSecret)),new Promise((V,O)=>{if(this.customQueryParams)for(let I of Object.getOwnPropertyNames(this.customQueryParams))x=x.set(I,this.customQueryParams[I]);this.http.post(this.tokenEndpoint,x,{headers:u}).subscribe(I=>{this.debug("refresh tokenResponse",I),this.storeAccessTokenResponse(I.access_token,I.refresh_token,I.expires_in||this.fallbackAccessTokenExpirationTimeInSec,I.scope,this.extractRecognizedCustomParameters(I)),this.oidc&&I.id_token?this.processIdToken(I.id_token,I.access_token,T.disableNonceCheck).then(N=>{this.storeIdToken(N),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),V(I)}).catch(N=>{this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",N)),console.error("Error validating tokens"),console.error(N),O(N)}):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),V(I))},I=>{console.error("Error getting token",I),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",I)),O(I)})})}tryLoginImplicitFlow(x=null){let T;T=(x=x||{}).customHashFragment?this.urlHelper.getHashFragmentParams(x.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",T);const u=T.state;let[V,O]=this.parseState(u);if(this.state=O,T.error){this.debug("error trying to login"),this.handleLoginError(x,T);const G=new OAuthErrorEvent("token_error",{},T);return this.eventsSubject.next(G),Promise.reject(G)}const I=T.access_token,N=T.id_token,W=T.session_state,Q=T.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!I||this.requestAccessToken&&!x.disableOAuth2StateCheck&&!u||this.oidc&&!N)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!W&&this.logger.warn("session checks (Session Status Change Notification) were activated in the configuration but the id_token does not contain a session_state claim"),this.requestAccessToken&&!x.disableNonceCheck&&!this.validateNonce(V)){const $=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next($),Promise.reject($)}return this.requestAccessToken&&this.storeAccessTokenResponse(I,null,T.expires_in||this.fallbackAccessTokenExpirationTimeInSec,Q),this.oidc?this.processIdToken(N,I,x.disableNonceCheck).then(G=>x.validationHandler?x.validationHandler({accessToken:I,idClaims:G.idTokenClaims,idToken:G.idToken,state:u}).then($=>G):G).then(G=>(this.storeIdToken(G),this.storeSessionState(W),this.clearHashAfterLogin&&!x.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.callOnTokenReceivedIfExists(x),this.inImplicitFlow=!1,!0)).catch(G=>(this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",G)),this.logger.error("Error validating tokens"),this.logger.error(G),Promise.reject(G))):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.clearHashAfterLogin&&!x.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(x),Promise.resolve(!0))}parseState(x){let T=x,u="";if(x){const V=x.indexOf(this.config.nonceStateSeparator);V>-1&&(T=x.substr(0,V),u=x.substr(V+this.config.nonceStateSeparator.length))}return[T,u]}validateNonce(x){let T;return T=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),T===x||(console.error("Validating access_token failed, wrong state/nonce.",T,x),!1)}storeIdToken(x){this._storage.setItem("id_token",x.idToken),this._storage.setItem("id_token_claims_obj",x.idTokenClaimsJson),this._storage.setItem("id_token_expires_at",""+x.idTokenExpiresAt),this._storage.setItem("id_token_stored_at",""+this.dateTimeService.now())}storeSessionState(x){this._storage.setItem("session_state",x)}getSessionState(){return this._storage.getItem("session_state")}handleLoginError(x,T){x.onLoginError&&x.onLoginError(T),this.clearHashAfterLogin&&!x.preventClearHashAfterLogin&&this.clearLocationHash()}getClockSkewInMsec(x=6e5){return this.clockSkewInSec?1e3*this.clockSkewInSec:x}processIdToken(x,T,u=!1){const V=x.split("."),I=b64DecodeUnicode(this.padBase64(V[0])),N=JSON.parse(I),Q=b64DecodeUnicode(this.padBase64(V[1])),G=JSON.parse(Q);let $;if($=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Array.isArray(G.aud)){if(G.aud.every(de=>de!==this.clientId)){const de="Wrong audience: "+G.aud.join(",");return this.logger.warn(de),Promise.reject(de)}}else if(G.aud!==this.clientId){const de="Wrong audience: "+G.aud;return this.logger.warn(de),Promise.reject(de)}if(!G.sub){const de="No sub claim in id_token";return this.logger.warn(de),Promise.reject(de)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==G.sub){const de=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${G.sub}`;return this.logger.warn(de),Promise.reject(de)}if(!G.iat){const de="No iat claim in id_token";return this.logger.warn(de),Promise.reject(de)}if(!this.skipIssuerCheck&&G.iss!==this.issuer){const de="Wrong issuer: "+G.iss;return this.logger.warn(de),Promise.reject(de)}if(!u&&G.nonce!==$){const de="Wrong nonce: "+G.nonce;return this.logger.warn(de),Promise.reject(de)}if(this.hasOwnProperty("responseType")&&("code"===this.responseType||"id_token"===this.responseType)&&(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!G.at_hash){const de="An at_hash is needed!";return this.logger.warn(de),Promise.reject(de)}const U=this.dateTimeService.now(),te=1e3*G.iat,ne=1e3*G.exp,X=this.getClockSkewInMsec();if(te-X>=U||ne+X<=U){const de="Token has expired";return console.error(de),console.error({now:U,issuedAtMSec:te,expiresAtMSec:ne}),Promise.reject(de)}const ie={accessToken:T,idToken:x,jwks:this.jwks,idTokenClaims:G,idTokenHeader:N,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(ie).then(de=>({idToken:x,idTokenClaims:G,idTokenClaimsJson:Q,idTokenHeader:N,idTokenHeaderJson:I,idTokenExpiresAt:ne})):this.checkAtHash(ie).then(de=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!de){const he="Wrong at_hash";return this.logger.warn(he),Promise.reject(he)}return this.checkSignature(ie).then(he=>{const Ve={idToken:x,idTokenClaims:G,idTokenClaimsJson:Q,idTokenHeader:N,idTokenHeaderJson:I,idTokenExpiresAt:ne};return this.disableAtHashCheck?Ve:this.checkAtHash(ie).then(Be=>{if(this.requestAccessToken&&!Be){const we="Wrong at_hash";return this.logger.warn(we),Promise.reject(we)}return Ve})})})}getIdentityClaims(){const x=this._storage.getItem("id_token_claims_obj");return x?JSON.parse(x):null}getGrantedScopes(){const x=this._storage.getItem("granted_scopes");return x?JSON.parse(x):null}getIdToken(){return this._storage?this._storage.getItem("id_token"):null}padBase64(x){for(;x.length%4!=0;)x+="=";return x}getAccessToken(){return this._storage?this._storage.getItem("access_token"):null}getRefreshToken(){return this._storage?this._storage.getItem("refresh_token"):null}getAccessTokenExpiration(){return this._storage.getItem("expires_at")?parseInt(this._storage.getItem("expires_at"),10):null}getAccessTokenStoredAt(){return parseInt(this._storage.getItem("access_token_stored_at"),10)}getIdTokenStoredAt(){return parseInt(this._storage.getItem("id_token_stored_at"),10)}getIdTokenExpiration(){return this._storage.getItem("id_token_expires_at")?parseInt(this._storage.getItem("id_token_expires_at"),10):null}hasValidAccessToken(){if(this.getAccessToken()){const x=this._storage.getItem("expires_at"),T=this.dateTimeService.new();return!(x&&parseInt(x,10)=0&&null!==this._storage.getItem(x)?JSON.parse(this._storage.getItem(x)):null}authorizationHeader(){return"Bearer "+this.getAccessToken()}logOut(x={},T=""){let u=!1;"boolean"==typeof x&&(u=x,x={});const V=this.getIdToken();if(this._storage.removeItem("access_token"),this._storage.removeItem("id_token"),this._storage.removeItem("refresh_token"),this.saveNoncesInLocalStorage?(localStorage.removeItem("nonce"),localStorage.removeItem("PKCE_verifier")):(this._storage.removeItem("nonce"),this._storage.removeItem("PKCE_verifier")),this._storage.removeItem("expires_at"),this._storage.removeItem("id_token_claims_obj"),this._storage.removeItem("id_token_expires_at"),this._storage.removeItem("id_token_stored_at"),this._storage.removeItem("access_token_stored_at"),this._storage.removeItem("granted_scopes"),this._storage.removeItem("session_state"),this.config.customTokenParameters&&this.config.customTokenParameters.forEach(I=>this._storage.removeItem(I)),this.silentRefreshSubject=null,this.eventsSubject.next(new OAuthInfoEvent("logout")),!this.logoutUrl||u||!V&&!this.postLogoutRedirectUri)return;let O;if(!this.validateUrlForHttps(this.logoutUrl))throw new Error("logoutUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(this.logoutUrl.indexOf("{{")>-1)O=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(V)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let I=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec});V&&(I=I.set("id_token_hint",V));const N=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";N&&(I=I.set("post_logout_redirect_uri",N),T&&(I=I.set("state",T)));for(let W in x)I=I.set(W,x[W]);O=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+I.toString()}this.config.openUri(O)}createAndSaveNonce(){const x=this;return this.createNonce().then(function(T){return x.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("nonce",T):x._storage.setItem("nonce",T),T})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();const x=this.document.getElementById(this.silentRefreshIFrameName);x&&x.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();const T=this.document.getElementById(this.sessionCheckIFrameName);T&&T.remove()}createNonce(){return new Promise(x=>{if(this.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");const T="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";let u=45,V="";const O=typeof self>"u"?null:self.crypto||self.msCrypto;if(O){let I=new Uint8Array(u);O.getRandomValues(I),I.map||(I.map=Array.prototype.map),I=I.map(N=>T.charCodeAt(N%T.length)),V=String.fromCharCode.apply(null,I)}else for(;0"discovery_document_loaded"===u.type)).subscribe(u=>this.initCodeFlowInternal(x,T))}initCodeFlowInternal(x="",T={}){if(!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let u={},V=null;"string"==typeof T?V=T:"object"==typeof T&&(u=T),this.createLoginUrl(x,V,null,!1,u).then(this.config.openUri).catch(O=>{console.error("Error in initAuthorizationCodeFlow"),console.error(O)})}createChallangeVerifierPairForPKCE(){var x=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){if(!x.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");const T=yield x.createNonce();return[base64UrlEncode(yield x.crypto.calcHash(T,"sha-256")),T]})()}extractRecognizedCustomParameters(x){let T=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(u=>{x[u]&&T.set(u,JSON.stringify(x[u]))}),T}revokeTokenAndLogout(x={},T=!1){let u=this.revocationEndpoint,V=this.getAccessToken(),O=this.getRefreshToken();if(!V)return;let I=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}),N=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const W=btoa(`${this.clientId}:${this.dummyClientSecret}`);N=N.set("Authorization","Basic "+W)}if(this.useHttpBasicAuth||(I=I.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(I=I.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const W of Object.getOwnPropertyNames(this.customQueryParams))I=I.set(W,this.customQueryParams[W]);return new Promise((W,Q)=>{let G,$;if(V){let U=I.set("token",V).set("token_type_hint","access_token");G=this.http.post(u,U,{headers:N})}else G=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);if(O){let U=I.set("token",O).set("token_type_hint","refresh_token");$=this.http.post(u,U,{headers:N})}else $=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);T&&(G=G.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(U=>0===U.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(U))),$=$.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(U=>0===U.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(U)))),(0,rxjs__WEBPACK_IMPORTED_MODULE_17__.a)([G,$]).subscribe(U=>{this.logOut(x),W(U),this.logger.info("Token successfully revoked")},U=>{this.logger.error("Error revoking token",U),this.eventsSubject.next(new OAuthErrorEvent("token_revoke_error",U)),Q(U)})})}clearLocationHash(){""!=location.hash&&(location.hash="")}}return F.\u0275fac=function(x){return new(x||F)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_core__WEBPACK_IMPORTED_MODULE_1__.R0b),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.eN),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthStorage,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(ValidationHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(AuthConfig,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(UrlHelperService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthLogger),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(HashHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common__WEBPACK_IMPORTED_MODULE_18__.K0),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(DateTimeProvider))},F.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:F,factory:F.\u0275fac}),F})();class OAuthModuleConfig{}class OAuthResourceServerConfig{}class OAuthResourceServerErrorHandler{}class OAuthNoopResourceServerErrorHandler{handleError(z){return(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(z)}}let DefaultOAuthInterceptor=(()=>{class F{constructor(x,T,u){this.oAuthService=x,this.errorHandler=T,this.moduleConfig=u}checkUrl(x){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(x):!this.moduleConfig.resourceServer.allowedUrls||!!this.moduleConfig.resourceServer.allowedUrls.find(T=>x.toLowerCase().startsWith(T.toLowerCase()))}intercept(x,T){const u=x.url.toLowerCase();return this.moduleConfig&&this.moduleConfig.resourceServer&&this.checkUrl(u)?this.moduleConfig.resourceServer.sendAccessToken?(0,rxjs__WEBPACK_IMPORTED_MODULE_19__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(this.oAuthService.getAccessToken()).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(O=>!!O)),this.oAuthService.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(O=>"token_received"===O.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.V)(this.oAuthService.waitForTokenInMsec||0),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(O=>(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(O=>this.oAuthService.getAccessToken()))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.q)(1),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_22__.z)(O=>{if(O){const N=x.headers.set("Authorization","Bearer "+O);x=x.clone({headers:N})}return T.handle(x).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(I=>this.errorHandler.handleError(I)))})):T.handle(x).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(O=>this.errorHandler.handleError(O))):T.handle(x)}}return F.\u0275fac=function(x){return new(x||F)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthResourceServerErrorHandler),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthModuleConfig,8))},F.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:F,factory:F.\u0275fac}),F})();class NullValidationHandler{validateSignature(z){return Promise.resolve(null)}validateAtHash(z){return Promise.resolve(!0)}}function createDefaultLogger(){return console}function createDefaultStorage(){return typeof sessionStorage<"u"?sessionStorage:new MemoryStorage}let OAuthModule=(()=>{class F{static forRoot(x=null,T=NullValidationHandler){return{ngModule:F,providers:[OAuthService,UrlHelperService,{provide:OAuthLogger,useFactory:createDefaultLogger},{provide:OAuthStorage,useFactory:createDefaultStorage},{provide:ValidationHandler,useClass:T},{provide:HashHandler,useClass:DefaultHashHandler},{provide:OAuthResourceServerErrorHandler,useClass:OAuthNoopResourceServerErrorHandler},{provide:OAuthModuleConfig,useValue:x},{provide:_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.TP,useClass:DefaultOAuthInterceptor,multi:!0},{provide:DateTimeProvider,useClass:SystemDateTimeProvider}]}}}return F.\u0275fac=function(x){return new(x||F)},F.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_1__.oAB({type:F}),F.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_1__.cJS({imports:[[_angular_common__WEBPACK_IMPORTED_MODULE_18__.ez]]}),F})();const err="PLEASE READ THIS CAREFULLY:\n\nBeginning with angular-oauth2-oidc version 9, the JwksValidationHandler\nhas been moved to an library of its own. If you need it for implementing\nOAuth2/OIDC **implicit flow**, please install it using npm:\n\n npm i angular-oauth2-oidc-jwks --save\n\nAfter that, you can import it into your application:\n\n import { JwksValidationHandler } from 'angular-oauth2-oidc-jwks';\n\nPlease note, that this dependency is not needed for the **code flow**,\nwhich is nowadays the **recommented** one for single page applications.\nThis also results in smaller bundle sizes.\n";class JwksValidationHandler extends NullValidationHandler{constructor(){super(),console.error(err)}}const AUTH_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_1__.OlP("AUTH_CONFIG")},5861:(F,z,x)=>{"use strict";function T(V,O,I,N,W,Q,G){try{var $=V[Q](G),U=$.value}catch(te){return void I(te)}$.done?O(U):Promise.resolve(U).then(N,W)}function u(V){return function(){var O=this,I=arguments;return new Promise(function(N,W){var Q=V.apply(O,I);function G(U){T(Q,N,W,G,$,"next",U)}function $(U){T(Q,N,W,G,$,"throw",U)}G(void 0)})}}x.d(z,{Z:()=>u})},4147:F=>{"use strict";F.exports={i8:"10.3.0"}}},F=>{F(F.s=5237)}]); \ No newline at end of file diff --git a/dist/apps/linker/assets/i18n/en.json b/dist/apps/linker/assets/i18n/en.json index a36ee8ce3..9082b16b0 100644 --- a/dist/apps/linker/assets/i18n/en.json +++ b/dist/apps/linker/assets/i18n/en.json @@ -17,7 +17,7 @@ "SESSION_EXPIRATION": { "TITLE": "Session expiration", "DESCRIPTION": "Your session has expired. Please sign in to continue.", - "SIGN_IN": "Sign in" + "SIGN_IN": "Proceed" }, "MFA_REQUIRED_DIALOG": { "TITLE": "Step-up authentication required", diff --git a/dist/apps/linker/index.html b/dist/apps/linker/index.html index 4dbd44a8d..44dbd4115 100644 --- a/dist/apps/linker/index.html +++ b/dist/apps/linker/index.html @@ -14,5 +14,5 @@
- + diff --git a/dist/apps/linker/main.17b095031f130e9f.js b/dist/apps/linker/main.17b095031f130e9f.js deleted file mode 100644 index 963dc54cb..000000000 --- a/dist/apps/linker/main.17b095031f130e9f.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunklinker=self.webpackChunklinker||[]).push([[179],{442:(F,j,x)=>{"use strict";var T=x(6895),p=x(4650);class B extends T.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class O extends B{static makeCurrent(){(0,T.HT)(new O)}onAndCancel(r,e,t){return r.addEventListener(e,t,!1),()=>{r.removeEventListener(e,t,!1)}}dispatchEvent(r,e){r.dispatchEvent(e)}remove(r){r.parentNode&&r.parentNode.removeChild(r)}createElement(r,e){return(e=e||this.getDefaultDocument()).createElement(r)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(r){return r.nodeType===Node.ELEMENT_NODE}isShadowRoot(r){return r instanceof DocumentFragment}getGlobalEventTarget(r,e){return"window"===e?window:"document"===e?r:"body"===e?r.body:null}getBaseHref(r){const e=function N(){return I=I||document.querySelector("base"),I?I.getAttribute("href"):null}();return null==e?null:function Q(s){W=W||document.createElement("a"),W.setAttribute("href",s);const r=W.pathname;return"/"===r.charAt(0)?r:`/${r}`}(e)}resetBaseElement(){I=null}getUserAgent(){return window.navigator.userAgent}getCookie(r){return(0,T.Mx)(document.cookie,r)}}let W,I=null;const G=new p.OlP("TRANSITION_ID"),U=[{provide:p.ip1,useFactory:function $(s,r,e){return()=>{e.get(p.CZH).donePromise.then(()=>{const t=(0,T.q)(),o=r.querySelectorAll(`style[ng-transition="${s}"]`);for(let l=0;l{class s{build(){return new XMLHttpRequest}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})();const X=new p.OlP("EventManagerPlugins");let ie=(()=>{class s{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(o=>o.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,o){return this._findPluginFor(t).addEventListener(e,t,o)}addGlobalEventListener(e,t,o){return this._findPluginFor(t).addGlobalEventListener(e,t,o)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const o=this._plugins;for(let l=0;l{class s{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(o=>{this._stylesSet.has(o)||(this._stylesSet.add(o),t.add(o))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})(),ge=(()=>{class s extends he{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,t,o){e.forEach(l=>{const c=this._doc.createElement("style");c.textContent=l,o.push(t.appendChild(c))})}addHost(e){const t=[];this._addStylesToHost(this._stylesSet,e,t),this._hostNodes.set(e,t)}removeHost(e){const t=this._hostNodes.get(e);t&&t.forEach(Ve),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((t,o)=>{this._addStylesToHost(e,o,t)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(Ve))}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(T.K0))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})();function Ve(s){(0,T.q)().remove(s)}const Le={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/",math:"http://www.w3.org/1998/MathML/"},we=/%COMP%/g;function oe(s,r,e){for(let t=0;t{if("__ngUnwrap__"===r)return s;!1===s(r)&&(r.preventDefault(),r.returnValue=!1)}}let ue=(()=>{class s{constructor(e,t,o){this.eventManager=e,this.sharedStylesHost=t,this.appId=o,this.rendererByCompId=new Map,this.defaultRenderer=new Ie(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case p.ifc.Emulated:{let o=this.rendererByCompId.get(t.id);return o||(o=new Dt(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,o)),o.applyToHost(e),o}case 1:case p.ifc.ShadowDom:return new Ne(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const o=oe(t.id,t.styles,[]);this.sharedStylesHost.addStyles(o),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(ie),p.LFG(ge),p.LFG(p.AFp))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})();class Ie{constructor(r){this.eventManager=r,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(r,e){return e?document.createElementNS(Le[e]||e,r):document.createElement(r)}createComment(r){return document.createComment(r)}createText(r){return document.createTextNode(r)}appendChild(r,e){(vt(r)?r.content:r).appendChild(e)}insertBefore(r,e,t){r&&(vt(r)?r.content:r).insertBefore(e,t)}removeChild(r,e){r&&r.removeChild(e)}selectRootElement(r,e){let t="string"==typeof r?document.querySelector(r):r;if(!t)throw new Error(`The selector "${r}" did not match any elements`);return e||(t.textContent=""),t}parentNode(r){return r.parentNode}nextSibling(r){return r.nextSibling}setAttribute(r,e,t,o){if(o){e=o+":"+e;const l=Le[o];l?r.setAttributeNS(l,e,t):r.setAttribute(e,t)}else r.setAttribute(e,t)}removeAttribute(r,e,t){if(t){const o=Le[t];o?r.removeAttributeNS(o,e):r.removeAttribute(`${t}:${e}`)}else r.removeAttribute(e)}addClass(r,e){r.classList.add(e)}removeClass(r,e){r.classList.remove(e)}setStyle(r,e,t,o){o&(p.JOm.DashCase|p.JOm.Important)?r.style.setProperty(e,t,o&p.JOm.Important?"important":""):r.style[e]=t}removeStyle(r,e,t){t&p.JOm.DashCase?r.style.removeProperty(e):r.style[e]=""}setProperty(r,e,t){r[e]=t}setValue(r,e){r.nodeValue=e}listen(r,e,t){return"string"==typeof r?this.eventManager.addGlobalEventListener(r,e,se(t)):this.eventManager.addEventListener(r,e,se(t))}}function vt(s){return"TEMPLATE"===s.tagName&&void 0!==s.content}class Dt extends Ie{constructor(r,e,t,o){super(r),this.component=t;const l=oe(o+"-"+t.id,t.styles,[]);e.addStyles(l),this.contentAttr=function Me(s){return"_ngcontent-%COMP%".replace(we,s)}(o+"-"+t.id),this.hostAttr=function Se(s){return"_nghost-%COMP%".replace(we,s)}(o+"-"+t.id)}applyToHost(r){super.setAttribute(r,this.hostAttr,"")}createElement(r,e){const t=super.createElement(r,e);return super.setAttribute(t,this.contentAttr,""),t}}class Ne extends Ie{constructor(r,e,t,o){super(r),this.sharedStylesHost=e,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const l=oe(o.id,o.styles,[]);for(let c=0;c{class s extends de{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,o){return e.addEventListener(t,o,!1),()=>this.removeEventListener(e,t,o)}removeEventListener(e,t,o){return e.removeEventListener(t,o)}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(T.K0))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})();const Fn=["alt","control","meta","shift"],xt={"\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"},vn={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"},li={alt:s=>s.altKey,control:s=>s.ctrlKey,meta:s=>s.metaKey,shift:s=>s.shiftKey};let Br=(()=>{class s extends de{constructor(e){super(e)}supports(e){return null!=s.parseEventName(e)}addEventListener(e,t,o){const l=s.parseEventName(t),c=s.eventCallback(l.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,T.q)().onAndCancel(e,l.domEventName,c))}static parseEventName(e){const t=e.toLowerCase().split("."),o=t.shift();if(0===t.length||"keydown"!==o&&"keyup"!==o)return null;const l=s._normalizeKey(t.pop());let c="";if(Fn.forEach(i=>{const a=t.indexOf(i);a>-1&&(t.splice(a,1),c+=i+".")}),c+=l,0!=t.length||0===l.length)return null;const n={};return n.domEventName=o,n.fullKey=c,n}static getEventFullKey(e){let t="",o=function Yl(s){let r=s.key;if(null==r){if(r=s.keyIdentifier,null==r)return"Unidentified";r.startsWith("U+")&&(r=String.fromCharCode(parseInt(r.substring(2),16)),3===s.location&&vn.hasOwnProperty(r)&&(r=vn[r]))}return xt[r]||r}(e);return o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),Fn.forEach(l=>{l!=o&&(0,li[l])(e)&&(t+=l+".")}),t+=o,t}static eventCallback(e,t,o){return l=>{s.getEventFullKey(l)===e&&o.runGuarded(()=>t(l))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(T.K0))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})();const Qe=(0,p.eFA)(p._c5,"browser",[{provide:p.Lbi,useValue:T.bD},{provide:p.g9A,useValue:function Nn(){O.makeCurrent()},multi:!0},{provide:T.K0,useFactory:function ha(){return(0,p.RDi)(document),document},deps:[]}]),ui=new p.OlP(""),pa=[{provide:p.rWj,useClass:class te{addToWindow(r){p.dqk.getAngularTestability=(t,o=!0)=>{const l=r.findTestabilityInTree(t,o);if(null==l)throw new Error("Could not find testability for element.");return l},p.dqk.getAllAngularTestabilities=()=>r.getAllTestabilities(),p.dqk.getAllAngularRootElements=()=>r.getAllRootElements(),p.dqk.frameworkStabilizers||(p.dqk.frameworkStabilizers=[]),p.dqk.frameworkStabilizers.push(t=>{const o=p.dqk.getAllAngularTestabilities();let l=o.length,c=!1;const n=function(i){c=c||i,l--,0==l&&t(c)};o.forEach(function(i){i.whenStable(n)})})}findTestabilityInTree(r,e,t){return null==e?null:r.getTestability(e)??(t?(0,T.q)().isShadowRoot(e)?this.findTestabilityInTree(r,e.host,!0):this.findTestabilityInTree(r,e.parentElement,!0):null)}},deps:[]},{provide:p.lri,useClass:p.dDg,deps:[p.R0b,p.eoX,p.rWj]},{provide:p.dDg,useClass:p.dDg,deps:[p.R0b,p.eoX,p.rWj]}],Di=[{provide:p.zSh,useValue:"root"},{provide:p.qLn,useFactory:function jn(){return new p.qLn},deps:[]},{provide:X,useClass:Mi,multi:!0,deps:[T.K0,p.R0b,p.Lbi]},{provide:X,useClass:Br,multi:!0,deps:[T.K0]},{provide:ue,useClass:ue,deps:[ie,ge,p.AFp]},{provide:p.FYo,useExisting:ue},{provide:he,useExisting:ge},{provide:ge,useClass:ge,deps:[T.K0]},{provide:ie,useClass:ie,deps:[X,p.R0b]},{provide:T.JF,useClass:ne,deps:[]},[]];let fa=(()=>{class s{constructor(e){}static withServerTransition(e){return{ngModule:s,providers:[{provide:p.AFp,useValue:e.appId},{provide:G,useExisting:p.AFp},U]}}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(ui,12))},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({providers:[...Di,...pa],imports:[T.ez,p.hGG]}),s})(),Y=(()=>{class s{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(T.K0))},s.\u0275prov=p.Yz7({token:s,factory:function(e){let t=null;return t=e?new e:function Ce(){return new Y((0,p.LFG)(T.K0))}(),t},providedIn:"root"}),s})();typeof window<"u"&&window;let _i=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=p.Yz7({token:s,factory:function(e){let t=null;return t=e?new(e||s):p.LFG(nt),t},providedIn:"root"}),s})(),nt=(()=>{class s extends _i{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case p.q3G.NONE:return t;case p.q3G.HTML:return(0,p.qzn)(t,"HTML")?(0,p.z3N)(t):(0,p.EiD)(this._doc,String(t)).toString();case p.q3G.STYLE:return(0,p.qzn)(t,"Style")?(0,p.z3N)(t):t;case p.q3G.SCRIPT:if((0,p.qzn)(t,"Script"))return(0,p.z3N)(t);throw new Error("unsafe value used in a script context");case p.q3G.URL:return(0,p.qzn)(t,"URL")?(0,p.z3N)(t):(0,p.mCW)(String(t));case p.q3G.RESOURCE_URL:if((0,p.qzn)(t,"ResourceURL"))return(0,p.z3N)(t);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return(0,p.JVY)(e)}bypassSecurityTrustStyle(e){return(0,p.L6k)(e)}bypassSecurityTrustScript(e){return(0,p.eBb)(e)}bypassSecurityTrustUrl(e){return(0,p.LAX)(e)}bypassSecurityTrustResourceUrl(e){return(0,p.pB0)(e)}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(T.K0))},s.\u0275prov=p.Yz7({token:s,factory:function(e){let t=null;return t=e?new e:function ke(s){return new nt(s.get(T.K0))}(p.LFG(p.zs3)),t},providedIn:"root"}),s})();var mt=x(2076),Pe=x(9646),xe=x(7579);class Nt extends xe.x{constructor(r){super(),this._value=r}get value(){return this.getValue()}_subscribe(r){const e=super._subscribe(r);return!e.closed&&r.next(this._value),e}getValue(){const{hasError:r,thrownError:e,_value:t}=this;if(r)throw e;return this._throwIfClosed(),t}next(r){super.next(this._value=r)}}var Ht=x(6805),fr=x(9841),Li=x(7272),We=x(9751),zn=x(8421);function nn(s){return new We.y(r=>{(0,zn.Xf)(s()).subscribe(r)})}var ga=x(9635),bi=x(2843),jt=x(515),qt=x(727),ci=x(4482),Ot=x(5403);function xn(){return(0,ci.e)((s,r)=>{let e=null;s._refCount++;const t=(0,Ot.x)(r,void 0,void 0,void 0,()=>{if(!s||s._refCount<=0||0<--s._refCount)return void(e=null);const o=s._connection,l=e;e=null,o&&(!l||o===l)&&o.unsubscribe(),r.unsubscribe()});s.subscribe(t),t.closed||(e=s.connect())})}class xs extends We.y{constructor(r,e){super(),this.source=r,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,(0,ci.A)(r)&&(this.lift=r.lift)}_subscribe(r){return this.getSubject().subscribe(r)}getSubject(){const r=this._subject;return(!r||r.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:r}=this;this._subject=this._connection=null,r?.unsubscribe()}connect(){let r=this._connection;if(!r){r=this._connection=new qt.w0;const e=this.getSubject();r.add(this.source.subscribe((0,Ot.x)(e,void 0,()=>{this._teardown(),e.complete()},t=>{this._teardown(),e.error(t)},()=>this._teardown()))),r.closed&&(this._connection=null,r=qt.w0.EMPTY)}return r}refCount(){return xn()(this)}}var je=x(4004),Ri=x(3900),ri=x(5698),_a=x(3269);function vi(...s){const r=(0,_a.yG)(s);return(0,ci.e)((e,t)=>{(r?(0,Li.z)(s,e,r):(0,Li.z)(s,e)).subscribe(t)})}var Wt=x(9300),hi=x(5577),Ii=x(590),kt=x(4351),$t=x(8505),Et=x(262);function rn(s,r,e,t,o){return(l,c)=>{let n=e,i=r,a=0;l.subscribe((0,Ot.x)(c,d=>{const u=a++;i=n?s(i,d,u):(n=!0,d),t&&c.next(i)},o&&(()=>{n&&c.next(i),c.complete()})))}}function ba(s,r){return(0,ci.e)(rn(s,r,arguments.length>=2,!0))}function Un(s){return s<=0?()=>jt.E:(0,ci.e)((r,e)=>{let t=[];r.subscribe((0,Ot.x)(e,o=>{t.push(o),s{for(const o of t)e.next(o);e.complete()},void 0,()=>{t=null}))})}var mr=x(8068),ki=x(6590),Jl=x(4671);function Yp(s,r){const e=arguments.length>=2;return t=>t.pipe(s?(0,Wt.h)((o,l)=>s(o,l,t)):Jl.y,Un(1),e?(0,ki.d)(r):(0,mr.T)(()=>new Ht.K))}var Kd=x(9718);function Ca(s){return(0,ci.e)((r,e)=>{try{r.subscribe(e)}finally{e.add(s)}})}var Ts=x(8189);const dt="primary";class dn{constructor(r){this.params=r||{}}has(r){return Object.prototype.hasOwnProperty.call(this.params,r)}get(r){if(this.has(r)){const e=this.params[r];return Array.isArray(e)?e[0]:e}return null}getAll(r){if(this.has(r)){const e=this.params[r];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function ya(s){return new dn(s)}function Qp(s,r,e){const t=e.path.split("/");if(t.length>s.length||"full"===e.pathMatch&&(r.hasChildren()||t.lengtht[l]===o)}return s===r}function Xd(s){return Array.prototype.concat.apply([],s)}function eu(s){return s.length>0?s[s.length-1]:null}function Ci(s,r){for(const e in s)s.hasOwnProperty(e)&&r(s[e],e)}function Gn(s){return(0,p.CqO)(s)?s:(0,p.QGY)(s)?(0,mt.D)(Promise.resolve(s)):(0,Pe.of)(s)}const Kp={exact:function Zl(s,r,e){if(!_r(s.segments,r.segments)||!go(s.segments,r.segments,e)||s.numberOfChildren!==r.numberOfChildren)return!1;for(const t in r.children)if(!s.children[t]||!Zl(s.children[t],r.children[t],e))return!1;return!0},subset:Ss},tu={exact:function gr(s,r){return Tn(s,r)},subset:function mo(s,r){return Object.keys(r).length<=Object.keys(s).length&&Object.keys(r).every(e=>Zd(s[e],r[e]))},ignored:()=>!0};function iu(s,r,e){return Kp[e.paths](s.root,r.root,e.matrixParams)&&tu[e.queryParams](s.queryParams,r.queryParams)&&!("exact"===e.fragment&&s.fragment!==r.fragment)}function Ss(s,r,e){return Xl(s,r,r.segments,e)}function Xl(s,r,e,t){if(s.segments.length>e.length){const o=s.segments.slice(0,e.length);return!(!_r(o,e)||r.hasChildren()||!go(o,e,t))}if(s.segments.length===e.length){if(!_r(s.segments,e)||!go(s.segments,e,t))return!1;for(const o in r.children)if(!s.children[o]||!Ss(s.children[o],r.children[o],t))return!1;return!0}{const o=e.slice(0,s.segments.length),l=e.slice(s.segments.length);return!!(_r(s.segments,o)&&go(s.segments,o,t)&&s.children[dt])&&Xl(s.children[dt],r,l,t)}}function go(s,r,e){return r.every((t,o)=>tu[e](s[o].parameters,t.parameters))}class un{constructor(r,e,t){this.root=r,this.queryParams=e,this.fragment=t}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ya(this.queryParams)),this._queryParamMap}toString(){return Ds.serialize(this)}}class lt{constructor(r,e){this.segments=r,this.children=e,this.parent=null,Ci(e,(t,o)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return bo(this)}}class wa{constructor(r,e){this.path=r,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=ya(this.parameters)),this._parameterMap}toString(){return Co(this)}}function _r(s,r){return s.length===r.length&&s.every((e,t)=>e.path===r[t].path)}let _o=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=p.Yz7({token:s,factory:function(){return new Ms},providedIn:"root"}),s})();class Ms{parse(r){const e=new ce(r);return new un(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(r){const e=`/${Hs(r.root,!0)}`,t=function Ni(s){const r=Object.keys(s).map(e=>{const t=s[e];return Array.isArray(t)?t.map(o=>`${Ps(e)}=${Ps(o)}`).join("&"):`${Ps(e)}=${Ps(t)}`}).filter(e=>!!e);return r.length?`?${r.join("&")}`:""}(r.queryParams);return`${e}${t}${"string"==typeof r.fragment?`#${function Wb(s){return encodeURI(s)}(r.fragment)}`:""}`}}const Ds=new Ms;function bo(s){return s.segments.map(r=>Co(r)).join("/")}function Hs(s,r){if(!s.hasChildren())return bo(s);if(r){const e=s.children[dt]?Hs(s.children[dt],!1):"",t=[];return Ci(s.children,(o,l)=>{l!==dt&&t.push(`${l}:${Hs(o,!1)}`)}),t.length>0?`${e}(${t.join("//")})`:e}{const e=function Fi(s,r){let e=[];return Ci(s.children,(t,o)=>{o===dt&&(e=e.concat(r(t,o)))}),Ci(s.children,(t,o)=>{o!==dt&&(e=e.concat(r(t,o)))}),e}(s,(t,o)=>o===dt?[Hs(s.children[dt],!1)]:[`${o}:${Hs(t,!1)}`]);return 1===Object.keys(s.children).length&&null!=s.children[dt]?`${bo(s)}/${e[0]}`:`${bo(s)}/(${e.join("//")})`}}function Jt(s){return encodeURIComponent(s).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ps(s){return Jt(s).replace(/%3B/gi,";")}function Lr(s){return Jt(s).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ai(s){return decodeURIComponent(s)}function Rs(s){return Ai(s.replace(/\+/g,"%20"))}function Co(s){return`${Lr(s.path)}${function va(s){return Object.keys(s).map(r=>`;${Lr(r)}=${Lr(s[r])}`).join("")}(s.parameters)}`}const M=/^[^\/()?;=#]+/;function k(s){const r=s.match(M);return r?r[0]:""}const D=/^[^=?&#]+/,ee=/^[^&#]+/;class ce{constructor(r){this.url=r,this.remaining=r}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new lt([],{}):new lt([],this.parseChildren())}parseQueryParams(){const r={};if(this.consumeOptional("?"))do{this.parseQueryParam(r)}while(this.consumeOptional("&"));return r}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const r=[];for(this.peekStartsWith("(")||r.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),r.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let t={};return this.peekStartsWith("(")&&(t=this.parseParens(!1)),(r.length>0||Object.keys(e).length>0)&&(t[dt]=new lt(r,e)),t}parseSegment(){const r=k(this.remaining);if(""===r&&this.peekStartsWith(";"))throw new p.vHH(4009,!1);return this.capture(r),new wa(Ai(r),this.parseMatrixParams())}parseMatrixParams(){const r={};for(;this.consumeOptional(";");)this.parseParam(r);return r}parseParam(r){const e=k(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const o=k(this.remaining);o&&(t=o,this.capture(t))}r[Ai(e)]=Ai(t)}parseQueryParam(r){const e=function V(s){const r=s.match(D);return r?r[0]:""}(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const c=function pe(s){const r=s.match(ee);return r?r[0]:""}(this.remaining);c&&(t=c,this.capture(t))}const o=Rs(e),l=Rs(t);if(r.hasOwnProperty(o)){let c=r[o];Array.isArray(c)||(c=[c],r[o]=c),c.push(l)}else r[o]=l}parseParens(r){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const t=k(this.remaining),o=this.remaining[t.length];if("/"!==o&&")"!==o&&";"!==o)throw new p.vHH(4010,!1);let l;t.indexOf(":")>-1?(l=t.slice(0,t.indexOf(":")),this.capture(l),this.capture(":")):r&&(l=dt);const c=this.parseChildren();e[l]=1===Object.keys(c).length?c[dt]:new lt([],c),this.consumeOptional("//")}return e}peekStartsWith(r){return this.remaining.startsWith(r)}consumeOptional(r){return!!this.peekStartsWith(r)&&(this.remaining=this.remaining.substring(r.length),!0)}capture(r){if(!this.consumeOptional(r))throw new p.vHH(4011,!1)}}function Ue(s){return s.segments.length>0?new lt([],{[dt]:s}):s}function Mt(s){const r={};for(const t of Object.keys(s.children)){const l=Mt(s.children[t]);(l.segments.length>0||l.hasChildren())&&(r[t]=l)}return function Bt(s){if(1===s.numberOfChildren&&s.children[dt]){const r=s.children[dt];return new lt(s.segments.concat(r.segments),r.children)}return s}(new lt(s.segments,r))}function Ct(s){return s instanceof un}function be(s,r,e,t,o){if(0===e.length)return $i(r.root,r.root,r.root,t,o);const l=function br(s){if("string"==typeof s[0]&&1===s.length&&"/"===s[0])return new Aa(!0,0,s);let r=0,e=!1;const t=s.reduce((o,l,c)=>{if("object"==typeof l&&null!=l){if(l.outlets){const n={};return Ci(l.outlets,(i,a)=>{n[a]="string"==typeof i?i.split("/"):i}),[...o,{outlets:n}]}if(l.segmentPath)return[...o,l.segmentPath]}return"string"!=typeof l?[...o,l]:0===c?(l.split("/").forEach((n,i)=>{0==i&&"."===n||(0==i&&""===n?e=!0:".."===n?r++:""!=n&&o.push(n))}),o):[...o,l]},[]);return new Aa(e,r,t)}(e);return l.toRoot()?$i(r.root,r.root,new lt([],{}),t,o):function c(i){const a=function ru(s,r,e,t){if(s.isAbsolute)return new ji(r.root,!0,0);if(-1===t)return new ji(e,e===r.root,0);return function $b(s,r,e){let t=s,o=r,l=e;for(;l>o;){if(l-=o,t=t.parent,!t)throw new p.vHH(4005,!1);o=t.segments.length}return new ji(t,!1,o-l)}(e,t+(rt(s.commands[0])?0:1),s.numberOfDoubleDots)}(l,r,s.snapshot?._urlSegment,i),d=a.processChildren?Fr(a.segmentGroup,a.index,l.commands):Zp(a.segmentGroup,a.index,l.commands);return $i(r.root,a.segmentGroup,d,t,o)}(s.snapshot?._lastPathIndex)}function rt(s){return"object"==typeof s&&null!=s&&!s.outlets&&!s.segmentPath}function En(s){return"object"==typeof s&&null!=s&&s.outlets}function $i(s,r,e,t,o){let c,l={};t&&Ci(t,(i,a)=>{l[a]=Array.isArray(i)?i.map(d=>`${d}`):`${i}`}),c=s===r?e:Yt(s,r,e);const n=Ue(Mt(c));return new un(n,l,o)}function Yt(s,r,e){const t={};return Ci(s.children,(o,l)=>{t[l]=o===r?e:Yt(o,r,e)}),new lt(s.segments,t)}class Aa{constructor(r,e,t){if(this.isAbsolute=r,this.numberOfDoubleDots=e,this.commands=t,r&&t.length>0&&rt(t[0]))throw new p.vHH(4003,!1);const o=t.find(En);if(o&&o!==eu(t))throw new p.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class ji{constructor(r,e,t){this.segmentGroup=r,this.processChildren=e,this.index=t}}function Zp(s,r,e){if(s||(s=new lt([],{})),0===s.segments.length&&s.hasChildren())return Fr(s,r,e);const t=function zi(s,r,e){let t=0,o=r;const l={match:!1,pathIndex:0,commandIndex:0};for(;o=e.length)return l;const c=s.segments[o],n=e[t];if(En(n))break;const i=`${n}`,a=t0&&void 0===i)break;if(i&&a&&"object"==typeof a&&void 0===a.outlets){if(!qn(i,a,c))return l;t+=2}else{if(!qn(i,{},c))return l;t++}o++}return{match:!0,pathIndex:o,commandIndex:t}}(s,r,e),o=e.slice(t.commandIndex);if(t.match&&t.pathIndex{"string"==typeof l&&(l=[l]),null!==l&&(o[c]=Zp(s.children[c],r,l))}),Ci(s.children,(l,c)=>{void 0===t[c]&&(o[c]=l)}),new lt(s.segments,o)}}function Sn(s,r,e){const t=s.segments.slice(0,r);let o=0;for(;o{"string"==typeof e&&(e=[e]),null!==e&&(r[t]=Sn(new lt([],{}),0,e))}),r}function xa(s){const r={};return Ci(s,(e,t)=>r[t]=`${e}`),r}function qn(s,r,e){return s==e.path&&Tn(r,e.parameters)}class Cr{constructor(r,e){this.id=r,this.url=e}}class tc extends Cr{constructor(r,e,t="imperative",o=null){super(r,e),this.type=0,this.navigationTrigger=t,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Nr extends Cr{constructor(r,e,t){super(r,e),this.urlAfterRedirects=t,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class ic extends Cr{constructor(r,e,t,o){super(r,e),this.reason=t,this.code=o,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class nc extends Cr{constructor(r,e,t,o){super(r,e),this.error=t,this.target=o,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class au extends Cr{constructor(r,e,t,o){super(r,e),this.urlAfterRedirects=t,this.state=o,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ef extends Cr{constructor(r,e,t,o){super(r,e),this.urlAfterRedirects=t,this.state=o,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ou extends Cr{constructor(r,e,t,o,l){super(r,e),this.urlAfterRedirects=t,this.state=o,this.shouldActivate=l,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Qb extends Cr{constructor(r,e,t,o){super(r,e),this.urlAfterRedirects=t,this.state=o,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class tf extends Cr{constructor(r,e,t,o){super(r,e),this.urlAfterRedirects=t,this.state=o,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class su{constructor(r){this.route=r,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class nf{constructor(r){this.route=r,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class rf{constructor(r){this.snapshot=r,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class af{constructor(r){this.snapshot=r,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class sf{constructor(r){this.snapshot=r,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class lu{constructor(r){this.snapshot=r,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class lf{constructor(r,e,t){this.routerEvent=r,this.position=e,this.anchor=t,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Bi{constructor(r){this._root=r}get root(){return this._root.value}parent(r){const e=this.pathFromRoot(r);return e.length>1?e[e.length-2]:null}children(r){const e=Wn(r,this._root);return e?e.children.map(t=>t.value):[]}firstChild(r){const e=Wn(r,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(r){const e=zt(r,this._root);return e.length<2?[]:e[e.length-2].children.map(o=>o.value).filter(o=>o!==r)}pathFromRoot(r){return zt(r,this._root).map(e=>e.value)}}function Wn(s,r){if(s===r.value)return r;for(const e of r.children){const t=Wn(s,e);if(t)return t}return null}function zt(s,r){if(s===r.value)return[r];for(const e of r.children){const t=zt(s,e);if(t.length)return t.unshift(r),t}return[]}class $n{constructor(r,e){this.value=r,this.children=e}toString(){return`TreeNode(${this.value})`}}function yo(s){const r={};return s&&s.children.forEach(e=>r[e.value.outlet]=e),r}class cu extends Bi{constructor(r,e){super(r),this.snapshot=e,oc(this,r)}toString(){return this.snapshot.toString()}}function cf(s,r){const e=function Kb(s,r){const c=new Ta([],{},{},"",{},dt,r,null,s.root,-1,{});return new ac("",new $n(c,[]))}(s,r),t=new Nt([new wa("",{})]),o=new Nt({}),l=new Nt({}),c=new Nt({}),n=new Nt(""),i=new jr(t,o,c,n,l,dt,r,e.root);return i.snapshot=e.root,new cu(new $n(i,[]),e)}class jr{constructor(r,e,t,o,l,c,n,i){this.url=r,this.params=e,this.queryParams=t,this.fragment=o,this.data=l,this.outlet=c,this.component=n,this._futureSnapshot=i}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,je.U)(r=>ya(r)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,je.U)(r=>ya(r)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Is(s,r="emptyOnly"){const e=s.pathFromRoot;let t=0;if("always"!==r)for(t=e.length-1;t>=1;){const o=e[t],l=e[t-1];if(o.routeConfig&&""===o.routeConfig.path)t--;else{if(l.component)break;t--}}return function rc(s){return s.reduce((r,e)=>({params:{...r.params,...e.params},data:{...r.data,...e.data},resolve:{...e.data,...r.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(t))}class Ta{constructor(r,e,t,o,l,c,n,i,a,d,u,f){this.url=r,this.params=e,this.queryParams=t,this.fragment=o,this.data=l,this.outlet=c,this.component=n,this.routeConfig=i,this._urlSegment=a,this._lastPathIndex=d,this._correctedLastPathIndex=f??d,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=ya(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ya(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class ac extends Bi{constructor(r,e){super(e),this.url=r,oc(this,e)}toString(){return df(this._root)}}function oc(s,r){r.value._routerState=s,r.children.forEach(e=>oc(s,e))}function df(s){const r=s.children.length>0?` { ${s.children.map(df).join(", ")} } `:"";return`${s.value}${r}`}function Yn(s){if(s.snapshot){const r=s.snapshot,e=s._futureSnapshot;s.snapshot=e,Tn(r.queryParams,e.queryParams)||s.queryParams.next(e.queryParams),r.fragment!==e.fragment&&s.fragment.next(e.fragment),Tn(r.params,e.params)||s.params.next(e.params),function Jp(s,r){if(s.length!==r.length)return!1;for(let e=0;eTn(e.parameters,r[t].parameters))}(s.url,r.url);return e&&!(!s.parent!=!r.parent)&&(!s.parent||Ea(s.parent,r.parent))}function ks(s,r,e){if(e&&s.shouldReuseRoute(r.value,e.value.snapshot)){const t=e.value;t._futureSnapshot=r.value;const o=function Bs(s,r,e){return r.children.map(t=>{for(const o of e.children)if(s.shouldReuseRoute(t.value,o.value.snapshot))return ks(s,t,o);return ks(s,t)})}(s,r,e);return new $n(t,o)}{if(s.shouldAttach(r.value)){const l=s.retrieve(r.value);if(null!==l){const c=l.route;return c.value._futureSnapshot=r.value,c.children=r.children.map(n=>ks(s,n)),c}}const t=function du(s){return new jr(new Nt(s.url),new Nt(s.params),new Nt(s.queryParams),new Nt(s.fragment),new Nt(s.data),s.outlet,s.component,s)}(r.value),o=r.children.map(l=>ks(s,l));return new $n(t,o)}}const uu="ngNavigationCancelingError";function uf(s,r){const{redirectTo:e,navigationBehaviorOptions:t}=Ct(r)?{redirectTo:r,navigationBehaviorOptions:void 0}:r,o=Xb(!1,0,r);return o.url=e,o.navigationBehaviorOptions=t,o}function Xb(s,r,e){const t=new Error("NavigationCancelingError: "+(s||""));return t[uu]=!0,t.cancellationCode=r,e&&(t.url=e),t}function eC(s){return Vs(s)&&Ct(s.url)}function Vs(s){return s&&s[uu]}class hf{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new wo,this.attachRef=null}}let wo=(()=>{class s{constructor(){this.contexts=new Map}onChildOutletCreated(e,t){const o=this.getOrCreateContext(e);o.outlet=t,this.contexts.set(e,o)}onChildOutletDestroyed(e){const t=this.getContext(e);t&&(t.outlet=null,t.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new hf,this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const Sa=!1;let sc=(()=>{class s{constructor(e,t,o,l,c){this.parentContexts=e,this.location=t,this.changeDetector=l,this.environmentInjector=c,this.activated=null,this._activatedRoute=null,this.activateEvents=new p.vpe,this.deactivateEvents=new p.vpe,this.attachEvents=new p.vpe,this.detachEvents=new p.vpe,this.name=o||dt,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.getContext(this.name)?.outlet===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new p.vHH(4012,Sa);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new p.vHH(4012,Sa);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new p.vHH(4012,Sa);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new p.vHH(4013,Sa);this._activatedRoute=e;const o=this.location,c=e._futureSnapshot.component,n=this.parentContexts.getOrCreateContext(this.name).children,i=new pf(e,n,o.injector);if(t&&function vo(s){return!!s.resolveComponentFactory}(t)){const a=t.resolveComponentFactory(c);this.activated=o.createComponent(a,o.length,i)}else this.activated=o.createComponent(c,{index:o.length,injector:i,environmentInjector:t??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(wo),p.Y36(p.s_b),p.$8M("name"),p.Y36(p.sBO),p.Y36(p.lqb))},s.\u0275dir=p.lG2({type:s,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),s})();class pf{constructor(r,e,t){this.route=r,this.childContexts=e,this.parent=t}get(r,e){return r===jr?this.route:r===wo?this.childContexts:this.parent.get(r,e)}}let ff=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275cmp=p.Xpm({type:s,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&p._UZ(0,"router-outlet")},dependencies:[sc],encapsulation:2}),s})();function Ma(s,r){return s.providers&&!s._injector&&(s._injector=(0,p.MMx)(s.providers,r,`Route: ${s.path}`)),s._injector??r}function Da(s){const r=s.children&&s.children.map(Da),e=r?{...s,children:r}:{...s};return!e.component&&!e.loadComponent&&(r||e.loadChildren)&&e.outlet&&e.outlet!==dt&&(e.component=ff),e}function Yi(s){return s.outlet||dt}function cc(s,r){const e=s.filter(t=>Yi(t)===r);return e.push(...s.filter(t=>Yi(t)!==r)),e}function Os(s){if(!s)return null;if(s.routeConfig?._injector)return s.routeConfig._injector;for(let r=s.parent;r;r=r.parent){const e=r.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class rC{constructor(r,e,t,o){this.routeReuseStrategy=r,this.futureState=e,this.currState=t,this.forwardEvent=o}activate(r){const e=this.futureState._root,t=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,t,r),Yn(this.futureState.root),this.activateChildRoutes(e,t,r)}deactivateChildRoutes(r,e,t){const o=yo(e);r.children.forEach(l=>{const c=l.value.outlet;this.deactivateRoutes(l,o[c],t),delete o[c]}),Ci(o,(l,c)=>{this.deactivateRouteAndItsChildren(l,t)})}deactivateRoutes(r,e,t){const o=r.value,l=e?e.value:null;if(o===l)if(o.component){const c=t.getContext(o.outlet);c&&this.deactivateChildRoutes(r,e,c.children)}else this.deactivateChildRoutes(r,e,t);else l&&this.deactivateRouteAndItsChildren(e,t)}deactivateRouteAndItsChildren(r,e){r.value.component&&this.routeReuseStrategy.shouldDetach(r.value.snapshot)?this.detachAndStoreRouteSubtree(r,e):this.deactivateRouteAndOutlet(r,e)}detachAndStoreRouteSubtree(r,e){const t=e.getContext(r.value.outlet),o=t&&r.value.component?t.children:e,l=yo(r);for(const c of Object.keys(l))this.deactivateRouteAndItsChildren(l[c],o);if(t&&t.outlet){const c=t.outlet.detach(),n=t.children.onOutletDeactivated();this.routeReuseStrategy.store(r.value.snapshot,{componentRef:c,route:r,contexts:n})}}deactivateRouteAndOutlet(r,e){const t=e.getContext(r.value.outlet),o=t&&r.value.component?t.children:e,l=yo(r);for(const c of Object.keys(l))this.deactivateRouteAndItsChildren(l[c],o);t&&t.outlet&&(t.outlet.deactivate(),t.children.onOutletDeactivated(),t.attachRef=null,t.resolver=null,t.route=null)}activateChildRoutes(r,e,t){const o=yo(e);r.children.forEach(l=>{this.activateRoutes(l,o[l.value.outlet],t),this.forwardEvent(new lu(l.value.snapshot))}),r.children.length&&this.forwardEvent(new af(r.value.snapshot))}activateRoutes(r,e,t){const o=r.value,l=e?e.value:null;if(Yn(o),o===l)if(o.component){const c=t.getOrCreateContext(o.outlet);this.activateChildRoutes(r,e,c.children)}else this.activateChildRoutes(r,e,t);else if(o.component){const c=t.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){const n=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),c.children.onOutletReAttached(n.contexts),c.attachRef=n.componentRef,c.route=n.route.value,c.outlet&&c.outlet.attach(n.componentRef,n.route.value),Yn(n.route.value),this.activateChildRoutes(r,null,c.children)}else{const n=Os(o.snapshot),i=n?.get(p._Vd)??null;c.attachRef=null,c.route=o,c.resolver=i,c.injector=n,c.outlet&&c.outlet.activateWith(o,c.injector),this.activateChildRoutes(r,null,c.children)}}else this.activateChildRoutes(r,null,t)}}class pu{constructor(r){this.path=r,this.route=this.path[this.path.length-1]}}class Ls{constructor(r,e){this.component=r,this.route=e}}function gf(s,r,e){const t=s._root;return zr(t,r?r._root:null,e,[t.value])}function uc(s,r,e){return(Os(r)??e).get(s)}function zr(s,r,e,t,o={canDeactivateChecks:[],canActivateChecks:[]}){const l=yo(r);return s.children.forEach(c=>{(function Fs(s,r,e,t,o={canDeactivateChecks:[],canActivateChecks:[]}){const l=s.value,c=r?r.value:null,n=e?e.getContext(s.value.outlet):null;if(c&&l.routeConfig===c.routeConfig){const i=function aC(s,r,e){if("function"==typeof e)return e(s,r);switch(e){case"pathParamsChange":return!_r(s.url,r.url);case"pathParamsOrQueryParamsChange":return!_r(s.url,r.url)||!Tn(s.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Ea(s,r)||!Tn(s.queryParams,r.queryParams);default:return!Ea(s,r)}}(c,l,l.routeConfig.runGuardsAndResolvers);i?o.canActivateChecks.push(new pu(t)):(l.data=c.data,l._resolvedData=c._resolvedData),zr(s,r,l.component?n?n.children:null:e,t,o),i&&n&&n.outlet&&n.outlet.isActivated&&o.canDeactivateChecks.push(new Ls(n.outlet.component,c))}else c&&Ao(r,n,o),o.canActivateChecks.push(new pu(t)),zr(s,null,l.component?n?n.children:null:e,t,o)})(c,l[c.value.outlet],e,t.concat([c.value]),o),delete l[c.value.outlet]}),Ci(l,(c,n)=>Ao(c,e.getContext(n),o)),o}function Ao(s,r,e){const t=yo(s),o=s.value;Ci(t,(l,c)=>{Ao(l,o.component?r?r.children.getContext(c):null:r,e)}),e.canDeactivateChecks.push(new Ls(o.component&&r&&r.outlet&&r.outlet.isActivated?r.outlet.component:null,o))}function xo(s){return"function"==typeof s}function Ur(s){return s instanceof Ht.K||"EmptyError"===s?.name}const yr=Symbol("INITIAL_VALUE");function Ha(){return(0,Ri.w)(s=>(0,fr.a)(s.map(r=>r.pipe((0,ri.q)(1),vi(yr)))).pipe((0,je.U)(r=>{for(const e of r)if(!0!==e){if(e===yr)return yr;if(!1===e||e instanceof un)return e}return!0}),(0,Wt.h)(r=>r!==yr),(0,ri.q)(1)))}function cC(s){return(0,ga.z)((0,$t.b)(r=>{if(Ct(r))throw uf(0,r)}),(0,je.U)(r=>!0===r))}const wf={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Mo(s,r,e,t,o){const l=vf(s,r,e);return l.matched?function Q0(s,r,e,t){const o=r.canMatch;if(!o||0===o.length)return(0,Pe.of)(!0);const l=o.map(c=>{const n=s.get(c),i=function Cf(s){return s&&xo(s.canMatch)}(n)?n.canMatch(r,e):n(r,e);return Gn(i)});return(0,Pe.of)(l).pipe(Ha(),cC())}(t=Ma(r,t),r,e).pipe((0,je.U)(c=>!0===c?l:{...wf})):(0,Pe.of)(l)}function vf(s,r,e){if(""===r.path)return"full"===r.pathMatch&&(s.hasChildren()||e.length>0)?{...wf}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const o=(r.matcher||Qp)(e,s,r);if(!o)return{...wf};const l={};Ci(o.posParams,(n,i)=>{l[i]=n.path});const c=o.consumed.length>0?{...l,...o.consumed[o.consumed.length-1].parameters}:l;return{matched:!0,consumedSegments:o.consumed,remainingSegments:e.slice(o.consumed.length),parameters:c,positionalParamSegments:o.posParams??{}}}function gu(s,r,e,t,o="corrected"){if(e.length>0&&function Ns(s,r,e){return e.some(t=>hc(s,r,t)&&Yi(t)!==dt)}(s,e,t)){const c=new lt(r,function _u(s,r,e,t){const o={};o[dt]=t,t._sourceSegment=s,t._segmentIndexShift=r.length;for(const l of e)if(""===l.path&&Yi(l)!==dt){const c=new lt([],{});c._sourceSegment=s,c._segmentIndexShift=r.length,o[Yi(l)]=c}return o}(s,r,t,new lt(e,s.children)));return c._sourceSegment=s,c._segmentIndexShift=r.length,{segmentGroup:c,slicedSegments:[]}}if(0===e.length&&function J0(s,r,e){return e.some(t=>hc(s,r,t))}(s,e,t)){const c=new lt(s.segments,function pi(s,r,e,t,o,l){const c={};for(const n of t)if(hc(s,e,n)&&!o[Yi(n)]){const i=new lt([],{});i._sourceSegment=s,i._segmentIndexShift="legacy"===l?s.segments.length:r.length,c[Yi(n)]=i}return{...o,...c}}(s,r,e,t,s.children,o));return c._sourceSegment=s,c._segmentIndexShift=r.length,{segmentGroup:c,slicedSegments:e}}const l=new lt(s.segments,s.children);return l._sourceSegment=s,l._segmentIndexShift=r.length,{segmentGroup:l,slicedSegments:e}}function hc(s,r,e){return(!(s.hasChildren()||r.length>0)||"full"!==e.pathMatch)&&""===e.path}function Qi(s,r,e,t){return!!(Yi(s)===t||t!==dt&&hc(r,e,s))&&("**"===s.path||vf(r,s,e).matched)}function Jn(s,r,e){return 0===r.length&&!s.children[e]}const js=!1;class Pa{constructor(r){this.segmentGroup=r||null}}class Do{constructor(r){this.urlTree=r}}function Ho(s){return(0,bi._)(new Pa(s))}function Af(s){return(0,bi._)(new Do(s))}class xf{constructor(r,e,t,o,l){this.injector=r,this.configLoader=e,this.urlSerializer=t,this.urlTree=o,this.config=l,this.allowRedirects=!0}apply(){const r=gu(this.urlTree.root,[],[],this.config).segmentGroup,e=new lt(r.segments,r.children);return this.expandSegmentGroup(this.injector,this.config,e,dt).pipe((0,je.U)(l=>this.createUrlTree(Mt(l),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,Et.K)(l=>{if(l instanceof Do)return this.allowRedirects=!1,this.match(l.urlTree);throw l instanceof Pa?this.noMatchError(l):l}))}match(r){return this.expandSegmentGroup(this.injector,this.config,r.root,dt).pipe((0,je.U)(o=>this.createUrlTree(Mt(o),r.queryParams,r.fragment))).pipe((0,Et.K)(o=>{throw o instanceof Pa?this.noMatchError(o):o}))}noMatchError(r){return new p.vHH(4002,js)}createUrlTree(r,e,t){const o=Ue(r);return new un(o,e,t)}expandSegmentGroup(r,e,t,o){return 0===t.segments.length&&t.hasChildren()?this.expandChildren(r,e,t).pipe((0,je.U)(l=>new lt([],l))):this.expandSegment(r,t,e,t.segments,o,!0)}expandChildren(r,e,t){const o=[];for(const l of Object.keys(t.children))"primary"===l?o.unshift(l):o.push(l);return(0,mt.D)(o).pipe((0,kt.b)(l=>{const c=t.children[l],n=cc(e,l);return this.expandSegmentGroup(r,n,c,l).pipe((0,je.U)(i=>({segment:i,outlet:l})))}),ba((l,c)=>(l[c.outlet]=c.segment,l),{}),Yp())}expandSegment(r,e,t,o,l,c){return(0,mt.D)(t).pipe((0,kt.b)(n=>this.expandSegmentAgainstRoute(r,e,t,n,o,l,c).pipe((0,Et.K)(a=>{if(a instanceof Pa)return(0,Pe.of)(null);throw a}))),(0,Ii.P)(n=>!!n),(0,Et.K)((n,i)=>{if(Ur(n))return Jn(e,o,l)?(0,Pe.of)(new lt([],{})):Ho(e);throw n}))}expandSegmentAgainstRoute(r,e,t,o,l,c,n){return Qi(o,e,l,c)?void 0===o.redirectTo?this.matchSegmentAgainstRoute(r,e,o,l,c):n&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(r,e,t,o,l,c):Ho(e):Ho(e)}expandSegmentAgainstRouteUsingRedirect(r,e,t,o,l,c){return"**"===o.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(r,t,o,c):this.expandRegularSegmentAgainstRouteUsingRedirect(r,e,t,o,l,c)}expandWildCardWithParamsAgainstRouteUsingRedirect(r,e,t,o){const l=this.applyRedirectCommands([],t.redirectTo,{});return t.redirectTo.startsWith("/")?Af(l):this.lineralizeSegments(t,l).pipe((0,hi.z)(c=>{const n=new lt(c,{});return this.expandSegment(r,n,e,c,o,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(r,e,t,o,l,c){const{matched:n,consumedSegments:i,remainingSegments:a,positionalParamSegments:d}=vf(e,o,l);if(!n)return Ho(e);const u=this.applyRedirectCommands(i,o.redirectTo,d);return o.redirectTo.startsWith("/")?Af(u):this.lineralizeSegments(o,u).pipe((0,hi.z)(f=>this.expandSegment(r,e,t,f.concat(a),c,!1)))}matchSegmentAgainstRoute(r,e,t,o,l){return"**"===t.path?(r=Ma(t,r),t.loadChildren?(t._loadedRoutes?(0,Pe.of)({routes:t._loadedRoutes,injector:t._loadedInjector}):this.configLoader.loadChildren(r,t)).pipe((0,je.U)(n=>(t._loadedRoutes=n.routes,t._loadedInjector=n.injector,new lt(o,{})))):(0,Pe.of)(new lt(o,{}))):Mo(e,t,o,r).pipe((0,Ri.w)(({matched:c,consumedSegments:n,remainingSegments:i})=>c?this.getChildConfig(r=t._injector??r,t,o).pipe((0,hi.z)(d=>{const u=d.injector??r,f=d.routes,{segmentGroup:b,slicedSegments:H}=gu(e,n,i,f),z=new lt(b.segments,b.children);if(0===H.length&&z.hasChildren())return this.expandChildren(u,f,z).pipe((0,je.U)(_t=>new lt(n,_t)));if(0===f.length&&0===H.length)return(0,Pe.of)(new lt(n,{}));const ae=Yi(t)===l;return this.expandSegment(u,z,f,H,ae?dt:l,!0).pipe((0,je.U)(ot=>new lt(n.concat(ot.segments),ot.children)))})):Ho(e)))}getChildConfig(r,e,t){return e.children?(0,Pe.of)({routes:e.children,injector:r}):e.loadChildren?void 0!==e._loadedRoutes?(0,Pe.of)({routes:e._loadedRoutes,injector:e._loadedInjector}):function Y0(s,r,e,t){const o=r.canLoad;if(void 0===o||0===o.length)return(0,Pe.of)(!0);const l=o.map(c=>{const n=s.get(c),i=function oC(s){return s&&xo(s.canLoad)}(n)?n.canLoad(r,e):n(r,e);return Gn(i)});return(0,Pe.of)(l).pipe(Ha(),cC())}(r,e,t).pipe((0,hi.z)(o=>o?this.configLoader.loadChildren(r,e).pipe((0,$t.b)(l=>{e._loadedRoutes=l.routes,e._loadedInjector=l.injector})):function K0(s){return(0,bi._)(Xb(js,3))}())):(0,Pe.of)({routes:[],injector:r})}lineralizeSegments(r,e){let t=[],o=e.root;for(;;){if(t=t.concat(o.segments),0===o.numberOfChildren)return(0,Pe.of)(t);if(o.numberOfChildren>1||!o.children[dt])return(0,bi._)(new p.vHH(4e3,js));o=o.children[dt]}}applyRedirectCommands(r,e,t){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),r,t)}applyRedirectCreateUrlTree(r,e,t,o){const l=this.createSegmentGroup(r,e.root,t,o);return new un(l,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(r,e){const t={};return Ci(r,(o,l)=>{if("string"==typeof o&&o.startsWith(":")){const n=o.substring(1);t[l]=e[n]}else t[l]=o}),t}createSegmentGroup(r,e,t,o){const l=this.createSegments(r,e.segments,t,o);let c={};return Ci(e.children,(n,i)=>{c[i]=this.createSegmentGroup(r,n,t,o)}),new lt(l,c)}createSegments(r,e,t,o){return e.map(l=>l.path.startsWith(":")?this.findPosParam(r,l,o):this.findOrReturn(l,t))}findPosParam(r,e,t){const o=t[e.path.substring(1)];if(!o)throw new p.vHH(4001,js);return o}findOrReturn(r,e){let t=0;for(const o of e){if(o.path===r.path)return e.splice(t),o;t++}return r}}class Ro{}class uC{constructor(r,e,t,o,l,c,n,i){this.injector=r,this.rootComponentType=e,this.config=t,this.urlTree=o,this.url=l,this.paramsInheritanceStrategy=c,this.relativeLinkResolution=n,this.urlSerializer=i}recognize(){const r=gu(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,r,dt).pipe((0,je.U)(e=>{if(null===e)return null;const t=new Ta([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},dt,this.rootComponentType,null,this.urlTree.root,-1,{}),o=new $n(t,e),l=new ac(this.url,o);return this.inheritParamsAndData(l._root),l}))}inheritParamsAndData(r){const e=r.value,t=Is(e,this.paramsInheritanceStrategy);e.params=Object.freeze(t.params),e.data=Object.freeze(t.data),r.children.forEach(o=>this.inheritParamsAndData(o))}processSegmentGroup(r,e,t,o){return 0===t.segments.length&&t.hasChildren()?this.processChildren(r,e,t):this.processSegment(r,e,t,t.segments,o)}processChildren(r,e,t){return(0,mt.D)(Object.keys(t.children)).pipe((0,kt.b)(o=>{const l=t.children[o],c=cc(e,o);return this.processSegmentGroup(r,c,l,o)}),ba((o,l)=>o&&l?(o.push(...l),o):null),function Kl(s,r=!1){return(0,ci.e)((e,t)=>{let o=0;e.subscribe((0,Ot.x)(t,l=>{const c=s(l,o++);(c||r)&&t.next(l),!c&&t.complete()}))})}(o=>null!==o),(0,ki.d)(null),Yp(),(0,je.U)(o=>{if(null===o)return null;const l=Ef(o);return function hC(s){s.sort((r,e)=>r.value.outlet===dt?-1:e.value.outlet===dt?1:r.value.outlet.localeCompare(e.value.outlet))}(l),l}))}processSegment(r,e,t,o,l){return(0,mt.D)(e).pipe((0,kt.b)(c=>this.processSegmentAgainstRoute(c._injector??r,c,t,o,l)),(0,Ii.P)(c=>!!c),(0,Et.K)(c=>{if(Ur(c))return Jn(t,o,l)?(0,Pe.of)([]):(0,Pe.of)(null);throw c}))}processSegmentAgainstRoute(r,e,t,o,l){if(e.redirectTo||!Qi(e,t,o,l))return(0,Pe.of)(null);let c;if("**"===e.path){const n=o.length>0?eu(o).parameters:{},i=zs(t)+o.length,a=new Ta(o,n,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Io(e),Yi(e),e.component??e._loadedComponent??null,e,pc(t),i,fc(e),i);c=(0,Pe.of)({snapshot:a,consumedSegments:[],remainingSegments:[]})}else c=Mo(t,e,o,r).pipe((0,je.U)(({matched:n,consumedSegments:i,remainingSegments:a,parameters:d})=>{if(!n)return null;const u=zs(t)+i.length;return{snapshot:new Ta(i,d,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Io(e),Yi(e),e.component??e._loadedComponent??null,e,pc(t),u,fc(e),u),consumedSegments:i,remainingSegments:a}}));return c.pipe((0,Ri.w)(n=>{if(null===n)return(0,Pe.of)(null);const{snapshot:i,consumedSegments:a,remainingSegments:d}=n;r=e._injector??r;const u=e._loadedInjector??r,f=function pC(s){return s.children?s.children:s.loadChildren?s._loadedRoutes:[]}(e),{segmentGroup:b,slicedSegments:H}=gu(t,a,d,f.filter(ae=>void 0===ae.redirectTo),this.relativeLinkResolution);if(0===H.length&&b.hasChildren())return this.processChildren(u,f,b).pipe((0,je.U)(ae=>null===ae?null:[new $n(i,ae)]));if(0===f.length&&0===H.length)return(0,Pe.of)([new $n(i,[])]);const z=Yi(e)===l;return this.processSegment(u,f,b,H,z?dt:l).pipe((0,je.U)(ae=>null===ae?null:[new $n(i,ae)]))}))}}function fC(s){const r=s.value.routeConfig;return r&&""===r.path&&void 0===r.redirectTo}function Ef(s){const r=[],e=new Set;for(const t of s){if(!fC(t)){r.push(t);continue}const o=r.find(l=>t.value.routeConfig===l.value.routeConfig);void 0!==o?(o.children.push(...t.children),e.add(o)):r.push(t)}for(const t of e){const o=Ef(t.children);r.push(new $n(t.value,o))}return r.filter(t=>!e.has(t))}function pc(s){let r=s;for(;r._sourceSegment;)r=r._sourceSegment;return r}function zs(s){let r=s,e=r._segmentIndexShift??0;for(;r._sourceSegment;)r=r._sourceSegment,e+=r._segmentIndexShift??0;return e-1}function Io(s){return s.data||{}}function fc(s){return s.resolve||{}}const bu=Symbol("RouteTitle");function Mf(s){return"string"==typeof s.title||null===s.title}function Kt(s){return(0,Ri.w)(r=>{const e=s(r);return e?(0,mt.D)(e).pipe((0,je.U)(()=>r)):(0,Pe.of)(r)})}let Cu=(()=>{class s{buildTitle(e){let t,o=e.root;for(;void 0!==o;)t=this.getResolvedTitleForRoute(o)??t,o=o.children.find(l=>l.outlet===dt);return t}getResolvedTitleForRoute(e){return e.data[bu]}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=p.Yz7({token:s,factory:function(){return(0,p.f3M)(yu)},providedIn:"root"}),s})(),yu=(()=>{class s extends Cu{constructor(e){super(),this.title=e}updateTitle(e){const t=this.buildTitle(e);void 0!==t&&this.title.setTitle(t)}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(Y))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();class wu{}class CC extends class Gs{shouldDetach(r){return!1}store(r,e){}shouldAttach(r){return!1}retrieve(r){return null}shouldReuseRoute(r,e){return r.routeConfig===e.routeConfig}}{}const vu=new p.OlP("",{providedIn:"root",factory:()=>({})}),Ra=new p.OlP("ROUTES");let _c=(()=>{class s{constructor(e,t){this.injector=e,this.compiler=t,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return(0,Pe.of)(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const t=Gn(e.loadComponent()).pipe((0,$t.b)(l=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=l}),Ca(()=>{this.componentLoaders.delete(e)})),o=new xs(t,()=>new xe.x).pipe(xn());return this.componentLoaders.set(e,o),o}loadChildren(e,t){if(this.childrenLoaders.get(t))return this.childrenLoaders.get(t);if(t._loadedRoutes)return(0,Pe.of)({routes:t._loadedRoutes,injector:t._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(t);const l=this.loadModuleFactoryOrRoutes(t.loadChildren).pipe((0,je.U)(n=>{this.onLoadEndListener&&this.onLoadEndListener(t);let i,a,d=!1;Array.isArray(n)?a=n:(i=n.create(e).injector,a=Xd(i.get(Ra,[],p.XFs.Self|p.XFs.Optional)));return{routes:a.map(Da),injector:i}}),Ca(()=>{this.childrenLoaders.delete(t)})),c=new xs(l,()=>new xe.x).pipe(xn());return this.childrenLoaders.set(t,c),c}loadModuleFactoryOrRoutes(e){return Gn(e()).pipe((0,hi.z)(t=>t instanceof p.YKP||Array.isArray(t)?(0,Pe.of)(t):(0,mt.D)(this.compiler.compileModuleAsync(t))))}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(p.zs3),p.LFG(p.Sil))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();class qs{}class wC{shouldProcessUrl(r){return!0}extract(r){return r}merge(r,e){return r}}function $s(s){throw s}function bc(s,r,e){return r.parse("/")}const Df={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},vC={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function Ia(){const s=(0,p.f3M)(_o),r=(0,p.f3M)(wo),e=(0,p.f3M)(T.Ye),t=(0,p.f3M)(p.zs3),o=(0,p.f3M)(p.Sil),l=(0,p.f3M)(Ra,{optional:!0})??[],c=(0,p.f3M)(vu,{optional:!0})??{},n=(0,p.f3M)(yu),i=(0,p.f3M)(Cu,{optional:!0}),a=(0,p.f3M)(qs,{optional:!0}),d=(0,p.f3M)(wu,{optional:!0}),u=new Zt(null,s,r,e,t,o,Xd(l));return a&&(u.urlHandlingStrategy=a),d&&(u.routeReuseStrategy=d),u.titleStrategy=i??n,function AC(s,r){s.errorHandler&&(r.errorHandler=s.errorHandler),s.malformedUriErrorHandler&&(r.malformedUriErrorHandler=s.malformedUriErrorHandler),s.onSameUrlNavigation&&(r.onSameUrlNavigation=s.onSameUrlNavigation),s.paramsInheritanceStrategy&&(r.paramsInheritanceStrategy=s.paramsInheritanceStrategy),s.relativeLinkResolution&&(r.relativeLinkResolution=s.relativeLinkResolution),s.urlUpdateStrategy&&(r.urlUpdateStrategy=s.urlUpdateStrategy),s.canceledNavigationResolution&&(r.canceledNavigationResolution=s.canceledNavigationResolution)}(c,u),u}let Zt=(()=>{class s{constructor(e,t,o,l,c,n,i){this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=o,this.location=l,this.config=i,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new xe.x,this.errorHandler=$s,this.malformedUriErrorHandler=bc,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>(0,Pe.of)(void 0),this.urlHandlingStrategy=new wC,this.routeReuseStrategy=new CC,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=c.get(_c),this.configLoader.onLoadEndListener=f=>this.triggerEvent(new nf(f)),this.configLoader.onLoadStartListener=f=>this.triggerEvent(new su(f)),this.ngModule=c.get(p.h0i),this.console=c.get(p.c2e);const u=c.get(p.R0b);this.isNgZoneEnabled=u instanceof p.R0b&&p.R0b.isInAngularZone(),this.resetConfig(i),this.currentUrlTree=function Es(){return new un(new lt([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=cf(this.currentUrlTree,this.rootComponentType),this.transitions=new Nt({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){return this.location.getState()?.\u0275routerPageId}setupNavigations(e){const t=this.events;return e.pipe((0,Wt.h)(o=>0!==o.id),(0,je.U)(o=>({...o,extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),(0,Ri.w)(o=>{let l=!1,c=!1;return(0,Pe.of)(o).pipe((0,$t.b)(n=>{this.currentNavigation={id:n.id,initialUrl:n.rawUrl,extractedUrl:n.extractedUrl,trigger:n.source,extras:n.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,Ri.w)(n=>{const i=this.browserUrlTree.toString(),a=!this.navigated||n.extractedUrl.toString()!==i||i!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||a)&&this.urlHandlingStrategy.shouldProcessUrl(n.rawUrl))return TC(n.source)&&(this.browserUrlTree=n.extractedUrl),(0,Pe.of)(n).pipe((0,Ri.w)(u=>{const f=this.transitions.getValue();return t.next(new tc(u.id,this.serializeUrl(u.extractedUrl),u.source,u.restoredState)),f!==this.transitions.getValue()?jt.E:Promise.resolve(u)}),function an(s,r,e,t){return(0,Ri.w)(o=>function Z0(s,r,e,t,o){return new xf(s,r,e,t,o).apply()}(s,r,e,o.extractedUrl,t).pipe((0,je.U)(l=>({...o,urlAfterRedirects:l}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,$t.b)(u=>{this.currentNavigation={...this.currentNavigation,finalUrl:u.urlAfterRedirects},o.urlAfterRedirects=u.urlAfterRedirects}),function mc(s,r,e,t,o,l){return(0,hi.z)(c=>function Tf(s,r,e,t,o,l,c="emptyOnly",n="legacy"){return new uC(s,r,e,t,o,c,n,l).recognize().pipe((0,Ri.w)(i=>null===i?function X0(s){return new We.y(r=>r.error(s))}(new Ro):(0,Pe.of)(i)))}(s,r,e,c.urlAfterRedirects,t.serialize(c.urlAfterRedirects),t,o,l).pipe((0,je.U)(n=>({...c,targetSnapshot:n}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,$t.b)(u=>{if(o.targetSnapshot=u.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!u.extras.skipLocationChange){const b=this.urlHandlingStrategy.merge(u.urlAfterRedirects,u.rawUrl);this.setBrowserUrl(b,u)}this.browserUrlTree=u.urlAfterRedirects}const f=new au(u.id,this.serializeUrl(u.extractedUrl),this.serializeUrl(u.urlAfterRedirects),u.targetSnapshot);t.next(f)}));if(a&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:f,extractedUrl:b,source:H,restoredState:z,extras:ae}=n,Be=new tc(f,this.serializeUrl(b),H,z);t.next(Be);const ot=cf(b,this.rootComponentType).snapshot;return o={...n,targetSnapshot:ot,urlAfterRedirects:b,extras:{...ae,skipLocationChange:!1,replaceUrl:!1}},(0,Pe.of)(o)}return this.rawUrlTree=n.rawUrl,n.resolve(null),jt.E}),(0,$t.b)(n=>{const i=new ef(n.id,this.serializeUrl(n.extractedUrl),this.serializeUrl(n.urlAfterRedirects),n.targetSnapshot);this.triggerEvent(i)}),(0,je.U)(n=>o={...n,guards:gf(n.targetSnapshot,n.currentSnapshot,this.rootContexts)}),function mu(s,r){return(0,hi.z)(e=>{const{targetSnapshot:t,currentSnapshot:o,guards:{canActivateChecks:l,canDeactivateChecks:c}}=e;return 0===c.length&&0===l.length?(0,Pe.of)({...e,guardsResult:!0}):function So(s,r,e,t){return(0,mt.D)(s).pipe((0,hi.z)(o=>function $0(s,r,e,t,o){const l=r&&r.routeConfig?r.routeConfig.canDeactivate:null;if(!l||0===l.length)return(0,Pe.of)(!0);const c=l.map(n=>{const i=uc(n,r,o);return Gn(function sC(s){return s&&xo(s.canDeactivate)}(i)?i.canDeactivate(s,r,e,t):i(s,r,e,t)).pipe((0,Ii.P)())});return(0,Pe.of)(c).pipe(Ha())}(o.component,o.route,e,r,t)),(0,Ii.P)(o=>!0!==o,!0))}(c,t,o,s).pipe((0,hi.z)(n=>n&&function To(s){return"boolean"==typeof s}(n)?function G0(s,r,e,t){return(0,mt.D)(r).pipe((0,kt.b)(o=>(0,Li.z)(function Pt(s,r){return null!==s&&r&&r(new rf(s)),(0,Pe.of)(!0)}(o.route.parent,t),function lC(s,r){return null!==s&&r&&r(new sf(s)),(0,Pe.of)(!0)}(o.route,t),function W0(s,r,e){const t=r[r.length-1],l=r.slice(0,r.length-1).reverse().map(c=>function _f(s){const r=s.routeConfig?s.routeConfig.canActivateChild:null;return r&&0!==r.length?{node:s,guards:r}:null}(c)).filter(c=>null!==c).map(c=>nn(()=>{const n=c.guards.map(i=>{const a=uc(i,c.node,e);return Gn(function fu(s){return s&&xo(s.canActivateChild)}(a)?a.canActivateChild(t,s):a(t,s)).pipe((0,Ii.P)())});return(0,Pe.of)(n).pipe(Ha())}));return(0,Pe.of)(l).pipe(Ha())}(s,o.path,e),function q0(s,r,e){const t=r.routeConfig?r.routeConfig.canActivate:null;if(!t||0===t.length)return(0,Pe.of)(!0);const o=t.map(l=>nn(()=>{const c=uc(l,r,e);return Gn(function bf(s){return s&&xo(s.canActivate)}(c)?c.canActivate(r,s):c(r,s)).pipe((0,Ii.P)())}));return(0,Pe.of)(o).pipe(Ha())}(s,o.route,e))),(0,Ii.P)(o=>!0!==o,!0))}(t,l,s,r):(0,Pe.of)(n)),(0,je.U)(n=>({...e,guardsResult:n})))})}(this.ngModule.injector,n=>this.triggerEvent(n)),(0,$t.b)(n=>{if(o.guardsResult=n.guardsResult,Ct(n.guardsResult))throw uf(0,n.guardsResult);const i=new ou(n.id,this.serializeUrl(n.extractedUrl),this.serializeUrl(n.urlAfterRedirects),n.targetSnapshot,!!n.guardsResult);this.triggerEvent(i)}),(0,Wt.h)(n=>!!n.guardsResult||(this.restoreHistory(n),this.cancelNavigationTransition(n,"",3),!1)),Kt(n=>{if(n.guards.canActivateChecks.length)return(0,Pe.of)(n).pipe((0,$t.b)(i=>{const a=new Qb(i.id,this.serializeUrl(i.extractedUrl),this.serializeUrl(i.urlAfterRedirects),i.targetSnapshot);this.triggerEvent(a)}),(0,Ri.w)(i=>{let a=!1;return(0,Pe.of)(i).pipe(function _C(s,r){return(0,hi.z)(e=>{const{targetSnapshot:t,guards:{canActivateChecks:o}}=e;if(!o.length)return(0,Pe.of)(e);let l=0;return(0,mt.D)(o).pipe((0,kt.b)(c=>function bC(s,r,e,t){const o=s.routeConfig,l=s._resolve;return void 0!==o?.title&&!Mf(o)&&(l[bu]=o.title),function Sf(s,r,e,t){const o=function Us(s){return[...Object.keys(s),...Object.getOwnPropertySymbols(s)]}(s);if(0===o.length)return(0,Pe.of)({});const l={};return(0,mt.D)(o).pipe((0,hi.z)(c=>function ko(s,r,e,t){const o=uc(s,r,t);return Gn(o.resolve?o.resolve(r,e):o(r,e))}(s[c],r,e,t).pipe((0,Ii.P)(),(0,$t.b)(n=>{l[c]=n}))),Un(1),(0,Kd.h)(l),(0,Et.K)(c=>Ur(c)?jt.E:(0,bi._)(c)))}(l,s,r,t).pipe((0,je.U)(c=>(s._resolvedData=c,s.data=Is(s,e).resolve,o&&Mf(o)&&(s.data[bu]=o.title),null)))}(c.route,t,s,r)),(0,$t.b)(()=>l++),Un(1),(0,hi.z)(c=>l===o.length?(0,Pe.of)(e):jt.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,$t.b)({next:()=>a=!0,complete:()=>{a||(this.restoreHistory(i),this.cancelNavigationTransition(i,"",2))}}))}),(0,$t.b)(i=>{const a=new tf(i.id,this.serializeUrl(i.extractedUrl),this.serializeUrl(i.urlAfterRedirects),i.targetSnapshot);this.triggerEvent(a)}))}),Kt(n=>{const i=a=>{const d=[];a.routeConfig?.loadComponent&&!a.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(a.routeConfig).pipe((0,$t.b)(u=>{a.component=u}),(0,je.U)(()=>{})));for(const u of a.children)d.push(...i(u));return d};return(0,fr.a)(i(n.targetSnapshot.root)).pipe((0,ki.d)(),(0,ri.q)(1))}),Kt(()=>this.afterPreactivation()),(0,je.U)(n=>{const i=function Zb(s,r,e){const t=ks(s,r._root,e?e._root:void 0);return new cu(t,r)}(this.routeReuseStrategy,n.targetSnapshot,n.currentRouterState);return o={...n,targetRouterState:i}}),(0,$t.b)(n=>{this.currentUrlTree=n.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(n.urlAfterRedirects,n.rawUrl),this.routerState=n.targetRouterState,"deferred"===this.urlUpdateStrategy&&(n.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,n),this.browserUrlTree=n.urlAfterRedirects)}),((s,r,e)=>(0,je.U)(t=>(new rC(r,t.targetRouterState,t.currentRouterState,e).activate(s),t)))(this.rootContexts,this.routeReuseStrategy,n=>this.triggerEvent(n)),(0,$t.b)({next(){l=!0},complete(){l=!0}}),Ca(()=>{l||c||this.cancelNavigationTransition(o,"",1),this.currentNavigation?.id===o.id&&(this.currentNavigation=null)}),(0,Et.K)(n=>{if(c=!0,Vs(n)){eC(n)||(this.navigated=!0,this.restoreHistory(o,!0));const i=new ic(o.id,this.serializeUrl(o.extractedUrl),n.message,n.cancellationCode);if(t.next(i),eC(n)){const a=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree),d={skipLocationChange:o.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||TC(o.source)};this.scheduleNavigation(a,"imperative",null,d,{resolve:o.resolve,reject:o.reject,promise:o.promise})}else o.resolve(!1)}else{this.restoreHistory(o,!0);const i=new nc(o.id,this.serializeUrl(o.extractedUrl),n,o.targetSnapshot??void 0);t.next(i);try{o.resolve(this.errorHandler(n))}catch(a){o.reject(a)}}return jt.E}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next({...this.transitions.value,...e})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const t="popstate"===e.type?"popstate":"hashchange";"popstate"===t&&setTimeout(()=>{const o={replaceUrl:!0},l=e.state?.navigationId?e.state:null;if(l){const n={...l};delete n.navigationId,delete n.\u0275routerPageId,0!==Object.keys(n).length&&(o.state=n)}const c=this.parseUrl(e.url);this.scheduleNavigation(c,t,l,o)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){this.config=e.map(Da),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,t={}){const{relativeTo:o,queryParams:l,fragment:c,queryParamsHandling:n,preserveFragment:i}=t,a=o||this.routerState.root,d=i?this.currentUrlTree.fragment:c;let u=null;switch(n){case"merge":u={...this.currentUrlTree.queryParams,...l};break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=l||null}return null!==u&&(u=this.removeEmptyProps(u)),be(a,this.currentUrlTree,e,u,d??null)}navigateByUrl(e,t={skipLocationChange:!1}){const o=Ct(e)?e:this.parseUrl(e),l=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(l,"imperative",null,t)}navigate(e,t={skipLocationChange:!1}){return function xC(s){for(let r=0;r{const l=e[o];return null!=l&&(t[o]=l),t},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new Nr(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.titleStrategy?.updateTitle(this.routerState.snapshot),e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,t,o,l,c){if(this.disposed)return Promise.resolve(!1);let n,i,a;c?(n=c.resolve,i=c.reject,a=c.promise):a=new Promise((f,b)=>{n=f,i=b});const d=++this.navigationId;let u;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(o=this.location.getState()),u=o&&o.\u0275routerPageId?o.\u0275routerPageId:l.replaceUrl||l.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):u=0,this.setTransition({id:d,targetPageId:u,source:t,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:l,resolve:n,reject:i,promise:a,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),a.catch(f=>Promise.reject(f))}setBrowserUrl(e,t){const o=this.urlSerializer.serialize(e),l={...t.extras.state,...this.generateNgRouterState(t.id,t.targetPageId)};this.location.isCurrentPathEqualTo(o)||t.extras.replaceUrl?this.location.replaceState(o,"",l):this.location.go(o,"",l)}restoreHistory(e,t=!1){if("computed"===this.canceledNavigationResolution){const o=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.currentNavigation?.finalUrl||0===o?this.currentUrlTree===this.currentNavigation?.finalUrl&&0===o&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(o)}else"replace"===this.canceledNavigationResolution&&(t&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,t,o){const l=new ic(e.id,this.serializeUrl(e.extractedUrl),t,o);this.triggerEvent(l),e.resolve(!1)}generateNgRouterState(e,t){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:t}:{navigationId:e}}}return s.\u0275fac=function(e){p.$Z()},s.\u0275prov=p.Yz7({token:s,factory:function(){return Ia()},providedIn:"root"}),s})();function TC(s){return"imperative"!==s}class Hf{}let Tu=(()=>{class s{constructor(e,t,o,l,c){this.router=e,this.injector=o,this.preloadingStrategy=l,this.loader=c}setUpPreloading(){this.subscription=this.router.events.pipe((0,Wt.h)(e=>e instanceof Nr),(0,kt.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,t){const o=[];for(const l of t){l.providers&&!l._injector&&(l._injector=(0,p.MMx)(l.providers,e,`Route: ${l.path}`));const c=l._injector??e,n=l._loadedInjector??c;l.loadChildren&&!l._loadedRoutes&&void 0===l.canLoad||l.loadComponent&&!l._loadedComponent?o.push(this.preloadConfig(c,l)):(l.children||l._loadedRoutes)&&o.push(this.processRoutes(n,l.children??l._loadedRoutes))}return(0,mt.D)(o).pipe((0,Ts.J)())}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>{let o;o=t.loadChildren&&void 0===t.canLoad?this.loader.loadChildren(e,t):(0,Pe.of)(null);const l=o.pipe((0,hi.z)(c=>null===c?(0,Pe.of)(void 0):(t._loadedRoutes=c.routes,t._loadedInjector=c.injector,this.processRoutes(c.injector??e,c.routes))));if(t.loadComponent&&!t._loadedComponent){const c=this.loader.loadComponent(t);return(0,mt.D)([l,c]).pipe((0,Ts.J)())}return l})}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(Zt),p.LFG(p.Sil),p.LFG(p.lqb),p.LFG(Hf),p.LFG(_c))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})();const Pf=new p.OlP("");let Rf=(()=>{class s{constructor(e,t,o={}){this.router=e,this.viewportScroller=t,this.options=o,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},o.scrollPositionRestoration=o.scrollPositionRestoration||"disabled",o.anchorScrolling=o.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(e=>{e instanceof tc?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Nr&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof lf&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,t){this.router.triggerEvent(new lf(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return s.\u0275fac=function(e){p.$Z()},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})();const MC=new p.OlP("ROUTER_FORROOT_GUARD"),yc=new p.OlP(""),DC=[T.Ye,{provide:_o,useClass:Ms},{provide:Zt,useFactory:Ia},wo,{provide:jr,useFactory:function If(s){return s.routerState.root},deps:[Zt]},_c];function wc(){return new p.PXZ("Router",Zt)}let Bo=(()=>{class s{constructor(e){}static forRoot(e,t){return{ngModule:s,providers:[DC,[],Ys(e),{provide:MC,useFactory:ix,deps:[[Zt,new p.FiY,new p.tp0]]},{provide:vu,useValue:t||{}},t?.useHash?{provide:T.S$,useClass:T.Do}:{provide:T.S$,useClass:T.b0},{provide:Pf,useFactory:()=>{const s=(0,p.f3M)(Zt),r=(0,p.f3M)(T.EM),e=(0,p.f3M)(vu);return e.scrollOffset&&r.setOffset(e.scrollOffset),new Rf(s,r,e)}},t?.preloadingStrategy?BC(t.preloadingStrategy):[],{provide:p.PXZ,multi:!0,useFactory:wc},t?.initialNavigation?kf(t):[],[{provide:Su,useFactory:Eu},{provide:p.tb,multi:!0,useExisting:Su}]]}}static forChild(e){return{ngModule:s,providers:[Ys(e)]}}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(MC,8))},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({}),s})();function ix(s){return"guarded"}function Ys(s){return[{provide:Ra,multi:!0,useValue:s}]}function Eu(){const s=(0,p.f3M)(p.zs3);return r=>{const e=s.get(p.z2F);if(r!==e.components[0])return;const t=s.get(Zt),o=s.get(Gr);1===s.get(Mu)&&t.initialNavigation(),s.get(yc,null,p.XFs.Optional)?.setUpPreloading(),s.get(Pf,null,p.XFs.Optional)?.init(),t.resetRootComponentType(e.componentTypes[0]),o.next(),o.complete()}}const Su=new p.OlP("");function kf(s){return["disabled"===s.initialNavigation?[{provide:p.ip1,multi:!0,useFactory:()=>{const s=(0,p.f3M)(Zt);return()=>{s.setUpLocationChangeListener()}}},{provide:Mu,useValue:2}]:[],"enabledBlocking"===s.initialNavigation?[{provide:Mu,useValue:0},{provide:p.ip1,multi:!0,deps:[p.zs3],useFactory:s=>{const r=s.get(T.V_,Promise.resolve(null));let e=!1;return()=>r.then(()=>new Promise(o=>{const l=s.get(Zt),c=s.get(Gr);(function t(o){s.get(Zt).events.pipe((0,Wt.h)(c=>c instanceof Nr||c instanceof ic||c instanceof nc),(0,je.U)(c=>c instanceof Nr||c instanceof ic&&(0===c.code||1===c.code)&&null),(0,Wt.h)(c=>null!==c),(0,ri.q)(1)).subscribe(()=>{o()})})(()=>{o(!0),e=!0}),l.afterPreactivation=()=>(o(!0),e||c.closed?(0,Pe.of)(void 0):c),l.initialNavigation()}))}}]:[]]}const Gr=new p.OlP("",{factory:()=>new xe.x}),Mu=new p.OlP("",{providedIn:"root",factory:()=>1});function BC(s){return[Tu,{provide:yc,useExisting:Tu},{provide:Hf,useExisting:s}]}let Oo=(()=>{class s{constructor(){this.title="linker"}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275cmp=p.Xpm({type:s,selectors:[["perun-web-apps-root"]],decls:1,vars:0,template:function(e,t){1&e&&p._UZ(0,"router-outlet")},dependencies:[sc]}),s})();var Wr=x(1214);let Du;try{Du=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Du=!1}let Lo,fi=(()=>{class s{constructor(e){this._platformId=e,this.isBrowser=this._platformId?(0,T.NF)(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&&!Du)&&typeof CSS<"u"&&!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 s.\u0275fac=function(e){return new(e||s)(p.LFG(p.Lbi))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const Vf=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Hu(){if(Lo)return Lo;if("object"!=typeof document||!document)return Lo=new Set(Vf),Lo;let s=document.createElement("input");return Lo=new Set(Vf.filter(r=>(s.setAttribute("type",r),s.type===r))),Lo}let Qs,vc,Fo,Ac;function Kn(s){return function VC(){if(null==Qs&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Qs=!0}))}finally{Qs=Qs||!1}return Qs}()?s:!!s.capture}function Of(){if(null==Fo){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Fo=!1,Fo;if("scrollBehavior"in document.documentElement.style)Fo=!0;else{const s=Element.prototype.scrollTo;Fo=!!s&&!/\{\s*\[native code\]\s*\}/.test(s.toString())}}return Fo}function wr(){if("object"!=typeof document||!document)return 0;if(null==vc){const s=document.createElement("div"),r=s.style;s.dir="rtl",r.width="1px",r.overflow="auto",r.visibility="hidden",r.pointerEvents="none",r.position="absolute";const e=document.createElement("div"),t=e.style;t.width="2px",t.height="1px",s.appendChild(e),document.body.appendChild(s),vc=0,0===s.scrollLeft&&(s.scrollLeft=1,vc=0===s.scrollLeft?1:2),s.remove()}return vc}function $r(s){if(function Zn(){if(null==Ac){const s=typeof document<"u"?document.head:null;Ac=!(!s||!s.createShadowRoot&&!s.attachShadow)}return Ac}()){const r=s.getRootNode?s.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&r instanceof ShadowRoot)return r}return null}function xc(){let s=typeof document<"u"&&document?document.activeElement:null;for(;s&&s.shadowRoot;){const r=s.shadowRoot.activeElement;if(r===s)break;s=r}return s}function hn(s){return s.composedPath?s.composedPath()[0]:s.target}function Tc(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function vr(s,...r){return r.length?r.some(e=>s[e]):s.altKey||s.shiftKey||s.ctrlKey||s.metaKey}var Ic=x(8372);function kc(s){return(0,Wt.h)((r,e)=>s<=e)}function Ti(s,r=Jl.y){return s=s??Zs,(0,ci.e)((e,t)=>{let o,l=!0;e.subscribe((0,Ot.x)(t,c=>{const n=r(c);(l||!s(o,n))&&(l=!1,o=n,t.next(c))}))})}function Zs(s,r){return s===r}var Vu=x(5032);function Rt(s){return(0,ci.e)((r,e)=>{(0,zn.Xf)(s).subscribe((0,Ot.x)(e,()=>e.complete(),Vu.Z)),!e.closed&&r.subscribe(e)})}function ct(s){return null!=s&&"false"!=`${s}`}function Vi(s,r=0){return function sy(s){return!isNaN(parseFloat(s))&&!isNaN(Number(s))}(s)?Number(s):r}function Xs(s){return Array.isArray(s)?s:[s]}function di(s){return null==s?"":"string"==typeof s?s:`${s}px`}function Xt(s){return s instanceof p.SBq?s.nativeElement:s}let om=(()=>{class s{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),ly=(()=>{class s{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,t)=>this._cleanupObserver(t))}observe(e){const t=Xt(e);return new We.y(o=>{const c=this._observeElement(t).subscribe(o);return()=>{c.unsubscribe(),this._unobserveElement(t)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const t=new xe.x,o=this._mutationObserverFactory.create(l=>t.next(l));o&&o.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:o,stream:t,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:t,stream:o}=this._observedElements.get(e);t&&t.disconnect(),o.complete(),this._observedElements.delete(e)}}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(om))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Ou=(()=>{class s{constructor(e,t,o){this._contentObserver=e,this._elementRef=t,this._ngZone=o,this.event=new p.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=ct(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=Vi(e),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe((0,Ic.b)(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(ly),p.Y36(p.SBq),p.Y36(p.R0b))},s.\u0275dir=p.lG2({type:s,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),s})(),el=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({providers:[om]}),s})();const Ba=new Set;let Ji,cy=(()=>{class s{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Yx}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function dy(s){if(!Ba.has(s))try{Ji||(Ji=document.createElement("style"),Ji.setAttribute("type","text/css"),document.head.appendChild(Ji)),Ji.sheet&&(Ji.sheet.insertRule(`@media ${s} {body{ }}`,0),Ba.add(s))}catch(r){console.error(r)}}(e),this._matchMedia(e)}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(fi))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();function Yx(s){return{matches:"all"===s||""===s,media:s,addListener:()=>{},removeListener:()=>{}}}let Qx=(()=>{class s{constructor(e,t){this._mediaMatcher=e,this._zone=t,this._queries=new Map,this._destroySubject=new xe.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return Lu(Xs(e)).some(o=>this._registerQuery(o).mql.matches)}observe(e){const o=Lu(Xs(e)).map(c=>this._registerQuery(c).observable);let l=(0,fr.a)(o);return l=(0,Li.z)(l.pipe((0,ri.q)(1)),l.pipe(kc(1),(0,Ic.b)(0))),l.pipe((0,je.U)(c=>{const n={matches:!1,breakpoints:{}};return c.forEach(({matches:i,query:a})=>{n.matches=n.matches||i,n.breakpoints[a]=i}),n}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const t=this._mediaMatcher.matchMedia(e),l={observable:new We.y(c=>{const n=i=>this._zone.run(()=>c.next(i));return t.addListener(n),()=>{t.removeListener(n)}}).pipe(vi(t),(0,je.U)(({matches:c})=>({query:e,matches:c})),Rt(this._destroySubject)),mql:t};return this._queries.set(e,l),l}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(cy),p.LFG(p.R0b))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();function Lu(s){return s.map(r=>r.split(",")).reduce((r,e)=>r.concat(e)).map(r=>r.trim())}let tl=(()=>{class s{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function Fu(s){return!!(s.offsetWidth||s.offsetHeight||"function"==typeof s.getClientRects&&s.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const t=function my(s){try{return s.frameElement}catch{return null}}(function zu(s){return s.ownerDocument&&s.ownerDocument.defaultView||window}(e));if(t&&(-1===Nu(t)||!this.isVisible(t)))return!1;let o=e.nodeName.toLowerCase(),l=Nu(e);return e.hasAttribute("contenteditable")?-1!==l:!("iframe"===o||"object"===o||this._platform.WEBKIT&&this._platform.IOS&&!function ju(s){let r=s.nodeName.toLowerCase(),e="input"===r&&s.type;return"text"===e||"password"===e||"select"===r||"textarea"===r}(e))&&("audio"===o?!!e.hasAttribute("controls")&&-1!==l:"video"===o?-1!==l&&(null!==l||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,t){return function mm(s){return!function _y(s){return function Cy(s){return"input"==s.nodeName.toLowerCase()}(s)&&"hidden"==s.type}(s)&&(function gy(s){let r=s.nodeName.toLowerCase();return"input"===r||"select"===r||"button"===r||"textarea"===r}(s)||function by(s){return function yy(s){return"a"==s.nodeName.toLowerCase()}(s)&&s.hasAttribute("href")}(s)||s.hasAttribute("contenteditable")||fm(s))}(e)&&!this.isDisabled(e)&&(t?.ignoreVisibility||this.isVisible(e))}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(fi))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();function fm(s){if(!s.hasAttribute("tabindex")||void 0===s.tabIndex)return!1;let r=s.getAttribute("tabindex");return!(!r||isNaN(parseInt(r,10)))}function Nu(s){if(!fm(s))return null;const r=parseInt(s.getAttribute("tabindex")||"",10);return isNaN(r)?-1:r}class wy{constructor(r,e,t,o,l=!1){this._element=r,this._checker=e,this._ngZone=t,this._document=o,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,l||this.attachAnchors()}get enabled(){return this._enabled}set enabled(r){this._enabled=r,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(r,this._startAnchor),this._toggleAnchorTabIndex(r,this._endAnchor))}destroy(){const r=this._startAnchor,e=this._endAnchor;r&&(r.removeEventListener("focus",this.startAnchorListener),r.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),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(r){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(r)))})}focusFirstTabbableElementWhenReady(r){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(r)))})}focusLastTabbableElementWhenReady(r){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(r)))})}_getRegionBoundary(r){const e=this._element.querySelectorAll(`[cdk-focus-region-${r}], [cdkFocusRegion${r}], [cdk-focus-${r}]`);return"start"==r?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(r){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const t=this._getFirstTabbableElement(e);return t?.focus(r),!!t}return e.focus(r),!0}return this.focusFirstTabbableElement(r)}focusFirstTabbableElement(r){const e=this._getRegionBoundary("start");return e&&e.focus(r),!!e}focusLastTabbableElement(r){const e=this._getRegionBoundary("end");return e&&e.focus(r),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(r){if(this._checker.isFocusable(r)&&this._checker.isTabbable(r))return r;const e=r.children;for(let t=0;t=0;t--){const o=e[t].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[t]):null;if(o)return o}return null}_createAnchor(){const r=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,r),r.classList.add("cdk-visually-hidden"),r.classList.add("cdk-focus-trap-anchor"),r.setAttribute("aria-hidden","true"),r}_toggleAnchorTabIndex(r,e){r?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(r){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(r,this._startAnchor),this._toggleAnchorTabIndex(r,this._endAnchor))}_executeOnStable(r){this._ngZone.isStable?r():this._ngZone.onStable.pipe((0,ri.q)(1)).subscribe(r)}}let Uu=(()=>{class s{constructor(e,t,o){this._checker=e,this._ngZone=t,this._document=o}create(e,t=!1){return new wy(e,this._checker,this._ngZone,this._document,t)}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(tl),p.LFG(p.R0b),p.LFG(T.K0))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();function gm(s){return 0===s.buttons||0===s.offsetX&&0===s.offsetY}function Uo(s){const r=s.touches&&s.touches[0]||s.changedTouches&&s.changedTouches[0];return!(!r||-1!==r.identifier||null!=r.radiusX&&1!==r.radiusX||null!=r.radiusY&&1!==r.radiusY)}const Ey=new p.OlP("cdk-input-modality-detector-options"),_m={ignoreKeys:[18,17,224,91,16]},Oa=Kn({passive:!0,capture:!0});let qu=(()=>{class s{constructor(e,t,o,l){this._platform=e,this._mostRecentTarget=null,this._modality=new Nt(null),this._lastTouchMs=0,this._onKeydown=c=>{this._options?.ignoreKeys?.some(n=>n===c.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=hn(c))},this._onMousedown=c=>{Date.now()-this._lastTouchMs<650||(this._modality.next(gm(c)?"keyboard":"mouse"),this._mostRecentTarget=hn(c))},this._onTouchstart=c=>{Uo(c)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=hn(c))},this._options={..._m,...l},this.modalityDetected=this._modality.pipe(kc(1)),this.modalityChanged=this.modalityDetected.pipe(Ti()),e.isBrowser&&t.runOutsideAngular(()=>{o.addEventListener("keydown",this._onKeydown,Oa),o.addEventListener("mousedown",this._onMousedown,Oa),o.addEventListener("touchstart",this._onTouchstart,Oa)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Oa),document.removeEventListener("mousedown",this._onMousedown,Oa),document.removeEventListener("touchstart",this._onTouchstart,Oa))}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(fi),p.LFG(p.R0b),p.LFG(T.K0),p.LFG(Ey,8))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const Cm=new p.OlP("cdk-focus-monitor-default-options"),Go=Kn({passive:!0,capture:!0});let pn=(()=>{class s{constructor(e,t,o,l,c){this._ngZone=e,this._platform=t,this._inputModalityDetector=o,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new xe.x,this._rootNodeFocusAndBlurListener=n=>{for(let a=hn(n);a;a=a.parentElement)"focus"===n.type?this._onFocus(n,a):this._onBlur(n,a)},this._document=l,this._detectionMode=c?.detectionMode||0}monitor(e,t=!1){const o=Xt(e);if(!this._platform.isBrowser||1!==o.nodeType)return(0,Pe.of)(null);const l=$r(o)||this._getDocument(),c=this._elementInfo.get(o);if(c)return t&&(c.checkChildren=!0),c.subject;const n={checkChildren:t,subject:new xe.x,rootNode:l};return this._elementInfo.set(o,n),this._registerGlobalListeners(n),n.subject}stopMonitoring(e){const t=Xt(e),o=this._elementInfo.get(t);o&&(o.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(o))}focusVia(e,t,o){const l=Xt(e);l===this._getDocument().activeElement?this._getClosestElementsInfo(l).forEach(([n,i])=>this._originChanged(n,t,i)):(this._setOrigin(t),"function"==typeof l.focus&&l.focus(o))}ngOnDestroy(){this._elementInfo.forEach((e,t)=>this.stopMonitoring(t))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,t){e.classList.toggle("cdk-focused",!!t),e.classList.toggle("cdk-touch-focused","touch"===t),e.classList.toggle("cdk-keyboard-focused","keyboard"===t),e.classList.toggle("cdk-mouse-focused","mouse"===t),e.classList.toggle("cdk-program-focused","program"===t)}_setOrigin(e,t=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&t,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,t){const o=this._elementInfo.get(t),l=hn(e);!o||!o.checkChildren&&t!==l||this._originChanged(t,this._getFocusOrigin(l),o)}_onBlur(e,t){const o=this._elementInfo.get(t);!o||o.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(o,null))}_emitOrigin(e,t){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(t))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const t=e.rootNode,o=this._rootNodeFocusListenerCount.get(t)||0;o||this._ngZone.runOutsideAngular(()=>{t.addEventListener("focus",this._rootNodeFocusAndBlurListener,Go),t.addEventListener("blur",this._rootNodeFocusAndBlurListener,Go)}),this._rootNodeFocusListenerCount.set(t,o+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Rt(this._stopInputModalityDetector)).subscribe(l=>{this._setOrigin(l,!0)}))}_removeGlobalListeners(e){const t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){const o=this._rootNodeFocusListenerCount.get(t);o>1?this._rootNodeFocusListenerCount.set(t,o-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Go),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Go),this._rootNodeFocusListenerCount.delete(t))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,t,o){this._setClasses(e,t),this._emitOrigin(o,t),this._lastFocusOrigin=t}_getClosestElementsInfo(e){const t=[];return this._elementInfo.forEach((o,l)=>{(l===e||o.checkChildren&&l.contains(e))&&t.push([l,o])}),t}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:t,mostRecentModality:o}=this._inputModalityDetector;if("mouse"!==o||!t||t===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const l=e.labels;if(l)for(let c=0;c{class s{constructor(e,t){this._platform=e,this._document=t,this._breakpointSubscription=(0,p.f3M)(Qx).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const t=this._document.defaultView||window,o=t&&t.getComputedStyle?t.getComputedStyle(e):null,l=(o&&o.backgroundColor||"").replace(/ /g,"");switch(e.remove(),l){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(Yu,$u,ym),this._hasCheckedHighContrastMode=!0;const t=this.getHighContrastMode();1===t?e.add(Yu,$u):2===t&&e.add(Yu,ym)}}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(fi),p.LFG(T.K0))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),La=(()=>{class s{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(Qu))},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[el]}),s})();const wm=new p.OlP("cdk-dir-doc",{providedIn:"root",factory:function Zx(){return(0,p.f3M)(T.K0)}}),vm=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Dn=(()=>{class s{constructor(e){if(this.value="ltr",this.change=new p.vpe,e){const o=e.documentElement?e.documentElement.dir:null;this.value=function Dy(s){const r=s?.toLowerCase()||"";return"auto"===r&&typeof navigator<"u"&&navigator?.language?vm.test(navigator.language)?"rtl":"ltr":"rtl"===r?"rtl":"ltr"}((e.body?e.body.dir:null)||o||"ltr")}}ngOnDestroy(){this.change.complete()}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(wm,8))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),qo=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({}),s})();const Iy=new p.OlP("mat-sanity-checks",{providedIn:"root",factory:function Ry(){return!0}});let Ae=(()=>{class s{constructor(e,t,o){this._sanityChecks=t,this._document=o,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!Tc()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(Qu),p.LFG(Iy,8),p.LFG(T.K0))},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[qo,qo]}),s})();function Oc(s){return class extends s{constructor(...r){super(...r),this._disabled=!1}get disabled(){return this._disabled}set disabled(r){this._disabled=ct(r)}}}function Fa(s,r){return class extends s{constructor(...e){super(...e),this.defaultColor=r,this.color=r}get color(){return this._color}set color(e){const t=e||this.defaultColor;t!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),t&&this._elementRef.nativeElement.classList.add(`mat-${t}`),this._color=t)}}}function Yr(s){return class extends s{constructor(...r){super(...r),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(r){this._disableRipple=ct(r)}}}function Ju(s){return class extends s{constructor(...r){super(...r),this.errorState=!1}updateErrorState(){const r=this.errorState,l=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);l!==r&&(this.errorState=l,this.stateChanges.next())}}}const Oy=new p.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function aT(){return(0,p.f3M)(p.soG)}});class mn{constructor(){this._localeChanges=new xe.x,this.localeChanges=this._localeChanges}getValidDateOrNull(r){return this.isDateInstance(r)&&this.isValid(r)?r:null}deserialize(r){return null==r||this.isDateInstance(r)&&this.isValid(r)?r:this.invalid()}setLocale(r){this.locale=r,this._localeChanges.next()}compareDate(r,e){return this.getYear(r)-this.getYear(e)||this.getMonth(r)-this.getMonth(e)||this.getDate(r)-this.getDate(e)}sameDate(r,e){if(r&&e){let t=this.isValid(r),o=this.isValid(e);return t&&o?!this.compareDate(r,e):t==o}return r==e}clampDate(r,e,t){return e&&this.compareDate(r,e)<0?e:t&&this.compareDate(r,t)>0?t:r}}const nl=new p.OlP("mat-date-formats"),Na=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Ku(s,r){const e=Array(s);for(let t=0;t{class s extends mn{constructor(e,t){super(),this.useUtcForDisplay=!1,super.setLocale(e)}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){const t=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return Ku(12,o=>this._format(t,new Date(2017,o,1)))}getDateNames(){const e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Ku(31,t=>this._format(e,new Date(2017,0,t+1)))}getDayOfWeekNames(e){const t=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return Ku(7,o=>this._format(t,new Date(2017,0,o+1)))}getYearName(e){const t=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(t,e)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,t,o){let l=this._createDateWithOverflow(e,t,o);return l.getMonth(),l}today(){return new Date}parse(e,t){return"number"==typeof e?new Date(e):e?new Date(Date.parse(e)):null}format(e,t){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");const o=new Intl.DateTimeFormat(this.locale,{...t,timeZone:"utc"});return this._format(o,e)}addCalendarYears(e,t){return this.addCalendarMonths(e,12*t)}addCalendarMonths(e,t){let o=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+t,this.getDate(e));return this.getMonth(o)!=((this.getMonth(e)+t)%12+12)%12&&(o=this._createDateWithOverflow(this.getYear(o),this.getMonth(o),0)),o}addCalendarDays(e,t){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+t)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if("string"==typeof e){if(!e)return null;if(Na.test(e)){let t=new Date(e);if(this.isValid(t))return t}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(e,t,o){const l=new Date;return l.setFullYear(e,t,o),l.setHours(0,0,0,0),l}_2digit(e){return("00"+e).slice(-2)}_format(e,t){const o=new Date;return o.setUTCFullYear(t.getFullYear(),t.getMonth(),t.getDate()),o.setUTCHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e.format(o)}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(Oy,8),p.LFG(fi))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})();const Zu={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 Ly=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({providers:[{provide:mn,useClass:Lc}]}),s})(),Fy=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({providers:[{provide:nl,useValue:Zu}],imports:[Ly]}),s})(),Fc=(()=>{class s{isErrorState(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),jc=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[Ae,Ae]}),s})();class Wo{constructor(r,e,t,o=!1){this._renderer=r,this.element=e,this.config=t,this._animationForciblyDisabledThroughCss=o,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Em={enterDuration:225,exitDuration:150},$o=Kn({passive:!0}),Mm=["mousedown","touchstart"],Xu=["mouseup","mouseleave","touchend","touchcancel"];class Dm{constructor(r,e,t,o){this._target=r,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,o.isBrowser&&(this._containerElement=Xt(t))}fadeInRipple(r,e,t={}){const o=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),l={...Em,...t.animation};t.centered&&(r=o.left+o.width/2,e=o.top+o.height/2);const c=t.radius||function jy(s,r,e){const t=Math.max(Math.abs(s-e.left),Math.abs(s-e.right)),o=Math.max(Math.abs(r-e.top),Math.abs(r-e.bottom));return Math.sqrt(t*t+o*o)}(r,e,o),n=r-o.left,i=e-o.top,a=l.enterDuration,d=document.createElement("div");d.classList.add("mat-ripple-element"),d.style.left=n-c+"px",d.style.top=i-c+"px",d.style.height=2*c+"px",d.style.width=2*c+"px",null!=t.color&&(d.style.backgroundColor=t.color),d.style.transitionDuration=`${a}ms`,this._containerElement.appendChild(d);const u=window.getComputedStyle(d),b=u.transitionDuration,H="none"===u.transitionProperty||"0s"===b||"0s, 0s"===b,z=new Wo(this,d,t,H);d.style.transform="scale3d(1, 1, 1)",z.state=0,t.persistent||(this._mostRecentTransientRipple=z);let ae=null;return!H&&(a||l.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const Be=()=>this._finishRippleTransition(z),ot=()=>this._destroyRipple(z);d.addEventListener("transitionend",Be),d.addEventListener("transitioncancel",ot),ae={onTransitionEnd:Be,onTransitionCancel:ot}}),this._activeRipples.set(z,ae),(H||!a)&&this._finishRippleTransition(z),z}fadeOutRipple(r){if(2===r.state||3===r.state)return;const e=r.element,t={...Em,...r.config.animation};e.style.transitionDuration=`${t.exitDuration}ms`,e.style.opacity="0",r.state=2,(r._animationForciblyDisabledThroughCss||!t.exitDuration)&&this._finishRippleTransition(r)}fadeOutAll(){this._getActiveRipples().forEach(r=>r.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(r=>{r.config.persistent||r.fadeOut()})}setupTriggerEvents(r){const e=Xt(r);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(Mm))}handleEvent(r){"mousedown"===r.type?this._onMousedown(r):"touchstart"===r.type?this._onTouchStart(r):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Xu),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(r){0===r.state?this._startFadeOutTransition(r):2===r.state&&this._destroyRipple(r)}_startFadeOutTransition(r){const e=r===this._mostRecentTransientRipple,{persistent:t}=r.config;r.state=1,!t&&(!e||!this._isPointerDown)&&r.fadeOut()}_destroyRipple(r){const e=this._activeRipples.get(r)??null;this._activeRipples.delete(r),this._activeRipples.size||(this._containerRect=null),r===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),r.state=3,null!==e&&(r.element.removeEventListener("transitionend",e.onTransitionEnd),r.element.removeEventListener("transitioncancel",e.onTransitionCancel)),r.element.remove()}_onMousedown(r){const e=gm(r),t=this._lastTouchStartEvent&&Date.now(){!r.config.persistent&&(1===r.state||r.config.terminateOnPointerUp&&0===r.state)&&r.fadeOut()}))}_registerEvents(r){this._ngZone.runOutsideAngular(()=>{r.forEach(e=>{this._triggerElement.addEventListener(e,this,$o)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(Mm.forEach(r=>{this._triggerElement.removeEventListener(r,this,$o)}),this._pointerUpEventsRegistered&&Xu.forEach(r=>{this._triggerElement.removeEventListener(r,this,$o)}))}}const Hm=new p.OlP("mat-ripple-global-options");let ja=(()=>{class s{constructor(e,t,o,l,c){this._elementRef=e,this._animationMode=c,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=l||{},this._rippleRenderer=new Dm(this,t,e,o)}get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...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(e,t=0,o){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,{...this.rippleConfig,...o}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...e})}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(p.SBq),p.Y36(p.R0b),p.Y36(fi),p.Y36(Hm,8),p.Y36(p.QbO,8))},s.\u0275dir=p.lG2({type:s,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&p.ekj("mat-ripple-unbounded",t.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),s})(),gn=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[Ae,Ae]}),s})(),eh=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[Ae]}),s})(),zc=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[gn,T.ez,Ae,eh]}),s})();const Wy=["mat-button",""],ih=["*"],km=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],rh=Fa(Oc(Yr(class{constructor(s){this._elementRef=s}})));let Jr=(()=>{class s extends rh{constructor(e,t,o){super(e),this._focusMonitor=t,this._animationMode=o,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const l of km)this._hasHostAttributes(l)&&this._getHostElement().classList.add(l);e.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(e,t){e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...e){return e.some(t=>this._getHostElement().hasAttribute(t))}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(p.SBq),p.Y36(pn),p.Y36(p.QbO,8))},s.\u0275cmp=p.Xpm({type:s,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(e,t){if(1&e&&p.Gf(ja,5),2&e){let o;p.iGM(o=p.CRH())&&(t.ripple=o.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,t){2&e&&(p.uIk("disabled",t.disabled||null),p.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-button-disabled",t.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[p.qOj],attrs:Wy,ngContentSelectors:ih,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(e,t){1&e&&(p.F$t(),p.TgZ(0,"span",0),p.Hsn(1),p.qZA(),p._UZ(2,"span",1)(3,"span",2)),2&e&&(p.xp6(2),p.ekj("mat-button-ripple-round",t.isRoundButton||t.isIconButton),p.Q6J("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",t.isIconButton)("matRippleTrigger",t._getHostElement()))},dependencies:[ja],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.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;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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-fab._mat-animation-noopable{transition:none !important;animation:none !important}.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;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.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:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.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}"],encapsulation:2,changeDetection:0}),s})(),Ar=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[gn,Ae,Ae]}),s})();var Uc=x(1144),_n=x(576),Gc=x(3268);const ah=["addListener","removeListener"],oh=["addEventListener","removeEventListener"],sT=["on","off"];function Yo(s,r,e,t){if((0,_n.m)(e)&&(t=e,e=void 0),t)return Yo(s,r,e).pipe((0,Gc.Z)(t));const[o,l]=function Vm(s){return(0,_n.m)(s.addEventListener)&&(0,_n.m)(s.removeEventListener)}(s)?oh.map(c=>n=>s[c](r,n,e)):function Yy(s){return(0,_n.m)(s.addListener)&&(0,_n.m)(s.removeListener)}(s)?ah.map(Bm(s,r)):function Qy(s){return(0,_n.m)(s.on)&&(0,_n.m)(s.off)}(s)?sT.map(Bm(s,r)):[];if(!o&&(0,Uc.z)(s))return(0,hi.z)(c=>Yo(c,r,e))((0,zn.Xf)(s));if(!o)throw new TypeError("Invalid event target");return new We.y(c=>{const n=(...i)=>c.next(1l(n)})}function Bm(s,r){return e=>t=>s[e](r,t)}var Jy=x(4408);const al={schedule(s){let r=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:t}=al;t&&(r=t.requestAnimationFrame,e=t.cancelAnimationFrame);const o=r(l=>{e=void 0,s(l)});return new qt.w0(()=>e?.(o))},requestAnimationFrame(...s){const{delegate:r}=al;return(r?.requestAnimationFrame||requestAnimationFrame)(...s)},cancelAnimationFrame(...s){const{delegate:r}=al;return(r?.cancelAnimationFrame||cancelAnimationFrame)(...s)},delegate:void 0};var sh=x(7565);const Lm=new class Om extends sh.v{flush(r){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:t}=this;let o;r=r||t.shift();do{if(o=r.execute(r.state,r.delay))break}while((r=t[0])&&r.id===e&&t.shift());if(this._active=!1,o){for(;(r=t[0])&&r.id===e&&t.shift();)r.unsubscribe();throw o}}}(class lT extends Jy.o{constructor(r,e){super(r,e),this.scheduler=r,this.work=e}requestAsyncId(r,e,t=0){return null!==t&&t>0?super.requestAsyncId(r,e,t):(r.actions.push(this),r._scheduled||(r._scheduled=al.requestAnimationFrame(()=>r.flush(void 0))))}recycleAsyncId(r,e,t=0){if(null!=t&&t>0||null==t&&this.delay>0)return super.recycleAsyncId(r,e,t);r.actions.some(o=>o.id===e)||(al.cancelAnimationFrame(e),r._scheduled=void 0)}});let Nm,cT=1;const lh={};function Ky(s){return s in lh&&(delete lh[s],!0)}const dT={setImmediate(s){const r=cT++;return lh[r]=!0,Nm||(Nm=Promise.resolve()),Nm.then(()=>Ky(r)&&s()),r},clearImmediate(s){Ky(s)}},{setImmediate:uT,clearImmediate:hT}=dT,ch={setImmediate(...s){const{delegate:r}=ch;return(r?.setImmediate||uT)(...s)},clearImmediate(s){const{delegate:r}=ch;return(r?.clearImmediate||hT)(s)},delegate:void 0},dh=new class Kr extends sh.v{flush(r){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:t}=this;let o;r=r||t.shift();do{if(o=r.execute(r.state,r.delay))break}while((r=t[0])&&r.id===e&&t.shift());if(this._active=!1,o){for(;(r=t[0])&&r.id===e&&t.shift();)r.unsubscribe();throw o}}}(class pT extends Jy.o{constructor(r,e){super(r,e),this.scheduler=r,this.work=e}requestAsyncId(r,e,t=0){return null!==t&&t>0?super.requestAsyncId(r,e,t):(r.actions.push(this),r._scheduled||(r._scheduled=ch.setImmediate(r.flush.bind(r,void 0))))}recycleAsyncId(r,e,t=0){if(null!=t&&t>0||null==t&&this.delay>0)return super.recycleAsyncId(r,e,t);r.actions.some(o=>o.id===e)||(ch.clearImmediate(e),r._scheduled=void 0)}});function on(s){return!!s&&(s instanceof We.y||(0,_n.m)(s.lift)&&(0,_n.m)(s.subscribe))}var qc=x(4986),Wc=x(2805);function $c(s,r=qc.z){return function jm(s){return(0,ci.e)((r,e)=>{let t=!1,o=null,l=null,c=!1;const n=()=>{if(l?.unsubscribe(),l=null,t){t=!1;const a=o;o=null,e.next(a)}c&&e.complete()},i=()=>{l=null,c&&e.complete()};r.subscribe((0,Ot.x)(e,a=>{t=!0,o=a,l||(0,zn.Xf)(s(a)).subscribe(l=(0,Ot.x)(e,n,i))},()=>{c=!0,(!t||!l||l.closed)&&e.complete()}))})}(()=>(0,Wc.H)(s,r))}var zm=x(6063);class Zy extends xe.x{constructor(r=1/0,e=1/0,t=zm.l){super(),this._bufferSize=r,this._windowTime=e,this._timestampProvider=t,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,r),this._windowTime=Math.max(1,e)}next(r){const{isStopped:e,_buffer:t,_infiniteTimeWindow:o,_timestampProvider:l,_windowTime:c}=this;e||(t.push(r),!o&&t.push(l.now()+c)),this._trimBuffer(),super.next(r)}_subscribe(r){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(r),{_infiniteTimeWindow:t,_buffer:o}=this,l=o.slice();for(let c=0;cnew Zy(t,r,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}class Xy extends class Um{}{constructor(r){super(),this._data=r}connect(){return on(this._data)?this._data:(0,Pe.of)(this._data)}disconnect(){}}class Xr{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(r,e,t,o,l){r.forEachOperation((c,n,i)=>{let a,d;null==c.previousIndex?(a=this._insertView(()=>t(c,n,i),i,e,o(c)),d=a?1:0):null==i?(this._detachAndCacheView(n,e),d=3):(a=this._moveView(n,i,e,o(c)),d=2),l&&l({context:a?.context,operation:d,record:c})})}detach(){for(const r of this._viewCache)r.destroy();this._viewCache=[]}_insertView(r,e,t,o){const l=this._insertViewFromCache(e,t);if(l)return void(l.context.$implicit=o);const c=r();return t.createEmbeddedView(c.templateRef,c.context,c.index)}_detachAndCacheView(r,e){const t=e.detach(r);this._maybeCacheView(t,e)}_moveView(r,e,t,o){const l=t.get(r);return t.move(l,e),l.context.$implicit=o,l}_maybeCacheView(r,e){if(this._viewCache.length0?l/this._itemSize:0;if(e.end>o){const i=Math.ceil(t/this._itemSize),a=Math.max(0,Math.min(c,o-i));c!=a&&(c=a,l=a*this._itemSize,e.start=Math.floor(c)),e.end=Math.max(0,Math.min(o,e.start+i))}const n=l-e.start*this._itemSize;if(n0&&(e.end=Math.min(o,e.end+a),e.start=Math.max(0,Math.floor(c-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(e),this._viewport.setRenderedContentOffset(this._itemSize*e.start),this._scrolledIndexChange.next(Math.floor(c))}}function fh(s){return s._scrollStrategy}let qm=(()=>{class s{constructor(){this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new ph(this.itemSize,this.minBufferPx,this.maxBufferPx)}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=Vi(e)}get minBufferPx(){return this._minBufferPx}set minBufferPx(e){this._minBufferPx=Vi(e)}get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(e){this._maxBufferPx=Vi(e)}ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275dir=p.lG2({type:s,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[p._Bn([{provide:hh,useFactory:fh,deps:[(0,p.Gpc)(()=>s)]}]),p.TTD]}),s})(),Jc=(()=>{class s{constructor(e,t,o){this._ngZone=e,this._platform=t,this._scrolled=new xe.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=o}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new We.y(t=>{this._globalSubscription||this._addGlobalListener();const o=e>0?this._scrolled.pipe($c(e)).subscribe(t):this._scrolled.subscribe(t);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,Pe.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,t)=>this.deregister(t)),this._scrolled.complete()}ancestorScrolled(e,t){const o=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe((0,Wt.h)(l=>!l||o.indexOf(l)>-1))}getAncestorScrollContainers(e){const t=[];return this.scrollContainers.forEach((o,l)=>{this._scrollableContainsElement(l,e)&&t.push(l)}),t}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,t){let o=Xt(t),l=e.getElementRef().nativeElement;do{if(o==l)return!0}while(o=o.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Yo(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(p.R0b),p.LFG(fi),p.LFG(T.K0,8))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),tw=(()=>{class s{constructor(e,t,o,l){this.elementRef=e,this.scrollDispatcher=t,this.ngZone=o,this.dir=l,this._destroyed=new xe.x,this._elementScrolled=new We.y(c=>this.ngZone.runOutsideAngular(()=>Yo(this.elementRef.nativeElement,"scroll").pipe(Rt(this._destroyed)).subscribe(c)))}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(e){const t=this.elementRef.nativeElement,o=this.dir&&"rtl"==this.dir.value;null==e.left&&(e.left=o?e.end:e.start),null==e.right&&(e.right=o?e.start:e.end),null!=e.bottom&&(e.top=t.scrollHeight-t.clientHeight-e.bottom),o&&0!=wr()?(null!=e.left&&(e.right=t.scrollWidth-t.clientWidth-e.left),2==wr()?e.left=e.right:1==wr()&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.left=t.scrollWidth-t.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){const t=this.elementRef.nativeElement;Of()?t.scrollTo(e):(null!=e.top&&(t.scrollTop=e.top),null!=e.left&&(t.scrollLeft=e.left))}measureScrollOffset(e){const t="left",o="right",l=this.elementRef.nativeElement;if("top"==e)return l.scrollTop;if("bottom"==e)return l.scrollHeight-l.clientHeight-l.scrollTop;const c=this.dir&&"rtl"==this.dir.value;return"start"==e?e=c?o:t:"end"==e&&(e=c?t:o),c&&2==wr()?e==t?l.scrollWidth-l.clientWidth-l.scrollLeft:l.scrollLeft:c&&1==wr()?e==t?l.scrollLeft+l.scrollWidth-l.clientWidth:-l.scrollLeft:e==t?l.scrollLeft:l.scrollWidth-l.clientWidth-l.scrollLeft}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(p.SBq),p.Y36(Jc),p.Y36(p.R0b),p.Y36(Dn,8))},s.\u0275dir=p.lG2({type:s,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),s})(),za=(()=>{class s{constructor(e,t,o){this._platform=e,this._change=new xe.x,this._changeListener=l=>{this._change.next(l)},this._document=o,t.runOutsideAngular(()=>{if(e.isBrowser){const l=this._getWindow();l.addEventListener("resize",this._changeListener),l.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:t,height:o}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+o,right:e.left+t,height:o,width:t}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,t=this._getWindow(),o=e.documentElement,l=o.getBoundingClientRect();return{top:-l.top||e.body.scrollTop||t.scrollY||o.scrollTop||0,left:-l.left||e.body.scrollLeft||t.scrollX||o.scrollLeft||0}}change(e=20){return e>0?this._change.pipe($c(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(fi),p.LFG(p.R0b),p.LFG(T.K0,8))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const nw=new p.OlP("VIRTUAL_SCROLLABLE");let gh=(()=>{class s extends tw{constructor(e,t,o,l){super(e,t,o,l)}measureViewportSize(e){const t=this.elementRef.nativeElement;return"horizontal"===e?t.clientWidth:t.clientHeight}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(p.SBq),p.Y36(Jc),p.Y36(p.R0b),p.Y36(Dn,8))},s.\u0275dir=p.lG2({type:s,features:[p.qOj]}),s})();const rw=typeof requestAnimationFrame<"u"?Lm:dh;let Ki=(()=>{class s extends gh{constructor(e,t,o,l,c,n,i,a){super(e,n,o,c),this.elementRef=e,this._changeDetectorRef=t,this._scrollStrategy=l,this.scrollable=a,this._detachedSubject=new xe.x,this._renderedRangeSubject=new xe.x,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new We.y(d=>this._scrollStrategy.scrolledIndexChange.subscribe(u=>Promise.resolve().then(()=>this.ngZone.run(()=>d.next(u))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=qt.w0.EMPTY,this._viewportChanges=i.change().subscribe(()=>{this.checkViewportSize()}),this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this)}get orientation(){return this._orientation}set orientation(e){this._orientation!==e&&(this._orientation=e,this._calculateSpacerSize())}get appendOnly(){return this._appendOnly}set appendOnly(e){this._appendOnly=ct(e)}ngOnInit(){this.scrollable===this&&super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.scrollable.elementScrolled().pipe(vi(null),$c(0,rw)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()}))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(e){this.ngZone.runOutsideAngular(()=>{this._forOf=e,this._forOf.dataStream.pipe(Rt(this._detachedSubject)).subscribe(t=>{const o=t.length;o!==this._dataLength&&(this._dataLength=o,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}measureBoundingClientRectWithScrollOffset(e){return this.getElementRef().nativeElement.getBoundingClientRect()[e]}setTotalContentSize(e){this._totalContentSize!==e&&(this._totalContentSize=e,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(e){(function Wm(s,r){return s.start==r.start&&s.end==r.end})(this._renderedRange,e)||(this.appendOnly&&(e={start:0,end:Math.max(this._renderedRange.end,e.end)}),this._renderedRangeSubject.next(this._renderedRange=e),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(e,t="to-start"){e=this.appendOnly&&"to-start"===t?0:e;const l="horizontal"==this.orientation,c=l?"X":"Y";let i=`translate${c}(${Number((l&&this.dir&&"rtl"==this.dir.value?-1:1)*e)}px)`;this._renderedContentOffset=e,"to-end"===t&&(i+=` translate${c}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=i&&(this._renderedContentTransform=i,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(e,t="auto"){const o={behavior:t};"horizontal"===this.orientation?o.start=e:o.top=e,this.scrollable.scrollTo(o)}scrollToIndex(e,t="auto"){this._scrollStrategy.scrollToIndex(e,t)}measureScrollOffset(e){let t;return t=this.scrollable==this?o=>super.measureScrollOffset(o):o=>this.scrollable.measureScrollOffset(o),Math.max(0,t(e??("horizontal"===this.orientation?"start":"top"))-this.measureViewportOffset())}measureViewportOffset(e){let t;const o="left",l="right",c="rtl"==this.dir?.value;t="start"==e?c?l:o:"end"==e?c?o:l:e||("horizontal"===this.orientation?"left":"top");const n=this.scrollable.measureBoundingClientRectWithScrollOffset(t);return this.elementRef.nativeElement.getBoundingClientRect()[t]-n}measureRenderedContentSize(){const e=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?e.offsetWidth:e.offsetHeight}measureRangeSize(e){return this._forOf?this._forOf.measureRangeSize(e,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}_markChangeDetectionNeeded(e){e&&this._runAfterChangeDetection.push(e),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(()=>this._changeDetectorRef.markForCheck());const e=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const t of e)t()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(p.SBq),p.Y36(p.sBO),p.Y36(p.R0b),p.Y36(hh,8),p.Y36(Dn,8),p.Y36(Jc),p.Y36(za),p.Y36(nw,8))},s.\u0275cmp=p.Xpm({type:s,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(e,t){if(1&e&&p.Gf(ew,7),2&e){let o;p.iGM(o=p.CRH())&&(t._contentWrapper=o.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(e,t){2&e&&p.ekj("cdk-virtual-scroll-orientation-horizontal","horizontal"===t.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==t.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[p._Bn([{provide:tw,useFactory:(r,e)=>r||e,deps:[gh,s]}]),p.qOj],ngContentSelectors:Gm,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(e,t){1&e&&(p.F$t(),p.TgZ(0,"div",0,1),p.Hsn(2),p.qZA(),p._UZ(3,"div",2)),2&e&&(p.xp6(3),p.Udp("width",t._totalContentWidth)("height",t._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}"],encapsulation:2,changeDetection:0}),s})();function _h(s,r,e){if(!e.getBoundingClientRect)return 0;const o=e.getBoundingClientRect();return"horizontal"===s?"start"===r?o.left:o.right:"start"===r?o.top:o.bottom}let aw=(()=>{class s{constructor(e,t,o,l,c,n){this._viewContainerRef=e,this._template=t,this._differs=o,this._viewRepeater=l,this._viewport=c,this.viewChange=new xe.x,this._dataSourceChanges=new xe.x,this.dataStream=this._dataSourceChanges.pipe(vi(null),function Zr(){return(0,ci.e)((s,r)=>{let e,t=!1;s.subscribe((0,Ot.x)(r,o=>{const l=e;e=o,t&&r.next([l,o]),t=!0}))})}(),(0,Ri.w)(([i,a])=>this._changeDataSource(i,a)),uh(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new xe.x,this.dataStream.subscribe(i=>{this._data=i,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe(Rt(this._destroyed)).subscribe(i=>{this._renderedRange=i,this.viewChange.observers.length&&n.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(e){this._cdkVirtualForOf=e,function ol(s){return s&&"function"==typeof s.connect}(e)?this._dataSourceChanges.next(e):this._dataSourceChanges.next(new Xy(on(e)?e:Array.from(e||[])))}get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(e){this._needsUpdate=!0,this._cdkVirtualForTrackBy=e?(t,o)=>e(t+(this._renderedRange?this._renderedRange.start:0),o):void 0}set cdkVirtualForTemplate(e){e&&(this._needsUpdate=!0,this._template=e)}get cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set cdkVirtualForTemplateCacheSize(e){this._viewRepeater.viewCacheSize=Vi(e)}measureRangeSize(e,t){if(e.start>=e.end)return 0;const o=e.start-this._renderedRange.start,l=e.end-e.start;let c,n;for(let i=0;i-1;i--){const a=this._viewContainerRef.get(i+o);if(a&&a.rootNodes.length){n=a.rootNodes[a.rootNodes.length-1];break}}return c&&n?_h(t,"end",n)-_h(t,"start",c):0}ngDoCheck(){if(this._differ&&this._needsUpdate){const e=this._differ.diff(this._renderedItems);e?this._applyChanges(e):this._updateContext(),this._needsUpdate=!1}}ngOnDestroy(){this._viewport.detach(),this._dataSourceChanges.next(void 0),this._dataSourceChanges.complete(),this.viewChange.complete(),this._destroyed.next(),this._destroyed.complete(),this._viewRepeater.detach()}_onRenderedDataChange(){!this._renderedRange||(this._renderedItems=this._data.slice(this._renderedRange.start,this._renderedRange.end),this._differ||(this._differ=this._differs.find(this._renderedItems).create((e,t)=>this.cdkVirtualForTrackBy?this.cdkVirtualForTrackBy(e,t):t)),this._needsUpdate=!0)}_changeDataSource(e,t){return e&&e.disconnect(this),this._needsUpdate=!0,t?t.connect(this):(0,Pe.of)()}_updateContext(){const e=this._data.length;let t=this._viewContainerRef.length;for(;t--;){const o=this._viewContainerRef.get(t);o.context.index=this._renderedRange.start+t,o.context.count=e,this._updateComputedContextProperties(o.context),o.detectChanges()}}_applyChanges(e){this._viewRepeater.applyChanges(e,this._viewContainerRef,(l,c,n)=>this._getEmbeddedViewArgs(l,n),l=>l.item),e.forEachIdentityChange(l=>{this._viewContainerRef.get(l.currentIndex).context.$implicit=l.item});const t=this._data.length;let o=this._viewContainerRef.length;for(;o--;){const l=this._viewContainerRef.get(o);l.context.index=this._renderedRange.start+o,l.context.count=t,this._updateComputedContextProperties(l.context)}}_updateComputedContextProperties(e){e.first=0===e.index,e.last=e.index===e.count-1,e.even=e.index%2==0,e.odd=!e.even}_getEmbeddedViewArgs(e,t){return{templateRef:this._template,context:{$implicit:e.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:t}}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(p.s_b),p.Y36(p.Rgc),p.Y36(p.ZZ4),p.Y36(Hn),p.Y36(Ki,4),p.Y36(p.R0b))},s.\u0275dir=p.lG2({type:s,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},features:[p._Bn([{provide:Hn,useClass:Xr}])]}),s})(),Pn=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({}),s})(),Ua=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[qo,Pn,qo,Pn]}),s})();class bh{attach(r){return this._attachedHost=r,r.attach(this)}detach(){let r=this._attachedHost;null!=r&&(this._attachedHost=null,r.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(r){this._attachedHost=r}}class Ch extends bh{constructor(r,e,t,o){super(),this.component=r,this.viewContainerRef=e,this.injector=t,this.componentFactoryResolver=o}}class yh extends bh{constructor(r,e,t,o){super(),this.templateRef=r,this.viewContainerRef=e,this.context=t,this.injector=o}get origin(){return this.templateRef.elementRef}attach(r,e=this.context){return this.context=e,super.attach(r)}detach(){return this.context=void 0,super.detach()}}class $m extends bh{constructor(r){super(),this.element=r instanceof p.SBq?r.nativeElement:r}}class wh{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(r){return r instanceof Ch?(this._attachedPortal=r,this.attachComponentPortal(r)):r instanceof yh?(this._attachedPortal=r,this.attachTemplatePortal(r)):this.attachDomPortal&&r instanceof $m?(this._attachedPortal=r,this.attachDomPortal(r)):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(r){this._disposeFn=r}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class vh extends wh{constructor(r,e,t,o,l){super(),this.outletElement=r,this._componentFactoryResolver=e,this._appRef=t,this._defaultInjector=o,this.attachDomPortal=c=>{const n=c.element,i=this._document.createComment("dom-portal");n.parentNode.insertBefore(i,n),this.outletElement.appendChild(n),this._attachedPortal=c,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(n,i)})},this._document=l}attachComponentPortal(r){const t=(r.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(r.component);let o;return r.viewContainerRef?(o=r.viewContainerRef.createComponent(t,r.viewContainerRef.length,r.injector||r.viewContainerRef.injector),this.setDisposeFn(()=>o.destroy())):(o=t.create(r.injector||this._defaultInjector||p.zs3.NULL),this._appRef.attachView(o.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(o.hostView),o.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(o)),this._attachedPortal=r,o}attachTemplatePortal(r){let e=r.viewContainerRef,t=e.createEmbeddedView(r.templateRef,r.context,{injector:r.injector});return t.rootNodes.forEach(o=>this.outletElement.appendChild(o)),t.detectChanges(),this.setDisposeFn(()=>{let o=e.indexOf(t);-1!==o&&e.remove(o)}),this._attachedPortal=r,t}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(r){return r.hostView.rootNodes[0]}}let Kc=(()=>{class s extends wh{constructor(e,t,o){super(),this._componentFactoryResolver=e,this._viewContainerRef=t,this._isInitialized=!1,this.attached=new p.vpe,this.attachDomPortal=l=>{const c=l.element,n=this._document.createComment("dom-portal");l.setAttachedHost(this),c.parentNode.insertBefore(n,c),this._getRootNode().appendChild(c),this._attachedPortal=l,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(c,n)})},this._document=o}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(e){e.setAttachedHost(this);const t=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,l=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),c=t.createComponent(l,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(c.hostView.rootNodes[0]),super.setDisposeFn(()=>c.destroy()),this._attachedPortal=e,this._attachedRef=c,this.attached.emit(c),c}attachTemplatePortal(e){e.setAttachedHost(this);const t=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=t,this.attached.emit(t),t}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(p._Vd),p.Y36(p.s_b),p.Y36(T.K0))},s.\u0275dir=p.lG2({type:s,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[p.qOj]}),s})(),ea=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({}),s})();var er=x(6451);const Ym=Of();class lw{constructor(r,e){this._viewportRuler=r,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const r=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=r.style.left||"",this._previousHTMLStyles.top=r.style.top||"",r.style.left=di(-this._previousScrollPosition.left),r.style.top=di(-this._previousScrollPosition.top),r.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const r=this._document.documentElement,t=r.style,o=this._document.body.style,l=t.scrollBehavior||"",c=o.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,r.classList.remove("cdk-global-scrollblock"),Ym&&(t.scrollBehavior=o.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Ym&&(t.scrollBehavior=l,o.scrollBehavior=c)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width}}class xh{constructor(r,e,t,o){this._scrollDispatcher=r,this._ngZone=e,this._viewportRuler=t,this._config=o,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(r){this._overlayRef=r}enable(){if(this._scrollSubscription)return;const r=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=r.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=r.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Qm{enable(){}disable(){}attach(){}}function Zc(s,r){return r.some(e=>s.bottome.bottom||s.righte.right)}function Xc(s,r){return r.some(e=>s.tope.bottom||s.lefte.right)}class Jm{constructor(r,e,t,o){this._scrollDispatcher=r,this._viewportRuler=e,this._ngZone=t,this._config=o,this._scrollSubscription=null}attach(r){this._overlayRef=r}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 e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:t,height:o}=this._viewportRuler.getViewportSize();Zc(e,[{width:t,height:o,bottom:o,right:t,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 xT=(()=>{class s{constructor(e,t,o,l){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=o,this.noop=()=>new Qm,this.close=c=>new xh(this._scrollDispatcher,this._ngZone,this._viewportRuler,c),this.block=()=>new lw(this._viewportRuler,this._document),this.reposition=c=>new Jm(this._scrollDispatcher,this._viewportRuler,this._ngZone,c),this._document=l}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(Jc),p.LFG(za),p.LFG(p.R0b),p.LFG(T.K0))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();class cw{constructor(r){if(this.scrollStrategy=new Qm,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,r){const e=Object.keys(r);for(const t of e)void 0!==r[t]&&(this[t]=r[t])}}}class dw{constructor(r,e){this.connectionPair=r,this.scrollableViewProperties=e}}let Th=(()=>{class s{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const t=this._attachedOverlays.indexOf(e);t>-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this.detach()}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(T.K0))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Zm=(()=>{class s extends Th{constructor(e,t){super(e),this._ngZone=t,this._keydownListener=o=>{const l=this._attachedOverlays;for(let c=l.length-1;c>-1;c--)if(l[c]._keydownEvents.observers.length>0){const n=l[c]._keydownEvents;this._ngZone?this._ngZone.run(()=>n.next(o)):n.next(o);break}}}add(e){super.add(e),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(T.K0),p.LFG(p.R0b,8))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Eh=(()=>{class s extends Th{constructor(e,t,o){super(e),this._platform=t,this._ngZone=o,this._cursorStyleIsSet=!1,this._pointerDownListener=l=>{this._pointerDownEventTarget=hn(l)},this._clickListener=l=>{const c=hn(l),n="click"===l.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:c;this._pointerDownEventTarget=null;const i=this._attachedOverlays.slice();for(let a=i.length-1;a>-1;a--){const d=i[a];if(d._outsidePointerEvents.observers.length<1||!d.hasAttached())continue;if(d.overlayElement.contains(c)||d.overlayElement.contains(n))break;const u=d._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>u.next(l)):u.next(l)}}}add(e){if(super.add(e),!this._isAttached){const t=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(t)):this._addEventListeners(t),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(T.K0),p.LFG(fi),p.LFG(p.R0b,8))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),bn=(()=>{class s{constructor(e,t){this._platform=t,this._document=e}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||Tc()){const o=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let l=0;lthis._backdropClick.next(u),this._backdropTransitionendHandler=u=>{this._disposeBackdrop(u.target)},this._keydownEvents=new xe.x,this._outsidePointerEvents=new xe.x,o.scrollStrategy&&(this._scrollStrategy=o.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=o.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(r){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const e=this._portalOutlet.attach(r);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,ri.q)(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),"function"==typeof e?.onDestroy&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),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 r=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),r}dispose(){const r=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),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?.remove(),this._previousHostParent=this._pane=this._host=null,r&&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(r){r!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=r,this.hasAttached()&&(r.attach(this),this.updatePosition()))}updateSize(r){this._config={...this._config,...r},this._updateElementSize()}setDirection(r){this._config={...this._config,direction:r},this._updateElementDirection()}addPanelClass(r){this._pane&&this._toggleClasses(this._pane,r,!0)}removePanelClass(r){this._pane&&this._toggleClasses(this._pane,r,!1)}getDirection(){const r=this._config.direction;return r?"string"==typeof r?r:r.value:"ltr"}updateScrollStrategy(r){r!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=r,this.hasAttached()&&(r.attach(this),r.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const r=this._pane.style;r.width=di(this._config.width),r.height=di(this._config.height),r.minWidth=di(this._config.minWidth),r.minHeight=di(this._config.minHeight),r.maxWidth=di(this._config.maxWidth),r.maxHeight=di(this._config.maxHeight)}_togglePointerEvents(r){this._pane.style.pointerEvents=r?"":"none"}_attachBackdrop(){const r="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),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),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(r)})}):this._backdropElement.classList.add(r)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const r=this._backdropElement;if(r){if(this._animationsDisabled)return void this._disposeBackdrop(r);r.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{r.addEventListener("transitionend",this._backdropTransitionendHandler)}),r.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(r)},500))}}_toggleClasses(r,e,t){const o=Xs(e||[]).filter(l=>!!l);o.length&&(t?r.classList.add(...o):r.classList.remove(...o))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const r=this._ngZone.onStable.pipe(Rt((0,er.T)(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._host.remove()),r.unsubscribe())})})}_disposeScrollStrategy(){const r=this._scrollStrategy;r&&(r.disable(),r.detach&&r.detach())}_disposeBackdrop(r){r&&(r.removeEventListener("click",this._backdropClickHandler),r.removeEventListener("transitionend",this._backdropTransitionendHandler),r.remove(),this._backdropElement===r&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const dl="cdk-overlay-connected-position-bounding-box",ul=/([A-Za-z%]+)$/;class pw{constructor(r,e,t,o,l){this._viewportRuler=e,this._document=t,this._platform=o,this._overlayContainer=l,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 xe.x,this._resizeSubscription=qt.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(r)}get positions(){return this._preferredPositions}attach(r){this._validatePositions(),r.hostElement.classList.add(dl),this._overlayRef=r,this._boundingBox=r.hostElement,this._pane=r.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(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const r=this._originRect,e=this._overlayRect,t=this._viewportRect,o=this._containerRect,l=[];let c;for(let n of this._preferredPositions){let i=this._getOriginPoint(r,o,n),a=this._getOverlayPoint(i,e,n),d=this._getOverlayFit(a,e,t,n);if(d.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(n,i);this._canFitWithFlexibleDimensions(d,a,t)?l.push({position:n,origin:i,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(i,n)}):(!c||c.overlayFit.visibleAreai&&(i=d,n=a)}return this._isPushed=!1,void this._applyPosition(n.position,n.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(c.position,c.originPoint);this._applyPosition(c.position,c.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Tr(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(dl),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const r=this._lastPosition;if(r){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._getOriginPoint(this._originRect,this._containerRect,r);this._applyPosition(r,e)}else this.apply()}withScrollableContainers(r){return this._scrollables=r,this}withPositions(r){return this._preferredPositions=r,-1===r.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(r){return this._viewportMargin=r,this}withFlexibleDimensions(r=!0){return this._hasFlexibleDimensions=r,this}withGrowAfterOpen(r=!0){return this._growAfterOpen=r,this}withPush(r=!0){return this._canPush=r,this}withLockedPosition(r=!0){return this._positionLocked=r,this}setOrigin(r){return this._origin=r,this}withDefaultOffsetX(r){return this._offsetX=r,this}withDefaultOffsetY(r){return this._offsetY=r,this}withTransformOriginOn(r){return this._transformOriginSelector=r,this}_getOriginPoint(r,e,t){let o,l;if("center"==t.originX)o=r.left+r.width/2;else{const c=this._isRtl()?r.right:r.left,n=this._isRtl()?r.left:r.right;o="start"==t.originX?c:n}return e.left<0&&(o-=e.left),l="center"==t.originY?r.top+r.height/2:"top"==t.originY?r.top:r.bottom,e.top<0&&(l-=e.top),{x:o,y:l}}_getOverlayPoint(r,e,t){let o,l;return o="center"==t.overlayX?-e.width/2:"start"===t.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,l="center"==t.overlayY?-e.height/2:"top"==t.overlayY?0:-e.height,{x:r.x+o,y:r.y+l}}_getOverlayFit(r,e,t,o){const l=Xm(e);let{x:c,y:n}=r,i=this._getOffset(o,"x"),a=this._getOffset(o,"y");i&&(c+=i),a&&(n+=a);let f=0-n,b=n+l.height-t.height,H=this._subtractOverflows(l.width,0-c,c+l.width-t.width),z=this._subtractOverflows(l.height,f,b),ae=H*z;return{visibleArea:ae,isCompletelyWithinViewport:l.width*l.height===ae,fitsInViewportVertically:z===l.height,fitsInViewportHorizontally:H==l.width}}_canFitWithFlexibleDimensions(r,e,t){if(this._hasFlexibleDimensions){const o=t.bottom-e.y,l=t.right-e.x,c=Sh(this._overlayRef.getConfig().minHeight),n=Sh(this._overlayRef.getConfig().minWidth),a=r.fitsInViewportHorizontally||null!=n&&n<=l;return(r.fitsInViewportVertically||null!=c&&c<=o)&&a}return!1}_pushOverlayOnScreen(r,e,t){if(this._previousPushAmount&&this._positionLocked)return{x:r.x+this._previousPushAmount.x,y:r.y+this._previousPushAmount.y};const o=Xm(e),l=this._viewportRect,c=Math.max(r.x+o.width-l.width,0),n=Math.max(r.y+o.height-l.height,0),i=Math.max(l.top-t.top-r.y,0),a=Math.max(l.left-t.left-r.x,0);let d=0,u=0;return d=o.width<=l.width?a||-c:r.xH&&!this._isInitialRender&&!this._growAfterOpen&&(c=r.y-H/2)}if("end"===e.overlayX&&!o||"start"===e.overlayX&&o)f=t.width-r.x+this._viewportMargin,d=r.x-this._viewportMargin;else if("start"===e.overlayX&&!o||"end"===e.overlayX&&o)u=r.x,d=t.right-r.x;else{const b=Math.min(t.right-r.x+t.left,r.x),H=this._lastBoundingBoxSize.width;d=2*b,u=r.x-b,d>H&&!this._isInitialRender&&!this._growAfterOpen&&(u=r.x-H/2)}return{top:c,left:u,bottom:n,right:f,width:d,height:l}}_setBoundingBoxStyles(r,e){const t=this._calculateBoundingBoxRect(r,e);!this._isInitialRender&&!this._growAfterOpen&&(t.height=Math.min(t.height,this._lastBoundingBoxSize.height),t.width=Math.min(t.width,this._lastBoundingBoxSize.width));const o={};if(this._hasExactPosition())o.top=o.left="0",o.bottom=o.right=o.maxHeight=o.maxWidth="",o.width=o.height="100%";else{const l=this._overlayRef.getConfig().maxHeight,c=this._overlayRef.getConfig().maxWidth;o.height=di(t.height),o.top=di(t.top),o.bottom=di(t.bottom),o.width=di(t.width),o.left=di(t.left),o.right=di(t.right),o.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",o.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",l&&(o.maxHeight=di(l)),c&&(o.maxWidth=di(c))}this._lastBoundingBoxSize=t,Tr(this._boundingBox.style,o)}_resetBoundingBoxStyles(){Tr(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Tr(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(r,e){const t={},o=this._hasExactPosition(),l=this._hasFlexibleDimensions,c=this._overlayRef.getConfig();if(o){const d=this._viewportRuler.getViewportScrollPosition();Tr(t,this._getExactOverlayY(e,r,d)),Tr(t,this._getExactOverlayX(e,r,d))}else t.position="static";let n="",i=this._getOffset(e,"x"),a=this._getOffset(e,"y");i&&(n+=`translateX(${i}px) `),a&&(n+=`translateY(${a}px)`),t.transform=n.trim(),c.maxHeight&&(o?t.maxHeight=di(c.maxHeight):l&&(t.maxHeight="")),c.maxWidth&&(o?t.maxWidth=di(c.maxWidth):l&&(t.maxWidth="")),Tr(this._pane.style,t)}_getExactOverlayY(r,e,t){let o={top:"",bottom:""},l=this._getOverlayPoint(e,this._overlayRect,r);return this._isPushed&&(l=this._pushOverlayOnScreen(l,this._overlayRect,t)),"bottom"===r.overlayY?o.bottom=this._document.documentElement.clientHeight-(l.y+this._overlayRect.height)+"px":o.top=di(l.y),o}_getExactOverlayX(r,e,t){let c,o={left:"",right:""},l=this._getOverlayPoint(e,this._overlayRect,r);return this._isPushed&&(l=this._pushOverlayOnScreen(l,this._overlayRect,t)),c=this._isRtl()?"end"===r.overlayX?"left":"right":"end"===r.overlayX?"right":"left","right"===c?o.right=this._document.documentElement.clientWidth-(l.x+this._overlayRect.width)+"px":o.left=di(l.x),o}_getScrollVisibility(){const r=this._getOriginRect(),e=this._pane.getBoundingClientRect(),t=this._scrollables.map(o=>o.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Xc(r,t),isOriginOutsideView:Zc(r,t),isOverlayClipped:Xc(e,t),isOverlayOutsideView:Zc(e,t)}}_subtractOverflows(r,...e){return e.reduce((t,o)=>t-Math.max(o,0),r)}_getNarrowedViewportRect(){const r=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,t=this._viewportRuler.getViewportScrollPosition();return{top:t.top+this._viewportMargin,left:t.left+this._viewportMargin,right:t.left+r-this._viewportMargin,bottom:t.top+e-this._viewportMargin,width:r-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(r,e){return"x"===e?r.offsetX??this._offsetX:r.offsetY??this._offsetY}_validatePositions(){}_addPanelClasses(r){this._pane&&Xs(r).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(r=>{this._pane.classList.remove(r)}),this._appliedPanelClasses=[])}_getOriginRect(){const r=this._origin;if(r instanceof p.SBq)return r.nativeElement.getBoundingClientRect();if(r instanceof Element)return r.getBoundingClientRect();const e=r.width||0,t=r.height||0;return{top:r.y,bottom:r.y+t,left:r.x,right:r.x+e,height:t,width:e}}}function Tr(s,r){for(let e in r)r.hasOwnProperty(e)&&(s[e]=r[e]);return s}function Sh(s){if("number"!=typeof s&&null!=s){const[r,e]=s.split(ul);return e&&"px"!==e?null:parseFloat(r)}return s||null}function Xm(s){return{top:Math.floor(s.top),right:Math.floor(s.right),bottom:Math.floor(s.bottom),left:Math.floor(s.left),width:Math.floor(s.width),height:Math.floor(s.height)}}const eg="cdk-global-overlay-wrapper";class ET{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(r){const e=r.getConfig();this._overlayRef=r,this._width&&!e.width&&r.updateSize({width:this._width}),this._height&&!e.height&&r.updateSize({height:this._height}),r.hostElement.classList.add(eg),this._isDisposed=!1}top(r=""){return this._bottomOffset="",this._topOffset=r,this._alignItems="flex-start",this}left(r=""){return this._xOffset=r,this._xPosition="left",this}bottom(r=""){return this._topOffset="",this._bottomOffset=r,this._alignItems="flex-end",this}right(r=""){return this._xOffset=r,this._xPosition="right",this}start(r=""){return this._xOffset=r,this._xPosition="start",this}end(r=""){return this._xOffset=r,this._xPosition="end",this}width(r=""){return this._overlayRef?this._overlayRef.updateSize({width:r}):this._width=r,this}height(r=""){return this._overlayRef?this._overlayRef.updateSize({height:r}):this._height=r,this}centerHorizontally(r=""){return this.left(r),this._xPosition="center",this}centerVertically(r=""){return this.top(r),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const r=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,t=this._overlayRef.getConfig(),{width:o,height:l,maxWidth:c,maxHeight:n}=t,i=!("100%"!==o&&"100vw"!==o||c&&"100%"!==c&&"100vw"!==c),a=!("100%"!==l&&"100vh"!==l||n&&"100%"!==n&&"100vh"!==n),d=this._xPosition,u=this._xOffset,f="rtl"===this._overlayRef.getConfig().direction;let b="",H="",z="";i?z="flex-start":"center"===d?(z="center",f?H=u:b=u):f?"left"===d||"end"===d?(z="flex-end",b=u):("right"===d||"start"===d)&&(z="flex-start",H=u):"left"===d||"start"===d?(z="flex-start",b=u):("right"===d||"end"===d)&&(z="flex-end",H=u),r.position=this._cssPosition,r.marginLeft=i?"0":b,r.marginTop=a?"0":this._topOffset,r.marginBottom=this._bottomOffset,r.marginRight=i?"0":H,e.justifyContent=z,e.alignItems=a?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const r=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,t=e.style;e.classList.remove(eg),t.justifyContent=t.alignItems=r.marginTop=r.marginBottom=r.marginLeft=r.marginRight=r.position="",this._overlayRef=null,this._isDisposed=!0}}let fw=(()=>{class s{constructor(e,t,o,l){this._viewportRuler=e,this._document=t,this._platform=o,this._overlayContainer=l}global(){return new ET}flexibleConnectedTo(e){return new pw(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(za),p.LFG(T.K0),p.LFG(fi),p.LFG(bn))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),ST=0,tr=(()=>{class s{constructor(e,t,o,l,c,n,i,a,d,u,f,b){this.scrollStrategies=e,this._overlayContainer=t,this._componentFactoryResolver=o,this._positionBuilder=l,this._keyboardDispatcher=c,this._injector=n,this._ngZone=i,this._document=a,this._directionality=d,this._location=u,this._outsideClickDispatcher=f,this._animationsModuleType=b}create(e){const t=this._createHostElement(),o=this._createPaneElement(t),l=this._createPortalOutlet(o),c=new cw(e);return c.direction=c.direction||this._directionality.value,new ta(l,t,o,c,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(e){const t=this._document.createElement("div");return t.id="cdk-overlay-"+ST++,t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(p.z2F)),new vh(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(xT),p.LFG(bn),p.LFG(p._Vd),p.LFG(fw),p.LFG(Zm),p.LFG(p.zs3),p.LFG(p.R0b),p.LFG(T.K0),p.LFG(Dn),p.LFG(T.Ye),p.LFG(Eh),p.LFG(p.QbO,8))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})();const Mh={provide:new p.OlP("cdk-connected-overlay-scroll-strategy"),deps:[tr],useFactory:function tg(s){return()=>s.scrollStrategies.reposition()}};let Qo=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({providers:[tr,Mh],imports:[qo,ea,Ua,Ua]}),s})();class ng{}const Er="*";function oi(s,r){return{type:7,name:s,definitions:r,options:{}}}function yt(s,r=null){return{type:4,styles:r,timings:s}}function rg(s,r=null){return{type:3,steps:s,options:r}}function hl(s,r=null){return{type:2,steps:s,options:r}}function Oe(s){return{type:6,styles:s,offset:null}}function ht(s,r,e){return{type:0,name:s,styles:r,options:e}}function gt(s,r,e=null){return{type:1,expr:s,animation:r,options:e}}function Jo(s=null){return{type:9,options:s}}function sn(s,r,e=null){return{type:11,selector:s,animation:r,options:e}}function Ei(s){Promise.resolve(null).then(s)}class In{constructor(r=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=r+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(r=>r()),this._onDoneFns=[])}onStart(r){this._originalOnStartFns.push(r),this._onStartFns.push(r)}onDone(r){this._originalOnDoneFns.push(r),this._onDoneFns.push(r)}onDestroy(r){this._onDestroyFns.push(r)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Ei(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(r=>r()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(r=>r()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(r){this._position=this.totalTime?r*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(r){const e="start"==r?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class pl{constructor(r){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=r;let e=0,t=0,o=0;const l=this.players.length;0==l?Ei(()=>this._onFinish()):this.players.forEach(c=>{c.onDone(()=>{++e==l&&this._onFinish()}),c.onDestroy(()=>{++t==l&&this._onDestroy()}),c.onStart(()=>{++o==l&&this._onStart()})}),this.totalTime=this.players.reduce((c,n)=>Math.max(c,n.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(r=>r()),this._onDoneFns=[])}init(){this.players.forEach(r=>r.init())}onStart(r){this._onStartFns.push(r)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(r=>r()),this._onStartFns=[])}onDone(r){this._onDoneFns.push(r)}onDestroy(r){this._onDestroyFns.push(r)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(r=>r.play())}pause(){this.players.forEach(r=>r.pause())}restart(){this.players.forEach(r=>r.restart())}finish(){this._onFinish(),this.players.forEach(r=>r.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(r=>r.destroy()),this._onDestroyFns.forEach(r=>r()),this._onDestroyFns=[])}reset(){this.players.forEach(r=>r.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(r){const e=r*this.totalTime;this.players.forEach(t=>{const o=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(o)})}getPosition(){const r=this.players.reduce((e,t)=>null===e||t.totalTime>e.totalTime?t:e,null);return null!=r?r.getPosition():0}beforeDestroy(){this.players.forEach(r=>{r.beforeDestroy&&r.beforeDestroy()})}triggerCallback(r){const e="start"==r?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}const Dh=["connectionContainer"],Ko=["inputContainer"],Zo=["label"];function Xo(s,r){1&s&&(p.ynx(0),p.TgZ(1,"div",14),p._UZ(2,"div",15)(3,"div",16)(4,"div",17),p.qZA(),p.TgZ(5,"div",18),p._UZ(6,"div",15)(7,"div",16)(8,"div",17),p.qZA(),p.BQk())}function es(s,r){if(1&s){const e=p.EpF();p.TgZ(0,"div",19),p.NdJ("cdkObserveContent",function(){p.CHM(e);const o=p.oxw();return p.KtG(o.updateOutlineGap())}),p.Hsn(1,1),p.qZA()}if(2&s){const e=p.oxw();p.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)}}function ts(s,r){if(1&s&&(p.ynx(0),p.Hsn(1,2),p.TgZ(2,"span"),p._uU(3),p.qZA(),p.BQk()),2&s){const e=p.oxw(2);p.xp6(3),p.Oqu(e._control.placeholder)}}function is(s,r){1&s&&p.Hsn(0,3,["*ngSwitchCase","true"])}function ns(s,r){1&s&&(p.TgZ(0,"span",23),p._uU(1," *"),p.qZA())}function rs(s,r){if(1&s){const e=p.EpF();p.TgZ(0,"label",20,21),p.NdJ("cdkObserveContent",function(){p.CHM(e);const o=p.oxw();return p.KtG(o.updateOutlineGap())}),p.YNc(2,ts,4,1,"ng-container",12),p.YNc(3,is,1,0,"ng-content",12),p.YNc(4,ns,2,0,"span",22),p.qZA()}if(2&s){const e=p.oxw();p.ekj("mat-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-form-field-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-accent","accent"==e.color)("mat-warn","warn"==e.color),p.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),p.uIk("for",e._control.id)("aria-owns",e._control.id),p.xp6(2),p.Q6J("ngSwitchCase",!1),p.xp6(1),p.Q6J("ngSwitchCase",!0),p.xp6(1),p.Q6J("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function as(s,r){1&s&&(p.TgZ(0,"div",24),p.Hsn(1,4),p.qZA())}function ag(s,r){if(1&s&&(p.TgZ(0,"div",25),p._UZ(1,"span",26),p.qZA()),2&s){const e=p.oxw();p.xp6(1),p.ekj("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function og(s,r){if(1&s&&(p.TgZ(0,"div"),p.Hsn(1,5),p.qZA()),2&s){const e=p.oxw();p.Q6J("@transitionMessages",e._subscriptAnimationState)}}function sg(s,r){if(1&s&&(p.TgZ(0,"div",30),p._uU(1),p.qZA()),2&s){const e=p.oxw(2);p.Q6J("id",e._hintLabelId),p.xp6(1),p.Oqu(e.hintLabel)}}function lg(s,r){if(1&s&&(p.TgZ(0,"div",27),p.YNc(1,sg,2,2,"div",28),p.Hsn(2,6),p._UZ(3,"div",29),p.Hsn(4,7),p.qZA()),2&s){const e=p.oxw();p.Q6J("@transitionMessages",e._subscriptAnimationState),p.xp6(1),p.Q6J("ngIf",e.hintLabel)}}const cg=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],dg=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let ug=0;const Hh=new p.OlP("MatError");let Ph=(()=>{class s{constructor(e,t){this.id="mat-error-"+ug++,e||t.nativeElement.setAttribute("aria-live","polite")}}return s.\u0275fac=function(e){return new(e||s)(p.$8M("aria-live"),p.Y36(p.SBq))},s.\u0275dir=p.lG2({type:s,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(e,t){2&e&&p.uIk("id",t.id)},inputs:{id:"id"},features:[p._Bn([{provide:Hh,useExisting:s}])]}),s})();const _w={transitionMessages:oi("transitionMessages",[ht("enter",Oe({opacity:1,transform:"translateY(0%)"})),gt("void => enter",[Oe({opacity:0,transform:"translateY(-5px)"}),yt("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let id=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275dir=p.lG2({type:s}),s})();const Rh=new p.OlP("MatHint");let Ih=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275dir=p.lG2({type:s,selectors:[["mat-label"]]}),s})(),nd=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275dir=p.lG2({type:s,selectors:[["mat-placeholder"]]}),s})();const rd=new p.OlP("MatPrefix"),yw=new p.OlP("MatSuffix");let fl=0;const Oh=Fa(class{constructor(s){this._elementRef=s}},"primary"),fg=new p.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),ad=new p.OlP("MatFormField");let ml=(()=>{class s extends Oh{constructor(e,t,o,l,c,n,i){super(e),this._changeDetectorRef=t,this._dir=o,this._defaults=l,this._platform=c,this._ngZone=n,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new xe.x,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+fl++,this._labelId="mat-form-field-label-"+fl++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==i,this.appearance=l?.appearance||"legacy",l&&(this._hideRequiredMarker=Boolean(l.hideRequiredMarker),l.color&&(this.color=this.defaultColor=l.color))}get appearance(){return this._appearance}set appearance(e){const t=this._appearance;this._appearance=e||this._defaults?.appearance||"legacy","outline"===this._appearance&&t!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=ct(e)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(e){this._explicitFormFieldControl=e}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${e.controlType}`),e.stateChanges.pipe(vi(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(Rt(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Rt(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,er.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(vi(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(vi(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Rt(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(e){const t=this._control?this._control.ngControl:null;return t&&t[e]}_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,Yo(this._label.nativeElement,"transitionend").pipe((0,ri.q)(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 e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const t=this._hintChildren?this._hintChildren.find(l=>"start"===l.align):null,o=this._hintChildren?this._hintChildren.find(l=>"end"===l.align):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),o&&e.push(o.id)}else this._errorChildren&&e.push(...this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(e)}}_validateControlChild(){}updateOutlineGap(){const e=this._label?this._label.nativeElement:null,t=this._connectionContainerRef.nativeElement,o=".mat-form-field-outline-start",l=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!e||!e.children.length||!e.textContent.trim()){const d=t.querySelectorAll(`${o}, ${l}`);for(let u=0;u0?.75*H+10:0}for(let d=0;d{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[T.ez,Ae,el,Ae]}),s})();const mi={provide:new p.OlP("mat-select-scroll-strategy"),deps:[tr],useFactory:function Cg(s){return()=>s.scrollStrategies.reposition()}};let gl=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({providers:[mi],imports:[T.ez,Qo,zc,Ae,Pn,Sr,zc,Ae]}),s})();const ir={provide:new p.OlP("mat-tooltip-scroll-strategy"),deps:[tr],useFactory:function Nh(s){return()=>s.scrollStrategies.reposition({scrollThrottle:20})}};let os=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({providers:[ir],imports:[La,T.ez,Qo,Ae,Ae,Pn]}),s})(),sd=(()=>{class s{constructor(){this.changes=new xe.x,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(e,t,o)=>{if(0==o||0==t)return`0 of ${o}`;const l=e*t;return`${l+1} \u2013 ${l<(o=Math.max(o,0))?Math.min(l+t,o):l+t} of ${o}`}}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const vg={provide:sd,deps:[[new p.FiY,new p.tp0,sd]],useFactory:function Uw(s){return s||new sd}};let Ga=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({providers:[vg],imports:[T.ez,Ar,gl,os,Ae]}),s})();const nv={provide:new p.OlP("mat-menu-scroll-strategy"),deps:[tr],useFactory:function iv(s){return()=>s.scrollStrategies.reposition()}};let bl=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({providers:[nv],imports:[T.ez,Ae,gn,Qo,Pn,Ae]}),s})();var Tg=x(4742),Eg=x(1810);function ld(...s){const r=(0,_a.jO)(s),{args:e,keys:t}=(0,Tg.D)(s),o=new We.y(l=>{const{length:c}=e;if(!c)return void l.complete();const n=new Array(c);let i=c,a=c;for(let d=0;d{u||(u=!0,a--),n[d]=f},()=>i--,void 0,()=>{(!i||!u)&&(a||l.next(t?(0,Eg.n)(t,n):n),l.complete())}))}});return r?o.pipe((0,Gc.Z)(r)):o}var y=x(529);const Sg=["*"];let Cl;function qa(s){return function Uh(){if(void 0===Cl&&(Cl=null,typeof window<"u")){const s=window;void 0!==s.trustedTypes&&(Cl=s.trustedTypes.createPolicy("angular#components",{createHTML:r=>r}))}return Cl}()?.createHTML(s)||s}function ia(s){return Error(`Unable to find icon with the name "${s}"`)}function Mg(s){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${s}".`)}function Wa(s){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${s}".`)}class ss{constructor(r,e,t){this.url=r,this.svgText=e,this.options=t}}let $a=(()=>{class s{constructor(e,t,o,l){this._httpClient=e,this._sanitizer=t,this._errorHandler=l,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=o}addSvgIcon(e,t,o){return this.addSvgIconInNamespace("",e,t,o)}addSvgIconLiteral(e,t,o){return this.addSvgIconLiteralInNamespace("",e,t,o)}addSvgIconInNamespace(e,t,o,l){return this._addSvgIconConfig(e,t,new ss(o,null,l))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,t,o,l){const c=this._sanitizer.sanitize(p.q3G.HTML,o);if(!c)throw Wa(o);const n=qa(c);return this._addSvgIconConfig(e,t,new ss("",n,l))}addSvgIconSet(e,t){return this.addSvgIconSetInNamespace("",e,t)}addSvgIconSetLiteral(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}addSvgIconSetInNamespace(e,t,o){return this._addSvgIconSetConfig(e,new ss(t,null,o))}addSvgIconSetLiteralInNamespace(e,t,o){const l=this._sanitizer.sanitize(p.q3G.HTML,t);if(!l)throw Wa(t);const c=qa(l);return this._addSvgIconSetConfig(e,new ss("",c,o))}registerFontClassAlias(e,t=e){return this._fontCssClassesByAlias.set(e,t),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const t=this._sanitizer.sanitize(p.q3G.RESOURCE_URL,e);if(!t)throw Mg(e);const o=this._cachedIconsByUrl.get(t);return o?(0,Pe.of)(yl(o)):this._loadSvgIconFromConfig(new ss(e,null)).pipe((0,$t.b)(l=>this._cachedIconsByUrl.set(t,l)),(0,je.U)(l=>yl(l)))}getNamedSvgIcon(e,t=""){const o=lv(t,e);let l=this._svgIconConfigs.get(o);if(l)return this._getSvgFromConfig(l);if(l=this._getIconConfigFromResolvers(t,e),l)return this._svgIconConfigs.set(o,l),this._getSvgFromConfig(l);const c=this._iconSetConfigs.get(t);return c?this._getSvgFromIconSetConfigs(e,c):(0,bi._)(ia(o))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?(0,Pe.of)(yl(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe((0,je.U)(t=>yl(t)))}_getSvgFromIconSetConfigs(e,t){const o=this._extractIconWithNameFromAnySet(e,t);return o?(0,Pe.of)(o):ld(t.filter(c=>!c.svgText).map(c=>this._loadSvgIconSetFromConfig(c).pipe((0,Et.K)(n=>{const a=`Loading icon set URL: ${this._sanitizer.sanitize(p.q3G.RESOURCE_URL,c.url)} failed: ${n.message}`;return this._errorHandler.handleError(new Error(a)),(0,Pe.of)(null)})))).pipe((0,je.U)(()=>{const c=this._extractIconWithNameFromAnySet(e,t);if(!c)throw ia(e);return c}))}_extractIconWithNameFromAnySet(e,t){for(let o=t.length-1;o>=0;o--){const l=t[o];if(l.svgText&&l.svgText.toString().indexOf(e)>-1){const c=this._svgElementFromConfig(l),n=this._extractSvgIconFromSet(c,e,l.options);if(n)return n}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe((0,$t.b)(t=>e.svgText=t),(0,je.U)(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?(0,Pe.of)(null):this._fetchIcon(e).pipe((0,$t.b)(t=>e.svgText=t))}_extractSvgIconFromSet(e,t,o){const l=e.querySelector(`[id="${t}"]`);if(!l)return null;const c=l.cloneNode(!0);if(c.removeAttribute("id"),"svg"===c.nodeName.toLowerCase())return this._setSvgAttributes(c,o);if("symbol"===c.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(c),o);const n=this._svgElementFromString(qa(""));return n.appendChild(c),this._setSvgAttributes(n,o)}_svgElementFromString(e){const t=this._document.createElement("DIV");t.innerHTML=e;const o=t.querySelector("svg");if(!o)throw Error(" tag not found");return o}_toSvgElement(e){const t=this._svgElementFromString(qa("")),o=e.attributes;for(let l=0;lqa(a)),Ca(()=>this._inProgressUrlFetches.delete(c)),(0,Yc.B)());return this._inProgressUrlFetches.set(c,i),i}_addSvgIconConfig(e,t,o){return this._svgIconConfigs.set(lv(e,t),o),this}_addSvgIconSetConfig(e,t){const o=this._iconSetConfigs.get(e);return o?o.push(t):this._iconSetConfigs.set(e,[t]),this}_svgElementFromConfig(e){if(!e.svgElement){const t=this._svgElementFromString(e.svgText);this._setSvgAttributes(t,e.options),e.svgElement=t}return e.svgElement}_getIconConfigFromResolvers(e,t){for(let o=0;or?r.pathname+r.search:""}}}),Dg=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],cd=Dg.map(s=>`[${s}]`).join(", "),dd=/^url\(['"]?#(.*?)['"]?\)$/;let Ft=(()=>{class s extends cv{constructor(e,t,o,l,c,n){super(e),this._iconRegistry=t,this._location=l,this._errorHandler=c,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=qt.w0.EMPTY,n&&(n.color&&(this.color=this.defaultColor=n.color),n.fontSet&&(this.fontSet=n.fontSet)),o||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=ct(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const t=this._cleanupFontValue(e);t!==this._fontSet&&(this._fontSet=t,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const t=this._cleanupFontValue(e);t!==this._fontIcon&&(this._fontIcon=t,this._updateFontIconClasses())}_splitIconName(e){if(!e)return["",""];const t=e.split(":");switch(t.length){case 1:return["",t[0]];case 2:return t;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.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(e){this._clearSvgElement();const t=this._location.getPathname();this._previousPath=t,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(t),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let t=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();t--;){const o=e.childNodes[t];(1!==o.nodeType||"svg"===o.nodeName.toLowerCase())&&o.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,t=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(o=>o.length>0);this._previousFontSetClass.forEach(o=>e.classList.remove(o)),t.forEach(o=>e.classList.add(o)),this._previousFontSetClass=t,this.fontIcon!==this._previousFontIconClass&&!t.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return"string"==typeof e?e.trim().split(" ")[0]:e}_prependPathToReferences(e){const t=this._elementsWithExternalReferences;t&&t.forEach((o,l)=>{o.forEach(c=>{l.setAttribute(c.name,`url('${e}#${c.value}')`)})})}_cacheChildrenWithExternalReferences(e){const t=e.querySelectorAll(cd),o=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let l=0;l{const n=t[l],i=n.getAttribute(c),a=i?i.match(dd):null;if(a){let d=o.get(n);d||(d=[],o.set(n,d)),d.push({name:c,value:a[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[t,o]=this._splitIconName(e);t&&(this._svgNamespace=t),o&&(this._svgName=o),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(o,t).pipe((0,ri.q)(1)).subscribe(l=>this._setSvgElement(l),l=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${t}:${o}! ${l.message}`))})}}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(p.SBq),p.Y36($a),p.$8M("aria-hidden"),p.Y36(uv),p.Y36(p.qLn),p.Y36(dv,8))},s.\u0275cmp=p.Xpm({type:s,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,t){2&e&&(p.uIk("data-mat-icon-type",t._usingFontIcon()?"font":"svg")("data-mat-icon-name",t._svgName||t.fontIcon)("data-mat-icon-namespace",t._svgNamespace||t.fontSet),p.ekj("mat-icon-inline",t.inline)("mat-icon-no-color","primary"!==t.color&&"accent"!==t.color&&"warn"!==t.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[p.qOj],ngContentSelectors:Sg,decls:1,vars:0,template:function(e,t){1&e&&(p.F$t(),p.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[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}"],encapsulation:2,changeDetection:0}),s})(),na=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[Ae,Ae]}),s})();class cs{}let Gh=(()=>{class s extends cs{getTranslation(e){return(0,Pe.of)({})}}return s.\u0275fac=function(){let r;return function(t){return(r||(r=p.n5z(s)))(t||s)}}(),s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})();class qh{}let Wh=(()=>{class s{handle(e){return e.key}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})();function wl(s,r){if(s===r)return!0;if(null===s||null===r)return!1;if(s!=s&&r!=r)return!0;let o,l,c,e=typeof s;if(e==typeof r&&"object"==e){if(!Array.isArray(s)){if(Array.isArray(r))return!1;for(l in c=Object.create(null),s){if(!wl(s[l],r[l]))return!1;c[l]=!0}for(l in r)if(!(l in c)&&typeof r[l]<"u")return!1;return!0}if(!Array.isArray(r))return!1;if((o=s.length)==r.length){for(l=0;l{ud(r[t])?t in s?e[t]=Hg(s[t],r[t]):Object.assign(e,{[t]:r[t]}):Object.assign(e,{[t]:r[t]})}),e}class hd{}let Pg=(()=>{class s extends hd{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(e,t){let o;return o="string"==typeof e?this.interpolateString(e,t):"function"==typeof e?this.interpolateFunction(e,t):e,o}getValue(e,t){let o="string"==typeof t?t.split("."):[t];t="";do{t+=o.shift(),!Dr(e)||!Dr(e[t])||"object"!=typeof e[t]&&o.length?o.length?t+=".":e=void 0:(e=e[t],t="")}while(o.length);return e}interpolateFunction(e,t){return e(t)}interpolateString(e,t){return t?e.replace(this.templateMatcher,(o,l)=>{let c=this.getValue(t,l);return Dr(c)?c:o}):e}}return s.\u0275fac=function(){let r;return function(t){return(r||(r=p.n5z(s)))(t||s)}}(),s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})();class ra{}let Rg=(()=>{class s extends ra{compile(e,t){return e}compileTranslations(e,t){return e}}return s.\u0275fac=function(){let r;return function(t){return(r||(r=p.n5z(s)))(t||s)}}(),s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})();class Ig{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new p.vpe,this.onLangChange=new p.vpe,this.onDefaultLangChange=new p.vpe}}const $h=new p.OlP("USE_STORE"),ds=new p.OlP("USE_DEFAULT_LANG"),pd=new p.OlP("DEFAULT_LANGUAGE"),fd=new p.OlP("USE_EXTEND");let aa=(()=>{class s{constructor(e,t,o,l,c,n=!0,i=!1,a=!1,d){this.store=e,this.currentLoader=t,this.compiler=o,this.parser=l,this.missingTranslationHandler=c,this.useDefaultLang=n,this.isolate=i,this.extend=a,this.pending=!1,this._onTranslationChange=new p.vpe,this._onLangChange=new p.vpe,this._onDefaultLangChange=new p.vpe,this._langs=[],this._translations={},this._translationRequests={},d&&this.setDefaultLang(d)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(e){this.isolate?this._currentLang=e:this.store.currentLang=e}get langs(){return this.isolate?this._langs:this.store.langs}set langs(e){this.isolate?this._langs=e:this.store.langs=e}get translations(){return this.isolate?this._translations:this.store.translations}set translations(e){this.isolate?this._translations=e:this.store.translations=e}setDefaultLang(e){if(e===this.defaultLang)return;let t=this.retrieveTranslations(e);typeof t<"u"?(null==this.defaultLang&&(this.defaultLang=e),t.pipe((0,ri.q)(1)).subscribe(o=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(e===this.currentLang)return(0,Pe.of)(this.translations[e]);let t=this.retrieveTranslations(e);return typeof t<"u"?(this.currentLang||(this.currentLang=e),t.pipe((0,ri.q)(1)).subscribe(o=>{this.changeLang(e)}),t):(this.changeLang(e),(0,Pe.of)(this.translations[e]))}retrieveTranslations(e){let t;return(typeof this.translations[e]>"u"||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),t=this._translationRequests[e]),t}getTranslation(e){this.pending=!0;const t=this.currentLoader.getTranslation(e).pipe(uh(1),(0,ri.q)(1));return this.loadingTranslations=t.pipe((0,je.U)(o=>this.compiler.compileTranslations(o,e)),uh(1),(0,ri.q)(1)),this.loadingTranslations.subscribe({next:o=>{this.translations[e]=this.extend&&this.translations[e]?{...o,...this.translations[e]}:o,this.updateLangs(),this.pending=!1},error:o=>{this.pending=!1}}),t}setTranslation(e,t,o=!1){t=this.compiler.compileTranslations(t,e),this.translations[e]=(o||this.extend)&&this.translations[e]?Hg(this.translations[e],t):t,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return this.langs}addLangs(e){e.forEach(t=>{-1===this.langs.indexOf(t)&&this.langs.push(t)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(e,t,o){let l;if(t instanceof Array){let c={},n=!1;for(let i of t)c[i]=this.getParsedResult(e,i,o),on(c[i])&&(n=!0);return n?ld(t.map(a=>on(c[a])?c[a]:(0,Pe.of)(c[a]))).pipe((0,je.U)(a=>{let d={};return a.forEach((u,f)=>{d[t[f]]=u}),d})):c}if(e&&(l=this.parser.interpolate(this.parser.getValue(e,t),o)),typeof l>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(l=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],t),o)),typeof l>"u"){let c={key:t,translateService:this};typeof o<"u"&&(c.interpolateParams=o),l=this.missingTranslationHandler.handle(c)}return typeof l<"u"?l:t}get(e,t){if(!Dr(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,kt.b)(o=>on(o=this.getParsedResult(o,e,t))?o:(0,Pe.of)(o)));{let o=this.getParsedResult(this.translations[this.currentLang],e,t);return on(o)?o:(0,Pe.of)(o)}}getStreamOnTranslationChange(e,t){if(!Dr(e)||!e.length)throw new Error('Parameter "key" required');return(0,Li.z)(nn(()=>this.get(e,t)),this.onTranslationChange.pipe((0,Ri.w)(o=>{const l=this.getParsedResult(o.translations,e,t);return"function"==typeof l.subscribe?l:(0,Pe.of)(l)})))}stream(e,t){if(!Dr(e)||!e.length)throw new Error('Parameter "key" required');return(0,Li.z)(nn(()=>this.get(e,t)),this.onLangChange.pipe((0,Ri.w)(o=>{const l=this.getParsedResult(o.translations,e,t);return on(l)?l:(0,Pe.of)(l)})))}instant(e,t){if(!Dr(e)||!e.length)throw new Error('Parameter "key" required');let o=this.getParsedResult(this.translations[this.currentLang],e,t);if(on(o)){if(e instanceof Array){let l={};return e.forEach((c,n)=>{l[e[n]]=e[n]}),l}return e}return o}set(e,t,o=this.currentLang){this.translations[o][e]=this.compiler.compile(t,o),this.updateLangs(),this.onTranslationChange.emit({lang:o,translations:this.translations[o]})}changeLang(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),null==this.defaultLang&&this.changeDefaultLang(e)}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return this.resetLang(e),this.getTranslation(e)}resetLang(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof e>"u"?void 0:(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,e}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(Ig),p.LFG(cs),p.LFG(ra),p.LFG(hd),p.LFG(qh),p.LFG(ds),p.LFG($h),p.LFG(fd),p.LFG(pd))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})(),Si=(()=>{class s{constructor(e,t){this.translate=e,this._ref=t,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(e,t,o){let l=c=>{this.value=void 0!==c?c:e,this.lastKey=e,this._ref.markForCheck()};if(o){let c=this.translate.getParsedResult(o,e,t);on(c.subscribe)?c.subscribe(l):l(c)}this.translate.get(e,t).subscribe(l)}transform(e,...t){if(!e||!e.length)return e;if(wl(e,this.lastKey)&&wl(t,this.lastParams))return this.value;let o;if(Dr(t[0])&&t.length)if("string"==typeof t[0]&&t[0].length){let l=t[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{o=JSON.parse(l)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${t[0]}`)}}else"object"==typeof t[0]&&!Array.isArray(t[0])&&(o=t[0]);return this.lastKey=e,this.lastParams=t,this.updateValue(e,o),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(l=>{this.lastKey&&l.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,o,l.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(l=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,o,l.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,o))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(aa,16),p.Y36(p.sBO,16))},s.\u0275pipe=p.Yjl({name:"translate",type:s,pure:!1}),s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})(),ar=(()=>{class s{static forRoot(e={}){return{ngModule:s,providers:[e.loader||{provide:cs,useClass:Gh},e.compiler||{provide:ra,useClass:Rg},e.parser||{provide:hd,useClass:Pg},e.missingTranslationHandler||{provide:qh,useClass:Wh},Ig,{provide:$h,useValue:e.isolate},{provide:ds,useValue:e.useDefaultLang},{provide:fd,useValue:e.extend},{provide:pd,useValue:e.defaultLanguage},aa]}}static forChild(e={}){return{ngModule:s,providers:[e.loader||{provide:cs,useClass:Gh},e.compiler||{provide:ra,useClass:Rg},e.parser||{provide:hd,useClass:Pg},e.missingTranslationHandler||{provide:qh,useClass:Wh},{provide:$h,useValue:e.isolate},{provide:ds,useValue:e.useDefaultLang},{provide:fd,useValue:e.extend},{provide:pd,useValue:e.defaultLanguage},aa]}}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({}),s})(),kg=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[Ga,bl,na,Ar,ar,T.ez]}),s})();var hv=x(5861);function pv(s,r){}class vl{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0}}let Yh=(()=>{class s extends wh{constructor(e,t,o,l,c,n,i,a){super(),this._elementRef=e,this._focusTrapFactory=t,this._config=l,this._interactivityChecker=c,this._ngZone=n,this._overlayRef=i,this._focusMonitor=a,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=d=>{this._portalOutlet.hasAttached();const u=this._portalOutlet.attachDomPortal(d);return this._contentAttached(),u},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=o}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();const t=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),t}attachTemplatePortal(e){this._portalOutlet.hasAttached();const t=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),t}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const o=()=>{e.removeEventListener("blur",o),e.removeEventListener("mousedown",o),e.removeAttribute("tabindex")};e.addEventListener("blur",o),e.addEventListener("mousedown",o)})),e.focus(t)}_focusByCssSelector(e,t){let o=this._elementRef.nativeElement.querySelector(e);o&&this._forceFocus(o,t)}_trapFocus(){const e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(t=>{t||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const e=this._config.restoreFocus;let t=null;if("string"==typeof e?t=this._document.querySelector(e):"boolean"==typeof e?t=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(t=e),this._config.restoreFocus&&t&&"function"==typeof t.focus){const o=xc(),l=this._elementRef.nativeElement;(!o||o===this._document.body||o===l||l.contains(o))&&(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,t=xc();return e===t||e.contains(t)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=xc())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(p.SBq),p.Y36(Uu),p.Y36(T.K0,8),p.Y36(vl),p.Y36(tl),p.Y36(p.R0b),p.Y36(ta),p.Y36(pn))},s.\u0275cmp=p.Xpm({type:s,selectors:[["cdk-dialog-container"]],viewQuery:function(e,t){if(1&e&&p.Gf(Kc,7),2&e){let o;p.iGM(o=p.CRH())&&(t._portalOutlet=o.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(e,t){2&e&&p.uIk("id",t._config.id||null)("role",t._config.role)("aria-modal",t._config.ariaModal)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null)},features:[p.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&p.YNc(0,pv,0,0,"ng-template",0)},dependencies:[Kc],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),s})();class Qh{constructor(r,e){this.overlayRef=r,this.config=e,this.closed=new xe.x,this.disableClose=e.disableClose,this.backdropClick=r.backdropClick(),this.keydownEvents=r.keydownEvents(),this.outsidePointerEvents=r.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(t=>{27===t.keyCode&&!this.disableClose&&!vr(t)&&(t.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(r,e){if(this.containerInstance){const t=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this.overlayRef.dispose(),t.next(r),t.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(r="",e=""){return this.overlayRef.updateSize({width:r,height:e}),this}addPanelClass(r){return this.overlayRef.addPanelClass(r),this}removePanelClass(r){return this.overlayRef.removePanelClass(r),this}}const Jh=new p.OlP("DialogScrollStrategy"),mv=new p.OlP("DialogData"),gv=new p.OlP("DefaultDialogConfig"),cE={provide:Jh,deps:[tr],useFactory:function lE(s){return()=>s.scrollStrategies.block()}};let dE=0,_v=(()=>{class s{constructor(e,t,o,l,c,n){this._overlay=e,this._injector=t,this._defaultOptions=o,this._parentDialog=l,this._overlayContainer=c,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new xe.x,this._afterOpenedAtThisLevel=new xe.x,this._ariaHiddenElements=new Map,this.afterAllClosed=nn(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(vi(void 0))),this._scrollStrategy=n}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}open(e,t){(t={...this._defaultOptions||new vl,...t}).id=t.id||"cdk-dialog-"+dE++,t.id&&this.getDialogById(t.id);const l=this._getOverlayConfig(t),c=this._overlay.create(l),n=new Qh(c,t),i=this._attachContainer(c,n,t);return n.containerInstance=i,this._attachDialogContent(e,n,i,t),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(n),n.closed.subscribe(()=>this._removeOpenDialog(n,!0)),this.afterOpened.next(n),n}closeAll(){md(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){md(this._openDialogsAtThisLevel,e=>{!1===e.config.closeOnDestroy&&this._removeOpenDialog(e,!1)}),md(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){const t=new cw({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}_attachContainer(e,t,o){const l=o.injector??o.viewContainerRef?.injector,c=[{provide:vl,useValue:o},{provide:Qh,useValue:t},{provide:ta,useValue:e}];let n;o.container?"function"==typeof o.container?n=o.container:(n=o.container.type,c.push(...o.container.providers(o))):n=Yh;const i=new Ch(n,o.viewContainerRef,p.zs3.create({parent:l||this._injector,providers:c}),o.componentFactoryResolver);return e.attach(i).instance}_attachDialogContent(e,t,o,l){const c=this._createInjector(l,t,o);if(e instanceof p.Rgc){let n={$implicit:l.data,dialogRef:t};l.templateContext&&(n={...n,..."function"==typeof l.templateContext?l.templateContext():l.templateContext}),o.attachTemplatePortal(new yh(e,null,n,c))}else{const n=o.attachComponentPortal(new Ch(e,l.viewContainerRef,c,l.componentFactoryResolver));t.componentInstance=n.instance}}_createInjector(e,t,o){const l=e&&e.viewContainerRef&&e.viewContainerRef.injector,c=[{provide:mv,useValue:e.data},{provide:Qh,useValue:t}];return e.providers&&("function"==typeof e.providers?c.push(...e.providers(t,e,o)):c.push(...e.providers)),e.direction&&(!l||!l.get(Dn,null,p.XFs.Optional))&&c.push({provide:Dn,useValue:{value:e.direction,change:(0,Pe.of)()}}),p.zs3.create({parent:e.injector||l||this._injector,providers:c})}_removeOpenDialog(e,t){const o=this.openDialogs.indexOf(e);o>-1&&(this.openDialogs.splice(o,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((l,c)=>{l?c.setAttribute("aria-hidden",l):c.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),t&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const t=e.parentElement.children;for(let o=t.length-1;o>-1;o--){const l=t[o];l!==e&&"SCRIPT"!==l.nodeName&&"STYLE"!==l.nodeName&&!l.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(l,l.getAttribute("aria-hidden")),l.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(tr),p.LFG(p.zs3),p.LFG(gv,8),p.LFG(s,12),p.LFG(bn),p.LFG(Jh))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})();function md(s,r){let e=s.length;for(;e--;)r(s[e])}let gd=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({providers:[_v,cE],imports:[Qo,ea,La,ea]}),s})();function bv(s,r){}const us={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},Bg={dialogContainer:oi("dialogContainer",[ht("void, exit",Oe({opacity:0,transform:"scale(0.7)"})),ht("enter",Oe({transform:"none"})),gt("* => enter",rg([yt("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",Oe({transform:"none",opacity:1})),sn("@*",Jo(),{optional:!0})]),us),gt("* => void, * => exit",rg([yt("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",Oe({opacity:0})),sn("@*",Jo(),{optional:!0})]),us)])};class Hr{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="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0,this.enterAnimationDuration=us.params.enterAnimationDuration,this.exitAnimationDuration=us.params.exitAnimationDuration}}let Cv=(()=>{class s extends Yh{constructor(e,t,o,l,c,n,i,a){super(e,t,o,l,c,n,i,a),this._animationStateChanged=new p.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(p.SBq),p.Y36(Uu),p.Y36(T.K0,8),p.Y36(Hr),p.Y36(tl),p.Y36(p.R0b),p.Y36(ta),p.Y36(pn))},s.\u0275cmp=p.Xpm({type:s,selectors:[["ng-component"]],features:[p.qOj],decls:0,vars:0,template:function(e,t){},encapsulation:2}),s})(),yv=(()=>{class s extends Cv{constructor(e,t,o,l,c,n,i,a,d){super(e,t,o,l,c,n,i,d),this._changeDetectorRef=a,this._state="enter"}_onAnimationDone({toState:e,totalTime:t}){"enter"===e?this._openAnimationDone(t):"exit"===e&&this._animationStateChanged.next({state:"closed",totalTime:t})}_onAnimationStart({toState:e,totalTime:t}){"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:t}):("exit"===e||"void"===e)&&this._animationStateChanged.next({state:"closing",totalTime:t})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||us.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||us.params.exitAnimationDuration}}}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(p.SBq),p.Y36(Uu),p.Y36(T.K0,8),p.Y36(Hr),p.Y36(tl),p.Y36(p.R0b),p.Y36(ta),p.Y36(p.sBO),p.Y36(pn))},s.\u0275cmp=p.Xpm({type:s,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(e,t){1&e&&p.WFA("@dialogContainer.start",function(l){return t._onAnimationStart(l)})("@dialogContainer.done",function(l){return t._onAnimationDone(l)}),2&e&&(p.Ikx("id",t._config.id),p.uIk("aria-modal",t._config.ariaModal)("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),p.d8E("@dialogContainer",t._getAnimationState()))},features:[p.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&p.YNc(0,bv,0,0,"ng-template",0)},dependencies:[Kc],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.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.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}"],encapsulation:2,data:{animation:[Bg.dialogContainer]}}),s})();class kn{constructor(r,e,t){this._ref=r,this._containerInstance=t,this._afterOpened=new xe.x,this._beforeClosed=new xe.x,this._state=0,this.disableClose=e.disableClose,this.id=r.id,t._animationStateChanged.pipe((0,Wt.h)(o=>"opened"===o.state),(0,ri.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),t._animationStateChanged.pipe((0,Wt.h)(o=>"closed"===o.state),(0,ri.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),r.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,er.T)(this.backdropClick(),this.keydownEvents().pipe((0,Wt.h)(o=>27===o.keyCode&&!this.disableClose&&!vr(o)))).subscribe(o=>{this.disableClose||(o.preventDefault(),function wv(s,r,e){s._closeInteractionType=r,s.close(e)}(this,"keydown"===o.type?"keyboard":"mouse"))})}close(r){this._result=r,this._containerInstance._animationStateChanged.pipe((0,Wt.h)(e=>"closing"===e.state),(0,ri.q)(1)).subscribe(e=>{this._beforeClosed.next(r),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(r){let e=this._ref.config.positionStrategy;return r&&(r.left||r.right)?r.left?e.left(r.left):e.right(r.right):e.centerHorizontally(),r&&(r.top||r.bottom)?r.top?e.top(r.top):e.bottom(r.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(r="",e=""){return this._ref.updateSize(r,e),this}addPanelClass(r){return this._ref.addPanelClass(r),this}removePanelClass(r){return this._ref.removePanelClass(r),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}const hs=new p.OlP("MatDialogData"),Vg=new p.OlP("mat-dialog-default-options"),Og=new p.OlP("mat-dialog-scroll-strategy"),vv={provide:Og,deps:[tr],useFactory:function ps(s){return()=>s.scrollStrategies.block()}};let Lg=0,Av=(()=>{class s{constructor(e,t,o,l,c,n,i,a,d,u){this._overlay=e,this._defaultOptions=o,this._parentDialog=l,this._dialogRefConstructor=i,this._dialogContainerType=a,this._dialogDataToken=d,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new xe.x,this._afterOpenedAtThisLevel=new xe.x,this._idPrefix="mat-dialog-",this.afterAllClosed=nn(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(vi(void 0))),this._scrollStrategy=n,this._dialog=t.get(_v)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(e,t){let o;(t={...this._defaultOptions||new Hr,...t}).id=t.id||`${this._idPrefix}${Lg++}`,t.scrollStrategy=t.scrollStrategy||this._scrollStrategy();const l=this._dialog.open(e,{...t,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:Hr,useValue:t},{provide:vl,useValue:t}]},templateContext:()=>({dialogRef:o}),providers:(c,n,i)=>(o=new this._dialogRefConstructor(c,t,i),o.updatePosition(t?.position),[{provide:this._dialogContainerType,useValue:i},{provide:this._dialogDataToken,useValue:n.data},{provide:this._dialogRefConstructor,useValue:o}])});return o.componentInstance=l.componentInstance,this.openDialogs.push(o),this.afterOpened.next(o),o.afterClosed().subscribe(()=>{const c=this.openDialogs.indexOf(o);c>-1&&(this.openDialogs.splice(c,1),this.openDialogs.length||this._getAfterAllClosed().next())}),o}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let t=e.length;for(;t--;)e[t].close()}}return s.\u0275fac=function(e){p.$Z()},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})(),or=(()=>{class s extends Av{constructor(e,t,o,l,c,n,i,a){super(e,t,l,n,i,c,kn,yv,hs,a)}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(tr),p.LFG(p.zs3),p.LFG(T.Ye,8),p.LFG(Vg,8),p.LFG(Og),p.LFG(s,12),p.LFG(bn),p.LFG(p.QbO,8))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})(),xv=0,oa=(()=>{class s{constructor(e,t,o){this._dialogRef=e,this._elementRef=t,this._dialog=o,this.id="mat-dialog-title-"+xv++}ngOnInit(){this._dialogRef||(this._dialogRef=function Fg(s,r){let e=s.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-dialog-container");)e=e.parentElement;return e?r.find(t=>t.id===e.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const e=this._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=this.id)})}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(kn,8),p.Y36(p.SBq),p.Y36(or))},s.\u0275dir=p.lG2({type:s,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,t){2&e&&p.Ikx("id",t.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),s})(),sr=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275dir=p.lG2({type:s,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),s})(),sa=(()=>{class s{constructor(){this.align="start"}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275dir=p.lG2({type:s,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(e,t){2&e&&p.ekj("mat-dialog-actions-align-center","center"===t.align)("mat-dialog-actions-align-end","end"===t.align)},inputs:{align:"align"}}),s})(),Al=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({providers:[or,vv],imports:[gd,Qo,ea,Ae,Ae]}),s})();function _d(){return(_d=(0,hv.Z)(function*(s,r){yield jg(s),r()})).apply(this,arguments)}function jg(s){return new Promise(r=>setTimeout(r,s))}function lr(){const s=new Hr;return s.disableClose=!0,s.autoFocus=!1,s}function bd(s,r){const e=r.split("&");for(const t of e){const[o,l]=t.split("=");if(o.includes(s))return l}return""}x(4327),new Intl.Collator("cs",{numeric:!0});class ei{encodeKey(r){return encodeURIComponent(r)}encodeValue(r){return encodeURIComponent(r)}decodeKey(r){return decodeURIComponent(r)}decodeValue(r){return decodeURIComponent(r)}}const Qt=new p.OlP("basePath");class tt{constructor(r={}){this.apiKeys=r.apiKeys,this.username=r.username,this.password=r.password,this.accessToken=r.accessToken,this.basePath=r.basePath,this.withCredentials=r.withCredentials,this.encoder=r.encoder,this.credentials=r.credentials?r.credentials:{},this.credentials.BasicAuth||(this.credentials.BasicAuth=()=>this.username||this.password?btoa(this.username+":"+this.password):void 0),this.credentials.BearerAuth||(this.credentials.BearerAuth=()=>"function"==typeof this.accessToken?this.accessToken():this.accessToken)}selectHeaderContentType(r){if(0===r.length)return;const e=r.find(t=>this.isJsonMime(t));return void 0===e?r[0]:e}selectHeaderAccept(r){if(0===r.length)return;const e=r.find(t=>this.isJsonMime(t));return void 0===e?r[0]:e}isJsonMime(r){const e=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==r&&(e.test(r)||"application/json-patch+json"===r.toLowerCase())}lookupCredential(r){const e=this.credentials[r];return"function"==typeof e?e():e}}let Kg=(()=>{class s{constructor(e,t,o){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new tt,o&&(this.configuration=o),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new ei}addToHttpParams(e,t,o){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,o):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,o){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,o));else if(t instanceof Date){if(null==o)throw Error("key may not be null if value is Date");e=e.append(o,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=o?`${o}.${l}`:l));else{if(null==o)throw Error("key may not be null if value is not object or array");e=e.append(o,t)}return e}convertAttributeToNonunique(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToNonunique.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeDefinition"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToNonunique`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}convertAttributeToUnique(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToUnique.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeDefinition"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToUnique`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}createAttributeDefinition(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputCreateAttributeDefinition was null or undefined when calling createAttributeDefinition.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/createAttribute`,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}deleteAttributeDefinition(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter attribute was null or undefined when calling deleteAttributeDefinition.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attribute"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttribute`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}deleteAttributeDefinitions(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter attributes was null or undefined when calling deleteAttributeDefinitions.");let c=new y.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"attributes[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttributes`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getAllAttributeDefinitions(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributesDefinition`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAttribute(e,t,o,l,c,n,i,a,d,u,f,b="body",H=!1,z){let ae=new y.LE({encoder:this.encoder});null!=e&&(ae=this.addToHttpParams(ae,e,"attributeName")),null!=t&&(ae=this.addToHttpParams(ae,t,"attributeId")),null!=o&&(ae=this.addToHttpParams(ae,o,"facility")),null!=l&&(ae=this.addToHttpParams(ae,l,"user")),null!=c&&(ae=this.addToHttpParams(ae,c,"vo")),null!=n&&(ae=this.addToHttpParams(ae,n,"resource")),null!=i&&(ae=this.addToHttpParams(ae,i,"member")),null!=a&&(ae=this.addToHttpParams(ae,a,"group")),null!=d&&(ae=this.addToHttpParams(ae,d,"host")),null!=u&&(ae=this.addToHttpParams(ae,u,"userExtSource")),null!=f&&(ae=this.addToHttpParams(ae,f,"key"));let ot,Be=this.defaultHeaders;ot=this.configuration.lookupCredential("BasicAuth"),ot&&(Be=Be.set("Authorization","Basic "+ot)),ot=this.configuration.lookupCredential("BearerAuth"),ot&&(Be=Be.set("Authorization","Bearer "+ot));let _t=z&&z.httpHeaderAccept;void 0===_t&&(_t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==_t&&(Be=Be.set("Accept",_t));let Ut=z&&z.context;void 0===Ut&&(Ut=new y.qT);let kr="json";return _t&&(kr=_t.startsWith("text")?"text":this.configuration.isJsonMime(_t)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/any`,{context:Ut,params:ae,responseType:kr,withCredentials:this.configuration.withCredentials,headers:Be,observe:b,reportProgress:H})}getAttributeDefinitionById(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getAttributeDefinitionById.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinitionById`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getAttributeDefinitionByName(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getAttributeDefinitionByName.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeName"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinition`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getAttributeDefinitionsByNamespace(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter namespace was null or undefined when calling getAttributeDefinitionsByNamespace.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"namespace"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributesDefinitionByNamespace`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getAttributeModulesDependenciesForAttributeGraphText(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");if(null==t)throw new Error("Required parameter attrName was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"format")),null!=t&&(n=this.addToHttpParams(n,t,"attrName"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText/for-attribute`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getAttributeModulesDependenciesGraphText(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesGraphText.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"format"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getAttributePolicyCollections(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getAttributePolicyCollections.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeId"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributePolicyCollections`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getAttributeRights(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getAttributeRights.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeId"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeRights`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getAttributeRules(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling getAttributeRules.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeDefinition"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeRules`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getAttributesDefinitionWithRights(e,t,o,l,c,n,i,a,d="body",u=!1,f){let b=new y.LE({encoder:this.encoder});null!=e&&(b=this.addToHttpParams(b,e,"member")),null!=t&&(b=this.addToHttpParams(b,t,"user")),null!=o&&(b=this.addToHttpParams(b,o,"vo")),null!=l&&(b=this.addToHttpParams(b,l,"group")),null!=c&&(b=this.addToHttpParams(b,c,"resource")),null!=n&&(b=this.addToHttpParams(b,n,"facility")),null!=i&&(b=this.addToHttpParams(b,i,"host")),null!=a&&(b=this.addToHttpParams(b,a,"userExtSource"));let z,H=this.defaultHeaders;z=this.configuration.lookupCredential("BasicAuth"),z&&(H=H.set("Authorization","Basic "+z)),z=this.configuration.lookupCredential("BearerAuth"),z&&(H=H.set("Authorization","Bearer "+z));let ae=f&&f.httpHeaderAccept;void 0===ae&&(ae=this.configuration.selectHeaderAccept(["application/json"])),void 0!==ae&&(H=H.set("Accept",ae));let Be=f&&f.context;void 0===Be&&(Be=new y.qT);let ot="json";return ae&&(ot=ae.startsWith("text")?"text":this.configuration.isJsonMime(ae)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/attributesManager/getAttributesDefinitionWithRights`,{context:Be,params:b,responseType:ot,withCredentials:this.configuration.withCredentials,headers:H,observe:d,reportProgress:u})}getEntitylessAttributeByName(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getEntitylessAttributeByName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"key")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-entityless`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getEntitylessAttributesByKey(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributesByKey.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"key"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/key`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getEntitylessAttributesByName(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesByName.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attrName"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributes`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getEntitylessAttributesWithKeys(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesWithKeys.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"attrName")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"keys[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributesWithKeys`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getEntitylessKeys(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling getEntitylessKeys.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeDefinition"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessKeys`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getFacilityAttributeById(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getFacilityAttributeById.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-facility`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getFacilityAttributeByName(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getFacilityAttributeByName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-facility`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getFacilityAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributes.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"facility"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getFacilityAttributesByNames(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getFacilityAttributesByNames.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrNames[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-names`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getFacilityResourceUserMemberAttributes(e,t,o,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==o)throw new Error("Required parameter user was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==l)throw new Error("Required parameter member was null or undefined when calling getFacilityResourceUserMemberAttributes.");let a=new y.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"facility")),null!=t&&(a=this.addToHttpParams(a,t,"resource")),null!=o&&(a=this.addToHttpParams(a,o,"user")),null!=l&&(a=this.addToHttpParams(a,l,"member"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let H="json";return f&&(H=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-r-u-m`,{context:b,params:a,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}getFacilityUserAttributes(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityUserAttributes.");if(null==t)throw new Error("Required parameter user was null or undefined when calling getFacilityUserAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),null!=t&&(n=this.addToHttpParams(n,t,"user"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-u`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getGroupAttributeById(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getGroupAttributeById.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getGroupAttributeByName(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getGroupAttributeByName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getGroupAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributes.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/g`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getGroupAttributesByNames(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getGroupAttributesByNames.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrNames[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/g-names`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getGroupResourceAttributeById(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeById.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeById.");if(null==o)throw new Error("Required parameter attributeId was null or undefined when calling getGroupResourceAttributeById.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"group")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=o&&(i=this.addToHttpParams(i,o,"attributeId"));let d,a=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(a=a.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(a=a.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group-resource`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:a,observe:l,reportProgress:c})}getGroupResourceAttributeByName(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeByName.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeByName.");if(null==o)throw new Error("Required parameter attributeName was null or undefined when calling getGroupResourceAttributeByName.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"group")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=o&&(i=this.addToHttpParams(i,o,"attributeName"));let d,a=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(a=a.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(a=a.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group-resource`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:a,observe:l,reportProgress:c})}getGroupResourceAttributes(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/group-resource`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getHostAttributeById(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getHostAttributeById.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-host`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getHostAttributeByName(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getHostAttributeByName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-host`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getHostAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributes.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"host"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/h`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getHostAttributesByNames(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getHostAttributesByNames.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrNames[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/h-names`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getLogins(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getLogins.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getLogins`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getMemberAndUserAttributes(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributes.");if(null==t)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"workWithUserAttributes"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-wu`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getMemberAndUserAttributesByNames(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==o)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributesByNames.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),t&&t.forEach(H=>{i=this.addToHttpParams(i,H,"attrNames[]")}),null!=o&&(i=this.addToHttpParams(i,o,"workWithUserAttributes"));let d,a=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(a=a.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(a=a.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names-wu`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:a,observe:l,reportProgress:c})}getMemberAttributeById(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getMemberAttributeById.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getMemberAttributeByName(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getMemberAttributeByName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getMemberAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributes.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getMemberAttributesByNames(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAttributesByNames.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrNames[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getMemberGroupAndUserAttributesByNames(e,t,o,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==o)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==l)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberGroupAndUserAttributesByNames.");let a=new y.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"member")),null!=t&&(a=this.addToHttpParams(a,t,"group")),o&&o.forEach(z=>{a=this.addToHttpParams(a,z,"attrNames[]")}),null!=l&&(a=this.addToHttpParams(a,l,"workWithUserAttributes"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let H="json";return f&&(H=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names-wu`,{context:b,params:a,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}getMemberGroupAttributeById(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeById.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeById.");if(null==o)throw new Error("Required parameter attributeId was null or undefined when calling getMemberGroupAttributeById.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),null!=o&&(i=this.addToHttpParams(i,o,"attributeId"));let d,a=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(a=a.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(a=a.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-group`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:a,observe:l,reportProgress:c})}getMemberGroupAttributeByName(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeByName.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeByName.");if(null==o)throw new Error("Required parameter attributeName was null or undefined when calling getMemberGroupAttributeByName.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),null!=o&&(i=this.addToHttpParams(i,o,"attributeName"));let d,a=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(a=a.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(a=a.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-group`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:a,observe:l,reportProgress:c})}getMemberGroupAttributes(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"group"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getMemberGroupAttributesByNames(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributesByNames.");if(null==o)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAttributesByNames.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),o&&o.forEach(H=>{i=this.addToHttpParams(i,H,"attrNames[]")});let d,a=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(a=a.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(a=a.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:a,observe:l,reportProgress:c})}getMemberResourceAndUserFacilityAttributes(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==o)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=o&&(i=this.addToHttpParams(i,o,"workWithUserAttributes"));let d,a=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(a=a.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(a=a.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-wu`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:a,observe:l,reportProgress:c})}getMemberResourceAndUserFacilityAttributesByNames(e,t,o,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==o)throw new Error("Required parameter attrNames was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==l)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");let a=new y.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"member")),null!=t&&(a=this.addToHttpParams(a,t,"resource")),o&&o.forEach(z=>{a=this.addToHttpParams(a,z,"attrNames[]")}),null!=l&&(a=this.addToHttpParams(a,l,"workWithUserAttributes"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let H="json";return f&&(H=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-names-wu`,{context:b,params:a,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}getMemberResourceAttributeById(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeById.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeById.");if(null==o)throw new Error("Required parameter attributeId was null or undefined when calling getMemberResourceAttributeById.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=o&&(i=this.addToHttpParams(i,o,"attributeId"));let d,a=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(a=a.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(a=a.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-resource`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:a,observe:l,reportProgress:c})}getMemberResourceAttributeByName(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeByName.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeByName.");if(null==o)throw new Error("Required parameter attributeName was null or undefined when calling getMemberResourceAttributeByName.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=o&&(i=this.addToHttpParams(i,o,"attributeName"));let d,a=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(a=a.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(a=a.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-resource`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:a,observe:l,reportProgress:c})}getMemberResourceAttributes(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getRequiredAttributesDefinition(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesDefinition.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"service"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributesDefinition`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getRequiredAttributesFacility(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacility.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"facility"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/f`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getRequiredAttributesFacilityService(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesFacilityService.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityService.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"service")),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-f`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getRequiredAttributesFacilityServices(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesFacilityServices.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityServices.");let n=new y.LE({encoder:this.encoder});e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"services[]")}),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-f`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getRequiredAttributesGroupResourceService(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==o)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesGroupResourceService.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"service")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=o&&(i=this.addToHttpParams(i,o,"group"));let d,a=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(a=a.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(a=a.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:a,observe:l,reportProgress:c})}getRequiredAttributesHostService(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesHostService.");if(null==t)throw new Error("Required parameter host was null or undefined when calling getRequiredAttributesHostService.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"service")),null!=t&&(n=this.addToHttpParams(n,t,"host"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-h`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getRequiredAttributesMember(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMember.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"workWithUserAttributes"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getRequiredAttributesMemberGroup(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroup.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroup.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),null!=o&&(i=this.addToHttpParams(i,o,"workWithUserAttributes"));let d,a=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(a=a.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(a=a.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-g`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:a,observe:l,reportProgress:c})}getRequiredAttributesMemberGroupResourceService(e,t,o,l,c,n="body",i=!1,a){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==o)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==l)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");let d=new y.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"service")),null!=t&&(d=this.addToHttpParams(d,t,"resource")),null!=o&&(d=this.addToHttpParams(d,o,"group")),null!=l&&(d=this.addToHttpParams(d,l,"member")),null!=c&&(d=this.addToHttpParams(d,c,"workWithUserAttributes"));let f,u=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(u=u.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(u=u.set("Authorization","Bearer "+f));let b=a&&a.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(u=u.set("Accept",b));let H=a&&a.context;void 0===H&&(H=new y.qT);let z="json";return b&&(z=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g-m`,{context:H,params:d,responseType:z,withCredentials:this.configuration.withCredentials,headers:u,observe:n,reportProgress:i})}getRequiredAttributesMemberGroupService(e,t,o,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==o)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupService.");let a=new y.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"service")),null!=t&&(a=this.addToHttpParams(a,t,"group")),null!=o&&(a=this.addToHttpParams(a,o,"member")),null!=l&&(a=this.addToHttpParams(a,l,"workWithUserAttributes"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let H="json";return f&&(H=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-g-m`,{context:b,params:a,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}getRequiredAttributesMemberResource(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResource.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResource.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=o&&(i=this.addToHttpParams(i,o,"workWithUserAttributes"));let d,a=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(a=a.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(a=a.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-r`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:a,observe:l,reportProgress:c})}getRequiredAttributesMemberResourceService(e,t,o,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==o)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResourceService.");let a=new y.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"service")),null!=t&&(a=this.addToHttpParams(a,t,"resource")),null!=o&&(a=this.addToHttpParams(a,o,"member")),null!=l&&(a=this.addToHttpParams(a,l,"workWithUserAttributes"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let H="json";return f&&(H=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-m`,{context:b,params:a,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}getRequiredAttributesResource(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResource.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/r`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getRequiredAttributesResourceService(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceService.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"service")),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getRequiredAttributesResourceServices(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesResourceServices.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceServices.");let n=new y.LE({encoder:this.encoder});e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"services[]")}),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-r`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getRequiredAttributesUser(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUser.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getRequiredAttributesUserFacility(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUserFacility.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesUserFacility.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u-f`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getRequiredAttributesVoService(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesVoService.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling getRequiredAttributesVoService.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"service")),null!=t&&(n=this.addToHttpParams(n,t,"vo"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-v`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getResourceAttributeById(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getResourceAttributeById.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-resource`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getResourceAttributeByName(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getResourceAttributeByName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-resource`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getResourceAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributes.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getResourceAttributesByNames(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getResourceAttributesByNames.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrNames[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-names`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getResourceGroupAndGroupAttributes(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==o)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributes.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"resource")),null!=t&&(i=this.addToHttpParams(i,t,"group")),null!=o&&(i=this.addToHttpParams(i,o,"workWithGroupAttributes"));let d,a=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(a=a.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(a=a.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-wg`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:a,observe:l,reportProgress:c})}getResourceGroupAndGroupAttributesByNames(e,t,o,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==o)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==l)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");let a=new y.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"resource")),null!=t&&(a=this.addToHttpParams(a,t,"group")),o&&o.forEach(z=>{a=this.addToHttpParams(a,z,"attrNames[]")}),null!=l&&(a=this.addToHttpParams(a,l,"workWithGroupAttributes"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let H="json";return f&&(H=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-names-wg`,{context:b,params:a,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}getResourceGroupAttributes(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),null!=t&&(n=this.addToHttpParams(n,t,"group"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getResourceGroupMemberAttributesByNames(e,t,o,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==o)throw new Error("Required parameter member was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==l)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupMemberAttributesByNames.");let a=new y.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"resource")),null!=t&&(a=this.addToHttpParams(a,t,"group")),null!=o&&(a=this.addToHttpParams(a,o,"member")),l&&l.forEach(z=>{a=this.addToHttpParams(a,z,"attrNames[]")});let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let H="json";return f&&(H=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-m-names`,{context:b,params:a,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}getUserAttributeById(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getUserAttributeById.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getUserAttributeByName(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getUserAttributeByName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getUserAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributes.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/u`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getUserAttributesByNames(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getUserAttributesByNames.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrNames[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/u-names`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getUserExtSourceAttributeById(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceAttributeById.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-ues`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getUserExtSourceAttributeByName(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceAttributeByName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-ues`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getUserExtSourceAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributes.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"userExtSource"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/ues`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getUserExtSourceAttributesByNames(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getUserExtSourceAttributesByNames.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrNames[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/ues-names`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getUserFacilityAttributeById(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeById.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeById.");if(null==o)throw new Error("Required parameter attributeId was null or undefined when calling getUserFacilityAttributeById.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"facility")),null!=o&&(i=this.addToHttpParams(i,o,"attributeId"));let d,a=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(a=a.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(a=a.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user_facility`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:a,observe:l,reportProgress:c})}getUserFacilityAttributeByName(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeByName.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeByName.");if(null==o)throw new Error("Required parameter attributeName was null or undefined when calling getUserFacilityAttributeByName.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"facility")),null!=o&&(i=this.addToHttpParams(i,o,"attributeName"));let d,a=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(a=a.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(a=a.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user_facility`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:a,observe:l,reportProgress:c})}getUserFacilityAttributes(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributes.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/user-facility`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getVoAttributeById(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getVoAttributeById.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-vo`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getVoAttributeByName(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getVoAttributeByName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-vo`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getVoAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributes.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/vo`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getVoAttributesByNames(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getVoAttributesByNames.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrNames[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/vo-names`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}removeAttributesForFacilityResourceGroupUserMember(e,t,o,l,c,n,i="body",a=!1,d){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==o)throw new Error("Required parameter group was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==l)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==c)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==n)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");let u=new y.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"facility")),null!=t&&(u=this.addToHttpParams(u,t,"resource")),null!=o&&(u=this.addToHttpParams(u,o,"group")),null!=l&&(u=this.addToHttpParams(u,l,"user")),null!=c&&(u=this.addToHttpParams(u,c,"member")),n&&n.forEach(Be=>{u=this.addToHttpParams(u,Be,"attributes[]")});let b,f=this.defaultHeaders;b=this.configuration.lookupCredential("BasicAuth"),b&&(f=f.set("Authorization","Basic "+b)),b=this.configuration.lookupCredential("BearerAuth"),b&&(f=f.set("Authorization","Bearer "+b));let H=d&&d.httpHeaderAccept;void 0===H&&(H=this.configuration.selectHeaderAccept(["application/json"])),void 0!==H&&(f=f.set("Accept",H));let z=d&&d.context;void 0===z&&(z=new y.qT);let ae="json";return H&&(ae=H.startsWith("text")?"text":this.configuration.isJsonMime(H)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-g-u-m`,null,{context:z,params:u,responseType:ae,withCredentials:this.configuration.withCredentials,headers:f,observe:i,reportProgress:a})}removeAttributesForFacilityResourceUserMember(e,t,o,l,c,n="body",i=!1,a){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==o)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==l)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==c)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceUserMember.");let d=new y.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"facility")),null!=t&&(d=this.addToHttpParams(d,t,"resource")),null!=o&&(d=this.addToHttpParams(d,o,"user")),null!=l&&(d=this.addToHttpParams(d,l,"member")),c&&c.forEach(ae=>{d=this.addToHttpParams(d,ae,"attributes[]")});let f,u=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(u=u.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(u=u.set("Authorization","Bearer "+f));let b=a&&a.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(u=u.set("Accept",b));let H=a&&a.context;void 0===H&&(H=new y.qT);let z="json";return b&&(z=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-u-m`,null,{context:H,params:d,responseType:z,withCredentials:this.configuration.withCredentials,headers:u,observe:n,reportProgress:i})}removeEntitylessAttribute(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter key was null or undefined when calling removeEntitylessAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeEntitylessAttribute.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"key")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/e`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}removeFacilityAttribute(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeFacilityAttribute.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/f`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}removeFacilityAttributes(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeFacilityAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attributes[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}removeGroupAttribute(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeGroupAttribute.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}removeGroupAttributes(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeGroupAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attributes[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}removeGroupResourceAttribute(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttribute.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttribute.");if(null==o)throw new Error("Required parameter attribute was null or undefined when calling removeGroupResourceAttribute.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"group")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=o&&(i=this.addToHttpParams(i,o,"attribute"));let d,a=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(a=a.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(a=a.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g-r`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:a,observe:l,reportProgress:c})}removeGroupResourceAttributes(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributes.");if(null==o)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributes.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"group")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),o&&o.forEach(H=>{i=this.addToHttpParams(i,H,"attributes[]")});let d,a=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(a=a.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(a=a.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:a,observe:l,reportProgress:c})}removeGroupResourceAttributesWorkWithGroupAttributes(e,t,o,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==o)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==l)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");let a=new y.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"group")),null!=t&&(a=this.addToHttpParams(a,t,"resource")),o&&o.forEach(z=>{a=this.addToHttpParams(a,z,"attributes[]")}),null!=l&&(a=this.addToHttpParams(a,l,"workWithGroupAttributes"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let H="json";return f&&(H=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r-workWithGroupAttributes`,null,{context:b,params:a,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}removeHostAttribute(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling removeHostAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeHostAttribute.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/h`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}removeHostAttributes(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling removeHostAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeHostAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attributes[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/h`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}removeMemberAttribute(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeMemberAttribute.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}removeMemberAttributes(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attributes[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}removeMemberAttributesWorkWithUserAttributes(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==o)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),t&&t.forEach(H=>{i=this.addToHttpParams(i,H,"attributes[]")}),null!=o&&(i=this.addToHttpParams(i,o,"workWithUserAttributes"));let d,a=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(a=a.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(a=a.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-workWithUserAttributes`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:a,observe:l,reportProgress:c})}removeMemberGroupAttribute(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttribute.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttribute.");if(null==o)throw new Error("Required parameter attribute was null or undefined when calling removeMemberGroupAttribute.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),null!=o&&(i=this.addToHttpParams(i,o,"attribute"));let d,a=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(a=a.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(a=a.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-g`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:a,observe:l,reportProgress:c})}removeMemberGroupAttributes(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributes.");if(null==o)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributes.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),o&&o.forEach(H=>{i=this.addToHttpParams(i,H,"attributes[]")});let d,a=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(a=a.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(a=a.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:a,observe:l,reportProgress:c})}removeMemberGroupAttributesWorkWithUserAttributes(e,t,o,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==o)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==l)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");let a=new y.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"member")),null!=t&&(a=this.addToHttpParams(a,t,"group")),o&&o.forEach(z=>{a=this.addToHttpParams(a,z,"attributes[]")}),null!=l&&(a=this.addToHttpParams(a,l,"workWithUserAttributes"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let H="json";return f&&(H=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g-workWithUserAttributes`,null,{context:b,params:a,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}removeMemberResourceAttribute(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttribute.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttribute.");if(null==o)throw new Error("Required parameter attribute was null or undefined when calling removeMemberResourceAttribute.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=o&&(i=this.addToHttpParams(i,o,"attribute"));let d,a=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(a=a.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(a=a.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-r`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:a,observe:l,reportProgress:c})}removeMemberResourceAttributes(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttributes.");if(null==o)throw new Error("Required parameter attributes was null or undefined when calling removeMemberResourceAttributes.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),o&&o.forEach(H=>{i=this.addToHttpParams(i,H,"attributes[]")});let d,a=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(a=a.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(a=a.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-r`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:a,observe:l,reportProgress:c})}removeResourceAttribute(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeResourceAttribute.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/r`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}removeResourceAttributes(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeResourceAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attributes[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/r`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}removeUesAttributes(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling removeUesAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeUesAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attributes[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/ues`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}removeUserAttribute(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeUserAttribute.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}removeUserAttributes(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeUserAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attributes[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}removeUserExtSourceAttribute(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSourceAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeUserExtSourceAttribute.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/ues`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}removeUserFacilityAttribute(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttribute.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttribute.");if(null==o)throw new Error("Required parameter attribute was null or undefined when calling removeUserFacilityAttribute.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"facility")),null!=o&&(i=this.addToHttpParams(i,o,"attribute"));let d,a=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(a=a.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(a=a.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u-f`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:a,observe:l,reportProgress:c})}removeUserFacilityAttributes(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttributes.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttributes.");if(null==o)throw new Error("Required parameter attributes was null or undefined when calling removeUserFacilityAttributes.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"facility")),o&&o.forEach(H=>{i=this.addToHttpParams(i,H,"attributes[]")});let d,a=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(a=a.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(a=a.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u-f`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:a,observe:l,reportProgress:c})}removeVoAttribute(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeVoAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeVoAttribute.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/v`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}removeVoAttributes(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeVoAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeVoAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attributes[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/v`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}setAttributeActionCriticality(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling setAttributeActionCriticality.");if(null==t)throw new Error("Required parameter action was null or undefined when calling setAttributeActionCriticality.");if(null==o)throw new Error("Required parameter critical was null or undefined when calling setAttributeActionCriticality.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"attributeDefinition")),null!=t&&(i=this.addToHttpParams(i,t,"action")),null!=o&&(i=this.addToHttpParams(i,o,"critical"));let d,a=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(a=a.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(a=a.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/setAttributeActionCriticality`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:a,observe:l,reportProgress:c})}setAttributePolicyCollections(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputAttributePolicyCollections was null or undefined when calling setAttributePolicyCollections.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributePolicyCollections`,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setAttributeRights(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputAttributeRights was null or undefined when calling setAttributeRights.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributeRights`,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setEntitylessAttribute(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputEntitylessAttribute was null or undefined when calling setEntitylessAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/entityless`,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setFacilityAttribute(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetFacilityAttribute was null or undefined when calling setFacilityAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/facility`,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setFacilityAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetFacilityAttributes was null or undefined when calling setFacilityAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f`,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setFacilityResourceGroupUserMemberAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetFacilityResourceGroupUserMemberAttributes was null or undefined when calling setFacilityResourceGroupUserMemberAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-g-u-m`,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setFacilityResourceUserMemberAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetFacilityResourceUserMemberAttributes was null or undefined when calling setFacilityResourceUserMemberAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-u-m`,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setFacilityUserAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetFacilityUserAttributes was null or undefined when calling setFacilityUserAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-u`,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setGroupAttribute(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetGroupAttribute was null or undefined when calling setGroupAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/group`,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setGroupAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetGroupAttributes was null or undefined when calling setGroupAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/g`,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setGroupResourceAttribute(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetGroupResourceAttribute was null or undefined when calling setGroupResourceAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/group-resource`,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setGroupResourceAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetGroupResourceAttributes was null or undefined when calling setGroupResourceAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/group-resource`,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setHostAttribute(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetHostAttribute was null or undefined when calling setHostAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/host`,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setHostAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetHostAttributes was null or undefined when calling setHostAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/h`,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setMemberAttribute(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberAttribute was null or undefined when calling setMemberAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member`,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setMemberAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberAttributes was null or undefined when calling setMemberAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m`,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setMemberGroupAttribute(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberGroupAttribute was null or undefined when calling setMemberGroupAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member-group`,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setMemberGroupAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberGroupAttributes was null or undefined when calling setMemberGroupAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g`,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setMemberGroupWithUserAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberGroupWithUserAttributes was null or undefined when calling setMemberGroupWithUserAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g-wu`,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setMemberResourceAndUserAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberResourceAndUserAttributes was null or undefined when calling setMemberResourceAndUserAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r-wu`,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setMemberResourceAttribute(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberResourceAttribute was null or undefined when calling setMemberResourceAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member-resource`,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setMemberResourceAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberResourceAttributes was null or undefined when calling setMemberResourceAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r`,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setMemberWithUserAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberWithUserAttributes was null or undefined when calling setMemberWithUserAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-wu`,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setResourceAttribute(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetResourceAttribute was null or undefined when calling setResourceAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/resource`,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setResourceAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetResourceAttributes was null or undefined when calling setResourceAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r`,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setResourceGroupAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetResourceGroupAttributes was null or undefined when calling setResourceGroupAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g`,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setResourceGroupWithGroupAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetResourceGroupWithGroupAttributes was null or undefined when calling setResourceGroupWithGroupAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g-wg`,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setUserAttribute(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetUserAttribute was null or undefined when calling setUserAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/user`,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setUserAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetUserAttributes was null or undefined when calling setUserAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/u`,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setUserExtSourceAttribute(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetUserExtSourceAttribute was null or undefined when calling setUserExtSourceAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/userExtSource`,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setUserExtSourceAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetUserExtSourceAttributes was null or undefined when calling setUserExtSourceAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/ues`,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setUserFacilityAttribute(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetUserFacilityAttribute was null or undefined when calling setUserFacilityAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/facility-user`,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setUserFacilityAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetUserFacilityAttributes was null or undefined when calling setUserFacilityAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/facility-user`,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setVoAttribute(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetVoAttribute was null or undefined when calling setVoAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/vo`,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setVoAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetVoAttributes was null or undefined when calling setVoAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/vo`,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}updateAttributeDefinition(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputAttributeDefinition was null or undefined when calling updateAttributeDefinition.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/updateAttributeDefinition`,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(y.eN),p.LFG(Qt,8),p.LFG(tt,8))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Tl=(()=>{class s{constructor(e,t,o){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new tt,o&&(this.configuration=o),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new ei}addToHttpParams(e,t,o){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,o):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,o){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,o));else if(t instanceof Date){if(null==o)throw Error("key may not be null if value is Date");e=e.append(o,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=o?`${o}.${l}`:l));else{if(null==o)throw Error("key may not be null if value is not object or array");e=e.append(o,t)}return e}getAllPolicies(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllPolicies`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAllRolesManagementRules(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllRolesManagementRules`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAuthzAdminGroups(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter role was null or undefined when calling getAuthzAdminGroups.");if(null==t)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzAdminGroups.");if(null==o)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzAdminGroups.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"role")),null!=t&&(i=this.addToHttpParams(i,t,"complementaryObjectId")),null!=o&&(i=this.addToHttpParams(i,o,"complementaryObjectName"));let d,a=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(a=a.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(a=a.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAdminGroups`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:a,observe:l,reportProgress:c})}getAuthzRichAdmins(e,t,o,l,c,n,i="body",a=!1,d){if(null==e)throw new Error("Required parameter role was null or undefined when calling getAuthzRichAdmins.");if(null==t)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzRichAdmins.");if(null==o)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzRichAdmins.");if(null==l)throw new Error("Required parameter specificAttributes was null or undefined when calling getAuthzRichAdmins.");let u=new y.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"role")),null!=t&&(u=this.addToHttpParams(u,t,"complementaryObjectId")),null!=o&&(u=this.addToHttpParams(u,o,"complementaryObjectName")),l&&l.forEach(Be=>{u=this.addToHttpParams(u,Be,"specificAttributes")}),null!=c&&(u=this.addToHttpParams(u,c,"allUserAttributes")),null!=n&&(u=this.addToHttpParams(u,n,"onlyDirectAdmins"));let b,f=this.defaultHeaders;b=this.configuration.lookupCredential("BasicAuth"),b&&(f=f.set("Authorization","Basic "+b)),b=this.configuration.lookupCredential("BearerAuth"),b&&(f=f.set("Authorization","Bearer "+b));let H=d&&d.httpHeaderAccept;void 0===H&&(H=this.configuration.selectHeaderAccept(["application/json"])),void 0!==H&&(f=f.set("Accept",H));let z=d&&d.context;void 0===z&&(z=new y.qT);let ae="json";return H&&(ae=H.startsWith("text")?"text":this.configuration.isJsonMime(H)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getRichAdmins`,{context:z,params:u,responseType:ae,withCredentials:this.configuration.withCredentials,headers:f,observe:i,reportProgress:a})}getFacilitiesWhereUserIsInRoles(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getFacilitiesWhereUserIsInRoles.");let n=new y.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"roles[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getFacilitiesWhereUserIsInRoles`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getGroupRoleNames(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupRoleNames`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getGroupRoles(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"groupId"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/getGroupRoles`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getGroupsWhereUserIsInRoles(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getGroupsWhereUserIsInRoles.");let n=new y.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"roles[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupsWhereUserIsInRoles`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getLoggedUser(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getLoggedUser`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getMembersWhereUserIsInRoles(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getMembersWhereUserIsInRoles.");let n=new y.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"roles[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getMembersWhereUserIsInRoles`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getPerunPrincipal(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPerunPrincipal`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPrincipalRoleNames(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPrincipalRoleNames`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getResourcesWhereUserIsInRoles(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getResourcesWhereUserIsInRoles.");let n=new y.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"roles[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getResourcesWhereUserIsInRoles`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getSecurityTeamsWhereUserIsInRoles(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getSecurityTeamsWhereUserIsInRoles.");let n=new y.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"roles[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getSecurityTeamsWhereUserIsInRoles`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getUserRoleNames(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoleNames`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getUserRoles(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"userId"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoles`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getVosWhereUserIsInRoles(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getVosWhereUserIsInRoles.");let n=new y.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"roles[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getVosWhereUserIsInRoles`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}isFacilityAdmin(e,t="body",o=!1,l){let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"facility"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isFacilityAdmin`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}isGroupAdmin(e,t="body",o=!1,l){let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isGroupAdmin`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}isPerunAdmin(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/isPerunAdmin`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}isVoAdmin(e,t="body",o=!1,l){let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isVoAdmin`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}keepAlive(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/keepAlive`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}loadAuthorizationComponents(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/loadAuthorizationComponents`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}refreshMfa(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/refreshMfa`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}setRoleForGroup(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter SetRoleForGroup was null or undefined when calling setRoleForGroup.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/g`,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setRoleForUser(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter SetRoleForUser was null or undefined when calling setRoleForUser.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/u`,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setRoleWithGroupComplementaryObject(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter SetRoleWithGroupComplementaryObject was null or undefined when calling setRoleWithGroupComplementaryObject.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/g-co`,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setRoleWithUserComplementaryObject(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter SetRoleWithUserComplementaryObject was null or undefined when calling setRoleWithUserComplementaryObject.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/u-co`,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}unsetRoleForGroup(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter UnsetRoleForGroup was null or undefined when calling unsetRoleForGroup.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/g`,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}unsetRoleForUser(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter UnsetRoleForUser was null or undefined when calling unsetRoleForUser.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/u`,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}unsetRoleWithGroupComplementaryObject(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter UnsetRoleWithGroupComplementaryObject was null or undefined when calling unsetRoleWithGroupComplementaryObject.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/g-co`,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}unsetRoleWithUserComplementaryObject(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter UnsetRoleWithUserComplementaryObject was null or undefined when calling unsetRoleWithUserComplementaryObject.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/u-co`,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(y.eN),p.LFG(Qt,8),p.LFG(tt,8))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Zh=(()=>{class s{constructor(e,t,o){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new tt,o&&(this.configuration=o),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new ei}addToHttpParams(e,t,o){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,o):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,o){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,o));else if(t instanceof Date){if(null==o)throw Error("key may not be null if value is Date");e=e.append(o,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=o?`${o}.${l}`:l));else{if(null==o)throw Error("key may not be null if value is not object or array");e=e.append(o,t)}return e}sentMessageToRTWithMemberQueue(e,t,o,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter memberId was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==o)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==l)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithMemberQueue.");let a=new y.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"memberId")),null!=t&&(a=this.addToHttpParams(a,t,"queue")),null!=o&&(a=this.addToHttpParams(a,o,"subject")),null!=l&&(a=this.addToHttpParams(a,l,"text"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let H="json";return f&&(H=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/m-q`,null,{context:b,params:a,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}sentMessageToRTWithQueue(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithQueue.");if(null==t)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithQueue.");if(null==o)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithQueue.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"queue")),null!=t&&(i=this.addToHttpParams(i,t,"subject")),null!=o&&(i=this.addToHttpParams(i,o,"text"));let d,a=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(a=a.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(a=a.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/q`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:a,observe:l,reportProgress:c})}sentMessageToRTWithVo(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVo.");if(null==t)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVo.");if(null==o)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVo.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"voId")),null!=t&&(i=this.addToHttpParams(i,t,"subject")),null!=o&&(i=this.addToHttpParams(i,o,"text"));let d,a=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(a=a.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(a=a.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:a,observe:l,reportProgress:c})}sentMessageToRTWithVoQueue(e,t,o,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==o)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==l)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVoQueue.");let a=new y.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"voId")),null!=t&&(a=this.addToHttpParams(a,t,"queue")),null!=o&&(a=this.addToHttpParams(a,o,"subject")),null!=l&&(a=this.addToHttpParams(a,l,"text"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let H="json";return f&&(H=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v-q`,null,{context:b,params:a,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(y.eN),p.LFG(Qt,8),p.LFG(tt,8))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Gv=(()=>{class s{constructor(e,t,o){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new tt,o&&(this.configuration=o),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new ei}addToHttpParams(e,t,o){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,o):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,o){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,o));else if(t instanceof Date){if(null==o)throw Error("key may not be null if value is Date");e=e.append(o,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=o?`${o}.${l}`:l));else{if(null==o)throw Error("key may not be null if value is not object or array");e=e.append(o,t)}return e}addApplicationMailForGroup(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputAddApplicationMailForGroup was null or undefined when calling addApplicationMailForGroup.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/addApplicationMail/g`,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}addApplicationMailForVo(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputAddApplicationMailForVo was null or undefined when calling addApplicationMailForVo.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/addApplicationMail/v`,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}addGroupsToAutoRegistration(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter groups was null or undefined when calling addGroupsToAutoRegistration.");let c=new y.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"groups[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/addGroupsToAutoRegistration`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}approveApplication(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling approveApplication.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/approveApplication`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}checkForSimilarRichIdentities(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/checkForSimilarRichIdentities`,null,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}checkForSimilarUsersWithAuthInfo(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/checkForSimilarUsers/authInfo`,null,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}consolidate(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputConsolidate was null or undefined when calling consolidate.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/consolidate`,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}consolidateIdentityUsingToken(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter token was null or undefined when calling consolidateIdentityUsingToken.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"token"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/consolidateIdentityUsingToken`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}copyFormFromGroupToGroup(e,t,o="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromGroup")),null!=t&&(n=this.addToHttpParams(n,t,"toGroup"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToGroup`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}copyFormFromGroupToVo(e,t,o="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromGroup")),null!=t&&(n=this.addToHttpParams(n,t,"toVo"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToVo`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}copyFormFromVoToGroup(e,t,o="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromVo")),null!=t&&(n=this.addToHttpParams(n,t,"toGroup"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToGroup`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}copyFormFromVoToVo(e,t,o="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromVo")),null!=t&&(n=this.addToHttpParams(n,t,"toVo"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToVo`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}copyMailsFromGroupToGroup(e,t,o="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromGroup")),null!=t&&(n=this.addToHttpParams(n,t,"toGroup"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToGroup`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}copyMailsFromGroupToVo(e,t,o="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromGroup")),null!=t&&(n=this.addToHttpParams(n,t,"toVo"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToVo`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}copyMailsFromVoToGroup(e,t,o="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromVo")),null!=t&&(n=this.addToHttpParams(n,t,"toGroup"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToGroup`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}copyMailsFromVoToVo(e,t,o="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromVo")),null!=t&&(n=this.addToHttpParams(n,t,"toVo"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToVo`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}createApplicationFormInGroup(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling createApplicationFormInGroup.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/group`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}createApplicationFormInVo(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling createApplicationFormInVo.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/vo`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}deleteApplication(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteApplication.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplication`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}deleteApplicationMailForGroup(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling deleteApplicationMailForGroup.");if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForGroup.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"id"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/g`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}deleteApplicationMailForVo(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling deleteApplicationMailForVo.");if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForVo.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"id"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/v`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}deleteGroupsFromAutoRegistration(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter groups was null or undefined when calling deleteGroupsFromAutoRegistration.");let c=new y.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"groups[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteGroupsFromAutoRegistration`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getApplicationById(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getApplicationById.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationById`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getApplicationDataById(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getApplicationDataById.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationDataById`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getApplicationMailsForGroup(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getApplicationMailsForGroup.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationMails/g`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getApplicationMailsForVo(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getApplicationMailsForVo.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationMails/v`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getApplicationsForGroup(e,t,o,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter group was null or undefined when calling getApplicationsForGroup.");let a=new y.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"group")),t&&t.forEach(z=>{a=this.addToHttpParams(a,z,"state[]")}),null!=o&&(a=this.addToHttpParams(a,o,"dateFrom")),null!=l&&(a=this.addToHttpParams(a,l,"dateTo"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let H="json";return f&&(H=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForGroup`,{context:b,params:a,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}getApplicationsForMember(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getApplicationsForMember.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"group"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForMember`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getApplicationsForVo(e,t,o,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getApplicationsForVo.");let a=new y.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"vo")),t&&t.forEach(z=>{a=this.addToHttpParams(a,z,"state[]")}),null!=o&&(a=this.addToHttpParams(a,o,"dateFrom")),null!=l&&(a=this.addToHttpParams(a,l,"dateTo"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let H="json";return f&&(H=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForVo`,{context:b,params:a,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}getApplicationsPage(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputGetPaginatedApplications was null or undefined when calling getApplicationsPage.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/getApplicationsPage`,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}getConsolidatorToken(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getConsolidatorToken`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getFormItemsForGroup(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroup.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/group`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getFormItemsForGroupWithType(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroupWithType.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"type"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/group-type`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getFormItemsForVo(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVo.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/vo`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getFormItemsForVoWithType(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVoWithType.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"type"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/vo-type`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getGroupApplicationForm(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupApplicationForm.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationForm/group`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getGroupsToAutoRegistration(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getGroupsToAutoRegistration.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getGroupsToAutoRegistration`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getVoApplicationForm(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoApplicationForm.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationForm/vo`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}rejectApplication(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter id was null or undefined when calling rejectApplication.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"id")),null!=t&&(n=this.addToHttpParams(n,t,"reason"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/rejectApplication`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}sendInvitation(e,t,o,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter email was null or undefined when calling sendInvitation.");if(null==t)throw new Error("Required parameter language was null or undefined when calling sendInvitation.");let a=new y.LE({encoder:this.encoder});null!=o&&(a=this.addToHttpParams(a,o,"voId")),null!=l&&(a=this.addToHttpParams(a,l,"name")),null!=e&&(a=this.addToHttpParams(a,e,"email")),null!=t&&(a=this.addToHttpParams(a,t,"language"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let H="json";return f&&(H=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation`,null,{context:b,params:a,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}sendInvitationForGroup(e,t,o,l,c,n="body",i=!1,a){if(null==e)throw new Error("Required parameter email was null or undefined when calling sendInvitationForGroup.");if(null==t)throw new Error("Required parameter language was null or undefined when calling sendInvitationForGroup.");let d=new y.LE({encoder:this.encoder});null!=o&&(d=this.addToHttpParams(d,o,"voId")),null!=l&&(d=this.addToHttpParams(d,l,"groupId")),null!=c&&(d=this.addToHttpParams(d,c,"name")),null!=e&&(d=this.addToHttpParams(d,e,"email")),null!=t&&(d=this.addToHttpParams(d,t,"language"));let f,u=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(u=u.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(u=u.set("Authorization","Bearer "+f));let b=a&&a.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(u=u.set("Accept",b));let H=a&&a.context;void 0===H&&(H=new y.qT);let z="json";return b&&(z=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/g`,null,{context:H,params:d,responseType:z,withCredentials:this.configuration.withCredentials,headers:u,observe:n,reportProgress:i})}sendInvitationGroupToExistingUser(e,t,o,l="body",c=!1,n){let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"userId")),null!=t&&(i=this.addToHttpParams(i,t,"voId")),null!=o&&(i=this.addToHttpParams(i,o,"groupId"));let d,a=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(a=a.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(a=a.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u-g`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:a,observe:l,reportProgress:c})}sendInvitationToExistingUser(e,t,o="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userId")),null!=t&&(n=this.addToHttpParams(n,t,"voId"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}sendInvitationsFromCsv(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputInvitationsFromCsv was null or undefined when calling sendInvitationsFromCsv.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/sendInvitationsFromCsv`,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}sendMessage(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSendMessage was null or undefined when calling sendMessage.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/sendMessage`,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setSendingEnabled(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetSendingEnabled was null or undefined when calling setSendingEnabled.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/setSendingEnabled`,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}submitApplication(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSubmitApplication was null or undefined when calling submitApplication.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/submitApplication`,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}updateApplicationMail(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputUpdateApplicationMail was null or undefined when calling updateApplicationMail.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateApplicationMail`,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}updateForm(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputUpdateForm was null or undefined when calling updateForm.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateForm`,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}updateFormItemData(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputFormItemData was null or undefined when calling updateFormItemData.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItemData`,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}updateFormItemsData(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputFormItemsData was null or undefined when calling updateFormItemsData.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItemsData`,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}updateFormItemsForGroup(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputUpdateFormItemsForGroup was null or undefined when calling updateFormItemsForGroup.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItems/group`,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}updateFormItemsForVo(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputUpdateFormItemsForVo was null or undefined when calling updateFormItemsForVo.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItems/vo`,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}verifyApplication(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling verifyApplication.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/verifyApplication`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(y.eN),p.LFG(Qt,8),p.LFG(tt,8))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),fs=(()=>{class s{constructor(e,t,o){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new tt,o&&(this.configuration=o),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new ei}addToHttpParams(e,t,o){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,o):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,o){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,o));else if(t instanceof Date){if(null==o)throw Error("key may not be null if value is Date");e=e.append(o,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=o?`${o}.${l}`:l));else{if(null==o)throw Error("key may not be null if value is not object or array");e=e.append(o,t)}return e}getAppsConfig(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getAppsConfig`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getGuiConfiguration(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getGuiConfiguration`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getNewGuiAlert(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getNewGuiAlert`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunRPCVersion(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["text/plain"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunStatistics(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatistics`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunStatus(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatus`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunSystemTimeInMillis(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunSystemTimeInMillis`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(y.eN),p.LFG(Qt,8),p.LFG(tt,8))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Xv=(()=>{class s{constructor(e,t){if(e)throw new Error("ApiModule is already loaded. Import in your base AppModule only.");if(!t)throw new Error("You need to import the HttpClientModule in your AppModule! \nSee also https://github.com/angular/angular/issues/20575")}static forRoot(e){return{ngModule:s,providers:[{provide:tt,useFactory:e}]}}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(s,12),p.LFG(y.eN,8))},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({}),s})();var ut=(()=>{return(s=ut||(ut={})).PERUNADMIN="PERUNADMIN",s.PERUNOBSERVER="PERUNOBSERVER",s.VOADMIN="VOADMIN",s.GROUPADMIN="GROUPADMIN",s.GROUPOBSERVER="GROUPOBSERVER",s.GROUPMEMBERSHIPMANAGER="GROUPMEMBERSHIPMANAGER",s.SELF="SELF",s.FACILITYADMIN="FACILITYADMIN",s.FACILITIYOBSERVER="FACILITYOBSERVER",s.RESOURCEADMIN="RESOURCEADMIN",s.RESOURCESELFSERVICE="RESOURCESELFSERVICE",s.REGISTRAR="REGISTRAR",s.ENGINE="ENGINE",s.RPC="RPC",s.NOTIFICATIONS="NOTIFICATIONS",s.SERVICEUSER="SERVICEUSER",s.SPONSOR="SPONSOR",s.VOOBSERVER="VOOBSERVER",s.TOPGROUPCREATOR="TOPGROUPCREATOR",s.SECURITYADMIN="SECURITYADMIN",s.CABINETADMIN="CABINETADMIN",s.UNKNOWNROLENAME="UNKNOWNROLENAME",s.AUDITCONSUMERADMIN="AUDITCONSUMERADMIN",s.UNKNOWN="UNKNOWN",s.MEMBERSHIP="MEMBERSHIP",ut;var s})();let eA=(()=>{class s{constructor(e){this.authzSevice=e,this.principalRoles=new Set,this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[],this.sortRoles=(t,o)=>t.roleName>o.roleName?1:t.roleName{this.authzSevice.getAllRolesManagementRules().subscribe(o=>{this.allRolesManagementRules=o,e()},o=>t(o))})}assignAvailableRoles(e,t){this.allRolesManagementRules.forEach(o=>{o.primaryObject===t&&e.push(o)}),e.sort(this.sortRoles),"Vo"===t&&this.voCustomSort(e)}isManagerPagePrivileged(e){const t=[];let o=e.beanName;o.startsWith("Rich")&&(o=o.substring(4)),this.assignAvailableRoles(t,o);const l=new Map;this.setRolesAuthorization(t,e,l);for(const c of l.values())if(c.readAuth||c.manageAuth)return!0;return!1}setRolesAuthorization(e,t,o){for(const l of e){let c=[],n=[],i=[];for(const b of this.allRolesManagementRules)if(b.roleName===l.roleName){c=c.concat(b.privilegedRolesToRead),n=n.concat(b.privilegedRolesToManage);for(const H of Object.keys(b.entitiesToManage))i="User"===H?[H].concat(i):i.concat(H);break}const a=this.fetchAllRelatedObjects([t]),d=this.resolveAuthorization(c,a),u=this.resolveAuthorization(n,a);o.set(l.roleName,{readAuth:d,manageAuth:u,modes:i})}}initializeVariables(){this.principalRoles.clear(),this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}getPrimaryObjectOfRole(e){for(const t of this.allRolesManagementRules)if(t.roleName===e)return t.primaryObject;return""}getAllRules(){return this.allRolesManagementRules.sort(this.sortRoles)}getRuleForRole(e){return this.allRolesManagementRules.find(t=>t.roleName===e)}getAssignableRoleRules(e){const t=[],o=["UNKNOWN","RPC","NOTIFICATIONS","ENGINE","MFA","REGISTRAR","AUDITCONSUMERADMIN","SPONSORSHIP","MEMBERSHIP","SERVICEUSER","SELF","SECURITYADMIN"];return this.allRolesManagementRules.forEach(l=>{!o.includes(l.roleName)&&this.canManage(l)&&this.ruleHasMode(l,e)&&t.push(l)}),t.sort(this.sortRoles)}ruleHasMode(e,t){return Object.keys(e.entitiesToManage).map(o=>o.toUpperCase()).includes(t)}canManage(e){return e.privilegedRolesToManage.some(t=>this.principalRoles.has(Object.keys(t)[0]))}resolveAuthorization(e,t){for(const o of e){let l=!0;for(const c of Object.keys(o)){const n=o[c];if(null===n)this.principalRoles.has(c)||(l=!1);else if(t[n]){for(const i of t[n])if(!this.principalHasRole(c,n,i)){l=!1;break}}else l=!1;if(!l)break}if(l)return!0}return!1}getPerunPolicy(e){for(const t of this.perunPolicies)if(t.policyName===e)return t;return null}fetchAllRelatedObjects(e){const t={};for(const o of e){let l=o.beanName;switch(o.beanName.startsWith("Rich")&&(l=o.beanName.substring(4)),t[l]?t[l].push(o.id):t[l]=[o.id],l){case"Member":t.User?t.User.push(o.userId):t.User=[o.userId],t.Vo?t.Vo.push(o.voId):t.Vo=[o.voId];break;case"Group":case"ResourceTag":t.Vo?t.Vo.push(o.voId):t.Vo=[o.voId];break;case"Resource":t.Facility?t.Facility.push(o.facilityId):t.Facility=[o.facilityId],t.Vo?t.Vo.push(o.voId):t.Vo=[o.voId]}}return t}fetchPolicyWithAllIncludedPolicies(e){const t=new Map;let o=[];for(o.push(e);0!==o.length;){const c=o.shift();if(t.has(c))continue;const n=this.getPerunPolicy(c);if(!n)return[];t.set(c,n),o=o.concat(n.includePolicies)}const l=[];for(const c of t.values())l.push(c);return l}voCustomSort(e){for(let t=0;t{class s{constructor(){this.branding=""}setInstanceConfig(e){this.instanceConfig=e}setDefaultConfig(e){this.defaultConfig=e}getAppsConfig(){return this.appsConfig}setAppsConfig(e){this.appsConfig=e}setPerunPrincipal(e){this.principal=e}getPerunPrincipal(){return this.principal}getInitialPageId(){return this.initialPageId}setInitialPageId(e){this.initialPageId=e}getLoginAttributeNames(){return this.getProperty("login_namespace_attributes")}getMemberProfileAttributeNames(){return this.getProperty("member_profile_attributes_friendly_names")}setBanding(e){this.branding=e}getProperty(e){if(!this.instanceConfig||!this.defaultConfig)return null;const t=[this.instanceConfig?.brandings?.[this.branding],this.instanceConfig],o=this.defaultConfig[e];let l=null;for(const c of t)c&&null==l&&(l=c[e]);return null===l?o:this.addMissingValuesToProperty(l,o)}addMissingValuesToProperty(e,t){if("object"!=typeof e||Array.isArray(e)||null==e){if(null!=e)return e}else for(const o of Object.keys(t))t[o]=this.addMissingValuesToProperty(e[o],t[o]);return t}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),ms=(()=>{class s{constructor(e,t,o,l,c){this.injector=e,this.store=t,this.dialog=o,this.route=l,this.oauthService=c,setTimeout(()=>{this.router=this.injector.get(Zt),this.startIdpFilterKeeper()}),this.route.queryParams.subscribe(n=>{n.idpFilter&&(this.filterShortname=String(n.idpFilter))})}loadOidcConfigData(){this.oauthService.configure(this.getClientConfig())}logout(){sessionStorage.getItem("baPrincipal")?(sessionStorage.removeItem("baPrincipal"),sessionStorage.removeItem("basicUsername"),sessionStorage.removeItem("basicPassword"),sessionStorage.setItem("baLogout","true"),this.router.navigate(["/service-access"],{queryParamsHandling:"preserve"})):this.oauthService.logOut()}isLoggedIn(){return this.oauthService.hasValidAccessToken()}getAuthorizationHeaderValue(){return this.oauthService.hasValidAccessToken()?"Bearer "+this.oauthService.getAccessToken():""}startAuthentication(){this.oauthService.loadDiscoveryDocumentAndLogin()}getIdpFilter(){return this.filterShortname}getClientConfig(){const e=this.setIdpFilter(),l=.5+.25*Math.random(),c=e?{acr_values:e}:{},n=this.store.getProperty("oidc_client");if(n.oauth_scopes.split(" ").includes("offline_access")&&n.oauth_offline_access_consent_prompt&&(c.prompt="consent"),(sessionStorage.getItem("mfa_route")||sessionStorage.getItem("mfaProcessed"))&&(c.acr_values="https://refeds.org/profile/mfa"),sessionStorage.getItem("mfa_route")&&(c.prompt?c.prompt+=" login":c.prompt="login",c.max_age="0"),"Linker"===this.store.getProperty("application")){c.prompt?c.prompt+=" login":c.prompt="login";const i=bd("idphint",location.search.substring(1));i&&(c.idphint=i)}return{requestAccessToken:!0,issuer:n.oauth_authority,clientId:n.oauth_client_id,redirectUri:n.oauth_redirect_uri,postLogoutRedirectUri:n.oauth_post_logout_redirect_uri,responseType:n.oauth_response_type,scope:n.oauth_scopes,clockSkewInSec:1,timeoutFactor:l,userinfoEndpoint:this.store.getProperty("oidc_client").user_info_endpoint_url,customQueryParams:c}}setIdpFilter(){const e=location.search.length?location.search.substring(1).split("&"):[];this.filterShortname=null;const t=this.store.getProperty("oidc_client").filters;if(!t)return null;let o=null;return e.forEach(l=>{const c=l.split("=");"idpFilter"===c[0]&&t[c[1]]&&(this.filterShortname=c[1],o=t[c[1]])}),t.default&&!o?(this.filterShortname="default",t.default):o}startIdpFilterKeeper(){this.router.events.pipe((0,Wt.h)(e=>e instanceof Nr)).subscribe(()=>{const e={idpFilter:this.getIdpFilter()};this.router.navigate([],{relativeTo:this.route,queryParams:"default"===e.idpFilter?{}:e,queryParamsHandling:"merge",replaceUrl:!0})})}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(p.zs3),p.LFG(Cn),p.LFG(or),p.LFG(jr),p.LFG(Wr.Ct))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),u_=(()=>{class s{constructor(e){this.dialogRef=e}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(kn))},s.\u0275cmp=p.Xpm({type:s,selectors:[["perun-web-apps-user-dont-exist-dialog"]],decls:3,vars:3,consts:[["mat-dialog-content","",1,"mt-2","mb-2"]],template:function(e,t){1&e&&(p.TgZ(0,"h2",0),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&e&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.USER_DONT_EXIST.TITLE"),"\n"))},dependencies:[sr,Si]}),s})();var h_=x(930);function ip(s,r){const e="object"==typeof r;return new Promise((t,o)=>{const l=new h_.Hp({next:c=>{t(c),l.unsubscribe()},error:o,complete:()=>{e?t(r.defaultValue):o(new Ht.K)}});s.subscribe(l)})}function p_(s,r){1&s&&(p.TgZ(0,"mat-icon",2),p._uU(1," info "),p.qZA())}function tA(s,r){1&s&&(p.TgZ(0,"mat-icon",2),p._uU(1," warning "),p.qZA())}function f_(s,r){1&s&&(p.TgZ(0,"mat-icon",2),p._uU(1," dangerous "),p.qZA())}function m_(s,r){1&s&&(p.TgZ(0,"mat-icon",2),p._uU(1," check_circle "),p.qZA())}const iA=["*"];let Sl=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275cmp=p.Xpm({type:s,selectors:[["perun-web-apps-alert"]],inputs:{alert_type:"alert_type"},ngContentSelectors:iA,decls:6,vars:12,consts:[[1,"perun-alert","d-flex","align-items-flex-start"],["class","perun-alert-icon",4,"ngIf"],[1,"perun-alert-icon"]],template:function(e,t){1&e&&(p.F$t(),p.TgZ(0,"div",0),p.YNc(1,p_,2,0,"mat-icon",1),p.YNc(2,tA,2,0,"mat-icon",1),p.YNc(3,f_,2,0,"mat-icon",1),p.YNc(4,m_,2,0,"mat-icon",1),p.Hsn(5),p.qZA()),2&e&&(p.ekj("warn-alert","warn"===t.alert_type)("error-alert","error"===t.alert_type)("success-alert","success"===t.alert_type)("info-alert","info"===t.alert_type),p.xp6(1),p.Q6J("ngIf","info"===t.alert_type),p.xp6(1),p.Q6J("ngIf","warn"===t.alert_type),p.xp6(1),p.Q6J("ngIf","error"===t.alert_type),p.xp6(1),p.Q6J("ngIf","success"===t.alert_type))},dependencies:[Ft,T.O5],styles:[".perun-alert[_ngcontent-%COMP%]{position:relative;padding:.75rem 1.25rem;margin-top:1rem;margin-bottom:1rem}.perun-alert.info-alert[_ngcontent-%COMP%]{font-style:italic;color:gray;text-align:left;border:1px #b3b3b3 solid;border-radius:10px}.perun-alert.warn-alert[_ngcontent-%COMP%]{font-weight:700;text-align:left;border:1px #ececec solid;border-radius:10px;background-color:#ececec}.perun-alert-icon[_ngcontent-%COMP%]{padding-right:2rem}.perun-alert.error-alert[_ngcontent-%COMP%]{text-align:left;border:1px #fedcda solid;border-radius:10px;background-color:#fedcda}.perun-alert.success-alert[_ngcontent-%COMP%]{text-align:left;border:1px #d7ffd7 solid;border-radius:10px;background-color:#d7ffd7}"]}),s})(),nA=(()=>{class s{constructor(e,t){this.dialogRef=e,this.data=t}cancel(){this.dialogRef.close(!1)}submit(){this.dialogRef.close(!0)}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(kn),p.Y36(hs))},s.\u0275cmp=p.Xpm({type:s,selectors:[["perun-web-apps-mfa-required-dialog"]],decls:15,vars:17,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["alert_type","warn"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"hidden","click"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,t){1&e&&(p.TgZ(0,"h1",0),p._uU(1),p.ALo(2,"translate"),p.qZA(),p.TgZ(3,"div",1)(4,"perun-web-apps-alert",2),p._uU(5),p.ALo(6,"translate"),p.ALo(7,"translate"),p.qZA()(),p.TgZ(8,"div",3)(9,"button",4),p.NdJ("click",function(){return t.cancel()}),p._uU(10),p.ALo(11,"translate"),p.qZA(),p.TgZ(12,"button",5),p.NdJ("click",function(){return t.submit()}),p._uU(13),p.ALo(14,"translate"),p.qZA()()),2&e&&(p.xp6(1),p.Oqu(p.lcZ(2,7,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.TITLE")),p.xp6(4),p.hij(" ",t.data.mfaRoleException?p.lcZ(6,9,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.INFO_ROLE"):p.lcZ(7,11,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.INFO")," "),p.xp6(4),p.Q6J("hidden",t.data.mfaRoleException),p.xp6(1),p.hij(" ",p.lcZ(11,13,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.CANCEL")," "),p.xp6(2),p.Tol(t.data.mfaRoleException?"ml-auto":"ml-2"),p.xp6(1),p.hij(" ",p.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.STEP_UP")," "))},dependencies:[oa,sr,sa,Jr,Sl,Si]}),s})(),Gi=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275cmp=p.Xpm({type:s,selectors:[["perun-web-apps-focus-on-mfa-window"]],decls:9,vars:6,consts:[[1,"text-center","custom-dialog"],[1,"align-text-bottom"]],template:function(e,t){1&e&&(p.TgZ(0,"div",0)(1,"div")(2,"mat-icon",1),p._uU(3," info "),p.qZA(),p._uU(4),p.ALo(5,"translate"),p.qZA(),p.TgZ(6,"div"),p._uU(7),p.ALo(8,"translate"),p.qZA()()),2&e&&(p.xp6(4),p.hij(" ",p.lcZ(5,2,"SHARED_LIB.PERUN.COMPONENTS.FOCUS_ON_MFA_DIALOG.MODAL")," "),p.xp6(3),p.hij(" ",p.lcZ(8,4,"SHARED_LIB.PERUN.COMPONENTS.FOCUS_ON_MFA_DIALOG.MODAL_WARNING")," "))},dependencies:[Ft,Si],styles:[".custom-dialog[_ngcontent-%COMP%]{background-color:#000;color:#fffffff2;font-size:1.2rem}"]}),s})(),gs=(()=>{class s{constructor(e,t){this.data=e,this.dialogRef=t}cancel(){this.dialogRef.close(!1)}submit(){window.open(this.data.tokensUrl,"_blank"),this.dialogRef.close(!0)}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(hs),p.Y36(kn))},s.\u0275cmp=p.Xpm({type:s,selectors:[["perun-web-apps-no-mfa-tokens-dialog"]],decls:14,vars:12,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["alert_type","warn"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(p.TgZ(0,"h1",0),p._uU(1),p.ALo(2,"translate"),p.qZA(),p.TgZ(3,"div",1)(4,"perun-web-apps-alert",2),p._uU(5),p.ALo(6,"translate"),p.qZA()(),p.TgZ(7,"div",3)(8,"button",4),p.NdJ("click",function(){return t.cancel()}),p._uU(9),p.ALo(10,"translate"),p.qZA(),p.TgZ(11,"button",5),p.NdJ("click",function(){return t.submit()}),p._uU(12),p.ALo(13,"translate"),p.qZA()()),2&e&&(p.xp6(1),p.Oqu(p.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.TITLE")),p.xp6(4),p.hij(" ",p.lcZ(6,6,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.INFO")," "),p.xp6(4),p.hij(" ",p.lcZ(10,8,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.CANCEL")," "),p.xp6(3),p.hij(" ",p.lcZ(13,10,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.MANAGE_TOKENS")," "))},dependencies:[oa,sr,sa,Jr,Sl,Si]}),s})(),np=(()=>{class s{constructor(e,t,o,l){this.dialog=e,this.oauthService=t,this.authService=o,this.store=l}openMfaWindow(e){let t=null,o=null;const l=lr();l.width="450px",l.data={mfaRoleException:e};const c=this.dialog.open(nA,l);let n=!1;if(c.afterClosed().subscribe(i=>{if(i){if(sessionStorage.setItem("mfaRequired","true"),sessionStorage.setItem("oldAccessToken",this.oauthService.getAccessToken()),sessionStorage.setItem("oldRefreshToken",this.oauthService.getRefreshToken()),t=this.setupMfaWindow(),t){const a=lr();a.width="450px",a.panelClass="noBorderDialog",o=this.dialog.open(Gi,a)}}else n=!0}),localStorage.getItem("noMfaTokenDialog")){localStorage.removeItem("noMfaTokenDialog");const i=lr();i.width="450px",i.data={tokensUrl:this.store.getProperty("mfa").url_en},this.dialog.open(gs,i)}return new We.y(i=>{const a=setInterval(()=>t?.closed?(clearInterval(a),o.close(),sessionStorage.removeItem("mfaRequired"),sessionStorage.removeItem("mfaProcessed"),null===this.oauthService.getAccessToken()&&(localStorage.setItem("access_token",sessionStorage.getItem("oldAccessToken")),localStorage.setItem("refresh_token",sessionStorage.getItem("oldRefreshToken"))),i.next(!0)):n?(clearInterval(a),i.next(!1)):void 0,1e3)})}catchNoMfaTokenError(e){"unmet_authentication_requirements"===e&&(localStorage.setItem("noMfaTokenDialog","true"),window.close())}mfaWindowForceLogout(){if(sessionStorage.getItem("mfaRequired")&&!sessionStorage.getItem("mfaProcessed"))return sessionStorage.setItem("mfaProcessed","true"),this.oauthService.logOut(!0),this.authService.loadOidcConfigData(),void this.oauthService.loadDiscoveryDocumentAndLogin();sessionStorage.removeItem("mfaRequired")}closeMfaWindow(){sessionStorage.getItem("mfaProcessed")&&!sessionStorage.getItem("mfaRequired")&&(sessionStorage.removeItem("mfaProcessed"),window.close())}setupMfaWindow(){const e=location.pathname+location.search,l=window.top;return window.open(e,"_blank",`width=600,height=600,top=${l.outerHeight/2+l.screenY-300}, left=${l.outerWidth/2+l.screenX-300}`)}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(or),p.LFG(Wr.Ct),p.LFG(ms),p.LFG(Cn))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),g_=(()=>{class s{constructor(e,t,o,l,c,n,i,a){this.authService=e,this.oauthService=t,this.storeService=o,this.authResolver=l,this.authzService=c,this.dialog=n,this.router=i,this.mfaHandlerService=a,this.loginScreenShown=!1,this.serviceAccess=!1,this.serviceAccessLoginScreen=!1}isLoginScreenShown(){return this.loginScreenShown}isServiceAccess(){return this.serviceAccess}isServiceAccessLoginScreenShown(){return this.serviceAccessLoginScreen}verifyAuth(){if(this.mfaHandlerService.mfaWindowForceLogout(),sessionStorage.getItem("baPrincipal"))return this.serviceAccess=!0,sessionStorage.getItem("auth:redirect")?this.redirectToOriginDestination():Promise.resolve(!0);if("/service-access"!==location.pathname&&!this.storeService.getProperty("auto_service_access_redirect")){this.authService.loadOidcConfigData();const e=location.pathname,t=location.search.substring(1);return"/api-callback"===e?this.oauthService.loadDiscoveryDocumentAndTryLogin().then(()=>this.startRefreshToken()).then(()=>this.redirectToOriginDestination()):this.oauthService.loadDiscoveryDocument().then(()=>this.tryRefreshToken()).then(()=>"Linker"===this.storeService.getProperty("application")?(sessionStorage.setItem("auth:queryParams",t),localStorage.removeItem("access_token"),!1):this.oauthService.hasValidAccessToken()?this.startRefreshToken():this.isPotentiallyValidPath(e)?(sessionStorage.setItem("auth:redirect",e),sessionStorage.setItem("auth:queryParams",t),!1):Promise.reject("Invalid path"))}}loadPrincipal(){return ip(this.authzService.getPerunPrincipal()).then(e=>{if(null===e.user){const t=lr();this.dialog.open(u_,t)}else this.storeService.setPerunPrincipal(e),this.authResolver.init(e)})}simpleLoadPrincipal(){return ip(this.authzService.getPerunPrincipal()).then(e=>{this.storeService.setPerunPrincipal(e)})}checkRouteGuard(){const e=localStorage.getItem("routeAuthGuard");e&&(localStorage.removeItem("routeAuthGuard"),this.router.navigate([e],{queryParamsHandling:"merge"}))}handleAuthStart(){if(this.storeService.getProperty("auto_service_access_redirect")&&"/service-access"!==location.pathname){this.serviceAccess=!0,this.serviceAccessLoginScreen=!0;const e=location.pathname,t=location.search.substring(1);sessionStorage.setItem("auth:redirect",e),sessionStorage.setItem("auth:queryParams",t);const o={};return t.split("&").forEach(l=>{const c=l.split("=");o[c[0]]=c[1]}),this.router.navigate(["service-access"],{queryParams:o,queryParamsHandling:"merge"}).then()}if("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal")||this.storeService.getProperty("auto_service_access_redirect")){this.serviceAccess=!0,this.serviceAccessLoginScreen=!0;const e=location.search.substring(1);return sessionStorage.setItem("auth:queryParams",e),Promise.resolve()}return this.storeService.getProperty("auto_auth_redirect")?(sessionStorage.getItem("mfaProcessed")||localStorage.setItem("routeAuthGuard",window.location.pathname),this.startAuth().then(()=>new Promise(()=>{}))):(this.setLoginScreen(!0),localStorage.setItem("routeAuthGuard",window.location.pathname),void this.router.navigate(["login"],{queryParamsHandling:"merge"}))}setLoginScreen(e){this.loginScreenShown=e}isPotentiallyValidPath(e){const t=["/home","/organizations","/facilities","/myProfile","/admin","/login","/service-access","/profile"];if("/"===e)return!0;for(const o of t)if(e.startsWith(o))return!0;return!1}startRefreshToken(){return this.oauthService.hasValidAccessToken()?(this.oauthService.events.pipe((0,Wt.h)(e=>"token_expires"===e.type&&"access_token"===e.info)).subscribe(()=>{this.oauthService.refreshToken()}),Promise.resolve(!0)):Promise.resolve(!1)}tryRefreshToken(){return localStorage.getItem("refresh_token")&&!this.oauthService.hasValidAccessToken()?this.oauthService.refreshToken().then(()=>Promise.resolve()).catch(()=>Promise.resolve()):Promise.resolve()}redirectToOriginDestination(){const e=sessionStorage.getItem("mfa_route");if(e)return this.router.navigate([e],{replaceUrl:!0,queryParamsHandling:"merge"});let t=sessionStorage.getItem("auth:redirect");(!t||"/login"===t)&&(t="/"),sessionStorage.removeItem("auth:redirect");const o=sessionStorage.getItem("auth:queryParams");let l=[];o&&(l=o.split("&"));const c={};return l.forEach(n=>{const i=n.split("=");c[i[0]]=i[1]}),sessionStorage.removeItem("auth:queryParams"),this.router.navigate([t],{queryParams:c,replaceUrl:!0,queryParamsHandling:"merge"})}startAuth(){return this.authService.startAuthentication(),Promise.resolve()}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(ms),p.LFG(Wr.Ct),p.LFG(Cn),p.LFG(eA),p.LFG(Tl),p.LFG(or),p.LFG(Zt),p.LFG(np))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),rA=(()=>{class s{constructor(e,t){this.matIconRegistry=e,this.domSanitizer=t,this.customIcons=[{url:"assets/img/PerunWebImages/refresh_tab-black.svg",name:"perun-refresh-enabled"},{url:"assets/img/PerunWebImages/refresh_tab-grey.svg",name:"perun-refresh-disabled"},{url:"assets/img/PerunWebImages/manage_facility_white.svg",name:"perun-manage-facility"},{url:"assets/img/PerunWebImages/vo-white.svg",name:"perun-vo"},{url:"assets/img/PerunWebImages/user-white.svg",name:"perun-user"},{url:"assets/img/PerunWebImages/perun_admin-white.svg",name:"perun-perun-admin"},{url:"assets/img/PerunWebImages/group-white.svg",name:"perun-group"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/preview-white.svg",name:"perun-preview"},{url:"assets/img/PerunWebImages/module_dependencies.svg",name:"perun-module-dependencies"},{url:"assets/img/PerunWebImages/user_destination_relationship.svg",name:"perun-user-destination-relationship"},{url:"assets/img/PerunWebImages/settings2-white.svg",name:"perun-settings2"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/applications-white.svg",name:"perun-applications"},{url:"assets/img/PerunWebImages/manager-white.svg",name:"perun-manager"},{url:"assets/img/PerunWebImages/key-white.svg",name:"perun-key"},{url:"assets/img/PerunWebImages/application_form-white.svg",name:"perun-application-form"},{url:"assets/img/PerunWebImages/notification-white.svg",name:"perun-notification"},{url:"assets/img/PerunWebImages/invite_member-white.svg",name:"perun-invite-member"},{url:"assets/img/PerunWebImages/service_identity-white.svg",name:"perun-service-identity"},{url:"assets/img/PerunWebImages/service_identity-black.svg",name:"perun-service-identity-black"},{url:"assets/img/PerunWebImages/create1-white.svg",name:"perun-create1"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource"},{url:"assets/img/PerunWebImages/resource_tags-white.svg",name:"perun-resource-tags"},{url:"assets/img/PerunWebImages/resources_state-white.svg",name:"perun-resources-state"},{url:"assets/img/PerunWebImages/external_sources-white.svg",name:"perun-external-sources"},{url:"assets/img/PerunWebImages/vo-dark.svg",name:"perun-vo-black"},{url:"assets/img/PerunWebImages/group-dark.svg",name:"perun-group-black"},{url:"assets/img/PerunWebImages/facility-dark.svg",name:"perun-facility-black"},{url:"assets/img/publications.svg",name:"perun-publications-white"},{url:"assets/img/PerunWebImages/owner-grey.svg",name:"perun-owner-grey"},{url:"assets/img/PerunWebImages/settings1-blue.svg",name:"perun-settings1"},{url:"assets/img/PerunWebImages/service_destination-blue.svg",name:"perun-service_destination"},{url:"assets/img/PerunWebImages/host-blue.svg",name:"perun-hosts"},{url:"assets/img/PerunWebImages/home.svg",name:"perun-home-white"},{url:"assets/img/PerunWebImages/security_admin-blue.svg",name:"perun-security-teams"},{url:"assets/img/PerunWebImages/black_list-white.svg",name:"perun-black-list"},{url:"assets/img/PerunWebImages/facility-white.svg",name:"perun-facility-white"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource-white"},{url:"assets/img/PerunWebImages/service-white.svg",name:"perun-service"},{url:"assets/img/PerunWebImages/resource-black.svg",name:"perun-resource-black"},{url:"assets/img/PerunWebImages/service_status-grey.svg",name:"perun-service-status"},{url:"assets/img/PerunWebImages/user-dark.svg",name:"perun-user-dark"},{url:"assets/img/PerunWebImages/statistics-blue.svg",name:"perun-statistics"},{url:"assets/img/PerunWebImages/audit_log-blue.svg",name:"perun-audit-log"},{url:"assets/img/PerunWebImages/contact-grey.svg",name:"perun-identity"},{url:"assets/img/PerunWebImages/roles.svg",name:"perun-roles"},{url:"assets/img/PerunWebImages/consent-white.svg",name:"perun-consent-hubs"},{url:"assets/img/PerunWebImages/hierarchical_vo-black.svg",name:"perun-hierarchical-vo"},{url:"assets/img/PerunWebImages/searcher-blue.svg",name:"perun-searcher"},{url:"assets/img/PerunWebImages/propagation-blue.svg",name:"perun-hierarchical-inclusion"},{url:"assets/img/PerunWebImages/verify-grey.svg",name:"perun-verify-grey"},{url:"assets/img/PerunWebImages/info-grey.svg",name:"perun-info-grey"},{url:"assets/img/PerunWebImages/logins.svg",name:"perun-logins"},{url:"assets/img/PerunWebImages/certificates.svg",name:"perun-certificates"},{url:"assets/img/PerunWebImages/authentication.svg",name:"perun-authentication"},{url:"assets/img/PerunWebImages/ban.svg",name:"perun-ban"}]}registerPerunRefreshIcon(){this.customIcons.forEach(e=>{this.matIconRegistry.addSvgIcon(e.name,this.domSanitizer.bypassSecurityTrustResourceUrl(e.url))})}}return s.\u0275fac=function(e){return new(e||s)(p.LFG($a),p.LFG(_i))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})(),rp=(()=>{class s{constructor(e){this.dialogRef=e}close(){this.dialogRef.close(!0)}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(kn))},s.\u0275cmp=p.Xpm({type:s,selectors:[["perun-web-apps-session-expiration-dialog"]],decls:11,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"ml-auto"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,t){1&e&&(p.TgZ(0,"h1",0),p._uU(1),p.ALo(2,"translate"),p.qZA(),p.TgZ(3,"div",1),p._uU(4),p.ALo(5,"translate"),p.qZA(),p.TgZ(6,"div",2)(7,"div",3)(8,"button",4),p.NdJ("click",function(){return t.close()}),p._uU(9),p.ALo(10,"translate"),p.qZA()()()),2&e&&(p.xp6(1),p.Oqu(p.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.TITLE")),p.xp6(3),p.hij(" ",p.lcZ(5,5,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.DESCRIPTION"),"\n"),p.xp6(5),p.hij(" ",p.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.SIGN_IN")," "))},dependencies:[oa,sr,sa,Jr,Si]}),s})(),__=(()=>{class s{constructor(){this.handleNextError=!0}dontHandleErrorForNext(){this.handleNextError=!1}shouldHandleError(){const e=this.handleNextError;return this.handleNextError=!0,e}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Ya=(()=>{class s{constructor(e){this.translate=e,this.addNotification=new p.vpe,this.defaultErrorDelayMs=5e3,this.defaultSuccessDelayMs=3e3}getDefaultActionMessage(){return void 0===this.defaultAction?this.defaultAction=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_ACTION"):this.defaultAction}getDefaultRpcMessage(){return void 0===this.defaultRpcMessage?this.defaultRpcMessage=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_RPC_ERROR_MESSAGE"):this.defaultRpcMessage}showRPCError(e,t=this.getDefaultRpcMessage()){this.showError("PrivilegeException"===e.name?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.PRIVILEGE_EXCEPTION"):void 0===e.name?t:t+"\n"+e.name,e,e.message)}showRouteError(){const e=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_ERROR"),t=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_DESC");this.showError(e,null,t)}showError(e,t,o,l,c){this.addNotification.emit({type:"error",error:t,description:o,title:e,actionText:void 0===l&&void 0!==o?this.getDefaultActionMessage():l,delay:this.defaultErrorDelayMs,icon:"error_outline",action:c,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}showSuccess(e,t,o,l){this.addNotification.emit({type:"success",description:t,title:e,actionText:void 0===o&&void 0!==t?this.getDefaultActionMessage():o,delay:this.defaultSuccessDelayMs,icon:"done",action:l,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(aa))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),b_=(()=>{class s{constructor(e,t,o,l,c,n,i,a){this.authService=e,this.apiRequestConfiguration=t,this.notificator=o,this.store=l,this.dialog=c,this.initAuthService=n,this.mfaHandlerService=i,this.oauthService=a}intercept(e,t){const o=this.store.getProperty("api_url");if(e.url.includes("i18n")&&(e=e.clone({setHeaders:{"Cache-control":"no-cache, must-revalidate"}})),void 0!==o&&this.isCallToPerunApi(e.url)&&!this.authService.isLoggedIn()&&!this.initAuthService.isServiceAccess()&&!this.dialogRefSessionExpiration){const l=lr();l.width="450px",this.dialogRefSessionExpiration=this.dialog.open(rp,l),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{Ca(()=>this.dialogRefSessionExpiration=void 0),sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.reauthenticate()})}return this.initAuthService.isServiceAccess()?e=e.clone({setHeaders:{Authorization:"Basic "+btoa(sessionStorage.getItem("basicUsername")+":"+sessionStorage.getItem("basicPassword"))}}):this.isCallToPerunApi(e.url)&&(e=e.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}})),this.handleRequest(e,t)}reauthenticate(){sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.initAuthService.handleAuthStart()}handleRequest(e,t){const o=this.apiRequestConfiguration.shouldHandleError(),l="POST"===e.method&&this.isNotConsolidatorOrLinker()&&this.isCallToPerunApi(e.url);return t.handle(e).pipe((0,$t.b)(c=>{c instanceof y.Zn&&l&&this.initAuthService.loadPrincipal()}),(0,Et.K)(c=>{const n=c.error;if("MfaPrivilegeException"===n.type||"MfaRolePrivilegeException"===n.type)return this.mfaHandlerService.openMfaWindow("MfaRolePrivilegeException"===n.type).pipe((0,Ri.w)(i=>i?("MfaRolePrivilegeException"===n.type&&window.location.reload(),this.handleRequest(this.replaceAuthenticationToken(e),t)):(0,bi._)(()=>n)));{this.handleInvalidAccessTokenError(c);const i=this.formatErrors(c,e);return void 0===i?(0,bi._)(()=>c):(o&&this.notificator.showRPCError(i),(0,bi._)(()=>i))}}))}replaceAuthenticationToken(e){return e.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}})}isCallToPerunApi(e){return e.startsWith(this.store.getProperty("api_url"))}formatErrors(e,t){let o;console.error(e);const l=e.error;if(l.errorId&&(o=l),void 0!==o)return o.urlWithParams=t.urlWithParams,o.call=t.url,o.payload=t.body,o}isNotConsolidatorOrLinker(){const e=this.store.getProperty("application");return!("Linker"===e||"Consolidator"===e)}handleInvalidAccessTokenError(e){if(401===e.status){const t=lr();this.dialogRefSessionExpiration=this.dialog.open(rp,t),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{this.oauthService.logOut(!0),this.reauthenticate()})}}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(ms),p.LFG(__),p.LFG(Ya),p.LFG(Cn),p.LFG(or),p.LFG(g_),p.LFG(np),p.LFG(Wr.Ct))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})(),yd=(()=>{class s{constructor(){this.newNotificationsCount=0,this.notificationData=[]}storeNotification(e){this.newNotificationsCount++,this.notificationData.push(e)}getNotifications(){return this.notificationData.reverse()}clearNotifications(){this.notificationData=[]}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),aA=(()=>{class s{constructor(e,t,o,l){this.http=e,this.notificator=t,this.authService=o,this.storeService=l}getApiUrl(){return void 0===this.api_url&&(this.api_url=this.storeService.getProperty("api_url")),this.api_url+"/"}getHeaders(){let e=new y.WM;return e=e.set("Authorization",this.authService.getAuthorizationHeaderValue()),e}get(e,t=!0){const o=`${this.getApiUrl()}${e}`;return this.http.get(o,{headers:this.getHeaders()}).pipe((0,Et.K)(l=>this.formatErrors(l,o,null,t)))}put(e,t={},o=!0){const l=`${this.getApiUrl()}${e}`,c=JSON.stringify(t);return this.http.put(l,c,{headers:this.getHeaders()}).pipe((0,Et.K)(n=>this.formatErrors(n,l,c,o)))}post(e,t={},o=!0){const l=`${this.getApiUrl()}${e}`,c=JSON.stringify(t);let n=this.getHeaders();return n=n.set("Content-Type","application/json; charset=utf-8"),this.http.post(l,c,{headers:n}).pipe((0,Et.K)(i=>this.formatErrors(i,l,c,o)))}delete(e,t=!0){const o=`${this.getApiUrl()}${e}`;return this.http.delete(o,{headers:this.getHeaders()}).pipe((0,Et.K)(l=>this.formatErrors(l,o,null,t)))}formatErrors(e,t,o,l){const c=e.error;return c.call=t,c.payload=o,l&&this.notificator.showRPCError(e.error),(0,bi._)(c)}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(y.eN),p.LFG(Ya),p.LFG(ms),p.LFG(Cn))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),wd=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[T.ez]}),s})(),ap=(()=>{class s{transform(e){return[e.titleBefore,e.firstName,e.middleName,e.lastName,e.titleAfter].join(" ")}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275pipe=p.Yjl({name:"userFullName",type:s,pure:!0}),s})(),op=(()=>{class s{constructor(e,t){this.translate=e,this.storage=t}transform(e,t="en"){const o=this.storage.getProperty("custom_labels");if(o)for(const l of o)if(l.label===e)return l[t];return e}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(aa,16),p.Y36(Cn,16))},s.\u0275pipe=p.Yjl({name:"customTranslate",type:s,pure:!0}),s})();function dA(s,r){if(1&s&&(p.O4$(),p._UZ(0,"circle",4)),2&s){const e=p.oxw(),t=p.MAs(1);p.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+e._spinnerAnimationLabel)("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),p.uIk("r",e._getCircleRadius())}}function uA(s,r){if(1&s&&(p.O4$(),p._UZ(0,"circle",4)),2&s){const e=p.oxw(),t=p.MAs(1);p.Udp("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),p.uIk("r",e._getCircleRadius())}}const v_=Fa(class{constructor(s){this._elementRef=s}},"primary"),hA=new p.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function A_(){return{diameter:100}}});class Bn extends v_{constructor(r,e,t,o,l,c,n,i){super(r),this._document=t,this._diameter=100,this._value=0,this._resizeSubscription=qt.w0.EMPTY,this.mode="determinate";const a=Bn._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),a.has(t.head)||a.set(t.head,new Set([100])),this._noopAnimations="NoopAnimations"===o&&!!l&&!l._forceAnimations,"mat-spinner"===r.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),l&&(l.color&&(this.color=this.defaultColor=l.color),l.diameter&&(this.diameter=l.diameter),l.strokeWidth&&(this.strokeWidth=l.strokeWidth)),e.isBrowser&&e.SAFARI&&n&&c&&i&&(this._resizeSubscription=n.change(150).subscribe(()=>{"indeterminate"===this.mode&&i.run(()=>c.markForCheck())}))}get diameter(){return this._diameter}set diameter(r){this._diameter=Vi(r),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(r){this._strokeWidth=Vi(r)}get value(){return"determinate"===this.mode?this._value:0}set value(r){this._value=Math.max(0,Math.min(100,Vi(r)))}ngOnInit(){const r=this._elementRef.nativeElement;this._styleRoot=$r(r)||this._document.head,this._attachStyleNode(),r.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const r=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${r} ${r}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_getCircleTransformOrigin(r){const e=50*(r.currentScale??1);return`${e}% ${e}%`}_attachStyleNode(){const r=this._styleRoot,e=this._diameter,t=Bn._diameters;let o=t.get(r);if(!o||!o.has(e)){const l=this._document.createElement("style");l.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),l.textContent=this._getAnimationText(),r.appendChild(l),o||(o=new Set,t.set(r,o)),o.add(e)}}_getAnimationText(){const r=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*r).replace(/END_VALUE/g,""+.2*r).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}Bn._diameters=new WeakMap,Bn.\u0275fac=function(r){return new(r||Bn)(p.Y36(p.SBq),p.Y36(fi),p.Y36(T.K0,8),p.Y36(p.QbO,8),p.Y36(hA),p.Y36(p.sBO),p.Y36(za),p.Y36(p.R0b))},Bn.\u0275cmp=p.Xpm({type:Bn,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(r,e){2&r&&(p.uIk("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),p.Udp("width",e.diameter,"px")("height",e.diameter,"px"),p.ekj("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[p.qOj],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(r,e){1&r&&(p.O4$(),p.TgZ(0,"svg",0,1),p.YNc(2,dA,1,11,"circle",2),p.YNc(3,uA,1,9,"circle",3),p.qZA()),2&r&&(p.Udp("width",e.diameter,"px")("height",e.diameter,"px"),p.Q6J("ngSwitch","indeterminate"===e.mode),p.uIk("viewBox",e._getViewBox()),p.xp6(2),p.Q6J("ngSwitchCase",!0),p.xp6(1),p.Q6J("ngSwitchCase",!1))},dependencies:[T.RF,T.n9],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:rgba(0,0,0,0);transition:stroke-dashoffset 225ms linear}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}.mat-progress-spinner[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-progress-spinner._mat-animation-noopable svg,.mat-progress-spinner._mat-animation-noopable circle{animation:none;transition: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)}}"],encapsulation:2,changeDetection:0});let vd=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[Ae,T.ez,Ae]}),s})();const T_=Kn({passive:!0});let E_=(()=>{class s{constructor(e,t){this._platform=e,this._ngZone=t,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return jt.E;const t=Xt(e),o=this._monitoredElements.get(t);if(o)return o.subject;const l=new xe.x,c="cdk-text-field-autofilled",n=i=>{"cdk-text-field-autofill-start"!==i.animationName||t.classList.contains(c)?"cdk-text-field-autofill-end"===i.animationName&&t.classList.contains(c)&&(t.classList.remove(c),this._ngZone.run(()=>l.next({target:i.target,isAutofilled:!1}))):(t.classList.add(c),this._ngZone.run(()=>l.next({target:i.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{t.addEventListener("animationstart",n,T_),t.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(t,{subject:l,unlisten:()=>{t.removeEventListener("animationstart",n,T_)}}),l}stopMonitoring(e){const t=Xt(e),o=this._monitoredElements.get(t);o&&(o.unlisten(),o.subject.complete(),t.classList.remove("cdk-text-field-autofill-monitored"),t.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(t))}ngOnDestroy(){this._monitoredElements.forEach((e,t)=>this.stopMonitoring(t))}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(fi),p.LFG(p.R0b))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),cp=(()=>{class s{constructor(e,t,o,l){this._elementRef=e,this._platform=t,this._ngZone=o,this._destroyed=new xe.x,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._handleFocusEvent=c=>{this._hasFocus="focus"===c.type},this._document=l,this._textareaElement=this._elementRef.nativeElement}get minRows(){return this._minRows}set minRows(e){this._minRows=Vi(e),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(e){this._maxRows=Vi(e),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(e){e=ct(e),this._enabled!==e&&((this._enabled=e)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(e){this._cachedPlaceholderHeight=void 0,e?this._textareaElement.setAttribute("placeholder",e):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}_setMinHeight(){const e=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;e&&(this._textareaElement.style.minHeight=e)}_setMaxHeight(){const e=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;e&&(this._textareaElement.style.maxHeight=e)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{Yo(this._getWindow(),"resize").pipe($c(16),Rt(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0)),this._textareaElement.addEventListener("focus",this._handleFocusEvent),this._textareaElement.addEventListener("blur",this._handleFocusEvent)}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._textareaElement.removeEventListener("focus",this._handleFocusEvent),this._textareaElement.removeEventListener("blur",this._handleFocusEvent),this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let e=this._textareaElement.cloneNode(!1);e.rows=1,e.style.position="absolute",e.style.visibility="hidden",e.style.border="none",e.style.padding="0",e.style.height="",e.style.minHeight="",e.style.maxHeight="",e.style.overflow="hidden",this._textareaElement.parentNode.appendChild(e),this._cachedLineHeight=e.clientHeight,e.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){const e=this._textareaElement,t=e.style.marginBottom||"",o=this._platform.FIREFOX,l=o&&this._hasFocus,c=o?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";l&&(e.style.marginBottom=`${e.clientHeight}px`),e.classList.add(c);const n=e.scrollHeight-4;return e.classList.remove(c),l&&(e.style.marginBottom=t),n}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const e=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=e}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(e=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;const t=this._elementRef.nativeElement,o=t.value;if(!e&&this._minRows===this._previousMinRows&&o===this._previousValue)return;const l=this._measureScrollHeight(),c=Math.max(l,this._cachedPlaceholderHeight||0);t.style.height=`${c}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(t)):setTimeout(()=>this._scrollToCaretPosition(t))}),this._previousValue=o,this._previousMinRows=this._minRows}reset(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollToCaretPosition(e){const{selectionStart:t,selectionEnd:o}=e;!this._destroyed.isStopped&&this._hasFocus&&e.setSelectionRange(t,o)}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(p.SBq),p.Y36(fi),p.Y36(p.R0b),p.Y36(T.K0,8))},s.\u0275dir=p.lG2({type:s,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(e,t){1&e&&p.NdJ("input",function(){return t._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]}),s})(),dp=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({}),s})(),S_=(()=>{class s{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(e,t){this._renderer.setProperty(this._elementRef.nativeElement,e,t)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(p.Qsj),p.Y36(p.SBq))},s.\u0275dir=p.lG2({type:s}),s})(),Qa=(()=>{class s extends S_{}return s.\u0275fac=function(){let r;return function(t){return(r||(r=p.n5z(s)))(t||s)}}(),s.\u0275dir=p.lG2({type:s,features:[p.qOj]}),s})();const Xi=new p.OlP("NgValueAccessor"),tS={provide:Xi,useExisting:(0,p.Gpc)(()=>Hl),multi:!0},nS=new p.OlP("CompositionEventMode");let Hl=(()=>{class s extends S_{constructor(e,t,o){super(e,t),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function iS(){const s=(0,T.q)()?(0,T.q)().getUserAgent():"";return/android (\d+)/.test(s.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(p.Qsj),p.Y36(p.SBq),p.Y36(nS,8))},s.\u0275dir=p.lG2({type:s,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(e,t){1&e&&p.NdJ("input",function(l){return t._handleInput(l.target.value)})("blur",function(){return t.onTouched()})("compositionstart",function(){return t._compositionStart()})("compositionend",function(l){return t._compositionEnd(l.target.value)})},features:[p._Bn([tS]),p.qOj]}),s})();function Ja(s){return null==s||("string"==typeof s||Array.isArray(s))&&0===s.length}function gA(s){return null!=s&&"number"==typeof s.length}const ti=new p.OlP("NgValidators"),Ka=new p.OlP("NgAsyncValidators"),D_=/^(?=.{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 la{static min(r){return function up(s){return r=>{if(Ja(r.value)||Ja(s))return null;const e=parseFloat(r.value);return!isNaN(e)&&e{if(Ja(r.value)||Ja(s))return null;const e=parseFloat(r.value);return!isNaN(e)&&e>s?{max:{max:s,actual:r.value}}:null}}(r)}static required(r){return _A(r)}static requiredTrue(r){return function Ad(s){return!0===s.value?null:{required:!0}}(r)}static email(r){return function pp(s){return Ja(s.value)||D_.test(s.value)?null:{email:!0}}(r)}static minLength(r){return function H_(s){return r=>Ja(r.value)||!gA(r.value)?null:r.value.lengthgA(r.value)&&r.value.length>s?{maxlength:{requiredLength:s,actualLength:r.value.length}}:null}(r)}static pattern(r){return function bA(s){if(!s)return xd;let r,e;return"string"==typeof s?(e="","^"!==s.charAt(0)&&(e+="^"),e+=s,"$"!==s.charAt(s.length-1)&&(e+="$"),r=new RegExp(e)):(e=s.toString(),r=s),t=>{if(Ja(t.value))return null;const o=t.value;return r.test(o)?null:{pattern:{requiredPattern:e,actualValue:o}}}}(r)}static nullValidator(r){return null}static compose(r){return yA(r)}static composeAsync(r){return k_(r)}}function _A(s){return Ja(s.value)?{required:!0}:null}function xd(s){return null}function P_(s){return null!=s}function R_(s){return(0,p.QGY)(s)?(0,mt.D)(s):s}function Pl(s){let r={};return s.forEach(e=>{r=null!=e?{...r,...e}:r}),0===Object.keys(r).length?null:r}function I_(s,r){return r.map(e=>e(s))}function CA(s){return s.map(r=>function aS(s){return!s.validate}(r)?r:e=>r.validate(e))}function yA(s){if(!s)return null;const r=s.filter(P_);return 0==r.length?null:function(e){return Pl(I_(e,r))}}function mp(s){return null!=s?yA(CA(s)):null}function k_(s){if(!s)return null;const r=s.filter(P_);return 0==r.length?null:function(e){return ld(I_(e,r).map(R_)).pipe((0,je.U)(Pl))}}function gp(s){return null!=s?k_(CA(s)):null}function wA(s,r){return null===s?[r]:Array.isArray(s)?[...s,r]:[s,r]}function B_(s){return s._rawValidators}function _p(s){return s._rawAsyncValidators}function Td(s){return s?Array.isArray(s)?s:[s]:[]}function bp(s,r){return Array.isArray(s)?s.includes(r):s===r}function yn(s,r){const e=Td(r);return Td(s).forEach(o=>{bp(e,o)||e.push(o)}),e}function V_(s,r){return Td(r).filter(e=>!bp(s,e))}class Ed{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(r){this._rawValidators=r||[],this._composedValidatorFn=mp(this._rawValidators)}_setAsyncValidators(r){this._rawAsyncValidators=r||[],this._composedAsyncValidatorFn=gp(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(r){this._onDestroyCallbacks.push(r)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(r=>r()),this._onDestroyCallbacks=[]}reset(r){this.control&&this.control.reset(r)}hasError(r,e){return!!this.control&&this.control.hasError(r,e)}getError(r,e){return this.control?this.control.getError(r,e):null}}class qi extends Ed{get formDirective(){return null}get path(){return null}}class ii extends Ed{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}let Sd=(()=>{class s extends class O_{constructor(r){this._cd=r}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}{constructor(e){super(e)}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(ii,2))},s.\u0275dir=p.lG2({type:s,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&p.ekj("ng-untouched",t.isUntouched)("ng-touched",t.isTouched)("ng-pristine",t.isPristine)("ng-dirty",t.isDirty)("ng-valid",t.isValid)("ng-invalid",t.isInvalid)("ng-pending",t.isPending)},features:[p.qOj]}),s})();const Il="VALID",kl="INVALID",Bl="PENDING",_s="DISABLED";function wp(s){return(Vl(s)?s.validators:s)||null}function vp(s){return Array.isArray(s)?mp(s):s||null}function U_(s,r){return(Vl(r)?r.asyncValidators:s)||null}function Hd(s){return Array.isArray(s)?gp(s):s||null}function Vl(s){return null!=s&&!Array.isArray(s)&&"object"==typeof s}class xp{constructor(r,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=r,this._rawAsyncValidators=e,this._composedValidatorFn=vp(this._rawValidators),this._composedAsyncValidatorFn=Hd(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(r){this._rawValidators=this._composedValidatorFn=r}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(r){this._rawAsyncValidators=this._composedAsyncValidatorFn=r}get parent(){return this._parent}get valid(){return this.status===Il}get invalid(){return this.status===kl}get pending(){return this.status==Bl}get disabled(){return this.status===_s}get enabled(){return this.status!==_s}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(r){this._rawValidators=r,this._composedValidatorFn=vp(r)}setAsyncValidators(r){this._rawAsyncValidators=r,this._composedAsyncValidatorFn=Hd(r)}addValidators(r){this.setValidators(yn(r,this._rawValidators))}addAsyncValidators(r){this.setAsyncValidators(yn(r,this._rawAsyncValidators))}removeValidators(r){this.setValidators(V_(r,this._rawValidators))}removeAsyncValidators(r){this.setAsyncValidators(V_(r,this._rawAsyncValidators))}hasValidator(r){return bp(this._rawValidators,r)}hasAsyncValidator(r){return bp(this._rawAsyncValidators,r)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(r={}){this.touched=!0,this._parent&&!r.onlySelf&&this._parent.markAsTouched(r)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(r=>r.markAllAsTouched())}markAsUntouched(r={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!r.onlySelf&&this._parent._updateTouched(r)}markAsDirty(r={}){this.pristine=!1,this._parent&&!r.onlySelf&&this._parent.markAsDirty(r)}markAsPristine(r={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!r.onlySelf&&this._parent._updatePristine(r)}markAsPending(r={}){this.status=Bl,!1!==r.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!r.onlySelf&&this._parent.markAsPending(r)}disable(r={}){const e=this._parentMarkedDirty(r.onlySelf);this.status=_s,this.errors=null,this._forEachChild(t=>{t.disable({...r,onlySelf:!0})}),this._updateValue(),!1!==r.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...r,skipPristineCheck:e}),this._onDisabledChange.forEach(t=>t(!0))}enable(r={}){const e=this._parentMarkedDirty(r.onlySelf);this.status=Il,this._forEachChild(t=>{t.enable({...r,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:r.emitEvent}),this._updateAncestors({...r,skipPristineCheck:e}),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(r){this._parent&&!r.onlySelf&&(this._parent.updateValueAndValidity(r),r.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(r){this._parent=r}getRawValue(){return this.value}updateValueAndValidity(r={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Il||this.status===Bl)&&this._runAsyncValidator(r.emitEvent)),!1!==r.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!r.onlySelf&&this._parent.updateValueAndValidity(r)}_updateTreeValidity(r={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(r)),this.updateValueAndValidity({onlySelf:!0,emitEvent:r.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?_s:Il}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(r){if(this.asyncValidator){this.status=Bl,this._hasOwnPendingAsyncValidator=!0;const e=R_(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(t=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(t,{emitEvent:r})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(r,e={}){this.errors=r,this._updateControlsErrors(!1!==e.emitEvent)}get(r){let e=r;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((t,o)=>t&&t._find(o),this)}getError(r,e){const t=e?this.get(e):this;return t&&t.errors?t.errors[r]:null}hasError(r,e){return!!this.getError(r,e)}get root(){let r=this;for(;r._parent;)r=r._parent;return r}_updateControlsErrors(r){this.status=this._calculateStatus(),r&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(r)}_initObservables(){this.valueChanges=new p.vpe,this.statusChanges=new p.vpe}_calculateStatus(){return this._allControlsDisabled()?_s:this.errors?kl:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Bl)?Bl:this._anyControlsHaveStatus(kl)?kl:Il}_anyControlsHaveStatus(r){return this._anyControls(e=>e.status===r)}_anyControlsDirty(){return this._anyControls(r=>r.dirty)}_anyControlsTouched(){return this._anyControls(r=>r.touched)}_updatePristine(r={}){this.pristine=!this._anyControlsDirty(),this._parent&&!r.onlySelf&&this._parent._updatePristine(r)}_updateTouched(r={}){this.touched=this._anyControlsTouched(),this._parent&&!r.onlySelf&&this._parent._updateTouched(r)}_registerOnCollectionChange(r){this._onCollectionChange=r}_setUpdateStrategy(r){Vl(r)&&null!=r.updateOn&&(this._updateOn=r.updateOn)}_parentMarkedDirty(r){return!r&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(r){return null}}class Pd extends xp{constructor(r,e,t){super(wp(e),U_(t,e)),this.controls=r,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(r,e){return this.controls[r]?this.controls[r]:(this.controls[r]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(r,e,t={}){this.registerControl(r,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}removeControl(r,e={}){this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),delete this.controls[r],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(r,e,t={}){this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),delete this.controls[r],e&&this.registerControl(r,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}contains(r){return this.controls.hasOwnProperty(r)&&this.controls[r].enabled}setValue(r,e={}){(function G_(s,r,e){s._forEachChild((t,o)=>{if(void 0===e[o])throw new p.vHH(1002,"")})})(this,0,r),Object.keys(r).forEach(t=>{(function Ap(s,r,e){const t=s.controls;if(!(r?Object.keys(t):t).length)throw new p.vHH(1e3,"");if(!t[e])throw new p.vHH(1001,"")})(this,!0,t),this.controls[t].setValue(r[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(r,e={}){null!=r&&(Object.keys(r).forEach(t=>{const o=this.controls[t];o&&o.patchValue(r[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(r={},e={}){this._forEachChild((t,o)=>{t.reset(r[o],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(r,e,t)=>(r[t]=e.getRawValue(),r))}_syncPendingControls(){let r=this._reduceChildren(!1,(e,t)=>!!t._syncPendingControls()||e);return r&&this.updateValueAndValidity({onlySelf:!0}),r}_forEachChild(r){Object.keys(this.controls).forEach(e=>{const t=this.controls[e];t&&r(t,e)})}_setUpControls(){this._forEachChild(r=>{r.setParent(this),r._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(r){for(const[e,t]of Object.entries(this.controls))if(this.contains(e)&&r(t))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,t,o)=>((t.enabled||this.disabled)&&(e[o]=t.value),e))}_reduceChildren(r,e){let t=r;return this._forEachChild((o,l)=>{t=e(t,o,l)}),t}_allControlsDisabled(){for(const r of Object.keys(this.controls))if(this.controls[r].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(r){return this.controls.hasOwnProperty(r)?this.controls[r]:null}}function bs(s,r){W_(s,r),r.valueAccessor.writeValue(s.value),s.disabled&&r.valueAccessor.setDisabledState?.(!0),function SA(s,r){r.valueAccessor.registerOnChange(e=>{s._pendingValue=e,s._pendingChange=!0,s._pendingDirty=!0,"change"===s.updateOn&&$_(s,r)})}(s,r),function hS(s,r){const e=(t,o)=>{r.valueAccessor.writeValue(t),o&&r.viewToModelUpdate(t)};s.registerOnChange(e),r._registerOnDestroy(()=>{s._unregisterOnChange(e)})}(s,r),function MA(s,r){r.valueAccessor.registerOnTouched(()=>{s._pendingTouched=!0,"blur"===s.updateOn&&s._pendingChange&&$_(s,r),"submit"!==s.updateOn&&s.markAsTouched()})}(s,r),function uS(s,r){if(r.valueAccessor.setDisabledState){const e=t=>{r.valueAccessor.setDisabledState(t)};s.registerOnDisabledChange(e),r._registerOnDestroy(()=>{s._unregisterOnDisabledChange(e)})}}(s,r)}function Sp(s,r,e=!0){const t=()=>{};r.valueAccessor&&(r.valueAccessor.registerOnChange(t),r.valueAccessor.registerOnTouched(t)),Ll(s,r),s&&(r._invokeOnDestroyCallbacks(),s._registerOnCollectionChange(()=>{}))}function Rd(s,r){s.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(r)})}function W_(s,r){const e=B_(s);null!==r.validator?s.setValidators(wA(e,r.validator)):"function"==typeof e&&s.setValidators([e]);const t=_p(s);null!==r.asyncValidator?s.setAsyncValidators(wA(t,r.asyncValidator)):"function"==typeof t&&s.setAsyncValidators([t]);const o=()=>s.updateValueAndValidity();Rd(r._rawValidators,o),Rd(r._rawAsyncValidators,o)}function Ll(s,r){let e=!1;if(null!==s){if(null!==r.validator){const o=B_(s);if(Array.isArray(o)&&o.length>0){const l=o.filter(c=>c!==r.validator);l.length!==o.length&&(e=!0,s.setValidators(l))}}if(null!==r.asyncValidator){const o=_p(s);if(Array.isArray(o)&&o.length>0){const l=o.filter(c=>c!==r.asyncValidator);l.length!==o.length&&(e=!0,s.setAsyncValidators(l))}}}const t=()=>{};return Rd(r._rawValidators,t),Rd(r._rawAsyncValidators,t),e}function $_(s,r){s._pendingDirty&&s.markAsDirty(),s.setValue(s._pendingValue,{emitModelToViewChange:!1}),r.viewToModelUpdate(s._pendingValue),s._pendingChange=!1}function DA(s,r){W_(s,r)}function Dp(s,r){if(!s.hasOwnProperty("model"))return!1;const e=s.model;return!!e.isFirstChange()||!Object.is(r,e.currentValue)}function Hp(s,r){s._syncPendingControls(),r.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function Ir(s,r){if(!r)return null;let e,t,o;return Array.isArray(r),r.forEach(l=>{l.constructor===Hl?e=l:function HA(s){return Object.getPrototypeOf(s.constructor)===Qa}(l)?t=l:o=l}),o||t||e||null}const Pp={provide:qi,useExisting:(0,p.Gpc)(()=>Xa)},Fl=(()=>Promise.resolve(null))();let Xa=(()=>{class s extends qi{constructor(e,t){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new p.vpe,this.form=new Pd({},mp(e),gp(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Fl.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),bs(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Fl.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Fl.then(()=>{const t=this._findContainer(e.path),o=new Pd({});DA(o,e),t.registerControl(e.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Fl.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){Fl.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,Hp(this.form,this._directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(ti,10),p.Y36(Ka,10))},s.\u0275dir=p.lG2({type:s,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&p.NdJ("submit",function(l){return t.onSubmit(l)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[p._Bn([Pp]),p.qOj]}),s})();function Id(s,r){const e=s.indexOf(r);e>-1&&s.splice(e,1)}function Nl(s){return"object"==typeof s&&null!==s&&2===Object.keys(s).length&&"value"in s&&"disabled"in s}const K_=class extends xp{constructor(r=null,e,t){super(wp(e),U_(t,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(r),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Vl(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=Nl(r)?r.value:r)}setValue(r,e={}){this.value=this._pendingValue=r,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(r,e={}){this.setValue(r,e)}reset(r=this.defaultValue,e={}){this._applyFormState(r),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(r){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(r){this._onChange.push(r)}_unregisterOnChange(r){Id(this._onChange,r)}registerOnDisabledChange(r){this._onDisabledChange.push(r)}_unregisterOnDisabledChange(r){Id(this._onDisabledChange,r)}_forEachChild(r){}_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(r){Nl(r)?(this.value=this._pendingValue=r.value,r.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=r}},mS=K_,Z_={provide:ii,useExisting:(0,p.Gpc)(()=>kd)},Ip=(()=>Promise.resolve(null))();let kd=(()=>{class s extends ii{constructor(e,t,o,l,c){super(),this._changeDetectorRef=c,this.control=new K_,this._registered=!1,this.update=new p.vpe,this._parent=e,this._setValidators(t),this._setAsyncValidators(o),this.valueAccessor=Ir(0,l)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const t=e.name.previousValue;this.formDirective.removeControl({name:t,path:this._getPath(t)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),Dp(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_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(){bs(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(e){Ip.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const t=e.isDisabled.currentValue,o=0!==t&&(0,p.D6c)(t);Ip.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?function Ol(s,r){return[...r.path,s]}(e,this._parent):[e]}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(qi,9),p.Y36(ti,10),p.Y36(Ka,10),p.Y36(Xi,10),p.Y36(p.sBO,8))},s.\u0275dir=p.lG2({type:s,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[p._Bn([Z_]),p.qOj,p.TTD]}),s})(),Vd=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({}),s})();const kp=new p.OlP("NgModelWithFormControlWarning"),LA={provide:ii,useExisting:(0,p.Gpc)(()=>Bp)};let Bp=(()=>{class s extends ii{constructor(e,t,o,l){super(),this._ngModelWarningConfig=l,this.update=new p.vpe,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(t),this.valueAccessor=Ir(0,o)}set isDisabled(e){}ngOnChanges(e){if(this._isControlChanged(e)){const t=e.form.previousValue;t&&Sp(t,this,!1),bs(this.form,this),this.form.updateValueAndValidity({emitEvent:!1})}Dp(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Sp(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}}return s._ngModelWarningSentOnce=!1,s.\u0275fac=function(e){return new(e||s)(p.Y36(ti,10),p.Y36(Ka,10),p.Y36(Xi,10),p.Y36(kp,8))},s.\u0275dir=p.lG2({type:s,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[p._Bn([LA]),p.qOj,p.TTD]}),s})();const vS={provide:qi,useExisting:(0,p.Gpc)(()=>Od)};let Od=(()=>{class s extends qi{constructor(e,t){super(),this.validators=e,this.asyncValidators=t,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new p.vpe,this._setValidators(e),this._setAsyncValidators(t)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Ll(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const t=this.form.get(e.path);return bs(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){Sp(e.control||null,e,!1),function Q_(s,r){const e=s.indexOf(r);e>-1&&s.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,t){this.form.get(e.path).setValue(t)}onSubmit(e){return this.submitted=!0,Hp(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const t=e.control,o=this.form.get(e.path);t!==o&&(Sp(t||null,e),(s=>s instanceof K_)(o)&&(bs(o,e),e.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const t=this.form.get(e.path);DA(t,e),t.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const t=this.form.get(e.path);t&&function pS(s,r){return Ll(s,r)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){W_(this.form,this),this._oldForm&&Ll(this._oldForm,this)}_checkFormPresent(){}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(ti,10),p.Y36(Ka,10))},s.\u0275dir=p.lG2({type:s,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&p.NdJ("submit",function(l){return t.onSubmit(l)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[p._Bn([vS]),p.qOj,p.TTD]}),s})(),R=(()=>{class s{constructor(){this._validator=xd}ngOnChanges(e){if(this.inputName in e){const t=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(t),this._validator=this._enabled?this.createValidator(t):xd,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275dir=p.lG2({type:s,features:[p.TTD]}),s})();const Te={provide:ti,useExisting:(0,p.Gpc)(()=>Fe),multi:!0};let Fe=(()=>{class s extends R{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=p.D6c,this.createValidator=e=>_A}enabled(e){return e}}return s.\u0275fac=function(){let r;return function(t){return(r||(r=p.n5z(s)))(t||s)}}(),s.\u0275dir=p.lG2({type:s,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&p.uIk("required",t._enabled?"":null)},inputs:{required:"required"},features:[p._Bn([Te]),p.qOj]}),s})(),Nd=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[Vd]}),s})(),jl=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[Nd]}),s})(),to=(()=>{class s{static withConfig(e){return{ngModule:s,providers:[{provide:kp,useValue:e.warnOnNgModelWithFormControl}]}}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[Nd]}),s})();const MS=new p.OlP("MAT_INPUT_VALUE_ACCESSOR"),oH=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let sH=0;const lH=Ju(class{constructor(s,r,e,t){this._defaultErrorStateMatcher=s,this._parentForm=r,this._parentFormGroup=e,this.ngControl=t,this.stateChanges=new xe.x}});let zA=(()=>{class s extends lH{constructor(e,t,o,l,c,n,i,a,d,u){super(n,l,c,o),this._elementRef=e,this._platform=t,this._autofillMonitor=a,this._formField=u,this._uid="mat-input-"+sH++,this.focused=!1,this.stateChanges=new xe.x,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(H=>Hu().has(H)),this._iOSKeyupListener=H=>{const z=H.target;!z.value&&0===z.selectionStart&&0===z.selectionEnd&&(z.setSelectionRange(1,1),z.setSelectionRange(0,0))};const f=this._elementRef.nativeElement,b=f.nodeName.toLowerCase();this._inputValueAccessor=i||f,this._previousNativeValue=this.value,this.id=this.id,t.IOS&&d.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===b,this._isTextarea="textarea"===b,this._isInFormField=!!u,this._isNativeSelect&&(this.controlType=f.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=ct(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(la.required)??!1}set required(e){this._required=ct(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&Hu().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=ct(e)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){const e=this._formField,t=e&&"legacy"===e.appearance&&!e._hasLabel?.()?null:this.placeholder;if(t!==this._previousPlaceholder){const o=this._elementRef.nativeElement;this._previousPlaceholder=t,t?o.setAttribute("placeholder",t):o.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){oH.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(p.SBq),p.Y36(fi),p.Y36(ii,10),p.Y36(Xa,8),p.Y36(Od,8),p.Y36(Fc),p.Y36(MS,10),p.Y36(E_),p.Y36(p.R0b),p.Y36(ad,8))},s.\u0275dir=p.lG2({type:s,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(e,t){1&e&&p.NdJ("focus",function(){return t._focusChanged(!0)})("blur",function(){return t._focusChanged(!1)})("input",function(){return t._onInput()}),2&e&&(p.Ikx("disabled",t.disabled)("required",t.required),p.uIk("id",t.id)("data-placeholder",t.placeholder)("name",t.name||null)("readonly",t.readonly&&!t._isNativeSelect||null)("aria-invalid",t.empty&&t.required?null:t.errorState)("aria-required",t.required),p.ekj("mat-input-server",t._isServer)("mat-native-select-inline",t._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[p._Bn([{provide:id,useExisting:s}]),p.qOj,p.TTD]}),s})(),ab=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({providers:[Fc],imports:[dp,Sr,Ae,dp,Sr]}),s})();function cH(s,r){1&s&&p._UZ(0,"mat-spinner",7)}function dH(s,r){if(1&s){const e=p.EpF();p.TgZ(0,"div",8)(1,"perun-web-apps-alert",9),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"mat-form-field",10)(5,"textarea",11),p.NdJ("ngModelChange",function(o){p.CHM(e);const l=p.oxw();return p.KtG(l.message=o)}),p.ALo(6,"translate"),p.qZA()()()}if(2&s){const e=p.oxw();p.xp6(2),p.hij(" ",p.lcZ(3,3,"SHARED_LIB.CONSOLIDATOR.SEND_MESSAGE_TO_SUPPORT_DIALOG.SUBTITLE")," "),p.xp6(3),p.s9C("placeholder",p.lcZ(6,5,"SHARED_LIB.CONSOLIDATOR.SEND_MESSAGE_TO_SUPPORT_DIALOG.PLACEHOLDER")),p.Q6J("ngModel",e.message)}}let uH=(()=>{class s{constructor(e,t,o,l,c,n){this.dialogRef=e,this.storeService=t,this.authzService=o,this.oAuthStorage=l,this.rtMessages=c,this.userFullNamePipe=n,this.loading=!1,this.message="Hello, during the linking of my accounts I encountered a situation where the system cannot automatically link these accounts. Therefore I want to ask you for help with linking my accounts."}onCancel(){this.dialogRef.close(null)}onSend(){this.loading=!0;const e=this.storeService.getPerunPrincipal().user,t=location.search.substring(1);this.oAuthStorage.setItem("access_token",bd("formerToken",t)),this.authzService.getPerunPrincipal().subscribe(o=>{this.rtMessages.sentMessageToRTWithQueue("perun","Account linking: The accounts could not be automatically linked.",this.getFullEmailBody(e,o.user)).subscribe({next:()=>{this.loading=!1,this.dialogRef.close(!0)},error:()=>{this.loading=!1,this.dialogRef.close(!1)}})})}getFullEmailBody(e,t){const o=this.storeService.getProperty("config");let l=this.message+"\n________________________________________________________________________\n\nAccount linking: The accounts could not be automatically linked.\nThe user proved his identities, but they were connected to different users.\nBy this message the user is asking for help with identity consolidation.\n";return l=l.concat("\n\n"),l=l.concat("Information about users: \n\n"),l=l.concat("First user: \nid="+t.id.toString()+"\nName: "+this.userFullNamePipe.transform(t)+"\n\n"),l=l.concat("Second user: \nid="+e.id.toString()+"\nName: "+this.userFullNamePipe.transform(e)+"\n\n"),l=l.concat("Perun instance: "+o+"\n"),l=l.concat("Sended from new Consolidator Gui, version: ",x(4147).i8),l.split("\n").join("\n ")}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(kn),p.Y36(Cn),p.Y36(Tl),p.Y36(Wr.Hy),p.Y36(Zh),p.Y36(ap))},s.\u0275cmp=p.Xpm({type:s,selectors:[["perun-web-apps-send-message-dialog"]],decls:14,vars:11,consts:[["mat-dialog-title",""],[1,"page-subtitle"],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],["alert_type","info"],[1,"w-100"],["matInput","","cdkTextareaAutosize","",3,"ngModel","placeholder","ngModelChange"]],template:function(e,t){1&e&&(p.TgZ(0,"div")(1,"div",0)(2,"h1",1),p._uU(3),p.ALo(4,"translate"),p.qZA()(),p.YNc(5,cH,1,0,"mat-spinner",2),p.YNc(6,dH,7,7,"div",3),p.TgZ(7,"div",4)(8,"button",5),p.NdJ("click",function(){return t.onCancel()}),p._uU(9),p.ALo(10,"translate"),p.qZA(),p.TgZ(11,"button",6),p.NdJ("click",function(){return t.onSend()}),p._uU(12),p.ALo(13,"translate"),p.qZA()()()),2&e&&(p.xp6(3),p.hij(" ",p.lcZ(4,5,"SHARED_LIB.CONSOLIDATOR.SEND_MESSAGE_TO_SUPPORT_DIALOG.TITLE")," "),p.xp6(2),p.Q6J("ngIf",t.loading),p.xp6(1),p.Q6J("ngIf",!t.loading),p.xp6(3),p.hij(" ",p.lcZ(10,7,"SHARED_LIB.CONSOLIDATOR.SEND_MESSAGE_TO_SUPPORT_DIALOG.CANCEL")," "),p.xp6(3),p.hij(" ",p.lcZ(13,9,"SHARED_LIB.CONSOLIDATOR.SEND_MESSAGE_TO_SUPPORT_DIALOG.SUBMIT")," "))},dependencies:[T.O5,Jr,oa,sr,sa,Bn,ml,cp,zA,Hl,Sd,kd,Sl,Si]}),s})();function hH(s,r){if(1&s&&(p.TgZ(0,"mat-icon",6),p._uU(1),p.qZA()),2&s){const e=p.oxw();p.xp6(1),p.hij(" ",e.icon," ")}}function pH(s,r){1&s&&p._UZ(0,"mat-icon",7)}function fH(s,r){if(1&s&&(p.TgZ(0,"span"),p._uU(1),p.qZA()),2&s){const e=p.oxw(2);p.xp6(1),p.hij(" ",e.supportMail," ")}}function mH(s,r){if(1&s&&(p.TgZ(0,"span"),p._uU(1),p.qZA()),2&s){const e=p.oxw(2);p.xp6(1),p.hij(" ",e.userMail," ")}}function gH(s,r){if(1&s&&(p.TgZ(0,"h5"),p._uU(1),p.ALo(2,"translate"),p.YNc(3,fH,2,1,"span",5),p.YNc(4,mH,2,1,"span",5),p.qZA()),2&s){const e=p.oxw();p.xp6(1),p.hij(" ",p.lcZ(2,3,"SHARED_LIB.CONSOLIDATOR."+e.result+"_SUBTITLE")," "),p.xp6(2),p.Q6J("ngIf","UNKNOWN_ERROR"===e.result),p.xp6(1),p.Q6J("ngIf","MESSAGE_SENT_TO_SUPPORT"===e.result)}}function _H(s,r){if(1&s&&(p.TgZ(0,"h5"),p._uU(1),p.ALo(2,"translate"),p.ALo(3,"translate"),p.qZA()),2&s){const e=p.oxw();p.xp6(1),p.lnq(" ",p.lcZ(2,3,"SHARED_LIB.CONSOLIDATOR.OK_SUBTITLE_WITH_MAIL_1")," ",e.userMail," ",p.lcZ(3,5,"SHARED_LIB.CONSOLIDATOR.OK_SUBTITLE_WITH_MAIL_2")," ")}}const bH=function(s){return{"background-color":s}},CH=["*"];let yH=(()=>{class s{constructor(e){this.store=e,this.supportMail=this.store.getProperty("support_mail"),this.userMail=this.store.getPerunPrincipal().additionalInformations.mail,this.color="",this.icon="",this.greenColor="#e0ffd4",this.blueColor="#d4f2ff",this.redColor="#ffd4d4",this.warningIcon="warning",this.infoIcon="info",this.messageSent="mark_email_read"}ngOnChanges(){switch(this.result){case"OK":this.color=this.greenColor;break;case"IDENTITY_REGISTERED_ALREADY":case"UNKNOWN_ERROR":this.color=this.redColor,this.icon=this.warningIcon;break;case"IDENTITY_IDENTICAL":case"IDENTITY_LINKED":case"IDENTITY_UNKNOWN":this.color=this.blueColor,this.icon=this.infoIcon;break;case"MESSAGE_SENT_TO_SUPPORT":this.color=this.blueColor,this.icon=this.messageSent;break;case"TOKEN_EXPIRED":this.color=this.blueColor,this.icon=this.warningIcon}}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(Cn))},s.\u0275cmp=p.Xpm({type:s,selectors:[["perun-web-apps-consolidation-result"]],inputs:{result:"result"},features:[p.TTD],ngContentSelectors:CH,decls:12,vars:10,consts:[[1,"p-4","m-3",3,"ngStyle"],[1,"d-flex","pb-5","flex-row"],["class","mat-icon-war mr-4",4,"ngIf"],["svgIcon","perun-verify-grey","class","perun-icon perun-icon-detail",4,"ngIf"],[1,"ml-5"],[4,"ngIf"],[1,"mat-icon-war","mr-4"],["svgIcon","perun-verify-grey",1,"perun-icon","perun-icon-detail"]],template:function(e,t){1&e&&(p.F$t(),p.TgZ(0,"div",0)(1,"div",1)(2,"div"),p.YNc(3,hH,2,1,"mat-icon",2),p.YNc(4,pH,1,0,"mat-icon",3),p.qZA(),p.TgZ(5,"div",4)(6,"h1"),p._uU(7),p.ALo(8,"translate"),p.qZA(),p.YNc(9,gH,5,5,"h5",5),p.YNc(10,_H,4,7,"h5",5),p.qZA()(),p.Hsn(11),p.qZA()),2&e&&(p.Q6J("ngStyle",p.VKq(8,bH,t.color)),p.xp6(3),p.Q6J("ngIf","OK"!==t.result),p.xp6(1),p.Q6J("ngIf","OK"===t.result),p.xp6(3),p.hij(" ",p.lcZ(8,6,"SHARED_LIB.CONSOLIDATOR."+t.result+"_TITLE")," "),p.xp6(2),p.Q6J("ngIf",!(t.userMail&&"OK"===t.result)),p.xp6(1),p.Q6J("ngIf",t.userMail&&"OK"===t.result))},dependencies:[T.O5,T.PC,Ft,Si],styles:[".mat-icon-war[_ngcontent-%COMP%]{font-size:82px}.perun-icon-detail[_ngcontent-%COMP%]{transform:scale(4.5);margin-left:3rem;margin-top:1.5rem;color:#000}"]}),s})();function wH(s,r){if(1&s){const e=p.EpF();p.TgZ(0,"button",6),p.NdJ("click",function(){p.CHM(e);const o=p.oxw();return p.KtG(o.loginAgain())}),p._uU(1),p.ALo(2,"translate"),p.qZA()}2&s&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHOW_RESULT.LOG_OTHER_BUTTON")," "))}function vH(s,r){if(1&s){const e=p.EpF();p.TgZ(0,"button",6),p.NdJ("click",function(){p.CHM(e);const o=p.oxw();return p.KtG(o.sendMessageToSupport())}),p._uU(1),p.ALo(2,"translate"),p.qZA()}2&s&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHOW_RESULT.CONTACT_SUPPORT_BUTTON")," "))}function AH(s,r){1&s&&(p.TgZ(0,"div",7),p._UZ(1,"mat-spinner",8),p.qZA())}const xH=[{path:"",redirectTo:"result",pathMatch:"full"},{path:"result/:result",component:(()=>{class s{constructor(e,t,o){this.route=e,this.dialog=t,this.oauthService=o,this.linkerResult="UNKNOWN_ERROR",this.loading=!1,this.openerWindow=window.opener}ngOnInit(){this.route.params.subscribe(e=>{this.linkerResult=e.result,this.openerWindow.postMessage(this.linkerResult,"*")})}closeWindow(){window.close()}loginAgain(){let e=location.search.substring(1);if("IDENTITY_UNKNOWN"===this.linkerResult){let t=0,o="yes";for(;""!==o;)t++,o=bd("formerToken"+t.toString(),e);e+="&formerToken"+t.toString()+"="+this.oauthService.getAccessToken()}sessionStorage.setItem("auth:queryParams",e),this.oauthService.initLoginFlow()}sendMessageToSupport(){const e=lr();e.width="1000px",this.dialog.open(uH,e).afterClosed().subscribe(o=>{!0===o?(this.linkerResult="MESSAGE_SENT_TO_SUPPORT",this.openerWindow.postMessage(this.linkerResult,"*")):!1===o&&(this.linkerResult="UNKNOWN_ERROR",this.openerWindow.postMessage(this.linkerResult,"*"))})}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(jr),p.Y36(or),p.Y36(Wr.Ct))},s.\u0275cmp=p.Xpm({type:s,selectors:[["perun-web-apps-show-result"]],decls:9,vars:7,consts:[[1,"position-relative"],[3,"result"],[1,"d-flex","mt-5"],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent","class","ml-2",3,"click",4,"ngIf"],["class","spinner-container",4,"ngIf"],["mat-flat-button","","color","accent",1,"ml-2",3,"click"],[1,"spinner-container"],[1,"ml-auto","mr-auto"]],template:function(e,t){1&e&&(p.TgZ(0,"div",0)(1,"perun-web-apps-consolidation-result",1)(2,"div",2)(3,"button",3),p.NdJ("click",function(){return t.closeWindow()}),p._uU(4),p.ALo(5,"translate"),p.qZA(),p.YNc(6,wH,3,3,"button",4),p.YNc(7,vH,3,3,"button",4),p.qZA()(),p.YNc(8,AH,2,0,"div",5),p.qZA()),2&e&&(p.xp6(1),p.Q6J("result",t.linkerResult),p.xp6(3),p.hij(" ",p.lcZ(5,5,"SHOW_RESULT.CLOSE_WINDOW_BUTTON")," "),p.xp6(2),p.Q6J("ngIf","IDENTITY_IDENTICAL"===t.linkerResult||"IDENTITY_UNKNOWN"===t.linkerResult||"IDENTITY_LINKED"===t.linkerResult),p.xp6(1),p.Q6J("ngIf","IDENTITY_REGISTERED_ALREADY"===t.linkerResult),p.xp6(1),p.Q6J("ngIf",t.loading))},dependencies:[T.O5,Jr,Bn,yH,Si],styles:[".spinner-container[_ngcontent-%COMP%]{position:absolute;top:0;left:1rem;bottom:0;right:1rem;background:rgba(0,0,0,.15);z-index:1;display:flex;align-items:center;justify-content:center}"]}),s})()}];let TH=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[Bo.forRoot(xH),Bo]}),s})();class EH{constructor(r,e="/assets/i18n/",t=".json"){this.http=r,this.prefix=e,this.suffix=t}getTranslation(r){return this.http.get(`${this.prefix}${r}${this.suffix}`)}}let SH=(()=>{class s{constructor(e,t,o,l,c){this.http=e,this.storeService=t,this.authzSevice=o,this.titleService=l,this.utilsService=c}initializeColors(e,t){return new Promise(o=>{t.forEach(l=>{const c=this.storeService.getProperty("theme")[l.configValue];document.documentElement.style.setProperty(l.cssVariable,c)}),e.forEach(l=>{const c=this.storeService.getProperty("theme")[l.configValue];document.documentElement.style.setProperty(l.cssVariable,c),this.setEntityTheme(l.entity,c)}),o()})}setEntityTheme(e,t){const o=function MH(s){return[wn(tinycolor(s).lighten(52),"50"),wn(tinycolor(s).lighten(37),"100"),wn(tinycolor(s).lighten(26),"200"),wn(tinycolor(s).lighten(12),"300"),wn(tinycolor(s).lighten(6),"400"),wn(tinycolor(s),"500"),wn(tinycolor(s).darken(6),"600"),wn(tinycolor(s).darken(12),"700"),wn(tinycolor(s).darken(18),"800"),wn(tinycolor(s).darken(24),"900"),wn(tinycolor(s).lighten(50).saturate(30),"A100"),wn(tinycolor(s).lighten(30).saturate(30),"A200"),wn(tinycolor(s).lighten(10).saturate(15),"A400"),wn(tinycolor(s).lighten(5).saturate(5),"A700")]}(t);for(const l of o){const i=`--${e}-theme-primary-contrast-${l.name}`,a=l.darkContrast?"30,30,30":"255,255,255";document.documentElement.style.setProperty(`--${e}-theme-primary-${l.name}`,`${l.red},${l.green},${l.blue}`),document.documentElement.style.setProperty(i,a)}}loadAppDefaultConfig(){return new Promise(e=>{this.http.get("/assets/config/defaultConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{this.storeService.setDefaultConfig(t),e()})})}loadAppInstanceConfig(){return new Promise(e=>{this.http.get("/assets/config/instanceConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{this.storeService.setInstanceConfig(t);const o=document.location.hostname;t?.brandings?.[o]&&this.storeService.setBanding(o),e()},()=>{e()})})}getNoCacheHeaders(){return new y.WM({CacheControl:"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"})}setInstanceFavicon(){return new Promise(e=>{const t=document.querySelector("link[rel*='icon']")||document.createElement("link");t.type="image/x-icon",t.rel="shortcut icon",t.href=this.storeService.getProperty("instance_favicon")?"./assets/config/instanceFavicon.ico":"./assets/img/perun.ico",document.getElementsByTagName("head")[0].appendChild(t),e()})}setApiUrl(){return new Promise(e=>{let t=this.storeService.getProperty("api_url");("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal")||this.storeService.getProperty("auto_service_access_redirect"))&&(t=t.replace("oauth","ba")),this.authzSevice.configuration.basePath=t,this.titleService.setTitle(this.storeService.getProperty("document_title").en),e()})}loadAppsConfig(){return new Promise((e,t)=>{this.utilsService.getAppsConfig().subscribe(o=>{this.storeService.setAppsConfig(o),e()},o=>t(o))})}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(y.eN),p.LFG(Cn),p.LFG(Tl),p.LFG(Y),p.LFG(fs))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();function wn(s,r){const e=tinycolor(s),t=e.toRgb();return{name:r,hex:e.toHexString(),darkContrast:e.isLight(),red:t.r,green:t.g,blue:t.b}}let DH=(()=>{class s{constructor(e,t){this.registrarService=e,this.router=t}consolidate(){const e=location.search.substring(1),t=bd("formerToken",e);return new Promise(o=>{this.registrarService.consolidate({accessToken:t}).subscribe(()=>{this.consolidatePreviousLogins(1,e).then(()=>{this.router.navigate(["/result","OK"],{queryParamsHandling:"preserve"}),o()})},l=>{let n="UNKNOWN_ERROR";switch(l.name){case"InvalidTokenException":case"ExpiredTokenException":n="TOKEN_EXPIRED";break;case"IdentityUnknownException":n="IDENTITY_UNKNOWN";break;case"IdentityAlreadyInUseException":n="IDENTITY_REGISTERED_ALREADY";break;case"IdentityIsSameException":n="IDENTITY_IDENTICAL";break;case"IdentitiesAlreadyJoinedException":n="IDENTITY_LINKED"}this.router.navigate(["/result",n],{queryParamsHandling:"merge"}),o()})})}consolidatePreviousLogins(e,t){return new Promise(o=>{const l=bd("formerToken"+e.toString(),t);null==l||""===l?o():this.registrarService.consolidate({accessToken:l}).subscribe(()=>{this.consolidatePreviousLogins(e+1,t).then(()=>o())},()=>{this.consolidatePreviousLogins(e+1,t).then(()=>o())})})}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(Gv),p.LFG(Zt))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),HH=(()=>{class s{constructor(e,t,o,l,c){this.initAuthService=e,this.appConfigService=t,this.location=o,this.linkIdentitiesService=l,this.mfaHandlerService=c}loadConfigs(){return this.appConfigService.loadAppDefaultConfig().then(()=>this.appConfigService.loadAppInstanceConfig()).then(()=>this.appConfigService.setApiUrl()).then(()=>this.initAuthService.verifyAuth()).catch(e=>{throw this.mfaHandlerService.catchNoMfaTokenError(e?.params?.error),console.error(e),this.location.go("/"),location.reload(),e}).then(e=>e?(this.mfaHandlerService.closeMfaWindow(),this.initAuthService.simpleLoadPrincipal().then(()=>this.linkIdentitiesService.consolidate())):this.initAuthService.handleAuthStart())}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(g_),p.LFG(SH),p.LFG(T.Ye),p.LFG(DH),p.LFG(np))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const PH=new p.OlP("perun-api-service");let DS=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[Ae,Ae]}),s})(),RS=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({}),s})(),ob=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[gn,Ae,el,RS,Ae,RS]}),s})(),UA=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[Ae,Ae]}),s})(),qH=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({}),s})(),kS=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[T.ez,Ae,qH,ea]}),s})(),VS=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[jc,Ae,jc,Ae]}),s})(),YH=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[qo]}),s})(),GA=(()=>{class s{constructor(){this.changes=new xe.x,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const aP={provide:GA,deps:[[new p.FiY,new p.tp0,GA]],useFactory:function rP(s){return s||new GA}};let NS=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({providers:[aP,Fc],imports:[Ae,T.ez,ea,Ar,YH,na,gn,Ae]}),s})(),CP=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[Ua]}),s})(),gb=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[CP,Ae,Ae]}),s})(),FP=(()=>{class s{constructor(){this.changes=new xe.x,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 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(e,t){return`${e} \u2013 ${t}`}formatYearRangeLabel(e,t){return`${e} to ${t}`}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const QP={provide:new p.OlP("mat-datepicker-scroll-strategy"),deps:[tr],useFactory:function YP(s){return()=>s.scrollStrategies.reposition()}};let t0=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({providers:[FP,QP],imports:[T.ez,Ar,Qo,La,ea,Ae,Pn]}),s})(),eM=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[T.ez,Ae,Pn,Pn,Ae]}),s})(),iM=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[jc,gn,Ae,eh,T.ez,jc,Ae,eh,UA]}),s})(),nM=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[Ae,Ae]}),s})(),n0=(()=>{class s{constructor(){this.changes=new xe.x}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const mR={provide:n0,deps:[[new p.FiY,new p.tp0,n0]],useFactory:function fR(s){return s||new n0}};let r0=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({providers:[mR],imports:[T.ez,Ae]}),s})(),yR=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[T.ez,Ae,ea,gn,el,La,Ae]}),s})(),rM=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({}),s})(),aM=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[rM,gn,Ae,el,rM,Ae]}),s})();const cM=new p.OlP("mat-chips-default-options");let o0=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({providers:[Fc,{provide:cM,useValue:{separatorKeyCodes:[13]}}],imports:[Ae]}),s})(),s0=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[T.ez,DS,UA,kS,Ar,VS,ob,na,gb,Al,vd,Sr,ab,Ua,jl,to,NS,t0,Fy,eM,iM,bl,nM,r0,Ga,os,gl,gn,gb,aM,o0,DS,UA,kS,Ar,VS,ob,na,gb,Al,vd,Sr,ab,Ua,jl,to,NS,t0,Fy,eM,iM,bl,nM,r0,Ga,os,gl,gn,yR,aM,o0]}),s})(),l0=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[na,T.ez]}),s})();function c0(s,r,e){for(let t in r)if(r.hasOwnProperty(t)){const o=r[t];o?s.setProperty(t,o,e?.has(t)?"important":""):s.removeProperty(t)}return s}function qd(s,r){const e=r?"":"none";c0(s.style,{"touch-action":r?"":"none","-webkit-user-drag":r?"":"none","-webkit-tap-highlight-color":r?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function dM(s,r,e){c0(s.style,{position:r?"":"fixed",top:r?"":"0",opacity:r?"":"0",left:r?"":"-999em"},e)}function yb(s,r){return r&&"none"!=r?s+" "+r:s}function uM(s){const r=s.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(s)*r}function d0(s,r){return s.getPropertyValue(r).split(",").map(t=>t.trim())}function u0(s){const r=s.getBoundingClientRect();return{top:r.top,right:r.right,bottom:r.bottom,left:r.left,width:r.width,height:r.height,x:r.x,y:r.y}}function h0(s,r,e){const{top:t,bottom:o,left:l,right:c}=s;return e>=t&&e<=o&&r>=l&&r<=c}function Np(s,r,e){s.top+=r,s.bottom=s.top+s.height,s.left+=e,s.right=s.left+s.width}function hM(s,r,e,t){const{top:o,right:l,bottom:c,left:n,width:i,height:a}=s,d=i*r,u=a*r;return t>o-u&&tn-d&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:u0(e)})})}handleScroll(r){const e=hn(r),t=this.positions.get(e);if(!t)return null;const o=t.scrollPosition;let l,c;if(e===this._document){const a=this.getViewportScrollPosition();l=a.top,c=a.left}else l=e.scrollTop,c=e.scrollLeft;const n=o.top-l,i=o.left-c;return this.positions.forEach((a,d)=>{a.clientRect&&e!==d&&e.contains(d)&&Np(a.clientRect,n,i)}),o.top=l,o.left=c,{top:n,left:i}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function fM(s){const r=s.cloneNode(!0),e=r.querySelectorAll("[id]"),t=s.nodeName.toLowerCase();r.removeAttribute("id");for(let o=0;o{if(this.beforeStarted.next(),this._handles.length){const i=this._getTargetHandle(n);i&&!this._disabledHandles.has(i)&&!this.disabled&&this._initializeDragSequence(i,n)}else this.disabled||this._initializeDragSequence(this._rootElement,n)},this._pointerMove=n=>{const i=this._getPointerPositionOnPage(n);if(!this._hasStartedDragging){if(Math.abs(i.x-this._pickupPositionOnPage.x)+Math.abs(i.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const b=Date.now()>=this._dragStartTime+this._getDragStartDelay(n),H=this._dropContainer;if(!b)return void this._endDragSequence(n);(!H||!H.isDragging()&&!H.isReceiving())&&(n.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(n)))}return}n.preventDefault();const a=this._getConstrainedPointerPosition(i);if(this._hasMoved=!0,this._lastKnownPointerPosition=i,this._updatePointerDirectionDelta(a),this._dropContainer)this._updateActiveDropContainer(a,i);else{const d=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,u=this._activeTransform;u.x=a.x-d.x+this._passiveTransform.x,u.y=a.y-d.y+this._passiveTransform.y,this._applyRootElementTransform(u.x,u.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:a,event:n,distance:this._getDragDistance(a),delta:this._pointerDirectionDelta})})},this._pointerUp=n=>{this._endDragSequence(n)},this._nativeDragStart=n=>{if(this._handles.length){const i=this._getTargetHandle(n);i&&!this._disabledHandles.has(i)&&!this.disabled&&n.preventDefault()}else this.disabled||n.preventDefault()},this.withRootElement(r).withParent(e.parentDragRef||null),this._parentPositions=new pM(t),c.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(r){const e=ct(r);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(t=>qd(t,e)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(r){this._handles=r.map(t=>Xt(t)),this._handles.forEach(t=>qd(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(r){return this._previewTemplate=r,this}withPlaceholderTemplate(r){return this._placeholderTemplate=r,this}withRootElement(r){const e=Xt(r);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,wb),e.addEventListener("touchstart",this._pointerDown,bM),e.addEventListener("dragstart",this._nativeDragStart,wb)}),this._initialTransform=void 0,this._rootElement=e),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(r){return this._boundaryElement=r?Xt(r):null,this._resizeSubscription.unsubscribe(),r&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(r){return this._parentDragRef=r,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),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=this._parentDragRef=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(r){!this._disabledHandles.has(r)&&this._handles.indexOf(r)>-1&&(this._disabledHandles.add(r),qd(r,!0))}enableHandle(r){this._disabledHandles.has(r)&&(this._disabledHandles.delete(r),qd(r,this.disabled))}withDirection(r){return this._direction=r,this}_withDropContainer(r){this._dropContainer=r}getFreeDragPosition(){const r=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:r.x,y:r.y}}setFreeDragPosition(r){return this._activeTransform={x:0,y:0},this._passiveTransform.x=r.x,this._passiveTransform.y=r.y,this._dropContainer||this._applyRootElementTransform(r.x,r.y),this}withPreviewContainer(r){return this._previewContainer=r,this}_sortFromLastPointerPosition(){const r=this._lastKnownPointerPosition;r&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(r),r)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview?.remove(),this._previewRef?.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(r){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:r}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(r),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(r);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e,event:r})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(r){jp(r)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const t=this._rootElement,o=t.parentNode,l=this._placeholder=this._createPlaceholderElement(),c=this._anchor=this._anchor||this._document.createComment(""),n=this._getShadowRoot();o.insertBefore(c,t),this._initialTransform=t.style.transform||"",this._preview=this._createPreviewElement(),dM(t,!1,p0),this._document.body.appendChild(o.replaceChild(l,t)),this._getPreviewInsertionPoint(o,n).appendChild(this._preview),this.started.next({source:this,event:r}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this,event:r}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(r,e){this._parentDragRef&&e.stopPropagation();const t=this.isDragging(),o=jp(e),l=!o&&0!==e.button,c=this._rootElement,n=hn(e),i=!o&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),a=o?Uo(e):gm(e);if(n&&n.draggable&&"mousedown"===e.type&&e.preventDefault(),t||l||i||a)return;if(this._handles.length){const f=c.style;this._rootElementTapHighlight=f.webkitTapHighlightColor||"",f.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(f=>this._updateOnScroll(f)),this._boundaryElement&&(this._boundaryRect=u0(this._boundaryElement));const d=this._previewTemplate;this._pickupPositionInElement=d&&d.template&&!d.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,r,e);const u=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:u.x,y:u.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(r){dM(this._rootElement,!0,p0),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,t=e.getItemIndex(this),o=this._getPointerPositionOnPage(r),l=this._getDragDistance(o),c=e._isOverContainer(o.x,o.y);this.ended.next({source:this,distance:l,dropPoint:o,event:r}),this.dropped.next({item:this,currentIndex:t,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:c,distance:l,dropPoint:o,event:r}),e.drop(this,t,this._initialIndex,this._initialContainer,c,l,o),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:r,y:e},{x:t,y:o}){let l=this._initialContainer._getSiblingContainerFromPosition(this,r,e);!l&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(r,e)&&(l=this._initialContainer),l&&l!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=l,this._dropContainer.enter(this,r,e,l===this._initialContainer&&l.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:l,currentIndex:l.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(t,o),this._dropContainer._sortItem(this,r,e,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(r,e):this._applyPreviewTransform(r-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const r=this._previewTemplate,e=this.previewClass,t=r?r.template:null;let o;if(t&&r){const l=r.matchSize?this._initialClientRect:null,c=r.viewContainer.createEmbeddedView(t,r.context);c.detectChanges(),o=yM(c,this._document),this._previewRef=c,r.matchSize?wM(o,l):o.style.transform=vb(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else o=fM(this._rootElement),wM(o,this._initialClientRect),this._initialTransform&&(o.style.transform=this._initialTransform);return c0(o.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},p0),qd(o,!1),o.classList.add("cdk-drag-preview"),o.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(l=>o.classList.add(l)):o.classList.add(e)),o}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const r=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(r.left,r.top);const e=function WR(s){const r=getComputedStyle(s),e=d0(r,"transition-property"),t=e.find(n=>"transform"===n||"all"===n);if(!t)return 0;const o=e.indexOf(t),l=d0(r,"transition-duration"),c=d0(r,"transition-delay");return uM(l[o])+uM(c[o])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{const o=c=>{(!c||hn(c)===this._preview&&"transform"===c.propertyName)&&(this._preview?.removeEventListener("transitionend",o),t(),clearTimeout(l))},l=setTimeout(o,1.5*e);this._preview.addEventListener("transitionend",o)}))}_createPlaceholderElement(){const r=this._placeholderTemplate,e=r?r.template:null;let t;return e?(this._placeholderRef=r.viewContainer.createEmbeddedView(e,r.context),this._placeholderRef.detectChanges(),t=yM(this._placeholderRef,this._document)):t=fM(this._rootElement),t.style.pointerEvents="none",t.classList.add("cdk-drag-placeholder"),t}_getPointerPositionInElement(r,e,t){const o=e===this._rootElement?null:e,l=o?o.getBoundingClientRect():r,c=jp(t)?t.targetTouches[0]:t,n=this._getViewportScrollPosition();return{x:l.left-r.left+(c.pageX-l.left-n.left),y:l.top-r.top+(c.pageY-l.top-n.top)}}_getPointerPositionOnPage(r){const e=this._getViewportScrollPosition(),t=jp(r)?r.touches[0]||r.changedTouches[0]||{pageX:0,pageY:0}:r,o=t.pageX-e.left,l=t.pageY-e.top;if(this._ownerSVGElement){const c=this._ownerSVGElement.getScreenCTM();if(c){const n=this._ownerSVGElement.createSVGPoint();return n.x=o,n.y=l,n.matrixTransform(c.inverse())}}return{x:o,y:l}}_getConstrainedPointerPosition(r){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:t,y:o}=this.constrainPosition?this.constrainPosition(r,this,this._initialClientRect,this._pickupPositionInElement):r;if("x"===this.lockAxis||"x"===e?o=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===e)&&(t=this._pickupPositionOnPage.x),this._boundaryRect){const{x:l,y:c}=this._pickupPositionInElement,n=this._boundaryRect,{width:i,height:a}=this._getPreviewRect(),d=n.top+c,u=n.bottom-(a-c);t=CM(t,n.left+l,n.right-(i-l)),o=CM(o,d,u)}return{x:t,y:o}}_updatePointerDirectionDelta(r){const{x:e,y:t}=r,o=this._pointerDirectionDelta,l=this._pointerPositionAtLastDirectionChange,c=Math.abs(e-l.x),n=Math.abs(t-l.y);return c>this._config.pointerDirectionChangeThreshold&&(o.x=e>l.x?1:-1,l.x=e),n>this._config.pointerDirectionChangeThreshold&&(o.y=t>l.y?1:-1,l.y=t),o}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const r=this._handles.length>0||!this.isDragging();r!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=r,qd(this._rootElement,r))}_removeRootElementListeners(r){r.removeEventListener("mousedown",this._pointerDown,wb),r.removeEventListener("touchstart",this._pointerDown,bM),r.removeEventListener("dragstart",this._nativeDragStart,wb)}_applyRootElementTransform(r,e){const t=vb(r,e),o=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=o.transform&&"none"!=o.transform?o.transform:""),o.transform=yb(t,this._initialTransform)}_applyPreviewTransform(r,e){const t=this._previewTemplate?.template?void 0:this._initialTransform,o=vb(r,e);this._preview.style.transform=yb(o,t)}_getDragDistance(r){const e=this._pickupPositionOnPage;return e?{x:r.x-e.x,y:r.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:r,y:e}=this._passiveTransform;if(0===r&&0===e||this.isDragging()||!this._boundaryElement)return;const t=this._rootElement.getBoundingClientRect(),o=this._boundaryElement.getBoundingClientRect();if(0===o.width&&0===o.height||0===t.width&&0===t.height)return;const l=o.left-t.left,c=t.right-o.right,n=o.top-t.top,i=t.bottom-o.bottom;o.width>t.width?(l>0&&(r+=l),c>0&&(r-=c)):r=0,o.height>t.height?(n>0&&(e+=n),i>0&&(e-=i)):e=0,(r!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:r})}_getDragStartDelay(r){const e=this.dragStartDelay;return"number"==typeof e?e:jp(r)?e.touch:e?e.mouse:0}_updateOnScroll(r){const e=this._parentPositions.handleScroll(r);if(e){const t=hn(r);this._boundaryRect&&t!==this._boundaryElement&&t.contains(this._boundaryElement)&&Np(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(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=$r(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(r,e){const t=this._previewContainer||"global";if("parent"===t)return r;if("global"===t){const o=this._document;return e||o.fullscreenElement||o.webkitFullscreenElement||o.mozFullScreenElement||o.msFullscreenElement||o.body}return Xt(t)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(r){return this._handles.find(e=>r.target&&(r.target===e||e.contains(r.target)))}}function vb(s,r){return`translate3d(${Math.round(s)}px, ${Math.round(r)}px, 0)`}function CM(s,r,e){return Math.max(r,Math.min(e,s))}function jp(s){return"t"===s.type[0]}function yM(s,r){const e=s.rootNodes;if(1===e.length&&e[0].nodeType===r.ELEMENT_NODE)return e[0];const t=r.createElement("div");return e.forEach(o=>t.appendChild(o)),t}function wM(s,r){s.style.width=`${r.width}px`,s.style.height=`${r.height}px`,s.style.transform=vb(r.left,r.top)}function zp(s,r){return Math.max(0,Math.min(r,s))}class KR{constructor(r,e){this._element=r,this._dragDropRegistry=e,this._itemPositions=[],this.orientation="vertical",this._previousSwap={drag:null,delta:0,overlaps:!1}}start(r){this.withItems(r)}sort(r,e,t,o){const l=this._itemPositions,c=this._getItemIndexFromPointerPosition(r,e,t,o);if(-1===c&&l.length>0)return null;const n="horizontal"===this.orientation,i=l.findIndex(ae=>ae.drag===r),a=l[c],u=a.clientRect,f=i>c?1:-1,b=this._getItemOffsetPx(l[i].clientRect,u,f),H=this._getSiblingOffsetPx(i,l,f),z=l.slice();return function JR(s,r,e){const t=zp(r,s.length-1),o=zp(e,s.length-1);if(t===o)return;const l=s[t],c=o{if(z[Be]===ae)return;const ot=ae.drag===r,_t=ot?b:H,Ut=ot?r.getPlaceholderElement():ae.drag.getRootElement();ae.offset+=_t,n?(Ut.style.transform=yb(`translate3d(${Math.round(ae.offset)}px, 0, 0)`,ae.initialTransform),Np(ae.clientRect,0,_t)):(Ut.style.transform=yb(`translate3d(0, ${Math.round(ae.offset)}px, 0)`,ae.initialTransform),Np(ae.clientRect,_t,0))}),this._previousSwap.overlaps=h0(u,e,t),this._previousSwap.drag=a.drag,this._previousSwap.delta=n?o.x:o.y,{previousIndex:i,currentIndex:c}}enter(r,e,t,o){const l=null==o||o<0?this._getItemIndexFromPointerPosition(r,e,t):o,c=this._activeDraggables,n=c.indexOf(r),i=r.getPlaceholderElement();let a=c[l];if(a===r&&(a=c[l+1]),!a&&(null==l||-1===l||l-1&&c.splice(n,1),a&&!this._dragDropRegistry.isDragging(a)){const d=a.getRootElement();d.parentElement.insertBefore(i,d),c.splice(l,0,r)}else Xt(this._element).appendChild(i),c.push(r);i.style.transform="",this._cacheItemPositions()}withItems(r){this._activeDraggables=r.slice(),this._cacheItemPositions()}withSortPredicate(r){this._sortPredicate=r}reset(){this._activeDraggables.forEach(r=>{const e=r.getRootElement();if(e){const t=this._itemPositions.find(o=>o.drag===r)?.initialTransform;e.style.transform=t||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(r){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(t=>t.drag===r)}updateOnScroll(r,e){this._itemPositions.forEach(({clientRect:t})=>{Np(t,r,e)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()})}_cacheItemPositions(){const r="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(e=>{const t=e.getVisibleElement();return{drag:e,offset:0,initialTransform:t.style.transform||"",clientRect:u0(t)}}).sort((e,t)=>r?e.clientRect.left-t.clientRect.left:e.clientRect.top-t.clientRect.top)}_getItemOffsetPx(r,e,t){const o="horizontal"===this.orientation;let l=o?e.left-r.left:e.top-r.top;return-1===t&&(l+=o?e.width-r.width:e.height-r.height),l}_getSiblingOffsetPx(r,e,t){const o="horizontal"===this.orientation,l=e[r].clientRect,c=e[r+-1*t];let n=l[o?"width":"height"]*t;if(c){const i=o?"left":"top",a=o?"right":"bottom";-1===t?n-=c.clientRect[i]-l[a]:n+=l[i]-c.clientRect[a]}return n}_shouldEnterAsFirstChild(r,e){if(!this._activeDraggables.length)return!1;const t=this._itemPositions,o="horizontal"===this.orientation;if(t[0].drag!==this._activeDraggables[0]){const c=t[t.length-1].clientRect;return o?r>=c.right:e>=c.bottom}{const c=t[0].clientRect;return o?r<=c.left:e<=c.top}}_getItemIndexFromPointerPosition(r,e,t,o){const l="horizontal"===this.orientation,c=this._itemPositions.findIndex(({drag:n,clientRect:i})=>{if(n===r)return!1;if(o){const a=l?o.x:o.y;if(n===this._previousSwap.drag&&this._previousSwap.overlaps&&a===this._previousSwap.delta)return!1}return l?e>=Math.floor(i.left)&&e=Math.floor(i.top)&&t!0,this.sortPredicate=()=>!0,this.beforeStarted=new xe.x,this.entered=new xe.x,this.exited=new xe.x,this.dropped=new xe.x,this.sorted=new xe.x,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=qt.w0.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new xe.x,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function qR(s=0,r=qc.z){return s<0&&(s=0),(0,Wc.H)(s,s,r)}(0,Lm).pipe(Rt(this._stopScrollTimers)).subscribe(()=>{const c=this._scrollNode,n=this.autoScrollStep;1===this._verticalScrollDirection?c.scrollBy(0,-n):2===this._verticalScrollDirection&&c.scrollBy(0,n),1===this._horizontalScrollDirection?c.scrollBy(-n,0):2===this._horizontalScrollDirection&&c.scrollBy(n,0)})},this.element=Xt(r),this._document=t,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new pM(t),this._sortStrategy=new KR(this.element,e),this._sortStrategy.withSortPredicate((c,n)=>this.sortPredicate(c,n,this))}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(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(r,e,t,o){this._draggingStarted(),null==o&&this.sortingDisabled&&(o=this._draggables.indexOf(r)),this._sortStrategy.enter(r,e,t,o),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:r,container:this,currentIndex:this.getItemIndex(r)})}exit(r){this._reset(),this.exited.next({item:r,container:this})}drop(r,e,t,o,l,c,n,i={}){this._reset(),this.dropped.next({item:r,currentIndex:e,previousIndex:t,container:this,previousContainer:o,isPointerOverContainer:l,distance:c,dropPoint:n,event:i})}withItems(r){const e=this._draggables;return this._draggables=r,r.forEach(t=>t._withDropContainer(this)),this.isDragging()&&(e.filter(o=>o.isDragging()).every(o=>-1===r.indexOf(o))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(r){return this._sortStrategy.direction=r,this}connectedTo(r){return this._siblings=r.slice(),this}withOrientation(r){return this._sortStrategy.orientation=r,this}withScrollableParents(r){const e=Xt(this.element);return this._scrollableElements=-1===r.indexOf(e)?[e,...r]:r.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(r){return this._isDragging?this._sortStrategy.getItemIndex(r):this._draggables.indexOf(r)}isReceiving(){return this._activeSiblings.size>0}_sortItem(r,e,t,o){if(this.sortingDisabled||!this._clientRect||!hM(this._clientRect,.05,e,t))return;const l=this._sortStrategy.sort(r,e,t,o);l&&this.sorted.next({previousIndex:l.previousIndex,currentIndex:l.currentIndex,container:this,item:r})}_startScrollingIfNecessary(r,e){if(this.autoScrollDisabled)return;let t,o=0,l=0;if(this._parentPositions.positions.forEach((c,n)=>{n===this._document||!c.clientRect||t||hM(c.clientRect,.05,r,e)&&([o,l]=function XR(s,r,e,t){const o=xM(r,t),l=TM(r,e);let c=0,n=0;if(o){const i=s.scrollTop;1===o?i>0&&(c=1):s.scrollHeight-i>s.clientHeight&&(c=2)}if(l){const i=s.scrollLeft;1===l?i>0&&(n=1):s.scrollWidth-i>s.clientWidth&&(n=2)}return[c,n]}(n,c.clientRect,r,e),(o||l)&&(t=n))}),!o&&!l){const{width:c,height:n}=this._viewportRuler.getViewportSize(),i={width:c,height:n,top:0,right:c,bottom:n,left:0};o=xM(i,e),l=TM(i,r),t=window}t&&(o!==this._verticalScrollDirection||l!==this._horizontalScrollDirection||t!==this._scrollNode)&&(this._verticalScrollDirection=o,this._horizontalScrollDirection=l,this._scrollNode=t,(o||l)&&t?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const r=Xt(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=r.msScrollSnapType||r.scrollSnapType||"",r.scrollSnapType=r.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const r=Xt(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(r).clientRect}_reset(){this._isDragging=!1;const r=Xt(this.element).style;r.scrollSnapType=r.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(e=>e._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(r,e){return null!=this._clientRect&&h0(this._clientRect,r,e)}_getSiblingContainerFromPosition(r,e,t){return this._siblings.find(o=>o._canReceive(r,e,t))}_canReceive(r,e,t){if(!this._clientRect||!h0(this._clientRect,e,t)||!this.enterPredicate(r,this))return!1;const o=this._getShadowRoot().elementFromPoint(e,t);if(!o)return!1;const l=Xt(this.element);return o===l||l.contains(o)}_startReceiving(r,e){const t=this._activeSiblings;!t.has(r)&&e.every(o=>this.enterPredicate(o,this)||this._draggables.indexOf(o)>-1)&&(t.add(r),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(r){this._activeSiblings.delete(r),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(r=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(r);e&&this._sortStrategy.updateOnScroll(e.top,e.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const r=$r(Xt(this.element));this._cachedShadowRoot=r||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const r=this._sortStrategy.getActiveItemsSnapshot().filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,r))}}function xM(s,r){const{top:e,bottom:t,height:o}=s,l=.05*o;return r>=e-l&&r<=e+l?1:r>=t-l&&r<=t+l?2:0}function TM(s,r){const{left:e,right:t,width:o}=s,l=.05*o;return r>=e-l&&r<=e+l?1:r>=t-l&&r<=t+l?2:0}const Ab=Kn({passive:!1,capture:!0});let eI=(()=>{class s{constructor(e,t){this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=o=>o.isDragging(),this.pointerMove=new xe.x,this.pointerUp=new xe.x,this.scroll=new xe.x,this._preventDefaultWhileDragging=o=>{this._activeDragInstances.length>0&&o.preventDefault()},this._persistentTouchmoveListener=o=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&o.preventDefault(),this.pointerMove.next(o))},this._document=t}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,Ab)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,Ab)}startDragging(e,t){if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){const o=t.type.startsWith("touch");this._globalListeners.set(o?"touchend":"mouseup",{handler:l=>this.pointerUp.next(l),options:!0}).set("scroll",{handler:l=>this.scroll.next(l),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:Ab}),o||this._globalListeners.set("mousemove",{handler:l=>this.pointerMove.next(l),options:Ab}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((l,c)=>{this._document.addEventListener(c,l.handler,l.options)})})}}stopDragging(e){const t=this._activeDragInstances.indexOf(e);t>-1&&(this._activeDragInstances.splice(t,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(e){return this._activeDragInstances.indexOf(e)>-1}scrolled(e){const t=[this.scroll];return e&&e!==this._document&&t.push(new We.y(o=>this._ngZone.runOutsideAngular(()=>{const c=n=>{this._activeDragInstances.length&&o.next(n)};return e.addEventListener("scroll",c,!0),()=>{e.removeEventListener("scroll",c,!0)}}))),(0,er.T)(...t)}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((e,t)=>{this._document.removeEventListener(t,e.handler,e.options)}),this._globalListeners.clear()}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(p.R0b),p.LFG(T.K0))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const tI={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let iI=(()=>{class s{constructor(e,t,o,l){this._document=e,this._ngZone=t,this._viewportRuler=o,this._dragDropRegistry=l}createDrag(e,t=tI){return new QR(e,t,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new ZR(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(T.K0),p.LFG(p.R0b),p.LFG(za),p.LFG(eI))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),nI=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({providers:[iI],imports:[Pn]}),s})();function uI(s,r){1&s&&p._UZ(0,"mat-spinner",7)}function hI(s,r){1&s&&(p.TgZ(0,"mat-error"),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&s&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_ERROR")))}function pI(s,r){1&s&&(p.TgZ(0,"mat-error"),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&s&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_ERROR")))}function fI(s,r){if(1&s){const e=p.EpF();p.TgZ(0,"div",8)(1,"mat-form-field")(2,"mat-label"),p._uU(3),p.ALo(4,"translate"),p.qZA(),p.TgZ(5,"input",9,10),p.NdJ("ngModelChange",function(o){p.CHM(e);const l=p.oxw();return p.KtG(l.subject=o)}),p.qZA(),p.YNc(7,hI,3,3,"mat-error",11),p.qZA(),p.TgZ(8,"mat-form-field")(9,"mat-label"),p._uU(10),p.ALo(11,"translate"),p.qZA(),p.TgZ(12,"textarea",12,13),p.NdJ("ngModelChange",function(o){p.CHM(e);const l=p.oxw();return p.KtG(l.message=o)}),p.ALo(14,"translate"),p._uU(15," "),p.qZA(),p.YNc(16,pI,3,3,"mat-error",11),p.qZA()()}if(2&s){const e=p.MAs(6),t=p.MAs(13),o=p.oxw();p.xp6(3),p.Oqu(p.lcZ(4,7,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT")),p.xp6(2),p.Q6J("ngModel",o.subject),p.xp6(2),p.Q6J("ngIf",e.invalid),p.xp6(3),p.Oqu(p.lcZ(11,9,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE")),p.xp6(2),p.s9C("placeholder",p.lcZ(14,11,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_PLACEHOLDER")),p.Q6J("ngModel",o.message),p.xp6(4),p.Q6J("ngIf",t.invalid)}}let mI=(()=>{class s{constructor(e,t,o,l,c,n){this.dialogRef=e,this.translate=t,this.notificator=o,this.rtMessages=l,this.data=c,this.storeService=n,this.message="",this.subject="",this.methodRegexp=/(\w+\/\w+)$/g,this.loading=!1}ngOnInit(){this.data?.error?.errorId&&(this.subject="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_VALUE"),this.parseMethod(this.data.error.call)," (",this.data.error.errorId,")"))}sendBugReport(){this.loading=!0,this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(e=>{this.dialogRef.afterClosed().subscribe(()=>{const t="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS1"),e.ticketNumber.toString(),this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS2"));this.notificator.showSuccess(t)}),this.dialogRef.close()},()=>{this.loading=!1,this.dialogRef.afterClosed().subscribe(()=>{})})}getFullEmailBody(){const e=this.storeService.getProperty("config");let t=this.message+"\n------------------------\nTechnical details:\n\n"+this.data.error.errorId;if(t=t.concat(this.data.error.type?" "+this.data.error.type+"\n":"\n"),t=t.concat(this.data.error.message,"\n","Perun instance: ",e,"\n","Request:\n",this.data.error.urlWithParams,"\n\n"),this.data.error.payload){const o=/"password":".+?"/;let l=JSON.stringify(this.data.error.payload);l=l.replace(o,'"password":"####"'),t=t.concat("Payload:\n"+l+"\n\n")}return t=t.concat("Sent from new Perun Gui, version: ",x(4147).i8),t.split("\n").join("\n ")}parseMethod(e){return e&&this.methodRegexp.exec(e)[1]}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(kn),p.Y36(aa),p.Y36(Ya),p.Y36(Zh),p.Y36(hs),p.Y36(Cn))},s.\u0275cmp=p.Xpm({type:s,selectors:[["perun-web-apps-bug-report-dialog"]],decls:13,vars:12,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","",3,"ngModel","ngModelChange"],["subjectModel","ngModel"],[4,"ngIf"],["matInput","","required","",3,"ngModel","placeholder","ngModelChange"],["messageModel","ngModel"]],template:function(e,t){1&e&&(p.TgZ(0,"h1",0),p._uU(1),p.ALo(2,"translate"),p.qZA(),p.YNc(3,uI,1,0,"mat-spinner",1),p.YNc(4,fI,17,13,"div",2),p.TgZ(5,"div",3)(6,"div",4)(7,"button",5),p.NdJ("click",function(){return t.dialogRef.close()}),p._uU(8),p.ALo(9,"translate"),p.qZA(),p.TgZ(10,"button",6),p.NdJ("click",function(){return t.sendBugReport()}),p._uU(11),p.ALo(12,"translate"),p.qZA()()()),2&e&&(p.xp6(1),p.Oqu(p.lcZ(2,6,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.TITLE")),p.xp6(2),p.Q6J("ngIf",t.loading),p.xp6(1),p.Q6J("ngIf",!t.loading),p.xp6(4),p.hij(" ",p.lcZ(9,8,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.CANCEL")," "),p.xp6(2),p.Q6J("disabled",""===t.message||""===t.subject||t.loading),p.xp6(1),p.hij(" ",p.lcZ(12,10,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SEND")," "))},dependencies:[T.O5,oa,sr,sa,Jr,Ph,ml,Ih,Hl,Sd,Fe,kd,zA,Bn,Si],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),s})(),gI=(()=>{class s{constructor(e,t,o){this.dialogRef=e,this.dialog=t,this.data=o}onCloseClick(){this.dialogRef.close()}onBugReportClick(){this.dialogRef.afterClosed().subscribe(()=>{const e=lr();e.width="550px",e.data={error:this.data.error},e.autoFocus=!1,this.dialog.open(mI,e)}),this.dialogRef.close()}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(kn),p.Y36(or),p.Y36(hs))},s.\u0275cmp=p.Xpm({type:s,selectors:[["perun-web-apps-notification-dialog"]],decls:12,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"hidden","click"],["autofocus","","mat-button","",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(p.TgZ(0,"h1",0),p._uU(1),p.qZA(),p.TgZ(2,"div",1),p._uU(3),p.qZA(),p.TgZ(4,"div",2)(5,"div",3)(6,"button",4),p.NdJ("click",function(){return t.onBugReportClick()}),p._uU(7),p.ALo(8,"translate"),p.qZA(),p.TgZ(9,"button",5),p.NdJ("click",function(){return t.onCloseClick()}),p._uU(10),p.ALo(11,"translate"),p.qZA()()()),2&e&&(p.xp6(1),p.Oqu(t.data.title),p.xp6(2),p.hij(" ",t.data.description,"\n"),p.xp6(3),p.Q6J("hidden","error"!==t.data.type),p.xp6(1),p.hij(" ",p.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_BUG_REPORT")," "),p.xp6(3),p.hij(" ",p.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_CLOSE")," "))},dependencies:[oa,sr,sa,Jr,Si]}),s})();function BI(s,r){1&s&&(p.TgZ(0,"mat-error",8),p._uU(1),p.ALo(2,"translate"),p.ALo(3,"customTranslate"),p.qZA()),2&s&&(p.xp6(1),p.Oqu(p.lcZ(2,1,p.lcZ(3,3,"DIALOGS.ADD_SSH.INVALID_TYPE"))))}class ro{constructor(r,e,t){this.dialogRef=r,this.data=e,this.attributesManagerService=t}ngOnInit(){this.sshControl=new mS(null,[la.required,la.pattern(ro.sshKeyPattern)])}onCancel(){this.dialogRef.close(!1)}onSubmit(){const r=this.data.attribute?.value??[],e=this.sshControl.value;r.includes(e)||r.push(e),this.data.attribute.value=r,this.attributesManagerService.setUserAttribute({user:this.data.userId,attribute:this.data.attribute}).subscribe(()=>{this.dialogRef.close(!0)},()=>{r.pop()})}}function jI(s,r){if(1&s&&(p.TgZ(0,"div",9),p._UZ(1,"perun-web-apps-notification",10),p.qZA()),2&s){const e=r.$implicit;p.xp6(1),p.Q6J("data",e)("inDialog",!0)}}function zI(s,r){if(1&s&&(p.TgZ(0,"div",6)(1,"cdk-virtual-scroll-viewport",7),p.YNc(2,jI,2,2,"div",8),p.qZA()()),2&s){const e=p.oxw();p.xp6(2),p.Q6J("cdkVirtualForOf",e.notifications)}}function UI(s,r){1&s&&(p.TgZ(0,"perun-web-apps-alert",11),p._uU(1),p.ALo(2,"translate"),p.ALo(3,"customTranslate"),p.qZA()),2&s&&(p.xp6(1),p.Oqu(p.lcZ(2,1,p.lcZ(3,3,"DIALOGS.NOTIFICATION_LIST.NO_NOTIFICATIONS_ALERT"))))}ro.allowedSshKeys=["ssh-ed25519","ssh-ed25519-cert-v01@openssh.com","sk-ssh-ed25519@openssh.com","sk-ssh-ed25519-cert-v01@openssh.com","ssh-rsa","ssh-dss","ecdsa-sha2-nistp256","ecdsa-sha2-nistp384","ecdsa-sha2-nistp521","sk-ecdsa-sha2-nistp256@openssh.com","ssh-rsa-cert-v01@openssh.com","ssh-dss-cert-v01@openssh.com","ecdsa-sha2-nistp256-cert-v01@openssh.com","ecdsa-sha2-nistp384-cert-v01@openssh.com","ecdsa-sha2-nistp521-cert-v01@openssh.com","sk-ecdsa-sha2-nistp256-cert-v01@openssh.com"],ro.sshKeyPattern="^("+ro.allowedSshKeys.join("|")+").+$",ro.\u0275fac=function(r){return new(r||ro)(p.Y36(kn),p.Y36(hs),p.Y36(Kg))},ro.\u0275cmp=p.Xpm({type:ro,selectors:[["perun-web-apps-add-ssh-dialog"]],decls:20,vars:23,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","user-theme"],[1,"input-width"],["matInput","","required","","cdkTextareaAutosize","","cdkAutosizeMinRows","4",3,"placeholder","formControl"],["class","white-space-pre",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[1,"white-space-pre"]],template:function(r,e){1&r&&(p.TgZ(0,"h1",0),p._uU(1),p.ALo(2,"translate"),p.ALo(3,"customTranslate"),p.qZA(),p.TgZ(4,"div",1)(5,"mat-form-field",2)(6,"label",2),p._UZ(7,"textarea",3),p.ALo(8,"translate"),p.ALo(9,"customTranslate"),p.qZA(),p.YNc(10,BI,4,5,"mat-error",4),p.qZA()(),p.TgZ(11,"div",5)(12,"button",6),p.NdJ("click",function(){return e.onCancel()}),p._uU(13),p.ALo(14,"translate"),p.ALo(15,"customTranslate"),p.qZA(),p.TgZ(16,"button",7),p.NdJ("click",function(){return e.onSubmit()}),p._uU(17),p.ALo(18,"translate"),p.ALo(19,"customTranslate"),p.qZA()()),2&r&&(p.xp6(1),p.Oqu(p.lcZ(2,7,p.lcZ(3,9,"DIALOGS.ADD_SSH.TITLE"))),p.xp6(6),p.s9C("placeholder",p.lcZ(8,11,p.lcZ(9,13,"DIALOGS.ADD_SSH.INPUT_PLACEHOLDER"))),p.Q6J("formControl",e.sshControl),p.xp6(3),p.Q6J("ngIf",e.sshControl.invalid&&e.sshControl.dirty),p.xp6(3),p.hij(" ",p.lcZ(14,15,p.lcZ(15,17,"DIALOGS.ADD_SSH.CANCEL"))," "),p.xp6(3),p.Q6J("disabled",e.sshControl.invalid),p.xp6(1),p.hij(" ",p.lcZ(18,19,p.lcZ(19,21,"DIALOGS.ADD_SSH.ADD"))," "))},dependencies:[T.O5,Hl,Sd,Fe,Jr,Ph,ml,Bp,cp,zA,oa,sr,sa,Si,op],styles:[".input-width{width:100%}.white-space-pre{white-space:pre-wrap}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper{padding-bottom:0}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-underline{position:initial!important;display:block;margin-top:-1px}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper,perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-ripple{position:initial!important;display:table}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper{min-height:calc(1em + 1px)}\n"],encapsulation:2});let GI=(()=>{class s{constructor(e,t){this.dialogRef=e,this.notificationStorageService=t}ngOnInit(){this.notifications=this.notificationStorageService.getNotifications()}onCancel(){this.dialogRef.close()}onClear(){this.notificationStorageService.clearNotifications(),this.notifications=[]}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(kn),p.Y36(yd))},s.\u0275cmp=p.Xpm({type:s,selectors:[["perun-web-apps-show-notification-history-dialog"]],decls:15,vars:17,consts:[["mat-dialog-title",""],["class","hide-horizontal-scrollbar",4,"ngIf"],["alert_type","warn",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","",1,"ml-2",3,"click"],[1,"hide-horizontal-scrollbar"],["itemSize","50",1,"viewport"],["class","mb-1",4,"cdkVirtualFor","cdkVirtualForOf"],[1,"mb-1"],[3,"data","inDialog"],["alert_type","warn"]],template:function(e,t){1&e&&(p.TgZ(0,"h1",0),p._uU(1),p.ALo(2,"translate"),p.ALo(3,"customTranslate"),p.qZA(),p.YNc(4,zI,3,1,"div",1),p.YNc(5,UI,4,5,"perun-web-apps-alert",2),p.TgZ(6,"div",3)(7,"button",4),p.NdJ("click",function(){return t.onClear()}),p._uU(8),p.ALo(9,"translate"),p.ALo(10,"customTranslate"),p.qZA(),p.TgZ(11,"button",5),p.NdJ("click",function(){return t.onCancel()}),p._uU(12),p.ALo(13,"translate"),p.ALo(14,"customTranslate"),p.qZA()()),2&e&&(p.xp6(1),p.Oqu(p.lcZ(2,5,p.lcZ(3,7,"DIALOGS.NOTIFICATION_LIST.TITLE"))),p.xp6(3),p.Q6J("ngIf",0!==t.notifications.length),p.xp6(1),p.Q6J("ngIf",0===t.notifications.length),p.xp6(3),p.hij(" ",p.lcZ(9,9,p.lcZ(10,11,"DIALOGS.NOTIFICATION_LIST.CLEAR"))," "),p.xp6(4),p.hij(" ",p.lcZ(13,13,p.lcZ(14,15,"DIALOGS.NOTIFICATION_LIST.CANCEL"))," "))},styles:[".viewport[_ngcontent-%COMP%]{height:400px;width:470px}.hide-horizontal-scrollbar[_ngcontent-%COMP%]{overflow-x:hidden}"]}),s})();function qI(s,r){if(1&s&&(p.TgZ(0,"div",5)(1,"mat-icon"),p._uU(2),p.qZA()()),2&s){const e=p.oxw();p.xp6(2),p.Oqu(e.data.icon)}}function WI(s,r){if(1&s&&(p.TgZ(0,"div",6),p._uU(1),p.qZA()),2&s){const e=p.oxw();p.xp6(1),p.hij(" ",e.showTimestamp()," ")}}let $I=(()=>{class s{constructor(e,t){this.dialog=e,this.notificationStorageService=t,this.newNotification=!1,this.closeNotification=new p.vpe,this.alreadyPressed=!1,this.alreadyClosed=!1,this.waiting=!1}doAction(){if(this.newNotification&&(this.alreadyPressed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,void 0!==this.data.action)this.data.action();else{const e=lr();e.width="550px",e.data=this.data,e.autoFocus=!1,this.dialog.open(gI,e).afterClosed().subscribe(()=>{this.closeSelf()})}}closeSelf(){this.inDialog||(this.newNotification&&(this.alreadyClosed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,this.closeNotification.emit())}ngOnInit(){!function Sv(s,r){_d.apply(this,arguments)}(this.data.delay,()=>{!this.alreadyClosed&&!this.waiting&&this.closeSelf()})}showTimestamp(){const[e,t]=this.data.timeStamp.split(":");return t.length<2?e+":0"+t:this.data.timeStamp}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(or),p.Y36(yd))},s.\u0275cmp=p.Xpm({type:s,selectors:[["perun-web-apps-notification"]],inputs:{data:"data",inDialog:"inDialog",newNotification:"newNotification"},outputs:{closeNotification:"closeNotification"},decls:9,vars:14,consts:[[1,"notification-container",3,"click"],["class","notification-icon",4,"ngIf"],["data-cy","notification-message",1,"notification-text","clickable"],["class","ml-auto mr-5 mt-auto mb-auto",4,"ngIf"],[1,"notification-action","mt-auto","mb-auto",3,"hidden","click"],[1,"notification-icon"],[1,"ml-auto","mr-5","mt-auto","mb-auto"]],template:function(e,t){1&e&&(p.TgZ(0,"div")(1,"div",0),p.NdJ("click",function(){return t.alreadyClosed||t.waiting?"":t.closeSelf()}),p.YNc(2,qI,3,1,"div",1),p.TgZ(3,"div",2),p._uU(4),p.ALo(5,"translate"),p.qZA(),p.YNc(6,WI,2,1,"div",3),p.TgZ(7,"div",4),p.NdJ("click",function(){return t.waiting=!0,t.doAction()}),p._uU(8),p.qZA()()()),2&e&&(p.Gre("notification ",t.inDialog?"":"mat-elevation-z7",""),p.ekj("error","error"===t.data.type)("success","success"===t.data.type),p.xp6(2),p.Q6J("ngIf",null!==t.data.icon),p.xp6(2),p.hij(" ",p.lcZ(5,12,t.data.title)," "),p.xp6(2),p.Q6J("ngIf",t.inDialog),p.xp6(1),p.Q6J("hidden",t.alreadyPressed),p.xp6(1),p.hij(" ",t.data.actionText," "))},dependencies:[T.O5,Ft,Si],styles:[".notification[_ngcontent-%COMP%]{width:450px;margin-bottom:16px;display:flex;flex-direction:row;justify-content:space-between;color:#fff}.notification-container[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:row;padding:16px}.notification-text[_ngcontent-%COMP%]{font-size:1.1em}.notification-action[_ngcontent-%COMP%]{margin-left:auto;text-decoration:underline;cursor:pointer}@media (max-width: 768px){.notification[_ngcontent-%COMP%]{width:100%}}.notification.error[_ngcontent-%COMP%]{background-color:#d32f2f}.notification.success[_ngcontent-%COMP%]{background-color:#288619}.notification-icon[_ngcontent-%COMP%]{padding-right:8px;color:#fff}"]}),s})(),YI=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({}),s})(),XI=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({}),s})(),sk=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[XI,Ae,Ae]}),s})(),yk=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[gn,Ae,Ae]}),s})();new p.OlP("mat-selectsearch-default-options");let Tk=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[[T.ez,to,Ar,ob,na,vd,os]]}),s})(),Ek=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[La,Ae,Ae]}),s})(),Sk=(()=>{class s extends Lc{format(e,t){return"input"===t?`${e.getDate().toString()}.${(e.getMonth()+1).toString()}.${e.getFullYear()}`:e.toDateString()}}return s.\u0275fac=function(){let r;return function(t){return(r||(r=p.n5z(s)))(t||s)}}(),s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})();const Mk={parse:{dateInput:{month:"short",year:"numeric",day:"numeric"}},display:{dateInput:"input",monthYearLabel:{year:"numeric",month:"numeric"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let HM=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({providers:[{provide:mn,useClass:Sk},{provide:nl,useValue:Mk}],imports:[T.ez,ob,gb,jl,o0,nI,ar,Bo,r0,Ga,vd,l0,na,bl,Ar,os,Sr,to,ab,gn,wd,YI,sk,t0,yk,zc,gl,Tk,Ua,Al,kg,s0,Ek]}),s})();p.B6R(GI,[T.O5,Sl,Jr,qm,aw,Ki,oa,sa,$I],[Si,op]),new Date(324721404e5).valueOf();let q1=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[T.ez,Ar,na,Bo,HM,ar,Sr,to,ab,l0]}),s})(),$1=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[T.ez,Al,Ar,ar]}),s})(),Y1=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({providers:[ap],imports:[T.ez,s0,ar,wd]}),s})();function OM(s){return new p.vHH(3e3,!1)}function DB(){return typeof window<"u"&&typeof window.document<"u"}function b0(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function ys(s){switch(s.length){case 0:return new In;case 1:return s[0];default:return new pl(s)}}function LM(s,r,e,t,o=new Map,l=new Map){const c=[],n=[];let i=-1,a=null;if(t.forEach(d=>{const u=d.get("offset"),f=u==i,b=f&&a||new Map;d.forEach((H,z)=>{let ae=z,Be=H;if("offset"!==z)switch(ae=r.normalizePropertyName(ae,c),Be){case"!":Be=o.get(z);break;case Er:Be=l.get(z);break;default:Be=r.normalizeStyleValue(z,ae,Be,c)}b.set(ae,Be)}),f||n.push(b),a=b,i=u}),c.length)throw function _B(s){return new p.vHH(3502,!1)}();return n}function C0(s,r,e,t){switch(r){case"start":s.onStart(()=>t(e&&y0(e,"start",s)));break;case"done":s.onDone(()=>t(e&&y0(e,"done",s)));break;case"destroy":s.onDestroy(()=>t(e&&y0(e,"destroy",s)))}}function y0(s,r,e){const l=w0(s.element,s.triggerName,s.fromState,s.toState,r||s.phaseName,e.totalTime??s.totalTime,!!e.disabled),c=s._data;return null!=c&&(l._data=c),l}function w0(s,r,e,t,o="",l=0,c){return{element:s,triggerName:r,fromState:e,toState:t,phaseName:o,totalTime:l,disabled:!!c}}function Vn(s,r,e){let t=s.get(r);return t||s.set(r,t=e),t}function FM(s){const r=s.indexOf(":");return[s.substring(1,r),s.slice(r+1)]}let v0=(s,r)=>!1,NM=(s,r,e)=>[],jM=null;function A0(s){const r=s.parentNode||s.host;return r===jM?null:r}(b0()||typeof Element<"u")&&(DB()?(jM=(()=>document.documentElement)(),v0=(s,r)=>{for(;r;){if(r===s)return!0;r=A0(r)}return!1}):v0=(s,r)=>s.contains(r),NM=(s,r,e)=>{if(e)return Array.from(s.querySelectorAll(r));const t=s.querySelector(r);return t?[t]:[]});let Ul=null,zM=!1;const UM=v0,GM=NM;let qM=(()=>{class s{validateStyleProperty(e){return function PB(s){Ul||(Ul=function RB(){return typeof document<"u"?document.body:null}()||{},zM=!!Ul.style&&"WebkitAppearance"in Ul.style);let r=!0;return Ul.style&&!function HB(s){return"ebkit"==s.substring(1,6)}(s)&&(r=s in Ul.style,!r&&zM&&(r="Webkit"+s.charAt(0).toUpperCase()+s.slice(1)in Ul.style)),r}(e)}matchesElement(e,t){return!1}containsElement(e,t){return UM(e,t)}getParentElement(e){return A0(e)}query(e,t,o){return GM(e,t,o)}computeStyle(e,t,o){return o||""}animate(e,t,o,l,c,n=[],i){return new In(o,l)}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})(),x0=(()=>{class s{}return s.NOOP=new qM,s})();const T0="ng-enter",Sb="ng-leave",Mb="ng-trigger",Db=".ng-trigger",$M="ng-animating",E0=".ng-animating";function ws(s){if("number"==typeof s)return s;const r=s.match(/^(-?[\.\d]+)(m?s)/);return!r||r.length<2?0:S0(parseFloat(r[1]),r[2])}function S0(s,r){return"s"===r?1e3*s:s}function Hb(s,r,e){return s.hasOwnProperty("duration")?s:function BB(s,r,e){let o,l=0,c="";if("string"==typeof s){const n=s.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return r.push(OM()),{duration:0,delay:0,easing:""};o=S0(parseFloat(n[1]),n[2]);const i=n[3];null!=i&&(l=S0(parseFloat(i),n[4]));const a=n[5];a&&(c=a)}else o=s;if(!e){let n=!1,i=r.length;o<0&&(r.push(function Q1(){return new p.vHH(3100,!1)}()),n=!0),l<0&&(r.push(function J1(){return new p.vHH(3101,!1)}()),n=!0),n&&r.splice(i,0,OM())}return{duration:o,delay:l,easing:c}}(s,r,e)}function Gp(s,r={}){return Object.keys(s).forEach(e=>{r[e]=s[e]}),r}function YM(s){const r=new Map;return Object.keys(s).forEach(e=>{r.set(e,s[e])}),r}function vs(s,r=new Map,e){if(e)for(let[t,o]of e)r.set(t,o);for(let[t,o]of s)r.set(t,o);return r}function JM(s,r,e){return e?r+":"+e+";":""}function KM(s){let r="";for(let e=0;e{const l=D0(o);e&&!e.has(o)&&e.set(o,s.style[l]),s.style[l]=t}),b0()&&KM(s))}function Gl(s,r){s.style&&(r.forEach((e,t)=>{const o=D0(t);s.style[o]=""}),b0()&&KM(s))}function qp(s){return Array.isArray(s)?1==s.length?s[0]:hl(s):s}const M0=new RegExp("{{\\s*(.+?)\\s*}}","g");function ZM(s){let r=[];if("string"==typeof s){let e;for(;e=M0.exec(s);)r.push(e[1]);M0.lastIndex=0}return r}function Pb(s,r,e){const t=s.toString(),o=t.replace(M0,(l,c)=>{let n=r[c];return null==n&&(e.push(function Z1(s){return new p.vHH(3003,!1)}()),n=""),n.toString()});return o==t?s:o}function Rb(s){const r=[];let e=s.next();for(;!e.done;)r.push(e.value),e=s.next();return r}const LB=/-+([a-z0-9])/g;function D0(s){return s.replace(LB,(...r)=>r[1].toUpperCase())}function FB(s){return s.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function On(s,r,e){switch(r.type){case 7:return s.visitTrigger(r,e);case 0:return s.visitState(r,e);case 1:return s.visitTransition(r,e);case 2:return s.visitSequence(r,e);case 3:return s.visitGroup(r,e);case 4:return s.visitAnimate(r,e);case 5:return s.visitKeyframes(r,e);case 6:return s.visitStyle(r,e);case 8:return s.visitReference(r,e);case 9:return s.visitAnimateChild(r,e);case 10:return s.visitAnimateRef(r,e);case 11:return s.visitQuery(r,e);case 12:return s.visitStagger(r,e);default:throw function X1(s){return new p.vHH(3004,!1)}()}}function XM(s,r){return window.getComputedStyle(s)[r]}function qB(s,r){const e=[];return"string"==typeof s?s.split(/\s*,\s*/).forEach(t=>function WB(s,r,e){if(":"==s[0]){const i=function $B(s,r){switch(s){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t) *"}}(s,e);if("function"==typeof i)return void r.push(i);s=i}const t=s.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==t||t.length<4)return e.push(function hB(s){return new p.vHH(3015,!1)}()),r;const o=t[1],l=t[2],c=t[3];r.push(eD(o,c));"<"==l[0]&&!("*"==o&&"*"==c)&&r.push(eD(c,o))}(t,e,r)):e.push(s),e}const Vb=new Set(["true","1"]),Ob=new Set(["false","0"]);function eD(s,r){const e=Vb.has(s)||Ob.has(s),t=Vb.has(r)||Ob.has(r);return(o,l)=>{let c="*"==s||s==o,n="*"==r||r==l;return!c&&e&&"boolean"==typeof o&&(c=o?Vb.has(s):Ob.has(s)),!n&&t&&"boolean"==typeof l&&(n=l?Vb.has(r):Ob.has(r)),c&&n}}const YB=new RegExp("s*:selfs*,?","g");function H0(s,r,e,t){return new QB(s).build(r,e,t)}class QB{constructor(r){this._driver=r}build(r,e,t){const o=new ZB(e);return this._resetContextStyleTimingState(o),On(this,qp(r),o)}_resetContextStyleTimingState(r){r.currentQuerySelector="",r.collectedStyles=new Map,r.collectedStyles.set("",new Map),r.currentTime=0}visitTrigger(r,e){let t=e.queryCount=0,o=e.depCount=0;const l=[],c=[];return"@"==r.name.charAt(0)&&e.errors.push(function tB(){return new p.vHH(3006,!1)}()),r.definitions.forEach(n=>{if(this._resetContextStyleTimingState(e),0==n.type){const i=n,a=i.name;a.toString().split(/\s*,\s*/).forEach(d=>{i.name=d,l.push(this.visitState(i,e))}),i.name=a}else if(1==n.type){const i=this.visitTransition(n,e);t+=i.queryCount,o+=i.depCount,c.push(i)}else e.errors.push(function iB(){return new p.vHH(3007,!1)}())}),{type:7,name:r.name,states:l,transitions:c,queryCount:t,depCount:o,options:null}}visitState(r,e){const t=this.visitStyle(r.styles,e),o=r.options&&r.options.params||null;if(t.containsDynamicStyles){const l=new Set,c=o||{};t.styles.forEach(n=>{n instanceof Map&&n.forEach(i=>{ZM(i).forEach(a=>{c.hasOwnProperty(a)||l.add(a)})})}),l.size&&(Rb(l.values()),e.errors.push(function nB(s,r){return new p.vHH(3008,!1)}()))}return{type:0,name:r.name,style:t,options:o?{params:o}:null}}visitTransition(r,e){e.queryCount=0,e.depCount=0;const t=On(this,qp(r.animation),e);return{type:1,matchers:qB(r.expr,e.errors),animation:t,queryCount:e.queryCount,depCount:e.depCount,options:ql(r.options)}}visitSequence(r,e){return{type:2,steps:r.steps.map(t=>On(this,t,e)),options:ql(r.options)}}visitGroup(r,e){const t=e.currentTime;let o=0;const l=r.steps.map(c=>{e.currentTime=t;const n=On(this,c,e);return o=Math.max(o,e.currentTime),n});return e.currentTime=o,{type:3,steps:l,options:ql(r.options)}}visitAnimate(r,e){const t=function eV(s,r){if(s.hasOwnProperty("duration"))return s;if("number"==typeof s)return P0(Hb(s,r).duration,0,"");const e=s;if(e.split(/\s+/).some(l=>"{"==l.charAt(0)&&"{"==l.charAt(1))){const l=P0(0,0,"");return l.dynamic=!0,l.strValue=e,l}const o=Hb(e,r);return P0(o.duration,o.delay,o.easing)}(r.timings,e.errors);e.currentAnimateTimings=t;let o,l=r.styles?r.styles:Oe({});if(5==l.type)o=this.visitKeyframes(l,e);else{let c=r.styles,n=!1;if(!c){n=!0;const a={};t.easing&&(a.easing=t.easing),c=Oe(a)}e.currentTime+=t.duration+t.delay;const i=this.visitStyle(c,e);i.isEmptyStep=n,o=i}return e.currentAnimateTimings=null,{type:4,timings:t,style:o,options:null}}visitStyle(r,e){const t=this._makeStyleAst(r,e);return this._validateStyleAst(t,e),t}_makeStyleAst(r,e){const t=[],o=Array.isArray(r.styles)?r.styles:[r.styles];for(let n of o)"string"==typeof n?n===Er?t.push(n):e.errors.push(new p.vHH(3002,!1)):t.push(YM(n));let l=!1,c=null;return t.forEach(n=>{if(n instanceof Map&&(n.has("easing")&&(c=n.get("easing"),n.delete("easing")),!l))for(let i of n.values())if(i.toString().indexOf("{{")>=0){l=!0;break}}),{type:6,styles:t,easing:c,offset:r.offset,containsDynamicStyles:l,options:null}}_validateStyleAst(r,e){const t=e.currentAnimateTimings;let o=e.currentTime,l=e.currentTime;t&&l>0&&(l-=t.duration+t.delay),r.styles.forEach(c=>{"string"!=typeof c&&c.forEach((n,i)=>{const a=e.collectedStyles.get(e.currentQuerySelector),d=a.get(i);let u=!0;d&&(l!=o&&l>=d.startTime&&o<=d.endTime&&(e.errors.push(function aB(s,r,e,t,o){return new p.vHH(3010,!1)}()),u=!1),l=d.startTime),u&&a.set(i,{startTime:l,endTime:o}),e.options&&function OB(s,r,e){const t=r.params||{},o=ZM(s);o.length&&o.forEach(l=>{t.hasOwnProperty(l)||e.push(function K1(s){return new p.vHH(3001,!1)}())})}(n,e.options,e.errors)})})}visitKeyframes(r,e){const t={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function oB(){return new p.vHH(3011,!1)}()),t;let l=0;const c=[];let n=!1,i=!1,a=0;const d=r.steps.map(Be=>{const ot=this._makeStyleAst(Be,e);let _t=null!=ot.offset?ot.offset:function XB(s){if("string"==typeof s)return null;let r=null;if(Array.isArray(s))s.forEach(e=>{if(e instanceof Map&&e.has("offset")){const t=e;r=parseFloat(t.get("offset")),t.delete("offset")}});else if(s instanceof Map&&s.has("offset")){const e=s;r=parseFloat(e.get("offset")),e.delete("offset")}return r}(ot.styles),Ut=0;return null!=_t&&(l++,Ut=ot.offset=_t),i=i||Ut<0||Ut>1,n=n||Ut0&&l{const _t=f>0?ot==b?1:f*ot:c[ot],Ut=_t*ae;e.currentTime=H+z.delay+Ut,z.duration=Ut,this._validateStyleAst(Be,e),Be.offset=_t,t.styles.push(Be)}),t}visitReference(r,e){return{type:8,animation:On(this,qp(r.animation),e),options:ql(r.options)}}visitAnimateChild(r,e){return e.depCount++,{type:9,options:ql(r.options)}}visitAnimateRef(r,e){return{type:10,animation:this.visitReference(r.animation,e),options:ql(r.options)}}visitQuery(r,e){const t=e.currentQuerySelector,o=r.options||{};e.queryCount++,e.currentQuery=r;const[l,c]=function JB(s){const r=!!s.split(/\s*,\s*/).find(e=>":self"==e);return r&&(s=s.replace(YB,"")),s=s.replace(/@\*/g,Db).replace(/@\w+/g,e=>Db+"-"+e.slice(1)).replace(/:animating/g,E0),[s,r]}(r.selector);e.currentQuerySelector=t.length?t+" "+l:l,Vn(e.collectedStyles,e.currentQuerySelector,new Map);const n=On(this,qp(r.animation),e);return e.currentQuery=null,e.currentQuerySelector=t,{type:11,selector:l,limit:o.limit||0,optional:!!o.optional,includeSelf:c,animation:n,originalSelector:r.selector,options:ql(r.options)}}visitStagger(r,e){e.currentQuery||e.errors.push(function dB(){return new p.vHH(3013,!1)}());const t="full"===r.timings?{duration:0,delay:0,easing:"full"}:Hb(r.timings,e.errors,!0);return{type:12,animation:On(this,qp(r.animation),e),timings:t,options:null}}}class ZB{constructor(r){this.errors=r,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function ql(s){return s?(s=Gp(s)).params&&(s.params=function KB(s){return s?Gp(s):null}(s.params)):s={},s}function P0(s,r,e){return{duration:s,delay:r,easing:e}}function R0(s,r,e,t,o,l,c=null,n=!1){return{type:1,element:s,keyframes:r,preStyleProps:e,postStyleProps:t,duration:o,delay:l,totalTime:o+l,easing:c,subTimeline:n}}class Lb{constructor(){this._map=new Map}get(r){return this._map.get(r)||[]}append(r,e){let t=this._map.get(r);t||this._map.set(r,t=[]),t.push(...e)}has(r){return this._map.has(r)}clear(){this._map.clear()}}const nV=new RegExp(":enter","g"),aV=new RegExp(":leave","g");function I0(s,r,e,t,o,l=new Map,c=new Map,n,i,a=[]){return(new oV).buildKeyframes(s,r,e,t,o,l,c,n,i,a)}class oV{buildKeyframes(r,e,t,o,l,c,n,i,a,d=[]){a=a||new Lb;const u=new k0(r,e,a,o,l,d,[]);u.options=i;const f=i.delay?ws(i.delay):0;u.currentTimeline.delayNextStep(f),u.currentTimeline.setStyles([c],null,u.errors,i),On(this,t,u);const b=u.timelines.filter(H=>H.containsAnimation());if(b.length&&n.size){let H;for(let z=b.length-1;z>=0;z--){const ae=b[z];if(ae.element===e){H=ae;break}}H&&!H.allowOnlyTimelineStyles()&&H.setStyles([n],null,u.errors,i)}return b.length?b.map(H=>H.buildKeyframes()):[R0(e,[],[],[],0,f,"",!1)]}visitTrigger(r,e){}visitState(r,e){}visitTransition(r,e){}visitAnimateChild(r,e){const t=e.subInstructions.get(e.element);if(t){const o=e.createSubContext(r.options),l=e.currentTimeline.currentTime,c=this._visitSubInstructions(t,o,o.options);l!=c&&e.transformIntoNewTimeline(c)}e.previousNode=r}visitAnimateRef(r,e){const t=e.createSubContext(r.options);t.transformIntoNewTimeline(),this.visitReference(r.animation,t),e.transformIntoNewTimeline(t.currentTimeline.currentTime),e.previousNode=r}_visitSubInstructions(r,e,t){let l=e.currentTimeline.currentTime;const c=null!=t.duration?ws(t.duration):null,n=null!=t.delay?ws(t.delay):null;return 0!==c&&r.forEach(i=>{const a=e.appendInstructionToTimeline(i,c,n);l=Math.max(l,a.duration+a.delay)}),l}visitReference(r,e){e.updateOptions(r.options,!0),On(this,r.animation,e),e.previousNode=r}visitSequence(r,e){const t=e.subContextCount;let o=e;const l=r.options;if(l&&(l.params||l.delay)&&(o=e.createSubContext(l),o.transformIntoNewTimeline(),null!=l.delay)){6==o.previousNode.type&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=Fb);const c=ws(l.delay);o.delayNextStep(c)}r.steps.length&&(r.steps.forEach(c=>On(this,c,o)),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>t&&o.transformIntoNewTimeline()),e.previousNode=r}visitGroup(r,e){const t=[];let o=e.currentTimeline.currentTime;const l=r.options&&r.options.delay?ws(r.options.delay):0;r.steps.forEach(c=>{const n=e.createSubContext(r.options);l&&n.delayNextStep(l),On(this,c,n),o=Math.max(o,n.currentTimeline.currentTime),t.push(n.currentTimeline)}),t.forEach(c=>e.currentTimeline.mergeTimelineCollectedStyles(c)),e.transformIntoNewTimeline(o),e.previousNode=r}_visitTiming(r,e){if(r.dynamic){const t=r.strValue;return Hb(e.params?Pb(t,e.params,e.errors):t,e.errors)}return{duration:r.duration,delay:r.delay,easing:r.easing}}visitAnimate(r,e){const t=e.currentAnimateTimings=this._visitTiming(r.timings,e),o=e.currentTimeline;t.delay&&(e.incrementTime(t.delay),o.snapshotCurrentStyles());const l=r.style;5==l.type?this.visitKeyframes(l,e):(e.incrementTime(t.duration),this.visitStyle(l,e),o.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=r}visitStyle(r,e){const t=e.currentTimeline,o=e.currentAnimateTimings;!o&&t.hasCurrentStyleProperties()&&t.forwardFrame();const l=o&&o.easing||r.easing;r.isEmptyStep?t.applyEmptyStep(l):t.setStyles(r.styles,l,e.errors,e.options),e.previousNode=r}visitKeyframes(r,e){const t=e.currentAnimateTimings,o=e.currentTimeline.duration,l=t.duration,n=e.createSubContext().currentTimeline;n.easing=t.easing,r.styles.forEach(i=>{n.forwardTime((i.offset||0)*l),n.setStyles(i.styles,i.easing,e.errors,e.options),n.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(n),e.transformIntoNewTimeline(o+l),e.previousNode=r}visitQuery(r,e){const t=e.currentTimeline.currentTime,o=r.options||{},l=o.delay?ws(o.delay):0;l&&(6===e.previousNode.type||0==t&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Fb);let c=t;const n=e.invokeQuery(r.selector,r.originalSelector,r.limit,r.includeSelf,!!o.optional,e.errors);e.currentQueryTotal=n.length;let i=null;n.forEach((a,d)=>{e.currentQueryIndex=d;const u=e.createSubContext(r.options,a);l&&u.delayNextStep(l),a===e.element&&(i=u.currentTimeline),On(this,r.animation,u),u.currentTimeline.applyStylesToKeyframe(),c=Math.max(c,u.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(c),i&&(e.currentTimeline.mergeTimelineCollectedStyles(i),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=r}visitStagger(r,e){const t=e.parentContext,o=e.currentTimeline,l=r.timings,c=Math.abs(l.duration),n=c*(e.currentQueryTotal-1);let i=c*e.currentQueryIndex;switch(l.duration<0?"reverse":l.easing){case"reverse":i=n-i;break;case"full":i=t.currentStaggerTime}const d=e.currentTimeline;i&&d.delayNextStep(i);const u=d.currentTime;On(this,r.animation,e),e.previousNode=r,t.currentStaggerTime=o.currentTime-u+(o.startTime-t.currentTimeline.startTime)}}const Fb={};class k0{constructor(r,e,t,o,l,c,n,i){this._driver=r,this.element=e,this.subInstructions=t,this._enterClassName=o,this._leaveClassName=l,this.errors=c,this.timelines=n,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Fb,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=i||new Nb(this._driver,e,0),n.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(r,e){if(!r)return;const t=r;let o=this.options;null!=t.duration&&(o.duration=ws(t.duration)),null!=t.delay&&(o.delay=ws(t.delay));const l=t.params;if(l){let c=o.params;c||(c=this.options.params={}),Object.keys(l).forEach(n=>{(!e||!c.hasOwnProperty(n))&&(c[n]=Pb(l[n],c,this.errors))})}}_copyOptions(){const r={};if(this.options){const e=this.options.params;if(e){const t=r.params={};Object.keys(e).forEach(o=>{t[o]=e[o]})}}return r}createSubContext(r=null,e,t){const o=e||this.element,l=new k0(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,t||0));return l.previousNode=this.previousNode,l.currentAnimateTimings=this.currentAnimateTimings,l.options=this._copyOptions(),l.updateOptions(r),l.currentQueryIndex=this.currentQueryIndex,l.currentQueryTotal=this.currentQueryTotal,l.parentContext=this,this.subContextCount++,l}transformIntoNewTimeline(r){return this.previousNode=Fb,this.currentTimeline=this.currentTimeline.fork(this.element,r),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(r,e,t){const o={duration:e??r.duration,delay:this.currentTimeline.currentTime+(t??0)+r.delay,easing:""},l=new sV(this._driver,r.element,r.keyframes,r.preStyleProps,r.postStyleProps,o,r.stretchStartingKeyframe);return this.timelines.push(l),o}incrementTime(r){this.currentTimeline.forwardTime(this.currentTimeline.duration+r)}delayNextStep(r){r>0&&this.currentTimeline.delayNextStep(r)}invokeQuery(r,e,t,o,l,c){let n=[];if(o&&n.push(this.element),r.length>0){r=(r=r.replace(nV,"."+this._enterClassName)).replace(aV,"."+this._leaveClassName);let a=this._driver.query(this.element,r,1!=t);0!==t&&(a=t<0?a.slice(a.length+t,a.length):a.slice(0,t)),n.push(...a)}return!l&&0==n.length&&c.push(function uB(s){return new p.vHH(3014,!1)}()),n}}class Nb{constructor(r,e,t,o){this._driver=r,this.element=e,this.startTime=t,this._elementTimelineStylesLookup=o,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),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.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(r){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+r),e&&this.snapshotCurrentStyles()):this.startTime+=r}fork(r,e){return this.applyStylesToKeyframe(),new Nb(this._driver,r,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(r){this.applyStylesToKeyframe(),this.duration=r,this._loadKeyframe()}_updateStyle(r,e){this._localTimelineStyles.set(r,e),this._globalTimelineStyles.set(r,e),this._styleSummary.set(r,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(r){r&&this._previousKeyframe.set("easing",r);for(let[e,t]of this._globalTimelineStyles)this._backFill.set(e,t||Er),this._currentKeyframe.set(e,Er);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(r,e,t,o){e&&this._previousKeyframe.set("easing",e);const l=o&&o.params||{},c=function lV(s,r){const e=new Map;let t;return s.forEach(o=>{if("*"===o){t=t||r.keys();for(let l of t)e.set(l,Er)}else vs(o,e)}),e}(r,this._globalTimelineStyles);for(let[n,i]of c){const a=Pb(i,l,t);this._pendingStyles.set(n,a),this._localTimelineStyles.has(n)||this._backFill.set(n,this._globalTimelineStyles.get(n)??Er),this._updateStyle(n,a)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((r,e)=>{this._currentKeyframe.set(e,r)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((r,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,r)}))}snapshotCurrentStyles(){for(let[r,e]of this._localTimelineStyles)this._pendingStyles.set(r,e),this._updateStyle(r,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const r=[];for(let e in this._currentKeyframe)r.push(e);return r}mergeTimelineCollectedStyles(r){r._styleSummary.forEach((e,t)=>{const o=this._styleSummary.get(t);(!o||e.time>o.time)&&this._updateStyle(t,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const r=new Set,e=new Set,t=1===this._keyframes.size&&0===this.duration;let o=[];this._keyframes.forEach((n,i)=>{const a=vs(n,new Map,this._backFill);a.forEach((d,u)=>{"!"===d?r.add(u):d===Er&&e.add(u)}),t||a.set("offset",i/this.duration),o.push(a)});const l=r.size?Rb(r.values()):[],c=e.size?Rb(e.values()):[];if(t){const n=o[0],i=new Map(n);n.set("offset",0),i.set("offset",1),o=[n,i]}return R0(this.element,o,l,c,this.duration,this.startTime,this.easing,!1)}}class sV extends Nb{constructor(r,e,t,o,l,c,n=!1){super(r,e,c.delay),this.keyframes=t,this.preStyleProps=o,this.postStyleProps=l,this._stretchStartingKeyframe=n,this.timings={duration:c.duration,delay:c.delay,easing:c.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let r=this.keyframes,{delay:e,duration:t,easing:o}=this.timings;if(this._stretchStartingKeyframe&&e){const l=[],c=t+e,n=e/c,i=vs(r[0]);i.set("offset",0),l.push(i);const a=vs(r[0]);a.set("offset",nD(n)),l.push(a);const d=r.length-1;for(let u=1;u<=d;u++){let f=vs(r[u]);const b=f.get("offset");f.set("offset",nD((e+b*t)/c)),l.push(f)}t=c,e=0,o="",r=l}return R0(this.element,r,this.preStyleProps,this.postStyleProps,t,e,o,!0)}}function nD(s,r=3){const e=Math.pow(10,r-1);return Math.round(s*e)/e}class B0{}const cV=new Set(["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"]);class dV extends B0{normalizePropertyName(r,e){return D0(r)}normalizeStyleValue(r,e,t,o){let l="";const c=t.toString().trim();if(cV.has(e)&&0!==t&&"0"!==t)if("number"==typeof t)l="px";else{const n=t.match(/^[+-]?[\d\.]+([a-z]*)$/);n&&0==n[1].length&&o.push(function eB(s,r){return new p.vHH(3005,!1)}())}return c+l}}function rD(s,r,e,t,o,l,c,n,i,a,d,u,f){return{type:0,element:s,triggerName:r,isRemovalTransition:o,fromState:e,fromStyles:l,toState:t,toStyles:c,timelines:n,queriedElements:i,preStyleProps:a,postStyleProps:d,totalTime:u,errors:f}}const V0={};class aD{constructor(r,e,t){this._triggerName=r,this.ast=e,this._stateStyles=t}match(r,e,t,o){return function uV(s,r,e,t,o){return s.some(l=>l(r,e,t,o))}(this.ast.matchers,r,e,t,o)}buildStyles(r,e,t){let o=this._stateStyles.get("*");return void 0!==r&&(o=this._stateStyles.get(r?.toString())||o),o?o.buildStyles(e,t):new Map}build(r,e,t,o,l,c,n,i,a,d){const u=[],f=this.ast.options&&this.ast.options.params||V0,H=this.buildStyles(t,n&&n.params||V0,u),z=i&&i.params||V0,ae=this.buildStyles(o,z,u),Be=new Set,ot=new Map,_t=new Map,Ut="void"===o,kr={params:hV(z,f),delay:this.ast.options?.delay},ur=d?[]:I0(r,e,this.ast.animation,l,c,H,ae,kr,a,u);let ln=0;if(ur.forEach(so=>{ln=Math.max(so.duration+so.delay,ln)}),u.length)return rD(e,this._triggerName,t,o,Ut,H,ae,[],[],ot,_t,ln,u);ur.forEach(so=>{const lo=so.element,yD=Vn(ot,lo,new Set);so.preStyleProps.forEach(Wl=>yD.add(Wl));const $p=Vn(_t,lo,new Set);so.postStyleProps.forEach(Wl=>$p.add(Wl)),lo!==e&&Be.add(lo)});const oo=Rb(Be.values());return rD(e,this._triggerName,t,o,Ut,H,ae,ur,oo,ot,_t,ln)}}function hV(s,r){const e=Gp(r);for(const t in s)s.hasOwnProperty(t)&&null!=s[t]&&(e[t]=s[t]);return e}class pV{constructor(r,e,t){this.styles=r,this.defaultParams=e,this.normalizer=t}buildStyles(r,e){const t=new Map,o=Gp(this.defaultParams);return Object.keys(r).forEach(l=>{const c=r[l];null!==c&&(o[l]=c)}),this.styles.styles.forEach(l=>{"string"!=typeof l&&l.forEach((c,n)=>{c&&(c=Pb(c,o,e));const i=this.normalizer.normalizePropertyName(n,e);c=this.normalizer.normalizeStyleValue(n,i,c,e),t.set(i,c)})}),t}}class mV{constructor(r,e,t){this.name=r,this.ast=e,this._normalizer=t,this.transitionFactories=[],this.states=new Map,e.states.forEach(o=>{this.states.set(o.name,new pV(o.style,o.options&&o.options.params||{},t))}),oD(this.states,"true","1"),oD(this.states,"false","0"),e.transitions.forEach(o=>{this.transitionFactories.push(new aD(r,o,this.states))}),this.fallbackTransition=function gV(s,r,e){return new aD(s,{type:1,animation:{type:2,steps:[],options:null},matchers:[(c,n)=>!0],options:null,queryCount:0,depCount:0},r)}(r,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(r,e,t,o){return this.transitionFactories.find(c=>c.match(r,e,t,o))||null}matchStyles(r,e,t){return this.fallbackTransition.buildStyles(r,e,t)}}function oD(s,r,e){s.has(r)?s.has(e)||s.set(e,s.get(r)):s.has(e)&&s.set(r,s.get(e))}const _V=new Lb;class bV{constructor(r,e,t){this.bodyNode=r,this._driver=e,this._normalizer=t,this._animations=new Map,this._playersById=new Map,this.players=[]}register(r,e){const t=[],l=H0(this._driver,e,t,[]);if(t.length)throw function bB(s){return new p.vHH(3503,!1)}();this._animations.set(r,l)}_buildPlayer(r,e,t){const o=r.element,l=LM(0,this._normalizer,0,r.keyframes,e,t);return this._driver.animate(o,l,r.duration,r.delay,r.easing,[],!0)}create(r,e,t={}){const o=[],l=this._animations.get(r);let c;const n=new Map;if(l?(c=I0(this._driver,e,l,T0,Sb,new Map,new Map,t,_V,o),c.forEach(d=>{const u=Vn(n,d.element,new Map);d.postStyleProps.forEach(f=>u.set(f,null))})):(o.push(function CB(){return new p.vHH(3300,!1)}()),c=[]),o.length)throw function yB(s){return new p.vHH(3504,!1)}();n.forEach((d,u)=>{d.forEach((f,b)=>{d.set(b,this._driver.computeStyle(u,b,Er))})});const a=ys(c.map(d=>{const u=n.get(d.element);return this._buildPlayer(d,new Map,u)}));return this._playersById.set(r,a),a.onDestroy(()=>this.destroy(r)),this.players.push(a),a}destroy(r){const e=this._getPlayer(r);e.destroy(),this._playersById.delete(r);const t=this.players.indexOf(e);t>=0&&this.players.splice(t,1)}_getPlayer(r){const e=this._playersById.get(r);if(!e)throw function wB(s){return new p.vHH(3301,!1)}();return e}listen(r,e,t,o){const l=w0(e,"","","");return C0(this._getPlayer(r),t,l,o),()=>{}}command(r,e,t,o){if("register"==t)return void this.register(r,o[0]);if("create"==t)return void this.create(r,e,o[0]||{});const l=this._getPlayer(r);switch(t){case"play":l.play();break;case"pause":l.pause();break;case"reset":l.reset();break;case"restart":l.restart();break;case"finish":l.finish();break;case"init":l.init();break;case"setPosition":l.setPosition(parseFloat(o[0]));break;case"destroy":this.destroy(r)}}}const sD="ng-animate-queued",O0="ng-animate-disabled",AV=[],lD={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},xV={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},cr="__ng_removed";class L0{constructor(r,e=""){this.namespaceId=e;const t=r&&r.hasOwnProperty("value");if(this.value=function MV(s){return s??null}(t?r.value:r),t){const l=Gp(r);delete l.value,this.options=l}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(r){const e=r.params;if(e){const t=this.options.params;Object.keys(e).forEach(o=>{null==t[o]&&(t[o]=e[o])})}}}const Wp="void",F0=new L0(Wp);class TV{constructor(r,e,t){this.id=r,this.hostElement=e,this._engine=t,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+r,dr(e,this._hostClassName)}listen(r,e,t,o){if(!this._triggers.has(e))throw function vB(s,r){return new p.vHH(3302,!1)}();if(null==t||0==t.length)throw function AB(s){return new p.vHH(3303,!1)}();if(!function DV(s){return"start"==s||"done"==s}(t))throw function xB(s,r){return new p.vHH(3400,!1)}();const l=Vn(this._elementListeners,r,[]),c={name:e,phase:t,callback:o};l.push(c);const n=Vn(this._engine.statesByElement,r,new Map);return n.has(e)||(dr(r,Mb),dr(r,Mb+"-"+e),n.set(e,F0)),()=>{this._engine.afterFlush(()=>{const i=l.indexOf(c);i>=0&&l.splice(i,1),this._triggers.has(e)||n.delete(e)})}}register(r,e){return!this._triggers.has(r)&&(this._triggers.set(r,e),!0)}_getTrigger(r){const e=this._triggers.get(r);if(!e)throw function TB(s){return new p.vHH(3401,!1)}();return e}trigger(r,e,t,o=!0){const l=this._getTrigger(e),c=new N0(this.id,e,r);let n=this._engine.statesByElement.get(r);n||(dr(r,Mb),dr(r,Mb+"-"+e),this._engine.statesByElement.set(r,n=new Map));let i=n.get(e);const a=new L0(t,this.id);if(!(t&&t.hasOwnProperty("value"))&&i&&a.absorbOptions(i.options),n.set(e,a),i||(i=F0),a.value!==Wp&&i.value===a.value){if(!function RV(s,r){const e=Object.keys(s),t=Object.keys(r);if(e.length!=t.length)return!1;for(let o=0;o{Gl(r,ae),da(r,Be)})}return}const f=Vn(this._engine.playersByElement,r,[]);f.forEach(z=>{z.namespaceId==this.id&&z.triggerName==e&&z.queued&&z.destroy()});let b=l.matchTransition(i.value,a.value,r,a.params),H=!1;if(!b){if(!o)return;b=l.fallbackTransition,H=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:r,triggerName:e,transition:b,fromState:i,toState:a,player:c,isFallbackTransition:H}),H||(dr(r,sD),c.onStart(()=>{$d(r,sD)})),c.onDone(()=>{let z=this.players.indexOf(c);z>=0&&this.players.splice(z,1);const ae=this._engine.playersByElement.get(r);if(ae){let Be=ae.indexOf(c);Be>=0&&ae.splice(Be,1)}}),this.players.push(c),f.push(c),c}deregister(r){this._triggers.delete(r),this._engine.statesByElement.forEach(e=>e.delete(r)),this._elementListeners.forEach((e,t)=>{this._elementListeners.set(t,e.filter(o=>o.name!=r))})}clearElementCache(r){this._engine.statesByElement.delete(r),this._elementListeners.delete(r);const e=this._engine.playersByElement.get(r);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(r))}_signalRemovalForInnerTriggers(r,e){const t=this._engine.driver.query(r,Db,!0);t.forEach(o=>{if(o[cr])return;const l=this._engine.fetchNamespacesByElement(o);l.size?l.forEach(c=>c.triggerLeaveAnimation(o,e,!1,!0)):this.clearElementCache(o)}),this._engine.afterFlushAnimationsDone(()=>t.forEach(o=>this.clearElementCache(o)))}triggerLeaveAnimation(r,e,t,o){const l=this._engine.statesByElement.get(r),c=new Map;if(l){const n=[];if(l.forEach((i,a)=>{if(c.set(a,i.value),this._triggers.has(a)){const d=this.trigger(r,a,Wp,o);d&&n.push(d)}}),n.length)return this._engine.markElementAsRemoved(this.id,r,!0,e,c),t&&ys(n).onDone(()=>this._engine.processLeaveNode(r)),!0}return!1}prepareLeaveAnimationListeners(r){const e=this._elementListeners.get(r),t=this._engine.statesByElement.get(r);if(e&&t){const o=new Set;e.forEach(l=>{const c=l.name;if(o.has(c))return;o.add(c);const i=this._triggers.get(c).fallbackTransition,a=t.get(c)||F0,d=new L0(Wp),u=new N0(this.id,c,r);this._engine.totalQueuedPlayers++,this._queue.push({element:r,triggerName:c,transition:i,fromState:a,toState:d,player:u,isFallbackTransition:!0})})}}removeNode(r,e){const t=this._engine;if(r.childElementCount&&this._signalRemovalForInnerTriggers(r,e),this.triggerLeaveAnimation(r,e,!0))return;let o=!1;if(t.totalAnimations){const l=t.players.length?t.playersByQueriedElement.get(r):[];if(l&&l.length)o=!0;else{let c=r;for(;c=c.parentNode;)if(t.statesByElement.get(c)){o=!0;break}}}if(this.prepareLeaveAnimationListeners(r),o)t.markElementAsRemoved(this.id,r,!1,e);else{const l=r[cr];(!l||l===lD)&&(t.afterFlush(()=>this.clearElementCache(r)),t.destroyInnerAnimations(r),t._onRemovalComplete(r,e))}}insertNode(r,e){dr(r,this._hostClassName)}drainQueuedTransitions(r){const e=[];return this._queue.forEach(t=>{const o=t.player;if(o.destroyed)return;const l=t.element,c=this._elementListeners.get(l);c&&c.forEach(n=>{if(n.name==t.triggerName){const i=w0(l,t.triggerName,t.fromState.value,t.toState.value);i._data=r,C0(t.player,n.phase,i,n.callback)}}),o.markedForDestroy?this._engine.afterFlush(()=>{o.destroy()}):e.push(t)}),this._queue=[],e.sort((t,o)=>{const l=t.transition.ast.depCount,c=o.transition.ast.depCount;return 0==l||0==c?l-c:this._engine.driver.containsElement(t.element,o.element)?1:-1})}destroy(r){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,r)}elementContainsData(r){let e=!1;return this._elementListeners.has(r)&&(e=!0),e=!!this._queue.find(t=>t.element===r)||e,e}}class EV{constructor(r,e,t){this.bodyNode=r,this.driver=e,this._normalizer=t,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=(o,l)=>{}}_onRemovalComplete(r,e){this.onRemovalComplete(r,e)}get queuedPlayers(){const r=[];return this._namespaceList.forEach(e=>{e.players.forEach(t=>{t.queued&&r.push(t)})}),r}createNamespace(r,e){const t=new TV(r,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(t,e):(this.newHostElements.set(e,t),this.collectEnterElement(e)),this._namespaceLookup[r]=t}_balanceNamespaceList(r,e){const t=this._namespaceList,o=this.namespacesByHostElement;if(t.length-1>=0){let c=!1,n=this.driver.getParentElement(e);for(;n;){const i=o.get(n);if(i){const a=t.indexOf(i);t.splice(a+1,0,r),c=!0;break}n=this.driver.getParentElement(n)}c||t.unshift(r)}else t.push(r);return o.set(e,r),r}register(r,e){let t=this._namespaceLookup[r];return t||(t=this.createNamespace(r,e)),t}registerTrigger(r,e,t){let o=this._namespaceLookup[r];o&&o.register(e,t)&&this.totalAnimations++}destroy(r,e){if(!r)return;const t=this._fetchNamespace(r);this.afterFlush(()=>{this.namespacesByHostElement.delete(t.hostElement),delete this._namespaceLookup[r];const o=this._namespaceList.indexOf(t);o>=0&&this._namespaceList.splice(o,1)}),this.afterFlushAnimationsDone(()=>t.destroy(e))}_fetchNamespace(r){return this._namespaceLookup[r]}fetchNamespacesByElement(r){const e=new Set,t=this.statesByElement.get(r);if(t)for(let o of t.values())if(o.namespaceId){const l=this._fetchNamespace(o.namespaceId);l&&e.add(l)}return e}trigger(r,e,t,o){if(jb(e)){const l=this._fetchNamespace(r);if(l)return l.trigger(e,t,o),!0}return!1}insertNode(r,e,t,o){if(!jb(e))return;const l=e[cr];if(l&&l.setForRemoval){l.setForRemoval=!1,l.setForMove=!0;const c=this.collectedLeaveElements.indexOf(e);c>=0&&this.collectedLeaveElements.splice(c,1)}if(r){const c=this._fetchNamespace(r);c&&c.insertNode(e,t)}o&&this.collectEnterElement(e)}collectEnterElement(r){this.collectedEnterElements.push(r)}markElementAsDisabled(r,e){e?this.disabledNodes.has(r)||(this.disabledNodes.add(r),dr(r,O0)):this.disabledNodes.has(r)&&(this.disabledNodes.delete(r),$d(r,O0))}removeNode(r,e,t,o){if(jb(e)){const l=r?this._fetchNamespace(r):null;if(l?l.removeNode(e,o):this.markElementAsRemoved(r,e,!1,o),t){const c=this.namespacesByHostElement.get(e);c&&c.id!==r&&c.removeNode(e,o)}}else this._onRemovalComplete(e,o)}markElementAsRemoved(r,e,t,o,l){this.collectedLeaveElements.push(e),e[cr]={namespaceId:r,setForRemoval:o,hasAnimation:t,removedBeforeQueried:!1,previousTriggersValues:l}}listen(r,e,t,o,l){return jb(e)?this._fetchNamespace(r).listen(e,t,o,l):()=>{}}_buildInstruction(r,e,t,o,l){return r.transition.build(this.driver,r.element,r.fromState.value,r.toState.value,t,o,r.fromState.options,r.toState.options,e,l)}destroyInnerAnimations(r){let e=this.driver.query(r,Db,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(r,E0,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(r){const e=this.playersByElement.get(r);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(r){const e=this.playersByQueriedElement.get(r);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(r=>{if(this.players.length)return ys(this.players).onDone(()=>r());r()})}processLeaveNode(r){const e=r[cr];if(e&&e.setForRemoval){if(r[cr]=lD,e.namespaceId){this.destroyInnerAnimations(r);const t=this._fetchNamespace(e.namespaceId);t&&t.clearElementCache(r)}this._onRemovalComplete(r,e.setForRemoval)}r.classList?.contains(O0)&&this.markElementAsDisabled(r,!1),this.driver.query(r,".ng-animate-disabled",!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(r=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,o)=>this._balanceNamespaceList(t,o)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let t=0;tt()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?ys(e).onDone(()=>{t.forEach(o=>o())}):t.forEach(o=>o())}}reportError(r){throw function EB(s){return new p.vHH(3402,!1)}()}_flushAnimations(r,e){const t=new Lb,o=[],l=new Map,c=[],n=new Map,i=new Map,a=new Map,d=new Set;this.disabledNodes.forEach(Ge=>{d.add(Ge);const Ze=this.driver.query(Ge,".ng-animate-queued",!0);for(let it=0;it{const it=T0+z++;H.set(Ze,it),Ge.forEach(wt=>dr(wt,it))});const ae=[],Be=new Set,ot=new Set;for(let Ge=0;GeBe.add(wt)):ot.add(Ze))}const _t=new Map,Ut=uD(f,Array.from(Be));Ut.forEach((Ge,Ze)=>{const it=Sb+z++;_t.set(Ze,it),Ge.forEach(wt=>dr(wt,it))}),r.push(()=>{b.forEach((Ge,Ze)=>{const it=H.get(Ze);Ge.forEach(wt=>$d(wt,it))}),Ut.forEach((Ge,Ze)=>{const it=_t.get(Ze);Ge.forEach(wt=>$d(wt,it))}),ae.forEach(Ge=>{this.processLeaveNode(Ge)})});const kr=[],ur=[];for(let Ge=this._namespaceList.length-1;Ge>=0;Ge--)this._namespaceList[Ge].drainQueuedTransitions(e).forEach(it=>{const wt=it.player,Oi=it.element;if(kr.push(wt),this.collectedEnterElements.length){const en=Oi[cr];if(en&&en.setForMove){if(en.previousTriggersValues&&en.previousTriggersValues.has(it.triggerName)){const $l=en.previousTriggersValues.get(it.triggerName),hr=this.statesByElement.get(it.element);if(hr&&hr.has(it.triggerName)){const Gb=hr.get(it.triggerName);Gb.value=$l,hr.set(it.triggerName,Gb)}}return void wt.destroy()}}const ua=!u||!this.driver.containsElement(u,Oi),Ln=_t.get(Oi),As=H.get(Oi),si=this._buildInstruction(it,t,As,Ln,ua);if(si.errors&&si.errors.length)return void ur.push(si);if(ua)return wt.onStart(()=>Gl(Oi,si.fromStyles)),wt.onDestroy(()=>da(Oi,si.toStyles)),void o.push(wt);if(it.isFallbackTransition)return wt.onStart(()=>Gl(Oi,si.fromStyles)),wt.onDestroy(()=>da(Oi,si.toStyles)),void o.push(wt);const AD=[];si.timelines.forEach(en=>{en.stretchStartingKeyframe=!0,this.disabledNodes.has(en.element)||AD.push(en)}),si.timelines=AD,t.append(Oi,si.timelines),c.push({instruction:si,player:wt,element:Oi}),si.queriedElements.forEach(en=>Vn(n,en,[]).push(wt)),si.preStyleProps.forEach((en,$l)=>{if(en.size){let hr=i.get($l);hr||i.set($l,hr=new Set),en.forEach((Gb,U0)=>hr.add(U0))}}),si.postStyleProps.forEach((en,$l)=>{let hr=a.get($l);hr||a.set($l,hr=new Set),en.forEach((Gb,U0)=>hr.add(U0))})});if(ur.length){const Ge=[];ur.forEach(Ze=>{Ge.push(function SB(s,r){return new p.vHH(3505,!1)}())}),kr.forEach(Ze=>Ze.destroy()),this.reportError(Ge)}const ln=new Map,oo=new Map;c.forEach(Ge=>{const Ze=Ge.element;t.has(Ze)&&(oo.set(Ze,Ze),this._beforeAnimationBuild(Ge.player.namespaceId,Ge.instruction,ln))}),o.forEach(Ge=>{const Ze=Ge.element;this._getPreviousPlayers(Ze,!1,Ge.namespaceId,Ge.triggerName,null).forEach(wt=>{Vn(ln,Ze,[]).push(wt),wt.destroy()})});const so=ae.filter(Ge=>pD(Ge,i,a)),lo=new Map;dD(lo,this.driver,ot,a,Er).forEach(Ge=>{pD(Ge,i,a)&&so.push(Ge)});const $p=new Map;b.forEach((Ge,Ze)=>{dD($p,this.driver,new Set(Ge),i,"!")}),so.forEach(Ge=>{const Ze=lo.get(Ge),it=$p.get(Ge);lo.set(Ge,new Map([...Array.from(Ze?.entries()??[]),...Array.from(it?.entries()??[])]))});const Wl=[],wD=[],vD={};c.forEach(Ge=>{const{element:Ze,player:it,instruction:wt}=Ge;if(t.has(Ze)){if(d.has(Ze))return it.onDestroy(()=>da(Ze,wt.toStyles)),it.disabled=!0,it.overrideTotalTime(wt.totalTime),void o.push(it);let Oi=vD;if(oo.size>1){let Ln=Ze;const As=[];for(;Ln=Ln.parentNode;){const si=oo.get(Ln);if(si){Oi=si;break}As.push(Ln)}As.forEach(si=>oo.set(si,Oi))}const ua=this._buildAnimation(it.namespaceId,wt,ln,l,$p,lo);if(it.setRealPlayer(ua),Oi===vD)Wl.push(it);else{const Ln=this.playersByElement.get(Oi);Ln&&Ln.length&&(it.parentPlayer=ys(Ln)),o.push(it)}}else Gl(Ze,wt.fromStyles),it.onDestroy(()=>da(Ze,wt.toStyles)),wD.push(it),d.has(Ze)&&o.push(it)}),wD.forEach(Ge=>{const Ze=l.get(Ge.element);if(Ze&&Ze.length){const it=ys(Ze);Ge.setRealPlayer(it)}}),o.forEach(Ge=>{Ge.parentPlayer?Ge.syncPlayerEvents(Ge.parentPlayer):Ge.destroy()});for(let Ge=0;Ge!ua.destroyed);Oi.length?HV(this,Ze,Oi):this.processLeaveNode(Ze)}return ae.length=0,Wl.forEach(Ge=>{this.players.push(Ge),Ge.onDone(()=>{Ge.destroy();const Ze=this.players.indexOf(Ge);this.players.splice(Ze,1)}),Ge.play()}),Wl}elementContainsData(r,e){let t=!1;const o=e[cr];return o&&o.setForRemoval&&(t=!0),this.playersByElement.has(e)&&(t=!0),this.playersByQueriedElement.has(e)&&(t=!0),this.statesByElement.has(e)&&(t=!0),this._fetchNamespace(r).elementContainsData(e)||t}afterFlush(r){this._flushFns.push(r)}afterFlushAnimationsDone(r){this._whenQuietFns.push(r)}_getPreviousPlayers(r,e,t,o,l){let c=[];if(e){const n=this.playersByQueriedElement.get(r);n&&(c=n)}else{const n=this.playersByElement.get(r);if(n){const i=!l||l==Wp;n.forEach(a=>{a.queued||!i&&a.triggerName!=o||c.push(a)})}}return(t||o)&&(c=c.filter(n=>!(t&&t!=n.namespaceId||o&&o!=n.triggerName))),c}_beforeAnimationBuild(r,e,t){const l=e.element,c=e.isRemovalTransition?void 0:r,n=e.isRemovalTransition?void 0:e.triggerName;for(const i of e.timelines){const a=i.element,d=a!==l,u=Vn(t,a,[]);this._getPreviousPlayers(a,d,c,n,e.toState).forEach(b=>{const H=b.getRealPlayer();H.beforeDestroy&&H.beforeDestroy(),b.destroy(),u.push(b)})}Gl(l,e.fromStyles)}_buildAnimation(r,e,t,o,l,c){const n=e.triggerName,i=e.element,a=[],d=new Set,u=new Set,f=e.timelines.map(H=>{const z=H.element;d.add(z);const ae=z[cr];if(ae&&ae.removedBeforeQueried)return new In(H.duration,H.delay);const Be=z!==i,ot=function PV(s){const r=[];return hD(s,r),r}((t.get(z)||AV).map(ln=>ln.getRealPlayer())).filter(ln=>!!ln.element&&ln.element===z),_t=l.get(z),Ut=c.get(z),kr=LM(0,this._normalizer,0,H.keyframes,_t,Ut),ur=this._buildPlayer(H,kr,ot);if(H.subTimeline&&o&&u.add(z),Be){const ln=new N0(r,n,z);ln.setRealPlayer(ur),a.push(ln)}return ur});a.forEach(H=>{Vn(this.playersByQueriedElement,H.element,[]).push(H),H.onDone(()=>function SV(s,r,e){let t=s.get(r);if(t){if(t.length){const o=t.indexOf(e);t.splice(o,1)}0==t.length&&s.delete(r)}return t}(this.playersByQueriedElement,H.element,H))}),d.forEach(H=>dr(H,$M));const b=ys(f);return b.onDestroy(()=>{d.forEach(H=>$d(H,$M)),da(i,e.toStyles)}),u.forEach(H=>{Vn(o,H,[]).push(b)}),b}_buildPlayer(r,e,t){return e.length>0?this.driver.animate(r.element,e,r.duration,r.delay,r.easing,t):new In(r.duration,r.delay)}}class N0{constructor(r,e,t){this.namespaceId=r,this.triggerName=e,this.element=t,this._player=new In,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(r){this._containsRealPlayer||(this._player=r,this._queuedCallbacks.forEach((e,t)=>{e.forEach(o=>C0(r,t,void 0,o))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(r.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(r){this.totalTime=r}syncPlayerEvents(r){const e=this._player;e.triggerCallback&&r.onStart(()=>e.triggerCallback("start")),r.onDone(()=>this.finish()),r.onDestroy(()=>this.destroy())}_queueEvent(r,e){Vn(this._queuedCallbacks,r,[]).push(e)}onDone(r){this.queued&&this._queueEvent("done",r),this._player.onDone(r)}onStart(r){this.queued&&this._queueEvent("start",r),this._player.onStart(r)}onDestroy(r){this.queued&&this._queueEvent("destroy",r),this._player.onDestroy(r)}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(r){this.queued||this._player.setPosition(r)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(r){const e=this._player;e.triggerCallback&&e.triggerCallback(r)}}function jb(s){return s&&1===s.nodeType}function cD(s,r){const e=s.style.display;return s.style.display=r??"none",e}function dD(s,r,e,t,o){const l=[];e.forEach(i=>l.push(cD(i)));const c=[];t.forEach((i,a)=>{const d=new Map;i.forEach(u=>{const f=r.computeStyle(a,u,o);d.set(u,f),(!f||0==f.length)&&(a[cr]=xV,c.push(a))}),s.set(a,d)});let n=0;return e.forEach(i=>cD(i,l[n++])),c}function uD(s,r){const e=new Map;if(s.forEach(n=>e.set(n,[])),0==r.length)return e;const o=new Set(r),l=new Map;function c(n){if(!n)return 1;let i=l.get(n);if(i)return i;const a=n.parentNode;return i=e.has(a)?a:o.has(a)?1:c(a),l.set(n,i),i}return r.forEach(n=>{const i=c(n);1!==i&&e.get(i).push(n)}),e}function dr(s,r){s.classList?.add(r)}function $d(s,r){s.classList?.remove(r)}function HV(s,r,e){ys(e).onDone(()=>s.processLeaveNode(r))}function hD(s,r){for(let e=0;eo.add(l)):r.set(s,t),e.delete(s),!0}class zb{constructor(r,e,t){this.bodyNode=r,this._driver=e,this._normalizer=t,this._triggerCache={},this.onRemovalComplete=(o,l)=>{},this._transitionEngine=new EV(r,e,t),this._timelineEngine=new bV(r,e,t),this._transitionEngine.onRemovalComplete=(o,l)=>this.onRemovalComplete(o,l)}registerTrigger(r,e,t,o,l){const c=r+"-"+o;let n=this._triggerCache[c];if(!n){const i=[],d=H0(this._driver,l,i,[]);if(i.length)throw function gB(s,r){return new p.vHH(3404,!1)}();n=function fV(s,r,e){return new mV(s,r,e)}(o,d,this._normalizer),this._triggerCache[c]=n}this._transitionEngine.registerTrigger(e,o,n)}register(r,e){this._transitionEngine.register(r,e)}destroy(r,e){this._transitionEngine.destroy(r,e)}onInsert(r,e,t,o){this._transitionEngine.insertNode(r,e,t,o)}onRemove(r,e,t,o){this._transitionEngine.removeNode(r,e,o||!1,t)}disableAnimations(r,e){this._transitionEngine.markElementAsDisabled(r,e)}process(r,e,t,o){if("@"==t.charAt(0)){const[l,c]=FM(t);this._timelineEngine.command(l,e,c,o)}else this._transitionEngine.trigger(r,e,t,o)}listen(r,e,t,o,l){if("@"==t.charAt(0)){const[c,n]=FM(t);return this._timelineEngine.listen(c,e,n,l)}return this._transitionEngine.listen(r,e,t,o,l)}flush(r=-1){this._transitionEngine.flush(r)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let kV=(()=>{class s{constructor(e,t,o){this._element=e,this._startStyles=t,this._endStyles=o,this._state=0;let l=s.initialStylesByElement.get(e);l||s.initialStylesByElement.set(e,l=new Map),this._initialStyles=l}start(){this._state<1&&(this._startStyles&&da(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(da(this._element,this._initialStyles),this._endStyles&&(da(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(s.initialStylesByElement.delete(this._element),this._startStyles&&(Gl(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Gl(this._element,this._endStyles),this._endStyles=null),da(this._element,this._initialStyles),this._state=3)}}return s.initialStylesByElement=new WeakMap,s})();function j0(s){let r=null;return s.forEach((e,t)=>{(function BV(s){return"display"===s||"position"===s})(t)&&(r=r||new Map,r.set(t,e))}),r}class fD{constructor(r,e,t,o){this.element=r,this.keyframes=e,this.options=t,this._specialStyles=o,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=t.duration,this._delay=t.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(r=>r()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const r=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,r,this.options),this._finalKeyframe=r.length?r[r.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(r){const e=[];return r.forEach(t=>{e.push(Object.fromEntries(t))}),e}_triggerWebAnimation(r,e,t){return r.animate(this._convertKeyframesToObject(e),t)}onStart(r){this._originalOnStartFns.push(r),this._onStartFns.push(r)}onDone(r){this._originalOnDoneFns.push(r),this._onDoneFns.push(r)}onDestroy(r){this._onDestroyFns.push(r)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(r=>r()),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,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_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(r=>r()),this._onDestroyFns=[])}setPosition(r){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=r*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const r=new Map;this.hasStarted()&&this._finalKeyframe.forEach((t,o)=>{"offset"!==o&&r.set(o,this._finished?t:XM(this.element,o))}),this.currentSnapshot=r}triggerCallback(r){const e="start"===r?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class VV{validateStyleProperty(r){return!0}validateAnimatableStyleProperty(r){return!0}matchesElement(r,e){return!1}containsElement(r,e){return UM(r,e)}getParentElement(r){return A0(r)}query(r,e,t){return GM(r,e,t)}computeStyle(r,e,t){return window.getComputedStyle(r)[e]}animate(r,e,t,o,l,c=[]){const i={duration:t,delay:o,fill:0==o?"both":"forwards"};l&&(i.easing=l);const a=new Map,d=c.filter(b=>b instanceof fD);(function NB(s,r){return 0===s||0===r})(t,o)&&d.forEach(b=>{b.currentSnapshot.forEach((H,z)=>a.set(z,H))});let u=function VB(s){return s.length?s[0]instanceof Map?s:s.map(r=>YM(r)):[]}(e).map(b=>vs(b));u=function jB(s,r,e){if(e.size&&r.length){let t=r[0],o=[];if(e.forEach((l,c)=>{t.has(c)||o.push(c),t.set(c,l)}),o.length)for(let l=1;lc.set(n,XM(s,n)))}}return r}(r,u,a);const f=function IV(s,r){let e=null,t=null;return Array.isArray(r)&&r.length?(e=j0(r[0]),r.length>1&&(t=j0(r[r.length-1]))):r instanceof Map&&(e=j0(r)),e||t?new kV(s,e,t):null}(r,u);return new fD(r,u,i,f)}}let OV=(()=>{class s extends ng{constructor(e,t){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(t.body,{id:"0",encapsulation:p.ifc.None,styles:[],data:{animation:[]}})}build(e){const t=this._nextAnimationId.toString();this._nextAnimationId++;const o=Array.isArray(e)?hl(e):e;return mD(this._renderer,null,t,"register",[o]),new LV(t,this._renderer)}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(p.FYo),p.LFG(T.K0))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})();class LV extends class gw{}{constructor(r,e){super(),this._id=r,this._renderer=e}create(r,e){return new FV(this._id,r,e||{},this._renderer)}}class FV{constructor(r,e,t,o){this.id=r,this.element=e,this._renderer=o,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",t)}_listen(r,e){return this._renderer.listen(this.element,`@@${this.id}:${r}`,e)}_command(r,...e){return mD(this._renderer,this.element,this.id,r,e)}onDone(r){this._listen("done",r)}onStart(r){this._listen("start",r)}onDestroy(r){this._listen("destroy",r)}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"),this._started=!1}setPosition(r){this._command("setPosition",r)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function mD(s,r,e,t,o){return s.setProperty(r,`@@${e}:${t}`,o)}const gD="@.disabled";let NV=(()=>{class s{constructor(e,t,o){this.delegate=e,this.engine=t,this._zone=o,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),t.onRemovalComplete=(l,c)=>{const n=c?.parentNode(l);n&&c.removeChild(n,l)}}createRenderer(e,t){const l=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){let d=this._rendererCache.get(l);return d||(d=new _D("",l,this.engine),this._rendererCache.set(l,d)),d}const c=t.id,n=t.id+"-"+this._currentId;this._currentId++,this.engine.register(n,e);const i=d=>{Array.isArray(d)?d.forEach(i):this.engine.registerTrigger(c,n,e,d.name,d)};return t.data.animation.forEach(i),new jV(this,n,l,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,o){e>=0&&et(o)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(l=>{const[c,n]=l;c(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,o]))}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 s.\u0275fac=function(e){return new(e||s)(p.LFG(p.FYo),p.LFG(zb),p.LFG(p.R0b))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})();class _D{constructor(r,e,t){this.namespaceId=r,this.delegate=e,this.engine=t,this.destroyNode=this.delegate.destroyNode?o=>e.destroyNode(o):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(r,e){return this.delegate.createElement(r,e)}createComment(r){return this.delegate.createComment(r)}createText(r){return this.delegate.createText(r)}appendChild(r,e){this.delegate.appendChild(r,e),this.engine.onInsert(this.namespaceId,e,r,!1)}insertBefore(r,e,t,o=!0){this.delegate.insertBefore(r,e,t),this.engine.onInsert(this.namespaceId,e,r,o)}removeChild(r,e,t){this.engine.onRemove(this.namespaceId,e,this.delegate,t)}selectRootElement(r,e){return this.delegate.selectRootElement(r,e)}parentNode(r){return this.delegate.parentNode(r)}nextSibling(r){return this.delegate.nextSibling(r)}setAttribute(r,e,t,o){this.delegate.setAttribute(r,e,t,o)}removeAttribute(r,e,t){this.delegate.removeAttribute(r,e,t)}addClass(r,e){this.delegate.addClass(r,e)}removeClass(r,e){this.delegate.removeClass(r,e)}setStyle(r,e,t,o){this.delegate.setStyle(r,e,t,o)}removeStyle(r,e,t){this.delegate.removeStyle(r,e,t)}setProperty(r,e,t){"@"==e.charAt(0)&&e==gD?this.disableAnimations(r,!!t):this.delegate.setProperty(r,e,t)}setValue(r,e){this.delegate.setValue(r,e)}listen(r,e,t){return this.delegate.listen(r,e,t)}disableAnimations(r,e){this.engine.disableAnimations(r,e)}}class jV extends _D{constructor(r,e,t,o){super(e,t,o),this.factory=r,this.namespaceId=e}setProperty(r,e,t){"@"==e.charAt(0)?"."==e.charAt(1)&&e==gD?this.disableAnimations(r,t=void 0===t||!!t):this.engine.process(this.namespaceId,r,e.slice(1),t):this.delegate.setProperty(r,e,t)}listen(r,e,t){if("@"==e.charAt(0)){const o=function zV(s){switch(s){case"body":return document.body;case"document":return document;case"window":return window;default:return s}}(r);let l=e.slice(1),c="";return"@"!=l.charAt(0)&&([l,c]=function UV(s){const r=s.indexOf(".");return[s.substring(0,r),s.slice(r+1)]}(l)),this.engine.listen(this.namespaceId,o,l,c,n=>{this.factory.scheduleListenerCallback(n._data||-1,t,n)})}return this.delegate.listen(r,e,t)}}const bD=[{provide:ng,useClass:OV},{provide:B0,useFactory:function qV(){return new dV}},{provide:zb,useClass:(()=>{class s extends zb{constructor(e,t,o,l){super(e.body,t,o)}ngOnDestroy(){this.flush()}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(T.K0),p.LFG(x0),p.LFG(B0),p.LFG(p.z2F))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})()},{provide:p.FYo,useFactory:function WV(s,r,e){return new NV(s,r,e)},deps:[ue,zb,p.R0b]}],z0=[{provide:x0,useFactory:()=>new VV},{provide:p.QbO,useValue:"BrowserAnimations"},...bD],CD=[{provide:x0,useClass:qM},{provide:p.QbO,useValue:"NoopAnimations"},...bD];let $V=(()=>{class s{static withConfig(e){return{ngModule:s,providers:e.disableAnimations?CD:z0}}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({providers:z0,imports:[fa]}),s})();const YV={provide:y.TP,useExisting:(0,p.Gpc)(()=>b_),multi:!0};function QV(s){return new EH(s,"./assets/i18n/",".json")}function JV(s){const r={basePath:s.getProperty("api_url")};return new tt(r)}const KV=s=>()=>s.loadConfigs();let ZV=(()=>{class s{constructor(e,t){this.customIconService=e,this.translate=t,this.translate.setDefaultLang("en"),this.translate.use("en"),this.customIconService.registerPerunRefreshIcon()}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(rA),p.LFG(aa))},s.\u0275mod=p.oAB({type:s,bootstrap:[Oo]}),s.\u0275inj=p.cJS({providers:[rA,{provide:p.ip1,useFactory:KV,multi:!0,deps:[HH]},{provide:tt,useFactory:JV,deps:[Cn]},b_,YV,{provide:PH,useClass:aA},{provide:Wr.Hy,useFactory:()=>localStorage}],imports:[fa,$V,y.JF,Xv,TH,s0,q1,na,HM,l0,kg,$1,Wr.zr.forRoot(),Y1,ar.forRoot({loader:{provide:cs,useFactory:QV,deps:[y.eN]}})]}),s})();(0,p.G48)(),Qe().bootstrapModule(ZV).catch(s=>console.error(s))},1302:function(F,j,x){var T;!function(p,B){var O={};!function(p){"use strict";p.__esModule=!0,p.digestLength=32,p.blockSize=64;var B=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function O(ne,X,ie,de,he){for(var ge,Ve,Le,we,_e,ve,Ye,De,Me,Se,oe,se,fe;he>=64;){for(ge=X[0],Ve=X[1],Le=X[2],we=X[3],_e=X[4],ve=X[5],Ye=X[6],De=X[7],Se=0;Se<16;Se++)ne[Se]=(255&ie[oe=de+4*Se])<<24|(255&ie[oe+1])<<16|(255&ie[oe+2])<<8|255&ie[oe+3];for(Se=16;Se<64;Se++)ne[Se]=((se=((Me=ne[Se-2])>>>17|Me<<15)^(Me>>>19|Me<<13)^Me>>>10)+ne[Se-7]|0)+((fe=((Me=ne[Se-15])>>>7|Me<<25)^(Me>>>18|Me<<14)^Me>>>3)+ne[Se-16]|0);for(Se=0;Se<64;Se++)se=(((_e>>>6|_e<<26)^(_e>>>11|_e<<21)^(_e>>>25|_e<<7))+(_e&ve^~_e&Ye)|0)+(De+(B[Se]+ne[Se]|0)|0)|0,fe=((ge>>>2|ge<<30)^(ge>>>13|ge<<19)^(ge>>>22|ge<<10))+(ge&Ve^ge&Le^Ve&Le)|0,De=Ye,Ye=ve,ve=_e,_e=we+se|0,we=Le,Le=Ve,Ve=ge,ge=se+fe|0;X[0]+=ge,X[1]+=Ve,X[2]+=Le,X[3]+=we,X[4]+=_e,X[5]+=ve,X[6]+=Ye,X[7]+=De,de+=64,he-=64}return de}var I=function(){function ne(){this.digestLength=p.digestLength,this.blockSize=p.blockSize,this.state=new Int32Array(8),this.temp=new Int32Array(64),this.buffer=new Uint8Array(128),this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this.reset()}return ne.prototype.reset=function(){return this.state[0]=1779033703,this.state[1]=3144134277,this.state[2]=1013904242,this.state[3]=2773480762,this.state[4]=1359893119,this.state[5]=2600822924,this.state[6]=528734635,this.state[7]=1541459225,this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this},ne.prototype.clean=function(){for(var X=0;X0){for(;this.bufferLength<64&&ie>0;)this.buffer[this.bufferLength++]=X[de++],ie--;64===this.bufferLength&&(O(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(ie>=64&&(de=O(this.temp,this.state,X,de,ie),ie%=64);ie>0;)this.buffer[this.bufferLength++]=X[de++],ie--;return this},ne.prototype.finish=function(X){if(!this.finished){var ie=this.bytesHashed,de=this.bufferLength,he=ie/536870912|0,ge=ie<<3,Ve=ie%64<56?64:128;this.buffer[de]=128;for(var Le=de+1;Le>>24&255,this.buffer[Ve-7]=he>>>16&255,this.buffer[Ve-6]=he>>>8&255,this.buffer[Ve-5]=he>>>0&255,this.buffer[Ve-4]=ge>>>24&255,this.buffer[Ve-3]=ge>>>16&255,this.buffer[Ve-2]=ge>>>8&255,this.buffer[Ve-1]=ge>>>0&255,O(this.temp,this.state,this.buffer,0,Ve),this.finished=!0}for(Le=0;Le<8;Le++)X[4*Le+0]=this.state[Le]>>>24&255,X[4*Le+1]=this.state[Le]>>>16&255,X[4*Le+2]=this.state[Le]>>>8&255,X[4*Le+3]=this.state[Le]>>>0&255;return this},ne.prototype.digest=function(){var X=new Uint8Array(this.digestLength);return this.finish(X),X},ne.prototype._saveState=function(X){for(var ie=0;iethis.blockSize)(new I).update(X).finish(ie).clean();else for(var de=0;de1&&X.update(ne),ie&&X.update(ie),X.update(de),X.finish(ne),de[0]++}p.HMAC=N,p.hash=W,p.default=W,p.hmac=Q;var $=new Uint8Array(p.digestLength);p.hkdf=function U(ne,X,ie,de){void 0===X&&(X=$),void 0===de&&(de=32);for(var he=new Uint8Array([1]),ge=Q(X,ne),Ve=new N(ge),Le=new Uint8Array(Ve.digestLength),we=Le.length,_e=new Uint8Array(de),ve=0;ve>>24&255,Ve[1]=Ye>>>16&255,Ve[2]=Ye>>>8&255,Ve[3]=Ye>>>0&255,he.reset(),he.update(X),he.update(Ve),he.finish(we);for(var De=0;De=U.status}function N($){try{$.dispatchEvent(new MouseEvent("click"))}catch{var U=document.createEvent("MouseEvents");U.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),$.dispatchEvent(U)}}var W="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,Q=W.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),G=W.saveAs||("object"!=typeof window||window!==W?function(){}:"download"in HTMLAnchorElement.prototype&&!Q?function($,U,te){var ne=W.URL||W.webkitURL,X=document.createElement("a");X.download=U=U||$.name||"download",X.rel="noopener","string"==typeof $?(X.href=$,X.origin===location.origin?N(X):I(X.href)?O($,U,te):N(X,X.target="_blank")):(X.href=ne.createObjectURL($),setTimeout(function(){ne.revokeObjectURL(X.href)},4e4),setTimeout(function(){N(X)},0))}:"msSaveOrOpenBlob"in navigator?function($,U,te){if(U=U||$.name||"download","string"!=typeof $)navigator.msSaveOrOpenBlob(function B($,U){return typeof U>"u"?U={autoBom:!1}:"object"!=typeof U&&(console.warn("Deprecated: Expected third argument to be a object"),U={autoBom:!U}),U.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test($.type)?new Blob(["\ufeff",$],{type:$.type}):$}($,te),U);else if(I($))O($,U,te);else{var ne=document.createElement("a");ne.href=$,ne.target="_blank",setTimeout(function(){N(ne)})}}:function($,U,te,ne){if((ne=ne||open("","_blank"))&&(ne.document.title=ne.document.body.innerText="downloading..."),"string"==typeof $)return O($,U,te);var X="application/octet-stream"===$.type,ie=/constructor/i.test(W.HTMLElement)||W.safari,de=/CriOS\/[\d]+/.test(navigator.userAgent);if((de||X&&ie||Q)&&typeof FileReader<"u"){var he=new FileReader;he.onloadend=function(){var Le=he.result;Le=de?Le:Le.replace(/^data:[^;]*;/,"data:attachment/file;"),ne?ne.location.href=Le:location=Le,ne=null},he.readAsDataURL($)}else{var ge=W.URL||W.webkitURL,Ve=ge.createObjectURL($);ne?ne.location=Ve:location.href=Ve,ne=null,setTimeout(function(){ge.revokeObjectURL(Ve)},4e4)}});W.saveAs=G.saveAs=G,F.exports=G}.apply(j,[]))&&(F.exports=p)},9751:(F,j,x)=>{"use strict";x.d(j,{y:()=>Q});var T=x(930),p=x(727),B=x(8822),O=x(9635),I=x(2416),N=x(576),W=x(2806);let Q=(()=>{class te{constructor(X){X&&(this._subscribe=X)}lift(X){const ie=new te;return ie.source=this,ie.operator=X,ie}subscribe(X,ie,de){const he=function U(te){return te&&te instanceof T.Lv||function $(te){return te&&(0,N.m)(te.next)&&(0,N.m)(te.error)&&(0,N.m)(te.complete)}(te)&&(0,p.Nn)(te)}(X)?X:new T.Hp(X,ie,de);return(0,W.x)(()=>{const{operator:ge,source:Ve}=this;he.add(ge?ge.call(he,Ve):Ve?this._subscribe(he):this._trySubscribe(he))}),he}_trySubscribe(X){try{return this._subscribe(X)}catch(ie){X.error(ie)}}forEach(X,ie){return new(ie=G(ie))((de,he)=>{const ge=new T.Hp({next:Ve=>{try{X(Ve)}catch(Le){he(Le),ge.unsubscribe()}},error:he,complete:de});this.subscribe(ge)})}_subscribe(X){var ie;return null===(ie=this.source)||void 0===ie?void 0:ie.subscribe(X)}[B.L](){return this}pipe(...X){return(0,O.U)(X)(this)}toPromise(X){return new(X=G(X))((ie,de)=>{let he;this.subscribe(ge=>he=ge,ge=>de(ge),()=>ie(he))})}}return te.create=ne=>new te(ne),te})();function G(te){var ne;return null!==(ne=te??I.v.Promise)&&void 0!==ne?ne:Promise}},7579:(F,j,x)=>{"use strict";x.d(j,{x:()=>W});var T=x(9751),p=x(727);const O=(0,x(3888).d)(G=>function(){G(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var I=x(8737),N=x(2806);let W=(()=>{class G extends T.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(U){const te=new Q(this,this);return te.operator=U,te}_throwIfClosed(){if(this.closed)throw new O}next(U){(0,N.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const te of this.currentObservers)te.next(U)}})}error(U){(0,N.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=U;const{observers:te}=this;for(;te.length;)te.shift().error(U)}})}complete(){(0,N.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:U}=this;for(;U.length;)U.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var U;return(null===(U=this.observers)||void 0===U?void 0:U.length)>0}_trySubscribe(U){return this._throwIfClosed(),super._trySubscribe(U)}_subscribe(U){return this._throwIfClosed(),this._checkFinalizedStatuses(U),this._innerSubscribe(U)}_innerSubscribe(U){const{hasError:te,isStopped:ne,observers:X}=this;return te||ne?p.Lc:(this.currentObservers=null,X.push(U),new p.w0(()=>{this.currentObservers=null,(0,I.P)(X,U)}))}_checkFinalizedStatuses(U){const{hasError:te,thrownError:ne,isStopped:X}=this;te?U.error(ne):X&&U.complete()}asObservable(){const U=new T.y;return U.source=this,U}}return G.create=($,U)=>new Q($,U),G})();class Q extends W{constructor($,U){super(),this.destination=$,this.source=U}next($){var U,te;null===(te=null===(U=this.destination)||void 0===U?void 0:U.next)||void 0===te||te.call(U,$)}error($){var U,te;null===(te=null===(U=this.destination)||void 0===U?void 0:U.error)||void 0===te||te.call(U,$)}complete(){var $,U;null===(U=null===($=this.destination)||void 0===$?void 0:$.complete)||void 0===U||U.call($)}_subscribe($){var U,te;return null!==(te=null===(U=this.source)||void 0===U?void 0:U.subscribe($))&&void 0!==te?te:p.Lc}}},930:(F,j,x)=>{"use strict";x.d(j,{Hp:()=>de,Lv:()=>te});var T=x(576),p=x(727),B=x(2416),O=x(7849),I=x(5032);const N=G("C",void 0,void 0);function G(we,_e,ve){return{kind:we,value:_e,error:ve}}var $=x(3410),U=x(2806);class te extends p.w0{constructor(_e){super(),this.isStopped=!1,_e?(this.destination=_e,(0,p.Nn)(_e)&&_e.add(this)):this.destination=Le}static create(_e,ve,Ye){return new de(_e,ve,Ye)}next(_e){this.isStopped?Ve(function Q(we){return G("N",we,void 0)}(_e),this):this._next(_e)}error(_e){this.isStopped?Ve(function W(we){return G("E",void 0,we)}(_e),this):(this.isStopped=!0,this._error(_e))}complete(){this.isStopped?Ve(N,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(_e){this.destination.next(_e)}_error(_e){try{this.destination.error(_e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const ne=Function.prototype.bind;function X(we,_e){return ne.call(we,_e)}class ie{constructor(_e){this.partialObserver=_e}next(_e){const{partialObserver:ve}=this;if(ve.next)try{ve.next(_e)}catch(Ye){he(Ye)}}error(_e){const{partialObserver:ve}=this;if(ve.error)try{ve.error(_e)}catch(Ye){he(Ye)}else he(_e)}complete(){const{partialObserver:_e}=this;if(_e.complete)try{_e.complete()}catch(ve){he(ve)}}}class de extends te{constructor(_e,ve,Ye){let De;if(super(),(0,T.m)(_e)||!_e)De={next:_e??void 0,error:ve??void 0,complete:Ye??void 0};else{let Me;this&&B.v.useDeprecatedNextContext?(Me=Object.create(_e),Me.unsubscribe=()=>this.unsubscribe(),De={next:_e.next&&X(_e.next,Me),error:_e.error&&X(_e.error,Me),complete:_e.complete&&X(_e.complete,Me)}):De=_e}this.destination=new ie(De)}}function he(we){B.v.useDeprecatedSynchronousErrorHandling?(0,U.O)(we):(0,O.h)(we)}function Ve(we,_e){const{onStoppedNotification:ve}=B.v;ve&&$.z.setTimeout(()=>ve(we,_e))}const Le={closed:!0,next:I.Z,error:function ge(we){throw we},complete:I.Z}},727:(F,j,x)=>{"use strict";x.d(j,{Lc:()=>N,w0:()=>I,Nn:()=>W});var T=x(576);const B=(0,x(3888).d)(G=>function(U){G(this),this.message=U?`${U.length} errors occurred during unsubscription:\n${U.map((te,ne)=>`${ne+1}) ${te.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=U});var O=x(8737);class I{constructor($){this.initialTeardown=$,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let $;if(!this.closed){this.closed=!0;const{_parentage:U}=this;if(U)if(this._parentage=null,Array.isArray(U))for(const X of U)X.remove(this);else U.remove(this);const{initialTeardown:te}=this;if((0,T.m)(te))try{te()}catch(X){$=X instanceof B?X.errors:[X]}const{_finalizers:ne}=this;if(ne){this._finalizers=null;for(const X of ne)try{Q(X)}catch(ie){$=$??[],ie instanceof B?$=[...$,...ie.errors]:$.push(ie)}}if($)throw new B($)}}add($){var U;if($&&$!==this)if(this.closed)Q($);else{if($ instanceof I){if($.closed||$._hasParent(this))return;$._addParent(this)}(this._finalizers=null!==(U=this._finalizers)&&void 0!==U?U:[]).push($)}}_hasParent($){const{_parentage:U}=this;return U===$||Array.isArray(U)&&U.includes($)}_addParent($){const{_parentage:U}=this;this._parentage=Array.isArray(U)?(U.push($),U):U?[U,$]:$}_removeParent($){const{_parentage:U}=this;U===$?this._parentage=null:Array.isArray(U)&&(0,O.P)(U,$)}remove($){const{_finalizers:U}=this;U&&(0,O.P)(U,$),$ instanceof I&&$._removeParent(this)}}I.EMPTY=(()=>{const G=new I;return G.closed=!0,G})();const N=I.EMPTY;function W(G){return G instanceof I||G&&"closed"in G&&(0,T.m)(G.remove)&&(0,T.m)(G.add)&&(0,T.m)(G.unsubscribe)}function Q(G){(0,T.m)(G)?G():G.unsubscribe()}},2416:(F,j,x)=>{"use strict";x.d(j,{v:()=>T});const T={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9841:(F,j,x)=>{"use strict";x.d(j,{a:()=>$});var T=x(9751),p=x(4742),B=x(2076),O=x(4671),I=x(3268),N=x(3269),W=x(1810),Q=x(5403),G=x(9672);function $(...ne){const X=(0,N.yG)(ne),ie=(0,N.jO)(ne),{args:de,keys:he}=(0,p.D)(ne);if(0===de.length)return(0,B.D)([],X);const ge=new T.y(function U(ne,X,ie=O.y){return de=>{te(X,()=>{const{length:he}=ne,ge=new Array(he);let Ve=he,Le=he;for(let we=0;we{const _e=(0,B.D)(ne[we],X);let ve=!1;_e.subscribe((0,Q.x)(de,Ye=>{ge[we]=Ye,ve||(ve=!0,Le--),Le||de.next(ie(ge.slice()))},()=>{--Ve||de.complete()}))},de)},de)}}(de,X,he?Ve=>(0,W.n)(he,Ve):O.y));return ie?ge.pipe((0,I.Z)(ie)):ge}function te(ne,X,ie){ne?(0,G.f)(ie,ne,X):X()}},7272:(F,j,x)=>{"use strict";x.d(j,{z:()=>I});var T=x(8189),B=x(3269),O=x(2076);function I(...N){return function p(){return(0,T.J)(1)}()((0,O.D)(N,(0,B.yG)(N)))}},515:(F,j,x)=>{"use strict";x.d(j,{E:()=>p});const p=new(x(9751).y)(I=>I.complete())},2076:(F,j,x)=>{"use strict";x.d(j,{D:()=>Ye});var T=x(8421),p=x(9672),B=x(4482),O=x(5403);function I(De,Me=0){return(0,B.e)((Se,oe)=>{Se.subscribe((0,O.x)(oe,se=>(0,p.f)(oe,De,()=>oe.next(se),Me),()=>(0,p.f)(oe,De,()=>oe.complete(),Me),se=>(0,p.f)(oe,De,()=>oe.error(se),Me)))})}function N(De,Me=0){return(0,B.e)((Se,oe)=>{oe.add(De.schedule(()=>Se.subscribe(oe),Me))})}var G=x(9751),U=x(2202),te=x(576);function X(De,Me){if(!De)throw new Error("Iterable cannot be null");return new G.y(Se=>{(0,p.f)(Se,Me,()=>{const oe=De[Symbol.asyncIterator]();(0,p.f)(Se,Me,()=>{oe.next().then(se=>{se.done?Se.complete():Se.next(se.value)})},0,!0)})})}var ie=x(3670),de=x(8239),he=x(1144),ge=x(6495),Ve=x(2206),Le=x(4532),we=x(3260);function Ye(De,Me){return Me?function ve(De,Me){if(null!=De){if((0,ie.c)(De))return function W(De,Me){return(0,T.Xf)(De).pipe(N(Me),I(Me))}(De,Me);if((0,he.z)(De))return function $(De,Me){return new G.y(Se=>{let oe=0;return Me.schedule(function(){oe===De.length?Se.complete():(Se.next(De[oe++]),Se.closed||this.schedule())})})}(De,Me);if((0,de.t)(De))return function Q(De,Me){return(0,T.Xf)(De).pipe(N(Me),I(Me))}(De,Me);if((0,Ve.D)(De))return X(De,Me);if((0,ge.T)(De))return function ne(De,Me){return new G.y(Se=>{let oe;return(0,p.f)(Se,Me,()=>{oe=De[U.h](),(0,p.f)(Se,Me,()=>{let se,fe;try{({value:se,done:fe}=oe.next())}catch(ue){return void Se.error(ue)}fe?Se.complete():Se.next(se)},0,!0)}),()=>(0,te.m)(oe?.return)&&oe.return()})}(De,Me);if((0,we.L)(De))return function _e(De,Me){return X((0,we.Q)(De),Me)}(De,Me)}throw(0,Le.z)(De)}(De,Me):(0,T.Xf)(De)}},8421:(F,j,x)=>{"use strict";x.d(j,{Xf:()=>ne});var T=x(655),p=x(1144),B=x(8239),O=x(9751),I=x(3670),N=x(2206),W=x(4532),Q=x(6495),G=x(3260),$=x(576),U=x(7849),te=x(8822);function ne(we){if(we instanceof O.y)return we;if(null!=we){if((0,I.c)(we))return function X(we){return new O.y(_e=>{const ve=we[te.L]();if((0,$.m)(ve.subscribe))return ve.subscribe(_e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(we);if((0,p.z)(we))return function ie(we){return new O.y(_e=>{for(let ve=0;ve{we.then(ve=>{_e.closed||(_e.next(ve),_e.complete())},ve=>_e.error(ve)).then(null,U.h)})}(we);if((0,N.D)(we))return ge(we);if((0,Q.T)(we))return function he(we){return new O.y(_e=>{for(const ve of we)if(_e.next(ve),_e.closed)return;_e.complete()})}(we);if((0,G.L)(we))return function Ve(we){return ge((0,G.Q)(we))}(we)}throw(0,W.z)(we)}function ge(we){return new O.y(_e=>{(function Le(we,_e){var ve,Ye,De,Me;return(0,T.mG)(this,void 0,void 0,function*(){try{for(ve=(0,T.KL)(we);!(Ye=yield ve.next()).done;)if(_e.next(Ye.value),_e.closed)return}catch(Se){De={error:Se}}finally{try{Ye&&!Ye.done&&(Me=ve.return)&&(yield Me.call(ve))}finally{if(De)throw De.error}}_e.complete()})})(we,_e).catch(ve=>_e.error(ve))})}},6451:(F,j,x)=>{"use strict";x.d(j,{T:()=>N});var T=x(8189),p=x(8421),B=x(515),O=x(3269),I=x(2076);function N(...W){const Q=(0,O.yG)(W),G=(0,O._6)(W,1/0),$=W;return $.length?1===$.length?(0,p.Xf)($[0]):(0,T.J)(G)((0,I.D)($,Q)):B.E}},9646:(F,j,x)=>{"use strict";x.d(j,{of:()=>B});var T=x(3269),p=x(2076);function B(...O){const I=(0,T.yG)(O);return(0,p.D)(O,I)}},102:(F,j,x)=>{"use strict";x.d(j,{S:()=>N});var T=x(9751),p=x(8421);const{isArray:B}=Array;var I=x(5403);function N(...Q){return 1===(Q=function O(Q){return 1===Q.length&&B(Q[0])?Q[0]:Q}(Q)).length?(0,p.Xf)(Q[0]):new T.y(function W(Q){return G=>{let $=[];for(let U=0;$&&!G.closed&&U{if($){for(let ne=0;ne<$.length;ne++)ne!==U&&$[ne].unsubscribe();$=null}G.next(te)})))}}(Q))}},2843:(F,j,x)=>{"use strict";x.d(j,{_:()=>B});var T=x(9751),p=x(576);function B(O,I){const N=(0,p.m)(O)?O:()=>O,W=Q=>Q.error(N());return new T.y(I?Q=>I.schedule(W,0,Q):W)}},2805:(F,j,x)=>{"use strict";x.d(j,{H:()=>I});var T=x(9751),p=x(4986),B=x(3532),O=x(1165);function I(N=0,W,Q=p.P){let G=-1;return null!=W&&((0,B.K)(W)?Q=W:G=W),new T.y($=>{let U=(0,O.q)(N)?+N-Q.now():N;U<0&&(U=0);let te=0;return Q.schedule(function(){$.closed||($.next(te++),0<=G?this.schedule(void 0,G):$.complete())},U)})}},5403:(F,j,x)=>{"use strict";x.d(j,{x:()=>p});var T=x(930);function p(O,I,N,W,Q){return new B(O,I,N,W,Q)}class B extends T.Lv{constructor(I,N,W,Q,G,$){super(I),this.onFinalize=G,this.shouldUnsubscribe=$,this._next=N?function(U){try{N(U)}catch(te){I.error(te)}}:super._next,this._error=Q?function(U){try{Q(U)}catch(te){I.error(te)}finally{this.unsubscribe()}}:super._error,this._complete=W?function(){try{W()}catch(U){I.error(U)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var I;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:N}=this;super.unsubscribe(),!N&&(null===(I=this.onFinalize)||void 0===I||I.call(this))}}}},262:(F,j,x)=>{"use strict";x.d(j,{K:()=>O});var T=x(8421),p=x(5403),B=x(4482);function O(I){return(0,B.e)((N,W)=>{let $,Q=null,G=!1;Q=N.subscribe((0,p.x)(W,void 0,void 0,U=>{$=(0,T.Xf)(I(U,O(I)(N))),Q?(Q.unsubscribe(),Q=null,$.subscribe(W)):G=!0})),G&&(Q.unsubscribe(),Q=null,$.subscribe(W))})}},4351:(F,j,x)=>{"use strict";x.d(j,{b:()=>B});var T=x(5577),p=x(576);function B(O,I){return(0,p.m)(I)?(0,T.z)(O,I,1):(0,T.z)(O,1)}},8372:(F,j,x)=>{"use strict";x.d(j,{b:()=>O});var T=x(4986),p=x(4482),B=x(5403);function O(I,N=T.z){return(0,p.e)((W,Q)=>{let G=null,$=null,U=null;const te=()=>{if(G){G.unsubscribe(),G=null;const X=$;$=null,Q.next(X)}};function ne(){const X=U+I,ie=N.now();if(ie{$=X,U=N.now(),G||(G=N.schedule(ne,I),Q.add(G))},()=>{te(),Q.complete()},void 0,()=>{$=G=null}))})}},6590:(F,j,x)=>{"use strict";x.d(j,{d:()=>B});var T=x(4482),p=x(5403);function B(O){return(0,T.e)((I,N)=>{let W=!1;I.subscribe((0,p.x)(N,Q=>{W=!0,N.next(Q)},()=>{W||N.next(O),N.complete()}))})}},1005:(F,j,x)=>{"use strict";x.d(j,{g:()=>te});var T=x(4986),p=x(7272),B=x(5698),O=x(4482),I=x(5403),N=x(5032),Q=x(9718),G=x(5577);function $(ne,X){return X?ie=>(0,p.z)(X.pipe((0,B.q)(1),function W(){return(0,O.e)((ne,X)=>{ne.subscribe((0,I.x)(X,N.Z))})}()),ie.pipe($(ne))):(0,G.z)((ie,de)=>ne(ie,de).pipe((0,B.q)(1),(0,Q.h)(ie)))}var U=x(2805);function te(ne,X=T.z){const ie=(0,U.H)(ne,X);return $(()=>ie)}},9300:(F,j,x)=>{"use strict";x.d(j,{h:()=>B});var T=x(4482),p=x(5403);function B(O,I){return(0,T.e)((N,W)=>{let Q=0;N.subscribe((0,p.x)(W,G=>O.call(I,G,Q++)&&W.next(G)))})}},590:(F,j,x)=>{"use strict";x.d(j,{P:()=>W});var T=x(6805),p=x(9300),B=x(5698),O=x(6590),I=x(8068),N=x(4671);function W(Q,G){const $=arguments.length>=2;return U=>U.pipe(Q?(0,p.h)((te,ne)=>Q(te,ne,U)):N.y,(0,B.q)(1),$?(0,O.d)(G):(0,I.T)(()=>new T.K))}},4004:(F,j,x)=>{"use strict";x.d(j,{U:()=>B});var T=x(4482),p=x(5403);function B(O,I){return(0,T.e)((N,W)=>{let Q=0;N.subscribe((0,p.x)(W,G=>{W.next(O.call(I,G,Q++))}))})}},9718:(F,j,x)=>{"use strict";x.d(j,{h:()=>p});var T=x(4004);function p(B){return(0,T.U)(()=>B)}},8189:(F,j,x)=>{"use strict";x.d(j,{J:()=>B});var T=x(5577),p=x(4671);function B(O=1/0){return(0,T.z)(p.y,O)}},5577:(F,j,x)=>{"use strict";x.d(j,{z:()=>Q});var T=x(4004),p=x(8421),B=x(4482),O=x(9672),I=x(5403),W=x(576);function Q(G,$,U=1/0){return(0,W.m)($)?Q((te,ne)=>(0,T.U)((X,ie)=>$(te,X,ne,ie))((0,p.Xf)(G(te,ne))),U):("number"==typeof $&&(U=$),(0,B.e)((te,ne)=>function N(G,$,U,te,ne,X,ie,de){const he=[];let ge=0,Ve=0,Le=!1;const we=()=>{Le&&!he.length&&!ge&&$.complete()},_e=Ye=>ge{X&&$.next(Ye),ge++;let De=!1;(0,p.Xf)(U(Ye,Ve++)).subscribe((0,I.x)($,Me=>{ne?.(Me),X?_e(Me):$.next(Me)},()=>{De=!0},void 0,()=>{if(De)try{for(ge--;he.length&&geve(Me)):ve(Me)}we()}catch(Me){$.error(Me)}}))};return G.subscribe((0,I.x)($,_e,()=>{Le=!0,we()})),()=>{de?.()}}(te,ne,G,U)))}},3099:(F,j,x)=>{"use strict";x.d(j,{B:()=>I});var T=x(8421),p=x(7579),B=x(930),O=x(4482);function I(W={}){const{connector:Q=(()=>new p.x),resetOnError:G=!0,resetOnComplete:$=!0,resetOnRefCountZero:U=!0}=W;return te=>{let ne,X,ie,de=0,he=!1,ge=!1;const Ve=()=>{X?.unsubscribe(),X=void 0},Le=()=>{Ve(),ne=ie=void 0,he=ge=!1},we=()=>{const _e=ne;Le(),_e?.unsubscribe()};return(0,O.e)((_e,ve)=>{de++,!ge&&!he&&Ve();const Ye=ie=ie??Q();ve.add(()=>{de--,0===de&&!ge&&!he&&(X=N(we,U))}),Ye.subscribe(ve),!ne&&de>0&&(ne=new B.Hp({next:De=>Ye.next(De),error:De=>{ge=!0,Ve(),X=N(Le,G,De),Ye.error(De)},complete:()=>{he=!0,Ve(),X=N(Le,$),Ye.complete()}}),(0,T.Xf)(_e).subscribe(ne))})(te)}}function N(W,Q,...G){if(!0===Q)return void W();if(!1===Q)return;const $=new B.Hp({next:()=>{$.unsubscribe(),W()}});return Q(...G).subscribe($)}},3900:(F,j,x)=>{"use strict";x.d(j,{w:()=>O});var T=x(8421),p=x(4482),B=x(5403);function O(I,N){return(0,p.e)((W,Q)=>{let G=null,$=0,U=!1;const te=()=>U&&!G&&Q.complete();W.subscribe((0,B.x)(Q,ne=>{G?.unsubscribe();let X=0;const ie=$++;(0,T.Xf)(I(ne,ie)).subscribe(G=(0,B.x)(Q,de=>Q.next(N?N(ne,de,ie,X++):de),()=>{G=null,te()}))},()=>{U=!0,te()}))})}},5698:(F,j,x)=>{"use strict";x.d(j,{q:()=>O});var T=x(515),p=x(4482),B=x(5403);function O(I){return I<=0?()=>T.E:(0,p.e)((N,W)=>{let Q=0;N.subscribe((0,B.x)(W,G=>{++Q<=I&&(W.next(G),I<=Q&&W.complete())}))})}},8505:(F,j,x)=>{"use strict";x.d(j,{b:()=>I});var T=x(576),p=x(4482),B=x(5403),O=x(4671);function I(N,W,Q){const G=(0,T.m)(N)||W||Q?{next:N,error:W,complete:Q}:N;return G?(0,p.e)(($,U)=>{var te;null===(te=G.subscribe)||void 0===te||te.call(G);let ne=!0;$.subscribe((0,B.x)(U,X=>{var ie;null===(ie=G.next)||void 0===ie||ie.call(G,X),U.next(X)},()=>{var X;ne=!1,null===(X=G.complete)||void 0===X||X.call(G),U.complete()},X=>{var ie;ne=!1,null===(ie=G.error)||void 0===ie||ie.call(G,X),U.error(X)},()=>{var X,ie;ne&&(null===(X=G.unsubscribe)||void 0===X||X.call(G)),null===(ie=G.finalize)||void 0===ie||ie.call(G)}))}):O.y}},8068:(F,j,x)=>{"use strict";x.d(j,{T:()=>O});var T=x(6805),p=x(4482),B=x(5403);function O(N=I){return(0,p.e)((W,Q)=>{let G=!1;W.subscribe((0,B.x)(Q,$=>{G=!0,Q.next($)},()=>G?Q.complete():Q.error(N())))})}function I(){return new T.K}},7414:(F,j,x)=>{"use strict";x.d(j,{V:()=>G});var T=x(4986),p=x(1165),B=x(4482),O=x(8421),I=x(3888),N=x(5403),W=x(9672);const Q=(0,I.d)(U=>function(ne=null){U(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=ne});function G(U,te){const{first:ne,each:X,with:ie=$,scheduler:de=te??T.z,meta:he=null}=(0,p.q)(U)?{first:U}:"number"==typeof U?{each:U}:U;if(null==ne&&null==X)throw new TypeError("No timeout provided.");return(0,B.e)((ge,Ve)=>{let Le,we,_e=null,ve=0;const Ye=De=>{we=(0,W.f)(Ve,de,()=>{try{Le.unsubscribe(),(0,O.Xf)(ie({meta:he,lastValue:_e,seen:ve})).subscribe(Ve)}catch(Me){Ve.error(Me)}},De)};Le=ge.subscribe((0,N.x)(Ve,De=>{we?.unsubscribe(),ve++,Ve.next(_e=De),X>0&&Ye(X)},void 0,void 0,()=>{we?.closed||we?.unsubscribe(),_e=null})),!ve&&Ye(null!=ne?"number"==typeof ne?ne:+ne-de.now():X)})}function $(U){throw new Q(U)}},4408:(F,j,x)=>{"use strict";x.d(j,{o:()=>I});var T=x(727);class p extends T.w0{constructor(W,Q){super()}schedule(W,Q=0){return this}}const B={setInterval(N,W,...Q){const{delegate:G}=B;return G?.setInterval?G.setInterval(N,W,...Q):setInterval(N,W,...Q)},clearInterval(N){const{delegate:W}=B;return(W?.clearInterval||clearInterval)(N)},delegate:void 0};var O=x(8737);class I extends p{constructor(W,Q){super(W,Q),this.scheduler=W,this.work=Q,this.pending=!1}schedule(W,Q=0){if(this.closed)return this;this.state=W;const G=this.id,$=this.scheduler;return null!=G&&(this.id=this.recycleAsyncId($,G,Q)),this.pending=!0,this.delay=Q,this.id=this.id||this.requestAsyncId($,this.id,Q),this}requestAsyncId(W,Q,G=0){return B.setInterval(W.flush.bind(W,this),G)}recycleAsyncId(W,Q,G=0){if(null!=G&&this.delay===G&&!1===this.pending)return Q;B.clearInterval(Q)}execute(W,Q){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const G=this._execute(W,Q);if(G)return G;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(W,Q){let $,G=!1;try{this.work(W)}catch(U){G=!0,$=U||new Error("Scheduled action threw falsy error")}if(G)return this.unsubscribe(),$}unsubscribe(){if(!this.closed){const{id:W,scheduler:Q}=this,{actions:G}=Q;this.work=this.state=this.scheduler=null,this.pending=!1,(0,O.P)(G,this),null!=W&&(this.id=this.recycleAsyncId(Q,W,null)),this.delay=null,super.unsubscribe()}}}},7565:(F,j,x)=>{"use strict";x.d(j,{v:()=>B});var T=x(6063);class p{constructor(I,N=p.now){this.schedulerActionCtor=I,this.now=N}schedule(I,N=0,W){return new this.schedulerActionCtor(this,I).schedule(W,N)}}p.now=T.l.now;class B extends p{constructor(I,N=p.now){super(I,N),this.actions=[],this._active=!1,this._scheduled=void 0}flush(I){const{actions:N}=this;if(this._active)return void N.push(I);let W;this._active=!0;do{if(W=I.execute(I.state,I.delay))break}while(I=N.shift());if(this._active=!1,W){for(;I=N.shift();)I.unsubscribe();throw W}}}},4986:(F,j,x)=>{"use strict";x.d(j,{P:()=>O,z:()=>B});var T=x(4408);const B=new(x(7565).v)(T.o),O=B},6063:(F,j,x)=>{"use strict";x.d(j,{l:()=>T});const T={now:()=>(T.delegate||Date).now(),delegate:void 0}},3410:(F,j,x)=>{"use strict";x.d(j,{z:()=>T});const T={setTimeout(p,B,...O){const{delegate:I}=T;return I?.setTimeout?I.setTimeout(p,B,...O):setTimeout(p,B,...O)},clearTimeout(p){const{delegate:B}=T;return(B?.clearTimeout||clearTimeout)(p)},delegate:void 0}},2202:(F,j,x)=>{"use strict";x.d(j,{h:()=>p});const p=function T(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(F,j,x)=>{"use strict";x.d(j,{L:()=>T});const T="function"==typeof Symbol&&Symbol.observable||"@@observable"},6805:(F,j,x)=>{"use strict";x.d(j,{K:()=>p});const p=(0,x(3888).d)(B=>function(){B(this),this.name="EmptyError",this.message="no elements in sequence"})},3269:(F,j,x)=>{"use strict";x.d(j,{_6:()=>N,jO:()=>O,yG:()=>I});var T=x(576),p=x(3532);function B(W){return W[W.length-1]}function O(W){return(0,T.m)(B(W))?W.pop():void 0}function I(W){return(0,p.K)(B(W))?W.pop():void 0}function N(W,Q){return"number"==typeof B(W)?W.pop():Q}},4742:(F,j,x)=>{"use strict";x.d(j,{D:()=>I});const{isArray:T}=Array,{getPrototypeOf:p,prototype:B,keys:O}=Object;function I(W){if(1===W.length){const Q=W[0];if(T(Q))return{args:Q,keys:null};if(function N(W){return W&&"object"==typeof W&&p(W)===B}(Q)){const G=O(Q);return{args:G.map($=>Q[$]),keys:G}}}return{args:W,keys:null}}},8737:(F,j,x)=>{"use strict";function T(p,B){if(p){const O=p.indexOf(B);0<=O&&p.splice(O,1)}}x.d(j,{P:()=>T})},3888:(F,j,x)=>{"use strict";function T(p){const O=p(I=>{Error.call(I),I.stack=(new Error).stack});return O.prototype=Object.create(Error.prototype),O.prototype.constructor=O,O}x.d(j,{d:()=>T})},1810:(F,j,x)=>{"use strict";function T(p,B){return p.reduce((O,I,N)=>(O[I]=B[N],O),{})}x.d(j,{n:()=>T})},2806:(F,j,x)=>{"use strict";x.d(j,{O:()=>O,x:()=>B});var T=x(2416);let p=null;function B(I){if(T.v.useDeprecatedSynchronousErrorHandling){const N=!p;if(N&&(p={errorThrown:!1,error:null}),I(),N){const{errorThrown:W,error:Q}=p;if(p=null,W)throw Q}}else I()}function O(I){T.v.useDeprecatedSynchronousErrorHandling&&p&&(p.errorThrown=!0,p.error=I)}},9672:(F,j,x)=>{"use strict";function T(p,B,O,I=0,N=!1){const W=B.schedule(function(){O(),N?p.add(this.schedule(null,I)):this.unsubscribe()},I);if(p.add(W),!N)return W}x.d(j,{f:()=>T})},4671:(F,j,x)=>{"use strict";function T(p){return p}x.d(j,{y:()=>T})},1144:(F,j,x)=>{"use strict";x.d(j,{z:()=>T});const T=p=>p&&"number"==typeof p.length&&"function"!=typeof p},2206:(F,j,x)=>{"use strict";x.d(j,{D:()=>p});var T=x(576);function p(B){return Symbol.asyncIterator&&(0,T.m)(B?.[Symbol.asyncIterator])}},1165:(F,j,x)=>{"use strict";function T(p){return p instanceof Date&&!isNaN(p)}x.d(j,{q:()=>T})},576:(F,j,x)=>{"use strict";function T(p){return"function"==typeof p}x.d(j,{m:()=>T})},3670:(F,j,x)=>{"use strict";x.d(j,{c:()=>B});var T=x(8822),p=x(576);function B(O){return(0,p.m)(O[T.L])}},6495:(F,j,x)=>{"use strict";x.d(j,{T:()=>B});var T=x(2202),p=x(576);function B(O){return(0,p.m)(O?.[T.h])}},8239:(F,j,x)=>{"use strict";x.d(j,{t:()=>p});var T=x(576);function p(B){return(0,T.m)(B?.then)}},3260:(F,j,x)=>{"use strict";x.d(j,{L:()=>O,Q:()=>B});var T=x(655),p=x(576);function B(I){return(0,T.FC)(this,arguments,function*(){const W=I.getReader();try{for(;;){const{value:Q,done:G}=yield(0,T.qq)(W.read());if(G)return yield(0,T.qq)(void 0);yield yield(0,T.qq)(Q)}}finally{W.releaseLock()}})}function O(I){return(0,p.m)(I?.getReader)}},3532:(F,j,x)=>{"use strict";x.d(j,{K:()=>p});var T=x(576);function p(B){return B&&(0,T.m)(B.schedule)}},4482:(F,j,x)=>{"use strict";x.d(j,{A:()=>p,e:()=>B});var T=x(576);function p(O){return(0,T.m)(O?.lift)}function B(O){return I=>{if(p(I))return I.lift(function(N){try{return O(N,this)}catch(W){this.error(W)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(F,j,x)=>{"use strict";x.d(j,{Z:()=>O});var T=x(4004);const{isArray:p}=Array;function O(I){return(0,T.U)(N=>function B(I,N){return p(N)?I(...N):I(N)}(I,N))}},5032:(F,j,x)=>{"use strict";function T(){}x.d(j,{Z:()=>T})},9635:(F,j,x)=>{"use strict";x.d(j,{U:()=>B,z:()=>p});var T=x(4671);function p(...O){return B(O)}function B(O){return 0===O.length?T.y:1===O.length?O[0]:function(N){return O.reduce((W,Q)=>Q(W),N)}}},7849:(F,j,x)=>{"use strict";x.d(j,{h:()=>B});var T=x(2416),p=x(3410);function B(O){p.z.setTimeout(()=>{const{onUnhandledError:I}=T.v;if(!I)throw O;I(O)})}},4532:(F,j,x)=>{"use strict";function T(p){return new TypeError(`You provided ${null!==p&&"object"==typeof p?"an invalid object":`'${p}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}x.d(j,{z:()=>T})},655:(F,j,x)=>{"use strict";function Q(oe,se,fe,ue){return new(fe||(fe=Promise))(function(He,at){function vt(Mi){try{Ne(ue.next(Mi))}catch(Fn){at(Fn)}}function Dt(Mi){try{Ne(ue.throw(Mi))}catch(Fn){at(Fn)}}function Ne(Mi){Mi.done?He(Mi.value):function Ie(He){return He instanceof fe?He:new fe(function(at){at(He)})}(Mi.value).then(vt,Dt)}Ne((ue=ue.apply(oe,se||[])).next())})}function he(oe){return this instanceof he?(this.v=oe,this):new he(oe)}function ge(oe,se,fe){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Ie,ue=fe.apply(oe,se||[]),He=[];return Ie={},at("next"),at("throw"),at("return"),Ie[Symbol.asyncIterator]=function(){return this},Ie;function at(Gt){ue[Gt]&&(Ie[Gt]=function(xt){return new Promise(function(vn,li){He.push([Gt,xt,vn,li])>1||vt(Gt,xt)})})}function vt(Gt,xt){try{!function Dt(Gt){Gt.value instanceof he?Promise.resolve(Gt.value.v).then(Ne,Mi):Fn(He[0][2],Gt)}(ue[Gt](xt))}catch(vn){Fn(He[0][3],vn)}}function Ne(Gt){vt("next",Gt)}function Mi(Gt){vt("throw",Gt)}function Fn(Gt,xt){Gt(xt),He.shift(),He.length&&vt(He[0][0],He[0][1])}}function Le(oe){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var fe,se=oe[Symbol.asyncIterator];return se?se.call(oe):(oe=function te(oe){var se="function"==typeof Symbol&&Symbol.iterator,fe=se&&oe[se],ue=0;if(fe)return fe.call(oe);if(oe&&"number"==typeof oe.length)return{next:function(){return oe&&ue>=oe.length&&(oe=void 0),{value:oe&&oe[ue++],done:!oe}}};throw new TypeError(se?"Object is not iterable.":"Symbol.iterator is not defined.")}(oe),fe={},ue("next"),ue("throw"),ue("return"),fe[Symbol.asyncIterator]=function(){return this},fe);function ue(He){fe[He]=oe[He]&&function(at){return new Promise(function(vt,Dt){!function Ie(He,at,vt,Dt){Promise.resolve(Dt).then(function(Ne){He({value:Ne,done:vt})},at)}(vt,Dt,(at=oe[He](at)).done,at.value)})}}}x.d(j,{FC:()=>ge,KL:()=>Le,mG:()=>Q,qq:()=>he})},6895:(F,j,x)=>{"use strict";x.d(j,{Do:()=>Le,EM:()=>Lr,HT:()=>I,JF:()=>Ni,K0:()=>W,Mx:()=>Ri,NF:()=>bo,O5:()=>Et,PC:()=>Ca,RF:()=>mr,S$:()=>he,V_:()=>$,Ye:()=>we,b0:()=>Ve,bD:()=>Fi,ez:()=>_r,n9:()=>ki,q:()=>B,w_:()=>N});var T=x(4650);let p=null;function B(){return p}function I(M){p||(p=M)}class N{}const W=new T.OlP("DocumentToken");let Q=(()=>{class M{historyGo(D){throw new Error("Not implemented")}}return M.\u0275fac=function(D){return new(D||M)},M.\u0275prov=T.Yz7({token:M,factory:function(){return function G(){return(0,T.LFG)(U)}()},providedIn:"platform"}),M})();const $=new T.OlP("Location Initialized");let U=(()=>{class M extends Q{constructor(D){super(),this._doc=D,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return B().getBaseHref(this._doc)}onPopState(D){const V=B().getGlobalEventTarget(this._doc,"window");return V.addEventListener("popstate",D,!1),()=>V.removeEventListener("popstate",D)}onHashChange(D){const V=B().getGlobalEventTarget(this._doc,"window");return V.addEventListener("hashchange",D,!1),()=>V.removeEventListener("hashchange",D)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(D){this.location.pathname=D}pushState(D,V,ee){te()?this._history.pushState(D,V,ee):this.location.hash=ee}replaceState(D,V,ee){te()?this._history.replaceState(D,V,ee):this.location.hash=ee}forward(){this._history.forward()}back(){this._history.back()}historyGo(D=0){this._history.go(D)}getState(){return this._history.state}}return M.\u0275fac=function(D){return new(D||M)(T.LFG(W))},M.\u0275prov=T.Yz7({token:M,factory:function(){return function ne(){return new U((0,T.LFG)(W))}()},providedIn:"platform"}),M})();function te(){return!!window.history.pushState}function X(M,k){if(0==M.length)return k;if(0==k.length)return M;let D=0;return M.endsWith("/")&&D++,k.startsWith("/")&&D++,2==D?M+k.substring(1):1==D?M+k:M+"/"+k}function ie(M){const k=M.match(/#|\?|$/),D=k&&k.index||M.length;return M.slice(0,D-("/"===M[D-1]?1:0))+M.slice(D)}function de(M){return M&&"?"!==M[0]?"?"+M:M}let he=(()=>{class M{historyGo(D){throw new Error("Not implemented")}}return M.\u0275fac=function(D){return new(D||M)},M.\u0275prov=T.Yz7({token:M,factory:function(){return(0,T.f3M)(Ve)},providedIn:"root"}),M})();const ge=new T.OlP("appBaseHref");let Ve=(()=>{class M extends he{constructor(D,V){super(),this._platformLocation=D,this._removeListenerFns=[],this._baseHref=V??this._platformLocation.getBaseHrefFromDOM()??(0,T.f3M)(W).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(D){this._removeListenerFns.push(this._platformLocation.onPopState(D),this._platformLocation.onHashChange(D))}getBaseHref(){return this._baseHref}prepareExternalUrl(D){return X(this._baseHref,D)}path(D=!1){const V=this._platformLocation.pathname+de(this._platformLocation.search),ee=this._platformLocation.hash;return ee&&D?`${V}${ee}`:V}pushState(D,V,ee,pe){const ce=this.prepareExternalUrl(ee+de(pe));this._platformLocation.pushState(D,V,ce)}replaceState(D,V,ee,pe){const ce=this.prepareExternalUrl(ee+de(pe));this._platformLocation.replaceState(D,V,ce)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(D=0){this._platformLocation.historyGo?.(D)}}return M.\u0275fac=function(D){return new(D||M)(T.LFG(Q),T.LFG(ge,8))},M.\u0275prov=T.Yz7({token:M,factory:M.\u0275fac,providedIn:"root"}),M})(),Le=(()=>{class M extends he{constructor(D,V){super(),this._platformLocation=D,this._baseHref="",this._removeListenerFns=[],null!=V&&(this._baseHref=V)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(D){this._removeListenerFns.push(this._platformLocation.onPopState(D),this._platformLocation.onHashChange(D))}getBaseHref(){return this._baseHref}path(D=!1){let V=this._platformLocation.hash;return null==V&&(V="#"),V.length>0?V.substring(1):V}prepareExternalUrl(D){const V=X(this._baseHref,D);return V.length>0?"#"+V:V}pushState(D,V,ee,pe){let ce=this.prepareExternalUrl(ee+de(pe));0==ce.length&&(ce=this._platformLocation.pathname),this._platformLocation.pushState(D,V,ce)}replaceState(D,V,ee,pe){let ce=this.prepareExternalUrl(ee+de(pe));0==ce.length&&(ce=this._platformLocation.pathname),this._platformLocation.replaceState(D,V,ce)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(D=0){this._platformLocation.historyGo?.(D)}}return M.\u0275fac=function(D){return new(D||M)(T.LFG(Q),T.LFG(ge,8))},M.\u0275prov=T.Yz7({token:M,factory:M.\u0275fac}),M})(),we=(()=>{class M{constructor(D){this._subject=new T.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=D;const V=this._locationStrategy.getBaseHref();this._baseHref=ie(Ye(V)),this._locationStrategy.onPopState(ee=>{this._subject.emit({url:this.path(!0),pop:!0,state:ee.state,type:ee.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(D=!1){return this.normalize(this._locationStrategy.path(D))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(D,V=""){return this.path()==this.normalize(D+de(V))}normalize(D){return M.stripTrailingSlash(function ve(M,k){return M&&k.startsWith(M)?k.substring(M.length):k}(this._baseHref,Ye(D)))}prepareExternalUrl(D){return D&&"/"!==D[0]&&(D="/"+D),this._locationStrategy.prepareExternalUrl(D)}go(D,V="",ee=null){this._locationStrategy.pushState(ee,"",D,V),this._notifyUrlChangeListeners(this.prepareExternalUrl(D+de(V)),ee)}replaceState(D,V="",ee=null){this._locationStrategy.replaceState(ee,"",D,V),this._notifyUrlChangeListeners(this.prepareExternalUrl(D+de(V)),ee)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(D=0){this._locationStrategy.historyGo?.(D)}onUrlChange(D){return this._urlChangeListeners.push(D),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(V=>{this._notifyUrlChangeListeners(V.url,V.state)})),()=>{const V=this._urlChangeListeners.indexOf(D);this._urlChangeListeners.splice(V,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(D="",V){this._urlChangeListeners.forEach(ee=>ee(D,V))}subscribe(D,V,ee){return this._subject.subscribe({next:D,error:V,complete:ee})}}return M.normalizeQueryParams=de,M.joinWithSlash=X,M.stripTrailingSlash=ie,M.\u0275fac=function(D){return new(D||M)(T.LFG(he))},M.\u0275prov=T.Yz7({token:M,factory:function(){return function _e(){return new we((0,T.LFG)(he))}()},providedIn:"root"}),M})();function Ye(M){return M.replace(/\/index.html$/,"")}function Ri(M,k){k=encodeURIComponent(k);for(const D of M.split(";")){const V=D.indexOf("="),[ee,pe]=-1==V?[D,""]:[D.slice(0,V),D.slice(V+1)];if(ee.trim()===k)return decodeURIComponent(pe)}return null}let Et=(()=>{class M{constructor(D,V){this._viewContainer=D,this._context=new rn,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=V}set ngIf(D){this._context.$implicit=this._context.ngIf=D,this._updateView()}set ngIfThen(D){ba("ngIfThen",D),this._thenTemplateRef=D,this._thenViewRef=null,this._updateView()}set ngIfElse(D){ba("ngIfElse",D),this._elseTemplateRef=D,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(D,V){return!0}}return M.\u0275fac=function(D){return new(D||M)(T.Y36(T.s_b),T.Y36(T.Rgc))},M.\u0275dir=T.lG2({type:M,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),M})();class rn{constructor(){this.$implicit=null,this.ngIf=null}}function ba(M,k){if(k&&!k.createEmbeddedView)throw new Error(`${M} must be a TemplateRef, but received '${(0,T.AaK)(k)}'.`)}class Un{constructor(k,D){this._viewContainerRef=k,this._templateRef=D,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(k){k&&!this._created?this.create():!k&&this._created&&this.destroy()}}let mr=(()=>{class M{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(D){this._ngSwitch=D,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(D){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(D)}_matchCase(D){const V=D==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||V,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),V}_updateDefaultCases(D){if(this._defaultViews&&D!==this._defaultUsed){this._defaultUsed=D;for(let V=0;V{class M{constructor(D,V,ee){this.ngSwitch=ee,ee._addCase(),this._view=new Un(D,V)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return M.\u0275fac=function(D){return new(D||M)(T.Y36(T.s_b),T.Y36(T.Rgc),T.Y36(mr,9))},M.\u0275dir=T.lG2({type:M,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),M})(),Ca=(()=>{class M{constructor(D,V,ee){this._ngEl=D,this._differs=V,this._renderer=ee,this._ngStyle=null,this._differ=null}set ngStyle(D){this._ngStyle=D,!this._differ&&D&&(this._differ=this._differs.find(D).create())}ngDoCheck(){if(this._differ){const D=this._differ.diff(this._ngStyle);D&&this._applyChanges(D)}}_setStyle(D,V){const[ee,pe]=D.split("."),ce=-1===ee.indexOf("-")?void 0:T.JOm.DashCase;null!=V?this._renderer.setStyle(this._ngEl.nativeElement,ee,pe?`${V}${pe}`:V,ce):this._renderer.removeStyle(this._ngEl.nativeElement,ee,ce)}_applyChanges(D){D.forEachRemovedItem(V=>this._setStyle(V.key,null)),D.forEachAddedItem(V=>this._setStyle(V.key,V.currentValue)),D.forEachChangedItem(V=>this._setStyle(V.key,V.currentValue))}}return M.\u0275fac=function(D){return new(D||M)(T.Y36(T.SBq),T.Y36(T.aQg),T.Y36(T.Qsj))},M.\u0275dir=T.lG2({type:M,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),M})(),_r=(()=>{class M{}return M.\u0275fac=function(D){return new(D||M)},M.\u0275mod=T.oAB({type:M}),M.\u0275inj=T.cJS({}),M})();const Fi="browser";function bo(M){return M===Fi}let Lr=(()=>{class M{}return M.\u0275prov=(0,T.Yz7)({token:M,providedIn:"root",factory:()=>new Ai((0,T.LFG)(W),window)}),M})();class Ai{constructor(k,D){this.document=k,this.window=D,this.offset=()=>[0,0]}setOffset(k){this.offset=Array.isArray(k)?()=>k:k}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(k){this.supportsScrolling()&&this.window.scrollTo(k[0],k[1])}scrollToAnchor(k){if(!this.supportsScrolling())return;const D=function Co(M,k){const D=M.getElementById(k)||M.getElementsByName(k)[0];if(D)return D;if("function"==typeof M.createTreeWalker&&M.body&&(M.body.createShadowRoot||M.body.attachShadow)){const V=M.createTreeWalker(M.body,NodeFilter.SHOW_ELEMENT);let ee=V.currentNode;for(;ee;){const pe=ee.shadowRoot;if(pe){const ce=pe.getElementById(k)||pe.querySelector(`[name="${k}"]`);if(ce)return ce}ee=V.nextNode()}}return null}(this.document,k);D&&(this.scrollToElement(D),D.focus())}setHistoryScrollRestoration(k){if(this.supportScrollRestoration()){const D=this.window.history;D&&D.scrollRestoration&&(D.scrollRestoration=k)}}scrollToElement(k){const D=k.getBoundingClientRect(),V=D.left+this.window.pageXOffset,ee=D.top+this.window.pageYOffset,pe=this.offset();this.window.scrollTo(V-pe[0],ee-pe[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const k=Rs(this.window.history)||Rs(Object.getPrototypeOf(this.window.history));return!(!k||!k.writable&&!k.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function Rs(M){return Object.getOwnPropertyDescriptor(M,"scrollRestoration")}class Ni{}},529:(F,j,x)=>{"use strict";x.d(j,{JF:()=>Qd,LE:()=>ge,TP:()=>vt,WM:()=>$,Zn:()=>fe,eN:()=>He,qT:()=>Le});var T=x(6895),p=x(4650),B=x(9646),O=x(9751),I=x(4351),N=x(9300),W=x(4004);class Q{}class G{}class ${constructor(Y){this.normalizedNames=new Map,this.lazyUpdate=null,Y?this.lazyInit="string"==typeof Y?()=>{this.headers=new Map,Y.split("\n").forEach(q=>{const le=q.indexOf(":");if(le>0){const Ee=q.slice(0,le),Xe=Ee.toLowerCase(),st=q.slice(le+1).trim();this.maybeSetNormalizedName(Ee,Xe),this.headers.has(Xe)?this.headers.get(Xe).push(st):this.headers.set(Xe,[st])}})}:()=>{this.headers=new Map,Object.keys(Y).forEach(q=>{let le=Y[q];const Ee=q.toLowerCase();"string"==typeof le&&(le=[le]),le.length>0&&(this.headers.set(Ee,le),this.maybeSetNormalizedName(q,Ee))})}:this.headers=new Map}has(Y){return this.init(),this.headers.has(Y.toLowerCase())}get(Y){this.init();const q=this.headers.get(Y.toLowerCase());return q&&q.length>0?q[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(Y){return this.init(),this.headers.get(Y.toLowerCase())||null}append(Y,q){return this.clone({name:Y,value:q,op:"a"})}set(Y,q){return this.clone({name:Y,value:q,op:"s"})}delete(Y,q){return this.clone({name:Y,value:q,op:"d"})}maybeSetNormalizedName(Y,q){this.normalizedNames.has(q)||this.normalizedNames.set(q,Y)}init(){this.lazyInit&&(this.lazyInit instanceof $?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(Y=>this.applyUpdate(Y)),this.lazyUpdate=null))}copyFrom(Y){Y.init(),Array.from(Y.headers.keys()).forEach(q=>{this.headers.set(q,Y.headers.get(q)),this.normalizedNames.set(q,Y.normalizedNames.get(q))})}clone(Y){const q=new $;return q.lazyInit=this.lazyInit&&this.lazyInit instanceof $?this.lazyInit:this,q.lazyUpdate=(this.lazyUpdate||[]).concat([Y]),q}applyUpdate(Y){const q=Y.name.toLowerCase();switch(Y.op){case"a":case"s":let le=Y.value;if("string"==typeof le&&(le=[le]),0===le.length)return;this.maybeSetNormalizedName(Y.name,q);const Ee=("a"===Y.op?this.headers.get(q):void 0)||[];Ee.push(...le),this.headers.set(q,Ee);break;case"d":const Xe=Y.value;if(Xe){let st=this.headers.get(q);if(!st)return;st=st.filter(ze=>-1===Xe.indexOf(ze)),0===st.length?(this.headers.delete(q),this.normalizedNames.delete(q)):this.headers.set(q,st)}else this.headers.delete(q),this.normalizedNames.delete(q)}}forEach(Y){this.init(),Array.from(this.normalizedNames.keys()).forEach(q=>Y(this.normalizedNames.get(q),this.headers.get(q)))}}class te{encodeKey(Y){return de(Y)}encodeValue(Y){return de(Y)}decodeKey(Y){return decodeURIComponent(Y)}decodeValue(Y){return decodeURIComponent(Y)}}const X=/%(\d[a-f0-9])/gi,ie={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function de(Ce){return encodeURIComponent(Ce).replace(X,(Y,q)=>ie[q]??Y)}function he(Ce){return`${Ce}`}class ge{constructor(Y={}){if(this.updates=null,this.cloneFrom=null,this.encoder=Y.encoder||new te,Y.fromString){if(Y.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function ne(Ce,Y){const q=new Map;return Ce.length>0&&Ce.replace(/^\?/,"").split("&").forEach(Ee=>{const Xe=Ee.indexOf("="),[st,ze]=-1==Xe?[Y.decodeKey(Ee),""]:[Y.decodeKey(Ee.slice(0,Xe)),Y.decodeValue(Ee.slice(Xe+1))],Ke=q.get(st)||[];Ke.push(ze),q.set(st,Ke)}),q}(Y.fromString,this.encoder)}else Y.fromObject?(this.map=new Map,Object.keys(Y.fromObject).forEach(q=>{const le=Y.fromObject[q],Ee=Array.isArray(le)?le.map(he):[he(le)];this.map.set(q,Ee)})):this.map=null}has(Y){return this.init(),this.map.has(Y)}get(Y){this.init();const q=this.map.get(Y);return q?q[0]:null}getAll(Y){return this.init(),this.map.get(Y)||null}keys(){return this.init(),Array.from(this.map.keys())}append(Y,q){return this.clone({param:Y,value:q,op:"a"})}appendAll(Y){const q=[];return Object.keys(Y).forEach(le=>{const Ee=Y[le];Array.isArray(Ee)?Ee.forEach(Xe=>{q.push({param:le,value:Xe,op:"a"})}):q.push({param:le,value:Ee,op:"a"})}),this.clone(q)}set(Y,q){return this.clone({param:Y,value:q,op:"s"})}delete(Y,q){return this.clone({param:Y,value:q,op:"d"})}toString(){return this.init(),this.keys().map(Y=>{const q=this.encoder.encodeKey(Y);return this.map.get(Y).map(le=>q+"="+this.encoder.encodeValue(le)).join("&")}).filter(Y=>""!==Y).join("&")}clone(Y){const q=new ge({encoder:this.encoder});return q.cloneFrom=this.cloneFrom||this,q.updates=(this.updates||[]).concat(Y),q}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(Y=>this.map.set(Y,this.cloneFrom.map.get(Y))),this.updates.forEach(Y=>{switch(Y.op){case"a":case"s":const q=("a"===Y.op?this.map.get(Y.param):void 0)||[];q.push(he(Y.value)),this.map.set(Y.param,q);break;case"d":if(void 0===Y.value){this.map.delete(Y.param);break}{let le=this.map.get(Y.param)||[];const Ee=le.indexOf(he(Y.value));-1!==Ee&&le.splice(Ee,1),le.length>0?this.map.set(Y.param,le):this.map.delete(Y.param)}}}),this.cloneFrom=this.updates=null)}}class Le{constructor(){this.map=new Map}set(Y,q){return this.map.set(Y,q),this}get(Y){return this.map.has(Y)||this.map.set(Y,Y.defaultValue()),this.map.get(Y)}delete(Y){return this.map.delete(Y),this}has(Y){return this.map.has(Y)}keys(){return this.map.keys()}}function _e(Ce){return typeof ArrayBuffer<"u"&&Ce instanceof ArrayBuffer}function ve(Ce){return typeof Blob<"u"&&Ce instanceof Blob}function Ye(Ce){return typeof FormData<"u"&&Ce instanceof FormData}class Me{constructor(Y,q,le,Ee){let Xe;if(this.url=q,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=Y.toUpperCase(),function we(Ce){switch(Ce){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Ee?(this.body=void 0!==le?le:null,Xe=Ee):Xe=le,Xe&&(this.reportProgress=!!Xe.reportProgress,this.withCredentials=!!Xe.withCredentials,Xe.responseType&&(this.responseType=Xe.responseType),Xe.headers&&(this.headers=Xe.headers),Xe.context&&(this.context=Xe.context),Xe.params&&(this.params=Xe.params)),this.headers||(this.headers=new $),this.context||(this.context=new Le),this.params){const st=this.params.toString();if(0===st.length)this.urlWithParams=q;else{const ze=q.indexOf("?");this.urlWithParams=q+(-1===ze?"?":zetn.set(et,Y.setHeaders[et]),Ke)),Y.setParams&&(ni=Object.keys(Y.setParams).reduce((tn,et)=>tn.set(et,Y.setParams[et]),ni)),new Me(q,le,Xe,{params:ni,headers:Ke,context:bt,reportProgress:ze,responseType:Ee,withCredentials:st})}}var Se=(()=>((Se=Se||{})[Se.Sent=0]="Sent",Se[Se.UploadProgress=1]="UploadProgress",Se[Se.ResponseHeader=2]="ResponseHeader",Se[Se.DownloadProgress=3]="DownloadProgress",Se[Se.Response=4]="Response",Se[Se.User=5]="User",Se))();class oe{constructor(Y,q=200,le="OK"){this.headers=Y.headers||new $,this.status=void 0!==Y.status?Y.status:q,this.statusText=Y.statusText||le,this.url=Y.url||null,this.ok=this.status>=200&&this.status<300}}class se extends oe{constructor(Y={}){super(Y),this.type=Se.ResponseHeader}clone(Y={}){return new se({headers:Y.headers||this.headers,status:void 0!==Y.status?Y.status:this.status,statusText:Y.statusText||this.statusText,url:Y.url||this.url||void 0})}}class fe extends oe{constructor(Y={}){super(Y),this.type=Se.Response,this.body=void 0!==Y.body?Y.body:null}clone(Y={}){return new fe({body:void 0!==Y.body?Y.body:this.body,headers:Y.headers||this.headers,status:void 0!==Y.status?Y.status:this.status,statusText:Y.statusText||this.statusText,url:Y.url||this.url||void 0})}}class ue extends oe{constructor(Y){super(Y,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${Y.url||"(unknown url)"}`:`Http failure response for ${Y.url||"(unknown url)"}: ${Y.status} ${Y.statusText}`,this.error=Y.error||null}}function Ie(Ce,Y){return{body:Y,headers:Ce.headers,context:Ce.context,observe:Ce.observe,params:Ce.params,reportProgress:Ce.reportProgress,responseType:Ce.responseType,withCredentials:Ce.withCredentials}}let He=(()=>{class Ce{constructor(q){this.handler=q}request(q,le,Ee={}){let Xe;if(q instanceof Me)Xe=q;else{let Ke,ni;Ke=Ee.headers instanceof $?Ee.headers:new $(Ee.headers),Ee.params&&(ni=Ee.params instanceof ge?Ee.params:new ge({fromObject:Ee.params})),Xe=new Me(q,le,void 0!==Ee.body?Ee.body:null,{headers:Ke,context:Ee.context,params:ni,reportProgress:Ee.reportProgress,responseType:Ee.responseType||"json",withCredentials:Ee.withCredentials})}const st=(0,B.of)(Xe).pipe((0,I.b)(Ke=>this.handler.handle(Ke)));if(q instanceof Me||"events"===Ee.observe)return st;const ze=st.pipe((0,N.h)(Ke=>Ke instanceof fe));switch(Ee.observe||"body"){case"body":switch(Xe.responseType){case"arraybuffer":return ze.pipe((0,W.U)(Ke=>{if(null!==Ke.body&&!(Ke.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Ke.body}));case"blob":return ze.pipe((0,W.U)(Ke=>{if(null!==Ke.body&&!(Ke.body instanceof Blob))throw new Error("Response is not a Blob.");return Ke.body}));case"text":return ze.pipe((0,W.U)(Ke=>{if(null!==Ke.body&&"string"!=typeof Ke.body)throw new Error("Response is not a string.");return Ke.body}));default:return ze.pipe((0,W.U)(Ke=>Ke.body))}case"response":return ze;default:throw new Error(`Unreachable: unhandled observe type ${Ee.observe}}`)}}delete(q,le={}){return this.request("DELETE",q,le)}get(q,le={}){return this.request("GET",q,le)}head(q,le={}){return this.request("HEAD",q,le)}jsonp(q,le){return this.request("JSONP",q,{params:(new ge).append(le,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(q,le={}){return this.request("OPTIONS",q,le)}patch(q,le,Ee={}){return this.request("PATCH",q,Ie(Ee,le))}post(q,le,Ee={}){return this.request("POST",q,Ie(Ee,le))}put(q,le,Ee={}){return this.request("PUT",q,Ie(Ee,le))}}return Ce.\u0275fac=function(q){return new(q||Ce)(p.LFG(Q))},Ce.\u0275prov=p.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})();class at{constructor(Y,q){this.next=Y,this.interceptor=q}handle(Y){return this.interceptor.intercept(Y,this.next)}}const vt=new p.OlP("HTTP_INTERCEPTORS");let Dt=(()=>{class Ce{intercept(q,le){return le.handle(q)}}return Ce.\u0275fac=function(q){return new(q||Ce)},Ce.\u0275prov=p.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})();const co=/^\)\]\}',?\n/;let uo=(()=>{class Ce{constructor(q){this.xhrFactory=q}handle(q){if("JSONP"===q.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new O.y(le=>{const Ee=this.xhrFactory.build();if(Ee.open(q.method,q.urlWithParams),q.withCredentials&&(Ee.withCredentials=!0),q.headers.forEach((Tt,It)=>Ee.setRequestHeader(Tt,It.join(","))),q.headers.has("Accept")||Ee.setRequestHeader("Accept","application/json, text/plain, */*"),!q.headers.has("Content-Type")){const Tt=q.detectContentTypeHeader();null!==Tt&&Ee.setRequestHeader("Content-Type",Tt)}if(q.responseType){const Tt=q.responseType.toLowerCase();Ee.responseType="json"!==Tt?Tt:"text"}const Xe=q.serializeBody();let st=null;const ze=()=>{if(null!==st)return st;const Tt=Ee.statusText||"OK",It=new $(Ee.getAllResponseHeaders()),cn=function Yd(Ce){return"responseURL"in Ce&&Ce.responseURL?Ce.responseURL:/^X-Request-URL:/m.test(Ce.getAllResponseHeaders())?Ce.getResponseHeader("X-Request-URL"):null}(Ee)||q.url;return st=new se({headers:It,status:Ee.status,statusText:Tt,url:cn}),st},Ke=()=>{let{headers:Tt,status:It,statusText:cn,url:pr}=ze(),gi=null;204!==It&&(gi=typeof Ee.response>"u"?Ee.responseText:Ee.response),0===It&&(It=gi?200:0);let Vr=It>=200&&It<300;if("json"===q.responseType&&"string"==typeof gi){const Or=gi;gi=gi.replace(co,"");try{gi=""!==gi?JSON.parse(gi):null}catch(ma){gi=Or,Vr&&(Vr=!1,gi={error:ma,text:gi})}}Vr?(le.next(new fe({body:gi,headers:Tt,status:It,statusText:cn,url:pr||void 0})),le.complete()):le.error(new ue({error:gi,headers:Tt,status:It,statusText:cn,url:pr||void 0}))},ni=Tt=>{const{url:It}=ze(),cn=new ue({error:Tt,status:Ee.status||0,statusText:Ee.statusText||"Unknown Error",url:It||void 0});le.error(cn)};let bt=!1;const tn=Tt=>{bt||(le.next(ze()),bt=!0);let It={type:Se.DownloadProgress,loaded:Tt.loaded};Tt.lengthComputable&&(It.total=Tt.total),"text"===q.responseType&&!!Ee.responseText&&(It.partialText=Ee.responseText),le.next(It)},et=Tt=>{let It={type:Se.UploadProgress,loaded:Tt.loaded};Tt.lengthComputable&&(It.total=Tt.total),le.next(It)};return Ee.addEventListener("load",Ke),Ee.addEventListener("error",ni),Ee.addEventListener("timeout",ni),Ee.addEventListener("abort",ni),q.reportProgress&&(Ee.addEventListener("progress",tn),null!==Xe&&Ee.upload&&Ee.upload.addEventListener("progress",et)),Ee.send(Xe),le.next({type:Se.Sent}),()=>{Ee.removeEventListener("error",ni),Ee.removeEventListener("abort",ni),Ee.removeEventListener("load",Ke),Ee.removeEventListener("timeout",ni),q.reportProgress&&(Ee.removeEventListener("progress",tn),null!==Xe&&Ee.upload&&Ee.upload.removeEventListener("progress",et)),Ee.readyState!==Ee.DONE&&Ee.abort()}})}}return Ce.\u0275fac=function(q){return new(q||Ce)(p.LFG(T.JF))},Ce.\u0275prov=p.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})();const Nn=new p.OlP("XSRF_COOKIE_NAME"),jn=new p.OlP("XSRF_HEADER_NAME");class ha{}let ho=(()=>{class Ce{constructor(q,le,Ee){this.doc=q,this.platform=le,this.cookieName=Ee,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const q=this.doc.cookie||"";return q!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,T.Mx)(q,this.cookieName),this.lastCookieString=q),this.lastToken}}return Ce.\u0275fac=function(q){return new(q||Ce)(p.LFG(T.K0),p.LFG(p.Lbi),p.LFG(Nn))},Ce.\u0275prov=p.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})(),Qe=(()=>{class Ce{constructor(q,le){this.tokenService=q,this.headerName=le}intercept(q,le){const Ee=q.url.toLowerCase();if("GET"===q.method||"HEAD"===q.method||Ee.startsWith("http://")||Ee.startsWith("https://"))return le.handle(q);const Xe=this.tokenService.getToken();return null!==Xe&&!q.headers.has(this.headerName)&&(q=q.clone({headers:q.headers.set(this.headerName,Xe)})),le.handle(q)}}return Ce.\u0275fac=function(q){return new(q||Ce)(p.LFG(ha),p.LFG(jn))},Ce.\u0275prov=p.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})(),ui=(()=>{class Ce{constructor(q,le){this.backend=q,this.injector=le,this.chain=null}handle(q){if(null===this.chain){const le=this.injector.get(vt,[]);this.chain=le.reduceRight((Ee,Xe)=>new at(Ee,Xe),this.backend)}return this.chain.handle(q)}}return Ce.\u0275fac=function(q){return new(q||Ce)(p.LFG(G),p.LFG(p.zs3))},Ce.\u0275prov=p.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})(),fa=(()=>{class Ce{static disable(){return{ngModule:Ce,providers:[{provide:Qe,useClass:Dt}]}}static withOptions(q={}){return{ngModule:Ce,providers:[q.cookieName?{provide:Nn,useValue:q.cookieName}:[],q.headerName?{provide:jn,useValue:q.headerName}:[]]}}}return Ce.\u0275fac=function(q){return new(q||Ce)},Ce.\u0275mod=p.oAB({type:Ce}),Ce.\u0275inj=p.cJS({providers:[Qe,{provide:vt,useExisting:Qe,multi:!0},{provide:ha,useClass:ho},{provide:Nn,useValue:"XSRF-TOKEN"},{provide:jn,useValue:"X-XSRF-TOKEN"}]}),Ce})(),Qd=(()=>{class Ce{}return Ce.\u0275fac=function(q){return new(q||Ce)},Ce.\u0275mod=p.oAB({type:Ce}),Ce.\u0275inj=p.cJS({providers:[He,{provide:Q,useClass:ui},uo,{provide:G,useExisting:uo}],imports:[fa.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),Ce})()},4650:(F,j,x)=>{"use strict";x.d(j,{$8M:()=>yf,$Z:()=>Gy,AFp:()=>up,ALo:()=>n_,AaK:()=>Q,B6R:()=>pr,BQk:()=>fl,CHM:()=>En,CRH:()=>p_,CZH:()=>la,CqO:()=>ad,D6c:()=>Bp,EJc:()=>I_,EiD:()=>zf,EpF:()=>Vh,F$t:()=>Aw,F4k:()=>fg,FYo:()=>XC,FiY:()=>Ra,G48:()=>Rd,Gf:()=>h_,GfV:()=>ey,GkF:()=>Bh,Gpc:()=>U,Gre:()=>Xw,Hsn:()=>xw,Ikx:()=>Uh,JOm:()=>Mn,JVY:()=>Du,KtG:()=>$i,L6k:()=>fi,LAX:()=>Lo,LFG:()=>Kt,LSH:()=>Gf,Lbi:()=>H_,Lck:()=>ME,MAs:()=>Cw,MMx:()=>Yg,NdJ:()=>ml,O4$:()=>$n,OlP:()=>Pt,Oqu:()=>Ag,PXZ:()=>EA,Q6J:()=>Rh,QGY:()=>Oh,QP$:()=>Ml,QbO:()=>xd,Qsj:()=>Ex,R0b:()=>ii,RDi:()=>DC,Rgc:()=>Cd,SBq:()=>Pc,Sil:()=>k_,Suo:()=>ip,TTD:()=>mo,TgZ:()=>nd,Tol:()=>yg,Udp:()=>Fh,VKq:()=>Qt,WFA:()=>Sr,XFs:()=>Qe,Xpm:()=>cn,Xts:()=>qf,Y36:()=>rl,YKP:()=>lr,YNc:()=>bw,Yjl:()=>Ql,Yz7:()=>xt,ZZ4:()=>Bd,_Bn:()=>Wg,_UZ:()=>pg,_Vd:()=>Hc,_c5:()=>kp,_uU:()=>Ww,aQg:()=>Vd,c2e:()=>P_,cJS:()=>li,cg1:()=>$a,d8E:()=>qa,dDg:()=>sS,dqk:()=>le,eBb:()=>nx,eFA:()=>_s,ekj:()=>Nh,eoX:()=>AA,f3M:()=>yu,g9A:()=>pp,h0i:()=>xl,hGG:()=>LA,hij:()=>Ga,iGM:()=>u_,ifc:()=>q,ip1:()=>D_,kL8:()=>sv,kcU:()=>cu,lG2:()=>Jd,lcZ:()=>r_,lnq:()=>xg,lqb:()=>jo,lri:()=>Dd,mCW:()=>wr,n5z:()=>bf,n_E:()=>Xh,oAB:()=>Or,oxw:()=>gg,pB0:()=>Vf,q3G:()=>ai,qLn:()=>Rc,qOj:()=>Mh,qZA:()=>rd,qzn:()=>Oo,rWj:()=>F_,s9C:()=>_g,sBO:()=>SA,sIi:()=>Rn,s_b:()=>tp,soG:()=>Pl,tb:()=>fp,tp0:()=>qs,uIk:()=>Dh,vHH:()=>ie,vpe:()=>Pr,wAp:()=>Je,xp6:()=>ky,ynx:()=>kh,z2F:()=>Tp,z3N:()=>qr,zSh:()=>Yf,zs3:()=>Na});var T=x(7579),p=x(727),B=x(9751),O=x(6451),I=x(3099);function N(h){for(let m in h)if(h[m]===N)return m;throw Error("Could not find renamed property on target object.")}function W(h,m){for(const g in m)m.hasOwnProperty(g)&&!h.hasOwnProperty(g)&&(h[g]=m[g])}function Q(h){if("string"==typeof h)return h;if(Array.isArray(h))return"["+h.map(Q).join(", ")+"]";if(null==h)return""+h;if(h.overriddenName)return`${h.overriddenName}`;if(h.name)return`${h.name}`;const m=h.toString();if(null==m)return""+m;const g=m.indexOf("\n");return-1===g?m:m.substring(0,g)}function G(h,m){return null==h||""===h?null===m?"":m:null==m||""===m?h:h+" "+m}const $=N({__forward_ref__:N});function U(h){return h.__forward_ref__=U,h.toString=function(){return Q(this())},h}function te(h){return ne(h)?h():h}function ne(h){return"function"==typeof h&&h.hasOwnProperty($)&&h.__forward_ref__===U}class ie extends Error{constructor(m,g){super(function de(h,m){return`NG0${Math.abs(h)}${m?": "+m.trim():""}`}(m,g)),this.code=m}}function he(h){return"string"==typeof h?h:null==h?"":String(h)}function _e(h,m){throw new ie(-201,!1)}function Dt(h,m){null==h&&function Ne(h,m,g,_){throw new Error(`ASSERTION ERROR: ${h}`+(null==_?"":` [Expected=> ${g} ${_} ${m} <=Actual]`))}(m,h,null,"!=")}function xt(h){return{token:h.token,providedIn:h.providedIn||null,factory:h.factory,value:void 0}}function li(h){return{providers:h.providers||[],imports:h.imports||[]}}function Br(h){return Yl(h,Nn)||Yl(h,ha)}function Yl(h,m){return h.hasOwnProperty(m)?h[m]:null}function uo(h){return h&&(h.hasOwnProperty(jn)||h.hasOwnProperty(ho))?h[jn]:null}const Nn=N({\u0275prov:N}),jn=N({\u0275inj:N}),ha=N({ngInjectableDef:N}),ho=N({ngInjectorDef:N});var Qe=(()=>((Qe=Qe||{})[Qe.Default=0]="Default",Qe[Qe.Host=1]="Host",Qe[Qe.Self=2]="Self",Qe[Qe.SkipSelf=4]="SkipSelf",Qe[Qe.Optional=8]="Optional",Qe))();let ui;function Di(h){const m=ui;return ui=h,m}function fa(h,m,g){const _=Br(h);return _&&"root"==_.providedIn?void 0===_.value?_.value=_.factory():_.value:g&Qe.Optional?null:void 0!==m?m:void _e(Q(h))}function An(h){return{toString:h}.toString()}var wi=(()=>((wi=wi||{})[wi.OnPush=0]="OnPush",wi[wi.Default=1]="Default",wi))(),q=(()=>{return(h=q||(q={}))[h.Emulated=0]="Emulated",h[h.None=2]="None",h[h.ShadowDom=3]="ShadowDom",q;var h})();const le=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),st={},ze=[],Ke=N({\u0275cmp:N}),ni=N({\u0275dir:N}),bt=N({\u0275pipe:N}),tn=N({\u0275mod:N}),et=N({\u0275fac:N}),Tt=N({__NG_ELEMENT_ID__:N});let It=0;function cn(h){return An(()=>{const g=!0===h.standalone,_={},C={type:h.type,providersResolver:null,decls:h.decls,vars:h.vars,factory:null,template:h.template||null,consts:h.consts||null,ngContentSelectors:h.ngContentSelectors,hostBindings:h.hostBindings||null,hostVars:h.hostVars||0,hostAttrs:h.hostAttrs||null,contentQueries:h.contentQueries||null,declaredInputs:_,inputs:null,outputs:null,exportAs:h.exportAs||null,onPush:h.changeDetection===wi.OnPush,directiveDefs:null,pipeDefs:null,standalone:g,dependencies:g&&h.dependencies||null,getStandaloneInjector:null,selectors:h.selectors||ze,viewQuery:h.viewQuery||null,features:h.features||null,data:h.data||{},encapsulation:h.encapsulation||q.Emulated,id:"c"+It++,styles:h.styles||ze,_:null,setInput:null,schemas:h.schemas||null,tView:null},w=h.dependencies,v=h.features;return C.inputs=po(h.inputs,_),C.outputs=po(h.outputs),v&&v.forEach(E=>E(C)),C.directiveDefs=w?()=>("function"==typeof w?w():w).map(gi).filter(Vr):null,C.pipeDefs=w?()=>("function"==typeof w?w():w).map(Pi).filter(Vr):null,C})}function pr(h,m,g){const _=h.\u0275cmp;_.directiveDefs=()=>("function"==typeof m?m():m).map(gi),_.pipeDefs=()=>("function"==typeof g?g():g).map(Pi)}function gi(h){return At(h)||Hi(h)}function Vr(h){return null!==h}function Or(h){return An(()=>({type:h.type,bootstrap:h.bootstrap||ze,declarations:h.declarations||ze,imports:h.imports||ze,exports:h.exports||ze,transitiveCompileScopes:null,schemas:h.schemas||null,id:h.id||null}))}function po(h,m){if(null==h)return st;const g={};for(const _ in h)if(h.hasOwnProperty(_)){let C=h[_],w=C;Array.isArray(C)&&(w=C[1],C=C[0]),g[C]=_,m&&(m[C]=w)}return g}const Jd=cn;function Ql(h){return{type:h.type,name:h.name,factory:null,pure:!1!==h.pure,standalone:!0===h.standalone,onDestroy:h.type.prototype.ngOnDestroy||null}}function At(h){return h[Ke]||null}function Hi(h){return h[ni]||null}function Pi(h){return h[bt]||null}function Wi(h,m){const g=h[tn]||null;if(!g&&!0===m)throw new Error(`Type ${Q(h)} does not have '\u0275mod' property.`);return g}function Et(h){return Array.isArray(h)&&"object"==typeof h[1]}function rn(h){return Array.isArray(h)&&!0===h[1]}function ba(h){return 0!=(8&h.flags)}function Un(h){return 2==(2&h.flags)}function mr(h){return 1==(1&h.flags)}function ki(h){return null!==h.template}function Jl(h){return 0!=(256&h[2])}function gr(h,m){return h.hasOwnProperty(et)?h[et]:null}class Zl{constructor(m,g,_){this.previousValue=m,this.currentValue=g,this.firstChange=_}isFirstChange(){return this.firstChange}}function mo(){return Ss}function Ss(h){return h.type.prototype.ngOnChanges&&(h.setInput=go),Xl}function Xl(){const h=lt(this),m=h?.current;if(m){const g=h.previous;if(g===st)h.previous=m;else for(let _ in m)g[_]=m[_];h.current=null,this.ngOnChanges(m)}}function go(h,m,g,_){const C=lt(h)||function wa(h,m){return h[un]=m}(h,{previous:st,current:null}),w=C.current||(C.current={}),v=C.previous,E=this.declaredInputs[g],S=v[E];w[E]=new Zl(S&&S.currentValue,m,v===st),h[_]=m}mo.ngInherit=!0;const un="__ngSimpleChanges__";function lt(h){return h[un]||null}function Jt(h){for(;Array.isArray(h);)h=h[0];return h}function Lr(h,m){return Jt(m[h])}function Ai(h,m){return Jt(m[h.index])}function Co(h,m){return h.data[m]}function va(h,m){return h[m]}function Ni(h,m){const g=m[h];return Et(g)?g:g[0]}function M(h){return 4==(4&h[2])}function k(h){return 64==(64&h[2])}function V(h,m){return null==m?null:h[m]}function ee(h){h[18]=0}function pe(h,m){h[5]+=m;let g=h,_=h[3];for(;null!==_&&(1===m&&1===g[5]||-1===m&&0===g[5]);)_[5]+=m,g=_,_=_[3]}const ce={lFrame:rf(null),bindingsEnabled:!0};function yi(){return ce.bindingsEnabled}function be(){return ce.lFrame.lView}function rt(){return ce.lFrame.tView}function En(h){return ce.lFrame.contextLView=h,h[8]}function $i(h){return ce.lFrame.contextLView=null,h}function Yt(){let h=Aa();for(;null!==h&&64===h.type;)h=h.parent;return h}function Aa(){return ce.lFrame.currentTNode}function ji(h,m){const g=ce.lFrame;g.currentTNode=h,g.isParent=m}function nu(){return ce.lFrame.isParent}function ru(){ce.lFrame.isParent=!1}function zi(){const h=ce.lFrame;let m=h.bindingRootIndex;return-1===m&&(m=h.bindingRootIndex=h.tView.bindingStartIndex),m}function xa(){return ce.lFrame.bindingIndex++}function qn(h){const m=ce.lFrame,g=m.bindingIndex;return m.bindingIndex=m.bindingIndex+h,g}function Nr(h,m){const g=ce.lFrame;g.bindingIndex=g.bindingRootIndex=h,nc(m)}function nc(h){ce.lFrame.currentDirectiveIndex=h}function au(h){const m=ce.lFrame.currentDirectiveIndex;return-1===m?null:h[m]}function ef(){return ce.lFrame.currentQueryIndex}function ou(h){ce.lFrame.currentQueryIndex=h}function Qb(h){const m=h[1];return 2===m.type?m.declTNode:1===m.type?h[6]:null}function tf(h,m,g){if(g&Qe.SkipSelf){let C=m,w=h;for(;!(C=C.parent,null!==C||g&Qe.Host||(C=Qb(w),null===C||(w=w[15],10&C.type))););if(null===C)return!1;m=C,h=w}const _=ce.lFrame=nf();return _.currentTNode=m,_.lView=h,!0}function su(h){const m=nf(),g=h[1];ce.lFrame=m,m.currentTNode=g.firstChild,m.lView=h,m.tView=g,m.contextLView=h,m.bindingIndex=g.bindingStartIndex,m.inI18n=!1}function nf(){const h=ce.lFrame,m=null===h?null:h.child;return null===m?rf(h):m}function rf(h){const m={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:h,child:null,inI18n:!1};return null!==h&&(h.child=m),m}function af(){const h=ce.lFrame;return ce.lFrame=h.parent,h.currentTNode=null,h.lView=null,h}const sf=af;function lu(){const h=af();h.isParent=!0,h.tView=null,h.selectedIndex=-1,h.contextLView=null,h.elementDepthCount=0,h.currentDirectiveIndex=-1,h.currentNamespace=null,h.bindingRootIndex=-1,h.bindingIndex=-1,h.currentQueryIndex=0}function Bi(){return ce.lFrame.selectedIndex}function Wn(h){ce.lFrame.selectedIndex=h}function zt(){const h=ce.lFrame;return Co(h.tView,h.selectedIndex)}function $n(){ce.lFrame.currentNamespace="svg"}function cu(){!function cf(){ce.lFrame.currentNamespace=null}()}function Is(h,m){for(let g=m.directiveStart,_=m.directiveEnd;g<_;g++){const w=h.data[g].type.prototype,{ngAfterContentInit:v,ngAfterContentChecked:E,ngAfterViewInit:S,ngAfterViewChecked:P,ngOnDestroy:R}=w;v&&(h.contentHooks||(h.contentHooks=[])).push(-g,v),E&&((h.contentHooks||(h.contentHooks=[])).push(g,E),(h.contentCheckHooks||(h.contentCheckHooks=[])).push(g,E)),S&&(h.viewHooks||(h.viewHooks=[])).push(-g,S),P&&((h.viewHooks||(h.viewHooks=[])).push(g,P),(h.viewCheckHooks||(h.viewCheckHooks=[])).push(g,P)),null!=R&&(h.destroyHooks||(h.destroyHooks=[])).push(g,R)}}function rc(h,m,g){oc(h,m,3,g)}function Ta(h,m,g,_){(3&h[2])===g&&oc(h,m,g,_)}function ac(h,m){let g=h[2];(3&g)===m&&(g&=2047,g+=1,h[2]=g)}function oc(h,m,g,_){const w=_??-1,v=m.length-1;let E=0;for(let S=void 0!==_?65535&h[18]:0;S=_)break}else m[S]<0&&(h[18]+=65536),(E>11>16&&(3&h[2])===m){h[2]+=2048;try{w.call(E)}finally{}}}else try{w.call(E)}finally{}}class Ea{constructor(m,g,_){this.factory=m,this.resolving=!1,this.canSeeViewProviders=g,this.injectImpl=_}}function Vs(h,m,g){let _=0;for(;_m){v=w-1;break}}}for(;w>16}(h),_=m;for(;g>0;)_=_[15],g--;return _}let mf=!0;function hu(h){const m=mf;return mf=h,m}let iC=0;const Qn={};function Da(h,m){const g=cc(h,m);if(-1!==g)return g;const _=m[1];_.firstCreatePass&&(h.injectorIndex=m.length,Yi(_.data,h),Yi(m,null),Yi(_.blueprint,null));const C=Os(h,m),w=h.injectorIndex;if(pf(C)){const v=vo(C),E=Ma(C,m),S=E[1].data;for(let P=0;P<8;P++)m[w+P]=E[v+P]|S[v+P]}return m[w+8]=C,w}function Yi(h,m){h.push(0,0,0,0,0,0,0,0,m)}function cc(h,m){return-1===h.injectorIndex||h.parent&&h.parent.injectorIndex===h.injectorIndex||null===m[h.injectorIndex+8]?-1:h.injectorIndex}function Os(h,m){if(h.parent&&-1!==h.parent.injectorIndex)return h.parent.injectorIndex;let g=0,_=null,C=m;for(;null!==C;){if(_=Cf(C),null===_)return-1;if(g++,C=C[15],-1!==_.injectorIndex)return _.injectorIndex|g<<16}return-1}function dc(h,m,g){!function nC(h,m,g){let _;"string"==typeof g?_=g.charCodeAt(0)||0:g.hasOwnProperty(Tt)&&(_=g[Tt]),null==_&&(_=g[Tt]=iC++);const C=255&_;m.data[h+(C>>5)]|=1<=0?255&m:oC:m}(g);if("function"==typeof w){if(!tf(m,h,_))return _&Qe.Host?pu(C,0,_):Ls(m,g,_,C);try{const v=w(_);if(null!=v||_&Qe.Optional)return v;_e()}finally{sf()}}else if("number"==typeof w){let v=null,E=cc(h,m),S=-1,P=_&Qe.Host?m[16][6]:null;for((-1===E||_&Qe.SkipSelf)&&(S=-1===E?Os(h,m):m[E+8],-1!==S&&xo(_,!1)?(v=m[1],E=vo(S),m=Ma(S,m)):E=-1);-1!==E;){const R=m[1];if(Ao(w,E,R.data)){const L=uc(E,m,g,v,_,P);if(L!==Qn)return L}S=m[E+8],-1!==S&&xo(_,m[1].data[E+8]===P)&&Ao(w,E,m)?(v=R,E=vo(S),m=Ma(S,m)):E=-1}}return C}function uc(h,m,g,_,C,w){const v=m[1],E=v.data[h+8],R=zr(E,v,g,null==_?Un(E)&&mf:_!=v&&0!=(3&E.type),C&Qe.Host&&w===E);return null!==R?Fs(m,v,R,E):Qn}function zr(h,m,g,_,C){const w=h.providerIndexes,v=m.data,E=1048575&w,S=h.directiveStart,R=w>>20,J=C?E+R:h.directiveEnd;for(let re=_?E:E+R;re=S&&me.type===g)return re}if(C){const re=v[S];if(re&&ki(re)&&re.type===g)return S}return null}function Fs(h,m,g,_){let C=h[g];const w=m.data;if(function Zb(h){return h instanceof Ea}(C)){const v=C;v.resolving&&function Ve(h,m){const g=m?`. Dependency path: ${m.join(" > ")} > ${h}`:"";throw new ie(-200,`Circular dependency in DI detected for ${h}${g}`)}(function ge(h){return"function"==typeof h?h.name||h.toString():"object"==typeof h&&null!=h&&"function"==typeof h.type?h.type.name||h.type.toString():he(h)}(w[g]));const E=hu(v.canSeeViewProviders);v.resolving=!0;const S=v.injectImpl?Di(v.injectImpl):null;tf(h,_,Qe.Default);try{C=h[g]=v.factory(void 0,w,h,_),m.firstCreatePass&&g>=_.directiveStart&&function jr(h,m,g){const{ngOnChanges:_,ngOnInit:C,ngDoCheck:w}=m.type.prototype;if(_){const v=Ss(m);(g.preOrderHooks||(g.preOrderHooks=[])).push(h,v),(g.preOrderCheckHooks||(g.preOrderCheckHooks=[])).push(h,v)}C&&(g.preOrderHooks||(g.preOrderHooks=[])).push(0-h,C),w&&((g.preOrderHooks||(g.preOrderHooks=[])).push(h,w),(g.preOrderCheckHooks||(g.preOrderCheckHooks=[])).push(h,w))}(g,w[g],m)}finally{null!==S&&Di(S),hu(E),v.resolving=!1,sf()}}return C}function Ao(h,m,g){return!!(g[m+(h>>5)]&1<{const m=h.prototype.constructor,g=m[et]||fu(m),_=Object.prototype;let C=Object.getPrototypeOf(h.prototype).constructor;for(;C&&C!==_;){const w=C[et]||fu(C);if(w&&w!==g)return w;C=Object.getPrototypeOf(C)}return w=>new w})}function fu(h){return ne(h)?()=>{const m=fu(te(h));return m&&m()}:gr(h)}function Cf(h){const m=h[1],g=m.type;return 2===g?m.declTNode:1===g?h[6]:null}function yf(h){return function rC(h,m){if("class"===m)return h.classes;if("style"===m)return h.styles;const g=h.attrs;if(g){const _=g.length;let C=0;for(;C<_;){const w=g[C];if(hf(w))break;if(0===w)C+=2;else if("number"==typeof w)for(C++;C<_&&"string"==typeof g[C];)C++;else{if(w===m)return g[C+1];C+=2}}}return null}(Yt(),h)}const Ur="__parameters__";function So(h,m,g){return An(()=>{const _=function mu(h){return function(...g){if(h){const _=h(...g);for(const C in _)this[C]=_[C]}}}(m);function C(...w){if(this instanceof C)return _.apply(this,w),this;const v=new C(...w);return E.annotation=v,E;function E(S,P,R){const L=S.hasOwnProperty(Ur)?S[Ur]:Object.defineProperty(S,Ur,{value:[]})[Ur];for(;L.length<=R;)L.push(null);return(L[R]=L[R]||[]).push(v),S}}return g&&(C.prototype=Object.create(g.prototype)),C.prototype.ngMetadataName=h,C.annotationCls=C,C})}class Pt{constructor(m,g){this._desc=m,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof g?this.__NG_ELEMENT_ID__=g:void 0!==g&&(this.\u0275prov=xt({token:this,providedIn:g.providedIn||"root",factory:g.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Qi(h,m){void 0===m&&(m=h);for(let g=0;gArray.isArray(g)?Jn(g,m):m(g))}function js(h,m,g){m>=h.length?h.push(g):h.splice(m,0,g)}function Pa(h,m){return m>=h.length-1?h.pop():h.splice(m,1)[0]}function Do(h,m){const g=[];for(let _=0;_=0?h[1|_]=g:(_=~_,function dC(h,m,g,_){let C=h.length;if(C==m)h.push(g,_);else if(1===C)h.push(_,h[0]),h[0]=g;else{for(C--,h.push(h[C-1],h[C]);C>m;)h[C]=h[C-2],C--;h[m]=g,h[m+1]=_}}(h,_,m,g)),_}function Po(h,m){const g=Ro(h,m);if(g>=0)return h[1|g]}function Ro(h,m){return function Tf(h,m,g){let _=0,C=h.length>>g;for(;C!==_;){const w=_+(C-_>>1),v=h[w<m?C=w:_=w+1}return~(C<h,createScript:h=>h,createScriptURL:h=>h})}catch{}return wc}()?.createHTML(h)||h}class Gr{constructor(m){this.changingThisBreaksApplicationSecurity=m}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class RC extends Gr{getTypeName(){return"HTML"}}class Mu extends Gr{getTypeName(){return"Style"}}class IC extends Gr{getTypeName(){return"Script"}}class kC extends Gr{getTypeName(){return"URL"}}class BC extends Gr{getTypeName(){return"ResourceURL"}}function qr(h){return h instanceof Gr?h.changingThisBreaksApplicationSecurity:h}function Oo(h,m){const g=function Wr(h){return h instanceof Gr&&h.getTypeName()||null}(h);if(null!=g&&g!==m){if("ResourceURL"===g&&"URL"===m)return!0;throw new Error(`Required a safe ${m}, got a ${g} (see https://g.co/ng/security#xss)`)}return g===m}function Du(h){return new RC(h)}function fi(h){return new Mu(h)}function nx(h){return new IC(h)}function Lo(h){return new kC(h)}function Vf(h){return new BC(h)}class Qs{constructor(m){this.inertDocumentHelper=m}getInertBodyElement(m){m=""+m;try{const g=(new window.DOMParser).parseFromString(Vo(m),"text/html").body;return null===g?this.inertDocumentHelper.getInertBodyElement(m):(g.removeChild(g.firstChild),g)}catch{return null}}}class VC{constructor(m){if(this.defaultDoc=m,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const g=this.inertDocument.createElement("html");this.inertDocument.appendChild(g);const _=this.inertDocument.createElement("body");g.appendChild(_)}}getInertBodyElement(m){const g=this.inertDocument.createElement("template");if("content"in g)return g.innerHTML=Vo(m),g;const _=this.inertDocument.createElement("body");return _.innerHTML=Vo(m),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(_),_}stripCustomNsAttrs(m){const g=m.attributes;for(let C=g.length-1;0wr(m.trim())).join(", ")),this.buf.push(" ",v,'="',FC(S),'"')}var h;return this.buf.push(">"),!0}endElement(m){const g=m.nodeName.toLowerCase();Ff.hasOwnProperty(g)&&!xc.hasOwnProperty(g)&&(this.buf.push(""))}chars(m){this.buf.push(FC(m))}checkClobberedElement(m,g){if(g&&(m.compareDocumentPosition(g)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${m.outerHTML}`);return g}}const jf=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,sx=/([^\#-~ |!])/g;function FC(h){return h.replace(/&/g,"&").replace(jf,function(m){return"&#"+(1024*(m.charCodeAt(0)-55296)+(m.charCodeAt(1)-56320)+65536)+";"}).replace(sx,function(m){return"&#"+m.charCodeAt(0)+";"}).replace(//g,">")}let Sc;function zf(h,m){let g=null;try{Sc=Sc||function Hu(h){const m=new VC(h);return function Kn(){try{return!!(new window.DOMParser).parseFromString(Vo(""),"text/html")}catch{return!1}}()?new Qs(m):m}(h);let _=m?String(m):"";g=Sc.getInertBodyElement(_);let C=5,w=_;do{if(0===C)throw new Error("Failed to sanitize html because the input is unstable");C--,_=w,w=g.innerHTML,g=Sc.getInertBodyElement(_)}while(_!==w);return Vo((new Nf).sanitizeChildren(Ru(g)||g))}finally{if(g){const _=Ru(g)||g;for(;_.firstChild;)_.removeChild(_.firstChild)}}}function Ru(h){return"content"in h&&function Uf(h){return h.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===h.nodeName}(h)?h.content:null}var ai=(()=>((ai=ai||{})[ai.NONE=0]="NONE",ai[ai.HTML=1]="HTML",ai[ai.STYLE=2]="STYLE",ai[ai.SCRIPT=3]="SCRIPT",ai[ai.URL=4]="URL",ai[ai.RESOURCE_URL=5]="RESOURCE_URL",ai))();function Gf(h){const m=function Mc(){const h=be();return h&&h[12]}();return m?m.sanitize(ai.URL,h)||"":Oo(h,"URL")?qr(h):wr(he(h))}const qf=new Pt("ENVIRONMENT_INITIALIZER"),UC=new Pt("INJECTOR",-1),Wf=new Pt("INJECTOR_DEF_TYPES");class GC{get(m,g=Io){if(g===Io){const _=new Error(`NullInjectorError: No provider for ${Q(m)}!`);throw _.name="NullInjectorError",_}return g}}function hx(...h){return{\u0275providers:qC(0,h)}}function qC(h,...m){const g=[],_=new Set;let C;return Jn(m,w=>{const v=w;Dc(v,g,[],_)&&(C||(C=[]),C.push(v))}),void 0!==C&&WC(C,g),g}function WC(h,m){for(let g=0;g{m.push(w)})}}function Dc(h,m,g,_){if(!(h=te(h)))return!1;let C=null,w=uo(h);const v=!w&&At(h);if(w||v){if(v&&!v.standalone)return!1;C=h}else{const S=h.ngModule;if(w=uo(S),!w)return!1;C=S}const E=_.has(C);if(v){if(E)return!1;if(_.add(C),v.dependencies){const S="function"==typeof v.dependencies?v.dependencies():v.dependencies;for(const P of S)Dc(P,m,g,_)}}else{if(!w)return!1;{if(null!=w.imports&&!E){let P;_.add(C);try{Jn(w.imports,R=>{Dc(R,m,g,_)&&(P||(P=[]),P.push(R))})}finally{}void 0!==P&&WC(P,m)}if(!E){const P=gr(C)||(()=>new C);m.push({provide:C,useFactory:P,deps:ze},{provide:Wf,useValue:C,multi:!0},{provide:qf,useValue:()=>Kt(C),multi:!0})}const S=w.providers;null==S||E||Jn(S,R=>{m.push(R)})}}return C!==h&&void 0!==h.providers}const px=N({provide:String,useValue:N});function $f(h){return null!==h&&"object"==typeof h&&px in h}function No(h){return"function"==typeof h}const Yf=new Pt("Set Injector scope."),ku={},mx={};let Qf;function Bu(){return void 0===Qf&&(Qf=new GC),Qf}class jo{}class QC extends jo{constructor(m,g,_,C){super(),this.parent=g,this.source=_,this.scopes=C,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Kf(m,v=>this.processProvider(v)),this.records.set(UC,Js(void 0,this)),C.has("environment")&&this.records.set(jo,Js(void 0,this));const w=this.records.get(Yf);null!=w&&"string"==typeof w.value&&this.scopes.add(w.value),this.injectorDefTypes=new Set(this.get(Wf.multi,ze,Qe.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const m of this._ngOnDestroyHooks)m.ngOnDestroy();for(const m of this._onDestroyHooks)m()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(m){this._onDestroyHooks.push(m)}runInContext(m){this.assertNotDestroyed();const g=ko(this),_=Di(void 0);try{return m()}finally{ko(g),Di(_)}}get(m,g=Io,_=Qe.Default){this.assertNotDestroyed();const C=ko(this),w=Di(void 0);try{if(!(_&Qe.SkipSelf)){let E=this.records.get(m);if(void 0===E){const S=function yx(h){return"function"==typeof h||"object"==typeof h&&h instanceof Pt}(m)&&Br(m);E=S&&this.injectableDefInScope(S)?Js(Jf(m),ku):null,this.records.set(m,E)}if(null!=E)return this.hydrate(m,E)}return(_&Qe.Self?Bu():this.parent).get(m,g=_&Qe.Optional&&g===Io?null:g)}catch(v){if("NullInjectorError"===v.name){if((v[mc]=v[mc]||[]).unshift(Q(m)),C)throw v;return function yC(h,m,g,_){const C=h[mc];throw m[Sf]&&C.unshift(m[Sf]),h.message=function vu(h,m,g,_=null){h=h&&"\n"===h.charAt(0)&&"\u0275"==h.charAt(1)?h.slice(2):h;let C=Q(m);if(Array.isArray(m))C=m.map(Q).join(" -> ");else if("object"==typeof m){let w=[];for(let v in m)if(m.hasOwnProperty(v)){let E=m[v];w.push(v+":"+("string"==typeof E?JSON.stringify(E):Q(E)))}C=`{${w.join(", ")}}`}return`${g}${_?"("+_+")":""}[${C}]: ${h.replace(_C,"\n ")}`}("\n"+h.message,C,g,_),h.ngTokenPath=C,h[mc]=null,h}(v,m,"R3InjectorError",this.source)}throw v}finally{Di(w),ko(C)}}resolveInjectorInitializers(){const m=ko(this),g=Di(void 0);try{const _=this.get(qf.multi,ze,Qe.Self);for(const C of _)C()}finally{ko(m),Di(g)}}toString(){const m=[],g=this.records;for(const _ of g.keys())m.push(Q(_));return`R3Injector[${m.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ie(205,!1)}processProvider(m){let g=No(m=te(m))?m:te(m&&m.provide);const _=function _x(h){return $f(h)?Js(void 0,h.useValue):Js(JC(h),ku)}(m);if(No(m)||!0!==m.multi)this.records.get(g);else{let C=this.records.get(g);C||(C=Js(void 0,ku,!0),C.factory=()=>wu(C.multi),this.records.set(g,C)),g=m,C.multi.push(m)}this.records.set(g,_)}hydrate(m,g){return g.value===ku&&(g.value=mx,g.value=g.factory()),"object"==typeof g.value&&g.value&&function Cx(h){return null!==h&&"object"==typeof h&&"function"==typeof h.ngOnDestroy}(g.value)&&this._ngOnDestroyHooks.add(g.value),g.value}injectableDefInScope(m){if(!m.providedIn)return!1;const g=te(m.providedIn);return"string"==typeof g?"any"===g||this.scopes.has(g):this.injectorDefTypes.has(g)}}function Jf(h){const m=Br(h),g=null!==m?m.factory:gr(h);if(null!==g)return g;if(h instanceof Pt)throw new ie(204,!1);if(h instanceof Function)return function gx(h){const m=h.length;if(m>0)throw Do(m,"?"),new ie(204,!1);const g=function co(h){const m=h&&(h[Nn]||h[ha]);if(m){const g=function Yd(h){if(h.hasOwnProperty("name"))return h.name;const m=(""+h).match(/^function\s*([^\s(]+)/);return null===m?"":m[1]}(h);return console.warn(`DEPRECATED: DI is instantiating a token "${g}" 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 "${g}" class.`),m}return null}(h);return null!==g?()=>g.factory(h):()=>new h}(h);throw new ie(204,!1)}function JC(h,m,g){let _;if(No(h)){const C=te(h);return gr(C)||Jf(C)}if($f(h))_=()=>te(h.useValue);else if(function YC(h){return!(!h||!h.useFactory)}(h))_=()=>h.useFactory(...wu(h.deps||[]));else if(function $C(h){return!(!h||!h.useExisting)}(h))_=()=>Kt(te(h.useExisting));else{const C=te(h&&(h.useClass||h.provide));if(!function bx(h){return!!h.deps}(h))return gr(C)||Jf(C);_=()=>new C(...wu(h.deps))}return _}function Js(h,m,g=!1){return{factory:h,value:m,multi:g?[]:void 0}}function wx(h){return!!h.\u0275providers}function Kf(h,m){for(const g of h)Array.isArray(g)?Kf(g,m):wx(g)?Kf(g.\u0275providers,m):m(g)}class Zf{}class Ax{resolveComponentFactory(m){throw function vx(h){const m=Error(`No component factory found for ${Q(h)}. Did you add it to @NgModule.entryComponents?`);return m.ngComponent=h,m}(m)}}let Hc=(()=>{class h{}return h.NULL=new Ax,h})();function xx(){return Ks(Yt(),be())}function Ks(h,m){return new Pc(Ai(h,m))}let Pc=(()=>{class h{constructor(g){this.nativeElement=g}}return h.__NG_ELEMENT_ID__=xx,h})();function Tx(h){return h instanceof Pc?h.nativeElement:h}class XC{}let Ex=(()=>{class h{}return h.__NG_ELEMENT_ID__=()=>function Sx(){const h=be(),g=Ni(Yt().index,h);return(Et(g)?g:h)[11]}(),h})(),Mx=(()=>{class h{}return h.\u0275prov=xt({token:h,providedIn:"root",factory:()=>null}),h})();class ey{constructor(m){this.full=m,this.major=m.split(".")[0],this.minor=m.split(".")[1],this.patch=m.split(".").slice(2).join(".")}}const Dx=new ey("14.1.2"),Xf={};function rm(h){return h.ngOriginalError}class Rc{constructor(){this._console=console}handleError(m){const g=this._findOriginalError(m);this._console.error("ERROR",m),g&&this._console.error("ORIGINAL ERROR",g)}_findOriginalError(m){let g=m&&rm(m);for(;g&&rm(g);)g=rm(g);return g||null}}const am=new Map;let jx=0;const kc="__ngContext__";function Ti(h,m){Et(m)?(h[kc]=m[20],function Ux(h){am.set(h[20],h)}(m)):h[kc]=m}function Zs(h){const m=h[kc];return"number"==typeof m?function oy(h){return am.get(h)||null}(m):m||null}function Vu(h){const m=Zs(h);return m?Et(m)?m:m.lView:null}const ly=(()=>(typeof requestAnimationFrame<"u"&&requestAnimationFrame||setTimeout).bind(le))();function Ji(h){return h instanceof Function?h():h}var Mn=(()=>((Mn=Mn||{})[Mn.Important=1]="Important",Mn[Mn.DashCase=2]="DashCase",Mn))();function lm(h,m){return undefined(h,m)}function Bc(h){const m=h[3];return rn(m)?m[3]:m}function dm(h){return hm(h[13])}function um(h){return hm(h[4])}function hm(h){for(;null!==h&&!rn(h);)h=h[4];return h}function Va(h,m,g,_,C){if(null!=_){let w,v=!1;rn(_)?w=_:Et(_)&&(v=!0,_=_[0]);const E=Jt(_);0===h&&null!==g?null==C?xy(m,g,E):zo(m,g,E,C||null,!0):1===h&&null!==g?zo(m,g,E,C||null,!0):2===h?function Cm(h,m,g){const _=Uo(h,m);_&&function Jx(h,m,g,_){h.removeChild(m,g,_)}(h,_,m,g)}(m,E,v):3===h&&m.destroyNode(E),null!=w&&function ym(h,m,g,_,C){const w=g[7];w!==Jt(g)&&Va(m,h,_,w,C);for(let E=10;E0&&(h[g-1][4]=_[4]);const w=Pa(h,10+m);!function gy(h,m){pn(h,m,m[11],2,null,null),m[0]=null,m[6]=null}(_[1],_);const v=w[19];null!==v&&v.detachView(w[1]),_[3]=null,_[4]=null,_[2]&=-65}return _}function mm(h,m){if(!(128&m[2])){const g=m[11];g.destroyNode&&pn(h,m,g,3,null,null),function Cy(h){let m=h[13];if(!m)return zu(h[1],h);for(;m;){let g=null;if(Et(m))g=m[13];else{const _=m[10];_&&(g=_)}if(!g){for(;m&&!m[4]&&m!==h;)Et(m)&&zu(m[1],m),m=m[3];null===m&&(m=h),Et(m)&&zu(m[1],m),g=m&&m[4]}m=g}}(m)}}function zu(h,m){if(!(128&m[2])){m[2]&=-65,m[2]|=128,function Uu(h,m){let g;if(null!=h&&null!=(g=h.destroyHooks))for(let _=0;_=0?_[C=P]():_[C=-P].unsubscribe(),w+=2}else{const v=_[C=g[w+1]];g[w].call(v)}if(null!==_){for(let w=C+1;w<_.length;w++)(0,_[w])();m[7]=null}}(h,m),1===m[1].type&&m[11].destroy();const g=m[17];if(null!==g&&rn(m[3])){g!==m[3]&&Nu(g,m);const _=m[19];null!==_&&_.detachView(h)}!function Gx(h){am.delete(h[20])}(m)}}function vy(h,m,g){return function Ay(h,m,g){let _=m;for(;null!==_&&40&_.type;)_=(m=_).parent;if(null===_)return g[0];if(2&_.flags){const C=h.data[_.directiveStart].encapsulation;if(C===q.None||C===q.Emulated)return null}return Ai(_,g)}(h,m.parent,g)}function zo(h,m,g,_,C){h.insertBefore(m,g,_,C)}function xy(h,m,g){h.appendChild(m,g)}function Ty(h,m,g,_,C){null!==_?zo(h,m,g,_,C):xy(h,m,g)}function Uo(h,m){return h.parentNode(m)}function _m(h,m,g){return Oa(h,m,g)}let Oa=function Gu(h,m,g){return 40&h.type?Ai(h,g):null};function Vc(h,m,g,_){const C=vy(h,_,m),w=m[11],E=_m(_.parent||m[6],_,m);if(null!=C)if(Array.isArray(g))for(let S=0;Sw?"":C[L+1].toLowerCase();const re=8&_?J:null;if(re&&-1!==wm(re,P,0)||2&_&&P!==J){if(fn(_))return!1;v=!0}}}}else{if(!v&&!fn(_)&&!fn(S))return!1;if(v&&fn(S))continue;v=!1,_=S|1&_}}return fn(_)||v}function fn(h){return 0==(1&h)}function eT(h,m,g,_){if(null===m)return-1;let C=0;if(_||!g){let w=!1;for(;C-1)for(g++;g0?'="'+E+'"':"")+"]"}else 8&_?C+="."+v:4&_&&(C+=" "+v);else""!==C&&!fn(v)&&(m+=xm(w,C),C=""),_=v,w=w||!fn(_);g++}return""!==C&&(m+=xm(w,C)),m}const Ae={};function ky(h){By(rt(),be(),Bi()+h,!1)}function By(h,m,g,_){if(!_)if(3==(3&m[2])){const w=h.preOrderCheckHooks;null!==w&&rc(m,w,g)}else{const w=h.preOrderHooks;null!==w&&Ta(m,w,0,g)}Wn(g)}function mn(h,m=null,g=null,_){const C=nl(h,m,g,_);return C.resolveInjectorInitializers(),C}function nl(h,m=null,g=null,_,C=new Set){const w=[g||ze,hx(h)];return _=_||("object"==typeof h?void 0:Q(h)),new QC(w,m||Bu(),_||null,C)}let Na=(()=>{class h{static create(g,_){if(Array.isArray(g))return mn({name:""},_,g,"");{const C=g.name??"";return mn({name:C},g.parent,g.providers,C)}}}return h.THROW_IF_NOT_FOUND=Io,h.NULL=new GC,h.\u0275prov=xt({token:h,providedIn:"any",factory:()=>Kt(UC)}),h.__NG_ELEMENT_ID__=-1,h})();function rl(h,m=Qe.Default){const g=be();return null===g?Kt(h,m):gf(Yt(),g,te(h),m)}function Gy(){throw new Error("invalid")}function th(h,m){return h<<17|m<<2}function Xn(h){return h>>17&32767}function ih(h){return 2|h}function Qr(h){return(131068&h)>>2}function nh(h,m){return-131069&h|m<<2}function rh(h){return 1|h}function Um(h,m){const g=h.contentQueries;if(null!==g)for(let _=0;_22&&By(h,m,22,!1),g(_,C)}finally{Wn(w)}}function hh(h,m,g){if(ba(m)){const C=m.directiveEnd;for(let w=m.directiveStart;w0;){const g=h[--m];if("number"==typeof g&&g<0)return g}return 0})(E)!=S&&E.push(S),E.push(_,C,v)}}function ow(h,m){null!==h.hostBindings&&h.hostBindings(1,m)}function sw(h,m){m.flags|=2,(h.components||(h.components=[])).push(m.index)}function Ch(h,m,g){if(g){if(m.exportAs)for(let _=0;_0&&er(g)}}function er(h){for(let _=dm(h);null!==_;_=um(_))for(let C=10;C<_.length;C++){const w=_[C];if(k(w))if(512&w[2]){const v=w[1];Hn(v,w,v.template,w[8])}else w[5]>0&&er(w)}const g=h[1].components;if(null!==g)for(let _=0;_0&&er(C)}}function Ym(h,m){const g=Ni(m,h),_=g[1];(function lw(h,m){for(let g=m.length;gPromise.resolve(null))();function uw(h){return h[7]||(h[7]=[])}function hw(h){return h.cleanup||(h.cleanup=[])}function Th(h,m,g){return(null===h||ki(h))&&(g=function Ps(h){for(;Array.isArray(h);){if("object"==typeof h[1])return h;h=h[0]}return null}(g[m.index])),g[11]}function Zm(h,m){const g=h[9],_=g?g.get(Rc,null):null;_&&_.handleError(m)}function Eh(h,m,g,_,C){for(let w=0;w-1&&(ju(m,_),Pa(g,_))}this._attachedToViewContainer=!1}mm(this._lView[1],this._lView)}onDestroy(m){za(this._lView[1],this._lView,null,m)}markForCheck(){xh(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){!function Xc(h,m,g){const _=m[10];_.begin&&_.begin();try{Hn(h,m,h.template,g)}catch(C){throw Zm(m,C),C}finally{_.end&&_.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ie(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function by(h,m){pn(h,m,m[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(m){if(this._attachedToViewContainer)throw new ie(902,!1);this._appRef=m}}class pw extends ul{constructor(m){super(m),this._view=m}detectChanges(){Jm(this._view)}checkNoChanges(){}get context(){return null}}class Tr extends Hc{constructor(m){super(),this.ngModule=m}resolveComponentFactory(m){const g=At(m);return new ed(g,this.ngModule)}}function Sh(h){const m=[];for(let g in h)h.hasOwnProperty(g)&&m.push({propName:h[g],templateName:g});return m}class TT{constructor(m,g){this.injector=m,this.parentInjector=g}get(m,g,_){const C=this.injector.get(m,Xf,_);return C!==Xf||g===Xf?C:this.parentInjector.get(m,g,_)}}class ed extends Zf{constructor(m,g){super(),this.componentDef=m,this.ngModule=g,this.componentType=m.type,this.selector=function Ry(h){return h.map(Py).join(",")}(m.selectors),this.ngContentSelectors=m.ngContentSelectors?m.ngContentSelectors:[],this.isBoundToModule=!!g}get inputs(){return Sh(this.componentDef.inputs)}get outputs(){return Sh(this.componentDef.outputs)}create(m,g,_,C){let w=(C=C||this.ngModule)instanceof jo?C:C?.injector;w&&null!==this.componentDef.getStandaloneInjector&&(w=this.componentDef.getStandaloneInjector(w)||w);const v=w?new TT(m,w):m,E=v.get(XC,null);if(null===E)throw new ie(407,!1);const S=v.get(Mx,null),P=E.createRenderer(null,this.componentDef),R=this.componentDef.selectors[0][0]||"div",L=_?function iw(h,m,g){return h.selectRootElement(m,g===q.ShadowDom)}(P,_,this.componentDef.encapsulation):Fu(E.createRenderer(null,this.componentDef),R,function Xm(h){const m=h.toLowerCase();return"svg"===m?"svg":"math"===m?"math":null}(R)),J=this.componentDef.onPush?288:272,re=function mw(h,m){return{components:[],scheduler:h||ly,clean:dw,playerHandler:m||null,flags:0}}(),me=mh(0,null,null,1,0,null,null,null,null,null),Te=sl(null,me,re,J,null,null,E,P,S,v,null);let Re,Fe;su(Te);try{const $e=function tr(h,m,g,_,C,w){const v=g[1];g[22]=h;const S=Xr(v,22,2,"#host",null),P=S.mergedAttrs=m.hostAttrs;null!==P&&(ta(S,P,!0),null!==h&&(Vs(C,h,P),null!==S.classes&&La(C,h,S.classes),null!==S.styles&&Qu(C,h,S.styles)));const R=_.createRenderer(h,m),L=sl(g,qm(m),null,m.onPush?32:16,g[22],S,_,R,w||null,null,null);return v.firstCreatePass&&(dc(Da(S,g),v,m.type),sw(v,S),yh(S,g.length,1)),Ah(g,L),g[22]=L}(L,this.componentDef,Te,E,P);if(L)if(_)Vs(P,L,["ng-version",Dx.full]);else{const{attrs:ye,classes:qe}=function Iy(h){const m=[],g=[];let _=1,C=2;for(;_0&&La(P,L,qe.join(" "))}if(Fe=Co(me,22),void 0!==g){const ye=Fe.projection=[];for(let qe=0;qe=0;_--){const C=h[_];C.hostVars=m+=C.hostVars,C.hostAttrs=Sa(C.hostAttrs,g=Sa(g,C.hostAttrs))}}(_)}function ig(h){return h===st?{}:h===ze?[]:h}function ng(h,m){const g=h.viewQuery;h.viewQuery=g?(_,C)=>{m(_,C),g(_,C)}:m}function gw(h,m){const g=h.contentQueries;h.contentQueries=g?(_,C,w)=>{m(_,C,w),g(_,C,w)}:m}function Er(h,m){const g=h.hostBindings;h.hostBindings=g?(_,C)=>{m(_,C),g(_,C)}:m}let hl=null;function Oe(){if(!hl){const h=le.Symbol;if(h&&h.iterator)hl=h.iterator;else{const m=Object.getOwnPropertyNames(Map.prototype);for(let g=0;gE(Jt(ft[_.index])):_.index;let qe=null;if(!E&&S&&(qe=function kT(h,m,g,_){const C=h.cleanup;if(null!=C)for(let w=0;wS?E[S]:null}"string"==typeof v&&(w+=2)}return null}(h,m,C,_.index)),null!==qe)(qe.__ngLastListenerFn__||qe).__ngNextListenerFn__=w,qe.__ngLastListenerFn__=w,re=!1;else{w=mg(_,m,L,w,!1);const ft=g.listen(Fe,C,w);J.push(w,ft),R&&R.push(C,ye,$e,$e+1)}}else w=mg(_,m,L,w,!1);const me=_.outputs;let Te;if(re&&null!==me&&(Te=me[C])){const Re=Te.length;if(Re)for(let Fe=0;Fe0;)m=m[15],h--;return m}(h,ce.lFrame.contextLView))[8]}(h)}function BT(h,m){let g=null;const _=function tT(h){const m=h.attrs;if(null!=m){const g=m.indexOf(5);if(0==(1&g))return m[g+1]}return null}(h);for(let C=0;C=0}const mi={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Iw(h){return h.substring(mi.key,mi.keyEnd)}function kw(h,m){const g=mi.textEnd;return g===m?-1:(m=mi.keyEnd=function Vw(h,m,g){for(;m32;)m++;return m}(h,mi.key=m,g),_l(h,m,g))}function _l(h,m,g){for(;m=0;g=kw(m,g))an(h,Iw(m),!0)}function nr(h,m,g,_){const C=be(),w=rt(),v=qn(2);w.firstUpdatePass&&os(w,h,v,_),m!==Ae&&Ei(C,v,m)&&vg(w,w.data[Bi()],C,C[11],h,C[v+1]=function WT(h,m){return null==h||("string"==typeof m?h+=m:"object"==typeof h&&(h=Q(qr(h)))),h}(m,g),_,v)}function rr(h,m,g,_){const C=rt(),w=qn(2);C.firstUpdatePass&&os(C,null,w,_);const v=be();if(g!==Ae&&Ei(v,w,g)){const E=C.data[Bi()];if(qw(E,_)&&!Fw(C,w)){let S=_?E.classesWithoutHost:E.stylesWithoutHost;null!==S&&(g=G(S,g||"")),hg(C,E,v,g,_)}else!function Uw(h,m,g,_,C,w,v,E){C===Ae&&(C=ze);let S=0,P=0,R=0=h.expandoStartIndex}function os(h,m,g,_){const C=h.data;if(null===C[g+1]){const w=C[Bi()],v=Fw(h,g);qw(w,_)&&null===m&&!v&&(m=!1),m=function GT(h,m,g,_){const C=au(h);let w=_?m.residualClasses:m.residualStyles;if(null===C)0===(_?m.classBindings:m.styleBindings)&&(g=od(g=wg(null,h,m,g,_),m.attrs,_),w=null);else{const v=m.directiveStylingLast;if(-1===v||h[v]!==C)if(g=wg(C,h,m,g,_),null===w){let S=function Nw(h,m,g){const _=g?m.classBindings:m.styleBindings;if(0!==Qr(_))return h[Xn(_)]}(h,m,_);void 0!==S&&Array.isArray(S)&&(S=wg(null,h,m,S[1],_),S=od(S,m.attrs,_),function jw(h,m,g,_){h[Xn(g?m.classBindings:m.styleBindings)]=_}(h,m,_,S))}else w=function zw(h,m,g){let _;const C=m.directiveEnd;for(let w=1+m.directiveStylingLast;w0)&&(P=!0)}else R=g;if(C)if(0!==S){const J=Xn(h[E+1]);h[_+1]=th(J,E),0!==J&&(h[J+1]=nh(h[J+1],_)),h[E+1]=function Wy(h,m){return 131071&h|m<<17}(h[E+1],_)}else h[_+1]=th(E,0),0!==E&&(h[E+1]=nh(h[E+1],_)),E=_;else h[_+1]=th(S,0),0===E?E=_:h[S+1]=nh(h[S+1],_),S=_;P&&(h[_+1]=ih(h[_+1])),Cg(h,R,_,!0),Cg(h,R,_,!1),function Rw(h,m,g,_,C){const w=C?h.residualClasses:h.residualStyles;null!=w&&"string"==typeof m&&Ro(w,m)>=0&&(g[_+1]=rh(g[_+1]))}(m,R,h,_,w),v=th(E,S),w?m.classBindings=v:m.styleBindings=v}(C,w,m,g,v,_)}}function wg(h,m,g,_,C){let w=null;const v=g.directiveEnd;let E=g.directiveStylingLast;for(-1===E?E=g.directiveStart:E++;E0;){const S=h[C],P=Array.isArray(S),R=P?S[1]:S,L=null===R;let J=g[C+1];J===Ae&&(J=L?ze:void 0);let re=L?Po(J,_):R===_?J:void 0;if(P&&!jh(re)&&(re=Po(S,_)),jh(re)&&(E=re,v))return E;const me=h[C+1];C=v?Xn(me):Qr(me)}if(null!==m){let S=w?m.residualClasses:m.residualStyles;null!=S&&(E=Po(S,_))}return E}function jh(h){return void 0!==h}function qw(h,m){return 0!=(h.flags&(m?16:32))}function Ww(h,m=""){const g=be(),_=rt(),C=h+22,w=_.firstCreatePass?Xr(_,C,1,m,null):_.data[C],v=g[C]=function pm(h,m){return h.createText(m)}(g[11],m);Vc(_,g,v,w),ji(w,!1)}function Ag(h){return Ga("",h,""),Ag}function Ga(h,m,g){const _=be(),C=Zo(_,h,m,g);return C!==Ae&&bn(_,Bi(),C),Ga}function xg(h,m,g,_,C,w,v){const E=be(),S=es(E,h,m,g,_,C,w,v);return S!==Ae&&bn(E,Bi(),S),xg}function Xw(h,m,g){rr(an,Mr,Zo(be(),h,m,g),!0)}function Uh(h,m,g){const _=be();return Ei(_,xa(),m)&&Ki(rt(),zt(),_,h,m,_[11],g,!0),Uh}function qa(h,m,g){const _=be();if(Ei(_,xa(),m)){const w=rt(),v=zt();Ki(w,v,_,h,m,Th(au(w.data),v,_),g,!0)}return qa}const ia=void 0;var Mg=["en",[["a","p"],["AM","PM"],ia],[["AM","PM"],ia,ia],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],ia,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],ia,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",ia,"{1} 'at' {0}",ia],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function ov(h){const g=Math.floor(Math.abs(h)),_=h.toString().replace(/^[^.]*\.?/,"").length;return 1===g&&0===_?1:5}];let Wa={};function $a(h){const m=function cv(h){return h.toLowerCase().replace(/_/g,"-")}(h);let g=yl(m);if(g)return g;const _=m.split("-")[0];if(g=yl(_),g)return g;if("en"===_)return Mg;throw new ie(701,!1)}function sv(h){return $a(h)[Je.PluralCase]}function yl(h){return h in Wa||(Wa[h]=le.ng&&le.ng.common&&le.ng.common.locales&&le.ng.common.locales[h]),Wa[h]}var Je=(()=>((Je=Je||{})[Je.LocaleId=0]="LocaleId",Je[Je.DayPeriodsFormat=1]="DayPeriodsFormat",Je[Je.DayPeriodsStandalone=2]="DayPeriodsStandalone",Je[Je.DaysFormat=3]="DaysFormat",Je[Je.DaysStandalone=4]="DaysStandalone",Je[Je.MonthsFormat=5]="MonthsFormat",Je[Je.MonthsStandalone=6]="MonthsStandalone",Je[Je.Eras=7]="Eras",Je[Je.FirstDayOfWeek=8]="FirstDayOfWeek",Je[Je.WeekendRange=9]="WeekendRange",Je[Je.DateFormat=10]="DateFormat",Je[Je.TimeFormat=11]="TimeFormat",Je[Je.DateTimeFormat=12]="DateTimeFormat",Je[Je.NumberSymbols=13]="NumberSymbols",Je[Je.NumberFormats=14]="NumberFormats",Je[Je.CurrencyCode=15]="CurrencyCode",Je[Je.CurrencySymbol=16]="CurrencySymbol",Je[Je.CurrencyName=17]="CurrencyName",Je[Je.Currencies=18]="Currencies",Je[Je.Directionality=19]="Directionality",Je[Je.PluralCase=20]="PluralCase",Je[Je.ExtraData=21]="ExtraData",Je))();const ls="en-US";let cs=ls;function zg(h,m,g,_,C){if(h=te(h),Array.isArray(h))for(let w=0;w>20;if(No(h)||!h.multi){const re=new Ea(S,C,rl),me=qg(E,m,C?R:R+J,L);-1===me?(dc(Da(P,v),w,E),Ug(w,h,m.length),m.push(E),P.directiveStart++,P.directiveEnd++,C&&(P.providerIndexes+=1048576),g.push(re),v.push(re)):(g[me]=re,v[me]=re)}else{const re=qg(E,m,R+J,L),me=qg(E,m,R,R+J),Te=re>=0&&g[re],Re=me>=0&&g[me];if(C&&!Re||!C&&!Te){dc(Da(P,v),w,E);const Fe=function Pv(h,m,g,_,C){const w=new Ea(h,g,rl);return w.multi=[],w.index=m,w.componentProviders=0,Gg(w,C,_&&!g),w}(C?SE:EE,g.length,C,_,S);!C&&Re&&(g[me].providerFactory=Fe),Ug(w,h,m.length,0),m.push(E),P.directiveStart++,P.directiveEnd++,C&&(P.providerIndexes+=1048576),g.push(Fe),v.push(Fe)}else Ug(w,h,re>-1?re:me,Gg(g[C?me:re],S,!C&&_));!C&&_&&Re&&g[me].componentProviders++}}}function Ug(h,m,g,_){const C=No(m),w=function fx(h){return!!h.useClass}(m);if(C||w){const S=(w?te(m.useClass):m).prototype.ngOnDestroy;if(S){const P=h.destroyHooks||(h.destroyHooks=[]);if(!C&&m.multi){const R=P.indexOf(g);-1===R?P.push(g,[_,S]):P[R+1].push(_,S)}else P.push(g,S)}}}function Gg(h,m,g){return g&&h.componentProviders++,h.multi.push(m)-1}function qg(h,m,g,_){for(let C=g;C<_;C++)if(m[C]===h)return C;return-1}function EE(h,m,g,_){return Kh(this.multi,[])}function SE(h,m,g,_){const C=this.multi;let w;if(this.providerFactory){const v=this.providerFactory.componentProviders,E=Fs(g,g[1],this.providerFactory.index,_);w=E.slice(0,v),Kh(C,w);for(let S=v;S{g.providersResolver=(_,C)=>function Hv(h,m,g){const _=rt();if(_.firstCreatePass){const C=ki(h);zg(g,_.data,_.blueprint,C,!0),zg(m,_.data,_.blueprint,C,!1)}}(_,C?C(h):h,m)}}class xl{}class lr{}function ME(h,m){return new Rv(h,m??null)}class Rv extends xl{constructor(m,g){super(),this._parent=g,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Tr(this);const _=Wi(m);this._bootstrapComponents=Ji(_.bootstrap),this._r3Injector=nl(m,g,[{provide:xl,useValue:this},{provide:Hc,useValue:this.componentFactoryResolver}],Q(m),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(m)}get injector(){return this._r3Injector}destroy(){const m=this._r3Injector;!m.destroyed&&m.destroy(),this.destroyCbs.forEach(g=>g()),this.destroyCbs=null}onDestroy(m){this.destroyCbs.push(m)}}class $g extends lr{constructor(m){super(),this.moduleType=m}create(m){return new Rv(this.moduleType,m)}}class DE extends xl{constructor(m,g,_){super(),this.componentFactoryResolver=new Tr(this),this.instance=null;const C=new QC([...m,{provide:xl,useValue:this},{provide:Hc,useValue:this.componentFactoryResolver}],g||Bu(),_,new Set(["environment"]));this.injector=C,C.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(m){this.injector.onDestroy(m)}}function Yg(h,m,g=null){return new DE(h,m,g).injector}function Qt(h,m,g,_){return Zg(be(),zi(),h,m,g,_)}function Zg(h,m,g,_,C,w){const v=m+g;return Ei(h,v,C)?function sn(h,m,g){return h[m]=g}(h,v+1,w?_.call(w,C):_(C)):function El(h,m){const g=h[m];return g===Ae?void 0:g}(h,v+1)}function n_(h,m){const g=rt();let _;const C=h+22;g.firstCreatePass?(_=function Zh(h,m){if(m)for(let g=m.length-1;g>=0;g--){const _=m[g];if(h===_.name)return _}}(m,g.pipeRegistry),g.data[C]=_,_.onDestroy&&(g.destroyHooks||(g.destroyHooks=[])).push(C,_.onDestroy)):_=g.data[C];const w=_.factory||(_.factory=gr(_.type)),v=Di(rl);try{const E=hu(!1),S=w();return hu(E),function IT(h,m,g,_){g>=h.data.length&&(h.data[g]=null,h.blueprint[g]=null),m[g]=_}(g,be(),C,S),S}finally{Di(v)}}function r_(h,m,g){const _=h+22,C=be(),w=va(C,_);return function fs(h,m){return h[1].data[m].pure}(C,_)?Zg(C,zi(),m,w.transform,g,w):w.transform(g)}function a_(h){return m=>{setTimeout(h,void 0,m)}}const Pr=class FE extends T.x{constructor(m=!1){super(),this.__isAsync=m}emit(m){super.next(m)}subscribe(m,g,_){let C=m,w=g||(()=>null),v=_;if(m&&"object"==typeof m){const S=m;C=S.next?.bind(S),w=S.error?.bind(S),v=S.complete?.bind(S)}this.__isAsync&&(w=a_(w),C&&(C=a_(C)),v&&(v=a_(v)));const E=super.subscribe({next:C,error:w,complete:v});return m instanceof p.w0&&m.add(E),E}};function NE(){return this._results[Oe()]()}class Xh{constructor(m=!1){this._emitDistinctChangesOnly=m,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const g=Oe(),_=Xh.prototype;_[g]||(_[g]=NE)}get changes(){return this._changes||(this._changes=new Pr)}get(m){return this._results[m]}map(m){return this._results.map(m)}filter(m){return this._results.filter(m)}find(m){return this._results.find(m)}reduce(m,g){return this._results.reduce(m,g)}forEach(m){this._results.forEach(m)}some(m){return this._results.some(m)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(m,g){const _=this;_.dirty=!1;const C=Qi(m);(this._changesDetected=!function hc(h,m,g){if(h.length!==m.length)return!1;for(let _=0;_{class h{}return h.__NG_ELEMENT_ID__=UE,h})();const jE=Cd,zE=class extends jE{constructor(m,g,_){super(),this._declarationLView=m,this._declarationTContainer=g,this.elementRef=_}createEmbeddedView(m,g){const _=this._declarationTContainer.tViews,C=sl(this._declarationLView,_,m,16,null,_.declTNode,null,null,null,null,g||null);C[17]=this._declarationLView[this._declarationTContainer.index];const v=this._declarationLView[19];return null!==v&&(C[19]=v.createEmbeddedView(_)),Qc(_,C,m),new ul(C)}};function UE(){return ep(Yt(),be())}function ep(h,m){return 4&h.type?new zE(m,h,Ks(h,m)):null}let tp=(()=>{class h{}return h.__NG_ELEMENT_ID__=GE,h})();function GE(){return Kv(Yt(),be())}const qE=tp,Qv=class extends qE{constructor(m,g,_){super(),this._lContainer=m,this._hostTNode=g,this._hostLView=_}get element(){return Ks(this._hostTNode,this._hostLView)}get injector(){return new To(this._hostTNode,this._hostLView)}get parentInjector(){const m=Os(this._hostTNode,this._hostLView);if(pf(m)){const g=Ma(m,this._hostLView),_=vo(m);return new To(g[1].data[_+8],g)}return new To(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(m){const g=Jv(this._lContainer);return null!==g&&g[m]||null}get length(){return this._lContainer.length-10}createEmbeddedView(m,g,_){let C,w;"number"==typeof _?C=_:null!=_&&(C=_.index,w=_.injector);const v=m.createEmbeddedView(g||{},w);return this.insert(v,C),v}createComponent(m,g,_,C,w){const v=m&&!function Ns(h){return"function"==typeof h}(m);let E;if(v)E=g;else{const L=g||{};E=L.index,_=L.injector,C=L.projectableNodes,w=L.environmentInjector||L.ngModuleRef}const S=v?m:new ed(At(m)),P=_||this.parentInjector;if(!w&&null==S.ngModule){const J=(v?P:this.parentInjector).get(jo,null);J&&(w=J)}const R=S.create(P,C,void 0,w);return this.insert(R.hostView,E),R}insert(m,g){const _=m._lView,C=_[1];if(function D(h){return rn(h[3])}(_)){const R=this.indexOf(m);if(-1!==R)this.detach(R);else{const L=_[3],J=new Qv(L,L[6],L[3]);J.detach(J.indexOf(m))}}const w=this._adjustIndex(g),v=this._lContainer;!function yy(h,m,g,_){const C=10+_,w=g.length;_>0&&(g[C-1][4]=m),_0)_.push(v[E/2]);else{const P=w[E+1],R=m[-S];for(let L=10;L{class h{constructor(g){this.appInits=g,this.resolve=ti,this.reject=ti,this.initialized=!1,this.done=!1,this.donePromise=new Promise((_,C)=>{this.resolve=_,this.reject=C})}runInitializers(){if(this.initialized)return;const g=[],_=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let C=0;C{w.subscribe({complete:E,error:S})});g.push(v)}}Promise.all(g).then(()=>{_()}).catch(C=>{this.reject(C)}),0===g.length&&_(),this.initialized=!0}}return h.\u0275fac=function(g){return new(g||h)(Kt(D_,8))},h.\u0275prov=xt({token:h,factory:h.\u0275fac,providedIn:"root"}),h})();const up=new Pt("AppId",{providedIn:"root",factory:function hp(){return`${Ad()}${Ad()}${Ad()}`}});function Ad(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const pp=new Pt("Platform Initializer"),H_=new Pt("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),fp=new Pt("appBootstrapListener"),xd=new Pt("AnimationModuleType");let P_=(()=>{class h{log(g){console.log(g)}warn(g){console.warn(g)}}return h.\u0275fac=function(g){return new(g||h)},h.\u0275prov=xt({token:h,factory:h.\u0275fac,providedIn:"platform"}),h})();const Pl=new Pt("LocaleId",{providedIn:"root",factory:()=>yu(Pl,Qe.Optional|Qe.SkipSelf)||function R_(){return typeof $localize<"u"&&$localize.locale||ls}()}),I_=new Pt("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class mp{constructor(m,g){this.ngModuleFactory=m,this.componentFactories=g}}let k_=(()=>{class h{compileModuleSync(g){return new $g(g)}compileModuleAsync(g){return Promise.resolve(this.compileModuleSync(g))}compileModuleAndAllComponentsSync(g){const _=this.compileModuleSync(g),w=Ji(Wi(g).declarations).reduce((v,E)=>{const S=At(E);return S&&v.push(new ed(S)),v},[]);return new mp(_,w)}compileModuleAndAllComponentsAsync(g){return Promise.resolve(this.compileModuleAndAllComponentsSync(g))}clearCache(){}clearCacheFor(g){}getModuleId(g){}}return h.\u0275fac=function(g){return new(g||h)},h.\u0275prov=xt({token:h,factory:h.\u0275fac,providedIn:"root"}),h})();const V_=(()=>Promise.resolve(0))();function Ed(h){typeof Zone>"u"?V_.then(()=>{h&&h.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",h)}class ii{constructor({enableLongStackTrace:m=!1,shouldCoalesceEventChangeDetection:g=!1,shouldCoalesceRunChangeDetection:_=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Pr(!1),this.onMicrotaskEmpty=new Pr(!1),this.onStable=new Pr(!1),this.onError=new Pr(!1),typeof Zone>"u")throw new ie(908,!1);Zone.assertZonePatched();const C=this;if(C._nesting=0,C._outer=C._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const w=Zone.AsyncStackTaggingZoneSpec;C._inner=C._inner.fork(new w("Angular"))}Zone.TaskTrackingZoneSpec&&(C._inner=C._inner.fork(new Zone.TaskTrackingZoneSpec)),m&&Zone.longStackTraceZoneSpec&&(C._inner=C._inner.fork(Zone.longStackTraceZoneSpec)),C.shouldCoalesceEventChangeDetection=!_&&g,C.shouldCoalesceRunChangeDetection=_,C.lastRequestAnimationFrameId=-1,C.nativeRequestAnimationFrame=function qi(){let h=le.requestAnimationFrame,m=le.cancelAnimationFrame;if(typeof Zone<"u"&&h&&m){const g=h[Zone.__symbol__("OriginalDelegate")];g&&(h=g);const _=m[Zone.__symbol__("OriginalDelegate")];_&&(m=_)}return{nativeRequestAnimationFrame:h,nativeCancelAnimationFrame:m}}().nativeRequestAnimationFrame,function Sd(h){const m=()=>{!function oS(h){h.isCheckStableRunning||-1!==h.lastRequestAnimationFrameId||(h.lastRequestAnimationFrameId=h.nativeRequestAnimationFrame.call(le,()=>{h.fakeTopEventTask||(h.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{h.lastRequestAnimationFrameId=-1,Cp(h),h.isCheckStableRunning=!0,L_(h),h.isCheckStableRunning=!1},void 0,()=>{},()=>{})),h.fakeTopEventTask.invoke()}),Cp(h))}(h)};h._inner=h._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(g,_,C,w,v,E)=>{try{return Md(h),g.invokeTask(C,w,v,E)}finally{(h.shouldCoalesceEventChangeDetection&&"eventTask"===w.type||h.shouldCoalesceRunChangeDetection)&&m(),Rl(h)}},onInvoke:(g,_,C,w,v,E,S)=>{try{return Md(h),g.invoke(C,w,v,E,S)}finally{h.shouldCoalesceRunChangeDetection&&m(),Rl(h)}},onHasTask:(g,_,C,w)=>{g.hasTask(C,w),_===C&&("microTask"==w.change?(h._hasPendingMicrotasks=w.microTask,Cp(h),L_(h)):"macroTask"==w.change&&(h.hasPendingMacrotasks=w.macroTask))},onHandleError:(g,_,C,w)=>(g.handleError(C,w),h.runOutsideAngular(()=>h.onError.emit(w)),!1)})}(C)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!ii.isInAngularZone())throw new ie(909,!1)}static assertNotInAngularZone(){if(ii.isInAngularZone())throw new ie(909,!1)}run(m,g,_){return this._inner.run(m,g,_)}runTask(m,g,_,C){const w=this._inner,v=w.scheduleEventTask("NgZoneEvent: "+C,m,O_,ti,ti);try{return w.runTask(v,g,_)}finally{w.cancelTask(v)}}runGuarded(m,g,_){return this._inner.runGuarded(m,g,_)}runOutsideAngular(m){return this._outer.run(m)}}const O_={};function L_(h){if(0==h._nesting&&!h.hasPendingMicrotasks&&!h.isStable)try{h._nesting++,h.onMicrotaskEmpty.emit(null)}finally{if(h._nesting--,!h.hasPendingMicrotasks)try{h.runOutsideAngular(()=>h.onStable.emit(null))}finally{h.isStable=!0}}}function Cp(h){h.hasPendingMicrotasks=!!(h._hasPendingMicrotasks||(h.shouldCoalesceEventChangeDetection||h.shouldCoalesceRunChangeDetection)&&-1!==h.lastRequestAnimationFrameId)}function Md(h){h._nesting++,h.isStable&&(h.isStable=!1,h.onUnstable.emit(null))}function Rl(h){h._nesting--,L_(h)}class vA{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Pr,this.onMicrotaskEmpty=new Pr,this.onStable=new Pr,this.onError=new Pr}run(m,g,_){return m.apply(g,_)}runGuarded(m,g,_){return m.apply(g,_)}runOutsideAngular(m){return m()}runTask(m,g,_,C){return m.apply(g,_)}}const Dd=new Pt(""),F_=new Pt("");let N_,sS=(()=>{class h{constructor(g,_,C){this._ngZone=g,this.registry=_,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,N_||(function lS(h){N_=h}(C),C.addToWindow(_)),this._watchAngularEvents(),g.run(()=>{this.taskTrackingZone=typeof Zone>"u"?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:()=>{ii.assertNotInAngularZone(),Ed(()=>{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())Ed(()=>{for(;0!==this._callbacks.length;){let g=this._callbacks.pop();clearTimeout(g.timeoutId),g.doneCb(this._didWork)}this._didWork=!1});else{let g=this.getPendingTasks();this._callbacks=this._callbacks.filter(_=>!_.updateCb||!_.updateCb(g)||(clearTimeout(_.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(g=>({source:g.source,creationLocation:g.creationLocation,data:g.data})):[]}addCallback(g,_,C){let w=-1;_&&_>0&&(w=setTimeout(()=>{this._callbacks=this._callbacks.filter(v=>v.timeoutId!==w),g(this._didWork,this.getPendingTasks())},_)),this._callbacks.push({doneCb:g,timeoutId:w,updateCb:C})}whenStable(g,_,C){if(C&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(g,_,C),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(g){this.registry.registerApplication(g,this)}unregisterApplication(g){this.registry.unregisterApplication(g)}findProviders(g,_,C){return[]}}return h.\u0275fac=function(g){return new(g||h)(Kt(ii),Kt(AA),Kt(F_))},h.\u0275prov=xt({token:h,factory:h.\u0275fac}),h})(),AA=(()=>{class h{constructor(){this._applications=new Map}registerApplication(g,_){this._applications.set(g,_)}unregisterApplication(g){this._applications.delete(g)}unregisterAllApplications(){this._applications.clear()}getTestability(g){return this._applications.get(g)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(g,_=!0){return N_?.findTestabilityInTree(this,g,_)??null}}return h.\u0275fac=function(g){return new(g||h)},h.\u0275prov=xt({token:h,factory:h.\u0275fac,providedIn:"platform"}),h})(),Za=null;const xA=new Pt("AllowMultipleToken"),j_=new Pt("PlatformDestroyListeners");class EA{constructor(m,g){this.name=m,this.token=g}}function _s(h,m,g=[]){const _=`Platform: ${m}`,C=new Pt(_);return(w=[])=>{let v=Hd();if(!v||v.injector.get(xA,!1)){const E=[...g,...w,{provide:C,useValue:!0}];h?h(E):function yp(h){if(Za&&!Za.get(xA,!1))throw new ie(400,!1);Za=h;const m=h.get(Vl);(function kl(h){const m=h.get(pp,null);m&&m.forEach(g=>g())})(h)}(function vp(h=[],m){return Na.create({name:m,providers:[{provide:Yf,useValue:"platform"},{provide:j_,useValue:new Set([()=>Za=null])},...h]})}(E,_))}return function wp(h){const m=Hd();if(!m)throw new ie(401,!1);return m}()}}function Hd(){return Za?.get(Vl)??null}let Vl=(()=>{class h{constructor(g){this._injector=g,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(g,_){const C=function G_(h,m){let g;return g="noop"===h?new vA:("zone.js"===h?void 0:h)||new ii(m),g}(_?.ngZone,function Ap(h){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!h||!h.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!h||!h.ngZoneRunCoalescing)||!1}}(_)),w=[{provide:ii,useValue:C}];return C.run(()=>{const v=Na.create({providers:w,parent:this.injector,name:g.moduleType.name}),E=g.create(v),S=E.injector.get(Rc,null);if(!S)throw new ie(402,!1);return C.runOutsideAngular(()=>{const P=C.onError.subscribe({next:R=>{S.handleError(R)}});E.onDestroy(()=>{Ep(this._modules,E),P.unsubscribe()})}),function xp(h,m,g){try{const _=g();return Oh(_)?_.catch(C=>{throw m.runOutsideAngular(()=>h.handleError(C)),C}):_}catch(_){throw m.runOutsideAngular(()=>h.handleError(_)),_}}(S,C,()=>{const P=E.injector.get(la);return P.runInitializers(),P.donePromise.then(()=>(function Gh(h){Dt(h,"Expected localeId to be defined"),"string"==typeof h&&(cs=h.toLowerCase().replace(/_/g,"-"))}(E.injector.get(Pl,ls)||ls),this._moduleDoBootstrap(E),E))})})}bootstrapModule(g,_=[]){const C=Pd({},_);return function z_(h,m,g){const _=new $g(g);return Promise.resolve(_)}(0,0,g).then(w=>this.bootstrapModuleFactory(w,C))}_moduleDoBootstrap(g){const _=g.injector.get(Tp);if(g._bootstrapComponents.length>0)g._bootstrapComponents.forEach(C=>_.bootstrap(C));else{if(!g.instance.ngDoBootstrap)throw new ie(403,!1);g.instance.ngDoBootstrap(_)}this._modules.push(g)}onDestroy(g){this._destroyListeners.push(g)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ie(404,!1);this._modules.slice().forEach(_=>_.destroy()),this._destroyListeners.forEach(_=>_());const g=this._injector.get(j_,null);g&&(g.forEach(_=>_()),g.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return h.\u0275fac=function(g){return new(g||h)(Kt(Na))},h.\u0275prov=xt({token:h,factory:h.\u0275fac,providedIn:"platform"}),h})();function Pd(h,m){return Array.isArray(m)?m.reduce(Pd,h):{...h,...m}}let Tp=(()=>{class h{constructor(g,_,C){this._zone=g,this._injector=_,this._exceptionHandler=C,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const w=new B.y(E=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{E.next(this._stable),E.complete()})}),v=new B.y(E=>{let S;this._zone.runOutsideAngular(()=>{S=this._zone.onStable.subscribe(()=>{ii.assertNotInAngularZone(),Ed(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,E.next(!0))})})});const P=this._zone.onUnstable.subscribe(()=>{ii.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{E.next(!1)}))});return()=>{S.unsubscribe(),P.unsubscribe()}});this.isStable=(0,O.T)(w,v.pipe((0,I.B)()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(g,_){const C=g instanceof Zf;if(!this._injector.get(la).done)throw!C&&Ml(g),new ie(405,false);let v;v=C?g:this._injector.get(Hc).resolveComponentFactory(g),this.componentTypes.push(v.componentType);const E=function TA(h){return h.isBoundToModule}(v)?void 0:this._injector.get(xl),P=v.create(Na.NULL,[],_||v.selector,E),R=P.location.nativeElement,L=P.injector.get(Dd,null);return L?.registerApplication(R),P.onDestroy(()=>{this.detachView(P.hostView),Ep(this.components,P),L?.unregisterApplication(R)}),this._loadComponent(P),P}tick(){if(this._runningTick)throw new ie(101,!1);try{this._runningTick=!0;for(let g of this._views)g.detectChanges()}catch(g){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(g))}finally{this._runningTick=!1}}attachView(g){const _=g;this._views.push(_),_.attachToAppRef(this)}detachView(g){const _=g;Ep(this._views,_),_.detachFromAppRef()}_loadComponent(g){this.attachView(g.hostView),this.tick(),this.components.push(g),this._injector.get(fp,[]).concat(this._bootstrapListeners).forEach(C=>C(g))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(g=>g()),this._views.slice().forEach(g=>g.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(g){return this._destroyListeners.push(g),()=>Ep(this._destroyListeners,g)}destroy(){if(this._destroyed)throw new ie(406,!1);const g=this._injector;g.destroy&&!g.destroyed&&g.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return h.\u0275fac=function(g){return new(g||h)(Kt(ii),Kt(jo),Kt(Rc))},h.\u0275prov=xt({token:h,factory:h.\u0275fac,providedIn:"root"}),h})();function Ep(h,m){const g=h.indexOf(m);g>-1&&h.splice(g,1)}let Ol=!0;function Rd(){Ol=!1}let SA=(()=>{class h{}return h.__NG_ELEMENT_ID__=MA,h})();function MA(h){return function $_(h,m,g){if(Un(h)&&!g){const _=Ni(h.index,m);return new ul(_,_)}return 47&h.type?new ul(m[16],m):null}(Yt(),be(),16==(16&h))}class RA{constructor(){}supports(m){return Rn(m)}create(m){return new bS(m)}}const _S=(h,m)=>m;class bS{constructor(m){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=m||_S}forEachItem(m){let g;for(g=this._itHead;null!==g;g=g._next)m(g)}forEachOperation(m){let g=this._itHead,_=this._removalsHead,C=0,w=null;for(;g||_;){const v=!_||g&&g.currentIndex{v=this._trackByFn(C,E),null!==g&&Object.is(g.trackById,v)?(_&&(g=this._verifyReinsertion(g,E,v,C)),Object.is(g.item,E)||this._addIdentityChange(g,E)):(g=this._mismatch(g,E,v,C),_=!0),g=g._next,C++}),this.length=C;return this._truncate(g),this.collection=m,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let m;for(m=this._previousItHead=this._itHead;null!==m;m=m._next)m._nextPrevious=m._next;for(m=this._additionsHead;null!==m;m=m._nextAdded)m.previousIndex=m.currentIndex;for(this._additionsHead=this._additionsTail=null,m=this._movesHead;null!==m;m=m._nextMoved)m.previousIndex=m.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(m,g,_,C){let w;return null===m?w=this._itTail:(w=m._prev,this._remove(m)),null!==(m=null===this._unlinkedRecords?null:this._unlinkedRecords.get(_,null))?(Object.is(m.item,g)||this._addIdentityChange(m,g),this._reinsertAfter(m,w,C)):null!==(m=null===this._linkedRecords?null:this._linkedRecords.get(_,C))?(Object.is(m.item,g)||this._addIdentityChange(m,g),this._moveAfter(m,w,C)):m=this._addAfter(new CS(g,_),w,C),m}_verifyReinsertion(m,g,_,C){let w=null===this._unlinkedRecords?null:this._unlinkedRecords.get(_,null);return null!==w?m=this._reinsertAfter(w,m._prev,C):m.currentIndex!=C&&(m.currentIndex=C,this._addToMoves(m,C)),m}_truncate(m){for(;null!==m;){const g=m._next;this._addToRemovals(this._unlink(m)),m=g}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(m,g,_){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(m);const C=m._prevRemoved,w=m._nextRemoved;return null===C?this._removalsHead=w:C._nextRemoved=w,null===w?this._removalsTail=C:w._prevRemoved=C,this._insertAfter(m,g,_),this._addToMoves(m,_),m}_moveAfter(m,g,_){return this._unlink(m),this._insertAfter(m,g,_),this._addToMoves(m,_),m}_addAfter(m,g,_){return this._insertAfter(m,g,_),this._additionsTail=null===this._additionsTail?this._additionsHead=m:this._additionsTail._nextAdded=m,m}_insertAfter(m,g,_){const C=null===g?this._itHead:g._next;return m._next=C,m._prev=g,null===C?this._itTail=m:C._prev=m,null===g?this._itHead=m:g._next=m,null===this._linkedRecords&&(this._linkedRecords=new Rp),this._linkedRecords.put(m),m.currentIndex=_,m}_remove(m){return this._addToRemovals(this._unlink(m))}_unlink(m){null!==this._linkedRecords&&this._linkedRecords.remove(m);const g=m._prev,_=m._next;return null===g?this._itHead=_:g._next=_,null===_?this._itTail=g:_._prev=g,m}_addToMoves(m,g){return m.previousIndex===g||(this._movesTail=null===this._movesTail?this._movesHead=m:this._movesTail._nextMoved=m),m}_addToRemovals(m){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Rp),this._unlinkedRecords.put(m),m.currentIndex=null,m._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=m,m._prevRemoved=null):(m._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=m),m}_addIdentityChange(m,g){return m.item=g,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=m:this._identityChangesTail._nextIdentityChange=m,m}}class CS{constructor(m,g){this.item=m,this.trackById=g,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 IA{constructor(){this._head=null,this._tail=null}add(m){null===this._head?(this._head=this._tail=m,m._nextDup=null,m._prevDup=null):(this._tail._nextDup=m,m._prevDup=this._tail,m._nextDup=null,this._tail=m)}get(m,g){let _;for(_=this._head;null!==_;_=_._nextDup)if((null===g||g<=_.currentIndex)&&Object.is(_.trackById,m))return _;return null}remove(m){const g=m._prevDup,_=m._nextDup;return null===g?this._head=_:g._nextDup=_,null===_?this._tail=g:_._prevDup=g,null===this._head}}class Rp{constructor(){this.map=new Map}put(m){const g=m.trackById;let _=this.map.get(g);_||(_=new IA,this.map.set(g,_)),_.add(m)}get(m,g){const C=this.map.get(m);return C?C.get(m,g):null}remove(m){const g=m.trackById;return this.map.get(g).remove(m)&&this.map.delete(g),m}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Z_(h,m,g){const _=h.previousIndex;if(null===_)return _;let C=0;return g&&_{if(g&&g.key===C)this._maybeAddToChanges(g,_),this._appendAfter=g,g=g._next;else{const w=this._getOrCreateRecordForKey(C,_);g=this._insertBeforeOrAppend(g,w)}}),g){g._prev&&(g._prev._next=null),this._removalsHead=g;for(let _=g;null!==_;_=_._nextRemoved)_===this._mapHead&&(this._mapHead=null),this._records.delete(_.key),_._nextRemoved=_._next,_.previousValue=_.currentValue,_.currentValue=null,_._prev=null,_._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(m,g){if(m){const _=m._prev;return g._next=m,g._prev=_,m._prev=g,_&&(_._next=g),m===this._mapHead&&(this._mapHead=g),this._appendAfter=m,m}return this._appendAfter?(this._appendAfter._next=g,g._prev=this._appendAfter):this._mapHead=g,this._appendAfter=g,null}_getOrCreateRecordForKey(m,g){if(this._records.has(m)){const C=this._records.get(m);this._maybeAddToChanges(C,g);const w=C._prev,v=C._next;return w&&(w._next=v),v&&(v._prev=w),C._next=null,C._prev=null,C}const _=new kA(m);return this._records.set(m,_),_.currentValue=g,this._addToAdditions(_),_}_reset(){if(this.isDirty){let m;for(this._previousMapHead=this._mapHead,m=this._previousMapHead;null!==m;m=m._next)m._nextPrevious=m._next;for(m=this._changesHead;null!==m;m=m._nextChanged)m.previousValue=m.currentValue;for(m=this._additionsHead;null!=m;m=m._nextAdded)m.previousValue=m.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(m,g){Object.is(g,m.currentValue)||(m.previousValue=m.currentValue,m.currentValue=g,this._addToChanges(m))}_addToAdditions(m){null===this._additionsHead?this._additionsHead=this._additionsTail=m:(this._additionsTail._nextAdded=m,this._additionsTail=m)}_addToChanges(m){null===this._changesHead?this._changesHead=this._changesTail=m:(this._changesTail._nextChanged=m,this._changesTail=m)}_forEach(m,g){m instanceof Map?m.forEach(g):Object.keys(m).forEach(_=>g(m[_],_))}}class kA{constructor(m){this.key=m,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function X_(){return new Bd([new RA])}let Bd=(()=>{class h{constructor(g){this.factories=g}static create(g,_){if(null!=_){const C=_.factories.slice();g=g.concat(C)}return new h(g)}static extend(g){return{provide:h,useFactory:_=>h.create(g,_||X_()),deps:[[h,new qs,new Ra]]}}find(g){const _=this.factories.find(C=>C.supports(g));if(null!=_)return _;throw new ie(901,!1)}}return h.\u0275prov=xt({token:h,providedIn:"root",factory:X_}),h})();function BA(){return new Vd([new Ip])}let Vd=(()=>{class h{constructor(g){this.factories=g}static create(g,_){if(_){const C=_.factories.slice();g=g.concat(C)}return new h(g)}static extend(g){return{provide:h,useFactory:_=>h.create(g,_||BA()),deps:[[h,new qs,new Ra]]}}find(g){const _=this.factories.find(C=>C.supports(g));if(_)return _;throw new ie(901,!1)}}return h.\u0275prov=xt({token:h,providedIn:"root",factory:BA}),h})();const kp=_s(null,"core",[]);let LA=(()=>{class h{constructor(g){}}return h.\u0275fac=function(g){return new(g||h)(Kt(Tp))},h.\u0275mod=Or({type:h}),h.\u0275inj=li({}),h})();function Bp(h){return"boolean"==typeof h?h:null!=h&&"false"!==h}},1214:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Ct:()=>OAuthService,Hy:()=>OAuthStorage,zr:()=>OAuthModule});var _home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5861),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(4650),_angular_common__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(6895),_angular_common_http__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(529),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(7579),rxjs__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(9646),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(2076),rxjs__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(102),rxjs__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(2843),rxjs__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(9841),rxjs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(6451),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(9300),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(8505),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(8372),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(1005),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(3900),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(4004),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(590),rxjs_operators__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(262),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(7414),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(5698),rxjs_operators__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(5577),fast_sha256__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1302);class DateTimeProvider{}let SystemDateTimeProvider=(()=>{class F extends DateTimeProvider{now(){return Date.now()}new(){return new Date}}return F.\u0275fac=function(){let j;return function(T){return(j||(j=_angular_core__WEBPACK_IMPORTED_MODULE_1__.n5z(F)))(T||F)}}(),F.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:F,factory:F.\u0275fac}),F})();class LoginOptions{constructor(){this.disableNonceCheck=!1,this.preventClearHashAfterLogin=!1}}class OAuthLogger{}class OAuthStorage{}let MemoryStorage=(()=>{class F{constructor(){this.data=new Map}getItem(x){return this.data.get(x)}removeItem(x){this.data.delete(x)}setItem(x,T){this.data.set(x,T)}}return F.\u0275fac=function(x){return new(x||F)},F.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:F,factory:F.\u0275fac}),F})();class ReceivedTokens{}class OAuthEvent{constructor(j){this.type=j}}class OAuthSuccessEvent extends OAuthEvent{constructor(j,x=null){super(j),this.info=x}}class OAuthInfoEvent extends OAuthEvent{constructor(j,x=null){super(j),this.info=x}}class OAuthErrorEvent extends OAuthEvent{constructor(j,x,T=null){super(j),this.reason=x,this.params=T}}function b64DecodeUnicode(F){const j=F.replace(/\-/g,"+").replace(/\_/g,"/");return decodeURIComponent(atob(j).split("").map(function(x){return"%"+("00"+x.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function base64UrlEncode(F){return btoa(F).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}class AuthConfig{constructor(j){this.clientId="",this.redirectUri="",this.postLogoutRedirectUri="",this.redirectUriAsPostLogoutRedirectUriFallback=!0,this.loginUrl="",this.scope="openid profile",this.resource="",this.rngUrl="",this.oidc=!0,this.requestAccessToken=!0,this.options=null,this.issuer="",this.logoutUrl="",this.clearHashAfterLogin=!0,this.tokenEndpoint=null,this.revocationEndpoint=null,this.customTokenParameters=[],this.userinfoEndpoint=null,this.responseType="",this.showDebugInformation=!1,this.silentRefreshRedirectUri="",this.silentRefreshMessagePrefix="",this.silentRefreshShowIFrame=!1,this.siletRefreshTimeout=2e4,this.silentRefreshTimeout=2e4,this.dummyClientSecret=null,this.requireHttps="remoteOnly",this.strictDiscoveryDocumentValidation=!0,this.jwks=null,this.customQueryParams=null,this.silentRefreshIFrameName="angular-oauth-oidc-silent-refresh-iframe",this.timeoutFactor=.75,this.sessionChecksEnabled=!1,this.sessionCheckIntervall=3e3,this.sessionCheckIFrameUrl=null,this.sessionCheckIFrameName="angular-oauth-oidc-check-session-iframe",this.disableAtHashCheck=!1,this.skipSubjectCheck=!1,this.useIdTokenHintForSilentRefresh=!1,this.skipIssuerCheck=!1,this.nonceStateSeparator=";",this.useHttpBasicAuth=!1,this.waitForTokenInMsec=0,this.disablePKCE=!1,this.preserveRequestedRoute=!1,this.openUri=x=>{location.href=x},j&&Object.assign(this,j)}}class WebHttpUrlEncodingCodec{encodeKey(j){return encodeURIComponent(j)}encodeValue(j){return encodeURIComponent(j)}decodeKey(j){return decodeURIComponent(j)}decodeValue(j){return decodeURIComponent(j)}}class ValidationHandler{}class AbstractValidationHandler{validateAtHash(j){var x=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){let T=x.inferHashAlgorithm(j.idTokenHeader),p=yield x.calcHash(j.accessToken,T),O=base64UrlEncode(p.substr(0,p.length/2)),I=j.idTokenClaims.at_hash.replace(/=/g,"");return O!==I&&(console.error("exptected at_hash: "+O),console.error("actual at_hash: "+I)),O===I})()}inferHashAlgorithm(j){let x=j.alg;if(!x.match(/^.S[0-9]{3}$/))throw new Error("Algorithm not supported: "+x);return"sha-"+x.substr(2)}}let UrlHelperService=(()=>{class F{getHashFragmentParams(x){let T=x||window.location.hash;if(T=decodeURIComponent(T),0!==T.indexOf("#"))return{};const p=T.indexOf("?");return T=T.substr(p>-1?p+1:1),this.parseQueryString(T)}parseQueryString(x){const T={};let p,B,O,I,N,W,Q;if(null===x)return T;p=x.split("&");for(let G=0;G>6,B[I++]=128|63&N):N<55296||N>=57344?(B[I++]=224|N>>12,B[I++]=128|N>>6&63,B[I++]=128|63&N):(N=65536+((1023&N)<<10|1023&F.charCodeAt(++T)),B[I++]=240|N>>18,B[I++]=128|N>>12&63,B[I++]=128|N>>6&63,B[I++]=128|63&N);F=B}else{if("object"!==p)throw new Error(ERROR);if(null===F)throw new Error(ERROR);if(ARRAY_BUFFER&&F.constructor===ArrayBuffer)F=new Uint8Array(F);else if(!(Array.isArray(F)||ARRAY_BUFFER&&ArrayBuffer.isView(F)))throw new Error(ERROR)}F.length>64&&(F=new Sha256(j,!0).update(F).array());var W=[],Q=[];for(T=0;T<64;++T){var G=F[T]||0;W[T]=92^G,Q[T]=54^G}Sha256.call(this,j,x),this.update(Q),this.oKeyPad=W,this.inner=!0,this.sharedMemory=x}Sha256.prototype.update=function(F){if(!this.finalized){var j,x=typeof F;if("string"!==x){if("object"!==x)throw new Error(ERROR);if(null===F)throw new Error(ERROR);if(ARRAY_BUFFER&&F.constructor===ArrayBuffer)F=new Uint8Array(F);else if(!(Array.isArray(F)||ARRAY_BUFFER&&ArrayBuffer.isView(F)))throw new Error(ERROR);j=!0}for(var T,B,p=0,O=F.length,I=this.blocks;p>2]|=F[p]<>2]|=T<>2]|=(192|T>>6)<>2]|=(128|63&T)<=57344?(I[B>>2]|=(224|T>>12)<>2]|=(128|T>>6&63)<>2]|=(128|63&T)<>2]|=(240|T>>18)<>2]|=(128|T>>12&63)<>2]|=(128|T>>6&63)<>2]|=(128|63&T)<=64?(this.block=I[16],this.start=B-64,this.hash(),this.hashed=!0):this.start=B}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var F=this.blocks,j=this.lastByteIndex;F[16]=this.block,F[j>>2]|=EXTRA[3&j],this.block=F[16],j>=56&&(this.hashed||this.hash(),F[0]=this.block,F[16]=F[1]=F[2]=F[3]=F[4]=F[5]=F[6]=F[7]=F[8]=F[9]=F[10]=F[11]=F[12]=F[13]=F[14]=F[15]=0),F[14]=this.hBytes<<3|this.bytes>>>29,F[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var W,U,X,ie,de,he,F=this.h0,j=this.h1,x=this.h2,T=this.h3,p=this.h4,B=this.h5,O=this.h6,I=this.h7,N=this.blocks;for(W=16;W<64;++W)N[W]=N[W-16]+(((U=N[W-15])>>>7|U<<25)^(U>>>18|U<<14)^U>>>3)+N[W-7]+(((U=N[W-2])>>>17|U<<15)^(U>>>19|U<<13)^U>>>10)<<0;for(he=j&x,W=0;W<64;W+=4)this.first?(this.is224?(X=300032,I=(U=N[0]-1413257819)-150054599<<0,T=U+24177077<<0):(X=704751109,I=(U=N[0]-210244248)-1521486534<<0,T=U+143694565<<0),this.first=!1):(I=T+(U=I+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+(p&B^~p&O)+K[W]+N[W])<<0,T=U+(((F>>>2|F<<30)^(F>>>13|F<<19)^(F>>>22|F<<10))+((X=F&j)^F&x^he))<<0),O=x+(U=O+((I>>>6|I<<26)^(I>>>11|I<<21)^(I>>>25|I<<7))+(I&p^~I&B)+K[W+1]+N[W+1])<<0,x=U+(((T>>>2|T<<30)^(T>>>13|T<<19)^(T>>>22|T<<10))+((ie=T&F)^T&j^X))<<0,B=j+(U=B+((O>>>6|O<<26)^(O>>>11|O<<21)^(O>>>25|O<<7))+(O&I^~O&p)+K[W+2]+N[W+2])<<0,j=U+(((x>>>2|x<<30)^(x>>>13|x<<19)^(x>>>22|x<<10))+((de=x&T)^x&F^ie))<<0,p=F+(U=p+((B>>>6|B<<26)^(B>>>11|B<<21)^(B>>>25|B<<7))+(B&O^~B&I)+K[W+3]+N[W+3])<<0,F=U+(((j>>>2|j<<30)^(j>>>13|j<<19)^(j>>>22|j<<10))+((he=j&x)^j&T^de))<<0;this.h0=this.h0+F<<0,this.h1=this.h1+j<<0,this.h2=this.h2+x<<0,this.h3=this.h3+T<<0,this.h4=this.h4+p<<0,this.h5=this.h5+B<<0,this.h6=this.h6+O<<0,this.h7=this.h7+I<<0},Sha256.prototype.hex=function(){this.finalize();var F=this.h0,j=this.h1,x=this.h2,T=this.h3,p=this.h4,B=this.h5,O=this.h6,I=this.h7,N=HEX_CHARS[F>>28&15]+HEX_CHARS[F>>24&15]+HEX_CHARS[F>>20&15]+HEX_CHARS[F>>16&15]+HEX_CHARS[F>>12&15]+HEX_CHARS[F>>8&15]+HEX_CHARS[F>>4&15]+HEX_CHARS[15&F]+HEX_CHARS[j>>28&15]+HEX_CHARS[j>>24&15]+HEX_CHARS[j>>20&15]+HEX_CHARS[j>>16&15]+HEX_CHARS[j>>12&15]+HEX_CHARS[j>>8&15]+HEX_CHARS[j>>4&15]+HEX_CHARS[15&j]+HEX_CHARS[x>>28&15]+HEX_CHARS[x>>24&15]+HEX_CHARS[x>>20&15]+HEX_CHARS[x>>16&15]+HEX_CHARS[x>>12&15]+HEX_CHARS[x>>8&15]+HEX_CHARS[x>>4&15]+HEX_CHARS[15&x]+HEX_CHARS[T>>28&15]+HEX_CHARS[T>>24&15]+HEX_CHARS[T>>20&15]+HEX_CHARS[T>>16&15]+HEX_CHARS[T>>12&15]+HEX_CHARS[T>>8&15]+HEX_CHARS[T>>4&15]+HEX_CHARS[15&T]+HEX_CHARS[p>>28&15]+HEX_CHARS[p>>24&15]+HEX_CHARS[p>>20&15]+HEX_CHARS[p>>16&15]+HEX_CHARS[p>>12&15]+HEX_CHARS[p>>8&15]+HEX_CHARS[p>>4&15]+HEX_CHARS[15&p]+HEX_CHARS[B>>28&15]+HEX_CHARS[B>>24&15]+HEX_CHARS[B>>20&15]+HEX_CHARS[B>>16&15]+HEX_CHARS[B>>12&15]+HEX_CHARS[B>>8&15]+HEX_CHARS[B>>4&15]+HEX_CHARS[15&B]+HEX_CHARS[O>>28&15]+HEX_CHARS[O>>24&15]+HEX_CHARS[O>>20&15]+HEX_CHARS[O>>16&15]+HEX_CHARS[O>>12&15]+HEX_CHARS[O>>8&15]+HEX_CHARS[O>>4&15]+HEX_CHARS[15&O];return this.is224||(N+=HEX_CHARS[I>>28&15]+HEX_CHARS[I>>24&15]+HEX_CHARS[I>>20&15]+HEX_CHARS[I>>16&15]+HEX_CHARS[I>>12&15]+HEX_CHARS[I>>8&15]+HEX_CHARS[I>>4&15]+HEX_CHARS[15&I]),N},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var F=this.h0,j=this.h1,x=this.h2,T=this.h3,p=this.h4,B=this.h5,O=this.h6,I=this.h7,N=[F>>24&255,F>>16&255,F>>8&255,255&F,j>>24&255,j>>16&255,j>>8&255,255&j,x>>24&255,x>>16&255,x>>8&255,255&x,T>>24&255,T>>16&255,T>>8&255,255&T,p>>24&255,p>>16&255,p>>8&255,255&p,B>>24&255,B>>16&255,B>>8&255,255&B,O>>24&255,O>>16&255,O>>8&255,255&O];return this.is224||N.push(I>>24&255,I>>16&255,I>>8&255,255&I),N},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var F=new ArrayBuffer(this.is224?28:32),j=new DataView(F);return j.setUint32(0,this.h0),j.setUint32(4,this.h1),j.setUint32(8,this.h2),j.setUint32(12,this.h3),j.setUint32(16,this.h4),j.setUint32(20,this.h5),j.setUint32(24,this.h6),this.is224||j.setUint32(28,this.h7),F},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var F=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(F),Sha256.prototype.finalize.call(this)}};var exports=createMethod();return exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),exports}const sha256=factory();class HashHandler{}function decodeUTF8(F){if("string"!=typeof F)throw new TypeError("expected string");var j,x=F,T=new Uint8Array(x.length);for(j=0;j{class F{calcHash(x,T){return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){return encodeUTF8(fast_sha256__WEBPACK_IMPORTED_MODULE_0__(decodeUTF8(x)))})()}toHashString2(x){let T="";for(let p of x)T+=String.fromCharCode(p);return T}toHashString(x){const T=new Uint8Array(x);let p="";for(let B of T)p+=String.fromCharCode(B);return p}}return F.\u0275fac=function(x){return new(x||F)},F.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:F,factory:F.\u0275fac}),F})(),OAuthService=(()=>{class F extends AuthConfig{constructor(x,T,p,B,O,I,N,W,Q,G){super(),this.ngZone=x,this.http=T,this.config=O,this.urlHelper=I,this.logger=N,this.crypto=W,this.dateTimeService=G,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.discoveryDocumentLoadedSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=Q,O||(O={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),B&&(this.tokenValidationHandler=B),O&&this.configure(O);try{p?this.setStorage(p):typeof sessionStorage<"u"&&this.setStorage(sessionStorage)}catch($){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",$)}if(this.checkLocalStorageAccessable()){const $=window?.navigator?.userAgent;($?.includes("MSIE ")||$?.includes("Trident"))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if(typeof window>"u")return!1;const x="test";try{return!(typeof window.localStorage>"u"||(localStorage.setItem(x,x),localStorage.removeItem(x),0))}catch{return!1}}configure(x){Object.assign(this,new AuthConfig,x),this.config=Object.assign({},new AuthConfig,x),this.sessionChecksEnabled&&this.setupSessionCheck(),this.configChanged()}configChanged(){this.setupRefreshTimer()}restartSessionChecksIfStillLoggedIn(){this.hasValidIdToken()&&this.initSessionCheck()}restartRefreshTimerIfStillLoggedIn(){this.setupExpirationTimers()}setupSessionCheck(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(x=>"token_received"===x.type)).subscribe(x=>{this.initSessionCheck()})}setupAutomaticSilentRefresh(x={},T,p=!0){let B=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(O=>{"token_received"===O.type?B=!0:"logout"===O.type&&(B=!1)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(O=>"token_expires"===O.type&&(null==T||"any"===T||O.info===T)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.b)(1e3)).subscribe(O=>{B&&this.refreshInternal(x,p).catch(I=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(x,T){return this.useSilentRefresh||"code"!==this.responseType?this.silentRefresh(x,T):this.refreshToken()}loadDiscoveryDocumentAndTryLogin(x=null){return this.loadDiscoveryDocument().then(T=>this.tryLogin(x))}loadDiscoveryDocumentAndLogin(x=null){return this.loadDiscoveryDocumentAndTryLogin(x=x||{}).then(T=>!(!this.hasValidIdToken()||!this.hasValidAccessToken())||(this.initLoginFlow("string"==typeof x.state?x.state:""),!1))}debug(...x){this.showDebugInformation&&this.logger.debug.apply(this.logger,x)}validateUrlFromDiscoveryDocument(x){const T=[],p=this.validateUrlForHttps(x),B=this.validateUrlAgainstIssuer(x);return p||T.push("https for all urls required. Also for urls received by discovery."),B||T.push("Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation."),T}validateUrlForHttps(x){if(!x)return!0;const T=x.toLowerCase();return!(!1!==this.requireHttps&&(!T.match(/^http:\/\/localhost($|[:\/])/)&&!T.match(/^http:\/\/localhost($|[:\/])/)||"remoteOnly"!==this.requireHttps))||T.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(x,T){if(!x)throw new Error(`'${T}' should not be null`);if(!this.validateUrlForHttps(x))throw new Error(`'${T}' must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).`)}validateUrlAgainstIssuer(x){return!this.strictDiscoveryDocumentValidation||!x||x.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){typeof window>"u"?this.debug("timer not supported on this plattform"):((this.hasValidIdToken()||this.hasValidAccessToken())&&(this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()),this.tokenReceivedSubscription&&this.tokenReceivedSubscription.unsubscribe(),this.tokenReceivedSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(x=>"token_received"===x.type)).subscribe(x=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()}))}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){const x=this.getAccessTokenExpiration(),T=this.getAccessTokenStoredAt(),p=this.calcTimeout(T,x);this.ngZone.runOutsideAngular(()=>{this.accessTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","access_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(p)).subscribe(B=>{this.ngZone.run(()=>{this.eventsSubject.next(B)})})})}setupIdTokenTimer(){const x=this.getIdTokenExpiration(),T=this.getIdTokenStoredAt(),p=this.calcTimeout(T,x);this.ngZone.runOutsideAngular(()=>{this.idTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","id_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(p)).subscribe(B=>{this.ngZone.run(()=>{this.eventsSubject.next(B)})})})}stopAutomaticRefresh(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.clearAutomaticRefreshTimer()}clearAccessTokenTimer(){this.accessTokenTimeoutSubscription&&this.accessTokenTimeoutSubscription.unsubscribe()}clearIdTokenTimer(){this.idTokenTimeoutSubscription&&this.idTokenTimeoutSubscription.unsubscribe()}clearAutomaticRefreshTimer(){this.automaticRefreshSubscription&&this.automaticRefreshSubscription.unsubscribe()}calcTimeout(x,T){const p=this.dateTimeService.now();return Math.max(0,(T-x)*this.timeoutFactor-(p-x))}setStorage(x){this._storage=x,this.configChanged()}loadDiscoveryDocument(x=null){return new Promise((T,p)=>{x||((x=this.issuer||"").endsWith("/")||(x+="/"),x+=".well-known/openid-configuration"),this.validateUrlForHttps(x)?this.http.get(x).subscribe(B=>{if(!this.validateDiscoveryDocument(B))return this.eventsSubject.next(new OAuthErrorEvent("discovery_document_validation_error",null)),void p("discovery_document_validation_error");this.loginUrl=B.authorization_endpoint,this.logoutUrl=B.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=B.grant_types_supported,this.issuer=B.issuer,this.tokenEndpoint=B.token_endpoint,this.userinfoEndpoint=B.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=B.jwks_uri,this.sessionCheckIFrameUrl=B.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(B),this.revocationEndpoint=B.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(O=>{const N=new OAuthSuccessEvent("discovery_document_loaded",{discoveryDocument:B,jwks:O});this.eventsSubject.next(N),T(N)}).catch(O=>{this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",O)),p(O)})},B=>{this.logger.error("error loading discovery document",B),this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",B)),p(B)}):p("issuer must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).")})}loadJwks(){return new Promise((x,T)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(p=>{this.jwks=p,this.eventsSubject.next(new OAuthSuccessEvent("discovery_document_loaded")),x(p)},p=>{this.logger.error("error loading jwks",p),this.eventsSubject.next(new OAuthErrorEvent("jwks_load_error",p)),T(p)}):x(null)})}validateDiscoveryDocument(x){let T;return this.skipIssuerCheck||x.issuer===this.issuer?(T=this.validateUrlFromDiscoveryDocument(x.authorization_endpoint),T.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",T),!1):(T=this.validateUrlFromDiscoveryDocument(x.end_session_endpoint),T.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",T),!1):(T=this.validateUrlFromDiscoveryDocument(x.token_endpoint),T.length>0&&this.logger.error("error validating token_endpoint in discovery document",T),T=this.validateUrlFromDiscoveryDocument(x.revocation_endpoint),T.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",T),T=this.validateUrlFromDiscoveryDocument(x.userinfo_endpoint),T.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",T),!1):(T=this.validateUrlFromDiscoveryDocument(x.jwks_uri),T.length>0?(this.logger.error("error validating jwks_uri in discovery document",T),!1):(this.sessionChecksEnabled&&!x.check_session_iframe&&this.logger.warn("sessionChecksEnabled is activated but discovery document does not contain a check_session_iframe field"),!0))))):(this.logger.error("invalid issuer in discovery document","expected: "+this.issuer,"current: "+x.issuer),!1)}fetchTokenUsingPasswordFlowAndLoadUserProfile(x,T,p=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingPasswordFlow(x,T,p).then(()=>this.loadUserProfile())}loadUserProfile(){if(!this.hasValidAccessToken())throw new Error("Can not load User Profile without access_token");if(!this.validateUrlForHttps(this.userinfoEndpoint))throw new Error("userinfoEndpoint must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");return new Promise((x,T)=>{const p=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:p,observe:"response",responseType:"text"}).subscribe(B=>{if(this.debug("userinfo received",JSON.stringify(B)),B.headers.get("content-type").startsWith("application/json")){let O=JSON.parse(B.body);const I=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!I.sub||O.sub!==I.sub))return void T("if property oidc is true, the received user-id (sub) has to be the user-id of the user that has logged in with oidc.\nif you are not using oidc but just oauth2 password flow set oidc to false");O=Object.assign({},I,O),this._storage.setItem("id_token_claims_obj",JSON.stringify(O)),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),x({info:O})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),x(JSON.parse(B.body))},B=>{this.logger.error("error loading user info",B),this.eventsSubject.next(new OAuthErrorEvent("user_profile_load_error",B)),T(B)})})}fetchTokenUsingPasswordFlow(x,T,p=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingGrant("password",{username:x,password:T},p)}fetchTokenUsingGrant(x,T,p=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let B=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type",x).set("scope",this.scope);if(this.useHttpBasicAuth){const O=btoa(`${this.clientId}:${this.dummyClientSecret}`);p=p.set("Authorization","Basic "+O)}if(this.useHttpBasicAuth||(B=B.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(B=B.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const O of Object.getOwnPropertyNames(this.customQueryParams))B=B.set(O,this.customQueryParams[O]);for(const O of Object.keys(T))B=B.set(O,T[O]);return p=p.set("Content-Type","application/x-www-form-urlencoded"),new Promise((O,I)=>{this.http.post(this.tokenEndpoint,B,{headers:p}).subscribe(N=>{this.debug("tokenResponse",N),this.storeAccessTokenResponse(N.access_token,N.refresh_token,N.expires_in||this.fallbackAccessTokenExpirationTimeInSec,N.scope,this.extractRecognizedCustomParameters(N)),this.oidc&&N.id_token&&this.processIdToken(N.id_token,N.access_token).then(W=>{this.storeIdToken(W),O(N)}),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),O(N)},N=>{this.logger.error("Error performing ${grantType} flow",N),this.eventsSubject.next(new OAuthErrorEvent("token_error",N)),I(N)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((x,T)=>{let p=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","refresh_token").set("scope",this.scope).set("refresh_token",this._storage.getItem("refresh_token")),B=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const O=btoa(`${this.clientId}:${this.dummyClientSecret}`);B=B.set("Authorization","Basic "+O)}if(this.useHttpBasicAuth||(p=p.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(p=p.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const O of Object.getOwnPropertyNames(this.customQueryParams))p=p.set(O,this.customQueryParams[O]);this.http.post(this.tokenEndpoint,p,{headers:B}).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.w)(O=>O.id_token?(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.D)(this.processIdToken(O.id_token,O.access_token,!0)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(I=>this.storeIdToken(I)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(I=>O)):(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(O))).subscribe(O=>{this.debug("refresh tokenResponse",O),this.storeAccessTokenResponse(O.access_token,O.refresh_token,O.expires_in||this.fallbackAccessTokenExpirationTimeInSec,O.scope,this.extractRecognizedCustomParameters(O)),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),x(O)},O=>{this.logger.error("Error refreshing token",O),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",O)),T(O)})})}removeSilentRefreshEventListener(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}setupSilentRefreshEventListener(){this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=x=>{const T=this.processMessageEventMessage(x);this.tryLogin({customHashFragment:T,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri||this.redirectUri}).catch(p=>this.debug("tryLogin during silent refresh failed",p))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(x={},T=!0){const p=this.getIdentityClaims()||{};if(this.useIdTokenHintForSilentRefresh&&this.hasValidIdToken()&&(x.id_token_hint=this.getIdToken()),!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(typeof this.document>"u")throw new Error("silent refresh is not supported on this platform");const B=this.document.getElementById(this.silentRefreshIFrameName);B&&this.document.body.removeChild(B),this.silentRefreshSubject=p.sub;const O=this.document.createElement("iframe");O.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,T,x).then(G=>{O.setAttribute("src",G),this.silentRefreshShowIFrame||(O.style.display="none"),this.document.body.appendChild(O)});const N=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(G=>G instanceof OAuthErrorEvent),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),W=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(G=>"token_received"===G.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),Q=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthErrorEvent("silent_refresh_timeout",null)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(this.silentRefreshTimeout));return(0,rxjs__WEBPACK_IMPORTED_MODULE_14__.S)([N,W,Q]).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(G=>{if(G instanceof OAuthErrorEvent)throw"silent_refresh_timeout"===G.type||(G=new OAuthErrorEvent("silent_refresh_error",G)),this.eventsSubject.next(G),G;return"token_received"===G.type&&(G=new OAuthSuccessEvent("silently_refreshed"),this.eventsSubject.next(G)),G})).toPromise()}initImplicitFlowInPopup(x){return this.initLoginFlowInPopup(x)}initLoginFlowInPopup(x){return x=x||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(T=>new Promise((p,B)=>{let N,I=null;x.windowRef?x.windowRef&&!x.windowRef.closed&&(I=x.windowRef,I.location.href=T):I=window.open(T,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(x));const W=te=>{this.tryLogin({customHashFragment:te,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{G(),p(!0)},ne=>{G(),B(ne)})};I?N=window.setInterval(()=>{(!I||I.closed)&&(G(),B(new OAuthErrorEvent("popup_closed",{})))},500):B(new OAuthErrorEvent("popup_blocked",{}));const G=()=>{window.clearInterval(N),window.removeEventListener("storage",U),window.removeEventListener("message",$),null!==I&&I.close(),I=null},$=te=>{const ne=this.processMessageEventMessage(te);ne&&null!==ne?(window.removeEventListener("storage",U),W(ne)):console.log("false event firing")},U=te=>{"auth_hash"===te.key&&(window.removeEventListener("message",$),W(te.newValue))};window.addEventListener("message",$),window.addEventListener("storage",U)}))}calculatePopupFeatures(x){const T=x.height||470,p=x.width||500,B=window.screenLeft+(window.outerWidth-p)/2;return`location=no,toolbar=no,width=${p},height=${T},top=${window.screenTop+(window.outerHeight-T)/2},left=${B}`}processMessageEventMessage(x){let T="#";if(this.silentRefreshMessagePrefix&&(T+=this.silentRefreshMessagePrefix),!x||!x.data||"string"!=typeof x.data)return;const p=x.data;return p.startsWith(T)?"#"+p.substr(T.length):void 0}canPerformSessionCheck(){return!(!this.sessionChecksEnabled||(this.sessionCheckIFrameUrl?this.getSessionState()?typeof this.document>"u":(console.warn("sessionChecksEnabled is activated but there is no session_state"),1):(console.warn("sessionChecksEnabled is activated but there is no sessionCheckIFrameUrl"),1)))}setupSessionCheckEventListener(){this.removeSessionCheckEventListener(),this.sessionCheckEventListener=x=>{const T=x.origin.toLowerCase(),p=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),p.startsWith(T)){switch(x.data){case"unchanged":this.ngZone.run(()=>{this.handleSessionUnchanged()});break;case"changed":this.ngZone.run(()=>{this.handleSessionChange()});break;case"error":this.ngZone.run(()=>{this.handleSessionError()})}this.debug("got info from session check inframe",x)}else this.debug("sessionCheckEventListener","wrong origin",T,"expected",p,"event",x)},this.ngZone.runOutsideAngular(()=>{window.addEventListener("message",this.sessionCheckEventListener)})}handleSessionUnchanged(){this.debug("session check","session unchanged"),this.eventsSubject.next(new OAuthInfoEvent("session_unchanged"))}handleSessionChange(){this.eventsSubject.next(new OAuthInfoEvent("session_changed")),this.stopSessionCheckTimer(),this.useSilentRefresh||"code"!==this.responseType?this.silentRefreshRedirectUri?(this.silentRefresh().catch(x=>this.debug("silent refresh failed after session changed")),this.waitForSilentRefreshAfterSessionChange()):(this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)):this.refreshToken().then(x=>{this.debug("token refresh after session change worked")}).catch(x=>{this.debug("token refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)})}waitForSilentRefreshAfterSessionChange(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(x=>"silently_refreshed"===x.type||"silent_refresh_timeout"===x.type||"silent_refresh_error"===x.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()).subscribe(x=>{"silently_refreshed"!==x.type&&(this.debug("silent refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0))})}handleSessionError(){this.stopSessionCheckTimer(),this.eventsSubject.next(new OAuthInfoEvent("session_error"))}removeSessionCheckEventListener(){this.sessionCheckEventListener&&(window.removeEventListener("message",this.sessionCheckEventListener),this.sessionCheckEventListener=null)}initSessionCheck(){if(!this.canPerformSessionCheck())return;const x=this.document.getElementById(this.sessionCheckIFrameName);x&&this.document.body.removeChild(x);const T=this.document.createElement("iframe");T.id=this.sessionCheckIFrameName,this.setupSessionCheckEventListener(),T.setAttribute("src",this.sessionCheckIFrameUrl),T.style.display="none",this.document.body.appendChild(T),this.startSessionCheckTimer()}startSessionCheckTimer(){this.stopSessionCheckTimer(),this.ngZone.runOutsideAngular(()=>{this.sessionCheckTimer=setInterval(this.checkSession.bind(this),this.sessionCheckIntervall)})}stopSessionCheckTimer(){this.sessionCheckTimer&&(clearInterval(this.sessionCheckTimer),this.sessionCheckTimer=null)}checkSession(){const x=this.document.getElementById(this.sessionCheckIFrameName);x||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);const T=this.getSessionState();T||this.stopSessionCheckTimer(),x.contentWindow.postMessage(this.clientId+" "+T,this.issuer)}createLoginUrl(x="",T="",p="",B=!1,O={}){var I=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const N=I;let W;W=p||I.redirectUri;const Q=yield I.createAndSaveNonce();if(x=x?Q+I.config.nonceStateSeparator+encodeURIComponent(x):Q,!I.requestAccessToken&&!I.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");I.responseType=I.config.responseType?I.config.responseType:I.oidc&&I.requestAccessToken?"id_token token":I.oidc&&!I.requestAccessToken?"id_token":"token";const G=N.loginUrl.indexOf("?")>-1?"&":"?";let $=N.scope;I.oidc&&!$.match(/(^|\s)openid($|\s)/)&&($="openid "+$);let U=N.loginUrl+G+"response_type="+encodeURIComponent(N.responseType)+"&client_id="+encodeURIComponent(N.clientId)+"&state="+encodeURIComponent(x)+"&redirect_uri="+encodeURIComponent(W)+"&scope="+encodeURIComponent($);if(I.responseType.includes("code")&&!I.disablePKCE){const[te,ne]=yield I.createChallangeVerifierPairForPKCE();I.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("PKCE_verifier",ne):I._storage.setItem("PKCE_verifier",ne),U+="&code_challenge="+te,U+="&code_challenge_method=S256"}T&&(U+="&login_hint="+encodeURIComponent(T)),N.resource&&(U+="&resource="+encodeURIComponent(N.resource)),N.oidc&&(U+="&nonce="+encodeURIComponent(Q)),B&&(U+="&prompt=none");for(const te of Object.keys(O))U+="&"+encodeURIComponent(te)+"="+encodeURIComponent(O[te]);if(I.customQueryParams)for(const te of Object.getOwnPropertyNames(I.customQueryParams))U+="&"+te+"="+encodeURIComponent(I.customQueryParams[te]);return U})()}initImplicitFlowInternal(x="",T=""){if(this.inImplicitFlow)return;if(this.inImplicitFlow=!0,!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let p={},B=null;"string"==typeof T?B=T:"object"==typeof T&&(p=T),this.createLoginUrl(x,B,null,!1,p).then(this.config.openUri).catch(O=>{console.error("Error in initImplicitFlow",O),this.inImplicitFlow=!1})}initImplicitFlow(x="",T=""){""!==this.loginUrl?this.initImplicitFlowInternal(x,T):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(p=>"discovery_document_loaded"===p.type)).subscribe(p=>this.initImplicitFlowInternal(x,T))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(x){const T=this;if(x.onTokenReceived){const p={idClaims:T.getIdentityClaims(),idToken:T.getIdToken(),accessToken:T.getAccessToken(),state:T.state};x.onTokenReceived(p)}}storeAccessTokenResponse(x,T,p,B,O){if(this._storage.setItem("access_token",x),B&&!Array.isArray(B)?this._storage.setItem("granted_scopes",JSON.stringify(B.split(" "))):B&&Array.isArray(B)&&this._storage.setItem("granted_scopes",JSON.stringify(B)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),p){const I=1e3*p,W=this.dateTimeService.new().getTime()+I;this._storage.setItem("expires_at",""+W)}T&&this._storage.setItem("refresh_token",T),O&&O.forEach((I,N)=>{this._storage.setItem(N,I)})}tryLogin(x=null){return"code"===this.config.responseType?this.tryLoginCodeFlow(x).then(T=>!0):this.tryLoginImplicitFlow(x)}parseQueryString(x){return x&&0!==x.length?("?"===x.charAt(0)&&(x=x.substr(1)),this.urlHelper.parseQueryString(x)):{}}tryLoginCodeFlow(x=null){var T=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const p=(x=x||{}).customHashFragment?x.customHashFragment.substring(1):window.location.search,B=T.getCodePartsFromUrl(p),O=B.code,I=B.state,N=B.session_state;if(!x.preventClearHashAfterLogin){const G=location.origin+location.pathname+location.search.replace(/code=[^&\$]*/,"").replace(/scope=[^&\$]*/,"").replace(/state=[^&\$]*/,"").replace(/session_state=[^&\$]*/,"").replace(/^\?&/,"?").replace(/&$/,"").replace(/^\?$/,"").replace(/&+/g,"&").replace(/\?&/,"?").replace(/\?$/,"")+location.hash;history.replaceState(null,window.name,G)}let[W,Q]=T.parseState(I);if(T.state=Q,B.error){T.debug("error trying to login"),T.handleLoginError(x,B);const G=new OAuthErrorEvent("code_error",{},B);return T.eventsSubject.next(G),Promise.reject(G)}if(!x.disableNonceCheck){if(!W)return T.saveRequestedRoute(),Promise.resolve();if(!x.disableOAuth2StateCheck&&!T.validateNonce(W)){const $=new OAuthErrorEvent("invalid_nonce_in_state",null);return T.eventsSubject.next($),Promise.reject($)}return T.storeSessionState(N),O&&(yield T.getTokenFromCode(O,x),T.restoreRequestedRoute()),Promise.resolve()}return Promise.reject()})()}saveRequestedRoute(){this.config.preserveRequestedRoute&&this._storage.setItem("requested_route",window.location.pathname+window.location.search)}restoreRequestedRoute(){const x=this._storage.getItem("requested_route");x&&history.replaceState(null,"",window.location.origin+x)}getCodePartsFromUrl(x){return x&&0!==x.length?("?"===x.charAt(0)&&(x=x.substr(1)),this.urlHelper.parseQueryString(x)):this.urlHelper.getHashFragmentParams()}getTokenFromCode(x,T){let p=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","authorization_code").set("code",x).set("redirect_uri",T.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let B;B=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("PKCE_verifier"):this._storage.getItem("PKCE_verifier"),B?p=p.set("code_verifier",B):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(p,T)}fetchAndProcessToken(x,T){T=T||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let p=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const B=btoa(`${this.clientId}:${this.dummyClientSecret}`);p=p.set("Authorization","Basic "+B)}return this.useHttpBasicAuth||(x=x.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(x=x.set("client_secret",this.dummyClientSecret)),new Promise((B,O)=>{if(this.customQueryParams)for(let I of Object.getOwnPropertyNames(this.customQueryParams))x=x.set(I,this.customQueryParams[I]);this.http.post(this.tokenEndpoint,x,{headers:p}).subscribe(I=>{this.debug("refresh tokenResponse",I),this.storeAccessTokenResponse(I.access_token,I.refresh_token,I.expires_in||this.fallbackAccessTokenExpirationTimeInSec,I.scope,this.extractRecognizedCustomParameters(I)),this.oidc&&I.id_token?this.processIdToken(I.id_token,I.access_token,T.disableNonceCheck).then(N=>{this.storeIdToken(N),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),B(I)}).catch(N=>{this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",N)),console.error("Error validating tokens"),console.error(N),O(N)}):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),B(I))},I=>{console.error("Error getting token",I),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",I)),O(I)})})}tryLoginImplicitFlow(x=null){let T;T=(x=x||{}).customHashFragment?this.urlHelper.getHashFragmentParams(x.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",T);const p=T.state;let[B,O]=this.parseState(p);if(this.state=O,T.error){this.debug("error trying to login"),this.handleLoginError(x,T);const G=new OAuthErrorEvent("token_error",{},T);return this.eventsSubject.next(G),Promise.reject(G)}const I=T.access_token,N=T.id_token,W=T.session_state,Q=T.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!I||this.requestAccessToken&&!x.disableOAuth2StateCheck&&!p||this.oidc&&!N)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!W&&this.logger.warn("session checks (Session Status Change Notification) were activated in the configuration but the id_token does not contain a session_state claim"),this.requestAccessToken&&!x.disableNonceCheck&&!this.validateNonce(B)){const $=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next($),Promise.reject($)}return this.requestAccessToken&&this.storeAccessTokenResponse(I,null,T.expires_in||this.fallbackAccessTokenExpirationTimeInSec,Q),this.oidc?this.processIdToken(N,I,x.disableNonceCheck).then(G=>x.validationHandler?x.validationHandler({accessToken:I,idClaims:G.idTokenClaims,idToken:G.idToken,state:p}).then($=>G):G).then(G=>(this.storeIdToken(G),this.storeSessionState(W),this.clearHashAfterLogin&&!x.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.callOnTokenReceivedIfExists(x),this.inImplicitFlow=!1,!0)).catch(G=>(this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",G)),this.logger.error("Error validating tokens"),this.logger.error(G),Promise.reject(G))):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.clearHashAfterLogin&&!x.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(x),Promise.resolve(!0))}parseState(x){let T=x,p="";if(x){const B=x.indexOf(this.config.nonceStateSeparator);B>-1&&(T=x.substr(0,B),p=x.substr(B+this.config.nonceStateSeparator.length))}return[T,p]}validateNonce(x){let T;return T=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),T===x||(console.error("Validating access_token failed, wrong state/nonce.",T,x),!1)}storeIdToken(x){this._storage.setItem("id_token",x.idToken),this._storage.setItem("id_token_claims_obj",x.idTokenClaimsJson),this._storage.setItem("id_token_expires_at",""+x.idTokenExpiresAt),this._storage.setItem("id_token_stored_at",""+this.dateTimeService.now())}storeSessionState(x){this._storage.setItem("session_state",x)}getSessionState(){return this._storage.getItem("session_state")}handleLoginError(x,T){x.onLoginError&&x.onLoginError(T),this.clearHashAfterLogin&&!x.preventClearHashAfterLogin&&this.clearLocationHash()}getClockSkewInMsec(x=6e5){return this.clockSkewInSec?1e3*this.clockSkewInSec:x}processIdToken(x,T,p=!1){const B=x.split("."),I=b64DecodeUnicode(this.padBase64(B[0])),N=JSON.parse(I),Q=b64DecodeUnicode(this.padBase64(B[1])),G=JSON.parse(Q);let $;if($=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Array.isArray(G.aud)){if(G.aud.every(de=>de!==this.clientId)){const de="Wrong audience: "+G.aud.join(",");return this.logger.warn(de),Promise.reject(de)}}else if(G.aud!==this.clientId){const de="Wrong audience: "+G.aud;return this.logger.warn(de),Promise.reject(de)}if(!G.sub){const de="No sub claim in id_token";return this.logger.warn(de),Promise.reject(de)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==G.sub){const de=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${G.sub}`;return this.logger.warn(de),Promise.reject(de)}if(!G.iat){const de="No iat claim in id_token";return this.logger.warn(de),Promise.reject(de)}if(!this.skipIssuerCheck&&G.iss!==this.issuer){const de="Wrong issuer: "+G.iss;return this.logger.warn(de),Promise.reject(de)}if(!p&&G.nonce!==$){const de="Wrong nonce: "+G.nonce;return this.logger.warn(de),Promise.reject(de)}if(this.hasOwnProperty("responseType")&&("code"===this.responseType||"id_token"===this.responseType)&&(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!G.at_hash){const de="An at_hash is needed!";return this.logger.warn(de),Promise.reject(de)}const U=this.dateTimeService.now(),te=1e3*G.iat,ne=1e3*G.exp,X=this.getClockSkewInMsec();if(te-X>=U||ne+X<=U){const de="Token has expired";return console.error(de),console.error({now:U,issuedAtMSec:te,expiresAtMSec:ne}),Promise.reject(de)}const ie={accessToken:T,idToken:x,jwks:this.jwks,idTokenClaims:G,idTokenHeader:N,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(ie).then(de=>({idToken:x,idTokenClaims:G,idTokenClaimsJson:Q,idTokenHeader:N,idTokenHeaderJson:I,idTokenExpiresAt:ne})):this.checkAtHash(ie).then(de=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!de){const he="Wrong at_hash";return this.logger.warn(he),Promise.reject(he)}return this.checkSignature(ie).then(he=>{const Ve={idToken:x,idTokenClaims:G,idTokenClaimsJson:Q,idTokenHeader:N,idTokenHeaderJson:I,idTokenExpiresAt:ne};return this.disableAtHashCheck?Ve:this.checkAtHash(ie).then(Le=>{if(this.requestAccessToken&&!Le){const we="Wrong at_hash";return this.logger.warn(we),Promise.reject(we)}return Ve})})})}getIdentityClaims(){const x=this._storage.getItem("id_token_claims_obj");return x?JSON.parse(x):null}getGrantedScopes(){const x=this._storage.getItem("granted_scopes");return x?JSON.parse(x):null}getIdToken(){return this._storage?this._storage.getItem("id_token"):null}padBase64(x){for(;x.length%4!=0;)x+="=";return x}getAccessToken(){return this._storage?this._storage.getItem("access_token"):null}getRefreshToken(){return this._storage?this._storage.getItem("refresh_token"):null}getAccessTokenExpiration(){return this._storage.getItem("expires_at")?parseInt(this._storage.getItem("expires_at"),10):null}getAccessTokenStoredAt(){return parseInt(this._storage.getItem("access_token_stored_at"),10)}getIdTokenStoredAt(){return parseInt(this._storage.getItem("id_token_stored_at"),10)}getIdTokenExpiration(){return this._storage.getItem("id_token_expires_at")?parseInt(this._storage.getItem("id_token_expires_at"),10):null}hasValidAccessToken(){if(this.getAccessToken()){const x=this._storage.getItem("expires_at"),T=this.dateTimeService.new();return!(x&&parseInt(x,10)=0&&null!==this._storage.getItem(x)?JSON.parse(this._storage.getItem(x)):null}authorizationHeader(){return"Bearer "+this.getAccessToken()}logOut(x={},T=""){let p=!1;"boolean"==typeof x&&(p=x,x={});const B=this.getIdToken();if(this._storage.removeItem("access_token"),this._storage.removeItem("id_token"),this._storage.removeItem("refresh_token"),this.saveNoncesInLocalStorage?(localStorage.removeItem("nonce"),localStorage.removeItem("PKCE_verifier")):(this._storage.removeItem("nonce"),this._storage.removeItem("PKCE_verifier")),this._storage.removeItem("expires_at"),this._storage.removeItem("id_token_claims_obj"),this._storage.removeItem("id_token_expires_at"),this._storage.removeItem("id_token_stored_at"),this._storage.removeItem("access_token_stored_at"),this._storage.removeItem("granted_scopes"),this._storage.removeItem("session_state"),this.config.customTokenParameters&&this.config.customTokenParameters.forEach(I=>this._storage.removeItem(I)),this.silentRefreshSubject=null,this.eventsSubject.next(new OAuthInfoEvent("logout")),!this.logoutUrl||p||!B&&!this.postLogoutRedirectUri)return;let O;if(!this.validateUrlForHttps(this.logoutUrl))throw new Error("logoutUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(this.logoutUrl.indexOf("{{")>-1)O=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(B)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let I=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec});B&&(I=I.set("id_token_hint",B));const N=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";N&&(I=I.set("post_logout_redirect_uri",N),T&&(I=I.set("state",T)));for(let W in x)I=I.set(W,x[W]);O=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+I.toString()}this.config.openUri(O)}createAndSaveNonce(){const x=this;return this.createNonce().then(function(T){return x.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("nonce",T):x._storage.setItem("nonce",T),T})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();const x=this.document.getElementById(this.silentRefreshIFrameName);x&&x.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();const T=this.document.getElementById(this.sessionCheckIFrameName);T&&T.remove()}createNonce(){return new Promise(x=>{if(this.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");const T="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";let p=45,B="";const O=typeof self>"u"?null:self.crypto||self.msCrypto;if(O){let I=new Uint8Array(p);O.getRandomValues(I),I.map||(I.map=Array.prototype.map),I=I.map(N=>T.charCodeAt(N%T.length)),B=String.fromCharCode.apply(null,I)}else for(;0"discovery_document_loaded"===p.type)).subscribe(p=>this.initCodeFlowInternal(x,T))}initCodeFlowInternal(x="",T={}){if(!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let p={},B=null;"string"==typeof T?B=T:"object"==typeof T&&(p=T),this.createLoginUrl(x,B,null,!1,p).then(this.config.openUri).catch(O=>{console.error("Error in initAuthorizationCodeFlow"),console.error(O)})}createChallangeVerifierPairForPKCE(){var x=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){if(!x.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");const T=yield x.createNonce();return[base64UrlEncode(yield x.crypto.calcHash(T,"sha-256")),T]})()}extractRecognizedCustomParameters(x){let T=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(p=>{x[p]&&T.set(p,JSON.stringify(x[p]))}),T}revokeTokenAndLogout(x={},T=!1){let p=this.revocationEndpoint,B=this.getAccessToken(),O=this.getRefreshToken();if(!B)return;let I=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}),N=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const W=btoa(`${this.clientId}:${this.dummyClientSecret}`);N=N.set("Authorization","Basic "+W)}if(this.useHttpBasicAuth||(I=I.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(I=I.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const W of Object.getOwnPropertyNames(this.customQueryParams))I=I.set(W,this.customQueryParams[W]);return new Promise((W,Q)=>{let G,$;if(B){let U=I.set("token",B).set("token_type_hint","access_token");G=this.http.post(p,U,{headers:N})}else G=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);if(O){let U=I.set("token",O).set("token_type_hint","refresh_token");$=this.http.post(p,U,{headers:N})}else $=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);T&&(G=G.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(U=>0===U.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(U))),$=$.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(U=>0===U.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(U)))),(0,rxjs__WEBPACK_IMPORTED_MODULE_17__.a)([G,$]).subscribe(U=>{this.logOut(x),W(U),this.logger.info("Token successfully revoked")},U=>{this.logger.error("Error revoking token",U),this.eventsSubject.next(new OAuthErrorEvent("token_revoke_error",U)),Q(U)})})}clearLocationHash(){""!=location.hash&&(location.hash="")}}return F.\u0275fac=function(x){return new(x||F)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_core__WEBPACK_IMPORTED_MODULE_1__.R0b),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.eN),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthStorage,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(ValidationHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(AuthConfig,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(UrlHelperService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthLogger),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(HashHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common__WEBPACK_IMPORTED_MODULE_18__.K0),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(DateTimeProvider))},F.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:F,factory:F.\u0275fac}),F})();class OAuthModuleConfig{}class OAuthResourceServerConfig{}class OAuthResourceServerErrorHandler{}class OAuthNoopResourceServerErrorHandler{handleError(j){return(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(j)}}let DefaultOAuthInterceptor=(()=>{class F{constructor(x,T,p){this.oAuthService=x,this.errorHandler=T,this.moduleConfig=p}checkUrl(x){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(x):!this.moduleConfig.resourceServer.allowedUrls||!!this.moduleConfig.resourceServer.allowedUrls.find(T=>x.toLowerCase().startsWith(T.toLowerCase()))}intercept(x,T){const p=x.url.toLowerCase();return this.moduleConfig&&this.moduleConfig.resourceServer&&this.checkUrl(p)?this.moduleConfig.resourceServer.sendAccessToken?(0,rxjs__WEBPACK_IMPORTED_MODULE_19__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(this.oAuthService.getAccessToken()).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(O=>!!O)),this.oAuthService.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(O=>"token_received"===O.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.V)(this.oAuthService.waitForTokenInMsec||0),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(O=>(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(O=>this.oAuthService.getAccessToken()))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.q)(1),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_22__.z)(O=>{if(O){const N=x.headers.set("Authorization","Bearer "+O);x=x.clone({headers:N})}return T.handle(x).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(I=>this.errorHandler.handleError(I)))})):T.handle(x).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(O=>this.errorHandler.handleError(O))):T.handle(x)}}return F.\u0275fac=function(x){return new(x||F)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthResourceServerErrorHandler),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthModuleConfig,8))},F.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:F,factory:F.\u0275fac}),F})();class NullValidationHandler{validateSignature(j){return Promise.resolve(null)}validateAtHash(j){return Promise.resolve(!0)}}function createDefaultLogger(){return console}function createDefaultStorage(){return typeof sessionStorage<"u"?sessionStorage:new MemoryStorage}let OAuthModule=(()=>{class F{static forRoot(x=null,T=NullValidationHandler){return{ngModule:F,providers:[OAuthService,UrlHelperService,{provide:OAuthLogger,useFactory:createDefaultLogger},{provide:OAuthStorage,useFactory:createDefaultStorage},{provide:ValidationHandler,useClass:T},{provide:HashHandler,useClass:DefaultHashHandler},{provide:OAuthResourceServerErrorHandler,useClass:OAuthNoopResourceServerErrorHandler},{provide:OAuthModuleConfig,useValue:x},{provide:_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.TP,useClass:DefaultOAuthInterceptor,multi:!0},{provide:DateTimeProvider,useClass:SystemDateTimeProvider}]}}}return F.\u0275fac=function(x){return new(x||F)},F.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_1__.oAB({type:F}),F.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_1__.cJS({imports:[[_angular_common__WEBPACK_IMPORTED_MODULE_18__.ez]]}),F})();const err="PLEASE READ THIS CAREFULLY:\n\nBeginning with angular-oauth2-oidc version 9, the JwksValidationHandler\nhas been moved to an library of its own. If you need it for implementing\nOAuth2/OIDC **implicit flow**, please install it using npm:\n\n npm i angular-oauth2-oidc-jwks --save\n\nAfter that, you can import it into your application:\n\n import { JwksValidationHandler } from 'angular-oauth2-oidc-jwks';\n\nPlease note, that this dependency is not needed for the **code flow**,\nwhich is nowadays the **recommented** one for single page applications.\nThis also results in smaller bundle sizes.\n";class JwksValidationHandler extends NullValidationHandler{constructor(){super(),console.error(err)}}const AUTH_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_1__.OlP("AUTH_CONFIG")},5861:(F,j,x)=>{"use strict";function T(B,O,I,N,W,Q,G){try{var $=B[Q](G),U=$.value}catch(te){return void I(te)}$.done?O(U):Promise.resolve(U).then(N,W)}function p(B){return function(){var O=this,I=arguments;return new Promise(function(N,W){var Q=B.apply(O,I);function G(U){T(Q,N,W,G,$,"next",U)}function $(U){T(Q,N,W,G,$,"throw",U)}G(void 0)})}}x.d(j,{Z:()=>p})},4147:F=>{"use strict";F.exports={i8:"10.3.0"}}},F=>{F(F.s=442)}]); \ No newline at end of file diff --git a/dist/apps/linker/main.aeb14e30b29a8d44.js b/dist/apps/linker/main.aeb14e30b29a8d44.js new file mode 100644 index 000000000..9db3a48d8 --- /dev/null +++ b/dist/apps/linker/main.aeb14e30b29a8d44.js @@ -0,0 +1 @@ +(self.webpackChunklinker=self.webpackChunklinker||[]).push([[179],{6763:(N,z,E)=>{"use strict";var M=E(6895),_=E(4650);class L extends M.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class F extends L{static makeCurrent(){(0,M.HT)(new F)}onAndCancel(r,e,t){return r.addEventListener(e,t,!1),()=>{r.removeEventListener(e,t,!1)}}dispatchEvent(r,e){r.dispatchEvent(e)}remove(r){r.parentNode&&r.parentNode.removeChild(r)}createElement(r,e){return(e=e||this.getDefaultDocument()).createElement(r)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(r){return r.nodeType===Node.ELEMENT_NODE}isShadowRoot(r){return r instanceof DocumentFragment}getGlobalEventTarget(r,e){return"window"===e?window:"document"===e?r:"body"===e?r.body:null}getBaseHref(r){const e=function q(){return V=V||document.querySelector("base"),V?V.getAttribute("href"):null}();return null==e?null:function ee(o){Q=Q||document.createElement("a"),Q.setAttribute("href",o);const r=Q.pathname;return"/"===r.charAt(0)?r:`/${r}`}(e)}resetBaseElement(){V=null}getUserAgent(){return window.navigator.userAgent}getCookie(r){return(0,M.Mx)(document.cookie,r)}}let Q,V=null;const W=new _.OlP("TRANSITION_ID"),G=[{provide:_.ip1,useFactory:function Y(o,r,e){return()=>{e.get(_.CZH).donePromise.then(()=>{const t=(0,M.q)(),s=r.querySelectorAll(`style[ng-transition="${o}"]`);for(let u=0;u{class o{build(){return new XMLHttpRequest}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac}),o})();const ie=new _.OlP("EventManagerPlugins");let ae=(()=>{class o{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(s=>s.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,s){return this._findPluginFor(t).addEventListener(e,t,s)}addGlobalEventListener(e,t,s){return this._findPluginFor(t).addGlobalEventListener(e,t,s)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const s=this._plugins;for(let u=0;u{class o{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(s=>{this._stylesSet.has(s)||(this._stylesSet.add(s),t.add(s))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac}),o})(),be=(()=>{class o extends fe{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,t,s){e.forEach(u=>{const d=this._doc.createElement("style");d.textContent=u,s.push(t.appendChild(d))})}addHost(e){const t=[];this._addStylesToHost(this._stylesSet,e,t),this._hostNodes.set(e,t)}removeHost(e){const t=this._hostNodes.get(e);t&&t.forEach(Le),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((t,s)=>{this._addStylesToHost(e,s,t)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(Le))}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(M.K0))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac}),o})();function Le(o){(0,M.q)().remove(o)}const Fe={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/",math:"http://www.w3.org/1998/MathML/"},Ae=/%COMP%/g;function le(o,r,e){for(let t=0;t{if("__ngUnwrap__"===r)return o;!1===o(r)&&(r.preventDefault(),r.returnValue=!1)}}let pe=(()=>{class o{constructor(e,t,s){this.eventManager=e,this.sharedStylesHost=t,this.appId=s,this.rendererByCompId=new Map,this.defaultRenderer=new Ve(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case _.ifc.Emulated:{let s=this.rendererByCompId.get(t.id);return s||(s=new Ht(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,s)),s.applyToHost(e),s}case 1:case _.ifc.ShadowDom:return new Ne(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const s=le(t.id,t.styles,[]);this.sharedStylesHost.addStyles(s),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(ae),_.LFG(be),_.LFG(_.AFp))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac}),o})();class Ve{constructor(r){this.eventManager=r,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(r,e){return e?document.createElementNS(Fe[e]||e,r):document.createElement(r)}createComment(r){return document.createComment(r)}createText(r){return document.createTextNode(r)}appendChild(r,e){(At(r)?r.content:r).appendChild(e)}insertBefore(r,e,t){r&&(At(r)?r.content:r).insertBefore(e,t)}removeChild(r,e){r&&r.removeChild(e)}selectRootElement(r,e){let t="string"==typeof r?document.querySelector(r):r;if(!t)throw new Error(`The selector "${r}" did not match any elements`);return e||(t.textContent=""),t}parentNode(r){return r.parentNode}nextSibling(r){return r.nextSibling}setAttribute(r,e,t,s){if(s){e=s+":"+e;const u=Fe[s];u?r.setAttributeNS(u,e,t):r.setAttribute(e,t)}else r.setAttribute(e,t)}removeAttribute(r,e,t){if(t){const s=Fe[t];s?r.removeAttributeNS(s,e):r.removeAttribute(`${t}:${e}`)}else r.removeAttribute(e)}addClass(r,e){r.classList.add(e)}removeClass(r,e){r.classList.remove(e)}setStyle(r,e,t,s){s&(_.JOm.DashCase|_.JOm.Important)?r.style.setProperty(e,t,s&_.JOm.Important?"important":""):r.style[e]=t}removeStyle(r,e,t){t&_.JOm.DashCase?r.style.removeProperty(e):r.style[e]=""}setProperty(r,e,t){r[e]=t}setValue(r,e){r.nodeValue=e}listen(r,e,t){return"string"==typeof r?this.eventManager.addGlobalEventListener(r,e,ce(t)):this.eventManager.addEventListener(r,e,ce(t))}}function At(o){return"TEMPLATE"===o.tagName&&void 0!==o.content}class Ht extends Ve{constructor(r,e,t,s){super(r),this.component=t;const u=le(s+"-"+t.id,t.styles,[]);e.addStyles(u),this.contentAttr=function Re(o){return"_ngcontent-%COMP%".replace(Ae,o)}(s+"-"+t.id),this.hostAttr=function He(o){return"_nghost-%COMP%".replace(Ae,o)}(s+"-"+t.id)}applyToHost(r){super.setAttribute(r,this.hostAttr,"")}createElement(r,e){const t=super.createElement(r,e);return super.setAttribute(t,this.contentAttr,""),t}}class Ne extends Ve{constructor(r,e,t,s){super(r),this.sharedStylesHost=e,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const u=le(s.id,s.styles,[]);for(let d=0;d{class o extends he{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,s){return e.addEventListener(t,s,!1),()=>this.removeEventListener(e,t,s)}removeEventListener(e,t,s){return e.removeEventListener(t,s)}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(M.K0))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac}),o})();const Nn=["alt","control","meta","shift"],St={"\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"},xn={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"},ci={alt:o=>o.altKey,control:o=>o.ctrlKey,meta:o=>o.metaKey,shift:o=>o.shiftKey};let Or=(()=>{class o extends he{constructor(e){super(e)}supports(e){return null!=o.parseEventName(e)}addEventListener(e,t,s){const u=o.parseEventName(t),d=o.eventCallback(u.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,M.q)().onAndCancel(e,u.domEventName,d))}static parseEventName(e){const t=e.toLowerCase().split("."),s=t.shift();if(0===t.length||"keydown"!==s&&"keyup"!==s)return null;const u=o._normalizeKey(t.pop());let d="";if(Nn.forEach(n=>{const i=t.indexOf(n);i>-1&&(t.splice(i,1),d+=n+".")}),d+=u,0!=t.length||0===u.length)return null;const l={};return l.domEventName=s,l.fullKey=d,l}static getEventFullKey(e){let t="",s=function Wl(o){let r=o.key;if(null==r){if(r=o.keyIdentifier,null==r)return"Unidentified";r.startsWith("U+")&&(r=String.fromCharCode(parseInt(r.substring(2),16)),3===o.location&&xn.hasOwnProperty(r)&&(r=xn[r]))}return St[r]||r}(e);return s=s.toLowerCase()," "===s?s="space":"."===s&&(s="dot"),Nn.forEach(u=>{u!=s&&(0,ci[u])(e)&&(t+=u+".")}),t+=s,t}static eventCallback(e,t,s){return u=>{o.getEventFullKey(u)===e&&s.runGuarded(()=>t(u))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(M.K0))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac}),o})();const Ke=(0,_.eFA)(_._c5,"browser",[{provide:_.Lbi,useValue:M.bD},{provide:_.g9A,useValue:function qn(){F.makeCurrent()},multi:!0},{provide:M.K0,useFactory:function ma(){return(0,_.RDi)(document),document},deps:[]}]),pi=new _.OlP(""),ga=[{provide:_.rWj,useClass:class re{addToWindow(r){_.dqk.getAngularTestability=(t,s=!0)=>{const u=r.findTestabilityInTree(t,s);if(null==u)throw new Error("Could not find testability for element.");return u},_.dqk.getAllAngularTestabilities=()=>r.getAllTestabilities(),_.dqk.getAllAngularRootElements=()=>r.getAllRootElements(),_.dqk.frameworkStabilizers||(_.dqk.frameworkStabilizers=[]),_.dqk.frameworkStabilizers.push(t=>{const s=_.dqk.getAllAngularTestabilities();let u=s.length,d=!1;const l=function(n){d=d||n,u--,0==u&&t(d)};s.forEach(function(n){n.whenStable(l)})})}findTestabilityInTree(r,e,t){return null==e?null:r.getTestability(e)??(t?(0,M.q)().isShadowRoot(e)?this.findTestabilityInTree(r,e.host,!0):this.findTestabilityInTree(r,e.parentElement,!0):null)}},deps:[]},{provide:_.lri,useClass:_.dDg,deps:[_.R0b,_.eoX,_.rWj]},{provide:_.dDg,useClass:_.dDg,deps:[_.R0b,_.eoX,_.rWj]}],Pi=[{provide:_.zSh,useValue:"root"},{provide:_.qLn,useFactory:function zn(){return new _.qLn},deps:[]},{provide:ie,useClass:Ri,multi:!0,deps:[M.K0,_.R0b,_.Lbi]},{provide:ie,useClass:Or,multi:!0,deps:[M.K0]},{provide:pe,useClass:pe,deps:[ae,be,_.AFp]},{provide:_.FYo,useExisting:pe},{provide:fe,useExisting:be},{provide:be,useClass:be,deps:[M.K0]},{provide:ae,useClass:ae,deps:[ie,_.R0b]},{provide:M.JF,useClass:oe,deps:[]},[]];let _a=(()=>{class o{constructor(e){}static withServerTransition(e){return{ngModule:o,providers:[{provide:_.AFp,useValue:e.appId},{provide:W,useExisting:_.AFp},G]}}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(pi,12))},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({providers:[...Pi,...ga],imports:[M.ez,_.hGG]}),o})(),X=(()=>{class o{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(M.K0))},o.\u0275prov=_.Yz7({token:o,factory:function(e){let t=null;return t=e?new e:function ye(){return new X((0,_.LFG)(M.K0))}(),t},providedIn:"root"}),o})();typeof window<"u"&&window;let Ci=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=_.Yz7({token:o,factory:function(e){let t=null;return t=e?new(e||o):_.LFG(at),t},providedIn:"root"}),o})(),at=(()=>{class o extends Ci{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case _.q3G.NONE:return t;case _.q3G.HTML:return(0,_.qzn)(t,"HTML")?(0,_.z3N)(t):(0,_.EiD)(this._doc,String(t)).toString();case _.q3G.STYLE:return(0,_.qzn)(t,"Style")?(0,_.z3N)(t):t;case _.q3G.SCRIPT:if((0,_.qzn)(t,"Script"))return(0,_.z3N)(t);throw new Error("unsafe value used in a script context");case _.q3G.URL:return(0,_.qzn)(t,"URL")?(0,_.z3N)(t):(0,_.mCW)(String(t));case _.q3G.RESOURCE_URL:if((0,_.qzn)(t,"ResourceURL"))return(0,_.z3N)(t);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return(0,_.JVY)(e)}bypassSecurityTrustStyle(e){return(0,_.L6k)(e)}bypassSecurityTrustScript(e){return(0,_.eBb)(e)}bypassSecurityTrustUrl(e){return(0,_.LAX)(e)}bypassSecurityTrustResourceUrl(e){return(0,_.pB0)(e)}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(M.K0))},o.\u0275prov=_.Yz7({token:o,factory:function(e){let t=null;return t=e?new e:function Oe(o){return new at(o.get(M.K0))}(_.LFG(_.zs3)),t},providedIn:"root"}),o})();var _t=E(2076),ke=E(9646),Ee=E(7579);class Ut extends Ee.x{constructor(r){super(),this._value=r}get value(){return this.getValue()}_subscribe(r){const e=super._subscribe(r);return!e.closed&&r.next(this._value),e}getValue(){const{hasError:r,thrownError:e,_value:t}=this;if(r)throw e;return this._throwIfClosed(),t}next(r){super.next(this._value=r)}}var Rt=E(6805),_r=E(9841),Ui=E(7272),Qe=E(9751),Gn=E(8421);function on(o){return new Qe.y(r=>{(0,Gn.Xf)(o()).subscribe(r)})}var Ca=E(9635),wi=E(2843),Nt=E(515),Gt=E(727),di=E(4482),Lt=E(5403);function Tn(){return(0,di.e)((o,r)=>{let e=null;o._refCount++;const t=(0,Lt.x)(r,void 0,void 0,void 0,()=>{if(!o||o._refCount<=0||0<--o._refCount)return void(e=null);const s=o._connection,u=e;e=null,s&&(!u||s===u)&&s.unsubscribe(),r.unsubscribe()});o.subscribe(t),t.closed||(e=o.connect())})}class vs extends Qe.y{constructor(r,e){super(),this.source=r,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,(0,di.A)(r)&&(this.lift=r.lift)}_subscribe(r){return this.getSubject().subscribe(r)}getSubject(){const r=this._subject;return(!r||r.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:r}=this;this._subject=this._connection=null,r?.unsubscribe()}connect(){let r=this._connection;if(!r){r=this._connection=new Gt.w0;const e=this.getSubject();r.add(this.source.subscribe((0,Lt.x)(e,void 0,()=>{this._teardown(),e.complete()},t=>{this._teardown(),e.error(t)},()=>this._teardown()))),r.closed&&(this._connection=null,r=Gt.w0.EMPTY)}return r}refCount(){return Tn()(this)}}var qe=E(4004),Bi=E(3900),ri=E(5698),wa=E(3269);function Si(...o){const r=(0,wa.yG)(o);return(0,di.e)((e,t)=>{(r?(0,Ui.z)(o,e,r):(0,Ui.z)(o,e)).subscribe(t)})}var Wt=E(9300),fi=E(5577),Vi=E(590),Bt=E(4351),$t=E(8505),Et=E(262);function sn(o,r,e,t,s){return(u,d)=>{let l=e,n=r,i=0;u.subscribe((0,Lt.x)(d,a=>{const c=i++;n=l?o(n,a,c):(l=!0,a),t&&d.next(n)},s&&(()=>{l&&d.next(n),d.complete()})))}}function ya(o,r){return(0,di.e)(sn(o,r,arguments.length>=2,!0))}function Wn(o){return o<=0?()=>Nt.E:(0,di.e)((r,e)=>{let t=[];r.subscribe((0,Lt.x)(e,s=>{t.push(s),o{for(const s of t)e.next(s);e.complete()},void 0,()=>{t=null}))})}var br=E(8068),Oi=E(6590),Ql=E(4671);function $p(o,r){const e=arguments.length>=2;return t=>t.pipe(o?(0,Wt.h)((s,u)=>o(s,u,t)):Ql.y,Wn(1),e?(0,Oi.d)(r):(0,br.T)(()=>new Rt.K))}var Zd=E(9718);function va(o){return(0,di.e)((r,e)=>{try{r.subscribe(e)}finally{e.add(o)}})}var As=E(8189);const ht="primary";class pn{constructor(r){this.params=r||{}}has(r){return Object.prototype.hasOwnProperty.call(this.params,r)}get(r){if(this.has(r)){const e=this.params[r];return Array.isArray(e)?e[0]:e}return null}getAll(r){if(this.has(r)){const e=this.params[r];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Aa(o){return new pn(o)}function Qp(o,r,e){const t=e.path.split("/");if(t.length>o.length||"full"===e.pathMatch&&(r.hasChildren()||t.lengtht[u]===s)}return o===r}function eu(o){return Array.prototype.concat.apply([],o)}function tu(o){return o.length>0?o[o.length-1]:null}function yi(o,r){for(const e in o)o.hasOwnProperty(e)&&r(o[e],e)}function $n(o){return(0,_.CqO)(o)?o:(0,_.QGY)(o)?(0,_t.D)(Promise.resolve(o)):(0,ke.of)(o)}const Jp={exact:function Jl(o,r,e){if(!wr(o.segments,r.segments)||!go(o.segments,r.segments,e)||o.numberOfChildren!==r.numberOfChildren)return!1;for(const t in r.children)if(!o.children[t]||!Jl(o.children[t],r.children[t],e))return!1;return!0},subset:Ss},iu={exact:function Cr(o,r){return En(o,r)},subset:function mo(o,r){return Object.keys(r).length<=Object.keys(o).length&&Object.keys(r).every(e=>Xd(o[e],r[e]))},ignored:()=>!0};function nu(o,r,e){return Jp[e.paths](o.root,r.root,e.matrixParams)&&iu[e.queryParams](o.queryParams,r.queryParams)&&!("exact"===e.fragment&&o.fragment!==r.fragment)}function Ss(o,r,e){return Kl(o,r,r.segments,e)}function Kl(o,r,e,t){if(o.segments.length>e.length){const s=o.segments.slice(0,e.length);return!(!wr(s,e)||r.hasChildren()||!go(s,e,t))}if(o.segments.length===e.length){if(!wr(o.segments,e)||!go(o.segments,e,t))return!1;for(const s in r.children)if(!o.children[s]||!Ss(o.children[s],r.children[s],t))return!1;return!0}{const s=e.slice(0,o.segments.length),u=e.slice(o.segments.length);return!!(wr(o.segments,s)&&go(o.segments,s,t)&&o.children[ht])&&Kl(o.children[ht],r,u,t)}}function go(o,r,e){return r.every((t,s)=>iu[e](o[s].parameters,t.parameters))}class fn{constructor(r,e,t){this.root=r,this.queryParams=e,this.fragment=t}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Aa(this.queryParams)),this._queryParamMap}toString(){return Es.serialize(this)}}class dt{constructor(r,e){this.segments=r,this.children=e,this.parent=null,yi(e,(t,s)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return bo(this)}}class xa{constructor(r,e){this.path=r,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Aa(this.parameters)),this._parameterMap}toString(){return Co(this)}}function wr(o,r){return o.length===r.length&&o.every((e,t)=>e.path===r[t].path)}let _o=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=_.Yz7({token:o,factory:function(){return new Ts},providedIn:"root"}),o})();class Ts{parse(r){const e=new ue(r);return new fn(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(r){const e=`/${Ms(r.root,!0)}`,t=function qi(o){const r=Object.keys(o).map(e=>{const t=o[e];return Array.isArray(t)?t.map(s=>`${Ds(e)}=${Ds(s)}`).join("&"):`${Ds(e)}=${Ds(t)}`}).filter(e=>!!e);return r.length?`?${r.join("&")}`:""}(r.queryParams);return`${e}${t}${"string"==typeof r.fragment?`#${function Qb(o){return encodeURI(o)}(r.fragment)}`:""}`}}const Es=new Ts;function bo(o){return o.segments.map(r=>Co(r)).join("/")}function Ms(o,r){if(!o.hasChildren())return bo(o);if(r){const e=o.children[ht]?Ms(o.children[ht],!1):"",t=[];return yi(o.children,(s,u)=>{u!==ht&&t.push(`${u}:${Ms(s,!1)}`)}),t.length>0?`${e}(${t.join("//")})`:e}{const e=function Ni(o,r){let e=[];return yi(o.children,(t,s)=>{s===ht&&(e=e.concat(r(t,s)))}),yi(o.children,(t,s)=>{s!==ht&&(e=e.concat(r(t,s)))}),e}(o,(t,s)=>s===ht?[Ms(o.children[ht],!1)]:[`${s}:${Ms(t,!1)}`]);return 1===Object.keys(o.children).length&&null!=o.children[ht]?`${bo(o)}/${e[0]}`:`${bo(o)}/(${e.join("//")})`}}function Yt(o){return encodeURIComponent(o).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ds(o){return Yt(o).replace(/%3B/gi,";")}function Fr(o){return Yt(o).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ti(o){return decodeURIComponent(o)}function Hs(o){return Ti(o.replace(/\+/g,"%20"))}function Co(o){return`${Fr(o.path)}${function Sa(o){return Object.keys(o).map(r=>`;${Fr(r)}=${Fr(o[r])}`).join("")}(o.parameters)}`}const P=/^[^\/()?;=#]+/;function O(o){const r=o.match(P);return r?r[0]:""}const I=/^[^=?&#]+/,ne=/^[^&#]+/;class ue{constructor(r){this.url=r,this.remaining=r}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new dt([],{}):new dt([],this.parseChildren())}parseQueryParams(){const r={};if(this.consumeOptional("?"))do{this.parseQueryParam(r)}while(this.consumeOptional("&"));return r}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const r=[];for(this.peekStartsWith("(")||r.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),r.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let t={};return this.peekStartsWith("(")&&(t=this.parseParens(!1)),(r.length>0||Object.keys(e).length>0)&&(t[ht]=new dt(r,e)),t}parseSegment(){const r=O(this.remaining);if(""===r&&this.peekStartsWith(";"))throw new _.vHH(4009,!1);return this.capture(r),new xa(Ti(r),this.parseMatrixParams())}parseMatrixParams(){const r={};for(;this.consumeOptional(";");)this.parseParam(r);return r}parseParam(r){const e=O(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const s=O(this.remaining);s&&(t=s,this.capture(t))}r[Ti(e)]=Ti(t)}parseQueryParam(r){const e=function j(o){const r=o.match(I);return r?r[0]:""}(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const d=function me(o){const r=o.match(ne);return r?r[0]:""}(this.remaining);d&&(t=d,this.capture(t))}const s=Hs(e),u=Hs(t);if(r.hasOwnProperty(s)){let d=r[s];Array.isArray(d)||(d=[d],r[s]=d),d.push(u)}else r[s]=u}parseParens(r){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const t=O(this.remaining),s=this.remaining[t.length];if("/"!==s&&")"!==s&&";"!==s)throw new _.vHH(4010,!1);let u;t.indexOf(":")>-1?(u=t.slice(0,t.indexOf(":")),this.capture(u),this.capture(":")):r&&(u=ht);const d=this.parseChildren();e[u]=1===Object.keys(d).length?d[ht]:new dt([],d),this.consumeOptional("//")}return e}peekStartsWith(r){return this.remaining.startsWith(r)}consumeOptional(r){return!!this.peekStartsWith(r)&&(this.remaining=this.remaining.substring(r.length),!0)}capture(r){if(!this.consumeOptional(r))throw new _.vHH(4011,!1)}}function Ge(o){return o.segments.length>0?new dt([],{[ht]:o}):o}function Dt(o){const r={};for(const t of Object.keys(o.children)){const u=Dt(o.children[t]);(u.segments.length>0||u.hasChildren())&&(r[t]=u)}return function Vt(o){if(1===o.numberOfChildren&&o.children[ht]){const r=o.children[ht];return new dt(o.segments.concat(r.segments),r.children)}return o}(new dt(o.segments,r))}function wt(o){return o instanceof fn}function we(o,r,e,t,s){if(0===e.length)return Ji(r.root,r.root,r.root,t,s);const u=function yr(o){if("string"==typeof o[0]&&1===o.length&&"/"===o[0])return new Ta(!0,0,o);let r=0,e=!1;const t=o.reduce((s,u,d)=>{if("object"==typeof u&&null!=u){if(u.outlets){const l={};return yi(u.outlets,(n,i)=>{l[i]="string"==typeof n?n.split("/"):n}),[...s,{outlets:l}]}if(u.segmentPath)return[...s,u.segmentPath]}return"string"!=typeof u?[...s,u]:0===d?(u.split("/").forEach((l,n)=>{0==n&&"."===l||(0==n&&""===l?e=!0:".."===l?r++:""!=l&&s.push(l))}),s):[...s,u]},[]);return new Ta(e,r,t)}(e);return u.toRoot()?Ji(r.root,r.root,new dt([],{}),t,s):function d(n){const i=function au(o,r,e,t){if(o.isAbsolute)return new zi(r.root,!0,0);if(-1===t)return new zi(e,e===r.root,0);return function Yb(o,r,e){let t=o,s=r,u=e;for(;u>s;){if(u-=s,t=t.parent,!t)throw new _.vHH(4005,!1);s=t.segments.length}return new zi(t,!1,s-u)}(e,t+(ot(o.commands[0])?0:1),o.numberOfDoubleDots)}(u,r,o.snapshot?._urlSegment,n),a=i.processChildren?Ur(i.segmentGroup,i.index,u.commands):Kp(i.segmentGroup,i.index,u.commands);return Ji(r.root,i.segmentGroup,a,t,s)}(o.snapshot?._lastPathIndex)}function ot(o){return"object"==typeof o&&null!=o&&!o.outlets&&!o.segmentPath}function Mn(o){return"object"==typeof o&&null!=o&&o.outlets}function Ji(o,r,e,t,s){let d,u={};t&&yi(t,(n,i)=>{u[i]=Array.isArray(n)?n.map(a=>`${a}`):`${n}`}),d=o===r?e:Qt(o,r,e);const l=Ge(Dt(d));return new fn(l,u,s)}function Qt(o,r,e){const t={};return yi(o.children,(s,u)=>{t[u]=s===r?e:Qt(s,r,e)}),new dt(o.segments,t)}class Ta{constructor(r,e,t){if(this.isAbsolute=r,this.numberOfDoubleDots=e,this.commands=t,r&&t.length>0&&ot(t[0]))throw new _.vHH(4003,!1);const s=t.find(Mn);if(s&&s!==tu(t))throw new _.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class zi{constructor(r,e,t){this.segmentGroup=r,this.processChildren=e,this.index=t}}function Kp(o,r,e){if(o||(o=new dt([],{})),0===o.segments.length&&o.hasChildren())return Ur(o,r,e);const t=function Gi(o,r,e){let t=0,s=r;const u={match:!1,pathIndex:0,commandIndex:0};for(;s=e.length)return u;const d=o.segments[s],l=e[t];if(Mn(l))break;const n=`${l}`,i=t0&&void 0===n)break;if(n&&i&&"object"==typeof i&&void 0===i.outlets){if(!Qn(n,i,d))return u;t+=2}else{if(!Qn(n,{},d))return u;t++}s++}return{match:!0,pathIndex:s,commandIndex:t}}(o,r,e),s=e.slice(t.commandIndex);if(t.match&&t.pathIndex{"string"==typeof u&&(u=[u]),null!==u&&(s[d]=Kp(o.children[d],r,u))}),yi(o.children,(u,d)=>{void 0===t[d]&&(s[d]=u)}),new dt(o.segments,s)}}function Dn(o,r,e){const t=o.segments.slice(0,r);let s=0;for(;s{"string"==typeof e&&(e=[e]),null!==e&&(r[t]=Dn(new dt([],{}),0,e))}),r}function Ea(o){const r={};return yi(o,(e,t)=>r[t]=`${e}`),r}function Qn(o,r,e){return o==e.path&&En(r,e.parameters)}class vr{constructor(r,e){this.id=r,this.url=e}}class Xl extends vr{constructor(r,e,t="imperative",s=null){super(r,e),this.type=0,this.navigationTrigger=t,this.restoredState=s}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Nr extends vr{constructor(r,e,t){super(r,e),this.urlAfterRedirects=t,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class ec extends vr{constructor(r,e,t,s){super(r,e),this.reason=t,this.code=s,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class tc extends vr{constructor(r,e,t,s){super(r,e),this.error=t,this.target=s,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class ou extends vr{constructor(r,e,t,s){super(r,e),this.urlAfterRedirects=t,this.state=s,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Xp extends vr{constructor(r,e,t,s){super(r,e),this.urlAfterRedirects=t,this.state=s,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class su extends vr{constructor(r,e,t,s,u){super(r,e),this.urlAfterRedirects=t,this.state=s,this.shouldActivate=u,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Kb extends vr{constructor(r,e,t,s){super(r,e),this.urlAfterRedirects=t,this.state=s,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ef extends vr{constructor(r,e,t,s){super(r,e),this.urlAfterRedirects=t,this.state=s,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class lu{constructor(r){this.route=r,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class tf{constructor(r){this.route=r,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class nf{constructor(r){this.snapshot=r,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class rf{constructor(r){this.snapshot=r,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class af{constructor(r){this.snapshot=r,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class cu{constructor(r){this.snapshot=r,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class sf{constructor(r,e,t){this.routerEvent=r,this.position=e,this.anchor=t,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Li{constructor(r){this._root=r}get root(){return this._root.value}parent(r){const e=this.pathFromRoot(r);return e.length>1?e[e.length-2]:null}children(r){const e=Yn(r,this._root);return e?e.children.map(t=>t.value):[]}firstChild(r){const e=Yn(r,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(r){const e=qt(r,this._root);return e.length<2?[]:e[e.length-2].children.map(s=>s.value).filter(s=>s!==r)}pathFromRoot(r){return qt(r,this._root).map(e=>e.value)}}function Yn(o,r){if(o===r.value)return r;for(const e of r.children){const t=Yn(o,e);if(t)return t}return null}function qt(o,r){if(o===r.value)return[r];for(const e of r.children){const t=qt(o,e);if(t.length)return t.unshift(r),t}return[]}class Jn{constructor(r,e){this.value=r,this.children=e}toString(){return`TreeNode(${this.value})`}}function wo(o){const r={};return o&&o.children.forEach(e=>r[e.value.outlet]=e),r}class du extends Li{constructor(r,e){super(r),this.snapshot=e,rc(this,r)}toString(){return this.snapshot.toString()}}function lf(o,r){const e=function Xb(o,r){const d=new Ma([],{},{},"",{},ht,r,null,o.root,-1,{});return new nc("",new Jn(d,[]))}(o,r),t=new Ut([new xa("",{})]),s=new Ut({}),u=new Ut({}),d=new Ut({}),l=new Ut(""),n=new qr(t,s,d,l,u,ht,r,e.root);return n.snapshot=e.root,new du(new Jn(n,[]),e)}class qr{constructor(r,e,t,s,u,d,l,n){this.url=r,this.params=e,this.queryParams=t,this.fragment=s,this.data=u,this.outlet=d,this.component=l,this._futureSnapshot=n}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,qe.U)(r=>Aa(r)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,qe.U)(r=>Aa(r)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Rs(o,r="emptyOnly"){const e=o.pathFromRoot;let t=0;if("always"!==r)for(t=e.length-1;t>=1;){const s=e[t],u=e[t-1];if(s.routeConfig&&""===s.routeConfig.path)t--;else{if(u.component)break;t--}}return function ic(o){return o.reduce((r,e)=>({params:{...r.params,...e.params},data:{...r.data,...e.data},resolve:{...e.data,...r.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(t))}class Ma{constructor(r,e,t,s,u,d,l,n,i,a,c,h){this.url=r,this.params=e,this.queryParams=t,this.fragment=s,this.data=u,this.outlet=d,this.component=l,this.routeConfig=n,this._urlSegment=i,this._lastPathIndex=a,this._correctedLastPathIndex=h??a,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Aa(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Aa(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class nc extends Li{constructor(r,e){super(e),this.url=r,rc(this,e)}toString(){return cf(this._root)}}function rc(o,r){r.value._routerState=o,r.children.forEach(e=>rc(o,e))}function cf(o){const r=o.children.length>0?` { ${o.children.map(cf).join(", ")} } `:"";return`${o.value}${r}`}function Kn(o){if(o.snapshot){const r=o.snapshot,e=o._futureSnapshot;o.snapshot=e,En(r.queryParams,e.queryParams)||o.queryParams.next(e.queryParams),r.fragment!==e.fragment&&o.fragment.next(e.fragment),En(r.params,e.params)||o.params.next(e.params),function Yp(o,r){if(o.length!==r.length)return!1;for(let e=0;eEn(e.parameters,r[t].parameters))}(o.url,r.url);return e&&!(!o.parent!=!r.parent)&&(!o.parent||Da(o.parent,r.parent))}function Ps(o,r,e){if(e&&o.shouldReuseRoute(r.value,e.value.snapshot)){const t=e.value;t._futureSnapshot=r.value;const s=function Is(o,r,e){return r.children.map(t=>{for(const s of e.children)if(o.shouldReuseRoute(t.value,s.value.snapshot))return Ps(o,t,s);return Ps(o,t)})}(o,r,e);return new Jn(t,s)}{if(o.shouldAttach(r.value)){const u=o.retrieve(r.value);if(null!==u){const d=u.route;return d.value._futureSnapshot=r.value,d.children=r.children.map(l=>Ps(o,l)),d}}const t=function uu(o){return new qr(new Ut(o.url),new Ut(o.params),new Ut(o.queryParams),new Ut(o.fragment),new Ut(o.data),o.outlet,o.component,o)}(r.value),s=r.children.map(u=>Ps(o,u));return new Jn(t,s)}}const hu="ngNavigationCancelingError";function df(o,r){const{redirectTo:e,navigationBehaviorOptions:t}=wt(r)?{redirectTo:r,navigationBehaviorOptions:void 0}:r,s=tC(!1,0,r);return s.url=e,s.navigationBehaviorOptions=t,s}function tC(o,r,e){const t=new Error("NavigationCancelingError: "+(o||""));return t[hu]=!0,t.cancellationCode=r,e&&(t.url=e),t}function iC(o){return ks(o)&&wt(o.url)}function ks(o){return o&&o[hu]}class uf{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new yo,this.attachRef=null}}let yo=(()=>{class o{constructor(){this.contexts=new Map}onChildOutletCreated(e,t){const s=this.getOrCreateContext(e);s.outlet=t,this.contexts.set(e,s)}onChildOutletDestroyed(e){const t=this.getContext(e);t&&(t.outlet=null,t.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new uf,this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const Ha=!1;let ac=(()=>{class o{constructor(e,t,s,u,d){this.parentContexts=e,this.location=t,this.changeDetector=u,this.environmentInjector=d,this.activated=null,this._activatedRoute=null,this.activateEvents=new _.vpe,this.deactivateEvents=new _.vpe,this.attachEvents=new _.vpe,this.detachEvents=new _.vpe,this.name=s||ht,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.getContext(this.name)?.outlet===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new _.vHH(4012,Ha);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new _.vHH(4012,Ha);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new _.vHH(4012,Ha);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new _.vHH(4013,Ha);this._activatedRoute=e;const s=this.location,d=e._futureSnapshot.component,l=this.parentContexts.getOrCreateContext(this.name).children,n=new hf(e,l,s.injector);if(t&&function vo(o){return!!o.resolveComponentFactory}(t)){const i=t.resolveComponentFactory(d);this.activated=s.createComponent(i,s.length,n)}else this.activated=s.createComponent(d,{index:s.length,injector:n,environmentInjector:t??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(yo),_.Y36(_.s_b),_.$8M("name"),_.Y36(_.sBO),_.Y36(_.lqb))},o.\u0275dir=_.lG2({type:o,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),o})();class hf{constructor(r,e,t){this.route=r,this.childContexts=e,this.parent=t}get(r,e){return r===qr?this.route:r===yo?this.childContexts:this.parent.get(r,e)}}let pf=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=_.Xpm({type:o,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&_._UZ(0,"router-outlet")},dependencies:[ac],encapsulation:2}),o})();function Ra(o,r){return o.providers&&!o._injector&&(o._injector=(0,_.MMx)(o.providers,r,`Route: ${o.path}`)),o._injector??r}function Pa(o){const r=o.children&&o.children.map(Pa),e=r?{...o,children:r}:{...o};return!e.component&&!e.loadComponent&&(r||e.loadChildren)&&e.outlet&&e.outlet!==ht&&(e.component=pf),e}function Ki(o){return o.outlet||ht}function sc(o,r){const e=o.filter(t=>Ki(t)===r);return e.push(...o.filter(t=>Ki(t)!==r)),e}function Bs(o){if(!o)return null;if(o.routeConfig?._injector)return o.routeConfig._injector;for(let r=o.parent;r;r=r.parent){const e=r.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class oC{constructor(r,e,t,s){this.routeReuseStrategy=r,this.futureState=e,this.currState=t,this.forwardEvent=s}activate(r){const e=this.futureState._root,t=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,t,r),Kn(this.futureState.root),this.activateChildRoutes(e,t,r)}deactivateChildRoutes(r,e,t){const s=wo(e);r.children.forEach(u=>{const d=u.value.outlet;this.deactivateRoutes(u,s[d],t),delete s[d]}),yi(s,(u,d)=>{this.deactivateRouteAndItsChildren(u,t)})}deactivateRoutes(r,e,t){const s=r.value,u=e?e.value:null;if(s===u)if(s.component){const d=t.getContext(s.outlet);d&&this.deactivateChildRoutes(r,e,d.children)}else this.deactivateChildRoutes(r,e,t);else u&&this.deactivateRouteAndItsChildren(e,t)}deactivateRouteAndItsChildren(r,e){r.value.component&&this.routeReuseStrategy.shouldDetach(r.value.snapshot)?this.detachAndStoreRouteSubtree(r,e):this.deactivateRouteAndOutlet(r,e)}detachAndStoreRouteSubtree(r,e){const t=e.getContext(r.value.outlet),s=t&&r.value.component?t.children:e,u=wo(r);for(const d of Object.keys(u))this.deactivateRouteAndItsChildren(u[d],s);if(t&&t.outlet){const d=t.outlet.detach(),l=t.children.onOutletDeactivated();this.routeReuseStrategy.store(r.value.snapshot,{componentRef:d,route:r,contexts:l})}}deactivateRouteAndOutlet(r,e){const t=e.getContext(r.value.outlet),s=t&&r.value.component?t.children:e,u=wo(r);for(const d of Object.keys(u))this.deactivateRouteAndItsChildren(u[d],s);t&&t.outlet&&(t.outlet.deactivate(),t.children.onOutletDeactivated(),t.attachRef=null,t.resolver=null,t.route=null)}activateChildRoutes(r,e,t){const s=wo(e);r.children.forEach(u=>{this.activateRoutes(u,s[u.value.outlet],t),this.forwardEvent(new cu(u.value.snapshot))}),r.children.length&&this.forwardEvent(new rf(r.value.snapshot))}activateRoutes(r,e,t){const s=r.value,u=e?e.value:null;if(Kn(s),s===u)if(s.component){const d=t.getOrCreateContext(s.outlet);this.activateChildRoutes(r,e,d.children)}else this.activateChildRoutes(r,e,t);else if(s.component){const d=t.getOrCreateContext(s.outlet);if(this.routeReuseStrategy.shouldAttach(s.snapshot)){const l=this.routeReuseStrategy.retrieve(s.snapshot);this.routeReuseStrategy.store(s.snapshot,null),d.children.onOutletReAttached(l.contexts),d.attachRef=l.componentRef,d.route=l.route.value,d.outlet&&d.outlet.attach(l.componentRef,l.route.value),Kn(l.route.value),this.activateChildRoutes(r,null,d.children)}else{const l=Bs(s.snapshot),n=l?.get(_._Vd)??null;d.attachRef=null,d.route=s,d.resolver=n,d.injector=l,d.outlet&&d.outlet.activateWith(s,d.injector),this.activateChildRoutes(r,null,d.children)}}else this.activateChildRoutes(r,null,t)}}class fu{constructor(r){this.path=r,this.route=this.path[this.path.length-1]}}class Vs{constructor(r,e){this.component=r,this.route=e}}function mf(o,r,e){const t=o._root;return zr(t,r?r._root:null,e,[t.value])}function cc(o,r,e){return(Bs(r)??e).get(o)}function zr(o,r,e,t,s={canDeactivateChecks:[],canActivateChecks:[]}){const u=wo(r);return o.children.forEach(d=>{(function Os(o,r,e,t,s={canDeactivateChecks:[],canActivateChecks:[]}){const u=o.value,d=r?r.value:null,l=e?e.getContext(o.value.outlet):null;if(d&&u.routeConfig===d.routeConfig){const n=function sC(o,r,e){if("function"==typeof e)return e(o,r);switch(e){case"pathParamsChange":return!wr(o.url,r.url);case"pathParamsOrQueryParamsChange":return!wr(o.url,r.url)||!En(o.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Da(o,r)||!En(o.queryParams,r.queryParams);default:return!Da(o,r)}}(d,u,u.routeConfig.runGuardsAndResolvers);n?s.canActivateChecks.push(new fu(t)):(u.data=d.data,u._resolvedData=d._resolvedData),zr(o,r,u.component?l?l.children:null:e,t,s),n&&l&&l.outlet&&l.outlet.isActivated&&s.canDeactivateChecks.push(new Vs(l.outlet.component,d))}else d&&Ao(r,l,s),s.canActivateChecks.push(new fu(t)),zr(o,null,u.component?l?l.children:null:e,t,s)})(d,u[d.value.outlet],e,t.concat([d.value]),s),delete u[d.value.outlet]}),yi(u,(d,l)=>Ao(d,e.getContext(l),s)),s}function Ao(o,r,e){const t=wo(o),s=o.value;yi(t,(u,d)=>{Ao(u,s.component?r?r.children.getContext(d):null:r,e)}),e.canDeactivateChecks.push(new Vs(s.component&&r&&r.outlet&&r.outlet.isActivated?r.outlet.component:null,s))}function xo(o){return"function"==typeof o}function Gr(o){return o instanceof Rt.K||"EmptyError"===o?.name}const Ar=Symbol("INITIAL_VALUE");function Ia(){return(0,Bi.w)(o=>(0,_r.a)(o.map(r=>r.pipe((0,ri.q)(1),Si(Ar)))).pipe((0,qe.U)(r=>{for(const e of r)if(!0!==e){if(e===Ar)return Ar;if(!1===e||e instanceof fn)return e}return!0}),(0,Wt.h)(r=>r!==Ar),(0,ri.q)(1)))}function uC(o){return(0,Ca.z)((0,$t.b)(r=>{if(wt(r))throw df(0,r)}),(0,qe.U)(r=>!0===r))}const wf={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Mo(o,r,e,t,s){const u=yf(o,r,e);return u.matched?function Y0(o,r,e,t){const s=r.canMatch;if(!s||0===s.length)return(0,ke.of)(!0);const u=s.map(d=>{const l=o.get(d),n=function bf(o){return o&&xo(o.canMatch)}(l)?l.canMatch(r,e):l(r,e);return $n(n)});return(0,ke.of)(u).pipe(Ia(),uC())}(t=Ra(r,t),r,e).pipe((0,qe.U)(d=>!0===d?u:{...wf})):(0,ke.of)(u)}function yf(o,r,e){if(""===r.path)return"full"===r.pathMatch&&(o.hasChildren()||e.length>0)?{...wf}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const s=(r.matcher||Qp)(e,o,r);if(!s)return{...wf};const u={};yi(s.posParams,(l,n)=>{u[n]=l.path});const d=s.consumed.length>0?{...u,...s.consumed[s.consumed.length-1].parameters}:u;return{matched:!0,consumedSegments:s.consumed,remainingSegments:e.slice(s.consumed.length),parameters:d,positionalParamSegments:s.posParams??{}}}function _u(o,r,e,t,s="corrected"){if(e.length>0&&function Ls(o,r,e){return e.some(t=>dc(o,r,t)&&Ki(t)!==ht)}(o,e,t)){const d=new dt(r,function bu(o,r,e,t){const s={};s[ht]=t,t._sourceSegment=o,t._segmentIndexShift=r.length;for(const u of e)if(""===u.path&&Ki(u)!==ht){const d=new dt([],{});d._sourceSegment=o,d._segmentIndexShift=r.length,s[Ki(u)]=d}return s}(o,r,t,new dt(e,o.children)));return d._sourceSegment=o,d._segmentIndexShift=r.length,{segmentGroup:d,slicedSegments:[]}}if(0===e.length&&function J0(o,r,e){return e.some(t=>dc(o,r,t))}(o,e,t)){const d=new dt(o.segments,function mi(o,r,e,t,s,u){const d={};for(const l of t)if(dc(o,e,l)&&!s[Ki(l)]){const n=new dt([],{});n._sourceSegment=o,n._segmentIndexShift="legacy"===u?o.segments.length:r.length,d[Ki(l)]=n}return{...s,...d}}(o,r,e,t,o.children,s));return d._sourceSegment=o,d._segmentIndexShift=r.length,{segmentGroup:d,slicedSegments:e}}const u=new dt(o.segments,o.children);return u._sourceSegment=o,u._segmentIndexShift=r.length,{segmentGroup:u,slicedSegments:e}}function dc(o,r,e){return(!(o.hasChildren()||r.length>0)||"full"!==e.pathMatch)&&""===e.path}function Zi(o,r,e,t){return!!(Ki(o)===t||t!==ht&&dc(r,e,o))&&("**"===o.path||yf(r,o,e).matched)}function Xn(o,r,e){return 0===r.length&&!o.children[e]}const js=!1;class ka{constructor(r){this.segmentGroup=r||null}}class Do{constructor(r){this.urlTree=r}}function Ho(o){return(0,wi._)(new ka(o))}function vf(o){return(0,wi._)(new Do(o))}class Af{constructor(r,e,t,s,u){this.injector=r,this.configLoader=e,this.urlSerializer=t,this.urlTree=s,this.config=u,this.allowRedirects=!0}apply(){const r=_u(this.urlTree.root,[],[],this.config).segmentGroup,e=new dt(r.segments,r.children);return this.expandSegmentGroup(this.injector,this.config,e,ht).pipe((0,qe.U)(u=>this.createUrlTree(Dt(u),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,Et.K)(u=>{if(u instanceof Do)return this.allowRedirects=!1,this.match(u.urlTree);throw u instanceof ka?this.noMatchError(u):u}))}match(r){return this.expandSegmentGroup(this.injector,this.config,r.root,ht).pipe((0,qe.U)(s=>this.createUrlTree(Dt(s),r.queryParams,r.fragment))).pipe((0,Et.K)(s=>{throw s instanceof ka?this.noMatchError(s):s}))}noMatchError(r){return new _.vHH(4002,js)}createUrlTree(r,e,t){const s=Ge(r);return new fn(s,e,t)}expandSegmentGroup(r,e,t,s){return 0===t.segments.length&&t.hasChildren()?this.expandChildren(r,e,t).pipe((0,qe.U)(u=>new dt([],u))):this.expandSegment(r,t,e,t.segments,s,!0)}expandChildren(r,e,t){const s=[];for(const u of Object.keys(t.children))"primary"===u?s.unshift(u):s.push(u);return(0,_t.D)(s).pipe((0,Bt.b)(u=>{const d=t.children[u],l=sc(e,u);return this.expandSegmentGroup(r,l,d,u).pipe((0,qe.U)(n=>({segment:n,outlet:u})))}),ya((u,d)=>(u[d.outlet]=d.segment,u),{}),$p())}expandSegment(r,e,t,s,u,d){return(0,_t.D)(t).pipe((0,Bt.b)(l=>this.expandSegmentAgainstRoute(r,e,t,l,s,u,d).pipe((0,Et.K)(i=>{if(i instanceof ka)return(0,ke.of)(null);throw i}))),(0,Vi.P)(l=>!!l),(0,Et.K)((l,n)=>{if(Gr(l))return Xn(e,s,u)?(0,ke.of)(new dt([],{})):Ho(e);throw l}))}expandSegmentAgainstRoute(r,e,t,s,u,d,l){return Zi(s,e,u,d)?void 0===s.redirectTo?this.matchSegmentAgainstRoute(r,e,s,u,d):l&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(r,e,t,s,u,d):Ho(e):Ho(e)}expandSegmentAgainstRouteUsingRedirect(r,e,t,s,u,d){return"**"===s.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(r,t,s,d):this.expandRegularSegmentAgainstRouteUsingRedirect(r,e,t,s,u,d)}expandWildCardWithParamsAgainstRouteUsingRedirect(r,e,t,s){const u=this.applyRedirectCommands([],t.redirectTo,{});return t.redirectTo.startsWith("/")?vf(u):this.lineralizeSegments(t,u).pipe((0,fi.z)(d=>{const l=new dt(d,{});return this.expandSegment(r,l,e,d,s,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(r,e,t,s,u,d){const{matched:l,consumedSegments:n,remainingSegments:i,positionalParamSegments:a}=yf(e,s,u);if(!l)return Ho(e);const c=this.applyRedirectCommands(n,s.redirectTo,a);return s.redirectTo.startsWith("/")?vf(c):this.lineralizeSegments(s,c).pipe((0,fi.z)(h=>this.expandSegment(r,e,t,h.concat(i),d,!1)))}matchSegmentAgainstRoute(r,e,t,s,u){return"**"===t.path?(r=Ra(t,r),t.loadChildren?(t._loadedRoutes?(0,ke.of)({routes:t._loadedRoutes,injector:t._loadedInjector}):this.configLoader.loadChildren(r,t)).pipe((0,qe.U)(l=>(t._loadedRoutes=l.routes,t._loadedInjector=l.injector,new dt(s,{})))):(0,ke.of)(new dt(s,{}))):Mo(e,t,s,r).pipe((0,Bi.w)(({matched:d,consumedSegments:l,remainingSegments:n})=>d?this.getChildConfig(r=t._injector??r,t,s).pipe((0,fi.z)(a=>{const c=a.injector??r,h=a.routes,{segmentGroup:f,slicedSegments:m}=_u(e,l,n,h),p=new dt(f.segments,f.children);if(0===m.length&&p.hasChildren())return this.expandChildren(c,h,p).pipe((0,qe.U)(Te=>new dt(l,Te)));if(0===h.length&&0===m.length)return(0,ke.of)(new dt(l,{}));const w=Ki(t)===u;return this.expandSegment(c,p,h,m,w?ht:u,!0).pipe((0,qe.U)(J=>new dt(l.concat(J.segments),J.children)))})):Ho(e)))}getChildConfig(r,e,t){return e.children?(0,ke.of)({routes:e.children,injector:r}):e.loadChildren?void 0!==e._loadedRoutes?(0,ke.of)({routes:e._loadedRoutes,injector:e._loadedInjector}):function Q0(o,r,e,t){const s=r.canLoad;if(void 0===s||0===s.length)return(0,ke.of)(!0);const u=s.map(d=>{const l=o.get(d),n=function lC(o){return o&&xo(o.canLoad)}(l)?l.canLoad(r,e):l(r,e);return $n(n)});return(0,ke.of)(u).pipe(Ia(),uC())}(r,e,t).pipe((0,fi.z)(s=>s?this.configLoader.loadChildren(r,e).pipe((0,$t.b)(u=>{e._loadedRoutes=u.routes,e._loadedInjector=u.injector})):function K0(o){return(0,wi._)(tC(js,3))}())):(0,ke.of)({routes:[],injector:r})}lineralizeSegments(r,e){let t=[],s=e.root;for(;;){if(t=t.concat(s.segments),0===s.numberOfChildren)return(0,ke.of)(t);if(s.numberOfChildren>1||!s.children[ht])return(0,wi._)(new _.vHH(4e3,js));s=s.children[ht]}}applyRedirectCommands(r,e,t){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),r,t)}applyRedirectCreateUrlTree(r,e,t,s){const u=this.createSegmentGroup(r,e.root,t,s);return new fn(u,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(r,e){const t={};return yi(r,(s,u)=>{if("string"==typeof s&&s.startsWith(":")){const l=s.substring(1);t[u]=e[l]}else t[u]=s}),t}createSegmentGroup(r,e,t,s){const u=this.createSegments(r,e.segments,t,s);let d={};return yi(e.children,(l,n)=>{d[n]=this.createSegmentGroup(r,l,t,s)}),new dt(u,d)}createSegments(r,e,t,s){return e.map(u=>u.path.startsWith(":")?this.findPosParam(r,u,s):this.findOrReturn(u,t))}findPosParam(r,e,t){const s=t[e.path.substring(1)];if(!s)throw new _.vHH(4001,js);return s}findOrReturn(r,e){let t=0;for(const s of e){if(s.path===r.path)return e.splice(t),s;t++}return r}}class Po{}class pC{constructor(r,e,t,s,u,d,l,n){this.injector=r,this.rootComponentType=e,this.config=t,this.urlTree=s,this.url=u,this.paramsInheritanceStrategy=d,this.relativeLinkResolution=l,this.urlSerializer=n}recognize(){const r=_u(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,r,ht).pipe((0,qe.U)(e=>{if(null===e)return null;const t=new Ma([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},ht,this.rootComponentType,null,this.urlTree.root,-1,{}),s=new Jn(t,e),u=new nc(this.url,s);return this.inheritParamsAndData(u._root),u}))}inheritParamsAndData(r){const e=r.value,t=Rs(e,this.paramsInheritanceStrategy);e.params=Object.freeze(t.params),e.data=Object.freeze(t.data),r.children.forEach(s=>this.inheritParamsAndData(s))}processSegmentGroup(r,e,t,s){return 0===t.segments.length&&t.hasChildren()?this.processChildren(r,e,t):this.processSegment(r,e,t,t.segments,s)}processChildren(r,e,t){return(0,_t.D)(Object.keys(t.children)).pipe((0,Bt.b)(s=>{const u=t.children[s],d=sc(e,s);return this.processSegmentGroup(r,d,u,s)}),ya((s,u)=>s&&u?(s.push(...u),s):null),function Yl(o,r=!1){return(0,di.e)((e,t)=>{let s=0;e.subscribe((0,Lt.x)(t,u=>{const d=o(u,s++);(d||r)&&t.next(u),!d&&t.complete()}))})}(s=>null!==s),(0,Oi.d)(null),$p(),(0,qe.U)(s=>{if(null===s)return null;const u=Sf(s);return function fC(o){o.sort((r,e)=>r.value.outlet===ht?-1:e.value.outlet===ht?1:r.value.outlet.localeCompare(e.value.outlet))}(u),u}))}processSegment(r,e,t,s,u){return(0,_t.D)(e).pipe((0,Bt.b)(d=>this.processSegmentAgainstRoute(d._injector??r,d,t,s,u)),(0,Vi.P)(d=>!!d),(0,Et.K)(d=>{if(Gr(d))return Xn(t,s,u)?(0,ke.of)([]):(0,ke.of)(null);throw d}))}processSegmentAgainstRoute(r,e,t,s,u){if(e.redirectTo||!Zi(e,t,s,u))return(0,ke.of)(null);let d;if("**"===e.path){const l=s.length>0?tu(s).parameters:{},n=Fs(t)+s.length,i=new Ma(s,l,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Io(e),Ki(e),e.component??e._loadedComponent??null,e,uc(t),n,hc(e),n);d=(0,ke.of)({snapshot:i,consumedSegments:[],remainingSegments:[]})}else d=Mo(t,e,s,r).pipe((0,qe.U)(({matched:l,consumedSegments:n,remainingSegments:i,parameters:a})=>{if(!l)return null;const c=Fs(t)+n.length;return{snapshot:new Ma(n,a,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Io(e),Ki(e),e.component??e._loadedComponent??null,e,uc(t),c,hc(e),c),consumedSegments:n,remainingSegments:i}}));return d.pipe((0,Bi.w)(l=>{if(null===l)return(0,ke.of)(null);const{snapshot:n,consumedSegments:i,remainingSegments:a}=l;r=e._injector??r;const c=e._loadedInjector??r,h=function mC(o){return o.children?o.children:o.loadChildren?o._loadedRoutes:[]}(e),{segmentGroup:f,slicedSegments:m}=_u(t,i,a,h.filter(w=>void 0===w.redirectTo),this.relativeLinkResolution);if(0===m.length&&f.hasChildren())return this.processChildren(c,h,f).pipe((0,qe.U)(w=>null===w?null:[new Jn(n,w)]));if(0===h.length&&0===m.length)return(0,ke.of)([new Jn(n,[])]);const p=Ki(e)===u;return this.processSegment(c,h,f,m,p?ht:u).pipe((0,qe.U)(w=>null===w?null:[new Jn(n,w)]))}))}}function gC(o){const r=o.value.routeConfig;return r&&""===r.path&&void 0===r.redirectTo}function Sf(o){const r=[],e=new Set;for(const t of o){if(!gC(t)){r.push(t);continue}const s=r.find(u=>t.value.routeConfig===u.value.routeConfig);void 0!==s?(s.children.push(...t.children),e.add(s)):r.push(t)}for(const t of e){const s=Sf(t.children);r.push(new Jn(t.value,s))}return r.filter(t=>!e.has(t))}function uc(o){let r=o;for(;r._sourceSegment;)r=r._sourceSegment;return r}function Fs(o){let r=o,e=r._segmentIndexShift??0;for(;r._sourceSegment;)r=r._sourceSegment,e+=r._segmentIndexShift??0;return e-1}function Io(o){return o.data||{}}function hc(o){return o.resolve||{}}const Cu=Symbol("RouteTitle");function Ef(o){return"string"==typeof o.title||null===o.title}function Jt(o){return(0,Bi.w)(r=>{const e=o(r);return e?(0,_t.D)(e).pipe((0,qe.U)(()=>r)):(0,ke.of)(r)})}let wu=(()=>{class o{buildTitle(e){let t,s=e.root;for(;void 0!==s;)t=this.getResolvedTitleForRoute(s)??t,s=s.children.find(u=>u.outlet===ht);return t}getResolvedTitleForRoute(e){return e.data[Cu]}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=_.Yz7({token:o,factory:function(){return(0,_.f3M)(yu)},providedIn:"root"}),o})(),yu=(()=>{class o extends wu{constructor(e){super(),this.title=e}updateTitle(e){const t=this.buildTitle(e);void 0!==t&&this.title.setTitle(t)}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(X))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();class vu{}class yC extends class Ns{shouldDetach(r){return!1}store(r,e){}shouldAttach(r){return!1}retrieve(r){return null}shouldReuseRoute(r,e){return r.routeConfig===e.routeConfig}}{}const Au=new _.OlP("",{providedIn:"root",factory:()=>({})}),Ba=new _.OlP("ROUTES");let mc=(()=>{class o{constructor(e,t){this.injector=e,this.compiler=t,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return(0,ke.of)(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const t=$n(e.loadComponent()).pipe((0,$t.b)(u=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=u}),va(()=>{this.componentLoaders.delete(e)})),s=new vs(t,()=>new Ee.x).pipe(Tn());return this.componentLoaders.set(e,s),s}loadChildren(e,t){if(this.childrenLoaders.get(t))return this.childrenLoaders.get(t);if(t._loadedRoutes)return(0,ke.of)({routes:t._loadedRoutes,injector:t._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(t);const u=this.loadModuleFactoryOrRoutes(t.loadChildren).pipe((0,qe.U)(l=>{this.onLoadEndListener&&this.onLoadEndListener(t);let n,i,a=!1;Array.isArray(l)?i=l:(n=l.create(e).injector,i=eu(n.get(Ba,[],_.XFs.Self|_.XFs.Optional)));return{routes:i.map(Pa),injector:n}}),va(()=>{this.childrenLoaders.delete(t)})),d=new vs(u,()=>new Ee.x).pipe(Tn());return this.childrenLoaders.set(t,d),d}loadModuleFactoryOrRoutes(e){return $n(e()).pipe((0,fi.z)(t=>t instanceof _.YKP||Array.isArray(t)?(0,ke.of)(t):(0,_t.D)(this.compiler.compileModuleAsync(t))))}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(_.zs3),_.LFG(_.Sil))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();class qs{}class AC{shouldProcessUrl(r){return!0}extract(r){return r}merge(r,e){return r}}function Gs(o){throw o}function gc(o,r,e){return r.parse("/")}const Mf={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},xC={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function Va(){const o=(0,_.f3M)(_o),r=(0,_.f3M)(yo),e=(0,_.f3M)(M.Ye),t=(0,_.f3M)(_.zs3),s=(0,_.f3M)(_.Sil),u=(0,_.f3M)(Ba,{optional:!0})??[],d=(0,_.f3M)(Au,{optional:!0})??{},l=(0,_.f3M)(yu),n=(0,_.f3M)(wu,{optional:!0}),i=(0,_.f3M)(qs,{optional:!0}),a=(0,_.f3M)(vu,{optional:!0}),c=new Kt(null,o,r,e,t,s,eu(u));return i&&(c.urlHandlingStrategy=i),a&&(c.routeReuseStrategy=a),c.titleStrategy=n??l,function SC(o,r){o.errorHandler&&(r.errorHandler=o.errorHandler),o.malformedUriErrorHandler&&(r.malformedUriErrorHandler=o.malformedUriErrorHandler),o.onSameUrlNavigation&&(r.onSameUrlNavigation=o.onSameUrlNavigation),o.paramsInheritanceStrategy&&(r.paramsInheritanceStrategy=o.paramsInheritanceStrategy),o.relativeLinkResolution&&(r.relativeLinkResolution=o.relativeLinkResolution),o.urlUpdateStrategy&&(r.urlUpdateStrategy=o.urlUpdateStrategy),o.canceledNavigationResolution&&(r.canceledNavigationResolution=o.canceledNavigationResolution)}(d,c),c}let Kt=(()=>{class o{constructor(e,t,s,u,d,l,n){this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=s,this.location=u,this.config=n,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Ee.x,this.errorHandler=Gs,this.malformedUriErrorHandler=gc,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>(0,ke.of)(void 0),this.urlHandlingStrategy=new AC,this.routeReuseStrategy=new yC,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=d.get(mc),this.configLoader.onLoadEndListener=h=>this.triggerEvent(new tf(h)),this.configLoader.onLoadStartListener=h=>this.triggerEvent(new lu(h)),this.ngModule=d.get(_.h0i),this.console=d.get(_.c2e);const c=d.get(_.R0b);this.isNgZoneEnabled=c instanceof _.R0b&&_.R0b.isInAngularZone(),this.resetConfig(n),this.currentUrlTree=function xs(){return new fn(new dt([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=lf(this.currentUrlTree,this.rootComponentType),this.transitions=new Ut({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){return this.location.getState()?.\u0275routerPageId}setupNavigations(e){const t=this.events;return e.pipe((0,Wt.h)(s=>0!==s.id),(0,qe.U)(s=>({...s,extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),(0,Bi.w)(s=>{let u=!1,d=!1;return(0,ke.of)(s).pipe((0,$t.b)(l=>{this.currentNavigation={id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,Bi.w)(l=>{const n=this.browserUrlTree.toString(),i=!this.navigated||l.extractedUrl.toString()!==n||n!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||i)&&this.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return EC(l.source)&&(this.browserUrlTree=l.extractedUrl),(0,ke.of)(l).pipe((0,Bi.w)(c=>{const h=this.transitions.getValue();return t.next(new Xl(c.id,this.serializeUrl(c.extractedUrl),c.source,c.restoredState)),h!==this.transitions.getValue()?Nt.E:Promise.resolve(c)}),function ln(o,r,e,t){return(0,Bi.w)(s=>function Z0(o,r,e,t,s){return new Af(o,r,e,t,s).apply()}(o,r,e,s.extractedUrl,t).pipe((0,qe.U)(u=>({...s,urlAfterRedirects:u}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,$t.b)(c=>{this.currentNavigation={...this.currentNavigation,finalUrl:c.urlAfterRedirects},s.urlAfterRedirects=c.urlAfterRedirects}),function pc(o,r,e,t,s,u){return(0,fi.z)(d=>function xf(o,r,e,t,s,u,d="emptyOnly",l="legacy"){return new pC(o,r,e,t,s,d,l,u).recognize().pipe((0,Bi.w)(n=>null===n?function X0(o){return new Qe.y(r=>r.error(o))}(new Po):(0,ke.of)(n)))}(o,r,e,d.urlAfterRedirects,t.serialize(d.urlAfterRedirects),t,s,u).pipe((0,qe.U)(l=>({...d,targetSnapshot:l}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,$t.b)(c=>{if(s.targetSnapshot=c.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!c.extras.skipLocationChange){const f=this.urlHandlingStrategy.merge(c.urlAfterRedirects,c.rawUrl);this.setBrowserUrl(f,c)}this.browserUrlTree=c.urlAfterRedirects}const h=new ou(c.id,this.serializeUrl(c.extractedUrl),this.serializeUrl(c.urlAfterRedirects),c.targetSnapshot);t.next(h)}));if(i&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:h,extractedUrl:f,source:m,restoredState:p,extras:w}=l,R=new Xl(h,this.serializeUrl(f),m,p);t.next(R);const J=lf(f,this.rootComponentType).snapshot;return s={...l,targetSnapshot:J,urlAfterRedirects:f,extras:{...w,skipLocationChange:!1,replaceUrl:!1}},(0,ke.of)(s)}return this.rawUrlTree=l.rawUrl,l.resolve(null),Nt.E}),(0,$t.b)(l=>{const n=new Xp(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(n)}),(0,qe.U)(l=>s={...l,guards:mf(l.targetSnapshot,l.currentSnapshot,this.rootContexts)}),function gu(o,r){return(0,fi.z)(e=>{const{targetSnapshot:t,currentSnapshot:s,guards:{canActivateChecks:u,canDeactivateChecks:d}}=e;return 0===d.length&&0===u.length?(0,ke.of)({...e,guardsResult:!0}):function Eo(o,r,e,t){return(0,_t.D)(o).pipe((0,fi.z)(s=>function $0(o,r,e,t,s){const u=r&&r.routeConfig?r.routeConfig.canDeactivate:null;if(!u||0===u.length)return(0,ke.of)(!0);const d=u.map(l=>{const n=cc(l,r,s);return $n(function cC(o){return o&&xo(o.canDeactivate)}(n)?n.canDeactivate(o,r,e,t):n(o,r,e,t)).pipe((0,Vi.P)())});return(0,ke.of)(d).pipe(Ia())}(s.component,s.route,e,r,t)),(0,Vi.P)(s=>!0!==s,!0))}(d,t,s,o).pipe((0,fi.z)(l=>l&&function So(o){return"boolean"==typeof o}(l)?function z0(o,r,e,t){return(0,_t.D)(r).pipe((0,Bt.b)(s=>(0,Ui.z)(function Pt(o,r){return null!==o&&r&&r(new nf(o)),(0,ke.of)(!0)}(s.route.parent,t),function dC(o,r){return null!==o&&r&&r(new af(o)),(0,ke.of)(!0)}(s.route,t),function W0(o,r,e){const t=r[r.length-1],u=r.slice(0,r.length-1).reverse().map(d=>function gf(o){const r=o.routeConfig?o.routeConfig.canActivateChild:null;return r&&0!==r.length?{node:o,guards:r}:null}(d)).filter(d=>null!==d).map(d=>on(()=>{const l=d.guards.map(n=>{const i=cc(n,d.node,e);return $n(function mu(o){return o&&xo(o.canActivateChild)}(i)?i.canActivateChild(t,o):i(t,o)).pipe((0,Vi.P)())});return(0,ke.of)(l).pipe(Ia())}));return(0,ke.of)(u).pipe(Ia())}(o,s.path,e),function G0(o,r,e){const t=r.routeConfig?r.routeConfig.canActivate:null;if(!t||0===t.length)return(0,ke.of)(!0);const s=t.map(u=>on(()=>{const d=cc(u,r,e);return $n(function _f(o){return o&&xo(o.canActivate)}(d)?d.canActivate(r,o):d(r,o)).pipe((0,Vi.P)())}));return(0,ke.of)(s).pipe(Ia())}(o,s.route,e))),(0,Vi.P)(s=>!0!==s,!0))}(t,u,o,r):(0,ke.of)(l)),(0,qe.U)(l=>({...e,guardsResult:l})))})}(this.ngModule.injector,l=>this.triggerEvent(l)),(0,$t.b)(l=>{if(s.guardsResult=l.guardsResult,wt(l.guardsResult))throw df(0,l.guardsResult);const n=new su(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.triggerEvent(n)}),(0,Wt.h)(l=>!!l.guardsResult||(this.restoreHistory(l),this.cancelNavigationTransition(l,"",3),!1)),Jt(l=>{if(l.guards.canActivateChecks.length)return(0,ke.of)(l).pipe((0,$t.b)(n=>{const i=new Kb(n.id,this.serializeUrl(n.extractedUrl),this.serializeUrl(n.urlAfterRedirects),n.targetSnapshot);this.triggerEvent(i)}),(0,Bi.w)(n=>{let i=!1;return(0,ke.of)(n).pipe(function CC(o,r){return(0,fi.z)(e=>{const{targetSnapshot:t,guards:{canActivateChecks:s}}=e;if(!s.length)return(0,ke.of)(e);let u=0;return(0,_t.D)(s).pipe((0,Bt.b)(d=>function wC(o,r,e,t){const s=o.routeConfig,u=o._resolve;return void 0!==s?.title&&!Ef(s)&&(u[Cu]=s.title),function Tf(o,r,e,t){const s=function Us(o){return[...Object.keys(o),...Object.getOwnPropertySymbols(o)]}(o);if(0===s.length)return(0,ke.of)({});const u={};return(0,_t.D)(s).pipe((0,fi.z)(d=>function ko(o,r,e,t){const s=cc(o,r,t);return $n(s.resolve?s.resolve(r,e):s(r,e))}(o[d],r,e,t).pipe((0,Vi.P)(),(0,$t.b)(l=>{u[d]=l}))),Wn(1),(0,Zd.h)(u),(0,Et.K)(d=>Gr(d)?Nt.E:(0,wi._)(d)))}(u,o,r,t).pipe((0,qe.U)(d=>(o._resolvedData=d,o.data=Rs(o,e).resolve,s&&Ef(s)&&(o.data[Cu]=s.title),null)))}(d.route,t,o,r)),(0,$t.b)(()=>u++),Wn(1),(0,fi.z)(d=>u===s.length?(0,ke.of)(e):Nt.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,$t.b)({next:()=>i=!0,complete:()=>{i||(this.restoreHistory(n),this.cancelNavigationTransition(n,"",2))}}))}),(0,$t.b)(n=>{const i=new ef(n.id,this.serializeUrl(n.extractedUrl),this.serializeUrl(n.urlAfterRedirects),n.targetSnapshot);this.triggerEvent(i)}))}),Jt(l=>{const n=i=>{const a=[];i.routeConfig?.loadComponent&&!i.routeConfig._loadedComponent&&a.push(this.configLoader.loadComponent(i.routeConfig).pipe((0,$t.b)(c=>{i.component=c}),(0,qe.U)(()=>{})));for(const c of i.children)a.push(...n(c));return a};return(0,_r.a)(n(l.targetSnapshot.root)).pipe((0,Oi.d)(),(0,ri.q)(1))}),Jt(()=>this.afterPreactivation()),(0,qe.U)(l=>{const n=function eC(o,r,e){const t=Ps(o,r._root,e?e._root:void 0);return new du(t,r)}(this.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return s={...l,targetRouterState:n}}),(0,$t.b)(l=>{this.currentUrlTree=l.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(l.urlAfterRedirects,l.rawUrl),this.routerState=l.targetRouterState,"deferred"===this.urlUpdateStrategy&&(l.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,l),this.browserUrlTree=l.urlAfterRedirects)}),((o,r,e)=>(0,qe.U)(t=>(new oC(r,t.targetRouterState,t.currentRouterState,e).activate(o),t)))(this.rootContexts,this.routeReuseStrategy,l=>this.triggerEvent(l)),(0,$t.b)({next(){u=!0},complete(){u=!0}}),va(()=>{u||d||this.cancelNavigationTransition(s,"",1),this.currentNavigation?.id===s.id&&(this.currentNavigation=null)}),(0,Et.K)(l=>{if(d=!0,ks(l)){iC(l)||(this.navigated=!0,this.restoreHistory(s,!0));const n=new ec(s.id,this.serializeUrl(s.extractedUrl),l.message,l.cancellationCode);if(t.next(n),iC(l)){const i=this.urlHandlingStrategy.merge(l.url,this.rawUrlTree),a={skipLocationChange:s.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||EC(s.source)};this.scheduleNavigation(i,"imperative",null,a,{resolve:s.resolve,reject:s.reject,promise:s.promise})}else s.resolve(!1)}else{this.restoreHistory(s,!0);const n=new tc(s.id,this.serializeUrl(s.extractedUrl),l,s.targetSnapshot??void 0);t.next(n);try{s.resolve(this.errorHandler(l))}catch(i){s.reject(i)}}return Nt.E}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next({...this.transitions.value,...e})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const t="popstate"===e.type?"popstate":"hashchange";"popstate"===t&&setTimeout(()=>{const s={replaceUrl:!0},u=e.state?.navigationId?e.state:null;if(u){const l={...u};delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(s.state=l)}const d=this.parseUrl(e.url);this.scheduleNavigation(d,t,u,s)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){this.config=e.map(Pa),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,t={}){const{relativeTo:s,queryParams:u,fragment:d,queryParamsHandling:l,preserveFragment:n}=t,i=s||this.routerState.root,a=n?this.currentUrlTree.fragment:d;let c=null;switch(l){case"merge":c={...this.currentUrlTree.queryParams,...u};break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=u||null}return null!==c&&(c=this.removeEmptyProps(c)),we(i,this.currentUrlTree,e,c,a??null)}navigateByUrl(e,t={skipLocationChange:!1}){const s=wt(e)?e:this.parseUrl(e),u=this.urlHandlingStrategy.merge(s,this.rawUrlTree);return this.scheduleNavigation(u,"imperative",null,t)}navigate(e,t={skipLocationChange:!1}){return function TC(o){for(let r=0;r{const u=e[s];return null!=u&&(t[s]=u),t},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new Nr(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.titleStrategy?.updateTitle(this.routerState.snapshot),e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,t,s,u,d){if(this.disposed)return Promise.resolve(!1);let l,n,i;d?(l=d.resolve,n=d.reject,i=d.promise):i=new Promise((h,f)=>{l=h,n=f});const a=++this.navigationId;let c;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(s=this.location.getState()),c=s&&s.\u0275routerPageId?s.\u0275routerPageId:u.replaceUrl||u.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):c=0,this.setTransition({id:a,targetPageId:c,source:t,restoredState:s,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:u,resolve:l,reject:n,promise:i,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),i.catch(h=>Promise.reject(h))}setBrowserUrl(e,t){const s=this.urlSerializer.serialize(e),u={...t.extras.state,...this.generateNgRouterState(t.id,t.targetPageId)};this.location.isCurrentPathEqualTo(s)||t.extras.replaceUrl?this.location.replaceState(s,"",u):this.location.go(s,"",u)}restoreHistory(e,t=!1){if("computed"===this.canceledNavigationResolution){const s=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.currentNavigation?.finalUrl||0===s?this.currentUrlTree===this.currentNavigation?.finalUrl&&0===s&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(s)}else"replace"===this.canceledNavigationResolution&&(t&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,t,s){const u=new ec(e.id,this.serializeUrl(e.extractedUrl),t,s);this.triggerEvent(u),e.resolve(!1)}generateNgRouterState(e,t){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:t}:{navigationId:e}}}return o.\u0275fac=function(e){_.$Z()},o.\u0275prov=_.Yz7({token:o,factory:function(){return Va()},providedIn:"root"}),o})();function EC(o){return"imperative"!==o}class Df{}let Tu=(()=>{class o{constructor(e,t,s,u,d){this.router=e,this.injector=s,this.preloadingStrategy=u,this.loader=d}setUpPreloading(){this.subscription=this.router.events.pipe((0,Wt.h)(e=>e instanceof Nr),(0,Bt.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,t){const s=[];for(const u of t){u.providers&&!u._injector&&(u._injector=(0,_.MMx)(u.providers,e,`Route: ${u.path}`));const d=u._injector??e,l=u._loadedInjector??d;u.loadChildren&&!u._loadedRoutes&&void 0===u.canLoad||u.loadComponent&&!u._loadedComponent?s.push(this.preloadConfig(d,u)):(u.children||u._loadedRoutes)&&s.push(this.processRoutes(l,u.children??u._loadedRoutes))}return(0,_t.D)(s).pipe((0,As.J)())}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>{let s;s=t.loadChildren&&void 0===t.canLoad?this.loader.loadChildren(e,t):(0,ke.of)(null);const u=s.pipe((0,fi.z)(d=>null===d?(0,ke.of)(void 0):(t._loadedRoutes=d.routes,t._loadedInjector=d.injector,this.processRoutes(d.injector??e,d.routes))));if(t.loadComponent&&!t._loadedComponent){const d=this.loader.loadComponent(t);return(0,_t.D)([u,d]).pipe((0,As.J)())}return u})}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(Kt),_.LFG(_.Sil),_.LFG(_.lqb),_.LFG(Df),_.LFG(mc))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac}),o})();const Hf=new _.OlP("");let Rf=(()=>{class o{constructor(e,t,s={}){this.router=e,this.viewportScroller=t,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration=s.scrollPositionRestoration||"disabled",s.anchorScrolling=s.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(e=>{e instanceof Xl?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Nr&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof sf&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,t){this.router.triggerEvent(new sf(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return o.\u0275fac=function(e){_.$Z()},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac}),o})();const HC=new _.OlP("ROUTER_FORROOT_GUARD"),bc=new _.OlP(""),RC=[M.Ye,{provide:_o,useClass:Ts},{provide:Kt,useFactory:Va},yo,{provide:qr,useFactory:function Pf(o){return o.routerState.root},deps:[Kt]},mc];function Cc(){return new _.PXZ("Router",Kt)}let Bo=(()=>{class o{constructor(e){}static forRoot(e,t){return{ngModule:o,providers:[RC,[],Ws(e),{provide:HC,useFactory:ix,deps:[[Kt,new _.FiY,new _.tp0]]},{provide:Au,useValue:t||{}},t?.useHash?{provide:M.S$,useClass:M.Do}:{provide:M.S$,useClass:M.b0},{provide:Hf,useFactory:()=>{const o=(0,_.f3M)(Kt),r=(0,_.f3M)(M.EM),e=(0,_.f3M)(Au);return e.scrollOffset&&r.setOffset(e.scrollOffset),new Rf(o,r,e)}},t?.preloadingStrategy?OC(t.preloadingStrategy):[],{provide:_.PXZ,multi:!0,useFactory:Cc},t?.initialNavigation?If(t):[],[{provide:Mu,useFactory:Eu},{provide:_.tb,multi:!0,useExisting:Mu}]]}}static forChild(e){return{ngModule:o,providers:[Ws(e)]}}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(HC,8))},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({}),o})();function ix(o){return"guarded"}function Ws(o){return[{provide:Ba,multi:!0,useValue:o}]}function Eu(){const o=(0,_.f3M)(_.zs3);return r=>{const e=o.get(_.z2F);if(r!==e.components[0])return;const t=o.get(Kt),s=o.get(Wr);1===o.get(Du)&&t.initialNavigation(),o.get(bc,null,_.XFs.Optional)?.setUpPreloading(),o.get(Hf,null,_.XFs.Optional)?.init(),t.resetRootComponentType(e.componentTypes[0]),s.next(),s.complete()}}const Mu=new _.OlP("");function If(o){return["disabled"===o.initialNavigation?[{provide:_.ip1,multi:!0,useFactory:()=>{const o=(0,_.f3M)(Kt);return()=>{o.setUpLocationChangeListener()}}},{provide:Du,useValue:2}]:[],"enabledBlocking"===o.initialNavigation?[{provide:Du,useValue:0},{provide:_.ip1,multi:!0,deps:[_.zs3],useFactory:o=>{const r=o.get(M.V_,Promise.resolve(null));let e=!1;return()=>r.then(()=>new Promise(s=>{const u=o.get(Kt),d=o.get(Wr);(function t(s){o.get(Kt).events.pipe((0,Wt.h)(d=>d instanceof Nr||d instanceof ec||d instanceof tc),(0,qe.U)(d=>d instanceof Nr||d instanceof ec&&(0===d.code||1===d.code)&&null),(0,Wt.h)(d=>null!==d),(0,ri.q)(1)).subscribe(()=>{s()})})(()=>{s(!0),e=!0}),u.afterPreactivation=()=>(s(!0),e||d.closed?(0,ke.of)(void 0):d),u.initialNavigation()}))}}]:[]]}const Wr=new _.OlP("",{factory:()=>new Ee.x}),Du=new _.OlP("",{providedIn:"root",factory:()=>1});function OC(o){return[Tu,{provide:bc,useExisting:Tu},{provide:Df,useExisting:o}]}let Oo=(()=>{class o{constructor(){this.title="linker"}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=_.Xpm({type:o,selectors:[["perun-web-apps-root"]],decls:1,vars:0,template:function(e,t){1&e&&_._UZ(0,"router-outlet")},dependencies:[ac]}),o})();var Qr=E(1214);let Hu;try{Hu=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Hu=!1}let Lo,gi=(()=>{class o{constructor(e){this._platformId=e,this.isBrowser=this._platformId?(0,M.NF)(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&&!Hu)&&typeof CSS<"u"&&!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 o.\u0275fac=function(e){return new(e||o)(_.LFG(_.Lbi))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const Bf=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Ru(){if(Lo)return Lo;if("object"!=typeof document||!document)return Lo=new Set(Bf),Lo;let o=document.createElement("input");return Lo=new Set(Bf.filter(r=>(o.setAttribute("type",r),o.type===r))),Lo}let $s,wc,jo,yc;function er(o){return function LC(){if(null==$s&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>$s=!0}))}finally{$s=$s||!1}return $s}()?o:!!o.capture}function Vf(){if(null==jo){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return jo=!1,jo;if("scrollBehavior"in document.documentElement.style)jo=!0;else{const o=Element.prototype.scrollTo;jo=!!o&&!/\{\s*\[native code\]\s*\}/.test(o.toString())}}return jo}function xr(){if("object"!=typeof document||!document)return 0;if(null==wc){const o=document.createElement("div"),r=o.style;o.dir="rtl",r.width="1px",r.overflow="auto",r.visibility="hidden",r.pointerEvents="none",r.position="absolute";const e=document.createElement("div"),t=e.style;t.width="2px",t.height="1px",o.appendChild(e),document.body.appendChild(o),wc=0,0===o.scrollLeft&&(o.scrollLeft=1,wc=0===o.scrollLeft?1:2),o.remove()}return wc}function Yr(o){if(function tr(){if(null==yc){const o=typeof document<"u"?document.head:null;yc=!(!o||!o.createShadowRoot&&!o.attachShadow)}return yc}()){const r=o.getRootNode?o.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&r instanceof ShadowRoot)return r}return null}function vc(){let o=typeof document<"u"&&document?document.activeElement:null;for(;o&&o.shadowRoot;){const r=o.shadowRoot.activeElement;if(r===o)break;o=r}return o}function mn(o){return o.composedPath?o.composedPath()[0]:o.target}function Ac(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function Sr(o,...r){return r.length?r.some(e=>o[e]):o.altKey||o.shiftKey||o.ctrlKey||o.metaKey}var Rc=E(8372);function Pc(o){return(0,Wt.h)((r,e)=>o<=e)}function Mi(o,r=Ql.y){return o=o??Js,(0,di.e)((e,t)=>{let s,u=!0;e.subscribe((0,Lt.x)(t,d=>{const l=r(d);(u||!o(s,l))&&(u=!1,s=l,t.next(d))}))})}function Js(o,r){return o===r}var Ou=E(5032);function It(o){return(0,di.e)((r,e)=>{(0,Gn.Xf)(o).subscribe((0,Lt.x)(e,()=>e.complete(),Ou.Z)),!e.closed&&r.subscribe(e)})}function ut(o){return null!=o&&"false"!=`${o}`}function ji(o,r=0){return function cw(o){return!isNaN(parseFloat(o))&&!isNaN(Number(o))}(o)?Number(o):r}function Ks(o){return Array.isArray(o)?o:[o]}function ui(o){return null==o?"":"string"==typeof o?o:`${o}px`}function Zt(o){return o instanceof _.SBq?o.nativeElement:o}let am=(()=>{class o{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),dw=(()=>{class o{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,t)=>this._cleanupObserver(t))}observe(e){const t=Zt(e);return new Qe.y(s=>{const d=this._observeElement(t).subscribe(s);return()=>{d.unsubscribe(),this._unobserveElement(t)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const t=new Ee.x,s=this._mutationObserverFactory.create(u=>t.next(u));s&&s.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:s,stream:t,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:t,stream:s}=this._observedElements.get(e);t&&t.disconnect(),s.complete(),this._observedElements.delete(e)}}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(am))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Lu=(()=>{class o{constructor(e,t,s){this._contentObserver=e,this._elementRef=t,this._ngZone=s,this.event=new _.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=ut(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=ji(e),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe((0,Rc.b)(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(dw),_.Y36(_.SBq),_.Y36(_.R0b))},o.\u0275dir=_.lG2({type:o,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),o})(),Zs=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({providers:[am]}),o})();const La=new Set;let Xi,uw=(()=>{class o{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Qx}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function hw(o){if(!La.has(o))try{Xi||(Xi=document.createElement("style"),Xi.setAttribute("type","text/css"),document.head.appendChild(Xi)),Xi.sheet&&(Xi.sheet.insertRule(`@media ${o} {body{ }}`,0),La.add(o))}catch(r){console.error(r)}}(e),this._matchMedia(e)}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(gi))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();function Qx(o){return{matches:"all"===o||""===o,media:o,addListener:()=>{},removeListener:()=>{}}}let Yx=(()=>{class o{constructor(e,t){this._mediaMatcher=e,this._zone=t,this._queries=new Map,this._destroySubject=new Ee.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return ju(Ks(e)).some(s=>this._registerQuery(s).mql.matches)}observe(e){const s=ju(Ks(e)).map(d=>this._registerQuery(d).observable);let u=(0,_r.a)(s);return u=(0,Ui.z)(u.pipe((0,ri.q)(1)),u.pipe(Pc(1),(0,Rc.b)(0))),u.pipe((0,qe.U)(d=>{const l={matches:!1,breakpoints:{}};return d.forEach(({matches:n,query:i})=>{l.matches=l.matches||n,l.breakpoints[i]=n}),l}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const t=this._mediaMatcher.matchMedia(e),u={observable:new Qe.y(d=>{const l=n=>this._zone.run(()=>d.next(n));return t.addListener(l),()=>{t.removeListener(l)}}).pipe(Si(t),(0,qe.U)(({matches:d})=>({query:e,matches:d})),It(this._destroySubject)),mql:t};return this._queries.set(e,u),u}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(uw),_.LFG(_.R0b))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();function ju(o){return o.map(r=>r.split(",")).reduce((r,e)=>r.concat(e)).map(r=>r.trim())}let Xs=(()=>{class o{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function Fu(o){return!!(o.offsetWidth||o.offsetHeight||"function"==typeof o.getClientRects&&o.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const t=function _w(o){try{return o.frameElement}catch{return null}}(function qu(o){return o.ownerDocument&&o.ownerDocument.defaultView||window}(e));if(t&&(-1===Uu(t)||!this.isVisible(t)))return!1;let s=e.nodeName.toLowerCase(),u=Uu(e);return e.hasAttribute("contenteditable")?-1!==u:!("iframe"===s||"object"===s||this._platform.WEBKIT&&this._platform.IOS&&!function Nu(o){let r=o.nodeName.toLowerCase(),e="input"===r&&o.type;return"text"===e||"password"===e||"select"===r||"textarea"===r}(e))&&("audio"===s?!!e.hasAttribute("controls")&&-1!==u:"video"===s?-1!==u&&(null!==u||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,t){return function fm(o){return!function Cw(o){return function yw(o){return"input"==o.nodeName.toLowerCase()}(o)&&"hidden"==o.type}(o)&&(function bw(o){let r=o.nodeName.toLowerCase();return"input"===r||"select"===r||"button"===r||"textarea"===r}(o)||function ww(o){return function vw(o){return"a"==o.nodeName.toLowerCase()}(o)&&o.hasAttribute("href")}(o)||o.hasAttribute("contenteditable")||pm(o))}(e)&&!this.isDisabled(e)&&(t?.ignoreVisibility||this.isVisible(e))}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(gi))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();function pm(o){if(!o.hasAttribute("tabindex")||void 0===o.tabIndex)return!1;let r=o.getAttribute("tabindex");return!(!r||isNaN(parseInt(r,10)))}function Uu(o){if(!pm(o))return null;const r=parseInt(o.getAttribute("tabindex")||"",10);return isNaN(r)?-1:r}class Aw{constructor(r,e,t,s,u=!1){this._element=r,this._checker=e,this._ngZone=t,this._document=s,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,u||this.attachAnchors()}get enabled(){return this._enabled}set enabled(r){this._enabled=r,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(r,this._startAnchor),this._toggleAnchorTabIndex(r,this._endAnchor))}destroy(){const r=this._startAnchor,e=this._endAnchor;r&&(r.removeEventListener("focus",this.startAnchorListener),r.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),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(r){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(r)))})}focusFirstTabbableElementWhenReady(r){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(r)))})}focusLastTabbableElementWhenReady(r){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(r)))})}_getRegionBoundary(r){const e=this._element.querySelectorAll(`[cdk-focus-region-${r}], [cdkFocusRegion${r}], [cdk-focus-${r}]`);return"start"==r?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(r){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const t=this._getFirstTabbableElement(e);return t?.focus(r),!!t}return e.focus(r),!0}return this.focusFirstTabbableElement(r)}focusFirstTabbableElement(r){const e=this._getRegionBoundary("start");return e&&e.focus(r),!!e}focusLastTabbableElement(r){const e=this._getRegionBoundary("end");return e&&e.focus(r),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(r){if(this._checker.isFocusable(r)&&this._checker.isTabbable(r))return r;const e=r.children;for(let t=0;t=0;t--){const s=e[t].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[t]):null;if(s)return s}return null}_createAnchor(){const r=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,r),r.classList.add("cdk-visually-hidden"),r.classList.add("cdk-focus-trap-anchor"),r.setAttribute("aria-hidden","true"),r}_toggleAnchorTabIndex(r,e){r?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(r){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(r,this._startAnchor),this._toggleAnchorTabIndex(r,this._endAnchor))}_executeOnStable(r){this._ngZone.isStable?r():this._ngZone.onStable.pipe((0,ri.q)(1)).subscribe(r)}}let zu=(()=>{class o{constructor(e,t,s){this._checker=e,this._ngZone=t,this._document=s}create(e,t=!1){return new Aw(e,this._checker,this._ngZone,this._document,t)}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(Xs),_.LFG(_.R0b),_.LFG(M.K0))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();function mm(o){return 0===o.buttons||0===o.offsetX&&0===o.offsetY}function qo(o){const r=o.touches&&o.touches[0]||o.changedTouches&&o.changedTouches[0];return!(!r||-1!==r.identifier||null!=r.radiusX&&1!==r.radiusX||null!=r.radiusY&&1!==r.radiusY)}const Mw=new _.OlP("cdk-input-modality-detector-options"),gm={ignoreKeys:[18,17,224,91,16]},Fa=er({passive:!0,capture:!0});let Wu=(()=>{class o{constructor(e,t,s,u){this._platform=e,this._mostRecentTarget=null,this._modality=new Ut(null),this._lastTouchMs=0,this._onKeydown=d=>{this._options?.ignoreKeys?.some(l=>l===d.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=mn(d))},this._onMousedown=d=>{Date.now()-this._lastTouchMs<650||(this._modality.next(mm(d)?"keyboard":"mouse"),this._mostRecentTarget=mn(d))},this._onTouchstart=d=>{qo(d)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=mn(d))},this._options={...gm,...u},this.modalityDetected=this._modality.pipe(Pc(1)),this.modalityChanged=this.modalityDetected.pipe(Mi()),e.isBrowser&&t.runOutsideAngular(()=>{s.addEventListener("keydown",this._onKeydown,Fa),s.addEventListener("mousedown",this._onMousedown,Fa),s.addEventListener("touchstart",this._onTouchstart,Fa)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Fa),document.removeEventListener("mousedown",this._onMousedown,Fa),document.removeEventListener("touchstart",this._onTouchstart,Fa))}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(gi),_.LFG(_.R0b),_.LFG(M.K0),_.LFG(Mw,8))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const bm=new _.OlP("cdk-focus-monitor-default-options"),zo=er({passive:!0,capture:!0});let gn=(()=>{class o{constructor(e,t,s,u,d){this._ngZone=e,this._platform=t,this._inputModalityDetector=s,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new Ee.x,this._rootNodeFocusAndBlurListener=l=>{for(let i=mn(l);i;i=i.parentElement)"focus"===l.type?this._onFocus(l,i):this._onBlur(l,i)},this._document=u,this._detectionMode=d?.detectionMode||0}monitor(e,t=!1){const s=Zt(e);if(!this._platform.isBrowser||1!==s.nodeType)return(0,ke.of)(null);const u=Yr(s)||this._getDocument(),d=this._elementInfo.get(s);if(d)return t&&(d.checkChildren=!0),d.subject;const l={checkChildren:t,subject:new Ee.x,rootNode:u};return this._elementInfo.set(s,l),this._registerGlobalListeners(l),l.subject}stopMonitoring(e){const t=Zt(e),s=this._elementInfo.get(t);s&&(s.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(s))}focusVia(e,t,s){const u=Zt(e);u===this._getDocument().activeElement?this._getClosestElementsInfo(u).forEach(([l,n])=>this._originChanged(l,t,n)):(this._setOrigin(t),"function"==typeof u.focus&&u.focus(s))}ngOnDestroy(){this._elementInfo.forEach((e,t)=>this.stopMonitoring(t))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,t){e.classList.toggle("cdk-focused",!!t),e.classList.toggle("cdk-touch-focused","touch"===t),e.classList.toggle("cdk-keyboard-focused","keyboard"===t),e.classList.toggle("cdk-mouse-focused","mouse"===t),e.classList.toggle("cdk-program-focused","program"===t)}_setOrigin(e,t=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&t,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,t){const s=this._elementInfo.get(t),u=mn(e);!s||!s.checkChildren&&t!==u||this._originChanged(t,this._getFocusOrigin(u),s)}_onBlur(e,t){const s=this._elementInfo.get(t);!s||s.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(s,null))}_emitOrigin(e,t){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(t))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const t=e.rootNode,s=this._rootNodeFocusListenerCount.get(t)||0;s||this._ngZone.runOutsideAngular(()=>{t.addEventListener("focus",this._rootNodeFocusAndBlurListener,zo),t.addEventListener("blur",this._rootNodeFocusAndBlurListener,zo)}),this._rootNodeFocusListenerCount.set(t,s+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(It(this._stopInputModalityDetector)).subscribe(u=>{this._setOrigin(u,!0)}))}_removeGlobalListeners(e){const t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){const s=this._rootNodeFocusListenerCount.get(t);s>1?this._rootNodeFocusListenerCount.set(t,s-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,zo),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,zo),this._rootNodeFocusListenerCount.delete(t))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,t,s){this._setClasses(e,t),this._emitOrigin(s,t),this._lastFocusOrigin=t}_getClosestElementsInfo(e){const t=[];return this._elementInfo.forEach((s,u)=>{(u===e||s.checkChildren&&u.contains(e))&&t.push([u,s])}),t}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:t,mostRecentModality:s}=this._inputModalityDetector;if("mouse"!==s||!t||t===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const u=e.labels;if(u)for(let d=0;d{class o{constructor(e,t){this._platform=e,this._document=t,this._breakpointSubscription=(0,_.f3M)(Yx).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const t=this._document.defaultView||window,s=t&&t.getComputedStyle?t.getComputedStyle(e):null,u=(s&&s.backgroundColor||"").replace(/ /g,"");switch(e.remove(),u){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(Yu,Qu,Cm),this._hasCheckedHighContrastMode=!0;const t=this.getHighContrastMode();1===t?e.add(Yu,Qu):2===t&&e.add(Yu,Cm)}}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(gi),_.LFG(M.K0))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Ua=(()=>{class o{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(Ju))},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[Zs]}),o})();const wm=new _.OlP("cdk-dir-doc",{providedIn:"root",factory:function Zx(){return(0,_.f3M)(M.K0)}}),ym=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Rn=(()=>{class o{constructor(e){if(this.value="ltr",this.change=new _.vpe,e){const s=e.documentElement?e.documentElement.dir:null;this.value=function Rw(o){const r=o?.toLowerCase()||"";return"auto"===r&&typeof navigator<"u"&&navigator?.language?ym.test(navigator.language)?"rtl":"ltr":"rtl"===r?"rtl":"ltr"}((e.body?e.body.dir:null)||s||"ltr")}}ngOnDestroy(){this.change.complete()}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(wm,8))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Go=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({}),o})();const Bw=new _.OlP("mat-sanity-checks",{providedIn:"root",factory:function kw(){return!0}});let Se=(()=>{class o{constructor(e,t,s){this._sanityChecks=t,this._document=s,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!Ac()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(Ju),_.LFG(Bw,8),_.LFG(M.K0))},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[Go,Go]}),o})();function Bc(o){return class extends o{constructor(...r){super(...r),this._disabled=!1}get disabled(){return this._disabled}set disabled(r){this._disabled=ut(r)}}}function Na(o,r){return class extends o{constructor(...e){super(...e),this.defaultColor=r,this.color=r}get color(){return this._color}set color(e){const t=e||this.defaultColor;t!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),t&&this._elementRef.nativeElement.classList.add(`mat-${t}`),this._color=t)}}}function Jr(o){return class extends o{constructor(...r){super(...r),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(r){this._disableRipple=ut(r)}}}function Ku(o){return class extends o{constructor(...r){super(...r),this.errorState=!1}updateErrorState(){const r=this.errorState,u=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);u!==r&&(this.errorState=u,this.stateChanges.next())}}}const jw=new _.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function aS(){return(0,_.f3M)(_.soG)}});class bn{constructor(){this._localeChanges=new Ee.x,this.localeChanges=this._localeChanges}getValidDateOrNull(r){return this.isDateInstance(r)&&this.isValid(r)?r:null}deserialize(r){return null==r||this.isDateInstance(r)&&this.isValid(r)?r:this.invalid()}setLocale(r){this.locale=r,this._localeChanges.next()}compareDate(r,e){return this.getYear(r)-this.getYear(e)||this.getMonth(r)-this.getMonth(e)||this.getDate(r)-this.getDate(e)}sameDate(r,e){if(r&&e){let t=this.isValid(r),s=this.isValid(e);return t&&s?!this.compareDate(r,e):t==s}return r==e}clampDate(r,e,t){return e&&this.compareDate(r,e)<0?e:t&&this.compareDate(r,t)>0?t:r}}const tl=new _.OlP("mat-date-formats"),qa=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Zu(o,r){const e=Array(o);for(let t=0;t{class o extends bn{constructor(e,t){super(),this.useUtcForDisplay=!1,super.setLocale(e)}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){const t=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return Zu(12,s=>this._format(t,new Date(2017,s,1)))}getDateNames(){const e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Zu(31,t=>this._format(e,new Date(2017,0,t+1)))}getDayOfWeekNames(e){const t=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return Zu(7,s=>this._format(t,new Date(2017,0,s+1)))}getYearName(e){const t=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(t,e)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,t,s){let u=this._createDateWithOverflow(e,t,s);return u.getMonth(),u}today(){return new Date}parse(e,t){return"number"==typeof e?new Date(e):e?new Date(Date.parse(e)):null}format(e,t){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");const s=new Intl.DateTimeFormat(this.locale,{...t,timeZone:"utc"});return this._format(s,e)}addCalendarYears(e,t){return this.addCalendarMonths(e,12*t)}addCalendarMonths(e,t){let s=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+t,this.getDate(e));return this.getMonth(s)!=((this.getMonth(e)+t)%12+12)%12&&(s=this._createDateWithOverflow(this.getYear(s),this.getMonth(s),0)),s}addCalendarDays(e,t){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+t)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if("string"==typeof e){if(!e)return null;if(qa.test(e)){let t=new Date(e);if(this.isValid(t))return t}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(e,t,s){const u=new Date;return u.setFullYear(e,t,s),u.setHours(0,0,0,0),u}_2digit(e){return("00"+e).slice(-2)}_format(e,t){const s=new Date;return s.setUTCFullYear(t.getFullYear(),t.getMonth(),t.getDate()),s.setUTCHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e.format(s)}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(jw,8),_.LFG(gi))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac}),o})();const Xu={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 Fw=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({providers:[{provide:bn,useClass:Vc}]}),o})(),Uw=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({providers:[{provide:tl,useValue:Xu}],imports:[Fw]}),o})(),Oc=(()=>{class o{isErrorState(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),jc=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[Se,Se]}),o})();class Wo{constructor(r,e,t,s=!1){this._renderer=r,this.element=e,this.config=t,this._animationForciblyDisabledThroughCss=s,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Sm={enterDuration:225,exitDuration:150},$o=er({passive:!0}),Em=["mousedown","touchstart"],eh=["mouseup","mouseleave","touchend","touchcancel"];class Mm{constructor(r,e,t,s){this._target=r,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,s.isBrowser&&(this._containerElement=Zt(t))}fadeInRipple(r,e,t={}){const s=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),u={...Sm,...t.animation};t.centered&&(r=s.left+s.width/2,e=s.top+s.height/2);const d=t.radius||function qw(o,r,e){const t=Math.max(Math.abs(o-e.left),Math.abs(o-e.right)),s=Math.max(Math.abs(r-e.top),Math.abs(r-e.bottom));return Math.sqrt(t*t+s*s)}(r,e,s),l=r-s.left,n=e-s.top,i=u.enterDuration,a=document.createElement("div");a.classList.add("mat-ripple-element"),a.style.left=l-d+"px",a.style.top=n-d+"px",a.style.height=2*d+"px",a.style.width=2*d+"px",null!=t.color&&(a.style.backgroundColor=t.color),a.style.transitionDuration=`${i}ms`,this._containerElement.appendChild(a);const c=window.getComputedStyle(a),f=c.transitionDuration,m="none"===c.transitionProperty||"0s"===f||"0s, 0s"===f,p=new Wo(this,a,t,m);a.style.transform="scale3d(1, 1, 1)",p.state=0,t.persistent||(this._mostRecentTransientRipple=p);let w=null;return!m&&(i||u.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const R=()=>this._finishRippleTransition(p),J=()=>this._destroyRipple(p);a.addEventListener("transitionend",R),a.addEventListener("transitioncancel",J),w={onTransitionEnd:R,onTransitionCancel:J}}),this._activeRipples.set(p,w),(m||!i)&&this._finishRippleTransition(p),p}fadeOutRipple(r){if(2===r.state||3===r.state)return;const e=r.element,t={...Sm,...r.config.animation};e.style.transitionDuration=`${t.exitDuration}ms`,e.style.opacity="0",r.state=2,(r._animationForciblyDisabledThroughCss||!t.exitDuration)&&this._finishRippleTransition(r)}fadeOutAll(){this._getActiveRipples().forEach(r=>r.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(r=>{r.config.persistent||r.fadeOut()})}setupTriggerEvents(r){const e=Zt(r);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(Em))}handleEvent(r){"mousedown"===r.type?this._onMousedown(r):"touchstart"===r.type?this._onTouchStart(r):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(eh),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(r){0===r.state?this._startFadeOutTransition(r):2===r.state&&this._destroyRipple(r)}_startFadeOutTransition(r){const e=r===this._mostRecentTransientRipple,{persistent:t}=r.config;r.state=1,!t&&(!e||!this._isPointerDown)&&r.fadeOut()}_destroyRipple(r){const e=this._activeRipples.get(r)??null;this._activeRipples.delete(r),this._activeRipples.size||(this._containerRect=null),r===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),r.state=3,null!==e&&(r.element.removeEventListener("transitionend",e.onTransitionEnd),r.element.removeEventListener("transitioncancel",e.onTransitionCancel)),r.element.remove()}_onMousedown(r){const e=mm(r),t=this._lastTouchStartEvent&&Date.now(){!r.config.persistent&&(1===r.state||r.config.terminateOnPointerUp&&0===r.state)&&r.fadeOut()}))}_registerEvents(r){this._ngZone.runOutsideAngular(()=>{r.forEach(e=>{this._triggerElement.addEventListener(e,this,$o)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(Em.forEach(r=>{this._triggerElement.removeEventListener(r,this,$o)}),this._pointerUpEventsRegistered&&eh.forEach(r=>{this._triggerElement.removeEventListener(r,this,$o)}))}}const Dm=new _.OlP("mat-ripple-global-options");let za=(()=>{class o{constructor(e,t,s,u,d){this._elementRef=e,this._animationMode=d,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=u||{},this._rippleRenderer=new Mm(this,t,e,s)}get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...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(e,t=0,s){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,{...this.rippleConfig,...s}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...e})}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(_.SBq),_.Y36(_.R0b),_.Y36(gi),_.Y36(Dm,8),_.Y36(_.QbO,8))},o.\u0275dir=_.lG2({type:o,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&_.ekj("mat-ripple-unbounded",t.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),o})(),Cn=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[Se,Se]}),o})(),th=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[Se]}),o})(),Fc=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[Cn,M.ez,Se,th]}),o})();const Qw=["mat-button",""],nh=["*"],Im=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],ah=Na(Bc(Jr(class{constructor(o){this._elementRef=o}})));let Zr=(()=>{class o extends ah{constructor(e,t,s){super(e),this._focusMonitor=t,this._animationMode=s,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const u of Im)this._hasHostAttributes(u)&&this._getHostElement().classList.add(u);e.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(e,t){e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...e){return e.some(t=>this._getHostElement().hasAttribute(t))}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(_.SBq),_.Y36(gn),_.Y36(_.QbO,8))},o.\u0275cmp=_.Xpm({type:o,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(e,t){if(1&e&&_.Gf(za,5),2&e){let s;_.iGM(s=_.CRH())&&(t.ripple=s.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,t){2&e&&(_.uIk("disabled",t.disabled||null),_.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-button-disabled",t.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[_.qOj],attrs:Qw,ngContentSelectors:nh,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(e,t){1&e&&(_.F$t(),_.TgZ(0,"span",0),_.Hsn(1),_.qZA(),_._UZ(2,"span",1)(3,"span",2)),2&e&&(_.xp6(2),_.ekj("mat-button-ripple-round",t.isRoundButton||t.isIconButton),_.Q6J("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",t.isIconButton)("matRippleTrigger",t._getHostElement()))},dependencies:[za],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.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;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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-fab._mat-animation-noopable{transition:none !important;animation:none !important}.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;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.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:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.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}"],encapsulation:2,changeDetection:0}),o})(),Tr=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[Cn,Se,Se]}),o})();var Uc=E(1144),wn=E(576),Nc=E(3268);const oh=["addListener","removeListener"],sh=["addEventListener","removeEventListener"],sS=["on","off"];function Qo(o,r,e,t){if((0,wn.m)(e)&&(t=e,e=void 0),t)return Qo(o,r,e).pipe((0,Nc.Z)(t));const[s,u]=function Bm(o){return(0,wn.m)(o.addEventListener)&&(0,wn.m)(o.removeEventListener)}(o)?sh.map(d=>l=>o[d](r,l,e)):function Jw(o){return(0,wn.m)(o.addListener)&&(0,wn.m)(o.removeListener)}(o)?oh.map(km(o,r)):function Kw(o){return(0,wn.m)(o.on)&&(0,wn.m)(o.off)}(o)?sS.map(km(o,r)):[];if(!s&&(0,Uc.z)(o))return(0,fi.z)(d=>Qo(d,r,e))((0,Gn.Xf)(o));if(!s)throw new TypeError("Invalid event target");return new Qe.y(d=>{const l=(...n)=>d.next(1u(l)})}function km(o,r){return e=>t=>o[e](r,t)}var Zw=E(4408);const nl={schedule(o){let r=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:t}=nl;t&&(r=t.requestAnimationFrame,e=t.cancelAnimationFrame);const s=r(u=>{e=void 0,o(u)});return new Gt.w0(()=>e?.(s))},requestAnimationFrame(...o){const{delegate:r}=nl;return(r?.requestAnimationFrame||requestAnimationFrame)(...o)},cancelAnimationFrame(...o){const{delegate:r}=nl;return(r?.cancelAnimationFrame||cancelAnimationFrame)(...o)},delegate:void 0};var lh=E(7565);const Om=new class Vm extends lh.v{flush(r){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:t}=this;let s;r=r||t.shift();do{if(s=r.execute(r.state,r.delay))break}while((r=t[0])&&r.id===e&&t.shift());if(this._active=!1,s){for(;(r=t[0])&&r.id===e&&t.shift();)r.unsubscribe();throw s}}}(class lS extends Zw.o{constructor(r,e){super(r,e),this.scheduler=r,this.work=e}requestAsyncId(r,e,t=0){return null!==t&&t>0?super.requestAsyncId(r,e,t):(r.actions.push(this),r._scheduled||(r._scheduled=nl.requestAnimationFrame(()=>r.flush(void 0))))}recycleAsyncId(r,e,t=0){if(null!=t&&t>0||null==t&&this.delay>0)return super.recycleAsyncId(r,e,t);r.actions.some(s=>s.id===e)||(nl.cancelAnimationFrame(e),r._scheduled=void 0)}});let jm,cS=1;const ch={};function Xw(o){return o in ch&&(delete ch[o],!0)}const dS={setImmediate(o){const r=cS++;return ch[r]=!0,jm||(jm=Promise.resolve()),jm.then(()=>Xw(r)&&o()),r},clearImmediate(o){Xw(o)}},{setImmediate:uS,clearImmediate:hS}=dS,dh={setImmediate(...o){const{delegate:r}=dh;return(r?.setImmediate||uS)(...o)},clearImmediate(o){const{delegate:r}=dh;return(r?.clearImmediate||hS)(o)},delegate:void 0},uh=new class Xr extends lh.v{flush(r){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:t}=this;let s;r=r||t.shift();do{if(s=r.execute(r.state,r.delay))break}while((r=t[0])&&r.id===e&&t.shift());if(this._active=!1,s){for(;(r=t[0])&&r.id===e&&t.shift();)r.unsubscribe();throw s}}}(class pS extends Zw.o{constructor(r,e){super(r,e),this.scheduler=r,this.work=e}requestAsyncId(r,e,t=0){return null!==t&&t>0?super.requestAsyncId(r,e,t):(r.actions.push(this),r._scheduled||(r._scheduled=dh.setImmediate(r.flush.bind(r,void 0))))}recycleAsyncId(r,e,t=0){if(null!=t&&t>0||null==t&&this.delay>0)return super.recycleAsyncId(r,e,t);r.actions.some(s=>s.id===e)||(dh.clearImmediate(e),r._scheduled=void 0)}});function cn(o){return!!o&&(o instanceof Qe.y||(0,wn.m)(o.lift)&&(0,wn.m)(o.subscribe))}var qc=E(4986),zc=E(2805);function Gc(o,r=qc.z){return function Fm(o){return(0,di.e)((r,e)=>{let t=!1,s=null,u=null,d=!1;const l=()=>{if(u?.unsubscribe(),u=null,t){t=!1;const i=s;s=null,e.next(i)}d&&e.complete()},n=()=>{u=null,d&&e.complete()};r.subscribe((0,Lt.x)(e,i=>{t=!0,s=i,u||(0,Gn.Xf)(o(i)).subscribe(u=(0,Lt.x)(e,l,n))},()=>{d=!0,(!t||!u||u.closed)&&e.complete()}))})}(()=>(0,zc.H)(o,r))}var Um=E(6063);class ey extends Ee.x{constructor(r=1/0,e=1/0,t=Um.l){super(),this._bufferSize=r,this._windowTime=e,this._timestampProvider=t,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,r),this._windowTime=Math.max(1,e)}next(r){const{isStopped:e,_buffer:t,_infiniteTimeWindow:s,_timestampProvider:u,_windowTime:d}=this;e||(t.push(r),!s&&t.push(u.now()+d)),this._trimBuffer(),super.next(r)}_subscribe(r){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(r),{_infiniteTimeWindow:t,_buffer:s}=this,u=s.slice();for(let d=0;dnew ey(t,r,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:s})}class ty extends class Nm{}{constructor(r){super(),this._data=r}connect(){return cn(this._data)?this._data:(0,ke.of)(this._data)}disconnect(){}}class ta{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(r,e,t,s,u){r.forEachOperation((d,l,n)=>{let i,a;null==d.previousIndex?(i=this._insertView(()=>t(d,l,n),n,e,s(d)),a=i?1:0):null==n?(this._detachAndCacheView(l,e),a=3):(i=this._moveView(l,n,e,s(d)),a=2),u&&u({context:i?.context,operation:a,record:d})})}detach(){for(const r of this._viewCache)r.destroy();this._viewCache=[]}_insertView(r,e,t,s){const u=this._insertViewFromCache(e,t);if(u)return void(u.context.$implicit=s);const d=r();return t.createEmbeddedView(d.templateRef,d.context,d.index)}_detachAndCacheView(r,e){const t=e.detach(r);this._maybeCacheView(t,e)}_moveView(r,e,t,s){const u=t.get(r);return t.move(u,e),u.context.$implicit=s,u}_maybeCacheView(r,e){if(this._viewCache.length0?u/this._itemSize:0;if(e.end>s){const n=Math.ceil(t/this._itemSize),i=Math.max(0,Math.min(d,s-n));d!=i&&(d=i,u=i*this._itemSize,e.start=Math.floor(d)),e.end=Math.max(0,Math.min(s,e.start+n))}const l=u-e.start*this._itemSize;if(l0&&(e.end=Math.min(s,e.end+i),e.start=Math.max(0,Math.floor(d-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(e),this._viewport.setRenderedContentOffset(this._itemSize*e.start),this._scrolledIndexChange.next(Math.floor(d))}}function mh(o){return o._scrollStrategy}let zm=(()=>{class o{constructor(){this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new fh(this.itemSize,this.minBufferPx,this.maxBufferPx)}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=ji(e)}get minBufferPx(){return this._minBufferPx}set minBufferPx(e){this._minBufferPx=ji(e)}get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(e){this._maxBufferPx=ji(e)}ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275dir=_.lG2({type:o,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[_._Bn([{provide:ph,useFactory:mh,deps:[(0,_.Gpc)(()=>o)]}]),_.TTD]}),o})(),Qc=(()=>{class o{constructor(e,t,s){this._ngZone=e,this._platform=t,this._scrolled=new Ee.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=s}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new Qe.y(t=>{this._globalSubscription||this._addGlobalListener();const s=e>0?this._scrolled.pipe(Gc(e)).subscribe(t):this._scrolled.subscribe(t);return this._scrolledCount++,()=>{s.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,ke.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,t)=>this.deregister(t)),this._scrolled.complete()}ancestorScrolled(e,t){const s=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe((0,Wt.h)(u=>!u||s.indexOf(u)>-1))}getAncestorScrollContainers(e){const t=[];return this.scrollContainers.forEach((s,u)=>{this._scrollableContainsElement(u,e)&&t.push(u)}),t}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,t){let s=Zt(t),u=e.getElementRef().nativeElement;do{if(s==u)return!0}while(s=s.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Qo(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(_.R0b),_.LFG(gi),_.LFG(M.K0,8))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),ny=(()=>{class o{constructor(e,t,s,u){this.elementRef=e,this.scrollDispatcher=t,this.ngZone=s,this.dir=u,this._destroyed=new Ee.x,this._elementScrolled=new Qe.y(d=>this.ngZone.runOutsideAngular(()=>Qo(this.elementRef.nativeElement,"scroll").pipe(It(this._destroyed)).subscribe(d)))}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(e){const t=this.elementRef.nativeElement,s=this.dir&&"rtl"==this.dir.value;null==e.left&&(e.left=s?e.end:e.start),null==e.right&&(e.right=s?e.start:e.end),null!=e.bottom&&(e.top=t.scrollHeight-t.clientHeight-e.bottom),s&&0!=xr()?(null!=e.left&&(e.right=t.scrollWidth-t.clientWidth-e.left),2==xr()?e.left=e.right:1==xr()&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.left=t.scrollWidth-t.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){const t=this.elementRef.nativeElement;Vf()?t.scrollTo(e):(null!=e.top&&(t.scrollTop=e.top),null!=e.left&&(t.scrollLeft=e.left))}measureScrollOffset(e){const t="left",s="right",u=this.elementRef.nativeElement;if("top"==e)return u.scrollTop;if("bottom"==e)return u.scrollHeight-u.clientHeight-u.scrollTop;const d=this.dir&&"rtl"==this.dir.value;return"start"==e?e=d?s:t:"end"==e&&(e=d?t:s),d&&2==xr()?e==t?u.scrollWidth-u.clientWidth-u.scrollLeft:u.scrollLeft:d&&1==xr()?e==t?u.scrollLeft+u.scrollWidth-u.clientWidth:-u.scrollLeft:e==t?u.scrollLeft:u.scrollWidth-u.clientWidth-u.scrollLeft}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(_.SBq),_.Y36(Qc),_.Y36(_.R0b),_.Y36(Rn,8))},o.\u0275dir=_.lG2({type:o,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),o})(),Ga=(()=>{class o{constructor(e,t,s){this._platform=e,this._change=new Ee.x,this._changeListener=u=>{this._change.next(u)},this._document=s,t.runOutsideAngular(()=>{if(e.isBrowser){const u=this._getWindow();u.addEventListener("resize",this._changeListener),u.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:t,height:s}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+s,right:e.left+t,height:s,width:t}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,t=this._getWindow(),s=e.documentElement,u=s.getBoundingClientRect();return{top:-u.top||e.body.scrollTop||t.scrollY||s.scrollTop||0,left:-u.left||e.body.scrollLeft||t.scrollX||s.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(Gc(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(gi),_.LFG(_.R0b),_.LFG(M.K0,8))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const ay=new _.OlP("VIRTUAL_SCROLLABLE");let _h=(()=>{class o extends ny{constructor(e,t,s,u){super(e,t,s,u)}measureViewportSize(e){const t=this.elementRef.nativeElement;return"horizontal"===e?t.clientWidth:t.clientHeight}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(_.SBq),_.Y36(Qc),_.Y36(_.R0b),_.Y36(Rn,8))},o.\u0275dir=_.lG2({type:o,features:[_.qOj]}),o})();const oy=typeof requestAnimationFrame<"u"?Om:uh;let en=(()=>{class o extends _h{constructor(e,t,s,u,d,l,n,i){super(e,l,s,d),this.elementRef=e,this._changeDetectorRef=t,this._scrollStrategy=u,this.scrollable=i,this._detachedSubject=new Ee.x,this._renderedRangeSubject=new Ee.x,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new Qe.y(a=>this._scrollStrategy.scrolledIndexChange.subscribe(c=>Promise.resolve().then(()=>this.ngZone.run(()=>a.next(c))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=Gt.w0.EMPTY,this._viewportChanges=n.change().subscribe(()=>{this.checkViewportSize()}),this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this)}get orientation(){return this._orientation}set orientation(e){this._orientation!==e&&(this._orientation=e,this._calculateSpacerSize())}get appendOnly(){return this._appendOnly}set appendOnly(e){this._appendOnly=ut(e)}ngOnInit(){this.scrollable===this&&super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.scrollable.elementScrolled().pipe(Si(null),Gc(0,oy)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()}))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(e){this.ngZone.runOutsideAngular(()=>{this._forOf=e,this._forOf.dataStream.pipe(It(this._detachedSubject)).subscribe(t=>{const s=t.length;s!==this._dataLength&&(this._dataLength=s,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}measureBoundingClientRectWithScrollOffset(e){return this.getElementRef().nativeElement.getBoundingClientRect()[e]}setTotalContentSize(e){this._totalContentSize!==e&&(this._totalContentSize=e,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(e){(function Gm(o,r){return o.start==r.start&&o.end==r.end})(this._renderedRange,e)||(this.appendOnly&&(e={start:0,end:Math.max(this._renderedRange.end,e.end)}),this._renderedRangeSubject.next(this._renderedRange=e),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(e,t="to-start"){e=this.appendOnly&&"to-start"===t?0:e;const u="horizontal"==this.orientation,d=u?"X":"Y";let n=`translate${d}(${Number((u&&this.dir&&"rtl"==this.dir.value?-1:1)*e)}px)`;this._renderedContentOffset=e,"to-end"===t&&(n+=` translate${d}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=n&&(this._renderedContentTransform=n,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(e,t="auto"){const s={behavior:t};"horizontal"===this.orientation?s.start=e:s.top=e,this.scrollable.scrollTo(s)}scrollToIndex(e,t="auto"){this._scrollStrategy.scrollToIndex(e,t)}measureScrollOffset(e){let t;return t=this.scrollable==this?s=>super.measureScrollOffset(s):s=>this.scrollable.measureScrollOffset(s),Math.max(0,t(e??("horizontal"===this.orientation?"start":"top"))-this.measureViewportOffset())}measureViewportOffset(e){let t;const s="left",u="right",d="rtl"==this.dir?.value;t="start"==e?d?u:s:"end"==e?d?s:u:e||("horizontal"===this.orientation?"left":"top");const l=this.scrollable.measureBoundingClientRectWithScrollOffset(t);return this.elementRef.nativeElement.getBoundingClientRect()[t]-l}measureRenderedContentSize(){const e=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?e.offsetWidth:e.offsetHeight}measureRangeSize(e){return this._forOf?this._forOf.measureRangeSize(e,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}_markChangeDetectionNeeded(e){e&&this._runAfterChangeDetection.push(e),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(()=>this._changeDetectorRef.markForCheck());const e=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const t of e)t()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(_.SBq),_.Y36(_.sBO),_.Y36(_.R0b),_.Y36(ph,8),_.Y36(Rn,8),_.Y36(Qc),_.Y36(Ga),_.Y36(ay,8))},o.\u0275cmp=_.Xpm({type:o,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(e,t){if(1&e&&_.Gf(iy,7),2&e){let s;_.iGM(s=_.CRH())&&(t._contentWrapper=s.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(e,t){2&e&&_.ekj("cdk-virtual-scroll-orientation-horizontal","horizontal"===t.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==t.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[_._Bn([{provide:ny,useFactory:(r,e)=>r||e,deps:[_h,o]}]),_.qOj],ngContentSelectors:qm,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(e,t){1&e&&(_.F$t(),_.TgZ(0,"div",0,1),_.Hsn(2),_.qZA(),_._UZ(3,"div",2)),2&e&&(_.xp6(3),_.Udp("width",t._totalContentWidth)("height",t._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}"],encapsulation:2,changeDetection:0}),o})();function bh(o,r,e){if(!e.getBoundingClientRect)return 0;const s=e.getBoundingClientRect();return"horizontal"===o?"start"===r?s.left:s.right:"start"===r?s.top:s.bottom}let sy=(()=>{class o{constructor(e,t,s,u,d,l){this._viewContainerRef=e,this._template=t,this._differs=s,this._viewRepeater=u,this._viewport=d,this.viewChange=new Ee.x,this._dataSourceChanges=new Ee.x,this.dataStream=this._dataSourceChanges.pipe(Si(null),function ea(){return(0,di.e)((o,r)=>{let e,t=!1;o.subscribe((0,Lt.x)(r,s=>{const u=e;e=s,t&&r.next([u,s]),t=!0}))})}(),(0,Bi.w)(([n,i])=>this._changeDataSource(n,i)),hh(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new Ee.x,this.dataStream.subscribe(n=>{this._data=n,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe(It(this._destroyed)).subscribe(n=>{this._renderedRange=n,this.viewChange.observers.length&&l.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(e){this._cdkVirtualForOf=e,function rl(o){return o&&"function"==typeof o.connect}(e)?this._dataSourceChanges.next(e):this._dataSourceChanges.next(new ty(cn(e)?e:Array.from(e||[])))}get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(e){this._needsUpdate=!0,this._cdkVirtualForTrackBy=e?(t,s)=>e(t+(this._renderedRange?this._renderedRange.start:0),s):void 0}set cdkVirtualForTemplate(e){e&&(this._needsUpdate=!0,this._template=e)}get cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set cdkVirtualForTemplateCacheSize(e){this._viewRepeater.viewCacheSize=ji(e)}measureRangeSize(e,t){if(e.start>=e.end)return 0;const s=e.start-this._renderedRange.start,u=e.end-e.start;let d,l;for(let n=0;n-1;n--){const i=this._viewContainerRef.get(n+s);if(i&&i.rootNodes.length){l=i.rootNodes[i.rootNodes.length-1];break}}return d&&l?bh(t,"end",l)-bh(t,"start",d):0}ngDoCheck(){if(this._differ&&this._needsUpdate){const e=this._differ.diff(this._renderedItems);e?this._applyChanges(e):this._updateContext(),this._needsUpdate=!1}}ngOnDestroy(){this._viewport.detach(),this._dataSourceChanges.next(void 0),this._dataSourceChanges.complete(),this.viewChange.complete(),this._destroyed.next(),this._destroyed.complete(),this._viewRepeater.detach()}_onRenderedDataChange(){!this._renderedRange||(this._renderedItems=this._data.slice(this._renderedRange.start,this._renderedRange.end),this._differ||(this._differ=this._differs.find(this._renderedItems).create((e,t)=>this.cdkVirtualForTrackBy?this.cdkVirtualForTrackBy(e,t):t)),this._needsUpdate=!0)}_changeDataSource(e,t){return e&&e.disconnect(this),this._needsUpdate=!0,t?t.connect(this):(0,ke.of)()}_updateContext(){const e=this._data.length;let t=this._viewContainerRef.length;for(;t--;){const s=this._viewContainerRef.get(t);s.context.index=this._renderedRange.start+t,s.context.count=e,this._updateComputedContextProperties(s.context),s.detectChanges()}}_applyChanges(e){this._viewRepeater.applyChanges(e,this._viewContainerRef,(u,d,l)=>this._getEmbeddedViewArgs(u,l),u=>u.item),e.forEachIdentityChange(u=>{this._viewContainerRef.get(u.currentIndex).context.$implicit=u.item});const t=this._data.length;let s=this._viewContainerRef.length;for(;s--;){const u=this._viewContainerRef.get(s);u.context.index=this._renderedRange.start+s,u.context.count=t,this._updateComputedContextProperties(u.context)}}_updateComputedContextProperties(e){e.first=0===e.index,e.last=e.index===e.count-1,e.even=e.index%2==0,e.odd=!e.even}_getEmbeddedViewArgs(e,t){return{templateRef:this._template,context:{$implicit:e.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:t}}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(_.s_b),_.Y36(_.Rgc),_.Y36(_.ZZ4),_.Y36(Pn),_.Y36(en,4),_.Y36(_.R0b))},o.\u0275dir=_.lG2({type:o,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},features:[_._Bn([{provide:Pn,useClass:ta}])]}),o})(),In=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({}),o})(),Wa=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[Go,In,Go,In]}),o})();class Ch{attach(r){return this._attachedHost=r,r.attach(this)}detach(){let r=this._attachedHost;null!=r&&(this._attachedHost=null,r.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(r){this._attachedHost=r}}class wh extends Ch{constructor(r,e,t,s){super(),this.component=r,this.viewContainerRef=e,this.injector=t,this.componentFactoryResolver=s}}class yh extends Ch{constructor(r,e,t,s){super(),this.templateRef=r,this.viewContainerRef=e,this.context=t,this.injector=s}get origin(){return this.templateRef.elementRef}attach(r,e=this.context){return this.context=e,super.attach(r)}detach(){return this.context=void 0,super.detach()}}class Wm extends Ch{constructor(r){super(),this.element=r instanceof _.SBq?r.nativeElement:r}}class vh{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(r){return r instanceof wh?(this._attachedPortal=r,this.attachComponentPortal(r)):r instanceof yh?(this._attachedPortal=r,this.attachTemplatePortal(r)):this.attachDomPortal&&r instanceof Wm?(this._attachedPortal=r,this.attachDomPortal(r)):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(r){this._disposeFn=r}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class Ah extends vh{constructor(r,e,t,s,u){super(),this.outletElement=r,this._componentFactoryResolver=e,this._appRef=t,this._defaultInjector=s,this.attachDomPortal=d=>{const l=d.element,n=this._document.createComment("dom-portal");l.parentNode.insertBefore(n,l),this.outletElement.appendChild(l),this._attachedPortal=d,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(l,n)})},this._document=u}attachComponentPortal(r){const t=(r.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(r.component);let s;return r.viewContainerRef?(s=r.viewContainerRef.createComponent(t,r.viewContainerRef.length,r.injector||r.viewContainerRef.injector),this.setDisposeFn(()=>s.destroy())):(s=t.create(r.injector||this._defaultInjector||_.zs3.NULL),this._appRef.attachView(s.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(s.hostView),s.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(s)),this._attachedPortal=r,s}attachTemplatePortal(r){let e=r.viewContainerRef,t=e.createEmbeddedView(r.templateRef,r.context,{injector:r.injector});return t.rootNodes.forEach(s=>this.outletElement.appendChild(s)),t.detectChanges(),this.setDisposeFn(()=>{let s=e.indexOf(t);-1!==s&&e.remove(s)}),this._attachedPortal=r,t}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(r){return r.hostView.rootNodes[0]}}let Yc=(()=>{class o extends vh{constructor(e,t,s){super(),this._componentFactoryResolver=e,this._viewContainerRef=t,this._isInitialized=!1,this.attached=new _.vpe,this.attachDomPortal=u=>{const d=u.element,l=this._document.createComment("dom-portal");u.setAttachedHost(this),d.parentNode.insertBefore(l,d),this._getRootNode().appendChild(d),this._attachedPortal=u,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(d,l)})},this._document=s}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(e){e.setAttachedHost(this);const t=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,u=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),d=t.createComponent(u,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(d.hostView.rootNodes[0]),super.setDisposeFn(()=>d.destroy()),this._attachedPortal=e,this._attachedRef=d,this.attached.emit(d),d}attachTemplatePortal(e){e.setAttachedHost(this);const t=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=t,this.attached.emit(t),t}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(_._Vd),_.Y36(_.s_b),_.Y36(M.K0))},o.\u0275dir=_.lG2({type:o,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[_.qOj]}),o})(),ia=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({}),o})();var nr=E(6451);const $m=Vf();class dy{constructor(r,e){this._viewportRuler=r,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const r=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=r.style.left||"",this._previousHTMLStyles.top=r.style.top||"",r.style.left=ui(-this._previousScrollPosition.left),r.style.top=ui(-this._previousScrollPosition.top),r.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const r=this._document.documentElement,t=r.style,s=this._document.body.style,u=t.scrollBehavior||"",d=s.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,r.classList.remove("cdk-global-scrollblock"),$m&&(t.scrollBehavior=s.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),$m&&(t.scrollBehavior=u,s.scrollBehavior=d)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width}}class Sh{constructor(r,e,t,s){this._scrollDispatcher=r,this._ngZone=e,this._viewportRuler=t,this._config=s,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(r){this._overlayRef=r}enable(){if(this._scrollSubscription)return;const r=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=r.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=r.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Qm{enable(){}disable(){}attach(){}}function Jc(o,r){return r.some(e=>o.bottome.bottom||o.righte.right)}function Kc(o,r){return r.some(e=>o.tope.bottom||o.lefte.right)}class Ym{constructor(r,e,t,s){this._scrollDispatcher=r,this._viewportRuler=e,this._ngZone=t,this._config=s,this._scrollSubscription=null}attach(r){this._overlayRef=r}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 e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:t,height:s}=this._viewportRuler.getViewportSize();Jc(e,[{width:t,height:s,bottom:s,right:t,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 xS=(()=>{class o{constructor(e,t,s,u){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=s,this.noop=()=>new Qm,this.close=d=>new Sh(this._scrollDispatcher,this._ngZone,this._viewportRuler,d),this.block=()=>new dy(this._viewportRuler,this._document),this.reposition=d=>new Ym(this._scrollDispatcher,this._viewportRuler,this._ngZone,d),this._document=u}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(Qc),_.LFG(Ga),_.LFG(_.R0b),_.LFG(M.K0))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();class uy{constructor(r){if(this.scrollStrategy=new Qm,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,r){const e=Object.keys(r);for(const t of e)void 0!==r[t]&&(this[t]=r[t])}}}class hy{constructor(r,e){this.connectionPair=r,this.scrollableViewProperties=e}}let Th=(()=>{class o{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const t=this._attachedOverlays.indexOf(e);t>-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this.detach()}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(M.K0))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Km=(()=>{class o extends Th{constructor(e,t){super(e),this._ngZone=t,this._keydownListener=s=>{const u=this._attachedOverlays;for(let d=u.length-1;d>-1;d--)if(u[d]._keydownEvents.observers.length>0){const l=u[d]._keydownEvents;this._ngZone?this._ngZone.run(()=>l.next(s)):l.next(s);break}}}add(e){super.add(e),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(M.K0),_.LFG(_.R0b,8))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Eh=(()=>{class o extends Th{constructor(e,t,s){super(e),this._platform=t,this._ngZone=s,this._cursorStyleIsSet=!1,this._pointerDownListener=u=>{this._pointerDownEventTarget=mn(u)},this._clickListener=u=>{const d=mn(u),l="click"===u.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:d;this._pointerDownEventTarget=null;const n=this._attachedOverlays.slice();for(let i=n.length-1;i>-1;i--){const a=n[i];if(a._outsidePointerEvents.observers.length<1||!a.hasAttached())continue;if(a.overlayElement.contains(d)||a.overlayElement.contains(l))break;const c=a._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>c.next(u)):c.next(u)}}}add(e){if(super.add(e),!this._isAttached){const t=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(t)):this._addEventListeners(t),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(M.K0),_.LFG(gi),_.LFG(_.R0b,8))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),yn=(()=>{class o{constructor(e,t){this._platform=t,this._document=e}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||Ac()){const s=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let u=0;uthis._backdropClick.next(c),this._backdropTransitionendHandler=c=>{this._disposeBackdrop(c.target)},this._keydownEvents=new Ee.x,this._outsidePointerEvents=new Ee.x,s.scrollStrategy&&(this._scrollStrategy=s.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=s.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(r){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const e=this._portalOutlet.attach(r);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,ri.q)(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),"function"==typeof e?.onDestroy&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),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 r=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),r}dispose(){const r=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),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?.remove(),this._previousHostParent=this._pane=this._host=null,r&&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(r){r!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=r,this.hasAttached()&&(r.attach(this),this.updatePosition()))}updateSize(r){this._config={...this._config,...r},this._updateElementSize()}setDirection(r){this._config={...this._config,direction:r},this._updateElementDirection()}addPanelClass(r){this._pane&&this._toggleClasses(this._pane,r,!0)}removePanelClass(r){this._pane&&this._toggleClasses(this._pane,r,!1)}getDirection(){const r=this._config.direction;return r?"string"==typeof r?r:r.value:"ltr"}updateScrollStrategy(r){r!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=r,this.hasAttached()&&(r.attach(this),r.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const r=this._pane.style;r.width=ui(this._config.width),r.height=ui(this._config.height),r.minWidth=ui(this._config.minWidth),r.minHeight=ui(this._config.minHeight),r.maxWidth=ui(this._config.maxWidth),r.maxHeight=ui(this._config.maxHeight)}_togglePointerEvents(r){this._pane.style.pointerEvents=r?"":"none"}_attachBackdrop(){const r="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),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),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(r)})}):this._backdropElement.classList.add(r)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const r=this._backdropElement;if(r){if(this._animationsDisabled)return void this._disposeBackdrop(r);r.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{r.addEventListener("transitionend",this._backdropTransitionendHandler)}),r.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(r)},500))}}_toggleClasses(r,e,t){const s=Ks(e||[]).filter(u=>!!u);s.length&&(t?r.classList.add(...s):r.classList.remove(...s))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const r=this._ngZone.onStable.pipe(It((0,nr.T)(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._host.remove()),r.unsubscribe())})})}_disposeScrollStrategy(){const r=this._scrollStrategy;r&&(r.disable(),r.detach&&r.detach())}_disposeBackdrop(r){r&&(r.removeEventListener("click",this._backdropClickHandler),r.removeEventListener("transitionend",this._backdropTransitionendHandler),r.remove(),this._backdropElement===r&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const ll="cdk-overlay-connected-position-bounding-box",cl=/([A-Za-z%]+)$/;class my{constructor(r,e,t,s,u){this._viewportRuler=e,this._document=t,this._platform=s,this._overlayContainer=u,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 Ee.x,this._resizeSubscription=Gt.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(r)}get positions(){return this._preferredPositions}attach(r){this._validatePositions(),r.hostElement.classList.add(ll),this._overlayRef=r,this._boundingBox=r.hostElement,this._pane=r.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(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const r=this._originRect,e=this._overlayRect,t=this._viewportRect,s=this._containerRect,u=[];let d;for(let l of this._preferredPositions){let n=this._getOriginPoint(r,s,l),i=this._getOverlayPoint(n,e,l),a=this._getOverlayFit(i,e,t,l);if(a.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(l,n);this._canFitWithFlexibleDimensions(a,i,t)?u.push({position:l,origin:n,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(n,l)}):(!d||d.overlayFit.visibleArean&&(n=a,l=i)}return this._isPushed=!1,void this._applyPosition(l.position,l.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(d.position,d.originPoint);this._applyPosition(d.position,d.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Mr(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(ll),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const r=this._lastPosition;if(r){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._getOriginPoint(this._originRect,this._containerRect,r);this._applyPosition(r,e)}else this.apply()}withScrollableContainers(r){return this._scrollables=r,this}withPositions(r){return this._preferredPositions=r,-1===r.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(r){return this._viewportMargin=r,this}withFlexibleDimensions(r=!0){return this._hasFlexibleDimensions=r,this}withGrowAfterOpen(r=!0){return this._growAfterOpen=r,this}withPush(r=!0){return this._canPush=r,this}withLockedPosition(r=!0){return this._positionLocked=r,this}setOrigin(r){return this._origin=r,this}withDefaultOffsetX(r){return this._offsetX=r,this}withDefaultOffsetY(r){return this._offsetY=r,this}withTransformOriginOn(r){return this._transformOriginSelector=r,this}_getOriginPoint(r,e,t){let s,u;if("center"==t.originX)s=r.left+r.width/2;else{const d=this._isRtl()?r.right:r.left,l=this._isRtl()?r.left:r.right;s="start"==t.originX?d:l}return e.left<0&&(s-=e.left),u="center"==t.originY?r.top+r.height/2:"top"==t.originY?r.top:r.bottom,e.top<0&&(u-=e.top),{x:s,y:u}}_getOverlayPoint(r,e,t){let s,u;return s="center"==t.overlayX?-e.width/2:"start"===t.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,u="center"==t.overlayY?-e.height/2:"top"==t.overlayY?0:-e.height,{x:r.x+s,y:r.y+u}}_getOverlayFit(r,e,t,s){const u=Zm(e);let{x:d,y:l}=r,n=this._getOffset(s,"x"),i=this._getOffset(s,"y");n&&(d+=n),i&&(l+=i);let h=0-l,f=l+u.height-t.height,m=this._subtractOverflows(u.width,0-d,d+u.width-t.width),p=this._subtractOverflows(u.height,h,f),w=m*p;return{visibleArea:w,isCompletelyWithinViewport:u.width*u.height===w,fitsInViewportVertically:p===u.height,fitsInViewportHorizontally:m==u.width}}_canFitWithFlexibleDimensions(r,e,t){if(this._hasFlexibleDimensions){const s=t.bottom-e.y,u=t.right-e.x,d=Mh(this._overlayRef.getConfig().minHeight),l=Mh(this._overlayRef.getConfig().minWidth),i=r.fitsInViewportHorizontally||null!=l&&l<=u;return(r.fitsInViewportVertically||null!=d&&d<=s)&&i}return!1}_pushOverlayOnScreen(r,e,t){if(this._previousPushAmount&&this._positionLocked)return{x:r.x+this._previousPushAmount.x,y:r.y+this._previousPushAmount.y};const s=Zm(e),u=this._viewportRect,d=Math.max(r.x+s.width-u.width,0),l=Math.max(r.y+s.height-u.height,0),n=Math.max(u.top-t.top-r.y,0),i=Math.max(u.left-t.left-r.x,0);let a=0,c=0;return a=s.width<=u.width?i||-d:r.xm&&!this._isInitialRender&&!this._growAfterOpen&&(d=r.y-m/2)}if("end"===e.overlayX&&!s||"start"===e.overlayX&&s)h=t.width-r.x+this._viewportMargin,a=r.x-this._viewportMargin;else if("start"===e.overlayX&&!s||"end"===e.overlayX&&s)c=r.x,a=t.right-r.x;else{const f=Math.min(t.right-r.x+t.left,r.x),m=this._lastBoundingBoxSize.width;a=2*f,c=r.x-f,a>m&&!this._isInitialRender&&!this._growAfterOpen&&(c=r.x-m/2)}return{top:d,left:c,bottom:l,right:h,width:a,height:u}}_setBoundingBoxStyles(r,e){const t=this._calculateBoundingBoxRect(r,e);!this._isInitialRender&&!this._growAfterOpen&&(t.height=Math.min(t.height,this._lastBoundingBoxSize.height),t.width=Math.min(t.width,this._lastBoundingBoxSize.width));const s={};if(this._hasExactPosition())s.top=s.left="0",s.bottom=s.right=s.maxHeight=s.maxWidth="",s.width=s.height="100%";else{const u=this._overlayRef.getConfig().maxHeight,d=this._overlayRef.getConfig().maxWidth;s.height=ui(t.height),s.top=ui(t.top),s.bottom=ui(t.bottom),s.width=ui(t.width),s.left=ui(t.left),s.right=ui(t.right),s.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",s.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",u&&(s.maxHeight=ui(u)),d&&(s.maxWidth=ui(d))}this._lastBoundingBoxSize=t,Mr(this._boundingBox.style,s)}_resetBoundingBoxStyles(){Mr(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Mr(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(r,e){const t={},s=this._hasExactPosition(),u=this._hasFlexibleDimensions,d=this._overlayRef.getConfig();if(s){const a=this._viewportRuler.getViewportScrollPosition();Mr(t,this._getExactOverlayY(e,r,a)),Mr(t,this._getExactOverlayX(e,r,a))}else t.position="static";let l="",n=this._getOffset(e,"x"),i=this._getOffset(e,"y");n&&(l+=`translateX(${n}px) `),i&&(l+=`translateY(${i}px)`),t.transform=l.trim(),d.maxHeight&&(s?t.maxHeight=ui(d.maxHeight):u&&(t.maxHeight="")),d.maxWidth&&(s?t.maxWidth=ui(d.maxWidth):u&&(t.maxWidth="")),Mr(this._pane.style,t)}_getExactOverlayY(r,e,t){let s={top:"",bottom:""},u=this._getOverlayPoint(e,this._overlayRect,r);return this._isPushed&&(u=this._pushOverlayOnScreen(u,this._overlayRect,t)),"bottom"===r.overlayY?s.bottom=this._document.documentElement.clientHeight-(u.y+this._overlayRect.height)+"px":s.top=ui(u.y),s}_getExactOverlayX(r,e,t){let d,s={left:"",right:""},u=this._getOverlayPoint(e,this._overlayRect,r);return this._isPushed&&(u=this._pushOverlayOnScreen(u,this._overlayRect,t)),d=this._isRtl()?"end"===r.overlayX?"left":"right":"end"===r.overlayX?"right":"left","right"===d?s.right=this._document.documentElement.clientWidth-(u.x+this._overlayRect.width)+"px":s.left=ui(u.x),s}_getScrollVisibility(){const r=this._getOriginRect(),e=this._pane.getBoundingClientRect(),t=this._scrollables.map(s=>s.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Kc(r,t),isOriginOutsideView:Jc(r,t),isOverlayClipped:Kc(e,t),isOverlayOutsideView:Jc(e,t)}}_subtractOverflows(r,...e){return e.reduce((t,s)=>t-Math.max(s,0),r)}_getNarrowedViewportRect(){const r=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,t=this._viewportRuler.getViewportScrollPosition();return{top:t.top+this._viewportMargin,left:t.left+this._viewportMargin,right:t.left+r-this._viewportMargin,bottom:t.top+e-this._viewportMargin,width:r-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(r,e){return"x"===e?r.offsetX??this._offsetX:r.offsetY??this._offsetY}_validatePositions(){}_addPanelClasses(r){this._pane&&Ks(r).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(r=>{this._pane.classList.remove(r)}),this._appliedPanelClasses=[])}_getOriginRect(){const r=this._origin;if(r instanceof _.SBq)return r.nativeElement.getBoundingClientRect();if(r instanceof Element)return r.getBoundingClientRect();const e=r.width||0,t=r.height||0;return{top:r.y,bottom:r.y+t,left:r.x,right:r.x+e,height:t,width:e}}}function Mr(o,r){for(let e in r)r.hasOwnProperty(e)&&(o[e]=r[e]);return o}function Mh(o){if("number"!=typeof o&&null!=o){const[r,e]=o.split(cl);return e&&"px"!==e?null:parseFloat(r)}return o||null}function Zm(o){return{top:Math.floor(o.top),right:Math.floor(o.right),bottom:Math.floor(o.bottom),left:Math.floor(o.left),width:Math.floor(o.width),height:Math.floor(o.height)}}const Xm="cdk-global-overlay-wrapper";class TS{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(r){const e=r.getConfig();this._overlayRef=r,this._width&&!e.width&&r.updateSize({width:this._width}),this._height&&!e.height&&r.updateSize({height:this._height}),r.hostElement.classList.add(Xm),this._isDisposed=!1}top(r=""){return this._bottomOffset="",this._topOffset=r,this._alignItems="flex-start",this}left(r=""){return this._xOffset=r,this._xPosition="left",this}bottom(r=""){return this._topOffset="",this._bottomOffset=r,this._alignItems="flex-end",this}right(r=""){return this._xOffset=r,this._xPosition="right",this}start(r=""){return this._xOffset=r,this._xPosition="start",this}end(r=""){return this._xOffset=r,this._xPosition="end",this}width(r=""){return this._overlayRef?this._overlayRef.updateSize({width:r}):this._width=r,this}height(r=""){return this._overlayRef?this._overlayRef.updateSize({height:r}):this._height=r,this}centerHorizontally(r=""){return this.left(r),this._xPosition="center",this}centerVertically(r=""){return this.top(r),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const r=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,t=this._overlayRef.getConfig(),{width:s,height:u,maxWidth:d,maxHeight:l}=t,n=!("100%"!==s&&"100vw"!==s||d&&"100%"!==d&&"100vw"!==d),i=!("100%"!==u&&"100vh"!==u||l&&"100%"!==l&&"100vh"!==l),a=this._xPosition,c=this._xOffset,h="rtl"===this._overlayRef.getConfig().direction;let f="",m="",p="";n?p="flex-start":"center"===a?(p="center",h?m=c:f=c):h?"left"===a||"end"===a?(p="flex-end",f=c):("right"===a||"start"===a)&&(p="flex-start",m=c):"left"===a||"start"===a?(p="flex-start",f=c):("right"===a||"end"===a)&&(p="flex-end",m=c),r.position=this._cssPosition,r.marginLeft=n?"0":f,r.marginTop=i?"0":this._topOffset,r.marginBottom=this._bottomOffset,r.marginRight=n?"0":m,e.justifyContent=p,e.alignItems=i?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const r=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,t=e.style;e.classList.remove(Xm),t.justifyContent=t.alignItems=r.marginTop=r.marginBottom=r.marginLeft=r.marginRight=r.position="",this._overlayRef=null,this._isDisposed=!0}}let gy=(()=>{class o{constructor(e,t,s,u){this._viewportRuler=e,this._document=t,this._platform=s,this._overlayContainer=u}global(){return new TS}flexibleConnectedTo(e){return new my(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(Ga),_.LFG(M.K0),_.LFG(gi),_.LFG(yn))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),ES=0,rr=(()=>{class o{constructor(e,t,s,u,d,l,n,i,a,c,h,f){this.scrollStrategies=e,this._overlayContainer=t,this._componentFactoryResolver=s,this._positionBuilder=u,this._keyboardDispatcher=d,this._injector=l,this._ngZone=n,this._document=i,this._directionality=a,this._location=c,this._outsideClickDispatcher=h,this._animationsModuleType=f}create(e){const t=this._createHostElement(),s=this._createPaneElement(t),u=this._createPortalOutlet(s),d=new uy(e);return d.direction=d.direction||this._directionality.value,new na(u,t,s,d,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(e){const t=this._document.createElement("div");return t.id="cdk-overlay-"+ES++,t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(_.z2F)),new Ah(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(xS),_.LFG(yn),_.LFG(_._Vd),_.LFG(gy),_.LFG(Km),_.LFG(_.zs3),_.LFG(_.R0b),_.LFG(M.K0),_.LFG(Rn),_.LFG(M.Ye),_.LFG(Eh),_.LFG(_.QbO,8))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac}),o})();const Dh={provide:new _.OlP("cdk-connected-overlay-scroll-strategy"),deps:[rr],useFactory:function eg(o){return()=>o.scrollStrategies.reposition()}};let Yo=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({providers:[rr,Dh],imports:[Go,ia,Wa,Wa]}),o})();class ig{}const Dr="*";function oi(o,r){return{type:7,name:o,definitions:r,options:{}}}function yt(o,r=null){return{type:4,styles:r,timings:o}}function ng(o,r=null){return{type:3,steps:o,options:r}}function dl(o,r=null){return{type:2,steps:o,options:r}}function je(o){return{type:6,styles:o,offset:null}}function ft(o,r,e){return{type:0,name:o,styles:r,options:e}}function bt(o,r,e=null){return{type:1,expr:o,animation:r,options:e}}function Jo(o=null){return{type:9,options:o}}function dn(o,r,e=null){return{type:11,selector:o,animation:r,options:e}}function Di(o){Promise.resolve(null).then(o)}class Bn{constructor(r=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=r+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(r=>r()),this._onDoneFns=[])}onStart(r){this._originalOnStartFns.push(r),this._onStartFns.push(r)}onDone(r){this._originalOnDoneFns.push(r),this._onDoneFns.push(r)}onDestroy(r){this._onDestroyFns.push(r)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Di(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(r=>r()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(r=>r()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(r){this._position=this.totalTime?r*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(r){const e="start"==r?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class ul{constructor(r){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=r;let e=0,t=0,s=0;const u=this.players.length;0==u?Di(()=>this._onFinish()):this.players.forEach(d=>{d.onDone(()=>{++e==u&&this._onFinish()}),d.onDestroy(()=>{++t==u&&this._onDestroy()}),d.onStart(()=>{++s==u&&this._onStart()})}),this.totalTime=this.players.reduce((d,l)=>Math.max(d,l.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(r=>r()),this._onDoneFns=[])}init(){this.players.forEach(r=>r.init())}onStart(r){this._onStartFns.push(r)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(r=>r()),this._onStartFns=[])}onDone(r){this._onDoneFns.push(r)}onDestroy(r){this._onDestroyFns.push(r)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(r=>r.play())}pause(){this.players.forEach(r=>r.pause())}restart(){this.players.forEach(r=>r.restart())}finish(){this._onFinish(),this.players.forEach(r=>r.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(r=>r.destroy()),this._onDestroyFns.forEach(r=>r()),this._onDestroyFns=[])}reset(){this.players.forEach(r=>r.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(r){const e=r*this.totalTime;this.players.forEach(t=>{const s=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(s)})}getPosition(){const r=this.players.reduce((e,t)=>null===e||t.totalTime>e.totalTime?t:e,null);return null!=r?r.getPosition():0}beforeDestroy(){this.players.forEach(r=>{r.beforeDestroy&&r.beforeDestroy()})}triggerCallback(r){const e="start"==r?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}const Hh=["connectionContainer"],Ko=["inputContainer"],Zo=["label"];function Xo(o,r){1&o&&(_.ynx(0),_.TgZ(1,"div",14),_._UZ(2,"div",15)(3,"div",16)(4,"div",17),_.qZA(),_.TgZ(5,"div",18),_._UZ(6,"div",15)(7,"div",16)(8,"div",17),_.qZA(),_.BQk())}function es(o,r){if(1&o){const e=_.EpF();_.TgZ(0,"div",19),_.NdJ("cdkObserveContent",function(){_.CHM(e);const s=_.oxw();return _.KtG(s.updateOutlineGap())}),_.Hsn(1,1),_.qZA()}if(2&o){const e=_.oxw();_.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)}}function ts(o,r){if(1&o&&(_.ynx(0),_.Hsn(1,2),_.TgZ(2,"span"),_._uU(3),_.qZA(),_.BQk()),2&o){const e=_.oxw(2);_.xp6(3),_.Oqu(e._control.placeholder)}}function is(o,r){1&o&&_.Hsn(0,3,["*ngSwitchCase","true"])}function ns(o,r){1&o&&(_.TgZ(0,"span",23),_._uU(1," *"),_.qZA())}function rs(o,r){if(1&o){const e=_.EpF();_.TgZ(0,"label",20,21),_.NdJ("cdkObserveContent",function(){_.CHM(e);const s=_.oxw();return _.KtG(s.updateOutlineGap())}),_.YNc(2,ts,4,1,"ng-container",12),_.YNc(3,is,1,0,"ng-content",12),_.YNc(4,ns,2,0,"span",22),_.qZA()}if(2&o){const e=_.oxw();_.ekj("mat-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-form-field-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-accent","accent"==e.color)("mat-warn","warn"==e.color),_.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),_.uIk("for",e._control.id)("aria-owns",e._control.id),_.xp6(2),_.Q6J("ngSwitchCase",!1),_.xp6(1),_.Q6J("ngSwitchCase",!0),_.xp6(1),_.Q6J("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function as(o,r){1&o&&(_.TgZ(0,"div",24),_.Hsn(1,4),_.qZA())}function rg(o,r){if(1&o&&(_.TgZ(0,"div",25),_._UZ(1,"span",26),_.qZA()),2&o){const e=_.oxw();_.xp6(1),_.ekj("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function ag(o,r){if(1&o&&(_.TgZ(0,"div"),_.Hsn(1,5),_.qZA()),2&o){const e=_.oxw();_.Q6J("@transitionMessages",e._subscriptAnimationState)}}function og(o,r){if(1&o&&(_.TgZ(0,"div",30),_._uU(1),_.qZA()),2&o){const e=_.oxw(2);_.Q6J("id",e._hintLabelId),_.xp6(1),_.Oqu(e.hintLabel)}}function sg(o,r){if(1&o&&(_.TgZ(0,"div",27),_.YNc(1,og,2,2,"div",28),_.Hsn(2,6),_._UZ(3,"div",29),_.Hsn(4,7),_.qZA()),2&o){const e=_.oxw();_.Q6J("@transitionMessages",e._subscriptAnimationState),_.xp6(1),_.Q6J("ngIf",e.hintLabel)}}const lg=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],cg=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let dg=0;const Rh=new _.OlP("MatError");let Ph=(()=>{class o{constructor(e,t){this.id="mat-error-"+dg++,e||t.nativeElement.setAttribute("aria-live","polite")}}return o.\u0275fac=function(e){return new(e||o)(_.$8M("aria-live"),_.Y36(_.SBq))},o.\u0275dir=_.lG2({type:o,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(e,t){2&e&&_.uIk("id",t.id)},inputs:{id:"id"},features:[_._Bn([{provide:Rh,useExisting:o}])]}),o})();const Cy={transitionMessages:oi("transitionMessages",[ft("enter",je({opacity:1,transform:"translateY(0%)"})),bt("void => enter",[je({opacity:0,transform:"translateY(-5px)"}),yt("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let ed=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275dir=_.lG2({type:o}),o})();const Ih=new _.OlP("MatHint");let kh=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275dir=_.lG2({type:o,selectors:[["mat-label"]]}),o})(),td=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275dir=_.lG2({type:o,selectors:[["mat-placeholder"]]}),o})();const id=new _.OlP("MatPrefix"),vy=new _.OlP("MatSuffix");let hl=0;const Lh=Na(class{constructor(o){this._elementRef=o}},"primary"),pg=new _.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),nd=new _.OlP("MatFormField");let pl=(()=>{class o extends Lh{constructor(e,t,s,u,d,l,n){super(e),this._changeDetectorRef=t,this._dir=s,this._defaults=u,this._platform=d,this._ngZone=l,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new Ee.x,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+hl++,this._labelId="mat-form-field-label-"+hl++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==n,this.appearance=u?.appearance||"legacy",u&&(this._hideRequiredMarker=Boolean(u.hideRequiredMarker),u.color&&(this.color=this.defaultColor=u.color))}get appearance(){return this._appearance}set appearance(e){const t=this._appearance;this._appearance=e||this._defaults?.appearance||"legacy","outline"===this._appearance&&t!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=ut(e)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(e){this._explicitFormFieldControl=e}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${e.controlType}`),e.stateChanges.pipe(Si(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(It(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(It(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,nr.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Si(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Si(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(It(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(e){const t=this._control?this._control.ngControl:null;return t&&t[e]}_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,Qo(this._label.nativeElement,"transitionend").pipe((0,ri.q)(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 e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const t=this._hintChildren?this._hintChildren.find(u=>"start"===u.align):null,s=this._hintChildren?this._hintChildren.find(u=>"end"===u.align):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),s&&e.push(s.id)}else this._errorChildren&&e.push(...this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(e)}}_validateControlChild(){}updateOutlineGap(){const e=this._label?this._label.nativeElement:null,t=this._connectionContainerRef.nativeElement,s=".mat-form-field-outline-start",u=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!e||!e.children.length||!e.textContent.trim()){const a=t.querySelectorAll(`${s}, ${u}`);for(let c=0;c0?.75*m+10:0}for(let a=0;a{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[M.ez,Se,Zs,Se]}),o})();const _i={provide:new _.OlP("mat-select-scroll-strategy"),deps:[rr],useFactory:function bg(o){return()=>o.scrollStrategies.reposition()}};let fl=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({providers:[_i],imports:[M.ez,Yo,Fc,Se,In,Hr,Fc,Se]}),o})();const ar={provide:new _.OlP("mat-tooltip-scroll-strategy"),deps:[rr],useFactory:function Uh(o){return()=>o.scrollStrategies.reposition({scrollThrottle:20})}};let os=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({providers:[ar],imports:[Ua,M.ez,Yo,Se,Se,In]}),o})(),ad=(()=>{class o{constructor(){this.changes=new Ee.x,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(e,t,s)=>{if(0==s||0==t)return`0 of ${s}`;const u=e*t;return`${u+1} \u2013 ${u<(s=Math.max(s,0))?Math.min(u+t,s):u+t} of ${s}`}}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const yg={provide:ad,deps:[[new _.FiY,new _.tp0,ad]],useFactory:function Gy(o){return o||new ad}};let $a=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({providers:[yg],imports:[M.ez,Tr,fl,os,Se]}),o})();const av={provide:new _.OlP("mat-menu-scroll-strategy"),deps:[rr],useFactory:function rv(o){return()=>o.scrollStrategies.reposition()}};let gl=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({providers:[av],imports:[M.ez,Se,Cn,Yo,In,Se]}),o})();var xg=E(4742),Sg=E(1810);function od(...o){const r=(0,wa.jO)(o),{args:e,keys:t}=(0,xg.D)(o),s=new Qe.y(u=>{const{length:d}=e;if(!d)return void u.complete();const l=new Array(d);let n=d,i=d;for(let a=0;a{c||(c=!0,i--),l[a]=h},()=>n--,void 0,()=>{(!n||!c)&&(i||u.next(t?(0,Sg.n)(t,l):l),u.complete())}))}});return r?s.pipe((0,Nc.Z)(r)):s}var v=E(529);const Tg=["*"];let _l;function Qa(o){return function zh(){if(void 0===_l&&(_l=null,typeof window<"u")){const o=window;void 0!==o.trustedTypes&&(_l=o.trustedTypes.createPolicy("angular#components",{createHTML:r=>r}))}return _l}()?.createHTML(o)||o}function ra(o){return Error(`Unable to find icon with the name "${o}"`)}function Eg(o){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${o}".`)}function Ya(o){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${o}".`)}class ss{constructor(r,e,t){this.url=r,this.svgText=e,this.options=t}}let Ja=(()=>{class o{constructor(e,t,s,u){this._httpClient=e,this._sanitizer=t,this._errorHandler=u,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=s}addSvgIcon(e,t,s){return this.addSvgIconInNamespace("",e,t,s)}addSvgIconLiteral(e,t,s){return this.addSvgIconLiteralInNamespace("",e,t,s)}addSvgIconInNamespace(e,t,s,u){return this._addSvgIconConfig(e,t,new ss(s,null,u))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,t,s,u){const d=this._sanitizer.sanitize(_.q3G.HTML,s);if(!d)throw Ya(s);const l=Qa(d);return this._addSvgIconConfig(e,t,new ss("",l,u))}addSvgIconSet(e,t){return this.addSvgIconSetInNamespace("",e,t)}addSvgIconSetLiteral(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}addSvgIconSetInNamespace(e,t,s){return this._addSvgIconSetConfig(e,new ss(t,null,s))}addSvgIconSetLiteralInNamespace(e,t,s){const u=this._sanitizer.sanitize(_.q3G.HTML,t);if(!u)throw Ya(t);const d=Qa(u);return this._addSvgIconSetConfig(e,new ss("",d,s))}registerFontClassAlias(e,t=e){return this._fontCssClassesByAlias.set(e,t),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const t=this._sanitizer.sanitize(_.q3G.RESOURCE_URL,e);if(!t)throw Eg(e);const s=this._cachedIconsByUrl.get(t);return s?(0,ke.of)(bl(s)):this._loadSvgIconFromConfig(new ss(e,null)).pipe((0,$t.b)(u=>this._cachedIconsByUrl.set(t,u)),(0,qe.U)(u=>bl(u)))}getNamedSvgIcon(e,t=""){const s=dv(t,e);let u=this._svgIconConfigs.get(s);if(u)return this._getSvgFromConfig(u);if(u=this._getIconConfigFromResolvers(t,e),u)return this._svgIconConfigs.set(s,u),this._getSvgFromConfig(u);const d=this._iconSetConfigs.get(t);return d?this._getSvgFromIconSetConfigs(e,d):(0,wi._)(ra(s))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?(0,ke.of)(bl(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe((0,qe.U)(t=>bl(t)))}_getSvgFromIconSetConfigs(e,t){const s=this._extractIconWithNameFromAnySet(e,t);return s?(0,ke.of)(s):od(t.filter(d=>!d.svgText).map(d=>this._loadSvgIconSetFromConfig(d).pipe((0,Et.K)(l=>{const i=`Loading icon set URL: ${this._sanitizer.sanitize(_.q3G.RESOURCE_URL,d.url)} failed: ${l.message}`;return this._errorHandler.handleError(new Error(i)),(0,ke.of)(null)})))).pipe((0,qe.U)(()=>{const d=this._extractIconWithNameFromAnySet(e,t);if(!d)throw ra(e);return d}))}_extractIconWithNameFromAnySet(e,t){for(let s=t.length-1;s>=0;s--){const u=t[s];if(u.svgText&&u.svgText.toString().indexOf(e)>-1){const d=this._svgElementFromConfig(u),l=this._extractSvgIconFromSet(d,e,u.options);if(l)return l}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe((0,$t.b)(t=>e.svgText=t),(0,qe.U)(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?(0,ke.of)(null):this._fetchIcon(e).pipe((0,$t.b)(t=>e.svgText=t))}_extractSvgIconFromSet(e,t,s){const u=e.querySelector(`[id="${t}"]`);if(!u)return null;const d=u.cloneNode(!0);if(d.removeAttribute("id"),"svg"===d.nodeName.toLowerCase())return this._setSvgAttributes(d,s);if("symbol"===d.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(d),s);const l=this._svgElementFromString(Qa(""));return l.appendChild(d),this._setSvgAttributes(l,s)}_svgElementFromString(e){const t=this._document.createElement("DIV");t.innerHTML=e;const s=t.querySelector("svg");if(!s)throw Error(" tag not found");return s}_toSvgElement(e){const t=this._svgElementFromString(Qa("")),s=e.attributes;for(let u=0;uQa(i)),va(()=>this._inProgressUrlFetches.delete(d)),(0,Wc.B)());return this._inProgressUrlFetches.set(d,n),n}_addSvgIconConfig(e,t,s){return this._svgIconConfigs.set(dv(e,t),s),this}_addSvgIconSetConfig(e,t){const s=this._iconSetConfigs.get(e);return s?s.push(t):this._iconSetConfigs.set(e,[t]),this}_svgElementFromConfig(e){if(!e.svgElement){const t=this._svgElementFromString(e.svgText);this._setSvgAttributes(t,e.options),e.svgElement=t}return e.svgElement}_getIconConfigFromResolvers(e,t){for(let s=0;sr?r.pathname+r.search:""}}}),Mg=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],sd=Mg.map(o=>`[${o}]`).join(", "),ld=/^url\(['"]?#(.*?)['"]?\)$/;let Ft=(()=>{class o extends uv{constructor(e,t,s,u,d,l){super(e),this._iconRegistry=t,this._location=u,this._errorHandler=d,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=Gt.w0.EMPTY,l&&(l.color&&(this.color=this.defaultColor=l.color),l.fontSet&&(this.fontSet=l.fontSet)),s||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=ut(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const t=this._cleanupFontValue(e);t!==this._fontSet&&(this._fontSet=t,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const t=this._cleanupFontValue(e);t!==this._fontIcon&&(this._fontIcon=t,this._updateFontIconClasses())}_splitIconName(e){if(!e)return["",""];const t=e.split(":");switch(t.length){case 1:return["",t[0]];case 2:return t;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.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(e){this._clearSvgElement();const t=this._location.getPathname();this._previousPath=t,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(t),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let t=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();t--;){const s=e.childNodes[t];(1!==s.nodeType||"svg"===s.nodeName.toLowerCase())&&s.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,t=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(s=>s.length>0);this._previousFontSetClass.forEach(s=>e.classList.remove(s)),t.forEach(s=>e.classList.add(s)),this._previousFontSetClass=t,this.fontIcon!==this._previousFontIconClass&&!t.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return"string"==typeof e?e.trim().split(" ")[0]:e}_prependPathToReferences(e){const t=this._elementsWithExternalReferences;t&&t.forEach((s,u)=>{s.forEach(d=>{u.setAttribute(d.name,`url('${e}#${d.value}')`)})})}_cacheChildrenWithExternalReferences(e){const t=e.querySelectorAll(sd),s=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let u=0;u{const l=t[u],n=l.getAttribute(d),i=n?n.match(ld):null;if(i){let a=s.get(l);a||(a=[],s.set(l,a)),a.push({name:d,value:i[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[t,s]=this._splitIconName(e);t&&(this._svgNamespace=t),s&&(this._svgName=s),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(s,t).pipe((0,ri.q)(1)).subscribe(u=>this._setSvgElement(u),u=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${t}:${s}! ${u.message}`))})}}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(_.SBq),_.Y36(Ja),_.$8M("aria-hidden"),_.Y36(pv),_.Y36(_.qLn),_.Y36(hv,8))},o.\u0275cmp=_.Xpm({type:o,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,t){2&e&&(_.uIk("data-mat-icon-type",t._usingFontIcon()?"font":"svg")("data-mat-icon-name",t._svgName||t.fontIcon)("data-mat-icon-namespace",t._svgNamespace||t.fontSet),_.ekj("mat-icon-inline",t.inline)("mat-icon-no-color","primary"!==t.color&&"accent"!==t.color&&"warn"!==t.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[_.qOj],ngContentSelectors:Tg,decls:1,vars:0,template:function(e,t){1&e&&(_.F$t(),_.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[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}"],encapsulation:2,changeDetection:0}),o})(),aa=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[Se,Se]}),o})();class cs{}let Gh=(()=>{class o extends cs{getTranslation(e){return(0,ke.of)({})}}return o.\u0275fac=function(){let r;return function(t){return(r||(r=_.n5z(o)))(t||o)}}(),o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac}),o})();class Wh{}let $h=(()=>{class o{handle(e){return e.key}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac}),o})();function Cl(o,r){if(o===r)return!0;if(null===o||null===r)return!1;if(o!=o&&r!=r)return!0;let s,u,d,e=typeof o;if(e==typeof r&&"object"==e){if(!Array.isArray(o)){if(Array.isArray(r))return!1;for(u in d=Object.create(null),o){if(!Cl(o[u],r[u]))return!1;d[u]=!0}for(u in r)if(!(u in d)&&typeof r[u]<"u")return!1;return!0}if(!Array.isArray(r))return!1;if((s=o.length)==r.length){for(u=0;u{cd(r[t])?t in o?e[t]=Dg(o[t],r[t]):Object.assign(e,{[t]:r[t]}):Object.assign(e,{[t]:r[t]})}),e}class dd{}let Hg=(()=>{class o extends dd{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(e,t){let s;return s="string"==typeof e?this.interpolateString(e,t):"function"==typeof e?this.interpolateFunction(e,t):e,s}getValue(e,t){let s="string"==typeof t?t.split("."):[t];t="";do{t+=s.shift(),!Pr(e)||!Pr(e[t])||"object"!=typeof e[t]&&s.length?s.length?t+=".":e=void 0:(e=e[t],t="")}while(s.length);return e}interpolateFunction(e,t){return e(t)}interpolateString(e,t){return t?e.replace(this.templateMatcher,(s,u)=>{let d=this.getValue(t,u);return Pr(d)?d:s}):e}}return o.\u0275fac=function(){let r;return function(t){return(r||(r=_.n5z(o)))(t||o)}}(),o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac}),o})();class oa{}let Rg=(()=>{class o extends oa{compile(e,t){return e}compileTranslations(e,t){return e}}return o.\u0275fac=function(){let r;return function(t){return(r||(r=_.n5z(o)))(t||o)}}(),o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac}),o})();class Pg{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new _.vpe,this.onLangChange=new _.vpe,this.onDefaultLangChange=new _.vpe}}const Qh=new _.OlP("USE_STORE"),ds=new _.OlP("USE_DEFAULT_LANG"),ud=new _.OlP("DEFAULT_LANGUAGE"),hd=new _.OlP("USE_EXTEND");let sa=(()=>{class o{constructor(e,t,s,u,d,l=!0,n=!1,i=!1,a){this.store=e,this.currentLoader=t,this.compiler=s,this.parser=u,this.missingTranslationHandler=d,this.useDefaultLang=l,this.isolate=n,this.extend=i,this.pending=!1,this._onTranslationChange=new _.vpe,this._onLangChange=new _.vpe,this._onDefaultLangChange=new _.vpe,this._langs=[],this._translations={},this._translationRequests={},a&&this.setDefaultLang(a)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(e){this.isolate?this._currentLang=e:this.store.currentLang=e}get langs(){return this.isolate?this._langs:this.store.langs}set langs(e){this.isolate?this._langs=e:this.store.langs=e}get translations(){return this.isolate?this._translations:this.store.translations}set translations(e){this.isolate?this._translations=e:this.store.translations=e}setDefaultLang(e){if(e===this.defaultLang)return;let t=this.retrieveTranslations(e);typeof t<"u"?(null==this.defaultLang&&(this.defaultLang=e),t.pipe((0,ri.q)(1)).subscribe(s=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(e===this.currentLang)return(0,ke.of)(this.translations[e]);let t=this.retrieveTranslations(e);return typeof t<"u"?(this.currentLang||(this.currentLang=e),t.pipe((0,ri.q)(1)).subscribe(s=>{this.changeLang(e)}),t):(this.changeLang(e),(0,ke.of)(this.translations[e]))}retrieveTranslations(e){let t;return(typeof this.translations[e]>"u"||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),t=this._translationRequests[e]),t}getTranslation(e){this.pending=!0;const t=this.currentLoader.getTranslation(e).pipe(hh(1),(0,ri.q)(1));return this.loadingTranslations=t.pipe((0,qe.U)(s=>this.compiler.compileTranslations(s,e)),hh(1),(0,ri.q)(1)),this.loadingTranslations.subscribe({next:s=>{this.translations[e]=this.extend&&this.translations[e]?{...s,...this.translations[e]}:s,this.updateLangs(),this.pending=!1},error:s=>{this.pending=!1}}),t}setTranslation(e,t,s=!1){t=this.compiler.compileTranslations(t,e),this.translations[e]=(s||this.extend)&&this.translations[e]?Dg(this.translations[e],t):t,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return this.langs}addLangs(e){e.forEach(t=>{-1===this.langs.indexOf(t)&&this.langs.push(t)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(e,t,s){let u;if(t instanceof Array){let d={},l=!1;for(let n of t)d[n]=this.getParsedResult(e,n,s),cn(d[n])&&(l=!0);return l?od(t.map(i=>cn(d[i])?d[i]:(0,ke.of)(d[i]))).pipe((0,qe.U)(i=>{let a={};return i.forEach((c,h)=>{a[t[h]]=c}),a})):d}if(e&&(u=this.parser.interpolate(this.parser.getValue(e,t),s)),typeof u>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(u=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],t),s)),typeof u>"u"){let d={key:t,translateService:this};typeof s<"u"&&(d.interpolateParams=s),u=this.missingTranslationHandler.handle(d)}return typeof u<"u"?u:t}get(e,t){if(!Pr(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,Bt.b)(s=>cn(s=this.getParsedResult(s,e,t))?s:(0,ke.of)(s)));{let s=this.getParsedResult(this.translations[this.currentLang],e,t);return cn(s)?s:(0,ke.of)(s)}}getStreamOnTranslationChange(e,t){if(!Pr(e)||!e.length)throw new Error('Parameter "key" required');return(0,Ui.z)(on(()=>this.get(e,t)),this.onTranslationChange.pipe((0,Bi.w)(s=>{const u=this.getParsedResult(s.translations,e,t);return"function"==typeof u.subscribe?u:(0,ke.of)(u)})))}stream(e,t){if(!Pr(e)||!e.length)throw new Error('Parameter "key" required');return(0,Ui.z)(on(()=>this.get(e,t)),this.onLangChange.pipe((0,Bi.w)(s=>{const u=this.getParsedResult(s.translations,e,t);return cn(u)?u:(0,ke.of)(u)})))}instant(e,t){if(!Pr(e)||!e.length)throw new Error('Parameter "key" required');let s=this.getParsedResult(this.translations[this.currentLang],e,t);if(cn(s)){if(e instanceof Array){let u={};return e.forEach((d,l)=>{u[e[l]]=e[l]}),u}return e}return s}set(e,t,s=this.currentLang){this.translations[s][e]=this.compiler.compile(t,s),this.updateLangs(),this.onTranslationChange.emit({lang:s,translations:this.translations[s]})}changeLang(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),null==this.defaultLang&&this.changeDefaultLang(e)}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return this.resetLang(e),this.getTranslation(e)}resetLang(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof e>"u"?void 0:(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,e}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(Pg),_.LFG(cs),_.LFG(oa),_.LFG(dd),_.LFG(Wh),_.LFG(ds),_.LFG(Qh),_.LFG(hd),_.LFG(ud))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac}),o})(),Hi=(()=>{class o{constructor(e,t){this.translate=e,this._ref=t,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(e,t,s){let u=d=>{this.value=void 0!==d?d:e,this.lastKey=e,this._ref.markForCheck()};if(s){let d=this.translate.getParsedResult(s,e,t);cn(d.subscribe)?d.subscribe(u):u(d)}this.translate.get(e,t).subscribe(u)}transform(e,...t){if(!e||!e.length)return e;if(Cl(e,this.lastKey)&&Cl(t,this.lastParams))return this.value;let s;if(Pr(t[0])&&t.length)if("string"==typeof t[0]&&t[0].length){let u=t[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{s=JSON.parse(u)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${t[0]}`)}}else"object"==typeof t[0]&&!Array.isArray(t[0])&&(s=t[0]);return this.lastKey=e,this.lastParams=t,this.updateValue(e,s),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(u=>{this.lastKey&&u.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,s,u.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(u=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,s,u.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,s))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(sa,16),_.Y36(_.sBO,16))},o.\u0275pipe=_.Yjl({name:"translate",type:o,pure:!1}),o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac}),o})(),lr=(()=>{class o{static forRoot(e={}){return{ngModule:o,providers:[e.loader||{provide:cs,useClass:Gh},e.compiler||{provide:oa,useClass:Rg},e.parser||{provide:dd,useClass:Hg},e.missingTranslationHandler||{provide:Wh,useClass:$h},Pg,{provide:Qh,useValue:e.isolate},{provide:ds,useValue:e.useDefaultLang},{provide:hd,useValue:e.extend},{provide:ud,useValue:e.defaultLanguage},sa]}}static forChild(e={}){return{ngModule:o,providers:[e.loader||{provide:cs,useClass:Gh},e.compiler||{provide:oa,useClass:Rg},e.parser||{provide:dd,useClass:Hg},e.missingTranslationHandler||{provide:Wh,useClass:$h},{provide:Qh,useValue:e.isolate},{provide:ds,useValue:e.useDefaultLang},{provide:hd,useValue:e.extend},{provide:ud,useValue:e.defaultLanguage},sa]}}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({}),o})(),Ig=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[$a,gl,aa,Tr,lr,M.ez]}),o})();var fv=E(5861);function mv(o,r){}class wl{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0}}let Yh=(()=>{class o extends vh{constructor(e,t,s,u,d,l,n,i){super(),this._elementRef=e,this._focusTrapFactory=t,this._config=u,this._interactivityChecker=d,this._ngZone=l,this._overlayRef=n,this._focusMonitor=i,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=a=>{this._portalOutlet.hasAttached();const c=this._portalOutlet.attachDomPortal(a);return this._contentAttached(),c},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=s}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();const t=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),t}attachTemplatePortal(e){this._portalOutlet.hasAttached();const t=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),t}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const s=()=>{e.removeEventListener("blur",s),e.removeEventListener("mousedown",s),e.removeAttribute("tabindex")};e.addEventListener("blur",s),e.addEventListener("mousedown",s)})),e.focus(t)}_focusByCssSelector(e,t){let s=this._elementRef.nativeElement.querySelector(e);s&&this._forceFocus(s,t)}_trapFocus(){const e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(t=>{t||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const e=this._config.restoreFocus;let t=null;if("string"==typeof e?t=this._document.querySelector(e):"boolean"==typeof e?t=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(t=e),this._config.restoreFocus&&t&&"function"==typeof t.focus){const s=vc(),u=this._elementRef.nativeElement;(!s||s===this._document.body||s===u||u.contains(s))&&(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,t=vc();return e===t||e.contains(t)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=vc())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(_.SBq),_.Y36(zu),_.Y36(M.K0,8),_.Y36(wl),_.Y36(Xs),_.Y36(_.R0b),_.Y36(na),_.Y36(gn))},o.\u0275cmp=_.Xpm({type:o,selectors:[["cdk-dialog-container"]],viewQuery:function(e,t){if(1&e&&_.Gf(Yc,7),2&e){let s;_.iGM(s=_.CRH())&&(t._portalOutlet=s.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(e,t){2&e&&_.uIk("id",t._config.id||null)("role",t._config.role)("aria-modal",t._config.ariaModal)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null)},features:[_.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&_.YNc(0,mv,0,0,"ng-template",0)},dependencies:[Yc],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),o})();class Jh{constructor(r,e){this.overlayRef=r,this.config=e,this.closed=new Ee.x,this.disableClose=e.disableClose,this.backdropClick=r.backdropClick(),this.keydownEvents=r.keydownEvents(),this.outsidePointerEvents=r.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(t=>{27===t.keyCode&&!this.disableClose&&!Sr(t)&&(t.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(r,e){if(this.containerInstance){const t=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this.overlayRef.dispose(),t.next(r),t.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(r="",e=""){return this.overlayRef.updateSize({width:r,height:e}),this}addPanelClass(r){return this.overlayRef.addPanelClass(r),this}removePanelClass(r){return this.overlayRef.removePanelClass(r),this}}const Kh=new _.OlP("DialogScrollStrategy"),_v=new _.OlP("DialogData"),bv=new _.OlP("DefaultDialogConfig"),cT={provide:Kh,deps:[rr],useFactory:function lT(o){return()=>o.scrollStrategies.block()}};let dT=0,Cv=(()=>{class o{constructor(e,t,s,u,d,l){this._overlay=e,this._injector=t,this._defaultOptions=s,this._parentDialog=u,this._overlayContainer=d,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Ee.x,this._afterOpenedAtThisLevel=new Ee.x,this._ariaHiddenElements=new Map,this.afterAllClosed=on(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Si(void 0))),this._scrollStrategy=l}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}open(e,t){(t={...this._defaultOptions||new wl,...t}).id=t.id||"cdk-dialog-"+dT++,t.id&&this.getDialogById(t.id);const u=this._getOverlayConfig(t),d=this._overlay.create(u),l=new Jh(d,t),n=this._attachContainer(d,l,t);return l.containerInstance=n,this._attachDialogContent(e,l,n,t),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(l),l.closed.subscribe(()=>this._removeOpenDialog(l,!0)),this.afterOpened.next(l),l}closeAll(){pd(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){pd(this._openDialogsAtThisLevel,e=>{!1===e.config.closeOnDestroy&&this._removeOpenDialog(e,!1)}),pd(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){const t=new uy({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}_attachContainer(e,t,s){const u=s.injector??s.viewContainerRef?.injector,d=[{provide:wl,useValue:s},{provide:Jh,useValue:t},{provide:na,useValue:e}];let l;s.container?"function"==typeof s.container?l=s.container:(l=s.container.type,d.push(...s.container.providers(s))):l=Yh;const n=new wh(l,s.viewContainerRef,_.zs3.create({parent:u||this._injector,providers:d}),s.componentFactoryResolver);return e.attach(n).instance}_attachDialogContent(e,t,s,u){const d=this._createInjector(u,t,s);if(e instanceof _.Rgc){let l={$implicit:u.data,dialogRef:t};u.templateContext&&(l={...l,..."function"==typeof u.templateContext?u.templateContext():u.templateContext}),s.attachTemplatePortal(new yh(e,null,l,d))}else{const l=s.attachComponentPortal(new wh(e,u.viewContainerRef,d,u.componentFactoryResolver));t.componentInstance=l.instance}}_createInjector(e,t,s){const u=e&&e.viewContainerRef&&e.viewContainerRef.injector,d=[{provide:_v,useValue:e.data},{provide:Jh,useValue:t}];return e.providers&&("function"==typeof e.providers?d.push(...e.providers(t,e,s)):d.push(...e.providers)),e.direction&&(!u||!u.get(Rn,null,_.XFs.Optional))&&d.push({provide:Rn,useValue:{value:e.direction,change:(0,ke.of)()}}),_.zs3.create({parent:e.injector||u||this._injector,providers:d})}_removeOpenDialog(e,t){const s=this.openDialogs.indexOf(e);s>-1&&(this.openDialogs.splice(s,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((u,d)=>{u?d.setAttribute("aria-hidden",u):d.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),t&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const t=e.parentElement.children;for(let s=t.length-1;s>-1;s--){const u=t[s];u!==e&&"SCRIPT"!==u.nodeName&&"STYLE"!==u.nodeName&&!u.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(u,u.getAttribute("aria-hidden")),u.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(rr),_.LFG(_.zs3),_.LFG(bv,8),_.LFG(o,12),_.LFG(yn),_.LFG(Kh))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac}),o})();function pd(o,r){let e=o.length;for(;e--;)r(o[e])}let fd=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({providers:[Cv,cT],imports:[Yo,ia,Ua,ia]}),o})();function wv(o,r){}const us={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},kg={dialogContainer:oi("dialogContainer",[ft("void, exit",je({opacity:0,transform:"scale(0.7)"})),ft("enter",je({transform:"none"})),bt("* => enter",ng([yt("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",je({transform:"none",opacity:1})),dn("@*",Jo(),{optional:!0})]),us),bt("* => void, * => exit",ng([yt("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",je({opacity:0})),dn("@*",Jo(),{optional:!0})]),us)])};class Ir{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="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0,this.enterAnimationDuration=us.params.enterAnimationDuration,this.exitAnimationDuration=us.params.exitAnimationDuration}}let yv=(()=>{class o extends Yh{constructor(e,t,s,u,d,l,n,i){super(e,t,s,u,d,l,n,i),this._animationStateChanged=new _.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(_.SBq),_.Y36(zu),_.Y36(M.K0,8),_.Y36(Ir),_.Y36(Xs),_.Y36(_.R0b),_.Y36(na),_.Y36(gn))},o.\u0275cmp=_.Xpm({type:o,selectors:[["ng-component"]],features:[_.qOj],decls:0,vars:0,template:function(e,t){},encapsulation:2}),o})(),vv=(()=>{class o extends yv{constructor(e,t,s,u,d,l,n,i,a){super(e,t,s,u,d,l,n,a),this._changeDetectorRef=i,this._state="enter"}_onAnimationDone({toState:e,totalTime:t}){"enter"===e?this._openAnimationDone(t):"exit"===e&&this._animationStateChanged.next({state:"closed",totalTime:t})}_onAnimationStart({toState:e,totalTime:t}){"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:t}):("exit"===e||"void"===e)&&this._animationStateChanged.next({state:"closing",totalTime:t})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||us.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||us.params.exitAnimationDuration}}}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(_.SBq),_.Y36(zu),_.Y36(M.K0,8),_.Y36(Ir),_.Y36(Xs),_.Y36(_.R0b),_.Y36(na),_.Y36(_.sBO),_.Y36(gn))},o.\u0275cmp=_.Xpm({type:o,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(e,t){1&e&&_.WFA("@dialogContainer.start",function(u){return t._onAnimationStart(u)})("@dialogContainer.done",function(u){return t._onAnimationDone(u)}),2&e&&(_.Ikx("id",t._config.id),_.uIk("aria-modal",t._config.ariaModal)("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),_.d8E("@dialogContainer",t._getAnimationState()))},features:[_.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&_.YNc(0,wv,0,0,"ng-template",0)},dependencies:[Yc],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.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.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}"],encapsulation:2,data:{animation:[kg.dialogContainer]}}),o})();class Vn{constructor(r,e,t){this._ref=r,this._containerInstance=t,this._afterOpened=new Ee.x,this._beforeClosed=new Ee.x,this._state=0,this.disableClose=e.disableClose,this.id=r.id,t._animationStateChanged.pipe((0,Wt.h)(s=>"opened"===s.state),(0,ri.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),t._animationStateChanged.pipe((0,Wt.h)(s=>"closed"===s.state),(0,ri.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),r.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,nr.T)(this.backdropClick(),this.keydownEvents().pipe((0,Wt.h)(s=>27===s.keyCode&&!this.disableClose&&!Sr(s)))).subscribe(s=>{this.disableClose||(s.preventDefault(),function Av(o,r,e){o._closeInteractionType=r,o.close(e)}(this,"keydown"===s.type?"keyboard":"mouse"))})}close(r){this._result=r,this._containerInstance._animationStateChanged.pipe((0,Wt.h)(e=>"closing"===e.state),(0,ri.q)(1)).subscribe(e=>{this._beforeClosed.next(r),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(r){let e=this._ref.config.positionStrategy;return r&&(r.left||r.right)?r.left?e.left(r.left):e.right(r.right):e.centerHorizontally(),r&&(r.top||r.bottom)?r.top?e.top(r.top):e.bottom(r.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(r="",e=""){return this._ref.updateSize(r,e),this}addPanelClass(r){return this._ref.addPanelClass(r),this}removePanelClass(r){return this._ref.removePanelClass(r),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}const hs=new _.OlP("MatDialogData"),Bg=new _.OlP("mat-dialog-default-options"),Vg=new _.OlP("mat-dialog-scroll-strategy"),xv={provide:Vg,deps:[rr],useFactory:function ps(o){return()=>o.scrollStrategies.block()}};let Og=0,Sv=(()=>{class o{constructor(e,t,s,u,d,l,n,i,a,c){this._overlay=e,this._defaultOptions=s,this._parentDialog=u,this._dialogRefConstructor=n,this._dialogContainerType=i,this._dialogDataToken=a,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Ee.x,this._afterOpenedAtThisLevel=new Ee.x,this._idPrefix="mat-dialog-",this.afterAllClosed=on(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Si(void 0))),this._scrollStrategy=l,this._dialog=t.get(Cv)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(e,t){let s;(t={...this._defaultOptions||new Ir,...t}).id=t.id||`${this._idPrefix}${Og++}`,t.scrollStrategy=t.scrollStrategy||this._scrollStrategy();const u=this._dialog.open(e,{...t,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:Ir,useValue:t},{provide:wl,useValue:t}]},templateContext:()=>({dialogRef:s}),providers:(d,l,n)=>(s=new this._dialogRefConstructor(d,t,n),s.updatePosition(t?.position),[{provide:this._dialogContainerType,useValue:n},{provide:this._dialogDataToken,useValue:l.data},{provide:this._dialogRefConstructor,useValue:s}])});return s.componentInstance=u.componentInstance,this.openDialogs.push(s),this.afterOpened.next(s),s.afterClosed().subscribe(()=>{const d=this.openDialogs.indexOf(s);d>-1&&(this.openDialogs.splice(d,1),this.openDialogs.length||this._getAfterAllClosed().next())}),s}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let t=e.length;for(;t--;)e[t].close()}}return o.\u0275fac=function(e){_.$Z()},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac}),o})(),cr=(()=>{class o extends Sv{constructor(e,t,s,u,d,l,n,i){super(e,t,u,l,n,d,Vn,vv,hs,i)}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(rr),_.LFG(_.zs3),_.LFG(M.Ye,8),_.LFG(Bg,8),_.LFG(Vg),_.LFG(o,12),_.LFG(yn),_.LFG(_.QbO,8))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac}),o})(),Tv=0,la=(()=>{class o{constructor(e,t,s){this._dialogRef=e,this._elementRef=t,this._dialog=s,this.id="mat-dialog-title-"+Tv++}ngOnInit(){this._dialogRef||(this._dialogRef=function Lg(o,r){let e=o.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-dialog-container");)e=e.parentElement;return e?r.find(t=>t.id===e.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const e=this._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=this.id)})}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(Vn,8),_.Y36(_.SBq),_.Y36(cr))},o.\u0275dir=_.lG2({type:o,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,t){2&e&&_.Ikx("id",t.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),o})(),dr=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275dir=_.lG2({type:o,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),o})(),ca=(()=>{class o{constructor(){this.align="start"}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275dir=_.lG2({type:o,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(e,t){2&e&&_.ekj("mat-dialog-actions-align-center","center"===t.align)("mat-dialog-actions-align-end","end"===t.align)},inputs:{align:"align"}}),o})(),yl=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({providers:[cr,xv],imports:[fd,Yo,ia,Se,Se]}),o})();function md(){return(md=(0,fv.Z)(function*(o,r){yield Fg(o),r()})).apply(this,arguments)}function Fg(o){return new Promise(r=>setTimeout(r,o))}function ur(){const o=new Ir;return o.disableClose=!0,o.autoFocus=!1,o}function gd(o,r){const e=r.split("&");for(const t of e){const[s,u]=t.split("=");if(s.includes(o))return u}return""}E(4327),new Intl.Collator("cs",{numeric:!0});class si{encodeKey(r){return encodeURIComponent(r)}encodeValue(r){return encodeURIComponent(r)}decodeKey(r){return decodeURIComponent(r)}decodeValue(r){return decodeURIComponent(r)}}const Xt=new _.OlP("basePath");class st{constructor(r={}){this.apiKeys=r.apiKeys,this.username=r.username,this.password=r.password,this.accessToken=r.accessToken,this.basePath=r.basePath,this.withCredentials=r.withCredentials,this.encoder=r.encoder,this.credentials=r.credentials?r.credentials:{},this.credentials.BasicAuth||(this.credentials.BasicAuth=()=>this.username||this.password?btoa(this.username+":"+this.password):void 0),this.credentials.BearerAuth||(this.credentials.BearerAuth=()=>"function"==typeof this.accessToken?this.accessToken():this.accessToken)}selectHeaderContentType(r){if(0===r.length)return;const e=r.find(t=>this.isJsonMime(t));return void 0===e?r[0]:e}selectHeaderAccept(r){if(0===r.length)return;const e=r.find(t=>this.isJsonMime(t));return void 0===e?r[0]:e}isJsonMime(r){const e=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==r&&(e.test(r)||"application/json-patch+json"===r.toLowerCase())}lookupCredential(r){const e=this.credentials[r];return"function"==typeof e?e():e}}let Jg=(()=>{class o{constructor(e,t,s){this.httpClient=e,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new v.WM,this.configuration=new st,s&&(this.configuration=s),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new si}addToHttpParams(e,t,s){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,s):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,s){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(u=>e=this.addToHttpParamsRecursive(e,u,s));else if(t instanceof Date){if(null==s)throw Error("key may not be null if value is Date");e=e.append(s,t.toISOString().substr(0,10))}else Object.keys(t).forEach(u=>e=this.addToHttpParamsRecursive(e,t[u],null!=s?`${s}.${u}`:u));else{if(null==s)throw Error("key may not be null if value is not object or array");e=e.append(s,t)}return e}convertAttributeToNonunique(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToNonunique.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attributeDefinition"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToNonunique`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.post(f,null,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}convertAttributeToUnique(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToUnique.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attributeDefinition"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToUnique`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.post(f,null,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}createAttributeDefinition(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputCreateAttributeDefinition was null or undefined when calling createAttributeDefinition.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/createAttribute`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}deleteAttributeDefinition(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attribute was null or undefined when calling deleteAttributeDefinition.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attribute"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttribute`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.post(f,null,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}deleteAttributeDefinitions(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attributes was null or undefined when calling deleteAttributeDefinitions.");let l=new v.LE({encoder:this.encoder});e&&e.forEach(m=>{l=this.addToHttpParams(l,m,"attributes[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttributes`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.post(f,null,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getAllAttributeDefinitions(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let a="json";n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getAttributesDefinition`;if(e){let h=new URL(c),f=h.pathname.split("/");f[1]="non",h.pathname=f.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getAttribute(e,t,s,u,d,l,n,i,a,c,h,f=!1,m="body",p=!1,w){let R=new v.LE({encoder:this.encoder});null!=e&&(R=this.addToHttpParams(R,e,"attributeName")),null!=t&&(R=this.addToHttpParams(R,t,"attributeId")),null!=s&&(R=this.addToHttpParams(R,s,"facility")),null!=u&&(R=this.addToHttpParams(R,u,"user")),null!=d&&(R=this.addToHttpParams(R,d,"vo")),null!=l&&(R=this.addToHttpParams(R,l,"resource")),null!=n&&(R=this.addToHttpParams(R,n,"member")),null!=i&&(R=this.addToHttpParams(R,i,"group")),null!=a&&(R=this.addToHttpParams(R,a,"host")),null!=c&&(R=this.addToHttpParams(R,c,"userExtSource")),null!=h&&(R=this.addToHttpParams(R,h,"key"));let Te,J=this.defaultHeaders;Te=this.configuration.lookupCredential("BasicAuth"),Te&&(J=J.set("Authorization","Basic "+Te)),Te=this.configuration.lookupCredential("BearerAuth"),Te&&(J=J.set("Authorization","Bearer "+Te));let nt=w&&w.httpHeaderAccept;void 0===nt&&(nt=this.configuration.selectHeaderAccept(["application/json"])),void 0!==nt&&(J=J.set("Accept",nt));let Ai=w&&w.context;void 0===Ai&&(Ai=new v.qT);let ii="json";nt&&(ii=nt.startsWith("text")?"text":this.configuration.isJsonMime(nt)?"json":"blob");let hi=`${this.configuration.basePath}/json/attributesManager/getAttribute/any`;if(f){let un=new URL(hi),fr=un.pathname.split("/");fr[1]="non",un.pathname=fr.join("/"),hi=un.toString()}return this.httpClient.get(hi,{context:Ai,params:R,responseType:ii,withCredentials:this.configuration.withCredentials,headers:J,observe:m,reportProgress:p})}getAttributeDefinitionById(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter id was null or undefined when calling getAttributeDefinitionById.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttributeDefinitionById`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getAttributeDefinitionByName(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getAttributeDefinitionByName.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attributeName"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttributeDefinition`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getAttributeDefinitionsByNamespace(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter namespace was null or undefined when calling getAttributeDefinitionsByNamespace.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"namespace"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttributesDefinitionByNamespace`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getAttributeModulesDependenciesForAttributeGraphText(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");if(null==t)throw new Error("Required parameter attrName was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"format")),null!=t&&(n=this.addToHttpParams(n,t,"attrName"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText/for-attribute`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getAttributeModulesDependenciesGraphText(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesGraphText.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"format"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getAttributePolicyCollections(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getAttributePolicyCollections.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attributeId"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttributePolicyCollections`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getAttributeRights(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getAttributeRights.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attributeId"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttributeRights`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getAttributeRules(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling getAttributeRules.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attributeDefinition"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttributeRules`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getAttributesDefinitionWithRights(e,t,s,u,d,l,n,i,a=!1,c="body",h=!1,f){let m=new v.LE({encoder:this.encoder});null!=e&&(m=this.addToHttpParams(m,e,"member")),null!=t&&(m=this.addToHttpParams(m,t,"user")),null!=s&&(m=this.addToHttpParams(m,s,"vo")),null!=u&&(m=this.addToHttpParams(m,u,"group")),null!=d&&(m=this.addToHttpParams(m,d,"resource")),null!=l&&(m=this.addToHttpParams(m,l,"facility")),null!=n&&(m=this.addToHttpParams(m,n,"host")),null!=i&&(m=this.addToHttpParams(m,i,"userExtSource"));let w,p=this.defaultHeaders;w=this.configuration.lookupCredential("BasicAuth"),w&&(p=p.set("Authorization","Basic "+w)),w=this.configuration.lookupCredential("BearerAuth"),w&&(p=p.set("Authorization","Bearer "+w));let R=f&&f.httpHeaderAccept;void 0===R&&(R=this.configuration.selectHeaderAccept(["application/json"])),void 0!==R&&(p=p.set("Accept",R));let J=f&&f.context;void 0===J&&(J=new v.qT);let Te="json";R&&(Te=R.startsWith("text")?"text":this.configuration.isJsonMime(R)?"json":"blob");let nt=`${this.configuration.basePath}/urlinjsonout/attributesManager/getAttributesDefinitionWithRights`;if(a){let Ai=new URL(nt),ii=Ai.pathname.split("/");ii[1]="non",Ai.pathname=ii.join("/"),nt=Ai.toString()}return this.httpClient.get(nt,{context:J,params:m,responseType:Te,withCredentials:this.configuration.withCredentials,headers:p,observe:c,reportProgress:h})}getEntitylessAttributeByName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getEntitylessAttributeByName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"key")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-entityless`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getEntitylessAttributesByKey(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributesByKey.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"key"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttributes/key`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getEntitylessAttributesByName(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesByName.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attrName"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributes`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getEntitylessAttributesWithKeys(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesWithKeys.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"attrName")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"keys[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributesWithKeys`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getEntitylessKeys(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling getEntitylessKeys.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attributeDefinition"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getEntitylessKeys`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getFacilityAttributeById(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getFacilityAttributeById.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-facility`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getFacilityAttributeByName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getFacilityAttributeByName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-facility`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getFacilityAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"facility"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttributes/f`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getFacilityAttributesByNames(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getFacilityAttributesByNames.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attrNames[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/f-names`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getFacilityResourceUserMemberAttributes(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==s)throw new Error("Required parameter user was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==u)throw new Error("Required parameter member was null or undefined when calling getFacilityResourceUserMemberAttributes.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"facility")),null!=t&&(a=this.addToHttpParams(a,t,"resource")),null!=s&&(a=this.addToHttpParams(a,s,"user")),null!=u&&(a=this.addToHttpParams(a,u,"member"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(c=c.set("Accept",f));let m=i&&i.context;void 0===m&&(m=new v.qT);let p="json";f&&(p=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob");let w=`${this.configuration.basePath}/json/attributesManager/getAttributes/f-r-u-m`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.get(w,{context:m,params:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}getFacilityUserAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityUserAttributes.");if(null==t)throw new Error("Required parameter user was null or undefined when calling getFacilityUserAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),null!=t&&(n=this.addToHttpParams(n,t,"user"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/f-u`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getGroupAttributeById(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getGroupAttributeById.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getGroupAttributeByName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getGroupAttributeByName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getGroupAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttributes/g`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getGroupAttributesByNames(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getGroupAttributesByNames.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attrNames[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/g-names`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getGroupResourceAttributeById(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeById.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeById.");if(null==s)throw new Error("Required parameter attributeId was null or undefined when calling getGroupResourceAttributeById.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"group")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"attributeId"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new v.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group-resource`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:f,params:i,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:l})}getGroupResourceAttributeByName(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeByName.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeByName.");if(null==s)throw new Error("Required parameter attributeName was null or undefined when calling getGroupResourceAttributeByName.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"group")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"attributeName"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new v.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group-resource`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:f,params:i,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:l})}getGroupResourceAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/group-resource`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getHostAttributeById(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getHostAttributeById.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-host`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getHostAttributeByName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getHostAttributeByName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-host`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getHostAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"host"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttributes/h`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getHostAttributesByNames(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getHostAttributesByNames.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attrNames[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/h-names`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getIdpAttributeDefinitions(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let a="json";n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getIdpAttributeDefinitions`;if(e){let h=new URL(c),f=h.pathname.split("/");f[1]="non",h.pathname=f.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getLogins(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getLogins.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getLogins`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getMemberAndUserAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributes.");if(null==t)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"workWithUserAttributes"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-wu`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getMemberAndUserAttributesByNames(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==s)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributesByNames.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),t&&t.forEach(w=>{i=this.addToHttpParams(i,w,"attrNames[]")}),null!=s&&(i=this.addToHttpParams(i,s,"workWithUserAttributes"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new v.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names-wu`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:f,params:i,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:l})}getMemberAttributeById(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getMemberAttributeById.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getMemberAttributeByName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getMemberAttributeByName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getMemberAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"member"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttributes/m`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getMemberAttributesByNames(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAttributesByNames.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attrNames[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getMemberGroupAndUserAttributesByNames(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==u)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberGroupAndUserAttributesByNames.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"member")),null!=t&&(a=this.addToHttpParams(a,t,"group")),s&&s.forEach(R=>{a=this.addToHttpParams(a,R,"attrNames[]")}),null!=u&&(a=this.addToHttpParams(a,u,"workWithUserAttributes"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(c=c.set("Accept",f));let m=i&&i.context;void 0===m&&(m=new v.qT);let p="json";f&&(p=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob");let w=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names-wu`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.get(w,{context:m,params:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}getMemberGroupAttributeById(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeById.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeById.");if(null==s)throw new Error("Required parameter attributeId was null or undefined when calling getMemberGroupAttributeById.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),null!=s&&(i=this.addToHttpParams(i,s,"attributeId"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new v.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-group`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:f,params:i,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:l})}getMemberGroupAttributeByName(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeByName.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeByName.");if(null==s)throw new Error("Required parameter attributeName was null or undefined when calling getMemberGroupAttributeByName.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),null!=s&&(i=this.addToHttpParams(i,s,"attributeName"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new v.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-group`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:f,params:i,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:l})}getMemberGroupAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"group"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getMemberGroupAttributesByNames(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributesByNames.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAttributesByNames.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),s&&s.forEach(w=>{i=this.addToHttpParams(i,w,"attrNames[]")});let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new v.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:f,params:i,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:l})}getMemberResourceAndUserFacilityAttributes(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==s)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"workWithUserAttributes"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new v.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-wu`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:f,params:i,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:l})}getMemberResourceAndUserFacilityAttributesByNames(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==u)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"member")),null!=t&&(a=this.addToHttpParams(a,t,"resource")),s&&s.forEach(R=>{a=this.addToHttpParams(a,R,"attrNames[]")}),null!=u&&(a=this.addToHttpParams(a,u,"workWithUserAttributes"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(c=c.set("Accept",f));let m=i&&i.context;void 0===m&&(m=new v.qT);let p="json";f&&(p=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob");let w=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-names-wu`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.get(w,{context:m,params:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}getMemberResourceAttributeById(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeById.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeById.");if(null==s)throw new Error("Required parameter attributeId was null or undefined when calling getMemberResourceAttributeById.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"attributeId"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new v.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-resource`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:f,params:i,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:l})}getMemberResourceAttributeByName(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeByName.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeByName.");if(null==s)throw new Error("Required parameter attributeName was null or undefined when calling getMemberResourceAttributeByName.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"attributeName"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new v.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-resource`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:f,params:i,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:l})}getMemberResourceAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getRequiredAttributesDefinition(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesDefinition.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"service"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributesDefinition`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getRequiredAttributesFacility(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacility.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"facility"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/f`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getRequiredAttributesFacilityService(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesFacilityService.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityService.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"service")),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-f`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getRequiredAttributesFacilityServices(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesFacilityServices.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityServices.");let n=new v.LE({encoder:this.encoder});e&&e.forEach(p=>{n=this.addToHttpParams(n,p,"services[]")}),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-f`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getRequiredAttributesGroupResourceService(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==s)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesGroupResourceService.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"service")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"group"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new v.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:f,params:i,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:l})}getRequiredAttributesHostService(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesHostService.");if(null==t)throw new Error("Required parameter host was null or undefined when calling getRequiredAttributesHostService.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"service")),null!=t&&(n=this.addToHttpParams(n,t,"host"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-h`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getRequiredAttributesMember(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMember.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"workWithUserAttributes"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getRequiredAttributesMemberGroup(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroup.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroup.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),null!=s&&(i=this.addToHttpParams(i,s,"workWithUserAttributes"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new v.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-g`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:f,params:i,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:l})}getRequiredAttributesMemberGroupResourceService(e,t,s,u,d,l=!1,n="body",i=!1,a){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==s)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==u)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"service")),null!=t&&(c=this.addToHttpParams(c,t,"resource")),null!=s&&(c=this.addToHttpParams(c,s,"group")),null!=u&&(c=this.addToHttpParams(c,u,"member")),null!=d&&(c=this.addToHttpParams(c,d,"workWithUserAttributes"));let f,h=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(h=h.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(h=h.set("Authorization","Bearer "+f));let m=a&&a.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(h=h.set("Accept",m));let p=a&&a.context;void 0===p&&(p=new v.qT);let w="json";m&&(w=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let R=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g-m`;if(l){let J=new URL(R),Te=J.pathname.split("/");Te[1]="non",J.pathname=Te.join("/"),R=J.toString()}return this.httpClient.get(R,{context:p,params:c,responseType:w,withCredentials:this.configuration.withCredentials,headers:h,observe:n,reportProgress:i})}getRequiredAttributesMemberGroupService(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==s)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupService.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"service")),null!=t&&(a=this.addToHttpParams(a,t,"group")),null!=s&&(a=this.addToHttpParams(a,s,"member")),null!=u&&(a=this.addToHttpParams(a,u,"workWithUserAttributes"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(c=c.set("Accept",f));let m=i&&i.context;void 0===m&&(m=new v.qT);let p="json";f&&(p=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob");let w=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-g-m`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.get(w,{context:m,params:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}getRequiredAttributesMemberResource(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResource.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResource.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"workWithUserAttributes"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new v.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-r`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:f,params:i,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:l})}getRequiredAttributesMemberResourceService(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==s)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResourceService.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"service")),null!=t&&(a=this.addToHttpParams(a,t,"resource")),null!=s&&(a=this.addToHttpParams(a,s,"member")),null!=u&&(a=this.addToHttpParams(a,u,"workWithUserAttributes"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(c=c.set("Accept",f));let m=i&&i.context;void 0===m&&(m=new v.qT);let p="json";f&&(p=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob");let w=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-m`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.get(w,{context:m,params:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}getRequiredAttributesResource(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResource.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"resource"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/r`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getRequiredAttributesResourceService(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceService.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"service")),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getRequiredAttributesResourceServices(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesResourceServices.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceServices.");let n=new v.LE({encoder:this.encoder});e&&e.forEach(p=>{n=this.addToHttpParams(n,p,"services[]")}),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-r`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getRequiredAttributesUser(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUser.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getRequiredAttributesUserFacility(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUserFacility.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesUserFacility.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u-f`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getRequiredAttributesVoService(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesVoService.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling getRequiredAttributesVoService.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"service")),null!=t&&(n=this.addToHttpParams(n,t,"vo"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-v`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getResourceAttributeById(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getResourceAttributeById.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-resource`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getResourceAttributeByName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getResourceAttributeByName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-resource`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getResourceAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"resource"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttributes/r`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getResourceAttributesByNames(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getResourceAttributesByNames.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attrNames[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-names`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getResourceGroupAndGroupAttributes(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==s)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributes.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"resource")),null!=t&&(i=this.addToHttpParams(i,t,"group")),null!=s&&(i=this.addToHttpParams(i,s,"workWithGroupAttributes"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new v.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-wg`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:f,params:i,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:l})}getResourceGroupAndGroupAttributesByNames(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==u)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"resource")),null!=t&&(a=this.addToHttpParams(a,t,"group")),s&&s.forEach(R=>{a=this.addToHttpParams(a,R,"attrNames[]")}),null!=u&&(a=this.addToHttpParams(a,u,"workWithGroupAttributes"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(c=c.set("Accept",f));let m=i&&i.context;void 0===m&&(m=new v.qT);let p="json";f&&(p=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob");let w=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-names-wg`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.get(w,{context:m,params:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}getResourceGroupAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),null!=t&&(n=this.addToHttpParams(n,t,"group"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getResourceGroupMemberAttributesByNames(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==s)throw new Error("Required parameter member was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupMemberAttributesByNames.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"resource")),null!=t&&(a=this.addToHttpParams(a,t,"group")),null!=s&&(a=this.addToHttpParams(a,s,"member")),u&&u.forEach(R=>{a=this.addToHttpParams(a,R,"attrNames[]")});let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(c=c.set("Accept",f));let m=i&&i.context;void 0===m&&(m=new v.qT);let p="json";f&&(p=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob");let w=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-m-names`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.get(w,{context:m,params:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}getUserAttributeById(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getUserAttributeById.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getUserAttributeByName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getUserAttributeByName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getUserAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttributes/u`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getUserAttributesByNames(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getUserAttributesByNames.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attrNames[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/u-names`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getUserExtSourceAttributeById(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceAttributeById.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-ues`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getUserExtSourceAttributeByName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceAttributeByName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-ues`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getUserExtSourceAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"userExtSource"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttributes/ues`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getUserExtSourceAttributesByNames(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getUserExtSourceAttributesByNames.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attrNames[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/ues-names`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getUserFacilityAttributeById(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeById.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeById.");if(null==s)throw new Error("Required parameter attributeId was null or undefined when calling getUserFacilityAttributeById.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"facility")),null!=s&&(i=this.addToHttpParams(i,s,"attributeId"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new v.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user_facility`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:f,params:i,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:l})}getUserFacilityAttributeByName(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeByName.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeByName.");if(null==s)throw new Error("Required parameter attributeName was null or undefined when calling getUserFacilityAttributeByName.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"facility")),null!=s&&(i=this.addToHttpParams(i,s,"attributeName"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new v.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user_facility`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:f,params:i,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:l})}getUserFacilityAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributes.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/user-facility`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getVoAttributeById(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getVoAttributeById.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-vo`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getVoAttributeByName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getVoAttributeByName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-vo`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getVoAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttributes/vo`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getVoAttributesByNames(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getVoAttributesByNames.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attrNames[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/vo-names`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeAttributesForFacilityResourceGroupUserMember(e,t,s,u,d,l,n=!1,i="body",a=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==s)throw new Error("Required parameter group was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==u)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==d)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==l)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");let h=new v.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"facility")),null!=t&&(h=this.addToHttpParams(h,t,"resource")),null!=s&&(h=this.addToHttpParams(h,s,"group")),null!=u&&(h=this.addToHttpParams(h,u,"user")),null!=d&&(h=this.addToHttpParams(h,d,"member")),l&&l.forEach(Te=>{h=this.addToHttpParams(h,Te,"attributes[]")});let m,f=this.defaultHeaders;m=this.configuration.lookupCredential("BasicAuth"),m&&(f=f.set("Authorization","Basic "+m)),m=this.configuration.lookupCredential("BearerAuth"),m&&(f=f.set("Authorization","Bearer "+m));let p=c&&c.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(f=f.set("Accept",p));let w=c&&c.context;void 0===w&&(w=new v.qT);let R="json";p&&(R=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let J=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-g-u-m`;if(n){let Te=new URL(J),nt=Te.pathname.split("/");nt[1]="non",Te.pathname=nt.join("/"),J=Te.toString()}return this.httpClient.post(J,null,{context:w,params:h,responseType:R,withCredentials:this.configuration.withCredentials,headers:f,observe:i,reportProgress:a})}removeAttributesForFacilityResourceUserMember(e,t,s,u,d,l=!1,n="body",i=!1,a){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==s)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==u)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==d)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceUserMember.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"facility")),null!=t&&(c=this.addToHttpParams(c,t,"resource")),null!=s&&(c=this.addToHttpParams(c,s,"user")),null!=u&&(c=this.addToHttpParams(c,u,"member")),d&&d.forEach(J=>{c=this.addToHttpParams(c,J,"attributes[]")});let f,h=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(h=h.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(h=h.set("Authorization","Bearer "+f));let m=a&&a.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(h=h.set("Accept",m));let p=a&&a.context;void 0===p&&(p=new v.qT);let w="json";m&&(w=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let R=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-u-m`;if(l){let J=new URL(R),Te=J.pathname.split("/");Te[1]="non",J.pathname=Te.join("/"),R=J.toString()}return this.httpClient.post(R,null,{context:p,params:c,responseType:w,withCredentials:this.configuration.withCredentials,headers:h,observe:n,reportProgress:i})}removeEntitylessAttribute(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter key was null or undefined when calling removeEntitylessAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeEntitylessAttribute.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"key")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/e`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeFacilityAttribute(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeFacilityAttribute.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/f`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeFacilityAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeFacilityAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attributes[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeGroupAttribute(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeGroupAttribute.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeGroupAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeGroupAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attributes[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeGroupResourceAttribute(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttribute.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttribute.");if(null==s)throw new Error("Required parameter attribute was null or undefined when calling removeGroupResourceAttribute.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"group")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"attribute"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new v.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g-r`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.post(p,null,{context:f,params:i,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:l})}removeGroupResourceAttributes(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributes.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"group")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),s&&s.forEach(w=>{i=this.addToHttpParams(i,w,"attributes[]")});let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new v.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.post(p,null,{context:f,params:i,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:l})}removeGroupResourceAttributesWorkWithGroupAttributes(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==u)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"group")),null!=t&&(a=this.addToHttpParams(a,t,"resource")),s&&s.forEach(R=>{a=this.addToHttpParams(a,R,"attributes[]")}),null!=u&&(a=this.addToHttpParams(a,u,"workWithGroupAttributes"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(c=c.set("Accept",f));let m=i&&i.context;void 0===m&&(m=new v.qT);let p="json";f&&(p=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob");let w=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r-workWithGroupAttributes`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.post(w,null,{context:m,params:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}removeHostAttribute(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter host was null or undefined when calling removeHostAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeHostAttribute.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/h`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeHostAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter host was null or undefined when calling removeHostAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeHostAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attributes[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/h`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeMemberAttribute(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeMemberAttribute.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeMemberAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attributes[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeMemberAttributesWorkWithUserAttributes(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==s)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),t&&t.forEach(w=>{i=this.addToHttpParams(i,w,"attributes[]")}),null!=s&&(i=this.addToHttpParams(i,s,"workWithUserAttributes"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new v.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-workWithUserAttributes`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.post(p,null,{context:f,params:i,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:l})}removeMemberGroupAttribute(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttribute.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttribute.");if(null==s)throw new Error("Required parameter attribute was null or undefined when calling removeMemberGroupAttribute.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),null!=s&&(i=this.addToHttpParams(i,s,"attribute"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new v.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-g`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.post(p,null,{context:f,params:i,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:l})}removeMemberGroupAttributes(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributes.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),s&&s.forEach(w=>{i=this.addToHttpParams(i,w,"attributes[]")});let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new v.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.post(p,null,{context:f,params:i,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:l})}removeMemberGroupAttributesWorkWithUserAttributes(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==u)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"member")),null!=t&&(a=this.addToHttpParams(a,t,"group")),s&&s.forEach(R=>{a=this.addToHttpParams(a,R,"attributes[]")}),null!=u&&(a=this.addToHttpParams(a,u,"workWithUserAttributes"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(c=c.set("Accept",f));let m=i&&i.context;void 0===m&&(m=new v.qT);let p="json";f&&(p=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob");let w=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g-workWithUserAttributes`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.post(w,null,{context:m,params:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}removeMemberResourceAttribute(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttribute.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttribute.");if(null==s)throw new Error("Required parameter attribute was null or undefined when calling removeMemberResourceAttribute.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"attribute"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new v.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-r`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.post(p,null,{context:f,params:i,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:l})}removeMemberResourceAttributes(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeMemberResourceAttributes.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),s&&s.forEach(w=>{i=this.addToHttpParams(i,w,"attributes[]")});let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new v.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-r`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.post(p,null,{context:f,params:i,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:l})}removeResourceAttribute(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeResourceAttribute.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/r`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeResourceAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeResourceAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attributes[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/r`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeUesAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling removeUesAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeUesAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attributes[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/ues`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeUserAttribute(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeUserAttribute.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeUserAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeUserAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attributes[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeUserExtSourceAttribute(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSourceAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeUserExtSourceAttribute.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/ues`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeUserFacilityAttribute(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttribute.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttribute.");if(null==s)throw new Error("Required parameter attribute was null or undefined when calling removeUserFacilityAttribute.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"facility")),null!=s&&(i=this.addToHttpParams(i,s,"attribute"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new v.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u-f`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.post(p,null,{context:f,params:i,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:l})}removeUserFacilityAttributes(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttributes.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeUserFacilityAttributes.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"facility")),s&&s.forEach(w=>{i=this.addToHttpParams(i,w,"attributes[]")});let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new v.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u-f`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.post(p,null,{context:f,params:i,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:l})}removeVoAttribute(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeVoAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeVoAttribute.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/v`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeVoAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeVoAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeVoAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attributes[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/v`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}setAttributeActionCriticality(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling setAttributeActionCriticality.");if(null==t)throw new Error("Required parameter action was null or undefined when calling setAttributeActionCriticality.");if(null==s)throw new Error("Required parameter critical was null or undefined when calling setAttributeActionCriticality.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"attributeDefinition")),null!=t&&(i=this.addToHttpParams(i,t,"action")),null!=s&&(i=this.addToHttpParams(i,s,"critical"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new v.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/urlinjsonout/attributesManager/setAttributeActionCriticality`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.post(p,null,{context:f,params:i,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:l})}setAttributePolicyCollections(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputAttributePolicyCollections was null or undefined when calling setAttributePolicyCollections.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttributePolicyCollections`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setAttributeRights(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputAttributeRights was null or undefined when calling setAttributeRights.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttributeRights`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setEntitylessAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputEntitylessAttribute was null or undefined when calling setEntitylessAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttribute/entityless`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setFacilityAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetFacilityAttribute was null or undefined when calling setFacilityAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttribute/facility`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setFacilityAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetFacilityAttributes was null or undefined when calling setFacilityAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttributes/f`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setFacilityResourceGroupUserMemberAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetFacilityResourceGroupUserMemberAttributes was null or undefined when calling setFacilityResourceGroupUserMemberAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-g-u-m`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setFacilityResourceUserMemberAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetFacilityResourceUserMemberAttributes was null or undefined when calling setFacilityResourceUserMemberAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-u-m`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setFacilityUserAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetFacilityUserAttributes was null or undefined when calling setFacilityUserAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttributes/f-u`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setGroupAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetGroupAttribute was null or undefined when calling setGroupAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttribute/group`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setGroupAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetGroupAttributes was null or undefined when calling setGroupAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttributes/g`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setGroupResourceAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetGroupResourceAttribute was null or undefined when calling setGroupResourceAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttribute/group-resource`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setGroupResourceAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetGroupResourceAttributes was null or undefined when calling setGroupResourceAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttributes/group-resource`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setHostAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetHostAttribute was null or undefined when calling setHostAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttribute/host`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setHostAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetHostAttributes was null or undefined when calling setHostAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttributes/h`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setMemberAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetMemberAttribute was null or undefined when calling setMemberAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttribute/member`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setMemberAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetMemberAttributes was null or undefined when calling setMemberAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttributes/m`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setMemberGroupAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetMemberGroupAttribute was null or undefined when calling setMemberGroupAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttribute/member-group`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setMemberGroupAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetMemberGroupAttributes was null or undefined when calling setMemberGroupAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setMemberGroupWithUserAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetMemberGroupWithUserAttributes was null or undefined when calling setMemberGroupWithUserAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g-wu`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setMemberResourceAndUserAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetMemberResourceAndUserAttributes was null or undefined when calling setMemberResourceAndUserAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r-wu`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setMemberResourceAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetMemberResourceAttribute was null or undefined when calling setMemberResourceAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttribute/member-resource`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setMemberResourceAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetMemberResourceAttributes was null or undefined when calling setMemberResourceAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setMemberWithUserAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetMemberWithUserAttributes was null or undefined when calling setMemberWithUserAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-wu`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setResourceAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetResourceAttribute was null or undefined when calling setResourceAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttribute/resource`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setResourceAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetResourceAttributes was null or undefined when calling setResourceAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttributes/r`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setResourceGroupAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetResourceGroupAttributes was null or undefined when calling setResourceGroupAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setResourceGroupWithGroupAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetResourceGroupWithGroupAttributes was null or undefined when calling setResourceGroupWithGroupAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g-wg`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setUserAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetUserAttribute was null or undefined when calling setUserAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttribute/user`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setUserAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetUserAttributes was null or undefined when calling setUserAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttributes/u`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setUserExtSourceAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetUserExtSourceAttribute was null or undefined when calling setUserExtSourceAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttribute/userExtSource`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setUserExtSourceAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetUserExtSourceAttributes was null or undefined when calling setUserExtSourceAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttributes/ues`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setUserFacilityAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetUserFacilityAttribute was null or undefined when calling setUserFacilityAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttribute/facility-user`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setUserFacilityAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetUserFacilityAttributes was null or undefined when calling setUserFacilityAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttributes/facility-user`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setVoAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetVoAttribute was null or undefined when calling setVoAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttribute/vo`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setVoAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetVoAttributes was null or undefined when calling setVoAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/setAttributes/vo`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}updateAttributeDefinition(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputAttributeDefinition was null or undefined when calling updateAttributeDefinition.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/updateAttributeDefinition`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(v.eN),_.LFG(Xt,8),_.LFG(st,8))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Al=(()=>{class o{constructor(e,t,s){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new v.WM,this.configuration=new st,s&&(this.configuration=s),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new si}addToHttpParams(e,t,s){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,s):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,s){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(u=>e=this.addToHttpParamsRecursive(e,u,s));else if(t instanceof Date){if(null==s)throw Error("key may not be null if value is Date");e=e.append(s,t.toISOString().substr(0,10))}else Object.keys(t).forEach(u=>e=this.addToHttpParamsRecursive(e,t[u],null!=s?`${s}.${u}`:u));else{if(null==s)throw Error("key may not be null if value is not object or array");e=e.append(s,t)}return e}getAllPolicies(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let a="json";n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/getAllPolicies`;if(e){let h=new URL(c),f=h.pathname.split("/");f[1]="non",h.pathname=f.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getAllRolesManagementRules(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let a="json";n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/getAllRolesManagementRules`;if(e){let h=new URL(c),f=h.pathname.split("/");f[1]="non",h.pathname=f.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getAuthzAdminGroups(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter role was null or undefined when calling getAuthzAdminGroups.");if(null==t)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzAdminGroups.");if(null==s)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzAdminGroups.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"role")),null!=t&&(i=this.addToHttpParams(i,t,"complementaryObjectId")),null!=s&&(i=this.addToHttpParams(i,s,"complementaryObjectName"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new v.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/authzResolver/getAdminGroups`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:f,params:i,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:l})}getAuthzRichAdmins(e,t,s,u,d,l,n=!1,i="body",a=!1,c){if(null==e)throw new Error("Required parameter role was null or undefined when calling getAuthzRichAdmins.");if(null==t)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzRichAdmins.");if(null==s)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzRichAdmins.");if(null==u)throw new Error("Required parameter specificAttributes was null or undefined when calling getAuthzRichAdmins.");let h=new v.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"role")),null!=t&&(h=this.addToHttpParams(h,t,"complementaryObjectId")),null!=s&&(h=this.addToHttpParams(h,s,"complementaryObjectName")),u&&u.forEach(Te=>{h=this.addToHttpParams(h,Te,"specificAttributes")}),null!=d&&(h=this.addToHttpParams(h,d,"allUserAttributes")),null!=l&&(h=this.addToHttpParams(h,l,"onlyDirectAdmins"));let m,f=this.defaultHeaders;m=this.configuration.lookupCredential("BasicAuth"),m&&(f=f.set("Authorization","Basic "+m)),m=this.configuration.lookupCredential("BearerAuth"),m&&(f=f.set("Authorization","Bearer "+m));let p=c&&c.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(f=f.set("Accept",p));let w=c&&c.context;void 0===w&&(w=new v.qT);let R="json";p&&(R=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let J=`${this.configuration.basePath}/json/authzResolver/getRichAdmins`;if(n){let Te=new URL(J),nt=Te.pathname.split("/");nt[1]="non",Te.pathname=nt.join("/"),J=Te.toString()}return this.httpClient.get(J,{context:w,params:h,responseType:R,withCredentials:this.configuration.withCredentials,headers:f,observe:i,reportProgress:a})}getFacilitiesWhereUserIsInRoles(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getFacilitiesWhereUserIsInRoles.");let n=new v.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(p=>{n=this.addToHttpParams(n,p,"roles[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/getFacilitiesWhereUserIsInRoles`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getGroupRoleNames(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/authzResolver/getGroupRoleNames`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getGroupRoles(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"groupId"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/authzResolver/getGroupRoles`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getGroupsWhereUserIsInRoles(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getGroupsWhereUserIsInRoles.");let n=new v.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(p=>{n=this.addToHttpParams(n,p,"roles[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/getGroupsWhereUserIsInRoles`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getLoggedUser(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let a="json";n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/getLoggedUser`;if(e){let h=new URL(c),f=h.pathname.split("/");f[1]="non",h.pathname=f.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getMembersWhereUserIsInRoles(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getMembersWhereUserIsInRoles.");let n=new v.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(p=>{n=this.addToHttpParams(n,p,"roles[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/getMembersWhereUserIsInRoles`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getPerunPrincipal(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let a="json";n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/getPerunPrincipal`;if(e){let h=new URL(c),f=h.pathname.split("/");f[1]="non",h.pathname=f.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getPrincipalRoleNames(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let a="json";n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/getPrincipalRoleNames`;if(e){let h=new URL(c),f=h.pathname.split("/");f[1]="non",h.pathname=f.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getResourcesWhereUserIsInRoles(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getResourcesWhereUserIsInRoles.");let n=new v.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(p=>{n=this.addToHttpParams(n,p,"roles[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/getResourcesWhereUserIsInRoles`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getSecurityTeamsWhereUserIsInRoles(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getSecurityTeamsWhereUserIsInRoles.");let n=new v.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(p=>{n=this.addToHttpParams(n,p,"roles[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/getSecurityTeamsWhereUserIsInRoles`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getUserRoleNames(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/authzResolver/getUserRoleNames`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getUserRoles(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"userId"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/authzResolver/getUserRoles`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getVosWhereUserIsInRoles(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getVosWhereUserIsInRoles.");let n=new v.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(p=>{n=this.addToHttpParams(n,p,"roles[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/getVosWhereUserIsInRoles`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}isFacilityAdmin(e,t=!1,s="body",u=!1,d){let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"facility"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/authzResolver/isFacilityAdmin`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}isGroupAdmin(e,t=!1,s="body",u=!1,d){let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/authzResolver/isGroupAdmin`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}isPerunAdmin(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let a="json";n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/isPerunAdmin`;if(e){let h=new URL(c),f=h.pathname.split("/");f[1]="non",h.pathname=f.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}isVoAdmin(e,t=!1,s="body",u=!1,d){let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/authzResolver/isVoAdmin`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}keepAlive(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let a="json";n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/keepAlive`;if(e){let h=new URL(c),f=h.pathname.split("/");f[1]="non",h.pathname=f.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}loadAuthorizationComponents(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let a="json";n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/loadAuthorizationComponents`;if(e){let h=new URL(c),f=h.pathname.split("/");f[1]="non",h.pathname=f.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}refreshMfa(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let a="json";n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/refreshMfa`;if(e){let h=new URL(c),f=h.pathname.split("/");f[1]="non",h.pathname=f.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}setRoleForGroup(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter SetRoleForGroup was null or undefined when calling setRoleForGroup.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/setRole/g`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setRoleForUser(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter SetRoleForUser was null or undefined when calling setRoleForUser.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/setRole/u`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setRoleWithGroupComplementaryObject(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter SetRoleWithGroupComplementaryObject was null or undefined when calling setRoleWithGroupComplementaryObject.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/setRole/g-co`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setRoleWithGroupComplementaryObjects(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter SetRoleWithGroupComplementaryObjects was null or undefined when calling setRoleWithGroupComplementaryObjects.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/setRole/g-cos`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setRoleWithUserComplementaryObject(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter SetRoleWithUserComplementaryObject was null or undefined when calling setRoleWithUserComplementaryObject.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/setRole/u-co`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setRoleWithUserComplementaryObjects(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter SetRoleWithUserComplementaryObjects was null or undefined when calling setRoleWithUserComplementaryObjects.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/setRole/u-cos`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}unsetRoleForGroup(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter UnsetRoleForGroup was null or undefined when calling unsetRoleForGroup.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/unsetRole/g`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}unsetRoleForUser(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter UnsetRoleForUser was null or undefined when calling unsetRoleForUser.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/unsetRole/u`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}unsetRoleWithGroupComplementaryObject(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter UnsetRoleWithGroupComplementaryObject was null or undefined when calling unsetRoleWithGroupComplementaryObject.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/unsetRole/g-co`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}unsetRoleWithGroupComplementaryObjects(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter UnsetRoleWithGroupComplementaryObjects was null or undefined when calling unsetRoleWithGroupComplementaryObjects.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/unsetRole/g-cos`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}unsetRoleWithUserComplementaryObject(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter UnsetRoleWithUserComplementaryObject was null or undefined when calling unsetRoleWithUserComplementaryObject.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/unsetRole/u-co`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}unsetRoleWithUserComplementaryObjects(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter UnsetRoleWithUserComplementaryObjects was null or undefined when calling unsetRoleWithUserComplementaryObjects.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/unsetRole/u-cos`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(v.eN),_.LFG(Xt,8),_.LFG(st,8))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),_d=(()=>{class o{constructor(e,t,s){this.httpClient=e,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new v.WM,this.configuration=new st,s&&(this.configuration=s),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new si}addToHttpParams(e,t,s){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,s):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,s){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(u=>e=this.addToHttpParamsRecursive(e,u,s));else if(t instanceof Date){if(null==s)throw Error("key may not be null if value is Date");e=e.append(s,t.toISOString().substr(0,10))}else Object.keys(t).forEach(u=>e=this.addToHttpParamsRecursive(e,t[u],null!=s?`${s}.${u}`:u));else{if(null==s)throw Error("key may not be null if value is not object or array");e=e.append(s,t)}return e}sentMessageToRTWithMemberQueue(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter memberId was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==s)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==u)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithMemberQueue.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"memberId")),null!=t&&(a=this.addToHttpParams(a,t,"queue")),null!=s&&(a=this.addToHttpParams(a,s,"subject")),null!=u&&(a=this.addToHttpParams(a,u,"text"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(c=c.set("Accept",f));let m=i&&i.context;void 0===m&&(m=new v.qT);let p="json";f&&(p=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob");let w=`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/m-q`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.post(w,null,{context:m,params:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}sentMessageToRTWithQueue(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithQueue.");if(null==t)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithQueue.");if(null==s)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithQueue.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"queue")),null!=t&&(i=this.addToHttpParams(i,t,"subject")),null!=s&&(i=this.addToHttpParams(i,s,"text"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new v.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/q`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.post(p,null,{context:f,params:i,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:l})}sentMessageToRTWithVo(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVo.");if(null==t)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVo.");if(null==s)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVo.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"voId")),null!=t&&(i=this.addToHttpParams(i,t,"subject")),null!=s&&(i=this.addToHttpParams(i,s,"text"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new v.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.post(p,null,{context:f,params:i,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:l})}sentMessageToRTWithVoQueue(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==s)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==u)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVoQueue.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"voId")),null!=t&&(a=this.addToHttpParams(a,t,"queue")),null!=s&&(a=this.addToHttpParams(a,s,"subject")),null!=u&&(a=this.addToHttpParams(a,u,"text"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(c=c.set("Accept",f));let m=i&&i.context;void 0===m&&(m=new v.qT);let p="json";f&&(p=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob");let w=`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v-q`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.post(w,null,{context:m,params:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(v.eN),_.LFG(Xt,8),_.LFG(st,8))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),i_=(()=>{class o{constructor(e,t,s){this.httpClient=e,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new v.WM,this.configuration=new st,s&&(this.configuration=s),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new si}addToHttpParams(e,t,s){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,s):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,s){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(u=>e=this.addToHttpParamsRecursive(e,u,s));else if(t instanceof Date){if(null==s)throw Error("key may not be null if value is Date");e=e.append(s,t.toISOString().substr(0,10))}else Object.keys(t).forEach(u=>e=this.addToHttpParamsRecursive(e,t[u],null!=s?`${s}.${u}`:u));else{if(null==s)throw Error("key may not be null if value is not object or array");e=e.append(s,t)}return e}addApplicationMailForGroup(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputAddApplicationMailForGroup was null or undefined when calling addApplicationMailForGroup.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/addApplicationMail/g`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}addApplicationMailForVo(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputAddApplicationMailForVo was null or undefined when calling addApplicationMailForVo.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/addApplicationMail/v`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}addGroupsToAutoRegistration(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter groups was null or undefined when calling addGroupsToAutoRegistration.");let l=new v.LE({encoder:this.encoder});e&&e.forEach(m=>{l=this.addToHttpParams(l,m,"groups[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/registrarManager/addGroupsToAutoRegistration`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.post(f,null,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}approveApplication(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter id was null or undefined when calling approveApplication.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/registrarManager/approveApplication`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.post(f,null,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}checkForSimilarRichIdentities(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let a="json";n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/registrarManager/checkForSimilarRichIdentities`;if(e){let h=new URL(c),f=h.pathname.split("/");f[1]="non",h.pathname=f.join("/"),c=h.toString()}return this.httpClient.post(c,null,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}checkForSimilarUsersWithAuthInfo(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let a="json";n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/urlinjsonout/registrarManager/checkForSimilarUsers/authInfo`;if(e){let h=new URL(c),f=h.pathname.split("/");f[1]="non",h.pathname=f.join("/"),c=h.toString()}return this.httpClient.post(c,null,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}consolidate(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputConsolidate was null or undefined when calling consolidate.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/consolidate`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}consolidateIdentityUsingToken(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter token was null or undefined when calling consolidateIdentityUsingToken.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"token"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/registrarManager/consolidateIdentityUsingToken`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}copyFormFromGroupToGroup(e,t,s=!1,u="body",d=!1,l){let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromGroup")),null!=t&&(n=this.addToHttpParams(n,t,"toGroup"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToGroup`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}copyFormFromGroupToVo(e,t,s=!1,u="body",d=!1,l){let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromGroup")),null!=t&&(n=this.addToHttpParams(n,t,"toVo"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToVo`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}copyFormFromVoToGroup(e,t,s=!1,u="body",d=!1,l){let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromVo")),null!=t&&(n=this.addToHttpParams(n,t,"toGroup"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToGroup`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}copyFormFromVoToVo(e,t,s=!1,u="body",d=!1,l){let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromVo")),null!=t&&(n=this.addToHttpParams(n,t,"toVo"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToVo`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}copyMailsFromGroupToGroup(e,t,s=!1,u="body",d=!1,l){let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromGroup")),null!=t&&(n=this.addToHttpParams(n,t,"toGroup"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToGroup`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}copyMailsFromGroupToVo(e,t,s=!1,u="body",d=!1,l){let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromGroup")),null!=t&&(n=this.addToHttpParams(n,t,"toVo"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToVo`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}copyMailsFromVoToGroup(e,t,s=!1,u="body",d=!1,l){let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromVo")),null!=t&&(n=this.addToHttpParams(n,t,"toGroup"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToGroup`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}copyMailsFromVoToVo(e,t,s=!1,u="body",d=!1,l){let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromVo")),null!=t&&(n=this.addToHttpParams(n,t,"toVo"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToVo`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}createApplicationFormInGroup(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling createApplicationFormInGroup.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/group`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.post(f,null,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}createApplicationFormInVo(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling createApplicationFormInVo.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/vo`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.post(f,null,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}deleteApplication(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteApplication.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplication`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.post(f,null,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}deleteApplicationMailForGroup(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling deleteApplicationMailForGroup.");if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForGroup.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"id"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/g`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}deleteApplicationMailForVo(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling deleteApplicationMailForVo.");if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForVo.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"id"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/v`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}deleteGroupsFromAutoRegistration(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter groups was null or undefined when calling deleteGroupsFromAutoRegistration.");let l=new v.LE({encoder:this.encoder});e&&e.forEach(m=>{l=this.addToHttpParams(l,m,"groups[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteGroupsFromAutoRegistration`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.post(f,null,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getApplicationById(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter id was null or undefined when calling getApplicationById.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/registrarManager/getApplicationById`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getApplicationDataById(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter id was null or undefined when calling getApplicationDataById.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/registrarManager/getApplicationDataById`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getApplicationMailsForGroup(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling getApplicationMailsForGroup.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/registrarManager/getApplicationMails/g`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getApplicationMailsForVo(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getApplicationMailsForVo.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/registrarManager/getApplicationMails/v`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getApplicationsForGroup(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter group was null or undefined when calling getApplicationsForGroup.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"group")),t&&t.forEach(R=>{a=this.addToHttpParams(a,R,"state[]")}),null!=s&&(a=this.addToHttpParams(a,s,"dateFrom")),null!=u&&(a=this.addToHttpParams(a,u,"dateTo"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(c=c.set("Accept",f));let m=i&&i.context;void 0===m&&(m=new v.qT);let p="json";f&&(p=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob");let w=`${this.configuration.basePath}/json/registrarManager/getApplicationsForGroup`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.get(w,{context:m,params:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}getApplicationsForMember(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getApplicationsForMember.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"group"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/getApplicationsForMember`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getApplicationsForVo(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getApplicationsForVo.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"vo")),t&&t.forEach(R=>{a=this.addToHttpParams(a,R,"state[]")}),null!=s&&(a=this.addToHttpParams(a,s,"dateFrom")),null!=u&&(a=this.addToHttpParams(a,u,"dateTo"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(c=c.set("Accept",f));let m=i&&i.context;void 0===m&&(m=new v.qT);let p="json";f&&(p=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob");let w=`${this.configuration.basePath}/json/registrarManager/getApplicationsForVo`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.get(w,{context:m,params:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}getApplicationsPage(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputGetPaginatedApplications was null or undefined when calling getApplicationsPage.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/getApplicationsPage`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}getConsolidatorToken(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let a="json";n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/registrarManager/getConsolidatorToken`;if(e){let h=new URL(c),f=h.pathname.split("/");f[1]="non",h.pathname=f.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getFormItemsForGroup(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroup.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/registrarManager/getFormItems/group`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getFormItemsForGroupWithType(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroupWithType.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"type"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/getFormItems/group-type`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getFormItemsForVo(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVo.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/registrarManager/getFormItems/vo`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getFormItemsForVoWithType(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVoWithType.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"type"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/getFormItems/vo-type`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.get(m,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getGroupApplicationForm(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupApplicationForm.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/registrarManager/getApplicationForm/group`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getGroupsToAutoRegistration(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getGroupsToAutoRegistration.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/registrarManager/getGroupsToAutoRegistration`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getVoApplicationForm(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoApplicationForm.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/json/registrarManager/getApplicationForm/vo`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.get(f,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}rejectApplication(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling rejectApplication.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"id")),null!=t&&(n=this.addToHttpParams(n,t,"reason"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/registrarManager/rejectApplication`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}sendInvitation(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter email was null or undefined when calling sendInvitation.");if(null==t)throw new Error("Required parameter language was null or undefined when calling sendInvitation.");let a=new v.LE({encoder:this.encoder});null!=s&&(a=this.addToHttpParams(a,s,"voId")),null!=u&&(a=this.addToHttpParams(a,u,"name")),null!=e&&(a=this.addToHttpParams(a,e,"email")),null!=t&&(a=this.addToHttpParams(a,t,"language"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(c=c.set("Accept",f));let m=i&&i.context;void 0===m&&(m=new v.qT);let p="json";f&&(p=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob");let w=`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.post(w,null,{context:m,params:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}sendInvitationForGroup(e,t,s,u,d,l=!1,n="body",i=!1,a){if(null==e)throw new Error("Required parameter email was null or undefined when calling sendInvitationForGroup.");if(null==t)throw new Error("Required parameter language was null or undefined when calling sendInvitationForGroup.");let c=new v.LE({encoder:this.encoder});null!=s&&(c=this.addToHttpParams(c,s,"voId")),null!=u&&(c=this.addToHttpParams(c,u,"groupId")),null!=d&&(c=this.addToHttpParams(c,d,"name")),null!=e&&(c=this.addToHttpParams(c,e,"email")),null!=t&&(c=this.addToHttpParams(c,t,"language"));let f,h=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(h=h.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(h=h.set("Authorization","Bearer "+f));let m=a&&a.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(h=h.set("Accept",m));let p=a&&a.context;void 0===p&&(p=new v.qT);let w="json";m&&(w=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let R=`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/g`;if(l){let J=new URL(R),Te=J.pathname.split("/");Te[1]="non",J.pathname=Te.join("/"),R=J.toString()}return this.httpClient.post(R,null,{context:p,params:c,responseType:w,withCredentials:this.configuration.withCredentials,headers:h,observe:n,reportProgress:i})}sendInvitationGroupToExistingUser(e,t,s,u=!1,d="body",l=!1,n){let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"userId")),null!=t&&(i=this.addToHttpParams(i,t,"voId")),null!=s&&(i=this.addToHttpParams(i,s,"groupId"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new v.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u-g`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.post(p,null,{context:f,params:i,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:l})}sendInvitationToExistingUser(e,t,s=!1,u="body",d=!1,l){let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userId")),null!=t&&(n=this.addToHttpParams(n,t,"voId"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let f="json";c&&(f=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u`;if(s){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}sendInvitationsFromCsv(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputInvitationsFromCsv was null or undefined when calling sendInvitationsFromCsv.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/sendInvitationsFromCsv`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}sendMessage(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSendMessage was null or undefined when calling sendMessage.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/sendMessage`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setSendingEnabled(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetSendingEnabled was null or undefined when calling setSendingEnabled.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/setSendingEnabled`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}submitApplication(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSubmitApplication was null or undefined when calling submitApplication.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/submitApplication`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}updateApplicationMail(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputUpdateApplicationMail was null or undefined when calling updateApplicationMail.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/updateApplicationMail`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}updateForm(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputUpdateForm was null or undefined when calling updateForm.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/updateForm`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}updateFormItemData(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputFormItemData was null or undefined when calling updateFormItemData.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/updateFormItemData`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}updateFormItemsData(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputFormItemsData was null or undefined when calling updateFormItemsData.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/updateFormItemsData`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}updateFormItemsForGroup(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputUpdateFormItemsForGroup was null or undefined when calling updateFormItemsForGroup.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/updateFormItems/group`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}updateFormItemsForVo(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputUpdateFormItemsForVo was null or undefined when calling updateFormItemsForVo.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let a=d&&d.context;void 0===a&&(a=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let f="json";i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/updateFormItems/vo`;if(t){let p=new URL(m),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),m=p.toString()}return this.httpClient.post(m,e,{context:a,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}verifyApplication(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter id was null or undefined when calling verifyApplication.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=d&&d.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/registrarManager/verifyApplication`;if(t){let m=new URL(f),p=m.pathname.split("/");p[1]="non",m.pathname=p.join("/"),f=m.toString()}return this.httpClient.post(f,null,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(v.eN),_.LFG(Xt,8),_.LFG(st,8))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),r_=(()=>{class o{constructor(e,t,s){this.httpClient=e,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new v.WM,this.configuration=new st,s&&(this.configuration=s),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new si}addToHttpParams(e,t,s){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,s):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,s){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(u=>e=this.addToHttpParamsRecursive(e,u,s));else if(t instanceof Date){if(null==s)throw Error("key may not be null if value is Date");e=e.append(s,t.toISOString().substr(0,10))}else Object.keys(t).forEach(u=>e=this.addToHttpParamsRecursive(e,t[u],null!=s?`${s}.${u}`:u));else{if(null==s)throw Error("key may not be null if value is not object or array");e=e.append(s,t)}return e}getAppsConfig(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let a="json";n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/utils/getAppsConfig`;if(e){let h=new URL(c),f=h.pathname.split("/");f[1]="non",h.pathname=f.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getGuiConfiguration(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let a="json";n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/utils/getGuiConfiguration`;if(e){let h=new URL(c),f=h.pathname.split("/");f[1]="non",h.pathname=f.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getNewGuiAlert(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let a="json";n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/utils/getNewGuiAlert`;if(e){let h=new URL(c),f=h.pathname.split("/");f[1]="non",h.pathname=f.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getPerunRPCVersion(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["text/plain"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let a="json";n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/`;if(e){let h=new URL(c),f=h.pathname.split("/");f[1]="non",h.pathname=f.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getPerunStatistics(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let a="json";n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/utils/getPerunStatistics`;if(e){let h=new URL(c),f=h.pathname.split("/");f[1]="non",h.pathname=f.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getPerunStatus(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let a="json";n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/utils/getPerunStatus`;if(e){let h=new URL(c),f=h.pathname.split("/");f[1]="non",h.pathname=f.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getPerunSystemTimeInMillis(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let a="json";n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/utils/getPerunSystemTimeInMillis`;if(e){let h=new URL(c),f=h.pathname.split("/");f[1]="non",h.pathname=f.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(v.eN),_.LFG(Xt,8),_.LFG(st,8))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Xv=(()=>{class o{constructor(e,t){if(e)throw new Error("ApiModule is already loaded. Import in your base AppModule only.");if(!t)throw new Error("You need to import the HttpClientModule in your AppModule! \nSee also https://github.com/angular/angular/issues/20575")}static forRoot(e){return{ngModule:o,providers:[{provide:st,useFactory:e}]}}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(o,12),_.LFG(v.eN,8))},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({}),o})();var pt=(()=>{return(o=pt||(pt={})).PERUNADMIN="PERUNADMIN",o.PERUNOBSERVER="PERUNOBSERVER",o.VOADMIN="VOADMIN",o.GROUPADMIN="GROUPADMIN",o.GROUPOBSERVER="GROUPOBSERVER",o.GROUPMEMBERSHIPMANAGER="GROUPMEMBERSHIPMANAGER",o.SELF="SELF",o.FACILITYADMIN="FACILITYADMIN",o.FACILITIYOBSERVER="FACILITYOBSERVER",o.RESOURCEADMIN="RESOURCEADMIN",o.RESOURCESELFSERVICE="RESOURCESELFSERVICE",o.REGISTRAR="REGISTRAR",o.ENGINE="ENGINE",o.RPC="RPC",o.NOTIFICATIONS="NOTIFICATIONS",o.SERVICEUSER="SERVICEUSER",o.SPONSOR="SPONSOR",o.VOOBSERVER="VOOBSERVER",o.TOPGROUPCREATOR="TOPGROUPCREATOR",o.SECURITYADMIN="SECURITYADMIN",o.CABINETADMIN="CABINETADMIN",o.UNKNOWNROLENAME="UNKNOWNROLENAME",o.AUDITCONSUMERADMIN="AUDITCONSUMERADMIN",o.UNKNOWN="UNKNOWN",o.MEMBERSHIP="MEMBERSHIP",pt;var o})();let eA=(()=>{class o{constructor(e){this.authzSevice=e,this.principalRoles=new Set,this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[],this.sortRoles=(t,s)=>t.roleName>s.roleName?1:t.roleName{this.authzSevice.getAllRolesManagementRules().subscribe(s=>{this.allRolesManagementRules=s,e()},s=>t(s))})}assignAvailableRoles(e,t){this.allRolesManagementRules.forEach(s=>{s.primaryObject===t&&e.push(s)}),e.sort(this.sortRoles),"Vo"===t&&this.voCustomSort(e)}isManagerPagePrivileged(e){const t=[];let s=e.beanName;s.startsWith("Rich")&&(s=s.substring(4)),this.assignAvailableRoles(t,s);const u=new Map;this.setRolesAuthorization(t,e,u);for(const d of u.values())if(d.readAuth||d.manageAuth)return!0;return!1}setRolesAuthorization(e,t,s){for(const u of e){let d=[],l=[],n=[];for(const f of this.allRolesManagementRules)if(f.roleName===u.roleName){d=d.concat(f.privilegedRolesToRead),l=l.concat(f.privilegedRolesToManage);for(const m of Object.keys(f.entitiesToManage))n="User"===m?[m].concat(n):n.concat(m);break}const i=this.fetchAllRelatedObjects([t]),a=this.resolveAuthorization(d,i),c=this.resolveAuthorization(l,i);s.set(u.roleName,{readAuth:a,manageAuth:c,modes:n})}}initializeVariables(){this.principalRoles.clear(),this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}getPrimaryObjectOfRole(e){for(const t of this.allRolesManagementRules)if(t.roleName===e)return t.primaryObject;return""}getAllRules(){return this.allRolesManagementRules.sort(this.sortRoles)}getRuleForRole(e){return this.allRolesManagementRules.find(t=>t.roleName===e)}getAssignableRoleRules(e){const t=[],s=["UNKNOWN","RPC","NOTIFICATIONS","ENGINE","MFA","REGISTRAR","AUDITCONSUMERADMIN","SPONSORSHIP","MEMBERSHIP","SERVICEUSER","SELF","SECURITYADMIN"];return this.allRolesManagementRules.forEach(u=>{!s.includes(u.roleName)&&this.canManage(u)&&this.ruleHasMode(u,e)&&t.push(u)}),t.sort(this.sortRoles)}ruleHasMode(e,t){return Object.keys(e.entitiesToManage).map(s=>s.toUpperCase()).includes(t)}canManage(e){return e.privilegedRolesToManage.some(t=>this.principalRoles.has(Object.keys(t)[0]))}resolveAuthorization(e,t){for(const s of e){let u=!0;for(const d of Object.keys(s)){const l=s[d];if(null===l)this.principalRoles.has(d)||(u=!1);else if(t[l]){for(const n of t[l])if(!this.principalHasRole(d,l,n)){u=!1;break}}else u=!1;if(!u)break}if(u)return!0}return!1}getPerunPolicy(e){for(const t of this.perunPolicies)if(t.policyName===e)return t;return null}fetchAllRelatedObjects(e){const t={};for(const s of e){let u=s.beanName;switch(s.beanName.startsWith("Rich")&&(u=s.beanName.substring(4)),t[u]?t[u].push(s.id):t[u]=[s.id],u){case"Member":t.User?t.User.push(s.userId):t.User=[s.userId],t.Vo?t.Vo.push(s.voId):t.Vo=[s.voId];break;case"Group":case"ResourceTag":t.Vo?t.Vo.push(s.voId):t.Vo=[s.voId];break;case"Resource":t.Facility?t.Facility.push(s.facilityId):t.Facility=[s.facilityId],t.Vo?t.Vo.push(s.voId):t.Vo=[s.voId]}}return t}fetchPolicyWithAllIncludedPolicies(e){const t=new Map;let s=[];for(s.push(e);0!==s.length;){const d=s.shift();if(t.has(d))continue;const l=this.getPerunPolicy(d);if(!l)return[];t.set(d,l),s=s.concat(l.includePolicies)}const u=[];for(const d of t.values())u.push(d);return u}voCustomSort(e){for(let t=0;t{class o{constructor(){this.branding=""}setInstanceConfig(e){this.instanceConfig=e}setDefaultConfig(e){this.defaultConfig=e}getAppsConfig(){return this.appsConfig}setAppsConfig(e){this.appsConfig=e}setPerunPrincipal(e){this.principal=e}getPerunPrincipal(){return this.principal}getInitialPageId(){return this.initialPageId}setInitialPageId(e){this.initialPageId=e}getLoginAttributeNames(){return this.getProperty("login_namespace_attributes")}getMemberProfileAttributeNames(){return this.getProperty("member_profile_attributes_friendly_names")}setBanding(e){this.branding=e}getProperty(e){if(!this.instanceConfig||!this.defaultConfig)return null;const t=[this.instanceConfig?.brandings?.[this.branding],this.instanceConfig],s=this.defaultConfig[e];let u=null;for(const d of t)d&&null==u&&(u=d[e]);return null===u?s:this.addMissingValuesToProperty(u,s)}addMissingValuesToProperty(e,t){if("object"!=typeof e||Array.isArray(e)||null==e){if(null!=e)return e}else for(const s of Object.keys(t))t[s]=this.addMissingValuesToProperty(e[s],t[s]);return t}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Sl=(()=>{class o{constructor(e,t,s,u,d){this.injector=e,this.store=t,this.dialog=s,this.route=u,this.oauthService=d,setTimeout(()=>{this.router=this.injector.get(Kt),this.startIdpFilterKeeper()}),this.route.queryParams.subscribe(l=>{l.idpFilter&&(this.filterShortname=String(l.idpFilter))})}loadOidcConfigData(){this.oauthService.configure(this.getClientConfig())}logout(){sessionStorage.getItem("baPrincipal")?(sessionStorage.removeItem("baPrincipal"),sessionStorage.removeItem("basicUsername"),sessionStorage.removeItem("basicPassword"),sessionStorage.setItem("baLogout","true"),this.router.navigate(["/service-access"],{queryParamsHandling:"preserve"})):this.oauthService.logOut()}isLoggedIn(){return this.oauthService.hasValidAccessToken()}getAuthorizationHeaderValue(){return this.oauthService.hasValidAccessToken()?"Bearer "+this.oauthService.getAccessToken():""}startAuthentication(){this.oauthService.loadDiscoveryDocumentAndLogin()}getIdpFilter(){return this.filterShortname}getClientConfig(){const e=this.setIdpFilter(),u=.5+.25*Math.random(),d=e?{acr_values:e}:{},l=this.store.getProperty("oidc_client");if(l.oauth_scopes.split(" ").includes("offline_access")&&l.oauth_offline_access_consent_prompt&&(d.prompt="consent"),(sessionStorage.getItem("mfa_route")||sessionStorage.getItem("mfaProcessed"))&&(d.acr_values="https://refeds.org/profile/mfa"),sessionStorage.getItem("mfa_route")&&(d.prompt?d.prompt+=" login":d.prompt="login",d.max_age="0"),"Linker"===this.store.getProperty("application")){d.prompt?d.prompt+=" login":d.prompt="login";const n=gd("idphint",location.search.substring(1));n&&(d.idphint=n)}return{requestAccessToken:!0,issuer:l.oauth_authority,clientId:l.oauth_client_id,redirectUri:l.oauth_redirect_uri,postLogoutRedirectUri:l.oauth_post_logout_redirect_uri,responseType:l.oauth_response_type,scope:l.oauth_scopes,clockSkewInSec:1,timeoutFactor:u,userinfoEndpoint:this.store.getProperty("oidc_client").user_info_endpoint_url,customQueryParams:d}}setIdpFilter(){const e=location.search.length?location.search.substring(1).split("&"):[];this.filterShortname=null;const t=this.store.getProperty("oidc_client").filters;if(!t)return null;let s=null;return e.forEach(u=>{const d=u.split("=");"idpFilter"===d[0]&&t[d[1]]&&(this.filterShortname=d[1],s=t[d[1]])}),t.default&&!s?(this.filterShortname="default",t.default):s}startIdpFilterKeeper(){this.router.events.pipe((0,Wt.h)(e=>e instanceof Nr)).subscribe(()=>{const e={idpFilter:this.getIdpFilter()};this.router.navigate([],{relativeTo:this.route,queryParams:"default"===e.idpFilter?{}:e,queryParamsHandling:"merge",replaceUrl:!0})})}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(_.zs3),_.LFG(On),_.LFG(cr),_.LFG(qr),_.LFG(Qr.Ct))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),ip=(()=>{class o{constructor(e){this.dialogRef=e}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(Vn))},o.\u0275cmp=_.Xpm({type:o,selectors:[["perun-web-apps-user-dont-exist-dialog"]],decls:3,vars:3,consts:[["mat-dialog-content","",1,"mt-2","mb-2"]],template:function(e,t){1&e&&(_.TgZ(0,"h2",0),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&e&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.USER_DONT_EXIST.TITLE"),"\n"))},dependencies:[dr,Hi]}),o})();var u_=E(930);function np(o,r){const e="object"==typeof r;return new Promise((t,s)=>{const u=new u_.Hp({next:d=>{t(d),u.unsubscribe()},error:s,complete:()=>{e?t(r.defaultValue):s(new Rt.K)}});o.subscribe(u)})}function h_(o,r){1&o&&(_.TgZ(0,"mat-icon",2),_._uU(1," info "),_.qZA())}function p_(o,r){1&o&&(_.TgZ(0,"mat-icon",2),_._uU(1," warning "),_.qZA())}function tA(o,r){1&o&&(_.TgZ(0,"mat-icon",2),_._uU(1," dangerous "),_.qZA())}function f_(o,r){1&o&&(_.TgZ(0,"mat-icon",2),_._uU(1," check_circle "),_.qZA())}const m_=["*"];let wd=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=_.Xpm({type:o,selectors:[["perun-web-apps-alert"]],inputs:{alert_type:"alert_type"},ngContentSelectors:m_,decls:6,vars:12,consts:[[1,"perun-alert","d-flex","align-items-flex-start"],["class","perun-alert-icon",4,"ngIf"],[1,"perun-alert-icon"]],template:function(e,t){1&e&&(_.F$t(),_.TgZ(0,"div",0),_.YNc(1,h_,2,0,"mat-icon",1),_.YNc(2,p_,2,0,"mat-icon",1),_.YNc(3,tA,2,0,"mat-icon",1),_.YNc(4,f_,2,0,"mat-icon",1),_.Hsn(5),_.qZA()),2&e&&(_.ekj("warn-alert","warn"===t.alert_type)("error-alert","error"===t.alert_type)("success-alert","success"===t.alert_type)("info-alert","info"===t.alert_type),_.xp6(1),_.Q6J("ngIf","info"===t.alert_type),_.xp6(1),_.Q6J("ngIf","warn"===t.alert_type),_.xp6(1),_.Q6J("ngIf","error"===t.alert_type),_.xp6(1),_.Q6J("ngIf","success"===t.alert_type))},dependencies:[Ft,M.O5],styles:[".perun-alert[_ngcontent-%COMP%]{position:relative;padding:.75rem 1.25rem;margin-top:1rem;margin-bottom:1rem}.perun-alert.info-alert[_ngcontent-%COMP%]{font-style:italic;color:gray;text-align:left;border:1px #b3b3b3 solid;border-radius:10px}.perun-alert.warn-alert[_ngcontent-%COMP%]{font-weight:700;text-align:left;border:1px #ececec solid;border-radius:10px;background-color:#ececec}.perun-alert-icon[_ngcontent-%COMP%]{padding-right:2rem}.perun-alert.error-alert[_ngcontent-%COMP%]{text-align:left;border:1px #fedcda solid;border-radius:10px;background-color:#fedcda}.perun-alert.success-alert[_ngcontent-%COMP%]{text-align:left;border:1px #d7ffd7 solid;border-radius:10px;background-color:#d7ffd7}"]}),o})(),g_=(()=>{class o{constructor(e,t){this.dialogRef=e,this.data=t}cancel(){this.dialogRef.close(!1)}submit(){this.dialogRef.close(!0)}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(Vn),_.Y36(hs))},o.\u0275cmp=_.Xpm({type:o,selectors:[["perun-web-apps-mfa-required-dialog"]],decls:15,vars:17,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["alert_type","warn"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"hidden","click"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,t){1&e&&(_.TgZ(0,"h1",0),_._uU(1),_.ALo(2,"translate"),_.qZA(),_.TgZ(3,"div",1)(4,"perun-web-apps-alert",2),_._uU(5),_.ALo(6,"translate"),_.ALo(7,"translate"),_.qZA()(),_.TgZ(8,"div",3)(9,"button",4),_.NdJ("click",function(){return t.cancel()}),_._uU(10),_.ALo(11,"translate"),_.qZA(),_.TgZ(12,"button",5),_.NdJ("click",function(){return t.submit()}),_._uU(13),_.ALo(14,"translate"),_.qZA()()),2&e&&(_.xp6(1),_.Oqu(_.lcZ(2,7,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.TITLE")),_.xp6(4),_.hij(" ",t.data.mfaRoleException?_.lcZ(6,9,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.INFO_ROLE"):_.lcZ(7,11,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.INFO")," "),_.xp6(4),_.Q6J("hidden",t.data.mfaRoleException),_.xp6(1),_.hij(" ",_.lcZ(11,13,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.CANCEL")," "),_.xp6(2),_.Tol(t.data.mfaRoleException?"ml-auto":"ml-2"),_.xp6(1),_.hij(" ",_.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.STEP_UP")," "))},dependencies:[la,dr,ca,Zr,wd,Hi]}),o})(),iA=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=_.Xpm({type:o,selectors:[["perun-web-apps-focus-on-mfa-window"]],decls:9,vars:6,consts:[[1,"text-center","custom-dialog"],[1,"align-text-bottom"]],template:function(e,t){1&e&&(_.TgZ(0,"div",0)(1,"div")(2,"mat-icon",1),_._uU(3," info "),_.qZA(),_._uU(4),_.ALo(5,"translate"),_.qZA(),_.TgZ(6,"div"),_._uU(7),_.ALo(8,"translate"),_.qZA()()),2&e&&(_.xp6(4),_.hij(" ",_.lcZ(5,2,"SHARED_LIB.PERUN.COMPONENTS.FOCUS_ON_MFA_DIALOG.MODAL")," "),_.xp6(3),_.hij(" ",_.lcZ(8,4,"SHARED_LIB.PERUN.COMPONENTS.FOCUS_ON_MFA_DIALOG.MODAL_WARNING")," "))},dependencies:[Ft,Hi],styles:[".custom-dialog[_ngcontent-%COMP%]{background-color:#000;color:#fffffff2;font-size:1.2rem}"]}),o})(),$i=(()=>{class o{constructor(e,t){this.data=e,this.dialogRef=t}cancel(){this.dialogRef.close(!1)}submit(){window.open(this.data.tokensUrl,"_blank"),this.dialogRef.close(!0)}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(hs),_.Y36(Vn))},o.\u0275cmp=_.Xpm({type:o,selectors:[["perun-web-apps-no-mfa-tokens-dialog"]],decls:14,vars:12,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["alert_type","warn"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(_.TgZ(0,"h1",0),_._uU(1),_.ALo(2,"translate"),_.qZA(),_.TgZ(3,"div",1)(4,"perun-web-apps-alert",2),_._uU(5),_.ALo(6,"translate"),_.qZA()(),_.TgZ(7,"div",3)(8,"button",4),_.NdJ("click",function(){return t.cancel()}),_._uU(9),_.ALo(10,"translate"),_.qZA(),_.TgZ(11,"button",5),_.NdJ("click",function(){return t.submit()}),_._uU(12),_.ALo(13,"translate"),_.qZA()()),2&e&&(_.xp6(1),_.Oqu(_.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.TITLE")),_.xp6(4),_.hij(" ",_.lcZ(6,6,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.INFO")," "),_.xp6(4),_.hij(" ",_.lcZ(10,8,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.CANCEL")," "),_.xp6(3),_.hij(" ",_.lcZ(13,10,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.MANAGE_TOKENS")," "))},dependencies:[la,dr,ca,Zr,wd,Hi]}),o})(),da=(()=>{class o{constructor(e,t,s,u){this.dialog=e,this.oauthService=t,this.authService=s,this.store=u}openMfaWindow(e){let t=null,s=null;const u=ur();u.width="450px",u.data={mfaRoleException:e};const d=this.dialog.open(g_,u);let l=!1;if(d.afterClosed().subscribe(n=>{if(n){if(sessionStorage.setItem("mfaRequired","true"),sessionStorage.setItem("oldAccessToken",this.oauthService.getAccessToken()),sessionStorage.setItem("oldRefreshToken",this.oauthService.getRefreshToken()),t=this.setupMfaWindow(),t){const i=ur();i.width="450px",i.panelClass="noBorderDialog",s=this.dialog.open(iA,i)}}else l=!0}),localStorage.getItem("noMfaTokenDialog")){localStorage.removeItem("noMfaTokenDialog");const n=ur();n.width="450px",n.data={tokensUrl:this.store.getProperty("mfa").url_en},this.dialog.open($i,n)}return new Qe.y(n=>{const i=setInterval(()=>t?.closed?(clearInterval(i),s.close(),sessionStorage.removeItem("mfaRequired"),sessionStorage.removeItem("mfaProcessed"),null===this.oauthService.getAccessToken()&&(localStorage.setItem("access_token",sessionStorage.getItem("oldAccessToken")),localStorage.setItem("refresh_token",sessionStorage.getItem("oldRefreshToken"))),n.next(!0)):l?(clearInterval(i),n.next(!1)):void 0,1e3)})}catchNoMfaTokenError(e){"unmet_authentication_requirements"===e&&(localStorage.setItem("noMfaTokenDialog","true"),window.close())}mfaWindowForceLogout(){if(sessionStorage.getItem("mfaRequired")&&!sessionStorage.getItem("mfaProcessed"))return sessionStorage.setItem("mfaProcessed","true"),this.oauthService.logOut(!0),this.authService.loadOidcConfigData(),void this.oauthService.loadDiscoveryDocumentAndLogin();sessionStorage.removeItem("mfaRequired")}closeMfaWindow(){sessionStorage.getItem("mfaProcessed")&&!sessionStorage.getItem("mfaRequired")&&(sessionStorage.removeItem("mfaProcessed"),window.close())}setupMfaWindow(){const e=location.pathname+location.search,u=window.top;return window.open(e,"_blank",`width=600,height=600,top=${u.outerHeight/2+u.screenY-300}, left=${u.outerWidth/2+u.screenX-300}`)}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(cr),_.LFG(Qr.Ct),_.LFG(Sl),_.LFG(On))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),__=(()=>{class o{constructor(e,t,s,u,d,l,n,i){this.authService=e,this.oauthService=t,this.storeService=s,this.authResolver=u,this.authzService=d,this.dialog=l,this.router=n,this.mfaHandlerService=i,this.loginScreenShown=!1,this.serviceAccess=!1,this.serviceAccessLoginScreen=!1}isLoginScreenShown(){return this.loginScreenShown}isServiceAccess(){return this.serviceAccess}isServiceAccessLoginScreenShown(){return this.serviceAccessLoginScreen}verifyAuth(){if(this.mfaHandlerService.mfaWindowForceLogout(),sessionStorage.getItem("baPrincipal"))return this.serviceAccess=!0,sessionStorage.getItem("auth:redirect")?this.redirectToOriginDestination():Promise.resolve(!0);if("/service-access"!==location.pathname&&!this.storeService.getProperty("auto_service_access_redirect")){this.authService.loadOidcConfigData();const e=location.pathname,t=location.search.substring(1);return"/api-callback"===e?this.oauthService.loadDiscoveryDocumentAndTryLogin().then(()=>this.startRefreshToken()).then(()=>this.redirectToOriginDestination()):this.oauthService.loadDiscoveryDocument().then(()=>this.tryRefreshToken()).then(()=>"Linker"===this.storeService.getProperty("application")?(sessionStorage.setItem("auth:queryParams",t),localStorage.removeItem("access_token"),!1):this.oauthService.hasValidAccessToken()?this.startRefreshToken():this.isPotentiallyValidPath(e)?(sessionStorage.setItem("auth:redirect",e),sessionStorage.setItem("auth:queryParams",t),!1):Promise.reject("Invalid path"))}}loadPrincipal(){return np(this.authzService.getPerunPrincipal()).then(e=>{if(null===e.user){const t=ur();this.dialog.open(ip,t)}else this.storeService.setPerunPrincipal(e),this.authResolver.init(e)})}simpleLoadPrincipal(){return np(this.authzService.getPerunPrincipal()).then(e=>{this.storeService.setPerunPrincipal(e)})}checkRouteGuard(){const e=localStorage.getItem("routeAuthGuard");e&&(localStorage.removeItem("routeAuthGuard"),this.router.navigate([e],{queryParamsHandling:"merge"}))}handleAuthStart(){if(this.storeService.getProperty("auto_service_access_redirect")&&"/service-access"!==location.pathname){this.serviceAccess=!0,this.serviceAccessLoginScreen=!0;const e=location.pathname,t=location.search.substring(1);sessionStorage.setItem("auth:redirect",e),sessionStorage.setItem("auth:queryParams",t);const s={};return t.split("&").forEach(u=>{const d=u.split("=");s[d[0]]=d[1]}),this.router.navigate(["service-access"],{queryParams:s,queryParamsHandling:"merge"}).then()}if("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal")||this.storeService.getProperty("auto_service_access_redirect")){this.serviceAccess=!0,this.serviceAccessLoginScreen=!0;const e=location.search.substring(1);return sessionStorage.setItem("auth:queryParams",e),Promise.resolve()}return this.storeService.getProperty("auto_auth_redirect")?(sessionStorage.getItem("mfaProcessed")||localStorage.setItem("routeAuthGuard",window.location.pathname),this.startAuth().then(()=>new Promise(()=>{}))):(this.setLoginScreen(!0),localStorage.setItem("routeAuthGuard",window.location.pathname),void this.router.navigate(["login"],{queryParamsHandling:"merge"}))}setLoginScreen(e){this.loginScreenShown=e}isPotentiallyValidPath(e){const t=["/home","/organizations","/facilities","/myProfile","/admin","/login","/service-access","/profile"];if("/"===e)return!0;for(const s of t)if(e.startsWith(s))return!0;return!1}startRefreshToken(){return this.oauthService.hasValidAccessToken()?(this.oauthService.events.pipe((0,Wt.h)(e=>"token_expires"===e.type&&"access_token"===e.info)).subscribe(()=>{this.oauthService.refreshToken()}),Promise.resolve(!0)):Promise.resolve(!1)}tryRefreshToken(){return localStorage.getItem("refresh_token")&&!this.oauthService.hasValidAccessToken()?this.oauthService.refreshToken().then(()=>Promise.resolve()).catch(()=>Promise.resolve()):Promise.resolve()}redirectToOriginDestination(){const e=sessionStorage.getItem("mfa_route");if(e)return this.router.navigate([e],{replaceUrl:!0,queryParamsHandling:"merge"});let t=sessionStorage.getItem("auth:redirect");(!t||"/login"===t)&&(t="/"),sessionStorage.removeItem("auth:redirect");const s=sessionStorage.getItem("auth:queryParams");let u=[];s&&(u=s.split("&"));const d={};return u.forEach(l=>{const n=l.split("=");d[n[0]]=n[1]}),sessionStorage.removeItem("auth:queryParams"),this.router.navigate([t],{queryParams:d,replaceUrl:!0,queryParamsHandling:"merge"})}startAuth(){return this.authService.startAuthentication(),Promise.resolve()}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(Sl),_.LFG(Qr.Ct),_.LFG(On),_.LFG(eA),_.LFG(Al),_.LFG(cr),_.LFG(Kt),_.LFG(da))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),nA=(()=>{class o{constructor(e,t){this.matIconRegistry=e,this.domSanitizer=t,this.customIcons=[{url:"assets/img/PerunWebImages/refresh_tab-black.svg",name:"perun-refresh-enabled"},{url:"assets/img/PerunWebImages/refresh_tab-grey.svg",name:"perun-refresh-disabled"},{url:"assets/img/PerunWebImages/manage_facility_white.svg",name:"perun-manage-facility"},{url:"assets/img/PerunWebImages/vo-white.svg",name:"perun-vo"},{url:"assets/img/PerunWebImages/user-white.svg",name:"perun-user"},{url:"assets/img/PerunWebImages/perun_admin-white.svg",name:"perun-perun-admin"},{url:"assets/img/PerunWebImages/group-white.svg",name:"perun-group"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/preview-white.svg",name:"perun-preview"},{url:"assets/img/PerunWebImages/module_dependencies.svg",name:"perun-module-dependencies"},{url:"assets/img/PerunWebImages/user_destination_relationship.svg",name:"perun-user-destination-relationship"},{url:"assets/img/PerunWebImages/settings2-white.svg",name:"perun-settings2"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/applications-white.svg",name:"perun-applications"},{url:"assets/img/PerunWebImages/manager-white.svg",name:"perun-manager"},{url:"assets/img/PerunWebImages/key-white.svg",name:"perun-key"},{url:"assets/img/PerunWebImages/application_form-white.svg",name:"perun-application-form"},{url:"assets/img/PerunWebImages/notification-white.svg",name:"perun-notification"},{url:"assets/img/PerunWebImages/invite_member-white.svg",name:"perun-invite-member"},{url:"assets/img/PerunWebImages/service_identity-white.svg",name:"perun-service-identity"},{url:"assets/img/PerunWebImages/service_identity-black.svg",name:"perun-service-identity-black"},{url:"assets/img/PerunWebImages/create1-white.svg",name:"perun-create1"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource"},{url:"assets/img/PerunWebImages/resource_tags-white.svg",name:"perun-resource-tags"},{url:"assets/img/PerunWebImages/resources_state-white.svg",name:"perun-resources-state"},{url:"assets/img/PerunWebImages/external_sources-white.svg",name:"perun-external-sources"},{url:"assets/img/PerunWebImages/vo-dark.svg",name:"perun-vo-black"},{url:"assets/img/PerunWebImages/group-dark.svg",name:"perun-group-black"},{url:"assets/img/PerunWebImages/facility-dark.svg",name:"perun-facility-black"},{url:"assets/img/publications.svg",name:"perun-publications-white"},{url:"assets/img/PerunWebImages/owner-grey.svg",name:"perun-owner-grey"},{url:"assets/img/PerunWebImages/settings1-blue.svg",name:"perun-settings1"},{url:"assets/img/PerunWebImages/service_destination-blue.svg",name:"perun-service_destination"},{url:"assets/img/PerunWebImages/host-blue.svg",name:"perun-hosts"},{url:"assets/img/PerunWebImages/home.svg",name:"perun-home-white"},{url:"assets/img/PerunWebImages/security_admin-blue.svg",name:"perun-security-teams"},{url:"assets/img/PerunWebImages/black_list-white.svg",name:"perun-black-list"},{url:"assets/img/PerunWebImages/facility-white.svg",name:"perun-facility-white"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource-white"},{url:"assets/img/PerunWebImages/service-white.svg",name:"perun-service"},{url:"assets/img/PerunWebImages/resource-black.svg",name:"perun-resource-black"},{url:"assets/img/PerunWebImages/service_status-grey.svg",name:"perun-service-status"},{url:"assets/img/PerunWebImages/user-dark.svg",name:"perun-user-dark"},{url:"assets/img/PerunWebImages/statistics-blue.svg",name:"perun-statistics"},{url:"assets/img/PerunWebImages/audit_log-blue.svg",name:"perun-audit-log"},{url:"assets/img/PerunWebImages/contact-grey.svg",name:"perun-identity"},{url:"assets/img/PerunWebImages/roles.svg",name:"perun-roles"},{url:"assets/img/PerunWebImages/consent-white.svg",name:"perun-consent-hubs"},{url:"assets/img/PerunWebImages/hierarchical_vo-black.svg",name:"perun-hierarchical-vo"},{url:"assets/img/PerunWebImages/searcher-blue.svg",name:"perun-searcher"},{url:"assets/img/PerunWebImages/propagation-blue.svg",name:"perun-hierarchical-inclusion"},{url:"assets/img/PerunWebImages/verify-grey.svg",name:"perun-verify-grey"},{url:"assets/img/PerunWebImages/info-grey.svg",name:"perun-info-grey"},{url:"assets/img/PerunWebImages/logins.svg",name:"perun-logins"},{url:"assets/img/PerunWebImages/certificates.svg",name:"perun-certificates"},{url:"assets/img/PerunWebImages/authentication.svg",name:"perun-authentication"},{url:"assets/img/PerunWebImages/ban.svg",name:"perun-ban"}]}registerPerunRefreshIcon(){this.customIcons.forEach(e=>{this.matIconRegistry.addSvgIcon(e.name,this.domSanitizer.bypassSecurityTrustResourceUrl(e.url))})}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(Ja),_.LFG(Ci))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac}),o})(),rA=(()=>{class o{constructor(e){this.dialogRef=e}close(){this.dialogRef.close(!0)}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(Vn))},o.\u0275cmp=_.Xpm({type:o,selectors:[["perun-web-apps-session-expiration-dialog"]],decls:11,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"ml-auto"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,t){1&e&&(_.TgZ(0,"h1",0),_._uU(1),_.ALo(2,"translate"),_.qZA(),_.TgZ(3,"div",1),_._uU(4),_.ALo(5,"translate"),_.qZA(),_.TgZ(6,"div",2)(7,"div",3)(8,"button",4),_.NdJ("click",function(){return t.close()}),_._uU(9),_.ALo(10,"translate"),_.qZA()()()),2&e&&(_.xp6(1),_.Oqu(_.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.TITLE")),_.xp6(3),_.hij(" ",_.lcZ(5,5,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.DESCRIPTION"),"\n"),_.xp6(5),_.hij(" ",_.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.SIGN_IN")," "))},dependencies:[la,dr,ca,Zr,Hi]}),o})(),b_=(()=>{class o{constructor(){this.handleNextError=!0}dontHandleErrorForNext(){this.handleNextError=!1}shouldHandleError(){const e=this.handleNextError;return this.handleNextError=!0,e}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),yd=(()=>{class o{constructor(e){this.translate=e,this.addNotification=new _.vpe,this.defaultErrorDelayMs=5e3,this.defaultSuccessDelayMs=3e3}getDefaultActionMessage(){return void 0===this.defaultAction?this.defaultAction=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_ACTION"):this.defaultAction}getDefaultRpcMessage(){return void 0===this.defaultRpcMessage?this.defaultRpcMessage=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_RPC_ERROR_MESSAGE"):this.defaultRpcMessage}showRPCError(e,t=this.getDefaultRpcMessage()){this.showError("PrivilegeException"===e.name?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.PRIVILEGE_EXCEPTION"):void 0===e.name?t:t+"\n"+e.name,e,e.message)}showRouteError(){const e=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_ERROR"),t=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_DESC");this.showError(e,null,t)}showError(e,t,s,u,d){this.addNotification.emit({type:"error",error:t,description:s,title:e,actionText:void 0===u&&void 0!==s?this.getDefaultActionMessage():u,delay:this.defaultErrorDelayMs,icon:"error_outline",action:d,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}showSuccess(e,t,s,u){this.addNotification.emit({type:"success",description:t,title:e,actionText:void 0===s&&void 0!==t?this.getDefaultActionMessage():s,delay:this.defaultSuccessDelayMs,icon:"done",action:u,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(sa))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),fs=(()=>{class o{constructor(e,t,s,u,d,l,n,i){this.authService=e,this.apiRequestConfiguration=t,this.notificator=s,this.store=u,this.dialog=d,this.initAuthService=l,this.mfaHandlerService=n,this.oauthService=i}intercept(e,t){const s=this.store.getProperty("api_url");if(e.url.includes("i18n")&&(e=e.clone({setHeaders:{"Cache-control":"no-cache, must-revalidate"}})),void 0!==s&&this.isCallToPerunApi(e.url)&&!this.isLoggedIn()&&!this.dialogRefSessionExpiration){const u=ur();u.width="450px",null==this.dialogRefSessionExpiration&&(this.dialogRefSessionExpiration=this.dialog.open(rA,u),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{va(()=>this.dialogRefSessionExpiration=void 0),sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.oauthService.logOut(!0),this.reauthenticate()}))}return this.initAuthService.isServiceAccess()?e=e.clone({setHeaders:{Authorization:"Basic "+btoa(sessionStorage.getItem("basicUsername")+":"+sessionStorage.getItem("basicPassword"))}}):this.isCallToPerunApi(e.url)&&(e=e.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}})),this.handleRequest(e,t)}isLoggedIn(){return(this.authService.isLoggedIn()||this.initAuthService.isServiceAccess())&&!this.initAuthService.isServiceAccessLoginScreenShown()}reauthenticate(){sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.initAuthService.handleAuthStart()}handleRequest(e,t){const s=this.apiRequestConfiguration.shouldHandleError(),u="POST"===e.method&&this.isNotConsolidatorOrLinker()&&this.isCallToPerunApi(e.url);return t.handle(e).pipe((0,$t.b)(d=>{d instanceof v.Zn&&u&&this.initAuthService.loadPrincipal()}),(0,Et.K)(d=>{const l=d.error;if("MfaPrivilegeException"===l.type||"MfaRolePrivilegeException"===l.type)return this.mfaHandlerService.openMfaWindow("MfaRolePrivilegeException"===l.type).pipe((0,Bi.w)(n=>n?("MfaRolePrivilegeException"===l.type&&window.location.reload(),this.handleRequest(this.replaceAuthenticationToken(e),t)):(0,wi._)(()=>l)));{this.handleInvalidAccessTokenError(d);const n=this.formatErrors(d,e);return void 0===n?(0,wi._)(()=>d):(s&&this.notificator.showRPCError(n),(0,wi._)(()=>n))}}))}replaceAuthenticationToken(e){return e.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}})}isCallToPerunApi(e){return e.startsWith(this.store.getProperty("api_url"))}formatErrors(e,t){let s;console.error(e);const u=e.error;if(u.errorId&&(s=u),void 0!==s)return s.urlWithParams=t.urlWithParams,s.call=t.url,s.payload=t.body,s}isNotConsolidatorOrLinker(){const e=this.store.getProperty("application");return!("Linker"===e||"Consolidator"===e)}handleInvalidAccessTokenError(e){if(401===e.status){if(!this.isLoggedIn()||"invalid_token"===e.error.error||null!=this.dialogRefSessionExpiration)return;const t=ur();this.dialogRefSessionExpiration=this.dialog.open(rA,t),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{this.oauthService.logOut(!0),this.reauthenticate()})}}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(Sl),_.LFG(b_),_.LFG(yd),_.LFG(On),_.LFG(cr),_.LFG(__),_.LFG(da),_.LFG(Qr.Ct))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac}),o})(),C_=(()=>{class o{constructor(){this.newNotificationsCount=0,this.notificationData=[]}storeNotification(e){this.newNotificationsCount++,this.notificationData.push(e)}getNotifications(){return this.notificationData.reverse()}clearNotifications(){this.notificationData=[]}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),rp=(()=>{class o{constructor(e,t,s,u){this.http=e,this.notificator=t,this.authService=s,this.storeService=u}getApiUrl(){return void 0===this.api_url&&(this.api_url=this.storeService.getProperty("api_url")),this.api_url+"/"}getHeaders(){let e=new v.WM;return e=e.set("Authorization",this.authService.getAuthorizationHeaderValue()),e}get(e,t=!0){const s=`${this.getApiUrl()}${e}`;return this.http.get(s,{headers:this.getHeaders()}).pipe((0,Et.K)(u=>this.formatErrors(u,s,null,t)))}put(e,t={},s=!0){const u=`${this.getApiUrl()}${e}`,d=JSON.stringify(t);return this.http.put(u,d,{headers:this.getHeaders()}).pipe((0,Et.K)(l=>this.formatErrors(l,u,d,s)))}post(e,t={},s=!0){const u=`${this.getApiUrl()}${e}`,d=JSON.stringify(t);let l=this.getHeaders();return l=l.set("Content-Type","application/json; charset=utf-8"),this.http.post(u,d,{headers:l}).pipe((0,Et.K)(n=>this.formatErrors(n,u,d,s)))}delete(e,t=!0){const s=`${this.getApiUrl()}${e}`;return this.http.delete(s,{headers:this.getHeaders()}).pipe((0,Et.K)(u=>this.formatErrors(u,s,null,t)))}formatErrors(e,t,s,u){const d=e.error;return d.call=t,d.payload=s,u&&this.notificator.showRPCError(e.error),(0,wi._)(d)}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(v.eN),_.LFG(yd),_.LFG(Sl),_.LFG(On))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),w_=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[M.ez]}),o})(),vd=(()=>{class o{transform(e){return[e.titleBefore,e.firstName,e.middleName,e.lastName,e.titleAfter].join(" ")}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275pipe=_.Yjl({name:"userFullName",type:o,pure:!0}),o})(),ap=(()=>{class o{constructor(e,t){this.translate=e,this.storage=t}transform(e,t="en"){const s=this.storage.getProperty("custom_labels");if(s)for(const u of s)if(u.label===e)return u[t];return e}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(sa,16),_.Y36(On,16))},o.\u0275pipe=_.Yjl({name:"customTranslate",type:o,pure:!0}),o})();function dA(o,r){if(1&o&&(_.O4$(),_._UZ(0,"circle",4)),2&o){const e=_.oxw(),t=_.MAs(1);_.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+e._spinnerAnimationLabel)("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),_.uIk("r",e._getCircleRadius())}}function uA(o,r){if(1&o&&(_.O4$(),_._UZ(0,"circle",4)),2&o){const e=_.oxw(),t=_.MAs(1);_.Udp("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),_.uIk("r",e._getCircleRadius())}}const x_=Na(class{constructor(o){this._elementRef=o}},"primary"),hA=new _.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function S_(){return{diameter:100}}});class Ln extends x_{constructor(r,e,t,s,u,d,l,n){super(r),this._document=t,this._diameter=100,this._value=0,this._resizeSubscription=Gt.w0.EMPTY,this.mode="determinate";const i=Ln._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),i.has(t.head)||i.set(t.head,new Set([100])),this._noopAnimations="NoopAnimations"===s&&!!u&&!u._forceAnimations,"mat-spinner"===r.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),u&&(u.color&&(this.color=this.defaultColor=u.color),u.diameter&&(this.diameter=u.diameter),u.strokeWidth&&(this.strokeWidth=u.strokeWidth)),e.isBrowser&&e.SAFARI&&l&&d&&n&&(this._resizeSubscription=l.change(150).subscribe(()=>{"indeterminate"===this.mode&&n.run(()=>d.markForCheck())}))}get diameter(){return this._diameter}set diameter(r){this._diameter=ji(r),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(r){this._strokeWidth=ji(r)}get value(){return"determinate"===this.mode?this._value:0}set value(r){this._value=Math.max(0,Math.min(100,ji(r)))}ngOnInit(){const r=this._elementRef.nativeElement;this._styleRoot=Yr(r)||this._document.head,this._attachStyleNode(),r.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const r=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${r} ${r}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_getCircleTransformOrigin(r){const e=50*(r.currentScale??1);return`${e}% ${e}%`}_attachStyleNode(){const r=this._styleRoot,e=this._diameter,t=Ln._diameters;let s=t.get(r);if(!s||!s.has(e)){const u=this._document.createElement("style");u.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),u.textContent=this._getAnimationText(),r.appendChild(u),s||(s=new Set,t.set(r,s)),s.add(e)}}_getAnimationText(){const r=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*r).replace(/END_VALUE/g,""+.2*r).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}Ln._diameters=new WeakMap,Ln.\u0275fac=function(r){return new(r||Ln)(_.Y36(_.SBq),_.Y36(gi),_.Y36(M.K0,8),_.Y36(_.QbO,8),_.Y36(hA),_.Y36(_.sBO),_.Y36(Ga),_.Y36(_.R0b))},Ln.\u0275cmp=_.Xpm({type:Ln,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(r,e){2&r&&(_.uIk("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),_.Udp("width",e.diameter,"px")("height",e.diameter,"px"),_.ekj("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[_.qOj],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(r,e){1&r&&(_.O4$(),_.TgZ(0,"svg",0,1),_.YNc(2,dA,1,11,"circle",2),_.YNc(3,uA,1,9,"circle",3),_.qZA()),2&r&&(_.Udp("width",e.diameter,"px")("height",e.diameter,"px"),_.Q6J("ngSwitch","indeterminate"===e.mode),_.uIk("viewBox",e._getViewBox()),_.xp6(2),_.Q6J("ngSwitchCase",!0),_.xp6(1),_.Q6J("ngSwitchCase",!1))},dependencies:[M.RF,M.n9],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:rgba(0,0,0,0);transition:stroke-dashoffset 225ms linear}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}.mat-progress-spinner[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-progress-spinner._mat-animation-noopable svg,.mat-progress-spinner._mat-animation-noopable circle{animation:none;transition: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)}}"],encapsulation:2,changeDetection:0});let Ad=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[Se,M.ez,Se]}),o})();const E_=er({passive:!0});let M_=(()=>{class o{constructor(e,t){this._platform=e,this._ngZone=t,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return Nt.E;const t=Zt(e),s=this._monitoredElements.get(t);if(s)return s.subject;const u=new Ee.x,d="cdk-text-field-autofilled",l=n=>{"cdk-text-field-autofill-start"!==n.animationName||t.classList.contains(d)?"cdk-text-field-autofill-end"===n.animationName&&t.classList.contains(d)&&(t.classList.remove(d),this._ngZone.run(()=>u.next({target:n.target,isAutofilled:!1}))):(t.classList.add(d),this._ngZone.run(()=>u.next({target:n.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{t.addEventListener("animationstart",l,E_),t.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(t,{subject:u,unlisten:()=>{t.removeEventListener("animationstart",l,E_)}}),u}stopMonitoring(e){const t=Zt(e),s=this._monitoredElements.get(t);s&&(s.unlisten(),s.subject.complete(),t.classList.remove("cdk-text-field-autofill-monitored"),t.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(t))}ngOnDestroy(){this._monitoredElements.forEach((e,t)=>this.stopMonitoring(t))}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(gi),_.LFG(_.R0b))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),lp=(()=>{class o{constructor(e,t,s,u){this._elementRef=e,this._platform=t,this._ngZone=s,this._destroyed=new Ee.x,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._handleFocusEvent=d=>{this._hasFocus="focus"===d.type},this._document=u,this._textareaElement=this._elementRef.nativeElement}get minRows(){return this._minRows}set minRows(e){this._minRows=ji(e),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(e){this._maxRows=ji(e),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(e){e=ut(e),this._enabled!==e&&((this._enabled=e)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(e){this._cachedPlaceholderHeight=void 0,e?this._textareaElement.setAttribute("placeholder",e):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}_setMinHeight(){const e=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;e&&(this._textareaElement.style.minHeight=e)}_setMaxHeight(){const e=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;e&&(this._textareaElement.style.maxHeight=e)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{Qo(this._getWindow(),"resize").pipe(Gc(16),It(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0)),this._textareaElement.addEventListener("focus",this._handleFocusEvent),this._textareaElement.addEventListener("blur",this._handleFocusEvent)}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._textareaElement.removeEventListener("focus",this._handleFocusEvent),this._textareaElement.removeEventListener("blur",this._handleFocusEvent),this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let e=this._textareaElement.cloneNode(!1);e.rows=1,e.style.position="absolute",e.style.visibility="hidden",e.style.border="none",e.style.padding="0",e.style.height="",e.style.minHeight="",e.style.maxHeight="",e.style.overflow="hidden",this._textareaElement.parentNode.appendChild(e),this._cachedLineHeight=e.clientHeight,e.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){const e=this._textareaElement,t=e.style.marginBottom||"",s=this._platform.FIREFOX,u=s&&this._hasFocus,d=s?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";u&&(e.style.marginBottom=`${e.clientHeight}px`),e.classList.add(d);const l=e.scrollHeight-4;return e.classList.remove(d),u&&(e.style.marginBottom=t),l}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const e=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=e}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(e=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;const t=this._elementRef.nativeElement,s=t.value;if(!e&&this._minRows===this._previousMinRows&&s===this._previousValue)return;const u=this._measureScrollHeight(),d=Math.max(u,this._cachedPlaceholderHeight||0);t.style.height=`${d}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(t)):setTimeout(()=>this._scrollToCaretPosition(t))}),this._previousValue=s,this._previousMinRows=this._minRows}reset(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollToCaretPosition(e){const{selectionStart:t,selectionEnd:s}=e;!this._destroyed.isStopped&&this._hasFocus&&e.setSelectionRange(t,s)}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(_.SBq),_.Y36(gi),_.Y36(_.R0b),_.Y36(M.K0,8))},o.\u0275dir=_.lG2({type:o,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(e,t){1&e&&_.NdJ("input",function(){return t._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]}),o})(),cp=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({}),o})(),D_=(()=>{class o{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=s=>{},this.onTouched=()=>{}}setProperty(e,t){this._renderer.setProperty(this._elementRef.nativeElement,e,t)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(_.Qsj),_.Y36(_.SBq))},o.\u0275dir=_.lG2({type:o}),o})(),Ka=(()=>{class o extends D_{}return o.\u0275fac=function(){let r;return function(t){return(r||(r=_.n5z(o)))(t||o)}}(),o.\u0275dir=_.lG2({type:o,features:[_.qOj]}),o})();const nn=new _.OlP("NgValueAccessor"),iE={provide:nn,useExisting:(0,_.Gpc)(()=>Ml),multi:!0},rE=new _.OlP("CompositionEventMode");let Ml=(()=>{class o extends D_{constructor(e,t,s){super(e,t),this._compositionMode=s,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function nE(){const o=(0,M.q)()?(0,M.q)().getUserAgent():"";return/android (\d+)/.test(o.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(_.Qsj),_.Y36(_.SBq),_.Y36(rE,8))},o.\u0275dir=_.lG2({type:o,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(e,t){1&e&&_.NdJ("input",function(u){return t._handleInput(u.target.value)})("blur",function(){return t.onTouched()})("compositionstart",function(){return t._compositionStart()})("compositionend",function(u){return t._compositionEnd(u.target.value)})},features:[_._Bn([iE]),_.qOj]}),o})();function Za(o){return null==o||("string"==typeof o||Array.isArray(o))&&0===o.length}function gA(o){return null!=o&&"number"==typeof o.length}const ei=new _.OlP("NgValidators"),Xa=new _.OlP("NgAsyncValidators"),R_=/^(?=.{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 ua{static min(r){return function dp(o){return r=>{if(Za(r.value)||Za(o))return null;const e=parseFloat(r.value);return!isNaN(e)&&e{if(Za(r.value)||Za(o))return null;const e=parseFloat(r.value);return!isNaN(e)&&e>o?{max:{max:o,actual:r.value}}:null}}(r)}static required(r){return _A(r)}static requiredTrue(r){return function xd(o){return!0===o.value?null:{required:!0}}(r)}static email(r){return function hp(o){return Za(o.value)||R_.test(o.value)?null:{email:!0}}(r)}static minLength(r){return function P_(o){return r=>Za(r.value)||!gA(r.value)?null:r.value.lengthgA(r.value)&&r.value.length>o?{maxlength:{requiredLength:o,actualLength:r.value.length}}:null}(r)}static pattern(r){return function bA(o){if(!o)return Sd;let r,e;return"string"==typeof o?(e="","^"!==o.charAt(0)&&(e+="^"),e+=o,"$"!==o.charAt(o.length-1)&&(e+="$"),r=new RegExp(e)):(e=o.toString(),r=o),t=>{if(Za(t.value))return null;const s=t.value;return r.test(s)?null:{pattern:{requiredPattern:e,actualValue:s}}}}(r)}static nullValidator(r){return null}static compose(r){return wA(r)}static composeAsync(r){return V_(r)}}function _A(o){return Za(o.value)?{required:!0}:null}function Sd(o){return null}function I_(o){return null!=o}function k_(o){return(0,_.QGY)(o)?(0,_t.D)(o):o}function Dl(o){let r={};return o.forEach(e=>{r=null!=e?{...r,...e}:r}),0===Object.keys(r).length?null:r}function B_(o,r){return r.map(e=>e(o))}function CA(o){return o.map(r=>function oE(o){return!o.validate}(r)?r:e=>r.validate(e))}function wA(o){if(!o)return null;const r=o.filter(I_);return 0==r.length?null:function(e){return Dl(B_(e,r))}}function fp(o){return null!=o?wA(CA(o)):null}function V_(o){if(!o)return null;const r=o.filter(I_);return 0==r.length?null:function(e){return od(B_(e,r).map(k_)).pipe((0,qe.U)(Dl))}}function mp(o){return null!=o?V_(CA(o)):null}function yA(o,r){return null===o?[r]:Array.isArray(o)?[...o,r]:[o,r]}function O_(o){return o._rawValidators}function gp(o){return o._rawAsyncValidators}function Td(o){return o?Array.isArray(o)?o:[o]:[]}function _p(o,r){return Array.isArray(o)?o.includes(r):o===r}function vn(o,r){const e=Td(r);return Td(o).forEach(s=>{_p(e,s)||e.push(s)}),e}function L_(o,r){return Td(r).filter(e=>!_p(o,e))}class Ed{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(r){this._rawValidators=r||[],this._composedValidatorFn=fp(this._rawValidators)}_setAsyncValidators(r){this._rawAsyncValidators=r||[],this._composedAsyncValidatorFn=mp(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(r){this._onDestroyCallbacks.push(r)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(r=>r()),this._onDestroyCallbacks=[]}reset(r){this.control&&this.control.reset(r)}hasError(r,e){return!!this.control&&this.control.hasError(r,e)}getError(r,e){return this.control?this.control.getError(r,e):null}}class Qi extends Ed{get formDirective(){return null}get path(){return null}}class ti extends Ed{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}let Md=(()=>{class o extends class j_{constructor(r){this._cd=r}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}{constructor(e){super(e)}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(ti,2))},o.\u0275dir=_.lG2({type:o,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&_.ekj("ng-untouched",t.isUntouched)("ng-touched",t.isTouched)("ng-pristine",t.isPristine)("ng-dirty",t.isDirty)("ng-valid",t.isValid)("ng-invalid",t.isInvalid)("ng-pending",t.isPending)},features:[_.qOj]}),o})();const Rl="VALID",Pl="INVALID",Il="PENDING",ms="DISABLED";function wp(o){return(kl(o)?o.validators:o)||null}function yp(o){return Array.isArray(o)?fp(o):o||null}function G_(o,r){return(kl(r)?r.asyncValidators:o)||null}function Rd(o){return Array.isArray(o)?mp(o):o||null}function kl(o){return null!=o&&!Array.isArray(o)&&"object"==typeof o}class Ap{constructor(r,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=r,this._rawAsyncValidators=e,this._composedValidatorFn=yp(this._rawValidators),this._composedAsyncValidatorFn=Rd(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(r){this._rawValidators=this._composedValidatorFn=r}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(r){this._rawAsyncValidators=this._composedAsyncValidatorFn=r}get parent(){return this._parent}get valid(){return this.status===Rl}get invalid(){return this.status===Pl}get pending(){return this.status==Il}get disabled(){return this.status===ms}get enabled(){return this.status!==ms}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(r){this._rawValidators=r,this._composedValidatorFn=yp(r)}setAsyncValidators(r){this._rawAsyncValidators=r,this._composedAsyncValidatorFn=Rd(r)}addValidators(r){this.setValidators(vn(r,this._rawValidators))}addAsyncValidators(r){this.setAsyncValidators(vn(r,this._rawAsyncValidators))}removeValidators(r){this.setValidators(L_(r,this._rawValidators))}removeAsyncValidators(r){this.setAsyncValidators(L_(r,this._rawAsyncValidators))}hasValidator(r){return _p(this._rawValidators,r)}hasAsyncValidator(r){return _p(this._rawAsyncValidators,r)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(r={}){this.touched=!0,this._parent&&!r.onlySelf&&this._parent.markAsTouched(r)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(r=>r.markAllAsTouched())}markAsUntouched(r={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!r.onlySelf&&this._parent._updateTouched(r)}markAsDirty(r={}){this.pristine=!1,this._parent&&!r.onlySelf&&this._parent.markAsDirty(r)}markAsPristine(r={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!r.onlySelf&&this._parent._updatePristine(r)}markAsPending(r={}){this.status=Il,!1!==r.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!r.onlySelf&&this._parent.markAsPending(r)}disable(r={}){const e=this._parentMarkedDirty(r.onlySelf);this.status=ms,this.errors=null,this._forEachChild(t=>{t.disable({...r,onlySelf:!0})}),this._updateValue(),!1!==r.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...r,skipPristineCheck:e}),this._onDisabledChange.forEach(t=>t(!0))}enable(r={}){const e=this._parentMarkedDirty(r.onlySelf);this.status=Rl,this._forEachChild(t=>{t.enable({...r,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:r.emitEvent}),this._updateAncestors({...r,skipPristineCheck:e}),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(r){this._parent&&!r.onlySelf&&(this._parent.updateValueAndValidity(r),r.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(r){this._parent=r}getRawValue(){return this.value}updateValueAndValidity(r={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Rl||this.status===Il)&&this._runAsyncValidator(r.emitEvent)),!1!==r.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!r.onlySelf&&this._parent.updateValueAndValidity(r)}_updateTreeValidity(r={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(r)),this.updateValueAndValidity({onlySelf:!0,emitEvent:r.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?ms:Rl}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(r){if(this.asyncValidator){this.status=Il,this._hasOwnPendingAsyncValidator=!0;const e=k_(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(t=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(t,{emitEvent:r})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(r,e={}){this.errors=r,this._updateControlsErrors(!1!==e.emitEvent)}get(r){let e=r;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((t,s)=>t&&t._find(s),this)}getError(r,e){const t=e?this.get(e):this;return t&&t.errors?t.errors[r]:null}hasError(r,e){return!!this.getError(r,e)}get root(){let r=this;for(;r._parent;)r=r._parent;return r}_updateControlsErrors(r){this.status=this._calculateStatus(),r&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(r)}_initObservables(){this.valueChanges=new _.vpe,this.statusChanges=new _.vpe}_calculateStatus(){return this._allControlsDisabled()?ms:this.errors?Pl:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Il)?Il:this._anyControlsHaveStatus(Pl)?Pl:Rl}_anyControlsHaveStatus(r){return this._anyControls(e=>e.status===r)}_anyControlsDirty(){return this._anyControls(r=>r.dirty)}_anyControlsTouched(){return this._anyControls(r=>r.touched)}_updatePristine(r={}){this.pristine=!this._anyControlsDirty(),this._parent&&!r.onlySelf&&this._parent._updatePristine(r)}_updateTouched(r={}){this.touched=this._anyControlsTouched(),this._parent&&!r.onlySelf&&this._parent._updateTouched(r)}_registerOnCollectionChange(r){this._onCollectionChange=r}_setUpdateStrategy(r){kl(r)&&null!=r.updateOn&&(this._updateOn=r.updateOn)}_parentMarkedDirty(r){return!r&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(r){return null}}class Pd extends Ap{constructor(r,e,t){super(wp(e),G_(t,e)),this.controls=r,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(r,e){return this.controls[r]?this.controls[r]:(this.controls[r]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(r,e,t={}){this.registerControl(r,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}removeControl(r,e={}){this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),delete this.controls[r],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(r,e,t={}){this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),delete this.controls[r],e&&this.registerControl(r,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}contains(r){return this.controls.hasOwnProperty(r)&&this.controls[r].enabled}setValue(r,e={}){(function W_(o,r,e){o._forEachChild((t,s)=>{if(void 0===e[s])throw new _.vHH(1002,"")})})(this,0,r),Object.keys(r).forEach(t=>{(function vp(o,r,e){const t=o.controls;if(!(r?Object.keys(t):t).length)throw new _.vHH(1e3,"");if(!t[e])throw new _.vHH(1001,"")})(this,!0,t),this.controls[t].setValue(r[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(r,e={}){null!=r&&(Object.keys(r).forEach(t=>{const s=this.controls[t];s&&s.patchValue(r[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(r={},e={}){this._forEachChild((t,s)=>{t.reset(r[s],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(r,e,t)=>(r[t]=e.getRawValue(),r))}_syncPendingControls(){let r=this._reduceChildren(!1,(e,t)=>!!t._syncPendingControls()||e);return r&&this.updateValueAndValidity({onlySelf:!0}),r}_forEachChild(r){Object.keys(this.controls).forEach(e=>{const t=this.controls[e];t&&r(t,e)})}_setUpControls(){this._forEachChild(r=>{r.setParent(this),r._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(r){for(const[e,t]of Object.entries(this.controls))if(this.contains(e)&&r(t))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,t,s)=>((t.enabled||this.disabled)&&(e[s]=t.value),e))}_reduceChildren(r,e){let t=r;return this._forEachChild((s,u)=>{t=e(t,s,u)}),t}_allControlsDisabled(){for(const r of Object.keys(this.controls))if(this.controls[r].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(r){return this.controls.hasOwnProperty(r)?this.controls[r]:null}}function gs(o,r){Q_(o,r),r.valueAccessor.writeValue(o.value),o.disabled&&r.valueAccessor.setDisabledState?.(!0),function EA(o,r){r.valueAccessor.registerOnChange(e=>{o._pendingValue=e,o._pendingChange=!0,o._pendingDirty=!0,"change"===o.updateOn&&Y_(o,r)})}(o,r),function pE(o,r){const e=(t,s)=>{r.valueAccessor.writeValue(t),s&&r.viewToModelUpdate(t)};o.registerOnChange(e),r._registerOnDestroy(()=>{o._unregisterOnChange(e)})}(o,r),function MA(o,r){r.valueAccessor.registerOnTouched(()=>{o._pendingTouched=!0,"blur"===o.updateOn&&o._pendingChange&&Y_(o,r),"submit"!==o.updateOn&&o.markAsTouched()})}(o,r),function hE(o,r){if(r.valueAccessor.setDisabledState){const e=t=>{r.valueAccessor.setDisabledState(t)};o.registerOnDisabledChange(e),r._registerOnDestroy(()=>{o._unregisterOnDisabledChange(e)})}}(o,r)}function Tp(o,r,e=!0){const t=()=>{};r.valueAccessor&&(r.valueAccessor.registerOnChange(t),r.valueAccessor.registerOnTouched(t)),Vl(o,r),o&&(r._invokeOnDestroyCallbacks(),o._registerOnCollectionChange(()=>{}))}function Id(o,r){o.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(r)})}function Q_(o,r){const e=O_(o);null!==r.validator?o.setValidators(yA(e,r.validator)):"function"==typeof e&&o.setValidators([e]);const t=gp(o);null!==r.asyncValidator?o.setAsyncValidators(yA(t,r.asyncValidator)):"function"==typeof t&&o.setAsyncValidators([t]);const s=()=>o.updateValueAndValidity();Id(r._rawValidators,s),Id(r._rawAsyncValidators,s)}function Vl(o,r){let e=!1;if(null!==o){if(null!==r.validator){const s=O_(o);if(Array.isArray(s)&&s.length>0){const u=s.filter(d=>d!==r.validator);u.length!==s.length&&(e=!0,o.setValidators(u))}}if(null!==r.asyncValidator){const s=gp(o);if(Array.isArray(s)&&s.length>0){const u=s.filter(d=>d!==r.asyncValidator);u.length!==s.length&&(e=!0,o.setAsyncValidators(u))}}}const t=()=>{};return Id(r._rawValidators,t),Id(r._rawAsyncValidators,t),e}function Y_(o,r){o._pendingDirty&&o.markAsDirty(),o.setValue(o._pendingValue,{emitModelToViewChange:!1}),r.viewToModelUpdate(o._pendingValue),o._pendingChange=!1}function DA(o,r){Q_(o,r)}function Mp(o,r){if(!o.hasOwnProperty("model"))return!1;const e=o.model;return!!e.isFirstChange()||!Object.is(r,e.currentValue)}function Dp(o,r){o._syncPendingControls(),r.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function Vr(o,r){if(!r)return null;let e,t,s;return Array.isArray(r),r.forEach(u=>{u.constructor===Ml?e=u:function HA(o){return Object.getPrototypeOf(o.constructor)===Ka}(u)?t=u:s=u}),s||t||e||null}const Hp={provide:Qi,useExisting:(0,_.Gpc)(()=>to)},Ol=(()=>Promise.resolve(null))();let to=(()=>{class o extends Qi{constructor(e,t){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new _.vpe,this.form=new Pd({},fp(e),mp(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Ol.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),gs(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Ol.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Ol.then(()=>{const t=this._findContainer(e.path),s=new Pd({});DA(s,e),t.registerControl(e.name,s),s.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Ol.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){Ol.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,Dp(this.form,this._directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(ei,10),_.Y36(Xa,10))},o.\u0275dir=_.lG2({type:o,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&_.NdJ("submit",function(u){return t.onSubmit(u)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[_._Bn([Hp]),_.qOj]}),o})();function kd(o,r){const e=o.indexOf(r);e>-1&&o.splice(e,1)}function Ll(o){return"object"==typeof o&&null!==o&&2===Object.keys(o).length&&"value"in o&&"disabled"in o}const X_=class extends Ap{constructor(r=null,e,t){super(wp(e),G_(t,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(r),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),kl(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=Ll(r)?r.value:r)}setValue(r,e={}){this.value=this._pendingValue=r,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(r,e={}){this.setValue(r,e)}reset(r=this.defaultValue,e={}){this._applyFormState(r),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(r){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(r){this._onChange.push(r)}_unregisterOnChange(r){kd(this._onChange,r)}registerOnDisabledChange(r){this._onDisabledChange.push(r)}_unregisterOnDisabledChange(r){kd(this._onDisabledChange,r)}_forEachChild(r){}_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(r){Ll(r)?(this.value=this._pendingValue=r.value,r.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=r}},gE=X_,eb={provide:ti,useExisting:(0,_.Gpc)(()=>Bd)},Pp=(()=>Promise.resolve(null))();let Bd=(()=>{class o extends ti{constructor(e,t,s,u,d){super(),this._changeDetectorRef=d,this.control=new X_,this._registered=!1,this.update=new _.vpe,this._parent=e,this._setValidators(t),this._setAsyncValidators(s),this.valueAccessor=Vr(0,u)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const t=e.name.previousValue;this.formDirective.removeControl({name:t,path:this._getPath(t)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),Mp(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_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(){gs(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(e){Pp.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const t=e.isDisabled.currentValue,s=0!==t&&(0,_.D6c)(t);Pp.then(()=>{s&&!this.control.disabled?this.control.disable():!s&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?function Bl(o,r){return[...r.path,o]}(e,this._parent):[e]}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(Qi,9),_.Y36(ei,10),_.Y36(Xa,10),_.Y36(nn,10),_.Y36(_.sBO,8))},o.\u0275dir=_.lG2({type:o,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[_._Bn([eb]),_.qOj,_.TTD]}),o})(),Od=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({}),o})();const Ip=new _.OlP("NgModelWithFormControlWarning"),LA={provide:ti,useExisting:(0,_.Gpc)(()=>kp)};let kp=(()=>{class o extends ti{constructor(e,t,s,u){super(),this._ngModelWarningConfig=u,this.update=new _.vpe,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(t),this.valueAccessor=Vr(0,s)}set isDisabled(e){}ngOnChanges(e){if(this._isControlChanged(e)){const t=e.form.previousValue;t&&Tp(t,this,!1),gs(this.form,this),this.form.updateValueAndValidity({emitEvent:!1})}Mp(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Tp(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}}return o._ngModelWarningSentOnce=!1,o.\u0275fac=function(e){return new(e||o)(_.Y36(ei,10),_.Y36(Xa,10),_.Y36(nn,10),_.Y36(Ip,8))},o.\u0275dir=_.lG2({type:o,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[_._Bn([LA]),_.qOj,_.TTD]}),o})();const AE={provide:Qi,useExisting:(0,_.Gpc)(()=>Ld)};let Ld=(()=>{class o extends Qi{constructor(e,t){super(),this.validators=e,this.asyncValidators=t,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new _.vpe,this._setValidators(e),this._setAsyncValidators(t)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Vl(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const t=this.form.get(e.path);return gs(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){Tp(e.control||null,e,!1),function K_(o,r){const e=o.indexOf(r);e>-1&&o.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,t){this.form.get(e.path).setValue(t)}onSubmit(e){return this.submitted=!0,Dp(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const t=e.control,s=this.form.get(e.path);t!==s&&(Tp(t||null,e),(o=>o instanceof X_)(s)&&(gs(s,e),e.control=s))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const t=this.form.get(e.path);DA(t,e),t.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const t=this.form.get(e.path);t&&function fE(o,r){return Vl(o,r)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Q_(this.form,this),this._oldForm&&Vl(this._oldForm,this)}_checkFormPresent(){}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(ei,10),_.Y36(Xa,10))},o.\u0275dir=_.lG2({type:o,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&_.NdJ("submit",function(u){return t.onSubmit(u)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[_._Bn([AE]),_.qOj,_.TTD]}),o})(),B=(()=>{class o{constructor(){this._validator=Sd}ngOnChanges(e){if(this.inputName in e){const t=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(t),this._validator=this._enabled?this.createValidator(t):Sd,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275dir=_.lG2({type:o,features:[_.TTD]}),o})();const Me={provide:ei,useExisting:(0,_.Gpc)(()=>Ue),multi:!0};let Ue=(()=>{class o extends B{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=_.D6c,this.createValidator=e=>_A}enabled(e){return e}}return o.\u0275fac=function(){let r;return function(t){return(r||(r=_.n5z(o)))(t||o)}}(),o.\u0275dir=_.lG2({type:o,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&_.uIk("required",t._enabled?"":null)},inputs:{required:"required"},features:[_._Bn([Me]),_.qOj]}),o})(),Ud=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[Od]}),o})(),jl=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[Ud]}),o})(),no=(()=>{class o{static withConfig(e){return{ngModule:o,providers:[{provide:Ip,useValue:e.warnOnNgModelWithFormControl}]}}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[Ud]}),o})();const DE=new _.OlP("MAT_INPUT_VALUE_ACCESSOR"),oH=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let sH=0;const lH=Ku(class{constructor(o,r,e,t){this._defaultErrorStateMatcher=o,this._parentForm=r,this._parentFormGroup=e,this.ngControl=t,this.stateChanges=new Ee.x}});let NA=(()=>{class o extends lH{constructor(e,t,s,u,d,l,n,i,a,c){super(l,u,d,s),this._elementRef=e,this._platform=t,this._autofillMonitor=i,this._formField=c,this._uid="mat-input-"+sH++,this.focused=!1,this.stateChanges=new Ee.x,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(m=>Ru().has(m)),this._iOSKeyupListener=m=>{const p=m.target;!p.value&&0===p.selectionStart&&0===p.selectionEnd&&(p.setSelectionRange(1,1),p.setSelectionRange(0,0))};const h=this._elementRef.nativeElement,f=h.nodeName.toLowerCase();this._inputValueAccessor=n||h,this._previousNativeValue=this.value,this.id=this.id,t.IOS&&a.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===f,this._isTextarea="textarea"===f,this._isInFormField=!!c,this._isNativeSelect&&(this.controlType=h.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=ut(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(ua.required)??!1}set required(e){this._required=ut(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&Ru().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=ut(e)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){const e=this._formField,t=e&&"legacy"===e.appearance&&!e._hasLabel?.()?null:this.placeholder;if(t!==this._previousPlaceholder){const s=this._elementRef.nativeElement;this._previousPlaceholder=t,t?s.setAttribute("placeholder",t):s.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){oH.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(_.SBq),_.Y36(gi),_.Y36(ti,10),_.Y36(to,8),_.Y36(Ld,8),_.Y36(Oc),_.Y36(DE,10),_.Y36(M_),_.Y36(_.R0b),_.Y36(nd,8))},o.\u0275dir=_.lG2({type:o,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(e,t){1&e&&_.NdJ("focus",function(){return t._focusChanged(!0)})("blur",function(){return t._focusChanged(!1)})("input",function(){return t._onInput()}),2&e&&(_.Ikx("disabled",t.disabled)("required",t.required),_.uIk("id",t.id)("data-placeholder",t.placeholder)("name",t.name||null)("readonly",t.readonly&&!t._isNativeSelect||null)("aria-invalid",t.empty&&t.required?null:t.errorState)("aria-required",t.required),_.ekj("mat-input-server",t._isServer)("mat-native-select-inline",t._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[_._Bn([{provide:ed,useExisting:o}]),_.qOj,_.TTD]}),o})(),sb=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({providers:[Oc],imports:[cp,Hr,Se,cp,Hr]}),o})();function cH(o,r){1&o&&_._UZ(0,"mat-spinner",7)}function dH(o,r){if(1&o){const e=_.EpF();_.TgZ(0,"div",8)(1,"perun-web-apps-alert",9),_._uU(2),_.ALo(3,"translate"),_.qZA(),_.TgZ(4,"mat-form-field",10)(5,"textarea",11),_.NdJ("ngModelChange",function(s){_.CHM(e);const u=_.oxw();return _.KtG(u.message=s)}),_.ALo(6,"translate"),_.qZA()()()}if(2&o){const e=_.oxw();_.xp6(2),_.hij(" ",_.lcZ(3,3,"SHARED_LIB.CONSOLIDATOR.SEND_MESSAGE_TO_SUPPORT_DIALOG.SUBTITLE")," "),_.xp6(3),_.s9C("placeholder",_.lcZ(6,5,"SHARED_LIB.CONSOLIDATOR.SEND_MESSAGE_TO_SUPPORT_DIALOG.PLACEHOLDER")),_.Q6J("ngModel",e.message)}}let uH=(()=>{class o{constructor(e,t,s,u,d,l){this.dialogRef=e,this.storeService=t,this.authzService=s,this.oAuthStorage=u,this.rtMessages=d,this.userFullNamePipe=l,this.loading=!1,this.message="Hello, during the linking of my accounts I encountered a situation where the system cannot automatically link these accounts. Therefore I want to ask you for help with linking my accounts."}onCancel(){this.dialogRef.close(null)}onSend(){this.loading=!0;const e=this.storeService.getPerunPrincipal().user,t=location.search.substring(1);this.oAuthStorage.setItem("access_token",gd("formerToken",t)),this.authzService.getPerunPrincipal().subscribe(s=>{this.rtMessages.sentMessageToRTWithQueue("perun","Account linking: The accounts could not be automatically linked.",this.getFullEmailBody(e,s.user)).subscribe({next:()=>{this.loading=!1,this.dialogRef.close(!0)},error:()=>{this.loading=!1,this.dialogRef.close(!1)}})})}getFullEmailBody(e,t){const s=this.storeService.getProperty("config");let u=this.message+"\n________________________________________________________________________\n\nAccount linking: The accounts could not be automatically linked.\nThe user proved his identities, but they were connected to different users.\nBy this message the user is asking for help with identity consolidation.\n";return u=u.concat("\n\n"),u=u.concat("Information about users: \n\n"),u=u.concat("First user: \nid="+t.id.toString()+"\nName: "+this.userFullNamePipe.transform(t)+"\n\n"),u=u.concat("Second user: \nid="+e.id.toString()+"\nName: "+this.userFullNamePipe.transform(e)+"\n\n"),u=u.concat("Perun instance: "+s+"\n"),u=u.concat("Sended from new Consolidator Gui, version: ",E(4147).i8),u.split("\n").join("\n ")}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(Vn),_.Y36(On),_.Y36(Al),_.Y36(Qr.Hy),_.Y36(_d),_.Y36(vd))},o.\u0275cmp=_.Xpm({type:o,selectors:[["perun-web-apps-send-message-dialog"]],decls:14,vars:11,consts:[["mat-dialog-title",""],[1,"page-subtitle"],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],["alert_type","info"],[1,"w-100"],["matInput","","cdkTextareaAutosize","",3,"ngModel","placeholder","ngModelChange"]],template:function(e,t){1&e&&(_.TgZ(0,"div")(1,"div",0)(2,"h1",1),_._uU(3),_.ALo(4,"translate"),_.qZA()(),_.YNc(5,cH,1,0,"mat-spinner",2),_.YNc(6,dH,7,7,"div",3),_.TgZ(7,"div",4)(8,"button",5),_.NdJ("click",function(){return t.onCancel()}),_._uU(9),_.ALo(10,"translate"),_.qZA(),_.TgZ(11,"button",6),_.NdJ("click",function(){return t.onSend()}),_._uU(12),_.ALo(13,"translate"),_.qZA()()()),2&e&&(_.xp6(3),_.hij(" ",_.lcZ(4,5,"SHARED_LIB.CONSOLIDATOR.SEND_MESSAGE_TO_SUPPORT_DIALOG.TITLE")," "),_.xp6(2),_.Q6J("ngIf",t.loading),_.xp6(1),_.Q6J("ngIf",!t.loading),_.xp6(3),_.hij(" ",_.lcZ(10,7,"SHARED_LIB.CONSOLIDATOR.SEND_MESSAGE_TO_SUPPORT_DIALOG.CANCEL")," "),_.xp6(3),_.hij(" ",_.lcZ(13,9,"SHARED_LIB.CONSOLIDATOR.SEND_MESSAGE_TO_SUPPORT_DIALOG.SUBMIT")," "))},dependencies:[M.O5,Zr,la,dr,ca,Ln,pl,lp,NA,Ml,Md,Bd,wd,Hi]}),o})();function hH(o,r){if(1&o&&(_.TgZ(0,"mat-icon",6),_._uU(1),_.qZA()),2&o){const e=_.oxw();_.xp6(1),_.hij(" ",e.icon," ")}}function pH(o,r){1&o&&_._UZ(0,"mat-icon",7)}function fH(o,r){if(1&o&&(_.TgZ(0,"span"),_._uU(1),_.qZA()),2&o){const e=_.oxw(2);_.xp6(1),_.hij(" ",e.supportMail," ")}}function mH(o,r){if(1&o&&(_.TgZ(0,"span"),_._uU(1),_.qZA()),2&o){const e=_.oxw(2);_.xp6(1),_.hij(" ",e.userMail," ")}}function gH(o,r){if(1&o&&(_.TgZ(0,"h5"),_._uU(1),_.ALo(2,"translate"),_.YNc(3,fH,2,1,"span",5),_.YNc(4,mH,2,1,"span",5),_.qZA()),2&o){const e=_.oxw();_.xp6(1),_.hij(" ",_.lcZ(2,3,"SHARED_LIB.CONSOLIDATOR."+e.result+"_SUBTITLE")," "),_.xp6(2),_.Q6J("ngIf","UNKNOWN_ERROR"===e.result),_.xp6(1),_.Q6J("ngIf","MESSAGE_SENT_TO_SUPPORT"===e.result)}}function _H(o,r){if(1&o&&(_.TgZ(0,"h5"),_._uU(1),_.ALo(2,"translate"),_.ALo(3,"translate"),_.qZA()),2&o){const e=_.oxw();_.xp6(1),_.lnq(" ",_.lcZ(2,3,"SHARED_LIB.CONSOLIDATOR.OK_SUBTITLE_WITH_MAIL_1")," ",e.userMail," ",_.lcZ(3,5,"SHARED_LIB.CONSOLIDATOR.OK_SUBTITLE_WITH_MAIL_2")," ")}}const bH=function(o){return{"background-color":o}},CH=["*"];let wH=(()=>{class o{constructor(e){this.store=e,this.supportMail=this.store.getProperty("support_mail"),this.userMail=this.store.getPerunPrincipal().additionalInformations.mail,this.color="",this.icon="",this.greenColor="#e0ffd4",this.blueColor="#d4f2ff",this.redColor="#ffd4d4",this.warningIcon="warning",this.infoIcon="info",this.messageSent="mark_email_read"}ngOnChanges(){switch(this.result){case"OK":this.color=this.greenColor;break;case"IDENTITY_REGISTERED_ALREADY":case"UNKNOWN_ERROR":this.color=this.redColor,this.icon=this.warningIcon;break;case"IDENTITY_IDENTICAL":case"IDENTITY_LINKED":case"IDENTITY_UNKNOWN":this.color=this.blueColor,this.icon=this.infoIcon;break;case"MESSAGE_SENT_TO_SUPPORT":this.color=this.blueColor,this.icon=this.messageSent;break;case"TOKEN_EXPIRED":this.color=this.blueColor,this.icon=this.warningIcon}}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(On))},o.\u0275cmp=_.Xpm({type:o,selectors:[["perun-web-apps-consolidation-result"]],inputs:{result:"result"},features:[_.TTD],ngContentSelectors:CH,decls:12,vars:10,consts:[[1,"p-4","m-3",3,"ngStyle"],[1,"d-flex","pb-5","flex-row"],["class","mat-icon-war mr-4",4,"ngIf"],["svgIcon","perun-verify-grey","class","perun-icon perun-icon-detail",4,"ngIf"],[1,"ml-5"],[4,"ngIf"],[1,"mat-icon-war","mr-4"],["svgIcon","perun-verify-grey",1,"perun-icon","perun-icon-detail"]],template:function(e,t){1&e&&(_.F$t(),_.TgZ(0,"div",0)(1,"div",1)(2,"div"),_.YNc(3,hH,2,1,"mat-icon",2),_.YNc(4,pH,1,0,"mat-icon",3),_.qZA(),_.TgZ(5,"div",4)(6,"h1"),_._uU(7),_.ALo(8,"translate"),_.qZA(),_.YNc(9,gH,5,5,"h5",5),_.YNc(10,_H,4,7,"h5",5),_.qZA()(),_.Hsn(11),_.qZA()),2&e&&(_.Q6J("ngStyle",_.VKq(8,bH,t.color)),_.xp6(3),_.Q6J("ngIf","OK"!==t.result),_.xp6(1),_.Q6J("ngIf","OK"===t.result),_.xp6(3),_.hij(" ",_.lcZ(8,6,"SHARED_LIB.CONSOLIDATOR."+t.result+"_TITLE")," "),_.xp6(2),_.Q6J("ngIf",!(t.userMail&&"OK"===t.result)),_.xp6(1),_.Q6J("ngIf",t.userMail&&"OK"===t.result))},dependencies:[M.O5,M.PC,Ft,Hi],styles:[".mat-icon-war[_ngcontent-%COMP%]{font-size:82px}.perun-icon-detail[_ngcontent-%COMP%]{transform:scale(4.5);margin-left:3rem;margin-top:1.5rem;color:#000}"]}),o})();function yH(o,r){if(1&o){const e=_.EpF();_.TgZ(0,"button",6),_.NdJ("click",function(){_.CHM(e);const s=_.oxw();return _.KtG(s.loginAgain())}),_._uU(1),_.ALo(2,"translate"),_.qZA()}2&o&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"SHOW_RESULT.LOG_OTHER_BUTTON")," "))}function vH(o,r){if(1&o){const e=_.EpF();_.TgZ(0,"button",6),_.NdJ("click",function(){_.CHM(e);const s=_.oxw();return _.KtG(s.sendMessageToSupport())}),_._uU(1),_.ALo(2,"translate"),_.qZA()}2&o&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"SHOW_RESULT.CONTACT_SUPPORT_BUTTON")," "))}function AH(o,r){1&o&&(_.TgZ(0,"div",7),_._UZ(1,"mat-spinner",8),_.qZA())}const xH=[{path:"",redirectTo:"result",pathMatch:"full"},{path:"result/:result",component:(()=>{class o{constructor(e,t,s){this.route=e,this.dialog=t,this.oauthService=s,this.linkerResult="UNKNOWN_ERROR",this.loading=!1,this.openerWindow=window.opener}ngOnInit(){this.route.params.subscribe(e=>{this.linkerResult=e.result,this.openerWindow.postMessage(this.linkerResult,"*")})}closeWindow(){window.close()}loginAgain(){let e=location.search.substring(1);if("IDENTITY_UNKNOWN"===this.linkerResult){let t=0,s="yes";for(;""!==s;)t++,s=gd("formerToken"+t.toString(),e);e+="&formerToken"+t.toString()+"="+this.oauthService.getAccessToken()}sessionStorage.setItem("auth:queryParams",e),this.oauthService.initLoginFlow()}sendMessageToSupport(){const e=ur();e.width="1000px",this.dialog.open(uH,e).afterClosed().subscribe(s=>{!0===s?(this.linkerResult="MESSAGE_SENT_TO_SUPPORT",this.openerWindow.postMessage(this.linkerResult,"*")):!1===s&&(this.linkerResult="UNKNOWN_ERROR",this.openerWindow.postMessage(this.linkerResult,"*"))})}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(qr),_.Y36(cr),_.Y36(Qr.Ct))},o.\u0275cmp=_.Xpm({type:o,selectors:[["perun-web-apps-show-result"]],decls:9,vars:7,consts:[[1,"position-relative"],[3,"result"],[1,"d-flex","mt-5"],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent","class","ml-2",3,"click",4,"ngIf"],["class","spinner-container",4,"ngIf"],["mat-flat-button","","color","accent",1,"ml-2",3,"click"],[1,"spinner-container"],[1,"ml-auto","mr-auto"]],template:function(e,t){1&e&&(_.TgZ(0,"div",0)(1,"perun-web-apps-consolidation-result",1)(2,"div",2)(3,"button",3),_.NdJ("click",function(){return t.closeWindow()}),_._uU(4),_.ALo(5,"translate"),_.qZA(),_.YNc(6,yH,3,3,"button",4),_.YNc(7,vH,3,3,"button",4),_.qZA()(),_.YNc(8,AH,2,0,"div",5),_.qZA()),2&e&&(_.xp6(1),_.Q6J("result",t.linkerResult),_.xp6(3),_.hij(" ",_.lcZ(5,5,"SHOW_RESULT.CLOSE_WINDOW_BUTTON")," "),_.xp6(2),_.Q6J("ngIf","IDENTITY_IDENTICAL"===t.linkerResult||"IDENTITY_UNKNOWN"===t.linkerResult||"IDENTITY_LINKED"===t.linkerResult),_.xp6(1),_.Q6J("ngIf","IDENTITY_REGISTERED_ALREADY"===t.linkerResult),_.xp6(1),_.Q6J("ngIf",t.loading))},dependencies:[M.O5,Zr,Ln,wH,Hi],styles:[".spinner-container[_ngcontent-%COMP%]{position:absolute;top:0;left:1rem;bottom:0;right:1rem;background:rgba(0,0,0,.15);z-index:1;display:flex;align-items:center;justify-content:center}"]}),o})()}];let SH=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[Bo.forRoot(xH),Bo]}),o})();class TH{constructor(r,e="/assets/i18n/",t=".json"){this.http=r,this.prefix=e,this.suffix=t}getTranslation(r){return this.http.get(`${this.prefix}${r}${this.suffix}`)}}let EH=(()=>{class o{constructor(e,t,s,u,d){this.http=e,this.storeService=t,this.authzSevice=s,this.titleService=u,this.utilsService=d}initializeColors(e,t){return new Promise(s=>{t.forEach(u=>{const d=this.storeService.getProperty("theme")[u.configValue];document.documentElement.style.setProperty(u.cssVariable,d)}),e.forEach(u=>{const d=this.storeService.getProperty("theme")[u.configValue];document.documentElement.style.setProperty(u.cssVariable,d),this.setEntityTheme(u.entity,d)}),s()})}setEntityTheme(e,t){const s=function MH(o){return[An(tinycolor(o).lighten(52),"50"),An(tinycolor(o).lighten(37),"100"),An(tinycolor(o).lighten(26),"200"),An(tinycolor(o).lighten(12),"300"),An(tinycolor(o).lighten(6),"400"),An(tinycolor(o),"500"),An(tinycolor(o).darken(6),"600"),An(tinycolor(o).darken(12),"700"),An(tinycolor(o).darken(18),"800"),An(tinycolor(o).darken(24),"900"),An(tinycolor(o).lighten(50).saturate(30),"A100"),An(tinycolor(o).lighten(30).saturate(30),"A200"),An(tinycolor(o).lighten(10).saturate(15),"A400"),An(tinycolor(o).lighten(5).saturate(5),"A700")]}(t);for(const u of s){const n=`--${e}-theme-primary-contrast-${u.name}`,i=u.darkContrast?"30,30,30":"255,255,255";document.documentElement.style.setProperty(`--${e}-theme-primary-${u.name}`,`${u.red},${u.green},${u.blue}`),document.documentElement.style.setProperty(n,i)}}loadAppDefaultConfig(){return new Promise(e=>{this.http.get("/assets/config/defaultConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{this.storeService.setDefaultConfig(t),e()})})}loadAppInstanceConfig(){return new Promise(e=>{this.http.get("/assets/config/instanceConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{this.storeService.setInstanceConfig(t);const s=document.location.hostname;t?.brandings?.[s]&&this.storeService.setBanding(s),e()},()=>{e()})})}getNoCacheHeaders(){return new v.WM({CacheControl:"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"})}setInstanceFavicon(){return new Promise(e=>{const t=document.querySelector("link[rel*='icon']")||document.createElement("link");t.type="image/x-icon",t.rel="shortcut icon",t.href=this.storeService.getProperty("instance_favicon")?"./assets/config/instanceFavicon.ico":"./assets/img/perun.ico",document.getElementsByTagName("head")[0].appendChild(t),e()})}setApiUrl(){return new Promise(e=>{let t=this.storeService.getProperty("api_url");("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal")||this.storeService.getProperty("auto_service_access_redirect"))&&(t=t.replace("oauth","ba")),this.authzSevice.configuration.basePath=t,this.titleService.setTitle(this.storeService.getProperty("document_title").en),e()})}loadAppsConfig(){return new Promise((e,t)=>{this.utilsService.getAppsConfig().subscribe(s=>{this.storeService.setAppsConfig(s),e()},s=>t(s))})}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(v.eN),_.LFG(On),_.LFG(Al),_.LFG(X),_.LFG(r_))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();function An(o,r){const e=tinycolor(o),t=e.toRgb();return{name:r,hex:e.toHexString(),darkContrast:e.isLight(),red:t.r,green:t.g,blue:t.b}}let DH=(()=>{class o{constructor(e,t){this.registrarService=e,this.router=t}consolidate(){const e=location.search.substring(1),t=gd("formerToken",e);return new Promise(s=>{this.registrarService.consolidate({accessToken:t}).subscribe(()=>{this.consolidatePreviousLogins(1,e).then(()=>{this.router.navigate(["/result","OK"],{queryParamsHandling:"preserve"}),s()})},u=>{let l="UNKNOWN_ERROR";switch(u.name){case"InvalidTokenException":case"ExpiredTokenException":l="TOKEN_EXPIRED";break;case"IdentityUnknownException":l="IDENTITY_UNKNOWN";break;case"IdentityAlreadyInUseException":l="IDENTITY_REGISTERED_ALREADY";break;case"IdentityIsSameException":l="IDENTITY_IDENTICAL";break;case"IdentitiesAlreadyJoinedException":l="IDENTITY_LINKED"}this.router.navigate(["/result",l],{queryParamsHandling:"merge"}),s()})})}consolidatePreviousLogins(e,t){return new Promise(s=>{const u=gd("formerToken"+e.toString(),t);null==u||""===u?s():this.registrarService.consolidate({accessToken:u}).subscribe(()=>{this.consolidatePreviousLogins(e+1,t).then(()=>s())},()=>{this.consolidatePreviousLogins(e+1,t).then(()=>s())})})}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(i_),_.LFG(Kt))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),HH=(()=>{class o{constructor(e,t,s,u,d){this.initAuthService=e,this.appConfigService=t,this.location=s,this.linkIdentitiesService=u,this.mfaHandlerService=d}loadConfigs(){return this.appConfigService.loadAppDefaultConfig().then(()=>this.appConfigService.loadAppInstanceConfig()).then(()=>this.appConfigService.setApiUrl()).then(()=>this.initAuthService.verifyAuth()).catch(e=>{throw this.mfaHandlerService.catchNoMfaTokenError(e?.params?.error),console.error(e),this.location.go("/"),location.reload(),e}).then(e=>e?(this.mfaHandlerService.closeMfaWindow(),this.initAuthService.simpleLoadPrincipal().then(()=>this.linkIdentitiesService.consolidate())):this.initAuthService.handleAuthStart())}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(__),_.LFG(EH),_.LFG(M.Ye),_.LFG(DH),_.LFG(da))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const RH=new _.OlP("perun-api-service");let HE=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[Se,Se]}),o})(),IE=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({}),o})(),lb=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[Cn,Se,Zs,IE,Se,IE]}),o})(),qA=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[Se,Se]}),o})(),GH=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({}),o})(),BE=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[M.ez,Se,GH,ia]}),o})(),OE=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[jc,Se,jc,Se]}),o})(),QH=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[Go]}),o})(),zA=(()=>{class o{constructor(){this.changes=new Ee.x,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const aR={provide:zA,deps:[[new _.FiY,new _.tp0,zA]],useFactory:function rR(o){return o||new zA}};let UE=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({providers:[aR,Oc],imports:[Se,M.ez,ia,Tr,QH,aa,Cn,Se]}),o})(),CR=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[Wa]}),o})(),bb=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[CR,Se,Se]}),o})(),jR=(()=>{class o{constructor(){this.changes=new Ee.x,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 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(e,t){return`${e} \u2013 ${t}`}formatYearRangeLabel(e,t){return`${e} to ${t}`}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const YR={provide:new _.OlP("mat-datepicker-scroll-strategy"),deps:[rr],useFactory:function QR(o){return()=>o.scrollStrategies.reposition()}};let t0=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({providers:[jR,YR],imports:[M.ez,Tr,Yo,Ua,ia,Se,In]}),o})(),tM=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[M.ez,Se,In,In,Se]}),o})(),nM=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[jc,Cn,Se,th,M.ez,jc,Se,th,qA]}),o})(),rM=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[Se,Se]}),o})(),n0=(()=>{class o{constructor(){this.changes=new Ee.x}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const mP={provide:n0,deps:[[new _.FiY,new _.tp0,n0]],useFactory:function fP(o){return o||new n0}};let r0=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({providers:[mP],imports:[M.ez,Se]}),o})(),wP=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[M.ez,Se,ia,Cn,Zs,Ua,Se]}),o})(),aM=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({}),o})(),oM=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[aM,Cn,Se,Zs,aM,Se]}),o})();const dM=new _.OlP("mat-chips-default-options");let o0=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({providers:[Oc,{provide:dM,useValue:{separatorKeyCodes:[13]}}],imports:[Se]}),o})(),s0=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[M.ez,HE,qA,BE,Tr,OE,lb,aa,bb,yl,Ad,Hr,sb,Wa,jl,no,UE,t0,Uw,tM,nM,gl,rM,r0,$a,os,fl,Cn,bb,oM,o0,HE,qA,BE,Tr,OE,lb,aa,bb,yl,Ad,Hr,sb,Wa,jl,no,UE,t0,Uw,tM,nM,gl,rM,r0,$a,os,fl,Cn,wP,oM,o0]}),o})(),l0=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[aa,M.ez]}),o})();function c0(o,r,e){for(let t in r)if(r.hasOwnProperty(t)){const s=r[t];s?o.setProperty(t,s,e?.has(t)?"important":""):o.removeProperty(t)}return o}function Wd(o,r){const e=r?"":"none";c0(o.style,{"touch-action":r?"":"none","-webkit-user-drag":r?"":"none","-webkit-tap-highlight-color":r?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function uM(o,r,e){c0(o.style,{position:r?"":"fixed",top:r?"":"0",opacity:r?"":"0",left:r?"":"-999em"},e)}function vb(o,r){return r&&"none"!=r?o+" "+r:o}function hM(o){const r=o.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(o)*r}function d0(o,r){return o.getPropertyValue(r).split(",").map(t=>t.trim())}function u0(o){const r=o.getBoundingClientRect();return{top:r.top,right:r.right,bottom:r.bottom,left:r.left,width:r.width,height:r.height,x:r.x,y:r.y}}function h0(o,r,e){const{top:t,bottom:s,left:u,right:d}=o;return e>=t&&e<=s&&r>=u&&r<=d}function jp(o,r,e){o.top+=r,o.bottom=o.top+o.height,o.left+=e,o.right=o.left+o.width}function pM(o,r,e,t){const{top:s,right:u,bottom:d,left:l,width:n,height:i}=o,a=n*r,c=i*r;return t>s-c&&tl-a&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:u0(e)})})}handleScroll(r){const e=mn(r),t=this.positions.get(e);if(!t)return null;const s=t.scrollPosition;let u,d;if(e===this._document){const i=this.getViewportScrollPosition();u=i.top,d=i.left}else u=e.scrollTop,d=e.scrollLeft;const l=s.top-u,n=s.left-d;return this.positions.forEach((i,a)=>{i.clientRect&&e!==a&&e.contains(a)&&jp(i.clientRect,l,n)}),s.top=u,s.left=d,{top:l,left:n}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function mM(o){const r=o.cloneNode(!0),e=r.querySelectorAll("[id]"),t=o.nodeName.toLowerCase();r.removeAttribute("id");for(let s=0;s{if(this.beforeStarted.next(),this._handles.length){const n=this._getTargetHandle(l);n&&!this._disabledHandles.has(n)&&!this.disabled&&this._initializeDragSequence(n,l)}else this.disabled||this._initializeDragSequence(this._rootElement,l)},this._pointerMove=l=>{const n=this._getPointerPositionOnPage(l);if(!this._hasStartedDragging){if(Math.abs(n.x-this._pickupPositionOnPage.x)+Math.abs(n.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const f=Date.now()>=this._dragStartTime+this._getDragStartDelay(l),m=this._dropContainer;if(!f)return void this._endDragSequence(l);(!m||!m.isDragging()&&!m.isReceiving())&&(l.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(l)))}return}l.preventDefault();const i=this._getConstrainedPointerPosition(n);if(this._hasMoved=!0,this._lastKnownPointerPosition=n,this._updatePointerDirectionDelta(i),this._dropContainer)this._updateActiveDropContainer(i,n);else{const a=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,c=this._activeTransform;c.x=i.x-a.x+this._passiveTransform.x,c.y=i.y-a.y+this._passiveTransform.y,this._applyRootElementTransform(c.x,c.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:i,event:l,distance:this._getDragDistance(i),delta:this._pointerDirectionDelta})})},this._pointerUp=l=>{this._endDragSequence(l)},this._nativeDragStart=l=>{if(this._handles.length){const n=this._getTargetHandle(l);n&&!this._disabledHandles.has(n)&&!this.disabled&&l.preventDefault()}else this.disabled||l.preventDefault()},this.withRootElement(r).withParent(e.parentDragRef||null),this._parentPositions=new fM(t),d.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(r){const e=ut(r);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(t=>Wd(t,e)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(r){this._handles=r.map(t=>Zt(t)),this._handles.forEach(t=>Wd(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(r){return this._previewTemplate=r,this}withPlaceholderTemplate(r){return this._placeholderTemplate=r,this}withRootElement(r){const e=Zt(r);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,Ab),e.addEventListener("touchstart",this._pointerDown,CM),e.addEventListener("dragstart",this._nativeDragStart,Ab)}),this._initialTransform=void 0,this._rootElement=e),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(r){return this._boundaryElement=r?Zt(r):null,this._resizeSubscription.unsubscribe(),r&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(r){return this._parentDragRef=r,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),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=this._parentDragRef=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(r){!this._disabledHandles.has(r)&&this._handles.indexOf(r)>-1&&(this._disabledHandles.add(r),Wd(r,!0))}enableHandle(r){this._disabledHandles.has(r)&&(this._disabledHandles.delete(r),Wd(r,this.disabled))}withDirection(r){return this._direction=r,this}_withDropContainer(r){this._dropContainer=r}getFreeDragPosition(){const r=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:r.x,y:r.y}}setFreeDragPosition(r){return this._activeTransform={x:0,y:0},this._passiveTransform.x=r.x,this._passiveTransform.y=r.y,this._dropContainer||this._applyRootElementTransform(r.x,r.y),this}withPreviewContainer(r){return this._previewContainer=r,this}_sortFromLastPointerPosition(){const r=this._lastKnownPointerPosition;r&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(r),r)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview?.remove(),this._previewRef?.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(r){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:r}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(r),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(r);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e,event:r})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(r){Fp(r)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const t=this._rootElement,s=t.parentNode,u=this._placeholder=this._createPlaceholderElement(),d=this._anchor=this._anchor||this._document.createComment(""),l=this._getShadowRoot();s.insertBefore(d,t),this._initialTransform=t.style.transform||"",this._preview=this._createPreviewElement(),uM(t,!1,p0),this._document.body.appendChild(s.replaceChild(u,t)),this._getPreviewInsertionPoint(s,l).appendChild(this._preview),this.started.next({source:this,event:r}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this,event:r}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(r,e){this._parentDragRef&&e.stopPropagation();const t=this.isDragging(),s=Fp(e),u=!s&&0!==e.button,d=this._rootElement,l=mn(e),n=!s&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),i=s?qo(e):mm(e);if(l&&l.draggable&&"mousedown"===e.type&&e.preventDefault(),t||u||n||i)return;if(this._handles.length){const h=d.style;this._rootElementTapHighlight=h.webkitTapHighlightColor||"",h.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(h=>this._updateOnScroll(h)),this._boundaryElement&&(this._boundaryRect=u0(this._boundaryElement));const a=this._previewTemplate;this._pickupPositionInElement=a&&a.template&&!a.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,r,e);const c=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:c.x,y:c.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(r){uM(this._rootElement,!0,p0),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,t=e.getItemIndex(this),s=this._getPointerPositionOnPage(r),u=this._getDragDistance(s),d=e._isOverContainer(s.x,s.y);this.ended.next({source:this,distance:u,dropPoint:s,event:r}),this.dropped.next({item:this,currentIndex:t,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:d,distance:u,dropPoint:s,event:r}),e.drop(this,t,this._initialIndex,this._initialContainer,d,u,s),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:r,y:e},{x:t,y:s}){let u=this._initialContainer._getSiblingContainerFromPosition(this,r,e);!u&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(r,e)&&(u=this._initialContainer),u&&u!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=u,this._dropContainer.enter(this,r,e,u===this._initialContainer&&u.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:u,currentIndex:u.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(t,s),this._dropContainer._sortItem(this,r,e,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(r,e):this._applyPreviewTransform(r-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const r=this._previewTemplate,e=this.previewClass,t=r?r.template:null;let s;if(t&&r){const u=r.matchSize?this._initialClientRect:null,d=r.viewContainer.createEmbeddedView(t,r.context);d.detectChanges(),s=yM(d,this._document),this._previewRef=d,r.matchSize?vM(s,u):s.style.transform=xb(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else s=mM(this._rootElement),vM(s,this._initialClientRect),this._initialTransform&&(s.style.transform=this._initialTransform);return c0(s.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},p0),Wd(s,!1),s.classList.add("cdk-drag-preview"),s.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(u=>s.classList.add(u)):s.classList.add(e)),s}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const r=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(r.left,r.top);const e=function WP(o){const r=getComputedStyle(o),e=d0(r,"transition-property"),t=e.find(l=>"transform"===l||"all"===l);if(!t)return 0;const s=e.indexOf(t),u=d0(r,"transition-duration"),d=d0(r,"transition-delay");return hM(u[s])+hM(d[s])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{const s=d=>{(!d||mn(d)===this._preview&&"transform"===d.propertyName)&&(this._preview?.removeEventListener("transitionend",s),t(),clearTimeout(u))},u=setTimeout(s,1.5*e);this._preview.addEventListener("transitionend",s)}))}_createPlaceholderElement(){const r=this._placeholderTemplate,e=r?r.template:null;let t;return e?(this._placeholderRef=r.viewContainer.createEmbeddedView(e,r.context),this._placeholderRef.detectChanges(),t=yM(this._placeholderRef,this._document)):t=mM(this._rootElement),t.style.pointerEvents="none",t.classList.add("cdk-drag-placeholder"),t}_getPointerPositionInElement(r,e,t){const s=e===this._rootElement?null:e,u=s?s.getBoundingClientRect():r,d=Fp(t)?t.targetTouches[0]:t,l=this._getViewportScrollPosition();return{x:u.left-r.left+(d.pageX-u.left-l.left),y:u.top-r.top+(d.pageY-u.top-l.top)}}_getPointerPositionOnPage(r){const e=this._getViewportScrollPosition(),t=Fp(r)?r.touches[0]||r.changedTouches[0]||{pageX:0,pageY:0}:r,s=t.pageX-e.left,u=t.pageY-e.top;if(this._ownerSVGElement){const d=this._ownerSVGElement.getScreenCTM();if(d){const l=this._ownerSVGElement.createSVGPoint();return l.x=s,l.y=u,l.matrixTransform(d.inverse())}}return{x:s,y:u}}_getConstrainedPointerPosition(r){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:t,y:s}=this.constrainPosition?this.constrainPosition(r,this,this._initialClientRect,this._pickupPositionInElement):r;if("x"===this.lockAxis||"x"===e?s=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===e)&&(t=this._pickupPositionOnPage.x),this._boundaryRect){const{x:u,y:d}=this._pickupPositionInElement,l=this._boundaryRect,{width:n,height:i}=this._getPreviewRect(),a=l.top+d,c=l.bottom-(i-d);t=wM(t,l.left+u,l.right-(n-u)),s=wM(s,a,c)}return{x:t,y:s}}_updatePointerDirectionDelta(r){const{x:e,y:t}=r,s=this._pointerDirectionDelta,u=this._pointerPositionAtLastDirectionChange,d=Math.abs(e-u.x),l=Math.abs(t-u.y);return d>this._config.pointerDirectionChangeThreshold&&(s.x=e>u.x?1:-1,u.x=e),l>this._config.pointerDirectionChangeThreshold&&(s.y=t>u.y?1:-1,u.y=t),s}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const r=this._handles.length>0||!this.isDragging();r!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=r,Wd(this._rootElement,r))}_removeRootElementListeners(r){r.removeEventListener("mousedown",this._pointerDown,Ab),r.removeEventListener("touchstart",this._pointerDown,CM),r.removeEventListener("dragstart",this._nativeDragStart,Ab)}_applyRootElementTransform(r,e){const t=xb(r,e),s=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=s.transform&&"none"!=s.transform?s.transform:""),s.transform=vb(t,this._initialTransform)}_applyPreviewTransform(r,e){const t=this._previewTemplate?.template?void 0:this._initialTransform,s=xb(r,e);this._preview.style.transform=vb(s,t)}_getDragDistance(r){const e=this._pickupPositionOnPage;return e?{x:r.x-e.x,y:r.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:r,y:e}=this._passiveTransform;if(0===r&&0===e||this.isDragging()||!this._boundaryElement)return;const t=this._rootElement.getBoundingClientRect(),s=this._boundaryElement.getBoundingClientRect();if(0===s.width&&0===s.height||0===t.width&&0===t.height)return;const u=s.left-t.left,d=t.right-s.right,l=s.top-t.top,n=t.bottom-s.bottom;s.width>t.width?(u>0&&(r+=u),d>0&&(r-=d)):r=0,s.height>t.height?(l>0&&(e+=l),n>0&&(e-=n)):e=0,(r!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:r})}_getDragStartDelay(r){const e=this.dragStartDelay;return"number"==typeof e?e:Fp(r)?e.touch:e?e.mouse:0}_updateOnScroll(r){const e=this._parentPositions.handleScroll(r);if(e){const t=mn(r);this._boundaryRect&&t!==this._boundaryElement&&t.contains(this._boundaryElement)&&jp(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(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=Yr(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(r,e){const t=this._previewContainer||"global";if("parent"===t)return r;if("global"===t){const s=this._document;return e||s.fullscreenElement||s.webkitFullscreenElement||s.mozFullScreenElement||s.msFullscreenElement||s.body}return Zt(t)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(r){return this._handles.find(e=>r.target&&(r.target===e||e.contains(r.target)))}}function xb(o,r){return`translate3d(${Math.round(o)}px, ${Math.round(r)}px, 0)`}function wM(o,r,e){return Math.max(r,Math.min(e,o))}function Fp(o){return"t"===o.type[0]}function yM(o,r){const e=o.rootNodes;if(1===e.length&&e[0].nodeType===r.ELEMENT_NODE)return e[0];const t=r.createElement("div");return e.forEach(s=>t.appendChild(s)),t}function vM(o,r){o.style.width=`${r.width}px`,o.style.height=`${r.height}px`,o.style.transform=xb(r.left,r.top)}function Up(o,r){return Math.max(0,Math.min(r,o))}class KP{constructor(r,e){this._element=r,this._dragDropRegistry=e,this._itemPositions=[],this.orientation="vertical",this._previousSwap={drag:null,delta:0,overlaps:!1}}start(r){this.withItems(r)}sort(r,e,t,s){const u=this._itemPositions,d=this._getItemIndexFromPointerPosition(r,e,t,s);if(-1===d&&u.length>0)return null;const l="horizontal"===this.orientation,n=u.findIndex(w=>w.drag===r),i=u[d],c=i.clientRect,h=n>d?1:-1,f=this._getItemOffsetPx(u[n].clientRect,c,h),m=this._getSiblingOffsetPx(n,u,h),p=u.slice();return function JP(o,r,e){const t=Up(r,o.length-1),s=Up(e,o.length-1);if(t===s)return;const u=o[t],d=s{if(p[R]===w)return;const J=w.drag===r,Te=J?f:m,nt=J?r.getPlaceholderElement():w.drag.getRootElement();w.offset+=Te,l?(nt.style.transform=vb(`translate3d(${Math.round(w.offset)}px, 0, 0)`,w.initialTransform),jp(w.clientRect,0,Te)):(nt.style.transform=vb(`translate3d(0, ${Math.round(w.offset)}px, 0)`,w.initialTransform),jp(w.clientRect,Te,0))}),this._previousSwap.overlaps=h0(c,e,t),this._previousSwap.drag=i.drag,this._previousSwap.delta=l?s.x:s.y,{previousIndex:n,currentIndex:d}}enter(r,e,t,s){const u=null==s||s<0?this._getItemIndexFromPointerPosition(r,e,t):s,d=this._activeDraggables,l=d.indexOf(r),n=r.getPlaceholderElement();let i=d[u];if(i===r&&(i=d[u+1]),!i&&(null==u||-1===u||u-1&&d.splice(l,1),i&&!this._dragDropRegistry.isDragging(i)){const a=i.getRootElement();a.parentElement.insertBefore(n,a),d.splice(u,0,r)}else Zt(this._element).appendChild(n),d.push(r);n.style.transform="",this._cacheItemPositions()}withItems(r){this._activeDraggables=r.slice(),this._cacheItemPositions()}withSortPredicate(r){this._sortPredicate=r}reset(){this._activeDraggables.forEach(r=>{const e=r.getRootElement();if(e){const t=this._itemPositions.find(s=>s.drag===r)?.initialTransform;e.style.transform=t||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(r){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(t=>t.drag===r)}updateOnScroll(r,e){this._itemPositions.forEach(({clientRect:t})=>{jp(t,r,e)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()})}_cacheItemPositions(){const r="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(e=>{const t=e.getVisibleElement();return{drag:e,offset:0,initialTransform:t.style.transform||"",clientRect:u0(t)}}).sort((e,t)=>r?e.clientRect.left-t.clientRect.left:e.clientRect.top-t.clientRect.top)}_getItemOffsetPx(r,e,t){const s="horizontal"===this.orientation;let u=s?e.left-r.left:e.top-r.top;return-1===t&&(u+=s?e.width-r.width:e.height-r.height),u}_getSiblingOffsetPx(r,e,t){const s="horizontal"===this.orientation,u=e[r].clientRect,d=e[r+-1*t];let l=u[s?"width":"height"]*t;if(d){const n=s?"left":"top",i=s?"right":"bottom";-1===t?l-=d.clientRect[n]-u[i]:l+=u[n]-d.clientRect[i]}return l}_shouldEnterAsFirstChild(r,e){if(!this._activeDraggables.length)return!1;const t=this._itemPositions,s="horizontal"===this.orientation;if(t[0].drag!==this._activeDraggables[0]){const d=t[t.length-1].clientRect;return s?r>=d.right:e>=d.bottom}{const d=t[0].clientRect;return s?r<=d.left:e<=d.top}}_getItemIndexFromPointerPosition(r,e,t,s){const u="horizontal"===this.orientation,d=this._itemPositions.findIndex(({drag:l,clientRect:n})=>{if(l===r)return!1;if(s){const i=u?s.x:s.y;if(l===this._previousSwap.drag&&this._previousSwap.overlaps&&i===this._previousSwap.delta)return!1}return u?e>=Math.floor(n.left)&&e=Math.floor(n.top)&&t!0,this.sortPredicate=()=>!0,this.beforeStarted=new Ee.x,this.entered=new Ee.x,this.exited=new Ee.x,this.dropped=new Ee.x,this.sorted=new Ee.x,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=Gt.w0.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new Ee.x,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function GP(o=0,r=qc.z){return o<0&&(o=0),(0,zc.H)(o,o,r)}(0,Om).pipe(It(this._stopScrollTimers)).subscribe(()=>{const d=this._scrollNode,l=this.autoScrollStep;1===this._verticalScrollDirection?d.scrollBy(0,-l):2===this._verticalScrollDirection&&d.scrollBy(0,l),1===this._horizontalScrollDirection?d.scrollBy(-l,0):2===this._horizontalScrollDirection&&d.scrollBy(l,0)})},this.element=Zt(r),this._document=t,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new fM(t),this._sortStrategy=new KP(this.element,e),this._sortStrategy.withSortPredicate((d,l)=>this.sortPredicate(d,l,this))}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(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(r,e,t,s){this._draggingStarted(),null==s&&this.sortingDisabled&&(s=this._draggables.indexOf(r)),this._sortStrategy.enter(r,e,t,s),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:r,container:this,currentIndex:this.getItemIndex(r)})}exit(r){this._reset(),this.exited.next({item:r,container:this})}drop(r,e,t,s,u,d,l,n={}){this._reset(),this.dropped.next({item:r,currentIndex:e,previousIndex:t,container:this,previousContainer:s,isPointerOverContainer:u,distance:d,dropPoint:l,event:n})}withItems(r){const e=this._draggables;return this._draggables=r,r.forEach(t=>t._withDropContainer(this)),this.isDragging()&&(e.filter(s=>s.isDragging()).every(s=>-1===r.indexOf(s))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(r){return this._sortStrategy.direction=r,this}connectedTo(r){return this._siblings=r.slice(),this}withOrientation(r){return this._sortStrategy.orientation=r,this}withScrollableParents(r){const e=Zt(this.element);return this._scrollableElements=-1===r.indexOf(e)?[e,...r]:r.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(r){return this._isDragging?this._sortStrategy.getItemIndex(r):this._draggables.indexOf(r)}isReceiving(){return this._activeSiblings.size>0}_sortItem(r,e,t,s){if(this.sortingDisabled||!this._clientRect||!pM(this._clientRect,.05,e,t))return;const u=this._sortStrategy.sort(r,e,t,s);u&&this.sorted.next({previousIndex:u.previousIndex,currentIndex:u.currentIndex,container:this,item:r})}_startScrollingIfNecessary(r,e){if(this.autoScrollDisabled)return;let t,s=0,u=0;if(this._parentPositions.positions.forEach((d,l)=>{l===this._document||!d.clientRect||t||pM(d.clientRect,.05,r,e)&&([s,u]=function XP(o,r,e,t){const s=SM(r,t),u=TM(r,e);let d=0,l=0;if(s){const n=o.scrollTop;1===s?n>0&&(d=1):o.scrollHeight-n>o.clientHeight&&(d=2)}if(u){const n=o.scrollLeft;1===u?n>0&&(l=1):o.scrollWidth-n>o.clientWidth&&(l=2)}return[d,l]}(l,d.clientRect,r,e),(s||u)&&(t=l))}),!s&&!u){const{width:d,height:l}=this._viewportRuler.getViewportSize(),n={width:d,height:l,top:0,right:d,bottom:l,left:0};s=SM(n,e),u=TM(n,r),t=window}t&&(s!==this._verticalScrollDirection||u!==this._horizontalScrollDirection||t!==this._scrollNode)&&(this._verticalScrollDirection=s,this._horizontalScrollDirection=u,this._scrollNode=t,(s||u)&&t?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const r=Zt(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=r.msScrollSnapType||r.scrollSnapType||"",r.scrollSnapType=r.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const r=Zt(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(r).clientRect}_reset(){this._isDragging=!1;const r=Zt(this.element).style;r.scrollSnapType=r.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(e=>e._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(r,e){return null!=this._clientRect&&h0(this._clientRect,r,e)}_getSiblingContainerFromPosition(r,e,t){return this._siblings.find(s=>s._canReceive(r,e,t))}_canReceive(r,e,t){if(!this._clientRect||!h0(this._clientRect,e,t)||!this.enterPredicate(r,this))return!1;const s=this._getShadowRoot().elementFromPoint(e,t);if(!s)return!1;const u=Zt(this.element);return s===u||u.contains(s)}_startReceiving(r,e){const t=this._activeSiblings;!t.has(r)&&e.every(s=>this.enterPredicate(s,this)||this._draggables.indexOf(s)>-1)&&(t.add(r),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(r){this._activeSiblings.delete(r),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(r=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(r);e&&this._sortStrategy.updateOnScroll(e.top,e.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const r=Yr(Zt(this.element));this._cachedShadowRoot=r||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const r=this._sortStrategy.getActiveItemsSnapshot().filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,r))}}function SM(o,r){const{top:e,bottom:t,height:s}=o,u=.05*s;return r>=e-u&&r<=e+u?1:r>=t-u&&r<=t+u?2:0}function TM(o,r){const{left:e,right:t,width:s}=o,u=.05*s;return r>=e-u&&r<=e+u?1:r>=t-u&&r<=t+u?2:0}const Sb=er({passive:!1,capture:!0});let e1=(()=>{class o{constructor(e,t){this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=s=>s.isDragging(),this.pointerMove=new Ee.x,this.pointerUp=new Ee.x,this.scroll=new Ee.x,this._preventDefaultWhileDragging=s=>{this._activeDragInstances.length>0&&s.preventDefault()},this._persistentTouchmoveListener=s=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&s.preventDefault(),this.pointerMove.next(s))},this._document=t}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,Sb)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,Sb)}startDragging(e,t){if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){const s=t.type.startsWith("touch");this._globalListeners.set(s?"touchend":"mouseup",{handler:u=>this.pointerUp.next(u),options:!0}).set("scroll",{handler:u=>this.scroll.next(u),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:Sb}),s||this._globalListeners.set("mousemove",{handler:u=>this.pointerMove.next(u),options:Sb}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((u,d)=>{this._document.addEventListener(d,u.handler,u.options)})})}}stopDragging(e){const t=this._activeDragInstances.indexOf(e);t>-1&&(this._activeDragInstances.splice(t,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(e){return this._activeDragInstances.indexOf(e)>-1}scrolled(e){const t=[this.scroll];return e&&e!==this._document&&t.push(new Qe.y(s=>this._ngZone.runOutsideAngular(()=>{const d=l=>{this._activeDragInstances.length&&s.next(l)};return e.addEventListener("scroll",d,!0),()=>{e.removeEventListener("scroll",d,!0)}}))),(0,nr.T)(...t)}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((e,t)=>{this._document.removeEventListener(t,e.handler,e.options)}),this._globalListeners.clear()}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(_.R0b),_.LFG(M.K0))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const t1={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let n1=(()=>{class o{constructor(e,t,s,u){this._document=e,this._ngZone=t,this._viewportRuler=s,this._dragDropRegistry=u}createDrag(e,t=t1){return new YP(e,t,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new ZP(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(M.K0),_.LFG(_.R0b),_.LFG(Ga),_.LFG(e1))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),r1=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({providers:[n1],imports:[In]}),o})();function h1(o,r){1&o&&_._UZ(0,"mat-spinner",7)}function p1(o,r){1&o&&(_.TgZ(0,"mat-error"),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&o&&(_.xp6(1),_.Oqu(_.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_ERROR")))}function f1(o,r){1&o&&(_.TgZ(0,"mat-error"),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&o&&(_.xp6(1),_.Oqu(_.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_ERROR")))}function m1(o,r){if(1&o){const e=_.EpF();_.TgZ(0,"div",8)(1,"mat-form-field")(2,"mat-label"),_._uU(3),_.ALo(4,"translate"),_.qZA(),_.TgZ(5,"input",9,10),_.NdJ("ngModelChange",function(s){_.CHM(e);const u=_.oxw();return _.KtG(u.subject=s)}),_.qZA(),_.YNc(7,p1,3,3,"mat-error",11),_.qZA(),_.TgZ(8,"mat-form-field")(9,"mat-label"),_._uU(10),_.ALo(11,"translate"),_.qZA(),_.TgZ(12,"textarea",12,13),_.NdJ("ngModelChange",function(s){_.CHM(e);const u=_.oxw();return _.KtG(u.message=s)}),_.ALo(14,"translate"),_._uU(15," "),_.qZA(),_.YNc(16,f1,3,3,"mat-error",11),_.qZA()()}if(2&o){const e=_.MAs(6),t=_.MAs(13),s=_.oxw();_.xp6(3),_.Oqu(_.lcZ(4,7,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT")),_.xp6(2),_.Q6J("ngModel",s.subject),_.xp6(2),_.Q6J("ngIf",e.invalid),_.xp6(3),_.Oqu(_.lcZ(11,9,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE")),_.xp6(2),_.s9C("placeholder",_.lcZ(14,11,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_PLACEHOLDER")),_.Q6J("ngModel",s.message),_.xp6(4),_.Q6J("ngIf",t.invalid)}}let g1=(()=>{class o{constructor(e,t,s,u,d,l){this.dialogRef=e,this.translate=t,this.notificator=s,this.rtMessages=u,this.data=d,this.storeService=l,this.message="",this.subject="",this.methodRegexp=/(\w+\/\w+)$/g,this.loading=!1}ngOnInit(){this.data?.error?.errorId&&(this.subject="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_VALUE"),this.parseMethod(this.data.error.call)," (",this.data.error.errorId,")"))}sendBugReport(){this.loading=!0,this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(e=>{this.dialogRef.afterClosed().subscribe(()=>{const t="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS1"),e.ticketNumber.toString(),this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS2"));this.notificator.showSuccess(t)}),this.dialogRef.close()},()=>{this.loading=!1,this.dialogRef.afterClosed().subscribe(()=>{})})}getFullEmailBody(){const e=this.storeService.getProperty("config");let t=this.message+"\n------------------------\nTechnical details:\n\n"+this.data.error.errorId;if(t=t.concat(this.data.error.type?" "+this.data.error.type+"\n":"\n"),t=t.concat(this.data.error.message,"\n","Perun instance: ",e,"\n","Request:\n",this.data.error.urlWithParams,"\n\n"),this.data.error.payload){const s=/"password":".+?"/;let u=JSON.stringify(this.data.error.payload);u=u.replace(s,'"password":"####"'),t=t.concat("Payload:\n"+u+"\n\n")}return t=t.concat("Sent from new Perun Gui, version: ",E(4147).i8),t.split("\n").join("\n ")}parseMethod(e){return e&&this.methodRegexp.exec(e)[1]}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(Vn),_.Y36(sa),_.Y36(yd),_.Y36(_d),_.Y36(hs),_.Y36(On))},o.\u0275cmp=_.Xpm({type:o,selectors:[["perun-web-apps-bug-report-dialog"]],decls:13,vars:12,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","",3,"ngModel","ngModelChange"],["subjectModel","ngModel"],[4,"ngIf"],["matInput","","required","",3,"ngModel","placeholder","ngModelChange"],["messageModel","ngModel"]],template:function(e,t){1&e&&(_.TgZ(0,"h1",0),_._uU(1),_.ALo(2,"translate"),_.qZA(),_.YNc(3,h1,1,0,"mat-spinner",1),_.YNc(4,m1,17,13,"div",2),_.TgZ(5,"div",3)(6,"div",4)(7,"button",5),_.NdJ("click",function(){return t.dialogRef.close()}),_._uU(8),_.ALo(9,"translate"),_.qZA(),_.TgZ(10,"button",6),_.NdJ("click",function(){return t.sendBugReport()}),_._uU(11),_.ALo(12,"translate"),_.qZA()()()),2&e&&(_.xp6(1),_.Oqu(_.lcZ(2,6,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.TITLE")),_.xp6(2),_.Q6J("ngIf",t.loading),_.xp6(1),_.Q6J("ngIf",!t.loading),_.xp6(4),_.hij(" ",_.lcZ(9,8,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.CANCEL")," "),_.xp6(2),_.Q6J("disabled",""===t.message||""===t.subject||t.loading),_.xp6(1),_.hij(" ",_.lcZ(12,10,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SEND")," "))},dependencies:[M.O5,la,dr,ca,Zr,Ph,pl,kh,Ml,Md,Ue,Bd,NA,Ln,Hi],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),o})(),_1=(()=>{class o{constructor(e,t,s){this.dialogRef=e,this.dialog=t,this.data=s}onCloseClick(){this.dialogRef.close()}onBugReportClick(){this.dialogRef.afterClosed().subscribe(()=>{const e=ur();e.width="550px",e.data={error:this.data.error},e.autoFocus=!1,this.dialog.open(g1,e)}),this.dialogRef.close()}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(Vn),_.Y36(cr),_.Y36(hs))},o.\u0275cmp=_.Xpm({type:o,selectors:[["perun-web-apps-notification-dialog"]],decls:12,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"hidden","click"],["autofocus","","mat-button","",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(_.TgZ(0,"h1",0),_._uU(1),_.qZA(),_.TgZ(2,"div",1),_._uU(3),_.qZA(),_.TgZ(4,"div",2)(5,"div",3)(6,"button",4),_.NdJ("click",function(){return t.onBugReportClick()}),_._uU(7),_.ALo(8,"translate"),_.qZA(),_.TgZ(9,"button",5),_.NdJ("click",function(){return t.onCloseClick()}),_._uU(10),_.ALo(11,"translate"),_.qZA()()()),2&e&&(_.xp6(1),_.Oqu(t.data.title),_.xp6(2),_.hij(" ",t.data.description,"\n"),_.xp6(3),_.Q6J("hidden","error"!==t.data.type),_.xp6(1),_.hij(" ",_.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_BUG_REPORT")," "),_.xp6(3),_.hij(" ",_.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_CLOSE")," "))},dependencies:[la,dr,ca,Zr,Hi]}),o})();function V1(o,r){1&o&&(_.TgZ(0,"mat-error",8),_._uU(1),_.ALo(2,"translate"),_.ALo(3,"customTranslate"),_.qZA()),2&o&&(_.xp6(1),_.Oqu(_.lcZ(2,1,_.lcZ(3,3,"DIALOGS.ADD_SSH.INVALID_TYPE"))))}class oo{constructor(r,e,t){this.dialogRef=r,this.data=e,this.attributesManagerService=t}ngOnInit(){this.sshControl=new gE(null,[ua.required,ua.pattern(oo.sshKeyPattern)])}onCancel(){this.dialogRef.close(!1)}onSubmit(){const r=this.data.attribute?.value??[],e=this.sshControl.value;r.includes(e)||r.push(e),this.data.attribute.value=r,this.attributesManagerService.setUserAttribute({user:this.data.userId,attribute:this.data.attribute}).subscribe(()=>{this.dialogRef.close(!0)},()=>{r.pop()})}}function N1(o,r){if(1&o&&(_.TgZ(0,"div",9),_._UZ(1,"perun-web-apps-notification",10),_.qZA()),2&o){const e=r.$implicit;_.xp6(1),_.Q6J("data",e)("inDialog",!0)}}function q1(o,r){if(1&o&&(_.TgZ(0,"div",6)(1,"cdk-virtual-scroll-viewport",7),_.YNc(2,N1,2,2,"div",8),_.qZA()()),2&o){const e=_.oxw();_.xp6(2),_.Q6J("cdkVirtualForOf",e.notifications)}}function z1(o,r){1&o&&(_.TgZ(0,"perun-web-apps-alert",11),_._uU(1),_.ALo(2,"translate"),_.ALo(3,"customTranslate"),_.qZA()),2&o&&(_.xp6(1),_.Oqu(_.lcZ(2,1,_.lcZ(3,3,"DIALOGS.NOTIFICATION_LIST.NO_NOTIFICATIONS_ALERT"))))}oo.allowedSshKeys=["ssh-ed25519","ssh-ed25519-cert-v01@openssh.com","sk-ssh-ed25519@openssh.com","sk-ssh-ed25519-cert-v01@openssh.com","ssh-rsa","ssh-dss","ecdsa-sha2-nistp256","ecdsa-sha2-nistp384","ecdsa-sha2-nistp521","sk-ecdsa-sha2-nistp256@openssh.com","ssh-rsa-cert-v01@openssh.com","ssh-dss-cert-v01@openssh.com","ecdsa-sha2-nistp256-cert-v01@openssh.com","ecdsa-sha2-nistp384-cert-v01@openssh.com","ecdsa-sha2-nistp521-cert-v01@openssh.com","sk-ecdsa-sha2-nistp256-cert-v01@openssh.com"],oo.sshKeyPattern="^("+oo.allowedSshKeys.join("|")+").+$",oo.\u0275fac=function(r){return new(r||oo)(_.Y36(Vn),_.Y36(hs),_.Y36(Jg))},oo.\u0275cmp=_.Xpm({type:oo,selectors:[["perun-web-apps-add-ssh-dialog"]],decls:20,vars:23,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","user-theme"],[1,"input-width"],["matInput","","required","","cdkTextareaAutosize","","cdkAutosizeMinRows","4",3,"placeholder","formControl"],["class","white-space-pre",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[1,"white-space-pre"]],template:function(r,e){1&r&&(_.TgZ(0,"h1",0),_._uU(1),_.ALo(2,"translate"),_.ALo(3,"customTranslate"),_.qZA(),_.TgZ(4,"div",1)(5,"mat-form-field",2)(6,"label",2),_._UZ(7,"textarea",3),_.ALo(8,"translate"),_.ALo(9,"customTranslate"),_.qZA(),_.YNc(10,V1,4,5,"mat-error",4),_.qZA()(),_.TgZ(11,"div",5)(12,"button",6),_.NdJ("click",function(){return e.onCancel()}),_._uU(13),_.ALo(14,"translate"),_.ALo(15,"customTranslate"),_.qZA(),_.TgZ(16,"button",7),_.NdJ("click",function(){return e.onSubmit()}),_._uU(17),_.ALo(18,"translate"),_.ALo(19,"customTranslate"),_.qZA()()),2&r&&(_.xp6(1),_.Oqu(_.lcZ(2,7,_.lcZ(3,9,"DIALOGS.ADD_SSH.TITLE"))),_.xp6(6),_.s9C("placeholder",_.lcZ(8,11,_.lcZ(9,13,"DIALOGS.ADD_SSH.INPUT_PLACEHOLDER"))),_.Q6J("formControl",e.sshControl),_.xp6(3),_.Q6J("ngIf",e.sshControl.invalid&&e.sshControl.dirty),_.xp6(3),_.hij(" ",_.lcZ(14,15,_.lcZ(15,17,"DIALOGS.ADD_SSH.CANCEL"))," "),_.xp6(3),_.Q6J("disabled",e.sshControl.invalid),_.xp6(1),_.hij(" ",_.lcZ(18,19,_.lcZ(19,21,"DIALOGS.ADD_SSH.ADD"))," "))},dependencies:[M.O5,Ml,Md,Ue,Zr,Ph,pl,kp,lp,NA,la,dr,ca,Hi,ap],styles:[".input-width{width:100%}.white-space-pre{white-space:pre-wrap}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper{padding-bottom:0}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-underline{position:initial!important;display:block;margin-top:-1px}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper,perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-ripple{position:initial!important;display:table}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper{min-height:calc(1em + 1px)}\n"],encapsulation:2});let G1=(()=>{class o{constructor(e,t){this.dialogRef=e,this.notificationStorageService=t}ngOnInit(){this.notifications=this.notificationStorageService.getNotifications()}onCancel(){this.dialogRef.close()}onClear(){this.notificationStorageService.clearNotifications(),this.notifications=[]}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(Vn),_.Y36(C_))},o.\u0275cmp=_.Xpm({type:o,selectors:[["perun-web-apps-show-notification-history-dialog"]],decls:15,vars:17,consts:[["mat-dialog-title",""],["class","hide-horizontal-scrollbar",4,"ngIf"],["alert_type","warn",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","",1,"ml-2",3,"click"],[1,"hide-horizontal-scrollbar"],["itemSize","50",1,"viewport"],["class","mb-1",4,"cdkVirtualFor","cdkVirtualForOf"],[1,"mb-1"],[3,"data","inDialog"],["alert_type","warn"]],template:function(e,t){1&e&&(_.TgZ(0,"h1",0),_._uU(1),_.ALo(2,"translate"),_.ALo(3,"customTranslate"),_.qZA(),_.YNc(4,q1,3,1,"div",1),_.YNc(5,z1,4,5,"perun-web-apps-alert",2),_.TgZ(6,"div",3)(7,"button",4),_.NdJ("click",function(){return t.onClear()}),_._uU(8),_.ALo(9,"translate"),_.ALo(10,"customTranslate"),_.qZA(),_.TgZ(11,"button",5),_.NdJ("click",function(){return t.onCancel()}),_._uU(12),_.ALo(13,"translate"),_.ALo(14,"customTranslate"),_.qZA()()),2&e&&(_.xp6(1),_.Oqu(_.lcZ(2,5,_.lcZ(3,7,"DIALOGS.NOTIFICATION_LIST.TITLE"))),_.xp6(3),_.Q6J("ngIf",0!==t.notifications.length),_.xp6(1),_.Q6J("ngIf",0===t.notifications.length),_.xp6(3),_.hij(" ",_.lcZ(9,9,_.lcZ(10,11,"DIALOGS.NOTIFICATION_LIST.CLEAR"))," "),_.xp6(4),_.hij(" ",_.lcZ(13,13,_.lcZ(14,15,"DIALOGS.NOTIFICATION_LIST.CANCEL"))," "))},styles:[".viewport[_ngcontent-%COMP%]{height:400px;width:470px}.hide-horizontal-scrollbar[_ngcontent-%COMP%]{overflow-x:hidden}"]}),o})();function W1(o,r){if(1&o&&(_.TgZ(0,"div",5)(1,"mat-icon"),_._uU(2),_.qZA()()),2&o){const e=_.oxw();_.xp6(2),_.Oqu(e.data.icon)}}function $1(o,r){if(1&o&&(_.TgZ(0,"div",6),_._uU(1),_.qZA()),2&o){const e=_.oxw();_.xp6(1),_.hij(" ",e.showTimestamp()," ")}}let Q1=(()=>{class o{constructor(e,t){this.dialog=e,this.notificationStorageService=t,this.newNotification=!1,this.closeNotification=new _.vpe,this.alreadyPressed=!1,this.alreadyClosed=!1,this.waiting=!1}doAction(){if(this.newNotification&&(this.alreadyPressed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,void 0!==this.data.action)this.data.action();else{const e=ur();e.width="550px",e.data=this.data,e.autoFocus=!1,this.dialog.open(_1,e).afterClosed().subscribe(()=>{this.closeSelf()})}}closeSelf(){this.inDialog||(this.newNotification&&(this.alreadyClosed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,this.closeNotification.emit())}ngOnInit(){!function Dv(o,r){md.apply(this,arguments)}(this.data.delay,()=>{!this.alreadyClosed&&!this.waiting&&this.closeSelf()})}showTimestamp(){const[e,t]=this.data.timeStamp.split(":");return t.length<2?e+":0"+t:this.data.timeStamp}}return o.\u0275fac=function(e){return new(e||o)(_.Y36(cr),_.Y36(C_))},o.\u0275cmp=_.Xpm({type:o,selectors:[["perun-web-apps-notification"]],inputs:{data:"data",inDialog:"inDialog",newNotification:"newNotification"},outputs:{closeNotification:"closeNotification"},decls:9,vars:14,consts:[[1,"notification-container",3,"click"],["class","notification-icon",4,"ngIf"],["data-cy","notification-message",1,"notification-text","clickable"],["class","ml-auto mr-5 mt-auto mb-auto",4,"ngIf"],[1,"notification-action","mt-auto","mb-auto",3,"hidden","click"],[1,"notification-icon"],[1,"ml-auto","mr-5","mt-auto","mb-auto"]],template:function(e,t){1&e&&(_.TgZ(0,"div")(1,"div",0),_.NdJ("click",function(){return t.alreadyClosed||t.waiting?"":t.closeSelf()}),_.YNc(2,W1,3,1,"div",1),_.TgZ(3,"div",2),_._uU(4),_.ALo(5,"translate"),_.qZA(),_.YNc(6,$1,2,1,"div",3),_.TgZ(7,"div",4),_.NdJ("click",function(){return t.waiting=!0,t.doAction()}),_._uU(8),_.qZA()()()),2&e&&(_.Gre("notification ",t.inDialog?"":"mat-elevation-z7",""),_.ekj("error","error"===t.data.type)("success","success"===t.data.type),_.xp6(2),_.Q6J("ngIf",null!==t.data.icon),_.xp6(2),_.hij(" ",_.lcZ(5,12,t.data.title)," "),_.xp6(2),_.Q6J("ngIf",t.inDialog),_.xp6(1),_.Q6J("hidden",t.alreadyPressed),_.xp6(1),_.hij(" ",t.data.actionText," "))},dependencies:[M.O5,Ft,Hi],styles:[".notification[_ngcontent-%COMP%]{width:450px;margin-bottom:16px;display:flex;flex-direction:row;justify-content:space-between;color:#fff}.notification-container[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:row;padding:16px}.notification-text[_ngcontent-%COMP%]{font-size:1.1em}.notification-action[_ngcontent-%COMP%]{margin-left:auto;text-decoration:underline;cursor:pointer}@media (max-width: 768px){.notification[_ngcontent-%COMP%]{width:100%}}.notification.error[_ngcontent-%COMP%]{background-color:#d32f2f}.notification.success[_ngcontent-%COMP%]{background-color:#288619}.notification-icon[_ngcontent-%COMP%]{padding-right:8px;color:#fff}"]}),o})(),Y1=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({}),o})(),eI=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({}),o})(),lI=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[eI,Se,Se]}),o})(),yI=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[Cn,Se,Se]}),o})();new _.OlP("mat-selectsearch-default-options");let TI=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[[M.ez,no,Tr,lb,aa,Ad,os]]}),o})(),EI=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[Ua,Se,Se]}),o})(),MI=(()=>{class o extends Vc{format(e,t){return"input"===t?`${e.getDate().toString()}.${(e.getMonth()+1).toString()}.${e.getFullYear()}`:e.toDateString()}}return o.\u0275fac=function(){let r;return function(t){return(r||(r=_.n5z(o)))(t||o)}}(),o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac}),o})();const DI={parse:{dateInput:{month:"short",year:"numeric",day:"numeric"}},display:{dateInput:"input",monthYearLabel:{year:"numeric",month:"numeric"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let RM=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({providers:[{provide:bn,useClass:MI},{provide:tl,useValue:DI}],imports:[M.ez,lb,bb,jl,o0,r1,lr,Bo,r0,$a,Ad,l0,aa,gl,Tr,os,Hr,no,sb,Cn,w_,Y1,lI,t0,yI,Fc,fl,TI,Wa,yl,Ig,s0,EI]}),o})();_.B6R(G1,[M.O5,wd,Zr,zm,sy,en,la,ca,Q1],[Hi,ap]),new Date(324721404e5).valueOf();let cB=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[M.ez,Tr,aa,Bo,RM,lr,Hr,no,sb,l0]}),o})(),uB=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({imports:[M.ez,yl,Tr,lr]}),o})(),hB=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({providers:[vd],imports:[M.ez,s0,lr,w_]}),o})();function LM(o){return new _.vHH(3e3,!1)}function $B(){return typeof window<"u"&&typeof window.document<"u"}function b0(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function bs(o){switch(o.length){case 0:return new Bn;case 1:return o[0];default:return new ul(o)}}function jM(o,r,e,t,s=new Map,u=new Map){const d=[],l=[];let n=-1,i=null;if(t.forEach(a=>{const c=a.get("offset"),h=c==n,f=h&&i||new Map;a.forEach((m,p)=>{let w=p,R=m;if("offset"!==p)switch(w=r.normalizePropertyName(w,d),R){case"!":R=s.get(p);break;case Dr:R=u.get(p);break;default:R=r.normalizeStyleValue(p,w,R,d)}f.set(w,R)}),h||l.push(f),i=f,n=c}),d.length)throw function BB(o){return new _.vHH(3502,!1)}();return l}function C0(o,r,e,t){switch(r){case"start":o.onStart(()=>t(e&&w0(e,"start",o)));break;case"done":o.onDone(()=>t(e&&w0(e,"done",o)));break;case"destroy":o.onDestroy(()=>t(e&&w0(e,"destroy",o)))}}function w0(o,r,e){const u=y0(o.element,o.triggerName,o.fromState,o.toState,r||o.phaseName,e.totalTime??o.totalTime,!!e.disabled),d=o._data;return null!=d&&(u._data=d),u}function y0(o,r,e,t,s="",u=0,d){return{element:o,triggerName:r,fromState:e,toState:t,phaseName:s,totalTime:u,disabled:!!d}}function jn(o,r,e){let t=o.get(r);return t||o.set(r,t=e),t}function FM(o){const r=o.indexOf(":");return[o.substring(1,r),o.slice(r+1)]}let v0=(o,r)=>!1,UM=(o,r,e)=>[],NM=null;function A0(o){const r=o.parentNode||o.host;return r===NM?null:r}(b0()||typeof Element<"u")&&($B()?(NM=(()=>document.documentElement)(),v0=(o,r)=>{for(;r;){if(r===o)return!0;r=A0(r)}return!1}):v0=(o,r)=>o.contains(r),UM=(o,r,e)=>{if(e)return Array.from(o.querySelectorAll(r));const t=o.querySelector(r);return t?[t]:[]});let Ul=null,qM=!1;const zM=v0,GM=UM;let WM=(()=>{class o{validateStyleProperty(e){return function YB(o){Ul||(Ul=function JB(){return typeof document<"u"?document.body:null}()||{},qM=!!Ul.style&&"WebkitAppearance"in Ul.style);let r=!0;return Ul.style&&!function QB(o){return"ebkit"==o.substring(1,6)}(o)&&(r=o in Ul.style,!r&&qM&&(r="Webkit"+o.charAt(0).toUpperCase()+o.slice(1)in Ul.style)),r}(e)}matchesElement(e,t){return!1}containsElement(e,t){return zM(e,t)}getParentElement(e){return A0(e)}query(e,t,s){return GM(e,t,s)}computeStyle(e,t,s){return s||""}animate(e,t,s,u,d,l=[],n){return new Bn(s,u)}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac}),o})(),x0=(()=>{class o{}return o.NOOP=new WM,o})();const S0="ng-enter",Db="ng-leave",Hb="ng-trigger",Rb=".ng-trigger",QM="ng-animating",T0=".ng-animating";function Cs(o){if("number"==typeof o)return o;const r=o.match(/^(-?[\.\d]+)(m?s)/);return!r||r.length<2?0:E0(parseFloat(r[1]),r[2])}function E0(o,r){return"s"===r?1e3*o:o}function Pb(o,r,e){return o.hasOwnProperty("duration")?o:function XB(o,r,e){let s,u=0,d="";if("string"==typeof o){const l=o.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===l)return r.push(LM()),{duration:0,delay:0,easing:""};s=E0(parseFloat(l[1]),l[2]);const n=l[3];null!=n&&(u=E0(parseFloat(n),l[4]));const i=l[5];i&&(d=i)}else s=o;if(!e){let l=!1,n=r.length;s<0&&(r.push(function pB(){return new _.vHH(3100,!1)}()),l=!0),u<0&&(r.push(function fB(){return new _.vHH(3101,!1)}()),l=!0),l&&r.splice(n,0,LM())}return{duration:s,delay:u,easing:d}}(o,r,e)}function qp(o,r={}){return Object.keys(o).forEach(e=>{r[e]=o[e]}),r}function YM(o){const r=new Map;return Object.keys(o).forEach(e=>{r.set(e,o[e])}),r}function ws(o,r=new Map,e){if(e)for(let[t,s]of e)r.set(t,s);for(let[t,s]of o)r.set(t,s);return r}function KM(o,r,e){return e?r+":"+e+";":""}function ZM(o){let r="";for(let e=0;e{const u=D0(s);e&&!e.has(s)&&e.set(s,o.style[u]),o.style[u]=t}),b0()&&ZM(o))}function Nl(o,r){o.style&&(r.forEach((e,t)=>{const s=D0(t);o.style[s]=""}),b0()&&ZM(o))}function zp(o){return Array.isArray(o)?1==o.length?o[0]:dl(o):o}const M0=new RegExp("{{\\s*(.+?)\\s*}}","g");function XM(o){let r=[];if("string"==typeof o){let e;for(;e=M0.exec(o);)r.push(e[1]);M0.lastIndex=0}return r}function Ib(o,r,e){const t=o.toString(),s=t.replace(M0,(u,d)=>{let l=r[d];return null==l&&(e.push(function gB(o){return new _.vHH(3003,!1)}()),l=""),l.toString()});return s==t?o:s}function kb(o){const r=[];let e=o.next();for(;!e.done;)r.push(e.value),e=o.next();return r}const iV=/-+([a-z0-9])/g;function D0(o){return o.replace(iV,(...r)=>r[1].toUpperCase())}function nV(o){return o.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Fn(o,r,e){switch(r.type){case 7:return o.visitTrigger(r,e);case 0:return o.visitState(r,e);case 1:return o.visitTransition(r,e);case 2:return o.visitSequence(r,e);case 3:return o.visitGroup(r,e);case 4:return o.visitAnimate(r,e);case 5:return o.visitKeyframes(r,e);case 6:return o.visitStyle(r,e);case 8:return o.visitReference(r,e);case 9:return o.visitAnimateChild(r,e);case 10:return o.visitAnimateRef(r,e);case 11:return o.visitQuery(r,e);case 12:return o.visitStagger(r,e);default:throw function _B(o){return new _.vHH(3004,!1)}()}}function eD(o,r){return window.getComputedStyle(o)[r]}function cV(o,r){const e=[];return"string"==typeof o?o.split(/\s*,\s*/).forEach(t=>function dV(o,r,e){if(":"==o[0]){const n=function uV(o,r){switch(o){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t) *"}}(o,e);if("function"==typeof n)return void r.push(n);o=n}const t=o.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==t||t.length<4)return e.push(function HB(o){return new _.vHH(3015,!1)}()),r;const s=t[1],u=t[2],d=t[3];r.push(tD(s,d));"<"==u[0]&&!("*"==s&&"*"==d)&&r.push(tD(d,s))}(t,e,r)):e.push(o),e}const Lb=new Set(["true","1"]),jb=new Set(["false","0"]);function tD(o,r){const e=Lb.has(o)||jb.has(o),t=Lb.has(r)||jb.has(r);return(s,u)=>{let d="*"==o||o==s,l="*"==r||r==u;return!d&&e&&"boolean"==typeof s&&(d=s?Lb.has(o):jb.has(o)),!l&&t&&"boolean"==typeof u&&(l=u?Lb.has(r):jb.has(r)),d&&l}}const hV=new RegExp("s*:selfs*,?","g");function H0(o,r,e,t){return new pV(o).build(r,e,t)}class pV{constructor(r){this._driver=r}build(r,e,t){const s=new gV(e);return this._resetContextStyleTimingState(s),Fn(this,zp(r),s)}_resetContextStyleTimingState(r){r.currentQuerySelector="",r.collectedStyles=new Map,r.collectedStyles.set("",new Map),r.currentTime=0}visitTrigger(r,e){let t=e.queryCount=0,s=e.depCount=0;const u=[],d=[];return"@"==r.name.charAt(0)&&e.errors.push(function CB(){return new _.vHH(3006,!1)}()),r.definitions.forEach(l=>{if(this._resetContextStyleTimingState(e),0==l.type){const n=l,i=n.name;i.toString().split(/\s*,\s*/).forEach(a=>{n.name=a,u.push(this.visitState(n,e))}),n.name=i}else if(1==l.type){const n=this.visitTransition(l,e);t+=n.queryCount,s+=n.depCount,d.push(n)}else e.errors.push(function wB(){return new _.vHH(3007,!1)}())}),{type:7,name:r.name,states:u,transitions:d,queryCount:t,depCount:s,options:null}}visitState(r,e){const t=this.visitStyle(r.styles,e),s=r.options&&r.options.params||null;if(t.containsDynamicStyles){const u=new Set,d=s||{};t.styles.forEach(l=>{l instanceof Map&&l.forEach(n=>{XM(n).forEach(i=>{d.hasOwnProperty(i)||u.add(i)})})}),u.size&&(kb(u.values()),e.errors.push(function yB(o,r){return new _.vHH(3008,!1)}()))}return{type:0,name:r.name,style:t,options:s?{params:s}:null}}visitTransition(r,e){e.queryCount=0,e.depCount=0;const t=Fn(this,zp(r.animation),e);return{type:1,matchers:cV(r.expr,e.errors),animation:t,queryCount:e.queryCount,depCount:e.depCount,options:ql(r.options)}}visitSequence(r,e){return{type:2,steps:r.steps.map(t=>Fn(this,t,e)),options:ql(r.options)}}visitGroup(r,e){const t=e.currentTime;let s=0;const u=r.steps.map(d=>{e.currentTime=t;const l=Fn(this,d,e);return s=Math.max(s,e.currentTime),l});return e.currentTime=s,{type:3,steps:u,options:ql(r.options)}}visitAnimate(r,e){const t=function bV(o,r){if(o.hasOwnProperty("duration"))return o;if("number"==typeof o)return R0(Pb(o,r).duration,0,"");const e=o;if(e.split(/\s+/).some(u=>"{"==u.charAt(0)&&"{"==u.charAt(1))){const u=R0(0,0,"");return u.dynamic=!0,u.strValue=e,u}const s=Pb(e,r);return R0(s.duration,s.delay,s.easing)}(r.timings,e.errors);e.currentAnimateTimings=t;let s,u=r.styles?r.styles:je({});if(5==u.type)s=this.visitKeyframes(u,e);else{let d=r.styles,l=!1;if(!d){l=!0;const i={};t.easing&&(i.easing=t.easing),d=je(i)}e.currentTime+=t.duration+t.delay;const n=this.visitStyle(d,e);n.isEmptyStep=l,s=n}return e.currentAnimateTimings=null,{type:4,timings:t,style:s,options:null}}visitStyle(r,e){const t=this._makeStyleAst(r,e);return this._validateStyleAst(t,e),t}_makeStyleAst(r,e){const t=[],s=Array.isArray(r.styles)?r.styles:[r.styles];for(let l of s)"string"==typeof l?l===Dr?t.push(l):e.errors.push(new _.vHH(3002,!1)):t.push(YM(l));let u=!1,d=null;return t.forEach(l=>{if(l instanceof Map&&(l.has("easing")&&(d=l.get("easing"),l.delete("easing")),!u))for(let n of l.values())if(n.toString().indexOf("{{")>=0){u=!0;break}}),{type:6,styles:t,easing:d,offset:r.offset,containsDynamicStyles:u,options:null}}_validateStyleAst(r,e){const t=e.currentAnimateTimings;let s=e.currentTime,u=e.currentTime;t&&u>0&&(u-=t.duration+t.delay),r.styles.forEach(d=>{"string"!=typeof d&&d.forEach((l,n)=>{const i=e.collectedStyles.get(e.currentQuerySelector),a=i.get(n);let c=!0;a&&(u!=s&&u>=a.startTime&&s<=a.endTime&&(e.errors.push(function AB(o,r,e,t,s){return new _.vHH(3010,!1)}()),c=!1),u=a.startTime),c&&i.set(n,{startTime:u,endTime:s}),e.options&&function tV(o,r,e){const t=r.params||{},s=XM(o);s.length&&s.forEach(u=>{t.hasOwnProperty(u)||e.push(function mB(o){return new _.vHH(3001,!1)}())})}(l,e.options,e.errors)})})}visitKeyframes(r,e){const t={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function xB(){return new _.vHH(3011,!1)}()),t;let u=0;const d=[];let l=!1,n=!1,i=0;const a=r.steps.map(R=>{const J=this._makeStyleAst(R,e);let Te=null!=J.offset?J.offset:function _V(o){if("string"==typeof o)return null;let r=null;if(Array.isArray(o))o.forEach(e=>{if(e instanceof Map&&e.has("offset")){const t=e;r=parseFloat(t.get("offset")),t.delete("offset")}});else if(o instanceof Map&&o.has("offset")){const e=o;r=parseFloat(e.get("offset")),e.delete("offset")}return r}(J.styles),nt=0;return null!=Te&&(u++,nt=J.offset=Te),n=n||nt<0||nt>1,l=l||nt0&&u{const Te=h>0?J==f?1:h*J:d[J],nt=Te*w;e.currentTime=m+p.delay+nt,p.duration=nt,this._validateStyleAst(R,e),R.offset=Te,t.styles.push(R)}),t}visitReference(r,e){return{type:8,animation:Fn(this,zp(r.animation),e),options:ql(r.options)}}visitAnimateChild(r,e){return e.depCount++,{type:9,options:ql(r.options)}}visitAnimateRef(r,e){return{type:10,animation:this.visitReference(r.animation,e),options:ql(r.options)}}visitQuery(r,e){const t=e.currentQuerySelector,s=r.options||{};e.queryCount++,e.currentQuery=r;const[u,d]=function fV(o){const r=!!o.split(/\s*,\s*/).find(e=>":self"==e);return r&&(o=o.replace(hV,"")),o=o.replace(/@\*/g,Rb).replace(/@\w+/g,e=>Rb+"-"+e.slice(1)).replace(/:animating/g,T0),[o,r]}(r.selector);e.currentQuerySelector=t.length?t+" "+u:u,jn(e.collectedStyles,e.currentQuerySelector,new Map);const l=Fn(this,zp(r.animation),e);return e.currentQuery=null,e.currentQuerySelector=t,{type:11,selector:u,limit:s.limit||0,optional:!!s.optional,includeSelf:d,animation:l,originalSelector:r.selector,options:ql(r.options)}}visitStagger(r,e){e.currentQuery||e.errors.push(function MB(){return new _.vHH(3013,!1)}());const t="full"===r.timings?{duration:0,delay:0,easing:"full"}:Pb(r.timings,e.errors,!0);return{type:12,animation:Fn(this,zp(r.animation),e),timings:t,options:null}}}class gV{constructor(r){this.errors=r,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function ql(o){return o?(o=qp(o)).params&&(o.params=function mV(o){return o?qp(o):null}(o.params)):o={},o}function R0(o,r,e){return{duration:o,delay:r,easing:e}}function P0(o,r,e,t,s,u,d=null,l=!1){return{type:1,element:o,keyframes:r,preStyleProps:e,postStyleProps:t,duration:s,delay:u,totalTime:s+u,easing:d,subTimeline:l}}class Fb{constructor(){this._map=new Map}get(r){return this._map.get(r)||[]}append(r,e){let t=this._map.get(r);t||this._map.set(r,t=[]),t.push(...e)}has(r){return this._map.has(r)}clear(){this._map.clear()}}const yV=new RegExp(":enter","g"),AV=new RegExp(":leave","g");function I0(o,r,e,t,s,u=new Map,d=new Map,l,n,i=[]){return(new xV).buildKeyframes(o,r,e,t,s,u,d,l,n,i)}class xV{buildKeyframes(r,e,t,s,u,d,l,n,i,a=[]){i=i||new Fb;const c=new k0(r,e,i,s,u,a,[]);c.options=n;const h=n.delay?Cs(n.delay):0;c.currentTimeline.delayNextStep(h),c.currentTimeline.setStyles([d],null,c.errors,n),Fn(this,t,c);const f=c.timelines.filter(m=>m.containsAnimation());if(f.length&&l.size){let m;for(let p=f.length-1;p>=0;p--){const w=f[p];if(w.element===e){m=w;break}}m&&!m.allowOnlyTimelineStyles()&&m.setStyles([l],null,c.errors,n)}return f.length?f.map(m=>m.buildKeyframes()):[P0(e,[],[],[],0,h,"",!1)]}visitTrigger(r,e){}visitState(r,e){}visitTransition(r,e){}visitAnimateChild(r,e){const t=e.subInstructions.get(e.element);if(t){const s=e.createSubContext(r.options),u=e.currentTimeline.currentTime,d=this._visitSubInstructions(t,s,s.options);u!=d&&e.transformIntoNewTimeline(d)}e.previousNode=r}visitAnimateRef(r,e){const t=e.createSubContext(r.options);t.transformIntoNewTimeline(),this.visitReference(r.animation,t),e.transformIntoNewTimeline(t.currentTimeline.currentTime),e.previousNode=r}_visitSubInstructions(r,e,t){let u=e.currentTimeline.currentTime;const d=null!=t.duration?Cs(t.duration):null,l=null!=t.delay?Cs(t.delay):null;return 0!==d&&r.forEach(n=>{const i=e.appendInstructionToTimeline(n,d,l);u=Math.max(u,i.duration+i.delay)}),u}visitReference(r,e){e.updateOptions(r.options,!0),Fn(this,r.animation,e),e.previousNode=r}visitSequence(r,e){const t=e.subContextCount;let s=e;const u=r.options;if(u&&(u.params||u.delay)&&(s=e.createSubContext(u),s.transformIntoNewTimeline(),null!=u.delay)){6==s.previousNode.type&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=Ub);const d=Cs(u.delay);s.delayNextStep(d)}r.steps.length&&(r.steps.forEach(d=>Fn(this,d,s)),s.currentTimeline.applyStylesToKeyframe(),s.subContextCount>t&&s.transformIntoNewTimeline()),e.previousNode=r}visitGroup(r,e){const t=[];let s=e.currentTimeline.currentTime;const u=r.options&&r.options.delay?Cs(r.options.delay):0;r.steps.forEach(d=>{const l=e.createSubContext(r.options);u&&l.delayNextStep(u),Fn(this,d,l),s=Math.max(s,l.currentTimeline.currentTime),t.push(l.currentTimeline)}),t.forEach(d=>e.currentTimeline.mergeTimelineCollectedStyles(d)),e.transformIntoNewTimeline(s),e.previousNode=r}_visitTiming(r,e){if(r.dynamic){const t=r.strValue;return Pb(e.params?Ib(t,e.params,e.errors):t,e.errors)}return{duration:r.duration,delay:r.delay,easing:r.easing}}visitAnimate(r,e){const t=e.currentAnimateTimings=this._visitTiming(r.timings,e),s=e.currentTimeline;t.delay&&(e.incrementTime(t.delay),s.snapshotCurrentStyles());const u=r.style;5==u.type?this.visitKeyframes(u,e):(e.incrementTime(t.duration),this.visitStyle(u,e),s.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=r}visitStyle(r,e){const t=e.currentTimeline,s=e.currentAnimateTimings;!s&&t.hasCurrentStyleProperties()&&t.forwardFrame();const u=s&&s.easing||r.easing;r.isEmptyStep?t.applyEmptyStep(u):t.setStyles(r.styles,u,e.errors,e.options),e.previousNode=r}visitKeyframes(r,e){const t=e.currentAnimateTimings,s=e.currentTimeline.duration,u=t.duration,l=e.createSubContext().currentTimeline;l.easing=t.easing,r.styles.forEach(n=>{l.forwardTime((n.offset||0)*u),l.setStyles(n.styles,n.easing,e.errors,e.options),l.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(l),e.transformIntoNewTimeline(s+u),e.previousNode=r}visitQuery(r,e){const t=e.currentTimeline.currentTime,s=r.options||{},u=s.delay?Cs(s.delay):0;u&&(6===e.previousNode.type||0==t&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Ub);let d=t;const l=e.invokeQuery(r.selector,r.originalSelector,r.limit,r.includeSelf,!!s.optional,e.errors);e.currentQueryTotal=l.length;let n=null;l.forEach((i,a)=>{e.currentQueryIndex=a;const c=e.createSubContext(r.options,i);u&&c.delayNextStep(u),i===e.element&&(n=c.currentTimeline),Fn(this,r.animation,c),c.currentTimeline.applyStylesToKeyframe(),d=Math.max(d,c.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(d),n&&(e.currentTimeline.mergeTimelineCollectedStyles(n),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=r}visitStagger(r,e){const t=e.parentContext,s=e.currentTimeline,u=r.timings,d=Math.abs(u.duration),l=d*(e.currentQueryTotal-1);let n=d*e.currentQueryIndex;switch(u.duration<0?"reverse":u.easing){case"reverse":n=l-n;break;case"full":n=t.currentStaggerTime}const a=e.currentTimeline;n&&a.delayNextStep(n);const c=a.currentTime;Fn(this,r.animation,e),e.previousNode=r,t.currentStaggerTime=s.currentTime-c+(s.startTime-t.currentTimeline.startTime)}}const Ub={};class k0{constructor(r,e,t,s,u,d,l,n){this._driver=r,this.element=e,this.subInstructions=t,this._enterClassName=s,this._leaveClassName=u,this.errors=d,this.timelines=l,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Ub,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=n||new Nb(this._driver,e,0),l.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(r,e){if(!r)return;const t=r;let s=this.options;null!=t.duration&&(s.duration=Cs(t.duration)),null!=t.delay&&(s.delay=Cs(t.delay));const u=t.params;if(u){let d=s.params;d||(d=this.options.params={}),Object.keys(u).forEach(l=>{(!e||!d.hasOwnProperty(l))&&(d[l]=Ib(u[l],d,this.errors))})}}_copyOptions(){const r={};if(this.options){const e=this.options.params;if(e){const t=r.params={};Object.keys(e).forEach(s=>{t[s]=e[s]})}}return r}createSubContext(r=null,e,t){const s=e||this.element,u=new k0(this._driver,s,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(s,t||0));return u.previousNode=this.previousNode,u.currentAnimateTimings=this.currentAnimateTimings,u.options=this._copyOptions(),u.updateOptions(r),u.currentQueryIndex=this.currentQueryIndex,u.currentQueryTotal=this.currentQueryTotal,u.parentContext=this,this.subContextCount++,u}transformIntoNewTimeline(r){return this.previousNode=Ub,this.currentTimeline=this.currentTimeline.fork(this.element,r),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(r,e,t){const s={duration:e??r.duration,delay:this.currentTimeline.currentTime+(t??0)+r.delay,easing:""},u=new SV(this._driver,r.element,r.keyframes,r.preStyleProps,r.postStyleProps,s,r.stretchStartingKeyframe);return this.timelines.push(u),s}incrementTime(r){this.currentTimeline.forwardTime(this.currentTimeline.duration+r)}delayNextStep(r){r>0&&this.currentTimeline.delayNextStep(r)}invokeQuery(r,e,t,s,u,d){let l=[];if(s&&l.push(this.element),r.length>0){r=(r=r.replace(yV,"."+this._enterClassName)).replace(AV,"."+this._leaveClassName);let i=this._driver.query(this.element,r,1!=t);0!==t&&(i=t<0?i.slice(i.length+t,i.length):i.slice(0,t)),l.push(...i)}return!u&&0==l.length&&d.push(function DB(o){return new _.vHH(3014,!1)}()),l}}class Nb{constructor(r,e,t,s){this._driver=r,this.element=e,this.startTime=t,this._elementTimelineStylesLookup=s,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),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.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(r){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+r),e&&this.snapshotCurrentStyles()):this.startTime+=r}fork(r,e){return this.applyStylesToKeyframe(),new Nb(this._driver,r,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(r){this.applyStylesToKeyframe(),this.duration=r,this._loadKeyframe()}_updateStyle(r,e){this._localTimelineStyles.set(r,e),this._globalTimelineStyles.set(r,e),this._styleSummary.set(r,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(r){r&&this._previousKeyframe.set("easing",r);for(let[e,t]of this._globalTimelineStyles)this._backFill.set(e,t||Dr),this._currentKeyframe.set(e,Dr);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(r,e,t,s){e&&this._previousKeyframe.set("easing",e);const u=s&&s.params||{},d=function TV(o,r){const e=new Map;let t;return o.forEach(s=>{if("*"===s){t=t||r.keys();for(let u of t)e.set(u,Dr)}else ws(s,e)}),e}(r,this._globalTimelineStyles);for(let[l,n]of d){const i=Ib(n,u,t);this._pendingStyles.set(l,i),this._localTimelineStyles.has(l)||this._backFill.set(l,this._globalTimelineStyles.get(l)??Dr),this._updateStyle(l,i)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((r,e)=>{this._currentKeyframe.set(e,r)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((r,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,r)}))}snapshotCurrentStyles(){for(let[r,e]of this._localTimelineStyles)this._pendingStyles.set(r,e),this._updateStyle(r,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const r=[];for(let e in this._currentKeyframe)r.push(e);return r}mergeTimelineCollectedStyles(r){r._styleSummary.forEach((e,t)=>{const s=this._styleSummary.get(t);(!s||e.time>s.time)&&this._updateStyle(t,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const r=new Set,e=new Set,t=1===this._keyframes.size&&0===this.duration;let s=[];this._keyframes.forEach((l,n)=>{const i=ws(l,new Map,this._backFill);i.forEach((a,c)=>{"!"===a?r.add(c):a===Dr&&e.add(c)}),t||i.set("offset",n/this.duration),s.push(i)});const u=r.size?kb(r.values()):[],d=e.size?kb(e.values()):[];if(t){const l=s[0],n=new Map(l);l.set("offset",0),n.set("offset",1),s=[l,n]}return P0(this.element,s,u,d,this.duration,this.startTime,this.easing,!1)}}class SV extends Nb{constructor(r,e,t,s,u,d,l=!1){super(r,e,d.delay),this.keyframes=t,this.preStyleProps=s,this.postStyleProps=u,this._stretchStartingKeyframe=l,this.timings={duration:d.duration,delay:d.delay,easing:d.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let r=this.keyframes,{delay:e,duration:t,easing:s}=this.timings;if(this._stretchStartingKeyframe&&e){const u=[],d=t+e,l=e/d,n=ws(r[0]);n.set("offset",0),u.push(n);const i=ws(r[0]);i.set("offset",rD(l)),u.push(i);const a=r.length-1;for(let c=1;c<=a;c++){let h=ws(r[c]);const f=h.get("offset");h.set("offset",rD((e+f*t)/d)),u.push(h)}t=d,e=0,s="",r=u}return P0(this.element,r,this.preStyleProps,this.postStyleProps,t,e,s,!0)}}function rD(o,r=3){const e=Math.pow(10,r-1);return Math.round(o*e)/e}class B0{}const EV=new Set(["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"]);class MV extends B0{normalizePropertyName(r,e){return D0(r)}normalizeStyleValue(r,e,t,s){let u="";const d=t.toString().trim();if(EV.has(e)&&0!==t&&"0"!==t)if("number"==typeof t)u="px";else{const l=t.match(/^[+-]?[\d\.]+([a-z]*)$/);l&&0==l[1].length&&s.push(function bB(o,r){return new _.vHH(3005,!1)}())}return d+u}}function aD(o,r,e,t,s,u,d,l,n,i,a,c,h){return{type:0,element:o,triggerName:r,isRemovalTransition:s,fromState:e,fromStyles:u,toState:t,toStyles:d,timelines:l,queriedElements:n,preStyleProps:i,postStyleProps:a,totalTime:c,errors:h}}const V0={};class oD{constructor(r,e,t){this._triggerName=r,this.ast=e,this._stateStyles=t}match(r,e,t,s){return function DV(o,r,e,t,s){return o.some(u=>u(r,e,t,s))}(this.ast.matchers,r,e,t,s)}buildStyles(r,e,t){let s=this._stateStyles.get("*");return void 0!==r&&(s=this._stateStyles.get(r?.toString())||s),s?s.buildStyles(e,t):new Map}build(r,e,t,s,u,d,l,n,i,a){const c=[],h=this.ast.options&&this.ast.options.params||V0,m=this.buildStyles(t,l&&l.params||V0,c),p=n&&n.params||V0,w=this.buildStyles(s,p,c),R=new Set,J=new Map,Te=new Map,nt="void"===s,Ai={params:HV(p,h),delay:this.ast.options?.delay},ii=a?[]:I0(r,e,this.ast.animation,u,d,m,w,Ai,i,c);let hi=0;if(ii.forEach(fr=>{hi=Math.max(fr.duration+fr.delay,hi)}),c.length)return aD(e,this._triggerName,t,s,nt,m,w,[],[],J,Te,hi,c);ii.forEach(fr=>{const lo=fr.element,yD=jn(J,lo,new Set);fr.preStyleProps.forEach(zl=>yD.add(zl));const Wp=jn(Te,lo,new Set);fr.postStyleProps.forEach(zl=>Wp.add(zl)),lo!==e&&R.add(lo)});const un=kb(R.values());return aD(e,this._triggerName,t,s,nt,m,w,ii,un,J,Te,hi)}}function HV(o,r){const e=qp(r);for(const t in o)o.hasOwnProperty(t)&&null!=o[t]&&(e[t]=o[t]);return e}class RV{constructor(r,e,t){this.styles=r,this.defaultParams=e,this.normalizer=t}buildStyles(r,e){const t=new Map,s=qp(this.defaultParams);return Object.keys(r).forEach(u=>{const d=r[u];null!==d&&(s[u]=d)}),this.styles.styles.forEach(u=>{"string"!=typeof u&&u.forEach((d,l)=>{d&&(d=Ib(d,s,e));const n=this.normalizer.normalizePropertyName(l,e);d=this.normalizer.normalizeStyleValue(l,n,d,e),t.set(n,d)})}),t}}class IV{constructor(r,e,t){this.name=r,this.ast=e,this._normalizer=t,this.transitionFactories=[],this.states=new Map,e.states.forEach(s=>{this.states.set(s.name,new RV(s.style,s.options&&s.options.params||{},t))}),sD(this.states,"true","1"),sD(this.states,"false","0"),e.transitions.forEach(s=>{this.transitionFactories.push(new oD(r,s,this.states))}),this.fallbackTransition=function kV(o,r,e){return new oD(o,{type:1,animation:{type:2,steps:[],options:null},matchers:[(d,l)=>!0],options:null,queryCount:0,depCount:0},r)}(r,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(r,e,t,s){return this.transitionFactories.find(d=>d.match(r,e,t,s))||null}matchStyles(r,e,t){return this.fallbackTransition.buildStyles(r,e,t)}}function sD(o,r,e){o.has(r)?o.has(e)||o.set(e,o.get(r)):o.has(e)&&o.set(r,o.get(e))}const BV=new Fb;class VV{constructor(r,e,t){this.bodyNode=r,this._driver=e,this._normalizer=t,this._animations=new Map,this._playersById=new Map,this.players=[]}register(r,e){const t=[],u=H0(this._driver,e,t,[]);if(t.length)throw function VB(o){return new _.vHH(3503,!1)}();this._animations.set(r,u)}_buildPlayer(r,e,t){const s=r.element,u=jM(0,this._normalizer,0,r.keyframes,e,t);return this._driver.animate(s,u,r.duration,r.delay,r.easing,[],!0)}create(r,e,t={}){const s=[],u=this._animations.get(r);let d;const l=new Map;if(u?(d=I0(this._driver,e,u,S0,Db,new Map,new Map,t,BV,s),d.forEach(a=>{const c=jn(l,a.element,new Map);a.postStyleProps.forEach(h=>c.set(h,null))})):(s.push(function OB(){return new _.vHH(3300,!1)}()),d=[]),s.length)throw function LB(o){return new _.vHH(3504,!1)}();l.forEach((a,c)=>{a.forEach((h,f)=>{a.set(f,this._driver.computeStyle(c,f,Dr))})});const i=bs(d.map(a=>{const c=l.get(a.element);return this._buildPlayer(a,new Map,c)}));return this._playersById.set(r,i),i.onDestroy(()=>this.destroy(r)),this.players.push(i),i}destroy(r){const e=this._getPlayer(r);e.destroy(),this._playersById.delete(r);const t=this.players.indexOf(e);t>=0&&this.players.splice(t,1)}_getPlayer(r){const e=this._playersById.get(r);if(!e)throw function jB(o){return new _.vHH(3301,!1)}();return e}listen(r,e,t,s){const u=y0(e,"","","");return C0(this._getPlayer(r),t,u,s),()=>{}}command(r,e,t,s){if("register"==t)return void this.register(r,s[0]);if("create"==t)return void this.create(r,e,s[0]||{});const u=this._getPlayer(r);switch(t){case"play":u.play();break;case"pause":u.pause();break;case"reset":u.reset();break;case"restart":u.restart();break;case"finish":u.finish();break;case"init":u.init();break;case"setPosition":u.setPosition(parseFloat(s[0]));break;case"destroy":this.destroy(r)}}}const lD="ng-animate-queued",O0="ng-animate-disabled",UV=[],cD={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},NV={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},hr="__ng_removed";class L0{constructor(r,e=""){this.namespaceId=e;const t=r&&r.hasOwnProperty("value");if(this.value=function WV(o){return o??null}(t?r.value:r),t){const u=qp(r);delete u.value,this.options=u}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(r){const e=r.params;if(e){const t=this.options.params;Object.keys(e).forEach(s=>{null==t[s]&&(t[s]=e[s])})}}}const Gp="void",j0=new L0(Gp);class qV{constructor(r,e,t){this.id=r,this.hostElement=e,this._engine=t,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+r,pr(e,this._hostClassName)}listen(r,e,t,s){if(!this._triggers.has(e))throw function FB(o,r){return new _.vHH(3302,!1)}();if(null==t||0==t.length)throw function UB(o){return new _.vHH(3303,!1)}();if(!function $V(o){return"start"==o||"done"==o}(t))throw function NB(o,r){return new _.vHH(3400,!1)}();const u=jn(this._elementListeners,r,[]),d={name:e,phase:t,callback:s};u.push(d);const l=jn(this._engine.statesByElement,r,new Map);return l.has(e)||(pr(r,Hb),pr(r,Hb+"-"+e),l.set(e,j0)),()=>{this._engine.afterFlush(()=>{const n=u.indexOf(d);n>=0&&u.splice(n,1),this._triggers.has(e)||l.delete(e)})}}register(r,e){return!this._triggers.has(r)&&(this._triggers.set(r,e),!0)}_getTrigger(r){const e=this._triggers.get(r);if(!e)throw function qB(o){return new _.vHH(3401,!1)}();return e}trigger(r,e,t,s=!0){const u=this._getTrigger(e),d=new F0(this.id,e,r);let l=this._engine.statesByElement.get(r);l||(pr(r,Hb),pr(r,Hb+"-"+e),this._engine.statesByElement.set(r,l=new Map));let n=l.get(e);const i=new L0(t,this.id);if(!(t&&t.hasOwnProperty("value"))&&n&&i.absorbOptions(n.options),l.set(e,i),n||(n=j0),i.value!==Gp&&n.value===i.value){if(!function JV(o,r){const e=Object.keys(o),t=Object.keys(r);if(e.length!=t.length)return!1;for(let s=0;s{Nl(r,w),pa(r,R)})}return}const h=jn(this._engine.playersByElement,r,[]);h.forEach(p=>{p.namespaceId==this.id&&p.triggerName==e&&p.queued&&p.destroy()});let f=u.matchTransition(n.value,i.value,r,i.params),m=!1;if(!f){if(!s)return;f=u.fallbackTransition,m=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:r,triggerName:e,transition:f,fromState:n,toState:i,player:d,isFallbackTransition:m}),m||(pr(r,lD),d.onStart(()=>{Qd(r,lD)})),d.onDone(()=>{let p=this.players.indexOf(d);p>=0&&this.players.splice(p,1);const w=this._engine.playersByElement.get(r);if(w){let R=w.indexOf(d);R>=0&&w.splice(R,1)}}),this.players.push(d),h.push(d),d}deregister(r){this._triggers.delete(r),this._engine.statesByElement.forEach(e=>e.delete(r)),this._elementListeners.forEach((e,t)=>{this._elementListeners.set(t,e.filter(s=>s.name!=r))})}clearElementCache(r){this._engine.statesByElement.delete(r),this._elementListeners.delete(r);const e=this._engine.playersByElement.get(r);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(r))}_signalRemovalForInnerTriggers(r,e){const t=this._engine.driver.query(r,Rb,!0);t.forEach(s=>{if(s[hr])return;const u=this._engine.fetchNamespacesByElement(s);u.size?u.forEach(d=>d.triggerLeaveAnimation(s,e,!1,!0)):this.clearElementCache(s)}),this._engine.afterFlushAnimationsDone(()=>t.forEach(s=>this.clearElementCache(s)))}triggerLeaveAnimation(r,e,t,s){const u=this._engine.statesByElement.get(r),d=new Map;if(u){const l=[];if(u.forEach((n,i)=>{if(d.set(i,n.value),this._triggers.has(i)){const a=this.trigger(r,i,Gp,s);a&&l.push(a)}}),l.length)return this._engine.markElementAsRemoved(this.id,r,!0,e,d),t&&bs(l).onDone(()=>this._engine.processLeaveNode(r)),!0}return!1}prepareLeaveAnimationListeners(r){const e=this._elementListeners.get(r),t=this._engine.statesByElement.get(r);if(e&&t){const s=new Set;e.forEach(u=>{const d=u.name;if(s.has(d))return;s.add(d);const n=this._triggers.get(d).fallbackTransition,i=t.get(d)||j0,a=new L0(Gp),c=new F0(this.id,d,r);this._engine.totalQueuedPlayers++,this._queue.push({element:r,triggerName:d,transition:n,fromState:i,toState:a,player:c,isFallbackTransition:!0})})}}removeNode(r,e){const t=this._engine;if(r.childElementCount&&this._signalRemovalForInnerTriggers(r,e),this.triggerLeaveAnimation(r,e,!0))return;let s=!1;if(t.totalAnimations){const u=t.players.length?t.playersByQueriedElement.get(r):[];if(u&&u.length)s=!0;else{let d=r;for(;d=d.parentNode;)if(t.statesByElement.get(d)){s=!0;break}}}if(this.prepareLeaveAnimationListeners(r),s)t.markElementAsRemoved(this.id,r,!1,e);else{const u=r[hr];(!u||u===cD)&&(t.afterFlush(()=>this.clearElementCache(r)),t.destroyInnerAnimations(r),t._onRemovalComplete(r,e))}}insertNode(r,e){pr(r,this._hostClassName)}drainQueuedTransitions(r){const e=[];return this._queue.forEach(t=>{const s=t.player;if(s.destroyed)return;const u=t.element,d=this._elementListeners.get(u);d&&d.forEach(l=>{if(l.name==t.triggerName){const n=y0(u,t.triggerName,t.fromState.value,t.toState.value);n._data=r,C0(t.player,l.phase,n,l.callback)}}),s.markedForDestroy?this._engine.afterFlush(()=>{s.destroy()}):e.push(t)}),this._queue=[],e.sort((t,s)=>{const u=t.transition.ast.depCount,d=s.transition.ast.depCount;return 0==u||0==d?u-d:this._engine.driver.containsElement(t.element,s.element)?1:-1})}destroy(r){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,r)}elementContainsData(r){let e=!1;return this._elementListeners.has(r)&&(e=!0),e=!!this._queue.find(t=>t.element===r)||e,e}}class zV{constructor(r,e,t){this.bodyNode=r,this.driver=e,this._normalizer=t,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=(s,u)=>{}}_onRemovalComplete(r,e){this.onRemovalComplete(r,e)}get queuedPlayers(){const r=[];return this._namespaceList.forEach(e=>{e.players.forEach(t=>{t.queued&&r.push(t)})}),r}createNamespace(r,e){const t=new qV(r,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(t,e):(this.newHostElements.set(e,t),this.collectEnterElement(e)),this._namespaceLookup[r]=t}_balanceNamespaceList(r,e){const t=this._namespaceList,s=this.namespacesByHostElement;if(t.length-1>=0){let d=!1,l=this.driver.getParentElement(e);for(;l;){const n=s.get(l);if(n){const i=t.indexOf(n);t.splice(i+1,0,r),d=!0;break}l=this.driver.getParentElement(l)}d||t.unshift(r)}else t.push(r);return s.set(e,r),r}register(r,e){let t=this._namespaceLookup[r];return t||(t=this.createNamespace(r,e)),t}registerTrigger(r,e,t){let s=this._namespaceLookup[r];s&&s.register(e,t)&&this.totalAnimations++}destroy(r,e){if(!r)return;const t=this._fetchNamespace(r);this.afterFlush(()=>{this.namespacesByHostElement.delete(t.hostElement),delete this._namespaceLookup[r];const s=this._namespaceList.indexOf(t);s>=0&&this._namespaceList.splice(s,1)}),this.afterFlushAnimationsDone(()=>t.destroy(e))}_fetchNamespace(r){return this._namespaceLookup[r]}fetchNamespacesByElement(r){const e=new Set,t=this.statesByElement.get(r);if(t)for(let s of t.values())if(s.namespaceId){const u=this._fetchNamespace(s.namespaceId);u&&e.add(u)}return e}trigger(r,e,t,s){if(qb(e)){const u=this._fetchNamespace(r);if(u)return u.trigger(e,t,s),!0}return!1}insertNode(r,e,t,s){if(!qb(e))return;const u=e[hr];if(u&&u.setForRemoval){u.setForRemoval=!1,u.setForMove=!0;const d=this.collectedLeaveElements.indexOf(e);d>=0&&this.collectedLeaveElements.splice(d,1)}if(r){const d=this._fetchNamespace(r);d&&d.insertNode(e,t)}s&&this.collectEnterElement(e)}collectEnterElement(r){this.collectedEnterElements.push(r)}markElementAsDisabled(r,e){e?this.disabledNodes.has(r)||(this.disabledNodes.add(r),pr(r,O0)):this.disabledNodes.has(r)&&(this.disabledNodes.delete(r),Qd(r,O0))}removeNode(r,e,t,s){if(qb(e)){const u=r?this._fetchNamespace(r):null;if(u?u.removeNode(e,s):this.markElementAsRemoved(r,e,!1,s),t){const d=this.namespacesByHostElement.get(e);d&&d.id!==r&&d.removeNode(e,s)}}else this._onRemovalComplete(e,s)}markElementAsRemoved(r,e,t,s,u){this.collectedLeaveElements.push(e),e[hr]={namespaceId:r,setForRemoval:s,hasAnimation:t,removedBeforeQueried:!1,previousTriggersValues:u}}listen(r,e,t,s,u){return qb(e)?this._fetchNamespace(r).listen(e,t,s,u):()=>{}}_buildInstruction(r,e,t,s,u){return r.transition.build(this.driver,r.element,r.fromState.value,r.toState.value,t,s,r.fromState.options,r.toState.options,e,u)}destroyInnerAnimations(r){let e=this.driver.query(r,Rb,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(r,T0,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(r){const e=this.playersByElement.get(r);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(r){const e=this.playersByQueriedElement.get(r);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(r=>{if(this.players.length)return bs(this.players).onDone(()=>r());r()})}processLeaveNode(r){const e=r[hr];if(e&&e.setForRemoval){if(r[hr]=cD,e.namespaceId){this.destroyInnerAnimations(r);const t=this._fetchNamespace(e.namespaceId);t&&t.clearElementCache(r)}this._onRemovalComplete(r,e.setForRemoval)}r.classList?.contains(O0)&&this.markElementAsDisabled(r,!1),this.driver.query(r,".ng-animate-disabled",!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(r=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,s)=>this._balanceNamespaceList(t,s)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let t=0;tt()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?bs(e).onDone(()=>{t.forEach(s=>s())}):t.forEach(s=>s())}}reportError(r){throw function zB(o){return new _.vHH(3402,!1)}()}_flushAnimations(r,e){const t=new Fb,s=[],u=new Map,d=[],l=new Map,n=new Map,i=new Map,a=new Set;this.disabledNodes.forEach(We=>{a.add(We);const et=this.driver.query(We,".ng-animate-queued",!0);for(let rt=0;rt{const rt=S0+p++;m.set(et,rt),We.forEach(vt=>pr(vt,rt))});const w=[],R=new Set,J=new Set;for(let We=0;WeR.add(vt)):J.add(et))}const Te=new Map,nt=hD(h,Array.from(R));nt.forEach((We,et)=>{const rt=Db+p++;Te.set(et,rt),We.forEach(vt=>pr(vt,rt))}),r.push(()=>{f.forEach((We,et)=>{const rt=m.get(et);We.forEach(vt=>Qd(vt,rt))}),nt.forEach((We,et)=>{const rt=Te.get(et);We.forEach(vt=>Qd(vt,rt))}),w.forEach(We=>{this.processLeaveNode(We)})});const Ai=[],ii=[];for(let We=this._namespaceList.length-1;We>=0;We--)this._namespaceList[We].drainQueuedTransitions(e).forEach(rt=>{const vt=rt.player,Fi=rt.element;if(Ai.push(vt),this.collectedEnterElements.length){const rn=Fi[hr];if(rn&&rn.setForMove){if(rn.previousTriggersValues&&rn.previousTriggersValues.has(rt.triggerName)){const Gl=rn.previousTriggersValues.get(rt.triggerName),mr=this.statesByElement.get(rt.element);if(mr&&mr.has(rt.triggerName)){const Wb=mr.get(rt.triggerName);Wb.value=Gl,mr.set(rt.triggerName,Wb)}}return void vt.destroy()}}const fa=!c||!this.driver.containsElement(c,Fi),Un=Te.get(Fi),ys=m.get(Fi),li=this._buildInstruction(rt,t,ys,Un,fa);if(li.errors&&li.errors.length)return void ii.push(li);if(fa)return vt.onStart(()=>Nl(Fi,li.fromStyles)),vt.onDestroy(()=>pa(Fi,li.toStyles)),void s.push(vt);if(rt.isFallbackTransition)return vt.onStart(()=>Nl(Fi,li.fromStyles)),vt.onDestroy(()=>pa(Fi,li.toStyles)),void s.push(vt);const xD=[];li.timelines.forEach(rn=>{rn.stretchStartingKeyframe=!0,this.disabledNodes.has(rn.element)||xD.push(rn)}),li.timelines=xD,t.append(Fi,li.timelines),d.push({instruction:li,player:vt,element:Fi}),li.queriedElements.forEach(rn=>jn(l,rn,[]).push(vt)),li.preStyleProps.forEach((rn,Gl)=>{if(rn.size){let mr=n.get(Gl);mr||n.set(Gl,mr=new Set),rn.forEach((Wb,q0)=>mr.add(q0))}}),li.postStyleProps.forEach((rn,Gl)=>{let mr=i.get(Gl);mr||i.set(Gl,mr=new Set),rn.forEach((Wb,q0)=>mr.add(q0))})});if(ii.length){const We=[];ii.forEach(et=>{We.push(function GB(o,r){return new _.vHH(3505,!1)}())}),Ai.forEach(et=>et.destroy()),this.reportError(We)}const hi=new Map,un=new Map;d.forEach(We=>{const et=We.element;t.has(et)&&(un.set(et,et),this._beforeAnimationBuild(We.player.namespaceId,We.instruction,hi))}),s.forEach(We=>{const et=We.element;this._getPreviousPlayers(et,!1,We.namespaceId,We.triggerName,null).forEach(vt=>{jn(hi,et,[]).push(vt),vt.destroy()})});const fr=w.filter(We=>fD(We,n,i)),lo=new Map;uD(lo,this.driver,J,i,Dr).forEach(We=>{fD(We,n,i)&&fr.push(We)});const Wp=new Map;f.forEach((We,et)=>{uD(Wp,this.driver,new Set(We),n,"!")}),fr.forEach(We=>{const et=lo.get(We),rt=Wp.get(We);lo.set(We,new Map([...Array.from(et?.entries()??[]),...Array.from(rt?.entries()??[])]))});const zl=[],vD=[],AD={};d.forEach(We=>{const{element:et,player:rt,instruction:vt}=We;if(t.has(et)){if(a.has(et))return rt.onDestroy(()=>pa(et,vt.toStyles)),rt.disabled=!0,rt.overrideTotalTime(vt.totalTime),void s.push(rt);let Fi=AD;if(un.size>1){let Un=et;const ys=[];for(;Un=Un.parentNode;){const li=un.get(Un);if(li){Fi=li;break}ys.push(Un)}ys.forEach(li=>un.set(li,Fi))}const fa=this._buildAnimation(rt.namespaceId,vt,hi,u,Wp,lo);if(rt.setRealPlayer(fa),Fi===AD)zl.push(rt);else{const Un=this.playersByElement.get(Fi);Un&&Un.length&&(rt.parentPlayer=bs(Un)),s.push(rt)}}else Nl(et,vt.fromStyles),rt.onDestroy(()=>pa(et,vt.toStyles)),vD.push(rt),a.has(et)&&s.push(rt)}),vD.forEach(We=>{const et=u.get(We.element);if(et&&et.length){const rt=bs(et);We.setRealPlayer(rt)}}),s.forEach(We=>{We.parentPlayer?We.syncPlayerEvents(We.parentPlayer):We.destroy()});for(let We=0;We!fa.destroyed);Fi.length?QV(this,et,Fi):this.processLeaveNode(et)}return w.length=0,zl.forEach(We=>{this.players.push(We),We.onDone(()=>{We.destroy();const et=this.players.indexOf(We);this.players.splice(et,1)}),We.play()}),zl}elementContainsData(r,e){let t=!1;const s=e[hr];return s&&s.setForRemoval&&(t=!0),this.playersByElement.has(e)&&(t=!0),this.playersByQueriedElement.has(e)&&(t=!0),this.statesByElement.has(e)&&(t=!0),this._fetchNamespace(r).elementContainsData(e)||t}afterFlush(r){this._flushFns.push(r)}afterFlushAnimationsDone(r){this._whenQuietFns.push(r)}_getPreviousPlayers(r,e,t,s,u){let d=[];if(e){const l=this.playersByQueriedElement.get(r);l&&(d=l)}else{const l=this.playersByElement.get(r);if(l){const n=!u||u==Gp;l.forEach(i=>{i.queued||!n&&i.triggerName!=s||d.push(i)})}}return(t||s)&&(d=d.filter(l=>!(t&&t!=l.namespaceId||s&&s!=l.triggerName))),d}_beforeAnimationBuild(r,e,t){const u=e.element,d=e.isRemovalTransition?void 0:r,l=e.isRemovalTransition?void 0:e.triggerName;for(const n of e.timelines){const i=n.element,a=i!==u,c=jn(t,i,[]);this._getPreviousPlayers(i,a,d,l,e.toState).forEach(f=>{const m=f.getRealPlayer();m.beforeDestroy&&m.beforeDestroy(),f.destroy(),c.push(f)})}Nl(u,e.fromStyles)}_buildAnimation(r,e,t,s,u,d){const l=e.triggerName,n=e.element,i=[],a=new Set,c=new Set,h=e.timelines.map(m=>{const p=m.element;a.add(p);const w=p[hr];if(w&&w.removedBeforeQueried)return new Bn(m.duration,m.delay);const R=p!==n,J=function YV(o){const r=[];return pD(o,r),r}((t.get(p)||UV).map(hi=>hi.getRealPlayer())).filter(hi=>!!hi.element&&hi.element===p),Te=u.get(p),nt=d.get(p),Ai=jM(0,this._normalizer,0,m.keyframes,Te,nt),ii=this._buildPlayer(m,Ai,J);if(m.subTimeline&&s&&c.add(p),R){const hi=new F0(r,l,p);hi.setRealPlayer(ii),i.push(hi)}return ii});i.forEach(m=>{jn(this.playersByQueriedElement,m.element,[]).push(m),m.onDone(()=>function GV(o,r,e){let t=o.get(r);if(t){if(t.length){const s=t.indexOf(e);t.splice(s,1)}0==t.length&&o.delete(r)}return t}(this.playersByQueriedElement,m.element,m))}),a.forEach(m=>pr(m,QM));const f=bs(h);return f.onDestroy(()=>{a.forEach(m=>Qd(m,QM)),pa(n,e.toStyles)}),c.forEach(m=>{jn(s,m,[]).push(f)}),f}_buildPlayer(r,e,t){return e.length>0?this.driver.animate(r.element,e,r.duration,r.delay,r.easing,t):new Bn(r.duration,r.delay)}}class F0{constructor(r,e,t){this.namespaceId=r,this.triggerName=e,this.element=t,this._player=new Bn,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(r){this._containsRealPlayer||(this._player=r,this._queuedCallbacks.forEach((e,t)=>{e.forEach(s=>C0(r,t,void 0,s))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(r.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(r){this.totalTime=r}syncPlayerEvents(r){const e=this._player;e.triggerCallback&&r.onStart(()=>e.triggerCallback("start")),r.onDone(()=>this.finish()),r.onDestroy(()=>this.destroy())}_queueEvent(r,e){jn(this._queuedCallbacks,r,[]).push(e)}onDone(r){this.queued&&this._queueEvent("done",r),this._player.onDone(r)}onStart(r){this.queued&&this._queueEvent("start",r),this._player.onStart(r)}onDestroy(r){this.queued&&this._queueEvent("destroy",r),this._player.onDestroy(r)}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(r){this.queued||this._player.setPosition(r)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(r){const e=this._player;e.triggerCallback&&e.triggerCallback(r)}}function qb(o){return o&&1===o.nodeType}function dD(o,r){const e=o.style.display;return o.style.display=r??"none",e}function uD(o,r,e,t,s){const u=[];e.forEach(n=>u.push(dD(n)));const d=[];t.forEach((n,i)=>{const a=new Map;n.forEach(c=>{const h=r.computeStyle(i,c,s);a.set(c,h),(!h||0==h.length)&&(i[hr]=NV,d.push(i))}),o.set(i,a)});let l=0;return e.forEach(n=>dD(n,u[l++])),d}function hD(o,r){const e=new Map;if(o.forEach(l=>e.set(l,[])),0==r.length)return e;const s=new Set(r),u=new Map;function d(l){if(!l)return 1;let n=u.get(l);if(n)return n;const i=l.parentNode;return n=e.has(i)?i:s.has(i)?1:d(i),u.set(l,n),n}return r.forEach(l=>{const n=d(l);1!==n&&e.get(n).push(l)}),e}function pr(o,r){o.classList?.add(r)}function Qd(o,r){o.classList?.remove(r)}function QV(o,r,e){bs(e).onDone(()=>o.processLeaveNode(r))}function pD(o,r){for(let e=0;es.add(u)):r.set(o,t),e.delete(o),!0}class zb{constructor(r,e,t){this.bodyNode=r,this._driver=e,this._normalizer=t,this._triggerCache={},this.onRemovalComplete=(s,u)=>{},this._transitionEngine=new zV(r,e,t),this._timelineEngine=new VV(r,e,t),this._transitionEngine.onRemovalComplete=(s,u)=>this.onRemovalComplete(s,u)}registerTrigger(r,e,t,s,u){const d=r+"-"+s;let l=this._triggerCache[d];if(!l){const n=[],a=H0(this._driver,u,n,[]);if(n.length)throw function kB(o,r){return new _.vHH(3404,!1)}();l=function PV(o,r,e){return new IV(o,r,e)}(s,a,this._normalizer),this._triggerCache[d]=l}this._transitionEngine.registerTrigger(e,s,l)}register(r,e){this._transitionEngine.register(r,e)}destroy(r,e){this._transitionEngine.destroy(r,e)}onInsert(r,e,t,s){this._transitionEngine.insertNode(r,e,t,s)}onRemove(r,e,t,s){this._transitionEngine.removeNode(r,e,s||!1,t)}disableAnimations(r,e){this._transitionEngine.markElementAsDisabled(r,e)}process(r,e,t,s){if("@"==t.charAt(0)){const[u,d]=FM(t);this._timelineEngine.command(u,e,d,s)}else this._transitionEngine.trigger(r,e,t,s)}listen(r,e,t,s,u){if("@"==t.charAt(0)){const[d,l]=FM(t);return this._timelineEngine.listen(d,e,l,u)}return this._transitionEngine.listen(r,e,t,s,u)}flush(r=-1){this._transitionEngine.flush(r)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let ZV=(()=>{class o{constructor(e,t,s){this._element=e,this._startStyles=t,this._endStyles=s,this._state=0;let u=o.initialStylesByElement.get(e);u||o.initialStylesByElement.set(e,u=new Map),this._initialStyles=u}start(){this._state<1&&(this._startStyles&&pa(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(pa(this._element,this._initialStyles),this._endStyles&&(pa(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(o.initialStylesByElement.delete(this._element),this._startStyles&&(Nl(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Nl(this._element,this._endStyles),this._endStyles=null),pa(this._element,this._initialStyles),this._state=3)}}return o.initialStylesByElement=new WeakMap,o})();function U0(o){let r=null;return o.forEach((e,t)=>{(function XV(o){return"display"===o||"position"===o})(t)&&(r=r||new Map,r.set(t,e))}),r}class mD{constructor(r,e,t,s){this.element=r,this.keyframes=e,this.options=t,this._specialStyles=s,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=t.duration,this._delay=t.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(r=>r()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const r=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,r,this.options),this._finalKeyframe=r.length?r[r.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(r){const e=[];return r.forEach(t=>{e.push(Object.fromEntries(t))}),e}_triggerWebAnimation(r,e,t){return r.animate(this._convertKeyframesToObject(e),t)}onStart(r){this._originalOnStartFns.push(r),this._onStartFns.push(r)}onDone(r){this._originalOnDoneFns.push(r),this._onDoneFns.push(r)}onDestroy(r){this._onDestroyFns.push(r)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(r=>r()),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,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_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(r=>r()),this._onDestroyFns=[])}setPosition(r){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=r*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const r=new Map;this.hasStarted()&&this._finalKeyframe.forEach((t,s)=>{"offset"!==s&&r.set(s,this._finished?t:eD(this.element,s))}),this.currentSnapshot=r}triggerCallback(r){const e="start"===r?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class eO{validateStyleProperty(r){return!0}validateAnimatableStyleProperty(r){return!0}matchesElement(r,e){return!1}containsElement(r,e){return zM(r,e)}getParentElement(r){return A0(r)}query(r,e,t){return GM(r,e,t)}computeStyle(r,e,t){return window.getComputedStyle(r)[e]}animate(r,e,t,s,u,d=[]){const n={duration:t,delay:s,fill:0==s?"both":"forwards"};u&&(n.easing=u);const i=new Map,a=d.filter(f=>f instanceof mD);(function rV(o,r){return 0===o||0===r})(t,s)&&a.forEach(f=>{f.currentSnapshot.forEach((m,p)=>i.set(p,m))});let c=function eV(o){return o.length?o[0]instanceof Map?o:o.map(r=>YM(r)):[]}(e).map(f=>ws(f));c=function aV(o,r,e){if(e.size&&r.length){let t=r[0],s=[];if(e.forEach((u,d)=>{t.has(d)||s.push(d),t.set(d,u)}),s.length)for(let u=1;ud.set(l,eD(o,l)))}}return r}(r,c,i);const h=function KV(o,r){let e=null,t=null;return Array.isArray(r)&&r.length?(e=U0(r[0]),r.length>1&&(t=U0(r[r.length-1]))):r instanceof Map&&(e=U0(r)),e||t?new ZV(o,e,t):null}(r,c);return new mD(r,c,n,h)}}let tO=(()=>{class o extends ig{constructor(e,t){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(t.body,{id:"0",encapsulation:_.ifc.None,styles:[],data:{animation:[]}})}build(e){const t=this._nextAnimationId.toString();this._nextAnimationId++;const s=Array.isArray(e)?dl(e):e;return gD(this._renderer,null,t,"register",[s]),new iO(t,this._renderer)}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(_.FYo),_.LFG(M.K0))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac}),o})();class iO extends class by{}{constructor(r,e){super(),this._id=r,this._renderer=e}create(r,e){return new nO(this._id,r,e||{},this._renderer)}}class nO{constructor(r,e,t,s){this.id=r,this.element=e,this._renderer=s,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",t)}_listen(r,e){return this._renderer.listen(this.element,`@@${this.id}:${r}`,e)}_command(r,...e){return gD(this._renderer,this.element,this.id,r,e)}onDone(r){this._listen("done",r)}onStart(r){this._listen("start",r)}onDestroy(r){this._listen("destroy",r)}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"),this._started=!1}setPosition(r){this._command("setPosition",r)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function gD(o,r,e,t,s){return o.setProperty(r,`@@${e}:${t}`,s)}const _D="@.disabled";let rO=(()=>{class o{constructor(e,t,s){this.delegate=e,this.engine=t,this._zone=s,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),t.onRemovalComplete=(u,d)=>{const l=d?.parentNode(u);l&&d.removeChild(l,u)}}createRenderer(e,t){const u=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){let a=this._rendererCache.get(u);return a||(a=new bD("",u,this.engine),this._rendererCache.set(u,a)),a}const d=t.id,l=t.id+"-"+this._currentId;this._currentId++,this.engine.register(l,e);const n=a=>{Array.isArray(a)?a.forEach(n):this.engine.registerTrigger(d,l,e,a.name,a)};return t.data.animation.forEach(n),new aO(this,l,u,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,s){e>=0&&et(s)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(u=>{const[d,l]=u;d(l)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,s]))}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 o.\u0275fac=function(e){return new(e||o)(_.LFG(_.FYo),_.LFG(zb),_.LFG(_.R0b))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac}),o})();class bD{constructor(r,e,t){this.namespaceId=r,this.delegate=e,this.engine=t,this.destroyNode=this.delegate.destroyNode?s=>e.destroyNode(s):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(r,e){return this.delegate.createElement(r,e)}createComment(r){return this.delegate.createComment(r)}createText(r){return this.delegate.createText(r)}appendChild(r,e){this.delegate.appendChild(r,e),this.engine.onInsert(this.namespaceId,e,r,!1)}insertBefore(r,e,t,s=!0){this.delegate.insertBefore(r,e,t),this.engine.onInsert(this.namespaceId,e,r,s)}removeChild(r,e,t){this.engine.onRemove(this.namespaceId,e,this.delegate,t)}selectRootElement(r,e){return this.delegate.selectRootElement(r,e)}parentNode(r){return this.delegate.parentNode(r)}nextSibling(r){return this.delegate.nextSibling(r)}setAttribute(r,e,t,s){this.delegate.setAttribute(r,e,t,s)}removeAttribute(r,e,t){this.delegate.removeAttribute(r,e,t)}addClass(r,e){this.delegate.addClass(r,e)}removeClass(r,e){this.delegate.removeClass(r,e)}setStyle(r,e,t,s){this.delegate.setStyle(r,e,t,s)}removeStyle(r,e,t){this.delegate.removeStyle(r,e,t)}setProperty(r,e,t){"@"==e.charAt(0)&&e==_D?this.disableAnimations(r,!!t):this.delegate.setProperty(r,e,t)}setValue(r,e){this.delegate.setValue(r,e)}listen(r,e,t){return this.delegate.listen(r,e,t)}disableAnimations(r,e){this.engine.disableAnimations(r,e)}}class aO extends bD{constructor(r,e,t,s){super(e,t,s),this.factory=r,this.namespaceId=e}setProperty(r,e,t){"@"==e.charAt(0)?"."==e.charAt(1)&&e==_D?this.disableAnimations(r,t=void 0===t||!!t):this.engine.process(this.namespaceId,r,e.slice(1),t):this.delegate.setProperty(r,e,t)}listen(r,e,t){if("@"==e.charAt(0)){const s=function oO(o){switch(o){case"body":return document.body;case"document":return document;case"window":return window;default:return o}}(r);let u=e.slice(1),d="";return"@"!=u.charAt(0)&&([u,d]=function sO(o){const r=o.indexOf(".");return[o.substring(0,r),o.slice(r+1)]}(u)),this.engine.listen(this.namespaceId,s,u,d,l=>{this.factory.scheduleListenerCallback(l._data||-1,t,l)})}return this.delegate.listen(r,e,t)}}const CD=[{provide:ig,useClass:tO},{provide:B0,useFactory:function cO(){return new MV}},{provide:zb,useClass:(()=>{class o extends zb{constructor(e,t,s,u){super(e.body,t,s)}ngOnDestroy(){this.flush()}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(M.K0),_.LFG(x0),_.LFG(B0),_.LFG(_.z2F))},o.\u0275prov=_.Yz7({token:o,factory:o.\u0275fac}),o})()},{provide:_.FYo,useFactory:function dO(o,r,e){return new rO(o,r,e)},deps:[pe,zb,_.R0b]}],N0=[{provide:x0,useFactory:()=>new eO},{provide:_.QbO,useValue:"BrowserAnimations"},...CD],wD=[{provide:x0,useClass:WM},{provide:_.QbO,useValue:"NoopAnimations"},...CD];let uO=(()=>{class o{static withConfig(e){return{ngModule:o,providers:e.disableAnimations?wD:N0}}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=_.oAB({type:o}),o.\u0275inj=_.cJS({providers:N0,imports:[_a]}),o})();const hO={provide:v.TP,useExisting:(0,_.Gpc)(()=>fs),multi:!0};function pO(o){return new TH(o,"./assets/i18n/",".json")}function fO(o){const r={basePath:o.getProperty("api_url")};return new st(r)}const mO=o=>()=>o.loadConfigs();let gO=(()=>{class o{constructor(e,t){this.customIconService=e,this.translate=t,this.translate.setDefaultLang("en"),this.translate.use("en"),this.customIconService.registerPerunRefreshIcon()}}return o.\u0275fac=function(e){return new(e||o)(_.LFG(nA),_.LFG(sa))},o.\u0275mod=_.oAB({type:o,bootstrap:[Oo]}),o.\u0275inj=_.cJS({providers:[nA,{provide:_.ip1,useFactory:mO,multi:!0,deps:[HH]},{provide:st,useFactory:fO,deps:[On]},fs,hO,{provide:RH,useClass:rp},{provide:Qr.Hy,useFactory:()=>localStorage}],imports:[_a,uO,v.JF,Xv,SH,s0,cB,aa,RM,l0,Ig,uB,Qr.zr.forRoot(),hB,lr.forRoot({loader:{provide:cs,useFactory:pO,deps:[v.eN]}})]}),o})();(0,_.G48)(),Ke().bootstrapModule(gO).catch(o=>console.error(o))},1302:function(N,z,E){var M;!function(_,L){var F={};!function(_){"use strict";_.__esModule=!0,_.digestLength=32,_.blockSize=64;var L=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function F(oe,ie,ae,he,fe){for(var be,Le,Fe,Ae,Ce,xe,Je,Pe,Re,He,le,ce,ge;fe>=64;){for(be=ie[0],Le=ie[1],Fe=ie[2],Ae=ie[3],Ce=ie[4],xe=ie[5],Je=ie[6],Pe=ie[7],He=0;He<16;He++)oe[He]=(255&ae[le=he+4*He])<<24|(255&ae[le+1])<<16|(255&ae[le+2])<<8|255&ae[le+3];for(He=16;He<64;He++)oe[He]=((ce=((Re=oe[He-2])>>>17|Re<<15)^(Re>>>19|Re<<13)^Re>>>10)+oe[He-7]|0)+((ge=((Re=oe[He-15])>>>7|Re<<25)^(Re>>>18|Re<<14)^Re>>>3)+oe[He-16]|0);for(He=0;He<64;He++)ce=(((Ce>>>6|Ce<<26)^(Ce>>>11|Ce<<21)^(Ce>>>25|Ce<<7))+(Ce&xe^~Ce&Je)|0)+(Pe+(L[He]+oe[He]|0)|0)|0,ge=((be>>>2|be<<30)^(be>>>13|be<<19)^(be>>>22|be<<10))+(be&Le^be&Fe^Le&Fe)|0,Pe=Je,Je=xe,xe=Ce,Ce=Ae+ce|0,Ae=Fe,Fe=Le,Le=be,be=ce+ge|0;ie[0]+=be,ie[1]+=Le,ie[2]+=Fe,ie[3]+=Ae,ie[4]+=Ce,ie[5]+=xe,ie[6]+=Je,ie[7]+=Pe,he+=64,fe-=64}return he}var V=function(){function oe(){this.digestLength=_.digestLength,this.blockSize=_.blockSize,this.state=new Int32Array(8),this.temp=new Int32Array(64),this.buffer=new Uint8Array(128),this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this.reset()}return oe.prototype.reset=function(){return this.state[0]=1779033703,this.state[1]=3144134277,this.state[2]=1013904242,this.state[3]=2773480762,this.state[4]=1359893119,this.state[5]=2600822924,this.state[6]=528734635,this.state[7]=1541459225,this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this},oe.prototype.clean=function(){for(var ie=0;ie0){for(;this.bufferLength<64&&ae>0;)this.buffer[this.bufferLength++]=ie[he++],ae--;64===this.bufferLength&&(F(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(ae>=64&&(he=F(this.temp,this.state,ie,he,ae),ae%=64);ae>0;)this.buffer[this.bufferLength++]=ie[he++],ae--;return this},oe.prototype.finish=function(ie){if(!this.finished){var ae=this.bytesHashed,he=this.bufferLength,fe=ae/536870912|0,be=ae<<3,Le=ae%64<56?64:128;this.buffer[he]=128;for(var Fe=he+1;Fe>>24&255,this.buffer[Le-7]=fe>>>16&255,this.buffer[Le-6]=fe>>>8&255,this.buffer[Le-5]=fe>>>0&255,this.buffer[Le-4]=be>>>24&255,this.buffer[Le-3]=be>>>16&255,this.buffer[Le-2]=be>>>8&255,this.buffer[Le-1]=be>>>0&255,F(this.temp,this.state,this.buffer,0,Le),this.finished=!0}for(Fe=0;Fe<8;Fe++)ie[4*Fe+0]=this.state[Fe]>>>24&255,ie[4*Fe+1]=this.state[Fe]>>>16&255,ie[4*Fe+2]=this.state[Fe]>>>8&255,ie[4*Fe+3]=this.state[Fe]>>>0&255;return this},oe.prototype.digest=function(){var ie=new Uint8Array(this.digestLength);return this.finish(ie),ie},oe.prototype._saveState=function(ie){for(var ae=0;aethis.blockSize)(new V).update(ie).finish(ae).clean();else for(var he=0;he1&&ie.update(oe),ae&&ie.update(ae),ie.update(he),ie.finish(oe),he[0]++}_.HMAC=q,_.hash=Q,_.default=Q,_.hmac=ee;var Y=new Uint8Array(_.digestLength);_.hkdf=function G(oe,ie,ae,he){void 0===ie&&(ie=Y),void 0===he&&(he=32);for(var fe=new Uint8Array([1]),be=ee(ie,oe),Le=new q(be),Fe=new Uint8Array(Le.digestLength),Ae=Fe.length,Ce=new Uint8Array(he),xe=0;xe>>24&255,Le[1]=Je>>>16&255,Le[2]=Je>>>8&255,Le[3]=Je>>>0&255,fe.reset(),fe.update(ie),fe.update(Le),fe.finish(Ae);for(var Pe=0;Pe=G.status}function q(Y){try{Y.dispatchEvent(new MouseEvent("click"))}catch{var G=document.createEvent("MouseEvents");G.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),Y.dispatchEvent(G)}}var Q="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,ee=Q.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),W=Q.saveAs||("object"!=typeof window||window!==Q?function(){}:"download"in HTMLAnchorElement.prototype&&!ee?function(Y,G,re){var oe=Q.URL||Q.webkitURL,ie=document.createElement("a");ie.download=G=G||Y.name||"download",ie.rel="noopener","string"==typeof Y?(ie.href=Y,ie.origin===location.origin?q(ie):V(ie.href)?F(Y,G,re):q(ie,ie.target="_blank")):(ie.href=oe.createObjectURL(Y),setTimeout(function(){oe.revokeObjectURL(ie.href)},4e4),setTimeout(function(){q(ie)},0))}:"msSaveOrOpenBlob"in navigator?function(Y,G,re){if(G=G||Y.name||"download","string"!=typeof Y)navigator.msSaveOrOpenBlob(function L(Y,G){return typeof G>"u"?G={autoBom:!1}:"object"!=typeof G&&(console.warn("Deprecated: Expected third argument to be a object"),G={autoBom:!G}),G.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(Y.type)?new Blob(["\ufeff",Y],{type:Y.type}):Y}(Y,re),G);else if(V(Y))F(Y,G,re);else{var oe=document.createElement("a");oe.href=Y,oe.target="_blank",setTimeout(function(){q(oe)})}}:function(Y,G,re,oe){if((oe=oe||open("","_blank"))&&(oe.document.title=oe.document.body.innerText="downloading..."),"string"==typeof Y)return F(Y,G,re);var ie="application/octet-stream"===Y.type,ae=/constructor/i.test(Q.HTMLElement)||Q.safari,he=/CriOS\/[\d]+/.test(navigator.userAgent);if((he||ie&&ae||ee)&&typeof FileReader<"u"){var fe=new FileReader;fe.onloadend=function(){var Fe=fe.result;Fe=he?Fe:Fe.replace(/^data:[^;]*;/,"data:attachment/file;"),oe?oe.location.href=Fe:location=Fe,oe=null},fe.readAsDataURL(Y)}else{var be=Q.URL||Q.webkitURL,Le=be.createObjectURL(Y);oe?oe.location=Le:location.href=Le,oe=null,setTimeout(function(){be.revokeObjectURL(Le)},4e4)}});Q.saveAs=W.saveAs=W,N.exports=W}.apply(z,[]))&&(N.exports=_)},9751:(N,z,E)=>{"use strict";E.d(z,{y:()=>ee});var M=E(930),_=E(727),L=E(8822),F=E(9635),V=E(2416),q=E(576),Q=E(2806);let ee=(()=>{class re{constructor(ie){ie&&(this._subscribe=ie)}lift(ie){const ae=new re;return ae.source=this,ae.operator=ie,ae}subscribe(ie,ae,he){const fe=function G(re){return re&&re instanceof M.Lv||function Y(re){return re&&(0,q.m)(re.next)&&(0,q.m)(re.error)&&(0,q.m)(re.complete)}(re)&&(0,_.Nn)(re)}(ie)?ie:new M.Hp(ie,ae,he);return(0,Q.x)(()=>{const{operator:be,source:Le}=this;fe.add(be?be.call(fe,Le):Le?this._subscribe(fe):this._trySubscribe(fe))}),fe}_trySubscribe(ie){try{return this._subscribe(ie)}catch(ae){ie.error(ae)}}forEach(ie,ae){return new(ae=W(ae))((he,fe)=>{const be=new M.Hp({next:Le=>{try{ie(Le)}catch(Fe){fe(Fe),be.unsubscribe()}},error:fe,complete:he});this.subscribe(be)})}_subscribe(ie){var ae;return null===(ae=this.source)||void 0===ae?void 0:ae.subscribe(ie)}[L.L](){return this}pipe(...ie){return(0,F.U)(ie)(this)}toPromise(ie){return new(ie=W(ie))((ae,he)=>{let fe;this.subscribe(be=>fe=be,be=>he(be),()=>ae(fe))})}}return re.create=oe=>new re(oe),re})();function W(re){var oe;return null!==(oe=re??V.v.Promise)&&void 0!==oe?oe:Promise}},7579:(N,z,E)=>{"use strict";E.d(z,{x:()=>Q});var M=E(9751),_=E(727);const F=(0,E(3888).d)(W=>function(){W(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var V=E(8737),q=E(2806);let Q=(()=>{class W extends M.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(G){const re=new ee(this,this);return re.operator=G,re}_throwIfClosed(){if(this.closed)throw new F}next(G){(0,q.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const re of this.currentObservers)re.next(G)}})}error(G){(0,q.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=G;const{observers:re}=this;for(;re.length;)re.shift().error(G)}})}complete(){(0,q.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:G}=this;for(;G.length;)G.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var G;return(null===(G=this.observers)||void 0===G?void 0:G.length)>0}_trySubscribe(G){return this._throwIfClosed(),super._trySubscribe(G)}_subscribe(G){return this._throwIfClosed(),this._checkFinalizedStatuses(G),this._innerSubscribe(G)}_innerSubscribe(G){const{hasError:re,isStopped:oe,observers:ie}=this;return re||oe?_.Lc:(this.currentObservers=null,ie.push(G),new _.w0(()=>{this.currentObservers=null,(0,V.P)(ie,G)}))}_checkFinalizedStatuses(G){const{hasError:re,thrownError:oe,isStopped:ie}=this;re?G.error(oe):ie&&G.complete()}asObservable(){const G=new M.y;return G.source=this,G}}return W.create=(Y,G)=>new ee(Y,G),W})();class ee extends Q{constructor(Y,G){super(),this.destination=Y,this.source=G}next(Y){var G,re;null===(re=null===(G=this.destination)||void 0===G?void 0:G.next)||void 0===re||re.call(G,Y)}error(Y){var G,re;null===(re=null===(G=this.destination)||void 0===G?void 0:G.error)||void 0===re||re.call(G,Y)}complete(){var Y,G;null===(G=null===(Y=this.destination)||void 0===Y?void 0:Y.complete)||void 0===G||G.call(Y)}_subscribe(Y){var G,re;return null!==(re=null===(G=this.source)||void 0===G?void 0:G.subscribe(Y))&&void 0!==re?re:_.Lc}}},930:(N,z,E)=>{"use strict";E.d(z,{Hp:()=>he,Lv:()=>re});var M=E(576),_=E(727),L=E(2416),F=E(7849),V=E(5032);const q=W("C",void 0,void 0);function W(Ae,Ce,xe){return{kind:Ae,value:Ce,error:xe}}var Y=E(3410),G=E(2806);class re extends _.w0{constructor(Ce){super(),this.isStopped=!1,Ce?(this.destination=Ce,(0,_.Nn)(Ce)&&Ce.add(this)):this.destination=Fe}static create(Ce,xe,Je){return new he(Ce,xe,Je)}next(Ce){this.isStopped?Le(function ee(Ae){return W("N",Ae,void 0)}(Ce),this):this._next(Ce)}error(Ce){this.isStopped?Le(function Q(Ae){return W("E",void 0,Ae)}(Ce),this):(this.isStopped=!0,this._error(Ce))}complete(){this.isStopped?Le(q,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(Ce){this.destination.next(Ce)}_error(Ce){try{this.destination.error(Ce)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const oe=Function.prototype.bind;function ie(Ae,Ce){return oe.call(Ae,Ce)}class ae{constructor(Ce){this.partialObserver=Ce}next(Ce){const{partialObserver:xe}=this;if(xe.next)try{xe.next(Ce)}catch(Je){fe(Je)}}error(Ce){const{partialObserver:xe}=this;if(xe.error)try{xe.error(Ce)}catch(Je){fe(Je)}else fe(Ce)}complete(){const{partialObserver:Ce}=this;if(Ce.complete)try{Ce.complete()}catch(xe){fe(xe)}}}class he extends re{constructor(Ce,xe,Je){let Pe;if(super(),(0,M.m)(Ce)||!Ce)Pe={next:Ce??void 0,error:xe??void 0,complete:Je??void 0};else{let Re;this&&L.v.useDeprecatedNextContext?(Re=Object.create(Ce),Re.unsubscribe=()=>this.unsubscribe(),Pe={next:Ce.next&&ie(Ce.next,Re),error:Ce.error&&ie(Ce.error,Re),complete:Ce.complete&&ie(Ce.complete,Re)}):Pe=Ce}this.destination=new ae(Pe)}}function fe(Ae){L.v.useDeprecatedSynchronousErrorHandling?(0,G.O)(Ae):(0,F.h)(Ae)}function Le(Ae,Ce){const{onStoppedNotification:xe}=L.v;xe&&Y.z.setTimeout(()=>xe(Ae,Ce))}const Fe={closed:!0,next:V.Z,error:function be(Ae){throw Ae},complete:V.Z}},727:(N,z,E)=>{"use strict";E.d(z,{Lc:()=>q,w0:()=>V,Nn:()=>Q});var M=E(576);const L=(0,E(3888).d)(W=>function(G){W(this),this.message=G?`${G.length} errors occurred during unsubscription:\n${G.map((re,oe)=>`${oe+1}) ${re.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=G});var F=E(8737);class V{constructor(Y){this.initialTeardown=Y,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let Y;if(!this.closed){this.closed=!0;const{_parentage:G}=this;if(G)if(this._parentage=null,Array.isArray(G))for(const ie of G)ie.remove(this);else G.remove(this);const{initialTeardown:re}=this;if((0,M.m)(re))try{re()}catch(ie){Y=ie instanceof L?ie.errors:[ie]}const{_finalizers:oe}=this;if(oe){this._finalizers=null;for(const ie of oe)try{ee(ie)}catch(ae){Y=Y??[],ae instanceof L?Y=[...Y,...ae.errors]:Y.push(ae)}}if(Y)throw new L(Y)}}add(Y){var G;if(Y&&Y!==this)if(this.closed)ee(Y);else{if(Y instanceof V){if(Y.closed||Y._hasParent(this))return;Y._addParent(this)}(this._finalizers=null!==(G=this._finalizers)&&void 0!==G?G:[]).push(Y)}}_hasParent(Y){const{_parentage:G}=this;return G===Y||Array.isArray(G)&&G.includes(Y)}_addParent(Y){const{_parentage:G}=this;this._parentage=Array.isArray(G)?(G.push(Y),G):G?[G,Y]:Y}_removeParent(Y){const{_parentage:G}=this;G===Y?this._parentage=null:Array.isArray(G)&&(0,F.P)(G,Y)}remove(Y){const{_finalizers:G}=this;G&&(0,F.P)(G,Y),Y instanceof V&&Y._removeParent(this)}}V.EMPTY=(()=>{const W=new V;return W.closed=!0,W})();const q=V.EMPTY;function Q(W){return W instanceof V||W&&"closed"in W&&(0,M.m)(W.remove)&&(0,M.m)(W.add)&&(0,M.m)(W.unsubscribe)}function ee(W){(0,M.m)(W)?W():W.unsubscribe()}},2416:(N,z,E)=>{"use strict";E.d(z,{v:()=>M});const M={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9841:(N,z,E)=>{"use strict";E.d(z,{a:()=>Y});var M=E(9751),_=E(4742),L=E(2076),F=E(4671),V=E(3268),q=E(3269),Q=E(1810),ee=E(5403),W=E(9672);function Y(...oe){const ie=(0,q.yG)(oe),ae=(0,q.jO)(oe),{args:he,keys:fe}=(0,_.D)(oe);if(0===he.length)return(0,L.D)([],ie);const be=new M.y(function G(oe,ie,ae=F.y){return he=>{re(ie,()=>{const{length:fe}=oe,be=new Array(fe);let Le=fe,Fe=fe;for(let Ae=0;Ae{const Ce=(0,L.D)(oe[Ae],ie);let xe=!1;Ce.subscribe((0,ee.x)(he,Je=>{be[Ae]=Je,xe||(xe=!0,Fe--),Fe||he.next(ae(be.slice()))},()=>{--Le||he.complete()}))},he)},he)}}(he,ie,fe?Le=>(0,Q.n)(fe,Le):F.y));return ae?be.pipe((0,V.Z)(ae)):be}function re(oe,ie,ae){oe?(0,W.f)(ae,oe,ie):ie()}},7272:(N,z,E)=>{"use strict";E.d(z,{z:()=>V});var M=E(8189),L=E(3269),F=E(2076);function V(...q){return function _(){return(0,M.J)(1)}()((0,F.D)(q,(0,L.yG)(q)))}},515:(N,z,E)=>{"use strict";E.d(z,{E:()=>_});const _=new(E(9751).y)(V=>V.complete())},2076:(N,z,E)=>{"use strict";E.d(z,{D:()=>Je});var M=E(8421),_=E(9672),L=E(4482),F=E(5403);function V(Pe,Re=0){return(0,L.e)((He,le)=>{He.subscribe((0,F.x)(le,ce=>(0,_.f)(le,Pe,()=>le.next(ce),Re),()=>(0,_.f)(le,Pe,()=>le.complete(),Re),ce=>(0,_.f)(le,Pe,()=>le.error(ce),Re)))})}function q(Pe,Re=0){return(0,L.e)((He,le)=>{le.add(Pe.schedule(()=>He.subscribe(le),Re))})}var W=E(9751),G=E(2202),re=E(576);function ie(Pe,Re){if(!Pe)throw new Error("Iterable cannot be null");return new W.y(He=>{(0,_.f)(He,Re,()=>{const le=Pe[Symbol.asyncIterator]();(0,_.f)(He,Re,()=>{le.next().then(ce=>{ce.done?He.complete():He.next(ce.value)})},0,!0)})})}var ae=E(3670),he=E(8239),fe=E(1144),be=E(6495),Le=E(2206),Fe=E(4532),Ae=E(3260);function Je(Pe,Re){return Re?function xe(Pe,Re){if(null!=Pe){if((0,ae.c)(Pe))return function Q(Pe,Re){return(0,M.Xf)(Pe).pipe(q(Re),V(Re))}(Pe,Re);if((0,fe.z)(Pe))return function Y(Pe,Re){return new W.y(He=>{let le=0;return Re.schedule(function(){le===Pe.length?He.complete():(He.next(Pe[le++]),He.closed||this.schedule())})})}(Pe,Re);if((0,he.t)(Pe))return function ee(Pe,Re){return(0,M.Xf)(Pe).pipe(q(Re),V(Re))}(Pe,Re);if((0,Le.D)(Pe))return ie(Pe,Re);if((0,be.T)(Pe))return function oe(Pe,Re){return new W.y(He=>{let le;return(0,_.f)(He,Re,()=>{le=Pe[G.h](),(0,_.f)(He,Re,()=>{let ce,ge;try{({value:ce,done:ge}=le.next())}catch(pe){return void He.error(pe)}ge?He.complete():He.next(ce)},0,!0)}),()=>(0,re.m)(le?.return)&&le.return()})}(Pe,Re);if((0,Ae.L)(Pe))return function Ce(Pe,Re){return ie((0,Ae.Q)(Pe),Re)}(Pe,Re)}throw(0,Fe.z)(Pe)}(Pe,Re):(0,M.Xf)(Pe)}},8421:(N,z,E)=>{"use strict";E.d(z,{Xf:()=>oe});var M=E(655),_=E(1144),L=E(8239),F=E(9751),V=E(3670),q=E(2206),Q=E(4532),ee=E(6495),W=E(3260),Y=E(576),G=E(7849),re=E(8822);function oe(Ae){if(Ae instanceof F.y)return Ae;if(null!=Ae){if((0,V.c)(Ae))return function ie(Ae){return new F.y(Ce=>{const xe=Ae[re.L]();if((0,Y.m)(xe.subscribe))return xe.subscribe(Ce);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(Ae);if((0,_.z)(Ae))return function ae(Ae){return new F.y(Ce=>{for(let xe=0;xe{Ae.then(xe=>{Ce.closed||(Ce.next(xe),Ce.complete())},xe=>Ce.error(xe)).then(null,G.h)})}(Ae);if((0,q.D)(Ae))return be(Ae);if((0,ee.T)(Ae))return function fe(Ae){return new F.y(Ce=>{for(const xe of Ae)if(Ce.next(xe),Ce.closed)return;Ce.complete()})}(Ae);if((0,W.L)(Ae))return function Le(Ae){return be((0,W.Q)(Ae))}(Ae)}throw(0,Q.z)(Ae)}function be(Ae){return new F.y(Ce=>{(function Fe(Ae,Ce){var xe,Je,Pe,Re;return(0,M.mG)(this,void 0,void 0,function*(){try{for(xe=(0,M.KL)(Ae);!(Je=yield xe.next()).done;)if(Ce.next(Je.value),Ce.closed)return}catch(He){Pe={error:He}}finally{try{Je&&!Je.done&&(Re=xe.return)&&(yield Re.call(xe))}finally{if(Pe)throw Pe.error}}Ce.complete()})})(Ae,Ce).catch(xe=>Ce.error(xe))})}},6451:(N,z,E)=>{"use strict";E.d(z,{T:()=>q});var M=E(8189),_=E(8421),L=E(515),F=E(3269),V=E(2076);function q(...Q){const ee=(0,F.yG)(Q),W=(0,F._6)(Q,1/0),Y=Q;return Y.length?1===Y.length?(0,_.Xf)(Y[0]):(0,M.J)(W)((0,V.D)(Y,ee)):L.E}},9646:(N,z,E)=>{"use strict";E.d(z,{of:()=>L});var M=E(3269),_=E(2076);function L(...F){const V=(0,M.yG)(F);return(0,_.D)(F,V)}},102:(N,z,E)=>{"use strict";E.d(z,{S:()=>q});var M=E(9751),_=E(8421);const{isArray:L}=Array;var V=E(5403);function q(...ee){return 1===(ee=function F(ee){return 1===ee.length&&L(ee[0])?ee[0]:ee}(ee)).length?(0,_.Xf)(ee[0]):new M.y(function Q(ee){return W=>{let Y=[];for(let G=0;Y&&!W.closed&&G{if(Y){for(let oe=0;oe{"use strict";E.d(z,{_:()=>L});var M=E(9751),_=E(576);function L(F,V){const q=(0,_.m)(F)?F:()=>F,Q=ee=>ee.error(q());return new M.y(V?ee=>V.schedule(Q,0,ee):Q)}},2805:(N,z,E)=>{"use strict";E.d(z,{H:()=>V});var M=E(9751),_=E(4986),L=E(3532),F=E(1165);function V(q=0,Q,ee=_.P){let W=-1;return null!=Q&&((0,L.K)(Q)?ee=Q:W=Q),new M.y(Y=>{let G=(0,F.q)(q)?+q-ee.now():q;G<0&&(G=0);let re=0;return ee.schedule(function(){Y.closed||(Y.next(re++),0<=W?this.schedule(void 0,W):Y.complete())},G)})}},5403:(N,z,E)=>{"use strict";E.d(z,{x:()=>_});var M=E(930);function _(F,V,q,Q,ee){return new L(F,V,q,Q,ee)}class L extends M.Lv{constructor(V,q,Q,ee,W,Y){super(V),this.onFinalize=W,this.shouldUnsubscribe=Y,this._next=q?function(G){try{q(G)}catch(re){V.error(re)}}:super._next,this._error=ee?function(G){try{ee(G)}catch(re){V.error(re)}finally{this.unsubscribe()}}:super._error,this._complete=Q?function(){try{Q()}catch(G){V.error(G)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var V;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:q}=this;super.unsubscribe(),!q&&(null===(V=this.onFinalize)||void 0===V||V.call(this))}}}},262:(N,z,E)=>{"use strict";E.d(z,{K:()=>F});var M=E(8421),_=E(5403),L=E(4482);function F(V){return(0,L.e)((q,Q)=>{let Y,ee=null,W=!1;ee=q.subscribe((0,_.x)(Q,void 0,void 0,G=>{Y=(0,M.Xf)(V(G,F(V)(q))),ee?(ee.unsubscribe(),ee=null,Y.subscribe(Q)):W=!0})),W&&(ee.unsubscribe(),ee=null,Y.subscribe(Q))})}},4351:(N,z,E)=>{"use strict";E.d(z,{b:()=>L});var M=E(5577),_=E(576);function L(F,V){return(0,_.m)(V)?(0,M.z)(F,V,1):(0,M.z)(F,1)}},8372:(N,z,E)=>{"use strict";E.d(z,{b:()=>F});var M=E(4986),_=E(4482),L=E(5403);function F(V,q=M.z){return(0,_.e)((Q,ee)=>{let W=null,Y=null,G=null;const re=()=>{if(W){W.unsubscribe(),W=null;const ie=Y;Y=null,ee.next(ie)}};function oe(){const ie=G+V,ae=q.now();if(ae{Y=ie,G=q.now(),W||(W=q.schedule(oe,V),ee.add(W))},()=>{re(),ee.complete()},void 0,()=>{Y=W=null}))})}},6590:(N,z,E)=>{"use strict";E.d(z,{d:()=>L});var M=E(4482),_=E(5403);function L(F){return(0,M.e)((V,q)=>{let Q=!1;V.subscribe((0,_.x)(q,ee=>{Q=!0,q.next(ee)},()=>{Q||q.next(F),q.complete()}))})}},1005:(N,z,E)=>{"use strict";E.d(z,{g:()=>re});var M=E(4986),_=E(7272),L=E(5698),F=E(4482),V=E(5403),q=E(5032),ee=E(9718),W=E(5577);function Y(oe,ie){return ie?ae=>(0,_.z)(ie.pipe((0,L.q)(1),function Q(){return(0,F.e)((oe,ie)=>{oe.subscribe((0,V.x)(ie,q.Z))})}()),ae.pipe(Y(oe))):(0,W.z)((ae,he)=>oe(ae,he).pipe((0,L.q)(1),(0,ee.h)(ae)))}var G=E(2805);function re(oe,ie=M.z){const ae=(0,G.H)(oe,ie);return Y(()=>ae)}},9300:(N,z,E)=>{"use strict";E.d(z,{h:()=>L});var M=E(4482),_=E(5403);function L(F,V){return(0,M.e)((q,Q)=>{let ee=0;q.subscribe((0,_.x)(Q,W=>F.call(V,W,ee++)&&Q.next(W)))})}},590:(N,z,E)=>{"use strict";E.d(z,{P:()=>Q});var M=E(6805),_=E(9300),L=E(5698),F=E(6590),V=E(8068),q=E(4671);function Q(ee,W){const Y=arguments.length>=2;return G=>G.pipe(ee?(0,_.h)((re,oe)=>ee(re,oe,G)):q.y,(0,L.q)(1),Y?(0,F.d)(W):(0,V.T)(()=>new M.K))}},4004:(N,z,E)=>{"use strict";E.d(z,{U:()=>L});var M=E(4482),_=E(5403);function L(F,V){return(0,M.e)((q,Q)=>{let ee=0;q.subscribe((0,_.x)(Q,W=>{Q.next(F.call(V,W,ee++))}))})}},9718:(N,z,E)=>{"use strict";E.d(z,{h:()=>_});var M=E(4004);function _(L){return(0,M.U)(()=>L)}},8189:(N,z,E)=>{"use strict";E.d(z,{J:()=>L});var M=E(5577),_=E(4671);function L(F=1/0){return(0,M.z)(_.y,F)}},5577:(N,z,E)=>{"use strict";E.d(z,{z:()=>ee});var M=E(4004),_=E(8421),L=E(4482),F=E(9672),V=E(5403),Q=E(576);function ee(W,Y,G=1/0){return(0,Q.m)(Y)?ee((re,oe)=>(0,M.U)((ie,ae)=>Y(re,ie,oe,ae))((0,_.Xf)(W(re,oe))),G):("number"==typeof Y&&(G=Y),(0,L.e)((re,oe)=>function q(W,Y,G,re,oe,ie,ae,he){const fe=[];let be=0,Le=0,Fe=!1;const Ae=()=>{Fe&&!fe.length&&!be&&Y.complete()},Ce=Je=>be{ie&&Y.next(Je),be++;let Pe=!1;(0,_.Xf)(G(Je,Le++)).subscribe((0,V.x)(Y,Re=>{oe?.(Re),ie?Ce(Re):Y.next(Re)},()=>{Pe=!0},void 0,()=>{if(Pe)try{for(be--;fe.length&&bexe(Re)):xe(Re)}Ae()}catch(Re){Y.error(Re)}}))};return W.subscribe((0,V.x)(Y,Ce,()=>{Fe=!0,Ae()})),()=>{he?.()}}(re,oe,W,G)))}},3099:(N,z,E)=>{"use strict";E.d(z,{B:()=>V});var M=E(8421),_=E(7579),L=E(930),F=E(4482);function V(Q={}){const{connector:ee=(()=>new _.x),resetOnError:W=!0,resetOnComplete:Y=!0,resetOnRefCountZero:G=!0}=Q;return re=>{let oe,ie,ae,he=0,fe=!1,be=!1;const Le=()=>{ie?.unsubscribe(),ie=void 0},Fe=()=>{Le(),oe=ae=void 0,fe=be=!1},Ae=()=>{const Ce=oe;Fe(),Ce?.unsubscribe()};return(0,F.e)((Ce,xe)=>{he++,!be&&!fe&&Le();const Je=ae=ae??ee();xe.add(()=>{he--,0===he&&!be&&!fe&&(ie=q(Ae,G))}),Je.subscribe(xe),!oe&&he>0&&(oe=new L.Hp({next:Pe=>Je.next(Pe),error:Pe=>{be=!0,Le(),ie=q(Fe,W,Pe),Je.error(Pe)},complete:()=>{fe=!0,Le(),ie=q(Fe,Y),Je.complete()}}),(0,M.Xf)(Ce).subscribe(oe))})(re)}}function q(Q,ee,...W){if(!0===ee)return void Q();if(!1===ee)return;const Y=new L.Hp({next:()=>{Y.unsubscribe(),Q()}});return ee(...W).subscribe(Y)}},3900:(N,z,E)=>{"use strict";E.d(z,{w:()=>F});var M=E(8421),_=E(4482),L=E(5403);function F(V,q){return(0,_.e)((Q,ee)=>{let W=null,Y=0,G=!1;const re=()=>G&&!W&&ee.complete();Q.subscribe((0,L.x)(ee,oe=>{W?.unsubscribe();let ie=0;const ae=Y++;(0,M.Xf)(V(oe,ae)).subscribe(W=(0,L.x)(ee,he=>ee.next(q?q(oe,he,ae,ie++):he),()=>{W=null,re()}))},()=>{G=!0,re()}))})}},5698:(N,z,E)=>{"use strict";E.d(z,{q:()=>F});var M=E(515),_=E(4482),L=E(5403);function F(V){return V<=0?()=>M.E:(0,_.e)((q,Q)=>{let ee=0;q.subscribe((0,L.x)(Q,W=>{++ee<=V&&(Q.next(W),V<=ee&&Q.complete())}))})}},8505:(N,z,E)=>{"use strict";E.d(z,{b:()=>V});var M=E(576),_=E(4482),L=E(5403),F=E(4671);function V(q,Q,ee){const W=(0,M.m)(q)||Q||ee?{next:q,error:Q,complete:ee}:q;return W?(0,_.e)((Y,G)=>{var re;null===(re=W.subscribe)||void 0===re||re.call(W);let oe=!0;Y.subscribe((0,L.x)(G,ie=>{var ae;null===(ae=W.next)||void 0===ae||ae.call(W,ie),G.next(ie)},()=>{var ie;oe=!1,null===(ie=W.complete)||void 0===ie||ie.call(W),G.complete()},ie=>{var ae;oe=!1,null===(ae=W.error)||void 0===ae||ae.call(W,ie),G.error(ie)},()=>{var ie,ae;oe&&(null===(ie=W.unsubscribe)||void 0===ie||ie.call(W)),null===(ae=W.finalize)||void 0===ae||ae.call(W)}))}):F.y}},8068:(N,z,E)=>{"use strict";E.d(z,{T:()=>F});var M=E(6805),_=E(4482),L=E(5403);function F(q=V){return(0,_.e)((Q,ee)=>{let W=!1;Q.subscribe((0,L.x)(ee,Y=>{W=!0,ee.next(Y)},()=>W?ee.complete():ee.error(q())))})}function V(){return new M.K}},7414:(N,z,E)=>{"use strict";E.d(z,{V:()=>W});var M=E(4986),_=E(1165),L=E(4482),F=E(8421),V=E(3888),q=E(5403),Q=E(9672);const ee=(0,V.d)(G=>function(oe=null){G(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=oe});function W(G,re){const{first:oe,each:ie,with:ae=Y,scheduler:he=re??M.z,meta:fe=null}=(0,_.q)(G)?{first:G}:"number"==typeof G?{each:G}:G;if(null==oe&&null==ie)throw new TypeError("No timeout provided.");return(0,L.e)((be,Le)=>{let Fe,Ae,Ce=null,xe=0;const Je=Pe=>{Ae=(0,Q.f)(Le,he,()=>{try{Fe.unsubscribe(),(0,F.Xf)(ae({meta:fe,lastValue:Ce,seen:xe})).subscribe(Le)}catch(Re){Le.error(Re)}},Pe)};Fe=be.subscribe((0,q.x)(Le,Pe=>{Ae?.unsubscribe(),xe++,Le.next(Ce=Pe),ie>0&&Je(ie)},void 0,void 0,()=>{Ae?.closed||Ae?.unsubscribe(),Ce=null})),!xe&&Je(null!=oe?"number"==typeof oe?oe:+oe-he.now():ie)})}function Y(G){throw new ee(G)}},4408:(N,z,E)=>{"use strict";E.d(z,{o:()=>V});var M=E(727);class _ extends M.w0{constructor(Q,ee){super()}schedule(Q,ee=0){return this}}const L={setInterval(q,Q,...ee){const{delegate:W}=L;return W?.setInterval?W.setInterval(q,Q,...ee):setInterval(q,Q,...ee)},clearInterval(q){const{delegate:Q}=L;return(Q?.clearInterval||clearInterval)(q)},delegate:void 0};var F=E(8737);class V extends _{constructor(Q,ee){super(Q,ee),this.scheduler=Q,this.work=ee,this.pending=!1}schedule(Q,ee=0){if(this.closed)return this;this.state=Q;const W=this.id,Y=this.scheduler;return null!=W&&(this.id=this.recycleAsyncId(Y,W,ee)),this.pending=!0,this.delay=ee,this.id=this.id||this.requestAsyncId(Y,this.id,ee),this}requestAsyncId(Q,ee,W=0){return L.setInterval(Q.flush.bind(Q,this),W)}recycleAsyncId(Q,ee,W=0){if(null!=W&&this.delay===W&&!1===this.pending)return ee;L.clearInterval(ee)}execute(Q,ee){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const W=this._execute(Q,ee);if(W)return W;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(Q,ee){let Y,W=!1;try{this.work(Q)}catch(G){W=!0,Y=G||new Error("Scheduled action threw falsy error")}if(W)return this.unsubscribe(),Y}unsubscribe(){if(!this.closed){const{id:Q,scheduler:ee}=this,{actions:W}=ee;this.work=this.state=this.scheduler=null,this.pending=!1,(0,F.P)(W,this),null!=Q&&(this.id=this.recycleAsyncId(ee,Q,null)),this.delay=null,super.unsubscribe()}}}},7565:(N,z,E)=>{"use strict";E.d(z,{v:()=>L});var M=E(6063);class _{constructor(V,q=_.now){this.schedulerActionCtor=V,this.now=q}schedule(V,q=0,Q){return new this.schedulerActionCtor(this,V).schedule(Q,q)}}_.now=M.l.now;class L extends _{constructor(V,q=_.now){super(V,q),this.actions=[],this._active=!1,this._scheduled=void 0}flush(V){const{actions:q}=this;if(this._active)return void q.push(V);let Q;this._active=!0;do{if(Q=V.execute(V.state,V.delay))break}while(V=q.shift());if(this._active=!1,Q){for(;V=q.shift();)V.unsubscribe();throw Q}}}},4986:(N,z,E)=>{"use strict";E.d(z,{P:()=>F,z:()=>L});var M=E(4408);const L=new(E(7565).v)(M.o),F=L},6063:(N,z,E)=>{"use strict";E.d(z,{l:()=>M});const M={now:()=>(M.delegate||Date).now(),delegate:void 0}},3410:(N,z,E)=>{"use strict";E.d(z,{z:()=>M});const M={setTimeout(_,L,...F){const{delegate:V}=M;return V?.setTimeout?V.setTimeout(_,L,...F):setTimeout(_,L,...F)},clearTimeout(_){const{delegate:L}=M;return(L?.clearTimeout||clearTimeout)(_)},delegate:void 0}},2202:(N,z,E)=>{"use strict";E.d(z,{h:()=>_});const _=function M(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(N,z,E)=>{"use strict";E.d(z,{L:()=>M});const M="function"==typeof Symbol&&Symbol.observable||"@@observable"},6805:(N,z,E)=>{"use strict";E.d(z,{K:()=>_});const _=(0,E(3888).d)(L=>function(){L(this),this.name="EmptyError",this.message="no elements in sequence"})},3269:(N,z,E)=>{"use strict";E.d(z,{_6:()=>q,jO:()=>F,yG:()=>V});var M=E(576),_=E(3532);function L(Q){return Q[Q.length-1]}function F(Q){return(0,M.m)(L(Q))?Q.pop():void 0}function V(Q){return(0,_.K)(L(Q))?Q.pop():void 0}function q(Q,ee){return"number"==typeof L(Q)?Q.pop():ee}},4742:(N,z,E)=>{"use strict";E.d(z,{D:()=>V});const{isArray:M}=Array,{getPrototypeOf:_,prototype:L,keys:F}=Object;function V(Q){if(1===Q.length){const ee=Q[0];if(M(ee))return{args:ee,keys:null};if(function q(Q){return Q&&"object"==typeof Q&&_(Q)===L}(ee)){const W=F(ee);return{args:W.map(Y=>ee[Y]),keys:W}}}return{args:Q,keys:null}}},8737:(N,z,E)=>{"use strict";function M(_,L){if(_){const F=_.indexOf(L);0<=F&&_.splice(F,1)}}E.d(z,{P:()=>M})},3888:(N,z,E)=>{"use strict";function M(_){const F=_(V=>{Error.call(V),V.stack=(new Error).stack});return F.prototype=Object.create(Error.prototype),F.prototype.constructor=F,F}E.d(z,{d:()=>M})},1810:(N,z,E)=>{"use strict";function M(_,L){return _.reduce((F,V,q)=>(F[V]=L[q],F),{})}E.d(z,{n:()=>M})},2806:(N,z,E)=>{"use strict";E.d(z,{O:()=>F,x:()=>L});var M=E(2416);let _=null;function L(V){if(M.v.useDeprecatedSynchronousErrorHandling){const q=!_;if(q&&(_={errorThrown:!1,error:null}),V(),q){const{errorThrown:Q,error:ee}=_;if(_=null,Q)throw ee}}else V()}function F(V){M.v.useDeprecatedSynchronousErrorHandling&&_&&(_.errorThrown=!0,_.error=V)}},9672:(N,z,E)=>{"use strict";function M(_,L,F,V=0,q=!1){const Q=L.schedule(function(){F(),q?_.add(this.schedule(null,V)):this.unsubscribe()},V);if(_.add(Q),!q)return Q}E.d(z,{f:()=>M})},4671:(N,z,E)=>{"use strict";function M(_){return _}E.d(z,{y:()=>M})},1144:(N,z,E)=>{"use strict";E.d(z,{z:()=>M});const M=_=>_&&"number"==typeof _.length&&"function"!=typeof _},2206:(N,z,E)=>{"use strict";E.d(z,{D:()=>_});var M=E(576);function _(L){return Symbol.asyncIterator&&(0,M.m)(L?.[Symbol.asyncIterator])}},1165:(N,z,E)=>{"use strict";function M(_){return _ instanceof Date&&!isNaN(_)}E.d(z,{q:()=>M})},576:(N,z,E)=>{"use strict";function M(_){return"function"==typeof _}E.d(z,{m:()=>M})},3670:(N,z,E)=>{"use strict";E.d(z,{c:()=>L});var M=E(8822),_=E(576);function L(F){return(0,_.m)(F[M.L])}},6495:(N,z,E)=>{"use strict";E.d(z,{T:()=>L});var M=E(2202),_=E(576);function L(F){return(0,_.m)(F?.[M.h])}},8239:(N,z,E)=>{"use strict";E.d(z,{t:()=>_});var M=E(576);function _(L){return(0,M.m)(L?.then)}},3260:(N,z,E)=>{"use strict";E.d(z,{L:()=>F,Q:()=>L});var M=E(655),_=E(576);function L(V){return(0,M.FC)(this,arguments,function*(){const Q=V.getReader();try{for(;;){const{value:ee,done:W}=yield(0,M.qq)(Q.read());if(W)return yield(0,M.qq)(void 0);yield yield(0,M.qq)(ee)}}finally{Q.releaseLock()}})}function F(V){return(0,_.m)(V?.getReader)}},3532:(N,z,E)=>{"use strict";E.d(z,{K:()=>_});var M=E(576);function _(L){return L&&(0,M.m)(L.schedule)}},4482:(N,z,E)=>{"use strict";E.d(z,{A:()=>_,e:()=>L});var M=E(576);function _(F){return(0,M.m)(F?.lift)}function L(F){return V=>{if(_(V))return V.lift(function(q){try{return F(q,this)}catch(Q){this.error(Q)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(N,z,E)=>{"use strict";E.d(z,{Z:()=>F});var M=E(4004);const{isArray:_}=Array;function F(V){return(0,M.U)(q=>function L(V,q){return _(q)?V(...q):V(q)}(V,q))}},5032:(N,z,E)=>{"use strict";function M(){}E.d(z,{Z:()=>M})},9635:(N,z,E)=>{"use strict";E.d(z,{U:()=>L,z:()=>_});var M=E(4671);function _(...F){return L(F)}function L(F){return 0===F.length?M.y:1===F.length?F[0]:function(q){return F.reduce((Q,ee)=>ee(Q),q)}}},7849:(N,z,E)=>{"use strict";E.d(z,{h:()=>L});var M=E(2416),_=E(3410);function L(F){_.z.setTimeout(()=>{const{onUnhandledError:V}=M.v;if(!V)throw F;V(F)})}},4532:(N,z,E)=>{"use strict";function M(_){return new TypeError(`You provided ${null!==_&&"object"==typeof _?"an invalid object":`'${_}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}E.d(z,{z:()=>M})},655:(N,z,E)=>{"use strict";function ee(le,ce,ge,pe){return new(ge||(ge=Promise))(function(Ie,lt){function At(Ri){try{Ne(pe.next(Ri))}catch(Nn){lt(Nn)}}function Ht(Ri){try{Ne(pe.throw(Ri))}catch(Nn){lt(Nn)}}function Ne(Ri){Ri.done?Ie(Ri.value):function Ve(Ie){return Ie instanceof ge?Ie:new ge(function(lt){lt(Ie)})}(Ri.value).then(At,Ht)}Ne((pe=pe.apply(le,ce||[])).next())})}function fe(le){return this instanceof fe?(this.v=le,this):new fe(le)}function be(le,ce,ge){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Ve,pe=ge.apply(le,ce||[]),Ie=[];return Ve={},lt("next"),lt("throw"),lt("return"),Ve[Symbol.asyncIterator]=function(){return this},Ve;function lt(zt){pe[zt]&&(Ve[zt]=function(St){return new Promise(function(xn,ci){Ie.push([zt,St,xn,ci])>1||At(zt,St)})})}function At(zt,St){try{!function Ht(zt){zt.value instanceof fe?Promise.resolve(zt.value.v).then(Ne,Ri):Nn(Ie[0][2],zt)}(pe[zt](St))}catch(xn){Nn(Ie[0][3],xn)}}function Ne(zt){At("next",zt)}function Ri(zt){At("throw",zt)}function Nn(zt,St){zt(St),Ie.shift(),Ie.length&&At(Ie[0][0],Ie[0][1])}}function Fe(le){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ge,ce=le[Symbol.asyncIterator];return ce?ce.call(le):(le=function re(le){var ce="function"==typeof Symbol&&Symbol.iterator,ge=ce&&le[ce],pe=0;if(ge)return ge.call(le);if(le&&"number"==typeof le.length)return{next:function(){return le&&pe>=le.length&&(le=void 0),{value:le&&le[pe++],done:!le}}};throw new TypeError(ce?"Object is not iterable.":"Symbol.iterator is not defined.")}(le),ge={},pe("next"),pe("throw"),pe("return"),ge[Symbol.asyncIterator]=function(){return this},ge);function pe(Ie){ge[Ie]=le[Ie]&&function(lt){return new Promise(function(At,Ht){!function Ve(Ie,lt,At,Ht){Promise.resolve(Ht).then(function(Ne){Ie({value:Ne,done:At})},lt)}(At,Ht,(lt=le[Ie](lt)).done,lt.value)})}}}E.d(z,{FC:()=>be,KL:()=>Fe,mG:()=>ee,qq:()=>fe})},6895:(N,z,E)=>{"use strict";E.d(z,{Do:()=>Fe,EM:()=>Fr,HT:()=>V,JF:()=>qi,K0:()=>Q,Mx:()=>Bi,NF:()=>bo,O5:()=>Et,PC:()=>va,RF:()=>br,S$:()=>fe,V_:()=>Y,Ye:()=>Ae,b0:()=>Le,bD:()=>Ni,ez:()=>wr,n9:()=>Oi,q:()=>L,w_:()=>q});var M=E(4650);let _=null;function L(){return _}function V(P){_||(_=P)}class q{}const Q=new M.OlP("DocumentToken");let ee=(()=>{class P{historyGo(I){throw new Error("Not implemented")}}return P.\u0275fac=function(I){return new(I||P)},P.\u0275prov=M.Yz7({token:P,factory:function(){return function W(){return(0,M.LFG)(G)}()},providedIn:"platform"}),P})();const Y=new M.OlP("Location Initialized");let G=(()=>{class P extends ee{constructor(I){super(),this._doc=I,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return L().getBaseHref(this._doc)}onPopState(I){const j=L().getGlobalEventTarget(this._doc,"window");return j.addEventListener("popstate",I,!1),()=>j.removeEventListener("popstate",I)}onHashChange(I){const j=L().getGlobalEventTarget(this._doc,"window");return j.addEventListener("hashchange",I,!1),()=>j.removeEventListener("hashchange",I)}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(I){this.location.pathname=I}pushState(I,j,ne){re()?this._history.pushState(I,j,ne):this.location.hash=ne}replaceState(I,j,ne){re()?this._history.replaceState(I,j,ne):this.location.hash=ne}forward(){this._history.forward()}back(){this._history.back()}historyGo(I=0){this._history.go(I)}getState(){return this._history.state}}return P.\u0275fac=function(I){return new(I||P)(M.LFG(Q))},P.\u0275prov=M.Yz7({token:P,factory:function(){return function oe(){return new G((0,M.LFG)(Q))}()},providedIn:"platform"}),P})();function re(){return!!window.history.pushState}function ie(P,O){if(0==P.length)return O;if(0==O.length)return P;let I=0;return P.endsWith("/")&&I++,O.startsWith("/")&&I++,2==I?P+O.substring(1):1==I?P+O:P+"/"+O}function ae(P){const O=P.match(/#|\?|$/),I=O&&O.index||P.length;return P.slice(0,I-("/"===P[I-1]?1:0))+P.slice(I)}function he(P){return P&&"?"!==P[0]?"?"+P:P}let fe=(()=>{class P{historyGo(I){throw new Error("Not implemented")}}return P.\u0275fac=function(I){return new(I||P)},P.\u0275prov=M.Yz7({token:P,factory:function(){return(0,M.f3M)(Le)},providedIn:"root"}),P})();const be=new M.OlP("appBaseHref");let Le=(()=>{class P extends fe{constructor(I,j){super(),this._platformLocation=I,this._removeListenerFns=[],this._baseHref=j??this._platformLocation.getBaseHrefFromDOM()??(0,M.f3M)(Q).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(I){this._removeListenerFns.push(this._platformLocation.onPopState(I),this._platformLocation.onHashChange(I))}getBaseHref(){return this._baseHref}prepareExternalUrl(I){return ie(this._baseHref,I)}path(I=!1){const j=this._platformLocation.pathname+he(this._platformLocation.search),ne=this._platformLocation.hash;return ne&&I?`${j}${ne}`:j}pushState(I,j,ne,me){const ue=this.prepareExternalUrl(ne+he(me));this._platformLocation.pushState(I,j,ue)}replaceState(I,j,ne,me){const ue=this.prepareExternalUrl(ne+he(me));this._platformLocation.replaceState(I,j,ue)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(I=0){this._platformLocation.historyGo?.(I)}}return P.\u0275fac=function(I){return new(I||P)(M.LFG(ee),M.LFG(be,8))},P.\u0275prov=M.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"}),P})(),Fe=(()=>{class P extends fe{constructor(I,j){super(),this._platformLocation=I,this._baseHref="",this._removeListenerFns=[],null!=j&&(this._baseHref=j)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(I){this._removeListenerFns.push(this._platformLocation.onPopState(I),this._platformLocation.onHashChange(I))}getBaseHref(){return this._baseHref}path(I=!1){let j=this._platformLocation.hash;return null==j&&(j="#"),j.length>0?j.substring(1):j}prepareExternalUrl(I){const j=ie(this._baseHref,I);return j.length>0?"#"+j:j}pushState(I,j,ne,me){let ue=this.prepareExternalUrl(ne+he(me));0==ue.length&&(ue=this._platformLocation.pathname),this._platformLocation.pushState(I,j,ue)}replaceState(I,j,ne,me){let ue=this.prepareExternalUrl(ne+he(me));0==ue.length&&(ue=this._platformLocation.pathname),this._platformLocation.replaceState(I,j,ue)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(I=0){this._platformLocation.historyGo?.(I)}}return P.\u0275fac=function(I){return new(I||P)(M.LFG(ee),M.LFG(be,8))},P.\u0275prov=M.Yz7({token:P,factory:P.\u0275fac}),P})(),Ae=(()=>{class P{constructor(I){this._subject=new M.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=I;const j=this._locationStrategy.getBaseHref();this._baseHref=ae(Je(j)),this._locationStrategy.onPopState(ne=>{this._subject.emit({url:this.path(!0),pop:!0,state:ne.state,type:ne.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(I=!1){return this.normalize(this._locationStrategy.path(I))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(I,j=""){return this.path()==this.normalize(I+he(j))}normalize(I){return P.stripTrailingSlash(function xe(P,O){return P&&O.startsWith(P)?O.substring(P.length):O}(this._baseHref,Je(I)))}prepareExternalUrl(I){return I&&"/"!==I[0]&&(I="/"+I),this._locationStrategy.prepareExternalUrl(I)}go(I,j="",ne=null){this._locationStrategy.pushState(ne,"",I,j),this._notifyUrlChangeListeners(this.prepareExternalUrl(I+he(j)),ne)}replaceState(I,j="",ne=null){this._locationStrategy.replaceState(ne,"",I,j),this._notifyUrlChangeListeners(this.prepareExternalUrl(I+he(j)),ne)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(I=0){this._locationStrategy.historyGo?.(I)}onUrlChange(I){return this._urlChangeListeners.push(I),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(j=>{this._notifyUrlChangeListeners(j.url,j.state)})),()=>{const j=this._urlChangeListeners.indexOf(I);this._urlChangeListeners.splice(j,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(I="",j){this._urlChangeListeners.forEach(ne=>ne(I,j))}subscribe(I,j,ne){return this._subject.subscribe({next:I,error:j,complete:ne})}}return P.normalizeQueryParams=he,P.joinWithSlash=ie,P.stripTrailingSlash=ae,P.\u0275fac=function(I){return new(I||P)(M.LFG(fe))},P.\u0275prov=M.Yz7({token:P,factory:function(){return function Ce(){return new Ae((0,M.LFG)(fe))}()},providedIn:"root"}),P})();function Je(P){return P.replace(/\/index.html$/,"")}function Bi(P,O){O=encodeURIComponent(O);for(const I of P.split(";")){const j=I.indexOf("="),[ne,me]=-1==j?[I,""]:[I.slice(0,j),I.slice(j+1)];if(ne.trim()===O)return decodeURIComponent(me)}return null}let Et=(()=>{class P{constructor(I,j){this._viewContainer=I,this._context=new sn,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=j}set ngIf(I){this._context.$implicit=this._context.ngIf=I,this._updateView()}set ngIfThen(I){ya("ngIfThen",I),this._thenTemplateRef=I,this._thenViewRef=null,this._updateView()}set ngIfElse(I){ya("ngIfElse",I),this._elseTemplateRef=I,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(I,j){return!0}}return P.\u0275fac=function(I){return new(I||P)(M.Y36(M.s_b),M.Y36(M.Rgc))},P.\u0275dir=M.lG2({type:P,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),P})();class sn{constructor(){this.$implicit=null,this.ngIf=null}}function ya(P,O){if(O&&!O.createEmbeddedView)throw new Error(`${P} must be a TemplateRef, but received '${(0,M.AaK)(O)}'.`)}class Wn{constructor(O,I){this._viewContainerRef=O,this._templateRef=I,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(O){O&&!this._created?this.create():!O&&this._created&&this.destroy()}}let br=(()=>{class P{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(I){this._ngSwitch=I,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(I){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(I)}_matchCase(I){const j=I==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||j,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),j}_updateDefaultCases(I){if(this._defaultViews&&I!==this._defaultUsed){this._defaultUsed=I;for(let j=0;j{class P{constructor(I,j,ne){this.ngSwitch=ne,ne._addCase(),this._view=new Wn(I,j)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return P.\u0275fac=function(I){return new(I||P)(M.Y36(M.s_b),M.Y36(M.Rgc),M.Y36(br,9))},P.\u0275dir=M.lG2({type:P,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),P})(),va=(()=>{class P{constructor(I,j,ne){this._ngEl=I,this._differs=j,this._renderer=ne,this._ngStyle=null,this._differ=null}set ngStyle(I){this._ngStyle=I,!this._differ&&I&&(this._differ=this._differs.find(I).create())}ngDoCheck(){if(this._differ){const I=this._differ.diff(this._ngStyle);I&&this._applyChanges(I)}}_setStyle(I,j){const[ne,me]=I.split("."),ue=-1===ne.indexOf("-")?void 0:M.JOm.DashCase;null!=j?this._renderer.setStyle(this._ngEl.nativeElement,ne,me?`${j}${me}`:j,ue):this._renderer.removeStyle(this._ngEl.nativeElement,ne,ue)}_applyChanges(I){I.forEachRemovedItem(j=>this._setStyle(j.key,null)),I.forEachAddedItem(j=>this._setStyle(j.key,j.currentValue)),I.forEachChangedItem(j=>this._setStyle(j.key,j.currentValue))}}return P.\u0275fac=function(I){return new(I||P)(M.Y36(M.SBq),M.Y36(M.aQg),M.Y36(M.Qsj))},P.\u0275dir=M.lG2({type:P,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),P})(),wr=(()=>{class P{}return P.\u0275fac=function(I){return new(I||P)},P.\u0275mod=M.oAB({type:P}),P.\u0275inj=M.cJS({}),P})();const Ni="browser";function bo(P){return P===Ni}let Fr=(()=>{class P{}return P.\u0275prov=(0,M.Yz7)({token:P,providedIn:"root",factory:()=>new Ti((0,M.LFG)(Q),window)}),P})();class Ti{constructor(O,I){this.document=O,this.window=I,this.offset=()=>[0,0]}setOffset(O){this.offset=Array.isArray(O)?()=>O:O}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(O){this.supportsScrolling()&&this.window.scrollTo(O[0],O[1])}scrollToAnchor(O){if(!this.supportsScrolling())return;const I=function Co(P,O){const I=P.getElementById(O)||P.getElementsByName(O)[0];if(I)return I;if("function"==typeof P.createTreeWalker&&P.body&&(P.body.createShadowRoot||P.body.attachShadow)){const j=P.createTreeWalker(P.body,NodeFilter.SHOW_ELEMENT);let ne=j.currentNode;for(;ne;){const me=ne.shadowRoot;if(me){const ue=me.getElementById(O)||me.querySelector(`[name="${O}"]`);if(ue)return ue}ne=j.nextNode()}}return null}(this.document,O);I&&(this.scrollToElement(I),I.focus())}setHistoryScrollRestoration(O){if(this.supportScrollRestoration()){const I=this.window.history;I&&I.scrollRestoration&&(I.scrollRestoration=O)}}scrollToElement(O){const I=O.getBoundingClientRect(),j=I.left+this.window.pageXOffset,ne=I.top+this.window.pageYOffset,me=this.offset();this.window.scrollTo(j-me[0],ne-me[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const O=Hs(this.window.history)||Hs(Object.getPrototypeOf(this.window.history));return!(!O||!O.writable&&!O.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function Hs(P){return Object.getOwnPropertyDescriptor(P,"scrollRestoration")}class qi{}},529:(N,z,E)=>{"use strict";E.d(z,{JF:()=>Jd,LE:()=>be,TP:()=>At,WM:()=>Y,Zn:()=>ge,eN:()=>Ie,qT:()=>Fe});var M=E(6895),_=E(4650),L=E(9646),F=E(9751),V=E(4351),q=E(9300),Q=E(4004);class ee{}class W{}class Y{constructor(X){this.normalizedNames=new Map,this.lazyUpdate=null,X?this.lazyInit="string"==typeof X?()=>{this.headers=new Map,X.split("\n").forEach($=>{const de=$.indexOf(":");if(de>0){const De=$.slice(0,de),tt=De.toLowerCase(),ct=$.slice(de+1).trim();this.maybeSetNormalizedName(De,tt),this.headers.has(tt)?this.headers.get(tt).push(ct):this.headers.set(tt,[ct])}})}:()=>{this.headers=new Map,Object.keys(X).forEach($=>{let de=X[$];const De=$.toLowerCase();"string"==typeof de&&(de=[de]),de.length>0&&(this.headers.set(De,de),this.maybeSetNormalizedName($,De))})}:this.headers=new Map}has(X){return this.init(),this.headers.has(X.toLowerCase())}get(X){this.init();const $=this.headers.get(X.toLowerCase());return $&&$.length>0?$[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(X){return this.init(),this.headers.get(X.toLowerCase())||null}append(X,$){return this.clone({name:X,value:$,op:"a"})}set(X,$){return this.clone({name:X,value:$,op:"s"})}delete(X,$){return this.clone({name:X,value:$,op:"d"})}maybeSetNormalizedName(X,$){this.normalizedNames.has($)||this.normalizedNames.set($,X)}init(){this.lazyInit&&(this.lazyInit instanceof Y?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(X=>this.applyUpdate(X)),this.lazyUpdate=null))}copyFrom(X){X.init(),Array.from(X.headers.keys()).forEach($=>{this.headers.set($,X.headers.get($)),this.normalizedNames.set($,X.normalizedNames.get($))})}clone(X){const $=new Y;return $.lazyInit=this.lazyInit&&this.lazyInit instanceof Y?this.lazyInit:this,$.lazyUpdate=(this.lazyUpdate||[]).concat([X]),$}applyUpdate(X){const $=X.name.toLowerCase();switch(X.op){case"a":case"s":let de=X.value;if("string"==typeof de&&(de=[de]),0===de.length)return;this.maybeSetNormalizedName(X.name,$);const De=("a"===X.op?this.headers.get($):void 0)||[];De.push(...de),this.headers.set($,De);break;case"d":const tt=X.value;if(tt){let ct=this.headers.get($);if(!ct)return;ct=ct.filter(ze=>-1===tt.indexOf(ze)),0===ct.length?(this.headers.delete($),this.normalizedNames.delete($)):this.headers.set($,ct)}else this.headers.delete($),this.normalizedNames.delete($)}}forEach(X){this.init(),Array.from(this.normalizedNames.keys()).forEach($=>X(this.normalizedNames.get($),this.headers.get($)))}}class re{encodeKey(X){return he(X)}encodeValue(X){return he(X)}decodeKey(X){return decodeURIComponent(X)}decodeValue(X){return decodeURIComponent(X)}}const ie=/%(\d[a-f0-9])/gi,ae={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function he(ye){return encodeURIComponent(ye).replace(ie,(X,$)=>ae[$]??X)}function fe(ye){return`${ye}`}class be{constructor(X={}){if(this.updates=null,this.cloneFrom=null,this.encoder=X.encoder||new re,X.fromString){if(X.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function oe(ye,X){const $=new Map;return ye.length>0&&ye.replace(/^\?/,"").split("&").forEach(De=>{const tt=De.indexOf("="),[ct,ze]=-1==tt?[X.decodeKey(De),""]:[X.decodeKey(De.slice(0,tt)),X.decodeValue(De.slice(tt+1))],Xe=$.get(ct)||[];Xe.push(ze),$.set(ct,Xe)}),$}(X.fromString,this.encoder)}else X.fromObject?(this.map=new Map,Object.keys(X.fromObject).forEach($=>{const de=X.fromObject[$],De=Array.isArray(de)?de.map(fe):[fe(de)];this.map.set($,De)})):this.map=null}has(X){return this.init(),this.map.has(X)}get(X){this.init();const $=this.map.get(X);return $?$[0]:null}getAll(X){return this.init(),this.map.get(X)||null}keys(){return this.init(),Array.from(this.map.keys())}append(X,$){return this.clone({param:X,value:$,op:"a"})}appendAll(X){const $=[];return Object.keys(X).forEach(de=>{const De=X[de];Array.isArray(De)?De.forEach(tt=>{$.push({param:de,value:tt,op:"a"})}):$.push({param:de,value:De,op:"a"})}),this.clone($)}set(X,$){return this.clone({param:X,value:$,op:"s"})}delete(X,$){return this.clone({param:X,value:$,op:"d"})}toString(){return this.init(),this.keys().map(X=>{const $=this.encoder.encodeKey(X);return this.map.get(X).map(de=>$+"="+this.encoder.encodeValue(de)).join("&")}).filter(X=>""!==X).join("&")}clone(X){const $=new be({encoder:this.encoder});return $.cloneFrom=this.cloneFrom||this,$.updates=(this.updates||[]).concat(X),$}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(X=>this.map.set(X,this.cloneFrom.map.get(X))),this.updates.forEach(X=>{switch(X.op){case"a":case"s":const $=("a"===X.op?this.map.get(X.param):void 0)||[];$.push(fe(X.value)),this.map.set(X.param,$);break;case"d":if(void 0===X.value){this.map.delete(X.param);break}{let de=this.map.get(X.param)||[];const De=de.indexOf(fe(X.value));-1!==De&&de.splice(De,1),de.length>0?this.map.set(X.param,de):this.map.delete(X.param)}}}),this.cloneFrom=this.updates=null)}}class Fe{constructor(){this.map=new Map}set(X,$){return this.map.set(X,$),this}get(X){return this.map.has(X)||this.map.set(X,X.defaultValue()),this.map.get(X)}delete(X){return this.map.delete(X),this}has(X){return this.map.has(X)}keys(){return this.map.keys()}}function Ce(ye){return typeof ArrayBuffer<"u"&&ye instanceof ArrayBuffer}function xe(ye){return typeof Blob<"u"&&ye instanceof Blob}function Je(ye){return typeof FormData<"u"&&ye instanceof FormData}class Re{constructor(X,$,de,De){let tt;if(this.url=$,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=X.toUpperCase(),function Ae(ye){switch(ye){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||De?(this.body=void 0!==de?de:null,tt=De):tt=de,tt&&(this.reportProgress=!!tt.reportProgress,this.withCredentials=!!tt.withCredentials,tt.responseType&&(this.responseType=tt.responseType),tt.headers&&(this.headers=tt.headers),tt.context&&(this.context=tt.context),tt.params&&(this.params=tt.params)),this.headers||(this.headers=new Y),this.context||(this.context=new Fe),this.params){const ct=this.params.toString();if(0===ct.length)this.urlWithParams=$;else{const ze=$.indexOf("?");this.urlWithParams=$+(-1===ze?"?":ze<$.length-1?"&":"")+ct}}else this.params=new be,this.urlWithParams=$}serializeBody(){return null===this.body?null:Ce(this.body)||xe(this.body)||Je(this.body)||function Pe(ye){return typeof URLSearchParams<"u"&&ye instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof be?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||Je(this.body)?null:xe(this.body)?this.body.type||null:Ce(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof be?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(X={}){const $=X.method||this.method,de=X.url||this.url,De=X.responseType||this.responseType,tt=void 0!==X.body?X.body:this.body,ct=void 0!==X.withCredentials?X.withCredentials:this.withCredentials,ze=void 0!==X.reportProgress?X.reportProgress:this.reportProgress;let Xe=X.headers||this.headers,ni=X.params||this.params;const Ct=X.context??this.context;return void 0!==X.setHeaders&&(Xe=Object.keys(X.setHeaders).reduce((an,it)=>an.set(it,X.setHeaders[it]),Xe)),X.setParams&&(ni=Object.keys(X.setParams).reduce((an,it)=>an.set(it,X.setParams[it]),ni)),new Re($,de,tt,{params:ni,headers:Xe,context:Ct,reportProgress:ze,responseType:De,withCredentials:ct})}}var He=(()=>((He=He||{})[He.Sent=0]="Sent",He[He.UploadProgress=1]="UploadProgress",He[He.ResponseHeader=2]="ResponseHeader",He[He.DownloadProgress=3]="DownloadProgress",He[He.Response=4]="Response",He[He.User=5]="User",He))();class le{constructor(X,$=200,de="OK"){this.headers=X.headers||new Y,this.status=void 0!==X.status?X.status:$,this.statusText=X.statusText||de,this.url=X.url||null,this.ok=this.status>=200&&this.status<300}}class ce extends le{constructor(X={}){super(X),this.type=He.ResponseHeader}clone(X={}){return new ce({headers:X.headers||this.headers,status:void 0!==X.status?X.status:this.status,statusText:X.statusText||this.statusText,url:X.url||this.url||void 0})}}class ge extends le{constructor(X={}){super(X),this.type=He.Response,this.body=void 0!==X.body?X.body:null}clone(X={}){return new ge({body:void 0!==X.body?X.body:this.body,headers:X.headers||this.headers,status:void 0!==X.status?X.status:this.status,statusText:X.statusText||this.statusText,url:X.url||this.url||void 0})}}class pe extends le{constructor(X){super(X,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${X.url||"(unknown url)"}`:`Http failure response for ${X.url||"(unknown url)"}: ${X.status} ${X.statusText}`,this.error=X.error||null}}function Ve(ye,X){return{body:X,headers:ye.headers,context:ye.context,observe:ye.observe,params:ye.params,reportProgress:ye.reportProgress,responseType:ye.responseType,withCredentials:ye.withCredentials}}let Ie=(()=>{class ye{constructor($){this.handler=$}request($,de,De={}){let tt;if($ instanceof Re)tt=$;else{let Xe,ni;Xe=De.headers instanceof Y?De.headers:new Y(De.headers),De.params&&(ni=De.params instanceof be?De.params:new be({fromObject:De.params})),tt=new Re($,de,void 0!==De.body?De.body:null,{headers:Xe,context:De.context,params:ni,reportProgress:De.reportProgress,responseType:De.responseType||"json",withCredentials:De.withCredentials})}const ct=(0,L.of)(tt).pipe((0,V.b)(Xe=>this.handler.handle(Xe)));if($ instanceof Re||"events"===De.observe)return ct;const ze=ct.pipe((0,q.h)(Xe=>Xe instanceof ge));switch(De.observe||"body"){case"body":switch(tt.responseType){case"arraybuffer":return ze.pipe((0,Q.U)(Xe=>{if(null!==Xe.body&&!(Xe.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Xe.body}));case"blob":return ze.pipe((0,Q.U)(Xe=>{if(null!==Xe.body&&!(Xe.body instanceof Blob))throw new Error("Response is not a Blob.");return Xe.body}));case"text":return ze.pipe((0,Q.U)(Xe=>{if(null!==Xe.body&&"string"!=typeof Xe.body)throw new Error("Response is not a string.");return Xe.body}));default:return ze.pipe((0,Q.U)(Xe=>Xe.body))}case"response":return ze;default:throw new Error(`Unreachable: unhandled observe type ${De.observe}}`)}}delete($,de={}){return this.request("DELETE",$,de)}get($,de={}){return this.request("GET",$,de)}head($,de={}){return this.request("HEAD",$,de)}jsonp($,de){return this.request("JSONP",$,{params:(new be).append(de,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options($,de={}){return this.request("OPTIONS",$,de)}patch($,de,De={}){return this.request("PATCH",$,Ve(De,de))}post($,de,De={}){return this.request("POST",$,Ve(De,de))}put($,de,De={}){return this.request("PUT",$,Ve(De,de))}}return ye.\u0275fac=function($){return new($||ye)(_.LFG(ee))},ye.\u0275prov=_.Yz7({token:ye,factory:ye.\u0275fac}),ye})();class lt{constructor(X,$){this.next=X,this.interceptor=$}handle(X){return this.interceptor.intercept(X,this.next)}}const At=new _.OlP("HTTP_INTERCEPTORS");let Ht=(()=>{class ye{intercept($,de){return de.handle($)}}return ye.\u0275fac=function($){return new($||ye)},ye.\u0275prov=_.Yz7({token:ye,factory:ye.\u0275fac}),ye})();const co=/^\)\]\}',?\n/;let uo=(()=>{class ye{constructor($){this.xhrFactory=$}handle($){if("JSONP"===$.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new F.y(de=>{const De=this.xhrFactory.build();if(De.open($.method,$.urlWithParams),$.withCredentials&&(De.withCredentials=!0),$.headers.forEach((Tt,kt)=>De.setRequestHeader(Tt,kt.join(","))),$.headers.has("Accept")||De.setRequestHeader("Accept","application/json, text/plain, */*"),!$.headers.has("Content-Type")){const Tt=$.detectContentTypeHeader();null!==Tt&&De.setRequestHeader("Content-Type",Tt)}if($.responseType){const Tt=$.responseType.toLowerCase();De.responseType="json"!==Tt?Tt:"text"}const tt=$.serializeBody();let ct=null;const ze=()=>{if(null!==ct)return ct;const Tt=De.statusText||"OK",kt=new Y(De.getAllResponseHeaders()),hn=function Yd(ye){return"responseURL"in ye&&ye.responseURL?ye.responseURL:/^X-Request-URL:/m.test(ye.getAllResponseHeaders())?ye.getResponseHeader("X-Request-URL"):null}(De)||$.url;return ct=new ce({headers:kt,status:De.status,statusText:Tt,url:hn}),ct},Xe=()=>{let{headers:Tt,status:kt,statusText:hn,url:gr}=ze(),bi=null;204!==kt&&(bi=typeof De.response>"u"?De.responseText:De.response),0===kt&&(kt=bi?200:0);let Lr=kt>=200&&kt<300;if("json"===$.responseType&&"string"==typeof bi){const jr=bi;bi=bi.replace(co,"");try{bi=""!==bi?JSON.parse(bi):null}catch(ba){bi=jr,Lr&&(Lr=!1,bi={error:ba,text:bi})}}Lr?(de.next(new ge({body:bi,headers:Tt,status:kt,statusText:hn,url:gr||void 0})),de.complete()):de.error(new pe({error:bi,headers:Tt,status:kt,statusText:hn,url:gr||void 0}))},ni=Tt=>{const{url:kt}=ze(),hn=new pe({error:Tt,status:De.status||0,statusText:De.statusText||"Unknown Error",url:kt||void 0});de.error(hn)};let Ct=!1;const an=Tt=>{Ct||(de.next(ze()),Ct=!0);let kt={type:He.DownloadProgress,loaded:Tt.loaded};Tt.lengthComputable&&(kt.total=Tt.total),"text"===$.responseType&&!!De.responseText&&(kt.partialText=De.responseText),de.next(kt)},it=Tt=>{let kt={type:He.UploadProgress,loaded:Tt.loaded};Tt.lengthComputable&&(kt.total=Tt.total),de.next(kt)};return De.addEventListener("load",Xe),De.addEventListener("error",ni),De.addEventListener("timeout",ni),De.addEventListener("abort",ni),$.reportProgress&&(De.addEventListener("progress",an),null!==tt&&De.upload&&De.upload.addEventListener("progress",it)),De.send(tt),de.next({type:He.Sent}),()=>{De.removeEventListener("error",ni),De.removeEventListener("abort",ni),De.removeEventListener("load",Xe),De.removeEventListener("timeout",ni),$.reportProgress&&(De.removeEventListener("progress",an),null!==tt&&De.upload&&De.upload.removeEventListener("progress",it)),De.readyState!==De.DONE&&De.abort()}})}}return ye.\u0275fac=function($){return new($||ye)(_.LFG(M.JF))},ye.\u0275prov=_.Yz7({token:ye,factory:ye.\u0275fac}),ye})();const qn=new _.OlP("XSRF_COOKIE_NAME"),zn=new _.OlP("XSRF_HEADER_NAME");class ma{}let ho=(()=>{class ye{constructor($,de,De){this.doc=$,this.platform=de,this.cookieName=De,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const $=this.doc.cookie||"";return $!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,M.Mx)($,this.cookieName),this.lastCookieString=$),this.lastToken}}return ye.\u0275fac=function($){return new($||ye)(_.LFG(M.K0),_.LFG(_.Lbi),_.LFG(qn))},ye.\u0275prov=_.Yz7({token:ye,factory:ye.\u0275fac}),ye})(),Ke=(()=>{class ye{constructor($,de){this.tokenService=$,this.headerName=de}intercept($,de){const De=$.url.toLowerCase();if("GET"===$.method||"HEAD"===$.method||De.startsWith("http://")||De.startsWith("https://"))return de.handle($);const tt=this.tokenService.getToken();return null!==tt&&!$.headers.has(this.headerName)&&($=$.clone({headers:$.headers.set(this.headerName,tt)})),de.handle($)}}return ye.\u0275fac=function($){return new($||ye)(_.LFG(ma),_.LFG(zn))},ye.\u0275prov=_.Yz7({token:ye,factory:ye.\u0275fac}),ye})(),pi=(()=>{class ye{constructor($,de){this.backend=$,this.injector=de,this.chain=null}handle($){if(null===this.chain){const de=this.injector.get(At,[]);this.chain=de.reduceRight((De,tt)=>new lt(De,tt),this.backend)}return this.chain.handle($)}}return ye.\u0275fac=function($){return new($||ye)(_.LFG(W),_.LFG(_.zs3))},ye.\u0275prov=_.Yz7({token:ye,factory:ye.\u0275fac}),ye})(),_a=(()=>{class ye{static disable(){return{ngModule:ye,providers:[{provide:Ke,useClass:Ht}]}}static withOptions($={}){return{ngModule:ye,providers:[$.cookieName?{provide:qn,useValue:$.cookieName}:[],$.headerName?{provide:zn,useValue:$.headerName}:[]]}}}return ye.\u0275fac=function($){return new($||ye)},ye.\u0275mod=_.oAB({type:ye}),ye.\u0275inj=_.cJS({providers:[Ke,{provide:At,useExisting:Ke,multi:!0},{provide:ma,useClass:ho},{provide:qn,useValue:"XSRF-TOKEN"},{provide:zn,useValue:"X-XSRF-TOKEN"}]}),ye})(),Jd=(()=>{class ye{}return ye.\u0275fac=function($){return new($||ye)},ye.\u0275mod=_.oAB({type:ye}),ye.\u0275inj=_.cJS({providers:[Ie,{provide:ee,useClass:pi},uo,{provide:W,useExisting:uo}],imports:[_a.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),ye})()},4650:(N,z,E)=>{"use strict";E.d(z,{$8M:()=>Cf,$Z:()=>Ww,AFp:()=>dp,ALo:()=>_d,AaK:()=>ee,B6R:()=>gr,BQk:()=>hl,CHM:()=>Mn,CRH:()=>p_,CZH:()=>ua,CqO:()=>nd,D6c:()=>kp,EJc:()=>B_,EiD:()=>Uf,EpF:()=>Oh,F$t:()=>Sy,F4k:()=>pg,FYo:()=>tw,FiY:()=>Ba,G48:()=>Id,Gf:()=>np,GfV:()=>iw,GkF:()=>Vh,Gpc:()=>G,Gre:()=>tv,Hsn:()=>Ty,Ikx:()=>zh,JOm:()=>Hn,JVY:()=>Hu,KtG:()=>Ji,L6k:()=>gi,LAX:()=>Lo,LFG:()=>Jt,LSH:()=>qf,Lbi:()=>P_,Lck:()=>MT,MAs:()=>yy,MMx:()=>$g,NdJ:()=>pl,O4$:()=>Jn,OlP:()=>Pt,Oqu:()=>vg,PXZ:()=>TA,Q6J:()=>Ih,QGY:()=>Lh,QP$:()=>Tl,QbO:()=>Sd,Qsj:()=>Tx,R0b:()=>ti,RDi:()=>RC,Rgc:()=>Cd,SBq:()=>Dc,Sil:()=>V_,Suo:()=>h_,TTD:()=>mo,TgZ:()=>td,Tol:()=>Cg,Udp:()=>Fh,VKq:()=>Xt,WFA:()=>Hr,XFs:()=>Ke,Xpm:()=>hn,Xts:()=>zf,Y36:()=>il,YKP:()=>ur,YNc:()=>wy,Yjl:()=>$l,Yz7:()=>St,ZZ4:()=>Vd,_Bn:()=>Gg,_UZ:()=>hg,_Vd:()=>Mc,_c5:()=>Ip,_uU:()=>Qy,aQg:()=>Od,c2e:()=>I_,cJS:()=>ci,cg1:()=>Ja,d8E:()=>Qa,dDg:()=>lE,dqk:()=>de,eBb:()=>nx,eFA:()=>ms,ekj:()=>Uh,eoX:()=>AA,f3M:()=>yu,g9A:()=>hp,h0i:()=>vl,hGG:()=>LA,hij:()=>$a,iGM:()=>u_,ifc:()=>$,ip1:()=>R_,kL8:()=>cv,kcU:()=>du,lG2:()=>Kd,lcZ:()=>n_,lnq:()=>Ag,lqb:()=>Uo,lri:()=>Hd,mCW:()=>xr,n5z:()=>_f,n_E:()=>Xh,oAB:()=>jr,oxw:()=>mg,pB0:()=>Bf,q3G:()=>ai,qLn:()=>Hc,qOj:()=>Dh,qZA:()=>id,qzn:()=>Oo,rWj:()=>U_,s9C:()=>gg,sBO:()=>EA,sIi:()=>kn,s_b:()=>tp,soG:()=>Dl,tb:()=>pp,tp0:()=>qs,uIk:()=>Hh,vHH:()=>ae,vpe:()=>kr,wAp:()=>Ze,xp6:()=>Vw,ynx:()=>Bh,z2F:()=>xp,z3N:()=>$r,zSh:()=>$f,zs3:()=>qa});var M=E(7579),_=E(727),L=E(9751),F=E(6451),V=E(3099);function q(g){for(let b in g)if(g[b]===q)return b;throw Error("Could not find renamed property on target object.")}function Q(g,b){for(const C in b)b.hasOwnProperty(C)&&!g.hasOwnProperty(C)&&(g[C]=b[C])}function ee(g){if("string"==typeof g)return g;if(Array.isArray(g))return"["+g.map(ee).join(", ")+"]";if(null==g)return""+g;if(g.overriddenName)return`${g.overriddenName}`;if(g.name)return`${g.name}`;const b=g.toString();if(null==b)return""+b;const C=b.indexOf("\n");return-1===C?b:b.substring(0,C)}function W(g,b){return null==g||""===g?null===b?"":b:null==b||""===b?g:g+" "+b}const Y=q({__forward_ref__:q});function G(g){return g.__forward_ref__=G,g.toString=function(){return ee(this())},g}function re(g){return oe(g)?g():g}function oe(g){return"function"==typeof g&&g.hasOwnProperty(Y)&&g.__forward_ref__===G}class ae extends Error{constructor(b,C){super(function he(g,b){return`NG0${Math.abs(g)}${b?": "+b.trim():""}`}(b,C)),this.code=b}}function fe(g){return"string"==typeof g?g:null==g?"":String(g)}function Ce(g,b){throw new ae(-201,!1)}function Ht(g,b){null==g&&function Ne(g,b,C,y){throw new Error(`ASSERTION ERROR: ${g}`+(null==y?"":` [Expected=> ${C} ${y} ${b} <=Actual]`))}(b,g,null,"!=")}function St(g){return{token:g.token,providedIn:g.providedIn||null,factory:g.factory,value:void 0}}function ci(g){return{providers:g.providers||[],imports:g.imports||[]}}function Or(g){return Wl(g,qn)||Wl(g,ma)}function Wl(g,b){return g.hasOwnProperty(b)?g[b]:null}function uo(g){return g&&(g.hasOwnProperty(zn)||g.hasOwnProperty(ho))?g[zn]:null}const qn=q({\u0275prov:q}),zn=q({\u0275inj:q}),ma=q({ngInjectableDef:q}),ho=q({ngInjectorDef:q});var Ke=(()=>((Ke=Ke||{})[Ke.Default=0]="Default",Ke[Ke.Host=1]="Host",Ke[Ke.Self=2]="Self",Ke[Ke.SkipSelf=4]="SkipSelf",Ke[Ke.Optional=8]="Optional",Ke))();let pi;function Pi(g){const b=pi;return pi=g,b}function _a(g,b,C){const y=Or(g);return y&&"root"==y.providedIn?void 0===y.value?y.value=y.factory():y.value:C&Ke.Optional?null:void 0!==b?b:void Ce(ee(g))}function Sn(g){return{toString:g}.toString()}var xi=(()=>((xi=xi||{})[xi.OnPush=0]="OnPush",xi[xi.Default=1]="Default",xi))(),$=(()=>{return(g=$||($={}))[g.Emulated=0]="Emulated",g[g.None=2]="None",g[g.ShadowDom=3]="ShadowDom",$;var g})();const de=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),ct={},ze=[],Xe=q({\u0275cmp:q}),ni=q({\u0275dir:q}),Ct=q({\u0275pipe:q}),an=q({\u0275mod:q}),it=q({\u0275fac:q}),Tt=q({__NG_ELEMENT_ID__:q});let kt=0;function hn(g){return Sn(()=>{const C=!0===g.standalone,y={},x={type:g.type,providersResolver:null,decls:g.decls,vars:g.vars,factory:null,template:g.template||null,consts:g.consts||null,ngContentSelectors:g.ngContentSelectors,hostBindings:g.hostBindings||null,hostVars:g.hostVars||0,hostAttrs:g.hostAttrs||null,contentQueries:g.contentQueries||null,declaredInputs:y,inputs:null,outputs:null,exportAs:g.exportAs||null,onPush:g.changeDetection===xi.OnPush,directiveDefs:null,pipeDefs:null,standalone:C,dependencies:C&&g.dependencies||null,getStandaloneInjector:null,selectors:g.selectors||ze,viewQuery:g.viewQuery||null,features:g.features||null,data:g.data||{},encapsulation:g.encapsulation||$.Emulated,id:"c"+kt++,styles:g.styles||ze,_:null,setInput:null,schemas:g.schemas||null,tView:null},S=g.dependencies,T=g.features;return x.inputs=po(g.inputs,y),x.outputs=po(g.outputs),T&&T.forEach(D=>D(x)),x.directiveDefs=S?()=>("function"==typeof S?S():S).map(bi).filter(Lr):null,x.pipeDefs=S?()=>("function"==typeof S?S():S).map(ki).filter(Lr):null,x})}function gr(g,b,C){const y=g.\u0275cmp;y.directiveDefs=()=>("function"==typeof b?b():b).map(bi),y.pipeDefs=()=>("function"==typeof C?C():C).map(ki)}function bi(g){return xt(g)||Ii(g)}function Lr(g){return null!==g}function jr(g){return Sn(()=>({type:g.type,bootstrap:g.bootstrap||ze,declarations:g.declarations||ze,imports:g.imports||ze,exports:g.exports||ze,transitiveCompileScopes:null,schemas:g.schemas||null,id:g.id||null}))}function po(g,b){if(null==g)return ct;const C={};for(const y in g)if(g.hasOwnProperty(y)){let x=g[y],S=x;Array.isArray(x)&&(S=x[1],x=x[0]),C[x]=y,b&&(b[x]=S)}return C}const Kd=hn;function $l(g){return{type:g.type,name:g.name,factory:null,pure:!1!==g.pure,standalone:!0===g.standalone,onDestroy:g.type.prototype.ngOnDestroy||null}}function xt(g){return g[Xe]||null}function Ii(g){return g[ni]||null}function ki(g){return g[Ct]||null}function Yi(g,b){const C=g[an]||null;if(!C&&!0===b)throw new Error(`Type ${ee(g)} does not have '\u0275mod' property.`);return C}function Et(g){return Array.isArray(g)&&"object"==typeof g[1]}function sn(g){return Array.isArray(g)&&!0===g[1]}function ya(g){return 0!=(8&g.flags)}function Wn(g){return 2==(2&g.flags)}function br(g){return 1==(1&g.flags)}function Oi(g){return null!==g.template}function Ql(g){return 0!=(256&g[2])}function Cr(g,b){return g.hasOwnProperty(it)?g[it]:null}class Jl{constructor(b,C,y){this.previousValue=b,this.currentValue=C,this.firstChange=y}isFirstChange(){return this.firstChange}}function mo(){return Ss}function Ss(g){return g.type.prototype.ngOnChanges&&(g.setInput=go),Kl}function Kl(){const g=dt(this),b=g?.current;if(b){const C=g.previous;if(C===ct)g.previous=b;else for(let y in b)C[y]=b[y];g.current=null,this.ngOnChanges(b)}}function go(g,b,C,y){const x=dt(g)||function xa(g,b){return g[fn]=b}(g,{previous:ct,current:null}),S=x.current||(x.current={}),T=x.previous,D=this.declaredInputs[C],H=T[D];S[D]=new Jl(H&&H.currentValue,b,T===ct),g[y]=b}mo.ngInherit=!0;const fn="__ngSimpleChanges__";function dt(g){return g[fn]||null}function Yt(g){for(;Array.isArray(g);)g=g[0];return g}function Fr(g,b){return Yt(b[g])}function Ti(g,b){return Yt(b[g.index])}function Co(g,b){return g.data[b]}function Sa(g,b){return g[b]}function qi(g,b){const C=b[g];return Et(C)?C:C[0]}function P(g){return 4==(4&g[2])}function O(g){return 64==(64&g[2])}function j(g,b){return null==b?null:g[b]}function ne(g){g[18]=0}function me(g,b){g[5]+=b;let C=g,y=g[3];for(;null!==y&&(1===b&&1===C[5]||-1===b&&0===C[5]);)y[5]+=b,C=y,y=y[3]}const ue={lFrame:nf(null),bindingsEnabled:!0};function vi(){return ue.bindingsEnabled}function we(){return ue.lFrame.lView}function ot(){return ue.lFrame.tView}function Mn(g){return ue.lFrame.contextLView=g,g[8]}function Ji(g){return ue.lFrame.contextLView=null,g}function Qt(){let g=Ta();for(;null!==g&&64===g.type;)g=g.parent;return g}function Ta(){return ue.lFrame.currentTNode}function zi(g,b){const C=ue.lFrame;C.currentTNode=g,C.isParent=b}function ru(){return ue.lFrame.isParent}function au(){ue.lFrame.isParent=!1}function Gi(){const g=ue.lFrame;let b=g.bindingRootIndex;return-1===b&&(b=g.bindingRootIndex=g.tView.bindingStartIndex),b}function Ea(){return ue.lFrame.bindingIndex++}function Qn(g){const b=ue.lFrame,C=b.bindingIndex;return b.bindingIndex=b.bindingIndex+g,C}function Nr(g,b){const C=ue.lFrame;C.bindingIndex=C.bindingRootIndex=g,tc(b)}function tc(g){ue.lFrame.currentDirectiveIndex=g}function ou(g){const b=ue.lFrame.currentDirectiveIndex;return-1===b?null:g[b]}function Xp(){return ue.lFrame.currentQueryIndex}function su(g){ue.lFrame.currentQueryIndex=g}function Kb(g){const b=g[1];return 2===b.type?b.declTNode:1===b.type?g[6]:null}function ef(g,b,C){if(C&Ke.SkipSelf){let x=b,S=g;for(;!(x=x.parent,null!==x||C&Ke.Host||(x=Kb(S),null===x||(S=S[15],10&x.type))););if(null===x)return!1;b=x,g=S}const y=ue.lFrame=tf();return y.currentTNode=b,y.lView=g,!0}function lu(g){const b=tf(),C=g[1];ue.lFrame=b,b.currentTNode=C.firstChild,b.lView=g,b.tView=C,b.contextLView=g,b.bindingIndex=C.bindingStartIndex,b.inI18n=!1}function tf(){const g=ue.lFrame,b=null===g?null:g.child;return null===b?nf(g):b}function nf(g){const b={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:g,child:null,inI18n:!1};return null!==g&&(g.child=b),b}function rf(){const g=ue.lFrame;return ue.lFrame=g.parent,g.currentTNode=null,g.lView=null,g}const af=rf;function cu(){const g=rf();g.isParent=!0,g.tView=null,g.selectedIndex=-1,g.contextLView=null,g.elementDepthCount=0,g.currentDirectiveIndex=-1,g.currentNamespace=null,g.bindingRootIndex=-1,g.bindingIndex=-1,g.currentQueryIndex=0}function Li(){return ue.lFrame.selectedIndex}function Yn(g){ue.lFrame.selectedIndex=g}function qt(){const g=ue.lFrame;return Co(g.tView,g.selectedIndex)}function Jn(){ue.lFrame.currentNamespace="svg"}function du(){!function lf(){ue.lFrame.currentNamespace=null}()}function Rs(g,b){for(let C=b.directiveStart,y=b.directiveEnd;C=y)break}else b[H]<0&&(g[18]+=65536),(D>11>16&&(3&g[2])===b){g[2]+=2048;try{S.call(D)}finally{}}}else try{S.call(D)}finally{}}class Da{constructor(b,C,y){this.factory=b,this.resolving=!1,this.canSeeViewProviders=C,this.injectImpl=y}}function ks(g,b,C){let y=0;for(;yb){T=S-1;break}}}for(;S>16}(g),y=b;for(;C>0;)y=y[15],C--;return y}let ff=!0;function pu(g){const b=ff;return ff=g,b}let rC=0;const Zn={};function Pa(g,b){const C=sc(g,b);if(-1!==C)return C;const y=b[1];y.firstCreatePass&&(g.injectorIndex=b.length,Ki(y.data,g),Ki(b,null),Ki(y.blueprint,null));const x=Bs(g,b),S=g.injectorIndex;if(hf(x)){const T=vo(x),D=Ra(x,b),H=D[1].data;for(let k=0;k<8;k++)b[S+k]=D[T+k]|H[T+k]}return b[S+8]=x,S}function Ki(g,b){g.push(0,0,0,0,0,0,0,0,b)}function sc(g,b){return-1===g.injectorIndex||g.parent&&g.parent.injectorIndex===g.injectorIndex||null===b[g.injectorIndex+8]?-1:g.injectorIndex}function Bs(g,b){if(g.parent&&-1!==g.parent.injectorIndex)return g.parent.injectorIndex;let C=0,y=null,x=b;for(;null!==x;){if(y=bf(x),null===y)return-1;if(C++,x=x[15],-1!==y.injectorIndex)return y.injectorIndex|C<<16}return-1}function lc(g,b,C){!function aC(g,b,C){let y;"string"==typeof C?y=C.charCodeAt(0)||0:C.hasOwnProperty(Tt)&&(y=C[Tt]),null==y&&(y=C[Tt]=rC++);const x=255&y;b.data[g+(x>>5)]|=1<=0?255&b:lC:b}(C);if("function"==typeof S){if(!ef(b,g,y))return y&Ke.Host?fu(x,0,y):Vs(b,C,y,x);try{const T=S(y);if(null!=T||y&Ke.Optional)return T;Ce()}finally{af()}}else if("number"==typeof S){let T=null,D=sc(g,b),H=-1,k=y&Ke.Host?b[16][6]:null;for((-1===D||y&Ke.SkipSelf)&&(H=-1===D?Bs(g,b):b[D+8],-1!==H&&xo(y,!1)?(T=b[1],D=vo(H),b=Ra(H,b)):D=-1);-1!==D;){const B=b[1];if(Ao(S,D,B.data)){const U=cc(D,b,C,T,y,k);if(U!==Zn)return U}H=b[D+8],-1!==H&&xo(y,b[1].data[D+8]===k)&&Ao(S,D,b)?(T=B,D=vo(H),b=Ra(H,b)):D=-1}}return x}function cc(g,b,C,y,x,S){const T=b[1],D=T.data[g+8],B=zr(D,T,C,null==y?Wn(D)&&ff:y!=T&&0!=(3&D.type),x&Ke.Host&&S===D);return null!==B?Os(b,T,B,D):Zn}function zr(g,b,C,y,x){const S=g.providerIndexes,T=b.data,D=1048575&S,H=g.directiveStart,B=S>>20,te=x?D+B:g.directiveEnd;for(let se=y?D:D+B;se=H&&_e.type===C)return se}if(x){const se=T[H];if(se&&Oi(se)&&se.type===C)return H}return null}function Os(g,b,C,y){let x=g[C];const S=b.data;if(function eC(g){return g instanceof Da}(x)){const T=x;T.resolving&&function Le(g,b){const C=b?`. Dependency path: ${b.join(" > ")} > ${g}`:"";throw new ae(-200,`Circular dependency in DI detected for ${g}${C}`)}(function be(g){return"function"==typeof g?g.name||g.toString():"object"==typeof g&&null!=g&&"function"==typeof g.type?g.type.name||g.type.toString():fe(g)}(S[C]));const D=pu(T.canSeeViewProviders);T.resolving=!0;const H=T.injectImpl?Pi(T.injectImpl):null;ef(g,y,Ke.Default);try{x=g[C]=T.factory(void 0,S,g,y),b.firstCreatePass&&C>=y.directiveStart&&function qr(g,b,C){const{ngOnChanges:y,ngOnInit:x,ngDoCheck:S}=b.type.prototype;if(y){const T=Ss(b);(C.preOrderHooks||(C.preOrderHooks=[])).push(g,T),(C.preOrderCheckHooks||(C.preOrderCheckHooks=[])).push(g,T)}x&&(C.preOrderHooks||(C.preOrderHooks=[])).push(0-g,x),S&&((C.preOrderHooks||(C.preOrderHooks=[])).push(g,S),(C.preOrderCheckHooks||(C.preOrderCheckHooks=[])).push(g,S))}(C,S[C],b)}finally{null!==H&&Pi(H),pu(D),T.resolving=!1,af()}}return x}function Ao(g,b,C){return!!(C[b+(g>>5)]&1<{const b=g.prototype.constructor,C=b[it]||mu(b),y=Object.prototype;let x=Object.getPrototypeOf(g.prototype).constructor;for(;x&&x!==y;){const S=x[it]||mu(x);if(S&&S!==C)return S;x=Object.getPrototypeOf(x)}return S=>new S})}function mu(g){return oe(g)?()=>{const b=mu(re(g));return b&&b()}:Cr(g)}function bf(g){const b=g[1],C=b.type;return 2===C?b.declTNode:1===C?g[6]:null}function Cf(g){return function oC(g,b){if("class"===b)return g.classes;if("style"===b)return g.styles;const C=g.attrs;if(C){const y=C.length;let x=0;for(;x{const y=function gu(g){return function(...C){if(g){const y=g(...C);for(const x in y)this[x]=y[x]}}}(b);function x(...S){if(this instanceof x)return y.apply(this,S),this;const T=new x(...S);return D.annotation=T,D;function D(H,k,B){const U=H.hasOwnProperty(Gr)?H[Gr]:Object.defineProperty(H,Gr,{value:[]})[Gr];for(;U.length<=B;)U.push(null);return(U[B]=U[B]||[]).push(T),H}}return C&&(x.prototype=Object.create(C.prototype)),x.prototype.ngMetadataName=g,x.annotationCls=x,x})}class Pt{constructor(b,C){this._desc=b,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof C?this.__NG_ELEMENT_ID__=C:void 0!==C&&(this.\u0275prov=St({token:this,providedIn:C.providedIn||"root",factory:C.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Zi(g,b){void 0===b&&(b=g);for(let C=0;CArray.isArray(C)?Xn(C,b):b(C))}function js(g,b,C){b>=g.length?g.push(C):g.splice(b,0,C)}function ka(g,b){return b>=g.length-1?g.pop():g.splice(b,1)[0]}function Do(g,b){const C=[];for(let y=0;y=0?g[1|y]=C:(y=~y,function hC(g,b,C,y){let x=g.length;if(x==b)g.push(C,y);else if(1===x)g.push(y,g[0]),g[0]=C;else{for(x--,g.push(g[x-1],g[x]);x>b;)g[x]=g[x-2],x--;g[b]=C,g[b+1]=y}}(g,y,b,C)),y}function Ro(g,b){const C=Po(g,b);if(C>=0)return g[1|C]}function Po(g,b){return function xf(g,b,C){let y=0,x=g.length>>C;for(;x!==y;){const S=y+(x-y>>1),T=g[S<b?x=S:y=S+1}return~(x<g,createScript:g=>g,createScriptURL:g=>g})}catch{}return Cc}()?.createHTML(g)||g}class Wr{constructor(b){this.changingThisBreaksApplicationSecurity=b}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class kC extends Wr{getTypeName(){return"HTML"}}class Du extends Wr{getTypeName(){return"Style"}}class BC extends Wr{getTypeName(){return"Script"}}class VC extends Wr{getTypeName(){return"URL"}}class OC extends Wr{getTypeName(){return"ResourceURL"}}function $r(g){return g instanceof Wr?g.changingThisBreaksApplicationSecurity:g}function Oo(g,b){const C=function Qr(g){return g instanceof Wr&&g.getTypeName()||null}(g);if(null!=C&&C!==b){if("ResourceURL"===C&&"URL"===b)return!0;throw new Error(`Required a safe ${b}, got a ${C} (see https://g.co/ng/security#xss)`)}return C===b}function Hu(g){return new kC(g)}function gi(g){return new Du(g)}function nx(g){return new BC(g)}function Lo(g){return new VC(g)}function Bf(g){return new OC(g)}class $s{constructor(b){this.inertDocumentHelper=b}getInertBodyElement(b){b=""+b;try{const C=(new window.DOMParser).parseFromString(Vo(b),"text/html").body;return null===C?this.inertDocumentHelper.getInertBodyElement(b):(C.removeChild(C.firstChild),C)}catch{return null}}}class LC{constructor(b){if(this.defaultDoc=b,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const C=this.inertDocument.createElement("html");this.inertDocument.appendChild(C);const y=this.inertDocument.createElement("body");C.appendChild(y)}}getInertBodyElement(b){const C=this.inertDocument.createElement("template");if("content"in C)return C.innerHTML=Vo(b),C;const y=this.inertDocument.createElement("body");return y.innerHTML=Vo(b),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(y),y}stripCustomNsAttrs(b){const C=b.attributes;for(let x=C.length-1;0xr(b.trim())).join(", ")),this.buf.push(" ",T,'="',UC(H),'"')}var g;return this.buf.push(">"),!0}endElement(b){const C=b.nodeName.toLowerCase();Lf.hasOwnProperty(C)&&!vc.hasOwnProperty(C)&&(this.buf.push(""))}chars(b){this.buf.push(UC(b))}checkClobberedElement(b,C){if(C&&(b.compareDocumentPosition(C)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${b.outerHTML}`);return C}}const Ff=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,sx=/([^\#-~ |!])/g;function UC(g){return g.replace(/&/g,"&").replace(Ff,function(b){return"&#"+(1024*(b.charCodeAt(0)-55296)+(b.charCodeAt(1)-56320)+65536)+";"}).replace(sx,function(b){return"&#"+b.charCodeAt(0)+";"}).replace(//g,">")}let Sc;function Uf(g,b){let C=null;try{Sc=Sc||function Ru(g){const b=new LC(g);return function er(){try{return!!(new window.DOMParser).parseFromString(Vo(""),"text/html")}catch{return!1}}()?new $s(b):b}(g);let y=b?String(b):"";C=Sc.getInertBodyElement(y);let x=5,S=y;do{if(0===x)throw new Error("Failed to sanitize html because the input is unstable");x--,y=S,S=C.innerHTML,C=Sc.getInertBodyElement(y)}while(y!==S);return Vo((new jf).sanitizeChildren(Iu(C)||C))}finally{if(C){const y=Iu(C)||C;for(;y.firstChild;)y.removeChild(y.firstChild)}}}function Iu(g){return"content"in g&&function Nf(g){return g.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===g.nodeName}(g)?g.content:null}var ai=(()=>((ai=ai||{})[ai.NONE=0]="NONE",ai[ai.HTML=1]="HTML",ai[ai.STYLE=2]="STYLE",ai[ai.SCRIPT=3]="SCRIPT",ai[ai.URL=4]="URL",ai[ai.RESOURCE_URL=5]="RESOURCE_URL",ai))();function qf(g){const b=function Tc(){const g=we();return g&&g[12]}();return b?b.sanitize(ai.URL,g)||"":Oo(g,"URL")?$r(g):xr(fe(g))}const zf=new Pt("ENVIRONMENT_INITIALIZER"),GC=new Pt("INJECTOR",-1),Gf=new Pt("INJECTOR_DEF_TYPES");class WC{get(b,C=Io){if(C===Io){const y=new Error(`NullInjectorError: No provider for ${ee(b)}!`);throw y.name="NullInjectorError",y}return C}}function hx(...g){return{\u0275providers:$C(0,g)}}function $C(g,...b){const C=[],y=new Set;let x;return Xn(b,S=>{const T=S;Ec(T,C,[],y)&&(x||(x=[]),x.push(T))}),void 0!==x&&QC(x,C),C}function QC(g,b){for(let C=0;C{b.push(S)})}}function Ec(g,b,C,y){if(!(g=re(g)))return!1;let x=null,S=uo(g);const T=!S&&xt(g);if(S||T){if(T&&!T.standalone)return!1;x=g}else{const H=g.ngModule;if(S=uo(H),!S)return!1;x=H}const D=y.has(x);if(T){if(D)return!1;if(y.add(x),T.dependencies){const H="function"==typeof T.dependencies?T.dependencies():T.dependencies;for(const k of H)Ec(k,b,C,y)}}else{if(!S)return!1;{if(null!=S.imports&&!D){let k;y.add(x);try{Xn(S.imports,B=>{Ec(B,b,C,y)&&(k||(k=[]),k.push(B))})}finally{}void 0!==k&&QC(k,b)}if(!D){const k=Cr(x)||(()=>new x);b.push({provide:x,useFactory:k,deps:ze},{provide:Gf,useValue:x,multi:!0},{provide:zf,useValue:()=>Jt(x),multi:!0})}const H=S.providers;null==H||D||Xn(H,B=>{b.push(B)})}}return x!==g&&void 0!==g.providers}const px=q({provide:String,useValue:q});function Wf(g){return null!==g&&"object"==typeof g&&px in g}function Fo(g){return"function"==typeof g}const $f=new Pt("Set Injector scope."),Bu={},mx={};let Qf;function Vu(){return void 0===Qf&&(Qf=new WC),Qf}class Uo{}class KC extends Uo{constructor(b,C,y,x){super(),this.parent=C,this.source=y,this.scopes=x,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Jf(b,T=>this.processProvider(T)),this.records.set(GC,Qs(void 0,this)),x.has("environment")&&this.records.set(Uo,Qs(void 0,this));const S=this.records.get($f);null!=S&&"string"==typeof S.value&&this.scopes.add(S.value),this.injectorDefTypes=new Set(this.get(Gf.multi,ze,Ke.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const b of this._ngOnDestroyHooks)b.ngOnDestroy();for(const b of this._onDestroyHooks)b()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(b){this._onDestroyHooks.push(b)}runInContext(b){this.assertNotDestroyed();const C=ko(this),y=Pi(void 0);try{return b()}finally{ko(C),Pi(y)}}get(b,C=Io,y=Ke.Default){this.assertNotDestroyed();const x=ko(this),S=Pi(void 0);try{if(!(y&Ke.SkipSelf)){let D=this.records.get(b);if(void 0===D){const H=function wx(g){return"function"==typeof g||"object"==typeof g&&g instanceof Pt}(b)&&Or(b);D=H&&this.injectableDefInScope(H)?Qs(Yf(b),Bu):null,this.records.set(b,D)}if(null!=D)return this.hydrate(b,D)}return(y&Ke.Self?Vu():this.parent).get(b,C=y&Ke.Optional&&C===Io?null:C)}catch(T){if("NullInjectorError"===T.name){if((T[pc]=T[pc]||[]).unshift(ee(b)),x)throw T;return function vC(g,b,C,y){const x=g[pc];throw b[Tf]&&x.unshift(b[Tf]),g.message=function Au(g,b,C,y=null){g=g&&"\n"===g.charAt(0)&&"\u0275"==g.charAt(1)?g.slice(2):g;let x=ee(b);if(Array.isArray(b))x=b.map(ee).join(" -> ");else if("object"==typeof b){let S=[];for(let T in b)if(b.hasOwnProperty(T)){let D=b[T];S.push(T+":"+("string"==typeof D?JSON.stringify(D):ee(D)))}x=`{${S.join(", ")}}`}return`${C}${y?"("+y+")":""}[${x}]: ${g.replace(CC,"\n ")}`}("\n"+g.message,x,C,y),g.ngTokenPath=x,g[pc]=null,g}(T,b,"R3InjectorError",this.source)}throw T}finally{Pi(S),ko(x)}}resolveInjectorInitializers(){const b=ko(this),C=Pi(void 0);try{const y=this.get(zf.multi,ze,Ke.Self);for(const x of y)x()}finally{ko(b),Pi(C)}}toString(){const b=[],C=this.records;for(const y of C.keys())b.push(ee(y));return`R3Injector[${b.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ae(205,!1)}processProvider(b){let C=Fo(b=re(b))?b:re(b&&b.provide);const y=function _x(g){return Wf(g)?Qs(void 0,g.useValue):Qs(ZC(g),Bu)}(b);if(Fo(b)||!0!==b.multi)this.records.get(C);else{let x=this.records.get(C);x||(x=Qs(void 0,Bu,!0),x.factory=()=>vu(x.multi),this.records.set(C,x)),C=b,x.multi.push(b)}this.records.set(C,y)}hydrate(b,C){return C.value===Bu&&(C.value=mx,C.value=C.factory()),"object"==typeof C.value&&C.value&&function Cx(g){return null!==g&&"object"==typeof g&&"function"==typeof g.ngOnDestroy}(C.value)&&this._ngOnDestroyHooks.add(C.value),C.value}injectableDefInScope(b){if(!b.providedIn)return!1;const C=re(b.providedIn);return"string"==typeof C?"any"===C||this.scopes.has(C):this.injectorDefTypes.has(C)}}function Yf(g){const b=Or(g),C=null!==b?b.factory:Cr(g);if(null!==C)return C;if(g instanceof Pt)throw new ae(204,!1);if(g instanceof Function)return function gx(g){const b=g.length;if(b>0)throw Do(b,"?"),new ae(204,!1);const C=function co(g){const b=g&&(g[qn]||g[ma]);if(b){const C=function Yd(g){if(g.hasOwnProperty("name"))return g.name;const b=(""+g).match(/^function\s*([^\s(]+)/);return null===b?"":b[1]}(g);return console.warn(`DEPRECATED: DI is instantiating a token "${C}" 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 "${C}" class.`),b}return null}(g);return null!==C?()=>C.factory(g):()=>new g}(g);throw new ae(204,!1)}function ZC(g,b,C){let y;if(Fo(g)){const x=re(g);return Cr(x)||Yf(x)}if(Wf(g))y=()=>re(g.useValue);else if(function JC(g){return!(!g||!g.useFactory)}(g))y=()=>g.useFactory(...vu(g.deps||[]));else if(function YC(g){return!(!g||!g.useExisting)}(g))y=()=>Jt(re(g.useExisting));else{const x=re(g&&(g.useClass||g.provide));if(!function bx(g){return!!g.deps}(g))return Cr(x)||Yf(x);y=()=>new x(...vu(g.deps))}return y}function Qs(g,b,C=!1){return{factory:g,value:b,multi:C?[]:void 0}}function yx(g){return!!g.\u0275providers}function Jf(g,b){for(const C of g)Array.isArray(C)?Jf(C,b):yx(C)?Jf(C.\u0275providers,b):b(C)}class Kf{}class Ax{resolveComponentFactory(b){throw function vx(g){const b=Error(`No component factory found for ${ee(g)}. Did you add it to @NgModule.entryComponents?`);return b.ngComponent=g,b}(b)}}let Mc=(()=>{class g{}return g.NULL=new Ax,g})();function xx(){return Ys(Qt(),we())}function Ys(g,b){return new Dc(Ti(g,b))}let Dc=(()=>{class g{constructor(C){this.nativeElement=C}}return g.__NG_ELEMENT_ID__=xx,g})();function Sx(g){return g instanceof Dc?g.nativeElement:g}class tw{}let Tx=(()=>{class g{}return g.__NG_ELEMENT_ID__=()=>function Ex(){const g=we(),C=qi(Qt().index,g);return(Et(C)?C:g)[11]}(),g})(),Mx=(()=>{class g{}return g.\u0275prov=St({token:g,providedIn:"root",factory:()=>null}),g})();class iw{constructor(b){this.full=b,this.major=b.split(".")[0],this.minor=b.split(".")[1],this.patch=b.split(".").slice(2).join(".")}}const Dx=new iw("14.1.2"),Zf={};function nm(g){return g.ngOriginalError}class Hc{constructor(){this._console=console}handleError(b){const C=this._findOriginalError(b);this._console.error("ERROR",b),C&&this._console.error("ORIGINAL ERROR",C)}_findOriginalError(b){let C=b&&nm(b);for(;C&&nm(C);)C=nm(C);return C||null}}const rm=new Map;let Ux=0;const Pc="__ngContext__";function Mi(g,b){Et(b)?(g[Pc]=b[20],function qx(g){rm.set(g[20],g)}(b)):g[Pc]=b}function Js(g){const b=g[Pc];return"number"==typeof b?function lw(g){return rm.get(g)||null}(b):b||null}function Ou(g){const b=Js(g);return b?Et(b)?b:b.lView:null}const dw=(()=>(typeof requestAnimationFrame<"u"&&requestAnimationFrame||setTimeout).bind(de))();function Xi(g){return g instanceof Function?g():g}var Hn=(()=>((Hn=Hn||{})[Hn.Important=1]="Important",Hn[Hn.DashCase=2]="DashCase",Hn))();function sm(g,b){return undefined(g,b)}function Ic(g){const b=g[3];return sn(b)?b[3]:b}function cm(g){return um(g[13])}function dm(g){return um(g[4])}function um(g){for(;null!==g&&!sn(g);)g=g[4];return g}function ja(g,b,C,y,x){if(null!=y){let S,T=!1;sn(y)?S=y:Et(y)&&(T=!0,y=y[0]);const D=Yt(y);0===g&&null!==C?null==x?Tw(b,C,D):No(b,C,D,x||null,!0):1===g&&null!==C?No(b,C,D,x||null,!0):2===g?function bm(g,b,C){const y=qo(g,b);y&&function Jx(g,b,C,y){g.removeChild(b,C,y)}(g,y,b,C)}(b,D,T):3===g&&b.destroyNode(D),null!=S&&function Cm(g,b,C,y,x){const S=C[7];S!==Yt(C)&&ja(b,g,y,S,x);for(let D=10;D0&&(g[C-1][4]=y[4]);const S=ka(g,10+b);!function bw(g,b){gn(g,b,b[11],2,null,null),b[0]=null,b[6]=null}(y[1],y);const T=S[19];null!==T&&T.detachView(S[1]),y[3]=null,y[4]=null,y[2]&=-65}return y}function fm(g,b){if(!(128&b[2])){const C=b[11];C.destroyNode&&gn(g,b,C,3,null,null),function yw(g){let b=g[13];if(!b)return qu(g[1],g);for(;b;){let C=null;if(Et(b))C=b[13];else{const y=b[10];y&&(C=y)}if(!C){for(;b&&!b[4]&&b!==g;)Et(b)&&qu(b[1],b),b=b[3];null===b&&(b=g),Et(b)&&qu(b[1],b),C=b&&b[4]}b=C}}(b)}}function qu(g,b){if(!(128&b[2])){b[2]&=-65,b[2]|=128,function zu(g,b){let C;if(null!=g&&null!=(C=g.destroyHooks))for(let y=0;y=0?y[x=k]():y[x=-k].unsubscribe(),S+=2}else{const T=y[x=C[S+1]];C[S].call(T)}if(null!==y){for(let S=x+1;SS?"":x[U+1].toLowerCase();const se=8&y?te:null;if(se&&-1!==wm(se,k,0)||2&y&&k!==te){if(_n(y))return!1;T=!0}}}}else{if(!T&&!_n(y)&&!_n(H))return!1;if(T&&_n(H))continue;T=!1,y=H|1&y}}return _n(y)||T}function _n(g){return 0==(1&g)}function eS(g,b,C,y){if(null===b)return-1;let x=0;if(y||!C){let S=!1;for(;x-1)for(C++;C0?'="'+D+'"':"")+"]"}else 8&y?x+="."+T:4&y&&(x+=" "+T);else""!==x&&!_n(T)&&(b+=Am(S,x),x=""),y=T,S=S||!_n(y);C++}return""!==x&&(b+=Am(S,x)),b}const Se={};function Vw(g){Ow(ot(),we(),Li()+g,!1)}function Ow(g,b,C,y){if(!y)if(3==(3&b[2])){const S=g.preOrderCheckHooks;null!==S&&ic(b,S,C)}else{const S=g.preOrderHooks;null!==S&&Ma(b,S,0,C)}Yn(C)}function bn(g,b=null,C=null,y){const x=tl(g,b,C,y);return x.resolveInjectorInitializers(),x}function tl(g,b=null,C=null,y,x=new Set){const S=[C||ze,hx(g)];return y=y||("object"==typeof g?void 0:ee(g)),new KC(S,b||Vu(),y||null,x)}let qa=(()=>{class g{static create(C,y){if(Array.isArray(C))return bn({name:""},y,C,"");{const x=C.name??"";return bn({name:x},C.parent,C.providers,x)}}}return g.THROW_IF_NOT_FOUND=Io,g.NULL=new WC,g.\u0275prov=St({token:g,providedIn:"any",factory:()=>Jt(GC)}),g.__NG_ELEMENT_ID__=-1,g})();function il(g,b=Ke.Default){const C=we();return null===C?Jt(g,b):mf(Qt(),C,re(g),b)}function Ww(){throw new Error("invalid")}function ih(g,b){return g<<17|b<<2}function ir(g){return g>>17&32767}function nh(g){return 2|g}function Kr(g){return(131068&g)>>2}function rh(g,b){return-131069&g|b<<2}function ah(g){return 1|g}function Nm(g,b){const C=g.contentQueries;if(null!==C)for(let y=0;y22&&Ow(g,b,22,!1),C(y,x)}finally{Yn(S)}}function ph(g,b,C){if(ya(b)){const x=b.directiveEnd;for(let S=b.directiveStart;S0;){const C=g[--b];if("number"==typeof C&&C<0)return C}return 0})(D)!=H&&D.push(H),D.push(y,x,T)}}function ly(g,b){null!==g.hostBindings&&g.hostBindings(1,b)}function cy(g,b){b.flags|=2,(g.components||(g.components=[])).push(b.index)}function wh(g,b,C){if(C){if(b.exportAs)for(let y=0;y0&&nr(C)}}function nr(g){for(let y=cm(g);null!==y;y=dm(y))for(let x=10;x0&&nr(S)}const C=g[1].components;if(null!==C)for(let y=0;y0&&nr(x)}}function $m(g,b){const C=qi(b,g),y=C[1];(function dy(g,b){for(let C=b.length;CPromise.resolve(null))();function py(g){return g[7]||(g[7]=[])}function fy(g){return g.cleanup||(g.cleanup=[])}function Th(g,b,C){return(null===g||Oi(g))&&(C=function Ds(g){for(;Array.isArray(g);){if("object"==typeof g[1])return g;g=g[0]}return null}(C[b.index])),C[11]}function Km(g,b){const C=g[9],y=C?C.get(Hc,null):null;y&&y.handleError(b)}function Eh(g,b,C,y,x){for(let S=0;S-1&&(Nu(b,y),ka(C,y))}this._attachedToViewContainer=!1}fm(this._lView[1],this._lView)}onDestroy(b){Ga(this._lView[1],this._lView,null,b)}markForCheck(){Sh(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){!function Kc(g,b,C){const y=b[10];y.begin&&y.begin();try{Pn(g,b,g.template,C)}catch(x){throw Km(b,x),x}finally{y.end&&y.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ae(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function ww(g,b){gn(g,b,b[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(b){if(this._attachedToViewContainer)throw new ae(902,!1);this._appRef=b}}class my extends cl{constructor(b){super(b),this._view=b}detectChanges(){Ym(this._view)}checkNoChanges(){}get context(){return null}}class Mr extends Mc{constructor(b){super(),this.ngModule=b}resolveComponentFactory(b){const C=xt(b);return new Zc(C,this.ngModule)}}function Mh(g){const b=[];for(let C in g)g.hasOwnProperty(C)&&b.push({propName:g[C],templateName:C});return b}class SS{constructor(b,C){this.injector=b,this.parentInjector=C}get(b,C,y){const x=this.injector.get(b,Zf,y);return x!==Zf||C===Zf?x:this.parentInjector.get(b,C,y)}}class Zc extends Kf{constructor(b,C){super(),this.componentDef=b,this.ngModule=C,this.componentType=b.type,this.selector=function kw(g){return g.map(Iw).join(",")}(b.selectors),this.ngContentSelectors=b.ngContentSelectors?b.ngContentSelectors:[],this.isBoundToModule=!!C}get inputs(){return Mh(this.componentDef.inputs)}get outputs(){return Mh(this.componentDef.outputs)}create(b,C,y,x){let S=(x=x||this.ngModule)instanceof Uo?x:x?.injector;S&&null!==this.componentDef.getStandaloneInjector&&(S=this.componentDef.getStandaloneInjector(S)||S);const T=S?new SS(b,S):b,D=T.get(tw,null);if(null===D)throw new ae(407,!1);const H=T.get(Mx,null),k=D.createRenderer(null,this.componentDef),B=this.componentDef.selectors[0][0]||"div",U=y?function ry(g,b,C){return g.selectRootElement(b,C===$.ShadowDom)}(k,y,this.componentDef.encapsulation):Fu(D.createRenderer(null,this.componentDef),B,function Zm(g){const b=g.toLowerCase();return"svg"===b?"svg":"math"===b?"math":null}(B)),te=this.componentDef.onPush?288:272,se=function _y(g,b){return{components:[],scheduler:g||dw,clean:hy,playerHandler:b||null,flags:0}}(),_e=gh(0,null,null,1,0,null,null,null,null,null),Me=al(null,_e,se,te,null,null,D,k,H,T,null);let Be,Ue;lu(Me);try{const Ye=function rr(g,b,C,y,x,S){const T=C[1];C[22]=g;const H=ta(T,22,2,"#host",null),k=H.mergedAttrs=b.hostAttrs;null!==k&&(na(H,k,!0),null!==g&&(ks(x,g,k),null!==H.classes&&Ua(x,g,H.classes),null!==H.styles&&Ju(x,g,H.styles)));const B=y.createRenderer(g,b),U=al(C,zm(b),null,b.onPush?32:16,C[22],H,y,B,S||null,null,null);return T.firstCreatePass&&(lc(Pa(H,C),T,b.type),cy(T,H),yh(H,C.length,1)),xh(C,U),C[22]=U}(U,this.componentDef,Me,D,k);if(U)if(y)ks(k,U,["ng-version",Dx.full]);else{const{attrs:ve,classes:$e}=function Bw(g){const b=[],C=[];let y=1,x=2;for(;y0&&Ua(k,U,$e.join(" "))}if(Ue=Co(_e,22),void 0!==C){const ve=Ue.projection=[];for(let $e=0;$e=0;y--){const x=g[y];x.hostVars=b+=x.hostVars,x.hostAttrs=Ha(x.hostAttrs,C=Ha(C,x.hostAttrs))}}(y)}function tg(g){return g===ct?{}:g===ze?[]:g}function ig(g,b){const C=g.viewQuery;g.viewQuery=C?(y,x)=>{b(y,x),C(y,x)}:b}function by(g,b){const C=g.contentQueries;g.contentQueries=C?(y,x,S)=>{b(y,x,S),C(y,x,S)}:b}function Dr(g,b){const C=g.hostBindings;g.hostBindings=C?(y,x)=>{b(y,x),C(y,x)}:b}let dl=null;function je(){if(!dl){const g=de.Symbol;if(g&&g.iterator)dl=g.iterator;else{const b=Object.getOwnPropertyNames(Map.prototype);for(let C=0;CD(Yt(gt[y.index])):y.index;let $e=null;if(!D&&H&&($e=function kS(g,b,C,y){const x=g.cleanup;if(null!=x)for(let S=0;SH?D[H]:null}"string"==typeof T&&(S+=2)}return null}(g,b,x,y.index)),null!==$e)($e.__ngLastListenerFn__||$e).__ngNextListenerFn__=S,$e.__ngLastListenerFn__=S,se=!1;else{S=fg(y,b,U,S,!1);const gt=C.listen(Ue,x,S);te.push(S,gt),B&&B.push(x,ve,Ye,Ye+1)}}else S=fg(y,b,U,S,!1);const _e=y.outputs;let Me;if(se&&null!==_e&&(Me=_e[x])){const Be=Me.length;if(Be)for(let Ue=0;Ue0;)b=b[15],g--;return b}(g,ue.lFrame.contextLView))[8]}(g)}function BS(g,b){let C=null;const y=function tS(g){const b=g.attrs;if(null!=b){const C=b.indexOf(5);if(0==(1&C))return b[C+1]}return null}(g);for(let x=0;x=0}const _i={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function By(g){return g.substring(_i.key,_i.keyEnd)}function Vy(g,b){const C=_i.textEnd;return C===b?-1:(b=_i.keyEnd=function Ly(g,b,C){for(;b32;)b++;return b}(g,_i.key=b,C),ml(g,b,C))}function ml(g,b,C){for(;b=0;C=Vy(b,C))ln(g,By(b),!0)}function or(g,b,C,y){const x=we(),S=ot(),T=Qn(2);S.firstUpdatePass&&os(S,g,T,y),b!==Se&&Di(x,T,b)&&yg(S,S.data[Li()],x,x[11],g,x[T+1]=function WS(g,b){return null==g||("string"==typeof b?g+=b:"object"==typeof g&&(g=ee($r(g)))),g}(b,C),y,T)}function sr(g,b,C,y){const x=ot(),S=Qn(2);x.firstUpdatePass&&os(x,null,S,y);const T=we();if(C!==Se&&Di(T,S,C)){const D=x.data[Li()];if($y(D,y)&&!Uy(x,S)){let H=y?D.classesWithoutHost:D.stylesWithoutHost;null!==H&&(C=W(H,C||"")),ug(x,D,T,C,y)}else!function Gy(g,b,C,y,x,S,T,D){x===Se&&(x=ze);let H=0,k=0,B=0=g.expandoStartIndex}function os(g,b,C,y){const x=g.data;if(null===x[C+1]){const S=x[Li()],T=Uy(g,C);$y(S,y)&&null===b&&!T&&(b=!1),b=function zS(g,b,C,y){const x=ou(g);let S=y?b.residualClasses:b.residualStyles;if(null===x)0===(y?b.classBindings:b.styleBindings)&&(C=rd(C=wg(null,g,b,C,y),b.attrs,y),S=null);else{const T=b.directiveStylingLast;if(-1===T||g[T]!==x)if(C=wg(x,g,b,C,y),null===S){let H=function Ny(g,b,C){const y=C?b.classBindings:b.styleBindings;if(0!==Kr(y))return g[ir(y)]}(g,b,y);void 0!==H&&Array.isArray(H)&&(H=wg(null,g,b,H[1],y),H=rd(H,b.attrs,y),function qy(g,b,C,y){g[ir(C?b.classBindings:b.styleBindings)]=y}(g,b,y,H))}else S=function zy(g,b,C){let y;const x=b.directiveEnd;for(let S=1+b.directiveStylingLast;S0)&&(k=!0)}else B=C;if(x)if(0!==H){const te=ir(g[D+1]);g[y+1]=ih(te,D),0!==te&&(g[te+1]=rh(g[te+1],y)),g[D+1]=function Qw(g,b){return 131071&g|b<<17}(g[D+1],y)}else g[y+1]=ih(D,0),0!==D&&(g[D+1]=rh(g[D+1],y)),D=y;else g[y+1]=ih(H,0),0===D?D=y:g[H+1]=rh(g[H+1],y),H=y;k&&(g[y+1]=nh(g[y+1])),bg(g,B,y,!0),bg(g,B,y,!1),function ky(g,b,C,y,x){const S=x?g.residualClasses:g.residualStyles;null!=S&&"string"==typeof b&&Po(S,b)>=0&&(C[y+1]=ah(C[y+1]))}(b,B,g,y,S),T=ih(D,H),S?b.classBindings=T:b.styleBindings=T}(x,S,b,C,T,y)}}function wg(g,b,C,y,x){let S=null;const T=C.directiveEnd;let D=C.directiveStylingLast;for(-1===D?D=C.directiveStart:D++;D0;){const H=g[x],k=Array.isArray(H),B=k?H[1]:H,U=null===B;let te=C[x+1];te===Se&&(te=U?ze:void 0);let se=U?Ro(te,y):B===y?te:void 0;if(k&&!Nh(se)&&(se=Ro(H,y)),Nh(se)&&(D=se,T))return D;const _e=g[x+1];x=T?ir(_e):Kr(_e)}if(null!==b){let H=S?b.residualClasses:b.residualStyles;null!=H&&(D=Ro(H,y))}return D}function Nh(g){return void 0!==g}function $y(g,b){return 0!=(g.flags&(b?16:32))}function Qy(g,b=""){const C=we(),y=ot(),x=g+22,S=y.firstCreatePass?ta(y,x,1,b,null):y.data[x],T=C[x]=function hm(g,b){return g.createText(b)}(C[11],b);kc(y,C,T,S),zi(S,!1)}function vg(g){return $a("",g,""),vg}function $a(g,b,C){const y=we(),x=Zo(y,g,b,C);return x!==Se&&yn(y,Li(),x),$a}function Ag(g,b,C,y,x,S,T){const D=we(),H=es(D,g,b,C,y,x,S,T);return H!==Se&&yn(D,Li(),H),Ag}function tv(g,b,C){sr(ln,Rr,Zo(we(),g,b,C),!0)}function zh(g,b,C){const y=we();return Di(y,Ea(),b)&&en(ot(),qt(),y,g,b,y[11],C,!0),zh}function Qa(g,b,C){const y=we();if(Di(y,Ea(),b)){const S=ot(),T=qt();en(S,T,y,g,b,Th(ou(S.data),T,y),C,!0)}return Qa}const ra=void 0;var Eg=["en",[["a","p"],["AM","PM"],ra],[["AM","PM"],ra,ra],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],ra,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],ra,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",ra,"{1} 'at' {0}",ra],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function lv(g){const C=Math.floor(Math.abs(g)),y=g.toString().replace(/^[^.]*\.?/,"").length;return 1===C&&0===y?1:5}];let Ya={};function Ja(g){const b=function uv(g){return g.toLowerCase().replace(/_/g,"-")}(g);let C=bl(b);if(C)return C;const y=b.split("-")[0];if(C=bl(y),C)return C;if("en"===y)return Eg;throw new ae(701,!1)}function cv(g){return Ja(g)[Ze.PluralCase]}function bl(g){return g in Ya||(Ya[g]=de.ng&&de.ng.common&&de.ng.common.locales&&de.ng.common.locales[g]),Ya[g]}var Ze=(()=>((Ze=Ze||{})[Ze.LocaleId=0]="LocaleId",Ze[Ze.DayPeriodsFormat=1]="DayPeriodsFormat",Ze[Ze.DayPeriodsStandalone=2]="DayPeriodsStandalone",Ze[Ze.DaysFormat=3]="DaysFormat",Ze[Ze.DaysStandalone=4]="DaysStandalone",Ze[Ze.MonthsFormat=5]="MonthsFormat",Ze[Ze.MonthsStandalone=6]="MonthsStandalone",Ze[Ze.Eras=7]="Eras",Ze[Ze.FirstDayOfWeek=8]="FirstDayOfWeek",Ze[Ze.WeekendRange=9]="WeekendRange",Ze[Ze.DateFormat=10]="DateFormat",Ze[Ze.TimeFormat=11]="TimeFormat",Ze[Ze.DateTimeFormat=12]="DateTimeFormat",Ze[Ze.NumberSymbols=13]="NumberSymbols",Ze[Ze.NumberFormats=14]="NumberFormats",Ze[Ze.CurrencyCode=15]="CurrencyCode",Ze[Ze.CurrencySymbol=16]="CurrencySymbol",Ze[Ze.CurrencyName=17]="CurrencyName",Ze[Ze.Currencies=18]="Currencies",Ze[Ze.Directionality=19]="Directionality",Ze[Ze.PluralCase=20]="PluralCase",Ze[Ze.ExtraData=21]="ExtraData",Ze))();const ls="en-US";let cs=ls;function Ug(g,b,C,y,x){if(g=re(g),Array.isArray(g))for(let S=0;S>20;if(Fo(g)||!g.multi){const se=new Da(H,x,il),_e=zg(D,b,x?B:B+te,U);-1===_e?(lc(Pa(k,T),S,D),Ng(S,g,b.length),b.push(D),k.directiveStart++,k.directiveEnd++,x&&(k.providerIndexes+=1048576),C.push(se),T.push(se)):(C[_e]=se,T[_e]=se)}else{const se=zg(D,b,B+te,U),_e=zg(D,b,B,B+te),Me=se>=0&&C[se],Be=_e>=0&&C[_e];if(x&&!Be||!x&&!Me){lc(Pa(k,T),S,D);const Ue=function Iv(g,b,C,y,x){const S=new Da(g,C,il);return S.multi=[],S.index=b,S.componentProviders=0,qg(S,x,y&&!C),S}(x?ET:TT,C.length,x,y,H);!x&&Be&&(C[_e].providerFactory=Ue),Ng(S,g,b.length,0),b.push(D),k.directiveStart++,k.directiveEnd++,x&&(k.providerIndexes+=1048576),C.push(Ue),T.push(Ue)}else Ng(S,g,se>-1?se:_e,qg(C[x?_e:se],H,!x&&y));!x&&y&&Be&&C[_e].componentProviders++}}}function Ng(g,b,C,y){const x=Fo(b),S=function fx(g){return!!g.useClass}(b);if(x||S){const H=(S?re(b.useClass):b).prototype.ngOnDestroy;if(H){const k=g.destroyHooks||(g.destroyHooks=[]);if(!x&&b.multi){const B=k.indexOf(C);-1===B?k.push(C,[y,H]):k[B+1].push(y,H)}else k.push(C,H)}}}function qg(g,b,C){return C&&g.componentProviders++,g.multi.push(b)-1}function zg(g,b,C,y){for(let x=C;x{C.providersResolver=(y,x)=>function Pv(g,b,C){const y=ot();if(y.firstCreatePass){const x=Oi(g);Ug(C,y.data,y.blueprint,x,!0),Ug(b,y.data,y.blueprint,x,!1)}}(y,x?x(g):g,b)}}class vl{}class ur{}function MT(g,b){return new kv(g,b??null)}class kv extends vl{constructor(b,C){super(),this._parent=C,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Mr(this);const y=Yi(b);this._bootstrapComponents=Xi(y.bootstrap),this._r3Injector=tl(b,C,[{provide:vl,useValue:this},{provide:Mc,useValue:this.componentFactoryResolver}],ee(b),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(b)}get injector(){return this._r3Injector}destroy(){const b=this._r3Injector;!b.destroyed&&b.destroy(),this.destroyCbs.forEach(C=>C()),this.destroyCbs=null}onDestroy(b){this.destroyCbs.push(b)}}class Wg extends ur{constructor(b){super(),this.moduleType=b}create(b){return new kv(this.moduleType,b)}}class DT extends vl{constructor(b,C,y){super(),this.componentFactoryResolver=new Mr(this),this.instance=null;const x=new KC([...b,{provide:vl,useValue:this},{provide:Mc,useValue:this.componentFactoryResolver}],C||Vu(),y,new Set(["environment"]));this.injector=x,x.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(b){this.injector.onDestroy(b)}}function $g(g,b,C=null){return new DT(g,b,C).injector}function Xt(g,b,C,y){return Kg(we(),Gi(),g,b,C,y)}function Kg(g,b,C,y,x,S){const T=b+C;return Di(g,T,x)?function dn(g,b,C){return g[b]=C}(g,T+1,S?y.call(S,x):y(x)):function xl(g,b){const C=g[b];return C===Se?void 0:C}(g,T+1)}function _d(g,b){const C=ot();let y;const x=g+22;C.firstCreatePass?(y=function i_(g,b){if(b)for(let C=b.length-1;C>=0;C--){const y=b[C];if(g===y.name)return y}}(b,C.pipeRegistry),C.data[x]=y,y.onDestroy&&(C.destroyHooks||(C.destroyHooks=[])).push(x,y.onDestroy)):y=C.data[x];const S=y.factory||(y.factory=Cr(y.type)),T=Pi(il);try{const D=pu(!1),H=S();return pu(D),function IS(g,b,C,y){C>=g.data.length&&(g.data[C]=null,g.blueprint[C]=null),b[C]=y}(C,we(),x,H),H}finally{Pi(T)}}function n_(g,b,C){const y=g+22,x=we(),S=Sa(x,y);return function bd(g,b){return g[1].data[b].pure}(x,y)?Kg(x,Gi(),b,S.transform,C,S):S.transform(C)}function a_(g){return b=>{setTimeout(g,void 0,b)}}const kr=class FT extends M.x{constructor(b=!1){super(),this.__isAsync=b}emit(b){super.next(b)}subscribe(b,C,y){let x=b,S=C||(()=>null),T=y;if(b&&"object"==typeof b){const H=b;x=H.next?.bind(H),S=H.error?.bind(H),T=H.complete?.bind(H)}this.__isAsync&&(S=a_(S),x&&(x=a_(x)),T&&(T=a_(T)));const D=super.subscribe({next:x,error:S,complete:T});return b instanceof _.w0&&b.add(D),D}};function UT(){return this._results[je()]()}class Xh{constructor(b=!1){this._emitDistinctChangesOnly=b,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const C=je(),y=Xh.prototype;y[C]||(y[C]=UT)}get changes(){return this._changes||(this._changes=new kr)}get(b){return this._results[b]}map(b){return this._results.map(b)}filter(b){return this._results.filter(b)}find(b){return this._results.find(b)}reduce(b,C){return this._results.reduce(b,C)}forEach(b){this._results.forEach(b)}some(b){return this._results.some(b)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(b,C){const y=this;y.dirty=!1;const x=Zi(b);(this._changesDetected=!function dc(g,b,C){if(g.length!==b.length)return!1;for(let y=0;y{class g{}return g.__NG_ELEMENT_ID__=zT,g})();const NT=Cd,qT=class extends NT{constructor(b,C,y){super(),this._declarationLView=b,this._declarationTContainer=C,this.elementRef=y}createEmbeddedView(b,C){const y=this._declarationTContainer.tViews,x=al(this._declarationLView,y,b,16,null,y.declTNode,null,null,null,null,C||null);x[17]=this._declarationLView[this._declarationTContainer.index];const T=this._declarationLView[19];return null!==T&&(x[19]=T.createEmbeddedView(y)),$c(y,x,b),new cl(x)}};function zT(){return ep(Qt(),we())}function ep(g,b){return 4&g.type?new qT(b,g,Ys(g,b)):null}let tp=(()=>{class g{}return g.__NG_ELEMENT_ID__=GT,g})();function GT(){return Kv(Qt(),we())}const WT=tp,Yv=class extends WT{constructor(b,C,y){super(),this._lContainer=b,this._hostTNode=C,this._hostLView=y}get element(){return Ys(this._hostTNode,this._hostLView)}get injector(){return new So(this._hostTNode,this._hostLView)}get parentInjector(){const b=Bs(this._hostTNode,this._hostLView);if(hf(b)){const C=Ra(b,this._hostLView),y=vo(b);return new So(C[1].data[y+8],C)}return new So(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(b){const C=Jv(this._lContainer);return null!==C&&C[b]||null}get length(){return this._lContainer.length-10}createEmbeddedView(b,C,y){let x,S;"number"==typeof y?x=y:null!=y&&(x=y.index,S=y.injector);const T=b.createEmbeddedView(C||{},S);return this.insert(T,x),T}createComponent(b,C,y,x,S){const T=b&&!function Ls(g){return"function"==typeof g}(b);let D;if(T)D=C;else{const U=C||{};D=U.index,y=U.injector,x=U.projectableNodes,S=U.environmentInjector||U.ngModuleRef}const H=T?b:new Zc(xt(b)),k=y||this.parentInjector;if(!S&&null==H.ngModule){const te=(T?k:this.parentInjector).get(Uo,null);te&&(S=te)}const B=H.create(k,x,void 0,S);return this.insert(B.hostView,D),B}insert(b,C){const y=b._lView,x=y[1];if(function I(g){return sn(g[3])}(y)){const B=this.indexOf(b);if(-1!==B)this.detach(B);else{const U=y[3],te=new Yv(U,U[6],U[3]);te.detach(te.indexOf(b))}}const S=this._adjustIndex(C),T=this._lContainer;!function vw(g,b,C,y){const x=10+y,S=C.length;y>0&&(C[x-1][4]=b),y0)y.push(T[D/2]);else{const k=S[D+1],B=b[-H];for(let U=10;U{class g{constructor(C){this.appInits=C,this.resolve=ei,this.reject=ei,this.initialized=!1,this.done=!1,this.donePromise=new Promise((y,x)=>{this.resolve=y,this.reject=x})}runInitializers(){if(this.initialized)return;const C=[],y=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let x=0;x{S.subscribe({complete:D,error:H})});C.push(T)}}Promise.all(C).then(()=>{y()}).catch(x=>{this.reject(x)}),0===C.length&&y(),this.initialized=!0}}return g.\u0275fac=function(C){return new(C||g)(Jt(R_,8))},g.\u0275prov=St({token:g,factory:g.\u0275fac,providedIn:"root"}),g})();const dp=new Pt("AppId",{providedIn:"root",factory:function up(){return`${xd()}${xd()}${xd()}`}});function xd(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const hp=new Pt("Platform Initializer"),P_=new Pt("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),pp=new Pt("appBootstrapListener"),Sd=new Pt("AnimationModuleType");let I_=(()=>{class g{log(C){console.log(C)}warn(C){console.warn(C)}}return g.\u0275fac=function(C){return new(C||g)},g.\u0275prov=St({token:g,factory:g.\u0275fac,providedIn:"platform"}),g})();const Dl=new Pt("LocaleId",{providedIn:"root",factory:()=>yu(Dl,Ke.Optional|Ke.SkipSelf)||function k_(){return typeof $localize<"u"&&$localize.locale||ls}()}),B_=new Pt("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class fp{constructor(b,C){this.ngModuleFactory=b,this.componentFactories=C}}let V_=(()=>{class g{compileModuleSync(C){return new Wg(C)}compileModuleAsync(C){return Promise.resolve(this.compileModuleSync(C))}compileModuleAndAllComponentsSync(C){const y=this.compileModuleSync(C),S=Xi(Yi(C).declarations).reduce((T,D)=>{const H=xt(D);return H&&T.push(new Zc(H)),T},[]);return new fp(y,S)}compileModuleAndAllComponentsAsync(C){return Promise.resolve(this.compileModuleAndAllComponentsSync(C))}clearCache(){}clearCacheFor(C){}getModuleId(C){}}return g.\u0275fac=function(C){return new(C||g)},g.\u0275prov=St({token:g,factory:g.\u0275fac,providedIn:"root"}),g})();const L_=(()=>Promise.resolve(0))();function Ed(g){typeof Zone>"u"?L_.then(()=>{g&&g.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",g)}class ti{constructor({enableLongStackTrace:b=!1,shouldCoalesceEventChangeDetection:C=!1,shouldCoalesceRunChangeDetection:y=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new kr(!1),this.onMicrotaskEmpty=new kr(!1),this.onStable=new kr(!1),this.onError=new kr(!1),typeof Zone>"u")throw new ae(908,!1);Zone.assertZonePatched();const x=this;if(x._nesting=0,x._outer=x._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const S=Zone.AsyncStackTaggingZoneSpec;x._inner=x._inner.fork(new S("Angular"))}Zone.TaskTrackingZoneSpec&&(x._inner=x._inner.fork(new Zone.TaskTrackingZoneSpec)),b&&Zone.longStackTraceZoneSpec&&(x._inner=x._inner.fork(Zone.longStackTraceZoneSpec)),x.shouldCoalesceEventChangeDetection=!y&&C,x.shouldCoalesceRunChangeDetection=y,x.lastRequestAnimationFrameId=-1,x.nativeRequestAnimationFrame=function Qi(){let g=de.requestAnimationFrame,b=de.cancelAnimationFrame;if(typeof Zone<"u"&&g&&b){const C=g[Zone.__symbol__("OriginalDelegate")];C&&(g=C);const y=b[Zone.__symbol__("OriginalDelegate")];y&&(b=y)}return{nativeRequestAnimationFrame:g,nativeCancelAnimationFrame:b}}().nativeRequestAnimationFrame,function Md(g){const b=()=>{!function sE(g){g.isCheckStableRunning||-1!==g.lastRequestAnimationFrameId||(g.lastRequestAnimationFrameId=g.nativeRequestAnimationFrame.call(de,()=>{g.fakeTopEventTask||(g.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{g.lastRequestAnimationFrameId=-1,bp(g),g.isCheckStableRunning=!0,F_(g),g.isCheckStableRunning=!1},void 0,()=>{},()=>{})),g.fakeTopEventTask.invoke()}),bp(g))}(g)};g._inner=g._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(C,y,x,S,T,D)=>{try{return Dd(g),C.invokeTask(x,S,T,D)}finally{(g.shouldCoalesceEventChangeDetection&&"eventTask"===S.type||g.shouldCoalesceRunChangeDetection)&&b(),Hl(g)}},onInvoke:(C,y,x,S,T,D,H)=>{try{return Dd(g),C.invoke(x,S,T,D,H)}finally{g.shouldCoalesceRunChangeDetection&&b(),Hl(g)}},onHasTask:(C,y,x,S)=>{C.hasTask(x,S),y===x&&("microTask"==S.change?(g._hasPendingMicrotasks=S.microTask,bp(g),F_(g)):"macroTask"==S.change&&(g.hasPendingMacrotasks=S.macroTask))},onHandleError:(C,y,x,S)=>(C.handleError(x,S),g.runOutsideAngular(()=>g.onError.emit(S)),!1)})}(x)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!ti.isInAngularZone())throw new ae(909,!1)}static assertNotInAngularZone(){if(ti.isInAngularZone())throw new ae(909,!1)}run(b,C,y){return this._inner.run(b,C,y)}runTask(b,C,y,x){const S=this._inner,T=S.scheduleEventTask("NgZoneEvent: "+x,b,j_,ei,ei);try{return S.runTask(T,C,y)}finally{S.cancelTask(T)}}runGuarded(b,C,y){return this._inner.runGuarded(b,C,y)}runOutsideAngular(b){return this._outer.run(b)}}const j_={};function F_(g){if(0==g._nesting&&!g.hasPendingMicrotasks&&!g.isStable)try{g._nesting++,g.onMicrotaskEmpty.emit(null)}finally{if(g._nesting--,!g.hasPendingMicrotasks)try{g.runOutsideAngular(()=>g.onStable.emit(null))}finally{g.isStable=!0}}}function bp(g){g.hasPendingMicrotasks=!!(g._hasPendingMicrotasks||(g.shouldCoalesceEventChangeDetection||g.shouldCoalesceRunChangeDetection)&&-1!==g.lastRequestAnimationFrameId)}function Dd(g){g._nesting++,g.isStable&&(g.isStable=!1,g.onUnstable.emit(null))}function Hl(g){g._nesting--,F_(g)}class vA{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new kr,this.onMicrotaskEmpty=new kr,this.onStable=new kr,this.onError=new kr}run(b,C,y){return b.apply(C,y)}runGuarded(b,C,y){return b.apply(C,y)}runOutsideAngular(b){return b()}runTask(b,C,y,x){return b.apply(C,y)}}const Hd=new Pt(""),U_=new Pt("");let N_,lE=(()=>{class g{constructor(C,y,x){this._ngZone=C,this.registry=y,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,N_||(function cE(g){N_=g}(x),x.addToWindow(y)),this._watchAngularEvents(),C.run(()=>{this.taskTrackingZone=typeof Zone>"u"?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:()=>{ti.assertNotInAngularZone(),Ed(()=>{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())Ed(()=>{for(;0!==this._callbacks.length;){let C=this._callbacks.pop();clearTimeout(C.timeoutId),C.doneCb(this._didWork)}this._didWork=!1});else{let C=this.getPendingTasks();this._callbacks=this._callbacks.filter(y=>!y.updateCb||!y.updateCb(C)||(clearTimeout(y.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(C=>({source:C.source,creationLocation:C.creationLocation,data:C.data})):[]}addCallback(C,y,x){let S=-1;y&&y>0&&(S=setTimeout(()=>{this._callbacks=this._callbacks.filter(T=>T.timeoutId!==S),C(this._didWork,this.getPendingTasks())},y)),this._callbacks.push({doneCb:C,timeoutId:S,updateCb:x})}whenStable(C,y,x){if(x&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(C,y,x),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(C){this.registry.registerApplication(C,this)}unregisterApplication(C){this.registry.unregisterApplication(C)}findProviders(C,y,x){return[]}}return g.\u0275fac=function(C){return new(C||g)(Jt(ti),Jt(AA),Jt(U_))},g.\u0275prov=St({token:g,factory:g.\u0275fac}),g})(),AA=(()=>{class g{constructor(){this._applications=new Map}registerApplication(C,y){this._applications.set(C,y)}unregisterApplication(C){this._applications.delete(C)}unregisterAllApplications(){this._applications.clear()}getTestability(C){return this._applications.get(C)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(C,y=!0){return N_?.findTestabilityInTree(this,C,y)??null}}return g.\u0275fac=function(C){return new(C||g)},g.\u0275prov=St({token:g,factory:g.\u0275fac,providedIn:"platform"}),g})(),eo=null;const xA=new Pt("AllowMultipleToken"),q_=new Pt("PlatformDestroyListeners");class TA{constructor(b,C){this.name=b,this.token=C}}function ms(g,b,C=[]){const y=`Platform: ${b}`,x=new Pt(y);return(S=[])=>{let T=Rd();if(!T||T.injector.get(xA,!1)){const D=[...C,...S,{provide:x,useValue:!0}];g?g(D):function Cp(g){if(eo&&!eo.get(xA,!1))throw new ae(400,!1);eo=g;const b=g.get(kl);(function Pl(g){const b=g.get(hp,null);b&&b.forEach(C=>C())})(g)}(function yp(g=[],b){return qa.create({name:b,providers:[{provide:$f,useValue:"platform"},{provide:q_,useValue:new Set([()=>eo=null])},...g]})}(D,y))}return function wp(g){const b=Rd();if(!b)throw new ae(401,!1);return b}()}}function Rd(){return eo?.get(kl)??null}let kl=(()=>{class g{constructor(C){this._injector=C,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(C,y){const x=function W_(g,b){let C;return C="noop"===g?new vA:("zone.js"===g?void 0:g)||new ti(b),C}(y?.ngZone,function vp(g){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!g||!g.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!g||!g.ngZoneRunCoalescing)||!1}}(y)),S=[{provide:ti,useValue:x}];return x.run(()=>{const T=qa.create({providers:S,parent:this.injector,name:C.moduleType.name}),D=C.create(T),H=D.injector.get(Hc,null);if(!H)throw new ae(402,!1);return x.runOutsideAngular(()=>{const k=x.onError.subscribe({next:B=>{H.handleError(B)}});D.onDestroy(()=>{Sp(this._modules,D),k.unsubscribe()})}),function Ap(g,b,C){try{const y=C();return Lh(y)?y.catch(x=>{throw b.runOutsideAngular(()=>g.handleError(x)),x}):y}catch(y){throw b.runOutsideAngular(()=>g.handleError(y)),y}}(H,x,()=>{const k=D.injector.get(ua);return k.runInitializers(),k.donePromise.then(()=>(function Gh(g){Ht(g,"Expected localeId to be defined"),"string"==typeof g&&(cs=g.toLowerCase().replace(/_/g,"-"))}(D.injector.get(Dl,ls)||ls),this._moduleDoBootstrap(D),D))})})}bootstrapModule(C,y=[]){const x=Pd({},y);return function z_(g,b,C){const y=new Wg(C);return Promise.resolve(y)}(0,0,C).then(S=>this.bootstrapModuleFactory(S,x))}_moduleDoBootstrap(C){const y=C.injector.get(xp);if(C._bootstrapComponents.length>0)C._bootstrapComponents.forEach(x=>y.bootstrap(x));else{if(!C.instance.ngDoBootstrap)throw new ae(403,!1);C.instance.ngDoBootstrap(y)}this._modules.push(C)}onDestroy(C){this._destroyListeners.push(C)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ae(404,!1);this._modules.slice().forEach(y=>y.destroy()),this._destroyListeners.forEach(y=>y());const C=this._injector.get(q_,null);C&&(C.forEach(y=>y()),C.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return g.\u0275fac=function(C){return new(C||g)(Jt(qa))},g.\u0275prov=St({token:g,factory:g.\u0275fac,providedIn:"platform"}),g})();function Pd(g,b){return Array.isArray(b)?b.reduce(Pd,g):{...g,...b}}let xp=(()=>{class g{constructor(C,y,x){this._zone=C,this._injector=y,this._exceptionHandler=x,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const S=new L.y(D=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{D.next(this._stable),D.complete()})}),T=new L.y(D=>{let H;this._zone.runOutsideAngular(()=>{H=this._zone.onStable.subscribe(()=>{ti.assertNotInAngularZone(),Ed(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,D.next(!0))})})});const k=this._zone.onUnstable.subscribe(()=>{ti.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{D.next(!1)}))});return()=>{H.unsubscribe(),k.unsubscribe()}});this.isStable=(0,F.T)(S,T.pipe((0,V.B)()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(C,y){const x=C instanceof Kf;if(!this._injector.get(ua).done)throw!x&&Tl(C),new ae(405,false);let T;T=x?C:this._injector.get(Mc).resolveComponentFactory(C),this.componentTypes.push(T.componentType);const D=function SA(g){return g.isBoundToModule}(T)?void 0:this._injector.get(vl),k=T.create(qa.NULL,[],y||T.selector,D),B=k.location.nativeElement,U=k.injector.get(Hd,null);return U?.registerApplication(B),k.onDestroy(()=>{this.detachView(k.hostView),Sp(this.components,k),U?.unregisterApplication(B)}),this._loadComponent(k),k}tick(){if(this._runningTick)throw new ae(101,!1);try{this._runningTick=!0;for(let C of this._views)C.detectChanges()}catch(C){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(C))}finally{this._runningTick=!1}}attachView(C){const y=C;this._views.push(y),y.attachToAppRef(this)}detachView(C){const y=C;Sp(this._views,y),y.detachFromAppRef()}_loadComponent(C){this.attachView(C.hostView),this.tick(),this.components.push(C),this._injector.get(pp,[]).concat(this._bootstrapListeners).forEach(x=>x(C))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(C=>C()),this._views.slice().forEach(C=>C.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(C){return this._destroyListeners.push(C),()=>Sp(this._destroyListeners,C)}destroy(){if(this._destroyed)throw new ae(406,!1);const C=this._injector;C.destroy&&!C.destroyed&&C.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return g.\u0275fac=function(C){return new(C||g)(Jt(ti),Jt(Uo),Jt(Hc))},g.\u0275prov=St({token:g,factory:g.\u0275fac,providedIn:"root"}),g})();function Sp(g,b){const C=g.indexOf(b);C>-1&&g.splice(C,1)}let Bl=!0;function Id(){Bl=!1}let EA=(()=>{class g{}return g.__NG_ELEMENT_ID__=MA,g})();function MA(g){return function Y_(g,b,C){if(Wn(g)&&!C){const y=qi(g.index,b);return new cl(y,y)}return 47&g.type?new cl(b[16],b):null}(Qt(),we(),16==(16&g))}class PA{constructor(){}supports(b){return kn(b)}create(b){return new CE(b)}}const bE=(g,b)=>b;class CE{constructor(b){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=b||bE}forEachItem(b){let C;for(C=this._itHead;null!==C;C=C._next)b(C)}forEachOperation(b){let C=this._itHead,y=this._removalsHead,x=0,S=null;for(;C||y;){const T=!y||C&&C.currentIndex{T=this._trackByFn(x,D),null!==C&&Object.is(C.trackById,T)?(y&&(C=this._verifyReinsertion(C,D,T,x)),Object.is(C.item,D)||this._addIdentityChange(C,D)):(C=this._mismatch(C,D,T,x),y=!0),C=C._next,x++}),this.length=x;return this._truncate(C),this.collection=b,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let b;for(b=this._previousItHead=this._itHead;null!==b;b=b._next)b._nextPrevious=b._next;for(b=this._additionsHead;null!==b;b=b._nextAdded)b.previousIndex=b.currentIndex;for(this._additionsHead=this._additionsTail=null,b=this._movesHead;null!==b;b=b._nextMoved)b.previousIndex=b.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(b,C,y,x){let S;return null===b?S=this._itTail:(S=b._prev,this._remove(b)),null!==(b=null===this._unlinkedRecords?null:this._unlinkedRecords.get(y,null))?(Object.is(b.item,C)||this._addIdentityChange(b,C),this._reinsertAfter(b,S,x)):null!==(b=null===this._linkedRecords?null:this._linkedRecords.get(y,x))?(Object.is(b.item,C)||this._addIdentityChange(b,C),this._moveAfter(b,S,x)):b=this._addAfter(new wE(C,y),S,x),b}_verifyReinsertion(b,C,y,x){let S=null===this._unlinkedRecords?null:this._unlinkedRecords.get(y,null);return null!==S?b=this._reinsertAfter(S,b._prev,x):b.currentIndex!=x&&(b.currentIndex=x,this._addToMoves(b,x)),b}_truncate(b){for(;null!==b;){const C=b._next;this._addToRemovals(this._unlink(b)),b=C}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(b,C,y){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(b);const x=b._prevRemoved,S=b._nextRemoved;return null===x?this._removalsHead=S:x._nextRemoved=S,null===S?this._removalsTail=x:S._prevRemoved=x,this._insertAfter(b,C,y),this._addToMoves(b,y),b}_moveAfter(b,C,y){return this._unlink(b),this._insertAfter(b,C,y),this._addToMoves(b,y),b}_addAfter(b,C,y){return this._insertAfter(b,C,y),this._additionsTail=null===this._additionsTail?this._additionsHead=b:this._additionsTail._nextAdded=b,b}_insertAfter(b,C,y){const x=null===C?this._itHead:C._next;return b._next=x,b._prev=C,null===x?this._itTail=b:x._prev=b,null===C?this._itHead=b:C._next=b,null===this._linkedRecords&&(this._linkedRecords=new Rp),this._linkedRecords.put(b),b.currentIndex=y,b}_remove(b){return this._addToRemovals(this._unlink(b))}_unlink(b){null!==this._linkedRecords&&this._linkedRecords.remove(b);const C=b._prev,y=b._next;return null===C?this._itHead=y:C._next=y,null===y?this._itTail=C:y._prev=C,b}_addToMoves(b,C){return b.previousIndex===C||(this._movesTail=null===this._movesTail?this._movesHead=b:this._movesTail._nextMoved=b),b}_addToRemovals(b){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Rp),this._unlinkedRecords.put(b),b.currentIndex=null,b._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=b,b._prevRemoved=null):(b._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=b),b}_addIdentityChange(b,C){return b.item=C,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=b:this._identityChangesTail._nextIdentityChange=b,b}}class wE{constructor(b,C){this.item=b,this.trackById=C,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 IA{constructor(){this._head=null,this._tail=null}add(b){null===this._head?(this._head=this._tail=b,b._nextDup=null,b._prevDup=null):(this._tail._nextDup=b,b._prevDup=this._tail,b._nextDup=null,this._tail=b)}get(b,C){let y;for(y=this._head;null!==y;y=y._nextDup)if((null===C||C<=y.currentIndex)&&Object.is(y.trackById,b))return y;return null}remove(b){const C=b._prevDup,y=b._nextDup;return null===C?this._head=y:C._nextDup=y,null===y?this._tail=C:y._prevDup=C,null===this._head}}class Rp{constructor(){this.map=new Map}put(b){const C=b.trackById;let y=this.map.get(C);y||(y=new IA,this.map.set(C,y)),y.add(b)}get(b,C){const x=this.map.get(b);return x?x.get(b,C):null}remove(b){const C=b.trackById;return this.map.get(C).remove(b)&&this.map.delete(C),b}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function eb(g,b,C){const y=g.previousIndex;if(null===y)return y;let x=0;return C&&y{if(C&&C.key===x)this._maybeAddToChanges(C,y),this._appendAfter=C,C=C._next;else{const S=this._getOrCreateRecordForKey(x,y);C=this._insertBeforeOrAppend(C,S)}}),C){C._prev&&(C._prev._next=null),this._removalsHead=C;for(let y=C;null!==y;y=y._nextRemoved)y===this._mapHead&&(this._mapHead=null),this._records.delete(y.key),y._nextRemoved=y._next,y.previousValue=y.currentValue,y.currentValue=null,y._prev=null,y._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(b,C){if(b){const y=b._prev;return C._next=b,C._prev=y,b._prev=C,y&&(y._next=C),b===this._mapHead&&(this._mapHead=C),this._appendAfter=b,b}return this._appendAfter?(this._appendAfter._next=C,C._prev=this._appendAfter):this._mapHead=C,this._appendAfter=C,null}_getOrCreateRecordForKey(b,C){if(this._records.has(b)){const x=this._records.get(b);this._maybeAddToChanges(x,C);const S=x._prev,T=x._next;return S&&(S._next=T),T&&(T._prev=S),x._next=null,x._prev=null,x}const y=new kA(b);return this._records.set(b,y),y.currentValue=C,this._addToAdditions(y),y}_reset(){if(this.isDirty){let b;for(this._previousMapHead=this._mapHead,b=this._previousMapHead;null!==b;b=b._next)b._nextPrevious=b._next;for(b=this._changesHead;null!==b;b=b._nextChanged)b.previousValue=b.currentValue;for(b=this._additionsHead;null!=b;b=b._nextAdded)b.previousValue=b.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(b,C){Object.is(C,b.currentValue)||(b.previousValue=b.currentValue,b.currentValue=C,this._addToChanges(b))}_addToAdditions(b){null===this._additionsHead?this._additionsHead=this._additionsTail=b:(this._additionsTail._nextAdded=b,this._additionsTail=b)}_addToChanges(b){null===this._changesHead?this._changesHead=this._changesTail=b:(this._changesTail._nextChanged=b,this._changesTail=b)}_forEach(b,C){b instanceof Map?b.forEach(C):Object.keys(b).forEach(y=>C(b[y],y))}}class kA{constructor(b){this.key=b,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function tb(){return new Vd([new PA])}let Vd=(()=>{class g{constructor(C){this.factories=C}static create(C,y){if(null!=y){const x=y.factories.slice();C=C.concat(x)}return new g(C)}static extend(C){return{provide:g,useFactory:y=>g.create(C,y||tb()),deps:[[g,new qs,new Ba]]}}find(C){const y=this.factories.find(x=>x.supports(C));if(null!=y)return y;throw new ae(901,!1)}}return g.\u0275prov=St({token:g,providedIn:"root",factory:tb}),g})();function BA(){return new Od([new Pp])}let Od=(()=>{class g{constructor(C){this.factories=C}static create(C,y){if(y){const x=y.factories.slice();C=C.concat(x)}return new g(C)}static extend(C){return{provide:g,useFactory:y=>g.create(C,y||BA()),deps:[[g,new qs,new Ba]]}}find(C){const y=this.factories.find(x=>x.supports(C));if(y)return y;throw new ae(901,!1)}}return g.\u0275prov=St({token:g,providedIn:"root",factory:BA}),g})();const Ip=ms(null,"core",[]);let LA=(()=>{class g{constructor(C){}}return g.\u0275fac=function(C){return new(C||g)(Jt(xp))},g.\u0275mod=jr({type:g}),g.\u0275inj=ci({}),g})();function kp(g){return"boolean"==typeof g?g:null!=g&&"false"!==g}},1214:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Ct:()=>OAuthService,Hy:()=>OAuthStorage,zr:()=>OAuthModule});var _home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5861),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(4650),_angular_common__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(6895),_angular_common_http__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(529),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(7579),rxjs__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(9646),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(2076),rxjs__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(102),rxjs__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(2843),rxjs__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(9841),rxjs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(6451),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(9300),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(8505),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(8372),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(1005),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(3900),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(4004),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(590),rxjs_operators__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(262),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(7414),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(5698),rxjs_operators__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(5577),fast_sha256__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1302);class DateTimeProvider{}let SystemDateTimeProvider=(()=>{class N extends DateTimeProvider{now(){return Date.now()}new(){return new Date}}return N.\u0275fac=function(){let z;return function(M){return(z||(z=_angular_core__WEBPACK_IMPORTED_MODULE_1__.n5z(N)))(M||N)}}(),N.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:N,factory:N.\u0275fac}),N})();class LoginOptions{constructor(){this.disableNonceCheck=!1,this.preventClearHashAfterLogin=!1}}class OAuthLogger{}class OAuthStorage{}let MemoryStorage=(()=>{class N{constructor(){this.data=new Map}getItem(E){return this.data.get(E)}removeItem(E){this.data.delete(E)}setItem(E,M){this.data.set(E,M)}}return N.\u0275fac=function(E){return new(E||N)},N.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:N,factory:N.\u0275fac}),N})();class ReceivedTokens{}class OAuthEvent{constructor(z){this.type=z}}class OAuthSuccessEvent extends OAuthEvent{constructor(z,E=null){super(z),this.info=E}}class OAuthInfoEvent extends OAuthEvent{constructor(z,E=null){super(z),this.info=E}}class OAuthErrorEvent extends OAuthEvent{constructor(z,E,M=null){super(z),this.reason=E,this.params=M}}function b64DecodeUnicode(N){const z=N.replace(/\-/g,"+").replace(/\_/g,"/");return decodeURIComponent(atob(z).split("").map(function(E){return"%"+("00"+E.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function base64UrlEncode(N){return btoa(N).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}class AuthConfig{constructor(z){this.clientId="",this.redirectUri="",this.postLogoutRedirectUri="",this.redirectUriAsPostLogoutRedirectUriFallback=!0,this.loginUrl="",this.scope="openid profile",this.resource="",this.rngUrl="",this.oidc=!0,this.requestAccessToken=!0,this.options=null,this.issuer="",this.logoutUrl="",this.clearHashAfterLogin=!0,this.tokenEndpoint=null,this.revocationEndpoint=null,this.customTokenParameters=[],this.userinfoEndpoint=null,this.responseType="",this.showDebugInformation=!1,this.silentRefreshRedirectUri="",this.silentRefreshMessagePrefix="",this.silentRefreshShowIFrame=!1,this.siletRefreshTimeout=2e4,this.silentRefreshTimeout=2e4,this.dummyClientSecret=null,this.requireHttps="remoteOnly",this.strictDiscoveryDocumentValidation=!0,this.jwks=null,this.customQueryParams=null,this.silentRefreshIFrameName="angular-oauth-oidc-silent-refresh-iframe",this.timeoutFactor=.75,this.sessionChecksEnabled=!1,this.sessionCheckIntervall=3e3,this.sessionCheckIFrameUrl=null,this.sessionCheckIFrameName="angular-oauth-oidc-check-session-iframe",this.disableAtHashCheck=!1,this.skipSubjectCheck=!1,this.useIdTokenHintForSilentRefresh=!1,this.skipIssuerCheck=!1,this.nonceStateSeparator=";",this.useHttpBasicAuth=!1,this.waitForTokenInMsec=0,this.disablePKCE=!1,this.preserveRequestedRoute=!1,this.openUri=E=>{location.href=E},z&&Object.assign(this,z)}}class WebHttpUrlEncodingCodec{encodeKey(z){return encodeURIComponent(z)}encodeValue(z){return encodeURIComponent(z)}decodeKey(z){return decodeURIComponent(z)}decodeValue(z){return decodeURIComponent(z)}}class ValidationHandler{}class AbstractValidationHandler{validateAtHash(z){var E=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){let M=E.inferHashAlgorithm(z.idTokenHeader),_=yield E.calcHash(z.accessToken,M),F=base64UrlEncode(_.substr(0,_.length/2)),V=z.idTokenClaims.at_hash.replace(/=/g,"");return F!==V&&(console.error("exptected at_hash: "+F),console.error("actual at_hash: "+V)),F===V})()}inferHashAlgorithm(z){let E=z.alg;if(!E.match(/^.S[0-9]{3}$/))throw new Error("Algorithm not supported: "+E);return"sha-"+E.substr(2)}}let UrlHelperService=(()=>{class N{getHashFragmentParams(E){let M=E||window.location.hash;if(M=decodeURIComponent(M),0!==M.indexOf("#"))return{};const _=M.indexOf("?");return M=M.substr(_>-1?_+1:1),this.parseQueryString(M)}parseQueryString(E){const M={};let _,L,F,V,q,Q,ee;if(null===E)return M;_=E.split("&");for(let W=0;W<_.length;W++)L=_[W],F=L.indexOf("="),-1===F?(V=L,q=null):(V=L.substr(0,F),q=L.substr(F+1)),Q=decodeURIComponent(V),ee=decodeURIComponent(q),"/"===Q.substr(0,1)&&(Q=Q.substr(1)),M[Q]=ee;return M}}return N.\u0275fac=function(E){return new(E||N)},N.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:N,factory:N.\u0275fac}),N})();function factory(){var ERROR="input is invalid type",WINDOW="object"==typeof window,root=WINDOW?window:{};root.JS_SHA256_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&"object"==typeof self,NODE_JS=!root.JS_SHA256_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;NODE_JS?root=global:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_SHA256_NO_COMMON_JS&&"object"==typeof module&&module.exports,AMD="function"==typeof define&&define.amd,ARRAY_BUFFER=!root.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u";const HEX_CHARS="0123456789abcdef".split(""),EXTRA=[-2147483648,8388608,32768,128],SHIFT=[24,16,8,0],K=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],OUTPUT_TYPES=["hex","array","digest","arrayBuffer"];var blocks=[];(root.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(N){return"[object Array]"===Object.prototype.toString.call(N)}),ARRAY_BUFFER&&(root.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(N){return"object"==typeof N&&N.buffer&&N.buffer.constructor===ArrayBuffer});var createOutputMethod=function(N,z){return function(E){return new Sha256(z,!0).update(E)[N]()}},createMethod=function(N){var z=createOutputMethod("hex",N);NODE_JS&&(z=nodeWrap(z,N)),z.create=function(){return new Sha256(N)},z.update=function(_){return z.create().update(_)};for(var E=0;E>6,L[V++]=128|63&q):q<55296||q>=57344?(L[V++]=224|q>>12,L[V++]=128|q>>6&63,L[V++]=128|63&q):(q=65536+((1023&q)<<10|1023&N.charCodeAt(++M)),L[V++]=240|q>>18,L[V++]=128|q>>12&63,L[V++]=128|q>>6&63,L[V++]=128|63&q);N=L}else{if("object"!==_)throw new Error(ERROR);if(null===N)throw new Error(ERROR);if(ARRAY_BUFFER&&N.constructor===ArrayBuffer)N=new Uint8Array(N);else if(!(Array.isArray(N)||ARRAY_BUFFER&&ArrayBuffer.isView(N)))throw new Error(ERROR)}N.length>64&&(N=new Sha256(z,!0).update(N).array());var Q=[],ee=[];for(M=0;M<64;++M){var W=N[M]||0;Q[M]=92^W,ee[M]=54^W}Sha256.call(this,z,E),this.update(ee),this.oKeyPad=Q,this.inner=!0,this.sharedMemory=E}Sha256.prototype.update=function(N){if(!this.finalized){var z,E=typeof N;if("string"!==E){if("object"!==E)throw new Error(ERROR);if(null===N)throw new Error(ERROR);if(ARRAY_BUFFER&&N.constructor===ArrayBuffer)N=new Uint8Array(N);else if(!(Array.isArray(N)||ARRAY_BUFFER&&ArrayBuffer.isView(N)))throw new Error(ERROR);z=!0}for(var M,L,_=0,F=N.length,V=this.blocks;_>2]|=N[_]<>2]|=M<>2]|=(192|M>>6)<>2]|=(128|63&M)<=57344?(V[L>>2]|=(224|M>>12)<>2]|=(128|M>>6&63)<>2]|=(128|63&M)<>2]|=(240|M>>18)<>2]|=(128|M>>12&63)<>2]|=(128|M>>6&63)<>2]|=(128|63&M)<=64?(this.block=V[16],this.start=L-64,this.hash(),this.hashed=!0):this.start=L}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var N=this.blocks,z=this.lastByteIndex;N[16]=this.block,N[z>>2]|=EXTRA[3&z],this.block=N[16],z>=56&&(this.hashed||this.hash(),N[0]=this.block,N[16]=N[1]=N[2]=N[3]=N[4]=N[5]=N[6]=N[7]=N[8]=N[9]=N[10]=N[11]=N[12]=N[13]=N[14]=N[15]=0),N[14]=this.hBytes<<3|this.bytes>>>29,N[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var Q,G,ie,ae,he,fe,N=this.h0,z=this.h1,E=this.h2,M=this.h3,_=this.h4,L=this.h5,F=this.h6,V=this.h7,q=this.blocks;for(Q=16;Q<64;++Q)q[Q]=q[Q-16]+(((G=q[Q-15])>>>7|G<<25)^(G>>>18|G<<14)^G>>>3)+q[Q-7]+(((G=q[Q-2])>>>17|G<<15)^(G>>>19|G<<13)^G>>>10)<<0;for(fe=z&E,Q=0;Q<64;Q+=4)this.first?(this.is224?(ie=300032,V=(G=q[0]-1413257819)-150054599<<0,M=G+24177077<<0):(ie=704751109,V=(G=q[0]-210244248)-1521486534<<0,M=G+143694565<<0),this.first=!1):(V=M+(G=V+((_>>>6|_<<26)^(_>>>11|_<<21)^(_>>>25|_<<7))+(_&L^~_&F)+K[Q]+q[Q])<<0,M=G+(((N>>>2|N<<30)^(N>>>13|N<<19)^(N>>>22|N<<10))+((ie=N&z)^N&E^fe))<<0),F=E+(G=F+((V>>>6|V<<26)^(V>>>11|V<<21)^(V>>>25|V<<7))+(V&_^~V&L)+K[Q+1]+q[Q+1])<<0,E=G+(((M>>>2|M<<30)^(M>>>13|M<<19)^(M>>>22|M<<10))+((ae=M&N)^M&z^ie))<<0,L=z+(G=L+((F>>>6|F<<26)^(F>>>11|F<<21)^(F>>>25|F<<7))+(F&V^~F&_)+K[Q+2]+q[Q+2])<<0,z=G+(((E>>>2|E<<30)^(E>>>13|E<<19)^(E>>>22|E<<10))+((he=E&M)^E&N^ae))<<0,_=N+(G=_+((L>>>6|L<<26)^(L>>>11|L<<21)^(L>>>25|L<<7))+(L&F^~L&V)+K[Q+3]+q[Q+3])<<0,N=G+(((z>>>2|z<<30)^(z>>>13|z<<19)^(z>>>22|z<<10))+((fe=z&E)^z&M^he))<<0;this.h0=this.h0+N<<0,this.h1=this.h1+z<<0,this.h2=this.h2+E<<0,this.h3=this.h3+M<<0,this.h4=this.h4+_<<0,this.h5=this.h5+L<<0,this.h6=this.h6+F<<0,this.h7=this.h7+V<<0},Sha256.prototype.hex=function(){this.finalize();var N=this.h0,z=this.h1,E=this.h2,M=this.h3,_=this.h4,L=this.h5,F=this.h6,V=this.h7,q=HEX_CHARS[N>>28&15]+HEX_CHARS[N>>24&15]+HEX_CHARS[N>>20&15]+HEX_CHARS[N>>16&15]+HEX_CHARS[N>>12&15]+HEX_CHARS[N>>8&15]+HEX_CHARS[N>>4&15]+HEX_CHARS[15&N]+HEX_CHARS[z>>28&15]+HEX_CHARS[z>>24&15]+HEX_CHARS[z>>20&15]+HEX_CHARS[z>>16&15]+HEX_CHARS[z>>12&15]+HEX_CHARS[z>>8&15]+HEX_CHARS[z>>4&15]+HEX_CHARS[15&z]+HEX_CHARS[E>>28&15]+HEX_CHARS[E>>24&15]+HEX_CHARS[E>>20&15]+HEX_CHARS[E>>16&15]+HEX_CHARS[E>>12&15]+HEX_CHARS[E>>8&15]+HEX_CHARS[E>>4&15]+HEX_CHARS[15&E]+HEX_CHARS[M>>28&15]+HEX_CHARS[M>>24&15]+HEX_CHARS[M>>20&15]+HEX_CHARS[M>>16&15]+HEX_CHARS[M>>12&15]+HEX_CHARS[M>>8&15]+HEX_CHARS[M>>4&15]+HEX_CHARS[15&M]+HEX_CHARS[_>>28&15]+HEX_CHARS[_>>24&15]+HEX_CHARS[_>>20&15]+HEX_CHARS[_>>16&15]+HEX_CHARS[_>>12&15]+HEX_CHARS[_>>8&15]+HEX_CHARS[_>>4&15]+HEX_CHARS[15&_]+HEX_CHARS[L>>28&15]+HEX_CHARS[L>>24&15]+HEX_CHARS[L>>20&15]+HEX_CHARS[L>>16&15]+HEX_CHARS[L>>12&15]+HEX_CHARS[L>>8&15]+HEX_CHARS[L>>4&15]+HEX_CHARS[15&L]+HEX_CHARS[F>>28&15]+HEX_CHARS[F>>24&15]+HEX_CHARS[F>>20&15]+HEX_CHARS[F>>16&15]+HEX_CHARS[F>>12&15]+HEX_CHARS[F>>8&15]+HEX_CHARS[F>>4&15]+HEX_CHARS[15&F];return this.is224||(q+=HEX_CHARS[V>>28&15]+HEX_CHARS[V>>24&15]+HEX_CHARS[V>>20&15]+HEX_CHARS[V>>16&15]+HEX_CHARS[V>>12&15]+HEX_CHARS[V>>8&15]+HEX_CHARS[V>>4&15]+HEX_CHARS[15&V]),q},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var N=this.h0,z=this.h1,E=this.h2,M=this.h3,_=this.h4,L=this.h5,F=this.h6,V=this.h7,q=[N>>24&255,N>>16&255,N>>8&255,255&N,z>>24&255,z>>16&255,z>>8&255,255&z,E>>24&255,E>>16&255,E>>8&255,255&E,M>>24&255,M>>16&255,M>>8&255,255&M,_>>24&255,_>>16&255,_>>8&255,255&_,L>>24&255,L>>16&255,L>>8&255,255&L,F>>24&255,F>>16&255,F>>8&255,255&F];return this.is224||q.push(V>>24&255,V>>16&255,V>>8&255,255&V),q},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var N=new ArrayBuffer(this.is224?28:32),z=new DataView(N);return z.setUint32(0,this.h0),z.setUint32(4,this.h1),z.setUint32(8,this.h2),z.setUint32(12,this.h3),z.setUint32(16,this.h4),z.setUint32(20,this.h5),z.setUint32(24,this.h6),this.is224||z.setUint32(28,this.h7),N},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var N=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(N),Sha256.prototype.finalize.call(this)}};var exports=createMethod();return exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),exports}const sha256=factory();class HashHandler{}function decodeUTF8(N){if("string"!=typeof N)throw new TypeError("expected string");var z,E=N,M=new Uint8Array(E.length);for(z=0;z{class N{calcHash(E,M){return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){return encodeUTF8(fast_sha256__WEBPACK_IMPORTED_MODULE_0__(decodeUTF8(E)))})()}toHashString2(E){let M="";for(let _ of E)M+=String.fromCharCode(_);return M}toHashString(E){const M=new Uint8Array(E);let _="";for(let L of M)_+=String.fromCharCode(L);return _}}return N.\u0275fac=function(E){return new(E||N)},N.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:N,factory:N.\u0275fac}),N})(),OAuthService=(()=>{class N extends AuthConfig{constructor(E,M,_,L,F,V,q,Q,ee,W){super(),this.ngZone=E,this.http=M,this.config=F,this.urlHelper=V,this.logger=q,this.crypto=Q,this.dateTimeService=W,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.discoveryDocumentLoadedSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=ee,F||(F={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),L&&(this.tokenValidationHandler=L),F&&this.configure(F);try{_?this.setStorage(_):typeof sessionStorage<"u"&&this.setStorage(sessionStorage)}catch(Y){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",Y)}if(this.checkLocalStorageAccessable()){const Y=window?.navigator?.userAgent;(Y?.includes("MSIE ")||Y?.includes("Trident"))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if(typeof window>"u")return!1;const E="test";try{return!(typeof window.localStorage>"u"||(localStorage.setItem(E,E),localStorage.removeItem(E),0))}catch{return!1}}configure(E){Object.assign(this,new AuthConfig,E),this.config=Object.assign({},new AuthConfig,E),this.sessionChecksEnabled&&this.setupSessionCheck(),this.configChanged()}configChanged(){this.setupRefreshTimer()}restartSessionChecksIfStillLoggedIn(){this.hasValidIdToken()&&this.initSessionCheck()}restartRefreshTimerIfStillLoggedIn(){this.setupExpirationTimers()}setupSessionCheck(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(E=>"token_received"===E.type)).subscribe(E=>{this.initSessionCheck()})}setupAutomaticSilentRefresh(E={},M,_=!0){let L=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(F=>{"token_received"===F.type?L=!0:"logout"===F.type&&(L=!1)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(F=>"token_expires"===F.type&&(null==M||"any"===M||F.info===M)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.b)(1e3)).subscribe(F=>{L&&this.refreshInternal(E,_).catch(V=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(E,M){return this.useSilentRefresh||"code"!==this.responseType?this.silentRefresh(E,M):this.refreshToken()}loadDiscoveryDocumentAndTryLogin(E=null){return this.loadDiscoveryDocument().then(M=>this.tryLogin(E))}loadDiscoveryDocumentAndLogin(E=null){return this.loadDiscoveryDocumentAndTryLogin(E=E||{}).then(M=>!(!this.hasValidIdToken()||!this.hasValidAccessToken())||(this.initLoginFlow("string"==typeof E.state?E.state:""),!1))}debug(...E){this.showDebugInformation&&this.logger.debug.apply(this.logger,E)}validateUrlFromDiscoveryDocument(E){const M=[],_=this.validateUrlForHttps(E),L=this.validateUrlAgainstIssuer(E);return _||M.push("https for all urls required. Also for urls received by discovery."),L||M.push("Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation."),M}validateUrlForHttps(E){if(!E)return!0;const M=E.toLowerCase();return!(!1!==this.requireHttps&&(!M.match(/^http:\/\/localhost($|[:\/])/)&&!M.match(/^http:\/\/localhost($|[:\/])/)||"remoteOnly"!==this.requireHttps))||M.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(E,M){if(!E)throw new Error(`'${M}' should not be null`);if(!this.validateUrlForHttps(E))throw new Error(`'${M}' must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).`)}validateUrlAgainstIssuer(E){return!this.strictDiscoveryDocumentValidation||!E||E.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){typeof window>"u"?this.debug("timer not supported on this plattform"):((this.hasValidIdToken()||this.hasValidAccessToken())&&(this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()),this.tokenReceivedSubscription&&this.tokenReceivedSubscription.unsubscribe(),this.tokenReceivedSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(E=>"token_received"===E.type)).subscribe(E=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()}))}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){const E=this.getAccessTokenExpiration(),M=this.getAccessTokenStoredAt(),_=this.calcTimeout(M,E);this.ngZone.runOutsideAngular(()=>{this.accessTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","access_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(_)).subscribe(L=>{this.ngZone.run(()=>{this.eventsSubject.next(L)})})})}setupIdTokenTimer(){const E=this.getIdTokenExpiration(),M=this.getIdTokenStoredAt(),_=this.calcTimeout(M,E);this.ngZone.runOutsideAngular(()=>{this.idTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","id_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(_)).subscribe(L=>{this.ngZone.run(()=>{this.eventsSubject.next(L)})})})}stopAutomaticRefresh(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.clearAutomaticRefreshTimer()}clearAccessTokenTimer(){this.accessTokenTimeoutSubscription&&this.accessTokenTimeoutSubscription.unsubscribe()}clearIdTokenTimer(){this.idTokenTimeoutSubscription&&this.idTokenTimeoutSubscription.unsubscribe()}clearAutomaticRefreshTimer(){this.automaticRefreshSubscription&&this.automaticRefreshSubscription.unsubscribe()}calcTimeout(E,M){const _=this.dateTimeService.now();return Math.max(0,(M-E)*this.timeoutFactor-(_-E))}setStorage(E){this._storage=E,this.configChanged()}loadDiscoveryDocument(E=null){return new Promise((M,_)=>{E||((E=this.issuer||"").endsWith("/")||(E+="/"),E+=".well-known/openid-configuration"),this.validateUrlForHttps(E)?this.http.get(E).subscribe(L=>{if(!this.validateDiscoveryDocument(L))return this.eventsSubject.next(new OAuthErrorEvent("discovery_document_validation_error",null)),void _("discovery_document_validation_error");this.loginUrl=L.authorization_endpoint,this.logoutUrl=L.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=L.grant_types_supported,this.issuer=L.issuer,this.tokenEndpoint=L.token_endpoint,this.userinfoEndpoint=L.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=L.jwks_uri,this.sessionCheckIFrameUrl=L.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(L),this.revocationEndpoint=L.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(F=>{const q=new OAuthSuccessEvent("discovery_document_loaded",{discoveryDocument:L,jwks:F});this.eventsSubject.next(q),M(q)}).catch(F=>{this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",F)),_(F)})},L=>{this.logger.error("error loading discovery document",L),this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",L)),_(L)}):_("issuer must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).")})}loadJwks(){return new Promise((E,M)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(_=>{this.jwks=_,this.eventsSubject.next(new OAuthSuccessEvent("discovery_document_loaded")),E(_)},_=>{this.logger.error("error loading jwks",_),this.eventsSubject.next(new OAuthErrorEvent("jwks_load_error",_)),M(_)}):E(null)})}validateDiscoveryDocument(E){let M;return this.skipIssuerCheck||E.issuer===this.issuer?(M=this.validateUrlFromDiscoveryDocument(E.authorization_endpoint),M.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",M),!1):(M=this.validateUrlFromDiscoveryDocument(E.end_session_endpoint),M.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",M),!1):(M=this.validateUrlFromDiscoveryDocument(E.token_endpoint),M.length>0&&this.logger.error("error validating token_endpoint in discovery document",M),M=this.validateUrlFromDiscoveryDocument(E.revocation_endpoint),M.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",M),M=this.validateUrlFromDiscoveryDocument(E.userinfo_endpoint),M.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",M),!1):(M=this.validateUrlFromDiscoveryDocument(E.jwks_uri),M.length>0?(this.logger.error("error validating jwks_uri in discovery document",M),!1):(this.sessionChecksEnabled&&!E.check_session_iframe&&this.logger.warn("sessionChecksEnabled is activated but discovery document does not contain a check_session_iframe field"),!0))))):(this.logger.error("invalid issuer in discovery document","expected: "+this.issuer,"current: "+E.issuer),!1)}fetchTokenUsingPasswordFlowAndLoadUserProfile(E,M,_=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingPasswordFlow(E,M,_).then(()=>this.loadUserProfile())}loadUserProfile(){if(!this.hasValidAccessToken())throw new Error("Can not load User Profile without access_token");if(!this.validateUrlForHttps(this.userinfoEndpoint))throw new Error("userinfoEndpoint must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");return new Promise((E,M)=>{const _=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:_,observe:"response",responseType:"text"}).subscribe(L=>{if(this.debug("userinfo received",JSON.stringify(L)),L.headers.get("content-type").startsWith("application/json")){let F=JSON.parse(L.body);const V=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!V.sub||F.sub!==V.sub))return void M("if property oidc is true, the received user-id (sub) has to be the user-id of the user that has logged in with oidc.\nif you are not using oidc but just oauth2 password flow set oidc to false");F=Object.assign({},V,F),this._storage.setItem("id_token_claims_obj",JSON.stringify(F)),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),E({info:F})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),E(JSON.parse(L.body))},L=>{this.logger.error("error loading user info",L),this.eventsSubject.next(new OAuthErrorEvent("user_profile_load_error",L)),M(L)})})}fetchTokenUsingPasswordFlow(E,M,_=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingGrant("password",{username:E,password:M},_)}fetchTokenUsingGrant(E,M,_=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let L=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type",E).set("scope",this.scope);if(this.useHttpBasicAuth){const F=btoa(`${this.clientId}:${this.dummyClientSecret}`);_=_.set("Authorization","Basic "+F)}if(this.useHttpBasicAuth||(L=L.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(L=L.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const F of Object.getOwnPropertyNames(this.customQueryParams))L=L.set(F,this.customQueryParams[F]);for(const F of Object.keys(M))L=L.set(F,M[F]);return _=_.set("Content-Type","application/x-www-form-urlencoded"),new Promise((F,V)=>{this.http.post(this.tokenEndpoint,L,{headers:_}).subscribe(q=>{this.debug("tokenResponse",q),this.storeAccessTokenResponse(q.access_token,q.refresh_token,q.expires_in||this.fallbackAccessTokenExpirationTimeInSec,q.scope,this.extractRecognizedCustomParameters(q)),this.oidc&&q.id_token&&this.processIdToken(q.id_token,q.access_token).then(Q=>{this.storeIdToken(Q),F(q)}),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),F(q)},q=>{this.logger.error("Error performing ${grantType} flow",q),this.eventsSubject.next(new OAuthErrorEvent("token_error",q)),V(q)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((E,M)=>{let _=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","refresh_token").set("scope",this.scope).set("refresh_token",this._storage.getItem("refresh_token")),L=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const F=btoa(`${this.clientId}:${this.dummyClientSecret}`);L=L.set("Authorization","Basic "+F)}if(this.useHttpBasicAuth||(_=_.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(_=_.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const F of Object.getOwnPropertyNames(this.customQueryParams))_=_.set(F,this.customQueryParams[F]);this.http.post(this.tokenEndpoint,_,{headers:L}).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.w)(F=>F.id_token?(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.D)(this.processIdToken(F.id_token,F.access_token,!0)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(V=>this.storeIdToken(V)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(V=>F)):(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(F))).subscribe(F=>{this.debug("refresh tokenResponse",F),this.storeAccessTokenResponse(F.access_token,F.refresh_token,F.expires_in||this.fallbackAccessTokenExpirationTimeInSec,F.scope,this.extractRecognizedCustomParameters(F)),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),E(F)},F=>{this.logger.error("Error refreshing token",F),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",F)),M(F)})})}removeSilentRefreshEventListener(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}setupSilentRefreshEventListener(){this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=E=>{const M=this.processMessageEventMessage(E);this.tryLogin({customHashFragment:M,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri||this.redirectUri}).catch(_=>this.debug("tryLogin during silent refresh failed",_))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(E={},M=!0){const _=this.getIdentityClaims()||{};if(this.useIdTokenHintForSilentRefresh&&this.hasValidIdToken()&&(E.id_token_hint=this.getIdToken()),!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(typeof this.document>"u")throw new Error("silent refresh is not supported on this platform");const L=this.document.getElementById(this.silentRefreshIFrameName);L&&this.document.body.removeChild(L),this.silentRefreshSubject=_.sub;const F=this.document.createElement("iframe");F.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,M,E).then(W=>{F.setAttribute("src",W),this.silentRefreshShowIFrame||(F.style.display="none"),this.document.body.appendChild(F)});const q=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(W=>W instanceof OAuthErrorEvent),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),Q=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(W=>"token_received"===W.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),ee=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthErrorEvent("silent_refresh_timeout",null)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(this.silentRefreshTimeout));return(0,rxjs__WEBPACK_IMPORTED_MODULE_14__.S)([q,Q,ee]).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(W=>{if(W instanceof OAuthErrorEvent)throw"silent_refresh_timeout"===W.type||(W=new OAuthErrorEvent("silent_refresh_error",W)),this.eventsSubject.next(W),W;return"token_received"===W.type&&(W=new OAuthSuccessEvent("silently_refreshed"),this.eventsSubject.next(W)),W})).toPromise()}initImplicitFlowInPopup(E){return this.initLoginFlowInPopup(E)}initLoginFlowInPopup(E){return E=E||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(M=>new Promise((_,L)=>{let q,V=null;E.windowRef?E.windowRef&&!E.windowRef.closed&&(V=E.windowRef,V.location.href=M):V=window.open(M,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(E));const Q=re=>{this.tryLogin({customHashFragment:re,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{W(),_(!0)},oe=>{W(),L(oe)})};V?q=window.setInterval(()=>{(!V||V.closed)&&(W(),L(new OAuthErrorEvent("popup_closed",{})))},500):L(new OAuthErrorEvent("popup_blocked",{}));const W=()=>{window.clearInterval(q),window.removeEventListener("storage",G),window.removeEventListener("message",Y),null!==V&&V.close(),V=null},Y=re=>{const oe=this.processMessageEventMessage(re);oe&&null!==oe?(window.removeEventListener("storage",G),Q(oe)):console.log("false event firing")},G=re=>{"auth_hash"===re.key&&(window.removeEventListener("message",Y),Q(re.newValue))};window.addEventListener("message",Y),window.addEventListener("storage",G)}))}calculatePopupFeatures(E){const M=E.height||470,_=E.width||500,L=window.screenLeft+(window.outerWidth-_)/2;return`location=no,toolbar=no,width=${_},height=${M},top=${window.screenTop+(window.outerHeight-M)/2},left=${L}`}processMessageEventMessage(E){let M="#";if(this.silentRefreshMessagePrefix&&(M+=this.silentRefreshMessagePrefix),!E||!E.data||"string"!=typeof E.data)return;const _=E.data;return _.startsWith(M)?"#"+_.substr(M.length):void 0}canPerformSessionCheck(){return!(!this.sessionChecksEnabled||(this.sessionCheckIFrameUrl?this.getSessionState()?typeof this.document>"u":(console.warn("sessionChecksEnabled is activated but there is no session_state"),1):(console.warn("sessionChecksEnabled is activated but there is no sessionCheckIFrameUrl"),1)))}setupSessionCheckEventListener(){this.removeSessionCheckEventListener(),this.sessionCheckEventListener=E=>{const M=E.origin.toLowerCase(),_=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),_.startsWith(M)){switch(E.data){case"unchanged":this.ngZone.run(()=>{this.handleSessionUnchanged()});break;case"changed":this.ngZone.run(()=>{this.handleSessionChange()});break;case"error":this.ngZone.run(()=>{this.handleSessionError()})}this.debug("got info from session check inframe",E)}else this.debug("sessionCheckEventListener","wrong origin",M,"expected",_,"event",E)},this.ngZone.runOutsideAngular(()=>{window.addEventListener("message",this.sessionCheckEventListener)})}handleSessionUnchanged(){this.debug("session check","session unchanged"),this.eventsSubject.next(new OAuthInfoEvent("session_unchanged"))}handleSessionChange(){this.eventsSubject.next(new OAuthInfoEvent("session_changed")),this.stopSessionCheckTimer(),this.useSilentRefresh||"code"!==this.responseType?this.silentRefreshRedirectUri?(this.silentRefresh().catch(E=>this.debug("silent refresh failed after session changed")),this.waitForSilentRefreshAfterSessionChange()):(this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)):this.refreshToken().then(E=>{this.debug("token refresh after session change worked")}).catch(E=>{this.debug("token refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)})}waitForSilentRefreshAfterSessionChange(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(E=>"silently_refreshed"===E.type||"silent_refresh_timeout"===E.type||"silent_refresh_error"===E.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()).subscribe(E=>{"silently_refreshed"!==E.type&&(this.debug("silent refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0))})}handleSessionError(){this.stopSessionCheckTimer(),this.eventsSubject.next(new OAuthInfoEvent("session_error"))}removeSessionCheckEventListener(){this.sessionCheckEventListener&&(window.removeEventListener("message",this.sessionCheckEventListener),this.sessionCheckEventListener=null)}initSessionCheck(){if(!this.canPerformSessionCheck())return;const E=this.document.getElementById(this.sessionCheckIFrameName);E&&this.document.body.removeChild(E);const M=this.document.createElement("iframe");M.id=this.sessionCheckIFrameName,this.setupSessionCheckEventListener(),M.setAttribute("src",this.sessionCheckIFrameUrl),M.style.display="none",this.document.body.appendChild(M),this.startSessionCheckTimer()}startSessionCheckTimer(){this.stopSessionCheckTimer(),this.ngZone.runOutsideAngular(()=>{this.sessionCheckTimer=setInterval(this.checkSession.bind(this),this.sessionCheckIntervall)})}stopSessionCheckTimer(){this.sessionCheckTimer&&(clearInterval(this.sessionCheckTimer),this.sessionCheckTimer=null)}checkSession(){const E=this.document.getElementById(this.sessionCheckIFrameName);E||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);const M=this.getSessionState();M||this.stopSessionCheckTimer(),E.contentWindow.postMessage(this.clientId+" "+M,this.issuer)}createLoginUrl(E="",M="",_="",L=!1,F={}){var V=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const q=V;let Q;Q=_||V.redirectUri;const ee=yield V.createAndSaveNonce();if(E=E?ee+V.config.nonceStateSeparator+encodeURIComponent(E):ee,!V.requestAccessToken&&!V.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");V.responseType=V.config.responseType?V.config.responseType:V.oidc&&V.requestAccessToken?"id_token token":V.oidc&&!V.requestAccessToken?"id_token":"token";const W=q.loginUrl.indexOf("?")>-1?"&":"?";let Y=q.scope;V.oidc&&!Y.match(/(^|\s)openid($|\s)/)&&(Y="openid "+Y);let G=q.loginUrl+W+"response_type="+encodeURIComponent(q.responseType)+"&client_id="+encodeURIComponent(q.clientId)+"&state="+encodeURIComponent(E)+"&redirect_uri="+encodeURIComponent(Q)+"&scope="+encodeURIComponent(Y);if(V.responseType.includes("code")&&!V.disablePKCE){const[re,oe]=yield V.createChallangeVerifierPairForPKCE();V.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("PKCE_verifier",oe):V._storage.setItem("PKCE_verifier",oe),G+="&code_challenge="+re,G+="&code_challenge_method=S256"}M&&(G+="&login_hint="+encodeURIComponent(M)),q.resource&&(G+="&resource="+encodeURIComponent(q.resource)),q.oidc&&(G+="&nonce="+encodeURIComponent(ee)),L&&(G+="&prompt=none");for(const re of Object.keys(F))G+="&"+encodeURIComponent(re)+"="+encodeURIComponent(F[re]);if(V.customQueryParams)for(const re of Object.getOwnPropertyNames(V.customQueryParams))G+="&"+re+"="+encodeURIComponent(V.customQueryParams[re]);return G})()}initImplicitFlowInternal(E="",M=""){if(this.inImplicitFlow)return;if(this.inImplicitFlow=!0,!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let _={},L=null;"string"==typeof M?L=M:"object"==typeof M&&(_=M),this.createLoginUrl(E,L,null,!1,_).then(this.config.openUri).catch(F=>{console.error("Error in initImplicitFlow",F),this.inImplicitFlow=!1})}initImplicitFlow(E="",M=""){""!==this.loginUrl?this.initImplicitFlowInternal(E,M):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(_=>"discovery_document_loaded"===_.type)).subscribe(_=>this.initImplicitFlowInternal(E,M))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(E){const M=this;if(E.onTokenReceived){const _={idClaims:M.getIdentityClaims(),idToken:M.getIdToken(),accessToken:M.getAccessToken(),state:M.state};E.onTokenReceived(_)}}storeAccessTokenResponse(E,M,_,L,F){if(this._storage.setItem("access_token",E),L&&!Array.isArray(L)?this._storage.setItem("granted_scopes",JSON.stringify(L.split(" "))):L&&Array.isArray(L)&&this._storage.setItem("granted_scopes",JSON.stringify(L)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),_){const V=1e3*_,Q=this.dateTimeService.new().getTime()+V;this._storage.setItem("expires_at",""+Q)}M&&this._storage.setItem("refresh_token",M),F&&F.forEach((V,q)=>{this._storage.setItem(q,V)})}tryLogin(E=null){return"code"===this.config.responseType?this.tryLoginCodeFlow(E).then(M=>!0):this.tryLoginImplicitFlow(E)}parseQueryString(E){return E&&0!==E.length?("?"===E.charAt(0)&&(E=E.substr(1)),this.urlHelper.parseQueryString(E)):{}}tryLoginCodeFlow(E=null){var M=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const _=(E=E||{}).customHashFragment?E.customHashFragment.substring(1):window.location.search,L=M.getCodePartsFromUrl(_),F=L.code,V=L.state,q=L.session_state;if(!E.preventClearHashAfterLogin){const W=location.origin+location.pathname+location.search.replace(/code=[^&\$]*/,"").replace(/scope=[^&\$]*/,"").replace(/state=[^&\$]*/,"").replace(/session_state=[^&\$]*/,"").replace(/^\?&/,"?").replace(/&$/,"").replace(/^\?$/,"").replace(/&+/g,"&").replace(/\?&/,"?").replace(/\?$/,"")+location.hash;history.replaceState(null,window.name,W)}let[Q,ee]=M.parseState(V);if(M.state=ee,L.error){M.debug("error trying to login"),M.handleLoginError(E,L);const W=new OAuthErrorEvent("code_error",{},L);return M.eventsSubject.next(W),Promise.reject(W)}if(!E.disableNonceCheck){if(!Q)return M.saveRequestedRoute(),Promise.resolve();if(!E.disableOAuth2StateCheck&&!M.validateNonce(Q)){const Y=new OAuthErrorEvent("invalid_nonce_in_state",null);return M.eventsSubject.next(Y),Promise.reject(Y)}return M.storeSessionState(q),F&&(yield M.getTokenFromCode(F,E),M.restoreRequestedRoute()),Promise.resolve()}return Promise.reject()})()}saveRequestedRoute(){this.config.preserveRequestedRoute&&this._storage.setItem("requested_route",window.location.pathname+window.location.search)}restoreRequestedRoute(){const E=this._storage.getItem("requested_route");E&&history.replaceState(null,"",window.location.origin+E)}getCodePartsFromUrl(E){return E&&0!==E.length?("?"===E.charAt(0)&&(E=E.substr(1)),this.urlHelper.parseQueryString(E)):this.urlHelper.getHashFragmentParams()}getTokenFromCode(E,M){let _=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","authorization_code").set("code",E).set("redirect_uri",M.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let L;L=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("PKCE_verifier"):this._storage.getItem("PKCE_verifier"),L?_=_.set("code_verifier",L):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(_,M)}fetchAndProcessToken(E,M){M=M||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let _=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const L=btoa(`${this.clientId}:${this.dummyClientSecret}`);_=_.set("Authorization","Basic "+L)}return this.useHttpBasicAuth||(E=E.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(E=E.set("client_secret",this.dummyClientSecret)),new Promise((L,F)=>{if(this.customQueryParams)for(let V of Object.getOwnPropertyNames(this.customQueryParams))E=E.set(V,this.customQueryParams[V]);this.http.post(this.tokenEndpoint,E,{headers:_}).subscribe(V=>{this.debug("refresh tokenResponse",V),this.storeAccessTokenResponse(V.access_token,V.refresh_token,V.expires_in||this.fallbackAccessTokenExpirationTimeInSec,V.scope,this.extractRecognizedCustomParameters(V)),this.oidc&&V.id_token?this.processIdToken(V.id_token,V.access_token,M.disableNonceCheck).then(q=>{this.storeIdToken(q),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),L(V)}).catch(q=>{this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",q)),console.error("Error validating tokens"),console.error(q),F(q)}):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),L(V))},V=>{console.error("Error getting token",V),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",V)),F(V)})})}tryLoginImplicitFlow(E=null){let M;M=(E=E||{}).customHashFragment?this.urlHelper.getHashFragmentParams(E.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",M);const _=M.state;let[L,F]=this.parseState(_);if(this.state=F,M.error){this.debug("error trying to login"),this.handleLoginError(E,M);const W=new OAuthErrorEvent("token_error",{},M);return this.eventsSubject.next(W),Promise.reject(W)}const V=M.access_token,q=M.id_token,Q=M.session_state,ee=M.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!V||this.requestAccessToken&&!E.disableOAuth2StateCheck&&!_||this.oidc&&!q)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!Q&&this.logger.warn("session checks (Session Status Change Notification) were activated in the configuration but the id_token does not contain a session_state claim"),this.requestAccessToken&&!E.disableNonceCheck&&!this.validateNonce(L)){const Y=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(Y),Promise.reject(Y)}return this.requestAccessToken&&this.storeAccessTokenResponse(V,null,M.expires_in||this.fallbackAccessTokenExpirationTimeInSec,ee),this.oidc?this.processIdToken(q,V,E.disableNonceCheck).then(W=>E.validationHandler?E.validationHandler({accessToken:V,idClaims:W.idTokenClaims,idToken:W.idToken,state:_}).then(Y=>W):W).then(W=>(this.storeIdToken(W),this.storeSessionState(Q),this.clearHashAfterLogin&&!E.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.callOnTokenReceivedIfExists(E),this.inImplicitFlow=!1,!0)).catch(W=>(this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",W)),this.logger.error("Error validating tokens"),this.logger.error(W),Promise.reject(W))):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.clearHashAfterLogin&&!E.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(E),Promise.resolve(!0))}parseState(E){let M=E,_="";if(E){const L=E.indexOf(this.config.nonceStateSeparator);L>-1&&(M=E.substr(0,L),_=E.substr(L+this.config.nonceStateSeparator.length))}return[M,_]}validateNonce(E){let M;return M=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),M===E||(console.error("Validating access_token failed, wrong state/nonce.",M,E),!1)}storeIdToken(E){this._storage.setItem("id_token",E.idToken),this._storage.setItem("id_token_claims_obj",E.idTokenClaimsJson),this._storage.setItem("id_token_expires_at",""+E.idTokenExpiresAt),this._storage.setItem("id_token_stored_at",""+this.dateTimeService.now())}storeSessionState(E){this._storage.setItem("session_state",E)}getSessionState(){return this._storage.getItem("session_state")}handleLoginError(E,M){E.onLoginError&&E.onLoginError(M),this.clearHashAfterLogin&&!E.preventClearHashAfterLogin&&this.clearLocationHash()}getClockSkewInMsec(E=6e5){return this.clockSkewInSec?1e3*this.clockSkewInSec:E}processIdToken(E,M,_=!1){const L=E.split("."),V=b64DecodeUnicode(this.padBase64(L[0])),q=JSON.parse(V),ee=b64DecodeUnicode(this.padBase64(L[1])),W=JSON.parse(ee);let Y;if(Y=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Array.isArray(W.aud)){if(W.aud.every(he=>he!==this.clientId)){const he="Wrong audience: "+W.aud.join(",");return this.logger.warn(he),Promise.reject(he)}}else if(W.aud!==this.clientId){const he="Wrong audience: "+W.aud;return this.logger.warn(he),Promise.reject(he)}if(!W.sub){const he="No sub claim in id_token";return this.logger.warn(he),Promise.reject(he)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==W.sub){const he=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${W.sub}`;return this.logger.warn(he),Promise.reject(he)}if(!W.iat){const he="No iat claim in id_token";return this.logger.warn(he),Promise.reject(he)}if(!this.skipIssuerCheck&&W.iss!==this.issuer){const he="Wrong issuer: "+W.iss;return this.logger.warn(he),Promise.reject(he)}if(!_&&W.nonce!==Y){const he="Wrong nonce: "+W.nonce;return this.logger.warn(he),Promise.reject(he)}if(this.hasOwnProperty("responseType")&&("code"===this.responseType||"id_token"===this.responseType)&&(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!W.at_hash){const he="An at_hash is needed!";return this.logger.warn(he),Promise.reject(he)}const G=this.dateTimeService.now(),re=1e3*W.iat,oe=1e3*W.exp,ie=this.getClockSkewInMsec();if(re-ie>=G||oe+ie<=G){const he="Token has expired";return console.error(he),console.error({now:G,issuedAtMSec:re,expiresAtMSec:oe}),Promise.reject(he)}const ae={accessToken:M,idToken:E,jwks:this.jwks,idTokenClaims:W,idTokenHeader:q,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(ae).then(he=>({idToken:E,idTokenClaims:W,idTokenClaimsJson:ee,idTokenHeader:q,idTokenHeaderJson:V,idTokenExpiresAt:oe})):this.checkAtHash(ae).then(he=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!he){const fe="Wrong at_hash";return this.logger.warn(fe),Promise.reject(fe)}return this.checkSignature(ae).then(fe=>{const Le={idToken:E,idTokenClaims:W,idTokenClaimsJson:ee,idTokenHeader:q,idTokenHeaderJson:V,idTokenExpiresAt:oe};return this.disableAtHashCheck?Le:this.checkAtHash(ae).then(Fe=>{if(this.requestAccessToken&&!Fe){const Ae="Wrong at_hash";return this.logger.warn(Ae),Promise.reject(Ae)}return Le})})})}getIdentityClaims(){const E=this._storage.getItem("id_token_claims_obj");return E?JSON.parse(E):null}getGrantedScopes(){const E=this._storage.getItem("granted_scopes");return E?JSON.parse(E):null}getIdToken(){return this._storage?this._storage.getItem("id_token"):null}padBase64(E){for(;E.length%4!=0;)E+="=";return E}getAccessToken(){return this._storage?this._storage.getItem("access_token"):null}getRefreshToken(){return this._storage?this._storage.getItem("refresh_token"):null}getAccessTokenExpiration(){return this._storage.getItem("expires_at")?parseInt(this._storage.getItem("expires_at"),10):null}getAccessTokenStoredAt(){return parseInt(this._storage.getItem("access_token_stored_at"),10)}getIdTokenStoredAt(){return parseInt(this._storage.getItem("id_token_stored_at"),10)}getIdTokenExpiration(){return this._storage.getItem("id_token_expires_at")?parseInt(this._storage.getItem("id_token_expires_at"),10):null}hasValidAccessToken(){if(this.getAccessToken()){const E=this._storage.getItem("expires_at"),M=this.dateTimeService.new();return!(E&&parseInt(E,10)=0&&null!==this._storage.getItem(E)?JSON.parse(this._storage.getItem(E)):null}authorizationHeader(){return"Bearer "+this.getAccessToken()}logOut(E={},M=""){let _=!1;"boolean"==typeof E&&(_=E,E={});const L=this.getIdToken();if(this._storage.removeItem("access_token"),this._storage.removeItem("id_token"),this._storage.removeItem("refresh_token"),this.saveNoncesInLocalStorage?(localStorage.removeItem("nonce"),localStorage.removeItem("PKCE_verifier")):(this._storage.removeItem("nonce"),this._storage.removeItem("PKCE_verifier")),this._storage.removeItem("expires_at"),this._storage.removeItem("id_token_claims_obj"),this._storage.removeItem("id_token_expires_at"),this._storage.removeItem("id_token_stored_at"),this._storage.removeItem("access_token_stored_at"),this._storage.removeItem("granted_scopes"),this._storage.removeItem("session_state"),this.config.customTokenParameters&&this.config.customTokenParameters.forEach(V=>this._storage.removeItem(V)),this.silentRefreshSubject=null,this.eventsSubject.next(new OAuthInfoEvent("logout")),!this.logoutUrl||_||!L&&!this.postLogoutRedirectUri)return;let F;if(!this.validateUrlForHttps(this.logoutUrl))throw new Error("logoutUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(this.logoutUrl.indexOf("{{")>-1)F=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(L)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let V=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec});L&&(V=V.set("id_token_hint",L));const q=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";q&&(V=V.set("post_logout_redirect_uri",q),M&&(V=V.set("state",M)));for(let Q in E)V=V.set(Q,E[Q]);F=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+V.toString()}this.config.openUri(F)}createAndSaveNonce(){const E=this;return this.createNonce().then(function(M){return E.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("nonce",M):E._storage.setItem("nonce",M),M})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();const E=this.document.getElementById(this.silentRefreshIFrameName);E&&E.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();const M=this.document.getElementById(this.sessionCheckIFrameName);M&&M.remove()}createNonce(){return new Promise(E=>{if(this.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");const M="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";let _=45,L="";const F=typeof self>"u"?null:self.crypto||self.msCrypto;if(F){let V=new Uint8Array(_);F.getRandomValues(V),V.map||(V.map=Array.prototype.map),V=V.map(q=>M.charCodeAt(q%M.length)),L=String.fromCharCode.apply(null,V)}else for(;0<_--;)L+=M[Math.random()*M.length|0];E(base64UrlEncode(L))})}checkAtHash(E){var M=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){return M.tokenValidationHandler?M.tokenValidationHandler.validateAtHash(E):(M.logger.warn("No tokenValidationHandler configured. Cannot check at_hash."),!0)})()}checkSignature(E){return this.tokenValidationHandler?this.tokenValidationHandler.validateSignature(E):(this.logger.warn("No tokenValidationHandler configured. Cannot check signature."),Promise.resolve(null))}initLoginFlow(E="",M={}){return"code"===this.responseType?this.initCodeFlow(E,M):this.initImplicitFlow(E,M)}initCodeFlow(E="",M={}){""!==this.loginUrl?this.initCodeFlowInternal(E,M):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(_=>"discovery_document_loaded"===_.type)).subscribe(_=>this.initCodeFlowInternal(E,M))}initCodeFlowInternal(E="",M={}){if(!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let _={},L=null;"string"==typeof M?L=M:"object"==typeof M&&(_=M),this.createLoginUrl(E,L,null,!1,_).then(this.config.openUri).catch(F=>{console.error("Error in initAuthorizationCodeFlow"),console.error(F)})}createChallangeVerifierPairForPKCE(){var E=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){if(!E.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");const M=yield E.createNonce();return[base64UrlEncode(yield E.crypto.calcHash(M,"sha-256")),M]})()}extractRecognizedCustomParameters(E){let M=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(_=>{E[_]&&M.set(_,JSON.stringify(E[_]))}),M}revokeTokenAndLogout(E={},M=!1){let _=this.revocationEndpoint,L=this.getAccessToken(),F=this.getRefreshToken();if(!L)return;let V=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}),q=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const Q=btoa(`${this.clientId}:${this.dummyClientSecret}`);q=q.set("Authorization","Basic "+Q)}if(this.useHttpBasicAuth||(V=V.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(V=V.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const Q of Object.getOwnPropertyNames(this.customQueryParams))V=V.set(Q,this.customQueryParams[Q]);return new Promise((Q,ee)=>{let W,Y;if(L){let G=V.set("token",L).set("token_type_hint","access_token");W=this.http.post(_,G,{headers:q})}else W=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);if(F){let G=V.set("token",F).set("token_type_hint","refresh_token");Y=this.http.post(_,G,{headers:q})}else Y=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);M&&(W=W.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(G=>0===G.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(G))),Y=Y.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(G=>0===G.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(G)))),(0,rxjs__WEBPACK_IMPORTED_MODULE_17__.a)([W,Y]).subscribe(G=>{this.logOut(E),Q(G),this.logger.info("Token successfully revoked")},G=>{this.logger.error("Error revoking token",G),this.eventsSubject.next(new OAuthErrorEvent("token_revoke_error",G)),ee(G)})})}clearLocationHash(){""!=location.hash&&(location.hash="")}}return N.\u0275fac=function(E){return new(E||N)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_core__WEBPACK_IMPORTED_MODULE_1__.R0b),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.eN),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthStorage,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(ValidationHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(AuthConfig,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(UrlHelperService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthLogger),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(HashHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common__WEBPACK_IMPORTED_MODULE_18__.K0),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(DateTimeProvider))},N.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:N,factory:N.\u0275fac}),N})();class OAuthModuleConfig{}class OAuthResourceServerConfig{}class OAuthResourceServerErrorHandler{}class OAuthNoopResourceServerErrorHandler{handleError(z){return(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(z)}}let DefaultOAuthInterceptor=(()=>{class N{constructor(E,M,_){this.oAuthService=E,this.errorHandler=M,this.moduleConfig=_}checkUrl(E){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(E):!this.moduleConfig.resourceServer.allowedUrls||!!this.moduleConfig.resourceServer.allowedUrls.find(M=>E.toLowerCase().startsWith(M.toLowerCase()))}intercept(E,M){const _=E.url.toLowerCase();return this.moduleConfig&&this.moduleConfig.resourceServer&&this.checkUrl(_)?this.moduleConfig.resourceServer.sendAccessToken?(0,rxjs__WEBPACK_IMPORTED_MODULE_19__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(this.oAuthService.getAccessToken()).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(F=>!!F)),this.oAuthService.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(F=>"token_received"===F.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.V)(this.oAuthService.waitForTokenInMsec||0),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(F=>(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(F=>this.oAuthService.getAccessToken()))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.q)(1),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_22__.z)(F=>{if(F){const q=E.headers.set("Authorization","Bearer "+F);E=E.clone({headers:q})}return M.handle(E).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(V=>this.errorHandler.handleError(V)))})):M.handle(E).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(F=>this.errorHandler.handleError(F))):M.handle(E)}}return N.\u0275fac=function(E){return new(E||N)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthResourceServerErrorHandler),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthModuleConfig,8))},N.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:N,factory:N.\u0275fac}),N})();class NullValidationHandler{validateSignature(z){return Promise.resolve(null)}validateAtHash(z){return Promise.resolve(!0)}}function createDefaultLogger(){return console}function createDefaultStorage(){return typeof sessionStorage<"u"?sessionStorage:new MemoryStorage}let OAuthModule=(()=>{class N{static forRoot(E=null,M=NullValidationHandler){return{ngModule:N,providers:[OAuthService,UrlHelperService,{provide:OAuthLogger,useFactory:createDefaultLogger},{provide:OAuthStorage,useFactory:createDefaultStorage},{provide:ValidationHandler,useClass:M},{provide:HashHandler,useClass:DefaultHashHandler},{provide:OAuthResourceServerErrorHandler,useClass:OAuthNoopResourceServerErrorHandler},{provide:OAuthModuleConfig,useValue:E},{provide:_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.TP,useClass:DefaultOAuthInterceptor,multi:!0},{provide:DateTimeProvider,useClass:SystemDateTimeProvider}]}}}return N.\u0275fac=function(E){return new(E||N)},N.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_1__.oAB({type:N}),N.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_1__.cJS({imports:[[_angular_common__WEBPACK_IMPORTED_MODULE_18__.ez]]}),N})();const err="PLEASE READ THIS CAREFULLY:\n\nBeginning with angular-oauth2-oidc version 9, the JwksValidationHandler\nhas been moved to an library of its own. If you need it for implementing\nOAuth2/OIDC **implicit flow**, please install it using npm:\n\n npm i angular-oauth2-oidc-jwks --save\n\nAfter that, you can import it into your application:\n\n import { JwksValidationHandler } from 'angular-oauth2-oidc-jwks';\n\nPlease note, that this dependency is not needed for the **code flow**,\nwhich is nowadays the **recommented** one for single page applications.\nThis also results in smaller bundle sizes.\n";class JwksValidationHandler extends NullValidationHandler{constructor(){super(),console.error(err)}}const AUTH_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_1__.OlP("AUTH_CONFIG")},5861:(N,z,E)=>{"use strict";function M(L,F,V,q,Q,ee,W){try{var Y=L[ee](W),G=Y.value}catch(re){return void V(re)}Y.done?F(G):Promise.resolve(G).then(q,Q)}function _(L){return function(){var F=this,V=arguments;return new Promise(function(q,Q){var ee=L.apply(F,V);function W(G){M(ee,q,Q,W,Y,"next",G)}function Y(G){M(ee,q,Q,W,Y,"throw",G)}W(void 0)})}}E.d(z,{Z:()=>_})},4147:N=>{"use strict";N.exports={i8:"10.4.0"}}},N=>{N(N.s=6763)}]); \ No newline at end of file diff --git a/dist/apps/password-reset/assets/i18n/cs.json b/dist/apps/password-reset/assets/i18n/cs.json index b192a2355..13a37a86a 100644 --- a/dist/apps/password-reset/assets/i18n/cs.json +++ b/dist/apps/password-reset/assets/i18n/cs.json @@ -39,9 +39,9 @@ "TITLE": "Požadovaný uživatel (dle ID nebo externí identity) neexistuje." }, "SESSION_EXPIRATION": { - "TITLE": "Session expiration", - "DESCRIPTION": "Your session has expired. Please sign in to continue.", - "SIGN_IN": "Sign in" + "TITLE": "Platnost přihlášení vypršela", + "DESCRIPTION": "Byli jste automaticky odhlášeni. Pro pokračování se znovu přihlaste.", + "SIGN_IN": "Pokračovat" }, "PASSWORD_FORM_FIELD": { "PASSWORD": "Nové heslo", diff --git a/dist/apps/password-reset/assets/i18n/en.json b/dist/apps/password-reset/assets/i18n/en.json index 848616f28..888489b12 100644 --- a/dist/apps/password-reset/assets/i18n/en.json +++ b/dist/apps/password-reset/assets/i18n/en.json @@ -41,7 +41,7 @@ "SESSION_EXPIRATION": { "TITLE": "Session expiration", "DESCRIPTION": "Your session has expired. Please sign in to continue.", - "SIGN_IN": "Sign in" + "SIGN_IN": "Proceed" }, "PASSWORD_FORM_FIELD": { "PASSWORD": "New password", diff --git a/dist/apps/password-reset/index.html b/dist/apps/password-reset/index.html index dbaee968a..4c5bff057 100644 --- a/dist/apps/password-reset/index.html +++ b/dist/apps/password-reset/index.html @@ -9,5 +9,5 @@ - + diff --git a/dist/apps/password-reset/main.2611875b4dfcea07.js b/dist/apps/password-reset/main.2611875b4dfcea07.js deleted file mode 100644 index ed116b489..000000000 --- a/dist/apps/password-reset/main.2611875b4dfcea07.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkpassword_reset=self.webpackChunkpassword_reset||[]).push([[179],{8085:(F,N,x)=>{"use strict";var T=x(6895),u=x(4650);class V extends T.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class O extends V{static makeCurrent(){(0,T.HT)(new O)}onAndCancel(a,e,t){return a.addEventListener(e,t,!1),()=>{a.removeEventListener(e,t,!1)}}dispatchEvent(a,e){a.dispatchEvent(e)}remove(a){a.parentNode&&a.parentNode.removeChild(a)}createElement(a,e){return(e=e||this.getDefaultDocument()).createElement(a)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(a){return a.nodeType===Node.ELEMENT_NODE}isShadowRoot(a){return a instanceof DocumentFragment}getGlobalEventTarget(a,e){return"window"===e?window:"document"===e?a:"body"===e?a.body:null}getBaseHref(a){const e=function j(){return I=I||document.querySelector("base"),I?I.getAttribute("href"):null}();return null==e?null:function Y(r){W=W||document.createElement("a"),W.setAttribute("href",r);const a=W.pathname;return"/"===a.charAt(0)?a:`/${a}`}(e)}resetBaseElement(){I=null}getUserAgent(){return window.navigator.userAgent}getCookie(a){return(0,T.Mx)(document.cookie,a)}}let W,I=null;const G=new u.OlP("TRANSITION_ID"),U=[{provide:u.ip1,useFactory:function $(r,a,e){return()=>{e.get(u.CZH).donePromise.then(()=>{const t=(0,T.q)(),o=a.querySelectorAll(`style[ng-transition="${r}"]`);for(let l=0;l{class r{build(){return new XMLHttpRequest}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac}),r})();const J=new u.OlP("EventManagerPlugins");let ie=(()=>{class r{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(o=>o.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,o){return this._findPluginFor(t).addEventListener(e,t,o)}addGlobalEventListener(e,t,o){return this._findPluginFor(t).addGlobalEventListener(e,t,o)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const o=this._plugins;for(let l=0;l{class r{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(o=>{this._stylesSet.has(o)||(this._stylesSet.add(o),t.add(o))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac}),r})(),ge=(()=>{class r extends he{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,t,o){e.forEach(l=>{const c=this._doc.createElement("style");c.textContent=l,o.push(t.appendChild(c))})}addHost(e){const t=[];this._addStylesToHost(this._stylesSet,e,t),this._hostNodes.set(e,t)}removeHost(e){const t=this._hostNodes.get(e);t&&t.forEach(Ve),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((t,o)=>{this._addStylesToHost(e,o,t)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(Ve))}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(T.K0))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac}),r})();function Ve(r){(0,T.q)().remove(r)}const Be={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/",math:"http://www.w3.org/1998/MathML/"},we=/%COMP%/g;function oe(r,a,e){for(let t=0;t{if("__ngUnwrap__"===a)return r;!1===r(a)&&(a.preventDefault(),a.returnValue=!1)}}let ue=(()=>{class r{constructor(e,t,o){this.eventManager=e,this.sharedStylesHost=t,this.appId=o,this.rendererByCompId=new Map,this.defaultRenderer=new Re(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case u.ifc.Emulated:{let o=this.rendererByCompId.get(t.id);return o||(o=new kt(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,o)),o.applyToHost(e),o}case 1:case u.ifc.ShadowDom:return new Le(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const o=oe(t.id,t.styles,[]);this.sharedStylesHost.addStyles(o),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(ie),u.LFG(ge),u.LFG(u.AFp))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac}),r})();class Re{constructor(a){this.eventManager=a,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(a,e){return e?document.createElementNS(Be[e]||e,a):document.createElement(a)}createComment(a){return document.createComment(a)}createText(a){return document.createTextNode(a)}appendChild(a,e){(Tt(a)?a.content:a).appendChild(e)}insertBefore(a,e,t){a&&(Tt(a)?a.content:a).insertBefore(e,t)}removeChild(a,e){a&&a.removeChild(e)}selectRootElement(a,e){let t="string"==typeof a?document.querySelector(a):a;if(!t)throw new Error(`The selector "${a}" did not match any elements`);return e||(t.textContent=""),t}parentNode(a){return a.parentNode}nextSibling(a){return a.nextSibling}setAttribute(a,e,t,o){if(o){e=o+":"+e;const l=Be[o];l?a.setAttributeNS(l,e,t):a.setAttribute(e,t)}else a.setAttribute(e,t)}removeAttribute(a,e,t){if(t){const o=Be[t];o?a.removeAttributeNS(o,e):a.removeAttribute(`${t}:${e}`)}else a.removeAttribute(e)}addClass(a,e){a.classList.add(e)}removeClass(a,e){a.classList.remove(e)}setStyle(a,e,t,o){o&(u.JOm.DashCase|u.JOm.Important)?a.style.setProperty(e,t,o&u.JOm.Important?"important":""):a.style[e]=t}removeStyle(a,e,t){t&u.JOm.DashCase?a.style.removeProperty(e):a.style[e]=""}setProperty(a,e,t){a[e]=t}setValue(a,e){a.nodeValue=e}listen(a,e,t){return"string"==typeof a?this.eventManager.addGlobalEventListener(a,e,se(t)):this.eventManager.addEventListener(a,e,se(t))}}function Tt(r){return"TEMPLATE"===r.tagName&&void 0!==r.content}class kt extends Re{constructor(a,e,t,o){super(a),this.component=t;const l=oe(o+"-"+t.id,t.styles,[]);e.addStyles(l),this.contentAttr=function Ee(r){return"_ngcontent-%COMP%".replace(we,r)}(o+"-"+t.id),this.hostAttr=function Te(r){return"_nghost-%COMP%".replace(we,r)}(o+"-"+t.id)}applyToHost(a){super.setAttribute(a,this.hostAttr,"")}createElement(a,e){const t=super.createElement(a,e);return super.setAttribute(t,this.contentAttr,""),t}}class Le extends Re{constructor(a,e,t,o){super(a),this.sharedStylesHost=e,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const l=oe(o.id,o.styles,[]);for(let c=0;c{class r extends de{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,o){return e.addEventListener(t,o,!1),()=>this.removeEventListener(e,t,o)}removeEventListener(e,t,o){return e.removeEventListener(t,o)}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(T.K0))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac}),r})();const Gn=["alt","control","meta","shift"],Dt={"\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"},xn={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"},oi={alt:r=>r.altKey,control:r=>r.ctrlKey,meta:r=>r.metaKey,shift:r=>r.shiftKey};let qr=(()=>{class r extends de{constructor(e){super(e)}supports(e){return null!=r.parseEventName(e)}addEventListener(e,t,o){const l=r.parseEventName(t),c=r.eventCallback(l.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,T.q)().onAndCancel(e,l.domEventName,c))}static parseEventName(e){const t=e.toLowerCase().split("."),o=t.shift();if(0===t.length||"keydown"!==o&&"keyup"!==o)return null;const l=r._normalizeKey(t.pop());let c="";if(Gn.forEach(i=>{const s=t.indexOf(i);s>-1&&(t.splice(s,1),c+=i+".")}),c+=l,0!=t.length||0===l.length)return null;const n={};return n.domEventName=o,n.fullKey=c,n}static getEventFullKey(e){let t="",o=function dc(r){let a=r.key;if(null==a){if(a=r.keyIdentifier,null==a)return"Unidentified";a.startsWith("U+")&&(a=String.fromCharCode(parseInt(a.substring(2),16)),3===r.location&&xn.hasOwnProperty(a)&&(a=xn[a]))}return Dt[a]||a}(e);return o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),Gn.forEach(l=>{l!=o&&(0,oi[l])(e)&&(t+=l+".")}),t+=o,t}static eventCallback(e,t,o){return l=>{r.getEventFullKey(l)===e&&o.runGuarded(()=>t(l))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(T.K0))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac}),r})();const Ye=(0,u.eFA)(u._c5,"browser",[{provide:u.Lbi,useValue:T.bD},{provide:u.g9A,useValue:function qn(){O.makeCurrent()},multi:!0},{provide:T.K0,useFactory:function Va(){return(0,u.RDi)(document),document},deps:[]}]),ci=new u.OlP(""),Ba=[{provide:u.rWj,useClass:class te{addToWindow(a){u.dqk.getAngularTestability=(t,o=!0)=>{const l=a.findTestabilityInTree(t,o);if(null==l)throw new Error("Could not find testability for element.");return l},u.dqk.getAllAngularTestabilities=()=>a.getAllTestabilities(),u.dqk.getAllAngularRootElements=()=>a.getAllRootElements(),u.dqk.frameworkStabilizers||(u.dqk.frameworkStabilizers=[]),u.dqk.frameworkStabilizers.push(t=>{const o=u.dqk.getAllAngularTestabilities();let l=o.length,c=!1;const n=function(i){c=c||i,l--,0==l&&t(c)};o.forEach(function(i){i.whenStable(n)})})}findTestabilityInTree(a,e,t){return null==e?null:a.getTestability(e)??(t?(0,T.q)().isShadowRoot(e)?this.findTestabilityInTree(a,e.host,!0):this.findTestabilityInTree(a,e.parentElement,!0):null)}},deps:[]},{provide:u.lri,useClass:u.dDg,deps:[u.R0b,u.eoX,u.rWj]},{provide:u.dDg,useClass:u.dDg,deps:[u.R0b,u.eoX,u.rWj]}],Hi=[{provide:u.zSh,useValue:"root"},{provide:u.qLn,useFactory:function Wn(){return new u.qLn},deps:[]},{provide:J,useClass:Di,multi:!0,deps:[T.K0,u.R0b,u.Lbi]},{provide:J,useClass:qr,multi:!0,deps:[T.K0]},{provide:ue,useClass:ue,deps:[ie,ge,u.AFp]},{provide:u.FYo,useExisting:ue},{provide:he,useExisting:ge},{provide:ge,useClass:ge,deps:[T.K0]},{provide:ie,useClass:ie,deps:[J,u.R0b]},{provide:T.JF,useClass:ne,deps:[]},[]];let Oa=(()=>{class r{constructor(e){}static withServerTransition(e){return{ngModule:r,providers:[{provide:u.AFp,useValue:e.appId},{provide:G,useExisting:u.AFp},U]}}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(ci,12))},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({providers:[...Hi,...Ba],imports:[T.ez,u.hGG]}),r})(),Q=(()=>{class r{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(T.K0))},r.\u0275prov=u.Yz7({token:r,factory:function(e){let t=null;return t=e?new e:function Ce(){return new Q((0,u.LFG)(T.K0))}(),t},providedIn:"root"}),r})();typeof window<"u"&&window;let Xt=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=u.Yz7({token:r,factory:function(e){let t=null;return t=e?new(e||r):u.LFG(rt),t},providedIn:"root"}),r})(),rt=(()=>{class r extends Xt{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case u.q3G.NONE:return t;case u.q3G.HTML:return(0,u.qzn)(t,"HTML")?(0,u.z3N)(t):(0,u.EiD)(this._doc,String(t)).toString();case u.q3G.STYLE:return(0,u.qzn)(t,"Style")?(0,u.z3N)(t):t;case u.q3G.SCRIPT:if((0,u.qzn)(t,"Script"))return(0,u.z3N)(t);throw new Error("unsafe value used in a script context");case u.q3G.URL:return(0,u.qzn)(t,"URL")?(0,u.z3N)(t):(0,u.mCW)(String(t));case u.q3G.RESOURCE_URL:if((0,u.qzn)(t,"ResourceURL"))return(0,u.z3N)(t);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return(0,u.JVY)(e)}bypassSecurityTrustStyle(e){return(0,u.L6k)(e)}bypassSecurityTrustScript(e){return(0,u.eBb)(e)}bypassSecurityTrustUrl(e){return(0,u.LAX)(e)}bypassSecurityTrustResourceUrl(e){return(0,u.pB0)(e)}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(T.K0))},r.\u0275prov=u.Yz7({token:r,factory:function(e){let t=null;return t=e?new e:function Ie(r){return new rt(r.get(T.K0))}(u.LFG(u.zs3)),t},providedIn:"root"}),r})();var y=x(529);class St{encodeKey(a){return encodeURIComponent(a)}encodeValue(a){return encodeURIComponent(a)}decodeKey(a){return decodeURIComponent(a)}decodeValue(a){return decodeURIComponent(a)}}const pt=new u.OlP("basePath");class Oe{constructor(a={}){this.apiKeys=a.apiKeys,this.username=a.username,this.password=a.password,this.accessToken=a.accessToken,this.basePath=a.basePath,this.withCredentials=a.withCredentials,this.encoder=a.encoder,this.credentials=a.credentials?a.credentials:{},this.credentials.BasicAuth||(this.credentials.BasicAuth=()=>this.username||this.password?btoa(this.username+":"+this.password):void 0),this.credentials.BearerAuth||(this.credentials.BearerAuth=()=>"function"==typeof this.accessToken?this.accessToken():this.accessToken)}selectHeaderContentType(a){if(0===a.length)return;const e=a.find(t=>this.isJsonMime(t));return void 0===e?a[0]:e}selectHeaderAccept(a){if(0===a.length)return;const e=a.find(t=>this.isJsonMime(t));return void 0===e?a[0]:e}isJsonMime(a){const e=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==a&&(e.test(a)||"application/json-patch+json"===a.toLowerCase())}lookupCredential(a){const e=this.credentials[a];return"function"==typeof e?e():e}}let wr=(()=>{class r{constructor(e,t,o){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new Oe,o&&(this.configuration=o),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new St}addToHttpParams(e,t,o){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,o):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,o){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,o));else if(t instanceof Date){if(null==o)throw Error("key may not be null if value is Date");e=e.append(o,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=o?`${o}.${l}`:l));else{if(null==o)throw Error("key may not be null if value is not object or array");e=e.append(o,t)}return e}convertAttributeToNonunique(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToNonunique.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeDefinition"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToNonunique`,null,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}convertAttributeToUnique(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToUnique.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeDefinition"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToUnique`,null,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}createAttributeDefinition(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputCreateAttributeDefinition was null or undefined when calling createAttributeDefinition.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/createAttribute`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}deleteAttributeDefinition(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter attribute was null or undefined when calling deleteAttributeDefinition.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attribute"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttribute`,null,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}deleteAttributeDefinitions(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter attributes was null or undefined when calling deleteAttributeDefinitions.");let c=new y.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"attributes[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttributes`,null,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getAllAttributeDefinitions(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributesDefinition`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAttribute(e,t,o,l,c,n,i,s,d,h,f,b="body",H=!1,z){let ae=new y.LE({encoder:this.encoder});null!=e&&(ae=this.addToHttpParams(ae,e,"attributeName")),null!=t&&(ae=this.addToHttpParams(ae,t,"attributeId")),null!=o&&(ae=this.addToHttpParams(ae,o,"facility")),null!=l&&(ae=this.addToHttpParams(ae,l,"user")),null!=c&&(ae=this.addToHttpParams(ae,c,"vo")),null!=n&&(ae=this.addToHttpParams(ae,n,"resource")),null!=i&&(ae=this.addToHttpParams(ae,i,"member")),null!=s&&(ae=this.addToHttpParams(ae,s,"group")),null!=d&&(ae=this.addToHttpParams(ae,d,"host")),null!=h&&(ae=this.addToHttpParams(ae,h,"userExtSource")),null!=f&&(ae=this.addToHttpParams(ae,f,"key"));let ct,ke=this.defaultHeaders;ct=this.configuration.lookupCredential("BasicAuth"),ct&&(ke=ke.set("Authorization","Basic "+ct)),ct=this.configuration.lookupCredential("BearerAuth"),ct&&(ke=ke.set("Authorization","Bearer "+ct));let yt=z&&z.httpHeaderAccept;void 0===yt&&(yt=this.configuration.selectHeaderAccept(["application/json"])),void 0!==yt&&(ke=ke.set("Accept",yt));let zt=z&&z.context;void 0===zt&&(zt=new y.qT);let Gr="json";return yt&&(Gr=yt.startsWith("text")?"text":this.configuration.isJsonMime(yt)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/any`,{context:zt,params:ae,responseType:Gr,withCredentials:this.configuration.withCredentials,headers:ke,observe:b,reportProgress:H})}getAttributeDefinitionById(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getAttributeDefinitionById.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinitionById`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getAttributeDefinitionByName(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getAttributeDefinitionByName.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeName"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinition`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getAttributeDefinitionsByNamespace(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter namespace was null or undefined when calling getAttributeDefinitionsByNamespace.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"namespace"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributesDefinitionByNamespace`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getAttributeModulesDependenciesForAttributeGraphText(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");if(null==t)throw new Error("Required parameter attrName was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"format")),null!=t&&(n=this.addToHttpParams(n,t,"attrName"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText/for-attribute`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getAttributeModulesDependenciesGraphText(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesGraphText.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"format"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getAttributePolicyCollections(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getAttributePolicyCollections.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeId"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributePolicyCollections`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getAttributeRights(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getAttributeRights.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeId"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeRights`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getAttributeRules(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling getAttributeRules.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeDefinition"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeRules`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getAttributesDefinitionWithRights(e,t,o,l,c,n,i,s,d="body",h=!1,f){let b=new y.LE({encoder:this.encoder});null!=e&&(b=this.addToHttpParams(b,e,"member")),null!=t&&(b=this.addToHttpParams(b,t,"user")),null!=o&&(b=this.addToHttpParams(b,o,"vo")),null!=l&&(b=this.addToHttpParams(b,l,"group")),null!=c&&(b=this.addToHttpParams(b,c,"resource")),null!=n&&(b=this.addToHttpParams(b,n,"facility")),null!=i&&(b=this.addToHttpParams(b,i,"host")),null!=s&&(b=this.addToHttpParams(b,s,"userExtSource"));let z,H=this.defaultHeaders;z=this.configuration.lookupCredential("BasicAuth"),z&&(H=H.set("Authorization","Basic "+z)),z=this.configuration.lookupCredential("BearerAuth"),z&&(H=H.set("Authorization","Bearer "+z));let ae=f&&f.httpHeaderAccept;void 0===ae&&(ae=this.configuration.selectHeaderAccept(["application/json"])),void 0!==ae&&(H=H.set("Accept",ae));let ke=f&&f.context;void 0===ke&&(ke=new y.qT);let ct="json";return ae&&(ct=ae.startsWith("text")?"text":this.configuration.isJsonMime(ae)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/attributesManager/getAttributesDefinitionWithRights`,{context:ke,params:b,responseType:ct,withCredentials:this.configuration.withCredentials,headers:H,observe:d,reportProgress:h})}getEntitylessAttributeByName(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getEntitylessAttributeByName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"key")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-entityless`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getEntitylessAttributesByKey(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributesByKey.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"key"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/key`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getEntitylessAttributesByName(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesByName.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attrName"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributes`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getEntitylessAttributesWithKeys(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesWithKeys.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"attrName")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"keys[]")});let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributesWithKeys`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getEntitylessKeys(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling getEntitylessKeys.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeDefinition"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessKeys`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getFacilityAttributeById(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getFacilityAttributeById.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-facility`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getFacilityAttributeByName(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getFacilityAttributeByName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-facility`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getFacilityAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributes.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"facility"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getFacilityAttributesByNames(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getFacilityAttributesByNames.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrNames[]")});let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-names`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getFacilityResourceUserMemberAttributes(e,t,o,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==o)throw new Error("Required parameter user was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==l)throw new Error("Required parameter member was null or undefined when calling getFacilityResourceUserMemberAttributes.");let s=new y.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"facility")),null!=t&&(s=this.addToHttpParams(s,t,"resource")),null!=o&&(s=this.addToHttpParams(s,o,"user")),null!=l&&(s=this.addToHttpParams(s,l,"member"));let h,d=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(d=d.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(d=d.set("Authorization","Bearer "+h));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let H="json";return f&&(H=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-r-u-m`,{context:b,params:s,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}getFacilityUserAttributes(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityUserAttributes.");if(null==t)throw new Error("Required parameter user was null or undefined when calling getFacilityUserAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),null!=t&&(n=this.addToHttpParams(n,t,"user"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-u`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getGroupAttributeById(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getGroupAttributeById.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getGroupAttributeByName(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getGroupAttributeByName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getGroupAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributes.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/g`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getGroupAttributesByNames(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getGroupAttributesByNames.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrNames[]")});let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/g-names`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getGroupResourceAttributeById(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeById.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeById.");if(null==o)throw new Error("Required parameter attributeId was null or undefined when calling getGroupResourceAttributeById.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"group")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=o&&(i=this.addToHttpParams(i,o,"attributeId"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group-resource`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:s,observe:l,reportProgress:c})}getGroupResourceAttributeByName(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeByName.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeByName.");if(null==o)throw new Error("Required parameter attributeName was null or undefined when calling getGroupResourceAttributeByName.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"group")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=o&&(i=this.addToHttpParams(i,o,"attributeName"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group-resource`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:s,observe:l,reportProgress:c})}getGroupResourceAttributes(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/group-resource`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getHostAttributeById(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getHostAttributeById.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-host`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getHostAttributeByName(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getHostAttributeByName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-host`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getHostAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributes.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"host"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/h`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getHostAttributesByNames(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getHostAttributesByNames.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrNames[]")});let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/h-names`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getLogins(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getLogins.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getLogins`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getMemberAndUserAttributes(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributes.");if(null==t)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"workWithUserAttributes"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-wu`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getMemberAndUserAttributesByNames(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==o)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributesByNames.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),t&&t.forEach(H=>{i=this.addToHttpParams(i,H,"attrNames[]")}),null!=o&&(i=this.addToHttpParams(i,o,"workWithUserAttributes"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names-wu`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:s,observe:l,reportProgress:c})}getMemberAttributeById(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getMemberAttributeById.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getMemberAttributeByName(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getMemberAttributeByName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getMemberAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributes.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getMemberAttributesByNames(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAttributesByNames.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrNames[]")});let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getMemberGroupAndUserAttributesByNames(e,t,o,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==o)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==l)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberGroupAndUserAttributesByNames.");let s=new y.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"group")),o&&o.forEach(z=>{s=this.addToHttpParams(s,z,"attrNames[]")}),null!=l&&(s=this.addToHttpParams(s,l,"workWithUserAttributes"));let h,d=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(d=d.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(d=d.set("Authorization","Bearer "+h));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let H="json";return f&&(H=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names-wu`,{context:b,params:s,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}getMemberGroupAttributeById(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeById.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeById.");if(null==o)throw new Error("Required parameter attributeId was null or undefined when calling getMemberGroupAttributeById.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),null!=o&&(i=this.addToHttpParams(i,o,"attributeId"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-group`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:s,observe:l,reportProgress:c})}getMemberGroupAttributeByName(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeByName.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeByName.");if(null==o)throw new Error("Required parameter attributeName was null or undefined when calling getMemberGroupAttributeByName.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),null!=o&&(i=this.addToHttpParams(i,o,"attributeName"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-group`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:s,observe:l,reportProgress:c})}getMemberGroupAttributes(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"group"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getMemberGroupAttributesByNames(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributesByNames.");if(null==o)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAttributesByNames.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),o&&o.forEach(H=>{i=this.addToHttpParams(i,H,"attrNames[]")});let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:s,observe:l,reportProgress:c})}getMemberResourceAndUserFacilityAttributes(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==o)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=o&&(i=this.addToHttpParams(i,o,"workWithUserAttributes"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-wu`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:s,observe:l,reportProgress:c})}getMemberResourceAndUserFacilityAttributesByNames(e,t,o,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==o)throw new Error("Required parameter attrNames was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==l)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");let s=new y.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"resource")),o&&o.forEach(z=>{s=this.addToHttpParams(s,z,"attrNames[]")}),null!=l&&(s=this.addToHttpParams(s,l,"workWithUserAttributes"));let h,d=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(d=d.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(d=d.set("Authorization","Bearer "+h));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let H="json";return f&&(H=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-names-wu`,{context:b,params:s,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}getMemberResourceAttributeById(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeById.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeById.");if(null==o)throw new Error("Required parameter attributeId was null or undefined when calling getMemberResourceAttributeById.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=o&&(i=this.addToHttpParams(i,o,"attributeId"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-resource`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:s,observe:l,reportProgress:c})}getMemberResourceAttributeByName(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeByName.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeByName.");if(null==o)throw new Error("Required parameter attributeName was null or undefined when calling getMemberResourceAttributeByName.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=o&&(i=this.addToHttpParams(i,o,"attributeName"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-resource`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:s,observe:l,reportProgress:c})}getMemberResourceAttributes(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getRequiredAttributesDefinition(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesDefinition.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"service"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributesDefinition`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getRequiredAttributesFacility(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacility.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"facility"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/f`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getRequiredAttributesFacilityService(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesFacilityService.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityService.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"service")),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-f`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getRequiredAttributesFacilityServices(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesFacilityServices.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityServices.");let n=new y.LE({encoder:this.encoder});e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"services[]")}),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-f`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getRequiredAttributesGroupResourceService(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==o)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesGroupResourceService.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"service")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=o&&(i=this.addToHttpParams(i,o,"group"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:s,observe:l,reportProgress:c})}getRequiredAttributesHostService(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesHostService.");if(null==t)throw new Error("Required parameter host was null or undefined when calling getRequiredAttributesHostService.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"service")),null!=t&&(n=this.addToHttpParams(n,t,"host"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-h`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getRequiredAttributesMember(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMember.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"workWithUserAttributes"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getRequiredAttributesMemberGroup(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroup.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroup.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),null!=o&&(i=this.addToHttpParams(i,o,"workWithUserAttributes"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-g`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:s,observe:l,reportProgress:c})}getRequiredAttributesMemberGroupResourceService(e,t,o,l,c,n="body",i=!1,s){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==o)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==l)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");let d=new y.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"service")),null!=t&&(d=this.addToHttpParams(d,t,"resource")),null!=o&&(d=this.addToHttpParams(d,o,"group")),null!=l&&(d=this.addToHttpParams(d,l,"member")),null!=c&&(d=this.addToHttpParams(d,c,"workWithUserAttributes"));let f,h=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(h=h.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(h=h.set("Authorization","Bearer "+f));let b=s&&s.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let H=s&&s.context;void 0===H&&(H=new y.qT);let z="json";return b&&(z=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g-m`,{context:H,params:d,responseType:z,withCredentials:this.configuration.withCredentials,headers:h,observe:n,reportProgress:i})}getRequiredAttributesMemberGroupService(e,t,o,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==o)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupService.");let s=new y.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"service")),null!=t&&(s=this.addToHttpParams(s,t,"group")),null!=o&&(s=this.addToHttpParams(s,o,"member")),null!=l&&(s=this.addToHttpParams(s,l,"workWithUserAttributes"));let h,d=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(d=d.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(d=d.set("Authorization","Bearer "+h));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let H="json";return f&&(H=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-g-m`,{context:b,params:s,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}getRequiredAttributesMemberResource(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResource.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResource.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=o&&(i=this.addToHttpParams(i,o,"workWithUserAttributes"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-r`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:s,observe:l,reportProgress:c})}getRequiredAttributesMemberResourceService(e,t,o,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==o)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResourceService.");let s=new y.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"service")),null!=t&&(s=this.addToHttpParams(s,t,"resource")),null!=o&&(s=this.addToHttpParams(s,o,"member")),null!=l&&(s=this.addToHttpParams(s,l,"workWithUserAttributes"));let h,d=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(d=d.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(d=d.set("Authorization","Bearer "+h));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let H="json";return f&&(H=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-m`,{context:b,params:s,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}getRequiredAttributesResource(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResource.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/r`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getRequiredAttributesResourceService(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceService.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"service")),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getRequiredAttributesResourceServices(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesResourceServices.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceServices.");let n=new y.LE({encoder:this.encoder});e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"services[]")}),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-r`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getRequiredAttributesUser(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUser.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getRequiredAttributesUserFacility(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUserFacility.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesUserFacility.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u-f`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getRequiredAttributesVoService(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesVoService.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling getRequiredAttributesVoService.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"service")),null!=t&&(n=this.addToHttpParams(n,t,"vo"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-v`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getResourceAttributeById(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getResourceAttributeById.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-resource`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getResourceAttributeByName(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getResourceAttributeByName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-resource`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getResourceAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributes.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getResourceAttributesByNames(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getResourceAttributesByNames.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrNames[]")});let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-names`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getResourceGroupAndGroupAttributes(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==o)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributes.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"resource")),null!=t&&(i=this.addToHttpParams(i,t,"group")),null!=o&&(i=this.addToHttpParams(i,o,"workWithGroupAttributes"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-wg`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:s,observe:l,reportProgress:c})}getResourceGroupAndGroupAttributesByNames(e,t,o,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==o)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==l)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");let s=new y.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"group")),o&&o.forEach(z=>{s=this.addToHttpParams(s,z,"attrNames[]")}),null!=l&&(s=this.addToHttpParams(s,l,"workWithGroupAttributes"));let h,d=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(d=d.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(d=d.set("Authorization","Bearer "+h));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let H="json";return f&&(H=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-names-wg`,{context:b,params:s,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}getResourceGroupAttributes(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),null!=t&&(n=this.addToHttpParams(n,t,"group"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getResourceGroupMemberAttributesByNames(e,t,o,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==o)throw new Error("Required parameter member was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==l)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupMemberAttributesByNames.");let s=new y.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"group")),null!=o&&(s=this.addToHttpParams(s,o,"member")),l&&l.forEach(z=>{s=this.addToHttpParams(s,z,"attrNames[]")});let h,d=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(d=d.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(d=d.set("Authorization","Bearer "+h));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let H="json";return f&&(H=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-m-names`,{context:b,params:s,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}getUserAttributeById(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getUserAttributeById.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getUserAttributeByName(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getUserAttributeByName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getUserAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributes.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/u`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getUserAttributesByNames(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getUserAttributesByNames.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrNames[]")});let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/u-names`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getUserExtSourceAttributeById(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceAttributeById.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-ues`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getUserExtSourceAttributeByName(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceAttributeByName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-ues`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getUserExtSourceAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributes.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"userExtSource"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/ues`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getUserExtSourceAttributesByNames(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getUserExtSourceAttributesByNames.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrNames[]")});let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/ues-names`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getUserFacilityAttributeById(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeById.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeById.");if(null==o)throw new Error("Required parameter attributeId was null or undefined when calling getUserFacilityAttributeById.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"facility")),null!=o&&(i=this.addToHttpParams(i,o,"attributeId"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user_facility`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:s,observe:l,reportProgress:c})}getUserFacilityAttributeByName(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeByName.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeByName.");if(null==o)throw new Error("Required parameter attributeName was null or undefined when calling getUserFacilityAttributeByName.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"facility")),null!=o&&(i=this.addToHttpParams(i,o,"attributeName"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user_facility`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:s,observe:l,reportProgress:c})}getUserFacilityAttributes(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributes.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/user-facility`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getVoAttributeById(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getVoAttributeById.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-vo`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getVoAttributeByName(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getVoAttributeByName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-vo`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getVoAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributes.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/vo`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getVoAttributesByNames(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getVoAttributesByNames.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrNames[]")});let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/vo-names`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}removeAttributesForFacilityResourceGroupUserMember(e,t,o,l,c,n,i="body",s=!1,d){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==o)throw new Error("Required parameter group was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==l)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==c)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==n)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");let h=new y.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"facility")),null!=t&&(h=this.addToHttpParams(h,t,"resource")),null!=o&&(h=this.addToHttpParams(h,o,"group")),null!=l&&(h=this.addToHttpParams(h,l,"user")),null!=c&&(h=this.addToHttpParams(h,c,"member")),n&&n.forEach(ke=>{h=this.addToHttpParams(h,ke,"attributes[]")});let b,f=this.defaultHeaders;b=this.configuration.lookupCredential("BasicAuth"),b&&(f=f.set("Authorization","Basic "+b)),b=this.configuration.lookupCredential("BearerAuth"),b&&(f=f.set("Authorization","Bearer "+b));let H=d&&d.httpHeaderAccept;void 0===H&&(H=this.configuration.selectHeaderAccept(["application/json"])),void 0!==H&&(f=f.set("Accept",H));let z=d&&d.context;void 0===z&&(z=new y.qT);let ae="json";return H&&(ae=H.startsWith("text")?"text":this.configuration.isJsonMime(H)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-g-u-m`,null,{context:z,params:h,responseType:ae,withCredentials:this.configuration.withCredentials,headers:f,observe:i,reportProgress:s})}removeAttributesForFacilityResourceUserMember(e,t,o,l,c,n="body",i=!1,s){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==o)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==l)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==c)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceUserMember.");let d=new y.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"facility")),null!=t&&(d=this.addToHttpParams(d,t,"resource")),null!=o&&(d=this.addToHttpParams(d,o,"user")),null!=l&&(d=this.addToHttpParams(d,l,"member")),c&&c.forEach(ae=>{d=this.addToHttpParams(d,ae,"attributes[]")});let f,h=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(h=h.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(h=h.set("Authorization","Bearer "+f));let b=s&&s.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let H=s&&s.context;void 0===H&&(H=new y.qT);let z="json";return b&&(z=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-u-m`,null,{context:H,params:d,responseType:z,withCredentials:this.configuration.withCredentials,headers:h,observe:n,reportProgress:i})}removeEntitylessAttribute(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter key was null or undefined when calling removeEntitylessAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeEntitylessAttribute.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"key")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/e`,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}removeFacilityAttribute(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeFacilityAttribute.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/f`,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}removeFacilityAttributes(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeFacilityAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attributes[]")});let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f`,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}removeGroupAttribute(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeGroupAttribute.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g`,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}removeGroupAttributes(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeGroupAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attributes[]")});let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g`,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}removeGroupResourceAttribute(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttribute.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttribute.");if(null==o)throw new Error("Required parameter attribute was null or undefined when calling removeGroupResourceAttribute.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"group")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=o&&(i=this.addToHttpParams(i,o,"attribute"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g-r`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:s,observe:l,reportProgress:c})}removeGroupResourceAttributes(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributes.");if(null==o)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributes.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"group")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),o&&o.forEach(H=>{i=this.addToHttpParams(i,H,"attributes[]")});let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:s,observe:l,reportProgress:c})}removeGroupResourceAttributesWorkWithGroupAttributes(e,t,o,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==o)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==l)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");let s=new y.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"resource")),o&&o.forEach(z=>{s=this.addToHttpParams(s,z,"attributes[]")}),null!=l&&(s=this.addToHttpParams(s,l,"workWithGroupAttributes"));let h,d=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(d=d.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(d=d.set("Authorization","Bearer "+h));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let H="json";return f&&(H=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r-workWithGroupAttributes`,null,{context:b,params:s,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}removeHostAttribute(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling removeHostAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeHostAttribute.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/h`,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}removeHostAttributes(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling removeHostAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeHostAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attributes[]")});let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/h`,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}removeMemberAttribute(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeMemberAttribute.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m`,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}removeMemberAttributes(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attributes[]")});let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m`,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}removeMemberAttributesWorkWithUserAttributes(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==o)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),t&&t.forEach(H=>{i=this.addToHttpParams(i,H,"attributes[]")}),null!=o&&(i=this.addToHttpParams(i,o,"workWithUserAttributes"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-workWithUserAttributes`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:s,observe:l,reportProgress:c})}removeMemberGroupAttribute(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttribute.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttribute.");if(null==o)throw new Error("Required parameter attribute was null or undefined when calling removeMemberGroupAttribute.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),null!=o&&(i=this.addToHttpParams(i,o,"attribute"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-g`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:s,observe:l,reportProgress:c})}removeMemberGroupAttributes(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributes.");if(null==o)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributes.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),o&&o.forEach(H=>{i=this.addToHttpParams(i,H,"attributes[]")});let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:s,observe:l,reportProgress:c})}removeMemberGroupAttributesWorkWithUserAttributes(e,t,o,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==o)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==l)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");let s=new y.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"group")),o&&o.forEach(z=>{s=this.addToHttpParams(s,z,"attributes[]")}),null!=l&&(s=this.addToHttpParams(s,l,"workWithUserAttributes"));let h,d=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(d=d.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(d=d.set("Authorization","Bearer "+h));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let H="json";return f&&(H=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g-workWithUserAttributes`,null,{context:b,params:s,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}removeMemberResourceAttribute(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttribute.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttribute.");if(null==o)throw new Error("Required parameter attribute was null or undefined when calling removeMemberResourceAttribute.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=o&&(i=this.addToHttpParams(i,o,"attribute"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-r`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:s,observe:l,reportProgress:c})}removeMemberResourceAttributes(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttributes.");if(null==o)throw new Error("Required parameter attributes was null or undefined when calling removeMemberResourceAttributes.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),o&&o.forEach(H=>{i=this.addToHttpParams(i,H,"attributes[]")});let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-r`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:s,observe:l,reportProgress:c})}removeResourceAttribute(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeResourceAttribute.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/r`,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}removeResourceAttributes(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeResourceAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attributes[]")});let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/r`,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}removeUesAttributes(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling removeUesAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeUesAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attributes[]")});let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/ues`,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}removeUserAttribute(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeUserAttribute.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u`,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}removeUserAttributes(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeUserAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attributes[]")});let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u`,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}removeUserExtSourceAttribute(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSourceAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeUserExtSourceAttribute.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/ues`,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}removeUserFacilityAttribute(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttribute.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttribute.");if(null==o)throw new Error("Required parameter attribute was null or undefined when calling removeUserFacilityAttribute.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"facility")),null!=o&&(i=this.addToHttpParams(i,o,"attribute"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u-f`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:s,observe:l,reportProgress:c})}removeUserFacilityAttributes(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttributes.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttributes.");if(null==o)throw new Error("Required parameter attributes was null or undefined when calling removeUserFacilityAttributes.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"facility")),o&&o.forEach(H=>{i=this.addToHttpParams(i,H,"attributes[]")});let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u-f`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:s,observe:l,reportProgress:c})}removeVoAttribute(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeVoAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeVoAttribute.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/v`,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}removeVoAttributes(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeVoAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeVoAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attributes[]")});let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/v`,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}setAttributeActionCriticality(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling setAttributeActionCriticality.");if(null==t)throw new Error("Required parameter action was null or undefined when calling setAttributeActionCriticality.");if(null==o)throw new Error("Required parameter critical was null or undefined when calling setAttributeActionCriticality.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"attributeDefinition")),null!=t&&(i=this.addToHttpParams(i,t,"action")),null!=o&&(i=this.addToHttpParams(i,o,"critical"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/setAttributeActionCriticality`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:s,observe:l,reportProgress:c})}setAttributePolicyCollections(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputAttributePolicyCollections was null or undefined when calling setAttributePolicyCollections.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributePolicyCollections`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setAttributeRights(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputAttributeRights was null or undefined when calling setAttributeRights.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributeRights`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setEntitylessAttribute(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputEntitylessAttribute was null or undefined when calling setEntitylessAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/entityless`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setFacilityAttribute(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetFacilityAttribute was null or undefined when calling setFacilityAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/facility`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setFacilityAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetFacilityAttributes was null or undefined when calling setFacilityAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setFacilityResourceGroupUserMemberAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetFacilityResourceGroupUserMemberAttributes was null or undefined when calling setFacilityResourceGroupUserMemberAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-g-u-m`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setFacilityResourceUserMemberAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetFacilityResourceUserMemberAttributes was null or undefined when calling setFacilityResourceUserMemberAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-u-m`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setFacilityUserAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetFacilityUserAttributes was null or undefined when calling setFacilityUserAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-u`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setGroupAttribute(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetGroupAttribute was null or undefined when calling setGroupAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/group`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setGroupAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetGroupAttributes was null or undefined when calling setGroupAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/g`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setGroupResourceAttribute(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetGroupResourceAttribute was null or undefined when calling setGroupResourceAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/group-resource`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setGroupResourceAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetGroupResourceAttributes was null or undefined when calling setGroupResourceAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/group-resource`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setHostAttribute(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetHostAttribute was null or undefined when calling setHostAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/host`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setHostAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetHostAttributes was null or undefined when calling setHostAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/h`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setMemberAttribute(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberAttribute was null or undefined when calling setMemberAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setMemberAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberAttributes was null or undefined when calling setMemberAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setMemberGroupAttribute(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberGroupAttribute was null or undefined when calling setMemberGroupAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member-group`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setMemberGroupAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberGroupAttributes was null or undefined when calling setMemberGroupAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setMemberGroupWithUserAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberGroupWithUserAttributes was null or undefined when calling setMemberGroupWithUserAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g-wu`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setMemberResourceAndUserAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberResourceAndUserAttributes was null or undefined when calling setMemberResourceAndUserAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r-wu`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setMemberResourceAttribute(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberResourceAttribute was null or undefined when calling setMemberResourceAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member-resource`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setMemberResourceAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberResourceAttributes was null or undefined when calling setMemberResourceAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setMemberWithUserAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberWithUserAttributes was null or undefined when calling setMemberWithUserAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-wu`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setResourceAttribute(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetResourceAttribute was null or undefined when calling setResourceAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/resource`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setResourceAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetResourceAttributes was null or undefined when calling setResourceAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setResourceGroupAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetResourceGroupAttributes was null or undefined when calling setResourceGroupAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setResourceGroupWithGroupAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetResourceGroupWithGroupAttributes was null or undefined when calling setResourceGroupWithGroupAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g-wg`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setUserAttribute(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetUserAttribute was null or undefined when calling setUserAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/user`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setUserAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetUserAttributes was null or undefined when calling setUserAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/u`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setUserExtSourceAttribute(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetUserExtSourceAttribute was null or undefined when calling setUserExtSourceAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/userExtSource`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setUserExtSourceAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetUserExtSourceAttributes was null or undefined when calling setUserExtSourceAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/ues`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setUserFacilityAttribute(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetUserFacilityAttribute was null or undefined when calling setUserFacilityAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/facility-user`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setUserFacilityAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetUserFacilityAttributes was null or undefined when calling setUserFacilityAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/facility-user`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setVoAttribute(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetVoAttribute was null or undefined when calling setVoAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/vo`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setVoAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetVoAttributes was null or undefined when calling setVoAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/vo`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}updateAttributeDefinition(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputAttributeDefinition was null or undefined when calling updateAttributeDefinition.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/updateAttributeDefinition`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(y.eN),u.LFG(pt,8),u.LFG(Oe,8))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),at=(()=>{class r{constructor(e,t,o){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new Oe,o&&(this.configuration=o),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new St}addToHttpParams(e,t,o){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,o):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,o){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,o));else if(t instanceof Date){if(null==o)throw Error("key may not be null if value is Date");e=e.append(o,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=o?`${o}.${l}`:l));else{if(null==o)throw Error("key may not be null if value is not object or array");e=e.append(o,t)}return e}getAllPolicies(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllPolicies`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAllRolesManagementRules(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllRolesManagementRules`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAuthzAdminGroups(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter role was null or undefined when calling getAuthzAdminGroups.");if(null==t)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzAdminGroups.");if(null==o)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzAdminGroups.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"role")),null!=t&&(i=this.addToHttpParams(i,t,"complementaryObjectId")),null!=o&&(i=this.addToHttpParams(i,o,"complementaryObjectName"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAdminGroups`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:s,observe:l,reportProgress:c})}getAuthzRichAdmins(e,t,o,l,c,n,i="body",s=!1,d){if(null==e)throw new Error("Required parameter role was null or undefined when calling getAuthzRichAdmins.");if(null==t)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzRichAdmins.");if(null==o)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzRichAdmins.");if(null==l)throw new Error("Required parameter specificAttributes was null or undefined when calling getAuthzRichAdmins.");let h=new y.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"role")),null!=t&&(h=this.addToHttpParams(h,t,"complementaryObjectId")),null!=o&&(h=this.addToHttpParams(h,o,"complementaryObjectName")),l&&l.forEach(ke=>{h=this.addToHttpParams(h,ke,"specificAttributes")}),null!=c&&(h=this.addToHttpParams(h,c,"allUserAttributes")),null!=n&&(h=this.addToHttpParams(h,n,"onlyDirectAdmins"));let b,f=this.defaultHeaders;b=this.configuration.lookupCredential("BasicAuth"),b&&(f=f.set("Authorization","Basic "+b)),b=this.configuration.lookupCredential("BearerAuth"),b&&(f=f.set("Authorization","Bearer "+b));let H=d&&d.httpHeaderAccept;void 0===H&&(H=this.configuration.selectHeaderAccept(["application/json"])),void 0!==H&&(f=f.set("Accept",H));let z=d&&d.context;void 0===z&&(z=new y.qT);let ae="json";return H&&(ae=H.startsWith("text")?"text":this.configuration.isJsonMime(H)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getRichAdmins`,{context:z,params:h,responseType:ae,withCredentials:this.configuration.withCredentials,headers:f,observe:i,reportProgress:s})}getFacilitiesWhereUserIsInRoles(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getFacilitiesWhereUserIsInRoles.");let n=new y.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"roles[]")});let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getFacilitiesWhereUserIsInRoles`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getGroupRoleNames(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupRoleNames`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getGroupRoles(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"groupId"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/getGroupRoles`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getGroupsWhereUserIsInRoles(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getGroupsWhereUserIsInRoles.");let n=new y.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"roles[]")});let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupsWhereUserIsInRoles`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getLoggedUser(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getLoggedUser`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getMembersWhereUserIsInRoles(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getMembersWhereUserIsInRoles.");let n=new y.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"roles[]")});let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getMembersWhereUserIsInRoles`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getPerunPrincipal(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPerunPrincipal`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPrincipalRoleNames(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPrincipalRoleNames`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getResourcesWhereUserIsInRoles(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getResourcesWhereUserIsInRoles.");let n=new y.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"roles[]")});let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getResourcesWhereUserIsInRoles`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getSecurityTeamsWhereUserIsInRoles(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getSecurityTeamsWhereUserIsInRoles.");let n=new y.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"roles[]")});let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getSecurityTeamsWhereUserIsInRoles`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getUserRoleNames(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoleNames`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getUserRoles(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"userId"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoles`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getVosWhereUserIsInRoles(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getVosWhereUserIsInRoles.");let n=new y.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"roles[]")});let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getVosWhereUserIsInRoles`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}isFacilityAdmin(e,t="body",o=!1,l){let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"facility"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isFacilityAdmin`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}isGroupAdmin(e,t="body",o=!1,l){let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isGroupAdmin`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}isPerunAdmin(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/isPerunAdmin`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}isVoAdmin(e,t="body",o=!1,l){let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isVoAdmin`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}keepAlive(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/keepAlive`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}loadAuthorizationComponents(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/loadAuthorizationComponents`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}refreshMfa(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/refreshMfa`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}setRoleForGroup(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter SetRoleForGroup was null or undefined when calling setRoleForGroup.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/g`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setRoleForUser(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter SetRoleForUser was null or undefined when calling setRoleForUser.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/u`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setRoleWithGroupComplementaryObject(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter SetRoleWithGroupComplementaryObject was null or undefined when calling setRoleWithGroupComplementaryObject.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/g-co`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setRoleWithUserComplementaryObject(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter SetRoleWithUserComplementaryObject was null or undefined when calling setRoleWithUserComplementaryObject.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/u-co`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}unsetRoleForGroup(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter UnsetRoleForGroup was null or undefined when calling unsetRoleForGroup.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/g`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}unsetRoleForUser(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter UnsetRoleForUser was null or undefined when calling unsetRoleForUser.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/u`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}unsetRoleWithGroupComplementaryObject(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter UnsetRoleWithGroupComplementaryObject was null or undefined when calling unsetRoleWithGroupComplementaryObject.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/g-co`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}unsetRoleWithUserComplementaryObject(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter UnsetRoleWithUserComplementaryObject was null or undefined when calling unsetRoleWithUserComplementaryObject.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/u-co`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(y.eN),u.LFG(pt,8),u.LFG(Oe,8))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Pt=(()=>{class r{constructor(e,t,o){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new Oe,o&&(this.configuration=o),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new St}addToHttpParams(e,t,o){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,o):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,o){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,o));else if(t instanceof Date){if(null==o)throw Error("key may not be null if value is Date");e=e.append(o,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=o?`${o}.${l}`:l));else{if(null==o)throw Error("key may not be null if value is not object or array");e=e.append(o,t)}return e}sentMessageToRTWithMemberQueue(e,t,o,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter memberId was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==o)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==l)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithMemberQueue.");let s=new y.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"memberId")),null!=t&&(s=this.addToHttpParams(s,t,"queue")),null!=o&&(s=this.addToHttpParams(s,o,"subject")),null!=l&&(s=this.addToHttpParams(s,l,"text"));let h,d=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(d=d.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(d=d.set("Authorization","Bearer "+h));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let H="json";return f&&(H=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/m-q`,null,{context:b,params:s,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}sentMessageToRTWithQueue(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithQueue.");if(null==t)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithQueue.");if(null==o)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithQueue.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"queue")),null!=t&&(i=this.addToHttpParams(i,t,"subject")),null!=o&&(i=this.addToHttpParams(i,o,"text"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/q`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:s,observe:l,reportProgress:c})}sentMessageToRTWithVo(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVo.");if(null==t)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVo.");if(null==o)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVo.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"voId")),null!=t&&(i=this.addToHttpParams(i,t,"subject")),null!=o&&(i=this.addToHttpParams(i,o,"text"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:s,observe:l,reportProgress:c})}sentMessageToRTWithVoQueue(e,t,o,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==o)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==l)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVoQueue.");let s=new y.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"voId")),null!=t&&(s=this.addToHttpParams(s,t,"queue")),null!=o&&(s=this.addToHttpParams(s,o,"subject")),null!=l&&(s=this.addToHttpParams(s,l,"text"));let h,d=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(d=d.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(d=d.set("Authorization","Bearer "+h));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let H="json";return f&&(H=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v-q`,null,{context:b,params:s,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(y.eN),u.LFG(pt,8),u.LFG(Oe,8))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),xr=(()=>{class r{constructor(e,t,o){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new Oe,o&&(this.configuration=o),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new St}addToHttpParams(e,t,o){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,o):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,o){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,o));else if(t instanceof Date){if(null==o)throw Error("key may not be null if value is Date");e=e.append(o,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=o?`${o}.${l}`:l));else{if(null==o)throw Error("key may not be null if value is not object or array");e=e.append(o,t)}return e}addSpecificUserOwner(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling addSpecificUserOwner.");if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling addSpecificUserOwner.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"specificUser"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/addSpecificUserOwner`,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}addUserExtSource(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter AddUserExtSourceInput was null or undefined when calling addUserExtSource.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/addUserExtSource`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}anonymizeUser(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling anonymizeUser.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"force"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/anonymizeUser`,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}changeNonAuthzPasswordByToken(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputChangeNonAuthzPasswordByToken was null or undefined when calling changeNonAuthzPasswordByToken.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/changeNonAuthzPassword/token`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}changePasswordForLogin(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputChangePasswordForLogin was null or undefined when calling changePasswordForLogin.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/changePassword/login`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}changePasswordForUser(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputChangePasswordForUser was null or undefined when calling changePasswordForUser.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/changePassword/user`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}checkPasswordResetRequestByTokenIsValid(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter token was null or undefined when calling checkPasswordResetRequestByTokenIsValid.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"token"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/checkPasswordResetRequestIsValid/token`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}checkPasswordStrength(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputCheckPasswordStrength was null or undefined when calling checkPasswordStrength.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/checkPasswordStrength`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}createAlternativePassword(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputCreateAlternativePassword was null or undefined when calling createAlternativePassword.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/createAlternativePassword`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}createServiceUser(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputCreateServiceUser was null or undefined when calling createServiceUser.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/createServiceUser`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}deleteAlternativePassword(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling deleteAlternativePassword.");if(null==t)throw new Error("Required parameter loginNamespace was null or undefined when calling deleteAlternativePassword.");if(null==o)throw new Error("Required parameter passwordId was null or undefined when calling deleteAlternativePassword.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"loginNamespace")),null!=o&&(i=this.addToHttpParams(i,o,"passwordId"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteAlternativePassword`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:s,observe:l,reportProgress:c})}deletePasswordForLogin(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter login was null or undefined when calling deletePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForLogin.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"login")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/login`,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}deletePasswordForUser(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling deletePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForUser.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/user`,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}deleteUser(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling deleteUser.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"force"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteUser`,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}findRichUsers(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findRichUsers.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"searchString"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsers`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}findRichUsersWithAttributes(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findRichUsersWithAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"searchString")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrsNames[]")});let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsersWithAttributes`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}findUsers(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findUsers.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"searchString"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findUsers`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}generateAccountForName(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter namespace was null or undefined when calling generateAccountForName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"namespace")),null!=t&&(n=this.addToHttpParams(n,t,"name"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/generateAccount/name`,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getAllRichUsersWithAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter includedSpecificUsers was null or undefined when calling getAllRichUsersWithAttributes.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"includedSpecificUsers"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAllRichUsersWithAttributes`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getAssignedRichResourcesForUser(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getAssignedRichResourcesForUser.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAssignedRichResources`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getGroupsForFacilityWhereUserIsActive(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/facility`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getGroupsForResourceWhereUserIsActive(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsForResourceWhereUserIsActive.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupsForResourceWhereUserIsActive.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/resource`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getGroupsInVoWhereUserIsAdmin(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"vo"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u-v`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getGroupsWhereUserIsAdmin(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsWhereUserIsAdmin.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getPendingPreferredEmailChanges(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getPendingPreferredEmailChanges.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getPendingPreferredEmailChanges`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getRichUserExtSources(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserExtSources.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserExtSources/u`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getRichUserWithAttributes(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserWithAttributes.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserWithAttributes`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getRichUsersByIds(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersByIds.");let c=new y.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"ids[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersByIds`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getRichUsersWithAttributesByIds(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersWithAttributesByIds.");let c=new y.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"ids[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithAttributesByIds`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getRichUsersWithoutVoWithAttributes(e,t="body",o=!1,l){let c=new y.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"attrsNames[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithoutVoWithAttributes`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getSpecificUsersByUser(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getSpecificUsersByUser.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSpecificUsersByUser`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getSponsorsForMember(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getSponsorsForMember.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrNames[]")});let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/member`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getSponsorsForMemberByVoAndLogin(e,t,o,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==t)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==o)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsForMemberByVoAndLogin.");let s=new y.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"extSourceName")),null!=o&&(s=this.addToHttpParams(s,o,"extLogin")),l&&l.forEach(z=>{s=this.addToHttpParams(s,z,"attrNames[]")});let h,d=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(d=d.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(d=d.set("Authorization","Bearer "+h));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let H="json";return f&&(H=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/vo`,{context:b,params:s,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}getUserByExtSourceNameAndExtLogin(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter extLogin was null or undefined when calling getUserByExtSourceNameAndExtLogin.");if(null==t)throw new Error("Required parameter extSourceName was null or undefined when calling getUserByExtSourceNameAndExtLogin.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"extLogin")),null!=t&&(n=this.addToHttpParams(n,t,"extSourceName"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserByExtSourceNameAndExtLogin`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getUserById(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getUserById.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserById`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getUserExtSourceByExtLoginAndExtSourceName(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");if(null==t)throw new Error("Required parameter extSourceLogin was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"extSourceName")),null!=t&&(n=this.addToHttpParams(n,t,"extSourceLogin"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByExtLoginAndExtSourceName`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getUserExtSourceById(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceById.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"userExtSource"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceById`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getUserExtSourceByUniqueAttributeValueAndAttributeId(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");if(null==t)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"attributeId")),null!=t&&(n=this.addToHttpParams(n,t,"attributeValue"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/id`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getUserExtSourceByUniqueAttributeValueAndAttributeName(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");if(null==t)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"attributeName")),null!=t&&(n=this.addToHttpParams(n,t,"attributeValue"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/name`,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getUserExtSources(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserExtSources.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSources`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getUserExtSourcesByIds(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUserExtSourcesByIds.");let c=new y.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"ids[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourcesByIds`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getUsers(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsers`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getUsersByIds(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUsersByIds.");let c=new y.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"ids[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersByIds`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getUsersBySpecificUser(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter specificUser was null or undefined when calling getUsersBySpecificUser.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"specificUser"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersBySpecificUser`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getUsersPage(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputGetPaginatedUsers was null or undefined when calling getUsersPage.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/getUsersPage`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}getVosWhereUserIsAdmin(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsAdmin.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsAdmin`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getVosWhereUserIsMember(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsMember.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsMember`,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}isLoginAvailable(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter loginNamespace was null or undefined when calling isLoginAvailable.");if(null==t)throw new Error("Required parameter login was null or undefined when calling isLoginAvailable.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"loginNamespace")),null!=t&&(n=this.addToHttpParams(n,t,"login"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/isLoginAvailable`,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}loginExist(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling loginExist.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling loginExist.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/loginExist`,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}removeSpecificUserOwner(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeSpecificUserOwner.");if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling removeSpecificUserOwner.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"specificUser"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeSpecificUserOwner`,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}removeUserExtSource(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserExtSource.");if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSource.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"userExtSource")),null!=o&&(i=this.addToHttpParams(i,o,"force"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeUserExtSource`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:s,observe:l,reportProgress:c})}requestPreferredEmailChange(e,t,o,l,c,n,i="body",s=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling requestPreferredEmailChange.");if(null==t)throw new Error("Required parameter email was null or undefined when calling requestPreferredEmailChange.");let h=new y.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"user")),null!=t&&(h=this.addToHttpParams(h,t,"email")),null!=o&&(h=this.addToHttpParams(h,o,"lang")),null!=l&&(h=this.addToHttpParams(h,l,"linkPath")),null!=c&&(h=this.addToHttpParams(h,c,"customUrl")),null!=n&&(h=this.addToHttpParams(h,n,"idpFilter"));let b,f=this.defaultHeaders;b=this.configuration.lookupCredential("BasicAuth"),b&&(f=f.set("Authorization","Basic "+b)),b=this.configuration.lookupCredential("BearerAuth"),b&&(f=f.set("Authorization","Bearer "+b));let H=d&&d.httpHeaderAccept;void 0===H&&(H=this.configuration.selectHeaderAccept(["application/json"])),void 0!==H&&(f=f.set("Accept",H));let z=d&&d.context;void 0===z&&(z=new y.qT);let ae="json";return H&&(ae=H.startsWith("text")?"text":this.configuration.isJsonMime(H)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/requestPreferredEmailChange`,null,{context:z,params:h,responseType:ae,withCredentials:this.configuration.withCredentials,headers:f,observe:i,reportProgress:s})}reservePasswordForLogin(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputReservePasswordForLogin was null or undefined when calling reservePasswordForLogin.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/reservePassword/login`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}reservePasswordForUser(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputReservePasswordForUser was null or undefined when calling reservePasswordForUser.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/reservePassword/user`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}reserveRandomPassword(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling reserveRandomPassword.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling reserveRandomPassword.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reserveRandomPassword`,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}setLogin(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling setLogin.");if(null==t)throw new Error("Required parameter login was null or undefined when calling setLogin.");if(null==o)throw new Error("Required parameter namespace was null or undefined when calling setLogin.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"login")),null!=o&&(i=this.addToHttpParams(i,o,"namespace"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/setLogin`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:s,observe:l,reportProgress:c})}updateUser(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputUpdateUser was null or undefined when calling updateUser.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/updateUser`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}updateUserExtSourceLastAccess(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling updateUserExtSourceLastAccess.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"userExtSource"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let h="json";return s&&(h=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/updateUserExtSourceLastAccess`,null,{context:d,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}validatePasswordForLogin(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter login was null or undefined when calling validatePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForLogin.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"login")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/login`,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}validatePasswordForUser(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling validatePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForUser.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/user`,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}validatePreferredEmailChangeWithToken(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter token was null or undefined when calling validatePreferredEmailChangeWithToken.");if(null==t)throw new Error("Required parameter u was null or undefined when calling validatePreferredEmailChangeWithToken.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"token")),null!=t&&(n=this.addToHttpParams(n,t,"u"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let h=c&&c.context;void 0===h&&(h=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePreferredEmailChange`,null,{context:h,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(y.eN),u.LFG(pt,8),u.LFG(Oe,8))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),un=(()=>{class r{constructor(e,t,o){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new Oe,o&&(this.configuration=o),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new St}addToHttpParams(e,t,o){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,o):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,o){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,o));else if(t instanceof Date){if(null==o)throw Error("key may not be null if value is Date");e=e.append(o,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=o?`${o}.${l}`:l));else{if(null==o)throw Error("key may not be null if value is not object or array");e=e.append(o,t)}return e}getAppsConfig(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getAppsConfig`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getGuiConfiguration(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getGuiConfiguration`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getNewGuiAlert(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getNewGuiAlert`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunRPCVersion(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["text/plain"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunStatistics(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatistics`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunStatus(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatus`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunSystemTimeInMillis(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunSystemTimeInMillis`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(y.eN),u.LFG(pt,8),u.LFG(Oe,8))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),fc=(()=>{class r{constructor(e,t){if(e)throw new Error("ApiModule is already loaded. Import in your base AppModule only.");if(!t)throw new Error("You need to import the HttpClientModule in your AppModule! \nSee also https://github.com/angular/angular/issues/20575")}static forRoot(e){return{ngModule:r,providers:[{provide:Oe,useFactory:e}]}}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(r,12),u.LFG(y.eN,8))},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({}),r})();var ut=(()=>{return(r=ut||(ut={})).PERUNADMIN="PERUNADMIN",r.PERUNOBSERVER="PERUNOBSERVER",r.VOADMIN="VOADMIN",r.GROUPADMIN="GROUPADMIN",r.GROUPOBSERVER="GROUPOBSERVER",r.GROUPMEMBERSHIPMANAGER="GROUPMEMBERSHIPMANAGER",r.SELF="SELF",r.FACILITYADMIN="FACILITYADMIN",r.FACILITIYOBSERVER="FACILITYOBSERVER",r.RESOURCEADMIN="RESOURCEADMIN",r.RESOURCESELFSERVICE="RESOURCESELFSERVICE",r.REGISTRAR="REGISTRAR",r.ENGINE="ENGINE",r.RPC="RPC",r.NOTIFICATIONS="NOTIFICATIONS",r.SERVICEUSER="SERVICEUSER",r.SPONSOR="SPONSOR",r.VOOBSERVER="VOOBSERVER",r.TOPGROUPCREATOR="TOPGROUPCREATOR",r.SECURITYADMIN="SECURITYADMIN",r.CABINETADMIN="CABINETADMIN",r.UNKNOWNROLENAME="UNKNOWNROLENAME",r.AUDITCONSUMERADMIN="AUDITCONSUMERADMIN",r.UNKNOWN="UNKNOWN",r.MEMBERSHIP="MEMBERSHIP",ut;var r})();let Ef=(()=>{class r{constructor(e){this.authzSevice=e,this.principalRoles=new Set,this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[],this.sortRoles=(t,o)=>t.roleName>o.roleName?1:t.roleName{this.authzSevice.getAllRolesManagementRules().subscribe(o=>{this.allRolesManagementRules=o,e()},o=>t(o))})}assignAvailableRoles(e,t){this.allRolesManagementRules.forEach(o=>{o.primaryObject===t&&e.push(o)}),e.sort(this.sortRoles),"Vo"===t&&this.voCustomSort(e)}isManagerPagePrivileged(e){const t=[];let o=e.beanName;o.startsWith("Rich")&&(o=o.substring(4)),this.assignAvailableRoles(t,o);const l=new Map;this.setRolesAuthorization(t,e,l);for(const c of l.values())if(c.readAuth||c.manageAuth)return!0;return!1}setRolesAuthorization(e,t,o){for(const l of e){let c=[],n=[],i=[];for(const b of this.allRolesManagementRules)if(b.roleName===l.roleName){c=c.concat(b.privilegedRolesToRead),n=n.concat(b.privilegedRolesToManage);for(const H of Object.keys(b.entitiesToManage))i="User"===H?[H].concat(i):i.concat(H);break}const s=this.fetchAllRelatedObjects([t]),d=this.resolveAuthorization(c,s),h=this.resolveAuthorization(n,s);o.set(l.roleName,{readAuth:d,manageAuth:h,modes:i})}}initializeVariables(){this.principalRoles.clear(),this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}getPrimaryObjectOfRole(e){for(const t of this.allRolesManagementRules)if(t.roleName===e)return t.primaryObject;return""}getAllRules(){return this.allRolesManagementRules.sort(this.sortRoles)}getRuleForRole(e){return this.allRolesManagementRules.find(t=>t.roleName===e)}getAssignableRoleRules(e){const t=[],o=["UNKNOWN","RPC","NOTIFICATIONS","ENGINE","MFA","REGISTRAR","AUDITCONSUMERADMIN","SPONSORSHIP","MEMBERSHIP","SERVICEUSER","SELF","SECURITYADMIN"];return this.allRolesManagementRules.forEach(l=>{!o.includes(l.roleName)&&this.canManage(l)&&this.ruleHasMode(l,e)&&t.push(l)}),t.sort(this.sortRoles)}ruleHasMode(e,t){return Object.keys(e.entitiesToManage).map(o=>o.toUpperCase()).includes(t)}canManage(e){return e.privilegedRolesToManage.some(t=>this.principalRoles.has(Object.keys(t)[0]))}resolveAuthorization(e,t){for(const o of e){let l=!0;for(const c of Object.keys(o)){const n=o[c];if(null===n)this.principalRoles.has(c)||(l=!1);else if(t[n]){for(const i of t[n])if(!this.principalHasRole(c,n,i)){l=!1;break}}else l=!1;if(!l)break}if(l)return!0}return!1}getPerunPolicy(e){for(const t of this.perunPolicies)if(t.policyName===e)return t;return null}fetchAllRelatedObjects(e){const t={};for(const o of e){let l=o.beanName;switch(o.beanName.startsWith("Rich")&&(l=o.beanName.substring(4)),t[l]?t[l].push(o.id):t[l]=[o.id],l){case"Member":t.User?t.User.push(o.userId):t.User=[o.userId],t.Vo?t.Vo.push(o.voId):t.Vo=[o.voId];break;case"Group":case"ResourceTag":t.Vo?t.Vo.push(o.voId):t.Vo=[o.voId];break;case"Resource":t.Facility?t.Facility.push(o.facilityId):t.Facility=[o.facilityId],t.Vo?t.Vo.push(o.voId):t.Vo=[o.voId]}}return t}fetchPolicyWithAllIncludedPolicies(e){const t=new Map;let o=[];for(o.push(e);0!==o.length;){const c=o.shift();if(t.has(c))continue;const n=this.getPerunPolicy(c);if(!n)return[];t.set(c,n),o=o.concat(n.includePolicies)}const l=[];for(const c of t.values())l.push(c);return l}voCustomSort(e){for(let t=0;t{(0,Jn.Xf)(r()).subscribe(a)})}var gc=x(9635),pn=x(2843),ti=x(515),Lt=x(727),tn=x(4482),ji=x(5403);function Ls(){return(0,tn.e)((r,a)=>{let e=null;r._refCount++;const t=(0,ji.x)(a,void 0,void 0,void 0,()=>{if(!r||r._refCount<=0||0<--r._refCount)return void(e=null);const o=r._connection,l=e;e=null,o&&(!l||o===l)&&o.unsubscribe(),a.unsubscribe()});r.subscribe(t),t.closed||(e=r.connect())})}class Sf extends bi.y{constructor(a,e){super(),this.source=a,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,(0,tn.A)(a)&&(this.lift=a.lift)}_subscribe(a){return this.getSubject().subscribe(a)}getSubject(){const a=this._subject;return(!a||a.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:a}=this;this._subject=this._connection=null,a?.unsubscribe()}connect(){let a=this._connection;if(!a){a=this._connection=new Lt.w0;const e=this.getSubject();a.add(this.source.subscribe((0,ji.x)(e,void 0,()=>{this._teardown(),e.complete()},t=>{this._teardown(),e.error(t)},()=>this._teardown()))),a.closed&&(this._connection=null,a=Lt.w0.EMPTY)}return a}refCount(){return Ls()(this)}}var ze=x(4004),Ci=x(3900),Gt=x(5698),za=x(3269);function It(...r){const a=(0,za.yG)(r);return(0,tn.e)((e,t)=>{(a?(0,Kr.z)(r,e,a):(0,Kr.z)(r,e)).subscribe(t)})}var yi=x(5577),fn=x(590),$i=x(4351),bt=x(8505),M=x(262);function k(r,a,e,t,o){return(l,c)=>{let n=e,i=a,s=0;l.subscribe((0,ji.x)(c,d=>{const h=s++;i=n?r(i,d,h):(n=!0,d),t&&c.next(i)},o&&(()=>{n&&c.next(i),c.complete()})))}}function D(r,a){return(0,tn.e)(k(r,a,arguments.length>=2,!0))}function B(r){return r<=0?()=>ti.E:(0,tn.e)((a,e)=>{let t=[];a.subscribe((0,ji.x)(e,o=>{t.push(o),r{for(const o of t)e.next(o);e.complete()},void 0,()=>{t=null}))})}var ee=x(8068),pe=x(6590),le=x(4671);function Ue(r,a){const e=arguments.length>=2;return t=>t.pipe(r?(0,ei.h)((o,l)=>r(o,l,t)):le.y,B(1),e?(0,pe.d)(a):(0,ee.T)(()=>new Lo.K))}var Bt=x(9718);function Mt(r){return(0,tn.e)((a,e)=>{try{a.subscribe(e)}finally{e.add(r)}})}var mt=x(8189);const We="primary";class jt{constructor(a){this.params=a||{}}has(a){return Object.prototype.hasOwnProperty.call(this.params,a)}get(a){if(this.has(a)){const e=this.params[a];return Array.isArray(e)?e[0]:e}return null}getAll(a){if(this.has(a)){const e=this.params[a];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Qt(r){return new jt(r)}function be(r,a,e){const t=e.path.split("/");if(t.length>r.length||"full"===e.pathMatch&&(a.hasChildren()||t.lengtht[l]===o)}return r===a}function qt(r){return Array.prototype.concat.apply([],r)}function Ua(r){return r.length>0?r[r.length-1]:null}function Ot(r,a){for(const e in r)r.hasOwnProperty(e)&&a(r[e],e)}function Sn(r){return(0,u.CqO)(r)?r:(0,u.QGY)(r)?(0,Ti.D)(Promise.resolve(r)):(0,Me.of)(r)}const $C={exact:function Zn(r,a,e){if(!Er(r.segments,a.segments)||!mc(r.segments,a.segments,e)||r.numberOfChildren!==a.numberOfChildren)return!1;for(const t in a.children)if(!r.children[t]||!Zn(r.children[t],a.children[t],e))return!1;return!0},subset:qa},QC={exact:function Ni(r,a){return ki(r,a)},subset:function Mf(r,a){return Object.keys(a).length<=Object.keys(r).length&&Object.keys(a).every(e=>Kn(r[e],a[e]))},ignored:()=>!0};function js(r,a,e){return $C[e.paths](r.root,a.root,e.matrixParams)&&QC[e.queryParams](r.queryParams,a.queryParams)&&!("exact"===e.fragment&&r.fragment!==a.fragment)}function qa(r,a,e){return Xn(r,a,a.segments,e)}function Xn(r,a,e,t){if(r.segments.length>e.length){const o=r.segments.slice(0,e.length);return!(!Er(o,e)||a.hasChildren()||!mc(o,e,t))}if(r.segments.length===e.length){if(!Er(r.segments,e)||!mc(r.segments,e,t))return!1;for(const o in a.children)if(!r.children[o]||!qa(r.children[o],a.children[o],t))return!1;return!0}{const o=e.slice(0,r.segments.length),l=e.slice(r.segments.length);return!!(Er(r.segments,o)&&mc(r.segments,o,t)&&r.children[We])&&Xn(r.children[We],a,l,t)}}function mc(r,a,e){return a.every((t,o)=>QC[e](r[o].parameters,t.parameters))}class Zr{constructor(a,e,t){this.root=a,this.queryParams=e,this.fragment=t}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Qt(this.queryParams)),this._queryParamMap}toString(){return Hf.serialize(this)}}class gt{constructor(a,e){this.segments=a,this.children=e,this.parent=null,Ot(e,(t,o)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Fo(this)}}class Ns{constructor(a,e){this.path=a,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Qt(this.parameters)),this._parameterMap}toString(){return Vi(this)}}function Er(r,a){return r.length===a.length&&r.every((e,t)=>e.path===a[t].path)}let _c=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=u.Yz7({token:r,factory:function(){return new Cu},providedIn:"root"}),r})();class Cu{parse(a){const e=new yc(a);return new Zr(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(a){const e=`/${jo(a.root,!0)}`,t=function Yt(r){const a=Object.keys(r).map(e=>{const t=r[e];return Array.isArray(t)?t.map(o=>`${zs(e)}=${zs(o)}`).join("&"):`${zs(e)}=${zs(t)}`}).filter(e=>!!e);return a.length?`?${a.join("&")}`:""}(a.queryParams);return`${e}${t}${"string"==typeof a.fragment?`#${function Pf(r){return encodeURI(r)}(a.fragment)}`:""}`}}const Hf=new Cu;function Fo(r){return r.segments.map(a=>Vi(a)).join("/")}function jo(r,a){if(!r.hasChildren())return Fo(r);if(a){const e=r.children[We]?jo(r.children[We],!1):"",t=[];return Ot(r.children,(o,l)=>{l!==We&&t.push(`${l}:${jo(o,!1)}`)}),t.length>0?`${e}(${t.join("//")})`:e}{const e=function Df(r,a){let e=[];return Ot(r.children,(t,o)=>{o===We&&(e=e.concat(a(t,o)))}),Ot(r.children,(t,o)=>{o!==We&&(e=e.concat(a(t,o)))}),e}(r,(t,o)=>o===We?[jo(r.children[We],!1)]:[`${o}:${jo(t,!1)}`]);return 1===Object.keys(r.children).length&&null!=r.children[We]?`${Fo(r)}/${e[0]}`:`${Fo(r)}/(${e.join("//")})`}}function yu(r){return encodeURIComponent(r).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function zs(r){return yu(r).replace(/%3B/gi,";")}function Us(r){return yu(r).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function bc(r){return decodeURIComponent(r)}function Rf(r){return bc(r.replace(/\+/g,"%20"))}function Vi(r){return`${Us(r.path)}${function Xr(r){return Object.keys(r).map(a=>`;${Us(a)}=${Us(r[a])}`).join("")}(r.parameters)}`}const If=/^[^\/()?;=#]+/;function Cc(r){const a=r.match(If);return a?a[0]:""}const kf=/^[^=?&#]+/,JC=/^[^&#]+/;class yc{constructor(a){this.url=a,this.remaining=a}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new gt([],{}):new gt([],this.parseChildren())}parseQueryParams(){const a={};if(this.consumeOptional("?"))do{this.parseQueryParam(a)}while(this.consumeOptional("&"));return a}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const a=[];for(this.peekStartsWith("(")||a.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),a.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let t={};return this.peekStartsWith("(")&&(t=this.parseParens(!1)),(a.length>0||Object.keys(e).length>0)&&(t[We]=new gt(a,e)),t}parseSegment(){const a=Cc(this.remaining);if(""===a&&this.peekStartsWith(";"))throw new u.vHH(4009,!1);return this.capture(a),new Ns(bc(a),this.parseMatrixParams())}parseMatrixParams(){const a={};for(;this.consumeOptional(";");)this.parseParam(a);return a}parseParam(a){const e=Cc(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const o=Cc(this.remaining);o&&(t=o,this.capture(t))}a[bc(e)]=bc(t)}parseQueryParam(a){const e=function YC(r){const a=r.match(kf);return a?a[0]:""}(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const c=function KC(r){const a=r.match(JC);return a?a[0]:""}(this.remaining);c&&(t=c,this.capture(t))}const o=Rf(e),l=Rf(t);if(a.hasOwnProperty(o)){let c=a[o];Array.isArray(c)||(c=[c],a[o]=c),c.push(l)}else a[o]=l}parseParens(a){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const t=Cc(this.remaining),o=this.remaining[t.length];if("/"!==o&&")"!==o&&";"!==o)throw new u.vHH(4010,!1);let l;t.indexOf(":")>-1?(l=t.slice(0,t.indexOf(":")),this.capture(l),this.capture(":")):a&&(l=We);const c=this.parseChildren();e[l]=1===Object.keys(c).length?c[We]:new gt([],c),this.consumeOptional("//")}return e}peekStartsWith(a){return this.remaining.startsWith(a)}consumeOptional(a){return!!this.peekStartsWith(a)&&(this.remaining=this.remaining.substring(a.length),!0)}capture(a){if(!this.consumeOptional(a))throw new u.vHH(4011,!1)}}function No(r){return r.segments.length>0?new gt([],{[We]:r}):r}function Wa(r){const a={};for(const t of Object.keys(r.children)){const l=Wa(r.children[t]);(l.segments.length>0||l.hasChildren())&&(a[t]=l)}return function wu(r){if(1===r.numberOfChildren&&r.children[We]){const a=r.children[We];return new gt(r.segments.concat(a.segments),a.children)}return r}(new gt(r.segments,a))}function ea(r){return r instanceof Zr}function XC(r,a,e,t,o){if(0===e.length)return zo(a.root,a.root,a.root,t,o);const l=function ty(r){if("string"==typeof r[0]&&1===r.length&&"/"===r[0])return new ey(!0,0,r);let a=0,e=!1;const t=r.reduce((o,l,c)=>{if("object"==typeof l&&null!=l){if(l.outlets){const n={};return Ot(l.outlets,(i,s)=>{n[s]="string"==typeof i?i.split("/"):i}),[...o,{outlets:n}]}if(l.segmentPath)return[...o,l.segmentPath]}return"string"!=typeof l?[...o,l]:0===c?(l.split("/").forEach((n,i)=>{0==i&&"."===n||(0==i&&""===n?e=!0:".."===n?a++:""!=n&&o.push(n))}),o):[...o,l]},[]);return new ey(e,a,t)}(e);return l.toRoot()?zo(a.root,a.root,new gt([],{}),t,o):function c(i){const s=function Of(r,a,e,t){if(r.isAbsolute)return new Mr(a.root,!0,0);if(-1===t)return new Mr(e,e===a.root,0);return function qs(r,a,e){let t=r,o=a,l=e;for(;l>o;){if(l-=o,t=t.parent,!t)throw new u.vHH(4005,!1);o=t.segments.length}return new Mr(t,!1,o-l)}(e,t+(Sr(r.commands[0])?0:1),r.numberOfDoubleDots)}(l,a,r.snapshot?._urlSegment,i),d=s.processChildren?er(s.segmentGroup,s.index,l.commands):wc(s.segmentGroup,s.index,l.commands);return zo(a.root,s.segmentGroup,d,t,o)}(r.snapshot?._lastPathIndex)}function Sr(r){return"object"==typeof r&&null!=r&&!r.outlets&&!r.segmentPath}function Qa(r){return"object"==typeof r&&null!=r&&r.outlets}function zo(r,a,e,t,o){let c,l={};t&&Ot(t,(i,s)=>{l[s]=Array.isArray(i)?i.map(d=>`${d}`):`${i}`}),c=r===a?e:Vf(r,a,e);const n=No(Wa(c));return new Zr(n,l,o)}function Vf(r,a,e){const t={};return Ot(r.children,(o,l)=>{t[l]=o===a?e:Vf(o,a,e)}),new gt(r.segments,t)}class ey{constructor(a,e,t){if(this.isAbsolute=a,this.numberOfDoubleDots=e,this.commands=t,a&&t.length>0&&Sr(t[0]))throw new u.vHH(4003,!1);const o=t.find(Qa);if(o&&o!==Ua(t))throw new u.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Mr{constructor(a,e,t){this.segmentGroup=a,this.processChildren=e,this.index=t}}function wc(r,a,e){if(r||(r=new gt([],{})),0===r.segments.length&&r.hasChildren())return er(r,a,e);const t=function iy(r,a,e){let t=0,o=a;const l={match:!1,pathIndex:0,commandIndex:0};for(;o=e.length)return l;const c=r.segments[o],n=e[t];if(Qa(n))break;const i=`${n}`,s=t0&&void 0===i)break;if(i&&s&&"object"==typeof s&&void 0===s.outlets){if(!ny(i,s,c))return l;t+=2}else{if(!ny(i,{},c))return l;t++}o++}return{match:!0,pathIndex:o,commandIndex:t}}(r,a,e),o=e.slice(t.commandIndex);if(t.match&&t.pathIndex{"string"==typeof l&&(l=[l]),null!==l&&(o[c]=wc(r.children[c],a,l))}),Ot(r.children,(l,c)=>{void 0===t[c]&&(o[c]=l)}),new gt(r.segments,o)}}function ta(r,a,e){const t=r.segments.slice(0,a);let o=0;for(;o{"string"==typeof e&&(e=[e]),null!==e&&(a[t]=ta(new gt([],{}),0,e))}),a}function Ws(r){const a={};return Ot(r,(e,t)=>a[t]=`${e}`),a}function ny(r,a,e){return r==e.path&&ki(a,e.parameters)}class tr{constructor(a,e){this.id=a,this.url=e}}class vc extends tr{constructor(a,e,t="imperative",o=null){super(a,e),this.type=0,this.navigationTrigger=t,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class ia extends tr{constructor(a,e,t){super(a,e),this.urlAfterRedirects=t,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class nn extends tr{constructor(a,e,t,o){super(a,e),this.reason=t,this.code=o,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Ff extends tr{constructor(a,e,t,o){super(a,e),this.error=t,this.target=o,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class $s extends tr{constructor(a,e,t,o){super(a,e),this.urlAfterRedirects=t,this.state=o,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class xu extends tr{constructor(a,e,t,o){super(a,e),this.urlAfterRedirects=t,this.state=o,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Tu extends tr{constructor(a,e,t,o,l){super(a,e),this.urlAfterRedirects=t,this.state=o,this.shouldActivate=l,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Ac extends tr{constructor(a,e,t,o){super(a,e),this.urlAfterRedirects=t,this.state=o,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class xc extends tr{constructor(a,e,t,o){super(a,e),this.urlAfterRedirects=t,this.state=o,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ry{constructor(a){this.route=a,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class jf{constructor(a){this.route=a,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Nf{constructor(a){this.snapshot=a,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class zf{constructor(a){this.snapshot=a,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Uf{constructor(a){this.snapshot=a,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ay{constructor(a){this.snapshot=a,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Qs{constructor(a,e,t){this.routerEvent=a,this.position=e,this.anchor=t,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Gf{constructor(a){this._root=a}get root(){return this._root.value}parent(a){const e=this.pathFromRoot(a);return e.length>1?e[e.length-2]:null}children(a){const e=Tc(a,this._root);return e?e.children.map(t=>t.value):[]}firstChild(a){const e=Tc(a,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(a){const e=Ec(a,this._root);return e.length<2?[]:e[e.length-2].children.map(o=>o.value).filter(o=>o!==a)}pathFromRoot(a){return Ec(a,this._root).map(e=>e.value)}}function Tc(r,a){if(r===a.value)return a;for(const e of a.children){const t=Tc(r,e);if(t)return t}return null}function Ec(r,a){if(r===a.value)return[a];for(const e of a.children){const t=Ec(r,e);if(t.length)return t.unshift(a),t}return[]}class Qi{constructor(a,e){this.value=a,this.children=e}toString(){return`TreeNode(${this.value})`}}function Uo(r){const a={};return r&&r.children.forEach(e=>a[e.value.outlet]=e),a}class Eu extends Gf{constructor(a,e){super(a),this.snapshot=e,Dc(this,a)}toString(){return this.snapshot.toString()}}function Sc(r,a){const e=function oy(r,a){const c=new Dr([],{},{},"",{},We,a,null,r.root,-1,{});return new Ya("",new Qi(c,[]))}(r,a),t=new di([new Ns("",{})]),o=new di({}),l=new di({}),c=new di({}),n=new di(""),i=new ir(t,o,c,n,l,We,a,e.root);return i.snapshot=e.root,new Eu(new Qi(i,[]),e)}class ir{constructor(a,e,t,o,l,c,n,i){this.url=a,this.params=e,this.queryParams=t,this.fragment=o,this.data=l,this.outlet=c,this.component=n,this._futureSnapshot=i}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,ze.U)(a=>Qt(a)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,ze.U)(a=>Qt(a)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Mc(r,a="emptyOnly"){const e=r.pathFromRoot;let t=0;if("always"!==a)for(t=e.length-1;t>=1;){const o=e[t],l=e[t-1];if(o.routeConfig&&""===o.routeConfig.path)t--;else{if(l.component)break;t--}}return function Go(r){return r.reduce((a,e)=>({params:{...a.params,...e.params},data:{...a.data,...e.data},resolve:{...e.data,...a.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(t))}class Dr{constructor(a,e,t,o,l,c,n,i,s,d,h,f){this.url=a,this.params=e,this.queryParams=t,this.fragment=o,this.data=l,this.outlet=c,this.component=n,this.routeConfig=i,this._urlSegment=s,this._lastPathIndex=d,this._correctedLastPathIndex=f??d,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=Qt(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Qt(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Ya extends Gf{constructor(a,e){super(e),this.url=a,Dc(this,e)}toString(){return Hc(this._root)}}function Dc(r,a){a.value._routerState=r,a.children.forEach(e=>Dc(r,e))}function Hc(r){const a=r.children.length>0?` { ${r.children.map(Hc).join(", ")} } `:"";return`${r.value}${a}`}function na(r){if(r.snapshot){const a=r.snapshot,e=r._futureSnapshot;r.snapshot=e,ki(a.queryParams,e.queryParams)||r.queryParams.next(e.queryParams),a.fragment!==e.fragment&&r.fragment.next(e.fragment),ki(a.params,e.params)||r.params.next(e.params),function ht(r,a){if(r.length!==a.length)return!1;for(let e=0;eki(e.parameters,a[t].parameters))}(r.url,a.url);return e&&!(!r.parent!=!a.parent)&&(!r.parent||qf(r.parent,a.parent))}function At(r,a,e){if(e&&r.shouldReuseRoute(a.value,e.value.snapshot)){const t=e.value;t._futureSnapshot=a.value;const o=function jx(r,a,e){return a.children.map(t=>{for(const o of e.children)if(r.shouldReuseRoute(t.value,o.value.snapshot))return At(r,t,o);return At(r,t)})}(r,a,e);return new Qi(t,o)}{if(r.shouldAttach(a.value)){const l=r.retrieve(a.value);if(null!==l){const c=l.route;return c.value._futureSnapshot=a.value,c.children=a.children.map(n=>At(r,n)),c}}const t=function Nx(r){return new ir(new di(r.url),new di(r.params),new di(r.queryParams),new di(r.fragment),new di(r.data),r.outlet,r.component,r)}(a.value),o=a.children.map(l=>At(r,l));return new Qi(t,o)}}const Wf="ngNavigationCancelingError";function ly(r,a){const{redirectTo:e,navigationBehaviorOptions:t}=ea(a)?{redirectTo:a,navigationBehaviorOptions:void 0}:a,o=cy(!1,0,a);return o.url=e,o.navigationBehaviorOptions=t,o}function cy(r,a,e){const t=new Error("NavigationCancelingError: "+(r||""));return t[Wf]=!0,t.cancellationCode=a,e&&(t.url=e),t}function dy(r){return uy(r)&&ea(r.url)}function uy(r){return r&&r[Wf]}class Js{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new Pc,this.attachRef=null}}let Pc=(()=>{class r{constructor(){this.contexts=new Map}onChildOutletCreated(e,t){const o=this.getOrCreateContext(e);o.outlet=t,this.contexts.set(e,o)}onChildOutletDestroyed(e){const t=this.getContext(e);t&&(t.outlet=null,t.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new Js,this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const Su=!1;let ii=(()=>{class r{constructor(e,t,o,l,c){this.parentContexts=e,this.location=t,this.changeDetector=l,this.environmentInjector=c,this.activated=null,this._activatedRoute=null,this.activateEvents=new u.vpe,this.deactivateEvents=new u.vpe,this.attachEvents=new u.vpe,this.detachEvents=new u.vpe,this.name=o||We,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.getContext(this.name)?.outlet===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new u.vHH(4012,Su);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new u.vHH(4012,Su);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new u.vHH(4012,Su);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new u.vHH(4013,Su);this._activatedRoute=e;const o=this.location,c=e._futureSnapshot.component,n=this.parentContexts.getOrCreateContext(this.name).children,i=new Mu(e,n,o.injector);if(t&&function Ks(r){return!!r.resolveComponentFactory}(t)){const s=t.resolveComponentFactory(c);this.activated=o.createComponent(s,o.length,i)}else this.activated=o.createComponent(c,{index:o.length,injector:i,environmentInjector:t??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(Pc),u.Y36(u.s_b),u.$8M("name"),u.Y36(u.sBO),u.Y36(u.lqb))},r.\u0275dir=u.lG2({type:r,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),r})();class Mu{constructor(a,e,t){this.route=a,this.childContexts=e,this.parent=t}get(a,e){return a===ir?this.route:a===Pc?this.childContexts:this.parent.get(a,e)}}let hy=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275cmp=u.Xpm({type:r,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&u._UZ(0,"router-outlet")},dependencies:[ii],encapsulation:2}),r})();function $f(r,a){return r.providers&&!r._injector&&(r._injector=(0,u.MMx)(r.providers,a,`Route: ${r.path}`)),r._injector??a}function Yf(r){const a=r.children&&r.children.map(Yf),e=a?{...r,children:a}:{...r};return!e.component&&!e.loadComponent&&(a||e.loadChildren)&&e.outlet&&e.outlet!==We&&(e.component=hy),e}function Mn(r){return r.outlet||We}function Hu(r,a){const e=r.filter(t=>Mn(t)===a);return e.push(...r.filter(t=>Mn(t)!==a)),e}function Yi(r){if(!r)return null;if(r.routeConfig?._injector)return r.routeConfig._injector;for(let a=r.parent;a;a=a.parent){const e=a.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class qo{constructor(a,e,t,o){this.routeReuseStrategy=a,this.futureState=e,this.currState=t,this.forwardEvent=o}activate(a){const e=this.futureState._root,t=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,t,a),na(this.futureState.root),this.activateChildRoutes(e,t,a)}deactivateChildRoutes(a,e,t){const o=Uo(e);a.children.forEach(l=>{const c=l.value.outlet;this.deactivateRoutes(l,o[c],t),delete o[c]}),Ot(o,(l,c)=>{this.deactivateRouteAndItsChildren(l,t)})}deactivateRoutes(a,e,t){const o=a.value,l=e?e.value:null;if(o===l)if(o.component){const c=t.getContext(o.outlet);c&&this.deactivateChildRoutes(a,e,c.children)}else this.deactivateChildRoutes(a,e,t);else l&&this.deactivateRouteAndItsChildren(e,t)}deactivateRouteAndItsChildren(a,e){a.value.component&&this.routeReuseStrategy.shouldDetach(a.value.snapshot)?this.detachAndStoreRouteSubtree(a,e):this.deactivateRouteAndOutlet(a,e)}detachAndStoreRouteSubtree(a,e){const t=e.getContext(a.value.outlet),o=t&&a.value.component?t.children:e,l=Uo(a);for(const c of Object.keys(l))this.deactivateRouteAndItsChildren(l[c],o);if(t&&t.outlet){const c=t.outlet.detach(),n=t.children.onOutletDeactivated();this.routeReuseStrategy.store(a.value.snapshot,{componentRef:c,route:a,contexts:n})}}deactivateRouteAndOutlet(a,e){const t=e.getContext(a.value.outlet),o=t&&a.value.component?t.children:e,l=Uo(a);for(const c of Object.keys(l))this.deactivateRouteAndItsChildren(l[c],o);t&&t.outlet&&(t.outlet.deactivate(),t.children.onOutletDeactivated(),t.attachRef=null,t.resolver=null,t.route=null)}activateChildRoutes(a,e,t){const o=Uo(e);a.children.forEach(l=>{this.activateRoutes(l,o[l.value.outlet],t),this.forwardEvent(new ay(l.value.snapshot))}),a.children.length&&this.forwardEvent(new zf(a.value.snapshot))}activateRoutes(a,e,t){const o=a.value,l=e?e.value:null;if(na(o),o===l)if(o.component){const c=t.getOrCreateContext(o.outlet);this.activateChildRoutes(a,e,c.children)}else this.activateChildRoutes(a,e,t);else if(o.component){const c=t.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){const n=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),c.children.onOutletReAttached(n.contexts),c.attachRef=n.componentRef,c.route=n.route.value,c.outlet&&c.outlet.attach(n.componentRef,n.route.value),na(n.route.value),this.activateChildRoutes(a,null,c.children)}else{const n=Yi(o.snapshot),i=n?.get(u._Vd)??null;c.attachRef=null,c.route=o,c.resolver=i,c.injector=n,c.outlet&&c.outlet.activateWith(o,c.injector),this.activateChildRoutes(a,null,c.children)}}else this.activateChildRoutes(a,null,t)}}class my{constructor(a){this.path=a,this.route=this.path[this.path.length-1]}}class Zs{constructor(a,e){this.component=a,this.route=e}}function _y(r,a,e){const t=r._root;return Xs(t,a?a._root:null,e,[t.value])}function Rc(r,a,e){return(Yi(a)??e).get(r)}function Xs(r,a,e,t,o={canDeactivateChecks:[],canActivateChecks:[]}){const l=Uo(a);return r.children.forEach(c=>{(function Cy(r,a,e,t,o={canDeactivateChecks:[],canActivateChecks:[]}){const l=r.value,c=a?a.value:null,n=e?e.getContext(r.value.outlet):null;if(c&&l.routeConfig===c.routeConfig){const i=function yy(r,a,e){if("function"==typeof e)return e(r,a);switch(e){case"pathParamsChange":return!Er(r.url,a.url);case"pathParamsOrQueryParamsChange":return!Er(r.url,a.url)||!ki(r.queryParams,a.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!qf(r,a)||!ki(r.queryParams,a.queryParams);default:return!qf(r,a)}}(c,l,l.routeConfig.runGuardsAndResolvers);i?o.canActivateChecks.push(new my(t)):(l.data=c.data,l._resolvedData=c._resolvedData),Xs(r,a,l.component?n?n.children:null:e,t,o),i&&n&&n.outlet&&n.outlet.isActivated&&o.canDeactivateChecks.push(new Zs(n.outlet.component,c))}else c&&Ka(a,n,o),o.canActivateChecks.push(new my(t)),Xs(r,null,l.component?n?n.children:null:e,t,o)})(c,l[c.value.outlet],e,t.concat([c.value]),o),delete l[c.value.outlet]}),Ot(l,(c,n)=>Ka(c,e.getContext(n),o)),o}function Ka(r,a,e){const t=Uo(r),o=r.value;Ot(t,(l,c)=>{Ka(l,o.component?a?a.children.getContext(c):null:a,e)}),e.canDeactivateChecks.push(new Zs(o.component&&a&&a.outlet&&a.outlet.isActivated?a.outlet.component:null,o))}function aa(r){return"function"==typeof r}function Za(r){return r instanceof Lo.K||"EmptyError"===r?.name}const Hr=Symbol("INITIAL_VALUE");function Wo(){return(0,Ci.w)(r=>(0,Os.a)(r.map(a=>a.pipe((0,Gt.q)(1),It(Hr)))).pipe((0,ze.U)(a=>{for(const e of a)if(!0!==e){if(e===Hr)return Hr;if(!1===e||e instanceof Zr)return e}return!0}),(0,ei.h)(a=>a!==Hr),(0,Gt.q)(1)))}function $o(r){return(0,gc.z)((0,bt.b)(a=>{if(ea(a))throw ly(0,a)}),(0,ze.U)(a=>!0===a))}const Xa={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function eg(r,a,e,t,o){const l=kc(r,a,e);return l.matched?function Xf(r,a,e,t){const o=a.canMatch;if(!o||0===o.length)return(0,Me.of)(!0);const l=o.map(c=>{const n=r.get(c),i=function vy(r){return r&&aa(r.canMatch)}(n)?n.canMatch(a,e):n(a,e);return Sn(i)});return(0,Me.of)(l).pipe(Wo(),$o())}(t=$f(a,t),a,e).pipe((0,ze.U)(c=>!0===c?l:{...Xa})):(0,Me.of)(l)}function kc(r,a,e){if(""===a.path)return"full"===a.pathMatch&&(r.hasChildren()||e.length>0)?{...Xa}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const o=(a.matcher||be)(e,r,a);if(!o)return{...Xa};const l={};Ot(o.posParams,(n,i)=>{l[i]=n.path});const c=o.consumed.length>0?{...l,...o.consumed[o.consumed.length-1].parameters}:l;return{matched:!0,consumedSegments:o.consumed,remainingSegments:e.slice(o.consumed.length),parameters:c,positionalParamSegments:o.posParams??{}}}function oa(r,a,e,t,o="corrected"){if(e.length>0&&function Ey(r,a,e){return e.some(t=>Pr(r,a,t)&&Mn(t)!==We)}(r,e,t)){const c=new gt(a,function tg(r,a,e,t){const o={};o[We]=t,t._sourceSegment=r,t._segmentIndexShift=a.length;for(const l of e)if(""===l.path&&Mn(l)!==We){const c=new gt([],{});c._sourceSegment=r,c._segmentIndexShift=a.length,o[Mn(l)]=c}return o}(r,a,t,new gt(e,r.children)));return c._sourceSegment=r,c._segmentIndexShift=a.length,{segmentGroup:c,slicedSegments:[]}}if(0===e.length&&function Sy(r,a,e){return e.some(t=>Pr(r,a,t))}(r,e,t)){const c=new gt(r.segments,function Vc(r,a,e,t,o,l){const c={};for(const n of t)if(Pr(r,e,n)&&!o[Mn(n)]){const i=new gt([],{});i._sourceSegment=r,i._segmentIndexShift="legacy"===l?r.segments.length:a.length,c[Mn(n)]=i}return{...o,...c}}(r,a,e,t,r.children,o));return c._sourceSegment=r,c._segmentIndexShift=a.length,{segmentGroup:c,slicedSegments:e}}const l=new gt(r.segments,r.children);return l._sourceSegment=r,l._segmentIndexShift=a.length,{segmentGroup:l,slicedSegments:e}}function Pr(r,a,e){return(!(r.hasChildren()||a.length>0)||"full"!==e.pathMatch)&&""===e.path}function Qo(r,a,e,t){return!!(Mn(r)===t||t!==We&&Pr(a,e,r))&&("**"===r.path||kc(a,r,e).matched)}function ig(r,a,e){return 0===a.length&&!r.children[e]}const Vu=!1;class il{constructor(a){this.segmentGroup=a||null}}class ng{constructor(a){this.urlTree=a}}function Bc(r){return(0,pn._)(new il(r))}function rg(r){return(0,pn._)(new ng(r))}class ag{constructor(a,e,t,o,l){this.injector=a,this.configLoader=e,this.urlSerializer=t,this.urlTree=o,this.config=l,this.allowRedirects=!0}apply(){const a=oa(this.urlTree.root,[],[],this.config).segmentGroup,e=new gt(a.segments,a.children);return this.expandSegmentGroup(this.injector,this.config,e,We).pipe((0,ze.U)(l=>this.createUrlTree(Wa(l),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,M.K)(l=>{if(l instanceof ng)return this.allowRedirects=!1,this.match(l.urlTree);throw l instanceof il?this.noMatchError(l):l}))}match(a){return this.expandSegmentGroup(this.injector,this.config,a.root,We).pipe((0,ze.U)(o=>this.createUrlTree(Wa(o),a.queryParams,a.fragment))).pipe((0,M.K)(o=>{throw o instanceof il?this.noMatchError(o):o}))}noMatchError(a){return new u.vHH(4002,Vu)}createUrlTree(a,e,t){const o=No(a);return new Zr(o,e,t)}expandSegmentGroup(a,e,t,o){return 0===t.segments.length&&t.hasChildren()?this.expandChildren(a,e,t).pipe((0,ze.U)(l=>new gt([],l))):this.expandSegment(a,t,e,t.segments,o,!0)}expandChildren(a,e,t){const o=[];for(const l of Object.keys(t.children))"primary"===l?o.unshift(l):o.push(l);return(0,Ti.D)(o).pipe((0,$i.b)(l=>{const c=t.children[l],n=Hu(e,l);return this.expandSegmentGroup(a,n,c,l).pipe((0,ze.U)(i=>({segment:i,outlet:l})))}),D((l,c)=>(l[c.outlet]=c.segment,l),{}),Ue())}expandSegment(a,e,t,o,l,c){return(0,Ti.D)(t).pipe((0,$i.b)(n=>this.expandSegmentAgainstRoute(a,e,t,n,o,l,c).pipe((0,M.K)(s=>{if(s instanceof il)return(0,Me.of)(null);throw s}))),(0,fn.P)(n=>!!n),(0,M.K)((n,i)=>{if(Za(n))return ig(e,o,l)?(0,Me.of)(new gt([],{})):Bc(e);throw n}))}expandSegmentAgainstRoute(a,e,t,o,l,c,n){return Qo(o,e,l,c)?void 0===o.redirectTo?this.matchSegmentAgainstRoute(a,e,o,l,c):n&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(a,e,t,o,l,c):Bc(e):Bc(e)}expandSegmentAgainstRouteUsingRedirect(a,e,t,o,l,c){return"**"===o.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(a,t,o,c):this.expandRegularSegmentAgainstRouteUsingRedirect(a,e,t,o,l,c)}expandWildCardWithParamsAgainstRouteUsingRedirect(a,e,t,o){const l=this.applyRedirectCommands([],t.redirectTo,{});return t.redirectTo.startsWith("/")?rg(l):this.lineralizeSegments(t,l).pipe((0,yi.z)(c=>{const n=new gt(c,{});return this.expandSegment(a,n,e,c,o,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(a,e,t,o,l,c){const{matched:n,consumedSegments:i,remainingSegments:s,positionalParamSegments:d}=kc(e,o,l);if(!n)return Bc(e);const h=this.applyRedirectCommands(i,o.redirectTo,d);return o.redirectTo.startsWith("/")?rg(h):this.lineralizeSegments(o,h).pipe((0,yi.z)(f=>this.expandSegment(a,e,t,f.concat(s),c,!1)))}matchSegmentAgainstRoute(a,e,t,o,l){return"**"===t.path?(a=$f(t,a),t.loadChildren?(t._loadedRoutes?(0,Me.of)({routes:t._loadedRoutes,injector:t._loadedInjector}):this.configLoader.loadChildren(a,t)).pipe((0,ze.U)(n=>(t._loadedRoutes=n.routes,t._loadedInjector=n.injector,new gt(o,{})))):(0,Me.of)(new gt(o,{}))):eg(e,t,o,a).pipe((0,Ci.w)(({matched:c,consumedSegments:n,remainingSegments:i})=>c?this.getChildConfig(a=t._injector??a,t,o).pipe((0,yi.z)(d=>{const h=d.injector??a,f=d.routes,{segmentGroup:b,slicedSegments:H}=oa(e,n,i,f),z=new gt(b.segments,b.children);if(0===H.length&&z.hasChildren())return this.expandChildren(h,f,z).pipe((0,ze.U)(yt=>new gt(n,yt)));if(0===f.length&&0===H.length)return(0,Me.of)(new gt(n,{}));const ae=Mn(t)===l;return this.expandSegment(h,z,f,H,ae?We:l,!0).pipe((0,ze.U)(ct=>new gt(n.concat(ct.segments),ct.children)))})):Bc(e)))}getChildConfig(a,e,t){return e.children?(0,Me.of)({routes:e.children,injector:a}):e.loadChildren?void 0!==e._loadedRoutes?(0,Me.of)({routes:e._loadedRoutes,injector:e._loadedInjector}):function ku(r,a,e,t){const o=a.canLoad;if(void 0===o||0===o.length)return(0,Me.of)(!0);const l=o.map(c=>{const n=r.get(c),i=function el(r){return r&&aa(r.canLoad)}(n)?n.canLoad(a,e):n(a,e);return Sn(i)});return(0,Me.of)(l).pipe(Wo(),$o())}(a,e,t).pipe((0,yi.z)(o=>o?this.configLoader.loadChildren(a,e).pipe((0,bt.b)(l=>{e._loadedRoutes=l.routes,e._loadedInjector=l.injector})):function Dy(r){return(0,pn._)(cy(Vu,3))}())):(0,Me.of)({routes:[],injector:a})}lineralizeSegments(a,e){let t=[],o=e.root;for(;;){if(t=t.concat(o.segments),0===o.numberOfChildren)return(0,Me.of)(t);if(o.numberOfChildren>1||!o.children[We])return(0,pn._)(new u.vHH(4e3,Vu));o=o.children[We]}}applyRedirectCommands(a,e,t){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),a,t)}applyRedirectCreateUrlTree(a,e,t,o){const l=this.createSegmentGroup(a,e.root,t,o);return new Zr(l,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(a,e){const t={};return Ot(a,(o,l)=>{if("string"==typeof o&&o.startsWith(":")){const n=o.substring(1);t[l]=e[n]}else t[l]=o}),t}createSegmentGroup(a,e,t,o){const l=this.createSegments(a,e.segments,t,o);let c={};return Ot(e.children,(n,i)=>{c[i]=this.createSegmentGroup(a,n,t,o)}),new gt(l,c)}createSegments(a,e,t,o){return e.map(l=>l.path.startsWith(":")?this.findPosParam(a,l,o):this.findOrReturn(l,t))}findPosParam(a,e,t){const o=t[e.path.substring(1)];if(!o)throw new u.vHH(4001,Vu);return o}findOrReturn(a,e){let t=0;for(const o of e){if(o.path===a.path)return e.splice(t),o;t++}return a}}class Gx{}class Bu{constructor(a,e,t,o,l,c,n,i){this.injector=a,this.rootComponentType=e,this.config=t,this.urlTree=o,this.url=l,this.paramsInheritanceStrategy=c,this.relativeLinkResolution=n,this.urlSerializer=i}recognize(){const a=oa(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,a,We).pipe((0,ze.U)(e=>{if(null===e)return null;const t=new Dr([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},We,this.rootComponentType,null,this.urlTree.root,-1,{}),o=new Qi(t,e),l=new Ya(this.url,o);return this.inheritParamsAndData(l._root),l}))}inheritParamsAndData(a){const e=a.value,t=Mc(e,this.paramsInheritanceStrategy);e.params=Object.freeze(t.params),e.data=Object.freeze(t.data),a.children.forEach(o=>this.inheritParamsAndData(o))}processSegmentGroup(a,e,t,o){return 0===t.segments.length&&t.hasChildren()?this.processChildren(a,e,t):this.processSegment(a,e,t,t.segments,o)}processChildren(a,e,t){return(0,Ti.D)(Object.keys(t.children)).pipe((0,$i.b)(o=>{const l=t.children[o],c=Hu(e,o);return this.processSegmentGroup(a,c,l,o)}),D((o,l)=>o&&l?(o.push(...l),o):null),function Ft(r,a=!1){return(0,tn.e)((e,t)=>{let o=0;e.subscribe((0,ji.x)(t,l=>{const c=r(l,o++);(c||a)&&t.next(l),!c&&t.complete()}))})}(o=>null!==o),(0,pe.d)(null),Ue(),(0,ze.U)(o=>{if(null===o)return null;const l=Fc(o);return function Py(r){r.sort((a,e)=>a.value.outlet===We?-1:e.value.outlet===We?1:a.value.outlet.localeCompare(e.value.outlet))}(l),l}))}processSegment(a,e,t,o,l){return(0,Ti.D)(e).pipe((0,$i.b)(c=>this.processSegmentAgainstRoute(c._injector??a,c,t,o,l)),(0,fn.P)(c=>!!c),(0,M.K)(c=>{if(Za(c))return ig(t,o,l)?(0,Me.of)([]):(0,Me.of)(null);throw c}))}processSegmentAgainstRoute(a,e,t,o,l){if(e.redirectTo||!Qo(e,t,o,l))return(0,Me.of)(null);let c;if("**"===e.path){const n=o.length>0?Ua(o).parameters:{},i=cg(t)+o.length,s=new Dr(o,n,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,rl(e),Mn(e),e.component??e._loadedComponent??null,e,lg(t),i,jc(e),i);c=(0,Me.of)({snapshot:s,consumedSegments:[],remainingSegments:[]})}else c=eg(t,e,o,a).pipe((0,ze.U)(({matched:n,consumedSegments:i,remainingSegments:s,parameters:d})=>{if(!n)return null;const h=cg(t)+i.length;return{snapshot:new Dr(i,d,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,rl(e),Mn(e),e.component??e._loadedComponent??null,e,lg(t),h,jc(e),h),consumedSegments:i,remainingSegments:s}}));return c.pipe((0,Ci.w)(n=>{if(null===n)return(0,Me.of)(null);const{snapshot:i,consumedSegments:s,remainingSegments:d}=n;a=e._injector??a;const h=e._loadedInjector??a,f=function sg(r){return r.children?r.children:r.loadChildren?r._loadedRoutes:[]}(e),{segmentGroup:b,slicedSegments:H}=oa(t,s,d,f.filter(ae=>void 0===ae.redirectTo),this.relativeLinkResolution);if(0===H.length&&b.hasChildren())return this.processChildren(h,f,b).pipe((0,ze.U)(ae=>null===ae?null:[new Qi(i,ae)]));if(0===f.length&&0===H.length)return(0,Me.of)([new Qi(i,[])]);const z=Mn(e)===l;return this.processSegment(h,f,b,H,z?We:l).pipe((0,ze.U)(ae=>null===ae?null:[new Qi(i,ae)]))}))}}function Lc(r){const a=r.value.routeConfig;return a&&""===a.path&&void 0===a.redirectTo}function Fc(r){const a=[],e=new Set;for(const t of r){if(!Lc(t)){a.push(t);continue}const o=a.find(l=>t.value.routeConfig===l.value.routeConfig);void 0!==o?(o.children.push(...t.children),e.add(o)):a.push(t)}for(const t of e){const o=Fc(t.children);a.push(new Qi(t.value,o))}return a.filter(t=>!e.has(t))}function lg(r){let a=r;for(;a._sourceSegment;)a=a._sourceSegment;return a}function cg(r){let a=r,e=a._segmentIndexShift??0;for(;a._sourceSegment;)a=a._sourceSegment,e+=a._segmentIndexShift??0;return e-1}function rl(r){return r.data||{}}function jc(r){return r.resolve||{}}const Nc=Symbol("RouteTitle");function hg(r){return"string"==typeof r.title||null===r.title}function Ou(r){return(0,Ci.w)(a=>{const e=r(a);return e?(0,Ti.D)(e).pipe((0,ze.U)(()=>a)):(0,Me.of)(a)})}let nr=(()=>{class r{buildTitle(e){let t,o=e.root;for(;void 0!==o;)t=this.getResolvedTitleForRoute(o)??t,o=o.children.find(l=>l.outlet===We);return t}getResolvedTitleForRoute(e){return e.data[Nc]}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=u.Yz7({token:r,factory:function(){return(0,u.f3M)(to)},providedIn:"root"}),r})(),to=(()=>{class r extends nr{constructor(e){super(),this.title=e}updateTitle(e){const t=this.buildTitle(e);void 0!==t&&this.title.setTitle(t)}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(Q))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();class By{}class Ly extends class Oy{shouldDetach(a){return!1}store(a,e){}shouldAttach(a){return!1}retrieve(a){return null}shouldReuseRoute(a,e){return a.routeConfig===e.routeConfig}}{}const Lu=new u.OlP("",{providedIn:"root",factory:()=>({})}),zc=new u.OlP("ROUTES");let Fu=(()=>{class r{constructor(e,t){this.injector=e,this.compiler=t,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return(0,Me.of)(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const t=Sn(e.loadComponent()).pipe((0,bt.b)(l=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=l}),Mt(()=>{this.componentLoaders.delete(e)})),o=new Sf(t,()=>new De.x).pipe(Ls());return this.componentLoaders.set(e,o),o}loadChildren(e,t){if(this.childrenLoaders.get(t))return this.childrenLoaders.get(t);if(t._loadedRoutes)return(0,Me.of)({routes:t._loadedRoutes,injector:t._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(t);const l=this.loadModuleFactoryOrRoutes(t.loadChildren).pipe((0,ze.U)(n=>{this.onLoadEndListener&&this.onLoadEndListener(t);let i,s,d=!1;Array.isArray(n)?s=n:(i=n.create(e).injector,s=qt(i.get(zc,[],u.XFs.Self|u.XFs.Optional)));return{routes:s.map(Yf),injector:i}}),Mt(()=>{this.childrenLoaders.delete(t)})),c=new Sf(l,()=>new De.x).pipe(Ls());return this.childrenLoaders.set(t,c),c}loadModuleFactoryOrRoutes(e){return Sn(e()).pipe((0,yi.z)(t=>t instanceof u.YKP||Array.isArray(t)?(0,Me.of)(t):(0,Ti.D)(this.compiler.compileModuleAsync(t))))}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(u.zs3),u.LFG(u.Sil))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();class jy{}class Ny{shouldProcessUrl(a){return!0}extract(a){return a}merge(a,e){return a}}function Wx(r){throw r}function zy(r,a,e){return a.parse("/")}const al={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},fg={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function Jo(){const r=(0,u.f3M)(_c),a=(0,u.f3M)(Pc),e=(0,u.f3M)(T.Ye),t=(0,u.f3M)(u.zs3),o=(0,u.f3M)(u.Sil),l=(0,u.f3M)(zc,{optional:!0})??[],c=(0,u.f3M)(Lu,{optional:!0})??{},n=(0,u.f3M)(to),i=(0,u.f3M)(nr,{optional:!0}),s=(0,u.f3M)(jy,{optional:!0}),d=(0,u.f3M)(By,{optional:!0}),h=new ui(null,r,a,e,t,o,qt(l));return s&&(h.urlHandlingStrategy=s),d&&(h.routeReuseStrategy=d),h.titleStrategy=i??n,function rr(r,a){r.errorHandler&&(a.errorHandler=r.errorHandler),r.malformedUriErrorHandler&&(a.malformedUriErrorHandler=r.malformedUriErrorHandler),r.onSameUrlNavigation&&(a.onSameUrlNavigation=r.onSameUrlNavigation),r.paramsInheritanceStrategy&&(a.paramsInheritanceStrategy=r.paramsInheritanceStrategy),r.relativeLinkResolution&&(a.relativeLinkResolution=r.relativeLinkResolution),r.urlUpdateStrategy&&(a.urlUpdateStrategy=r.urlUpdateStrategy),r.canceledNavigationResolution&&(a.canceledNavigationResolution=r.canceledNavigationResolution)}(c,h),h}let ui=(()=>{class r{constructor(e,t,o,l,c,n,i){this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=o,this.location=l,this.config=i,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new De.x,this.errorHandler=Wx,this.malformedUriErrorHandler=zy,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>(0,Me.of)(void 0),this.urlHandlingStrategy=new Ny,this.routeReuseStrategy=new Ly,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=c.get(Fu),this.configLoader.onLoadEndListener=f=>this.triggerEvent(new jf(f)),this.configLoader.onLoadStartListener=f=>this.triggerEvent(new ry(f)),this.ngModule=c.get(u.h0i),this.console=c.get(u.c2e);const h=c.get(u.R0b);this.isNgZoneEnabled=h instanceof u.R0b&&u.R0b.isInAngularZone(),this.resetConfig(i),this.currentUrlTree=function Fx(){return new Zr(new gt([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=Sc(this.currentUrlTree,this.rootComponentType),this.transitions=new di({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){return this.location.getState()?.\u0275routerPageId}setupNavigations(e){const t=this.events;return e.pipe((0,ei.h)(o=>0!==o.id),(0,ze.U)(o=>({...o,extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),(0,Ci.w)(o=>{let l=!1,c=!1;return(0,Me.of)(o).pipe((0,bt.b)(n=>{this.currentNavigation={id:n.id,initialUrl:n.rawUrl,extractedUrl:n.extractedUrl,trigger:n.source,extras:n.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,Ci.w)(n=>{const i=this.browserUrlTree.toString(),s=!this.navigated||n.extractedUrl.toString()!==i||i!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||s)&&this.urlHandlingStrategy.shouldProcessUrl(n.rawUrl))return ju(n.source)&&(this.browserUrlTree=n.extractedUrl),(0,Me.of)(n).pipe((0,Ci.w)(h=>{const f=this.transitions.getValue();return t.next(new vc(h.id,this.serializeUrl(h.extractedUrl),h.source,h.restoredState)),f!==this.transitions.getValue()?ti.E:Promise.resolve(h)}),function Hy(r,a,e,t){return(0,Ci.w)(o=>function Oc(r,a,e,t,o){return new ag(r,a,e,t,o).apply()}(r,a,e,o.extractedUrl,t).pipe((0,ze.U)(l=>({...o,urlAfterRedirects:l}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,bt.b)(h=>{this.currentNavigation={...this.currentNavigation,finalUrl:h.urlAfterRedirects},o.urlAfterRedirects=h.urlAfterRedirects}),function dg(r,a,e,t,o,l){return(0,yi.z)(c=>function qx(r,a,e,t,o,l,c="emptyOnly",n="legacy"){return new Bu(r,a,e,t,o,c,n,l).recognize().pipe((0,Ci.w)(i=>null===i?function og(r){return new bi.y(a=>a.error(r))}(new Gx):(0,Me.of)(i)))}(r,a,e,c.urlAfterRedirects,t.serialize(c.urlAfterRedirects),t,o,l).pipe((0,ze.U)(n=>({...c,targetSnapshot:n}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,bt.b)(h=>{if(o.targetSnapshot=h.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!h.extras.skipLocationChange){const b=this.urlHandlingStrategy.merge(h.urlAfterRedirects,h.rawUrl);this.setBrowserUrl(b,h)}this.browserUrlTree=h.urlAfterRedirects}const f=new $s(h.id,this.serializeUrl(h.extractedUrl),this.serializeUrl(h.urlAfterRedirects),h.targetSnapshot);t.next(f)}));if(s&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:f,extractedUrl:b,source:H,restoredState:z,extras:ae}=n,ke=new vc(f,this.serializeUrl(b),H,z);t.next(ke);const ct=Sc(b,this.rootComponentType).snapshot;return o={...n,targetSnapshot:ct,urlAfterRedirects:b,extras:{...ae,skipLocationChange:!1,replaceUrl:!1}},(0,Me.of)(o)}return this.rawUrlTree=n.rawUrl,n.resolve(null),ti.E}),(0,bt.b)(n=>{const i=new xu(n.id,this.serializeUrl(n.extractedUrl),this.serializeUrl(n.urlAfterRedirects),n.targetSnapshot);this.triggerEvent(i)}),(0,ze.U)(n=>o={...n,guards:_y(n.targetSnapshot,n.currentSnapshot,this.rootContexts)}),function si(r,a){return(0,yi.z)(e=>{const{targetSnapshot:t,currentSnapshot:o,guards:{canActivateChecks:l,canDeactivateChecks:c}}=e;return 0===c.length&&0===l.length?(0,Me.of)({...e,guardsResult:!0}):function Kf(r,a,e,t){return(0,Ti.D)(r).pipe((0,yi.z)(o=>function Ty(r,a,e,t,o){const l=a&&a.routeConfig?a.routeConfig.canDeactivate:null;if(!l||0===l.length)return(0,Me.of)(!0);const c=l.map(n=>{const i=Rc(n,a,o);return Sn(function wy(r){return r&&aa(r.canDeactivate)}(i)?i.canDeactivate(r,a,e,t):i(r,a,e,t)).pipe((0,fn.P)())});return(0,Me.of)(c).pipe(Wo())}(o.component,o.route,e,a,t)),(0,fn.P)(o=>!0!==o,!0))}(c,t,o,r).pipe((0,yi.z)(n=>n&&function zx(r){return"boolean"==typeof r}(n)?function Zf(r,a,e,t){return(0,Ti.D)(a).pipe((0,$i.b)(o=>(0,Kr.z)(function tl(r,a){return null!==r&&a&&a(new Nf(r)),(0,Me.of)(!0)}(o.route.parent,t),function Iu(r,a){return null!==r&&a&&a(new Uf(r)),(0,Me.of)(!0)}(o.route,t),function xy(r,a,e){const t=a[a.length-1],l=a.slice(0,a.length-1).reverse().map(c=>function by(r){const a=r.routeConfig?r.routeConfig.canActivateChild:null;return a&&0!==a.length?{node:r,guards:a}:null}(c)).filter(c=>null!==c).map(c=>Tr(()=>{const n=c.guards.map(i=>{const s=Rc(i,c.node,e);return Sn(function Ic(r){return r&&aa(r.canActivateChild)}(s)?s.canActivateChild(t,r):s(t,r)).pipe((0,fn.P)())});return(0,Me.of)(n).pipe(Wo())}));return(0,Me.of)(l).pipe(Wo())}(r,o.path,e),function Ay(r,a,e){const t=a.routeConfig?a.routeConfig.canActivate:null;if(!t||0===t.length)return(0,Me.of)(!0);const o=t.map(l=>Tr(()=>{const c=Rc(l,a,e);return Sn(function Ru(r){return r&&aa(r.canActivate)}(c)?c.canActivate(a,r):c(a,r)).pipe((0,fn.P)())}));return(0,Me.of)(o).pipe(Wo())}(r,o.route,e))),(0,fn.P)(o=>!0!==o,!0))}(t,l,r,a):(0,Me.of)(n)),(0,ze.U)(n=>({...e,guardsResult:n})))})}(this.ngModule.injector,n=>this.triggerEvent(n)),(0,bt.b)(n=>{if(o.guardsResult=n.guardsResult,ea(n.guardsResult))throw ly(0,n.guardsResult);const i=new Tu(n.id,this.serializeUrl(n.extractedUrl),this.serializeUrl(n.urlAfterRedirects),n.targetSnapshot,!!n.guardsResult);this.triggerEvent(i)}),(0,ei.h)(n=>!!n.guardsResult||(this.restoreHistory(n),this.cancelNavigationTransition(n,"",3),!1)),Ou(n=>{if(n.guards.canActivateChecks.length)return(0,Me.of)(n).pipe((0,bt.b)(i=>{const s=new Ac(i.id,this.serializeUrl(i.extractedUrl),this.serializeUrl(i.urlAfterRedirects),i.targetSnapshot);this.triggerEvent(s)}),(0,Ci.w)(i=>{let s=!1;return(0,Me.of)(i).pipe(function ug(r,a){return(0,yi.z)(e=>{const{targetSnapshot:t,guards:{canActivateChecks:o}}=e;if(!o.length)return(0,Me.of)(e);let l=0;return(0,Ti.D)(o).pipe((0,$i.b)(c=>function eo(r,a,e,t){const o=r.routeConfig,l=r._resolve;return void 0!==o?.title&&!hg(o)&&(l[Nc]=o.title),function Iy(r,a,e,t){const o=function ky(r){return[...Object.keys(r),...Object.getOwnPropertySymbols(r)]}(r);if(0===o.length)return(0,Me.of)({});const l={};return(0,Ti.D)(o).pipe((0,yi.z)(c=>function Vy(r,a,e,t){const o=Rc(r,a,t);return Sn(o.resolve?o.resolve(a,e):o(a,e))}(r[c],a,e,t).pipe((0,fn.P)(),(0,bt.b)(n=>{l[c]=n}))),B(1),(0,Bt.h)(l),(0,M.K)(c=>Za(c)?ti.E:(0,pn._)(c)))}(l,r,a,t).pipe((0,ze.U)(c=>(r._resolvedData=c,r.data=Mc(r,e).resolve,o&&hg(o)&&(r.data[Nc]=o.title),null)))}(c.route,t,r,a)),(0,bt.b)(()=>l++),B(1),(0,yi.z)(c=>l===o.length?(0,Me.of)(e):ti.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,bt.b)({next:()=>s=!0,complete:()=>{s||(this.restoreHistory(i),this.cancelNavigationTransition(i,"",2))}}))}),(0,bt.b)(i=>{const s=new xc(i.id,this.serializeUrl(i.extractedUrl),this.serializeUrl(i.urlAfterRedirects),i.targetSnapshot);this.triggerEvent(s)}))}),Ou(n=>{const i=s=>{const d=[];s.routeConfig?.loadComponent&&!s.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(s.routeConfig).pipe((0,bt.b)(h=>{s.component=h}),(0,ze.U)(()=>{})));for(const h of s.children)d.push(...i(h));return d};return(0,Os.a)(i(n.targetSnapshot.root)).pipe((0,pe.d)(),(0,Gt.q)(1))}),Ou(()=>this.afterPreactivation()),(0,ze.U)(n=>{const i=function sy(r,a,e){const t=At(r,a._root,e?e._root:void 0);return new Eu(t,a)}(this.routeReuseStrategy,n.targetSnapshot,n.currentRouterState);return o={...n,targetRouterState:i}}),(0,bt.b)(n=>{this.currentUrlTree=n.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(n.urlAfterRedirects,n.rawUrl),this.routerState=n.targetRouterState,"deferred"===this.urlUpdateStrategy&&(n.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,n),this.browserUrlTree=n.urlAfterRedirects)}),((r,a,e)=>(0,ze.U)(t=>(new qo(a,t.targetRouterState,t.currentRouterState,e).activate(r),t)))(this.rootContexts,this.routeReuseStrategy,n=>this.triggerEvent(n)),(0,bt.b)({next(){l=!0},complete(){l=!0}}),Mt(()=>{l||c||this.cancelNavigationTransition(o,"",1),this.currentNavigation?.id===o.id&&(this.currentNavigation=null)}),(0,M.K)(n=>{if(c=!0,uy(n)){dy(n)||(this.navigated=!0,this.restoreHistory(o,!0));const i=new nn(o.id,this.serializeUrl(o.extractedUrl),n.message,n.cancellationCode);if(t.next(i),dy(n)){const s=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree),d={skipLocationChange:o.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||ju(o.source)};this.scheduleNavigation(s,"imperative",null,d,{resolve:o.resolve,reject:o.reject,promise:o.promise})}else o.resolve(!1)}else{this.restoreHistory(o,!0);const i=new Ff(o.id,this.serializeUrl(o.extractedUrl),n,o.targetSnapshot??void 0);t.next(i);try{o.resolve(this.errorHandler(n))}catch(s){o.reject(s)}}return ti.E}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next({...this.transitions.value,...e})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const t="popstate"===e.type?"popstate":"hashchange";"popstate"===t&&setTimeout(()=>{const o={replaceUrl:!0},l=e.state?.navigationId?e.state:null;if(l){const n={...l};delete n.navigationId,delete n.\u0275routerPageId,0!==Object.keys(n).length&&(o.state=n)}const c=this.parseUrl(e.url);this.scheduleNavigation(c,t,l,o)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){this.config=e.map(Yf),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,t={}){const{relativeTo:o,queryParams:l,fragment:c,queryParamsHandling:n,preserveFragment:i}=t,s=o||this.routerState.root,d=i?this.currentUrlTree.fragment:c;let h=null;switch(n){case"merge":h={...this.currentUrlTree.queryParams,...l};break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=l||null}return null!==h&&(h=this.removeEmptyProps(h)),XC(s,this.currentUrlTree,e,h,d??null)}navigateByUrl(e,t={skipLocationChange:!1}){const o=ea(e)?e:this.parseUrl(e),l=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(l,"imperative",null,t)}navigate(e,t={skipLocationChange:!1}){return function gg(r){for(let a=0;a{const l=e[o];return null!=l&&(t[o]=l),t},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new ia(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.titleStrategy?.updateTitle(this.routerState.snapshot),e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,t,o,l,c){if(this.disposed)return Promise.resolve(!1);let n,i,s;c?(n=c.resolve,i=c.reject,s=c.promise):s=new Promise((f,b)=>{n=f,i=b});const d=++this.navigationId;let h;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(o=this.location.getState()),h=o&&o.\u0275routerPageId?o.\u0275routerPageId:l.replaceUrl||l.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):h=0,this.setTransition({id:d,targetPageId:h,source:t,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:l,resolve:n,reject:i,promise:s,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),s.catch(f=>Promise.reject(f))}setBrowserUrl(e,t){const o=this.urlSerializer.serialize(e),l={...t.extras.state,...this.generateNgRouterState(t.id,t.targetPageId)};this.location.isCurrentPathEqualTo(o)||t.extras.replaceUrl?this.location.replaceState(o,"",l):this.location.go(o,"",l)}restoreHistory(e,t=!1){if("computed"===this.canceledNavigationResolution){const o=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.currentNavigation?.finalUrl||0===o?this.currentUrlTree===this.currentNavigation?.finalUrl&&0===o&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(o)}else"replace"===this.canceledNavigationResolution&&(t&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,t,o){const l=new nn(e.id,this.serializeUrl(e.extractedUrl),t,o);this.triggerEvent(l),e.resolve(!1)}generateNgRouterState(e,t){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:t}:{navigationId:e}}}return r.\u0275fac=function(e){u.$Z()},r.\u0275prov=u.Yz7({token:r,factory:function(){return Jo()},providedIn:"root"}),r})();function ju(r){return"imperative"!==r}let Nu=(()=>{class r{constructor(e,t,o,l,c){this.router=e,this.route=t,this.tabIndexAttribute=o,this.renderer=l,this.el=c,this.commands=null,this.onChanges=new De.x,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(e){if(null!=this.tabIndexAttribute)return;const t=this.renderer,o=this.el.nativeElement;null!==e?t.setAttribute(o,"tabindex",e):t.removeAttribute(o,"tabindex")}ngOnChanges(e){this.onChanges.next(this)}set routerLink(e){null!=e?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const e={skipLocationChange:(0,u.D6c)(this.skipLocationChange),replaceUrl:(0,u.D6c)(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,e),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:(0,u.D6c)(this.preserveFragment)})}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(ui),u.Y36(ir),u.$8M("tabindex"),u.Y36(u.Qsj),u.Y36(u.SBq))},r.\u0275dir=u.lG2({type:r,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(e,t){1&e&&u.NdJ("click",function(){return t.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[u.TTD]}),r})(),zu=(()=>{class r{constructor(e,t,o){this.router=e,this.route=t,this.locationStrategy=o,this.commands=null,this.href=null,this.onChanges=new De.x,this.subscription=e.events.subscribe(l=>{l instanceof ia&&this.updateTargetUrlAndHref()})}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:null}ngOnChanges(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(e,t,o,l,c){if(0!==e||t||o||l||c||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const n={skipLocationChange:(0,u.D6c)(this.skipLocationChange),replaceUrl:(0,u.D6c)(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,n),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:(0,u.D6c)(this.preserveFragment)})}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(ui),u.Y36(ir),u.Y36(T.S$))},r.\u0275dir=u.lG2({type:r,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,t){1&e&&u.NdJ("click",function(l){return t.onClick(l.button,l.ctrlKey,l.shiftKey,l.altKey,l.metaKey)}),2&e&&u.uIk("target",t.target)("href",t.href,u.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[u.TTD]}),r})();class Gc{}let Uy=(()=>{class r{constructor(e,t,o,l,c){this.router=e,this.injector=o,this.preloadingStrategy=l,this.loader=c}setUpPreloading(){this.subscription=this.router.events.pipe((0,ei.h)(e=>e instanceof ia),(0,$i.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,t){const o=[];for(const l of t){l.providers&&!l._injector&&(l._injector=(0,u.MMx)(l.providers,e,`Route: ${l.path}`));const c=l._injector??e,n=l._loadedInjector??c;l.loadChildren&&!l._loadedRoutes&&void 0===l.canLoad||l.loadComponent&&!l._loadedComponent?o.push(this.preloadConfig(c,l)):(l.children||l._loadedRoutes)&&o.push(this.processRoutes(n,l.children??l._loadedRoutes))}return(0,Ti.D)(o).pipe((0,mt.J)())}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>{let o;o=t.loadChildren&&void 0===t.canLoad?this.loader.loadChildren(e,t):(0,Me.of)(null);const l=o.pipe((0,yi.z)(c=>null===c?(0,Me.of)(void 0):(t._loadedRoutes=c.routes,t._loadedInjector=c.injector,this.processRoutes(c.injector??e,c.routes))));if(t.loadComponent&&!t._loadedComponent){const c=this.loader.loadComponent(t);return(0,Ti.D)([l,c]).pipe((0,mt.J)())}return l})}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(ui),u.LFG(u.Sil),u.LFG(u.lqb),u.LFG(Gc),u.LFG(Fu))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac}),r})();const Gu=new u.OlP("");let Gy=(()=>{class r{constructor(e,t,o={}){this.router=e,this.viewportScroller=t,this.options=o,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},o.scrollPositionRestoration=o.scrollPositionRestoration||"disabled",o.anchorScrolling=o.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(e=>{e instanceof vc?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof ia&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof Qs&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,t){this.router.triggerEvent(new Qs(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return r.\u0275fac=function(e){u.$Z()},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac}),r})();const _g=new u.OlP("ROUTER_FORROOT_GUARD"),qu=new u.OlP(""),qc=[T.Ye,{provide:_c,useClass:Cu},{provide:ui,useFactory:Jo},Pc,{provide:ir,useFactory:function bg(r){return r.routerState.root},deps:[ui]},Fu];function Wu(){return new u.PXZ("Router",ui)}let Wc=(()=>{class r{constructor(e){}static forRoot(e,t){return{ngModule:r,providers:[qc,[],Qu(e),{provide:_g,useFactory:$u,deps:[[ui,new u.FiY,new u.tp0]]},{provide:Lu,useValue:t||{}},t?.useHash?{provide:T.S$,useClass:T.Do}:{provide:T.S$,useClass:T.b0},{provide:Gu,useFactory:()=>{const r=(0,u.f3M)(ui),a=(0,u.f3M)(T.EM),e=(0,u.f3M)(Lu);return e.scrollOffset&&a.setOffset(e.scrollOffset),new Gy(r,a,e)}},t?.preloadingStrategy?Ag(t.preloadingStrategy):[],{provide:u.PXZ,multi:!0,useFactory:Wu},t?.initialNavigation?$y(t):[],[{provide:yg,useFactory:Wy},{provide:u.tb,multi:!0,useExisting:yg}]]}}static forChild(e){return{ngModule:r,providers:[Qu(e)]}}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(_g,8))},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({}),r})();function $u(r){return"guarded"}function Qu(r){return[{provide:zc,multi:!0,useValue:r}]}function Wy(){const r=(0,u.f3M)(u.zs3);return a=>{const e=r.get(u.z2F);if(a!==e.components[0])return;const t=r.get(ui),o=r.get(wg);1===r.get(vg)&&t.initialNavigation(),r.get(qu,null,u.XFs.Optional)?.setUpPreloading(),r.get(Gu,null,u.XFs.Optional)?.init(),t.resetRootComponentType(e.componentTypes[0]),o.next(),o.complete()}}const yg=new u.OlP("");function $y(r){return["disabled"===r.initialNavigation?[{provide:u.ip1,multi:!0,useFactory:()=>{const r=(0,u.f3M)(ui);return()=>{r.setUpLocationChangeListener()}}},{provide:vg,useValue:2}]:[],"enabledBlocking"===r.initialNavigation?[{provide:vg,useValue:0},{provide:u.ip1,multi:!0,deps:[u.zs3],useFactory:r=>{const a=r.get(T.V_,Promise.resolve(null));let e=!1;return()=>a.then(()=>new Promise(o=>{const l=r.get(ui),c=r.get(wg);(function t(o){r.get(ui).events.pipe((0,ei.h)(c=>c instanceof ia||c instanceof nn||c instanceof Ff),(0,ze.U)(c=>c instanceof ia||c instanceof nn&&(0===c.code||1===c.code)&&null),(0,ei.h)(c=>null!==c),(0,Gt.q)(1)).subscribe(()=>{o()})})(()=>{o(!0),e=!0}),l.afterPreactivation=()=>(o(!0),e||c.closed?(0,Me.of)(void 0):c),l.initialNavigation()}))}}]:[]]}const wg=new u.OlP("",{factory:()=>new De.x}),vg=new u.OlP("",{providedIn:"root",factory:()=>1});function Ag(r){return[Uy,{provide:qu,useExisting:Uy},{provide:Gc,useExisting:r}]}let $c;try{$c=typeof Intl<"u"&&Intl.v8BreakIterator}catch{$c=!1}let io,Jt=(()=>{class r{constructor(e){this._platformId=e,this.isBrowser=this._platformId?(0,T.NF)(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&&!$c)&&typeof CSS<"u"&&!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 r.\u0275fac=function(e){return new(e||r)(u.LFG(u.Lbi))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const Qc=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Ky(){if(io)return io;if("object"!=typeof document||!document)return io=new Set(Qc),io;let r=document.createElement("input");return io=new Set(Qc.filter(a=>(r.setAttribute("type",a),r.type===a))),io}let sl,ll,rn,Ko;function Dn(r){return function Ju(){if(null==sl&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>sl=!0}))}finally{sl=sl||!1}return sl}()?r:!!r.capture}function xg(){if(null==rn){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return rn=!1,rn;if("scrollBehavior"in document.documentElement.style)rn=!0;else{const r=Element.prototype.scrollTo;rn=!!r&&!/\{\s*\[native code\]\s*\}/.test(r.toString())}}return rn}function no(){if("object"!=typeof document||!document)return 0;if(null==ll){const r=document.createElement("div"),a=r.style;r.dir="rtl",a.width="1px",a.overflow="auto",a.visibility="hidden",a.pointerEvents="none",a.position="absolute";const e=document.createElement("div"),t=e.style;t.width="2px",t.height="1px",r.appendChild(e),document.body.appendChild(r),ll=0,0===r.scrollLeft&&(r.scrollLeft=1,ll=0===r.scrollLeft?1:2),r.remove()}return ll}function Zo(r){if(function Zy(){if(null==Ko){const r=typeof document<"u"?document.head:null;Ko=!(!r||!r.createShadowRoot&&!r.attachShadow)}return Ko}()){const a=r.getRootNode?r.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&a instanceof ShadowRoot)return a}return null}function Xo(){let r=typeof document<"u"&&document?document.activeElement:null;for(;r&&r.shadowRoot;){const a=r.shadowRoot.activeElement;if(a===r)break;r=a}return r}function Ei(r){return r.composedPath?r.composedPath()[0]:r.target}function Yc(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function ar(r,...a){return a.length?a.some(e=>r[e]):r.altKey||r.shiftKey||r.ctrlKey||r.metaKey}var ul=x(8372);function Gg(r){return(0,ei.h)((a,e)=>r<=e)}function qg(r,a=le.y){return r=r??Wg,(0,tn.e)((e,t)=>{let o,l=!0;e.subscribe((0,ji.x)(t,c=>{const n=a(c);(l||!r(o,n))&&(l=!1,o=n,t.next(c))}))})}function Wg(r,a){return r===a}var $g=x(5032);function st(r){return(0,tn.e)((a,e)=>{(0,Jn.Xf)(r).subscribe((0,ji.x)(e,()=>e.complete(),$g.Z)),!e.closed&&a.subscribe(e)})}function tt(r){return null!=r&&"false"!=`${r}`}function wi(r,a=0){return function Mw(r){return!isNaN(parseFloat(r))&&!isNaN(Number(r))}(r)?Number(r):a}function eh(r){return Array.isArray(r)?r:[r]}function Wt(r){return null==r?"":"string"==typeof r?r:`${r}px`}function ri(r){return r instanceof u.SBq?r.nativeElement:r}let th=(()=>{class r{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Qg=(()=>{class r{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,t)=>this._cleanupObserver(t))}observe(e){const t=ri(e);return new bi.y(o=>{const c=this._observeElement(t).subscribe(o);return()=>{c.unsubscribe(),this._unobserveElement(t)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const t=new De.x,o=this._mutationObserverFactory.create(l=>t.next(l));o&&o.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:o,stream:t,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:t,stream:o}=this._observedElements.get(e);t&&t.disconnect(),o.complete(),this._observedElements.delete(e)}}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(th))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),hl=(()=>{class r{constructor(e,t,o){this._contentObserver=e,this._elementRef=t,this._ngZone=o,this.event=new u.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=tt(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=wi(e),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe((0,ul.b)(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(Qg),u.Y36(u.SBq),u.Y36(u.R0b))},r.\u0275dir=u.lG2({type:r,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),r})(),es=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({providers:[th]}),r})();const pl=new Set;let ao,nh=(()=>{class r{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):rh}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function Yg(r){if(!pl.has(r))try{ao||(ao=document.createElement("style"),ao.setAttribute("type","text/css"),document.head.appendChild(ao)),ao.sheet&&(ao.sheet.insertRule(`@media ${r} {body{ }}`,0),pl.add(r))}catch(a){console.error(a)}}(e),this._matchMedia(e)}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(Jt))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();function rh(r){return{matches:"all"===r||""===r,media:r,addListener:()=>{},removeListener:()=>{}}}let ts=(()=>{class r{constructor(e,t){this._mediaMatcher=e,this._zone=t,this._queries=new Map,this._destroySubject=new De.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return Jg(eh(e)).some(o=>this._registerQuery(o).mql.matches)}observe(e){const o=Jg(eh(e)).map(c=>this._registerQuery(c).observable);let l=(0,Os.a)(o);return l=(0,Kr.z)(l.pipe((0,Gt.q)(1)),l.pipe(Gg(1),(0,ul.b)(0))),l.pipe((0,ze.U)(c=>{const n={matches:!1,breakpoints:{}};return c.forEach(({matches:i,query:s})=>{n.matches=n.matches||i,n.breakpoints[s]=i}),n}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const t=this._mediaMatcher.matchMedia(e),l={observable:new bi.y(c=>{const n=i=>this._zone.run(()=>c.next(i));return t.addListener(n),()=>{t.removeListener(n)}}).pipe(It(t),(0,ze.U)(({matches:c})=>({query:e,matches:c})),st(this._destroySubject)),mql:t};return this._queries.set(e,l),l}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(nh),u.LFG(u.R0b))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();function Jg(r){return r.map(a=>a.split(",")).reduce((a,e)=>a.concat(e)).map(a=>a.trim())}function is(r,a){return(r.getAttribute(a)||"").match(/\S+/g)||[]}const Rw="cdk-describedby-message",fl="cdk-describedby-host";let ah=0,oh=(()=>{class r{constructor(e,t){this._platform=t,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+ah++,this._document=e,this._id=(0,u.f3M)(u.AFp)+"-"+ah++}describe(e,t,o){if(!this._canBeDescribed(e,t))return;const l=sh(t,o);"string"!=typeof t?(em(t,this._id),this._messageRegistry.set(l,{messageElement:t,referenceCount:0})):this._messageRegistry.has(l)||this._createMessageElement(t,o),this._isElementDescribedByMessage(e,l)||this._addMessageReference(e,l)}removeDescription(e,t,o){if(!t||!this._isElementNode(e))return;const l=sh(t,o);if(this._isElementDescribedByMessage(e,l)&&this._removeMessageReference(e,l),"string"==typeof t){const c=this._messageRegistry.get(l);c&&0===c.referenceCount&&this._deleteMessageElement(l)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const e=this._document.querySelectorAll(`[${fl}="${this._id}"]`);for(let t=0;t0!=o.indexOf(Rw));e.setAttribute("aria-describedby",t.join(" "))}_addMessageReference(e,t){const o=this._messageRegistry.get(t);(function Hw(r,a,e){const t=is(r,a);t.some(o=>o.trim()==e.trim())||(t.push(e.trim()),r.setAttribute(a,t.join(" ")))})(e,"aria-describedby",o.messageElement.id),e.setAttribute(fl,this._id),o.referenceCount++}_removeMessageReference(e,t){const o=this._messageRegistry.get(t);o.referenceCount--,function Xg(r,a,e){const o=is(r,a).filter(l=>l!=e.trim());o.length?r.setAttribute(a,o.join(" ")):r.removeAttribute(a)}(e,"aria-describedby",o.messageElement.id),e.removeAttribute(fl)}_isElementDescribedByMessage(e,t){const o=is(e,"aria-describedby"),l=this._messageRegistry.get(t),c=l&&l.messageElement.id;return!!c&&-1!=o.indexOf(c)}_canBeDescribed(e,t){if(!this._isElementNode(e))return!1;if(t&&"object"==typeof t)return!0;const o=null==t?"":`${t}`.trim(),l=e.getAttribute("aria-label");return!(!o||l&&l.trim()===o)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(T.K0),u.LFG(Jt))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();function sh(r,a){return"string"==typeof r?`${a||""}/${r}`:r}function em(r,a){r.id||(r.id=`${Rw}-${a}-${ah++}`)}class td extends class Hn{constructor(a){this._items=a,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new De.x,this._typeaheadSubscription=Lt.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new De.x,this.change=new De.x,a instanceof u.n_E&&a.changes.subscribe(e=>{if(this._activeItem){const o=e.toArray().indexOf(this._activeItem);o>-1&&o!==this._activeItemIndex&&(this._activeItemIndex=o)}})}skipPredicate(a){return this._skipPredicateFn=a,this}withWrap(a=!0){return this._wrap=a,this}withVerticalOrientation(a=!0){return this._vertical=a,this}withHorizontalOrientation(a){return this._horizontal=a,this}withAllowedModifierKeys(a){return this._allowedModifierKeys=a,this}withTypeAhead(a=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,bt.b)(e=>this._pressedLetters.push(e)),(0,ul.b)(a),(0,ei.h)(()=>this._pressedLetters.length>0),(0,ze.U)(()=>this._pressedLetters.join(""))).subscribe(e=>{const t=this._getItemsArray();for(let o=1;o!a[l]||this._allowedModifierKeys.indexOf(l)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&o){this.setNextItemActive();break}return;case 38:if(this._vertical&&o){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&o){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&o){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&o){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&o){this.setLastItemActive();break}return;default:return void((o||ar(a,"shiftKey"))&&(a.key&&1===a.key.length?this._letterKeyStream.next(a.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],a.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(a){const e=this._getItemsArray(),t="number"==typeof a?a:e.indexOf(a);this._activeItem=e[t]??null,this._activeItemIndex=t}_setActiveItemByDelta(a){this._wrap?this._setActiveInWrapMode(a):this._setActiveInDefaultMode(a)}_setActiveInWrapMode(a){const e=this._getItemsArray();for(let t=1;t<=e.length;t++){const o=(this._activeItemIndex+a*t+e.length)%e.length;if(!this._skipPredicateFn(e[o]))return void this.setActiveItem(o)}}_setActiveInDefaultMode(a){this._setActiveItemByIndex(this._activeItemIndex+a,a)}_setActiveItemByIndex(a,e){const t=this._getItemsArray();if(t[a]){for(;this._skipPredicateFn(t[a]);)if(!t[a+=e])return;this.setActiveItem(a)}}_getItemsArray(){return this._items instanceof u.n_E?this._items.toArray():this._items}}{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(a){return this._origin=a,this}setActiveItem(a){super.setActiveItem(a),this.activeItem&&this.activeItem.focus(this._origin)}}let id=(()=>{class r{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function kw(r){return!!(r.offsetWidth||r.offsetHeight||"function"==typeof r.getClientRects&&r.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const t=function Iw(r){try{return r.frameElement}catch{return null}}(function Fw(r){return r.ownerDocument&&r.ownerDocument.defaultView||window}(e));if(t&&(-1===ch(t)||!this.isVisible(t)))return!1;let o=e.nodeName.toLowerCase(),l=ch(e);return e.hasAttribute("contenteditable")?-1!==l:!("iframe"===o||"object"===o||this._platform.WEBKIT&&this._platform.IOS&&!function im(r){let a=r.nodeName.toLowerCase(),e="input"===a&&r.type;return"text"===e||"password"===e||"select"===a||"textarea"===a}(e))&&("audio"===o?!!e.hasAttribute("controls")&&-1!==l:"video"===o?-1!==l&&(null!==l||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,t){return function Lw(r){return!function Vw(r){return function Ow(r){return"input"==r.nodeName.toLowerCase()}(r)&&"hidden"==r.type}(r)&&(function tm(r){let a=r.nodeName.toLowerCase();return"input"===a||"select"===a||"button"===a||"textarea"===a}(r)||function Bw(r){return function lt(r){return"a"==r.nodeName.toLowerCase()}(r)&&r.hasAttribute("href")}(r)||r.hasAttribute("contenteditable")||lh(r))}(e)&&!this.isDisabled(e)&&(t?.ignoreVisibility||this.isVisible(e))}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(Jt))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();function lh(r){if(!r.hasAttribute("tabindex")||void 0===r.tabIndex)return!1;let a=r.getAttribute("tabindex");return!(!a||isNaN(parseInt(a,10)))}function ch(r){if(!lh(r))return null;const a=parseInt(r.getAttribute("tabindex")||"",10);return isNaN(a)?-1:a}class nm{constructor(a,e,t,o,l=!1){this._element=a,this._checker=e,this._ngZone=t,this._document=o,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,l||this.attachAnchors()}get enabled(){return this._enabled}set enabled(a){this._enabled=a,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(a,this._startAnchor),this._toggleAnchorTabIndex(a,this._endAnchor))}destroy(){const a=this._startAnchor,e=this._endAnchor;a&&(a.removeEventListener("focus",this.startAnchorListener),a.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),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(a){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(a)))})}focusFirstTabbableElementWhenReady(a){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(a)))})}focusLastTabbableElementWhenReady(a){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(a)))})}_getRegionBoundary(a){const e=this._element.querySelectorAll(`[cdk-focus-region-${a}], [cdkFocusRegion${a}], [cdk-focus-${a}]`);return"start"==a?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(a){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const t=this._getFirstTabbableElement(e);return t?.focus(a),!!t}return e.focus(a),!0}return this.focusFirstTabbableElement(a)}focusFirstTabbableElement(a){const e=this._getRegionBoundary("start");return e&&e.focus(a),!!e}focusLastTabbableElement(a){const e=this._getRegionBoundary("end");return e&&e.focus(a),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(a){if(this._checker.isFocusable(a)&&this._checker.isTabbable(a))return a;const e=a.children;for(let t=0;t=0;t--){const o=e[t].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[t]):null;if(o)return o}return null}_createAnchor(){const a=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,a),a.classList.add("cdk-visually-hidden"),a.classList.add("cdk-focus-trap-anchor"),a.setAttribute("aria-hidden","true"),a}_toggleAnchorTabIndex(a,e){a?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(a){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(a,this._startAnchor),this._toggleAnchorTabIndex(a,this._endAnchor))}_executeOnStable(a){this._ngZone.isStable?a():this._ngZone.onStable.pipe((0,Gt.q)(1)).subscribe(a)}}let dh=(()=>{class r{constructor(e,t,o){this._checker=e,this._ngZone=t,this._document=o}create(e,t=!1){return new nm(e,this._checker,this._ngZone,this._document,t)}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(id),u.LFG(u.R0b),u.LFG(T.K0))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();function or(r){return 0===r.buttons||0===r.offsetX&&0===r.offsetY}function nd(r){const a=r.touches&&r.touches[0]||r.changedTouches&&r.changedTouches[0];return!(!a||-1!==a.identifier||null!=a.radiusX&&1!==a.radiusX||null!=a.radiusY&&1!==a.radiusY)}const uh=new u.OlP("cdk-input-modality-detector-options"),hh={ignoreKeys:[18,17,224,91,16]},gl=Dn({passive:!0,capture:!0});let UT=(()=>{class r{constructor(e,t,o,l){this._platform=e,this._mostRecentTarget=null,this._modality=new di(null),this._lastTouchMs=0,this._onKeydown=c=>{this._options?.ignoreKeys?.some(n=>n===c.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Ei(c))},this._onMousedown=c=>{Date.now()-this._lastTouchMs<650||(this._modality.next(or(c)?"keyboard":"mouse"),this._mostRecentTarget=Ei(c))},this._onTouchstart=c=>{nd(c)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Ei(c))},this._options={...hh,...l},this.modalityDetected=this._modality.pipe(Gg(1)),this.modalityChanged=this.modalityDetected.pipe(qg()),e.isBrowser&&t.runOutsideAngular(()=>{o.addEventListener("keydown",this._onKeydown,gl),o.addEventListener("mousedown",this._onMousedown,gl),o.addEventListener("touchstart",this._onTouchstart,gl)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,gl),document.removeEventListener("mousedown",this._onMousedown,gl),document.removeEventListener("touchstart",this._onTouchstart,gl))}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(Jt),u.LFG(u.R0b),u.LFG(T.K0),u.LFG(uh,8))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const ns=new u.OlP("cdk-focus-monitor-default-options"),rd=Dn({passive:!0,capture:!0});let mn=(()=>{class r{constructor(e,t,o,l,c){this._ngZone=e,this._platform=t,this._inputModalityDetector=o,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new De.x,this._rootNodeFocusAndBlurListener=n=>{for(let s=Ei(n);s;s=s.parentElement)"focus"===n.type?this._onFocus(n,s):this._onBlur(n,s)},this._document=l,this._detectionMode=c?.detectionMode||0}monitor(e,t=!1){const o=ri(e);if(!this._platform.isBrowser||1!==o.nodeType)return(0,Me.of)(null);const l=Zo(o)||this._getDocument(),c=this._elementInfo.get(o);if(c)return t&&(c.checkChildren=!0),c.subject;const n={checkChildren:t,subject:new De.x,rootNode:l};return this._elementInfo.set(o,n),this._registerGlobalListeners(n),n.subject}stopMonitoring(e){const t=ri(e),o=this._elementInfo.get(t);o&&(o.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(o))}focusVia(e,t,o){const l=ri(e);l===this._getDocument().activeElement?this._getClosestElementsInfo(l).forEach(([n,i])=>this._originChanged(n,t,i)):(this._setOrigin(t),"function"==typeof l.focus&&l.focus(o))}ngOnDestroy(){this._elementInfo.forEach((e,t)=>this.stopMonitoring(t))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,t){e.classList.toggle("cdk-focused",!!t),e.classList.toggle("cdk-touch-focused","touch"===t),e.classList.toggle("cdk-keyboard-focused","keyboard"===t),e.classList.toggle("cdk-mouse-focused","mouse"===t),e.classList.toggle("cdk-program-focused","program"===t)}_setOrigin(e,t=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&t,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,t){const o=this._elementInfo.get(t),l=Ei(e);!o||!o.checkChildren&&t!==l||this._originChanged(t,this._getFocusOrigin(l),o)}_onBlur(e,t){const o=this._elementInfo.get(t);!o||o.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(o,null))}_emitOrigin(e,t){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(t))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const t=e.rootNode,o=this._rootNodeFocusListenerCount.get(t)||0;o||this._ngZone.runOutsideAngular(()=>{t.addEventListener("focus",this._rootNodeFocusAndBlurListener,rd),t.addEventListener("blur",this._rootNodeFocusAndBlurListener,rd)}),this._rootNodeFocusListenerCount.set(t,o+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(st(this._stopInputModalityDetector)).subscribe(l=>{this._setOrigin(l,!0)}))}_removeGlobalListeners(e){const t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){const o=this._rootNodeFocusListenerCount.get(t);o>1?this._rootNodeFocusListenerCount.set(t,o-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,rd),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,rd),this._rootNodeFocusListenerCount.delete(t))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,t,o){this._setClasses(e,t),this._emitOrigin(o,t),this._lastFocusOrigin=t}_getClosestElementsInfo(e){const t=[];return this._elementInfo.forEach((o,l)=>{(l===e||o.checkChildren&&l.contains(e))&&t.push([l,o])}),t}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:t,mostRecentModality:o}=this._inputModalityDetector;if("mouse"!==o||!t||t===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const l=e.labels;if(l)for(let c=0;c{class r{constructor(e,t){this._platform=e,this._document=t,this._breakpointSubscription=(0,u.f3M)(ts).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const t=this._document.defaultView||window,o=t&&t.getComputedStyle?t.getComputedStyle(e):null,l=(o&&o.backgroundColor||"").replace(/ /g,"");switch(e.remove(),l){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(gh,am,fh),this._hasCheckedHighContrastMode=!0;const t=this.getHighContrastMode();1===t?e.add(gh,am):2===t&&e.add(gh,fh)}}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(Jt),u.LFG(T.K0))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),ml=(()=>{class r{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(om))},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({imports:[es]}),r})();const qw=new u.OlP("cdk-dir-doc",{providedIn:"root",factory:function Ww(){return(0,u.f3M)(T.K0)}}),sm=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let an=(()=>{class r{constructor(e){if(this.value="ltr",this.change=new u.vpe,e){const o=e.documentElement?e.documentElement.dir:null;this.value=function $w(r){const a=r?.toLowerCase()||"";return"auto"===a&&typeof navigator<"u"&&navigator?.language?sm.test(navigator.language)?"rtl":"ltr":"rtl"===a?"rtl":"ltr"}((e.body?e.body.dir:null)||o||"ltr")}}ngOnDestroy(){this.change.complete()}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(qw,8))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),ha=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({}),r})();const Kw=new u.OlP("mat-sanity-checks",{providedIn:"root",factory:function cm(){return!0}});let qe=(()=>{class r{constructor(e,t,o){this._sanityChecks=t,this._document=o,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!Yc()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(om),u.LFG(Kw,8),u.LFG(T.K0))},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({imports:[ha,ha]}),r})();function fa(r){return class extends r{constructor(...a){super(...a),this._disabled=!1}get disabled(){return this._disabled}set disabled(a){this._disabled=tt(a)}}}function oo(r,a){return class extends r{constructor(...e){super(...e),this.defaultColor=a,this.color=a}get color(){return this._color}set color(e){const t=e||this.defaultColor;t!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),t&&this._elementRef.nativeElement.classList.add(`mat-${t}`),this._color=t)}}}function Ir(r){return class extends r{constructor(...a){super(...a),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(a){this._disableRipple=tt(a)}}}function bl(r){return class extends r{constructor(...a){super(...a),this.errorState=!1}updateErrorState(){const a=this.errorState,l=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);l!==a&&(this.errorState=l,this.stateChanges.next())}}}const bh=new u.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function Ch(){return(0,u.f3M)(u.soG)}});class on{constructor(){this._localeChanges=new De.x,this.localeChanges=this._localeChanges}getValidDateOrNull(a){return this.isDateInstance(a)&&this.isValid(a)?a:null}deserialize(a){return null==a||this.isDateInstance(a)&&this.isValid(a)?a:this.invalid()}setLocale(a){this.locale=a,this._localeChanges.next()}compareDate(a,e){return this.getYear(a)-this.getYear(e)||this.getMonth(a)-this.getMonth(e)||this.getDate(a)-this.getDate(e)}sameDate(a,e){if(a&&e){let t=this.isValid(a),o=this.isValid(e);return t&&o?!this.compareDate(a,e):t==o}return a==e}clampDate(a,e,t){return e&&this.compareDate(a,e)<0?e:t&&this.compareDate(a,t)>0?t:a}}const yh=new u.OlP("mat-date-formats"),Xw=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function wh(r,a){const e=Array(r);for(let t=0;t{class r extends on{constructor(e,t){super(),this.useUtcForDisplay=!1,super.setLocale(e)}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){const t=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return wh(12,o=>this._format(t,new Date(2017,o,1)))}getDateNames(){const e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return wh(31,t=>this._format(e,new Date(2017,0,t+1)))}getDayOfWeekNames(e){const t=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return wh(7,o=>this._format(t,new Date(2017,0,o+1)))}getYearName(e){const t=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(t,e)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,t,o){let l=this._createDateWithOverflow(e,t,o);return l.getMonth(),l}today(){return new Date}parse(e,t){return"number"==typeof e?new Date(e):e?new Date(Date.parse(e)):null}format(e,t){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");const o=new Intl.DateTimeFormat(this.locale,{...t,timeZone:"utc"});return this._format(o,e)}addCalendarYears(e,t){return this.addCalendarMonths(e,12*t)}addCalendarMonths(e,t){let o=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+t,this.getDate(e));return this.getMonth(o)!=((this.getMonth(e)+t)%12+12)%12&&(o=this._createDateWithOverflow(this.getYear(o),this.getMonth(o),0)),o}addCalendarDays(e,t){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+t)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if("string"==typeof e){if(!e)return null;if(Xw.test(e)){let t=new Date(e);if(this.isValid(t))return t}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(e,t,o){const l=new Date;return l.setFullYear(e,t,o),l.setHours(0,0,0,0),l}_2digit(e){return("00"+e).slice(-2)}_format(e,t){const o=new Date;return o.setUTCFullYear(t.getFullYear(),t.getMonth(),t.getDate()),o.setUTCHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e.format(o)}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(bh,8),u.LFG(Jt))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac}),r})();const ev={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 hm=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({providers:[{provide:on,useClass:um}]}),r})(),tv=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({providers:[{provide:yh,useValue:ev}],imports:[hm]}),r})(),sd=(()=>{class r{isErrorState(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),rs=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({imports:[qe,qe]}),r})();class $T{constructor(a,e,t,o=!1){this._renderer=a,this.element=e,this.config=t,this._animationForciblyDisabledThroughCss=o,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const iv={enterDuration:225,exitDuration:150},gm=Dn({passive:!0}),nv=["mousedown","touchstart"],rv=["mouseup","mouseleave","touchend","touchcancel"];class av{constructor(a,e,t,o){this._target=a,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,o.isBrowser&&(this._containerElement=ri(t))}fadeInRipple(a,e,t={}){const o=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),l={...iv,...t.animation};t.centered&&(a=o.left+o.width/2,e=o.top+o.height/2);const c=t.radius||function YT(r,a,e){const t=Math.max(Math.abs(r-e.left),Math.abs(r-e.right)),o=Math.max(Math.abs(a-e.top),Math.abs(a-e.bottom));return Math.sqrt(t*t+o*o)}(a,e,o),n=a-o.left,i=e-o.top,s=l.enterDuration,d=document.createElement("div");d.classList.add("mat-ripple-element"),d.style.left=n-c+"px",d.style.top=i-c+"px",d.style.height=2*c+"px",d.style.width=2*c+"px",null!=t.color&&(d.style.backgroundColor=t.color),d.style.transitionDuration=`${s}ms`,this._containerElement.appendChild(d);const h=window.getComputedStyle(d),b=h.transitionDuration,H="none"===h.transitionProperty||"0s"===b||"0s, 0s"===b,z=new $T(this,d,t,H);d.style.transform="scale3d(1, 1, 1)",z.state=0,t.persistent||(this._mostRecentTransientRipple=z);let ae=null;return!H&&(s||l.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const ke=()=>this._finishRippleTransition(z),ct=()=>this._destroyRipple(z);d.addEventListener("transitionend",ke),d.addEventListener("transitioncancel",ct),ae={onTransitionEnd:ke,onTransitionCancel:ct}}),this._activeRipples.set(z,ae),(H||!s)&&this._finishRippleTransition(z),z}fadeOutRipple(a){if(2===a.state||3===a.state)return;const e=a.element,t={...iv,...a.config.animation};e.style.transitionDuration=`${t.exitDuration}ms`,e.style.opacity="0",a.state=2,(a._animationForciblyDisabledThroughCss||!t.exitDuration)&&this._finishRippleTransition(a)}fadeOutAll(){this._getActiveRipples().forEach(a=>a.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(a=>{a.config.persistent||a.fadeOut()})}setupTriggerEvents(a){const e=ri(a);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(nv))}handleEvent(a){"mousedown"===a.type?this._onMousedown(a):"touchstart"===a.type?this._onTouchStart(a):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(rv),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(a){0===a.state?this._startFadeOutTransition(a):2===a.state&&this._destroyRipple(a)}_startFadeOutTransition(a){const e=a===this._mostRecentTransientRipple,{persistent:t}=a.config;a.state=1,!t&&(!e||!this._isPointerDown)&&a.fadeOut()}_destroyRipple(a){const e=this._activeRipples.get(a)??null;this._activeRipples.delete(a),this._activeRipples.size||(this._containerRect=null),a===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),a.state=3,null!==e&&(a.element.removeEventListener("transitionend",e.onTransitionEnd),a.element.removeEventListener("transitioncancel",e.onTransitionCancel)),a.element.remove()}_onMousedown(a){const e=or(a),t=this._lastTouchStartEvent&&Date.now(){!a.config.persistent&&(1===a.state||a.config.terminateOnPointerUp&&0===a.state)&&a.fadeOut()}))}_registerEvents(a){this._ngZone.runOutsideAngular(()=>{a.forEach(e=>{this._triggerElement.addEventListener(e,this,gm)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(nv.forEach(a=>{this._triggerElement.removeEventListener(a,this,gm)}),this._pointerUpEventsRegistered&&rv.forEach(a=>{this._triggerElement.removeEventListener(a,this,gm)}))}}const ov=new u.OlP("mat-ripple-global-options");let so=(()=>{class r{constructor(e,t,o,l,c){this._elementRef=e,this._animationMode=c,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=l||{},this._rippleRenderer=new av(this,t,e,o)}get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...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(e,t=0,o){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,{...this.rippleConfig,...o}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...e})}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(u.SBq),u.Y36(u.R0b),u.Y36(Jt),u.Y36(ov,8),u.Y36(u.QbO,8))},r.\u0275dir=u.lG2({type:r,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&u.ekj("mat-ripple-unbounded",t.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),r})(),hi=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({imports:[qe,qe]}),r})(),Ah=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({imports:[qe]}),r})(),xh=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({imports:[hi,T.ez,qe,Ah]}),r})();const ld=["mat-button",""],as=["*"],cd=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],yl=oo(fa(Ir(class{constructor(r){this._elementRef=r}})));let sn=(()=>{class r extends yl{constructor(e,t,o){super(e),this._focusMonitor=t,this._animationMode=o,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const l of cd)this._hasHostAttributes(l)&&this._getHostElement().classList.add(l);e.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(e,t){e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...e){return e.some(t=>this._getHostElement().hasAttribute(t))}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(u.SBq),u.Y36(mn),u.Y36(u.QbO,8))},r.\u0275cmp=u.Xpm({type:r,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(e,t){if(1&e&&u.Gf(so,5),2&e){let o;u.iGM(o=u.CRH())&&(t.ripple=o.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,t){2&e&&(u.uIk("disabled",t.disabled||null),u.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-button-disabled",t.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[u.qOj],attrs:ld,ngContentSelectors:as,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(e,t){1&e&&(u.F$t(),u.TgZ(0,"span",0),u.Hsn(1),u.qZA(),u._UZ(2,"span",1)(3,"span",2)),2&e&&(u.xp6(2),u.ekj("mat-button-ripple-round",t.isRoundButton||t.isIconButton),u.Q6J("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",t.isIconButton)("matRippleTrigger",t._getHostElement()))},dependencies:[so],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.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;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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-fab._mat-animation-noopable{transition:none !important;animation:none !important}.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;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.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:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.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}"],encapsulation:2,changeDetection:0}),r})(),Rn=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({imports:[hi,qe,qe]}),r})();var Th=x(1144),In=x(576),Eh=x(3268);const Sh=["addListener","removeListener"],hv=["addEventListener","removeEventListener"],eE=["on","off"];function ss(r,a,e,t){if((0,In.m)(e)&&(t=e,e=void 0),t)return ss(r,a,e).pipe((0,Eh.Z)(t));const[o,l]=function wm(r){return(0,In.m)(r.addEventListener)&&(0,In.m)(r.removeEventListener)}(r)?hv.map(c=>n=>r[c](a,n,e)):function pv(r){return(0,In.m)(r.addListener)&&(0,In.m)(r.removeListener)}(r)?Sh.map(Mh(r,a)):function ym(r){return(0,In.m)(r.on)&&(0,In.m)(r.off)}(r)?eE.map(Mh(r,a)):[];if(!o&&(0,Th.z)(r))return(0,yi.z)(c=>ss(c,a,e))((0,Jn.Xf)(r));if(!o)throw new TypeError("Invalid event target");return new bi.y(c=>{const n=(...i)=>c.next(1l(n)})}function Mh(r,a){return e=>t=>r[e](a,t)}var vm=x(4408);const Si={schedule(r){let a=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:t}=Si;t&&(a=t.requestAnimationFrame,e=t.cancelAnimationFrame);const o=a(l=>{e=void 0,r(l)});return new Lt.w0(()=>e?.(o))},requestAnimationFrame(...r){const{delegate:a}=Si;return(a?.requestAnimationFrame||requestAnimationFrame)(...r)},cancelAnimationFrame(...r){const{delegate:a}=Si;return(a?.cancelAnimationFrame||cancelAnimationFrame)(...r)},delegate:void 0};var xm=x(7565);const Tm=new class tE extends xm.v{flush(a){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:t}=this;let o;a=a||t.shift();do{if(o=a.execute(a.state,a.delay))break}while((a=t[0])&&a.id===e&&t.shift());if(this._active=!1,o){for(;(a=t[0])&&a.id===e&&t.shift();)a.unsubscribe();throw o}}}(class Am extends vm.o{constructor(a,e){super(a,e),this.scheduler=a,this.work=e}requestAsyncId(a,e,t=0){return null!==t&&t>0?super.requestAsyncId(a,e,t):(a.actions.push(this),a._scheduled||(a._scheduled=Si.requestAnimationFrame(()=>a.flush(void 0))))}recycleAsyncId(a,e,t=0){if(null!=t&&t>0||null==t&&this.delay>0)return super.recycleAsyncId(a,e,t);a.actions.some(o=>o.id===e)||(Si.cancelAnimationFrame(e),a._scheduled=void 0)}});let Dh,Sm=1;const dd={};function Mm(r){return r in dd&&(delete dd[r],!0)}const Dm={setImmediate(r){const a=Sm++;return dd[a]=!0,Dh||(Dh=Promise.resolve()),Dh.then(()=>Mm(a)&&r()),a},clearImmediate(r){Mm(r)}},{setImmediate:Hm,clearImmediate:fv}=Dm,ud={setImmediate(...r){const{delegate:a}=ud;return(a?.setImmediate||Hm)(...r)},clearImmediate(r){const{delegate:a}=ud;return(a?.clearImmediate||fv)(r)},delegate:void 0},Hh=new class Rm extends xm.v{flush(a){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:t}=this;let o;a=a||t.shift();do{if(o=a.execute(a.state,a.delay))break}while((a=t[0])&&a.id===e&&t.shift());if(this._active=!1,o){for(;(a=t[0])&&a.id===e&&t.shift();)a.unsubscribe();throw o}}}(class Pm extends vm.o{constructor(a,e){super(a,e),this.scheduler=a,this.work=e}requestAsyncId(a,e,t=0){return null!==t&&t>0?super.requestAsyncId(a,e,t):(a.actions.push(this),a._scheduled||(a._scheduled=ud.setImmediate(a.flush.bind(a,void 0))))}recycleAsyncId(a,e,t=0){if(null!=t&&t>0||null==t&&this.delay>0)return super.recycleAsyncId(a,e,t);a.actions.some(o=>o.id===e)||(ud.clearImmediate(e),a._scheduled=void 0)}});function Ki(r){return!!r&&(r instanceof bi.y||(0,In.m)(r.lift)&&(0,In.m)(r.subscribe))}var Im=x(4986),km=x(2805);function wl(r,a=Im.z){return function gv(r){return(0,tn.e)((a,e)=>{let t=!1,o=null,l=null,c=!1;const n=()=>{if(l?.unsubscribe(),l=null,t){t=!1;const s=o;o=null,e.next(s)}c&&e.complete()},i=()=>{l=null,c&&e.complete()};a.subscribe((0,ji.x)(e,s=>{t=!0,o=s,l||(0,Jn.Xf)(r(s)).subscribe(l=(0,ji.x)(e,n,i))},()=>{c=!0,(!t||!l||l.closed)&&e.complete()}))})}(()=>(0,km.H)(r,a))}var _v=x(6063);class bv extends De.x{constructor(a=1/0,e=1/0,t=_v.l){super(),this._bufferSize=a,this._windowTime=e,this._timestampProvider=t,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,a),this._windowTime=Math.max(1,e)}next(a){const{isStopped:e,_buffer:t,_infiniteTimeWindow:o,_timestampProvider:l,_windowTime:c}=this;e||(t.push(a),!o&&t.push(l.now()+c)),this._trimBuffer(),super.next(a)}_subscribe(a){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(a),{_infiniteTimeWindow:t,_buffer:o}=this,l=o.slice();for(let c=0;cnew bv(t,a,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}class Rh extends class Cv{}{constructor(a){super(),this._data=a}connect(){return Ki(this._data)?this._data:(0,Me.of)(this._data)}disconnect(){}}class pd{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(a,e,t,o,l){a.forEachOperation((c,n,i)=>{let s,d;null==c.previousIndex?(s=this._insertView(()=>t(c,n,i),i,e,o(c)),d=s?1:0):null==i?(this._detachAndCacheView(n,e),d=3):(s=this._moveView(n,i,e,o(c)),d=2),l&&l({context:s?.context,operation:d,record:c})})}detach(){for(const a of this._viewCache)a.destroy();this._viewCache=[]}_insertView(a,e,t,o){const l=this._insertViewFromCache(e,t);if(l)return void(l.context.$implicit=o);const c=a();return t.createEmbeddedView(c.templateRef,c.context,c.index)}_detachAndCacheView(a,e){const t=e.detach(a);this._maybeCacheView(t,e)}_moveView(a,e,t,o){const l=t.get(a);return t.move(l,e),l.context.$implicit=o,l}_maybeCacheView(a,e){if(this._viewCache.length0?l/this._itemSize:0;if(e.end>o){const i=Math.ceil(t/this._itemSize),s=Math.max(0,Math.min(c,o-i));c!=s&&(c=s,l=s*this._itemSize,e.start=Math.floor(c)),e.end=Math.max(0,Math.min(o,e.start+i))}const n=l-e.start*this._itemSize;if(n0&&(e.end=Math.min(o,e.end+s),e.start=Math.max(0,Math.floor(c-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(e),this._viewport.setRenderedContentOffset(this._itemSize*e.start),this._scrolledIndexChange.next(Math.floor(c))}}function Lm(r){return r._scrollStrategy}let Fm=(()=>{class r{constructor(){this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new Om(this.itemSize,this.minBufferPx,this.maxBufferPx)}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=wi(e)}get minBufferPx(){return this._minBufferPx}set minBufferPx(e){this._minBufferPx=wi(e)}get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(e){this._maxBufferPx=wi(e)}ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275dir=u.lG2({type:r,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[u._Bn([{provide:Bm,useFactory:Lm,deps:[(0,u.Gpc)(()=>r)]}]),u.TTD]}),r})(),co=(()=>{class r{constructor(e,t,o){this._ngZone=e,this._platform=t,this._scrolled=new De.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=o}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new bi.y(t=>{this._globalSubscription||this._addGlobalListener();const o=e>0?this._scrolled.pipe(wl(e)).subscribe(t):this._scrolled.subscribe(t);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,Me.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,t)=>this.deregister(t)),this._scrolled.complete()}ancestorScrolled(e,t){const o=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe((0,ei.h)(l=>!l||o.indexOf(l)>-1))}getAncestorScrollContainers(e){const t=[];return this.scrollContainers.forEach((o,l)=>{this._scrollableContainsElement(l,e)&&t.push(l)}),t}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,t){let o=ri(t),l=e.getElementRef().nativeElement;do{if(o==l)return!0}while(o=o.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>ss(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(u.R0b),u.LFG(Jt),u.LFG(T.K0,8))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),sr=(()=>{class r{constructor(e,t,o,l){this.elementRef=e,this.scrollDispatcher=t,this.ngZone=o,this.dir=l,this._destroyed=new De.x,this._elementScrolled=new bi.y(c=>this.ngZone.runOutsideAngular(()=>ss(this.elementRef.nativeElement,"scroll").pipe(st(this._destroyed)).subscribe(c)))}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(e){const t=this.elementRef.nativeElement,o=this.dir&&"rtl"==this.dir.value;null==e.left&&(e.left=o?e.end:e.start),null==e.right&&(e.right=o?e.start:e.end),null!=e.bottom&&(e.top=t.scrollHeight-t.clientHeight-e.bottom),o&&0!=no()?(null!=e.left&&(e.right=t.scrollWidth-t.clientWidth-e.left),2==no()?e.left=e.right:1==no()&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.left=t.scrollWidth-t.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){const t=this.elementRef.nativeElement;xg()?t.scrollTo(e):(null!=e.top&&(t.scrollTop=e.top),null!=e.left&&(t.scrollLeft=e.left))}measureScrollOffset(e){const t="left",o="right",l=this.elementRef.nativeElement;if("top"==e)return l.scrollTop;if("bottom"==e)return l.scrollHeight-l.clientHeight-l.scrollTop;const c=this.dir&&"rtl"==this.dir.value;return"start"==e?e=c?o:t:"end"==e&&(e=c?t:o),c&&2==no()?e==t?l.scrollWidth-l.clientWidth-l.scrollLeft:l.scrollLeft:c&&1==no()?e==t?l.scrollLeft+l.scrollWidth-l.clientWidth:-l.scrollLeft:e==t?l.scrollLeft:l.scrollWidth-l.clientWidth-l.scrollLeft}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(u.SBq),u.Y36(co),u.Y36(u.R0b),u.Y36(an,8))},r.\u0275dir=u.lG2({type:r,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),r})(),Vr=(()=>{class r{constructor(e,t,o){this._platform=e,this._change=new De.x,this._changeListener=l=>{this._change.next(l)},this._document=o,t.runOutsideAngular(()=>{if(e.isBrowser){const l=this._getWindow();l.addEventListener("resize",this._changeListener),l.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:t,height:o}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+o,right:e.left+t,height:o,width:t}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,t=this._getWindow(),o=e.documentElement,l=o.getBoundingClientRect();return{top:-l.top||e.body.scrollTop||t.scrollY||o.scrollTop||0,left:-l.left||e.body.scrollLeft||t.scrollX||o.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(wl(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(Jt),u.LFG(u.R0b),u.LFG(T.K0,8))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const Al=new u.OlP("VIRTUAL_SCROLLABLE");let Nm=(()=>{class r extends sr{constructor(e,t,o,l){super(e,t,o,l)}measureViewportSize(e){const t=this.elementRef.nativeElement;return"horizontal"===e?t.clientWidth:t.clientHeight}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(u.SBq),u.Y36(co),u.Y36(u.R0b),u.Y36(an,8))},r.\u0275dir=u.lG2({type:r,features:[u.qOj]}),r})();const zm=typeof requestAnimationFrame<"u"?Tm:Hh;let Um=(()=>{class r extends Nm{constructor(e,t,o,l,c,n,i,s){super(e,n,o,c),this.elementRef=e,this._changeDetectorRef=t,this._scrollStrategy=l,this.scrollable=s,this._detachedSubject=new De.x,this._renderedRangeSubject=new De.x,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new bi.y(d=>this._scrollStrategy.scrolledIndexChange.subscribe(h=>Promise.resolve().then(()=>this.ngZone.run(()=>d.next(h))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=Lt.w0.EMPTY,this._viewportChanges=i.change().subscribe(()=>{this.checkViewportSize()}),this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this)}get orientation(){return this._orientation}set orientation(e){this._orientation!==e&&(this._orientation=e,this._calculateSpacerSize())}get appendOnly(){return this._appendOnly}set appendOnly(e){this._appendOnly=tt(e)}ngOnInit(){this.scrollable===this&&super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.scrollable.elementScrolled().pipe(It(null),wl(0,zm)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()}))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(e){this.ngZone.runOutsideAngular(()=>{this._forOf=e,this._forOf.dataStream.pipe(st(this._detachedSubject)).subscribe(t=>{const o=t.length;o!==this._dataLength&&(this._dataLength=o,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}measureBoundingClientRectWithScrollOffset(e){return this.getElementRef().nativeElement.getBoundingClientRect()[e]}setTotalContentSize(e){this._totalContentSize!==e&&(this._totalContentSize=e,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(e){(function kh(r,a){return r.start==a.start&&r.end==a.end})(this._renderedRange,e)||(this.appendOnly&&(e={start:0,end:Math.max(this._renderedRange.end,e.end)}),this._renderedRangeSubject.next(this._renderedRange=e),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(e,t="to-start"){e=this.appendOnly&&"to-start"===t?0:e;const l="horizontal"==this.orientation,c=l?"X":"Y";let i=`translate${c}(${Number((l&&this.dir&&"rtl"==this.dir.value?-1:1)*e)}px)`;this._renderedContentOffset=e,"to-end"===t&&(i+=` translate${c}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=i&&(this._renderedContentTransform=i,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(e,t="auto"){const o={behavior:t};"horizontal"===this.orientation?o.start=e:o.top=e,this.scrollable.scrollTo(o)}scrollToIndex(e,t="auto"){this._scrollStrategy.scrollToIndex(e,t)}measureScrollOffset(e){let t;return t=this.scrollable==this?o=>super.measureScrollOffset(o):o=>this.scrollable.measureScrollOffset(o),Math.max(0,t(e??("horizontal"===this.orientation?"start":"top"))-this.measureViewportOffset())}measureViewportOffset(e){let t;const o="left",l="right",c="rtl"==this.dir?.value;t="start"==e?c?l:o:"end"==e?c?o:l:e||("horizontal"===this.orientation?"left":"top");const n=this.scrollable.measureBoundingClientRectWithScrollOffset(t);return this.elementRef.nativeElement.getBoundingClientRect()[t]-n}measureRenderedContentSize(){const e=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?e.offsetWidth:e.offsetHeight}measureRangeSize(e){return this._forOf?this._forOf.measureRangeSize(e,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}_markChangeDetectionNeeded(e){e&&this._runAfterChangeDetection.push(e),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(()=>this._changeDetectorRef.markForCheck());const e=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const t of e)t()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(u.SBq),u.Y36(u.sBO),u.Y36(u.R0b),u.Y36(Bm,8),u.Y36(an,8),u.Y36(co),u.Y36(Vr),u.Y36(Al,8))},r.\u0275cmp=u.Xpm({type:r,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(e,t){if(1&e&&u.Gf(Ih,7),2&e){let o;u.iGM(o=u.CRH())&&(t._contentWrapper=o.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(e,t){2&e&&u.ekj("cdk-virtual-scroll-orientation-horizontal","horizontal"===t.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==t.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[u._Bn([{provide:sr,useFactory:(a,e)=>a||e,deps:[Nm,r]}]),u.qOj],ngContentSelectors:rE,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(e,t){1&e&&(u.F$t(),u.TgZ(0,"div",0,1),u.Hsn(2),u.qZA(),u._UZ(3,"div",2)),2&e&&(u.xp6(3),u.Udp("width",t._totalContentWidth)("height",t._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}"],encapsulation:2,changeDetection:0}),r})();function Gm(r,a,e){if(!e.getBoundingClientRect)return 0;const o=e.getBoundingClientRect();return"horizontal"===r?"start"===a?o.left:o.right:"start"===a?o.top:o.bottom}let xl=(()=>{class r{constructor(e,t,o,l,c,n){this._viewContainerRef=e,this._template=t,this._differs=o,this._viewRepeater=l,this._viewport=c,this.viewChange=new De.x,this._dataSourceChanges=new De.x,this.dataStream=this._dataSourceChanges.pipe(It(null),function mv(){return(0,tn.e)((r,a)=>{let e,t=!1;r.subscribe((0,ji.x)(a,o=>{const l=e;e=o,t&&a.next([l,o]),t=!0}))})}(),(0,Ci.w)(([i,s])=>this._changeDataSource(i,s)),Ph(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new De.x,this.dataStream.subscribe(i=>{this._data=i,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe(st(this._destroyed)).subscribe(i=>{this._renderedRange=i,this.viewChange.observers.length&&n.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(e){this._cdkVirtualForOf=e,function ga(r){return r&&"function"==typeof r.connect}(e)?this._dataSourceChanges.next(e):this._dataSourceChanges.next(new Rh(Ki(e)?e:Array.from(e||[])))}get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(e){this._needsUpdate=!0,this._cdkVirtualForTrackBy=e?(t,o)=>e(t+(this._renderedRange?this._renderedRange.start:0),o):void 0}set cdkVirtualForTemplate(e){e&&(this._needsUpdate=!0,this._template=e)}get cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set cdkVirtualForTemplateCacheSize(e){this._viewRepeater.viewCacheSize=wi(e)}measureRangeSize(e,t){if(e.start>=e.end)return 0;const o=e.start-this._renderedRange.start,l=e.end-e.start;let c,n;for(let i=0;i-1;i--){const s=this._viewContainerRef.get(i+o);if(s&&s.rootNodes.length){n=s.rootNodes[s.rootNodes.length-1];break}}return c&&n?Gm(t,"end",n)-Gm(t,"start",c):0}ngDoCheck(){if(this._differ&&this._needsUpdate){const e=this._differ.diff(this._renderedItems);e?this._applyChanges(e):this._updateContext(),this._needsUpdate=!1}}ngOnDestroy(){this._viewport.detach(),this._dataSourceChanges.next(void 0),this._dataSourceChanges.complete(),this.viewChange.complete(),this._destroyed.next(),this._destroyed.complete(),this._viewRepeater.detach()}_onRenderedDataChange(){!this._renderedRange||(this._renderedItems=this._data.slice(this._renderedRange.start,this._renderedRange.end),this._differ||(this._differ=this._differs.find(this._renderedItems).create((e,t)=>this.cdkVirtualForTrackBy?this.cdkVirtualForTrackBy(e,t):t)),this._needsUpdate=!0)}_changeDataSource(e,t){return e&&e.disconnect(this),this._needsUpdate=!0,t?t.connect(this):(0,Me.of)()}_updateContext(){const e=this._data.length;let t=this._viewContainerRef.length;for(;t--;){const o=this._viewContainerRef.get(t);o.context.index=this._renderedRange.start+t,o.context.count=e,this._updateComputedContextProperties(o.context),o.detectChanges()}}_applyChanges(e){this._viewRepeater.applyChanges(e,this._viewContainerRef,(l,c,n)=>this._getEmbeddedViewArgs(l,n),l=>l.item),e.forEachIdentityChange(l=>{this._viewContainerRef.get(l.currentIndex).context.$implicit=l.item});const t=this._data.length;let o=this._viewContainerRef.length;for(;o--;){const l=this._viewContainerRef.get(o);l.context.index=this._renderedRange.start+o,l.context.count=t,this._updateComputedContextProperties(l.context)}}_updateComputedContextProperties(e){e.first=0===e.index,e.last=e.index===e.count-1,e.even=e.index%2==0,e.odd=!e.even}_getEmbeddedViewArgs(e,t){return{templateRef:this._template,context:{$implicit:e.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:t}}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(u.s_b),u.Y36(u.Rgc),u.Y36(u.ZZ4),u.Y36(ls),u.Y36(Um,4),u.Y36(u.R0b))},r.\u0275dir=u.lG2({type:r,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},features:[u._Bn([{provide:ls,useClass:pd}])]}),r})(),Br=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({}),r})(),Tl=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({imports:[ha,Br,ha,Br]}),r})();class El{attach(a){return this._attachedHost=a,a.attach(this)}detach(){let a=this._attachedHost;null!=a&&(this._attachedHost=null,a.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(a){this._attachedHost=a}}class gd extends El{constructor(a,e,t,o){super(),this.component=a,this.viewContainerRef=e,this.injector=t,this.componentFactoryResolver=o}}class Sl extends El{constructor(a,e,t,o){super(),this.templateRef=a,this.viewContainerRef=e,this.context=t,this.injector=o}get origin(){return this.templateRef.elementRef}attach(a,e=this.context){return this.context=e,super.attach(a)}detach(){return this.context=void 0,super.detach()}}class vv extends El{constructor(a){super(),this.element=a instanceof u.SBq?a.nativeElement:a}}class Vh{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(a){return a instanceof gd?(this._attachedPortal=a,this.attachComponentPortal(a)):a instanceof Sl?(this._attachedPortal=a,this.attachTemplatePortal(a)):this.attachDomPortal&&a instanceof vv?(this._attachedPortal=a,this.attachDomPortal(a)):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(a){this._disposeFn=a}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class Av extends Vh{constructor(a,e,t,o,l){super(),this.outletElement=a,this._componentFactoryResolver=e,this._appRef=t,this._defaultInjector=o,this.attachDomPortal=c=>{const n=c.element,i=this._document.createComment("dom-portal");n.parentNode.insertBefore(i,n),this.outletElement.appendChild(n),this._attachedPortal=c,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(n,i)})},this._document=l}attachComponentPortal(a){const t=(a.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(a.component);let o;return a.viewContainerRef?(o=a.viewContainerRef.createComponent(t,a.viewContainerRef.length,a.injector||a.viewContainerRef.injector),this.setDisposeFn(()=>o.destroy())):(o=t.create(a.injector||this._defaultInjector||u.zs3.NULL),this._appRef.attachView(o.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(o.hostView),o.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(o)),this._attachedPortal=a,o}attachTemplatePortal(a){let e=a.viewContainerRef,t=e.createEmbeddedView(a.templateRef,a.context,{injector:a.injector});return t.rootNodes.forEach(o=>this.outletElement.appendChild(o)),t.detectChanges(),this.setDisposeFn(()=>{let o=e.indexOf(t);-1!==o&&e.remove(o)}),this._attachedPortal=a,t}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(a){return a.hostView.rootNodes[0]}}let Or=(()=>{class r extends Vh{constructor(e,t,o){super(),this._componentFactoryResolver=e,this._viewContainerRef=t,this._isInitialized=!1,this.attached=new u.vpe,this.attachDomPortal=l=>{const c=l.element,n=this._document.createComment("dom-portal");l.setAttachedHost(this),c.parentNode.insertBefore(n,c),this._getRootNode().appendChild(c),this._attachedPortal=l,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(c,n)})},this._document=o}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(e){e.setAttachedHost(this);const t=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,l=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),c=t.createComponent(l,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(c.hostView.rootNodes[0]),super.setDisposeFn(()=>c.destroy()),this._attachedPortal=e,this._attachedRef=c,this.attached.emit(c),c}attachTemplatePortal(e){e.setAttachedHost(this);const t=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=t,this.attached.emit(t),t}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(u._Vd),u.Y36(u.s_b),u.Y36(T.K0))},r.\u0275dir=u.lG2({type:r,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[u.qOj]}),r})(),_n=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({}),r})();var kn=x(6451);const md=xg();class xv{constructor(a,e){this._viewportRuler=a,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const a=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=a.style.left||"",this._previousHTMLStyles.top=a.style.top||"",a.style.left=Wt(-this._previousScrollPosition.left),a.style.top=Wt(-this._previousScrollPosition.top),a.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const a=this._document.documentElement,t=a.style,o=this._document.body.style,l=t.scrollBehavior||"",c=o.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,a.classList.remove("cdk-global-scrollblock"),md&&(t.scrollBehavior=o.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),md&&(t.scrollBehavior=l,o.scrollBehavior=c)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width}}class Ml{constructor(a,e,t,o){this._scrollDispatcher=a,this._ngZone=e,this._viewportRuler=t,this._config=o,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(a){this._overlayRef=a}enable(){if(this._scrollSubscription)return;const a=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=a.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=a.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Mi{enable(){}disable(){}attach(){}}function Fr(r,a){return a.some(e=>r.bottome.bottom||r.righte.right)}function Dl(r,a){return a.some(e=>r.tope.bottom||r.lefte.right)}class bn{constructor(a,e,t,o){this._scrollDispatcher=a,this._viewportRuler=e,this._ngZone=t,this._config=o,this._scrollSubscription=null}attach(a){this._overlayRef=a}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 e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:t,height:o}=this._viewportRuler.getViewportSize();Fr(e,[{width:t,height:o,bottom:o,right:t,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 Oh=(()=>{class r{constructor(e,t,o,l){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=o,this.noop=()=>new Mi,this.close=c=>new Ml(this._scrollDispatcher,this._ngZone,this._viewportRuler,c),this.block=()=>new xv(this._viewportRuler,this._document),this.reposition=c=>new bn(this._scrollDispatcher,this._viewportRuler,this._ngZone,c),this._document=l}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(co),u.LFG(Vr),u.LFG(u.R0b),u.LFG(T.K0))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();class ma{constructor(a){if(this.scrollStrategy=new Mi,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,a){const e=Object.keys(a);for(const t of e)void 0!==a[t]&&(this[t]=a[t])}}}class cs{constructor(a,e){this.connectionPair=a,this.scrollableViewProperties=e}}let uo=(()=>{class r{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const t=this._attachedOverlays.indexOf(e);t>-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this.detach()}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(T.K0))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),ds=(()=>{class r extends uo{constructor(e,t){super(e),this._ngZone=t,this._keydownListener=o=>{const l=this._attachedOverlays;for(let c=l.length-1;c>-1;c--)if(l[c]._keydownEvents.observers.length>0){const n=l[c]._keydownEvents;this._ngZone?this._ngZone.run(()=>n.next(o)):n.next(o);break}}}add(e){super.add(e),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(T.K0),u.LFG(u.R0b,8))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),us=(()=>{class r extends uo{constructor(e,t,o){super(e),this._platform=t,this._ngZone=o,this._cursorStyleIsSet=!1,this._pointerDownListener=l=>{this._pointerDownEventTarget=Ei(l)},this._clickListener=l=>{const c=Ei(l),n="click"===l.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:c;this._pointerDownEventTarget=null;const i=this._attachedOverlays.slice();for(let s=i.length-1;s>-1;s--){const d=i[s];if(d._outsidePointerEvents.observers.length<1||!d.hasAttached())continue;if(d.overlayElement.contains(c)||d.overlayElement.contains(n))break;const h=d._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>h.next(l)):h.next(l)}}}add(e){if(super.add(e),!this._isAttached){const t=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(t)):this._addEventListeners(t),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(T.K0),u.LFG(Jt),u.LFG(u.R0b,8))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),kl=(()=>{class r{constructor(e,t){this._platform=t,this._document=e}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||Yc()){const o=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let l=0;lthis._backdropClick.next(h),this._backdropTransitionendHandler=h=>{this._disposeBackdrop(h.target)},this._keydownEvents=new De.x,this._outsidePointerEvents=new De.x,o.scrollStrategy&&(this._scrollStrategy=o.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=o.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(a){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const e=this._portalOutlet.attach(a);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,Gt.q)(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),"function"==typeof e?.onDestroy&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),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 a=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),a}dispose(){const a=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),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?.remove(),this._previousHostParent=this._pane=this._host=null,a&&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(a){a!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=a,this.hasAttached()&&(a.attach(this),this.updatePosition()))}updateSize(a){this._config={...this._config,...a},this._updateElementSize()}setDirection(a){this._config={...this._config,direction:a},this._updateElementDirection()}addPanelClass(a){this._pane&&this._toggleClasses(this._pane,a,!0)}removePanelClass(a){this._pane&&this._toggleClasses(this._pane,a,!1)}getDirection(){const a=this._config.direction;return a?"string"==typeof a?a:a.value:"ltr"}updateScrollStrategy(a){a!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=a,this.hasAttached()&&(a.attach(this),a.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const a=this._pane.style;a.width=Wt(this._config.width),a.height=Wt(this._config.height),a.minWidth=Wt(this._config.minWidth),a.minHeight=Wt(this._config.minHeight),a.maxWidth=Wt(this._config.maxWidth),a.maxHeight=Wt(this._config.maxHeight)}_togglePointerEvents(a){this._pane.style.pointerEvents=a?"":"none"}_attachBackdrop(){const a="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),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),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(a)})}):this._backdropElement.classList.add(a)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const a=this._backdropElement;if(a){if(this._animationsDisabled)return void this._disposeBackdrop(a);a.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{a.addEventListener("transitionend",this._backdropTransitionendHandler)}),a.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(a)},500))}}_toggleClasses(a,e,t){const o=eh(e||[]).filter(l=>!!l);o.length&&(t?a.classList.add(...o):a.classList.remove(...o))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const a=this._ngZone.onStable.pipe(st((0,kn.T)(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._host.remove()),a.unsubscribe())})})}_disposeScrollStrategy(){const a=this._scrollStrategy;a&&(a.disable(),a.detach&&a.detach())}_disposeBackdrop(a){a&&(a.removeEventListener("click",this._backdropClickHandler),a.removeEventListener("transitionend",this._backdropTransitionendHandler),a.remove(),this._backdropElement===a&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const Lh="cdk-overlay-connected-position-bounding-box",qm=/([A-Za-z%]+)$/;class Wm{constructor(a,e,t,o,l){this._viewportRuler=e,this._document=t,this._platform=o,this._overlayContainer=l,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 De.x,this._resizeSubscription=Lt.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(a)}get positions(){return this._preferredPositions}attach(a){this._validatePositions(),a.hostElement.classList.add(Lh),this._overlayRef=a,this._boundingBox=a.hostElement,this._pane=a.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(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const a=this._originRect,e=this._overlayRect,t=this._viewportRect,o=this._containerRect,l=[];let c;for(let n of this._preferredPositions){let i=this._getOriginPoint(a,o,n),s=this._getOverlayPoint(i,e,n),d=this._getOverlayFit(s,e,t,n);if(d.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(n,i);this._canFitWithFlexibleDimensions(d,s,t)?l.push({position:n,origin:i,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(i,n)}):(!c||c.overlayFit.visibleAreai&&(i=d,n=s)}return this._isPushed=!1,void this._applyPosition(n.position,n.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(c.position,c.originPoint);this._applyPosition(c.position,c.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&_a(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Lh),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const a=this._lastPosition;if(a){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._getOriginPoint(this._originRect,this._containerRect,a);this._applyPosition(a,e)}else this.apply()}withScrollableContainers(a){return this._scrollables=a,this}withPositions(a){return this._preferredPositions=a,-1===a.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(a){return this._viewportMargin=a,this}withFlexibleDimensions(a=!0){return this._hasFlexibleDimensions=a,this}withGrowAfterOpen(a=!0){return this._growAfterOpen=a,this}withPush(a=!0){return this._canPush=a,this}withLockedPosition(a=!0){return this._positionLocked=a,this}setOrigin(a){return this._origin=a,this}withDefaultOffsetX(a){return this._offsetX=a,this}withDefaultOffsetY(a){return this._offsetY=a,this}withTransformOriginOn(a){return this._transformOriginSelector=a,this}_getOriginPoint(a,e,t){let o,l;if("center"==t.originX)o=a.left+a.width/2;else{const c=this._isRtl()?a.right:a.left,n=this._isRtl()?a.left:a.right;o="start"==t.originX?c:n}return e.left<0&&(o-=e.left),l="center"==t.originY?a.top+a.height/2:"top"==t.originY?a.top:a.bottom,e.top<0&&(l-=e.top),{x:o,y:l}}_getOverlayPoint(a,e,t){let o,l;return o="center"==t.overlayX?-e.width/2:"start"===t.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,l="center"==t.overlayY?-e.height/2:"top"==t.overlayY?0:-e.height,{x:a.x+o,y:a.y+l}}_getOverlayFit(a,e,t,o){const l=jh(e);let{x:c,y:n}=a,i=this._getOffset(o,"x"),s=this._getOffset(o,"y");i&&(c+=i),s&&(n+=s);let f=0-n,b=n+l.height-t.height,H=this._subtractOverflows(l.width,0-c,c+l.width-t.width),z=this._subtractOverflows(l.height,f,b),ae=H*z;return{visibleArea:ae,isCompletelyWithinViewport:l.width*l.height===ae,fitsInViewportVertically:z===l.height,fitsInViewportHorizontally:H==l.width}}_canFitWithFlexibleDimensions(a,e,t){if(this._hasFlexibleDimensions){const o=t.bottom-e.y,l=t.right-e.x,c=Fh(this._overlayRef.getConfig().minHeight),n=Fh(this._overlayRef.getConfig().minWidth),s=a.fitsInViewportHorizontally||null!=n&&n<=l;return(a.fitsInViewportVertically||null!=c&&c<=o)&&s}return!1}_pushOverlayOnScreen(a,e,t){if(this._previousPushAmount&&this._positionLocked)return{x:a.x+this._previousPushAmount.x,y:a.y+this._previousPushAmount.y};const o=jh(e),l=this._viewportRect,c=Math.max(a.x+o.width-l.width,0),n=Math.max(a.y+o.height-l.height,0),i=Math.max(l.top-t.top-a.y,0),s=Math.max(l.left-t.left-a.x,0);let d=0,h=0;return d=o.width<=l.width?s||-c:a.xH&&!this._isInitialRender&&!this._growAfterOpen&&(c=a.y-H/2)}if("end"===e.overlayX&&!o||"start"===e.overlayX&&o)f=t.width-a.x+this._viewportMargin,d=a.x-this._viewportMargin;else if("start"===e.overlayX&&!o||"end"===e.overlayX&&o)h=a.x,d=t.right-a.x;else{const b=Math.min(t.right-a.x+t.left,a.x),H=this._lastBoundingBoxSize.width;d=2*b,h=a.x-b,d>H&&!this._isInitialRender&&!this._growAfterOpen&&(h=a.x-H/2)}return{top:c,left:h,bottom:n,right:f,width:d,height:l}}_setBoundingBoxStyles(a,e){const t=this._calculateBoundingBoxRect(a,e);!this._isInitialRender&&!this._growAfterOpen&&(t.height=Math.min(t.height,this._lastBoundingBoxSize.height),t.width=Math.min(t.width,this._lastBoundingBoxSize.width));const o={};if(this._hasExactPosition())o.top=o.left="0",o.bottom=o.right=o.maxHeight=o.maxWidth="",o.width=o.height="100%";else{const l=this._overlayRef.getConfig().maxHeight,c=this._overlayRef.getConfig().maxWidth;o.height=Wt(t.height),o.top=Wt(t.top),o.bottom=Wt(t.bottom),o.width=Wt(t.width),o.left=Wt(t.left),o.right=Wt(t.right),o.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",o.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",l&&(o.maxHeight=Wt(l)),c&&(o.maxWidth=Wt(c))}this._lastBoundingBoxSize=t,_a(this._boundingBox.style,o)}_resetBoundingBoxStyles(){_a(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){_a(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(a,e){const t={},o=this._hasExactPosition(),l=this._hasFlexibleDimensions,c=this._overlayRef.getConfig();if(o){const d=this._viewportRuler.getViewportScrollPosition();_a(t,this._getExactOverlayY(e,a,d)),_a(t,this._getExactOverlayX(e,a,d))}else t.position="static";let n="",i=this._getOffset(e,"x"),s=this._getOffset(e,"y");i&&(n+=`translateX(${i}px) `),s&&(n+=`translateY(${s}px)`),t.transform=n.trim(),c.maxHeight&&(o?t.maxHeight=Wt(c.maxHeight):l&&(t.maxHeight="")),c.maxWidth&&(o?t.maxWidth=Wt(c.maxWidth):l&&(t.maxWidth="")),_a(this._pane.style,t)}_getExactOverlayY(a,e,t){let o={top:"",bottom:""},l=this._getOverlayPoint(e,this._overlayRect,a);return this._isPushed&&(l=this._pushOverlayOnScreen(l,this._overlayRect,t)),"bottom"===a.overlayY?o.bottom=this._document.documentElement.clientHeight-(l.y+this._overlayRect.height)+"px":o.top=Wt(l.y),o}_getExactOverlayX(a,e,t){let c,o={left:"",right:""},l=this._getOverlayPoint(e,this._overlayRect,a);return this._isPushed&&(l=this._pushOverlayOnScreen(l,this._overlayRect,t)),c=this._isRtl()?"end"===a.overlayX?"left":"right":"end"===a.overlayX?"right":"left","right"===c?o.right=this._document.documentElement.clientWidth-(l.x+this._overlayRect.width)+"px":o.left=Wt(l.x),o}_getScrollVisibility(){const a=this._getOriginRect(),e=this._pane.getBoundingClientRect(),t=this._scrollables.map(o=>o.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Dl(a,t),isOriginOutsideView:Fr(a,t),isOverlayClipped:Dl(e,t),isOverlayOutsideView:Fr(e,t)}}_subtractOverflows(a,...e){return e.reduce((t,o)=>t-Math.max(o,0),a)}_getNarrowedViewportRect(){const a=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,t=this._viewportRuler.getViewportScrollPosition();return{top:t.top+this._viewportMargin,left:t.left+this._viewportMargin,right:t.left+a-this._viewportMargin,bottom:t.top+e-this._viewportMargin,width:a-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(a,e){return"x"===e?a.offsetX??this._offsetX:a.offsetY??this._offsetY}_validatePositions(){}_addPanelClasses(a){this._pane&&eh(a).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(a=>{this._pane.classList.remove(a)}),this._appliedPanelClasses=[])}_getOriginRect(){const a=this._origin;if(a instanceof u.SBq)return a.nativeElement.getBoundingClientRect();if(a instanceof Element)return a.getBoundingClientRect();const e=a.width||0,t=a.height||0;return{top:a.y,bottom:a.y+t,left:a.x,right:a.x+e,height:t,width:e}}}function _a(r,a){for(let e in a)a.hasOwnProperty(e)&&(r[e]=a[e]);return r}function Fh(r){if("number"!=typeof r&&null!=r){const[a,e]=r.split(qm);return e&&"px"!==e?null:parseFloat(a)}return r||null}function jh(r){return{top:Math.floor(r.top),right:Math.floor(r.right),bottom:Math.floor(r.bottom),left:Math.floor(r.left),width:Math.floor(r.width),height:Math.floor(r.height)}}const $m="cdk-global-overlay-wrapper";class Ev{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(a){const e=a.getConfig();this._overlayRef=a,this._width&&!e.width&&a.updateSize({width:this._width}),this._height&&!e.height&&a.updateSize({height:this._height}),a.hostElement.classList.add($m),this._isDisposed=!1}top(a=""){return this._bottomOffset="",this._topOffset=a,this._alignItems="flex-start",this}left(a=""){return this._xOffset=a,this._xPosition="left",this}bottom(a=""){return this._topOffset="",this._bottomOffset=a,this._alignItems="flex-end",this}right(a=""){return this._xOffset=a,this._xPosition="right",this}start(a=""){return this._xOffset=a,this._xPosition="start",this}end(a=""){return this._xOffset=a,this._xPosition="end",this}width(a=""){return this._overlayRef?this._overlayRef.updateSize({width:a}):this._width=a,this}height(a=""){return this._overlayRef?this._overlayRef.updateSize({height:a}):this._height=a,this}centerHorizontally(a=""){return this.left(a),this._xPosition="center",this}centerVertically(a=""){return this.top(a),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const a=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,t=this._overlayRef.getConfig(),{width:o,height:l,maxWidth:c,maxHeight:n}=t,i=!("100%"!==o&&"100vw"!==o||c&&"100%"!==c&&"100vw"!==c),s=!("100%"!==l&&"100vh"!==l||n&&"100%"!==n&&"100vh"!==n),d=this._xPosition,h=this._xOffset,f="rtl"===this._overlayRef.getConfig().direction;let b="",H="",z="";i?z="flex-start":"center"===d?(z="center",f?H=h:b=h):f?"left"===d||"end"===d?(z="flex-end",b=h):("right"===d||"start"===d)&&(z="flex-start",H=h):"left"===d||"start"===d?(z="flex-start",b=h):("right"===d||"end"===d)&&(z="flex-end",H=h),a.position=this._cssPosition,a.marginLeft=i?"0":b,a.marginTop=s?"0":this._topOffset,a.marginBottom=this._bottomOffset,a.marginRight=i?"0":H,e.justifyContent=z,e.alignItems=s?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const a=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,t=e.style;e.classList.remove($m),t.justifyContent=t.alignItems=a.marginTop=a.marginBottom=a.marginLeft=a.marginRight=a.position="",this._overlayRef=null,this._isDisposed=!0}}let Qm=(()=>{class r{constructor(e,t,o,l){this._viewportRuler=e,this._document=t,this._platform=o,this._overlayContainer=l}global(){return new Ev}flexibleConnectedTo(e){return new Wm(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(Vr),u.LFG(T.K0),u.LFG(Jt),u.LFG(kl))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Sv=0,ln=(()=>{class r{constructor(e,t,o,l,c,n,i,s,d,h,f,b){this.scrollStrategies=e,this._overlayContainer=t,this._componentFactoryResolver=o,this._positionBuilder=l,this._keyboardDispatcher=c,this._injector=n,this._ngZone=i,this._document=s,this._directionality=d,this._location=h,this._outsideClickDispatcher=f,this._animationsModuleType=b}create(e){const t=this._createHostElement(),o=this._createPaneElement(t),l=this._createPortalOutlet(o),c=new ma(e);return c.direction=c.direction||this._directionality.value,new hs(l,t,o,c,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(e){const t=this._document.createElement("div");return t.id="cdk-overlay-"+Sv++,t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(u.z2F)),new Av(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(Oh),u.LFG(kl),u.LFG(u._Vd),u.LFG(Qm),u.LFG(ds),u.LFG(u.zs3),u.LFG(u.R0b),u.LFG(T.K0),u.LFG(an),u.LFG(T.Ye),u.LFG(us),u.LFG(u.QbO,8))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac}),r})();const Uh={provide:new u.OlP("cdk-connected-overlay-scroll-strategy"),deps:[ln],useFactory:function _d(r){return()=>r.scrollStrategies.reposition()}};let ps=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({providers:[ln,Uh],imports:[ha,_n,Tl,Tl]}),r})();class Vl{}const lr="*";function $t(r,a){return{type:7,name:r,definitions:a,options:{}}}function wt(r,a=null){return{type:4,styles:a,timings:r}}function Wh(r,a=null){return{type:3,steps:r,options:a}}function bd(r,a=null){return{type:2,steps:r,options:a}}function Fe(r){return{type:6,styles:r,offset:null}}function ft(r,a,e){return{type:0,name:r,styles:a,options:e}}function Ct(r,a,e=null){return{type:1,expr:r,animation:a,options:e}}function Bl(r=null){return{type:9,options:r}}function Ol(r,a,e=null){return{type:11,selector:r,animation:a,options:e}}function Cd(r){Promise.resolve(null).then(r)}class ho{constructor(a=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=a+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(a=>a()),this._onDoneFns=[])}onStart(a){this._originalOnStartFns.push(a),this._onStartFns.push(a)}onDone(a){this._originalOnDoneFns.push(a),this._onDoneFns.push(a)}onDestroy(a){this._onDestroyFns.push(a)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Cd(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(a=>a()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(a=>a()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(a){this._position=this.totalTime?a*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(a){const e="start"==a?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class $h{constructor(a){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=a;let e=0,t=0,o=0;const l=this.players.length;0==l?Cd(()=>this._onFinish()):this.players.forEach(c=>{c.onDone(()=>{++e==l&&this._onFinish()}),c.onDestroy(()=>{++t==l&&this._onDestroy()}),c.onStart(()=>{++o==l&&this._onStart()})}),this.totalTime=this.players.reduce((c,n)=>Math.max(c,n.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(a=>a()),this._onDoneFns=[])}init(){this.players.forEach(a=>a.init())}onStart(a){this._onStartFns.push(a)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(a=>a()),this._onStartFns=[])}onDone(a){this._onDoneFns.push(a)}onDestroy(a){this._onDestroyFns.push(a)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(a=>a.play())}pause(){this.players.forEach(a=>a.pause())}restart(){this.players.forEach(a=>a.restart())}finish(){this._onFinish(),this.players.forEach(a=>a.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(a=>a.destroy()),this._onDestroyFns.forEach(a=>a()),this._onDestroyFns=[])}reset(){this.players.forEach(a=>a.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(a){const e=a*this.totalTime;this.players.forEach(t=>{const o=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(o)})}getPosition(){const a=this.players.reduce((e,t)=>null===e||t.totalTime>e.totalTime?t:e,null);return null!=a?a.getPosition():0}beforeDestroy(){this.players.forEach(a=>{a.beforeDestroy&&a.beforeDestroy()})}triggerCallback(a){const e="start"==a?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}const Jm=["connectionContainer"],Km=["inputContainer"],Zm=["label"];function Xm(r,a){1&r&&(u.ynx(0),u.TgZ(1,"div",14),u._UZ(2,"div",15)(3,"div",16)(4,"div",17),u.qZA(),u.TgZ(5,"div",18),u._UZ(6,"div",15)(7,"div",16)(8,"div",17),u.qZA(),u.BQk())}function e_(r,a){if(1&r){const e=u.EpF();u.TgZ(0,"div",19),u.NdJ("cdkObserveContent",function(){u.CHM(e);const o=u.oxw();return u.KtG(o.updateOutlineGap())}),u.Hsn(1,1),u.qZA()}if(2&r){const e=u.oxw();u.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)}}function t_(r,a){if(1&r&&(u.ynx(0),u.Hsn(1,2),u.TgZ(2,"span"),u._uU(3),u.qZA(),u.BQk()),2&r){const e=u.oxw(2);u.xp6(3),u.Oqu(e._control.placeholder)}}function _E(r,a){1&r&&u.Hsn(0,3,["*ngSwitchCase","true"])}function Hv(r,a){1&r&&(u.TgZ(0,"span",23),u._uU(1," *"),u.qZA())}function Pv(r,a){if(1&r){const e=u.EpF();u.TgZ(0,"label",20,21),u.NdJ("cdkObserveContent",function(){u.CHM(e);const o=u.oxw();return u.KtG(o.updateOutlineGap())}),u.YNc(2,t_,4,1,"ng-container",12),u.YNc(3,_E,1,0,"ng-content",12),u.YNc(4,Hv,2,0,"span",22),u.qZA()}if(2&r){const e=u.oxw();u.ekj("mat-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-form-field-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-accent","accent"==e.color)("mat-warn","warn"==e.color),u.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),u.uIk("for",e._control.id)("aria-owns",e._control.id),u.xp6(2),u.Q6J("ngSwitchCase",!1),u.xp6(1),u.Q6J("ngSwitchCase",!0),u.xp6(1),u.Q6J("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function i_(r,a){1&r&&(u.TgZ(0,"div",24),u.Hsn(1,4),u.qZA())}function Rv(r,a){if(1&r&&(u.TgZ(0,"div",25),u._UZ(1,"span",26),u.qZA()),2&r){const e=u.oxw();u.xp6(1),u.ekj("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function pi(r,a){if(1&r&&(u.TgZ(0,"div"),u.Hsn(1,5),u.qZA()),2&r){const e=u.oxw();u.Q6J("@transitionMessages",e._subscriptAnimationState)}}function n_(r,a){if(1&r&&(u.TgZ(0,"div",30),u._uU(1),u.qZA()),2&r){const e=u.oxw(2);u.Q6J("id",e._hintLabelId),u.xp6(1),u.Oqu(e.hintLabel)}}function Iv(r,a){if(1&r&&(u.TgZ(0,"div",27),u.YNc(1,n_,2,2,"div",28),u.Hsn(2,6),u._UZ(3,"div",29),u.Hsn(4,7),u.qZA()),2&r){const e=u.oxw();u.Q6J("@transitionMessages",e._subscriptAnimationState),u.xp6(1),u.Q6J("ngIf",e.hintLabel)}}const kv=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],r_=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let Vv=0;const Qh=new u.OlP("MatError");let fs=(()=>{class r{constructor(e,t){this.id="mat-error-"+Vv++,e||t.nativeElement.setAttribute("aria-live","polite")}}return r.\u0275fac=function(e){return new(e||r)(u.$8M("aria-live"),u.Y36(u.SBq))},r.\u0275dir=u.lG2({type:r,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(e,t){2&e&&u.uIk("id",t.id)},inputs:{id:"id"},features:[u._Bn([{provide:Qh,useExisting:r}])]}),r})();const gs={transitionMessages:$t("transitionMessages",[ft("enter",Fe({opacity:1,transform:"translateY(0%)"})),Ct("void => enter",[Fe({opacity:0,transform:"translateY(-5px)"}),wt("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let wd=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275dir=u.lG2({type:r}),r})(),a_=0;const Ov=new u.OlP("MatHint");let Yh=(()=>{class r{constructor(){this.align="start",this.id="mat-hint-"+a_++}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275dir=u.lG2({type:r,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(e,t){2&e&&(u.uIk("id",t.id)("align",null),u.ekj("mat-form-field-hint-end","end"===t.align))},inputs:{align:"align",id:"id"},features:[u._Bn([{provide:Ov,useExisting:r}])]}),r})(),Ca=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275dir=u.lG2({type:r,selectors:[["mat-label"]]}),r})(),cr=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275dir=u.lG2({type:r,selectors:[["mat-placeholder"]]}),r})();const Lv=new u.OlP("MatPrefix"),Vn=new u.OlP("MatSuffix");let Bn=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275dir=u.lG2({type:r,selectors:[["","matSuffix",""]],features:[u._Bn([{provide:Vn,useExisting:r}])]}),r})(),Cn=0;const jv=oo(class{constructor(r){this._elementRef=r}},"primary"),Nv=new u.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Kh=new u.OlP("MatFormField");let Ll=(()=>{class r extends jv{constructor(e,t,o,l,c,n,i){super(e),this._changeDetectorRef=t,this._dir=o,this._defaults=l,this._platform=c,this._ngZone=n,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new De.x,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+Cn++,this._labelId="mat-form-field-label-"+Cn++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==i,this.appearance=l?.appearance||"legacy",l&&(this._hideRequiredMarker=Boolean(l.hideRequiredMarker),l.color&&(this.color=this.defaultColor=l.color))}get appearance(){return this._appearance}set appearance(e){const t=this._appearance;this._appearance=e||this._defaults?.appearance||"legacy","outline"===this._appearance&&t!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=tt(e)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(e){this._explicitFormFieldControl=e}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${e.controlType}`),e.stateChanges.pipe(It(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(st(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(st(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,kn.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(It(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(It(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(st(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(e){const t=this._control?this._control.ngControl:null;return t&&t[e]}_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,ss(this._label.nativeElement,"transitionend").pipe((0,Gt.q)(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 e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const t=this._hintChildren?this._hintChildren.find(l=>"start"===l.align):null,o=this._hintChildren?this._hintChildren.find(l=>"end"===l.align):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),o&&e.push(o.id)}else this._errorChildren&&e.push(...this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(e)}}_validateControlChild(){}updateOutlineGap(){const e=this._label?this._label.nativeElement:null,t=this._connectionContainerRef.nativeElement,o=".mat-form-field-outline-start",l=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!e||!e.children.length||!e.textContent.trim()){const d=t.querySelectorAll(`${o}, ${l}`);for(let h=0;h0?.75*H+10:0}for(let d=0;d{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({imports:[T.ez,qe,es,qe]}),r})();const eA={provide:new u.OlP("mat-select-scroll-strategy"),deps:[ln],useFactory:function Xv(r){return()=>r.scrollStrategies.reposition()}};let xd=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({providers:[eA],imports:[T.ez,ps,xh,qe,Br,dr,xh,qe]}),r})();const tA=["tooltip"],u_="tooltip-panel",h_=Dn({passive:!0}),ep=new u.OlP("mat-tooltip-scroll-strategy"),f_={provide:ep,deps:[ln],useFactory:function p_(r){return()=>r.scrollStrategies.reposition({scrollThrottle:20})}},g_=new u.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function m_(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let __=(()=>{class r{constructor(e,t,o,l,c,n,i,s,d,h,f,b){this._overlay=e,this._elementRef=t,this._scrollDispatcher=o,this._viewContainerRef=l,this._ngZone=c,this._platform=n,this._ariaDescriber=i,this._focusMonitor=s,this._dir=h,this._defaultOptions=f,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new De.x,this._scrollStrategy=d,this._document=b,f&&(f.position&&(this.position=f.position),f.touchGestures&&(this.touchGestures=f.touchGestures)),h.change.pipe(st(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(e){this._disabled=tt(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=wi(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=wi(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).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,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(st(this._destroyed)).subscribe(e=>{e?"keyboard"===e&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([t,o])=>{e.removeEventListener(t,o,h_)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const t=this._createOverlay();this._detach(),this._portal=this._portal||new gd(this._tooltipComponent,this._viewContainerRef);const o=this._tooltipInstance=t.attach(this._portal).instance;o._triggerElement=this._elementRef.nativeElement,o._mouseLeaveHideDelay=this._hideDelay,o.afterHidden().pipe(st(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),o.show(e)}hide(e=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(e)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const e=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),t=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(e);return t.positionChanges.pipe(st(this._destroyed)).subscribe(o=>{this._updateCurrentPositionClass(o.connectionPair),this._tooltipInstance&&o.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:t,panelClass:`${this._cssClassPrefix}-${u_}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(st(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(st(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(st(this._destroyed)).subscribe(o=>{this._isTooltipVisible()&&27===o.keyCode&&!ar(o)&&(o.preventDefault(),o.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){const t=e.getConfig().positionStrategy,o=this._getOrigin(),l=this._getOverlayPosition();t.withPositions([this._addOffset({...o.main,...l.main}),this._addOffset({...o.fallback,...l.fallback})])}_addOffset(e){return e}_getOrigin(){const e=!this._dir||"ltr"==this._dir.value,t=this.position;let o;"above"==t||"below"==t?o={originX:"center",originY:"above"==t?"top":"bottom"}:"before"==t||"left"==t&&e||"right"==t&&!e?o={originX:"start",originY:"center"}:("after"==t||"right"==t&&e||"left"==t&&!e)&&(o={originX:"end",originY:"center"});const{x:l,y:c}=this._invertPosition(o.originX,o.originY);return{main:o,fallback:{originX:l,originY:c}}}_getOverlayPosition(){const e=!this._dir||"ltr"==this._dir.value,t=this.position;let o;"above"==t?o={overlayX:"center",overlayY:"bottom"}:"below"==t?o={overlayX:"center",overlayY:"top"}:"before"==t||"left"==t&&e||"right"==t&&!e?o={overlayX:"end",overlayY:"center"}:("after"==t||"right"==t&&e||"left"==t&&!e)&&(o={overlayX:"start",overlayY:"center"});const{x:l,y:c}=this._invertPosition(o.overlayX,o.overlayY);return{main:o,fallback:{overlayX:l,overlayY:c}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,Gt.q)(1),st(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,t){return"above"===this.position||"below"===this.position?"top"===t?t="bottom":"bottom"===t&&(t="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:t}}_updateCurrentPositionClass(e){const{overlayY:t,originX:o,originY:l}=e;let c;if(c="center"===t?this._dir&&"rtl"===this._dir.value?"end"===o?"left":"right":"start"===o?"left":"right":"bottom"===t&&"top"===l?"above":"below",c!==this._currentPosition){const n=this._overlayRef;if(n){const i=`${this._cssClassPrefix}-${u_}-`;n.removePanelClass(i+this._currentPosition),n.addPanelClass(i+c)}this._currentPosition=c}}_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 e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",t=>{const o=t.relatedTarget;(!o||!this._overlayRef?.overlayElement.contains(o))&&this.hide()}],["wheel",t=>this._wheelListener(t)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const t=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",t],["touchcancel",t])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([t,o])=>{this._elementRef.nativeElement.addEventListener(t,o,h_)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const t=this._document.elementFromPoint(e.clientX,e.clientY),o=this._elementRef.nativeElement;t!==o&&!o.contains(t)&&this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const t=this._elementRef.nativeElement,o=t.style;("on"===e||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(o.userSelect=o.msUserSelect=o.webkitUserSelect=o.MozUserSelect="none"),("on"===e||!t.draggable)&&(o.webkitUserDrag="none"),o.touchAction="none",o.webkitTapHighlightColor="transparent"}}}return r.\u0275fac=function(e){u.$Z()},r.\u0275dir=u.lG2({type:r,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),r})(),Td=(()=>{class r extends __{constructor(e,t,o,l,c,n,i,s,d,h,f,b){super(e,t,o,l,c,n,i,s,d,h,f,b),this._tooltipComponent=C_}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(ln),u.Y36(u.SBq),u.Y36(co),u.Y36(u.s_b),u.Y36(u.R0b),u.Y36(Jt),u.Y36(oh),u.Y36(mn),u.Y36(ep),u.Y36(an,8),u.Y36(g_,8),u.Y36(T.K0))},r.\u0275dir=u.lG2({type:r,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[u.qOj]}),r})(),b_=(()=>{class r{constructor(e,t){this._changeDetectorRef=e,this._visibility="initial",this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new De.x,this._animationsDisabled="NoopAnimations"===t}show(e){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:e}){(!e||!this._triggerElement.contains(e))&&this.hide(this._mouseLeaveHideDelay)}_onShow(){}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){const t=this._tooltip.nativeElement,o=this._showAnimation,l=this._hideAnimation;if(t.classList.remove(e?l:o),t.classList.add(e?o:l),this._isVisible=e,e&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const c=getComputedStyle(t);("0s"===c.getPropertyValue("animation-duration")||"none"===c.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(t.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(u.sBO),u.Y36(u.QbO,8))},r.\u0275dir=u.lG2({type:r}),r})(),C_=(()=>{class r extends b_{constructor(e,t,o){super(e,o),this._breakpointObserver=t,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)"),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(u.sBO),u.Y36(ts),u.Y36(u.QbO,8))},r.\u0275cmp=u.Xpm({type:r,selectors:[["mat-tooltip-component"]],viewQuery:function(e,t){if(1&e&&u.Gf(tA,7),2&e){let o;u.iGM(o=u.CRH())&&(t._tooltip=o.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,t){1&e&&u.NdJ("mouseleave",function(l){return t._handleMouseLeave(l)}),2&e&&u.Udp("zoom",t.isVisible()?1:null)},features:[u.qOj],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(e,t){if(1&e&&(u.TgZ(0,"div",0,1),u.NdJ("animationend",function(l){return t._handleAnimationEnd(l)}),u.ALo(2,"async"),u._uU(3),u.qZA()),2&e){let o;u.ekj("mat-tooltip-handset",null==(o=u.lcZ(2,4,t._isHandset))?null:o.matches),u.Q6J("ngClass",t.tooltipClass),u.xp6(3),u.Oqu(t.message)}},dependencies:[T.mk,T.Ov],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}"],encapsulation:2,changeDetection:0}),r})(),ya=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({providers:[f_],imports:[ml,T.ez,ps,qe,qe,Br]}),r})(),v_=(()=>{class r{constructor(){this.changes=new De.x,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(e,t,o)=>{if(0==o||0==t)return`0 of ${o}`;const l=e*t;return`${l+1} \u2013 ${l<(o=Math.max(o,0))?Math.min(l+t,o):l+t} of ${o}`}}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const x_={provide:v_,deps:[[new u.FiY,new u.tp0,v_]],useFactory:function A_(r){return r||new v_}};let Ed=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({providers:[x_],imports:[T.ez,Rn,xd,ya,qe]}),r})();var Nl=x(1005);const Sd=["mat-menu-item",""];function Kt(r,a){1&r&&(u.O4$(),u.TgZ(0,"svg",2),u._UZ(1,"polygon",3),u.qZA())}const oA=["*"];function T_(r,a){if(1&r){const e=u.EpF();u.TgZ(0,"div",0),u.NdJ("keydown",function(o){u.CHM(e);const l=u.oxw();return u.KtG(l._handleKeydown(o))})("click",function(){u.CHM(e);const o=u.oxw();return u.KtG(o.closed.emit("click"))})("@transformMenu.start",function(o){u.CHM(e);const l=u.oxw();return u.KtG(l._onAnimationStart(o))})("@transformMenu.done",function(o){u.CHM(e);const l=u.oxw();return u.KtG(l._onAnimationDone(o))}),u.TgZ(1,"div",1),u.Hsn(2),u.qZA()()}if(2&r){const e=u.oxw();u.Q6J("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),u.uIk("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const zl={transformMenu:$t("transformMenu",[ft("void",Fe({opacity:0,transform:"scale(0.8)"})),Ct("void => enter",wt("120ms cubic-bezier(0, 0, 0.2, 1)",Fe({opacity:1,transform:"scale(1)"}))),Ct("* => void",wt("100ms 25ms linear",Fe({opacity:0})))]),fadeInItems:$t("fadeInItems",[ft("showing",Fe({opacity:1})),Ct("void => *",[Fe({opacity:0}),wt("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},E_=new u.OlP("MatMenuContent"),fo=new u.OlP("MAT_MENU_PANEL"),dA=Ir(fa(class{}));let Ul=(()=>{class r extends dA{constructor(e,t,o,l,c){super(),this._elementRef=e,this._document=t,this._focusMonitor=o,this._parentMenu=l,this._changeDetectorRef=c,this.role="menuitem",this._hovered=new De.x,this._focused=new De.x,this._highlighted=!1,this._triggersSubmenu=!1,l?.addItem?.(this)}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),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(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const e=this._elementRef.nativeElement.cloneNode(!0),t=e.querySelectorAll("mat-icon, .material-icons");for(let o=0;o{class r{constructor(e,t,o,l){this._elementRef=e,this._ngZone=t,this._defaultOptions=o,this._changeDetectorRef=l,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new u.n_E,this._tabSubscription=Lt.w0.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new De.x,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new u.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+M_++}get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(e){this._overlapTrigger=tt(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=tt(e)}set panelClass(e){const t=this._previousPanelClass;t&&t.length&&t.split(" ").forEach(o=>{this._classList[o]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(o=>{this._classList[o]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(e){this.panelClass=e}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new td(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(It(this._directDescendantItems),(0,Ci.w)(e=>(0,kn.T)(...e.map(t=>t._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{const t=this._keyManager;if("enter"===this._panelAnimationState&&t.activeItem?._hasFocus()){const o=e.toArray(),l=Math.max(0,Math.min(o.length-1,t.activeItemIndex||0));o[l]&&!o[l].disabled?t.setActiveItem(l):t.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(It(this._directDescendantItems),(0,Ci.w)(t=>(0,kn.T)(...t.map(o=>o._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const t=e.keyCode,o=this._keyManager;switch(t){case 27:ar(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(38===t||40===t)&&o.setFocusOrigin("keyboard"),void o.onKeydown(e)}e.stopPropagation()}focusFirstItem(e="program"){this._ngZone.onStable.pipe((0,Gt.q)(1)).subscribe(()=>{let t=null;if(this._directDescendantItems.length&&(t=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!t||!t.contains(document.activeElement)){const o=this._keyManager;o.setFocusOrigin(e).setFirstItemActive(),!o.activeItem&&t&&t.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const t=Math.min(this._baseElevation+e,24),o=`${this._elevationPrefix}${t}`,l=Object.keys(this._classList).find(c=>c.startsWith(this._elevationPrefix));(!l||l===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[o]=!0,this._previousElevation=o)}setPositionClasses(e=this.xPosition,t=this.yPosition){const o=this._classList;o["mat-menu-before"]="before"===e,o["mat-menu-after"]="after"===e,o["mat-menu-above"]="above"===t,o["mat-menu-below"]="below"===t,this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(It(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(u.SBq),u.Y36(u.R0b),u.Y36(S_),u.Y36(u.sBO))},r.\u0275dir=u.lG2({type:r,contentQueries:function(e,t,o){if(1&e&&(u.Suo(o,E_,5),u.Suo(o,Ul,5),u.Suo(o,Ul,4)),2&e){let l;u.iGM(l=u.CRH())&&(t.lazyContent=l.first),u.iGM(l=u.CRH())&&(t._allItems=l),u.iGM(l=u.CRH())&&(t.items=l)}},viewQuery:function(e,t){if(1&e&&u.Gf(u.Rgc,5),2&e){let o;u.iGM(o=u.CRH())&&(t.templateRef=o.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),r})(),tp=(()=>{class r extends ms{constructor(e,t,o,l){super(e,t,o,l),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(u.SBq),u.Y36(u.R0b),u.Y36(S_),u.Y36(u.sBO))},r.\u0275cmp=u.Xpm({type:r,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,t){2&e&&u.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[u._Bn([{provide:fo,useExisting:r}]),u.qOj],ngContentSelectors:oA,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(e,t){1&e&&(u.F$t(),u.YNc(0,T_,3,6,"ng-template"))},dependencies:[T.mk],styles:['mat-menu{display:none}.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;position:relative}.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;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}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}'],encapsulation:2,data:{animation:[zl.transformMenu,zl.fadeInItems]},changeDetection:0}),r})();const D_=new u.OlP("mat-menu-scroll-strategy"),ql={provide:D_,deps:[ln],useFactory:function Gl(r){return()=>r.scrollStrategies.reposition()}},H_=Dn({passive:!0});let uA=(()=>{class r{constructor(e,t,o,l,c,n,i,s,d){this._overlay=e,this._element=t,this._viewContainerRef=o,this._menuItemInstance=n,this._dir=i,this._focusMonitor=s,this._ngZone=d,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=Lt.w0.EMPTY,this._hoverSubscription=Lt.w0.EMPTY,this._menuCloseSubscription=Lt.w0.EMPTY,this._handleTouchStart=h=>{nd(h)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new u.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new u.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=l,this._parentMaterialMenu=c instanceof ms?c:void 0,t.nativeElement.addEventListener("touchstart",this._handleTouchStart,H_),n&&(n._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(t=>{this._destroyMenu(t),("click"===t||"tab"===t)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(t)})))}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,H_),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(){const e=this.menu;if(this._menuOpen||!e)return;const t=this._createOverlay(e),o=t.getConfig(),l=o.positionStrategy;this._setPosition(e,l),o.hasBackdrop=e.hasBackdrop??!this.triggersSubmenu(),t.attach(this._getPortal(e)),e.lazyContent&&e.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(e),e instanceof ms&&(e._startAnimation(),e._directDescendantItems.changes.pipe(st(e.close)).subscribe(()=>{l.withLockedPosition(!1).reapplyLastPosition(),l.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;const t=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,t instanceof ms?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe((0,ei.h)(o=>"void"===o.toState),(0,Gt.q)(1),st(t.lazyContent._attached)).subscribe({next:()=>t.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),t?.lazyContent?.detach())}_initMenu(e){e.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,e.direction=this.dir,this._setMenuElevation(e),e.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(e){if(e.setElevation){let t=0,o=e.parentMenu;for(;o;)t++,o=o.parentMenu;e.setElevation(t)}}_setIsMenuOpen(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e)}_createOverlay(e){if(!this._overlayRef){const t=this._getOverlayConfig(e);this._subscribeToPositions(e,t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(e){return new ma({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e,t){e.setPositionClasses&&t.positionChanges.subscribe(o=>{const l="start"===o.connectionPair.overlayX?"after":"before",c="top"===o.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>e.setPositionClasses(l,c)):e.setPositionClasses(l,c)})}_setPosition(e,t){let[o,l]="before"===e.xPosition?["end","start"]:["start","end"],[c,n]="above"===e.yPosition?["bottom","top"]:["top","bottom"],[i,s]=[c,n],[d,h]=[o,l],f=0;if(this.triggersSubmenu()){if(h=o="before"===e.xPosition?"start":"end",l=d="end"===o?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const b=this._parentMaterialMenu.items.first;this._parentInnerPadding=b?b._getHostElement().offsetTop:0}f="bottom"===c?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(i="top"===c?"bottom":"top",s="top"===n?"bottom":"top");t.withPositions([{originX:o,originY:i,overlayX:d,overlayY:c,offsetY:f},{originX:l,originY:i,overlayX:h,overlayY:c,offsetY:f},{originX:o,originY:s,overlayX:d,overlayY:n,offsetY:-f},{originX:l,originY:s,overlayX:h,overlayY:n,offsetY:-f}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),t=this._overlayRef.detachments(),o=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,Me.of)(),l=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,ei.h)(c=>c!==this._menuItemInstance),(0,ei.h)(()=>this._menuOpen)):(0,Me.of)();return(0,kn.T)(e,o,l,t)}_handleMousedown(e){or(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){const t=e.keyCode;(13===t||32===t)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===t&&"ltr"===this.dir||37===t&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,ei.h)(e=>e===this._menuItemInstance&&!e.disabled),(0,Nl.g)(0,Hh)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof ms&&this.menu._isAnimating?this.menu._animationDone.pipe((0,Gt.q)(1),(0,Nl.g)(0,Hh),st(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new Sl(e.templateRef,this._viewContainerRef)),this._portal}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(ln),u.Y36(u.SBq),u.Y36(u.s_b),u.Y36(D_),u.Y36(fo,8),u.Y36(Ul,10),u.Y36(an,8),u.Y36(mn),u.Y36(u.R0b))},r.\u0275dir=u.lG2({type:r,hostVars:3,hostBindings:function(e,t){1&e&&u.NdJ("click",function(l){return t._handleClick(l)})("mousedown",function(l){return t._handleMousedown(l)})("keydown",function(l){return t._handleKeydown(l)}),2&e&&u.uIk("aria-haspopup",t.menu?"menu":null)("aria-expanded",t.menuOpen||null)("aria-controls",t.menuOpen?t.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),r})(),ip=(()=>{class r extends uA{}return r.\u0275fac=function(){let a;return function(t){return(a||(a=u.n5z(r)))(t||r)}}(),r.\u0275dir=u.lG2({type:r,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[u.qOj]}),r})(),Wl=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({providers:[ql],imports:[T.ez,qe,hi,ps,Br,qe]}),r})();var P_=x(4742),hA=x(1810);function Dd(...r){const a=(0,za.jO)(r),{args:e,keys:t}=(0,P_.D)(r),o=new bi.y(l=>{const{length:c}=e;if(!c)return void l.complete();const n=new Array(c);let i=c,s=c;for(let d=0;d{h||(h=!0,s--),n[d]=f},()=>i--,void 0,()=>{(!i||!h)&&(s||l.next(t?(0,hA.n)(t,n):n),l.complete())}))}});return a?o.pipe((0,Eh.Z)(a)):o}const pA=["*"];let Hd;function Pd(r){return function FE(){if(void 0===Hd&&(Hd=null,typeof window<"u")){const r=window;void 0!==r.trustedTypes&&(Hd=r.trustedTypes.createPolicy("angular#components",{createHTML:a=>a}))}return Hd}()?.createHTML(r)||r}function fA(r){return Error(`Unable to find icon with the name "${r}"`)}function np(r){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${r}".`)}function $l(r){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${r}".`)}class go{constructor(a,e,t){this.url=a,this.svgText=e,this.options=t}}let Ql=(()=>{class r{constructor(e,t,o,l){this._httpClient=e,this._sanitizer=t,this._errorHandler=l,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=o}addSvgIcon(e,t,o){return this.addSvgIconInNamespace("",e,t,o)}addSvgIconLiteral(e,t,o){return this.addSvgIconLiteralInNamespace("",e,t,o)}addSvgIconInNamespace(e,t,o,l){return this._addSvgIconConfig(e,t,new go(o,null,l))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,t,o,l){const c=this._sanitizer.sanitize(u.q3G.HTML,o);if(!c)throw $l(o);const n=Pd(c);return this._addSvgIconConfig(e,t,new go("",n,l))}addSvgIconSet(e,t){return this.addSvgIconSetInNamespace("",e,t)}addSvgIconSetLiteral(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}addSvgIconSetInNamespace(e,t,o){return this._addSvgIconSetConfig(e,new go(t,null,o))}addSvgIconSetLiteralInNamespace(e,t,o){const l=this._sanitizer.sanitize(u.q3G.HTML,t);if(!l)throw $l(t);const c=Pd(l);return this._addSvgIconSetConfig(e,new go("",c,o))}registerFontClassAlias(e,t=e){return this._fontCssClassesByAlias.set(e,t),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const t=this._sanitizer.sanitize(u.q3G.RESOURCE_URL,e);if(!t)throw np(e);const o=this._cachedIconsByUrl.get(t);return o?(0,Me.of)(Id(o)):this._loadSvgIconFromConfig(new go(e,null)).pipe((0,bt.b)(l=>this._cachedIconsByUrl.set(t,l)),(0,ze.U)(l=>Id(l)))}getNamedSvgIcon(e,t=""){const o=I_(t,e);let l=this._svgIconConfigs.get(o);if(l)return this._getSvgFromConfig(l);if(l=this._getIconConfigFromResolvers(t,e),l)return this._svgIconConfigs.set(o,l),this._getSvgFromConfig(l);const c=this._iconSetConfigs.get(t);return c?this._getSvgFromIconSetConfigs(e,c):(0,pn._)(fA(o))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?(0,Me.of)(Id(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe((0,ze.U)(t=>Id(t)))}_getSvgFromIconSetConfigs(e,t){const o=this._extractIconWithNameFromAnySet(e,t);return o?(0,Me.of)(o):Dd(t.filter(c=>!c.svgText).map(c=>this._loadSvgIconSetFromConfig(c).pipe((0,M.K)(n=>{const s=`Loading icon set URL: ${this._sanitizer.sanitize(u.q3G.RESOURCE_URL,c.url)} failed: ${n.message}`;return this._errorHandler.handleError(new Error(s)),(0,Me.of)(null)})))).pipe((0,ze.U)(()=>{const c=this._extractIconWithNameFromAnySet(e,t);if(!c)throw fA(e);return c}))}_extractIconWithNameFromAnySet(e,t){for(let o=t.length-1;o>=0;o--){const l=t[o];if(l.svgText&&l.svgText.toString().indexOf(e)>-1){const c=this._svgElementFromConfig(l),n=this._extractSvgIconFromSet(c,e,l.options);if(n)return n}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe((0,bt.b)(t=>e.svgText=t),(0,ze.U)(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?(0,Me.of)(null):this._fetchIcon(e).pipe((0,bt.b)(t=>e.svgText=t))}_extractSvgIconFromSet(e,t,o){const l=e.querySelector(`[id="${t}"]`);if(!l)return null;const c=l.cloneNode(!0);if(c.removeAttribute("id"),"svg"===c.nodeName.toLowerCase())return this._setSvgAttributes(c,o);if("symbol"===c.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(c),o);const n=this._svgElementFromString(Pd(""));return n.appendChild(c),this._setSvgAttributes(n,o)}_svgElementFromString(e){const t=this._document.createElement("DIV");t.innerHTML=e;const o=t.querySelector("svg");if(!o)throw Error(" tag not found");return o}_toSvgElement(e){const t=this._svgElementFromString(Pd("")),o=e.attributes;for(let l=0;lPd(s)),Mt(()=>this._inProgressUrlFetches.delete(c)),(0,hd.B)());return this._inProgressUrlFetches.set(c,i),i}_addSvgIconConfig(e,t,o){return this._svgIconConfigs.set(I_(e,t),o),this}_addSvgIconSetConfig(e,t){const o=this._iconSetConfigs.get(e);return o?o.push(t):this._iconSetConfigs.set(e,[t]),this}_svgElementFromConfig(e){if(!e.svgElement){const t=this._svgElementFromString(e.svgText);this._setSvgAttributes(t,e.options),e.svgElement=t}return e.svgElement}_getIconConfigFromResolvers(e,t){for(let o=0;oa?a.pathname+a.search:""}}}),V_=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],_s=V_.map(r=>`[${r}]`).join(", "),CA=/^url\(['"]?#(.*?)['"]?\)$/;let ur=(()=>{class r extends mA{constructor(e,t,o,l,c,n){super(e),this._iconRegistry=t,this._location=l,this._errorHandler=c,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=Lt.w0.EMPTY,n&&(n.color&&(this.color=this.defaultColor=n.color),n.fontSet&&(this.fontSet=n.fontSet)),o||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=tt(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const t=this._cleanupFontValue(e);t!==this._fontSet&&(this._fontSet=t,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const t=this._cleanupFontValue(e);t!==this._fontIcon&&(this._fontIcon=t,this._updateFontIconClasses())}_splitIconName(e){if(!e)return["",""];const t=e.split(":");switch(t.length){case 1:return["",t[0]];case 2:return t;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.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(e){this._clearSvgElement();const t=this._location.getPathname();this._previousPath=t,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(t),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let t=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();t--;){const o=e.childNodes[t];(1!==o.nodeType||"svg"===o.nodeName.toLowerCase())&&o.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,t=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(o=>o.length>0);this._previousFontSetClass.forEach(o=>e.classList.remove(o)),t.forEach(o=>e.classList.add(o)),this._previousFontSetClass=t,this.fontIcon!==this._previousFontIconClass&&!t.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return"string"==typeof e?e.trim().split(" ")[0]:e}_prependPathToReferences(e){const t=this._elementsWithExternalReferences;t&&t.forEach((o,l)=>{o.forEach(c=>{l.setAttribute(c.name,`url('${e}#${c.value}')`)})})}_cacheChildrenWithExternalReferences(e){const t=e.querySelectorAll(_s),o=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let l=0;l{const n=t[l],i=n.getAttribute(c),s=i?i.match(CA):null;if(s){let d=o.get(n);d||(d=[],o.set(n,d)),d.push({name:c,value:s[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[t,o]=this._splitIconName(e);t&&(this._svgNamespace=t),o&&(this._svgName=o),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(o,t).pipe((0,Gt.q)(1)).subscribe(l=>this._setSvgElement(l),l=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${t}:${o}! ${l.message}`))})}}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(u.SBq),u.Y36(Ql),u.$8M("aria-hidden"),u.Y36(k_),u.Y36(u.qLn),u.Y36(_A,8))},r.\u0275cmp=u.Xpm({type:r,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,t){2&e&&(u.uIk("data-mat-icon-type",t._usingFontIcon()?"font":"svg")("data-mat-icon-name",t._svgName||t.fontIcon)("data-mat-icon-namespace",t._svgNamespace||t.fontSet),u.ekj("mat-icon-inline",t.inline)("mat-icon-no-color","primary"!==t.color&&"accent"!==t.color&&"warn"!==t.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[u.qOj],ngContentSelectors:pA,decls:1,vars:0,template:function(e,t){1&e&&(u.F$t(),u.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[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}"],encapsulation:2,changeDetection:0}),r})(),hr=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({imports:[qe,qe]}),r})();class bs{}let B_=(()=>{class r extends bs{getTranslation(e){return(0,Me.of)({})}}return r.\u0275fac=function(){let a;return function(t){return(a||(a=u.n5z(r)))(t||r)}}(),r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac}),r})();class kd{}let O_=(()=>{class r{handle(e){return e.key}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac}),r})();function Cs(r,a){if(r===a)return!0;if(null===r||null===a)return!1;if(r!=r&&a!=a)return!0;let o,l,c,e=typeof r;if(e==typeof a&&"object"==e){if(!Array.isArray(r)){if(Array.isArray(a))return!1;for(l in c=Object.create(null),r){if(!Cs(r[l],a[l]))return!1;c[l]=!0}for(l in a)if(!(l in c)&&typeof a[l]<"u")return!1;return!0}if(!Array.isArray(a))return!1;if((o=r.length)==a.length){for(l=0;l{Vd(a[t])?t in r?e[t]=rp(r[t],a[t]):Object.assign(e,{[t]:a[t]}):Object.assign(e,{[t]:a[t]})}),e}class Bd{}let L_=(()=>{class r extends Bd{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(e,t){let o;return o="string"==typeof e?this.interpolateString(e,t):"function"==typeof e?this.interpolateFunction(e,t):e,o}getValue(e,t){let o="string"==typeof t?t.split("."):[t];t="";do{t+=o.shift(),!wa(e)||!wa(e[t])||"object"!=typeof e[t]&&o.length?o.length?t+=".":e=void 0:(e=e[t],t="")}while(o.length);return e}interpolateFunction(e,t){return e(t)}interpolateString(e,t){return t?e.replace(this.templateMatcher,(o,l)=>{let c=this.getValue(t,l);return wa(c)?c:o}):e}}return r.\u0275fac=function(){let a;return function(t){return(a||(a=u.n5z(r)))(t||r)}}(),r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac}),r})();class Od{}let Ld=(()=>{class r extends Od{compile(e,t){return e}compileTranslations(e,t){return e}}return r.\u0275fac=function(){let a;return function(t){return(a||(a=u.n5z(r)))(t||r)}}(),r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac}),r})();class F_{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new u.vpe,this.onLangChange=new u.vpe,this.onDefaultLangChange=new u.vpe}}const Fd=new u.OlP("USE_STORE"),ap=new u.OlP("USE_DEFAULT_LANG"),op=new u.OlP("DEFAULT_LANGUAGE"),sp=new u.OlP("USE_EXTEND");let Bi=(()=>{class r{constructor(e,t,o,l,c,n=!0,i=!1,s=!1,d){this.store=e,this.currentLoader=t,this.compiler=o,this.parser=l,this.missingTranslationHandler=c,this.useDefaultLang=n,this.isolate=i,this.extend=s,this.pending=!1,this._onTranslationChange=new u.vpe,this._onLangChange=new u.vpe,this._onDefaultLangChange=new u.vpe,this._langs=[],this._translations={},this._translationRequests={},d&&this.setDefaultLang(d)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(e){this.isolate?this._currentLang=e:this.store.currentLang=e}get langs(){return this.isolate?this._langs:this.store.langs}set langs(e){this.isolate?this._langs=e:this.store.langs=e}get translations(){return this.isolate?this._translations:this.store.translations}set translations(e){this.isolate?this._translations=e:this.store.translations=e}setDefaultLang(e){if(e===this.defaultLang)return;let t=this.retrieveTranslations(e);typeof t<"u"?(null==this.defaultLang&&(this.defaultLang=e),t.pipe((0,Gt.q)(1)).subscribe(o=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(e===this.currentLang)return(0,Me.of)(this.translations[e]);let t=this.retrieveTranslations(e);return typeof t<"u"?(this.currentLang||(this.currentLang=e),t.pipe((0,Gt.q)(1)).subscribe(o=>{this.changeLang(e)}),t):(this.changeLang(e),(0,Me.of)(this.translations[e]))}retrieveTranslations(e){let t;return(typeof this.translations[e]>"u"||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),t=this._translationRequests[e]),t}getTranslation(e){this.pending=!0;const t=this.currentLoader.getTranslation(e).pipe(Ph(1),(0,Gt.q)(1));return this.loadingTranslations=t.pipe((0,ze.U)(o=>this.compiler.compileTranslations(o,e)),Ph(1),(0,Gt.q)(1)),this.loadingTranslations.subscribe({next:o=>{this.translations[e]=this.extend&&this.translations[e]?{...o,...this.translations[e]}:o,this.updateLangs(),this.pending=!1},error:o=>{this.pending=!1}}),t}setTranslation(e,t,o=!1){t=this.compiler.compileTranslations(t,e),this.translations[e]=(o||this.extend)&&this.translations[e]?rp(this.translations[e],t):t,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return this.langs}addLangs(e){e.forEach(t=>{-1===this.langs.indexOf(t)&&this.langs.push(t)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(e,t,o){let l;if(t instanceof Array){let c={},n=!1;for(let i of t)c[i]=this.getParsedResult(e,i,o),Ki(c[i])&&(n=!0);return n?Dd(t.map(s=>Ki(c[s])?c[s]:(0,Me.of)(c[s]))).pipe((0,ze.U)(s=>{let d={};return s.forEach((h,f)=>{d[t[f]]=h}),d})):c}if(e&&(l=this.parser.interpolate(this.parser.getValue(e,t),o)),typeof l>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(l=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],t),o)),typeof l>"u"){let c={key:t,translateService:this};typeof o<"u"&&(c.interpolateParams=o),l=this.missingTranslationHandler.handle(c)}return typeof l<"u"?l:t}get(e,t){if(!wa(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,$i.b)(o=>Ki(o=this.getParsedResult(o,e,t))?o:(0,Me.of)(o)));{let o=this.getParsedResult(this.translations[this.currentLang],e,t);return Ki(o)?o:(0,Me.of)(o)}}getStreamOnTranslationChange(e,t){if(!wa(e)||!e.length)throw new Error('Parameter "key" required');return(0,Kr.z)(Tr(()=>this.get(e,t)),this.onTranslationChange.pipe((0,Ci.w)(o=>{const l=this.getParsedResult(o.translations,e,t);return"function"==typeof l.subscribe?l:(0,Me.of)(l)})))}stream(e,t){if(!wa(e)||!e.length)throw new Error('Parameter "key" required');return(0,Kr.z)(Tr(()=>this.get(e,t)),this.onLangChange.pipe((0,Ci.w)(o=>{const l=this.getParsedResult(o.translations,e,t);return Ki(l)?l:(0,Me.of)(l)})))}instant(e,t){if(!wa(e)||!e.length)throw new Error('Parameter "key" required');let o=this.getParsedResult(this.translations[this.currentLang],e,t);if(Ki(o)){if(e instanceof Array){let l={};return e.forEach((c,n)=>{l[e[n]]=e[n]}),l}return e}return o}set(e,t,o=this.currentLang){this.translations[o][e]=this.compiler.compile(t,o),this.updateLangs(),this.onTranslationChange.emit({lang:o,translations:this.translations[o]})}changeLang(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),null==this.defaultLang&&this.changeDefaultLang(e)}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return this.resetLang(e),this.getTranslation(e)}resetLang(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof e>"u"?void 0:(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,e}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(F_),u.LFG(bs),u.LFG(Od),u.LFG(Bd),u.LFG(kd),u.LFG(ap),u.LFG(Fd),u.LFG(sp),u.LFG(op))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac}),r})(),vi=(()=>{class r{constructor(e,t){this.translate=e,this._ref=t,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(e,t,o){let l=c=>{this.value=void 0!==c?c:e,this.lastKey=e,this._ref.markForCheck()};if(o){let c=this.translate.getParsedResult(o,e,t);Ki(c.subscribe)?c.subscribe(l):l(c)}this.translate.get(e,t).subscribe(l)}transform(e,...t){if(!e||!e.length)return e;if(Cs(e,this.lastKey)&&Cs(t,this.lastParams))return this.value;let o;if(wa(t[0])&&t.length)if("string"==typeof t[0]&&t[0].length){let l=t[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{o=JSON.parse(l)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${t[0]}`)}}else"object"==typeof t[0]&&!Array.isArray(t[0])&&(o=t[0]);return this.lastKey=e,this.lastParams=t,this.updateValue(e,o),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(l=>{this.lastKey&&l.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,o,l.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(l=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,o,l.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,o))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(Bi,16),u.Y36(u.sBO,16))},r.\u0275pipe=u.Yjl({name:"translate",type:r,pure:!1}),r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac}),r})(),ys=(()=>{class r{static forRoot(e={}){return{ngModule:r,providers:[e.loader||{provide:bs,useClass:B_},e.compiler||{provide:Od,useClass:Ld},e.parser||{provide:Bd,useClass:L_},e.missingTranslationHandler||{provide:kd,useClass:O_},F_,{provide:Fd,useValue:e.isolate},{provide:ap,useValue:e.useDefaultLang},{provide:sp,useValue:e.extend},{provide:op,useValue:e.defaultLanguage},Bi]}}static forChild(e={}){return{ngModule:r,providers:[e.loader||{provide:bs,useClass:B_},e.compiler||{provide:Od,useClass:Ld},e.parser||{provide:Bd,useClass:L_},e.missingTranslationHandler||{provide:kd,useClass:O_},{provide:Fd,useValue:e.isolate},{provide:ap,useValue:e.useDefaultLang},{provide:sp,useValue:e.extend},{provide:op,useValue:e.defaultLanguage},Bi]}}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({}),r})(),yA=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({imports:[Ed,Wl,hr,Rn,ys,T.ez]}),r})();var j_=x(5861);function N_(r,a){}class jd{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0}}let lp=(()=>{class r extends Vh{constructor(e,t,o,l,c,n,i,s){super(),this._elementRef=e,this._focusTrapFactory=t,this._config=l,this._interactivityChecker=c,this._ngZone=n,this._overlayRef=i,this._focusMonitor=s,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=d=>{this._portalOutlet.hasAttached();const h=this._portalOutlet.attachDomPortal(d);return this._contentAttached(),h},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=o}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();const t=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),t}attachTemplatePortal(e){this._portalOutlet.hasAttached();const t=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),t}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const o=()=>{e.removeEventListener("blur",o),e.removeEventListener("mousedown",o),e.removeAttribute("tabindex")};e.addEventListener("blur",o),e.addEventListener("mousedown",o)})),e.focus(t)}_focusByCssSelector(e,t){let o=this._elementRef.nativeElement.querySelector(e);o&&this._forceFocus(o,t)}_trapFocus(){const e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(t=>{t||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const e=this._config.restoreFocus;let t=null;if("string"==typeof e?t=this._document.querySelector(e):"boolean"==typeof e?t=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(t=e),this._config.restoreFocus&&t&&"function"==typeof t.focus){const o=Xo(),l=this._elementRef.nativeElement;(!o||o===this._document.body||o===l||l.contains(o))&&(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,t=Xo();return e===t||e.contains(t)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=Xo())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(u.SBq),u.Y36(dh),u.Y36(T.K0,8),u.Y36(jd),u.Y36(id),u.Y36(u.R0b),u.Y36(hs),u.Y36(mn))},r.\u0275cmp=u.Xpm({type:r,selectors:[["cdk-dialog-container"]],viewQuery:function(e,t){if(1&e&&u.Gf(Or,7),2&e){let o;u.iGM(o=u.CRH())&&(t._portalOutlet=o.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(e,t){2&e&&u.uIk("id",t._config.id||null)("role",t._config.role)("aria-modal",t._config.ariaModal)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null)},features:[u.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&u.YNc(0,N_,0,0,"ng-template",0)},dependencies:[Or],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),r})();class cp{constructor(a,e){this.overlayRef=a,this.config=e,this.closed=new De.x,this.disableClose=e.disableClose,this.backdropClick=a.backdropClick(),this.keydownEvents=a.keydownEvents(),this.outsidePointerEvents=a.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(t=>{27===t.keyCode&&!this.disableClose&&!ar(t)&&(t.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(a,e){if(this.containerInstance){const t=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this.overlayRef.dispose(),t.next(a),t.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(a="",e=""){return this.overlayRef.updateSize({width:a,height:e}),this}addPanelClass(a){return this.overlayRef.addPanelClass(a),this}removePanelClass(a){return this.overlayRef.removePanelClass(a),this}}const z_=new u.OlP("DialogScrollStrategy"),wA=new u.OlP("DialogData"),dp=new u.OlP("DefaultDialogConfig"),U_={provide:z_,deps:[ln],useFactory:function up(r){return()=>r.scrollStrategies.block()}};let hp=0,G_=(()=>{class r{constructor(e,t,o,l,c,n){this._overlay=e,this._injector=t,this._defaultOptions=o,this._parentDialog=l,this._overlayContainer=c,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new De.x,this._afterOpenedAtThisLevel=new De.x,this._ariaHiddenElements=new Map,this.afterAllClosed=Tr(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(It(void 0))),this._scrollStrategy=n}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}open(e,t){(t={...this._defaultOptions||new jd,...t}).id=t.id||"cdk-dialog-"+hp++,t.id&&this.getDialogById(t.id);const l=this._getOverlayConfig(t),c=this._overlay.create(l),n=new cp(c,t),i=this._attachContainer(c,n,t);return n.containerInstance=i,this._attachDialogContent(e,n,i,t),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(n),n.closed.subscribe(()=>this._removeOpenDialog(n,!0)),this.afterOpened.next(n),n}closeAll(){pp(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){pp(this._openDialogsAtThisLevel,e=>{!1===e.config.closeOnDestroy&&this._removeOpenDialog(e,!1)}),pp(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){const t=new ma({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}_attachContainer(e,t,o){const l=o.injector??o.viewContainerRef?.injector,c=[{provide:jd,useValue:o},{provide:cp,useValue:t},{provide:hs,useValue:e}];let n;o.container?"function"==typeof o.container?n=o.container:(n=o.container.type,c.push(...o.container.providers(o))):n=lp;const i=new gd(n,o.viewContainerRef,u.zs3.create({parent:l||this._injector,providers:c}),o.componentFactoryResolver);return e.attach(i).instance}_attachDialogContent(e,t,o,l){const c=this._createInjector(l,t,o);if(e instanceof u.Rgc){let n={$implicit:l.data,dialogRef:t};l.templateContext&&(n={...n,..."function"==typeof l.templateContext?l.templateContext():l.templateContext}),o.attachTemplatePortal(new Sl(e,null,n,c))}else{const n=o.attachComponentPortal(new gd(e,l.viewContainerRef,c,l.componentFactoryResolver));t.componentInstance=n.instance}}_createInjector(e,t,o){const l=e&&e.viewContainerRef&&e.viewContainerRef.injector,c=[{provide:wA,useValue:e.data},{provide:cp,useValue:t}];return e.providers&&("function"==typeof e.providers?c.push(...e.providers(t,e,o)):c.push(...e.providers)),e.direction&&(!l||!l.get(an,null,u.XFs.Optional))&&c.push({provide:an,useValue:{value:e.direction,change:(0,Me.of)()}}),u.zs3.create({parent:e.injector||l||this._injector,providers:c})}_removeOpenDialog(e,t){const o=this.openDialogs.indexOf(e);o>-1&&(this.openDialogs.splice(o,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((l,c)=>{l?c.setAttribute("aria-hidden",l):c.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),t&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const t=e.parentElement.children;for(let o=t.length-1;o>-1;o--){const l=t[o];l!==e&&"SCRIPT"!==l.nodeName&&"STYLE"!==l.nodeName&&!l.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(l,l.getAttribute("aria-hidden")),l.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(ln),u.LFG(u.zs3),u.LFG(dp,8),u.LFG(r,12),u.LFG(kl),u.LFG(z_))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac}),r})();function pp(r,a){let e=r.length;for(;e--;)a(r[e])}let fp=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({providers:[G_,U_],imports:[ps,_n,ml,_n]}),r})();function vA(r,a){}const mo={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},ws={dialogContainer:$t("dialogContainer",[ft("void, exit",Fe({opacity:0,transform:"scale(0.7)"})),ft("enter",Fe({transform:"none"})),Ct("* => enter",Wh([wt("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",Fe({transform:"none",opacity:1})),Ol("@*",Bl(),{optional:!0})]),mo),Ct("* => void, * => exit",Wh([wt("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",Fe({opacity:0})),Ol("@*",Bl(),{optional:!0})]),mo)])};class vs{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="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0,this.enterAnimationDuration=mo.params.enterAnimationDuration,this.exitAnimationDuration=mo.params.exitAnimationDuration}}let AA=(()=>{class r extends lp{constructor(e,t,o,l,c,n,i,s){super(e,t,o,l,c,n,i,s),this._animationStateChanged=new u.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(u.SBq),u.Y36(dh),u.Y36(T.K0,8),u.Y36(vs),u.Y36(id),u.Y36(u.R0b),u.Y36(hs),u.Y36(mn))},r.\u0275cmp=u.Xpm({type:r,selectors:[["ng-component"]],features:[u.qOj],decls:0,vars:0,template:function(e,t){},encapsulation:2}),r})(),UE=(()=>{class r extends AA{constructor(e,t,o,l,c,n,i,s,d){super(e,t,o,l,c,n,i,d),this._changeDetectorRef=s,this._state="enter"}_onAnimationDone({toState:e,totalTime:t}){"enter"===e?this._openAnimationDone(t):"exit"===e&&this._animationStateChanged.next({state:"closed",totalTime:t})}_onAnimationStart({toState:e,totalTime:t}){"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:t}):("exit"===e||"void"===e)&&this._animationStateChanged.next({state:"closing",totalTime:t})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||mo.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||mo.params.exitAnimationDuration}}}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(u.SBq),u.Y36(dh),u.Y36(T.K0,8),u.Y36(vs),u.Y36(id),u.Y36(u.R0b),u.Y36(hs),u.Y36(u.sBO),u.Y36(mn))},r.\u0275cmp=u.Xpm({type:r,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(e,t){1&e&&u.WFA("@dialogContainer.start",function(l){return t._onAnimationStart(l)})("@dialogContainer.done",function(l){return t._onAnimationDone(l)}),2&e&&(u.Ikx("id",t._config.id),u.uIk("aria-modal",t._config.ariaModal)("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),u.d8E("@dialogContainer",t._getAnimationState()))},features:[u.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&u.YNc(0,vA,0,0,"ng-template",0)},dependencies:[Or],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.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.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}"],encapsulation:2,data:{animation:[ws.dialogContainer]}}),r})();class yn{constructor(a,e,t){this._ref=a,this._containerInstance=t,this._afterOpened=new De.x,this._beforeClosed=new De.x,this._state=0,this.disableClose=e.disableClose,this.id=a.id,t._animationStateChanged.pipe((0,ei.h)(o=>"opened"===o.state),(0,Gt.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),t._animationStateChanged.pipe((0,ei.h)(o=>"closed"===o.state),(0,Gt.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),a.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,kn.T)(this.backdropClick(),this.keydownEvents().pipe((0,ei.h)(o=>27===o.keyCode&&!this.disableClose&&!ar(o)))).subscribe(o=>{this.disableClose||(o.preventDefault(),function gp(r,a,e){r._closeInteractionType=a,r.close(e)}(this,"keydown"===o.type?"keyboard":"mouse"))})}close(a){this._result=a,this._containerInstance._animationStateChanged.pipe((0,ei.h)(e=>"closing"===e.state),(0,Gt.q)(1)).subscribe(e=>{this._beforeClosed.next(a),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(a){let e=this._ref.config.positionStrategy;return a&&(a.left||a.right)?a.left?e.left(a.left):e.right(a.right):e.centerHorizontally(),a&&(a.top||a.bottom)?a.top?e.top(a.top):e.bottom(a.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(a="",e=""){return this._ref.updateSize(a,e),this}addPanelClass(a){return this._ref.addPanelClass(a),this}removePanelClass(a){return this._ref.removePanelClass(a),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}const As=new u.OlP("MatDialogData"),mp=new u.OlP("mat-dialog-default-options"),q_=new u.OlP("mat-dialog-scroll-strategy"),W_={provide:q_,deps:[ln],useFactory:function _p(r){return()=>r.scrollStrategies.block()}};let $_=0,Q_=(()=>{class r{constructor(e,t,o,l,c,n,i,s,d,h){this._overlay=e,this._defaultOptions=o,this._parentDialog=l,this._dialogRefConstructor=i,this._dialogContainerType=s,this._dialogDataToken=d,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new De.x,this._afterOpenedAtThisLevel=new De.x,this._idPrefix="mat-dialog-",this.afterAllClosed=Tr(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(It(void 0))),this._scrollStrategy=n,this._dialog=t.get(G_)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(e,t){let o;(t={...this._defaultOptions||new vs,...t}).id=t.id||`${this._idPrefix}${$_++}`,t.scrollStrategy=t.scrollStrategy||this._scrollStrategy();const l=this._dialog.open(e,{...t,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:vs,useValue:t},{provide:jd,useValue:t}]},templateContext:()=>({dialogRef:o}),providers:(c,n,i)=>(o=new this._dialogRefConstructor(c,t,i),o.updatePosition(t?.position),[{provide:this._dialogContainerType,useValue:i},{provide:this._dialogDataToken,useValue:n.data},{provide:this._dialogRefConstructor,useValue:o}])});return o.componentInstance=l.componentInstance,this.openDialogs.push(o),this.afterOpened.next(o),o.afterClosed().subscribe(()=>{const c=this.openDialogs.indexOf(o);c>-1&&(this.openDialogs.splice(c,1),this.openDialogs.length||this._getAfterAllClosed().next())}),o}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let t=e.length;for(;t--;)e[t].close()}}return r.\u0275fac=function(e){u.$Z()},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac}),r})(),wn=(()=>{class r extends Q_{constructor(e,t,o,l,c,n,i,s){super(e,t,l,n,i,c,yn,UE,As,s)}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(ln),u.LFG(u.zs3),u.LFG(T.Ye,8),u.LFG(mp,8),u.LFG(q_),u.LFG(r,12),u.LFG(kl),u.LFG(u.QbO,8))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac}),r})(),xA=0,va=(()=>{class r{constructor(e,t,o){this._dialogRef=e,this._elementRef=t,this._dialog=o,this.id="mat-dialog-title-"+xA++}ngOnInit(){this._dialogRef||(this._dialogRef=function WE(r,a){let e=r.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-dialog-container");)e=e.parentElement;return e?a.find(t=>t.id===e.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const e=this._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=this.id)})}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(yn,8),u.Y36(u.SBq),u.Y36(wn))},r.\u0275dir=u.lG2({type:r,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,t){2&e&&u.Ikx("id",t.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),r})(),Aa=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275dir=u.lG2({type:r,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),r})(),jr=(()=>{class r{constructor(){this.align="start"}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275dir=u.lG2({type:r,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(e,t){2&e&&u.ekj("mat-dialog-actions-align-center","center"===t.align)("mat-dialog-actions-align-end","end"===t.align)},inputs:{align:"align"}}),r})(),Yl=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({providers:[wn,W_],imports:[fp,ps,_n,qe,qe]}),r})();function bp(){return(bp=(0,j_.Z)(function*(r,a){yield DA(r),a()})).apply(this,arguments)}function DA(r){return new Promise(a=>setTimeout(a,r))}function vn(){const r=new vs;return r.disableClose=!0,r.autoFocus=!1,r}function xs(r,a){const e=a.split("&");for(const t of e){const[o,l]=t.split("=");if(o.includes(r))return l}return""}x(4327),new Intl.Collator("cs",{numeric:!0});class GA{static passwordMatchValidator(a){const e=a.get("passwordCtrl").value,t=a.get("passwordAgainCtrl").value;return a.get("passwordAgainCtrl").setErrors(e!==t?{noPasswordMatch:!0}:null),null}static patternValidator(a){return e=>{if(!e.value)return null;let t=0;for(const o of a)t+=o.test(e.value)?1:0;return t>=3?null:{isWeak:!0}}}}let li=(()=>{class r{constructor(){this.branding=""}setInstanceConfig(e){this.instanceConfig=e}setDefaultConfig(e){this.defaultConfig=e}getAppsConfig(){return this.appsConfig}setAppsConfig(e){this.appsConfig=e}setPerunPrincipal(e){this.principal=e}getPerunPrincipal(){return this.principal}getInitialPageId(){return this.initialPageId}setInitialPageId(e){this.initialPageId=e}getLoginAttributeNames(){return this.getProperty("login_namespace_attributes")}getMemberProfileAttributeNames(){return this.getProperty("member_profile_attributes_friendly_names")}setBanding(e){this.branding=e}getProperty(e){if(!this.instanceConfig||!this.defaultConfig)return null;const t=[this.instanceConfig?.brandings?.[this.branding],this.instanceConfig],o=this.defaultConfig[e];let l=null;for(const c of t)c&&null==l&&(l=c[e]);return null===l?o:this.addMissingValuesToProperty(l,o)}addMissingValuesToProperty(e,t){if("object"!=typeof e||Array.isArray(e)||null==e){if(null!=e)return e}else for(const o of Object.keys(t))t[o]=this.addMissingValuesToProperty(e[o],t[o]);return t}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();var xa=x(1214);let Ta=(()=>{class r{constructor(e,t,o,l,c){this.injector=e,this.store=t,this.dialog=o,this.route=l,this.oauthService=c,setTimeout(()=>{this.router=this.injector.get(ui),this.startIdpFilterKeeper()}),this.route.queryParams.subscribe(n=>{n.idpFilter&&(this.filterShortname=String(n.idpFilter))})}loadOidcConfigData(){this.oauthService.configure(this.getClientConfig())}logout(){sessionStorage.getItem("baPrincipal")?(sessionStorage.removeItem("baPrincipal"),sessionStorage.removeItem("basicUsername"),sessionStorage.removeItem("basicPassword"),sessionStorage.setItem("baLogout","true"),this.router.navigate(["/service-access"],{queryParamsHandling:"preserve"})):this.oauthService.logOut()}isLoggedIn(){return this.oauthService.hasValidAccessToken()}getAuthorizationHeaderValue(){return this.oauthService.hasValidAccessToken()?"Bearer "+this.oauthService.getAccessToken():""}startAuthentication(){this.oauthService.loadDiscoveryDocumentAndLogin()}getIdpFilter(){return this.filterShortname}getClientConfig(){const e=this.setIdpFilter(),l=.5+.25*Math.random(),c=e?{acr_values:e}:{},n=this.store.getProperty("oidc_client");if(n.oauth_scopes.split(" ").includes("offline_access")&&n.oauth_offline_access_consent_prompt&&(c.prompt="consent"),(sessionStorage.getItem("mfa_route")||sessionStorage.getItem("mfaProcessed"))&&(c.acr_values="https://refeds.org/profile/mfa"),sessionStorage.getItem("mfa_route")&&(c.prompt?c.prompt+=" login":c.prompt="login",c.max_age="0"),"Linker"===this.store.getProperty("application")){c.prompt?c.prompt+=" login":c.prompt="login";const i=xs("idphint",location.search.substring(1));i&&(c.idphint=i)}return{requestAccessToken:!0,issuer:n.oauth_authority,clientId:n.oauth_client_id,redirectUri:n.oauth_redirect_uri,postLogoutRedirectUri:n.oauth_post_logout_redirect_uri,responseType:n.oauth_response_type,scope:n.oauth_scopes,clockSkewInSec:1,timeoutFactor:l,userinfoEndpoint:this.store.getProperty("oidc_client").user_info_endpoint_url,customQueryParams:c}}setIdpFilter(){const e=location.search.length?location.search.substring(1).split("&"):[];this.filterShortname=null;const t=this.store.getProperty("oidc_client").filters;if(!t)return null;let o=null;return e.forEach(l=>{const c=l.split("=");"idpFilter"===c[0]&&t[c[1]]&&(this.filterShortname=c[1],o=t[c[1]])}),t.default&&!o?(this.filterShortname="default",t.default):o}startIdpFilterKeeper(){this.router.events.pipe((0,ei.h)(e=>e instanceof ia)).subscribe(()=>{const e={idpFilter:this.getIdpFilter()};this.router.navigate([],{relativeTo:this.route,queryParams:"default"===e.idpFilter?{}:e,queryParamsHandling:"merge",replaceUrl:!0})})}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(u.zs3),u.LFG(li),u.LFG(wn),u.LFG(ir),u.LFG(xa.Ct))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),ib=(()=>{class r{constructor(e){this.dialogRef=e}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(yn))},r.\u0275cmp=u.Xpm({type:r,selectors:[["perun-web-apps-user-dont-exist-dialog"]],decls:3,vars:3,consts:[["mat-dialog-content","",1,"mt-2","mb-2"]],template:function(e,t){1&e&&(u.TgZ(0,"h2",0),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.USER_DONT_EXIST.TITLE"),"\n"))},dependencies:[Aa,vi]}),r})();var nb=x(930);function vp(r,a){const e="object"==typeof a;return new Promise((t,o)=>{const l=new nb.Hp({next:c=>{t(c),l.unsubscribe()},error:o,complete:()=>{e?t(a.defaultValue):o(new Lo.K)}});r.subscribe(l)})}function qA(r,a){1&r&&(u.TgZ(0,"mat-icon",2),u._uU(1," info "),u.qZA())}function rb(r,a){1&r&&(u.TgZ(0,"mat-icon",2),u._uU(1," warning "),u.qZA())}function ab(r,a){1&r&&(u.TgZ(0,"mat-icon",2),u._uU(1," dangerous "),u.qZA())}function WA(r,a){1&r&&(u.TgZ(0,"mat-icon",2),u._uU(1," check_circle "),u.qZA())}const ob=["*"];let _o=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275cmp=u.Xpm({type:r,selectors:[["perun-web-apps-alert"]],inputs:{alert_type:"alert_type"},ngContentSelectors:ob,decls:6,vars:12,consts:[[1,"perun-alert","d-flex","align-items-flex-start"],["class","perun-alert-icon",4,"ngIf"],[1,"perun-alert-icon"]],template:function(e,t){1&e&&(u.F$t(),u.TgZ(0,"div",0),u.YNc(1,qA,2,0,"mat-icon",1),u.YNc(2,rb,2,0,"mat-icon",1),u.YNc(3,ab,2,0,"mat-icon",1),u.YNc(4,WA,2,0,"mat-icon",1),u.Hsn(5),u.qZA()),2&e&&(u.ekj("warn-alert","warn"===t.alert_type)("error-alert","error"===t.alert_type)("success-alert","success"===t.alert_type)("info-alert","info"===t.alert_type),u.xp6(1),u.Q6J("ngIf","info"===t.alert_type),u.xp6(1),u.Q6J("ngIf","warn"===t.alert_type),u.xp6(1),u.Q6J("ngIf","error"===t.alert_type),u.xp6(1),u.Q6J("ngIf","success"===t.alert_type))},dependencies:[ur,T.O5],styles:[".perun-alert[_ngcontent-%COMP%]{position:relative;padding:.75rem 1.25rem;margin-top:1rem;margin-bottom:1rem}.perun-alert.info-alert[_ngcontent-%COMP%]{font-style:italic;color:gray;text-align:left;border:1px #b3b3b3 solid;border-radius:10px}.perun-alert.warn-alert[_ngcontent-%COMP%]{font-weight:700;text-align:left;border:1px #ececec solid;border-radius:10px;background-color:#ececec}.perun-alert-icon[_ngcontent-%COMP%]{padding-right:2rem}.perun-alert.error-alert[_ngcontent-%COMP%]{text-align:left;border:1px #fedcda solid;border-radius:10px;background-color:#fedcda}.perun-alert.success-alert[_ngcontent-%COMP%]{text-align:left;border:1px #d7ffd7 solid;border-radius:10px;background-color:#d7ffd7}"]}),r})(),Ui=(()=>{class r{constructor(e,t){this.dialogRef=e,this.data=t}cancel(){this.dialogRef.close(!1)}submit(){this.dialogRef.close(!0)}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(yn),u.Y36(As))},r.\u0275cmp=u.Xpm({type:r,selectors:[["perun-web-apps-mfa-required-dialog"]],decls:15,vars:17,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["alert_type","warn"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"hidden","click"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,t){1&e&&(u.TgZ(0,"h1",0),u._uU(1),u.ALo(2,"translate"),u.qZA(),u.TgZ(3,"div",1)(4,"perun-web-apps-alert",2),u._uU(5),u.ALo(6,"translate"),u.ALo(7,"translate"),u.qZA()(),u.TgZ(8,"div",3)(9,"button",4),u.NdJ("click",function(){return t.cancel()}),u._uU(10),u.ALo(11,"translate"),u.qZA(),u.TgZ(12,"button",5),u.NdJ("click",function(){return t.submit()}),u._uU(13),u.ALo(14,"translate"),u.qZA()()),2&e&&(u.xp6(1),u.Oqu(u.lcZ(2,7,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.TITLE")),u.xp6(4),u.hij(" ",t.data.mfaRoleException?u.lcZ(6,9,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.INFO_ROLE"):u.lcZ(7,11,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.INFO")," "),u.xp6(4),u.Q6J("hidden",t.data.mfaRoleException),u.xp6(1),u.hij(" ",u.lcZ(11,13,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.CANCEL")," "),u.xp6(2),u.Tol(t.data.mfaRoleException?"ml-auto":"ml-2"),u.xp6(1),u.hij(" ",u.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.STEP_UP")," "))},dependencies:[va,Aa,jr,sn,_o,vi]}),r})(),Ts=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275cmp=u.Xpm({type:r,selectors:[["perun-web-apps-focus-on-mfa-window"]],decls:9,vars:6,consts:[[1,"text-center","custom-dialog"],[1,"align-text-bottom"]],template:function(e,t){1&e&&(u.TgZ(0,"div",0)(1,"div")(2,"mat-icon",1),u._uU(3," info "),u.qZA(),u._uU(4),u.ALo(5,"translate"),u.qZA(),u.TgZ(6,"div"),u._uU(7),u.ALo(8,"translate"),u.qZA()()),2&e&&(u.xp6(4),u.hij(" ",u.lcZ(5,2,"SHARED_LIB.PERUN.COMPONENTS.FOCUS_ON_MFA_DIALOG.MODAL")," "),u.xp6(3),u.hij(" ",u.lcZ(8,4,"SHARED_LIB.PERUN.COMPONENTS.FOCUS_ON_MFA_DIALOG.MODAL_WARNING")," "))},dependencies:[ur,vi],styles:[".custom-dialog[_ngcontent-%COMP%]{background-color:#000;color:#fffffff2;font-size:1.2rem}"]}),r})(),$A=(()=>{class r{constructor(e,t){this.data=e,this.dialogRef=t}cancel(){this.dialogRef.close(!1)}submit(){window.open(this.data.tokensUrl,"_blank"),this.dialogRef.close(!0)}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(As),u.Y36(yn))},r.\u0275cmp=u.Xpm({type:r,selectors:[["perun-web-apps-no-mfa-tokens-dialog"]],decls:14,vars:12,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["alert_type","warn"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(u.TgZ(0,"h1",0),u._uU(1),u.ALo(2,"translate"),u.qZA(),u.TgZ(3,"div",1)(4,"perun-web-apps-alert",2),u._uU(5),u.ALo(6,"translate"),u.qZA()(),u.TgZ(7,"div",3)(8,"button",4),u.NdJ("click",function(){return t.cancel()}),u._uU(9),u.ALo(10,"translate"),u.qZA(),u.TgZ(11,"button",5),u.NdJ("click",function(){return t.submit()}),u._uU(12),u.ALo(13,"translate"),u.qZA()()),2&e&&(u.xp6(1),u.Oqu(u.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.TITLE")),u.xp6(4),u.hij(" ",u.lcZ(6,6,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.INFO")," "),u.xp6(4),u.hij(" ",u.lcZ(10,8,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.CANCEL")," "),u.xp6(3),u.hij(" ",u.lcZ(13,10,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.MANAGE_TOKENS")," "))},dependencies:[va,Aa,jr,sn,_o,vi]}),r})(),Ap=(()=>{class r{constructor(e,t,o,l){this.dialog=e,this.oauthService=t,this.authService=o,this.store=l}openMfaWindow(e){let t=null,o=null;const l=vn();l.width="450px",l.data={mfaRoleException:e};const c=this.dialog.open(Ui,l);let n=!1;if(c.afterClosed().subscribe(i=>{if(i){if(sessionStorage.setItem("mfaRequired","true"),sessionStorage.setItem("oldAccessToken",this.oauthService.getAccessToken()),sessionStorage.setItem("oldRefreshToken",this.oauthService.getRefreshToken()),t=this.setupMfaWindow(),t){const s=vn();s.width="450px",s.panelClass="noBorderDialog",o=this.dialog.open(Ts,s)}}else n=!0}),localStorage.getItem("noMfaTokenDialog")){localStorage.removeItem("noMfaTokenDialog");const i=vn();i.width="450px",i.data={tokensUrl:this.store.getProperty("mfa").url_en},this.dialog.open($A,i)}return new bi.y(i=>{const s=setInterval(()=>t?.closed?(clearInterval(s),o.close(),sessionStorage.removeItem("mfaRequired"),sessionStorage.removeItem("mfaProcessed"),null===this.oauthService.getAccessToken()&&(localStorage.setItem("access_token",sessionStorage.getItem("oldAccessToken")),localStorage.setItem("refresh_token",sessionStorage.getItem("oldRefreshToken"))),i.next(!0)):n?(clearInterval(s),i.next(!1)):void 0,1e3)})}catchNoMfaTokenError(e){"unmet_authentication_requirements"===e&&(localStorage.setItem("noMfaTokenDialog","true"),window.close())}mfaWindowForceLogout(){if(sessionStorage.getItem("mfaRequired")&&!sessionStorage.getItem("mfaProcessed"))return sessionStorage.setItem("mfaProcessed","true"),this.oauthService.logOut(!0),this.authService.loadOidcConfigData(),void this.oauthService.loadDiscoveryDocumentAndLogin();sessionStorage.removeItem("mfaRequired")}closeMfaWindow(){sessionStorage.getItem("mfaProcessed")&&!sessionStorage.getItem("mfaRequired")&&(sessionStorage.removeItem("mfaProcessed"),window.close())}setupMfaWindow(){const e=location.pathname+location.search,l=window.top;return window.open(e,"_blank",`width=600,height=600,top=${l.outerHeight/2+l.screenY-300}, left=${l.outerWidth/2+l.screenX-300}`)}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(wn),u.LFG(xa.Ct),u.LFG(Ta),u.LFG(li))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),xp=(()=>{class r{constructor(e,t,o,l,c,n,i,s){this.authService=e,this.oauthService=t,this.storeService=o,this.authResolver=l,this.authzService=c,this.dialog=n,this.router=i,this.mfaHandlerService=s,this.loginScreenShown=!1,this.serviceAccess=!1,this.serviceAccessLoginScreen=!1}isLoginScreenShown(){return this.loginScreenShown}isServiceAccess(){return this.serviceAccess}isServiceAccessLoginScreenShown(){return this.serviceAccessLoginScreen}verifyAuth(){if(this.mfaHandlerService.mfaWindowForceLogout(),sessionStorage.getItem("baPrincipal"))return this.serviceAccess=!0,sessionStorage.getItem("auth:redirect")?this.redirectToOriginDestination():Promise.resolve(!0);if("/service-access"!==location.pathname&&!this.storeService.getProperty("auto_service_access_redirect")){this.authService.loadOidcConfigData();const e=location.pathname,t=location.search.substring(1);return"/api-callback"===e?this.oauthService.loadDiscoveryDocumentAndTryLogin().then(()=>this.startRefreshToken()).then(()=>this.redirectToOriginDestination()):this.oauthService.loadDiscoveryDocument().then(()=>this.tryRefreshToken()).then(()=>"Linker"===this.storeService.getProperty("application")?(sessionStorage.setItem("auth:queryParams",t),localStorage.removeItem("access_token"),!1):this.oauthService.hasValidAccessToken()?this.startRefreshToken():this.isPotentiallyValidPath(e)?(sessionStorage.setItem("auth:redirect",e),sessionStorage.setItem("auth:queryParams",t),!1):Promise.reject("Invalid path"))}}loadPrincipal(){return vp(this.authzService.getPerunPrincipal()).then(e=>{if(null===e.user){const t=vn();this.dialog.open(ib,t)}else this.storeService.setPerunPrincipal(e),this.authResolver.init(e)})}simpleLoadPrincipal(){return vp(this.authzService.getPerunPrincipal()).then(e=>{this.storeService.setPerunPrincipal(e)})}checkRouteGuard(){const e=localStorage.getItem("routeAuthGuard");e&&(localStorage.removeItem("routeAuthGuard"),this.router.navigate([e],{queryParamsHandling:"merge"}))}handleAuthStart(){if(this.storeService.getProperty("auto_service_access_redirect")&&"/service-access"!==location.pathname){this.serviceAccess=!0,this.serviceAccessLoginScreen=!0;const e=location.pathname,t=location.search.substring(1);sessionStorage.setItem("auth:redirect",e),sessionStorage.setItem("auth:queryParams",t);const o={};return t.split("&").forEach(l=>{const c=l.split("=");o[c[0]]=c[1]}),this.router.navigate(["service-access"],{queryParams:o,queryParamsHandling:"merge"}).then()}if("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal")||this.storeService.getProperty("auto_service_access_redirect")){this.serviceAccess=!0,this.serviceAccessLoginScreen=!0;const e=location.search.substring(1);return sessionStorage.setItem("auth:queryParams",e),Promise.resolve()}return this.storeService.getProperty("auto_auth_redirect")?(sessionStorage.getItem("mfaProcessed")||localStorage.setItem("routeAuthGuard",window.location.pathname),this.startAuth().then(()=>new Promise(()=>{}))):(this.setLoginScreen(!0),localStorage.setItem("routeAuthGuard",window.location.pathname),void this.router.navigate(["login"],{queryParamsHandling:"merge"}))}setLoginScreen(e){this.loginScreenShown=e}isPotentiallyValidPath(e){const t=["/home","/organizations","/facilities","/myProfile","/admin","/login","/service-access","/profile"];if("/"===e)return!0;for(const o of t)if(e.startsWith(o))return!0;return!1}startRefreshToken(){return this.oauthService.hasValidAccessToken()?(this.oauthService.events.pipe((0,ei.h)(e=>"token_expires"===e.type&&"access_token"===e.info)).subscribe(()=>{this.oauthService.refreshToken()}),Promise.resolve(!0)):Promise.resolve(!1)}tryRefreshToken(){return localStorage.getItem("refresh_token")&&!this.oauthService.hasValidAccessToken()?this.oauthService.refreshToken().then(()=>Promise.resolve()).catch(()=>Promise.resolve()):Promise.resolve()}redirectToOriginDestination(){const e=sessionStorage.getItem("mfa_route");if(e)return this.router.navigate([e],{replaceUrl:!0,queryParamsHandling:"merge"});let t=sessionStorage.getItem("auth:redirect");(!t||"/login"===t)&&(t="/"),sessionStorage.removeItem("auth:redirect");const o=sessionStorage.getItem("auth:queryParams");let l=[];o&&(l=o.split("&"));const c={};return l.forEach(n=>{const i=n.split("=");c[i[0]]=i[1]}),sessionStorage.removeItem("auth:queryParams"),this.router.navigate([t],{queryParams:c,replaceUrl:!0,queryParamsHandling:"merge"})}startAuth(){return this.authService.startAuthentication(),Promise.resolve()}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(Ta),u.LFG(xa.Ct),u.LFG(li),u.LFG(Ef),u.LFG(at),u.LFG(wn),u.LFG(ui),u.LFG(Ap))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Tp=(()=>{class r{constructor(e,t){this.matIconRegistry=e,this.domSanitizer=t,this.customIcons=[{url:"assets/img/PerunWebImages/refresh_tab-black.svg",name:"perun-refresh-enabled"},{url:"assets/img/PerunWebImages/refresh_tab-grey.svg",name:"perun-refresh-disabled"},{url:"assets/img/PerunWebImages/manage_facility_white.svg",name:"perun-manage-facility"},{url:"assets/img/PerunWebImages/vo-white.svg",name:"perun-vo"},{url:"assets/img/PerunWebImages/user-white.svg",name:"perun-user"},{url:"assets/img/PerunWebImages/perun_admin-white.svg",name:"perun-perun-admin"},{url:"assets/img/PerunWebImages/group-white.svg",name:"perun-group"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/preview-white.svg",name:"perun-preview"},{url:"assets/img/PerunWebImages/module_dependencies.svg",name:"perun-module-dependencies"},{url:"assets/img/PerunWebImages/user_destination_relationship.svg",name:"perun-user-destination-relationship"},{url:"assets/img/PerunWebImages/settings2-white.svg",name:"perun-settings2"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/applications-white.svg",name:"perun-applications"},{url:"assets/img/PerunWebImages/manager-white.svg",name:"perun-manager"},{url:"assets/img/PerunWebImages/key-white.svg",name:"perun-key"},{url:"assets/img/PerunWebImages/application_form-white.svg",name:"perun-application-form"},{url:"assets/img/PerunWebImages/notification-white.svg",name:"perun-notification"},{url:"assets/img/PerunWebImages/invite_member-white.svg",name:"perun-invite-member"},{url:"assets/img/PerunWebImages/service_identity-white.svg",name:"perun-service-identity"},{url:"assets/img/PerunWebImages/service_identity-black.svg",name:"perun-service-identity-black"},{url:"assets/img/PerunWebImages/create1-white.svg",name:"perun-create1"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource"},{url:"assets/img/PerunWebImages/resource_tags-white.svg",name:"perun-resource-tags"},{url:"assets/img/PerunWebImages/resources_state-white.svg",name:"perun-resources-state"},{url:"assets/img/PerunWebImages/external_sources-white.svg",name:"perun-external-sources"},{url:"assets/img/PerunWebImages/vo-dark.svg",name:"perun-vo-black"},{url:"assets/img/PerunWebImages/group-dark.svg",name:"perun-group-black"},{url:"assets/img/PerunWebImages/facility-dark.svg",name:"perun-facility-black"},{url:"assets/img/publications.svg",name:"perun-publications-white"},{url:"assets/img/PerunWebImages/owner-grey.svg",name:"perun-owner-grey"},{url:"assets/img/PerunWebImages/settings1-blue.svg",name:"perun-settings1"},{url:"assets/img/PerunWebImages/service_destination-blue.svg",name:"perun-service_destination"},{url:"assets/img/PerunWebImages/host-blue.svg",name:"perun-hosts"},{url:"assets/img/PerunWebImages/home.svg",name:"perun-home-white"},{url:"assets/img/PerunWebImages/security_admin-blue.svg",name:"perun-security-teams"},{url:"assets/img/PerunWebImages/black_list-white.svg",name:"perun-black-list"},{url:"assets/img/PerunWebImages/facility-white.svg",name:"perun-facility-white"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource-white"},{url:"assets/img/PerunWebImages/service-white.svg",name:"perun-service"},{url:"assets/img/PerunWebImages/resource-black.svg",name:"perun-resource-black"},{url:"assets/img/PerunWebImages/service_status-grey.svg",name:"perun-service-status"},{url:"assets/img/PerunWebImages/user-dark.svg",name:"perun-user-dark"},{url:"assets/img/PerunWebImages/statistics-blue.svg",name:"perun-statistics"},{url:"assets/img/PerunWebImages/audit_log-blue.svg",name:"perun-audit-log"},{url:"assets/img/PerunWebImages/contact-grey.svg",name:"perun-identity"},{url:"assets/img/PerunWebImages/roles.svg",name:"perun-roles"},{url:"assets/img/PerunWebImages/consent-white.svg",name:"perun-consent-hubs"},{url:"assets/img/PerunWebImages/hierarchical_vo-black.svg",name:"perun-hierarchical-vo"},{url:"assets/img/PerunWebImages/searcher-blue.svg",name:"perun-searcher"},{url:"assets/img/PerunWebImages/propagation-blue.svg",name:"perun-hierarchical-inclusion"},{url:"assets/img/PerunWebImages/verify-grey.svg",name:"perun-verify-grey"},{url:"assets/img/PerunWebImages/info-grey.svg",name:"perun-info-grey"},{url:"assets/img/PerunWebImages/logins.svg",name:"perun-logins"},{url:"assets/img/PerunWebImages/certificates.svg",name:"perun-certificates"},{url:"assets/img/PerunWebImages/authentication.svg",name:"perun-authentication"},{url:"assets/img/PerunWebImages/ban.svg",name:"perun-ban"}]}registerPerunRefreshIcon(){this.customIcons.forEach(e=>{this.matIconRegistry.addSvgIcon(e.name,this.domSanitizer.bypassSecurityTrustResourceUrl(e.url))})}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(Ql),u.LFG(Xt))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac}),r})(),Ep=(()=>{class r{constructor(e){this.dialogRef=e}close(){this.dialogRef.close(!0)}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(yn))},r.\u0275cmp=u.Xpm({type:r,selectors:[["perun-web-apps-session-expiration-dialog"]],decls:11,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"ml-auto"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,t){1&e&&(u.TgZ(0,"h1",0),u._uU(1),u.ALo(2,"translate"),u.qZA(),u.TgZ(3,"div",1),u._uU(4),u.ALo(5,"translate"),u.qZA(),u.TgZ(6,"div",2)(7,"div",3)(8,"button",4),u.NdJ("click",function(){return t.close()}),u._uU(9),u.ALo(10,"translate"),u.qZA()()()),2&e&&(u.xp6(1),u.Oqu(u.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.TITLE")),u.xp6(3),u.hij(" ",u.lcZ(5,5,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.DESCRIPTION"),"\n"),u.xp6(5),u.hij(" ",u.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.SIGN_IN")," "))},dependencies:[va,Aa,jr,sn,vi]}),r})(),Es=(()=>{class r{constructor(){this.handleNextError=!0}dontHandleErrorForNext(){this.handleNextError=!1}shouldHandleError(){const e=this.handleNextError;return this.handleNextError=!0,e}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Ud=(()=>{class r{constructor(e){this.translate=e,this.addNotification=new u.vpe,this.defaultErrorDelayMs=5e3,this.defaultSuccessDelayMs=3e3}getDefaultActionMessage(){return void 0===this.defaultAction?this.defaultAction=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_ACTION"):this.defaultAction}getDefaultRpcMessage(){return void 0===this.defaultRpcMessage?this.defaultRpcMessage=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_RPC_ERROR_MESSAGE"):this.defaultRpcMessage}showRPCError(e,t=this.getDefaultRpcMessage()){this.showError("PrivilegeException"===e.name?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.PRIVILEGE_EXCEPTION"):void 0===e.name?t:t+"\n"+e.name,e,e.message)}showRouteError(){const e=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_ERROR"),t=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_DESC");this.showError(e,null,t)}showError(e,t,o,l,c){this.addNotification.emit({type:"error",error:t,description:o,title:e,actionText:void 0===l&&void 0!==o?this.getDefaultActionMessage():l,delay:this.defaultErrorDelayMs,icon:"error_outline",action:c,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}showSuccess(e,t,o,l){this.addNotification.emit({type:"success",description:t,title:e,actionText:void 0===o&&void 0!==t?this.getDefaultActionMessage():o,delay:this.defaultSuccessDelayMs,icon:"done",action:l,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(Bi))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Gd=(()=>{class r{constructor(e,t,o,l,c,n,i,s){this.authService=e,this.apiRequestConfiguration=t,this.notificator=o,this.store=l,this.dialog=c,this.initAuthService=n,this.mfaHandlerService=i,this.oauthService=s}intercept(e,t){const o=this.store.getProperty("api_url");if(e.url.includes("i18n")&&(e=e.clone({setHeaders:{"Cache-control":"no-cache, must-revalidate"}})),void 0!==o&&this.isCallToPerunApi(e.url)&&!this.authService.isLoggedIn()&&!this.initAuthService.isServiceAccess()&&!this.dialogRefSessionExpiration){const l=vn();l.width="450px",this.dialogRefSessionExpiration=this.dialog.open(Ep,l),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{Mt(()=>this.dialogRefSessionExpiration=void 0),sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.reauthenticate()})}return this.initAuthService.isServiceAccess()?e=e.clone({setHeaders:{Authorization:"Basic "+btoa(sessionStorage.getItem("basicUsername")+":"+sessionStorage.getItem("basicPassword"))}}):this.isCallToPerunApi(e.url)&&(e=e.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}})),this.handleRequest(e,t)}reauthenticate(){sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.initAuthService.handleAuthStart()}handleRequest(e,t){const o=this.apiRequestConfiguration.shouldHandleError(),l="POST"===e.method&&this.isNotConsolidatorOrLinker()&&this.isCallToPerunApi(e.url);return t.handle(e).pipe((0,bt.b)(c=>{c instanceof y.Zn&&l&&this.initAuthService.loadPrincipal()}),(0,M.K)(c=>{const n=c.error;if("MfaPrivilegeException"===n.type||"MfaRolePrivilegeException"===n.type)return this.mfaHandlerService.openMfaWindow("MfaRolePrivilegeException"===n.type).pipe((0,Ci.w)(i=>i?("MfaRolePrivilegeException"===n.type&&window.location.reload(),this.handleRequest(this.replaceAuthenticationToken(e),t)):(0,pn._)(()=>n)));{this.handleInvalidAccessTokenError(c);const i=this.formatErrors(c,e);return void 0===i?(0,pn._)(()=>c):(o&&this.notificator.showRPCError(i),(0,pn._)(()=>i))}}))}replaceAuthenticationToken(e){return e.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}})}isCallToPerunApi(e){return e.startsWith(this.store.getProperty("api_url"))}formatErrors(e,t){let o;console.error(e);const l=e.error;if(l.errorId&&(o=l),void 0!==o)return o.urlWithParams=t.urlWithParams,o.call=t.url,o.payload=t.body,o}isNotConsolidatorOrLinker(){const e=this.store.getProperty("application");return!("Linker"===e||"Consolidator"===e)}handleInvalidAccessTokenError(e){if(401===e.status){const t=vn();this.dialogRefSessionExpiration=this.dialog.open(Ep,t),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{this.oauthService.logOut(!0),this.reauthenticate()})}}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(Ta),u.LFG(Es),u.LFG(Ud),u.LFG(li),u.LFG(wn),u.LFG(xp),u.LFG(Ap),u.LFG(xa.Ct))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac}),r})(),Sp=(()=>{class r{constructor(){this.newNotificationsCount=0,this.notificationData=[]}storeNotification(e){this.newNotificationsCount++,this.notificationData.push(e)}getNotifications(){return this.notificationData.reverse()}clearNotifications(){this.notificationData=[]}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),sb=(()=>{class r{constructor(e,t,o,l){this.http=e,this.notificator=t,this.authService=o,this.storeService=l}getApiUrl(){return void 0===this.api_url&&(this.api_url=this.storeService.getProperty("api_url")),this.api_url+"/"}getHeaders(){let e=new y.WM;return e=e.set("Authorization",this.authService.getAuthorizationHeaderValue()),e}get(e,t=!0){const o=`${this.getApiUrl()}${e}`;return this.http.get(o,{headers:this.getHeaders()}).pipe((0,M.K)(l=>this.formatErrors(l,o,null,t)))}put(e,t={},o=!0){const l=`${this.getApiUrl()}${e}`,c=JSON.stringify(t);return this.http.put(l,c,{headers:this.getHeaders()}).pipe((0,M.K)(n=>this.formatErrors(n,l,c,o)))}post(e,t={},o=!0){const l=`${this.getApiUrl()}${e}`,c=JSON.stringify(t);let n=this.getHeaders();return n=n.set("Content-Type","application/json; charset=utf-8"),this.http.post(l,c,{headers:n}).pipe((0,M.K)(i=>this.formatErrors(i,l,c,o)))}delete(e,t=!0){const o=`${this.getApiUrl()}${e}`;return this.http.delete(o,{headers:this.getHeaders()}).pipe((0,M.K)(l=>this.formatErrors(l,o,null,t)))}formatErrors(e,t,o,l){const c=e.error;return c.call=t,c.payload=o,l&&this.notificator.showRPCError(e.error),(0,pn._)(c)}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(y.eN),u.LFG(Ud),u.LFG(Ta),u.LFG(li))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),lb=(()=>{class r{constructor(e,t){this.route=e,this.store=t}getPreferredLanguage(e){const t=this.store.getProperty("supported_languages"),o=navigator.languages.map(n=>n.split("-")[0]),l=location.search.substring(1).split("&");let c=null;for(const n of l){const i=n.split("=");"lang"===i[0]&&(c=i[1])}return c&&t.includes(c)?c:e&&t.includes(e)?e:o&&t.includes(o[0])?o[0]:"en"}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(ir),u.LFG(li))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Ss=(()=>{class r{constructor(e){this.storeService=e}static getBrandContainingDomain(e,t){for(const l of e)if(l.newApps.admin===t||l.newApps.profile===t||l.newApps.pwdReset===t||l.newApps.consolidator===t||l.newApps.linker===t)return l;return e.filter(l=>"default"===l.name)[0]||e[0]}getUrlForOtherApplication(e,t){const l=window.location.href.split("/"),c=l[0]+"//"+l[2],n=r.getBrandContainingDomain(this.storeService.getAppsConfig().brands,c);let i;if(n.newApps[e])i=n.newApps[e],"pwdReset"===e&&(i+=`?login-namespace=${t}`);else switch(i=n.oldGuiDomain+"/fed",e){case"admin":i+="/gui/";break;case"profile":i+="/profile/";break;case"pwdReset":i+=`/pwd-reset/?login-namespace=${t}`}return i}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(li))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),qd=(()=>{class r{getErrorKey(e){switch(e.name.split("Exception")[0]){case"PasswordDoesntMatch":return"passwordDoesntMatchError";case"PasswordChangeFailed":return"passwordChangeFailedError";case"PasswordCreationFailed":default:return"passwordCreationFailedError";case"PasswordDeletionFailed":return"passwordDeletionFailedError";case"LoginNotExists":return"loginNotExistsError";case"PasswordStrengthFailed":return"passwordStrengthFailedError";case"PasswordOperationTimeout":return"passwordOperationTimeoutError"}}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Wd=(()=>{class r{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(e,t){this._renderer.setProperty(this._elementRef.nativeElement,e,t)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(u.Qsj),u.Y36(u.SBq))},r.\u0275dir=u.lG2({type:r}),r})(),Ms=(()=>{class r extends Wd{}return r.\u0275fac=function(){let a;return function(t){return(a||(a=u.n5z(r)))(t||r)}}(),r.\u0275dir=u.lG2({type:r,features:[u.qOj]}),r})();const Oi=new u.OlP("NgValueAccessor"),Ds={provide:Oi,useExisting:(0,u.Gpc)(()=>pr),multi:!0},db=new u.OlP("CompositionEventMode");let pr=(()=>{class r extends Wd{constructor(e,t,o){super(e,t),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function KA(){const r=(0,T.q)()?(0,T.q)().getUserAgent():"";return/android (\d+)/.test(r.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(u.Qsj),u.Y36(u.SBq),u.Y36(db,8))},r.\u0275dir=u.lG2({type:r,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(e,t){1&e&&u.NdJ("input",function(l){return t._handleInput(l.target.value)})("blur",function(){return t.onTouched()})("compositionstart",function(){return t._compositionStart()})("compositionend",function(l){return t._compositionEnd(l.target.value)})},features:[u._Bn([Ds]),u.qOj]}),r})();function Ea(r){return null==r||("string"==typeof r||Array.isArray(r))&&0===r.length}function ZA(r){return null!=r&&"number"==typeof r.length}const fi=new u.OlP("NgValidators"),Sa=new u.OlP("NgAsyncValidators"),XA=/^(?=.{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 fr{static min(a){return function Dp(r){return a=>{if(Ea(a.value)||Ea(r))return null;const e=parseFloat(a.value);return!isNaN(e)&&e{if(Ea(a.value)||Ea(r))return null;const e=parseFloat(a.value);return!isNaN(e)&&e>r?{max:{max:r,actual:a.value}}:null}}(a)}static required(a){return Hp(a)}static requiredTrue(a){return function Pp(r){return!0===r.value?null:{required:!0}}(a)}static email(a){return function hb(r){return Ea(r.value)||XA.test(r.value)?null:{email:!0}}(a)}static minLength(a){return function pb(r){return a=>Ea(a.value)||!ZA(a.value)?null:a.value.lengthZA(a.value)&&a.value.length>r?{maxlength:{requiredLength:r,actualLength:a.value.length}}:null}(a)}static pattern(a){return function fb(r){if(!r)return Kl;let a,e;return"string"==typeof r?(e="","^"!==r.charAt(0)&&(e+="^"),e+=r,"$"!==r.charAt(r.length-1)&&(e+="$"),a=new RegExp(e)):(e=r.toString(),a=r),t=>{if(Ea(t.value))return null;const o=t.value;return a.test(o)?null:{pattern:{requiredPattern:e,actualValue:o}}}}(a)}static nullValidator(a){return null}static compose(a){return Bp(a)}static composeAsync(a){return n0(a)}}function Hp(r){return Ea(r.value)?{required:!0}:null}function Kl(r){return null}function Ip(r){return null!=r}function kp(r){return(0,u.QGY)(r)?(0,Ti.D)(r):r}function Vp(r){let a={};return r.forEach(e=>{a=null!=e?{...a,...e}:a}),0===Object.keys(a).length?null:a}function gb(r,a){return a.map(e=>e(r))}function t0(r){return r.map(a=>function e0(r){return!r.validate}(a)?a:e=>a.validate(e))}function Bp(r){if(!r)return null;const a=r.filter(Ip);return 0==a.length?null:function(e){return Vp(gb(e,a))}}function mb(r){return null!=r?Bp(t0(r)):null}function n0(r){if(!r)return null;const a=r.filter(Ip);return 0==a.length?null:function(e){return Dd(gb(e,a).map(kp)).pipe((0,ze.U)(Vp))}}function _b(r){return null!=r?n0(t0(r)):null}function r0(r,a){return null===r?[a]:Array.isArray(r)?[...r,a]:[r,a]}function a0(r){return r._rawValidators}function o0(r){return r._rawAsyncValidators}function bb(r){return r?Array.isArray(r)?r:[r]:[]}function Op(r,a){return Array.isArray(r)?r.includes(a):r===a}function Zl(r,a){const e=bb(a);return bb(r).forEach(o=>{Op(e,o)||e.push(o)}),e}function s0(r,a){return bb(a).filter(e=>!Op(r,e))}class Lp{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(a){this._rawValidators=a||[],this._composedValidatorFn=mb(this._rawValidators)}_setAsyncValidators(a){this._rawAsyncValidators=a||[],this._composedAsyncValidatorFn=_b(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(a){this._onDestroyCallbacks.push(a)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(a=>a()),this._onDestroyCallbacks=[]}reset(a){this.control&&this.control.reset(a)}hasError(a,e){return!!this.control&&this.control.hasError(a,e)}getError(a,e){return this.control?this.control.getError(a,e):null}}class Ai extends Lp{get formDirective(){return null}get path(){return null}}class On extends Lp{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Fp{constructor(a){this._cd=a}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let bo=(()=>{class r extends Fp{constructor(e){super(e)}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(On,2))},r.\u0275dir=u.lG2({type:r,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&u.ekj("ng-untouched",t.isUntouched)("ng-touched",t.isTouched)("ng-pristine",t.isPristine)("ng-dirty",t.isDirty)("ng-valid",t.isValid)("ng-invalid",t.isInvalid)("ng-pending",t.isPending)},features:[u.qOj]}),r})(),jp=(()=>{class r extends Fp{constructor(e){super(e)}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(Ai,10))},r.\u0275dir=u.lG2({type:r,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,t){2&e&&u.ekj("ng-untouched",t.isUntouched)("ng-touched",t.isTouched)("ng-pristine",t.isPristine)("ng-dirty",t.isDirty)("ng-valid",t.isValid)("ng-invalid",t.isInvalid)("ng-pending",t.isPending)("ng-submitted",t.isSubmitted)},features:[u.qOj]}),r})();const Gi="VALID",Qd="INVALID",Ma="PENDING",Xl="DISABLED";function qi(r){return(Yd(r)?r.validators:r)||null}function Ab(r){return Array.isArray(r)?mb(r):r||null}function ec(r,a){return(Yd(a)?a.asyncValidators:r)||null}function xb(r){return Array.isArray(r)?_b(r):r||null}function Yd(r){return null!=r&&!Array.isArray(r)&&"object"==typeof r}function Jd(r,a,e){const t=r.controls;if(!(a?Object.keys(t):t).length)throw new u.vHH(1e3,"");if(!t[e])throw new u.vHH(1001,"")}function Gp(r,a,e){r._forEachChild((t,o)=>{if(void 0===e[o])throw new u.vHH(1002,"")})}class tc{constructor(a,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=a,this._rawAsyncValidators=e,this._composedValidatorFn=Ab(this._rawValidators),this._composedAsyncValidatorFn=xb(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(a){this._rawValidators=this._composedValidatorFn=a}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(a){this._rawAsyncValidators=this._composedAsyncValidatorFn=a}get parent(){return this._parent}get valid(){return this.status===Gi}get invalid(){return this.status===Qd}get pending(){return this.status==Ma}get disabled(){return this.status===Xl}get enabled(){return this.status!==Xl}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(a){this._rawValidators=a,this._composedValidatorFn=Ab(a)}setAsyncValidators(a){this._rawAsyncValidators=a,this._composedAsyncValidatorFn=xb(a)}addValidators(a){this.setValidators(Zl(a,this._rawValidators))}addAsyncValidators(a){this.setAsyncValidators(Zl(a,this._rawAsyncValidators))}removeValidators(a){this.setValidators(s0(a,this._rawValidators))}removeAsyncValidators(a){this.setAsyncValidators(s0(a,this._rawAsyncValidators))}hasValidator(a){return Op(this._rawValidators,a)}hasAsyncValidator(a){return Op(this._rawAsyncValidators,a)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(a={}){this.touched=!0,this._parent&&!a.onlySelf&&this._parent.markAsTouched(a)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(a=>a.markAllAsTouched())}markAsUntouched(a={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!a.onlySelf&&this._parent._updateTouched(a)}markAsDirty(a={}){this.pristine=!1,this._parent&&!a.onlySelf&&this._parent.markAsDirty(a)}markAsPristine(a={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!a.onlySelf&&this._parent._updatePristine(a)}markAsPending(a={}){this.status=Ma,!1!==a.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!a.onlySelf&&this._parent.markAsPending(a)}disable(a={}){const e=this._parentMarkedDirty(a.onlySelf);this.status=Xl,this.errors=null,this._forEachChild(t=>{t.disable({...a,onlySelf:!0})}),this._updateValue(),!1!==a.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...a,skipPristineCheck:e}),this._onDisabledChange.forEach(t=>t(!0))}enable(a={}){const e=this._parentMarkedDirty(a.onlySelf);this.status=Gi,this._forEachChild(t=>{t.enable({...a,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:a.emitEvent}),this._updateAncestors({...a,skipPristineCheck:e}),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(a){this._parent&&!a.onlySelf&&(this._parent.updateValueAndValidity(a),a.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(a){this._parent=a}getRawValue(){return this.value}updateValueAndValidity(a={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Gi||this.status===Ma)&&this._runAsyncValidator(a.emitEvent)),!1!==a.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!a.onlySelf&&this._parent.updateValueAndValidity(a)}_updateTreeValidity(a={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(a)),this.updateValueAndValidity({onlySelf:!0,emitEvent:a.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Xl:Gi}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(a){if(this.asyncValidator){this.status=Ma,this._hasOwnPendingAsyncValidator=!0;const e=kp(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(t=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(t,{emitEvent:a})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(a,e={}){this.errors=a,this._updateControlsErrors(!1!==e.emitEvent)}get(a){let e=a;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((t,o)=>t&&t._find(o),this)}getError(a,e){const t=e?this.get(e):this;return t&&t.errors?t.errors[a]:null}hasError(a,e){return!!this.getError(a,e)}get root(){let a=this;for(;a._parent;)a=a._parent;return a}_updateControlsErrors(a){this.status=this._calculateStatus(),a&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(a)}_initObservables(){this.valueChanges=new u.vpe,this.statusChanges=new u.vpe}_calculateStatus(){return this._allControlsDisabled()?Xl:this.errors?Qd:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ma)?Ma:this._anyControlsHaveStatus(Qd)?Qd:Gi}_anyControlsHaveStatus(a){return this._anyControls(e=>e.status===a)}_anyControlsDirty(){return this._anyControls(a=>a.dirty)}_anyControlsTouched(){return this._anyControls(a=>a.touched)}_updatePristine(a={}){this.pristine=!this._anyControlsDirty(),this._parent&&!a.onlySelf&&this._parent._updatePristine(a)}_updateTouched(a={}){this.touched=this._anyControlsTouched(),this._parent&&!a.onlySelf&&this._parent._updateTouched(a)}_registerOnCollectionChange(a){this._onCollectionChange=a}_setUpdateStrategy(a){Yd(a)&&null!=a.updateOn&&(this._updateOn=a.updateOn)}_parentMarkedDirty(a){return!a&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(a){return null}}class Kd extends tc{constructor(a,e,t){super(qi(e),ec(t,e)),this.controls=a,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(a,e){return this.controls[a]?this.controls[a]:(this.controls[a]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(a,e,t={}){this.registerControl(a,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}removeControl(a,e={}){this.controls[a]&&this.controls[a]._registerOnCollectionChange(()=>{}),delete this.controls[a],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(a,e,t={}){this.controls[a]&&this.controls[a]._registerOnCollectionChange(()=>{}),delete this.controls[a],e&&this.registerControl(a,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}contains(a){return this.controls.hasOwnProperty(a)&&this.controls[a].enabled}setValue(a,e={}){Gp(this,0,a),Object.keys(a).forEach(t=>{Jd(this,!0,t),this.controls[t].setValue(a[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(a,e={}){null!=a&&(Object.keys(a).forEach(t=>{const o=this.controls[t];o&&o.patchValue(a[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(a={},e={}){this._forEachChild((t,o)=>{t.reset(a[o],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(a,e,t)=>(a[t]=e.getRawValue(),a))}_syncPendingControls(){let a=this._reduceChildren(!1,(e,t)=>!!t._syncPendingControls()||e);return a&&this.updateValueAndValidity({onlySelf:!0}),a}_forEachChild(a){Object.keys(this.controls).forEach(e=>{const t=this.controls[e];t&&a(t,e)})}_setUpControls(){this._forEachChild(a=>{a.setParent(this),a._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(a){for(const[e,t]of Object.entries(this.controls))if(this.contains(e)&&a(t))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,t,o)=>((t.enabled||this.disabled)&&(e[o]=t.value),e))}_reduceChildren(a,e){let t=a;return this._forEachChild((o,l)=>{t=e(t,o,l)}),t}_allControlsDisabled(){for(const a of Object.keys(this.controls))if(this.controls[a].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(a){return this.controls.hasOwnProperty(a)?this.controls[a]:null}}function Zd(r,a){return[...a.path,r]}function Co(r,a){Fn(r,a),a.valueAccessor.writeValue(r.value),r.disabled&&a.valueAccessor.setDisabledState?.(!0),function CS(r,a){a.valueAccessor.registerOnChange(e=>{r._pendingValue=e,r._pendingChange=!0,r._pendingDirty=!0,"change"===r.updateOn&&Tb(r,a)})}(r,a),function b0(r,a){const e=(t,o)=>{a.valueAccessor.writeValue(t),o&&a.viewToModelUpdate(t)};r.registerOnChange(e),a._registerOnDestroy(()=>{r._unregisterOnChange(e)})}(r,a),function _0(r,a){a.valueAccessor.registerOnTouched(()=>{r._pendingTouched=!0,"blur"===r.updateOn&&r._pendingChange&&Tb(r,a),"submit"!==r.updateOn&&r.markAsTouched()})}(r,a),function qp(r,a){if(a.valueAccessor.setDisabledState){const e=t=>{a.valueAccessor.setDisabledState(t)};r.registerOnDisabledChange(e),a._registerOnDestroy(()=>{r._unregisterOnDisabledChange(e)})}}(r,a)}function Ln(r,a,e=!0){const t=()=>{};a.valueAccessor&&(a.valueAccessor.registerOnChange(t),a.valueAccessor.registerOnTouched(t)),Xd(r,a),r&&(a._invokeOnDestroyCallbacks(),r._registerOnCollectionChange(()=>{}))}function ic(r,a){r.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(a)})}function Fn(r,a){const e=a0(r);null!==a.validator?r.setValidators(r0(e,a.validator)):"function"==typeof e&&r.setValidators([e]);const t=o0(r);null!==a.asyncValidator?r.setAsyncValidators(r0(t,a.asyncValidator)):"function"==typeof t&&r.setAsyncValidators([t]);const o=()=>r.updateValueAndValidity();ic(a._rawValidators,o),ic(a._rawAsyncValidators,o)}function Xd(r,a){let e=!1;if(null!==r){if(null!==a.validator){const o=a0(r);if(Array.isArray(o)&&o.length>0){const l=o.filter(c=>c!==a.validator);l.length!==o.length&&(e=!0,r.setValidators(l))}}if(null!==a.asyncValidator){const o=o0(r);if(Array.isArray(o)&&o.length>0){const l=o.filter(c=>c!==a.asyncValidator);l.length!==o.length&&(e=!0,r.setAsyncValidators(l))}}}const t=()=>{};return ic(a._rawValidators,t),ic(a._rawAsyncValidators,t),e}function Tb(r,a){r._pendingDirty&&r.markAsDirty(),r.setValue(r._pendingValue,{emitModelToViewChange:!1}),a.viewToModelUpdate(r._pendingValue),r._pendingChange=!1}function Eb(r,a){Fn(r,a)}function Hb(r,a){if(!r.hasOwnProperty("model"))return!1;const e=r.model;return!!e.isFirstChange()||!Object.is(a,e.currentValue)}function $p(r,a){r._syncPendingControls(),a.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function eu(r,a){if(!a)return null;let e,t,o;return Array.isArray(a),a.forEach(l=>{l.constructor===pr?e=l:function Wp(r){return Object.getPrototypeOf(r.constructor)===Ms}(l)?t=l:o=l}),o||t||e||null}const Pb={provide:Ai,useExisting:(0,u.Gpc)(()=>Ha)},Da=(()=>Promise.resolve(null))();let Ha=(()=>{class r extends Ai{constructor(e,t){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new u.vpe,this.form=new Kd({},mb(e),_b(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Da.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),Co(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Da.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Da.then(()=>{const t=this._findContainer(e.path),o=new Kd({});Eb(o,e),t.registerControl(e.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Da.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){Da.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,$p(this.form,this._directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(fi,10),u.Y36(Sa,10))},r.\u0275dir=u.lG2({type:r,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&u.NdJ("submit",function(l){return t.onSubmit(l)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[u._Bn([Pb]),u.qOj]}),r})();function Qp(r,a){const e=r.indexOf(a);e>-1&&r.splice(e,1)}function Rb(r){return"object"==typeof r&&null!==r&&2===Object.keys(r).length&&"value"in r&&"disabled"in r}const zr=class extends tc{constructor(a=null,e,t){super(qi(e),ec(t,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(a),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Yd(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=Rb(a)?a.value:a)}setValue(a,e={}){this.value=this._pendingValue=a,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(a,e={}){this.setValue(a,e)}reset(a=this.defaultValue,e={}){this._applyFormState(a),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(a){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(a){this._onChange.push(a)}_unregisterOnChange(a){Qp(this._onChange,a)}registerOnDisabledChange(a){this._onDisabledChange.push(a)}_unregisterOnDisabledChange(a){Qp(this._onDisabledChange,a)}_forEachChild(a){}_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(a){Rb(a)?(this.value=this._pendingValue=a.value,a.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=a}},Ib=zr,vS={provide:On,useExisting:(0,u.Gpc)(()=>Yp)},x0=(()=>Promise.resolve(null))();let Yp=(()=>{class r extends On{constructor(e,t,o,l,c){super(),this._changeDetectorRef=c,this.control=new zr,this._registered=!1,this.update=new u.vpe,this._parent=e,this._setValidators(t),this._setAsyncValidators(o),this.valueAccessor=eu(0,l)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const t=e.name.previousValue;this.formDirective.removeControl({name:t,path:this._getPath(t)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),Hb(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_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(){Co(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(e){x0.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const t=e.isDisabled.currentValue,o=0!==t&&(0,u.D6c)(t);x0.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?Zd(e,this._parent):[e]}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(Ai,9),u.Y36(fi,10),u.Y36(Sa,10),u.Y36(Oi,10),u.Y36(u.sBO,8))},r.\u0275dir=u.lG2({type:r,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[u._Bn([vS]),u.qOj,u.TTD]}),r})(),Ob=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({}),r})();const nc=new u.OlP("NgModelWithFormControlWarning"),T0={provide:On,useExisting:(0,u.Gpc)(()=>Hs)};let Hs=(()=>{class r extends On{constructor(e,t,o,l){super(),this._ngModelWarningConfig=l,this.update=new u.vpe,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(t),this.valueAccessor=eu(0,o)}set isDisabled(e){}ngOnChanges(e){if(this._isControlChanged(e)){const t=e.form.previousValue;t&&Ln(t,this,!1),Co(this.form,this),this.form.updateValueAndValidity({emitEvent:!1})}Hb(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Ln(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}}return r._ngModelWarningSentOnce=!1,r.\u0275fac=function(e){return new(e||r)(u.Y36(fi,10),u.Y36(Sa,10),u.Y36(Oi,10),u.Y36(nc,8))},r.\u0275dir=u.lG2({type:r,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[u._Bn([T0]),u.qOj,u.TTD]}),r})();const Jp={provide:Ai,useExisting:(0,u.Gpc)(()=>gr)};let gr=(()=>{class r extends Ai{constructor(e,t){super(),this.validators=e,this.asyncValidators=t,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new u.vpe,this._setValidators(e),this._setAsyncValidators(t)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Xd(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const t=this.form.get(e.path);return Co(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){Ln(e.control||null,e,!1),function y0(r,a){const e=r.indexOf(a);e>-1&&r.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,t){this.form.get(e.path).setValue(t)}onSubmit(e){return this.submitted=!0,$p(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const t=e.control,o=this.form.get(e.path);t!==o&&(Ln(t||null,e),(r=>r instanceof zr)(o)&&(Co(o,e),e.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const t=this.form.get(e.path);Eb(t,e),t.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const t=this.form.get(e.path);t&&function Sb(r,a){return Xd(r,a)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Fn(this.form,this),this._oldForm&&Xd(this._oldForm,this)}_checkFormPresent(){}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(fi,10),u.Y36(Sa,10))},r.\u0275dir=u.lG2({type:r,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&u.NdJ("submit",function(l){return t.onSubmit(l)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[u._Bn([Jp]),u.qOj,u.TTD]}),r})();const E0={provide:On,useExisting:(0,u.Gpc)(()=>Zp)};let Zp=(()=>{class r extends On{constructor(e,t,o,l,c){super(),this._ngModelWarningConfig=c,this._added=!1,this.update=new u.vpe,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(t),this._setAsyncValidators(o),this.valueAccessor=eu(0,l)}set isDisabled(e){}ngOnChanges(e){this._added||this._setUpControl(),Hb(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return Zd(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._added=!0}}return r._ngModelWarningSentOnce=!1,r.\u0275fac=function(e){return new(e||r)(u.Y36(Ai,13),u.Y36(fi,10),u.Y36(Sa,10),u.Y36(Oi,10),u.Y36(nc,8))},r.\u0275dir=u.lG2({type:r,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[u._Bn([E0]),u.qOj,u.TTD]}),r})(),yo=(()=>{class r{constructor(){this._validator=Kl}ngOnChanges(e){if(this.inputName in e){const t=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(t),this._validator=this._enabled?this.createValidator(t):Kl,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275dir=u.lG2({type:r,features:[u.TTD]}),r})();const P0={provide:fi,useExisting:(0,u.Gpc)(()=>wo),multi:!0};let wo=(()=>{class r extends yo{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=u.D6c,this.createValidator=e=>Hp}enabled(e){return e}}return r.\u0275fac=function(){let a;return function(t){return(a||(a=u.n5z(r)))(t||r)}}(),r.\u0275dir=u.lG2({type:r,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&u.uIk("required",t._enabled?"":null)},inputs:{required:"required"},features:[u._Bn([P0]),u.qOj]}),r})(),m=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({imports:[Ob]}),r})(),_=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({imports:[m]}),r})(),C=(()=>{class r{static withConfig(e){return{ngModule:r,providers:[{provide:nc,useValue:e.warnOnNgModelWithFormControl}]}}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({imports:[m]}),r})();class w extends tc{constructor(a,e,t){super(qi(e),ec(t,e)),this.controls=a,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(a){return this.controls[this._adjustIndex(a)]}push(a,e={}){this.controls.push(a),this._registerControl(a),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(a,e,t={}){this.controls.splice(a,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:t.emitEvent})}removeAt(a,e={}){let t=this._adjustIndex(a);t<0&&(t=0),this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(a,e,t={}){let o=this._adjustIndex(a);o<0&&(o=0),this.controls[o]&&this.controls[o]._registerOnCollectionChange(()=>{}),this.controls.splice(o,1),e&&(this.controls.splice(o,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(a,e={}){Gp(this,0,a),a.forEach((t,o)=>{Jd(this,!1,o),this.at(o).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(a,e={}){null!=a&&(a.forEach((t,o)=>{this.at(o)&&this.at(o).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(a=[],e={}){this._forEachChild((t,o)=>{t.reset(a[o],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(a=>a.getRawValue())}clear(a={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:a.emitEvent}))}_adjustIndex(a){return a<0?a+this.length:a}_syncPendingControls(){let a=this.controls.reduce((e,t)=>!!t._syncPendingControls()||e,!1);return a&&this.updateValueAndValidity({onlySelf:!0}),a}_forEachChild(a){this.controls.forEach((e,t)=>{a(e,t)})}_updateValue(){this.value=this.controls.filter(a=>a.enabled||this.disabled).map(a=>a.value)}_anyControls(a){return this.controls.some(e=>e.enabled&&a(e))}_setUpControls(){this._forEachChild(a=>this._registerControl(a))}_allControlsDisabled(){for(const a of this.controls)if(a.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(a){a.setParent(this),a._registerOnCollectionChange(this._onCollectionChange)}_find(a){return this.at(a)??null}}function S(r){return!!r&&(void 0!==r.asyncValidators||void 0!==r.validators||void 0!==r.updateOn)}let P=(()=>{class r{constructor(){this.useNonNullable=!1}get nonNullable(){const e=new r;return e.useNonNullable=!0,e}group(e,t=null){const o=this._reduceControls(e);let l={};return S(t)?l=t:null!==t&&(l.validators=t.validator,l.asyncValidators=t.asyncValidator),new Kd(o,l)}control(e,t,o){let l={};return this.useNonNullable?(S(t)?l=t:(l.validators=t,l.asyncValidators=o),new zr(e,{...l,nonNullable:!0})):new zr(e,t,o)}array(e,t,o){const l=e.map(c=>this._createControl(c));return new w(l,t,o)}_reduceControls(e){const t={};return Object.keys(e).forEach(o=>{t[o]=this._createControl(e[o])}),t}_createControl(e){return e instanceof zr||e instanceof tc?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:C}),r})();const re=Dn({passive:!0});let me=(()=>{class r{constructor(e,t){this._platform=e,this._ngZone=t,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return ti.E;const t=ri(e),o=this._monitoredElements.get(t);if(o)return o.subject;const l=new De.x,c="cdk-text-field-autofilled",n=i=>{"cdk-text-field-autofill-start"!==i.animationName||t.classList.contains(c)?"cdk-text-field-autofill-end"===i.animationName&&t.classList.contains(c)&&(t.classList.remove(c),this._ngZone.run(()=>l.next({target:i.target,isAutofilled:!1}))):(t.classList.add(c),this._ngZone.run(()=>l.next({target:i.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{t.addEventListener("animationstart",n,re),t.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(t,{subject:l,unlisten:()=>{t.removeEventListener("animationstart",n,re)}}),l}stopMonitoring(e){const t=ri(e),o=this._monitoredElements.get(t);o&&(o.unlisten(),o.subject.complete(),t.classList.remove("cdk-text-field-autofill-monitored"),t.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(t))}ngOnDestroy(){this._monitoredElements.forEach((e,t)=>this.stopMonitoring(t))}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(Jt),u.LFG(u.R0b))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Pe=(()=>{class r{constructor(e,t,o,l){this._elementRef=e,this._platform=t,this._ngZone=o,this._destroyed=new De.x,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._handleFocusEvent=c=>{this._hasFocus="focus"===c.type},this._document=l,this._textareaElement=this._elementRef.nativeElement}get minRows(){return this._minRows}set minRows(e){this._minRows=wi(e),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(e){this._maxRows=wi(e),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(e){e=tt(e),this._enabled!==e&&((this._enabled=e)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(e){this._cachedPlaceholderHeight=void 0,e?this._textareaElement.setAttribute("placeholder",e):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}_setMinHeight(){const e=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;e&&(this._textareaElement.style.minHeight=e)}_setMaxHeight(){const e=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;e&&(this._textareaElement.style.maxHeight=e)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{ss(this._getWindow(),"resize").pipe(wl(16),st(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0)),this._textareaElement.addEventListener("focus",this._handleFocusEvent),this._textareaElement.addEventListener("blur",this._handleFocusEvent)}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._textareaElement.removeEventListener("focus",this._handleFocusEvent),this._textareaElement.removeEventListener("blur",this._handleFocusEvent),this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let e=this._textareaElement.cloneNode(!1);e.rows=1,e.style.position="absolute",e.style.visibility="hidden",e.style.border="none",e.style.padding="0",e.style.height="",e.style.minHeight="",e.style.maxHeight="",e.style.overflow="hidden",this._textareaElement.parentNode.appendChild(e),this._cachedLineHeight=e.clientHeight,e.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){const e=this._textareaElement,t=e.style.marginBottom||"",o=this._platform.FIREFOX,l=o&&this._hasFocus,c=o?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";l&&(e.style.marginBottom=`${e.clientHeight}px`),e.classList.add(c);const n=e.scrollHeight-4;return e.classList.remove(c),l&&(e.style.marginBottom=t),n}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const e=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=e}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(e=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;const t=this._elementRef.nativeElement,o=t.value;if(!e&&this._minRows===this._previousMinRows&&o===this._previousValue)return;const l=this._measureScrollHeight(),c=Math.max(l,this._cachedPlaceholderHeight||0);t.style.height=`${c}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(t)):setTimeout(()=>this._scrollToCaretPosition(t))}),this._previousValue=o,this._previousMinRows=this._minRows}reset(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollToCaretPosition(e){const{selectionStart:t,selectionEnd:o}=e;!this._destroyed.isStopped&&this._hasFocus&&e.setSelectionRange(t,o)}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(u.SBq),u.Y36(Jt),u.Y36(u.R0b),u.Y36(T.K0,8))},r.\u0275dir=u.lG2({type:r,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(e,t){1&e&&u.NdJ("input",function(){return t._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]}),r})(),je=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({}),r})();const ye=new u.OlP("MAT_INPUT_VALUE_ACCESSOR"),$e=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let _t=0;const Nt=bl(class{constructor(r,a,e,t){this._defaultErrorStateMatcher=r,this._parentForm=a,this._parentFormGroup=e,this.ngControl=t,this.stateChanges=new De.x}});let jn=(()=>{class r extends Nt{constructor(e,t,o,l,c,n,i,s,d,h){super(n,l,c,o),this._elementRef=e,this._platform=t,this._autofillMonitor=s,this._formField=h,this._uid="mat-input-"+_t++,this.focused=!1,this.stateChanges=new De.x,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(H=>Ky().has(H)),this._iOSKeyupListener=H=>{const z=H.target;!z.value&&0===z.selectionStart&&0===z.selectionEnd&&(z.setSelectionRange(1,1),z.setSelectionRange(0,0))};const f=this._elementRef.nativeElement,b=f.nodeName.toLowerCase();this._inputValueAccessor=i||f,this._previousNativeValue=this.value,this.id=this.id,t.IOS&&d.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===b,this._isTextarea="textarea"===b,this._isInFormField=!!h,this._isNativeSelect&&(this.controlType=f.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=tt(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(fr.required)??!1}set required(e){this._required=tt(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&Ky().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=tt(e)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){const e=this._formField,t=e&&"legacy"===e.appearance&&!e._hasLabel?.()?null:this.placeholder;if(t!==this._previousPlaceholder){const o=this._elementRef.nativeElement;this._previousPlaceholder=t,t?o.setAttribute("placeholder",t):o.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){$e.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(u.SBq),u.Y36(Jt),u.Y36(On,10),u.Y36(Ha,8),u.Y36(gr,8),u.Y36(sd),u.Y36(ye,10),u.Y36(me),u.Y36(u.R0b),u.Y36(Kh,8))},r.\u0275dir=u.lG2({type:r,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(e,t){1&e&&u.NdJ("focus",function(){return t._focusChanged(!0)})("blur",function(){return t._focusChanged(!1)})("input",function(){return t._onInput()}),2&e&&(u.Ikx("disabled",t.disabled)("required",t.required),u.uIk("id",t.id)("data-placeholder",t.placeholder)("name",t.name||null)("readonly",t.readonly&&!t._isNativeSelect||null)("aria-invalid",t.empty&&t.required?null:t.errorState)("aria-required",t.required),u.ekj("mat-input-server",t._isServer)("mat-native-select-inline",t._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[u._Bn([{provide:wd,useExisting:r}]),u.qOj,u.TTD]}),r})(),vo=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({providers:[sd],imports:[je,dr,qe,je,dr]}),r})();function ef(r,a){1&r&&(u.TgZ(0,"mat-error"),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&r&&(u.xp6(1),u.Oqu(u.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT_ERROR")))}let tf=(()=>{class r{constructor(e,t,o,l,c){this.dialogRef=e,this.translate=t,this.notificator=o,this.rtMessages=l,this.storeService=c,this.message="",this.subject="",this.instanceName=""}ngOnInit(){this.instanceName=this.storeService.getProperty("config")}sendBugReport(){this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(e=>{this.dialogRef.afterClosed().subscribe(()=>this.notificator.showSuccess(this.translate.instant("DIALOGS.REPORT_ISSUE.SUCCESS")+String(e.ticketNumber))),this.dialogRef.close()})}getFullEmailBody(){return this.message.concat("\n ","------------------------\n ","Perun instance: ",this.instanceName,"\n ","Sended from new Perun Gui, version: ",x(4147).i8)}close(){this.dialogRef.close()}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(yn),u.Y36(Bi),u.Y36(Ud),u.Y36(Pt),u.Y36(li))},r.\u0275cmp=u.Xpm({type:r,selectors:[["perun-web-apps-report-issue-dialog"]],decls:29,vars:25,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","","type","text",3,"ngModel","ngModelChange"],["subjectModel","ngModel"],[4,"ngIf"],["matInput","",3,"placeholder","ngModel","ngModelChange"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(e,t){if(1&e&&(u.TgZ(0,"h1",0),u._uU(1),u.ALo(2,"translate"),u.qZA(),u.TgZ(3,"div",1)(4,"mat-form-field")(5,"mat-label"),u._uU(6),u.ALo(7,"translate"),u.qZA(),u.TgZ(8,"input",2,3),u.NdJ("ngModelChange",function(l){return t.subject=l}),u.qZA(),u.YNc(10,ef,3,3,"mat-error",4),u.qZA(),u.TgZ(11,"mat-form-field")(12,"mat-label"),u._uU(13),u.ALo(14,"translate"),u.qZA(),u.TgZ(15,"textarea",5),u.NdJ("ngModelChange",function(l){return t.message=l}),u.ALo(16,"translate"),u._uU(17," "),u.qZA(),u.TgZ(18,"mat-hint"),u._uU(19),u.ALo(20,"translate"),u.qZA()()(),u.TgZ(21,"div",6)(22,"div",7)(23,"button",8),u.NdJ("click",function(){return t.close()}),u._uU(24),u.ALo(25,"translate"),u.qZA(),u.TgZ(26,"button",9),u.NdJ("click",function(){return t.sendBugReport()}),u._uU(27),u.ALo(28,"translate"),u.qZA()()()),2&e){const o=u.MAs(9);u.xp6(1),u.Oqu(u.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.TITLE")),u.xp6(5),u.Oqu(u.lcZ(7,13,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT")),u.xp6(2),u.Q6J("ngModel",t.subject),u.xp6(2),u.Q6J("ngIf",o.invalid),u.xp6(3),u.Oqu(u.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE")),u.xp6(2),u.s9C("placeholder",u.lcZ(16,17,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_PLACEHOLDER")),u.Q6J("ngModel",t.message),u.xp6(4),u.Oqu(u.lcZ(20,19,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_HINT")),u.xp6(5),u.hij(" ",u.lcZ(25,21,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.CANCEL")," "),u.xp6(2),u.Q6J("disabled",o.invalid),u.xp6(1),u.hij(" ",u.lcZ(28,23,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SEND")," ")}},dependencies:[T.O5,pr,bo,wo,Yp,sn,fs,Ll,Yh,Ca,jn,va,Aa,jr,vi],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),r})(),nf=(()=>{class r{transform(e,t,o){return e[`${o}_${t}`]}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275pipe=u.Yjl({name:"localisedText",type:r,pure:!0}),r})(),rf=(()=>{class r{transform(e,t){return e["link_"+t]||e.link_en}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275pipe=u.Yjl({name:"localisedLink",type:r,pure:!0}),r})(),af=(()=>{class r{transform(e){return e.includes("/")?e:"/assets/config/"+e}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275pipe=u.Yjl({name:"footerLogoPath",type:r,pure:!0}),r})();function sf(r,a){if(1&r&&(u.TgZ(0,"a",13),u.ALo(1,"localisedLink"),u._UZ(2,"img",14),u.ALo(3,"footerLogoPath"),u.qZA()),2&r){const e=u.oxw().$implicit,t=u.oxw(3);u.Q6J("href",u.xi3(1,2,e,t.language),u.LSH),u.xp6(2),u.s9C("src",u.lcZ(3,5,e.logo),u.LSH)}}function lf(r,a){if(1&r&&(u.TgZ(0,"span"),u._UZ(1,"img",14),u.ALo(2,"footerLogoPath"),u.qZA()),2&r){const e=u.oxw().$implicit;u.xp6(1),u.s9C("src",u.lcZ(2,1,e.logo),u.LSH)}}function cf(r,a){if(1&r&&(u.TgZ(0,"div"),u.YNc(1,sf,4,7,"a",11),u.ALo(2,"localisedLink"),u.YNc(3,lf,3,3,"span",12),u.ALo(4,"localisedLink"),u.qZA()),2&r){const e=a.$implicit,t=u.oxw(3);u.xp6(1),u.Q6J("ngIf",u.xi3(2,2,e,t.language)),u.xp6(2),u.Q6J("ngIf",!u.xi3(4,5,e,t.language))}}const dH=function(r){return{"min-height":r}};function uH(r,a){if(1&r&&(u.TgZ(0,"div",10),u.YNc(1,cf,5,8,"div",5),u.qZA()),2&r){const e=u.oxw().$implicit,t=u.oxw();u.Q6J("ngStyle",u.VKq(2,dH,t.columnContentHeight+"px")),u.xp6(1),u.Q6J("ngForOf",e.elements)}}const Ao=function(r){return{color:r}};function hH(r,a){if(1&r&&(u.TgZ(0,"i",20),u._uU(1),u.qZA()),2&r){const e=u.oxw().$implicit,t=u.oxw(3);u.Q6J("ngStyle",u.VKq(2,Ao,t.linksTextColor)),u.xp6(1),u.hij(" ",e.icon," ")}}function pH(r,a){if(1&r){const e=u.EpF();u.TgZ(0,"span",21),u.NdJ("click",function(){u.CHM(e);const o=u.oxw().$implicit,l=u.oxw(3);return u.KtG(l.openDialog(o.dialog))}),u._uU(1),u.ALo(2,"localisedText"),u.qZA()}if(2&r){const e=u.oxw().$implicit,t=u.oxw(3);u.Q6J("ngStyle",u.VKq(6,Ao,t.linksTextColor)),u.xp6(1),u.hij("",u.Dn7(2,2,e,t.language,"label")," ")}}function fH(r,a){if(1&r&&(u.TgZ(0,"a",22),u.ALo(1,"localisedLink"),u._uU(2),u.ALo(3,"localisedText"),u.qZA()),2&r){const e=u.oxw().$implicit,t=u.oxw(3);u.Q6J("href",u.xi3(1,3,e,t.language),u.LSH)("ngStyle",u.VKq(10,Ao,t.linksTextColor)),u.xp6(2),u.Oqu(u.Dn7(3,6,e,t.language,"label"))}}function gH(r,a){if(1&r&&(u.TgZ(0,"span",10),u._uU(1),u.ALo(2,"localisedText"),u.qZA()),2&r){const e=u.oxw().$implicit,t=u.oxw(3);u.Q6J("ngStyle",u.VKq(6,Ao,t.linksTextColor)),u.xp6(1),u.Oqu(u.Dn7(2,2,e,t.language,"label"))}}function mH(r,a){if(1&r&&(u.TgZ(0,"div",16),u.YNc(1,hH,2,4,"i",17),u.YNc(2,pH,3,8,"span",18),u.YNc(3,fH,4,12,"a",19),u.ALo(4,"localisedLink"),u.YNc(5,gH,3,8,"span",9),u.ALo(6,"localisedLink"),u.qZA()),2&r){const e=a.$implicit,t=u.oxw(3);u.xp6(1),u.Q6J("ngIf",e.icon),u.xp6(1),u.Q6J("ngIf",e.dialog),u.xp6(1),u.Q6J("ngIf",u.xi3(4,4,e,t.language)&&!e.dialog),u.xp6(2),u.Q6J("ngIf",!u.xi3(6,7,e,t.language)&&!e.dialog)}}const _H=function(r){return{height:r}};function bH(r,a){if(1&r&&(u.TgZ(0,"div",10),u.YNc(1,mH,7,10,"div",15),u.qZA()),2&r){const e=u.oxw().$implicit,t=u.oxw();u.Q6J("ngStyle",u.VKq(2,_H,t.columnContentHeight+"px")),u.xp6(1),u.Q6J("ngForOf",e.elements)}}function CH(r,a){if(1&r&&(u.TgZ(0,"div",7)(1,"h6",8),u._uU(2),u.ALo(3,"localisedText"),u.qZA(),u.YNc(4,uH,2,4,"div",9),u.YNc(5,bH,2,4,"div",9),u.qZA()),2&r){const e=a.$implicit,t=u.oxw();u.ekj("my-auto",t.containsLogos),u.xp6(1),u.Q6J("ngStyle",u.VKq(10,Ao,t.headersTextColor)),u.xp6(1),u.hij(" ",u.Dn7(3,6,e,t.language,"title")," "),u.xp6(2),u.Q6J("ngIf",e.logos),u.xp6(1),u.Q6J("ngIf",e.elements&&!e.logos)}}function yH(r,a){if(1&r&&(u.TgZ(0,"span")(1,"a",6),u._uU(2),u.qZA()()),2&r){const e=a.$implicit,t=a.index,o=u.oxw();u.xp6(1),u.Q6J("href",e.url,u.LSH)("ngStyle",u.VKq(3,Ao,o.copyrightTextColor)),u.xp6(1),u.Oqu(t?", "+e.name:e.name)}}const wH=function(r){return{background:r}};let IS=(()=>{class r{constructor(e,t,o,l,c,n){this.storeService=e,this.translateService=t,this.utilsService=o,this.dialog=l,this.authService=c,this.initAuthService=n,this.copyrightTextColor=this.storeService.getProperty("theme").footer_copyright_text_color,this.footerColumns=[],this.copyrightItems=[],this.currentYear=(new Date).getFullYear(),this.containsLogos=!1,this.headersTextColor=this.storeService.getProperty("theme").footer_headers_text_color,this.linksTextColor=this.storeService.getProperty("theme").footer_links_text_color,this.githubRepository=this.storeService.getProperty("footer").github_releases,this.githubBackendRepository=this.storeService.getProperty("footer").github_backend_releases,this.bgColor=this.storeService.getProperty("theme").footer_bg_color,this.version="",this.backendVersion="",this.guiVersion="",this.language="en",this.columnContentHeight=0}ngOnInit(){this.translateService.onLangChange.subscribe(e=>{this.language=e.lang}),this.version=x(4147).i8,this.footerColumns=this.storeService.getProperty("footer").columns,this.guiVersion=x(4147).i8,(this.authService.isLoggedIn()||this.initAuthService.isServiceAccess())&&this.utilsService.getPerunStatus().subscribe(e=>{const t=e[0];this.backendVersion=t.substring(t.indexOf(":")+2)}),this.footerColumns=this.storeService.getProperty("footer").columns;for(const e of this.footerColumns)e.logos?this.containsLogos=!0:25*e.elements.length>this.columnContentHeight&&(this.columnContentHeight=25*e.elements.length);this.copyrightItems=this.storeService.getProperty("footer").copyright_items}openDialog(e){const t=vn();"reportIssue"===e&&(t.width="550px",this.dialog.open(tf,t))}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(li),u.Y36(Bi),u.Y36(un),u.Y36(wn),u.Y36(Ta),u.Y36(xp))},r.\u0275cmp=u.Xpm({type:r,selectors:[["perun-web-apps-footer"]],decls:13,vars:19,consts:[[1,"footer-container",3,"ngStyle"],[1,"footer-columns-container"],["class","footer-col mx-auto",3,"my-auto",4,"ngFor","ngForOf"],[1,"my-0","mt-3"],[1,"font-fix","text-center",3,"ngStyle"],[4,"ngFor","ngForOf"],["target","_blank",1,"text-decoration-none",3,"href","ngStyle"],[1,"footer-col","mx-auto"],[1,"font-weight-bold",3,"ngStyle"],[3,"ngStyle",4,"ngIf"],[3,"ngStyle"],[3,"href",4,"ngIf"],[4,"ngIf"],[3,"href"],["alt","image",3,"src"],["class","row-height",4,"ngFor","ngForOf"],[1,"row-height"],["class","material-icons align-bottom mr-1",3,"ngStyle",4,"ngIf"],["id","clickable",3,"ngStyle","click",4,"ngIf"],["target","_blank",3,"href","ngStyle",4,"ngIf"],[1,"material-icons","align-bottom","mr-1",3,"ngStyle"],["id","clickable",3,"ngStyle","click"],["target","_blank",3,"href","ngStyle"]],template:function(e,t){1&e&&(u.TgZ(0,"footer",0)(1,"div",1),u.YNc(2,CH,6,12,"div",2),u.qZA(),u._UZ(3,"hr",3),u.TgZ(4,"div",4),u._uU(5),u.YNc(6,yH,3,5,"span",5),u._uU(7,", web application: "),u.TgZ(8,"a",6),u._uU(9),u.qZA(),u._uU(10,", server: "),u.TgZ(11,"a",6),u._uU(12),u.qZA()()()),2&e&&(u.Q6J("ngStyle",u.VKq(11,wH,t.bgColor)),u.xp6(2),u.Q6J("ngForOf",t.footerColumns),u.xp6(2),u.Q6J("ngStyle",u.VKq(13,Ao,t.copyrightTextColor)),u.xp6(1),u.hij(" \xa9 ",t.currentYear," Copyright: "),u.xp6(1),u.Q6J("ngForOf",t.copyrightItems),u.xp6(2),u.Q6J("href",t.githubRepository,u.LSH)("ngStyle",u.VKq(15,Ao,t.copyrightTextColor)),u.xp6(1),u.Oqu(t.guiVersion),u.xp6(2),u.Q6J("href",t.githubBackendRepository,u.LSH)("ngStyle",u.VKq(17,Ao,t.copyrightTextColor)),u.xp6(1),u.Oqu(t.backendVersion))},dependencies:[T.sg,T.O5,T.PC,nf,rf,af],styles:["a[_ngcontent-%COMP%]{text-decoration:none}.font-fix[_ngcontent-%COMP%]{font-size:.8rem}.row-height[_ngcontent-%COMP%]{height:25px!important}.footer-col[_ngcontent-%COMP%]{padding-top:35px;white-space:nowrap;text-align:center}.wrap-content[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content}#clickable[_ngcontent-%COMP%]{cursor:pointer}.footer-columns-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-direction:column}@media (min-width: 768px){.footer-columns-container[_ngcontent-%COMP%]{flex-direction:row}}.footer-container[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content}"]}),r})(),vH=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({imports:[T.ez]}),r})(),kS=(()=>{class r{constructor(e,t){this.translate=e,this.storage=t}transform(e,t="en"){const o=this.storage.getProperty("custom_labels");if(o)for(const l of o)if(l.label===e)return l[t];return e}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(Bi,16),u.Y36(li,16))},r.\u0275pipe=u.Yjl({name:"customTranslate",type:r,pure:!0}),r})();function AH(r,a){if(1&r&&(u.O4$(),u._UZ(0,"circle",4)),2&r){const e=u.oxw(),t=u.MAs(1);u.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+e._spinnerAnimationLabel)("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),u.uIk("r",e._getCircleRadius())}}function xH(r,a){if(1&r&&(u.O4$(),u._UZ(0,"circle",4)),2&r){const e=u.oxw(),t=u.MAs(1);u.Udp("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),u.uIk("r",e._getCircleRadius())}}const EH=oo(class{constructor(r){this._elementRef=r}},"primary"),SH=new u.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function MH(){return{diameter:100}}});class Ur extends EH{constructor(a,e,t,o,l,c,n,i){super(a),this._document=t,this._diameter=100,this._value=0,this._resizeSubscription=Lt.w0.EMPTY,this.mode="determinate";const s=Ur._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),s.has(t.head)||s.set(t.head,new Set([100])),this._noopAnimations="NoopAnimations"===o&&!!l&&!l._forceAnimations,"mat-spinner"===a.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),l&&(l.color&&(this.color=this.defaultColor=l.color),l.diameter&&(this.diameter=l.diameter),l.strokeWidth&&(this.strokeWidth=l.strokeWidth)),e.isBrowser&&e.SAFARI&&n&&c&&i&&(this._resizeSubscription=n.change(150).subscribe(()=>{"indeterminate"===this.mode&&i.run(()=>c.markForCheck())}))}get diameter(){return this._diameter}set diameter(a){this._diameter=wi(a),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(a){this._strokeWidth=wi(a)}get value(){return"determinate"===this.mode?this._value:0}set value(a){this._value=Math.max(0,Math.min(100,wi(a)))}ngOnInit(){const a=this._elementRef.nativeElement;this._styleRoot=Zo(a)||this._document.head,this._attachStyleNode(),a.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const a=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${a} ${a}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_getCircleTransformOrigin(a){const e=50*(a.currentScale??1);return`${e}% ${e}%`}_attachStyleNode(){const a=this._styleRoot,e=this._diameter,t=Ur._diameters;let o=t.get(a);if(!o||!o.has(e)){const l=this._document.createElement("style");l.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),l.textContent=this._getAnimationText(),a.appendChild(l),o||(o=new Set,t.set(a,o)),o.add(e)}}_getAnimationText(){const a=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*a).replace(/END_VALUE/g,""+.2*a).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}Ur._diameters=new WeakMap,Ur.\u0275fac=function(a){return new(a||Ur)(u.Y36(u.SBq),u.Y36(Jt),u.Y36(T.K0,8),u.Y36(u.QbO,8),u.Y36(SH),u.Y36(u.sBO),u.Y36(Vr),u.Y36(u.R0b))},Ur.\u0275cmp=u.Xpm({type:Ur,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(a,e){2&a&&(u.uIk("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),u.Udp("width",e.diameter,"px")("height",e.diameter,"px"),u.ekj("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[u.qOj],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(a,e){1&a&&(u.O4$(),u.TgZ(0,"svg",0,1),u.YNc(2,AH,1,11,"circle",2),u.YNc(3,xH,1,9,"circle",3),u.qZA()),2&a&&(u.Udp("width",e.diameter,"px")("height",e.diameter,"px"),u.Q6J("ngSwitch","indeterminate"===e.mode),u.uIk("viewBox",e._getViewBox()),u.xp6(2),u.Q6J("ngSwitchCase",!0),u.xp6(1),u.Q6J("ngSwitchCase",!1))},dependencies:[T.RF,T.n9],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:rgba(0,0,0,0);transition:stroke-dashoffset 225ms linear}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}.mat-progress-spinner[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-progress-spinner._mat-animation-noopable svg,.mat-progress-spinner._mat-animation-noopable circle{animation:none;transition: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)}}"],encapsulation:2,changeDetection:0});let df=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({imports:[qe,T.ez,qe]}),r})(),Zb=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({imports:[hr,T.ez]}),r})(),HH=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({imports:[T.ez,dr,ya,C,vo,ys,df,hr,Zb]}),r})();class PH{isErrorState(a){return!(!a?.invalid||!a?.dirty)}}const RH=(r,a,e,t=500)=>o=>(0,km.H)(t).pipe((0,Ci.w)(()=>(e.dontHandleErrorForNext(),r&&"No namespace"!==r?a.checkPasswordStrength({password:o.value,namespace:r}):(0,Me.of)(null))),(0,ze.U)(()=>null),(0,M.K)(l=>{const c={backendError:l.message.substring(l.message.indexOf(":")+1)};return(0,Me.of)(c)}));function IH(r,a){1&r&&u._UZ(0,"mat-spinner",12),2&r&&u.Q6J("diameter",18)}function kH(r,a){if(1&r&&(u.TgZ(0,"mat-icon",13),u._uU(1," error "),u.qZA()),2&r){const e=u.oxw();u.Q6J("matTooltip",e.getErrorTooltip())("matTooltipDisabled",!e.formGroup.get("passwordCtrl").hasError("backendError"))}}function VH(r,a){1&r&&(u.TgZ(0,"mat-error"),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&r&&(u.xp6(1),u.Oqu(u.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function BH(r,a){if(1&r&&(u.TgZ(0,"mat-error",14),u._uU(1),u.qZA()),2&r){const e=u.oxw();u.Q6J("matTooltip",e.getErrorTooltip()),u.xp6(1),u.Oqu(e.getErrorTooltip())}}function OH(r,a){1&r&&(u.TgZ(0,"mat-error"),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&r&&(u.xp6(1),u.Oqu(u.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function LH(r,a){1&r&&(u.TgZ(0,"mat-error"),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&r&&(u.xp6(1),u.Oqu(u.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PWD_DONT_MATCH")))}let FH=(()=>{class r{constructor(e,t,o){this.translator=e,this.usersManagerService=t,this.store=o,this.passwordRequired=!0,this.tooltipPwdViaEmail=!1,this.tooltipPwdDisabledForNamespace=!1,this.language="en",this.passwordRequirement=null,this.showNewPassword=!1,this.showPasswordConfirm=!1,this.passwordStateMatcher=new PH,this.allPasswordRequirements=this.store.getProperty("password_help")}ngOnInit(){window.location.href.includes("/profile")?this.usersManagerService.getRichUserWithAttributes(this.store.getPerunPrincipal().userId).subscribe(e=>{const t=e.userAttributes.find(o=>"preferredLanguage"===o.friendlyName);this.language=t?.value??"en","en"!==this.language&&(this.allPasswordRequirements=this.store.getProperty("en"===this.language?"password_help":"password_help_cs")),this.changeHelp()}):this.changeHelp()}ngOnChanges(){this.allPasswordRequirements=this.store.getProperty("en"===this.language?"password_help":"password_help_cs"),this.changeHelp()}getPasswordDisabledTooltip(){return this.translator.instant(this.tooltipPwdViaEmail?"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.TOOLTIP_PASSWORD_VIA_EMAIL":"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.TOOLTIP_PASSWORD_DISABLED")}getErrorTooltip(){let e=this.formGroup.get("passwordCtrl").getError("backendError");return e&&(e=e.replace(":null","")),e}changeHelp(){this.passwordRequirement=this.allPasswordRequirements[this.namespace],this.passwordRequirement||(this.passwordRequirement=this.allPasswordRequirements.default)}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(Bi),u.Y36(xr),u.Y36(li))},r.\u0275cmp=u.Xpm({type:r,selectors:[["perun-web-apps-password-form"]],inputs:{formGroup:"formGroup",passwordRequired:"passwordRequired",tooltipPwdViaEmail:"tooltipPwdViaEmail",tooltipPwdDisabledForNamespace:"tooltipPwdDisabledForNamespace",namespace:"namespace",language:"language"},features:[u.TTD],decls:21,vars:23,consts:[[3,"formGroup"],["matTooltipPosition","left",1,"max-width",3,"matTooltip","matTooltipDisabled"],["data-cy","passwd-input","matInput","","formControlName","passwordCtrl",3,"type","required","errorStateMatcher","placeholder"],["matSuffix","","class","input-spinner",3,"diameter",4,"ngIf"],["matSuffix","",3,"click"],["color","warn","matSuffix","","class","error-icon",3,"matTooltip","matTooltipDisabled",4,"ngIf"],[4,"ngIf"],["matTooltipPosition","after",3,"matTooltip",4,"ngIf"],[1,"max-width"],["data-cy","confirm-passwd-input","matInput","","formControlName","passwordAgainCtrl",3,"type","required"],["alert_type","info"],[3,"innerHTML"],["matSuffix","",1,"input-spinner",3,"diameter"],["color","warn","matSuffix","",1,"error-icon",3,"matTooltip","matTooltipDisabled"],["matTooltipPosition","after",3,"matTooltip"]],template:function(e,t){1&e&&(u.TgZ(0,"div",0)(1,"mat-form-field",1),u._UZ(2,"input",2),u.ALo(3,"translate"),u.YNc(4,IH,1,1,"mat-spinner",3),u.TgZ(5,"mat-icon",4),u.NdJ("click",function(){return t.showNewPassword=!t.showNewPassword}),u._uU(6),u.qZA(),u.YNc(7,kH,2,2,"mat-icon",5),u.YNc(8,VH,3,3,"mat-error",6),u.YNc(9,BH,2,2,"mat-error",7),u.qZA(),u.TgZ(10,"mat-form-field",8)(11,"mat-label"),u._uU(12),u.ALo(13,"translate"),u.qZA(),u._UZ(14,"input",9),u.TgZ(15,"mat-icon",4),u.NdJ("click",function(){return t.showPasswordConfirm=!t.showPasswordConfirm}),u._uU(16),u.qZA(),u.YNc(17,OH,3,3,"mat-error",6),u.YNc(18,LH,3,3,"mat-error",6),u.qZA(),u.TgZ(19,"perun-web-apps-alert",10),u._UZ(20,"div",11),u.qZA()()),2&e&&(u.Q6J("formGroup",t.formGroup),u.xp6(1),u.Q6J("matTooltip",t.getPasswordDisabledTooltip())("matTooltipDisabled",t.formGroup.get("passwordCtrl").enabled||t.tooltipPwdDisabledForNamespace),u.xp6(1),u.s9C("placeholder",u.lcZ(3,19,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD")),u.Q6J("type",t.showNewPassword?"text":"password")("required",t.passwordRequired)("errorStateMatcher",t.passwordStateMatcher),u.xp6(2),u.Q6J("ngIf",t.formGroup.get("passwordCtrl").pending),u.xp6(2),u.hij(" ",t.showNewPassword?"visibility_off":"visibility"," "),u.xp6(1),u.Q6J("ngIf",t.formGroup.get("passwordCtrl").dirty&&null!==t.formGroup.get("passwordCtrl").errors),u.xp6(1),u.Q6J("ngIf",t.formGroup.get("passwordCtrl").hasError("required")),u.xp6(1),u.Q6J("ngIf",t.formGroup.get("passwordCtrl").hasError("backendError")),u.xp6(3),u.Oqu(u.lcZ(13,21,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD_AGAIN")),u.xp6(2),u.Q6J("type",t.showPasswordConfirm?"text":"password")("required",t.passwordRequired),u.xp6(2),u.hij(" ",t.showPasswordConfirm?"visibility_off":"visibility"," "),u.xp6(1),u.Q6J("ngIf",t.formGroup.get("passwordAgainCtrl").hasError("required")),u.xp6(1),u.Q6J("ngIf",t.formGroup.get("passwordAgainCtrl").hasError("noPasswordMatch")),u.xp6(2),u.Q6J("innerHTML",t.passwordRequirement,u.oJD))},dependencies:[T.O5,fs,Ll,Ca,Bn,Td,pr,bo,jp,wo,gr,Zp,jn,Ur,ur,_o,vi],styles:[".max-width[_ngcontent-%COMP%]{width:100%!important}.input-spinner[_ngcontent-%COMP%]{float:right;margin-left:5px}.error-icon[_ngcontent-%COMP%]{margin-left:5px}mat-icon[_ngcontent-%COMP%]:hover{cursor:default}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper{padding-bottom:0}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-underline{position:initial!important;display:block;margin-top:-1px}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper, [_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-ripple{position:initial!important;display:table}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper{min-height:calc(1em + 1px)}"]}),r})();function $H(r,a){1&r&&u._UZ(0,"mat-spinner",7)}function QH(r,a){1&r&&(u.TgZ(0,"mat-error"),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&r&&(u.xp6(1),u.Oqu(u.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_ERROR")))}function YH(r,a){1&r&&(u.TgZ(0,"mat-error"),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&r&&(u.xp6(1),u.Oqu(u.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_ERROR")))}function JH(r,a){if(1&r){const e=u.EpF();u.TgZ(0,"div",8)(1,"mat-form-field")(2,"mat-label"),u._uU(3),u.ALo(4,"translate"),u.qZA(),u.TgZ(5,"input",9,10),u.NdJ("ngModelChange",function(o){u.CHM(e);const l=u.oxw();return u.KtG(l.subject=o)}),u.qZA(),u.YNc(7,QH,3,3,"mat-error",11),u.qZA(),u.TgZ(8,"mat-form-field")(9,"mat-label"),u._uU(10),u.ALo(11,"translate"),u.qZA(),u.TgZ(12,"textarea",12,13),u.NdJ("ngModelChange",function(o){u.CHM(e);const l=u.oxw();return u.KtG(l.message=o)}),u.ALo(14,"translate"),u._uU(15," "),u.qZA(),u.YNc(16,YH,3,3,"mat-error",11),u.qZA()()}if(2&r){const e=u.MAs(6),t=u.MAs(13),o=u.oxw();u.xp6(3),u.Oqu(u.lcZ(4,7,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT")),u.xp6(2),u.Q6J("ngModel",o.subject),u.xp6(2),u.Q6J("ngIf",e.invalid),u.xp6(3),u.Oqu(u.lcZ(11,9,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE")),u.xp6(2),u.s9C("placeholder",u.lcZ(14,11,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_PLACEHOLDER")),u.Q6J("ngModel",o.message),u.xp6(4),u.Q6J("ngIf",t.invalid)}}let KH=(()=>{class r{constructor(e,t,o,l,c,n){this.dialogRef=e,this.translate=t,this.notificator=o,this.rtMessages=l,this.data=c,this.storeService=n,this.message="",this.subject="",this.methodRegexp=/(\w+\/\w+)$/g,this.loading=!1}ngOnInit(){this.data?.error?.errorId&&(this.subject="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_VALUE"),this.parseMethod(this.data.error.call)," (",this.data.error.errorId,")"))}sendBugReport(){this.loading=!0,this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(e=>{this.dialogRef.afterClosed().subscribe(()=>{const t="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS1"),e.ticketNumber.toString(),this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS2"));this.notificator.showSuccess(t)}),this.dialogRef.close()},()=>{this.loading=!1,this.dialogRef.afterClosed().subscribe(()=>{})})}getFullEmailBody(){const e=this.storeService.getProperty("config");let t=this.message+"\n------------------------\nTechnical details:\n\n"+this.data.error.errorId;if(t=t.concat(this.data.error.type?" "+this.data.error.type+"\n":"\n"),t=t.concat(this.data.error.message,"\n","Perun instance: ",e,"\n","Request:\n",this.data.error.urlWithParams,"\n\n"),this.data.error.payload){const o=/"password":".+?"/;let l=JSON.stringify(this.data.error.payload);l=l.replace(o,'"password":"####"'),t=t.concat("Payload:\n"+l+"\n\n")}return t=t.concat("Sent from new Perun Gui, version: ",x(4147).i8),t.split("\n").join("\n ")}parseMethod(e){return e&&this.methodRegexp.exec(e)[1]}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(yn),u.Y36(Bi),u.Y36(Ud),u.Y36(Pt),u.Y36(As),u.Y36(li))},r.\u0275cmp=u.Xpm({type:r,selectors:[["perun-web-apps-bug-report-dialog"]],decls:13,vars:12,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","",3,"ngModel","ngModelChange"],["subjectModel","ngModel"],[4,"ngIf"],["matInput","","required","",3,"ngModel","placeholder","ngModelChange"],["messageModel","ngModel"]],template:function(e,t){1&e&&(u.TgZ(0,"h1",0),u._uU(1),u.ALo(2,"translate"),u.qZA(),u.YNc(3,$H,1,0,"mat-spinner",1),u.YNc(4,JH,17,13,"div",2),u.TgZ(5,"div",3)(6,"div",4)(7,"button",5),u.NdJ("click",function(){return t.dialogRef.close()}),u._uU(8),u.ALo(9,"translate"),u.qZA(),u.TgZ(10,"button",6),u.NdJ("click",function(){return t.sendBugReport()}),u._uU(11),u.ALo(12,"translate"),u.qZA()()()),2&e&&(u.xp6(1),u.Oqu(u.lcZ(2,6,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.TITLE")),u.xp6(2),u.Q6J("ngIf",t.loading),u.xp6(1),u.Q6J("ngIf",!t.loading),u.xp6(4),u.hij(" ",u.lcZ(9,8,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.CANCEL")," "),u.xp6(2),u.Q6J("disabled",""===t.message||""===t.subject||t.loading),u.xp6(1),u.hij(" ",u.lcZ(12,10,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SEND")," "))},dependencies:[T.O5,va,Aa,jr,sn,fs,Ll,Ca,pr,bo,wo,Yp,jn,Ur,vi],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),r})(),ZH=(()=>{class r{constructor(e,t,o){this.dialogRef=e,this.dialog=t,this.data=o}onCloseClick(){this.dialogRef.close()}onBugReportClick(){this.dialogRef.afterClosed().subscribe(()=>{const e=vn();e.width="550px",e.data={error:this.data.error},e.autoFocus=!1,this.dialog.open(KH,e)}),this.dialogRef.close()}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(yn),u.Y36(wn),u.Y36(As))},r.\u0275cmp=u.Xpm({type:r,selectors:[["perun-web-apps-notification-dialog"]],decls:12,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"hidden","click"],["autofocus","","mat-button","",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(u.TgZ(0,"h1",0),u._uU(1),u.qZA(),u.TgZ(2,"div",1),u._uU(3),u.qZA(),u.TgZ(4,"div",2)(5,"div",3)(6,"button",4),u.NdJ("click",function(){return t.onBugReportClick()}),u._uU(7),u.ALo(8,"translate"),u.qZA(),u.TgZ(9,"button",5),u.NdJ("click",function(){return t.onCloseClick()}),u._uU(10),u.ALo(11,"translate"),u.qZA()()()),2&e&&(u.xp6(1),u.Oqu(t.data.title),u.xp6(2),u.hij(" ",t.data.description,"\n"),u.xp6(3),u.Q6J("hidden","error"!==t.data.type),u.xp6(1),u.hij(" ",u.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_BUG_REPORT")," "),u.xp6(3),u.hij(" ",u.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_CLOSE")," "))},dependencies:[va,Aa,jr,sn,vi]}),r})();function _P(r,a){1&r&&(u.TgZ(0,"mat-error",8),u._uU(1),u.ALo(2,"translate"),u.ALo(3,"customTranslate"),u.qZA()),2&r&&(u.xp6(1),u.Oqu(u.lcZ(2,1,u.lcZ(3,3,"DIALOGS.ADD_SSH.INVALID_TYPE"))))}class xo{constructor(a,e,t){this.dialogRef=a,this.data=e,this.attributesManagerService=t}ngOnInit(){this.sshControl=new Ib(null,[fr.required,fr.pattern(xo.sshKeyPattern)])}onCancel(){this.dialogRef.close(!1)}onSubmit(){const a=this.data.attribute?.value??[],e=this.sshControl.value;a.includes(e)||a.push(e),this.data.attribute.value=a,this.attributesManagerService.setUserAttribute({user:this.data.userId,attribute:this.data.attribute}).subscribe(()=>{this.dialogRef.close(!0)},()=>{a.pop()})}}function AP(r,a){if(1&r&&(u.TgZ(0,"div",9),u._UZ(1,"perun-web-apps-notification",10),u.qZA()),2&r){const e=a.$implicit;u.xp6(1),u.Q6J("data",e)("inDialog",!0)}}function xP(r,a){if(1&r&&(u.TgZ(0,"div",6)(1,"cdk-virtual-scroll-viewport",7),u.YNc(2,AP,2,2,"div",8),u.qZA()()),2&r){const e=u.oxw();u.xp6(2),u.Q6J("cdkVirtualForOf",e.notifications)}}function TP(r,a){1&r&&(u.TgZ(0,"perun-web-apps-alert",11),u._uU(1),u.ALo(2,"translate"),u.ALo(3,"customTranslate"),u.qZA()),2&r&&(u.xp6(1),u.Oqu(u.lcZ(2,1,u.lcZ(3,3,"DIALOGS.NOTIFICATION_LIST.NO_NOTIFICATIONS_ALERT"))))}xo.allowedSshKeys=["ssh-ed25519","ssh-ed25519-cert-v01@openssh.com","sk-ssh-ed25519@openssh.com","sk-ssh-ed25519-cert-v01@openssh.com","ssh-rsa","ssh-dss","ecdsa-sha2-nistp256","ecdsa-sha2-nistp384","ecdsa-sha2-nistp521","sk-ecdsa-sha2-nistp256@openssh.com","ssh-rsa-cert-v01@openssh.com","ssh-dss-cert-v01@openssh.com","ecdsa-sha2-nistp256-cert-v01@openssh.com","ecdsa-sha2-nistp384-cert-v01@openssh.com","ecdsa-sha2-nistp521-cert-v01@openssh.com","sk-ecdsa-sha2-nistp256-cert-v01@openssh.com"],xo.sshKeyPattern="^("+xo.allowedSshKeys.join("|")+").+$",xo.\u0275fac=function(a){return new(a||xo)(u.Y36(yn),u.Y36(As),u.Y36(wr))},xo.\u0275cmp=u.Xpm({type:xo,selectors:[["perun-web-apps-add-ssh-dialog"]],decls:20,vars:23,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","user-theme"],[1,"input-width"],["matInput","","required","","cdkTextareaAutosize","","cdkAutosizeMinRows","4",3,"placeholder","formControl"],["class","white-space-pre",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[1,"white-space-pre"]],template:function(a,e){1&a&&(u.TgZ(0,"h1",0),u._uU(1),u.ALo(2,"translate"),u.ALo(3,"customTranslate"),u.qZA(),u.TgZ(4,"div",1)(5,"mat-form-field",2)(6,"label",2),u._UZ(7,"textarea",3),u.ALo(8,"translate"),u.ALo(9,"customTranslate"),u.qZA(),u.YNc(10,_P,4,5,"mat-error",4),u.qZA()(),u.TgZ(11,"div",5)(12,"button",6),u.NdJ("click",function(){return e.onCancel()}),u._uU(13),u.ALo(14,"translate"),u.ALo(15,"customTranslate"),u.qZA(),u.TgZ(16,"button",7),u.NdJ("click",function(){return e.onSubmit()}),u._uU(17),u.ALo(18,"translate"),u.ALo(19,"customTranslate"),u.qZA()()),2&a&&(u.xp6(1),u.Oqu(u.lcZ(2,7,u.lcZ(3,9,"DIALOGS.ADD_SSH.TITLE"))),u.xp6(6),u.s9C("placeholder",u.lcZ(8,11,u.lcZ(9,13,"DIALOGS.ADD_SSH.INPUT_PLACEHOLDER"))),u.Q6J("formControl",e.sshControl),u.xp6(3),u.Q6J("ngIf",e.sshControl.invalid&&e.sshControl.dirty),u.xp6(3),u.hij(" ",u.lcZ(14,15,u.lcZ(15,17,"DIALOGS.ADD_SSH.CANCEL"))," "),u.xp6(3),u.Q6J("disabled",e.sshControl.invalid),u.xp6(1),u.hij(" ",u.lcZ(18,19,u.lcZ(19,21,"DIALOGS.ADD_SSH.ADD"))," "))},dependencies:[T.O5,pr,bo,wo,sn,fs,Ll,Hs,Pe,jn,va,Aa,jr,vi,kS],styles:[".input-width{width:100%}.white-space-pre{white-space:pre-wrap}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper{padding-bottom:0}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-underline{position:initial!important;display:block;margin-top:-1px}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper,perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-ripple{position:initial!important;display:table}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper{min-height:calc(1em + 1px)}\n"],encapsulation:2});let BS=(()=>{class r{constructor(e,t){this.dialogRef=e,this.notificationStorageService=t}ngOnInit(){this.notifications=this.notificationStorageService.getNotifications()}onCancel(){this.dialogRef.close()}onClear(){this.notificationStorageService.clearNotifications(),this.notifications=[]}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(yn),u.Y36(Sp))},r.\u0275cmp=u.Xpm({type:r,selectors:[["perun-web-apps-show-notification-history-dialog"]],decls:15,vars:17,consts:[["mat-dialog-title",""],["class","hide-horizontal-scrollbar",4,"ngIf"],["alert_type","warn",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","",1,"ml-2",3,"click"],[1,"hide-horizontal-scrollbar"],["itemSize","50",1,"viewport"],["class","mb-1",4,"cdkVirtualFor","cdkVirtualForOf"],[1,"mb-1"],[3,"data","inDialog"],["alert_type","warn"]],template:function(e,t){1&e&&(u.TgZ(0,"h1",0),u._uU(1),u.ALo(2,"translate"),u.ALo(3,"customTranslate"),u.qZA(),u.YNc(4,xP,3,1,"div",1),u.YNc(5,TP,4,5,"perun-web-apps-alert",2),u.TgZ(6,"div",3)(7,"button",4),u.NdJ("click",function(){return t.onClear()}),u._uU(8),u.ALo(9,"translate"),u.ALo(10,"customTranslate"),u.qZA(),u.TgZ(11,"button",5),u.NdJ("click",function(){return t.onCancel()}),u._uU(12),u.ALo(13,"translate"),u.ALo(14,"customTranslate"),u.qZA()()),2&e&&(u.xp6(1),u.Oqu(u.lcZ(2,5,u.lcZ(3,7,"DIALOGS.NOTIFICATION_LIST.TITLE"))),u.xp6(3),u.Q6J("ngIf",0!==t.notifications.length),u.xp6(1),u.Q6J("ngIf",0===t.notifications.length),u.xp6(3),u.hij(" ",u.lcZ(9,9,u.lcZ(10,11,"DIALOGS.NOTIFICATION_LIST.CLEAR"))," "),u.xp6(4),u.hij(" ",u.lcZ(13,13,u.lcZ(14,15,"DIALOGS.NOTIFICATION_LIST.CANCEL"))," "))},styles:[".viewport[_ngcontent-%COMP%]{height:400px;width:470px}.hide-horizontal-scrollbar[_ngcontent-%COMP%]{overflow-x:hidden}"]}),r})();var au=(()=>{return(r=au||(au={})).Admin="admin",r.Profile="profile",r.PwdReset="pwdReset",r.Consolidator="consolidator",r.Linker="linker",au;var r})();const EP=["*",[["mat-toolbar-row"]]],SP=["*","mat-toolbar-row"],MP=oo(class{constructor(r){this._elementRef=r}});let DP=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275dir=u.lG2({type:r,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),r})(),HP=(()=>{class r extends MP{constructor(e,t,o){super(e),this._platform=t,this._document=o}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(u.SBq),u.Y36(Jt),u.Y36(T.K0))},r.\u0275cmp=u.Xpm({type:r,selectors:[["mat-toolbar"]],contentQueries:function(e,t,o){if(1&e&&u.Suo(o,DP,5),2&e){let l;u.iGM(l=u.CRH())&&(t._toolbarRows=l)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,t){2&e&&u.ekj("mat-toolbar-multiple-rows",t._toolbarRows.length>0)("mat-toolbar-single-row",0===t._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[u.qOj],ngContentSelectors:SP,decls:2,vars:0,template:function(e,t){1&e&&(u.F$t(EP),u.Hsn(0),u.Hsn(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%}"],encapsulation:2,changeDetection:0}),r})(),OS=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({imports:[qe,qe]}),r})(),PP=0;const RP=fa(class{}),LS="mat-badge-content";let IP=(()=>{class r extends RP{constructor(e,t,o,l,c){super(),this._ngZone=e,this._elementRef=t,this._ariaDescriber=o,this._renderer=l,this._animationMode=c,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=PP++,this._isInitialized=!1}get color(){return this._color}set color(e){this._setColor(e),this._color=e}get overlap(){return this._overlap}set overlap(e){this._overlap=tt(e)}get content(){return this._content}set content(e){this._updateRenderedContent(e)}get description(){return this._description}set description(e){this._updateHostAriaDescription(e)}get hidden(){return this._hidden}set hidden(e){this._hidden=tt(e)}isAbove(){return-1===this.position.indexOf("below")}isAfter(){return-1===this.position.indexOf("before")}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=!0}ngOnDestroy(){this._renderer.destroyNode&&this._renderer.destroyNode(this._badgeElement),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_createBadgeElement(){const e=this._renderer.createElement("span"),t="mat-badge-active";return e.setAttribute("id",`mat-badge-content-${this._id}`),e.setAttribute("aria-hidden","true"),e.classList.add(LS),"NoopAnimations"===this._animationMode&&e.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(e),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{e.classList.add(t)})}):e.classList.add(t),e}_updateRenderedContent(e){const t=`${e??""}`.trim();this._isInitialized&&t&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=t),this._content=t}_updateHostAriaDescription(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),e&&this._ariaDescriber.describe(this._elementRef.nativeElement,e),this._description=e}_setColor(e){const t=this._elementRef.nativeElement.classList;t.remove(`mat-badge-${this._color}`),e&&t.add(`mat-badge-${e}`)}_clearExistingBadges(){const e=this._elementRef.nativeElement.querySelectorAll(`:scope > .${LS}`);for(const t of Array.from(e))t!==this._badgeElement&&t.remove()}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(u.R0b),u.Y36(u.SBq),u.Y36(oh),u.Y36(u.Qsj),u.Y36(u.QbO,8))},r.\u0275dir=u.lG2({type:r,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(e,t){2&e&&u.ekj("mat-badge-overlap",t.overlap)("mat-badge-above",t.isAbove())("mat-badge-below",!t.isAbove())("mat-badge-before",!t.isAfter())("mat-badge-after",t.isAfter())("mat-badge-small","small"===t.size)("mat-badge-medium","medium"===t.size)("mat-badge-large","large"===t.size)("mat-badge-hidden",t.hidden||!t.content)("mat-badge-disabled",t.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],position:["matBadgePosition","position"],content:["matBadge","content"],description:["matBadgeDescription","description"],size:["matBadgeSize","size"],hidden:["matBadgeHidden","hidden"]},features:[u.qOj]}),r})(),kP=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({imports:[ml,qe,qe]}),r})();const L0=function(r){return{color:r}};function VP(r,a){if(1&r&&(u.TgZ(0,"button",8),u.ALo(1,"translate"),u.TgZ(2,"mat-icon",4),u._uU(3," apps "),u.qZA()()),2&r){const e=u.oxw(),t=u.MAs(2);u.Q6J("matMenuTriggerFor",t)("matTooltip",u.lcZ(1,3,"NAV.OTHER_APPLICATIONS")),u.xp6(2),u.Q6J("ngStyle",u.VKq(5,L0,e.iconColor))}}function BP(r,a){if(1&r&&(u.TgZ(0,"span",9),u._uU(1),u.qZA()),2&r){const e=u.oxw();u.Q6J("ngStyle",u.VKq(6,L0,e.textColor)),u.xp6(1),u.xDo(" ",e.user.titleBefore," ",e.user.firstName," ",e.user.middleName," ",e.user.lastName," ",e.user.titleAfter," ")}}function OP(r,a){if(1&r){const e=u.EpF();u.TgZ(0,"button",2),u.NdJ("click",function(){u.CHM(e);const o=u.oxw();return u.KtG(o.onLogOut())}),u._uU(1),u.ALo(2,"translate"),u.qZA()}2&r&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"NAV.LOGOUT")," "))}let LP=(()=>{class r{constructor(e){this.authService=e}redirectToUrl(){window.open(this.url,"_blank")}onLogOut(){this.authService.logout()}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(Ta))},r.\u0275cmp=u.Xpm({type:r,selectors:[["perun-web-apps-header-menu"]],inputs:{user:"user",iconColor:"iconColor",textColor:"textColor",logoutEnabled:"logoutEnabled",url:"url",label:"label"},decls:13,vars:8,consts:[["mat-icon-button","",3,"matMenuTriggerFor","matTooltip",4,"ngIf"],["appsMenu","matMenu"],["mat-menu-item","",3,"click"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],["class","d-none d-lg-inline",3,"ngStyle",4,"ngIf"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-icon-button","",3,"matMenuTriggerFor","matTooltip"],[1,"d-none","d-lg-inline",3,"ngStyle"]],template:function(e,t){if(1&e&&(u.YNc(0,VP,4,7,"button",0),u.TgZ(1,"mat-menu",null,1)(3,"button",2),u.NdJ("click",function(){return t.redirectToUrl()}),u.TgZ(4,"span"),u._uU(5),u.qZA()()(),u.TgZ(6,"button",3)(7,"mat-icon",4),u._uU(8," person "),u.qZA(),u.YNc(9,BP,2,8,"span",5),u.qZA(),u.TgZ(10,"mat-menu",null,6),u.YNc(12,OP,3,3,"button",7),u.qZA()),2&e){const o=u.MAs(11);u.Q6J("ngIf",t.url),u.xp6(5),u.Oqu(t.label),u.xp6(1),u.Q6J("matMenuTriggerFor",o),u.xp6(1),u.Q6J("ngStyle",u.VKq(6,L0,t.iconColor)),u.xp6(2),u.Q6J("ngIf",null!==t.user),u.xp6(3),u.Q6J("ngIf",t.logoutEnabled)}},dependencies:[T.O5,T.PC,ur,tp,Ul,ip,sn,Td,vi],styles:["@media (max-width: 991px){.no-left-padding[_ngcontent-%COMP%]{padding-left:0}}"]}),r})(),FP=(()=>{class r extends Nu{constructor(){super(...arguments),this.queryParamsHandling="merge"}ngOnChanges(){if(this.queryParams&&"applicationFormItems"in this.queryParams){this.queryParamsHandling="";const e=Object.assign({},this.queryParams);delete e.applicationFormItems,this.queryParams=e}}}return r.\u0275fac=function(){let a;return function(t){return(a||(a=u.n5z(r)))(t||r)}}(),r.\u0275dir=u.lG2({type:r,selectors:[["tr","routerLink",""],["a","routerLink",""]],features:[u.qOj,u.TTD]}),r})();const ou=function(r){return{color:r}};function jP(r,a){if(1&r){const e=u.EpF();u.TgZ(0,"button",9),u.NdJ("click",function(){u.CHM(e);const o=u.oxw();return u.KtG(o.onToggleSidenav())}),u.TgZ(1,"mat-icon"),u._uU(2,"menu"),u.qZA()()}if(2&r){const e=u.oxw();u.Q6J("ngStyle",u.VKq(1,ou,e.iconColor))}}function NP(r,a){if(1&r){const e=u.EpF();u.TgZ(0,"div",10)(1,"button",11)(2,"mat-icon",12),u._uU(3," language "),u.qZA()(),u.TgZ(4,"mat-menu",null,13)(6,"button",14),u.NdJ("click",function(){u.CHM(e);const o=u.oxw();return u.KtG(o.changeLanguage())}),u._uU(7),u.ALo(8,"translate"),u.qZA()()()}if(2&r){const e=u.MAs(5),t=u.oxw();u.Q6J("ngStyle",u.VKq(6,ou,t.textColor)),u.xp6(1),u.Q6J("matMenuTriggerFor",e),u.xp6(1),u.Q6J("ngStyle",u.VKq(8,ou,t.iconColor)),u.xp6(5),u.hij(" ",u.lcZ(8,4,"HEADER.LANGUAGE")," ")}}function zP(r,a){if(1&r){const e=u.EpF();u.TgZ(0,"button",15),u.NdJ("click",function(){u.CHM(e);const o=u.oxw();return u.KtG(o.showNotificationHistory())}),u.ALo(1,"translate"),u.TgZ(2,"mat-icon",16),u._uU(3),u.qZA()()}if(2&r){const e=u.oxw();u.Q6J("matTooltip",u.lcZ(1,5,"NAV.NOTIFICATIONS_TOOLTIP")),u.xp6(2),u.s9C("matBadge",e.getNewNotificationsCount()>5?"5+":e.getNewNotificationsCount()),u.Q6J("ngStyle",u.VKq(7,ou,e.iconColor))("matBadgeHidden",0===e.getNewNotificationsCount()),u.xp6(1),u.hij(" ",e.getNewNotificationsCount()?"notifications_active":"notifications"," ")}}function UP(r,a){if(1&r&&u._UZ(0,"perun-web-apps-header-menu",17),2&r){const e=u.oxw();u.Q6J("url",e.otherAppUrl)("label",e.otherAppLabel)("user",e.principal.user)("logoutEnabled",e.logoutEnabled)("iconColor",e.iconColor)("textColor",e.textColor)}}const GP=function(r){return{background:r}},qP=function(){return[]},WP=function(){return["/"]};let $P=(()=>{class r{constructor(e,t,o,l,c,n,i){this.storeService=e,this.sanitizer=t,this.translateService=o,this.otherApplicationService=l,this.notificationStorageService=c,this.dialog=n,this.route=i,this.sidenavToggle=new u.vpe,this.showToggle=!0,this.showLanguageMenu=!1,this.showHeaderMenu=!0,this.showNotifications=!1,this.disableLogo=!1,this.label=this.storeService.getProperty("header_label_en"),this.logoutEnabled=this.storeService.getProperty("log_out_enabled"),this.principal=this.storeService.getPerunPrincipal(),this.bgColor=this.storeService.getProperty("theme").nav_bg_color,this.textColor=this.storeService.getProperty("theme").nav_text_color,this.iconColor=this.storeService.getProperty("theme").nav_icon_color,this.navTextColor=this.storeService.getProperty("theme").nav_text_color,this.activeLink=!1,this.onToggleSidenav=()=>{this.sidenavToggle.emit()}}ngOnInit(){this.otherAppLabel=this.getOtherAppLabel(),this.translateService.onLangChange.subscribe(e=>{this.label=this.storeService.getProperty("en"===e.lang?"header_label_en":"header_label_cs"),this.otherAppLabel=this.getOtherAppLabel(e.lang)}),this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.getProperty("logo")),this.isLinkToOtherAppActive()}getOtherAppLabel(e="en"){return this.storeService.getProperty(this.otherApp===au.Profile?"profile_label_en":"en"===e?"admin_gui_label_en":"admin_gui_label_cs")}isLinkToOtherAppActive(){if(this.otherApp===au.Admin){this.linkRoles=this.storeService.getProperty("link_to_admin_gui_by_roles");for(const e in this.storeService.getPerunPrincipal().roles)this.linkRoles.includes(e)&&(this.activeLink=!0)}(this.otherApp!==au.Admin||this.activeLink)&&(this.otherAppUrl=this.otherApplicationService.getUrlForOtherApplication(this.otherApp))}changeLanguage(){this.translateService.use("en"===this.translateService.currentLang?"cs":"en")}showNotificationHistory(){this.notificationStorageService.newNotificationsCount=0;const e=vn();e.width="520px",this.dialog.open(BS,e)}getNewNotificationsCount(){return this.notificationStorageService.newNotificationsCount}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(li),u.Y36(Xt),u.Y36(Bi),u.Y36(Ss),u.Y36(Sp),u.Y36(wn),u.Y36(ir))},r.\u0275cmp=u.Xpm({type:r,selectors:[["perun-web-apps-header"]],inputs:{showToggle:"showToggle",showLanguageMenu:"showLanguageMenu",showHeaderMenu:"showHeaderMenu",showNotifications:"showNotifications",disableLogo:"disableLogo",otherApp:"otherApp"},outputs:{sidenavToggle:"sidenavToggle"},decls:10,vars:19,consts:[[1,"sticky-top","header-container","mat-elevation-z3",3,"ngStyle"],["id","nav-menu-icons"],["aria-label","Menu","mat-icon-button","",3,"ngStyle","click",4,"ngIf"],["queryParamsHandling","merge",1,"logo-container","mt-auto","mb-auto",3,"innerHTML","routerLink","queryParams"],[1,"mt-auto","mb-auto","hide-label","page-subtitle",3,"ngStyle"],["id","nav-menu-user-info",3,"ngStyle"],["id","nav-menu-language",3,"ngStyle",4,"ngIf"],["mat-icon-button","",3,"matTooltip","click",4,"ngIf"],[3,"url","label","user","logoutEnabled","iconColor","textColor",4,"ngIf"],["aria-label","Menu","mat-icon-button","",3,"ngStyle","click"],["id","nav-menu-language",3,"ngStyle"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],["menu","matMenu"],["mat-menu-item","",3,"click"],["mat-icon-button","",3,"matTooltip","click"],["matBadgeColor","warn",3,"ngStyle","matBadge","matBadgeHidden"],[3,"url","label","user","logoutEnabled","iconColor","textColor"]],template:function(e,t){1&e&&(u.TgZ(0,"mat-toolbar",0)(1,"div",1),u.YNc(2,jP,3,3,"button",2),u._UZ(3,"a",3),u.TgZ(4,"p",4),u._uU(5),u.qZA()(),u.TgZ(6,"div",5),u.YNc(7,NP,9,10,"div",6),u.YNc(8,zP,4,9,"button",7),u.YNc(9,UP,1,6,"perun-web-apps-header-menu",8),u.qZA()()),2&e&&(u.Q6J("ngStyle",u.VKq(11,GP,t.bgColor)),u.xp6(2),u.Q6J("ngIf",t.showToggle),u.xp6(1),u.Q6J("innerHTML",t.logo,u.oJD)("routerLink",t.disableLogo?u.DdM(13,qP):u.DdM(14,WP))("queryParams",t.route.snapshot.queryParams),u.xp6(1),u.Q6J("ngStyle",u.VKq(15,ou,t.textColor)),u.xp6(1),u.hij(" ",t.label," "),u.xp6(1),u.Q6J("ngStyle",u.VKq(17,ou,t.navTextColor)),u.xp6(1),u.Q6J("ngIf",t.showLanguageMenu),u.xp6(1),u.Q6J("ngIf",t.showNotifications),u.xp6(1),u.Q6J("ngIf",t.showHeaderMenu))},dependencies:[T.O5,T.PC,zu,ur,tp,Ul,ip,sn,Td,HP,IP,LP,FP,vi],styles:[".header-container[_ngcontent-%COMP%]{height:64px!important;display:flex;justify-content:space-between;padding:0 0 0 8px;z-index:999}#nav-menu-user-info[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding-right:16px;margin-left:auto;margin-right:0}@media (max-width: 570px){.hide-label[_ngcontent-%COMP%]{display:none}}#nav-devel-info[_ngcontent-%COMP%]{margin-left:auto;font-weight:500;font-size:1.4rem;display:flex;align-items:center;font-family:Roboto,Helvetica Neue,sans-serif}#nav-menu-icons[_ngcontent-%COMP%]{display:flex;flex-direction:row}.logo-container[_ngcontent-%COMP%]{padding:0 20px 0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}#nav-menu-language[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding-right:16px}"]}),r})();function QP(r,a){if(1&r&&(u.TgZ(0,"div",8),u._UZ(1,"div",9),u.qZA()),2&r){const e=u.oxw();u.xp6(1),u.Q6J("innerHTML",e.logo,u.oJD)}}function YP(r,a){if(1&r&&(u.TgZ(0,"div",10),u._UZ(1,"div",11)(2,"mat-icon",12),u.qZA()),2&r){const e=u.oxw();u.xp6(1),u.Q6J("innerHTML",e.logo,u.oJD)}}const JP=function(r){return{color:r}};function KP(r,a){if(1&r&&(u.TgZ(0,"p",13),u._uU(1),u.qZA()),2&r){const e=u.oxw();u.Q6J("ngStyle",u.VKq(2,JP,e.textColor)),u.xp6(1),u.hij(" ",e.headerTitle," ")}}const ZP=function(r,a){return{background:r,color:a}},XP=function(r,a){return{"min-height":r,"background-color":a}};let eR=(()=>{class r{constructor(e,t,o,l){this.storeService=e,this.sanitizer=t,this.preferredLangService=o,this.translateService=l,this.contentBackgroundColor=this.storeService.getProperty("theme").content_bg_color}ngOnInit(){if(this.headerBackgroundColor=this.storeService.getProperty("theme").nav_bg_color,this.headerTextColor=this.storeService.getProperty("theme").nav_text_color,this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.getProperty("logo")),this.textColor=this.headerTitle?this.storeService.getProperty("theme").nav_text_color:"","user-profile"===this.application){const e=this.preferredLangService.getPreferredLanguage(null);this.translateService.use(e)}}getContentInnerMinHeight(){return"calc((100vh - 64px) + 0px)"}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(li),u.Y36(Xt),u.Y36(lb),u.Y36(Bi))},r.\u0275cmp=u.Xpm({type:r,selectors:[["perun-web-apps-login-screen-base"]],inputs:{application:"application",headerTitle:"headerTitle"},decls:10,vars:11,consts:[["id","login-nav",1,"mat-elevation-z3",3,"ngStyle"],["class","mt-auto mb-auto",4,"ngIf"],["class","display-flex-row",4,"ngIf"],["class","ml-3 mt-auto mb-auto page-subtitle",3,"ngStyle",4,"ngIf"],["id","content"],["id","content-inner",3,"ngStyle"],["id","content-wrap"],["id","footer"],[1,"mt-auto","mb-auto"],[1,"logo-container",3,"innerHTML"],[1,"display-flex-row"],[1,"logo-container","mt-auto","mb-auto",3,"innerHTML"],["svgIcon","perun-publications-white",1,"mt-auto","mb-auto","router-icon","ml-2","mr-2"],[1,"ml-3","mt-auto","mb-auto","page-subtitle",3,"ngStyle"]],template:function(e,t){1&e&&(u.TgZ(0,"div",0),u.YNc(1,QP,2,1,"div",1),u.YNc(2,YP,3,1,"div",2),u.YNc(3,KP,2,4,"p",3),u.qZA(),u.TgZ(4,"div",4)(5,"div",5)(6,"div",6),u._UZ(7,"router-outlet"),u.qZA(),u.TgZ(8,"div",7),u._UZ(9,"perun-web-apps-footer"),u.qZA()()()),2&e&&(u.Q6J("ngStyle",u.WLB(5,ZP,t.headerBackgroundColor,t.headerTextColor)),u.xp6(1),u.Q6J("ngIf","admin-gui"===t.application||"user-profile"===t.application||"consolidator"===t.application),u.xp6(1),u.Q6J("ngIf","publications"===t.application),u.xp6(1),u.Q6J("ngIf",!!t.headerTitle),u.xp6(2),u.Q6J("ngStyle",u.WLB(8,XP,t.getContentInnerMinHeight(),t.contentBackgroundColor)))},dependencies:[T.O5,T.PC,ur,ii,IS],styles:["#login-nav[_ngcontent-%COMP%]{position:fixed;width:100%;z-index:999;display:flex;height:64px;max-height:64px;top:0}#footer[_ngcontent-%COMP%]{position:absolute;bottom:0;width:100%}#content[_ngcontent-%COMP%]{width:100%;min-height:calc(100vh - 64px);margin-top:64px}#content-inner[_ngcontent-%COMP%]{position:relative}#content-wrap[_ngcontent-%COMP%]{padding-bottom:250px;padding-top:10px}@media (max-width: 768px){#content-wrap[_ngcontent-%COMP%]{padding-bottom:500px}}.router-icon[_ngcontent-%COMP%]{height:2.5rem;width:2.5rem;cursor:pointer;outline:0}.page-subtitle[_ngcontent-%COMP%]{margin-bottom:1rem;font-size:1.5rem}.logo-container[_ngcontent-%COMP%]{padding:0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}.display-flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}"]}),r})();function iR(r,a){if(1&r&&u._UZ(0,"perun-web-apps-password-form",4),2&r){const e=u.oxw();u.Q6J("formGroup",e.newPasswdForm)("namespace",e.namespace)("language",e.language)}}function nR(r,a){if(1&r){const e=u.EpF();u.TgZ(0,"div")(1,"button",5),u.NdJ("click",function(){u.CHM(e);const o=u.oxw();return u.KtG(o.onSubmit())}),u._uU(2),u.ALo(3,"translate"),u.qZA()()}if(2&r){const e=u.oxw();u.xp6(1),u.Q6J("disabled",e.newPasswdForm.invalid||e.newPasswdForm.pending),u.xp6(1),u.hij(" ",u.lcZ(3,2,"reset"===e.mode?"PAGES.PWD_RESET_PAGE.RESET_BUTTON":"PAGES.PWD_RESET_PAGE.ACTIVATION_BUTTON")," ")}}function rR(r,a){if(1&r&&(u.TgZ(0,"div",6)(1,"perun-web-apps-alert",7),u._uU(2),u.qZA()()),2&r){const e=u.oxw();u.xp6(2),u.hij(" ",e.successMsg," ")}}function aR(r,a){if(1&r&&(u.TgZ(0,"div",6)(1,"perun-web-apps-alert",8),u._uU(2),u.qZA()()),2&r){const e=u.oxw();u.xp6(2),u.hij(" ",e.errorMsg," ")}}function oR(r,a){1&r&&u._UZ(0,"mat-spinner",9)}let sR=(()=>{class r{constructor(e,t,o,l,c,n){this.storeService=e,this.translate=t,this.apiRequestConfiguration=o,this.usersService=l,this.formBuilder=c,this.errorTranslate=n,this.loading=!1,this.success=!1,this.error=!1,this.language="en"}ngOnInit(){this.newPasswdForm=this.formBuilder.group({passwordCtrl:["",fr.required,[RH(this.namespace,this.usersService,this.apiRequestConfiguration)]],passwordAgainCtrl:["",fr.required]},{validators:GA.passwordMatchValidator}),this.setLabels(this.translate.currentLang),this.translate.onLangChange.subscribe(e=>{this.language=e.lang,this.setLabels(this.language),this.successMsg=this.getMessage("success"),this.errorKey&&(this.errorMsg=this.getMessage(this.errorKey))})}onSubmit(){this.loading=!0,(0,Me.of)(this.authWithoutToken).pipe((0,yi.z)(e=>function tR(r,a,e){return Tr(()=>r()?a:e)}(()=>e,this.usersService.changePasswordForLogin({login:this.login,namespace:this.namespace,newPassword:this.newPasswdForm.value.passwordCtrl}),this.usersService.changeNonAuthzPasswordByToken({token:this.token,password:this.newPasswdForm.value.passwordCtrl})))).subscribe({next:()=>{this.success=!0,this.successMsg=this.getMessage("success"),this.loading=!1},error:e=>{this.error=!0,this.errorKey=this.errorTranslate.getErrorKey(e),this.errorMsg=this.getMessage(this.errorKey),this.loading=!1}})}setLabels(e){this.labels=this.storeService.getProperty("en"===e?"password_labels":"password_labels_cs")}getMessage(e){const t=this.labels?.[this.namespace]?.[this.mode]?.[e];return t||this.labels.default[this.mode][e]}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(li),u.Y36(Bi),u.Y36(Es),u.Y36(xr),u.Y36(P),u.Y36(qd))},r.\u0275cmp=u.Xpm({type:r,selectors:[["perun-web-apps-password-reset-form"]],inputs:{mode:"mode",namespace:"namespace",login:"login",token:"token",authWithoutToken:"authWithoutToken"},decls:5,vars:5,consts:[[3,"formGroup","namespace","language",4,"ngIf"],[4,"ngIf"],["class","mt-5",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"formGroup","namespace","language"],["mat-flat-button","","color","accent",1,"mx-auto","d-block",3,"disabled","click"],[1,"mt-5"],["alert_type","success"],["alert_type","error"],[1,"ml-auto","mr-auto"]],template:function(e,t){1&e&&(u.YNc(0,iR,1,3,"perun-web-apps-password-form",0),u.YNc(1,nR,4,4,"div",1),u.YNc(2,rR,3,1,"div",2),u.YNc(3,aR,3,1,"div",2),u.YNc(4,oR,1,0,"mat-spinner",3)),2&e&&(u.Q6J("ngIf",!t.success&&!t.loading&&!t.error),u.xp6(1),u.Q6J("ngIf",!t.success&&!t.error&&!t.loading),u.xp6(1),u.Q6J("ngIf",t.success&&!t.loading),u.xp6(1),u.Q6J("ngIf",t.error&&!t.loading),u.xp6(1),u.Q6J("ngIf",t.loading))},dependencies:[T.O5,sn,Ur,jp,gr,_o,FH,vi]}),r})(),lR=(()=>{class r{constructor(e){this.translate=e}ngOnInit(){this.translate.onLangChange.subscribe(()=>{this.invalidRequestMessage=this.translate.instant("PAGES.PWD_RESET_PAGE.INVALID_REQUEST")})}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(Bi))},r.\u0275cmp=u.Xpm({type:r,selectors:[["perun-web-apps-invalid-request-alert"]],decls:2,vars:1,consts:[["alert_type","info",1,"alert-wrap"],[3,"innerHTML"]],template:function(e,t){1&e&&(u.TgZ(0,"perun-web-apps-alert",0),u._UZ(1,"div",1),u.qZA()),2&e&&(u.xp6(1),u.Q6J("innerHTML",t.invalidRequestMessage,u.oJD))},dependencies:[_o],styles:[".alert-wrap[_ngcontent-%COMP%]{white-space:pre-wrap}"]}),r})();function cR(r,a){if(1&r&&(u.O4$(),u.kcU(),u.TgZ(0,"p",9)(1,"em"),u._uU(2),u.ALo(3,"translate"),u.qZA()()),2&r){const e=u.oxw();u.xp6(2),u.AsE("",u.lcZ(3,2,"PAGES.PWD_RESET_PAGE.LOGIN"),": ",e.login,"")}}function dR(r,a){if(1&r&&(u.O4$(),u.kcU(),u.TgZ(0,"p",9)(1,"em"),u._uU(2),u.ALo(3,"translate"),u.qZA()()),2&r){const e=u.oxw();u.xp6(2),u.AsE("",u.lcZ(3,2,"PAGES.PWD_RESET_PAGE.NAMESPACE"),": ",e.namespace,"")}}function uR(r,a){if(1&r&&u._UZ(0,"perun-web-apps-password-reset-form",10),2&r){const e=u.oxw();u.Q6J("mode",e.mode)("namespace",e.namespace)("login",e.login)("token",e.token)("authWithoutToken",e.authWithoutToken)}}function hR(r,a){1&r&&u._UZ(0,"perun-web-apps-invalid-request-alert")}let pR=(()=>{class r{constructor(e,t,o){this.storeService=e,this.sanitizer=t,this.translateService=o}ngOnInit(){this.passwordResetLogo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.getProperty("password_reset_logo")),this.setDescription(this.translateService.currentLang),this.translateService.onLangChange.subscribe(e=>{this.setDescription(e.lang)})}setDescription(e){const t=this.storeService.getProperty("en"===e?"password_labels":"password_labels_cs");this.description=t[this.namespace]?.[this.mode]?.description,this.description||(this.description=t.default[this.mode].description)}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(li),u.Y36(Xt),u.Y36(Bi))},r.\u0275cmp=u.Xpm({type:r,selectors:[["perun-web-apps-password-reset-page"]],inputs:{mode:"mode",token:"token",namespace:"namespace",login:"login",validToken:"validToken",authWithoutToken:"authWithoutToken"},decls:16,vars:9,consts:[[3,"innerHTML"],[1,"title-with-icon"],["xmlns","http://www.w3.org/2000/svg","width","30.000000pt","height","30.000000pt","viewBox","0 0 512.000000 512.000000","preserveAspectRatio","xMidYMid meet"],["transform","translate(0.000000,512.000000) scale(0.100000,-0.100000)","fill","#000000","stroke","none"],["d","M3530 5103 c-619 -30 -1162 -438 -1356 -1020 -115 -342 -107 -702 21-1035 l36 -92 -1100 -1101 c-605 -605 -1105 -1112 -1110 -1127 -8 -22 -5 -49 15 -125 116 -450 112 -436 146 -454 42 -22 513 -139 539 -134 16 4 122 103 287 268 144 145 262 265 262 267 4 51 29 293 32 295 2 2 70 10 151 18 200 19 193 13 213 213 8 81 17 150 19 152 2 2 67 10 145 18 77 7 149 18 159 23 37 20 44 44 60 194 l16 152 125 12 c69 6 136 12 150 12 18 1 98 75 320 296 l295 295 85 -33 c586 -230 1239 -83 1665 375 405 437 514 1079 275 1629 -122 280 -336 524 -606 690 -237 145 -559 226 -844 212z m201 -184 c307 -31 569 -152 790 -366 467 -452 542 -1155 182 -1697 -187 -280 -490 -487 -823 -561 -42 -9 -144 -19 -230 -22 -236 -8 -402 24 -613 119 -65 29 -96 38 -115 33 -17 -4 -139 -118 -332 -309 l-305 -304 -169 -16 c-224 -20 -214 -11 -233 -213 -8 -81 -16 -150 -18 -152 -2 -2 -68 -10 -147 -18 -148 -14 -182 -26 -197 -66 -5 -12 -15 -85 -22 -162 l-14 -140 -140 -14 c-77 -7 -149 -17 -162 -22 -41 -15 -51 -48 -68 -219 l-16 -165 -213 -213 -212 -213 -185 47 c-101 26 -185 49 -187 50 -2 1 -26 87 -53 191 l-49 188 1115 1115 c849 849 1115 1121 1115 1139 0 13 -18 62 -39 110 -40 90 -80 211 -103 316 -20 95 -17 400 5 505 55 255 171 473 354 661 250 257 570 397 934 408 26 0 93 -4 150 -10z"],["d","M3554 4120 c-201 -30 -366 -170 -424 -359 -14 -43 -20 -92 -20 -153 0 -389 394 -632 750 -461 78 38 189 151 227 233 158 336 -58 712 -427 743 -30 3 -78 1 -106 -3z m138 -181 c108 -23 190 -89 239 -192 37 -80 40 -177 7 -264 -30 -80 -112 -162 -193 -192 -121 -45 -270 -14 -358 75 -164 165 -121 440 83 544 72 37 142 46 222 29z"],["class","subtitle",4,"ngIf"],[3,"mode","namespace","login","token","authWithoutToken",4,"ngIf"],[4,"ngIf"],[1,"subtitle"],[3,"mode","namespace","login","token","authWithoutToken"]],template:function(e,t){1&e&&(u.TgZ(0,"div"),u._UZ(1,"div",0),u.TgZ(2,"div",1)(3,"h1"),u._uU(4),u.ALo(5,"translate"),u.qZA(),u.O4$(),u.TgZ(6,"svg",2)(7,"g",3),u._UZ(8,"path",4)(9,"path",5),u.qZA()()(),u.YNc(10,cR,4,4,"p",6),u.YNc(11,dR,4,4,"p",6),u.kcU(),u.TgZ(12,"p"),u._uU(13),u.qZA(),u.YNc(14,uR,1,5,"perun-web-apps-password-reset-form",7),u.YNc(15,hR,1,0,"perun-web-apps-invalid-request-alert",8),u.qZA()),2&e&&(u.xp6(1),u.Q6J("innerHTML",t.passwordResetLogo,u.oJD),u.xp6(3),u.hij(" ",u.lcZ(5,7,"reset"===t.mode?"PAGES.PWD_RESET_PAGE.TITLE_RESET":"PAGES.PWD_RESET_PAGE.TITLE_ACTIVATION")," "),u.xp6(6),u.Q6J("ngIf",t.login),u.xp6(1),u.Q6J("ngIf",t.namespace),u.xp6(2),u.Oqu(t.description),u.xp6(1),u.Q6J("ngIf",t.validToken||t.authWithoutToken),u.xp6(1),u.Q6J("ngIf",!t.validToken&&!t.authWithoutToken))},dependencies:[T.O5,sR,lR,vi],styles:[".title-with-icon[_ngcontent-%COMP%]{margin-top:30px;display:flex;justify-content:space-between}.subtitle[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:10px}"]}),r})();const fR=["footer"],gR=function(r){return{background:r}},mR=function(r){return{"min-height":r}};function _R(r,a){if(1&r&&(u.TgZ(0,"div"),u._UZ(1,"perun-web-apps-header",2),u.TgZ(2,"div",3)(3,"div",4),u._UZ(4,"perun-web-apps-password-reset-page",5),u.qZA(),u.TgZ(5,"div",null,6),u._UZ(7,"perun-web-apps-footer"),u.qZA()()()),2&r){const e=u.oxw();u.xp6(1),u.Q6J("showToggle",!1)("showHeaderMenu",!1)("showLanguageMenu",!0),u.xp6(1),u.Q6J("ngStyle",u.VKq(11,gR,e.contentBackgroundColor)),u.xp6(1),u.Q6J("ngStyle",u.VKq(13,mR,e.contentHeight)),u.xp6(1),u.Q6J("mode",e.mode)("token",e.token)("namespace",e.namespace)("login",e.login)("validToken",e.validToken)("authWithoutToken",e.authWithoutToken)}}function bR(r,a){1&r&&u._UZ(0,"perun-web-apps-login-screen-base",7),2&r&&u.Q6J("application","pwd-reset")}let CR=(()=>{class r{constructor(e,t,o,l,c,n,i,s){this.dialog=e,this.usersService=t,this.preferredLangService=o,this.translateService=l,this.store=c,this.attributesManagerService=n,this.changeDetector=i,this.initAuth=s,this.authWithoutToken=!1,this.contentHeight="calc(100vh - 84px)",this.contentBackgroundColor=this.store.getProperty("theme").content_bg_color}ngOnInit(){this.isServiceAccess=this.initAuth.isServiceAccessLoginScreenShown(),this.showLoginScreen=this.initAuth.isLoginScreenShown();const e=this.preferredLangService.getPreferredLanguage(null);this.translateService.use(e);const t=location.search.substr(1);this.mode="activation"===xs("mode",t)?"activation":"reset",this.namespace=xs("namespace",t),t.includes("token")?(this.token=xs("token",t),this.usersService.checkPasswordResetRequestByTokenIsValid(this.token).subscribe(()=>{this.validToken=!0},()=>{this.validToken=!1})):!this.isServiceAccess&&!this.showLoginScreen&&(this.authWithoutToken=!0,this.attributesManagerService.getLogins(this.store.getPerunPrincipal().userId).subscribe(o=>{const l=o.find(c=>c.friendlyNameParameter===this.namespace);this.login=l?String(l.value):""}))}ngAfterViewInit(){const e=this.footer?.nativeElement?.offsetHeight?.toString()??"0";this.contentHeight="calc(100vh - 84px - "+e+"px)",this.changeDetector.detectChanges()}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(wn),u.Y36(xr),u.Y36(lb),u.Y36(Bi),u.Y36(li),u.Y36(wr),u.Y36(u.sBO),u.Y36(xp))},r.\u0275cmp=u.Xpm({type:r,selectors:[["perun-web-apps-root"]],viewQuery:function(e,t){if(1&e&&u.Gf(fR,5),2&e){let o;u.iGM(o=u.CRH())&&(t.footer=o.first)}},decls:2,vars:2,consts:[[4,"ngIf"],[3,"ngIf"],["id","nav-menu",3,"showToggle","showHeaderMenu","showLanguageMenu"],["id","content-inner",3,"ngStyle"],["id","content-wrap",3,"ngStyle"],[3,"mode","token","namespace","login","validToken","authWithoutToken"],["footer",""],[3,"application"]],template:function(e,t){1&e&&(u.YNc(0,_R,8,15,"div",0),u.YNc(1,bR,1,1,"ng-template",1)),2&e&&(u.Q6J("ngIf",!t.isServiceAccess&&!t.showLoginScreen),u.xp6(1),u.Q6J("ngIf",t.isServiceAccess||t.showLoginScreen))},dependencies:[T.O5,T.PC,IS,$P,eR,pR],styles:["#nav-menu[_ngcontent-%COMP%]{top:0;background:#102027;position:fixed;width:100%;z-index:999;height:64px;max-height:64px}#content-inner[_ngcontent-%COMP%]{position:relative;padding-top:64px}#content-wrap[_ngcontent-%COMP%]{padding-bottom:25px;padding-top:10px;margin:10px}@media (min-width: 450px){#content-wrap[_ngcontent-%COMP%]{max-width:400px;margin-left:auto;margin-right:auto}}"]}),r})();class yR{constructor(a,e="/assets/i18n/",t=".json"){this.http=a,this.prefix=e,this.suffix=t}getTranslation(a){return this.http.get(`${this.prefix}${a}${this.suffix}`)}}function FS(r){return new u.vHH(3e3,!1)}function tI(){return typeof window<"u"&&typeof window.document<"u"}function F0(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function Ps(r){switch(r.length){case 0:return new ho;case 1:return r[0];default:return new $h(r)}}function jS(r,a,e,t,o=new Map,l=new Map){const c=[],n=[];let i=-1,s=null;if(t.forEach(d=>{const h=d.get("offset"),f=h==i,b=f&&s||new Map;d.forEach((H,z)=>{let ae=z,ke=H;if("offset"!==z)switch(ae=a.normalizePropertyName(ae,c),ke){case"!":ke=o.get(z);break;case lr:ke=l.get(z);break;default:ke=a.normalizeStyleValue(z,ae,ke,c)}b.set(ae,ke)}),f||n.push(b),s=b,i=h}),c.length)throw function UR(r){return new u.vHH(3502,!1)}();return n}function j0(r,a,e,t){switch(a){case"start":r.onStart(()=>t(e&&N0(e,"start",r)));break;case"done":r.onDone(()=>t(e&&N0(e,"done",r)));break;case"destroy":r.onDestroy(()=>t(e&&N0(e,"destroy",r)))}}function N0(r,a,e){const l=z0(r.element,r.triggerName,r.fromState,r.toState,a||r.phaseName,e.totalTime??r.totalTime,!!e.disabled),c=r._data;return null!=c&&(l._data=c),l}function z0(r,a,e,t,o="",l=0,c){return{element:r,triggerName:a,fromState:e,toState:t,phaseName:o,totalTime:l,disabled:!!c}}function Nn(r,a,e){let t=r.get(a);return t||r.set(a,t=e),t}function NS(r){const a=r.indexOf(":");return[r.substring(1,a),r.slice(a+1)]}let U0=(r,a)=>!1,zS=(r,a,e)=>[],US=null;function G0(r){const a=r.parentNode||r.host;return a===US?null:a}(F0()||typeof Element<"u")&&(tI()?(US=(()=>document.documentElement)(),U0=(r,a)=>{for(;a;){if(a===r)return!0;a=G0(a)}return!1}):U0=(r,a)=>r.contains(a),zS=(r,a,e)=>{if(e)return Array.from(r.querySelectorAll(a));const t=r.querySelector(a);return t?[t]:[]});let rc=null,GS=!1;const qS=U0,WS=zS;let $S=(()=>{class r{validateStyleProperty(e){return function nI(r){rc||(rc=function rI(){return typeof document<"u"?document.body:null}()||{},GS=!!rc.style&&"WebkitAppearance"in rc.style);let a=!0;return rc.style&&!function iI(r){return"ebkit"==r.substring(1,6)}(r)&&(a=r in rc.style,!a&&GS&&(a="Webkit"+r.charAt(0).toUpperCase()+r.slice(1)in rc.style)),a}(e)}matchesElement(e,t){return!1}containsElement(e,t){return qS(e,t)}getParentElement(e){return G0(e)}query(e,t,o){return WS(e,t,o)}computeStyle(e,t,o){return o||""}animate(e,t,o,l,c,n=[],i){return new ho(o,l)}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac}),r})(),q0=(()=>{class r{}return r.NOOP=new $S,r})();const W0="ng-enter",Xb="ng-leave",eC="ng-trigger",tC=".ng-trigger",YS="ng-animating",$0=".ng-animating";function Rs(r){if("number"==typeof r)return r;const a=r.match(/^(-?[\.\d]+)(m?s)/);return!a||a.length<2?0:Q0(parseFloat(a[1]),a[2])}function Q0(r,a){return"s"===a?1e3*r:r}function iC(r,a,e){return r.hasOwnProperty("duration")?r:function sI(r,a,e){let o,l=0,c="";if("string"==typeof r){const n=r.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return a.push(FS()),{duration:0,delay:0,easing:""};o=Q0(parseFloat(n[1]),n[2]);const i=n[3];null!=i&&(l=Q0(parseFloat(i),n[4]));const s=n[5];s&&(c=s)}else o=r;if(!e){let n=!1,i=a.length;o<0&&(a.push(function wR(){return new u.vHH(3100,!1)}()),n=!0),l<0&&(a.push(function vR(){return new u.vHH(3101,!1)}()),n=!0),n&&a.splice(i,0,FS())}return{duration:o,delay:l,easing:c}}(r,a,e)}function uf(r,a={}){return Object.keys(r).forEach(e=>{a[e]=r[e]}),a}function JS(r){const a=new Map;return Object.keys(r).forEach(e=>{a.set(e,r[e])}),a}function Is(r,a=new Map,e){if(e)for(let[t,o]of e)a.set(t,o);for(let[t,o]of r)a.set(t,o);return a}function ZS(r,a,e){return e?a+":"+e+";":""}function XS(r){let a="";for(let e=0;e{const l=J0(o);e&&!e.has(o)&&e.set(o,r.style[l]),r.style[l]=t}),F0()&&XS(r))}function ac(r,a){r.style&&(a.forEach((e,t)=>{const o=J0(t);r.style[o]=""}),F0()&&XS(r))}function hf(r){return Array.isArray(r)?1==r.length?r[0]:bd(r):r}const Y0=new RegExp("{{\\s*(.+?)\\s*}}","g");function eM(r){let a=[];if("string"==typeof r){let e;for(;e=Y0.exec(r);)a.push(e[1]);Y0.lastIndex=0}return a}function nC(r,a,e){const t=r.toString(),o=t.replace(Y0,(l,c)=>{let n=a[c];return null==n&&(e.push(function xR(r){return new u.vHH(3003,!1)}()),n=""),n.toString()});return o==t?r:o}function rC(r){const a=[];let e=r.next();for(;!e.done;)a.push(e.value),e=r.next();return a}const dI=/-+([a-z0-9])/g;function J0(r){return r.replace(dI,(...a)=>a[1].toUpperCase())}function uI(r){return r.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function zn(r,a,e){switch(a.type){case 7:return r.visitTrigger(a,e);case 0:return r.visitState(a,e);case 1:return r.visitTransition(a,e);case 2:return r.visitSequence(a,e);case 3:return r.visitGroup(a,e);case 4:return r.visitAnimate(a,e);case 5:return r.visitKeyframes(a,e);case 6:return r.visitStyle(a,e);case 8:return r.visitReference(a,e);case 9:return r.visitAnimateChild(a,e);case 10:return r.visitAnimateRef(a,e);case 11:return r.visitQuery(a,e);case 12:return r.visitStagger(a,e);default:throw function TR(r){return new u.vHH(3004,!1)}()}}function tM(r,a){return window.getComputedStyle(r)[a]}function _I(r,a){const e=[];return"string"==typeof r?r.split(/\s*,\s*/).forEach(t=>function bI(r,a,e){if(":"==r[0]){const i=function CI(r,a){switch(r){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t) *"}}(r,e);if("function"==typeof i)return void a.push(i);r=i}const t=r.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==t||t.length<4)return e.push(function LR(r){return new u.vHH(3015,!1)}()),a;const o=t[1],l=t[2],c=t[3];a.push(iM(o,c));"<"==l[0]&&!("*"==o&&"*"==c)&&a.push(iM(c,o))}(t,e,a)):e.push(r),e}const lC=new Set(["true","1"]),cC=new Set(["false","0"]);function iM(r,a){const e=lC.has(r)||cC.has(r),t=lC.has(a)||cC.has(a);return(o,l)=>{let c="*"==r||r==o,n="*"==a||a==l;return!c&&e&&"boolean"==typeof o&&(c=o?lC.has(r):cC.has(r)),!n&&t&&"boolean"==typeof l&&(n=l?lC.has(a):cC.has(a)),c&&n}}const yI=new RegExp("s*:selfs*,?","g");function K0(r,a,e,t){return new wI(r).build(a,e,t)}class wI{constructor(a){this._driver=a}build(a,e,t){const o=new xI(e);return this._resetContextStyleTimingState(o),zn(this,hf(a),o)}_resetContextStyleTimingState(a){a.currentQuerySelector="",a.collectedStyles=new Map,a.collectedStyles.set("",new Map),a.currentTime=0}visitTrigger(a,e){let t=e.queryCount=0,o=e.depCount=0;const l=[],c=[];return"@"==a.name.charAt(0)&&e.errors.push(function SR(){return new u.vHH(3006,!1)}()),a.definitions.forEach(n=>{if(this._resetContextStyleTimingState(e),0==n.type){const i=n,s=i.name;s.toString().split(/\s*,\s*/).forEach(d=>{i.name=d,l.push(this.visitState(i,e))}),i.name=s}else if(1==n.type){const i=this.visitTransition(n,e);t+=i.queryCount,o+=i.depCount,c.push(i)}else e.errors.push(function MR(){return new u.vHH(3007,!1)}())}),{type:7,name:a.name,states:l,transitions:c,queryCount:t,depCount:o,options:null}}visitState(a,e){const t=this.visitStyle(a.styles,e),o=a.options&&a.options.params||null;if(t.containsDynamicStyles){const l=new Set,c=o||{};t.styles.forEach(n=>{n instanceof Map&&n.forEach(i=>{eM(i).forEach(s=>{c.hasOwnProperty(s)||l.add(s)})})}),l.size&&(rC(l.values()),e.errors.push(function DR(r,a){return new u.vHH(3008,!1)}()))}return{type:0,name:a.name,style:t,options:o?{params:o}:null}}visitTransition(a,e){e.queryCount=0,e.depCount=0;const t=zn(this,hf(a.animation),e);return{type:1,matchers:_I(a.expr,e.errors),animation:t,queryCount:e.queryCount,depCount:e.depCount,options:oc(a.options)}}visitSequence(a,e){return{type:2,steps:a.steps.map(t=>zn(this,t,e)),options:oc(a.options)}}visitGroup(a,e){const t=e.currentTime;let o=0;const l=a.steps.map(c=>{e.currentTime=t;const n=zn(this,c,e);return o=Math.max(o,e.currentTime),n});return e.currentTime=o,{type:3,steps:l,options:oc(a.options)}}visitAnimate(a,e){const t=function EI(r,a){if(r.hasOwnProperty("duration"))return r;if("number"==typeof r)return Z0(iC(r,a).duration,0,"");const e=r;if(e.split(/\s+/).some(l=>"{"==l.charAt(0)&&"{"==l.charAt(1))){const l=Z0(0,0,"");return l.dynamic=!0,l.strValue=e,l}const o=iC(e,a);return Z0(o.duration,o.delay,o.easing)}(a.timings,e.errors);e.currentAnimateTimings=t;let o,l=a.styles?a.styles:Fe({});if(5==l.type)o=this.visitKeyframes(l,e);else{let c=a.styles,n=!1;if(!c){n=!0;const s={};t.easing&&(s.easing=t.easing),c=Fe(s)}e.currentTime+=t.duration+t.delay;const i=this.visitStyle(c,e);i.isEmptyStep=n,o=i}return e.currentAnimateTimings=null,{type:4,timings:t,style:o,options:null}}visitStyle(a,e){const t=this._makeStyleAst(a,e);return this._validateStyleAst(t,e),t}_makeStyleAst(a,e){const t=[],o=Array.isArray(a.styles)?a.styles:[a.styles];for(let n of o)"string"==typeof n?n===lr?t.push(n):e.errors.push(new u.vHH(3002,!1)):t.push(JS(n));let l=!1,c=null;return t.forEach(n=>{if(n instanceof Map&&(n.has("easing")&&(c=n.get("easing"),n.delete("easing")),!l))for(let i of n.values())if(i.toString().indexOf("{{")>=0){l=!0;break}}),{type:6,styles:t,easing:c,offset:a.offset,containsDynamicStyles:l,options:null}}_validateStyleAst(a,e){const t=e.currentAnimateTimings;let o=e.currentTime,l=e.currentTime;t&&l>0&&(l-=t.duration+t.delay),a.styles.forEach(c=>{"string"!=typeof c&&c.forEach((n,i)=>{const s=e.collectedStyles.get(e.currentQuerySelector),d=s.get(i);let h=!0;d&&(l!=o&&l>=d.startTime&&o<=d.endTime&&(e.errors.push(function PR(r,a,e,t,o){return new u.vHH(3010,!1)}()),h=!1),l=d.startTime),h&&s.set(i,{startTime:l,endTime:o}),e.options&&function cI(r,a,e){const t=a.params||{},o=eM(r);o.length&&o.forEach(l=>{t.hasOwnProperty(l)||e.push(function AR(r){return new u.vHH(3001,!1)}())})}(n,e.options,e.errors)})})}visitKeyframes(a,e){const t={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function RR(){return new u.vHH(3011,!1)}()),t;let l=0;const c=[];let n=!1,i=!1,s=0;const d=a.steps.map(ke=>{const ct=this._makeStyleAst(ke,e);let yt=null!=ct.offset?ct.offset:function TI(r){if("string"==typeof r)return null;let a=null;if(Array.isArray(r))r.forEach(e=>{if(e instanceof Map&&e.has("offset")){const t=e;a=parseFloat(t.get("offset")),t.delete("offset")}});else if(r instanceof Map&&r.has("offset")){const e=r;a=parseFloat(e.get("offset")),e.delete("offset")}return a}(ct.styles),zt=0;return null!=yt&&(l++,zt=ct.offset=yt),i=i||zt<0||zt>1,n=n||zt0&&l{const yt=f>0?ct==b?1:f*ct:c[ct],zt=yt*ae;e.currentTime=H+z.delay+zt,z.duration=zt,this._validateStyleAst(ke,e),ke.offset=yt,t.styles.push(ke)}),t}visitReference(a,e){return{type:8,animation:zn(this,hf(a.animation),e),options:oc(a.options)}}visitAnimateChild(a,e){return e.depCount++,{type:9,options:oc(a.options)}}visitAnimateRef(a,e){return{type:10,animation:this.visitReference(a.animation,e),options:oc(a.options)}}visitQuery(a,e){const t=e.currentQuerySelector,o=a.options||{};e.queryCount++,e.currentQuery=a;const[l,c]=function vI(r){const a=!!r.split(/\s*,\s*/).find(e=>":self"==e);return a&&(r=r.replace(yI,"")),r=r.replace(/@\*/g,tC).replace(/@\w+/g,e=>tC+"-"+e.slice(1)).replace(/:animating/g,$0),[r,a]}(a.selector);e.currentQuerySelector=t.length?t+" "+l:l,Nn(e.collectedStyles,e.currentQuerySelector,new Map);const n=zn(this,hf(a.animation),e);return e.currentQuery=null,e.currentQuerySelector=t,{type:11,selector:l,limit:o.limit||0,optional:!!o.optional,includeSelf:c,animation:n,originalSelector:a.selector,options:oc(a.options)}}visitStagger(a,e){e.currentQuery||e.errors.push(function BR(){return new u.vHH(3013,!1)}());const t="full"===a.timings?{duration:0,delay:0,easing:"full"}:iC(a.timings,e.errors,!0);return{type:12,animation:zn(this,hf(a.animation),e),timings:t,options:null}}}class xI{constructor(a){this.errors=a,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function oc(r){return r?(r=uf(r)).params&&(r.params=function AI(r){return r?uf(r):null}(r.params)):r={},r}function Z0(r,a,e){return{duration:r,delay:a,easing:e}}function X0(r,a,e,t,o,l,c=null,n=!1){return{type:1,element:r,keyframes:a,preStyleProps:e,postStyleProps:t,duration:o,delay:l,totalTime:o+l,easing:c,subTimeline:n}}class dC{constructor(){this._map=new Map}get(a){return this._map.get(a)||[]}append(a,e){let t=this._map.get(a);t||this._map.set(a,t=[]),t.push(...e)}has(a){return this._map.has(a)}clear(){this._map.clear()}}const DI=new RegExp(":enter","g"),PI=new RegExp(":leave","g");function ex(r,a,e,t,o,l=new Map,c=new Map,n,i,s=[]){return(new RI).buildKeyframes(r,a,e,t,o,l,c,n,i,s)}class RI{buildKeyframes(a,e,t,o,l,c,n,i,s,d=[]){s=s||new dC;const h=new tx(a,e,s,o,l,d,[]);h.options=i;const f=i.delay?Rs(i.delay):0;h.currentTimeline.delayNextStep(f),h.currentTimeline.setStyles([c],null,h.errors,i),zn(this,t,h);const b=h.timelines.filter(H=>H.containsAnimation());if(b.length&&n.size){let H;for(let z=b.length-1;z>=0;z--){const ae=b[z];if(ae.element===e){H=ae;break}}H&&!H.allowOnlyTimelineStyles()&&H.setStyles([n],null,h.errors,i)}return b.length?b.map(H=>H.buildKeyframes()):[X0(e,[],[],[],0,f,"",!1)]}visitTrigger(a,e){}visitState(a,e){}visitTransition(a,e){}visitAnimateChild(a,e){const t=e.subInstructions.get(e.element);if(t){const o=e.createSubContext(a.options),l=e.currentTimeline.currentTime,c=this._visitSubInstructions(t,o,o.options);l!=c&&e.transformIntoNewTimeline(c)}e.previousNode=a}visitAnimateRef(a,e){const t=e.createSubContext(a.options);t.transformIntoNewTimeline(),this.visitReference(a.animation,t),e.transformIntoNewTimeline(t.currentTimeline.currentTime),e.previousNode=a}_visitSubInstructions(a,e,t){let l=e.currentTimeline.currentTime;const c=null!=t.duration?Rs(t.duration):null,n=null!=t.delay?Rs(t.delay):null;return 0!==c&&a.forEach(i=>{const s=e.appendInstructionToTimeline(i,c,n);l=Math.max(l,s.duration+s.delay)}),l}visitReference(a,e){e.updateOptions(a.options,!0),zn(this,a.animation,e),e.previousNode=a}visitSequence(a,e){const t=e.subContextCount;let o=e;const l=a.options;if(l&&(l.params||l.delay)&&(o=e.createSubContext(l),o.transformIntoNewTimeline(),null!=l.delay)){6==o.previousNode.type&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=uC);const c=Rs(l.delay);o.delayNextStep(c)}a.steps.length&&(a.steps.forEach(c=>zn(this,c,o)),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>t&&o.transformIntoNewTimeline()),e.previousNode=a}visitGroup(a,e){const t=[];let o=e.currentTimeline.currentTime;const l=a.options&&a.options.delay?Rs(a.options.delay):0;a.steps.forEach(c=>{const n=e.createSubContext(a.options);l&&n.delayNextStep(l),zn(this,c,n),o=Math.max(o,n.currentTimeline.currentTime),t.push(n.currentTimeline)}),t.forEach(c=>e.currentTimeline.mergeTimelineCollectedStyles(c)),e.transformIntoNewTimeline(o),e.previousNode=a}_visitTiming(a,e){if(a.dynamic){const t=a.strValue;return iC(e.params?nC(t,e.params,e.errors):t,e.errors)}return{duration:a.duration,delay:a.delay,easing:a.easing}}visitAnimate(a,e){const t=e.currentAnimateTimings=this._visitTiming(a.timings,e),o=e.currentTimeline;t.delay&&(e.incrementTime(t.delay),o.snapshotCurrentStyles());const l=a.style;5==l.type?this.visitKeyframes(l,e):(e.incrementTime(t.duration),this.visitStyle(l,e),o.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=a}visitStyle(a,e){const t=e.currentTimeline,o=e.currentAnimateTimings;!o&&t.hasCurrentStyleProperties()&&t.forwardFrame();const l=o&&o.easing||a.easing;a.isEmptyStep?t.applyEmptyStep(l):t.setStyles(a.styles,l,e.errors,e.options),e.previousNode=a}visitKeyframes(a,e){const t=e.currentAnimateTimings,o=e.currentTimeline.duration,l=t.duration,n=e.createSubContext().currentTimeline;n.easing=t.easing,a.styles.forEach(i=>{n.forwardTime((i.offset||0)*l),n.setStyles(i.styles,i.easing,e.errors,e.options),n.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(n),e.transformIntoNewTimeline(o+l),e.previousNode=a}visitQuery(a,e){const t=e.currentTimeline.currentTime,o=a.options||{},l=o.delay?Rs(o.delay):0;l&&(6===e.previousNode.type||0==t&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=uC);let c=t;const n=e.invokeQuery(a.selector,a.originalSelector,a.limit,a.includeSelf,!!o.optional,e.errors);e.currentQueryTotal=n.length;let i=null;n.forEach((s,d)=>{e.currentQueryIndex=d;const h=e.createSubContext(a.options,s);l&&h.delayNextStep(l),s===e.element&&(i=h.currentTimeline),zn(this,a.animation,h),h.currentTimeline.applyStylesToKeyframe(),c=Math.max(c,h.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(c),i&&(e.currentTimeline.mergeTimelineCollectedStyles(i),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=a}visitStagger(a,e){const t=e.parentContext,o=e.currentTimeline,l=a.timings,c=Math.abs(l.duration),n=c*(e.currentQueryTotal-1);let i=c*e.currentQueryIndex;switch(l.duration<0?"reverse":l.easing){case"reverse":i=n-i;break;case"full":i=t.currentStaggerTime}const d=e.currentTimeline;i&&d.delayNextStep(i);const h=d.currentTime;zn(this,a.animation,e),e.previousNode=a,t.currentStaggerTime=o.currentTime-h+(o.startTime-t.currentTimeline.startTime)}}const uC={};class tx{constructor(a,e,t,o,l,c,n,i){this._driver=a,this.element=e,this.subInstructions=t,this._enterClassName=o,this._leaveClassName=l,this.errors=c,this.timelines=n,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=uC,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=i||new hC(this._driver,e,0),n.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(a,e){if(!a)return;const t=a;let o=this.options;null!=t.duration&&(o.duration=Rs(t.duration)),null!=t.delay&&(o.delay=Rs(t.delay));const l=t.params;if(l){let c=o.params;c||(c=this.options.params={}),Object.keys(l).forEach(n=>{(!e||!c.hasOwnProperty(n))&&(c[n]=nC(l[n],c,this.errors))})}}_copyOptions(){const a={};if(this.options){const e=this.options.params;if(e){const t=a.params={};Object.keys(e).forEach(o=>{t[o]=e[o]})}}return a}createSubContext(a=null,e,t){const o=e||this.element,l=new tx(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,t||0));return l.previousNode=this.previousNode,l.currentAnimateTimings=this.currentAnimateTimings,l.options=this._copyOptions(),l.updateOptions(a),l.currentQueryIndex=this.currentQueryIndex,l.currentQueryTotal=this.currentQueryTotal,l.parentContext=this,this.subContextCount++,l}transformIntoNewTimeline(a){return this.previousNode=uC,this.currentTimeline=this.currentTimeline.fork(this.element,a),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(a,e,t){const o={duration:e??a.duration,delay:this.currentTimeline.currentTime+(t??0)+a.delay,easing:""},l=new II(this._driver,a.element,a.keyframes,a.preStyleProps,a.postStyleProps,o,a.stretchStartingKeyframe);return this.timelines.push(l),o}incrementTime(a){this.currentTimeline.forwardTime(this.currentTimeline.duration+a)}delayNextStep(a){a>0&&this.currentTimeline.delayNextStep(a)}invokeQuery(a,e,t,o,l,c){let n=[];if(o&&n.push(this.element),a.length>0){a=(a=a.replace(DI,"."+this._enterClassName)).replace(PI,"."+this._leaveClassName);let s=this._driver.query(this.element,a,1!=t);0!==t&&(s=t<0?s.slice(s.length+t,s.length):s.slice(0,t)),n.push(...s)}return!l&&0==n.length&&c.push(function OR(r){return new u.vHH(3014,!1)}()),n}}class hC{constructor(a,e,t,o){this._driver=a,this.element=e,this.startTime=t,this._elementTimelineStylesLookup=o,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),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.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(a){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+a),e&&this.snapshotCurrentStyles()):this.startTime+=a}fork(a,e){return this.applyStylesToKeyframe(),new hC(this._driver,a,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(a){this.applyStylesToKeyframe(),this.duration=a,this._loadKeyframe()}_updateStyle(a,e){this._localTimelineStyles.set(a,e),this._globalTimelineStyles.set(a,e),this._styleSummary.set(a,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(a){a&&this._previousKeyframe.set("easing",a);for(let[e,t]of this._globalTimelineStyles)this._backFill.set(e,t||lr),this._currentKeyframe.set(e,lr);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(a,e,t,o){e&&this._previousKeyframe.set("easing",e);const l=o&&o.params||{},c=function kI(r,a){const e=new Map;let t;return r.forEach(o=>{if("*"===o){t=t||a.keys();for(let l of t)e.set(l,lr)}else Is(o,e)}),e}(a,this._globalTimelineStyles);for(let[n,i]of c){const s=nC(i,l,t);this._pendingStyles.set(n,s),this._localTimelineStyles.has(n)||this._backFill.set(n,this._globalTimelineStyles.get(n)??lr),this._updateStyle(n,s)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((a,e)=>{this._currentKeyframe.set(e,a)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((a,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,a)}))}snapshotCurrentStyles(){for(let[a,e]of this._localTimelineStyles)this._pendingStyles.set(a,e),this._updateStyle(a,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const a=[];for(let e in this._currentKeyframe)a.push(e);return a}mergeTimelineCollectedStyles(a){a._styleSummary.forEach((e,t)=>{const o=this._styleSummary.get(t);(!o||e.time>o.time)&&this._updateStyle(t,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const a=new Set,e=new Set,t=1===this._keyframes.size&&0===this.duration;let o=[];this._keyframes.forEach((n,i)=>{const s=Is(n,new Map,this._backFill);s.forEach((d,h)=>{"!"===d?a.add(h):d===lr&&e.add(h)}),t||s.set("offset",i/this.duration),o.push(s)});const l=a.size?rC(a.values()):[],c=e.size?rC(e.values()):[];if(t){const n=o[0],i=new Map(n);n.set("offset",0),i.set("offset",1),o=[n,i]}return X0(this.element,o,l,c,this.duration,this.startTime,this.easing,!1)}}class II extends hC{constructor(a,e,t,o,l,c,n=!1){super(a,e,c.delay),this.keyframes=t,this.preStyleProps=o,this.postStyleProps=l,this._stretchStartingKeyframe=n,this.timings={duration:c.duration,delay:c.delay,easing:c.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let a=this.keyframes,{delay:e,duration:t,easing:o}=this.timings;if(this._stretchStartingKeyframe&&e){const l=[],c=t+e,n=e/c,i=Is(a[0]);i.set("offset",0),l.push(i);const s=Is(a[0]);s.set("offset",aM(n)),l.push(s);const d=a.length-1;for(let h=1;h<=d;h++){let f=Is(a[h]);const b=f.get("offset");f.set("offset",aM((e+b*t)/c)),l.push(f)}t=c,e=0,o="",a=l}return X0(this.element,a,this.preStyleProps,this.postStyleProps,t,e,o,!0)}}function aM(r,a=3){const e=Math.pow(10,a-1);return Math.round(r*e)/e}class ix{}const VI=new Set(["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"]);class BI extends ix{normalizePropertyName(a,e){return J0(a)}normalizeStyleValue(a,e,t,o){let l="";const c=t.toString().trim();if(VI.has(e)&&0!==t&&"0"!==t)if("number"==typeof t)l="px";else{const n=t.match(/^[+-]?[\d\.]+([a-z]*)$/);n&&0==n[1].length&&o.push(function ER(r,a){return new u.vHH(3005,!1)}())}return c+l}}function oM(r,a,e,t,o,l,c,n,i,s,d,h,f){return{type:0,element:r,triggerName:a,isRemovalTransition:o,fromState:e,fromStyles:l,toState:t,toStyles:c,timelines:n,queriedElements:i,preStyleProps:s,postStyleProps:d,totalTime:h,errors:f}}const nx={};class sM{constructor(a,e,t){this._triggerName=a,this.ast=e,this._stateStyles=t}match(a,e,t,o){return function OI(r,a,e,t,o){return r.some(l=>l(a,e,t,o))}(this.ast.matchers,a,e,t,o)}buildStyles(a,e,t){let o=this._stateStyles.get("*");return void 0!==a&&(o=this._stateStyles.get(a?.toString())||o),o?o.buildStyles(e,t):new Map}build(a,e,t,o,l,c,n,i,s,d){const h=[],f=this.ast.options&&this.ast.options.params||nx,H=this.buildStyles(t,n&&n.params||nx,h),z=i&&i.params||nx,ae=this.buildStyles(o,z,h),ke=new Set,ct=new Map,yt=new Map,zt="void"===o,Gr={params:LI(z,f),delay:this.ast.options?.delay},br=d?[]:ex(a,e,this.ast.animation,l,c,H,ae,Gr,s,h);let cn=0;if(br.forEach(Do=>{cn=Math.max(Do.duration+Do.delay,cn)}),h.length)return oM(e,this._triggerName,t,o,zt,H,ae,[],[],ct,yt,cn,h);br.forEach(Do=>{const Ho=Do.element,MD=Nn(ct,Ho,new Set);Do.preStyleProps.forEach(lc=>MD.add(lc));const yf=Nn(yt,Ho,new Set);Do.postStyleProps.forEach(lc=>yf.add(lc)),Ho!==e&&ke.add(Ho)});const Mo=rC(ke.values());return oM(e,this._triggerName,t,o,zt,H,ae,br,Mo,ct,yt,cn)}}function LI(r,a){const e=uf(a);for(const t in r)r.hasOwnProperty(t)&&null!=r[t]&&(e[t]=r[t]);return e}class FI{constructor(a,e,t){this.styles=a,this.defaultParams=e,this.normalizer=t}buildStyles(a,e){const t=new Map,o=uf(this.defaultParams);return Object.keys(a).forEach(l=>{const c=a[l];null!==c&&(o[l]=c)}),this.styles.styles.forEach(l=>{"string"!=typeof l&&l.forEach((c,n)=>{c&&(c=nC(c,o,e));const i=this.normalizer.normalizePropertyName(n,e);c=this.normalizer.normalizeStyleValue(n,i,c,e),t.set(i,c)})}),t}}class NI{constructor(a,e,t){this.name=a,this.ast=e,this._normalizer=t,this.transitionFactories=[],this.states=new Map,e.states.forEach(o=>{this.states.set(o.name,new FI(o.style,o.options&&o.options.params||{},t))}),lM(this.states,"true","1"),lM(this.states,"false","0"),e.transitions.forEach(o=>{this.transitionFactories.push(new sM(a,o,this.states))}),this.fallbackTransition=function zI(r,a,e){return new sM(r,{type:1,animation:{type:2,steps:[],options:null},matchers:[(c,n)=>!0],options:null,queryCount:0,depCount:0},a)}(a,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(a,e,t,o){return this.transitionFactories.find(c=>c.match(a,e,t,o))||null}matchStyles(a,e,t){return this.fallbackTransition.buildStyles(a,e,t)}}function lM(r,a,e){r.has(a)?r.has(e)||r.set(e,r.get(a)):r.has(e)&&r.set(a,r.get(e))}const UI=new dC;class GI{constructor(a,e,t){this.bodyNode=a,this._driver=e,this._normalizer=t,this._animations=new Map,this._playersById=new Map,this.players=[]}register(a,e){const t=[],l=K0(this._driver,e,t,[]);if(t.length)throw function GR(r){return new u.vHH(3503,!1)}();this._animations.set(a,l)}_buildPlayer(a,e,t){const o=a.element,l=jS(0,this._normalizer,0,a.keyframes,e,t);return this._driver.animate(o,l,a.duration,a.delay,a.easing,[],!0)}create(a,e,t={}){const o=[],l=this._animations.get(a);let c;const n=new Map;if(l?(c=ex(this._driver,e,l,W0,Xb,new Map,new Map,t,UI,o),c.forEach(d=>{const h=Nn(n,d.element,new Map);d.postStyleProps.forEach(f=>h.set(f,null))})):(o.push(function qR(){return new u.vHH(3300,!1)}()),c=[]),o.length)throw function WR(r){return new u.vHH(3504,!1)}();n.forEach((d,h)=>{d.forEach((f,b)=>{d.set(b,this._driver.computeStyle(h,b,lr))})});const s=Ps(c.map(d=>{const h=n.get(d.element);return this._buildPlayer(d,new Map,h)}));return this._playersById.set(a,s),s.onDestroy(()=>this.destroy(a)),this.players.push(s),s}destroy(a){const e=this._getPlayer(a);e.destroy(),this._playersById.delete(a);const t=this.players.indexOf(e);t>=0&&this.players.splice(t,1)}_getPlayer(a){const e=this._playersById.get(a);if(!e)throw function $R(r){return new u.vHH(3301,!1)}();return e}listen(a,e,t,o){const l=z0(e,"","","");return j0(this._getPlayer(a),t,l,o),()=>{}}command(a,e,t,o){if("register"==t)return void this.register(a,o[0]);if("create"==t)return void this.create(a,e,o[0]||{});const l=this._getPlayer(a);switch(t){case"play":l.play();break;case"pause":l.pause();break;case"reset":l.reset();break;case"restart":l.restart();break;case"finish":l.finish();break;case"init":l.init();break;case"setPosition":l.setPosition(parseFloat(o[0]));break;case"destroy":this.destroy(a)}}}const cM="ng-animate-queued",rx="ng-animate-disabled",YI=[],dM={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},JI={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},mr="__ng_removed";class ax{constructor(a,e=""){this.namespaceId=e;const t=a&&a.hasOwnProperty("value");if(this.value=function e1(r){return r??null}(t?a.value:a),t){const l=uf(a);delete l.value,this.options=l}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(a){const e=a.params;if(e){const t=this.options.params;Object.keys(e).forEach(o=>{null==t[o]&&(t[o]=e[o])})}}}const pf="void",ox=new ax(pf);class KI{constructor(a,e,t){this.id=a,this.hostElement=e,this._engine=t,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+a,_r(e,this._hostClassName)}listen(a,e,t,o){if(!this._triggers.has(e))throw function QR(r,a){return new u.vHH(3302,!1)}();if(null==t||0==t.length)throw function YR(r){return new u.vHH(3303,!1)}();if(!function t1(r){return"start"==r||"done"==r}(t))throw function JR(r,a){return new u.vHH(3400,!1)}();const l=Nn(this._elementListeners,a,[]),c={name:e,phase:t,callback:o};l.push(c);const n=Nn(this._engine.statesByElement,a,new Map);return n.has(e)||(_r(a,eC),_r(a,eC+"-"+e),n.set(e,ox)),()=>{this._engine.afterFlush(()=>{const i=l.indexOf(c);i>=0&&l.splice(i,1),this._triggers.has(e)||n.delete(e)})}}register(a,e){return!this._triggers.has(a)&&(this._triggers.set(a,e),!0)}_getTrigger(a){const e=this._triggers.get(a);if(!e)throw function KR(r){return new u.vHH(3401,!1)}();return e}trigger(a,e,t,o=!0){const l=this._getTrigger(e),c=new sx(this.id,e,a);let n=this._engine.statesByElement.get(a);n||(_r(a,eC),_r(a,eC+"-"+e),this._engine.statesByElement.set(a,n=new Map));let i=n.get(e);const s=new ax(t,this.id);if(!(t&&t.hasOwnProperty("value"))&&i&&s.absorbOptions(i.options),n.set(e,s),i||(i=ox),s.value!==pf&&i.value===s.value){if(!function a1(r,a){const e=Object.keys(r),t=Object.keys(a);if(e.length!=t.length)return!1;for(let o=0;o{ac(a,ae),Ra(a,ke)})}return}const f=Nn(this._engine.playersByElement,a,[]);f.forEach(z=>{z.namespaceId==this.id&&z.triggerName==e&&z.queued&&z.destroy()});let b=l.matchTransition(i.value,s.value,a,s.params),H=!1;if(!b){if(!o)return;b=l.fallbackTransition,H=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:a,triggerName:e,transition:b,fromState:i,toState:s,player:c,isFallbackTransition:H}),H||(_r(a,cM),c.onStart(()=>{su(a,cM)})),c.onDone(()=>{let z=this.players.indexOf(c);z>=0&&this.players.splice(z,1);const ae=this._engine.playersByElement.get(a);if(ae){let ke=ae.indexOf(c);ke>=0&&ae.splice(ke,1)}}),this.players.push(c),f.push(c),c}deregister(a){this._triggers.delete(a),this._engine.statesByElement.forEach(e=>e.delete(a)),this._elementListeners.forEach((e,t)=>{this._elementListeners.set(t,e.filter(o=>o.name!=a))})}clearElementCache(a){this._engine.statesByElement.delete(a),this._elementListeners.delete(a);const e=this._engine.playersByElement.get(a);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(a))}_signalRemovalForInnerTriggers(a,e){const t=this._engine.driver.query(a,tC,!0);t.forEach(o=>{if(o[mr])return;const l=this._engine.fetchNamespacesByElement(o);l.size?l.forEach(c=>c.triggerLeaveAnimation(o,e,!1,!0)):this.clearElementCache(o)}),this._engine.afterFlushAnimationsDone(()=>t.forEach(o=>this.clearElementCache(o)))}triggerLeaveAnimation(a,e,t,o){const l=this._engine.statesByElement.get(a),c=new Map;if(l){const n=[];if(l.forEach((i,s)=>{if(c.set(s,i.value),this._triggers.has(s)){const d=this.trigger(a,s,pf,o);d&&n.push(d)}}),n.length)return this._engine.markElementAsRemoved(this.id,a,!0,e,c),t&&Ps(n).onDone(()=>this._engine.processLeaveNode(a)),!0}return!1}prepareLeaveAnimationListeners(a){const e=this._elementListeners.get(a),t=this._engine.statesByElement.get(a);if(e&&t){const o=new Set;e.forEach(l=>{const c=l.name;if(o.has(c))return;o.add(c);const i=this._triggers.get(c).fallbackTransition,s=t.get(c)||ox,d=new ax(pf),h=new sx(this.id,c,a);this._engine.totalQueuedPlayers++,this._queue.push({element:a,triggerName:c,transition:i,fromState:s,toState:d,player:h,isFallbackTransition:!0})})}}removeNode(a,e){const t=this._engine;if(a.childElementCount&&this._signalRemovalForInnerTriggers(a,e),this.triggerLeaveAnimation(a,e,!0))return;let o=!1;if(t.totalAnimations){const l=t.players.length?t.playersByQueriedElement.get(a):[];if(l&&l.length)o=!0;else{let c=a;for(;c=c.parentNode;)if(t.statesByElement.get(c)){o=!0;break}}}if(this.prepareLeaveAnimationListeners(a),o)t.markElementAsRemoved(this.id,a,!1,e);else{const l=a[mr];(!l||l===dM)&&(t.afterFlush(()=>this.clearElementCache(a)),t.destroyInnerAnimations(a),t._onRemovalComplete(a,e))}}insertNode(a,e){_r(a,this._hostClassName)}drainQueuedTransitions(a){const e=[];return this._queue.forEach(t=>{const o=t.player;if(o.destroyed)return;const l=t.element,c=this._elementListeners.get(l);c&&c.forEach(n=>{if(n.name==t.triggerName){const i=z0(l,t.triggerName,t.fromState.value,t.toState.value);i._data=a,j0(t.player,n.phase,i,n.callback)}}),o.markedForDestroy?this._engine.afterFlush(()=>{o.destroy()}):e.push(t)}),this._queue=[],e.sort((t,o)=>{const l=t.transition.ast.depCount,c=o.transition.ast.depCount;return 0==l||0==c?l-c:this._engine.driver.containsElement(t.element,o.element)?1:-1})}destroy(a){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,a)}elementContainsData(a){let e=!1;return this._elementListeners.has(a)&&(e=!0),e=!!this._queue.find(t=>t.element===a)||e,e}}class ZI{constructor(a,e,t){this.bodyNode=a,this.driver=e,this._normalizer=t,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=(o,l)=>{}}_onRemovalComplete(a,e){this.onRemovalComplete(a,e)}get queuedPlayers(){const a=[];return this._namespaceList.forEach(e=>{e.players.forEach(t=>{t.queued&&a.push(t)})}),a}createNamespace(a,e){const t=new KI(a,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(t,e):(this.newHostElements.set(e,t),this.collectEnterElement(e)),this._namespaceLookup[a]=t}_balanceNamespaceList(a,e){const t=this._namespaceList,o=this.namespacesByHostElement;if(t.length-1>=0){let c=!1,n=this.driver.getParentElement(e);for(;n;){const i=o.get(n);if(i){const s=t.indexOf(i);t.splice(s+1,0,a),c=!0;break}n=this.driver.getParentElement(n)}c||t.unshift(a)}else t.push(a);return o.set(e,a),a}register(a,e){let t=this._namespaceLookup[a];return t||(t=this.createNamespace(a,e)),t}registerTrigger(a,e,t){let o=this._namespaceLookup[a];o&&o.register(e,t)&&this.totalAnimations++}destroy(a,e){if(!a)return;const t=this._fetchNamespace(a);this.afterFlush(()=>{this.namespacesByHostElement.delete(t.hostElement),delete this._namespaceLookup[a];const o=this._namespaceList.indexOf(t);o>=0&&this._namespaceList.splice(o,1)}),this.afterFlushAnimationsDone(()=>t.destroy(e))}_fetchNamespace(a){return this._namespaceLookup[a]}fetchNamespacesByElement(a){const e=new Set,t=this.statesByElement.get(a);if(t)for(let o of t.values())if(o.namespaceId){const l=this._fetchNamespace(o.namespaceId);l&&e.add(l)}return e}trigger(a,e,t,o){if(pC(e)){const l=this._fetchNamespace(a);if(l)return l.trigger(e,t,o),!0}return!1}insertNode(a,e,t,o){if(!pC(e))return;const l=e[mr];if(l&&l.setForRemoval){l.setForRemoval=!1,l.setForMove=!0;const c=this.collectedLeaveElements.indexOf(e);c>=0&&this.collectedLeaveElements.splice(c,1)}if(a){const c=this._fetchNamespace(a);c&&c.insertNode(e,t)}o&&this.collectEnterElement(e)}collectEnterElement(a){this.collectedEnterElements.push(a)}markElementAsDisabled(a,e){e?this.disabledNodes.has(a)||(this.disabledNodes.add(a),_r(a,rx)):this.disabledNodes.has(a)&&(this.disabledNodes.delete(a),su(a,rx))}removeNode(a,e,t,o){if(pC(e)){const l=a?this._fetchNamespace(a):null;if(l?l.removeNode(e,o):this.markElementAsRemoved(a,e,!1,o),t){const c=this.namespacesByHostElement.get(e);c&&c.id!==a&&c.removeNode(e,o)}}else this._onRemovalComplete(e,o)}markElementAsRemoved(a,e,t,o,l){this.collectedLeaveElements.push(e),e[mr]={namespaceId:a,setForRemoval:o,hasAnimation:t,removedBeforeQueried:!1,previousTriggersValues:l}}listen(a,e,t,o,l){return pC(e)?this._fetchNamespace(a).listen(e,t,o,l):()=>{}}_buildInstruction(a,e,t,o,l){return a.transition.build(this.driver,a.element,a.fromState.value,a.toState.value,t,o,a.fromState.options,a.toState.options,e,l)}destroyInnerAnimations(a){let e=this.driver.query(a,tC,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(a,$0,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(a){const e=this.playersByElement.get(a);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(a){const e=this.playersByQueriedElement.get(a);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(a=>{if(this.players.length)return Ps(this.players).onDone(()=>a());a()})}processLeaveNode(a){const e=a[mr];if(e&&e.setForRemoval){if(a[mr]=dM,e.namespaceId){this.destroyInnerAnimations(a);const t=this._fetchNamespace(e.namespaceId);t&&t.clearElementCache(a)}this._onRemovalComplete(a,e.setForRemoval)}a.classList?.contains(rx)&&this.markElementAsDisabled(a,!1),this.driver.query(a,".ng-animate-disabled",!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(a=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,o)=>this._balanceNamespaceList(t,o)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let t=0;tt()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?Ps(e).onDone(()=>{t.forEach(o=>o())}):t.forEach(o=>o())}}reportError(a){throw function ZR(r){return new u.vHH(3402,!1)}()}_flushAnimations(a,e){const t=new dC,o=[],l=new Map,c=[],n=new Map,i=new Map,s=new Map,d=new Set;this.disabledNodes.forEach(Ge=>{d.add(Ge);const Ze=this.driver.query(Ge,".ng-animate-queued",!0);for(let nt=0;nt{const nt=W0+z++;H.set(Ze,nt),Ge.forEach(xt=>_r(xt,nt))});const ae=[],ke=new Set,ct=new Set;for(let Ge=0;Geke.add(xt)):ct.add(Ze))}const yt=new Map,zt=pM(f,Array.from(ke));zt.forEach((Ge,Ze)=>{const nt=Xb+z++;yt.set(Ze,nt),Ge.forEach(xt=>_r(xt,nt))}),a.push(()=>{b.forEach((Ge,Ze)=>{const nt=H.get(Ze);Ge.forEach(xt=>su(xt,nt))}),zt.forEach((Ge,Ze)=>{const nt=yt.get(Ze);Ge.forEach(xt=>su(xt,nt))}),ae.forEach(Ge=>{this.processLeaveNode(Ge)})});const Gr=[],br=[];for(let Ge=this._namespaceList.length-1;Ge>=0;Ge--)this._namespaceList[Ge].drainQueuedTransitions(e).forEach(nt=>{const xt=nt.player,Li=nt.element;if(Gr.push(xt),this.collectedEnterElements.length){const Zi=Li[mr];if(Zi&&Zi.setForMove){if(Zi.previousTriggersValues&&Zi.previousTriggersValues.has(nt.triggerName)){const cc=Zi.previousTriggersValues.get(nt.triggerName),Cr=this.statesByElement.get(nt.element);if(Cr&&Cr.has(nt.triggerName)){const BC=Cr.get(nt.triggerName);BC.value=cc,Cr.set(nt.triggerName,BC)}}return void xt.destroy()}}const ka=!h||!this.driver.containsElement(h,Li),Un=yt.get(Li),Vs=H.get(Li),ai=this._buildInstruction(nt,t,Vs,Un,ka);if(ai.errors&&ai.errors.length)return void br.push(ai);if(ka)return xt.onStart(()=>ac(Li,ai.fromStyles)),xt.onDestroy(()=>Ra(Li,ai.toStyles)),void o.push(xt);if(nt.isFallbackTransition)return xt.onStart(()=>ac(Li,ai.fromStyles)),xt.onDestroy(()=>Ra(Li,ai.toStyles)),void o.push(xt);const PD=[];ai.timelines.forEach(Zi=>{Zi.stretchStartingKeyframe=!0,this.disabledNodes.has(Zi.element)||PD.push(Zi)}),ai.timelines=PD,t.append(Li,ai.timelines),c.push({instruction:ai,player:xt,element:Li}),ai.queriedElements.forEach(Zi=>Nn(n,Zi,[]).push(xt)),ai.preStyleProps.forEach((Zi,cc)=>{if(Zi.size){let Cr=i.get(cc);Cr||i.set(cc,Cr=new Set),Zi.forEach((BC,Bx)=>Cr.add(Bx))}}),ai.postStyleProps.forEach((Zi,cc)=>{let Cr=s.get(cc);Cr||s.set(cc,Cr=new Set),Zi.forEach((BC,Bx)=>Cr.add(Bx))})});if(br.length){const Ge=[];br.forEach(Ze=>{Ge.push(function XR(r,a){return new u.vHH(3505,!1)}())}),Gr.forEach(Ze=>Ze.destroy()),this.reportError(Ge)}const cn=new Map,Mo=new Map;c.forEach(Ge=>{const Ze=Ge.element;t.has(Ze)&&(Mo.set(Ze,Ze),this._beforeAnimationBuild(Ge.player.namespaceId,Ge.instruction,cn))}),o.forEach(Ge=>{const Ze=Ge.element;this._getPreviousPlayers(Ze,!1,Ge.namespaceId,Ge.triggerName,null).forEach(xt=>{Nn(cn,Ze,[]).push(xt),xt.destroy()})});const Do=ae.filter(Ge=>gM(Ge,i,s)),Ho=new Map;hM(Ho,this.driver,ct,s,lr).forEach(Ge=>{gM(Ge,i,s)&&Do.push(Ge)});const yf=new Map;b.forEach((Ge,Ze)=>{hM(yf,this.driver,new Set(Ge),i,"!")}),Do.forEach(Ge=>{const Ze=Ho.get(Ge),nt=yf.get(Ge);Ho.set(Ge,new Map([...Array.from(Ze?.entries()??[]),...Array.from(nt?.entries()??[])]))});const lc=[],DD=[],HD={};c.forEach(Ge=>{const{element:Ze,player:nt,instruction:xt}=Ge;if(t.has(Ze)){if(d.has(Ze))return nt.onDestroy(()=>Ra(Ze,xt.toStyles)),nt.disabled=!0,nt.overrideTotalTime(xt.totalTime),void o.push(nt);let Li=HD;if(Mo.size>1){let Un=Ze;const Vs=[];for(;Un=Un.parentNode;){const ai=Mo.get(Un);if(ai){Li=ai;break}Vs.push(Un)}Vs.forEach(ai=>Mo.set(ai,Li))}const ka=this._buildAnimation(nt.namespaceId,xt,cn,l,yf,Ho);if(nt.setRealPlayer(ka),Li===HD)lc.push(nt);else{const Un=this.playersByElement.get(Li);Un&&Un.length&&(nt.parentPlayer=Ps(Un)),o.push(nt)}}else ac(Ze,xt.fromStyles),nt.onDestroy(()=>Ra(Ze,xt.toStyles)),DD.push(nt),d.has(Ze)&&o.push(nt)}),DD.forEach(Ge=>{const Ze=l.get(Ge.element);if(Ze&&Ze.length){const nt=Ps(Ze);Ge.setRealPlayer(nt)}}),o.forEach(Ge=>{Ge.parentPlayer?Ge.syncPlayerEvents(Ge.parentPlayer):Ge.destroy()});for(let Ge=0;Ge!ka.destroyed);Li.length?n1(this,Ze,Li):this.processLeaveNode(Ze)}return ae.length=0,lc.forEach(Ge=>{this.players.push(Ge),Ge.onDone(()=>{Ge.destroy();const Ze=this.players.indexOf(Ge);this.players.splice(Ze,1)}),Ge.play()}),lc}elementContainsData(a,e){let t=!1;const o=e[mr];return o&&o.setForRemoval&&(t=!0),this.playersByElement.has(e)&&(t=!0),this.playersByQueriedElement.has(e)&&(t=!0),this.statesByElement.has(e)&&(t=!0),this._fetchNamespace(a).elementContainsData(e)||t}afterFlush(a){this._flushFns.push(a)}afterFlushAnimationsDone(a){this._whenQuietFns.push(a)}_getPreviousPlayers(a,e,t,o,l){let c=[];if(e){const n=this.playersByQueriedElement.get(a);n&&(c=n)}else{const n=this.playersByElement.get(a);if(n){const i=!l||l==pf;n.forEach(s=>{s.queued||!i&&s.triggerName!=o||c.push(s)})}}return(t||o)&&(c=c.filter(n=>!(t&&t!=n.namespaceId||o&&o!=n.triggerName))),c}_beforeAnimationBuild(a,e,t){const l=e.element,c=e.isRemovalTransition?void 0:a,n=e.isRemovalTransition?void 0:e.triggerName;for(const i of e.timelines){const s=i.element,d=s!==l,h=Nn(t,s,[]);this._getPreviousPlayers(s,d,c,n,e.toState).forEach(b=>{const H=b.getRealPlayer();H.beforeDestroy&&H.beforeDestroy(),b.destroy(),h.push(b)})}ac(l,e.fromStyles)}_buildAnimation(a,e,t,o,l,c){const n=e.triggerName,i=e.element,s=[],d=new Set,h=new Set,f=e.timelines.map(H=>{const z=H.element;d.add(z);const ae=z[mr];if(ae&&ae.removedBeforeQueried)return new ho(H.duration,H.delay);const ke=z!==i,ct=function r1(r){const a=[];return fM(r,a),a}((t.get(z)||YI).map(cn=>cn.getRealPlayer())).filter(cn=>!!cn.element&&cn.element===z),yt=l.get(z),zt=c.get(z),Gr=jS(0,this._normalizer,0,H.keyframes,yt,zt),br=this._buildPlayer(H,Gr,ct);if(H.subTimeline&&o&&h.add(z),ke){const cn=new sx(a,n,z);cn.setRealPlayer(br),s.push(cn)}return br});s.forEach(H=>{Nn(this.playersByQueriedElement,H.element,[]).push(H),H.onDone(()=>function XI(r,a,e){let t=r.get(a);if(t){if(t.length){const o=t.indexOf(e);t.splice(o,1)}0==t.length&&r.delete(a)}return t}(this.playersByQueriedElement,H.element,H))}),d.forEach(H=>_r(H,YS));const b=Ps(f);return b.onDestroy(()=>{d.forEach(H=>su(H,YS)),Ra(i,e.toStyles)}),h.forEach(H=>{Nn(o,H,[]).push(b)}),b}_buildPlayer(a,e,t){return e.length>0?this.driver.animate(a.element,e,a.duration,a.delay,a.easing,t):new ho(a.duration,a.delay)}}class sx{constructor(a,e,t){this.namespaceId=a,this.triggerName=e,this.element=t,this._player=new ho,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(a){this._containsRealPlayer||(this._player=a,this._queuedCallbacks.forEach((e,t)=>{e.forEach(o=>j0(a,t,void 0,o))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(a.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(a){this.totalTime=a}syncPlayerEvents(a){const e=this._player;e.triggerCallback&&a.onStart(()=>e.triggerCallback("start")),a.onDone(()=>this.finish()),a.onDestroy(()=>this.destroy())}_queueEvent(a,e){Nn(this._queuedCallbacks,a,[]).push(e)}onDone(a){this.queued&&this._queueEvent("done",a),this._player.onDone(a)}onStart(a){this.queued&&this._queueEvent("start",a),this._player.onStart(a)}onDestroy(a){this.queued&&this._queueEvent("destroy",a),this._player.onDestroy(a)}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(a){this.queued||this._player.setPosition(a)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(a){const e=this._player;e.triggerCallback&&e.triggerCallback(a)}}function pC(r){return r&&1===r.nodeType}function uM(r,a){const e=r.style.display;return r.style.display=a??"none",e}function hM(r,a,e,t,o){const l=[];e.forEach(i=>l.push(uM(i)));const c=[];t.forEach((i,s)=>{const d=new Map;i.forEach(h=>{const f=a.computeStyle(s,h,o);d.set(h,f),(!f||0==f.length)&&(s[mr]=JI,c.push(s))}),r.set(s,d)});let n=0;return e.forEach(i=>uM(i,l[n++])),c}function pM(r,a){const e=new Map;if(r.forEach(n=>e.set(n,[])),0==a.length)return e;const o=new Set(a),l=new Map;function c(n){if(!n)return 1;let i=l.get(n);if(i)return i;const s=n.parentNode;return i=e.has(s)?s:o.has(s)?1:c(s),l.set(n,i),i}return a.forEach(n=>{const i=c(n);1!==i&&e.get(i).push(n)}),e}function _r(r,a){r.classList?.add(a)}function su(r,a){r.classList?.remove(a)}function n1(r,a,e){Ps(e).onDone(()=>r.processLeaveNode(a))}function fM(r,a){for(let e=0;eo.add(l)):a.set(r,t),e.delete(r),!0}class fC{constructor(a,e,t){this.bodyNode=a,this._driver=e,this._normalizer=t,this._triggerCache={},this.onRemovalComplete=(o,l)=>{},this._transitionEngine=new ZI(a,e,t),this._timelineEngine=new GI(a,e,t),this._transitionEngine.onRemovalComplete=(o,l)=>this.onRemovalComplete(o,l)}registerTrigger(a,e,t,o,l){const c=a+"-"+o;let n=this._triggerCache[c];if(!n){const i=[],d=K0(this._driver,l,i,[]);if(i.length)throw function zR(r,a){return new u.vHH(3404,!1)}();n=function jI(r,a,e){return new NI(r,a,e)}(o,d,this._normalizer),this._triggerCache[c]=n}this._transitionEngine.registerTrigger(e,o,n)}register(a,e){this._transitionEngine.register(a,e)}destroy(a,e){this._transitionEngine.destroy(a,e)}onInsert(a,e,t,o){this._transitionEngine.insertNode(a,e,t,o)}onRemove(a,e,t,o){this._transitionEngine.removeNode(a,e,o||!1,t)}disableAnimations(a,e){this._transitionEngine.markElementAsDisabled(a,e)}process(a,e,t,o){if("@"==t.charAt(0)){const[l,c]=NS(t);this._timelineEngine.command(l,e,c,o)}else this._transitionEngine.trigger(a,e,t,o)}listen(a,e,t,o,l){if("@"==t.charAt(0)){const[c,n]=NS(t);return this._timelineEngine.listen(c,e,n,l)}return this._transitionEngine.listen(a,e,t,o,l)}flush(a=-1){this._transitionEngine.flush(a)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let s1=(()=>{class r{constructor(e,t,o){this._element=e,this._startStyles=t,this._endStyles=o,this._state=0;let l=r.initialStylesByElement.get(e);l||r.initialStylesByElement.set(e,l=new Map),this._initialStyles=l}start(){this._state<1&&(this._startStyles&&Ra(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Ra(this._element,this._initialStyles),this._endStyles&&(Ra(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(r.initialStylesByElement.delete(this._element),this._startStyles&&(ac(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ac(this._element,this._endStyles),this._endStyles=null),Ra(this._element,this._initialStyles),this._state=3)}}return r.initialStylesByElement=new WeakMap,r})();function lx(r){let a=null;return r.forEach((e,t)=>{(function l1(r){return"display"===r||"position"===r})(t)&&(a=a||new Map,a.set(t,e))}),a}class mM{constructor(a,e,t,o){this.element=a,this.keyframes=e,this.options=t,this._specialStyles=o,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=t.duration,this._delay=t.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(a=>a()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const a=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,a,this.options),this._finalKeyframe=a.length?a[a.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(a){const e=[];return a.forEach(t=>{e.push(Object.fromEntries(t))}),e}_triggerWebAnimation(a,e,t){return a.animate(this._convertKeyframesToObject(e),t)}onStart(a){this._originalOnStartFns.push(a),this._onStartFns.push(a)}onDone(a){this._originalOnDoneFns.push(a),this._onDoneFns.push(a)}onDestroy(a){this._onDestroyFns.push(a)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(a=>a()),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,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_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(a=>a()),this._onDestroyFns=[])}setPosition(a){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=a*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const a=new Map;this.hasStarted()&&this._finalKeyframe.forEach((t,o)=>{"offset"!==o&&a.set(o,this._finished?t:tM(this.element,o))}),this.currentSnapshot=a}triggerCallback(a){const e="start"===a?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class c1{validateStyleProperty(a){return!0}validateAnimatableStyleProperty(a){return!0}matchesElement(a,e){return!1}containsElement(a,e){return qS(a,e)}getParentElement(a){return G0(a)}query(a,e,t){return WS(a,e,t)}computeStyle(a,e,t){return window.getComputedStyle(a)[e]}animate(a,e,t,o,l,c=[]){const i={duration:t,delay:o,fill:0==o?"both":"forwards"};l&&(i.easing=l);const s=new Map,d=c.filter(b=>b instanceof mM);(function hI(r,a){return 0===r||0===a})(t,o)&&d.forEach(b=>{b.currentSnapshot.forEach((H,z)=>s.set(z,H))});let h=function lI(r){return r.length?r[0]instanceof Map?r:r.map(a=>JS(a)):[]}(e).map(b=>Is(b));h=function pI(r,a,e){if(e.size&&a.length){let t=a[0],o=[];if(e.forEach((l,c)=>{t.has(c)||o.push(c),t.set(c,l)}),o.length)for(let l=1;lc.set(n,tM(r,n)))}}return a}(a,h,s);const f=function o1(r,a){let e=null,t=null;return Array.isArray(a)&&a.length?(e=lx(a[0]),a.length>1&&(t=lx(a[a.length-1]))):a instanceof Map&&(e=lx(a)),e||t?new s1(r,e,t):null}(a,h);return new mM(a,h,i,f)}}let d1=(()=>{class r extends Vl{constructor(e,t){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(t.body,{id:"0",encapsulation:u.ifc.None,styles:[],data:{animation:[]}})}build(e){const t=this._nextAnimationId.toString();this._nextAnimationId++;const o=Array.isArray(e)?bd(e):e;return _M(this._renderer,null,t,"register",[o]),new u1(t,this._renderer)}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(u.FYo),u.LFG(T.K0))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac}),r})();class u1 extends class qh{}{constructor(a,e){super(),this._id=a,this._renderer=e}create(a,e){return new h1(this._id,a,e||{},this._renderer)}}class h1{constructor(a,e,t,o){this.id=a,this.element=e,this._renderer=o,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",t)}_listen(a,e){return this._renderer.listen(this.element,`@@${this.id}:${a}`,e)}_command(a,...e){return _M(this._renderer,this.element,this.id,a,e)}onDone(a){this._listen("done",a)}onStart(a){this._listen("start",a)}onDestroy(a){this._listen("destroy",a)}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"),this._started=!1}setPosition(a){this._command("setPosition",a)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function _M(r,a,e,t,o){return r.setProperty(a,`@@${e}:${t}`,o)}const bM="@.disabled";let p1=(()=>{class r{constructor(e,t,o){this.delegate=e,this.engine=t,this._zone=o,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),t.onRemovalComplete=(l,c)=>{const n=c?.parentNode(l);n&&c.removeChild(n,l)}}createRenderer(e,t){const l=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){let d=this._rendererCache.get(l);return d||(d=new CM("",l,this.engine),this._rendererCache.set(l,d)),d}const c=t.id,n=t.id+"-"+this._currentId;this._currentId++,this.engine.register(n,e);const i=d=>{Array.isArray(d)?d.forEach(i):this.engine.registerTrigger(c,n,e,d.name,d)};return t.data.animation.forEach(i),new f1(this,n,l,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,o){e>=0&&et(o)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(l=>{const[c,n]=l;c(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,o]))}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 r.\u0275fac=function(e){return new(e||r)(u.LFG(u.FYo),u.LFG(fC),u.LFG(u.R0b))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac}),r})();class CM{constructor(a,e,t){this.namespaceId=a,this.delegate=e,this.engine=t,this.destroyNode=this.delegate.destroyNode?o=>e.destroyNode(o):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(a,e){return this.delegate.createElement(a,e)}createComment(a){return this.delegate.createComment(a)}createText(a){return this.delegate.createText(a)}appendChild(a,e){this.delegate.appendChild(a,e),this.engine.onInsert(this.namespaceId,e,a,!1)}insertBefore(a,e,t,o=!0){this.delegate.insertBefore(a,e,t),this.engine.onInsert(this.namespaceId,e,a,o)}removeChild(a,e,t){this.engine.onRemove(this.namespaceId,e,this.delegate,t)}selectRootElement(a,e){return this.delegate.selectRootElement(a,e)}parentNode(a){return this.delegate.parentNode(a)}nextSibling(a){return this.delegate.nextSibling(a)}setAttribute(a,e,t,o){this.delegate.setAttribute(a,e,t,o)}removeAttribute(a,e,t){this.delegate.removeAttribute(a,e,t)}addClass(a,e){this.delegate.addClass(a,e)}removeClass(a,e){this.delegate.removeClass(a,e)}setStyle(a,e,t,o){this.delegate.setStyle(a,e,t,o)}removeStyle(a,e,t){this.delegate.removeStyle(a,e,t)}setProperty(a,e,t){"@"==e.charAt(0)&&e==bM?this.disableAnimations(a,!!t):this.delegate.setProperty(a,e,t)}setValue(a,e){this.delegate.setValue(a,e)}listen(a,e,t){return this.delegate.listen(a,e,t)}disableAnimations(a,e){this.engine.disableAnimations(a,e)}}class f1 extends CM{constructor(a,e,t,o){super(e,t,o),this.factory=a,this.namespaceId=e}setProperty(a,e,t){"@"==e.charAt(0)?"."==e.charAt(1)&&e==bM?this.disableAnimations(a,t=void 0===t||!!t):this.engine.process(this.namespaceId,a,e.slice(1),t):this.delegate.setProperty(a,e,t)}listen(a,e,t){if("@"==e.charAt(0)){const o=function g1(r){switch(r){case"body":return document.body;case"document":return document;case"window":return window;default:return r}}(a);let l=e.slice(1),c="";return"@"!=l.charAt(0)&&([l,c]=function m1(r){const a=r.indexOf(".");return[r.substring(0,a),r.slice(a+1)]}(l)),this.engine.listen(this.namespaceId,o,l,c,n=>{this.factory.scheduleListenerCallback(n._data||-1,t,n)})}return this.delegate.listen(a,e,t)}}const yM=[{provide:Vl,useClass:d1},{provide:ix,useFactory:function b1(){return new BI}},{provide:fC,useClass:(()=>{class r extends fC{constructor(e,t,o,l){super(e.body,t,o)}ngOnDestroy(){this.flush()}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(T.K0),u.LFG(q0),u.LFG(ix),u.LFG(u.z2F))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac}),r})()},{provide:u.FYo,useFactory:function C1(r,a,e){return new p1(r,a,e)},deps:[ue,fC,u.R0b]}],cx=[{provide:q0,useFactory:()=>new c1},{provide:u.QbO,useValue:"BrowserAnimations"},...yM],wM=[{provide:q0,useClass:$S},{provide:u.QbO,useValue:"NoopAnimations"},...yM];let y1=(()=>{class r{static withConfig(e){return{ngModule:r,providers:e.disableAnimations?wM:cx}}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({providers:cx,imports:[Oa]}),r})(),w1=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({imports:[T.ez,Yl,Rn,ys]}),r})(),xM=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({}),r})(),mC=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({imports:[hi,qe,es,xM,qe,xM]}),r})(),Q1=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({imports:[Tl]}),r})(),EC=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({imports:[Q1,qe,qe]}),r})(),yx=(()=>{class r{constructor(){this.changes=new De.x}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const pk={provide:yx,deps:[[new u.FiY,new u.tp0,yx]],useFactory:function hk(r){return r||new yx}};let wx=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({providers:[pk],imports:[T.ez,qe]}),r})();const LM=new u.OlP("mat-chips-default-options");let Ax=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({providers:[sd,{provide:LM,useValue:{separatorKeyCodes:[13]}}],imports:[qe]}),r})();function xx(r,a,e){for(let t in a)if(a.hasOwnProperty(t)){const o=a[t];o?r.setProperty(t,o,e?.has(t)?"important":""):r.removeProperty(t)}return r}function uu(r,a){const e=a?"":"none";xx(r.style,{"touch-action":a?"":"none","-webkit-user-drag":a?"":"none","-webkit-tap-highlight-color":a?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function FM(r,a,e){xx(r.style,{position:a?"":"fixed",top:a?"":"0",opacity:a?"":"0",left:a?"":"-999em"},e)}function SC(r,a){return a&&"none"!=a?r+" "+a:r}function jM(r){const a=r.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(r)*a}function Tx(r,a){return r.getPropertyValue(a).split(",").map(t=>t.trim())}function Ex(r){const a=r.getBoundingClientRect();return{top:a.top,right:a.right,bottom:a.bottom,left:a.left,width:a.width,height:a.height,x:a.x,y:a.y}}function Sx(r,a,e){const{top:t,bottom:o,left:l,right:c}=r;return e>=t&&e<=o&&a>=l&&a<=c}function mf(r,a,e){r.top+=a,r.bottom=r.top+r.height,r.left+=e,r.right=r.left+r.width}function NM(r,a,e,t){const{top:o,right:l,bottom:c,left:n,width:i,height:s}=r,d=i*a,h=s*a;return t>o-h&&tn-d&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:Ex(e)})})}handleScroll(a){const e=Ei(a),t=this.positions.get(e);if(!t)return null;const o=t.scrollPosition;let l,c;if(e===this._document){const s=this.getViewportScrollPosition();l=s.top,c=s.left}else l=e.scrollTop,c=e.scrollLeft;const n=o.top-l,i=o.left-c;return this.positions.forEach((s,d)=>{s.clientRect&&e!==d&&e.contains(d)&&mf(s.clientRect,n,i)}),o.top=l,o.left=c,{top:n,left:i}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function UM(r){const a=r.cloneNode(!0),e=a.querySelectorAll("[id]"),t=r.nodeName.toLowerCase();a.removeAttribute("id");for(let o=0;o{if(this.beforeStarted.next(),this._handles.length){const i=this._getTargetHandle(n);i&&!this._disabledHandles.has(i)&&!this.disabled&&this._initializeDragSequence(i,n)}else this.disabled||this._initializeDragSequence(this._rootElement,n)},this._pointerMove=n=>{const i=this._getPointerPositionOnPage(n);if(!this._hasStartedDragging){if(Math.abs(i.x-this._pickupPositionOnPage.x)+Math.abs(i.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const b=Date.now()>=this._dragStartTime+this._getDragStartDelay(n),H=this._dropContainer;if(!b)return void this._endDragSequence(n);(!H||!H.isDragging()&&!H.isReceiving())&&(n.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(n)))}return}n.preventDefault();const s=this._getConstrainedPointerPosition(i);if(this._hasMoved=!0,this._lastKnownPointerPosition=i,this._updatePointerDirectionDelta(s),this._dropContainer)this._updateActiveDropContainer(s,i);else{const d=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,h=this._activeTransform;h.x=s.x-d.x+this._passiveTransform.x,h.y=s.y-d.y+this._passiveTransform.y,this._applyRootElementTransform(h.x,h.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:s,event:n,distance:this._getDragDistance(s),delta:this._pointerDirectionDelta})})},this._pointerUp=n=>{this._endDragSequence(n)},this._nativeDragStart=n=>{if(this._handles.length){const i=this._getTargetHandle(n);i&&!this._disabledHandles.has(i)&&!this.disabled&&n.preventDefault()}else this.disabled||n.preventDefault()},this.withRootElement(a).withParent(e.parentDragRef||null),this._parentPositions=new zM(t),c.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(a){const e=tt(a);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(t=>uu(t,e)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(a){this._handles=a.map(t=>ri(t)),this._handles.forEach(t=>uu(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(a){return this._previewTemplate=a,this}withPlaceholderTemplate(a){return this._placeholderTemplate=a,this}withRootElement(a){const e=ri(a);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,MC),e.addEventListener("touchstart",this._pointerDown,$M),e.addEventListener("dragstart",this._nativeDragStart,MC)}),this._initialTransform=void 0,this._rootElement=e),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(a){return this._boundaryElement=a?ri(a):null,this._resizeSubscription.unsubscribe(),a&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(a){return this._parentDragRef=a,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),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=this._parentDragRef=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(a){!this._disabledHandles.has(a)&&this._handles.indexOf(a)>-1&&(this._disabledHandles.add(a),uu(a,!0))}enableHandle(a){this._disabledHandles.has(a)&&(this._disabledHandles.delete(a),uu(a,this.disabled))}withDirection(a){return this._direction=a,this}_withDropContainer(a){this._dropContainer=a}getFreeDragPosition(){const a=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:a.x,y:a.y}}setFreeDragPosition(a){return this._activeTransform={x:0,y:0},this._passiveTransform.x=a.x,this._passiveTransform.y=a.y,this._dropContainer||this._applyRootElementTransform(a.x,a.y),this}withPreviewContainer(a){return this._previewContainer=a,this}_sortFromLastPointerPosition(){const a=this._lastKnownPointerPosition;a&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(a),a)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview?.remove(),this._previewRef?.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(a){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:a}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(a),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(a);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e,event:a})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(a){_f(a)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const t=this._rootElement,o=t.parentNode,l=this._placeholder=this._createPlaceholderElement(),c=this._anchor=this._anchor||this._document.createComment(""),n=this._getShadowRoot();o.insertBefore(c,t),this._initialTransform=t.style.transform||"",this._preview=this._createPreviewElement(),FM(t,!1,Mx),this._document.body.appendChild(o.replaceChild(l,t)),this._getPreviewInsertionPoint(o,n).appendChild(this._preview),this.started.next({source:this,event:a}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this,event:a}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(a,e){this._parentDragRef&&e.stopPropagation();const t=this.isDragging(),o=_f(e),l=!o&&0!==e.button,c=this._rootElement,n=Ei(e),i=!o&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),s=o?nd(e):or(e);if(n&&n.draggable&&"mousedown"===e.type&&e.preventDefault(),t||l||i||s)return;if(this._handles.length){const f=c.style;this._rootElementTapHighlight=f.webkitTapHighlightColor||"",f.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(f=>this._updateOnScroll(f)),this._boundaryElement&&(this._boundaryRect=Ex(this._boundaryElement));const d=this._previewTemplate;this._pickupPositionInElement=d&&d.template&&!d.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,a,e);const h=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:h.x,y:h.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(a){FM(this._rootElement,!0,Mx),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,t=e.getItemIndex(this),o=this._getPointerPositionOnPage(a),l=this._getDragDistance(o),c=e._isOverContainer(o.x,o.y);this.ended.next({source:this,distance:l,dropPoint:o,event:a}),this.dropped.next({item:this,currentIndex:t,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:c,distance:l,dropPoint:o,event:a}),e.drop(this,t,this._initialIndex,this._initialContainer,c,l,o),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:a,y:e},{x:t,y:o}){let l=this._initialContainer._getSiblingContainerFromPosition(this,a,e);!l&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(a,e)&&(l=this._initialContainer),l&&l!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=l,this._dropContainer.enter(this,a,e,l===this._initialContainer&&l.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:l,currentIndex:l.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(t,o),this._dropContainer._sortItem(this,a,e,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(a,e):this._applyPreviewTransform(a-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const a=this._previewTemplate,e=this.previewClass,t=a?a.template:null;let o;if(t&&a){const l=a.matchSize?this._initialClientRect:null,c=a.viewContainer.createEmbeddedView(t,a.context);c.detectChanges(),o=YM(c,this._document),this._previewRef=c,a.matchSize?JM(o,l):o.style.transform=DC(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else o=UM(this._rootElement),JM(o,this._initialClientRect),this._initialTransform&&(o.style.transform=this._initialTransform);return xx(o.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},Mx),uu(o,!1),o.classList.add("cdk-drag-preview"),o.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(l=>o.classList.add(l)):o.classList.add(e)),o}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const a=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(a.left,a.top);const e=function Sk(r){const a=getComputedStyle(r),e=Tx(a,"transition-property"),t=e.find(n=>"transform"===n||"all"===n);if(!t)return 0;const o=e.indexOf(t),l=Tx(a,"transition-duration"),c=Tx(a,"transition-delay");return jM(l[o])+jM(c[o])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{const o=c=>{(!c||Ei(c)===this._preview&&"transform"===c.propertyName)&&(this._preview?.removeEventListener("transitionend",o),t(),clearTimeout(l))},l=setTimeout(o,1.5*e);this._preview.addEventListener("transitionend",o)}))}_createPlaceholderElement(){const a=this._placeholderTemplate,e=a?a.template:null;let t;return e?(this._placeholderRef=a.viewContainer.createEmbeddedView(e,a.context),this._placeholderRef.detectChanges(),t=YM(this._placeholderRef,this._document)):t=UM(this._rootElement),t.style.pointerEvents="none",t.classList.add("cdk-drag-placeholder"),t}_getPointerPositionInElement(a,e,t){const o=e===this._rootElement?null:e,l=o?o.getBoundingClientRect():a,c=_f(t)?t.targetTouches[0]:t,n=this._getViewportScrollPosition();return{x:l.left-a.left+(c.pageX-l.left-n.left),y:l.top-a.top+(c.pageY-l.top-n.top)}}_getPointerPositionOnPage(a){const e=this._getViewportScrollPosition(),t=_f(a)?a.touches[0]||a.changedTouches[0]||{pageX:0,pageY:0}:a,o=t.pageX-e.left,l=t.pageY-e.top;if(this._ownerSVGElement){const c=this._ownerSVGElement.getScreenCTM();if(c){const n=this._ownerSVGElement.createSVGPoint();return n.x=o,n.y=l,n.matrixTransform(c.inverse())}}return{x:o,y:l}}_getConstrainedPointerPosition(a){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:t,y:o}=this.constrainPosition?this.constrainPosition(a,this,this._initialClientRect,this._pickupPositionInElement):a;if("x"===this.lockAxis||"x"===e?o=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===e)&&(t=this._pickupPositionOnPage.x),this._boundaryRect){const{x:l,y:c}=this._pickupPositionInElement,n=this._boundaryRect,{width:i,height:s}=this._getPreviewRect(),d=n.top+c,h=n.bottom-(s-c);t=QM(t,n.left+l,n.right-(i-l)),o=QM(o,d,h)}return{x:t,y:o}}_updatePointerDirectionDelta(a){const{x:e,y:t}=a,o=this._pointerDirectionDelta,l=this._pointerPositionAtLastDirectionChange,c=Math.abs(e-l.x),n=Math.abs(t-l.y);return c>this._config.pointerDirectionChangeThreshold&&(o.x=e>l.x?1:-1,l.x=e),n>this._config.pointerDirectionChangeThreshold&&(o.y=t>l.y?1:-1,l.y=t),o}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const a=this._handles.length>0||!this.isDragging();a!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=a,uu(this._rootElement,a))}_removeRootElementListeners(a){a.removeEventListener("mousedown",this._pointerDown,MC),a.removeEventListener("touchstart",this._pointerDown,$M),a.removeEventListener("dragstart",this._nativeDragStart,MC)}_applyRootElementTransform(a,e){const t=DC(a,e),o=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=o.transform&&"none"!=o.transform?o.transform:""),o.transform=SC(t,this._initialTransform)}_applyPreviewTransform(a,e){const t=this._previewTemplate?.template?void 0:this._initialTransform,o=DC(a,e);this._preview.style.transform=SC(o,t)}_getDragDistance(a){const e=this._pickupPositionOnPage;return e?{x:a.x-e.x,y:a.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:a,y:e}=this._passiveTransform;if(0===a&&0===e||this.isDragging()||!this._boundaryElement)return;const t=this._rootElement.getBoundingClientRect(),o=this._boundaryElement.getBoundingClientRect();if(0===o.width&&0===o.height||0===t.width&&0===t.height)return;const l=o.left-t.left,c=t.right-o.right,n=o.top-t.top,i=t.bottom-o.bottom;o.width>t.width?(l>0&&(a+=l),c>0&&(a-=c)):a=0,o.height>t.height?(n>0&&(e+=n),i>0&&(e-=i)):e=0,(a!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:a})}_getDragStartDelay(a){const e=this.dragStartDelay;return"number"==typeof e?e:_f(a)?e.touch:e?e.mouse:0}_updateOnScroll(a){const e=this._parentPositions.handleScroll(a);if(e){const t=Ei(a);this._boundaryRect&&t!==this._boundaryElement&&t.contains(this._boundaryElement)&&mf(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(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=Zo(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(a,e){const t=this._previewContainer||"global";if("parent"===t)return a;if("global"===t){const o=this._document;return e||o.fullscreenElement||o.webkitFullscreenElement||o.mozFullScreenElement||o.msFullscreenElement||o.body}return ri(t)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(a){return this._handles.find(e=>a.target&&(a.target===e||e.contains(a.target)))}}function DC(r,a){return`translate3d(${Math.round(r)}px, ${Math.round(a)}px, 0)`}function QM(r,a,e){return Math.max(a,Math.min(e,r))}function _f(r){return"t"===r.type[0]}function YM(r,a){const e=r.rootNodes;if(1===e.length&&e[0].nodeType===a.ELEMENT_NODE)return e[0];const t=a.createElement("div");return e.forEach(o=>t.appendChild(o)),t}function JM(r,a){r.style.width=`${a.width}px`,r.style.height=`${a.height}px`,r.style.transform=DC(a.left,a.top)}function bf(r,a){return Math.max(0,Math.min(a,r))}class Rk{constructor(a,e){this._element=a,this._dragDropRegistry=e,this._itemPositions=[],this.orientation="vertical",this._previousSwap={drag:null,delta:0,overlaps:!1}}start(a){this.withItems(a)}sort(a,e,t,o){const l=this._itemPositions,c=this._getItemIndexFromPointerPosition(a,e,t,o);if(-1===c&&l.length>0)return null;const n="horizontal"===this.orientation,i=l.findIndex(ae=>ae.drag===a),s=l[c],h=s.clientRect,f=i>c?1:-1,b=this._getItemOffsetPx(l[i].clientRect,h,f),H=this._getSiblingOffsetPx(i,l,f),z=l.slice();return function Pk(r,a,e){const t=bf(a,r.length-1),o=bf(e,r.length-1);if(t===o)return;const l=r[t],c=o{if(z[ke]===ae)return;const ct=ae.drag===a,yt=ct?b:H,zt=ct?a.getPlaceholderElement():ae.drag.getRootElement();ae.offset+=yt,n?(zt.style.transform=SC(`translate3d(${Math.round(ae.offset)}px, 0, 0)`,ae.initialTransform),mf(ae.clientRect,0,yt)):(zt.style.transform=SC(`translate3d(0, ${Math.round(ae.offset)}px, 0)`,ae.initialTransform),mf(ae.clientRect,yt,0))}),this._previousSwap.overlaps=Sx(h,e,t),this._previousSwap.drag=s.drag,this._previousSwap.delta=n?o.x:o.y,{previousIndex:i,currentIndex:c}}enter(a,e,t,o){const l=null==o||o<0?this._getItemIndexFromPointerPosition(a,e,t):o,c=this._activeDraggables,n=c.indexOf(a),i=a.getPlaceholderElement();let s=c[l];if(s===a&&(s=c[l+1]),!s&&(null==l||-1===l||l-1&&c.splice(n,1),s&&!this._dragDropRegistry.isDragging(s)){const d=s.getRootElement();d.parentElement.insertBefore(i,d),c.splice(l,0,a)}else ri(this._element).appendChild(i),c.push(a);i.style.transform="",this._cacheItemPositions()}withItems(a){this._activeDraggables=a.slice(),this._cacheItemPositions()}withSortPredicate(a){this._sortPredicate=a}reset(){this._activeDraggables.forEach(a=>{const e=a.getRootElement();if(e){const t=this._itemPositions.find(o=>o.drag===a)?.initialTransform;e.style.transform=t||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(a){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(t=>t.drag===a)}updateOnScroll(a,e){this._itemPositions.forEach(({clientRect:t})=>{mf(t,a,e)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()})}_cacheItemPositions(){const a="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(e=>{const t=e.getVisibleElement();return{drag:e,offset:0,initialTransform:t.style.transform||"",clientRect:Ex(t)}}).sort((e,t)=>a?e.clientRect.left-t.clientRect.left:e.clientRect.top-t.clientRect.top)}_getItemOffsetPx(a,e,t){const o="horizontal"===this.orientation;let l=o?e.left-a.left:e.top-a.top;return-1===t&&(l+=o?e.width-a.width:e.height-a.height),l}_getSiblingOffsetPx(a,e,t){const o="horizontal"===this.orientation,l=e[a].clientRect,c=e[a+-1*t];let n=l[o?"width":"height"]*t;if(c){const i=o?"left":"top",s=o?"right":"bottom";-1===t?n-=c.clientRect[i]-l[s]:n+=l[i]-c.clientRect[s]}return n}_shouldEnterAsFirstChild(a,e){if(!this._activeDraggables.length)return!1;const t=this._itemPositions,o="horizontal"===this.orientation;if(t[0].drag!==this._activeDraggables[0]){const c=t[t.length-1].clientRect;return o?a>=c.right:e>=c.bottom}{const c=t[0].clientRect;return o?a<=c.left:e<=c.top}}_getItemIndexFromPointerPosition(a,e,t,o){const l="horizontal"===this.orientation,c=this._itemPositions.findIndex(({drag:n,clientRect:i})=>{if(n===a)return!1;if(o){const s=l?o.x:o.y;if(n===this._previousSwap.drag&&this._previousSwap.overlaps&&s===this._previousSwap.delta)return!1}return l?e>=Math.floor(i.left)&&e=Math.floor(i.top)&&t!0,this.sortPredicate=()=>!0,this.beforeStarted=new De.x,this.entered=new De.x,this.exited=new De.x,this.dropped=new De.x,this.sorted=new De.x,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=Lt.w0.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new De.x,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function Ek(r=0,a=Im.z){return r<0&&(r=0),(0,km.H)(r,r,a)}(0,Tm).pipe(st(this._stopScrollTimers)).subscribe(()=>{const c=this._scrollNode,n=this.autoScrollStep;1===this._verticalScrollDirection?c.scrollBy(0,-n):2===this._verticalScrollDirection&&c.scrollBy(0,n),1===this._horizontalScrollDirection?c.scrollBy(-n,0):2===this._horizontalScrollDirection&&c.scrollBy(n,0)})},this.element=ri(a),this._document=t,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new zM(t),this._sortStrategy=new Rk(this.element,e),this._sortStrategy.withSortPredicate((c,n)=>this.sortPredicate(c,n,this))}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(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(a,e,t,o){this._draggingStarted(),null==o&&this.sortingDisabled&&(o=this._draggables.indexOf(a)),this._sortStrategy.enter(a,e,t,o),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:a,container:this,currentIndex:this.getItemIndex(a)})}exit(a){this._reset(),this.exited.next({item:a,container:this})}drop(a,e,t,o,l,c,n,i={}){this._reset(),this.dropped.next({item:a,currentIndex:e,previousIndex:t,container:this,previousContainer:o,isPointerOverContainer:l,distance:c,dropPoint:n,event:i})}withItems(a){const e=this._draggables;return this._draggables=a,a.forEach(t=>t._withDropContainer(this)),this.isDragging()&&(e.filter(o=>o.isDragging()).every(o=>-1===a.indexOf(o))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(a){return this._sortStrategy.direction=a,this}connectedTo(a){return this._siblings=a.slice(),this}withOrientation(a){return this._sortStrategy.orientation=a,this}withScrollableParents(a){const e=ri(this.element);return this._scrollableElements=-1===a.indexOf(e)?[e,...a]:a.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(a){return this._isDragging?this._sortStrategy.getItemIndex(a):this._draggables.indexOf(a)}isReceiving(){return this._activeSiblings.size>0}_sortItem(a,e,t,o){if(this.sortingDisabled||!this._clientRect||!NM(this._clientRect,.05,e,t))return;const l=this._sortStrategy.sort(a,e,t,o);l&&this.sorted.next({previousIndex:l.previousIndex,currentIndex:l.currentIndex,container:this,item:a})}_startScrollingIfNecessary(a,e){if(this.autoScrollDisabled)return;let t,o=0,l=0;if(this._parentPositions.positions.forEach((c,n)=>{n===this._document||!c.clientRect||t||NM(c.clientRect,.05,a,e)&&([o,l]=function kk(r,a,e,t){const o=XM(a,t),l=eD(a,e);let c=0,n=0;if(o){const i=r.scrollTop;1===o?i>0&&(c=1):r.scrollHeight-i>r.clientHeight&&(c=2)}if(l){const i=r.scrollLeft;1===l?i>0&&(n=1):r.scrollWidth-i>r.clientWidth&&(n=2)}return[c,n]}(n,c.clientRect,a,e),(o||l)&&(t=n))}),!o&&!l){const{width:c,height:n}=this._viewportRuler.getViewportSize(),i={width:c,height:n,top:0,right:c,bottom:n,left:0};o=XM(i,e),l=eD(i,a),t=window}t&&(o!==this._verticalScrollDirection||l!==this._horizontalScrollDirection||t!==this._scrollNode)&&(this._verticalScrollDirection=o,this._horizontalScrollDirection=l,this._scrollNode=t,(o||l)&&t?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const a=ri(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=a.msScrollSnapType||a.scrollSnapType||"",a.scrollSnapType=a.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const a=ri(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(a).clientRect}_reset(){this._isDragging=!1;const a=ri(this.element).style;a.scrollSnapType=a.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(e=>e._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(a,e){return null!=this._clientRect&&Sx(this._clientRect,a,e)}_getSiblingContainerFromPosition(a,e,t){return this._siblings.find(o=>o._canReceive(a,e,t))}_canReceive(a,e,t){if(!this._clientRect||!Sx(this._clientRect,e,t)||!this.enterPredicate(a,this))return!1;const o=this._getShadowRoot().elementFromPoint(e,t);if(!o)return!1;const l=ri(this.element);return o===l||l.contains(o)}_startReceiving(a,e){const t=this._activeSiblings;!t.has(a)&&e.every(o=>this.enterPredicate(o,this)||this._draggables.indexOf(o)>-1)&&(t.add(a),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(a){this._activeSiblings.delete(a),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(a=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(a);e&&this._sortStrategy.updateOnScroll(e.top,e.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const a=Zo(ri(this.element));this._cachedShadowRoot=a||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const a=this._sortStrategy.getActiveItemsSnapshot().filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,a))}}function XM(r,a){const{top:e,bottom:t,height:o}=r,l=.05*o;return a>=e-l&&a<=e+l?1:a>=t-l&&a<=t+l?2:0}function eD(r,a){const{left:e,right:t,width:o}=r,l=.05*o;return a>=e-l&&a<=e+l?1:a>=t-l&&a<=t+l?2:0}const HC=Dn({passive:!1,capture:!0});let Vk=(()=>{class r{constructor(e,t){this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=o=>o.isDragging(),this.pointerMove=new De.x,this.pointerUp=new De.x,this.scroll=new De.x,this._preventDefaultWhileDragging=o=>{this._activeDragInstances.length>0&&o.preventDefault()},this._persistentTouchmoveListener=o=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&o.preventDefault(),this.pointerMove.next(o))},this._document=t}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,HC)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,HC)}startDragging(e,t){if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){const o=t.type.startsWith("touch");this._globalListeners.set(o?"touchend":"mouseup",{handler:l=>this.pointerUp.next(l),options:!0}).set("scroll",{handler:l=>this.scroll.next(l),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:HC}),o||this._globalListeners.set("mousemove",{handler:l=>this.pointerMove.next(l),options:HC}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((l,c)=>{this._document.addEventListener(c,l.handler,l.options)})})}}stopDragging(e){const t=this._activeDragInstances.indexOf(e);t>-1&&(this._activeDragInstances.splice(t,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(e){return this._activeDragInstances.indexOf(e)>-1}scrolled(e){const t=[this.scroll];return e&&e!==this._document&&t.push(new bi.y(o=>this._ngZone.runOutsideAngular(()=>{const c=n=>{this._activeDragInstances.length&&o.next(n)};return e.addEventListener("scroll",c,!0),()=>{e.removeEventListener("scroll",c,!0)}}))),(0,kn.T)(...t)}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((e,t)=>{this._document.removeEventListener(t,e.handler,e.options)}),this._globalListeners.clear()}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(u.R0b),u.LFG(T.K0))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const Bk={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let Ok=(()=>{class r{constructor(e,t,o,l){this._document=e,this._ngZone=t,this._viewportRuler=o,this._dragDropRegistry=l}createDrag(e,t=Bk){return new Hk(e,t,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new Ik(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(T.K0),u.LFG(u.R0b),u.LFG(Vr),u.LFG(Vk))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Lk=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({providers:[Ok],imports:[Br]}),r})();function Fk(r,a){if(1&r&&(u.TgZ(0,"div",5)(1,"mat-icon"),u._uU(2),u.qZA()()),2&r){const e=u.oxw();u.xp6(2),u.Oqu(e.data.icon)}}function jk(r,a){if(1&r&&(u.TgZ(0,"div",6),u._uU(1),u.qZA()),2&r){const e=u.oxw();u.xp6(1),u.hij(" ",e.showTimestamp()," ")}}let Nk=(()=>{class r{constructor(e,t){this.dialog=e,this.notificationStorageService=t,this.newNotification=!1,this.closeNotification=new u.vpe,this.alreadyPressed=!1,this.alreadyClosed=!1,this.waiting=!1}doAction(){if(this.newNotification&&(this.alreadyPressed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,void 0!==this.data.action)this.data.action();else{const e=vn();e.width="550px",e.data=this.data,e.autoFocus=!1,this.dialog.open(ZH,e).afterClosed().subscribe(()=>{this.closeSelf()})}}closeSelf(){this.inDialog||(this.newNotification&&(this.alreadyClosed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,this.closeNotification.emit())}ngOnInit(){!function MA(r,a){bp.apply(this,arguments)}(this.data.delay,()=>{!this.alreadyClosed&&!this.waiting&&this.closeSelf()})}showTimestamp(){const[e,t]=this.data.timeStamp.split(":");return t.length<2?e+":0"+t:this.data.timeStamp}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(wn),u.Y36(Sp))},r.\u0275cmp=u.Xpm({type:r,selectors:[["perun-web-apps-notification"]],inputs:{data:"data",inDialog:"inDialog",newNotification:"newNotification"},outputs:{closeNotification:"closeNotification"},decls:9,vars:14,consts:[[1,"notification-container",3,"click"],["class","notification-icon",4,"ngIf"],["data-cy","notification-message",1,"notification-text","clickable"],["class","ml-auto mr-5 mt-auto mb-auto",4,"ngIf"],[1,"notification-action","mt-auto","mb-auto",3,"hidden","click"],[1,"notification-icon"],[1,"ml-auto","mr-5","mt-auto","mb-auto"]],template:function(e,t){1&e&&(u.TgZ(0,"div")(1,"div",0),u.NdJ("click",function(){return t.alreadyClosed||t.waiting?"":t.closeSelf()}),u.YNc(2,Fk,3,1,"div",1),u.TgZ(3,"div",2),u._uU(4),u.ALo(5,"translate"),u.qZA(),u.YNc(6,jk,2,1,"div",3),u.TgZ(7,"div",4),u.NdJ("click",function(){return t.waiting=!0,t.doAction()}),u._uU(8),u.qZA()()()),2&e&&(u.Gre("notification ",t.inDialog?"":"mat-elevation-z7",""),u.ekj("error","error"===t.data.type)("success","success"===t.data.type),u.xp6(2),u.Q6J("ngIf",null!==t.data.icon),u.xp6(2),u.hij(" ",u.lcZ(5,12,t.data.title)," "),u.xp6(2),u.Q6J("ngIf",t.inDialog),u.xp6(1),u.Q6J("hidden",t.alreadyPressed),u.xp6(1),u.hij(" ",t.data.actionText," "))},dependencies:[T.O5,ur,vi],styles:[".notification[_ngcontent-%COMP%]{width:450px;margin-bottom:16px;display:flex;flex-direction:row;justify-content:space-between;color:#fff}.notification-container[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:row;padding:16px}.notification-text[_ngcontent-%COMP%]{font-size:1.1em}.notification-action[_ngcontent-%COMP%]{margin-left:auto;text-decoration:underline;cursor:pointer}@media (max-width: 768px){.notification[_ngcontent-%COMP%]{width:100%}}.notification.error[_ngcontent-%COMP%]{background-color:#d32f2f}.notification.success[_ngcontent-%COMP%]{background-color:#288619}.notification-icon[_ngcontent-%COMP%]{padding-right:8px;color:#fff}"]}),r})(),zk=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({}),r})(),$k=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({}),r})(),tV=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({imports:[$k,qe,qe]}),r})(),rV=(()=>{class r{constructor(){this.changes=new De.x,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 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(e,t){return`${e} \u2013 ${t}`}formatYearRangeLabel(e,t){return`${e} to ${t}`}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const fV={provide:new u.OlP("mat-datepicker-scroll-strategy"),deps:[ln],useFactory:function pV(r){return()=>r.scrollStrategies.reposition()}};let Ix=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({providers:[rV,fV],imports:[T.ez,Rn,ps,ml,_n,qe,Br]}),r})(),PV=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({imports:[hi,qe,qe]}),r})();new u.OlP("mat-selectsearch-default-options");let BV=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({imports:[[T.ez,C,Rn,mC,hr,df,ya]]}),r})(),sD=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({imports:[qe,qe]}),r})(),kx=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({imports:[qe,qe]}),r})(),OV=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({}),r})(),cD=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({imports:[T.ez,qe,OV,_n]}),r})(),uD=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({imports:[rs,qe,rs,qe]}),r})(),jV=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({imports:[ha]}),r})(),Vx=(()=>{class r{constructor(){this.changes=new De.x,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const KV={provide:Vx,deps:[[new u.FiY,new u.tp0,Vx]],useFactory:function JV(r){return r||new Vx}};let gD=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({providers:[KV,sd],imports:[qe,T.ez,_n,Rn,jV,hr,hi,qe]}),r})(),mD=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({imports:[T.ez,qe,Br,Br,qe]}),r})(),bD=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({imports:[rs,hi,qe,Ah,T.ez,rs,qe,Ah,kx]}),r})(),mB=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({imports:[T.ez,qe,_n,hi,es,ml,qe]}),r})(),CD=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({}),r})(),yD=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({imports:[CD,hi,qe,es,CD,qe]}),r})(),wD=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({imports:[T.ez,sD,kx,cD,Rn,uD,mC,hr,EC,Yl,df,dr,vo,Tl,_,C,gD,Ix,tv,mD,bD,Wl,OS,wx,Ed,ya,xd,hi,EC,yD,Ax,sD,kx,cD,Rn,uD,mC,hr,EC,Yl,df,dr,vo,Tl,_,C,gD,Ix,tv,mD,bD,Wl,OS,wx,Ed,ya,xd,hi,mB,yD,Ax]}),r})(),DB=(()=>{class r extends um{format(e,t){return"input"===t?`${e.getDate().toString()}.${(e.getMonth()+1).toString()}.${e.getFullYear()}`:e.toDateString()}}return r.\u0275fac=function(){let a;return function(t){return(a||(a=u.n5z(r)))(t||r)}}(),r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac}),r})();const HB={parse:{dateInput:{month:"short",year:"numeric",day:"numeric"}},display:{dateInput:"input",monthYearLabel:{year:"numeric",month:"numeric"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let vD=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({providers:[{provide:on,useClass:DB},{provide:yh,useValue:HB}],imports:[T.ez,mC,EC,_,Ax,Lk,ys,Wc,wx,Ed,df,Zb,hr,Wl,Rn,ya,dr,C,vo,hi,vH,zk,tV,Ix,PV,xh,xd,BV,Tl,Yl,yA,wD,kP]}),r})();u.B6R(BS,[T.O5,_o,sn,Fm,xl,Um,va,jr,Nk],[vi,kS]),new Date(324721404e5).valueOf();let kO=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({imports:[T.ez,Rn,hr,Wc,vD,ys,dr,C,vo,Zb]}),r})(),VO=(()=>{class r{constructor(e,t){this.auth=e,this.router=t}ngOnInit(){this.auth.isLoggedIn()&&this.router.navigate([""],{queryParamsHandling:"merge"})}startAuth(){this.auth.startAuthentication()}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(Ta),u.Y36(ui))},r.\u0275cmp=u.Xpm({type:r,selectors:[["perun-web-apps-login-screen"]],decls:11,vars:6,consts:[[1,"container","login-con"],[1,"row"],[1,"ml-auto","mr-auto","d-flex","flex-column","align-items-center"],[1,"mb-3"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(u.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h4",3),u._uU(4),u.ALo(5,"translate"),u.qZA(),u.TgZ(6,"button",4),u.NdJ("click",function(){return t.startAuth()}),u._uU(7),u.ALo(8,"translate"),u.TgZ(9,"mat-icon"),u._uU(10," login "),u.qZA()()()()()),2&e&&(u.xp6(4),u.hij(" ",u.lcZ(5,2,"SHARED_LIB.PERUN.LOGIN.TEXT")," "),u.xp6(3),u.hij(" ",u.lcZ(8,4,"SHARED_LIB.PERUN.LOGIN.SIGN_IN")," "))},dependencies:[sn,ur,vi],styles:[".login-con[_ngcontent-%COMP%]{padding:120px 0}"]}),r})();function BO(r,a){1&r&&(u.TgZ(0,"perun-web-apps-alert",8),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&r&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.WRONG_LOGIN_OR_PASSWORD")," "))}const OO=[{path:"service-access",component:(()=>{class r{constructor(e){this.authzService=e,this.usernameCtrl=new zr(null,[fr.required]),this.passwordCtrl=new zr(null,[fr.required]),this.wrongUsernameOrPassword=!1}startAuth(){this.usernameCtrl.invalid||this.passwordCtrl.invalid||(sessionStorage.setItem("basicUsername",this.usernameCtrl.value),sessionStorage.setItem("basicPassword",this.passwordCtrl.value),this.authzService.getPerunPrincipal().subscribe({next:e=>{sessionStorage.setItem("baPrincipal",JSON.stringify(e)),location.reload()},error:()=>{this.wrongUsernameOrPassword=!0}}))}}return r.\u0275fac=function(e){return new(e||r)(u.Y36(at))},r.\u0275cmp=u.Xpm({type:r,selectors:[["perun-web-apps-login-screen-service-access"]],decls:28,vars:23,consts:[[1,"container","login-con","vo-theme","top-padding"],[1,"row"],[1,"ml-auto","mr-auto","d-flex","flex-column","align-items-center"],["alert_type","error",4,"ngIf"],["appearance","outline"],["matInput","","required","",3,"formControl","keyup.enter"],["matInput","","required","",3,"formControl","type","keyup.enter"],["mat-raised-button","",1,"black",3,"disabled","click"],["alert_type","error"]],template:function(e,t){1&e&&(u.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h2"),u._uU(4),u.ALo(5,"translate"),u.qZA(),u.YNc(6,BO,3,3,"perun-web-apps-alert",3),u.TgZ(7,"mat-form-field",4)(8,"mat-label"),u._uU(9),u.ALo(10,"translate"),u.qZA(),u.TgZ(11,"input",5),u.NdJ("keyup.enter",function(){return t.startAuth()}),u.qZA(),u.TgZ(12,"mat-error"),u._uU(13),u.ALo(14,"translate"),u.qZA()(),u.TgZ(15,"mat-form-field",4)(16,"mat-label"),u._uU(17),u.ALo(18,"translate"),u.qZA(),u.TgZ(19,"input",6),u.NdJ("keyup.enter",function(){return t.startAuth()}),u.qZA(),u.TgZ(20,"mat-error"),u._uU(21),u.ALo(22,"translate"),u.qZA()(),u.TgZ(23,"button",7),u.NdJ("click",function(){return t.startAuth()}),u._uU(24),u.ALo(25,"translate"),u.TgZ(26,"mat-icon"),u._uU(27," login "),u.qZA()()()()()),2&e&&(u.xp6(4),u.Oqu(u.lcZ(5,11,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.LABEL")),u.xp6(2),u.Q6J("ngIf",t.wrongUsernameOrPassword),u.xp6(3),u.Oqu(u.lcZ(10,13,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME")),u.xp6(2),u.Q6J("formControl",t.usernameCtrl),u.xp6(2),u.hij(" ",u.lcZ(14,15,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME_ERROR")," "),u.xp6(4),u.Oqu(u.lcZ(18,17,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD")),u.xp6(2),u.Q6J("formControl",t.passwordCtrl)("type","password"),u.xp6(2),u.hij(" ",u.lcZ(22,19,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD_ERROR")," "),u.xp6(2),u.Q6J("disabled",t.usernameCtrl.invalid||t.passwordCtrl.invalid),u.xp6(1),u.hij(" ",u.lcZ(25,21,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.SIGN_IN")," "))},dependencies:[T.O5,sn,ur,fs,Ll,Ca,pr,bo,wo,Hs,jn,_o,vi],styles:[".top-padding[_ngcontent-%COMP%]{padding:120px 0}mat-form-field.mat-form-field[_ngcontent-%COMP%]{font-size:14px;width:250px}.black[_ngcontent-%COMP%]{background-color:#000;color:#fff}"]}),r})()},{path:"login",component:VO}];let LO=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({imports:[Wc.forRoot(OO,{relativeLinkResolution:"legacy"}),T.ez,Wc]}),r})(),FO=(()=>{class r{constructor(e,t,o,l,c){this.http=e,this.storeService=t,this.authzSevice=o,this.titleService=l,this.utilsService=c}initializeColors(e,t){return new Promise(o=>{t.forEach(l=>{const c=this.storeService.getProperty("theme")[l.configValue];document.documentElement.style.setProperty(l.cssVariable,c)}),e.forEach(l=>{const c=this.storeService.getProperty("theme")[l.configValue];document.documentElement.style.setProperty(l.cssVariable,c),this.setEntityTheme(l.entity,c)}),o()})}setEntityTheme(e,t){const o=function jO(r){return[An(tinycolor(r).lighten(52),"50"),An(tinycolor(r).lighten(37),"100"),An(tinycolor(r).lighten(26),"200"),An(tinycolor(r).lighten(12),"300"),An(tinycolor(r).lighten(6),"400"),An(tinycolor(r),"500"),An(tinycolor(r).darken(6),"600"),An(tinycolor(r).darken(12),"700"),An(tinycolor(r).darken(18),"800"),An(tinycolor(r).darken(24),"900"),An(tinycolor(r).lighten(50).saturate(30),"A100"),An(tinycolor(r).lighten(30).saturate(30),"A200"),An(tinycolor(r).lighten(10).saturate(15),"A400"),An(tinycolor(r).lighten(5).saturate(5),"A700")]}(t);for(const l of o){const i=`--${e}-theme-primary-contrast-${l.name}`,s=l.darkContrast?"30,30,30":"255,255,255";document.documentElement.style.setProperty(`--${e}-theme-primary-${l.name}`,`${l.red},${l.green},${l.blue}`),document.documentElement.style.setProperty(i,s)}}loadAppDefaultConfig(){return new Promise(e=>{this.http.get("/assets/config/defaultConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{this.storeService.setDefaultConfig(t),e()})})}loadAppInstanceConfig(){return new Promise(e=>{this.http.get("/assets/config/instanceConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{this.storeService.setInstanceConfig(t);const o=document.location.hostname;t?.brandings?.[o]&&this.storeService.setBanding(o),e()},()=>{e()})})}getNoCacheHeaders(){return new y.WM({CacheControl:"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"})}setInstanceFavicon(){return new Promise(e=>{const t=document.querySelector("link[rel*='icon']")||document.createElement("link");t.type="image/x-icon",t.rel="shortcut icon",t.href=this.storeService.getProperty("instance_favicon")?"./assets/config/instanceFavicon.ico":"./assets/img/perun.ico",document.getElementsByTagName("head")[0].appendChild(t),e()})}setApiUrl(){return new Promise(e=>{let t=this.storeService.getProperty("api_url");("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal")||this.storeService.getProperty("auto_service_access_redirect"))&&(t=t.replace("oauth","ba")),this.authzSevice.configuration.basePath=t,this.titleService.setTitle(this.storeService.getProperty("document_title").en),e()})}loadAppsConfig(){return new Promise((e,t)=>{this.utilsService.getAppsConfig().subscribe(o=>{this.storeService.setAppsConfig(o),e()},o=>t(o))})}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(y.eN),u.LFG(li),u.LFG(at),u.LFG(Q),u.LFG(un))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();function An(r,a){const e=tinycolor(r),t=e.toRgb();return{name:a,hex:e.toHexString(),darkContrast:e.isLight(),red:t.r,green:t.g,blue:t.b}}let NO=(()=>{class r{constructor(e,t,o,l){this.initAuthService=e,this.appConfigService=t,this.location=o,this.mfaHandlerService=l}loadConfigs(){return this.appConfigService.loadAppDefaultConfig().then(()=>this.appConfigService.loadAppInstanceConfig()).then(()=>this.appConfigService.setApiUrl()).then(()=>this.appConfigService.setInstanceFavicon()).then(()=>location.search.substring(1).includes("token")?Promise.resolve(!0):this.initAuthService.verifyAuth()).catch(e=>{throw this.mfaHandlerService.catchNoMfaTokenError(e?.params?.error),console.error(e),this.location.go("/"),location.reload(),e}).then(e=>e?(this.mfaHandlerService.closeMfaWindow(),location.search.substring(1).includes("token")?void 0:this.initAuthService.loadPrincipal().then(()=>this.initAuthService.checkRouteGuard())):this.initAuthService.handleAuthStart())}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(xp),u.LFG(FO),u.LFG(T.Ye),u.LFG(Ap))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const zO=new u.OlP("perun-api-service"),UO={provide:y.TP,useExisting:(0,u.Gpc)(()=>Gd),multi:!0};function GO(r){return new yR(r,"./assets/i18n/",".json")}function qO(r){const a={basePath:r.getProperty("api_url")};return new Oe(a)}const WO=r=>()=>r.loadConfigs();let $O=(()=>{class r{constructor(e,t){this.customIconService=e,this.translate=t,this.translate.setDefaultLang("en"),this.translate.use("en"),this.customIconService.registerPerunRefreshIcon()}}return r.\u0275fac=function(e){return new(e||r)(u.LFG(Tp),u.LFG(Bi))},r.\u0275mod=u.oAB({type:r,bootstrap:[CR]}),r.\u0275inj=u.cJS({providers:[Tp,{provide:u.ip1,useFactory:WO,multi:!0,deps:[NO]},{provide:Oe,useFactory:qO,deps:[li]},Gd,UO,{provide:zO,useClass:sb},{provide:xa.Hy,useFactory:()=>localStorage}],imports:[Oa,ys.forRoot({loader:{provide:bs,useFactory:GO,deps:[y.eN]}}),y1,hr,w1,fc,y.JF,LO,wD,Zb,HH,xa.zr.forRoot(),vD,kO]}),r})();(0,u.G48)(),Ye().bootstrapModule($O).catch(r=>console.error(r))},1302:function(F,N,x){var T;!function(u,V){var O={};!function(u){"use strict";u.__esModule=!0,u.digestLength=32,u.blockSize=64;var V=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function O(ne,J,ie,de,he){for(var ge,Ve,Be,we,_e,ve,Qe,Se,Ee,Te,oe,se,fe;he>=64;){for(ge=J[0],Ve=J[1],Be=J[2],we=J[3],_e=J[4],ve=J[5],Qe=J[6],Se=J[7],Te=0;Te<16;Te++)ne[Te]=(255&ie[oe=de+4*Te])<<24|(255&ie[oe+1])<<16|(255&ie[oe+2])<<8|255&ie[oe+3];for(Te=16;Te<64;Te++)ne[Te]=((se=((Ee=ne[Te-2])>>>17|Ee<<15)^(Ee>>>19|Ee<<13)^Ee>>>10)+ne[Te-7]|0)+((fe=((Ee=ne[Te-15])>>>7|Ee<<25)^(Ee>>>18|Ee<<14)^Ee>>>3)+ne[Te-16]|0);for(Te=0;Te<64;Te++)se=(((_e>>>6|_e<<26)^(_e>>>11|_e<<21)^(_e>>>25|_e<<7))+(_e&ve^~_e&Qe)|0)+(Se+(V[Te]+ne[Te]|0)|0)|0,fe=((ge>>>2|ge<<30)^(ge>>>13|ge<<19)^(ge>>>22|ge<<10))+(ge&Ve^ge&Be^Ve&Be)|0,Se=Qe,Qe=ve,ve=_e,_e=we+se|0,we=Be,Be=Ve,Ve=ge,ge=se+fe|0;J[0]+=ge,J[1]+=Ve,J[2]+=Be,J[3]+=we,J[4]+=_e,J[5]+=ve,J[6]+=Qe,J[7]+=Se,de+=64,he-=64}return de}var I=function(){function ne(){this.digestLength=u.digestLength,this.blockSize=u.blockSize,this.state=new Int32Array(8),this.temp=new Int32Array(64),this.buffer=new Uint8Array(128),this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this.reset()}return ne.prototype.reset=function(){return this.state[0]=1779033703,this.state[1]=3144134277,this.state[2]=1013904242,this.state[3]=2773480762,this.state[4]=1359893119,this.state[5]=2600822924,this.state[6]=528734635,this.state[7]=1541459225,this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this},ne.prototype.clean=function(){for(var J=0;J0){for(;this.bufferLength<64&&ie>0;)this.buffer[this.bufferLength++]=J[de++],ie--;64===this.bufferLength&&(O(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(ie>=64&&(de=O(this.temp,this.state,J,de,ie),ie%=64);ie>0;)this.buffer[this.bufferLength++]=J[de++],ie--;return this},ne.prototype.finish=function(J){if(!this.finished){var ie=this.bytesHashed,de=this.bufferLength,he=ie/536870912|0,ge=ie<<3,Ve=ie%64<56?64:128;this.buffer[de]=128;for(var Be=de+1;Be>>24&255,this.buffer[Ve-7]=he>>>16&255,this.buffer[Ve-6]=he>>>8&255,this.buffer[Ve-5]=he>>>0&255,this.buffer[Ve-4]=ge>>>24&255,this.buffer[Ve-3]=ge>>>16&255,this.buffer[Ve-2]=ge>>>8&255,this.buffer[Ve-1]=ge>>>0&255,O(this.temp,this.state,this.buffer,0,Ve),this.finished=!0}for(Be=0;Be<8;Be++)J[4*Be+0]=this.state[Be]>>>24&255,J[4*Be+1]=this.state[Be]>>>16&255,J[4*Be+2]=this.state[Be]>>>8&255,J[4*Be+3]=this.state[Be]>>>0&255;return this},ne.prototype.digest=function(){var J=new Uint8Array(this.digestLength);return this.finish(J),J},ne.prototype._saveState=function(J){for(var ie=0;iethis.blockSize)(new I).update(J).finish(ie).clean();else for(var de=0;de1&&J.update(ne),ie&&J.update(ie),J.update(de),J.finish(ne),de[0]++}u.HMAC=j,u.hash=W,u.default=W,u.hmac=Y;var $=new Uint8Array(u.digestLength);u.hkdf=function U(ne,J,ie,de){void 0===J&&(J=$),void 0===de&&(de=32);for(var he=new Uint8Array([1]),ge=Y(J,ne),Ve=new j(ge),Be=new Uint8Array(Ve.digestLength),we=Be.length,_e=new Uint8Array(de),ve=0;ve>>24&255,Ve[1]=Qe>>>16&255,Ve[2]=Qe>>>8&255,Ve[3]=Qe>>>0&255,he.reset(),he.update(J),he.update(Ve),he.finish(we);for(var Se=0;Se=U.status}function j($){try{$.dispatchEvent(new MouseEvent("click"))}catch{var U=document.createEvent("MouseEvents");U.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),$.dispatchEvent(U)}}var W="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,Y=W.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),G=W.saveAs||("object"!=typeof window||window!==W?function(){}:"download"in HTMLAnchorElement.prototype&&!Y?function($,U,te){var ne=W.URL||W.webkitURL,J=document.createElement("a");J.download=U=U||$.name||"download",J.rel="noopener","string"==typeof $?(J.href=$,J.origin===location.origin?j(J):I(J.href)?O($,U,te):j(J,J.target="_blank")):(J.href=ne.createObjectURL($),setTimeout(function(){ne.revokeObjectURL(J.href)},4e4),setTimeout(function(){j(J)},0))}:"msSaveOrOpenBlob"in navigator?function($,U,te){if(U=U||$.name||"download","string"!=typeof $)navigator.msSaveOrOpenBlob(function V($,U){return typeof U>"u"?U={autoBom:!1}:"object"!=typeof U&&(console.warn("Deprecated: Expected third argument to be a object"),U={autoBom:!U}),U.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test($.type)?new Blob(["\ufeff",$],{type:$.type}):$}($,te),U);else if(I($))O($,U,te);else{var ne=document.createElement("a");ne.href=$,ne.target="_blank",setTimeout(function(){j(ne)})}}:function($,U,te,ne){if((ne=ne||open("","_blank"))&&(ne.document.title=ne.document.body.innerText="downloading..."),"string"==typeof $)return O($,U,te);var J="application/octet-stream"===$.type,ie=/constructor/i.test(W.HTMLElement)||W.safari,de=/CriOS\/[\d]+/.test(navigator.userAgent);if((de||J&&ie||Y)&&typeof FileReader<"u"){var he=new FileReader;he.onloadend=function(){var Be=he.result;Be=de?Be:Be.replace(/^data:[^;]*;/,"data:attachment/file;"),ne?ne.location.href=Be:location=Be,ne=null},he.readAsDataURL($)}else{var ge=W.URL||W.webkitURL,Ve=ge.createObjectURL($);ne?ne.location=Ve:location.href=Ve,ne=null,setTimeout(function(){ge.revokeObjectURL(Ve)},4e4)}});W.saveAs=G.saveAs=G,F.exports=G}.apply(N,[]))&&(F.exports=u)},9751:(F,N,x)=>{"use strict";x.d(N,{y:()=>Y});var T=x(930),u=x(727),V=x(8822),O=x(9635),I=x(2416),j=x(576),W=x(2806);let Y=(()=>{class te{constructor(J){J&&(this._subscribe=J)}lift(J){const ie=new te;return ie.source=this,ie.operator=J,ie}subscribe(J,ie,de){const he=function U(te){return te&&te instanceof T.Lv||function $(te){return te&&(0,j.m)(te.next)&&(0,j.m)(te.error)&&(0,j.m)(te.complete)}(te)&&(0,u.Nn)(te)}(J)?J:new T.Hp(J,ie,de);return(0,W.x)(()=>{const{operator:ge,source:Ve}=this;he.add(ge?ge.call(he,Ve):Ve?this._subscribe(he):this._trySubscribe(he))}),he}_trySubscribe(J){try{return this._subscribe(J)}catch(ie){J.error(ie)}}forEach(J,ie){return new(ie=G(ie))((de,he)=>{const ge=new T.Hp({next:Ve=>{try{J(Ve)}catch(Be){he(Be),ge.unsubscribe()}},error:he,complete:de});this.subscribe(ge)})}_subscribe(J){var ie;return null===(ie=this.source)||void 0===ie?void 0:ie.subscribe(J)}[V.L](){return this}pipe(...J){return(0,O.U)(J)(this)}toPromise(J){return new(J=G(J))((ie,de)=>{let he;this.subscribe(ge=>he=ge,ge=>de(ge),()=>ie(he))})}}return te.create=ne=>new te(ne),te})();function G(te){var ne;return null!==(ne=te??I.v.Promise)&&void 0!==ne?ne:Promise}},7579:(F,N,x)=>{"use strict";x.d(N,{x:()=>W});var T=x(9751),u=x(727);const O=(0,x(3888).d)(G=>function(){G(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var I=x(8737),j=x(2806);let W=(()=>{class G extends T.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(U){const te=new Y(this,this);return te.operator=U,te}_throwIfClosed(){if(this.closed)throw new O}next(U){(0,j.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const te of this.currentObservers)te.next(U)}})}error(U){(0,j.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=U;const{observers:te}=this;for(;te.length;)te.shift().error(U)}})}complete(){(0,j.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:U}=this;for(;U.length;)U.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var U;return(null===(U=this.observers)||void 0===U?void 0:U.length)>0}_trySubscribe(U){return this._throwIfClosed(),super._trySubscribe(U)}_subscribe(U){return this._throwIfClosed(),this._checkFinalizedStatuses(U),this._innerSubscribe(U)}_innerSubscribe(U){const{hasError:te,isStopped:ne,observers:J}=this;return te||ne?u.Lc:(this.currentObservers=null,J.push(U),new u.w0(()=>{this.currentObservers=null,(0,I.P)(J,U)}))}_checkFinalizedStatuses(U){const{hasError:te,thrownError:ne,isStopped:J}=this;te?U.error(ne):J&&U.complete()}asObservable(){const U=new T.y;return U.source=this,U}}return G.create=($,U)=>new Y($,U),G})();class Y extends W{constructor($,U){super(),this.destination=$,this.source=U}next($){var U,te;null===(te=null===(U=this.destination)||void 0===U?void 0:U.next)||void 0===te||te.call(U,$)}error($){var U,te;null===(te=null===(U=this.destination)||void 0===U?void 0:U.error)||void 0===te||te.call(U,$)}complete(){var $,U;null===(U=null===($=this.destination)||void 0===$?void 0:$.complete)||void 0===U||U.call($)}_subscribe($){var U,te;return null!==(te=null===(U=this.source)||void 0===U?void 0:U.subscribe($))&&void 0!==te?te:u.Lc}}},930:(F,N,x)=>{"use strict";x.d(N,{Hp:()=>de,Lv:()=>te});var T=x(576),u=x(727),V=x(2416),O=x(7849),I=x(5032);const j=G("C",void 0,void 0);function G(we,_e,ve){return{kind:we,value:_e,error:ve}}var $=x(3410),U=x(2806);class te extends u.w0{constructor(_e){super(),this.isStopped=!1,_e?(this.destination=_e,(0,u.Nn)(_e)&&_e.add(this)):this.destination=Be}static create(_e,ve,Qe){return new de(_e,ve,Qe)}next(_e){this.isStopped?Ve(function Y(we){return G("N",we,void 0)}(_e),this):this._next(_e)}error(_e){this.isStopped?Ve(function W(we){return G("E",void 0,we)}(_e),this):(this.isStopped=!0,this._error(_e))}complete(){this.isStopped?Ve(j,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(_e){this.destination.next(_e)}_error(_e){try{this.destination.error(_e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const ne=Function.prototype.bind;function J(we,_e){return ne.call(we,_e)}class ie{constructor(_e){this.partialObserver=_e}next(_e){const{partialObserver:ve}=this;if(ve.next)try{ve.next(_e)}catch(Qe){he(Qe)}}error(_e){const{partialObserver:ve}=this;if(ve.error)try{ve.error(_e)}catch(Qe){he(Qe)}else he(_e)}complete(){const{partialObserver:_e}=this;if(_e.complete)try{_e.complete()}catch(ve){he(ve)}}}class de extends te{constructor(_e,ve,Qe){let Se;if(super(),(0,T.m)(_e)||!_e)Se={next:_e??void 0,error:ve??void 0,complete:Qe??void 0};else{let Ee;this&&V.v.useDeprecatedNextContext?(Ee=Object.create(_e),Ee.unsubscribe=()=>this.unsubscribe(),Se={next:_e.next&&J(_e.next,Ee),error:_e.error&&J(_e.error,Ee),complete:_e.complete&&J(_e.complete,Ee)}):Se=_e}this.destination=new ie(Se)}}function he(we){V.v.useDeprecatedSynchronousErrorHandling?(0,U.O)(we):(0,O.h)(we)}function Ve(we,_e){const{onStoppedNotification:ve}=V.v;ve&&$.z.setTimeout(()=>ve(we,_e))}const Be={closed:!0,next:I.Z,error:function ge(we){throw we},complete:I.Z}},727:(F,N,x)=>{"use strict";x.d(N,{Lc:()=>j,w0:()=>I,Nn:()=>W});var T=x(576);const V=(0,x(3888).d)(G=>function(U){G(this),this.message=U?`${U.length} errors occurred during unsubscription:\n${U.map((te,ne)=>`${ne+1}) ${te.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=U});var O=x(8737);class I{constructor($){this.initialTeardown=$,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let $;if(!this.closed){this.closed=!0;const{_parentage:U}=this;if(U)if(this._parentage=null,Array.isArray(U))for(const J of U)J.remove(this);else U.remove(this);const{initialTeardown:te}=this;if((0,T.m)(te))try{te()}catch(J){$=J instanceof V?J.errors:[J]}const{_finalizers:ne}=this;if(ne){this._finalizers=null;for(const J of ne)try{Y(J)}catch(ie){$=$??[],ie instanceof V?$=[...$,...ie.errors]:$.push(ie)}}if($)throw new V($)}}add($){var U;if($&&$!==this)if(this.closed)Y($);else{if($ instanceof I){if($.closed||$._hasParent(this))return;$._addParent(this)}(this._finalizers=null!==(U=this._finalizers)&&void 0!==U?U:[]).push($)}}_hasParent($){const{_parentage:U}=this;return U===$||Array.isArray(U)&&U.includes($)}_addParent($){const{_parentage:U}=this;this._parentage=Array.isArray(U)?(U.push($),U):U?[U,$]:$}_removeParent($){const{_parentage:U}=this;U===$?this._parentage=null:Array.isArray(U)&&(0,O.P)(U,$)}remove($){const{_finalizers:U}=this;U&&(0,O.P)(U,$),$ instanceof I&&$._removeParent(this)}}I.EMPTY=(()=>{const G=new I;return G.closed=!0,G})();const j=I.EMPTY;function W(G){return G instanceof I||G&&"closed"in G&&(0,T.m)(G.remove)&&(0,T.m)(G.add)&&(0,T.m)(G.unsubscribe)}function Y(G){(0,T.m)(G)?G():G.unsubscribe()}},2416:(F,N,x)=>{"use strict";x.d(N,{v:()=>T});const T={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9841:(F,N,x)=>{"use strict";x.d(N,{a:()=>$});var T=x(9751),u=x(4742),V=x(2076),O=x(4671),I=x(3268),j=x(3269),W=x(1810),Y=x(5403),G=x(9672);function $(...ne){const J=(0,j.yG)(ne),ie=(0,j.jO)(ne),{args:de,keys:he}=(0,u.D)(ne);if(0===de.length)return(0,V.D)([],J);const ge=new T.y(function U(ne,J,ie=O.y){return de=>{te(J,()=>{const{length:he}=ne,ge=new Array(he);let Ve=he,Be=he;for(let we=0;we{const _e=(0,V.D)(ne[we],J);let ve=!1;_e.subscribe((0,Y.x)(de,Qe=>{ge[we]=Qe,ve||(ve=!0,Be--),Be||de.next(ie(ge.slice()))},()=>{--Ve||de.complete()}))},de)},de)}}(de,J,he?Ve=>(0,W.n)(he,Ve):O.y));return ie?ge.pipe((0,I.Z)(ie)):ge}function te(ne,J,ie){ne?(0,G.f)(ie,ne,J):J()}},7272:(F,N,x)=>{"use strict";x.d(N,{z:()=>I});var T=x(8189),V=x(3269),O=x(2076);function I(...j){return function u(){return(0,T.J)(1)}()((0,O.D)(j,(0,V.yG)(j)))}},515:(F,N,x)=>{"use strict";x.d(N,{E:()=>u});const u=new(x(9751).y)(I=>I.complete())},2076:(F,N,x)=>{"use strict";x.d(N,{D:()=>Qe});var T=x(8421),u=x(9672),V=x(4482),O=x(5403);function I(Se,Ee=0){return(0,V.e)((Te,oe)=>{Te.subscribe((0,O.x)(oe,se=>(0,u.f)(oe,Se,()=>oe.next(se),Ee),()=>(0,u.f)(oe,Se,()=>oe.complete(),Ee),se=>(0,u.f)(oe,Se,()=>oe.error(se),Ee)))})}function j(Se,Ee=0){return(0,V.e)((Te,oe)=>{oe.add(Se.schedule(()=>Te.subscribe(oe),Ee))})}var G=x(9751),U=x(2202),te=x(576);function J(Se,Ee){if(!Se)throw new Error("Iterable cannot be null");return new G.y(Te=>{(0,u.f)(Te,Ee,()=>{const oe=Se[Symbol.asyncIterator]();(0,u.f)(Te,Ee,()=>{oe.next().then(se=>{se.done?Te.complete():Te.next(se.value)})},0,!0)})})}var ie=x(3670),de=x(8239),he=x(1144),ge=x(6495),Ve=x(2206),Be=x(4532),we=x(3260);function Qe(Se,Ee){return Ee?function ve(Se,Ee){if(null!=Se){if((0,ie.c)(Se))return function W(Se,Ee){return(0,T.Xf)(Se).pipe(j(Ee),I(Ee))}(Se,Ee);if((0,he.z)(Se))return function $(Se,Ee){return new G.y(Te=>{let oe=0;return Ee.schedule(function(){oe===Se.length?Te.complete():(Te.next(Se[oe++]),Te.closed||this.schedule())})})}(Se,Ee);if((0,de.t)(Se))return function Y(Se,Ee){return(0,T.Xf)(Se).pipe(j(Ee),I(Ee))}(Se,Ee);if((0,Ve.D)(Se))return J(Se,Ee);if((0,ge.T)(Se))return function ne(Se,Ee){return new G.y(Te=>{let oe;return(0,u.f)(Te,Ee,()=>{oe=Se[U.h](),(0,u.f)(Te,Ee,()=>{let se,fe;try{({value:se,done:fe}=oe.next())}catch(ue){return void Te.error(ue)}fe?Te.complete():Te.next(se)},0,!0)}),()=>(0,te.m)(oe?.return)&&oe.return()})}(Se,Ee);if((0,we.L)(Se))return function _e(Se,Ee){return J((0,we.Q)(Se),Ee)}(Se,Ee)}throw(0,Be.z)(Se)}(Se,Ee):(0,T.Xf)(Se)}},8421:(F,N,x)=>{"use strict";x.d(N,{Xf:()=>ne});var T=x(655),u=x(1144),V=x(8239),O=x(9751),I=x(3670),j=x(2206),W=x(4532),Y=x(6495),G=x(3260),$=x(576),U=x(7849),te=x(8822);function ne(we){if(we instanceof O.y)return we;if(null!=we){if((0,I.c)(we))return function J(we){return new O.y(_e=>{const ve=we[te.L]();if((0,$.m)(ve.subscribe))return ve.subscribe(_e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(we);if((0,u.z)(we))return function ie(we){return new O.y(_e=>{for(let ve=0;ve{we.then(ve=>{_e.closed||(_e.next(ve),_e.complete())},ve=>_e.error(ve)).then(null,U.h)})}(we);if((0,j.D)(we))return ge(we);if((0,Y.T)(we))return function he(we){return new O.y(_e=>{for(const ve of we)if(_e.next(ve),_e.closed)return;_e.complete()})}(we);if((0,G.L)(we))return function Ve(we){return ge((0,G.Q)(we))}(we)}throw(0,W.z)(we)}function ge(we){return new O.y(_e=>{(function Be(we,_e){var ve,Qe,Se,Ee;return(0,T.mG)(this,void 0,void 0,function*(){try{for(ve=(0,T.KL)(we);!(Qe=yield ve.next()).done;)if(_e.next(Qe.value),_e.closed)return}catch(Te){Se={error:Te}}finally{try{Qe&&!Qe.done&&(Ee=ve.return)&&(yield Ee.call(ve))}finally{if(Se)throw Se.error}}_e.complete()})})(we,_e).catch(ve=>_e.error(ve))})}},6451:(F,N,x)=>{"use strict";x.d(N,{T:()=>j});var T=x(8189),u=x(8421),V=x(515),O=x(3269),I=x(2076);function j(...W){const Y=(0,O.yG)(W),G=(0,O._6)(W,1/0),$=W;return $.length?1===$.length?(0,u.Xf)($[0]):(0,T.J)(G)((0,I.D)($,Y)):V.E}},9646:(F,N,x)=>{"use strict";x.d(N,{of:()=>V});var T=x(3269),u=x(2076);function V(...O){const I=(0,T.yG)(O);return(0,u.D)(O,I)}},102:(F,N,x)=>{"use strict";x.d(N,{S:()=>j});var T=x(9751),u=x(8421);const{isArray:V}=Array;var I=x(5403);function j(...Y){return 1===(Y=function O(Y){return 1===Y.length&&V(Y[0])?Y[0]:Y}(Y)).length?(0,u.Xf)(Y[0]):new T.y(function W(Y){return G=>{let $=[];for(let U=0;$&&!G.closed&&U{if($){for(let ne=0;ne<$.length;ne++)ne!==U&&$[ne].unsubscribe();$=null}G.next(te)})))}}(Y))}},2843:(F,N,x)=>{"use strict";x.d(N,{_:()=>V});var T=x(9751),u=x(576);function V(O,I){const j=(0,u.m)(O)?O:()=>O,W=Y=>Y.error(j());return new T.y(I?Y=>I.schedule(W,0,Y):W)}},2805:(F,N,x)=>{"use strict";x.d(N,{H:()=>I});var T=x(9751),u=x(4986),V=x(3532),O=x(1165);function I(j=0,W,Y=u.P){let G=-1;return null!=W&&((0,V.K)(W)?Y=W:G=W),new T.y($=>{let U=(0,O.q)(j)?+j-Y.now():j;U<0&&(U=0);let te=0;return Y.schedule(function(){$.closed||($.next(te++),0<=G?this.schedule(void 0,G):$.complete())},U)})}},5403:(F,N,x)=>{"use strict";x.d(N,{x:()=>u});var T=x(930);function u(O,I,j,W,Y){return new V(O,I,j,W,Y)}class V extends T.Lv{constructor(I,j,W,Y,G,$){super(I),this.onFinalize=G,this.shouldUnsubscribe=$,this._next=j?function(U){try{j(U)}catch(te){I.error(te)}}:super._next,this._error=Y?function(U){try{Y(U)}catch(te){I.error(te)}finally{this.unsubscribe()}}:super._error,this._complete=W?function(){try{W()}catch(U){I.error(U)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var I;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:j}=this;super.unsubscribe(),!j&&(null===(I=this.onFinalize)||void 0===I||I.call(this))}}}},262:(F,N,x)=>{"use strict";x.d(N,{K:()=>O});var T=x(8421),u=x(5403),V=x(4482);function O(I){return(0,V.e)((j,W)=>{let $,Y=null,G=!1;Y=j.subscribe((0,u.x)(W,void 0,void 0,U=>{$=(0,T.Xf)(I(U,O(I)(j))),Y?(Y.unsubscribe(),Y=null,$.subscribe(W)):G=!0})),G&&(Y.unsubscribe(),Y=null,$.subscribe(W))})}},4351:(F,N,x)=>{"use strict";x.d(N,{b:()=>V});var T=x(5577),u=x(576);function V(O,I){return(0,u.m)(I)?(0,T.z)(O,I,1):(0,T.z)(O,1)}},8372:(F,N,x)=>{"use strict";x.d(N,{b:()=>O});var T=x(4986),u=x(4482),V=x(5403);function O(I,j=T.z){return(0,u.e)((W,Y)=>{let G=null,$=null,U=null;const te=()=>{if(G){G.unsubscribe(),G=null;const J=$;$=null,Y.next(J)}};function ne(){const J=U+I,ie=j.now();if(ie{$=J,U=j.now(),G||(G=j.schedule(ne,I),Y.add(G))},()=>{te(),Y.complete()},void 0,()=>{$=G=null}))})}},6590:(F,N,x)=>{"use strict";x.d(N,{d:()=>V});var T=x(4482),u=x(5403);function V(O){return(0,T.e)((I,j)=>{let W=!1;I.subscribe((0,u.x)(j,Y=>{W=!0,j.next(Y)},()=>{W||j.next(O),j.complete()}))})}},1005:(F,N,x)=>{"use strict";x.d(N,{g:()=>te});var T=x(4986),u=x(7272),V=x(5698),O=x(4482),I=x(5403),j=x(5032),Y=x(9718),G=x(5577);function $(ne,J){return J?ie=>(0,u.z)(J.pipe((0,V.q)(1),function W(){return(0,O.e)((ne,J)=>{ne.subscribe((0,I.x)(J,j.Z))})}()),ie.pipe($(ne))):(0,G.z)((ie,de)=>ne(ie,de).pipe((0,V.q)(1),(0,Y.h)(ie)))}var U=x(2805);function te(ne,J=T.z){const ie=(0,U.H)(ne,J);return $(()=>ie)}},9300:(F,N,x)=>{"use strict";x.d(N,{h:()=>V});var T=x(4482),u=x(5403);function V(O,I){return(0,T.e)((j,W)=>{let Y=0;j.subscribe((0,u.x)(W,G=>O.call(I,G,Y++)&&W.next(G)))})}},590:(F,N,x)=>{"use strict";x.d(N,{P:()=>W});var T=x(6805),u=x(9300),V=x(5698),O=x(6590),I=x(8068),j=x(4671);function W(Y,G){const $=arguments.length>=2;return U=>U.pipe(Y?(0,u.h)((te,ne)=>Y(te,ne,U)):j.y,(0,V.q)(1),$?(0,O.d)(G):(0,I.T)(()=>new T.K))}},4004:(F,N,x)=>{"use strict";x.d(N,{U:()=>V});var T=x(4482),u=x(5403);function V(O,I){return(0,T.e)((j,W)=>{let Y=0;j.subscribe((0,u.x)(W,G=>{W.next(O.call(I,G,Y++))}))})}},9718:(F,N,x)=>{"use strict";x.d(N,{h:()=>u});var T=x(4004);function u(V){return(0,T.U)(()=>V)}},8189:(F,N,x)=>{"use strict";x.d(N,{J:()=>V});var T=x(5577),u=x(4671);function V(O=1/0){return(0,T.z)(u.y,O)}},5577:(F,N,x)=>{"use strict";x.d(N,{z:()=>Y});var T=x(4004),u=x(8421),V=x(4482),O=x(9672),I=x(5403),W=x(576);function Y(G,$,U=1/0){return(0,W.m)($)?Y((te,ne)=>(0,T.U)((J,ie)=>$(te,J,ne,ie))((0,u.Xf)(G(te,ne))),U):("number"==typeof $&&(U=$),(0,V.e)((te,ne)=>function j(G,$,U,te,ne,J,ie,de){const he=[];let ge=0,Ve=0,Be=!1;const we=()=>{Be&&!he.length&&!ge&&$.complete()},_e=Qe=>ge{J&&$.next(Qe),ge++;let Se=!1;(0,u.Xf)(U(Qe,Ve++)).subscribe((0,I.x)($,Ee=>{ne?.(Ee),J?_e(Ee):$.next(Ee)},()=>{Se=!0},void 0,()=>{if(Se)try{for(ge--;he.length&&geve(Ee)):ve(Ee)}we()}catch(Ee){$.error(Ee)}}))};return G.subscribe((0,I.x)($,_e,()=>{Be=!0,we()})),()=>{de?.()}}(te,ne,G,U)))}},3099:(F,N,x)=>{"use strict";x.d(N,{B:()=>I});var T=x(8421),u=x(7579),V=x(930),O=x(4482);function I(W={}){const{connector:Y=(()=>new u.x),resetOnError:G=!0,resetOnComplete:$=!0,resetOnRefCountZero:U=!0}=W;return te=>{let ne,J,ie,de=0,he=!1,ge=!1;const Ve=()=>{J?.unsubscribe(),J=void 0},Be=()=>{Ve(),ne=ie=void 0,he=ge=!1},we=()=>{const _e=ne;Be(),_e?.unsubscribe()};return(0,O.e)((_e,ve)=>{de++,!ge&&!he&&Ve();const Qe=ie=ie??Y();ve.add(()=>{de--,0===de&&!ge&&!he&&(J=j(we,U))}),Qe.subscribe(ve),!ne&&de>0&&(ne=new V.Hp({next:Se=>Qe.next(Se),error:Se=>{ge=!0,Ve(),J=j(Be,G,Se),Qe.error(Se)},complete:()=>{he=!0,Ve(),J=j(Be,$),Qe.complete()}}),(0,T.Xf)(_e).subscribe(ne))})(te)}}function j(W,Y,...G){if(!0===Y)return void W();if(!1===Y)return;const $=new V.Hp({next:()=>{$.unsubscribe(),W()}});return Y(...G).subscribe($)}},3900:(F,N,x)=>{"use strict";x.d(N,{w:()=>O});var T=x(8421),u=x(4482),V=x(5403);function O(I,j){return(0,u.e)((W,Y)=>{let G=null,$=0,U=!1;const te=()=>U&&!G&&Y.complete();W.subscribe((0,V.x)(Y,ne=>{G?.unsubscribe();let J=0;const ie=$++;(0,T.Xf)(I(ne,ie)).subscribe(G=(0,V.x)(Y,de=>Y.next(j?j(ne,de,ie,J++):de),()=>{G=null,te()}))},()=>{U=!0,te()}))})}},5698:(F,N,x)=>{"use strict";x.d(N,{q:()=>O});var T=x(515),u=x(4482),V=x(5403);function O(I){return I<=0?()=>T.E:(0,u.e)((j,W)=>{let Y=0;j.subscribe((0,V.x)(W,G=>{++Y<=I&&(W.next(G),I<=Y&&W.complete())}))})}},8505:(F,N,x)=>{"use strict";x.d(N,{b:()=>I});var T=x(576),u=x(4482),V=x(5403),O=x(4671);function I(j,W,Y){const G=(0,T.m)(j)||W||Y?{next:j,error:W,complete:Y}:j;return G?(0,u.e)(($,U)=>{var te;null===(te=G.subscribe)||void 0===te||te.call(G);let ne=!0;$.subscribe((0,V.x)(U,J=>{var ie;null===(ie=G.next)||void 0===ie||ie.call(G,J),U.next(J)},()=>{var J;ne=!1,null===(J=G.complete)||void 0===J||J.call(G),U.complete()},J=>{var ie;ne=!1,null===(ie=G.error)||void 0===ie||ie.call(G,J),U.error(J)},()=>{var J,ie;ne&&(null===(J=G.unsubscribe)||void 0===J||J.call(G)),null===(ie=G.finalize)||void 0===ie||ie.call(G)}))}):O.y}},8068:(F,N,x)=>{"use strict";x.d(N,{T:()=>O});var T=x(6805),u=x(4482),V=x(5403);function O(j=I){return(0,u.e)((W,Y)=>{let G=!1;W.subscribe((0,V.x)(Y,$=>{G=!0,Y.next($)},()=>G?Y.complete():Y.error(j())))})}function I(){return new T.K}},7414:(F,N,x)=>{"use strict";x.d(N,{V:()=>G});var T=x(4986),u=x(1165),V=x(4482),O=x(8421),I=x(3888),j=x(5403),W=x(9672);const Y=(0,I.d)(U=>function(ne=null){U(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=ne});function G(U,te){const{first:ne,each:J,with:ie=$,scheduler:de=te??T.z,meta:he=null}=(0,u.q)(U)?{first:U}:"number"==typeof U?{each:U}:U;if(null==ne&&null==J)throw new TypeError("No timeout provided.");return(0,V.e)((ge,Ve)=>{let Be,we,_e=null,ve=0;const Qe=Se=>{we=(0,W.f)(Ve,de,()=>{try{Be.unsubscribe(),(0,O.Xf)(ie({meta:he,lastValue:_e,seen:ve})).subscribe(Ve)}catch(Ee){Ve.error(Ee)}},Se)};Be=ge.subscribe((0,j.x)(Ve,Se=>{we?.unsubscribe(),ve++,Ve.next(_e=Se),J>0&&Qe(J)},void 0,void 0,()=>{we?.closed||we?.unsubscribe(),_e=null})),!ve&&Qe(null!=ne?"number"==typeof ne?ne:+ne-de.now():J)})}function $(U){throw new Y(U)}},4408:(F,N,x)=>{"use strict";x.d(N,{o:()=>I});var T=x(727);class u extends T.w0{constructor(W,Y){super()}schedule(W,Y=0){return this}}const V={setInterval(j,W,...Y){const{delegate:G}=V;return G?.setInterval?G.setInterval(j,W,...Y):setInterval(j,W,...Y)},clearInterval(j){const{delegate:W}=V;return(W?.clearInterval||clearInterval)(j)},delegate:void 0};var O=x(8737);class I extends u{constructor(W,Y){super(W,Y),this.scheduler=W,this.work=Y,this.pending=!1}schedule(W,Y=0){if(this.closed)return this;this.state=W;const G=this.id,$=this.scheduler;return null!=G&&(this.id=this.recycleAsyncId($,G,Y)),this.pending=!0,this.delay=Y,this.id=this.id||this.requestAsyncId($,this.id,Y),this}requestAsyncId(W,Y,G=0){return V.setInterval(W.flush.bind(W,this),G)}recycleAsyncId(W,Y,G=0){if(null!=G&&this.delay===G&&!1===this.pending)return Y;V.clearInterval(Y)}execute(W,Y){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const G=this._execute(W,Y);if(G)return G;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(W,Y){let $,G=!1;try{this.work(W)}catch(U){G=!0,$=U||new Error("Scheduled action threw falsy error")}if(G)return this.unsubscribe(),$}unsubscribe(){if(!this.closed){const{id:W,scheduler:Y}=this,{actions:G}=Y;this.work=this.state=this.scheduler=null,this.pending=!1,(0,O.P)(G,this),null!=W&&(this.id=this.recycleAsyncId(Y,W,null)),this.delay=null,super.unsubscribe()}}}},7565:(F,N,x)=>{"use strict";x.d(N,{v:()=>V});var T=x(6063);class u{constructor(I,j=u.now){this.schedulerActionCtor=I,this.now=j}schedule(I,j=0,W){return new this.schedulerActionCtor(this,I).schedule(W,j)}}u.now=T.l.now;class V extends u{constructor(I,j=u.now){super(I,j),this.actions=[],this._active=!1,this._scheduled=void 0}flush(I){const{actions:j}=this;if(this._active)return void j.push(I);let W;this._active=!0;do{if(W=I.execute(I.state,I.delay))break}while(I=j.shift());if(this._active=!1,W){for(;I=j.shift();)I.unsubscribe();throw W}}}},4986:(F,N,x)=>{"use strict";x.d(N,{P:()=>O,z:()=>V});var T=x(4408);const V=new(x(7565).v)(T.o),O=V},6063:(F,N,x)=>{"use strict";x.d(N,{l:()=>T});const T={now:()=>(T.delegate||Date).now(),delegate:void 0}},3410:(F,N,x)=>{"use strict";x.d(N,{z:()=>T});const T={setTimeout(u,V,...O){const{delegate:I}=T;return I?.setTimeout?I.setTimeout(u,V,...O):setTimeout(u,V,...O)},clearTimeout(u){const{delegate:V}=T;return(V?.clearTimeout||clearTimeout)(u)},delegate:void 0}},2202:(F,N,x)=>{"use strict";x.d(N,{h:()=>u});const u=function T(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(F,N,x)=>{"use strict";x.d(N,{L:()=>T});const T="function"==typeof Symbol&&Symbol.observable||"@@observable"},6805:(F,N,x)=>{"use strict";x.d(N,{K:()=>u});const u=(0,x(3888).d)(V=>function(){V(this),this.name="EmptyError",this.message="no elements in sequence"})},3269:(F,N,x)=>{"use strict";x.d(N,{_6:()=>j,jO:()=>O,yG:()=>I});var T=x(576),u=x(3532);function V(W){return W[W.length-1]}function O(W){return(0,T.m)(V(W))?W.pop():void 0}function I(W){return(0,u.K)(V(W))?W.pop():void 0}function j(W,Y){return"number"==typeof V(W)?W.pop():Y}},4742:(F,N,x)=>{"use strict";x.d(N,{D:()=>I});const{isArray:T}=Array,{getPrototypeOf:u,prototype:V,keys:O}=Object;function I(W){if(1===W.length){const Y=W[0];if(T(Y))return{args:Y,keys:null};if(function j(W){return W&&"object"==typeof W&&u(W)===V}(Y)){const G=O(Y);return{args:G.map($=>Y[$]),keys:G}}}return{args:W,keys:null}}},8737:(F,N,x)=>{"use strict";function T(u,V){if(u){const O=u.indexOf(V);0<=O&&u.splice(O,1)}}x.d(N,{P:()=>T})},3888:(F,N,x)=>{"use strict";function T(u){const O=u(I=>{Error.call(I),I.stack=(new Error).stack});return O.prototype=Object.create(Error.prototype),O.prototype.constructor=O,O}x.d(N,{d:()=>T})},1810:(F,N,x)=>{"use strict";function T(u,V){return u.reduce((O,I,j)=>(O[I]=V[j],O),{})}x.d(N,{n:()=>T})},2806:(F,N,x)=>{"use strict";x.d(N,{O:()=>O,x:()=>V});var T=x(2416);let u=null;function V(I){if(T.v.useDeprecatedSynchronousErrorHandling){const j=!u;if(j&&(u={errorThrown:!1,error:null}),I(),j){const{errorThrown:W,error:Y}=u;if(u=null,W)throw Y}}else I()}function O(I){T.v.useDeprecatedSynchronousErrorHandling&&u&&(u.errorThrown=!0,u.error=I)}},9672:(F,N,x)=>{"use strict";function T(u,V,O,I=0,j=!1){const W=V.schedule(function(){O(),j?u.add(this.schedule(null,I)):this.unsubscribe()},I);if(u.add(W),!j)return W}x.d(N,{f:()=>T})},4671:(F,N,x)=>{"use strict";function T(u){return u}x.d(N,{y:()=>T})},1144:(F,N,x)=>{"use strict";x.d(N,{z:()=>T});const T=u=>u&&"number"==typeof u.length&&"function"!=typeof u},2206:(F,N,x)=>{"use strict";x.d(N,{D:()=>u});var T=x(576);function u(V){return Symbol.asyncIterator&&(0,T.m)(V?.[Symbol.asyncIterator])}},1165:(F,N,x)=>{"use strict";function T(u){return u instanceof Date&&!isNaN(u)}x.d(N,{q:()=>T})},576:(F,N,x)=>{"use strict";function T(u){return"function"==typeof u}x.d(N,{m:()=>T})},3670:(F,N,x)=>{"use strict";x.d(N,{c:()=>V});var T=x(8822),u=x(576);function V(O){return(0,u.m)(O[T.L])}},6495:(F,N,x)=>{"use strict";x.d(N,{T:()=>V});var T=x(2202),u=x(576);function V(O){return(0,u.m)(O?.[T.h])}},8239:(F,N,x)=>{"use strict";x.d(N,{t:()=>u});var T=x(576);function u(V){return(0,T.m)(V?.then)}},3260:(F,N,x)=>{"use strict";x.d(N,{L:()=>O,Q:()=>V});var T=x(655),u=x(576);function V(I){return(0,T.FC)(this,arguments,function*(){const W=I.getReader();try{for(;;){const{value:Y,done:G}=yield(0,T.qq)(W.read());if(G)return yield(0,T.qq)(void 0);yield yield(0,T.qq)(Y)}}finally{W.releaseLock()}})}function O(I){return(0,u.m)(I?.getReader)}},3532:(F,N,x)=>{"use strict";x.d(N,{K:()=>u});var T=x(576);function u(V){return V&&(0,T.m)(V.schedule)}},4482:(F,N,x)=>{"use strict";x.d(N,{A:()=>u,e:()=>V});var T=x(576);function u(O){return(0,T.m)(O?.lift)}function V(O){return I=>{if(u(I))return I.lift(function(j){try{return O(j,this)}catch(W){this.error(W)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(F,N,x)=>{"use strict";x.d(N,{Z:()=>O});var T=x(4004);const{isArray:u}=Array;function O(I){return(0,T.U)(j=>function V(I,j){return u(j)?I(...j):I(j)}(I,j))}},5032:(F,N,x)=>{"use strict";function T(){}x.d(N,{Z:()=>T})},9635:(F,N,x)=>{"use strict";x.d(N,{U:()=>V,z:()=>u});var T=x(4671);function u(...O){return V(O)}function V(O){return 0===O.length?T.y:1===O.length?O[0]:function(j){return O.reduce((W,Y)=>Y(W),j)}}},7849:(F,N,x)=>{"use strict";x.d(N,{h:()=>V});var T=x(2416),u=x(3410);function V(O){u.z.setTimeout(()=>{const{onUnhandledError:I}=T.v;if(!I)throw O;I(O)})}},4532:(F,N,x)=>{"use strict";function T(u){return new TypeError(`You provided ${null!==u&&"object"==typeof u?"an invalid object":`'${u}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}x.d(N,{z:()=>T})},655:(F,N,x)=>{"use strict";function Y(oe,se,fe,ue){return new(fe||(fe=Promise))(function(He,ot){function Tt(Di){try{Le(ue.next(Di))}catch(Gn){ot(Gn)}}function kt(Di){try{Le(ue.throw(Di))}catch(Gn){ot(Gn)}}function Le(Di){Di.done?He(Di.value):function Re(He){return He instanceof fe?He:new fe(function(ot){ot(He)})}(Di.value).then(Tt,kt)}Le((ue=ue.apply(oe,se||[])).next())})}function he(oe){return this instanceof he?(this.v=oe,this):new he(oe)}function ge(oe,se,fe){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Re,ue=fe.apply(oe,se||[]),He=[];return Re={},ot("next"),ot("throw"),ot("return"),Re[Symbol.asyncIterator]=function(){return this},Re;function ot(Ut){ue[Ut]&&(Re[Ut]=function(Dt){return new Promise(function(xn,oi){He.push([Ut,Dt,xn,oi])>1||Tt(Ut,Dt)})})}function Tt(Ut,Dt){try{!function kt(Ut){Ut.value instanceof he?Promise.resolve(Ut.value.v).then(Le,Di):Gn(He[0][2],Ut)}(ue[Ut](Dt))}catch(xn){Gn(He[0][3],xn)}}function Le(Ut){Tt("next",Ut)}function Di(Ut){Tt("throw",Ut)}function Gn(Ut,Dt){Ut(Dt),He.shift(),He.length&&Tt(He[0][0],He[0][1])}}function Be(oe){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var fe,se=oe[Symbol.asyncIterator];return se?se.call(oe):(oe=function te(oe){var se="function"==typeof Symbol&&Symbol.iterator,fe=se&&oe[se],ue=0;if(fe)return fe.call(oe);if(oe&&"number"==typeof oe.length)return{next:function(){return oe&&ue>=oe.length&&(oe=void 0),{value:oe&&oe[ue++],done:!oe}}};throw new TypeError(se?"Object is not iterable.":"Symbol.iterator is not defined.")}(oe),fe={},ue("next"),ue("throw"),ue("return"),fe[Symbol.asyncIterator]=function(){return this},fe);function ue(He){fe[He]=oe[He]&&function(ot){return new Promise(function(Tt,kt){!function Re(He,ot,Tt,kt){Promise.resolve(kt).then(function(Le){He({value:Le,done:Tt})},ot)}(Tt,kt,(ot=oe[He](ot)).done,ot.value)})}}}x.d(N,{FC:()=>ge,KL:()=>Be,mG:()=>Y,qq:()=>he})},6895:(F,N,x)=>{"use strict";x.d(N,{Do:()=>Be,EM:()=>za,HT:()=>I,JF:()=>bt,K0:()=>W,Mx:()=>mu,NF:()=>Ls,O5:()=>Ii,Ov:()=>Tf,PC:()=>xf,RF:()=>Jr,S$:()=>he,V_:()=>$,Ye:()=>we,b0:()=>Ve,bD:()=>ti,ez:()=>pn,mk:()=>pc,n9:()=>en,q:()=>V,sg:()=>un,w_:()=>j});var T=x(4650);let u=null;function V(){return u}function I(M){u||(u=M)}class j{}const W=new T.OlP("DocumentToken");let Y=(()=>{class M{historyGo(D){throw new Error("Not implemented")}}return M.\u0275fac=function(D){return new(D||M)},M.\u0275prov=T.Yz7({token:M,factory:function(){return function G(){return(0,T.LFG)(U)}()},providedIn:"platform"}),M})();const $=new T.OlP("Location Initialized");let U=(()=>{class M extends Y{constructor(D){super(),this._doc=D,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return V().getBaseHref(this._doc)}onPopState(D){const B=V().getGlobalEventTarget(this._doc,"window");return B.addEventListener("popstate",D,!1),()=>B.removeEventListener("popstate",D)}onHashChange(D){const B=V().getGlobalEventTarget(this._doc,"window");return B.addEventListener("hashchange",D,!1),()=>B.removeEventListener("hashchange",D)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(D){this.location.pathname=D}pushState(D,B,ee){te()?this._history.pushState(D,B,ee):this.location.hash=ee}replaceState(D,B,ee){te()?this._history.replaceState(D,B,ee):this.location.hash=ee}forward(){this._history.forward()}back(){this._history.back()}historyGo(D=0){this._history.go(D)}getState(){return this._history.state}}return M.\u0275fac=function(D){return new(D||M)(T.LFG(W))},M.\u0275prov=T.Yz7({token:M,factory:function(){return function ne(){return new U((0,T.LFG)(W))}()},providedIn:"platform"}),M})();function te(){return!!window.history.pushState}function J(M,k){if(0==M.length)return k;if(0==k.length)return M;let D=0;return M.endsWith("/")&&D++,k.startsWith("/")&&D++,2==D?M+k.substring(1):1==D?M+k:M+"/"+k}function ie(M){const k=M.match(/#|\?|$/),D=k&&k.index||M.length;return M.slice(0,D-("/"===M[D-1]?1:0))+M.slice(D)}function de(M){return M&&"?"!==M[0]?"?"+M:M}let he=(()=>{class M{historyGo(D){throw new Error("Not implemented")}}return M.\u0275fac=function(D){return new(D||M)},M.\u0275prov=T.Yz7({token:M,factory:function(){return(0,T.f3M)(Ve)},providedIn:"root"}),M})();const ge=new T.OlP("appBaseHref");let Ve=(()=>{class M extends he{constructor(D,B){super(),this._platformLocation=D,this._removeListenerFns=[],this._baseHref=B??this._platformLocation.getBaseHrefFromDOM()??(0,T.f3M)(W).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(D){this._removeListenerFns.push(this._platformLocation.onPopState(D),this._platformLocation.onHashChange(D))}getBaseHref(){return this._baseHref}prepareExternalUrl(D){return J(this._baseHref,D)}path(D=!1){const B=this._platformLocation.pathname+de(this._platformLocation.search),ee=this._platformLocation.hash;return ee&&D?`${B}${ee}`:B}pushState(D,B,ee,pe){const le=this.prepareExternalUrl(ee+de(pe));this._platformLocation.pushState(D,B,le)}replaceState(D,B,ee,pe){const le=this.prepareExternalUrl(ee+de(pe));this._platformLocation.replaceState(D,B,le)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(D=0){this._platformLocation.historyGo?.(D)}}return M.\u0275fac=function(D){return new(D||M)(T.LFG(Y),T.LFG(ge,8))},M.\u0275prov=T.Yz7({token:M,factory:M.\u0275fac,providedIn:"root"}),M})(),Be=(()=>{class M extends he{constructor(D,B){super(),this._platformLocation=D,this._baseHref="",this._removeListenerFns=[],null!=B&&(this._baseHref=B)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(D){this._removeListenerFns.push(this._platformLocation.onPopState(D),this._platformLocation.onHashChange(D))}getBaseHref(){return this._baseHref}path(D=!1){let B=this._platformLocation.hash;return null==B&&(B="#"),B.length>0?B.substring(1):B}prepareExternalUrl(D){const B=J(this._baseHref,D);return B.length>0?"#"+B:B}pushState(D,B,ee,pe){let le=this.prepareExternalUrl(ee+de(pe));0==le.length&&(le=this._platformLocation.pathname),this._platformLocation.pushState(D,B,le)}replaceState(D,B,ee,pe){let le=this.prepareExternalUrl(ee+de(pe));0==le.length&&(le=this._platformLocation.pathname),this._platformLocation.replaceState(D,B,le)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(D=0){this._platformLocation.historyGo?.(D)}}return M.\u0275fac=function(D){return new(D||M)(T.LFG(Y),T.LFG(ge,8))},M.\u0275prov=T.Yz7({token:M,factory:M.\u0275fac}),M})(),we=(()=>{class M{constructor(D){this._subject=new T.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=D;const B=this._locationStrategy.getBaseHref();this._baseHref=ie(Qe(B)),this._locationStrategy.onPopState(ee=>{this._subject.emit({url:this.path(!0),pop:!0,state:ee.state,type:ee.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(D=!1){return this.normalize(this._locationStrategy.path(D))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(D,B=""){return this.path()==this.normalize(D+de(B))}normalize(D){return M.stripTrailingSlash(function ve(M,k){return M&&k.startsWith(M)?k.substring(M.length):k}(this._baseHref,Qe(D)))}prepareExternalUrl(D){return D&&"/"!==D[0]&&(D="/"+D),this._locationStrategy.prepareExternalUrl(D)}go(D,B="",ee=null){this._locationStrategy.pushState(ee,"",D,B),this._notifyUrlChangeListeners(this.prepareExternalUrl(D+de(B)),ee)}replaceState(D,B="",ee=null){this._locationStrategy.replaceState(ee,"",D,B),this._notifyUrlChangeListeners(this.prepareExternalUrl(D+de(B)),ee)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(D=0){this._locationStrategy.historyGo?.(D)}onUrlChange(D){return this._urlChangeListeners.push(D),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(B=>{this._notifyUrlChangeListeners(B.url,B.state)})),()=>{const B=this._urlChangeListeners.indexOf(D);this._urlChangeListeners.splice(B,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(D="",B){this._urlChangeListeners.forEach(ee=>ee(D,B))}subscribe(D,B,ee){return this._subject.subscribe({next:D,error:B,complete:ee})}}return M.normalizeQueryParams=de,M.joinWithSlash=J,M.stripTrailingSlash=ie,M.\u0275fac=function(D){return new(D||M)(T.LFG(he))},M.\u0275prov=T.Yz7({token:M,factory:function(){return function _e(){return new we((0,T.LFG)(he))}()},providedIn:"root"}),M})();function Qe(M){return M.replace(/\/index.html$/,"")}function mu(M,k){k=encodeURIComponent(k);for(const D of M.split(";")){const B=D.indexOf("="),[ee,pe]=-1==B?[D,""]:[D.slice(0,B),D.slice(B+1)];if(ee.trim()===k)return decodeURIComponent(pe)}return null}let pc=(()=>{class M{constructor(D,B,ee,pe){this._iterableDiffers=D,this._keyValueDiffers=B,this._ngEl=ee,this._renderer=pe,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(D){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof D?D.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(D){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof D?D.split(/\s+/):D,this._rawClass&&((0,T.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const D=this._iterableDiffer.diff(this._rawClass);D&&this._applyIterableChanges(D)}else if(this._keyValueDiffer){const D=this._keyValueDiffer.diff(this._rawClass);D&&this._applyKeyValueChanges(D)}}_applyKeyValueChanges(D){D.forEachAddedItem(B=>this._toggleClass(B.key,B.currentValue)),D.forEachChangedItem(B=>this._toggleClass(B.key,B.currentValue)),D.forEachRemovedItem(B=>{B.previousValue&&this._toggleClass(B.key,!1)})}_applyIterableChanges(D){D.forEachAddedItem(B=>{if("string"!=typeof B.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,T.AaK)(B.item)}`);this._toggleClass(B.item,!0)}),D.forEachRemovedItem(B=>this._toggleClass(B.item,!1))}_applyClasses(D){D&&(Array.isArray(D)||D instanceof Set?D.forEach(B=>this._toggleClass(B,!0)):Object.keys(D).forEach(B=>this._toggleClass(B,!!D[B])))}_removeClasses(D){D&&(Array.isArray(D)||D instanceof Set?D.forEach(B=>this._toggleClass(B,!1)):Object.keys(D).forEach(B=>this._toggleClass(B,!1)))}_toggleClass(D,B){(D=D.trim())&&D.split(/\s+/g).forEach(ee=>{B?this._renderer.addClass(this._ngEl.nativeElement,ee):this._renderer.removeClass(this._ngEl.nativeElement,ee)})}}return M.\u0275fac=function(D){return new(D||M)(T.Y36(T.ZZ4),T.Y36(T.aQg),T.Y36(T.SBq),T.Y36(T.Qsj))},M.\u0275dir=T.lG2({type:M,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),M})();class xr{constructor(k,D,B,ee){this.$implicit=k,this.ngForOf=D,this.index=B,this.count=ee}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 un=(()=>{class M{constructor(D,B,ee){this._viewContainer=D,this._template=B,this._differs=ee,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(D){this._ngForOf=D,this._ngForOfDirty=!0}set ngForTrackBy(D){this._trackByFn=D}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(D){D&&(this._template=D)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const D=this._ngForOf;!this._differ&&D&&(this._differ=this._differs.find(D).create(this.ngForTrackBy))}if(this._differ){const D=this._differ.diff(this._ngForOf);D&&this._applyChanges(D)}}_applyChanges(D){const B=this._viewContainer;D.forEachOperation((ee,pe,le)=>{if(null==ee.previousIndex)B.createEmbeddedView(this._template,new xr(ee.item,this._ngForOf,-1,-1),null===le?void 0:le);else if(null==le)B.remove(null===pe?void 0:pe);else if(null!==pe){const Ue=B.get(pe);B.move(Ue,le),_i(Ue,ee)}});for(let ee=0,pe=B.length;ee{_i(B.get(ee.currentIndex),ee)})}static ngTemplateContextGuard(D,B){return!0}}return M.\u0275fac=function(D){return new(D||M)(T.Y36(T.s_b),T.Y36(T.Rgc),T.Y36(T.ZZ4))},M.\u0275dir=T.lG2({type:M,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),M})();function _i(M,k){M.context.$implicit=k.item}let Ii=(()=>{class M{constructor(D,B){this._viewContainer=D,this._context=new hn,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=B}set ngIf(D){this._context.$implicit=this._context.ngIf=D,this._updateView()}set ngIfThen(D){Bs("ngIfThen",D),this._thenTemplateRef=D,this._thenViewRef=null,this._updateView()}set ngIfElse(D){Bs("ngIfElse",D),this._elseTemplateRef=D,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(D,B){return!0}}return M.\u0275fac=function(D){return new(D||M)(T.Y36(T.s_b),T.Y36(T.Rgc))},M.\u0275dir=T.lG2({type:M,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),M})();class hn{constructor(){this.$implicit=null,this.ngIf=null}}function Bs(M,k){if(k&&!k.createEmbeddedView)throw new Error(`${M} must be a TemplateRef, but received '${(0,T.AaK)(k)}'.`)}class Na{constructor(k,D){this._viewContainerRef=k,this._templateRef=D,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(k){k&&!this._created?this.create():!k&&this._created&&this.destroy()}}let Jr=(()=>{class M{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(D){this._ngSwitch=D,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(D){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(D)}_matchCase(D){const B=D==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||B,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),B}_updateDefaultCases(D){if(this._defaultViews&&D!==this._defaultUsed){this._defaultUsed=D;for(let B=0;B{class M{constructor(D,B,ee){this.ngSwitch=ee,ee._addCase(),this._view=new Na(D,B)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return M.\u0275fac=function(D){return new(D||M)(T.Y36(T.s_b),T.Y36(T.Rgc),T.Y36(Jr,9))},M.\u0275dir=T.lG2({type:M,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),M})(),xf=(()=>{class M{constructor(D,B,ee){this._ngEl=D,this._differs=B,this._renderer=ee,this._ngStyle=null,this._differ=null}set ngStyle(D){this._ngStyle=D,!this._differ&&D&&(this._differ=this._differs.find(D).create())}ngDoCheck(){if(this._differ){const D=this._differ.diff(this._ngStyle);D&&this._applyChanges(D)}}_setStyle(D,B){const[ee,pe]=D.split("."),le=-1===ee.indexOf("-")?void 0:T.JOm.DashCase;null!=B?this._renderer.setStyle(this._ngEl.nativeElement,ee,pe?`${B}${pe}`:B,le):this._renderer.removeStyle(this._ngEl.nativeElement,ee,le)}_applyChanges(D){D.forEachRemovedItem(B=>this._setStyle(B.key,null)),D.forEachAddedItem(B=>this._setStyle(B.key,B.currentValue)),D.forEachChangedItem(B=>this._setStyle(B.key,B.currentValue))}}return M.\u0275fac=function(D){return new(D||M)(T.Y36(T.SBq),T.Y36(T.aQg),T.Y36(T.Qsj))},M.\u0275dir=T.lG2({type:M,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),M})();class LC{createSubscription(k,D){return k.subscribe({next:D,error:B=>{throw B}})}dispose(k){k.unsubscribe()}}class FC{createSubscription(k,D){return k.then(D,B=>{throw B})}dispose(k){}}const jC=new FC,NC=new LC;let Tf=(()=>{class M{constructor(D){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=D}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(D){return this._obj?D!==this._obj?(this._dispose(),this.transform(D)):this._latestValue:(D&&this._subscribe(D),this._latestValue)}_subscribe(D){this._obj=D,this._strategy=this._selectStrategy(D),this._subscription=this._strategy.createSubscription(D,B=>this._updateLatestValue(D,B))}_selectStrategy(D){if((0,T.QGY)(D))return jC;if((0,T.F4k)(D))return NC;throw function En(M,k){return new T.vHH(2100,!1)}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(D,B){D===this._obj&&(this._latestValue=B,this._ref.markForCheck())}}return M.\u0275fac=function(D){return new(D||M)(T.Y36(T.sBO,16))},M.\u0275pipe=T.Yjl({name:"async",type:M,pure:!1,standalone:!0}),M})(),pn=(()=>{class M{}return M.\u0275fac=function(D){return new(D||M)},M.\u0275mod=T.oAB({type:M}),M.\u0275inj=T.cJS({}),M})();const ti="browser";function Ls(M){return M===ti}let za=(()=>{class M{}return M.\u0275prov=(0,T.Yz7)({token:M,providedIn:"root",factory:()=>new It((0,T.LFG)(W),window)}),M})();class It{constructor(k,D){this.document=k,this.window=D,this.offset=()=>[0,0]}setOffset(k){this.offset=Array.isArray(k)?()=>k:k}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(k){this.supportsScrolling()&&this.window.scrollTo(k[0],k[1])}scrollToAnchor(k){if(!this.supportsScrolling())return;const D=function fn(M,k){const D=M.getElementById(k)||M.getElementsByName(k)[0];if(D)return D;if("function"==typeof M.createTreeWalker&&M.body&&(M.body.createShadowRoot||M.body.attachShadow)){const B=M.createTreeWalker(M.body,NodeFilter.SHOW_ELEMENT);let ee=B.currentNode;for(;ee;){const pe=ee.shadowRoot;if(pe){const le=pe.getElementById(k)||pe.querySelector(`[name="${k}"]`);if(le)return le}ee=B.nextNode()}}return null}(this.document,k);D&&(this.scrollToElement(D),D.focus())}setHistoryScrollRestoration(k){if(this.supportScrollRestoration()){const D=this.window.history;D&&D.scrollRestoration&&(D.scrollRestoration=k)}}scrollToElement(k){const D=k.getBoundingClientRect(),B=D.left+this.window.pageXOffset,ee=D.top+this.window.pageYOffset,pe=this.offset();this.window.scrollTo(B-pe[0],ee-pe[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const k=yi(this.window.history)||yi(Object.getPrototypeOf(this.window.history));return!(!k||!k.writable&&!k.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function yi(M){return Object.getOwnPropertyDescriptor(M,"scrollRestoration")}class bt{}},529:(F,N,x)=>{"use strict";x.d(N,{JF:()=>fu,LE:()=>ge,TP:()=>Tt,WM:()=>$,Zn:()=>fe,eN:()=>He,qT:()=>Be});var T=x(6895),u=x(4650),V=x(9646),O=x(9751),I=x(4351),j=x(9300),W=x(4004);class Y{}class G{}class ${constructor(Q){this.normalizedNames=new Map,this.lazyUpdate=null,Q?this.lazyInit="string"==typeof Q?()=>{this.headers=new Map,Q.split("\n").forEach(q=>{const ce=q.indexOf(":");if(ce>0){const Ae=q.slice(0,ce),et=Ae.toLowerCase(),dt=q.slice(ce+1).trim();this.maybeSetNormalizedName(Ae,et),this.headers.has(et)?this.headers.get(et).push(dt):this.headers.set(et,[dt])}})}:()=>{this.headers=new Map,Object.keys(Q).forEach(q=>{let ce=Q[q];const Ae=q.toLowerCase();"string"==typeof ce&&(ce=[ce]),ce.length>0&&(this.headers.set(Ae,ce),this.maybeSetNormalizedName(q,Ae))})}:this.headers=new Map}has(Q){return this.init(),this.headers.has(Q.toLowerCase())}get(Q){this.init();const q=this.headers.get(Q.toLowerCase());return q&&q.length>0?q[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(Q){return this.init(),this.headers.get(Q.toLowerCase())||null}append(Q,q){return this.clone({name:Q,value:q,op:"a"})}set(Q,q){return this.clone({name:Q,value:q,op:"s"})}delete(Q,q){return this.clone({name:Q,value:q,op:"d"})}maybeSetNormalizedName(Q,q){this.normalizedNames.has(q)||this.normalizedNames.set(q,Q)}init(){this.lazyInit&&(this.lazyInit instanceof $?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(Q=>this.applyUpdate(Q)),this.lazyUpdate=null))}copyFrom(Q){Q.init(),Array.from(Q.headers.keys()).forEach(q=>{this.headers.set(q,Q.headers.get(q)),this.normalizedNames.set(q,Q.normalizedNames.get(q))})}clone(Q){const q=new $;return q.lazyInit=this.lazyInit&&this.lazyInit instanceof $?this.lazyInit:this,q.lazyUpdate=(this.lazyUpdate||[]).concat([Q]),q}applyUpdate(Q){const q=Q.name.toLowerCase();switch(Q.op){case"a":case"s":let ce=Q.value;if("string"==typeof ce&&(ce=[ce]),0===ce.length)return;this.maybeSetNormalizedName(Q.name,q);const Ae=("a"===Q.op?this.headers.get(q):void 0)||[];Ae.push(...ce),this.headers.set(q,Ae);break;case"d":const et=Q.value;if(et){let dt=this.headers.get(q);if(!dt)return;dt=dt.filter(Ne=>-1===et.indexOf(Ne)),0===dt.length?(this.headers.delete(q),this.normalizedNames.delete(q)):this.headers.set(q,dt)}else this.headers.delete(q),this.normalizedNames.delete(q)}}forEach(Q){this.init(),Array.from(this.normalizedNames.keys()).forEach(q=>Q(this.normalizedNames.get(q),this.headers.get(q)))}}class te{encodeKey(Q){return de(Q)}encodeValue(Q){return de(Q)}decodeKey(Q){return decodeURIComponent(Q)}decodeValue(Q){return decodeURIComponent(Q)}}const J=/%(\d[a-f0-9])/gi,ie={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function de(Ce){return encodeURIComponent(Ce).replace(J,(Q,q)=>ie[q]??Q)}function he(Ce){return`${Ce}`}class ge{constructor(Q={}){if(this.updates=null,this.cloneFrom=null,this.encoder=Q.encoder||new te,Q.fromString){if(Q.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function ne(Ce,Q){const q=new Map;return Ce.length>0&&Ce.replace(/^\?/,"").split("&").forEach(Ae=>{const et=Ae.indexOf("="),[dt,Ne]=-1==et?[Q.decodeKey(Ae),""]:[Q.decodeKey(Ae.slice(0,et)),Q.decodeValue(Ae.slice(et+1))],Je=q.get(dt)||[];Je.push(Ne),q.set(dt,Je)}),q}(Q.fromString,this.encoder)}else Q.fromObject?(this.map=new Map,Object.keys(Q.fromObject).forEach(q=>{const ce=Q.fromObject[q],Ae=Array.isArray(ce)?ce.map(he):[he(ce)];this.map.set(q,Ae)})):this.map=null}has(Q){return this.init(),this.map.has(Q)}get(Q){this.init();const q=this.map.get(Q);return q?q[0]:null}getAll(Q){return this.init(),this.map.get(Q)||null}keys(){return this.init(),Array.from(this.map.keys())}append(Q,q){return this.clone({param:Q,value:q,op:"a"})}appendAll(Q){const q=[];return Object.keys(Q).forEach(ce=>{const Ae=Q[ce];Array.isArray(Ae)?Ae.forEach(et=>{q.push({param:ce,value:et,op:"a"})}):q.push({param:ce,value:Ae,op:"a"})}),this.clone(q)}set(Q,q){return this.clone({param:Q,value:q,op:"s"})}delete(Q,q){return this.clone({param:Q,value:q,op:"d"})}toString(){return this.init(),this.keys().map(Q=>{const q=this.encoder.encodeKey(Q);return this.map.get(Q).map(ce=>q+"="+this.encoder.encodeValue(ce)).join("&")}).filter(Q=>""!==Q).join("&")}clone(Q){const q=new ge({encoder:this.encoder});return q.cloneFrom=this.cloneFrom||this,q.updates=(this.updates||[]).concat(Q),q}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(Q=>this.map.set(Q,this.cloneFrom.map.get(Q))),this.updates.forEach(Q=>{switch(Q.op){case"a":case"s":const q=("a"===Q.op?this.map.get(Q.param):void 0)||[];q.push(he(Q.value)),this.map.set(Q.param,q);break;case"d":if(void 0===Q.value){this.map.delete(Q.param);break}{let ce=this.map.get(Q.param)||[];const Ae=ce.indexOf(he(Q.value));-1!==Ae&&ce.splice(Ae,1),ce.length>0?this.map.set(Q.param,ce):this.map.delete(Q.param)}}}),this.cloneFrom=this.updates=null)}}class Be{constructor(){this.map=new Map}set(Q,q){return this.map.set(Q,q),this}get(Q){return this.map.has(Q)||this.map.set(Q,Q.defaultValue()),this.map.get(Q)}delete(Q){return this.map.delete(Q),this}has(Q){return this.map.has(Q)}keys(){return this.map.keys()}}function _e(Ce){return typeof ArrayBuffer<"u"&&Ce instanceof ArrayBuffer}function ve(Ce){return typeof Blob<"u"&&Ce instanceof Blob}function Qe(Ce){return typeof FormData<"u"&&Ce instanceof FormData}class Ee{constructor(Q,q,ce,Ae){let et;if(this.url=q,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=Q.toUpperCase(),function we(Ce){switch(Ce){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Ae?(this.body=void 0!==ce?ce:null,et=Ae):et=ce,et&&(this.reportProgress=!!et.reportProgress,this.withCredentials=!!et.withCredentials,et.responseType&&(this.responseType=et.responseType),et.headers&&(this.headers=et.headers),et.context&&(this.context=et.context),et.params&&(this.params=et.params)),this.headers||(this.headers=new $),this.context||(this.context=new Be),this.params){const dt=this.params.toString();if(0===dt.length)this.urlWithParams=q;else{const Ne=q.indexOf("?");this.urlWithParams=q+(-1===Ne?"?":NeXi.set(it,Q.setHeaders[it]),Je)),Q.setParams&&(Zt=Object.keys(Q.setParams).reduce((Xi,it)=>Xi.set(it,Q.setParams[it]),Zt)),new Ee(q,ce,et,{params:Zt,headers:Je,context:vt,reportProgress:Ne,responseType:Ae,withCredentials:dt})}}var Te=(()=>((Te=Te||{})[Te.Sent=0]="Sent",Te[Te.UploadProgress=1]="UploadProgress",Te[Te.ResponseHeader=2]="ResponseHeader",Te[Te.DownloadProgress=3]="DownloadProgress",Te[Te.Response=4]="Response",Te[Te.User=5]="User",Te))();class oe{constructor(Q,q=200,ce="OK"){this.headers=Q.headers||new $,this.status=void 0!==Q.status?Q.status:q,this.statusText=Q.statusText||ce,this.url=Q.url||null,this.ok=this.status>=200&&this.status<300}}class se extends oe{constructor(Q={}){super(Q),this.type=Te.ResponseHeader}clone(Q={}){return new se({headers:Q.headers||this.headers,status:void 0!==Q.status?Q.status:this.status,statusText:Q.statusText||this.statusText,url:Q.url||this.url||void 0})}}class fe extends oe{constructor(Q={}){super(Q),this.type=Te.Response,this.body=void 0!==Q.body?Q.body:null}clone(Q={}){return new fe({body:void 0!==Q.body?Q.body:this.body,headers:Q.headers||this.headers,status:void 0!==Q.status?Q.status:this.status,statusText:Q.statusText||this.statusText,url:Q.url||this.url||void 0})}}class ue extends oe{constructor(Q){super(Q,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${Q.url||"(unknown url)"}`:`Http failure response for ${Q.url||"(unknown url)"}: ${Q.status} ${Q.statusText}`,this.error=Q.error||null}}function Re(Ce,Q){return{body:Q,headers:Ce.headers,context:Ce.context,observe:Ce.observe,params:Ce.params,reportProgress:Ce.reportProgress,responseType:Ce.responseType,withCredentials:Ce.withCredentials}}let He=(()=>{class Ce{constructor(q){this.handler=q}request(q,ce,Ae={}){let et;if(q instanceof Ee)et=q;else{let Je,Zt;Je=Ae.headers instanceof $?Ae.headers:new $(Ae.headers),Ae.params&&(Zt=Ae.params instanceof ge?Ae.params:new ge({fromObject:Ae.params})),et=new Ee(q,ce,void 0!==Ae.body?Ae.body:null,{headers:Je,context:Ae.context,params:Zt,reportProgress:Ae.reportProgress,responseType:Ae.responseType||"json",withCredentials:Ae.withCredentials})}const dt=(0,V.of)(et).pipe((0,I.b)(Je=>this.handler.handle(Je)));if(q instanceof Ee||"events"===Ae.observe)return dt;const Ne=dt.pipe((0,j.h)(Je=>Je instanceof fe));switch(Ae.observe||"body"){case"body":switch(et.responseType){case"arraybuffer":return Ne.pipe((0,W.U)(Je=>{if(null!==Je.body&&!(Je.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Je.body}));case"blob":return Ne.pipe((0,W.U)(Je=>{if(null!==Je.body&&!(Je.body instanceof Blob))throw new Error("Response is not a Blob.");return Je.body}));case"text":return Ne.pipe((0,W.U)(Je=>{if(null!==Je.body&&"string"!=typeof Je.body)throw new Error("Response is not a string.");return Je.body}));default:return Ne.pipe((0,W.U)(Je=>Je.body))}case"response":return Ne;default:throw new Error(`Unreachable: unhandled observe type ${Ae.observe}}`)}}delete(q,ce={}){return this.request("DELETE",q,ce)}get(q,ce={}){return this.request("GET",q,ce)}head(q,ce={}){return this.request("HEAD",q,ce)}jsonp(q,ce){return this.request("JSONP",q,{params:(new ge).append(ce,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(q,ce={}){return this.request("OPTIONS",q,ce)}patch(q,ce,Ae={}){return this.request("PATCH",q,Re(Ae,ce))}post(q,ce,Ae={}){return this.request("POST",q,Re(Ae,ce))}put(q,ce,Ae={}){return this.request("PUT",q,Re(Ae,ce))}}return Ce.\u0275fac=function(q){return new(q||Ce)(u.LFG(Y))},Ce.\u0275prov=u.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})();class ot{constructor(Q,q){this.next=Q,this.interceptor=q}handle(Q){return this.interceptor.intercept(Q,this.next)}}const Tt=new u.OlP("HTTP_INTERCEPTORS");let kt=(()=>{class Ce{intercept(q,ce){return ce.handle(q)}}return Ce.\u0275fac=function(q){return new(q||Ce)},Ce.\u0275prov=u.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})();const Po=/^\)\]\}',?\n/;let Ro=(()=>{class Ce{constructor(q){this.xhrFactory=q}handle(q){if("JSONP"===q.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new O.y(ce=>{const Ae=this.xhrFactory.build();if(Ae.open(q.method,q.urlWithParams),q.withCredentials&&(Ae.withCredentials=!0),q.headers.forEach((Ht,Vt)=>Ae.setRequestHeader(Ht,Vt.join(","))),q.headers.has("Accept")||Ae.setRequestHeader("Accept","application/json, text/plain, */*"),!q.headers.has("Content-Type")){const Ht=q.detectContentTypeHeader();null!==Ht&&Ae.setRequestHeader("Content-Type",Ht)}if(q.responseType){const Ht=q.responseType.toLowerCase();Ae.responseType="json"!==Ht?Ht:"text"}const et=q.serializeBody();let dt=null;const Ne=()=>{if(null!==dt)return dt;const Ht=Ae.statusText||"OK",Vt=new $(Ae.getAllResponseHeaders()),dn=function pu(Ce){return"responseURL"in Ce&&Ce.responseURL?Ce.responseURL:/^X-Request-URL:/m.test(Ce.getAllResponseHeaders())?Ce.getResponseHeader("X-Request-URL"):null}(Ae)||q.url;return dt=new se({headers:Vt,status:Ae.status,statusText:Ht,url:dn}),dt},Je=()=>{let{headers:Ht,status:Vt,statusText:dn,url:yr}=Ne(),gi=null;204!==Vt&&(gi=typeof Ae.response>"u"?Ae.responseText:Ae.response),0===Vt&&(Vt=gi?200:0);let Wr=Vt>=200&&Vt<300;if("json"===q.responseType&&"string"==typeof gi){const $r=gi;gi=gi.replace(Po,"");try{gi=""!==gi?JSON.parse(gi):null}catch(La){gi=$r,Wr&&(Wr=!1,gi={error:La,text:gi})}}Wr?(ce.next(new fe({body:gi,headers:Ht,status:Vt,statusText:dn,url:yr||void 0})),ce.complete()):ce.error(new ue({error:gi,headers:Ht,status:Vt,statusText:dn,url:yr||void 0}))},Zt=Ht=>{const{url:Vt}=Ne(),dn=new ue({error:Ht,status:Ae.status||0,statusText:Ae.statusText||"Unknown Error",url:Vt||void 0});ce.error(dn)};let vt=!1;const Xi=Ht=>{vt||(ce.next(Ne()),vt=!0);let Vt={type:Te.DownloadProgress,loaded:Ht.loaded};Ht.lengthComputable&&(Vt.total=Ht.total),"text"===q.responseType&&!!Ae.responseText&&(Vt.partialText=Ae.responseText),ce.next(Vt)},it=Ht=>{let Vt={type:Te.UploadProgress,loaded:Ht.loaded};Ht.lengthComputable&&(Vt.total=Ht.total),ce.next(Vt)};return Ae.addEventListener("load",Je),Ae.addEventListener("error",Zt),Ae.addEventListener("timeout",Zt),Ae.addEventListener("abort",Zt),q.reportProgress&&(Ae.addEventListener("progress",Xi),null!==et&&Ae.upload&&Ae.upload.addEventListener("progress",it)),Ae.send(et),ce.next({type:Te.Sent}),()=>{Ae.removeEventListener("error",Zt),Ae.removeEventListener("abort",Zt),Ae.removeEventListener("load",Je),Ae.removeEventListener("timeout",Zt),q.reportProgress&&(Ae.removeEventListener("progress",Xi),null!==et&&Ae.upload&&Ae.upload.removeEventListener("progress",it)),Ae.readyState!==Ae.DONE&&Ae.abort()}})}}return Ce.\u0275fac=function(q){return new(q||Ce)(u.LFG(T.JF))},Ce.\u0275prov=u.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})();const qn=new u.OlP("XSRF_COOKIE_NAME"),Wn=new u.OlP("XSRF_HEADER_NAME");class Va{}let Io=(()=>{class Ce{constructor(q,ce,Ae){this.doc=q,this.platform=ce,this.cookieName=Ae,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const q=this.doc.cookie||"";return q!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,T.Mx)(q,this.cookieName),this.lastCookieString=q),this.lastToken}}return Ce.\u0275fac=function(q){return new(q||Ce)(u.LFG(T.K0),u.LFG(u.Lbi),u.LFG(qn))},Ce.\u0275prov=u.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})(),Ye=(()=>{class Ce{constructor(q,ce){this.tokenService=q,this.headerName=ce}intercept(q,ce){const Ae=q.url.toLowerCase();if("GET"===q.method||"HEAD"===q.method||Ae.startsWith("http://")||Ae.startsWith("https://"))return ce.handle(q);const et=this.tokenService.getToken();return null!==et&&!q.headers.has(this.headerName)&&(q=q.clone({headers:q.headers.set(this.headerName,et)})),ce.handle(q)}}return Ce.\u0275fac=function(q){return new(q||Ce)(u.LFG(Va),u.LFG(Wn))},Ce.\u0275prov=u.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})(),ci=(()=>{class Ce{constructor(q,ce){this.backend=q,this.injector=ce,this.chain=null}handle(q){if(null===this.chain){const ce=this.injector.get(Tt,[]);this.chain=ce.reduceRight((Ae,et)=>new ot(Ae,et),this.backend)}return this.chain.handle(q)}}return Ce.\u0275fac=function(q){return new(q||Ce)(u.LFG(G),u.LFG(u.zs3))},Ce.\u0275prov=u.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})(),Oa=(()=>{class Ce{static disable(){return{ngModule:Ce,providers:[{provide:Ye,useClass:kt}]}}static withOptions(q={}){return{ngModule:Ce,providers:[q.cookieName?{provide:qn,useValue:q.cookieName}:[],q.headerName?{provide:Wn,useValue:q.headerName}:[]]}}}return Ce.\u0275fac=function(q){return new(q||Ce)},Ce.\u0275mod=u.oAB({type:Ce}),Ce.\u0275inj=u.cJS({providers:[Ye,{provide:Tt,useExisting:Ye,multi:!0},{provide:Va,useClass:Io},{provide:qn,useValue:"XSRF-TOKEN"},{provide:Wn,useValue:"X-XSRF-TOKEN"}]}),Ce})(),fu=(()=>{class Ce{}return Ce.\u0275fac=function(q){return new(q||Ce)},Ce.\u0275mod=u.oAB({type:Ce}),Ce.\u0275inj=u.cJS({providers:[He,{provide:Y,useClass:ci},Ro,{provide:G,useExisting:Ro}],imports:[Oa.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),Ce})()},4650:(F,N,x)=>{"use strict";x.d(N,{$8M:()=>Mc,$Z:()=>Jw,AFp:()=>On,ALo:()=>IA,AaK:()=>Y,AsE:()=>c_,B6R:()=>yr,BQk:()=>Vl,CHM:()=>ki,CRH:()=>vp,CZH:()=>Ai,CqO:()=>Wh,D6c:()=>P0,DdM:()=>TA,Dn7:()=>BA,EJc:()=>mS,EiD:()=>bg,EpF:()=>lr,F$t:()=>Ol,F4k:()=>wt,FYo:()=>aw,FiY:()=>$o,G48:()=>kb,Gf:()=>ib,GfV:()=>lw,GkF:()=>qh,Gpc:()=>U,Gre:()=>d_,Hsn:()=>Dv,Ikx:()=>ya,JOm:()=>Rr,JVY:()=>Oy,KtG:()=>Kn,L6k:()=>Ly,LAX:()=>Lu,LFG:()=>si,LSH:()=>$u,Lbi:()=>jp,Lck:()=>AA,MAs:()=>ln,MMx:()=>mp,NdJ:()=>bd,O4$:()=>If,OlP:()=>At,Oqu:()=>l_,PXZ:()=>Tb,Q6J:()=>Ym,QGY:()=>$t,QP$:()=>Ss,QbO:()=>l0,Qsj:()=>ow,R0b:()=>qi,RDi:()=>Py,Rgc:()=>zd,SBq:()=>da,Sil:()=>bS,Suo:()=>nb,TTD:()=>di,TgZ:()=>zh,Tol:()=>Fv,Udp:()=>Yh,VKq:()=>EA,WFA:()=>Fe,WLB:()=>SA,XFs:()=>Ye,Xpm:()=>dn,Xts:()=>Yu,Y36:()=>_l,YKP:()=>vs,YNc:()=>Qm,Yjl:()=>uc,Yz7:()=>Dt,ZZ4:()=>$b,_Bn:()=>mo,_UZ:()=>Uh,_Vd:()=>ro,_c5:()=>H0,_uU:()=>Wv,aQg:()=>ru,c2e:()=>zp,cJS:()=>oi,cg1:()=>w_,d8E:()=>y_,dDg:()=>g0,dqk:()=>ce,eBb:()=>Fy,eFA:()=>Mb,ekj:()=>Ca,eoX:()=>m0,f3M:()=>Zf,g9A:()=>bo,h0i:()=>ws,hGG:()=>Kb,hij:()=>Xh,iGM:()=>Ta,ifc:()=>q,ip1:()=>Lp,kL8:()=>A_,kcU:()=>kf,lG2:()=>gu,lcZ:()=>kA,lqb:()=>Ei,lri:()=>p0,mCW:()=>al,n5z:()=>Eu,n_E:()=>Cp,oAB:()=>$r,oJD:()=>Cg,oxw:()=>Bl,pB0:()=>pg,q3G:()=>ni,qLn:()=>Zc,qOj:()=>El,qZA:()=>_d,qzn:()=>to,rWj:()=>f0,s9C:()=>Cd,sBO:()=>wS,sIi:()=>_n,s_b:()=>wp,soG:()=>Up,tb:()=>$d,tp0:()=>Xa,uIk:()=>Oh,vHH:()=>ie,vpe:()=>Nr,wAp:()=>Ke,xDo:()=>Ad,xi3:()=>VA,xp6:()=>lh,ynx:()=>Gh,z2F:()=>Da,z3N:()=>nr,zSh:()=>no,zs3:()=>or});var T=x(7579),u=x(727),V=x(9751),O=x(6451),I=x(3099);function j(p){for(let g in p)if(p[g]===j)return g;throw Error("Could not find renamed property on target object.")}function W(p,g){for(const m in g)g.hasOwnProperty(m)&&!p.hasOwnProperty(m)&&(p[m]=g[m])}function Y(p){if("string"==typeof p)return p;if(Array.isArray(p))return"["+p.map(Y).join(", ")+"]";if(null==p)return""+p;if(p.overriddenName)return`${p.overriddenName}`;if(p.name)return`${p.name}`;const g=p.toString();if(null==g)return""+g;const m=g.indexOf("\n");return-1===m?g:g.substring(0,m)}function G(p,g){return null==p||""===p?null===g?"":g:null==g||""===g?p:p+" "+g}const $=j({__forward_ref__:j});function U(p){return p.__forward_ref__=U,p.toString=function(){return Y(this())},p}function te(p){return ne(p)?p():p}function ne(p){return"function"==typeof p&&p.hasOwnProperty($)&&p.__forward_ref__===U}class ie extends Error{constructor(g,m){super(function de(p,g){return`NG0${Math.abs(p)}${g?": "+g.trim():""}`}(g,m)),this.code=g}}function he(p){return"string"==typeof p?p:null==p?"":String(p)}function _e(p,g){throw new ie(-201,!1)}function kt(p,g){null==p&&function Le(p,g,m,_){throw new Error(`ASSERTION ERROR: ${p}`+(null==_?"":` [Expected=> ${m} ${_} ${g} <=Actual]`))}(g,p,null,"!=")}function Dt(p){return{token:p.token,providedIn:p.providedIn||null,factory:p.factory,value:void 0}}function oi(p){return{providers:p.providers||[],imports:p.imports||[]}}function qr(p){return dc(p,qn)||dc(p,Va)}function dc(p,g){return p.hasOwnProperty(g)?p[g]:null}function Ro(p){return p&&(p.hasOwnProperty(Wn)||p.hasOwnProperty(Io))?p[Wn]:null}const qn=j({\u0275prov:j}),Wn=j({\u0275inj:j}),Va=j({ngInjectableDef:j}),Io=j({ngInjectorDef:j});var Ye=(()=>((Ye=Ye||{})[Ye.Default=0]="Default",Ye[Ye.Host=1]="Host",Ye[Ye.Self=2]="Self",Ye[Ye.SkipSelf=4]="SkipSelf",Ye[Ye.Optional=8]="Optional",Ye))();let ci;function Hi(p){const g=ci;return ci=p,g}function Oa(p,g,m){const _=qr(p);return _&&"root"==_.providedIn?void 0===_.value?_.value=_.factory():_.value:m&Ye.Optional?null:void 0!==g?g:void _e(Y(p))}function Tn(p){return{toString:p}.toString()}var xi=(()=>((xi=xi||{})[xi.OnPush=0]="OnPush",xi[xi.Default=1]="Default",xi))(),q=(()=>{return(p=q||(q={}))[p.Emulated=0]="Emulated",p[p.None=2]="None",p[p.ShadowDom=3]="ShadowDom",q;var p})();const ce=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),dt={},Ne=[],Je=j({\u0275cmp:j}),Zt=j({\u0275dir:j}),vt=j({\u0275pipe:j}),Xi=j({\u0275mod:j}),it=j({\u0275fac:j}),Ht=j({__NG_ELEMENT_ID__:j});let Vt=0;function dn(p){return Tn(()=>{const m=!0===p.standalone,_={},C={type:p.type,providersResolver:null,decls:p.decls,vars:p.vars,factory:null,template:p.template||null,consts:p.consts||null,ngContentSelectors:p.ngContentSelectors,hostBindings:p.hostBindings||null,hostVars:p.hostVars||0,hostAttrs:p.hostAttrs||null,contentQueries:p.contentQueries||null,declaredInputs:_,inputs:null,outputs:null,exportAs:p.exportAs||null,onPush:p.changeDetection===xi.OnPush,directiveDefs:null,pipeDefs:null,standalone:m,dependencies:m&&p.dependencies||null,getStandaloneInjector:null,selectors:p.selectors||Ne,viewQuery:p.viewQuery||null,features:p.features||null,data:p.data||{},encapsulation:p.encapsulation||q.Emulated,id:"c"+Vt++,styles:p.styles||Ne,_:null,setInput:null,schemas:p.schemas||null,tView:null},w=p.dependencies,v=p.features;return C.inputs=ko(p.inputs,_),C.outputs=ko(p.outputs),v&&v.forEach(E=>E(C)),C.directiveDefs=w?()=>("function"==typeof w?w():w).map(gi).filter(Wr):null,C.pipeDefs=w?()=>("function"==typeof w?w():w).map(Ri).filter(Wr):null,C})}function yr(p,g,m){const _=p.\u0275cmp;_.directiveDefs=()=>("function"==typeof g?g():g).map(gi),_.pipeDefs=()=>("function"==typeof m?m():m).map(Ri)}function gi(p){return Et(p)||Pi(p)}function Wr(p){return null!==p}function $r(p){return Tn(()=>({type:p.type,bootstrap:p.bootstrap||Ne,declarations:p.declarations||Ne,imports:p.imports||Ne,exports:p.exports||Ne,transitiveCompileScopes:null,schemas:p.schemas||null,id:p.id||null}))}function ko(p,g){if(null==p)return dt;const m={};for(const _ in p)if(p.hasOwnProperty(_)){let C=p[_],w=C;Array.isArray(C)&&(w=C[1],C=C[0]),m[C]=_,g&&(g[C]=w)}return m}const gu=dn;function uc(p){return{type:p.type,name:p.name,factory:null,pure:!1!==p.pure,standalone:!0===p.standalone,onDestroy:p.type.prototype.ngOnDestroy||null}}function Et(p){return p[Je]||null}function Pi(p){return p[Zt]||null}function Ri(p){return p[vt]||null}function Wi(p,g){const m=p[Xi]||null;if(!m&&!0===g)throw new Error(`Type ${Y(p)} does not have '\u0275mod' property.`);return m}function Ii(p){return Array.isArray(p)&&"object"==typeof p[1]}function hn(p){return Array.isArray(p)&&!0===p[1]}function Bs(p){return 0!=(8&p.flags)}function Na(p){return 2==(2&p.flags)}function Jr(p){return 1==(1&p.flags)}function en(p){return null!==p.template}function vf(p){return 0!=(256&p[2])}function Me(p,g){return p.hasOwnProperty(it)?p[it]:null}class De{constructor(g,m,_){this.previousValue=g,this.currentValue=m,this.firstChange=_}isFirstChange(){return this.firstChange}}function di(){return Lo}function Lo(p){return p.type.prototype.ngOnChanges&&(p.setInput=Kr),Os}function Os(){const p=Jn(this),g=p?.current;if(g){const m=p.previous;if(m===dt)p.previous=g;else for(let _ in g)m[_]=g[_];p.current=null,this.ngOnChanges(g)}}function Kr(p,g,m,_){const C=Jn(p)||function Tr(p,g){return p[bi]=g}(p,{previous:dt,current:null}),w=C.current||(C.current={}),v=C.previous,E=this.declaredInputs[m],S=v[E];w[E]=new De(S&&S.currentValue,g,v===dt),p[_]=g}di.ngInherit=!0;const bi="__ngSimpleChanges__";function Jn(p){return p[bi]||null}function ze(p){for(;Array.isArray(p);)p=p[0];return p}function za(p,g){return ze(g[p])}function It(p,g){return ze(g[p.index])}function fn(p,g){return p.data[g]}function $i(p,g){return p[g]}function bt(p,g){const m=g[p];return Ii(m)?m:m[0]}function M(p){return 4==(4&p[2])}function k(p){return 64==(64&p[2])}function B(p,g){return null==g?null:p[g]}function ee(p){p[18]=0}function pe(p,g){p[5]+=g;let m=p,_=p[3];for(;null!==_&&(1===g&&1===m[5]||-1===g&&0===m[5]);)_[5]+=g,m=_,_=_[3]}const le={lFrame:yu(null),bindingsEnabled:!0};function We(){return le.bindingsEnabled}function be(){return le.lFrame.lView}function ht(){return le.lFrame.tView}function ki(p){return le.lFrame.contextLView=p,p[8]}function Kn(p){return le.lFrame.contextLView=null,p}function qt(){let p=Ua();for(;null!==p&&64===p.type;)p=p.parent;return p}function Ua(){return le.lFrame.currentTNode}function Ot(p,g){const m=le.lFrame;m.currentTNode=p,m.isParent=g}function Sn(){return le.lFrame.isParent}function Fs(){le.lFrame.isParent=!1}function Ni(){const p=le.lFrame;let g=p.bindingRootIndex;return-1===g&&(g=p.bindingRootIndex=p.tView.bindingStartIndex),g}function Zn(){return le.lFrame.bindingIndex}function qa(){return le.lFrame.bindingIndex++}function Xn(p){const g=le.lFrame,m=g.bindingIndex;return g.bindingIndex=g.bindingIndex+p,m}function gt(p,g){const m=le.lFrame;m.bindingIndex=m.bindingRootIndex=p,bu(g)}function bu(p){le.lFrame.currentDirectiveIndex=p}function Er(p){const g=le.lFrame.currentDirectiveIndex;return-1===g?null:p[g]}function Df(){return le.lFrame.currentQueryIndex}function _c(p){le.lFrame.currentQueryIndex=p}function Cu(p){const g=p[1];return 2===g.type?g.declTNode:1===g.type?p[6]:null}function Hf(p,g,m){if(m&Ye.SkipSelf){let C=g,w=p;for(;!(C=C.parent,null!==C||m&Ye.Host||(C=Cu(w),null===C||(w=w[15],10&C.type))););if(null===C)return!1;g=C,p=w}const _=le.lFrame=jo();return _.currentTNode=g,_.lView=p,!0}function Fo(p){const g=jo(),m=p[1];le.lFrame=g,g.currentTNode=m.firstChild,g.lView=p,g.tView=m,g.contextLView=p,g.bindingIndex=m.bindingStartIndex,g.inI18n=!1}function jo(){const p=le.lFrame,g=null===p?null:p.child;return null===g?yu(p):g}function yu(p){const g={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:p,child:null,inI18n:!1};return null!==p&&(p.child=g),g}function zs(){const p=le.lFrame;return le.lFrame=p.parent,p.currentTNode=null,p.lView=null,p}const Pf=zs;function Us(){const p=zs();p.isParent=!0,p.tView=null,p.selectedIndex=-1,p.contextLView=null,p.elementDepthCount=0,p.currentDirectiveIndex=-1,p.currentNamespace=null,p.bindingRootIndex=-1,p.bindingIndex=-1,p.currentQueryIndex=0}function Vi(){return le.lFrame.selectedIndex}function Xr(p){le.lFrame.selectedIndex=p}function Yt(){const p=le.lFrame;return fn(p.tView,p.selectedIndex)}function If(){le.lFrame.currentNamespace="svg"}function kf(){!function YC(){le.lFrame.currentNamespace=null}()}function yc(p,g){for(let m=g.directiveStart,_=g.directiveEnd;m<_;m++){const w=p.data[m].type.prototype,{ngAfterContentInit:v,ngAfterContentChecked:E,ngAfterViewInit:S,ngAfterViewChecked:P,ngOnDestroy:R}=w;v&&(p.contentHooks||(p.contentHooks=[])).push(-m,v),E&&((p.contentHooks||(p.contentHooks=[])).push(m,E),(p.contentCheckHooks||(p.contentCheckHooks=[])).push(m,E)),S&&(p.viewHooks||(p.viewHooks=[])).push(-m,S),P&&((p.viewHooks||(p.viewHooks=[])).push(m,P),(p.viewCheckHooks||(p.viewCheckHooks=[])).push(m,P)),null!=R&&(p.destroyHooks||(p.destroyHooks=[])).push(m,R)}}function No(p,g,m){ea(p,g,3,m)}function Wa(p,g,m,_){(3&p[2])===m&&ea(p,g,m,_)}function wu(p,g){let m=p[2];(3&m)===g&&(m&=2047,m+=1,p[2]=m)}function ea(p,g,m,_){const w=_??-1,v=g.length-1;let E=0;for(let S=void 0!==_?65535&p[18]:0;S=_)break}else g[S]<0&&(p[18]+=65536),(E>11>16&&(3&p[2])===g){p[2]+=2048;try{w.call(E)}finally{}}}else try{w.call(E)}finally{}}class Gs{constructor(g,m,_){this.factory=g,this.resolving=!1,this.canSeeViewProviders=m,this.injectImpl=_}}function Mr(p,g,m){let _=0;for(;_g){v=w-1;break}}}for(;w>16}(p),_=g;for(;m>0;)_=_[15],m--;return _}let Au=!0;function Ws(p){const g=Au;return Au=p,g}let ia=0;const nn={};function $s(p,g){const m=Tu(p,g);if(-1!==m)return m;const _=g[1];_.firstCreatePass&&(p.injectorIndex=g.length,xu(_.data,p),xu(g,null),xu(_.blueprint,null));const C=Ac(p,g),w=p.injectorIndex;if(wc(C)){const v=er(C),E=ta(C,g),S=E[1].data;for(let P=0;P<8;P++)g[w+P]=E[v+P]|S[v+P]}return g[w+8]=C,w}function xu(p,g){p.push(0,0,0,0,0,0,0,0,g)}function Tu(p,g){return-1===p.injectorIndex||p.parent&&p.parent.injectorIndex===p.injectorIndex||null===g[p.injectorIndex+8]?-1:p.injectorIndex}function Ac(p,g){if(p.parent&&-1!==p.parent.injectorIndex)return p.parent.injectorIndex;let m=0,_=null,C=g;for(;null!==C;){if(_=ir(C),null===_)return-1;if(m++,C=C[15],-1!==_.injectorIndex)return _.injectorIndex|m<<16}return-1}function xc(p,g,m){!function Ff(p,g,m){let _;"string"==typeof m?_=m.charCodeAt(0)||0:m.hasOwnProperty(Ht)&&(_=m[Ht]),null==_&&(_=m[Ht]=ia++);const C=255&_;g.data[p+(C>>5)]|=1<=0?255&g:Uo:g}(m);if("function"==typeof w){if(!Hf(g,p,_))return _&Ye.Host?jf(C,0,_):Nf(g,m,_,C);try{const v=w(_);if(null!=v||_&Ye.Optional)return v;_e()}finally{Pf()}}else if("number"==typeof w){let v=null,E=Tu(p,g),S=-1,P=_&Ye.Host?g[16][6]:null;for((-1===E||_&Ye.SkipSelf)&&(S=-1===E?Ac(p,g):g[E+8],-1!==S&&Ec(_,!1)?(v=g[1],E=er(S),g=ta(S,g)):E=-1);-1!==E;){const R=g[1];if(Tc(w,E,R.data)){const L=ay(E,g,m,v,_,P);if(L!==nn)return L}S=g[E+8],-1!==S&&Ec(_,g[1].data[E+8]===P)&&Tc(w,E,g)?(v=R,E=er(S),g=ta(S,g)):E=-1}}return C}function ay(p,g,m,_,C,w){const v=g[1],E=v.data[p+8],R=Qs(E,v,m,null==_?Na(E)&&Au:_!=v&&0!=(3&E.type),C&Ye.Host&&w===E);return null!==R?Ys(g,v,R,E):nn}function Qs(p,g,m,_,C){const w=p.providerIndexes,v=g.data,E=1048575&w,S=p.directiveStart,R=w>>20,X=C?E+R:p.directiveEnd;for(let re=_?E:E+R;re=S&&me.type===m)return re}if(C){const re=v[S];if(re&&en(re)&&re.type===m)return S}return null}function Ys(p,g,m,_){let C=p[m];const w=g.data;if(function ZC(p){return p instanceof Gs}(C)){const v=C;v.resolving&&function Ve(p,g){const m=g?`. Dependency path: ${g.join(" > ")} > ${p}`:"";throw new ie(-200,`Circular dependency in DI detected for ${p}${m}`)}(function ge(p){return"function"==typeof p?p.name||p.toString():"object"==typeof p&&null!=p&&"function"==typeof p.type?p.type.name||p.type.toString():he(p)}(w[m]));const E=Ws(v.canSeeViewProviders);v.resolving=!0;const S=v.injectImpl?Hi(v.injectImpl):null;Hf(p,_,Ye.Default);try{C=p[m]=v.factory(void 0,w,p,_),g.firstCreatePass&&m>=_.directiveStart&&function KC(p,g,m){const{ngOnChanges:_,ngOnInit:C,ngDoCheck:w}=g.type.prototype;if(_){const v=Lo(g);(m.preOrderHooks||(m.preOrderHooks=[])).push(p,v),(m.preOrderCheckHooks||(m.preOrderCheckHooks=[])).push(p,v)}C&&(m.preOrderHooks||(m.preOrderHooks=[])).push(0-p,C),w&&((m.preOrderHooks||(m.preOrderHooks=[])).push(p,w),(m.preOrderCheckHooks||(m.preOrderCheckHooks=[])).push(p,w))}(m,w[m],g)}finally{null!==S&&Hi(S),Ws(E),v.resolving=!1,Pf()}}return C}function Tc(p,g,m){return!!(m[g+(p>>5)]&1<{const g=p.prototype.constructor,m=g[it]||Sc(g),_=Object.prototype;let C=Object.getPrototypeOf(p.prototype).constructor;for(;C&&C!==_;){const w=C[it]||Sc(C);if(w&&w!==m)return w;C=Object.getPrototypeOf(C)}return w=>new w})}function Sc(p){return ne(p)?()=>{const g=Sc(te(p));return g&&g()}:Me(p)}function ir(p){const g=p[1],m=g.type;return 2===m?g.declTNode:1===m?p[6]:null}function Mc(p){return function ry(p,g){if("class"===g)return p.classes;if("style"===g)return p.styles;const m=p.attrs;if(m){const _=m.length;let C=0;for(;C<_;){const w=m[C];if(Bf(w))break;if(0===w)C+=2;else if("number"==typeof w)for(C++;C<_&&"string"==typeof m[C];)C++;else{if(w===g)return m[C+1];C+=2}}}return null}(qt(),p)}const Dr="__parameters__";function na(p,g,m){return Tn(()=>{const _=function Hc(p){return function(...m){if(p){const _=p(...m);for(const C in _)this[C]=_[C]}}}(g);function C(...w){if(this instanceof C)return _.apply(this,w),this;const v=new C(...w);return E.annotation=v,E;function E(S,P,R){const L=S.hasOwnProperty(Dr)?S[Dr]:Object.defineProperty(S,Dr,{value:[]})[Dr];for(;L.length<=R;)L.push(null);return(L[R]=L[R]||[]).push(v),S}}return m&&(C.prototype=Object.create(m.prototype)),C.prototype.ngMetadataName=p,C.annotationCls=C,C})}class At{constructor(g,m){this._desc=g,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof m?this.__NG_ELEMENT_ID__=m:void 0!==m&&(this.\u0275prov=Dt({token:this,providedIn:m.providedIn||"root",factory:m.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function gn(p,g){void 0===g&&(g=p);for(let m=0;mArray.isArray(m)?ra(m,g):g(m))}function py(p,g,m){g>=p.length?p.push(m):p.splice(g,0,m)}function Du(p,g){return g>=p.length-1?p.pop():p.splice(g,1)[0]}function Ja(p,g){const m=[];for(let _=0;_=0?p[1|_]=m:(_=~_,function gy(p,g,m,_){let C=p.length;if(C==g)p.push(m,_);else if(1===C)p.push(_,p[0]),p[0]=m;else{for(C--,p.push(p[C-1],p[C]);C>g;)p[C]=p[C-2],C--;p[g]=m,p[g+1]=_}}(p,_,g,m)),_}function Pu(p,g){const m=qo(p,g);if(m>=0)return p[1|m]}function qo(p,g){return function Zs(p,g,m){let _=0,C=p.length>>m;for(;C!==_;){const w=_+(C-_>>1),v=p[w<g?C=w:_=w+1}return~(C<p,createScript:p=>p,createScriptURL:p=>p})}catch{}return Lc}()?.createHTML(p)||p}function dg(p){return function jc(){if(void 0===rl&&(rl=null,ce.trustedTypes))try{rl=ce.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:p=>p,createScript:p=>p,createScriptURL:p=>p})}catch{}return rl}()?.createHTML(p)||p}class eo{constructor(g){this.changingThisBreaksApplicationSecurity=g}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Iy extends eo{getTypeName(){return"HTML"}}class ky extends eo{getTypeName(){return"Style"}}class Vy extends eo{getTypeName(){return"Script"}}class hg extends eo{getTypeName(){return"URL"}}class Ou extends eo{getTypeName(){return"ResourceURL"}}function nr(p){return p instanceof eo?p.changingThisBreaksApplicationSecurity:p}function to(p,g){const m=function By(p){return p instanceof eo&&p.getTypeName()||null}(p);if(null!=m&&m!==g){if("ResourceURL"===m&&"URL"===g)return!0;throw new Error(`Required a safe ${g}, got a ${m} (see https://g.co/ng/security#xss)`)}return m===g}function Oy(p){return new Iy(p)}function Ly(p){return new ky(p)}function Fy(p){return new Vy(p)}function Lu(p){return new hg(p)}function pg(p){return new Ou(p)}class Fu{constructor(g){this.inertDocumentHelper=g}getInertBodyElement(g){g=""+g;try{const m=(new window.DOMParser).parseFromString(Yo(g),"text/html").body;return null===m?this.inertDocumentHelper.getInertBodyElement(g):(m.removeChild(m.firstChild),m)}catch{return null}}}class jy{constructor(g){if(this.defaultDoc=g,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const m=this.inertDocument.createElement("html");this.inertDocument.appendChild(m);const _=this.inertDocument.createElement("body");m.appendChild(_)}}getInertBodyElement(g){const m=this.inertDocument.createElement("template");if("content"in m)return m.innerHTML=Yo(g),m;const _=this.inertDocument.createElement("body");return _.innerHTML=Yo(g),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(_),_}stripCustomNsAttrs(g){const m=g.attributes;for(let C=m.length-1;0al(g.trim())).join(", ")),this.buf.push(" ",v,'="',qu(S),'"')}var p;return this.buf.push(">"),!0}endElement(g){const m=g.nodeName.toLowerCase();Uu.hasOwnProperty(m)&&!ui.hasOwnProperty(m)&&(this.buf.push(""))}chars(g){this.buf.push(qu(g))}checkClobberedElement(g,m){if(m&&(g.compareDocumentPosition(m)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${g.outerHTML}`);return m}}const Qx=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,_g=/([^\#-~ |!])/g;function qu(p){return p.replace(/&/g,"&").replace(Qx,function(g){return"&#"+(1024*(g.charCodeAt(0)-55296)+(g.charCodeAt(1)-56320)+65536)+";"}).replace(_g,function(g){return"&#"+g.charCodeAt(0)+";"}).replace(//g,">")}let qc;function bg(p,g){let m=null;try{qc=qc||function zc(p){const g=new jy(p);return function Ny(){try{return!!(new window.DOMParser).parseFromString(Yo(""),"text/html")}catch{return!1}}()?new Fu(g):g}(p);let _=g?String(g):"";m=qc.getInertBodyElement(_);let C=5,w=_;do{if(0===C)throw new Error("Failed to sanitize html because the input is unstable");C--,_=w,w=m.innerHTML,m=qc.getInertBodyElement(_)}while(_!==w);return Yo((new sa).sanitizeChildren(Wu(m)||m))}finally{if(m){const _=Wu(m)||m;for(;_.firstChild;)_.removeChild(_.firstChild)}}}function Wu(p){return"content"in p&&function Wc(p){return p.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===p.nodeName}(p)?p.content:null}var ni=(()=>((ni=ni||{})[ni.NONE=0]="NONE",ni[ni.HTML=1]="HTML",ni[ni.STYLE=2]="STYLE",ni[ni.SCRIPT=3]="SCRIPT",ni[ni.URL=4]="URL",ni[ni.RESOURCE_URL=5]="RESOURCE_URL",ni))();function Cg(p){const g=ol();return g?dg(g.sanitize(ni.HTML,p)||""):to(p,"HTML")?dg(nr(p)):bg(function sg(){return void 0!==Bu?Bu:typeof document<"u"?document:void 0}(),he(p))}function $u(p){const g=ol();return g?g.sanitize(ni.URL,p)||"":to(p,"URL")?nr(p):al(he(p))}function ol(){const p=be();return p&&p[12]}const Yu=new At("ENVIRONMENT_INITIALIZER"),Ag=new At("INJECTOR",-1),Yy=new At("INJECTOR_DEF_TYPES");class $c{get(g,m=el){if(m===el){const _=new Error(`NullInjectorError: No provider for ${Y(g)}!`);throw _.name="NullInjectorError",_}return m}}function Jt(...p){return{\u0275providers:Jy(0,p)}}function Jy(p,...g){const m=[],_=new Set;let C;return ra(g,w=>{const v=w;Qc(v,m,[],_)&&(C||(C=[]),C.push(v))}),void 0!==C&&io(C,m),m}function io(p,g){for(let m=0;m{g.push(w)})}}function Qc(p,g,m,_){if(!(p=te(p)))return!1;let C=null,w=Ro(p);const v=!w&&Et(p);if(w||v){if(v&&!v.standalone)return!1;C=p}else{const S=p.ngModule;if(w=Ro(S),!w)return!1;C=S}const E=_.has(C);if(v){if(E)return!1;if(_.add(C),v.dependencies){const S="function"==typeof v.dependencies?v.dependencies():v.dependencies;for(const P of S)Qc(P,g,m,_)}}else{if(!w)return!1;{if(null!=w.imports&&!E){let P;_.add(C);try{ra(w.imports,R=>{Qc(R,g,m,_)&&(P||(P=[]),P.push(R))})}finally{}void 0!==P&&io(P,g)}if(!E){const P=Me(C)||(()=>new C);g.push({provide:C,useFactory:P,deps:Ne},{provide:Yy,useValue:C,multi:!0},{provide:Yu,useValue:()=>si(C),multi:!0})}const S=w.providers;null==S||E||ra(S,R=>{g.push(R)})}}return C!==p&&void 0!==p.providers}const sl=j({provide:String,useValue:j});function Ju(p){return null!==p&&"object"==typeof p&&sl in p}function rn(p){return"function"==typeof p}const no=new At("Set Injector scope."),Ko={},Zy={};let Zo;function Xo(){return void 0===Zo&&(Zo=new $c),Zo}class Ei{}class Yc extends Ei{constructor(g,m,_,C){super(),this.parent=m,this.source=_,this.scopes=C,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Sg(g,v=>this.processProvider(v)),this.records.set(Ag,la(void 0,this)),C.has("environment")&&this.records.set(Ei,la(void 0,this));const w=this.records.get(no);null!=w&&"string"==typeof w.value&&this.scopes.add(w.value),this.injectorDefTypes=new Set(this.get(Yy.multi,Ne,Ye.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const g of this._ngOnDestroyHooks)g.ngOnDestroy();for(const g of this._onDestroyHooks)g()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(g){this._onDestroyHooks.push(g)}runInContext(g){this.assertNotDestroyed();const m=Hr(this),_=Hi(void 0);try{return g()}finally{Hr(m),Hi(_)}}get(g,m=el,_=Ye.Default){this.assertNotDestroyed();const C=Hr(this),w=Hi(void 0);try{if(!(_&Ye.SkipSelf)){let E=this.records.get(g);if(void 0===E){const S=function iw(p){return"function"==typeof p||"object"==typeof p&&p instanceof At}(g)&&qr(g);E=S&&this.injectableDefInScope(S)?la(Tg(g),Ko):null,this.records.set(g,E)}if(null!=E)return this.hydrate(g,E)}return(_&Ye.Self?Xo():this.parent).get(g,m=_&Ye.Optional&&m===el?null:m)}catch(v){if("NullInjectorError"===v.name){if((v[Ic]=v[Ic]||[]).unshift(Y(g)),C)throw v;return function xy(p,g,m,_){const C=p[Ic];throw g[Jf]&&C.unshift(g[Jf]),p.message=function Ty(p,g,m,_=null){p=p&&"\n"===p.charAt(0)&&"\u0275"==p.charAt(1)?p.slice(2):p;let C=Y(g);if(Array.isArray(g))C=g.map(Y).join(" -> ");else if("object"==typeof g){let w=[];for(let v in g)if(g.hasOwnProperty(v)){let E=g[v];w.push(v+":"+("string"==typeof E?JSON.stringify(E):Y(E)))}C=`{${w.join(", ")}}`}return`${m}${_?"("+_+")":""}[${C}]: ${p.replace(vy,"\n ")}`}("\n"+p.message,C,m,_),p.ngTokenPath=C,p[Ic]=null,p}(v,g,"R3InjectorError",this.source)}throw v}finally{Hi(w),Hr(C)}}resolveInjectorInitializers(){const g=Hr(this),m=Hi(void 0);try{const _=this.get(Yu.multi,Ne,Ye.Self);for(const C of _)C()}finally{Hr(g),Hi(m)}}toString(){const g=[],m=this.records;for(const _ of m.keys())g.push(Y(_));return`R3Injector[${g.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ie(205,!1)}processProvider(g){let m=rn(g=te(g))?g:te(g&&g.provide);const _=function Eg(p){return Ju(p)?la(void 0,p.useValue):la(Xy(p),Ko)}(g);if(rn(g)||!0!==g.multi)this.records.get(m);else{let C=this.records.get(m);C||(C=la(void 0,Ko,!0),C.factory=()=>Iu(C.multi),this.records.set(m,C)),m=g,C.multi.push(g)}this.records.set(m,_)}hydrate(g,m){return m.value===Ko&&(m.value=Zy,m.value=m.factory()),"object"==typeof m.value&&m.value&&function tw(p){return null!==p&&"object"==typeof p&&"function"==typeof p.ngOnDestroy}(m.value)&&this._ngOnDestroyHooks.add(m.value),m.value}injectableDefInScope(g){if(!g.providedIn)return!1;const m=te(g.providedIn);return"string"==typeof m?"any"===m||this.scopes.has(m):this.injectorDefTypes.has(m)}}function Tg(p){const g=qr(p),m=null!==g?g.factory:Me(p);if(null!==m)return m;if(p instanceof At)throw new ie(204,!1);if(p instanceof Function)return function Ku(p){const g=p.length;if(g>0)throw Ja(g,"?"),new ie(204,!1);const m=function Po(p){const g=p&&(p[qn]||p[Va]);if(g){const m=function pu(p){if(p.hasOwnProperty("name"))return p.name;const g=(""+p).match(/^function\s*([^\s(]+)/);return null===g?"":g[1]}(p);return console.warn(`DEPRECATED: DI is instantiating a token "${m}" 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 "${m}" class.`),g}return null}(p);return null!==m?()=>m.factory(p):()=>new p}(p);throw new ie(204,!1)}function Xy(p,g,m){let _;if(rn(p)){const C=te(p);return Me(C)||Tg(C)}if(Ju(p))_=()=>te(p.useValue);else if(function ll(p){return!(!p||!p.useFactory)}(p))_=()=>p.useFactory(...Iu(p.deps||[]));else if(function Dn(p){return!(!p||!p.useExisting)}(p))_=()=>si(te(p.useExisting));else{const C=te(p&&(p.useClass||p.provide));if(!function ew(p){return!!p.deps}(p))return Me(C)||Tg(C);_=()=>new C(...Iu(p.deps))}return _}function la(p,g,m=!1){return{factory:p,value:g,multi:m?[]:void 0}}function Jx(p){return!!p.\u0275providers}function Sg(p,g){for(const m of p)Array.isArray(m)?Sg(m,g):Jx(m)?Sg(m.\u0275providers,g):g(m)}class Kc{}class rw{resolveComponentFactory(g){throw function Kx(p){const g=Error(`No component factory found for ${Y(p)}. Did you add it to @NgModule.entryComponents?`);return g.ngComponent=p,g}(g)}}let ro=(()=>{class p{}return p.NULL=new rw,p})();function Zu(){return ca(qt(),be())}function ca(p,g){return new da(It(p,g))}let da=(()=>{class p{constructor(m){this.nativeElement=m}}return p.__NG_ELEMENT_ID__=Zu,p})();function Xx(p){return p instanceof da?p.nativeElement:p}class aw{}let ow=(()=>{class p{}return p.__NG_ELEMENT_ID__=()=>function sw(){const p=be(),m=bt(qt().index,p);return(Ii(m)?m:p)[11]}(),p})(),eT=(()=>{class p{}return p.\u0275prov=Dt({token:p,providedIn:"root",factory:()=>null}),p})();class lw{constructor(g){this.full=g,this.major=g.split(".")[0],this.minor=g.split(".")[1],this.patch=g.split(".").slice(2).join(".")}}const tT=new lw("14.1.2"),Mg={};function Ig(p){return p.ngOriginalError}class Zc{constructor(){this._console=console}handleError(g){const m=this._findOriginalError(g);this._console.error("ERROR",g),m&&this._console.error("ORIGINAL ERROR",m)}_findOriginalError(g){let m=g&&Ig(g);for(;m&&Ig(m);)m=Ig(m);return m||null}}const kg=new Map;let fT=0;const Bg="__ngContext__";function zi(p,g){Ii(g)?(p[Bg]=g[20],function mT(p){kg.set(p[20],p)}(g)):p[Bg]=g}function Xc(p){const g=p[Bg];return"number"==typeof g?function gw(p){return kg.get(p)||null}(g):g||null}function Og(p){const g=Xc(p);return g?Ii(g)?g:g.lView:null}const AT=(()=>(typeof requestAnimationFrame<"u"&&requestAnimationFrame||setTimeout).bind(ce))();function ua(p){return p instanceof Function?p():p}var Rr=(()=>((Rr=Rr||{})[Rr.Important=1]="Important",Rr[Rr.DashCase=2]="DashCase",Rr))();function Fg(p,g){return undefined(p,g)}function ed(p){const g=p[3];return hn(g)?g[3]:g}function jg(p){return Tw(p[13])}function Ng(p){return Tw(p[4])}function Tw(p){for(;null!==p&&!hn(p);)p=p[4];return p}function dl(p,g,m,_,C){if(null!=_){let w,v=!1;hn(_)?w=_:Ii(_)&&(v=!0,_=_[0]);const E=ze(_);0===p&&null!==m?null==C?tt(g,m,E):st(g,m,E,C||null,!0):1===p&&null!==m?st(g,m,E,C||null,!0):2===p?function Yg(p,g,m){const _=Wt(p,g);_&&function Mw(p,g,m,_){p.removeChild(g,m,_)}(p,_,g,m)}(g,E,v):3===p&&g.destroyNode(E),null!=w&&function Zg(p,g,m,_,C){const w=m[7];w!==ze(m)&&dl(g,p,_,w,C);for(let E=10;E0&&(p[m-1][4]=_[4]);const w=Du(p,10+g);!function IT(p,g){ts(p,g,g[11],2,null,null),g[0]=null,g[6]=null}(_[1],_);const v=w[19];null!==v&&v.detachView(w[1]),_[3]=null,_[4]=null,_[2]&=-65}return _}function ar(p,g){if(!(128&g[2])){const m=g[11];m.destroyNode&&ts(p,g,m,3,null,null),function BT(p){let g=p[13];if(!g)return ul(p[1],p);for(;g;){let m=null;if(Ii(g))m=g[13];else{const _=g[10];_&&(m=_)}if(!m){for(;g&&!g[4]&&g!==p;)Ii(g)&&ul(g[1],g),g=g[3];null===g&&(g=p),Ii(g)&&ul(g[1],g),m=g&&g[4]}g=m}}(g)}}function ul(p,g){if(!(128&g[2])){g[2]&=-65,g[2]|=128,function qg(p,g){let m;if(null!=p&&null!=(m=p.destroyHooks))for(let _=0;_=0?_[C=P]():_[C=-P].unsubscribe(),w+=2}else{const v=_[C=m[w+1]];m[w].call(v)}if(null!==_){for(let w=C+1;w<_.length;w++)(0,_[w])();g[7]=null}}(p,g),1===g[1].type&&g[11].destroy();const m=g[17];if(null!==m&&hn(g[3])){m!==g[3]&&Sw(m,g);const _=g[19];null!==_&&_.detachView(p)}!function mw(p){kg.delete(p[20])}(g)}}function Wg(p,g,m){return function $g(p,g,m){let _=g;for(;null!==_&&40&_.type;)_=(g=_).parent;if(null===_)return m[0];if(2&_.flags){const C=p.data[_.directiveStart].encapsulation;if(C===q.None||C===q.Emulated)return null}return It(_,m)}(p,g.parent,m)}function st(p,g,m,_,C){p.insertBefore(g,m,_,C)}function tt(p,g,m){p.appendChild(g,m)}function wi(p,g,m,_,C){null!==_?st(p,g,m,_,C):tt(p,g,m)}function Wt(p,g){return p.parentNode(g)}function Dw(p,g,m){return Qg(p,g,m)}let Qg=function th(p,g,m){return 40&p.type?It(p,m):null};function ih(p,g,m,_){const C=Wg(p,_,g),w=g[11],E=Dw(_.parent||g[6],_,g);if(null!=C)if(Array.isArray(m))for(let S=0;Sw?"":C[L+1].toLowerCase();const re=8&_?X:null;if(re&&-1!==Pw(re,P,0)||2&_&&P!==X){if(Hn(_))return!1;v=!0}}}}else{if(!v&&!Hn(_)&&!Hn(S))return!1;if(v&&Hn(S))continue;v=!1,_=S|1&_}}return Hn(_)||v}function Hn(p){return 0==(1&p)}function FT(p,g,m,_){if(null===g)return-1;let C=0;if(_||!m){let w=!1;for(;C-1)for(m++;m0?'="'+E+'"':"")+"]"}else 8&_?C+="."+v:4&_&&(C+=" "+v);else""!==C&&!Hn(v)&&(g+=tm(w,C),C=""),_=v,w=w||!Hn(_);m++}return""!==C&&(g+=tm(w,C)),g}const lt={};function lh(p){ch(ht(),be(),Vi()+p,!1)}function ch(p,g,m,_){if(!_)if(3==(3&g[2])){const w=p.preOrderCheckHooks;null!==w&&No(g,w,m)}else{const w=p.preOrderHooks;null!==w&&Wa(g,w,0,m)}Xr(m)}function Nw(p,g=null,m=null,_){const C=zw(p,g,m,_);return C.resolveInjectorInitializers(),C}function zw(p,g=null,m=null,_,C=new Set){const w=[m||Ne,Jt(p)];return _=_||("object"==typeof p?void 0:Y(p)),new Yc(w,g||Xo(),_||null,C)}let or=(()=>{class p{static create(m,_){if(Array.isArray(m))return Nw({name:""},_,m,"");{const C=m.name??"";return Nw({name:C},m.parent,m.providers,C)}}}return p.THROW_IF_NOT_FOUND=el,p.NULL=new $c,p.\u0275prov=Dt({token:p,providedIn:"any",factory:()=>si(Ag)}),p.__NG_ELEMENT_ID__=-1,p})();function _l(p,g=Ye.Default){const m=be();return null===m?si(p,g):zf(qt(),m,te(p),g)}function Jw(){throw new Error("invalid")}function ad(p,g){return p<<17|g<<2}function Pn(p){return p>>17&32767}function qe(p){return 2|p}function pa(p){return(131068&p)>>2}function dm(p,g){return-131069&p|g<<2}function fa(p){return 1|p}function dv(p,g){const m=p.contentQueries;if(null!==m)for(let _=0;_22&&ch(p,g,22,!1),m(_,C)}finally{Xr(w)}}function Rn(p,g,m){if(Bs(g)){const C=g.directiveEnd;for(let w=g.directiveStart;w0;){const m=p[--g];if("number"==typeof m&&m<0)return m}return 0})(E)!=S&&E.push(S),E.push(_,C,v)}}function Dm(p,g){null!==p.hostBindings&&p.hostBindings(1,g)}function Hm(p,g){g.flags|=2,(p.components||(p.components=[])).push(g.index)}function ud(p,g,m){if(m){if(g.exportAs)for(let _=0;_0&&hd(m)}}function hd(p){for(let _=jg(p);null!==_;_=Ng(_))for(let C=10;C<_.length;C++){const w=_[C];if(k(w))if(512&w[2]){const v=w[1];yl(v,w,v.template,w[8])}else w[5]>0&&hd(w)}const m=p[1].components;if(null!==m)for(let _=0;_0&&hd(C)}}function Ph(p,g){const m=bt(g,p),_=m[1];(function Cv(p,g){for(let m=g.length;mPromise.resolve(null))();function Om(p){return p[7]||(p[7]=[])}function Lm(p){return p.cleanup||(p.cleanup=[])}function Fm(p,g,m){return(null===p||en(p))&&(m=function Ci(p){for(;Array.isArray(p);){if("object"==typeof p[1])return p;p=p[0]}return null}(m[g.index])),m[11]}function jm(p,g){const m=p[9],_=m?m.get(Zc,null):null;_&&_.handleError(g)}function co(p,g,m,_,C){for(let w=0;w-1&&(Xu(g,_),Du(m,_))}this._attachedToViewContainer=!1}ar(this._lView[1],this._lView)}onDestroy(g){Mh(this._lView[1],this._lView,null,g)}markForCheck(){Rh(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){!function vl(p,g,m){const _=g[10];_.begin&&_.begin();try{yl(p,g,p.template,m)}catch(C){throw jm(g,C),C}finally{_.end&&_.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ie(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function VT(p,g){ts(p,g,g[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(g){if(this._attachedToViewContainer)throw new ie(902,!1);this._appRef=g}}class Nm extends Al{constructor(g){super(g),this._view=g}detectChanges(){yv(this._view)}checkNoChanges(){}get context(){return null}}class kh extends ro{constructor(g){super(),this.ngModule=g}resolveComponentFactory(g){const m=Et(g);return new xl(m,this.ngModule)}}function zm(p){const g=[];for(let m in p)p.hasOwnProperty(m)&&g.push({propName:p[m],templateName:m});return g}class Gm{constructor(g,m){this.injector=g,this.parentInjector=m}get(g,m,_){const C=this.injector.get(g,Mg,_);return C!==Mg||m===Mg?C:this.parentInjector.get(g,m,_)}}class xl extends Kc{constructor(g,m){super(),this.componentDef=g,this.ngModule=m,this.componentType=g.type,this.selector=function Bw(p){return p.map(Vw).join(",")}(g.selectors),this.ngContentSelectors=g.ngContentSelectors?g.ngContentSelectors:[],this.isBoundToModule=!!m}get inputs(){return zm(this.componentDef.inputs)}get outputs(){return zm(this.componentDef.outputs)}create(g,m,_,C){let w=(C=C||this.ngModule)instanceof Ei?C:C?.injector;w&&null!==this.componentDef.getStandaloneInjector&&(w=this.componentDef.getStandaloneInjector(w)||w);const v=w?new Gm(g,w):g,E=v.get(aw,null);if(null===E)throw new ie(407,!1);const S=v.get(eT,null),P=E.createRenderer(null,this.componentDef),R=this.componentDef.selectors[0][0]||"div",L=_?function ss(p,g,m){return p.selectRootElement(g,m===q.ShadowDom)}(P,_,this.componentDef.encapsulation):Ug(E.createRenderer(null,this.componentDef),R,function Um(p){const g=p.toLowerCase();return"svg"===g?"svg":"math"===g?"math":null}(R)),X=this.componentDef.onPush?288:272,re=function lE(p,g){return{components:[],scheduler:p||AT,clean:Bm,playerHandler:g||null,flags:0}}(),me=Sh(0,null,null,1,0,null,null,null,null,null),xe=ld(null,me,re,X,null,null,E,P,S,v,null);let Pe,je;Fo(xe);try{const Xe=function oE(p,g,m,_,C,w){const v=m[1];m[22]=p;const S=as(v,22,2,"#host",null),P=S.mergedAttrs=g.hostAttrs;null!==P&&(fd(S,P,!0),null!==p&&(Mr(C,p,P),null!==S.classes&&is(C,p,S.classes),null!==S.styles&&Xg(C,p,S.styles)));const R=_.createRenderer(p,g),L=ld(m,Eh(g),null,g.onPush?32:16,m[22],S,_,R,w||null,null,null);return v.firstCreatePass&&(xc($s(S,m),v,g.type),Hm(v,S),Pm(S,m.length,1)),ga(m,L),m[22]=L}(L,this.componentDef,xe,E,P);if(L)if(_)Mr(P,L,["ng-version",tT.full]);else{const{attrs:ye,classes:$e}=function Ow(p){const g=[],m=[];let _=1,C=2;for(;_0&&is(P,L,$e.join(" "))}if(je=fn(me,22),void 0!==m){const ye=je.projection=[];for(let $e=0;$e=0;_--){const C=p[_];C.hostVars=g+=C.hostVars,C.hostAttrs=qs(C.hostAttrs,m=qs(m,C.hostAttrs))}}(_)}function Sl(p){return p===dt?{}:p===Ne?[]:p}function vv(p,g){const m=p.viewQuery;p.viewQuery=m?(_,C)=>{g(_,C),m(_,C)}:g}function Vh(p,g){const m=p.contentQueries;p.contentQueries=m?(_,C,w)=>{g(_,C,w),m(_,C,w)}:g}function dE(p,g){const m=p.hostBindings;p.hostBindings=m?(_,C)=>{g(_,C),m(_,C)}:g}let Bh=null;function Or(){if(!Bh){const p=ce.Symbol;if(p&&p.iterator)Bh=p.iterator;else{const g=Object.getOwnPropertyNames(Map.prototype);for(let m=0;mE(ze(_t[_.index])):_.index;let $e=null;if(!E&&S&&($e=function ft(p,g,m,_){const C=p.cleanup;if(null!=C)for(let w=0;wS?E[S]:null}"string"==typeof v&&(w+=2)}return null}(p,g,C,_.index)),null!==$e)($e.__ngLastListenerFn__||$e).__ngNextListenerFn__=w,$e.__ngLastListenerFn__=w,re=!1;else{w=Mv(_,g,L,w,!1);const _t=m.listen(je,C,w);X.push(w,_t),R&&R.push(C,ye,Xe,Xe+1)}}else w=Mv(_,g,L,w,!1);const me=_.outputs;let xe;if(re&&null!==me&&(xe=me[C])){const Pe=xe.length;if(Pe)for(let je=0;je0;)g=g[15],p--;return g}(p,le.lFrame.contextLView))[8]}(p)}function mE(p,g){let m=null;const _=function jT(p){const g=p.attrs;if(null!=g){const m=g.indexOf(5);if(0==(1&m))return g[m+1]}return null}(p);for(let C=0;C=0}const pi={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function n_(p){return p.substring(pi.key,pi.keyEnd)}function r_(p,g){const m=pi.textEnd;return m===g?-1:(g=pi.keyEnd=function wd(p,g,m){for(;g32;)g++;return g}(p,pi.key=g,m),gs(p,g,m))}function gs(p,g,m){for(;g=0;m=r_(g,m))Yi(p,n_(g),!0)}function Bn(p,g,m,_){const C=be(),w=ht(),v=Xn(2);w.firstUpdatePass&&Jh(w,p,v,_),g!==lt&&Mi(C,v,g)&&s_(w,w.data[Vi()],C,C[11],p,C[v+1]=function wE(p,g){return null==p||("string"==typeof g?p+=g:"object"==typeof p&&(p=Y(nr(p)))),p}(g,m),_,v)}function Cn(p,g,m,_){const C=ht(),w=Xn(2);C.firstUpdatePass&&Jh(C,null,w,_);const v=be();if(m!==lt&&Mi(v,w,m)){const E=C.data[Vi()];if(qv(E,_)&&!o_(C,w)){let S=_?E.classesWithoutHost:E.stylesWithoutHost;null!==S&&(m=G(S,m||"")),Nh(C,E,v,m,_)}else!function Uv(p,g,m,_,C,w,v,E){C===lt&&(C=Ne);let S=0,P=0,R=0=p.expandoStartIndex}function Jh(p,g,m,_){const C=p.data;if(null===C[m+1]){const w=C[Vi()],v=o_(p,m);qv(w,_)&&null===g&&!v&&(g=!1),g=function jv(p,g,m,_){const C=Er(p);let w=_?g.residualClasses:g.residualStyles;if(null===C)0===(_?g.classBindings:g.styleBindings)&&(m=vd(m=dr(null,p,g,m,_),g.attrs,_),w=null);else{const v=g.directiveStylingLast;if(-1===v||p[v]!==C)if(m=dr(C,p,g,m,_),null===w){let S=function Nv(p,g,m){const _=m?g.classBindings:g.styleBindings;if(0!==pa(_))return p[Pn(_)]}(p,g,_);void 0!==S&&Array.isArray(S)&&(S=dr(null,p,g,S[1],_),S=vd(S,g.attrs,_),function Kh(p,g,m,_){p[Pn(m?g.classBindings:g.styleBindings)]=_}(p,g,_,S))}else w=function Ll(p,g,m){let _;const C=g.directiveEnd;for(let w=1+g.directiveStylingLast;w0)&&(P=!0)}else R=m;if(C)if(0!==S){const X=Pn(p[E+1]);p[_+1]=ad(X,E),0!==X&&(p[X+1]=dm(p[X+1],_)),p[E+1]=function Kw(p,g){return 131071&p|g<<17}(p[E+1],_)}else p[_+1]=ad(E,0),0!==E&&(p[E+1]=dm(p[E+1],_)),E=_;else p[_+1]=ad(S,0),0===E?E=_:p[S+1]=dm(p[S+1],_),S=_;P&&(p[_+1]=qe(p[_+1])),i_(p,R,_,!0),i_(p,R,_,!1),function Pv(p,g,m,_,C){const w=C?p.residualClasses:p.residualStyles;null!=w&&"string"==typeof g&&qo(w,g)>=0&&(m[_+1]=fa(m[_+1]))}(g,R,p,_,w),v=ad(E,S),w?g.classBindings=v:g.styleBindings=v}(C,w,g,m,v,_)}}function dr(p,g,m,_,C){let w=null;const v=m.directiveEnd;let E=m.directiveStylingLast;for(-1===E?E=m.directiveStart:E++;E0;){const S=p[C],P=Array.isArray(S),R=P?S[1]:S,L=null===R;let X=m[C+1];X===lt&&(X=L?Ne:void 0);let re=L?Pu(X,_):R===_?X:void 0;if(P&&!Zh(re)&&(re=Pu(S,_)),Zh(re)&&(E=re,v))return E;const me=p[C+1];C=v?Pn(me):pa(me)}if(null!==g){let S=w?g.residualClasses:g.residualStyles;null!=S&&(E=Pu(S,_))}return E}function Zh(p){return void 0!==p}function qv(p,g){return 0!=(p.flags&(g?16:32))}function Wv(p,g=""){const m=be(),_=ht(),C=p+22,w=_.firstCreatePass?as(_,C,1,g,null):_.data[C],v=m[C]=function zg(p,g){return p.createText(g)}(m[11],g);ih(_,m,v,w),Ot(w,!1)}function l_(p){return Xh("",p,""),l_}function Xh(p,g,m){const _=be(),C=Hl(_,p,g,m);return C!==lt&&sr(_,Vi(),C),Xh}function c_(p,g,m,_,C){const w=be(),v=function Pl(p,g,m,_,C,w){const E=Fr(p,Zn(),m,C);return Xn(2),E?g+he(m)+_+he(C)+w:lt}(w,p,g,m,_,C);return v!==lt&&sr(w,Vi(),v),c_}function Ad(p,g,m,_,C,w,v,E,S,P,R){const L=be(),X=Il(L,p,g,m,_,C,w,v,E,S,P,R);return X!==lt&&sr(L,Vi(),X),Ad}function d_(p,g,m){Cn(Yi,Vn,Hl(be(),p,g,m),!0)}function ya(p,g,m){const _=be();return Mi(_,qa(),g)&&Si(ht(),Yt(),_,p,g,_[11],m,!0),ya}function y_(p,g,m){const _=be();if(Mi(_,qa(),g)){const w=ht(),v=Yt();Si(w,v,_,p,g,Fm(Er(w.data),v,_),m,!0)}return y_}const po=void 0;var aA=["en",[["a","p"],["AM","PM"],po],[["AM","PM"],po,po],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],po,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],po,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",po,"{1} 'at' {0}",po],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function rA(p){const m=Math.floor(Math.abs(p)),_=p.toString().replace(/^[^.]*\.?/,"").length;return 1===m&&0===_?1:5}];let Fl={};function w_(p){const g=function PE(p){return p.toLowerCase().replace(/_/g,"-")}(p);let m=x_(g);if(m)return m;const _=g.split("-")[0];if(m=x_(_),m)return m;if("en"===_)return aA;throw new ie(701,!1)}function A_(p){return w_(p)[Ke.PluralCase]}function x_(p){return p in Fl||(Fl[p]=ce.ng&&ce.ng.common&&ce.ng.common.locales&&ce.ng.common.locales[p]),Fl[p]}var Ke=(()=>((Ke=Ke||{})[Ke.LocaleId=0]="LocaleId",Ke[Ke.DayPeriodsFormat=1]="DayPeriodsFormat",Ke[Ke.DayPeriodsStandalone=2]="DayPeriodsStandalone",Ke[Ke.DaysFormat=3]="DaysFormat",Ke[Ke.DaysStandalone=4]="DaysStandalone",Ke[Ke.MonthsFormat=5]="MonthsFormat",Ke[Ke.MonthsStandalone=6]="MonthsStandalone",Ke[Ke.Eras=7]="Eras",Ke[Ke.FirstDayOfWeek=8]="FirstDayOfWeek",Ke[Ke.WeekendRange=9]="WeekendRange",Ke[Ke.DateFormat=10]="DateFormat",Ke[Ke.TimeFormat=11]="TimeFormat",Ke[Ke.DateTimeFormat=12]="DateTimeFormat",Ke[Ke.NumberSymbols=13]="NumberSymbols",Ke[Ke.NumberFormats=14]="NumberFormats",Ke[Ke.CurrencyCode=15]="CurrencyCode",Ke[Ke.CurrencySymbol=16]="CurrencySymbol",Ke[Ke.CurrencyName=17]="CurrencyName",Ke[Ke.Currencies=18]="Currencies",Ke[Ke.Directionality=19]="Directionality",Ke[Ke.PluralCase=20]="PluralCase",Ke[Ke.ExtraData=21]="ExtraData",Ke))();const jl="en-US";let T_=jl;function dp(p,g,m,_,C){if(p=te(p),Array.isArray(p))for(let w=0;w>20;if(rn(p)||!p.multi){const re=new Gs(S,C,_l),me=hp(E,g,C?R:R+X,L);-1===me?(xc($s(P,v),w,E),up(w,p,g.length),g.push(E),P.directiveStart++,P.directiveEnd++,C&&(P.providerIndexes+=1048576),m.push(re),v.push(re)):(m[me]=re,v[me]=re)}else{const re=hp(E,g,R+X,L),me=hp(E,g,R,R+X),xe=re>=0&&m[re],Pe=me>=0&&m[me];if(C&&!Pe||!C&&!xe){xc($s(P,v),w,E);const je=function vA(p,g,m,_,C){const w=new Gs(p,m,_l);return w.multi=[],w.index=g,w.componentProviders=0,U_(w,C,_&&!m),w}(C?pp:G_,m.length,C,_,S);!C&&Pe&&(m[me].providerFactory=je),up(w,p,g.length,0),g.push(E),P.directiveStart++,P.directiveEnd++,C&&(P.providerIndexes+=1048576),m.push(je),v.push(je)}else up(w,p,re>-1?re:me,U_(m[C?me:re],S,!C&&_));!C&&_&&Pe&&m[me].componentProviders++}}}function up(p,g,m,_){const C=rn(g),w=function xg(p){return!!p.useClass}(g);if(C||w){const S=(w?te(g.useClass):g).prototype.ngOnDestroy;if(S){const P=p.destroyHooks||(p.destroyHooks=[]);if(!C&&g.multi){const R=P.indexOf(m);-1===R?P.push(m,[_,S]):P[R+1].push(_,S)}else P.push(m,S)}}}function U_(p,g,m){return m&&p.componentProviders++,p.multi.push(g)-1}function hp(p,g,m,_){for(let C=m;C<_;C++)if(g[C]===p)return C;return-1}function G_(p,g,m,_){return fp(this.multi,[])}function pp(p,g,m,_){const C=this.multi;let w;if(this.providerFactory){const v=this.providerFactory.componentProviders,E=Ys(m,m[1],this.providerFactory.index,_);w=E.slice(0,v),fp(C,w);for(let S=v;S{m.providersResolver=(_,C)=>function wA(p,g,m){const _=ht();if(_.firstCreatePass){const C=en(p);dp(m,_.data,_.blueprint,C,!0),dp(g,_.data,_.blueprint,C,!1)}}(_,C?C(p):p,g)}}class ws{}class vs{}function AA(p,g){return new yn(p,g??null)}class yn extends ws{constructor(g,m){super(),this._parent=m,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new kh(this);const _=Wi(g);this._bootstrapComponents=ua(_.bootstrap),this._r3Injector=zw(g,m,[{provide:ws,useValue:this},{provide:ro,useValue:this.componentFactoryResolver}],Y(g),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(g)}get injector(){return this._r3Injector}destroy(){const g=this._r3Injector;!g.destroyed&&g.destroy(),this.destroyCbs.forEach(m=>m()),this.destroyCbs=null}onDestroy(g){this.destroyCbs.push(g)}}class gp extends vs{constructor(g){super(),this.moduleType=g}create(g){return new yn(this.moduleType,g)}}class As extends ws{constructor(g,m,_){super(),this.componentFactoryResolver=new kh(this),this.instance=null;const C=new Yc([...g,{provide:ws,useValue:this},{provide:ro,useValue:this.componentFactoryResolver}],m||Xo(),_,new Set(["environment"]));this.injector=C,C.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(g){this.injector.onDestroy(g)}}function mp(p,g,m=null){return new As(p,g,m).injector}function TA(p,g,m){const _=Ni()+p,C=be();return C[_]===lt?Lr(C,_,m?g.call(m):g()):function Ml(p,g){return p[g]}(C,_)}function EA(p,g,m,_){return HA(be(),Ni(),p,g,m,_)}function SA(p,g,m,_,C){return PA(be(),Ni(),p,g,m,_,C)}function Nd(p,g){const m=p[g];return m===lt?void 0:m}function HA(p,g,m,_,C,w){const v=g+m;return Mi(p,v,C)?Lr(p,v+1,w?_.call(w,C):_(C)):Nd(p,v+1)}function PA(p,g,m,_,C,w,v){const E=g+m;return Fr(p,E,C,w)?Lr(p,E+2,v?_.call(v,C,w):_(C,w)):Nd(p,E+2)}function RA(p,g,m,_,C,w,v,E){const S=g+m;return function Dl(p,g,m,_,C){const w=Fr(p,g,m,_);return Mi(p,g+2,C)||w}(p,S,C,w,v)?Lr(p,S+3,E?_.call(E,C,w,v):_(C,w,v)):Nd(p,S+3)}function IA(p,g){const m=ht();let _;const C=p+22;m.firstCreatePass?(_=function tS(p,g){if(g)for(let m=g.length-1;m>=0;m--){const _=g[m];if(p===_.name)return _}}(g,m.pipeRegistry),m.data[C]=_,_.onDestroy&&(m.destroyHooks||(m.destroyHooks=[])).push(C,_.onDestroy)):_=m.data[C];const w=_.factory||(_.factory=Me(_.type)),v=Hi(_l);try{const E=Ws(!1),S=w();return Ws(E),function Sv(p,g,m,_){m>=p.data.length&&(p.data[m]=null,p.blueprint[m]=null),g[m]=_}(m,be(),C,S),S}finally{Hi(v)}}function kA(p,g,m){const _=p+22,C=be(),w=$i(C,_);return Jl(C,_)?HA(C,Ni(),g,w.transform,m,w):w.transform(m)}function VA(p,g,m,_){const C=p+22,w=be(),v=$i(w,C);return Jl(w,C)?PA(w,Ni(),g,v.transform,m,_,v):v.transform(m,_)}function BA(p,g,m,_,C){const w=p+22,v=be(),E=$i(v,w);return Jl(v,w)?RA(v,Ni(),g,E.transform,m,_,C,E):E.transform(m,_,C)}function Jl(p,g){return p[1].data[g].pure}function vn(p){return g=>{setTimeout(p,void 0,g)}}const Nr=class nS extends T.x{constructor(g=!1){super(),this.__isAsync=g}emit(g){super.next(g)}subscribe(g,m,_){let C=g,w=m||(()=>null),v=_;if(g&&"object"==typeof g){const S=g;C=S.next?.bind(S),w=S.error?.bind(S),v=S.complete?.bind(S)}this.__isAsync&&(w=vn(w),C&&(C=vn(C)),v&&(v=vn(v)));const E=super.subscribe({next:C,error:w,complete:v});return g instanceof u.w0&&g.add(E),E}};function rS(){return this._results[Or()]()}class Cp{constructor(g=!1){this._emitDistinctChangesOnly=g,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const m=Or(),_=Cp.prototype;_[m]||(_[m]=rS)}get changes(){return this._changes||(this._changes=new Nr)}get(g){return this._results[g]}map(g){return this._results.map(g)}filter(g){return this._results.filter(g)}find(g){return this._results.find(g)}reduce(g,m){return this._results.reduce(g,m)}forEach(g){this._results.forEach(g)}some(g){return this._results.some(g)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(g,m){const _=this;_.dirty=!1;const C=gn(g);(this._changesDetected=!function $f(p,g,m){if(p.length!==g.length)return!1;for(let _=0;_{class p{}return p.__NG_ELEMENT_ID__=FA,p})();const aS=zd,oS=class extends aS{constructor(g,m,_){super(),this._declarationLView=g,this._declarationTContainer=m,this.elementRef=_}createEmbeddedView(g,m){const _=this._declarationTContainer.tViews,C=ld(this._declarationLView,_,g,16,null,_.declTNode,null,null,null,null,m||null);C[17]=this._declarationLView[this._declarationTContainer.index];const v=this._declarationLView[19];return null!==v&&(C[19]=v.createEmbeddedView(_)),cd(_,C,g),new Al(C)}};function FA(){return yp(qt(),be())}function yp(p,g){return 4&p.type?new oS(g,p,ca(p,g)):null}let wp=(()=>{class p{}return p.__NG_ELEMENT_ID__=sS,p})();function sS(){return zA(qt(),be())}const lS=wp,jA=class extends lS{constructor(g,m,_){super(),this._lContainer=g,this._hostTNode=m,this._hostLView=_}get element(){return ca(this._hostTNode,this._hostLView)}get injector(){return new Qi(this._hostTNode,this._hostLView)}get parentInjector(){const g=Ac(this._hostTNode,this._hostLView);if(wc(g)){const m=ta(g,this._hostLView),_=er(g);return new Qi(m[1].data[_+8],m)}return new Qi(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(g){const m=NA(this._lContainer);return null!==m&&m[g]||null}get length(){return this._lContainer.length-10}createEmbeddedView(g,m,_){let C,w;"number"==typeof _?C=_:null!=_&&(C=_.index,w=_.injector);const v=g.createEmbeddedView(m||{},w);return this.insert(v,C),v}createComponent(g,m,_,C,w){const v=g&&!function Ks(p){return"function"==typeof p}(g);let E;if(v)E=m;else{const L=m||{};E=L.index,_=L.injector,C=L.projectableNodes,w=L.environmentInjector||L.ngModuleRef}const S=v?g:new xl(Et(g)),P=_||this.parentInjector;if(!w&&null==S.ngModule){const X=(v?P:this.parentInjector).get(Ei,null);X&&(w=X)}const R=S.create(P,C,void 0,w);return this.insert(R.hostView,E),R}insert(g,m){const _=g._lView,C=_[1];if(function D(p){return hn(p[3])}(_)){const R=this.indexOf(g);if(-1!==R)this.detach(R);else{const L=_[3],X=new jA(L,L[6],L[3]);X.detach(X.indexOf(g))}}const w=this._adjustIndex(m),v=this._lContainer;!function OT(p,g,m,_){const C=10+_,w=m.length;_>0&&(m[C-1][4]=g),_0)_.push(v[E/2]);else{const P=w[E+1],R=g[-S];for(let L=10;L{class p{constructor(m){this.appInits=m,this.resolve=Zl,this.reject=Zl,this.initialized=!1,this.done=!1,this.donePromise=new Promise((_,C)=>{this.resolve=_,this.reject=C})}runInitializers(){if(this.initialized)return;const m=[],_=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let C=0;C{w.subscribe({complete:E,error:S})});m.push(v)}}Promise.all(m).then(()=>{_()}).catch(C=>{this.reject(C)}),0===m.length&&_(),this.initialized=!0}}return p.\u0275fac=function(m){return new(m||p)(si(Lp,8))},p.\u0275prov=Dt({token:p,factory:p.\u0275fac,providedIn:"root"}),p})();const On=new At("AppId",{providedIn:"root",factory:function Fp(){return`${Cb()}${Cb()}${Cb()}`}});function Cb(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const bo=new At("Platform Initializer"),jp=new At("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),$d=new At("appBootstrapListener"),l0=new At("AnimationModuleType");let zp=(()=>{class p{log(m){console.log(m)}warn(m){console.warn(m)}}return p.\u0275fac=function(m){return new(m||p)},p.\u0275prov=Dt({token:p,factory:p.\u0275fac,providedIn:"platform"}),p})();const Up=new At("LocaleId",{providedIn:"root",factory:()=>Zf(Up,Ye.Optional|Ye.SkipSelf)||function c0(){return typeof $localize<"u"&&$localize.locale||jl}()}),mS=new At("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class _S{constructor(g,m){this.ngModuleFactory=g,this.componentFactories=m}}let bS=(()=>{class p{compileModuleSync(m){return new gp(m)}compileModuleAsync(m){return Promise.resolve(this.compileModuleSync(m))}compileModuleAndAllComponentsSync(m){const _=this.compileModuleSync(m),w=ua(Wi(m).declarations).reduce((v,E)=>{const S=Et(E);return S&&v.push(new xl(S)),v},[]);return new _S(_,w)}compileModuleAndAllComponentsAsync(m){return Promise.resolve(this.compileModuleAndAllComponentsSync(m))}clearCache(){}clearCacheFor(m){}getModuleId(m){}}return p.\u0275fac=function(m){return new(m||p)},p.\u0275prov=Dt({token:p,factory:p.\u0275fac,providedIn:"root"}),p})();const Qd=(()=>Promise.resolve(0))();function Ma(p){typeof Zone>"u"?Qd.then(()=>{p&&p.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",p)}class qi{constructor({enableLongStackTrace:g=!1,shouldCoalesceEventChangeDetection:m=!1,shouldCoalesceRunChangeDetection:_=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Nr(!1),this.onMicrotaskEmpty=new Nr(!1),this.onStable=new Nr(!1),this.onError=new Nr(!1),typeof Zone>"u")throw new ie(908,!1);Zone.assertZonePatched();const C=this;if(C._nesting=0,C._outer=C._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const w=Zone.AsyncStackTaggingZoneSpec;C._inner=C._inner.fork(new w("Angular"))}Zone.TaskTrackingZoneSpec&&(C._inner=C._inner.fork(new Zone.TaskTrackingZoneSpec)),g&&Zone.longStackTraceZoneSpec&&(C._inner=C._inner.fork(Zone.longStackTraceZoneSpec)),C.shouldCoalesceEventChangeDetection=!_&&m,C.shouldCoalesceRunChangeDetection=_,C.lastRequestAnimationFrameId=-1,C.nativeRequestAnimationFrame=function Xl(){let p=ce.requestAnimationFrame,g=ce.cancelAnimationFrame;if(typeof Zone<"u"&&p&&g){const m=p[Zone.__symbol__("OriginalDelegate")];m&&(p=m);const _=g[Zone.__symbol__("OriginalDelegate")];_&&(g=_)}return{nativeRequestAnimationFrame:p,nativeCancelAnimationFrame:g}}().nativeRequestAnimationFrame,function Yd(p){const g=()=>{!function xb(p){p.isCheckStableRunning||-1!==p.lastRequestAnimationFrameId||(p.lastRequestAnimationFrameId=p.nativeRequestAnimationFrame.call(ce,()=>{p.fakeTopEventTask||(p.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{p.lastRequestAnimationFrameId=-1,Jd(p),p.isCheckStableRunning=!0,ec(p),p.isCheckStableRunning=!1},void 0,()=>{},()=>{})),p.fakeTopEventTask.invoke()}),Jd(p))}(p)};p._inner=p._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(m,_,C,w,v,E)=>{try{return Gp(p),m.invokeTask(C,w,v,E)}finally{(p.shouldCoalesceEventChangeDetection&&"eventTask"===w.type||p.shouldCoalesceRunChangeDetection)&&g(),tc(p)}},onInvoke:(m,_,C,w,v,E,S)=>{try{return Gp(p),m.invoke(C,w,v,E,S)}finally{p.shouldCoalesceRunChangeDetection&&g(),tc(p)}},onHasTask:(m,_,C,w)=>{m.hasTask(C,w),_===C&&("microTask"==w.change?(p._hasPendingMicrotasks=w.microTask,Jd(p),ec(p)):"macroTask"==w.change&&(p.hasPendingMacrotasks=w.macroTask))},onHandleError:(m,_,C,w)=>(m.handleError(C,w),p.runOutsideAngular(()=>p.onError.emit(w)),!1)})}(C)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!qi.isInAngularZone())throw new ie(909,!1)}static assertNotInAngularZone(){if(qi.isInAngularZone())throw new ie(909,!1)}run(g,m,_){return this._inner.run(g,m,_)}runTask(g,m,_,C){const w=this._inner,v=w.scheduleEventTask("NgZoneEvent: "+C,g,Ab,Zl,Zl);try{return w.runTask(v,m,_)}finally{w.cancelTask(v)}}runGuarded(g,m,_){return this._inner.runGuarded(g,m,_)}runOutsideAngular(g){return this._outer.run(g)}}const Ab={};function ec(p){if(0==p._nesting&&!p.hasPendingMicrotasks&&!p.isStable)try{p._nesting++,p.onMicrotaskEmpty.emit(null)}finally{if(p._nesting--,!p.hasPendingMicrotasks)try{p.runOutsideAngular(()=>p.onStable.emit(null))}finally{p.isStable=!0}}}function Jd(p){p.hasPendingMicrotasks=!!(p._hasPendingMicrotasks||(p.shouldCoalesceEventChangeDetection||p.shouldCoalesceRunChangeDetection)&&-1!==p.lastRequestAnimationFrameId)}function Gp(p){p._nesting++,p.isStable&&(p.isStable=!1,p.onUnstable.emit(null))}function tc(p){p._nesting--,ec(p)}class Kd{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Nr,this.onMicrotaskEmpty=new Nr,this.onStable=new Nr,this.onError=new Nr}run(g,m,_){return g.apply(m,_)}runGuarded(g,m,_){return g.apply(m,_)}runOutsideAngular(g){return g()}runTask(g,m,_,C){return g.apply(m,_)}}const p0=new At(""),f0=new At("");let Co,g0=(()=>{class p{constructor(m,_,C){this._ngZone=m,this.registry=_,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Co||(function Zd(p){Co=p}(C),C.addToWindow(_)),this._watchAngularEvents(),m.run(()=>{this.taskTrackingZone=typeof Zone>"u"?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:()=>{qi.assertNotInAngularZone(),Ma(()=>{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())Ma(()=>{for(;0!==this._callbacks.length;){let m=this._callbacks.pop();clearTimeout(m.timeoutId),m.doneCb(this._didWork)}this._didWork=!1});else{let m=this.getPendingTasks();this._callbacks=this._callbacks.filter(_=>!_.updateCb||!_.updateCb(m)||(clearTimeout(_.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(m=>({source:m.source,creationLocation:m.creationLocation,data:m.data})):[]}addCallback(m,_,C){let w=-1;_&&_>0&&(w=setTimeout(()=>{this._callbacks=this._callbacks.filter(v=>v.timeoutId!==w),m(this._didWork,this.getPendingTasks())},_)),this._callbacks.push({doneCb:m,timeoutId:w,updateCb:C})}whenStable(m,_,C){if(C&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(m,_,C),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(m){this.registry.registerApplication(m,this)}unregisterApplication(m){this.registry.unregisterApplication(m)}findProviders(m,_,C){return[]}}return p.\u0275fac=function(m){return new(m||p)(si(qi),si(m0),si(f0))},p.\u0275prov=Dt({token:p,factory:p.\u0275fac}),p})(),m0=(()=>{class p{constructor(){this._applications=new Map}registerApplication(m,_){this._applications.set(m,_)}unregisterApplication(m){this._applications.delete(m)}unregisterAllApplications(){this._applications.clear()}getTestability(m){return this._applications.get(m)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(m,_=!0){return Co?.findTestabilityInTree(this,m,_)??null}}return p.\u0275fac=function(m){return new(m||p)},p.\u0275prov=Dt({token:p,factory:p.\u0275fac,providedIn:"platform"}),p})(),Ln=null;const ic=new At("AllowMultipleToken"),qp=new At("PlatformDestroyListeners");class Tb{constructor(g,m){this.name=g,this.token=m}}function Mb(p,g,m=[]){const _=`Platform: ${g}`,C=new At(_);return(w=[])=>{let v=Wp();if(!v||v.injector.get(ic,!1)){const E=[...m,...w,{provide:C,useValue:!0}];p?p(E):function b0(p){if(Ln&&!Ln.get(ic,!1))throw new ie(400,!1);Ln=p;const g=p.get($p);(function Sb(p){const g=p.get(bo,null);g&&g.forEach(m=>m())})(p)}(function C0(p=[],g){return or.create({name:g,providers:[{provide:no,useValue:"platform"},{provide:qp,useValue:new Set([()=>Ln=null])},...p]})}(E,_))}return function Db(p){const g=Wp();if(!g)throw new ie(401,!1);return g}()}}function Wp(){return Ln?.get($p)??null}let $p=(()=>{class p{constructor(m){this._injector=m,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(m,_){const C=function y0(p,g){let m;return m="noop"===p?new Kd:("zone.js"===p?void 0:p)||new qi(g),m}(_?.ngZone,function eu(p){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!p||!p.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!p||!p.ngZoneRunCoalescing)||!1}}(_)),w=[{provide:qi,useValue:C}];return C.run(()=>{const v=or.create({providers:w,parent:this.injector,name:m.moduleType.name}),E=m.create(v),S=E.injector.get(Zc,null);if(!S)throw new ie(402,!1);return C.runOutsideAngular(()=>{const P=C.onError.subscribe({next:R=>{S.handleError(R)}});E.onDestroy(()=>{Ha(this._modules,E),P.unsubscribe()})}),function w0(p,g,m){try{const _=m();return $t(_)?_.catch(C=>{throw g.runOutsideAngular(()=>p.handleError(C)),C}):_}catch(_){throw g.runOutsideAngular(()=>p.handleError(_)),_}}(S,C,()=>{const P=E.injector.get(Ai);return P.runInitializers(),P.donePromise.then(()=>(function zl(p){kt(p,"Expected localeId to be defined"),"string"==typeof p&&(T_=p.toLowerCase().replace(/_/g,"-"))}(E.injector.get(Up,jl)||jl),this._moduleDoBootstrap(E),E))})})}bootstrapModule(m,_=[]){const C=Pb({},_);return function Xd(p,g,m){const _=new gp(m);return Promise.resolve(_)}(0,0,m).then(w=>this.bootstrapModuleFactory(w,C))}_moduleDoBootstrap(m){const _=m.injector.get(Da);if(m._bootstrapComponents.length>0)m._bootstrapComponents.forEach(C=>_.bootstrap(C));else{if(!m.instance.ngDoBootstrap)throw new ie(403,!1);m.instance.ngDoBootstrap(_)}this._modules.push(m)}onDestroy(m){this._destroyListeners.push(m)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ie(404,!1);this._modules.slice().forEach(_=>_.destroy()),this._destroyListeners.forEach(_=>_());const m=this._injector.get(qp,null);m&&(m.forEach(_=>_()),m.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return p.\u0275fac=function(m){return new(m||p)(si(or))},p.\u0275prov=Dt({token:p,factory:p.\u0275fac,providedIn:"platform"}),p})();function Pb(p,g){return Array.isArray(g)?g.reduce(Pb,p):{...p,...g}}let Da=(()=>{class p{constructor(m,_,C){this._zone=m,this._injector=_,this._exceptionHandler=C,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const w=new V.y(E=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{E.next(this._stable),E.complete()})}),v=new V.y(E=>{let S;this._zone.runOutsideAngular(()=>{S=this._zone.onStable.subscribe(()=>{qi.assertNotInAngularZone(),Ma(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,E.next(!0))})})});const P=this._zone.onUnstable.subscribe(()=>{qi.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{E.next(!1)}))});return()=>{S.unsubscribe(),P.unsubscribe()}});this.isStable=(0,O.T)(w,v.pipe((0,I.B)()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(m,_){const C=m instanceof Kc;if(!this._injector.get(Ai).done)throw!C&&Ss(m),new ie(405,false);let v;v=C?m:this._injector.get(ro).resolveComponentFactory(m),this.componentTypes.push(v.componentType);const E=function _0(p){return p.isBoundToModule}(v)?void 0:this._injector.get(ws),P=v.create(or.NULL,[],_||v.selector,E),R=P.location.nativeElement,L=P.injector.get(p0,null);return L?.registerApplication(R),P.onDestroy(()=>{this.detachView(P.hostView),Ha(this.components,P),L?.unregisterApplication(R)}),this._loadComponent(P),P}tick(){if(this._runningTick)throw new ie(101,!1);try{this._runningTick=!0;for(let m of this._views)m.detectChanges()}catch(m){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(m))}finally{this._runningTick=!1}}attachView(m){const _=m;this._views.push(_),_.attachToAppRef(this)}detachView(m){const _=m;Ha(this._views,_),_.detachFromAppRef()}_loadComponent(m){this.attachView(m.hostView),this.tick(),this.components.push(m),this._injector.get($d,[]).concat(this._bootstrapListeners).forEach(C=>C(m))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(m=>m()),this._views.slice().forEach(m=>m.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(m){return this._destroyListeners.push(m),()=>Ha(this._destroyListeners,m)}destroy(){if(this._destroyed)throw new ie(406,!1);const m=this._injector;m.destroy&&!m.destroyed&&m.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return p.\u0275fac=function(m){return new(m||p)(si(qi),si(Ei),si(Zc))},p.\u0275prov=Dt({token:p,factory:p.\u0275fac,providedIn:"root"}),p})();function Ha(p,g){const m=p.indexOf(g);m>-1&&p.splice(m,1)}let zr=!0;function kb(){zr=!1}let wS=(()=>{class p{}return p.__NG_ELEMENT_ID__=A0,p})();function A0(p){return function Vb(p,g,m){if(Na(p)&&!m){const _=bt(p.index,g);return new Al(_,_)}return 47&p.type?new Al(g[16],g):null}(qt(),be(),16==(16&p))}class Kp{constructor(){}supports(g){return _n(g)}create(g){return new Zp(g)}}const E0=(p,g)=>g;class Zp{constructor(g){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=g||E0}forEachItem(g){let m;for(m=this._itHead;null!==m;m=m._next)g(m)}forEachOperation(g){let m=this._itHead,_=this._removalsHead,C=0,w=null;for(;m||_;){const v=!_||m&&m.currentIndex{v=this._trackByFn(C,E),null!==m&&Object.is(m.trackById,v)?(_&&(m=this._verifyReinsertion(m,E,v,C)),Object.is(m.item,E)||this._addIdentityChange(m,E)):(m=this._mismatch(m,E,v,C),_=!0),m=m._next,C++}),this.length=C;return this._truncate(m),this.collection=g,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let g;for(g=this._previousItHead=this._itHead;null!==g;g=g._next)g._nextPrevious=g._next;for(g=this._additionsHead;null!==g;g=g._nextAdded)g.previousIndex=g.currentIndex;for(this._additionsHead=this._additionsTail=null,g=this._movesHead;null!==g;g=g._nextMoved)g.previousIndex=g.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(g,m,_,C){let w;return null===g?w=this._itTail:(w=g._prev,this._remove(g)),null!==(g=null===this._unlinkedRecords?null:this._unlinkedRecords.get(_,null))?(Object.is(g.item,m)||this._addIdentityChange(g,m),this._reinsertAfter(g,w,C)):null!==(g=null===this._linkedRecords?null:this._linkedRecords.get(_,C))?(Object.is(g.item,m)||this._addIdentityChange(g,m),this._moveAfter(g,w,C)):g=this._addAfter(new S0(m,_),w,C),g}_verifyReinsertion(g,m,_,C){let w=null===this._unlinkedRecords?null:this._unlinkedRecords.get(_,null);return null!==w?g=this._reinsertAfter(w,g._prev,C):g.currentIndex!=C&&(g.currentIndex=C,this._addToMoves(g,C)),g}_truncate(g){for(;null!==g;){const m=g._next;this._addToRemovals(this._unlink(g)),g=m}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(g,m,_){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(g);const C=g._prevRemoved,w=g._nextRemoved;return null===C?this._removalsHead=w:C._nextRemoved=w,null===w?this._removalsTail=C:w._prevRemoved=C,this._insertAfter(g,m,_),this._addToMoves(g,_),g}_moveAfter(g,m,_){return this._unlink(g),this._insertAfter(g,m,_),this._addToMoves(g,_),g}_addAfter(g,m,_){return this._insertAfter(g,m,_),this._additionsTail=null===this._additionsTail?this._additionsHead=g:this._additionsTail._nextAdded=g,g}_insertAfter(g,m,_){const C=null===m?this._itHead:m._next;return g._next=C,g._prev=m,null===C?this._itTail=g:C._prev=g,null===m?this._itHead=g:m._next=g,null===this._linkedRecords&&(this._linkedRecords=new Ub),this._linkedRecords.put(g),g.currentIndex=_,g}_remove(g){return this._addToRemovals(this._unlink(g))}_unlink(g){null!==this._linkedRecords&&this._linkedRecords.remove(g);const m=g._prev,_=g._next;return null===m?this._itHead=_:m._next=_,null===_?this._itTail=m:_._prev=m,g}_addToMoves(g,m){return g.previousIndex===m||(this._movesTail=null===this._movesTail?this._movesHead=g:this._movesTail._nextMoved=g),g}_addToRemovals(g){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Ub),this._unlinkedRecords.put(g),g.currentIndex=null,g._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=g,g._prevRemoved=null):(g._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=g),g}_addIdentityChange(g,m){return g.item=m,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=g:this._identityChangesTail._nextIdentityChange=g,g}}class S0{constructor(g,m){this.item=g,this.trackById=m,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 zb{constructor(){this._head=null,this._tail=null}add(g){null===this._head?(this._head=this._tail=g,g._nextDup=null,g._prevDup=null):(this._tail._nextDup=g,g._prevDup=this._tail,g._nextDup=null,this._tail=g)}get(g,m){let _;for(_=this._head;null!==_;_=_._nextDup)if((null===m||m<=_.currentIndex)&&Object.is(_.trackById,g))return _;return null}remove(g){const m=g._prevDup,_=g._nextDup;return null===m?this._head=_:m._nextDup=_,null===_?this._tail=m:_._prevDup=m,null===this._head}}class Ub{constructor(){this.map=new Map}put(g){const m=g.trackById;let _=this.map.get(m);_||(_=new zb,this.map.set(m,_)),_.add(g)}get(g,m){const C=this.map.get(g);return C?C.get(g,m):null}remove(g){const m=g.trackById;return this.map.get(m).remove(g)&&this.map.delete(m),g}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function nu(p,g,m){const _=p.previousIndex;if(null===_)return _;let C=0;return m&&_{if(m&&m.key===C)this._maybeAddToChanges(m,_),this._appendAfter=m,m=m._next;else{const w=this._getOrCreateRecordForKey(C,_);m=this._insertBeforeOrAppend(m,w)}}),m){m._prev&&(m._prev._next=null),this._removalsHead=m;for(let _=m;null!==_;_=_._nextRemoved)_===this._mapHead&&(this._mapHead=null),this._records.delete(_.key),_._nextRemoved=_._next,_.previousValue=_.currentValue,_.currentValue=null,_._prev=null,_._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(g,m){if(g){const _=g._prev;return m._next=g,m._prev=_,g._prev=m,_&&(_._next=m),g===this._mapHead&&(this._mapHead=m),this._appendAfter=g,g}return this._appendAfter?(this._appendAfter._next=m,m._prev=this._appendAfter):this._mapHead=m,this._appendAfter=m,null}_getOrCreateRecordForKey(g,m){if(this._records.has(g)){const C=this._records.get(g);this._maybeAddToChanges(C,m);const w=C._prev,v=C._next;return w&&(w._next=v),v&&(v._prev=w),C._next=null,C._prev=null,C}const _=new qb(g);return this._records.set(g,_),_.currentValue=m,this._addToAdditions(_),_}_reset(){if(this.isDirty){let g;for(this._previousMapHead=this._mapHead,g=this._previousMapHead;null!==g;g=g._next)g._nextPrevious=g._next;for(g=this._changesHead;null!==g;g=g._nextChanged)g.previousValue=g.currentValue;for(g=this._additionsHead;null!=g;g=g._nextAdded)g.previousValue=g.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(g,m){Object.is(m,g.currentValue)||(g.previousValue=g.currentValue,g.currentValue=m,this._addToChanges(g))}_addToAdditions(g){null===this._additionsHead?this._additionsHead=this._additionsTail=g:(this._additionsTail._nextAdded=g,this._additionsTail=g)}_addToChanges(g){null===this._changesHead?this._changesHead=this._changesTail=g:(this._changesTail._nextChanged=g,this._changesTail=g)}_forEach(g,m){g instanceof Map?g.forEach(m):Object.keys(g).forEach(_=>m(g[_],_))}}class qb{constructor(g){this.key=g,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Wb(){return new $b([new Kp])}let $b=(()=>{class p{constructor(m){this.factories=m}static create(m,_){if(null!=_){const C=_.factories.slice();m=m.concat(C)}return new p(m)}static extend(m){return{provide:p,useFactory:_=>p.create(m,_||Wb()),deps:[[p,new Xa,new $o]]}}find(m){const _=this.factories.find(C=>C.supports(m));if(null!=_)return _;throw new ie(901,!1)}}return p.\u0275prov=Dt({token:p,providedIn:"root",factory:Wb}),p})();function Yb(){return new ru([new Gb])}let ru=(()=>{class p{constructor(m){this.factories=m}static create(m,_){if(_){const C=_.factories.slice();m=m.concat(C)}return new p(m)}static extend(m){return{provide:p,useFactory:_=>p.create(m,_||Yb()),deps:[[p,new Xa,new $o]]}}find(m){const _=this.factories.find(C=>C.supports(m));if(_)return _;throw new ie(901,!1)}}return p.\u0275prov=Dt({token:p,providedIn:"root",factory:Yb}),p})();const H0=Mb(null,"core",[]);let Kb=(()=>{class p{constructor(m){}}return p.\u0275fac=function(m){return new(m||p)(si(Da))},p.\u0275mod=$r({type:p}),p.\u0275inj=oi({}),p})();function P0(p){return"boolean"==typeof p?p:null!=p&&"false"!==p}},1214:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Ct:()=>OAuthService,Hy:()=>OAuthStorage,zr:()=>OAuthModule});var _home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5861),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(4650),_angular_common__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(6895),_angular_common_http__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(529),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(7579),rxjs__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(9646),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(2076),rxjs__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(102),rxjs__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(2843),rxjs__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(9841),rxjs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(6451),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(9300),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(8505),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(8372),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(1005),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(3900),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(4004),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(590),rxjs_operators__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(262),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(7414),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(5698),rxjs_operators__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(5577),fast_sha256__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1302);class DateTimeProvider{}let SystemDateTimeProvider=(()=>{class F extends DateTimeProvider{now(){return Date.now()}new(){return new Date}}return F.\u0275fac=function(){let N;return function(T){return(N||(N=_angular_core__WEBPACK_IMPORTED_MODULE_1__.n5z(F)))(T||F)}}(),F.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:F,factory:F.\u0275fac}),F})();class LoginOptions{constructor(){this.disableNonceCheck=!1,this.preventClearHashAfterLogin=!1}}class OAuthLogger{}class OAuthStorage{}let MemoryStorage=(()=>{class F{constructor(){this.data=new Map}getItem(x){return this.data.get(x)}removeItem(x){this.data.delete(x)}setItem(x,T){this.data.set(x,T)}}return F.\u0275fac=function(x){return new(x||F)},F.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:F,factory:F.\u0275fac}),F})();class ReceivedTokens{}class OAuthEvent{constructor(N){this.type=N}}class OAuthSuccessEvent extends OAuthEvent{constructor(N,x=null){super(N),this.info=x}}class OAuthInfoEvent extends OAuthEvent{constructor(N,x=null){super(N),this.info=x}}class OAuthErrorEvent extends OAuthEvent{constructor(N,x,T=null){super(N),this.reason=x,this.params=T}}function b64DecodeUnicode(F){const N=F.replace(/\-/g,"+").replace(/\_/g,"/");return decodeURIComponent(atob(N).split("").map(function(x){return"%"+("00"+x.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function base64UrlEncode(F){return btoa(F).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}class AuthConfig{constructor(N){this.clientId="",this.redirectUri="",this.postLogoutRedirectUri="",this.redirectUriAsPostLogoutRedirectUriFallback=!0,this.loginUrl="",this.scope="openid profile",this.resource="",this.rngUrl="",this.oidc=!0,this.requestAccessToken=!0,this.options=null,this.issuer="",this.logoutUrl="",this.clearHashAfterLogin=!0,this.tokenEndpoint=null,this.revocationEndpoint=null,this.customTokenParameters=[],this.userinfoEndpoint=null,this.responseType="",this.showDebugInformation=!1,this.silentRefreshRedirectUri="",this.silentRefreshMessagePrefix="",this.silentRefreshShowIFrame=!1,this.siletRefreshTimeout=2e4,this.silentRefreshTimeout=2e4,this.dummyClientSecret=null,this.requireHttps="remoteOnly",this.strictDiscoveryDocumentValidation=!0,this.jwks=null,this.customQueryParams=null,this.silentRefreshIFrameName="angular-oauth-oidc-silent-refresh-iframe",this.timeoutFactor=.75,this.sessionChecksEnabled=!1,this.sessionCheckIntervall=3e3,this.sessionCheckIFrameUrl=null,this.sessionCheckIFrameName="angular-oauth-oidc-check-session-iframe",this.disableAtHashCheck=!1,this.skipSubjectCheck=!1,this.useIdTokenHintForSilentRefresh=!1,this.skipIssuerCheck=!1,this.nonceStateSeparator=";",this.useHttpBasicAuth=!1,this.waitForTokenInMsec=0,this.disablePKCE=!1,this.preserveRequestedRoute=!1,this.openUri=x=>{location.href=x},N&&Object.assign(this,N)}}class WebHttpUrlEncodingCodec{encodeKey(N){return encodeURIComponent(N)}encodeValue(N){return encodeURIComponent(N)}decodeKey(N){return decodeURIComponent(N)}decodeValue(N){return decodeURIComponent(N)}}class ValidationHandler{}class AbstractValidationHandler{validateAtHash(N){var x=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){let T=x.inferHashAlgorithm(N.idTokenHeader),u=yield x.calcHash(N.accessToken,T),O=base64UrlEncode(u.substr(0,u.length/2)),I=N.idTokenClaims.at_hash.replace(/=/g,"");return O!==I&&(console.error("exptected at_hash: "+O),console.error("actual at_hash: "+I)),O===I})()}inferHashAlgorithm(N){let x=N.alg;if(!x.match(/^.S[0-9]{3}$/))throw new Error("Algorithm not supported: "+x);return"sha-"+x.substr(2)}}let UrlHelperService=(()=>{class F{getHashFragmentParams(x){let T=x||window.location.hash;if(T=decodeURIComponent(T),0!==T.indexOf("#"))return{};const u=T.indexOf("?");return T=T.substr(u>-1?u+1:1),this.parseQueryString(T)}parseQueryString(x){const T={};let u,V,O,I,j,W,Y;if(null===x)return T;u=x.split("&");for(let G=0;G>6,V[I++]=128|63&j):j<55296||j>=57344?(V[I++]=224|j>>12,V[I++]=128|j>>6&63,V[I++]=128|63&j):(j=65536+((1023&j)<<10|1023&F.charCodeAt(++T)),V[I++]=240|j>>18,V[I++]=128|j>>12&63,V[I++]=128|j>>6&63,V[I++]=128|63&j);F=V}else{if("object"!==u)throw new Error(ERROR);if(null===F)throw new Error(ERROR);if(ARRAY_BUFFER&&F.constructor===ArrayBuffer)F=new Uint8Array(F);else if(!(Array.isArray(F)||ARRAY_BUFFER&&ArrayBuffer.isView(F)))throw new Error(ERROR)}F.length>64&&(F=new Sha256(N,!0).update(F).array());var W=[],Y=[];for(T=0;T<64;++T){var G=F[T]||0;W[T]=92^G,Y[T]=54^G}Sha256.call(this,N,x),this.update(Y),this.oKeyPad=W,this.inner=!0,this.sharedMemory=x}Sha256.prototype.update=function(F){if(!this.finalized){var N,x=typeof F;if("string"!==x){if("object"!==x)throw new Error(ERROR);if(null===F)throw new Error(ERROR);if(ARRAY_BUFFER&&F.constructor===ArrayBuffer)F=new Uint8Array(F);else if(!(Array.isArray(F)||ARRAY_BUFFER&&ArrayBuffer.isView(F)))throw new Error(ERROR);N=!0}for(var T,V,u=0,O=F.length,I=this.blocks;u>2]|=F[u]<>2]|=T<>2]|=(192|T>>6)<>2]|=(128|63&T)<=57344?(I[V>>2]|=(224|T>>12)<>2]|=(128|T>>6&63)<>2]|=(128|63&T)<>2]|=(240|T>>18)<>2]|=(128|T>>12&63)<>2]|=(128|T>>6&63)<>2]|=(128|63&T)<=64?(this.block=I[16],this.start=V-64,this.hash(),this.hashed=!0):this.start=V}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var F=this.blocks,N=this.lastByteIndex;F[16]=this.block,F[N>>2]|=EXTRA[3&N],this.block=F[16],N>=56&&(this.hashed||this.hash(),F[0]=this.block,F[16]=F[1]=F[2]=F[3]=F[4]=F[5]=F[6]=F[7]=F[8]=F[9]=F[10]=F[11]=F[12]=F[13]=F[14]=F[15]=0),F[14]=this.hBytes<<3|this.bytes>>>29,F[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var W,U,J,ie,de,he,F=this.h0,N=this.h1,x=this.h2,T=this.h3,u=this.h4,V=this.h5,O=this.h6,I=this.h7,j=this.blocks;for(W=16;W<64;++W)j[W]=j[W-16]+(((U=j[W-15])>>>7|U<<25)^(U>>>18|U<<14)^U>>>3)+j[W-7]+(((U=j[W-2])>>>17|U<<15)^(U>>>19|U<<13)^U>>>10)<<0;for(he=N&x,W=0;W<64;W+=4)this.first?(this.is224?(J=300032,I=(U=j[0]-1413257819)-150054599<<0,T=U+24177077<<0):(J=704751109,I=(U=j[0]-210244248)-1521486534<<0,T=U+143694565<<0),this.first=!1):(I=T+(U=I+((u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7))+(u&V^~u&O)+K[W]+j[W])<<0,T=U+(((F>>>2|F<<30)^(F>>>13|F<<19)^(F>>>22|F<<10))+((J=F&N)^F&x^he))<<0),O=x+(U=O+((I>>>6|I<<26)^(I>>>11|I<<21)^(I>>>25|I<<7))+(I&u^~I&V)+K[W+1]+j[W+1])<<0,x=U+(((T>>>2|T<<30)^(T>>>13|T<<19)^(T>>>22|T<<10))+((ie=T&F)^T&N^J))<<0,V=N+(U=V+((O>>>6|O<<26)^(O>>>11|O<<21)^(O>>>25|O<<7))+(O&I^~O&u)+K[W+2]+j[W+2])<<0,N=U+(((x>>>2|x<<30)^(x>>>13|x<<19)^(x>>>22|x<<10))+((de=x&T)^x&F^ie))<<0,u=F+(U=u+((V>>>6|V<<26)^(V>>>11|V<<21)^(V>>>25|V<<7))+(V&O^~V&I)+K[W+3]+j[W+3])<<0,F=U+(((N>>>2|N<<30)^(N>>>13|N<<19)^(N>>>22|N<<10))+((he=N&x)^N&T^de))<<0;this.h0=this.h0+F<<0,this.h1=this.h1+N<<0,this.h2=this.h2+x<<0,this.h3=this.h3+T<<0,this.h4=this.h4+u<<0,this.h5=this.h5+V<<0,this.h6=this.h6+O<<0,this.h7=this.h7+I<<0},Sha256.prototype.hex=function(){this.finalize();var F=this.h0,N=this.h1,x=this.h2,T=this.h3,u=this.h4,V=this.h5,O=this.h6,I=this.h7,j=HEX_CHARS[F>>28&15]+HEX_CHARS[F>>24&15]+HEX_CHARS[F>>20&15]+HEX_CHARS[F>>16&15]+HEX_CHARS[F>>12&15]+HEX_CHARS[F>>8&15]+HEX_CHARS[F>>4&15]+HEX_CHARS[15&F]+HEX_CHARS[N>>28&15]+HEX_CHARS[N>>24&15]+HEX_CHARS[N>>20&15]+HEX_CHARS[N>>16&15]+HEX_CHARS[N>>12&15]+HEX_CHARS[N>>8&15]+HEX_CHARS[N>>4&15]+HEX_CHARS[15&N]+HEX_CHARS[x>>28&15]+HEX_CHARS[x>>24&15]+HEX_CHARS[x>>20&15]+HEX_CHARS[x>>16&15]+HEX_CHARS[x>>12&15]+HEX_CHARS[x>>8&15]+HEX_CHARS[x>>4&15]+HEX_CHARS[15&x]+HEX_CHARS[T>>28&15]+HEX_CHARS[T>>24&15]+HEX_CHARS[T>>20&15]+HEX_CHARS[T>>16&15]+HEX_CHARS[T>>12&15]+HEX_CHARS[T>>8&15]+HEX_CHARS[T>>4&15]+HEX_CHARS[15&T]+HEX_CHARS[u>>28&15]+HEX_CHARS[u>>24&15]+HEX_CHARS[u>>20&15]+HEX_CHARS[u>>16&15]+HEX_CHARS[u>>12&15]+HEX_CHARS[u>>8&15]+HEX_CHARS[u>>4&15]+HEX_CHARS[15&u]+HEX_CHARS[V>>28&15]+HEX_CHARS[V>>24&15]+HEX_CHARS[V>>20&15]+HEX_CHARS[V>>16&15]+HEX_CHARS[V>>12&15]+HEX_CHARS[V>>8&15]+HEX_CHARS[V>>4&15]+HEX_CHARS[15&V]+HEX_CHARS[O>>28&15]+HEX_CHARS[O>>24&15]+HEX_CHARS[O>>20&15]+HEX_CHARS[O>>16&15]+HEX_CHARS[O>>12&15]+HEX_CHARS[O>>8&15]+HEX_CHARS[O>>4&15]+HEX_CHARS[15&O];return this.is224||(j+=HEX_CHARS[I>>28&15]+HEX_CHARS[I>>24&15]+HEX_CHARS[I>>20&15]+HEX_CHARS[I>>16&15]+HEX_CHARS[I>>12&15]+HEX_CHARS[I>>8&15]+HEX_CHARS[I>>4&15]+HEX_CHARS[15&I]),j},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var F=this.h0,N=this.h1,x=this.h2,T=this.h3,u=this.h4,V=this.h5,O=this.h6,I=this.h7,j=[F>>24&255,F>>16&255,F>>8&255,255&F,N>>24&255,N>>16&255,N>>8&255,255&N,x>>24&255,x>>16&255,x>>8&255,255&x,T>>24&255,T>>16&255,T>>8&255,255&T,u>>24&255,u>>16&255,u>>8&255,255&u,V>>24&255,V>>16&255,V>>8&255,255&V,O>>24&255,O>>16&255,O>>8&255,255&O];return this.is224||j.push(I>>24&255,I>>16&255,I>>8&255,255&I),j},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var F=new ArrayBuffer(this.is224?28:32),N=new DataView(F);return N.setUint32(0,this.h0),N.setUint32(4,this.h1),N.setUint32(8,this.h2),N.setUint32(12,this.h3),N.setUint32(16,this.h4),N.setUint32(20,this.h5),N.setUint32(24,this.h6),this.is224||N.setUint32(28,this.h7),F},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var F=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(F),Sha256.prototype.finalize.call(this)}};var exports=createMethod();return exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),exports}const sha256=factory();class HashHandler{}function decodeUTF8(F){if("string"!=typeof F)throw new TypeError("expected string");var N,x=F,T=new Uint8Array(x.length);for(N=0;N{class F{calcHash(x,T){return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){return encodeUTF8(fast_sha256__WEBPACK_IMPORTED_MODULE_0__(decodeUTF8(x)))})()}toHashString2(x){let T="";for(let u of x)T+=String.fromCharCode(u);return T}toHashString(x){const T=new Uint8Array(x);let u="";for(let V of T)u+=String.fromCharCode(V);return u}}return F.\u0275fac=function(x){return new(x||F)},F.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:F,factory:F.\u0275fac}),F})(),OAuthService=(()=>{class F extends AuthConfig{constructor(x,T,u,V,O,I,j,W,Y,G){super(),this.ngZone=x,this.http=T,this.config=O,this.urlHelper=I,this.logger=j,this.crypto=W,this.dateTimeService=G,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.discoveryDocumentLoadedSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=Y,O||(O={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),V&&(this.tokenValidationHandler=V),O&&this.configure(O);try{u?this.setStorage(u):typeof sessionStorage<"u"&&this.setStorage(sessionStorage)}catch($){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",$)}if(this.checkLocalStorageAccessable()){const $=window?.navigator?.userAgent;($?.includes("MSIE ")||$?.includes("Trident"))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if(typeof window>"u")return!1;const x="test";try{return!(typeof window.localStorage>"u"||(localStorage.setItem(x,x),localStorage.removeItem(x),0))}catch{return!1}}configure(x){Object.assign(this,new AuthConfig,x),this.config=Object.assign({},new AuthConfig,x),this.sessionChecksEnabled&&this.setupSessionCheck(),this.configChanged()}configChanged(){this.setupRefreshTimer()}restartSessionChecksIfStillLoggedIn(){this.hasValidIdToken()&&this.initSessionCheck()}restartRefreshTimerIfStillLoggedIn(){this.setupExpirationTimers()}setupSessionCheck(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(x=>"token_received"===x.type)).subscribe(x=>{this.initSessionCheck()})}setupAutomaticSilentRefresh(x={},T,u=!0){let V=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(O=>{"token_received"===O.type?V=!0:"logout"===O.type&&(V=!1)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(O=>"token_expires"===O.type&&(null==T||"any"===T||O.info===T)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.b)(1e3)).subscribe(O=>{V&&this.refreshInternal(x,u).catch(I=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(x,T){return this.useSilentRefresh||"code"!==this.responseType?this.silentRefresh(x,T):this.refreshToken()}loadDiscoveryDocumentAndTryLogin(x=null){return this.loadDiscoveryDocument().then(T=>this.tryLogin(x))}loadDiscoveryDocumentAndLogin(x=null){return this.loadDiscoveryDocumentAndTryLogin(x=x||{}).then(T=>!(!this.hasValidIdToken()||!this.hasValidAccessToken())||(this.initLoginFlow("string"==typeof x.state?x.state:""),!1))}debug(...x){this.showDebugInformation&&this.logger.debug.apply(this.logger,x)}validateUrlFromDiscoveryDocument(x){const T=[],u=this.validateUrlForHttps(x),V=this.validateUrlAgainstIssuer(x);return u||T.push("https for all urls required. Also for urls received by discovery."),V||T.push("Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation."),T}validateUrlForHttps(x){if(!x)return!0;const T=x.toLowerCase();return!(!1!==this.requireHttps&&(!T.match(/^http:\/\/localhost($|[:\/])/)&&!T.match(/^http:\/\/localhost($|[:\/])/)||"remoteOnly"!==this.requireHttps))||T.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(x,T){if(!x)throw new Error(`'${T}' should not be null`);if(!this.validateUrlForHttps(x))throw new Error(`'${T}' must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).`)}validateUrlAgainstIssuer(x){return!this.strictDiscoveryDocumentValidation||!x||x.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){typeof window>"u"?this.debug("timer not supported on this plattform"):((this.hasValidIdToken()||this.hasValidAccessToken())&&(this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()),this.tokenReceivedSubscription&&this.tokenReceivedSubscription.unsubscribe(),this.tokenReceivedSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(x=>"token_received"===x.type)).subscribe(x=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()}))}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){const x=this.getAccessTokenExpiration(),T=this.getAccessTokenStoredAt(),u=this.calcTimeout(T,x);this.ngZone.runOutsideAngular(()=>{this.accessTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","access_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(u)).subscribe(V=>{this.ngZone.run(()=>{this.eventsSubject.next(V)})})})}setupIdTokenTimer(){const x=this.getIdTokenExpiration(),T=this.getIdTokenStoredAt(),u=this.calcTimeout(T,x);this.ngZone.runOutsideAngular(()=>{this.idTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","id_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(u)).subscribe(V=>{this.ngZone.run(()=>{this.eventsSubject.next(V)})})})}stopAutomaticRefresh(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.clearAutomaticRefreshTimer()}clearAccessTokenTimer(){this.accessTokenTimeoutSubscription&&this.accessTokenTimeoutSubscription.unsubscribe()}clearIdTokenTimer(){this.idTokenTimeoutSubscription&&this.idTokenTimeoutSubscription.unsubscribe()}clearAutomaticRefreshTimer(){this.automaticRefreshSubscription&&this.automaticRefreshSubscription.unsubscribe()}calcTimeout(x,T){const u=this.dateTimeService.now();return Math.max(0,(T-x)*this.timeoutFactor-(u-x))}setStorage(x){this._storage=x,this.configChanged()}loadDiscoveryDocument(x=null){return new Promise((T,u)=>{x||((x=this.issuer||"").endsWith("/")||(x+="/"),x+=".well-known/openid-configuration"),this.validateUrlForHttps(x)?this.http.get(x).subscribe(V=>{if(!this.validateDiscoveryDocument(V))return this.eventsSubject.next(new OAuthErrorEvent("discovery_document_validation_error",null)),void u("discovery_document_validation_error");this.loginUrl=V.authorization_endpoint,this.logoutUrl=V.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=V.grant_types_supported,this.issuer=V.issuer,this.tokenEndpoint=V.token_endpoint,this.userinfoEndpoint=V.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=V.jwks_uri,this.sessionCheckIFrameUrl=V.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(V),this.revocationEndpoint=V.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(O=>{const j=new OAuthSuccessEvent("discovery_document_loaded",{discoveryDocument:V,jwks:O});this.eventsSubject.next(j),T(j)}).catch(O=>{this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",O)),u(O)})},V=>{this.logger.error("error loading discovery document",V),this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",V)),u(V)}):u("issuer must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).")})}loadJwks(){return new Promise((x,T)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(u=>{this.jwks=u,this.eventsSubject.next(new OAuthSuccessEvent("discovery_document_loaded")),x(u)},u=>{this.logger.error("error loading jwks",u),this.eventsSubject.next(new OAuthErrorEvent("jwks_load_error",u)),T(u)}):x(null)})}validateDiscoveryDocument(x){let T;return this.skipIssuerCheck||x.issuer===this.issuer?(T=this.validateUrlFromDiscoveryDocument(x.authorization_endpoint),T.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",T),!1):(T=this.validateUrlFromDiscoveryDocument(x.end_session_endpoint),T.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",T),!1):(T=this.validateUrlFromDiscoveryDocument(x.token_endpoint),T.length>0&&this.logger.error("error validating token_endpoint in discovery document",T),T=this.validateUrlFromDiscoveryDocument(x.revocation_endpoint),T.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",T),T=this.validateUrlFromDiscoveryDocument(x.userinfo_endpoint),T.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",T),!1):(T=this.validateUrlFromDiscoveryDocument(x.jwks_uri),T.length>0?(this.logger.error("error validating jwks_uri in discovery document",T),!1):(this.sessionChecksEnabled&&!x.check_session_iframe&&this.logger.warn("sessionChecksEnabled is activated but discovery document does not contain a check_session_iframe field"),!0))))):(this.logger.error("invalid issuer in discovery document","expected: "+this.issuer,"current: "+x.issuer),!1)}fetchTokenUsingPasswordFlowAndLoadUserProfile(x,T,u=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingPasswordFlow(x,T,u).then(()=>this.loadUserProfile())}loadUserProfile(){if(!this.hasValidAccessToken())throw new Error("Can not load User Profile without access_token");if(!this.validateUrlForHttps(this.userinfoEndpoint))throw new Error("userinfoEndpoint must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");return new Promise((x,T)=>{const u=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:u,observe:"response",responseType:"text"}).subscribe(V=>{if(this.debug("userinfo received",JSON.stringify(V)),V.headers.get("content-type").startsWith("application/json")){let O=JSON.parse(V.body);const I=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!I.sub||O.sub!==I.sub))return void T("if property oidc is true, the received user-id (sub) has to be the user-id of the user that has logged in with oidc.\nif you are not using oidc but just oauth2 password flow set oidc to false");O=Object.assign({},I,O),this._storage.setItem("id_token_claims_obj",JSON.stringify(O)),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),x({info:O})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),x(JSON.parse(V.body))},V=>{this.logger.error("error loading user info",V),this.eventsSubject.next(new OAuthErrorEvent("user_profile_load_error",V)),T(V)})})}fetchTokenUsingPasswordFlow(x,T,u=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingGrant("password",{username:x,password:T},u)}fetchTokenUsingGrant(x,T,u=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let V=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type",x).set("scope",this.scope);if(this.useHttpBasicAuth){const O=btoa(`${this.clientId}:${this.dummyClientSecret}`);u=u.set("Authorization","Basic "+O)}if(this.useHttpBasicAuth||(V=V.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(V=V.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const O of Object.getOwnPropertyNames(this.customQueryParams))V=V.set(O,this.customQueryParams[O]);for(const O of Object.keys(T))V=V.set(O,T[O]);return u=u.set("Content-Type","application/x-www-form-urlencoded"),new Promise((O,I)=>{this.http.post(this.tokenEndpoint,V,{headers:u}).subscribe(j=>{this.debug("tokenResponse",j),this.storeAccessTokenResponse(j.access_token,j.refresh_token,j.expires_in||this.fallbackAccessTokenExpirationTimeInSec,j.scope,this.extractRecognizedCustomParameters(j)),this.oidc&&j.id_token&&this.processIdToken(j.id_token,j.access_token).then(W=>{this.storeIdToken(W),O(j)}),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),O(j)},j=>{this.logger.error("Error performing ${grantType} flow",j),this.eventsSubject.next(new OAuthErrorEvent("token_error",j)),I(j)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((x,T)=>{let u=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","refresh_token").set("scope",this.scope).set("refresh_token",this._storage.getItem("refresh_token")),V=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const O=btoa(`${this.clientId}:${this.dummyClientSecret}`);V=V.set("Authorization","Basic "+O)}if(this.useHttpBasicAuth||(u=u.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(u=u.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const O of Object.getOwnPropertyNames(this.customQueryParams))u=u.set(O,this.customQueryParams[O]);this.http.post(this.tokenEndpoint,u,{headers:V}).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.w)(O=>O.id_token?(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.D)(this.processIdToken(O.id_token,O.access_token,!0)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(I=>this.storeIdToken(I)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(I=>O)):(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(O))).subscribe(O=>{this.debug("refresh tokenResponse",O),this.storeAccessTokenResponse(O.access_token,O.refresh_token,O.expires_in||this.fallbackAccessTokenExpirationTimeInSec,O.scope,this.extractRecognizedCustomParameters(O)),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),x(O)},O=>{this.logger.error("Error refreshing token",O),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",O)),T(O)})})}removeSilentRefreshEventListener(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}setupSilentRefreshEventListener(){this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=x=>{const T=this.processMessageEventMessage(x);this.tryLogin({customHashFragment:T,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri||this.redirectUri}).catch(u=>this.debug("tryLogin during silent refresh failed",u))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(x={},T=!0){const u=this.getIdentityClaims()||{};if(this.useIdTokenHintForSilentRefresh&&this.hasValidIdToken()&&(x.id_token_hint=this.getIdToken()),!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(typeof this.document>"u")throw new Error("silent refresh is not supported on this platform");const V=this.document.getElementById(this.silentRefreshIFrameName);V&&this.document.body.removeChild(V),this.silentRefreshSubject=u.sub;const O=this.document.createElement("iframe");O.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,T,x).then(G=>{O.setAttribute("src",G),this.silentRefreshShowIFrame||(O.style.display="none"),this.document.body.appendChild(O)});const j=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(G=>G instanceof OAuthErrorEvent),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),W=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(G=>"token_received"===G.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),Y=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthErrorEvent("silent_refresh_timeout",null)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(this.silentRefreshTimeout));return(0,rxjs__WEBPACK_IMPORTED_MODULE_14__.S)([j,W,Y]).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(G=>{if(G instanceof OAuthErrorEvent)throw"silent_refresh_timeout"===G.type||(G=new OAuthErrorEvent("silent_refresh_error",G)),this.eventsSubject.next(G),G;return"token_received"===G.type&&(G=new OAuthSuccessEvent("silently_refreshed"),this.eventsSubject.next(G)),G})).toPromise()}initImplicitFlowInPopup(x){return this.initLoginFlowInPopup(x)}initLoginFlowInPopup(x){return x=x||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(T=>new Promise((u,V)=>{let j,I=null;x.windowRef?x.windowRef&&!x.windowRef.closed&&(I=x.windowRef,I.location.href=T):I=window.open(T,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(x));const W=te=>{this.tryLogin({customHashFragment:te,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{G(),u(!0)},ne=>{G(),V(ne)})};I?j=window.setInterval(()=>{(!I||I.closed)&&(G(),V(new OAuthErrorEvent("popup_closed",{})))},500):V(new OAuthErrorEvent("popup_blocked",{}));const G=()=>{window.clearInterval(j),window.removeEventListener("storage",U),window.removeEventListener("message",$),null!==I&&I.close(),I=null},$=te=>{const ne=this.processMessageEventMessage(te);ne&&null!==ne?(window.removeEventListener("storage",U),W(ne)):console.log("false event firing")},U=te=>{"auth_hash"===te.key&&(window.removeEventListener("message",$),W(te.newValue))};window.addEventListener("message",$),window.addEventListener("storage",U)}))}calculatePopupFeatures(x){const T=x.height||470,u=x.width||500,V=window.screenLeft+(window.outerWidth-u)/2;return`location=no,toolbar=no,width=${u},height=${T},top=${window.screenTop+(window.outerHeight-T)/2},left=${V}`}processMessageEventMessage(x){let T="#";if(this.silentRefreshMessagePrefix&&(T+=this.silentRefreshMessagePrefix),!x||!x.data||"string"!=typeof x.data)return;const u=x.data;return u.startsWith(T)?"#"+u.substr(T.length):void 0}canPerformSessionCheck(){return!(!this.sessionChecksEnabled||(this.sessionCheckIFrameUrl?this.getSessionState()?typeof this.document>"u":(console.warn("sessionChecksEnabled is activated but there is no session_state"),1):(console.warn("sessionChecksEnabled is activated but there is no sessionCheckIFrameUrl"),1)))}setupSessionCheckEventListener(){this.removeSessionCheckEventListener(),this.sessionCheckEventListener=x=>{const T=x.origin.toLowerCase(),u=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),u.startsWith(T)){switch(x.data){case"unchanged":this.ngZone.run(()=>{this.handleSessionUnchanged()});break;case"changed":this.ngZone.run(()=>{this.handleSessionChange()});break;case"error":this.ngZone.run(()=>{this.handleSessionError()})}this.debug("got info from session check inframe",x)}else this.debug("sessionCheckEventListener","wrong origin",T,"expected",u,"event",x)},this.ngZone.runOutsideAngular(()=>{window.addEventListener("message",this.sessionCheckEventListener)})}handleSessionUnchanged(){this.debug("session check","session unchanged"),this.eventsSubject.next(new OAuthInfoEvent("session_unchanged"))}handleSessionChange(){this.eventsSubject.next(new OAuthInfoEvent("session_changed")),this.stopSessionCheckTimer(),this.useSilentRefresh||"code"!==this.responseType?this.silentRefreshRedirectUri?(this.silentRefresh().catch(x=>this.debug("silent refresh failed after session changed")),this.waitForSilentRefreshAfterSessionChange()):(this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)):this.refreshToken().then(x=>{this.debug("token refresh after session change worked")}).catch(x=>{this.debug("token refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)})}waitForSilentRefreshAfterSessionChange(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(x=>"silently_refreshed"===x.type||"silent_refresh_timeout"===x.type||"silent_refresh_error"===x.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()).subscribe(x=>{"silently_refreshed"!==x.type&&(this.debug("silent refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0))})}handleSessionError(){this.stopSessionCheckTimer(),this.eventsSubject.next(new OAuthInfoEvent("session_error"))}removeSessionCheckEventListener(){this.sessionCheckEventListener&&(window.removeEventListener("message",this.sessionCheckEventListener),this.sessionCheckEventListener=null)}initSessionCheck(){if(!this.canPerformSessionCheck())return;const x=this.document.getElementById(this.sessionCheckIFrameName);x&&this.document.body.removeChild(x);const T=this.document.createElement("iframe");T.id=this.sessionCheckIFrameName,this.setupSessionCheckEventListener(),T.setAttribute("src",this.sessionCheckIFrameUrl),T.style.display="none",this.document.body.appendChild(T),this.startSessionCheckTimer()}startSessionCheckTimer(){this.stopSessionCheckTimer(),this.ngZone.runOutsideAngular(()=>{this.sessionCheckTimer=setInterval(this.checkSession.bind(this),this.sessionCheckIntervall)})}stopSessionCheckTimer(){this.sessionCheckTimer&&(clearInterval(this.sessionCheckTimer),this.sessionCheckTimer=null)}checkSession(){const x=this.document.getElementById(this.sessionCheckIFrameName);x||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);const T=this.getSessionState();T||this.stopSessionCheckTimer(),x.contentWindow.postMessage(this.clientId+" "+T,this.issuer)}createLoginUrl(x="",T="",u="",V=!1,O={}){var I=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const j=I;let W;W=u||I.redirectUri;const Y=yield I.createAndSaveNonce();if(x=x?Y+I.config.nonceStateSeparator+encodeURIComponent(x):Y,!I.requestAccessToken&&!I.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");I.responseType=I.config.responseType?I.config.responseType:I.oidc&&I.requestAccessToken?"id_token token":I.oidc&&!I.requestAccessToken?"id_token":"token";const G=j.loginUrl.indexOf("?")>-1?"&":"?";let $=j.scope;I.oidc&&!$.match(/(^|\s)openid($|\s)/)&&($="openid "+$);let U=j.loginUrl+G+"response_type="+encodeURIComponent(j.responseType)+"&client_id="+encodeURIComponent(j.clientId)+"&state="+encodeURIComponent(x)+"&redirect_uri="+encodeURIComponent(W)+"&scope="+encodeURIComponent($);if(I.responseType.includes("code")&&!I.disablePKCE){const[te,ne]=yield I.createChallangeVerifierPairForPKCE();I.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("PKCE_verifier",ne):I._storage.setItem("PKCE_verifier",ne),U+="&code_challenge="+te,U+="&code_challenge_method=S256"}T&&(U+="&login_hint="+encodeURIComponent(T)),j.resource&&(U+="&resource="+encodeURIComponent(j.resource)),j.oidc&&(U+="&nonce="+encodeURIComponent(Y)),V&&(U+="&prompt=none");for(const te of Object.keys(O))U+="&"+encodeURIComponent(te)+"="+encodeURIComponent(O[te]);if(I.customQueryParams)for(const te of Object.getOwnPropertyNames(I.customQueryParams))U+="&"+te+"="+encodeURIComponent(I.customQueryParams[te]);return U})()}initImplicitFlowInternal(x="",T=""){if(this.inImplicitFlow)return;if(this.inImplicitFlow=!0,!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let u={},V=null;"string"==typeof T?V=T:"object"==typeof T&&(u=T),this.createLoginUrl(x,V,null,!1,u).then(this.config.openUri).catch(O=>{console.error("Error in initImplicitFlow",O),this.inImplicitFlow=!1})}initImplicitFlow(x="",T=""){""!==this.loginUrl?this.initImplicitFlowInternal(x,T):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(u=>"discovery_document_loaded"===u.type)).subscribe(u=>this.initImplicitFlowInternal(x,T))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(x){const T=this;if(x.onTokenReceived){const u={idClaims:T.getIdentityClaims(),idToken:T.getIdToken(),accessToken:T.getAccessToken(),state:T.state};x.onTokenReceived(u)}}storeAccessTokenResponse(x,T,u,V,O){if(this._storage.setItem("access_token",x),V&&!Array.isArray(V)?this._storage.setItem("granted_scopes",JSON.stringify(V.split(" "))):V&&Array.isArray(V)&&this._storage.setItem("granted_scopes",JSON.stringify(V)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),u){const I=1e3*u,W=this.dateTimeService.new().getTime()+I;this._storage.setItem("expires_at",""+W)}T&&this._storage.setItem("refresh_token",T),O&&O.forEach((I,j)=>{this._storage.setItem(j,I)})}tryLogin(x=null){return"code"===this.config.responseType?this.tryLoginCodeFlow(x).then(T=>!0):this.tryLoginImplicitFlow(x)}parseQueryString(x){return x&&0!==x.length?("?"===x.charAt(0)&&(x=x.substr(1)),this.urlHelper.parseQueryString(x)):{}}tryLoginCodeFlow(x=null){var T=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const u=(x=x||{}).customHashFragment?x.customHashFragment.substring(1):window.location.search,V=T.getCodePartsFromUrl(u),O=V.code,I=V.state,j=V.session_state;if(!x.preventClearHashAfterLogin){const G=location.origin+location.pathname+location.search.replace(/code=[^&\$]*/,"").replace(/scope=[^&\$]*/,"").replace(/state=[^&\$]*/,"").replace(/session_state=[^&\$]*/,"").replace(/^\?&/,"?").replace(/&$/,"").replace(/^\?$/,"").replace(/&+/g,"&").replace(/\?&/,"?").replace(/\?$/,"")+location.hash;history.replaceState(null,window.name,G)}let[W,Y]=T.parseState(I);if(T.state=Y,V.error){T.debug("error trying to login"),T.handleLoginError(x,V);const G=new OAuthErrorEvent("code_error",{},V);return T.eventsSubject.next(G),Promise.reject(G)}if(!x.disableNonceCheck){if(!W)return T.saveRequestedRoute(),Promise.resolve();if(!x.disableOAuth2StateCheck&&!T.validateNonce(W)){const $=new OAuthErrorEvent("invalid_nonce_in_state",null);return T.eventsSubject.next($),Promise.reject($)}return T.storeSessionState(j),O&&(yield T.getTokenFromCode(O,x),T.restoreRequestedRoute()),Promise.resolve()}return Promise.reject()})()}saveRequestedRoute(){this.config.preserveRequestedRoute&&this._storage.setItem("requested_route",window.location.pathname+window.location.search)}restoreRequestedRoute(){const x=this._storage.getItem("requested_route");x&&history.replaceState(null,"",window.location.origin+x)}getCodePartsFromUrl(x){return x&&0!==x.length?("?"===x.charAt(0)&&(x=x.substr(1)),this.urlHelper.parseQueryString(x)):this.urlHelper.getHashFragmentParams()}getTokenFromCode(x,T){let u=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","authorization_code").set("code",x).set("redirect_uri",T.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let V;V=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("PKCE_verifier"):this._storage.getItem("PKCE_verifier"),V?u=u.set("code_verifier",V):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(u,T)}fetchAndProcessToken(x,T){T=T||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let u=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const V=btoa(`${this.clientId}:${this.dummyClientSecret}`);u=u.set("Authorization","Basic "+V)}return this.useHttpBasicAuth||(x=x.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(x=x.set("client_secret",this.dummyClientSecret)),new Promise((V,O)=>{if(this.customQueryParams)for(let I of Object.getOwnPropertyNames(this.customQueryParams))x=x.set(I,this.customQueryParams[I]);this.http.post(this.tokenEndpoint,x,{headers:u}).subscribe(I=>{this.debug("refresh tokenResponse",I),this.storeAccessTokenResponse(I.access_token,I.refresh_token,I.expires_in||this.fallbackAccessTokenExpirationTimeInSec,I.scope,this.extractRecognizedCustomParameters(I)),this.oidc&&I.id_token?this.processIdToken(I.id_token,I.access_token,T.disableNonceCheck).then(j=>{this.storeIdToken(j),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),V(I)}).catch(j=>{this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",j)),console.error("Error validating tokens"),console.error(j),O(j)}):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),V(I))},I=>{console.error("Error getting token",I),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",I)),O(I)})})}tryLoginImplicitFlow(x=null){let T;T=(x=x||{}).customHashFragment?this.urlHelper.getHashFragmentParams(x.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",T);const u=T.state;let[V,O]=this.parseState(u);if(this.state=O,T.error){this.debug("error trying to login"),this.handleLoginError(x,T);const G=new OAuthErrorEvent("token_error",{},T);return this.eventsSubject.next(G),Promise.reject(G)}const I=T.access_token,j=T.id_token,W=T.session_state,Y=T.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!I||this.requestAccessToken&&!x.disableOAuth2StateCheck&&!u||this.oidc&&!j)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!W&&this.logger.warn("session checks (Session Status Change Notification) were activated in the configuration but the id_token does not contain a session_state claim"),this.requestAccessToken&&!x.disableNonceCheck&&!this.validateNonce(V)){const $=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next($),Promise.reject($)}return this.requestAccessToken&&this.storeAccessTokenResponse(I,null,T.expires_in||this.fallbackAccessTokenExpirationTimeInSec,Y),this.oidc?this.processIdToken(j,I,x.disableNonceCheck).then(G=>x.validationHandler?x.validationHandler({accessToken:I,idClaims:G.idTokenClaims,idToken:G.idToken,state:u}).then($=>G):G).then(G=>(this.storeIdToken(G),this.storeSessionState(W),this.clearHashAfterLogin&&!x.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.callOnTokenReceivedIfExists(x),this.inImplicitFlow=!1,!0)).catch(G=>(this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",G)),this.logger.error("Error validating tokens"),this.logger.error(G),Promise.reject(G))):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.clearHashAfterLogin&&!x.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(x),Promise.resolve(!0))}parseState(x){let T=x,u="";if(x){const V=x.indexOf(this.config.nonceStateSeparator);V>-1&&(T=x.substr(0,V),u=x.substr(V+this.config.nonceStateSeparator.length))}return[T,u]}validateNonce(x){let T;return T=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),T===x||(console.error("Validating access_token failed, wrong state/nonce.",T,x),!1)}storeIdToken(x){this._storage.setItem("id_token",x.idToken),this._storage.setItem("id_token_claims_obj",x.idTokenClaimsJson),this._storage.setItem("id_token_expires_at",""+x.idTokenExpiresAt),this._storage.setItem("id_token_stored_at",""+this.dateTimeService.now())}storeSessionState(x){this._storage.setItem("session_state",x)}getSessionState(){return this._storage.getItem("session_state")}handleLoginError(x,T){x.onLoginError&&x.onLoginError(T),this.clearHashAfterLogin&&!x.preventClearHashAfterLogin&&this.clearLocationHash()}getClockSkewInMsec(x=6e5){return this.clockSkewInSec?1e3*this.clockSkewInSec:x}processIdToken(x,T,u=!1){const V=x.split("."),I=b64DecodeUnicode(this.padBase64(V[0])),j=JSON.parse(I),Y=b64DecodeUnicode(this.padBase64(V[1])),G=JSON.parse(Y);let $;if($=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Array.isArray(G.aud)){if(G.aud.every(de=>de!==this.clientId)){const de="Wrong audience: "+G.aud.join(",");return this.logger.warn(de),Promise.reject(de)}}else if(G.aud!==this.clientId){const de="Wrong audience: "+G.aud;return this.logger.warn(de),Promise.reject(de)}if(!G.sub){const de="No sub claim in id_token";return this.logger.warn(de),Promise.reject(de)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==G.sub){const de=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${G.sub}`;return this.logger.warn(de),Promise.reject(de)}if(!G.iat){const de="No iat claim in id_token";return this.logger.warn(de),Promise.reject(de)}if(!this.skipIssuerCheck&&G.iss!==this.issuer){const de="Wrong issuer: "+G.iss;return this.logger.warn(de),Promise.reject(de)}if(!u&&G.nonce!==$){const de="Wrong nonce: "+G.nonce;return this.logger.warn(de),Promise.reject(de)}if(this.hasOwnProperty("responseType")&&("code"===this.responseType||"id_token"===this.responseType)&&(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!G.at_hash){const de="An at_hash is needed!";return this.logger.warn(de),Promise.reject(de)}const U=this.dateTimeService.now(),te=1e3*G.iat,ne=1e3*G.exp,J=this.getClockSkewInMsec();if(te-J>=U||ne+J<=U){const de="Token has expired";return console.error(de),console.error({now:U,issuedAtMSec:te,expiresAtMSec:ne}),Promise.reject(de)}const ie={accessToken:T,idToken:x,jwks:this.jwks,idTokenClaims:G,idTokenHeader:j,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(ie).then(de=>({idToken:x,idTokenClaims:G,idTokenClaimsJson:Y,idTokenHeader:j,idTokenHeaderJson:I,idTokenExpiresAt:ne})):this.checkAtHash(ie).then(de=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!de){const he="Wrong at_hash";return this.logger.warn(he),Promise.reject(he)}return this.checkSignature(ie).then(he=>{const Ve={idToken:x,idTokenClaims:G,idTokenClaimsJson:Y,idTokenHeader:j,idTokenHeaderJson:I,idTokenExpiresAt:ne};return this.disableAtHashCheck?Ve:this.checkAtHash(ie).then(Be=>{if(this.requestAccessToken&&!Be){const we="Wrong at_hash";return this.logger.warn(we),Promise.reject(we)}return Ve})})})}getIdentityClaims(){const x=this._storage.getItem("id_token_claims_obj");return x?JSON.parse(x):null}getGrantedScopes(){const x=this._storage.getItem("granted_scopes");return x?JSON.parse(x):null}getIdToken(){return this._storage?this._storage.getItem("id_token"):null}padBase64(x){for(;x.length%4!=0;)x+="=";return x}getAccessToken(){return this._storage?this._storage.getItem("access_token"):null}getRefreshToken(){return this._storage?this._storage.getItem("refresh_token"):null}getAccessTokenExpiration(){return this._storage.getItem("expires_at")?parseInt(this._storage.getItem("expires_at"),10):null}getAccessTokenStoredAt(){return parseInt(this._storage.getItem("access_token_stored_at"),10)}getIdTokenStoredAt(){return parseInt(this._storage.getItem("id_token_stored_at"),10)}getIdTokenExpiration(){return this._storage.getItem("id_token_expires_at")?parseInt(this._storage.getItem("id_token_expires_at"),10):null}hasValidAccessToken(){if(this.getAccessToken()){const x=this._storage.getItem("expires_at"),T=this.dateTimeService.new();return!(x&&parseInt(x,10)=0&&null!==this._storage.getItem(x)?JSON.parse(this._storage.getItem(x)):null}authorizationHeader(){return"Bearer "+this.getAccessToken()}logOut(x={},T=""){let u=!1;"boolean"==typeof x&&(u=x,x={});const V=this.getIdToken();if(this._storage.removeItem("access_token"),this._storage.removeItem("id_token"),this._storage.removeItem("refresh_token"),this.saveNoncesInLocalStorage?(localStorage.removeItem("nonce"),localStorage.removeItem("PKCE_verifier")):(this._storage.removeItem("nonce"),this._storage.removeItem("PKCE_verifier")),this._storage.removeItem("expires_at"),this._storage.removeItem("id_token_claims_obj"),this._storage.removeItem("id_token_expires_at"),this._storage.removeItem("id_token_stored_at"),this._storage.removeItem("access_token_stored_at"),this._storage.removeItem("granted_scopes"),this._storage.removeItem("session_state"),this.config.customTokenParameters&&this.config.customTokenParameters.forEach(I=>this._storage.removeItem(I)),this.silentRefreshSubject=null,this.eventsSubject.next(new OAuthInfoEvent("logout")),!this.logoutUrl||u||!V&&!this.postLogoutRedirectUri)return;let O;if(!this.validateUrlForHttps(this.logoutUrl))throw new Error("logoutUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(this.logoutUrl.indexOf("{{")>-1)O=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(V)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let I=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec});V&&(I=I.set("id_token_hint",V));const j=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";j&&(I=I.set("post_logout_redirect_uri",j),T&&(I=I.set("state",T)));for(let W in x)I=I.set(W,x[W]);O=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+I.toString()}this.config.openUri(O)}createAndSaveNonce(){const x=this;return this.createNonce().then(function(T){return x.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("nonce",T):x._storage.setItem("nonce",T),T})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();const x=this.document.getElementById(this.silentRefreshIFrameName);x&&x.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();const T=this.document.getElementById(this.sessionCheckIFrameName);T&&T.remove()}createNonce(){return new Promise(x=>{if(this.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");const T="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";let u=45,V="";const O=typeof self>"u"?null:self.crypto||self.msCrypto;if(O){let I=new Uint8Array(u);O.getRandomValues(I),I.map||(I.map=Array.prototype.map),I=I.map(j=>T.charCodeAt(j%T.length)),V=String.fromCharCode.apply(null,I)}else for(;0"discovery_document_loaded"===u.type)).subscribe(u=>this.initCodeFlowInternal(x,T))}initCodeFlowInternal(x="",T={}){if(!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let u={},V=null;"string"==typeof T?V=T:"object"==typeof T&&(u=T),this.createLoginUrl(x,V,null,!1,u).then(this.config.openUri).catch(O=>{console.error("Error in initAuthorizationCodeFlow"),console.error(O)})}createChallangeVerifierPairForPKCE(){var x=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){if(!x.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");const T=yield x.createNonce();return[base64UrlEncode(yield x.crypto.calcHash(T,"sha-256")),T]})()}extractRecognizedCustomParameters(x){let T=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(u=>{x[u]&&T.set(u,JSON.stringify(x[u]))}),T}revokeTokenAndLogout(x={},T=!1){let u=this.revocationEndpoint,V=this.getAccessToken(),O=this.getRefreshToken();if(!V)return;let I=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}),j=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const W=btoa(`${this.clientId}:${this.dummyClientSecret}`);j=j.set("Authorization","Basic "+W)}if(this.useHttpBasicAuth||(I=I.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(I=I.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const W of Object.getOwnPropertyNames(this.customQueryParams))I=I.set(W,this.customQueryParams[W]);return new Promise((W,Y)=>{let G,$;if(V){let U=I.set("token",V).set("token_type_hint","access_token");G=this.http.post(u,U,{headers:j})}else G=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);if(O){let U=I.set("token",O).set("token_type_hint","refresh_token");$=this.http.post(u,U,{headers:j})}else $=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);T&&(G=G.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(U=>0===U.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(U))),$=$.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(U=>0===U.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(U)))),(0,rxjs__WEBPACK_IMPORTED_MODULE_17__.a)([G,$]).subscribe(U=>{this.logOut(x),W(U),this.logger.info("Token successfully revoked")},U=>{this.logger.error("Error revoking token",U),this.eventsSubject.next(new OAuthErrorEvent("token_revoke_error",U)),Y(U)})})}clearLocationHash(){""!=location.hash&&(location.hash="")}}return F.\u0275fac=function(x){return new(x||F)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_core__WEBPACK_IMPORTED_MODULE_1__.R0b),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.eN),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthStorage,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(ValidationHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(AuthConfig,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(UrlHelperService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthLogger),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(HashHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common__WEBPACK_IMPORTED_MODULE_18__.K0),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(DateTimeProvider))},F.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:F,factory:F.\u0275fac}),F})();class OAuthModuleConfig{}class OAuthResourceServerConfig{}class OAuthResourceServerErrorHandler{}class OAuthNoopResourceServerErrorHandler{handleError(N){return(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(N)}}let DefaultOAuthInterceptor=(()=>{class F{constructor(x,T,u){this.oAuthService=x,this.errorHandler=T,this.moduleConfig=u}checkUrl(x){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(x):!this.moduleConfig.resourceServer.allowedUrls||!!this.moduleConfig.resourceServer.allowedUrls.find(T=>x.toLowerCase().startsWith(T.toLowerCase()))}intercept(x,T){const u=x.url.toLowerCase();return this.moduleConfig&&this.moduleConfig.resourceServer&&this.checkUrl(u)?this.moduleConfig.resourceServer.sendAccessToken?(0,rxjs__WEBPACK_IMPORTED_MODULE_19__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(this.oAuthService.getAccessToken()).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(O=>!!O)),this.oAuthService.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(O=>"token_received"===O.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.V)(this.oAuthService.waitForTokenInMsec||0),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(O=>(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(O=>this.oAuthService.getAccessToken()))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.q)(1),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_22__.z)(O=>{if(O){const j=x.headers.set("Authorization","Bearer "+O);x=x.clone({headers:j})}return T.handle(x).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(I=>this.errorHandler.handleError(I)))})):T.handle(x).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(O=>this.errorHandler.handleError(O))):T.handle(x)}}return F.\u0275fac=function(x){return new(x||F)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthResourceServerErrorHandler),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthModuleConfig,8))},F.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:F,factory:F.\u0275fac}),F})();class NullValidationHandler{validateSignature(N){return Promise.resolve(null)}validateAtHash(N){return Promise.resolve(!0)}}function createDefaultLogger(){return console}function createDefaultStorage(){return typeof sessionStorage<"u"?sessionStorage:new MemoryStorage}let OAuthModule=(()=>{class F{static forRoot(x=null,T=NullValidationHandler){return{ngModule:F,providers:[OAuthService,UrlHelperService,{provide:OAuthLogger,useFactory:createDefaultLogger},{provide:OAuthStorage,useFactory:createDefaultStorage},{provide:ValidationHandler,useClass:T},{provide:HashHandler,useClass:DefaultHashHandler},{provide:OAuthResourceServerErrorHandler,useClass:OAuthNoopResourceServerErrorHandler},{provide:OAuthModuleConfig,useValue:x},{provide:_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.TP,useClass:DefaultOAuthInterceptor,multi:!0},{provide:DateTimeProvider,useClass:SystemDateTimeProvider}]}}}return F.\u0275fac=function(x){return new(x||F)},F.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_1__.oAB({type:F}),F.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_1__.cJS({imports:[[_angular_common__WEBPACK_IMPORTED_MODULE_18__.ez]]}),F})();const err="PLEASE READ THIS CAREFULLY:\n\nBeginning with angular-oauth2-oidc version 9, the JwksValidationHandler\nhas been moved to an library of its own. If you need it for implementing\nOAuth2/OIDC **implicit flow**, please install it using npm:\n\n npm i angular-oauth2-oidc-jwks --save\n\nAfter that, you can import it into your application:\n\n import { JwksValidationHandler } from 'angular-oauth2-oidc-jwks';\n\nPlease note, that this dependency is not needed for the **code flow**,\nwhich is nowadays the **recommented** one for single page applications.\nThis also results in smaller bundle sizes.\n";class JwksValidationHandler extends NullValidationHandler{constructor(){super(),console.error(err)}}const AUTH_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_1__.OlP("AUTH_CONFIG")},5861:(F,N,x)=>{"use strict";function T(V,O,I,j,W,Y,G){try{var $=V[Y](G),U=$.value}catch(te){return void I(te)}$.done?O(U):Promise.resolve(U).then(j,W)}function u(V){return function(){var O=this,I=arguments;return new Promise(function(j,W){var Y=V.apply(O,I);function G(U){T(Y,j,W,G,$,"next",U)}function $(U){T(Y,j,W,G,$,"throw",U)}G(void 0)})}}x.d(N,{Z:()=>u})},4147:F=>{"use strict";F.exports={i8:"10.3.0"}}},F=>{F(F.s=8085)}]); \ No newline at end of file diff --git a/dist/apps/password-reset/main.c94e3cb410358610.js b/dist/apps/password-reset/main.c94e3cb410358610.js new file mode 100644 index 000000000..cec20a936 --- /dev/null +++ b/dist/apps/password-reset/main.c94e3cb410358610.js @@ -0,0 +1 @@ +(self.webpackChunkpassword_reset=self.webpackChunkpassword_reset||[]).push([[179],{2540:(N,z,E)=>{"use strict";var M=E(6895),f=E(4650);class L extends M.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class F extends L{static makeCurrent(){(0,M.HT)(new F)}onAndCancel(a,e,t){return a.addEventListener(e,t,!1),()=>{a.removeEventListener(e,t,!1)}}dispatchEvent(a,e){a.dispatchEvent(e)}remove(a){a.parentNode&&a.parentNode.removeChild(a)}createElement(a,e){return(e=e||this.getDefaultDocument()).createElement(a)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(a){return a.nodeType===Node.ELEMENT_NODE}isShadowRoot(a){return a instanceof DocumentFragment}getGlobalEventTarget(a,e){return"window"===e?window:"document"===e?a:"body"===e?a.body:null}getBaseHref(a){const e=function q(){return B=B||document.querySelector("base"),B?B.getAttribute("href"):null}();return null==e?null:function ee(r){Q=Q||document.createElement("a"),Q.setAttribute("href",r);const a=Q.pathname;return"/"===a.charAt(0)?a:`/${a}`}(e)}resetBaseElement(){B=null}getUserAgent(){return window.navigator.userAgent}getCookie(a){return(0,M.Mx)(document.cookie,a)}}let Q,B=null;const W=new f.OlP("TRANSITION_ID"),G=[{provide:f.ip1,useFactory:function Y(r,a,e){return()=>{e.get(f.CZH).donePromise.then(()=>{const t=(0,M.q)(),s=a.querySelectorAll(`style[ng-transition="${r}"]`);for(let u=0;u{class r{build(){return new XMLHttpRequest}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac}),r})();const ie=new f.OlP("EventManagerPlugins");let ae=(()=>{class r{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(s=>s.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,s){return this._findPluginFor(t).addEventListener(e,t,s)}addGlobalEventListener(e,t,s){return this._findPluginFor(t).addGlobalEventListener(e,t,s)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const s=this._plugins;for(let u=0;u{class r{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(s=>{this._stylesSet.has(s)||(this._stylesSet.add(s),t.add(s))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac}),r})(),_e=(()=>{class r extends fe{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,t,s){e.forEach(u=>{const d=this._doc.createElement("style");d.textContent=u,s.push(t.appendChild(d))})}addHost(e){const t=[];this._addStylesToHost(this._stylesSet,e,t),this._hostNodes.set(e,t)}removeHost(e){const t=this._hostNodes.get(e);t&&t.forEach(Oe),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((t,s)=>{this._addStylesToHost(e,s,t)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(Oe))}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(M.K0))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac}),r})();function Oe(r){(0,M.q)().remove(r)}const je={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/",math:"http://www.w3.org/1998/MathML/"},Ae=/%COMP%/g;function le(r,a,e){for(let t=0;t{if("__ngUnwrap__"===a)return r;!1===r(a)&&(a.preventDefault(),a.returnValue=!1)}}let pe=(()=>{class r{constructor(e,t,s){this.eventManager=e,this.sharedStylesHost=t,this.appId=s,this.rendererByCompId=new Map,this.defaultRenderer=new Ve(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case f.ifc.Emulated:{let s=this.rendererByCompId.get(t.id);return s||(s=new Ot(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,s)),s.applyToHost(e),s}case 1:case f.ifc.ShadowDom:return new Fe(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const s=le(t.id,t.styles,[]);this.sharedStylesHost.addStyles(s),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(ae),f.LFG(_e),f.LFG(f.AFp))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac}),r})();class Ve{constructor(a){this.eventManager=a,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(a,e){return e?document.createElementNS(je[e]||e,a):document.createElement(a)}createComment(a){return document.createComment(a)}createText(a){return document.createTextNode(a)}appendChild(a,e){(Tt(a)?a.content:a).appendChild(e)}insertBefore(a,e,t){a&&(Tt(a)?a.content:a).insertBefore(e,t)}removeChild(a,e){a&&a.removeChild(e)}selectRootElement(a,e){let t="string"==typeof a?document.querySelector(a):a;if(!t)throw new Error(`The selector "${a}" did not match any elements`);return e||(t.textContent=""),t}parentNode(a){return a.parentNode}nextSibling(a){return a.nextSibling}setAttribute(a,e,t,s){if(s){e=s+":"+e;const u=je[s];u?a.setAttributeNS(u,e,t):a.setAttribute(e,t)}else a.setAttribute(e,t)}removeAttribute(a,e,t){if(t){const s=je[t];s?a.removeAttributeNS(s,e):a.removeAttribute(`${t}:${e}`)}else a.removeAttribute(e)}addClass(a,e){a.classList.add(e)}removeClass(a,e){a.classList.remove(e)}setStyle(a,e,t,s){s&(f.JOm.DashCase|f.JOm.Important)?a.style.setProperty(e,t,s&f.JOm.Important?"important":""):a.style[e]=t}removeStyle(a,e,t){t&f.JOm.DashCase?a.style.removeProperty(e):a.style[e]=""}setProperty(a,e,t){a[e]=t}setValue(a,e){a.nodeValue=e}listen(a,e,t){return"string"==typeof a?this.eventManager.addGlobalEventListener(a,e,ce(t)):this.eventManager.addEventListener(a,e,ce(t))}}function Tt(r){return"TEMPLATE"===r.tagName&&void 0!==r.content}class Ot extends Ve{constructor(a,e,t,s){super(a),this.component=t;const u=le(s+"-"+t.id,t.styles,[]);e.addStyles(u),this.contentAttr=function De(r){return"_ngcontent-%COMP%".replace(Ae,r)}(s+"-"+t.id),this.hostAttr=function Me(r){return"_nghost-%COMP%".replace(Ae,r)}(s+"-"+t.id)}applyToHost(a){super.setAttribute(a,this.hostAttr,"")}createElement(a,e){const t=super.createElement(a,e);return super.setAttribute(t,this.contentAttr,""),t}}class Fe extends Ve{constructor(a,e,t,s){super(a),this.sharedStylesHost=e,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const u=le(s.id,s.styles,[]);for(let d=0;d{class r extends he{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,s){return e.addEventListener(t,s,!1),()=>this.removeEventListener(e,t,s)}removeEventListener(e,t,s){return e.removeEventListener(t,s)}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(M.K0))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac}),r})();const $n=["alt","control","meta","shift"],Dt={"\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"},vn={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"},oi={alt:r=>r.altKey,control:r=>r.ctrlKey,meta:r=>r.metaKey,shift:r=>r.shiftKey};let Jr=(()=>{class r extends he{constructor(e){super(e)}supports(e){return null!=r.parseEventName(e)}addEventListener(e,t,s){const u=r.parseEventName(t),d=r.eventCallback(u.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,M.q)().onAndCancel(e,u.domEventName,d))}static parseEventName(e){const t=e.toLowerCase().split("."),s=t.shift();if(0===t.length||"keydown"!==s&&"keyup"!==s)return null;const u=r._normalizeKey(t.pop());let d="";if($n.forEach(n=>{const i=t.indexOf(n);i>-1&&(t.splice(i,1),d+=n+".")}),d+=u,0!=t.length||0===u.length)return null;const l={};return l.domEventName=s,l.fullKey=d,l}static getEventFullKey(e){let t="",s=function hc(r){let a=r.key;if(null==a){if(a=r.keyIdentifier,null==a)return"Unidentified";a.startsWith("U+")&&(a=String.fromCharCode(parseInt(a.substring(2),16)),3===r.location&&vn.hasOwnProperty(a)&&(a=vn[a]))}return Dt[a]||a}(e);return s=s.toLowerCase()," "===s?s="space":"."===s&&(s="dot"),$n.forEach(u=>{u!=s&&(0,oi[u])(e)&&(t+=u+".")}),t+=s,t}static eventCallback(e,t,s){return u=>{r.getEventFullKey(u)===e&&s.runGuarded(()=>t(u))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(M.K0))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac}),r})();const Ke=(0,f.eFA)(f._c5,"browser",[{provide:f.Lbi,useValue:M.bD},{provide:f.g9A,useValue:function Qn(){F.makeCurrent()},multi:!0},{provide:M.K0,useFactory:function ja(){return(0,f.RDi)(document),document},deps:[]}]),di=new f.OlP(""),Fa=[{provide:f.rWj,useClass:class re{addToWindow(a){f.dqk.getAngularTestability=(t,s=!0)=>{const u=a.findTestabilityInTree(t,s);if(null==u)throw new Error("Could not find testability for element.");return u},f.dqk.getAllAngularTestabilities=()=>a.getAllTestabilities(),f.dqk.getAllAngularRootElements=()=>a.getAllRootElements(),f.dqk.frameworkStabilizers||(f.dqk.frameworkStabilizers=[]),f.dqk.frameworkStabilizers.push(t=>{const s=f.dqk.getAllAngularTestabilities();let u=s.length,d=!1;const l=function(n){d=d||n,u--,0==u&&t(d)};s.forEach(function(n){n.whenStable(l)})})}findTestabilityInTree(a,e,t){return null==e?null:a.getTestability(e)??(t?(0,M.q)().isShadowRoot(e)?this.findTestabilityInTree(a,e.host,!0):this.findTestabilityInTree(a,e.parentElement,!0):null)}},deps:[]},{provide:f.lri,useClass:f.dDg,deps:[f.R0b,f.eoX,f.rWj]},{provide:f.dDg,useClass:f.dDg,deps:[f.R0b,f.eoX,f.rWj]}],Hi=[{provide:f.zSh,useValue:"root"},{provide:f.qLn,useFactory:function Yn(){return new f.qLn},deps:[]},{provide:ie,useClass:Di,multi:!0,deps:[M.K0,f.R0b,f.Lbi]},{provide:ie,useClass:Jr,multi:!0,deps:[M.K0]},{provide:pe,useClass:pe,deps:[ae,_e,f.AFp]},{provide:f.FYo,useExisting:pe},{provide:fe,useExisting:_e},{provide:_e,useClass:_e,deps:[M.K0]},{provide:ae,useClass:ae,deps:[ie,f.R0b]},{provide:M.JF,useClass:oe,deps:[]},[]];let Ua=(()=>{class r{constructor(e){}static withServerTransition(e){return{ngModule:r,providers:[{provide:f.AFp,useValue:e.appId},{provide:W,useExisting:f.AFp},G]}}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(di,12))},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({providers:[...Hi,...Fa],imports:[M.ez,f.hGG]}),r})(),X=(()=>{class r{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(M.K0))},r.\u0275prov=f.Yz7({token:r,factory:function(e){let t=null;return t=e?new e:function ye(){return new X((0,f.LFG)(M.K0))}(),t},providedIn:"root"}),r})();typeof window<"u"&&window;let ti=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=f.Yz7({token:r,factory:function(e){let t=null;return t=e?new(e||r):f.LFG(st),t},providedIn:"root"}),r})(),st=(()=>{class r extends ti{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case f.q3G.NONE:return t;case f.q3G.HTML:return(0,f.qzn)(t,"HTML")?(0,f.z3N)(t):(0,f.EiD)(this._doc,String(t)).toString();case f.q3G.STYLE:return(0,f.qzn)(t,"Style")?(0,f.z3N)(t):t;case f.q3G.SCRIPT:if((0,f.qzn)(t,"Script"))return(0,f.z3N)(t);throw new Error("unsafe value used in a script context");case f.q3G.URL:return(0,f.qzn)(t,"URL")?(0,f.z3N)(t):(0,f.mCW)(String(t));case f.q3G.RESOURCE_URL:if((0,f.qzn)(t,"ResourceURL"))return(0,f.z3N)(t);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return(0,f.JVY)(e)}bypassSecurityTrustStyle(e){return(0,f.L6k)(e)}bypassSecurityTrustScript(e){return(0,f.eBb)(e)}bypassSecurityTrustUrl(e){return(0,f.LAX)(e)}bypassSecurityTrustResourceUrl(e){return(0,f.pB0)(e)}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(M.K0))},r.\u0275prov=f.Yz7({token:r,factory:function(e){let t=null;return t=e?new e:function Be(r){return new st(r.get(M.K0))}(f.LFG(f.zs3)),t},providedIn:"root"}),r})();var v=E(529);class Rt{encodeKey(a){return encodeURIComponent(a)}encodeValue(a){return encodeURIComponent(a)}decodeKey(a){return decodeURIComponent(a)}decodeValue(a){return decodeURIComponent(a)}}const mt=new f.OlP("basePath");class Ue{constructor(a={}){this.apiKeys=a.apiKeys,this.username=a.username,this.password=a.password,this.accessToken=a.accessToken,this.basePath=a.basePath,this.withCredentials=a.withCredentials,this.encoder=a.encoder,this.credentials=a.credentials?a.credentials:{},this.credentials.BasicAuth||(this.credentials.BasicAuth=()=>this.username||this.password?btoa(this.username+":"+this.password):void 0),this.credentials.BearerAuth||(this.credentials.BearerAuth=()=>"function"==typeof this.accessToken?this.accessToken():this.accessToken)}selectHeaderContentType(a){if(0===a.length)return;const e=a.find(t=>this.isJsonMime(t));return void 0===e?a[0]:e}selectHeaderAccept(a){if(0===a.length)return;const e=a.find(t=>this.isJsonMime(t));return void 0===e?a[0]:e}isJsonMime(a){const e=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==a&&(e.test(a)||"application/json-patch+json"===a.toLowerCase())}lookupCredential(a){const e=this.credentials[a];return"function"==typeof e?e():e}}let wr=(()=>{class r{constructor(e,t,s){this.httpClient=e,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new v.WM,this.configuration=new Ue,s&&(this.configuration=s),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Rt}addToHttpParams(e,t,s){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,s):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,s){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(u=>e=this.addToHttpParamsRecursive(e,u,s));else if(t instanceof Date){if(null==s)throw Error("key may not be null if value is Date");e=e.append(s,t.toISOString().substr(0,10))}else Object.keys(t).forEach(u=>e=this.addToHttpParamsRecursive(e,t[u],null!=s?`${s}.${u}`:u));else{if(null==s)throw Error("key may not be null if value is not object or array");e=e.append(s,t)}return e}convertAttributeToNonunique(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToNonunique.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attributeDefinition"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToNonunique`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}convertAttributeToUnique(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToUnique.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attributeDefinition"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToUnique`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}createAttributeDefinition(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputCreateAttributeDefinition was null or undefined when calling createAttributeDefinition.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/createAttribute`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}deleteAttributeDefinition(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attribute was null or undefined when calling deleteAttributeDefinition.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attribute"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttribute`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}deleteAttributeDefinitions(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attributes was null or undefined when calling deleteAttributeDefinitions.");let l=new v.LE({encoder:this.encoder});e&&e.forEach(g=>{l=this.addToHttpParams(l,g,"attributes[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttributes`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getAllAttributeDefinitions(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getAttributesDefinition`;if(e){let h=new URL(c),m=h.pathname.split("/");m[1]="non",h.pathname=m.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getAttribute(e,t,s,u,d,l,n,i,o,c,h,m=!1,g="body",p=!1,w){let R=new v.LE({encoder:this.encoder});null!=e&&(R=this.addToHttpParams(R,e,"attributeName")),null!=t&&(R=this.addToHttpParams(R,t,"attributeId")),null!=s&&(R=this.addToHttpParams(R,s,"facility")),null!=u&&(R=this.addToHttpParams(R,u,"user")),null!=d&&(R=this.addToHttpParams(R,d,"vo")),null!=l&&(R=this.addToHttpParams(R,l,"resource")),null!=n&&(R=this.addToHttpParams(R,n,"member")),null!=i&&(R=this.addToHttpParams(R,i,"group")),null!=o&&(R=this.addToHttpParams(R,o,"host")),null!=c&&(R=this.addToHttpParams(R,c,"userExtSource")),null!=h&&(R=this.addToHttpParams(R,h,"key"));let Te,J=this.defaultHeaders;Te=this.configuration.lookupCredential("BasicAuth"),Te&&(J=J.set("Authorization","Basic "+Te)),Te=this.configuration.lookupCredential("BearerAuth"),Te&&(J=J.set("Authorization","Bearer "+Te));let at=w&&w.httpHeaderAccept;void 0===at&&(at=this.configuration.selectHeaderAccept(["application/json"])),void 0!==at&&(J=J.set("Accept",at));let xi=w&&w.context;void 0===xi&&(xi=new v.qT);let Xt="json";at&&(Xt=at.startsWith("text")?"text":this.configuration.isJsonMime(at)?"json":"blob");let ci=`${this.configuration.basePath}/json/attributesManager/getAttribute/any`;if(m){let sn=new URL(ci),_r=sn.pathname.split("/");_r[1]="non",sn.pathname=_r.join("/"),ci=sn.toString()}return this.httpClient.get(ci,{context:xi,params:R,responseType:Xt,withCredentials:this.configuration.withCredentials,headers:J,observe:g,reportProgress:p})}getAttributeDefinitionById(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter id was null or undefined when calling getAttributeDefinitionById.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributeDefinitionById`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getAttributeDefinitionByName(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getAttributeDefinitionByName.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attributeName"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributeDefinition`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getAttributeDefinitionsByNamespace(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter namespace was null or undefined when calling getAttributeDefinitionsByNamespace.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"namespace"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributesDefinitionByNamespace`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getAttributeModulesDependenciesForAttributeGraphText(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");if(null==t)throw new Error("Required parameter attrName was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"format")),null!=t&&(n=this.addToHttpParams(n,t,"attrName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText/for-attribute`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getAttributeModulesDependenciesGraphText(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesGraphText.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"format"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getAttributePolicyCollections(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getAttributePolicyCollections.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attributeId"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributePolicyCollections`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getAttributeRights(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getAttributeRights.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attributeId"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributeRights`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getAttributeRules(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling getAttributeRules.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attributeDefinition"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributeRules`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getAttributesDefinitionWithRights(e,t,s,u,d,l,n,i,o=!1,c="body",h=!1,m){let g=new v.LE({encoder:this.encoder});null!=e&&(g=this.addToHttpParams(g,e,"member")),null!=t&&(g=this.addToHttpParams(g,t,"user")),null!=s&&(g=this.addToHttpParams(g,s,"vo")),null!=u&&(g=this.addToHttpParams(g,u,"group")),null!=d&&(g=this.addToHttpParams(g,d,"resource")),null!=l&&(g=this.addToHttpParams(g,l,"facility")),null!=n&&(g=this.addToHttpParams(g,n,"host")),null!=i&&(g=this.addToHttpParams(g,i,"userExtSource"));let w,p=this.defaultHeaders;w=this.configuration.lookupCredential("BasicAuth"),w&&(p=p.set("Authorization","Basic "+w)),w=this.configuration.lookupCredential("BearerAuth"),w&&(p=p.set("Authorization","Bearer "+w));let R=m&&m.httpHeaderAccept;void 0===R&&(R=this.configuration.selectHeaderAccept(["application/json"])),void 0!==R&&(p=p.set("Accept",R));let J=m&&m.context;void 0===J&&(J=new v.qT);let Te="json";R&&(Te=R.startsWith("text")?"text":this.configuration.isJsonMime(R)?"json":"blob");let at=`${this.configuration.basePath}/urlinjsonout/attributesManager/getAttributesDefinitionWithRights`;if(o){let xi=new URL(at),Xt=xi.pathname.split("/");Xt[1]="non",xi.pathname=Xt.join("/"),at=xi.toString()}return this.httpClient.get(at,{context:J,params:g,responseType:Te,withCredentials:this.configuration.withCredentials,headers:p,observe:c,reportProgress:h})}getEntitylessAttributeByName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getEntitylessAttributeByName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"key")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-entityless`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getEntitylessAttributesByKey(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributesByKey.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"key"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/key`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getEntitylessAttributesByName(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesByName.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attrName"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributes`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getEntitylessAttributesWithKeys(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesWithKeys.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"attrName")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"keys[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributesWithKeys`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getEntitylessKeys(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling getEntitylessKeys.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attributeDefinition"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getEntitylessKeys`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getFacilityAttributeById(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getFacilityAttributeById.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-facility`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getFacilityAttributeByName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getFacilityAttributeByName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-facility`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getFacilityAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"facility"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/f`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getFacilityAttributesByNames(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getFacilityAttributesByNames.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attrNames[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/f-names`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getFacilityResourceUserMemberAttributes(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==s)throw new Error("Required parameter user was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==u)throw new Error("Required parameter member was null or undefined when calling getFacilityResourceUserMemberAttributes.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"facility")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),null!=s&&(o=this.addToHttpParams(o,s,"user")),null!=u&&(o=this.addToHttpParams(o,u,"member"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let m=i&&i.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(c=c.set("Accept",m));let g=i&&i.context;void 0===g&&(g=new v.qT);let p="json";m&&(p=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/attributesManager/getAttributes/f-r-u-m`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.get(w,{context:g,params:o,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}getFacilityUserAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityUserAttributes.");if(null==t)throw new Error("Required parameter user was null or undefined when calling getFacilityUserAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),null!=t&&(n=this.addToHttpParams(n,t,"user"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/f-u`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getGroupAttributeById(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getGroupAttributeById.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getGroupAttributeByName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getGroupAttributeByName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getGroupAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/g`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getGroupAttributesByNames(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getGroupAttributesByNames.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attrNames[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/g-names`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getGroupResourceAttributeById(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeById.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeById.");if(null==s)throw new Error("Required parameter attributeId was null or undefined when calling getGroupResourceAttributeById.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"group")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"attributeId"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group-resource`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getGroupResourceAttributeByName(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeByName.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeByName.");if(null==s)throw new Error("Required parameter attributeName was null or undefined when calling getGroupResourceAttributeByName.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"group")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"attributeName"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group-resource`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getGroupResourceAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/group-resource`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getHostAttributeById(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getHostAttributeById.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-host`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getHostAttributeByName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getHostAttributeByName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-host`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getHostAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"host"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/h`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getHostAttributesByNames(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getHostAttributesByNames.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attrNames[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/h-names`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getIdpAttributeDefinitions(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/attributesManager/getIdpAttributeDefinitions`;if(e){let h=new URL(c),m=h.pathname.split("/");m[1]="non",h.pathname=m.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getLogins(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getLogins.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getLogins`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getMemberAndUserAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributes.");if(null==t)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"workWithUserAttributes"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-wu`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getMemberAndUserAttributesByNames(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==s)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributesByNames.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),t&&t.forEach(w=>{i=this.addToHttpParams(i,w,"attrNames[]")}),null!=s&&(i=this.addToHttpParams(i,s,"workWithUserAttributes"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names-wu`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getMemberAttributeById(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getMemberAttributeById.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getMemberAttributeByName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getMemberAttributeByName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getMemberAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"member"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/m`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getMemberAttributesByNames(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAttributesByNames.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attrNames[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getMemberGroupAndUserAttributesByNames(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==u)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberGroupAndUserAttributesByNames.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group")),s&&s.forEach(R=>{o=this.addToHttpParams(o,R,"attrNames[]")}),null!=u&&(o=this.addToHttpParams(o,u,"workWithUserAttributes"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let m=i&&i.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(c=c.set("Accept",m));let g=i&&i.context;void 0===g&&(g=new v.qT);let p="json";m&&(p=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names-wu`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.get(w,{context:g,params:o,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}getMemberGroupAttributeById(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeById.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeById.");if(null==s)throw new Error("Required parameter attributeId was null or undefined when calling getMemberGroupAttributeById.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),null!=s&&(i=this.addToHttpParams(i,s,"attributeId"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-group`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getMemberGroupAttributeByName(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeByName.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeByName.");if(null==s)throw new Error("Required parameter attributeName was null or undefined when calling getMemberGroupAttributeByName.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),null!=s&&(i=this.addToHttpParams(i,s,"attributeName"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-group`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getMemberGroupAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"group"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getMemberGroupAttributesByNames(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributesByNames.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAttributesByNames.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),s&&s.forEach(w=>{i=this.addToHttpParams(i,w,"attrNames[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getMemberResourceAndUserFacilityAttributes(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==s)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"workWithUserAttributes"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-wu`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getMemberResourceAndUserFacilityAttributesByNames(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==u)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),s&&s.forEach(R=>{o=this.addToHttpParams(o,R,"attrNames[]")}),null!=u&&(o=this.addToHttpParams(o,u,"workWithUserAttributes"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let m=i&&i.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(c=c.set("Accept",m));let g=i&&i.context;void 0===g&&(g=new v.qT);let p="json";m&&(p=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-names-wu`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.get(w,{context:g,params:o,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}getMemberResourceAttributeById(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeById.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeById.");if(null==s)throw new Error("Required parameter attributeId was null or undefined when calling getMemberResourceAttributeById.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"attributeId"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-resource`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getMemberResourceAttributeByName(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeByName.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeByName.");if(null==s)throw new Error("Required parameter attributeName was null or undefined when calling getMemberResourceAttributeByName.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"attributeName"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-resource`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getMemberResourceAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getRequiredAttributesDefinition(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesDefinition.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"service"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributesDefinition`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getRequiredAttributesFacility(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacility.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"facility"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/f`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getRequiredAttributesFacilityService(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesFacilityService.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityService.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"service")),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-f`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getRequiredAttributesFacilityServices(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesFacilityServices.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityServices.");let n=new v.LE({encoder:this.encoder});e&&e.forEach(p=>{n=this.addToHttpParams(n,p,"services[]")}),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-f`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getRequiredAttributesGroupResourceService(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==s)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesGroupResourceService.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"service")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"group"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getRequiredAttributesHostService(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesHostService.");if(null==t)throw new Error("Required parameter host was null or undefined when calling getRequiredAttributesHostService.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"service")),null!=t&&(n=this.addToHttpParams(n,t,"host"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-h`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getRequiredAttributesMember(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMember.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"workWithUserAttributes"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getRequiredAttributesMemberGroup(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroup.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroup.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),null!=s&&(i=this.addToHttpParams(i,s,"workWithUserAttributes"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-g`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getRequiredAttributesMemberGroupResourceService(e,t,s,u,d,l=!1,n="body",i=!1,o){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==s)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==u)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"service")),null!=t&&(c=this.addToHttpParams(c,t,"resource")),null!=s&&(c=this.addToHttpParams(c,s,"group")),null!=u&&(c=this.addToHttpParams(c,u,"member")),null!=d&&(c=this.addToHttpParams(c,d,"workWithUserAttributes"));let m,h=this.defaultHeaders;m=this.configuration.lookupCredential("BasicAuth"),m&&(h=h.set("Authorization","Basic "+m)),m=this.configuration.lookupCredential("BearerAuth"),m&&(h=h.set("Authorization","Bearer "+m));let g=o&&o.httpHeaderAccept;void 0===g&&(g=this.configuration.selectHeaderAccept(["application/json"])),void 0!==g&&(h=h.set("Accept",g));let p=o&&o.context;void 0===p&&(p=new v.qT);let w="json";g&&(w=g.startsWith("text")?"text":this.configuration.isJsonMime(g)?"json":"blob");let R=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g-m`;if(l){let J=new URL(R),Te=J.pathname.split("/");Te[1]="non",J.pathname=Te.join("/"),R=J.toString()}return this.httpClient.get(R,{context:p,params:c,responseType:w,withCredentials:this.configuration.withCredentials,headers:h,observe:n,reportProgress:i})}getRequiredAttributesMemberGroupService(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==s)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupService.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"service")),null!=t&&(o=this.addToHttpParams(o,t,"group")),null!=s&&(o=this.addToHttpParams(o,s,"member")),null!=u&&(o=this.addToHttpParams(o,u,"workWithUserAttributes"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let m=i&&i.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(c=c.set("Accept",m));let g=i&&i.context;void 0===g&&(g=new v.qT);let p="json";m&&(p=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-g-m`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.get(w,{context:g,params:o,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}getRequiredAttributesMemberResource(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResource.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResource.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"workWithUserAttributes"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-r`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getRequiredAttributesMemberResourceService(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==s)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResourceService.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"service")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),null!=s&&(o=this.addToHttpParams(o,s,"member")),null!=u&&(o=this.addToHttpParams(o,u,"workWithUserAttributes"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let m=i&&i.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(c=c.set("Accept",m));let g=i&&i.context;void 0===g&&(g=new v.qT);let p="json";m&&(p=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-m`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.get(w,{context:g,params:o,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}getRequiredAttributesResource(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResource.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"resource"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/r`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getRequiredAttributesResourceService(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceService.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"service")),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getRequiredAttributesResourceServices(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesResourceServices.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceServices.");let n=new v.LE({encoder:this.encoder});e&&e.forEach(p=>{n=this.addToHttpParams(n,p,"services[]")}),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-r`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getRequiredAttributesUser(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUser.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getRequiredAttributesUserFacility(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUserFacility.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesUserFacility.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u-f`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getRequiredAttributesVoService(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesVoService.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling getRequiredAttributesVoService.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"service")),null!=t&&(n=this.addToHttpParams(n,t,"vo"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-v`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getResourceAttributeById(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getResourceAttributeById.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-resource`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getResourceAttributeByName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getResourceAttributeByName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-resource`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getResourceAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"resource"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/r`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getResourceAttributesByNames(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getResourceAttributesByNames.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attrNames[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-names`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getResourceGroupAndGroupAttributes(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==s)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributes.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"resource")),null!=t&&(i=this.addToHttpParams(i,t,"group")),null!=s&&(i=this.addToHttpParams(i,s,"workWithGroupAttributes"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-wg`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getResourceGroupAndGroupAttributesByNames(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==u)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"group")),s&&s.forEach(R=>{o=this.addToHttpParams(o,R,"attrNames[]")}),null!=u&&(o=this.addToHttpParams(o,u,"workWithGroupAttributes"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let m=i&&i.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(c=c.set("Accept",m));let g=i&&i.context;void 0===g&&(g=new v.qT);let p="json";m&&(p=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-names-wg`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.get(w,{context:g,params:o,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}getResourceGroupAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),null!=t&&(n=this.addToHttpParams(n,t,"group"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getResourceGroupMemberAttributesByNames(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==s)throw new Error("Required parameter member was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==u)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupMemberAttributesByNames.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"group")),null!=s&&(o=this.addToHttpParams(o,s,"member")),u&&u.forEach(R=>{o=this.addToHttpParams(o,R,"attrNames[]")});let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let m=i&&i.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(c=c.set("Accept",m));let g=i&&i.context;void 0===g&&(g=new v.qT);let p="json";m&&(p=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-m-names`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.get(w,{context:g,params:o,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}getUserAttributeById(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getUserAttributeById.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getUserAttributeByName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getUserAttributeByName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getUserAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/u`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getUserAttributesByNames(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getUserAttributesByNames.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attrNames[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/u-names`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getUserExtSourceAttributeById(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceAttributeById.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-ues`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getUserExtSourceAttributeByName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceAttributeByName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-ues`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getUserExtSourceAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"userExtSource"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/ues`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getUserExtSourceAttributesByNames(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getUserExtSourceAttributesByNames.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attrNames[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/ues-names`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getUserFacilityAttributeById(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeById.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeById.");if(null==s)throw new Error("Required parameter attributeId was null or undefined when calling getUserFacilityAttributeById.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"facility")),null!=s&&(i=this.addToHttpParams(i,s,"attributeId"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user_facility`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getUserFacilityAttributeByName(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeByName.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeByName.");if(null==s)throw new Error("Required parameter attributeName was null or undefined when calling getUserFacilityAttributeByName.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"facility")),null!=s&&(i=this.addToHttpParams(i,s,"attributeName"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user_facility`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getUserFacilityAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributes.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/user-facility`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getVoAttributeById(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getVoAttributeById.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-vo`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getVoAttributeByName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getVoAttributeByName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-vo`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getVoAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/vo`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getVoAttributesByNames(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getVoAttributesByNames.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attrNames[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/vo-names`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeAttributesForFacilityResourceGroupUserMember(e,t,s,u,d,l,n=!1,i="body",o=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==s)throw new Error("Required parameter group was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==u)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==d)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==l)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");let h=new v.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"facility")),null!=t&&(h=this.addToHttpParams(h,t,"resource")),null!=s&&(h=this.addToHttpParams(h,s,"group")),null!=u&&(h=this.addToHttpParams(h,u,"user")),null!=d&&(h=this.addToHttpParams(h,d,"member")),l&&l.forEach(Te=>{h=this.addToHttpParams(h,Te,"attributes[]")});let g,m=this.defaultHeaders;g=this.configuration.lookupCredential("BasicAuth"),g&&(m=m.set("Authorization","Basic "+g)),g=this.configuration.lookupCredential("BearerAuth"),g&&(m=m.set("Authorization","Bearer "+g));let p=c&&c.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(m=m.set("Accept",p));let w=c&&c.context;void 0===w&&(w=new v.qT);let R="json";p&&(R=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let J=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-g-u-m`;if(n){let Te=new URL(J),at=Te.pathname.split("/");at[1]="non",Te.pathname=at.join("/"),J=Te.toString()}return this.httpClient.post(J,null,{context:w,params:h,responseType:R,withCredentials:this.configuration.withCredentials,headers:m,observe:i,reportProgress:o})}removeAttributesForFacilityResourceUserMember(e,t,s,u,d,l=!1,n="body",i=!1,o){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==s)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==u)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==d)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceUserMember.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"facility")),null!=t&&(c=this.addToHttpParams(c,t,"resource")),null!=s&&(c=this.addToHttpParams(c,s,"user")),null!=u&&(c=this.addToHttpParams(c,u,"member")),d&&d.forEach(J=>{c=this.addToHttpParams(c,J,"attributes[]")});let m,h=this.defaultHeaders;m=this.configuration.lookupCredential("BasicAuth"),m&&(h=h.set("Authorization","Basic "+m)),m=this.configuration.lookupCredential("BearerAuth"),m&&(h=h.set("Authorization","Bearer "+m));let g=o&&o.httpHeaderAccept;void 0===g&&(g=this.configuration.selectHeaderAccept(["application/json"])),void 0!==g&&(h=h.set("Accept",g));let p=o&&o.context;void 0===p&&(p=new v.qT);let w="json";g&&(w=g.startsWith("text")?"text":this.configuration.isJsonMime(g)?"json":"blob");let R=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-u-m`;if(l){let J=new URL(R),Te=J.pathname.split("/");Te[1]="non",J.pathname=Te.join("/"),R=J.toString()}return this.httpClient.post(R,null,{context:p,params:c,responseType:w,withCredentials:this.configuration.withCredentials,headers:h,observe:n,reportProgress:i})}removeEntitylessAttribute(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter key was null or undefined when calling removeEntitylessAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeEntitylessAttribute.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"key")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/e`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeFacilityAttribute(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeFacilityAttribute.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/f`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeFacilityAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeFacilityAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attributes[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeGroupAttribute(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeGroupAttribute.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeGroupAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeGroupAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attributes[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeGroupResourceAttribute(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttribute.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttribute.");if(null==s)throw new Error("Required parameter attribute was null or undefined when calling removeGroupResourceAttribute.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"group")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"attribute"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g-r`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.post(p,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}removeGroupResourceAttributes(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributes.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"group")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),s&&s.forEach(w=>{i=this.addToHttpParams(i,w,"attributes[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.post(p,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}removeGroupResourceAttributesWorkWithGroupAttributes(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==u)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),s&&s.forEach(R=>{o=this.addToHttpParams(o,R,"attributes[]")}),null!=u&&(o=this.addToHttpParams(o,u,"workWithGroupAttributes"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let m=i&&i.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(c=c.set("Accept",m));let g=i&&i.context;void 0===g&&(g=new v.qT);let p="json";m&&(p=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r-workWithGroupAttributes`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.post(w,null,{context:g,params:o,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}removeHostAttribute(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter host was null or undefined when calling removeHostAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeHostAttribute.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/h`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeHostAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter host was null or undefined when calling removeHostAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeHostAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attributes[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/h`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeMemberAttribute(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeMemberAttribute.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeMemberAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attributes[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeMemberAttributesWorkWithUserAttributes(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==s)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),t&&t.forEach(w=>{i=this.addToHttpParams(i,w,"attributes[]")}),null!=s&&(i=this.addToHttpParams(i,s,"workWithUserAttributes"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-workWithUserAttributes`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.post(p,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}removeMemberGroupAttribute(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttribute.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttribute.");if(null==s)throw new Error("Required parameter attribute was null or undefined when calling removeMemberGroupAttribute.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),null!=s&&(i=this.addToHttpParams(i,s,"attribute"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-g`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.post(p,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}removeMemberGroupAttributes(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributes.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),s&&s.forEach(w=>{i=this.addToHttpParams(i,w,"attributes[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.post(p,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}removeMemberGroupAttributesWorkWithUserAttributes(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==u)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group")),s&&s.forEach(R=>{o=this.addToHttpParams(o,R,"attributes[]")}),null!=u&&(o=this.addToHttpParams(o,u,"workWithUserAttributes"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let m=i&&i.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(c=c.set("Accept",m));let g=i&&i.context;void 0===g&&(g=new v.qT);let p="json";m&&(p=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g-workWithUserAttributes`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.post(w,null,{context:g,params:o,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}removeMemberResourceAttribute(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttribute.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttribute.");if(null==s)throw new Error("Required parameter attribute was null or undefined when calling removeMemberResourceAttribute.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"attribute"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-r`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.post(p,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}removeMemberResourceAttributes(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeMemberResourceAttributes.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),s&&s.forEach(w=>{i=this.addToHttpParams(i,w,"attributes[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-r`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.post(p,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}removeResourceAttribute(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeResourceAttribute.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/r`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeResourceAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeResourceAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attributes[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/r`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeUesAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling removeUesAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeUesAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attributes[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/ues`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeUserAttribute(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeUserAttribute.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeUserAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeUserAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attributes[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeUserExtSourceAttribute(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSourceAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeUserExtSourceAttribute.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/ues`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeUserFacilityAttribute(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttribute.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttribute.");if(null==s)throw new Error("Required parameter attribute was null or undefined when calling removeUserFacilityAttribute.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"facility")),null!=s&&(i=this.addToHttpParams(i,s,"attribute"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u-f`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.post(p,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}removeUserFacilityAttributes(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttributes.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeUserFacilityAttributes.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"facility")),s&&s.forEach(w=>{i=this.addToHttpParams(i,w,"attributes[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u-f`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.post(p,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}removeVoAttribute(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeVoAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeVoAttribute.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/v`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeVoAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeVoAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeVoAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attributes[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/v`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}setAttributeActionCriticality(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling setAttributeActionCriticality.");if(null==t)throw new Error("Required parameter action was null or undefined when calling setAttributeActionCriticality.");if(null==s)throw new Error("Required parameter critical was null or undefined when calling setAttributeActionCriticality.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"attributeDefinition")),null!=t&&(i=this.addToHttpParams(i,t,"action")),null!=s&&(i=this.addToHttpParams(i,s,"critical"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/urlinjsonout/attributesManager/setAttributeActionCriticality`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.post(p,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}setAttributePolicyCollections(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputAttributePolicyCollections was null or undefined when calling setAttributePolicyCollections.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributePolicyCollections`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setAttributeRights(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputAttributeRights was null or undefined when calling setAttributeRights.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributeRights`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setEntitylessAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputEntitylessAttribute was null or undefined when calling setEntitylessAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/entityless`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setFacilityAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetFacilityAttribute was null or undefined when calling setFacilityAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/facility`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setFacilityAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetFacilityAttributes was null or undefined when calling setFacilityAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/f`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setFacilityResourceGroupUserMemberAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetFacilityResourceGroupUserMemberAttributes was null or undefined when calling setFacilityResourceGroupUserMemberAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-g-u-m`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setFacilityResourceUserMemberAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetFacilityResourceUserMemberAttributes was null or undefined when calling setFacilityResourceUserMemberAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-u-m`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setFacilityUserAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetFacilityUserAttributes was null or undefined when calling setFacilityUserAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/f-u`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setGroupAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetGroupAttribute was null or undefined when calling setGroupAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/group`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setGroupAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetGroupAttributes was null or undefined when calling setGroupAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/g`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setGroupResourceAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetGroupResourceAttribute was null or undefined when calling setGroupResourceAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/group-resource`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setGroupResourceAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetGroupResourceAttributes was null or undefined when calling setGroupResourceAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/group-resource`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setHostAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetHostAttribute was null or undefined when calling setHostAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/host`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setHostAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetHostAttributes was null or undefined when calling setHostAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/h`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setMemberAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetMemberAttribute was null or undefined when calling setMemberAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/member`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setMemberAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetMemberAttributes was null or undefined when calling setMemberAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/m`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setMemberGroupAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetMemberGroupAttribute was null or undefined when calling setMemberGroupAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/member-group`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setMemberGroupAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetMemberGroupAttributes was null or undefined when calling setMemberGroupAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setMemberGroupWithUserAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetMemberGroupWithUserAttributes was null or undefined when calling setMemberGroupWithUserAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g-wu`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setMemberResourceAndUserAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetMemberResourceAndUserAttributes was null or undefined when calling setMemberResourceAndUserAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r-wu`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setMemberResourceAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetMemberResourceAttribute was null or undefined when calling setMemberResourceAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/member-resource`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setMemberResourceAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetMemberResourceAttributes was null or undefined when calling setMemberResourceAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setMemberWithUserAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetMemberWithUserAttributes was null or undefined when calling setMemberWithUserAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-wu`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setResourceAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetResourceAttribute was null or undefined when calling setResourceAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/resource`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setResourceAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetResourceAttributes was null or undefined when calling setResourceAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/r`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setResourceGroupAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetResourceGroupAttributes was null or undefined when calling setResourceGroupAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setResourceGroupWithGroupAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetResourceGroupWithGroupAttributes was null or undefined when calling setResourceGroupWithGroupAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g-wg`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setUserAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetUserAttribute was null or undefined when calling setUserAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/user`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setUserAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetUserAttributes was null or undefined when calling setUserAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/u`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setUserExtSourceAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetUserExtSourceAttribute was null or undefined when calling setUserExtSourceAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/userExtSource`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setUserExtSourceAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetUserExtSourceAttributes was null or undefined when calling setUserExtSourceAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/ues`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setUserFacilityAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetUserFacilityAttribute was null or undefined when calling setUserFacilityAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/facility-user`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setUserFacilityAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetUserFacilityAttributes was null or undefined when calling setUserFacilityAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/facility-user`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setVoAttribute(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetVoAttribute was null or undefined when calling setVoAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/vo`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setVoAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputSetVoAttributes was null or undefined when calling setVoAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/vo`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}updateAttributeDefinition(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputAttributeDefinition was null or undefined when calling updateAttributeDefinition.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/updateAttributeDefinition`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(v.eN),f.LFG(mt,8),f.LFG(Ue,8))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),lt=(()=>{class r{constructor(e,t,s){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new v.WM,this.configuration=new Ue,s&&(this.configuration=s),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Rt}addToHttpParams(e,t,s){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,s):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,s){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(u=>e=this.addToHttpParamsRecursive(e,u,s));else if(t instanceof Date){if(null==s)throw Error("key may not be null if value is Date");e=e.append(s,t.toISOString().substr(0,10))}else Object.keys(t).forEach(u=>e=this.addToHttpParamsRecursive(e,t[u],null!=s?`${s}.${u}`:u));else{if(null==s)throw Error("key may not be null if value is not object or array");e=e.append(s,t)}return e}getAllPolicies(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/getAllPolicies`;if(e){let h=new URL(c),m=h.pathname.split("/");m[1]="non",h.pathname=m.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getAllRolesManagementRules(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/getAllRolesManagementRules`;if(e){let h=new URL(c),m=h.pathname.split("/");m[1]="non",h.pathname=m.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getAuthzAdminGroups(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter role was null or undefined when calling getAuthzAdminGroups.");if(null==t)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzAdminGroups.");if(null==s)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzAdminGroups.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"role")),null!=t&&(i=this.addToHttpParams(i,t,"complementaryObjectId")),null!=s&&(i=this.addToHttpParams(i,s,"complementaryObjectName"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/json/authzResolver/getAdminGroups`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.get(p,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}getAuthzRichAdmins(e,t,s,u,d,l,n=!1,i="body",o=!1,c){if(null==e)throw new Error("Required parameter role was null or undefined when calling getAuthzRichAdmins.");if(null==t)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzRichAdmins.");if(null==s)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzRichAdmins.");if(null==u)throw new Error("Required parameter specificAttributes was null or undefined when calling getAuthzRichAdmins.");let h=new v.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"role")),null!=t&&(h=this.addToHttpParams(h,t,"complementaryObjectId")),null!=s&&(h=this.addToHttpParams(h,s,"complementaryObjectName")),u&&u.forEach(Te=>{h=this.addToHttpParams(h,Te,"specificAttributes")}),null!=d&&(h=this.addToHttpParams(h,d,"allUserAttributes")),null!=l&&(h=this.addToHttpParams(h,l,"onlyDirectAdmins"));let g,m=this.defaultHeaders;g=this.configuration.lookupCredential("BasicAuth"),g&&(m=m.set("Authorization","Basic "+g)),g=this.configuration.lookupCredential("BearerAuth"),g&&(m=m.set("Authorization","Bearer "+g));let p=c&&c.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(m=m.set("Accept",p));let w=c&&c.context;void 0===w&&(w=new v.qT);let R="json";p&&(R=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let J=`${this.configuration.basePath}/json/authzResolver/getRichAdmins`;if(n){let Te=new URL(J),at=Te.pathname.split("/");at[1]="non",Te.pathname=at.join("/"),J=Te.toString()}return this.httpClient.get(J,{context:w,params:h,responseType:R,withCredentials:this.configuration.withCredentials,headers:m,observe:i,reportProgress:o})}getFacilitiesWhereUserIsInRoles(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getFacilitiesWhereUserIsInRoles.");let n=new v.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(p=>{n=this.addToHttpParams(n,p,"roles[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/getFacilitiesWhereUserIsInRoles`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getGroupRoleNames(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/getGroupRoleNames`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getGroupRoles(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"groupId"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/authzResolver/getGroupRoles`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getGroupsWhereUserIsInRoles(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getGroupsWhereUserIsInRoles.");let n=new v.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(p=>{n=this.addToHttpParams(n,p,"roles[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/getGroupsWhereUserIsInRoles`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getLoggedUser(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/getLoggedUser`;if(e){let h=new URL(c),m=h.pathname.split("/");m[1]="non",h.pathname=m.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getMembersWhereUserIsInRoles(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getMembersWhereUserIsInRoles.");let n=new v.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(p=>{n=this.addToHttpParams(n,p,"roles[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/getMembersWhereUserIsInRoles`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getPerunPrincipal(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/getPerunPrincipal`;if(e){let h=new URL(c),m=h.pathname.split("/");m[1]="non",h.pathname=m.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getPrincipalRoleNames(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/getPrincipalRoleNames`;if(e){let h=new URL(c),m=h.pathname.split("/");m[1]="non",h.pathname=m.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getResourcesWhereUserIsInRoles(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getResourcesWhereUserIsInRoles.");let n=new v.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(p=>{n=this.addToHttpParams(n,p,"roles[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/getResourcesWhereUserIsInRoles`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getSecurityTeamsWhereUserIsInRoles(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getSecurityTeamsWhereUserIsInRoles.");let n=new v.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(p=>{n=this.addToHttpParams(n,p,"roles[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/getSecurityTeamsWhereUserIsInRoles`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getUserRoleNames(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/getUserRoleNames`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getUserRoles(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"userId"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/getUserRoles`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getVosWhereUserIsInRoles(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getVosWhereUserIsInRoles.");let n=new v.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(p=>{n=this.addToHttpParams(n,p,"roles[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/getVosWhereUserIsInRoles`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}isFacilityAdmin(e,t=!1,s="body",u=!1,d){let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"facility"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/authzResolver/isFacilityAdmin`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}isGroupAdmin(e,t=!1,s="body",u=!1,d){let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/authzResolver/isGroupAdmin`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}isPerunAdmin(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/isPerunAdmin`;if(e){let h=new URL(c),m=h.pathname.split("/");m[1]="non",h.pathname=m.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}isVoAdmin(e,t=!1,s="body",u=!1,d){let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/authzResolver/isVoAdmin`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}keepAlive(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/keepAlive`;if(e){let h=new URL(c),m=h.pathname.split("/");m[1]="non",h.pathname=m.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}loadAuthorizationComponents(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/loadAuthorizationComponents`;if(e){let h=new URL(c),m=h.pathname.split("/");m[1]="non",h.pathname=m.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}refreshMfa(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/authzResolver/refreshMfa`;if(e){let h=new URL(c),m=h.pathname.split("/");m[1]="non",h.pathname=m.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}setRoleForGroup(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter SetRoleForGroup was null or undefined when calling setRoleForGroup.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/setRole/g`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setRoleForUser(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter SetRoleForUser was null or undefined when calling setRoleForUser.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/setRole/u`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setRoleWithGroupComplementaryObject(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter SetRoleWithGroupComplementaryObject was null or undefined when calling setRoleWithGroupComplementaryObject.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/setRole/g-co`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setRoleWithGroupComplementaryObjects(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter SetRoleWithGroupComplementaryObjects was null or undefined when calling setRoleWithGroupComplementaryObjects.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/setRole/g-cos`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setRoleWithUserComplementaryObject(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter SetRoleWithUserComplementaryObject was null or undefined when calling setRoleWithUserComplementaryObject.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/setRole/u-co`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}setRoleWithUserComplementaryObjects(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter SetRoleWithUserComplementaryObjects was null or undefined when calling setRoleWithUserComplementaryObjects.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/setRole/u-cos`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}unsetRoleForGroup(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter UnsetRoleForGroup was null or undefined when calling unsetRoleForGroup.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/unsetRole/g`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}unsetRoleForUser(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter UnsetRoleForUser was null or undefined when calling unsetRoleForUser.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/unsetRole/u`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}unsetRoleWithGroupComplementaryObject(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter UnsetRoleWithGroupComplementaryObject was null or undefined when calling unsetRoleWithGroupComplementaryObject.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/unsetRole/g-co`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}unsetRoleWithGroupComplementaryObjects(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter UnsetRoleWithGroupComplementaryObjects was null or undefined when calling unsetRoleWithGroupComplementaryObjects.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/unsetRole/g-cos`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}unsetRoleWithUserComplementaryObject(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter UnsetRoleWithUserComplementaryObject was null or undefined when calling unsetRoleWithUserComplementaryObject.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/unsetRole/u-co`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}unsetRoleWithUserComplementaryObjects(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter UnsetRoleWithUserComplementaryObjects was null or undefined when calling unsetRoleWithUserComplementaryObjects.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/unsetRole/u-cos`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(v.eN),f.LFG(mt,8),f.LFG(Ue,8))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Vo=(()=>{class r{constructor(e,t,s){this.httpClient=e,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new v.WM,this.configuration=new Ue,s&&(this.configuration=s),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Rt}addToHttpParams(e,t,s){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,s):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,s){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(u=>e=this.addToHttpParamsRecursive(e,u,s));else if(t instanceof Date){if(null==s)throw Error("key may not be null if value is Date");e=e.append(s,t.toISOString().substr(0,10))}else Object.keys(t).forEach(u=>e=this.addToHttpParamsRecursive(e,t[u],null!=s?`${s}.${u}`:u));else{if(null==s)throw Error("key may not be null if value is not object or array");e=e.append(s,t)}return e}sentMessageToRTWithMemberQueue(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter memberId was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==s)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==u)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithMemberQueue.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"memberId")),null!=t&&(o=this.addToHttpParams(o,t,"queue")),null!=s&&(o=this.addToHttpParams(o,s,"subject")),null!=u&&(o=this.addToHttpParams(o,u,"text"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let m=i&&i.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(c=c.set("Accept",m));let g=i&&i.context;void 0===g&&(g=new v.qT);let p="json";m&&(p=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/m-q`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.post(w,null,{context:g,params:o,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}sentMessageToRTWithQueue(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithQueue.");if(null==t)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithQueue.");if(null==s)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithQueue.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"queue")),null!=t&&(i=this.addToHttpParams(i,t,"subject")),null!=s&&(i=this.addToHttpParams(i,s,"text"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/q`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.post(p,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}sentMessageToRTWithVo(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVo.");if(null==t)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVo.");if(null==s)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVo.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"voId")),null!=t&&(i=this.addToHttpParams(i,t,"subject")),null!=s&&(i=this.addToHttpParams(i,s,"text"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.post(p,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}sentMessageToRTWithVoQueue(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==s)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==u)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVoQueue.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"voId")),null!=t&&(o=this.addToHttpParams(o,t,"queue")),null!=s&&(o=this.addToHttpParams(o,s,"subject")),null!=u&&(o=this.addToHttpParams(o,u,"text"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let m=i&&i.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(c=c.set("Accept",m));let g=i&&i.context;void 0===g&&(g=new v.qT);let p="json";m&&(p=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v-q`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.post(w,null,{context:g,params:o,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(v.eN),f.LFG(mt,8),f.LFG(Ue,8))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),xn=(()=>{class r{constructor(e,t,s){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new v.WM,this.configuration=new Ue,s&&(this.configuration=s),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Rt}addToHttpParams(e,t,s){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,s):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,s){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(u=>e=this.addToHttpParamsRecursive(e,u,s));else if(t instanceof Date){if(null==s)throw Error("key may not be null if value is Date");e=e.append(s,t.toISOString().substr(0,10))}else Object.keys(t).forEach(u=>e=this.addToHttpParamsRecursive(e,t[u],null!=s?`${s}.${u}`:u));else{if(null==s)throw Error("key may not be null if value is not object or array");e=e.append(s,t)}return e}addSpecificUserOwner(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling addSpecificUserOwner.");if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling addSpecificUserOwner.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"specificUser"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/addSpecificUserOwner`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}addUserExtSource(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter AddUserExtSourceInput was null or undefined when calling addUserExtSource.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/addUserExtSource`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}anonymizeUser(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling anonymizeUser.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"force"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/anonymizeUser`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}changeNonAuthzPasswordByToken(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputChangeNonAuthzPasswordByToken was null or undefined when calling changeNonAuthzPasswordByToken.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/changeNonAuthzPassword/token`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}changePasswordForLogin(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputChangePasswordForLogin was null or undefined when calling changePasswordForLogin.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/changePassword/login`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}changePasswordForUser(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputChangePasswordForUser was null or undefined when calling changePasswordForUser.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/changePassword/user`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}checkPasswordResetRequestByTokenIsValid(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter token was null or undefined when calling checkPasswordResetRequestByTokenIsValid.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"token"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/checkPasswordResetRequestIsValid/token`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}checkPasswordStrength(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputCheckPasswordStrength was null or undefined when calling checkPasswordStrength.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/checkPasswordStrength`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}createAlternativePassword(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputCreateAlternativePassword was null or undefined when calling createAlternativePassword.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/createAlternativePassword`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}createServiceUser(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputCreateServiceUser was null or undefined when calling createServiceUser.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/createServiceUser`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}deleteAlternativePassword(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling deleteAlternativePassword.");if(null==t)throw new Error("Required parameter loginNamespace was null or undefined when calling deleteAlternativePassword.");if(null==s)throw new Error("Required parameter passwordId was null or undefined when calling deleteAlternativePassword.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"loginNamespace")),null!=s&&(i=this.addToHttpParams(i,s,"passwordId"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/urlinjsonout/usersManager/deleteAlternativePassword`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.post(p,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}deletePasswordForLogin(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter login was null or undefined when calling deletePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForLogin.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"login")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/login`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}deletePasswordForUser(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling deletePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForUser.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/user`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}deleteUser(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling deleteUser.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"force"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/deleteUser`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}findRichUsers(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findRichUsers.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"searchString"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/findRichUsers`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}findRichUsersWithAttributes(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findRichUsersWithAttributes.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"searchString")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attrsNames[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/findRichUsersWithAttributes`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}findUsers(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findUsers.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"searchString"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/findUsers`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}generateAccountForName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter namespace was null or undefined when calling generateAccountForName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"namespace")),null!=t&&(n=this.addToHttpParams(n,t,"name"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/generateAccount/name`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getAllRichUsersWithAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter includedSpecificUsers was null or undefined when calling getAllRichUsersWithAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"includedSpecificUsers"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getAllRichUsersWithAttributes`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getAssignedRichResourcesForUser(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getAssignedRichResourcesForUser.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getAssignedRichResources`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getGroupsForFacilityWhereUserIsActive(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/facility`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getGroupsForResourceWhereUserIsActive(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsForResourceWhereUserIsActive.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupsForResourceWhereUserIsActive.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/resource`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getGroupsInVoWhereUserIsAdmin(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"vo"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u-v`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getGroupsWhereUserIsAdmin(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsWhereUserIsAdmin.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getPendingPreferredEmailChanges(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getPendingPreferredEmailChanges.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getPendingPreferredEmailChanges`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getRichUserExtSources(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserExtSources.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getRichUserExtSources/u`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getRichUserWithAttributes(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserWithAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getRichUserWithAttributes`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getRichUsersByIds(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersByIds.");let l=new v.LE({encoder:this.encoder});e&&e.forEach(g=>{l=this.addToHttpParams(l,g,"ids[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getRichUsersByIds`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getRichUsersWithAttributesByIds(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersWithAttributesByIds.");let l=new v.LE({encoder:this.encoder});e&&e.forEach(g=>{l=this.addToHttpParams(l,g,"ids[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getRichUsersWithAttributesByIds`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getRichUsersWithoutVoWithAttributes(e,t=!1,s="body",u=!1,d){let l=new v.LE({encoder:this.encoder});e&&e.forEach(g=>{l=this.addToHttpParams(l,g,"attrsNames[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getRichUsersWithoutVoWithAttributes`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getSpecificUsersByUser(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getSpecificUsersByUser.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getSpecificUsersByUser`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getSponsorsForMember(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getSponsorsForMember.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),t&&t.forEach(p=>{n=this.addToHttpParams(n,p,"attrNames[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/member`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getSponsorsForMemberByVoAndLogin(e,t,s,u,d=!1,l="body",n=!1,i){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==t)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==s)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsForMemberByVoAndLogin.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"extSourceName")),null!=s&&(o=this.addToHttpParams(o,s,"extLogin")),u&&u.forEach(R=>{o=this.addToHttpParams(o,R,"attrNames[]")});let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let m=i&&i.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(c=c.set("Accept",m));let g=i&&i.context;void 0===g&&(g=new v.qT);let p="json";m&&(p=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/vo`;if(d){let R=new URL(w),J=R.pathname.split("/");J[1]="non",R.pathname=J.join("/"),w=R.toString()}return this.httpClient.get(w,{context:g,params:o,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:n})}getUserByExtSourceNameAndExtLogin(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter extLogin was null or undefined when calling getUserByExtSourceNameAndExtLogin.");if(null==t)throw new Error("Required parameter extSourceName was null or undefined when calling getUserByExtSourceNameAndExtLogin.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"extLogin")),null!=t&&(n=this.addToHttpParams(n,t,"extSourceName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getUserByExtSourceNameAndExtLogin`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getUserById(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter id was null or undefined when calling getUserById.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getUserById`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getUserExtSourceByExtLoginAndExtSourceName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");if(null==t)throw new Error("Required parameter extSourceLogin was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"extSourceName")),null!=t&&(n=this.addToHttpParams(n,t,"extSourceLogin"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getUserExtSourceByExtLoginAndExtSourceName`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getUserExtSourceById(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceById.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"userExtSource"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getUserExtSourceById`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getUserExtSourceByUniqueAttributeValueAndAttributeId(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");if(null==t)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"attributeId")),null!=t&&(n=this.addToHttpParams(n,t,"attributeValue"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/id`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getUserExtSourceByUniqueAttributeValueAndAttributeName(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");if(null==t)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"attributeName")),null!=t&&(n=this.addToHttpParams(n,t,"attributeValue"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/name`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.get(g,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}getUserExtSources(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserExtSources.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getUserExtSources`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getUserExtSourcesByIds(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUserExtSourcesByIds.");let l=new v.LE({encoder:this.encoder});e&&e.forEach(g=>{l=this.addToHttpParams(l,g,"ids[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getUserExtSourcesByIds`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getUsers(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/usersManager/getUsers`;if(e){let h=new URL(c),m=h.pathname.split("/");m[1]="non",h.pathname=m.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getUsersByIds(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUsersByIds.");let l=new v.LE({encoder:this.encoder});e&&e.forEach(g=>{l=this.addToHttpParams(l,g,"ids[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getUsersByIds`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getUsersBySpecificUser(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter specificUser was null or undefined when calling getUsersBySpecificUser.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"specificUser"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getUsersBySpecificUser`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getUsersPage(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputGetPaginatedUsers was null or undefined when calling getUsersPage.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getUsersPage`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}getVosWhereUserIsAdmin(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsAdmin.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsAdmin`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}getVosWhereUserIsMember(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsMember.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsMember`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.get(m,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}isLoginAvailable(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter loginNamespace was null or undefined when calling isLoginAvailable.");if(null==t)throw new Error("Required parameter login was null or undefined when calling isLoginAvailable.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"loginNamespace")),null!=t&&(n=this.addToHttpParams(n,t,"login"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/isLoginAvailable`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}loginExist(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling loginExist.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling loginExist.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/loginExist`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeSpecificUserOwner(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeSpecificUserOwner.");if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling removeSpecificUserOwner.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"specificUser"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/removeSpecificUserOwner`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}removeUserExtSource(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserExtSource.");if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSource.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"userExtSource")),null!=s&&(i=this.addToHttpParams(i,s,"force"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/urlinjsonout/usersManager/removeUserExtSource`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.post(p,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}removeUserExtSources(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserExtSources.");if(null==t)throw new Error("Required parameter userExtSources was null or undefined when calling removeUserExtSources.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),t&&t.forEach(w=>{i=this.addToHttpParams(i,w,"userExtSources")}),null!=s&&(i=this.addToHttpParams(i,s,"force"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/urlinjsonout/usersManager/removeUserExtSources`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.post(p,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}requestPreferredEmailChange(e,t,s,u,d,l,n=!1,i="body",o=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling requestPreferredEmailChange.");if(null==t)throw new Error("Required parameter email was null or undefined when calling requestPreferredEmailChange.");let h=new v.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"user")),null!=t&&(h=this.addToHttpParams(h,t,"email")),null!=s&&(h=this.addToHttpParams(h,s,"lang")),null!=u&&(h=this.addToHttpParams(h,u,"linkPath")),null!=d&&(h=this.addToHttpParams(h,d,"customUrl")),null!=l&&(h=this.addToHttpParams(h,l,"idpFilter"));let g,m=this.defaultHeaders;g=this.configuration.lookupCredential("BasicAuth"),g&&(m=m.set("Authorization","Basic "+g)),g=this.configuration.lookupCredential("BearerAuth"),g&&(m=m.set("Authorization","Bearer "+g));let p=c&&c.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(m=m.set("Accept",p));let w=c&&c.context;void 0===w&&(w=new v.qT);let R="json";p&&(R=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let J=`${this.configuration.basePath}/urlinjsonout/usersManager/requestPreferredEmailChange`;if(n){let Te=new URL(J),at=Te.pathname.split("/");at[1]="non",Te.pathname=at.join("/"),J=Te.toString()}return this.httpClient.post(J,null,{context:w,params:h,responseType:R,withCredentials:this.configuration.withCredentials,headers:m,observe:i,reportProgress:o})}reservePasswordForLogin(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputReservePasswordForLogin was null or undefined when calling reservePasswordForLogin.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/reservePassword/login`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}reservePasswordForUser(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputReservePasswordForUser was null or undefined when calling reservePasswordForUser.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/reservePassword/user`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}reserveRandomPassword(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling reserveRandomPassword.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling reserveRandomPassword.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/reserveRandomPassword`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}setLogin(e,t,s,u=!1,d="body",l=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling setLogin.");if(null==t)throw new Error("Required parameter login was null or undefined when calling setLogin.");if(null==s)throw new Error("Required parameter namespace was null or undefined when calling setLogin.");let i=new v.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"login")),null!=s&&(i=this.addToHttpParams(i,s,"namespace"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=n&&n.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let m=n&&n.context;void 0===m&&(m=new v.qT);let g="json";h&&(g=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let p=`${this.configuration.basePath}/urlinjsonout/usersManager/setLogin`;if(u){let w=new URL(p),R=w.pathname.split("/");R[1]="non",w.pathname=R.join("/"),p=w.toString()}return this.httpClient.post(p,null,{context:m,params:i,responseType:g,withCredentials:this.configuration.withCredentials,headers:o,observe:d,reportProgress:l})}updateUser(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter InputUpdateUser was null or undefined when calling updateUser.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=d&&d.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let o=d&&d.context;void 0===o&&(o=new v.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(l=l.set("Content-Type",h));let m="json";i&&(m=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/updateUser`;if(t){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,e,{context:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:u})}updateUserExtSourceLastAccess(e,t=!1,s="body",u=!1,d){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling updateUserExtSourceLastAccess.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"userExtSource"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let c=d&&d.context;void 0===c&&(c=new v.qT);let h="json";o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/usersManager/updateUserExtSourceLastAccess`;if(t){let g=new URL(m),p=g.pathname.split("/");p[1]="non",g.pathname=p.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:c,params:l,responseType:h,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:u})}validatePasswordForLogin(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter login was null or undefined when calling validatePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForLogin.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"login")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/login`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}validatePasswordForUser(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling validatePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForUser.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/user`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}validatePreferredEmailChangeWithToken(e,t,s=!1,u="body",d=!1,l){if(null==e)throw new Error("Required parameter token was null or undefined when calling validatePreferredEmailChangeWithToken.");if(null==t)throw new Error("Required parameter u was null or undefined when calling validatePreferredEmailChangeWithToken.");let n=new v.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"token")),null!=t&&(n=this.addToHttpParams(n,t,"u"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let h=l&&l.context;void 0===h&&(h=new v.qT);let m="json";c&&(m=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/validatePreferredEmailChange`;if(s){let p=new URL(g),w=p.pathname.split("/");w[1]="non",p.pathname=w.join("/"),g=p.toString()}return this.httpClient.post(g,null,{context:h,params:n,responseType:m,withCredentials:this.configuration.withCredentials,headers:i,observe:u,reportProgress:d})}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(v.eN),f.LFG(mt,8),f.LFG(Ue,8))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),ea=(()=>{class r{constructor(e,t,s){this.httpClient=e,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new v.WM,this.configuration=new Ue,s&&(this.configuration=s),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Rt}addToHttpParams(e,t,s){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,s):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,s){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(u=>e=this.addToHttpParamsRecursive(e,u,s));else if(t instanceof Date){if(null==s)throw Error("key may not be null if value is Date");e=e.append(s,t.toISOString().substr(0,10))}else Object.keys(t).forEach(u=>e=this.addToHttpParamsRecursive(e,t[u],null!=s?`${s}.${u}`:u));else{if(null==s)throw Error("key may not be null if value is not object or array");e=e.append(s,t)}return e}getAppsConfig(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/utils/getAppsConfig`;if(e){let h=new URL(c),m=h.pathname.split("/");m[1]="non",h.pathname=m.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getGuiConfiguration(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/utils/getGuiConfiguration`;if(e){let h=new URL(c),m=h.pathname.split("/");m[1]="non",h.pathname=m.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getNewGuiAlert(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/utils/getNewGuiAlert`;if(e){let h=new URL(c),m=h.pathname.split("/");m[1]="non",h.pathname=m.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getPerunRPCVersion(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["text/plain"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/`;if(e){let h=new URL(c),m=h.pathname.split("/");m[1]="non",h.pathname=m.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getPerunStatistics(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/utils/getPerunStatistics`;if(e){let h=new URL(c),m=h.pathname.split("/");m[1]="non",h.pathname=m.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getPerunStatus(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/utils/getPerunStatus`;if(e){let h=new URL(c),m=h.pathname.split("/");m[1]="non",h.pathname=m.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}getPerunSystemTimeInMillis(e=!1,t="body",s=!1,u){let l,d=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(d=d.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(d=d.set("Authorization","Bearer "+l));let n=u&&u.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(d=d.set("Accept",n));let i=u&&u.context;void 0===i&&(i=new v.qT);let o="json";n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob");let c=`${this.configuration.basePath}/json/utils/getPerunSystemTimeInMillis`;if(e){let h=new URL(c),m=h.pathname.split("/");m[1]="non",h.pathname=m.join("/"),c=h.toString()}return this.httpClient.get(c,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:s})}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(v.eN),f.LFG(mt,8),f.LFG(Ue,8))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Nf=(()=>{class r{constructor(e,t){if(e)throw new Error("ApiModule is already loaded. Import in your base AppModule only.");if(!t)throw new Error("You need to import the HttpClientModule in your AppModule! \nSee also https://github.com/angular/angular/issues/20575")}static forRoot(e){return{ngModule:r,providers:[{provide:Ue,useFactory:e}]}}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(r,12),f.LFG(v.eN,8))},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({}),r})();var ht=(()=>{return(r=ht||(ht={})).PERUNADMIN="PERUNADMIN",r.PERUNOBSERVER="PERUNOBSERVER",r.VOADMIN="VOADMIN",r.GROUPADMIN="GROUPADMIN",r.GROUPOBSERVER="GROUPOBSERVER",r.GROUPMEMBERSHIPMANAGER="GROUPMEMBERSHIPMANAGER",r.SELF="SELF",r.FACILITYADMIN="FACILITYADMIN",r.FACILITIYOBSERVER="FACILITYOBSERVER",r.RESOURCEADMIN="RESOURCEADMIN",r.RESOURCESELFSERVICE="RESOURCESELFSERVICE",r.REGISTRAR="REGISTRAR",r.ENGINE="ENGINE",r.RPC="RPC",r.NOTIFICATIONS="NOTIFICATIONS",r.SERVICEUSER="SERVICEUSER",r.SPONSOR="SPONSOR",r.VOOBSERVER="VOOBSERVER",r.TOPGROUPCREATOR="TOPGROUPCREATOR",r.SECURITYADMIN="SECURITYADMIN",r.CABINETADMIN="CABINETADMIN",r.UNKNOWNROLENAME="UNKNOWNROLENAME",r.AUDITCONSUMERADMIN="AUDITCONSUMERADMIN",r.UNKNOWN="UNKNOWN",r.MEMBERSHIP="MEMBERSHIP",ht;var r})();let Is=(()=>{class r{constructor(e){this.authzSevice=e,this.principalRoles=new Set,this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[],this.sortRoles=(t,s)=>t.roleName>s.roleName?1:t.roleName{this.authzSevice.getAllRolesManagementRules().subscribe(s=>{this.allRolesManagementRules=s,e()},s=>t(s))})}assignAvailableRoles(e,t){this.allRolesManagementRules.forEach(s=>{s.primaryObject===t&&e.push(s)}),e.sort(this.sortRoles),"Vo"===t&&this.voCustomSort(e)}isManagerPagePrivileged(e){const t=[];let s=e.beanName;s.startsWith("Rich")&&(s=s.substring(4)),this.assignAvailableRoles(t,s);const u=new Map;this.setRolesAuthorization(t,e,u);for(const d of u.values())if(d.readAuth||d.manageAuth)return!0;return!1}setRolesAuthorization(e,t,s){for(const u of e){let d=[],l=[],n=[];for(const m of this.allRolesManagementRules)if(m.roleName===u.roleName){d=d.concat(m.privilegedRolesToRead),l=l.concat(m.privilegedRolesToManage);for(const g of Object.keys(m.entitiesToManage))n="User"===g?[g].concat(n):n.concat(g);break}const i=this.fetchAllRelatedObjects([t]),o=this.resolveAuthorization(d,i),c=this.resolveAuthorization(l,i);s.set(u.roleName,{readAuth:o,manageAuth:c,modes:n})}}initializeVariables(){this.principalRoles.clear(),this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}getPrimaryObjectOfRole(e){for(const t of this.allRolesManagementRules)if(t.roleName===e)return t.primaryObject;return""}getAllRules(){return this.allRolesManagementRules.sort(this.sortRoles)}getRuleForRole(e){return this.allRolesManagementRules.find(t=>t.roleName===e)}getAssignableRoleRules(e){const t=[],s=["UNKNOWN","RPC","NOTIFICATIONS","ENGINE","MFA","REGISTRAR","AUDITCONSUMERADMIN","SPONSORSHIP","MEMBERSHIP","SERVICEUSER","SELF","SECURITYADMIN"];return this.allRolesManagementRules.forEach(u=>{!s.includes(u.roleName)&&this.canManage(u)&&this.ruleHasMode(u,e)&&t.push(u)}),t.sort(this.sortRoles)}ruleHasMode(e,t){return Object.keys(e.entitiesToManage).map(s=>s.toUpperCase()).includes(t)}canManage(e){return e.privilegedRolesToManage.some(t=>this.principalRoles.has(Object.keys(t)[0]))}resolveAuthorization(e,t){for(const s of e){let u=!0;for(const d of Object.keys(s)){const l=s[d];if(null===l)this.principalRoles.has(d)||(u=!1);else if(t[l]){for(const n of t[l])if(!this.principalHasRole(d,l,n)){u=!1;break}}else u=!1;if(!u)break}if(u)return!0}return!1}getPerunPolicy(e){for(const t of this.perunPolicies)if(t.policyName===e)return t;return null}fetchAllRelatedObjects(e){const t={};for(const s of e){let u=s.beanName;switch(s.beanName.startsWith("Rich")&&(u=s.beanName.substring(4)),t[u]?t[u].push(s.id):t[u]=[s.id],u){case"Member":t.User?t.User.push(s.userId):t.User=[s.userId],t.Vo?t.Vo.push(s.voId):t.Vo=[s.voId];break;case"Group":case"ResourceTag":t.Vo?t.Vo.push(s.voId):t.Vo=[s.voId];break;case"Resource":t.Facility?t.Facility.push(s.facilityId):t.Facility=[s.facilityId],t.Vo?t.Vo.push(s.voId):t.Vo=[s.voId]}}return t}fetchPolicyWithAllIncludedPolicies(e){const t=new Map;let s=[];for(s.push(e);0!==s.length;){const d=s.shift();if(t.has(d))continue;const l=this.getPerunPolicy(d);if(!l)return[];t.set(d,l),s=s.concat(l.includePolicies)}const u=[];for(const d of t.values())u.push(d);return u}voCustomSort(e){for(let t=0;t{(0,Xn.Xf)(r()).subscribe(a)})}var Vu=E(9635),en=E(2843),xr=E(515),wt=E(727),Ui=E(4482),tn=E(5403);function Wa(){return(0,Ui.e)((r,a)=>{let e=null;r._refCount++;const t=(0,tn.x)(a,void 0,void 0,void 0,()=>{if(!r||r._refCount<=0||0<--r._refCount)return void(e=null);const s=r._connection,u=e;e=null,s&&(!u||s===u)&&s.unsubscribe(),a.unsubscribe()});r.subscribe(t),t.closed||(e=r.connect())})}class mc extends Fi.y{constructor(a,e){super(),this.source=a,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,(0,Ui.A)(a)&&(this.lift=a.lift)}_subscribe(a){return this.getSubject().subscribe(a)}getSubject(){const a=this._subject;return(!a||a.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:a}=this;this._subject=this._connection=null,a?.unsubscribe()}connect(){let a=this._connection;if(!a){a=this._connection=new wt.w0;const e=this.getSubject();a.add(this.source.subscribe((0,tn.x)(e,void 0,()=>{this._teardown(),e.complete()},t=>{this._teardown(),e.error(t)},()=>this._teardown()))),a.closed&&(this._connection=null,a=wt.w0.EMPTY)}return a}refCount(){return Wa()(this)}}var pt=E(4004),bt=E(3900),qt=E(5698),qf=E(3269);function si(...r){const a=(0,qf.yG)(r);return(0,Ui.e)((e,t)=>{(a?(0,na.z)(r,e,a):(0,na.z)(r,e)).subscribe(t)})}var Vt=E(5577),Sn=E(590),un=E(4351),jt=E(8505),Bt=E(262);function P(r,a,e,t,s){return(u,d)=>{let l=e,n=a,i=0;u.subscribe((0,tn.x)(d,o=>{const c=i++;n=l?r(n,o,c):(l=!0,o),t&&d.next(n)},s&&(()=>{l&&d.next(n),d.complete()})))}}function O(r,a){return(0,Ui.e)(P(r,a,arguments.length>=2,!0))}function I(r){return r<=0?()=>xr.E:(0,Ui.e)((a,e)=>{let t=[];a.subscribe((0,tn.x)(e,s=>{t.push(s),r{for(const s of t)e.next(s);e.complete()},void 0,()=>{t=null}))})}var j=E(8068),ne=E(6590),me=E(4671);function de(r,a){const e=arguments.length>=2;return t=>t.pipe(r?(0,ii.h)((s,u)=>r(s,u,t)):me.y,I(1),e?(0,ne.d)(a):(0,j.T)(()=>new ia.K))}var Nt=E(9718);function Et(r){return(0,Ui.e)((a,e)=>{try{a.subscribe(e)}finally{e.add(r)}})}var Pt=E(8189);const Le="primary";class ui{constructor(a){this.params=a||{}}has(a){return Object.prototype.hasOwnProperty.call(this.params,a)}get(a){if(this.has(a)){const e=this.params[a];return Array.isArray(e)?e[0]:e}return null}getAll(a){if(this.has(a)){const e=this.params[a];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Mt(r){return new ui(r)}function Ei(r,a,e){const t=e.path.split("/");if(t.length>r.length||"full"===e.pathMatch&&(a.hasChildren()||t.lengtht[u]===s)}return r===a}function er(r){return Array.prototype.concat.apply([],r)}function $t(r){return r.length>0?r[r.length-1]:null}function zt(r,a){for(const e in r)r.hasOwnProperty(e)&&a(r[e],e)}function Ci(r){return(0,f.CqO)(r)?r:(0,f.QGY)(r)?(0,Si.D)(Promise.resolve(r)):(0,ke.of)(r)}const Rx={exact:function Vi(r,a,e){if(!Sr(r.segments,a.segments)||!hn(r.segments,a.segments,e)||r.numberOfChildren!==a.numberOfChildren)return!1;for(const t in a.children)if(!r.children[t]||!Vi(r.children[t],a.children[t],e))return!1;return!0},subset:Ou},zf={exact:function gc(r,a){return et(r,a)},subset:function Tr(r,a){return Object.keys(a).length<=Object.keys(r).length&&Object.keys(a).every(e=>ra(r[e],a[e]))},ignored:()=>!0};function zC(r,a,e){return Rx[e.paths](r.root,a.root,e.matrixParams)&&zf[e.queryParams](r.queryParams,a.queryParams)&&!("exact"===e.fragment&&r.fragment!==a.fragment)}function Ou(r,a,e){return $a(r,a,a.segments,e)}function $a(r,a,e,t){if(r.segments.length>e.length){const s=r.segments.slice(0,e.length);return!(!Sr(s,e)||a.hasChildren()||!hn(s,e,t))}if(r.segments.length===e.length){if(!Sr(r.segments,e)||!hn(r.segments,e,t))return!1;for(const s in a.children)if(!r.children[s]||!Ou(r.children[s],a.children[s],t))return!1;return!0}{const s=e.slice(0,r.segments.length),u=e.slice(r.segments.length);return!!(Sr(r.segments,s)&&hn(r.segments,s,t)&&r.children[Le])&&$a(r.children[Le],a,u,t)}}function hn(r,a,e){return a.every((t,s)=>zf[e](r[s].parameters,t.parameters))}class Qa{constructor(a,e,t){this.root=a,this.queryParams=e,this.fragment=t}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Mt(this.queryParams)),this._queryParamMap}toString(){return WC.serialize(this)}}class gt{constructor(a,e){this.segments=a,this.children=e,this.parent=null,zt(e,(t,s)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Ls(this)}}class Bs{constructor(a,e){this.path=a,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Mt(this.parameters)),this._parameterMap}toString(){return $f(this)}}function Sr(r,a){return r.length===a.length&&r.every((e,t)=>e.path===a[t].path)}let ju=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=f.Yz7({token:r,factory:function(){return new Os},providedIn:"root"}),r})();class Os{parse(a){const e=new JC(a);return new Qa(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(a){const e=`/${Ya(a.root,!0)}`,t=function aa(r){const a=Object.keys(r).map(e=>{const t=r[e];return Array.isArray(t)?t.map(s=>`${js(e)}=${js(s)}`).join("&"):`${js(e)}=${js(t)}`}).filter(e=>!!e);return a.length?`?${a.join("&")}`:""}(a.queryParams);return`${e}${t}${"string"==typeof a.fragment?`#${function Gf(r){return encodeURI(r)}(a.fragment)}`:""}`}}const WC=new Os;function Ls(r){return r.segments.map(a=>$f(a)).join("/")}function Ya(r,a){if(!r.hasChildren())return Ls(r);if(a){const e=r.children[Le]?Ya(r.children[Le],!1):"",t=[];return zt(r.children,(s,u)=>{u!==Le&&t.push(`${u}:${Ya(s,!1)}`)}),t.length>0?`${e}(${t.join("//")})`:e}{const e=function Lu(r,a){let e=[];return zt(r.children,(t,s)=>{s===Le&&(e=e.concat(a(t,s)))}),zt(r.children,(t,s)=>{s!==Le&&(e=e.concat(a(t,s)))}),e}(r,(t,s)=>s===Le?[Ya(r.children[Le],!1)]:[`${s}:${Ya(t,!1)}`]);return 1===Object.keys(r.children).length&&null!=r.children[Le]?`${Ls(r)}/${e[0]}`:`${Ls(r)}/(${e.join("//")})`}}function Fu(r){return encodeURIComponent(r).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function js(r){return Fu(r).replace(/%3B/gi,";")}function _c(r){return Fu(r).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function jo(r){return decodeURIComponent(r)}function Wf(r){return jo(r.replace(/\+/g,"%20"))}function $f(r){return`${_c(r.path)}${function Ni(r){return Object.keys(r).map(a=>`;${_c(a)}=${_c(r[a])}`).join("")}(r.parameters)}`}const Kt=/^[^\/()?;=#]+/;function Fs(r){const a=r.match(Kt);return a?a[0]:""}const $C=/^[^=?&#]+/,QC=/^[^&#]+/;class JC{constructor(a){this.url=a,this.remaining=a}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new gt([],{}):new gt([],this.parseChildren())}parseQueryParams(){const a={};if(this.consumeOptional("?"))do{this.parseQueryParam(a)}while(this.consumeOptional("&"));return a}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const a=[];for(this.peekStartsWith("(")||a.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),a.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let t={};return this.peekStartsWith("(")&&(t=this.parseParens(!1)),(a.length>0||Object.keys(e).length>0)&&(t[Le]=new gt(a,e)),t}parseSegment(){const a=Fs(this.remaining);if(""===a&&this.peekStartsWith(";"))throw new f.vHH(4009,!1);return this.capture(a),new Bs(jo(a),this.parseMatrixParams())}parseMatrixParams(){const a={};for(;this.consumeOptional(";");)this.parseParam(a);return a}parseParam(a){const e=Fs(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const s=Fs(this.remaining);s&&(t=s,this.capture(t))}a[jo(e)]=jo(t)}parseQueryParam(a){const e=function Qf(r){const a=r.match($C);return a?a[0]:""}(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const d=function YC(r){const a=r.match(QC);return a?a[0]:""}(this.remaining);d&&(t=d,this.capture(t))}const s=Wf(e),u=Wf(t);if(a.hasOwnProperty(s)){let d=a[s];Array.isArray(d)||(d=[d],a[s]=d),d.push(u)}else a[s]=u}parseParens(a){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const t=Fs(this.remaining),s=this.remaining[t.length];if("/"!==s&&")"!==s&&";"!==s)throw new f.vHH(4010,!1);let u;t.indexOf(":")>-1?(u=t.slice(0,t.indexOf(":")),this.capture(u),this.capture(":")):a&&(u=Le);const d=this.parseChildren();e[u]=1===Object.keys(d).length?d[Le]:new gt([],d),this.consumeOptional("//")}return e}peekStartsWith(a){return this.remaining.startsWith(a)}consumeOptional(a){return!!this.peekStartsWith(a)&&(this.remaining=this.remaining.substring(a.length),!0)}capture(a){if(!this.consumeOptional(a))throw new f.vHH(4011,!1)}}function Fo(r){return r.segments.length>0?new gt([],{[Le]:r}):r}function Ja(r){const a={};for(const t of Object.keys(r.children)){const u=Ja(r.children[t]);(u.segments.length>0||u.hasChildren())&&(a[t]=u)}return function bc(r){if(1===r.numberOfChildren&&r.children[Le]){const a=r.children[Le];return new gt(r.segments.concat(a.segments),a.children)}return r}(new gt(r.segments,a))}function Er(r){return r instanceof Qa}function KC(r,a,e,t,s){if(0===e.length)return sa(a.root,a.root,a.root,t,s);const u=function ZC(r){if("string"==typeof r[0]&&1===r.length&&"/"===r[0])return new Jf(!0,0,r);let a=0,e=!1;const t=r.reduce((s,u,d)=>{if("object"==typeof u&&null!=u){if(u.outlets){const l={};return zt(u.outlets,(n,i)=>{l[i]="string"==typeof n?n.split("/"):n}),[...s,{outlets:l}]}if(u.segmentPath)return[...s,u.segmentPath]}return"string"!=typeof u?[...s,u]:0===d?(u.split("/").forEach((l,n)=>{0==n&&"."===l||(0==n&&""===l?e=!0:".."===l?a++:""!=l&&s.push(l))}),s):[...s,u]},[]);return new Jf(e,a,t)}(e);return u.toRoot()?sa(a.root,a.root,new gt([],{}),t,s):function d(n){const i=function Kf(r,a,e,t){if(r.isAbsolute)return new qs(a.root,!0,0);if(-1===t)return new qs(e,e===a.root,0);return function Uu(r,a,e){let t=r,s=a,u=e;for(;u>s;){if(u-=s,t=t.parent,!t)throw new f.vHH(4005,!1);s=t.segments.length}return new qs(t,!1,s-u)}(e,t+(Ns(r.commands[0])?0:1),r.numberOfDoubleDots)}(u,a,r.snapshot?._urlSegment,n),o=i.processChildren?Uo(i.segmentGroup,i.index,u.commands):vc(i.segmentGroup,i.index,u.commands);return sa(a.root,i.segmentGroup,o,t,s)}(r.snapshot?._lastPathIndex)}function Ns(r){return"object"==typeof r&&null!=r&&!r.outlets&&!r.segmentPath}function Mr(r){return"object"==typeof r&&null!=r&&r.outlets}function sa(r,a,e,t,s){let d,u={};t&&zt(t,(n,i)=>{u[i]=Array.isArray(n)?n.map(o=>`${o}`):`${n}`}),d=r===a?e:Yf(r,a,e);const l=Fo(Ja(d));return new Qa(l,u,s)}function Yf(r,a,e){const t={};return zt(r.children,(s,u)=>{t[u]=s===a?e:Yf(s,a,e)}),new gt(r.segments,t)}class Jf{constructor(a,e,t){if(this.isAbsolute=a,this.numberOfDoubleDots=e,this.commands=t,a&&t.length>0&&Ns(t[0]))throw new f.vHH(4003,!1);const s=t.find(Mr);if(s&&s!==$t(t))throw new f.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class qs{constructor(a,e,t){this.segmentGroup=a,this.processChildren=e,this.index=t}}function vc(r,a,e){if(r||(r=new gt([],{})),0===r.segments.length&&r.hasChildren())return Uo(r,a,e);const t=function No(r,a,e){let t=0,s=a;const u={match:!1,pathIndex:0,commandIndex:0};for(;s=e.length)return u;const d=r.segments[s],l=e[t];if(Mr(l))break;const n=`${l}`,i=t0&&void 0===n)break;if(n&&i&&"object"==typeof i&&void 0===i.outlets){if(!zs(n,i,d))return u;t+=2}else{if(!zs(n,{},d))return u;t++}s++}return{match:!0,pathIndex:s,commandIndex:t}}(r,a,e),s=e.slice(t.commandIndex);if(t.match&&t.pathIndex{"string"==typeof u&&(u=[u]),null!==u&&(s[d]=vc(r.children[d],a,u))}),zt(r.children,(u,d)=>{void 0===t[d]&&(s[d]=u)}),new gt(r.segments,s)}}function Nu(r,a,e){const t=r.segments.slice(0,a);let s=0;for(;s{"string"==typeof e&&(e=[e]),null!==e&&(a[t]=Nu(new gt([],{}),0,e))}),a}function Ac(r){const a={};return zt(r,(e,t)=>a[t]=`${e}`),a}function zs(r,a,e){return r==e.path&&et(a,e.parameters)}class la{constructor(a,e){this.id=a,this.url=e}}class xc extends la{constructor(a,e,t="imperative",s=null){super(a,e),this.type=0,this.navigationTrigger=t,this.restoredState=s}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Dr extends la{constructor(a,e,t){super(a,e),this.urlAfterRedirects=t,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Tc extends la{constructor(a,e,t,s){super(a,e),this.reason=t,this.code=s,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class En extends la{constructor(a,e,t,s){super(a,e),this.error=t,this.target=s,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class XC extends la{constructor(a,e,t,s){super(a,e),this.urlAfterRedirects=t,this.state=s,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Gs extends la{constructor(a,e,t,s){super(a,e),this.urlAfterRedirects=t,this.state=s,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class qu extends la{constructor(a,e,t,s,u){super(a,e),this.urlAfterRedirects=t,this.state=s,this.shouldActivate=u,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class zu extends la{constructor(a,e,t,s){super(a,e),this.urlAfterRedirects=t,this.state=s,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Sc extends la{constructor(a,e,t,s){super(a,e),this.urlAfterRedirects=t,this.state=s,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ec{constructor(a){this.route=a,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class ew{constructor(a){this.route=a,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Zf{constructor(a){this.snapshot=a,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Xf{constructor(a){this.snapshot=a,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class em{constructor(a){this.snapshot=a,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class tm{constructor(a){this.snapshot=a,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class im{constructor(a,e,t){this.routerEvent=a,this.position=e,this.anchor=t,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class zo{constructor(a){this._root=a}get root(){return this._root.value}parent(a){const e=this.pathFromRoot(a);return e.length>1?e[e.length-2]:null}children(a){const e=Gu(a,this._root);return e?e.children.map(t=>t.value):[]}firstChild(a){const e=Gu(a,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(a){const e=Dc(a,this._root);return e.length<2?[]:e[e.length-2].children.map(s=>s.value).filter(s=>s!==a)}pathFromRoot(a){return Dc(a,this._root).map(e=>e.value)}}function Gu(r,a){if(r===a.value)return a;for(const e of a.children){const t=Gu(r,e);if(t)return t}return null}function Dc(r,a){if(r===a.value)return[a];for(const e of a.children){const t=Dc(r,e);if(t.length)return t.unshift(a),t}return[]}class tr{constructor(a,e){this.value=a,this.children=e}toString(){return`TreeNode(${this.value})`}}function Mn(r){const a={};return r&&r.children.forEach(e=>a[e.value.outlet]=e),a}class nm extends zo{constructor(a,e){super(a),this.snapshot=e,ca(this,a)}toString(){return this.snapshot.toString()}}function Wu(r,a){const e=function $u(r,a){const d=new Rr([],{},{},"",{},Le,a,null,r.root,-1,{});return new Ka("",new tr(d,[]))}(r,a),t=new ki([new Bs("",{})]),s=new ki({}),u=new ki({}),d=new ki({}),l=new ki(""),n=new Hr(t,s,d,l,u,Le,a,e.root);return n.snapshot=e.root,new nm(new tr(n,[]),e)}class Hr{constructor(a,e,t,s,u,d,l,n){this.url=a,this.params=e,this.queryParams=t,this.fragment=s,this.data=u,this.outlet=d,this.component=l,this._futureSnapshot=n}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,pt.U)(a=>Mt(a)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,pt.U)(a=>Mt(a)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Qu(r,a="emptyOnly"){const e=r.pathFromRoot;let t=0;if("always"!==a)for(t=e.length-1;t>=1;){const s=e[t],u=e[t-1];if(s.routeConfig&&""===s.routeConfig.path)t--;else{if(u.component)break;t--}}return function Yu(r){return r.reduce((a,e)=>({params:{...a.params,...e.params},data:{...a.data,...e.data},resolve:{...e.data,...a.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(t))}class Rr{constructor(a,e,t,s,u,d,l,n,i,o,c,h){this.url=a,this.params=e,this.queryParams=t,this.fragment=s,this.data=u,this.outlet=d,this.component=l,this.routeConfig=n,this._urlSegment=i,this._lastPathIndex=o,this._correctedLastPathIndex=h??o,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Mt(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Mt(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Ka extends zo{constructor(a,e){super(e),this.url=a,ca(this,e)}toString(){return Ju(this._root)}}function ca(r,a){a.value._routerState=r,a.children.forEach(e=>ca(r,e))}function Ju(r){const a=r.children.length>0?` { ${r.children.map(Ju).join(", ")} } `:"";return`${r.value}${a}`}function Ws(r){if(r.snapshot){const a=r.snapshot,e=r._futureSnapshot;r.snapshot=e,et(a.queryParams,e.queryParams)||r.queryParams.next(e.queryParams),a.fragment!==e.fragment&&r.fragment.next(e.fragment),et(a.params,e.params)||r.params.next(e.params),function we(r,a){if(r.length!==a.length)return!1;for(let e=0;eet(e.parameters,a[t].parameters))}(r.url,a.url);return e&&!(!r.parent!=!a.parent)&&(!r.parent||da(r.parent,a.parent))}function $s(r,a,e){if(e&&r.shouldReuseRoute(a.value,e.value.snapshot)){const t=e.value;t._futureSnapshot=a.value;const s=function Ft(r,a,e){return a.children.map(t=>{for(const s of e.children)if(r.shouldReuseRoute(t.value,s.value.snapshot))return $s(r,t,s);return $s(r,t)})}(r,a,e);return new tr(t,s)}{if(r.shouldAttach(a.value)){const u=r.retrieve(a.value);if(null!==u){const d=u.route;return d.value._futureSnapshot=a.value,d.children=a.children.map(l=>$s(r,l)),d}}const t=function kx(r){return new Hr(new ki(r.url),new ki(r.params),new ki(r.queryParams),new ki(r.fragment),new ki(r.data),r.outlet,r.component,r)}(a.value),s=a.children.map(u=>$s(r,u));return new tr(t,s)}}const rm="ngNavigationCancelingError";function tw(r,a){const{redirectTo:e,navigationBehaviorOptions:t}=Er(a)?{redirectTo:a,navigationBehaviorOptions:void 0}:a,s=iw(!1,0,a);return s.url=e,s.navigationBehaviorOptions=t,s}function iw(r,a,e){const t=new Error("NavigationCancelingError: "+(r||""));return t[rm]=!0,t.cancellationCode=a,e&&(t.url=e),t}function nw(r){return rw(r)&&Er(r.url)}function rw(r){return r&&r[rm]}class Vx{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new Pr,this.attachRef=null}}let Pr=(()=>{class r{constructor(){this.contexts=new Map}onChildOutletCreated(e,t){const s=this.getOrCreateContext(e);s.outlet=t,this.contexts.set(e,s)}onChildOutletDestroyed(e){const t=this.getContext(e);t&&(t.outlet=null,t.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new Vx,this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const Ku=!1;let am=(()=>{class r{constructor(e,t,s,u,d){this.parentContexts=e,this.location=t,this.changeDetector=u,this.environmentInjector=d,this.activated=null,this._activatedRoute=null,this.activateEvents=new f.vpe,this.deactivateEvents=new f.vpe,this.attachEvents=new f.vpe,this.detachEvents=new f.vpe,this.name=s||Le,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.getContext(this.name)?.outlet===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new f.vHH(4012,Ku);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new f.vHH(4012,Ku);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new f.vHH(4012,Ku);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new f.vHH(4013,Ku);this._activatedRoute=e;const s=this.location,d=e._futureSnapshot.component,l=this.parentContexts.getOrCreateContext(this.name).children,n=new hi(e,l,s.injector);if(t&&function Zu(r){return!!r.resolveComponentFactory}(t)){const i=t.resolveComponentFactory(d);this.activated=s.createComponent(i,s.length,n)}else this.activated=s.createComponent(d,{index:s.length,injector:n,environmentInjector:t??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(Pr),f.Y36(f.s_b),f.$8M("name"),f.Y36(f.sBO),f.Y36(f.lqb))},r.\u0275dir=f.lG2({type:r,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),r})();class hi{constructor(a,e,t){this.route=a,this.childContexts=e,this.parent=t}get(a,e){return a===Hr?this.route:a===Pr?this.childContexts:this.parent.get(a,e)}}let Go=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275cmp=f.Xpm({type:r,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&f._UZ(0,"router-outlet")},dependencies:[am],encapsulation:2}),r})();function aw(r,a){return r.providers&&!r._injector&&(r._injector=(0,f.MMx)(r.providers,a,`Route: ${r.path}`)),r._injector??a}function Xu(r){const a=r.children&&r.children.map(Xu),e=a?{...r,children:a}:{...r};return!e.component&&!e.loadComponent&&(a||e.loadChildren)&&e.outlet&&e.outlet!==Le&&(e.component=Go),e}function Dn(r){return r.outlet||Le}function lw(r,a){const e=r.filter(t=>Dn(t)===a);return e.push(...r.filter(t=>Dn(t)!==a)),e}function eh(r){if(!r)return null;if(r.routeConfig?._injector)return r.routeConfig._injector;for(let a=r.parent;a;a=a.parent){const e=a.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class th{constructor(a,e,t,s){this.routeReuseStrategy=a,this.futureState=e,this.currState=t,this.forwardEvent=s}activate(a){const e=this.futureState._root,t=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,t,a),Ws(this.futureState.root),this.activateChildRoutes(e,t,a)}deactivateChildRoutes(a,e,t){const s=Mn(e);a.children.forEach(u=>{const d=u.value.outlet;this.deactivateRoutes(u,s[d],t),delete s[d]}),zt(s,(u,d)=>{this.deactivateRouteAndItsChildren(u,t)})}deactivateRoutes(a,e,t){const s=a.value,u=e?e.value:null;if(s===u)if(s.component){const d=t.getContext(s.outlet);d&&this.deactivateChildRoutes(a,e,d.children)}else this.deactivateChildRoutes(a,e,t);else u&&this.deactivateRouteAndItsChildren(e,t)}deactivateRouteAndItsChildren(a,e){a.value.component&&this.routeReuseStrategy.shouldDetach(a.value.snapshot)?this.detachAndStoreRouteSubtree(a,e):this.deactivateRouteAndOutlet(a,e)}detachAndStoreRouteSubtree(a,e){const t=e.getContext(a.value.outlet),s=t&&a.value.component?t.children:e,u=Mn(a);for(const d of Object.keys(u))this.deactivateRouteAndItsChildren(u[d],s);if(t&&t.outlet){const d=t.outlet.detach(),l=t.children.onOutletDeactivated();this.routeReuseStrategy.store(a.value.snapshot,{componentRef:d,route:a,contexts:l})}}deactivateRouteAndOutlet(a,e){const t=e.getContext(a.value.outlet),s=t&&a.value.component?t.children:e,u=Mn(a);for(const d of Object.keys(u))this.deactivateRouteAndItsChildren(u[d],s);t&&t.outlet&&(t.outlet.deactivate(),t.children.onOutletDeactivated(),t.attachRef=null,t.resolver=null,t.route=null)}activateChildRoutes(a,e,t){const s=Mn(e);a.children.forEach(u=>{this.activateRoutes(u,s[u.value.outlet],t),this.forwardEvent(new tm(u.value.snapshot))}),a.children.length&&this.forwardEvent(new Xf(a.value.snapshot))}activateRoutes(a,e,t){const s=a.value,u=e?e.value:null;if(Ws(s),s===u)if(s.component){const d=t.getOrCreateContext(s.outlet);this.activateChildRoutes(a,e,d.children)}else this.activateChildRoutes(a,e,t);else if(s.component){const d=t.getOrCreateContext(s.outlet);if(this.routeReuseStrategy.shouldAttach(s.snapshot)){const l=this.routeReuseStrategy.retrieve(s.snapshot);this.routeReuseStrategy.store(s.snapshot,null),d.children.onOutletReAttached(l.contexts),d.attachRef=l.componentRef,d.route=l.route.value,d.outlet&&d.outlet.attach(l.componentRef,l.route.value),Ws(l.route.value),this.activateChildRoutes(a,null,d.children)}else{const l=eh(s.snapshot),n=l?.get(f._Vd)??null;d.attachRef=null,d.route=s,d.resolver=n,d.injector=l,d.outlet&&d.outlet.activateWith(s,d.injector),this.activateChildRoutes(a,null,d.children)}}else this.activateChildRoutes(a,null,t)}}class Za{constructor(a){this.path=a,this.route=this.path[this.path.length-1]}}class ih{constructor(a,e){this.component=a,this.route=e}}function sm(r,a,e){const t=r._root;return Ys(t,a?a._root:null,e,[t.value])}function Hc(r,a,e){return(eh(a)??e).get(r)}function Ys(r,a,e,t,s={canDeactivateChecks:[],canActivateChecks:[]}){const u=Mn(a);return r.children.forEach(d=>{(function dw(r,a,e,t,s={canDeactivateChecks:[],canActivateChecks:[]}){const u=r.value,d=a?a.value:null,l=e?e.getContext(r.value.outlet):null;if(d&&u.routeConfig===d.routeConfig){const n=function uw(r,a,e){if("function"==typeof e)return e(r,a);switch(e){case"pathParamsChange":return!Sr(r.url,a.url);case"pathParamsOrQueryParamsChange":return!Sr(r.url,a.url)||!et(r.queryParams,a.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!da(r,a)||!et(r.queryParams,a.queryParams);default:return!da(r,a)}}(d,u,u.routeConfig.runGuardsAndResolvers);n?s.canActivateChecks.push(new Za(t)):(u.data=d.data,u._resolvedData=d._resolvedData),Ys(r,a,u.component?l?l.children:null:e,t,s),n&&l&&l.outlet&&l.outlet.isActivated&&s.canDeactivateChecks.push(new ih(l.outlet.component,d))}else d&&Js(a,l,s),s.canActivateChecks.push(new Za(t)),Ys(r,null,u.component?l?l.children:null:e,t,s)})(d,u[d.value.outlet],e,t.concat([d.value]),s),delete u[d.value.outlet]}),zt(u,(d,l)=>Js(d,e.getContext(l),s)),s}function Js(r,a,e){const t=Mn(r),s=r.value;zt(t,(u,d)=>{Js(u,s.component?a?a.children.getContext(d):null:a,e)}),e.canDeactivateChecks.push(new ih(s.component&&a&&a.outlet&&a.outlet.isActivated?a.outlet.component:null,s))}function Xa(r){return"function"==typeof r}function Ic(r){return r instanceof ia.K||"EmptyError"===r?.name}const ha=Symbol("INITIAL_VALUE");function Hn(){return(0,bt.w)(r=>(0,Lo.a)(r.map(a=>a.pipe((0,qt.q)(1),si(ha)))).pipe((0,pt.U)(a=>{for(const e of a)if(!0!==e){if(e===ha)return ha;if(!1===e||e instanceof Qa)return e}return!0}),(0,ii.h)(a=>a!==ha),(0,qt.q)(1)))}function kc(r){return(0,Vu.z)((0,jt.b)(a=>{if(Er(a))throw tw(0,a)}),(0,pt.U)(a=>!0===a))}const Vc={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function $o(r,a,e,t,s){const u=ah(r,a,e);return u.matched?function Xs(r,a,e,t){const s=a.canMatch;if(!s||0===s.length)return(0,ke.of)(!0);const u=s.map(d=>{const l=r.get(d),n=function hw(r){return r&&Xa(r.canMatch)}(l)?l.canMatch(a,e):l(a,e);return Ci(n)});return(0,ke.of)(u).pipe(Hn(),kc())}(t=aw(a,t),a,e).pipe((0,pt.U)(d=>!0===d?u:{...Vc})):(0,ke.of)(u)}function ah(r,a,e){if(""===a.path)return"full"===a.pathMatch&&(r.hasChildren()||e.length>0)?{...Vc}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const s=(a.matcher||Ei)(e,r,a);if(!s)return{...Vc};const u={};zt(s.posParams,(l,n)=>{u[n]=l.path});const d=s.consumed.length>0?{...u,...s.consumed[s.consumed.length-1].parameters}:u;return{matched:!0,consumedSegments:s.consumed,remainingSegments:e.slice(s.consumed.length),parameters:d,positionalParamSegments:s.posParams??{}}}function el(r,a,e,t,s="corrected"){if(e.length>0&&function dm(r,a,e){return e.some(t=>Oc(r,a,t)&&Dn(t)!==Le)}(r,e,t)){const d=new gt(a,function Bc(r,a,e,t){const s={};s[Le]=t,t._sourceSegment=r,t._segmentIndexShift=a.length;for(const u of e)if(""===u.path&&Dn(u)!==Le){const d=new gt([],{});d._sourceSegment=r,d._segmentIndexShift=a.length,s[Dn(u)]=d}return s}(r,a,t,new gt(e,r.children)));return d._sourceSegment=r,d._segmentIndexShift=a.length,{segmentGroup:d,slicedSegments:[]}}if(0===e.length&&function bw(r,a,e){return e.some(t=>Oc(r,a,t))}(r,e,t)){const d=new gt(r.segments,function tl(r,a,e,t,s,u){const d={};for(const l of t)if(Oc(r,e,l)&&!s[Dn(l)]){const n=new gt([],{});n._sourceSegment=r,n._segmentIndexShift="legacy"===u?r.segments.length:a.length,d[Dn(l)]=n}return{...s,...d}}(r,a,e,t,r.children,s));return d._sourceSegment=r,d._segmentIndexShift=a.length,{segmentGroup:d,slicedSegments:e}}const u=new gt(r.segments,r.children);return u._sourceSegment=r,u._segmentIndexShift=a.length,{segmentGroup:u,slicedSegments:e}}function Oc(r,a,e){return(!(r.hasChildren()||a.length>0)||"full"!==e.pathMatch)&&""===e.path}function eo(r,a,e,t){return!!(Dn(r)===t||t!==Le&&Oc(a,e,r))&&("**"===r.path||ah(a,r,e).matched)}function Qo(r,a,e){return 0===a.length&&!r.children[e]}const Lc=!1;class oh{constructor(a){this.segmentGroup=a||null}}class sh{constructor(a){this.urlTree=a}}function il(r){return(0,en._)(new oh(r))}function Cw(r){return(0,en._)(new sh(r))}class jc{constructor(a,e,t,s,u){this.injector=a,this.configLoader=e,this.urlSerializer=t,this.urlTree=s,this.config=u,this.allowRedirects=!0}apply(){const a=el(this.urlTree.root,[],[],this.config).segmentGroup,e=new gt(a.segments,a.children);return this.expandSegmentGroup(this.injector,this.config,e,Le).pipe((0,pt.U)(u=>this.createUrlTree(Ja(u),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,Bt.K)(u=>{if(u instanceof sh)return this.allowRedirects=!1,this.match(u.urlTree);throw u instanceof oh?this.noMatchError(u):u}))}match(a){return this.expandSegmentGroup(this.injector,this.config,a.root,Le).pipe((0,pt.U)(s=>this.createUrlTree(Ja(s),a.queryParams,a.fragment))).pipe((0,Bt.K)(s=>{throw s instanceof oh?this.noMatchError(s):s}))}noMatchError(a){return new f.vHH(4002,Lc)}createUrlTree(a,e,t){const s=Fo(a);return new Qa(s,e,t)}expandSegmentGroup(a,e,t,s){return 0===t.segments.length&&t.hasChildren()?this.expandChildren(a,e,t).pipe((0,pt.U)(u=>new gt([],u))):this.expandSegment(a,t,e,t.segments,s,!0)}expandChildren(a,e,t){const s=[];for(const u of Object.keys(t.children))"primary"===u?s.unshift(u):s.push(u);return(0,Si.D)(s).pipe((0,un.b)(u=>{const d=t.children[u],l=lw(e,u);return this.expandSegmentGroup(a,l,d,u).pipe((0,pt.U)(n=>({segment:n,outlet:u})))}),O((u,d)=>(u[d.outlet]=d.segment,u),{}),de())}expandSegment(a,e,t,s,u,d){return(0,Si.D)(t).pipe((0,un.b)(l=>this.expandSegmentAgainstRoute(a,e,t,l,s,u,d).pipe((0,Bt.K)(i=>{if(i instanceof oh)return(0,ke.of)(null);throw i}))),(0,Sn.P)(l=>!!l),(0,Bt.K)((l,n)=>{if(Ic(l))return Qo(e,s,u)?(0,ke.of)(new gt([],{})):il(e);throw l}))}expandSegmentAgainstRoute(a,e,t,s,u,d,l){return eo(s,e,u,d)?void 0===s.redirectTo?this.matchSegmentAgainstRoute(a,e,s,u,d):l&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(a,e,t,s,u,d):il(e):il(e)}expandSegmentAgainstRouteUsingRedirect(a,e,t,s,u,d){return"**"===s.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(a,t,s,d):this.expandRegularSegmentAgainstRouteUsingRedirect(a,e,t,s,u,d)}expandWildCardWithParamsAgainstRouteUsingRedirect(a,e,t,s){const u=this.applyRedirectCommands([],t.redirectTo,{});return t.redirectTo.startsWith("/")?Cw(u):this.lineralizeSegments(t,u).pipe((0,Vt.z)(d=>{const l=new gt(d,{});return this.expandSegment(a,l,e,d,s,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(a,e,t,s,u,d){const{matched:l,consumedSegments:n,remainingSegments:i,positionalParamSegments:o}=ah(e,s,u);if(!l)return il(e);const c=this.applyRedirectCommands(n,s.redirectTo,o);return s.redirectTo.startsWith("/")?Cw(c):this.lineralizeSegments(s,c).pipe((0,Vt.z)(h=>this.expandSegment(a,e,t,h.concat(i),d,!1)))}matchSegmentAgainstRoute(a,e,t,s,u){return"**"===t.path?(a=aw(t,a),t.loadChildren?(t._loadedRoutes?(0,ke.of)({routes:t._loadedRoutes,injector:t._loadedInjector}):this.configLoader.loadChildren(a,t)).pipe((0,pt.U)(l=>(t._loadedRoutes=l.routes,t._loadedInjector=l.injector,new gt(s,{})))):(0,ke.of)(new gt(s,{}))):$o(e,t,s,a).pipe((0,bt.w)(({matched:d,consumedSegments:l,remainingSegments:n})=>d?this.getChildConfig(a=t._injector??a,t,s).pipe((0,Vt.z)(o=>{const c=o.injector??a,h=o.routes,{segmentGroup:m,slicedSegments:g}=el(e,l,n,h),p=new gt(m.segments,m.children);if(0===g.length&&p.hasChildren())return this.expandChildren(c,h,p).pipe((0,pt.U)(Te=>new gt(l,Te)));if(0===h.length&&0===g.length)return(0,ke.of)(new gt(l,{}));const w=Dn(t)===u;return this.expandSegment(c,p,h,g,w?Le:u,!0).pipe((0,pt.U)(J=>new gt(l.concat(J.segments),J.children)))})):il(e)))}getChildConfig(a,e,t){return e.children?(0,ke.of)({routes:e.children,injector:a}):e.loadChildren?void 0!==e._loadedRoutes?(0,ke.of)({routes:e._loadedRoutes,injector:e._loadedInjector}):function _w(r,a,e,t){const s=a.canLoad;if(void 0===s||0===s.length)return(0,ke.of)(!0);const u=s.map(d=>{const l=r.get(d),n=function Ox(r){return r&&Xa(r.canLoad)}(l)?l.canLoad(a,e):l(a,e);return Ci(n)});return(0,ke.of)(u).pipe(Hn(),kc())}(a,e,t).pipe((0,Vt.z)(s=>s?this.configLoader.loadChildren(a,e).pipe((0,jt.b)(u=>{e._loadedRoutes=u.routes,e._loadedInjector=u.injector})):function yw(r){return(0,en._)(iw(Lc,3))}())):(0,ke.of)({routes:[],injector:a})}lineralizeSegments(a,e){let t=[],s=e.root;for(;;){if(t=t.concat(s.segments),0===s.numberOfChildren)return(0,ke.of)(t);if(s.numberOfChildren>1||!s.children[Le])return(0,en._)(new f.vHH(4e3,Lc));s=s.children[Le]}}applyRedirectCommands(a,e,t){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),a,t)}applyRedirectCreateUrlTree(a,e,t,s){const u=this.createSegmentGroup(a,e.root,t,s);return new Qa(u,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(a,e){const t={};return zt(a,(s,u)=>{if("string"==typeof s&&s.startsWith(":")){const l=s.substring(1);t[u]=e[l]}else t[u]=s}),t}createSegmentGroup(a,e,t,s){const u=this.createSegments(a,e.segments,t,s);let d={};return zt(e.children,(l,n)=>{d[n]=this.createSegmentGroup(a,l,t,s)}),new gt(u,d)}createSegments(a,e,t,s){return e.map(u=>u.path.startsWith(":")?this.findPosParam(a,u,s):this.findOrReturn(u,t))}findPosParam(a,e,t){const s=t[e.path.substring(1)];if(!s)throw new f.vHH(4001,Lc);return s}findOrReturn(a,e){let t=0;for(const s of e){if(s.path===a.path)return e.splice(t),s;t++}return a}}class hm{}class Fx{constructor(a,e,t,s,u,d,l,n){this.injector=a,this.rootComponentType=e,this.config=t,this.urlTree=s,this.url=u,this.paramsInheritanceStrategy=d,this.relativeLinkResolution=l,this.urlSerializer=n}recognize(){const a=el(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,a,Le).pipe((0,pt.U)(e=>{if(null===e)return null;const t=new Rr([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Le,this.rootComponentType,null,this.urlTree.root,-1,{}),s=new tr(t,e),u=new Ka(this.url,s);return this.inheritParamsAndData(u._root),u}))}inheritParamsAndData(a){const e=a.value,t=Qu(e,this.paramsInheritanceStrategy);e.params=Object.freeze(t.params),e.data=Object.freeze(t.data),a.children.forEach(s=>this.inheritParamsAndData(s))}processSegmentGroup(a,e,t,s){return 0===t.segments.length&&t.hasChildren()?this.processChildren(a,e,t):this.processSegment(a,e,t,t.segments,s)}processChildren(a,e,t){return(0,Si.D)(Object.keys(t.children)).pipe((0,un.b)(s=>{const u=t.children[s],d=lw(e,s);return this.processSegmentGroup(a,d,u,s)}),O((s,u)=>s&&u?(s.push(...u),s):null),function Ge(r,a=!1){return(0,Ui.e)((e,t)=>{let s=0;e.subscribe((0,tn.x)(t,u=>{const d=r(u,s++);(d||a)&&t.next(u),!d&&t.complete()}))})}(s=>null!==s),(0,ne.d)(null),de(),(0,pt.U)(s=>{if(null===s)return null;const u=nl(s);return function lh(r){r.sort((a,e)=>a.value.outlet===Le?-1:e.value.outlet===Le?1:a.value.outlet.localeCompare(e.value.outlet))}(u),u}))}processSegment(a,e,t,s,u){return(0,Si.D)(e).pipe((0,un.b)(d=>this.processSegmentAgainstRoute(d._injector??a,d,t,s,u)),(0,Sn.P)(d=>!!d),(0,Bt.K)(d=>{if(Ic(d))return Qo(t,s,u)?(0,ke.of)([]):(0,ke.of)(null);throw d}))}processSegmentAgainstRoute(a,e,t,s,u){if(e.redirectTo||!eo(e,t,s,u))return(0,ke.of)(null);let d;if("**"===e.path){const l=s.length>0?$t(s).parameters:{},n=mm(t)+s.length,i=new Rr(s,l,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,xw(e),Dn(e),e.component??e._loadedComponent??null,e,to(t),n,rl(e),n);d=(0,ke.of)({snapshot:i,consumedSegments:[],remainingSegments:[]})}else d=$o(t,e,s,a).pipe((0,pt.U)(({matched:l,consumedSegments:n,remainingSegments:i,parameters:o})=>{if(!l)return null;const c=mm(t)+n.length;return{snapshot:new Rr(n,o,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,xw(e),Dn(e),e.component??e._loadedComponent??null,e,to(t),c,rl(e),c),consumedSegments:n,remainingSegments:i}}));return d.pipe((0,bt.w)(l=>{if(null===l)return(0,ke.of)(null);const{snapshot:n,consumedSegments:i,remainingSegments:o}=l;a=e._injector??a;const c=e._loadedInjector??a,h=function Aw(r){return r.children?r.children:r.loadChildren?r._loadedRoutes:[]}(e),{segmentGroup:m,slicedSegments:g}=el(t,i,o,h.filter(w=>void 0===w.redirectTo),this.relativeLinkResolution);if(0===g.length&&m.hasChildren())return this.processChildren(c,h,m).pipe((0,pt.U)(w=>null===w?null:[new tr(n,w)]));if(0===h.length&&0===g.length)return(0,ke.of)([new tr(n,[])]);const p=Dn(e)===u;return this.processSegment(c,h,m,g,p?Le:u).pipe((0,pt.U)(w=>null===w?null:[new tr(n,w)]))}))}}function fm(r){const a=r.value.routeConfig;return a&&""===a.path&&void 0===a.redirectTo}function nl(r){const a=[],e=new Set;for(const t of r){if(!fm(t)){a.push(t);continue}const s=a.find(u=>t.value.routeConfig===u.value.routeConfig);void 0!==s?(s.children.push(...t.children),e.add(s)):a.push(t)}for(const t of e){const s=nl(t.children);a.push(new tr(t.value,s))}return a.filter(t=>!e.has(t))}function to(r){let a=r;for(;a._sourceSegment;)a=a._sourceSegment;return a}function mm(r){let a=r,e=a._segmentIndexShift??0;for(;a._sourceSegment;)a=a._sourceSegment,e+=a._segmentIndexShift??0;return e-1}function xw(r){return r.data||{}}function rl(r){return r.resolve||{}}const Uc=Symbol("RouteTitle");function Cm(r){return"string"==typeof r.title||null===r.title}function uh(r){return(0,bt.w)(a=>{const e=r(a);return e?(0,Si.D)(e).pipe((0,pt.U)(()=>a)):(0,ke.of)(a)})}let wm=(()=>{class r{buildTitle(e){let t,s=e.root;for(;void 0!==s;)t=this.getResolvedTitleForRoute(s)??t,s=s.children.find(u=>u.outlet===Le);return t}getResolvedTitleForRoute(e){return e.data[Uc]}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=f.Yz7({token:r,factory:function(){return(0,f.f3M)(ir)},providedIn:"root"}),r})(),ir=(()=>{class r extends wm{constructor(e){super(),this.title=e}updateTitle(e){const t=this.buildTitle(e);void 0!==t&&this.title.setTitle(t)}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(X))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();class Yo{}class Mw extends class Ew{shouldDetach(a){return!1}store(a,e){}shouldAttach(a){return!1}retrieve(a){return null}shouldReuseRoute(a,e){return a.routeConfig===e.routeConfig}}{}const hh=new f.OlP("",{providedIn:"root",factory:()=>({})}),ph=new f.OlP("ROUTES");let Nc=(()=>{class r{constructor(e,t){this.injector=e,this.compiler=t,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return(0,ke.of)(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const t=Ci(e.loadComponent()).pipe((0,jt.b)(u=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=u}),Et(()=>{this.componentLoaders.delete(e)})),s=new mc(t,()=>new He.x).pipe(Wa());return this.componentLoaders.set(e,s),s}loadChildren(e,t){if(this.childrenLoaders.get(t))return this.childrenLoaders.get(t);if(t._loadedRoutes)return(0,ke.of)({routes:t._loadedRoutes,injector:t._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(t);const u=this.loadModuleFactoryOrRoutes(t.loadChildren).pipe((0,pt.U)(l=>{this.onLoadEndListener&&this.onLoadEndListener(t);let n,i,o=!1;Array.isArray(l)?i=l:(n=l.create(e).injector,i=er(n.get(ph,[],f.XFs.Self|f.XFs.Optional)));return{routes:i.map(Xu),injector:n}}),Et(()=>{this.childrenLoaders.delete(t)})),d=new mc(u,()=>new He.x).pipe(Wa());return this.childrenLoaders.set(t,d),d}loadModuleFactoryOrRoutes(e){return Ci(e()).pipe((0,Vt.z)(t=>t instanceof f.YKP||Array.isArray(t)?(0,ke.of)(t):(0,Si.D)(this.compiler.compileModuleAsync(t))))}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(f.zs3),f.LFG(f.Sil))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();class Hw{}class Rw{shouldProcessUrl(a){return!0}extract(a){return a}merge(a,e){return a}}function Pw(r){throw r}function Ux(r,a,e){return a.parse("/")}const Iw={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},al={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function Rn(){const r=(0,f.f3M)(ju),a=(0,f.f3M)(Pr),e=(0,f.f3M)(M.Ye),t=(0,f.f3M)(f.zs3),s=(0,f.f3M)(f.Sil),u=(0,f.f3M)(ph,{optional:!0})??[],d=(0,f.f3M)(hh,{optional:!0})??{},l=(0,f.f3M)(ir),n=(0,f.f3M)(wm,{optional:!0}),i=(0,f.f3M)(Hw,{optional:!0}),o=(0,f.f3M)(Yo,{optional:!0}),c=new Qt(null,r,a,e,t,s,er(u));return i&&(c.urlHandlingStrategy=i),o&&(c.routeReuseStrategy=o),c.titleStrategy=n??l,function vm(r,a){r.errorHandler&&(a.errorHandler=r.errorHandler),r.malformedUriErrorHandler&&(a.malformedUriErrorHandler=r.malformedUriErrorHandler),r.onSameUrlNavigation&&(a.onSameUrlNavigation=r.onSameUrlNavigation),r.paramsInheritanceStrategy&&(a.paramsInheritanceStrategy=r.paramsInheritanceStrategy),r.relativeLinkResolution&&(a.relativeLinkResolution=r.relativeLinkResolution),r.urlUpdateStrategy&&(a.urlUpdateStrategy=r.urlUpdateStrategy),r.canceledNavigationResolution&&(a.canceledNavigationResolution=r.canceledNavigationResolution)}(d,c),c}let Qt=(()=>{class r{constructor(e,t,s,u,d,l,n){this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=s,this.location=u,this.config=n,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new He.x,this.errorHandler=Pw,this.malformedUriErrorHandler=Ux,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>(0,ke.of)(void 0),this.urlHandlingStrategy=new Rw,this.routeReuseStrategy=new Mw,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=d.get(Nc),this.configLoader.onLoadEndListener=h=>this.triggerEvent(new ew(h)),this.configLoader.onLoadStartListener=h=>this.triggerEvent(new Ec(h)),this.ngModule=d.get(f.h0i),this.console=d.get(f.c2e);const c=d.get(f.R0b);this.isNgZoneEnabled=c instanceof f.R0b&&f.R0b.isInAngularZone(),this.resetConfig(n),this.currentUrlTree=function Bu(){return new Qa(new gt([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=Wu(this.currentUrlTree,this.rootComponentType),this.transitions=new ki({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){return this.location.getState()?.\u0275routerPageId}setupNavigations(e){const t=this.events;return e.pipe((0,ii.h)(s=>0!==s.id),(0,pt.U)(s=>({...s,extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),(0,bt.w)(s=>{let u=!1,d=!1;return(0,ke.of)(s).pipe((0,jt.b)(l=>{this.currentNavigation={id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,bt.w)(l=>{const n=this.browserUrlTree.toString(),i=!this.navigated||l.extractedUrl.toString()!==n||n!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||i)&&this.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return fh(l.source)&&(this.browserUrlTree=l.extractedUrl),(0,ke.of)(l).pipe((0,bt.w)(c=>{const h=this.transitions.getValue();return t.next(new xc(c.id,this.serializeUrl(c.extractedUrl),c.source,c.restoredState)),h!==this.transitions.getValue()?xr.E:Promise.resolve(c)}),function um(r,a,e,t){return(0,bt.w)(s=>function vw(r,a,e,t,s){return new jc(r,a,e,t,s).apply()}(r,a,e,s.extractedUrl,t).pipe((0,pt.U)(u=>({...s,urlAfterRedirects:u}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,jt.b)(c=>{this.currentNavigation={...this.currentNavigation,finalUrl:c.urlAfterRedirects},s.urlAfterRedirects=c.urlAfterRedirects}),function dh(r,a,e,t,s,u){return(0,Vt.z)(d=>function pm(r,a,e,t,s,u,d="emptyOnly",l="legacy"){return new Fx(r,a,e,t,s,d,l,u).recognize().pipe((0,bt.w)(n=>null===n?function jx(r){return new Fi.y(a=>a.error(r))}(new hm):(0,ke.of)(n)))}(r,a,e,d.urlAfterRedirects,t.serialize(d.urlAfterRedirects),t,s,u).pipe((0,pt.U)(l=>({...d,targetSnapshot:l}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,jt.b)(c=>{if(s.targetSnapshot=c.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!c.extras.skipLocationChange){const m=this.urlHandlingStrategy.merge(c.urlAfterRedirects,c.rawUrl);this.setBrowserUrl(m,c)}this.browserUrlTree=c.urlAfterRedirects}const h=new XC(c.id,this.serializeUrl(c.extractedUrl),this.serializeUrl(c.urlAfterRedirects),c.targetSnapshot);t.next(h)}));if(i&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:h,extractedUrl:m,source:g,restoredState:p,extras:w}=l,R=new xc(h,this.serializeUrl(m),g,p);t.next(R);const J=Wu(m,this.rootComponentType).snapshot;return s={...l,targetSnapshot:J,urlAfterRedirects:m,extras:{...w,skipLocationChange:!1,replaceUrl:!1}},(0,ke.of)(s)}return this.rawUrlTree=l.rawUrl,l.resolve(null),xr.E}),(0,jt.b)(l=>{const n=new Gs(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(n)}),(0,pt.U)(l=>s={...l,guards:sm(l.targetSnapshot,l.currentSnapshot,this.rootContexts)}),function fw(r,a){return(0,Vt.z)(e=>{const{targetSnapshot:t,currentSnapshot:s,guards:{canActivateChecks:u,canDeactivateChecks:d}}=e;return 0===d.length&&0===u.length?(0,ke.of)({...e,guardsResult:!0}):function li(r,a,e,t){return(0,Si.D)(r).pipe((0,Vt.z)(s=>function gw(r,a,e,t,s){const u=a&&a.routeConfig?a.routeConfig.canDeactivate:null;if(!u||0===u.length)return(0,ke.of)(!0);const d=u.map(l=>{const n=Hc(l,a,s);return Ci(function Pc(r){return r&&Xa(r.canDeactivate)}(n)?n.canDeactivate(r,a,e,t):n(r,a,e,t)).pipe((0,Sn.P)())});return(0,ke.of)(d).pipe(Hn())}(s.component,s.route,e,a,t)),(0,Sn.P)(s=>!0!==s,!0))}(d,t,s,r).pipe((0,Vt.z)(l=>l&&function Rc(r){return"boolean"==typeof r}(l)?function lm(r,a,e,t){return(0,Si.D)(a).pipe((0,un.b)(s=>(0,na.z)(function rh(r,a){return null!==r&&a&&a(new Zf(r)),(0,ke.of)(!0)}(s.route.parent,t),function cm(r,a){return null!==r&&a&&a(new em(r)),(0,ke.of)(!0)}(s.route,t),function mw(r,a,e){const t=a[a.length-1],u=a.slice(0,a.length-1).reverse().map(d=>function cw(r){const a=r.routeConfig?r.routeConfig.canActivateChild:null;return a&&0!==a.length?{node:r,guards:a}:null}(d)).filter(d=>null!==d).map(d=>dn(()=>{const l=d.guards.map(n=>{const i=Hc(n,d.node,e);return Ci(function nh(r){return r&&Xa(r.canActivateChild)}(i)?i.canActivateChild(t,r):i(t,r)).pipe((0,Sn.P)())});return(0,ke.of)(l).pipe(Hn())}));return(0,ke.of)(u).pipe(Hn())}(r,s.path,e),function Zs(r,a,e){const t=a.routeConfig?a.routeConfig.canActivate:null;if(!t||0===t.length)return(0,ke.of)(!0);const s=t.map(u=>dn(()=>{const d=Hc(u,a,e);return Ci(function Ks(r){return r&&Xa(r.canActivate)}(d)?d.canActivate(a,r):d(a,r)).pipe((0,Sn.P)())}));return(0,ke.of)(s).pipe(Hn())}(r,s.route,e))),(0,Sn.P)(s=>!0!==s,!0))}(t,u,r,a):(0,ke.of)(l)),(0,pt.U)(l=>({...e,guardsResult:l})))})}(this.ngModule.injector,l=>this.triggerEvent(l)),(0,jt.b)(l=>{if(s.guardsResult=l.guardsResult,Er(l.guardsResult))throw tw(0,l.guardsResult);const n=new qu(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.triggerEvent(n)}),(0,ii.h)(l=>!!l.guardsResult||(this.restoreHistory(l),this.cancelNavigationTransition(l,"",3),!1)),uh(l=>{if(l.guards.canActivateChecks.length)return(0,ke.of)(l).pipe((0,jt.b)(n=>{const i=new zu(n.id,this.serializeUrl(n.extractedUrl),this.serializeUrl(n.urlAfterRedirects),n.targetSnapshot);this.triggerEvent(i)}),(0,bt.w)(n=>{let i=!1;return(0,ke.of)(n).pipe(function _m(r,a){return(0,Vt.z)(e=>{const{targetSnapshot:t,guards:{canActivateChecks:s}}=e;if(!s.length)return(0,ke.of)(e);let u=0;return(0,Si.D)(s).pipe((0,un.b)(d=>function bm(r,a,e,t){const s=r.routeConfig,u=r._resolve;return void 0!==s?.title&&!Cm(s)&&(u[Uc]=s.title),function io(r,a,e,t){const s=function Tw(r){return[...Object.keys(r),...Object.getOwnPropertySymbols(r)]}(r);if(0===s.length)return(0,ke.of)({});const u={};return(0,Si.D)(s).pipe((0,Vt.z)(d=>function Sw(r,a,e,t){const s=Hc(r,a,t);return Ci(s.resolve?s.resolve(a,e):s(a,e))}(r[d],a,e,t).pipe((0,Sn.P)(),(0,jt.b)(l=>{u[d]=l}))),I(1),(0,Nt.h)(u),(0,Bt.K)(d=>Ic(d)?xr.E:(0,en._)(d)))}(u,r,a,t).pipe((0,pt.U)(d=>(r._resolvedData=d,r.data=Qu(r,e).resolve,s&&Cm(s)&&(r.data[Uc]=s.title),null)))}(d.route,t,r,a)),(0,jt.b)(()=>u++),I(1),(0,Vt.z)(d=>u===s.length?(0,ke.of)(e):xr.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,jt.b)({next:()=>i=!0,complete:()=>{i||(this.restoreHistory(n),this.cancelNavigationTransition(n,"",2))}}))}),(0,jt.b)(n=>{const i=new Sc(n.id,this.serializeUrl(n.extractedUrl),this.serializeUrl(n.urlAfterRedirects),n.targetSnapshot);this.triggerEvent(i)}))}),uh(l=>{const n=i=>{const o=[];i.routeConfig?.loadComponent&&!i.routeConfig._loadedComponent&&o.push(this.configLoader.loadComponent(i.routeConfig).pipe((0,jt.b)(c=>{i.component=c}),(0,pt.U)(()=>{})));for(const c of i.children)o.push(...n(c));return o};return(0,Lo.a)(n(l.targetSnapshot.root)).pipe((0,ne.d)(),(0,qt.q)(1))}),uh(()=>this.afterPreactivation()),(0,pt.U)(l=>{const n=function Ix(r,a,e){const t=$s(r,a._root,e?e._root:void 0);return new nm(t,a)}(this.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return s={...l,targetRouterState:n}}),(0,jt.b)(l=>{this.currentUrlTree=l.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(l.urlAfterRedirects,l.rawUrl),this.routerState=l.targetRouterState,"deferred"===this.urlUpdateStrategy&&(l.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,l),this.browserUrlTree=l.urlAfterRedirects)}),((r,a,e)=>(0,pt.U)(t=>(new th(a,t.targetRouterState,t.currentRouterState,e).activate(r),t)))(this.rootContexts,this.routeReuseStrategy,l=>this.triggerEvent(l)),(0,jt.b)({next(){u=!0},complete(){u=!0}}),Et(()=>{u||d||this.cancelNavigationTransition(s,"",1),this.currentNavigation?.id===s.id&&(this.currentNavigation=null)}),(0,Bt.K)(l=>{if(d=!0,rw(l)){nw(l)||(this.navigated=!0,this.restoreHistory(s,!0));const n=new Tc(s.id,this.serializeUrl(s.extractedUrl),l.message,l.cancellationCode);if(t.next(n),nw(l)){const i=this.urlHandlingStrategy.merge(l.url,this.rawUrlTree),o={skipLocationChange:s.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||fh(s.source)};this.scheduleNavigation(i,"imperative",null,o,{resolve:s.resolve,reject:s.reject,promise:s.promise})}else s.resolve(!1)}else{this.restoreHistory(s,!0);const n=new En(s.id,this.serializeUrl(s.extractedUrl),l,s.targetSnapshot??void 0);t.next(n);try{s.resolve(this.errorHandler(l))}catch(i){s.reject(i)}}return xr.E}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next({...this.transitions.value,...e})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const t="popstate"===e.type?"popstate":"hashchange";"popstate"===t&&setTimeout(()=>{const s={replaceUrl:!0},u=e.state?.navigationId?e.state:null;if(u){const l={...u};delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(s.state=l)}const d=this.parseUrl(e.url);this.scheduleNavigation(d,t,u,s)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){this.config=e.map(Xu),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,t={}){const{relativeTo:s,queryParams:u,fragment:d,queryParamsHandling:l,preserveFragment:n}=t,i=s||this.routerState.root,o=n?this.currentUrlTree.fragment:d;let c=null;switch(l){case"merge":c={...this.currentUrlTree.queryParams,...u};break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=u||null}return null!==c&&(c=this.removeEmptyProps(c)),KC(i,this.currentUrlTree,e,c,o??null)}navigateByUrl(e,t={skipLocationChange:!1}){const s=Er(e)?e:this.parseUrl(e),u=this.urlHandlingStrategy.merge(s,this.rawUrlTree);return this.scheduleNavigation(u,"imperative",null,t)}navigate(e,t={skipLocationChange:!1}){return function Am(r){for(let a=0;a{const u=e[s];return null!=u&&(t[s]=u),t},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new Dr(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.titleStrategy?.updateTitle(this.routerState.snapshot),e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,t,s,u,d){if(this.disposed)return Promise.resolve(!1);let l,n,i;d?(l=d.resolve,n=d.reject,i=d.promise):i=new Promise((h,m)=>{l=h,n=m});const o=++this.navigationId;let c;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(s=this.location.getState()),c=s&&s.\u0275routerPageId?s.\u0275routerPageId:u.replaceUrl||u.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):c=0,this.setTransition({id:o,targetPageId:c,source:t,restoredState:s,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:u,resolve:l,reject:n,promise:i,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),i.catch(h=>Promise.reject(h))}setBrowserUrl(e,t){const s=this.urlSerializer.serialize(e),u={...t.extras.state,...this.generateNgRouterState(t.id,t.targetPageId)};this.location.isCurrentPathEqualTo(s)||t.extras.replaceUrl?this.location.replaceState(s,"",u):this.location.go(s,"",u)}restoreHistory(e,t=!1){if("computed"===this.canceledNavigationResolution){const s=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.currentNavigation?.finalUrl||0===s?this.currentUrlTree===this.currentNavigation?.finalUrl&&0===s&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(s)}else"replace"===this.canceledNavigationResolution&&(t&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,t,s){const u=new Tc(e.id,this.serializeUrl(e.extractedUrl),t,s);this.triggerEvent(u),e.resolve(!1)}generateNgRouterState(e,t){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:t}:{navigationId:e}}}return r.\u0275fac=function(e){f.$Z()},r.\u0275prov=f.Yz7({token:r,factory:function(){return Rn()},providedIn:"root"}),r})();function fh(r){return"imperative"!==r}let ol=(()=>{class r{constructor(e,t,s,u,d){this.router=e,this.route=t,this.tabIndexAttribute=s,this.renderer=u,this.el=d,this.commands=null,this.onChanges=new He.x,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(e){if(null!=this.tabIndexAttribute)return;const t=this.renderer,s=this.el.nativeElement;null!==e?t.setAttribute(s,"tabindex",e):t.removeAttribute(s,"tabindex")}ngOnChanges(e){this.onChanges.next(this)}set routerLink(e){null!=e?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const e={skipLocationChange:(0,f.D6c)(this.skipLocationChange),replaceUrl:(0,f.D6c)(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,e),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:(0,f.D6c)(this.preserveFragment)})}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(Qt),f.Y36(Hr),f.$8M("tabindex"),f.Y36(f.Qsj),f.Y36(f.SBq))},r.\u0275dir=f.lG2({type:r,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(e,t){1&e&&f.NdJ("click",function(){return t.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[f.TTD]}),r})(),mh=(()=>{class r{constructor(e,t,s){this.router=e,this.route=t,this.locationStrategy=s,this.commands=null,this.href=null,this.onChanges=new He.x,this.subscription=e.events.subscribe(u=>{u instanceof Dr&&this.updateTargetUrlAndHref()})}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:null}ngOnChanges(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(e,t,s,u,d){if(0!==e||t||s||u||d||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const l={skipLocationChange:(0,f.D6c)(this.skipLocationChange),replaceUrl:(0,f.D6c)(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,l),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:(0,f.D6c)(this.preserveFragment)})}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(Qt),f.Y36(Hr),f.Y36(M.S$))},r.\u0275dir=f.lG2({type:r,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,t){1&e&&f.NdJ("click",function(u){return t.onClick(u.button,u.ctrlKey,u.shiftKey,u.altKey,u.metaKey)}),2&e&&f.uIk("target",t.target)("href",t.href,f.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[f.TTD]}),r})();class zc{}let kw=(()=>{class r{constructor(e,t,s,u,d){this.router=e,this.injector=s,this.preloadingStrategy=u,this.loader=d}setUpPreloading(){this.subscription=this.router.events.pipe((0,ii.h)(e=>e instanceof Dr),(0,un.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,t){const s=[];for(const u of t){u.providers&&!u._injector&&(u._injector=(0,f.MMx)(u.providers,e,`Route: ${u.path}`));const d=u._injector??e,l=u._loadedInjector??d;u.loadChildren&&!u._loadedRoutes&&void 0===u.canLoad||u.loadComponent&&!u._loadedComponent?s.push(this.preloadConfig(d,u)):(u.children||u._loadedRoutes)&&s.push(this.processRoutes(l,u.children??u._loadedRoutes))}return(0,Si.D)(s).pipe((0,Pt.J)())}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>{let s;s=t.loadChildren&&void 0===t.canLoad?this.loader.loadChildren(e,t):(0,ke.of)(null);const u=s.pipe((0,Vt.z)(d=>null===d?(0,ke.of)(void 0):(t._loadedRoutes=d.routes,t._loadedInjector=d.injector,this.processRoutes(d.injector??e,d.routes))));if(t.loadComponent&&!t._loadedComponent){const d=this.loader.loadComponent(t);return(0,Si.D)([u,d]).pipe((0,Pt.J)())}return u})}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(Qt),f.LFG(f.Sil),f.LFG(f.lqb),f.LFG(zc),f.LFG(Nc))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac}),r})();const Vw=new f.OlP("");let Sm=(()=>{class r{constructor(e,t,s={}){this.router=e,this.viewportScroller=t,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration=s.scrollPositionRestoration||"disabled",s.anchorScrolling=s.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(e=>{e instanceof xc?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Dr&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof im&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,t){this.router.triggerEvent(new im(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return r.\u0275fac=function(e){f.$Z()},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac}),r})();const Em=new f.OlP("ROUTER_FORROOT_GUARD"),Mm=new f.OlP(""),Dm=[M.Ye,{provide:ju,useClass:Os},{provide:Qt,useFactory:Rn},Pr,{provide:Hr,useFactory:function Gc(r){return r.routerState.root},deps:[Qt]},Nc];function Hm(){return new f.PXZ("Router",Qt)}let Jo=(()=>{class r{constructor(e){}static forRoot(e,t){return{ngModule:r,providers:[Dm,[],Wc(e),{provide:Em,useFactory:Ow,deps:[[Qt,new f.FiY,new f.tp0]]},{provide:hh,useValue:t||{}},t?.useHash?{provide:M.S$,useClass:M.Do}:{provide:M.S$,useClass:M.b0},{provide:Vw,useFactory:()=>{const r=(0,f.f3M)(Qt),a=(0,f.f3M)(M.EM),e=(0,f.f3M)(hh);return e.scrollOffset&&a.setOffset(e.scrollOffset),new Sm(r,a,e)}},t?.preloadingStrategy?gh(t.preloadingStrategy):[],{provide:f.PXZ,multi:!0,useFactory:Hm},t?.initialNavigation?Lw(t):[],[{provide:Im,useFactory:Pm},{provide:f.tb,multi:!0,useExisting:Im}]]}}static forChild(e){return{ngModule:r,providers:[Wc(e)]}}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(Em,8))},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({}),r})();function Ow(r){return"guarded"}function Wc(r){return[{provide:ph,multi:!0,useValue:r}]}function Pm(){const r=(0,f.f3M)(f.zs3);return a=>{const e=r.get(f.z2F);if(a!==e.components[0])return;const t=r.get(Qt),s=r.get(km);1===r.get(Vm)&&t.initialNavigation(),r.get(Mm,null,f.XFs.Optional)?.setUpPreloading(),r.get(Vw,null,f.XFs.Optional)?.init(),t.resetRootComponentType(e.componentTypes[0]),s.next(),s.complete()}}const Im=new f.OlP("");function Lw(r){return["disabled"===r.initialNavigation?[{provide:f.ip1,multi:!0,useFactory:()=>{const r=(0,f.f3M)(Qt);return()=>{r.setUpLocationChangeListener()}}},{provide:Vm,useValue:2}]:[],"enabledBlocking"===r.initialNavigation?[{provide:Vm,useValue:0},{provide:f.ip1,multi:!0,deps:[f.zs3],useFactory:r=>{const a=r.get(M.V_,Promise.resolve(null));let e=!1;return()=>a.then(()=>new Promise(s=>{const u=r.get(Qt),d=r.get(km);(function t(s){r.get(Qt).events.pipe((0,ii.h)(d=>d instanceof Dr||d instanceof Tc||d instanceof En),(0,pt.U)(d=>d instanceof Dr||d instanceof Tc&&(0===d.code||1===d.code)&&null),(0,ii.h)(d=>null!==d),(0,qt.q)(1)).subscribe(()=>{s()})})(()=>{s(!0),e=!0}),u.afterPreactivation=()=>(s(!0),e||d.closed?(0,ke.of)(void 0):d),u.initialNavigation()}))}}]:[]]}const km=new f.OlP("",{factory:()=>new He.x}),Vm=new f.OlP("",{providedIn:"root",factory:()=>1});function gh(r){return[kw,{provide:Mm,useExisting:kw},{provide:zc,useExisting:r}]}let $c;try{$c=typeof Intl<"u"&&Intl.v8BreakIterator}catch{$c=!1}let no,Yt=(()=>{class r{constructor(e){this._platformId=e,this.isBrowser=this._platformId?(0,M.NF)(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&&!$c)&&typeof CSS<"u"&&!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 r.\u0275fac=function(e){return new(e||r)(f.LFG(f.Lbi))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const _h=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Qc(){if(no)return no;if("object"!=typeof document||!document)return no=new Set(_h),no;let r=document.createElement("input");return no=new Set(_h.filter(a=>(r.setAttribute("type",a),r.type===a))),no}let Yc,ll,fa,dl;function fn(r){return function Nw(){if(null==Yc&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Yc=!0}))}finally{Yc=Yc||!1}return Yc}()?r:!!r.capture}function ma(){if(null==fa){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return fa=!1,fa;if("scrollBehavior"in document.documentElement.style)fa=!0;else{const r=Element.prototype.scrollTo;fa=!!r&&!/\{\s*\[native code\]\s*\}/.test(r.toString())}}return fa}function cl(){if("object"!=typeof document||!document)return 0;if(null==ll){const r=document.createElement("div"),a=r.style;r.dir="rtl",a.width="1px",a.overflow="auto",a.visibility="hidden",a.pointerEvents="none",a.position="absolute";const e=document.createElement("div"),t=e.style;t.width="2px",t.height="1px",r.appendChild(e),document.body.appendChild(r),ll=0,0===r.scrollLeft&&(r.scrollLeft=1,ll=0===r.scrollLeft?1:2),r.remove()}return ll}function Kc(r){if(function Jc(){if(null==dl){const r=typeof document<"u"?document.head:null;dl=!(!r||!r.createShadowRoot&&!r.attachShadow)}return dl}()){const a=r.getRootNode?r.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&a instanceof ShadowRoot)return a}return null}function ul(){let r=typeof document<"u"&&document?document.activeElement:null;for(;r&&r.shadowRoot;){const a=r.shadowRoot.activeElement;if(a===r)break;r=a}return r}function Wi(r){return r.composedPath?r.composedPath()[0]:r.target}function Ir(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function Pn(r,...a){return a.length?a.some(e=>r[e]):r.altKey||r.shiftKey||r.ctrlKey||r.metaKey}var nd=E(8372);function rd(r){return(0,ii.h)((a,e)=>r<=e)}function ng(r,a=me.y){return r=r??uy,(0,Ui.e)((e,t)=>{let s,u=!0;e.subscribe((0,tn.x)(t,d=>{const l=a(d);(u||!r(s,l))&&(u=!1,s=l,t.next(d))}))})}function uy(r,a){return r===a}var rg=E(5032);function _t(r){return(0,Ui.e)((a,e)=>{(0,Xn.Xf)(r).subscribe((0,tn.x)(e,()=>e.complete(),rg.Z)),!e.closed&&a.subscribe(e)})}function Ye(r){return null!=r&&"false"!=`${r}`}function wi(r,a=0){return function ag(r){return!isNaN(parseFloat(r))&&!isNaN(Number(r))}(r)?Number(r):a}function ad(r){return Array.isArray(r)?r:[r]}function pi(r){return null==r?"":"string"==typeof r?r:`${r}px`}function Gt(r){return r instanceof f.SBq?r.nativeElement:r}let yh=(()=>{class r{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),og=(()=>{class r{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,t)=>this._cleanupObserver(t))}observe(e){const t=Gt(e);return new Fi.y(s=>{const d=this._observeElement(t).subscribe(s);return()=>{d.unsubscribe(),this._unobserveElement(t)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const t=new He.x,s=this._mutationObserverFactory.create(u=>t.next(u));s&&s.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:s,stream:t,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:t,stream:s}=this._observedElements.get(e);t&&t.disconnect(),s.complete(),this._observedElements.delete(e)}}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(yh))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),od=(()=>{class r{constructor(e,t,s){this._contentObserver=e,this._elementRef=t,this._ngZone=s,this.event=new f.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=Ye(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=wi(e),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe((0,nd.b)(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(og),f.Y36(f.SBq),f.Y36(f.R0b))},r.\u0275dir=f.lG2({type:r,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),r})(),ao=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({providers:[yh]}),r})();const ml=new Set;let Br,sg=(()=>{class r{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):lg}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function vh(r){if(!ml.has(r))try{Br||(Br=document.createElement("style"),Br.setAttribute("type","text/css"),document.head.appendChild(Br)),Br.sheet&&(Br.sheet.insertRule(`@media ${r} {body{ }}`,0),ml.add(r))}catch(a){console.error(a)}}(e),this._matchMedia(e)}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(Yt))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();function lg(r){return{matches:"all"===r||""===r,media:r,addListener:()=>{},removeListener:()=>{}}}let sd=(()=>{class r{constructor(e,t){this._mediaMatcher=e,this._zone=t,this._queries=new Map,this._destroySubject=new He.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return Xo(ad(e)).some(s=>this._registerQuery(s).mql.matches)}observe(e){const s=Xo(ad(e)).map(d=>this._registerQuery(d).observable);let u=(0,Lo.a)(s);return u=(0,na.z)(u.pipe((0,qt.q)(1)),u.pipe(rd(1),(0,nd.b)(0))),u.pipe((0,pt.U)(d=>{const l={matches:!1,breakpoints:{}};return d.forEach(({matches:n,query:i})=>{l.matches=l.matches||n,l.breakpoints[i]=n}),l}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const t=this._mediaMatcher.matchMedia(e),u={observable:new Fi.y(d=>{const l=n=>this._zone.run(()=>d.next(n));return t.addListener(l),()=>{t.removeListener(l)}}).pipe(si(t),(0,pt.U)(({matches:d})=>({query:e,matches:d})),_t(this._destroySubject)),mql:t};return this._queries.set(e,u),u}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(sg),f.LFG(f.R0b))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();function Xo(r){return r.map(a=>a.split(",")).reduce((a,e)=>a.concat(e)).map(a=>a.trim())}function gl(r,a){return(r.getAttribute(a)||"").match(/\S+/g)||[]}const xh="cdk-describedby-message",Th="cdk-describedby-host";let ld=0,dg=(()=>{class r{constructor(e,t){this._platform=t,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+ld++,this._document=e,this._id=(0,f.f3M)(f.AFp)+"-"+ld++}describe(e,t,s){if(!this._canBeDescribed(e,t))return;const u=cd(t,s);"string"!=typeof t?(ug(t,this._id),this._messageRegistry.set(u,{messageElement:t,referenceCount:0})):this._messageRegistry.has(u)||this._createMessageElement(t,s),this._isElementDescribedByMessage(e,u)||this._addMessageReference(e,u)}removeDescription(e,t,s){if(!t||!this._isElementNode(e))return;const u=cd(t,s);if(this._isElementDescribedByMessage(e,u)&&this._removeMessageReference(e,u),"string"==typeof t){const d=this._messageRegistry.get(u);d&&0===d.referenceCount&&this._deleteMessageElement(u)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const e=this._document.querySelectorAll(`[${Th}="${this._id}"]`);for(let t=0;t0!=s.indexOf(xh));e.setAttribute("aria-describedby",t.join(" "))}_addMessageReference(e,t){const s=this._messageRegistry.get(t);(function fy(r,a,e){const t=gl(r,a);t.some(s=>s.trim()==e.trim())||(t.push(e.trim()),r.setAttribute(a,t.join(" ")))})(e,"aria-describedby",s.messageElement.id),e.setAttribute(Th,this._id),s.referenceCount++}_removeMessageReference(e,t){const s=this._messageRegistry.get(t);s.referenceCount--,function my(r,a,e){const s=gl(r,a).filter(u=>u!=e.trim());s.length?r.setAttribute(a,s.join(" ")):r.removeAttribute(a)}(e,"aria-describedby",s.messageElement.id),e.removeAttribute(Th)}_isElementDescribedByMessage(e,t){const s=gl(e,"aria-describedby"),u=this._messageRegistry.get(t),d=u&&u.messageElement.id;return!!d&&-1!=s.indexOf(d)}_canBeDescribed(e,t){if(!this._isElementNode(e))return!1;if(t&&"object"==typeof t)return!0;const s=null==t?"":`${t}`.trim(),u=e.getAttribute("aria-label");return!(!s||u&&u.trim()===s)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(M.K0),f.LFG(Yt))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();function cd(r,a){return"string"==typeof r?`${a||""}/${r}`:r}function ug(r,a){r.id||(r.id=`${xh}-${a}-${ld++}`)}class Sh extends class gy{constructor(a){this._items=a,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new He.x,this._typeaheadSubscription=wt.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new He.x,this.change=new He.x,a instanceof f.n_E&&a.changes.subscribe(e=>{if(this._activeItem){const s=e.toArray().indexOf(this._activeItem);s>-1&&s!==this._activeItemIndex&&(this._activeItemIndex=s)}})}skipPredicate(a){return this._skipPredicateFn=a,this}withWrap(a=!0){return this._wrap=a,this}withVerticalOrientation(a=!0){return this._vertical=a,this}withHorizontalOrientation(a){return this._horizontal=a,this}withAllowedModifierKeys(a){return this._allowedModifierKeys=a,this}withTypeAhead(a=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,jt.b)(e=>this._pressedLetters.push(e)),(0,nd.b)(a),(0,ii.h)(()=>this._pressedLetters.length>0),(0,pt.U)(()=>this._pressedLetters.join(""))).subscribe(e=>{const t=this._getItemsArray();for(let s=1;s!a[u]||this._allowedModifierKeys.indexOf(u)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&s){this.setNextItemActive();break}return;case 38:if(this._vertical&&s){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&s){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&s){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&s){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&s){this.setLastItemActive();break}return;default:return void((s||Pn(a,"shiftKey"))&&(a.key&&1===a.key.length?this._letterKeyStream.next(a.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],a.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(a){const e=this._getItemsArray(),t="number"==typeof a?a:e.indexOf(a);this._activeItem=e[t]??null,this._activeItemIndex=t}_setActiveItemByDelta(a){this._wrap?this._setActiveInWrapMode(a):this._setActiveInDefaultMode(a)}_setActiveInWrapMode(a){const e=this._getItemsArray();for(let t=1;t<=e.length;t++){const s=(this._activeItemIndex+a*t+e.length)%e.length;if(!this._skipPredicateFn(e[s]))return void this.setActiveItem(s)}}_setActiveInDefaultMode(a){this._setActiveItemByIndex(this._activeItemIndex+a,a)}_setActiveItemByIndex(a,e){const t=this._getItemsArray();if(t[a]){for(;this._skipPredicateFn(t[a]);)if(!t[a+=e])return;this.setActiveItem(a)}}_getItemsArray(){return this._items instanceof f.n_E?this._items.toArray():this._items}}{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(a){return this._origin=a,this}setActiveItem(a){super.setActiveItem(a),this.activeItem&&this.activeItem.focus(this._origin)}}let dd=(()=>{class r{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function Cy(r){return!!(r.offsetWidth||r.offsetHeight||"function"==typeof r.getClientRects&&r.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const t=function by(r){try{return r.frameElement}catch{return null}}(function xy(r){return r.ownerDocument&&r.ownerDocument.defaultView||window}(e));if(t&&(-1===Eh(t)||!this.isVisible(t)))return!1;let s=e.nodeName.toLowerCase(),u=Eh(e);return e.hasAttribute("contenteditable")?-1!==u:!("iframe"===s||"object"===s||this._platform.WEBKIT&&this._platform.IOS&&!function pg(r){let a=r.nodeName.toLowerCase(),e="input"===a&&r.type;return"text"===e||"password"===e||"select"===a||"textarea"===a}(e))&&("audio"===s?!!e.hasAttribute("controls")&&-1!==u:"video"===s?-1!==u&&(null!==u||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,t){return function fg(r){return!function hg(r){return function vy(r){return"input"==r.nodeName.toLowerCase()}(r)&&"hidden"==r.type}(r)&&(function wy(r){let a=r.nodeName.toLowerCase();return"input"===a||"select"===a||"button"===a||"textarea"===a}(r)||function yy(r){return function Ay(r){return"a"==r.nodeName.toLowerCase()}(r)&&r.hasAttribute("href")}(r)||r.hasAttribute("contenteditable")||ct(r))}(e)&&!this.isDisabled(e)&&(t?.ignoreVisibility||this.isVisible(e))}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(Yt))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();function ct(r){if(!r.hasAttribute("tabindex")||void 0===r.tabIndex)return!1;let a=r.getAttribute("tabindex");return!(!a||isNaN(parseInt(a,10)))}function Eh(r){if(!ct(r))return null;const a=parseInt(r.getAttribute("tabindex")||"",10);return isNaN(a)?-1:a}class Ty{constructor(a,e,t,s,u=!1){this._element=a,this._checker=e,this._ngZone=t,this._document=s,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,u||this.attachAnchors()}get enabled(){return this._enabled}set enabled(a){this._enabled=a,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(a,this._startAnchor),this._toggleAnchorTabIndex(a,this._endAnchor))}destroy(){const a=this._startAnchor,e=this._endAnchor;a&&(a.removeEventListener("focus",this.startAnchorListener),a.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),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(a){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(a)))})}focusFirstTabbableElementWhenReady(a){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(a)))})}focusLastTabbableElementWhenReady(a){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(a)))})}_getRegionBoundary(a){const e=this._element.querySelectorAll(`[cdk-focus-region-${a}], [cdkFocusRegion${a}], [cdk-focus-${a}]`);return"start"==a?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(a){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const t=this._getFirstTabbableElement(e);return t?.focus(a),!!t}return e.focus(a),!0}return this.focusFirstTabbableElement(a)}focusFirstTabbableElement(a){const e=this._getRegionBoundary("start");return e&&e.focus(a),!!e}focusLastTabbableElement(a){const e=this._getRegionBoundary("end");return e&&e.focus(a),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(a){if(this._checker.isFocusable(a)&&this._checker.isTabbable(a))return a;const e=a.children;for(let t=0;t=0;t--){const s=e[t].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[t]):null;if(s)return s}return null}_createAnchor(){const a=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,a),a.classList.add("cdk-visually-hidden"),a.classList.add("cdk-focus-trap-anchor"),a.setAttribute("aria-hidden","true"),a}_toggleAnchorTabIndex(a,e){a?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(a){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(a,this._startAnchor),this._toggleAnchorTabIndex(a,this._endAnchor))}_executeOnStable(a){this._ngZone.isStable?a():this._ngZone.onStable.pipe((0,qt.q)(1)).subscribe(a)}}let ud=(()=>{class r{constructor(e,t,s){this._checker=e,this._ngZone=t,this._document=s}create(e,t=!1){return new Ty(e,this._checker,this._ngZone,this._document,t)}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(dd),f.LFG(f.R0b),f.LFG(M.K0))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();function _l(r){return 0===r.buttons||0===r.offsetX&&0===r.offsetY}function rr(r){const a=r.touches&&r.touches[0]||r.changedTouches&&r.changedTouches[0];return!(!a||-1!==a.identifier||null!=a.radiusX&&1!==a.radiusX||null!=a.radiusY&&1!==a.radiusY)}const My=new f.OlP("cdk-input-modality-detector-options"),Mh={ignoreKeys:[18,17,224,91,16]},es=fn({passive:!0,capture:!0});let zT=(()=>{class r{constructor(e,t,s,u){this._platform=e,this._mostRecentTarget=null,this._modality=new ki(null),this._lastTouchMs=0,this._onKeydown=d=>{this._options?.ignoreKeys?.some(l=>l===d.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Wi(d))},this._onMousedown=d=>{Date.now()-this._lastTouchMs<650||(this._modality.next(_l(d)?"keyboard":"mouse"),this._mostRecentTarget=Wi(d))},this._onTouchstart=d=>{rr(d)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Wi(d))},this._options={...Mh,...u},this.modalityDetected=this._modality.pipe(rd(1)),this.modalityChanged=this.modalityDetected.pipe(ng()),e.isBrowser&&t.runOutsideAngular(()=>{s.addEventListener("keydown",this._onKeydown,es),s.addEventListener("mousedown",this._onMousedown,es),s.addEventListener("touchstart",this._onTouchstart,es)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,es),document.removeEventListener("mousedown",this._onMousedown,es),document.removeEventListener("touchstart",this._onTouchstart,es))}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(Yt),f.LFG(f.R0b),f.LFG(M.K0),f.LFG(My,8))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const Hy=new f.OlP("cdk-focus-monitor-default-options"),Or=fn({passive:!0,capture:!0});let In=(()=>{class r{constructor(e,t,s,u,d){this._ngZone=e,this._platform=t,this._inputModalityDetector=s,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new He.x,this._rootNodeFocusAndBlurListener=l=>{for(let i=Wi(l);i;i=i.parentElement)"focus"===l.type?this._onFocus(l,i):this._onBlur(l,i)},this._document=u,this._detectionMode=d?.detectionMode||0}monitor(e,t=!1){const s=Gt(e);if(!this._platform.isBrowser||1!==s.nodeType)return(0,ke.of)(null);const u=Kc(s)||this._getDocument(),d=this._elementInfo.get(s);if(d)return t&&(d.checkChildren=!0),d.subject;const l={checkChildren:t,subject:new He.x,rootNode:u};return this._elementInfo.set(s,l),this._registerGlobalListeners(l),l.subject}stopMonitoring(e){const t=Gt(e),s=this._elementInfo.get(t);s&&(s.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(s))}focusVia(e,t,s){const u=Gt(e);u===this._getDocument().activeElement?this._getClosestElementsInfo(u).forEach(([l,n])=>this._originChanged(l,t,n)):(this._setOrigin(t),"function"==typeof u.focus&&u.focus(s))}ngOnDestroy(){this._elementInfo.forEach((e,t)=>this.stopMonitoring(t))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,t){e.classList.toggle("cdk-focused",!!t),e.classList.toggle("cdk-touch-focused","touch"===t),e.classList.toggle("cdk-keyboard-focused","keyboard"===t),e.classList.toggle("cdk-mouse-focused","mouse"===t),e.classList.toggle("cdk-program-focused","program"===t)}_setOrigin(e,t=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&t,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,t){const s=this._elementInfo.get(t),u=Wi(e);!s||!s.checkChildren&&t!==u||this._originChanged(t,this._getFocusOrigin(u),s)}_onBlur(e,t){const s=this._elementInfo.get(t);!s||s.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(s,null))}_emitOrigin(e,t){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(t))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const t=e.rootNode,s=this._rootNodeFocusListenerCount.get(t)||0;s||this._ngZone.runOutsideAngular(()=>{t.addEventListener("focus",this._rootNodeFocusAndBlurListener,Or),t.addEventListener("blur",this._rootNodeFocusAndBlurListener,Or)}),this._rootNodeFocusListenerCount.set(t,s+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(_t(this._stopInputModalityDetector)).subscribe(u=>{this._setOrigin(u,!0)}))}_removeGlobalListeners(e){const t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){const s=this._rootNodeFocusListenerCount.get(t);s>1?this._rootNodeFocusListenerCount.set(t,s-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Or),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Or),this._rootNodeFocusListenerCount.delete(t))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,t,s){this._setClasses(e,t),this._emitOrigin(s,t),this._lastFocusOrigin=t}_getClosestElementsInfo(e){const t=[];return this._elementInfo.forEach((s,u)=>{(u===e||s.checkChildren&&u.contains(e))&&t.push([u,s])}),t}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:t,mostRecentModality:s}=this._inputModalityDetector;if("mouse"!==s||!t||t===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const u=e.labels;if(u)for(let d=0;d{class r{constructor(e,t){this._platform=e,this._document=t,this._breakpointSubscription=(0,f.f3M)(sd).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const t=this._document.defaultView||window,s=t&&t.getComputedStyle?t.getComputedStyle(e):null,u=(s&&s.backgroundColor||"").replace(/ /g,"");switch(e.remove(),u){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(pd,bl,mg),this._hasCheckedHighContrastMode=!0;const t=this.getHighContrastMode();1===t?e.add(pd,bl):2===t&&e.add(pd,mg)}}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(Yt),f.LFG(M.K0))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Cl=(()=>{class r{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(gg))},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[ao]}),r})();const Py=new f.OlP("cdk-dir-doc",{providedIn:"root",factory:function Iy(){return(0,f.f3M)(M.K0)}}),ky=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let mn=(()=>{class r{constructor(e){if(this.value="ltr",this.change=new f.vpe,e){const s=e.documentElement?e.documentElement.dir:null;this.value=function _g(r){const a=r?.toLowerCase()||"";return"auto"===a&&typeof navigator<"u"&&navigator?.language?ky.test(navigator.language)?"rtl":"ltr":"rtl"===a?"rtl":"ltr"}((e.body?e.body.dir:null)||s||"ltr")}}ngOnDestroy(){this.change.complete()}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(Py,8))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),oo=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({}),r})();const wg=new f.OlP("mat-sanity-checks",{providedIn:"root",factory:function kn(){return!0}});let $e=(()=>{class r{constructor(e,t,s){this._sanityChecks=t,this._document=s,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!Ir()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(gg),f.LFG(wg,8),f.LFG(M.K0))},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[oo,oo]}),r})();function so(r){return class extends r{constructor(...a){super(...a),this._disabled=!1}get disabled(){return this._disabled}set disabled(a){this._disabled=Ye(a)}}}function ar(r,a){return class extends r{constructor(...e){super(...e),this.defaultColor=a,this.color=a}get color(){return this._color}set color(e){const t=e||this.defaultColor;t!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),t&&this._elementRef.nativeElement.classList.add(`mat-${t}`),this._color=t)}}}function lo(r){return class extends r{constructor(...a){super(...a),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(a){this._disableRipple=Ye(a)}}}function By(r){return class extends r{constructor(...a){super(...a),this.errorState=!1}updateErrorState(){const a=this.errorState,u=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);u!==a&&(this.errorState=u,this.stateChanges.next())}}}const gd=new f.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function Rh(){return(0,f.f3M)(f.soG)}});class rn{constructor(){this._localeChanges=new He.x,this.localeChanges=this._localeChanges}getValidDateOrNull(a){return this.isDateInstance(a)&&this.isValid(a)?a:null}deserialize(a){return null==a||this.isDateInstance(a)&&this.isValid(a)?a:this.invalid()}setLocale(a){this.locale=a,this._localeChanges.next()}compareDate(a,e){return this.getYear(a)-this.getYear(e)||this.getMonth(a)-this.getMonth(e)||this.getDate(a)-this.getDate(e)}sameDate(a,e){if(a&&e){let t=this.isValid(a),s=this.isValid(e);return t&&s?!this.compareDate(a,e):t==s}return a==e}clampDate(a,e,t){return e&&this.compareDate(a,e)<0?e:t&&this.compareDate(a,t)>0?t:a}}const is=new f.OlP("mat-date-formats"),QT=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Ph(r,a){const e=Array(r);for(let t=0;t{class r extends rn{constructor(e,t){super(),this.useUtcForDisplay=!1,super.setLocale(e)}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){const t=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return Ph(12,s=>this._format(t,new Date(2017,s,1)))}getDateNames(){const e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Ph(31,t=>this._format(e,new Date(2017,0,t+1)))}getDayOfWeekNames(e){const t=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return Ph(7,s=>this._format(t,new Date(2017,0,s+1)))}getYearName(e){const t=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(t,e)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,t,s){let u=this._createDateWithOverflow(e,t,s);return u.getMonth(),u}today(){return new Date}parse(e,t){return"number"==typeof e?new Date(e):e?new Date(Date.parse(e)):null}format(e,t){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");const s=new Intl.DateTimeFormat(this.locale,{...t,timeZone:"utc"});return this._format(s,e)}addCalendarYears(e,t){return this.addCalendarMonths(e,12*t)}addCalendarMonths(e,t){let s=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+t,this.getDate(e));return this.getMonth(s)!=((this.getMonth(e)+t)%12+12)%12&&(s=this._createDateWithOverflow(this.getYear(s),this.getMonth(s),0)),s}addCalendarDays(e,t){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+t)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if("string"==typeof e){if(!e)return null;if(QT.test(e)){let t=new Date(e);if(this.isValid(t))return t}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(e,t,s){const u=new Date;return u.setFullYear(e,t,s),u.setHours(0,0,0,0),u}_2digit(e){return("00"+e).slice(-2)}_format(e,t){const s=new Date;return s.setUTCFullYear(t.getFullYear(),t.getMonth(),t.getDate()),s.setUTCHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e.format(s)}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(gd,8),f.LFG(Yt))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac}),r})();const Oy={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 Ly=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({providers:[{provide:rn,useClass:Ag}]}),r})(),Ih=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({providers:[{provide:is,useValue:Oy}],imports:[Ly]}),r})(),yl=(()=>{class r{isErrorState(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),_d=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[$e,$e]}),r})();class kh{constructor(a,e,t,s=!1){this._renderer=a,this.element=e,this.config=t,this._animationForciblyDisabledThroughCss=s,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const jy={enterDuration:225,exitDuration:150},Tg=fn({passive:!0}),Fy=["mousedown","touchstart"],Uy=["mouseup","mouseleave","touchend","touchcancel"];class Ny{constructor(a,e,t,s){this._target=a,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,s.isBrowser&&(this._containerElement=Gt(t))}fadeInRipple(a,e,t={}){const s=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),u={...jy,...t.animation};t.centered&&(a=s.left+s.width/2,e=s.top+s.height/2);const d=t.radius||function KT(r,a,e){const t=Math.max(Math.abs(r-e.left),Math.abs(r-e.right)),s=Math.max(Math.abs(a-e.top),Math.abs(a-e.bottom));return Math.sqrt(t*t+s*s)}(a,e,s),l=a-s.left,n=e-s.top,i=u.enterDuration,o=document.createElement("div");o.classList.add("mat-ripple-element"),o.style.left=l-d+"px",o.style.top=n-d+"px",o.style.height=2*d+"px",o.style.width=2*d+"px",null!=t.color&&(o.style.backgroundColor=t.color),o.style.transitionDuration=`${i}ms`,this._containerElement.appendChild(o);const c=window.getComputedStyle(o),m=c.transitionDuration,g="none"===c.transitionProperty||"0s"===m||"0s, 0s"===m,p=new kh(this,o,t,g);o.style.transform="scale3d(1, 1, 1)",p.state=0,t.persistent||(this._mostRecentTransientRipple=p);let w=null;return!g&&(i||u.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const R=()=>this._finishRippleTransition(p),J=()=>this._destroyRipple(p);o.addEventListener("transitionend",R),o.addEventListener("transitioncancel",J),w={onTransitionEnd:R,onTransitionCancel:J}}),this._activeRipples.set(p,w),(g||!i)&&this._finishRippleTransition(p),p}fadeOutRipple(a){if(2===a.state||3===a.state)return;const e=a.element,t={...jy,...a.config.animation};e.style.transitionDuration=`${t.exitDuration}ms`,e.style.opacity="0",a.state=2,(a._animationForciblyDisabledThroughCss||!t.exitDuration)&&this._finishRippleTransition(a)}fadeOutAll(){this._getActiveRipples().forEach(a=>a.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(a=>{a.config.persistent||a.fadeOut()})}setupTriggerEvents(a){const e=Gt(a);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(Fy))}handleEvent(a){"mousedown"===a.type?this._onMousedown(a):"touchstart"===a.type?this._onTouchStart(a):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Uy),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(a){0===a.state?this._startFadeOutTransition(a):2===a.state&&this._destroyRipple(a)}_startFadeOutTransition(a){const e=a===this._mostRecentTransientRipple,{persistent:t}=a.config;a.state=1,!t&&(!e||!this._isPointerDown)&&a.fadeOut()}_destroyRipple(a){const e=this._activeRipples.get(a)??null;this._activeRipples.delete(a),this._activeRipples.size||(this._containerRect=null),a===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),a.state=3,null!==e&&(a.element.removeEventListener("transitionend",e.onTransitionEnd),a.element.removeEventListener("transitioncancel",e.onTransitionCancel)),a.element.remove()}_onMousedown(a){const e=_l(a),t=this._lastTouchStartEvent&&Date.now(){!a.config.persistent&&(1===a.state||a.config.terminateOnPointerUp&&0===a.state)&&a.fadeOut()}))}_registerEvents(a){this._ngZone.runOutsideAngular(()=>{a.forEach(e=>{this._triggerElement.addEventListener(e,this,Tg)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(Fy.forEach(a=>{this._triggerElement.removeEventListener(a,this,Tg)}),this._pointerUpEventsRegistered&&Uy.forEach(a=>{this._triggerElement.removeEventListener(a,this,Tg)}))}}const qy=new f.OlP("mat-ripple-global-options");let co=(()=>{class r{constructor(e,t,s,u,d){this._elementRef=e,this._animationMode=d,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=u||{},this._rippleRenderer=new Ny(this,t,e,s)}get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...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(e,t=0,s){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,{...this.rippleConfig,...s}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...e})}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(f.SBq),f.Y36(f.R0b),f.Y36(Yt),f.Y36(qy,8),f.Y36(f.QbO,8))},r.\u0275dir=f.lG2({type:r,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&f.ekj("mat-ripple-unbounded",t.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),r})(),Vn=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[$e,$e]}),r})(),vl=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[$e]}),r})(),Vh=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[Vn,M.ez,$e,vl]}),r})();const Qy=["mat-button",""],bd=["*"],rs=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],Cd=ar(so(lo(class{constructor(r){this._elementRef=r}})));let Mi=(()=>{class r extends Cd{constructor(e,t,s){super(e),this._focusMonitor=t,this._animationMode=s,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const u of rs)this._hasHostAttributes(u)&&this._getHostElement().classList.add(u);e.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(e,t){e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...e){return e.some(t=>this._getHostElement().hasAttribute(t))}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(f.SBq),f.Y36(In),f.Y36(f.QbO,8))},r.\u0275cmp=f.Xpm({type:r,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(e,t){if(1&e&&f.Gf(co,5),2&e){let s;f.iGM(s=f.CRH())&&(t.ripple=s.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,t){2&e&&(f.uIk("disabled",t.disabled||null),f.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-button-disabled",t.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[f.qOj],attrs:Qy,ngContentSelectors:bd,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(e,t){1&e&&(f.F$t(),f.TgZ(0,"span",0),f.Hsn(1),f.qZA(),f._UZ(2,"span",1)(3,"span",2)),2&e&&(f.xp6(2),f.ekj("mat-button-ripple-round",t.isRoundButton||t.isIconButton),f.Q6J("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",t.isIconButton)("matRippleTrigger",t._getHostElement()))},dependencies:[co],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.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;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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-fab._mat-animation-noopable{transition:none !important;animation:none !important}.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;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.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:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.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}"],encapsulation:2,changeDetection:0}),r})(),Bn=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[Vn,$e,$e]}),r})();var Dg=E(1144),On=E(576),wd=E(3268);const Hg=["addListener","removeListener"],Oh=["addEventListener","removeEventListener"],Yy=["on","off"];function xl(r,a,e,t){if((0,On.m)(e)&&(t=e,e=void 0),t)return xl(r,a,e).pipe((0,wd.Z)(t));const[s,u]=function Ig(r){return(0,On.m)(r.addEventListener)&&(0,On.m)(r.removeEventListener)}(r)?Oh.map(d=>l=>r[d](a,l,e)):function Pg(r){return(0,On.m)(r.addListener)&&(0,On.m)(r.removeListener)}(r)?Hg.map(Rg(r,a)):function Jy(r){return(0,On.m)(r.on)&&(0,On.m)(r.off)}(r)?Yy.map(Rg(r,a)):[];if(!s&&(0,Dg.z)(r))return(0,Vt.z)(d=>xl(d,a,e))((0,Xn.Xf)(r));if(!s)throw new TypeError("Invalid event target");return new Fi.y(d=>{const l=(...n)=>d.next(1u(l)})}function Rg(r,a){return e=>t=>r[e](a,t)}var Lh=E(4408);const Tl={schedule(r){let a=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:t}=Tl;t&&(a=t.requestAnimationFrame,e=t.cancelAnimationFrame);const s=a(u=>{e=void 0,r(u)});return new wt.w0(()=>e?.(s))},requestAnimationFrame(...r){const{delegate:a}=Tl;return(a?.requestAnimationFrame||requestAnimationFrame)(...r)},cancelAnimationFrame(...r){const{delegate:a}=Tl;return(a?.cancelAnimationFrame||cancelAnimationFrame)(...r)},delegate:void 0};var jh=E(7565);const Zy=new class Ky extends jh.v{flush(a){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:t}=this;let s;a=a||t.shift();do{if(s=a.execute(a.state,a.delay))break}while((a=t[0])&&a.id===e&&t.shift());if(this._active=!1,s){for(;(a=t[0])&&a.id===e&&t.shift();)a.unsubscribe();throw s}}}(class an extends Lh.o{constructor(a,e){super(a,e),this.scheduler=a,this.work=e}requestAsyncId(a,e,t=0){return null!==t&&t>0?super.requestAsyncId(a,e,t):(a.actions.push(this),a._scheduled||(a._scheduled=Tl.requestAnimationFrame(()=>a.flush(void 0))))}recycleAsyncId(a,e,t=0){if(null!=t&&t>0||null==t&&this.delay>0)return super.recycleAsyncId(a,e,t);a.actions.some(s=>s.id===e)||(Tl.cancelAnimationFrame(e),a._scheduled=void 0)}});let yd,Fh=1;const vd={};function kg(r){return r in vd&&(delete vd[r],!0)}const Xy={setImmediate(r){const a=Fh++;return vd[a]=!0,yd||(yd=Promise.resolve()),yd.then(()=>kg(a)&&r()),a},clearImmediate(r){kg(r)}},{setImmediate:tv,clearImmediate:Vg}=Xy,Ad={setImmediate(...r){const{delegate:a}=Ad;return(a?.setImmediate||tv)(...r)},clearImmediate(r){const{delegate:a}=Ad;return(a?.clearImmediate||Vg)(r)},delegate:void 0},xd=new class Bg extends jh.v{flush(a){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:t}=this;let s;a=a||t.shift();do{if(s=a.execute(a.state,a.delay))break}while((a=t[0])&&a.id===e&&t.shift());if(this._active=!1,s){for(;(a=t[0])&&a.id===e&&t.shift();)a.unsubscribe();throw s}}}(class iv extends Lh.o{constructor(a,e){super(a,e),this.scheduler=a,this.work=e}requestAsyncId(a,e,t=0){return null!==t&&t>0?super.requestAsyncId(a,e,t):(a.actions.push(this),a._scheduled||(a._scheduled=Ad.setImmediate(a.flush.bind(a,void 0))))}recycleAsyncId(a,e,t=0){if(null!=t&&t>0||null==t&&this.delay>0)return super.recycleAsyncId(a,e,t);a.actions.some(s=>s.id===e)||(Ad.clearImmediate(e),a._scheduled=void 0)}});function ri(r){return!!r&&(r instanceof Fi.y||(0,On.m)(r.lift)&&(0,On.m)(r.subscribe))}var Td=E(4986),Uh=E(2805);function Nh(r,a=Td.z){return function nv(r){return(0,Ui.e)((a,e)=>{let t=!1,s=null,u=null,d=!1;const l=()=>{if(u?.unsubscribe(),u=null,t){t=!1;const i=s;s=null,e.next(i)}d&&e.complete()},n=()=>{u=null,d&&e.complete()};a.subscribe((0,tn.x)(e,i=>{t=!0,s=i,u||(0,Xn.Xf)(r(i)).subscribe(u=(0,tn.x)(e,l,n))},()=>{d=!0,(!t||!u||u.closed)&&e.complete()}))})}(()=>(0,Uh.H)(r,a))}var rv=E(6063);class av extends He.x{constructor(a=1/0,e=1/0,t=rv.l){super(),this._bufferSize=a,this._windowTime=e,this._timestampProvider=t,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,a),this._windowTime=Math.max(1,e)}next(a){const{isStopped:e,_buffer:t,_infiniteTimeWindow:s,_timestampProvider:u,_windowTime:d}=this;e||(t.push(a),!s&&t.push(u.now()+d)),this._trimBuffer(),super.next(a)}_subscribe(a){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(a),{_infiniteTimeWindow:t,_buffer:s}=this,u=s.slice();for(let d=0;dnew av(t,a,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:s})}class Sd extends class ov{}{constructor(a){super(),this._data=a}connect(){return ri(this._data)?this._data:(0,ke.of)(this._data)}disconnect(){}}class qh{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(a,e,t,s,u){a.forEachOperation((d,l,n)=>{let i,o;null==d.previousIndex?(i=this._insertView(()=>t(d,l,n),n,e,s(d)),o=i?1:0):null==n?(this._detachAndCacheView(l,e),o=3):(i=this._moveView(l,n,e,s(d)),o=2),u&&u({context:i?.context,operation:o,record:d})})}detach(){for(const a of this._viewCache)a.destroy();this._viewCache=[]}_insertView(a,e,t,s){const u=this._insertViewFromCache(e,t);if(u)return void(u.context.$implicit=s);const d=a();return t.createEmbeddedView(d.templateRef,d.context,d.index)}_detachAndCacheView(a,e){const t=e.detach(a);this._maybeCacheView(t,e)}_moveView(a,e,t,s){const u=t.get(a);return t.move(u,e),u.context.$implicit=s,u}_maybeCacheView(a,e){if(this._viewCache.length0?u/this._itemSize:0;if(e.end>s){const n=Math.ceil(t/this._itemSize),i=Math.max(0,Math.min(d,s-n));d!=i&&(d=i,u=i*this._itemSize,e.start=Math.floor(d)),e.end=Math.max(0,Math.min(s,e.start+n))}const l=u-e.start*this._itemSize;if(l0&&(e.end=Math.min(s,e.end+i),e.start=Math.max(0,Math.floor(d-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(e),this._viewport.setRenderedContentOffset(this._itemSize*e.start),this._scrolledIndexChange.next(Math.floor(d))}}function Ug(r){return r._scrollStrategy}let Ng=(()=>{class r{constructor(){this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new lv(this.itemSize,this.minBufferPx,this.maxBufferPx)}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=wi(e)}get minBufferPx(){return this._minBufferPx}set minBufferPx(e){this._minBufferPx=wi(e)}get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(e){this._maxBufferPx=wi(e)}ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275dir=f.lG2({type:r,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[f._Bn([{provide:sv,useFactory:Ug,deps:[(0,f.Gpc)(()=>r)]}]),f.TTD]}),r})(),os=(()=>{class r{constructor(e,t,s){this._ngZone=e,this._platform=t,this._scrolled=new He.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=s}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new Fi.y(t=>{this._globalSubscription||this._addGlobalListener();const s=e>0?this._scrolled.pipe(Nh(e)).subscribe(t):this._scrolled.subscribe(t);return this._scrolledCount++,()=>{s.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,ke.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,t)=>this.deregister(t)),this._scrolled.complete()}ancestorScrolled(e,t){const s=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe((0,ii.h)(u=>!u||s.indexOf(u)>-1))}getAncestorScrollContainers(e){const t=[];return this.scrollContainers.forEach((s,u)=>{this._scrollableContainsElement(u,e)&&t.push(u)}),t}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,t){let s=Gt(t),u=e.getElementRef().nativeElement;do{if(s==u)return!0}while(s=s.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>xl(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(f.R0b),f.LFG(Yt),f.LFG(M.K0,8))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Dd=(()=>{class r{constructor(e,t,s,u){this.elementRef=e,this.scrollDispatcher=t,this.ngZone=s,this.dir=u,this._destroyed=new He.x,this._elementScrolled=new Fi.y(d=>this.ngZone.runOutsideAngular(()=>xl(this.elementRef.nativeElement,"scroll").pipe(_t(this._destroyed)).subscribe(d)))}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(e){const t=this.elementRef.nativeElement,s=this.dir&&"rtl"==this.dir.value;null==e.left&&(e.left=s?e.end:e.start),null==e.right&&(e.right=s?e.start:e.end),null!=e.bottom&&(e.top=t.scrollHeight-t.clientHeight-e.bottom),s&&0!=cl()?(null!=e.left&&(e.right=t.scrollWidth-t.clientWidth-e.left),2==cl()?e.left=e.right:1==cl()&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.left=t.scrollWidth-t.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){const t=this.elementRef.nativeElement;ma()?t.scrollTo(e):(null!=e.top&&(t.scrollTop=e.top),null!=e.left&&(t.scrollLeft=e.left))}measureScrollOffset(e){const t="left",s="right",u=this.elementRef.nativeElement;if("top"==e)return u.scrollTop;if("bottom"==e)return u.scrollHeight-u.clientHeight-u.scrollTop;const d=this.dir&&"rtl"==this.dir.value;return"start"==e?e=d?s:t:"end"==e&&(e=d?t:s),d&&2==cl()?e==t?u.scrollWidth-u.clientWidth-u.scrollLeft:u.scrollLeft:d&&1==cl()?e==t?u.scrollLeft+u.scrollWidth-u.clientWidth:-u.scrollLeft:e==t?u.scrollLeft:u.scrollWidth-u.clientWidth-u.scrollLeft}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(f.SBq),f.Y36(os),f.Y36(f.R0b),f.Y36(mn,8))},r.\u0275dir=f.lG2({type:r,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),r})(),jr=(()=>{class r{constructor(e,t,s){this._platform=e,this._change=new He.x,this._changeListener=u=>{this._change.next(u)},this._document=s,t.runOutsideAngular(()=>{if(e.isBrowser){const u=this._getWindow();u.addEventListener("resize",this._changeListener),u.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:t,height:s}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+s,right:e.left+t,height:s,width:t}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,t=this._getWindow(),s=e.documentElement,u=s.getBoundingClientRect();return{top:-u.top||e.body.scrollTop||t.scrollY||s.scrollTop||0,left:-u.left||e.body.scrollLeft||t.scrollX||s.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(Nh(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(Yt),f.LFG(f.R0b),f.LFG(M.K0,8))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const Hd=new f.OlP("VIRTUAL_SCROLLABLE");let ss=(()=>{class r extends Dd{constructor(e,t,s,u){super(e,t,s,u)}measureViewportSize(e){const t=this.elementRef.nativeElement;return"horizontal"===e?t.clientWidth:t.clientHeight}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(f.SBq),f.Y36(os),f.Y36(f.R0b),f.Y36(mn,8))},r.\u0275dir=f.lG2({type:r,features:[f.qOj]}),r})();const Gh=typeof requestAnimationFrame<"u"?Zy:xd;let Wh=(()=>{class r extends ss{constructor(e,t,s,u,d,l,n,i){super(e,l,s,d),this.elementRef=e,this._changeDetectorRef=t,this._scrollStrategy=u,this.scrollable=i,this._detachedSubject=new He.x,this._renderedRangeSubject=new He.x,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new Fi.y(o=>this._scrollStrategy.scrolledIndexChange.subscribe(c=>Promise.resolve().then(()=>this.ngZone.run(()=>o.next(c))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=wt.w0.EMPTY,this._viewportChanges=n.change().subscribe(()=>{this.checkViewportSize()}),this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this)}get orientation(){return this._orientation}set orientation(e){this._orientation!==e&&(this._orientation=e,this._calculateSpacerSize())}get appendOnly(){return this._appendOnly}set appendOnly(e){this._appendOnly=Ye(e)}ngOnInit(){this.scrollable===this&&super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.scrollable.elementScrolled().pipe(si(null),Nh(0,Gh)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()}))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(e){this.ngZone.runOutsideAngular(()=>{this._forOf=e,this._forOf.dataStream.pipe(_t(this._detachedSubject)).subscribe(t=>{const s=t.length;s!==this._dataLength&&(this._dataLength=s,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}measureBoundingClientRectWithScrollOffset(e){return this.getElementRef().nativeElement.getBoundingClientRect()[e]}setTotalContentSize(e){this._totalContentSize!==e&&(this._totalContentSize=e,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(e){(function cv(r,a){return r.start==a.start&&r.end==a.end})(this._renderedRange,e)||(this.appendOnly&&(e={start:0,end:Math.max(this._renderedRange.end,e.end)}),this._renderedRangeSubject.next(this._renderedRange=e),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(e,t="to-start"){e=this.appendOnly&&"to-start"===t?0:e;const u="horizontal"==this.orientation,d=u?"X":"Y";let n=`translate${d}(${Number((u&&this.dir&&"rtl"==this.dir.value?-1:1)*e)}px)`;this._renderedContentOffset=e,"to-end"===t&&(n+=` translate${d}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=n&&(this._renderedContentTransform=n,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(e,t="auto"){const s={behavior:t};"horizontal"===this.orientation?s.start=e:s.top=e,this.scrollable.scrollTo(s)}scrollToIndex(e,t="auto"){this._scrollStrategy.scrollToIndex(e,t)}measureScrollOffset(e){let t;return t=this.scrollable==this?s=>super.measureScrollOffset(s):s=>this.scrollable.measureScrollOffset(s),Math.max(0,t(e??("horizontal"===this.orientation?"start":"top"))-this.measureViewportOffset())}measureViewportOffset(e){let t;const s="left",u="right",d="rtl"==this.dir?.value;t="start"==e?d?u:s:"end"==e?d?s:u:e||("horizontal"===this.orientation?"left":"top");const l=this.scrollable.measureBoundingClientRectWithScrollOffset(t);return this.elementRef.nativeElement.getBoundingClientRect()[t]-l}measureRenderedContentSize(){const e=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?e.offsetWidth:e.offsetHeight}measureRangeSize(e){return this._forOf?this._forOf.measureRangeSize(e,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}_markChangeDetectionNeeded(e){e&&this._runAfterChangeDetection.push(e),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(()=>this._changeDetectorRef.markForCheck());const e=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const t of e)t()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(f.SBq),f.Y36(f.sBO),f.Y36(f.R0b),f.Y36(sv,8),f.Y36(mn,8),f.Y36(os),f.Y36(jr),f.Y36(Hd,8))},r.\u0275cmp=f.Xpm({type:r,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(e,t){if(1&e&&f.Gf(aS,7),2&e){let s;f.iGM(s=f.CRH())&&(t._contentWrapper=s.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(e,t){2&e&&f.ekj("cdk-virtual-scroll-orientation-horizontal","horizontal"===t.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==t.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[f._Bn([{provide:Dd,useFactory:(a,e)=>a||e,deps:[ss,r]}]),f.qOj],ngContentSelectors:zh,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(e,t){1&e&&(f.F$t(),f.TgZ(0,"div",0,1),f.Hsn(2),f.qZA(),f._UZ(3,"div",2)),2&e&&(f.xp6(3),f.Udp("width",t._totalContentWidth)("height",t._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}"],encapsulation:2,changeDetection:0}),r})();function zg(r,a,e){if(!e.getBoundingClientRect)return 0;const s=e.getBoundingClientRect();return"horizontal"===r?"start"===a?s.left:s.right:"start"===a?s.top:s.bottom}let dv=(()=>{class r{constructor(e,t,s,u,d,l){this._viewContainerRef=e,this._template=t,this._differs=s,this._viewRepeater=u,this._viewport=d,this.viewChange=new He.x,this._dataSourceChanges=new He.x,this.dataStream=this._dataSourceChanges.pipe(si(null),function Og(){return(0,Ui.e)((r,a)=>{let e,t=!1;r.subscribe((0,tn.x)(a,s=>{const u=e;e=s,t&&a.next([u,s]),t=!0}))})}(),(0,bt.w)(([n,i])=>this._changeDataSource(n,i)),Sl(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new He.x,this.dataStream.subscribe(n=>{this._data=n,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe(_t(this._destroyed)).subscribe(n=>{this._renderedRange=n,this.viewChange.observers.length&&l.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(e){this._cdkVirtualForOf=e,function El(r){return r&&"function"==typeof r.connect}(e)?this._dataSourceChanges.next(e):this._dataSourceChanges.next(new Sd(ri(e)?e:Array.from(e||[])))}get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(e){this._needsUpdate=!0,this._cdkVirtualForTrackBy=e?(t,s)=>e(t+(this._renderedRange?this._renderedRange.start:0),s):void 0}set cdkVirtualForTemplate(e){e&&(this._needsUpdate=!0,this._template=e)}get cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set cdkVirtualForTemplateCacheSize(e){this._viewRepeater.viewCacheSize=wi(e)}measureRangeSize(e,t){if(e.start>=e.end)return 0;const s=e.start-this._renderedRange.start,u=e.end-e.start;let d,l;for(let n=0;n-1;n--){const i=this._viewContainerRef.get(n+s);if(i&&i.rootNodes.length){l=i.rootNodes[i.rootNodes.length-1];break}}return d&&l?zg(t,"end",l)-zg(t,"start",d):0}ngDoCheck(){if(this._differ&&this._needsUpdate){const e=this._differ.diff(this._renderedItems);e?this._applyChanges(e):this._updateContext(),this._needsUpdate=!1}}ngOnDestroy(){this._viewport.detach(),this._dataSourceChanges.next(void 0),this._dataSourceChanges.complete(),this.viewChange.complete(),this._destroyed.next(),this._destroyed.complete(),this._viewRepeater.detach()}_onRenderedDataChange(){!this._renderedRange||(this._renderedItems=this._data.slice(this._renderedRange.start,this._renderedRange.end),this._differ||(this._differ=this._differs.find(this._renderedItems).create((e,t)=>this.cdkVirtualForTrackBy?this.cdkVirtualForTrackBy(e,t):t)),this._needsUpdate=!0)}_changeDataSource(e,t){return e&&e.disconnect(this),this._needsUpdate=!0,t?t.connect(this):(0,ke.of)()}_updateContext(){const e=this._data.length;let t=this._viewContainerRef.length;for(;t--;){const s=this._viewContainerRef.get(t);s.context.index=this._renderedRange.start+t,s.context.count=e,this._updateComputedContextProperties(s.context),s.detectChanges()}}_applyChanges(e){this._viewRepeater.applyChanges(e,this._viewContainerRef,(u,d,l)=>this._getEmbeddedViewArgs(u,l),u=>u.item),e.forEachIdentityChange(u=>{this._viewContainerRef.get(u.currentIndex).context.$implicit=u.item});const t=this._data.length;let s=this._viewContainerRef.length;for(;s--;){const u=this._viewContainerRef.get(s);u.context.index=this._renderedRange.start+s,u.context.count=t,this._updateComputedContextProperties(u.context)}}_updateComputedContextProperties(e){e.first=0===e.index,e.last=e.index===e.count-1,e.even=e.index%2==0,e.odd=!e.even}_getEmbeddedViewArgs(e,t){return{templateRef:this._template,context:{$implicit:e.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:t}}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(f.s_b),f.Y36(f.Rgc),f.Y36(f.ZZ4),f.Y36(as),f.Y36(Wh,4),f.Y36(f.R0b))},r.\u0275dir=f.lG2({type:r,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},features:[f._Bn([{provide:as,useClass:qh}])]}),r})(),Ca=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({}),r})(),ls=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[oo,Ca,oo,Ca]}),r})();class Pd{attach(a){return this._attachedHost=a,a.attach(this)}detach(){let a=this._attachedHost;null!=a&&(this._attachedHost=null,a.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(a){this._attachedHost=a}}class cs extends Pd{constructor(a,e,t,s){super(),this.component=a,this.viewContainerRef=e,this.injector=t,this.componentFactoryResolver=s}}class $h extends Pd{constructor(a,e,t,s){super(),this.templateRef=a,this.viewContainerRef=e,this.context=t,this.injector=s}get origin(){return this.templateRef.elementRef}attach(a,e=this.context){return this.context=e,super.attach(a)}detach(){return this.context=void 0,super.detach()}}class Qh extends Pd{constructor(a){super(),this.element=a instanceof f.SBq?a.nativeElement:a}}class Yh{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(a){return a instanceof cs?(this._attachedPortal=a,this.attachComponentPortal(a)):a instanceof $h?(this._attachedPortal=a,this.attachTemplatePortal(a)):this.attachDomPortal&&a instanceof Qh?(this._attachedPortal=a,this.attachDomPortal(a)):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(a){this._disposeFn=a}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class uv extends Yh{constructor(a,e,t,s,u){super(),this.outletElement=a,this._componentFactoryResolver=e,this._appRef=t,this._defaultInjector=s,this.attachDomPortal=d=>{const l=d.element,n=this._document.createComment("dom-portal");l.parentNode.insertBefore(n,l),this.outletElement.appendChild(l),this._attachedPortal=d,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(l,n)})},this._document=u}attachComponentPortal(a){const t=(a.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(a.component);let s;return a.viewContainerRef?(s=a.viewContainerRef.createComponent(t,a.viewContainerRef.length,a.injector||a.viewContainerRef.injector),this.setDisposeFn(()=>s.destroy())):(s=t.create(a.injector||this._defaultInjector||f.zs3.NULL),this._appRef.attachView(s.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(s.hostView),s.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(s)),this._attachedPortal=a,s}attachTemplatePortal(a){let e=a.viewContainerRef,t=e.createEmbeddedView(a.templateRef,a.context,{injector:a.injector});return t.rootNodes.forEach(s=>this.outletElement.appendChild(s)),t.detectChanges(),this.setDisposeFn(()=>{let s=e.indexOf(t);-1!==s&&e.remove(s)}),this._attachedPortal=a,t}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(a){return a.hostView.rootNodes[0]}}let ds=(()=>{class r extends Yh{constructor(e,t,s){super(),this._componentFactoryResolver=e,this._viewContainerRef=t,this._isInitialized=!1,this.attached=new f.vpe,this.attachDomPortal=u=>{const d=u.element,l=this._document.createComment("dom-portal");u.setAttachedHost(this),d.parentNode.insertBefore(l,d),this._getRootNode().appendChild(d),this._attachedPortal=u,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(d,l)})},this._document=s}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(e){e.setAttachedHost(this);const t=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,u=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),d=t.createComponent(u,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(d.hostView.rootNodes[0]),super.setDisposeFn(()=>d.destroy()),this._attachedPortal=e,this._attachedRef=d,this.attached.emit(d),d}attachTemplatePortal(e){e.setAttachedHost(this);const t=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=t,this.attached.emit(t),t}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(f._Vd),f.Y36(f.s_b),f.Y36(M.K0))},r.\u0275dir=f.lG2({type:r,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[f.qOj]}),r})(),ho=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({}),r})();var Ln=E(6451);const Gg=ma();class Jh{constructor(a,e){this._viewportRuler=a,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const a=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=a.style.left||"",this._previousHTMLStyles.top=a.style.top||"",a.style.left=pi(-this._previousScrollPosition.left),a.style.top=pi(-this._previousScrollPosition.top),a.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const a=this._document.documentElement,t=a.style,s=this._document.body.style,u=t.scrollBehavior||"",d=s.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,a.classList.remove("cdk-global-scrollblock"),Gg&&(t.scrollBehavior=s.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Gg&&(t.scrollBehavior=u,s.scrollBehavior=d)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width}}class or{constructor(a,e,t,s){this._scrollDispatcher=a,this._ngZone=e,this._viewportRuler=t,this._config=s,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(a){this._overlayRef=a}enable(){if(this._scrollSubscription)return;const a=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=a.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=a.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class hs{enable(){}disable(){}attach(){}}function yi(r,a){return a.some(e=>r.bottome.bottom||r.righte.right)}function wa(r,a){return a.some(e=>r.tope.bottom||r.lefte.right)}class kd{constructor(a,e,t,s){this._scrollDispatcher=a,this._viewportRuler=e,this._ngZone=t,this._config=s,this._scrollSubscription=null}attach(a){this._overlayRef=a}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 e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:t,height:s}=this._viewportRuler.getViewportSize();yi(e,[{width:t,height:s,bottom:s,right:t,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 gn=(()=>{class r{constructor(e,t,s,u){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=s,this.noop=()=>new hs,this.close=d=>new or(this._scrollDispatcher,this._ngZone,this._viewportRuler,d),this.block=()=>new Jh(this._viewportRuler,this._document),this.reposition=d=>new kd(this._scrollDispatcher,this._viewportRuler,this._ngZone,d),this._document=u}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(os),f.LFG(jr),f.LFG(f.R0b),f.LFG(M.K0))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();class Ml{constructor(a){if(this.scrollStrategy=new hs,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,a){const e=Object.keys(a);for(const t of e)void 0!==a[t]&&(this[t]=a[t])}}}class ps{constructor(a,e){this.connectionPair=a,this.scrollableViewProperties=e}}let po=(()=>{class r{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const t=this._attachedOverlays.indexOf(e);t>-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this.detach()}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(M.K0))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),fs=(()=>{class r extends po{constructor(e,t){super(e),this._ngZone=t,this._keydownListener=s=>{const u=this._attachedOverlays;for(let d=u.length-1;d>-1;d--)if(u[d]._keydownEvents.observers.length>0){const l=u[d]._keydownEvents;this._ngZone?this._ngZone.run(()=>l.next(s)):l.next(s);break}}}add(e){super.add(e),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(M.K0),f.LFG(f.R0b,8))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),ms=(()=>{class r extends po{constructor(e,t,s){super(e),this._platform=t,this._ngZone=s,this._cursorStyleIsSet=!1,this._pointerDownListener=u=>{this._pointerDownEventTarget=Wi(u)},this._clickListener=u=>{const d=Wi(u),l="click"===u.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:d;this._pointerDownEventTarget=null;const n=this._attachedOverlays.slice();for(let i=n.length-1;i>-1;i--){const o=n[i];if(o._outsidePointerEvents.observers.length<1||!o.hasAttached())continue;if(o.overlayElement.contains(d)||o.overlayElement.contains(l))break;const c=o._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>c.next(u)):c.next(u)}}}add(e){if(super.add(e),!this._isAttached){const t=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(t)):this._addEventListeners(t),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(M.K0),f.LFG(Yt),f.LFG(f.R0b,8))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Fr=(()=>{class r{constructor(e,t){this._platform=t,this._document=e}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||Ir()){const s=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let u=0;uthis._backdropClick.next(c),this._backdropTransitionendHandler=c=>{this._disposeBackdrop(c.target)},this._keydownEvents=new He.x,this._outsidePointerEvents=new He.x,s.scrollStrategy&&(this._scrollStrategy=s.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=s.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(a){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const e=this._portalOutlet.attach(a);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,qt.q)(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),"function"==typeof e?.onDestroy&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),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 a=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),a}dispose(){const a=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),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?.remove(),this._previousHostParent=this._pane=this._host=null,a&&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(a){a!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=a,this.hasAttached()&&(a.attach(this),this.updatePosition()))}updateSize(a){this._config={...this._config,...a},this._updateElementSize()}setDirection(a){this._config={...this._config,direction:a},this._updateElementDirection()}addPanelClass(a){this._pane&&this._toggleClasses(this._pane,a,!0)}removePanelClass(a){this._pane&&this._toggleClasses(this._pane,a,!1)}getDirection(){const a=this._config.direction;return a?"string"==typeof a?a:a.value:"ltr"}updateScrollStrategy(a){a!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=a,this.hasAttached()&&(a.attach(this),a.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const a=this._pane.style;a.width=pi(this._config.width),a.height=pi(this._config.height),a.minWidth=pi(this._config.minWidth),a.minHeight=pi(this._config.minHeight),a.maxWidth=pi(this._config.maxWidth),a.maxHeight=pi(this._config.maxHeight)}_togglePointerEvents(a){this._pane.style.pointerEvents=a?"":"none"}_attachBackdrop(){const a="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),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),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(a)})}):this._backdropElement.classList.add(a)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const a=this._backdropElement;if(a){if(this._animationsDisabled)return void this._disposeBackdrop(a);a.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{a.addEventListener("transitionend",this._backdropTransitionendHandler)}),a.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(a)},500))}}_toggleClasses(a,e,t){const s=ad(e||[]).filter(u=>!!u);s.length&&(t?a.classList.add(...s):a.classList.remove(...s))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const a=this._ngZone.onStable.pipe(_t((0,Ln.T)(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._host.remove()),a.unsubscribe())})})}_disposeScrollStrategy(){const a=this._scrollStrategy;a&&(a.disable(),a.detach&&a.detach())}_disposeBackdrop(a){a&&(a.removeEventListener("click",this._backdropClickHandler),a.removeEventListener("transitionend",this._backdropTransitionendHandler),a.remove(),this._backdropElement===a&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const Kh="cdk-overlay-connected-position-bounding-box",Wg=/([A-Za-z%]+)$/;class $g{constructor(a,e,t,s,u){this._viewportRuler=e,this._document=t,this._platform=s,this._overlayContainer=u,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 He.x,this._resizeSubscription=wt.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(a)}get positions(){return this._preferredPositions}attach(a){this._validatePositions(),a.hostElement.classList.add(Kh),this._overlayRef=a,this._boundingBox=a.hostElement,this._pane=a.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(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const a=this._originRect,e=this._overlayRect,t=this._viewportRect,s=this._containerRect,u=[];let d;for(let l of this._preferredPositions){let n=this._getOriginPoint(a,s,l),i=this._getOverlayPoint(n,e,l),o=this._getOverlayFit(i,e,t,l);if(o.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(l,n);this._canFitWithFlexibleDimensions(o,i,t)?u.push({position:l,origin:n,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(n,l)}):(!d||d.overlayFit.visibleArean&&(n=o,l=i)}return this._isPushed=!1,void this._applyPosition(l.position,l.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(d.position,d.originPoint);this._applyPosition(d.position,d.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&ya(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Kh),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const a=this._lastPosition;if(a){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._getOriginPoint(this._originRect,this._containerRect,a);this._applyPosition(a,e)}else this.apply()}withScrollableContainers(a){return this._scrollables=a,this}withPositions(a){return this._preferredPositions=a,-1===a.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(a){return this._viewportMargin=a,this}withFlexibleDimensions(a=!0){return this._hasFlexibleDimensions=a,this}withGrowAfterOpen(a=!0){return this._growAfterOpen=a,this}withPush(a=!0){return this._canPush=a,this}withLockedPosition(a=!0){return this._positionLocked=a,this}setOrigin(a){return this._origin=a,this}withDefaultOffsetX(a){return this._offsetX=a,this}withDefaultOffsetY(a){return this._offsetY=a,this}withTransformOriginOn(a){return this._transformOriginSelector=a,this}_getOriginPoint(a,e,t){let s,u;if("center"==t.originX)s=a.left+a.width/2;else{const d=this._isRtl()?a.right:a.left,l=this._isRtl()?a.left:a.right;s="start"==t.originX?d:l}return e.left<0&&(s-=e.left),u="center"==t.originY?a.top+a.height/2:"top"==t.originY?a.top:a.bottom,e.top<0&&(u-=e.top),{x:s,y:u}}_getOverlayPoint(a,e,t){let s,u;return s="center"==t.overlayX?-e.width/2:"start"===t.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,u="center"==t.overlayY?-e.height/2:"top"==t.overlayY?0:-e.height,{x:a.x+s,y:a.y+u}}_getOverlayFit(a,e,t,s){const u=Xh(e);let{x:d,y:l}=a,n=this._getOffset(s,"x"),i=this._getOffset(s,"y");n&&(d+=n),i&&(l+=i);let h=0-l,m=l+u.height-t.height,g=this._subtractOverflows(u.width,0-d,d+u.width-t.width),p=this._subtractOverflows(u.height,h,m),w=g*p;return{visibleArea:w,isCompletelyWithinViewport:u.width*u.height===w,fitsInViewportVertically:p===u.height,fitsInViewportHorizontally:g==u.width}}_canFitWithFlexibleDimensions(a,e,t){if(this._hasFlexibleDimensions){const s=t.bottom-e.y,u=t.right-e.x,d=Zh(this._overlayRef.getConfig().minHeight),l=Zh(this._overlayRef.getConfig().minWidth),i=a.fitsInViewportHorizontally||null!=l&&l<=u;return(a.fitsInViewportVertically||null!=d&&d<=s)&&i}return!1}_pushOverlayOnScreen(a,e,t){if(this._previousPushAmount&&this._positionLocked)return{x:a.x+this._previousPushAmount.x,y:a.y+this._previousPushAmount.y};const s=Xh(e),u=this._viewportRect,d=Math.max(a.x+s.width-u.width,0),l=Math.max(a.y+s.height-u.height,0),n=Math.max(u.top-t.top-a.y,0),i=Math.max(u.left-t.left-a.x,0);let o=0,c=0;return o=s.width<=u.width?i||-d:a.xg&&!this._isInitialRender&&!this._growAfterOpen&&(d=a.y-g/2)}if("end"===e.overlayX&&!s||"start"===e.overlayX&&s)h=t.width-a.x+this._viewportMargin,o=a.x-this._viewportMargin;else if("start"===e.overlayX&&!s||"end"===e.overlayX&&s)c=a.x,o=t.right-a.x;else{const m=Math.min(t.right-a.x+t.left,a.x),g=this._lastBoundingBoxSize.width;o=2*m,c=a.x-m,o>g&&!this._isInitialRender&&!this._growAfterOpen&&(c=a.x-g/2)}return{top:d,left:c,bottom:l,right:h,width:o,height:u}}_setBoundingBoxStyles(a,e){const t=this._calculateBoundingBoxRect(a,e);!this._isInitialRender&&!this._growAfterOpen&&(t.height=Math.min(t.height,this._lastBoundingBoxSize.height),t.width=Math.min(t.width,this._lastBoundingBoxSize.width));const s={};if(this._hasExactPosition())s.top=s.left="0",s.bottom=s.right=s.maxHeight=s.maxWidth="",s.width=s.height="100%";else{const u=this._overlayRef.getConfig().maxHeight,d=this._overlayRef.getConfig().maxWidth;s.height=pi(t.height),s.top=pi(t.top),s.bottom=pi(t.bottom),s.width=pi(t.width),s.left=pi(t.left),s.right=pi(t.right),s.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",s.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",u&&(s.maxHeight=pi(u)),d&&(s.maxWidth=pi(d))}this._lastBoundingBoxSize=t,ya(this._boundingBox.style,s)}_resetBoundingBoxStyles(){ya(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){ya(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(a,e){const t={},s=this._hasExactPosition(),u=this._hasFlexibleDimensions,d=this._overlayRef.getConfig();if(s){const o=this._viewportRuler.getViewportScrollPosition();ya(t,this._getExactOverlayY(e,a,o)),ya(t,this._getExactOverlayX(e,a,o))}else t.position="static";let l="",n=this._getOffset(e,"x"),i=this._getOffset(e,"y");n&&(l+=`translateX(${n}px) `),i&&(l+=`translateY(${i}px)`),t.transform=l.trim(),d.maxHeight&&(s?t.maxHeight=pi(d.maxHeight):u&&(t.maxHeight="")),d.maxWidth&&(s?t.maxWidth=pi(d.maxWidth):u&&(t.maxWidth="")),ya(this._pane.style,t)}_getExactOverlayY(a,e,t){let s={top:"",bottom:""},u=this._getOverlayPoint(e,this._overlayRect,a);return this._isPushed&&(u=this._pushOverlayOnScreen(u,this._overlayRect,t)),"bottom"===a.overlayY?s.bottom=this._document.documentElement.clientHeight-(u.y+this._overlayRect.height)+"px":s.top=pi(u.y),s}_getExactOverlayX(a,e,t){let d,s={left:"",right:""},u=this._getOverlayPoint(e,this._overlayRect,a);return this._isPushed&&(u=this._pushOverlayOnScreen(u,this._overlayRect,t)),d=this._isRtl()?"end"===a.overlayX?"left":"right":"end"===a.overlayX?"right":"left","right"===d?s.right=this._document.documentElement.clientWidth-(u.x+this._overlayRect.width)+"px":s.left=pi(u.x),s}_getScrollVisibility(){const a=this._getOriginRect(),e=this._pane.getBoundingClientRect(),t=this._scrollables.map(s=>s.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:wa(a,t),isOriginOutsideView:yi(a,t),isOverlayClipped:wa(e,t),isOverlayOutsideView:yi(e,t)}}_subtractOverflows(a,...e){return e.reduce((t,s)=>t-Math.max(s,0),a)}_getNarrowedViewportRect(){const a=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,t=this._viewportRuler.getViewportScrollPosition();return{top:t.top+this._viewportMargin,left:t.left+this._viewportMargin,right:t.left+a-this._viewportMargin,bottom:t.top+e-this._viewportMargin,width:a-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(a,e){return"x"===e?a.offsetX??this._offsetX:a.offsetY??this._offsetY}_validatePositions(){}_addPanelClasses(a){this._pane&&ad(a).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(a=>{this._pane.classList.remove(a)}),this._appliedPanelClasses=[])}_getOriginRect(){const a=this._origin;if(a instanceof f.SBq)return a.nativeElement.getBoundingClientRect();if(a instanceof Element)return a.getBoundingClientRect();const e=a.width||0,t=a.height||0;return{top:a.y,bottom:a.y+t,left:a.x,right:a.x+e,height:t,width:e}}}function ya(r,a){for(let e in a)a.hasOwnProperty(e)&&(r[e]=a[e]);return r}function Zh(r){if("number"!=typeof r&&null!=r){const[a,e]=r.split(Wg);return e&&"px"!==e?null:parseFloat(a)}return r||null}function Xh(r){return{top:Math.floor(r.top),right:Math.floor(r.right),bottom:Math.floor(r.bottom),left:Math.floor(r.left),width:Math.floor(r.width),height:Math.floor(r.height)}}const Qg="cdk-global-overlay-wrapper";class fv{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(a){const e=a.getConfig();this._overlayRef=a,this._width&&!e.width&&a.updateSize({width:this._width}),this._height&&!e.height&&a.updateSize({height:this._height}),a.hostElement.classList.add(Qg),this._isDisposed=!1}top(a=""){return this._bottomOffset="",this._topOffset=a,this._alignItems="flex-start",this}left(a=""){return this._xOffset=a,this._xPosition="left",this}bottom(a=""){return this._topOffset="",this._bottomOffset=a,this._alignItems="flex-end",this}right(a=""){return this._xOffset=a,this._xPosition="right",this}start(a=""){return this._xOffset=a,this._xPosition="start",this}end(a=""){return this._xOffset=a,this._xPosition="end",this}width(a=""){return this._overlayRef?this._overlayRef.updateSize({width:a}):this._width=a,this}height(a=""){return this._overlayRef?this._overlayRef.updateSize({height:a}):this._height=a,this}centerHorizontally(a=""){return this.left(a),this._xPosition="center",this}centerVertically(a=""){return this.top(a),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const a=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,t=this._overlayRef.getConfig(),{width:s,height:u,maxWidth:d,maxHeight:l}=t,n=!("100%"!==s&&"100vw"!==s||d&&"100%"!==d&&"100vw"!==d),i=!("100%"!==u&&"100vh"!==u||l&&"100%"!==l&&"100vh"!==l),o=this._xPosition,c=this._xOffset,h="rtl"===this._overlayRef.getConfig().direction;let m="",g="",p="";n?p="flex-start":"center"===o?(p="center",h?g=c:m=c):h?"left"===o||"end"===o?(p="flex-end",m=c):("right"===o||"start"===o)&&(p="flex-start",g=c):"left"===o||"start"===o?(p="flex-start",m=c):("right"===o||"end"===o)&&(p="flex-end",g=c),a.position=this._cssPosition,a.marginLeft=n?"0":m,a.marginTop=i?"0":this._topOffset,a.marginBottom=this._bottomOffset,a.marginRight=n?"0":g,e.justifyContent=p,e.alignItems=i?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const a=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,t=e.style;e.classList.remove(Qg),t.justifyContent=t.alignItems=a.marginTop=a.marginBottom=a.marginLeft=a.marginRight=a.position="",this._overlayRef=null,this._isDisposed=!0}}let mv=(()=>{class r{constructor(e,t,s,u){this._viewportRuler=e,this._document=t,this._platform=s,this._overlayContainer=u}global(){return new fv}flexibleConnectedTo(e){return new $g(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(jr),f.LFG(M.K0),f.LFG(Yt),f.LFG(Fr))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Yg=0,_n=(()=>{class r{constructor(e,t,s,u,d,l,n,i,o,c,h,m){this.scrollStrategies=e,this._overlayContainer=t,this._componentFactoryResolver=s,this._positionBuilder=u,this._keyboardDispatcher=d,this._injector=l,this._ngZone=n,this._document=i,this._directionality=o,this._location=c,this._outsideClickDispatcher=h,this._animationsModuleType=m}create(e){const t=this._createHostElement(),s=this._createPaneElement(t),u=this._createPortalOutlet(s),d=new Ml(e);return d.direction=d.direction||this._directionality.value,new gs(u,t,s,d,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(e){const t=this._document.createElement("div");return t.id="cdk-overlay-"+Yg++,t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(f.z2F)),new uv(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(gn),f.LFG(Fr),f.LFG(f._Vd),f.LFG(mv),f.LFG(fs),f.LFG(f.zs3),f.LFG(f.R0b),f.LFG(M.K0),f.LFG(mn),f.LFG(M.Ye),f.LFG(ms),f.LFG(f.QbO,8))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac}),r})();const Bd={provide:new f.OlP("cdk-connected-overlay-scroll-strategy"),deps:[_n],useFactory:function Vd(r){return()=>r.scrollStrategies.reposition()}};let va=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({providers:[_n,Bd],imports:[oo,ho,ls,ls]}),r})();class Il{}const jn="*";function Zt(r,a){return{type:7,name:r,definitions:a,options:{}}}function vt(r,a=null){return{type:4,styles:a,timings:r}}function tp(r,a=null){return{type:3,steps:r,options:a}}function ip(r,a=null){return{type:2,steps:r,options:a}}function Ne(r){return{type:6,styles:r,offset:null}}function ft(r,a,e){return{type:0,name:r,styles:a,options:e}}function yt(r,a,e=null){return{type:1,expr:r,animation:a,options:e}}function kl(r=null){return{type:9,options:r}}function Ld(r,a,e=null){return{type:11,selector:r,animation:a,options:e}}function np(r){Promise.resolve(null).then(r)}class mo{constructor(a=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=a+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(a=>a()),this._onDoneFns=[])}onStart(a){this._originalOnStartFns.push(a),this._onStartFns.push(a)}onDone(a){this._originalOnDoneFns.push(a),this._onDoneFns.push(a)}onDestroy(a){this._onDestroyFns.push(a)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){np(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(a=>a()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(a=>a()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(a){this._position=this.totalTime?a*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(a){const e="start"==a?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class jd{constructor(a){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=a;let e=0,t=0,s=0;const u=this.players.length;0==u?np(()=>this._onFinish()):this.players.forEach(d=>{d.onDone(()=>{++e==u&&this._onFinish()}),d.onDestroy(()=>{++t==u&&this._onDestroy()}),d.onStart(()=>{++s==u&&this._onStart()})}),this.totalTime=this.players.reduce((d,l)=>Math.max(d,l.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(a=>a()),this._onDoneFns=[])}init(){this.players.forEach(a=>a.init())}onStart(a){this._onStartFns.push(a)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(a=>a()),this._onStartFns=[])}onDone(a){this._onDoneFns.push(a)}onDestroy(a){this._onDestroyFns.push(a)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(a=>a.play())}pause(){this.players.forEach(a=>a.pause())}restart(){this.players.forEach(a=>a.restart())}finish(){this._onFinish(),this.players.forEach(a=>a.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(a=>a.destroy()),this._onDestroyFns.forEach(a=>a()),this._onDestroyFns=[])}reset(){this.players.forEach(a=>a.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(a){const e=a*this.totalTime;this.players.forEach(t=>{const s=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(s)})}getPosition(){const a=this.players.reduce((e,t)=>null===e||t.totalTime>e.totalTime?t:e,null);return null!=a?a.getPosition():0}beforeDestroy(){this.players.forEach(a=>{a.beforeDestroy&&a.beforeDestroy()})}triggerCallback(a){const e="start"==a?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}const Kg=["connectionContainer"],Zg=["inputContainer"],Xg=["label"];function e_(r,a){1&r&&(f.ynx(0),f.TgZ(1,"div",14),f._UZ(2,"div",15)(3,"div",16)(4,"div",17),f.qZA(),f.TgZ(5,"div",18),f._UZ(6,"div",15)(7,"div",16)(8,"div",17),f.qZA(),f.BQk())}function t_(r,a){if(1&r){const e=f.EpF();f.TgZ(0,"div",19),f.NdJ("cdkObserveContent",function(){f.CHM(e);const s=f.oxw();return f.KtG(s.updateOutlineGap())}),f.Hsn(1,1),f.qZA()}if(2&r){const e=f.oxw();f.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)}}function i_(r,a){if(1&r&&(f.ynx(0),f.Hsn(1,2),f.TgZ(2,"span"),f._uU(3),f.qZA(),f.BQk()),2&r){const e=f.oxw(2);f.xp6(3),f.Oqu(e._control.placeholder)}}function n_(r,a){1&r&&f.Hsn(0,3,["*ngSwitchCase","true"])}function bS(r,a){1&r&&(f.TgZ(0,"span",23),f._uU(1," *"),f.qZA())}function wv(r,a){if(1&r){const e=f.EpF();f.TgZ(0,"label",20,21),f.NdJ("cdkObserveContent",function(){f.CHM(e);const s=f.oxw();return f.KtG(s.updateOutlineGap())}),f.YNc(2,i_,4,1,"ng-container",12),f.YNc(3,n_,1,0,"ng-content",12),f.YNc(4,bS,2,0,"span",22),f.qZA()}if(2&r){const e=f.oxw();f.ekj("mat-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-form-field-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-accent","accent"==e.color)("mat-warn","warn"==e.color),f.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),f.uIk("for",e._control.id)("aria-owns",e._control.id),f.xp6(2),f.Q6J("ngSwitchCase",!1),f.xp6(1),f.Q6J("ngSwitchCase",!0),f.xp6(1),f.Q6J("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function yv(r,a){1&r&&(f.TgZ(0,"div",24),f.Hsn(1,4),f.qZA())}function r_(r,a){if(1&r&&(f.TgZ(0,"div",25),f._UZ(1,"span",26),f.qZA()),2&r){const e=f.oxw();f.xp6(1),f.ekj("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function vv(r,a){if(1&r&&(f.TgZ(0,"div"),f.Hsn(1,5),f.qZA()),2&r){const e=f.oxw();f.Q6J("@transitionMessages",e._subscriptAnimationState)}}function fi(r,a){if(1&r&&(f.TgZ(0,"div",30),f._uU(1),f.qZA()),2&r){const e=f.oxw(2);f.Q6J("id",e._hintLabelId),f.xp6(1),f.Oqu(e.hintLabel)}}function a_(r,a){if(1&r&&(f.TgZ(0,"div",27),f.YNc(1,fi,2,2,"div",28),f.Hsn(2,6),f._UZ(3,"div",29),f.Hsn(4,7),f.qZA()),2&r){const e=f.oxw();f.Q6J("@transitionMessages",e._subscriptAnimationState),f.xp6(1),f.Q6J("ngIf",e.hintLabel)}}const Av=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],xv=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let o_=0;const s_=new f.OlP("MatError");let _s=(()=>{class r{constructor(e,t){this.id="mat-error-"+o_++,e||t.nativeElement.setAttribute("aria-live","polite")}}return r.\u0275fac=function(e){return new(e||r)(f.$8M("aria-live"),f.Y36(f.SBq))},r.\u0275dir=f.lG2({type:r,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(e,t){2&e&&f.uIk("id",t.id)},inputs:{id:"id"},features:[f._Bn([{provide:s_,useExisting:r}])]}),r})();const l_={transitionMessages:Zt("transitionMessages",[ft("enter",Ne({opacity:1,transform:"translateY(0%)"})),yt("void => enter",[Ne({opacity:0,transform:"translateY(-5px)"}),vt("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Ur=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275dir=f.lG2({type:r}),r})(),Sv=0;const rp=new f.OlP("MatHint");let yS=(()=>{class r{constructor(){this.align="start",this.id="mat-hint-"+Sv++}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275dir=f.lG2({type:r,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(e,t){2&e&&(f.uIk("id",t.id)("align",null),f.ekj("mat-form-field-hint-end","end"===t.align))},inputs:{align:"align",id:"id"},features:[f._Bn([{provide:rp,useExisting:r}])]}),r})(),Aa=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275dir=f.lG2({type:r,selectors:[["mat-label"]]}),r})(),ap=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275dir=f.lG2({type:r,selectors:[["mat-placeholder"]]}),r})();const sr=new f.OlP("MatPrefix"),op=new f.OlP("MatSuffix");let lr=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275dir=f.lG2({type:r,selectors:[["","matSuffix",""]],features:[f._Bn([{provide:op,useExisting:r}])]}),r})(),bn=0;const c_=ar(class{constructor(r){this._elementRef=r}},"primary"),Ev=new f.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),lp=new f.OlP("MatFormField");let Vl=(()=>{class r extends c_{constructor(e,t,s,u,d,l,n){super(e),this._changeDetectorRef=t,this._dir=s,this._defaults=u,this._platform=d,this._ngZone=l,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new He.x,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+bn++,this._labelId="mat-form-field-label-"+bn++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==n,this.appearance=u?.appearance||"legacy",u&&(this._hideRequiredMarker=Boolean(u.hideRequiredMarker),u.color&&(this.color=this.defaultColor=u.color))}get appearance(){return this._appearance}set appearance(e){const t=this._appearance;this._appearance=e||this._defaults?.appearance||"legacy","outline"===this._appearance&&t!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=Ye(e)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(e){this._explicitFormFieldControl=e}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${e.controlType}`),e.stateChanges.pipe(si(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(_t(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(_t(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,Ln.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(si(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(si(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(_t(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(e){const t=this._control?this._control.ngControl:null;return t&&t[e]}_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,xl(this._label.nativeElement,"transitionend").pipe((0,qt.q)(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 e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const t=this._hintChildren?this._hintChildren.find(u=>"start"===u.align):null,s=this._hintChildren?this._hintChildren.find(u=>"end"===u.align):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),s&&e.push(s.id)}else this._errorChildren&&e.push(...this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(e)}}_validateControlChild(){}updateOutlineGap(){const e=this._label?this._label.nativeElement:null,t=this._connectionContainerRef.nativeElement,s=".mat-form-field-outline-start",u=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!e||!e.children.length||!e.textContent.trim()){const o=t.querySelectorAll(`${s}, ${u}`);for(let c=0;c0?.75*g+10:0}for(let o=0;o{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[M.ez,$e,ao,$e]}),r})();const Ov={provide:new f.OlP("mat-select-scroll-strategy"),deps:[_n],useFactory:function g_(r){return()=>r.scrollStrategies.reposition()}};let Nd=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({providers:[Ov],imports:[M.ez,va,Vh,$e,Ca,xa,Vh,$e]}),r})();const Lv=["tooltip"],__="tooltip-panel",b_=fn({passive:!0}),C_=new f.OlP("mat-tooltip-scroll-strategy"),y_={provide:C_,deps:[_n],useFactory:function w_(r){return()=>r.scrollStrategies.reposition({scrollThrottle:20})}},v_=new f.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function A_(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let x_=(()=>{class r{constructor(e,t,s,u,d,l,n,i,o,c,h,m){this._overlay=e,this._elementRef=t,this._scrollDispatcher=s,this._viewContainerRef=u,this._ngZone=d,this._platform=l,this._ariaDescriber=n,this._focusMonitor=i,this._dir=c,this._defaultOptions=h,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new He.x,this._scrollStrategy=o,this._document=m,h&&(h.position&&(this.position=h.position),h.touchGestures&&(this.touchGestures=h.touchGestures)),c.change.pipe(_t(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(e){this._disabled=Ye(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=wi(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=wi(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).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,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(_t(this._destroyed)).subscribe(e=>{e?"keyboard"===e&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([t,s])=>{e.removeEventListener(t,s,b_)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const t=this._createOverlay();this._detach(),this._portal=this._portal||new cs(this._tooltipComponent,this._viewContainerRef);const s=this._tooltipInstance=t.attach(this._portal).instance;s._triggerElement=this._elementRef.nativeElement,s._mouseLeaveHideDelay=this._hideDelay,s.afterHidden().pipe(_t(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),s.show(e)}hide(e=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(e)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const e=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),t=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(e);return t.positionChanges.pipe(_t(this._destroyed)).subscribe(s=>{this._updateCurrentPositionClass(s.connectionPair),this._tooltipInstance&&s.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:t,panelClass:`${this._cssClassPrefix}-${__}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(_t(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(_t(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(_t(this._destroyed)).subscribe(s=>{this._isTooltipVisible()&&27===s.keyCode&&!Pn(s)&&(s.preventDefault(),s.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){const t=e.getConfig().positionStrategy,s=this._getOrigin(),u=this._getOverlayPosition();t.withPositions([this._addOffset({...s.main,...u.main}),this._addOffset({...s.fallback,...u.fallback})])}_addOffset(e){return e}_getOrigin(){const e=!this._dir||"ltr"==this._dir.value,t=this.position;let s;"above"==t||"below"==t?s={originX:"center",originY:"above"==t?"top":"bottom"}:"before"==t||"left"==t&&e||"right"==t&&!e?s={originX:"start",originY:"center"}:("after"==t||"right"==t&&e||"left"==t&&!e)&&(s={originX:"end",originY:"center"});const{x:u,y:d}=this._invertPosition(s.originX,s.originY);return{main:s,fallback:{originX:u,originY:d}}}_getOverlayPosition(){const e=!this._dir||"ltr"==this._dir.value,t=this.position;let s;"above"==t?s={overlayX:"center",overlayY:"bottom"}:"below"==t?s={overlayX:"center",overlayY:"top"}:"before"==t||"left"==t&&e||"right"==t&&!e?s={overlayX:"end",overlayY:"center"}:("after"==t||"right"==t&&e||"left"==t&&!e)&&(s={overlayX:"start",overlayY:"center"});const{x:u,y:d}=this._invertPosition(s.overlayX,s.overlayY);return{main:s,fallback:{overlayX:u,overlayY:d}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,qt.q)(1),_t(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,t){return"above"===this.position||"below"===this.position?"top"===t?t="bottom":"bottom"===t&&(t="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:t}}_updateCurrentPositionClass(e){const{overlayY:t,originX:s,originY:u}=e;let d;if(d="center"===t?this._dir&&"rtl"===this._dir.value?"end"===s?"left":"right":"start"===s?"left":"right":"bottom"===t&&"top"===u?"above":"below",d!==this._currentPosition){const l=this._overlayRef;if(l){const n=`${this._cssClassPrefix}-${__}-`;l.removePanelClass(n+this._currentPosition),l.addPanelClass(n+d)}this._currentPosition=d}}_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 e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",t=>{const s=t.relatedTarget;(!s||!this._overlayRef?.overlayElement.contains(s))&&this.hide()}],["wheel",t=>this._wheelListener(t)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const t=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",t],["touchcancel",t])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([t,s])=>{this._elementRef.nativeElement.addEventListener(t,s,b_)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const t=this._document.elementFromPoint(e.clientX,e.clientY),s=this._elementRef.nativeElement;t!==s&&!s.contains(t)&&this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const t=this._elementRef.nativeElement,s=t.style;("on"===e||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(s.userSelect=s.msUserSelect=s.webkitUserSelect=s.MozUserSelect="none"),("on"===e||!t.draggable)&&(s.webkitUserDrag="none"),s.touchAction="none",s.webkitTapHighlightColor="transparent"}}}return r.\u0275fac=function(e){f.$Z()},r.\u0275dir=f.lG2({type:r,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),r})(),qd=(()=>{class r extends x_{constructor(e,t,s,u,d,l,n,i,o,c,h,m){super(e,t,s,u,d,l,n,i,o,c,h,m),this._tooltipComponent=S_}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(_n),f.Y36(f.SBq),f.Y36(os),f.Y36(f.s_b),f.Y36(f.R0b),f.Y36(Yt),f.Y36(dg),f.Y36(In),f.Y36(C_),f.Y36(mn,8),f.Y36(v_,8),f.Y36(M.K0))},r.\u0275dir=f.lG2({type:r,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[f.qOj]}),r})(),T_=(()=>{class r{constructor(e,t){this._changeDetectorRef=e,this._visibility="initial",this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new He.x,this._animationsDisabled="NoopAnimations"===t}show(e){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:e}){(!e||!this._triggerElement.contains(e))&&this.hide(this._mouseLeaveHideDelay)}_onShow(){}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){const t=this._tooltip.nativeElement,s=this._showAnimation,u=this._hideAnimation;if(t.classList.remove(e?u:s),t.classList.add(e?s:u),this._isVisible=e,e&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const d=getComputedStyle(t);("0s"===d.getPropertyValue("animation-duration")||"none"===d.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(t.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(f.sBO),f.Y36(f.QbO,8))},r.\u0275dir=f.lG2({type:r}),r})(),S_=(()=>{class r extends T_{constructor(e,t,s){super(e,s),this._breakpointObserver=t,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)"),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(f.sBO),f.Y36(sd),f.Y36(f.QbO,8))},r.\u0275cmp=f.Xpm({type:r,selectors:[["mat-tooltip-component"]],viewQuery:function(e,t){if(1&e&&f.Gf(Lv,7),2&e){let s;f.iGM(s=f.CRH())&&(t._tooltip=s.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,t){1&e&&f.NdJ("mouseleave",function(u){return t._handleMouseLeave(u)}),2&e&&f.Udp("zoom",t.isVisible()?1:null)},features:[f.qOj],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(e,t){if(1&e&&(f.TgZ(0,"div",0,1),f.NdJ("animationend",function(u){return t._handleAnimationEnd(u)}),f.ALo(2,"async"),f._uU(3),f.qZA()),2&e){let s;f.ekj("mat-tooltip-handset",null==(s=f.lcZ(2,4,t._isHandset))?null:s.matches),f.Q6J("ngClass",t.tooltipClass),f.xp6(3),f.Oqu(t.message)}},dependencies:[M.mk,M.Ov],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}"],encapsulation:2,changeDetection:0}),r})(),go=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({providers:[y_],imports:[Cl,M.ez,va,$e,$e,Ca]}),r})(),Ol=(()=>{class r{constructor(){this.changes=new He.x,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(e,t,s)=>{if(0==s||0==t)return`0 of ${s}`;const u=e*t;return`${u+1} \u2013 ${u<(s=Math.max(s,0))?Math.min(u+t,s):u+t} of ${s}`}}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const M_={provide:Ol,deps:[[new f.FiY,new f.tp0,Ol]],useFactory:function VS(r){return r||new Ol}};let Nr=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({providers:[M_],imports:[M.ez,Bn,Nd,go,$e]}),r})();var D_=E(1005);const zd=["mat-menu-item",""];function Gd(r,a){1&r&&(f.O4$(),f.TgZ(0,"svg",2),f._UZ(1,"polygon",3),f.qZA())}const Jt=["*"];function jS(r,a){if(1&r){const e=f.EpF();f.TgZ(0,"div",0),f.NdJ("keydown",function(s){f.CHM(e);const u=f.oxw();return f.KtG(u._handleKeydown(s))})("click",function(){f.CHM(e);const s=f.oxw();return f.KtG(s.closed.emit("click"))})("@transformMenu.start",function(s){f.CHM(e);const u=f.oxw();return f.KtG(u._onAnimationStart(s))})("@transformMenu.done",function(s){f.CHM(e);const u=f.oxw();return f.KtG(u._onAnimationDone(s))}),f.TgZ(1,"div",1),f.Hsn(2),f.qZA()()}if(2&r){const e=f.oxw();f.Q6J("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),f.uIk("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const Ll={transformMenu:Zt("transformMenu",[ft("void",Ne({opacity:0,transform:"scale(0.8)"})),yt("void => enter",vt("120ms cubic-bezier(0, 0, 0.2, 1)",Ne({opacity:1,transform:"scale(1)"}))),yt("* => void",vt("100ms 25ms linear",Ne({opacity:0})))]),fadeInItems:Zt("fadeInItems",[ft("showing",Ne({opacity:1})),yt("void => *",[Ne({opacity:0}),vt("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},H_=new f.OlP("MatMenuContent"),pp=new f.OlP("MAT_MENU_PANEL"),jl=lo(so(class{}));let Fl=(()=>{class r extends jl{constructor(e,t,s,u,d){super(),this._elementRef=e,this._document=t,this._focusMonitor=s,this._parentMenu=u,this._changeDetectorRef=d,this.role="menuitem",this._hovered=new He.x,this._focused=new He.x,this._highlighted=!1,this._triggersSubmenu=!1,u?.addItem?.(this)}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),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(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const e=this._elementRef.nativeElement.cloneNode(!0),t=e.querySelectorAll("mat-icon, .material-icons");for(let s=0;s{class r{constructor(e,t,s,u){this._elementRef=e,this._ngZone=t,this._defaultOptions=s,this._changeDetectorRef=u,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new f.n_E,this._tabSubscription=wt.w0.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new He.x,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new f.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+Wd++}get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(e){this._overlapTrigger=Ye(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=Ye(e)}set panelClass(e){const t=this._previousPanelClass;t&&t.length&&t.split(" ").forEach(s=>{this._classList[s]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(s=>{this._classList[s]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(e){this.panelClass=e}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new Sh(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(si(this._directDescendantItems),(0,bt.w)(e=>(0,Ln.T)(...e.map(t=>t._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{const t=this._keyManager;if("enter"===this._panelAnimationState&&t.activeItem?._hasFocus()){const s=e.toArray(),u=Math.max(0,Math.min(s.length-1,t.activeItemIndex||0));s[u]&&!s[u].disabled?t.setActiveItem(u):t.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(si(this._directDescendantItems),(0,bt.w)(t=>(0,Ln.T)(...t.map(s=>s._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const t=e.keyCode,s=this._keyManager;switch(t){case 27:Pn(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(38===t||40===t)&&s.setFocusOrigin("keyboard"),void s.onKeydown(e)}e.stopPropagation()}focusFirstItem(e="program"){this._ngZone.onStable.pipe((0,qt.q)(1)).subscribe(()=>{let t=null;if(this._directDescendantItems.length&&(t=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!t||!t.contains(document.activeElement)){const s=this._keyManager;s.setFocusOrigin(e).setFirstItemActive(),!s.activeItem&&t&&t.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const t=Math.min(this._baseElevation+e,24),s=`${this._elevationPrefix}${t}`,u=Object.keys(this._classList).find(d=>d.startsWith(this._elevationPrefix));(!u||u===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[s]=!0,this._previousElevation=s)}setPositionClasses(e=this.xPosition,t=this.yPosition){const s=this._classList;s["mat-menu-before"]="before"===e,s["mat-menu-after"]="after"===e,s["mat-menu-above"]="above"===t,s["mat-menu-below"]="below"===t,this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(si(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(f.SBq),f.Y36(f.R0b),f.Y36(R_),f.Y36(f.sBO))},r.\u0275dir=f.lG2({type:r,contentQueries:function(e,t,s){if(1&e&&(f.Suo(s,H_,5),f.Suo(s,Fl,5),f.Suo(s,Fl,4)),2&e){let u;f.iGM(u=f.CRH())&&(t.lazyContent=u.first),f.iGM(u=f.CRH())&&(t._allItems=u),f.iGM(u=f.CRH())&&(t.items=u)}},viewQuery:function(e,t){if(1&e&&f.Gf(f.Rgc,5),2&e){let s;f.iGM(s=f.CRH())&&(t.templateRef=s.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),r})(),fp=(()=>{class r extends bs{constructor(e,t,s,u){super(e,t,s,u),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(f.SBq),f.Y36(f.R0b),f.Y36(R_),f.Y36(f.sBO))},r.\u0275cmp=f.Xpm({type:r,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,t){2&e&&f.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[f._Bn([{provide:pp,useExisting:r}]),f.qOj],ngContentSelectors:Jt,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(e,t){1&e&&(f.F$t(),f.YNc(0,jS,3,6,"ng-template"))},dependencies:[M.mk],styles:['mat-menu{display:none}.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;position:relative}.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;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}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}'],encapsulation:2,data:{animation:[Ll.transformMenu,Ll.fadeInItems]},changeDetection:0}),r})();const mp=new f.OlP("mat-menu-scroll-strategy"),Ul={provide:mp,deps:[_n],useFactory:function Qv(r){return()=>r.scrollStrategies.reposition()}},P_=fn({passive:!0});let Yv=(()=>{class r{constructor(e,t,s,u,d,l,n,i,o){this._overlay=e,this._element=t,this._viewContainerRef=s,this._menuItemInstance=l,this._dir=n,this._focusMonitor=i,this._ngZone=o,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=wt.w0.EMPTY,this._hoverSubscription=wt.w0.EMPTY,this._menuCloseSubscription=wt.w0.EMPTY,this._handleTouchStart=c=>{rr(c)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new f.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new f.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=u,this._parentMaterialMenu=d instanceof bs?d:void 0,t.nativeElement.addEventListener("touchstart",this._handleTouchStart,P_),l&&(l._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(t=>{this._destroyMenu(t),("click"===t||"tab"===t)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(t)})))}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,P_),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(){const e=this.menu;if(this._menuOpen||!e)return;const t=this._createOverlay(e),s=t.getConfig(),u=s.positionStrategy;this._setPosition(e,u),s.hasBackdrop=e.hasBackdrop??!this.triggersSubmenu(),t.attach(this._getPortal(e)),e.lazyContent&&e.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(e),e instanceof bs&&(e._startAnimation(),e._directDescendantItems.changes.pipe(_t(e.close)).subscribe(()=>{u.withLockedPosition(!1).reapplyLastPosition(),u.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;const t=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,t instanceof bs?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe((0,ii.h)(s=>"void"===s.toState),(0,qt.q)(1),_t(t.lazyContent._attached)).subscribe({next:()=>t.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),t?.lazyContent?.detach())}_initMenu(e){e.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,e.direction=this.dir,this._setMenuElevation(e),e.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(e){if(e.setElevation){let t=0,s=e.parentMenu;for(;s;)t++,s=s.parentMenu;e.setElevation(t)}}_setIsMenuOpen(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e)}_createOverlay(e){if(!this._overlayRef){const t=this._getOverlayConfig(e);this._subscribeToPositions(e,t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(e){return new Ml({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e,t){e.setPositionClasses&&t.positionChanges.subscribe(s=>{const u="start"===s.connectionPair.overlayX?"after":"before",d="top"===s.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>e.setPositionClasses(u,d)):e.setPositionClasses(u,d)})}_setPosition(e,t){let[s,u]="before"===e.xPosition?["end","start"]:["start","end"],[d,l]="above"===e.yPosition?["bottom","top"]:["top","bottom"],[n,i]=[d,l],[o,c]=[s,u],h=0;if(this.triggersSubmenu()){if(c=s="before"===e.xPosition?"start":"end",u=o="end"===s?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const m=this._parentMaterialMenu.items.first;this._parentInnerPadding=m?m._getHostElement().offsetTop:0}h="bottom"===d?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(n="top"===d?"bottom":"top",i="top"===l?"bottom":"top");t.withPositions([{originX:s,originY:n,overlayX:o,overlayY:d,offsetY:h},{originX:u,originY:n,overlayX:c,overlayY:d,offsetY:h},{originX:s,originY:i,overlayX:o,overlayY:l,offsetY:-h},{originX:u,originY:i,overlayX:c,overlayY:l,offsetY:-h}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),t=this._overlayRef.detachments(),s=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,ke.of)(),u=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,ii.h)(d=>d!==this._menuItemInstance),(0,ii.h)(()=>this._menuOpen)):(0,ke.of)();return(0,Ln.T)(e,s,u,t)}_handleMousedown(e){_l(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){const t=e.keyCode;(13===t||32===t)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===t&&"ltr"===this.dir||37===t&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,ii.h)(e=>e===this._menuItemInstance&&!e.disabled),(0,D_.g)(0,xd)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof bs&&this.menu._isAnimating?this.menu._animationDone.pipe((0,qt.q)(1),(0,D_.g)(0,xd),_t(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new $h(e.templateRef,this._viewContainerRef)),this._portal}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(_n),f.Y36(f.SBq),f.Y36(f.s_b),f.Y36(mp),f.Y36(pp,8),f.Y36(Fl,10),f.Y36(mn,8),f.Y36(In),f.Y36(f.R0b))},r.\u0275dir=f.lG2({type:r,hostVars:3,hostBindings:function(e,t){1&e&&f.NdJ("click",function(u){return t._handleClick(u)})("mousedown",function(u){return t._handleMousedown(u)})("keydown",function(u){return t._handleKeydown(u)}),2&e&&f.uIk("aria-haspopup",t.menu?"menu":null)("aria-expanded",t.menuOpen||null)("aria-controls",t.menuOpen?t.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),r})(),I_=(()=>{class r extends Yv{}return r.\u0275fac=function(){let a;return function(t){return(a||(a=f.n5z(r)))(t||r)}}(),r.\u0275dir=f.lG2({type:r,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[f.qOj]}),r})(),Nl=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({providers:[Ul],imports:[M.ez,$e,Vn,va,Ca,$e]}),r})();var k_=E(4742),V_=E(1810);function gp(...r){const a=(0,qf.jO)(r),{args:e,keys:t}=(0,k_.D)(r),s=new Fi.y(u=>{const{length:d}=e;if(!d)return void u.complete();const l=new Array(d);let n=d,i=d;for(let o=0;o{c||(c=!0,i--),l[o]=h},()=>n--,void 0,()=>{(!n||!c)&&(i||u.next(t?(0,V_.n)(t,l):l),u.complete())}))}});return a?s.pipe((0,wd.Z)(a)):s}const B_=["*"];let Qd;function Yd(r){return function Jv(){if(void 0===Qd&&(Qd=null,typeof window<"u")){const r=window;void 0!==r.trustedTypes&&(Qd=r.trustedTypes.createPolicy("angular#components",{createHTML:a=>a}))}return Qd}()?.createHTML(r)||r}function Kv(r){return Error(`Unable to find icon with the name "${r}"`)}function Zv(r){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${r}".`)}function _p(r){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${r}".`)}class cr{constructor(a,e,t){this.url=a,this.svgText=e,this.options=t}}let ql=(()=>{class r{constructor(e,t,s,u){this._httpClient=e,this._sanitizer=t,this._errorHandler=u,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=s}addSvgIcon(e,t,s){return this.addSvgIconInNamespace("",e,t,s)}addSvgIconLiteral(e,t,s){return this.addSvgIconLiteralInNamespace("",e,t,s)}addSvgIconInNamespace(e,t,s,u){return this._addSvgIconConfig(e,t,new cr(s,null,u))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,t,s,u){const d=this._sanitizer.sanitize(f.q3G.HTML,s);if(!d)throw _p(s);const l=Yd(d);return this._addSvgIconConfig(e,t,new cr("",l,u))}addSvgIconSet(e,t){return this.addSvgIconSetInNamespace("",e,t)}addSvgIconSetLiteral(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}addSvgIconSetInNamespace(e,t,s){return this._addSvgIconSetConfig(e,new cr(t,null,s))}addSvgIconSetLiteralInNamespace(e,t,s){const u=this._sanitizer.sanitize(f.q3G.HTML,t);if(!u)throw _p(t);const d=Yd(u);return this._addSvgIconSetConfig(e,new cr("",d,s))}registerFontClassAlias(e,t=e){return this._fontCssClassesByAlias.set(e,t),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const t=this._sanitizer.sanitize(f.q3G.RESOURCE_URL,e);if(!t)throw Zv(e);const s=this._cachedIconsByUrl.get(t);return s?(0,ke.of)(Ta(s)):this._loadSvgIconFromConfig(new cr(e,null)).pipe((0,jt.b)(u=>this._cachedIconsByUrl.set(t,u)),(0,pt.U)(u=>Ta(u)))}getNamedSvgIcon(e,t=""){const s=O_(t,e);let u=this._svgIconConfigs.get(s);if(u)return this._getSvgFromConfig(u);if(u=this._getIconConfigFromResolvers(t,e),u)return this._svgIconConfigs.set(s,u),this._getSvgFromConfig(u);const d=this._iconSetConfigs.get(t);return d?this._getSvgFromIconSetConfigs(e,d):(0,en._)(Kv(s))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?(0,ke.of)(Ta(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe((0,pt.U)(t=>Ta(t)))}_getSvgFromIconSetConfigs(e,t){const s=this._extractIconWithNameFromAnySet(e,t);return s?(0,ke.of)(s):gp(t.filter(d=>!d.svgText).map(d=>this._loadSvgIconSetFromConfig(d).pipe((0,Bt.K)(l=>{const i=`Loading icon set URL: ${this._sanitizer.sanitize(f.q3G.RESOURCE_URL,d.url)} failed: ${l.message}`;return this._errorHandler.handleError(new Error(i)),(0,ke.of)(null)})))).pipe((0,pt.U)(()=>{const d=this._extractIconWithNameFromAnySet(e,t);if(!d)throw Kv(e);return d}))}_extractIconWithNameFromAnySet(e,t){for(let s=t.length-1;s>=0;s--){const u=t[s];if(u.svgText&&u.svgText.toString().indexOf(e)>-1){const d=this._svgElementFromConfig(u),l=this._extractSvgIconFromSet(d,e,u.options);if(l)return l}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe((0,jt.b)(t=>e.svgText=t),(0,pt.U)(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?(0,ke.of)(null):this._fetchIcon(e).pipe((0,jt.b)(t=>e.svgText=t))}_extractSvgIconFromSet(e,t,s){const u=e.querySelector(`[id="${t}"]`);if(!u)return null;const d=u.cloneNode(!0);if(d.removeAttribute("id"),"svg"===d.nodeName.toLowerCase())return this._setSvgAttributes(d,s);if("symbol"===d.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(d),s);const l=this._svgElementFromString(Yd(""));return l.appendChild(d),this._setSvgAttributes(l,s)}_svgElementFromString(e){const t=this._document.createElement("DIV");t.innerHTML=e;const s=t.querySelector("svg");if(!s)throw Error(" tag not found");return s}_toSvgElement(e){const t=this._svgElementFromString(Yd("")),s=e.attributes;for(let u=0;uYd(i)),Et(()=>this._inProgressUrlFetches.delete(d)),(0,Lg.B)());return this._inProgressUrlFetches.set(d,n),n}_addSvgIconConfig(e,t,s){return this._svgIconConfigs.set(O_(e,t),s),this}_addSvgIconSetConfig(e,t){const s=this._iconSetConfigs.get(e);return s?s.push(t):this._iconSetConfigs.set(e,[t]),this}_svgElementFromConfig(e){if(!e.svgElement){const t=this._svgElementFromString(e.svgText);this._setSvgAttributes(t,e.options),e.svgElement=t}return e.svgElement}_getIconConfigFromResolvers(e,t){for(let s=0;sa?a.pathname+a.search:""}}}),j_=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],aA=j_.map(r=>`[${r}]`).join(", "),Cs=/^url\(['"]?#(.*?)['"]?\)$/;let qr=(()=>{class r extends iA{constructor(e,t,s,u,d,l){super(e),this._iconRegistry=t,this._location=u,this._errorHandler=d,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=wt.w0.EMPTY,l&&(l.color&&(this.color=this.defaultColor=l.color),l.fontSet&&(this.fontSet=l.fontSet)),s||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=Ye(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const t=this._cleanupFontValue(e);t!==this._fontSet&&(this._fontSet=t,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const t=this._cleanupFontValue(e);t!==this._fontIcon&&(this._fontIcon=t,this._updateFontIconClasses())}_splitIconName(e){if(!e)return["",""];const t=e.split(":");switch(t.length){case 1:return["",t[0]];case 2:return t;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.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(e){this._clearSvgElement();const t=this._location.getPathname();this._previousPath=t,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(t),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let t=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();t--;){const s=e.childNodes[t];(1!==s.nodeType||"svg"===s.nodeName.toLowerCase())&&s.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,t=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(s=>s.length>0);this._previousFontSetClass.forEach(s=>e.classList.remove(s)),t.forEach(s=>e.classList.add(s)),this._previousFontSetClass=t,this.fontIcon!==this._previousFontIconClass&&!t.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return"string"==typeof e?e.trim().split(" ")[0]:e}_prependPathToReferences(e){const t=this._elementsWithExternalReferences;t&&t.forEach((s,u)=>{s.forEach(d=>{u.setAttribute(d.name,`url('${e}#${d.value}')`)})})}_cacheChildrenWithExternalReferences(e){const t=e.querySelectorAll(aA),s=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let u=0;u{const l=t[u],n=l.getAttribute(d),i=n?n.match(Cs):null;if(i){let o=s.get(l);o||(o=[],s.set(l,o)),o.push({name:d,value:i[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[t,s]=this._splitIconName(e);t&&(this._svgNamespace=t),s&&(this._svgName=s),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(s,t).pipe((0,qt.q)(1)).subscribe(u=>this._setSvgElement(u),u=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${t}:${s}! ${u.message}`))})}}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(f.SBq),f.Y36(ql),f.$8M("aria-hidden"),f.Y36(rA),f.Y36(f.qLn),f.Y36(nA,8))},r.\u0275cmp=f.Xpm({type:r,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,t){2&e&&(f.uIk("data-mat-icon-type",t._usingFontIcon()?"font":"svg")("data-mat-icon-name",t._svgName||t.fontIcon)("data-mat-icon-namespace",t._svgNamespace||t.fontSet),f.ekj("mat-icon-inline",t.inline)("mat-icon-no-color","primary"!==t.color&&"accent"!==t.color&&"warn"!==t.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[f.qOj],ngContentSelectors:B_,decls:1,vars:0,template:function(e,t){1&e&&(f.F$t(),f.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[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}"],encapsulation:2,changeDetection:0}),r})(),Un=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[$e,$e]}),r})();class zl{}let bp=(()=>{class r extends zl{getTranslation(e){return(0,ke.of)({})}}return r.\u0275fac=function(){let a;return function(t){return(a||(a=f.n5z(r)))(t||r)}}(),r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac}),r})();class Cp{}let wp=(()=>{class r{handle(e){return e.key}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac}),r})();function Jd(r,a){if(r===a)return!0;if(null===r||null===a)return!1;if(r!=r&&a!=a)return!0;let s,u,d,e=typeof r;if(e==typeof a&&"object"==e){if(!Array.isArray(r)){if(Array.isArray(a))return!1;for(u in d=Object.create(null),r){if(!Jd(r[u],a[u]))return!1;d[u]=!0}for(u in a)if(!(u in d)&&typeof a[u]<"u")return!1;return!0}if(!Array.isArray(a))return!1;if((s=r.length)==a.length){for(u=0;u{yp(a[t])?t in r?e[t]=vp(r[t],a[t]):Object.assign(e,{[t]:a[t]}):Object.assign(e,{[t]:a[t]})}),e}class Gl{}let F_=(()=>{class r extends Gl{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(e,t){let s;return s="string"==typeof e?this.interpolateString(e,t):"function"==typeof e?this.interpolateFunction(e,t):e,s}getValue(e,t){let s="string"==typeof t?t.split("."):[t];t="";do{t+=s.shift(),!dr(e)||!dr(e[t])||"object"!=typeof e[t]&&s.length?s.length?t+=".":e=void 0:(e=e[t],t="")}while(s.length);return e}interpolateFunction(e,t){return e(t)}interpolateString(e,t){return t?e.replace(this.templateMatcher,(s,u)=>{let d=this.getValue(t,u);return dr(d)?d:s}):e}}return r.\u0275fac=function(){let a;return function(t){return(a||(a=f.n5z(r)))(t||r)}}(),r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac}),r})();class Kd{}let U_=(()=>{class r extends Kd{compile(e,t){return e}compileTranslations(e,t){return e}}return r.\u0275fac=function(){let a;return function(t){return(a||(a=f.n5z(r)))(t||r)}}(),r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac}),r})();class Zd{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new f.vpe,this.onLangChange=new f.vpe,this.onDefaultLangChange=new f.vpe}}const Ap=new f.OlP("USE_STORE"),Xd=new f.OlP("USE_DEFAULT_LANG"),xp=new f.OlP("DEFAULT_LANGUAGE"),Tp=new f.OlP("USE_EXTEND");let Bi=(()=>{class r{constructor(e,t,s,u,d,l=!0,n=!1,i=!1,o){this.store=e,this.currentLoader=t,this.compiler=s,this.parser=u,this.missingTranslationHandler=d,this.useDefaultLang=l,this.isolate=n,this.extend=i,this.pending=!1,this._onTranslationChange=new f.vpe,this._onLangChange=new f.vpe,this._onDefaultLangChange=new f.vpe,this._langs=[],this._translations={},this._translationRequests={},o&&this.setDefaultLang(o)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(e){this.isolate?this._currentLang=e:this.store.currentLang=e}get langs(){return this.isolate?this._langs:this.store.langs}set langs(e){this.isolate?this._langs=e:this.store.langs=e}get translations(){return this.isolate?this._translations:this.store.translations}set translations(e){this.isolate?this._translations=e:this.store.translations=e}setDefaultLang(e){if(e===this.defaultLang)return;let t=this.retrieveTranslations(e);typeof t<"u"?(null==this.defaultLang&&(this.defaultLang=e),t.pipe((0,qt.q)(1)).subscribe(s=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(e===this.currentLang)return(0,ke.of)(this.translations[e]);let t=this.retrieveTranslations(e);return typeof t<"u"?(this.currentLang||(this.currentLang=e),t.pipe((0,qt.q)(1)).subscribe(s=>{this.changeLang(e)}),t):(this.changeLang(e),(0,ke.of)(this.translations[e]))}retrieveTranslations(e){let t;return(typeof this.translations[e]>"u"||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),t=this._translationRequests[e]),t}getTranslation(e){this.pending=!0;const t=this.currentLoader.getTranslation(e).pipe(Sl(1),(0,qt.q)(1));return this.loadingTranslations=t.pipe((0,pt.U)(s=>this.compiler.compileTranslations(s,e)),Sl(1),(0,qt.q)(1)),this.loadingTranslations.subscribe({next:s=>{this.translations[e]=this.extend&&this.translations[e]?{...s,...this.translations[e]}:s,this.updateLangs(),this.pending=!1},error:s=>{this.pending=!1}}),t}setTranslation(e,t,s=!1){t=this.compiler.compileTranslations(t,e),this.translations[e]=(s||this.extend)&&this.translations[e]?vp(this.translations[e],t):t,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return this.langs}addLangs(e){e.forEach(t=>{-1===this.langs.indexOf(t)&&this.langs.push(t)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(e,t,s){let u;if(t instanceof Array){let d={},l=!1;for(let n of t)d[n]=this.getParsedResult(e,n,s),ri(d[n])&&(l=!0);return l?gp(t.map(i=>ri(d[i])?d[i]:(0,ke.of)(d[i]))).pipe((0,pt.U)(i=>{let o={};return i.forEach((c,h)=>{o[t[h]]=c}),o})):d}if(e&&(u=this.parser.interpolate(this.parser.getValue(e,t),s)),typeof u>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(u=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],t),s)),typeof u>"u"){let d={key:t,translateService:this};typeof s<"u"&&(d.interpolateParams=s),u=this.missingTranslationHandler.handle(d)}return typeof u<"u"?u:t}get(e,t){if(!dr(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,un.b)(s=>ri(s=this.getParsedResult(s,e,t))?s:(0,ke.of)(s)));{let s=this.getParsedResult(this.translations[this.currentLang],e,t);return ri(s)?s:(0,ke.of)(s)}}getStreamOnTranslationChange(e,t){if(!dr(e)||!e.length)throw new Error('Parameter "key" required');return(0,na.z)(dn(()=>this.get(e,t)),this.onTranslationChange.pipe((0,bt.w)(s=>{const u=this.getParsedResult(s.translations,e,t);return"function"==typeof u.subscribe?u:(0,ke.of)(u)})))}stream(e,t){if(!dr(e)||!e.length)throw new Error('Parameter "key" required');return(0,na.z)(dn(()=>this.get(e,t)),this.onLangChange.pipe((0,bt.w)(s=>{const u=this.getParsedResult(s.translations,e,t);return ri(u)?u:(0,ke.of)(u)})))}instant(e,t){if(!dr(e)||!e.length)throw new Error('Parameter "key" required');let s=this.getParsedResult(this.translations[this.currentLang],e,t);if(ri(s)){if(e instanceof Array){let u={};return e.forEach((d,l)=>{u[e[l]]=e[l]}),u}return e}return s}set(e,t,s=this.currentLang){this.translations[s][e]=this.compiler.compile(t,s),this.updateLangs(),this.onTranslationChange.emit({lang:s,translations:this.translations[s]})}changeLang(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),null==this.defaultLang&&this.changeDefaultLang(e)}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return this.resetLang(e),this.getTranslation(e)}resetLang(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof e>"u"?void 0:(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,e}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(Zd),f.LFG(zl),f.LFG(Kd),f.LFG(Gl),f.LFG(Cp),f.LFG(Xd),f.LFG(Ap),f.LFG(Tp),f.LFG(xp))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac}),r})(),vi=(()=>{class r{constructor(e,t){this.translate=e,this._ref=t,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(e,t,s){let u=d=>{this.value=void 0!==d?d:e,this.lastKey=e,this._ref.markForCheck()};if(s){let d=this.translate.getParsedResult(s,e,t);ri(d.subscribe)?d.subscribe(u):u(d)}this.translate.get(e,t).subscribe(u)}transform(e,...t){if(!e||!e.length)return e;if(Jd(e,this.lastKey)&&Jd(t,this.lastParams))return this.value;let s;if(dr(t[0])&&t.length)if("string"==typeof t[0]&&t[0].length){let u=t[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{s=JSON.parse(u)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${t[0]}`)}}else"object"==typeof t[0]&&!Array.isArray(t[0])&&(s=t[0]);return this.lastKey=e,this.lastParams=t,this.updateValue(e,s),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(u=>{this.lastKey&&u.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,s,u.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(u=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,s,u.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,s))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(Bi,16),f.Y36(f.sBO,16))},r.\u0275pipe=f.Yjl({name:"translate",type:r,pure:!1}),r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac}),r})(),ws=(()=>{class r{static forRoot(e={}){return{ngModule:r,providers:[e.loader||{provide:zl,useClass:bp},e.compiler||{provide:Kd,useClass:U_},e.parser||{provide:Gl,useClass:F_},e.missingTranslationHandler||{provide:Cp,useClass:wp},Zd,{provide:Ap,useValue:e.isolate},{provide:Xd,useValue:e.useDefaultLang},{provide:Tp,useValue:e.extend},{provide:xp,useValue:e.defaultLanguage},Bi]}}static forChild(e={}){return{ngModule:r,providers:[e.loader||{provide:zl,useClass:bp},e.compiler||{provide:Kd,useClass:U_},e.parser||{provide:Gl,useClass:F_},e.missingTranslationHandler||{provide:Cp,useClass:wp},{provide:Ap,useValue:e.isolate},{provide:Xd,useValue:e.useDefaultLang},{provide:Tp,useValue:e.extend},{provide:xp,useValue:e.defaultLanguage},Bi]}}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({}),r})(),oA=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[Nr,Nl,Un,Bn,ws,M.ez]}),r})();var sA=E(5861);function N_(r,a){}class Wl{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0}}let q_=(()=>{class r extends Yh{constructor(e,t,s,u,d,l,n,i){super(),this._elementRef=e,this._focusTrapFactory=t,this._config=u,this._interactivityChecker=d,this._ngZone=l,this._overlayRef=n,this._focusMonitor=i,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=o=>{this._portalOutlet.hasAttached();const c=this._portalOutlet.attachDomPortal(o);return this._contentAttached(),c},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=s}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();const t=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),t}attachTemplatePortal(e){this._portalOutlet.hasAttached();const t=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),t}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const s=()=>{e.removeEventListener("blur",s),e.removeEventListener("mousedown",s),e.removeAttribute("tabindex")};e.addEventListener("blur",s),e.addEventListener("mousedown",s)})),e.focus(t)}_focusByCssSelector(e,t){let s=this._elementRef.nativeElement.querySelector(e);s&&this._forceFocus(s,t)}_trapFocus(){const e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(t=>{t||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const e=this._config.restoreFocus;let t=null;if("string"==typeof e?t=this._document.querySelector(e):"boolean"==typeof e?t=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(t=e),this._config.restoreFocus&&t&&"function"==typeof t.focus){const s=ul(),u=this._elementRef.nativeElement;(!s||s===this._document.body||s===u||u.contains(s))&&(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,t=ul();return e===t||e.contains(t)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=ul())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(f.SBq),f.Y36(ud),f.Y36(M.K0,8),f.Y36(Wl),f.Y36(dd),f.Y36(f.R0b),f.Y36(gs),f.Y36(In))},r.\u0275cmp=f.Xpm({type:r,selectors:[["cdk-dialog-container"]],viewQuery:function(e,t){if(1&e&&f.Gf(ds,7),2&e){let s;f.iGM(s=f.CRH())&&(t._portalOutlet=s.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(e,t){2&e&&f.uIk("id",t._config.id||null)("role",t._config.role)("aria-modal",t._config.ariaModal)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null)},features:[f.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&f.YNc(0,N_,0,0,"ng-template",0)},dependencies:[ds],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),r})();class eu{constructor(a,e){this.overlayRef=a,this.config=e,this.closed=new He.x,this.disableClose=e.disableClose,this.backdropClick=a.backdropClick(),this.keydownEvents=a.keydownEvents(),this.outsidePointerEvents=a.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(t=>{27===t.keyCode&&!this.disableClose&&!Pn(t)&&(t.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(a,e){if(this.containerInstance){const t=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this.overlayRef.dispose(),t.next(a),t.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(a="",e=""){return this.overlayRef.updateSize({width:a,height:e}),this}addPanelClass(a){return this.overlayRef.addPanelClass(a),this}removePanelClass(a){return this.overlayRef.removePanelClass(a),this}}const z_=new f.OlP("DialogScrollStrategy"),lA=new f.OlP("DialogData"),cA=new f.OlP("DefaultDialogConfig"),Ep={provide:z_,deps:[_n],useFactory:function Sp(r){return()=>r.scrollStrategies.block()}};let G_=0,tu=(()=>{class r{constructor(e,t,s,u,d,l){this._overlay=e,this._injector=t,this._defaultOptions=s,this._parentDialog=u,this._overlayContainer=d,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new He.x,this._afterOpenedAtThisLevel=new He.x,this._ariaHiddenElements=new Map,this.afterAllClosed=dn(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(si(void 0))),this._scrollStrategy=l}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}open(e,t){(t={...this._defaultOptions||new Wl,...t}).id=t.id||"cdk-dialog-"+G_++,t.id&&this.getDialogById(t.id);const u=this._getOverlayConfig(t),d=this._overlay.create(u),l=new eu(d,t),n=this._attachContainer(d,l,t);return l.containerInstance=n,this._attachDialogContent(e,l,n,t),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(l),l.closed.subscribe(()=>this._removeOpenDialog(l,!0)),this.afterOpened.next(l),l}closeAll(){Mp(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){Mp(this._openDialogsAtThisLevel,e=>{!1===e.config.closeOnDestroy&&this._removeOpenDialog(e,!1)}),Mp(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){const t=new Ml({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}_attachContainer(e,t,s){const u=s.injector??s.viewContainerRef?.injector,d=[{provide:Wl,useValue:s},{provide:eu,useValue:t},{provide:gs,useValue:e}];let l;s.container?"function"==typeof s.container?l=s.container:(l=s.container.type,d.push(...s.container.providers(s))):l=q_;const n=new cs(l,s.viewContainerRef,f.zs3.create({parent:u||this._injector,providers:d}),s.componentFactoryResolver);return e.attach(n).instance}_attachDialogContent(e,t,s,u){const d=this._createInjector(u,t,s);if(e instanceof f.Rgc){let l={$implicit:u.data,dialogRef:t};u.templateContext&&(l={...l,..."function"==typeof u.templateContext?u.templateContext():u.templateContext}),s.attachTemplatePortal(new $h(e,null,l,d))}else{const l=s.attachComponentPortal(new cs(e,u.viewContainerRef,d,u.componentFactoryResolver));t.componentInstance=l.instance}}_createInjector(e,t,s){const u=e&&e.viewContainerRef&&e.viewContainerRef.injector,d=[{provide:lA,useValue:e.data},{provide:eu,useValue:t}];return e.providers&&("function"==typeof e.providers?d.push(...e.providers(t,e,s)):d.push(...e.providers)),e.direction&&(!u||!u.get(mn,null,f.XFs.Optional))&&d.push({provide:mn,useValue:{value:e.direction,change:(0,ke.of)()}}),f.zs3.create({parent:e.injector||u||this._injector,providers:d})}_removeOpenDialog(e,t){const s=this.openDialogs.indexOf(e);s>-1&&(this.openDialogs.splice(s,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((u,d)=>{u?d.setAttribute("aria-hidden",u):d.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),t&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const t=e.parentElement.children;for(let s=t.length-1;s>-1;s--){const u=t[s];u!==e&&"SCRIPT"!==u.nodeName&&"STYLE"!==u.nodeName&&!u.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(u,u.getAttribute("aria-hidden")),u.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(_n),f.LFG(f.zs3),f.LFG(cA,8),f.LFG(r,12),f.LFG(Fr),f.LFG(z_))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac}),r})();function Mp(r,a){let e=r.length;for(;e--;)a(r[e])}let dA=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({providers:[tu,Ep],imports:[va,ho,Cl,ho]}),r})();function Dp(r,a){}const ys={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},W_={dialogContainer:Zt("dialogContainer",[ft("void, exit",Ne({opacity:0,transform:"scale(0.7)"})),ft("enter",Ne({transform:"none"})),yt("* => enter",tp([vt("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",Ne({transform:"none",opacity:1})),Ld("@*",kl(),{optional:!0})]),ys),yt("* => void, * => exit",tp([vt("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",Ne({opacity:0})),Ld("@*",kl(),{optional:!0})]),ys)])};class ur{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="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0,this.enterAnimationDuration=ys.params.enterAnimationDuration,this.exitAnimationDuration=ys.params.exitAnimationDuration}}let $_=(()=>{class r extends q_{constructor(e,t,s,u,d,l,n,i){super(e,t,s,u,d,l,n,i),this._animationStateChanged=new f.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(f.SBq),f.Y36(ud),f.Y36(M.K0,8),f.Y36(ur),f.Y36(dd),f.Y36(f.R0b),f.Y36(gs),f.Y36(In))},r.\u0275cmp=f.Xpm({type:r,selectors:[["ng-component"]],features:[f.qOj],decls:0,vars:0,template:function(e,t){},encapsulation:2}),r})(),uA=(()=>{class r extends $_{constructor(e,t,s,u,d,l,n,i,o){super(e,t,s,u,d,l,n,o),this._changeDetectorRef=i,this._state="enter"}_onAnimationDone({toState:e,totalTime:t}){"enter"===e?this._openAnimationDone(t):"exit"===e&&this._animationStateChanged.next({state:"closed",totalTime:t})}_onAnimationStart({toState:e,totalTime:t}){"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:t}):("exit"===e||"void"===e)&&this._animationStateChanged.next({state:"closing",totalTime:t})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||ys.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||ys.params.exitAnimationDuration}}}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(f.SBq),f.Y36(ud),f.Y36(M.K0,8),f.Y36(ur),f.Y36(dd),f.Y36(f.R0b),f.Y36(gs),f.Y36(f.sBO),f.Y36(In))},r.\u0275cmp=f.Xpm({type:r,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(e,t){1&e&&f.WFA("@dialogContainer.start",function(u){return t._onAnimationStart(u)})("@dialogContainer.done",function(u){return t._onAnimationDone(u)}),2&e&&(f.Ikx("id",t._config.id),f.uIk("aria-modal",t._config.ariaModal)("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),f.d8E("@dialogContainer",t._getAnimationState()))},features:[f.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&f.YNc(0,Dp,0,0,"ng-template",0)},dependencies:[ds],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.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.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}"],encapsulation:2,data:{animation:[W_.dialogContainer]}}),r})();class hr{constructor(a,e,t){this._ref=a,this._containerInstance=t,this._afterOpened=new He.x,this._beforeClosed=new He.x,this._state=0,this.disableClose=e.disableClose,this.id=a.id,t._animationStateChanged.pipe((0,ii.h)(s=>"opened"===s.state),(0,qt.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),t._animationStateChanged.pipe((0,ii.h)(s=>"closed"===s.state),(0,qt.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),a.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,Ln.T)(this.backdropClick(),this.keydownEvents().pipe((0,ii.h)(s=>27===s.keyCode&&!this.disableClose&&!Pn(s)))).subscribe(s=>{this.disableClose||(s.preventDefault(),function Q_(r,a,e){r._closeInteractionType=a,r.close(e)}(this,"keydown"===s.type?"keyboard":"mouse"))})}close(a){this._result=a,this._containerInstance._animationStateChanged.pipe((0,ii.h)(e=>"closing"===e.state),(0,qt.q)(1)).subscribe(e=>{this._beforeClosed.next(a),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(a){let e=this._ref.config.positionStrategy;return a&&(a.left||a.right)?a.left?e.left(a.left):e.right(a.right):e.centerHorizontally(),a&&(a.top||a.bottom)?a.top?e.top(a.top):e.bottom(a.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(a="",e=""){return this._ref.updateSize(a,e),this}addPanelClass(a){return this._ref.addPanelClass(a),this}removePanelClass(a){return this._ref.removePanelClass(a),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}const Sa=new f.OlP("MatDialogData"),hA=new f.OlP("mat-dialog-default-options"),iu=new f.OlP("mat-dialog-scroll-strategy"),Hp={provide:iu,deps:[_n],useFactory:function pA(r){return()=>r.scrollStrategies.block()}};let Y_=0,J_=(()=>{class r{constructor(e,t,s,u,d,l,n,i,o,c){this._overlay=e,this._defaultOptions=s,this._parentDialog=u,this._dialogRefConstructor=n,this._dialogContainerType=i,this._dialogDataToken=o,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new He.x,this._afterOpenedAtThisLevel=new He.x,this._idPrefix="mat-dialog-",this.afterAllClosed=dn(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(si(void 0))),this._scrollStrategy=l,this._dialog=t.get(tu)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(e,t){let s;(t={...this._defaultOptions||new ur,...t}).id=t.id||`${this._idPrefix}${Y_++}`,t.scrollStrategy=t.scrollStrategy||this._scrollStrategy();const u=this._dialog.open(e,{...t,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:ur,useValue:t},{provide:Wl,useValue:t}]},templateContext:()=>({dialogRef:s}),providers:(d,l,n)=>(s=new this._dialogRefConstructor(d,t,n),s.updatePosition(t?.position),[{provide:this._dialogContainerType,useValue:n},{provide:this._dialogDataToken,useValue:l.data},{provide:this._dialogRefConstructor,useValue:s}])});return s.componentInstance=u.componentInstance,this.openDialogs.push(s),this.afterOpened.next(s),s.afterClosed().subscribe(()=>{const d=this.openDialogs.indexOf(s);d>-1&&(this.openDialogs.splice(d,1),this.openDialogs.length||this._getAfterAllClosed().next())}),s}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let t=e.length;for(;t--;)e[t].close()}}return r.\u0275fac=function(e){f.$Z()},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac}),r})(),Cn=(()=>{class r extends J_{constructor(e,t,s,u,d,l,n,i){super(e,t,u,l,n,d,hr,uA,Sa,i)}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(_n),f.LFG(f.zs3),f.LFG(M.Ye,8),f.LFG(hA,8),f.LFG(iu),f.LFG(r,12),f.LFG(Fr),f.LFG(f.QbO,8))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac}),r})(),K_=0,Ea=(()=>{class r{constructor(e,t,s){this._dialogRef=e,this._elementRef=t,this._dialog=s,this.id="mat-dialog-title-"+K_++}ngOnInit(){this._dialogRef||(this._dialogRef=function Z_(r,a){let e=r.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-dialog-container");)e=e.parentElement;return e?a.find(t=>t.id===e.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const e=this._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=this.id)})}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(hr,8),f.Y36(f.SBq),f.Y36(Cn))},r.\u0275dir=f.lG2({type:r,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,t){2&e&&f.Ikx("id",t.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),r})(),Ma=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275dir=f.lG2({type:r,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),r})(),Da=(()=>{class r{constructor(){this.align="start"}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275dir=f.lG2({type:r,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(e,t){2&e&&f.ekj("mat-dialog-actions-align-center","center"===t.align)("mat-dialog-actions-align-end","end"===t.align)},inputs:{align:"align"}}),r})(),Rp=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({providers:[Cn,Hp],imports:[dA,va,ho,$e,$e]}),r})();function Pp(){return(Pp=(0,sA.Z)(function*(r,a){yield CA(r),a()})).apply(this,arguments)}function CA(r){return new Promise(a=>setTimeout(a,r))}function pr(){const r=new ur;return r.disableClose=!0,r.autoFocus=!1,r}function Bp(r,a){const e=a.split("&");for(const t of e){const[s,u]=t.split("=");if(s.includes(r))return u}return""}E(4327),new Intl.Collator("cs",{numeric:!0});class kA{static passwordMatchValidator(a){const e=a.get("passwordCtrl").value,t=a.get("passwordAgainCtrl").value;return a.get("passwordAgainCtrl").setErrors(e!==t?{noPasswordMatch:!0}:null),null}static patternValidator(a){return e=>{if(!e.value)return null;let t=0;for(const s of a)t+=s.test(e.value)?1:0;return t>=3?null:{isWeak:!0}}}}let mi=(()=>{class r{constructor(){this.branding=""}setInstanceConfig(e){this.instanceConfig=e}setDefaultConfig(e){this.defaultConfig=e}getAppsConfig(){return this.appsConfig}setAppsConfig(e){this.appsConfig=e}setPerunPrincipal(e){this.principal=e}getPerunPrincipal(){return this.principal}getInitialPageId(){return this.initialPageId}setInitialPageId(e){this.initialPageId=e}getLoginAttributeNames(){return this.getProperty("login_namespace_attributes")}getMemberProfileAttributeNames(){return this.getProperty("member_profile_attributes_friendly_names")}setBanding(e){this.branding=e}getProperty(e){if(!this.instanceConfig||!this.defaultConfig)return null;const t=[this.instanceConfig?.brandings?.[this.branding],this.instanceConfig],s=this.defaultConfig[e];let u=null;for(const d of t)d&&null==u&&(u=d[e]);return null===u?s:this.addMissingValuesToProperty(u,s)}addMissingValuesToProperty(e,t){if("object"!=typeof e||Array.isArray(e)||null==e){if(null!=e)return e}else for(const s of Object.keys(t))t[s]=this.addMissingValuesToProperty(e[s],t[s]);return t}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();var bo=E(1214);let fr=(()=>{class r{constructor(e,t,s,u,d){this.injector=e,this.store=t,this.dialog=s,this.route=u,this.oauthService=d,setTimeout(()=>{this.router=this.injector.get(Qt),this.startIdpFilterKeeper()}),this.route.queryParams.subscribe(l=>{l.idpFilter&&(this.filterShortname=String(l.idpFilter))})}loadOidcConfigData(){this.oauthService.configure(this.getClientConfig())}logout(){sessionStorage.getItem("baPrincipal")?(sessionStorage.removeItem("baPrincipal"),sessionStorage.removeItem("basicUsername"),sessionStorage.removeItem("basicPassword"),sessionStorage.setItem("baLogout","true"),this.router.navigate(["/service-access"],{queryParamsHandling:"preserve"})):this.oauthService.logOut()}isLoggedIn(){return this.oauthService.hasValidAccessToken()}getAuthorizationHeaderValue(){return this.oauthService.hasValidAccessToken()?"Bearer "+this.oauthService.getAccessToken():""}startAuthentication(){this.oauthService.loadDiscoveryDocumentAndLogin()}getIdpFilter(){return this.filterShortname}getClientConfig(){const e=this.setIdpFilter(),u=.5+.25*Math.random(),d=e?{acr_values:e}:{},l=this.store.getProperty("oidc_client");if(l.oauth_scopes.split(" ").includes("offline_access")&&l.oauth_offline_access_consent_prompt&&(d.prompt="consent"),(sessionStorage.getItem("mfa_route")||sessionStorage.getItem("mfaProcessed"))&&(d.acr_values="https://refeds.org/profile/mfa"),sessionStorage.getItem("mfa_route")&&(d.prompt?d.prompt+=" login":d.prompt="login",d.max_age="0"),"Linker"===this.store.getProperty("application")){d.prompt?d.prompt+=" login":d.prompt="login";const n=Bp("idphint",location.search.substring(1));n&&(d.idphint=n)}return{requestAccessToken:!0,issuer:l.oauth_authority,clientId:l.oauth_client_id,redirectUri:l.oauth_redirect_uri,postLogoutRedirectUri:l.oauth_post_logout_redirect_uri,responseType:l.oauth_response_type,scope:l.oauth_scopes,clockSkewInSec:1,timeoutFactor:u,userinfoEndpoint:this.store.getProperty("oidc_client").user_info_endpoint_url,customQueryParams:d}}setIdpFilter(){const e=location.search.length?location.search.substring(1).split("&"):[];this.filterShortname=null;const t=this.store.getProperty("oidc_client").filters;if(!t)return null;let s=null;return e.forEach(u=>{const d=u.split("=");"idpFilter"===d[0]&&t[d[1]]&&(this.filterShortname=d[1],s=t[d[1]])}),t.default&&!s?(this.filterShortname="default",t.default):s}startIdpFilterKeeper(){this.router.events.pipe((0,ii.h)(e=>e instanceof Dr)).subscribe(()=>{const e={idpFilter:this.getIdpFilter()};this.router.navigate([],{relativeTo:this.route,queryParams:"default"===e.idpFilter?{}:e,queryParamsHandling:"merge",replaceUrl:!0})})}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(f.zs3),f.LFG(mi),f.LFG(Cn),f.LFG(Hr),f.LFG(bo.Ct))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),cb=(()=>{class r{constructor(e){this.dialogRef=e}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(hr))},r.\u0275cmp=f.Xpm({type:r,selectors:[["perun-web-apps-user-dont-exist-dialog"]],decls:3,vars:3,consts:[["mat-dialog-content","",1,"mt-2","mb-2"]],template:function(e,t){1&e&&(f.TgZ(0,"h2",0),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&e&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.USER_DONT_EXIST.TITLE"),"\n"))},dependencies:[Ma,vi]}),r})();var db=E(930);function Op(r,a){const e="object"==typeof a;return new Promise((t,s)=>{const u=new db.Hp({next:d=>{t(d),u.unsubscribe()},error:s,complete:()=>{e?t(a.defaultValue):s(new ia.K)}});r.subscribe(u)})}function ub(r,a){1&r&&(f.TgZ(0,"mat-icon",2),f._uU(1," info "),f.qZA())}function VA(r,a){1&r&&(f.TgZ(0,"mat-icon",2),f._uU(1," warning "),f.qZA())}function hb(r,a){1&r&&(f.TgZ(0,"mat-icon",2),f._uU(1," dangerous "),f.qZA())}function pb(r,a){1&r&&(f.TgZ(0,"mat-icon",2),f._uU(1," check_circle "),f.qZA())}const BA=["*"];let Ha=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275cmp=f.Xpm({type:r,selectors:[["perun-web-apps-alert"]],inputs:{alert_type:"alert_type"},ngContentSelectors:BA,decls:6,vars:12,consts:[[1,"perun-alert","d-flex","align-items-flex-start"],["class","perun-alert-icon",4,"ngIf"],[1,"perun-alert-icon"]],template:function(e,t){1&e&&(f.F$t(),f.TgZ(0,"div",0),f.YNc(1,ub,2,0,"mat-icon",1),f.YNc(2,VA,2,0,"mat-icon",1),f.YNc(3,hb,2,0,"mat-icon",1),f.YNc(4,pb,2,0,"mat-icon",1),f.Hsn(5),f.qZA()),2&e&&(f.ekj("warn-alert","warn"===t.alert_type)("error-alert","error"===t.alert_type)("success-alert","success"===t.alert_type)("info-alert","info"===t.alert_type),f.xp6(1),f.Q6J("ngIf","info"===t.alert_type),f.xp6(1),f.Q6J("ngIf","warn"===t.alert_type),f.xp6(1),f.Q6J("ngIf","error"===t.alert_type),f.xp6(1),f.Q6J("ngIf","success"===t.alert_type))},dependencies:[qr,M.O5],styles:[".perun-alert[_ngcontent-%COMP%]{position:relative;padding:.75rem 1.25rem;margin-top:1rem;margin-bottom:1rem}.perun-alert.info-alert[_ngcontent-%COMP%]{font-style:italic;color:gray;text-align:left;border:1px #b3b3b3 solid;border-radius:10px}.perun-alert.warn-alert[_ngcontent-%COMP%]{font-weight:700;text-align:left;border:1px #ececec solid;border-radius:10px;background-color:#ececec}.perun-alert-icon[_ngcontent-%COMP%]{padding-right:2rem}.perun-alert.error-alert[_ngcontent-%COMP%]{text-align:left;border:1px #fedcda solid;border-radius:10px;background-color:#fedcda}.perun-alert.success-alert[_ngcontent-%COMP%]{text-align:left;border:1px #d7ffd7 solid;border-radius:10px;background-color:#d7ffd7}"]}),r})(),OA=(()=>{class r{constructor(e,t){this.dialogRef=e,this.data=t}cancel(){this.dialogRef.close(!1)}submit(){this.dialogRef.close(!0)}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(hr),f.Y36(Sa))},r.\u0275cmp=f.Xpm({type:r,selectors:[["perun-web-apps-mfa-required-dialog"]],decls:15,vars:17,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["alert_type","warn"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"hidden","click"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,t){1&e&&(f.TgZ(0,"h1",0),f._uU(1),f.ALo(2,"translate"),f.qZA(),f.TgZ(3,"div",1)(4,"perun-web-apps-alert",2),f._uU(5),f.ALo(6,"translate"),f.ALo(7,"translate"),f.qZA()(),f.TgZ(8,"div",3)(9,"button",4),f.NdJ("click",function(){return t.cancel()}),f._uU(10),f.ALo(11,"translate"),f.qZA(),f.TgZ(12,"button",5),f.NdJ("click",function(){return t.submit()}),f._uU(13),f.ALo(14,"translate"),f.qZA()()),2&e&&(f.xp6(1),f.Oqu(f.lcZ(2,7,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.TITLE")),f.xp6(4),f.hij(" ",t.data.mfaRoleException?f.lcZ(6,9,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.INFO_ROLE"):f.lcZ(7,11,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.INFO")," "),f.xp6(4),f.Q6J("hidden",t.data.mfaRoleException),f.xp6(1),f.hij(" ",f.lcZ(11,13,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.CANCEL")," "),f.xp6(2),f.Tol(t.data.mfaRoleException?"ml-auto":"ml-2"),f.xp6(1),f.hij(" ",f.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.STEP_UP")," "))},dependencies:[Ea,Ma,Da,Mi,Ha,vi]}),r})(),zi=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275cmp=f.Xpm({type:r,selectors:[["perun-web-apps-focus-on-mfa-window"]],decls:9,vars:6,consts:[[1,"text-center","custom-dialog"],[1,"align-text-bottom"]],template:function(e,t){1&e&&(f.TgZ(0,"div",0)(1,"div")(2,"mat-icon",1),f._uU(3," info "),f.qZA(),f._uU(4),f.ALo(5,"translate"),f.qZA(),f.TgZ(6,"div"),f._uU(7),f.ALo(8,"translate"),f.qZA()()),2&e&&(f.xp6(4),f.hij(" ",f.lcZ(5,2,"SHARED_LIB.PERUN.COMPONENTS.FOCUS_ON_MFA_DIALOG.MODAL")," "),f.xp6(3),f.hij(" ",f.lcZ(8,4,"SHARED_LIB.PERUN.COMPONENTS.FOCUS_ON_MFA_DIALOG.MODAL_WARNING")," "))},dependencies:[qr,vi],styles:[".custom-dialog[_ngcontent-%COMP%]{background-color:#000;color:#fffffff2;font-size:1.2rem}"]}),r})(),vs=(()=>{class r{constructor(e,t){this.data=e,this.dialogRef=t}cancel(){this.dialogRef.close(!1)}submit(){window.open(this.data.tokensUrl,"_blank"),this.dialogRef.close(!0)}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(Sa),f.Y36(hr))},r.\u0275cmp=f.Xpm({type:r,selectors:[["perun-web-apps-no-mfa-tokens-dialog"]],decls:14,vars:12,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["alert_type","warn"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(f.TgZ(0,"h1",0),f._uU(1),f.ALo(2,"translate"),f.qZA(),f.TgZ(3,"div",1)(4,"perun-web-apps-alert",2),f._uU(5),f.ALo(6,"translate"),f.qZA()(),f.TgZ(7,"div",3)(8,"button",4),f.NdJ("click",function(){return t.cancel()}),f._uU(9),f.ALo(10,"translate"),f.qZA(),f.TgZ(11,"button",5),f.NdJ("click",function(){return t.submit()}),f._uU(12),f.ALo(13,"translate"),f.qZA()()),2&e&&(f.xp6(1),f.Oqu(f.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.TITLE")),f.xp6(4),f.hij(" ",f.lcZ(6,6,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.INFO")," "),f.xp6(4),f.hij(" ",f.lcZ(10,8,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.CANCEL")," "),f.xp6(3),f.hij(" ",f.lcZ(13,10,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.MANAGE_TOKENS")," "))},dependencies:[Ea,Ma,Da,Mi,Ha,vi]}),r})(),Lp=(()=>{class r{constructor(e,t,s,u){this.dialog=e,this.oauthService=t,this.authService=s,this.store=u}openMfaWindow(e){let t=null,s=null;const u=pr();u.width="450px",u.data={mfaRoleException:e};const d=this.dialog.open(OA,u);let l=!1;if(d.afterClosed().subscribe(n=>{if(n){if(sessionStorage.setItem("mfaRequired","true"),sessionStorage.setItem("oldAccessToken",this.oauthService.getAccessToken()),sessionStorage.setItem("oldRefreshToken",this.oauthService.getRefreshToken()),t=this.setupMfaWindow(),t){const i=pr();i.width="450px",i.panelClass="noBorderDialog",s=this.dialog.open(zi,i)}}else l=!0}),localStorage.getItem("noMfaTokenDialog")){localStorage.removeItem("noMfaTokenDialog");const n=pr();n.width="450px",n.data={tokensUrl:this.store.getProperty("mfa").url_en},this.dialog.open(vs,n)}return new Fi.y(n=>{const i=setInterval(()=>t?.closed?(clearInterval(i),s.close(),sessionStorage.removeItem("mfaRequired"),sessionStorage.removeItem("mfaProcessed"),null===this.oauthService.getAccessToken()&&(localStorage.setItem("access_token",sessionStorage.getItem("oldAccessToken")),localStorage.setItem("refresh_token",sessionStorage.getItem("oldRefreshToken"))),n.next(!0)):l?(clearInterval(i),n.next(!1)):void 0,1e3)})}catchNoMfaTokenError(e){"unmet_authentication_requirements"===e&&(localStorage.setItem("noMfaTokenDialog","true"),window.close())}mfaWindowForceLogout(){if(sessionStorage.getItem("mfaRequired")&&!sessionStorage.getItem("mfaProcessed"))return sessionStorage.setItem("mfaProcessed","true"),this.oauthService.logOut(!0),this.authService.loadOidcConfigData(),void this.oauthService.loadDiscoveryDocumentAndLogin();sessionStorage.removeItem("mfaRequired")}closeMfaWindow(){sessionStorage.getItem("mfaProcessed")&&!sessionStorage.getItem("mfaRequired")&&(sessionStorage.removeItem("mfaProcessed"),window.close())}setupMfaWindow(){const e=location.pathname+location.search,u=window.top;return window.open(e,"_blank",`width=600,height=600,top=${u.outerHeight/2+u.screenY-300}, left=${u.outerWidth/2+u.screenX-300}`)}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(Cn),f.LFG(bo.Ct),f.LFG(fr),f.LFG(mi))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),ou=(()=>{class r{constructor(e,t,s,u,d,l,n,i){this.authService=e,this.oauthService=t,this.storeService=s,this.authResolver=u,this.authzService=d,this.dialog=l,this.router=n,this.mfaHandlerService=i,this.loginScreenShown=!1,this.serviceAccess=!1,this.serviceAccessLoginScreen=!1}isLoginScreenShown(){return this.loginScreenShown}isServiceAccess(){return this.serviceAccess}isServiceAccessLoginScreenShown(){return this.serviceAccessLoginScreen}verifyAuth(){if(this.mfaHandlerService.mfaWindowForceLogout(),sessionStorage.getItem("baPrincipal"))return this.serviceAccess=!0,sessionStorage.getItem("auth:redirect")?this.redirectToOriginDestination():Promise.resolve(!0);if("/service-access"!==location.pathname&&!this.storeService.getProperty("auto_service_access_redirect")){this.authService.loadOidcConfigData();const e=location.pathname,t=location.search.substring(1);return"/api-callback"===e?this.oauthService.loadDiscoveryDocumentAndTryLogin().then(()=>this.startRefreshToken()).then(()=>this.redirectToOriginDestination()):this.oauthService.loadDiscoveryDocument().then(()=>this.tryRefreshToken()).then(()=>"Linker"===this.storeService.getProperty("application")?(sessionStorage.setItem("auth:queryParams",t),localStorage.removeItem("access_token"),!1):this.oauthService.hasValidAccessToken()?this.startRefreshToken():this.isPotentiallyValidPath(e)?(sessionStorage.setItem("auth:redirect",e),sessionStorage.setItem("auth:queryParams",t),!1):Promise.reject("Invalid path"))}}loadPrincipal(){return Op(this.authzService.getPerunPrincipal()).then(e=>{if(null===e.user){const t=pr();this.dialog.open(cb,t)}else this.storeService.setPerunPrincipal(e),this.authResolver.init(e)})}simpleLoadPrincipal(){return Op(this.authzService.getPerunPrincipal()).then(e=>{this.storeService.setPerunPrincipal(e)})}checkRouteGuard(){const e=localStorage.getItem("routeAuthGuard");e&&(localStorage.removeItem("routeAuthGuard"),this.router.navigate([e],{queryParamsHandling:"merge"}))}handleAuthStart(){if(this.storeService.getProperty("auto_service_access_redirect")&&"/service-access"!==location.pathname){this.serviceAccess=!0,this.serviceAccessLoginScreen=!0;const e=location.pathname,t=location.search.substring(1);sessionStorage.setItem("auth:redirect",e),sessionStorage.setItem("auth:queryParams",t);const s={};return t.split("&").forEach(u=>{const d=u.split("=");s[d[0]]=d[1]}),this.router.navigate(["service-access"],{queryParams:s,queryParamsHandling:"merge"}).then()}if("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal")||this.storeService.getProperty("auto_service_access_redirect")){this.serviceAccess=!0,this.serviceAccessLoginScreen=!0;const e=location.search.substring(1);return sessionStorage.setItem("auth:queryParams",e),Promise.resolve()}return this.storeService.getProperty("auto_auth_redirect")?(sessionStorage.getItem("mfaProcessed")||localStorage.setItem("routeAuthGuard",window.location.pathname),this.startAuth().then(()=>new Promise(()=>{}))):(this.setLoginScreen(!0),localStorage.setItem("routeAuthGuard",window.location.pathname),void this.router.navigate(["login"],{queryParamsHandling:"merge"}))}setLoginScreen(e){this.loginScreenShown=e}isPotentiallyValidPath(e){const t=["/home","/organizations","/facilities","/myProfile","/admin","/login","/service-access","/profile"];if("/"===e)return!0;for(const s of t)if(e.startsWith(s))return!0;return!1}startRefreshToken(){return this.oauthService.hasValidAccessToken()?(this.oauthService.events.pipe((0,ii.h)(e=>"token_expires"===e.type&&"access_token"===e.info)).subscribe(()=>{this.oauthService.refreshToken()}),Promise.resolve(!0)):Promise.resolve(!1)}tryRefreshToken(){return localStorage.getItem("refresh_token")&&!this.oauthService.hasValidAccessToken()?this.oauthService.refreshToken().then(()=>Promise.resolve()).catch(()=>Promise.resolve()):Promise.resolve()}redirectToOriginDestination(){const e=sessionStorage.getItem("mfa_route");if(e)return this.router.navigate([e],{replaceUrl:!0,queryParamsHandling:"merge"});let t=sessionStorage.getItem("auth:redirect");(!t||"/login"===t)&&(t="/"),sessionStorage.removeItem("auth:redirect");const s=sessionStorage.getItem("auth:queryParams");let u=[];s&&(u=s.split("&"));const d={};return u.forEach(l=>{const n=l.split("=");d[n[0]]=n[1]}),sessionStorage.removeItem("auth:queryParams"),this.router.navigate([t],{queryParams:d,replaceUrl:!0,queryParamsHandling:"merge"})}startAuth(){return this.authService.startAuthentication(),Promise.resolve()}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(fr),f.LFG(bo.Ct),f.LFG(mi),f.LFG(Is),f.LFG(lt),f.LFG(Cn),f.LFG(Qt),f.LFG(Lp))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),LA=(()=>{class r{constructor(e,t){this.matIconRegistry=e,this.domSanitizer=t,this.customIcons=[{url:"assets/img/PerunWebImages/refresh_tab-black.svg",name:"perun-refresh-enabled"},{url:"assets/img/PerunWebImages/refresh_tab-grey.svg",name:"perun-refresh-disabled"},{url:"assets/img/PerunWebImages/manage_facility_white.svg",name:"perun-manage-facility"},{url:"assets/img/PerunWebImages/vo-white.svg",name:"perun-vo"},{url:"assets/img/PerunWebImages/user-white.svg",name:"perun-user"},{url:"assets/img/PerunWebImages/perun_admin-white.svg",name:"perun-perun-admin"},{url:"assets/img/PerunWebImages/group-white.svg",name:"perun-group"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/preview-white.svg",name:"perun-preview"},{url:"assets/img/PerunWebImages/module_dependencies.svg",name:"perun-module-dependencies"},{url:"assets/img/PerunWebImages/user_destination_relationship.svg",name:"perun-user-destination-relationship"},{url:"assets/img/PerunWebImages/settings2-white.svg",name:"perun-settings2"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/applications-white.svg",name:"perun-applications"},{url:"assets/img/PerunWebImages/manager-white.svg",name:"perun-manager"},{url:"assets/img/PerunWebImages/key-white.svg",name:"perun-key"},{url:"assets/img/PerunWebImages/application_form-white.svg",name:"perun-application-form"},{url:"assets/img/PerunWebImages/notification-white.svg",name:"perun-notification"},{url:"assets/img/PerunWebImages/invite_member-white.svg",name:"perun-invite-member"},{url:"assets/img/PerunWebImages/service_identity-white.svg",name:"perun-service-identity"},{url:"assets/img/PerunWebImages/service_identity-black.svg",name:"perun-service-identity-black"},{url:"assets/img/PerunWebImages/create1-white.svg",name:"perun-create1"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource"},{url:"assets/img/PerunWebImages/resource_tags-white.svg",name:"perun-resource-tags"},{url:"assets/img/PerunWebImages/resources_state-white.svg",name:"perun-resources-state"},{url:"assets/img/PerunWebImages/external_sources-white.svg",name:"perun-external-sources"},{url:"assets/img/PerunWebImages/vo-dark.svg",name:"perun-vo-black"},{url:"assets/img/PerunWebImages/group-dark.svg",name:"perun-group-black"},{url:"assets/img/PerunWebImages/facility-dark.svg",name:"perun-facility-black"},{url:"assets/img/publications.svg",name:"perun-publications-white"},{url:"assets/img/PerunWebImages/owner-grey.svg",name:"perun-owner-grey"},{url:"assets/img/PerunWebImages/settings1-blue.svg",name:"perun-settings1"},{url:"assets/img/PerunWebImages/service_destination-blue.svg",name:"perun-service_destination"},{url:"assets/img/PerunWebImages/host-blue.svg",name:"perun-hosts"},{url:"assets/img/PerunWebImages/home.svg",name:"perun-home-white"},{url:"assets/img/PerunWebImages/security_admin-blue.svg",name:"perun-security-teams"},{url:"assets/img/PerunWebImages/black_list-white.svg",name:"perun-black-list"},{url:"assets/img/PerunWebImages/facility-white.svg",name:"perun-facility-white"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource-white"},{url:"assets/img/PerunWebImages/service-white.svg",name:"perun-service"},{url:"assets/img/PerunWebImages/resource-black.svg",name:"perun-resource-black"},{url:"assets/img/PerunWebImages/service_status-grey.svg",name:"perun-service-status"},{url:"assets/img/PerunWebImages/user-dark.svg",name:"perun-user-dark"},{url:"assets/img/PerunWebImages/statistics-blue.svg",name:"perun-statistics"},{url:"assets/img/PerunWebImages/audit_log-blue.svg",name:"perun-audit-log"},{url:"assets/img/PerunWebImages/contact-grey.svg",name:"perun-identity"},{url:"assets/img/PerunWebImages/roles.svg",name:"perun-roles"},{url:"assets/img/PerunWebImages/consent-white.svg",name:"perun-consent-hubs"},{url:"assets/img/PerunWebImages/hierarchical_vo-black.svg",name:"perun-hierarchical-vo"},{url:"assets/img/PerunWebImages/searcher-blue.svg",name:"perun-searcher"},{url:"assets/img/PerunWebImages/propagation-blue.svg",name:"perun-hierarchical-inclusion"},{url:"assets/img/PerunWebImages/verify-grey.svg",name:"perun-verify-grey"},{url:"assets/img/PerunWebImages/info-grey.svg",name:"perun-info-grey"},{url:"assets/img/PerunWebImages/logins.svg",name:"perun-logins"},{url:"assets/img/PerunWebImages/certificates.svg",name:"perun-certificates"},{url:"assets/img/PerunWebImages/authentication.svg",name:"perun-authentication"},{url:"assets/img/PerunWebImages/ban.svg",name:"perun-ban"}]}registerPerunRefreshIcon(){this.customIcons.forEach(e=>{this.matIconRegistry.addSvgIcon(e.name,this.domSanitizer.bypassSecurityTrustResourceUrl(e.url))})}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(ql),f.LFG(ti))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac}),r})(),jp=(()=>{class r{constructor(e){this.dialogRef=e}close(){this.dialogRef.close(!0)}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(hr))},r.\u0275cmp=f.Xpm({type:r,selectors:[["perun-web-apps-session-expiration-dialog"]],decls:11,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"ml-auto"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,t){1&e&&(f.TgZ(0,"h1",0),f._uU(1),f.ALo(2,"translate"),f.qZA(),f.TgZ(3,"div",1),f._uU(4),f.ALo(5,"translate"),f.qZA(),f.TgZ(6,"div",2)(7,"div",3)(8,"button",4),f.NdJ("click",function(){return t.close()}),f._uU(9),f.ALo(10,"translate"),f.qZA()()()),2&e&&(f.xp6(1),f.Oqu(f.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.TITLE")),f.xp6(3),f.hij(" ",f.lcZ(5,5,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.DESCRIPTION"),"\n"),f.xp6(5),f.hij(" ",f.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.SIGN_IN")," "))},dependencies:[Ea,Ma,Da,Mi,vi]}),r})(),Fp=(()=>{class r{constructor(){this.handleNextError=!0}dontHandleErrorForNext(){this.handleNextError=!1}shouldHandleError(){const e=this.handleNextError;return this.handleNextError=!0,e}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Ra=(()=>{class r{constructor(e){this.translate=e,this.addNotification=new f.vpe,this.defaultErrorDelayMs=5e3,this.defaultSuccessDelayMs=3e3}getDefaultActionMessage(){return void 0===this.defaultAction?this.defaultAction=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_ACTION"):this.defaultAction}getDefaultRpcMessage(){return void 0===this.defaultRpcMessage?this.defaultRpcMessage=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_RPC_ERROR_MESSAGE"):this.defaultRpcMessage}showRPCError(e,t=this.getDefaultRpcMessage()){this.showError("PrivilegeException"===e.name?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.PRIVILEGE_EXCEPTION"):void 0===e.name?t:t+"\n"+e.name,e,e.message)}showRouteError(){const e=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_ERROR"),t=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_DESC");this.showError(e,null,t)}showError(e,t,s,u,d){this.addNotification.emit({type:"error",error:t,description:s,title:e,actionText:void 0===u&&void 0!==s?this.getDefaultActionMessage():u,delay:this.defaultErrorDelayMs,icon:"error_outline",action:d,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}showSuccess(e,t,s,u){this.addNotification.emit({type:"success",description:t,title:e,actionText:void 0===s&&void 0!==t?this.getDefaultActionMessage():s,delay:this.defaultSuccessDelayMs,icon:"done",action:u,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(Bi))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),fb=(()=>{class r{constructor(e,t,s,u,d,l,n,i){this.authService=e,this.apiRequestConfiguration=t,this.notificator=s,this.store=u,this.dialog=d,this.initAuthService=l,this.mfaHandlerService=n,this.oauthService=i}intercept(e,t){const s=this.store.getProperty("api_url");if(e.url.includes("i18n")&&(e=e.clone({setHeaders:{"Cache-control":"no-cache, must-revalidate"}})),void 0!==s&&this.isCallToPerunApi(e.url)&&!this.isLoggedIn()&&!this.dialogRefSessionExpiration){const u=pr();u.width="450px",null==this.dialogRefSessionExpiration&&(this.dialogRefSessionExpiration=this.dialog.open(jp,u),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{Et(()=>this.dialogRefSessionExpiration=void 0),sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.oauthService.logOut(!0),this.reauthenticate()}))}return this.initAuthService.isServiceAccess()?e=e.clone({setHeaders:{Authorization:"Basic "+btoa(sessionStorage.getItem("basicUsername")+":"+sessionStorage.getItem("basicPassword"))}}):this.isCallToPerunApi(e.url)&&(e=e.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}})),this.handleRequest(e,t)}isLoggedIn(){return(this.authService.isLoggedIn()||this.initAuthService.isServiceAccess())&&!this.initAuthService.isServiceAccessLoginScreenShown()}reauthenticate(){sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.initAuthService.handleAuthStart()}handleRequest(e,t){const s=this.apiRequestConfiguration.shouldHandleError(),u="POST"===e.method&&this.isNotConsolidatorOrLinker()&&this.isCallToPerunApi(e.url);return t.handle(e).pipe((0,jt.b)(d=>{d instanceof v.Zn&&u&&this.initAuthService.loadPrincipal()}),(0,Bt.K)(d=>{const l=d.error;if("MfaPrivilegeException"===l.type||"MfaRolePrivilegeException"===l.type)return this.mfaHandlerService.openMfaWindow("MfaRolePrivilegeException"===l.type).pipe((0,bt.w)(n=>n?("MfaRolePrivilegeException"===l.type&&window.location.reload(),this.handleRequest(this.replaceAuthenticationToken(e),t)):(0,en._)(()=>l)));{this.handleInvalidAccessTokenError(d);const n=this.formatErrors(d,e);return void 0===n?(0,en._)(()=>d):(s&&this.notificator.showRPCError(n),(0,en._)(()=>n))}}))}replaceAuthenticationToken(e){return e.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}})}isCallToPerunApi(e){return e.startsWith(this.store.getProperty("api_url"))}formatErrors(e,t){let s;console.error(e);const u=e.error;if(u.errorId&&(s=u),void 0!==s)return s.urlWithParams=t.urlWithParams,s.call=t.url,s.payload=t.body,s}isNotConsolidatorOrLinker(){const e=this.store.getProperty("application");return!("Linker"===e||"Consolidator"===e)}handleInvalidAccessTokenError(e){if(401===e.status){if(!this.isLoggedIn()||"invalid_token"===e.error.error||null!=this.dialogRefSessionExpiration)return;const t=pr();this.dialogRefSessionExpiration=this.dialog.open(jp,t),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{this.oauthService.logOut(!0),this.reauthenticate()})}}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(fr),f.LFG(Fp),f.LFG(Ra),f.LFG(mi),f.LFG(Cn),f.LFG(ou),f.LFG(Lp),f.LFG(bo.Ct))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac}),r})(),$l=(()=>{class r{constructor(){this.newNotificationsCount=0,this.notificationData=[]}storeNotification(e){this.newNotificationsCount++,this.notificationData.push(e)}getNotifications(){return this.notificationData.reverse()}clearNotifications(){this.notificationData=[]}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),jA=(()=>{class r{constructor(e,t,s,u){this.http=e,this.notificator=t,this.authService=s,this.storeService=u}getApiUrl(){return void 0===this.api_url&&(this.api_url=this.storeService.getProperty("api_url")),this.api_url+"/"}getHeaders(){let e=new v.WM;return e=e.set("Authorization",this.authService.getAuthorizationHeaderValue()),e}get(e,t=!0){const s=`${this.getApiUrl()}${e}`;return this.http.get(s,{headers:this.getHeaders()}).pipe((0,Bt.K)(u=>this.formatErrors(u,s,null,t)))}put(e,t={},s=!0){const u=`${this.getApiUrl()}${e}`,d=JSON.stringify(t);return this.http.put(u,d,{headers:this.getHeaders()}).pipe((0,Bt.K)(l=>this.formatErrors(l,u,d,s)))}post(e,t={},s=!0){const u=`${this.getApiUrl()}${e}`,d=JSON.stringify(t);let l=this.getHeaders();return l=l.set("Content-Type","application/json; charset=utf-8"),this.http.post(u,d,{headers:l}).pipe((0,Bt.K)(n=>this.formatErrors(n,u,d,s)))}delete(e,t=!0){const s=`${this.getApiUrl()}${e}`;return this.http.delete(s,{headers:this.getHeaders()}).pipe((0,Bt.K)(u=>this.formatErrors(u,s,null,t)))}formatErrors(e,t,s,u){const d=e.error;return d.call=t,d.payload=s,u&&this.notificator.showRPCError(e.error),(0,en._)(d)}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(v.eN),f.LFG(Ra),f.LFG(fr),f.LFG(mi))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),mb=(()=>{class r{constructor(e,t){this.route=e,this.store=t}getPreferredLanguage(e){const t=this.store.getProperty("supported_languages"),s=navigator.languages.map(l=>l.split("-")[0]),u=location.search.substring(1).split("&");let d=null;for(const l of u){const n=l.split("=");"lang"===n[0]&&(d=n[1])}return d&&t.includes(d)?d:e&&t.includes(e)?e:s&&t.includes(s[0])?s[0]:"en"}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(Hr),f.LFG(mi))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),UA=(()=>{class r{constructor(e){this.storeService=e}static getBrandContainingDomain(e,t){for(const u of e)if(u.newApps.admin===t||u.newApps.profile===t||u.newApps.pwdReset===t||u.newApps.consolidator===t||u.newApps.linker===t)return u;return e.filter(u=>"default"===u.name)[0]||e[0]}getUrlForOtherApplication(e,t){const u=window.location.href.split("/"),d=u[0]+"//"+u[2],l=r.getBrandContainingDomain(this.storeService.getAppsConfig().brands,d);let n;if(l.newApps[e])n=l.newApps[e],"pwdReset"===e&&(n+=`?login-namespace=${t}`);else switch(n=l.oldGuiDomain+"/fed",e){case"admin":n+="/gui/";break;case"profile":n+="/profile/";break;case"pwdReset":n+=`/pwd-reset/?login-namespace=${t}`}return n}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(mi))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),_b=(()=>{class r{getErrorKey(e){switch(e.name.split("Exception")[0]){case"PasswordDoesntMatch":return"passwordDoesntMatchError";case"PasswordChangeFailed":return"passwordChangeFailedError";case"PasswordCreationFailed":default:return"passwordCreationFailedError";case"PasswordDeletionFailed":return"passwordDeletionFailedError";case"LoginNotExists":return"loginNotExistsError";case"PasswordStrengthFailed":return"passwordStrengthFailedError";case"PasswordOperationTimeout":return"passwordOperationTimeoutError"}}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Yl=(()=>{class r{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=s=>{},this.onTouched=()=>{}}setProperty(e,t){this._renderer.setProperty(this._elementRef.nativeElement,e,t)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(f.Qsj),f.Y36(f.SBq))},r.\u0275dir=f.lG2({type:r}),r})(),Gr=(()=>{class r extends Yl{}return r.\u0275fac=function(){let a;return function(t){return(a||(a=f.n5z(r)))(t||r)}}(),r.\u0275dir=f.lG2({type:r,features:[f.qOj]}),r})();const Qi=new f.OlP("NgValueAccessor"),wb={provide:Qi,useExisting:(0,f.Gpc)(()=>Wr),multi:!0},qA=new f.OlP("CompositionEventMode");let Wr=(()=>{class r extends Yl{constructor(e,t,s){super(e,t),this._compositionMode=s,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function As(){const r=(0,M.q)()?(0,M.q)().getUserAgent():"";return/android (\d+)/.test(r.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(f.Qsj),f.Y36(f.SBq),f.Y36(qA,8))},r.\u0275dir=f.lG2({type:r,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(e,t){1&e&&f.NdJ("input",function(u){return t._handleInput(u.target.value)})("blur",function(){return t.onTouched()})("compositionstart",function(){return t._compositionStart()})("compositionend",function(u){return t._compositionEnd(u.target.value)})},features:[f._Bn([wb]),f.qOj]}),r})();function Co(r){return null==r||("string"==typeof r||Array.isArray(r))&&0===r.length}function yb(r){return null!=r&&"number"==typeof r.length}const Ai=new f.OlP("NgValidators"),Pa=new f.OlP("NgAsyncValidators"),zA=/^(?=.{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 $r{static min(a){return function Np(r){return a=>{if(Co(a.value)||Co(r))return null;const e=parseFloat(a.value);return!isNaN(e)&&e{if(Co(a.value)||Co(r))return null;const e=parseFloat(a.value);return!isNaN(e)&&e>r?{max:{max:r,actual:a.value}}:null}}(a)}static required(a){return vb(a)}static requiredTrue(a){return function zp(r){return!0===r.value?null:{required:!0}}(a)}static email(a){return function Gp(r){return Co(r.value)||zA.test(r.value)?null:{email:!0}}(a)}static minLength(a){return function Ab(r){return a=>Co(a.value)||!yb(a.value)?null:a.value.lengthyb(a.value)&&a.value.length>r?{maxlength:{requiredLength:r,actualLength:a.value.length}}:null}(a)}static pattern(a){return function Wp(r){if(!r)return su;let a,e;return"string"==typeof r?(e="","^"!==r.charAt(0)&&(e+="^"),e+=r,"$"!==r.charAt(r.length-1)&&(e+="$"),a=new RegExp(e)):(e=r.toString(),a=r),t=>{if(Co(t.value))return null;const s=t.value;return a.test(s)?null:{pattern:{requiredPattern:e,actualValue:s}}}}(a)}static nullValidator(a){return null}static compose(a){return WA(a)}static composeAsync(a){return $A(a)}}function vb(r){return Co(r.value)?{required:!0}:null}function su(r){return null}function $p(r){return null!=r}function Qp(r){return(0,f.QGY)(r)?(0,Si.D)(r):r}function Yp(r){let a={};return r.forEach(e=>{a=null!=e?{...a,...e}:a}),0===Object.keys(a).length?null:a}function Jp(r,a){return a.map(e=>e(r))}function Tb(r){return r.map(a=>function GA(r){return!r.validate}(a)?a:e=>a.validate(e))}function WA(r){if(!r)return null;const a=r.filter($p);return 0==a.length?null:function(e){return Yp(Jp(e,a))}}function lu(r){return null!=r?WA(Tb(r)):null}function $A(r){if(!r)return null;const a=r.filter($p);return 0==a.length?null:function(e){return gp(Jp(e,a).map(Qp)).pipe((0,pt.U)(Yp))}}function Sb(r){return null!=r?$A(Tb(r)):null}function QA(r,a){return null===r?[a]:Array.isArray(r)?[...r,a]:[r,a]}function YA(r){return r._rawValidators}function JA(r){return r._rawAsyncValidators}function Eb(r){return r?Array.isArray(r)?r:[r]:[]}function Kp(r,a){return Array.isArray(r)?r.includes(a):r===a}function KA(r,a){const e=Eb(a);return Eb(r).forEach(s=>{Kp(e,s)||e.push(s)}),e}function Jl(r,a){return Eb(a).filter(e=>!Kp(r,e))}class ZA{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(a){this._rawValidators=a||[],this._composedValidatorFn=lu(this._rawValidators)}_setAsyncValidators(a){this._rawAsyncValidators=a||[],this._composedAsyncValidatorFn=Sb(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(a){this._onDestroyCallbacks.push(a)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(a=>a()),this._onDestroyCallbacks=[]}reset(a){this.control&&this.control.reset(a)}hasError(a,e){return!!this.control&&this.control.hasError(a,e)}getError(a,e){return this.control?this.control.getError(a,e):null}}class Oi extends ZA{get formDirective(){return null}get path(){return null}}class on extends ZA{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Zp{constructor(a){this._cd=a}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let Ia=(()=>{class r extends Zp{constructor(e){super(e)}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(on,2))},r.\u0275dir=f.lG2({type:r,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&f.ekj("ng-untouched",t.isUntouched)("ng-touched",t.isTouched)("ng-pristine",t.isPristine)("ng-dirty",t.isDirty)("ng-valid",t.isValid)("ng-invalid",t.isInvalid)("ng-pending",t.isPending)},features:[f.qOj]}),r})(),cu=(()=>{class r extends Zp{constructor(e){super(e)}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(Oi,10))},r.\u0275dir=f.lG2({type:r,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,t){2&e&&f.ekj("ng-untouched",t.isUntouched)("ng-touched",t.isTouched)("ng-pristine",t.isPristine)("ng-dirty",t.isDirty)("ng-valid",t.isValid)("ng-invalid",t.isInvalid)("ng-pending",t.isPending)("ng-submitted",t.isSubmitted)},features:[f.qOj]}),r})();const uu="VALID",Yi="INVALID",xs="PENDING",wo="DISABLED";function nf(r){return(pu(r)?r.validators:r)||null}function Ji(r){return Array.isArray(r)?lu(r):r||null}function rf(r,a){return(pu(a)?a.asyncValidators:r)||null}function hu(r){return Array.isArray(r)?Sb(r):r||null}function pu(r){return null!=r&&!Array.isArray(r)&&"object"==typeof r}function Hb(r,a,e){const t=r.controls;if(!(a?Object.keys(t):t).length)throw new f.vHH(1e3,"");if(!t[e])throw new f.vHH(1001,"")}function fu(r,a,e){r._forEachChild((t,s)=>{if(void 0===e[s])throw new f.vHH(1002,"")})}class Zl{constructor(a,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=a,this._rawAsyncValidators=e,this._composedValidatorFn=Ji(this._rawValidators),this._composedAsyncValidatorFn=hu(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(a){this._rawValidators=this._composedValidatorFn=a}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(a){this._rawAsyncValidators=this._composedAsyncValidatorFn=a}get parent(){return this._parent}get valid(){return this.status===uu}get invalid(){return this.status===Yi}get pending(){return this.status==xs}get disabled(){return this.status===wo}get enabled(){return this.status!==wo}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(a){this._rawValidators=a,this._composedValidatorFn=Ji(a)}setAsyncValidators(a){this._rawAsyncValidators=a,this._composedAsyncValidatorFn=hu(a)}addValidators(a){this.setValidators(KA(a,this._rawValidators))}addAsyncValidators(a){this.setAsyncValidators(KA(a,this._rawAsyncValidators))}removeValidators(a){this.setValidators(Jl(a,this._rawValidators))}removeAsyncValidators(a){this.setAsyncValidators(Jl(a,this._rawAsyncValidators))}hasValidator(a){return Kp(this._rawValidators,a)}hasAsyncValidator(a){return Kp(this._rawAsyncValidators,a)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(a={}){this.touched=!0,this._parent&&!a.onlySelf&&this._parent.markAsTouched(a)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(a=>a.markAllAsTouched())}markAsUntouched(a={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!a.onlySelf&&this._parent._updateTouched(a)}markAsDirty(a={}){this.pristine=!1,this._parent&&!a.onlySelf&&this._parent.markAsDirty(a)}markAsPristine(a={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!a.onlySelf&&this._parent._updatePristine(a)}markAsPending(a={}){this.status=xs,!1!==a.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!a.onlySelf&&this._parent.markAsPending(a)}disable(a={}){const e=this._parentMarkedDirty(a.onlySelf);this.status=wo,this.errors=null,this._forEachChild(t=>{t.disable({...a,onlySelf:!0})}),this._updateValue(),!1!==a.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...a,skipPristineCheck:e}),this._onDisabledChange.forEach(t=>t(!0))}enable(a={}){const e=this._parentMarkedDirty(a.onlySelf);this.status=uu,this._forEachChild(t=>{t.enable({...a,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:a.emitEvent}),this._updateAncestors({...a,skipPristineCheck:e}),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(a){this._parent&&!a.onlySelf&&(this._parent.updateValueAndValidity(a),a.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(a){this._parent=a}getRawValue(){return this.value}updateValueAndValidity(a={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===uu||this.status===xs)&&this._runAsyncValidator(a.emitEvent)),!1!==a.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!a.onlySelf&&this._parent.updateValueAndValidity(a)}_updateTreeValidity(a={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(a)),this.updateValueAndValidity({onlySelf:!0,emitEvent:a.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?wo:uu}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(a){if(this.asyncValidator){this.status=xs,this._hasOwnPendingAsyncValidator=!0;const e=Qp(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(t=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(t,{emitEvent:a})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(a,e={}){this.errors=a,this._updateControlsErrors(!1!==e.emitEvent)}get(a){let e=a;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((t,s)=>t&&t._find(s),this)}getError(a,e){const t=e?this.get(e):this;return t&&t.errors?t.errors[a]:null}hasError(a,e){return!!this.getError(a,e)}get root(){let a=this;for(;a._parent;)a=a._parent;return a}_updateControlsErrors(a){this.status=this._calculateStatus(),a&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(a)}_initObservables(){this.valueChanges=new f.vpe,this.statusChanges=new f.vpe}_calculateStatus(){return this._allControlsDisabled()?wo:this.errors?Yi:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(xs)?xs:this._anyControlsHaveStatus(Yi)?Yi:uu}_anyControlsHaveStatus(a){return this._anyControls(e=>e.status===a)}_anyControlsDirty(){return this._anyControls(a=>a.dirty)}_anyControlsTouched(){return this._anyControls(a=>a.touched)}_updatePristine(a={}){this.pristine=!this._anyControlsDirty(),this._parent&&!a.onlySelf&&this._parent._updatePristine(a)}_updateTouched(a={}){this.touched=this._anyControlsTouched(),this._parent&&!a.onlySelf&&this._parent._updateTouched(a)}_registerOnCollectionChange(a){this._onCollectionChange=a}_setUpdateStrategy(a){pu(a)&&null!=a.updateOn&&(this._updateOn=a.updateOn)}_parentMarkedDirty(a){return!a&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(a){return null}}class Xl extends Zl{constructor(a,e,t){super(nf(e),rf(t,e)),this.controls=a,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(a,e){return this.controls[a]?this.controls[a]:(this.controls[a]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(a,e,t={}){this.registerControl(a,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}removeControl(a,e={}){this.controls[a]&&this.controls[a]._registerOnCollectionChange(()=>{}),delete this.controls[a],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(a,e,t={}){this.controls[a]&&this.controls[a]._registerOnCollectionChange(()=>{}),delete this.controls[a],e&&this.registerControl(a,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}contains(a){return this.controls.hasOwnProperty(a)&&this.controls[a].enabled}setValue(a,e={}){fu(this,0,a),Object.keys(a).forEach(t=>{Hb(this,!0,t),this.controls[t].setValue(a[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(a,e={}){null!=a&&(Object.keys(a).forEach(t=>{const s=this.controls[t];s&&s.patchValue(a[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(a={},e={}){this._forEachChild((t,s)=>{t.reset(a[s],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(a,e,t)=>(a[t]=e.getRawValue(),a))}_syncPendingControls(){let a=this._reduceChildren(!1,(e,t)=>!!t._syncPendingControls()||e);return a&&this.updateValueAndValidity({onlySelf:!0}),a}_forEachChild(a){Object.keys(this.controls).forEach(e=>{const t=this.controls[e];t&&a(t,e)})}_setUpControls(){this._forEachChild(a=>{a.setParent(this),a._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(a){for(const[e,t]of Object.entries(this.controls))if(this.contains(e)&&a(t))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,t,s)=>((t.enabled||this.disabled)&&(e[s]=t.value),e))}_reduceChildren(a,e){let t=a;return this._forEachChild((s,u)=>{t=e(t,s,u)}),t}_allControlsDisabled(){for(const a of Object.keys(this.controls))if(this.controls[a].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(a){return this.controls.hasOwnProperty(a)?this.controls[a]:null}}function ec(r,a){return[...a.path,r]}function tc(r,a){ic(r,a),a.valueAccessor.writeValue(r.value),r.disabled&&a.valueAccessor.setDisabledState?.(!0),function a0(r,a){a.valueAccessor.registerOnChange(e=>{r._pendingValue=e,r._pendingChange=!0,r._pendingDirty=!0,"change"===r.updateOn&&Ib(r,a)})}(r,a),function o0(r,a){const e=(t,s)=>{a.valueAccessor.writeValue(t),s&&a.viewToModelUpdate(t)};r.registerOnChange(e),a._registerOnDestroy(()=>{r._unregisterOnChange(e)})}(r,a),function bE(r,a){a.valueAccessor.registerOnTouched(()=>{r._pendingTouched=!0,"blur"===r.updateOn&&r._pendingChange&&Ib(r,a),"submit"!==r.updateOn&&r.markAsTouched()})}(r,a),function Pb(r,a){if(a.valueAccessor.setDisabledState){const e=t=>{a.valueAccessor.setDisabledState(t)};r.registerOnDisabledChange(e),a._registerOnDestroy(()=>{r._unregisterOnDisabledChange(e)})}}(r,a)}function Ts(r,a,e=!0){const t=()=>{};a.valueAccessor&&(a.valueAccessor.registerOnChange(t),a.valueAccessor.registerOnTouched(t)),wn(r,a),r&&(a._invokeOnDestroyCallbacks(),r._registerOnCollectionChange(()=>{}))}function Nn(r,a){r.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(a)})}function ic(r,a){const e=YA(r);null!==a.validator?r.setValidators(QA(e,a.validator)):"function"==typeof e&&r.setValidators([e]);const t=JA(r);null!==a.asyncValidator?r.setAsyncValidators(QA(t,a.asyncValidator)):"function"==typeof t&&r.setAsyncValidators([t]);const s=()=>r.updateValueAndValidity();Nn(a._rawValidators,s),Nn(a._rawAsyncValidators,s)}function wn(r,a){let e=!1;if(null!==r){if(null!==a.validator){const s=YA(r);if(Array.isArray(s)&&s.length>0){const u=s.filter(d=>d!==a.validator);u.length!==s.length&&(e=!0,r.setValidators(u))}}if(null!==a.asyncValidator){const s=JA(r);if(Array.isArray(s)&&s.length>0){const u=s.filter(d=>d!==a.asyncValidator);u.length!==s.length&&(e=!0,r.setAsyncValidators(u))}}}const t=()=>{};return Nn(a._rawValidators,t),Nn(a._rawAsyncValidators,t),e}function Ib(r,a){r._pendingDirty&&r.markAsDirty(),r.setValue(r._pendingValue,{emitModelToViewChange:!1}),a.viewToModelUpdate(r._pendingValue),r._pendingChange=!1}function kb(r,a){ic(r,a)}function mu(r,a){if(!r.hasOwnProperty("model"))return!1;const e=r.model;return!!e.isFirstChange()||!Object.is(a,e.currentValue)}function gu(r,a){r._syncPendingControls(),a.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function _u(r,a){if(!a)return null;let e,t,s;return Array.isArray(a),a.forEach(u=>{u.constructor===Wr?e=u:function yE(r){return Object.getPrototypeOf(r.constructor)===Gr}(u)?t=u:s=u}),s||t||e||null}const Bb={provide:Oi,useExisting:(0,f.Gpc)(()=>ka)},Ss=(()=>Promise.resolve(null))();let ka=(()=>{class r extends Oi{constructor(e,t){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new f.vpe,this.form=new Xl({},lu(e),Sb(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Ss.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),tc(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Ss.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Ss.then(()=>{const t=this._findContainer(e.path),s=new Xl({});kb(s,e),t.registerControl(e.name,s),s.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Ss.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){Ss.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,gu(this.form,this._directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(Ai,10),f.Y36(Pa,10))},r.\u0275dir=f.lG2({type:r,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&f.NdJ("submit",function(u){return t.onSubmit(u)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[f._Bn([Bb]),f.qOj]}),r})();function nc(r,a){const e=r.indexOf(a);e>-1&&r.splice(e,1)}function sf(r){return"object"==typeof r&&null!==r&&2===Object.keys(r).length&&"value"in r&&"disabled"in r}const Va=class extends Zl{constructor(a=null,e,t){super(nf(e),rf(t,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(a),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),pu(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=sf(a)?a.value:a)}setValue(a,e={}){this.value=this._pendingValue=a,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(a,e={}){this.setValue(a,e)}reset(a=this.defaultValue,e={}){this._applyFormState(a),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(a){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(a){this._onChange.push(a)}_unregisterOnChange(a){nc(this._onChange,a)}registerOnDisabledChange(a){this._onDisabledChange.push(a)}_unregisterOnDisabledChange(a){nc(this._onDisabledChange,a)}_forEachChild(a){}_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(a){sf(a)?(this.value=this._pendingValue=a.value,a.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=a}},Ob=Va,h0={provide:on,useExisting:(0,f.Gpc)(()=>lf)},p0=(()=>Promise.resolve(null))();let lf=(()=>{class r extends on{constructor(e,t,s,u,d){super(),this._changeDetectorRef=d,this.control=new Va,this._registered=!1,this.update=new f.vpe,this._parent=e,this._setValidators(t),this._setAsyncValidators(s),this.valueAccessor=_u(0,u)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const t=e.name.previousValue;this.formDirective.removeControl({name:t,path:this._getPath(t)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),mu(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_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(){tc(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(e){p0.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const t=e.isDisabled.currentValue,s=0!==t&&(0,f.D6c)(t);p0.then(()=>{s&&!this.control.disabled?this.control.disable():!s&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?ec(e,this._parent):[e]}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(Oi,9),f.Y36(Ai,10),f.Y36(Pa,10),f.Y36(Qi,10),f.Y36(f.sBO,8))},r.\u0275dir=f.lG2({type:r,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[f._Bn([h0]),f.qOj,f.TTD]}),r})(),Fb=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({}),r})();const rc=new f.OlP("NgModelWithFormControlWarning"),hf={provide:on,useExisting:(0,f.Gpc)(()=>bu)};let bu=(()=>{class r extends on{constructor(e,t,s,u){super(),this._ngModelWarningConfig=u,this.update=new f.vpe,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(t),this.valueAccessor=_u(0,s)}set isDisabled(e){}ngOnChanges(e){if(this._isControlChanged(e)){const t=e.form.previousValue;t&&Ts(t,this,!1),tc(this.form,this),this.form.updateValueAndValidity({emitEvent:!1})}mu(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Ts(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}}return r._ngModelWarningSentOnce=!1,r.\u0275fac=function(e){return new(e||r)(f.Y36(Ai,10),f.Y36(Pa,10),f.Y36(Qi,10),f.Y36(rc,8))},r.\u0275dir=f.lG2({type:r,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[f._Bn([hf]),f.qOj,f.TTD]}),r})();const pf={provide:Oi,useExisting:(0,f.Gpc)(()=>Qr)};let Qr=(()=>{class r extends Oi{constructor(e,t){super(),this.validators=e,this.asyncValidators=t,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new f.vpe,this._setValidators(e),this._setAsyncValidators(t)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(wn(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const t=this.form.get(e.path);return tc(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){Ts(e.control||null,e,!1),function Vb(r,a){const e=r.indexOf(a);e>-1&&r.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,t){this.form.get(e.path).setValue(t)}onSubmit(e){return this.submitted=!0,gu(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const t=e.control,s=this.form.get(e.path);t!==s&&(Ts(t||null,e),(r=>r instanceof Va)(s)&&(tc(s,e),e.control=s))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const t=this.form.get(e.path);kb(t,e),t.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const t=this.form.get(e.path);t&&function s0(r,a){return wn(r,a)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){ic(this.form,this),this._oldForm&&wn(this._oldForm,this)}_checkFormPresent(){}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(Ai,10),f.Y36(Pa,10))},r.\u0275dir=f.lG2({type:r,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&f.NdJ("submit",function(u){return t.onSubmit(u)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[f._Bn([pf]),f.qOj,f.TTD]}),r})();const qb={provide:on,useExisting:(0,f.Gpc)(()=>ff)};let ff=(()=>{class r extends on{constructor(e,t,s,u,d){super(),this._ngModelWarningConfig=d,this._added=!1,this.update=new f.vpe,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(t),this._setAsyncValidators(s),this.valueAccessor=_u(0,u)}set isDisabled(e){}ngOnChanges(e){this._added||this._setUpControl(),mu(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return ec(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._added=!0}}return r._ngModelWarningSentOnce=!1,r.\u0275fac=function(e){return new(e||r)(f.Y36(Oi,13),f.Y36(Ai,10),f.Y36(Pa,10),f.Y36(Qi,10),f.Y36(rc,8))},r.\u0275dir=f.lG2({type:r,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[f._Bn([qb]),f.qOj,f.TTD]}),r})(),vo=(()=>{class r{constructor(){this._validator=su}ngOnChanges(e){if(this.inputName in e){const t=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(t),this._validator=this._enabled?this.createValidator(t):su,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275dir=f.lG2({type:r,features:[f.TTD]}),r})();const x0={provide:Ai,useExisting:(0,f.Gpc)(()=>Ao),multi:!0};let Ao=(()=>{class r extends vo{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=f.D6c,this.createValidator=e=>vb}enabled(e){return e}}return r.\u0275fac=function(){let a;return function(t){return(a||(a=f.n5z(r)))(t||r)}}(),r.\u0275dir=f.lG2({type:r,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&f.uIk("required",t._enabled?"":null)},inputs:{required:"required"},features:[f._Bn([x0]),f.qOj]}),r})(),b=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[Fb]}),r})(),C=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[b]}),r})(),y=(()=>{class r{static withConfig(e){return{ngModule:r,providers:[{provide:rc,useValue:e.warnOnNgModelWithFormControl}]}}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[b]}),r})();class x extends Zl{constructor(a,e,t){super(nf(e),rf(t,e)),this.controls=a,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(a){return this.controls[this._adjustIndex(a)]}push(a,e={}){this.controls.push(a),this._registerControl(a),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(a,e,t={}){this.controls.splice(a,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:t.emitEvent})}removeAt(a,e={}){let t=this._adjustIndex(a);t<0&&(t=0),this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(a,e,t={}){let s=this._adjustIndex(a);s<0&&(s=0),this.controls[s]&&this.controls[s]._registerOnCollectionChange(()=>{}),this.controls.splice(s,1),e&&(this.controls.splice(s,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(a,e={}){fu(this,0,a),a.forEach((t,s)=>{Hb(this,!1,s),this.at(s).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(a,e={}){null!=a&&(a.forEach((t,s)=>{this.at(s)&&this.at(s).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(a=[],e={}){this._forEachChild((t,s)=>{t.reset(a[s],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(a=>a.getRawValue())}clear(a={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:a.emitEvent}))}_adjustIndex(a){return a<0?a+this.length:a}_syncPendingControls(){let a=this.controls.reduce((e,t)=>!!t._syncPendingControls()||e,!1);return a&&this.updateValueAndValidity({onlySelf:!0}),a}_forEachChild(a){this.controls.forEach((e,t)=>{a(e,t)})}_updateValue(){this.value=this.controls.filter(a=>a.enabled||this.disabled).map(a=>a.value)}_anyControls(a){return this.controls.some(e=>e.enabled&&a(e))}_setUpControls(){this._forEachChild(a=>this._registerControl(a))}_allControlsDisabled(){for(const a of this.controls)if(a.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(a){a.setParent(this),a._registerOnCollectionChange(this._onCollectionChange)}_find(a){return this.at(a)??null}}function D(r){return!!r&&(void 0!==r.asyncValidators||void 0!==r.validators||void 0!==r.updateOn)}let H=(()=>{class r{constructor(){this.useNonNullable=!1}get nonNullable(){const e=new r;return e.useNonNullable=!0,e}group(e,t=null){const s=this._reduceControls(e);let u={};return D(t)?u=t:null!==t&&(u.validators=t.validator,u.asyncValidators=t.asyncValidator),new Xl(s,u)}control(e,t,s){let u={};return this.useNonNullable?(D(t)?u=t:(u.validators=t,u.asyncValidators=s),new Va(e,{...u,nonNullable:!0})):new Va(e,t,s)}array(e,t,s){const u=e.map(d=>this._createControl(d));return new x(u,t,s)}_reduceControls(e){const t={};return Object.keys(e).forEach(s=>{t[s]=this._createControl(e[s])}),t}_createControl(e){return e instanceof Va||e instanceof Zl?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:y}),r})();const te=fn({passive:!0});let se=(()=>{class r{constructor(e,t){this._platform=e,this._ngZone=t,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return xr.E;const t=Gt(e),s=this._monitoredElements.get(t);if(s)return s.subject;const u=new He.x,d="cdk-text-field-autofilled",l=n=>{"cdk-text-field-autofill-start"!==n.animationName||t.classList.contains(d)?"cdk-text-field-autofill-end"===n.animationName&&t.classList.contains(d)&&(t.classList.remove(d),this._ngZone.run(()=>u.next({target:n.target,isAutofilled:!1}))):(t.classList.add(d),this._ngZone.run(()=>u.next({target:n.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{t.addEventListener("animationstart",l,te),t.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(t,{subject:u,unlisten:()=>{t.removeEventListener("animationstart",l,te)}}),u}stopMonitoring(e){const t=Gt(e),s=this._monitoredElements.get(t);s&&(s.unlisten(),s.subject.complete(),t.classList.remove("cdk-text-field-autofill-monitored"),t.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(t))}ngOnDestroy(){this._monitoredElements.forEach((e,t)=>this.stopMonitoring(t))}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(Yt),f.LFG(f.R0b))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Se=(()=>{class r{constructor(e,t,s,u){this._elementRef=e,this._platform=t,this._ngZone=s,this._destroyed=new He.x,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._handleFocusEvent=d=>{this._hasFocus="focus"===d.type},this._document=u,this._textareaElement=this._elementRef.nativeElement}get minRows(){return this._minRows}set minRows(e){this._minRows=wi(e),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(e){this._maxRows=wi(e),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(e){e=Ye(e),this._enabled!==e&&((this._enabled=e)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(e){this._cachedPlaceholderHeight=void 0,e?this._textareaElement.setAttribute("placeholder",e):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}_setMinHeight(){const e=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;e&&(this._textareaElement.style.minHeight=e)}_setMaxHeight(){const e=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;e&&(this._textareaElement.style.maxHeight=e)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{xl(this._getWindow(),"resize").pipe(Nh(16),_t(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0)),this._textareaElement.addEventListener("focus",this._handleFocusEvent),this._textareaElement.addEventListener("blur",this._handleFocusEvent)}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._textareaElement.removeEventListener("focus",this._handleFocusEvent),this._textareaElement.removeEventListener("blur",this._handleFocusEvent),this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let e=this._textareaElement.cloneNode(!1);e.rows=1,e.style.position="absolute",e.style.visibility="hidden",e.style.border="none",e.style.padding="0",e.style.height="",e.style.minHeight="",e.style.maxHeight="",e.style.overflow="hidden",this._textareaElement.parentNode.appendChild(e),this._cachedLineHeight=e.clientHeight,e.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){const e=this._textareaElement,t=e.style.marginBottom||"",s=this._platform.FIREFOX,u=s&&this._hasFocus,d=s?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";u&&(e.style.marginBottom=`${e.clientHeight}px`),e.classList.add(d);const l=e.scrollHeight-4;return e.classList.remove(d),u&&(e.style.marginBottom=t),l}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const e=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=e}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(e=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;const t=this._elementRef.nativeElement,s=t.value;if(!e&&this._minRows===this._previousMinRows&&s===this._previousValue)return;const u=this._measureScrollHeight(),d=Math.max(u,this._cachedPlaceholderHeight||0);t.style.height=`${d}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(t)):setTimeout(()=>this._scrollToCaretPosition(t))}),this._previousValue=s,this._previousMinRows=this._minRows}reset(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollToCaretPosition(e){const{selectionStart:t,selectionEnd:s}=e;!this._destroyed.isStopped&&this._hasFocus&&e.setSelectionRange(t,s)}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(f.SBq),f.Y36(Yt),f.Y36(f.R0b),f.Y36(M.K0,8))},r.\u0275dir=f.lG2({type:r,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(e,t){1&e&&f.NdJ("input",function(){return t._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]}),r})(),Ie=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({}),r})();const Ze=new f.OlP("MAT_INPUT_VALUE_ACCESSOR"),ve=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let Qe=0;const Ct=By(class{constructor(r,a,e,t){this._defaultErrorStateMatcher=r,this._parentForm=a,this._parentFormGroup=e,this.ngControl=t,this.stateChanges=new He.x}});let It=(()=>{class r extends Ct{constructor(e,t,s,u,d,l,n,i,o,c){super(l,u,d,s),this._elementRef=e,this._platform=t,this._autofillMonitor=i,this._formField=c,this._uid="mat-input-"+Qe++,this.focused=!1,this.stateChanges=new He.x,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(g=>Qc().has(g)),this._iOSKeyupListener=g=>{const p=g.target;!p.value&&0===p.selectionStart&&0===p.selectionEnd&&(p.setSelectionRange(1,1),p.setSelectionRange(0,0))};const h=this._elementRef.nativeElement,m=h.nodeName.toLowerCase();this._inputValueAccessor=n||h,this._previousNativeValue=this.value,this.id=this.id,t.IOS&&o.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===m,this._isTextarea="textarea"===m,this._isInFormField=!!c,this._isNativeSelect&&(this.controlType=h.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=Ye(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator($r.required)??!1}set required(e){this._required=Ye(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&Qc().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=Ye(e)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){const e=this._formField,t=e&&"legacy"===e.appearance&&!e._hasLabel?.()?null:this.placeholder;if(t!==this._previousPlaceholder){const s=this._elementRef.nativeElement;this._previousPlaceholder=t,t?s.setAttribute("placeholder",t):s.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){ve.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(f.SBq),f.Y36(Yt),f.Y36(on,10),f.Y36(ka,8),f.Y36(Qr,8),f.Y36(yl),f.Y36(Ze,10),f.Y36(se),f.Y36(f.R0b),f.Y36(lp,8))},r.\u0275dir=f.lG2({type:r,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(e,t){1&e&&f.NdJ("focus",function(){return t._focusChanged(!0)})("blur",function(){return t._focusChanged(!1)})("input",function(){return t._onInput()}),2&e&&(f.Ikx("disabled",t.disabled)("required",t.required),f.uIk("id",t.id)("data-placeholder",t.placeholder)("name",t.name||null)("readonly",t.readonly&&!t._isNativeSelect||null)("aria-invalid",t.empty&&t.required?null:t.errorState)("aria-required",t.required),f.ekj("mat-input-server",t._isServer)("mat-native-select-inline",t._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[f._Bn([{provide:Ur,useExisting:r}]),f.qOj,f.TTD]}),r})(),qn=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({providers:[yl],imports:[Ie,xa,$e,Ie,xa]}),r})();function _f(r,a){1&r&&(f.TgZ(0,"mat-error"),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&r&&(f.xp6(1),f.Oqu(f.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT_ERROR")))}let bf=(()=>{class r{constructor(e,t,s,u,d){this.dialogRef=e,this.translate=t,this.notificator=s,this.rtMessages=u,this.storeService=d,this.message="",this.subject="",this.instanceName=""}ngOnInit(){this.instanceName=this.storeService.getProperty("config")}sendBugReport(){this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(e=>{this.dialogRef.afterClosed().subscribe(()=>this.notificator.showSuccess(this.translate.instant("DIALOGS.REPORT_ISSUE.SUCCESS")+String(e.ticketNumber))),this.dialogRef.close()})}getFullEmailBody(){return this.message.concat("\n ","------------------------\n ","Perun instance: ",this.instanceName,"\n ","Sended from new Perun Gui, version: ",E(4147).i8)}close(){this.dialogRef.close()}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(hr),f.Y36(Bi),f.Y36(Ra),f.Y36(Vo),f.Y36(mi))},r.\u0275cmp=f.Xpm({type:r,selectors:[["perun-web-apps-report-issue-dialog"]],decls:29,vars:25,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","","type","text",3,"ngModel","ngModelChange"],["subjectModel","ngModel"],[4,"ngIf"],["matInput","",3,"placeholder","ngModel","ngModelChange"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(e,t){if(1&e&&(f.TgZ(0,"h1",0),f._uU(1),f.ALo(2,"translate"),f.qZA(),f.TgZ(3,"div",1)(4,"mat-form-field")(5,"mat-label"),f._uU(6),f.ALo(7,"translate"),f.qZA(),f.TgZ(8,"input",2,3),f.NdJ("ngModelChange",function(u){return t.subject=u}),f.qZA(),f.YNc(10,_f,3,3,"mat-error",4),f.qZA(),f.TgZ(11,"mat-form-field")(12,"mat-label"),f._uU(13),f.ALo(14,"translate"),f.qZA(),f.TgZ(15,"textarea",5),f.NdJ("ngModelChange",function(u){return t.message=u}),f.ALo(16,"translate"),f._uU(17," "),f.qZA(),f.TgZ(18,"mat-hint"),f._uU(19),f.ALo(20,"translate"),f.qZA()()(),f.TgZ(21,"div",6)(22,"div",7)(23,"button",8),f.NdJ("click",function(){return t.close()}),f._uU(24),f.ALo(25,"translate"),f.qZA(),f.TgZ(26,"button",9),f.NdJ("click",function(){return t.sendBugReport()}),f._uU(27),f.ALo(28,"translate"),f.qZA()()()),2&e){const s=f.MAs(9);f.xp6(1),f.Oqu(f.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.TITLE")),f.xp6(5),f.Oqu(f.lcZ(7,13,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT")),f.xp6(2),f.Q6J("ngModel",t.subject),f.xp6(2),f.Q6J("ngIf",s.invalid),f.xp6(3),f.Oqu(f.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE")),f.xp6(2),f.s9C("placeholder",f.lcZ(16,17,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_PLACEHOLDER")),f.Q6J("ngModel",t.message),f.xp6(4),f.Oqu(f.lcZ(20,19,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_HINT")),f.xp6(5),f.hij(" ",f.lcZ(25,21,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.CANCEL")," "),f.xp6(2),f.Q6J("disabled",s.invalid),f.xp6(1),f.hij(" ",f.lcZ(28,23,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SEND")," ")}},dependencies:[M.O5,Wr,Ia,Ao,lf,Mi,_s,Vl,yS,Aa,It,Ea,Ma,Da,vi],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),r})(),Cf=(()=>{class r{transform(e,t,s){return e[`${s}_${t}`]}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275pipe=f.Yjl({name:"localisedText",type:r,pure:!0}),r})(),wf=(()=>{class r{transform(e,t){return e["link_"+t]||e.link_en}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275pipe=f.Yjl({name:"localisedLink",type:r,pure:!0}),r})(),yf=(()=>{class r{transform(e){return e.includes("/")?e:"/assets/config/"+e}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275pipe=f.Yjl({name:"footerLogoPath",type:r,pure:!0}),r})();function vf(r,a){if(1&r&&(f.TgZ(0,"a",13),f.ALo(1,"localisedLink"),f._UZ(2,"img",14),f.ALo(3,"footerLogoPath"),f.qZA()),2&r){const e=f.oxw().$implicit,t=f.oxw(3);f.Q6J("href",f.xi3(1,2,e,t.language),f.LSH),f.xp6(2),f.s9C("src",f.lcZ(3,5,e.logo),f.LSH)}}function Af(r,a){if(1&r&&(f.TgZ(0,"span"),f._UZ(1,"img",14),f.ALo(2,"footerLogoPath"),f.qZA()),2&r){const e=f.oxw().$implicit;f.xp6(1),f.s9C("src",f.lcZ(2,1,e.logo),f.LSH)}}function xf(r,a){if(1&r&&(f.TgZ(0,"div"),f.YNc(1,vf,4,7,"a",11),f.ALo(2,"localisedLink"),f.YNc(3,Af,3,3,"span",12),f.ALo(4,"localisedLink"),f.qZA()),2&r){const e=a.$implicit,t=f.oxw(3);f.xp6(1),f.Q6J("ngIf",f.xi3(2,2,e,t.language)),f.xp6(2),f.Q6J("ngIf",!f.xi3(4,5,e,t.language))}}const Tf=function(r){return{"min-height":r}};function dH(r,a){if(1&r&&(f.TgZ(0,"div",10),f.YNc(1,xf,5,8,"div",5),f.qZA()),2&r){const e=f.oxw().$implicit,t=f.oxw();f.Q6J("ngStyle",f.VKq(2,Tf,t.columnContentHeight+"px")),f.xp6(1),f.Q6J("ngForOf",e.elements)}}const xo=function(r){return{color:r}};function uH(r,a){if(1&r&&(f.TgZ(0,"i",20),f._uU(1),f.qZA()),2&r){const e=f.oxw().$implicit,t=f.oxw(3);f.Q6J("ngStyle",f.VKq(2,xo,t.linksTextColor)),f.xp6(1),f.hij(" ",e.icon," ")}}function hH(r,a){if(1&r){const e=f.EpF();f.TgZ(0,"span",21),f.NdJ("click",function(){f.CHM(e);const s=f.oxw().$implicit,u=f.oxw(3);return f.KtG(u.openDialog(s.dialog))}),f._uU(1),f.ALo(2,"localisedText"),f.qZA()}if(2&r){const e=f.oxw().$implicit,t=f.oxw(3);f.Q6J("ngStyle",f.VKq(6,xo,t.linksTextColor)),f.xp6(1),f.hij("",f.Dn7(2,2,e,t.language,"label")," ")}}function pH(r,a){if(1&r&&(f.TgZ(0,"a",22),f.ALo(1,"localisedLink"),f._uU(2),f.ALo(3,"localisedText"),f.qZA()),2&r){const e=f.oxw().$implicit,t=f.oxw(3);f.Q6J("href",f.xi3(1,3,e,t.language),f.LSH)("ngStyle",f.VKq(10,xo,t.linksTextColor)),f.xp6(2),f.Oqu(f.Dn7(3,6,e,t.language,"label"))}}function fH(r,a){if(1&r&&(f.TgZ(0,"span",10),f._uU(1),f.ALo(2,"localisedText"),f.qZA()),2&r){const e=f.oxw().$implicit,t=f.oxw(3);f.Q6J("ngStyle",f.VKq(6,xo,t.linksTextColor)),f.xp6(1),f.Oqu(f.Dn7(2,2,e,t.language,"label"))}}function mH(r,a){if(1&r&&(f.TgZ(0,"div",16),f.YNc(1,uH,2,4,"i",17),f.YNc(2,hH,3,8,"span",18),f.YNc(3,pH,4,12,"a",19),f.ALo(4,"localisedLink"),f.YNc(5,fH,3,8,"span",9),f.ALo(6,"localisedLink"),f.qZA()),2&r){const e=a.$implicit,t=f.oxw(3);f.xp6(1),f.Q6J("ngIf",e.icon),f.xp6(1),f.Q6J("ngIf",e.dialog),f.xp6(1),f.Q6J("ngIf",f.xi3(4,4,e,t.language)&&!e.dialog),f.xp6(2),f.Q6J("ngIf",!f.xi3(6,7,e,t.language)&&!e.dialog)}}const gH=function(r){return{height:r}};function _H(r,a){if(1&r&&(f.TgZ(0,"div",10),f.YNc(1,mH,7,10,"div",15),f.qZA()),2&r){const e=f.oxw().$implicit,t=f.oxw();f.Q6J("ngStyle",f.VKq(2,gH,t.columnContentHeight+"px")),f.xp6(1),f.Q6J("ngForOf",e.elements)}}function bH(r,a){if(1&r&&(f.TgZ(0,"div",7)(1,"h6",8),f._uU(2),f.ALo(3,"localisedText"),f.qZA(),f.YNc(4,dH,2,4,"div",9),f.YNc(5,_H,2,4,"div",9),f.qZA()),2&r){const e=a.$implicit,t=f.oxw();f.ekj("my-auto",t.containsLogos),f.xp6(1),f.Q6J("ngStyle",f.VKq(10,xo,t.headersTextColor)),f.xp6(1),f.hij(" ",f.Dn7(3,6,e,t.language,"title")," "),f.xp6(2),f.Q6J("ngIf",e.logos),f.xp6(1),f.Q6J("ngIf",e.elements&&!e.logos)}}function CH(r,a){if(1&r&&(f.TgZ(0,"span")(1,"a",6),f._uU(2),f.qZA()()),2&r){const e=a.$implicit,t=a.index,s=f.oxw();f.xp6(1),f.Q6J("href",e.url,f.LSH)("ngStyle",f.VKq(3,xo,s.copyrightTextColor)),f.xp6(1),f.Oqu(t?", "+e.name:e.name)}}const wH=function(r){return{background:r}};let IE=(()=>{class r{constructor(e,t,s,u,d,l){this.storeService=e,this.translateService=t,this.utilsService=s,this.dialog=u,this.authService=d,this.initAuthService=l,this.copyrightTextColor=this.storeService.getProperty("theme").footer_copyright_text_color,this.footerColumns=[],this.copyrightItems=[],this.currentYear=(new Date).getFullYear(),this.containsLogos=!1,this.headersTextColor=this.storeService.getProperty("theme").footer_headers_text_color,this.linksTextColor=this.storeService.getProperty("theme").footer_links_text_color,this.githubRepository=this.storeService.getProperty("footer").github_releases,this.githubBackendRepository=this.storeService.getProperty("footer").github_backend_releases,this.bgColor=this.storeService.getProperty("theme").footer_bg_color,this.version="",this.backendVersion="",this.guiVersion="",this.language="en",this.columnContentHeight=0}ngOnInit(){this.translateService.onLangChange.subscribe(e=>{this.language=e.lang}),this.version=E(4147).i8,this.footerColumns=this.storeService.getProperty("footer").columns,this.guiVersion=E(4147).i8,this.utilsService.getPerunRPCVersion(!0).subscribe(e=>{this.backendVersion=e.match("\\bVersion:\\s*([^,\\s]+)")[1]}),this.footerColumns=this.storeService.getProperty("footer").columns;for(const e of this.footerColumns)e.logos?this.containsLogos=!0:25*e.elements.length>this.columnContentHeight&&(this.columnContentHeight=25*e.elements.length);this.copyrightItems=this.storeService.getProperty("footer").copyright_items}openDialog(e){const t=pr();"reportIssue"===e&&(t.width="550px",this.dialog.open(bf,t))}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(mi),f.Y36(Bi),f.Y36(ea),f.Y36(Cn),f.Y36(fr),f.Y36(ou))},r.\u0275cmp=f.Xpm({type:r,selectors:[["perun-web-apps-footer"]],decls:13,vars:19,consts:[[1,"footer-container",3,"ngStyle"],[1,"footer-columns-container"],["class","footer-col mx-auto",3,"my-auto",4,"ngFor","ngForOf"],[1,"my-0","mt-3"],[1,"font-fix","text-center",3,"ngStyle"],[4,"ngFor","ngForOf"],["target","_blank",1,"text-decoration-none",3,"href","ngStyle"],[1,"footer-col","mx-auto"],[1,"font-weight-bold",3,"ngStyle"],[3,"ngStyle",4,"ngIf"],[3,"ngStyle"],[3,"href",4,"ngIf"],[4,"ngIf"],[3,"href"],["alt","image",3,"src"],["class","row-height",4,"ngFor","ngForOf"],[1,"row-height"],["class","material-icons align-bottom mr-1",3,"ngStyle",4,"ngIf"],["id","clickable",3,"ngStyle","click",4,"ngIf"],["target","_blank",3,"href","ngStyle",4,"ngIf"],[1,"material-icons","align-bottom","mr-1",3,"ngStyle"],["id","clickable",3,"ngStyle","click"],["target","_blank",3,"href","ngStyle"]],template:function(e,t){1&e&&(f.TgZ(0,"footer",0)(1,"div",1),f.YNc(2,bH,6,12,"div",2),f.qZA(),f._UZ(3,"hr",3),f.TgZ(4,"div",4),f._uU(5),f.YNc(6,CH,3,5,"span",5),f._uU(7,", web application: "),f.TgZ(8,"a",6),f._uU(9),f.qZA(),f._uU(10,", server: "),f.TgZ(11,"a",6),f._uU(12),f.qZA()()()),2&e&&(f.Q6J("ngStyle",f.VKq(11,wH,t.bgColor)),f.xp6(2),f.Q6J("ngForOf",t.footerColumns),f.xp6(2),f.Q6J("ngStyle",f.VKq(13,xo,t.copyrightTextColor)),f.xp6(1),f.hij(" \xa9 ",t.currentYear," Copyright: "),f.xp6(1),f.Q6J("ngForOf",t.copyrightItems),f.xp6(2),f.Q6J("href",t.githubRepository,f.LSH)("ngStyle",f.VKq(15,xo,t.copyrightTextColor)),f.xp6(1),f.Oqu(t.guiVersion),f.xp6(2),f.Q6J("href",t.githubBackendRepository,f.LSH)("ngStyle",f.VKq(17,xo,t.copyrightTextColor)),f.xp6(1),f.Oqu(t.backendVersion))},dependencies:[M.sg,M.O5,M.PC,Cf,wf,yf],styles:["a[_ngcontent-%COMP%]{text-decoration:none}.font-fix[_ngcontent-%COMP%]{font-size:.8rem}.row-height[_ngcontent-%COMP%]{height:25px!important}.footer-col[_ngcontent-%COMP%]{padding-top:35px;white-space:nowrap;text-align:center}.wrap-content[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content}#clickable[_ngcontent-%COMP%]{cursor:pointer}.footer-columns-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-direction:column}@media (min-width: 768px){.footer-columns-container[_ngcontent-%COMP%]{flex-direction:row}}.footer-container[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content}"]}),r})(),yH=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[M.ez]}),r})(),kE=(()=>{class r{constructor(e,t){this.translate=e,this.storage=t}transform(e,t="en"){const s=this.storage.getProperty("custom_labels");if(s)for(const u of s)if(u.label===e)return u[t];return e}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(Bi,16),f.Y36(mi,16))},r.\u0275pipe=f.Yjl({name:"customTranslate",type:r,pure:!0}),r})();function vH(r,a){if(1&r&&(f.O4$(),f._UZ(0,"circle",4)),2&r){const e=f.oxw(),t=f.MAs(1);f.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+e._spinnerAnimationLabel)("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),f.uIk("r",e._getCircleRadius())}}function AH(r,a){if(1&r&&(f.O4$(),f._UZ(0,"circle",4)),2&r){const e=f.oxw(),t=f.MAs(1);f.Udp("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),f.uIk("r",e._getCircleRadius())}}const TH=ar(class{constructor(r){this._elementRef=r}},"primary"),SH=new f.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function EH(){return{diameter:100}}});class Yr extends TH{constructor(a,e,t,s,u,d,l,n){super(a),this._document=t,this._diameter=100,this._value=0,this._resizeSubscription=wt.w0.EMPTY,this.mode="determinate";const i=Yr._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),i.has(t.head)||i.set(t.head,new Set([100])),this._noopAnimations="NoopAnimations"===s&&!!u&&!u._forceAnimations,"mat-spinner"===a.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),u&&(u.color&&(this.color=this.defaultColor=u.color),u.diameter&&(this.diameter=u.diameter),u.strokeWidth&&(this.strokeWidth=u.strokeWidth)),e.isBrowser&&e.SAFARI&&l&&d&&n&&(this._resizeSubscription=l.change(150).subscribe(()=>{"indeterminate"===this.mode&&n.run(()=>d.markForCheck())}))}get diameter(){return this._diameter}set diameter(a){this._diameter=wi(a),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(a){this._strokeWidth=wi(a)}get value(){return"determinate"===this.mode?this._value:0}set value(a){this._value=Math.max(0,Math.min(100,wi(a)))}ngOnInit(){const a=this._elementRef.nativeElement;this._styleRoot=Kc(a)||this._document.head,this._attachStyleNode(),a.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const a=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${a} ${a}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_getCircleTransformOrigin(a){const e=50*(a.currentScale??1);return`${e}% ${e}%`}_attachStyleNode(){const a=this._styleRoot,e=this._diameter,t=Yr._diameters;let s=t.get(a);if(!s||!s.has(e)){const u=this._document.createElement("style");u.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),u.textContent=this._getAnimationText(),a.appendChild(u),s||(s=new Set,t.set(a,s)),s.add(e)}}_getAnimationText(){const a=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*a).replace(/END_VALUE/g,""+.2*a).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}Yr._diameters=new WeakMap,Yr.\u0275fac=function(a){return new(a||Yr)(f.Y36(f.SBq),f.Y36(Yt),f.Y36(M.K0,8),f.Y36(f.QbO,8),f.Y36(SH),f.Y36(f.sBO),f.Y36(jr),f.Y36(f.R0b))},Yr.\u0275cmp=f.Xpm({type:Yr,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(a,e){2&a&&(f.uIk("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),f.Udp("width",e.diameter,"px")("height",e.diameter,"px"),f.ekj("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[f.qOj],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(a,e){1&a&&(f.O4$(),f.TgZ(0,"svg",0,1),f.YNc(2,vH,1,11,"circle",2),f.YNc(3,AH,1,9,"circle",3),f.qZA()),2&a&&(f.Udp("width",e.diameter,"px")("height",e.diameter,"px"),f.Q6J("ngSwitch","indeterminate"===e.mode),f.uIk("viewBox",e._getViewBox()),f.xp6(2),f.Q6J("ngSwitchCase",!0),f.xp6(1),f.Q6J("ngSwitchCase",!1))},dependencies:[M.RF,M.n9],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:rgba(0,0,0,0);transition:stroke-dashoffset 225ms linear}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}.mat-progress-spinner[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-progress-spinner._mat-animation-noopable svg,.mat-progress-spinner._mat-animation-noopable circle{animation:none;transition: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)}}"],encapsulation:2,changeDetection:0});let Sf=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[$e,M.ez,$e]}),r})(),Jb=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[Un,M.ez]}),r})(),DH=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[M.ez,xa,go,y,qn,ws,Sf,Un,Jb]}),r})();class HH{isErrorState(a){return!(!a?.invalid||!a?.dirty)}}const RH=(r,a,e,t=500)=>s=>(0,Uh.H)(t).pipe((0,bt.w)(()=>(e.dontHandleErrorForNext(),r&&"No namespace"!==r?a.checkPasswordStrength({password:s.value,namespace:r},!0):(0,ke.of)(null))),(0,pt.U)(()=>null),(0,Bt.K)(u=>{const d={backendError:u.message.substring(u.message.indexOf(":")+1)};return(0,ke.of)(d)}));function PH(r,a){1&r&&f._UZ(0,"mat-spinner",12),2&r&&f.Q6J("diameter",18)}function IH(r,a){if(1&r&&(f.TgZ(0,"mat-icon",13),f._uU(1," error "),f.qZA()),2&r){const e=f.oxw();f.Q6J("matTooltip",e.getErrorTooltip())("matTooltipDisabled",!e.formGroup.get("passwordCtrl").hasError("backendError"))}}function kH(r,a){1&r&&(f.TgZ(0,"mat-error"),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&r&&(f.xp6(1),f.Oqu(f.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function VH(r,a){if(1&r&&(f.TgZ(0,"mat-error",14),f._uU(1),f.qZA()),2&r){const e=f.oxw();f.Q6J("matTooltip",e.getErrorTooltip()),f.xp6(1),f.Oqu(e.getErrorTooltip())}}function BH(r,a){1&r&&(f.TgZ(0,"mat-error"),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&r&&(f.xp6(1),f.Oqu(f.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function OH(r,a){1&r&&(f.TgZ(0,"mat-error"),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&r&&(f.xp6(1),f.Oqu(f.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PWD_DONT_MATCH")))}let LH=(()=>{class r{constructor(e,t,s){this.translator=e,this.usersManagerService=t,this.store=s,this.passwordRequired=!0,this.tooltipPwdViaEmail=!1,this.tooltipPwdDisabledForNamespace=!1,this.language="en",this.passwordRequirement=null,this.showNewPassword=!1,this.showPasswordConfirm=!1,this.passwordStateMatcher=new HH,this.allPasswordRequirements=this.store.getProperty("password_help")}ngOnInit(){window.location.href.includes("/profile")?this.usersManagerService.getRichUserWithAttributes(this.store.getPerunPrincipal().userId).subscribe(e=>{const t=e.userAttributes.find(s=>"preferredLanguage"===s.friendlyName);this.language=t?.value??"en","en"!==this.language&&(this.allPasswordRequirements=this.store.getProperty("en"===this.language?"password_help":"password_help_cs")),this.changeHelp()}):this.changeHelp()}ngOnChanges(){this.allPasswordRequirements=this.store.getProperty("en"===this.language?"password_help":"password_help_cs"),this.changeHelp()}getPasswordDisabledTooltip(){return this.translator.instant(this.tooltipPwdViaEmail?"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.TOOLTIP_PASSWORD_VIA_EMAIL":"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.TOOLTIP_PASSWORD_DISABLED")}getErrorTooltip(){let e=this.formGroup.get("passwordCtrl").getError("backendError");return e&&(e=e.replace(":null","")),e}changeHelp(){this.passwordRequirement=this.allPasswordRequirements[this.namespace],this.passwordRequirement||(this.passwordRequirement=this.allPasswordRequirements.default)}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(Bi),f.Y36(xn),f.Y36(mi))},r.\u0275cmp=f.Xpm({type:r,selectors:[["perun-web-apps-password-form"]],inputs:{formGroup:"formGroup",passwordRequired:"passwordRequired",tooltipPwdViaEmail:"tooltipPwdViaEmail",tooltipPwdDisabledForNamespace:"tooltipPwdDisabledForNamespace",namespace:"namespace",language:"language"},features:[f.TTD],decls:21,vars:23,consts:[[3,"formGroup"],["matTooltipPosition","left",1,"max-width",3,"matTooltip","matTooltipDisabled"],["data-cy","passwd-input","matInput","","formControlName","passwordCtrl",3,"type","required","errorStateMatcher","placeholder"],["matSuffix","","class","input-spinner",3,"diameter",4,"ngIf"],["matSuffix","",3,"click"],["color","warn","matSuffix","","class","error-icon",3,"matTooltip","matTooltipDisabled",4,"ngIf"],[4,"ngIf"],["matTooltipPosition","after",3,"matTooltip",4,"ngIf"],[1,"max-width"],["data-cy","confirm-passwd-input","matInput","","formControlName","passwordAgainCtrl",3,"type","required"],["alert_type","info"],[3,"innerHTML"],["matSuffix","",1,"input-spinner",3,"diameter"],["color","warn","matSuffix","",1,"error-icon",3,"matTooltip","matTooltipDisabled"],["matTooltipPosition","after",3,"matTooltip"]],template:function(e,t){1&e&&(f.TgZ(0,"div",0)(1,"mat-form-field",1),f._UZ(2,"input",2),f.ALo(3,"translate"),f.YNc(4,PH,1,1,"mat-spinner",3),f.TgZ(5,"mat-icon",4),f.NdJ("click",function(){return t.showNewPassword=!t.showNewPassword}),f._uU(6),f.qZA(),f.YNc(7,IH,2,2,"mat-icon",5),f.YNc(8,kH,3,3,"mat-error",6),f.YNc(9,VH,2,2,"mat-error",7),f.qZA(),f.TgZ(10,"mat-form-field",8)(11,"mat-label"),f._uU(12),f.ALo(13,"translate"),f.qZA(),f._UZ(14,"input",9),f.TgZ(15,"mat-icon",4),f.NdJ("click",function(){return t.showPasswordConfirm=!t.showPasswordConfirm}),f._uU(16),f.qZA(),f.YNc(17,BH,3,3,"mat-error",6),f.YNc(18,OH,3,3,"mat-error",6),f.qZA(),f.TgZ(19,"perun-web-apps-alert",10),f._UZ(20,"div",11),f.qZA()()),2&e&&(f.Q6J("formGroup",t.formGroup),f.xp6(1),f.Q6J("matTooltip",t.getPasswordDisabledTooltip())("matTooltipDisabled",t.formGroup.get("passwordCtrl").enabled||t.tooltipPwdDisabledForNamespace),f.xp6(1),f.s9C("placeholder",f.lcZ(3,19,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD")),f.Q6J("type",t.showNewPassword?"text":"password")("required",t.passwordRequired)("errorStateMatcher",t.passwordStateMatcher),f.xp6(2),f.Q6J("ngIf",t.formGroup.get("passwordCtrl").pending),f.xp6(2),f.hij(" ",t.showNewPassword?"visibility_off":"visibility"," "),f.xp6(1),f.Q6J("ngIf",t.formGroup.get("passwordCtrl").dirty&&null!==t.formGroup.get("passwordCtrl").errors),f.xp6(1),f.Q6J("ngIf",t.formGroup.get("passwordCtrl").hasError("required")),f.xp6(1),f.Q6J("ngIf",t.formGroup.get("passwordCtrl").hasError("backendError")),f.xp6(3),f.Oqu(f.lcZ(13,21,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD_AGAIN")),f.xp6(2),f.Q6J("type",t.showPasswordConfirm?"text":"password")("required",t.passwordRequired),f.xp6(2),f.hij(" ",t.showPasswordConfirm?"visibility_off":"visibility"," "),f.xp6(1),f.Q6J("ngIf",t.formGroup.get("passwordAgainCtrl").hasError("required")),f.xp6(1),f.Q6J("ngIf",t.formGroup.get("passwordAgainCtrl").hasError("noPasswordMatch")),f.xp6(2),f.Q6J("innerHTML",t.passwordRequirement,f.oJD))},dependencies:[M.O5,_s,Vl,Aa,lr,qd,Wr,Ia,cu,Ao,Qr,ff,It,Yr,qr,Ha,vi],styles:[".max-width[_ngcontent-%COMP%]{width:100%!important}.input-spinner[_ngcontent-%COMP%]{float:right;margin-left:5px}.error-icon[_ngcontent-%COMP%]{margin-left:5px}mat-icon[_ngcontent-%COMP%]:hover{cursor:default}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper{padding-bottom:0}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-underline{position:initial!important;display:block;margin-top:-1px}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper, [_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-ripple{position:initial!important;display:table}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper{min-height:calc(1em + 1px)}"]}),r})();function WH(r,a){1&r&&f._UZ(0,"mat-spinner",7)}function $H(r,a){1&r&&(f.TgZ(0,"mat-error"),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&r&&(f.xp6(1),f.Oqu(f.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_ERROR")))}function QH(r,a){1&r&&(f.TgZ(0,"mat-error"),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&r&&(f.xp6(1),f.Oqu(f.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_ERROR")))}function YH(r,a){if(1&r){const e=f.EpF();f.TgZ(0,"div",8)(1,"mat-form-field")(2,"mat-label"),f._uU(3),f.ALo(4,"translate"),f.qZA(),f.TgZ(5,"input",9,10),f.NdJ("ngModelChange",function(s){f.CHM(e);const u=f.oxw();return f.KtG(u.subject=s)}),f.qZA(),f.YNc(7,$H,3,3,"mat-error",11),f.qZA(),f.TgZ(8,"mat-form-field")(9,"mat-label"),f._uU(10),f.ALo(11,"translate"),f.qZA(),f.TgZ(12,"textarea",12,13),f.NdJ("ngModelChange",function(s){f.CHM(e);const u=f.oxw();return f.KtG(u.message=s)}),f.ALo(14,"translate"),f._uU(15," "),f.qZA(),f.YNc(16,QH,3,3,"mat-error",11),f.qZA()()}if(2&r){const e=f.MAs(6),t=f.MAs(13),s=f.oxw();f.xp6(3),f.Oqu(f.lcZ(4,7,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT")),f.xp6(2),f.Q6J("ngModel",s.subject),f.xp6(2),f.Q6J("ngIf",e.invalid),f.xp6(3),f.Oqu(f.lcZ(11,9,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE")),f.xp6(2),f.s9C("placeholder",f.lcZ(14,11,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_PLACEHOLDER")),f.Q6J("ngModel",s.message),f.xp6(4),f.Q6J("ngIf",t.invalid)}}let JH=(()=>{class r{constructor(e,t,s,u,d,l){this.dialogRef=e,this.translate=t,this.notificator=s,this.rtMessages=u,this.data=d,this.storeService=l,this.message="",this.subject="",this.methodRegexp=/(\w+\/\w+)$/g,this.loading=!1}ngOnInit(){this.data?.error?.errorId&&(this.subject="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_VALUE"),this.parseMethod(this.data.error.call)," (",this.data.error.errorId,")"))}sendBugReport(){this.loading=!0,this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(e=>{this.dialogRef.afterClosed().subscribe(()=>{const t="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS1"),e.ticketNumber.toString(),this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS2"));this.notificator.showSuccess(t)}),this.dialogRef.close()},()=>{this.loading=!1,this.dialogRef.afterClosed().subscribe(()=>{})})}getFullEmailBody(){const e=this.storeService.getProperty("config");let t=this.message+"\n------------------------\nTechnical details:\n\n"+this.data.error.errorId;if(t=t.concat(this.data.error.type?" "+this.data.error.type+"\n":"\n"),t=t.concat(this.data.error.message,"\n","Perun instance: ",e,"\n","Request:\n",this.data.error.urlWithParams,"\n\n"),this.data.error.payload){const s=/"password":".+?"/;let u=JSON.stringify(this.data.error.payload);u=u.replace(s,'"password":"####"'),t=t.concat("Payload:\n"+u+"\n\n")}return t=t.concat("Sent from new Perun Gui, version: ",E(4147).i8),t.split("\n").join("\n ")}parseMethod(e){return e&&this.methodRegexp.exec(e)[1]}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(hr),f.Y36(Bi),f.Y36(Ra),f.Y36(Vo),f.Y36(Sa),f.Y36(mi))},r.\u0275cmp=f.Xpm({type:r,selectors:[["perun-web-apps-bug-report-dialog"]],decls:13,vars:12,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","",3,"ngModel","ngModelChange"],["subjectModel","ngModel"],[4,"ngIf"],["matInput","","required","",3,"ngModel","placeholder","ngModelChange"],["messageModel","ngModel"]],template:function(e,t){1&e&&(f.TgZ(0,"h1",0),f._uU(1),f.ALo(2,"translate"),f.qZA(),f.YNc(3,WH,1,0,"mat-spinner",1),f.YNc(4,YH,17,13,"div",2),f.TgZ(5,"div",3)(6,"div",4)(7,"button",5),f.NdJ("click",function(){return t.dialogRef.close()}),f._uU(8),f.ALo(9,"translate"),f.qZA(),f.TgZ(10,"button",6),f.NdJ("click",function(){return t.sendBugReport()}),f._uU(11),f.ALo(12,"translate"),f.qZA()()()),2&e&&(f.xp6(1),f.Oqu(f.lcZ(2,6,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.TITLE")),f.xp6(2),f.Q6J("ngIf",t.loading),f.xp6(1),f.Q6J("ngIf",!t.loading),f.xp6(4),f.hij(" ",f.lcZ(9,8,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.CANCEL")," "),f.xp6(2),f.Q6J("disabled",""===t.message||""===t.subject||t.loading),f.xp6(1),f.hij(" ",f.lcZ(12,10,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SEND")," "))},dependencies:[M.O5,Ea,Ma,Da,Mi,_s,Vl,Aa,Wr,Ia,Ao,lf,It,Yr,vi],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),r})(),KH=(()=>{class r{constructor(e,t,s){this.dialogRef=e,this.dialog=t,this.data=s}onCloseClick(){this.dialogRef.close()}onBugReportClick(){this.dialogRef.afterClosed().subscribe(()=>{const e=pr();e.width="550px",e.data={error:this.data.error},e.autoFocus=!1,this.dialog.open(JH,e)}),this.dialogRef.close()}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(hr),f.Y36(Cn),f.Y36(Sa))},r.\u0275cmp=f.Xpm({type:r,selectors:[["perun-web-apps-notification-dialog"]],decls:12,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"hidden","click"],["autofocus","","mat-button","",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(f.TgZ(0,"h1",0),f._uU(1),f.qZA(),f.TgZ(2,"div",1),f._uU(3),f.qZA(),f.TgZ(4,"div",2)(5,"div",3)(6,"button",4),f.NdJ("click",function(){return t.onBugReportClick()}),f._uU(7),f.ALo(8,"translate"),f.qZA(),f.TgZ(9,"button",5),f.NdJ("click",function(){return t.onCloseClick()}),f._uU(10),f.ALo(11,"translate"),f.qZA()()()),2&e&&(f.xp6(1),f.Oqu(t.data.title),f.xp6(2),f.hij(" ",t.data.description,"\n"),f.xp6(3),f.Q6J("hidden","error"!==t.data.type),f.xp6(1),f.hij(" ",f.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_BUG_REPORT")," "),f.xp6(3),f.hij(" ",f.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_CLOSE")," "))},dependencies:[Ea,Ma,Da,Mi,vi]}),r})();function gR(r,a){1&r&&(f.TgZ(0,"mat-error",8),f._uU(1),f.ALo(2,"translate"),f.ALo(3,"customTranslate"),f.qZA()),2&r&&(f.xp6(1),f.Oqu(f.lcZ(2,1,f.lcZ(3,3,"DIALOGS.ADD_SSH.INVALID_TYPE"))))}class To{constructor(a,e,t){this.dialogRef=a,this.data=e,this.attributesManagerService=t}ngOnInit(){this.sshControl=new Ob(null,[$r.required,$r.pattern(To.sshKeyPattern)])}onCancel(){this.dialogRef.close(!1)}onSubmit(){const a=this.data.attribute?.value??[],e=this.sshControl.value;a.includes(e)||a.push(e),this.data.attribute.value=a,this.attributesManagerService.setUserAttribute({user:this.data.userId,attribute:this.data.attribute}).subscribe(()=>{this.dialogRef.close(!0)},()=>{a.pop()})}}function vR(r,a){if(1&r&&(f.TgZ(0,"div",9),f._UZ(1,"perun-web-apps-notification",10),f.qZA()),2&r){const e=a.$implicit;f.xp6(1),f.Q6J("data",e)("inDialog",!0)}}function AR(r,a){if(1&r&&(f.TgZ(0,"div",6)(1,"cdk-virtual-scroll-viewport",7),f.YNc(2,vR,2,2,"div",8),f.qZA()()),2&r){const e=f.oxw();f.xp6(2),f.Q6J("cdkVirtualForOf",e.notifications)}}function xR(r,a){1&r&&(f.TgZ(0,"perun-web-apps-alert",11),f._uU(1),f.ALo(2,"translate"),f.ALo(3,"customTranslate"),f.qZA()),2&r&&(f.xp6(1),f.Oqu(f.lcZ(2,1,f.lcZ(3,3,"DIALOGS.NOTIFICATION_LIST.NO_NOTIFICATIONS_ALERT"))))}To.allowedSshKeys=["ssh-ed25519","ssh-ed25519-cert-v01@openssh.com","sk-ssh-ed25519@openssh.com","sk-ssh-ed25519-cert-v01@openssh.com","ssh-rsa","ssh-dss","ecdsa-sha2-nistp256","ecdsa-sha2-nistp384","ecdsa-sha2-nistp521","sk-ecdsa-sha2-nistp256@openssh.com","ssh-rsa-cert-v01@openssh.com","ssh-dss-cert-v01@openssh.com","ecdsa-sha2-nistp256-cert-v01@openssh.com","ecdsa-sha2-nistp384-cert-v01@openssh.com","ecdsa-sha2-nistp521-cert-v01@openssh.com","sk-ecdsa-sha2-nistp256-cert-v01@openssh.com"],To.sshKeyPattern="^("+To.allowedSshKeys.join("|")+").+$",To.\u0275fac=function(a){return new(a||To)(f.Y36(hr),f.Y36(Sa),f.Y36(wr))},To.\u0275cmp=f.Xpm({type:To,selectors:[["perun-web-apps-add-ssh-dialog"]],decls:20,vars:23,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","user-theme"],[1,"input-width"],["matInput","","required","","cdkTextareaAutosize","","cdkAutosizeMinRows","4",3,"placeholder","formControl"],["class","white-space-pre",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[1,"white-space-pre"]],template:function(a,e){1&a&&(f.TgZ(0,"h1",0),f._uU(1),f.ALo(2,"translate"),f.ALo(3,"customTranslate"),f.qZA(),f.TgZ(4,"div",1)(5,"mat-form-field",2)(6,"label",2),f._UZ(7,"textarea",3),f.ALo(8,"translate"),f.ALo(9,"customTranslate"),f.qZA(),f.YNc(10,gR,4,5,"mat-error",4),f.qZA()(),f.TgZ(11,"div",5)(12,"button",6),f.NdJ("click",function(){return e.onCancel()}),f._uU(13),f.ALo(14,"translate"),f.ALo(15,"customTranslate"),f.qZA(),f.TgZ(16,"button",7),f.NdJ("click",function(){return e.onSubmit()}),f._uU(17),f.ALo(18,"translate"),f.ALo(19,"customTranslate"),f.qZA()()),2&a&&(f.xp6(1),f.Oqu(f.lcZ(2,7,f.lcZ(3,9,"DIALOGS.ADD_SSH.TITLE"))),f.xp6(6),f.s9C("placeholder",f.lcZ(8,11,f.lcZ(9,13,"DIALOGS.ADD_SSH.INPUT_PLACEHOLDER"))),f.Q6J("formControl",e.sshControl),f.xp6(3),f.Q6J("ngIf",e.sshControl.invalid&&e.sshControl.dirty),f.xp6(3),f.hij(" ",f.lcZ(14,15,f.lcZ(15,17,"DIALOGS.ADD_SSH.CANCEL"))," "),f.xp6(3),f.Q6J("disabled",e.sshControl.invalid),f.xp6(1),f.hij(" ",f.lcZ(18,19,f.lcZ(19,21,"DIALOGS.ADD_SSH.ADD"))," "))},dependencies:[M.O5,Wr,Ia,Ao,Mi,_s,Vl,bu,Se,It,Ea,Ma,Da,vi,kE],styles:[".input-width{width:100%}.white-space-pre{white-space:pre-wrap}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper{padding-bottom:0}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-underline{position:initial!important;display:block;margin-top:-1px}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper,perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-ripple{position:initial!important;display:table}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper{min-height:calc(1em + 1px)}\n"],encapsulation:2});let BE=(()=>{class r{constructor(e,t){this.dialogRef=e,this.notificationStorageService=t}ngOnInit(){this.notifications=this.notificationStorageService.getNotifications()}onCancel(){this.dialogRef.close()}onClear(){this.notificationStorageService.clearNotifications(),this.notifications=[]}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(hr),f.Y36($l))},r.\u0275cmp=f.Xpm({type:r,selectors:[["perun-web-apps-show-notification-history-dialog"]],decls:15,vars:17,consts:[["mat-dialog-title",""],["class","hide-horizontal-scrollbar",4,"ngIf"],["alert_type","warn",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","",1,"ml-2",3,"click"],[1,"hide-horizontal-scrollbar"],["itemSize","50",1,"viewport"],["class","mb-1",4,"cdkVirtualFor","cdkVirtualForOf"],[1,"mb-1"],[3,"data","inDialog"],["alert_type","warn"]],template:function(e,t){1&e&&(f.TgZ(0,"h1",0),f._uU(1),f.ALo(2,"translate"),f.ALo(3,"customTranslate"),f.qZA(),f.YNc(4,AR,3,1,"div",1),f.YNc(5,xR,4,5,"perun-web-apps-alert",2),f.TgZ(6,"div",3)(7,"button",4),f.NdJ("click",function(){return t.onClear()}),f._uU(8),f.ALo(9,"translate"),f.ALo(10,"customTranslate"),f.qZA(),f.TgZ(11,"button",5),f.NdJ("click",function(){return t.onCancel()}),f._uU(12),f.ALo(13,"translate"),f.ALo(14,"customTranslate"),f.qZA()()),2&e&&(f.xp6(1),f.Oqu(f.lcZ(2,5,f.lcZ(3,7,"DIALOGS.NOTIFICATION_LIST.TITLE"))),f.xp6(3),f.Q6J("ngIf",0!==t.notifications.length),f.xp6(1),f.Q6J("ngIf",0===t.notifications.length),f.xp6(3),f.hij(" ",f.lcZ(9,9,f.lcZ(10,11,"DIALOGS.NOTIFICATION_LIST.CLEAR"))," "),f.xp6(4),f.hij(" ",f.lcZ(13,13,f.lcZ(14,15,"DIALOGS.NOTIFICATION_LIST.CANCEL"))," "))},styles:[".viewport[_ngcontent-%COMP%]{height:400px;width:470px}.hide-horizontal-scrollbar[_ngcontent-%COMP%]{overflow-x:hidden}"]}),r})();var vu=(()=>{return(r=vu||(vu={})).Admin="admin",r.Profile="profile",r.PwdReset="pwdReset",r.Consolidator="consolidator",r.Linker="linker",vu;var r})();const TR=["*",[["mat-toolbar-row"]]],SR=["*","mat-toolbar-row"],ER=ar(class{constructor(r){this._elementRef=r}});let MR=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275dir=f.lG2({type:r,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),r})(),DR=(()=>{class r extends ER{constructor(e,t,s){super(e),this._platform=t,this._document=s}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(f.SBq),f.Y36(Yt),f.Y36(M.K0))},r.\u0275cmp=f.Xpm({type:r,selectors:[["mat-toolbar"]],contentQueries:function(e,t,s){if(1&e&&f.Suo(s,MR,5),2&e){let u;f.iGM(u=f.CRH())&&(t._toolbarRows=u)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,t){2&e&&f.ekj("mat-toolbar-multiple-rows",t._toolbarRows.length>0)("mat-toolbar-single-row",0===t._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[f.qOj],ngContentSelectors:SR,decls:2,vars:0,template:function(e,t){1&e&&(f.F$t(TR),f.Hsn(0),f.Hsn(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%}"],encapsulation:2,changeDetection:0}),r})(),OE=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[$e,$e]}),r})(),HR=0;const RR=so(class{}),LE="mat-badge-content";let PR=(()=>{class r extends RR{constructor(e,t,s,u,d){super(),this._ngZone=e,this._elementRef=t,this._ariaDescriber=s,this._renderer=u,this._animationMode=d,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=HR++,this._isInitialized=!1}get color(){return this._color}set color(e){this._setColor(e),this._color=e}get overlap(){return this._overlap}set overlap(e){this._overlap=Ye(e)}get content(){return this._content}set content(e){this._updateRenderedContent(e)}get description(){return this._description}set description(e){this._updateHostAriaDescription(e)}get hidden(){return this._hidden}set hidden(e){this._hidden=Ye(e)}isAbove(){return-1===this.position.indexOf("below")}isAfter(){return-1===this.position.indexOf("before")}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=!0}ngOnDestroy(){this._renderer.destroyNode&&this._renderer.destroyNode(this._badgeElement),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_createBadgeElement(){const e=this._renderer.createElement("span"),t="mat-badge-active";return e.setAttribute("id",`mat-badge-content-${this._id}`),e.setAttribute("aria-hidden","true"),e.classList.add(LE),"NoopAnimations"===this._animationMode&&e.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(e),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{e.classList.add(t)})}):e.classList.add(t),e}_updateRenderedContent(e){const t=`${e??""}`.trim();this._isInitialized&&t&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=t),this._content=t}_updateHostAriaDescription(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),e&&this._ariaDescriber.describe(this._elementRef.nativeElement,e),this._description=e}_setColor(e){const t=this._elementRef.nativeElement.classList;t.remove(`mat-badge-${this._color}`),e&&t.add(`mat-badge-${e}`)}_clearExistingBadges(){const e=this._elementRef.nativeElement.querySelectorAll(`:scope > .${LE}`);for(const t of Array.from(e))t!==this._badgeElement&&t.remove()}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(f.R0b),f.Y36(f.SBq),f.Y36(dg),f.Y36(f.Qsj),f.Y36(f.QbO,8))},r.\u0275dir=f.lG2({type:r,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(e,t){2&e&&f.ekj("mat-badge-overlap",t.overlap)("mat-badge-above",t.isAbove())("mat-badge-below",!t.isAbove())("mat-badge-before",!t.isAfter())("mat-badge-after",t.isAfter())("mat-badge-small","small"===t.size)("mat-badge-medium","medium"===t.size)("mat-badge-large","large"===t.size)("mat-badge-hidden",t.hidden||!t.content)("mat-badge-disabled",t.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],position:["matBadgePosition","position"],content:["matBadge","content"],description:["matBadgeDescription","description"],size:["matBadgeSize","size"],hidden:["matBadgeHidden","hidden"]},features:[f.qOj]}),r})(),IR=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[Cl,$e,$e]}),r})();const H0=function(r){return{color:r}};function kR(r,a){if(1&r&&(f.TgZ(0,"button",8),f.ALo(1,"translate"),f.TgZ(2,"mat-icon",4),f._uU(3," apps "),f.qZA()()),2&r){const e=f.oxw(),t=f.MAs(2);f.Q6J("matMenuTriggerFor",t)("matTooltip",f.lcZ(1,3,"NAV.OTHER_APPLICATIONS")),f.xp6(2),f.Q6J("ngStyle",f.VKq(5,H0,e.iconColor))}}function VR(r,a){if(1&r&&(f.TgZ(0,"span",9),f._uU(1),f.qZA()),2&r){const e=f.oxw();f.Q6J("ngStyle",f.VKq(6,H0,e.textColor)),f.xp6(1),f.xDo(" ",e.user.titleBefore," ",e.user.firstName," ",e.user.middleName," ",e.user.lastName," ",e.user.titleAfter," ")}}function BR(r,a){if(1&r){const e=f.EpF();f.TgZ(0,"button",10),f.NdJ("click",function(){f.CHM(e);const s=f.oxw();return f.KtG(s.onLogOut())}),f._uU(1),f.ALo(2,"translate"),f.qZA()}2&r&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"NAV.LOGOUT")," "))}let OR=(()=>{class r{constructor(e){this.authService=e}redirectToUrl(){window.open(this.url,"_blank")}onLogOut(){this.authService.logout()}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(fr))},r.\u0275cmp=f.Xpm({type:r,selectors:[["perun-web-apps-header-menu"]],inputs:{user:"user",iconColor:"iconColor",textColor:"textColor",logoutEnabled:"logoutEnabled",url:"url",label:"label"},decls:13,vars:8,consts:[["mat-icon-button","",3,"matMenuTriggerFor","matTooltip",4,"ngIf"],["appsMenu","matMenu"],["mat-menu-item","",3,"click","auxclick"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],["class","d-none d-lg-inline",3,"ngStyle",4,"ngIf"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-icon-button","",3,"matMenuTriggerFor","matTooltip"],[1,"d-none","d-lg-inline",3,"ngStyle"],["mat-menu-item","",3,"click"]],template:function(e,t){if(1&e&&(f.YNc(0,kR,4,7,"button",0),f.TgZ(1,"mat-menu",null,1)(3,"button",2),f.NdJ("click",function(){return t.redirectToUrl()})("auxclick",function(){return t.redirectToUrl()}),f.TgZ(4,"span"),f._uU(5),f.qZA()()(),f.TgZ(6,"button",3)(7,"mat-icon",4),f._uU(8," person "),f.qZA(),f.YNc(9,VR,2,8,"span",5),f.qZA(),f.TgZ(10,"mat-menu",null,6),f.YNc(12,BR,3,3,"button",7),f.qZA()),2&e){const s=f.MAs(11);f.Q6J("ngIf",t.url),f.xp6(5),f.Oqu(t.label),f.xp6(1),f.Q6J("matMenuTriggerFor",s),f.xp6(1),f.Q6J("ngStyle",f.VKq(6,H0,t.iconColor)),f.xp6(2),f.Q6J("ngIf",null!==t.user),f.xp6(3),f.Q6J("ngIf",t.logoutEnabled)}},dependencies:[M.O5,M.PC,qr,fp,Fl,I_,Mi,qd,vi],styles:["@media (max-width: 991px){.no-left-padding[_ngcontent-%COMP%]{padding-left:0}}"]}),r})(),LR=(()=>{class r extends ol{constructor(){super(...arguments),this.queryParamsHandling="merge"}ngOnChanges(){if(this.queryParams&&"applicationFormItems"in this.queryParams){this.queryParamsHandling="";const e=Object.assign({},this.queryParams);delete e.applicationFormItems,this.queryParams=e}}}return r.\u0275fac=function(){let a;return function(t){return(a||(a=f.n5z(r)))(t||r)}}(),r.\u0275dir=f.lG2({type:r,selectors:[["tr","routerLink",""],["a","routerLink",""]],features:[f.qOj,f.TTD]}),r})();const Au=function(r){return{color:r}};function jR(r,a){if(1&r){const e=f.EpF();f.TgZ(0,"button",9),f.NdJ("click",function(){f.CHM(e);const s=f.oxw();return f.KtG(s.onToggleSidenav())}),f.TgZ(1,"mat-icon"),f._uU(2,"menu"),f.qZA()()}if(2&r){const e=f.oxw();f.Q6J("ngStyle",f.VKq(1,Au,e.iconColor))}}function FR(r,a){if(1&r){const e=f.EpF();f.TgZ(0,"div",10)(1,"button",11)(2,"mat-icon",12),f._uU(3," language "),f.qZA()(),f.TgZ(4,"mat-menu",null,13)(6,"button",14),f.NdJ("click",function(){f.CHM(e);const s=f.oxw();return f.KtG(s.changeLanguage())}),f._uU(7),f.ALo(8,"translate"),f.qZA()()()}if(2&r){const e=f.MAs(5),t=f.oxw();f.Q6J("ngStyle",f.VKq(6,Au,t.textColor)),f.xp6(1),f.Q6J("matMenuTriggerFor",e),f.xp6(1),f.Q6J("ngStyle",f.VKq(8,Au,t.iconColor)),f.xp6(5),f.hij(" ",f.lcZ(8,4,"HEADER.LANGUAGE")," ")}}function UR(r,a){if(1&r){const e=f.EpF();f.TgZ(0,"button",15),f.NdJ("click",function(){f.CHM(e);const s=f.oxw();return f.KtG(s.showNotificationHistory())}),f.ALo(1,"translate"),f.TgZ(2,"mat-icon",16),f._uU(3),f.qZA()()}if(2&r){const e=f.oxw();f.Q6J("matTooltip",f.lcZ(1,5,"NAV.NOTIFICATIONS_TOOLTIP")),f.xp6(2),f.s9C("matBadge",e.getNewNotificationsCount()>5?"5+":e.getNewNotificationsCount()),f.Q6J("ngStyle",f.VKq(7,Au,e.iconColor))("matBadgeHidden",0===e.getNewNotificationsCount()),f.xp6(1),f.hij(" ",e.getNewNotificationsCount()?"notifications_active":"notifications"," ")}}function NR(r,a){if(1&r&&f._UZ(0,"perun-web-apps-header-menu",17),2&r){const e=f.oxw();f.Q6J("url",e.otherAppUrl)("label",e.otherAppLabel)("user",e.principal.user)("logoutEnabled",e.logoutEnabled)("iconColor",e.iconColor)("textColor",e.textColor)}}const qR=function(r){return{background:r}},zR=function(){return[]},GR=function(){return["/"]};let WR=(()=>{class r{constructor(e,t,s,u,d,l,n){this.storeService=e,this.sanitizer=t,this.translateService=s,this.otherApplicationService=u,this.notificationStorageService=d,this.dialog=l,this.route=n,this.sidenavToggle=new f.vpe,this.showToggle=!0,this.showLanguageMenu=!1,this.showHeaderMenu=!0,this.showNotifications=!1,this.disableLogo=!1,this.label=this.storeService.getProperty("header_label_en"),this.logoutEnabled=this.storeService.getProperty("log_out_enabled"),this.principal=this.storeService.getPerunPrincipal(),this.bgColor=this.storeService.getProperty("theme").nav_bg_color,this.textColor=this.storeService.getProperty("theme").nav_text_color,this.iconColor=this.storeService.getProperty("theme").nav_icon_color,this.navTextColor=this.storeService.getProperty("theme").nav_text_color,this.activeLink=!1,this.onToggleSidenav=()=>{this.sidenavToggle.emit()}}ngOnInit(){this.otherAppLabel=this.getOtherAppLabel(),this.translateService.onLangChange.subscribe(e=>{this.label=this.storeService.getProperty("en"===e.lang?"header_label_en":"header_label_cs"),this.otherAppLabel=this.getOtherAppLabel(e.lang)}),this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.getProperty("logo")),this.isLinkToOtherAppActive()}getOtherAppLabel(e="en"){return this.storeService.getProperty(this.otherApp===vu.Profile?"profile_label_en":"en"===e?"admin_gui_label_en":"admin_gui_label_cs")}isLinkToOtherAppActive(){if(this.otherApp===vu.Admin){this.linkRoles=this.storeService.getProperty("link_to_admin_gui_by_roles");for(const e in this.storeService.getPerunPrincipal().roles)this.linkRoles.includes(e)&&(this.activeLink=!0)}(this.otherApp!==vu.Admin||this.activeLink)&&(this.otherAppUrl=this.otherApplicationService.getUrlForOtherApplication(this.otherApp))}changeLanguage(){this.translateService.use("en"===this.translateService.currentLang?"cs":"en")}showNotificationHistory(){this.notificationStorageService.newNotificationsCount=0;const e=pr();e.width="520px",this.dialog.open(BE,e)}getNewNotificationsCount(){return this.notificationStorageService.newNotificationsCount}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(mi),f.Y36(ti),f.Y36(Bi),f.Y36(UA),f.Y36($l),f.Y36(Cn),f.Y36(Hr))},r.\u0275cmp=f.Xpm({type:r,selectors:[["perun-web-apps-header"]],inputs:{showToggle:"showToggle",showLanguageMenu:"showLanguageMenu",showHeaderMenu:"showHeaderMenu",showNotifications:"showNotifications",disableLogo:"disableLogo",otherApp:"otherApp"},outputs:{sidenavToggle:"sidenavToggle"},decls:10,vars:19,consts:[[1,"sticky-top","header-container","mat-elevation-z3",3,"ngStyle"],["id","nav-menu-icons"],["aria-label","Menu","mat-icon-button","",3,"ngStyle","click",4,"ngIf"],["queryParamsHandling","merge",1,"logo-container","mt-auto","mb-auto",3,"innerHTML","routerLink","queryParams"],[1,"mt-auto","mb-auto","hide-label","page-subtitle",3,"ngStyle"],["id","nav-menu-user-info",3,"ngStyle"],["id","nav-menu-language",3,"ngStyle",4,"ngIf"],["mat-icon-button","",3,"matTooltip","click",4,"ngIf"],[3,"url","label","user","logoutEnabled","iconColor","textColor",4,"ngIf"],["aria-label","Menu","mat-icon-button","",3,"ngStyle","click"],["id","nav-menu-language",3,"ngStyle"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],["menu","matMenu"],["mat-menu-item","",3,"click"],["mat-icon-button","",3,"matTooltip","click"],["matBadgeColor","warn",3,"ngStyle","matBadge","matBadgeHidden"],[3,"url","label","user","logoutEnabled","iconColor","textColor"]],template:function(e,t){1&e&&(f.TgZ(0,"mat-toolbar",0)(1,"div",1),f.YNc(2,jR,3,3,"button",2),f._UZ(3,"a",3),f.TgZ(4,"p",4),f._uU(5),f.qZA()(),f.TgZ(6,"div",5),f.YNc(7,FR,9,10,"div",6),f.YNc(8,UR,4,9,"button",7),f.YNc(9,NR,1,6,"perun-web-apps-header-menu",8),f.qZA()()),2&e&&(f.Q6J("ngStyle",f.VKq(11,qR,t.bgColor)),f.xp6(2),f.Q6J("ngIf",t.showToggle),f.xp6(1),f.Q6J("innerHTML",t.logo,f.oJD)("routerLink",t.disableLogo?f.DdM(13,zR):f.DdM(14,GR))("queryParams",t.route.snapshot.queryParams),f.xp6(1),f.Q6J("ngStyle",f.VKq(15,Au,t.textColor)),f.xp6(1),f.hij(" ",t.label," "),f.xp6(1),f.Q6J("ngStyle",f.VKq(17,Au,t.navTextColor)),f.xp6(1),f.Q6J("ngIf",t.showLanguageMenu),f.xp6(1),f.Q6J("ngIf",t.showNotifications),f.xp6(1),f.Q6J("ngIf",t.showHeaderMenu))},dependencies:[M.O5,M.PC,mh,qr,fp,Fl,I_,Mi,qd,DR,PR,OR,LR,vi],styles:[".header-container[_ngcontent-%COMP%]{height:64px!important;display:flex;justify-content:space-between;padding:0 0 0 8px;z-index:999}#nav-menu-user-info[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding-right:16px;margin-left:auto;margin-right:0}@media (max-width: 570px){.hide-label[_ngcontent-%COMP%]{display:none}}#nav-devel-info[_ngcontent-%COMP%]{margin-left:auto;font-weight:500;font-size:1.4rem;display:flex;align-items:center;font-family:Roboto,Helvetica Neue,sans-serif}#nav-menu-icons[_ngcontent-%COMP%]{display:flex;flex-direction:row}.logo-container[_ngcontent-%COMP%]{padding:0 20px 0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}#nav-menu-language[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding-right:16px}"]}),r})();function $R(r,a){if(1&r&&(f.TgZ(0,"div",8),f._UZ(1,"div",9),f.qZA()),2&r){const e=f.oxw();f.xp6(1),f.Q6J("innerHTML",e.logo,f.oJD)}}function QR(r,a){if(1&r&&(f.TgZ(0,"div",10),f._UZ(1,"div",11)(2,"mat-icon",12),f.qZA()),2&r){const e=f.oxw();f.xp6(1),f.Q6J("innerHTML",e.logo,f.oJD)}}const YR=function(r){return{color:r}};function JR(r,a){if(1&r&&(f.TgZ(0,"p",13),f._uU(1),f.qZA()),2&r){const e=f.oxw();f.Q6J("ngStyle",f.VKq(2,YR,e.textColor)),f.xp6(1),f.hij(" ",e.headerTitle," ")}}const KR=function(r,a){return{background:r,color:a}},ZR=function(r,a){return{"min-height":r,"background-color":a}};let XR=(()=>{class r{constructor(e,t,s,u){this.storeService=e,this.sanitizer=t,this.preferredLangService=s,this.translateService=u,this.contentBackgroundColor=this.storeService.getProperty("theme").content_bg_color}ngOnInit(){if(this.headerBackgroundColor=this.storeService.getProperty("theme").nav_bg_color,this.headerTextColor=this.storeService.getProperty("theme").nav_text_color,this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.getProperty("logo")),this.textColor=this.headerTitle?this.storeService.getProperty("theme").nav_text_color:"","user-profile"===this.application){const e=this.preferredLangService.getPreferredLanguage(null);this.translateService.use(e)}}getContentInnerMinHeight(){return"calc((100vh - 64px) + 0px)"}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(mi),f.Y36(ti),f.Y36(mb),f.Y36(Bi))},r.\u0275cmp=f.Xpm({type:r,selectors:[["perun-web-apps-login-screen-base"]],inputs:{application:"application",headerTitle:"headerTitle"},decls:10,vars:11,consts:[["id","login-nav",1,"mat-elevation-z3",3,"ngStyle"],["class","mt-auto mb-auto",4,"ngIf"],["class","display-flex-row",4,"ngIf"],["class","ml-3 mt-auto mb-auto page-subtitle",3,"ngStyle",4,"ngIf"],["id","content"],["id","content-inner",3,"ngStyle"],["id","content-wrap"],["id","footer"],[1,"mt-auto","mb-auto"],[1,"logo-container",3,"innerHTML"],[1,"display-flex-row"],[1,"logo-container","mt-auto","mb-auto",3,"innerHTML"],["svgIcon","perun-publications-white",1,"mt-auto","mb-auto","router-icon","ml-2","mr-2"],[1,"ml-3","mt-auto","mb-auto","page-subtitle",3,"ngStyle"]],template:function(e,t){1&e&&(f.TgZ(0,"div",0),f.YNc(1,$R,2,1,"div",1),f.YNc(2,QR,3,1,"div",2),f.YNc(3,JR,2,4,"p",3),f.qZA(),f.TgZ(4,"div",4)(5,"div",5)(6,"div",6),f._UZ(7,"router-outlet"),f.qZA(),f.TgZ(8,"div",7),f._UZ(9,"perun-web-apps-footer"),f.qZA()()()),2&e&&(f.Q6J("ngStyle",f.WLB(5,KR,t.headerBackgroundColor,t.headerTextColor)),f.xp6(1),f.Q6J("ngIf","admin-gui"===t.application||"user-profile"===t.application||"consolidator"===t.application),f.xp6(1),f.Q6J("ngIf","publications"===t.application),f.xp6(1),f.Q6J("ngIf",!!t.headerTitle),f.xp6(2),f.Q6J("ngStyle",f.WLB(8,ZR,t.getContentInnerMinHeight(),t.contentBackgroundColor)))},dependencies:[M.O5,M.PC,qr,am,IE],styles:["#login-nav[_ngcontent-%COMP%]{position:fixed;width:100%;z-index:999;display:flex;height:64px;max-height:64px;top:0}#footer[_ngcontent-%COMP%]{position:absolute;bottom:0;width:100%}#content[_ngcontent-%COMP%]{width:100%;min-height:calc(100vh - 64px);margin-top:64px}#content-inner[_ngcontent-%COMP%]{position:relative}#content-wrap[_ngcontent-%COMP%]{padding-bottom:250px;padding-top:10px}@media (max-width: 768px){#content-wrap[_ngcontent-%COMP%]{padding-bottom:500px}}.router-icon[_ngcontent-%COMP%]{height:2.5rem;width:2.5rem;cursor:pointer;outline:0}.page-subtitle[_ngcontent-%COMP%]{margin-bottom:1rem;font-size:1.5rem}.logo-container[_ngcontent-%COMP%]{padding:0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}.display-flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}"]}),r})();function tP(r,a){if(1&r&&f._UZ(0,"perun-web-apps-password-form",4),2&r){const e=f.oxw();f.Q6J("formGroup",e.newPasswdForm)("namespace",e.namespace)("language",e.language)}}function iP(r,a){if(1&r){const e=f.EpF();f.TgZ(0,"div")(1,"button",5),f.NdJ("click",function(){f.CHM(e);const s=f.oxw();return f.KtG(s.onSubmit())}),f._uU(2),f.ALo(3,"translate"),f.qZA()()}if(2&r){const e=f.oxw();f.xp6(1),f.Q6J("disabled",e.newPasswdForm.invalid||e.newPasswdForm.pending),f.xp6(1),f.hij(" ",f.lcZ(3,2,"reset"===e.mode?"PAGES.PWD_RESET_PAGE.RESET_BUTTON":"PAGES.PWD_RESET_PAGE.ACTIVATION_BUTTON")," ")}}function nP(r,a){if(1&r&&(f.TgZ(0,"div",6)(1,"perun-web-apps-alert",7),f._uU(2),f.qZA()()),2&r){const e=f.oxw();f.xp6(2),f.hij(" ",e.successMsg," ")}}function rP(r,a){if(1&r&&(f.TgZ(0,"div",6)(1,"perun-web-apps-alert",8),f._uU(2),f.qZA()()),2&r){const e=f.oxw();f.xp6(2),f.hij(" ",e.errorMsg," ")}}function aP(r,a){1&r&&f._UZ(0,"mat-spinner",9)}let oP=(()=>{class r{constructor(e,t,s,u,d,l){this.storeService=e,this.translate=t,this.apiRequestConfiguration=s,this.usersService=u,this.formBuilder=d,this.errorTranslate=l,this.loading=!1,this.success=!1,this.error=!1,this.language="en"}ngOnInit(){this.newPasswdForm=this.formBuilder.group({passwordCtrl:["",$r.required,[RH(this.namespace,this.usersService,this.apiRequestConfiguration)]],passwordAgainCtrl:["",$r.required]},{validators:kA.passwordMatchValidator}),this.setLabels(this.translate.currentLang),this.translate.onLangChange.subscribe(e=>{this.language=e.lang,this.setLabels(this.language),this.successMsg=this.getMessage("success"),this.errorKey&&(this.errorMsg=this.getMessage(this.errorKey))})}onSubmit(){this.loading=!0,(0,ke.of)(this.authWithoutToken).pipe((0,Vt.z)(e=>function eP(r,a,e){return dn(()=>r()?a:e)}(()=>e,this.usersService.changePasswordForLogin({login:this.login,namespace:this.namespace,newPassword:this.newPasswdForm.value.passwordCtrl}),this.usersService.changeNonAuthzPasswordByToken({token:this.token,password:this.newPasswdForm.value.passwordCtrl},!0)))).subscribe({next:()=>{this.success=!0,this.successMsg=this.getMessage("success"),this.loading=!1},error:e=>{this.error=!0,this.errorKey=this.errorTranslate.getErrorKey(e),this.errorMsg=this.getMessage(this.errorKey),this.loading=!1}})}setLabels(e){this.labels=this.storeService.getProperty("en"===e?"password_labels":"password_labels_cs")}getMessage(e){const t=this.labels?.[this.namespace]?.[this.mode]?.[e];return t||this.labels.default[this.mode][e]}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(mi),f.Y36(Bi),f.Y36(Fp),f.Y36(xn),f.Y36(H),f.Y36(_b))},r.\u0275cmp=f.Xpm({type:r,selectors:[["perun-web-apps-password-reset-form"]],inputs:{mode:"mode",namespace:"namespace",login:"login",token:"token",authWithoutToken:"authWithoutToken"},decls:5,vars:5,consts:[[3,"formGroup","namespace","language",4,"ngIf"],[4,"ngIf"],["class","mt-5",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"formGroup","namespace","language"],["mat-flat-button","","color","accent",1,"mx-auto","d-block",3,"disabled","click"],[1,"mt-5"],["alert_type","success"],["alert_type","error"],[1,"ml-auto","mr-auto"]],template:function(e,t){1&e&&(f.YNc(0,tP,1,3,"perun-web-apps-password-form",0),f.YNc(1,iP,4,4,"div",1),f.YNc(2,nP,3,1,"div",2),f.YNc(3,rP,3,1,"div",2),f.YNc(4,aP,1,0,"mat-spinner",3)),2&e&&(f.Q6J("ngIf",!t.success&&!t.loading&&!t.error),f.xp6(1),f.Q6J("ngIf",!t.success&&!t.error&&!t.loading),f.xp6(1),f.Q6J("ngIf",t.success&&!t.loading),f.xp6(1),f.Q6J("ngIf",t.error&&!t.loading),f.xp6(1),f.Q6J("ngIf",t.loading))},dependencies:[M.O5,Mi,Yr,cu,Qr,Ha,LH,vi]}),r})(),sP=(()=>{class r{constructor(e){this.translate=e}ngOnInit(){this.translate.onLangChange.subscribe(()=>{this.invalidRequestMessage=this.translate.instant("PAGES.PWD_RESET_PAGE.INVALID_REQUEST")})}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(Bi))},r.\u0275cmp=f.Xpm({type:r,selectors:[["perun-web-apps-invalid-request-alert"]],decls:2,vars:1,consts:[["alert_type","info",1,"alert-wrap"],[3,"innerHTML"]],template:function(e,t){1&e&&(f.TgZ(0,"perun-web-apps-alert",0),f._UZ(1,"div",1),f.qZA()),2&e&&(f.xp6(1),f.Q6J("innerHTML",t.invalidRequestMessage,f.oJD))},dependencies:[Ha],styles:[".alert-wrap[_ngcontent-%COMP%]{white-space:pre-wrap}"]}),r})();function lP(r,a){if(1&r&&(f.O4$(),f.kcU(),f.TgZ(0,"p",9)(1,"em"),f._uU(2),f.ALo(3,"translate"),f.qZA()()),2&r){const e=f.oxw();f.xp6(2),f.AsE("",f.lcZ(3,2,"PAGES.PWD_RESET_PAGE.LOGIN"),": ",e.login,"")}}function cP(r,a){if(1&r&&(f.O4$(),f.kcU(),f.TgZ(0,"p",9)(1,"em"),f._uU(2),f.ALo(3,"translate"),f.qZA()()),2&r){const e=f.oxw();f.xp6(2),f.AsE("",f.lcZ(3,2,"PAGES.PWD_RESET_PAGE.NAMESPACE"),": ",e.namespace,"")}}function dP(r,a){if(1&r&&f._UZ(0,"perun-web-apps-password-reset-form",10),2&r){const e=f.oxw();f.Q6J("mode",e.mode)("namespace",e.namespace)("login",e.login)("token",e.token)("authWithoutToken",e.authWithoutToken)}}function uP(r,a){1&r&&f._UZ(0,"perun-web-apps-invalid-request-alert")}let hP=(()=>{class r{constructor(e,t,s){this.storeService=e,this.sanitizer=t,this.translateService=s}ngOnInit(){this.passwordResetLogo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.getProperty("password_reset_logo")),this.setDescription(this.translateService.currentLang),this.translateService.onLangChange.subscribe(e=>{this.setDescription(e.lang)})}setDescription(e){const t=this.storeService.getProperty("en"===e?"password_labels":"password_labels_cs");this.description=t[this.namespace]?.[this.mode]?.description,this.description||(this.description=t.default[this.mode].description)}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(mi),f.Y36(ti),f.Y36(Bi))},r.\u0275cmp=f.Xpm({type:r,selectors:[["perun-web-apps-password-reset-page"]],inputs:{mode:"mode",token:"token",namespace:"namespace",login:"login",validToken:"validToken",authWithoutToken:"authWithoutToken"},decls:16,vars:9,consts:[[3,"innerHTML"],[1,"title-with-icon"],["xmlns","http://www.w3.org/2000/svg","width","30.000000pt","height","30.000000pt","viewBox","0 0 512.000000 512.000000","preserveAspectRatio","xMidYMid meet"],["transform","translate(0.000000,512.000000) scale(0.100000,-0.100000)","fill","#000000","stroke","none"],["d","M3530 5103 c-619 -30 -1162 -438 -1356 -1020 -115 -342 -107 -702 21-1035 l36 -92 -1100 -1101 c-605 -605 -1105 -1112 -1110 -1127 -8 -22 -5 -49 15 -125 116 -450 112 -436 146 -454 42 -22 513 -139 539 -134 16 4 122 103 287 268 144 145 262 265 262 267 4 51 29 293 32 295 2 2 70 10 151 18 200 19 193 13 213 213 8 81 17 150 19 152 2 2 67 10 145 18 77 7 149 18 159 23 37 20 44 44 60 194 l16 152 125 12 c69 6 136 12 150 12 18 1 98 75 320 296 l295 295 85 -33 c586 -230 1239 -83 1665 375 405 437 514 1079 275 1629 -122 280 -336 524 -606 690 -237 145 -559 226 -844 212z m201 -184 c307 -31 569 -152 790 -366 467 -452 542 -1155 182 -1697 -187 -280 -490 -487 -823 -561 -42 -9 -144 -19 -230 -22 -236 -8 -402 24 -613 119 -65 29 -96 38 -115 33 -17 -4 -139 -118 -332 -309 l-305 -304 -169 -16 c-224 -20 -214 -11 -233 -213 -8 -81 -16 -150 -18 -152 -2 -2 -68 -10 -147 -18 -148 -14 -182 -26 -197 -66 -5 -12 -15 -85 -22 -162 l-14 -140 -140 -14 c-77 -7 -149 -17 -162 -22 -41 -15 -51 -48 -68 -219 l-16 -165 -213 -213 -212 -213 -185 47 c-101 26 -185 49 -187 50 -2 1 -26 87 -53 191 l-49 188 1115 1115 c849 849 1115 1121 1115 1139 0 13 -18 62 -39 110 -40 90 -80 211 -103 316 -20 95 -17 400 5 505 55 255 171 473 354 661 250 257 570 397 934 408 26 0 93 -4 150 -10z"],["d","M3554 4120 c-201 -30 -366 -170 -424 -359 -14 -43 -20 -92 -20 -153 0 -389 394 -632 750 -461 78 38 189 151 227 233 158 336 -58 712 -427 743 -30 3 -78 1 -106 -3z m138 -181 c108 -23 190 -89 239 -192 37 -80 40 -177 7 -264 -30 -80 -112 -162 -193 -192 -121 -45 -270 -14 -358 75 -164 165 -121 440 83 544 72 37 142 46 222 29z"],["class","subtitle",4,"ngIf"],[3,"mode","namespace","login","token","authWithoutToken",4,"ngIf"],[4,"ngIf"],[1,"subtitle"],[3,"mode","namespace","login","token","authWithoutToken"]],template:function(e,t){1&e&&(f.TgZ(0,"div"),f._UZ(1,"div",0),f.TgZ(2,"div",1)(3,"h1"),f._uU(4),f.ALo(5,"translate"),f.qZA(),f.O4$(),f.TgZ(6,"svg",2)(7,"g",3),f._UZ(8,"path",4)(9,"path",5),f.qZA()()(),f.YNc(10,lP,4,4,"p",6),f.YNc(11,cP,4,4,"p",6),f.kcU(),f.TgZ(12,"p"),f._uU(13),f.qZA(),f.YNc(14,dP,1,5,"perun-web-apps-password-reset-form",7),f.YNc(15,uP,1,0,"perun-web-apps-invalid-request-alert",8),f.qZA()),2&e&&(f.xp6(1),f.Q6J("innerHTML",t.passwordResetLogo,f.oJD),f.xp6(3),f.hij(" ",f.lcZ(5,7,"reset"===t.mode?"PAGES.PWD_RESET_PAGE.TITLE_RESET":"PAGES.PWD_RESET_PAGE.TITLE_ACTIVATION")," "),f.xp6(6),f.Q6J("ngIf",t.login),f.xp6(1),f.Q6J("ngIf",t.namespace),f.xp6(2),f.Oqu(t.description),f.xp6(1),f.Q6J("ngIf",t.validToken||t.authWithoutToken),f.xp6(1),f.Q6J("ngIf",!t.validToken&&!t.authWithoutToken))},dependencies:[M.O5,oP,sP,vi],styles:[".title-with-icon[_ngcontent-%COMP%]{margin-top:30px;display:flex;justify-content:space-between}.subtitle[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:10px}"]}),r})();const pP=["footer"],fP=function(r){return{background:r}},mP=function(r){return{"min-height":r}};function gP(r,a){if(1&r&&(f.TgZ(0,"div"),f._UZ(1,"perun-web-apps-header",2),f.TgZ(2,"div",3)(3,"div",4),f._UZ(4,"perun-web-apps-password-reset-page",5),f.qZA(),f.TgZ(5,"div",null,6),f._UZ(7,"perun-web-apps-footer"),f.qZA()()()),2&r){const e=f.oxw();f.xp6(1),f.Q6J("showToggle",!1)("showHeaderMenu",!1)("showLanguageMenu",!0),f.xp6(1),f.Q6J("ngStyle",f.VKq(11,fP,e.contentBackgroundColor)),f.xp6(1),f.Q6J("ngStyle",f.VKq(13,mP,e.contentHeight)),f.xp6(1),f.Q6J("mode",e.mode)("token",e.token)("namespace",e.namespace)("login",e.login)("validToken",e.validToken)("authWithoutToken",e.authWithoutToken)}}function _P(r,a){1&r&&f._UZ(0,"perun-web-apps-login-screen-base",7),2&r&&f.Q6J("application","pwd-reset")}let bP=(()=>{class r{constructor(e,t,s,u,d,l,n,i){this.dialog=e,this.usersService=t,this.preferredLangService=s,this.translateService=u,this.store=d,this.attributesManagerService=l,this.changeDetector=n,this.initAuth=i,this.authWithoutToken=!1,this.contentHeight="calc(100vh - 84px)",this.contentBackgroundColor=this.store.getProperty("theme").content_bg_color}ngOnInit(){this.isServiceAccess=this.initAuth.isServiceAccessLoginScreenShown(),this.showLoginScreen=this.initAuth.isLoginScreenShown();const e=this.preferredLangService.getPreferredLanguage(null);this.translateService.use(e);const t=location.search.substr(1);this.mode="activation"===Bp("mode",t)?"activation":"reset",this.namespace=Bp("namespace",t),t.includes("token")?(this.token=Bp("token",t),this.usersService.checkPasswordResetRequestByTokenIsValid(this.token,!0).subscribe(()=>{this.validToken=!0},()=>{this.validToken=!1})):!this.isServiceAccess&&!this.showLoginScreen&&(this.authWithoutToken=!0,this.attributesManagerService.getLogins(this.store.getPerunPrincipal().userId).subscribe(s=>{const u=s.find(d=>d.friendlyNameParameter===this.namespace);this.login=u?String(u.value):""}))}ngAfterViewInit(){const e=this.footer?.nativeElement?.offsetHeight?.toString()??"0";this.contentHeight="calc(100vh - 84px - "+e+"px)",this.changeDetector.detectChanges()}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(Cn),f.Y36(xn),f.Y36(mb),f.Y36(Bi),f.Y36(mi),f.Y36(wr),f.Y36(f.sBO),f.Y36(ou))},r.\u0275cmp=f.Xpm({type:r,selectors:[["perun-web-apps-root"]],viewQuery:function(e,t){if(1&e&&f.Gf(pP,5),2&e){let s;f.iGM(s=f.CRH())&&(t.footer=s.first)}},decls:2,vars:2,consts:[[4,"ngIf"],[3,"ngIf"],["id","nav-menu",3,"showToggle","showHeaderMenu","showLanguageMenu"],["id","content-inner",3,"ngStyle"],["id","content-wrap",3,"ngStyle"],[3,"mode","token","namespace","login","validToken","authWithoutToken"],["footer",""],[3,"application"]],template:function(e,t){1&e&&(f.YNc(0,gP,8,15,"div",0),f.YNc(1,_P,1,1,"ng-template",1)),2&e&&(f.Q6J("ngIf",!t.isServiceAccess&&!t.showLoginScreen),f.xp6(1),f.Q6J("ngIf",t.isServiceAccess||t.showLoginScreen))},dependencies:[M.O5,M.PC,IE,WR,XR,hP],styles:["#nav-menu[_ngcontent-%COMP%]{top:0;background:#102027;position:fixed;width:100%;z-index:999;height:64px;max-height:64px}#content-inner[_ngcontent-%COMP%]{position:relative;padding-top:64px}#content-wrap[_ngcontent-%COMP%]{padding-bottom:25px;padding-top:10px;margin:10px}@media (min-width: 450px){#content-wrap[_ngcontent-%COMP%]{max-width:400px;margin-left:auto;margin-right:auto}}"]}),r})();class CP{constructor(a,e="/assets/i18n/",t=".json"){this.http=a,this.prefix=e,this.suffix=t}getTranslation(a){return this.http.get(`${this.prefix}${a}${this.suffix}`)}}function jE(r){return new f.vHH(3e3,!1)}function e1(){return typeof window<"u"&&typeof window.document<"u"}function R0(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function Es(r){switch(r.length){case 0:return new mo;case 1:return r[0];default:return new jd(r)}}function FE(r,a,e,t,s=new Map,u=new Map){const d=[],l=[];let n=-1,i=null;if(t.forEach(o=>{const c=o.get("offset"),h=c==n,m=h&&i||new Map;o.forEach((g,p)=>{let w=p,R=g;if("offset"!==p)switch(w=a.normalizePropertyName(w,d),R){case"!":R=s.get(p);break;case jn:R=u.get(p);break;default:R=a.normalizeStyleValue(p,w,R,d)}m.set(w,R)}),h||l.push(m),i=m,n=c}),d.length)throw function NP(r){return new f.vHH(3502,!1)}();return l}function P0(r,a,e,t){switch(a){case"start":r.onStart(()=>t(e&&I0(e,"start",r)));break;case"done":r.onDone(()=>t(e&&I0(e,"done",r)));break;case"destroy":r.onDestroy(()=>t(e&&I0(e,"destroy",r)))}}function I0(r,a,e){const u=k0(r.element,r.triggerName,r.fromState,r.toState,a||r.phaseName,e.totalTime??r.totalTime,!!e.disabled),d=r._data;return null!=d&&(u._data=d),u}function k0(r,a,e,t,s="",u=0,d){return{element:r,triggerName:a,fromState:e,toState:t,phaseName:s,totalTime:u,disabled:!!d}}function zn(r,a,e){let t=r.get(a);return t||r.set(a,t=e),t}function UE(r){const a=r.indexOf(":");return[r.substring(1,a),r.slice(a+1)]}let V0=(r,a)=>!1,NE=(r,a,e)=>[],qE=null;function B0(r){const a=r.parentNode||r.host;return a===qE?null:a}(R0()||typeof Element<"u")&&(e1()?(qE=(()=>document.documentElement)(),V0=(r,a)=>{for(;a;){if(a===r)return!0;a=B0(a)}return!1}):V0=(r,a)=>r.contains(a),NE=(r,a,e)=>{if(e)return Array.from(r.querySelectorAll(a));const t=r.querySelector(a);return t?[t]:[]});let oc=null,zE=!1;const GE=V0,WE=NE;let $E=(()=>{class r{validateStyleProperty(e){return function n1(r){oc||(oc=function r1(){return typeof document<"u"?document.body:null}()||{},zE=!!oc.style&&"WebkitAppearance"in oc.style);let a=!0;return oc.style&&!function t1(r){return"ebkit"==r.substring(1,6)}(r)&&(a=r in oc.style,!a&&zE&&(a="Webkit"+r.charAt(0).toUpperCase()+r.slice(1)in oc.style)),a}(e)}matchesElement(e,t){return!1}containsElement(e,t){return GE(e,t)}getParentElement(e){return B0(e)}query(e,t,s){return WE(e,t,s)}computeStyle(e,t,s){return s||""}animate(e,t,s,u,d,l=[],n){return new mo(s,u)}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac}),r})(),O0=(()=>{class r{}return r.NOOP=new $E,r})();const L0="ng-enter",Kb="ng-leave",Zb="ng-trigger",Xb=".ng-trigger",YE="ng-animating",j0=".ng-animating";function Ms(r){if("number"==typeof r)return r;const a=r.match(/^(-?[\.\d]+)(m?s)/);return!a||a.length<2?0:F0(parseFloat(a[1]),a[2])}function F0(r,a){return"s"===a?1e3*r:r}function eC(r,a,e){return r.hasOwnProperty("duration")?r:function s1(r,a,e){let s,u=0,d="";if("string"==typeof r){const l=r.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===l)return a.push(jE()),{duration:0,delay:0,easing:""};s=F0(parseFloat(l[1]),l[2]);const n=l[3];null!=n&&(u=F0(parseFloat(n),l[4]));const i=l[5];i&&(d=i)}else s=r;if(!e){let l=!1,n=a.length;s<0&&(a.push(function wP(){return new f.vHH(3100,!1)}()),l=!0),u<0&&(a.push(function yP(){return new f.vHH(3101,!1)}()),l=!0),l&&a.splice(n,0,jE())}return{duration:s,delay:u,easing:d}}(r,a,e)}function Ef(r,a={}){return Object.keys(r).forEach(e=>{a[e]=r[e]}),a}function JE(r){const a=new Map;return Object.keys(r).forEach(e=>{a.set(e,r[e])}),a}function Ds(r,a=new Map,e){if(e)for(let[t,s]of e)a.set(t,s);for(let[t,s]of r)a.set(t,s);return a}function ZE(r,a,e){return e?a+":"+e+";":""}function XE(r){let a="";for(let e=0;e{const u=N0(s);e&&!e.has(s)&&e.set(s,r.style[u]),r.style[u]=t}),R0()&&XE(r))}function sc(r,a){r.style&&(a.forEach((e,t)=>{const s=N0(t);r.style[s]=""}),R0()&&XE(r))}function Mf(r){return Array.isArray(r)?1==r.length?r[0]:ip(r):r}const U0=new RegExp("{{\\s*(.+?)\\s*}}","g");function eM(r){let a=[];if("string"==typeof r){let e;for(;e=U0.exec(r);)a.push(e[1]);U0.lastIndex=0}return a}function tC(r,a,e){const t=r.toString(),s=t.replace(U0,(u,d)=>{let l=a[d];return null==l&&(e.push(function AP(r){return new f.vHH(3003,!1)}()),l=""),l.toString()});return s==t?r:s}function iC(r){const a=[];let e=r.next();for(;!e.done;)a.push(e.value),e=r.next();return a}const d1=/-+([a-z0-9])/g;function N0(r){return r.replace(d1,(...a)=>a[1].toUpperCase())}function u1(r){return r.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Gn(r,a,e){switch(a.type){case 7:return r.visitTrigger(a,e);case 0:return r.visitState(a,e);case 1:return r.visitTransition(a,e);case 2:return r.visitSequence(a,e);case 3:return r.visitGroup(a,e);case 4:return r.visitAnimate(a,e);case 5:return r.visitKeyframes(a,e);case 6:return r.visitStyle(a,e);case 8:return r.visitReference(a,e);case 9:return r.visitAnimateChild(a,e);case 10:return r.visitAnimateRef(a,e);case 11:return r.visitQuery(a,e);case 12:return r.visitStagger(a,e);default:throw function xP(r){return new f.vHH(3004,!1)}()}}function tM(r,a){return window.getComputedStyle(r)[a]}function _1(r,a){const e=[];return"string"==typeof r?r.split(/\s*,\s*/).forEach(t=>function b1(r,a,e){if(":"==r[0]){const n=function C1(r,a){switch(r){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t) *"}}(r,e);if("function"==typeof n)return void a.push(n);r=n}const t=r.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==t||t.length<4)return e.push(function OP(r){return new f.vHH(3015,!1)}()),a;const s=t[1],u=t[2],d=t[3];a.push(iM(s,d));"<"==u[0]&&!("*"==s&&"*"==d)&&a.push(iM(d,s))}(t,e,a)):e.push(r),e}const oC=new Set(["true","1"]),sC=new Set(["false","0"]);function iM(r,a){const e=oC.has(r)||sC.has(r),t=oC.has(a)||sC.has(a);return(s,u)=>{let d="*"==r||r==s,l="*"==a||a==u;return!d&&e&&"boolean"==typeof s&&(d=s?oC.has(r):sC.has(r)),!l&&t&&"boolean"==typeof u&&(l=u?oC.has(a):sC.has(a)),d&&l}}const w1=new RegExp("s*:selfs*,?","g");function q0(r,a,e,t){return new y1(r).build(a,e,t)}class y1{constructor(a){this._driver=a}build(a,e,t){const s=new x1(e);return this._resetContextStyleTimingState(s),Gn(this,Mf(a),s)}_resetContextStyleTimingState(a){a.currentQuerySelector="",a.collectedStyles=new Map,a.collectedStyles.set("",new Map),a.currentTime=0}visitTrigger(a,e){let t=e.queryCount=0,s=e.depCount=0;const u=[],d=[];return"@"==a.name.charAt(0)&&e.errors.push(function SP(){return new f.vHH(3006,!1)}()),a.definitions.forEach(l=>{if(this._resetContextStyleTimingState(e),0==l.type){const n=l,i=n.name;i.toString().split(/\s*,\s*/).forEach(o=>{n.name=o,u.push(this.visitState(n,e))}),n.name=i}else if(1==l.type){const n=this.visitTransition(l,e);t+=n.queryCount,s+=n.depCount,d.push(n)}else e.errors.push(function EP(){return new f.vHH(3007,!1)}())}),{type:7,name:a.name,states:u,transitions:d,queryCount:t,depCount:s,options:null}}visitState(a,e){const t=this.visitStyle(a.styles,e),s=a.options&&a.options.params||null;if(t.containsDynamicStyles){const u=new Set,d=s||{};t.styles.forEach(l=>{l instanceof Map&&l.forEach(n=>{eM(n).forEach(i=>{d.hasOwnProperty(i)||u.add(i)})})}),u.size&&(iC(u.values()),e.errors.push(function MP(r,a){return new f.vHH(3008,!1)}()))}return{type:0,name:a.name,style:t,options:s?{params:s}:null}}visitTransition(a,e){e.queryCount=0,e.depCount=0;const t=Gn(this,Mf(a.animation),e);return{type:1,matchers:_1(a.expr,e.errors),animation:t,queryCount:e.queryCount,depCount:e.depCount,options:lc(a.options)}}visitSequence(a,e){return{type:2,steps:a.steps.map(t=>Gn(this,t,e)),options:lc(a.options)}}visitGroup(a,e){const t=e.currentTime;let s=0;const u=a.steps.map(d=>{e.currentTime=t;const l=Gn(this,d,e);return s=Math.max(s,e.currentTime),l});return e.currentTime=s,{type:3,steps:u,options:lc(a.options)}}visitAnimate(a,e){const t=function S1(r,a){if(r.hasOwnProperty("duration"))return r;if("number"==typeof r)return z0(eC(r,a).duration,0,"");const e=r;if(e.split(/\s+/).some(u=>"{"==u.charAt(0)&&"{"==u.charAt(1))){const u=z0(0,0,"");return u.dynamic=!0,u.strValue=e,u}const s=eC(e,a);return z0(s.duration,s.delay,s.easing)}(a.timings,e.errors);e.currentAnimateTimings=t;let s,u=a.styles?a.styles:Ne({});if(5==u.type)s=this.visitKeyframes(u,e);else{let d=a.styles,l=!1;if(!d){l=!0;const i={};t.easing&&(i.easing=t.easing),d=Ne(i)}e.currentTime+=t.duration+t.delay;const n=this.visitStyle(d,e);n.isEmptyStep=l,s=n}return e.currentAnimateTimings=null,{type:4,timings:t,style:s,options:null}}visitStyle(a,e){const t=this._makeStyleAst(a,e);return this._validateStyleAst(t,e),t}_makeStyleAst(a,e){const t=[],s=Array.isArray(a.styles)?a.styles:[a.styles];for(let l of s)"string"==typeof l?l===jn?t.push(l):e.errors.push(new f.vHH(3002,!1)):t.push(JE(l));let u=!1,d=null;return t.forEach(l=>{if(l instanceof Map&&(l.has("easing")&&(d=l.get("easing"),l.delete("easing")),!u))for(let n of l.values())if(n.toString().indexOf("{{")>=0){u=!0;break}}),{type:6,styles:t,easing:d,offset:a.offset,containsDynamicStyles:u,options:null}}_validateStyleAst(a,e){const t=e.currentAnimateTimings;let s=e.currentTime,u=e.currentTime;t&&u>0&&(u-=t.duration+t.delay),a.styles.forEach(d=>{"string"!=typeof d&&d.forEach((l,n)=>{const i=e.collectedStyles.get(e.currentQuerySelector),o=i.get(n);let c=!0;o&&(u!=s&&u>=o.startTime&&s<=o.endTime&&(e.errors.push(function HP(r,a,e,t,s){return new f.vHH(3010,!1)}()),c=!1),u=o.startTime),c&&i.set(n,{startTime:u,endTime:s}),e.options&&function c1(r,a,e){const t=a.params||{},s=eM(r);s.length&&s.forEach(u=>{t.hasOwnProperty(u)||e.push(function vP(r){return new f.vHH(3001,!1)}())})}(l,e.options,e.errors)})})}visitKeyframes(a,e){const t={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function RP(){return new f.vHH(3011,!1)}()),t;let u=0;const d=[];let l=!1,n=!1,i=0;const o=a.steps.map(R=>{const J=this._makeStyleAst(R,e);let Te=null!=J.offset?J.offset:function T1(r){if("string"==typeof r)return null;let a=null;if(Array.isArray(r))r.forEach(e=>{if(e instanceof Map&&e.has("offset")){const t=e;a=parseFloat(t.get("offset")),t.delete("offset")}});else if(r instanceof Map&&r.has("offset")){const e=r;a=parseFloat(e.get("offset")),e.delete("offset")}return a}(J.styles),at=0;return null!=Te&&(u++,at=J.offset=Te),n=n||at<0||at>1,l=l||at0&&u{const Te=h>0?J==m?1:h*J:d[J],at=Te*w;e.currentTime=g+p.delay+at,p.duration=at,this._validateStyleAst(R,e),R.offset=Te,t.styles.push(R)}),t}visitReference(a,e){return{type:8,animation:Gn(this,Mf(a.animation),e),options:lc(a.options)}}visitAnimateChild(a,e){return e.depCount++,{type:9,options:lc(a.options)}}visitAnimateRef(a,e){return{type:10,animation:this.visitReference(a.animation,e),options:lc(a.options)}}visitQuery(a,e){const t=e.currentQuerySelector,s=a.options||{};e.queryCount++,e.currentQuery=a;const[u,d]=function v1(r){const a=!!r.split(/\s*,\s*/).find(e=>":self"==e);return a&&(r=r.replace(w1,"")),r=r.replace(/@\*/g,Xb).replace(/@\w+/g,e=>Xb+"-"+e.slice(1)).replace(/:animating/g,j0),[r,a]}(a.selector);e.currentQuerySelector=t.length?t+" "+u:u,zn(e.collectedStyles,e.currentQuerySelector,new Map);const l=Gn(this,Mf(a.animation),e);return e.currentQuery=null,e.currentQuerySelector=t,{type:11,selector:u,limit:s.limit||0,optional:!!s.optional,includeSelf:d,animation:l,originalSelector:a.selector,options:lc(a.options)}}visitStagger(a,e){e.currentQuery||e.errors.push(function VP(){return new f.vHH(3013,!1)}());const t="full"===a.timings?{duration:0,delay:0,easing:"full"}:eC(a.timings,e.errors,!0);return{type:12,animation:Gn(this,Mf(a.animation),e),timings:t,options:null}}}class x1{constructor(a){this.errors=a,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function lc(r){return r?(r=Ef(r)).params&&(r.params=function A1(r){return r?Ef(r):null}(r.params)):r={},r}function z0(r,a,e){return{duration:r,delay:a,easing:e}}function G0(r,a,e,t,s,u,d=null,l=!1){return{type:1,element:r,keyframes:a,preStyleProps:e,postStyleProps:t,duration:s,delay:u,totalTime:s+u,easing:d,subTimeline:l}}class lC{constructor(){this._map=new Map}get(a){return this._map.get(a)||[]}append(a,e){let t=this._map.get(a);t||this._map.set(a,t=[]),t.push(...e)}has(a){return this._map.has(a)}clear(){this._map.clear()}}const D1=new RegExp(":enter","g"),R1=new RegExp(":leave","g");function W0(r,a,e,t,s,u=new Map,d=new Map,l,n,i=[]){return(new P1).buildKeyframes(r,a,e,t,s,u,d,l,n,i)}class P1{buildKeyframes(a,e,t,s,u,d,l,n,i,o=[]){i=i||new lC;const c=new $0(a,e,i,s,u,o,[]);c.options=n;const h=n.delay?Ms(n.delay):0;c.currentTimeline.delayNextStep(h),c.currentTimeline.setStyles([d],null,c.errors,n),Gn(this,t,c);const m=c.timelines.filter(g=>g.containsAnimation());if(m.length&&l.size){let g;for(let p=m.length-1;p>=0;p--){const w=m[p];if(w.element===e){g=w;break}}g&&!g.allowOnlyTimelineStyles()&&g.setStyles([l],null,c.errors,n)}return m.length?m.map(g=>g.buildKeyframes()):[G0(e,[],[],[],0,h,"",!1)]}visitTrigger(a,e){}visitState(a,e){}visitTransition(a,e){}visitAnimateChild(a,e){const t=e.subInstructions.get(e.element);if(t){const s=e.createSubContext(a.options),u=e.currentTimeline.currentTime,d=this._visitSubInstructions(t,s,s.options);u!=d&&e.transformIntoNewTimeline(d)}e.previousNode=a}visitAnimateRef(a,e){const t=e.createSubContext(a.options);t.transformIntoNewTimeline(),this.visitReference(a.animation,t),e.transformIntoNewTimeline(t.currentTimeline.currentTime),e.previousNode=a}_visitSubInstructions(a,e,t){let u=e.currentTimeline.currentTime;const d=null!=t.duration?Ms(t.duration):null,l=null!=t.delay?Ms(t.delay):null;return 0!==d&&a.forEach(n=>{const i=e.appendInstructionToTimeline(n,d,l);u=Math.max(u,i.duration+i.delay)}),u}visitReference(a,e){e.updateOptions(a.options,!0),Gn(this,a.animation,e),e.previousNode=a}visitSequence(a,e){const t=e.subContextCount;let s=e;const u=a.options;if(u&&(u.params||u.delay)&&(s=e.createSubContext(u),s.transformIntoNewTimeline(),null!=u.delay)){6==s.previousNode.type&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=cC);const d=Ms(u.delay);s.delayNextStep(d)}a.steps.length&&(a.steps.forEach(d=>Gn(this,d,s)),s.currentTimeline.applyStylesToKeyframe(),s.subContextCount>t&&s.transformIntoNewTimeline()),e.previousNode=a}visitGroup(a,e){const t=[];let s=e.currentTimeline.currentTime;const u=a.options&&a.options.delay?Ms(a.options.delay):0;a.steps.forEach(d=>{const l=e.createSubContext(a.options);u&&l.delayNextStep(u),Gn(this,d,l),s=Math.max(s,l.currentTimeline.currentTime),t.push(l.currentTimeline)}),t.forEach(d=>e.currentTimeline.mergeTimelineCollectedStyles(d)),e.transformIntoNewTimeline(s),e.previousNode=a}_visitTiming(a,e){if(a.dynamic){const t=a.strValue;return eC(e.params?tC(t,e.params,e.errors):t,e.errors)}return{duration:a.duration,delay:a.delay,easing:a.easing}}visitAnimate(a,e){const t=e.currentAnimateTimings=this._visitTiming(a.timings,e),s=e.currentTimeline;t.delay&&(e.incrementTime(t.delay),s.snapshotCurrentStyles());const u=a.style;5==u.type?this.visitKeyframes(u,e):(e.incrementTime(t.duration),this.visitStyle(u,e),s.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=a}visitStyle(a,e){const t=e.currentTimeline,s=e.currentAnimateTimings;!s&&t.hasCurrentStyleProperties()&&t.forwardFrame();const u=s&&s.easing||a.easing;a.isEmptyStep?t.applyEmptyStep(u):t.setStyles(a.styles,u,e.errors,e.options),e.previousNode=a}visitKeyframes(a,e){const t=e.currentAnimateTimings,s=e.currentTimeline.duration,u=t.duration,l=e.createSubContext().currentTimeline;l.easing=t.easing,a.styles.forEach(n=>{l.forwardTime((n.offset||0)*u),l.setStyles(n.styles,n.easing,e.errors,e.options),l.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(l),e.transformIntoNewTimeline(s+u),e.previousNode=a}visitQuery(a,e){const t=e.currentTimeline.currentTime,s=a.options||{},u=s.delay?Ms(s.delay):0;u&&(6===e.previousNode.type||0==t&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=cC);let d=t;const l=e.invokeQuery(a.selector,a.originalSelector,a.limit,a.includeSelf,!!s.optional,e.errors);e.currentQueryTotal=l.length;let n=null;l.forEach((i,o)=>{e.currentQueryIndex=o;const c=e.createSubContext(a.options,i);u&&c.delayNextStep(u),i===e.element&&(n=c.currentTimeline),Gn(this,a.animation,c),c.currentTimeline.applyStylesToKeyframe(),d=Math.max(d,c.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(d),n&&(e.currentTimeline.mergeTimelineCollectedStyles(n),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=a}visitStagger(a,e){const t=e.parentContext,s=e.currentTimeline,u=a.timings,d=Math.abs(u.duration),l=d*(e.currentQueryTotal-1);let n=d*e.currentQueryIndex;switch(u.duration<0?"reverse":u.easing){case"reverse":n=l-n;break;case"full":n=t.currentStaggerTime}const o=e.currentTimeline;n&&o.delayNextStep(n);const c=o.currentTime;Gn(this,a.animation,e),e.previousNode=a,t.currentStaggerTime=s.currentTime-c+(s.startTime-t.currentTimeline.startTime)}}const cC={};class $0{constructor(a,e,t,s,u,d,l,n){this._driver=a,this.element=e,this.subInstructions=t,this._enterClassName=s,this._leaveClassName=u,this.errors=d,this.timelines=l,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=cC,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=n||new dC(this._driver,e,0),l.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(a,e){if(!a)return;const t=a;let s=this.options;null!=t.duration&&(s.duration=Ms(t.duration)),null!=t.delay&&(s.delay=Ms(t.delay));const u=t.params;if(u){let d=s.params;d||(d=this.options.params={}),Object.keys(u).forEach(l=>{(!e||!d.hasOwnProperty(l))&&(d[l]=tC(u[l],d,this.errors))})}}_copyOptions(){const a={};if(this.options){const e=this.options.params;if(e){const t=a.params={};Object.keys(e).forEach(s=>{t[s]=e[s]})}}return a}createSubContext(a=null,e,t){const s=e||this.element,u=new $0(this._driver,s,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(s,t||0));return u.previousNode=this.previousNode,u.currentAnimateTimings=this.currentAnimateTimings,u.options=this._copyOptions(),u.updateOptions(a),u.currentQueryIndex=this.currentQueryIndex,u.currentQueryTotal=this.currentQueryTotal,u.parentContext=this,this.subContextCount++,u}transformIntoNewTimeline(a){return this.previousNode=cC,this.currentTimeline=this.currentTimeline.fork(this.element,a),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(a,e,t){const s={duration:e??a.duration,delay:this.currentTimeline.currentTime+(t??0)+a.delay,easing:""},u=new I1(this._driver,a.element,a.keyframes,a.preStyleProps,a.postStyleProps,s,a.stretchStartingKeyframe);return this.timelines.push(u),s}incrementTime(a){this.currentTimeline.forwardTime(this.currentTimeline.duration+a)}delayNextStep(a){a>0&&this.currentTimeline.delayNextStep(a)}invokeQuery(a,e,t,s,u,d){let l=[];if(s&&l.push(this.element),a.length>0){a=(a=a.replace(D1,"."+this._enterClassName)).replace(R1,"."+this._leaveClassName);let i=this._driver.query(this.element,a,1!=t);0!==t&&(i=t<0?i.slice(i.length+t,i.length):i.slice(0,t)),l.push(...i)}return!u&&0==l.length&&d.push(function BP(r){return new f.vHH(3014,!1)}()),l}}class dC{constructor(a,e,t,s){this._driver=a,this.element=e,this.startTime=t,this._elementTimelineStylesLookup=s,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),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.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(a){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+a),e&&this.snapshotCurrentStyles()):this.startTime+=a}fork(a,e){return this.applyStylesToKeyframe(),new dC(this._driver,a,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(a){this.applyStylesToKeyframe(),this.duration=a,this._loadKeyframe()}_updateStyle(a,e){this._localTimelineStyles.set(a,e),this._globalTimelineStyles.set(a,e),this._styleSummary.set(a,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(a){a&&this._previousKeyframe.set("easing",a);for(let[e,t]of this._globalTimelineStyles)this._backFill.set(e,t||jn),this._currentKeyframe.set(e,jn);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(a,e,t,s){e&&this._previousKeyframe.set("easing",e);const u=s&&s.params||{},d=function k1(r,a){const e=new Map;let t;return r.forEach(s=>{if("*"===s){t=t||a.keys();for(let u of t)e.set(u,jn)}else Ds(s,e)}),e}(a,this._globalTimelineStyles);for(let[l,n]of d){const i=tC(n,u,t);this._pendingStyles.set(l,i),this._localTimelineStyles.has(l)||this._backFill.set(l,this._globalTimelineStyles.get(l)??jn),this._updateStyle(l,i)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((a,e)=>{this._currentKeyframe.set(e,a)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((a,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,a)}))}snapshotCurrentStyles(){for(let[a,e]of this._localTimelineStyles)this._pendingStyles.set(a,e),this._updateStyle(a,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const a=[];for(let e in this._currentKeyframe)a.push(e);return a}mergeTimelineCollectedStyles(a){a._styleSummary.forEach((e,t)=>{const s=this._styleSummary.get(t);(!s||e.time>s.time)&&this._updateStyle(t,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const a=new Set,e=new Set,t=1===this._keyframes.size&&0===this.duration;let s=[];this._keyframes.forEach((l,n)=>{const i=Ds(l,new Map,this._backFill);i.forEach((o,c)=>{"!"===o?a.add(c):o===jn&&e.add(c)}),t||i.set("offset",n/this.duration),s.push(i)});const u=a.size?iC(a.values()):[],d=e.size?iC(e.values()):[];if(t){const l=s[0],n=new Map(l);l.set("offset",0),n.set("offset",1),s=[l,n]}return G0(this.element,s,u,d,this.duration,this.startTime,this.easing,!1)}}class I1 extends dC{constructor(a,e,t,s,u,d,l=!1){super(a,e,d.delay),this.keyframes=t,this.preStyleProps=s,this.postStyleProps=u,this._stretchStartingKeyframe=l,this.timings={duration:d.duration,delay:d.delay,easing:d.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let a=this.keyframes,{delay:e,duration:t,easing:s}=this.timings;if(this._stretchStartingKeyframe&&e){const u=[],d=t+e,l=e/d,n=Ds(a[0]);n.set("offset",0),u.push(n);const i=Ds(a[0]);i.set("offset",aM(l)),u.push(i);const o=a.length-1;for(let c=1;c<=o;c++){let h=Ds(a[c]);const m=h.get("offset");h.set("offset",aM((e+m*t)/d)),u.push(h)}t=d,e=0,s="",a=u}return G0(this.element,a,this.preStyleProps,this.postStyleProps,t,e,s,!0)}}function aM(r,a=3){const e=Math.pow(10,a-1);return Math.round(r*e)/e}class Q0{}const V1=new Set(["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"]);class B1 extends Q0{normalizePropertyName(a,e){return N0(a)}normalizeStyleValue(a,e,t,s){let u="";const d=t.toString().trim();if(V1.has(e)&&0!==t&&"0"!==t)if("number"==typeof t)u="px";else{const l=t.match(/^[+-]?[\d\.]+([a-z]*)$/);l&&0==l[1].length&&s.push(function TP(r,a){return new f.vHH(3005,!1)}())}return d+u}}function oM(r,a,e,t,s,u,d,l,n,i,o,c,h){return{type:0,element:r,triggerName:a,isRemovalTransition:s,fromState:e,fromStyles:u,toState:t,toStyles:d,timelines:l,queriedElements:n,preStyleProps:i,postStyleProps:o,totalTime:c,errors:h}}const Y0={};class sM{constructor(a,e,t){this._triggerName=a,this.ast=e,this._stateStyles=t}match(a,e,t,s){return function O1(r,a,e,t,s){return r.some(u=>u(a,e,t,s))}(this.ast.matchers,a,e,t,s)}buildStyles(a,e,t){let s=this._stateStyles.get("*");return void 0!==a&&(s=this._stateStyles.get(a?.toString())||s),s?s.buildStyles(e,t):new Map}build(a,e,t,s,u,d,l,n,i,o){const c=[],h=this.ast.options&&this.ast.options.params||Y0,g=this.buildStyles(t,l&&l.params||Y0,c),p=n&&n.params||Y0,w=this.buildStyles(s,p,c),R=new Set,J=new Map,Te=new Map,at="void"===s,xi={params:L1(p,h),delay:this.ast.options?.delay},Xt=o?[]:W0(a,e,this.ast.animation,u,d,g,w,xi,i,c);let ci=0;if(Xt.forEach(_r=>{ci=Math.max(_r.duration+_r.delay,ci)}),c.length)return oM(e,this._triggerName,t,s,at,g,w,[],[],J,Te,ci,c);Xt.forEach(_r=>{const Do=_r.element,MD=zn(J,Do,new Set);_r.preStyleProps.forEach(dc=>MD.add(dc));const Bf=zn(Te,Do,new Set);_r.postStyleProps.forEach(dc=>Bf.add(dc)),Do!==e&&R.add(Do)});const sn=iC(R.values());return oM(e,this._triggerName,t,s,at,g,w,Xt,sn,J,Te,ci)}}function L1(r,a){const e=Ef(a);for(const t in r)r.hasOwnProperty(t)&&null!=r[t]&&(e[t]=r[t]);return e}class j1{constructor(a,e,t){this.styles=a,this.defaultParams=e,this.normalizer=t}buildStyles(a,e){const t=new Map,s=Ef(this.defaultParams);return Object.keys(a).forEach(u=>{const d=a[u];null!==d&&(s[u]=d)}),this.styles.styles.forEach(u=>{"string"!=typeof u&&u.forEach((d,l)=>{d&&(d=tC(d,s,e));const n=this.normalizer.normalizePropertyName(l,e);d=this.normalizer.normalizeStyleValue(l,n,d,e),t.set(n,d)})}),t}}class U1{constructor(a,e,t){this.name=a,this.ast=e,this._normalizer=t,this.transitionFactories=[],this.states=new Map,e.states.forEach(s=>{this.states.set(s.name,new j1(s.style,s.options&&s.options.params||{},t))}),lM(this.states,"true","1"),lM(this.states,"false","0"),e.transitions.forEach(s=>{this.transitionFactories.push(new sM(a,s,this.states))}),this.fallbackTransition=function N1(r,a,e){return new sM(r,{type:1,animation:{type:2,steps:[],options:null},matchers:[(d,l)=>!0],options:null,queryCount:0,depCount:0},a)}(a,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(a,e,t,s){return this.transitionFactories.find(d=>d.match(a,e,t,s))||null}matchStyles(a,e,t){return this.fallbackTransition.buildStyles(a,e,t)}}function lM(r,a,e){r.has(a)?r.has(e)||r.set(e,r.get(a)):r.has(e)&&r.set(a,r.get(e))}const q1=new lC;class z1{constructor(a,e,t){this.bodyNode=a,this._driver=e,this._normalizer=t,this._animations=new Map,this._playersById=new Map,this.players=[]}register(a,e){const t=[],u=q0(this._driver,e,t,[]);if(t.length)throw function qP(r){return new f.vHH(3503,!1)}();this._animations.set(a,u)}_buildPlayer(a,e,t){const s=a.element,u=FE(0,this._normalizer,0,a.keyframes,e,t);return this._driver.animate(s,u,a.duration,a.delay,a.easing,[],!0)}create(a,e,t={}){const s=[],u=this._animations.get(a);let d;const l=new Map;if(u?(d=W0(this._driver,e,u,L0,Kb,new Map,new Map,t,q1,s),d.forEach(o=>{const c=zn(l,o.element,new Map);o.postStyleProps.forEach(h=>c.set(h,null))})):(s.push(function zP(){return new f.vHH(3300,!1)}()),d=[]),s.length)throw function GP(r){return new f.vHH(3504,!1)}();l.forEach((o,c)=>{o.forEach((h,m)=>{o.set(m,this._driver.computeStyle(c,m,jn))})});const i=Es(d.map(o=>{const c=l.get(o.element);return this._buildPlayer(o,new Map,c)}));return this._playersById.set(a,i),i.onDestroy(()=>this.destroy(a)),this.players.push(i),i}destroy(a){const e=this._getPlayer(a);e.destroy(),this._playersById.delete(a);const t=this.players.indexOf(e);t>=0&&this.players.splice(t,1)}_getPlayer(a){const e=this._playersById.get(a);if(!e)throw function WP(r){return new f.vHH(3301,!1)}();return e}listen(a,e,t,s){const u=k0(e,"","","");return P0(this._getPlayer(a),t,u,s),()=>{}}command(a,e,t,s){if("register"==t)return void this.register(a,s[0]);if("create"==t)return void this.create(a,e,s[0]||{});const u=this._getPlayer(a);switch(t){case"play":u.play();break;case"pause":u.pause();break;case"reset":u.reset();break;case"restart":u.restart();break;case"finish":u.finish();break;case"init":u.init();break;case"setPosition":u.setPosition(parseFloat(s[0]));break;case"destroy":this.destroy(a)}}}const cM="ng-animate-queued",J0="ng-animate-disabled",Y1=[],dM={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},J1={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},mr="__ng_removed";class K0{constructor(a,e=""){this.namespaceId=e;const t=a&&a.hasOwnProperty("value");if(this.value=function eI(r){return r??null}(t?a.value:a),t){const u=Ef(a);delete u.value,this.options=u}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(a){const e=a.params;if(e){const t=this.options.params;Object.keys(e).forEach(s=>{null==t[s]&&(t[s]=e[s])})}}}const Df="void",Z0=new K0(Df);class K1{constructor(a,e,t){this.id=a,this.hostElement=e,this._engine=t,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+a,gr(e,this._hostClassName)}listen(a,e,t,s){if(!this._triggers.has(e))throw function $P(r,a){return new f.vHH(3302,!1)}();if(null==t||0==t.length)throw function QP(r){return new f.vHH(3303,!1)}();if(!function tI(r){return"start"==r||"done"==r}(t))throw function YP(r,a){return new f.vHH(3400,!1)}();const u=zn(this._elementListeners,a,[]),d={name:e,phase:t,callback:s};u.push(d);const l=zn(this._engine.statesByElement,a,new Map);return l.has(e)||(gr(a,Zb),gr(a,Zb+"-"+e),l.set(e,Z0)),()=>{this._engine.afterFlush(()=>{const n=u.indexOf(d);n>=0&&u.splice(n,1),this._triggers.has(e)||l.delete(e)})}}register(a,e){return!this._triggers.has(a)&&(this._triggers.set(a,e),!0)}_getTrigger(a){const e=this._triggers.get(a);if(!e)throw function JP(r){return new f.vHH(3401,!1)}();return e}trigger(a,e,t,s=!0){const u=this._getTrigger(e),d=new X0(this.id,e,a);let l=this._engine.statesByElement.get(a);l||(gr(a,Zb),gr(a,Zb+"-"+e),this._engine.statesByElement.set(a,l=new Map));let n=l.get(e);const i=new K0(t,this.id);if(!(t&&t.hasOwnProperty("value"))&&n&&i.absorbOptions(n.options),l.set(e,i),n||(n=Z0),i.value!==Df&&n.value===i.value){if(!function rI(r,a){const e=Object.keys(r),t=Object.keys(a);if(e.length!=t.length)return!1;for(let s=0;s{sc(a,w),Ba(a,R)})}return}const h=zn(this._engine.playersByElement,a,[]);h.forEach(p=>{p.namespaceId==this.id&&p.triggerName==e&&p.queued&&p.destroy()});let m=u.matchTransition(n.value,i.value,a,i.params),g=!1;if(!m){if(!s)return;m=u.fallbackTransition,g=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:a,triggerName:e,transition:m,fromState:n,toState:i,player:d,isFallbackTransition:g}),g||(gr(a,cM),d.onStart(()=>{xu(a,cM)})),d.onDone(()=>{let p=this.players.indexOf(d);p>=0&&this.players.splice(p,1);const w=this._engine.playersByElement.get(a);if(w){let R=w.indexOf(d);R>=0&&w.splice(R,1)}}),this.players.push(d),h.push(d),d}deregister(a){this._triggers.delete(a),this._engine.statesByElement.forEach(e=>e.delete(a)),this._elementListeners.forEach((e,t)=>{this._elementListeners.set(t,e.filter(s=>s.name!=a))})}clearElementCache(a){this._engine.statesByElement.delete(a),this._elementListeners.delete(a);const e=this._engine.playersByElement.get(a);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(a))}_signalRemovalForInnerTriggers(a,e){const t=this._engine.driver.query(a,Xb,!0);t.forEach(s=>{if(s[mr])return;const u=this._engine.fetchNamespacesByElement(s);u.size?u.forEach(d=>d.triggerLeaveAnimation(s,e,!1,!0)):this.clearElementCache(s)}),this._engine.afterFlushAnimationsDone(()=>t.forEach(s=>this.clearElementCache(s)))}triggerLeaveAnimation(a,e,t,s){const u=this._engine.statesByElement.get(a),d=new Map;if(u){const l=[];if(u.forEach((n,i)=>{if(d.set(i,n.value),this._triggers.has(i)){const o=this.trigger(a,i,Df,s);o&&l.push(o)}}),l.length)return this._engine.markElementAsRemoved(this.id,a,!0,e,d),t&&Es(l).onDone(()=>this._engine.processLeaveNode(a)),!0}return!1}prepareLeaveAnimationListeners(a){const e=this._elementListeners.get(a),t=this._engine.statesByElement.get(a);if(e&&t){const s=new Set;e.forEach(u=>{const d=u.name;if(s.has(d))return;s.add(d);const n=this._triggers.get(d).fallbackTransition,i=t.get(d)||Z0,o=new K0(Df),c=new X0(this.id,d,a);this._engine.totalQueuedPlayers++,this._queue.push({element:a,triggerName:d,transition:n,fromState:i,toState:o,player:c,isFallbackTransition:!0})})}}removeNode(a,e){const t=this._engine;if(a.childElementCount&&this._signalRemovalForInnerTriggers(a,e),this.triggerLeaveAnimation(a,e,!0))return;let s=!1;if(t.totalAnimations){const u=t.players.length?t.playersByQueriedElement.get(a):[];if(u&&u.length)s=!0;else{let d=a;for(;d=d.parentNode;)if(t.statesByElement.get(d)){s=!0;break}}}if(this.prepareLeaveAnimationListeners(a),s)t.markElementAsRemoved(this.id,a,!1,e);else{const u=a[mr];(!u||u===dM)&&(t.afterFlush(()=>this.clearElementCache(a)),t.destroyInnerAnimations(a),t._onRemovalComplete(a,e))}}insertNode(a,e){gr(a,this._hostClassName)}drainQueuedTransitions(a){const e=[];return this._queue.forEach(t=>{const s=t.player;if(s.destroyed)return;const u=t.element,d=this._elementListeners.get(u);d&&d.forEach(l=>{if(l.name==t.triggerName){const n=k0(u,t.triggerName,t.fromState.value,t.toState.value);n._data=a,P0(t.player,l.phase,n,l.callback)}}),s.markedForDestroy?this._engine.afterFlush(()=>{s.destroy()}):e.push(t)}),this._queue=[],e.sort((t,s)=>{const u=t.transition.ast.depCount,d=s.transition.ast.depCount;return 0==u||0==d?u-d:this._engine.driver.containsElement(t.element,s.element)?1:-1})}destroy(a){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,a)}elementContainsData(a){let e=!1;return this._elementListeners.has(a)&&(e=!0),e=!!this._queue.find(t=>t.element===a)||e,e}}class Z1{constructor(a,e,t){this.bodyNode=a,this.driver=e,this._normalizer=t,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=(s,u)=>{}}_onRemovalComplete(a,e){this.onRemovalComplete(a,e)}get queuedPlayers(){const a=[];return this._namespaceList.forEach(e=>{e.players.forEach(t=>{t.queued&&a.push(t)})}),a}createNamespace(a,e){const t=new K1(a,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(t,e):(this.newHostElements.set(e,t),this.collectEnterElement(e)),this._namespaceLookup[a]=t}_balanceNamespaceList(a,e){const t=this._namespaceList,s=this.namespacesByHostElement;if(t.length-1>=0){let d=!1,l=this.driver.getParentElement(e);for(;l;){const n=s.get(l);if(n){const i=t.indexOf(n);t.splice(i+1,0,a),d=!0;break}l=this.driver.getParentElement(l)}d||t.unshift(a)}else t.push(a);return s.set(e,a),a}register(a,e){let t=this._namespaceLookup[a];return t||(t=this.createNamespace(a,e)),t}registerTrigger(a,e,t){let s=this._namespaceLookup[a];s&&s.register(e,t)&&this.totalAnimations++}destroy(a,e){if(!a)return;const t=this._fetchNamespace(a);this.afterFlush(()=>{this.namespacesByHostElement.delete(t.hostElement),delete this._namespaceLookup[a];const s=this._namespaceList.indexOf(t);s>=0&&this._namespaceList.splice(s,1)}),this.afterFlushAnimationsDone(()=>t.destroy(e))}_fetchNamespace(a){return this._namespaceLookup[a]}fetchNamespacesByElement(a){const e=new Set,t=this.statesByElement.get(a);if(t)for(let s of t.values())if(s.namespaceId){const u=this._fetchNamespace(s.namespaceId);u&&e.add(u)}return e}trigger(a,e,t,s){if(uC(e)){const u=this._fetchNamespace(a);if(u)return u.trigger(e,t,s),!0}return!1}insertNode(a,e,t,s){if(!uC(e))return;const u=e[mr];if(u&&u.setForRemoval){u.setForRemoval=!1,u.setForMove=!0;const d=this.collectedLeaveElements.indexOf(e);d>=0&&this.collectedLeaveElements.splice(d,1)}if(a){const d=this._fetchNamespace(a);d&&d.insertNode(e,t)}s&&this.collectEnterElement(e)}collectEnterElement(a){this.collectedEnterElements.push(a)}markElementAsDisabled(a,e){e?this.disabledNodes.has(a)||(this.disabledNodes.add(a),gr(a,J0)):this.disabledNodes.has(a)&&(this.disabledNodes.delete(a),xu(a,J0))}removeNode(a,e,t,s){if(uC(e)){const u=a?this._fetchNamespace(a):null;if(u?u.removeNode(e,s):this.markElementAsRemoved(a,e,!1,s),t){const d=this.namespacesByHostElement.get(e);d&&d.id!==a&&d.removeNode(e,s)}}else this._onRemovalComplete(e,s)}markElementAsRemoved(a,e,t,s,u){this.collectedLeaveElements.push(e),e[mr]={namespaceId:a,setForRemoval:s,hasAnimation:t,removedBeforeQueried:!1,previousTriggersValues:u}}listen(a,e,t,s,u){return uC(e)?this._fetchNamespace(a).listen(e,t,s,u):()=>{}}_buildInstruction(a,e,t,s,u){return a.transition.build(this.driver,a.element,a.fromState.value,a.toState.value,t,s,a.fromState.options,a.toState.options,e,u)}destroyInnerAnimations(a){let e=this.driver.query(a,Xb,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(a,j0,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(a){const e=this.playersByElement.get(a);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(a){const e=this.playersByQueriedElement.get(a);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(a=>{if(this.players.length)return Es(this.players).onDone(()=>a());a()})}processLeaveNode(a){const e=a[mr];if(e&&e.setForRemoval){if(a[mr]=dM,e.namespaceId){this.destroyInnerAnimations(a);const t=this._fetchNamespace(e.namespaceId);t&&t.clearElementCache(a)}this._onRemovalComplete(a,e.setForRemoval)}a.classList?.contains(J0)&&this.markElementAsDisabled(a,!1),this.driver.query(a,".ng-animate-disabled",!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(a=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,s)=>this._balanceNamespaceList(t,s)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let t=0;tt()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?Es(e).onDone(()=>{t.forEach(s=>s())}):t.forEach(s=>s())}}reportError(a){throw function KP(r){return new f.vHH(3402,!1)}()}_flushAnimations(a,e){const t=new lC,s=[],u=new Map,d=[],l=new Map,n=new Map,i=new Map,o=new Set;this.disabledNodes.forEach(We=>{o.add(We);const it=this.driver.query(We,".ng-animate-queued",!0);for(let ot=0;ot{const ot=L0+p++;g.set(it,ot),We.forEach(xt=>gr(xt,ot))});const w=[],R=new Set,J=new Set;for(let We=0;WeR.add(xt)):J.add(it))}const Te=new Map,at=pM(h,Array.from(R));at.forEach((We,it)=>{const ot=Kb+p++;Te.set(it,ot),We.forEach(xt=>gr(xt,ot))}),a.push(()=>{m.forEach((We,it)=>{const ot=g.get(it);We.forEach(xt=>xu(xt,ot))}),at.forEach((We,it)=>{const ot=Te.get(it);We.forEach(xt=>xu(xt,ot))}),w.forEach(We=>{this.processLeaveNode(We)})});const xi=[],Xt=[];for(let We=this._namespaceList.length-1;We>=0;We--)this._namespaceList[We].drainQueuedTransitions(e).forEach(ot=>{const xt=ot.player,Li=ot.element;if(xi.push(xt),this.collectedEnterElements.length){const Ki=Li[mr];if(Ki&&Ki.setForMove){if(Ki.previousTriggersValues&&Ki.previousTriggersValues.has(ot.triggerName)){const uc=Ki.previousTriggersValues.get(ot.triggerName),br=this.statesByElement.get(ot.element);if(br&&br.has(ot.triggerName)){const kC=br.get(ot.triggerName);kC.value=uc,br.set(ot.triggerName,kC)}}return void xt.destroy()}}const La=!c||!this.driver.containsElement(c,Li),Wn=Te.get(Li),Rs=g.get(Li),ai=this._buildInstruction(ot,t,Rs,Wn,La);if(ai.errors&&ai.errors.length)return void Xt.push(ai);if(La)return xt.onStart(()=>sc(Li,ai.fromStyles)),xt.onDestroy(()=>Ba(Li,ai.toStyles)),void s.push(xt);if(ot.isFallbackTransition)return xt.onStart(()=>sc(Li,ai.fromStyles)),xt.onDestroy(()=>Ba(Li,ai.toStyles)),void s.push(xt);const RD=[];ai.timelines.forEach(Ki=>{Ki.stretchStartingKeyframe=!0,this.disabledNodes.has(Ki.element)||RD.push(Ki)}),ai.timelines=RD,t.append(Li,ai.timelines),d.push({instruction:ai,player:xt,element:Li}),ai.queriedElements.forEach(Ki=>zn(l,Ki,[]).push(xt)),ai.preStyleProps.forEach((Ki,uc)=>{if(Ki.size){let br=n.get(uc);br||n.set(uc,br=new Set),Ki.forEach((kC,Mx)=>br.add(Mx))}}),ai.postStyleProps.forEach((Ki,uc)=>{let br=i.get(uc);br||i.set(uc,br=new Set),Ki.forEach((kC,Mx)=>br.add(Mx))})});if(Xt.length){const We=[];Xt.forEach(it=>{We.push(function ZP(r,a){return new f.vHH(3505,!1)}())}),xi.forEach(it=>it.destroy()),this.reportError(We)}const ci=new Map,sn=new Map;d.forEach(We=>{const it=We.element;t.has(it)&&(sn.set(it,it),this._beforeAnimationBuild(We.player.namespaceId,We.instruction,ci))}),s.forEach(We=>{const it=We.element;this._getPreviousPlayers(it,!1,We.namespaceId,We.triggerName,null).forEach(xt=>{zn(ci,it,[]).push(xt),xt.destroy()})});const _r=w.filter(We=>mM(We,n,i)),Do=new Map;hM(Do,this.driver,J,i,jn).forEach(We=>{mM(We,n,i)&&_r.push(We)});const Bf=new Map;m.forEach((We,it)=>{hM(Bf,this.driver,new Set(We),n,"!")}),_r.forEach(We=>{const it=Do.get(We),ot=Bf.get(We);Do.set(We,new Map([...Array.from(it?.entries()??[]),...Array.from(ot?.entries()??[])]))});const dc=[],DD=[],HD={};d.forEach(We=>{const{element:it,player:ot,instruction:xt}=We;if(t.has(it)){if(o.has(it))return ot.onDestroy(()=>Ba(it,xt.toStyles)),ot.disabled=!0,ot.overrideTotalTime(xt.totalTime),void s.push(ot);let Li=HD;if(sn.size>1){let Wn=it;const Rs=[];for(;Wn=Wn.parentNode;){const ai=sn.get(Wn);if(ai){Li=ai;break}Rs.push(Wn)}Rs.forEach(ai=>sn.set(ai,Li))}const La=this._buildAnimation(ot.namespaceId,xt,ci,u,Bf,Do);if(ot.setRealPlayer(La),Li===HD)dc.push(ot);else{const Wn=this.playersByElement.get(Li);Wn&&Wn.length&&(ot.parentPlayer=Es(Wn)),s.push(ot)}}else sc(it,xt.fromStyles),ot.onDestroy(()=>Ba(it,xt.toStyles)),DD.push(ot),o.has(it)&&s.push(ot)}),DD.forEach(We=>{const it=u.get(We.element);if(it&&it.length){const ot=Es(it);We.setRealPlayer(ot)}}),s.forEach(We=>{We.parentPlayer?We.syncPlayerEvents(We.parentPlayer):We.destroy()});for(let We=0;We!La.destroyed);Li.length?iI(this,it,Li):this.processLeaveNode(it)}return w.length=0,dc.forEach(We=>{this.players.push(We),We.onDone(()=>{We.destroy();const it=this.players.indexOf(We);this.players.splice(it,1)}),We.play()}),dc}elementContainsData(a,e){let t=!1;const s=e[mr];return s&&s.setForRemoval&&(t=!0),this.playersByElement.has(e)&&(t=!0),this.playersByQueriedElement.has(e)&&(t=!0),this.statesByElement.has(e)&&(t=!0),this._fetchNamespace(a).elementContainsData(e)||t}afterFlush(a){this._flushFns.push(a)}afterFlushAnimationsDone(a){this._whenQuietFns.push(a)}_getPreviousPlayers(a,e,t,s,u){let d=[];if(e){const l=this.playersByQueriedElement.get(a);l&&(d=l)}else{const l=this.playersByElement.get(a);if(l){const n=!u||u==Df;l.forEach(i=>{i.queued||!n&&i.triggerName!=s||d.push(i)})}}return(t||s)&&(d=d.filter(l=>!(t&&t!=l.namespaceId||s&&s!=l.triggerName))),d}_beforeAnimationBuild(a,e,t){const u=e.element,d=e.isRemovalTransition?void 0:a,l=e.isRemovalTransition?void 0:e.triggerName;for(const n of e.timelines){const i=n.element,o=i!==u,c=zn(t,i,[]);this._getPreviousPlayers(i,o,d,l,e.toState).forEach(m=>{const g=m.getRealPlayer();g.beforeDestroy&&g.beforeDestroy(),m.destroy(),c.push(m)})}sc(u,e.fromStyles)}_buildAnimation(a,e,t,s,u,d){const l=e.triggerName,n=e.element,i=[],o=new Set,c=new Set,h=e.timelines.map(g=>{const p=g.element;o.add(p);const w=p[mr];if(w&&w.removedBeforeQueried)return new mo(g.duration,g.delay);const R=p!==n,J=function nI(r){const a=[];return fM(r,a),a}((t.get(p)||Y1).map(ci=>ci.getRealPlayer())).filter(ci=>!!ci.element&&ci.element===p),Te=u.get(p),at=d.get(p),xi=FE(0,this._normalizer,0,g.keyframes,Te,at),Xt=this._buildPlayer(g,xi,J);if(g.subTimeline&&s&&c.add(p),R){const ci=new X0(a,l,p);ci.setRealPlayer(Xt),i.push(ci)}return Xt});i.forEach(g=>{zn(this.playersByQueriedElement,g.element,[]).push(g),g.onDone(()=>function X1(r,a,e){let t=r.get(a);if(t){if(t.length){const s=t.indexOf(e);t.splice(s,1)}0==t.length&&r.delete(a)}return t}(this.playersByQueriedElement,g.element,g))}),o.forEach(g=>gr(g,YE));const m=Es(h);return m.onDestroy(()=>{o.forEach(g=>xu(g,YE)),Ba(n,e.toStyles)}),c.forEach(g=>{zn(s,g,[]).push(m)}),m}_buildPlayer(a,e,t){return e.length>0?this.driver.animate(a.element,e,a.duration,a.delay,a.easing,t):new mo(a.duration,a.delay)}}class X0{constructor(a,e,t){this.namespaceId=a,this.triggerName=e,this.element=t,this._player=new mo,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(a){this._containsRealPlayer||(this._player=a,this._queuedCallbacks.forEach((e,t)=>{e.forEach(s=>P0(a,t,void 0,s))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(a.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(a){this.totalTime=a}syncPlayerEvents(a){const e=this._player;e.triggerCallback&&a.onStart(()=>e.triggerCallback("start")),a.onDone(()=>this.finish()),a.onDestroy(()=>this.destroy())}_queueEvent(a,e){zn(this._queuedCallbacks,a,[]).push(e)}onDone(a){this.queued&&this._queueEvent("done",a),this._player.onDone(a)}onStart(a){this.queued&&this._queueEvent("start",a),this._player.onStart(a)}onDestroy(a){this.queued&&this._queueEvent("destroy",a),this._player.onDestroy(a)}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(a){this.queued||this._player.setPosition(a)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(a){const e=this._player;e.triggerCallback&&e.triggerCallback(a)}}function uC(r){return r&&1===r.nodeType}function uM(r,a){const e=r.style.display;return r.style.display=a??"none",e}function hM(r,a,e,t,s){const u=[];e.forEach(n=>u.push(uM(n)));const d=[];t.forEach((n,i)=>{const o=new Map;n.forEach(c=>{const h=a.computeStyle(i,c,s);o.set(c,h),(!h||0==h.length)&&(i[mr]=J1,d.push(i))}),r.set(i,o)});let l=0;return e.forEach(n=>uM(n,u[l++])),d}function pM(r,a){const e=new Map;if(r.forEach(l=>e.set(l,[])),0==a.length)return e;const s=new Set(a),u=new Map;function d(l){if(!l)return 1;let n=u.get(l);if(n)return n;const i=l.parentNode;return n=e.has(i)?i:s.has(i)?1:d(i),u.set(l,n),n}return a.forEach(l=>{const n=d(l);1!==n&&e.get(n).push(l)}),e}function gr(r,a){r.classList?.add(a)}function xu(r,a){r.classList?.remove(a)}function iI(r,a,e){Es(e).onDone(()=>r.processLeaveNode(a))}function fM(r,a){for(let e=0;es.add(u)):a.set(r,t),e.delete(r),!0}class hC{constructor(a,e,t){this.bodyNode=a,this._driver=e,this._normalizer=t,this._triggerCache={},this.onRemovalComplete=(s,u)=>{},this._transitionEngine=new Z1(a,e,t),this._timelineEngine=new z1(a,e,t),this._transitionEngine.onRemovalComplete=(s,u)=>this.onRemovalComplete(s,u)}registerTrigger(a,e,t,s,u){const d=a+"-"+s;let l=this._triggerCache[d];if(!l){const n=[],o=q0(this._driver,u,n,[]);if(n.length)throw function UP(r,a){return new f.vHH(3404,!1)}();l=function F1(r,a,e){return new U1(r,a,e)}(s,o,this._normalizer),this._triggerCache[d]=l}this._transitionEngine.registerTrigger(e,s,l)}register(a,e){this._transitionEngine.register(a,e)}destroy(a,e){this._transitionEngine.destroy(a,e)}onInsert(a,e,t,s){this._transitionEngine.insertNode(a,e,t,s)}onRemove(a,e,t,s){this._transitionEngine.removeNode(a,e,s||!1,t)}disableAnimations(a,e){this._transitionEngine.markElementAsDisabled(a,e)}process(a,e,t,s){if("@"==t.charAt(0)){const[u,d]=UE(t);this._timelineEngine.command(u,e,d,s)}else this._transitionEngine.trigger(a,e,t,s)}listen(a,e,t,s,u){if("@"==t.charAt(0)){const[d,l]=UE(t);return this._timelineEngine.listen(d,e,l,u)}return this._transitionEngine.listen(a,e,t,s,u)}flush(a=-1){this._transitionEngine.flush(a)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let oI=(()=>{class r{constructor(e,t,s){this._element=e,this._startStyles=t,this._endStyles=s,this._state=0;let u=r.initialStylesByElement.get(e);u||r.initialStylesByElement.set(e,u=new Map),this._initialStyles=u}start(){this._state<1&&(this._startStyles&&Ba(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Ba(this._element,this._initialStyles),this._endStyles&&(Ba(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(r.initialStylesByElement.delete(this._element),this._startStyles&&(sc(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(sc(this._element,this._endStyles),this._endStyles=null),Ba(this._element,this._initialStyles),this._state=3)}}return r.initialStylesByElement=new WeakMap,r})();function ex(r){let a=null;return r.forEach((e,t)=>{(function sI(r){return"display"===r||"position"===r})(t)&&(a=a||new Map,a.set(t,e))}),a}class gM{constructor(a,e,t,s){this.element=a,this.keyframes=e,this.options=t,this._specialStyles=s,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=t.duration,this._delay=t.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(a=>a()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const a=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,a,this.options),this._finalKeyframe=a.length?a[a.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(a){const e=[];return a.forEach(t=>{e.push(Object.fromEntries(t))}),e}_triggerWebAnimation(a,e,t){return a.animate(this._convertKeyframesToObject(e),t)}onStart(a){this._originalOnStartFns.push(a),this._onStartFns.push(a)}onDone(a){this._originalOnDoneFns.push(a),this._onDoneFns.push(a)}onDestroy(a){this._onDestroyFns.push(a)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(a=>a()),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,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_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(a=>a()),this._onDestroyFns=[])}setPosition(a){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=a*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const a=new Map;this.hasStarted()&&this._finalKeyframe.forEach((t,s)=>{"offset"!==s&&a.set(s,this._finished?t:tM(this.element,s))}),this.currentSnapshot=a}triggerCallback(a){const e="start"===a?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class lI{validateStyleProperty(a){return!0}validateAnimatableStyleProperty(a){return!0}matchesElement(a,e){return!1}containsElement(a,e){return GE(a,e)}getParentElement(a){return B0(a)}query(a,e,t){return WE(a,e,t)}computeStyle(a,e,t){return window.getComputedStyle(a)[e]}animate(a,e,t,s,u,d=[]){const n={duration:t,delay:s,fill:0==s?"both":"forwards"};u&&(n.easing=u);const i=new Map,o=d.filter(m=>m instanceof gM);(function h1(r,a){return 0===r||0===a})(t,s)&&o.forEach(m=>{m.currentSnapshot.forEach((g,p)=>i.set(p,g))});let c=function l1(r){return r.length?r[0]instanceof Map?r:r.map(a=>JE(a)):[]}(e).map(m=>Ds(m));c=function p1(r,a,e){if(e.size&&a.length){let t=a[0],s=[];if(e.forEach((u,d)=>{t.has(d)||s.push(d),t.set(d,u)}),s.length)for(let u=1;ud.set(l,tM(r,l)))}}return a}(a,c,i);const h=function aI(r,a){let e=null,t=null;return Array.isArray(a)&&a.length?(e=ex(a[0]),a.length>1&&(t=ex(a[a.length-1]))):a instanceof Map&&(e=ex(a)),e||t?new oI(r,e,t):null}(a,c);return new gM(a,c,n,h)}}let cI=(()=>{class r extends Il{constructor(e,t){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(t.body,{id:"0",encapsulation:f.ifc.None,styles:[],data:{animation:[]}})}build(e){const t=this._nextAnimationId.toString();this._nextAnimationId++;const s=Array.isArray(e)?ip(e):e;return _M(this._renderer,null,t,"register",[s]),new dI(t,this._renderer)}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(f.FYo),f.LFG(M.K0))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac}),r})();class dI extends class Od{}{constructor(a,e){super(),this._id=a,this._renderer=e}create(a,e){return new uI(this._id,a,e||{},this._renderer)}}class uI{constructor(a,e,t,s){this.id=a,this.element=e,this._renderer=s,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",t)}_listen(a,e){return this._renderer.listen(this.element,`@@${this.id}:${a}`,e)}_command(a,...e){return _M(this._renderer,this.element,this.id,a,e)}onDone(a){this._listen("done",a)}onStart(a){this._listen("start",a)}onDestroy(a){this._listen("destroy",a)}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"),this._started=!1}setPosition(a){this._command("setPosition",a)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function _M(r,a,e,t,s){return r.setProperty(a,`@@${e}:${t}`,s)}const bM="@.disabled";let hI=(()=>{class r{constructor(e,t,s){this.delegate=e,this.engine=t,this._zone=s,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),t.onRemovalComplete=(u,d)=>{const l=d?.parentNode(u);l&&d.removeChild(l,u)}}createRenderer(e,t){const u=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){let o=this._rendererCache.get(u);return o||(o=new CM("",u,this.engine),this._rendererCache.set(u,o)),o}const d=t.id,l=t.id+"-"+this._currentId;this._currentId++,this.engine.register(l,e);const n=o=>{Array.isArray(o)?o.forEach(n):this.engine.registerTrigger(d,l,e,o.name,o)};return t.data.animation.forEach(n),new pI(this,l,u,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,s){e>=0&&et(s)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(u=>{const[d,l]=u;d(l)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,s]))}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 r.\u0275fac=function(e){return new(e||r)(f.LFG(f.FYo),f.LFG(hC),f.LFG(f.R0b))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac}),r})();class CM{constructor(a,e,t){this.namespaceId=a,this.delegate=e,this.engine=t,this.destroyNode=this.delegate.destroyNode?s=>e.destroyNode(s):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(a,e){return this.delegate.createElement(a,e)}createComment(a){return this.delegate.createComment(a)}createText(a){return this.delegate.createText(a)}appendChild(a,e){this.delegate.appendChild(a,e),this.engine.onInsert(this.namespaceId,e,a,!1)}insertBefore(a,e,t,s=!0){this.delegate.insertBefore(a,e,t),this.engine.onInsert(this.namespaceId,e,a,s)}removeChild(a,e,t){this.engine.onRemove(this.namespaceId,e,this.delegate,t)}selectRootElement(a,e){return this.delegate.selectRootElement(a,e)}parentNode(a){return this.delegate.parentNode(a)}nextSibling(a){return this.delegate.nextSibling(a)}setAttribute(a,e,t,s){this.delegate.setAttribute(a,e,t,s)}removeAttribute(a,e,t){this.delegate.removeAttribute(a,e,t)}addClass(a,e){this.delegate.addClass(a,e)}removeClass(a,e){this.delegate.removeClass(a,e)}setStyle(a,e,t,s){this.delegate.setStyle(a,e,t,s)}removeStyle(a,e,t){this.delegate.removeStyle(a,e,t)}setProperty(a,e,t){"@"==e.charAt(0)&&e==bM?this.disableAnimations(a,!!t):this.delegate.setProperty(a,e,t)}setValue(a,e){this.delegate.setValue(a,e)}listen(a,e,t){return this.delegate.listen(a,e,t)}disableAnimations(a,e){this.engine.disableAnimations(a,e)}}class pI extends CM{constructor(a,e,t,s){super(e,t,s),this.factory=a,this.namespaceId=e}setProperty(a,e,t){"@"==e.charAt(0)?"."==e.charAt(1)&&e==bM?this.disableAnimations(a,t=void 0===t||!!t):this.engine.process(this.namespaceId,a,e.slice(1),t):this.delegate.setProperty(a,e,t)}listen(a,e,t){if("@"==e.charAt(0)){const s=function fI(r){switch(r){case"body":return document.body;case"document":return document;case"window":return window;default:return r}}(a);let u=e.slice(1),d="";return"@"!=u.charAt(0)&&([u,d]=function mI(r){const a=r.indexOf(".");return[r.substring(0,a),r.slice(a+1)]}(u)),this.engine.listen(this.namespaceId,s,u,d,l=>{this.factory.scheduleListenerCallback(l._data||-1,t,l)})}return this.delegate.listen(a,e,t)}}const wM=[{provide:Il,useClass:cI},{provide:Q0,useFactory:function _I(){return new B1}},{provide:hC,useClass:(()=>{class r extends hC{constructor(e,t,s,u){super(e.body,t,s)}ngOnDestroy(){this.flush()}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(M.K0),f.LFG(O0),f.LFG(Q0),f.LFG(f.z2F))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac}),r})()},{provide:f.FYo,useFactory:function bI(r,a,e){return new hI(r,a,e)},deps:[pe,hC,f.R0b]}],tx=[{provide:O0,useFactory:()=>new lI},{provide:f.QbO,useValue:"BrowserAnimations"},...wM],yM=[{provide:O0,useClass:$E},{provide:f.QbO,useValue:"NoopAnimations"},...wM];let CI=(()=>{class r{static withConfig(e){return{ngModule:r,providers:e.disableAnimations?yM:tx}}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({providers:tx,imports:[Ua]}),r})(),wI=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[M.ez,Rp,Bn,ws]}),r})(),xM=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({}),r})(),fC=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[Vn,$e,ao,xM,$e,xM]}),r})(),$I=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[ls]}),r})(),xC=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[$I,$e,$e]}),r})(),hx=(()=>{class r{constructor(){this.changes=new He.x}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const hk={provide:hx,deps:[[new f.FiY,new f.tp0,hx]],useFactory:function uk(r){return r||new hx}};let px=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({providers:[hk],imports:[M.ez,$e]}),r})();const LM=new f.OlP("mat-chips-default-options");let mx=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({providers:[yl,{provide:LM,useValue:{separatorKeyCodes:[13]}}],imports:[$e]}),r})();function gx(r,a,e){for(let t in a)if(a.hasOwnProperty(t)){const s=a[t];s?r.setProperty(t,s,e?.has(t)?"important":""):r.removeProperty(t)}return r}function Mu(r,a){const e=a?"":"none";gx(r.style,{"touch-action":a?"":"none","-webkit-user-drag":a?"":"none","-webkit-tap-highlight-color":a?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function jM(r,a,e){gx(r.style,{position:a?"":"fixed",top:a?"":"0",opacity:a?"":"0",left:a?"":"-999em"},e)}function TC(r,a){return a&&"none"!=a?r+" "+a:r}function FM(r){const a=r.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(r)*a}function _x(r,a){return r.getPropertyValue(a).split(",").map(t=>t.trim())}function bx(r){const a=r.getBoundingClientRect();return{top:a.top,right:a.right,bottom:a.bottom,left:a.left,width:a.width,height:a.height,x:a.x,y:a.y}}function Cx(r,a,e){const{top:t,bottom:s,left:u,right:d}=r;return e>=t&&e<=s&&a>=u&&a<=d}function Pf(r,a,e){r.top+=a,r.bottom=r.top+r.height,r.left+=e,r.right=r.left+r.width}function UM(r,a,e,t){const{top:s,right:u,bottom:d,left:l,width:n,height:i}=r,o=n*a,c=i*a;return t>s-c&&tl-o&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:bx(e)})})}handleScroll(a){const e=Wi(a),t=this.positions.get(e);if(!t)return null;const s=t.scrollPosition;let u,d;if(e===this._document){const i=this.getViewportScrollPosition();u=i.top,d=i.left}else u=e.scrollTop,d=e.scrollLeft;const l=s.top-u,n=s.left-d;return this.positions.forEach((i,o)=>{i.clientRect&&e!==o&&e.contains(o)&&Pf(i.clientRect,l,n)}),s.top=u,s.left=d,{top:l,left:n}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function qM(r){const a=r.cloneNode(!0),e=a.querySelectorAll("[id]"),t=r.nodeName.toLowerCase();a.removeAttribute("id");for(let s=0;s{if(this.beforeStarted.next(),this._handles.length){const n=this._getTargetHandle(l);n&&!this._disabledHandles.has(n)&&!this.disabled&&this._initializeDragSequence(n,l)}else this.disabled||this._initializeDragSequence(this._rootElement,l)},this._pointerMove=l=>{const n=this._getPointerPositionOnPage(l);if(!this._hasStartedDragging){if(Math.abs(n.x-this._pickupPositionOnPage.x)+Math.abs(n.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const m=Date.now()>=this._dragStartTime+this._getDragStartDelay(l),g=this._dropContainer;if(!m)return void this._endDragSequence(l);(!g||!g.isDragging()&&!g.isReceiving())&&(l.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(l)))}return}l.preventDefault();const i=this._getConstrainedPointerPosition(n);if(this._hasMoved=!0,this._lastKnownPointerPosition=n,this._updatePointerDirectionDelta(i),this._dropContainer)this._updateActiveDropContainer(i,n);else{const o=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,c=this._activeTransform;c.x=i.x-o.x+this._passiveTransform.x,c.y=i.y-o.y+this._passiveTransform.y,this._applyRootElementTransform(c.x,c.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:i,event:l,distance:this._getDragDistance(i),delta:this._pointerDirectionDelta})})},this._pointerUp=l=>{this._endDragSequence(l)},this._nativeDragStart=l=>{if(this._handles.length){const n=this._getTargetHandle(l);n&&!this._disabledHandles.has(n)&&!this.disabled&&l.preventDefault()}else this.disabled||l.preventDefault()},this.withRootElement(a).withParent(e.parentDragRef||null),this._parentPositions=new NM(t),d.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(a){const e=Ye(a);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(t=>Mu(t,e)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(a){this._handles=a.map(t=>Gt(t)),this._handles.forEach(t=>Mu(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(a){return this._previewTemplate=a,this}withPlaceholderTemplate(a){return this._placeholderTemplate=a,this}withRootElement(a){const e=Gt(a);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,SC),e.addEventListener("touchstart",this._pointerDown,$M),e.addEventListener("dragstart",this._nativeDragStart,SC)}),this._initialTransform=void 0,this._rootElement=e),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(a){return this._boundaryElement=a?Gt(a):null,this._resizeSubscription.unsubscribe(),a&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(a){return this._parentDragRef=a,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),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=this._parentDragRef=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(a){!this._disabledHandles.has(a)&&this._handles.indexOf(a)>-1&&(this._disabledHandles.add(a),Mu(a,!0))}enableHandle(a){this._disabledHandles.has(a)&&(this._disabledHandles.delete(a),Mu(a,this.disabled))}withDirection(a){return this._direction=a,this}_withDropContainer(a){this._dropContainer=a}getFreeDragPosition(){const a=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:a.x,y:a.y}}setFreeDragPosition(a){return this._activeTransform={x:0,y:0},this._passiveTransform.x=a.x,this._passiveTransform.y=a.y,this._dropContainer||this._applyRootElementTransform(a.x,a.y),this}withPreviewContainer(a){return this._previewContainer=a,this}_sortFromLastPointerPosition(){const a=this._lastKnownPointerPosition;a&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(a),a)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview?.remove(),this._previewRef?.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(a){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:a}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(a),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(a);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e,event:a})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(a){If(a)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const t=this._rootElement,s=t.parentNode,u=this._placeholder=this._createPlaceholderElement(),d=this._anchor=this._anchor||this._document.createComment(""),l=this._getShadowRoot();s.insertBefore(d,t),this._initialTransform=t.style.transform||"",this._preview=this._createPreviewElement(),jM(t,!1,wx),this._document.body.appendChild(s.replaceChild(u,t)),this._getPreviewInsertionPoint(s,l).appendChild(this._preview),this.started.next({source:this,event:a}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this,event:a}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(a,e){this._parentDragRef&&e.stopPropagation();const t=this.isDragging(),s=If(e),u=!s&&0!==e.button,d=this._rootElement,l=Wi(e),n=!s&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),i=s?rr(e):_l(e);if(l&&l.draggable&&"mousedown"===e.type&&e.preventDefault(),t||u||n||i)return;if(this._handles.length){const h=d.style;this._rootElementTapHighlight=h.webkitTapHighlightColor||"",h.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(h=>this._updateOnScroll(h)),this._boundaryElement&&(this._boundaryRect=bx(this._boundaryElement));const o=this._previewTemplate;this._pickupPositionInElement=o&&o.template&&!o.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,a,e);const c=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:c.x,y:c.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(a){jM(this._rootElement,!0,wx),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,t=e.getItemIndex(this),s=this._getPointerPositionOnPage(a),u=this._getDragDistance(s),d=e._isOverContainer(s.x,s.y);this.ended.next({source:this,distance:u,dropPoint:s,event:a}),this.dropped.next({item:this,currentIndex:t,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:d,distance:u,dropPoint:s,event:a}),e.drop(this,t,this._initialIndex,this._initialContainer,d,u,s),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:a,y:e},{x:t,y:s}){let u=this._initialContainer._getSiblingContainerFromPosition(this,a,e);!u&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(a,e)&&(u=this._initialContainer),u&&u!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=u,this._dropContainer.enter(this,a,e,u===this._initialContainer&&u.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:u,currentIndex:u.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(t,s),this._dropContainer._sortItem(this,a,e,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(a,e):this._applyPreviewTransform(a-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const a=this._previewTemplate,e=this.previewClass,t=a?a.template:null;let s;if(t&&a){const u=a.matchSize?this._initialClientRect:null,d=a.viewContainer.createEmbeddedView(t,a.context);d.detectChanges(),s=YM(d,this._document),this._previewRef=d,a.matchSize?JM(s,u):s.style.transform=EC(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else s=qM(this._rootElement),JM(s,this._initialClientRect),this._initialTransform&&(s.style.transform=this._initialTransform);return gx(s.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},wx),Mu(s,!1),s.classList.add("cdk-drag-preview"),s.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(u=>s.classList.add(u)):s.classList.add(e)),s}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const a=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(a.left,a.top);const e=function Sk(r){const a=getComputedStyle(r),e=_x(a,"transition-property"),t=e.find(l=>"transform"===l||"all"===l);if(!t)return 0;const s=e.indexOf(t),u=_x(a,"transition-duration"),d=_x(a,"transition-delay");return FM(u[s])+FM(d[s])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{const s=d=>{(!d||Wi(d)===this._preview&&"transform"===d.propertyName)&&(this._preview?.removeEventListener("transitionend",s),t(),clearTimeout(u))},u=setTimeout(s,1.5*e);this._preview.addEventListener("transitionend",s)}))}_createPlaceholderElement(){const a=this._placeholderTemplate,e=a?a.template:null;let t;return e?(this._placeholderRef=a.viewContainer.createEmbeddedView(e,a.context),this._placeholderRef.detectChanges(),t=YM(this._placeholderRef,this._document)):t=qM(this._rootElement),t.style.pointerEvents="none",t.classList.add("cdk-drag-placeholder"),t}_getPointerPositionInElement(a,e,t){const s=e===this._rootElement?null:e,u=s?s.getBoundingClientRect():a,d=If(t)?t.targetTouches[0]:t,l=this._getViewportScrollPosition();return{x:u.left-a.left+(d.pageX-u.left-l.left),y:u.top-a.top+(d.pageY-u.top-l.top)}}_getPointerPositionOnPage(a){const e=this._getViewportScrollPosition(),t=If(a)?a.touches[0]||a.changedTouches[0]||{pageX:0,pageY:0}:a,s=t.pageX-e.left,u=t.pageY-e.top;if(this._ownerSVGElement){const d=this._ownerSVGElement.getScreenCTM();if(d){const l=this._ownerSVGElement.createSVGPoint();return l.x=s,l.y=u,l.matrixTransform(d.inverse())}}return{x:s,y:u}}_getConstrainedPointerPosition(a){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:t,y:s}=this.constrainPosition?this.constrainPosition(a,this,this._initialClientRect,this._pickupPositionInElement):a;if("x"===this.lockAxis||"x"===e?s=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===e)&&(t=this._pickupPositionOnPage.x),this._boundaryRect){const{x:u,y:d}=this._pickupPositionInElement,l=this._boundaryRect,{width:n,height:i}=this._getPreviewRect(),o=l.top+d,c=l.bottom-(i-d);t=QM(t,l.left+u,l.right-(n-u)),s=QM(s,o,c)}return{x:t,y:s}}_updatePointerDirectionDelta(a){const{x:e,y:t}=a,s=this._pointerDirectionDelta,u=this._pointerPositionAtLastDirectionChange,d=Math.abs(e-u.x),l=Math.abs(t-u.y);return d>this._config.pointerDirectionChangeThreshold&&(s.x=e>u.x?1:-1,u.x=e),l>this._config.pointerDirectionChangeThreshold&&(s.y=t>u.y?1:-1,u.y=t),s}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const a=this._handles.length>0||!this.isDragging();a!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=a,Mu(this._rootElement,a))}_removeRootElementListeners(a){a.removeEventListener("mousedown",this._pointerDown,SC),a.removeEventListener("touchstart",this._pointerDown,$M),a.removeEventListener("dragstart",this._nativeDragStart,SC)}_applyRootElementTransform(a,e){const t=EC(a,e),s=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=s.transform&&"none"!=s.transform?s.transform:""),s.transform=TC(t,this._initialTransform)}_applyPreviewTransform(a,e){const t=this._previewTemplate?.template?void 0:this._initialTransform,s=EC(a,e);this._preview.style.transform=TC(s,t)}_getDragDistance(a){const e=this._pickupPositionOnPage;return e?{x:a.x-e.x,y:a.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:a,y:e}=this._passiveTransform;if(0===a&&0===e||this.isDragging()||!this._boundaryElement)return;const t=this._rootElement.getBoundingClientRect(),s=this._boundaryElement.getBoundingClientRect();if(0===s.width&&0===s.height||0===t.width&&0===t.height)return;const u=s.left-t.left,d=t.right-s.right,l=s.top-t.top,n=t.bottom-s.bottom;s.width>t.width?(u>0&&(a+=u),d>0&&(a-=d)):a=0,s.height>t.height?(l>0&&(e+=l),n>0&&(e-=n)):e=0,(a!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:a})}_getDragStartDelay(a){const e=this.dragStartDelay;return"number"==typeof e?e:If(a)?e.touch:e?e.mouse:0}_updateOnScroll(a){const e=this._parentPositions.handleScroll(a);if(e){const t=Wi(a);this._boundaryRect&&t!==this._boundaryElement&&t.contains(this._boundaryElement)&&Pf(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(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=Kc(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(a,e){const t=this._previewContainer||"global";if("parent"===t)return a;if("global"===t){const s=this._document;return e||s.fullscreenElement||s.webkitFullscreenElement||s.mozFullScreenElement||s.msFullscreenElement||s.body}return Gt(t)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(a){return this._handles.find(e=>a.target&&(a.target===e||e.contains(a.target)))}}function EC(r,a){return`translate3d(${Math.round(r)}px, ${Math.round(a)}px, 0)`}function QM(r,a,e){return Math.max(a,Math.min(e,r))}function If(r){return"t"===r.type[0]}function YM(r,a){const e=r.rootNodes;if(1===e.length&&e[0].nodeType===a.ELEMENT_NODE)return e[0];const t=a.createElement("div");return e.forEach(s=>t.appendChild(s)),t}function JM(r,a){r.style.width=`${a.width}px`,r.style.height=`${a.height}px`,r.style.transform=EC(a.left,a.top)}function kf(r,a){return Math.max(0,Math.min(a,r))}class Rk{constructor(a,e){this._element=a,this._dragDropRegistry=e,this._itemPositions=[],this.orientation="vertical",this._previousSwap={drag:null,delta:0,overlaps:!1}}start(a){this.withItems(a)}sort(a,e,t,s){const u=this._itemPositions,d=this._getItemIndexFromPointerPosition(a,e,t,s);if(-1===d&&u.length>0)return null;const l="horizontal"===this.orientation,n=u.findIndex(w=>w.drag===a),i=u[d],c=i.clientRect,h=n>d?1:-1,m=this._getItemOffsetPx(u[n].clientRect,c,h),g=this._getSiblingOffsetPx(n,u,h),p=u.slice();return function Hk(r,a,e){const t=kf(a,r.length-1),s=kf(e,r.length-1);if(t===s)return;const u=r[t],d=s{if(p[R]===w)return;const J=w.drag===a,Te=J?m:g,at=J?a.getPlaceholderElement():w.drag.getRootElement();w.offset+=Te,l?(at.style.transform=TC(`translate3d(${Math.round(w.offset)}px, 0, 0)`,w.initialTransform),Pf(w.clientRect,0,Te)):(at.style.transform=TC(`translate3d(0, ${Math.round(w.offset)}px, 0)`,w.initialTransform),Pf(w.clientRect,Te,0))}),this._previousSwap.overlaps=Cx(c,e,t),this._previousSwap.drag=i.drag,this._previousSwap.delta=l?s.x:s.y,{previousIndex:n,currentIndex:d}}enter(a,e,t,s){const u=null==s||s<0?this._getItemIndexFromPointerPosition(a,e,t):s,d=this._activeDraggables,l=d.indexOf(a),n=a.getPlaceholderElement();let i=d[u];if(i===a&&(i=d[u+1]),!i&&(null==u||-1===u||u-1&&d.splice(l,1),i&&!this._dragDropRegistry.isDragging(i)){const o=i.getRootElement();o.parentElement.insertBefore(n,o),d.splice(u,0,a)}else Gt(this._element).appendChild(n),d.push(a);n.style.transform="",this._cacheItemPositions()}withItems(a){this._activeDraggables=a.slice(),this._cacheItemPositions()}withSortPredicate(a){this._sortPredicate=a}reset(){this._activeDraggables.forEach(a=>{const e=a.getRootElement();if(e){const t=this._itemPositions.find(s=>s.drag===a)?.initialTransform;e.style.transform=t||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(a){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(t=>t.drag===a)}updateOnScroll(a,e){this._itemPositions.forEach(({clientRect:t})=>{Pf(t,a,e)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()})}_cacheItemPositions(){const a="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(e=>{const t=e.getVisibleElement();return{drag:e,offset:0,initialTransform:t.style.transform||"",clientRect:bx(t)}}).sort((e,t)=>a?e.clientRect.left-t.clientRect.left:e.clientRect.top-t.clientRect.top)}_getItemOffsetPx(a,e,t){const s="horizontal"===this.orientation;let u=s?e.left-a.left:e.top-a.top;return-1===t&&(u+=s?e.width-a.width:e.height-a.height),u}_getSiblingOffsetPx(a,e,t){const s="horizontal"===this.orientation,u=e[a].clientRect,d=e[a+-1*t];let l=u[s?"width":"height"]*t;if(d){const n=s?"left":"top",i=s?"right":"bottom";-1===t?l-=d.clientRect[n]-u[i]:l+=u[n]-d.clientRect[i]}return l}_shouldEnterAsFirstChild(a,e){if(!this._activeDraggables.length)return!1;const t=this._itemPositions,s="horizontal"===this.orientation;if(t[0].drag!==this._activeDraggables[0]){const d=t[t.length-1].clientRect;return s?a>=d.right:e>=d.bottom}{const d=t[0].clientRect;return s?a<=d.left:e<=d.top}}_getItemIndexFromPointerPosition(a,e,t,s){const u="horizontal"===this.orientation,d=this._itemPositions.findIndex(({drag:l,clientRect:n})=>{if(l===a)return!1;if(s){const i=u?s.x:s.y;if(l===this._previousSwap.drag&&this._previousSwap.overlaps&&i===this._previousSwap.delta)return!1}return u?e>=Math.floor(n.left)&&e=Math.floor(n.top)&&t!0,this.sortPredicate=()=>!0,this.beforeStarted=new He.x,this.entered=new He.x,this.exited=new He.x,this.dropped=new He.x,this.sorted=new He.x,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=wt.w0.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new He.x,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function Tk(r=0,a=Td.z){return r<0&&(r=0),(0,Uh.H)(r,r,a)}(0,Zy).pipe(_t(this._stopScrollTimers)).subscribe(()=>{const d=this._scrollNode,l=this.autoScrollStep;1===this._verticalScrollDirection?d.scrollBy(0,-l):2===this._verticalScrollDirection&&d.scrollBy(0,l),1===this._horizontalScrollDirection?d.scrollBy(-l,0):2===this._horizontalScrollDirection&&d.scrollBy(l,0)})},this.element=Gt(a),this._document=t,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new NM(t),this._sortStrategy=new Rk(this.element,e),this._sortStrategy.withSortPredicate((d,l)=>this.sortPredicate(d,l,this))}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(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(a,e,t,s){this._draggingStarted(),null==s&&this.sortingDisabled&&(s=this._draggables.indexOf(a)),this._sortStrategy.enter(a,e,t,s),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:a,container:this,currentIndex:this.getItemIndex(a)})}exit(a){this._reset(),this.exited.next({item:a,container:this})}drop(a,e,t,s,u,d,l,n={}){this._reset(),this.dropped.next({item:a,currentIndex:e,previousIndex:t,container:this,previousContainer:s,isPointerOverContainer:u,distance:d,dropPoint:l,event:n})}withItems(a){const e=this._draggables;return this._draggables=a,a.forEach(t=>t._withDropContainer(this)),this.isDragging()&&(e.filter(s=>s.isDragging()).every(s=>-1===a.indexOf(s))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(a){return this._sortStrategy.direction=a,this}connectedTo(a){return this._siblings=a.slice(),this}withOrientation(a){return this._sortStrategy.orientation=a,this}withScrollableParents(a){const e=Gt(this.element);return this._scrollableElements=-1===a.indexOf(e)?[e,...a]:a.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(a){return this._isDragging?this._sortStrategy.getItemIndex(a):this._draggables.indexOf(a)}isReceiving(){return this._activeSiblings.size>0}_sortItem(a,e,t,s){if(this.sortingDisabled||!this._clientRect||!UM(this._clientRect,.05,e,t))return;const u=this._sortStrategy.sort(a,e,t,s);u&&this.sorted.next({previousIndex:u.previousIndex,currentIndex:u.currentIndex,container:this,item:a})}_startScrollingIfNecessary(a,e){if(this.autoScrollDisabled)return;let t,s=0,u=0;if(this._parentPositions.positions.forEach((d,l)=>{l===this._document||!d.clientRect||t||UM(d.clientRect,.05,a,e)&&([s,u]=function Ik(r,a,e,t){const s=XM(a,t),u=eD(a,e);let d=0,l=0;if(s){const n=r.scrollTop;1===s?n>0&&(d=1):r.scrollHeight-n>r.clientHeight&&(d=2)}if(u){const n=r.scrollLeft;1===u?n>0&&(l=1):r.scrollWidth-n>r.clientWidth&&(l=2)}return[d,l]}(l,d.clientRect,a,e),(s||u)&&(t=l))}),!s&&!u){const{width:d,height:l}=this._viewportRuler.getViewportSize(),n={width:d,height:l,top:0,right:d,bottom:l,left:0};s=XM(n,e),u=eD(n,a),t=window}t&&(s!==this._verticalScrollDirection||u!==this._horizontalScrollDirection||t!==this._scrollNode)&&(this._verticalScrollDirection=s,this._horizontalScrollDirection=u,this._scrollNode=t,(s||u)&&t?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const a=Gt(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=a.msScrollSnapType||a.scrollSnapType||"",a.scrollSnapType=a.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const a=Gt(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(a).clientRect}_reset(){this._isDragging=!1;const a=Gt(this.element).style;a.scrollSnapType=a.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(e=>e._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(a,e){return null!=this._clientRect&&Cx(this._clientRect,a,e)}_getSiblingContainerFromPosition(a,e,t){return this._siblings.find(s=>s._canReceive(a,e,t))}_canReceive(a,e,t){if(!this._clientRect||!Cx(this._clientRect,e,t)||!this.enterPredicate(a,this))return!1;const s=this._getShadowRoot().elementFromPoint(e,t);if(!s)return!1;const u=Gt(this.element);return s===u||u.contains(s)}_startReceiving(a,e){const t=this._activeSiblings;!t.has(a)&&e.every(s=>this.enterPredicate(s,this)||this._draggables.indexOf(s)>-1)&&(t.add(a),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(a){this._activeSiblings.delete(a),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(a=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(a);e&&this._sortStrategy.updateOnScroll(e.top,e.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const a=Kc(Gt(this.element));this._cachedShadowRoot=a||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const a=this._sortStrategy.getActiveItemsSnapshot().filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,a))}}function XM(r,a){const{top:e,bottom:t,height:s}=r,u=.05*s;return a>=e-u&&a<=e+u?1:a>=t-u&&a<=t+u?2:0}function eD(r,a){const{left:e,right:t,width:s}=r,u=.05*s;return a>=e-u&&a<=e+u?1:a>=t-u&&a<=t+u?2:0}const MC=fn({passive:!1,capture:!0});let kk=(()=>{class r{constructor(e,t){this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=s=>s.isDragging(),this.pointerMove=new He.x,this.pointerUp=new He.x,this.scroll=new He.x,this._preventDefaultWhileDragging=s=>{this._activeDragInstances.length>0&&s.preventDefault()},this._persistentTouchmoveListener=s=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&s.preventDefault(),this.pointerMove.next(s))},this._document=t}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,MC)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,MC)}startDragging(e,t){if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){const s=t.type.startsWith("touch");this._globalListeners.set(s?"touchend":"mouseup",{handler:u=>this.pointerUp.next(u),options:!0}).set("scroll",{handler:u=>this.scroll.next(u),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:MC}),s||this._globalListeners.set("mousemove",{handler:u=>this.pointerMove.next(u),options:MC}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((u,d)=>{this._document.addEventListener(d,u.handler,u.options)})})}}stopDragging(e){const t=this._activeDragInstances.indexOf(e);t>-1&&(this._activeDragInstances.splice(t,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(e){return this._activeDragInstances.indexOf(e)>-1}scrolled(e){const t=[this.scroll];return e&&e!==this._document&&t.push(new Fi.y(s=>this._ngZone.runOutsideAngular(()=>{const d=l=>{this._activeDragInstances.length&&s.next(l)};return e.addEventListener("scroll",d,!0),()=>{e.removeEventListener("scroll",d,!0)}}))),(0,Ln.T)(...t)}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((e,t)=>{this._document.removeEventListener(t,e.handler,e.options)}),this._globalListeners.clear()}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(f.R0b),f.LFG(M.K0))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const Vk={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let Bk=(()=>{class r{constructor(e,t,s,u){this._document=e,this._ngZone=t,this._viewportRuler=s,this._dragDropRegistry=u}createDrag(e,t=Vk){return new Dk(e,t,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new Pk(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(M.K0),f.LFG(f.R0b),f.LFG(jr),f.LFG(kk))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Ok=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({providers:[Bk],imports:[Ca]}),r})();function Lk(r,a){if(1&r&&(f.TgZ(0,"div",5)(1,"mat-icon"),f._uU(2),f.qZA()()),2&r){const e=f.oxw();f.xp6(2),f.Oqu(e.data.icon)}}function jk(r,a){if(1&r&&(f.TgZ(0,"div",6),f._uU(1),f.qZA()),2&r){const e=f.oxw();f.xp6(1),f.hij(" ",e.showTimestamp()," ")}}let Fk=(()=>{class r{constructor(e,t){this.dialog=e,this.notificationStorageService=t,this.newNotification=!1,this.closeNotification=new f.vpe,this.alreadyPressed=!1,this.alreadyClosed=!1,this.waiting=!1}doAction(){if(this.newNotification&&(this.alreadyPressed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,void 0!==this.data.action)this.data.action();else{const e=pr();e.width="550px",e.data=this.data,e.autoFocus=!1,this.dialog.open(KH,e).afterClosed().subscribe(()=>{this.closeSelf()})}}closeSelf(){this.inDialog||(this.newNotification&&(this.alreadyClosed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,this.closeNotification.emit())}ngOnInit(){!function bA(r,a){Pp.apply(this,arguments)}(this.data.delay,()=>{!this.alreadyClosed&&!this.waiting&&this.closeSelf()})}showTimestamp(){const[e,t]=this.data.timeStamp.split(":");return t.length<2?e+":0"+t:this.data.timeStamp}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(Cn),f.Y36($l))},r.\u0275cmp=f.Xpm({type:r,selectors:[["perun-web-apps-notification"]],inputs:{data:"data",inDialog:"inDialog",newNotification:"newNotification"},outputs:{closeNotification:"closeNotification"},decls:9,vars:14,consts:[[1,"notification-container",3,"click"],["class","notification-icon",4,"ngIf"],["data-cy","notification-message",1,"notification-text","clickable"],["class","ml-auto mr-5 mt-auto mb-auto",4,"ngIf"],[1,"notification-action","mt-auto","mb-auto",3,"hidden","click"],[1,"notification-icon"],[1,"ml-auto","mr-5","mt-auto","mb-auto"]],template:function(e,t){1&e&&(f.TgZ(0,"div")(1,"div",0),f.NdJ("click",function(){return t.alreadyClosed||t.waiting?"":t.closeSelf()}),f.YNc(2,Lk,3,1,"div",1),f.TgZ(3,"div",2),f._uU(4),f.ALo(5,"translate"),f.qZA(),f.YNc(6,jk,2,1,"div",3),f.TgZ(7,"div",4),f.NdJ("click",function(){return t.waiting=!0,t.doAction()}),f._uU(8),f.qZA()()()),2&e&&(f.Gre("notification ",t.inDialog?"":"mat-elevation-z7",""),f.ekj("error","error"===t.data.type)("success","success"===t.data.type),f.xp6(2),f.Q6J("ngIf",null!==t.data.icon),f.xp6(2),f.hij(" ",f.lcZ(5,12,t.data.title)," "),f.xp6(2),f.Q6J("ngIf",t.inDialog),f.xp6(1),f.Q6J("hidden",t.alreadyPressed),f.xp6(1),f.hij(" ",t.data.actionText," "))},dependencies:[M.O5,qr,vi],styles:[".notification[_ngcontent-%COMP%]{width:450px;margin-bottom:16px;display:flex;flex-direction:row;justify-content:space-between;color:#fff}.notification-container[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:row;padding:16px}.notification-text[_ngcontent-%COMP%]{font-size:1.1em}.notification-action[_ngcontent-%COMP%]{margin-left:auto;text-decoration:underline;cursor:pointer}@media (max-width: 768px){.notification[_ngcontent-%COMP%]{width:100%}}.notification.error[_ngcontent-%COMP%]{background-color:#d32f2f}.notification.success[_ngcontent-%COMP%]{background-color:#288619}.notification-icon[_ngcontent-%COMP%]{padding-right:8px;color:#fff}"]}),r})(),Uk=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({}),r})(),Wk=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({}),r})(),eV=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[Wk,$e,$e]}),r})(),nV=(()=>{class r{constructor(){this.changes=new He.x,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 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(e,t){return`${e} \u2013 ${t}`}formatYearRangeLabel(e,t){return`${e} to ${t}`}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const pV={provide:new f.OlP("mat-datepicker-scroll-strategy"),deps:[_n],useFactory:function hV(r){return()=>r.scrollStrategies.reposition()}};let Tx=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({providers:[nV,pV],imports:[M.ez,Bn,va,Cl,ho,$e,Ca]}),r})(),HV=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[Vn,$e,$e]}),r})();new f.OlP("mat-selectsearch-default-options");let VV=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[[M.ez,y,Bn,fC,Un,Sf,go]]}),r})(),sD=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[$e,$e]}),r})(),Sx=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[$e,$e]}),r})(),BV=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({}),r})(),cD=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[M.ez,$e,BV,ho]}),r})(),uD=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[_d,$e,_d,$e]}),r})(),jV=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[oo]}),r})(),Ex=(()=>{class r{constructor(){this.changes=new He.x,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const JV={provide:Ex,deps:[[new f.FiY,new f.tp0,Ex]],useFactory:function YV(r){return r||new Ex}};let mD=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({providers:[JV,yl],imports:[$e,M.ez,ho,Bn,jV,Un,Vn,$e]}),r})(),gD=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[M.ez,$e,Ca,Ca,$e]}),r})(),bD=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[_d,Vn,$e,vl,M.ez,_d,$e,vl,Sx]}),r})(),mB=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[M.ez,$e,ho,Vn,ao,Cl,$e]}),r})(),CD=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({}),r})(),wD=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[CD,Vn,$e,ao,CD,$e]}),r})(),yD=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[M.ez,sD,Sx,cD,Bn,uD,fC,Un,xC,Rp,Sf,xa,qn,ls,C,y,mD,Tx,Ih,gD,bD,Nl,OE,px,Nr,go,Nd,Vn,xC,wD,mx,sD,Sx,cD,Bn,uD,fC,Un,xC,Rp,Sf,xa,qn,ls,C,y,mD,Tx,Ih,gD,bD,Nl,OE,px,Nr,go,Nd,Vn,mB,wD,mx]}),r})(),MB=(()=>{class r extends Ag{format(e,t){return"input"===t?`${e.getDate().toString()}.${(e.getMonth()+1).toString()}.${e.getFullYear()}`:e.toDateString()}}return r.\u0275fac=function(){let a;return function(t){return(a||(a=f.n5z(r)))(t||r)}}(),r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac}),r})();const DB={parse:{dateInput:{month:"short",year:"numeric",day:"numeric"}},display:{dateInput:"input",monthYearLabel:{year:"numeric",month:"numeric"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let vD=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({providers:[{provide:rn,useClass:MB},{provide:is,useValue:DB}],imports:[M.ez,fC,xC,C,mx,Ok,ws,Jo,px,Nr,Sf,Jb,Un,Nl,Bn,go,xa,y,qn,Vn,yH,Uk,eV,Tx,HV,Vh,Nd,VV,ls,Rp,oA,yD,IR]}),r})();f.B6R(BE,[M.O5,Ha,Mi,Ng,dv,Wh,Ea,Da,Fk],[vi,kE]),new Date(324721404e5).valueOf();let KO=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[M.ez,Bn,Un,Jo,vD,ws,xa,y,qn,Jb]}),r})(),ZO=(()=>{class r{constructor(e,t){this.auth=e,this.router=t}ngOnInit(){(this.auth.isLoggedIn()||sessionStorage.getItem("baPrincipal"))&&this.router.navigate([""],{queryParamsHandling:"merge"})}startAuth(){this.auth.startAuthentication()}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(fr),f.Y36(Qt))},r.\u0275cmp=f.Xpm({type:r,selectors:[["perun-web-apps-login-screen"]],decls:11,vars:6,consts:[[1,"container","login-con"],[1,"row"],[1,"ml-auto","mr-auto","d-flex","flex-column","align-items-center"],[1,"mb-3"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(f.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h4",3),f._uU(4),f.ALo(5,"translate"),f.qZA(),f.TgZ(6,"button",4),f.NdJ("click",function(){return t.startAuth()}),f._uU(7),f.ALo(8,"translate"),f.TgZ(9,"mat-icon"),f._uU(10," login "),f.qZA()()()()()),2&e&&(f.xp6(4),f.hij(" ",f.lcZ(5,2,"SHARED_LIB.PERUN.LOGIN.TEXT")," "),f.xp6(3),f.hij(" ",f.lcZ(8,4,"SHARED_LIB.PERUN.LOGIN.SIGN_IN")," "))},dependencies:[Mi,qr,vi],styles:[".login-con[_ngcontent-%COMP%]{padding:120px 0}"]}),r})();function XO(r,a){1&r&&(f.TgZ(0,"perun-web-apps-alert",8),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&r&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.WRONG_LOGIN_OR_PASSWORD")," "))}const eL=[{path:"service-access",component:(()=>{class r{constructor(e,t,s){this.authzService=e,this.auth=t,this.router=s,this.usernameCtrl=new Va(null,[$r.required]),this.passwordCtrl=new Va(null,[$r.required]),this.wrongUsernameOrPassword=!1}startAuth(){this.usernameCtrl.invalid||this.passwordCtrl.invalid||(sessionStorage.setItem("basicUsername",this.usernameCtrl.value),sessionStorage.setItem("basicPassword",this.passwordCtrl.value),this.authzService.getPerunPrincipal().subscribe({next:e=>{sessionStorage.setItem("baPrincipal",JSON.stringify(e)),location.reload()},error:()=>{this.wrongUsernameOrPassword=!0}}))}ngOnInit(){(this.auth.isLoggedIn()||sessionStorage.getItem("baPrincipal"))&&this.router.navigate([""],{queryParamsHandling:"merge"})}}return r.\u0275fac=function(e){return new(e||r)(f.Y36(lt),f.Y36(fr),f.Y36(Qt))},r.\u0275cmp=f.Xpm({type:r,selectors:[["perun-web-apps-login-screen-service-access"]],decls:28,vars:23,consts:[[1,"container","login-con","vo-theme","top-padding"],[1,"row"],[1,"ml-auto","mr-auto","d-flex","flex-column","align-items-center"],["alert_type","error",4,"ngIf"],["appearance","outline"],["matInput","","required","",3,"formControl","keyup.enter"],["matInput","","required","",3,"formControl","type","keyup.enter"],["mat-raised-button","",1,"black",3,"disabled","click"],["alert_type","error"]],template:function(e,t){1&e&&(f.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h2"),f._uU(4),f.ALo(5,"translate"),f.qZA(),f.YNc(6,XO,3,3,"perun-web-apps-alert",3),f.TgZ(7,"mat-form-field",4)(8,"mat-label"),f._uU(9),f.ALo(10,"translate"),f.qZA(),f.TgZ(11,"input",5),f.NdJ("keyup.enter",function(){return t.startAuth()}),f.qZA(),f.TgZ(12,"mat-error"),f._uU(13),f.ALo(14,"translate"),f.qZA()(),f.TgZ(15,"mat-form-field",4)(16,"mat-label"),f._uU(17),f.ALo(18,"translate"),f.qZA(),f.TgZ(19,"input",6),f.NdJ("keyup.enter",function(){return t.startAuth()}),f.qZA(),f.TgZ(20,"mat-error"),f._uU(21),f.ALo(22,"translate"),f.qZA()(),f.TgZ(23,"button",7),f.NdJ("click",function(){return t.startAuth()}),f._uU(24),f.ALo(25,"translate"),f.TgZ(26,"mat-icon"),f._uU(27," login "),f.qZA()()()()()),2&e&&(f.xp6(4),f.Oqu(f.lcZ(5,11,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.LABEL")),f.xp6(2),f.Q6J("ngIf",t.wrongUsernameOrPassword),f.xp6(3),f.Oqu(f.lcZ(10,13,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME")),f.xp6(2),f.Q6J("formControl",t.usernameCtrl),f.xp6(2),f.hij(" ",f.lcZ(14,15,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME_ERROR")," "),f.xp6(4),f.Oqu(f.lcZ(18,17,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD")),f.xp6(2),f.Q6J("formControl",t.passwordCtrl)("type","password"),f.xp6(2),f.hij(" ",f.lcZ(22,19,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD_ERROR")," "),f.xp6(2),f.Q6J("disabled",t.usernameCtrl.invalid||t.passwordCtrl.invalid),f.xp6(1),f.hij(" ",f.lcZ(25,21,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.SIGN_IN")," "))},dependencies:[M.O5,Mi,qr,_s,Vl,Aa,Wr,Ia,Ao,bu,It,Ha,vi],styles:[".top-padding[_ngcontent-%COMP%]{padding:120px 0}mat-form-field.mat-form-field[_ngcontent-%COMP%]{font-size:14px;width:250px}.black[_ngcontent-%COMP%]{background-color:#000;color:#fff}"]}),r})()},{path:"login",component:ZO}];let tL=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=f.oAB({type:r}),r.\u0275inj=f.cJS({imports:[Jo.forRoot(eL,{relativeLinkResolution:"legacy"}),M.ez,Jo]}),r})(),iL=(()=>{class r{constructor(e,t,s,u,d){this.http=e,this.storeService=t,this.authzSevice=s,this.titleService=u,this.utilsService=d}initializeColors(e,t){return new Promise(s=>{t.forEach(u=>{const d=this.storeService.getProperty("theme")[u.configValue];document.documentElement.style.setProperty(u.cssVariable,d)}),e.forEach(u=>{const d=this.storeService.getProperty("theme")[u.configValue];document.documentElement.style.setProperty(u.cssVariable,d),this.setEntityTheme(u.entity,d)}),s()})}setEntityTheme(e,t){const s=function nL(r){return[yn(tinycolor(r).lighten(52),"50"),yn(tinycolor(r).lighten(37),"100"),yn(tinycolor(r).lighten(26),"200"),yn(tinycolor(r).lighten(12),"300"),yn(tinycolor(r).lighten(6),"400"),yn(tinycolor(r),"500"),yn(tinycolor(r).darken(6),"600"),yn(tinycolor(r).darken(12),"700"),yn(tinycolor(r).darken(18),"800"),yn(tinycolor(r).darken(24),"900"),yn(tinycolor(r).lighten(50).saturate(30),"A100"),yn(tinycolor(r).lighten(30).saturate(30),"A200"),yn(tinycolor(r).lighten(10).saturate(15),"A400"),yn(tinycolor(r).lighten(5).saturate(5),"A700")]}(t);for(const u of s){const n=`--${e}-theme-primary-contrast-${u.name}`,i=u.darkContrast?"30,30,30":"255,255,255";document.documentElement.style.setProperty(`--${e}-theme-primary-${u.name}`,`${u.red},${u.green},${u.blue}`),document.documentElement.style.setProperty(n,i)}}loadAppDefaultConfig(){return new Promise(e=>{this.http.get("/assets/config/defaultConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{this.storeService.setDefaultConfig(t),e()})})}loadAppInstanceConfig(){return new Promise(e=>{this.http.get("/assets/config/instanceConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{this.storeService.setInstanceConfig(t);const s=document.location.hostname;t?.brandings?.[s]&&this.storeService.setBanding(s),e()},()=>{e()})})}getNoCacheHeaders(){return new v.WM({CacheControl:"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"})}setInstanceFavicon(){return new Promise(e=>{const t=document.querySelector("link[rel*='icon']")||document.createElement("link");t.type="image/x-icon",t.rel="shortcut icon",t.href=this.storeService.getProperty("instance_favicon")?"./assets/config/instanceFavicon.ico":"./assets/img/perun.ico",document.getElementsByTagName("head")[0].appendChild(t),e()})}setApiUrl(){return new Promise(e=>{let t=this.storeService.getProperty("api_url");("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal")||this.storeService.getProperty("auto_service_access_redirect"))&&(t=t.replace("oauth","ba")),this.authzSevice.configuration.basePath=t,this.titleService.setTitle(this.storeService.getProperty("document_title").en),e()})}loadAppsConfig(){return new Promise((e,t)=>{this.utilsService.getAppsConfig().subscribe(s=>{this.storeService.setAppsConfig(s),e()},s=>t(s))})}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(v.eN),f.LFG(mi),f.LFG(lt),f.LFG(X),f.LFG(ea))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();function yn(r,a){const e=tinycolor(r),t=e.toRgb();return{name:a,hex:e.toHexString(),darkContrast:e.isLight(),red:t.r,green:t.g,blue:t.b}}let rL=(()=>{class r{constructor(e,t,s,u){this.initAuthService=e,this.appConfigService=t,this.location=s,this.mfaHandlerService=u}loadConfigs(){return this.appConfigService.loadAppDefaultConfig().then(()=>this.appConfigService.loadAppInstanceConfig()).then(()=>this.appConfigService.setApiUrl()).then(()=>this.appConfigService.setInstanceFavicon()).then(()=>location.search.substring(1).includes("token")?Promise.resolve(!0):this.initAuthService.verifyAuth()).catch(e=>{throw this.mfaHandlerService.catchNoMfaTokenError(e?.params?.error),console.error(e),this.location.go("/"),location.reload(),e}).then(e=>e?(this.mfaHandlerService.closeMfaWindow(),location.search.substring(1).includes("token")?void 0:this.initAuthService.loadPrincipal().then(()=>this.initAuthService.checkRouteGuard())):this.initAuthService.handleAuthStart())}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(ou),f.LFG(iL),f.LFG(M.Ye),f.LFG(Lp))},r.\u0275prov=f.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const aL=new f.OlP("perun-api-service"),oL={provide:v.TP,useExisting:(0,f.Gpc)(()=>fb),multi:!0};function sL(r){return new CP(r,"./assets/i18n/",".json")}function lL(r){const a={basePath:r.getProperty("api_url")};return new Ue(a)}const cL=r=>()=>r.loadConfigs();let dL=(()=>{class r{constructor(e,t){this.customIconService=e,this.translate=t,this.translate.setDefaultLang("en"),this.translate.use("en"),this.customIconService.registerPerunRefreshIcon()}}return r.\u0275fac=function(e){return new(e||r)(f.LFG(LA),f.LFG(Bi))},r.\u0275mod=f.oAB({type:r,bootstrap:[bP]}),r.\u0275inj=f.cJS({providers:[LA,{provide:f.ip1,useFactory:cL,multi:!0,deps:[rL]},{provide:Ue,useFactory:lL,deps:[mi]},fb,oL,{provide:aL,useClass:jA},{provide:bo.Hy,useFactory:()=>localStorage}],imports:[Ua,ws.forRoot({loader:{provide:zl,useFactory:sL,deps:[v.eN]}}),CI,Un,wI,Nf,v.JF,tL,yD,Jb,DH,bo.zr.forRoot(),vD,KO]}),r})();(0,f.G48)(),Ke().bootstrapModule(dL).catch(r=>console.error(r))},1302:function(N,z,E){var M;!function(f,L){var F={};!function(f){"use strict";f.__esModule=!0,f.digestLength=32,f.blockSize=64;var L=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function F(oe,ie,ae,he,fe){for(var _e,Oe,je,Ae,Ce,xe,Je,Re,De,Me,le,ce,ge;fe>=64;){for(_e=ie[0],Oe=ie[1],je=ie[2],Ae=ie[3],Ce=ie[4],xe=ie[5],Je=ie[6],Re=ie[7],Me=0;Me<16;Me++)oe[Me]=(255&ae[le=he+4*Me])<<24|(255&ae[le+1])<<16|(255&ae[le+2])<<8|255&ae[le+3];for(Me=16;Me<64;Me++)oe[Me]=((ce=((De=oe[Me-2])>>>17|De<<15)^(De>>>19|De<<13)^De>>>10)+oe[Me-7]|0)+((ge=((De=oe[Me-15])>>>7|De<<25)^(De>>>18|De<<14)^De>>>3)+oe[Me-16]|0);for(Me=0;Me<64;Me++)ce=(((Ce>>>6|Ce<<26)^(Ce>>>11|Ce<<21)^(Ce>>>25|Ce<<7))+(Ce&xe^~Ce&Je)|0)+(Re+(L[Me]+oe[Me]|0)|0)|0,ge=((_e>>>2|_e<<30)^(_e>>>13|_e<<19)^(_e>>>22|_e<<10))+(_e&Oe^_e&je^Oe&je)|0,Re=Je,Je=xe,xe=Ce,Ce=Ae+ce|0,Ae=je,je=Oe,Oe=_e,_e=ce+ge|0;ie[0]+=_e,ie[1]+=Oe,ie[2]+=je,ie[3]+=Ae,ie[4]+=Ce,ie[5]+=xe,ie[6]+=Je,ie[7]+=Re,he+=64,fe-=64}return he}var B=function(){function oe(){this.digestLength=f.digestLength,this.blockSize=f.blockSize,this.state=new Int32Array(8),this.temp=new Int32Array(64),this.buffer=new Uint8Array(128),this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this.reset()}return oe.prototype.reset=function(){return this.state[0]=1779033703,this.state[1]=3144134277,this.state[2]=1013904242,this.state[3]=2773480762,this.state[4]=1359893119,this.state[5]=2600822924,this.state[6]=528734635,this.state[7]=1541459225,this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this},oe.prototype.clean=function(){for(var ie=0;ie0){for(;this.bufferLength<64&&ae>0;)this.buffer[this.bufferLength++]=ie[he++],ae--;64===this.bufferLength&&(F(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(ae>=64&&(he=F(this.temp,this.state,ie,he,ae),ae%=64);ae>0;)this.buffer[this.bufferLength++]=ie[he++],ae--;return this},oe.prototype.finish=function(ie){if(!this.finished){var ae=this.bytesHashed,he=this.bufferLength,fe=ae/536870912|0,_e=ae<<3,Oe=ae%64<56?64:128;this.buffer[he]=128;for(var je=he+1;je>>24&255,this.buffer[Oe-7]=fe>>>16&255,this.buffer[Oe-6]=fe>>>8&255,this.buffer[Oe-5]=fe>>>0&255,this.buffer[Oe-4]=_e>>>24&255,this.buffer[Oe-3]=_e>>>16&255,this.buffer[Oe-2]=_e>>>8&255,this.buffer[Oe-1]=_e>>>0&255,F(this.temp,this.state,this.buffer,0,Oe),this.finished=!0}for(je=0;je<8;je++)ie[4*je+0]=this.state[je]>>>24&255,ie[4*je+1]=this.state[je]>>>16&255,ie[4*je+2]=this.state[je]>>>8&255,ie[4*je+3]=this.state[je]>>>0&255;return this},oe.prototype.digest=function(){var ie=new Uint8Array(this.digestLength);return this.finish(ie),ie},oe.prototype._saveState=function(ie){for(var ae=0;aethis.blockSize)(new B).update(ie).finish(ae).clean();else for(var he=0;he1&&ie.update(oe),ae&&ie.update(ae),ie.update(he),ie.finish(oe),he[0]++}f.HMAC=q,f.hash=Q,f.default=Q,f.hmac=ee;var Y=new Uint8Array(f.digestLength);f.hkdf=function G(oe,ie,ae,he){void 0===ie&&(ie=Y),void 0===he&&(he=32);for(var fe=new Uint8Array([1]),_e=ee(ie,oe),Oe=new q(_e),je=new Uint8Array(Oe.digestLength),Ae=je.length,Ce=new Uint8Array(he),xe=0;xe>>24&255,Oe[1]=Je>>>16&255,Oe[2]=Je>>>8&255,Oe[3]=Je>>>0&255,fe.reset(),fe.update(ie),fe.update(Oe),fe.finish(Ae);for(var Re=0;Re<_e;Re++)je[Re]=Ae[Re];for(Re=2;Re<=ae;Re++){fe.reset(),fe.update(Ae).finish(Ae);for(var De=0;De<_e;De++)je[De]^=Ae[De]}for(Re=0;Re<_e&&xe*_e+Re=G.status}function q(Y){try{Y.dispatchEvent(new MouseEvent("click"))}catch{var G=document.createEvent("MouseEvents");G.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),Y.dispatchEvent(G)}}var Q="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,ee=Q.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),W=Q.saveAs||("object"!=typeof window||window!==Q?function(){}:"download"in HTMLAnchorElement.prototype&&!ee?function(Y,G,re){var oe=Q.URL||Q.webkitURL,ie=document.createElement("a");ie.download=G=G||Y.name||"download",ie.rel="noopener","string"==typeof Y?(ie.href=Y,ie.origin===location.origin?q(ie):B(ie.href)?F(Y,G,re):q(ie,ie.target="_blank")):(ie.href=oe.createObjectURL(Y),setTimeout(function(){oe.revokeObjectURL(ie.href)},4e4),setTimeout(function(){q(ie)},0))}:"msSaveOrOpenBlob"in navigator?function(Y,G,re){if(G=G||Y.name||"download","string"!=typeof Y)navigator.msSaveOrOpenBlob(function L(Y,G){return typeof G>"u"?G={autoBom:!1}:"object"!=typeof G&&(console.warn("Deprecated: Expected third argument to be a object"),G={autoBom:!G}),G.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(Y.type)?new Blob(["\ufeff",Y],{type:Y.type}):Y}(Y,re),G);else if(B(Y))F(Y,G,re);else{var oe=document.createElement("a");oe.href=Y,oe.target="_blank",setTimeout(function(){q(oe)})}}:function(Y,G,re,oe){if((oe=oe||open("","_blank"))&&(oe.document.title=oe.document.body.innerText="downloading..."),"string"==typeof Y)return F(Y,G,re);var ie="application/octet-stream"===Y.type,ae=/constructor/i.test(Q.HTMLElement)||Q.safari,he=/CriOS\/[\d]+/.test(navigator.userAgent);if((he||ie&&ae||ee)&&typeof FileReader<"u"){var fe=new FileReader;fe.onloadend=function(){var je=fe.result;je=he?je:je.replace(/^data:[^;]*;/,"data:attachment/file;"),oe?oe.location.href=je:location=je,oe=null},fe.readAsDataURL(Y)}else{var _e=Q.URL||Q.webkitURL,Oe=_e.createObjectURL(Y);oe?oe.location=Oe:location.href=Oe,oe=null,setTimeout(function(){_e.revokeObjectURL(Oe)},4e4)}});Q.saveAs=W.saveAs=W,N.exports=W}.apply(z,[]))&&(N.exports=f)},9751:(N,z,E)=>{"use strict";E.d(z,{y:()=>ee});var M=E(930),f=E(727),L=E(8822),F=E(9635),B=E(2416),q=E(576),Q=E(2806);let ee=(()=>{class re{constructor(ie){ie&&(this._subscribe=ie)}lift(ie){const ae=new re;return ae.source=this,ae.operator=ie,ae}subscribe(ie,ae,he){const fe=function G(re){return re&&re instanceof M.Lv||function Y(re){return re&&(0,q.m)(re.next)&&(0,q.m)(re.error)&&(0,q.m)(re.complete)}(re)&&(0,f.Nn)(re)}(ie)?ie:new M.Hp(ie,ae,he);return(0,Q.x)(()=>{const{operator:_e,source:Oe}=this;fe.add(_e?_e.call(fe,Oe):Oe?this._subscribe(fe):this._trySubscribe(fe))}),fe}_trySubscribe(ie){try{return this._subscribe(ie)}catch(ae){ie.error(ae)}}forEach(ie,ae){return new(ae=W(ae))((he,fe)=>{const _e=new M.Hp({next:Oe=>{try{ie(Oe)}catch(je){fe(je),_e.unsubscribe()}},error:fe,complete:he});this.subscribe(_e)})}_subscribe(ie){var ae;return null===(ae=this.source)||void 0===ae?void 0:ae.subscribe(ie)}[L.L](){return this}pipe(...ie){return(0,F.U)(ie)(this)}toPromise(ie){return new(ie=W(ie))((ae,he)=>{let fe;this.subscribe(_e=>fe=_e,_e=>he(_e),()=>ae(fe))})}}return re.create=oe=>new re(oe),re})();function W(re){var oe;return null!==(oe=re??B.v.Promise)&&void 0!==oe?oe:Promise}},7579:(N,z,E)=>{"use strict";E.d(z,{x:()=>Q});var M=E(9751),f=E(727);const F=(0,E(3888).d)(W=>function(){W(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var B=E(8737),q=E(2806);let Q=(()=>{class W extends M.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(G){const re=new ee(this,this);return re.operator=G,re}_throwIfClosed(){if(this.closed)throw new F}next(G){(0,q.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const re of this.currentObservers)re.next(G)}})}error(G){(0,q.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=G;const{observers:re}=this;for(;re.length;)re.shift().error(G)}})}complete(){(0,q.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:G}=this;for(;G.length;)G.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var G;return(null===(G=this.observers)||void 0===G?void 0:G.length)>0}_trySubscribe(G){return this._throwIfClosed(),super._trySubscribe(G)}_subscribe(G){return this._throwIfClosed(),this._checkFinalizedStatuses(G),this._innerSubscribe(G)}_innerSubscribe(G){const{hasError:re,isStopped:oe,observers:ie}=this;return re||oe?f.Lc:(this.currentObservers=null,ie.push(G),new f.w0(()=>{this.currentObservers=null,(0,B.P)(ie,G)}))}_checkFinalizedStatuses(G){const{hasError:re,thrownError:oe,isStopped:ie}=this;re?G.error(oe):ie&&G.complete()}asObservable(){const G=new M.y;return G.source=this,G}}return W.create=(Y,G)=>new ee(Y,G),W})();class ee extends Q{constructor(Y,G){super(),this.destination=Y,this.source=G}next(Y){var G,re;null===(re=null===(G=this.destination)||void 0===G?void 0:G.next)||void 0===re||re.call(G,Y)}error(Y){var G,re;null===(re=null===(G=this.destination)||void 0===G?void 0:G.error)||void 0===re||re.call(G,Y)}complete(){var Y,G;null===(G=null===(Y=this.destination)||void 0===Y?void 0:Y.complete)||void 0===G||G.call(Y)}_subscribe(Y){var G,re;return null!==(re=null===(G=this.source)||void 0===G?void 0:G.subscribe(Y))&&void 0!==re?re:f.Lc}}},930:(N,z,E)=>{"use strict";E.d(z,{Hp:()=>he,Lv:()=>re});var M=E(576),f=E(727),L=E(2416),F=E(7849),B=E(5032);const q=W("C",void 0,void 0);function W(Ae,Ce,xe){return{kind:Ae,value:Ce,error:xe}}var Y=E(3410),G=E(2806);class re extends f.w0{constructor(Ce){super(),this.isStopped=!1,Ce?(this.destination=Ce,(0,f.Nn)(Ce)&&Ce.add(this)):this.destination=je}static create(Ce,xe,Je){return new he(Ce,xe,Je)}next(Ce){this.isStopped?Oe(function ee(Ae){return W("N",Ae,void 0)}(Ce),this):this._next(Ce)}error(Ce){this.isStopped?Oe(function Q(Ae){return W("E",void 0,Ae)}(Ce),this):(this.isStopped=!0,this._error(Ce))}complete(){this.isStopped?Oe(q,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(Ce){this.destination.next(Ce)}_error(Ce){try{this.destination.error(Ce)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const oe=Function.prototype.bind;function ie(Ae,Ce){return oe.call(Ae,Ce)}class ae{constructor(Ce){this.partialObserver=Ce}next(Ce){const{partialObserver:xe}=this;if(xe.next)try{xe.next(Ce)}catch(Je){fe(Je)}}error(Ce){const{partialObserver:xe}=this;if(xe.error)try{xe.error(Ce)}catch(Je){fe(Je)}else fe(Ce)}complete(){const{partialObserver:Ce}=this;if(Ce.complete)try{Ce.complete()}catch(xe){fe(xe)}}}class he extends re{constructor(Ce,xe,Je){let Re;if(super(),(0,M.m)(Ce)||!Ce)Re={next:Ce??void 0,error:xe??void 0,complete:Je??void 0};else{let De;this&&L.v.useDeprecatedNextContext?(De=Object.create(Ce),De.unsubscribe=()=>this.unsubscribe(),Re={next:Ce.next&&ie(Ce.next,De),error:Ce.error&&ie(Ce.error,De),complete:Ce.complete&&ie(Ce.complete,De)}):Re=Ce}this.destination=new ae(Re)}}function fe(Ae){L.v.useDeprecatedSynchronousErrorHandling?(0,G.O)(Ae):(0,F.h)(Ae)}function Oe(Ae,Ce){const{onStoppedNotification:xe}=L.v;xe&&Y.z.setTimeout(()=>xe(Ae,Ce))}const je={closed:!0,next:B.Z,error:function _e(Ae){throw Ae},complete:B.Z}},727:(N,z,E)=>{"use strict";E.d(z,{Lc:()=>q,w0:()=>B,Nn:()=>Q});var M=E(576);const L=(0,E(3888).d)(W=>function(G){W(this),this.message=G?`${G.length} errors occurred during unsubscription:\n${G.map((re,oe)=>`${oe+1}) ${re.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=G});var F=E(8737);class B{constructor(Y){this.initialTeardown=Y,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let Y;if(!this.closed){this.closed=!0;const{_parentage:G}=this;if(G)if(this._parentage=null,Array.isArray(G))for(const ie of G)ie.remove(this);else G.remove(this);const{initialTeardown:re}=this;if((0,M.m)(re))try{re()}catch(ie){Y=ie instanceof L?ie.errors:[ie]}const{_finalizers:oe}=this;if(oe){this._finalizers=null;for(const ie of oe)try{ee(ie)}catch(ae){Y=Y??[],ae instanceof L?Y=[...Y,...ae.errors]:Y.push(ae)}}if(Y)throw new L(Y)}}add(Y){var G;if(Y&&Y!==this)if(this.closed)ee(Y);else{if(Y instanceof B){if(Y.closed||Y._hasParent(this))return;Y._addParent(this)}(this._finalizers=null!==(G=this._finalizers)&&void 0!==G?G:[]).push(Y)}}_hasParent(Y){const{_parentage:G}=this;return G===Y||Array.isArray(G)&&G.includes(Y)}_addParent(Y){const{_parentage:G}=this;this._parentage=Array.isArray(G)?(G.push(Y),G):G?[G,Y]:Y}_removeParent(Y){const{_parentage:G}=this;G===Y?this._parentage=null:Array.isArray(G)&&(0,F.P)(G,Y)}remove(Y){const{_finalizers:G}=this;G&&(0,F.P)(G,Y),Y instanceof B&&Y._removeParent(this)}}B.EMPTY=(()=>{const W=new B;return W.closed=!0,W})();const q=B.EMPTY;function Q(W){return W instanceof B||W&&"closed"in W&&(0,M.m)(W.remove)&&(0,M.m)(W.add)&&(0,M.m)(W.unsubscribe)}function ee(W){(0,M.m)(W)?W():W.unsubscribe()}},2416:(N,z,E)=>{"use strict";E.d(z,{v:()=>M});const M={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9841:(N,z,E)=>{"use strict";E.d(z,{a:()=>Y});var M=E(9751),f=E(4742),L=E(2076),F=E(4671),B=E(3268),q=E(3269),Q=E(1810),ee=E(5403),W=E(9672);function Y(...oe){const ie=(0,q.yG)(oe),ae=(0,q.jO)(oe),{args:he,keys:fe}=(0,f.D)(oe);if(0===he.length)return(0,L.D)([],ie);const _e=new M.y(function G(oe,ie,ae=F.y){return he=>{re(ie,()=>{const{length:fe}=oe,_e=new Array(fe);let Oe=fe,je=fe;for(let Ae=0;Ae{const Ce=(0,L.D)(oe[Ae],ie);let xe=!1;Ce.subscribe((0,ee.x)(he,Je=>{_e[Ae]=Je,xe||(xe=!0,je--),je||he.next(ae(_e.slice()))},()=>{--Oe||he.complete()}))},he)},he)}}(he,ie,fe?Oe=>(0,Q.n)(fe,Oe):F.y));return ae?_e.pipe((0,B.Z)(ae)):_e}function re(oe,ie,ae){oe?(0,W.f)(ae,oe,ie):ie()}},7272:(N,z,E)=>{"use strict";E.d(z,{z:()=>B});var M=E(8189),L=E(3269),F=E(2076);function B(...q){return function f(){return(0,M.J)(1)}()((0,F.D)(q,(0,L.yG)(q)))}},515:(N,z,E)=>{"use strict";E.d(z,{E:()=>f});const f=new(E(9751).y)(B=>B.complete())},2076:(N,z,E)=>{"use strict";E.d(z,{D:()=>Je});var M=E(8421),f=E(9672),L=E(4482),F=E(5403);function B(Re,De=0){return(0,L.e)((Me,le)=>{Me.subscribe((0,F.x)(le,ce=>(0,f.f)(le,Re,()=>le.next(ce),De),()=>(0,f.f)(le,Re,()=>le.complete(),De),ce=>(0,f.f)(le,Re,()=>le.error(ce),De)))})}function q(Re,De=0){return(0,L.e)((Me,le)=>{le.add(Re.schedule(()=>Me.subscribe(le),De))})}var W=E(9751),G=E(2202),re=E(576);function ie(Re,De){if(!Re)throw new Error("Iterable cannot be null");return new W.y(Me=>{(0,f.f)(Me,De,()=>{const le=Re[Symbol.asyncIterator]();(0,f.f)(Me,De,()=>{le.next().then(ce=>{ce.done?Me.complete():Me.next(ce.value)})},0,!0)})})}var ae=E(3670),he=E(8239),fe=E(1144),_e=E(6495),Oe=E(2206),je=E(4532),Ae=E(3260);function Je(Re,De){return De?function xe(Re,De){if(null!=Re){if((0,ae.c)(Re))return function Q(Re,De){return(0,M.Xf)(Re).pipe(q(De),B(De))}(Re,De);if((0,fe.z)(Re))return function Y(Re,De){return new W.y(Me=>{let le=0;return De.schedule(function(){le===Re.length?Me.complete():(Me.next(Re[le++]),Me.closed||this.schedule())})})}(Re,De);if((0,he.t)(Re))return function ee(Re,De){return(0,M.Xf)(Re).pipe(q(De),B(De))}(Re,De);if((0,Oe.D)(Re))return ie(Re,De);if((0,_e.T)(Re))return function oe(Re,De){return new W.y(Me=>{let le;return(0,f.f)(Me,De,()=>{le=Re[G.h](),(0,f.f)(Me,De,()=>{let ce,ge;try{({value:ce,done:ge}=le.next())}catch(pe){return void Me.error(pe)}ge?Me.complete():Me.next(ce)},0,!0)}),()=>(0,re.m)(le?.return)&&le.return()})}(Re,De);if((0,Ae.L)(Re))return function Ce(Re,De){return ie((0,Ae.Q)(Re),De)}(Re,De)}throw(0,je.z)(Re)}(Re,De):(0,M.Xf)(Re)}},8421:(N,z,E)=>{"use strict";E.d(z,{Xf:()=>oe});var M=E(655),f=E(1144),L=E(8239),F=E(9751),B=E(3670),q=E(2206),Q=E(4532),ee=E(6495),W=E(3260),Y=E(576),G=E(7849),re=E(8822);function oe(Ae){if(Ae instanceof F.y)return Ae;if(null!=Ae){if((0,B.c)(Ae))return function ie(Ae){return new F.y(Ce=>{const xe=Ae[re.L]();if((0,Y.m)(xe.subscribe))return xe.subscribe(Ce);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(Ae);if((0,f.z)(Ae))return function ae(Ae){return new F.y(Ce=>{for(let xe=0;xe{Ae.then(xe=>{Ce.closed||(Ce.next(xe),Ce.complete())},xe=>Ce.error(xe)).then(null,G.h)})}(Ae);if((0,q.D)(Ae))return _e(Ae);if((0,ee.T)(Ae))return function fe(Ae){return new F.y(Ce=>{for(const xe of Ae)if(Ce.next(xe),Ce.closed)return;Ce.complete()})}(Ae);if((0,W.L)(Ae))return function Oe(Ae){return _e((0,W.Q)(Ae))}(Ae)}throw(0,Q.z)(Ae)}function _e(Ae){return new F.y(Ce=>{(function je(Ae,Ce){var xe,Je,Re,De;return(0,M.mG)(this,void 0,void 0,function*(){try{for(xe=(0,M.KL)(Ae);!(Je=yield xe.next()).done;)if(Ce.next(Je.value),Ce.closed)return}catch(Me){Re={error:Me}}finally{try{Je&&!Je.done&&(De=xe.return)&&(yield De.call(xe))}finally{if(Re)throw Re.error}}Ce.complete()})})(Ae,Ce).catch(xe=>Ce.error(xe))})}},6451:(N,z,E)=>{"use strict";E.d(z,{T:()=>q});var M=E(8189),f=E(8421),L=E(515),F=E(3269),B=E(2076);function q(...Q){const ee=(0,F.yG)(Q),W=(0,F._6)(Q,1/0),Y=Q;return Y.length?1===Y.length?(0,f.Xf)(Y[0]):(0,M.J)(W)((0,B.D)(Y,ee)):L.E}},9646:(N,z,E)=>{"use strict";E.d(z,{of:()=>L});var M=E(3269),f=E(2076);function L(...F){const B=(0,M.yG)(F);return(0,f.D)(F,B)}},102:(N,z,E)=>{"use strict";E.d(z,{S:()=>q});var M=E(9751),f=E(8421);const{isArray:L}=Array;var B=E(5403);function q(...ee){return 1===(ee=function F(ee){return 1===ee.length&&L(ee[0])?ee[0]:ee}(ee)).length?(0,f.Xf)(ee[0]):new M.y(function Q(ee){return W=>{let Y=[];for(let G=0;Y&&!W.closed&&G{if(Y){for(let oe=0;oe{"use strict";E.d(z,{_:()=>L});var M=E(9751),f=E(576);function L(F,B){const q=(0,f.m)(F)?F:()=>F,Q=ee=>ee.error(q());return new M.y(B?ee=>B.schedule(Q,0,ee):Q)}},2805:(N,z,E)=>{"use strict";E.d(z,{H:()=>B});var M=E(9751),f=E(4986),L=E(3532),F=E(1165);function B(q=0,Q,ee=f.P){let W=-1;return null!=Q&&((0,L.K)(Q)?ee=Q:W=Q),new M.y(Y=>{let G=(0,F.q)(q)?+q-ee.now():q;G<0&&(G=0);let re=0;return ee.schedule(function(){Y.closed||(Y.next(re++),0<=W?this.schedule(void 0,W):Y.complete())},G)})}},5403:(N,z,E)=>{"use strict";E.d(z,{x:()=>f});var M=E(930);function f(F,B,q,Q,ee){return new L(F,B,q,Q,ee)}class L extends M.Lv{constructor(B,q,Q,ee,W,Y){super(B),this.onFinalize=W,this.shouldUnsubscribe=Y,this._next=q?function(G){try{q(G)}catch(re){B.error(re)}}:super._next,this._error=ee?function(G){try{ee(G)}catch(re){B.error(re)}finally{this.unsubscribe()}}:super._error,this._complete=Q?function(){try{Q()}catch(G){B.error(G)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var B;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:q}=this;super.unsubscribe(),!q&&(null===(B=this.onFinalize)||void 0===B||B.call(this))}}}},262:(N,z,E)=>{"use strict";E.d(z,{K:()=>F});var M=E(8421),f=E(5403),L=E(4482);function F(B){return(0,L.e)((q,Q)=>{let Y,ee=null,W=!1;ee=q.subscribe((0,f.x)(Q,void 0,void 0,G=>{Y=(0,M.Xf)(B(G,F(B)(q))),ee?(ee.unsubscribe(),ee=null,Y.subscribe(Q)):W=!0})),W&&(ee.unsubscribe(),ee=null,Y.subscribe(Q))})}},4351:(N,z,E)=>{"use strict";E.d(z,{b:()=>L});var M=E(5577),f=E(576);function L(F,B){return(0,f.m)(B)?(0,M.z)(F,B,1):(0,M.z)(F,1)}},8372:(N,z,E)=>{"use strict";E.d(z,{b:()=>F});var M=E(4986),f=E(4482),L=E(5403);function F(B,q=M.z){return(0,f.e)((Q,ee)=>{let W=null,Y=null,G=null;const re=()=>{if(W){W.unsubscribe(),W=null;const ie=Y;Y=null,ee.next(ie)}};function oe(){const ie=G+B,ae=q.now();if(ae{Y=ie,G=q.now(),W||(W=q.schedule(oe,B),ee.add(W))},()=>{re(),ee.complete()},void 0,()=>{Y=W=null}))})}},6590:(N,z,E)=>{"use strict";E.d(z,{d:()=>L});var M=E(4482),f=E(5403);function L(F){return(0,M.e)((B,q)=>{let Q=!1;B.subscribe((0,f.x)(q,ee=>{Q=!0,q.next(ee)},()=>{Q||q.next(F),q.complete()}))})}},1005:(N,z,E)=>{"use strict";E.d(z,{g:()=>re});var M=E(4986),f=E(7272),L=E(5698),F=E(4482),B=E(5403),q=E(5032),ee=E(9718),W=E(5577);function Y(oe,ie){return ie?ae=>(0,f.z)(ie.pipe((0,L.q)(1),function Q(){return(0,F.e)((oe,ie)=>{oe.subscribe((0,B.x)(ie,q.Z))})}()),ae.pipe(Y(oe))):(0,W.z)((ae,he)=>oe(ae,he).pipe((0,L.q)(1),(0,ee.h)(ae)))}var G=E(2805);function re(oe,ie=M.z){const ae=(0,G.H)(oe,ie);return Y(()=>ae)}},9300:(N,z,E)=>{"use strict";E.d(z,{h:()=>L});var M=E(4482),f=E(5403);function L(F,B){return(0,M.e)((q,Q)=>{let ee=0;q.subscribe((0,f.x)(Q,W=>F.call(B,W,ee++)&&Q.next(W)))})}},590:(N,z,E)=>{"use strict";E.d(z,{P:()=>Q});var M=E(6805),f=E(9300),L=E(5698),F=E(6590),B=E(8068),q=E(4671);function Q(ee,W){const Y=arguments.length>=2;return G=>G.pipe(ee?(0,f.h)((re,oe)=>ee(re,oe,G)):q.y,(0,L.q)(1),Y?(0,F.d)(W):(0,B.T)(()=>new M.K))}},4004:(N,z,E)=>{"use strict";E.d(z,{U:()=>L});var M=E(4482),f=E(5403);function L(F,B){return(0,M.e)((q,Q)=>{let ee=0;q.subscribe((0,f.x)(Q,W=>{Q.next(F.call(B,W,ee++))}))})}},9718:(N,z,E)=>{"use strict";E.d(z,{h:()=>f});var M=E(4004);function f(L){return(0,M.U)(()=>L)}},8189:(N,z,E)=>{"use strict";E.d(z,{J:()=>L});var M=E(5577),f=E(4671);function L(F=1/0){return(0,M.z)(f.y,F)}},5577:(N,z,E)=>{"use strict";E.d(z,{z:()=>ee});var M=E(4004),f=E(8421),L=E(4482),F=E(9672),B=E(5403),Q=E(576);function ee(W,Y,G=1/0){return(0,Q.m)(Y)?ee((re,oe)=>(0,M.U)((ie,ae)=>Y(re,ie,oe,ae))((0,f.Xf)(W(re,oe))),G):("number"==typeof Y&&(G=Y),(0,L.e)((re,oe)=>function q(W,Y,G,re,oe,ie,ae,he){const fe=[];let _e=0,Oe=0,je=!1;const Ae=()=>{je&&!fe.length&&!_e&&Y.complete()},Ce=Je=>_e{ie&&Y.next(Je),_e++;let Re=!1;(0,f.Xf)(G(Je,Oe++)).subscribe((0,B.x)(Y,De=>{oe?.(De),ie?Ce(De):Y.next(De)},()=>{Re=!0},void 0,()=>{if(Re)try{for(_e--;fe.length&&_exe(De)):xe(De)}Ae()}catch(De){Y.error(De)}}))};return W.subscribe((0,B.x)(Y,Ce,()=>{je=!0,Ae()})),()=>{he?.()}}(re,oe,W,G)))}},3099:(N,z,E)=>{"use strict";E.d(z,{B:()=>B});var M=E(8421),f=E(7579),L=E(930),F=E(4482);function B(Q={}){const{connector:ee=(()=>new f.x),resetOnError:W=!0,resetOnComplete:Y=!0,resetOnRefCountZero:G=!0}=Q;return re=>{let oe,ie,ae,he=0,fe=!1,_e=!1;const Oe=()=>{ie?.unsubscribe(),ie=void 0},je=()=>{Oe(),oe=ae=void 0,fe=_e=!1},Ae=()=>{const Ce=oe;je(),Ce?.unsubscribe()};return(0,F.e)((Ce,xe)=>{he++,!_e&&!fe&&Oe();const Je=ae=ae??ee();xe.add(()=>{he--,0===he&&!_e&&!fe&&(ie=q(Ae,G))}),Je.subscribe(xe),!oe&&he>0&&(oe=new L.Hp({next:Re=>Je.next(Re),error:Re=>{_e=!0,Oe(),ie=q(je,W,Re),Je.error(Re)},complete:()=>{fe=!0,Oe(),ie=q(je,Y),Je.complete()}}),(0,M.Xf)(Ce).subscribe(oe))})(re)}}function q(Q,ee,...W){if(!0===ee)return void Q();if(!1===ee)return;const Y=new L.Hp({next:()=>{Y.unsubscribe(),Q()}});return ee(...W).subscribe(Y)}},3900:(N,z,E)=>{"use strict";E.d(z,{w:()=>F});var M=E(8421),f=E(4482),L=E(5403);function F(B,q){return(0,f.e)((Q,ee)=>{let W=null,Y=0,G=!1;const re=()=>G&&!W&&ee.complete();Q.subscribe((0,L.x)(ee,oe=>{W?.unsubscribe();let ie=0;const ae=Y++;(0,M.Xf)(B(oe,ae)).subscribe(W=(0,L.x)(ee,he=>ee.next(q?q(oe,he,ae,ie++):he),()=>{W=null,re()}))},()=>{G=!0,re()}))})}},5698:(N,z,E)=>{"use strict";E.d(z,{q:()=>F});var M=E(515),f=E(4482),L=E(5403);function F(B){return B<=0?()=>M.E:(0,f.e)((q,Q)=>{let ee=0;q.subscribe((0,L.x)(Q,W=>{++ee<=B&&(Q.next(W),B<=ee&&Q.complete())}))})}},8505:(N,z,E)=>{"use strict";E.d(z,{b:()=>B});var M=E(576),f=E(4482),L=E(5403),F=E(4671);function B(q,Q,ee){const W=(0,M.m)(q)||Q||ee?{next:q,error:Q,complete:ee}:q;return W?(0,f.e)((Y,G)=>{var re;null===(re=W.subscribe)||void 0===re||re.call(W);let oe=!0;Y.subscribe((0,L.x)(G,ie=>{var ae;null===(ae=W.next)||void 0===ae||ae.call(W,ie),G.next(ie)},()=>{var ie;oe=!1,null===(ie=W.complete)||void 0===ie||ie.call(W),G.complete()},ie=>{var ae;oe=!1,null===(ae=W.error)||void 0===ae||ae.call(W,ie),G.error(ie)},()=>{var ie,ae;oe&&(null===(ie=W.unsubscribe)||void 0===ie||ie.call(W)),null===(ae=W.finalize)||void 0===ae||ae.call(W)}))}):F.y}},8068:(N,z,E)=>{"use strict";E.d(z,{T:()=>F});var M=E(6805),f=E(4482),L=E(5403);function F(q=B){return(0,f.e)((Q,ee)=>{let W=!1;Q.subscribe((0,L.x)(ee,Y=>{W=!0,ee.next(Y)},()=>W?ee.complete():ee.error(q())))})}function B(){return new M.K}},7414:(N,z,E)=>{"use strict";E.d(z,{V:()=>W});var M=E(4986),f=E(1165),L=E(4482),F=E(8421),B=E(3888),q=E(5403),Q=E(9672);const ee=(0,B.d)(G=>function(oe=null){G(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=oe});function W(G,re){const{first:oe,each:ie,with:ae=Y,scheduler:he=re??M.z,meta:fe=null}=(0,f.q)(G)?{first:G}:"number"==typeof G?{each:G}:G;if(null==oe&&null==ie)throw new TypeError("No timeout provided.");return(0,L.e)((_e,Oe)=>{let je,Ae,Ce=null,xe=0;const Je=Re=>{Ae=(0,Q.f)(Oe,he,()=>{try{je.unsubscribe(),(0,F.Xf)(ae({meta:fe,lastValue:Ce,seen:xe})).subscribe(Oe)}catch(De){Oe.error(De)}},Re)};je=_e.subscribe((0,q.x)(Oe,Re=>{Ae?.unsubscribe(),xe++,Oe.next(Ce=Re),ie>0&&Je(ie)},void 0,void 0,()=>{Ae?.closed||Ae?.unsubscribe(),Ce=null})),!xe&&Je(null!=oe?"number"==typeof oe?oe:+oe-he.now():ie)})}function Y(G){throw new ee(G)}},4408:(N,z,E)=>{"use strict";E.d(z,{o:()=>B});var M=E(727);class f extends M.w0{constructor(Q,ee){super()}schedule(Q,ee=0){return this}}const L={setInterval(q,Q,...ee){const{delegate:W}=L;return W?.setInterval?W.setInterval(q,Q,...ee):setInterval(q,Q,...ee)},clearInterval(q){const{delegate:Q}=L;return(Q?.clearInterval||clearInterval)(q)},delegate:void 0};var F=E(8737);class B extends f{constructor(Q,ee){super(Q,ee),this.scheduler=Q,this.work=ee,this.pending=!1}schedule(Q,ee=0){if(this.closed)return this;this.state=Q;const W=this.id,Y=this.scheduler;return null!=W&&(this.id=this.recycleAsyncId(Y,W,ee)),this.pending=!0,this.delay=ee,this.id=this.id||this.requestAsyncId(Y,this.id,ee),this}requestAsyncId(Q,ee,W=0){return L.setInterval(Q.flush.bind(Q,this),W)}recycleAsyncId(Q,ee,W=0){if(null!=W&&this.delay===W&&!1===this.pending)return ee;L.clearInterval(ee)}execute(Q,ee){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const W=this._execute(Q,ee);if(W)return W;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(Q,ee){let Y,W=!1;try{this.work(Q)}catch(G){W=!0,Y=G||new Error("Scheduled action threw falsy error")}if(W)return this.unsubscribe(),Y}unsubscribe(){if(!this.closed){const{id:Q,scheduler:ee}=this,{actions:W}=ee;this.work=this.state=this.scheduler=null,this.pending=!1,(0,F.P)(W,this),null!=Q&&(this.id=this.recycleAsyncId(ee,Q,null)),this.delay=null,super.unsubscribe()}}}},7565:(N,z,E)=>{"use strict";E.d(z,{v:()=>L});var M=E(6063);class f{constructor(B,q=f.now){this.schedulerActionCtor=B,this.now=q}schedule(B,q=0,Q){return new this.schedulerActionCtor(this,B).schedule(Q,q)}}f.now=M.l.now;class L extends f{constructor(B,q=f.now){super(B,q),this.actions=[],this._active=!1,this._scheduled=void 0}flush(B){const{actions:q}=this;if(this._active)return void q.push(B);let Q;this._active=!0;do{if(Q=B.execute(B.state,B.delay))break}while(B=q.shift());if(this._active=!1,Q){for(;B=q.shift();)B.unsubscribe();throw Q}}}},4986:(N,z,E)=>{"use strict";E.d(z,{P:()=>F,z:()=>L});var M=E(4408);const L=new(E(7565).v)(M.o),F=L},6063:(N,z,E)=>{"use strict";E.d(z,{l:()=>M});const M={now:()=>(M.delegate||Date).now(),delegate:void 0}},3410:(N,z,E)=>{"use strict";E.d(z,{z:()=>M});const M={setTimeout(f,L,...F){const{delegate:B}=M;return B?.setTimeout?B.setTimeout(f,L,...F):setTimeout(f,L,...F)},clearTimeout(f){const{delegate:L}=M;return(L?.clearTimeout||clearTimeout)(f)},delegate:void 0}},2202:(N,z,E)=>{"use strict";E.d(z,{h:()=>f});const f=function M(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(N,z,E)=>{"use strict";E.d(z,{L:()=>M});const M="function"==typeof Symbol&&Symbol.observable||"@@observable"},6805:(N,z,E)=>{"use strict";E.d(z,{K:()=>f});const f=(0,E(3888).d)(L=>function(){L(this),this.name="EmptyError",this.message="no elements in sequence"})},3269:(N,z,E)=>{"use strict";E.d(z,{_6:()=>q,jO:()=>F,yG:()=>B});var M=E(576),f=E(3532);function L(Q){return Q[Q.length-1]}function F(Q){return(0,M.m)(L(Q))?Q.pop():void 0}function B(Q){return(0,f.K)(L(Q))?Q.pop():void 0}function q(Q,ee){return"number"==typeof L(Q)?Q.pop():ee}},4742:(N,z,E)=>{"use strict";E.d(z,{D:()=>B});const{isArray:M}=Array,{getPrototypeOf:f,prototype:L,keys:F}=Object;function B(Q){if(1===Q.length){const ee=Q[0];if(M(ee))return{args:ee,keys:null};if(function q(Q){return Q&&"object"==typeof Q&&f(Q)===L}(ee)){const W=F(ee);return{args:W.map(Y=>ee[Y]),keys:W}}}return{args:Q,keys:null}}},8737:(N,z,E)=>{"use strict";function M(f,L){if(f){const F=f.indexOf(L);0<=F&&f.splice(F,1)}}E.d(z,{P:()=>M})},3888:(N,z,E)=>{"use strict";function M(f){const F=f(B=>{Error.call(B),B.stack=(new Error).stack});return F.prototype=Object.create(Error.prototype),F.prototype.constructor=F,F}E.d(z,{d:()=>M})},1810:(N,z,E)=>{"use strict";function M(f,L){return f.reduce((F,B,q)=>(F[B]=L[q],F),{})}E.d(z,{n:()=>M})},2806:(N,z,E)=>{"use strict";E.d(z,{O:()=>F,x:()=>L});var M=E(2416);let f=null;function L(B){if(M.v.useDeprecatedSynchronousErrorHandling){const q=!f;if(q&&(f={errorThrown:!1,error:null}),B(),q){const{errorThrown:Q,error:ee}=f;if(f=null,Q)throw ee}}else B()}function F(B){M.v.useDeprecatedSynchronousErrorHandling&&f&&(f.errorThrown=!0,f.error=B)}},9672:(N,z,E)=>{"use strict";function M(f,L,F,B=0,q=!1){const Q=L.schedule(function(){F(),q?f.add(this.schedule(null,B)):this.unsubscribe()},B);if(f.add(Q),!q)return Q}E.d(z,{f:()=>M})},4671:(N,z,E)=>{"use strict";function M(f){return f}E.d(z,{y:()=>M})},1144:(N,z,E)=>{"use strict";E.d(z,{z:()=>M});const M=f=>f&&"number"==typeof f.length&&"function"!=typeof f},2206:(N,z,E)=>{"use strict";E.d(z,{D:()=>f});var M=E(576);function f(L){return Symbol.asyncIterator&&(0,M.m)(L?.[Symbol.asyncIterator])}},1165:(N,z,E)=>{"use strict";function M(f){return f instanceof Date&&!isNaN(f)}E.d(z,{q:()=>M})},576:(N,z,E)=>{"use strict";function M(f){return"function"==typeof f}E.d(z,{m:()=>M})},3670:(N,z,E)=>{"use strict";E.d(z,{c:()=>L});var M=E(8822),f=E(576);function L(F){return(0,f.m)(F[M.L])}},6495:(N,z,E)=>{"use strict";E.d(z,{T:()=>L});var M=E(2202),f=E(576);function L(F){return(0,f.m)(F?.[M.h])}},8239:(N,z,E)=>{"use strict";E.d(z,{t:()=>f});var M=E(576);function f(L){return(0,M.m)(L?.then)}},3260:(N,z,E)=>{"use strict";E.d(z,{L:()=>F,Q:()=>L});var M=E(655),f=E(576);function L(B){return(0,M.FC)(this,arguments,function*(){const Q=B.getReader();try{for(;;){const{value:ee,done:W}=yield(0,M.qq)(Q.read());if(W)return yield(0,M.qq)(void 0);yield yield(0,M.qq)(ee)}}finally{Q.releaseLock()}})}function F(B){return(0,f.m)(B?.getReader)}},3532:(N,z,E)=>{"use strict";E.d(z,{K:()=>f});var M=E(576);function f(L){return L&&(0,M.m)(L.schedule)}},4482:(N,z,E)=>{"use strict";E.d(z,{A:()=>f,e:()=>L});var M=E(576);function f(F){return(0,M.m)(F?.lift)}function L(F){return B=>{if(f(B))return B.lift(function(q){try{return F(q,this)}catch(Q){this.error(Q)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(N,z,E)=>{"use strict";E.d(z,{Z:()=>F});var M=E(4004);const{isArray:f}=Array;function F(B){return(0,M.U)(q=>function L(B,q){return f(q)?B(...q):B(q)}(B,q))}},5032:(N,z,E)=>{"use strict";function M(){}E.d(z,{Z:()=>M})},9635:(N,z,E)=>{"use strict";E.d(z,{U:()=>L,z:()=>f});var M=E(4671);function f(...F){return L(F)}function L(F){return 0===F.length?M.y:1===F.length?F[0]:function(q){return F.reduce((Q,ee)=>ee(Q),q)}}},7849:(N,z,E)=>{"use strict";E.d(z,{h:()=>L});var M=E(2416),f=E(3410);function L(F){f.z.setTimeout(()=>{const{onUnhandledError:B}=M.v;if(!B)throw F;B(F)})}},4532:(N,z,E)=>{"use strict";function M(f){return new TypeError(`You provided ${null!==f&&"object"==typeof f?"an invalid object":`'${f}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}E.d(z,{z:()=>M})},655:(N,z,E)=>{"use strict";function ee(le,ce,ge,pe){return new(ge||(ge=Promise))(function(Pe,dt){function Tt(Di){try{Fe(pe.next(Di))}catch($n){dt($n)}}function Ot(Di){try{Fe(pe.throw(Di))}catch($n){dt($n)}}function Fe(Di){Di.done?Pe(Di.value):function Ve(Pe){return Pe instanceof ge?Pe:new ge(function(dt){dt(Pe)})}(Di.value).then(Tt,Ot)}Fe((pe=pe.apply(le,ce||[])).next())})}function fe(le){return this instanceof fe?(this.v=le,this):new fe(le)}function _e(le,ce,ge){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Ve,pe=ge.apply(le,ce||[]),Pe=[];return Ve={},dt("next"),dt("throw"),dt("return"),Ve[Symbol.asyncIterator]=function(){return this},Ve;function dt(Wt){pe[Wt]&&(Ve[Wt]=function(Dt){return new Promise(function(vn,oi){Pe.push([Wt,Dt,vn,oi])>1||Tt(Wt,Dt)})})}function Tt(Wt,Dt){try{!function Ot(Wt){Wt.value instanceof fe?Promise.resolve(Wt.value.v).then(Fe,Di):$n(Pe[0][2],Wt)}(pe[Wt](Dt))}catch(vn){$n(Pe[0][3],vn)}}function Fe(Wt){Tt("next",Wt)}function Di(Wt){Tt("throw",Wt)}function $n(Wt,Dt){Wt(Dt),Pe.shift(),Pe.length&&Tt(Pe[0][0],Pe[0][1])}}function je(le){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ge,ce=le[Symbol.asyncIterator];return ce?ce.call(le):(le=function re(le){var ce="function"==typeof Symbol&&Symbol.iterator,ge=ce&&le[ce],pe=0;if(ge)return ge.call(le);if(le&&"number"==typeof le.length)return{next:function(){return le&&pe>=le.length&&(le=void 0),{value:le&&le[pe++],done:!le}}};throw new TypeError(ce?"Object is not iterable.":"Symbol.iterator is not defined.")}(le),ge={},pe("next"),pe("throw"),pe("return"),ge[Symbol.asyncIterator]=function(){return this},ge);function pe(Pe){ge[Pe]=le[Pe]&&function(dt){return new Promise(function(Tt,Ot){!function Ve(Pe,dt,Tt,Ot){Promise.resolve(Ot).then(function(Fe){Pe({value:Fe,done:Tt})},dt)}(Tt,Ot,(dt=le[Pe](dt)).done,dt.value)})}}}E.d(z,{FC:()=>_e,KL:()=>je,mG:()=>ee,qq:()=>fe})},6895:(N,z,E)=>{"use strict";E.d(z,{Do:()=>je,EM:()=>si,HT:()=>B,JF:()=>Bt,K0:()=>Q,Mx:()=>Iu,NF:()=>mc,O5:()=>Ii,Ov:()=>Uf,PC:()=>Ff,RF:()=>ta,S$:()=>fe,V_:()=>Y,Ye:()=>Ae,b0:()=>Oe,bD:()=>wt,ez:()=>xr,mk:()=>fc,n9:()=>Xi,q:()=>L,sg:()=>Ar,w_:()=>q});var M=E(4650);let f=null;function L(){return f}function B(P){f||(f=P)}class q{}const Q=new M.OlP("DocumentToken");let ee=(()=>{class P{historyGo(I){throw new Error("Not implemented")}}return P.\u0275fac=function(I){return new(I||P)},P.\u0275prov=M.Yz7({token:P,factory:function(){return function W(){return(0,M.LFG)(G)}()},providedIn:"platform"}),P})();const Y=new M.OlP("Location Initialized");let G=(()=>{class P extends ee{constructor(I){super(),this._doc=I,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return L().getBaseHref(this._doc)}onPopState(I){const j=L().getGlobalEventTarget(this._doc,"window");return j.addEventListener("popstate",I,!1),()=>j.removeEventListener("popstate",I)}onHashChange(I){const j=L().getGlobalEventTarget(this._doc,"window");return j.addEventListener("hashchange",I,!1),()=>j.removeEventListener("hashchange",I)}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(I){this.location.pathname=I}pushState(I,j,ne){re()?this._history.pushState(I,j,ne):this.location.hash=ne}replaceState(I,j,ne){re()?this._history.replaceState(I,j,ne):this.location.hash=ne}forward(){this._history.forward()}back(){this._history.back()}historyGo(I=0){this._history.go(I)}getState(){return this._history.state}}return P.\u0275fac=function(I){return new(I||P)(M.LFG(Q))},P.\u0275prov=M.Yz7({token:P,factory:function(){return function oe(){return new G((0,M.LFG)(Q))}()},providedIn:"platform"}),P})();function re(){return!!window.history.pushState}function ie(P,O){if(0==P.length)return O;if(0==O.length)return P;let I=0;return P.endsWith("/")&&I++,O.startsWith("/")&&I++,2==I?P+O.substring(1):1==I?P+O:P+"/"+O}function ae(P){const O=P.match(/#|\?|$/),I=O&&O.index||P.length;return P.slice(0,I-("/"===P[I-1]?1:0))+P.slice(I)}function he(P){return P&&"?"!==P[0]?"?"+P:P}let fe=(()=>{class P{historyGo(I){throw new Error("Not implemented")}}return P.\u0275fac=function(I){return new(I||P)},P.\u0275prov=M.Yz7({token:P,factory:function(){return(0,M.f3M)(Oe)},providedIn:"root"}),P})();const _e=new M.OlP("appBaseHref");let Oe=(()=>{class P extends fe{constructor(I,j){super(),this._platformLocation=I,this._removeListenerFns=[],this._baseHref=j??this._platformLocation.getBaseHrefFromDOM()??(0,M.f3M)(Q).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(I){this._removeListenerFns.push(this._platformLocation.onPopState(I),this._platformLocation.onHashChange(I))}getBaseHref(){return this._baseHref}prepareExternalUrl(I){return ie(this._baseHref,I)}path(I=!1){const j=this._platformLocation.pathname+he(this._platformLocation.search),ne=this._platformLocation.hash;return ne&&I?`${j}${ne}`:j}pushState(I,j,ne,me){const de=this.prepareExternalUrl(ne+he(me));this._platformLocation.pushState(I,j,de)}replaceState(I,j,ne,me){const de=this.prepareExternalUrl(ne+he(me));this._platformLocation.replaceState(I,j,de)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(I=0){this._platformLocation.historyGo?.(I)}}return P.\u0275fac=function(I){return new(I||P)(M.LFG(ee),M.LFG(_e,8))},P.\u0275prov=M.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"}),P})(),je=(()=>{class P extends fe{constructor(I,j){super(),this._platformLocation=I,this._baseHref="",this._removeListenerFns=[],null!=j&&(this._baseHref=j)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(I){this._removeListenerFns.push(this._platformLocation.onPopState(I),this._platformLocation.onHashChange(I))}getBaseHref(){return this._baseHref}path(I=!1){let j=this._platformLocation.hash;return null==j&&(j="#"),j.length>0?j.substring(1):j}prepareExternalUrl(I){const j=ie(this._baseHref,I);return j.length>0?"#"+j:j}pushState(I,j,ne,me){let de=this.prepareExternalUrl(ne+he(me));0==de.length&&(de=this._platformLocation.pathname),this._platformLocation.pushState(I,j,de)}replaceState(I,j,ne,me){let de=this.prepareExternalUrl(ne+he(me));0==de.length&&(de=this._platformLocation.pathname),this._platformLocation.replaceState(I,j,de)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(I=0){this._platformLocation.historyGo?.(I)}}return P.\u0275fac=function(I){return new(I||P)(M.LFG(ee),M.LFG(_e,8))},P.\u0275prov=M.Yz7({token:P,factory:P.\u0275fac}),P})(),Ae=(()=>{class P{constructor(I){this._subject=new M.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=I;const j=this._locationStrategy.getBaseHref();this._baseHref=ae(Je(j)),this._locationStrategy.onPopState(ne=>{this._subject.emit({url:this.path(!0),pop:!0,state:ne.state,type:ne.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(I=!1){return this.normalize(this._locationStrategy.path(I))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(I,j=""){return this.path()==this.normalize(I+he(j))}normalize(I){return P.stripTrailingSlash(function xe(P,O){return P&&O.startsWith(P)?O.substring(P.length):O}(this._baseHref,Je(I)))}prepareExternalUrl(I){return I&&"/"!==I[0]&&(I="/"+I),this._locationStrategy.prepareExternalUrl(I)}go(I,j="",ne=null){this._locationStrategy.pushState(ne,"",I,j),this._notifyUrlChangeListeners(this.prepareExternalUrl(I+he(j)),ne)}replaceState(I,j="",ne=null){this._locationStrategy.replaceState(ne,"",I,j),this._notifyUrlChangeListeners(this.prepareExternalUrl(I+he(j)),ne)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(I=0){this._locationStrategy.historyGo?.(I)}onUrlChange(I){return this._urlChangeListeners.push(I),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(j=>{this._notifyUrlChangeListeners(j.url,j.state)})),()=>{const j=this._urlChangeListeners.indexOf(I);this._urlChangeListeners.splice(j,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(I="",j){this._urlChangeListeners.forEach(ne=>ne(I,j))}subscribe(I,j,ne){return this._subject.subscribe({next:I,error:j,complete:ne})}}return P.normalizeQueryParams=he,P.joinWithSlash=ie,P.stripTrailingSlash=ae,P.\u0275fac=function(I){return new(I||P)(M.LFG(fe))},P.\u0275prov=M.Yz7({token:P,factory:function(){return function Ce(){return new Ae((0,M.LFG)(fe))}()},providedIn:"root"}),P})();function Je(P){return P.replace(/\/index.html$/,"")}function Iu(P,O){O=encodeURIComponent(O);for(const I of P.split(";")){const j=I.indexOf("="),[ne,me]=-1==j?[I,""]:[I.slice(0,j),I.slice(j+1)];if(ne.trim()===O)return decodeURIComponent(me)}return null}let fc=(()=>{class P{constructor(I,j,ne,me){this._iterableDiffers=I,this._keyValueDiffers=j,this._ngEl=ne,this._renderer=me,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(I){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof I?I.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(I){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof I?I.split(/\s+/):I,this._rawClass&&((0,M.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const I=this._iterableDiffer.diff(this._rawClass);I&&this._applyIterableChanges(I)}else if(this._keyValueDiffer){const I=this._keyValueDiffer.diff(this._rawClass);I&&this._applyKeyValueChanges(I)}}_applyKeyValueChanges(I){I.forEachAddedItem(j=>this._toggleClass(j.key,j.currentValue)),I.forEachChangedItem(j=>this._toggleClass(j.key,j.currentValue)),I.forEachRemovedItem(j=>{j.previousValue&&this._toggleClass(j.key,!1)})}_applyIterableChanges(I){I.forEachAddedItem(j=>{if("string"!=typeof j.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,M.AaK)(j.item)}`);this._toggleClass(j.item,!0)}),I.forEachRemovedItem(j=>this._toggleClass(j.item,!1))}_applyClasses(I){I&&(Array.isArray(I)||I instanceof Set?I.forEach(j=>this._toggleClass(j,!0)):Object.keys(I).forEach(j=>this._toggleClass(j,!!I[j])))}_removeClasses(I){I&&(Array.isArray(I)||I instanceof Set?I.forEach(j=>this._toggleClass(j,!1)):Object.keys(I).forEach(j=>this._toggleClass(j,!1)))}_toggleClass(I,j){(I=I.trim())&&I.split(/\s+/g).forEach(ne=>{j?this._renderer.addClass(this._ngEl.nativeElement,ne):this._renderer.removeClass(this._ngEl.nativeElement,ne)})}}return P.\u0275fac=function(I){return new(I||P)(M.Y36(M.ZZ4),M.Y36(M.aQg),M.Y36(M.SBq),M.Y36(M.Qsj))},P.\u0275dir=M.lG2({type:P,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),P})();class ea{constructor(O,I,j,ne){this.$implicit=O,this.ngForOf=I,this.index=j,this.count=ne}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 Ar=(()=>{class P{constructor(I,j,ne){this._viewContainer=I,this._template=j,this._differs=ne,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(I){this._ngForOf=I,this._ngForOfDirty=!0}set ngForTrackBy(I){this._trackByFn=I}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(I){I&&(this._template=I)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const I=this._ngForOf;!this._differ&&I&&(this._differ=this._differs.find(I).create(this.ngForTrackBy))}if(this._differ){const I=this._differ.diff(this._ngForOf);I&&this._applyChanges(I)}}_applyChanges(I){const j=this._viewContainer;I.forEachOperation((ne,me,de)=>{if(null==ne.previousIndex)j.createEmbeddedView(this._template,new ea(ne.item,this._ngForOf,-1,-1),null===de?void 0:de);else if(null==de)j.remove(null===me?void 0:me);else if(null!==me){const Ge=j.get(me);j.move(Ge,de),bi(Ge,ne)}});for(let ne=0,me=j.length;ne{bi(j.get(ne.currentIndex),ne)})}static ngTemplateContextGuard(I,j){return!0}}return P.\u0275fac=function(I){return new(I||P)(M.Y36(M.s_b),M.Y36(M.Rgc),M.Y36(M.ZZ4))},P.\u0275dir=M.lG2({type:P,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),P})();function bi(P,O){P.context.$implicit=O.item}let Ii=(()=>{class P{constructor(I,j){this._viewContainer=I,this._context=new cn,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=j}set ngIf(I){this._context.$implicit=this._context.ngIf=I,this._updateView()}set ngIfThen(I){Ps("ngIfThen",I),this._thenTemplateRef=I,this._thenViewRef=null,this._updateView()}set ngIfElse(I){Ps("ngIfElse",I),this._elseTemplateRef=I,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(I,j){return!0}}return P.\u0275fac=function(I){return new(I||P)(M.Y36(M.s_b),M.Y36(M.Rgc))},P.\u0275dir=M.lG2({type:P,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),P})();class cn{constructor(){this.$implicit=null,this.ngIf=null}}function Ps(P,O){if(O&&!O.createEmbeddedView)throw new Error(`${P} must be a TemplateRef, but received '${(0,M.AaK)(O)}'.`)}class Ga{constructor(O,I){this._viewContainerRef=O,this._templateRef=I,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(O){O&&!this._created?this.create():!O&&this._created&&this.destroy()}}let ta=(()=>{class P{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(I){this._ngSwitch=I,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(I){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(I)}_matchCase(I){const j=I==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||j,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),j}_updateDefaultCases(I){if(this._defaultViews&&I!==this._defaultUsed){this._defaultUsed=I;for(let j=0;j{class P{constructor(I,j,ne){this.ngSwitch=ne,ne._addCase(),this._view=new Ga(I,j)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return P.\u0275fac=function(I){return new(I||P)(M.Y36(M.s_b),M.Y36(M.Rgc),M.Y36(ta,9))},P.\u0275dir=M.lG2({type:P,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),P})(),Ff=(()=>{class P{constructor(I,j,ne){this._ngEl=I,this._differs=j,this._renderer=ne,this._ngStyle=null,this._differ=null}set ngStyle(I){this._ngStyle=I,!this._differ&&I&&(this._differ=this._differs.find(I).create())}ngDoCheck(){if(this._differ){const I=this._differ.diff(this._ngStyle);I&&this._applyChanges(I)}}_setStyle(I,j){const[ne,me]=I.split("."),de=-1===ne.indexOf("-")?void 0:M.JOm.DashCase;null!=j?this._renderer.setStyle(this._ngEl.nativeElement,ne,me?`${j}${me}`:j,de):this._renderer.removeStyle(this._ngEl.nativeElement,ne,de)}_applyChanges(I){I.forEachRemovedItem(j=>this._setStyle(j.key,null)),I.forEachAddedItem(j=>this._setStyle(j.key,j.currentValue)),I.forEachChangedItem(j=>this._setStyle(j.key,j.currentValue))}}return P.\u0275fac=function(I){return new(I||P)(M.Y36(M.SBq),M.Y36(M.aQg),M.Y36(M.Qsj))},P.\u0275dir=M.lG2({type:P,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),P})();class BC{createSubscription(O,I){return O.subscribe({next:I,error:j=>{throw j}})}dispose(O){O.unsubscribe()}}class OC{createSubscription(O,I){return O.then(I,j=>{throw j})}dispose(O){}}const LC=new OC,jC=new BC;let Uf=(()=>{class P{constructor(I){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=I}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(I){return this._obj?I!==this._obj?(this._dispose(),this.transform(I)):this._latestValue:(I&&this._subscribe(I),this._latestValue)}_subscribe(I){this._obj=I,this._strategy=this._selectStrategy(I),this._subscription=this._strategy.createSubscription(I,j=>this._updateLatestValue(I,j))}_selectStrategy(I){if((0,M.QGY)(I))return LC;if((0,M.F4k)(I))return jC;throw function Tn(P,O){return new M.vHH(2100,!1)}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(I,j){I===this._obj&&(this._latestValue=j,this._ref.markForCheck())}}return P.\u0275fac=function(I){return new(I||P)(M.Y36(M.sBO,16))},P.\u0275pipe=M.Yjl({name:"async",type:P,pure:!1,standalone:!0}),P})(),xr=(()=>{class P{}return P.\u0275fac=function(I){return new(I||P)},P.\u0275mod=M.oAB({type:P}),P.\u0275inj=M.cJS({}),P})();const wt="browser";function mc(P){return P===wt}let si=(()=>{class P{}return P.\u0275prov=(0,M.Yz7)({token:P,providedIn:"root",factory:()=>new Vt((0,M.LFG)(Q),window)}),P})();class Vt{constructor(O,I){this.document=O,this.window=I,this.offset=()=>[0,0]}setOffset(O){this.offset=Array.isArray(O)?()=>O:O}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(O){this.supportsScrolling()&&this.window.scrollTo(O[0],O[1])}scrollToAnchor(O){if(!this.supportsScrolling())return;const I=function un(P,O){const I=P.getElementById(O)||P.getElementsByName(O)[0];if(I)return I;if("function"==typeof P.createTreeWalker&&P.body&&(P.body.createShadowRoot||P.body.attachShadow)){const j=P.createTreeWalker(P.body,NodeFilter.SHOW_ELEMENT);let ne=j.currentNode;for(;ne;){const me=ne.shadowRoot;if(me){const de=me.getElementById(O)||me.querySelector(`[name="${O}"]`);if(de)return de}ne=j.nextNode()}}return null}(this.document,O);I&&(this.scrollToElement(I),I.focus())}setHistoryScrollRestoration(O){if(this.supportScrollRestoration()){const I=this.window.history;I&&I.scrollRestoration&&(I.scrollRestoration=O)}}scrollToElement(O){const I=O.getBoundingClientRect(),j=I.left+this.window.pageXOffset,ne=I.top+this.window.pageYOffset,me=this.offset();this.window.scrollTo(j-me[0],ne-me[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const O=Sn(this.window.history)||Sn(Object.getPrototypeOf(this.window.history));return!(!O||!O.writable&&!O.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function Sn(P){return Object.getOwnPropertyDescriptor(P,"scrollRestoration")}class Bt{}},529:(N,z,E)=>{"use strict";E.d(z,{JF:()=>Ru,LE:()=>_e,TP:()=>Tt,WM:()=>Y,Zn:()=>ge,eN:()=>Pe,qT:()=>je});var M=E(6895),f=E(4650),L=E(9646),F=E(9751),B=E(4351),q=E(9300),Q=E(4004);class ee{}class W{}class Y{constructor(X){this.normalizedNames=new Map,this.lazyUpdate=null,X?this.lazyInit="string"==typeof X?()=>{this.headers=new Map,X.split("\n").forEach($=>{const ue=$.indexOf(":");if(ue>0){const Ee=$.slice(0,ue),nt=Ee.toLowerCase(),ut=$.slice(ue+1).trim();this.maybeSetNormalizedName(Ee,nt),this.headers.has(nt)?this.headers.get(nt).push(ut):this.headers.set(nt,[ut])}})}:()=>{this.headers=new Map,Object.keys(X).forEach($=>{let ue=X[$];const Ee=$.toLowerCase();"string"==typeof ue&&(ue=[ue]),ue.length>0&&(this.headers.set(Ee,ue),this.maybeSetNormalizedName($,Ee))})}:this.headers=new Map}has(X){return this.init(),this.headers.has(X.toLowerCase())}get(X){this.init();const $=this.headers.get(X.toLowerCase());return $&&$.length>0?$[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(X){return this.init(),this.headers.get(X.toLowerCase())||null}append(X,$){return this.clone({name:X,value:$,op:"a"})}set(X,$){return this.clone({name:X,value:$,op:"s"})}delete(X,$){return this.clone({name:X,value:$,op:"d"})}maybeSetNormalizedName(X,$){this.normalizedNames.has($)||this.normalizedNames.set($,X)}init(){this.lazyInit&&(this.lazyInit instanceof Y?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(X=>this.applyUpdate(X)),this.lazyUpdate=null))}copyFrom(X){X.init(),Array.from(X.headers.keys()).forEach($=>{this.headers.set($,X.headers.get($)),this.normalizedNames.set($,X.normalizedNames.get($))})}clone(X){const $=new Y;return $.lazyInit=this.lazyInit&&this.lazyInit instanceof Y?this.lazyInit:this,$.lazyUpdate=(this.lazyUpdate||[]).concat([X]),$}applyUpdate(X){const $=X.name.toLowerCase();switch(X.op){case"a":case"s":let ue=X.value;if("string"==typeof ue&&(ue=[ue]),0===ue.length)return;this.maybeSetNormalizedName(X.name,$);const Ee=("a"===X.op?this.headers.get($):void 0)||[];Ee.push(...ue),this.headers.set($,Ee);break;case"d":const nt=X.value;if(nt){let ut=this.headers.get($);if(!ut)return;ut=ut.filter(ze=>-1===nt.indexOf(ze)),0===ut.length?(this.headers.delete($),this.normalizedNames.delete($)):this.headers.set($,ut)}else this.headers.delete($),this.normalizedNames.delete($)}}forEach(X){this.init(),Array.from(this.normalizedNames.keys()).forEach($=>X(this.normalizedNames.get($),this.headers.get($)))}}class re{encodeKey(X){return he(X)}encodeValue(X){return he(X)}decodeKey(X){return decodeURIComponent(X)}decodeValue(X){return decodeURIComponent(X)}}const ie=/%(\d[a-f0-9])/gi,ae={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function he(ye){return encodeURIComponent(ye).replace(ie,(X,$)=>ae[$]??X)}function fe(ye){return`${ye}`}class _e{constructor(X={}){if(this.updates=null,this.cloneFrom=null,this.encoder=X.encoder||new re,X.fromString){if(X.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function oe(ye,X){const $=new Map;return ye.length>0&&ye.replace(/^\?/,"").split("&").forEach(Ee=>{const nt=Ee.indexOf("="),[ut,ze]=-1==nt?[X.decodeKey(Ee),""]:[X.decodeKey(Ee.slice(0,nt)),X.decodeValue(Ee.slice(nt+1))],Xe=$.get(ut)||[];Xe.push(ze),$.set(ut,Xe)}),$}(X.fromString,this.encoder)}else X.fromObject?(this.map=new Map,Object.keys(X.fromObject).forEach($=>{const ue=X.fromObject[$],Ee=Array.isArray(ue)?ue.map(fe):[fe(ue)];this.map.set($,Ee)})):this.map=null}has(X){return this.init(),this.map.has(X)}get(X){this.init();const $=this.map.get(X);return $?$[0]:null}getAll(X){return this.init(),this.map.get(X)||null}keys(){return this.init(),Array.from(this.map.keys())}append(X,$){return this.clone({param:X,value:$,op:"a"})}appendAll(X){const $=[];return Object.keys(X).forEach(ue=>{const Ee=X[ue];Array.isArray(Ee)?Ee.forEach(nt=>{$.push({param:ue,value:nt,op:"a"})}):$.push({param:ue,value:Ee,op:"a"})}),this.clone($)}set(X,$){return this.clone({param:X,value:$,op:"s"})}delete(X,$){return this.clone({param:X,value:$,op:"d"})}toString(){return this.init(),this.keys().map(X=>{const $=this.encoder.encodeKey(X);return this.map.get(X).map(ue=>$+"="+this.encoder.encodeValue(ue)).join("&")}).filter(X=>""!==X).join("&")}clone(X){const $=new _e({encoder:this.encoder});return $.cloneFrom=this.cloneFrom||this,$.updates=(this.updates||[]).concat(X),$}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(X=>this.map.set(X,this.cloneFrom.map.get(X))),this.updates.forEach(X=>{switch(X.op){case"a":case"s":const $=("a"===X.op?this.map.get(X.param):void 0)||[];$.push(fe(X.value)),this.map.set(X.param,$);break;case"d":if(void 0===X.value){this.map.delete(X.param);break}{let ue=this.map.get(X.param)||[];const Ee=ue.indexOf(fe(X.value));-1!==Ee&&ue.splice(Ee,1),ue.length>0?this.map.set(X.param,ue):this.map.delete(X.param)}}}),this.cloneFrom=this.updates=null)}}class je{constructor(){this.map=new Map}set(X,$){return this.map.set(X,$),this}get(X){return this.map.has(X)||this.map.set(X,X.defaultValue()),this.map.get(X)}delete(X){return this.map.delete(X),this}has(X){return this.map.has(X)}keys(){return this.map.keys()}}function Ce(ye){return typeof ArrayBuffer<"u"&&ye instanceof ArrayBuffer}function xe(ye){return typeof Blob<"u"&&ye instanceof Blob}function Je(ye){return typeof FormData<"u"&&ye instanceof FormData}class De{constructor(X,$,ue,Ee){let nt;if(this.url=$,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=X.toUpperCase(),function Ae(ye){switch(ye){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Ee?(this.body=void 0!==ue?ue:null,nt=Ee):nt=ue,nt&&(this.reportProgress=!!nt.reportProgress,this.withCredentials=!!nt.withCredentials,nt.responseType&&(this.responseType=nt.responseType),nt.headers&&(this.headers=nt.headers),nt.context&&(this.context=nt.context),nt.params&&(this.params=nt.params)),this.headers||(this.headers=new Y),this.context||(this.context=new je),this.params){const ut=this.params.toString();if(0===ut.length)this.urlWithParams=$;else{const ze=$.indexOf("?");this.urlWithParams=$+(-1===ze?"?":ze<$.length-1?"&":"")+ut}}else this.params=new _e,this.urlWithParams=$}serializeBody(){return null===this.body?null:Ce(this.body)||xe(this.body)||Je(this.body)||function Re(ye){return typeof URLSearchParams<"u"&&ye instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof _e?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||Je(this.body)?null:xe(this.body)?this.body.type||null:Ce(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof _e?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(X={}){const $=X.method||this.method,ue=X.url||this.url,Ee=X.responseType||this.responseType,nt=void 0!==X.body?X.body:this.body,ut=void 0!==X.withCredentials?X.withCredentials:this.withCredentials,ze=void 0!==X.reportProgress?X.reportProgress:this.reportProgress;let Xe=X.headers||this.headers,ei=X.params||this.params;const At=X.context??this.context;return void 0!==X.setHeaders&&(Xe=Object.keys(X.setHeaders).reduce((Zi,rt)=>Zi.set(rt,X.setHeaders[rt]),Xe)),X.setParams&&(ei=Object.keys(X.setParams).reduce((Zi,rt)=>Zi.set(rt,X.setParams[rt]),ei)),new De($,ue,nt,{params:ei,headers:Xe,context:At,reportProgress:ze,responseType:Ee,withCredentials:ut})}}var Me=(()=>((Me=Me||{})[Me.Sent=0]="Sent",Me[Me.UploadProgress=1]="UploadProgress",Me[Me.ResponseHeader=2]="ResponseHeader",Me[Me.DownloadProgress=3]="DownloadProgress",Me[Me.Response=4]="Response",Me[Me.User=5]="User",Me))();class le{constructor(X,$=200,ue="OK"){this.headers=X.headers||new Y,this.status=void 0!==X.status?X.status:$,this.statusText=X.statusText||ue,this.url=X.url||null,this.ok=this.status>=200&&this.status<300}}class ce extends le{constructor(X={}){super(X),this.type=Me.ResponseHeader}clone(X={}){return new ce({headers:X.headers||this.headers,status:void 0!==X.status?X.status:this.status,statusText:X.statusText||this.statusText,url:X.url||this.url||void 0})}}class ge extends le{constructor(X={}){super(X),this.type=Me.Response,this.body=void 0!==X.body?X.body:null}clone(X={}){return new ge({body:void 0!==X.body?X.body:this.body,headers:X.headers||this.headers,status:void 0!==X.status?X.status:this.status,statusText:X.statusText||this.statusText,url:X.url||this.url||void 0})}}class pe extends le{constructor(X){super(X,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${X.url||"(unknown url)"}`:`Http failure response for ${X.url||"(unknown url)"}: ${X.status} ${X.statusText}`,this.error=X.error||null}}function Ve(ye,X){return{body:X,headers:ye.headers,context:ye.context,observe:ye.observe,params:ye.params,reportProgress:ye.reportProgress,responseType:ye.responseType,withCredentials:ye.withCredentials}}let Pe=(()=>{class ye{constructor($){this.handler=$}request($,ue,Ee={}){let nt;if($ instanceof De)nt=$;else{let Xe,ei;Xe=Ee.headers instanceof Y?Ee.headers:new Y(Ee.headers),Ee.params&&(ei=Ee.params instanceof _e?Ee.params:new _e({fromObject:Ee.params})),nt=new De($,ue,void 0!==Ee.body?Ee.body:null,{headers:Xe,context:Ee.context,params:ei,reportProgress:Ee.reportProgress,responseType:Ee.responseType||"json",withCredentials:Ee.withCredentials})}const ut=(0,L.of)(nt).pipe((0,B.b)(Xe=>this.handler.handle(Xe)));if($ instanceof De||"events"===Ee.observe)return ut;const ze=ut.pipe((0,q.h)(Xe=>Xe instanceof ge));switch(Ee.observe||"body"){case"body":switch(nt.responseType){case"arraybuffer":return ze.pipe((0,Q.U)(Xe=>{if(null!==Xe.body&&!(Xe.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Xe.body}));case"blob":return ze.pipe((0,Q.U)(Xe=>{if(null!==Xe.body&&!(Xe.body instanceof Blob))throw new Error("Response is not a Blob.");return Xe.body}));case"text":return ze.pipe((0,Q.U)(Xe=>{if(null!==Xe.body&&"string"!=typeof Xe.body)throw new Error("Response is not a string.");return Xe.body}));default:return ze.pipe((0,Q.U)(Xe=>Xe.body))}case"response":return ze;default:throw new Error(`Unreachable: unhandled observe type ${Ee.observe}}`)}}delete($,ue={}){return this.request("DELETE",$,ue)}get($,ue={}){return this.request("GET",$,ue)}head($,ue={}){return this.request("HEAD",$,ue)}jsonp($,ue){return this.request("JSONP",$,{params:(new _e).append(ue,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options($,ue={}){return this.request("OPTIONS",$,ue)}patch($,ue,Ee={}){return this.request("PATCH",$,Ve(Ee,ue))}post($,ue,Ee={}){return this.request("POST",$,Ve(Ee,ue))}put($,ue,Ee={}){return this.request("PUT",$,Ve(Ee,ue))}}return ye.\u0275fac=function($){return new($||ye)(f.LFG(ee))},ye.\u0275prov=f.Yz7({token:ye,factory:ye.\u0275fac}),ye})();class dt{constructor(X,$){this.next=X,this.interceptor=$}handle(X){return this.interceptor.intercept(X,this.next)}}const Tt=new f.OlP("HTTP_INTERCEPTORS");let Ot=(()=>{class ye{intercept($,ue){return ue.handle($)}}return ye.\u0275fac=function($){return new($||ye)},ye.\u0275prov=f.Yz7({token:ye,factory:ye.\u0275fac}),ye})();const Ho=/^\)\]\}',?\n/;let Ro=(()=>{class ye{constructor($){this.xhrFactory=$}handle($){if("JSONP"===$.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new F.y(ue=>{const Ee=this.xhrFactory.build();if(Ee.open($.method,$.urlWithParams),$.withCredentials&&(Ee.withCredentials=!0),$.headers.forEach((Ht,Ut)=>Ee.setRequestHeader(Ht,Ut.join(","))),$.headers.has("Accept")||Ee.setRequestHeader("Accept","application/json, text/plain, */*"),!$.headers.has("Content-Type")){const Ht=$.detectContentTypeHeader();null!==Ht&&Ee.setRequestHeader("Content-Type",Ht)}if($.responseType){const Ht=$.responseType.toLowerCase();Ee.responseType="json"!==Ht?Ht:"text"}const nt=$.serializeBody();let ut=null;const ze=()=>{if(null!==ut)return ut;const Ht=Ee.statusText||"OK",Ut=new Y(Ee.getAllResponseHeaders()),ln=function Hu(ye){return"responseURL"in ye&&ye.responseURL?ye.responseURL:/^X-Request-URL:/m.test(ye.getAllResponseHeaders())?ye.getResponseHeader("X-Request-URL"):null}(Ee)||$.url;return ut=new ce({headers:Ut,status:Ee.status,statusText:Ht,url:ln}),ut},Xe=()=>{let{headers:Ht,status:Ut,statusText:ln,url:Cr}=ze(),gi=null;204!==Ut&&(gi=typeof Ee.response>"u"?Ee.responseText:Ee.response),0===Ut&&(Ut=gi?200:0);let Kr=Ut>=200&&Ut<300;if("json"===$.responseType&&"string"==typeof gi){const Zr=gi;gi=gi.replace(Ho,"");try{gi=""!==gi?JSON.parse(gi):null}catch(Na){gi=Zr,Kr&&(Kr=!1,gi={error:Na,text:gi})}}Kr?(ue.next(new ge({body:gi,headers:Ht,status:Ut,statusText:ln,url:Cr||void 0})),ue.complete()):ue.error(new pe({error:gi,headers:Ht,status:Ut,statusText:ln,url:Cr||void 0}))},ei=Ht=>{const{url:Ut}=ze(),ln=new pe({error:Ht,status:Ee.status||0,statusText:Ee.statusText||"Unknown Error",url:Ut||void 0});ue.error(ln)};let At=!1;const Zi=Ht=>{At||(ue.next(ze()),At=!0);let Ut={type:Me.DownloadProgress,loaded:Ht.loaded};Ht.lengthComputable&&(Ut.total=Ht.total),"text"===$.responseType&&!!Ee.responseText&&(Ut.partialText=Ee.responseText),ue.next(Ut)},rt=Ht=>{let Ut={type:Me.UploadProgress,loaded:Ht.loaded};Ht.lengthComputable&&(Ut.total=Ht.total),ue.next(Ut)};return Ee.addEventListener("load",Xe),Ee.addEventListener("error",ei),Ee.addEventListener("timeout",ei),Ee.addEventListener("abort",ei),$.reportProgress&&(Ee.addEventListener("progress",Zi),null!==nt&&Ee.upload&&Ee.upload.addEventListener("progress",rt)),Ee.send(nt),ue.next({type:Me.Sent}),()=>{Ee.removeEventListener("error",ei),Ee.removeEventListener("abort",ei),Ee.removeEventListener("load",Xe),Ee.removeEventListener("timeout",ei),$.reportProgress&&(Ee.removeEventListener("progress",Zi),null!==nt&&Ee.upload&&Ee.upload.removeEventListener("progress",rt)),Ee.readyState!==Ee.DONE&&Ee.abort()}})}}return ye.\u0275fac=function($){return new($||ye)(f.LFG(M.JF))},ye.\u0275prov=f.Yz7({token:ye,factory:ye.\u0275fac}),ye})();const Qn=new f.OlP("XSRF_COOKIE_NAME"),Yn=new f.OlP("XSRF_HEADER_NAME");class ja{}let Po=(()=>{class ye{constructor($,ue,Ee){this.doc=$,this.platform=ue,this.cookieName=Ee,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const $=this.doc.cookie||"";return $!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,M.Mx)($,this.cookieName),this.lastCookieString=$),this.lastToken}}return ye.\u0275fac=function($){return new($||ye)(f.LFG(M.K0),f.LFG(f.Lbi),f.LFG(Qn))},ye.\u0275prov=f.Yz7({token:ye,factory:ye.\u0275fac}),ye})(),Ke=(()=>{class ye{constructor($,ue){this.tokenService=$,this.headerName=ue}intercept($,ue){const Ee=$.url.toLowerCase();if("GET"===$.method||"HEAD"===$.method||Ee.startsWith("http://")||Ee.startsWith("https://"))return ue.handle($);const nt=this.tokenService.getToken();return null!==nt&&!$.headers.has(this.headerName)&&($=$.clone({headers:$.headers.set(this.headerName,nt)})),ue.handle($)}}return ye.\u0275fac=function($){return new($||ye)(f.LFG(ja),f.LFG(Yn))},ye.\u0275prov=f.Yz7({token:ye,factory:ye.\u0275fac}),ye})(),di=(()=>{class ye{constructor($,ue){this.backend=$,this.injector=ue,this.chain=null}handle($){if(null===this.chain){const ue=this.injector.get(Tt,[]);this.chain=ue.reduceRight((Ee,nt)=>new dt(Ee,nt),this.backend)}return this.chain.handle($)}}return ye.\u0275fac=function($){return new($||ye)(f.LFG(W),f.LFG(f.zs3))},ye.\u0275prov=f.Yz7({token:ye,factory:ye.\u0275fac}),ye})(),Ua=(()=>{class ye{static disable(){return{ngModule:ye,providers:[{provide:Ke,useClass:Ot}]}}static withOptions($={}){return{ngModule:ye,providers:[$.cookieName?{provide:Qn,useValue:$.cookieName}:[],$.headerName?{provide:Yn,useValue:$.headerName}:[]]}}}return ye.\u0275fac=function($){return new($||ye)},ye.\u0275mod=f.oAB({type:ye}),ye.\u0275inj=f.cJS({providers:[Ke,{provide:Tt,useExisting:Ke,multi:!0},{provide:ja,useClass:Po},{provide:Qn,useValue:"XSRF-TOKEN"},{provide:Yn,useValue:"X-XSRF-TOKEN"}]}),ye})(),Ru=(()=>{class ye{}return ye.\u0275fac=function($){return new($||ye)},ye.\u0275mod=f.oAB({type:ye}),ye.\u0275inj=f.cJS({providers:[Pe,{provide:ee,useClass:di},Ro,{provide:W,useExisting:Ro}],imports:[Ua.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),ye})()},4650:(N,z,E)=>{"use strict";E.d(z,{$8M:()=>Yu,$Z:()=>Dh,AFp:()=>Zp,ALo:()=>AA,AaK:()=>ee,AsE:()=>p_,B6R:()=>Cr,BQk:()=>Od,CHM:()=>ra,CRH:()=>ub,CZH:()=>on,CqO:()=>ip,D6c:()=>T0,DdM:()=>mA,Dn7:()=>tb,EJc:()=>pE,EiD:()=>Hm,EpF:()=>Zt,F$t:()=>Cv,F4k:()=>tp,FYo:()=>Lm,FiY:()=>Xs,G48:()=>AE,Gf:()=>db,GfV:()=>Qw,GkF:()=>jn,Gpc:()=>G,Gre:()=>g_,Hsn:()=>np,Ikx:()=>E_,JOm:()=>Vr,JVY:()=>Mw,KtG:()=>er,L6k:()=>Dw,LAX:()=>ym,LFG:()=>li,LSH:()=>Wc,Lbi:()=>Xp,Lck:()=>uA,MAs:()=>gv,MMx:()=>iu,NdJ:()=>Ne,O4$:()=>Fs,OlP:()=>Ft,Oqu:()=>h_,PXZ:()=>o0,Q6J:()=>ep,QGY:()=>vt,QP$:()=>Ql,QbO:()=>ef,Qsj:()=>$w,R0b:()=>Ji,RDi:()=>Aw,Rgc:()=>au,SBq:()=>Xc,Sil:()=>t0,Suo:()=>Op,TTD:()=>ia,TgZ:()=>Vd,Tol:()=>op,Udp:()=>Aa,VKq:()=>gA,WFA:()=>ft,WLB:()=>_A,XFs:()=>Ke,Xpm:()=>ln,Xts:()=>gh,Y36:()=>wl,YKP:()=>$_,YNc:()=>Yg,Yjl:()=>pc,Yz7:()=>Dt,ZZ4:()=>ac,_Bn:()=>W_,_UZ:()=>va,_Vd:()=>ro,_c5:()=>Qb,_uU:()=>Pv,aQg:()=>yu,c2e:()=>e0,cJS:()=>oi,cg1:()=>Ol,d8E:()=>hp,dDg:()=>_E,dqk:()=>ue,eBb:()=>hh,eFA:()=>af,ekj:()=>ap,eoX:()=>ec,f3M:()=>cm,g9A:()=>cu,h0i:()=>ur,hGG:()=>x0,hij:()=>dp,iGM:()=>cb,ifc:()=>$,ip1:()=>Oi,kL8:()=>M_,kcU:()=>Qf,lG2:()=>Pu,lcZ:()=>TA,lqb:()=>Ir,lri:()=>r0,mCW:()=>al,n5z:()=>Wu,n_E:()=>Ip,oAB:()=>Zr,oJD:()=>Rm,oxw:()=>bv,pB0:()=>ph,q3G:()=>ni,qLn:()=>ed,qOj:()=>cs,qZA:()=>Bd,qzn:()=>Yo,rWj:()=>Rb,s9C:()=>mo,sBO:()=>u0,sIi:()=>Id,s_b:()=>Vp,soG:()=>tf,tb:()=>Kl,tp0:()=>$o,uIk:()=>Ml,vHH:()=>ae,vpe:()=>zr,wAp:()=>tt,xDo:()=>f_,xi3:()=>SA,xp6:()=>Eh,ynx:()=>Il,z2F:()=>ka,z3N:()=>ir,zSh:()=>dl,zs3:()=>rr});var M=E(7579),f=E(727),L=E(9751),F=E(6451),B=E(3099);function q(_){for(let b in _)if(_[b]===q)return b;throw Error("Could not find renamed property on target object.")}function Q(_,b){for(const C in b)b.hasOwnProperty(C)&&!_.hasOwnProperty(C)&&(_[C]=b[C])}function ee(_){if("string"==typeof _)return _;if(Array.isArray(_))return"["+_.map(ee).join(", ")+"]";if(null==_)return""+_;if(_.overriddenName)return`${_.overriddenName}`;if(_.name)return`${_.name}`;const b=_.toString();if(null==b)return""+b;const C=b.indexOf("\n");return-1===C?b:b.substring(0,C)}function W(_,b){return null==_||""===_?null===b?"":b:null==b||""===b?_:_+" "+b}const Y=q({__forward_ref__:q});function G(_){return _.__forward_ref__=G,_.toString=function(){return ee(this())},_}function re(_){return oe(_)?_():_}function oe(_){return"function"==typeof _&&_.hasOwnProperty(Y)&&_.__forward_ref__===G}class ae extends Error{constructor(b,C){super(function he(_,b){return`NG0${Math.abs(_)}${b?": "+b.trim():""}`}(b,C)),this.code=b}}function fe(_){return"string"==typeof _?_:null==_?"":String(_)}function Ce(_,b){throw new ae(-201,!1)}function Ot(_,b){null==_&&function Fe(_,b,C,y){throw new Error(`ASSERTION ERROR: ${_}`+(null==y?"":` [Expected=> ${C} ${y} ${b} <=Actual]`))}(b,_,null,"!=")}function Dt(_){return{token:_.token,providedIn:_.providedIn||null,factory:_.factory,value:void 0}}function oi(_){return{providers:_.providers||[],imports:_.imports||[]}}function Jr(_){return hc(_,Qn)||hc(_,ja)}function hc(_,b){return _.hasOwnProperty(b)?_[b]:null}function Ro(_){return _&&(_.hasOwnProperty(Yn)||_.hasOwnProperty(Po))?_[Yn]:null}const Qn=q({\u0275prov:q}),Yn=q({\u0275inj:q}),ja=q({ngInjectableDef:q}),Po=q({ngInjectorDef:q});var Ke=(()=>((Ke=Ke||{})[Ke.Default=0]="Default",Ke[Ke.Host=1]="Host",Ke[Ke.Self=2]="Self",Ke[Ke.SkipSelf=4]="SkipSelf",Ke[Ke.Optional=8]="Optional",Ke))();let di;function Hi(_){const b=di;return di=_,b}function Ua(_,b,C){const y=Jr(_);return y&&"root"==y.providedIn?void 0===y.value?y.value=y.factory():y.value:C&Ke.Optional?null:void 0!==b?b:void Ce(ee(_))}function An(_){return{toString:_}.toString()}var Ti=(()=>((Ti=Ti||{})[Ti.OnPush=0]="OnPush",Ti[Ti.Default=1]="Default",Ti))(),$=(()=>{return(_=$||($={}))[_.Emulated=0]="Emulated",_[_.None=2]="None",_[_.ShadowDom=3]="ShadowDom",$;var _})();const ue=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),ut={},ze=[],Xe=q({\u0275cmp:q}),ei=q({\u0275dir:q}),At=q({\u0275pipe:q}),Zi=q({\u0275mod:q}),rt=q({\u0275fac:q}),Ht=q({__NG_ELEMENT_ID__:q});let Ut=0;function ln(_){return An(()=>{const C=!0===_.standalone,y={},x={type:_.type,providersResolver:null,decls:_.decls,vars:_.vars,factory:null,template:_.template||null,consts:_.consts||null,ngContentSelectors:_.ngContentSelectors,hostBindings:_.hostBindings||null,hostVars:_.hostVars||0,hostAttrs:_.hostAttrs||null,contentQueries:_.contentQueries||null,declaredInputs:y,inputs:null,outputs:null,exportAs:_.exportAs||null,onPush:_.changeDetection===Ti.OnPush,directiveDefs:null,pipeDefs:null,standalone:C,dependencies:C&&_.dependencies||null,getStandaloneInjector:null,selectors:_.selectors||ze,viewQuery:_.viewQuery||null,features:_.features||null,data:_.data||{},encapsulation:_.encapsulation||$.Emulated,id:"c"+Ut++,styles:_.styles||ze,_:null,setInput:null,schemas:_.schemas||null,tView:null},T=_.dependencies,S=_.features;return x.inputs=Io(_.inputs,y),x.outputs=Io(_.outputs),S&&S.forEach(D=>D(x)),x.directiveDefs=T?()=>("function"==typeof T?T():T).map(gi).filter(Kr):null,x.pipeDefs=T?()=>("function"==typeof T?T():T).map(Pi).filter(Kr):null,x})}function Cr(_,b,C){const y=_.\u0275cmp;y.directiveDefs=()=>("function"==typeof b?b():b).map(gi),y.pipeDefs=()=>("function"==typeof C?C():C).map(Pi)}function gi(_){return St(_)||Ri(_)}function Kr(_){return null!==_}function Zr(_){return An(()=>({type:_.type,bootstrap:_.bootstrap||ze,declarations:_.declarations||ze,imports:_.imports||ze,exports:_.exports||ze,transitiveCompileScopes:null,schemas:_.schemas||null,id:_.id||null}))}function Io(_,b){if(null==_)return ut;const C={};for(const y in _)if(_.hasOwnProperty(y)){let x=_[y],T=x;Array.isArray(x)&&(T=x[1],x=x[0]),C[x]=y,b&&(b[x]=T)}return C}const Pu=ln;function pc(_){return{type:_.type,name:_.name,factory:null,pure:!1!==_.pure,standalone:!0===_.standalone,onDestroy:_.type.prototype.ngOnDestroy||null}}function St(_){return _[Xe]||null}function Ri(_){return _[ei]||null}function Pi(_){return _[At]||null}function Gi(_,b){const C=_[Zi]||null;if(!C&&!0===b)throw new Error(`Type ${ee(_)} does not have '\u0275mod' property.`);return C}function Ii(_){return Array.isArray(_)&&"object"==typeof _[1]}function cn(_){return Array.isArray(_)&&!0===_[1]}function Ps(_){return 0!=(8&_.flags)}function Ga(_){return 2==(2&_.flags)}function ta(_){return 1==(1&_.flags)}function Xi(_){return null!==_.template}function Lf(_){return 0!=(256&_[2])}function He(_,b){return _.hasOwnProperty(rt)?_[rt]:null}class ki{constructor(b,C,y){this.previousValue=b,this.currentValue=C,this.firstChange=y}isFirstChange(){return this.firstChange}}function ia(){return Lo}function Lo(_){return _.type.prototype.ngOnChanges&&(_.setInput=Fi),na}function na(){const _=dn(this),b=_?.current;if(b){const C=_.previous;if(C===ut)_.previous=b;else for(let y in b)C[y]=b[y];_.current=null,this.ngOnChanges(b)}}function Fi(_,b,C,y){const x=dn(_)||function Vu(_,b){return _[Xn]=b}(_,{previous:ut,current:null}),T=x.current||(x.current={}),S=x.previous,D=this.declaredInputs[C],H=S[D];T[D]=new ki(H&&H.currentValue,b,S===ut),_[y]=b}ia.ngInherit=!0;const Xn="__ngSimpleChanges__";function dn(_){return _[Xn]||null}function bt(_){for(;Array.isArray(_);)_=_[0];return _}function si(_,b){return bt(b[_])}function Vt(_,b){return bt(b[_.index])}function un(_,b){return _.data[b]}function jt(_,b){return _[b]}function Bt(_,b){const C=b[_];return Ii(C)?C:C[0]}function P(_){return 4==(4&_[2])}function O(_){return 64==(64&_[2])}function j(_,b){return null==b?null:_[b]}function ne(_){_[18]=0}function me(_,b){_[5]+=b;let C=_,y=_[3];for(;null!==y&&(1===b&&1===C[5]||-1===b&&0===C[5]);)y[5]+=b,C=y,y=y[3]}const de={lFrame:js(null),bindingsEnabled:!0};function ui(){return de.bindingsEnabled}function we(){return de.lFrame.lView}function et(){return de.lFrame.tView}function ra(_){return de.lFrame.contextLView=_,_[8]}function er(_){return de.lFrame.contextLView=null,_}function $t(){let _=ks();for(;null!==_&&64===_.type;)_=_.parent;return _}function ks(){return de.lFrame.currentTNode}function Ci(_,b){const C=de.lFrame;C.currentTNode=_,C.isParent=b}function Vs(){return de.lFrame.isParent}function Bu(){de.lFrame.isParent=!1}function Vi(){const _=de.lFrame;let b=_.bindingRootIndex;return-1===b&&(b=_.bindingRootIndex=_.tView.bindingStartIndex),b}function Tr(){return de.lFrame.bindingIndex}function $a(){return de.lFrame.bindingIndex++}function hn(_){const b=de.lFrame,C=b.bindingIndex;return b.bindingIndex=b.bindingIndex+_,C}function Bs(_,b){const C=de.lFrame;C.bindingIndex=C.bindingRootIndex=_,Sr(b)}function Sr(_){de.lFrame.currentDirectiveIndex=_}function Lu(_){const b=de.lFrame.currentDirectiveIndex;return-1===b?null:_[b]}function ju(){return de.lFrame.currentQueryIndex}function Os(_){de.lFrame.currentQueryIndex=_}function WC(_){const b=_[1];return 2===b.type?b.declTNode:1===b.type?_[6]:null}function Ls(_,b,C){if(C&Ke.SkipSelf){let x=b,T=_;for(;!(x=x.parent,null!==x||C&Ke.Host||(x=WC(T),null===x||(T=T[15],10&x.type))););if(null===x)return!1;b=x,_=T}const y=de.lFrame=Fu();return y.currentTNode=b,y.lView=_,!0}function Ya(_){const b=Fu(),C=_[1];de.lFrame=b,b.currentTNode=C.firstChild,b.lView=_,b.tView=C,b.contextLView=_,b.bindingIndex=C.bindingStartIndex,b.inI18n=!1}function Fu(){const _=de.lFrame,b=null===_?null:_.child;return null===b?js(_):b}function js(_){const b={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:_,child:null,inI18n:!1};return null!==_&&(_.child=b),b}function Gf(){const _=de.lFrame;return de.lFrame=_.parent,_.currentTNode=null,_.lView=null,_}const _c=Gf;function jo(){const _=Gf();_.isParent=!0,_.tView=null,_.selectedIndex=-1,_.contextLView=null,_.elementDepthCount=0,_.currentDirectiveIndex=-1,_.currentNamespace=null,_.bindingRootIndex=-1,_.bindingIndex=-1,_.currentQueryIndex=0}function Ni(){return de.lFrame.selectedIndex}function aa(_){de.lFrame.selectedIndex=_}function Kt(){const _=de.lFrame;return un(_.tView,_.selectedIndex)}function Fs(){de.lFrame.currentNamespace="svg"}function Qf(){!function QC(){de.lFrame.currentNamespace=null}()}function Fo(_,b){for(let C=b.directiveStart,y=b.directiveEnd;C=y)break}else b[H]<0&&(_[18]+=65536),(D>11<_[18]>>16&&(3&_[2])===b){_[2]+=2048;try{T.call(D)}finally{}}}else try{T.call(D)}finally{}}class Us{constructor(b,C,y){this.factory=b,this.resolving=!1,this.canSeeViewProviders=C,this.injectImpl=y}}function wc(_,b,C){let y=0;for(;yb){S=T-1;break}}}for(;T<_.length;){const D=_[T];if("number"==typeof D)break;if(D===C){if(null===y)return void(null!==x&&(_[T+1]=x));if(y===_[T+1])return void(_[T+2]=x)}T++,null!==y&&T++,null!==x&&T++}-1!==S&&(_.splice(S,0,b),T=S+1),_.splice(T++,0,C),null!==y&&_.splice(T++,0,y),null!==x&&_.splice(T++,0,x)}function Uo(_){return-1!==_}function No(_){return 32767&_}function qo(_,b){let C=function Nu(_){return _>>16}(_),y=b;for(;C>0;)y=y[15],C--;return y}let Ac=!0;function zs(_){const b=Ac;return Ac=_,b}let Tc=0;const En={};function Gs(_,b){const C=zu(_,b);if(-1!==C)return C;const y=b[1];y.firstCreatePass&&(_.injectorIndex=b.length,qu(y.data,_),qu(b,null),qu(y.blueprint,null));const x=Sc(_,b),T=_.injectorIndex;if(Uo(x)){const S=No(x),D=qo(x,b),H=D[1].data;for(let k=0;k<8;k++)b[T+k]=D[S+k]|H[S+k]}return b[T+8]=x,T}function qu(_,b){_.push(0,0,0,0,0,0,0,0,b)}function zu(_,b){return-1===_.injectorIndex||_.parent&&_.parent.injectorIndex===_.injectorIndex||null===b[_.injectorIndex+8]?-1:_.injectorIndex}function Sc(_,b){if(_.parent&&-1!==_.parent.injectorIndex)return _.parent.injectorIndex;let C=0,y=null,x=b;for(;null!==x;){if(y=Qu(x),null===y)return-1;if(C++,x=x[15],-1!==y.injectorIndex)return y.injectorIndex|C<<16}return-1}function Ec(_,b,C){!function XC(_,b,C){let y;"string"==typeof C?y=C.charCodeAt(0)||0:C.hasOwnProperty(Ht)&&(y=C[Ht]),null==y&&(y=C[Ht]=Tc++);const x=255&y;b.data[_+(x>>5)]|=1<=0?255&b:nm:b}(C);if("function"==typeof T){if(!Ls(b,_,y))return y&Ke.Host?Zf(x,0,y):Xf(b,C,y,x);try{const S=T(y);if(null!=S||y&Ke.Optional)return S;Ce()}finally{_c()}}else if("number"==typeof T){let S=null,D=zu(_,b),H=-1,k=y&Ke.Host?b[16][6]:null;for((-1===D||y&Ke.SkipSelf)&&(H=-1===D?Sc(_,b):b[D+8],-1!==H&&tr(y,!1)?(S=b[1],D=No(H),b=qo(H,b)):D=-1);-1!==D;){const V=b[1];if(Dc(T,D,V.data)){const U=im(D,b,C,S,y,k);if(U!==En)return U}H=b[D+8],-1!==H&&tr(y,b[1].data[D+8]===k)&&Dc(T,D,b)?(S=V,D=No(H),b=qo(H,b)):D=-1}}return x}function im(_,b,C,y,x,T){const S=b[1],D=S.data[_+8],V=Mc(D,S,C,null==y?Ga(D)&&Ac:y!=S&&0!=(3&D.type),x&Ke.Host&&T===D);return null!==V?zo(b,S,V,D):En}function Mc(_,b,C,y,x){const T=_.providerIndexes,S=b.data,D=1048575&T,H=_.directiveStart,V=T>>20,te=x?D+V:_.directiveEnd;for(let se=y?D:D+V;se=H&&be.type===C)return se}if(x){const se=S[H];if(se&&Xi(se)&&se.type===C)return H}return null}function zo(_,b,C,y){let x=_[C];const T=b.data;if(function KC(_){return _ instanceof Us}(x)){const S=x;S.resolving&&function Oe(_,b){const C=b?`. Dependency path: ${b.join(" > ")} > ${_}`:"";throw new ae(-200,`Circular dependency in DI detected for ${_}${C}`)}(function _e(_){return"function"==typeof _?_.name||_.toString():"object"==typeof _&&null!=_&&"function"==typeof _.type?_.type.name||_.type.toString():fe(_)}(T[C]));const D=zs(S.canSeeViewProviders);S.resolving=!0;const H=S.injectImpl?Hi(S.injectImpl):null;Ls(_,y,Ke.Default);try{x=_[C]=S.factory(void 0,T,_,y),b.firstCreatePass&&C>=y.directiveStart&&function JC(_,b,C){const{ngOnChanges:y,ngOnInit:x,ngDoCheck:T}=b.type.prototype;if(y){const S=Lo(b);(C.preOrderHooks||(C.preOrderHooks=[])).push(_,S),(C.preOrderCheckHooks||(C.preOrderCheckHooks=[])).push(_,S)}x&&(C.preOrderHooks||(C.preOrderHooks=[])).push(0-_,x),T&&((C.preOrderHooks||(C.preOrderHooks=[])).push(_,T),(C.preOrderCheckHooks||(C.preOrderCheckHooks=[])).push(_,T))}(C,T[C],b)}finally{null!==H&&Hi(H),zs(D),S.resolving=!1,_c()}}return x}function Dc(_,b,C){return!!(C[b+(_>>5)]&1<<_)}function tr(_,b){return!(_&Ke.Self||_&Ke.Host&&b)}class Mn{constructor(b,C){this._tNode=b,this._lView=C}get(b,C,y){return em(this._tNode,this._lView,b,y,C)}}function nm(){return new Mn($t(),we())}function Wu(_){return An(()=>{const b=_.prototype.constructor,C=b[rt]||$u(b),y=Object.prototype;let x=Object.getPrototypeOf(_.prototype).constructor;for(;x&&x!==y;){const T=x[rt]||$u(x);if(T&&T!==C)return T;x=Object.getPrototypeOf(x)}return T=>new T})}function $u(_){return oe(_)?()=>{const b=$u(re(_));return b&&b()}:He(_)}function Qu(_){const b=_[1],C=b.type;return 2===C?b.declTNode:1===C?_[6]:null}function Yu(_){return function ew(_,b){if("class"===b)return _.classes;if("style"===b)return _.styles;const C=_.attrs;if(C){const y=C.length;let x=0;for(;x{const y=function Ws(_){return function(...C){if(_){const y=_(...C);for(const x in y)this[x]=y[x]}}}(b);function x(...T){if(this instanceof x)return y.apply(this,T),this;const S=new x(...T);return D.annotation=S,D;function D(H,k,V){const U=H.hasOwnProperty(Ka)?H[Ka]:Object.defineProperty(H,Ka,{value:[]})[Ka];for(;U.length<=V;)U.push(null);return(U[V]=U[V]||[]).push(S),H}}return C&&(x.prototype=Object.create(C.prototype)),x.prototype.ngMetadataName=_,x.annotationCls=x,x})}class Ft{constructor(b,C){this._desc=b,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof C?this.__NG_ELEMENT_ID__=C:void 0!==C&&(this.\u0275prov=Dt({token:this,providedIn:C.providedIn||"root",factory:C.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function pn(_,b){void 0===b&&(b=_);for(let C=0;C<_.length;C++){let y=_[C];Array.isArray(y)?(b===_&&(b=_.slice(0,C)),pn(y,b)):b!==_&&b.push(y)}return b}function ua(_,b){_.forEach(C=>Array.isArray(C)?ua(C,b):b(C))}function ow(_,b,C){b>=_.length?_.push(C):_.splice(b,0,C)}function Wo(_,b){return b>=_.length-1?_.pop():_.splice(b,1)[0]}function Qs(_,b){const C=[];for(let y=0;y<_;y++)C.push(b);return C}function nn(_,b,C){let y=Za(_,b);return y>=0?_[1|y]=C:(y=~y,function Xu(_,b,C,y){let x=_.length;if(x==b)_.push(C,y);else if(1===x)_.push(y,_[0]),_[0]=C;else{for(x--,_.push(_[x-1],_[x]);x>b;)_[x]=_[x-2],x--;_[b]=C,_[b+1]=y}}(_,y,b,C)),y}function th(_,b){const C=Za(_,b);if(C>=0)return _[1|C]}function Za(_,b){return function sm(_,b,C){let y=0,x=_.length>>C;for(;x!==y;){const T=y+(x-y>>1),S=_[T<b?x=T:y=T+1}return~(x<_,createScript:_=>_,createScriptURL:_=>_})}catch{}return nl}()?.createHTML(_)||_}function Uc(_){return function dh(){if(void 0===rl&&(rl=null,ue.trustedTypes))try{rl=ue.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:_=>_,createScript:_=>_,createScriptURL:_=>_})}catch{}return rl}()?.createHTML(_)||_}class io{constructor(b){this.changingThisBreaksApplicationSecurity=b}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Tw extends io{getTypeName(){return"HTML"}}class Sw extends io{getTypeName(){return"Style"}}class Cm extends io{getTypeName(){return"Script"}}class uh extends io{getTypeName(){return"URL"}}class wm extends io{getTypeName(){return"ResourceURL"}}function ir(_){return _ instanceof io?_.changingThisBreaksApplicationSecurity:_}function Yo(_,b){const C=function Ew(_){return _ instanceof io&&_.getTypeName()||null}(_);if(null!=C&&C!==b){if("ResourceURL"===C&&"URL"===b)return!0;throw new Error(`Required a safe ${b}, got a ${C} (see https://g.co/ng/security#xss)`)}return C===b}function Mw(_){return new Tw(_)}function Dw(_){return new Sw(_)}function hh(_){return new Cm(_)}function ym(_){return new uh(_)}function ph(_){return new wm(_)}class Hw{constructor(b){this.inertDocumentHelper=b}getInertBodyElement(b){b=""+b;try{const C=(new window.DOMParser).parseFromString(to(b),"text/html").body;return null===C?this.inertDocumentHelper.getInertBodyElement(b):(C.removeChild(C.firstChild),C)}catch{return null}}}class Rw{constructor(b){if(this.defaultDoc=b,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const C=this.inertDocument.createElement("html");this.inertDocument.appendChild(C);const y=this.inertDocument.createElement("body");C.appendChild(y)}}getInertBodyElement(b){const C=this.inertDocument.createElement("template");if("content"in C)return C.innerHTML=to(b),C;const y=this.inertDocument.createElement("body");return y.innerHTML=to(b),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(y),y}stripCustomNsAttrs(b){const C=b.attributes;for(let x=C.length-1;0al(b.trim())).join(", ")),this.buf.push(" ",S,'="',Dm(H),'"')}var _;return this.buf.push(">"),!0}endElement(b){const C=b.nodeName.toLowerCase();zc.hasOwnProperty(C)&&!Am.hasOwnProperty(C)&&(this.buf.push(""))}chars(b){this.buf.push(Dm(b))}checkClobberedElement(b,C){if(C&&(b.compareDocumentPosition(C)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${b.outerHTML}`);return C}}const Em=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Mm=/([^\#-~ |!])/g;function Dm(_){return _.replace(/&/g,"&").replace(Em,function(b){return"&#"+(1024*(b.charCodeAt(0)-55296)+(b.charCodeAt(1)-56320)+65536)+";"}).replace(Mm,function(b){return"&#"+b.charCodeAt(0)+";"}).replace(//g,">")}let Gc;function Hm(_,b){let C=null;try{Gc=Gc||function Nc(_){const b=new Rw(_);return function qc(){try{return!!(new window.DOMParser).parseFromString(to(""),"text/html")}catch{return!1}}()?new Hw(b):b}(_);let y=b?String(b):"";C=Gc.getInertBodyElement(y);let x=5,T=y;do{if(0===x)throw new Error("Failed to sanitize html because the input is unstable");x--,y=T,T=C.innerHTML,C=Gc.getInertBodyElement(y)}while(y!==T);return to((new zx).sanitizeChildren(Jo(C)||C))}finally{if(C){const y=Jo(C)||C;for(;y.firstChild;)y.removeChild(y.firstChild)}}}function Jo(_){return"content"in _&&function Bw(_){return _.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===_.nodeName}(_)?_.content:null}var ni=(()=>((ni=ni||{})[ni.NONE=0]="NONE",ni[ni.HTML=1]="HTML",ni[ni.STYLE=2]="STYLE",ni[ni.SCRIPT=3]="SCRIPT",ni[ni.URL=4]="URL",ni[ni.RESOURCE_URL=5]="RESOURCE_URL",ni))();function Rm(_){const b=sl();return b?Uc(b.sanitize(ni.HTML,_)||""):Yo(_,"HTML")?Uc(ir(_)):Hm(function fm(){return void 0!==lh?lh:typeof document<"u"?document:void 0}(),fe(_))}function Wc(_){const b=sl();return b?b.sanitize(ni.URL,_)||"":Yo(_,"URL")?ir(_):al(fe(_))}function sl(){const _=we();return _&&_[12]}const gh=new Ft("ENVIRONMENT_INITIALIZER"),Uw=new Ft("INJECTOR",-1),$c=new Ft("INJECTOR_DEF_TYPES");class Yt{get(b,C=Ks){if(C===Ks){const y=new Error(`NullInjectorError: No provider for ${ee(b)}!`);throw y.name="NullInjectorError",y}return C}}function Wx(..._){return{\u0275providers:no(0,_)}}function no(_,...b){const C=[],y=new Set;let x;return ua(b,T=>{const S=T;Qc(S,C,[],y)&&(x||(x=[]),x.push(S))}),void 0!==x&&_h(x,C),C}function _h(_,b){for(let C=0;C<_.length;C++){const{providers:x}=_[C];ua(x,T=>{b.push(T)})}}function Qc(_,b,C,y){if(!(_=re(_)))return!1;let x=null,T=Ro(_);const S=!T&&St(_);if(T||S){if(S&&!S.standalone)return!1;x=_}else{const H=_.ngModule;if(T=Ro(H),!T)return!1;x=H}const D=y.has(x);if(S){if(D)return!1;if(y.add(x),S.dependencies){const H="function"==typeof S.dependencies?S.dependencies():S.dependencies;for(const k of H)Qc(k,b,C,y)}}else{if(!T)return!1;{if(null!=T.imports&&!D){let k;y.add(x);try{ua(T.imports,V=>{Qc(V,b,C,y)&&(k||(k=[]),k.push(V))})}finally{}void 0!==k&&_h(k,b)}if(!D){const k=He(x)||(()=>new x);b.push({provide:x,useFactory:k,deps:ze},{provide:$c,useValue:x,multi:!0},{provide:gh,useValue:()=>li(x),multi:!0})}const H=T.providers;null==H||D||ua(H,V=>{b.push(V)})}}return x!==_&&void 0!==_.providers}const Nw=q({provide:String,useValue:q});function fn(_){return null!==_&&"object"==typeof _&&Nw in _}function ma(_){return"function"==typeof _}const dl=new Ft("Set Injector scope."),Jc={},Kc={};let ul;function Wi(){return void 0===ul&&(ul=new Yt),ul}class Ir{}class qw extends Ir{constructor(b,C,y,x){super(),this.parent=C,this.source=y,this.scopes=x,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Zo(b,S=>this.processProvider(S)),this.records.set(Uw,Ko(void 0,this)),x.has("environment")&&this.records.set(Ir,Ko(void 0,this));const T=this.records.get(dl);null!=T&&"string"==typeof T.value&&this.scopes.add(T.value),this.injectorDefTypes=new Set(this.get($c.multi,ze,Ke.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const b of this._ngOnDestroyHooks)b.ngOnDestroy();for(const b of this._onDestroyHooks)b()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(b){this._onDestroyHooks.push(b)}runInContext(b){this.assertNotDestroyed();const C=Hn(this),y=Hi(void 0);try{return b()}finally{Hn(C),Hi(y)}}get(b,C=Ks,y=Ke.Default){this.assertNotDestroyed();const x=Hn(this),T=Hi(void 0);try{if(!(y&Ke.SkipSelf)){let D=this.records.get(b);if(void 0===D){const H=function Qx(_){return"function"==typeof _||"object"==typeof _&&_ instanceof Ft}(b)&&Jr(b);D=H&&this.injectableDefInScope(H)?Ko(hl(b),Jc):null,this.records.set(b,D)}if(null!=D)return this.hydrate(b,D)}return(y&Ke.Self?Wi():this.parent).get(b,C=y&Ke.Optional&&C===Ks?null:C)}catch(S){if("NullInjectorError"===S.name){if((S[Pc]=S[Pc]||[]).unshift(ee(b)),x)throw S;return function gw(_,b,C,y){const x=_[Pc];throw b[Ic]&&x.unshift(b[Ic]),_.message=function _w(_,b,C,y=null){_=_&&"\n"===_.charAt(0)&&"\u0275"==_.charAt(1)?_.slice(2):_;let x=ee(b);if(Array.isArray(b))x=b.map(ee).join(" -> ");else if("object"==typeof b){let T=[];for(let S in b)if(b.hasOwnProperty(S)){let D=b[S];T.push(S+":"+("string"==typeof D?JSON.stringify(D):ee(D)))}x=`{${T.join(", ")}}`}return`${C}${y?"("+y+")":""}[${x}]: ${_.replace(Lx,"\n ")}`}("\n"+_.message,x,C,y),_.ngTokenPath=x,_[Pc]=null,_}(S,b,"R3InjectorError",this.source)}throw S}finally{Hi(T),Hn(x)}}resolveInjectorInitializers(){const b=Hn(this),C=Hi(void 0);try{const y=this.get(gh.multi,ze,Ke.Self);for(const x of y)x()}finally{Hn(b),Hi(C)}}toString(){const b=[],C=this.records;for(const y of C.keys())b.push(ee(y));return`R3Injector[${b.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ae(205,!1)}processProvider(b){let C=ma(b=re(b))?b:re(b&&b.provide);const y=function $x(_){return fn(_)?Ko(void 0,_.useValue):Ko(Zc(_),Jc)}(b);if(ma(b)||!0!==b.multi)this.records.get(C);else{let x=this.records.get(C);x||(x=Ko(void 0,Jc,!0),x.factory=()=>rh(x.multi),this.records.set(C,x)),C=b,x.multi.push(b)}this.records.set(C,y)}hydrate(b,C){return C.value===Jc&&(C.value=Kc,C.value=C.factory()),"object"==typeof C.value&&C.value&&function Gw(_){return null!==_&&"object"==typeof _&&"function"==typeof _.ngOnDestroy}(C.value)&&this._ngOnDestroyHooks.add(C.value),C.value}injectableDefInScope(b){if(!b.providedIn)return!1;const C=re(b.providedIn);return"string"==typeof C?"any"===C||this.scopes.has(C):this.injectorDefTypes.has(C)}}function hl(_){const b=Jr(_),C=null!==b?b.factory:He(_);if(null!==C)return C;if(_ instanceof Ft)throw new ae(204,!1);if(_ instanceof Function)return function Bm(_){const b=_.length;if(b>0)throw Qs(b,"?"),new ae(204,!1);const C=function Ho(_){const b=_&&(_[Qn]||_[ja]);if(b){const C=function Hu(_){if(_.hasOwnProperty("name"))return _.name;const b=(""+_).match(/^function\s*([^\s(]+)/);return null===b?"":b[1]}(_);return console.warn(`DEPRECATED: DI is instantiating a token "${C}" 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 "${C}" class.`),b}return null}(_);return null!==C?()=>C.factory(_):()=>new _}(_);throw new ae(204,!1)}function Zc(_,b,C){let y;if(ma(_)){const x=re(_);return He(x)||hl(x)}if(fn(_))y=()=>re(_.useValue);else if(function fa(_){return!(!_||!_.useFactory)}(_))y=()=>_.useFactory(...rh(_.deps||[]));else if(function ll(_){return!(!_||!_.useExisting)}(_))y=()=>li(re(_.useExisting));else{const x=re(_&&(_.useClass||_.provide));if(!function zw(_){return!!_.deps}(_))return He(x)||hl(x);y=()=>new x(...rh(_.deps))}return y}function Ko(_,b,C=!1){return{factory:_,value:b,multi:C?[]:void 0}}function Yx(_){return!!_.\u0275providers}function Zo(_,b){for(const C of _)Array.isArray(C)?Zo(C,b):Yx(C)?Zo(C.\u0275providers,b):b(C)}class Ww{}class Ch{resolveComponentFactory(b){throw function Jx(_){const b=Error(`No component factory found for ${ee(_)}. Did you add it to @NgModule.entryComponents?`);return b.ngComponent=_,b}(b)}}let ro=(()=>{class _{}return _.NULL=new Ch,_})();function wh(){return kr($t(),we())}function kr(_,b){return new Xc(Vt(_,b))}let Xc=(()=>{class _{constructor(C){this.nativeElement=C}}return _.__NG_ELEMENT_ID__=wh,_})();function Zx(_){return _ instanceof Xc?_.nativeElement:_}class Lm{}let $w=(()=>{class _{}return _.__NG_ELEMENT_ID__=()=>function Xx(){const _=we(),C=Bt($t().index,_);return(Ii(C)?C:_)[11]}(),_})(),eT=(()=>{class _{}return _.\u0275prov=Dt({token:_,providedIn:"root",factory:()=>null}),_})();class Qw{constructor(b){this.full=b,this.major=b.split(".")[0],this.minor=b.split(".")[1],this.patch=b.split(".").slice(2).join(".")}}const tT=new Qw("14.1.2"),jm={};function zm(_){return _.ngOriginalError}class ed{constructor(){this._console=console}handleError(b){const C=this._findOriginalError(b);this._console.error("ERROR",b),C&&this._console.error("ORIGINAL ERROR",C)}_findOriginalError(b){let C=b&&zm(b);for(;C&&zm(C);)C=zm(C);return C||null}}const Gm=new Map;let fT=0;const Qm="__ngContext__";function qi(_,b){Ii(b)?(_[Qm]=b[20],function gT(_){Gm.set(_[20],_)}(b)):_[Qm]=b}function td(_){const b=_[Qm];return"number"==typeof b?function Wm(_){return Gm.get(_)||null}(b):b||null}function Ym(_){const b=td(_);return b?Ii(b)?b:b.lView:null}const xT=(()=>(typeof requestAnimationFrame<"u"&&requestAnimationFrame||setTimeout).bind(ue))();function ga(_){return _ instanceof Function?_():_}var Vr=(()=>((Vr=Vr||{})[Vr.Important=1]="Important",Vr[Vr.DashCase=2]="DashCase",Vr))();function Km(_,b){return undefined(_,b)}function id(_){const b=_[3];return cn(b)?b[3]:b}function Zm(_){return cy(_[13])}function Xm(_){return cy(_[4])}function cy(_){for(;null!==_&&!cn(_);)_=_[4];return _}function fl(_,b,C,y,x){if(null!=y){let T,S=!1;cn(y)?T=y:Ii(y)&&(S=!0,y=y[0]);const D=bt(y);0===_&&null!==C?null==x?wi(b,C,D):Ye(b,C,D,x||null,!0):1===_&&null!==C?Ye(b,C,D,x||null,!0):2===_?function lg(_,b,C){const y=Gt(_,b);y&&function ad(_,b,C,y){_.removeChild(b,C,y)}(_,y,b,C)}(b,D,S):3===_&&b.destroyNode(D),null!=T&&function fy(_,b,C,y,x){const T=C[7];T!==bt(C)&&fl(b,_,y,T,x);for(let D=10;D0&&(_[C-1][4]=y[4]);const T=Wo(_,10+b);!function kT(_,b){Xo(_,b,b[11],2,null,null),b[0]=null,b[6]=null}(y[1],y);const S=T[19];null!==S&&S.detachView(T[1]),y[3]=null,y[4]=null,y[2]&=-65}return y}function nd(_,b){if(!(128&b[2])){const C=b[11];C.destroyNode&&Xo(_,b,C,3,null,null),function OT(_){let b=_[13];if(!b)return rd(_[1],_);for(;b;){let C=null;if(Ii(b))C=b[13];else{const y=b[10];y&&(C=y)}if(!C){for(;b&&!b[4]&&b!==_;)Ii(b)&&rd(b[1],b),b=b[3];null===b&&(b=_),Ii(b)&&rd(b[1],b),C=b&&b[4]}b=C}}(b)}}function rd(_,b){if(!(128&b[2])){b[2]&=-65,b[2]|=128,function uy(_,b){let C;if(null!=_&&null!=(C=_.destroyHooks))for(let y=0;y=0?y[x=k]():y[x=-k].unsubscribe(),T+=2}else{const S=y[x=C[T+1]];C[T].call(S)}if(null!==y){for(let T=x+1;TT?"":x[U+1].toLowerCase();const se=8&y?te:null;if(se&&-1!==xh(se,k,0)||2&y&&k!==te){if(nr(y))return!1;S=!0}}}}else{if(!S&&!nr(y)&&!nr(H))return!1;if(S&&nr(H))continue;S=!1,y=H|1&y}}return nr(y)||S}function nr(_){return 0==(1&_)}function Sh(_,b,C,y){if(null===b)return-1;let x=0;if(y||!C){let T=!1;for(;x-1)for(C++;C<_.length;){const y=_[C];if("number"==typeof y)return-1;if(y===b)return C;C++}return-1}(b,_)}function _y(_,b,C=!1){for(let y=0;y0?'="'+D+'"':"")+"]"}else 8&y?x+="."+S:4&y&&(x+=" "+S);else""!==x&&!nr(S)&&(b+=hg(T,x),x=""),y=S,T=T||!nr(y);C++}return""!==x&&(b+=hg(T,x)),b}const ct={};function Eh(_){pg(et(),we(),Ni()+_,!1)}function pg(_,b,C,y){if(!y)if(3==(3&b[2])){const T=_.preOrderCheckHooks;null!==T&&Ja(b,T,C)}else{const T=_.preOrderHooks;null!==T&&bc(b,T,0,C)}aa(C)}function Ey(_,b=null,C=null,y){const x=_l(_,b,C,y);return x.resolveInjectorInitializers(),x}function _l(_,b=null,C=null,y,x=new Set){const T=[C||ze,Wx(_)];return y=y||("object"==typeof _?void 0:ee(_)),new qw(T,b||Wi(),y||null,x)}let rr=(()=>{class _{static create(C,y){if(Array.isArray(C))return Ey({name:""},y,C,"");{const x=C.name??"";return Ey({name:x},C.parent,C.providers,x)}}}return _.THROW_IF_NOT_FOUND=Ks,_.NULL=new Yt,_.\u0275prov=Dt({token:_,providedIn:"any",factory:()=>li(Uw)}),_.__NG_ELEMENT_ID__=-1,_})();function wl(_,b=Ke.Default){const C=we();return null===C?li(_,b):em($t(),C,re(_),b)}function Dh(){throw new Error("invalid")}function md(_,b){return _<<17|b<<2}function kn(_){return _>>17&32767}function yg(_){return 2|_}function _a(_){return(131068&_)>>2}function vg(_,b){return-131069&_|b<<2}function ar(_){return 1|_}function $y(_,b){const C=_.contentQueries;if(null!==C)for(let y=0;y22&&pg(_,b,22,!1),C(y,x)}finally{aa(T)}}function Dg(_,b,C){if(Ps(b)){const x=b.directiveEnd;for(let T=b.directiveStart;T0;){const C=_[--b];if("number"==typeof C&&C<0)return C}return 0})(D)!=H&&D.push(H),D.push(y,x,S)}}function ev(_,b){null!==_.hostBindings&&_.hostBindings(1,b)}function Vg(_,b){b.flags|=2,(_.components||(_.components=[])).push(b.index)}function iv(_,b,C){if(C){if(b.exportAs)for(let y=0;y0&&Sl(C)}}function Sl(_){for(let y=Zm(_);null!==y;y=Xm(y))for(let x=10;x0&&Sl(T)}const C=_[1].components;if(null!==C)for(let y=0;y0&&Sl(x)}}function ov(_,b){const C=Bt(b,_),y=C[1];(function El(_,b){for(let C=b.length;C<_.blueprint.length;C++)b.push(_.blueprint[C])})(y,C),Cd(y,C,C[8])}function Sd(_,b){return _[13]?_[14][4]=b:_[13]=b,_[14]=b,b}function Ed(_){for(;_;){_[2]|=32;const b=id(_);if(Lf(_)&&!b)return _;_=b}return null}function Fg(_){!function Md(_){for(let b=0;b<_.components.length;b++){const C=_.components[b],y=Ym(C);if(null!==y){const x=y[1];iS(x,y,x.template,C)}}}(_[8])}function zh(_,b,C){Os(0),b(_,C)}const lv=(()=>Promise.resolve(null))();function Ug(_){return _[7]||(_[7]=[])}function Ng(_){return _.cleanup||(_.cleanup=[])}function qg(_,b,C){return(null===_||Xi(_))&&(C=function qt(_){for(;Array.isArray(_);){if("object"==typeof _[1])return _;_=_[0]}return null}(C[b.index])),C[11]}function os(_,b){const C=_[9],y=C?C.get(ed,null):null;y&&y.handleError(b)}function Dd(_,b,C,y,x){for(let T=0;T-1&&(Pn(b,y),Wo(C,y))}this._attachedToViewContainer=!1}nd(this._lView[1],this._lView)}onDestroy(b){Pg(this._lView[1],this._lView,null,b)}markForCheck(){Ed(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){!function jg(_,b,C){const y=b[10];y.begin&&y.begin();try{Mi(_,b,_.template,C)}catch(x){throw os(b,x),x}finally{y.end&&y.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ae(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function BT(_,b){Xo(_,b,b[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(b){if(this._attachedToViewContainer)throw new ae(902,!1);this._appRef=b}}class cv extends ss{constructor(b){super(b),this._view=b}detectChanges(){Fg(this._view)}checkNoChanges(){}get context(){return null}}class Gh extends ro{constructor(b){super(),this.ngModule=b}resolveComponentFactory(b){const C=St(b);return new Rd(C,this.ngModule)}}function Wh(_){const b=[];for(let C in _)_.hasOwnProperty(C)&&b.push({propName:_[C],templateName:C});return b}class dv{constructor(b,C){this.injector=b,this.parentInjector=C}get(b,C,y){const x=this.injector.get(b,jm,y);return x!==jm||C===jm?x:this.parentInjector.get(b,C,y)}}class Rd extends Ww{constructor(b,C){super(),this.componentDef=b,this.ngModule=C,this.componentType=b.type,this.selector=function vy(_){return _.map(yy).join(",")}(b.selectors),this.ngContentSelectors=b.ngContentSelectors?b.ngContentSelectors:[],this.isBoundToModule=!!C}get inputs(){return Wh(this.componentDef.inputs)}get outputs(){return Wh(this.componentDef.outputs)}create(b,C,y,x){let T=(x=x||this.ngModule)instanceof Ir?x:x?.injector;T&&null!==this.componentDef.getStandaloneInjector&&(T=this.componentDef.getStandaloneInjector(T)||T);const S=T?new dv(b,T):b,D=S.get(Lm,null);if(null===D)throw new ae(407,!1);const H=S.get(eT,null),k=D.createRenderer(null,this.componentDef),V=this.componentDef.selectors[0][0]||"div",U=y?function Rg(_,b,C){return _.selectRootElement(b,C===$.ShadowDom)}(k,y,this.componentDef.encapsulation):tg(D.createRenderer(null,this.componentDef),V,function zg(_){const b=_.toLowerCase();return"svg"===b?"svg":"math"===b?"math":null}(V)),te=this.componentDef.onPush?288:272,se=function cS(_,b){return{components:[],scheduler:_||xT,clean:lv,playerHandler:b||null,flags:0}}(),be=Oh(0,null,null,1,0,null,null,null,null,null),Se=bd(null,be,se,te,null,null,D,k,H,S,null);let Ie,qe;Ya(Se);try{const Ze=function sS(_,b,C,y,x,T){const S=C[1];C[22]=_;const H=Al(S,22,2,"#host",null),k=H.mergedAttrs=b.hostAttrs;null!==k&&(jr(H,k,!0),null!==_&&(wc(x,_,k),null!==H.classes&&cg(x,_,H.classes),null!==H.styles&&gl(x,_,H.styles)));const V=y.createRenderer(_,b),U=bd(C,Hg(b),null,b.onPush?32:16,C[22],H,y,V,T||null,null,null);return S.firstCreatePass&&(Ec(Gs(H,C),S,b.type),Vg(S,H),Bg(H,C.length,1)),Sd(C,U),C[22]=U}(U,this.componentDef,Se,D,k);if(U)if(y)wc(k,U,["ng-version",tT.full]);else{const{attrs:ve,classes:Qe}=function Ay(_){const b=[],C=[];let y=1,x=2;for(;y<_.length;){let T=_[y];if("string"==typeof T)2===x?""!==T&&b.push(T,_[++y]):8===x&&C.push(T);else{if(!nr(x))break;x=T}y++}return{attrs:b,classes:C}}(this.componentDef.selectors[0]);ve&&wc(k,U,ve),Qe&&Qe.length>0&&cg(k,U,Qe.join(" "))}if(qe=un(be,22),void 0!==C){const ve=qe.projection=[];for(let Qe=0;Qe=0;y--){const x=_[y];x.hostVars=b+=x.hostVars,x.hostAttrs=yc(x.hostAttrs,C=yc(C,x.hostAttrs))}}(y)}function Qh(_){return _===ut?{}:_===ze?[]:_}function Yh(_,b){const C=_.viewQuery;_.viewQuery=C?(y,x)=>{b(y,x),C(y,x)}:b}function uS(_,b){const C=_.contentQueries;_.contentQueries=C?(y,x,T)=>{b(y,x,T),C(y,x,T)}:b}function uv(_,b){const C=_.hostBindings;_.hostBindings=C?(y,x)=>{b(y,x),C(y,x)}:b}let ds=null;function us(){if(!ds){const _=ue.Symbol;if(_&&_.iterator)ds=_.iterator;else{const b=Object.getOwnPropertyNames(Map.prototype);for(let C=0;CD(bt(Ct[y.index])):y.index;let Qe=null;if(!D&&H&&(Qe=function fo(_,b,C,y){const x=_.cleanup;if(null!=x)for(let T=0;TH?D[H]:null}"string"==typeof S&&(T+=2)}return null}(_,b,x,y.index)),null!==Qe)(Qe.__ngLastListenerFn__||Qe).__ngNextListenerFn__=T,Qe.__ngLastListenerFn__=T,se=!1;else{T=kl(y,b,U,T,!1);const Ct=C.listen(qe,x,T);te.push(T,Ct),V&&V.push(x,ve,Ze,Ze+1)}}else T=kl(y,b,U,T,!1);const be=y.outputs;let Se;if(se&&null!==be&&(Se=be[x])){const Ie=Se.length;if(Ie)for(let qe=0;qe0;)b=b[15],_--;return b}(_,de.lFrame.contextLView))[8]}(_)}function Ld(_,b){let C=null;const y=function dd(_){const b=_.attrs;if(null!=b){const C=b.indexOf(5);if(0==(1&C))return b[C+1]}return null}(_);for(let x=0;x=0}const fi={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function a_(_){return _.substring(fi.key,fi.keyEnd)}function o_(_,b){const C=fi.textEnd;return C===b?-1:(b=fi.keyEnd=function CS(_,b,C){for(;b32;)b++;return b}(_,fi.key=b,C),Ur(_,b,C))}function Ur(_,b,C){for(;b=0;C=o_(b,C))nn(_,a_(b),!0)}function bn(_,b,C,y){const x=we(),T=et(),S=hn(2);T.firstUpdatePass&&c_(T,_,S,y),b!==ct&&yi(x,S,b)&&Dv(T,T.data[Ni()],x,x[11],_,x[S+1]=function xS(_,b){return null==_||("string"==typeof b?_+=b:"object"==typeof _&&(_=ee(ir(_)))),_}(b,C),y,S)}function Fn(_,b,C,y){const x=et(),T=hn(2);x.firstUpdatePass&&c_(x,null,T,y);const S=we();if(C!==ct&&yi(S,T,C)){const D=x.data[Ni()];if(Rv(D,y)&&!sp(x,T)){let H=y?D.classesWithoutHost:D.stylesWithoutHost;null!==H&&(C=W(H,C||"")),Jg(x,D,S,C,y)}else!function Mv(_,b,C,y,x,T,S,D){x===ct&&(x=ze);let H=0,k=0,V=0=_.expandoStartIndex}function c_(_,b,C,y){const x=_.data;if(null===x[C+1]){const T=x[Ni()],S=sp(_,C);Rv(T,y)&&null===b&&!S&&(b=!1),b=function Ev(_,b,C,y){const x=Lu(_);let T=y?b.residualClasses:b.residualStyles;if(null===x)0===(y?b.classBindings:b.styleBindings)&&(C=Ud(C=d_(null,_,b,C,y),b.attrs,y),T=null);else{const S=b.directiveStylingLast;if(-1===S||_[S]!==x)if(C=d_(x,_,b,C,y),null===T){let H=function lp(_,b,C){const y=C?b.classBindings:b.styleBindings;if(0!==_a(y))return _[kn(y)]}(_,b,y);void 0!==H&&Array.isArray(H)&&(H=d_(null,_,b,H[1],y),H=Ud(H,b.attrs,y),function Vl(_,b,C,y){_[kn(C?b.classBindings:b.styleBindings)]=y}(_,b,y,H))}else T=function xa(_,b,C){let y;const x=b.directiveEnd;for(let T=1+b.directiveStylingLast;T0)&&(k=!0)}else V=C;if(x)if(0!==H){const te=kn(_[D+1]);_[y+1]=md(te,D),0!==te&&(_[te+1]=vg(_[te+1],y)),_[D+1]=function $e(_,b){return 131071&_|b<<17}(_[D+1],y)}else _[y+1]=md(D,0),0!==D&&(_[D+1]=vg(_[D+1],y)),D=y;else _[y+1]=md(H,0),0===D?D=y:_[H+1]=vg(_[H+1],y),H=y;k&&(_[y+1]=yg(_[y+1])),r_(_,V,y,!0),r_(_,V,y,!1),function yv(_,b,C,y,x){const T=x?_.residualClasses:_.residualStyles;null!=T&&"string"==typeof b&&Za(T,b)>=0&&(C[y+1]=ar(C[y+1]))}(b,V,_,y,T),S=md(D,H),T?b.classBindings=S:b.styleBindings=S}(x,T,b,C,S,y)}}function d_(_,b,C,y,x){let T=null;const S=C.directiveEnd;let D=C.directiveStylingLast;for(-1===D?D=C.directiveStart:D++;D0;){const H=_[x],k=Array.isArray(H),V=k?H[1]:H,U=null===V;let te=C[x+1];te===ct&&(te=U?ze:void 0);let se=U?th(te,y):V===y?te:void 0;if(k&&!cp(se)&&(se=th(H,y)),cp(se)&&(D=se,S))return D;const be=_[x+1];x=S?kn(be):_a(be)}if(null!==b){let H=T?b.residualClasses:b.residualStyles;null!=H&&(D=th(H,y))}return D}function cp(_){return void 0!==_}function Rv(_,b){return 0!=(_.flags&(b?16:32))}function Pv(_,b=""){const C=we(),y=et(),x=_+22,T=y.firstCreatePass?Al(y,x,1,b,null):y.data[x],S=C[x]=function eg(_,b){return _.createText(b)}(C[11],b);ml(y,C,S,T),Ci(T,!1)}function h_(_){return dp("",_,""),h_}function dp(_,b,C){const y=we(),x=Hl(y,_,b,C);return x!==ct&&Lr(y,Ni(),x),dp}function p_(_,b,C,y,x){const T=we(),S=function ps(_,b,C,y,x,T){const D=wa(_,Tr(),C,x);return hn(2),D?b+fe(C)+y+fe(x)+T:ct}(T,_,b,C,y,x);return S!==ct&&Lr(T,Ni(),S),p_}function f_(_,b,C,y,x,T,S,D,H,k,V){const U=we(),te=po(U,_,b,C,y,x,T,S,D,H,k,V);return te!==ct&&Lr(U,Ni(),te),f_}function g_(_,b,C){Fn(nn,lr,Hl(we(),_,b,C),!0)}function E_(_,b,C){const y=we();return yi(y,$a(),b)&&an(et(),Kt(),y,_,b,y[11],C,!0),E_}function hp(_,b,C){const y=we();if(yi(y,$a(),b)){const T=et(),S=Kt();an(T,S,y,_,b,qg(Lu(T.data),S,y),C,!0)}return hp}const _o=void 0;var kS=["en",[["a","p"],["AM","PM"],_o],[["AM","PM"],_o,_o],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],_o,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],_o,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",_o,"{1} 'at' {0}",_o],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Uv(_){const C=Math.floor(Math.abs(_)),y=_.toString().replace(/^[^.]*\.?/,"").length;return 1===C&&0===y?1:5}];let Bl={};function Ol(_){const b=function BS(_){return _.toLowerCase().replace(/_/g,"-")}(_);let C=Nv(b);if(C)return C;const y=b.split("-")[0];if(C=Nv(y),C)return C;if("en"===y)return kS;throw new ae(701,!1)}function M_(_){return Ol(_)[tt.PluralCase]}function Nv(_){return _ in Bl||(Bl[_]=ue.ng&&ue.ng.common&&ue.ng.common.locales&&ue.ng.common.locales[_]),Bl[_]}var tt=(()=>((tt=tt||{})[tt.LocaleId=0]="LocaleId",tt[tt.DayPeriodsFormat=1]="DayPeriodsFormat",tt[tt.DayPeriodsStandalone=2]="DayPeriodsStandalone",tt[tt.DaysFormat=3]="DaysFormat",tt[tt.DaysStandalone=4]="DaysStandalone",tt[tt.MonthsFormat=5]="MonthsFormat",tt[tt.MonthsStandalone=6]="MonthsStandalone",tt[tt.Eras=7]="Eras",tt[tt.FirstDayOfWeek=8]="FirstDayOfWeek",tt[tt.WeekendRange=9]="WeekendRange",tt[tt.DateFormat=10]="DateFormat",tt[tt.TimeFormat=11]="TimeFormat",tt[tt.DateTimeFormat=12]="DateTimeFormat",tt[tt.NumberSymbols=13]="NumberSymbols",tt[tt.NumberFormats=14]="NumberFormats",tt[tt.CurrencyCode=15]="CurrencyCode",tt[tt.CurrencySymbol=16]="CurrencySymbol",tt[tt.CurrencyName=17]="CurrencyName",tt[tt.Currencies=18]="Currencies",tt[tt.Directionality=19]="Directionality",tt[tt.PluralCase=20]="PluralCase",tt[tt.ExtraData=21]="ExtraData",tt))();const Nr="en-US";let Ll=Nr;function Sp(_,b,C,y,x){if(_=re(_),Array.isArray(_))for(let T=0;T<_.length;T++)Sp(_[T],b,C,y,x);else{const T=et(),S=we();let D=ma(_)?_:re(_.provide),H=Zc(_);const k=$t(),V=1048575&k.providerIndexes,U=k.directiveStart,te=k.providerIndexes>>20;if(ma(_)||!_.multi){const se=new Us(H,x,wl),be=tu(D,b,x?V:V+te,U);-1===be?(Ec(Gs(k,S),T,D),Ep(T,_,b.length),b.push(D),k.directiveStart++,k.directiveEnd++,x&&(k.providerIndexes+=1048576),C.push(se),S.push(se)):(C[be]=se,S[be]=se)}else{const se=tu(D,b,V+te,U),be=tu(D,b,V,V+te),Se=se>=0&&C[se],Ie=be>=0&&C[be];if(x&&!Ie||!x&&!Se){Ec(Gs(k,S),T,D);const qe=function ys(_,b,C,y,x){const T=new Us(_,C,wl);return T.multi=[],T.index=b,T.componentProviders=0,G_(T,x,y&&!C),T}(x?dA:Mp,C.length,x,y,H);!x&&Ie&&(C[be].providerFactory=qe),Ep(T,_,b.length,0),b.push(D),k.directiveStart++,k.directiveEnd++,x&&(k.providerIndexes+=1048576),C.push(qe),S.push(qe)}else Ep(T,_,se>-1?se:be,G_(C[x?be:se],H,!x&&y));!x&&y&&Ie&&C[be].componentProviders++}}}function Ep(_,b,C,y){const x=ma(b),T=function cl(_){return!!_.useClass}(b);if(x||T){const H=(T?re(b.useClass):b).prototype.ngOnDestroy;if(H){const k=_.destroyHooks||(_.destroyHooks=[]);if(!x&&b.multi){const V=k.indexOf(C);-1===V?k.push(C,[y,H]):k[V+1].push(y,H)}else k.push(C,H)}}}function G_(_,b,C){return C&&_.componentProviders++,_.multi.push(b)-1}function tu(_,b,C,y){for(let x=C;x{C.providersResolver=(y,x)=>function cA(_,b,C){const y=et();if(y.firstCreatePass){const x=Xi(_);Sp(C,y.data,y.blueprint,x,!0),Sp(b,y.data,y.blueprint,x,!1)}}(y,x?x(_):_,b)}}class ur{}class $_{}function uA(_,b){return new Q_(_,b??null)}class Q_ extends ur{constructor(b,C){super(),this._parent=C,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Gh(this);const y=Gi(b);this._bootstrapComponents=ga(y.bootstrap),this._r3Injector=_l(b,C,[{provide:ur,useValue:this},{provide:ro,useValue:this.componentFactoryResolver}],ee(b),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(b)}get injector(){return this._r3Injector}destroy(){const b=this._r3Injector;!b.destroyed&&b.destroy(),this.destroyCbs.forEach(C=>C()),this.destroyCbs=null}onDestroy(b){this.destroyCbs.push(b)}}class Sa extends $_{constructor(b){super(),this.moduleType=b}create(b){return new Q_(this.moduleType,b)}}class hA extends ur{constructor(b,C,y){super(),this.componentFactoryResolver=new Gh(this),this.instance=null;const x=new qw([...b,{provide:ur,useValue:this},{provide:ro,useValue:this.componentFactoryResolver}],C||Wi(),y,new Set(["environment"]));this.injector=x,x.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(b){this.injector.onDestroy(b)}}function iu(_,b,C=null){return new hA(_,b,C).injector}function mA(_,b,C){const y=Vi()+_,x=we();return x[y]===ct?or(x,y,C?b.call(C):b()):function hs(_,b){return _[b]}(x,y)}function gA(_,b,C,y){return wA(we(),Vi(),_,b,C,y)}function _A(_,b,C,y,x){return yA(we(),Vi(),_,b,C,y,x)}function nu(_,b){const C=_[b];return C===ct?void 0:C}function wA(_,b,C,y,x,T){const S=b+C;return yi(_,S,x)?or(_,S+1,T?y.call(T,x):y(x)):nu(_,S+1)}function yA(_,b,C,y,x,T,S){const D=b+C;return wa(_,D,x,T)?or(_,D+2,S?y.call(S,x,T):y(x,T)):nu(_,D+2)}function X_(_,b,C,y,x,T,S,D){const H=b+C;return function kd(_,b,C,y,x){const T=wa(_,b,C,y);return yi(_,b+2,x)||T}(_,H,x,T,S)?or(_,H+3,D?y.call(D,x,T,S):y(x,T,S)):nu(_,H+3)}function AA(_,b){const C=et();let y;const x=_+22;C.firstCreatePass?(y=function xA(_,b){if(b)for(let C=b.length-1;C>=0;C--){const y=b[C];if(_===y.name)return y}}(b,C.pipeRegistry),C.data[x]=y,y.onDestroy&&(C.destroyHooks||(C.destroyHooks=[])).push(x,y.onDestroy)):y=C.data[x];const T=y.factory||(y.factory=He(y.type)),S=Hi(wl);try{const D=zs(!1),H=T();return zs(D),function _n(_,b,C,y){C>=_.data.length&&(_.data[C]=null,_.blueprint[C]=null),b[C]=y}(C,we(),x,H),H}finally{Hi(S)}}function TA(_,b,C){const y=_+22,x=we(),T=jt(x,y);return ru(x,y)?wA(x,Vi(),b,T.transform,C,T):T.transform(C)}function SA(_,b,C,y){const x=_+22,T=we(),S=jt(T,x);return ru(T,x)?yA(T,Vi(),b,S.transform,C,y,S):S.transform(C,y)}function tb(_,b,C,y,x){const T=_+22,S=we(),D=jt(S,T);return ru(S,T)?X_(S,Vi(),b,D.transform,C,y,x,D):D.transform(C,y,x)}function ru(_,b){return _[1].data[b].pure}function ib(_){return b=>{setTimeout(_,void 0,b)}}const zr=class pr extends M.x{constructor(b=!1){super(),this.__isAsync=b}emit(b){super.next(b)}subscribe(b,C,y){let x=b,T=C||(()=>null),S=y;if(b&&"object"==typeof b){const H=b;x=H.next?.bind(H),T=H.error?.bind(H),S=H.complete?.bind(H)}this.__isAsync&&(T=ib(T),x&&(x=ib(x)),S&&(S=ib(S)));const D=super.subscribe({next:x,error:T,complete:S});return b instanceof f.w0&&b.add(D),D}};function iE(){return this._results[us()]()}class Ip{constructor(b=!1){this._emitDistinctChangesOnly=b,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const C=us(),y=Ip.prototype;y[C]||(y[C]=iE)}get changes(){return this._changes||(this._changes=new zr)}get(b){return this._results[b]}map(b){return this._results.map(b)}filter(b){return this._results.filter(b)}find(b){return this._results.find(b)}reduce(b,C){return this._results.reduce(b,C)}forEach(b){this._results.forEach(b)}some(b){return this._results.some(b)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(b,C){const y=this;y.dirty=!1;const x=pn(b);(this._changesDetected=!function Bx(_,b,C){if(_.length!==b.length)return!1;for(let y=0;y<_.length;y++){let x=_[y],T=b[y];if(C&&(x=C(x),T=C(T)),T!==x)return!1}return!0}(y._results,x,C))&&(y._results=x,y.length=x.length,y.last=x[this.length-1],y.first=x[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}let au=(()=>{class _{}return _.__NG_ELEMENT_ID__=rE,_})();const nE=au,DA=class extends nE{constructor(b,C,y){super(),this._declarationLView=b,this._declarationTContainer=C,this.elementRef=y}createEmbeddedView(b,C){const y=this._declarationTContainer.tViews,x=bd(this._declarationLView,y,b,16,null,y.declTNode,null,null,null,null,C||null);x[17]=this._declarationLView[this._declarationTContainer.index];const S=this._declarationLView[19];return null!==S&&(x[19]=S.createEmbeddedView(y)),Cd(y,x,b),new ss(x)}};function rE(){return kp($t(),we())}function kp(_,b){return 4&_.type?new DA(b,_,kr(_,b)):null}let Vp=(()=>{class _{}return _.__NG_ELEMENT_ID__=aE,_})();function aE(){return PA($t(),we())}const oE=Vp,HA=class extends oE{constructor(b,C,y){super(),this._lContainer=b,this._hostTNode=C,this._hostLView=y}get element(){return kr(this._hostTNode,this._hostLView)}get injector(){return new Mn(this._hostTNode,this._hostLView)}get parentInjector(){const b=Sc(this._hostTNode,this._hostLView);if(Uo(b)){const C=qo(b,this._hostLView),y=No(b);return new Mn(C[1].data[y+8],C)}return new Mn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(b){const C=RA(this._lContainer);return null!==C&&C[b]||null}get length(){return this._lContainer.length-10}createEmbeddedView(b,C,y){let x,T;"number"==typeof y?x=y:null!=y&&(x=y.index,T=y.injector);const S=b.createEmbeddedView(C||{},T);return this.insert(S,x),S}createComponent(b,C,y,x,T){const S=b&&!function Go(_){return"function"==typeof _}(b);let D;if(S)D=C;else{const U=C||{};D=U.index,y=U.injector,x=U.projectableNodes,T=U.environmentInjector||U.ngModuleRef}const H=S?b:new Rd(St(b)),k=y||this.parentInjector;if(!T&&null==H.ngModule){const te=(S?k:this.parentInjector).get(Ir,null);te&&(T=te)}const V=H.create(k,x,void 0,T);return this.insert(V.hostView,D),V}insert(b,C){const y=b._lView,x=y[1];if(function I(_){return cn(_[3])}(y)){const V=this.indexOf(b);if(-1!==V)this.detach(V);else{const U=y[3],te=new HA(U,U[6],U[3]);te.detach(te.indexOf(b))}}const T=this._adjustIndex(C),S=this._lContainer;!function LT(_,b,C,y){const x=10+y,T=C.length;y>0&&(C[x-1][4]=b),y0)y.push(S[D/2]);else{const k=T[D+1],V=b[-H];for(let U=10;U{class _{constructor(C){this.appInits=C,this.resolve=Jl,this.reject=Jl,this.initialized=!1,this.done=!1,this.donePromise=new Promise((y,x)=>{this.resolve=y,this.reject=x})}runInitializers(){if(this.initialized)return;const C=[],y=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let x=0;x{T.subscribe({complete:D,error:H})});C.push(S)}}Promise.all(C).then(()=>{y()}).catch(x=>{this.reject(x)}),0===C.length&&y(),this.initialized=!0}}return _.\u0275fac=function(C){return new(C||_)(li(Oi,8))},_.\u0275prov=Dt({token:_,factory:_.\u0275fac,providedIn:"root"}),_})();const Zp=new Ft("AppId",{providedIn:"root",factory:function XA(){return`${Ia()}${Ia()}${Ia()}`}});function Ia(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const cu=new Ft("Platform Initializer"),Xp=new Ft("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Kl=new Ft("appBootstrapListener"),ef=new Ft("AnimationModuleType");let e0=(()=>{class _{log(C){console.log(C)}warn(C){console.warn(C)}}return _.\u0275fac=function(C){return new(C||_)},_.\u0275prov=Dt({token:_,factory:_.\u0275fac,providedIn:"platform"}),_})();const tf=new Ft("LocaleId",{providedIn:"root",factory:()=>cm(tf,Ke.Optional|Ke.SkipSelf)||function hE(){return typeof $localize<"u"&&$localize.locale||Nr}()}),pE=new Ft("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class fE{constructor(b,C){this.ngModuleFactory=b,this.componentFactories=C}}let t0=(()=>{class _{compileModuleSync(C){return new Sa(C)}compileModuleAsync(C){return Promise.resolve(this.compileModuleSync(C))}compileModuleAndAllComponentsSync(C){const y=this.compileModuleSync(C),T=ga(Gi(C).declarations).reduce((S,D)=>{const H=St(D);return H&&S.push(new Rd(H)),S},[]);return new fE(y,T)}compileModuleAndAllComponentsAsync(C){return Promise.resolve(this.compileModuleAndAllComponentsSync(C))}clearCache(){}clearCacheFor(C){}getModuleId(C){}}return _.\u0275fac=function(C){return new(C||_)},_.\u0275prov=Dt({token:_,factory:_.\u0275fac,providedIn:"root"}),_})();const xs=(()=>Promise.resolve(0))();function wo(_){typeof Zone>"u"?xs.then(()=>{_&&_.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",_)}class Ji{constructor({enableLongStackTrace:b=!1,shouldCoalesceEventChangeDetection:C=!1,shouldCoalesceRunChangeDetection:y=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new zr(!1),this.onMicrotaskEmpty=new zr(!1),this.onStable=new zr(!1),this.onError=new zr(!1),typeof Zone>"u")throw new ae(908,!1);Zone.assertZonePatched();const x=this;if(x._nesting=0,x._outer=x._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const T=Zone.AsyncStackTaggingZoneSpec;x._inner=x._inner.fork(new T("Angular"))}Zone.TaskTrackingZoneSpec&&(x._inner=x._inner.fork(new Zone.TaskTrackingZoneSpec)),b&&Zone.longStackTraceZoneSpec&&(x._inner=x._inner.fork(Zone.longStackTraceZoneSpec)),x.shouldCoalesceEventChangeDetection=!y&&C,x.shouldCoalesceRunChangeDetection=y,x.lastRequestAnimationFrameId=-1,x.nativeRequestAnimationFrame=function nf(){let _=ue.requestAnimationFrame,b=ue.cancelAnimationFrame;if(typeof Zone<"u"&&_&&b){const C=_[Zone.__symbol__("OriginalDelegate")];C&&(_=C);const y=b[Zone.__symbol__("OriginalDelegate")];y&&(b=y)}return{nativeRequestAnimationFrame:_,nativeCancelAnimationFrame:b}}().nativeRequestAnimationFrame,function Hb(_){const b=()=>{!function pu(_){_.isCheckStableRunning||-1!==_.lastRequestAnimationFrameId||(_.lastRequestAnimationFrameId=_.nativeRequestAnimationFrame.call(ue,()=>{_.fakeTopEventTask||(_.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{_.lastRequestAnimationFrameId=-1,fu(_),_.isCheckStableRunning=!0,hu(_),_.isCheckStableRunning=!1},void 0,()=>{},()=>{})),_.fakeTopEventTask.invoke()}),fu(_))}(_)};_._inner=_._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(C,y,x,T,S,D)=>{try{return Zl(_),C.invokeTask(x,T,S,D)}finally{(_.shouldCoalesceEventChangeDetection&&"eventTask"===T.type||_.shouldCoalesceRunChangeDetection)&&b(),Xl(_)}},onInvoke:(C,y,x,T,S,D,H)=>{try{return Zl(_),C.invoke(x,T,S,D,H)}finally{_.shouldCoalesceRunChangeDetection&&b(),Xl(_)}},onHasTask:(C,y,x,T)=>{C.hasTask(x,T),y===x&&("microTask"==T.change?(_._hasPendingMicrotasks=T.microTask,fu(_),hu(_)):"macroTask"==T.change&&(_.hasPendingMacrotasks=T.macroTask))},onHandleError:(C,y,x,T)=>(C.handleError(x,T),_.runOutsideAngular(()=>_.onError.emit(T)),!1)})}(x)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Ji.isInAngularZone())throw new ae(909,!1)}static assertNotInAngularZone(){if(Ji.isInAngularZone())throw new ae(909,!1)}run(b,C,y){return this._inner.run(b,C,y)}runTask(b,C,y,x){const T=this._inner,S=T.scheduleEventTask("NgZoneEvent: "+x,b,rf,Jl,Jl);try{return T.runTask(S,C,y)}finally{T.cancelTask(S)}}runGuarded(b,C,y){return this._inner.runGuarded(b,C,y)}runOutsideAngular(b){return this._outer.run(b)}}const rf={};function hu(_){if(0==_._nesting&&!_.hasPendingMicrotasks&&!_.isStable)try{_._nesting++,_.onMicrotaskEmpty.emit(null)}finally{if(_._nesting--,!_.hasPendingMicrotasks)try{_.runOutsideAngular(()=>_.onStable.emit(null))}finally{_.isStable=!0}}}function fu(_){_.hasPendingMicrotasks=!!(_._hasPendingMicrotasks||(_.shouldCoalesceEventChangeDetection||_.shouldCoalesceRunChangeDetection)&&-1!==_.lastRequestAnimationFrameId)}function Zl(_){_._nesting++,_.isStable&&(_.isStable=!1,_.onUnstable.emit(null))}function Xl(_){_._nesting--,hu(_)}class gE{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new zr,this.onMicrotaskEmpty=new zr,this.onStable=new zr,this.onError=new zr}run(b,C,y){return b.apply(C,y)}runGuarded(b,C,y){return b.apply(C,y)}runOutsideAngular(b){return b()}runTask(b,C,y,x){return b.apply(C,y)}}const r0=new Ft(""),Rb=new Ft("");let Ts,_E=(()=>{class _{constructor(C,y,x){this._ngZone=C,this.registry=y,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Ts||(function tc(_){Ts=_}(x),x.addToWindow(y)),this._watchAngularEvents(),C.run(()=>{this.taskTrackingZone=typeof Zone>"u"?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:()=>{Ji.assertNotInAngularZone(),wo(()=>{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())wo(()=>{for(;0!==this._callbacks.length;){let C=this._callbacks.pop();clearTimeout(C.timeoutId),C.doneCb(this._didWork)}this._didWork=!1});else{let C=this.getPendingTasks();this._callbacks=this._callbacks.filter(y=>!y.updateCb||!y.updateCb(C)||(clearTimeout(y.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(C=>({source:C.source,creationLocation:C.creationLocation,data:C.data})):[]}addCallback(C,y,x){let T=-1;y&&y>0&&(T=setTimeout(()=>{this._callbacks=this._callbacks.filter(S=>S.timeoutId!==T),C(this._didWork,this.getPendingTasks())},y)),this._callbacks.push({doneCb:C,timeoutId:T,updateCb:x})}whenStable(C,y,x){if(x&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(C,y,x),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(C){this.registry.registerApplication(C,this)}unregisterApplication(C){this.registry.unregisterApplication(C)}findProviders(C,y,x){return[]}}return _.\u0275fac=function(C){return new(C||_)(li(Ji),li(ec),li(Rb))},_.\u0275prov=Dt({token:_,factory:_.\u0275fac}),_})(),ec=(()=>{class _{constructor(){this._applications=new Map}registerApplication(C,y){this._applications.set(C,y)}unregisterApplication(C){this._applications.delete(C)}unregisterAllApplications(){this._applications.clear()}getTestability(C){return this._applications.get(C)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(C,y=!0){return Ts?.findTestabilityInTree(this,C,y)??null}}return _.\u0275fac=function(C){return new(C||_)},_.\u0275prov=Dt({token:_,factory:_.\u0275fac,providedIn:"platform"}),_})(),Nn=null;const Pb=new Ft("AllowMultipleToken"),ic=new Ft("PlatformDestroyListeners");class o0{constructor(b,C){this.name=b,this.token=C}}function af(_,b,C=[]){const y=`Platform: ${b}`,x=new Ft(y);return(T=[])=>{let S=gu();if(!S||S.injector.get(Pb,!1)){const D=[...C,...T,{provide:x,useValue:!0}];_?_(D):function kb(_){if(Nn&&!Nn.get(Pb,!1))throw new ae(400,!1);Nn=_;const b=_.get(_u);(function l0(_){const b=_.get(cu,null);b&&b.forEach(C=>C())})(_)}(function mu(_=[],b){return rr.create({name:b,providers:[{provide:dl,useValue:"platform"},{provide:ic,useValue:new Set([()=>Nn=null])},..._]})}(D,y))}return function wE(_){const b=gu();if(!b)throw new ae(401,!1);return b}()}}function gu(){return Nn?.get(_u)??null}let _u=(()=>{class _{constructor(C){this._injector=C,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(C,y){const x=function vE(_,b){let C;return C="noop"===_?new gE:("zone.js"===_?void 0:_)||new Ji(b),C}(y?.ngZone,function Vb(_){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!_||!_.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!_||!_.ngZoneRunCoalescing)||!1}}(y)),T=[{provide:Ji,useValue:x}];return x.run(()=>{const S=rr.create({providers:T,parent:this.injector,name:C.moduleType.name}),D=C.create(S),H=D.injector.get(ed,null);if(!H)throw new ae(402,!1);return x.runOutsideAngular(()=>{const k=x.onError.subscribe({next:V=>{H.handleError(V)}});D.onDestroy(()=>{nc(this._modules,D),k.unsubscribe()})}),function Bb(_,b,C){try{const y=C();return vt(y)?y.catch(x=>{throw b.runOutsideAngular(()=>_.handleError(x)),x}):y}catch(y){throw b.runOutsideAngular(()=>_.handleError(y)),y}}(H,x,()=>{const k=D.injector.get(on);return k.runInitializers(),k.donePromise.then(()=>(function qv(_){Ot(_,"Expected localeId to be defined"),"string"==typeof _&&(Ll=_.toLowerCase().replace(/_/g,"-"))}(D.injector.get(tf,Nr)||Nr),this._moduleDoBootstrap(D),D))})})}bootstrapModule(C,y=[]){const x=Ss({},y);return function a0(_,b,C){const y=new Sa(C);return Promise.resolve(y)}(0,0,C).then(T=>this.bootstrapModuleFactory(T,x))}_moduleDoBootstrap(C){const y=C.injector.get(ka);if(C._bootstrapComponents.length>0)C._bootstrapComponents.forEach(x=>y.bootstrap(x));else{if(!C.instance.ngDoBootstrap)throw new ae(403,!1);C.instance.ngDoBootstrap(y)}this._modules.push(C)}onDestroy(C){this._destroyListeners.push(C)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ae(404,!1);this._modules.slice().forEach(y=>y.destroy()),this._destroyListeners.forEach(y=>y());const C=this._injector.get(ic,null);C&&(C.forEach(y=>y()),C.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return _.\u0275fac=function(C){return new(C||_)(li(rr))},_.\u0275prov=Dt({token:_,factory:_.\u0275fac,providedIn:"platform"}),_})();function Ss(_,b){return Array.isArray(b)?b.reduce(Ss,_):{..._,...b}}let ka=(()=>{class _{constructor(C,y,x){this._zone=C,this._injector=y,this._exceptionHandler=x,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const T=new L.y(D=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{D.next(this._stable),D.complete()})}),S=new L.y(D=>{let H;this._zone.runOutsideAngular(()=>{H=this._zone.onStable.subscribe(()=>{Ji.assertNotInAngularZone(),wo(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,D.next(!0))})})});const k=this._zone.onUnstable.subscribe(()=>{Ji.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{D.next(!1)}))});return()=>{H.unsubscribe(),k.unsubscribe()}});this.isStable=(0,F.T)(T,S.pipe((0,B.B)()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(C,y){const x=C instanceof Ww;if(!this._injector.get(on).done)throw!x&&Ql(C),new ae(405,false);let S;S=x?C:this._injector.get(ro).resolveComponentFactory(C),this.componentTypes.push(S.componentType);const D=function Ib(_){return _.isBoundToModule}(S)?void 0:this._injector.get(ur),k=S.create(rr.NULL,[],y||S.selector,D),V=k.location.nativeElement,U=k.injector.get(r0,null);return U?.registerApplication(V),k.onDestroy(()=>{this.detachView(k.hostView),nc(this.components,k),U?.unregisterApplication(V)}),this._loadComponent(k),k}tick(){if(this._runningTick)throw new ae(101,!1);try{this._runningTick=!0;for(let C of this._views)C.detectChanges()}catch(C){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(C))}finally{this._runningTick=!1}}attachView(C){const y=C;this._views.push(y),y.attachToAppRef(this)}detachView(C){const y=C;nc(this._views,y),y.detachFromAppRef()}_loadComponent(C){this.attachView(C.hostView),this.tick(),this.components.push(C),this._injector.get(Kl,[]).concat(this._bootstrapListeners).forEach(x=>x(C))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(C=>C()),this._views.slice().forEach(C=>C.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(C){return this._destroyListeners.push(C),()=>nc(this._destroyListeners,C)}destroy(){if(this._destroyed)throw new ae(406,!1);const C=this._injector;C.destroy&&!C.destroyed&&C.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return _.\u0275fac=function(C){return new(C||_)(li(Ji),li(Ir),li(ed))},_.\u0275prov=Dt({token:_,factory:_.\u0275fac,providedIn:"root"}),_})();function nc(_,b){const C=_.indexOf(b);C>-1&&_.splice(C,1)}let Ob=!0;function AE(){Ob=!1}let u0=(()=>{class _{}return _.__NG_ELEMENT_ID__=jb,_})();function jb(_){return function h0(_,b,C){if(Ga(_)&&!C){const y=Bt(_.index,b);return new ss(y,y)}return 47&_.type?new ss(b[16],b):null}($t(),we(),16==(16&_))}class qb{constructor(){}supports(b){return Id(b)}create(b){return new b0(b)}}const ff=(_,b)=>b;class b0{constructor(b){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=b||ff}forEachItem(b){let C;for(C=this._itHead;null!==C;C=C._next)b(C)}forEachOperation(b){let C=this._itHead,y=this._removalsHead,x=0,T=null;for(;C||y;){const S=!y||C&&C.currentIndex{S=this._trackByFn(x,D),null!==C&&Object.is(C.trackById,S)?(y&&(C=this._verifyReinsertion(C,D,S,x)),Object.is(C.item,D)||this._addIdentityChange(C,D)):(C=this._mismatch(C,D,S,x),y=!0),C=C._next,x++}),this.length=x;return this._truncate(C),this.collection=b,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let b;for(b=this._previousItHead=this._itHead;null!==b;b=b._next)b._nextPrevious=b._next;for(b=this._additionsHead;null!==b;b=b._nextAdded)b.previousIndex=b.currentIndex;for(this._additionsHead=this._additionsTail=null,b=this._movesHead;null!==b;b=b._nextMoved)b.previousIndex=b.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(b,C,y,x){let T;return null===b?T=this._itTail:(T=b._prev,this._remove(b)),null!==(b=null===this._unlinkedRecords?null:this._unlinkedRecords.get(y,null))?(Object.is(b.item,C)||this._addIdentityChange(b,C),this._reinsertAfter(b,T,x)):null!==(b=null===this._linkedRecords?null:this._linkedRecords.get(y,x))?(Object.is(b.item,C)||this._addIdentityChange(b,C),this._moveAfter(b,T,x)):b=this._addAfter(new zb(C,y),T,x),b}_verifyReinsertion(b,C,y,x){let T=null===this._unlinkedRecords?null:this._unlinkedRecords.get(y,null);return null!==T?b=this._reinsertAfter(T,b._prev,x):b.currentIndex!=x&&(b.currentIndex=x,this._addToMoves(b,x)),b}_truncate(b){for(;null!==b;){const C=b._next;this._addToRemovals(this._unlink(b)),b=C}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(b,C,y){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(b);const x=b._prevRemoved,T=b._nextRemoved;return null===x?this._removalsHead=T:x._nextRemoved=T,null===T?this._removalsTail=x:T._prevRemoved=x,this._insertAfter(b,C,y),this._addToMoves(b,y),b}_moveAfter(b,C,y){return this._unlink(b),this._insertAfter(b,C,y),this._addToMoves(b,y),b}_addAfter(b,C,y){return this._insertAfter(b,C,y),this._additionsTail=null===this._additionsTail?this._additionsHead=b:this._additionsTail._nextAdded=b,b}_insertAfter(b,C,y){const x=null===C?this._itHead:C._next;return b._next=x,b._prev=C,null===x?this._itTail=b:x._prev=b,null===C?this._itHead=b:C._next=b,null===this._linkedRecords&&(this._linkedRecords=new wu),this._linkedRecords.put(b),b.currentIndex=y,b}_remove(b){return this._addToRemovals(this._unlink(b))}_unlink(b){null!==this._linkedRecords&&this._linkedRecords.remove(b);const C=b._prev,y=b._next;return null===C?this._itHead=y:C._next=y,null===y?this._itTail=C:y._prev=C,b}_addToMoves(b,C){return b.previousIndex===C||(this._movesTail=null===this._movesTail?this._movesHead=b:this._movesTail._nextMoved=b),b}_addToRemovals(b){return null===this._unlinkedRecords&&(this._unlinkedRecords=new wu),this._unlinkedRecords.put(b),b.currentIndex=null,b._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=b,b._prevRemoved=null):(b._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=b),b}_addIdentityChange(b,C){return b.item=C,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=b:this._identityChangesTail._nextIdentityChange=b,b}}class zb{constructor(b,C){this.item=b,this.trackById=C,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 C0{constructor(){this._head=null,this._tail=null}add(b){null===this._head?(this._head=this._tail=b,b._nextDup=null,b._prevDup=null):(this._tail._nextDup=b,b._prevDup=this._tail,b._nextDup=null,this._tail=b)}get(b,C){let y;for(y=this._head;null!==y;y=y._nextDup)if((null===C||C<=y.currentIndex)&&Object.is(y.trackById,b))return y;return null}remove(b){const C=b._prevDup,y=b._nextDup;return null===C?this._head=y:C._nextDup=y,null===y?this._tail=C:y._prevDup=C,null===this._head}}class wu{constructor(){this.map=new Map}put(b){const C=b.trackById;let y=this.map.get(C);y||(y=new C0,this.map.set(C,y)),y.add(b)}get(b,C){const x=this.map.get(b);return x?x.get(b,C):null}remove(b){const C=b.trackById;return this.map.get(C).remove(b)&&this.map.delete(C),b}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Gb(_,b,C){const y=_.previousIndex;if(null===y)return y;let x=0;return C&&y{if(C&&C.key===x)this._maybeAddToChanges(C,y),this._appendAfter=C,C=C._next;else{const T=this._getOrCreateRecordForKey(x,y);C=this._insertBeforeOrAppend(C,T)}}),C){C._prev&&(C._prev._next=null),this._removalsHead=C;for(let y=C;null!==y;y=y._nextRemoved)y===this._mapHead&&(this._mapHead=null),this._records.delete(y.key),y._nextRemoved=y._next,y.previousValue=y.currentValue,y.currentValue=null,y._prev=null,y._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(b,C){if(b){const y=b._prev;return C._next=b,C._prev=y,b._prev=C,y&&(y._next=C),b===this._mapHead&&(this._mapHead=C),this._appendAfter=b,b}return this._appendAfter?(this._appendAfter._next=C,C._prev=this._appendAfter):this._mapHead=C,this._appendAfter=C,null}_getOrCreateRecordForKey(b,C){if(this._records.has(b)){const x=this._records.get(b);this._maybeAddToChanges(x,C);const T=x._prev,S=x._next;return T&&(T._next=S),S&&(S._prev=T),x._next=null,x._prev=null,x}const y=new w0(b);return this._records.set(b,y),y.currentValue=C,this._addToAdditions(y),y}_reset(){if(this.isDirty){let b;for(this._previousMapHead=this._mapHead,b=this._previousMapHead;null!==b;b=b._next)b._nextPrevious=b._next;for(b=this._changesHead;null!==b;b=b._nextChanged)b.previousValue=b.currentValue;for(b=this._additionsHead;null!=b;b=b._nextAdded)b.previousValue=b.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(b,C){Object.is(C,b.currentValue)||(b.previousValue=b.currentValue,b.currentValue=C,this._addToChanges(b))}_addToAdditions(b){null===this._additionsHead?this._additionsHead=this._additionsTail=b:(this._additionsTail._nextAdded=b,this._additionsTail=b)}_addToChanges(b){null===this._changesHead?this._changesHead=this._changesTail=b:(this._changesTail._nextChanged=b,this._changesTail=b)}_forEach(b,C){b instanceof Map?b.forEach(C):Object.keys(b).forEach(y=>C(b[y],y))}}class w0{constructor(b){this.key=b,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function y0(){return new ac([new qb])}let ac=(()=>{class _{constructor(C){this.factories=C}static create(C,y){if(null!=y){const x=y.factories.slice();C=C.concat(x)}return new _(C)}static extend(C){return{provide:_,useFactory:y=>_.create(C,y||y0()),deps:[[_,new $o,new Xs]]}}find(C){const y=this.factories.find(x=>x.supports(C));if(null!=y)return y;throw new ae(901,!1)}}return _.\u0275prov=Dt({token:_,providedIn:"root",factory:y0}),_})();function mf(){return new yu([new Wb])}let yu=(()=>{class _{constructor(C){this.factories=C}static create(C,y){if(y){const x=y.factories.slice();C=C.concat(x)}return new _(C)}static extend(C){return{provide:_,useFactory:y=>_.create(C,y||mf()),deps:[[_,new $o,new Xs]]}}find(C){const y=this.factories.find(x=>x.supports(C));if(y)return y;throw new ae(901,!1)}}return _.\u0275prov=Dt({token:_,providedIn:"root",factory:mf}),_})();const Qb=af(null,"core",[]);let x0=(()=>{class _{constructor(C){}}return _.\u0275fac=function(C){return new(C||_)(li(ka))},_.\u0275mod=Zr({type:_}),_.\u0275inj=oi({}),_})();function T0(_){return"boolean"==typeof _?_:null!=_&&"false"!==_}},1214:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Ct:()=>OAuthService,Hy:()=>OAuthStorage,zr:()=>OAuthModule});var _home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5861),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(4650),_angular_common__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(6895),_angular_common_http__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(529),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(7579),rxjs__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(9646),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(2076),rxjs__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(102),rxjs__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(2843),rxjs__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(9841),rxjs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(6451),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(9300),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(8505),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(8372),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(1005),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(3900),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(4004),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(590),rxjs_operators__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(262),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(7414),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(5698),rxjs_operators__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(5577),fast_sha256__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1302);class DateTimeProvider{}let SystemDateTimeProvider=(()=>{class N extends DateTimeProvider{now(){return Date.now()}new(){return new Date}}return N.\u0275fac=function(){let z;return function(M){return(z||(z=_angular_core__WEBPACK_IMPORTED_MODULE_1__.n5z(N)))(M||N)}}(),N.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:N,factory:N.\u0275fac}),N})();class LoginOptions{constructor(){this.disableNonceCheck=!1,this.preventClearHashAfterLogin=!1}}class OAuthLogger{}class OAuthStorage{}let MemoryStorage=(()=>{class N{constructor(){this.data=new Map}getItem(E){return this.data.get(E)}removeItem(E){this.data.delete(E)}setItem(E,M){this.data.set(E,M)}}return N.\u0275fac=function(E){return new(E||N)},N.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:N,factory:N.\u0275fac}),N})();class ReceivedTokens{}class OAuthEvent{constructor(z){this.type=z}}class OAuthSuccessEvent extends OAuthEvent{constructor(z,E=null){super(z),this.info=E}}class OAuthInfoEvent extends OAuthEvent{constructor(z,E=null){super(z),this.info=E}}class OAuthErrorEvent extends OAuthEvent{constructor(z,E,M=null){super(z),this.reason=E,this.params=M}}function b64DecodeUnicode(N){const z=N.replace(/\-/g,"+").replace(/\_/g,"/");return decodeURIComponent(atob(z).split("").map(function(E){return"%"+("00"+E.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function base64UrlEncode(N){return btoa(N).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}class AuthConfig{constructor(z){this.clientId="",this.redirectUri="",this.postLogoutRedirectUri="",this.redirectUriAsPostLogoutRedirectUriFallback=!0,this.loginUrl="",this.scope="openid profile",this.resource="",this.rngUrl="",this.oidc=!0,this.requestAccessToken=!0,this.options=null,this.issuer="",this.logoutUrl="",this.clearHashAfterLogin=!0,this.tokenEndpoint=null,this.revocationEndpoint=null,this.customTokenParameters=[],this.userinfoEndpoint=null,this.responseType="",this.showDebugInformation=!1,this.silentRefreshRedirectUri="",this.silentRefreshMessagePrefix="",this.silentRefreshShowIFrame=!1,this.siletRefreshTimeout=2e4,this.silentRefreshTimeout=2e4,this.dummyClientSecret=null,this.requireHttps="remoteOnly",this.strictDiscoveryDocumentValidation=!0,this.jwks=null,this.customQueryParams=null,this.silentRefreshIFrameName="angular-oauth-oidc-silent-refresh-iframe",this.timeoutFactor=.75,this.sessionChecksEnabled=!1,this.sessionCheckIntervall=3e3,this.sessionCheckIFrameUrl=null,this.sessionCheckIFrameName="angular-oauth-oidc-check-session-iframe",this.disableAtHashCheck=!1,this.skipSubjectCheck=!1,this.useIdTokenHintForSilentRefresh=!1,this.skipIssuerCheck=!1,this.nonceStateSeparator=";",this.useHttpBasicAuth=!1,this.waitForTokenInMsec=0,this.disablePKCE=!1,this.preserveRequestedRoute=!1,this.openUri=E=>{location.href=E},z&&Object.assign(this,z)}}class WebHttpUrlEncodingCodec{encodeKey(z){return encodeURIComponent(z)}encodeValue(z){return encodeURIComponent(z)}decodeKey(z){return decodeURIComponent(z)}decodeValue(z){return decodeURIComponent(z)}}class ValidationHandler{}class AbstractValidationHandler{validateAtHash(z){var E=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){let M=E.inferHashAlgorithm(z.idTokenHeader),f=yield E.calcHash(z.accessToken,M),F=base64UrlEncode(f.substr(0,f.length/2)),B=z.idTokenClaims.at_hash.replace(/=/g,"");return F!==B&&(console.error("exptected at_hash: "+F),console.error("actual at_hash: "+B)),F===B})()}inferHashAlgorithm(z){let E=z.alg;if(!E.match(/^.S[0-9]{3}$/))throw new Error("Algorithm not supported: "+E);return"sha-"+E.substr(2)}}let UrlHelperService=(()=>{class N{getHashFragmentParams(E){let M=E||window.location.hash;if(M=decodeURIComponent(M),0!==M.indexOf("#"))return{};const f=M.indexOf("?");return M=M.substr(f>-1?f+1:1),this.parseQueryString(M)}parseQueryString(E){const M={};let f,L,F,B,q,Q,ee;if(null===E)return M;f=E.split("&");for(let W=0;W>6,L[B++]=128|63&q):q<55296||q>=57344?(L[B++]=224|q>>12,L[B++]=128|q>>6&63,L[B++]=128|63&q):(q=65536+((1023&q)<<10|1023&N.charCodeAt(++M)),L[B++]=240|q>>18,L[B++]=128|q>>12&63,L[B++]=128|q>>6&63,L[B++]=128|63&q);N=L}else{if("object"!==f)throw new Error(ERROR);if(null===N)throw new Error(ERROR);if(ARRAY_BUFFER&&N.constructor===ArrayBuffer)N=new Uint8Array(N);else if(!(Array.isArray(N)||ARRAY_BUFFER&&ArrayBuffer.isView(N)))throw new Error(ERROR)}N.length>64&&(N=new Sha256(z,!0).update(N).array());var Q=[],ee=[];for(M=0;M<64;++M){var W=N[M]||0;Q[M]=92^W,ee[M]=54^W}Sha256.call(this,z,E),this.update(ee),this.oKeyPad=Q,this.inner=!0,this.sharedMemory=E}Sha256.prototype.update=function(N){if(!this.finalized){var z,E=typeof N;if("string"!==E){if("object"!==E)throw new Error(ERROR);if(null===N)throw new Error(ERROR);if(ARRAY_BUFFER&&N.constructor===ArrayBuffer)N=new Uint8Array(N);else if(!(Array.isArray(N)||ARRAY_BUFFER&&ArrayBuffer.isView(N)))throw new Error(ERROR);z=!0}for(var M,L,f=0,F=N.length,B=this.blocks;f>2]|=N[f]<>2]|=M<>2]|=(192|M>>6)<>2]|=(128|63&M)<=57344?(B[L>>2]|=(224|M>>12)<>2]|=(128|M>>6&63)<>2]|=(128|63&M)<>2]|=(240|M>>18)<>2]|=(128|M>>12&63)<>2]|=(128|M>>6&63)<>2]|=(128|63&M)<=64?(this.block=B[16],this.start=L-64,this.hash(),this.hashed=!0):this.start=L}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var N=this.blocks,z=this.lastByteIndex;N[16]=this.block,N[z>>2]|=EXTRA[3&z],this.block=N[16],z>=56&&(this.hashed||this.hash(),N[0]=this.block,N[16]=N[1]=N[2]=N[3]=N[4]=N[5]=N[6]=N[7]=N[8]=N[9]=N[10]=N[11]=N[12]=N[13]=N[14]=N[15]=0),N[14]=this.hBytes<<3|this.bytes>>>29,N[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var Q,G,ie,ae,he,fe,N=this.h0,z=this.h1,E=this.h2,M=this.h3,f=this.h4,L=this.h5,F=this.h6,B=this.h7,q=this.blocks;for(Q=16;Q<64;++Q)q[Q]=q[Q-16]+(((G=q[Q-15])>>>7|G<<25)^(G>>>18|G<<14)^G>>>3)+q[Q-7]+(((G=q[Q-2])>>>17|G<<15)^(G>>>19|G<<13)^G>>>10)<<0;for(fe=z&E,Q=0;Q<64;Q+=4)this.first?(this.is224?(ie=300032,B=(G=q[0]-1413257819)-150054599<<0,M=G+24177077<<0):(ie=704751109,B=(G=q[0]-210244248)-1521486534<<0,M=G+143694565<<0),this.first=!1):(B=M+(G=B+((f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&L^~f&F)+K[Q]+q[Q])<<0,M=G+(((N>>>2|N<<30)^(N>>>13|N<<19)^(N>>>22|N<<10))+((ie=N&z)^N&E^fe))<<0),F=E+(G=F+((B>>>6|B<<26)^(B>>>11|B<<21)^(B>>>25|B<<7))+(B&f^~B&L)+K[Q+1]+q[Q+1])<<0,E=G+(((M>>>2|M<<30)^(M>>>13|M<<19)^(M>>>22|M<<10))+((ae=M&N)^M&z^ie))<<0,L=z+(G=L+((F>>>6|F<<26)^(F>>>11|F<<21)^(F>>>25|F<<7))+(F&B^~F&f)+K[Q+2]+q[Q+2])<<0,z=G+(((E>>>2|E<<30)^(E>>>13|E<<19)^(E>>>22|E<<10))+((he=E&M)^E&N^ae))<<0,f=N+(G=f+((L>>>6|L<<26)^(L>>>11|L<<21)^(L>>>25|L<<7))+(L&F^~L&B)+K[Q+3]+q[Q+3])<<0,N=G+(((z>>>2|z<<30)^(z>>>13|z<<19)^(z>>>22|z<<10))+((fe=z&E)^z&M^he))<<0;this.h0=this.h0+N<<0,this.h1=this.h1+z<<0,this.h2=this.h2+E<<0,this.h3=this.h3+M<<0,this.h4=this.h4+f<<0,this.h5=this.h5+L<<0,this.h6=this.h6+F<<0,this.h7=this.h7+B<<0},Sha256.prototype.hex=function(){this.finalize();var N=this.h0,z=this.h1,E=this.h2,M=this.h3,f=this.h4,L=this.h5,F=this.h6,B=this.h7,q=HEX_CHARS[N>>28&15]+HEX_CHARS[N>>24&15]+HEX_CHARS[N>>20&15]+HEX_CHARS[N>>16&15]+HEX_CHARS[N>>12&15]+HEX_CHARS[N>>8&15]+HEX_CHARS[N>>4&15]+HEX_CHARS[15&N]+HEX_CHARS[z>>28&15]+HEX_CHARS[z>>24&15]+HEX_CHARS[z>>20&15]+HEX_CHARS[z>>16&15]+HEX_CHARS[z>>12&15]+HEX_CHARS[z>>8&15]+HEX_CHARS[z>>4&15]+HEX_CHARS[15&z]+HEX_CHARS[E>>28&15]+HEX_CHARS[E>>24&15]+HEX_CHARS[E>>20&15]+HEX_CHARS[E>>16&15]+HEX_CHARS[E>>12&15]+HEX_CHARS[E>>8&15]+HEX_CHARS[E>>4&15]+HEX_CHARS[15&E]+HEX_CHARS[M>>28&15]+HEX_CHARS[M>>24&15]+HEX_CHARS[M>>20&15]+HEX_CHARS[M>>16&15]+HEX_CHARS[M>>12&15]+HEX_CHARS[M>>8&15]+HEX_CHARS[M>>4&15]+HEX_CHARS[15&M]+HEX_CHARS[f>>28&15]+HEX_CHARS[f>>24&15]+HEX_CHARS[f>>20&15]+HEX_CHARS[f>>16&15]+HEX_CHARS[f>>12&15]+HEX_CHARS[f>>8&15]+HEX_CHARS[f>>4&15]+HEX_CHARS[15&f]+HEX_CHARS[L>>28&15]+HEX_CHARS[L>>24&15]+HEX_CHARS[L>>20&15]+HEX_CHARS[L>>16&15]+HEX_CHARS[L>>12&15]+HEX_CHARS[L>>8&15]+HEX_CHARS[L>>4&15]+HEX_CHARS[15&L]+HEX_CHARS[F>>28&15]+HEX_CHARS[F>>24&15]+HEX_CHARS[F>>20&15]+HEX_CHARS[F>>16&15]+HEX_CHARS[F>>12&15]+HEX_CHARS[F>>8&15]+HEX_CHARS[F>>4&15]+HEX_CHARS[15&F];return this.is224||(q+=HEX_CHARS[B>>28&15]+HEX_CHARS[B>>24&15]+HEX_CHARS[B>>20&15]+HEX_CHARS[B>>16&15]+HEX_CHARS[B>>12&15]+HEX_CHARS[B>>8&15]+HEX_CHARS[B>>4&15]+HEX_CHARS[15&B]),q},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var N=this.h0,z=this.h1,E=this.h2,M=this.h3,f=this.h4,L=this.h5,F=this.h6,B=this.h7,q=[N>>24&255,N>>16&255,N>>8&255,255&N,z>>24&255,z>>16&255,z>>8&255,255&z,E>>24&255,E>>16&255,E>>8&255,255&E,M>>24&255,M>>16&255,M>>8&255,255&M,f>>24&255,f>>16&255,f>>8&255,255&f,L>>24&255,L>>16&255,L>>8&255,255&L,F>>24&255,F>>16&255,F>>8&255,255&F];return this.is224||q.push(B>>24&255,B>>16&255,B>>8&255,255&B),q},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var N=new ArrayBuffer(this.is224?28:32),z=new DataView(N);return z.setUint32(0,this.h0),z.setUint32(4,this.h1),z.setUint32(8,this.h2),z.setUint32(12,this.h3),z.setUint32(16,this.h4),z.setUint32(20,this.h5),z.setUint32(24,this.h6),this.is224||z.setUint32(28,this.h7),N},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var N=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(N),Sha256.prototype.finalize.call(this)}};var exports=createMethod();return exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),exports}const sha256=factory();class HashHandler{}function decodeUTF8(N){if("string"!=typeof N)throw new TypeError("expected string");var z,E=N,M=new Uint8Array(E.length);for(z=0;z{class N{calcHash(E,M){return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){return encodeUTF8(fast_sha256__WEBPACK_IMPORTED_MODULE_0__(decodeUTF8(E)))})()}toHashString2(E){let M="";for(let f of E)M+=String.fromCharCode(f);return M}toHashString(E){const M=new Uint8Array(E);let f="";for(let L of M)f+=String.fromCharCode(L);return f}}return N.\u0275fac=function(E){return new(E||N)},N.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:N,factory:N.\u0275fac}),N})(),OAuthService=(()=>{class N extends AuthConfig{constructor(E,M,f,L,F,B,q,Q,ee,W){super(),this.ngZone=E,this.http=M,this.config=F,this.urlHelper=B,this.logger=q,this.crypto=Q,this.dateTimeService=W,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.discoveryDocumentLoadedSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=ee,F||(F={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),L&&(this.tokenValidationHandler=L),F&&this.configure(F);try{f?this.setStorage(f):typeof sessionStorage<"u"&&this.setStorage(sessionStorage)}catch(Y){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",Y)}if(this.checkLocalStorageAccessable()){const Y=window?.navigator?.userAgent;(Y?.includes("MSIE ")||Y?.includes("Trident"))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if(typeof window>"u")return!1;const E="test";try{return!(typeof window.localStorage>"u"||(localStorage.setItem(E,E),localStorage.removeItem(E),0))}catch{return!1}}configure(E){Object.assign(this,new AuthConfig,E),this.config=Object.assign({},new AuthConfig,E),this.sessionChecksEnabled&&this.setupSessionCheck(),this.configChanged()}configChanged(){this.setupRefreshTimer()}restartSessionChecksIfStillLoggedIn(){this.hasValidIdToken()&&this.initSessionCheck()}restartRefreshTimerIfStillLoggedIn(){this.setupExpirationTimers()}setupSessionCheck(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(E=>"token_received"===E.type)).subscribe(E=>{this.initSessionCheck()})}setupAutomaticSilentRefresh(E={},M,f=!0){let L=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(F=>{"token_received"===F.type?L=!0:"logout"===F.type&&(L=!1)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(F=>"token_expires"===F.type&&(null==M||"any"===M||F.info===M)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.b)(1e3)).subscribe(F=>{L&&this.refreshInternal(E,f).catch(B=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(E,M){return this.useSilentRefresh||"code"!==this.responseType?this.silentRefresh(E,M):this.refreshToken()}loadDiscoveryDocumentAndTryLogin(E=null){return this.loadDiscoveryDocument().then(M=>this.tryLogin(E))}loadDiscoveryDocumentAndLogin(E=null){return this.loadDiscoveryDocumentAndTryLogin(E=E||{}).then(M=>!(!this.hasValidIdToken()||!this.hasValidAccessToken())||(this.initLoginFlow("string"==typeof E.state?E.state:""),!1))}debug(...E){this.showDebugInformation&&this.logger.debug.apply(this.logger,E)}validateUrlFromDiscoveryDocument(E){const M=[],f=this.validateUrlForHttps(E),L=this.validateUrlAgainstIssuer(E);return f||M.push("https for all urls required. Also for urls received by discovery."),L||M.push("Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation."),M}validateUrlForHttps(E){if(!E)return!0;const M=E.toLowerCase();return!(!1!==this.requireHttps&&(!M.match(/^http:\/\/localhost($|[:\/])/)&&!M.match(/^http:\/\/localhost($|[:\/])/)||"remoteOnly"!==this.requireHttps))||M.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(E,M){if(!E)throw new Error(`'${M}' should not be null`);if(!this.validateUrlForHttps(E))throw new Error(`'${M}' must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).`)}validateUrlAgainstIssuer(E){return!this.strictDiscoveryDocumentValidation||!E||E.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){typeof window>"u"?this.debug("timer not supported on this plattform"):((this.hasValidIdToken()||this.hasValidAccessToken())&&(this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()),this.tokenReceivedSubscription&&this.tokenReceivedSubscription.unsubscribe(),this.tokenReceivedSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(E=>"token_received"===E.type)).subscribe(E=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()}))}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){const E=this.getAccessTokenExpiration(),M=this.getAccessTokenStoredAt(),f=this.calcTimeout(M,E);this.ngZone.runOutsideAngular(()=>{this.accessTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","access_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(f)).subscribe(L=>{this.ngZone.run(()=>{this.eventsSubject.next(L)})})})}setupIdTokenTimer(){const E=this.getIdTokenExpiration(),M=this.getIdTokenStoredAt(),f=this.calcTimeout(M,E);this.ngZone.runOutsideAngular(()=>{this.idTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","id_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(f)).subscribe(L=>{this.ngZone.run(()=>{this.eventsSubject.next(L)})})})}stopAutomaticRefresh(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.clearAutomaticRefreshTimer()}clearAccessTokenTimer(){this.accessTokenTimeoutSubscription&&this.accessTokenTimeoutSubscription.unsubscribe()}clearIdTokenTimer(){this.idTokenTimeoutSubscription&&this.idTokenTimeoutSubscription.unsubscribe()}clearAutomaticRefreshTimer(){this.automaticRefreshSubscription&&this.automaticRefreshSubscription.unsubscribe()}calcTimeout(E,M){const f=this.dateTimeService.now();return Math.max(0,(M-E)*this.timeoutFactor-(f-E))}setStorage(E){this._storage=E,this.configChanged()}loadDiscoveryDocument(E=null){return new Promise((M,f)=>{E||((E=this.issuer||"").endsWith("/")||(E+="/"),E+=".well-known/openid-configuration"),this.validateUrlForHttps(E)?this.http.get(E).subscribe(L=>{if(!this.validateDiscoveryDocument(L))return this.eventsSubject.next(new OAuthErrorEvent("discovery_document_validation_error",null)),void f("discovery_document_validation_error");this.loginUrl=L.authorization_endpoint,this.logoutUrl=L.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=L.grant_types_supported,this.issuer=L.issuer,this.tokenEndpoint=L.token_endpoint,this.userinfoEndpoint=L.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=L.jwks_uri,this.sessionCheckIFrameUrl=L.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(L),this.revocationEndpoint=L.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(F=>{const q=new OAuthSuccessEvent("discovery_document_loaded",{discoveryDocument:L,jwks:F});this.eventsSubject.next(q),M(q)}).catch(F=>{this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",F)),f(F)})},L=>{this.logger.error("error loading discovery document",L),this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",L)),f(L)}):f("issuer must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).")})}loadJwks(){return new Promise((E,M)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(f=>{this.jwks=f,this.eventsSubject.next(new OAuthSuccessEvent("discovery_document_loaded")),E(f)},f=>{this.logger.error("error loading jwks",f),this.eventsSubject.next(new OAuthErrorEvent("jwks_load_error",f)),M(f)}):E(null)})}validateDiscoveryDocument(E){let M;return this.skipIssuerCheck||E.issuer===this.issuer?(M=this.validateUrlFromDiscoveryDocument(E.authorization_endpoint),M.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",M),!1):(M=this.validateUrlFromDiscoveryDocument(E.end_session_endpoint),M.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",M),!1):(M=this.validateUrlFromDiscoveryDocument(E.token_endpoint),M.length>0&&this.logger.error("error validating token_endpoint in discovery document",M),M=this.validateUrlFromDiscoveryDocument(E.revocation_endpoint),M.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",M),M=this.validateUrlFromDiscoveryDocument(E.userinfo_endpoint),M.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",M),!1):(M=this.validateUrlFromDiscoveryDocument(E.jwks_uri),M.length>0?(this.logger.error("error validating jwks_uri in discovery document",M),!1):(this.sessionChecksEnabled&&!E.check_session_iframe&&this.logger.warn("sessionChecksEnabled is activated but discovery document does not contain a check_session_iframe field"),!0))))):(this.logger.error("invalid issuer in discovery document","expected: "+this.issuer,"current: "+E.issuer),!1)}fetchTokenUsingPasswordFlowAndLoadUserProfile(E,M,f=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingPasswordFlow(E,M,f).then(()=>this.loadUserProfile())}loadUserProfile(){if(!this.hasValidAccessToken())throw new Error("Can not load User Profile without access_token");if(!this.validateUrlForHttps(this.userinfoEndpoint))throw new Error("userinfoEndpoint must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");return new Promise((E,M)=>{const f=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:f,observe:"response",responseType:"text"}).subscribe(L=>{if(this.debug("userinfo received",JSON.stringify(L)),L.headers.get("content-type").startsWith("application/json")){let F=JSON.parse(L.body);const B=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!B.sub||F.sub!==B.sub))return void M("if property oidc is true, the received user-id (sub) has to be the user-id of the user that has logged in with oidc.\nif you are not using oidc but just oauth2 password flow set oidc to false");F=Object.assign({},B,F),this._storage.setItem("id_token_claims_obj",JSON.stringify(F)),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),E({info:F})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),E(JSON.parse(L.body))},L=>{this.logger.error("error loading user info",L),this.eventsSubject.next(new OAuthErrorEvent("user_profile_load_error",L)),M(L)})})}fetchTokenUsingPasswordFlow(E,M,f=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingGrant("password",{username:E,password:M},f)}fetchTokenUsingGrant(E,M,f=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let L=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type",E).set("scope",this.scope);if(this.useHttpBasicAuth){const F=btoa(`${this.clientId}:${this.dummyClientSecret}`);f=f.set("Authorization","Basic "+F)}if(this.useHttpBasicAuth||(L=L.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(L=L.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const F of Object.getOwnPropertyNames(this.customQueryParams))L=L.set(F,this.customQueryParams[F]);for(const F of Object.keys(M))L=L.set(F,M[F]);return f=f.set("Content-Type","application/x-www-form-urlencoded"),new Promise((F,B)=>{this.http.post(this.tokenEndpoint,L,{headers:f}).subscribe(q=>{this.debug("tokenResponse",q),this.storeAccessTokenResponse(q.access_token,q.refresh_token,q.expires_in||this.fallbackAccessTokenExpirationTimeInSec,q.scope,this.extractRecognizedCustomParameters(q)),this.oidc&&q.id_token&&this.processIdToken(q.id_token,q.access_token).then(Q=>{this.storeIdToken(Q),F(q)}),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),F(q)},q=>{this.logger.error("Error performing ${grantType} flow",q),this.eventsSubject.next(new OAuthErrorEvent("token_error",q)),B(q)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((E,M)=>{let f=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","refresh_token").set("scope",this.scope).set("refresh_token",this._storage.getItem("refresh_token")),L=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const F=btoa(`${this.clientId}:${this.dummyClientSecret}`);L=L.set("Authorization","Basic "+F)}if(this.useHttpBasicAuth||(f=f.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(f=f.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const F of Object.getOwnPropertyNames(this.customQueryParams))f=f.set(F,this.customQueryParams[F]);this.http.post(this.tokenEndpoint,f,{headers:L}).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.w)(F=>F.id_token?(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.D)(this.processIdToken(F.id_token,F.access_token,!0)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(B=>this.storeIdToken(B)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(B=>F)):(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(F))).subscribe(F=>{this.debug("refresh tokenResponse",F),this.storeAccessTokenResponse(F.access_token,F.refresh_token,F.expires_in||this.fallbackAccessTokenExpirationTimeInSec,F.scope,this.extractRecognizedCustomParameters(F)),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),E(F)},F=>{this.logger.error("Error refreshing token",F),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",F)),M(F)})})}removeSilentRefreshEventListener(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}setupSilentRefreshEventListener(){this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=E=>{const M=this.processMessageEventMessage(E);this.tryLogin({customHashFragment:M,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri||this.redirectUri}).catch(f=>this.debug("tryLogin during silent refresh failed",f))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(E={},M=!0){const f=this.getIdentityClaims()||{};if(this.useIdTokenHintForSilentRefresh&&this.hasValidIdToken()&&(E.id_token_hint=this.getIdToken()),!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(typeof this.document>"u")throw new Error("silent refresh is not supported on this platform");const L=this.document.getElementById(this.silentRefreshIFrameName);L&&this.document.body.removeChild(L),this.silentRefreshSubject=f.sub;const F=this.document.createElement("iframe");F.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,M,E).then(W=>{F.setAttribute("src",W),this.silentRefreshShowIFrame||(F.style.display="none"),this.document.body.appendChild(F)});const q=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(W=>W instanceof OAuthErrorEvent),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),Q=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(W=>"token_received"===W.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),ee=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthErrorEvent("silent_refresh_timeout",null)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(this.silentRefreshTimeout));return(0,rxjs__WEBPACK_IMPORTED_MODULE_14__.S)([q,Q,ee]).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(W=>{if(W instanceof OAuthErrorEvent)throw"silent_refresh_timeout"===W.type||(W=new OAuthErrorEvent("silent_refresh_error",W)),this.eventsSubject.next(W),W;return"token_received"===W.type&&(W=new OAuthSuccessEvent("silently_refreshed"),this.eventsSubject.next(W)),W})).toPromise()}initImplicitFlowInPopup(E){return this.initLoginFlowInPopup(E)}initLoginFlowInPopup(E){return E=E||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(M=>new Promise((f,L)=>{let q,B=null;E.windowRef?E.windowRef&&!E.windowRef.closed&&(B=E.windowRef,B.location.href=M):B=window.open(M,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(E));const Q=re=>{this.tryLogin({customHashFragment:re,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{W(),f(!0)},oe=>{W(),L(oe)})};B?q=window.setInterval(()=>{(!B||B.closed)&&(W(),L(new OAuthErrorEvent("popup_closed",{})))},500):L(new OAuthErrorEvent("popup_blocked",{}));const W=()=>{window.clearInterval(q),window.removeEventListener("storage",G),window.removeEventListener("message",Y),null!==B&&B.close(),B=null},Y=re=>{const oe=this.processMessageEventMessage(re);oe&&null!==oe?(window.removeEventListener("storage",G),Q(oe)):console.log("false event firing")},G=re=>{"auth_hash"===re.key&&(window.removeEventListener("message",Y),Q(re.newValue))};window.addEventListener("message",Y),window.addEventListener("storage",G)}))}calculatePopupFeatures(E){const M=E.height||470,f=E.width||500,L=window.screenLeft+(window.outerWidth-f)/2;return`location=no,toolbar=no,width=${f},height=${M},top=${window.screenTop+(window.outerHeight-M)/2},left=${L}`}processMessageEventMessage(E){let M="#";if(this.silentRefreshMessagePrefix&&(M+=this.silentRefreshMessagePrefix),!E||!E.data||"string"!=typeof E.data)return;const f=E.data;return f.startsWith(M)?"#"+f.substr(M.length):void 0}canPerformSessionCheck(){return!(!this.sessionChecksEnabled||(this.sessionCheckIFrameUrl?this.getSessionState()?typeof this.document>"u":(console.warn("sessionChecksEnabled is activated but there is no session_state"),1):(console.warn("sessionChecksEnabled is activated but there is no sessionCheckIFrameUrl"),1)))}setupSessionCheckEventListener(){this.removeSessionCheckEventListener(),this.sessionCheckEventListener=E=>{const M=E.origin.toLowerCase(),f=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),f.startsWith(M)){switch(E.data){case"unchanged":this.ngZone.run(()=>{this.handleSessionUnchanged()});break;case"changed":this.ngZone.run(()=>{this.handleSessionChange()});break;case"error":this.ngZone.run(()=>{this.handleSessionError()})}this.debug("got info from session check inframe",E)}else this.debug("sessionCheckEventListener","wrong origin",M,"expected",f,"event",E)},this.ngZone.runOutsideAngular(()=>{window.addEventListener("message",this.sessionCheckEventListener)})}handleSessionUnchanged(){this.debug("session check","session unchanged"),this.eventsSubject.next(new OAuthInfoEvent("session_unchanged"))}handleSessionChange(){this.eventsSubject.next(new OAuthInfoEvent("session_changed")),this.stopSessionCheckTimer(),this.useSilentRefresh||"code"!==this.responseType?this.silentRefreshRedirectUri?(this.silentRefresh().catch(E=>this.debug("silent refresh failed after session changed")),this.waitForSilentRefreshAfterSessionChange()):(this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)):this.refreshToken().then(E=>{this.debug("token refresh after session change worked")}).catch(E=>{this.debug("token refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)})}waitForSilentRefreshAfterSessionChange(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(E=>"silently_refreshed"===E.type||"silent_refresh_timeout"===E.type||"silent_refresh_error"===E.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()).subscribe(E=>{"silently_refreshed"!==E.type&&(this.debug("silent refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0))})}handleSessionError(){this.stopSessionCheckTimer(),this.eventsSubject.next(new OAuthInfoEvent("session_error"))}removeSessionCheckEventListener(){this.sessionCheckEventListener&&(window.removeEventListener("message",this.sessionCheckEventListener),this.sessionCheckEventListener=null)}initSessionCheck(){if(!this.canPerformSessionCheck())return;const E=this.document.getElementById(this.sessionCheckIFrameName);E&&this.document.body.removeChild(E);const M=this.document.createElement("iframe");M.id=this.sessionCheckIFrameName,this.setupSessionCheckEventListener(),M.setAttribute("src",this.sessionCheckIFrameUrl),M.style.display="none",this.document.body.appendChild(M),this.startSessionCheckTimer()}startSessionCheckTimer(){this.stopSessionCheckTimer(),this.ngZone.runOutsideAngular(()=>{this.sessionCheckTimer=setInterval(this.checkSession.bind(this),this.sessionCheckIntervall)})}stopSessionCheckTimer(){this.sessionCheckTimer&&(clearInterval(this.sessionCheckTimer),this.sessionCheckTimer=null)}checkSession(){const E=this.document.getElementById(this.sessionCheckIFrameName);E||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);const M=this.getSessionState();M||this.stopSessionCheckTimer(),E.contentWindow.postMessage(this.clientId+" "+M,this.issuer)}createLoginUrl(E="",M="",f="",L=!1,F={}){var B=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const q=B;let Q;Q=f||B.redirectUri;const ee=yield B.createAndSaveNonce();if(E=E?ee+B.config.nonceStateSeparator+encodeURIComponent(E):ee,!B.requestAccessToken&&!B.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");B.responseType=B.config.responseType?B.config.responseType:B.oidc&&B.requestAccessToken?"id_token token":B.oidc&&!B.requestAccessToken?"id_token":"token";const W=q.loginUrl.indexOf("?")>-1?"&":"?";let Y=q.scope;B.oidc&&!Y.match(/(^|\s)openid($|\s)/)&&(Y="openid "+Y);let G=q.loginUrl+W+"response_type="+encodeURIComponent(q.responseType)+"&client_id="+encodeURIComponent(q.clientId)+"&state="+encodeURIComponent(E)+"&redirect_uri="+encodeURIComponent(Q)+"&scope="+encodeURIComponent(Y);if(B.responseType.includes("code")&&!B.disablePKCE){const[re,oe]=yield B.createChallangeVerifierPairForPKCE();B.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("PKCE_verifier",oe):B._storage.setItem("PKCE_verifier",oe),G+="&code_challenge="+re,G+="&code_challenge_method=S256"}M&&(G+="&login_hint="+encodeURIComponent(M)),q.resource&&(G+="&resource="+encodeURIComponent(q.resource)),q.oidc&&(G+="&nonce="+encodeURIComponent(ee)),L&&(G+="&prompt=none");for(const re of Object.keys(F))G+="&"+encodeURIComponent(re)+"="+encodeURIComponent(F[re]);if(B.customQueryParams)for(const re of Object.getOwnPropertyNames(B.customQueryParams))G+="&"+re+"="+encodeURIComponent(B.customQueryParams[re]);return G})()}initImplicitFlowInternal(E="",M=""){if(this.inImplicitFlow)return;if(this.inImplicitFlow=!0,!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let f={},L=null;"string"==typeof M?L=M:"object"==typeof M&&(f=M),this.createLoginUrl(E,L,null,!1,f).then(this.config.openUri).catch(F=>{console.error("Error in initImplicitFlow",F),this.inImplicitFlow=!1})}initImplicitFlow(E="",M=""){""!==this.loginUrl?this.initImplicitFlowInternal(E,M):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(f=>"discovery_document_loaded"===f.type)).subscribe(f=>this.initImplicitFlowInternal(E,M))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(E){const M=this;if(E.onTokenReceived){const f={idClaims:M.getIdentityClaims(),idToken:M.getIdToken(),accessToken:M.getAccessToken(),state:M.state};E.onTokenReceived(f)}}storeAccessTokenResponse(E,M,f,L,F){if(this._storage.setItem("access_token",E),L&&!Array.isArray(L)?this._storage.setItem("granted_scopes",JSON.stringify(L.split(" "))):L&&Array.isArray(L)&&this._storage.setItem("granted_scopes",JSON.stringify(L)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),f){const B=1e3*f,Q=this.dateTimeService.new().getTime()+B;this._storage.setItem("expires_at",""+Q)}M&&this._storage.setItem("refresh_token",M),F&&F.forEach((B,q)=>{this._storage.setItem(q,B)})}tryLogin(E=null){return"code"===this.config.responseType?this.tryLoginCodeFlow(E).then(M=>!0):this.tryLoginImplicitFlow(E)}parseQueryString(E){return E&&0!==E.length?("?"===E.charAt(0)&&(E=E.substr(1)),this.urlHelper.parseQueryString(E)):{}}tryLoginCodeFlow(E=null){var M=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const f=(E=E||{}).customHashFragment?E.customHashFragment.substring(1):window.location.search,L=M.getCodePartsFromUrl(f),F=L.code,B=L.state,q=L.session_state;if(!E.preventClearHashAfterLogin){const W=location.origin+location.pathname+location.search.replace(/code=[^&\$]*/,"").replace(/scope=[^&\$]*/,"").replace(/state=[^&\$]*/,"").replace(/session_state=[^&\$]*/,"").replace(/^\?&/,"?").replace(/&$/,"").replace(/^\?$/,"").replace(/&+/g,"&").replace(/\?&/,"?").replace(/\?$/,"")+location.hash;history.replaceState(null,window.name,W)}let[Q,ee]=M.parseState(B);if(M.state=ee,L.error){M.debug("error trying to login"),M.handleLoginError(E,L);const W=new OAuthErrorEvent("code_error",{},L);return M.eventsSubject.next(W),Promise.reject(W)}if(!E.disableNonceCheck){if(!Q)return M.saveRequestedRoute(),Promise.resolve();if(!E.disableOAuth2StateCheck&&!M.validateNonce(Q)){const Y=new OAuthErrorEvent("invalid_nonce_in_state",null);return M.eventsSubject.next(Y),Promise.reject(Y)}return M.storeSessionState(q),F&&(yield M.getTokenFromCode(F,E),M.restoreRequestedRoute()),Promise.resolve()}return Promise.reject()})()}saveRequestedRoute(){this.config.preserveRequestedRoute&&this._storage.setItem("requested_route",window.location.pathname+window.location.search)}restoreRequestedRoute(){const E=this._storage.getItem("requested_route");E&&history.replaceState(null,"",window.location.origin+E)}getCodePartsFromUrl(E){return E&&0!==E.length?("?"===E.charAt(0)&&(E=E.substr(1)),this.urlHelper.parseQueryString(E)):this.urlHelper.getHashFragmentParams()}getTokenFromCode(E,M){let f=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","authorization_code").set("code",E).set("redirect_uri",M.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let L;L=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("PKCE_verifier"):this._storage.getItem("PKCE_verifier"),L?f=f.set("code_verifier",L):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(f,M)}fetchAndProcessToken(E,M){M=M||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let f=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const L=btoa(`${this.clientId}:${this.dummyClientSecret}`);f=f.set("Authorization","Basic "+L)}return this.useHttpBasicAuth||(E=E.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(E=E.set("client_secret",this.dummyClientSecret)),new Promise((L,F)=>{if(this.customQueryParams)for(let B of Object.getOwnPropertyNames(this.customQueryParams))E=E.set(B,this.customQueryParams[B]);this.http.post(this.tokenEndpoint,E,{headers:f}).subscribe(B=>{this.debug("refresh tokenResponse",B),this.storeAccessTokenResponse(B.access_token,B.refresh_token,B.expires_in||this.fallbackAccessTokenExpirationTimeInSec,B.scope,this.extractRecognizedCustomParameters(B)),this.oidc&&B.id_token?this.processIdToken(B.id_token,B.access_token,M.disableNonceCheck).then(q=>{this.storeIdToken(q),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),L(B)}).catch(q=>{this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",q)),console.error("Error validating tokens"),console.error(q),F(q)}):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),L(B))},B=>{console.error("Error getting token",B),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",B)),F(B)})})}tryLoginImplicitFlow(E=null){let M;M=(E=E||{}).customHashFragment?this.urlHelper.getHashFragmentParams(E.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",M);const f=M.state;let[L,F]=this.parseState(f);if(this.state=F,M.error){this.debug("error trying to login"),this.handleLoginError(E,M);const W=new OAuthErrorEvent("token_error",{},M);return this.eventsSubject.next(W),Promise.reject(W)}const B=M.access_token,q=M.id_token,Q=M.session_state,ee=M.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!B||this.requestAccessToken&&!E.disableOAuth2StateCheck&&!f||this.oidc&&!q)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!Q&&this.logger.warn("session checks (Session Status Change Notification) were activated in the configuration but the id_token does not contain a session_state claim"),this.requestAccessToken&&!E.disableNonceCheck&&!this.validateNonce(L)){const Y=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(Y),Promise.reject(Y)}return this.requestAccessToken&&this.storeAccessTokenResponse(B,null,M.expires_in||this.fallbackAccessTokenExpirationTimeInSec,ee),this.oidc?this.processIdToken(q,B,E.disableNonceCheck).then(W=>E.validationHandler?E.validationHandler({accessToken:B,idClaims:W.idTokenClaims,idToken:W.idToken,state:f}).then(Y=>W):W).then(W=>(this.storeIdToken(W),this.storeSessionState(Q),this.clearHashAfterLogin&&!E.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.callOnTokenReceivedIfExists(E),this.inImplicitFlow=!1,!0)).catch(W=>(this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",W)),this.logger.error("Error validating tokens"),this.logger.error(W),Promise.reject(W))):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.clearHashAfterLogin&&!E.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(E),Promise.resolve(!0))}parseState(E){let M=E,f="";if(E){const L=E.indexOf(this.config.nonceStateSeparator);L>-1&&(M=E.substr(0,L),f=E.substr(L+this.config.nonceStateSeparator.length))}return[M,f]}validateNonce(E){let M;return M=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),M===E||(console.error("Validating access_token failed, wrong state/nonce.",M,E),!1)}storeIdToken(E){this._storage.setItem("id_token",E.idToken),this._storage.setItem("id_token_claims_obj",E.idTokenClaimsJson),this._storage.setItem("id_token_expires_at",""+E.idTokenExpiresAt),this._storage.setItem("id_token_stored_at",""+this.dateTimeService.now())}storeSessionState(E){this._storage.setItem("session_state",E)}getSessionState(){return this._storage.getItem("session_state")}handleLoginError(E,M){E.onLoginError&&E.onLoginError(M),this.clearHashAfterLogin&&!E.preventClearHashAfterLogin&&this.clearLocationHash()}getClockSkewInMsec(E=6e5){return this.clockSkewInSec?1e3*this.clockSkewInSec:E}processIdToken(E,M,f=!1){const L=E.split("."),B=b64DecodeUnicode(this.padBase64(L[0])),q=JSON.parse(B),ee=b64DecodeUnicode(this.padBase64(L[1])),W=JSON.parse(ee);let Y;if(Y=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Array.isArray(W.aud)){if(W.aud.every(he=>he!==this.clientId)){const he="Wrong audience: "+W.aud.join(",");return this.logger.warn(he),Promise.reject(he)}}else if(W.aud!==this.clientId){const he="Wrong audience: "+W.aud;return this.logger.warn(he),Promise.reject(he)}if(!W.sub){const he="No sub claim in id_token";return this.logger.warn(he),Promise.reject(he)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==W.sub){const he=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${W.sub}`;return this.logger.warn(he),Promise.reject(he)}if(!W.iat){const he="No iat claim in id_token";return this.logger.warn(he),Promise.reject(he)}if(!this.skipIssuerCheck&&W.iss!==this.issuer){const he="Wrong issuer: "+W.iss;return this.logger.warn(he),Promise.reject(he)}if(!f&&W.nonce!==Y){const he="Wrong nonce: "+W.nonce;return this.logger.warn(he),Promise.reject(he)}if(this.hasOwnProperty("responseType")&&("code"===this.responseType||"id_token"===this.responseType)&&(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!W.at_hash){const he="An at_hash is needed!";return this.logger.warn(he),Promise.reject(he)}const G=this.dateTimeService.now(),re=1e3*W.iat,oe=1e3*W.exp,ie=this.getClockSkewInMsec();if(re-ie>=G||oe+ie<=G){const he="Token has expired";return console.error(he),console.error({now:G,issuedAtMSec:re,expiresAtMSec:oe}),Promise.reject(he)}const ae={accessToken:M,idToken:E,jwks:this.jwks,idTokenClaims:W,idTokenHeader:q,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(ae).then(he=>({idToken:E,idTokenClaims:W,idTokenClaimsJson:ee,idTokenHeader:q,idTokenHeaderJson:B,idTokenExpiresAt:oe})):this.checkAtHash(ae).then(he=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!he){const fe="Wrong at_hash";return this.logger.warn(fe),Promise.reject(fe)}return this.checkSignature(ae).then(fe=>{const Oe={idToken:E,idTokenClaims:W,idTokenClaimsJson:ee,idTokenHeader:q,idTokenHeaderJson:B,idTokenExpiresAt:oe};return this.disableAtHashCheck?Oe:this.checkAtHash(ae).then(je=>{if(this.requestAccessToken&&!je){const Ae="Wrong at_hash";return this.logger.warn(Ae),Promise.reject(Ae)}return Oe})})})}getIdentityClaims(){const E=this._storage.getItem("id_token_claims_obj");return E?JSON.parse(E):null}getGrantedScopes(){const E=this._storage.getItem("granted_scopes");return E?JSON.parse(E):null}getIdToken(){return this._storage?this._storage.getItem("id_token"):null}padBase64(E){for(;E.length%4!=0;)E+="=";return E}getAccessToken(){return this._storage?this._storage.getItem("access_token"):null}getRefreshToken(){return this._storage?this._storage.getItem("refresh_token"):null}getAccessTokenExpiration(){return this._storage.getItem("expires_at")?parseInt(this._storage.getItem("expires_at"),10):null}getAccessTokenStoredAt(){return parseInt(this._storage.getItem("access_token_stored_at"),10)}getIdTokenStoredAt(){return parseInt(this._storage.getItem("id_token_stored_at"),10)}getIdTokenExpiration(){return this._storage.getItem("id_token_expires_at")?parseInt(this._storage.getItem("id_token_expires_at"),10):null}hasValidAccessToken(){if(this.getAccessToken()){const E=this._storage.getItem("expires_at"),M=this.dateTimeService.new();return!(E&&parseInt(E,10)=0&&null!==this._storage.getItem(E)?JSON.parse(this._storage.getItem(E)):null}authorizationHeader(){return"Bearer "+this.getAccessToken()}logOut(E={},M=""){let f=!1;"boolean"==typeof E&&(f=E,E={});const L=this.getIdToken();if(this._storage.removeItem("access_token"),this._storage.removeItem("id_token"),this._storage.removeItem("refresh_token"),this.saveNoncesInLocalStorage?(localStorage.removeItem("nonce"),localStorage.removeItem("PKCE_verifier")):(this._storage.removeItem("nonce"),this._storage.removeItem("PKCE_verifier")),this._storage.removeItem("expires_at"),this._storage.removeItem("id_token_claims_obj"),this._storage.removeItem("id_token_expires_at"),this._storage.removeItem("id_token_stored_at"),this._storage.removeItem("access_token_stored_at"),this._storage.removeItem("granted_scopes"),this._storage.removeItem("session_state"),this.config.customTokenParameters&&this.config.customTokenParameters.forEach(B=>this._storage.removeItem(B)),this.silentRefreshSubject=null,this.eventsSubject.next(new OAuthInfoEvent("logout")),!this.logoutUrl||f||!L&&!this.postLogoutRedirectUri)return;let F;if(!this.validateUrlForHttps(this.logoutUrl))throw new Error("logoutUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(this.logoutUrl.indexOf("{{")>-1)F=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(L)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let B=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec});L&&(B=B.set("id_token_hint",L));const q=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";q&&(B=B.set("post_logout_redirect_uri",q),M&&(B=B.set("state",M)));for(let Q in E)B=B.set(Q,E[Q]);F=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+B.toString()}this.config.openUri(F)}createAndSaveNonce(){const E=this;return this.createNonce().then(function(M){return E.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("nonce",M):E._storage.setItem("nonce",M),M})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();const E=this.document.getElementById(this.silentRefreshIFrameName);E&&E.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();const M=this.document.getElementById(this.sessionCheckIFrameName);M&&M.remove()}createNonce(){return new Promise(E=>{if(this.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");const M="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";let f=45,L="";const F=typeof self>"u"?null:self.crypto||self.msCrypto;if(F){let B=new Uint8Array(f);F.getRandomValues(B),B.map||(B.map=Array.prototype.map),B=B.map(q=>M.charCodeAt(q%M.length)),L=String.fromCharCode.apply(null,B)}else for(;0"discovery_document_loaded"===f.type)).subscribe(f=>this.initCodeFlowInternal(E,M))}initCodeFlowInternal(E="",M={}){if(!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let f={},L=null;"string"==typeof M?L=M:"object"==typeof M&&(f=M),this.createLoginUrl(E,L,null,!1,f).then(this.config.openUri).catch(F=>{console.error("Error in initAuthorizationCodeFlow"),console.error(F)})}createChallangeVerifierPairForPKCE(){var E=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){if(!E.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");const M=yield E.createNonce();return[base64UrlEncode(yield E.crypto.calcHash(M,"sha-256")),M]})()}extractRecognizedCustomParameters(E){let M=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(f=>{E[f]&&M.set(f,JSON.stringify(E[f]))}),M}revokeTokenAndLogout(E={},M=!1){let f=this.revocationEndpoint,L=this.getAccessToken(),F=this.getRefreshToken();if(!L)return;let B=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}),q=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const Q=btoa(`${this.clientId}:${this.dummyClientSecret}`);q=q.set("Authorization","Basic "+Q)}if(this.useHttpBasicAuth||(B=B.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(B=B.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const Q of Object.getOwnPropertyNames(this.customQueryParams))B=B.set(Q,this.customQueryParams[Q]);return new Promise((Q,ee)=>{let W,Y;if(L){let G=B.set("token",L).set("token_type_hint","access_token");W=this.http.post(f,G,{headers:q})}else W=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);if(F){let G=B.set("token",F).set("token_type_hint","refresh_token");Y=this.http.post(f,G,{headers:q})}else Y=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);M&&(W=W.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(G=>0===G.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(G))),Y=Y.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(G=>0===G.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(G)))),(0,rxjs__WEBPACK_IMPORTED_MODULE_17__.a)([W,Y]).subscribe(G=>{this.logOut(E),Q(G),this.logger.info("Token successfully revoked")},G=>{this.logger.error("Error revoking token",G),this.eventsSubject.next(new OAuthErrorEvent("token_revoke_error",G)),ee(G)})})}clearLocationHash(){""!=location.hash&&(location.hash="")}}return N.\u0275fac=function(E){return new(E||N)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_core__WEBPACK_IMPORTED_MODULE_1__.R0b),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.eN),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthStorage,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(ValidationHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(AuthConfig,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(UrlHelperService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthLogger),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(HashHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common__WEBPACK_IMPORTED_MODULE_18__.K0),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(DateTimeProvider))},N.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:N,factory:N.\u0275fac}),N})();class OAuthModuleConfig{}class OAuthResourceServerConfig{}class OAuthResourceServerErrorHandler{}class OAuthNoopResourceServerErrorHandler{handleError(z){return(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(z)}}let DefaultOAuthInterceptor=(()=>{class N{constructor(E,M,f){this.oAuthService=E,this.errorHandler=M,this.moduleConfig=f}checkUrl(E){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(E):!this.moduleConfig.resourceServer.allowedUrls||!!this.moduleConfig.resourceServer.allowedUrls.find(M=>E.toLowerCase().startsWith(M.toLowerCase()))}intercept(E,M){const f=E.url.toLowerCase();return this.moduleConfig&&this.moduleConfig.resourceServer&&this.checkUrl(f)?this.moduleConfig.resourceServer.sendAccessToken?(0,rxjs__WEBPACK_IMPORTED_MODULE_19__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(this.oAuthService.getAccessToken()).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(F=>!!F)),this.oAuthService.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(F=>"token_received"===F.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.V)(this.oAuthService.waitForTokenInMsec||0),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(F=>(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(F=>this.oAuthService.getAccessToken()))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.q)(1),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_22__.z)(F=>{if(F){const q=E.headers.set("Authorization","Bearer "+F);E=E.clone({headers:q})}return M.handle(E).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(B=>this.errorHandler.handleError(B)))})):M.handle(E).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(F=>this.errorHandler.handleError(F))):M.handle(E)}}return N.\u0275fac=function(E){return new(E||N)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthResourceServerErrorHandler),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthModuleConfig,8))},N.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:N,factory:N.\u0275fac}),N})();class NullValidationHandler{validateSignature(z){return Promise.resolve(null)}validateAtHash(z){return Promise.resolve(!0)}}function createDefaultLogger(){return console}function createDefaultStorage(){return typeof sessionStorage<"u"?sessionStorage:new MemoryStorage}let OAuthModule=(()=>{class N{static forRoot(E=null,M=NullValidationHandler){return{ngModule:N,providers:[OAuthService,UrlHelperService,{provide:OAuthLogger,useFactory:createDefaultLogger},{provide:OAuthStorage,useFactory:createDefaultStorage},{provide:ValidationHandler,useClass:M},{provide:HashHandler,useClass:DefaultHashHandler},{provide:OAuthResourceServerErrorHandler,useClass:OAuthNoopResourceServerErrorHandler},{provide:OAuthModuleConfig,useValue:E},{provide:_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.TP,useClass:DefaultOAuthInterceptor,multi:!0},{provide:DateTimeProvider,useClass:SystemDateTimeProvider}]}}}return N.\u0275fac=function(E){return new(E||N)},N.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_1__.oAB({type:N}),N.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_1__.cJS({imports:[[_angular_common__WEBPACK_IMPORTED_MODULE_18__.ez]]}),N})();const err="PLEASE READ THIS CAREFULLY:\n\nBeginning with angular-oauth2-oidc version 9, the JwksValidationHandler\nhas been moved to an library of its own. If you need it for implementing\nOAuth2/OIDC **implicit flow**, please install it using npm:\n\n npm i angular-oauth2-oidc-jwks --save\n\nAfter that, you can import it into your application:\n\n import { JwksValidationHandler } from 'angular-oauth2-oidc-jwks';\n\nPlease note, that this dependency is not needed for the **code flow**,\nwhich is nowadays the **recommented** one for single page applications.\nThis also results in smaller bundle sizes.\n";class JwksValidationHandler extends NullValidationHandler{constructor(){super(),console.error(err)}}const AUTH_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_1__.OlP("AUTH_CONFIG")},5861:(N,z,E)=>{"use strict";function M(L,F,B,q,Q,ee,W){try{var Y=L[ee](W),G=Y.value}catch(re){return void B(re)}Y.done?F(G):Promise.resolve(G).then(q,Q)}function f(L){return function(){var F=this,B=arguments;return new Promise(function(q,Q){var ee=L.apply(F,B);function W(G){M(ee,q,Q,W,Y,"next",G)}function Y(G){M(ee,q,Q,W,Y,"throw",G)}W(void 0)})}}E.d(z,{Z:()=>f})},4147:N=>{"use strict";N.exports={i8:"10.4.0"}}},N=>{N(N.s=2540)}]); \ No newline at end of file diff --git a/dist/apps/publications/assets/i18n/en.json b/dist/apps/publications/assets/i18n/en.json index 761ccf942..4214969c1 100644 --- a/dist/apps/publications/assets/i18n/en.json +++ b/dist/apps/publications/assets/i18n/en.json @@ -435,7 +435,7 @@ "SESSION_EXPIRATION": { "TITLE": "Session expiration", "DESCRIPTION": "Your session has expired. Please sign in to continue.", - "SIGN_IN": "Sign in" + "SIGN_IN": "Proceed" }, "MFA_REQUIRED_DIALOG": { "TITLE": "Step-up authentication required", diff --git a/dist/apps/publications/index.html b/dist/apps/publications/index.html index 582242358..0522eb716 100644 --- a/dist/apps/publications/index.html +++ b/dist/apps/publications/index.html @@ -40,5 +40,5 @@ - + diff --git a/dist/apps/publications/main.21a35d2605f94c4f.js b/dist/apps/publications/main.21a35d2605f94c4f.js deleted file mode 100644 index c93a0e2b4..000000000 --- a/dist/apps/publications/main.21a35d2605f94c4f.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkpublications=self.webpackChunkpublications||[]).push([[179],{615:(Y,z,x)=>{"use strict";var w=x(6895),i=x(4650);class E extends w.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class M extends E{static makeCurrent(){(0,w.HT)(new M)}onAndCancel(s,e,t){return s.addEventListener(e,t,!1),()=>{s.removeEventListener(e,t,!1)}}dispatchEvent(s,e){s.dispatchEvent(e)}remove(s){s.parentNode&&s.parentNode.removeChild(s)}createElement(s,e){return(e=e||this.getDefaultDocument()).createElement(s)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(s){return s.nodeType===Node.ELEMENT_NODE}isShadowRoot(s){return s instanceof DocumentFragment}getGlobalEventTarget(s,e){return"window"===e?window:"document"===e?s:"body"===e?s.body:null}getBaseHref(s){const e=function k(){return S=S||document.querySelector("base"),S?S.getAttribute("href"):null}();return null==e?null:function F(n){L=L||document.createElement("a"),L.setAttribute("href",n);const s=L.pathname;return"/"===s.charAt(0)?s:`/${s}`}(e)}resetBaseElement(){S=null}getUserAgent(){return window.navigator.userAgent}getCookie(s){return(0,w.Mx)(document.cookie,s)}}let L,S=null;const U=new i.OlP("TRANSITION_ID"),Q=[{provide:i.ip1,useFactory:function J(n,s,e){return()=>{e.get(i.CZH).donePromise.then(()=>{const t=(0,w.q)(),r=s.querySelectorAll(`style[ng-transition="${n}"]`);for(let l=0;l{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const re=new i.OlP("EventManagerPlugins");let ie=(()=>{class n{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(r=>r.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,r){return this._findPluginFor(t).addEventListener(e,t,r)}addGlobalEventListener(e,t,r){return this._findPluginFor(t).addGlobalEventListener(e,t,r)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const r=this._plugins;for(let l=0;l{class n{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(r=>{this._stylesSet.has(r)||(this._stylesSet.add(r),t.add(r))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),ve=(()=>{class n extends be{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,t,r){e.forEach(l=>{const d=this._doc.createElement("style");d.textContent=l,r.push(t.appendChild(d))})}addHost(e){const t=[];this._addStylesToHost(this._stylesSet,e,t),this._hostNodes.set(e,t)}removeHost(e){const t=this._hostNodes.get(e);t&&t.forEach($e),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((t,r)=>{this._addStylesToHost(e,r,t)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach($e))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();function $e(n){(0,w.q)().remove(n)}const Je={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/",math:"http://www.w3.org/1998/MathML/"},He=/%COMP%/g;function he(n,s,e){for(let t=0;t{if("__ngUnwrap__"===s)return n;!1===n(s)&&(s.preventDefault(),s.returnValue=!1)}}let _e=(()=>{class n{constructor(e,t,r){this.eventManager=e,this.sharedStylesHost=t,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new Ue(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case i.ifc.Emulated:{let r=this.rendererByCompId.get(t.id);return r||(r=new Jt(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,r)),r.applyToHost(e),r}case 1:case i.ifc.ShadowDom:return new Qe(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const r=he(t.id,t.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(ie),i.LFG(ve),i.LFG(i.AFp))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class Ue{constructor(s){this.eventManager=s,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(s,e){return e?document.createElementNS(Je[e]||e,s):document.createElement(s)}createComment(s){return document.createComment(s)}createText(s){return document.createTextNode(s)}appendChild(s,e){(Lt(s)?s.content:s).appendChild(e)}insertBefore(s,e,t){s&&(Lt(s)?s.content:s).insertBefore(e,t)}removeChild(s,e){s&&s.removeChild(e)}selectRootElement(s,e){let t="string"==typeof s?document.querySelector(s):s;if(!t)throw new Error(`The selector "${s}" did not match any elements`);return e||(t.textContent=""),t}parentNode(s){return s.parentNode}nextSibling(s){return s.nextSibling}setAttribute(s,e,t,r){if(r){e=r+":"+e;const l=Je[r];l?s.setAttributeNS(l,e,t):s.setAttribute(e,t)}else s.setAttribute(e,t)}removeAttribute(s,e,t){if(t){const r=Je[t];r?s.removeAttributeNS(r,e):s.removeAttribute(`${t}:${e}`)}else s.removeAttribute(e)}addClass(s,e){s.classList.add(e)}removeClass(s,e){s.classList.remove(e)}setStyle(s,e,t,r){r&(i.JOm.DashCase|i.JOm.Important)?s.style.setProperty(e,t,r&i.JOm.Important?"important":""):s.style[e]=t}removeStyle(s,e,t){t&i.JOm.DashCase?s.style.removeProperty(e):s.style[e]=""}setProperty(s,e,t){s[e]=t}setValue(s,e){s.nodeValue=e}listen(s,e,t){return"string"==typeof s?this.eventManager.addGlobalEventListener(s,e,fe(t)):this.eventManager.addEventListener(s,e,fe(t))}}function Lt(n){return"TEMPLATE"===n.tagName&&void 0!==n.content}class Jt extends Ue{constructor(s,e,t,r){super(s),this.component=t;const l=he(r+"-"+t.id,t.styles,[]);e.addStyles(l),this.contentAttr=function Be(n){return"_ngcontent-%COMP%".replace(He,n)}(r+"-"+t.id),this.hostAttr=function Ie(n){return"_nghost-%COMP%".replace(He,n)}(r+"-"+t.id)}applyToHost(s){super.setAttribute(s,this.hostAttr,"")}createElement(s,e){const t=super.createElement(s,e);return super.setAttribute(t,this.contentAttr,""),t}}class Qe extends Ue{constructor(s,e,t,r){super(s),this.sharedStylesHost=e,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const l=he(r.id,r.styles,[]);for(let d=0;d{class n extends me{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,r){return e.addEventListener(t,r,!1),()=>this.removeEventListener(e,t,r)}removeEventListener(e,t,r){return e.removeEventListener(t,r)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const Tn=["alt","control","meta","shift"],Qt={"\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"},_r={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"},Si={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let sa=(()=>{class n extends me{constructor(e){super(e)}supports(e){return null!=n.parseEventName(e)}addEventListener(e,t,r){const l=n.parseEventName(t),d=n.eventCallback(l.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,w.q)().onAndCancel(e,l.domEventName,d))}static parseEventName(e){const t=e.toLowerCase().split("."),r=t.shift();if(0===t.length||"keydown"!==r&&"keyup"!==r)return null;const l=n._normalizeKey(t.pop());let d="";if(Tn.forEach(a=>{const c=t.indexOf(a);c>-1&&(t.splice(c,1),d+=a+".")}),d+=l,0!=t.length||0===l.length)return null;const o={};return o.domEventName=r,o.fullKey=d,o}static getEventFullKey(e){let t="",r=function Xl(n){let s=n.key;if(null==s){if(s=n.keyIdentifier,null==s)return"Unidentified";s.startsWith("U+")&&(s=String.fromCharCode(parseInt(s.substring(2),16)),3===n.location&&_r.hasOwnProperty(s)&&(s=_r[s]))}return Qt[s]||s}(e);return r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),Tn.forEach(l=>{l!=r&&(0,Si[l])(e)&&(t+=l+".")}),t+=r,t}static eventCallback(e,t,r){return l=>{n.getEventFullKey(l)===e&&r.runGuarded(()=>t(l))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const dt=(0,i.eFA)(i._c5,"browser",[{provide:i.Lbi,useValue:w.bD},{provide:i.g9A,useValue:function Ir(){M.makeCurrent()},multi:!0},{provide:w.K0,useFactory:function fs(){return(0,i.RDi)(document),document},deps:[]}]),Qi=new i.OlP(""),br=[{provide:i.rWj,useClass:class ne{addToWindow(s){i.dqk.getAngularTestability=(t,r=!0)=>{const l=s.findTestabilityInTree(t,r);if(null==l)throw new Error("Could not find testability for element.");return l},i.dqk.getAllAngularTestabilities=()=>s.getAllTestabilities(),i.dqk.getAllAngularRootElements=()=>s.getAllRootElements(),i.dqk.frameworkStabilizers||(i.dqk.frameworkStabilizers=[]),i.dqk.frameworkStabilizers.push(t=>{const r=i.dqk.getAllAngularTestabilities();let l=r.length,d=!1;const o=function(a){d=d||a,l--,0==l&&t(d)};r.forEach(function(a){a.whenStable(o)})})}findTestabilityInTree(s,e,t){return null==e?null:s.getTestability(e)??(t?(0,w.q)().isShadowRoot(e)?this.findTestabilityInTree(s,e.host,!0):this.findTestabilityInTree(s,e.parentElement,!0):null)}},deps:[]},{provide:i.lri,useClass:i.dDg,deps:[i.R0b,i.eoX,i.rWj]},{provide:i.dDg,useClass:i.dDg,deps:[i.R0b,i.eoX,i.rWj]}],Wt=[{provide:i.zSh,useValue:"root"},{provide:i.qLn,useFactory:function Or(){return new i.qLn},deps:[]},{provide:re,useClass:an,multi:!0,deps:[w.K0,i.R0b,i.Lbi]},{provide:re,useClass:sa,multi:!0,deps:[w.K0]},{provide:_e,useClass:_e,deps:[ie,ve,i.AFp]},{provide:i.FYo,useExisting:_e},{provide:be,useExisting:ve},{provide:ve,useClass:ve,deps:[w.K0]},{provide:ie,useClass:ie,deps:[re,i.R0b]},{provide:w.JF,useClass:le,deps:[]},[]];let sn=(()=>{class n{constructor(e){}static withServerTransition(e){return{ngModule:n,providers:[{provide:i.AFp,useValue:e.appId},{provide:U,useExisting:i.AFp},Q]}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Qi,12))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[...Wt,...br],imports:[w.ez,i.hGG]}),n})(),ae=(()=>{class n{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:function(e){let t=null;return t=e?new e:function De(){return new ae((0,i.LFG)(w.K0))}(),t},providedIn:"root"}),n})();typeof window<"u"&&window;let Li=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:function(e){let t=null;return t=e?new(e||n):i.LFG(rt),t},providedIn:"root"}),n})(),rt=(()=>{class n extends Li{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case i.q3G.NONE:return t;case i.q3G.HTML:return(0,i.qzn)(t,"HTML")?(0,i.z3N)(t):(0,i.EiD)(this._doc,String(t)).toString();case i.q3G.STYLE:return(0,i.qzn)(t,"Style")?(0,i.z3N)(t):t;case i.q3G.SCRIPT:if((0,i.qzn)(t,"Script"))return(0,i.z3N)(t);throw new Error("unsafe value used in a script context");case i.q3G.URL:return(0,i.qzn)(t,"URL")?(0,i.z3N)(t):(0,i.mCW)(String(t));case i.q3G.RESOURCE_URL:if((0,i.qzn)(t,"ResourceURL"))return(0,i.z3N)(t);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return(0,i.JVY)(e)}bypassSecurityTrustStyle(e){return(0,i.L6k)(e)}bypassSecurityTrustScript(e){return(0,i.eBb)(e)}bypassSecurityTrustUrl(e){return(0,i.LAX)(e)}bypassSecurityTrustResourceUrl(e){return(0,i.pB0)(e)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:function(e){let t=null;return t=e?new e:function qe(n){return new rt(n.get(w.K0))}(i.LFG(i.zs3)),t},providedIn:"root"}),n})();var Ae=x(9646),oi=x(9751),ii=x(576);function Bt(n){return!!n&&(n instanceof oi.y||(0,ii.m)(n.lift)&&(0,ii.m)(n.subscribe))}var Ft=x(4742),$i=x(8421),Kt=x(3269),et=x(5403),xn=x(3268),In=x(1810);function la(...n){const s=(0,Kt.jO)(n),{args:e,keys:t}=(0,Ft.D)(n),r=new oi.y(l=>{const{length:d}=e;if(!d)return void l.complete();const o=new Array(d);let a=d,c=d;for(let u=0;u{h||(h=!0,c--),o[u]=f},()=>a--,void 0,()=>{(!a||!h)&&(c||l.next(t?(0,In.n)(t,o):o),l.complete())}))}});return s?r.pipe((0,xn.Z)(s)):r}var On=x(7272);function bi(n){return new oi.y(s=>{(0,$i.Xf)(n()).subscribe(s)})}var it=x(5698),Te=x(7579),Mn=x(6063);class Nr extends Te.x{constructor(s=1/0,e=1/0,t=Mn.l){super(),this._bufferSize=s,this._windowTime=e,this._timestampProvider=t,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,s),this._windowTime=Math.max(1,e)}next(s){const{isStopped:e,_buffer:t,_infiniteTimeWindow:r,_timestampProvider:l,_windowTime:d}=this;e||(t.push(s),!r&&t.push(l.now()+d)),this._trimBuffer(),super.next(s)}_subscribe(s){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(s),{_infiniteTimeWindow:t,_buffer:r}=this,l=r.slice();for(let d=0;dnew Nr(t,s,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:r})}var mt=x(4004),Cr=x(4351),pi=x(3900);class Fr{}let ca=(()=>{class n extends Fr{getTranslation(e){return(0,Ae.of)({})}}return n.\u0275fac=function(){let s;return function(t){return(s||(s=i.n5z(n)))(t||n)}}(),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class da{}let lr=(()=>{class n{handle(e){return e.key}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();function Ii(n,s){if(n===s)return!0;if(null===n||null===s)return!1;if(n!=n&&s!=s)return!0;let r,l,d,e=typeof n;if(e==typeof s&&"object"==e){if(!Array.isArray(n)){if(Array.isArray(s))return!1;for(l in d=Object.create(null),n){if(!Ii(n[l],s[l]))return!1;d[l]=!0}for(l in s)if(!(l in d)&&typeof s[l]<"u")return!1;return!0}if(!Array.isArray(s))return!1;if((r=n.length)==s.length){for(l=0;l{Xi(s[t])?t in n?e[t]=Sn(n[t],s[t]):Object.assign(e,{[t]:s[t]}):Object.assign(e,{[t]:s[t]})}),e}class Gn{}let Yr=(()=>{class n extends Gn{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(e,t){let r;return r="string"==typeof e?this.interpolateString(e,t):"function"==typeof e?this.interpolateFunction(e,t):e,r}getValue(e,t){let r="string"==typeof t?t.split("."):[t];t="";do{t+=r.shift(),!jr(e)||!jr(e[t])||"object"!=typeof e[t]&&r.length?r.length?t+=".":e=void 0:(e=e[t],t="")}while(r.length);return e}interpolateFunction(e,t){return e(t)}interpolateString(e,t){return t?e.replace(this.templateMatcher,(r,l)=>{let d=this.getValue(t,l);return jr(d)?d:r}):e}}return n.\u0275fac=function(){let s;return function(t){return(s||(s=i.n5z(n)))(t||n)}}(),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class cr{}let En=(()=>{class n extends cr{compile(e,t){return e}compileTranslations(e,t){return e}}return n.\u0275fac=function(){let s;return function(t){return(s||(s=i.n5z(n)))(t||n)}}(),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class ua{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new i.vpe,this.onLangChange=new i.vpe,this.onDefaultLangChange=new i.vpe}}const Qs=new i.OlP("USE_STORE"),gs=new i.OlP("USE_DEFAULT_LANG"),ha=new i.OlP("DEFAULT_LANGUAGE"),Wn=new i.OlP("USE_EXTEND");let ui=(()=>{class n{constructor(e,t,r,l,d,o=!0,a=!1,c=!1,u){this.store=e,this.currentLoader=t,this.compiler=r,this.parser=l,this.missingTranslationHandler=d,this.useDefaultLang=o,this.isolate=a,this.extend=c,this.pending=!1,this._onTranslationChange=new i.vpe,this._onLangChange=new i.vpe,this._onDefaultLangChange=new i.vpe,this._langs=[],this._translations={},this._translationRequests={},u&&this.setDefaultLang(u)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(e){this.isolate?this._currentLang=e:this.store.currentLang=e}get langs(){return this.isolate?this._langs:this.store.langs}set langs(e){this.isolate?this._langs=e:this.store.langs=e}get translations(){return this.isolate?this._translations:this.store.translations}set translations(e){this.isolate?this._translations=e:this.store.translations=e}setDefaultLang(e){if(e===this.defaultLang)return;let t=this.retrieveTranslations(e);typeof t<"u"?(null==this.defaultLang&&(this.defaultLang=e),t.pipe((0,it.q)(1)).subscribe(r=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(e===this.currentLang)return(0,Ae.of)(this.translations[e]);let t=this.retrieveTranslations(e);return typeof t<"u"?(this.currentLang||(this.currentLang=e),t.pipe((0,it.q)(1)).subscribe(r=>{this.changeLang(e)}),t):(this.changeLang(e),(0,Ae.of)(this.translations[e]))}retrieveTranslations(e){let t;return(typeof this.translations[e]>"u"||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),t=this._translationRequests[e]),t}getTranslation(e){this.pending=!0;const t=this.currentLoader.getTranslation(e).pipe(Xt(1),(0,it.q)(1));return this.loadingTranslations=t.pipe((0,mt.U)(r=>this.compiler.compileTranslations(r,e)),Xt(1),(0,it.q)(1)),this.loadingTranslations.subscribe({next:r=>{this.translations[e]=this.extend&&this.translations[e]?{...r,...this.translations[e]}:r,this.updateLangs(),this.pending=!1},error:r=>{this.pending=!1}}),t}setTranslation(e,t,r=!1){t=this.compiler.compileTranslations(t,e),this.translations[e]=(r||this.extend)&&this.translations[e]?Sn(this.translations[e],t):t,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return this.langs}addLangs(e){e.forEach(t=>{-1===this.langs.indexOf(t)&&this.langs.push(t)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(e,t,r){let l;if(t instanceof Array){let d={},o=!1;for(let a of t)d[a]=this.getParsedResult(e,a,r),Bt(d[a])&&(o=!0);return o?la(t.map(c=>Bt(d[c])?d[c]:(0,Ae.of)(d[c]))).pipe((0,mt.U)(c=>{let u={};return c.forEach((h,f)=>{u[t[f]]=h}),u})):d}if(e&&(l=this.parser.interpolate(this.parser.getValue(e,t),r)),typeof l>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(l=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],t),r)),typeof l>"u"){let d={key:t,translateService:this};typeof r<"u"&&(d.interpolateParams=r),l=this.missingTranslationHandler.handle(d)}return typeof l<"u"?l:t}get(e,t){if(!jr(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,Cr.b)(r=>Bt(r=this.getParsedResult(r,e,t))?r:(0,Ae.of)(r)));{let r=this.getParsedResult(this.translations[this.currentLang],e,t);return Bt(r)?r:(0,Ae.of)(r)}}getStreamOnTranslationChange(e,t){if(!jr(e)||!e.length)throw new Error('Parameter "key" required');return(0,On.z)(bi(()=>this.get(e,t)),this.onTranslationChange.pipe((0,pi.w)(r=>{const l=this.getParsedResult(r.translations,e,t);return"function"==typeof l.subscribe?l:(0,Ae.of)(l)})))}stream(e,t){if(!jr(e)||!e.length)throw new Error('Parameter "key" required');return(0,On.z)(bi(()=>this.get(e,t)),this.onLangChange.pipe((0,pi.w)(r=>{const l=this.getParsedResult(r.translations,e,t);return Bt(l)?l:(0,Ae.of)(l)})))}instant(e,t){if(!jr(e)||!e.length)throw new Error('Parameter "key" required');let r=this.getParsedResult(this.translations[this.currentLang],e,t);if(Bt(r)){if(e instanceof Array){let l={};return e.forEach((d,o)=>{l[e[o]]=e[o]}),l}return e}return r}set(e,t,r=this.currentLang){this.translations[r][e]=this.compiler.compile(t,r),this.updateLangs(),this.onTranslationChange.emit({lang:r,translations:this.translations[r]})}changeLang(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),null==this.defaultLang&&this.changeDefaultLang(e)}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return this.resetLang(e),this.getTranslation(e)}resetLang(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof e>"u"?void 0:(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,e}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(ua),i.LFG(Fr),i.LFG(cr),i.LFG(Gn),i.LFG(da),i.LFG(gs),i.LFG(Qs),i.LFG(Wn),i.LFG(ha))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),tt=(()=>{class n{constructor(e,t){this.translate=e,this._ref=t,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(e,t,r){let l=d=>{this.value=void 0!==d?d:e,this.lastKey=e,this._ref.markForCheck()};if(r){let d=this.translate.getParsedResult(r,e,t);Bt(d.subscribe)?d.subscribe(l):l(d)}this.translate.get(e,t).subscribe(l)}transform(e,...t){if(!e||!e.length)return e;if(Ii(e,this.lastKey)&&Ii(t,this.lastParams))return this.value;let r;if(jr(t[0])&&t.length)if("string"==typeof t[0]&&t[0].length){let l=t[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{r=JSON.parse(l)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${t[0]}`)}}else"object"==typeof t[0]&&!Array.isArray(t[0])&&(r=t[0]);return this.lastKey=e,this.lastParams=t,this.updateValue(e,r),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(l=>{this.lastKey&&l.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,r,l.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(l=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r,l.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(ui,16),i.Y36(i.sBO,16))},n.\u0275pipe=i.Yjl({name:"translate",type:n,pure:!1}),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),Ks=(()=>{class n{static forRoot(e={}){return{ngModule:n,providers:[e.loader||{provide:Fr,useClass:ca},e.compiler||{provide:cr,useClass:En},e.parser||{provide:Gn,useClass:Yr},e.missingTranslationHandler||{provide:da,useClass:lr},ua,{provide:Qs,useValue:e.isolate},{provide:gs,useValue:e.useDefaultLang},{provide:Wn,useValue:e.extend},{provide:ha,useValue:e.defaultLanguage},ui]}}static forChild(e={}){return{ngModule:n,providers:[e.loader||{provide:Fr,useClass:ca},e.compiler||{provide:cr,useClass:En},e.parser||{provide:Gn,useClass:Yr},e.missingTranslationHandler||{provide:da,useClass:lr},{provide:Qs,useValue:e.isolate},{provide:gs,useValue:e.useDefaultLang},{provide:Wn,useValue:e.extend},{provide:ha,useValue:e.defaultLanguage},ui]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),oh=(()=>{class n extends ui{instant(e,t){return String(super.instant(e,t))}}return n.\u0275fac=function(){let s;return function(t){return(s||(s=i.n5z(n)))(t||n)}}(),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var C=x(529);class Ei{encodeKey(s){return encodeURIComponent(s)}encodeValue(s){return encodeURIComponent(s)}decodeKey(s){return decodeURIComponent(s)}decodeValue(s){return decodeURIComponent(s)}}const yi=new i.OlP("basePath");class yt{constructor(s={}){this.apiKeys=s.apiKeys,this.username=s.username,this.password=s.password,this.accessToken=s.accessToken,this.basePath=s.basePath,this.withCredentials=s.withCredentials,this.encoder=s.encoder,this.credentials=s.credentials?s.credentials:{},this.credentials.BasicAuth||(this.credentials.BasicAuth=()=>this.username||this.password?btoa(this.username+":"+this.password):void 0),this.credentials.BearerAuth||(this.credentials.BearerAuth=()=>"function"==typeof this.accessToken?this.accessToken():this.accessToken)}selectHeaderContentType(s){if(0===s.length)return;const e=s.find(t=>this.isJsonMime(t));return void 0===e?s[0]:e}selectHeaderAccept(s){if(0===s.length)return;const e=s.find(t=>this.isJsonMime(t));return void 0===e?s[0]:e}isJsonMime(s){const e=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==s&&(e.test(s)||"application/json-patch+json"===s.toLowerCase())}lookupCredential(s){const e=this.credentials[s];return"function"==typeof e?e():e}}let ec=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new C.WM,this.configuration=new yt,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Ei}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}convertAttributeToNonunique(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToNonunique.");let d=new C.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"attributeDefinition"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new C.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToNonunique`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}convertAttributeToUnique(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToUnique.");let d=new C.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"attributeDefinition"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new C.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToUnique`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}createAttributeDefinition(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateAttributeDefinition was null or undefined when calling createAttributeDefinition.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new C.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/createAttribute`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}deleteAttributeDefinition(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter attribute was null or undefined when calling deleteAttributeDefinition.");let d=new C.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"attribute"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new C.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttribute`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}deleteAttributeDefinitions(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter attributes was null or undefined when calling deleteAttributeDefinitions.");let d=new C.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"attributes[]")});let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new C.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttributes`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getAllAttributeDefinitions(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let a=r&&r.context;void 0===a&&(a=new C.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributesDefinition`,{context:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAttribute(e,t,r,l,d,o,a,c,u,h,f,b="body",V=!1,X){let ue=new C.LE({encoder:this.encoder});null!=e&&(ue=this.addToHttpParams(ue,e,"attributeName")),null!=t&&(ue=this.addToHttpParams(ue,t,"attributeId")),null!=r&&(ue=this.addToHttpParams(ue,r,"facility")),null!=l&&(ue=this.addToHttpParams(ue,l,"user")),null!=d&&(ue=this.addToHttpParams(ue,d,"vo")),null!=o&&(ue=this.addToHttpParams(ue,o,"resource")),null!=a&&(ue=this.addToHttpParams(ue,a,"member")),null!=c&&(ue=this.addToHttpParams(ue,c,"group")),null!=u&&(ue=this.addToHttpParams(ue,u,"host")),null!=h&&(ue=this.addToHttpParams(ue,h,"userExtSource")),null!=f&&(ue=this.addToHttpParams(ue,f,"key"));let Pt,je=this.defaultHeaders;Pt=this.configuration.lookupCredential("BasicAuth"),Pt&&(je=je.set("Authorization","Basic "+Pt)),Pt=this.configuration.lookupCredential("BearerAuth"),Pt&&(je=je.set("Authorization","Bearer "+Pt));let Gt=X&&X.httpHeaderAccept;void 0===Gt&&(Gt=this.configuration.selectHeaderAccept(["application/json"])),void 0!==Gt&&(je=je.set("Accept",Gt));let ji=X&&X.context;void 0===ji&&(ji=new C.qT);let Gs="json";return Gt&&(Gs=Gt.startsWith("text")?"text":this.configuration.isJsonMime(Gt)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/any`,{context:ji,params:ue,responseType:Gs,withCredentials:this.configuration.withCredentials,headers:je,observe:b,reportProgress:V})}getAttributeDefinitionById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getAttributeDefinitionById.");let d=new C.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new C.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinitionById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getAttributeDefinitionByName(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getAttributeDefinitionByName.");let d=new C.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"attributeName"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new C.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinition`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getAttributeDefinitionsByNamespace(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter namespace was null or undefined when calling getAttributeDefinitionsByNamespace.");let d=new C.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"namespace"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new C.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributesDefinitionByNamespace`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getAttributeModulesDependenciesForAttributeGraphText(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");if(null==t)throw new Error("Required parameter attrName was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"format")),null!=t&&(o=this.addToHttpParams(o,t,"attrName"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText/for-attribute`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}getAttributeModulesDependenciesGraphText(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesGraphText.");let d=new C.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"format"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new C.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getAttributePolicyCollections(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getAttributePolicyCollections.");let d=new C.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"attributeId"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new C.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributePolicyCollections`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getAttributeRights(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getAttributeRights.");let d=new C.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"attributeId"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new C.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeRights`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getAttributeRules(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling getAttributeRules.");let d=new C.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"attributeDefinition"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new C.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeRules`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getAttributesDefinitionWithRights(e,t,r,l,d,o,a,c,u="body",h=!1,f){let b=new C.LE({encoder:this.encoder});null!=e&&(b=this.addToHttpParams(b,e,"member")),null!=t&&(b=this.addToHttpParams(b,t,"user")),null!=r&&(b=this.addToHttpParams(b,r,"vo")),null!=l&&(b=this.addToHttpParams(b,l,"group")),null!=d&&(b=this.addToHttpParams(b,d,"resource")),null!=o&&(b=this.addToHttpParams(b,o,"facility")),null!=a&&(b=this.addToHttpParams(b,a,"host")),null!=c&&(b=this.addToHttpParams(b,c,"userExtSource"));let X,V=this.defaultHeaders;X=this.configuration.lookupCredential("BasicAuth"),X&&(V=V.set("Authorization","Basic "+X)),X=this.configuration.lookupCredential("BearerAuth"),X&&(V=V.set("Authorization","Bearer "+X));let ue=f&&f.httpHeaderAccept;void 0===ue&&(ue=this.configuration.selectHeaderAccept(["application/json"])),void 0!==ue&&(V=V.set("Accept",ue));let je=f&&f.context;void 0===je&&(je=new C.qT);let Pt="json";return ue&&(Pt=ue.startsWith("text")?"text":this.configuration.isJsonMime(ue)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/attributesManager/getAttributesDefinitionWithRights`,{context:je,params:b,responseType:Pt,withCredentials:this.configuration.withCredentials,headers:V,observe:u,reportProgress:h})}getEntitylessAttributeByName(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getEntitylessAttributeByName.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"key")),null!=t&&(o=this.addToHttpParams(o,t,"attributeName"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-entityless`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}getEntitylessAttributesByKey(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributesByKey.");let d=new C.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"key"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new C.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/key`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getEntitylessAttributesByName(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesByName.");let d=new C.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"attrName"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new C.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributes`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getEntitylessAttributesWithKeys(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesWithKeys.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"attrName")),t&&t.forEach(b=>{o=this.addToHttpParams(o,b,"keys[]")});let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributesWithKeys`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}getEntitylessKeys(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling getEntitylessKeys.");let d=new C.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"attributeDefinition"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new C.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessKeys`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getFacilityAttributeById(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getFacilityAttributeById.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"facility")),null!=t&&(o=this.addToHttpParams(o,t,"attributeId"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-facility`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}getFacilityAttributeByName(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getFacilityAttributeByName.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"facility")),null!=t&&(o=this.addToHttpParams(o,t,"attributeName"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-facility`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}getFacilityAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributes.");let d=new C.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"facility"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new C.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getFacilityAttributesByNames(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getFacilityAttributesByNames.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"facility")),t&&t.forEach(b=>{o=this.addToHttpParams(o,b,"attrNames[]")});let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-names`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}getFacilityResourceUserMemberAttributes(e,t,r,l,d="body",o=!1,a){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==r)throw new Error("Required parameter user was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==l)throw new Error("Required parameter member was null or undefined when calling getFacilityResourceUserMemberAttributes.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"facility")),null!=t&&(c=this.addToHttpParams(c,t,"resource")),null!=r&&(c=this.addToHttpParams(c,r,"user")),null!=l&&(c=this.addToHttpParams(c,l,"member"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=a&&a.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=a&&a.context;void 0===b&&(b=new C.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-r-u-m`,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:o})}getFacilityUserAttributes(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityUserAttributes.");if(null==t)throw new Error("Required parameter user was null or undefined when calling getFacilityUserAttributes.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"facility")),null!=t&&(o=this.addToHttpParams(o,t,"user"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-u`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}getGroupAttributeById(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getGroupAttributeById.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"attributeId"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}getGroupAttributeByName(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getGroupAttributeByName.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"attributeName"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}getGroupAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributes.");let d=new C.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"group"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new C.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/g`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getGroupAttributesByNames(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getGroupAttributesByNames.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),t&&t.forEach(b=>{o=this.addToHttpParams(o,b,"attrNames[]")});let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/g-names`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}getGroupResourceAttributeById(e,t,r,l="body",d=!1,o){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeById.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeById.");if(null==r)throw new Error("Required parameter attributeId was null or undefined when calling getGroupResourceAttributeById.");let a=new C.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"group")),null!=t&&(a=this.addToHttpParams(a,t,"resource")),null!=r&&(a=this.addToHttpParams(a,r,"attributeId"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new C.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group-resource`,{context:f,params:a,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getGroupResourceAttributeByName(e,t,r,l="body",d=!1,o){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeByName.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeByName.");if(null==r)throw new Error("Required parameter attributeName was null or undefined when calling getGroupResourceAttributeByName.");let a=new C.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"group")),null!=t&&(a=this.addToHttpParams(a,t,"resource")),null!=r&&(a=this.addToHttpParams(a,r,"attributeName"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new C.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group-resource`,{context:f,params:a,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getGroupResourceAttributes(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributes.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"resource"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/group-resource`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}getHostAttributeById(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getHostAttributeById.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"host")),null!=t&&(o=this.addToHttpParams(o,t,"attributeId"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-host`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}getHostAttributeByName(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getHostAttributeByName.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"host")),null!=t&&(o=this.addToHttpParams(o,t,"attributeName"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-host`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}getHostAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributes.");let d=new C.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"host"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new C.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/h`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getHostAttributesByNames(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getHostAttributesByNames.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"host")),t&&t.forEach(b=>{o=this.addToHttpParams(o,b,"attrNames[]")});let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/h-names`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}getLogins(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getLogins.");let d=new C.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new C.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getLogins`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getMemberAndUserAttributes(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributes.");if(null==t)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributes.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"workWithUserAttributes"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-wu`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}getMemberAndUserAttributesByNames(e,t,r,l="body",d=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==r)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributesByNames.");let a=new C.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"member")),t&&t.forEach(V=>{a=this.addToHttpParams(a,V,"attrNames[]")}),null!=r&&(a=this.addToHttpParams(a,r,"workWithUserAttributes"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new C.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names-wu`,{context:f,params:a,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getMemberAttributeById(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getMemberAttributeById.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"attributeId"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}getMemberAttributeByName(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getMemberAttributeByName.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"attributeName"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}getMemberAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributes.");let d=new C.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"member"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new C.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getMemberAttributesByNames(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAttributesByNames.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),t&&t.forEach(b=>{o=this.addToHttpParams(o,b,"attrNames[]")});let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}getMemberGroupAndUserAttributesByNames(e,t,r,l,d="body",o=!1,a){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==r)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==l)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberGroupAndUserAttributesByNames.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member")),null!=t&&(c=this.addToHttpParams(c,t,"group")),r&&r.forEach(X=>{c=this.addToHttpParams(c,X,"attrNames[]")}),null!=l&&(c=this.addToHttpParams(c,l,"workWithUserAttributes"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=a&&a.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=a&&a.context;void 0===b&&(b=new C.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names-wu`,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:o})}getMemberGroupAttributeById(e,t,r,l="body",d=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeById.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeById.");if(null==r)throw new Error("Required parameter attributeId was null or undefined when calling getMemberGroupAttributeById.");let a=new C.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"member")),null!=t&&(a=this.addToHttpParams(a,t,"group")),null!=r&&(a=this.addToHttpParams(a,r,"attributeId"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new C.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-group`,{context:f,params:a,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getMemberGroupAttributeByName(e,t,r,l="body",d=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeByName.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeByName.");if(null==r)throw new Error("Required parameter attributeName was null or undefined when calling getMemberGroupAttributeByName.");let a=new C.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"member")),null!=t&&(a=this.addToHttpParams(a,t,"group")),null!=r&&(a=this.addToHttpParams(a,r,"attributeName"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new C.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-group`,{context:f,params:a,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getMemberGroupAttributes(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributes.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}getMemberGroupAttributesByNames(e,t,r,l="body",d=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributesByNames.");if(null==r)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAttributesByNames.");let a=new C.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"member")),null!=t&&(a=this.addToHttpParams(a,t,"group")),r&&r.forEach(V=>{a=this.addToHttpParams(a,V,"attrNames[]")});let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new C.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names`,{context:f,params:a,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getMemberResourceAndUserFacilityAttributes(e,t,r,l="body",d=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==r)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");let a=new C.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"member")),null!=t&&(a=this.addToHttpParams(a,t,"resource")),null!=r&&(a=this.addToHttpParams(a,r,"workWithUserAttributes"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new C.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-wu`,{context:f,params:a,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getMemberResourceAndUserFacilityAttributesByNames(e,t,r,l,d="body",o=!1,a){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==r)throw new Error("Required parameter attrNames was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==l)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member")),null!=t&&(c=this.addToHttpParams(c,t,"resource")),r&&r.forEach(X=>{c=this.addToHttpParams(c,X,"attrNames[]")}),null!=l&&(c=this.addToHttpParams(c,l,"workWithUserAttributes"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=a&&a.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=a&&a.context;void 0===b&&(b=new C.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-names-wu`,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:o})}getMemberResourceAttributeById(e,t,r,l="body",d=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeById.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeById.");if(null==r)throw new Error("Required parameter attributeId was null or undefined when calling getMemberResourceAttributeById.");let a=new C.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"member")),null!=t&&(a=this.addToHttpParams(a,t,"resource")),null!=r&&(a=this.addToHttpParams(a,r,"attributeId"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new C.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-resource`,{context:f,params:a,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getMemberResourceAttributeByName(e,t,r,l="body",d=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeByName.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeByName.");if(null==r)throw new Error("Required parameter attributeName was null or undefined when calling getMemberResourceAttributeByName.");let a=new C.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"member")),null!=t&&(a=this.addToHttpParams(a,t,"resource")),null!=r&&(a=this.addToHttpParams(a,r,"attributeName"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new C.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-resource`,{context:f,params:a,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getMemberResourceAttributes(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributes.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"resource"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}getRequiredAttributesDefinition(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesDefinition.");let d=new C.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"service"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new C.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributesDefinition`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getRequiredAttributesFacility(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacility.");let d=new C.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"facility"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new C.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/f`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getRequiredAttributesFacilityService(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesFacilityService.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityService.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"service")),null!=t&&(o=this.addToHttpParams(o,t,"facility"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-f`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}getRequiredAttributesFacilityServices(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesFacilityServices.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityServices.");let o=new C.LE({encoder:this.encoder});e&&e.forEach(b=>{o=this.addToHttpParams(o,b,"services[]")}),null!=t&&(o=this.addToHttpParams(o,t,"facility"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-f`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}getRequiredAttributesGroupResourceService(e,t,r,l="body",d=!1,o){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==r)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesGroupResourceService.");let a=new C.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"service")),null!=t&&(a=this.addToHttpParams(a,t,"resource")),null!=r&&(a=this.addToHttpParams(a,r,"group"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new C.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g`,{context:f,params:a,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getRequiredAttributesHostService(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesHostService.");if(null==t)throw new Error("Required parameter host was null or undefined when calling getRequiredAttributesHostService.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"service")),null!=t&&(o=this.addToHttpParams(o,t,"host"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-h`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}getRequiredAttributesMember(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMember.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"workWithUserAttributes"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}getRequiredAttributesMemberGroup(e,t,r,l="body",d=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroup.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroup.");let a=new C.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"member")),null!=t&&(a=this.addToHttpParams(a,t,"group")),null!=r&&(a=this.addToHttpParams(a,r,"workWithUserAttributes"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new C.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-g`,{context:f,params:a,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getRequiredAttributesMemberGroupResourceService(e,t,r,l,d,o="body",a=!1,c){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==r)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==l)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");let u=new C.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"service")),null!=t&&(u=this.addToHttpParams(u,t,"resource")),null!=r&&(u=this.addToHttpParams(u,r,"group")),null!=l&&(u=this.addToHttpParams(u,l,"member")),null!=d&&(u=this.addToHttpParams(u,d,"workWithUserAttributes"));let f,h=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(h=h.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(h=h.set("Authorization","Bearer "+f));let b=c&&c.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let V=c&&c.context;void 0===V&&(V=new C.qT);let X="json";return b&&(X=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g-m`,{context:V,params:u,responseType:X,withCredentials:this.configuration.withCredentials,headers:h,observe:o,reportProgress:a})}getRequiredAttributesMemberGroupService(e,t,r,l,d="body",o=!1,a){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==r)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupService.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"service")),null!=t&&(c=this.addToHttpParams(c,t,"group")),null!=r&&(c=this.addToHttpParams(c,r,"member")),null!=l&&(c=this.addToHttpParams(c,l,"workWithUserAttributes"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=a&&a.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=a&&a.context;void 0===b&&(b=new C.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-g-m`,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:o})}getRequiredAttributesMemberResource(e,t,r,l="body",d=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResource.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResource.");let a=new C.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"member")),null!=t&&(a=this.addToHttpParams(a,t,"resource")),null!=r&&(a=this.addToHttpParams(a,r,"workWithUserAttributes"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new C.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-r`,{context:f,params:a,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getRequiredAttributesMemberResourceService(e,t,r,l,d="body",o=!1,a){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==r)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResourceService.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"service")),null!=t&&(c=this.addToHttpParams(c,t,"resource")),null!=r&&(c=this.addToHttpParams(c,r,"member")),null!=l&&(c=this.addToHttpParams(c,l,"workWithUserAttributes"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=a&&a.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=a&&a.context;void 0===b&&(b=new C.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-m`,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:o})}getRequiredAttributesResource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResource.");let d=new C.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"resource"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new C.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/r`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getRequiredAttributesResourceService(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceService.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"service")),null!=t&&(o=this.addToHttpParams(o,t,"resource"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}getRequiredAttributesResourceServices(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesResourceServices.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceServices.");let o=new C.LE({encoder:this.encoder});e&&e.forEach(b=>{o=this.addToHttpParams(o,b,"services[]")}),null!=t&&(o=this.addToHttpParams(o,t,"resource"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-r`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}getRequiredAttributesUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUser.");let d=new C.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new C.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getRequiredAttributesUserFacility(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUserFacility.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesUserFacility.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"facility"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u-f`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}getRequiredAttributesVoService(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesVoService.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling getRequiredAttributesVoService.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"service")),null!=t&&(o=this.addToHttpParams(o,t,"vo"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-v`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}getResourceAttributeById(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getResourceAttributeById.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"attributeId"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-resource`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}getResourceAttributeByName(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getResourceAttributeByName.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"attributeName"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-resource`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}getResourceAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributes.");let d=new C.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"resource"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new C.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getResourceAttributesByNames(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getResourceAttributesByNames.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),t&&t.forEach(b=>{o=this.addToHttpParams(o,b,"attrNames[]")});let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-names`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}getResourceGroupAndGroupAttributes(e,t,r,l="body",d=!1,o){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==r)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributes.");let a=new C.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"resource")),null!=t&&(a=this.addToHttpParams(a,t,"group")),null!=r&&(a=this.addToHttpParams(a,r,"workWithGroupAttributes"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new C.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-wg`,{context:f,params:a,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getResourceGroupAndGroupAttributesByNames(e,t,r,l,d="body",o=!1,a){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==r)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==l)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource")),null!=t&&(c=this.addToHttpParams(c,t,"group")),r&&r.forEach(X=>{c=this.addToHttpParams(c,X,"attrNames[]")}),null!=l&&(c=this.addToHttpParams(c,l,"workWithGroupAttributes"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=a&&a.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=a&&a.context;void 0===b&&(b=new C.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-names-wg`,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:o})}getResourceGroupAttributes(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAttributes.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"group"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}getResourceGroupMemberAttributesByNames(e,t,r,l,d="body",o=!1,a){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==r)throw new Error("Required parameter member was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==l)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupMemberAttributesByNames.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource")),null!=t&&(c=this.addToHttpParams(c,t,"group")),null!=r&&(c=this.addToHttpParams(c,r,"member")),l&&l.forEach(X=>{c=this.addToHttpParams(c,X,"attrNames[]")});let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=a&&a.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=a&&a.context;void 0===b&&(b=new C.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-m-names`,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:o})}getUserAttributeById(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getUserAttributeById.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"attributeId"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}getUserAttributeByName(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getUserAttributeByName.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"attributeName"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}getUserAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributes.");let d=new C.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new C.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/u`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getUserAttributesByNames(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getUserAttributesByNames.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),t&&t.forEach(b=>{o=this.addToHttpParams(o,b,"attrNames[]")});let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/u-names`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}getUserExtSourceAttributeById(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceAttributeById.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"userExtSource")),null!=t&&(o=this.addToHttpParams(o,t,"attributeId"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-ues`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}getUserExtSourceAttributeByName(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceAttributeByName.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"userExtSource")),null!=t&&(o=this.addToHttpParams(o,t,"attributeName"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-ues`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}getUserExtSourceAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributes.");let d=new C.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"userExtSource"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new C.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/ues`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getUserExtSourceAttributesByNames(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getUserExtSourceAttributesByNames.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"userExtSource")),t&&t.forEach(b=>{o=this.addToHttpParams(o,b,"attrNames[]")});let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/ues-names`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}getUserFacilityAttributeById(e,t,r,l="body",d=!1,o){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeById.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeById.");if(null==r)throw new Error("Required parameter attributeId was null or undefined when calling getUserFacilityAttributeById.");let a=new C.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"user")),null!=t&&(a=this.addToHttpParams(a,t,"facility")),null!=r&&(a=this.addToHttpParams(a,r,"attributeId"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new C.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user_facility`,{context:f,params:a,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getUserFacilityAttributeByName(e,t,r,l="body",d=!1,o){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeByName.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeByName.");if(null==r)throw new Error("Required parameter attributeName was null or undefined when calling getUserFacilityAttributeByName.");let a=new C.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"user")),null!=t&&(a=this.addToHttpParams(a,t,"facility")),null!=r&&(a=this.addToHttpParams(a,r,"attributeName"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new C.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user_facility`,{context:f,params:a,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getUserFacilityAttributes(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributes.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributes.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"facility"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/user-facility`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}getVoAttributeById(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getVoAttributeById.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"attributeId"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-vo`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}getVoAttributeByName(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getVoAttributeByName.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"attributeName"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-vo`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}getVoAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributes.");let d=new C.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new C.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/vo`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getVoAttributesByNames(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getVoAttributesByNames.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),t&&t.forEach(b=>{o=this.addToHttpParams(o,b,"attrNames[]")});let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/vo-names`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}removeAttributesForFacilityResourceGroupUserMember(e,t,r,l,d,o,a="body",c=!1,u){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==r)throw new Error("Required parameter group was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==l)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==d)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==o)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");let h=new C.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"facility")),null!=t&&(h=this.addToHttpParams(h,t,"resource")),null!=r&&(h=this.addToHttpParams(h,r,"group")),null!=l&&(h=this.addToHttpParams(h,l,"user")),null!=d&&(h=this.addToHttpParams(h,d,"member")),o&&o.forEach(je=>{h=this.addToHttpParams(h,je,"attributes[]")});let b,f=this.defaultHeaders;b=this.configuration.lookupCredential("BasicAuth"),b&&(f=f.set("Authorization","Basic "+b)),b=this.configuration.lookupCredential("BearerAuth"),b&&(f=f.set("Authorization","Bearer "+b));let V=u&&u.httpHeaderAccept;void 0===V&&(V=this.configuration.selectHeaderAccept(["application/json"])),void 0!==V&&(f=f.set("Accept",V));let X=u&&u.context;void 0===X&&(X=new C.qT);let ue="json";return V&&(ue=V.startsWith("text")?"text":this.configuration.isJsonMime(V)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-g-u-m`,null,{context:X,params:h,responseType:ue,withCredentials:this.configuration.withCredentials,headers:f,observe:a,reportProgress:c})}removeAttributesForFacilityResourceUserMember(e,t,r,l,d,o="body",a=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==r)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==l)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==d)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceUserMember.");let u=new C.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"facility")),null!=t&&(u=this.addToHttpParams(u,t,"resource")),null!=r&&(u=this.addToHttpParams(u,r,"user")),null!=l&&(u=this.addToHttpParams(u,l,"member")),d&&d.forEach(ue=>{u=this.addToHttpParams(u,ue,"attributes[]")});let f,h=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(h=h.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(h=h.set("Authorization","Bearer "+f));let b=c&&c.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let V=c&&c.context;void 0===V&&(V=new C.qT);let X="json";return b&&(X=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-u-m`,null,{context:V,params:u,responseType:X,withCredentials:this.configuration.withCredentials,headers:h,observe:o,reportProgress:a})}removeEntitylessAttribute(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter key was null or undefined when calling removeEntitylessAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeEntitylessAttribute.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"key")),null!=t&&(o=this.addToHttpParams(o,t,"attribute"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/e`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}removeFacilityAttribute(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeFacilityAttribute.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"facility")),null!=t&&(o=this.addToHttpParams(o,t,"attribute"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/f`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}removeFacilityAttributes(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeFacilityAttributes.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"facility")),t&&t.forEach(b=>{o=this.addToHttpParams(o,b,"attributes[]")});let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}removeGroupAttribute(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeGroupAttribute.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"attribute"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}removeGroupAttributes(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeGroupAttributes.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),t&&t.forEach(b=>{o=this.addToHttpParams(o,b,"attributes[]")});let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}removeGroupResourceAttribute(e,t,r,l="body",d=!1,o){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttribute.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttribute.");if(null==r)throw new Error("Required parameter attribute was null or undefined when calling removeGroupResourceAttribute.");let a=new C.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"group")),null!=t&&(a=this.addToHttpParams(a,t,"resource")),null!=r&&(a=this.addToHttpParams(a,r,"attribute"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new C.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g-r`,null,{context:f,params:a,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}removeGroupResourceAttributes(e,t,r,l="body",d=!1,o){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributes.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributes.");let a=new C.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"group")),null!=t&&(a=this.addToHttpParams(a,t,"resource")),r&&r.forEach(V=>{a=this.addToHttpParams(a,V,"attributes[]")});let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new C.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r`,null,{context:f,params:a,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}removeGroupResourceAttributesWorkWithGroupAttributes(e,t,r,l,d="body",o=!1,a){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==l)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group")),null!=t&&(c=this.addToHttpParams(c,t,"resource")),r&&r.forEach(X=>{c=this.addToHttpParams(c,X,"attributes[]")}),null!=l&&(c=this.addToHttpParams(c,l,"workWithGroupAttributes"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=a&&a.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=a&&a.context;void 0===b&&(b=new C.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r-workWithGroupAttributes`,null,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:o})}removeHostAttribute(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter host was null or undefined when calling removeHostAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeHostAttribute.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"host")),null!=t&&(o=this.addToHttpParams(o,t,"attribute"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/h`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}removeHostAttributes(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter host was null or undefined when calling removeHostAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeHostAttributes.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"host")),t&&t.forEach(b=>{o=this.addToHttpParams(o,b,"attributes[]")});let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/h`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}removeMemberAttribute(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeMemberAttribute.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"attribute"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}removeMemberAttributes(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributes.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),t&&t.forEach(b=>{o=this.addToHttpParams(o,b,"attributes[]")});let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}removeMemberAttributesWorkWithUserAttributes(e,t,r,l="body",d=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==r)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");let a=new C.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"member")),t&&t.forEach(V=>{a=this.addToHttpParams(a,V,"attributes[]")}),null!=r&&(a=this.addToHttpParams(a,r,"workWithUserAttributes"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new C.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-workWithUserAttributes`,null,{context:f,params:a,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}removeMemberGroupAttribute(e,t,r,l="body",d=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttribute.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttribute.");if(null==r)throw new Error("Required parameter attribute was null or undefined when calling removeMemberGroupAttribute.");let a=new C.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"member")),null!=t&&(a=this.addToHttpParams(a,t,"group")),null!=r&&(a=this.addToHttpParams(a,r,"attribute"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new C.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-g`,null,{context:f,params:a,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}removeMemberGroupAttributes(e,t,r,l="body",d=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributes.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributes.");let a=new C.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"member")),null!=t&&(a=this.addToHttpParams(a,t,"group")),r&&r.forEach(V=>{a=this.addToHttpParams(a,V,"attributes[]")});let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new C.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g`,null,{context:f,params:a,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}removeMemberGroupAttributesWorkWithUserAttributes(e,t,r,l,d="body",o=!1,a){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==l)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member")),null!=t&&(c=this.addToHttpParams(c,t,"group")),r&&r.forEach(X=>{c=this.addToHttpParams(c,X,"attributes[]")}),null!=l&&(c=this.addToHttpParams(c,l,"workWithUserAttributes"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=a&&a.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=a&&a.context;void 0===b&&(b=new C.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g-workWithUserAttributes`,null,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:o})}removeMemberResourceAttribute(e,t,r,l="body",d=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttribute.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttribute.");if(null==r)throw new Error("Required parameter attribute was null or undefined when calling removeMemberResourceAttribute.");let a=new C.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"member")),null!=t&&(a=this.addToHttpParams(a,t,"resource")),null!=r&&(a=this.addToHttpParams(a,r,"attribute"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new C.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-r`,null,{context:f,params:a,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}removeMemberResourceAttributes(e,t,r,l="body",d=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttributes.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeMemberResourceAttributes.");let a=new C.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"member")),null!=t&&(a=this.addToHttpParams(a,t,"resource")),r&&r.forEach(V=>{a=this.addToHttpParams(a,V,"attributes[]")});let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new C.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-r`,null,{context:f,params:a,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}removeResourceAttribute(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeResourceAttribute.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"attribute"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/r`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}removeResourceAttributes(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeResourceAttributes.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),t&&t.forEach(b=>{o=this.addToHttpParams(o,b,"attributes[]")});let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/r`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}removeUesAttributes(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling removeUesAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeUesAttributes.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"userExtSource")),t&&t.forEach(b=>{o=this.addToHttpParams(o,b,"attributes[]")});let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/ues`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}removeUserAttribute(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeUserAttribute.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"attribute"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}removeUserAttributes(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeUserAttributes.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),t&&t.forEach(b=>{o=this.addToHttpParams(o,b,"attributes[]")});let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}removeUserExtSourceAttribute(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSourceAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeUserExtSourceAttribute.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"userExtSource")),null!=t&&(o=this.addToHttpParams(o,t,"attribute"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/ues`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}removeUserFacilityAttribute(e,t,r,l="body",d=!1,o){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttribute.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttribute.");if(null==r)throw new Error("Required parameter attribute was null or undefined when calling removeUserFacilityAttribute.");let a=new C.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"user")),null!=t&&(a=this.addToHttpParams(a,t,"facility")),null!=r&&(a=this.addToHttpParams(a,r,"attribute"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new C.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u-f`,null,{context:f,params:a,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}removeUserFacilityAttributes(e,t,r,l="body",d=!1,o){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttributes.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttributes.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeUserFacilityAttributes.");let a=new C.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"user")),null!=t&&(a=this.addToHttpParams(a,t,"facility")),r&&r.forEach(V=>{a=this.addToHttpParams(a,V,"attributes[]")});let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new C.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u-f`,null,{context:f,params:a,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}removeVoAttribute(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeVoAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeVoAttribute.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"attribute"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/v`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}removeVoAttributes(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeVoAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeVoAttributes.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),t&&t.forEach(b=>{o=this.addToHttpParams(o,b,"attributes[]")});let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/v`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}setAttributeActionCriticality(e,t,r,l="body",d=!1,o){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling setAttributeActionCriticality.");if(null==t)throw new Error("Required parameter action was null or undefined when calling setAttributeActionCriticality.");if(null==r)throw new Error("Required parameter critical was null or undefined when calling setAttributeActionCriticality.");let a=new C.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"attributeDefinition")),null!=t&&(a=this.addToHttpParams(a,t,"action")),null!=r&&(a=this.addToHttpParams(a,r,"critical"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new C.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/setAttributeActionCriticality`,null,{context:f,params:a,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}setAttributePolicyCollections(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputAttributePolicyCollections was null or undefined when calling setAttributePolicyCollections.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new C.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributePolicyCollections`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setAttributeRights(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputAttributeRights was null or undefined when calling setAttributeRights.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new C.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributeRights`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setEntitylessAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputEntitylessAttribute was null or undefined when calling setEntitylessAttribute.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new C.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/entityless`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setFacilityAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetFacilityAttribute was null or undefined when calling setFacilityAttribute.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new C.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/facility`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setFacilityAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetFacilityAttributes was null or undefined when calling setFacilityAttributes.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new C.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setFacilityResourceGroupUserMemberAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetFacilityResourceGroupUserMemberAttributes was null or undefined when calling setFacilityResourceGroupUserMemberAttributes.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new C.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-g-u-m`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setFacilityResourceUserMemberAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetFacilityResourceUserMemberAttributes was null or undefined when calling setFacilityResourceUserMemberAttributes.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new C.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-u-m`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setFacilityUserAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetFacilityUserAttributes was null or undefined when calling setFacilityUserAttributes.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new C.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-u`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setGroupAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetGroupAttribute was null or undefined when calling setGroupAttribute.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new C.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/group`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setGroupAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetGroupAttributes was null or undefined when calling setGroupAttributes.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new C.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/g`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setGroupResourceAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetGroupResourceAttribute was null or undefined when calling setGroupResourceAttribute.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new C.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/group-resource`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setGroupResourceAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetGroupResourceAttributes was null or undefined when calling setGroupResourceAttributes.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new C.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/group-resource`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setHostAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetHostAttribute was null or undefined when calling setHostAttribute.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new C.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/host`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setHostAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetHostAttributes was null or undefined when calling setHostAttributes.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new C.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/h`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setMemberAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberAttribute was null or undefined when calling setMemberAttribute.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new C.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setMemberAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberAttributes was null or undefined when calling setMemberAttributes.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new C.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setMemberGroupAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberGroupAttribute was null or undefined when calling setMemberGroupAttribute.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new C.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member-group`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setMemberGroupAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberGroupAttributes was null or undefined when calling setMemberGroupAttributes.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new C.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setMemberGroupWithUserAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberGroupWithUserAttributes was null or undefined when calling setMemberGroupWithUserAttributes.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new C.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g-wu`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setMemberResourceAndUserAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberResourceAndUserAttributes was null or undefined when calling setMemberResourceAndUserAttributes.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new C.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r-wu`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setMemberResourceAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberResourceAttribute was null or undefined when calling setMemberResourceAttribute.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new C.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member-resource`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setMemberResourceAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberResourceAttributes was null or undefined when calling setMemberResourceAttributes.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new C.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setMemberWithUserAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberWithUserAttributes was null or undefined when calling setMemberWithUserAttributes.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new C.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-wu`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setResourceAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetResourceAttribute was null or undefined when calling setResourceAttribute.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new C.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/resource`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setResourceAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetResourceAttributes was null or undefined when calling setResourceAttributes.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new C.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setResourceGroupAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetResourceGroupAttributes was null or undefined when calling setResourceGroupAttributes.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new C.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setResourceGroupWithGroupAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetResourceGroupWithGroupAttributes was null or undefined when calling setResourceGroupWithGroupAttributes.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new C.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g-wg`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setUserAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetUserAttribute was null or undefined when calling setUserAttribute.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new C.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/user`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setUserAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetUserAttributes was null or undefined when calling setUserAttributes.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new C.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/u`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setUserExtSourceAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetUserExtSourceAttribute was null or undefined when calling setUserExtSourceAttribute.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new C.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/userExtSource`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setUserExtSourceAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetUserExtSourceAttributes was null or undefined when calling setUserExtSourceAttributes.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new C.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/ues`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setUserFacilityAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetUserFacilityAttribute was null or undefined when calling setUserFacilityAttribute.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new C.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/facility-user`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setUserFacilityAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetUserFacilityAttributes was null or undefined when calling setUserFacilityAttributes.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new C.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/facility-user`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setVoAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetVoAttribute was null or undefined when calling setVoAttribute.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new C.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/vo`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setVoAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetVoAttributes was null or undefined when calling setVoAttributes.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new C.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/vo`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}updateAttributeDefinition(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputAttributeDefinition was null or undefined when calling updateAttributeDefinition.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new C.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/updateAttributeDefinition`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(C.eN),i.LFG(yi,8),i.LFG(yt,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Fa=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new C.WM,this.configuration=new yt,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Ei}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}getAllPolicies(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let a=r&&r.context;void 0===a&&(a=new C.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllPolicies`,{context:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAllRolesManagementRules(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let a=r&&r.context;void 0===a&&(a=new C.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllRolesManagementRules`,{context:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAuthzAdminGroups(e,t,r,l="body",d=!1,o){if(null==e)throw new Error("Required parameter role was null or undefined when calling getAuthzAdminGroups.");if(null==t)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzAdminGroups.");if(null==r)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzAdminGroups.");let a=new C.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"role")),null!=t&&(a=this.addToHttpParams(a,t,"complementaryObjectId")),null!=r&&(a=this.addToHttpParams(a,r,"complementaryObjectName"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new C.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAdminGroups`,{context:f,params:a,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getAuthzRichAdmins(e,t,r,l,d,o,a="body",c=!1,u){if(null==e)throw new Error("Required parameter role was null or undefined when calling getAuthzRichAdmins.");if(null==t)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzRichAdmins.");if(null==r)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzRichAdmins.");if(null==l)throw new Error("Required parameter specificAttributes was null or undefined when calling getAuthzRichAdmins.");let h=new C.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"role")),null!=t&&(h=this.addToHttpParams(h,t,"complementaryObjectId")),null!=r&&(h=this.addToHttpParams(h,r,"complementaryObjectName")),l&&l.forEach(je=>{h=this.addToHttpParams(h,je,"specificAttributes")}),null!=d&&(h=this.addToHttpParams(h,d,"allUserAttributes")),null!=o&&(h=this.addToHttpParams(h,o,"onlyDirectAdmins"));let b,f=this.defaultHeaders;b=this.configuration.lookupCredential("BasicAuth"),b&&(f=f.set("Authorization","Basic "+b)),b=this.configuration.lookupCredential("BearerAuth"),b&&(f=f.set("Authorization","Bearer "+b));let V=u&&u.httpHeaderAccept;void 0===V&&(V=this.configuration.selectHeaderAccept(["application/json"])),void 0!==V&&(f=f.set("Accept",V));let X=u&&u.context;void 0===X&&(X=new C.qT);let ue="json";return V&&(ue=V.startsWith("text")?"text":this.configuration.isJsonMime(V)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getRichAdmins`,{context:X,params:h,responseType:ue,withCredentials:this.configuration.withCredentials,headers:f,observe:a,reportProgress:c})}getFacilitiesWhereUserIsInRoles(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getFacilitiesWhereUserIsInRoles.");let o=new C.LE({encoder:this.encoder});null!=t&&(o=this.addToHttpParams(o,t,"user")),e&&e.forEach(b=>{o=this.addToHttpParams(o,b,"roles[]")});let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getFacilitiesWhereUserIsInRoles`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}getGroupRoleNames(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");let d=new C.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"group"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new C.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupRoleNames`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getGroupRoles(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");let d=new C.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"groupId"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new C.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/getGroupRoles`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getGroupsWhereUserIsInRoles(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getGroupsWhereUserIsInRoles.");let o=new C.LE({encoder:this.encoder});null!=t&&(o=this.addToHttpParams(o,t,"user")),e&&e.forEach(b=>{o=this.addToHttpParams(o,b,"roles[]")});let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupsWhereUserIsInRoles`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}getLoggedUser(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let a=r&&r.context;void 0===a&&(a=new C.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getLoggedUser`,{context:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getMembersWhereUserIsInRoles(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getMembersWhereUserIsInRoles.");let o=new C.LE({encoder:this.encoder});null!=t&&(o=this.addToHttpParams(o,t,"user")),e&&e.forEach(b=>{o=this.addToHttpParams(o,b,"roles[]")});let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getMembersWhereUserIsInRoles`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}getPerunPrincipal(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let a=r&&r.context;void 0===a&&(a=new C.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPerunPrincipal`,{context:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPrincipalRoleNames(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let a=r&&r.context;void 0===a&&(a=new C.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPrincipalRoleNames`,{context:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getResourcesWhereUserIsInRoles(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getResourcesWhereUserIsInRoles.");let o=new C.LE({encoder:this.encoder});null!=t&&(o=this.addToHttpParams(o,t,"user")),e&&e.forEach(b=>{o=this.addToHttpParams(o,b,"roles[]")});let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getResourcesWhereUserIsInRoles`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}getSecurityTeamsWhereUserIsInRoles(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getSecurityTeamsWhereUserIsInRoles.");let o=new C.LE({encoder:this.encoder});null!=t&&(o=this.addToHttpParams(o,t,"user")),e&&e.forEach(b=>{o=this.addToHttpParams(o,b,"roles[]")});let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getSecurityTeamsWhereUserIsInRoles`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}getUserRoleNames(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");let d=new C.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new C.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoleNames`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getUserRoles(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");let d=new C.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"userId"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new C.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoles`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getVosWhereUserIsInRoles(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getVosWhereUserIsInRoles.");let o=new C.LE({encoder:this.encoder});null!=t&&(o=this.addToHttpParams(o,t,"user")),e&&e.forEach(b=>{o=this.addToHttpParams(o,b,"roles[]")});let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getVosWhereUserIsInRoles`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}isFacilityAdmin(e,t="body",r=!1,l){let d=new C.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"facility"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new C.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isFacilityAdmin`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}isGroupAdmin(e,t="body",r=!1,l){let d=new C.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"group"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new C.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isGroupAdmin`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}isPerunAdmin(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let a=r&&r.context;void 0===a&&(a=new C.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/isPerunAdmin`,{context:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}isVoAdmin(e,t="body",r=!1,l){let d=new C.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new C.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isVoAdmin`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}keepAlive(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let a=r&&r.context;void 0===a&&(a=new C.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/keepAlive`,{context:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}loadAuthorizationComponents(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let a=r&&r.context;void 0===a&&(a=new C.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/loadAuthorizationComponents`,{context:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}refreshMfa(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let a=r&&r.context;void 0===a&&(a=new C.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/refreshMfa`,{context:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}setRoleForGroup(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter SetRoleForGroup was null or undefined when calling setRoleForGroup.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new C.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/g`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setRoleForUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter SetRoleForUser was null or undefined when calling setRoleForUser.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new C.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/u`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setRoleWithGroupComplementaryObject(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter SetRoleWithGroupComplementaryObject was null or undefined when calling setRoleWithGroupComplementaryObject.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new C.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/g-co`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setRoleWithUserComplementaryObject(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter SetRoleWithUserComplementaryObject was null or undefined when calling setRoleWithUserComplementaryObject.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new C.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/u-co`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}unsetRoleForGroup(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter UnsetRoleForGroup was null or undefined when calling unsetRoleForGroup.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new C.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/g`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}unsetRoleForUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter UnsetRoleForUser was null or undefined when calling unsetRoleForUser.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new C.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/u`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}unsetRoleWithGroupComplementaryObject(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter UnsetRoleWithGroupComplementaryObject was null or undefined when calling unsetRoleWithGroupComplementaryObject.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new C.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/g-co`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}unsetRoleWithUserComplementaryObject(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter UnsetRoleWithUserComplementaryObject was null or undefined when calling unsetRoleWithUserComplementaryObject.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new C.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/u-co`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(C.eN),i.LFG(yi,8),i.LFG(yt,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),fi=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new C.WM,this.configuration=new yt,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Ei}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}createAutorship(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateAuthorship was null or undefined when calling createAutorship.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new C.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createAuthorship`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}createCategoryCat(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateCategory was null or undefined when calling createCategoryCat.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new C.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createCategory/cat`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}createCategoryNR(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateCategoryNR was null or undefined when calling createCategoryNR.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new C.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createCategory/n-r`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}createPublication(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreatePublication was null or undefined when calling createPublication.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new C.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createPublication`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}createPublicationSystem(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreatePublicationSystem was null or undefined when calling createPublicationSystem.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new C.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createPublicationSystem`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}createThanks(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateThanks was null or undefined when calling createThanks.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new C.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createThanks`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}deleteAuthorship(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter publicationId was null or undefined when calling deleteAuthorship.");if(null==t)throw new Error("Required parameter userId was null or undefined when calling deleteAuthorship.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"publicationId")),null!=t&&(o=this.addToHttpParams(o,t,"userId"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/cabinetManager/deleteAuthorship`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}deleteCategory(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteCategory.");let d=new C.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new C.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/cabinetManager/deleteCategory`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}deletePublication(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling deletePublication.");let d=new C.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new C.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/cabinetManager/deletePublication`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}deletePublicationSystem(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling deletePublicationSystem.");let d=new C.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new C.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/cabinetManager/deletePublicationSystem`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}deleteThanks(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteThanks.");let d=new C.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new C.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/cabinetManager/deleteThanks`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}findAllAuthors(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let a=r&&r.context;void 0===a&&(a=new C.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findAllAuthors`,{context:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}findAuthorsByPublicationId(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling findAuthorsByPublicationId.");let d=new C.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new C.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findAuthorsByPublicationId`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}findExternalPublications(e,t,r,l,d="body",o=!1,a){if(null==e)throw new Error("Required parameter user was null or undefined when calling findExternalPublications.");if(null==t)throw new Error("Required parameter yearSince was null or undefined when calling findExternalPublications.");if(null==r)throw new Error("Required parameter yearTill was null or undefined when calling findExternalPublications.");if(null==l)throw new Error("Required parameter pubSysNamespace was null or undefined when calling findExternalPublications.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user")),null!=t&&(c=this.addToHttpParams(c,t,"yearSince")),null!=r&&(c=this.addToHttpParams(c,r,"yearTill")),null!=l&&(c=this.addToHttpParams(c,l,"pubSysNamespace"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=a&&a.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=a&&a.context;void 0===b&&(b=new C.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findExternalPublications`,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:o})}findNewAuthors(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findNewAuthors.");let d=new C.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"searchString"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new C.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findNewAuthors`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}findPublicationById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling findPublicationById.");let d=new C.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new C.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findPublicationById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}findPublicationsByFilter(e,t,r,l="body",d=!1,o){if(null==e)throw new Error("Required parameter userId was null or undefined when calling findPublicationsByFilter.");let a=new C.LE({encoder:this.encoder});null!=t&&(a=this.addToHttpParams(a,t,"yearSince")),null!=r&&(a=this.addToHttpParams(a,r,"yearTill")),null!=e&&(a=this.addToHttpParams(a,e,"userId"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new C.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findPublicationsByFilter`,{context:f,params:a,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}findPublicationsByGUIFilter(e,t,r,l,d,o,a,c,u,h="body",f=!1,b){let V=new C.LE({encoder:this.encoder});null!=e&&(V=this.addToHttpParams(V,e,"title")),null!=t&&(V=this.addToHttpParams(V,t,"isbn")),null!=r&&(V=this.addToHttpParams(V,r,"doi")),null!=l&&(V=this.addToHttpParams(V,l,"id")),null!=d&&(V=this.addToHttpParams(V,d,"year")),null!=o&&(V=this.addToHttpParams(V,o,"category")),null!=a&&(V=this.addToHttpParams(V,a,"yearSince")),null!=c&&(V=this.addToHttpParams(V,c,"yearTill")),null!=u&&(V=this.addToHttpParams(V,u,"userId"));let ue,X=this.defaultHeaders;ue=this.configuration.lookupCredential("BasicAuth"),ue&&(X=X.set("Authorization","Basic "+ue)),ue=this.configuration.lookupCredential("BearerAuth"),ue&&(X=X.set("Authorization","Bearer "+ue));let je=b&&b.httpHeaderAccept;void 0===je&&(je=this.configuration.selectHeaderAccept(["application/json"])),void 0!==je&&(X=X.set("Accept",je));let Pt=b&&b.context;void 0===Pt&&(Pt=new C.qT);let Gt="json";return je&&(Gt=je.startsWith("text")?"text":this.configuration.isJsonMime(je)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findPublicationsByGUIFilter`,{context:Pt,params:V,responseType:Gt,withCredentials:this.configuration.withCredentials,headers:X,observe:h,reportProgress:f})}findSimilarPublications(e,t,r,l="body",d=!1,o){let a=new C.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"title")),null!=t&&(a=this.addToHttpParams(a,t,"doi")),null!=r&&(a=this.addToHttpParams(a,r,"isbn"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new C.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findSimilarPublications`,{context:f,params:a,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getCategories(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let a=r&&r.context;void 0===a&&(a=new C.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/getCategories`,{context:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPublicationSystems(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let a=r&&r.context;void 0===a&&(a=new C.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/getPublicationSystems`,{context:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getRank(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRank.");let d=new C.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new C.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/getRank`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getRichThanksByPublicationId(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getRichThanksByPublicationId.");let d=new C.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new C.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/getRichThanksByPublicationId`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}lockPublications(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputLockPublications was null or undefined when calling lockPublications.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new C.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/lockPublications`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}updateCategory(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdateCategory was null or undefined when calling updateCategory.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new C.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/updateCategory`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}updatePublication(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdatePublication was null or undefined when calling updatePublication.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new C.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/updatePublication`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}updatePublicationSystem(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdatePublicationSystem was null or undefined when calling updatePublicationSystem.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new C.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/updatePublicationSystem`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(C.eN),i.LFG(yi,8),i.LFG(yt,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ic=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new C.WM,this.configuration=new yt,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Ei}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}createOwner(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateOwner was null or undefined when calling createOwner.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new C.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/ownersManager/createOwner`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}deleteOwner(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter owner was null or undefined when calling deleteOwner.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"owner")),null!=t&&(o=this.addToHttpParams(o,t,"force"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/ownersManager/deleteOwner`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}getAllOwners(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let a=r&&r.context;void 0===a&&(a=new C.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/ownersManager/getOwners`,{context:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getOwnerById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getOwnerById.");let d=new C.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new C.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/ownersManager/getOwnerById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getOwnerByName(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter owner was null or undefined when calling getOwnerByName.");let d=new C.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"owner"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new C.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/ownersManager/getOwnerByName`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(C.eN),i.LFG(yi,8),i.LFG(yt,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Go=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new C.WM,this.configuration=new yt,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Ei}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}sentMessageToRTWithMemberQueue(e,t,r,l,d="body",o=!1,a){if(null==e)throw new Error("Required parameter memberId was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==r)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==l)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithMemberQueue.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"memberId")),null!=t&&(c=this.addToHttpParams(c,t,"queue")),null!=r&&(c=this.addToHttpParams(c,r,"subject")),null!=l&&(c=this.addToHttpParams(c,l,"text"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=a&&a.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=a&&a.context;void 0===b&&(b=new C.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/m-q`,null,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:o})}sentMessageToRTWithQueue(e,t,r,l="body",d=!1,o){if(null==e)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithQueue.");if(null==t)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithQueue.");if(null==r)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithQueue.");let a=new C.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"queue")),null!=t&&(a=this.addToHttpParams(a,t,"subject")),null!=r&&(a=this.addToHttpParams(a,r,"text"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new C.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/q`,null,{context:f,params:a,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}sentMessageToRTWithVo(e,t,r,l="body",d=!1,o){if(null==e)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVo.");if(null==t)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVo.");if(null==r)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVo.");let a=new C.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"voId")),null!=t&&(a=this.addToHttpParams(a,t,"subject")),null!=r&&(a=this.addToHttpParams(a,r,"text"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new C.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v`,null,{context:f,params:a,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}sentMessageToRTWithVoQueue(e,t,r,l,d="body",o=!1,a){if(null==e)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==r)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==l)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVoQueue.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"voId")),null!=t&&(c=this.addToHttpParams(c,t,"queue")),null!=r&&(c=this.addToHttpParams(c,r,"subject")),null!=l&&(c=this.addToHttpParams(c,l,"text"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=a&&a.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=a&&a.context;void 0===b&&(b=new C.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v-q`,null,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:o})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(C.eN),i.LFG(yi,8),i.LFG(yt,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),on=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new C.WM,this.configuration=new yt,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Ei}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}addSpecificUserOwner(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling addSpecificUserOwner.");if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling addSpecificUserOwner.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"specificUser"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/addSpecificUserOwner`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}addUserExtSource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter AddUserExtSourceInput was null or undefined when calling addUserExtSource.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new C.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/addUserExtSource`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}anonymizeUser(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling anonymizeUser.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"force"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/anonymizeUser`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}changeNonAuthzPasswordByToken(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputChangeNonAuthzPasswordByToken was null or undefined when calling changeNonAuthzPasswordByToken.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new C.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/changeNonAuthzPassword/token`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}changePasswordForLogin(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputChangePasswordForLogin was null or undefined when calling changePasswordForLogin.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new C.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/changePassword/login`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}changePasswordForUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputChangePasswordForUser was null or undefined when calling changePasswordForUser.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new C.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/changePassword/user`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}checkPasswordResetRequestByTokenIsValid(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter token was null or undefined when calling checkPasswordResetRequestByTokenIsValid.");let d=new C.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"token"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new C.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/checkPasswordResetRequestIsValid/token`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}checkPasswordStrength(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCheckPasswordStrength was null or undefined when calling checkPasswordStrength.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new C.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/checkPasswordStrength`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}createAlternativePassword(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateAlternativePassword was null or undefined when calling createAlternativePassword.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new C.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/createAlternativePassword`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}createServiceUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateServiceUser was null or undefined when calling createServiceUser.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new C.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/createServiceUser`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}deleteAlternativePassword(e,t,r,l="body",d=!1,o){if(null==e)throw new Error("Required parameter user was null or undefined when calling deleteAlternativePassword.");if(null==t)throw new Error("Required parameter loginNamespace was null or undefined when calling deleteAlternativePassword.");if(null==r)throw new Error("Required parameter passwordId was null or undefined when calling deleteAlternativePassword.");let a=new C.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"user")),null!=t&&(a=this.addToHttpParams(a,t,"loginNamespace")),null!=r&&(a=this.addToHttpParams(a,r,"passwordId"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new C.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteAlternativePassword`,null,{context:f,params:a,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}deletePasswordForLogin(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter login was null or undefined when calling deletePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForLogin.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"login")),null!=t&&(o=this.addToHttpParams(o,t,"namespace"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/login`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}deletePasswordForUser(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling deletePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForUser.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"namespace"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/user`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}deleteUser(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling deleteUser.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"force"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteUser`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}findRichUsers(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findRichUsers.");let d=new C.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"searchString"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new C.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsers`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}findRichUsersWithAttributes(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findRichUsersWithAttributes.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"searchString")),t&&t.forEach(b=>{o=this.addToHttpParams(o,b,"attrsNames[]")});let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsersWithAttributes`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}findUsers(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findUsers.");let d=new C.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"searchString"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new C.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findUsers`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}generateAccountForName(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter namespace was null or undefined when calling generateAccountForName.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"namespace")),null!=t&&(o=this.addToHttpParams(o,t,"name"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/generateAccount/name`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}getAllRichUsersWithAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter includedSpecificUsers was null or undefined when calling getAllRichUsersWithAttributes.");let d=new C.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"includedSpecificUsers"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new C.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAllRichUsersWithAttributes`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getAssignedRichResourcesForUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getAssignedRichResourcesForUser.");let d=new C.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new C.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAssignedRichResources`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getGroupsForFacilityWhereUserIsActive(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"facility"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/facility`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}getGroupsForResourceWhereUserIsActive(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsForResourceWhereUserIsActive.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupsForResourceWhereUserIsActive.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"resource"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/resource`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}getGroupsInVoWhereUserIsAdmin(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"vo"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u-v`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}getGroupsWhereUserIsAdmin(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsWhereUserIsAdmin.");let d=new C.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new C.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getPendingPreferredEmailChanges(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getPendingPreferredEmailChanges.");let d=new C.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new C.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getPendingPreferredEmailChanges`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getRichUserExtSources(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserExtSources.");let d=new C.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new C.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserExtSources/u`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getRichUserWithAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserWithAttributes.");let d=new C.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new C.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserWithAttributes`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getRichUsersByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersByIds.");let d=new C.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"ids[]")});let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new C.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersByIds`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getRichUsersWithAttributesByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersWithAttributesByIds.");let d=new C.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"ids[]")});let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new C.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithAttributesByIds`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getRichUsersWithoutVoWithAttributes(e,t="body",r=!1,l){let d=new C.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"attrsNames[]")});let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new C.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithoutVoWithAttributes`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getSpecificUsersByUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getSpecificUsersByUser.");let d=new C.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new C.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSpecificUsersByUser`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getSponsorsForMember(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter member was null or undefined when calling getSponsorsForMember.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),t&&t.forEach(b=>{o=this.addToHttpParams(o,b,"attrNames[]")});let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/member`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}getSponsorsForMemberByVoAndLogin(e,t,r,l,d="body",o=!1,a){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==t)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==r)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsForMemberByVoAndLogin.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo")),null!=t&&(c=this.addToHttpParams(c,t,"extSourceName")),null!=r&&(c=this.addToHttpParams(c,r,"extLogin")),l&&l.forEach(X=>{c=this.addToHttpParams(c,X,"attrNames[]")});let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=a&&a.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=a&&a.context;void 0===b&&(b=new C.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/vo`,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:o})}getUserByExtSourceNameAndExtLogin(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter extLogin was null or undefined when calling getUserByExtSourceNameAndExtLogin.");if(null==t)throw new Error("Required parameter extSourceName was null or undefined when calling getUserByExtSourceNameAndExtLogin.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"extLogin")),null!=t&&(o=this.addToHttpParams(o,t,"extSourceName"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserByExtSourceNameAndExtLogin`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}getUserById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getUserById.");let d=new C.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new C.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getUserExtSourceByExtLoginAndExtSourceName(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");if(null==t)throw new Error("Required parameter extSourceLogin was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"extSourceName")),null!=t&&(o=this.addToHttpParams(o,t,"extSourceLogin"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByExtLoginAndExtSourceName`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}getUserExtSourceById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceById.");let d=new C.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"userExtSource"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new C.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getUserExtSourceByUniqueAttributeValueAndAttributeId(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");if(null==t)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"attributeId")),null!=t&&(o=this.addToHttpParams(o,t,"attributeValue"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/id`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}getUserExtSourceByUniqueAttributeValueAndAttributeName(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");if(null==t)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"attributeName")),null!=t&&(o=this.addToHttpParams(o,t,"attributeValue"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/name`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}getUserExtSources(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserExtSources.");let d=new C.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new C.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSources`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getUserExtSourcesByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUserExtSourcesByIds.");let d=new C.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"ids[]")});let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new C.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourcesByIds`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getUsers(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let a=r&&r.context;void 0===a&&(a=new C.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsers`,{context:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getUsersByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUsersByIds.");let d=new C.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"ids[]")});let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new C.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersByIds`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getUsersBySpecificUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter specificUser was null or undefined when calling getUsersBySpecificUser.");let d=new C.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"specificUser"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new C.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersBySpecificUser`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getUsersPage(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputGetPaginatedUsers was null or undefined when calling getUsersPage.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new C.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/getUsersPage`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}getVosWhereUserIsAdmin(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsAdmin.");let d=new C.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new C.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsAdmin`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getVosWhereUserIsMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsMember.");let d=new C.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new C.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsMember`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}isLoginAvailable(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter loginNamespace was null or undefined when calling isLoginAvailable.");if(null==t)throw new Error("Required parameter login was null or undefined when calling isLoginAvailable.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"loginNamespace")),null!=t&&(o=this.addToHttpParams(o,t,"login"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/isLoginAvailable`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}loginExist(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling loginExist.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling loginExist.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"namespace"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/loginExist`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}removeSpecificUserOwner(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeSpecificUserOwner.");if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling removeSpecificUserOwner.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"specificUser"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeSpecificUserOwner`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}removeUserExtSource(e,t,r,l="body",d=!1,o){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserExtSource.");if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSource.");let a=new C.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"user")),null!=t&&(a=this.addToHttpParams(a,t,"userExtSource")),null!=r&&(a=this.addToHttpParams(a,r,"force"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new C.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeUserExtSource`,null,{context:f,params:a,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}requestPreferredEmailChange(e,t,r,l,d,o,a="body",c=!1,u){if(null==e)throw new Error("Required parameter user was null or undefined when calling requestPreferredEmailChange.");if(null==t)throw new Error("Required parameter email was null or undefined when calling requestPreferredEmailChange.");let h=new C.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"user")),null!=t&&(h=this.addToHttpParams(h,t,"email")),null!=r&&(h=this.addToHttpParams(h,r,"lang")),null!=l&&(h=this.addToHttpParams(h,l,"linkPath")),null!=d&&(h=this.addToHttpParams(h,d,"customUrl")),null!=o&&(h=this.addToHttpParams(h,o,"idpFilter"));let b,f=this.defaultHeaders;b=this.configuration.lookupCredential("BasicAuth"),b&&(f=f.set("Authorization","Basic "+b)),b=this.configuration.lookupCredential("BearerAuth"),b&&(f=f.set("Authorization","Bearer "+b));let V=u&&u.httpHeaderAccept;void 0===V&&(V=this.configuration.selectHeaderAccept(["application/json"])),void 0!==V&&(f=f.set("Accept",V));let X=u&&u.context;void 0===X&&(X=new C.qT);let ue="json";return V&&(ue=V.startsWith("text")?"text":this.configuration.isJsonMime(V)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/requestPreferredEmailChange`,null,{context:X,params:h,responseType:ue,withCredentials:this.configuration.withCredentials,headers:f,observe:a,reportProgress:c})}reservePasswordForLogin(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputReservePasswordForLogin was null or undefined when calling reservePasswordForLogin.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new C.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/reservePassword/login`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}reservePasswordForUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputReservePasswordForUser was null or undefined when calling reservePasswordForUser.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new C.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/reservePassword/user`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}reserveRandomPassword(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling reserveRandomPassword.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling reserveRandomPassword.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"namespace"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reserveRandomPassword`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}setLogin(e,t,r,l="body",d=!1,o){if(null==e)throw new Error("Required parameter user was null or undefined when calling setLogin.");if(null==t)throw new Error("Required parameter login was null or undefined when calling setLogin.");if(null==r)throw new Error("Required parameter namespace was null or undefined when calling setLogin.");let a=new C.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"user")),null!=t&&(a=this.addToHttpParams(a,t,"login")),null!=r&&(a=this.addToHttpParams(a,r,"namespace"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new C.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/setLogin`,null,{context:f,params:a,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}updateUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdateUser was null or undefined when calling updateUser.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new C.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/updateUser`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}updateUserExtSourceLastAccess(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling updateUserExtSourceLastAccess.");let d=new C.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"userExtSource"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new C.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/updateUserExtSourceLastAccess`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}validatePasswordForLogin(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter login was null or undefined when calling validatePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForLogin.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"login")),null!=t&&(o=this.addToHttpParams(o,t,"namespace"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/login`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}validatePasswordForUser(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling validatePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForUser.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"namespace"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/user`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}validatePreferredEmailChangeWithToken(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter token was null or undefined when calling validatePreferredEmailChangeWithToken.");if(null==t)throw new Error("Required parameter u was null or undefined when calling validatePreferredEmailChangeWithToken.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"token")),null!=t&&(o=this.addToHttpParams(o,t,"u"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new C.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePreferredEmailChange`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(C.eN),i.LFG(yi,8),i.LFG(yt,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ja=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new C.WM,this.configuration=new yt,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Ei}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}getAppsConfig(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let a=r&&r.context;void 0===a&&(a=new C.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getAppsConfig`,{context:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getGuiConfiguration(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let a=r&&r.context;void 0===a&&(a=new C.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getGuiConfiguration`,{context:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getNewGuiAlert(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let a=r&&r.context;void 0===a&&(a=new C.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getNewGuiAlert`,{context:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunRPCVersion(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["text/plain"])),void 0!==o&&(l=l.set("Accept",o));let a=r&&r.context;void 0===a&&(a=new C.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/`,{context:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunStatistics(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let a=r&&r.context;void 0===a&&(a=new C.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatistics`,{context:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunStatus(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let a=r&&r.context;void 0===a&&(a=new C.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatus`,{context:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunSystemTimeInMillis(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let a=r&&r.context;void 0===a&&(a=new C.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunSystemTimeInMillis`,{context:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(C.eN),i.LFG(yi,8),i.LFG(yt,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),mi=(()=>{class n{constructor(e,t){if(e)throw new Error("ApiModule is already loaded. Import in your base AppModule only.");if(!t)throw new Error("You need to import the HttpClientModule in your AppModule! \nSee also https://github.com/angular/angular/issues/20575")}static forRoot(e){return{ngModule:n,providers:[{provide:yt,useFactory:e}]}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(n,12),i.LFG(C.eN,8))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();var st=(()=>{return(n=st||(st={})).PERUNADMIN="PERUNADMIN",n.PERUNOBSERVER="PERUNOBSERVER",n.VOADMIN="VOADMIN",n.GROUPADMIN="GROUPADMIN",n.GROUPOBSERVER="GROUPOBSERVER",n.GROUPMEMBERSHIPMANAGER="GROUPMEMBERSHIPMANAGER",n.SELF="SELF",n.FACILITYADMIN="FACILITYADMIN",n.FACILITIYOBSERVER="FACILITYOBSERVER",n.RESOURCEADMIN="RESOURCEADMIN",n.RESOURCESELFSERVICE="RESOURCESELFSERVICE",n.REGISTRAR="REGISTRAR",n.ENGINE="ENGINE",n.RPC="RPC",n.NOTIFICATIONS="NOTIFICATIONS",n.SERVICEUSER="SERVICEUSER",n.SPONSOR="SPONSOR",n.VOOBSERVER="VOOBSERVER",n.TOPGROUPCREATOR="TOPGROUPCREATOR",n.SECURITYADMIN="SECURITYADMIN",n.CABINETADMIN="CABINETADMIN",n.UNKNOWNROLENAME="UNKNOWNROLENAME",n.AUDITCONSUMERADMIN="AUDITCONSUMERADMIN",n.UNKNOWN="UNKNOWN",n.MEMBERSHIP="MEMBERSHIP",st;var n})();let Me=(()=>{class n{constructor(e){this.authzSevice=e,this.principalRoles=new Set,this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[],this.sortRoles=(t,r)=>t.roleName>r.roleName?1:t.roleName{this.authzSevice.getAllRolesManagementRules().subscribe(r=>{this.allRolesManagementRules=r,e()},r=>t(r))})}assignAvailableRoles(e,t){this.allRolesManagementRules.forEach(r=>{r.primaryObject===t&&e.push(r)}),e.sort(this.sortRoles),"Vo"===t&&this.voCustomSort(e)}isManagerPagePrivileged(e){const t=[];let r=e.beanName;r.startsWith("Rich")&&(r=r.substring(4)),this.assignAvailableRoles(t,r);const l=new Map;this.setRolesAuthorization(t,e,l);for(const d of l.values())if(d.readAuth||d.manageAuth)return!0;return!1}setRolesAuthorization(e,t,r){for(const l of e){let d=[],o=[],a=[];for(const b of this.allRolesManagementRules)if(b.roleName===l.roleName){d=d.concat(b.privilegedRolesToRead),o=o.concat(b.privilegedRolesToManage);for(const V of Object.keys(b.entitiesToManage))a="User"===V?[V].concat(a):a.concat(V);break}const c=this.fetchAllRelatedObjects([t]),u=this.resolveAuthorization(d,c),h=this.resolveAuthorization(o,c);r.set(l.roleName,{readAuth:u,manageAuth:h,modes:a})}}initializeVariables(){this.principalRoles.clear(),this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}getPrimaryObjectOfRole(e){for(const t of this.allRolesManagementRules)if(t.roleName===e)return t.primaryObject;return""}getAllRules(){return this.allRolesManagementRules.sort(this.sortRoles)}getRuleForRole(e){return this.allRolesManagementRules.find(t=>t.roleName===e)}getAssignableRoleRules(e){const t=[],r=["UNKNOWN","RPC","NOTIFICATIONS","ENGINE","MFA","REGISTRAR","AUDITCONSUMERADMIN","SPONSORSHIP","MEMBERSHIP","SERVICEUSER","SELF","SECURITYADMIN"];return this.allRolesManagementRules.forEach(l=>{!r.includes(l.roleName)&&this.canManage(l)&&this.ruleHasMode(l,e)&&t.push(l)}),t.sort(this.sortRoles)}ruleHasMode(e,t){return Object.keys(e.entitiesToManage).map(r=>r.toUpperCase()).includes(t)}canManage(e){return e.privilegedRolesToManage.some(t=>this.principalRoles.has(Object.keys(t)[0]))}resolveAuthorization(e,t){for(const r of e){let l=!0;for(const d of Object.keys(r)){const o=r[d];if(null===o)this.principalRoles.has(d)||(l=!1);else if(t[o]){for(const a of t[o])if(!this.principalHasRole(d,o,a)){l=!1;break}}else l=!1;if(!l)break}if(l)return!0}return!1}getPerunPolicy(e){for(const t of this.perunPolicies)if(t.policyName===e)return t;return null}fetchAllRelatedObjects(e){const t={};for(const r of e){let l=r.beanName;switch(r.beanName.startsWith("Rich")&&(l=r.beanName.substring(4)),t[l]?t[l].push(r.id):t[l]=[r.id],l){case"Member":t.User?t.User.push(r.userId):t.User=[r.userId],t.Vo?t.Vo.push(r.voId):t.Vo=[r.voId];break;case"Group":case"ResourceTag":t.Vo?t.Vo.push(r.voId):t.Vo=[r.voId];break;case"Resource":t.Facility?t.Facility.push(r.facilityId):t.Facility=[r.facilityId],t.Vo?t.Vo.push(r.voId):t.Vo=[r.voId]}}return t}fetchPolicyWithAllIncludedPolicies(e){const t=new Map;let r=[];for(r.push(e);0!==r.length;){const d=r.shift();if(t.has(d))continue;const o=this.getPerunPolicy(d);if(!o)return[];t.set(d,o),r=r.concat(o.includePolicies)}const l=[];for(const d of t.values())l.push(d);return l}voCustomSort(e){for(let t=0;t{let e=null;n._refCount++;const t=(0,et.x)(s,void 0,void 0,void 0,()=>{if(!n||n._refCount<=0||0<--n._refCount)return void(e=null);const r=n._connection,l=e;e=null,r&&(!l||r===l)&&r.unsubscribe(),s.unsubscribe()});n.subscribe(t),t.closed||(e=n.connect())})}class uf extends oi.y{constructor(s,e){super(),this.source=s,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,(0,Ur.A)(s)&&(this.lift=s.lift)}_subscribe(s){return this.getSubject().subscribe(s)}getSubject(){const s=this._subject;return(!s||s.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:s}=this;this._subject=this._connection=null,s?.unsubscribe()}connect(){let s=this._connection;if(!s){s=this._connection=new Dt.w0;const e=this.getSubject();s.add(this.source.subscribe((0,et.x)(e,void 0,()=>{this._teardown(),e.complete()},t=>{this._teardown(),e.error(t)},()=>this._teardown()))),s.closed&&(this._connection=null,s=Dt.w0.EMPTY)}return s}refCount(){return $o()(this)}}function Nt(...n){const s=(0,Kt.yG)(n);return(0,Ur.e)((e,t)=>{(s?(0,On.z)(n,e,s):(0,On.z)(n,e)).subscribe(t)})}var ri=x(5577),Cn=x(590),Di=x(8505),cn=x(262);function zr(n,s,e,t,r){return(l,d)=>{let o=e,a=s,c=0;l.subscribe((0,et.x)(d,u=>{const h=c++;a=o?n(a,u,h):(o=!0,u),t&&d.next(a)},r&&(()=>{o&&d.next(a),d.complete()})))}}function hi(n,s){return(0,Ur.e)(zr(n,s,arguments.length>=2,!0))}function oc(n){return n<=0?()=>wr.E:(0,Ur.e)((s,e)=>{let t=[];s.subscribe((0,et.x)(e,r=>{t.push(r),n{for(const r of t)e.next(r);e.complete()},void 0,()=>{t=null}))})}var hf=x(8068),lc=x(6590),cc=x(4671);function dc(n,s){const e=arguments.length>=2;return t=>t.pipe(n?(0,Ze.h)((r,l)=>n(r,l,t)):cc.y,oc(1),e?(0,lc.d)(s):(0,hf.T)(()=>new Ai.K))}function xd(n,s=!1){return(0,Ur.e)((e,t)=>{let r=0;e.subscribe((0,et.x)(t,l=>{const d=n(l,r++);(d||s)&&t.next(l),!d&&t.complete()}))})}var ma=x(9718);function Zo(n){return(0,Ur.e)((s,e)=>{try{s.subscribe(e)}finally{e.add(n)}})}var Jo=x(8189);const kt="primary";class Qo{constructor(s){this.params=s||{}}has(s){return Object.prototype.hasOwnProperty.call(this.params,s)}get(s){if(this.has(s)){const e=this.params[s];return Array.isArray(e)?e[0]:e}return null}getAll(s){if(this.has(s)){const e=this.params[s];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function qr(n){return new Qo(n)}function uc(n,s,e){const t=e.path.split("/");if(t.length>n.length||"full"===e.pathMatch&&(s.hasChildren()||t.lengtht[l]===r)}return n===s}function hc(n){return Array.prototype.concat.apply([],n)}function dn(n){return n.length>0?n[n.length-1]:null}function Ot(n,s){for(const e in n)n.hasOwnProperty(e)&&s(n[e],e)}function Gr(n){return(0,i.CqO)(n)?n:(0,i.QGY)(n)?(0,Oi.D)(Promise.resolve(n)):(0,Ae.of)(n)}const pf={exact:function Ko(n,s,e){if(!ur(n.segments,s.segments)||!mc(n.segments,s.segments,e)||n.numberOfChildren!==s.numberOfChildren)return!1;for(const t in s.children)if(!n.children[t]||!Ko(n.children[t],s.children[t],e))return!1;return!0},subset:Xo},_h={exact:function pc(n,s){return Zn(n,s)},subset:function fc(n,s){return Object.keys(s).length<=Object.keys(n).length&&Object.keys(s).every(e=>mh(n[e],s[e]))},ignored:()=>!0};function bh(n,s,e){return pf[e.paths](n.root,s.root,e.matrixParams)&&_h[e.queryParams](n.queryParams,s.queryParams)&&!("exact"===e.fragment&&n.fragment!==s.fragment)}function Xo(n,s,e){return Sd(n,s,s.segments,e)}function Sd(n,s,e,t){if(n.segments.length>e.length){const r=n.segments.slice(0,e.length);return!(!ur(r,e)||s.hasChildren()||!mc(r,e,t))}if(n.segments.length===e.length){if(!ur(n.segments,e)||!mc(n.segments,e,t))return!1;for(const r in s.children)if(!n.children[r]||!Xo(n.children[r],s.children[r],t))return!1;return!0}{const r=e.slice(0,n.segments.length),l=e.slice(n.segments.length);return!!(ur(n.segments,r)&&mc(n.segments,r,t)&&n.children[kt])&&Sd(n.children[kt],s,l,t)}}function mc(n,s,e){return s.every((t,r)=>_h[e](n[r].parameters,t.parameters))}class Ti{constructor(s,e,t){this.root=s,this.queryParams=e,this.fragment=t}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=qr(this.queryParams)),this._queryParamMap}toString(){return mf.serialize(this)}}class Ct{constructor(s,e){this.segments=s,this.children=e,this.parent=null,Ot(e,(t,r)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Dd(this)}}class ro{constructor(s,e){this.path=s,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=qr(this.parameters)),this._parameterMap}toString(){return Ch(this)}}function ur(n,s){return n.length===s.length&&n.every((e,t)=>e.path===s[t].path)}let yh=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:function(){return new Ed},providedIn:"root"}),n})();class Ed{parse(s){const e=new _f(s);return new Ti(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(s){const e=`/${Ua(s.root,!0)}`,t=function Pd(n){const s=Object.keys(n).map(e=>{const t=n[e];return Array.isArray(t)?t.map(r=>`${el(e)}=${el(r)}`).join("&"):`${el(e)}=${el(t)}`}).filter(e=>!!e);return s.length?`?${s.join("&")}`:""}(s.queryParams);return`${e}${t}${"string"==typeof s.fragment?`#${function _c(n){return encodeURI(n)}(s.fragment)}`:""}`}}const mf=new Ed;function Dd(n){return n.segments.map(s=>Ch(s)).join("/")}function Ua(n,s){if(!n.hasChildren())return Dd(n);if(s){const e=n.children[kt]?Ua(n.children[kt],!1):"",t=[];return Ot(n.children,(r,l)=>{l!==kt&&t.push(`${l}:${Ua(r,!1)}`)}),t.length>0?`${e}(${t.join("//")})`:e}{const e=function gc(n,s){let e=[];return Ot(n.children,(t,r)=>{r===kt&&(e=e.concat(s(t,r)))}),Ot(n.children,(t,r)=>{r!==kt&&(e=e.concat(s(t,r)))}),e}(n,(t,r)=>r===kt?[Ua(n.children[kt],!1)]:[`${r}:${Ua(t,!1)}`]);return 1===Object.keys(n.children).length&&null!=n.children[kt]?`${Dd(n)}/${e[0]}`:`${Dd(n)}/(${e.join("//")})`}}function Hd(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function el(n){return Hd(n).replace(/%3B/gi,";")}function bc(n){return Hd(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function tl(n){return decodeURIComponent(n)}function _s(n){return tl(n.replace(/\+/g,"%20"))}function Ch(n){return`${bc(n.path)}${function ao(n){return Object.keys(n).map(s=>`;${bc(s)}=${bc(n[s])}`).join("")}(n.parameters)}`}const yc=/^[^\/()?;=#]+/;function kd(n){const s=n.match(yc);return s?s[0]:""}const wh=/^[^=?&#]+/,gf=/^[^&#]+/;class _f{constructor(s){this.url=s,this.remaining=s}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Ct([],{}):new Ct([],this.parseChildren())}parseQueryParams(){const s={};if(this.consumeOptional("?"))do{this.parseQueryParam(s)}while(this.consumeOptional("&"));return s}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const s=[];for(this.peekStartsWith("(")||s.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),s.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let t={};return this.peekStartsWith("(")&&(t=this.parseParens(!1)),(s.length>0||Object.keys(e).length>0)&&(t[kt]=new Ct(s,e)),t}parseSegment(){const s=kd(this.remaining);if(""===s&&this.peekStartsWith(";"))throw new i.vHH(4009,!1);return this.capture(s),new ro(tl(s),this.parseMatrixParams())}parseMatrixParams(){const s={};for(;this.consumeOptional(";");)this.parseParam(s);return s}parseParam(s){const e=kd(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const r=kd(this.remaining);r&&(t=r,this.capture(t))}s[tl(e)]=tl(t)}parseQueryParam(s){const e=function il(n){const s=n.match(wh);return s?s[0]:""}(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const d=function Wr(n){const s=n.match(gf);return s?s[0]:""}(this.remaining);d&&(t=d,this.capture(t))}const r=_s(e),l=_s(t);if(s.hasOwnProperty(r)){let d=s[r];Array.isArray(d)||(d=[d],s[r]=d),d.push(l)}else s[r]=l}parseParens(s){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const t=kd(this.remaining),r=this.remaining[t.length];if("/"!==r&&")"!==r&&";"!==r)throw new i.vHH(4010,!1);let l;t.indexOf(":")>-1?(l=t.slice(0,t.indexOf(":")),this.capture(l),this.capture(":")):s&&(l=kt);const d=this.parseChildren();e[l]=1===Object.keys(d).length?d[kt]:new Ct([],d),this.consumeOptional("//")}return e}peekStartsWith(s){return this.remaining.startsWith(s)}consumeOptional(s){return!!this.peekStartsWith(s)&&(this.remaining=this.remaining.substring(s.length),!0)}capture(s){if(!this.consumeOptional(s))throw new i.vHH(4011,!1)}}function bs(n){return n.segments.length>0?new Ct([],{[kt]:n}):n}function so(n){const s={};for(const t of Object.keys(n.children)){const l=so(n.children[t]);(l.segments.length>0||l.hasChildren())&&(s[t]=l)}return function Rd(n){if(1===n.numberOfChildren&&n.children[kt]){const s=n.children[kt];return new Ct(n.segments.concat(s.segments),s.children)}return n}(new Ct(n.segments,s))}function $r(n){return n instanceof Ti}function nl(n,s,e,t,r){if(0===e.length)return Zr(s.root,s.root,s.root,t,r);const l=function Cc(n){if("string"==typeof n[0]&&1===n.length&&"/"===n[0])return new Od(!0,0,n);let s=0,e=!1;const t=n.reduce((r,l,d)=>{if("object"==typeof l&&null!=l){if(l.outlets){const o={};return Ot(l.outlets,(a,c)=>{o[c]="string"==typeof a?a.split("/"):a}),[...r,{outlets:o}]}if(l.segmentPath)return[...r,l.segmentPath]}return"string"!=typeof l?[...r,l]:0===d?(l.split("/").forEach((o,a)=>{0==a&&"."===o||(0==a&&""===o?e=!0:".."===o?s++:""!=o&&r.push(o))}),r):[...r,l]},[]);return new Od(e,s,t)}(e);return l.toRoot()?Zr(s.root,s.root,new Ct([],{}),t,r):function d(a){const c=function yf(n,s,e,t){if(n.isAbsolute)return new ys(s.root,!0,0);if(-1===t)return new ys(e,e===s.root,0);return function Bd(n,s,e){let t=n,r=s,l=e;for(;l>r;){if(l-=r,t=t.parent,!t)throw new i.vHH(4005,!1);r=t.segments.length}return new ys(t,!1,r-l)}(e,t+(Ar(n.commands[0])?0:1),n.numberOfDoubleDots)}(l,s,n.snapshot?._urlSegment,a),u=c.processChildren?co(c.segmentGroup,c.index,l.commands):Nd(c.segmentGroup,c.index,l.commands);return Zr(s.root,c.segmentGroup,u,t,r)}(n.snapshot?._lastPathIndex)}function Ar(n){return"object"==typeof n&&null!=n&&!n.outlets&&!n.segmentPath}function za(n){return"object"==typeof n&&null!=n&&n.outlets}function Zr(n,s,e,t,r){let d,l={};t&&Ot(t,(a,c)=>{l[c]=Array.isArray(a)?a.map(u=>`${u}`):`${a}`}),d=n===s?e:vr(n,s,e);const o=bs(so(d));return new Ti(o,l,r)}function vr(n,s,e){const t={};return Ot(n.children,(r,l)=>{t[l]=r===s?e:vr(r,s,e)}),new Ct(n.segments,t)}class Od{constructor(s,e,t){if(this.isAbsolute=s,this.numberOfDoubleDots=e,this.commands=t,s&&t.length>0&&Ar(t[0]))throw new i.vHH(4003,!1);const r=t.find(za);if(r&&r!==dn(t))throw new i.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class ys{constructor(s,e,t){this.segmentGroup=s,this.processChildren=e,this.index=t}}function Nd(n,s,e){if(n||(n=new Ct([],{})),0===n.segments.length&&n.hasChildren())return co(n,s,e);const t=function Fd(n,s,e){let t=0,r=s;const l={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return l;const d=n.segments[r],o=e[t];if(za(o))break;const a=`${o}`,c=t0&&void 0===a)break;if(a&&c&&"object"==typeof c&&void 0===c.outlets){if(!jd(a,c,d))return l;t+=2}else{if(!jd(a,{},d))return l;t++}r++}return{match:!0,pathIndex:r,commandIndex:t}}(n,s,e),r=e.slice(t.commandIndex);if(t.match&&t.pathIndex{"string"==typeof l&&(l=[l]),null!==l&&(r[d]=Nd(n.children[d],s,l))}),Ot(n.children,(l,d)=>{void 0===t[d]&&(r[d]=l)}),new Ct(n.segments,r)}}function qa(n,s,e){const t=n.segments.slice(0,s);let r=0;for(;r{"string"==typeof e&&(e=[e]),null!==e&&(s[t]=qa(new Ct([],{}),0,e))}),s}function Cs(n){const s={};return Ot(n,(e,t)=>s[t]=`${e}`),s}function jd(n,s,e){return n==e.path&&Zn(s,e.parameters)}class Tr{constructor(s,e){this.id=s,this.url=e}}class Ga extends Tr{constructor(s,e,t="imperative",r=null){super(s,e),this.type=0,this.navigationTrigger=t,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Wa extends Tr{constructor(s,e,t){super(s,e),this.urlAfterRedirects=t,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class wc extends Tr{constructor(s,e,t,r){super(s,e),this.reason=t,this.code=r,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class ai extends Tr{constructor(s,e,t,r){super(s,e),this.error=t,this.target=r,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class a_ extends Tr{constructor(s,e,t,r){super(s,e),this.urlAfterRedirects=t,this.state=r,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class s_ extends Tr{constructor(s,e,t,r){super(s,e),this.urlAfterRedirects=t,this.state=r,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class o_ extends Tr{constructor(s,e,t,r,l){super(s,e),this.urlAfterRedirects=t,this.state=r,this.shouldActivate=l,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class l_ extends Tr{constructor(s,e,t,r){super(s,e),this.urlAfterRedirects=t,this.state=r,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class c_ extends Tr{constructor(s,e,t,r){super(s,e),this.urlAfterRedirects=t,this.state=r,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ah{constructor(s){this.route=s,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class d_{constructor(s){this.route=s,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class rl{constructor(s){this.snapshot=s,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class u_{constructor(s){this.snapshot=s,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class vh{constructor(s){this.snapshot=s,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Bi{constructor(s){this.snapshot=s,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ac{constructor(s,e,t){this.routerEvent=s,this.position=e,this.anchor=t,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Cf{constructor(s){this._root=s}get root(){return this._root.value}parent(s){const e=this.pathFromRoot(s);return e.length>1?e[e.length-2]:null}children(s){const e=Yd(s,this._root);return e?e.children.map(t=>t.value):[]}firstChild(s){const e=Yd(s,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(s){const e=Dn(s,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==s)}pathFromRoot(s){return Dn(s,this._root).map(e=>e.value)}}function Yd(n,s){if(n===s.value)return s;for(const e of s.children){const t=Yd(n,e);if(t)return t}return null}function Dn(n,s){if(n===s.value)return[s];for(const e of s.children){const t=Dn(n,e);if(t.length)return t.unshift(s),t}return[]}class gn{constructor(s,e){this.value=s,this.children=e}toString(){return`TreeNode(${this.value})`}}function $a(n){const s={};return n&&n.children.forEach(e=>s[e.value.outlet]=e),s}class sl extends Cf{constructor(s,e){super(s),this.snapshot=e,Hn(this,s)}toString(){return this.snapshot.toString()}}function ho(n,s){const e=function Ud(n,s){const d=new Jr([],{},{},"",{},kt,s,null,n.root,-1,{});return new vc("",new gn(d,[]))}(n,s),t=new gi([new ro("",{})]),r=new gi({}),l=new gi({}),d=new gi({}),o=new gi(""),a=new Jn(t,r,d,o,l,kt,s,e.root);return a.snapshot=e.root,new sl(new gn(a,[]),e)}class Jn{constructor(s,e,t,r,l,d,o,a){this.url=s,this.params=e,this.queryParams=t,this.fragment=r,this.data=l,this.outlet=d,this.component=o,this._futureSnapshot=a}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,mt.U)(s=>qr(s)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,mt.U)(s=>qr(s)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Th(n,s="emptyOnly"){const e=n.pathFromRoot;let t=0;if("always"!==s)for(t=e.length-1;t>=1;){const r=e[t],l=e[t-1];if(r.routeConfig&&""===r.routeConfig.path)t--;else{if(l.component)break;t--}}return function h_(n){return n.reduce((s,e)=>({params:{...s.params,...e.params},data:{...s.data,...e.data},resolve:{...e.data,...s.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(t))}class Jr{constructor(s,e,t,r,l,d,o,a,c,u,h,f){this.url=s,this.params=e,this.queryParams=t,this.fragment=r,this.data=l,this.outlet=d,this.component=o,this.routeConfig=a,this._urlSegment=c,this._lastPathIndex=u,this._correctedLastPathIndex=f??u,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=qr(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=qr(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class vc extends Cf{constructor(s,e){super(e),this.url=s,Hn(this,e)}toString(){return Tc(this._root)}}function Hn(n,s){s.value._routerState=n,s.children.forEach(e=>Hn(n,e))}function Tc(n){const s=n.children.length>0?` { ${n.children.map(Tc).join(", ")} } `:"";return`${n.value}${s}`}function Za(n){if(n.snapshot){const s=n.snapshot,e=n._futureSnapshot;n.snapshot=e,Zn(s.queryParams,e.queryParams)||n.queryParams.next(e.queryParams),s.fragment!==e.fragment&&n.fragment.next(e.fragment),Zn(s.params,e.params)||n.params.next(e.params),function fh(n,s){if(n.length!==s.length)return!1;for(let e=0;eZn(e.parameters,s[t].parameters))}(n.url,s.url);return e&&!(!n.parent!=!s.parent)&&(!n.parent||Ve(n.parent,s.parent))}function ol(n,s,e){if(e&&n.shouldReuseRoute(s.value,e.value.snapshot)){const t=e.value;t._futureSnapshot=s.value;const r=function Mh(n,s,e){return s.children.map(t=>{for(const r of e.children)if(n.shouldReuseRoute(t.value,r.value.snapshot))return ol(n,t,r);return ol(n,t)})}(n,s,e);return new gn(t,r)}{if(n.shouldAttach(s.value)){const l=n.retrieve(s.value);if(null!==l){const d=l.route;return d.value._futureSnapshot=s.value,d.children=s.children.map(o=>ol(n,o)),d}}const t=function qt(n){return new Jn(new gi(n.url),new gi(n.params),new gi(n.queryParams),new gi(n.fragment),new gi(n.data),n.outlet,n.component,n)}(s.value),r=s.children.map(l=>ol(n,l));return new gn(t,r)}}const po="ngNavigationCancelingError";function zd(n,s){const{redirectTo:e,navigationBehaviorOptions:t}=$r(s)?{redirectTo:s,navigationBehaviorOptions:void 0}:s,r=xc(!1,0,s);return r.url=e,r.navigationBehaviorOptions=t,r}function xc(n,s,e){const t=new Error("NavigationCancelingError: "+(n||""));return t[po]=!0,t.cancellationCode=s,e&&(t.url=e),t}function Mc(n){return ll(n)&&$r(n.url)}function ll(n){return n&&n[po]}class p_{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new _a,this.attachRef=null}}let _a=(()=>{class n{constructor(){this.contexts=new Map}onChildOutletCreated(e,t){const r=this.getOrCreateContext(e);r.outlet=t,this.contexts.set(e,r)}onChildOutletDestroyed(e){const t=this.getContext(e);t&&(t.outlet=null,t.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new p_,this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const fo=!1;let Pn=(()=>{class n{constructor(e,t,r,l,d){this.parentContexts=e,this.location=t,this.changeDetector=l,this.environmentInjector=d,this.activated=null,this._activatedRoute=null,this.activateEvents=new i.vpe,this.deactivateEvents=new i.vpe,this.attachEvents=new i.vpe,this.detachEvents=new i.vpe,this.name=r||kt,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.getContext(this.name)?.outlet===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new i.vHH(4012,fo);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new i.vHH(4012,fo);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new i.vHH(4012,fo);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new i.vHH(4013,fo);this._activatedRoute=e;const r=this.location,d=e._futureSnapshot.component,o=this.parentContexts.getOrCreateContext(this.name).children,a=new wf(e,o,r.injector);if(t&&function Sh(n){return!!n.resolveComponentFactory}(t)){const c=t.resolveComponentFactory(d);this.activated=r.createComponent(c,r.length,a)}else this.activated=r.createComponent(d,{index:r.length,injector:a,environmentInjector:t??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(_a),i.Y36(i.s_b),i.$8M("name"),i.Y36(i.sBO),i.Y36(i.lqb))},n.\u0275dir=i.lG2({type:n,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),n})();class wf{constructor(s,e,t){this.route=s,this.childContexts=e,this.parent=t}get(s,e){return s===Jn?this.route:s===_a?this.childContexts:this.parent.get(s,e)}}let Eh=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&i._UZ(0,"router-outlet")},dependencies:[Pn],encapsulation:2}),n})();function qd(n,s){return n.providers&&!n._injector&&(n._injector=(0,i.MMx)(n.providers,s,`Route: ${n.path}`)),n._injector??s}function Gd(n){const s=n.children&&n.children.map(Gd),e=s?{...n,children:s}:{...n};return!e.component&&!e.loadComponent&&(s||e.loadChildren)&&e.outlet&&e.outlet!==kt&&(e.component=Eh),e}function hr(n){return n.outlet||kt}function Hh(n,s){const e=n.filter(t=>hr(t)===s);return e.push(...n.filter(t=>hr(t)!==s)),e}function Ec(n){if(!n)return null;if(n.routeConfig?._injector)return n.routeConfig._injector;for(let s=n.parent;s;s=s.parent){const e=s.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class Ph{constructor(s,e,t,r){this.routeReuseStrategy=s,this.futureState=e,this.currState=t,this.forwardEvent=r}activate(s){const e=this.futureState._root,t=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,t,s),Za(this.futureState.root),this.activateChildRoutes(e,t,s)}deactivateChildRoutes(s,e,t){const r=$a(e);s.children.forEach(l=>{const d=l.value.outlet;this.deactivateRoutes(l,r[d],t),delete r[d]}),Ot(r,(l,d)=>{this.deactivateRouteAndItsChildren(l,t)})}deactivateRoutes(s,e,t){const r=s.value,l=e?e.value:null;if(r===l)if(r.component){const d=t.getContext(r.outlet);d&&this.deactivateChildRoutes(s,e,d.children)}else this.deactivateChildRoutes(s,e,t);else l&&this.deactivateRouteAndItsChildren(e,t)}deactivateRouteAndItsChildren(s,e){s.value.component&&this.routeReuseStrategy.shouldDetach(s.value.snapshot)?this.detachAndStoreRouteSubtree(s,e):this.deactivateRouteAndOutlet(s,e)}detachAndStoreRouteSubtree(s,e){const t=e.getContext(s.value.outlet),r=t&&s.value.component?t.children:e,l=$a(s);for(const d of Object.keys(l))this.deactivateRouteAndItsChildren(l[d],r);if(t&&t.outlet){const d=t.outlet.detach(),o=t.children.onOutletDeactivated();this.routeReuseStrategy.store(s.value.snapshot,{componentRef:d,route:s,contexts:o})}}deactivateRouteAndOutlet(s,e){const t=e.getContext(s.value.outlet),r=t&&s.value.component?t.children:e,l=$a(s);for(const d of Object.keys(l))this.deactivateRouteAndItsChildren(l[d],r);t&&t.outlet&&(t.outlet.deactivate(),t.children.onOutletDeactivated(),t.attachRef=null,t.resolver=null,t.route=null)}activateChildRoutes(s,e,t){const r=$a(e);s.children.forEach(l=>{this.activateRoutes(l,r[l.value.outlet],t),this.forwardEvent(new Bi(l.value.snapshot))}),s.children.length&&this.forwardEvent(new u_(s.value.snapshot))}activateRoutes(s,e,t){const r=s.value,l=e?e.value:null;if(Za(r),r===l)if(r.component){const d=t.getOrCreateContext(r.outlet);this.activateChildRoutes(s,e,d.children)}else this.activateChildRoutes(s,e,t);else if(r.component){const d=t.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const o=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),d.children.onOutletReAttached(o.contexts),d.attachRef=o.componentRef,d.route=o.route.value,d.outlet&&d.outlet.attach(o.componentRef,o.route.value),Za(o.route.value),this.activateChildRoutes(s,null,d.children)}else{const o=Ec(r.snapshot),a=o?.get(i._Vd)??null;d.attachRef=null,d.route=r,d.resolver=a,d.injector=o,d.outlet&&d.outlet.activateWith(r,d.injector),this.activateChildRoutes(s,null,d.children)}}else this.activateChildRoutes(s,null,t)}}class mo{constructor(s){this.path=s,this.route=this.path[this.path.length-1]}}class Dc{constructor(s,e){this.component=s,this.route=e}}function kh(n,s,e){const t=n._root;return go(t,s?s._root:null,e,[t.value])}function Qn(n,s,e){return(Ec(s)??e).get(n)}function go(n,s,e,t,r={canDeactivateChecks:[],canActivateChecks:[]}){const l=$a(s);return n.children.forEach(d=>{(function vf(n,s,e,t,r={canDeactivateChecks:[],canActivateChecks:[]}){const l=n.value,d=s?s.value:null,o=e?e.getContext(n.value.outlet):null;if(d&&l.routeConfig===d.routeConfig){const a=function Tf(n,s,e){if("function"==typeof e)return e(n,s);switch(e){case"pathParamsChange":return!ur(n.url,s.url);case"pathParamsOrQueryParamsChange":return!ur(n.url,s.url)||!Zn(n.queryParams,s.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Ve(n,s)||!Zn(n.queryParams,s.queryParams);default:return!Ve(n,s)}}(d,l,l.routeConfig.runGuardsAndResolvers);a?r.canActivateChecks.push(new mo(t)):(l.data=d.data,l._resolvedData=d._resolvedData),go(n,s,l.component?o?o.children:null:e,t,r),a&&o&&o.outlet&&o.outlet.isActivated&&r.canDeactivateChecks.push(new Dc(o.outlet.component,d))}else d&&Qr(s,o,r),r.canActivateChecks.push(new mo(t)),go(n,null,l.component?o?o.children:null:e,t,r)})(d,l[d.value.outlet],e,t.concat([d.value]),r),delete l[d.value.outlet]}),Ot(l,(d,o)=>Qr(d,e.getContext(o),r)),r}function Qr(n,s,e){const t=$a(n),r=n.value;Ot(t,(l,d)=>{Qr(l,r.component?s?s.children.getContext(d):null:s,e)}),e.canDeactivateChecks.push(new Dc(r.component&&s&&s.outlet&&s.outlet.isActivated?s.outlet.component:null,r))}function ba(n){return"function"==typeof n}function _o(n){return n instanceof Ai.K||"EmptyError"===n?.name}const ml=Symbol("INITIAL_VALUE");function Ja(){return(0,pi.w)(n=>(0,dr.a)(n.map(s=>s.pipe((0,it.q)(1),Nt(ml)))).pipe((0,mt.U)(s=>{for(const e of s)if(!0!==e){if(e===ml)return ml;if(!1===e||e instanceof Ti)return e}return!0}),(0,Ze.h)(s=>s!==ml),(0,it.q)(1)))}function ye(n){return(0,Ya.z)((0,Di.b)(s=>{if($r(s))throw zd(0,s)}),(0,mt.U)(s=>!0===s))}const Ht={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function si(n,s,e,t,r){const l=Zi(n,s,e);return l.matched?function ot(n,s,e,t){const r=s.canMatch;if(!r||0===r.length)return(0,Ae.of)(!0);const l=r.map(d=>{const o=n.get(d),a=function Mf(n){return n&&ba(n.canMatch)}(o)?o.canMatch(s,e):o(s,e);return Gr(a)});return(0,Ae.of)(l).pipe(Ja(),ye())}(t=qd(s,t),s,e).pipe((0,mt.U)(d=>!0===d?l:{...Ht})):(0,Ae.of)(l)}function Zi(n,s,e){if(""===s.path)return"full"===s.pathMatch&&(n.hasChildren()||e.length>0)?{...Ht}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const r=(s.matcher||uc)(e,n,s);if(!r)return{...Ht};const l={};Ot(r.posParams,(o,a)=>{l[a]=o.path});const d=r.consumed.length>0?{...l,...r.consumed[r.consumed.length-1].parameters}:l;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:d,positionalParamSegments:r.posParams??{}}}function Bn(n,s,e,t,r="corrected"){if(e.length>0&&function __(n,s,e){return e.some(t=>Lh(n,s,t)&&hr(t)!==kt)}(n,e,t)){const d=new Ct(s,function g_(n,s,e,t){const r={};r[kt]=t,t._sourceSegment=n,t._segmentIndexShift=s.length;for(const l of e)if(""===l.path&&hr(l)!==kt){const d=new Ct([],{});d._sourceSegment=n,d._segmentIndexShift=s.length,r[hr(l)]=d}return r}(n,s,t,new Ct(e,n.children)));return d._sourceSegment=n,d._segmentIndexShift=s.length,{segmentGroup:d,slicedSegments:[]}}if(0===e.length&&function gl(n,s,e){return e.some(t=>Lh(n,s,t))}(n,e,t)){const d=new Ct(n.segments,function Ca(n,s,e,t,r,l){const d={};for(const o of t)if(Lh(n,e,o)&&!r[hr(o)]){const a=new Ct([],{});a._sourceSegment=n,a._segmentIndexShift="legacy"===l?n.segments.length:s.length,d[hr(o)]=a}return{...r,...d}}(n,s,e,t,n.children,r));return d._sourceSegment=n,d._segmentIndexShift=s.length,{segmentGroup:d,slicedSegments:e}}const l=new Ct(n.segments,n.children);return l._sourceSegment=n,l._segmentIndexShift=s.length,{segmentGroup:l,slicedSegments:e}}function Lh(n,s,e){return(!(n.hasChildren()||s.length>0)||"full"!==e.pathMatch)&&""===e.path}function b_(n,s,e,t){return!!(hr(n)===t||t!==kt&&Lh(s,e,n))&&("**"===n.path||Zi(s,n,e).matched)}function y_(n,s,e){return 0===s.length&&!n.children[e]}const Ih=!1;class Oh{constructor(s){this.segmentGroup=s||null}}class Qa{constructor(s){this.urlTree=s}}function Ka(n){return(0,vi._)(new Oh(n))}function C_(n){return(0,vi._)(new Qa(n))}class Gw{constructor(s,e,t,r,l){this.injector=s,this.configLoader=e,this.urlSerializer=t,this.urlTree=r,this.config=l,this.allowRedirects=!0}apply(){const s=Bn(this.urlTree.root,[],[],this.config).segmentGroup,e=new Ct(s.segments,s.children);return this.expandSegmentGroup(this.injector,this.config,e,kt).pipe((0,mt.U)(l=>this.createUrlTree(so(l),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,cn.K)(l=>{if(l instanceof Qa)return this.allowRedirects=!1,this.match(l.urlTree);throw l instanceof Oh?this.noMatchError(l):l}))}match(s){return this.expandSegmentGroup(this.injector,this.config,s.root,kt).pipe((0,mt.U)(r=>this.createUrlTree(so(r),s.queryParams,s.fragment))).pipe((0,cn.K)(r=>{throw r instanceof Oh?this.noMatchError(r):r}))}noMatchError(s){return new i.vHH(4002,Ih)}createUrlTree(s,e,t){const r=bs(s);return new Ti(r,e,t)}expandSegmentGroup(s,e,t,r){return 0===t.segments.length&&t.hasChildren()?this.expandChildren(s,e,t).pipe((0,mt.U)(l=>new Ct([],l))):this.expandSegment(s,t,e,t.segments,r,!0)}expandChildren(s,e,t){const r=[];for(const l of Object.keys(t.children))"primary"===l?r.unshift(l):r.push(l);return(0,Oi.D)(r).pipe((0,Cr.b)(l=>{const d=t.children[l],o=Hh(e,l);return this.expandSegmentGroup(s,o,d,l).pipe((0,mt.U)(a=>({segment:a,outlet:l})))}),hi((l,d)=>(l[d.outlet]=d.segment,l),{}),dc())}expandSegment(s,e,t,r,l,d){return(0,Oi.D)(t).pipe((0,Cr.b)(o=>this.expandSegmentAgainstRoute(s,e,t,o,r,l,d).pipe((0,cn.K)(c=>{if(c instanceof Oh)return(0,Ae.of)(null);throw c}))),(0,Cn.P)(o=>!!o),(0,cn.K)((o,a)=>{if(_o(o))return y_(e,r,l)?(0,Ae.of)(new Ct([],{})):Ka(e);throw o}))}expandSegmentAgainstRoute(s,e,t,r,l,d,o){return b_(r,e,l,d)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(s,e,r,l,d):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(s,e,t,r,l,d):Ka(e):Ka(e)}expandSegmentAgainstRouteUsingRedirect(s,e,t,r,l,d){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(s,t,r,d):this.expandRegularSegmentAgainstRouteUsingRedirect(s,e,t,r,l,d)}expandWildCardWithParamsAgainstRouteUsingRedirect(s,e,t,r){const l=this.applyRedirectCommands([],t.redirectTo,{});return t.redirectTo.startsWith("/")?C_(l):this.lineralizeSegments(t,l).pipe((0,ri.z)(d=>{const o=new Ct(d,{});return this.expandSegment(s,o,e,d,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(s,e,t,r,l,d){const{matched:o,consumedSegments:a,remainingSegments:c,positionalParamSegments:u}=Zi(e,r,l);if(!o)return Ka(e);const h=this.applyRedirectCommands(a,r.redirectTo,u);return r.redirectTo.startsWith("/")?C_(h):this.lineralizeSegments(r,h).pipe((0,ri.z)(f=>this.expandSegment(s,e,t,f.concat(c),d,!1)))}matchSegmentAgainstRoute(s,e,t,r,l){return"**"===t.path?(s=qd(t,s),t.loadChildren?(t._loadedRoutes?(0,Ae.of)({routes:t._loadedRoutes,injector:t._loadedInjector}):this.configLoader.loadChildren(s,t)).pipe((0,mt.U)(o=>(t._loadedRoutes=o.routes,t._loadedInjector=o.injector,new Ct(r,{})))):(0,Ae.of)(new Ct(r,{}))):si(e,t,r,s).pipe((0,pi.w)(({matched:d,consumedSegments:o,remainingSegments:a})=>d?this.getChildConfig(s=t._injector??s,t,r).pipe((0,ri.z)(u=>{const h=u.injector??s,f=u.routes,{segmentGroup:b,slicedSegments:V}=Bn(e,o,a,f),X=new Ct(b.segments,b.children);if(0===V.length&&X.hasChildren())return this.expandChildren(h,f,X).pipe((0,mt.U)(Gt=>new Ct(o,Gt)));if(0===f.length&&0===V.length)return(0,Ae.of)(new Ct(o,{}));const ue=hr(t)===l;return this.expandSegment(h,X,f,V,ue?kt:l,!0).pipe((0,mt.U)(Pt=>new Ct(o.concat(Pt.segments),Pt.children)))})):Ka(e)))}getChildConfig(s,e,t){return e.children?(0,Ae.of)({routes:e.children,injector:s}):e.loadChildren?void 0!==e._loadedRoutes?(0,Ae.of)({routes:e._loadedRoutes,injector:e._loadedInjector}):function se(n,s,e,t){const r=s.canLoad;if(void 0===r||0===r.length)return(0,Ae.of)(!0);const l=r.map(d=>{const o=n.get(d),a=function f_(n){return n&&ba(n.canLoad)}(o)?o.canLoad(s,e):o(s,e);return Gr(a)});return(0,Ae.of)(l).pipe(Ja(),ye())}(s,e,t).pipe((0,ri.z)(r=>r?this.configLoader.loadChildren(s,e).pipe((0,Di.b)(l=>{e._loadedRoutes=l.routes,e._loadedInjector=l.injector})):function zw(n){return(0,vi._)(xc(Ih,3))}())):(0,Ae.of)({routes:[],injector:s})}lineralizeSegments(s,e){let t=[],r=e.root;for(;;){if(t=t.concat(r.segments),0===r.numberOfChildren)return(0,Ae.of)(t);if(r.numberOfChildren>1||!r.children[kt])return(0,vi._)(new i.vHH(4e3,Ih));r=r.children[kt]}}applyRedirectCommands(s,e,t){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),s,t)}applyRedirectCreateUrlTree(s,e,t,r){const l=this.createSegmentGroup(s,e.root,t,r);return new Ti(l,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(s,e){const t={};return Ot(s,(r,l)=>{if("string"==typeof r&&r.startsWith(":")){const o=r.substring(1);t[l]=e[o]}else t[l]=r}),t}createSegmentGroup(s,e,t,r){const l=this.createSegments(s,e.segments,t,r);let d={};return Ot(e.children,(o,a)=>{d[a]=this.createSegmentGroup(s,o,t,r)}),new Ct(l,d)}createSegments(s,e,t,r){return e.map(l=>l.path.startsWith(":")?this.findPosParam(s,l,r):this.findOrReturn(l,t))}findPosParam(s,e,t){const r=t[e.path.substring(1)];if(!r)throw new i.vHH(4001,Ih);return r}findOrReturn(s,e){let t=0;for(const r of e){if(r.path===s.path)return e.splice(t),r;t++}return s}}class $w{}class Qw{constructor(s,e,t,r,l,d,o,a){this.injector=s,this.rootComponentType=e,this.config=t,this.urlTree=r,this.url=l,this.paramsInheritanceStrategy=d,this.relativeLinkResolution=o,this.urlSerializer=a}recognize(){const s=Bn(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,s,kt).pipe((0,mt.U)(e=>{if(null===e)return null;const t=new Jr([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},kt,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new gn(t,e),l=new vc(this.url,r);return this.inheritParamsAndData(l._root),l}))}inheritParamsAndData(s){const e=s.value,t=Th(e,this.paramsInheritanceStrategy);e.params=Object.freeze(t.params),e.data=Object.freeze(t.data),s.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(s,e,t,r){return 0===t.segments.length&&t.hasChildren()?this.processChildren(s,e,t):this.processSegment(s,e,t,t.segments,r)}processChildren(s,e,t){return(0,Oi.D)(Object.keys(t.children)).pipe((0,Cr.b)(r=>{const l=t.children[r],d=Hh(e,r);return this.processSegmentGroup(s,d,l,r)}),hi((r,l)=>r&&l?(r.push(...l),r):null),xd(r=>null!==r),(0,lc.d)(null),dc(),(0,mt.U)(r=>{if(null===r)return null;const l=Ef(r);return function OM(n){n.sort((s,e)=>s.value.outlet===kt?-1:e.value.outlet===kt?1:s.value.outlet.localeCompare(e.value.outlet))}(l),l}))}processSegment(s,e,t,r,l){return(0,Oi.D)(e).pipe((0,Cr.b)(d=>this.processSegmentAgainstRoute(d._injector??s,d,t,r,l)),(0,Cn.P)(d=>!!d),(0,cn.K)(d=>{if(_o(d))return y_(t,r,l)?(0,Ae.of)([]):(0,Ae.of)(null);throw d}))}processSegmentAgainstRoute(s,e,t,r,l){if(e.redirectTo||!b_(e,t,r,l))return(0,Ae.of)(null);let d;if("**"===e.path){const o=r.length>0?dn(r).parameters:{},a=Df(t)+r.length,c=new Jr(r,o,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Pf(e),hr(e),e.component??e._loadedComponent??null,e,Hc(t),a,Xw(e),a);d=(0,Ae.of)({snapshot:c,consumedSegments:[],remainingSegments:[]})}else d=si(t,e,r,s).pipe((0,mt.U)(({matched:o,consumedSegments:a,remainingSegments:c,parameters:u})=>{if(!o)return null;const h=Df(t)+a.length;return{snapshot:new Jr(a,u,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Pf(e),hr(e),e.component??e._loadedComponent??null,e,Hc(t),h,Xw(e),h),consumedSegments:a,remainingSegments:c}}));return d.pipe((0,pi.w)(o=>{if(null===o)return(0,Ae.of)(null);const{snapshot:a,consumedSegments:c,remainingSegments:u}=o;s=e._injector??s;const h=e._loadedInjector??s,f=function Kw(n){return n.children?n.children:n.loadChildren?n._loadedRoutes:[]}(e),{segmentGroup:b,slicedSegments:V}=Bn(t,c,u,f.filter(ue=>void 0===ue.redirectTo),this.relativeLinkResolution);if(0===V.length&&b.hasChildren())return this.processChildren(h,f,b).pipe((0,mt.U)(ue=>null===ue?null:[new gn(a,ue)]));if(0===f.length&&0===V.length)return(0,Ae.of)([new gn(a,[])]);const X=hr(e)===l;return this.processSegment(h,f,b,V,X?kt:l).pipe((0,mt.U)(ue=>null===ue?null:[new gn(a,ue)]))}))}}function Zd(n){const s=n.value.routeConfig;return s&&""===s.path&&void 0===s.redirectTo}function Ef(n){const s=[],e=new Set;for(const t of n){if(!Zd(t)){s.push(t);continue}const r=s.find(l=>t.value.routeConfig===l.value.routeConfig);void 0!==r?(r.children.push(...t.children),e.add(r)):s.push(t)}for(const t of e){const r=Ef(t.children);s.push(new gn(t.value,r))}return s.filter(t=>!e.has(t))}function Hc(n){let s=n;for(;s._sourceSegment;)s=s._sourceSegment;return s}function Df(n){let s=n,e=s._segmentIndexShift??0;for(;s._sourceSegment;)s=s._sourceSegment,e+=s._segmentIndexShift??0;return e-1}function Pf(n){return n.data||{}}function Xw(n){return n.resolve||{}}const w_=Symbol("RouteTitle");function If(n){return"string"==typeof n.title||null===n.title}function Of(n){return(0,pi.w)(s=>{const e=n(s);return e?(0,Oi.D)(e).pipe((0,mt.U)(()=>s)):(0,Ae.of)(s)})}let A_=(()=>{class n{buildTitle(e){let t,r=e.root;for(;void 0!==r;)t=this.getResolvedTitleForRoute(r)??t,r=r.children.find(l=>l.outlet===kt);return t}getResolvedTitleForRoute(e){return e.data[w_]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:function(){return(0,i.f3M)(v_)},providedIn:"root"}),n})(),v_=(()=>{class n extends A_{constructor(e){super(),this.title=e}updateTitle(e){const t=this.buildTitle(e);void 0!==t&&this.title.setTitle(t)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(ae))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class eA{}class Bh extends class T_{shouldDetach(s){return!1}store(s,e){}shouldAttach(s){return!1}retrieve(s){return null}shouldReuseRoute(s,e){return s.routeConfig===e.routeConfig}}{}const Jd=new i.OlP("",{providedIn:"root",factory:()=>({})}),qi=new i.OlP("ROUTES");let Vh=(()=>{class n{constructor(e,t){this.injector=e,this.compiler=t,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return(0,Ae.of)(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const t=Gr(e.loadComponent()).pipe((0,Di.b)(l=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=l}),Zo(()=>{this.componentLoaders.delete(e)})),r=new uf(t,()=>new Te.x).pipe($o());return this.componentLoaders.set(e,r),r}loadChildren(e,t){if(this.childrenLoaders.get(t))return this.childrenLoaders.get(t);if(t._loadedRoutes)return(0,Ae.of)({routes:t._loadedRoutes,injector:t._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(t);const l=this.loadModuleFactoryOrRoutes(t.loadChildren).pipe((0,mt.U)(o=>{this.onLoadEndListener&&this.onLoadEndListener(t);let a,c,u=!1;Array.isArray(o)?c=o:(a=o.create(e).injector,c=hc(a.get(qi,[],i.XFs.Self|i.XFs.Optional)));return{routes:c.map(Gd),injector:a}}),Zo(()=>{this.childrenLoaders.delete(t)})),d=new uf(l,()=>new Te.x).pipe($o());return this.childrenLoaders.set(t,d),d}loadModuleFactoryOrRoutes(e){return Gr(e()).pipe((0,ri.z)(t=>t instanceof i.YKP||Array.isArray(t)?(0,Ae.of)(t):(0,Oi.D)(this.compiler.compileModuleAsync(t))))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.zs3),i.LFG(i.Sil))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class tA{}class Bf{shouldProcessUrl(s){return!0}extract(s){return s}merge(s,e){return s}}function iA(n){throw n}function nA(n,s,e){return s.parse("/")}const rA={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},aA={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function oA(){const n=(0,i.f3M)(yh),s=(0,i.f3M)(_a),e=(0,i.f3M)(w.Ye),t=(0,i.f3M)(i.zs3),r=(0,i.f3M)(i.Sil),l=(0,i.f3M)(qi,{optional:!0})??[],d=(0,i.f3M)(Jd,{optional:!0})??{},o=(0,i.f3M)(v_),a=(0,i.f3M)(A_,{optional:!0}),c=(0,i.f3M)(tA,{optional:!0}),u=(0,i.f3M)(eA,{optional:!0}),h=new Ji(null,n,s,e,t,r,hc(l));return c&&(h.urlHandlingStrategy=c),u&&(h.routeReuseStrategy=u),h.titleStrategy=a??o,function sA(n,s){n.errorHandler&&(s.errorHandler=n.errorHandler),n.malformedUriErrorHandler&&(s.malformedUriErrorHandler=n.malformedUriErrorHandler),n.onSameUrlNavigation&&(s.onSameUrlNavigation=n.onSameUrlNavigation),n.paramsInheritanceStrategy&&(s.paramsInheritanceStrategy=n.paramsInheritanceStrategy),n.relativeLinkResolution&&(s.relativeLinkResolution=n.relativeLinkResolution),n.urlUpdateStrategy&&(s.urlUpdateStrategy=n.urlUpdateStrategy),n.canceledNavigationResolution&&(s.canceledNavigationResolution=n.canceledNavigationResolution)}(d,h),h}let Ji=(()=>{class n{constructor(e,t,r,l,d,o,a){this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=r,this.location=l,this.config=a,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Te.x,this.errorHandler=iA,this.malformedUriErrorHandler=nA,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>(0,Ae.of)(void 0),this.urlHandlingStrategy=new Bf,this.routeReuseStrategy=new Bh,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=d.get(Vh),this.configLoader.onLoadEndListener=f=>this.triggerEvent(new d_(f)),this.configLoader.onLoadStartListener=f=>this.triggerEvent(new Ah(f)),this.ngModule=d.get(i.h0i),this.console=d.get(i.c2e);const h=d.get(i.R0b);this.isNgZoneEnabled=h instanceof i.R0b&&i.R0b.isInAngularZone(),this.resetConfig(a),this.currentUrlTree=function gh(){return new Ti(new Ct([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=ho(this.currentUrlTree,this.rootComponentType),this.transitions=new gi({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){return this.location.getState()?.\u0275routerPageId}setupNavigations(e){const t=this.events;return e.pipe((0,Ze.h)(r=>0!==r.id),(0,mt.U)(r=>({...r,extractedUrl:this.urlHandlingStrategy.extract(r.rawUrl)})),(0,pi.w)(r=>{let l=!1,d=!1;return(0,Ae.of)(r).pipe((0,Di.b)(o=>{this.currentNavigation={id:o.id,initialUrl:o.rawUrl,extractedUrl:o.extractedUrl,trigger:o.source,extras:o.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,pi.w)(o=>{const a=this.browserUrlTree.toString(),c=!this.navigated||o.extractedUrl.toString()!==a||a!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||c)&&this.urlHandlingStrategy.shouldProcessUrl(o.rawUrl))return Nh(o.source)&&(this.browserUrlTree=o.extractedUrl),(0,Ae.of)(o).pipe((0,pi.w)(h=>{const f=this.transitions.getValue();return t.next(new Ga(h.id,this.serializeUrl(h.extractedUrl),h.source,h.restoredState)),f!==this.transitions.getValue()?wr.E:Promise.resolve(h)}),function Ww(n,s,e,t){return(0,pi.w)(r=>function qw(n,s,e,t,r){return new Gw(n,s,e,t,r).apply()}(n,s,e,r.extractedUrl,t).pipe((0,mt.U)(l=>({...r,urlAfterRedirects:l}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,Di.b)(h=>{this.currentNavigation={...this.currentNavigation,finalUrl:h.urlAfterRedirects},r.urlAfterRedirects=h.urlAfterRedirects}),function BM(n,s,e,t,r,l){return(0,ri.z)(d=>function Jw(n,s,e,t,r,l,d="emptyOnly",o="legacy"){return new Qw(n,s,e,t,r,d,o,l).recognize().pipe((0,pi.w)(a=>null===a?function Zw(n){return new oi.y(s=>s.error(n))}(new $w):(0,Ae.of)(a)))}(n,s,e,d.urlAfterRedirects,t.serialize(d.urlAfterRedirects),t,r,l).pipe((0,mt.U)(o=>({...d,targetSnapshot:o}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,Di.b)(h=>{if(r.targetSnapshot=h.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!h.extras.skipLocationChange){const b=this.urlHandlingStrategy.merge(h.urlAfterRedirects,h.rawUrl);this.setBrowserUrl(b,h)}this.browserUrlTree=h.urlAfterRedirects}const f=new a_(h.id,this.serializeUrl(h.extractedUrl),this.serializeUrl(h.urlAfterRedirects),h.targetSnapshot);t.next(f)}));if(c&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:f,extractedUrl:b,source:V,restoredState:X,extras:ue}=o,je=new Ga(f,this.serializeUrl(b),V,X);t.next(je);const Pt=ho(b,this.rootComponentType).snapshot;return r={...o,targetSnapshot:Pt,urlAfterRedirects:b,extras:{...ue,skipLocationChange:!1,replaceUrl:!1}},(0,Ae.of)(r)}return this.rawUrlTree=o.rawUrl,o.resolve(null),wr.E}),(0,Di.b)(o=>{const a=new s_(o.id,this.serializeUrl(o.extractedUrl),this.serializeUrl(o.urlAfterRedirects),o.targetSnapshot);this.triggerEvent(a)}),(0,mt.U)(o=>r={...o,guards:kh(o.targetSnapshot,o.currentSnapshot,this.rootContexts)}),function ws(n,s){return(0,ri.z)(e=>{const{targetSnapshot:t,currentSnapshot:r,guards:{canActivateChecks:l,canDeactivateChecks:d}}=e;return 0===d.length&&0===l.length?(0,Ae.of)({...e,guardsResult:!0}):function Wd(n,s,e,t){return(0,Oi.D)(n).pipe((0,ri.z)(r=>function W(n,s,e,t,r){const l=s&&s.routeConfig?s.routeConfig.canDeactivate:null;if(!l||0===l.length)return(0,Ae.of)(!0);const d=l.map(o=>{const a=Qn(o,s,r);return Gr(function fl(n){return n&&ba(n.canDeactivate)}(a)?a.canDeactivate(n,s,e,t):a(n,s,e,t)).pipe((0,Cn.P)())});return(0,Ae.of)(d).pipe(Ja())}(r.component,r.route,e,s,t)),(0,Cn.P)(r=>!0!==r,!0))}(d,t,r,n).pipe((0,ri.z)(o=>o&&function xf(n){return"boolean"==typeof n}(o)?function Vt(n,s,e,t){return(0,Oi.D)(s).pipe((0,Cr.b)(r=>(0,On.z)(function H(n,s){return null!==n&&s&&s(new rl(n)),(0,Ae.of)(!0)}(r.route.parent,t),function T(n,s){return null!==n&&s&&s(new vh(n)),(0,Ae.of)(!0)}(r.route,t),function j(n,s,e){const t=s[s.length-1],l=s.slice(0,s.length-1).reverse().map(d=>function pl(n){const s=n.routeConfig?n.routeConfig.canActivateChild:null;return s&&0!==s.length?{node:n,guards:s}:null}(d)).filter(d=>null!==d).map(d=>bi(()=>{const o=d.guards.map(a=>{const c=Qn(a,d.node,e);return Gr(function ya(n){return n&&ba(n.canActivateChild)}(c)?c.canActivateChild(t,n):c(t,n)).pipe((0,Cn.P)())});return(0,Ae.of)(o).pipe(Ja())}));return(0,Ae.of)(l).pipe(Ja())}(n,r.path,e),function I(n,s,e){const t=s.routeConfig?s.routeConfig.canActivate:null;if(!t||0===t.length)return(0,Ae.of)(!0);const r=t.map(l=>bi(()=>{const d=Qn(l,s,e);return Gr(function Rh(n){return n&&ba(n.canActivate)}(d)?d.canActivate(s,n):d(s,n)).pipe((0,Cn.P)())}));return(0,Ae.of)(r).pipe(Ja())}(n,r.route,e))),(0,Cn.P)(r=>!0!==r,!0))}(t,l,n,s):(0,Ae.of)(o)),(0,mt.U)(o=>({...e,guardsResult:o})))})}(this.ngModule.injector,o=>this.triggerEvent(o)),(0,Di.b)(o=>{if(r.guardsResult=o.guardsResult,$r(o.guardsResult))throw zd(0,o.guardsResult);const a=new o_(o.id,this.serializeUrl(o.extractedUrl),this.serializeUrl(o.urlAfterRedirects),o.targetSnapshot,!!o.guardsResult);this.triggerEvent(a)}),(0,Ze.h)(o=>!!o.guardsResult||(this.restoreHistory(o),this.cancelNavigationTransition(o,"",3),!1)),Of(o=>{if(o.guards.canActivateChecks.length)return(0,Ae.of)(o).pipe((0,Di.b)(a=>{const c=new l_(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot);this.triggerEvent(c)}),(0,pi.w)(a=>{let c=!1;return(0,Ae.of)(a).pipe(function kf(n,s){return(0,ri.z)(e=>{const{targetSnapshot:t,guards:{canActivateChecks:r}}=e;if(!r.length)return(0,Ae.of)(e);let l=0;return(0,Oi.D)(r).pipe((0,Cr.b)(d=>function Rf(n,s,e,t){const r=n.routeConfig,l=n._resolve;return void 0!==r?.title&&!If(r)&&(l[w_]=r.title),function Lf(n,s,e,t){const r=function VM(n){return[...Object.keys(n),...Object.getOwnPropertySymbols(n)]}(n);if(0===r.length)return(0,Ae.of)({});const l={};return(0,Oi.D)(r).pipe((0,ri.z)(d=>function NM(n,s,e,t){const r=Qn(n,s,t);return Gr(r.resolve?r.resolve(s,e):r(s,e))}(n[d],s,e,t).pipe((0,Cn.P)(),(0,Di.b)(o=>{l[d]=o}))),oc(1),(0,ma.h)(l),(0,cn.K)(d=>_o(d)?wr.E:(0,vi._)(d)))}(l,n,s,t).pipe((0,mt.U)(d=>(n._resolvedData=d,n.data=Th(n,e).resolve,r&&If(r)&&(n.data[w_]=r.title),null)))}(d.route,t,n,s)),(0,Di.b)(()=>l++),oc(1),(0,ri.z)(d=>l===r.length?(0,Ae.of)(e):wr.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,Di.b)({next:()=>c=!0,complete:()=>{c||(this.restoreHistory(a),this.cancelNavigationTransition(a,"",2))}}))}),(0,Di.b)(a=>{const c=new c_(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot);this.triggerEvent(c)}))}),Of(o=>{const a=c=>{const u=[];c.routeConfig?.loadComponent&&!c.routeConfig._loadedComponent&&u.push(this.configLoader.loadComponent(c.routeConfig).pipe((0,Di.b)(h=>{c.component=h}),(0,mt.U)(()=>{})));for(const h of c.children)u.push(...a(h));return u};return(0,dr.a)(a(o.targetSnapshot.root)).pipe((0,lc.d)(),(0,it.q)(1))}),Of(()=>this.afterPreactivation()),(0,mt.U)(o=>{const a=function xh(n,s,e){const t=ol(n,s._root,e?e._root:void 0);return new sl(t,s)}(this.routeReuseStrategy,o.targetSnapshot,o.currentRouterState);return r={...o,targetRouterState:a}}),(0,Di.b)(o=>{this.currentUrlTree=o.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(o.urlAfterRedirects,o.rawUrl),this.routerState=o.targetRouterState,"deferred"===this.urlUpdateStrategy&&(o.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,o),this.browserUrlTree=o.urlAfterRedirects)}),((n,s,e)=>(0,mt.U)(t=>(new Ph(s,t.targetRouterState,t.currentRouterState,e).activate(n),t)))(this.rootContexts,this.routeReuseStrategy,o=>this.triggerEvent(o)),(0,Di.b)({next(){l=!0},complete(){l=!0}}),Zo(()=>{l||d||this.cancelNavigationTransition(r,"",1),this.currentNavigation?.id===r.id&&(this.currentNavigation=null)}),(0,cn.K)(o=>{if(d=!0,ll(o)){Mc(o)||(this.navigated=!0,this.restoreHistory(r,!0));const a=new wc(r.id,this.serializeUrl(r.extractedUrl),o.message,o.cancellationCode);if(t.next(a),Mc(o)){const c=this.urlHandlingStrategy.merge(o.url,this.rawUrlTree),u={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Nh(r.source)};this.scheduleNavigation(c,"imperative",null,u,{resolve:r.resolve,reject:r.reject,promise:r.promise})}else r.resolve(!1)}else{this.restoreHistory(r,!0);const a=new ai(r.id,this.serializeUrl(r.extractedUrl),o,r.targetSnapshot??void 0);t.next(a);try{r.resolve(this.errorHandler(o))}catch(c){r.reject(c)}}return wr.E}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next({...this.transitions.value,...e})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const t="popstate"===e.type?"popstate":"hashchange";"popstate"===t&&setTimeout(()=>{const r={replaceUrl:!0},l=e.state?.navigationId?e.state:null;if(l){const o={...l};delete o.navigationId,delete o.\u0275routerPageId,0!==Object.keys(o).length&&(r.state=o)}const d=this.parseUrl(e.url);this.scheduleNavigation(d,t,l,r)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){this.config=e.map(Gd),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,t={}){const{relativeTo:r,queryParams:l,fragment:d,queryParamsHandling:o,preserveFragment:a}=t,c=r||this.routerState.root,u=a?this.currentUrlTree.fragment:d;let h=null;switch(o){case"merge":h={...this.currentUrlTree.queryParams,...l};break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=l||null}return null!==h&&(h=this.removeEmptyProps(h)),nl(c,this.currentUrlTree,e,h,u??null)}navigateByUrl(e,t={skipLocationChange:!1}){const r=$r(e)?e:this.parseUrl(e),l=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(l,"imperative",null,t)}navigate(e,t={skipLocationChange:!1}){return function Kd(n){for(let s=0;s{const l=e[r];return null!=l&&(t[r]=l),t},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new Wa(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.titleStrategy?.updateTitle(this.routerState.snapshot),e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,t,r,l,d){if(this.disposed)return Promise.resolve(!1);let o,a,c;d?(o=d.resolve,a=d.reject,c=d.promise):c=new Promise((f,b)=>{o=f,a=b});const u=++this.navigationId;let h;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(r=this.location.getState()),h=r&&r.\u0275routerPageId?r.\u0275routerPageId:l.replaceUrl||l.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):h=0,this.setTransition({id:u,targetPageId:h,source:t,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:l,resolve:o,reject:a,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(f=>Promise.reject(f))}setBrowserUrl(e,t){const r=this.urlSerializer.serialize(e),l={...t.extras.state,...this.generateNgRouterState(t.id,t.targetPageId)};this.location.isCurrentPathEqualTo(r)||t.extras.replaceUrl?this.location.replaceState(r,"",l):this.location.go(r,"",l)}restoreHistory(e,t=!1){if("computed"===this.canceledNavigationResolution){const r=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.currentNavigation?.finalUrl||0===r?this.currentUrlTree===this.currentNavigation?.finalUrl&&0===r&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(r)}else"replace"===this.canceledNavigationResolution&&(t&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,t,r){const l=new wc(e.id,this.serializeUrl(e.extractedUrl),t,r);this.triggerEvent(l),e.resolve(!1)}generateNgRouterState(e,t){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:t}:{navigationId:e}}}return n.\u0275fac=function(e){i.$Z()},n.\u0275prov=i.Yz7({token:n,factory:function(){return oA()},providedIn:"root"}),n})();function Nh(n){return"imperative"!==n}let bo=(()=>{class n{constructor(e,t,r,l,d){this.router=e,this.route=t,this.tabIndexAttribute=r,this.renderer=l,this.el=d,this.commands=null,this.onChanges=new Te.x,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(e){if(null!=this.tabIndexAttribute)return;const t=this.renderer,r=this.el.nativeElement;null!==e?t.setAttribute(r,"tabindex",e):t.removeAttribute(r,"tabindex")}ngOnChanges(e){this.onChanges.next(this)}set routerLink(e){null!=e?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const e={skipLocationChange:(0,i.D6c)(this.skipLocationChange),replaceUrl:(0,i.D6c)(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,e),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:(0,i.D6c)(this.preserveFragment)})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ji),i.Y36(Jn),i.$8M("tabindex"),i.Y36(i.Qsj),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(e,t){1&e&&i.NdJ("click",function(){return t.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[i.TTD]}),n})(),Xd=(()=>{class n{constructor(e,t,r){this.router=e,this.route=t,this.locationStrategy=r,this.commands=null,this.href=null,this.onChanges=new Te.x,this.subscription=e.events.subscribe(l=>{l instanceof Wa&&this.updateTargetUrlAndHref()})}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:null}ngOnChanges(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(e,t,r,l,d){if(0!==e||t||r||l||d||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const o={skipLocationChange:(0,i.D6c)(this.skipLocationChange),replaceUrl:(0,i.D6c)(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,o),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:(0,i.D6c)(this.preserveFragment)})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ji),i.Y36(Jn),i.Y36(w.S$))},n.\u0275dir=i.lG2({type:n,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,t){1&e&&i.NdJ("click",function(l){return t.onClick(l.button,l.ctrlKey,l.shiftKey,l.altKey,l.metaKey)}),2&e&&i.uIk("target",t.target)("href",t.href,i.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[i.TTD]}),n})();class Vf{}let Nf=(()=>{class n{preload(e,t){return(0,Ae.of)(null)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),dA=(()=>{class n{constructor(e,t,r,l,d){this.router=e,this.injector=r,this.preloadingStrategy=l,this.loader=d}setUpPreloading(){this.subscription=this.router.events.pipe((0,Ze.h)(e=>e instanceof Wa),(0,Cr.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,t){const r=[];for(const l of t){l.providers&&!l._injector&&(l._injector=(0,i.MMx)(l.providers,e,`Route: ${l.path}`));const d=l._injector??e,o=l._loadedInjector??d;l.loadChildren&&!l._loadedRoutes&&void 0===l.canLoad||l.loadComponent&&!l._loadedComponent?r.push(this.preloadConfig(d,l)):(l.children||l._loadedRoutes)&&r.push(this.processRoutes(o,l.children??l._loadedRoutes))}return(0,Oi.D)(r).pipe((0,Jo.J)())}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>{let r;r=t.loadChildren&&void 0===t.canLoad?this.loader.loadChildren(e,t):(0,Ae.of)(null);const l=r.pipe((0,ri.z)(d=>null===d?(0,Ae.of)(void 0):(t._loadedRoutes=d.routes,t._loadedInjector=d.injector,this.processRoutes(d.injector??e,d.routes))));if(t.loadComponent&&!t._loadedComponent){const d=this.loader.loadComponent(t);return(0,Oi.D)([l,d]).pipe((0,Jo.J)())}return l})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Ji),i.LFG(i.Sil),i.LFG(i.lqb),i.LFG(Vf),i.LFG(Vh))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const E_=new i.OlP("");let Ff=(()=>{class n{constructor(e,t,r={}){this.router=e,this.viewportScroller=t,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.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(e=>{e instanceof Ga?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Wa&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof Ac&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,t){this.router.triggerEvent(new Ac(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return n.\u0275fac=function(e){i.$Z()},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const yo=new i.OlP("ROUTER_FORROOT_GUARD"),D_=new i.OlP(""),jf=[w.Ye,{provide:yh,useClass:Ed},{provide:Ji,useFactory:oA},_a,{provide:Jn,useFactory:function Fh(n){return n.routerState.root},deps:[Ji]},Vh];function hA(){return new i.PXZ("Router",Ji)}let Pc=(()=>{class n{constructor(e){}static forRoot(e,t){return{ngModule:n,providers:[jf,[],P_(e),{provide:yo,useFactory:Yf,deps:[[Ji,new i.FiY,new i.tp0]]},{provide:Jd,useValue:t||{}},t?.useHash?{provide:w.S$,useClass:w.Do}:{provide:w.S$,useClass:w.b0},{provide:E_,useFactory:()=>{const n=(0,i.f3M)(Ji),s=(0,i.f3M)(w.EM),e=(0,i.f3M)(Jd);return e.scrollOffset&&s.setOffset(e.scrollOffset),new Ff(n,s,e)}},t?.preloadingStrategy?R_(t.preloadingStrategy):[],{provide:i.PXZ,multi:!0,useFactory:hA},t?.initialNavigation?kc(t):[],[{provide:Uf,useFactory:pA},{provide:i.tb,multi:!0,useExisting:Uf}]]}}static forChild(e){return{ngModule:n,providers:[P_(e)]}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(yo,8))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();function Yf(n){return"guarded"}function P_(n){return[{provide:qi,multi:!0,useValue:n}]}function pA(){const n=(0,i.f3M)(i.zs3);return s=>{const e=n.get(i.z2F);if(s!==e.components[0])return;const t=n.get(Ji),r=n.get(k_);1===n.get(zf)&&t.initialNavigation(),n.get(D_,null,i.XFs.Optional)?.setUpPreloading(),n.get(E_,null,i.XFs.Optional)?.init(),t.resetRootComponentType(e.componentTypes[0]),r.next(),r.complete()}}const Uf=new i.OlP("");function kc(n){return["disabled"===n.initialNavigation?[{provide:i.ip1,multi:!0,useFactory:()=>{const n=(0,i.f3M)(Ji);return()=>{n.setUpLocationChangeListener()}}},{provide:zf,useValue:2}]:[],"enabledBlocking"===n.initialNavigation?[{provide:zf,useValue:0},{provide:i.ip1,multi:!0,deps:[i.zs3],useFactory:n=>{const s=n.get(w.V_,Promise.resolve(null));let e=!1;return()=>s.then(()=>new Promise(r=>{const l=n.get(Ji),d=n.get(k_);(function t(r){n.get(Ji).events.pipe((0,Ze.h)(d=>d instanceof Wa||d instanceof wc||d instanceof ai),(0,mt.U)(d=>d instanceof Wa||d instanceof wc&&(0===d.code||1===d.code)&&null),(0,Ze.h)(d=>null!==d),(0,it.q)(1)).subscribe(()=>{r()})})(()=>{r(!0),e=!0}),l.afterPreactivation=()=>(r(!0),e||d.closed?(0,Ae.of)(void 0):d),l.initialNavigation()}))}}]:[]]}const k_=new i.OlP("",{factory:()=>new Te.x}),zf=new i.OlP("",{providedIn:"root",factory:()=>1});function R_(n){return[dA,{provide:D_,useExisting:dA},{provide:Vf,useExisting:n}]}let Yh;try{Yh=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Yh=!1}let es,Hi=(()=>{class n{constructor(e){this._platformId=e,this.isBrowser=this._platformId?(0,w.NF)(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&&!Yh)&&typeof CSS<"u"&&!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 n.\u0275fac=function(e){return new(e||n)(i.LFG(i.Lbi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const L_=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function bl(){if(es)return es;if("object"!=typeof document||!document)return es=new Set(L_),es;let n=document.createElement("input");return es=new Set(L_.filter(s=>(n.setAttribute("type",s),n.type===s))),es}let vs,eu,yl,Uh;function Ts(n){return function _A(){if(null==vs&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>vs=!0}))}finally{vs=vs||!1}return vs}()?n:!!n.capture}function I_(){if(null==yl){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return yl=!1,yl;if("scrollBehavior"in document.documentElement.style)yl=!0;else{const n=Element.prototype.scrollTo;yl=!!n&&!/\{\s*\[native code\]\s*\}/.test(n.toString())}}return yl}function tu(){if("object"!=typeof document||!document)return 0;if(null==eu){const n=document.createElement("div"),s=n.style;n.dir="rtl",s.width="1px",s.overflow="auto",s.visibility="hidden",s.pointerEvents="none",s.position="absolute";const e=document.createElement("div"),t=e.style;t.width="2px",t.height="1px",n.appendChild(e),document.body.appendChild(n),eu=0,0===n.scrollLeft&&(n.scrollLeft=1,eu=0===n.scrollLeft?1:2),n.remove()}return eu}function Rc(n){if(function bA(){if(null==Uh){const n=typeof document<"u"?document.head:null;Uh=!(!n||!n.createShadowRoot&&!n.attachShadow)}return Uh}()){const s=n.getRootNode?n.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&s instanceof ShadowRoot)return s}return null}function Lc(){let n=typeof document<"u"&&document?document.activeElement:null;for(;n&&n.shadowRoot;){const s=n.shadowRoot.activeElement;if(s===n)break;n=s}return n}function wa(n){return n.composedPath?n.composedPath()[0]:n.target}function iu(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function _n(n,...s){return s.length?s.some(e=>n[e]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}var Bc=x(8372);function Jf(n){return(0,Ze.h)((s,e)=>n<=e)}function Ms(n,s=cc.y){return n=n??ZA,(0,Ur.e)((e,t)=>{let r,l=!0;e.subscribe((0,et.x)(t,d=>{const o=s(d);(l||!n(r,o))&&(l=!1,r=o,t.next(d))}))})}function ZA(n,s){return n===s}var JA=x(5032);function Ge(n){return(0,Ur.e)((s,e)=>{(0,$i.Xf)(n).subscribe((0,et.x)(e,()=>e.complete(),JA.Z)),!e.closed&&s.subscribe(e)})}function Ne(n){return null!=n&&"false"!=`${n}`}function ci(n,s=0){return X_(n)?Number(n):s}function X_(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}function $h(n){return Array.isArray(n)?n:[n]}function un(n){return null==n?"":"string"==typeof n?n:`${n}px`}function en(n){return n instanceof i.SBq?n.nativeElement:n}let tb=(()=>{class n{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),QA=(()=>{class n{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,t)=>this._cleanupObserver(t))}observe(e){const t=en(e);return new oi.y(r=>{const d=this._observeElement(t).subscribe(r);return()=>{d.unsubscribe(),this._unobserveElement(t)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const t=new Te.x,r=this._mutationObserverFactory.create(l=>t.next(l));r&&r.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:r,stream:t,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:t,stream:r}=this._observedElements.get(e);t&&t.disconnect(),r.complete(),this._observedElements.delete(e)}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(tb))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Zh=(()=>{class n{constructor(e,t,r){this._contentObserver=e,this._elementRef=t,this._ngZone=r,this.event=new i.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=Ne(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=ci(e),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe((0,Bc.b)(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(QA),i.Y36(i.SBq),i.Y36(i.R0b))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),n})(),vt=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[tb]}),n})();const Qf=new Set;let wl,XA=(()=>{class n{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):ib}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function ev(n){if(!Qf.has(n))try{wl||(wl=document.createElement("style"),wl.setAttribute("type","text/css"),document.head.appendChild(wl)),wl.sheet&&(wl.sheet.insertRule(`@media ${n} {body{ }}`,0),Qf.add(n))}catch(s){console.error(s)}}(e),this._matchMedia(e)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Hi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function ib(n){return{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{}}}let nb=(()=>{class n{constructor(e,t){this._mediaMatcher=e,this._zone=t,this._queries=new Map,this._destroySubject=new Te.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return Kf($h(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){const r=Kf($h(e)).map(d=>this._registerQuery(d).observable);let l=(0,dr.a)(r);return l=(0,On.z)(l.pipe((0,it.q)(1)),l.pipe(Jf(1),(0,Bc.b)(0))),l.pipe((0,mt.U)(d=>{const o={matches:!1,breakpoints:{}};return d.forEach(({matches:a,query:c})=>{o.matches=o.matches||a,o.breakpoints[c]=a}),o}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const t=this._mediaMatcher.matchMedia(e),l={observable:new oi.y(d=>{const o=a=>this._zone.run(()=>d.next(a));return t.addListener(o),()=>{t.removeListener(o)}}).pipe(Nt(t),(0,mt.U)(({matches:d})=>({query:e,matches:d})),Ge(this._destroySubject)),mql:t};return this._queries.set(e,l),l}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(XA),i.LFG(i.R0b))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Kf(n){return n.map(s=>s.split(",")).reduce((s,e)=>s.concat(e)).map(s=>s.trim())}function ou(n,s){return(n.getAttribute(s)||"").match(/\S+/g)||[]}const sb="cdk-describedby-message",Nc="cdk-describedby-host";let lu=0,Xf=(()=>{class n{constructor(e,t){this._platform=t,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+lu++,this._document=e,this._id=(0,i.f3M)(i.AFp)+"-"+lu++}describe(e,t,r){if(!this._canBeDescribed(e,t))return;const l=ob(t,r);"string"!=typeof t?(iv(t,this._id),this._messageRegistry.set(l,{messageElement:t,referenceCount:0})):this._messageRegistry.has(l)||this._createMessageElement(t,r),this._isElementDescribedByMessage(e,l)||this._addMessageReference(e,l)}removeDescription(e,t,r){if(!t||!this._isElementNode(e))return;const l=ob(t,r);if(this._isElementDescribedByMessage(e,l)&&this._removeMessageReference(e,l),"string"==typeof t){const d=this._messageRegistry.get(l);d&&0===d.referenceCount&&this._deleteMessageElement(l)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const e=this._document.querySelectorAll(`[${Nc}="${this._id}"]`);for(let t=0;t0!=r.indexOf(sb));e.setAttribute("aria-describedby",t.join(" "))}_addMessageReference(e,t){const r=this._messageRegistry.get(t);(function SS(n,s,e){const t=ou(n,s);t.some(r=>r.trim()==e.trim())||(t.push(e.trim()),n.setAttribute(s,t.join(" ")))})(e,"aria-describedby",r.messageElement.id),e.setAttribute(Nc,this._id),r.referenceCount++}_removeMessageReference(e,t){const r=this._messageRegistry.get(t);r.referenceCount--,function ab(n,s,e){const r=ou(n,s).filter(l=>l!=e.trim());r.length?n.setAttribute(s,r.join(" ")):n.removeAttribute(s)}(e,"aria-describedby",r.messageElement.id),e.removeAttribute(Nc)}_isElementDescribedByMessage(e,t){const r=ou(e,"aria-describedby"),l=this._messageRegistry.get(t),d=l&&l.messageElement.id;return!!d&&-1!=r.indexOf(d)}_canBeDescribed(e,t){if(!this._isElementNode(e))return!1;if(t&&"object"==typeof t)return!0;const r=null==t?"":`${t}`.trim(),l=e.getAttribute("aria-label");return!(!r||l&&l.trim()===r)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0),i.LFG(Hi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function ob(n,s){return"string"==typeof n?`${s||""}/${n}`:n}function iv(n,s){n.id||(n.id=`${sb}-${s}-${lu++}`)}class nv{constructor(s){this._items=s,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new Te.x,this._typeaheadSubscription=Dt.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new Te.x,this.change=new Te.x,s instanceof i.n_E&&s.changes.subscribe(e=>{if(this._activeItem){const r=e.toArray().indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}})}skipPredicate(s){return this._skipPredicateFn=s,this}withWrap(s=!0){return this._wrap=s,this}withVerticalOrientation(s=!0){return this._vertical=s,this}withHorizontalOrientation(s){return this._horizontal=s,this}withAllowedModifierKeys(s){return this._allowedModifierKeys=s,this}withTypeAhead(s=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,Di.b)(e=>this._pressedLetters.push(e)),(0,Bc.b)(s),(0,Ze.h)(()=>this._pressedLetters.length>0),(0,mt.U)(()=>this._pressedLetters.join(""))).subscribe(e=>{const t=this._getItemsArray();for(let r=1;r!s[l]||this._allowedModifierKeys.indexOf(l)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&r){this.setNextItemActive();break}return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&r){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&r){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}return;default:return void((r||_n(s,"shiftKey"))&&(s.key&&1===s.key.length?this._letterKeyStream.next(s.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],s.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(s){const e=this._getItemsArray(),t="number"==typeof s?s:e.indexOf(s);this._activeItem=e[t]??null,this._activeItemIndex=t}_setActiveItemByDelta(s){this._wrap?this._setActiveInWrapMode(s):this._setActiveInDefaultMode(s)}_setActiveInWrapMode(s){const e=this._getItemsArray();for(let t=1;t<=e.length;t++){const r=(this._activeItemIndex+s*t+e.length)%e.length;if(!this._skipPredicateFn(e[r]))return void this.setActiveItem(r)}}_setActiveInDefaultMode(s){this._setActiveItemByIndex(this._activeItemIndex+s,s)}_setActiveItemByIndex(s,e){const t=this._getItemsArray();if(t[s]){for(;this._skipPredicateFn(t[s]);)if(!t[s+=e])return;this.setActiveItem(s)}}_getItemsArray(){return this._items instanceof i.n_E?this._items.toArray():this._items}}class rv extends nv{setActiveItem(s){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(s),this.activeItem&&this.activeItem.setActiveStyles()}}class Al extends nv{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(s){return this._origin=s,this}setActiveItem(s){super.setActiveItem(s),this.activeItem&&this.activeItem.focus(this._origin)}}let cu=(()=>{class n{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function av(n){return!!(n.offsetWidth||n.offsetHeight||"function"==typeof n.getClientRects&&n.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const t=function Fc(n){try{return n.frameElement}catch{return null}}(function hb(n){return n.ownerDocument&&n.ownerDocument.defaultView||window}(e));if(t&&(-1===ub(t)||!this.isVisible(t)))return!1;let r=e.nodeName.toLowerCase(),l=ub(e);return e.hasAttribute("contenteditable")?-1!==l:!("iframe"===r||"object"===r||this._platform.WEBKIT&&this._platform.IOS&&!function lv(n){let s=n.nodeName.toLowerCase(),e="input"===s&&n.type;return"text"===e||"password"===e||"select"===s||"textarea"===s}(e))&&("audio"===r?!!e.hasAttribute("controls")&&-1!==l:"video"===r?-1!==l&&(null!==l||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,t){return function cv(n){return!function Jh(n){return function cb(n){return"input"==n.nodeName.toLowerCase()}(n)&&"hidden"==n.type}(n)&&(function lb(n){let s=n.nodeName.toLowerCase();return"input"===s||"select"===s||"button"===s||"textarea"===s}(n)||function sv(n){return function ov(n){return"a"==n.nodeName.toLowerCase()}(n)&&n.hasAttribute("href")}(n)||n.hasAttribute("contenteditable")||db(n))}(e)&&!this.isDisabled(e)&&(t?.ignoreVisibility||this.isVisible(e))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Hi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function db(n){if(!n.hasAttribute("tabindex")||void 0===n.tabIndex)return!1;let s=n.getAttribute("tabindex");return!(!s||isNaN(parseInt(s,10)))}function ub(n){if(!db(n))return null;const s=parseInt(n.getAttribute("tabindex")||"",10);return isNaN(s)?-1:s}class dv{constructor(s,e,t,r,l=!1){this._element=s,this._checker=e,this._ngZone=t,this._document=r,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,l||this.attachAnchors()}get enabled(){return this._enabled}set enabled(s){this._enabled=s,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(s,this._startAnchor),this._toggleAnchorTabIndex(s,this._endAnchor))}destroy(){const s=this._startAnchor,e=this._endAnchor;s&&(s.removeEventListener("focus",this.startAnchorListener),s.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),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(s){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(s)))})}focusFirstTabbableElementWhenReady(s){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(s)))})}focusLastTabbableElementWhenReady(s){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(s)))})}_getRegionBoundary(s){const e=this._element.querySelectorAll(`[cdk-focus-region-${s}], [cdkFocusRegion${s}], [cdk-focus-${s}]`);return"start"==s?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(s){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const t=this._getFirstTabbableElement(e);return t?.focus(s),!!t}return e.focus(s),!0}return this.focusFirstTabbableElement(s)}focusFirstTabbableElement(s){const e=this._getRegionBoundary("start");return e&&e.focus(s),!!e}focusLastTabbableElement(s){const e=this._getRegionBoundary("end");return e&&e.focus(s),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(s){if(this._checker.isFocusable(s)&&this._checker.isTabbable(s))return s;const e=s.children;for(let t=0;t=0;t--){const r=e[t].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[t]):null;if(r)return r}return null}_createAnchor(){const s=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,s),s.classList.add("cdk-visually-hidden"),s.classList.add("cdk-focus-trap-anchor"),s.setAttribute("aria-hidden","true"),s}_toggleAnchorTabIndex(s,e){s?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(s){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(s,this._startAnchor),this._toggleAnchorTabIndex(s,this._endAnchor))}_executeOnStable(s){this._ngZone.isStable?s():this._ngZone.onStable.pipe((0,it.q)(1)).subscribe(s)}}let jc=(()=>{class n{constructor(e,t,r){this._checker=e,this._ngZone=t,this._document=r}create(e,t=!1){return new dv(e,this._checker,this._ngZone,this._document,t)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(cu),i.LFG(i.R0b),i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),pb=(()=>{class n{constructor(e,t,r){this._elementRef=e,this._focusTrapFactory=t,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(e){this.focusTrap.enabled=Ne(e)}get autoCapture(){return this._autoCapture}set autoCapture(e){this._autoCapture=Ne(e)}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(e){const t=e.autoCapture;t&&!t.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=Lc(),this.focusTrap.focusInitialElementWhenReady()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(jc),i.Y36(w.K0))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[i.TTD]}),n})();function Ss(n){return 0===n.buttons||0===n.offsetX&&0===n.offsetY}function du(n){const s=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!(!s||-1!==s.identifier||null!=s.radiusX&&1!==s.radiusX||null!=s.radiusY&&1!==s.radiusY)}const gb=new i.OlP("cdk-input-modality-detector-options"),Qh={ignoreKeys:[18,17,224,91,16]},vl=Ts({passive:!0,capture:!0});let uv=(()=>{class n{constructor(e,t,r,l){this._platform=e,this._mostRecentTarget=null,this._modality=new gi(null),this._lastTouchMs=0,this._onKeydown=d=>{this._options?.ignoreKeys?.some(o=>o===d.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=wa(d))},this._onMousedown=d=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Ss(d)?"keyboard":"mouse"),this._mostRecentTarget=wa(d))},this._onTouchstart=d=>{du(d)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=wa(d))},this._options={...Qh,...l},this.modalityDetected=this._modality.pipe(Jf(1)),this.modalityChanged=this.modalityDetected.pipe(Ms()),e.isBrowser&&t.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,vl),r.addEventListener("mousedown",this._onMousedown,vl),r.addEventListener("touchstart",this._onTouchstart,vl)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,vl),document.removeEventListener("mousedown",this._onMousedown,vl),document.removeEventListener("touchstart",this._onTouchstart,vl))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Hi),i.LFG(i.R0b),i.LFG(w.K0),i.LFG(gb,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const em=new i.OlP("liveAnnouncerElement",{providedIn:"root",factory:function Es(){return null}}),tm=new i.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let _b=(()=>{class n{constructor(e,t,r,l){this._ngZone=t,this._defaultOptions=l,this._document=r,this._liveElement=e||this._createLiveElement()}announce(e,...t){const r=this._defaultOptions;let l,d;return 1===t.length&&"number"==typeof t[0]?d=t[0]:[l,d]=t,this.clear(),clearTimeout(this._previousTimeout),l||(l=r&&r.politeness?r.politeness:"polite"),null==d&&r&&(d=r.duration),this._liveElement.setAttribute("aria-live",l),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(o=>this._currentResolve=o)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,"number"==typeof d&&(this._previousTimeout=setTimeout(()=>this.clear(),d)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const e="cdk-live-announcer-element",t=this._document.getElementsByClassName(e),r=this._document.createElement("div");for(let l=0;l{class n{constructor(e,t,r,l,d){this._ngZone=e,this._platform=t,this._inputModalityDetector=r,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new Te.x,this._rootNodeFocusAndBlurListener=o=>{for(let c=wa(o);c;c=c.parentElement)"focus"===o.type?this._onFocus(o,c):this._onBlur(o,c)},this._document=l,this._detectionMode=d?.detectionMode||0}monitor(e,t=!1){const r=en(e);if(!this._platform.isBrowser||1!==r.nodeType)return(0,Ae.of)(null);const l=Rc(r)||this._getDocument(),d=this._elementInfo.get(r);if(d)return t&&(d.checkChildren=!0),d.subject;const o={checkChildren:t,subject:new Te.x,rootNode:l};return this._elementInfo.set(r,o),this._registerGlobalListeners(o),o.subject}stopMonitoring(e){const t=en(e),r=this._elementInfo.get(t);r&&(r.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(r))}focusVia(e,t,r){const l=en(e);l===this._getDocument().activeElement?this._getClosestElementsInfo(l).forEach(([o,a])=>this._originChanged(o,t,a)):(this._setOrigin(t),"function"==typeof l.focus&&l.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,t)=>this.stopMonitoring(t))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,t){e.classList.toggle("cdk-focused",!!t),e.classList.toggle("cdk-touch-focused","touch"===t),e.classList.toggle("cdk-keyboard-focused","keyboard"===t),e.classList.toggle("cdk-mouse-focused","mouse"===t),e.classList.toggle("cdk-program-focused","program"===t)}_setOrigin(e,t=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&t,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,t){const r=this._elementInfo.get(t),l=wa(e);!r||!r.checkChildren&&t!==l||this._originChanged(t,this._getFocusOrigin(l),r)}_onBlur(e,t){const r=this._elementInfo.get(t);!r||r.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(r,null))}_emitOrigin(e,t){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(t))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const t=e.rootNode,r=this._rootNodeFocusListenerCount.get(t)||0;r||this._ngZone.runOutsideAngular(()=>{t.addEventListener("focus",this._rootNodeFocusAndBlurListener,uu),t.addEventListener("blur",this._rootNodeFocusAndBlurListener,uu)}),this._rootNodeFocusListenerCount.set(t,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Ge(this._stopInputModalityDetector)).subscribe(l=>{this._setOrigin(l,!0)}))}_removeGlobalListeners(e){const t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){const r=this._rootNodeFocusListenerCount.get(t);r>1?this._rootNodeFocusListenerCount.set(t,r-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,uu),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,uu),this._rootNodeFocusListenerCount.delete(t))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,t,r){this._setClasses(e,t),this._emitOrigin(r,t),this._lastFocusOrigin=t}_getClosestElementsInfo(e){const t=[];return this._elementInfo.forEach((r,l)=>{(l===e||r.checkChildren&&l.contains(e))&&t.push([l,r])}),t}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:t,mostRecentModality:r}=this._inputModalityDetector;if("mouse"!==r||!t||t===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const l=e.labels;if(l)for(let d=0;d{class n{constructor(e,t){this._elementRef=e,this._focusMonitor=t,this.cdkFocusChange=new i.vpe}ngAfterViewInit(){const e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,1===e.nodeType&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(t=>this.cdkFocusChange.emit(t))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(tr))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),n})();const pu="cdk-high-contrast-black-on-white",Kh="cdk-high-contrast-white-on-black",fu="cdk-high-contrast-active";let Xh=(()=>{class n{constructor(e,t){this._platform=e,this._document=t,this._breakpointSubscription=(0,i.f3M)(nb).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const t=this._document.defaultView||window,r=t&&t.getComputedStyle?t.getComputedStyle(e):null,l=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),l){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(fu,pu,Kh),this._hasCheckedHighContrastMode=!0;const t=this.getHighContrastMode();1===t?e.add(fu,pu):2===t&&e.add(fu,Kh)}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Hi),i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ep=(()=>{class n{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Xh))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[vt]}),n})();const hv=new i.OlP("cdk-dir-doc",{providedIn:"root",factory:function pv(){return(0,i.f3M)(w.K0)}}),fv=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let _i=(()=>{class n{constructor(e){if(this.value="ltr",this.change=new i.vpe,e){const r=e.documentElement?e.documentElement.dir:null;this.value=function mv(n){const s=n?.toLowerCase()||"";return"auto"===s&&typeof navigator<"u"&&navigator?.language?fv.test(navigator.language)?"rtl":"ltr":"rtl"===s?"rtl":"ltr"}((e.body?e.body.dir:null)||r||"ltr")}}ngOnDestroy(){this.change.complete()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(hv,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Yc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();function yv(n,s){if(1&n&&i._UZ(0,"mat-pseudo-checkbox",4),2&n){const e=i.oxw();i.Q6J("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}function im(n,s){if(1&n&&(i.TgZ(0,"span",5),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.hij("(",e.group.label,")")}}const HS=["*"];let PS=(()=>{class n{}return n.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",n.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",n.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",n.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",n})(),kS=(()=>{class n{}return n.COMPLEX="375ms",n.ENTERING="225ms",n.EXITING="195ms",n})();const LS=new i.OlP("mat-sanity-checks",{providedIn:"root",factory:function RS(){return!0}});let ct=(()=>{class n{constructor(e,t,r){this._sanityChecks=t,this._document=r,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!iu()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Xh),i.LFG(LS,8),i.LFG(w.K0))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[Yc,Yc]}),n})();function hn(n){return class extends n{constructor(...s){super(...s),this._disabled=!1}get disabled(){return this._disabled}set disabled(s){this._disabled=Ne(s)}}}function Mr(n,s){return class extends n{constructor(...e){super(...e),this.defaultColor=s,this.color=s}get color(){return this._color}set color(e){const t=e||this.defaultColor;t!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),t&&this._elementRef.nativeElement.classList.add(`mat-${t}`),this._color=t)}}}function Xr(n){return class extends n{constructor(...s){super(...s),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(s){this._disableRipple=Ne(s)}}}function Ao(n,s=0){return class extends n{constructor(...e){super(...e),this._tabIndex=s,this.defaultTabIndex=s}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(e){this._tabIndex=null!=e?ci(e):this.defaultTabIndex}}}function mu(n){return class extends n{constructor(...s){super(...s),this.errorState=!1}updateErrorState(){const s=this.errorState,l=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);l!==s&&(this.errorState=l,this.stateChanges.next())}}}function nm(n){return class extends n{constructor(...s){super(...s),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new oi.y(e=>{this._isInitialized?this._notifySubscriber(e):this._pendingSubscribers.push(e)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(s){s.next(),s.complete()}}}const Ds=new i.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function wv(){return(0,i.f3M)(i.soG)}});class ei{constructor(){this._localeChanges=new Te.x,this.localeChanges=this._localeChanges}getValidDateOrNull(s){return this.isDateInstance(s)&&this.isValid(s)?s:null}deserialize(s){return null==s||this.isDateInstance(s)&&this.isValid(s)?s:this.invalid()}setLocale(s){this.locale=s,this._localeChanges.next()}compareDate(s,e){return this.getYear(s)-this.getYear(e)||this.getMonth(s)-this.getMonth(e)||this.getDate(s)-this.getDate(e)}sameDate(s,e){if(s&&e){let t=this.isValid(s),r=this.isValid(e);return t&&r?!this.compareDate(s,e):t==r}return s==e}clampDate(s,e,t){return e&&this.compareDate(s,e)<0?e:t&&this.compareDate(s,t)>0?t:s}}const Sr=new i.OlP("mat-date-formats"),Av=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function gu(n,s){const e=Array(n);for(let t=0;t{class n extends ei{constructor(e,t){super(),this.useUtcForDisplay=!1,super.setLocale(e)}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){const t=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return gu(12,r=>this._format(t,new Date(2017,r,1)))}getDateNames(){const e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return gu(31,t=>this._format(e,new Date(2017,0,t+1)))}getDayOfWeekNames(e){const t=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return gu(7,r=>this._format(t,new Date(2017,0,r+1)))}getYearName(e){const t=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(t,e)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,t,r){let l=this._createDateWithOverflow(e,t,r);return l.getMonth(),l}today(){return new Date}parse(e,t){return"number"==typeof e?new Date(e):e?new Date(Date.parse(e)):null}format(e,t){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");const r=new Intl.DateTimeFormat(this.locale,{...t,timeZone:"utc"});return this._format(r,e)}addCalendarYears(e,t){return this.addCalendarMonths(e,12*t)}addCalendarMonths(e,t){let r=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+t,this.getDate(e));return this.getMonth(r)!=((this.getMonth(e)+t)%12+12)%12&&(r=this._createDateWithOverflow(this.getYear(r),this.getMonth(r),0)),r}addCalendarDays(e,t){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+t)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if("string"==typeof e){if(!e)return null;if(Av.test(e)){let t=new Date(e);if(this.isValid(t))return t}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(e,t,r){const l=new Date;return l.setFullYear(e,t,r),l.setHours(0,0,0,0),l}_2digit(e){return("00"+e).slice(-2)}_format(e,t){const r=new Date;return r.setUTCFullYear(t.getFullYear(),t.getMonth(),t.getDate()),r.setUTCHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e.format(r)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Ds,8),i.LFG(Hi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const Cb={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 vv=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[{provide:ei,useClass:yb}]}),n})(),wb=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[{provide:Sr,useValue:Cb}],imports:[vv]}),n})(),Er=(()=>{class n{isErrorState(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),tp=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),n})();function vo(n,s,e){n.nativeElement.classList.toggle(s,e)}let To=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[ct,ct]}),n})();class Tv{constructor(s,e,t,r=!1){this._renderer=s,this.element=e,this.config=t,this._animationForciblyDisabledThroughCss=r,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const am={enterDuration:225,exitDuration:150},_u=Ts({passive:!0}),ip=["mousedown","touchstart"],sm=["mouseup","mouseleave","touchend","touchcancel"];class np{constructor(s,e,t,r){this._target=s,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=en(t))}fadeInRipple(s,e,t={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),l={...am,...t.animation};t.centered&&(s=r.left+r.width/2,e=r.top+r.height/2);const d=t.radius||function xv(n,s,e){const t=Math.max(Math.abs(n-e.left),Math.abs(n-e.right)),r=Math.max(Math.abs(s-e.top),Math.abs(s-e.bottom));return Math.sqrt(t*t+r*r)}(s,e,r),o=s-r.left,a=e-r.top,c=l.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=o-d+"px",u.style.top=a-d+"px",u.style.height=2*d+"px",u.style.width=2*d+"px",null!=t.color&&(u.style.backgroundColor=t.color),u.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(u);const h=window.getComputedStyle(u),b=h.transitionDuration,V="none"===h.transitionProperty||"0s"===b||"0s, 0s"===b,X=new Tv(this,u,t,V);u.style.transform="scale3d(1, 1, 1)",X.state=0,t.persistent||(this._mostRecentTransientRipple=X);let ue=null;return!V&&(c||l.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const je=()=>this._finishRippleTransition(X),Pt=()=>this._destroyRipple(X);u.addEventListener("transitionend",je),u.addEventListener("transitioncancel",Pt),ue={onTransitionEnd:je,onTransitionCancel:Pt}}),this._activeRipples.set(X,ue),(V||!c)&&this._finishRippleTransition(X),X}fadeOutRipple(s){if(2===s.state||3===s.state)return;const e=s.element,t={...am,...s.config.animation};e.style.transitionDuration=`${t.exitDuration}ms`,e.style.opacity="0",s.state=2,(s._animationForciblyDisabledThroughCss||!t.exitDuration)&&this._finishRippleTransition(s)}fadeOutAll(){this._getActiveRipples().forEach(s=>s.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(s=>{s.config.persistent||s.fadeOut()})}setupTriggerEvents(s){const e=en(s);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(ip))}handleEvent(s){"mousedown"===s.type?this._onMousedown(s):"touchstart"===s.type?this._onTouchStart(s):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(sm),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(s){0===s.state?this._startFadeOutTransition(s):2===s.state&&this._destroyRipple(s)}_startFadeOutTransition(s){const e=s===this._mostRecentTransientRipple,{persistent:t}=s.config;s.state=1,!t&&(!e||!this._isPointerDown)&&s.fadeOut()}_destroyRipple(s){const e=this._activeRipples.get(s)??null;this._activeRipples.delete(s),this._activeRipples.size||(this._containerRect=null),s===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),s.state=3,null!==e&&(s.element.removeEventListener("transitionend",e.onTransitionEnd),s.element.removeEventListener("transitioncancel",e.onTransitionCancel)),s.element.remove()}_onMousedown(s){const e=Ss(s),t=this._lastTouchStartEvent&&Date.now(){!s.config.persistent&&(1===s.state||s.config.terminateOnPointerUp&&0===s.state)&&s.fadeOut()}))}_registerEvents(s){this._ngZone.runOutsideAngular(()=>{s.forEach(e=>{this._triggerElement.addEventListener(e,this,_u)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(ip.forEach(s=>{this._triggerElement.removeEventListener(s,this,_u)}),this._pointerUpEventsRegistered&&sm.forEach(s=>{this._triggerElement.removeEventListener(s,this,_u)}))}}const Mv=new i.OlP("mat-ripple-global-options");let fr=(()=>{class n{constructor(e,t,r,l,d){this._elementRef=e,this._animationMode=d,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=l||{},this._rippleRenderer=new np(this,t,e,r)}get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...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(e,t=0,r){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,{...this.rippleConfig,...r}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...e})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(Hi),i.Y36(Mv,8),i.Y36(i.QbO,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("mat-ripple-unbounded",t.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),n})(),Dr=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[ct,ct]}),n})(),vb=(()=>{class n{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.QbO,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,t){2&e&&i.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===t.state)("mat-pseudo-checkbox-checked","checked"===t.state)("mat-pseudo-checkbox-disabled",t.disabled)("_mat-animation-noopable","NoopAnimations"===t._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(e,t){},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:rgba(0,0,0,0)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::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}'],encapsulation:2,changeDetection:0}),n})(),rp=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[ct]}),n})();const om=new i.OlP("MAT_OPTION_PARENT_COMPONENT"),Tb=new i.OlP("MatOptgroup");let Ev=0;class lm{constructor(s,e=!1){this.source=s,this.isUserInput=e}}let xb=(()=>{class n{constructor(e,t,r,l){this._element=e,this._changeDetectorRef=t,this._parent=r,this.group=l,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+Ev++,this.onSelectionChange=new i.vpe,this._stateChanges=new Te.x}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(e){this._disabled=Ne(e)}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(e,t){const r=this._getHostElement();"function"==typeof r.focus&&r.focus(t)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!_n(e)&&(this._selectViaInteraction(),e.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 e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue=e,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new lm(this,e))}}return n.\u0275fac=function(e){i.$Z()},n.\u0275dir=i.lG2({type:n,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),n})(),Uc=(()=>{class n extends xb{constructor(e,t,r,l){super(e,t,r,l)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(om,8),i.Y36(Tb,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,t){1&e&&i.NdJ("click",function(){return t._selectViaInteraction()})("keydown",function(l){return t._handleKeydown(l)}),2&e&&(i.Ikx("id",t.id),i.uIk("tabindex",t._getTabIndex())("aria-selected",t._getAriaSelected())("aria-disabled",t.disabled.toString()),i.ekj("mat-selected",t.selected)("mat-option-multiple",t.multiple)("mat-active",t.active)("mat-option-disabled",t.disabled))},exportAs:["matOption"],features:[i.qOj],ngContentSelectors:HS,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(e,t){1&e&&(i.F$t(),i.YNc(0,yv,1,2,"mat-pseudo-checkbox",0),i.TgZ(1,"span",1),i.Hsn(2),i.qZA(),i.YNc(3,im,2,1,"span",2),i._UZ(4,"div",3)),2&e&&(i.Q6J("ngIf",t.multiple),i.xp6(3),i.Q6J("ngIf",t.group&&t.group._inert),i.xp6(1),i.Q6J("matRippleTrigger",t._getHostElement())("matRippleDisabled",t.disabled||t.disableRipple))},dependencies:[fr,w.O5,vb],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:rgba(0,0,0,0)}.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;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}.mat-option.mat-active::before{content:""}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{right:auto;left:16px}.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}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}'],encapsulation:2,changeDetection:0}),n})();function Mb(n,s,e){if(e.length){let t=s.toArray(),r=e.toArray(),l=0;for(let d=0;d{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[Dr,w.ez,ct,rp]}),n})();const Hv=["mat-button",""],Sb=["*"],Eb=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],Db=Mr(hn(Xr(class{constructor(n){this._elementRef=n}})));let It=(()=>{class n extends Db{constructor(e,t,r){super(e),this._focusMonitor=t,this._animationMode=r,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const l of Eb)this._hasHostAttributes(l)&&this._getHostElement().classList.add(l);e.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(e,t){e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...e){return e.some(t=>this._getHostElement().hasAttribute(t))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(tr),i.Y36(i.QbO,8))},n.\u0275cmp=i.Xpm({type:n,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(e,t){if(1&e&&i.Gf(fr,5),2&e){let r;i.iGM(r=i.CRH())&&(t.ripple=r.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,t){2&e&&(i.uIk("disabled",t.disabled||null),i.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-button-disabled",t.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[i.qOj],attrs:Hv,ngContentSelectors:Sb,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(e,t){1&e&&(i.F$t(),i.TgZ(0,"span",0),i.Hsn(1),i.qZA(),i._UZ(2,"span",1)(3,"span",2)),2&e&&(i.xp6(2),i.ekj("mat-button-ripple-round",t.isRoundButton||t.isIconButton),i.Q6J("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",t.isIconButton)("matRippleTrigger",t._getHostElement()))},dependencies:[fr],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.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;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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-fab._mat-animation-noopable{transition:none !important;animation:none !important}.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;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.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:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.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}"],encapsulation:2,changeDetection:0}),n})(),ta=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[Dr,ct,ct]}),n})();var kv=x(1144);const Rv=["addListener","removeListener"],BS=["addEventListener","removeEventListener"],Hb=["on","off"];function Aa(n,s,e,t){if((0,ii.m)(e)&&(t=e,e=void 0),t)return Aa(n,s,e).pipe((0,xn.Z)(t));const[r,l]=function Iv(n){return(0,ii.m)(n.addEventListener)&&(0,ii.m)(n.removeEventListener)}(n)?BS.map(d=>o=>n[d](s,o,e)):function Lv(n){return(0,ii.m)(n.addListener)&&(0,ii.m)(n.removeListener)}(n)?Rv.map(Pb(n,s)):function cm(n){return(0,ii.m)(n.on)&&(0,ii.m)(n.off)}(n)?Hb.map(Pb(n,s)):[];if(!r&&(0,kv.z)(n))return(0,ri.z)(d=>Aa(d,s,e))((0,$i.Xf)(n));if(!r)throw new TypeError("Invalid event target");return new oi.y(d=>{const o=(...a)=>d.next(1l(o)})}function Pb(n,s){return e=>t=>n[e](s,t)}var kb=x(4408);const xo={schedule(n){let s=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:t}=xo;t&&(s=t.requestAnimationFrame,e=t.cancelAnimationFrame);const r=s(l=>{e=void 0,n(l)});return new Dt.w0(()=>e?.(r))},requestAnimationFrame(...n){const{delegate:s}=xo;return(s?.requestAnimationFrame||requestAnimationFrame)(...n)},cancelAnimationFrame(...n){const{delegate:s}=xo;return(s?.cancelAnimationFrame||cancelAnimationFrame)(...n)},delegate:void 0};var Rb=x(7565);const sp=new class Lb extends Rb.v{flush(s){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:t}=this;let r;s=s||t.shift();do{if(r=s.execute(s.state,s.delay))break}while((s=t[0])&&s.id===e&&t.shift());if(this._active=!1,r){for(;(s=t[0])&&s.id===e&&t.shift();)s.unsubscribe();throw r}}}(class dm extends kb.o{constructor(s,e){super(s,e),this.scheduler=s,this.work=e}requestAsyncId(s,e,t=0){return null!==t&&t>0?super.requestAsyncId(s,e,t):(s.actions.push(this),s._scheduled||(s._scheduled=xo.requestAnimationFrame(()=>s.flush(void 0))))}recycleAsyncId(s,e,t=0){if(null!=t&&t>0||null==t&&this.delay>0)return super.recycleAsyncId(s,e,t);s.actions.some(r=>r.id===e)||(xo.cancelAnimationFrame(e),s._scheduled=void 0)}});let Ib,VS=1;const zc={};function Bv(n){return n in zc&&(delete zc[n],!0)}const Vv={setImmediate(n){const s=VS++;return zc[s]=!0,Ib||(Ib=Promise.resolve()),Ib.then(()=>Bv(s)&&n()),s},clearImmediate(n){Bv(n)}},{setImmediate:Ob,clearImmediate:Bb}=Vv,bu={setImmediate(...n){const{delegate:s}=bu;return(s?.setImmediate||Ob)(...n)},clearImmediate(n){const{delegate:s}=bu;return(s?.clearImmediate||Bb)(n)},delegate:void 0},qc=new class Ps extends Rb.v{flush(s){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:t}=this;let r;s=s||t.shift();do{if(r=s.execute(s.state,s.delay))break}while((s=t[0])&&s.id===e&&t.shift());if(this._active=!1,r){for(;(s=t[0])&&s.id===e&&t.shift();)s.unsubscribe();throw r}}}(class um extends kb.o{constructor(s,e){super(s,e),this.scheduler=s,this.work=e}requestAsyncId(s,e,t=0){return null!==t&&t>0?super.requestAsyncId(s,e,t):(s.actions.push(this),s._scheduled||(s._scheduled=bu.setImmediate(s.flush.bind(s,void 0))))}recycleAsyncId(s,e,t=0){if(null!=t&&t>0||null==t&&this.delay>0)return super.recycleAsyncId(s,e,t);s.actions.some(r=>r.id===e)||(bu.clearImmediate(e),s._scheduled=void 0)}});var Gc=x(4986),yu=x(2805);function Cu(n,s=Gc.z){return function Fv(n){return(0,Ur.e)((s,e)=>{let t=!1,r=null,l=null,d=!1;const o=()=>{if(l?.unsubscribe(),l=null,t){t=!1;const c=r;r=null,e.next(c)}d&&e.complete()},a=()=>{l=null,d&&e.complete()};s.subscribe((0,et.x)(e,c=>{t=!0,r=c,l||(0,$i.Xf)(n(c)).subscribe(l=(0,et.x)(e,o,a))},()=>{d=!0,(!t||!l||l.closed)&&e.complete()}))})}(()=>(0,yu.H)(n,s))}class Vb{}function ks(n){return n&&"function"==typeof n.connect}class Yv extends Vb{constructor(s){super(),this._data=s}connect(){return Bt(this._data)?this._data:(0,Ae.of)(this._data)}disconnect(){}}class Uv{applyChanges(s,e,t,r,l){s.forEachOperation((d,o,a)=>{let c,u;if(null==d.previousIndex){const h=t(d,o,a);c=e.createEmbeddedView(h.templateRef,h.context,h.index),u=1}else null==a?(e.remove(o),u=3):(c=e.get(o),e.move(c,a),u=2);l&&l({context:c?.context,operation:u,record:d})})}detach(){}}class pm{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(s,e,t,r,l){s.forEachOperation((d,o,a)=>{let c,u;null==d.previousIndex?(c=this._insertView(()=>t(d,o,a),a,e,r(d)),u=c?1:0):null==a?(this._detachAndCacheView(o,e),u=3):(c=this._moveView(o,a,e,r(d)),u=2),l&&l({context:c?.context,operation:u,record:d})})}detach(){for(const s of this._viewCache)s.destroy();this._viewCache=[]}_insertView(s,e,t,r){const l=this._insertViewFromCache(e,t);if(l)return void(l.context.$implicit=r);const d=s();return t.createEmbeddedView(d.templateRef,d.context,d.index)}_detachAndCacheView(s,e){const t=e.detach(s);this._maybeCacheView(t,e)}_moveView(s,e,t,r){const l=t.get(s);return t.move(l,e),l.context.$implicit=r,l}_maybeCacheView(s,e){if(this._viewCache.lengththis._markSelected(l)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...s){this._verifyValueAssignment(s),s.forEach(t=>this._markSelected(t));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...s){this._verifyValueAssignment(s),s.forEach(t=>this._unmarkSelected(t));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...s){this._verifyValueAssignment(s);const e=this.selected,t=new Set(s);s.forEach(l=>this._markSelected(l)),e.filter(l=>!t.has(l)).forEach(l=>this._unmarkSelected(l));const r=this._hasQueuedChanges();return this._emitChangeEvent(),r}toggle(s){return this.isSelected(s)?this.deselect(s):this.select(s)}clear(s=!0){this._unmarkAll();const e=this._hasQueuedChanges();return s&&this._emitChangeEvent(),e}isSelected(s){if(this.compareWith){for(const e of this._selection)if(this.compareWith(e,s))return!0;return!1}return this._selection.has(s)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(s){this._multiple&&this.selected&&this._selected.sort(s)}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(s){this.isSelected(s)||(this._multiple||this._unmarkAll(),this.isSelected(s)||this._selection.add(s),this._emitChanges&&this._selectedToEmit.push(s))}_unmarkSelected(s){this.isSelected(s)&&(this._selection.delete(s),this._emitChanges&&this._deselectedToEmit.push(s))}_unmarkAll(){this.isEmpty()||this._selection.forEach(s=>this._unmarkSelected(s))}_verifyValueAssignment(s){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}}let fm=(()=>{class n{constructor(){this._listeners=[]}notify(e,t){for(let r of this._listeners)r(e,t)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(t=>e!==t)}}ngOnDestroy(){this._listeners=[]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const xl=new i.OlP("_ViewRepeater"),zv=["contentWrapper"],FS=["*"],mm=new i.OlP("VIRTUAL_SCROLL_STRATEGY");class gm{constructor(s,e,t){this._scrolledIndexChange=new Te.x,this.scrolledIndexChange=this._scrolledIndexChange.pipe(Ms()),this._viewport=null,this._itemSize=s,this._minBufferPx=e,this._maxBufferPx=t}attach(s){this._viewport=s,this._updateTotalContentSize(),this._updateRenderedRange()}detach(){this._scrolledIndexChange.complete(),this._viewport=null}updateItemAndBufferSize(s,e,t){this._itemSize=s,this._minBufferPx=e,this._maxBufferPx=t,this._updateTotalContentSize(),this._updateRenderedRange()}onContentScrolled(){this._updateRenderedRange()}onDataLengthChanged(){this._updateTotalContentSize(),this._updateRenderedRange()}onContentRendered(){}onRenderedOffsetChanged(){}scrollToIndex(s,e){this._viewport&&this._viewport.scrollToOffset(s*this._itemSize,e)}_updateTotalContentSize(){!this._viewport||this._viewport.setTotalContentSize(this._viewport.getDataLength()*this._itemSize)}_updateRenderedRange(){if(!this._viewport)return;const s=this._viewport.getRenderedRange(),e={start:s.start,end:s.end},t=this._viewport.getViewportSize(),r=this._viewport.getDataLength();let l=this._viewport.measureScrollOffset(),d=this._itemSize>0?l/this._itemSize:0;if(e.end>r){const a=Math.ceil(t/this._itemSize),c=Math.max(0,Math.min(d,r-a));d!=c&&(d=c,l=c*this._itemSize,e.start=Math.floor(d)),e.end=Math.max(0,Math.min(r,e.start+a))}const o=l-e.start*this._itemSize;if(o0&&(e.end=Math.min(r,e.end+c),e.start=Math.max(0,Math.floor(d-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(e),this._viewport.setRenderedContentOffset(this._itemSize*e.start),this._scrolledIndexChange.next(Math.floor(d))}}function qv(n){return n._scrollStrategy}let _m=(()=>{class n{constructor(){this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new gm(this.itemSize,this.minBufferPx,this.maxBufferPx)}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=ci(e)}get minBufferPx(){return this._minBufferPx}set minBufferPx(e){this._minBufferPx=ci(e)}get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(e){this._maxBufferPx=ci(e)}ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[i._Bn([{provide:mm,useFactory:qv,deps:[(0,i.Gpc)(()=>n)]}]),i.TTD]}),n})(),Ml=(()=>{class n{constructor(e,t,r){this._ngZone=e,this._platform=t,this._scrolled=new Te.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new oi.y(t=>{this._globalSubscription||this._addGlobalListener();const r=e>0?this._scrolled.pipe(Cu(e)).subscribe(t):this._scrolled.subscribe(t);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,Ae.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,t)=>this.deregister(t)),this._scrolled.complete()}ancestorScrolled(e,t){const r=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe((0,Ze.h)(l=>!l||r.indexOf(l)>-1))}getAncestorScrollContainers(e){const t=[];return this.scrollContainers.forEach((r,l)=>{this._scrollableContainsElement(l,e)&&t.push(l)}),t}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,t){let r=en(t),l=e.getElementRef().nativeElement;do{if(r==l)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Aa(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.R0b),i.LFG(Hi),i.LFG(w.K0,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Sl=(()=>{class n{constructor(e,t,r,l){this.elementRef=e,this.scrollDispatcher=t,this.ngZone=r,this.dir=l,this._destroyed=new Te.x,this._elementScrolled=new oi.y(d=>this.ngZone.runOutsideAngular(()=>Aa(this.elementRef.nativeElement,"scroll").pipe(Ge(this._destroyed)).subscribe(d)))}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(e){const t=this.elementRef.nativeElement,r=this.dir&&"rtl"==this.dir.value;null==e.left&&(e.left=r?e.end:e.start),null==e.right&&(e.right=r?e.start:e.end),null!=e.bottom&&(e.top=t.scrollHeight-t.clientHeight-e.bottom),r&&0!=tu()?(null!=e.left&&(e.right=t.scrollWidth-t.clientWidth-e.left),2==tu()?e.left=e.right:1==tu()&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.left=t.scrollWidth-t.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){const t=this.elementRef.nativeElement;I_()?t.scrollTo(e):(null!=e.top&&(t.scrollTop=e.top),null!=e.left&&(t.scrollLeft=e.left))}measureScrollOffset(e){const t="left",r="right",l=this.elementRef.nativeElement;if("top"==e)return l.scrollTop;if("bottom"==e)return l.scrollHeight-l.clientHeight-l.scrollTop;const d=this.dir&&"rtl"==this.dir.value;return"start"==e?e=d?r:t:"end"==e&&(e=d?t:r),d&&2==tu()?e==t?l.scrollWidth-l.clientWidth-l.scrollLeft:l.scrollLeft:d&&1==tu()?e==t?l.scrollLeft+l.scrollWidth-l.clientWidth:-l.scrollLeft:e==t?l.scrollLeft:l.scrollWidth-l.clientWidth-l.scrollLeft}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Ml),i.Y36(i.R0b),i.Y36(_i,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),n})(),va=(()=>{class n{constructor(e,t,r){this._platform=e,this._change=new Te.x,this._changeListener=l=>{this._change.next(l)},this._document=r,t.runOutsideAngular(()=>{if(e.isBrowser){const l=this._getWindow();l.addEventListener("resize",this._changeListener),l.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:t,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+t,height:r,width:t}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,t=this._getWindow(),r=e.documentElement,l=r.getBoundingClientRect();return{top:-l.top||e.body.scrollTop||t.scrollY||r.scrollTop||0,left:-l.left||e.body.scrollLeft||t.scrollX||r.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(Cu(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Hi),i.LFG(i.R0b),i.LFG(w.K0,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const $v=new i.OlP("VIRTUAL_SCROLLABLE");let wu=(()=>{class n extends Sl{constructor(e,t,r,l){super(e,t,r,l)}measureViewportSize(e){const t=this.elementRef.nativeElement;return"horizontal"===e?t.clientWidth:t.clientHeight}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Ml),i.Y36(i.R0b),i.Y36(_i,8))},n.\u0275dir=i.lG2({type:n,features:[i.qOj]}),n})();const jS=typeof requestAnimationFrame<"u"?sp:qc;let Wc=(()=>{class n extends wu{constructor(e,t,r,l,d,o,a,c){super(e,o,r,d),this.elementRef=e,this._changeDetectorRef=t,this._scrollStrategy=l,this.scrollable=c,this._detachedSubject=new Te.x,this._renderedRangeSubject=new Te.x,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new oi.y(u=>this._scrollStrategy.scrolledIndexChange.subscribe(h=>Promise.resolve().then(()=>this.ngZone.run(()=>u.next(h))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=Dt.w0.EMPTY,this._viewportChanges=a.change().subscribe(()=>{this.checkViewportSize()}),this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this)}get orientation(){return this._orientation}set orientation(e){this._orientation!==e&&(this._orientation=e,this._calculateSpacerSize())}get appendOnly(){return this._appendOnly}set appendOnly(e){this._appendOnly=Ne(e)}ngOnInit(){this.scrollable===this&&super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.scrollable.elementScrolled().pipe(Nt(null),Cu(0,jS)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()}))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(e){this.ngZone.runOutsideAngular(()=>{this._forOf=e,this._forOf.dataStream.pipe(Ge(this._detachedSubject)).subscribe(t=>{const r=t.length;r!==this._dataLength&&(this._dataLength=r,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}measureBoundingClientRectWithScrollOffset(e){return this.getElementRef().nativeElement.getBoundingClientRect()[e]}setTotalContentSize(e){this._totalContentSize!==e&&(this._totalContentSize=e,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(e){(function El(n,s){return n.start==s.start&&n.end==s.end})(this._renderedRange,e)||(this.appendOnly&&(e={start:0,end:Math.max(this._renderedRange.end,e.end)}),this._renderedRangeSubject.next(this._renderedRange=e),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(e,t="to-start"){e=this.appendOnly&&"to-start"===t?0:e;const l="horizontal"==this.orientation,d=l?"X":"Y";let a=`translate${d}(${Number((l&&this.dir&&"rtl"==this.dir.value?-1:1)*e)}px)`;this._renderedContentOffset=e,"to-end"===t&&(a+=` translate${d}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=a&&(this._renderedContentTransform=a,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(e,t="auto"){const r={behavior:t};"horizontal"===this.orientation?r.start=e:r.top=e,this.scrollable.scrollTo(r)}scrollToIndex(e,t="auto"){this._scrollStrategy.scrollToIndex(e,t)}measureScrollOffset(e){let t;return t=this.scrollable==this?r=>super.measureScrollOffset(r):r=>this.scrollable.measureScrollOffset(r),Math.max(0,t(e??("horizontal"===this.orientation?"start":"top"))-this.measureViewportOffset())}measureViewportOffset(e){let t;const r="left",l="right",d="rtl"==this.dir?.value;t="start"==e?d?l:r:"end"==e?d?r:l:e||("horizontal"===this.orientation?"left":"top");const o=this.scrollable.measureBoundingClientRectWithScrollOffset(t);return this.elementRef.nativeElement.getBoundingClientRect()[t]-o}measureRenderedContentSize(){const e=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?e.offsetWidth:e.offsetHeight}measureRangeSize(e){return this._forOf?this._forOf.measureRangeSize(e,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}_markChangeDetectionNeeded(e){e&&this._runAfterChangeDetection.push(e),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(()=>this._changeDetectorRef.markForCheck());const e=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const t of e)t()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(i.R0b),i.Y36(mm,8),i.Y36(_i,8),i.Y36(Ml),i.Y36(va),i.Y36($v,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(e,t){if(1&e&&i.Gf(zv,7),2&e){let r;i.iGM(r=i.CRH())&&(t._contentWrapper=r.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(e,t){2&e&&i.ekj("cdk-virtual-scroll-orientation-horizontal","horizontal"===t.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==t.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[i._Bn([{provide:Sl,useFactory:(s,e)=>s||e,deps:[wu,n]}]),i.qOj],ngContentSelectors:FS,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0,1),i.Hsn(2),i.qZA(),i._UZ(3,"div",2)),2&e&&(i.xp6(3),i.Udp("width",t._totalContentWidth)("height",t._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}"],encapsulation:2,changeDetection:0}),n})();function Nb(n,s,e){if(!e.getBoundingClientRect)return 0;const r=e.getBoundingClientRect();return"horizontal"===n?"start"===s?r.left:r.right:"start"===s?r.top:r.bottom}let Zv=(()=>{class n{constructor(e,t,r,l,d,o){this._viewContainerRef=e,this._template=t,this._differs=r,this._viewRepeater=l,this._viewport=d,this.viewChange=new Te.x,this._dataSourceChanges=new Te.x,this.dataStream=this._dataSourceChanges.pipe(Nt(null),function jv(){return(0,Ur.e)((n,s)=>{let e,t=!1;n.subscribe((0,et.x)(s,r=>{const l=e;e=r,t&&s.next([l,r]),t=!0}))})}(),(0,pi.w)(([a,c])=>this._changeDataSource(a,c)),Xt(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new Te.x,this.dataStream.subscribe(a=>{this._data=a,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe(Ge(this._destroyed)).subscribe(a=>{this._renderedRange=a,this.viewChange.observers.length&&o.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(e){this._cdkVirtualForOf=e,ks(e)?this._dataSourceChanges.next(e):this._dataSourceChanges.next(new Yv(Bt(e)?e:Array.from(e||[])))}get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(e){this._needsUpdate=!0,this._cdkVirtualForTrackBy=e?(t,r)=>e(t+(this._renderedRange?this._renderedRange.start:0),r):void 0}set cdkVirtualForTemplate(e){e&&(this._needsUpdate=!0,this._template=e)}get cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set cdkVirtualForTemplateCacheSize(e){this._viewRepeater.viewCacheSize=ci(e)}measureRangeSize(e,t){if(e.start>=e.end)return 0;const r=e.start-this._renderedRange.start,l=e.end-e.start;let d,o;for(let a=0;a-1;a--){const c=this._viewContainerRef.get(a+r);if(c&&c.rootNodes.length){o=c.rootNodes[c.rootNodes.length-1];break}}return d&&o?Nb(t,"end",o)-Nb(t,"start",d):0}ngDoCheck(){if(this._differ&&this._needsUpdate){const e=this._differ.diff(this._renderedItems);e?this._applyChanges(e):this._updateContext(),this._needsUpdate=!1}}ngOnDestroy(){this._viewport.detach(),this._dataSourceChanges.next(void 0),this._dataSourceChanges.complete(),this.viewChange.complete(),this._destroyed.next(),this._destroyed.complete(),this._viewRepeater.detach()}_onRenderedDataChange(){!this._renderedRange||(this._renderedItems=this._data.slice(this._renderedRange.start,this._renderedRange.end),this._differ||(this._differ=this._differs.find(this._renderedItems).create((e,t)=>this.cdkVirtualForTrackBy?this.cdkVirtualForTrackBy(e,t):t)),this._needsUpdate=!0)}_changeDataSource(e,t){return e&&e.disconnect(this),this._needsUpdate=!0,t?t.connect(this):(0,Ae.of)()}_updateContext(){const e=this._data.length;let t=this._viewContainerRef.length;for(;t--;){const r=this._viewContainerRef.get(t);r.context.index=this._renderedRange.start+t,r.context.count=e,this._updateComputedContextProperties(r.context),r.detectChanges()}}_applyChanges(e){this._viewRepeater.applyChanges(e,this._viewContainerRef,(l,d,o)=>this._getEmbeddedViewArgs(l,o),l=>l.item),e.forEachIdentityChange(l=>{this._viewContainerRef.get(l.currentIndex).context.$implicit=l.item});const t=this._data.length;let r=this._viewContainerRef.length;for(;r--;){const l=this._viewContainerRef.get(r);l.context.index=this._renderedRange.start+r,l.context.count=t,this._updateComputedContextProperties(l.context)}}_updateComputedContextProperties(e){e.first=0===e.index,e.last=e.index===e.count-1,e.even=e.index%2==0,e.odd=!e.even}_getEmbeddedViewArgs(e,t){return{templateRef:this._template,context:{$implicit:e.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:t}}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.s_b),i.Y36(i.Rgc),i.Y36(i.ZZ4),i.Y36(xl),i.Y36(Wc,4),i.Y36(i.R0b))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},features:[i._Bn([{provide:xl,useClass:pm}])]}),n})(),wn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),rs=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[Yc,wn,Yc,wn]}),n})();class Mo{attach(s){return this._attachedHost=s,s.attach(this)}detach(){let s=this._attachedHost;null!=s&&(this._attachedHost=null,s.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(s){this._attachedHost=s}}class xa extends Mo{constructor(s,e,t,r){super(),this.component=s,this.viewContainerRef=e,this.injector=t,this.componentFactoryResolver=r}}class Hr extends Mo{constructor(s,e,t,r){super(),this.templateRef=s,this.viewContainerRef=e,this.context=t,this.injector=r}get origin(){return this.templateRef.elementRef}attach(s,e=this.context){return this.context=e,super.attach(s)}detach(){return this.context=void 0,super.detach()}}class Zc extends Mo{constructor(s){super(),this.element=s instanceof i.SBq?s.nativeElement:s}}class So{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(s){return s instanceof xa?(this._attachedPortal=s,this.attachComponentPortal(s)):s instanceof Hr?(this._attachedPortal=s,this.attachTemplatePortal(s)):this.attachDomPortal&&s instanceof Zc?(this._attachedPortal=s,this.attachDomPortal(s)):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(s){this._disposeFn=s}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class Jc extends So{constructor(s,e,t,r,l){super(),this.outletElement=s,this._componentFactoryResolver=e,this._appRef=t,this._defaultInjector=r,this.attachDomPortal=d=>{const o=d.element,a=this._document.createComment("dom-portal");o.parentNode.insertBefore(a,o),this.outletElement.appendChild(o),this._attachedPortal=d,super.setDisposeFn(()=>{a.parentNode&&a.parentNode.replaceChild(o,a)})},this._document=l}attachComponentPortal(s){const t=(s.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(s.component);let r;return s.viewContainerRef?(r=s.viewContainerRef.createComponent(t,s.viewContainerRef.length,s.injector||s.viewContainerRef.injector),this.setDisposeFn(()=>r.destroy())):(r=t.create(s.injector||this._defaultInjector||i.zs3.NULL),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=s,r}attachTemplatePortal(s){let e=s.viewContainerRef,t=e.createEmbeddedView(s.templateRef,s.context,{injector:s.injector});return t.rootNodes.forEach(r=>this.outletElement.appendChild(r)),t.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(t);-1!==r&&e.remove(r)}),this._attachedPortal=s,t}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(s){return s.hostView.rootNodes[0]}}let Yb=(()=>{class n extends Hr{constructor(e,t){super(e,t)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc),i.Y36(i.s_b))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[i.qOj]}),n})(),Ma=(()=>{class n extends So{constructor(e,t,r){super(),this._componentFactoryResolver=e,this._viewContainerRef=t,this._isInitialized=!1,this.attached=new i.vpe,this.attachDomPortal=l=>{const d=l.element,o=this._document.createComment("dom-portal");l.setAttachedHost(this),d.parentNode.insertBefore(o,d),this._getRootNode().appendChild(d),this._attachedPortal=l,super.setDisposeFn(()=>{o.parentNode&&o.parentNode.replaceChild(d,o)})},this._document=r}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(e){e.setAttachedHost(this);const t=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,l=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),d=t.createComponent(l,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(d.hostView.rootNodes[0]),super.setDisposeFn(()=>d.destroy()),this._attachedPortal=e,this._attachedRef=d,this.attached.emit(d),d}attachTemplatePortal(e){e.setAttachedHost(this);const t=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=t,this.attached.emit(t),t}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i._Vd),i.Y36(i.s_b),i.Y36(w.K0))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[i.qOj]}),n})(),Rs=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();var xi=x(6451);const ym=I_();class Ub{constructor(s,e){this._viewportRuler=s,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const s=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=s.style.left||"",this._previousHTMLStyles.top=s.style.top||"",s.style.left=un(-this._previousScrollPosition.left),s.style.top=un(-this._previousScrollPosition.top),s.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const s=this._document.documentElement,t=s.style,r=this._document.body.style,l=t.scrollBehavior||"",d=r.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,s.classList.remove("cdk-global-scrollblock"),ym&&(t.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),ym&&(t.scrollBehavior=l,r.scrollBehavior=d)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width}}class Xv{constructor(s,e,t,r){this._scrollDispatcher=s,this._ngZone=e,this._viewportRuler=t,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(s){this._overlayRef=s}enable(){if(this._scrollSubscription)return;const s=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=s.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=s.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class zb{enable(){}disable(){}attach(){}}function op(n,s){return s.some(e=>n.bottome.bottom||n.righte.right)}function qb(n,s){return s.some(e=>n.tope.bottom||n.lefte.right)}class Gb{constructor(s,e,t,r){this._scrollDispatcher=s,this._viewportRuler=e,this._ngZone=t,this._config=r,this._scrollSubscription=null}attach(s){this._overlayRef=s}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 e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:t,height:r}=this._viewportRuler.getViewportSize();op(e,[{width:t,height:r,bottom:r,right:t,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 Cm=(()=>{class n{constructor(e,t,r,l){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=r,this.noop=()=>new zb,this.close=d=>new Xv(this._scrollDispatcher,this._ngZone,this._viewportRuler,d),this.block=()=>new Ub(this._viewportRuler,this._document),this.reposition=d=>new Gb(this._scrollDispatcher,this._viewportRuler,this._ngZone,d),this._document=l}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Ml),i.LFG(va),i.LFG(i.R0b),i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class Dl{constructor(s){if(this.scrollStrategy=new zb,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,s){const e=Object.keys(s);for(const t of e)void 0!==s[t]&&(this[t]=s[t])}}}class lp{constructor(s,e){this.connectionPair=s,this.scrollableViewProperties=e}}let xu=(()=>{class n{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const t=this._attachedOverlays.indexOf(e);t>-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this.detach()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),cp=(()=>{class n extends xu{constructor(e,t){super(e),this._ngZone=t,this._keydownListener=r=>{const l=this._attachedOverlays;for(let d=l.length-1;d>-1;d--)if(l[d]._keydownEvents.observers.length>0){const o=l[d]._keydownEvents;this._ngZone?this._ngZone.run(()=>o.next(r)):o.next(r);break}}}add(e){super.add(e),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0),i.LFG(i.R0b,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Am=(()=>{class n extends xu{constructor(e,t,r){super(e),this._platform=t,this._ngZone=r,this._cursorStyleIsSet=!1,this._pointerDownListener=l=>{this._pointerDownEventTarget=wa(l)},this._clickListener=l=>{const d=wa(l),o="click"===l.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:d;this._pointerDownEventTarget=null;const a=this._attachedOverlays.slice();for(let c=a.length-1;c>-1;c--){const u=a[c];if(u._outsidePointerEvents.observers.length<1||!u.hasAttached())continue;if(u.overlayElement.contains(d)||u.overlayElement.contains(o))break;const h=u._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>h.next(l)):h.next(l)}}}add(e){if(super.add(e),!this._isAttached){const t=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(t)):this._addEventListeners(t),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0),i.LFG(Hi),i.LFG(i.R0b,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Mu=(()=>{class n{constructor(e,t){this._platform=t,this._document=e}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||iu()){const r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let l=0;lthis._backdropClick.next(h),this._backdropTransitionendHandler=h=>{this._disposeBackdrop(h.target)},this._keydownEvents=new Te.x,this._outsidePointerEvents=new Te.x,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(s){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const e=this._portalOutlet.attach(s);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,it.q)(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),"function"==typeof e?.onDestroy&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),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 s=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),s}dispose(){const s=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),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?.remove(),this._previousHostParent=this._pane=this._host=null,s&&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(s){s!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=s,this.hasAttached()&&(s.attach(this),this.updatePosition()))}updateSize(s){this._config={...this._config,...s},this._updateElementSize()}setDirection(s){this._config={...this._config,direction:s},this._updateElementDirection()}addPanelClass(s){this._pane&&this._toggleClasses(this._pane,s,!0)}removePanelClass(s){this._pane&&this._toggleClasses(this._pane,s,!1)}getDirection(){const s=this._config.direction;return s?"string"==typeof s?s:s.value:"ltr"}updateScrollStrategy(s){s!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=s,this.hasAttached()&&(s.attach(this),s.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const s=this._pane.style;s.width=un(this._config.width),s.height=un(this._config.height),s.minWidth=un(this._config.minWidth),s.minHeight=un(this._config.minHeight),s.maxWidth=un(this._config.maxWidth),s.maxHeight=un(this._config.maxHeight)}_togglePointerEvents(s){this._pane.style.pointerEvents=s?"":"none"}_attachBackdrop(){const s="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),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),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(s)})}):this._backdropElement.classList.add(s)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const s=this._backdropElement;if(s){if(this._animationsDisabled)return void this._disposeBackdrop(s);s.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{s.addEventListener("transitionend",this._backdropTransitionendHandler)}),s.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(s)},500))}}_toggleClasses(s,e,t){const r=$h(e||[]).filter(l=>!!l);r.length&&(t?s.classList.add(...r):s.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const s=this._ngZone.onStable.pipe(Ge((0,xi.T)(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._host.remove()),s.unsubscribe())})})}_disposeScrollStrategy(){const s=this._scrollStrategy;s&&(s.disable(),s.detach&&s.detach())}_disposeBackdrop(s){s&&(s.removeEventListener("click",this._backdropClickHandler),s.removeEventListener("transitionend",this._backdropTransitionendHandler),s.remove(),this._backdropElement===s&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const vm="cdk-overlay-connected-position-bounding-box",$b=/([A-Za-z%]+)$/;class dp{constructor(s,e,t,r,l){this._viewportRuler=e,this._document=t,this._platform=r,this._overlayContainer=l,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 Te.x,this._resizeSubscription=Dt.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(s)}get positions(){return this._preferredPositions}attach(s){this._validatePositions(),s.hostElement.classList.add(vm),this._overlayRef=s,this._boundingBox=s.hostElement,this._pane=s.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(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const s=this._originRect,e=this._overlayRect,t=this._viewportRect,r=this._containerRect,l=[];let d;for(let o of this._preferredPositions){let a=this._getOriginPoint(s,r,o),c=this._getOverlayPoint(a,e,o),u=this._getOverlayFit(c,e,t,o);if(u.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(o,a);this._canFitWithFlexibleDimensions(u,c,t)?l.push({position:o,origin:a,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(a,o)}):(!d||d.overlayFit.visibleAreaa&&(a=u,o=c)}return this._isPushed=!1,void this._applyPosition(o.position,o.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(d.position,d.originPoint);this._applyPosition(d.position,d.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Ls(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(vm),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const s=this._lastPosition;if(s){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._getOriginPoint(this._originRect,this._containerRect,s);this._applyPosition(s,e)}else this.apply()}withScrollableContainers(s){return this._scrollables=s,this}withPositions(s){return this._preferredPositions=s,-1===s.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(s){return this._viewportMargin=s,this}withFlexibleDimensions(s=!0){return this._hasFlexibleDimensions=s,this}withGrowAfterOpen(s=!0){return this._growAfterOpen=s,this}withPush(s=!0){return this._canPush=s,this}withLockedPosition(s=!0){return this._positionLocked=s,this}setOrigin(s){return this._origin=s,this}withDefaultOffsetX(s){return this._offsetX=s,this}withDefaultOffsetY(s){return this._offsetY=s,this}withTransformOriginOn(s){return this._transformOriginSelector=s,this}_getOriginPoint(s,e,t){let r,l;if("center"==t.originX)r=s.left+s.width/2;else{const d=this._isRtl()?s.right:s.left,o=this._isRtl()?s.left:s.right;r="start"==t.originX?d:o}return e.left<0&&(r-=e.left),l="center"==t.originY?s.top+s.height/2:"top"==t.originY?s.top:s.bottom,e.top<0&&(l-=e.top),{x:r,y:l}}_getOverlayPoint(s,e,t){let r,l;return r="center"==t.overlayX?-e.width/2:"start"===t.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,l="center"==t.overlayY?-e.height/2:"top"==t.overlayY?0:-e.height,{x:s.x+r,y:s.y+l}}_getOverlayFit(s,e,t,r){const l=Tm(e);let{x:d,y:o}=s,a=this._getOffset(r,"x"),c=this._getOffset(r,"y");a&&(d+=a),c&&(o+=c);let f=0-o,b=o+l.height-t.height,V=this._subtractOverflows(l.width,0-d,d+l.width-t.width),X=this._subtractOverflows(l.height,f,b),ue=V*X;return{visibleArea:ue,isCompletelyWithinViewport:l.width*l.height===ue,fitsInViewportVertically:X===l.height,fitsInViewportHorizontally:V==l.width}}_canFitWithFlexibleDimensions(s,e,t){if(this._hasFlexibleDimensions){const r=t.bottom-e.y,l=t.right-e.x,d=Zb(this._overlayRef.getConfig().minHeight),o=Zb(this._overlayRef.getConfig().minWidth),c=s.fitsInViewportHorizontally||null!=o&&o<=l;return(s.fitsInViewportVertically||null!=d&&d<=r)&&c}return!1}_pushOverlayOnScreen(s,e,t){if(this._previousPushAmount&&this._positionLocked)return{x:s.x+this._previousPushAmount.x,y:s.y+this._previousPushAmount.y};const r=Tm(e),l=this._viewportRect,d=Math.max(s.x+r.width-l.width,0),o=Math.max(s.y+r.height-l.height,0),a=Math.max(l.top-t.top-s.y,0),c=Math.max(l.left-t.left-s.x,0);let u=0,h=0;return u=r.width<=l.width?c||-d:s.xV&&!this._isInitialRender&&!this._growAfterOpen&&(d=s.y-V/2)}if("end"===e.overlayX&&!r||"start"===e.overlayX&&r)f=t.width-s.x+this._viewportMargin,u=s.x-this._viewportMargin;else if("start"===e.overlayX&&!r||"end"===e.overlayX&&r)h=s.x,u=t.right-s.x;else{const b=Math.min(t.right-s.x+t.left,s.x),V=this._lastBoundingBoxSize.width;u=2*b,h=s.x-b,u>V&&!this._isInitialRender&&!this._growAfterOpen&&(h=s.x-V/2)}return{top:d,left:h,bottom:o,right:f,width:u,height:l}}_setBoundingBoxStyles(s,e){const t=this._calculateBoundingBoxRect(s,e);!this._isInitialRender&&!this._growAfterOpen&&(t.height=Math.min(t.height,this._lastBoundingBoxSize.height),t.width=Math.min(t.width,this._lastBoundingBoxSize.width));const r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{const l=this._overlayRef.getConfig().maxHeight,d=this._overlayRef.getConfig().maxWidth;r.height=un(t.height),r.top=un(t.top),r.bottom=un(t.bottom),r.width=un(t.width),r.left=un(t.left),r.right=un(t.right),r.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",r.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",l&&(r.maxHeight=un(l)),d&&(r.maxWidth=un(d))}this._lastBoundingBoxSize=t,Ls(this._boundingBox.style,r)}_resetBoundingBoxStyles(){Ls(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Ls(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(s,e){const t={},r=this._hasExactPosition(),l=this._hasFlexibleDimensions,d=this._overlayRef.getConfig();if(r){const u=this._viewportRuler.getViewportScrollPosition();Ls(t,this._getExactOverlayY(e,s,u)),Ls(t,this._getExactOverlayX(e,s,u))}else t.position="static";let o="",a=this._getOffset(e,"x"),c=this._getOffset(e,"y");a&&(o+=`translateX(${a}px) `),c&&(o+=`translateY(${c}px)`),t.transform=o.trim(),d.maxHeight&&(r?t.maxHeight=un(d.maxHeight):l&&(t.maxHeight="")),d.maxWidth&&(r?t.maxWidth=un(d.maxWidth):l&&(t.maxWidth="")),Ls(this._pane.style,t)}_getExactOverlayY(s,e,t){let r={top:"",bottom:""},l=this._getOverlayPoint(e,this._overlayRect,s);return this._isPushed&&(l=this._pushOverlayOnScreen(l,this._overlayRect,t)),"bottom"===s.overlayY?r.bottom=this._document.documentElement.clientHeight-(l.y+this._overlayRect.height)+"px":r.top=un(l.y),r}_getExactOverlayX(s,e,t){let d,r={left:"",right:""},l=this._getOverlayPoint(e,this._overlayRect,s);return this._isPushed&&(l=this._pushOverlayOnScreen(l,this._overlayRect,t)),d=this._isRtl()?"end"===s.overlayX?"left":"right":"end"===s.overlayX?"right":"left","right"===d?r.right=this._document.documentElement.clientWidth-(l.x+this._overlayRect.width)+"px":r.left=un(l.x),r}_getScrollVisibility(){const s=this._getOriginRect(),e=this._pane.getBoundingClientRect(),t=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:qb(s,t),isOriginOutsideView:op(s,t),isOverlayClipped:qb(e,t),isOverlayOutsideView:op(e,t)}}_subtractOverflows(s,...e){return e.reduce((t,r)=>t-Math.max(r,0),s)}_getNarrowedViewportRect(){const s=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,t=this._viewportRuler.getViewportScrollPosition();return{top:t.top+this._viewportMargin,left:t.left+this._viewportMargin,right:t.left+s-this._viewportMargin,bottom:t.top+e-this._viewportMargin,width:s-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(s,e){return"x"===e?s.offsetX??this._offsetX:s.offsetY??this._offsetY}_validatePositions(){}_addPanelClasses(s){this._pane&&$h(s).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(s=>{this._pane.classList.remove(s)}),this._appliedPanelClasses=[])}_getOriginRect(){const s=this._origin;if(s instanceof i.SBq)return s.nativeElement.getBoundingClientRect();if(s instanceof Element)return s.getBoundingClientRect();const e=s.width||0,t=s.height||0;return{top:s.y,bottom:s.y+t,left:s.x,right:s.x+e,height:t,width:e}}}function Ls(n,s){for(let e in s)s.hasOwnProperty(e)&&(n[e]=s[e]);return n}function Zb(n){if("number"!=typeof n&&null!=n){const[s,e]=n.split($b);return e&&"px"!==e?null:parseFloat(s)}return n||null}function Tm(n){return{top:Math.floor(n.top),right:Math.floor(n.right),bottom:Math.floor(n.bottom),left:Math.floor(n.left),width:Math.floor(n.width),height:Math.floor(n.height)}}const xm="cdk-global-overlay-wrapper";class iT{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(s){const e=s.getConfig();this._overlayRef=s,this._width&&!e.width&&s.updateSize({width:this._width}),this._height&&!e.height&&s.updateSize({height:this._height}),s.hostElement.classList.add(xm),this._isDisposed=!1}top(s=""){return this._bottomOffset="",this._topOffset=s,this._alignItems="flex-start",this}left(s=""){return this._xOffset=s,this._xPosition="left",this}bottom(s=""){return this._topOffset="",this._bottomOffset=s,this._alignItems="flex-end",this}right(s=""){return this._xOffset=s,this._xPosition="right",this}start(s=""){return this._xOffset=s,this._xPosition="start",this}end(s=""){return this._xOffset=s,this._xPosition="end",this}width(s=""){return this._overlayRef?this._overlayRef.updateSize({width:s}):this._width=s,this}height(s=""){return this._overlayRef?this._overlayRef.updateSize({height:s}):this._height=s,this}centerHorizontally(s=""){return this.left(s),this._xPosition="center",this}centerVertically(s=""){return this.top(s),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const s=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,t=this._overlayRef.getConfig(),{width:r,height:l,maxWidth:d,maxHeight:o}=t,a=!("100%"!==r&&"100vw"!==r||d&&"100%"!==d&&"100vw"!==d),c=!("100%"!==l&&"100vh"!==l||o&&"100%"!==o&&"100vh"!==o),u=this._xPosition,h=this._xOffset,f="rtl"===this._overlayRef.getConfig().direction;let b="",V="",X="";a?X="flex-start":"center"===u?(X="center",f?V=h:b=h):f?"left"===u||"end"===u?(X="flex-end",b=h):("right"===u||"start"===u)&&(X="flex-start",V=h):"left"===u||"start"===u?(X="flex-start",b=h):("right"===u||"end"===u)&&(X="flex-end",V=h),s.position=this._cssPosition,s.marginLeft=a?"0":b,s.marginTop=c?"0":this._topOffset,s.marginBottom=this._bottomOffset,s.marginRight=a?"0":V,e.justifyContent=X,e.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const s=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,t=e.style;e.classList.remove(xm),t.justifyContent=t.alignItems=s.marginTop=s.marginBottom=s.marginLeft=s.marginRight=s.position="",this._overlayRef=null,this._isDisposed=!0}}let Jb=(()=>{class n{constructor(e,t,r,l){this._viewportRuler=e,this._document=t,this._platform=r,this._overlayContainer=l}global(){return new iT}flexibleConnectedTo(e){return new dp(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(va),i.LFG(w.K0),i.LFG(Hi),i.LFG(Mu))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Qb=0,Vn=(()=>{class n{constructor(e,t,r,l,d,o,a,c,u,h,f,b){this.scrollStrategies=e,this._overlayContainer=t,this._componentFactoryResolver=r,this._positionBuilder=l,this._keyboardDispatcher=d,this._injector=o,this._ngZone=a,this._document=c,this._directionality=u,this._location=h,this._outsideClickDispatcher=f,this._animationsModuleType=b}create(e){const t=this._createHostElement(),r=this._createPaneElement(t),l=this._createPortalOutlet(r),d=new Dl(e);return d.direction=d.direction||this._directionality.value,new Hl(l,t,r,d,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(e){const t=this._document.createElement("div");return t.id="cdk-overlay-"+Qb++,t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(i.z2F)),new Jc(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Cm),i.LFG(Mu),i.LFG(i._Vd),i.LFG(Jb),i.LFG(cp),i.LFG(i.zs3),i.LFG(i.R0b),i.LFG(w.K0),i.LFG(_i),i.LFG(w.Ye),i.LFG(Am),i.LFG(i.QbO,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const Mm=[{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"}],Sm=new i.OlP("cdk-connected-overlay-scroll-strategy");let Em=(()=>{class n{constructor(e){this.elementRef=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),n})(),Dm=(()=>{class n{constructor(e,t,r,l,d){this._overlay=e,this._dir=d,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=Dt.w0.EMPTY,this._attachSubscription=Dt.w0.EMPTY,this._detachSubscription=Dt.w0.EMPTY,this._positionSubscription=Dt.w0.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new i.vpe,this.positionChange=new i.vpe,this.attach=new i.vpe,this.detach=new i.vpe,this.overlayKeydown=new i.vpe,this.overlayOutsideClick=new i.vpe,this._templatePortal=new Hr(t,r),this._scrollStrategyFactory=l,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=Ne(e)}get lockPosition(){return this._lockPosition}set lockPosition(e){this._lockPosition=Ne(e)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(e){this._flexibleDimensions=Ne(e)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(e){this._growAfterOpen=Ne(e)}get push(){return this._push}set push(e){this._push=Ne(e)}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(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=Mm);const e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(t=>{this.overlayKeydown.next(t),27===t.keyCode&&!this.disableClose&&!_n(t)&&(t.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(t=>{this.overlayOutsideClick.next(t)})}_buildConfig(){const e=this._position=this.positionStrategy||this._createPositionStrategy(),t=new Dl({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(t.width=this.width),(this.height||0===this.height)&&(t.height=this.height),(this.minWidth||0===this.minWidth)&&(t.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(t.minHeight=this.minHeight),this.backdropClass&&(t.backdropClass=this.backdropClass),this.panelClass&&(t.panelClass=this.panelClass),t}_updatePositionStrategy(e){const t=this.positions.map(r=>({originX:r.originX,originY:r.originY,overlayX:r.overlayX,overlayY:r.overlayY,offsetX:r.offsetX||this.offsetX,offsetY:r.offsetY||this.offsetY,panelClass:r.panelClass||void 0}));return e.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(t).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const e=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(e),e}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof Em?this.origin.elementRef:this.origin}_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(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(xd(()=>this.positionChange.observers.length>0)).subscribe(e=>{this.positionChange.emit(e),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Vn),i.Y36(i.Rgc),i.Y36(i.s_b),i.Y36(Sm),i.Y36(_i,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[i.TTD]}),n})();const Xb={provide:Sm,deps:[Vn],useFactory:function Kb(n){return()=>n.scrollStrategies.reposition()}};let Pl=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[Vn,Xb],imports:[Yc,Rs,rs,rs]}),n})();class Hm{}const Is="*";function di(n,s){return{type:7,name:n,definitions:s,options:{}}}function At(n,s=null){return{type:4,styles:s,timings:n}}function up(n,s=null){return{type:3,steps:n,options:s}}function pn(n,s=null){return{type:2,steps:n,options:s}}function Re(n){return{type:6,styles:n,offset:null}}function Rt(n,s,e){return{type:0,name:n,styles:s,options:e}}function kl(n){return{type:5,steps:n}}function Tt(n,s,e=null){return{type:1,expr:n,animation:s,options:e}}function Su(n=null){return{type:9,options:n}}function An(n,s,e=null){return{type:11,selector:n,animation:s,options:e}}function ey(n){Promise.resolve(null).then(n)}class Qc{constructor(s=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=s+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(s=>s()),this._onDoneFns=[])}onStart(s){this._originalOnStartFns.push(s),this._onStartFns.push(s)}onDone(s){this._originalOnDoneFns.push(s),this._onDoneFns.push(s)}onDestroy(s){this._onDestroyFns.push(s)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){ey(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(s=>s()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(s=>s()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(s){this._position=this.totalTime?s*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(s){const e="start"==s?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class ty{constructor(s){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=s;let e=0,t=0,r=0;const l=this.players.length;0==l?ey(()=>this._onFinish()):this.players.forEach(d=>{d.onDone(()=>{++e==l&&this._onFinish()}),d.onDestroy(()=>{++t==l&&this._onDestroy()}),d.onStart(()=>{++r==l&&this._onStart()})}),this.totalTime=this.players.reduce((d,o)=>Math.max(d,o.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(s=>s()),this._onDoneFns=[])}init(){this.players.forEach(s=>s.init())}onStart(s){this._onStartFns.push(s)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(s=>s()),this._onStartFns=[])}onDone(s){this._onDoneFns.push(s)}onDestroy(s){this._onDestroyFns.push(s)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(s=>s.play())}pause(){this.players.forEach(s=>s.pause())}restart(){this.players.forEach(s=>s.restart())}finish(){this._onFinish(),this.players.forEach(s=>s.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(s=>s.destroy()),this._onDestroyFns.forEach(s=>s()),this._onDestroyFns=[])}reset(){this.players.forEach(s=>s.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(s){const e=s*this.totalTime;this.players.forEach(t=>{const r=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(r)})}getPosition(){const s=this.players.reduce((e,t)=>null===e||t.totalTime>e.totalTime?t:e,null);return null!=s?s.getPosition():0}beforeDestroy(){this.players.forEach(s=>{s.beforeDestroy&&s.beforeDestroy()})}triggerCallback(s){const e="start"==s?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}const ZS=["connectionContainer"],Pm=["inputContainer"],km=["label"];function as(n,s){1&n&&(i.ynx(0),i.TgZ(1,"div",14),i._UZ(2,"div",15)(3,"div",16)(4,"div",17),i.qZA(),i.TgZ(5,"div",18),i._UZ(6,"div",15)(7,"div",16)(8,"div",17),i.qZA(),i.BQk())}function aT(n,s){if(1&n){const e=i.EpF();i.TgZ(0,"div",19),i.NdJ("cdkObserveContent",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.updateOutlineGap())}),i.Hsn(1,1),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)}}function iy(n,s){if(1&n&&(i.ynx(0),i.Hsn(1,2),i.TgZ(2,"span"),i._uU(3),i.qZA(),i.BQk()),2&n){const e=i.oxw(2);i.xp6(3),i.Oqu(e._control.placeholder)}}function ss(n,s){1&n&&i.Hsn(0,3,["*ngSwitchCase","true"])}function Sa(n,s){1&n&&(i.TgZ(0,"span",23),i._uU(1," *"),i.qZA())}function Ea(n,s){if(1&n){const e=i.EpF();i.TgZ(0,"label",20,21),i.NdJ("cdkObserveContent",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.updateOutlineGap())}),i.YNc(2,iy,4,1,"ng-container",12),i.YNc(3,ss,1,0,"ng-content",12),i.YNc(4,Sa,2,0,"span",22),i.qZA()}if(2&n){const e=i.oxw();i.ekj("mat-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-form-field-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-accent","accent"==e.color)("mat-warn","warn"==e.color),i.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),i.uIk("for",e._control.id)("aria-owns",e._control.id),i.xp6(2),i.Q6J("ngSwitchCase",!1),i.xp6(1),i.Q6J("ngSwitchCase",!0),i.xp6(1),i.Q6J("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function ny(n,s){1&n&&(i.TgZ(0,"div",24),i.Hsn(1,4),i.qZA())}function ry(n,s){if(1&n&&(i.TgZ(0,"div",25),i._UZ(1,"span",26),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.ekj("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function sT(n,s){if(1&n&&(i.TgZ(0,"div"),i.Hsn(1,5),i.qZA()),2&n){const e=i.oxw();i.Q6J("@transitionMessages",e._subscriptAnimationState)}}function oT(n,s){if(1&n&&(i.TgZ(0,"div",30),i._uU(1),i.qZA()),2&n){const e=i.oxw(2);i.Q6J("id",e._hintLabelId),i.xp6(1),i.Oqu(e.hintLabel)}}function lT(n,s){if(1&n&&(i.TgZ(0,"div",27),i.YNc(1,oT,2,2,"div",28),i.Hsn(2,6),i._UZ(3,"div",29),i.Hsn(4,7),i.qZA()),2&n){const e=i.oxw();i.Q6J("@transitionMessages",e._subscriptAnimationState),i.xp6(1),i.Q6J("ngIf",e.hintLabel)}}const cT=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Rm=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let Eu=0;const ay=new i.OlP("MatError");let Da=(()=>{class n{constructor(e,t){this.id="mat-error-"+Eu++,e||t.nativeElement.setAttribute("aria-live","polite")}}return n.\u0275fac=function(e){return new(e||n)(i.$8M("aria-live"),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(e,t){2&e&&i.uIk("id",t.id)},inputs:{id:"id"},features:[i._Bn([{provide:ay,useExisting:n}])]}),n})();const dT={transitionMessages:di("transitionMessages",[Rt("enter",Re({opacity:1,transform:"translateY(0%)"})),Tt("void => enter",[Re({opacity:0,transform:"translateY(-5px)"}),At("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Kc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n}),n})(),sy=0;const Im=new i.OlP("MatHint");let Om=(()=>{class n{constructor(){this.align="start",this.id="mat-hint-"+sy++}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(e,t){2&e&&(i.uIk("id",t.id)("align",null),i.ekj("mat-form-field-hint-end","end"===t.align))},inputs:{align:"align",id:"id"},features:[i._Bn([{provide:Im,useExisting:n}])]}),n})(),Pr=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-label"]]}),n})(),Bm=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-placeholder"]]}),n})();const oy=new i.OlP("MatPrefix"),pp=new i.OlP("MatSuffix");let fp=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","matSuffix",""]],features:[i._Bn([{provide:pp,useExisting:n}])]}),n})(),Vm=0;const cy=Mr(class{constructor(n){this._elementRef=n}},"primary"),pT=new i.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),mp=new i.OlP("MatFormField");let nr=(()=>{class n extends cy{constructor(e,t,r,l,d,o,a){super(e),this._changeDetectorRef=t,this._dir=r,this._defaults=l,this._platform=d,this._ngZone=o,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new Te.x,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+Vm++,this._labelId="mat-form-field-label-"+Vm++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==a,this.appearance=l?.appearance||"legacy",l&&(this._hideRequiredMarker=Boolean(l.hideRequiredMarker),l.color&&(this.color=this.defaultColor=l.color))}get appearance(){return this._appearance}set appearance(e){const t=this._appearance;this._appearance=e||this._defaults?.appearance||"legacy","outline"===this._appearance&&t!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=Ne(e)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(e){this._explicitFormFieldControl=e}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${e.controlType}`),e.stateChanges.pipe(Nt(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(Ge(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Ge(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,xi.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Nt(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Nt(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Ge(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(e){const t=this._control?this._control.ngControl:null;return t&&t[e]}_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,Aa(this._label.nativeElement,"transitionend").pipe((0,it.q)(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 e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const t=this._hintChildren?this._hintChildren.find(l=>"start"===l.align):null,r=this._hintChildren?this._hintChildren.find(l=>"end"===l.align):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),r&&e.push(r.id)}else this._errorChildren&&e.push(...this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(e)}}_validateControlChild(){}updateOutlineGap(){const e=this._label?this._label.nativeElement:null,t=this._connectionContainerRef.nativeElement,r=".mat-form-field-outline-start",l=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!e||!e.children.length||!e.textContent.trim()){const u=t.querySelectorAll(`${r}, ${l}`);for(let h=0;h0?.75*V+10:0}for(let u=0;u{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[w.ez,ct,vt,ct]}),n})(),dy=(()=>{class n{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,t){this._renderer.setProperty(this._elementRef.nativeElement,e,t)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Qsj),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n}),n})(),Ll=(()=>{class n extends dy{}return n.\u0275fac=function(){let s;return function(t){return(s||(s=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,features:[i.qOj]}),n})();const rr=new i.OlP("NgValueAccessor"),mT={provide:rr,useExisting:(0,i.Gpc)(()=>Nn),multi:!0},_T=new i.OlP("CompositionEventMode");let Nn=(()=>{class n extends dy{constructor(e,t,r){super(e,t),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function gT(){const n=(0,w.q)()?(0,w.q)().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Qsj),i.Y36(i.SBq),i.Y36(_T,8))},n.\u0275dir=i.lG2({type:n,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(e,t){1&e&&i.NdJ("input",function(l){return t._handleInput(l.target.value)})("blur",function(){return t.onTouched()})("compositionstart",function(){return t._compositionStart()})("compositionend",function(l){return t._compositionEnd(l.target.value)})},features:[i._Bn([mT]),i.qOj]}),n})();function Eo(n){return null==n||("string"==typeof n||Array.isArray(n))&&0===n.length}function hy(n){return null!=n&&"number"==typeof n.length}const bn=new i.OlP("NgValidators"),Os=new i.OlP("NgAsyncValidators"),py=/^(?=.{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 Pi{static min(s){return function Fm(n){return s=>{if(Eo(s.value)||Eo(n))return null;const e=parseFloat(s.value);return!isNaN(e)&&e{if(Eo(s.value)||Eo(n))return null;const e=parseFloat(s.value);return!isNaN(e)&&e>n?{max:{max:n,actual:s.value}}:null}}(s)}static required(s){return Ym(s)}static requiredTrue(s){return function Um(n){return!0===n.value?null:{required:!0}}(s)}static email(s){return function zm(n){return Eo(n.value)||py.test(n.value)?null:{email:!0}}(s)}static minLength(s){return function qm(n){return s=>Eo(s.value)||!hy(s.value)?null:s.value.lengthhy(s.value)&&s.value.length>n?{maxlength:{requiredLength:n,actualLength:s.value.length}}:null}(s)}static pattern(s){return function _p(n){if(!n)return os;let s,e;return"string"==typeof n?(e="","^"!==n.charAt(0)&&(e+="^"),e+=n,"$"!==n.charAt(n.length-1)&&(e+="$"),s=new RegExp(e)):(e=n.toString(),s=n),t=>{if(Eo(t.value))return null;const r=t.value;return s.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}(s)}static nullValidator(s){return null}static compose(s){return Wm(s)}static composeAsync(s){return wT(s)}}function Ym(n){return Eo(n.value)?{required:!0}:null}function os(n){return null}function fy(n){return null!=n}function my(n){return(0,i.QGY)(n)?(0,Oi.D)(n):n}function Il(n){let s={};return n.forEach(e=>{s=null!=e?{...s,...e}:s}),0===Object.keys(s).length?null:s}function yT(n,s){return s.map(e=>e(n))}function CT(n){return n.map(s=>function Gm(n){return!n.validate}(s)?s:e=>s.validate(e))}function Wm(n){if(!n)return null;const s=n.filter(fy);return 0==s.length?null:function(e){return Il(yT(e,s))}}function bp(n){return null!=n?Wm(CT(n)):null}function wT(n){if(!n)return null;const s=n.filter(fy);return 0==s.length?null:function(e){return la(yT(e,s).map(my)).pipe((0,mt.U)(Il))}}function ht(n){return null!=n?wT(CT(n)):null}function gy(n,s){return null===n?[s]:Array.isArray(n)?[...n,s]:[n,s]}function _y(n){return n._rawValidators}function by(n){return n._rawAsyncValidators}function Do(n){return n?Array.isArray(n)?n:[n]:[]}function yp(n,s){return Array.isArray(n)?n.includes(s):n===s}function Du(n,s){const e=Do(s);return Do(n).forEach(r=>{yp(e,r)||e.push(r)}),e}function Hu(n,s){return Do(s).filter(e=>!yp(n,e))}class Gi{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(s){this._rawValidators=s||[],this._composedValidatorFn=bp(this._rawValidators)}_setAsyncValidators(s){this._rawAsyncValidators=s||[],this._composedAsyncValidatorFn=ht(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(s){this._onDestroyCallbacks.push(s)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(s=>s()),this._onDestroyCallbacks=[]}reset(s){this.control&&this.control.reset(s)}hasError(s,e){return!!this.control&&this.control.hasError(s,e)}getError(s,e){return this.control?this.control.getError(s,e):null}}class mr extends Gi{get formDirective(){return null}get path(){return null}}class ia extends Gi{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class $m{constructor(s){this._cd=s}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let Fn=(()=>{class n extends $m{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(ia,2))},n.\u0275dir=i.lG2({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&i.ekj("ng-untouched",t.isUntouched)("ng-touched",t.isTouched)("ng-pristine",t.isPristine)("ng-dirty",t.isDirty)("ng-valid",t.isValid)("ng-invalid",t.isInvalid)("ng-pending",t.isPending)},features:[i.qOj]}),n})(),Zm=(()=>{class n extends $m{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(mr,10))},n.\u0275dir=i.lG2({type:n,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,t){2&e&&i.ekj("ng-untouched",t.isUntouched)("ng-touched",t.isTouched)("ng-pristine",t.isPristine)("ng-dirty",t.isDirty)("ng-valid",t.isValid)("ng-invalid",t.isInvalid)("ng-pending",t.isPending)("ng-submitted",t.isSubmitted)},features:[i.qOj]}),n})();const ed="VALID",Ru="INVALID",Ol="PENDING",Lu="DISABLED";function Ap(n){return(eg(n)?n.validators:n)||null}function yy(n){return Array.isArray(n)?bp(n):n||null}function Xm(n,s){return(eg(s)?s.asyncValidators:n)||null}function HT(n){return Array.isArray(n)?ht(n):n||null}function eg(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}function PT(n,s,e){const t=n.controls;if(!(s?Object.keys(t):t).length)throw new i.vHH(1e3,"");if(!t[e])throw new i.vHH(1001,"")}function kT(n,s,e){n._forEachChild((t,r)=>{if(void 0===e[r])throw new i.vHH(1002,"")})}class Iu{constructor(s,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=s,this._rawAsyncValidators=e,this._composedValidatorFn=yy(this._rawValidators),this._composedAsyncValidatorFn=HT(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(s){this._rawValidators=this._composedValidatorFn=s}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(s){this._rawAsyncValidators=this._composedAsyncValidatorFn=s}get parent(){return this._parent}get valid(){return this.status===ed}get invalid(){return this.status===Ru}get pending(){return this.status==Ol}get disabled(){return this.status===Lu}get enabled(){return this.status!==Lu}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(s){this._rawValidators=s,this._composedValidatorFn=yy(s)}setAsyncValidators(s){this._rawAsyncValidators=s,this._composedAsyncValidatorFn=HT(s)}addValidators(s){this.setValidators(Du(s,this._rawValidators))}addAsyncValidators(s){this.setAsyncValidators(Du(s,this._rawAsyncValidators))}removeValidators(s){this.setValidators(Hu(s,this._rawValidators))}removeAsyncValidators(s){this.setAsyncValidators(Hu(s,this._rawAsyncValidators))}hasValidator(s){return yp(this._rawValidators,s)}hasAsyncValidator(s){return yp(this._rawAsyncValidators,s)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(s={}){this.touched=!0,this._parent&&!s.onlySelf&&this._parent.markAsTouched(s)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(s=>s.markAllAsTouched())}markAsUntouched(s={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!s.onlySelf&&this._parent._updateTouched(s)}markAsDirty(s={}){this.pristine=!1,this._parent&&!s.onlySelf&&this._parent.markAsDirty(s)}markAsPristine(s={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!s.onlySelf&&this._parent._updatePristine(s)}markAsPending(s={}){this.status=Ol,!1!==s.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!s.onlySelf&&this._parent.markAsPending(s)}disable(s={}){const e=this._parentMarkedDirty(s.onlySelf);this.status=Lu,this.errors=null,this._forEachChild(t=>{t.disable({...s,onlySelf:!0})}),this._updateValue(),!1!==s.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...s,skipPristineCheck:e}),this._onDisabledChange.forEach(t=>t(!0))}enable(s={}){const e=this._parentMarkedDirty(s.onlySelf);this.status=ed,this._forEachChild(t=>{t.enable({...s,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:s.emitEvent}),this._updateAncestors({...s,skipPristineCheck:e}),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(s){this._parent&&!s.onlySelf&&(this._parent.updateValueAndValidity(s),s.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(s){this._parent=s}getRawValue(){return this.value}updateValueAndValidity(s={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===ed||this.status===Ol)&&this._runAsyncValidator(s.emitEvent)),!1!==s.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!s.onlySelf&&this._parent.updateValueAndValidity(s)}_updateTreeValidity(s={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(s)),this.updateValueAndValidity({onlySelf:!0,emitEvent:s.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Lu:ed}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(s){if(this.asyncValidator){this.status=Ol,this._hasOwnPendingAsyncValidator=!0;const e=my(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(t=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(t,{emitEvent:s})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(s,e={}){this.errors=s,this._updateControlsErrors(!1!==e.emitEvent)}get(s){let e=s;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((t,r)=>t&&t._find(r),this)}getError(s,e){const t=e?this.get(e):this;return t&&t.errors?t.errors[s]:null}hasError(s,e){return!!this.getError(s,e)}get root(){let s=this;for(;s._parent;)s=s._parent;return s}_updateControlsErrors(s){this.status=this._calculateStatus(),s&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(s)}_initObservables(){this.valueChanges=new i.vpe,this.statusChanges=new i.vpe}_calculateStatus(){return this._allControlsDisabled()?Lu:this.errors?Ru:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ol)?Ol:this._anyControlsHaveStatus(Ru)?Ru:ed}_anyControlsHaveStatus(s){return this._anyControls(e=>e.status===s)}_anyControlsDirty(){return this._anyControls(s=>s.dirty)}_anyControlsTouched(){return this._anyControls(s=>s.touched)}_updatePristine(s={}){this.pristine=!this._anyControlsDirty(),this._parent&&!s.onlySelf&&this._parent._updatePristine(s)}_updateTouched(s={}){this.touched=this._anyControlsTouched(),this._parent&&!s.onlySelf&&this._parent._updateTouched(s)}_registerOnCollectionChange(s){this._onCollectionChange=s}_setUpdateStrategy(s){eg(s)&&null!=s.updateOn&&(this._updateOn=s.updateOn)}_parentMarkedDirty(s){return!s&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(s){return null}}class Bl extends Iu{constructor(s,e,t){super(Ap(e),Xm(t,e)),this.controls=s,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(s,e){return this.controls[s]?this.controls[s]:(this.controls[s]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(s,e,t={}){this.registerControl(s,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}removeControl(s,e={}){this.controls[s]&&this.controls[s]._registerOnCollectionChange(()=>{}),delete this.controls[s],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(s,e,t={}){this.controls[s]&&this.controls[s]._registerOnCollectionChange(()=>{}),delete this.controls[s],e&&this.registerControl(s,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}contains(s){return this.controls.hasOwnProperty(s)&&this.controls[s].enabled}setValue(s,e={}){kT(this,0,s),Object.keys(s).forEach(t=>{PT(this,!0,t),this.controls[t].setValue(s[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(s,e={}){null!=s&&(Object.keys(s).forEach(t=>{const r=this.controls[t];r&&r.patchValue(s[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(s={},e={}){this._forEachChild((t,r)=>{t.reset(s[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(s,e,t)=>(s[t]=e.getRawValue(),s))}_syncPendingControls(){let s=this._reduceChildren(!1,(e,t)=>!!t._syncPendingControls()||e);return s&&this.updateValueAndValidity({onlySelf:!0}),s}_forEachChild(s){Object.keys(this.controls).forEach(e=>{const t=this.controls[e];t&&s(t,e)})}_setUpControls(){this._forEachChild(s=>{s.setParent(this),s._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(s){for(const[e,t]of Object.entries(this.controls))if(this.contains(e)&&s(t))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,t,r)=>((t.enabled||this.disabled)&&(e[r]=t.value),e))}_reduceChildren(s,e){let t=s;return this._forEachChild((r,l)=>{t=e(t,r,l)}),t}_allControlsDisabled(){for(const s of Object.keys(this.controls))if(this.controls[s].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(s){return this.controls.hasOwnProperty(s)?this.controls[s]:null}}function Tp(n,s){return[...s.path,n]}function Ou(n,s){Sp(n,s),s.valueAccessor.writeValue(n.value),n.disabled&&s.valueAccessor.setDisabledState?.(!0),function LT(n,s){s.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&wy(n,s)})}(n,s),function Ay(n,s){const e=(t,r)=>{s.valueAccessor.writeValue(t),r&&s.viewToModelUpdate(t)};n.registerOnChange(e),s._registerOnDestroy(()=>{n._unregisterOnChange(e)})}(n,s),function td(n,s){s.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&wy(n,s),"submit"!==n.updateOn&&n.markAsTouched()})}(n,s),function RT(n,s){if(s.valueAccessor.setDisabledState){const e=t=>{s.valueAccessor.setDisabledState(t)};n.registerOnDisabledChange(e),s._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}(n,s)}function xp(n,s,e=!0){const t=()=>{};s.valueAccessor&&(s.valueAccessor.registerOnChange(t),s.valueAccessor.registerOnTouched(t)),Ep(n,s),n&&(s._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function Mp(n,s){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(s)})}function Sp(n,s){const e=_y(n);null!==s.validator?n.setValidators(gy(e,s.validator)):"function"==typeof e&&n.setValidators([e]);const t=by(n);null!==s.asyncValidator?n.setAsyncValidators(gy(t,s.asyncValidator)):"function"==typeof t&&n.setAsyncValidators([t]);const r=()=>n.updateValueAndValidity();Mp(s._rawValidators,r),Mp(s._rawAsyncValidators,r)}function Ep(n,s){let e=!1;if(null!==n){if(null!==s.validator){const r=_y(n);if(Array.isArray(r)&&r.length>0){const l=r.filter(d=>d!==s.validator);l.length!==r.length&&(e=!0,n.setValidators(l))}}if(null!==s.asyncValidator){const r=by(n);if(Array.isArray(r)&&r.length>0){const l=r.filter(d=>d!==s.asyncValidator);l.length!==r.length&&(e=!0,n.setAsyncValidators(l))}}}const t=()=>{};return Mp(s._rawValidators,t),Mp(s._rawAsyncValidators,t),e}function wy(n,s){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),s.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function vy(n,s){Sp(n,s)}function tg(n,s){if(!n.hasOwnProperty("model"))return!1;const e=n.model;return!!e.isFirstChange()||!Object.is(s,e.currentValue)}function ig(n,s){n._syncPendingControls(),s.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function ng(n,s){if(!s)return null;let e,t,r;return Array.isArray(s),s.forEach(l=>{l.constructor===Nn?e=l:function Ey(n){return Object.getPrototypeOf(n.constructor)===Ll}(l)?t=l:r=l}),r||t||e||null}const rg={provide:mr,useExisting:(0,i.Gpc)(()=>Ho)},Bu=(()=>Promise.resolve(null))();let Ho=(()=>{class n extends mr{constructor(e,t){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new i.vpe,this.form=new Bl({},bp(e),ht(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Bu.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),Ou(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Bu.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Bu.then(()=>{const t=this._findContainer(e.path),r=new Bl({});vy(r,e),t.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Bu.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){Bu.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,ig(this.form,this._directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(bn,10),i.Y36(Os,10))},n.\u0275dir=i.lG2({type:n,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&i.NdJ("submit",function(l){return t.onSubmit(l)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i._Bn([rg]),i.qOj]}),n})();function Dy(n,s){const e=n.indexOf(s);e>-1&&n.splice(e,1)}function Hy(n){return"object"==typeof n&&null!==n&&2===Object.keys(n).length&&"value"in n&&"disabled"in n}const Vi=class extends Iu{constructor(s=null,e,t){super(Ap(e),Xm(t,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(s),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),eg(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=Hy(s)?s.value:s)}setValue(s,e={}){this.value=this._pendingValue=s,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(s,e={}){this.setValue(s,e)}reset(s=this.defaultValue,e={}){this._applyFormState(s),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(s){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(s){this._onChange.push(s)}_unregisterOnChange(s){Dy(this._onChange,s)}registerOnDisabledChange(s){this._onDisabledChange.push(s)}_unregisterOnDisabledChange(s){Dy(this._onDisabledChange,s)}_forEachChild(s){}_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(s){Hy(s)?(this.value=this._pendingValue=s.value,s.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=s}},ag=Vi,Ry={provide:ia,useExisting:(0,i.Gpc)(()=>id)},Ly=(()=>Promise.resolve(null))();let id=(()=>{class n extends ia{constructor(e,t,r,l,d){super(),this._changeDetectorRef=d,this.control=new Vi,this._registered=!1,this.update=new i.vpe,this._parent=e,this._setValidators(t),this._setAsyncValidators(r),this.valueAccessor=ng(0,l)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const t=e.name.previousValue;this.formDirective.removeControl({name:t,path:this._getPath(t)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),tg(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_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(){Ou(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(e){Ly.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const t=e.isDisabled.currentValue,r=0!==t&&(0,i.D6c)(t);Ly.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?Tp(e,this._parent):[e]}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(mr,9),i.Y36(bn,10),i.Y36(Os,10),i.Y36(rr,10),i.Y36(i.sBO,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[i._Bn([Ry]),i.qOj,i.TTD]}),n})(),Iy=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),n})(),Vy=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();const Po=new i.OlP("NgModelWithFormControlWarning"),Ny={provide:ia,useExisting:(0,i.Gpc)(()=>kr)};let kr=(()=>{class n extends ia{constructor(e,t,r,l){super(),this._ngModelWarningConfig=l,this.update=new i.vpe,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(t),this.valueAccessor=ng(0,r)}set isDisabled(e){}ngOnChanges(e){if(this._isControlChanged(e)){const t=e.form.previousValue;t&&xp(t,this,!1),Ou(this.form,this),this.form.updateValueAndValidity({emitEvent:!1})}tg(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&xp(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}}return n._ngModelWarningSentOnce=!1,n.\u0275fac=function(e){return new(e||n)(i.Y36(bn,10),i.Y36(Os,10),i.Y36(rr,10),i.Y36(Po,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[i._Bn([Ny]),i.qOj,i.TTD]}),n})();const oE={provide:mr,useExisting:(0,i.Gpc)(()=>ko)};let ko=(()=>{class n extends mr{constructor(e,t){super(),this.validators=e,this.asyncValidators=t,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new i.vpe,this._setValidators(e),this._setAsyncValidators(t)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Ep(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const t=this.form.get(e.path);return Ou(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){xp(e.control||null,e,!1),function IT(n,s){const e=n.indexOf(s);e>-1&&n.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,t){this.form.get(e.path).setValue(t)}onSubmit(e){return this.submitted=!0,ig(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const t=e.control,r=this.form.get(e.path);t!==r&&(xp(t||null,e),(n=>n instanceof Vi)(r)&&(Ou(r,e),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const t=this.form.get(e.path);vy(t,e),t.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const t=this.form.get(e.path);t&&function Ty(n,s){return Ep(n,s)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Sp(this.form,this),this._oldForm&&Ep(this._oldForm,this)}_checkFormPresent(){}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(bn,10),i.Y36(Os,10))},n.\u0275dir=i.lG2({type:n,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&i.NdJ("submit",function(l){return t.onSubmit(l)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i._Bn([oE]),i.qOj,i.TTD]}),n})();const hg={provide:ia,useExisting:(0,i.Gpc)(()=>Pp)};let Pp=(()=>{class n extends ia{constructor(e,t,r,l,d){super(),this._ngModelWarningConfig=d,this._added=!1,this.update=new i.vpe,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(t),this._setAsyncValidators(r),this.valueAccessor=ng(0,l)}set isDisabled(e){}ngOnChanges(e){this._added||this._setUpControl(),tg(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return Tp(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._added=!0}}return n._ngModelWarningSentOnce=!1,n.\u0275fac=function(e){return new(e||n)(i.Y36(mr,13),i.Y36(bn,10),i.Y36(Os,10),i.Y36(rr,10),i.Y36(Po,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[i._Bn([hg]),i.qOj,i.TTD]}),n})(),nd=(()=>{class n{constructor(){this._validator=os}ngOnChanges(e){if(this.inputName in e){const t=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(t),this._validator=this._enabled?this.createValidator(t):os,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,features:[i.TTD]}),n})();const $y={provide:bn,useExisting:(0,i.Gpc)(()=>ls),multi:!0};let ls=(()=>{class n extends nd{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=i.D6c,this.createValidator=e=>Ym}enabled(e){return e}}return n.\u0275fac=function(){let s;return function(t){return(s||(s=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&i.uIk("required",t._enabled?"":null)},inputs:{required:"required"},features:[i._Bn([$y]),i.qOj]}),n})(),Ky=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[Vy]}),n})(),Xy=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[Ky]}),n})(),Ro=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:Po,useValue:e.warnOnNgModelWithFormControl}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[Ky]}),n})();class bg extends Iu{constructor(s,e,t){super(Ap(e),Xm(t,e)),this.controls=s,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(s){return this.controls[this._adjustIndex(s)]}push(s,e={}){this.controls.push(s),this._registerControl(s),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(s,e,t={}){this.controls.splice(s,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:t.emitEvent})}removeAt(s,e={}){let t=this._adjustIndex(s);t<0&&(t=0),this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(s,e,t={}){let r=this._adjustIndex(s);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(s,e={}){kT(this,0,s),s.forEach((t,r)=>{PT(this,!1,r),this.at(r).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(s,e={}){null!=s&&(s.forEach((t,r)=>{this.at(r)&&this.at(r).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(s=[],e={}){this._forEachChild((t,r)=>{t.reset(s[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(s=>s.getRawValue())}clear(s={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:s.emitEvent}))}_adjustIndex(s){return s<0?s+this.length:s}_syncPendingControls(){let s=this.controls.reduce((e,t)=>!!t._syncPendingControls()||e,!1);return s&&this.updateValueAndValidity({onlySelf:!0}),s}_forEachChild(s){this.controls.forEach((e,t)=>{s(e,t)})}_updateValue(){this.value=this.controls.filter(s=>s.enabled||this.disabled).map(s=>s.value)}_anyControls(s){return this.controls.some(e=>e.enabled&&s(e))}_setUpControls(){this._forEachChild(s=>this._registerControl(s))}_allControlsDisabled(){for(const s of this.controls)if(s.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(s){s.setParent(this),s._registerOnCollectionChange(this._onCollectionChange)}_find(s){return this.at(s)??null}}function eC(n){return!!n&&(void 0!==n.asyncValidators||void 0!==n.validators||void 0!==n.updateOn)}let Nu=(()=>{class n{constructor(){this.useNonNullable=!1}get nonNullable(){const e=new n;return e.useNonNullable=!0,e}group(e,t=null){const r=this._reduceControls(e);let l={};return eC(t)?l=t:null!==t&&(l.validators=t.validator,l.asyncValidators=t.asyncValidator),new Bl(r,l)}control(e,t,r){let l={};return this.useNonNullable?(eC(t)?l=t:(l.validators=t,l.asyncValidators=r),new Vi(e,{...l,nonNullable:!0})):new Vi(e,t,r)}array(e,t,r){const l=e.map(d=>this._createControl(d));return new bg(l,t,r)}_reduceControls(e){const t={};return Object.keys(e).forEach(r=>{t[r]=this._createControl(e[r])}),t}_createControl(e){return e instanceof Vi||e instanceof Iu?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:Ro}),n})(),yg=(()=>{class n extends Nu{group(e,t=null){return super.group(e,t)}control(e,t,r){return super.control(e,t,r)}array(e,t,r){return super.array(e,t,r)}}return n.\u0275fac=function(){let s;return function(t){return(s||(s=i.n5z(n)))(t||n)}}(),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:Ro}),n})();const e0=["trigger"],Lp=["panel"];function Fu(n,s){if(1&n&&(i.TgZ(0,"span",8),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Oqu(e.placeholder)}}function t0(n,s){if(1&n&&(i.TgZ(0,"span",12),i._uU(1),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Oqu(e.triggerValue)}}function n0(n,s){1&n&&i.Hsn(0,0,["*ngSwitchCase","true"])}function r0(n,s){if(1&n&&(i.TgZ(0,"span",9),i.YNc(1,t0,2,1,"span",10),i.YNc(2,n0,1,0,"ng-content",11),i.qZA()),2&n){const e=i.oxw();i.Q6J("ngSwitch",!!e.customTrigger),i.xp6(2),i.Q6J("ngSwitchCase",!0)}}function Ip(n,s){if(1&n){const e=i.EpF();i.TgZ(0,"div",13)(1,"div",14,15),i.NdJ("@transformPanel.done",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l._panelDoneAnimatingStream.next(r.toState))})("keydown",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l._handleKeydown(r))}),i.Hsn(3,1),i.qZA()()}if(2&n){const e=i.oxw();i.Q6J("@transformPanelWrap",void 0),i.xp6(1),i.Gre("mat-select-panel ",e._getPanelTheme(),""),i.Udp("transform-origin",e._transformOrigin)("font-size",e._triggerFontSize,"px"),i.Q6J("ngClass",e.panelClass)("@transformPanel",e.multiple?"showing-multiple":"showing"),i.uIk("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}const Op=[[["mat-select-trigger"]],"*"],a0=["mat-select-trigger","*"],tC={transformPanelWrap:di("transformPanelWrap",[Tt("* => void",An("@transformPanel",[Su()],{optional:!0}))]),transformPanel:di("transformPanel",[Rt("void",Re({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),Rt("showing",Re({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),Rt("showing-multiple",Re({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),Tt("void => *",At("120ms cubic-bezier(0, 0, 0.2, 1)")),Tt("* => void",At("100ms 25ms linear",Re({opacity:0})))])};let Cg=0;const Vp=new i.OlP("mat-select-scroll-strategy"),l0=new i.OlP("MAT_SELECT_CONFIG"),c0={provide:Vp,deps:[Vn],useFactory:function Ag(n){return()=>n.scrollStrategies.reposition()}};class d0{constructor(s,e){this.source=s,this.value=e}}const u0=Xr(Ao(hn(mu(class{constructor(n,s,e,t,r){this._elementRef=n,this._defaultErrorStateMatcher=s,this._parentForm=e,this._parentFormGroup=t,this.ngControl=r,this.stateChanges=new Te.x}})))),nC=new i.OlP("MatSelectTrigger");let aC=(()=>{class n extends u0{constructor(e,t,r,l,d,o,a,c,u,h,f,b,V,X){super(d,l,a,c,h),this._viewportRuler=e,this._changeDetectorRef=t,this._ngZone=r,this._dir=o,this._parentFormField=u,this._liveAnnouncer=V,this._defaultOptions=X,this._panelOpen=!1,this._compareWith=(ue,je)=>ue===je,this._uid="mat-select-"+Cg++,this._triggerAriaLabelledBy=null,this._destroy=new Te.x,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+Cg++,this._panelDoneAnimatingStream=new Te.x,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.optionSelectionChanges=bi(()=>{const ue=this.options;return ue?ue.changes.pipe(Nt(ue),(0,pi.w)(()=>(0,xi.T)(...ue.map(je=>je.onSelectionChange)))):this._ngZone.onStable.pipe((0,it.q)(1),(0,pi.w)(()=>this.optionSelectionChanges))}),this.openedChange=new i.vpe,this._openedStream=this.openedChange.pipe((0,Ze.h)(ue=>ue),(0,mt.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,Ze.h)(ue=>!ue),(0,mt.U)(()=>{})),this.selectionChange=new i.vpe,this.valueChange=new i.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=X?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=X.typeaheadDebounceInterval),this._scrollStrategyFactory=b,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(f)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(Pi.required)??!1}set required(e){this._required=Ne(e),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._multiple=Ne(e)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(e){this._disableOptionCentering=Ne(e)}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(e){this._typeaheadDebounceInterval=ci(e)}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new tn(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Ms(),Ge(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(Ge(this._destroy)).subscribe(e=>{e.added.forEach(t=>t.select()),e.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(Nt(null),Ge(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const e=this._getTriggerAriaLabelledby(),t=this.ngControl;if(e!==this._triggerAriaLabelledBy){const r=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?r.setAttribute("aria-labelledby",e):r.removeAttribute("aria-labelledby")}t&&(this._previousControl!==t.control&&(void 0!==this._previousControl&&null!==t.disabled&&t.disabled!==this.disabled&&(this.disabled=t.disabled),this._previousControl=t.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.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(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,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 e=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){const t=e.keyCode,r=40===t||38===t||37===t||39===t,l=13===t||32===t,d=this._keyManager;if(!d.isTyping()&&l&&!_n(e)||(this.multiple||e.altKey)&&r)e.preventDefault(),this.open();else if(!this.multiple){const o=this.selected;d.onKeydown(e);const a=this.selected;a&&o!==a&&this._liveAnnouncer.announce(a.viewValue,1e4)}}_handleOpenKeydown(e){const t=this._keyManager,r=e.keyCode,l=40===r||38===r,d=t.isTyping();if(l&&e.altKey)e.preventDefault(),this.close();else if(d||13!==r&&32!==r||!t.activeItem||_n(e))if(!d&&this._multiple&&65===r&&e.ctrlKey){e.preventDefault();const o=this.options.some(a=>!a.disabled&&!a.selected);this.options.forEach(a=>{a.disabled||(o?a.select():a.deselect())})}else{const o=t.activeItemIndex;t.onKeydown(e),this._multiple&&l&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==o&&t.activeItem._selectViaInteraction()}else e.preventDefault(),t.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((0,it.q)(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.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this._selectionModel.selected.forEach(t=>t.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(t=>this._selectOptionByValue(t)),this._sortValues();else{const t=this._selectOptionByValue(e);t?this._keyManager.updateActiveItem(t):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){const t=this.options.find(r=>{if(this._selectionModel.isSelected(r))return!1;try{return null!=r.value&&this._compareWith(r.value,e)}catch{return!1}});return t&&this._selectionModel.select(t),t}_assignValue(e){return!!(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e,!0)}_initKeyManager(){this._keyManager=new rv(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Ge(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(Ge(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 e=(0,xi.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Ge(e)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,xi.T)(...this.options.map(t=>t._stateChanges)).pipe(Ge(e)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(e,t){const r=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(r!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),r!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const e=this.options.toArray();this._selectionModel.sort((t,r)=>this.sortComparator?this.sortComparator(t,r,e):e.indexOf(t)-e.indexOf(r)),this.stateChanges.next()}}_propagateChanges(e){let t=null;t=this.multiple?this.selected.map(r=>r.value):this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(this._getChangeEvent(t)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){return!this._panelOpen&&!this.disabled&&this.options?.length>0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const e=this._parentFormField?.getLabelId();return this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const e=this._parentFormField?.getLabelId();let t=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(t+=" "+this.ariaLabelledby),t}_panelDoneAnimating(e){this.openedChange.emit(e)}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(va),i.Y36(i.sBO),i.Y36(i.R0b),i.Y36(Er),i.Y36(i.SBq),i.Y36(_i,8),i.Y36(Ho,8),i.Y36(ko,8),i.Y36(mp,8),i.Y36(ia,10),i.$8M("tabindex"),i.Y36(Vp),i.Y36(_b),i.Y36(l0,8))},n.\u0275dir=i.lG2({type:n,viewQuery:function(e,t){if(1&e&&(i.Gf(e0,5),i.Gf(Lp,5),i.Gf(Dm,5)),2&e){let r;i.iGM(r=i.CRH())&&(t.trigger=r.first),i.iGM(r=i.CRH())&&(t.panel=r.first),i.iGM(r=i.CRH())&&(t._overlayDir=r.first)}},inputs:{userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[i.qOj,i.TTD]}),n})(),ad=(()=>{class n extends aC{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(e,t,r){const l=this._getItemHeight();return Math.min(Math.max(0,l*e-t+l/2),r)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(Ge(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((0,it.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(e){const t=Mb(e,this.options,this.optionGroups),r=this._getItemHeight();this.panel.nativeElement.scrollTop=0===e&&1===t?0:function Dv(n,s,e,t){return ne+t?Math.max(0,n-t+s):e}((e+t)*r,r,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(e){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(e)}_getChangeEvent(e){return new d0(this,e)}_calculateOverlayOffsetX(){const e=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),t=this._viewportRuler.getViewportSize(),r=this._isRtl(),l=this.multiple?56:32;let d;if(this.multiple)d=40;else if(this.disableOptionCentering)d=16;else{let c=this._selectionModel.selected[0]||this.options.first;d=c&&c.group?32:16}r||(d*=-1);const o=0-(e.left+d-(r?l:0)),a=e.right+d-t.width+(r?0:l);o>0?d+=o+8:a>0&&(d-=a+8),this._overlayDir.offsetX=Math.round(d),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(e,t,r){const l=this._getItemHeight(),d=(l-this._triggerRect.height)/2,o=Math.floor(256/l);let a;return this.disableOptionCentering?0:(a=0===this._scrollTop?e*l:this._scrollTop===r?(e-(this._getItemCount()-o))*l+(l-(this._getItemCount()*l-256)%l):t-l/2,Math.round(-1*a-d))}_checkOverlayWithinViewport(e){const t=this._getItemHeight(),r=this._viewportRuler.getViewportSize(),l=this._triggerRect.top-8,d=r.height-this._triggerRect.bottom-8,o=Math.abs(this._offsetY),c=Math.min(this._getItemCount()*t,256)-o-this._triggerRect.height;c>d?this._adjustPanelUp(c,d):o>l?this._adjustPanelDown(o,l,e):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(e,t){const r=Math.round(e-t);this._scrollTop-=r,this._offsetY-=r,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(e,t,r){const l=Math.round(e-t);if(this._scrollTop+=l,this._offsetY+=l,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=r)return this._scrollTop=r,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const e=this._getItemHeight(),t=this._getItemCount(),r=Math.min(t*e,256),d=t*e-r;let o;o=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),o+=Mb(o,this.options,this.optionGroups);const a=r/2;this._scrollTop=this._calculateOverlayScroll(o,a,d),this._offsetY=this._calculateOverlayOffsetY(o,a,d),this._checkOverlayWithinViewport(d)}_getOriginBasedOnOption(){const e=this._getItemHeight(),t=(e-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-t+e/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return n.\u0275fac=function(){let s;return function(t){return(s||(s=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-select"]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,nC,5),i.Suo(r,Uc,5),i.Suo(r,Tb,5)),2&e){let l;i.iGM(l=i.CRH())&&(t.customTrigger=l.first),i.iGM(l=i.CRH())&&(t.options=l),i.iGM(l=i.CRH())&&(t.optionGroups=l)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:19,hostBindings:function(e,t){1&e&&i.NdJ("keydown",function(l){return t._handleKeydown(l)})("focus",function(){return t._onFocus()})("blur",function(){return t._onBlur()}),2&e&&(i.uIk("id",t.id)("tabindex",t.tabIndex)("aria-controls",t.panelOpen?t.id+"-panel":null)("aria-expanded",t.panelOpen)("aria-label",t.ariaLabel||null)("aria-required",t.required.toString())("aria-disabled",t.disabled.toString())("aria-invalid",t.errorState)("aria-activedescendant",t._getAriaActiveDescendant()),i.ekj("mat-select-disabled",t.disabled)("mat-select-invalid",t.errorState)("mat-select-required",t.required)("mat-select-empty",t.empty)("mat-select-multiple",t.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[i._Bn([{provide:Kc,useExisting:n},{provide:om,useExisting:n}]),i.qOj],ngContentSelectors:a0,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 mat-select-min-line",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","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(e,t){if(1&e&&(i.F$t(Op),i.TgZ(0,"div",0,1),i.NdJ("click",function(){return t.toggle()}),i.TgZ(3,"div",2),i.YNc(4,Fu,2,1,"span",3),i.YNc(5,r0,3,2,"span",4),i.qZA(),i.TgZ(6,"div",5),i._UZ(7,"div",6),i.qZA()(),i.YNc(8,Ip,4,14,"ng-template",7),i.NdJ("backdropClick",function(){return t.close()})("attach",function(){return t._onAttached()})("detach",function(){return t.close()})),2&e){const r=i.MAs(1);i.uIk("aria-owns",t.panelOpen?t.id+"-panel":null),i.xp6(3),i.Q6J("ngSwitch",t.empty),i.uIk("id",t._valueId),i.xp6(1),i.Q6J("ngSwitchCase",!0),i.xp6(1),i.Q6J("ngSwitchCase",!1),i.xp6(3),i.Q6J("cdkConnectedOverlayPanelClass",t._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",t._scrollStrategy)("cdkConnectedOverlayOrigin",r)("cdkConnectedOverlayOpen",t.panelOpen)("cdkConnectedOverlayPositions",t._positions)("cdkConnectedOverlayMinWidth",null==t._triggerRect?null:t._triggerRect.width)("cdkConnectedOverlayOffsetY",t._offsetY)}},dependencies:[w.mk,w.RF,w.n9,w.ED,Dm,Em],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-select-value{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{height:16px;flex-shrink:0;display:inline-flex;align-items:center}.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 rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;margin:0 4px}.mat-form-field.mat-focused .mat-select-arrow{transform:translateX(0)}.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:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[tC.transformPanelWrap,tC.transformPanel]},changeDetection:0}),n})(),Uu=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[c0],imports:[w.ez,Pl,ap,ct,wn,Rl,ap,ct]}),n})();const sC=["tooltip"],vg="tooltip-panel",oC=Ts({passive:!0}),jn=new i.OlP("mat-tooltip-scroll-strategy"),m0={provide:jn,deps:[Vn],useFactory:function sd(n){return()=>n.scrollStrategies.reposition({scrollThrottle:20})}},g0=new i.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function uE(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let hE=(()=>{class n{constructor(e,t,r,l,d,o,a,c,u,h,f,b){this._overlay=e,this._elementRef=t,this._scrollDispatcher=r,this._viewContainerRef=l,this._ngZone=d,this._platform=o,this._ariaDescriber=a,this._focusMonitor=c,this._dir=h,this._defaultOptions=f,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new Te.x,this._scrollStrategy=u,this._document=b,f&&(f.position&&(this.position=f.position),f.touchGestures&&(this.touchGestures=f.touchGestures)),h.change.pipe(Ge(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(e){this._disabled=Ne(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=ci(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=ci(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).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,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Ge(this._destroyed)).subscribe(e=>{e?"keyboard"===e&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([t,r])=>{e.removeEventListener(t,r,oC)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const t=this._createOverlay();this._detach(),this._portal=this._portal||new xa(this._tooltipComponent,this._viewContainerRef);const r=this._tooltipInstance=t.attach(this._portal).instance;r._triggerElement=this._elementRef.nativeElement,r._mouseLeaveHideDelay=this._hideDelay,r.afterHidden().pipe(Ge(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),r.show(e)}hide(e=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(e)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const e=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),t=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(e);return t.positionChanges.pipe(Ge(this._destroyed)).subscribe(r=>{this._updateCurrentPositionClass(r.connectionPair),this._tooltipInstance&&r.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:t,panelClass:`${this._cssClassPrefix}-${vg}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Ge(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(Ge(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(Ge(this._destroyed)).subscribe(r=>{this._isTooltipVisible()&&27===r.keyCode&&!_n(r)&&(r.preventDefault(),r.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){const t=e.getConfig().positionStrategy,r=this._getOrigin(),l=this._getOverlayPosition();t.withPositions([this._addOffset({...r.main,...l.main}),this._addOffset({...r.fallback,...l.fallback})])}_addOffset(e){return e}_getOrigin(){const e=!this._dir||"ltr"==this._dir.value,t=this.position;let r;"above"==t||"below"==t?r={originX:"center",originY:"above"==t?"top":"bottom"}:"before"==t||"left"==t&&e||"right"==t&&!e?r={originX:"start",originY:"center"}:("after"==t||"right"==t&&e||"left"==t&&!e)&&(r={originX:"end",originY:"center"});const{x:l,y:d}=this._invertPosition(r.originX,r.originY);return{main:r,fallback:{originX:l,originY:d}}}_getOverlayPosition(){const e=!this._dir||"ltr"==this._dir.value,t=this.position;let r;"above"==t?r={overlayX:"center",overlayY:"bottom"}:"below"==t?r={overlayX:"center",overlayY:"top"}:"before"==t||"left"==t&&e||"right"==t&&!e?r={overlayX:"end",overlayY:"center"}:("after"==t||"right"==t&&e||"left"==t&&!e)&&(r={overlayX:"start",overlayY:"center"});const{x:l,y:d}=this._invertPosition(r.overlayX,r.overlayY);return{main:r,fallback:{overlayX:l,overlayY:d}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,it.q)(1),Ge(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,t){return"above"===this.position||"below"===this.position?"top"===t?t="bottom":"bottom"===t&&(t="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:t}}_updateCurrentPositionClass(e){const{overlayY:t,originX:r,originY:l}=e;let d;if(d="center"===t?this._dir&&"rtl"===this._dir.value?"end"===r?"left":"right":"start"===r?"left":"right":"bottom"===t&&"top"===l?"above":"below",d!==this._currentPosition){const o=this._overlayRef;if(o){const a=`${this._cssClassPrefix}-${vg}-`;o.removePanelClass(a+this._currentPosition),o.addPanelClass(a+d)}this._currentPosition=d}}_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 e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",t=>{const r=t.relatedTarget;(!r||!this._overlayRef?.overlayElement.contains(r))&&this.hide()}],["wheel",t=>this._wheelListener(t)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const t=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",t],["touchcancel",t])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([t,r])=>{this._elementRef.nativeElement.addEventListener(t,r,oC)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const t=this._document.elementFromPoint(e.clientX,e.clientY),r=this._elementRef.nativeElement;t!==r&&!r.contains(t)&&this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const t=this._elementRef.nativeElement,r=t.style;("on"===e||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(r.userSelect=r.msUserSelect=r.webkitUserSelect=r.MozUserSelect="none"),("on"===e||!t.draggable)&&(r.webkitUserDrag="none"),r.touchAction="none",r.webkitTapHighlightColor="transparent"}}}return n.\u0275fac=function(e){i.$Z()},n.\u0275dir=i.lG2({type:n,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),n})(),Ha=(()=>{class n extends hE{constructor(e,t,r,l,d,o,a,c,u,h,f,b){super(e,t,r,l,d,o,a,c,u,h,f,b),this._tooltipComponent=zu}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Vn),i.Y36(i.SBq),i.Y36(Ml),i.Y36(i.s_b),i.Y36(i.R0b),i.Y36(Hi),i.Y36(Xf),i.Y36(tr),i.Y36(jn),i.Y36(_i,8),i.Y36(g0,8),i.Y36(w.K0))},n.\u0275dir=i.lG2({type:n,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[i.qOj]}),n})(),cC=(()=>{class n{constructor(e,t){this._changeDetectorRef=e,this._visibility="initial",this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new Te.x,this._animationsDisabled="NoopAnimations"===t}show(e){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:e}){(!e||!this._triggerElement.contains(e))&&this.hide(this._mouseLeaveHideDelay)}_onShow(){}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){const t=this._tooltip.nativeElement,r=this._showAnimation,l=this._hideAnimation;if(t.classList.remove(e?l:r),t.classList.add(e?r:l),this._isVisible=e,e&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const d=getComputedStyle(t);("0s"===d.getPropertyValue("animation-duration")||"none"===d.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(t.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.sBO),i.Y36(i.QbO,8))},n.\u0275dir=i.lG2({type:n}),n})(),zu=(()=>{class n extends cC{constructor(e,t,r){super(e,r),this._breakpointObserver=t,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)"),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.sBO),i.Y36(nb),i.Y36(i.QbO,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-tooltip-component"]],viewQuery:function(e,t){if(1&e&&i.Gf(sC,7),2&e){let r;i.iGM(r=i.CRH())&&(t._tooltip=r.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,t){1&e&&i.NdJ("mouseleave",function(l){return t._handleMouseLeave(l)}),2&e&&i.Udp("zoom",t.isVisible()?1:null)},features:[i.qOj],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(e,t){if(1&e&&(i.TgZ(0,"div",0,1),i.NdJ("animationend",function(l){return t._handleAnimationEnd(l)}),i.ALo(2,"async"),i._uU(3),i.qZA()),2&e){let r;i.ekj("mat-tooltip-handset",null==(r=i.lcZ(2,4,t._isHandset))?null:r.matches),i.Q6J("ngClass",t.tooltipClass),i.xp6(3),i.Oqu(t.message)}},dependencies:[w.mk,w.Ov],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}"],encapsulation:2,changeDetection:0}),n})(),qu=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[m0],imports:[ep,w.ez,Pl,ct,ct,wn]}),n})();function _0(n,s){if(1&n&&(i.TgZ(0,"mat-option",19),i._uU(1),i.qZA()),2&n){const e=s.$implicit;i.Q6J("value",e),i.xp6(1),i.hij(" ",e," ")}}function uC(n,s){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",16)(1,"mat-select",17),i.NdJ("selectionChange",function(r){i.CHM(e);const l=i.oxw(2);return i.KtG(l._changePageSize(r.value))}),i.YNc(2,_0,2,2,"mat-option",18),i.qZA()()}if(2&n){const e=i.oxw(2);i.Q6J("appearance",e._formFieldAppearance)("color",e.color),i.xp6(1),i.Q6J("value",e.pageSize)("disabled",e.disabled)("panelClass",e.selectConfig.panelClass||"")("disableOptionCentering",e.selectConfig.disableOptionCentering)("aria-label",e._intl.itemsPerPageLabel),i.xp6(1),i.Q6J("ngForOf",e._displayedPageSizeOptions)}}function b0(n,s){if(1&n&&(i.TgZ(0,"div",20),i._uU(1),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Oqu(e.pageSize)}}function y0(n,s){if(1&n&&(i.TgZ(0,"div",12)(1,"div",13),i._uU(2),i.qZA(),i.YNc(3,uC,3,8,"mat-form-field",14),i.YNc(4,b0,2,1,"div",15),i.qZA()),2&n){const e=i.oxw();i.xp6(2),i.hij(" ",e._intl.itemsPerPageLabel," "),i.xp6(1),i.Q6J("ngIf",e._displayedPageSizeOptions.length>1),i.xp6(1),i.Q6J("ngIf",e._displayedPageSizeOptions.length<=1)}}function od(n,s){if(1&n){const e=i.EpF();i.TgZ(0,"button",21),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.firstPage())}),i.O4$(),i.TgZ(1,"svg",7),i._UZ(2,"path",22),i.qZA()()}if(2&n){const e=i.oxw();i.Q6J("matTooltip",e._intl.firstPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),i.uIk("aria-label",e._intl.firstPageLabel)}}function C0(n,s){if(1&n){const e=i.EpF();i.O4$(),i.kcU(),i.TgZ(0,"button",23),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.lastPage())}),i.O4$(),i.TgZ(1,"svg",7),i._UZ(2,"path",24),i.qZA()()}if(2&n){const e=i.oxw();i.Q6J("matTooltip",e._intl.lastPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),i.uIk("aria-label",e._intl.lastPageLabel)}}let ld=(()=>{class n{constructor(){this.changes=new Te.x,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(e,t,r)=>{if(0==r||0==t)return`0 of ${r}`;const l=e*t;return`${l+1} \u2013 ${l<(r=Math.max(r,0))?Math.min(l+t,r):l+t} of ${r}`}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const pC={provide:ld,deps:[[new i.FiY,new i.tp0,ld]],useFactory:function hC(n){return n||new ld}},pE=new i.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),mC=hn(nm(class{}));let w0=(()=>{class n extends mC{constructor(e,t,r){if(super(),this._intl=e,this._changeDetectorRef=t,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.selectConfig={},this.page=new i.vpe,this._intlChanges=e.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),r){const{pageSize:l,pageSizeOptions:d,hidePageSize:o,showFirstLastButtons:a}=r;null!=l&&(this._pageSize=l),null!=d&&(this._pageSizeOptions=d),null!=o&&(this._hidePageSize=o),null!=a&&(this._showFirstLastButtons=a)}}get pageIndex(){return this._pageIndex}set pageIndex(e){this._pageIndex=Math.max(ci(e),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(e){this._length=ci(e),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(e){this._pageSize=Math.max(ci(e),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(e){this._pageSizeOptions=(e||[]).map(t=>ci(t)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(e){this._hidePageSize=Ne(e)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(e){this._showFirstLastButtons=Ne(e)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const e=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(e)}previousPage(){if(!this.hasPreviousPage())return;const e=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(e)}firstPage(){if(!this.hasPreviousPage())return;const e=this.pageIndex;this.pageIndex=0,this._emitPageEvent(e)}lastPage(){if(!this.hasNextPage())return;const e=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(e)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const e=this.getNumberOfPages()-1;return this.pageIndexe-t),this._changeDetectorRef.markForCheck())}_emitPageEvent(e){this.page.emit({previousPageIndex:e,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return n.\u0275fac=function(e){i.$Z()},n.\u0275dir=i.lG2({type:n,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",selectConfig:"selectConfig"},outputs:{page:"page"},features:[i.qOj]}),n})(),Tg=(()=>{class n extends w0{constructor(e,t,r){super(e,t,r),r&&null!=r.formFieldAppearance&&(this._formFieldAppearance=r.formFieldAppearance)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(ld),i.Y36(i.sBO),i.Y36(pE,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[i.qOj],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","panelClass","disableOptionCentering","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(e,t){1&e&&(i.TgZ(0,"div",0)(1,"div",1),i.YNc(2,y0,5,3,"div",2),i.TgZ(3,"div",3)(4,"div",4),i._uU(5),i.qZA(),i.YNc(6,od,3,5,"button",5),i.TgZ(7,"button",6),i.NdJ("click",function(){return t.previousPage()}),i.O4$(),i.TgZ(8,"svg",7),i._UZ(9,"path",8),i.qZA()(),i.kcU(),i.TgZ(10,"button",9),i.NdJ("click",function(){return t.nextPage()}),i.O4$(),i.TgZ(11,"svg",7),i._UZ(12,"path",10),i.qZA()(),i.YNc(13,C0,3,5,"button",11),i.qZA()()()),2&e&&(i.xp6(2),i.Q6J("ngIf",!t.hidePageSize),i.xp6(3),i.hij(" ",t._intl.getRangeLabel(t.pageIndex,t.pageSize,t.length)," "),i.xp6(1),i.Q6J("ngIf",t.showFirstLastButtons),i.xp6(1),i.Q6J("matTooltip",t._intl.previousPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("matTooltipPosition","above")("disabled",t._previousButtonsDisabled()),i.uIk("aria-label",t._intl.previousPageLabel),i.xp6(3),i.Q6J("matTooltip",t._intl.nextPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("matTooltipPosition","above")("disabled",t._nextButtonsDisabled()),i.uIk("aria-label",t._intl.nextPageLabel),i.xp6(3),i.Q6J("ngIf",t.showFirstLastButtons))},dependencies:[w.sg,w.O5,It,nr,ad,Uc,Ha],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{display:inline-block;width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}"],encapsulation:2,changeDetection:0}),n})(),Vs=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[pC],imports:[w.ez,ta,Uu,qu,ct]}),n})();var gC=x(1005);const _C=["mat-menu-item",""];function xg(n,s){1&n&&(i.O4$(),i.TgZ(0,"svg",2),i._UZ(1,"polygon",3),i.qZA())}const A0=["*"];function v0(n,s){if(1&n){const e=i.EpF();i.TgZ(0,"div",0),i.NdJ("keydown",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l._handleKeydown(r))})("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.closed.emit("click"))})("@transformMenu.start",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l._onAnimationStart(r))})("@transformMenu.done",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l._onAnimationDone(r))}),i.TgZ(1,"div",1),i.Hsn(2),i.qZA()()}if(2&n){const e=i.oxw();i.Q6J("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),i.uIk("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const Mg={transformMenu:di("transformMenu",[Rt("void",Re({opacity:0,transform:"scale(0.8)"})),Tt("void => enter",At("120ms cubic-bezier(0, 0, 0.2, 1)",Re({opacity:1,transform:"scale(1)"}))),Tt("* => void",At("100ms 25ms linear",Re({opacity:0})))]),fadeInItems:di("fadeInItems",[Rt("showing",Re({opacity:1})),Tt("void => *",[Re({opacity:0}),At("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},T0=new i.OlP("MatMenuContent"),Sg=new i.OlP("MAT_MENU_PANEL"),D0=Xr(hn(class{}));let Vl=(()=>{class n extends D0{constructor(e,t,r,l,d){super(),this._elementRef=e,this._document=t,this._focusMonitor=r,this._parentMenu=l,this._changeDetectorRef=d,this.role="menuitem",this._hovered=new Te.x,this._focused=new Te.x,this._highlighted=!1,this._triggersSubmenu=!1,l?.addItem?.(this)}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),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(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const e=this._elementRef.nativeElement.cloneNode(!0),t=e.querySelectorAll("mat-icon, .material-icons");for(let r=0;r{class n{constructor(e,t,r,l){this._elementRef=e,this._ngZone=t,this._defaultOptions=r,this._changeDetectorRef=l,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new i.n_E,this._tabSubscription=Dt.w0.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new Te.x,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new i.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+CC++}get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(e){this._overlapTrigger=Ne(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=Ne(e)}set panelClass(e){const t=this._previousPanelClass;t&&t.length&&t.split(" ").forEach(r=>{this._classList[r]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(r=>{this._classList[r]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(e){this.panelClass=e}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new Al(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Nt(this._directDescendantItems),(0,pi.w)(e=>(0,xi.T)(...e.map(t=>t._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{const t=this._keyManager;if("enter"===this._panelAnimationState&&t.activeItem?._hasFocus()){const r=e.toArray(),l=Math.max(0,Math.min(r.length-1,t.activeItemIndex||0));r[l]&&!r[l].disabled?t.setActiveItem(l):t.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(Nt(this._directDescendantItems),(0,pi.w)(t=>(0,xi.T)(...t.map(r=>r._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const t=e.keyCode,r=this._keyManager;switch(t){case 27:_n(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(38===t||40===t)&&r.setFocusOrigin("keyboard"),void r.onKeydown(e)}e.stopPropagation()}focusFirstItem(e="program"){this._ngZone.onStable.pipe((0,it.q)(1)).subscribe(()=>{let t=null;if(this._directDescendantItems.length&&(t=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!t||!t.contains(document.activeElement)){const r=this._keyManager;r.setFocusOrigin(e).setFirstItemActive(),!r.activeItem&&t&&t.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const t=Math.min(this._baseElevation+e,24),r=`${this._elevationPrefix}${t}`,l=Object.keys(this._classList).find(d=>d.startsWith(this._elevationPrefix));(!l||l===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[r]=!0,this._previousElevation=r)}setPositionClasses(e=this.xPosition,t=this.yPosition){const r=this._classList;r["mat-menu-before"]="before"===e,r["mat-menu-after"]="after"===e,r["mat-menu-above"]="above"===t,r["mat-menu-below"]="below"===t,this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(Nt(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(bC),i.Y36(i.sBO))},n.\u0275dir=i.lG2({type:n,contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,T0,5),i.Suo(r,Vl,5),i.Suo(r,Vl,4)),2&e){let l;i.iGM(l=i.CRH())&&(t.lazyContent=l.first),i.iGM(l=i.CRH())&&(t._allItems=l),i.iGM(l=i.CRH())&&(t.items=l)}},viewQuery:function(e,t){if(1&e&&i.Gf(i.Rgc,5),2&e){let r;i.iGM(r=i.CRH())&&(t.templateRef=r.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),n})(),Fp=(()=>{class n extends cd{constructor(e,t,r,l){super(e,t,r,l),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(bC),i.Y36(i.sBO))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,t){2&e&&i.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[i._Bn([{provide:Sg,useExisting:n}]),i.qOj],ngContentSelectors:A0,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(e,t){1&e&&(i.F$t(),i.YNc(0,v0,3,6,"ng-template"))},dependencies:[w.mk],styles:['mat-menu{display:none}.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;position:relative}.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;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}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}'],encapsulation:2,data:{animation:[Mg.transformMenu,Mg.fadeInItems]},changeDetection:0}),n})();const wC=new i.OlP("mat-menu-scroll-strategy"),_E={provide:wC,deps:[Vn],useFactory:function H0(n){return()=>n.scrollStrategies.reposition()}},k0=Ts({passive:!0});let bE=(()=>{class n{constructor(e,t,r,l,d,o,a,c,u){this._overlay=e,this._element=t,this._viewContainerRef=r,this._menuItemInstance=o,this._dir=a,this._focusMonitor=c,this._ngZone=u,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=Dt.w0.EMPTY,this._hoverSubscription=Dt.w0.EMPTY,this._menuCloseSubscription=Dt.w0.EMPTY,this._handleTouchStart=h=>{du(h)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new i.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new i.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=l,this._parentMaterialMenu=d instanceof cd?d:void 0,t.nativeElement.addEventListener("touchstart",this._handleTouchStart,k0),o&&(o._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(t=>{this._destroyMenu(t),("click"===t||"tab"===t)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(t)})))}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,k0),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(){const e=this.menu;if(this._menuOpen||!e)return;const t=this._createOverlay(e),r=t.getConfig(),l=r.positionStrategy;this._setPosition(e,l),r.hasBackdrop=e.hasBackdrop??!this.triggersSubmenu(),t.attach(this._getPortal(e)),e.lazyContent&&e.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(e),e instanceof cd&&(e._startAnimation(),e._directDescendantItems.changes.pipe(Ge(e.close)).subscribe(()=>{l.withLockedPosition(!1).reapplyLastPosition(),l.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;const t=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,t instanceof cd?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe((0,Ze.h)(r=>"void"===r.toState),(0,it.q)(1),Ge(t.lazyContent._attached)).subscribe({next:()=>t.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),t?.lazyContent?.detach())}_initMenu(e){e.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,e.direction=this.dir,this._setMenuElevation(e),e.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(e){if(e.setElevation){let t=0,r=e.parentMenu;for(;r;)t++,r=r.parentMenu;e.setElevation(t)}}_setIsMenuOpen(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e)}_createOverlay(e){if(!this._overlayRef){const t=this._getOverlayConfig(e);this._subscribeToPositions(e,t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(e){return new Dl({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e,t){e.setPositionClasses&&t.positionChanges.subscribe(r=>{const l="start"===r.connectionPair.overlayX?"after":"before",d="top"===r.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>e.setPositionClasses(l,d)):e.setPositionClasses(l,d)})}_setPosition(e,t){let[r,l]="before"===e.xPosition?["end","start"]:["start","end"],[d,o]="above"===e.yPosition?["bottom","top"]:["top","bottom"],[a,c]=[d,o],[u,h]=[r,l],f=0;if(this.triggersSubmenu()){if(h=r="before"===e.xPosition?"start":"end",l=u="end"===r?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const b=this._parentMaterialMenu.items.first;this._parentInnerPadding=b?b._getHostElement().offsetTop:0}f="bottom"===d?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(a="top"===d?"bottom":"top",c="top"===o?"bottom":"top");t.withPositions([{originX:r,originY:a,overlayX:u,overlayY:d,offsetY:f},{originX:l,originY:a,overlayX:h,overlayY:d,offsetY:f},{originX:r,originY:c,overlayX:u,overlayY:o,offsetY:-f},{originX:l,originY:c,overlayX:h,overlayY:o,offsetY:-f}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),t=this._overlayRef.detachments(),r=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,Ae.of)(),l=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,Ze.h)(d=>d!==this._menuItemInstance),(0,Ze.h)(()=>this._menuOpen)):(0,Ae.of)();return(0,xi.T)(e,r,l,t)}_handleMousedown(e){Ss(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){const t=e.keyCode;(13===t||32===t)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===t&&"ltr"===this.dir||37===t&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,Ze.h)(e=>e===this._menuItemInstance&&!e.disabled),(0,gC.g)(0,qc)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof cd&&this.menu._isAnimating?this.menu._animationDone.pipe((0,it.q)(1),(0,gC.g)(0,qc),Ge(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new Hr(e.templateRef,this._viewContainerRef)),this._portal}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Vn),i.Y36(i.SBq),i.Y36(i.s_b),i.Y36(wC),i.Y36(Sg,8),i.Y36(Vl,10),i.Y36(_i,8),i.Y36(tr),i.Y36(i.R0b))},n.\u0275dir=i.lG2({type:n,hostVars:3,hostBindings:function(e,t){1&e&&i.NdJ("click",function(l){return t._handleClick(l)})("mousedown",function(l){return t._handleMousedown(l)})("keydown",function(l){return t._handleKeydown(l)}),2&e&&i.uIk("aria-haspopup",t.menu?"menu":null)("aria-expanded",t.menuOpen||null)("aria-controls",t.menuOpen?t.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),n})(),AC=(()=>{class n extends bE{}return n.\u0275fac=function(){let s;return function(t){return(s||(s=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[i.qOj]}),n})(),Eg=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[_E],imports:[w.ez,ct,Dr,Pl,wn,ct]}),n})();const yE=["*"];let Dg;function jp(n){return function CE(){if(void 0===Dg&&(Dg=null,typeof window<"u")){const n=window;void 0!==n.trustedTypes&&(Dg=n.trustedTypes.createPolicy("angular#components",{createHTML:s=>s}))}return Dg}()?.createHTML(n)||n}function Gu(n){return Error(`Unable to find icon with the name "${n}"`)}function Hg(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function Wu(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}class Lo{constructor(s,e,t){this.url=s,this.svgText=e,this.options=t}}let Io=(()=>{class n{constructor(e,t,r,l){this._httpClient=e,this._sanitizer=t,this._errorHandler=l,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=r}addSvgIcon(e,t,r){return this.addSvgIconInNamespace("",e,t,r)}addSvgIconLiteral(e,t,r){return this.addSvgIconLiteralInNamespace("",e,t,r)}addSvgIconInNamespace(e,t,r,l){return this._addSvgIconConfig(e,t,new Lo(r,null,l))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,t,r,l){const d=this._sanitizer.sanitize(i.q3G.HTML,r);if(!d)throw Wu(r);const o=jp(d);return this._addSvgIconConfig(e,t,new Lo("",o,l))}addSvgIconSet(e,t){return this.addSvgIconSetInNamespace("",e,t)}addSvgIconSetLiteral(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}addSvgIconSetInNamespace(e,t,r){return this._addSvgIconSetConfig(e,new Lo(t,null,r))}addSvgIconSetLiteralInNamespace(e,t,r){const l=this._sanitizer.sanitize(i.q3G.HTML,t);if(!l)throw Wu(t);const d=jp(l);return this._addSvgIconSetConfig(e,new Lo("",d,r))}registerFontClassAlias(e,t=e){return this._fontCssClassesByAlias.set(e,t),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const t=this._sanitizer.sanitize(i.q3G.RESOURCE_URL,e);if(!t)throw Hg(e);const r=this._cachedIconsByUrl.get(t);return r?(0,Ae.of)($u(r)):this._loadSvgIconFromConfig(new Lo(e,null)).pipe((0,Di.b)(l=>this._cachedIconsByUrl.set(t,l)),(0,mt.U)(l=>$u(l)))}getNamedSvgIcon(e,t=""){const r=TC(t,e);let l=this._svgIconConfigs.get(r);if(l)return this._getSvgFromConfig(l);if(l=this._getIconConfigFromResolvers(t,e),l)return this._svgIconConfigs.set(r,l),this._getSvgFromConfig(l);const d=this._iconSetConfigs.get(t);return d?this._getSvgFromIconSetConfigs(e,d):(0,vi._)(Gu(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?(0,Ae.of)($u(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe((0,mt.U)(t=>$u(t)))}_getSvgFromIconSetConfigs(e,t){const r=this._extractIconWithNameFromAnySet(e,t);return r?(0,Ae.of)(r):la(t.filter(d=>!d.svgText).map(d=>this._loadSvgIconSetFromConfig(d).pipe((0,cn.K)(o=>{const c=`Loading icon set URL: ${this._sanitizer.sanitize(i.q3G.RESOURCE_URL,d.url)} failed: ${o.message}`;return this._errorHandler.handleError(new Error(c)),(0,Ae.of)(null)})))).pipe((0,mt.U)(()=>{const d=this._extractIconWithNameFromAnySet(e,t);if(!d)throw Gu(e);return d}))}_extractIconWithNameFromAnySet(e,t){for(let r=t.length-1;r>=0;r--){const l=t[r];if(l.svgText&&l.svgText.toString().indexOf(e)>-1){const d=this._svgElementFromConfig(l),o=this._extractSvgIconFromSet(d,e,l.options);if(o)return o}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe((0,Di.b)(t=>e.svgText=t),(0,mt.U)(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?(0,Ae.of)(null):this._fetchIcon(e).pipe((0,Di.b)(t=>e.svgText=t))}_extractSvgIconFromSet(e,t,r){const l=e.querySelector(`[id="${t}"]`);if(!l)return null;const d=l.cloneNode(!0);if(d.removeAttribute("id"),"svg"===d.nodeName.toLowerCase())return this._setSvgAttributes(d,r);if("symbol"===d.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(d),r);const o=this._svgElementFromString(jp(""));return o.appendChild(d),this._setSvgAttributes(o,r)}_svgElementFromString(e){const t=this._document.createElement("DIV");t.innerHTML=e;const r=t.querySelector("svg");if(!r)throw Error(" tag not found");return r}_toSvgElement(e){const t=this._svgElementFromString(jp("")),r=e.attributes;for(let l=0;ljp(c)),Zo(()=>this._inProgressUrlFetches.delete(d)),(0,Js.B)());return this._inProgressUrlFetches.set(d,a),a}_addSvgIconConfig(e,t,r){return this._svgIconConfigs.set(TC(e,t),r),this}_addSvgIconSetConfig(e,t){const r=this._iconSetConfigs.get(e);return r?r.push(t):this._iconSetConfigs.set(e,[t]),this}_svgElementFromConfig(e){if(!e.svgElement){const t=this._svgElementFromString(e.svgText);this._setSvgAttributes(t,e.options),e.svgElement=t}return e.svgElement}_getIconConfigFromResolvers(e,t){for(let r=0;rs?s.pathname+s.search:""}}}),Zu=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],O0=Zu.map(n=>`[${n}]`).join(", "),TE=/^url\(['"]?#(.*?)['"]?\)$/;let ki=(()=>{class n extends vE{constructor(e,t,r,l,d,o){super(e),this._iconRegistry=t,this._location=l,this._errorHandler=d,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=Dt.w0.EMPTY,o&&(o.color&&(this.color=this.defaultColor=o.color),o.fontSet&&(this.fontSet=o.fontSet)),r||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=Ne(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const t=this._cleanupFontValue(e);t!==this._fontSet&&(this._fontSet=t,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const t=this._cleanupFontValue(e);t!==this._fontIcon&&(this._fontIcon=t,this._updateFontIconClasses())}_splitIconName(e){if(!e)return["",""];const t=e.split(":");switch(t.length){case 1:return["",t[0]];case 2:return t;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.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(e){this._clearSvgElement();const t=this._location.getPathname();this._previousPath=t,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(t),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let t=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();t--;){const r=e.childNodes[t];(1!==r.nodeType||"svg"===r.nodeName.toLowerCase())&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,t=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(r=>r.length>0);this._previousFontSetClass.forEach(r=>e.classList.remove(r)),t.forEach(r=>e.classList.add(r)),this._previousFontSetClass=t,this.fontIcon!==this._previousFontIconClass&&!t.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return"string"==typeof e?e.trim().split(" ")[0]:e}_prependPathToReferences(e){const t=this._elementsWithExternalReferences;t&&t.forEach((r,l)=>{r.forEach(d=>{l.setAttribute(d.name,`url('${e}#${d.value}')`)})})}_cacheChildrenWithExternalReferences(e){const t=e.querySelectorAll(O0),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let l=0;l{const o=t[l],a=o.getAttribute(d),c=a?a.match(TE):null;if(c){let u=r.get(o);u||(u=[],r.set(o,u)),u.push({name:d,value:c[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[t,r]=this._splitIconName(e);t&&(this._svgNamespace=t),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,t).pipe((0,it.q)(1)).subscribe(l=>this._setSvgElement(l),l=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${t}:${r}! ${l.message}`))})}}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Io),i.$8M("aria-hidden"),i.Y36(L0),i.Y36(i.qLn),i.Y36(R0,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,t){2&e&&(i.uIk("data-mat-icon-type",t._usingFontIcon()?"font":"svg")("data-mat-icon-name",t._svgName||t.fontIcon)("data-mat-icon-namespace",t._svgNamespace||t.fontSet),i.ekj("mat-icon-inline",t.inline)("mat-icon-no-color","primary"!==t.color&&"accent"!==t.color&&"warn"!==t.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[i.qOj],ngContentSelectors:yE,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[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}"],encapsulation:2,changeDetection:0}),n})(),Nl=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[ct,ct]}),n})(),MC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[Vs,Eg,Nl,ta,Ks,w.ez]}),n})();var B0=x(5861);function V0(n,s){}class Pg{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0}}let kg=(()=>{class n extends So{constructor(e,t,r,l,d,o,a,c){super(),this._elementRef=e,this._focusTrapFactory=t,this._config=l,this._interactivityChecker=d,this._ngZone=o,this._overlayRef=a,this._focusMonitor=c,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=u=>{this._portalOutlet.hasAttached();const h=this._portalOutlet.attachDomPortal(u);return this._contentAttached(),h},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=r}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();const t=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),t}attachTemplatePortal(e){this._portalOutlet.hasAttached();const t=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),t}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const r=()=>{e.removeEventListener("blur",r),e.removeEventListener("mousedown",r),e.removeAttribute("tabindex")};e.addEventListener("blur",r),e.addEventListener("mousedown",r)})),e.focus(t)}_focusByCssSelector(e,t){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,t)}_trapFocus(){const e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(t=>{t||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const e=this._config.restoreFocus;let t=null;if("string"==typeof e?t=this._document.querySelector(e):"boolean"==typeof e?t=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(t=e),this._config.restoreFocus&&t&&"function"==typeof t.focus){const r=Lc(),l=this._elementRef.nativeElement;(!r||r===this._document.body||r===l||l.contains(r))&&(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,t=Lc();return e===t||e.contains(t)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=Lc())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(jc),i.Y36(w.K0,8),i.Y36(Pg),i.Y36(cu),i.Y36(i.R0b),i.Y36(Hl),i.Y36(tr))},n.\u0275cmp=i.Xpm({type:n,selectors:[["cdk-dialog-container"]],viewQuery:function(e,t){if(1&e&&i.Gf(Ma,7),2&e){let r;i.iGM(r=i.CRH())&&(t._portalOutlet=r.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(e,t){2&e&&i.uIk("id",t._config.id||null)("role",t._config.role)("aria-modal",t._config.ariaModal)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null)},features:[i.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&i.YNc(0,V0,0,0,"ng-template",0)},dependencies:[Ma],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),n})();class Yp{constructor(s,e){this.overlayRef=s,this.config=e,this.closed=new Te.x,this.disableClose=e.disableClose,this.backdropClick=s.backdropClick(),this.keydownEvents=s.keydownEvents(),this.outsidePointerEvents=s.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(t=>{27===t.keyCode&&!this.disableClose&&!_n(t)&&(t.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(s,e){if(this.containerInstance){const t=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this.overlayRef.dispose(),t.next(s),t.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(s="",e=""){return this.overlayRef.updateSize({width:s,height:e}),this}addPanelClass(s){return this.overlayRef.addPanelClass(s),this}removePanelClass(s){return this.overlayRef.removePanelClass(s),this}}const N0=new i.OlP("DialogScrollStrategy"),Pa=new i.OlP("DialogData"),F0=new i.OlP("DefaultDialogConfig"),j0={provide:N0,deps:[Vn],useFactory:function Rg(n){return()=>n.scrollStrategies.block()}};let Rr=0,SC=(()=>{class n{constructor(e,t,r,l,d,o){this._overlay=e,this._injector=t,this._defaultOptions=r,this._parentDialog=l,this._overlayContainer=d,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Te.x,this._afterOpenedAtThisLevel=new Te.x,this._ariaHiddenElements=new Map,this.afterAllClosed=bi(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Nt(void 0))),this._scrollStrategy=o}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}open(e,t){(t={...this._defaultOptions||new Pg,...t}).id=t.id||"cdk-dialog-"+Rr++,t.id&&this.getDialogById(t.id);const l=this._getOverlayConfig(t),d=this._overlay.create(l),o=new Yp(d,t),a=this._attachContainer(d,o,t);return o.containerInstance=a,this._attachDialogContent(e,o,a,t),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(o),o.closed.subscribe(()=>this._removeOpenDialog(o,!0)),this.afterOpened.next(o),o}closeAll(){Ju(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){Ju(this._openDialogsAtThisLevel,e=>{!1===e.config.closeOnDestroy&&this._removeOpenDialog(e,!1)}),Ju(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){const t=new Dl({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}_attachContainer(e,t,r){const l=r.injector??r.viewContainerRef?.injector,d=[{provide:Pg,useValue:r},{provide:Yp,useValue:t},{provide:Hl,useValue:e}];let o;r.container?"function"==typeof r.container?o=r.container:(o=r.container.type,d.push(...r.container.providers(r))):o=kg;const a=new xa(o,r.viewContainerRef,i.zs3.create({parent:l||this._injector,providers:d}),r.componentFactoryResolver);return e.attach(a).instance}_attachDialogContent(e,t,r,l){const d=this._createInjector(l,t,r);if(e instanceof i.Rgc){let o={$implicit:l.data,dialogRef:t};l.templateContext&&(o={...o,..."function"==typeof l.templateContext?l.templateContext():l.templateContext}),r.attachTemplatePortal(new Hr(e,null,o,d))}else{const o=r.attachComponentPortal(new xa(e,l.viewContainerRef,d,l.componentFactoryResolver));t.componentInstance=o.instance}}_createInjector(e,t,r){const l=e&&e.viewContainerRef&&e.viewContainerRef.injector,d=[{provide:Pa,useValue:e.data},{provide:Yp,useValue:t}];return e.providers&&("function"==typeof e.providers?d.push(...e.providers(t,e,r)):d.push(...e.providers)),e.direction&&(!l||!l.get(_i,null,i.XFs.Optional))&&d.push({provide:_i,useValue:{value:e.direction,change:(0,Ae.of)()}}),i.zs3.create({parent:e.injector||l||this._injector,providers:d})}_removeOpenDialog(e,t){const r=this.openDialogs.indexOf(e);r>-1&&(this.openDialogs.splice(r,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((l,d)=>{l?d.setAttribute("aria-hidden",l):d.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),t&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const t=e.parentElement.children;for(let r=t.length-1;r>-1;r--){const l=t[r];l!==e&&"SCRIPT"!==l.nodeName&&"STYLE"!==l.nodeName&&!l.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(l,l.getAttribute("aria-hidden")),l.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Vn),i.LFG(i.zs3),i.LFG(F0,8),i.LFG(n,12),i.LFG(Mu),i.LFG(N0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();function Ju(n,s){let e=n.length;for(;e--;)s(n[e])}let Y0=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[SC,j0],imports:[Pl,Rs,ep,Rs]}),n})();function U0(n,s){}const Oo={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},EC={dialogContainer:di("dialogContainer",[Rt("void, exit",Re({opacity:0,transform:"scale(0.7)"})),Rt("enter",Re({transform:"none"})),Tt("* => enter",up([At("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",Re({transform:"none",opacity:1})),An("@*",Su(),{optional:!0})]),Oo),Tt("* => void, * => exit",up([At("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",Re({opacity:0})),An("@*",Su(),{optional:!0})]),Oo)])};class dd{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="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0,this.enterAnimationDuration=Oo.params.enterAnimationDuration,this.exitAnimationDuration=Oo.params.exitAnimationDuration}}let z0=(()=>{class n extends kg{constructor(e,t,r,l,d,o,a,c){super(e,t,r,l,d,o,a,c),this._animationStateChanged=new i.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(jc),i.Y36(w.K0,8),i.Y36(dd),i.Y36(cu),i.Y36(i.R0b),i.Y36(Hl),i.Y36(tr))},n.\u0275cmp=i.Xpm({type:n,selectors:[["ng-component"]],features:[i.qOj],decls:0,vars:0,template:function(e,t){},encapsulation:2}),n})(),DC=(()=>{class n extends z0{constructor(e,t,r,l,d,o,a,c,u){super(e,t,r,l,d,o,a,u),this._changeDetectorRef=c,this._state="enter"}_onAnimationDone({toState:e,totalTime:t}){"enter"===e?this._openAnimationDone(t):"exit"===e&&this._animationStateChanged.next({state:"closed",totalTime:t})}_onAnimationStart({toState:e,totalTime:t}){"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:t}):("exit"===e||"void"===e)&&this._animationStateChanged.next({state:"closing",totalTime:t})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||Oo.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||Oo.params.exitAnimationDuration}}}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(jc),i.Y36(w.K0,8),i.Y36(dd),i.Y36(cu),i.Y36(i.R0b),i.Y36(Hl),i.Y36(i.sBO),i.Y36(tr))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(e,t){1&e&&i.WFA("@dialogContainer.start",function(l){return t._onAnimationStart(l)})("@dialogContainer.done",function(l){return t._onAnimationDone(l)}),2&e&&(i.Ikx("id",t._config.id),i.uIk("aria-modal",t._config.ariaModal)("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),i.d8E("@dialogContainer",t._getAnimationState()))},features:[i.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&i.YNc(0,U0,0,0,"ng-template",0)},dependencies:[Ma],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.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.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}"],encapsulation:2,data:{animation:[EC.dialogContainer]}}),n})();class nn{constructor(s,e,t){this._ref=s,this._containerInstance=t,this._afterOpened=new Te.x,this._beforeClosed=new Te.x,this._state=0,this.disableClose=e.disableClose,this.id=s.id,t._animationStateChanged.pipe((0,Ze.h)(r=>"opened"===r.state),(0,it.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),t._animationStateChanged.pipe((0,Ze.h)(r=>"closed"===r.state),(0,it.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),s.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,xi.T)(this.backdropClick(),this.keydownEvents().pipe((0,Ze.h)(r=>27===r.keyCode&&!this.disableClose&&!_n(r)))).subscribe(r=>{this.disableClose||(r.preventDefault(),function q0(n,s,e){n._closeInteractionType=s,n.close(e)}(this,"keydown"===r.type?"keyboard":"mouse"))})}close(s){this._result=s,this._containerInstance._animationStateChanged.pipe((0,Ze.h)(e=>"closing"===e.state),(0,it.q)(1)).subscribe(e=>{this._beforeClosed.next(s),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(s){let e=this._ref.config.positionStrategy;return s&&(s.left||s.right)?s.left?e.left(s.left):e.right(s.right):e.centerHorizontally(),s&&(s.top||s.bottom)?s.top?e.top(s.top):e.bottom(s.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(s="",e=""){return this._ref.updateSize(s,e),this}addPanelClass(s){return this._ref.addPanelClass(s),this}removePanelClass(s){return this._ref.removePanelClass(s),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}const ar=new i.OlP("MatDialogData"),G0=new i.OlP("mat-dialog-default-options"),Up=new i.OlP("mat-dialog-scroll-strategy"),Lg={provide:Up,deps:[Vn],useFactory:function HC(n){return()=>n.scrollStrategies.block()}};let Ns=0,W0=(()=>{class n{constructor(e,t,r,l,d,o,a,c,u,h){this._overlay=e,this._defaultOptions=r,this._parentDialog=l,this._dialogRefConstructor=a,this._dialogContainerType=c,this._dialogDataToken=u,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Te.x,this._afterOpenedAtThisLevel=new Te.x,this._idPrefix="mat-dialog-",this.afterAllClosed=bi(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Nt(void 0))),this._scrollStrategy=o,this._dialog=t.get(SC)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(e,t){let r;(t={...this._defaultOptions||new dd,...t}).id=t.id||`${this._idPrefix}${Ns++}`,t.scrollStrategy=t.scrollStrategy||this._scrollStrategy();const l=this._dialog.open(e,{...t,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:dd,useValue:t},{provide:Pg,useValue:t}]},templateContext:()=>({dialogRef:r}),providers:(d,o,a)=>(r=new this._dialogRefConstructor(d,t,a),r.updatePosition(t?.position),[{provide:this._dialogContainerType,useValue:a},{provide:this._dialogDataToken,useValue:o.data},{provide:this._dialogRefConstructor,useValue:r}])});return r.componentInstance=l.componentInstance,this.openDialogs.push(r),this.afterOpened.next(r),r.afterClosed().subscribe(()=>{const d=this.openDialogs.indexOf(r);d>-1&&(this.openDialogs.splice(d,1),this.openDialogs.length||this._getAfterAllClosed().next())}),r}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let t=e.length;for(;t--;)e[t].close()}}return n.\u0275fac=function(e){i.$Z()},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),fn=(()=>{class n extends W0{constructor(e,t,r,l,d,o,a,c){super(e,t,l,o,a,d,nn,DC,ar,c)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Vn),i.LFG(i.zs3),i.LFG(w.Ye,8),i.LFG(G0,8),i.LFG(Up),i.LFG(n,12),i.LFG(Mu),i.LFG(i.QbO,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),$0=0,Rn=(()=>{class n{constructor(e,t,r){this._dialogRef=e,this._elementRef=t,this._dialog=r,this.id="mat-dialog-title-"+$0++}ngOnInit(){this._dialogRef||(this._dialogRef=function SE(n,s){let e=n.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-dialog-container");)e=e.parentElement;return e?s.find(t=>t.id===e.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const e=this._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=this.id)})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(nn,8),i.Y36(i.SBq),i.Y36(fn))},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,t){2&e&&i.Ikx("id",t.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),n})(),Yn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),n})(),vn=(()=>{class n{constructor(){this.align="start"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(e,t){2&e&&i.ekj("mat-dialog-actions-align-center","center"===t.align)("mat-dialog-actions-align-end","end"===t.align)},inputs:{align:"align"}}),n})(),Qu=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[fn,Lg],imports:[Y0,Pl,Rs,ct,ct]}),n})();var Z0=x(4327);const Bo=[5,10,25,100];function qp(){return(qp=(0,B0.Z)(function*(n,s){yield HE(n),s()})).apply(this,arguments)}function HE(n){return new Promise(s=>setTimeout(s,n))}function Ni(){const n=new dd;return n.disableClose=!0,n.autoFocus=!1,n}const Og=new Intl.Collator("cs",{numeric:!0});function Fs(n,s,e){const t=s.active,r=s.direction;return t&&""!==r?n.sort((l,d)=>{const o=e(l,t),a=e(d,t);return Og.compare(o,a)*("asc"===r?1:-1)}):n}function Wp(n,s,e,t,r){s=s.toLowerCase();let l="";return e.forEach(d=>{l+=";"+t(n,d)}),r&&(l+=";"+t(n,"uuid")),l.toLowerCase().includes(s)}function Ku(n,s){let e="";return n?.forEach(t=>{t.friendlyName===s&&(e=t.value)}),e}function ka(n,s,e){const t=[],r=["checkbox","select","edit","menu","cite","extend","recent"];return s=s.filter(l=>!r.includes(l)),n.forEach(l=>{const d={};s.forEach(o=>{d[o]=(e(l,o)??"").split('"').join("''").trim()}),t.push(d)}),t}function Ra(n,s="csv",e="export"){if("csv"===s){const t=(a,c)=>null===c?"":c,r=Object.keys(n[0]),l=n.map(a=>r.map(c=>JSON.stringify(a[c],t)).join(","));l.unshift(r.join(",").split(" ").join("_").split('"').join("''"));const d=l.join("\r\n"),o=new Blob([d],{type:"text/csv"});(0,Z0.saveAs)(o,`${e}.${s}`)}}const Bg="GUI_CONFIG.PREF_PAGE_SIZE.";let Vg=(()=>{class n{getString(e){return localStorage.getItem(e)}getNumber(e){return parseInt(localStorage.getItem(e),10)}setNumber(e,t){localStorage.setItem(e,t.toString())}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),FE=(()=>{class n{constructor(e){this.guiConfigService=e}getTablePageSize(e){const t=this.guiConfigService.getNumber(Bg+e);if(!isNaN(t))return t;const r=this.guiConfigService.getNumber("GUI_CONFIG.PREF_PAGE_SIZE");return isNaN(r)?10:r}setTablePageSize(e,t){this.guiConfigService.setNumber(Bg+e,t)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Vg))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function BP(n,s){if(1&n){const e=i.EpF();i.TgZ(0,"button",7),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.exportAllData.emit("csv"))}),i._uU(1),i.ALo(2,"translate"),i.qZA()}2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.ALL_DATA")," "))}let VP=(()=>{class n{constructor(){this.exportDisplayedData=new i.vpe,this.exportAllData=new i.vpe}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-table-options"]],inputs:{allowExportAll:"allowExportAll"},outputs:{exportDisplayedData:"exportDisplayedData",exportAllData:"exportAllData"},decls:19,vars:10,consts:[[1,"position-right"],["mat-icon-button","",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"matMenuTriggerFor"],["exportOptions","matMenu"],["xPosition","before"],["selectData","matMenu"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"click",4,"ngIf"]],template:function(e,t){if(1&e&&(i.TgZ(0,"div",0)(1,"button",1)(2,"mat-icon"),i._uU(3,"more_vert"),i.qZA()(),i.TgZ(4,"mat-menu",null,2)(6,"button",3),i._uU(7),i.ALo(8,"translate"),i.qZA()(),i.TgZ(9,"mat-menu",null,4)(11,"button",3),i._uU(12,"Csv"),i.qZA()(),i.TgZ(13,"mat-menu",5,6)(15,"button",7),i.NdJ("click",function(){return t.exportDisplayedData.emit("csv")}),i._uU(16),i.ALo(17,"translate"),i.qZA(),i.YNc(18,BP,3,3,"button",8),i.qZA()()),2&e){const r=i.MAs(5),l=i.MAs(10),d=i.MAs(14);i.xp6(1),i.Q6J("matMenuTriggerFor",r),i.xp6(5),i.Q6J("matMenuTriggerFor",l),i.xp6(1),i.hij(" ",i.lcZ(8,6,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.EXPORT_TO_FILE")," "),i.xp6(4),i.Q6J("matMenuTriggerFor",d),i.xp6(5),i.hij(" ",i.lcZ(17,8,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.DISPLAYED_DATA")," "),i.xp6(2),i.Q6J("ngIf",t.allowExportAll)}},dependencies:[Fp,Vl,AC,ki,It,w.O5,tt]}),n})();const NP=["topNav"];function FP(n,s){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-table-options",7),i.NdJ("exportDisplayedData",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.exportDisplayedData.emit(r))})("exportAllData",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.exportAllData.emit(r))}),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("allowExportAll",e.allowExportAll)}}function jP(n,s){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-table-options",7),i.NdJ("exportDisplayedData",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.exportDisplayedData.emit(r))})("exportAllData",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.exportAllData.emit(r))}),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("allowExportAll",e.allowExportAll)}}const YP=["*"];let cs=(()=>{class n{constructor(e){this.tableConfigService=e,this.hideExport=!1,this.pageSizeOptions=Bo,this.dataLength=0,this.allowExportAll=!0,this.exportDisplayedData=new i.vpe,this.exportAllData=new i.vpe,this.pageSize=5}set matPaginator(e){this.paginator=e}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),null===this.pageSizeOptions&&(this.pageSize=5),this.paginator._changePageSize(this.pageSize)}pageChangedTop(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}pageChangedBottom(e){this.paginator.pageSize=e.pageSize,this.paginator.pageIndex=e.pageIndex,this.paginator.page.emit(e),this.pageSize=e.pageSize,this.tableId&&this.tableConfigService.setTablePageSize(this.tableId,e.pageSize),this.topNav.nativeElement.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(FE))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-table-wrapper"]],viewQuery:function(e,t){if(1&e&&(i.Gf(NP,5),i.Gf(Tg,7)),2&e){let r;i.iGM(r=i.CRH())&&(t.topNav=r.first),i.iGM(r=i.CRH())&&(t.matPaginator=r.first)}},inputs:{hideExport:"hideExport",pageSizeOptions:"pageSizeOptions",dataLength:"dataLength",tableId:"tableId",allowExportAll:"allowExportAll"},outputs:{exportDisplayedData:"exportDisplayedData",exportAllData:"exportAllData"},ngContentSelectors:YP,decls:10,vars:9,consts:[[1,"card-body","pt-0"],[1,"row","justify-content-end","align-items-center"],["topNav",""],[3,"length","pageSizeOptions","pageSize","page"],[3,"allowExportAll","exportDisplayedData","exportAllData",4,"ngIf"],[1,"overflow-auto","border-top"],[3,"length","pageIndex","pageSizeOptions","pageSize","page"],[3,"allowExportAll","exportDisplayedData","exportAllData"]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0)(1,"div",1,2)(3,"mat-paginator",3),i.NdJ("page",function(l){return t.pageChangedTop(l)}),i.qZA(),i.YNc(4,FP,1,1,"perun-web-apps-table-options",4),i.qZA(),i.TgZ(5,"div",5),i.Hsn(6),i.qZA(),i.TgZ(7,"div",1)(8,"mat-paginator",6),i.NdJ("page",function(l){return t.pageChangedBottom(l)}),i.qZA(),i.YNc(9,jP,1,1,"perun-web-apps-table-options",4),i.qZA()()),2&e&&(i.xp6(3),i.Q6J("length",t.dataLength)("pageSizeOptions",t.pageSizeOptions)("pageSize",t.pageSize),i.xp6(1),i.Q6J("ngIf",!t.hideExport),i.xp6(4),i.Q6J("length",t.paginator.length)("pageIndex",t.paginator.pageIndex)("pageSizeOptions",t.paginator.pageSizeOptions)("pageSize",t.paginator.pageSize),i.xp6(1),i.Q6J("ngIf",!t.hideExport))},dependencies:[Tg,w.O5,VP]}),n})(),yn=(()=>{class n{constructor(){this.branding=""}setInstanceConfig(e){this.instanceConfig=e}setDefaultConfig(e){this.defaultConfig=e}getAppsConfig(){return this.appsConfig}setAppsConfig(e){this.appsConfig=e}setPerunPrincipal(e){this.principal=e}getPerunPrincipal(){return this.principal}getInitialPageId(){return this.initialPageId}setInitialPageId(e){this.initialPageId=e}getLoginAttributeNames(){return this.getProperty("login_namespace_attributes")}getMemberProfileAttributeNames(){return this.getProperty("member_profile_attributes_friendly_names")}setBanding(e){this.branding=e}getProperty(e){if(!this.instanceConfig||!this.defaultConfig)return null;const t=[this.instanceConfig?.brandings?.[this.branding],this.instanceConfig],r=this.defaultConfig[e];let l=null;for(const d of t)d&&null==l&&(l=d[e]);return null===l?r:this.addMissingValuesToProperty(l,r)}addMissingValuesToProperty(e,t){if("object"!=typeof e||Array.isArray(e)||null==e){if(null!=e)return e}else for(const r of Object.keys(t))t[r]=this.addMissingValuesToProperty(e[r],t[r]);return t}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var $p=x(1214);let Xu=(()=>{class n{constructor(e,t,r,l,d){this.injector=e,this.store=t,this.dialog=r,this.route=l,this.oauthService=d,setTimeout(()=>{this.router=this.injector.get(Ji),this.startIdpFilterKeeper()}),this.route.queryParams.subscribe(o=>{o.idpFilter&&(this.filterShortname=String(o.idpFilter))})}loadOidcConfigData(){this.oauthService.configure(this.getClientConfig())}logout(){sessionStorage.getItem("baPrincipal")?(sessionStorage.removeItem("baPrincipal"),sessionStorage.removeItem("basicUsername"),sessionStorage.removeItem("basicPassword"),sessionStorage.setItem("baLogout","true"),this.router.navigate(["/service-access"],{queryParamsHandling:"preserve"})):this.oauthService.logOut()}isLoggedIn(){return this.oauthService.hasValidAccessToken()}getAuthorizationHeaderValue(){return this.oauthService.hasValidAccessToken()?"Bearer "+this.oauthService.getAccessToken():""}startAuthentication(){this.oauthService.loadDiscoveryDocumentAndLogin()}getIdpFilter(){return this.filterShortname}getClientConfig(){const e=this.setIdpFilter(),l=.5+.25*Math.random(),d=e?{acr_values:e}:{},o=this.store.getProperty("oidc_client");if(o.oauth_scopes.split(" ").includes("offline_access")&&o.oauth_offline_access_consent_prompt&&(d.prompt="consent"),(sessionStorage.getItem("mfa_route")||sessionStorage.getItem("mfaProcessed"))&&(d.acr_values="https://refeds.org/profile/mfa"),sessionStorage.getItem("mfa_route")&&(d.prompt?d.prompt+=" login":d.prompt="login",d.max_age="0"),"Linker"===this.store.getProperty("application")){d.prompt?d.prompt+=" login":d.prompt="login";const a=function VC(n,s){const e=s.split("&");for(const t of e){const[r,l]=t.split("=");if(r.includes(n))return l}return""}("idphint",location.search.substring(1));a&&(d.idphint=a)}return{requestAccessToken:!0,issuer:o.oauth_authority,clientId:o.oauth_client_id,redirectUri:o.oauth_redirect_uri,postLogoutRedirectUri:o.oauth_post_logout_redirect_uri,responseType:o.oauth_response_type,scope:o.oauth_scopes,clockSkewInSec:1,timeoutFactor:l,userinfoEndpoint:this.store.getProperty("oidc_client").user_info_endpoint_url,customQueryParams:d}}setIdpFilter(){const e=location.search.length?location.search.substring(1).split("&"):[];this.filterShortname=null;const t=this.store.getProperty("oidc_client").filters;if(!t)return null;let r=null;return e.forEach(l=>{const d=l.split("=");"idpFilter"===d[0]&&t[d[1]]&&(this.filterShortname=d[1],r=t[d[1]])}),t.default&&!r?(this.filterShortname="default",t.default):r}startIdpFilterKeeper(){this.router.events.pipe((0,Ze.h)(e=>e instanceof Wa)).subscribe(()=>{const e={idpFilter:this.getIdpFilter()};this.router.navigate([],{relativeTo:this.route,queryParams:"default"===e.idpFilter?{}:e,queryParamsHandling:"merge",replaceUrl:!0})})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.zs3),i.LFG(yn),i.LFG(fn),i.LFG(Jn),i.LFG($p.Ct))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),UP=(()=>{class n{constructor(e){this.dialogRef=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(nn))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-user-dont-exist-dialog"]],decls:3,vars:3,consts:[["mat-dialog-content","",1,"mt-2","mb-2"]],template:function(e,t){1&e&&(i.TgZ(0,"h2",0),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&e&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.USER_DONT_EXIST.TITLE"),"\n"))},dependencies:[Yn,tt]}),n})();var zP=x(930);function fx(n,s){const e="object"==typeof s;return new Promise((t,r)=>{const l=new zP.Hp({next:d=>{t(d),l.unsubscribe()},error:r,complete:()=>{e?t(s.defaultValue):r(new Ai.K)}});n.subscribe(l)})}function qP(n,s){1&n&&(i.TgZ(0,"mat-icon",2),i._uU(1," info "),i.qZA())}function GP(n,s){1&n&&(i.TgZ(0,"mat-icon",2),i._uU(1," warning "),i.qZA())}function WP(n,s){1&n&&(i.TgZ(0,"mat-icon",2),i._uU(1," dangerous "),i.qZA())}function $P(n,s){1&n&&(i.TgZ(0,"mat-icon",2),i._uU(1," check_circle "),i.qZA())}const ZP=["*"];let na=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-alert"]],inputs:{alert_type:"alert_type"},ngContentSelectors:ZP,decls:6,vars:12,consts:[[1,"perun-alert","d-flex","align-items-flex-start"],["class","perun-alert-icon",4,"ngIf"],[1,"perun-alert-icon"]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0),i.YNc(1,qP,2,0,"mat-icon",1),i.YNc(2,GP,2,0,"mat-icon",1),i.YNc(3,WP,2,0,"mat-icon",1),i.YNc(4,$P,2,0,"mat-icon",1),i.Hsn(5),i.qZA()),2&e&&(i.ekj("warn-alert","warn"===t.alert_type)("error-alert","error"===t.alert_type)("success-alert","success"===t.alert_type)("info-alert","info"===t.alert_type),i.xp6(1),i.Q6J("ngIf","info"===t.alert_type),i.xp6(1),i.Q6J("ngIf","warn"===t.alert_type),i.xp6(1),i.Q6J("ngIf","error"===t.alert_type),i.xp6(1),i.Q6J("ngIf","success"===t.alert_type))},dependencies:[ki,w.O5],styles:[".perun-alert[_ngcontent-%COMP%]{position:relative;padding:.75rem 1.25rem;margin-top:1rem;margin-bottom:1rem}.perun-alert.info-alert[_ngcontent-%COMP%]{font-style:italic;color:gray;text-align:left;border:1px #b3b3b3 solid;border-radius:10px}.perun-alert.warn-alert[_ngcontent-%COMP%]{font-weight:700;text-align:left;border:1px #ececec solid;border-radius:10px;background-color:#ececec}.perun-alert-icon[_ngcontent-%COMP%]{padding-right:2rem}.perun-alert.error-alert[_ngcontent-%COMP%]{text-align:left;border:1px #fedcda solid;border-radius:10px;background-color:#fedcda}.perun-alert.success-alert[_ngcontent-%COMP%]{text-align:left;border:1px #d7ffd7 solid;border-radius:10px;background-color:#d7ffd7}"]}),n})(),JP=(()=>{class n{constructor(e,t){this.dialogRef=e,this.data=t}cancel(){this.dialogRef.close(!1)}submit(){this.dialogRef.close(!0)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(nn),i.Y36(ar))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-mfa-required-dialog"]],decls:15,vars:17,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["alert_type","warn"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"hidden","click"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.qZA(),i.TgZ(3,"div",1)(4,"perun-web-apps-alert",2),i._uU(5),i.ALo(6,"translate"),i.ALo(7,"translate"),i.qZA()(),i.TgZ(8,"div",3)(9,"button",4),i.NdJ("click",function(){return t.cancel()}),i._uU(10),i.ALo(11,"translate"),i.qZA(),i.TgZ(12,"button",5),i.NdJ("click",function(){return t.submit()}),i._uU(13),i.ALo(14,"translate"),i.qZA()()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,7,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.TITLE")),i.xp6(4),i.hij(" ",t.data.mfaRoleException?i.lcZ(6,9,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.INFO_ROLE"):i.lcZ(7,11,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.INFO")," "),i.xp6(4),i.Q6J("hidden",t.data.mfaRoleException),i.xp6(1),i.hij(" ",i.lcZ(11,13,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.CANCEL")," "),i.xp6(2),i.Tol(t.data.mfaRoleException?"ml-auto":"ml-2"),i.xp6(1),i.hij(" ",i.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.STEP_UP")," "))},dependencies:[Rn,Yn,vn,It,na,tt]}),n})(),QP=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-focus-on-mfa-window"]],decls:9,vars:6,consts:[[1,"text-center","custom-dialog"],[1,"align-text-bottom"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"div")(2,"mat-icon",1),i._uU(3," info "),i.qZA(),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.TgZ(6,"div"),i._uU(7),i.ALo(8,"translate"),i.qZA()()),2&e&&(i.xp6(4),i.hij(" ",i.lcZ(5,2,"SHARED_LIB.PERUN.COMPONENTS.FOCUS_ON_MFA_DIALOG.MODAL")," "),i.xp6(3),i.hij(" ",i.lcZ(8,4,"SHARED_LIB.PERUN.COMPONENTS.FOCUS_ON_MFA_DIALOG.MODAL_WARNING")," "))},dependencies:[ki,tt],styles:[".custom-dialog[_ngcontent-%COMP%]{background-color:#000;color:#fffffff2;font-size:1.2rem}"]}),n})(),KP=(()=>{class n{constructor(e,t){this.data=e,this.dialogRef=t}cancel(){this.dialogRef.close(!1)}submit(){window.open(this.data.tokensUrl,"_blank"),this.dialogRef.close(!0)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(ar),i.Y36(nn))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-no-mfa-tokens-dialog"]],decls:14,vars:12,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["alert_type","warn"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.qZA(),i.TgZ(3,"div",1)(4,"perun-web-apps-alert",2),i._uU(5),i.ALo(6,"translate"),i.qZA()(),i.TgZ(7,"div",3)(8,"button",4),i.NdJ("click",function(){return t.cancel()}),i._uU(9),i.ALo(10,"translate"),i.qZA(),i.TgZ(11,"button",5),i.NdJ("click",function(){return t.submit()}),i._uU(12),i.ALo(13,"translate"),i.qZA()()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.TITLE")),i.xp6(4),i.hij(" ",i.lcZ(6,6,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.INFO")," "),i.xp6(4),i.hij(" ",i.lcZ(10,8,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.CANCEL")," "),i.xp6(3),i.hij(" ",i.lcZ(13,10,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.MANAGE_TOKENS")," "))},dependencies:[Rn,Yn,vn,It,na,tt]}),n})(),mx=(()=>{class n{constructor(e,t,r,l){this.dialog=e,this.oauthService=t,this.authService=r,this.store=l}openMfaWindow(e){let t=null,r=null;const l=Ni();l.width="450px",l.data={mfaRoleException:e};const d=this.dialog.open(JP,l);let o=!1;if(d.afterClosed().subscribe(a=>{if(a){if(sessionStorage.setItem("mfaRequired","true"),sessionStorage.setItem("oldAccessToken",this.oauthService.getAccessToken()),sessionStorage.setItem("oldRefreshToken",this.oauthService.getRefreshToken()),t=this.setupMfaWindow(),t){const c=Ni();c.width="450px",c.panelClass="noBorderDialog",r=this.dialog.open(QP,c)}}else o=!0}),localStorage.getItem("noMfaTokenDialog")){localStorage.removeItem("noMfaTokenDialog");const a=Ni();a.width="450px",a.data={tokensUrl:this.store.getProperty("mfa").url_en},this.dialog.open(KP,a)}return new oi.y(a=>{const c=setInterval(()=>t?.closed?(clearInterval(c),r.close(),sessionStorage.removeItem("mfaRequired"),sessionStorage.removeItem("mfaProcessed"),null===this.oauthService.getAccessToken()&&(localStorage.setItem("access_token",sessionStorage.getItem("oldAccessToken")),localStorage.setItem("refresh_token",sessionStorage.getItem("oldRefreshToken"))),a.next(!0)):o?(clearInterval(c),a.next(!1)):void 0,1e3)})}catchNoMfaTokenError(e){"unmet_authentication_requirements"===e&&(localStorage.setItem("noMfaTokenDialog","true"),window.close())}mfaWindowForceLogout(){if(sessionStorage.getItem("mfaRequired")&&!sessionStorage.getItem("mfaProcessed"))return sessionStorage.setItem("mfaProcessed","true"),this.oauthService.logOut(!0),this.authService.loadOidcConfigData(),void this.oauthService.loadDiscoveryDocumentAndLogin();sessionStorage.removeItem("mfaRequired")}closeMfaWindow(){sessionStorage.getItem("mfaProcessed")&&!sessionStorage.getItem("mfaRequired")&&(sessionStorage.removeItem("mfaProcessed"),window.close())}setupMfaWindow(){const e=location.pathname+location.search,l=window.top;return window.open(e,"_blank",`width=600,height=600,top=${l.outerHeight/2+l.screenY-300}, left=${l.outerWidth/2+l.screenX-300}`)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(fn),i.LFG($p.Ct),i.LFG(Xu),i.LFG(yn))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ZC=(()=>{class n{constructor(e,t,r,l,d,o,a,c){this.authService=e,this.oauthService=t,this.storeService=r,this.authResolver=l,this.authzService=d,this.dialog=o,this.router=a,this.mfaHandlerService=c,this.loginScreenShown=!1,this.serviceAccess=!1,this.serviceAccessLoginScreen=!1}isLoginScreenShown(){return this.loginScreenShown}isServiceAccess(){return this.serviceAccess}isServiceAccessLoginScreenShown(){return this.serviceAccessLoginScreen}verifyAuth(){if(this.mfaHandlerService.mfaWindowForceLogout(),sessionStorage.getItem("baPrincipal"))return this.serviceAccess=!0,sessionStorage.getItem("auth:redirect")?this.redirectToOriginDestination():Promise.resolve(!0);if("/service-access"!==location.pathname&&!this.storeService.getProperty("auto_service_access_redirect")){this.authService.loadOidcConfigData();const e=location.pathname,t=location.search.substring(1);return"/api-callback"===e?this.oauthService.loadDiscoveryDocumentAndTryLogin().then(()=>this.startRefreshToken()).then(()=>this.redirectToOriginDestination()):this.oauthService.loadDiscoveryDocument().then(()=>this.tryRefreshToken()).then(()=>"Linker"===this.storeService.getProperty("application")?(sessionStorage.setItem("auth:queryParams",t),localStorage.removeItem("access_token"),!1):this.oauthService.hasValidAccessToken()?this.startRefreshToken():this.isPotentiallyValidPath(e)?(sessionStorage.setItem("auth:redirect",e),sessionStorage.setItem("auth:queryParams",t),!1):Promise.reject("Invalid path"))}}loadPrincipal(){return fx(this.authzService.getPerunPrincipal()).then(e=>{if(null===e.user){const t=Ni();this.dialog.open(UP,t)}else this.storeService.setPerunPrincipal(e),this.authResolver.init(e)})}simpleLoadPrincipal(){return fx(this.authzService.getPerunPrincipal()).then(e=>{this.storeService.setPerunPrincipal(e)})}checkRouteGuard(){const e=localStorage.getItem("routeAuthGuard");e&&(localStorage.removeItem("routeAuthGuard"),this.router.navigate([e],{queryParamsHandling:"merge"}))}handleAuthStart(){if(this.storeService.getProperty("auto_service_access_redirect")&&"/service-access"!==location.pathname){this.serviceAccess=!0,this.serviceAccessLoginScreen=!0;const e=location.pathname,t=location.search.substring(1);sessionStorage.setItem("auth:redirect",e),sessionStorage.setItem("auth:queryParams",t);const r={};return t.split("&").forEach(l=>{const d=l.split("=");r[d[0]]=d[1]}),this.router.navigate(["service-access"],{queryParams:r,queryParamsHandling:"merge"}).then()}if("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal")||this.storeService.getProperty("auto_service_access_redirect")){this.serviceAccess=!0,this.serviceAccessLoginScreen=!0;const e=location.search.substring(1);return sessionStorage.setItem("auth:queryParams",e),Promise.resolve()}return this.storeService.getProperty("auto_auth_redirect")?(sessionStorage.getItem("mfaProcessed")||localStorage.setItem("routeAuthGuard",window.location.pathname),this.startAuth().then(()=>new Promise(()=>{}))):(this.setLoginScreen(!0),localStorage.setItem("routeAuthGuard",window.location.pathname),void this.router.navigate(["login"],{queryParamsHandling:"merge"}))}setLoginScreen(e){this.loginScreenShown=e}isPotentiallyValidPath(e){const t=["/home","/organizations","/facilities","/myProfile","/admin","/login","/service-access","/profile"];if("/"===e)return!0;for(const r of t)if(e.startsWith(r))return!0;return!1}startRefreshToken(){return this.oauthService.hasValidAccessToken()?(this.oauthService.events.pipe((0,Ze.h)(e=>"token_expires"===e.type&&"access_token"===e.info)).subscribe(()=>{this.oauthService.refreshToken()}),Promise.resolve(!0)):Promise.resolve(!1)}tryRefreshToken(){return localStorage.getItem("refresh_token")&&!this.oauthService.hasValidAccessToken()?this.oauthService.refreshToken().then(()=>Promise.resolve()).catch(()=>Promise.resolve()):Promise.resolve()}redirectToOriginDestination(){const e=sessionStorage.getItem("mfa_route");if(e)return this.router.navigate([e],{replaceUrl:!0,queryParamsHandling:"merge"});let t=sessionStorage.getItem("auth:redirect");(!t||"/login"===t)&&(t="/"),sessionStorage.removeItem("auth:redirect");const r=sessionStorage.getItem("auth:queryParams");let l=[];r&&(l=r.split("&"));const d={};return l.forEach(o=>{const a=o.split("=");d[a[0]]=a[1]}),sessionStorage.removeItem("auth:queryParams"),this.router.navigate([t],{queryParams:d,replaceUrl:!0,queryParamsHandling:"merge"})}startAuth(){return this.authService.startAuthentication(),Promise.resolve()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Xu),i.LFG($p.Ct),i.LFG(yn),i.LFG(Me),i.LFG(Fa),i.LFG(fn),i.LFG(Ji),i.LFG(mx))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),WE=(()=>{class n{constructor(e,t){this.matIconRegistry=e,this.domSanitizer=t,this.customIcons=[{url:"assets/img/PerunWebImages/refresh_tab-black.svg",name:"perun-refresh-enabled"},{url:"assets/img/PerunWebImages/refresh_tab-grey.svg",name:"perun-refresh-disabled"},{url:"assets/img/PerunWebImages/manage_facility_white.svg",name:"perun-manage-facility"},{url:"assets/img/PerunWebImages/vo-white.svg",name:"perun-vo"},{url:"assets/img/PerunWebImages/user-white.svg",name:"perun-user"},{url:"assets/img/PerunWebImages/perun_admin-white.svg",name:"perun-perun-admin"},{url:"assets/img/PerunWebImages/group-white.svg",name:"perun-group"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/preview-white.svg",name:"perun-preview"},{url:"assets/img/PerunWebImages/module_dependencies.svg",name:"perun-module-dependencies"},{url:"assets/img/PerunWebImages/user_destination_relationship.svg",name:"perun-user-destination-relationship"},{url:"assets/img/PerunWebImages/settings2-white.svg",name:"perun-settings2"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/applications-white.svg",name:"perun-applications"},{url:"assets/img/PerunWebImages/manager-white.svg",name:"perun-manager"},{url:"assets/img/PerunWebImages/key-white.svg",name:"perun-key"},{url:"assets/img/PerunWebImages/application_form-white.svg",name:"perun-application-form"},{url:"assets/img/PerunWebImages/notification-white.svg",name:"perun-notification"},{url:"assets/img/PerunWebImages/invite_member-white.svg",name:"perun-invite-member"},{url:"assets/img/PerunWebImages/service_identity-white.svg",name:"perun-service-identity"},{url:"assets/img/PerunWebImages/service_identity-black.svg",name:"perun-service-identity-black"},{url:"assets/img/PerunWebImages/create1-white.svg",name:"perun-create1"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource"},{url:"assets/img/PerunWebImages/resource_tags-white.svg",name:"perun-resource-tags"},{url:"assets/img/PerunWebImages/resources_state-white.svg",name:"perun-resources-state"},{url:"assets/img/PerunWebImages/external_sources-white.svg",name:"perun-external-sources"},{url:"assets/img/PerunWebImages/vo-dark.svg",name:"perun-vo-black"},{url:"assets/img/PerunWebImages/group-dark.svg",name:"perun-group-black"},{url:"assets/img/PerunWebImages/facility-dark.svg",name:"perun-facility-black"},{url:"assets/img/publications.svg",name:"perun-publications-white"},{url:"assets/img/PerunWebImages/owner-grey.svg",name:"perun-owner-grey"},{url:"assets/img/PerunWebImages/settings1-blue.svg",name:"perun-settings1"},{url:"assets/img/PerunWebImages/service_destination-blue.svg",name:"perun-service_destination"},{url:"assets/img/PerunWebImages/host-blue.svg",name:"perun-hosts"},{url:"assets/img/PerunWebImages/home.svg",name:"perun-home-white"},{url:"assets/img/PerunWebImages/security_admin-blue.svg",name:"perun-security-teams"},{url:"assets/img/PerunWebImages/black_list-white.svg",name:"perun-black-list"},{url:"assets/img/PerunWebImages/facility-white.svg",name:"perun-facility-white"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource-white"},{url:"assets/img/PerunWebImages/service-white.svg",name:"perun-service"},{url:"assets/img/PerunWebImages/resource-black.svg",name:"perun-resource-black"},{url:"assets/img/PerunWebImages/service_status-grey.svg",name:"perun-service-status"},{url:"assets/img/PerunWebImages/user-dark.svg",name:"perun-user-dark"},{url:"assets/img/PerunWebImages/statistics-blue.svg",name:"perun-statistics"},{url:"assets/img/PerunWebImages/audit_log-blue.svg",name:"perun-audit-log"},{url:"assets/img/PerunWebImages/contact-grey.svg",name:"perun-identity"},{url:"assets/img/PerunWebImages/roles.svg",name:"perun-roles"},{url:"assets/img/PerunWebImages/consent-white.svg",name:"perun-consent-hubs"},{url:"assets/img/PerunWebImages/hierarchical_vo-black.svg",name:"perun-hierarchical-vo"},{url:"assets/img/PerunWebImages/searcher-blue.svg",name:"perun-searcher"},{url:"assets/img/PerunWebImages/propagation-blue.svg",name:"perun-hierarchical-inclusion"},{url:"assets/img/PerunWebImages/verify-grey.svg",name:"perun-verify-grey"},{url:"assets/img/PerunWebImages/info-grey.svg",name:"perun-info-grey"},{url:"assets/img/PerunWebImages/logins.svg",name:"perun-logins"},{url:"assets/img/PerunWebImages/certificates.svg",name:"perun-certificates"},{url:"assets/img/PerunWebImages/authentication.svg",name:"perun-authentication"},{url:"assets/img/PerunWebImages/ban.svg",name:"perun-ban"}]}registerPerunRefreshIcon(){this.customIcons.forEach(e=>{this.matIconRegistry.addSvgIcon(e.name,this.domSanitizer.bypassSecurityTrustResourceUrl(e.url))})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Io),i.LFG(Li))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),$E=(()=>{class n{constructor(e){this.dialogRef=e}close(){this.dialogRef.close(!0)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(nn))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-session-expiration-dialog"]],decls:11,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"ml-auto"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.qZA(),i.TgZ(3,"div",1),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.TgZ(6,"div",2)(7,"div",3)(8,"button",4),i.NdJ("click",function(){return t.close()}),i._uU(9),i.ALo(10,"translate"),i.qZA()()()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.TITLE")),i.xp6(3),i.hij(" ",i.lcZ(5,5,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.DESCRIPTION"),"\n"),i.xp6(5),i.hij(" ",i.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.SIGN_IN")," "))},dependencies:[Rn,Yn,vn,It,tt]}),n})(),XP=(()=>{class n{constructor(){this.handleNextError=!0}dontHandleErrorForNext(){this.handleNextError=!1}shouldHandleError(){const e=this.handleNextError;return this.handleNextError=!0,e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Un=(()=>{class n{constructor(e){this.translate=e,this.addNotification=new i.vpe,this.defaultErrorDelayMs=5e3,this.defaultSuccessDelayMs=3e3}getDefaultActionMessage(){return void 0===this.defaultAction?this.defaultAction=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_ACTION"):this.defaultAction}getDefaultRpcMessage(){return void 0===this.defaultRpcMessage?this.defaultRpcMessage=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_RPC_ERROR_MESSAGE"):this.defaultRpcMessage}showRPCError(e,t=this.getDefaultRpcMessage()){this.showError("PrivilegeException"===e.name?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.PRIVILEGE_EXCEPTION"):void 0===e.name?t:t+"\n"+e.name,e,e.message)}showRouteError(){const e=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_ERROR"),t=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_DESC");this.showError(e,null,t)}showError(e,t,r,l,d){this.addNotification.emit({type:"error",error:t,description:r,title:e,actionText:void 0===l&&void 0!==r?this.getDefaultActionMessage():l,delay:this.defaultErrorDelayMs,icon:"error_outline",action:d,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}showSuccess(e,t,r,l){this.addNotification.emit({type:"success",description:t,title:e,actionText:void 0===r&&void 0!==t?this.getDefaultActionMessage():r,delay:this.defaultSuccessDelayMs,icon:"done",action:l,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(ui))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ZE=(()=>{class n{constructor(e,t,r,l,d,o,a,c){this.authService=e,this.apiRequestConfiguration=t,this.notificator=r,this.store=l,this.dialog=d,this.initAuthService=o,this.mfaHandlerService=a,this.oauthService=c}intercept(e,t){const r=this.store.getProperty("api_url");if(e.url.includes("i18n")&&(e=e.clone({setHeaders:{"Cache-control":"no-cache, must-revalidate"}})),void 0!==r&&this.isCallToPerunApi(e.url)&&!this.authService.isLoggedIn()&&!this.initAuthService.isServiceAccess()&&!this.dialogRefSessionExpiration){const l=Ni();l.width="450px",this.dialogRefSessionExpiration=this.dialog.open($E,l),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{Zo(()=>this.dialogRefSessionExpiration=void 0),sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.reauthenticate()})}return this.initAuthService.isServiceAccess()?e=e.clone({setHeaders:{Authorization:"Basic "+btoa(sessionStorage.getItem("basicUsername")+":"+sessionStorage.getItem("basicPassword"))}}):this.isCallToPerunApi(e.url)&&(e=e.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}})),this.handleRequest(e,t)}reauthenticate(){sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.initAuthService.handleAuthStart()}handleRequest(e,t){const r=this.apiRequestConfiguration.shouldHandleError(),l="POST"===e.method&&this.isNotConsolidatorOrLinker()&&this.isCallToPerunApi(e.url);return t.handle(e).pipe((0,Di.b)(d=>{d instanceof C.Zn&&l&&this.initAuthService.loadPrincipal()}),(0,cn.K)(d=>{const o=d.error;if("MfaPrivilegeException"===o.type||"MfaRolePrivilegeException"===o.type)return this.mfaHandlerService.openMfaWindow("MfaRolePrivilegeException"===o.type).pipe((0,pi.w)(a=>a?("MfaRolePrivilegeException"===o.type&&window.location.reload(),this.handleRequest(this.replaceAuthenticationToken(e),t)):(0,vi._)(()=>o)));{this.handleInvalidAccessTokenError(d);const a=this.formatErrors(d,e);return void 0===a?(0,vi._)(()=>d):(r&&this.notificator.showRPCError(a),(0,vi._)(()=>a))}}))}replaceAuthenticationToken(e){return e.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}})}isCallToPerunApi(e){return e.startsWith(this.store.getProperty("api_url"))}formatErrors(e,t){let r;console.error(e);const l=e.error;if(l.errorId&&(r=l),void 0!==r)return r.urlWithParams=t.urlWithParams,r.call=t.url,r.payload=t.body,r}isNotConsolidatorOrLinker(){const e=this.store.getProperty("application");return!("Linker"===e||"Consolidator"===e)}handleInvalidAccessTokenError(e){if(401===e.status){const t=Ni();this.dialogRefSessionExpiration=this.dialog.open($E,t),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{this.oauthService.logOut(!0),this.reauthenticate()})}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Xu),i.LFG(XP),i.LFG(Un),i.LFG(yn),i.LFG(fn),i.LFG(ZC),i.LFG(mx),i.LFG($p.Ct))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),JC=(()=>{class n{constructor(){this.newNotificationsCount=0,this.notificationData=[]}storeNotification(e){this.newNotificationsCount++,this.notificationData.push(e)}getNotifications(){return this.notificationData.reverse()}clearNotifications(){this.notificationData=[]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ek=(()=>{class n{constructor(e,t,r,l){this.http=e,this.notificator=t,this.authService=r,this.storeService=l}getApiUrl(){return void 0===this.api_url&&(this.api_url=this.storeService.getProperty("api_url")),this.api_url+"/"}getHeaders(){let e=new C.WM;return e=e.set("Authorization",this.authService.getAuthorizationHeaderValue()),e}get(e,t=!0){const r=`${this.getApiUrl()}${e}`;return this.http.get(r,{headers:this.getHeaders()}).pipe((0,cn.K)(l=>this.formatErrors(l,r,null,t)))}put(e,t={},r=!0){const l=`${this.getApiUrl()}${e}`,d=JSON.stringify(t);return this.http.put(l,d,{headers:this.getHeaders()}).pipe((0,cn.K)(o=>this.formatErrors(o,l,d,r)))}post(e,t={},r=!0){const l=`${this.getApiUrl()}${e}`,d=JSON.stringify(t);let o=this.getHeaders();return o=o.set("Content-Type","application/json; charset=utf-8"),this.http.post(l,d,{headers:o}).pipe((0,cn.K)(a=>this.formatErrors(a,l,d,r)))}delete(e,t=!0){const r=`${this.getApiUrl()}${e}`;return this.http.delete(r,{headers:this.getHeaders()}).pipe((0,cn.K)(l=>this.formatErrors(l,r,null,t)))}formatErrors(e,t,r,l){const d=e.error;return d.call=t,d.payload=r,l&&this.notificator.showRPCError(e.error),(0,vi._)(d)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(C.eN),i.LFG(Un),i.LFG(Xu),i.LFG(yn))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Zp=(()=>{class n{isAllSelected(e,t,r=(()=>!0)){const l=t.paginator.pageSize??0,d=t.paginator.pageIndex??0,o=t.paginator.hasNextPage(),a=t.data.length===t.filteredData.length;this.numCanBeSelected=0,this.pageStart=d*l,this.pageEnd=this.pageStart+l,this.numSelected=e,this.dataLength=a?t.data.length:t.filteredData.length;const c=t.sort;return o||(this.modulo=this.dataLength%l,this.pageEnd=0===this.modulo?this.pageStart+l:this.pageStart+this.modulo),this.pageIterator=0,t.sortData(t.filteredData,c).forEach(u=>{this.pageStart<=this.pageIterator&&this.pageIterator{c?u(h)&&this.pageStart<=this.pageIterator&&this.pageIterator!0)){return t===e.data.reduce((l,d)=>l+Number(r(d)),0)}masterTogglePaginated(e,t,r,l=(()=>!0)){t.clear(),r&&e.data.forEach(d=>{l(d)&&t.select(d)})}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ik=(()=>{class n{constructor(e,t){this.route=e,this.store=t}getPreferredLanguage(e){const t=this.store.getProperty("supported_languages"),r=navigator.languages.map(o=>o.split("-")[0]),l=location.search.substring(1).split("&");let d=null;for(const o of l){const a=o.split("=");"lang"===a[0]&&(d=a[1])}return d&&t.includes(d)?d:e&&t.includes(e)?e:r&&t.includes(r[0])?r[0]:"en"}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Jn),i.LFG(yn))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),nk=(()=>{class n{constructor(e){this.storeService=e}static getBrandContainingDomain(e,t){for(const l of e)if(l.newApps.admin===t||l.newApps.profile===t||l.newApps.pwdReset===t||l.newApps.consolidator===t||l.newApps.linker===t)return l;return e.filter(l=>"default"===l.name)[0]||e[0]}getUrlForOtherApplication(e,t){const l=window.location.href.split("/"),d=l[0]+"//"+l[2],o=n.getBrandContainingDomain(this.storeService.getAppsConfig().brands,d);let a;if(o.newApps[e])a=o.newApps[e],"pwdReset"===e&&(a+=`?login-namespace=${t}`);else switch(a=o.oldGuiDomain+"/fed",e){case"admin":a+="/gui/";break;case"profile":a+="/profile/";break;case"pwdReset":a+=`/pwd-reset/?login-namespace=${t}`}return a}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(yn))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const QC=["*"],rk=["content"];function ak(n,s){if(1&n){const e=i.EpF();i.TgZ(0,"div",2),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r._onBackdropClicked())}),i.qZA()}if(2&n){const e=i.oxw();i.ekj("mat-drawer-shown",e._isShowingBackdrop())}}function sk(n,s){1&n&&(i.TgZ(0,"mat-drawer-content"),i.Hsn(1,2),i.qZA())}const ok=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],lk=["mat-drawer","mat-drawer-content","*"];function ck(n,s){if(1&n){const e=i.EpF();i.TgZ(0,"div",2),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r._onBackdropClicked())}),i.qZA()}if(2&n){const e=i.oxw();i.ekj("mat-drawer-shown",e._isShowingBackdrop())}}function dk(n,s){1&n&&(i.TgZ(0,"mat-sidenav-content"),i.Hsn(1,2),i.qZA())}const uk=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],hk=["mat-sidenav","mat-sidenav-content","*"],JE={transformDrawer:di("transform",[Rt("open, open-instant",Re({transform:"none",visibility:"visible"})),Rt("void",Re({"box-shadow":"none",visibility:"hidden"})),Tt("void => open-instant",At("0ms")),Tt("void <=> open, open-instant => void",At("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},fk=new i.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function mk(){return!1}}),gx=new i.OlP("MAT_DRAWER_CONTAINER");let KC=(()=>{class n extends Sl{constructor(e,t,r,l,d){super(r,l,d),this._changeDetectorRef=e,this._container=t}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.sBO),i.Y36((0,i.Gpc)(()=>KE)),i.Y36(i.SBq),i.Y36(Ml),i.Y36(i.R0b))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(e,t){2&e&&i.Udp("margin-left",t._container._contentMargins.left,"px")("margin-right",t._container._contentMargins.right,"px")},features:[i._Bn([{provide:Sl,useExisting:n}]),i.qOj],ngContentSelectors:QC,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.Hsn(0))},encapsulation:2,changeDetection:0}),n})(),QE=(()=>{class n{constructor(e,t,r,l,d,o,a,c){this._elementRef=e,this._focusTrapFactory=t,this._focusMonitor=r,this._platform=l,this._ngZone=d,this._interactivityChecker=o,this._doc=a,this._container=c,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new Te.x,this._animationEnd=new Te.x,this._animationState="void",this.openedChange=new i.vpe(!0),this._openedStream=this.openedChange.pipe((0,Ze.h)(u=>u),(0,mt.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,Ze.h)(u=>u.fromState!==u.toState&&0===u.toState.indexOf("open")),(0,ma.h)(void 0)),this._closedStream=this.openedChange.pipe((0,Ze.h)(u=>!u),(0,mt.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,Ze.h)(u=>u.fromState!==u.toState&&"void"===u.toState),(0,ma.h)(void 0)),this._destroyed=new Te.x,this.onPositionChanged=new i.vpe,this._modeChanged=new Te.x,this.openedChange.subscribe(u=>{u?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{Aa(this._elementRef.nativeElement,"keydown").pipe((0,Ze.h)(u=>27===u.keyCode&&!this.disableClose&&!_n(u)),Ge(this._destroyed)).subscribe(u=>this._ngZone.run(()=>{this.close(),u.stopPropagation(),u.preventDefault()}))}),this._animationEnd.pipe(Ms((u,h)=>u.fromState===h.fromState&&u.toState===h.toState)).subscribe(u=>{const{fromState:h,toState:f}=u;(0===f.indexOf("open")&&"void"===h||"void"===f&&0===h.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(e){(e="end"===e?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(e),this._position=e,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(e){this._mode=e,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(e){this._disableClose=Ne(e)}get autoFocus(){return this._autoFocus??("side"===this.mode?"dialog":"first-tabbable")}set autoFocus(e){("true"===e||"false"===e||null==e)&&(e=Ne(e)),this._autoFocus=e}get opened(){return this._opened}set opened(e){this.toggle(Ne(e))}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const r=()=>{e.removeEventListener("blur",r),e.removeEventListener("mousedown",r),e.removeAttribute("tabindex")};e.addEventListener("blur",r),e.addEventListener("mousedown",r)})),e.focus(t)}_focusByCssSelector(e,t){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,t)}_takeFocus(){if(!this._focusTrap)return;const e=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(t=>{!t&&"function"==typeof this._elementRef.nativeElement.focus&&e.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(e){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,e):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const e=this._doc.activeElement;return!!e&&this._elementRef.nativeElement.contains(e)}ngAfterViewInit(){this._isAttached=!0,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap&&this._focusTrap.destroy(),this._anchor?.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(e){return this.toggle(!0,e)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(e=!this.opened,t){e&&t&&(this._openedVia=t);const r=this._setOpen(e,!e&&this._isFocusWithinDrawer(),this._openedVia||"program");return e||(this._openedVia=null),r}_setOpen(e,t,r){return this._opened=e,e?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",t&&this._restoreFocus(r)),this._updateFocusTrapState(),new Promise(l=>{this.openedChange.pipe((0,it.q)(1)).subscribe(d=>l(d?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_updatePositionInParent(e){const t=this._elementRef.nativeElement,r=t.parentNode;"end"===e?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),r.insertBefore(this._anchor,t)),r.appendChild(t)):this._anchor&&this._anchor.parentNode.insertBefore(t,this._anchor)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(jc),i.Y36(tr),i.Y36(Hi),i.Y36(i.R0b),i.Y36(cu),i.Y36(w.K0,8),i.Y36(gx,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-drawer"]],viewQuery:function(e,t){if(1&e&&i.Gf(rk,5),2&e){let r;i.iGM(r=i.CRH())&&(t._content=r.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(e,t){1&e&&i.WFA("@transform.start",function(l){return t._animationStarted.next(l)})("@transform.done",function(l){return t._animationEnd.next(l)}),2&e&&(i.uIk("align",null),i.d8E("@transform",t._animationState),i.ekj("mat-drawer-end","end"===t.position)("mat-drawer-over","over"===t.mode)("mat-drawer-push","push"===t.mode)("mat-drawer-side","side"===t.mode)("mat-drawer-opened",t.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:QC,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0,1),i.Hsn(2),i.qZA())},dependencies:[Sl],encapsulation:2,data:{animation:[JE.transformDrawer]},changeDetection:0}),n})(),KE=(()=>{class n{constructor(e,t,r,l,d,o=!1,a){this._dir=e,this._element=t,this._ngZone=r,this._changeDetectorRef=l,this._animationMode=a,this._drawers=new i.n_E,this.backdropClick=new i.vpe,this._destroyed=new Te.x,this._doCheckSubject=new Te.x,this._contentMargins={left:null,right:null},this._contentMarginChanges=new Te.x,e&&e.change.pipe(Ge(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),d.change().pipe(Ge(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=o}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(e){this._autosize=Ne(e)}get hasBackdrop(){return this._backdropOverride??(!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode)}set hasBackdrop(e){this._backdropOverride=null==e?null:Ne(e)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe(Nt(this._allDrawers),Ge(this._destroyed)).subscribe(e=>{this._drawers.reset(e.filter(t=>!t._container||t._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(Nt(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(e=>{this._watchDrawerToggle(e),this._watchDrawerPosition(e),this._watchDrawerMode(e)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,Bc.b)(10),Ge(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(e=>e.open())}close(){this._drawers.forEach(e=>e.close())}updateContentMargins(){let e=0,t=0;if(this._left&&this._left.opened)if("side"==this._left.mode)e+=this._left._getWidth();else if("push"==this._left.mode){const r=this._left._getWidth();e+=r,t-=r}if(this._right&&this._right.opened)if("side"==this._right.mode)t+=this._right._getWidth();else if("push"==this._right.mode){const r=this._right._getWidth();t+=r,e-=r}e=e||null,t=t||null,(e!==this._contentMargins.left||t!==this._contentMargins.right)&&(this._contentMargins={left:e,right:t},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(e){e._animationStarted.pipe((0,Ze.h)(t=>t.fromState!==t.toState),Ge(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"!==e.mode&&e.openedChange.pipe(Ge(this._drawers.changes)).subscribe(()=>this._setContainerClass(e.opened))}_watchDrawerPosition(e){!e||e.onPositionChanged.pipe(Ge(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,it.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(e){e&&e._modeChanged.pipe(Ge((0,xi.T)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(e){const t=this._element.nativeElement.classList,r="mat-drawer-container-has-open";e?t.add(r):t.remove(r)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(e=>{"end"==e.position?this._end=e:this._start=e}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_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(e=>e&&!e.disableClose&&this._canHaveBackdrop(e)).forEach(e=>e._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(e){return"side"!==e.mode||!!this._backdropOverride}_isDrawerOpen(e){return null!=e&&e.opened}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(_i,8),i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(i.sBO),i.Y36(va),i.Y36(fk),i.Y36(i.QbO,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-drawer-container"]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,KC,5),i.Suo(r,QE,5)),2&e){let l;i.iGM(l=i.CRH())&&(t._content=l.first),i.iGM(l=i.CRH())&&(t._allDrawers=l)}},viewQuery:function(e,t){if(1&e&&i.Gf(KC,5),2&e){let r;i.iGM(r=i.CRH())&&(t._userContent=r.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("mat-drawer-container-explicit-backdrop",t._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[i._Bn([{provide:gx,useExisting:n}])],ngContentSelectors:lk,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(e,t){1&e&&(i.F$t(ok),i.YNc(0,ak,1,2,"div",0),i.Hsn(1),i.Hsn(2,1),i.YNc(3,sk,2,0,"mat-drawer-content",1)),2&e&&(i.Q6J("ngIf",t.hasBackdrop),i.xp6(3),i.Q6J("ngIf",!t._content))},dependencies:[w.O5,KC],styles:['.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[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),n})(),_x=(()=>{class n extends KC{constructor(e,t,r,l,d){super(e,t,r,l,d)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.sBO),i.Y36((0,i.Gpc)(()=>eD)),i.Y36(i.SBq),i.Y36(Ml),i.Y36(i.R0b))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(e,t){2&e&&i.Udp("margin-left",t._container._contentMargins.left,"px")("margin-right",t._container._contentMargins.right,"px")},features:[i._Bn([{provide:Sl,useExisting:n}]),i.qOj],ngContentSelectors:QC,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.Hsn(0))},encapsulation:2,changeDetection:0}),n})(),XE=(()=>{class n extends QE{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(e){this._fixedInViewport=Ne(e)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(e){this._fixedTopGap=ci(e)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(e){this._fixedBottomGap=ci(e)}}return n.\u0275fac=function(){let s;return function(t){return(s||(s=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(e,t){2&e&&(i.uIk("align",null),i.Udp("top",t.fixedInViewport?t.fixedTopGap:null,"px")("bottom",t.fixedInViewport?t.fixedBottomGap:null,"px"),i.ekj("mat-drawer-end","end"===t.position)("mat-drawer-over","over"===t.mode)("mat-drawer-push","push"===t.mode)("mat-drawer-side","side"===t.mode)("mat-drawer-opened",t.opened)("mat-sidenav-fixed",t.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[i.qOj],ngContentSelectors:QC,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0,1),i.Hsn(2),i.qZA())},dependencies:[Sl],encapsulation:2,data:{animation:[JE.transformDrawer]},changeDetection:0}),n})(),eD=(()=>{class n extends KE{}return n.\u0275fac=function(){let s;return function(t){return(s||(s=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-sidenav-container"]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,_x,5),i.Suo(r,XE,5)),2&e){let l;i.iGM(l=i.CRH())&&(t._content=l.first),i.iGM(l=i.CRH())&&(t._allDrawers=l)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("mat-drawer-container-explicit-backdrop",t._backdropOverride)},exportAs:["matSidenavContainer"],features:[i._Bn([{provide:gx,useExisting:n}]),i.qOj],ngContentSelectors:hk,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(e,t){1&e&&(i.F$t(uk),i.YNc(0,ck,1,2,"div",0),i.Hsn(1),i.Hsn(2,1),i.YNc(3,dk,2,0,"mat-sidenav-content",1)),2&e&&(i.Q6J("ngIf",t.hasBackdrop),i.xp6(3),i.Q6J("ngIf",!t._content))},dependencies:[w.O5,_x],styles:['.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[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),n})(),tD=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[w.ez,ct,wn,wn,ct]}),n})();const iD=Ts({passive:!0});let gk=(()=>{class n{constructor(e,t){this._platform=e,this._ngZone=t,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return wr.E;const t=en(e),r=this._monitoredElements.get(t);if(r)return r.subject;const l=new Te.x,d="cdk-text-field-autofilled",o=a=>{"cdk-text-field-autofill-start"!==a.animationName||t.classList.contains(d)?"cdk-text-field-autofill-end"===a.animationName&&t.classList.contains(d)&&(t.classList.remove(d),this._ngZone.run(()=>l.next({target:a.target,isAutofilled:!1}))):(t.classList.add(d),this._ngZone.run(()=>l.next({target:a.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{t.addEventListener("animationstart",o,iD),t.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(t,{subject:l,unlisten:()=>{t.removeEventListener("animationstart",o,iD)}}),l}stopMonitoring(e){const t=en(e),r=this._monitoredElements.get(t);r&&(r.unlisten(),r.subject.complete(),t.classList.remove("cdk-text-field-autofill-monitored"),t.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(t))}ngOnDestroy(){this._monitoredElements.forEach((e,t)=>this.stopMonitoring(t))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Hi),i.LFG(i.R0b))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),_k=(()=>{class n{constructor(e,t,r,l){this._elementRef=e,this._platform=t,this._ngZone=r,this._destroyed=new Te.x,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._handleFocusEvent=d=>{this._hasFocus="focus"===d.type},this._document=l,this._textareaElement=this._elementRef.nativeElement}get minRows(){return this._minRows}set minRows(e){this._minRows=ci(e),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(e){this._maxRows=ci(e),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(e){e=Ne(e),this._enabled!==e&&((this._enabled=e)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(e){this._cachedPlaceholderHeight=void 0,e?this._textareaElement.setAttribute("placeholder",e):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}_setMinHeight(){const e=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;e&&(this._textareaElement.style.minHeight=e)}_setMaxHeight(){const e=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;e&&(this._textareaElement.style.maxHeight=e)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{Aa(this._getWindow(),"resize").pipe(Cu(16),Ge(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0)),this._textareaElement.addEventListener("focus",this._handleFocusEvent),this._textareaElement.addEventListener("blur",this._handleFocusEvent)}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._textareaElement.removeEventListener("focus",this._handleFocusEvent),this._textareaElement.removeEventListener("blur",this._handleFocusEvent),this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let e=this._textareaElement.cloneNode(!1);e.rows=1,e.style.position="absolute",e.style.visibility="hidden",e.style.border="none",e.style.padding="0",e.style.height="",e.style.minHeight="",e.style.maxHeight="",e.style.overflow="hidden",this._textareaElement.parentNode.appendChild(e),this._cachedLineHeight=e.clientHeight,e.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){const e=this._textareaElement,t=e.style.marginBottom||"",r=this._platform.FIREFOX,l=r&&this._hasFocus,d=r?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";l&&(e.style.marginBottom=`${e.clientHeight}px`),e.classList.add(d);const o=e.scrollHeight-4;return e.classList.remove(d),l&&(e.style.marginBottom=t),o}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const e=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=e}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(e=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;const t=this._elementRef.nativeElement,r=t.value;if(!e&&this._minRows===this._previousMinRows&&r===this._previousValue)return;const l=this._measureScrollHeight(),d=Math.max(l,this._cachedPlaceholderHeight||0);t.style.height=`${d}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(t)):setTimeout(()=>this._scrollToCaretPosition(t))}),this._previousValue=r,this._previousMinRows=this._minRows}reset(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollToCaretPosition(e){const{selectionStart:t,selectionEnd:r}=e;!this._destroyed.isStopped&&this._hasFocus&&e.setSelectionRange(t,r)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Hi),i.Y36(i.R0b),i.Y36(w.K0,8))},n.\u0275dir=i.lG2({type:n,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(e,t){1&e&&i.NdJ("input",function(){return t._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]}),n})(),nD=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();const rD=new i.OlP("MAT_INPUT_VALUE_ACCESSOR"),bk=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let yk=0;const Ck=mu(class{constructor(n,s,e,t){this._defaultErrorStateMatcher=n,this._parentForm=s,this._parentFormGroup=e,this.ngControl=t,this.stateChanges=new Te.x}});let La=(()=>{class n extends Ck{constructor(e,t,r,l,d,o,a,c,u,h){super(o,l,d,r),this._elementRef=e,this._platform=t,this._autofillMonitor=c,this._formField=h,this._uid="mat-input-"+yk++,this.focused=!1,this.stateChanges=new Te.x,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(V=>bl().has(V)),this._iOSKeyupListener=V=>{const X=V.target;!X.value&&0===X.selectionStart&&0===X.selectionEnd&&(X.setSelectionRange(1,1),X.setSelectionRange(0,0))};const f=this._elementRef.nativeElement,b=f.nodeName.toLowerCase();this._inputValueAccessor=a||f,this._previousNativeValue=this.value,this.id=this.id,t.IOS&&u.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===b,this._isTextarea="textarea"===b,this._isInFormField=!!h,this._isNativeSelect&&(this.controlType=f.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=Ne(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(Pi.required)??!1}set required(e){this._required=Ne(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&bl().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=Ne(e)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){const e=this._formField,t=e&&"legacy"===e.appearance&&!e._hasLabel?.()?null:this.placeholder;if(t!==this._previousPlaceholder){const r=this._elementRef.nativeElement;this._previousPlaceholder=t,t?r.setAttribute("placeholder",t):r.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){bk.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Hi),i.Y36(ia,10),i.Y36(Ho,8),i.Y36(ko,8),i.Y36(Er),i.Y36(rD,10),i.Y36(gk),i.Y36(i.R0b),i.Y36(mp,8))},n.\u0275dir=i.lG2({type:n,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(e,t){1&e&&i.NdJ("focus",function(){return t._focusChanged(!0)})("blur",function(){return t._focusChanged(!1)})("input",function(){return t._onInput()}),2&e&&(i.Ikx("disabled",t.disabled)("required",t.required),i.uIk("id",t.id)("data-placeholder",t.placeholder)("name",t.name||null)("readonly",t.readonly&&!t._isNativeSelect||null)("aria-invalid",t.empty&&t.required?null:t.errorState)("aria-required",t.required),i.ekj("mat-input-server",t._isServer)("mat-native-select-inline",t._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[i._Bn([{provide:Kc,useExisting:n}]),i.qOj,i.TTD]}),n})(),XC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[Er],imports:[nD,Rl,ct,nD,Rl]}),n})();function wk(n,s){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT_ERROR")))}let Ak=(()=>{class n{constructor(e,t,r,l,d){this.dialogRef=e,this.translate=t,this.notificator=r,this.rtMessages=l,this.storeService=d,this.message="",this.subject="",this.instanceName=""}ngOnInit(){this.instanceName=this.storeService.getProperty("config")}sendBugReport(){this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(e=>{this.dialogRef.afterClosed().subscribe(()=>this.notificator.showSuccess(this.translate.instant("DIALOGS.REPORT_ISSUE.SUCCESS")+String(e.ticketNumber))),this.dialogRef.close()})}getFullEmailBody(){return this.message.concat("\n ","------------------------\n ","Perun instance: ",this.instanceName,"\n ","Sended from new Perun Gui, version: ",x(4147).i8)}close(){this.dialogRef.close()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(nn),i.Y36(ui),i.Y36(Un),i.Y36(Go),i.Y36(yn))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-report-issue-dialog"]],decls:29,vars:25,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","","type","text",3,"ngModel","ngModelChange"],["subjectModel","ngModel"],[4,"ngIf"],["matInput","",3,"placeholder","ngModel","ngModelChange"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(e,t){if(1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.qZA(),i.TgZ(3,"div",1)(4,"mat-form-field")(5,"mat-label"),i._uU(6),i.ALo(7,"translate"),i.qZA(),i.TgZ(8,"input",2,3),i.NdJ("ngModelChange",function(l){return t.subject=l}),i.qZA(),i.YNc(10,wk,3,3,"mat-error",4),i.qZA(),i.TgZ(11,"mat-form-field")(12,"mat-label"),i._uU(13),i.ALo(14,"translate"),i.qZA(),i.TgZ(15,"textarea",5),i.NdJ("ngModelChange",function(l){return t.message=l}),i.ALo(16,"translate"),i._uU(17," "),i.qZA(),i.TgZ(18,"mat-hint"),i._uU(19),i.ALo(20,"translate"),i.qZA()()(),i.TgZ(21,"div",6)(22,"div",7)(23,"button",8),i.NdJ("click",function(){return t.close()}),i._uU(24),i.ALo(25,"translate"),i.qZA(),i.TgZ(26,"button",9),i.NdJ("click",function(){return t.sendBugReport()}),i._uU(27),i.ALo(28,"translate"),i.qZA()()()),2&e){const r=i.MAs(9);i.xp6(1),i.Oqu(i.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.TITLE")),i.xp6(5),i.Oqu(i.lcZ(7,13,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT")),i.xp6(2),i.Q6J("ngModel",t.subject),i.xp6(2),i.Q6J("ngIf",r.invalid),i.xp6(3),i.Oqu(i.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE")),i.xp6(2),i.s9C("placeholder",i.lcZ(16,17,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_PLACEHOLDER")),i.Q6J("ngModel",t.message),i.xp6(4),i.Oqu(i.lcZ(20,19,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_HINT")),i.xp6(5),i.hij(" ",i.lcZ(25,21,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.CANCEL")," "),i.xp6(2),i.Q6J("disabled",r.invalid),i.xp6(1),i.hij(" ",i.lcZ(28,23,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SEND")," ")}},dependencies:[w.O5,Nn,Fn,ls,id,It,Da,nr,Om,Pr,La,Rn,Yn,vn,tt],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),n})(),vk=(()=>{class n{transform(e,t,r){return e[`${r}_${t}`]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"localisedText",type:n,pure:!0}),n})(),Tk=(()=>{class n{transform(e,t){return e["link_"+t]||e.link_en}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"localisedLink",type:n,pure:!0}),n})(),xk=(()=>{class n{transform(e){return e.includes("/")?e:"/assets/config/"+e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"footerLogoPath",type:n,pure:!0}),n})();function Mk(n,s){if(1&n&&(i.TgZ(0,"a",13),i.ALo(1,"localisedLink"),i._UZ(2,"img",14),i.ALo(3,"footerLogoPath"),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw(3);i.Q6J("href",i.xi3(1,2,e,t.language),i.LSH),i.xp6(2),i.s9C("src",i.lcZ(3,5,e.logo),i.LSH)}}function Sk(n,s){if(1&n&&(i.TgZ(0,"span"),i._UZ(1,"img",14),i.ALo(2,"footerLogoPath"),i.qZA()),2&n){const e=i.oxw().$implicit;i.xp6(1),i.s9C("src",i.lcZ(2,1,e.logo),i.LSH)}}function Ek(n,s){if(1&n&&(i.TgZ(0,"div"),i.YNc(1,Mk,4,7,"a",11),i.ALo(2,"localisedLink"),i.YNc(3,Sk,3,3,"span",12),i.ALo(4,"localisedLink"),i.qZA()),2&n){const e=s.$implicit,t=i.oxw(3);i.xp6(1),i.Q6J("ngIf",i.xi3(2,2,e,t.language)),i.xp6(2),i.Q6J("ngIf",!i.xi3(4,5,e,t.language))}}const Dk=function(n){return{"min-height":n}};function Hk(n,s){if(1&n&&(i.TgZ(0,"div",10),i.YNc(1,Ek,5,8,"div",5),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw();i.Q6J("ngStyle",i.VKq(2,Dk,t.columnContentHeight+"px")),i.xp6(1),i.Q6J("ngForOf",e.elements)}}const jl=function(n){return{color:n}};function Pk(n,s){if(1&n&&(i.TgZ(0,"i",20),i._uU(1),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw(3);i.Q6J("ngStyle",i.VKq(2,jl,t.linksTextColor)),i.xp6(1),i.hij(" ",e.icon," ")}}function kk(n,s){if(1&n){const e=i.EpF();i.TgZ(0,"span",21),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit,l=i.oxw(3);return i.KtG(l.openDialog(r.dialog))}),i._uU(1),i.ALo(2,"localisedText"),i.qZA()}if(2&n){const e=i.oxw().$implicit,t=i.oxw(3);i.Q6J("ngStyle",i.VKq(6,jl,t.linksTextColor)),i.xp6(1),i.hij("",i.Dn7(2,2,e,t.language,"label")," ")}}function Rk(n,s){if(1&n&&(i.TgZ(0,"a",22),i.ALo(1,"localisedLink"),i._uU(2),i.ALo(3,"localisedText"),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw(3);i.Q6J("href",i.xi3(1,3,e,t.language),i.LSH)("ngStyle",i.VKq(10,jl,t.linksTextColor)),i.xp6(2),i.Oqu(i.Dn7(3,6,e,t.language,"label"))}}function Lk(n,s){if(1&n&&(i.TgZ(0,"span",10),i._uU(1),i.ALo(2,"localisedText"),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw(3);i.Q6J("ngStyle",i.VKq(6,jl,t.linksTextColor)),i.xp6(1),i.Oqu(i.Dn7(2,2,e,t.language,"label"))}}function Ik(n,s){if(1&n&&(i.TgZ(0,"div",16),i.YNc(1,Pk,2,4,"i",17),i.YNc(2,kk,3,8,"span",18),i.YNc(3,Rk,4,12,"a",19),i.ALo(4,"localisedLink"),i.YNc(5,Lk,3,8,"span",9),i.ALo(6,"localisedLink"),i.qZA()),2&n){const e=s.$implicit,t=i.oxw(3);i.xp6(1),i.Q6J("ngIf",e.icon),i.xp6(1),i.Q6J("ngIf",e.dialog),i.xp6(1),i.Q6J("ngIf",i.xi3(4,4,e,t.language)&&!e.dialog),i.xp6(2),i.Q6J("ngIf",!i.xi3(6,7,e,t.language)&&!e.dialog)}}const Ok=function(n){return{height:n}};function Bk(n,s){if(1&n&&(i.TgZ(0,"div",10),i.YNc(1,Ik,7,10,"div",15),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw();i.Q6J("ngStyle",i.VKq(2,Ok,t.columnContentHeight+"px")),i.xp6(1),i.Q6J("ngForOf",e.elements)}}function Vk(n,s){if(1&n&&(i.TgZ(0,"div",7)(1,"h6",8),i._uU(2),i.ALo(3,"localisedText"),i.qZA(),i.YNc(4,Hk,2,4,"div",9),i.YNc(5,Bk,2,4,"div",9),i.qZA()),2&n){const e=s.$implicit,t=i.oxw();i.ekj("my-auto",t.containsLogos),i.xp6(1),i.Q6J("ngStyle",i.VKq(10,jl,t.headersTextColor)),i.xp6(1),i.hij(" ",i.Dn7(3,6,e,t.language,"title")," "),i.xp6(2),i.Q6J("ngIf",e.logos),i.xp6(1),i.Q6J("ngIf",e.elements&&!e.logos)}}function Nk(n,s){if(1&n&&(i.TgZ(0,"span")(1,"a",6),i._uU(2),i.qZA()()),2&n){const e=s.$implicit,t=s.index,r=i.oxw();i.xp6(1),i.Q6J("href",e.url,i.LSH)("ngStyle",i.VKq(3,jl,r.copyrightTextColor)),i.xp6(1),i.Oqu(t?", "+e.name:e.name)}}const Fk=function(n){return{background:n}};let aD=(()=>{class n{constructor(e,t,r,l,d,o){this.storeService=e,this.translateService=t,this.utilsService=r,this.dialog=l,this.authService=d,this.initAuthService=o,this.copyrightTextColor=this.storeService.getProperty("theme").footer_copyright_text_color,this.footerColumns=[],this.copyrightItems=[],this.currentYear=(new Date).getFullYear(),this.containsLogos=!1,this.headersTextColor=this.storeService.getProperty("theme").footer_headers_text_color,this.linksTextColor=this.storeService.getProperty("theme").footer_links_text_color,this.githubRepository=this.storeService.getProperty("footer").github_releases,this.githubBackendRepository=this.storeService.getProperty("footer").github_backend_releases,this.bgColor=this.storeService.getProperty("theme").footer_bg_color,this.version="",this.backendVersion="",this.guiVersion="",this.language="en",this.columnContentHeight=0}ngOnInit(){this.translateService.onLangChange.subscribe(e=>{this.language=e.lang}),this.version=x(4147).i8,this.footerColumns=this.storeService.getProperty("footer").columns,this.guiVersion=x(4147).i8,(this.authService.isLoggedIn()||this.initAuthService.isServiceAccess())&&this.utilsService.getPerunStatus().subscribe(e=>{const t=e[0];this.backendVersion=t.substring(t.indexOf(":")+2)}),this.footerColumns=this.storeService.getProperty("footer").columns;for(const e of this.footerColumns)e.logos?this.containsLogos=!0:25*e.elements.length>this.columnContentHeight&&(this.columnContentHeight=25*e.elements.length);this.copyrightItems=this.storeService.getProperty("footer").copyright_items}openDialog(e){const t=Ni();"reportIssue"===e&&(t.width="550px",this.dialog.open(Ak,t))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(yn),i.Y36(ui),i.Y36(ja),i.Y36(fn),i.Y36(Xu),i.Y36(ZC))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-footer"]],decls:13,vars:19,consts:[[1,"footer-container",3,"ngStyle"],[1,"footer-columns-container"],["class","footer-col mx-auto",3,"my-auto",4,"ngFor","ngForOf"],[1,"my-0","mt-3"],[1,"font-fix","text-center",3,"ngStyle"],[4,"ngFor","ngForOf"],["target","_blank",1,"text-decoration-none",3,"href","ngStyle"],[1,"footer-col","mx-auto"],[1,"font-weight-bold",3,"ngStyle"],[3,"ngStyle",4,"ngIf"],[3,"ngStyle"],[3,"href",4,"ngIf"],[4,"ngIf"],[3,"href"],["alt","image",3,"src"],["class","row-height",4,"ngFor","ngForOf"],[1,"row-height"],["class","material-icons align-bottom mr-1",3,"ngStyle",4,"ngIf"],["id","clickable",3,"ngStyle","click",4,"ngIf"],["target","_blank",3,"href","ngStyle",4,"ngIf"],[1,"material-icons","align-bottom","mr-1",3,"ngStyle"],["id","clickable",3,"ngStyle","click"],["target","_blank",3,"href","ngStyle"]],template:function(e,t){1&e&&(i.TgZ(0,"footer",0)(1,"div",1),i.YNc(2,Vk,6,12,"div",2),i.qZA(),i._UZ(3,"hr",3),i.TgZ(4,"div",4),i._uU(5),i.YNc(6,Nk,3,5,"span",5),i._uU(7,", web application: "),i.TgZ(8,"a",6),i._uU(9),i.qZA(),i._uU(10,", server: "),i.TgZ(11,"a",6),i._uU(12),i.qZA()()()),2&e&&(i.Q6J("ngStyle",i.VKq(11,Fk,t.bgColor)),i.xp6(2),i.Q6J("ngForOf",t.footerColumns),i.xp6(2),i.Q6J("ngStyle",i.VKq(13,jl,t.copyrightTextColor)),i.xp6(1),i.hij(" \xa9 ",t.currentYear," Copyright: "),i.xp6(1),i.Q6J("ngForOf",t.copyrightItems),i.xp6(2),i.Q6J("href",t.githubRepository,i.LSH)("ngStyle",i.VKq(15,jl,t.copyrightTextColor)),i.xp6(1),i.Oqu(t.guiVersion),i.xp6(2),i.Q6J("href",t.githubBackendRepository,i.LSH)("ngStyle",i.VKq(17,jl,t.copyrightTextColor)),i.xp6(1),i.Oqu(t.backendVersion))},dependencies:[w.sg,w.O5,w.PC,vk,Tk,xk],styles:["a[_ngcontent-%COMP%]{text-decoration:none}.font-fix[_ngcontent-%COMP%]{font-size:.8rem}.row-height[_ngcontent-%COMP%]{height:25px!important}.footer-col[_ngcontent-%COMP%]{padding-top:35px;white-space:nowrap;text-align:center}.wrap-content[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content}#clickable[_ngcontent-%COMP%]{cursor:pointer}.footer-columns-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-direction:column}@media (min-width: 768px){.footer-columns-container[_ngcontent-%COMP%]{flex-direction:row}}.footer-container[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content}"]}),n})();function jk(n,s){if(1&n&&(i.TgZ(0,"div",8),i._UZ(1,"div",9),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Q6J("innerHTML",e.logo,i.oJD)}}function Yk(n,s){if(1&n&&(i.TgZ(0,"div",10),i._UZ(1,"div",11)(2,"mat-icon",12),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Q6J("innerHTML",e.logo,i.oJD)}}const Uk=function(n){return{color:n}};function zk(n,s){if(1&n&&(i.TgZ(0,"p",13),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.Q6J("ngStyle",i.VKq(2,Uk,e.textColor)),i.xp6(1),i.hij(" ",e.headerTitle," ")}}const qk=function(n,s){return{background:n,color:s}},Gk=function(n,s){return{"min-height":n,"background-color":s}};let Wk=(()=>{class n{constructor(e,t,r,l){this.storeService=e,this.sanitizer=t,this.preferredLangService=r,this.translateService=l,this.contentBackgroundColor=this.storeService.getProperty("theme").content_bg_color}ngOnInit(){if(this.headerBackgroundColor=this.storeService.getProperty("theme").nav_bg_color,this.headerTextColor=this.storeService.getProperty("theme").nav_text_color,this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.getProperty("logo")),this.textColor=this.headerTitle?this.storeService.getProperty("theme").nav_text_color:"","user-profile"===this.application){const e=this.preferredLangService.getPreferredLanguage(null);this.translateService.use(e)}}getContentInnerMinHeight(){return"calc((100vh - 64px) + 0px)"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(yn),i.Y36(Li),i.Y36(ik),i.Y36(ui))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-login-screen-base"]],inputs:{application:"application",headerTitle:"headerTitle"},decls:10,vars:11,consts:[["id","login-nav",1,"mat-elevation-z3",3,"ngStyle"],["class","mt-auto mb-auto",4,"ngIf"],["class","display-flex-row",4,"ngIf"],["class","ml-3 mt-auto mb-auto page-subtitle",3,"ngStyle",4,"ngIf"],["id","content"],["id","content-inner",3,"ngStyle"],["id","content-wrap"],["id","footer"],[1,"mt-auto","mb-auto"],[1,"logo-container",3,"innerHTML"],[1,"display-flex-row"],[1,"logo-container","mt-auto","mb-auto",3,"innerHTML"],["svgIcon","perun-publications-white",1,"mt-auto","mb-auto","router-icon","ml-2","mr-2"],[1,"ml-3","mt-auto","mb-auto","page-subtitle",3,"ngStyle"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.YNc(1,jk,2,1,"div",1),i.YNc(2,Yk,3,1,"div",2),i.YNc(3,zk,2,4,"p",3),i.qZA(),i.TgZ(4,"div",4)(5,"div",5)(6,"div",6),i._UZ(7,"router-outlet"),i.qZA(),i.TgZ(8,"div",7),i._UZ(9,"perun-web-apps-footer"),i.qZA()()()),2&e&&(i.Q6J("ngStyle",i.WLB(5,qk,t.headerBackgroundColor,t.headerTextColor)),i.xp6(1),i.Q6J("ngIf","admin-gui"===t.application||"user-profile"===t.application||"consolidator"===t.application),i.xp6(1),i.Q6J("ngIf","publications"===t.application),i.xp6(1),i.Q6J("ngIf",!!t.headerTitle),i.xp6(2),i.Q6J("ngStyle",i.WLB(8,Gk,t.getContentInnerMinHeight(),t.contentBackgroundColor)))},dependencies:[w.O5,w.PC,ki,Pn,aD],styles:["#login-nav[_ngcontent-%COMP%]{position:fixed;width:100%;z-index:999;display:flex;height:64px;max-height:64px;top:0}#footer[_ngcontent-%COMP%]{position:absolute;bottom:0;width:100%}#content[_ngcontent-%COMP%]{width:100%;min-height:calc(100vh - 64px);margin-top:64px}#content-inner[_ngcontent-%COMP%]{position:relative}#content-wrap[_ngcontent-%COMP%]{padding-bottom:250px;padding-top:10px}@media (max-width: 768px){#content-wrap[_ngcontent-%COMP%]{padding-bottom:500px}}.router-icon[_ngcontent-%COMP%]{height:2.5rem;width:2.5rem;cursor:pointer;outline:0}.page-subtitle[_ngcontent-%COMP%]{margin-bottom:1rem;font-size:1.5rem}.logo-container[_ngcontent-%COMP%]{padding:0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}.display-flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}"]}),n})();di("openClose",[Rt("open",Re({overflow:"hidden"})),Rt("closed",Re({height:"0px",overflow:"hidden"})),Tt("open <=> closed",[At(".3s ease-in")])]);const $k=di("flyInOut",[Tt(":enter",[Re({transform:"translateX(100%)"}),At(".25s")]),Tt(":leave",[At(".5s",Re({transform:"translateX(100%)"}))])]);di("rollInOut",[Tt(":enter",[Re({height:"0px"}),At(".25s")]),Tt(":leave",[At(".25s",Re({height:"0px"}))])]),di("routeAnimations",[Tt("* => *",[Re({position:"relative"}),An(":enter",[Re({width:"100%",opacity:0})],{optional:!0}),An(":leave",[Re({position:"absolute",width:"100%",opacity:1}),At("0.15s",Re({position:"absolute",width:"100%",opacity:0}))],{optional:!0}),An(":enter",[Re({position:"absolute",width:"100%",opacity:0}),At("0.15s",Re({position:"absolute",width:"100%",opacity:1}))],{optional:!0})])]),di("tagsOpenClose",[Rt("open",Re({})),Rt("closed",Re({width:"0px",height:"0px"})),Tt("open <=> closed",[At(".3s ease-in")])]),di("switchAnimations",[Tt("true => false",[An(":enter, :leave",Re({})),up([An(":enter",[Re({transform:"translateX(-100%)"}),At("1s ease-in-out",Re({transform:"translateX(0%)"}))],{optional:!0}),An(":leave",[Re({transform:"translateX(0%)",position:"absolute"}),At("1s ease-in-out",Re({transform:"translateX(100%)"}))],{optional:!0})])]),Tt("false => true",[An(":enter, :leave",Re({})),up([An(":enter",[Re({transform:"translateX(100%)"}),At("1s ease-in-out",Re({transform:"translateX(0%)"}))],{optional:!0}),An(":leave",[Re({transform:"translateX(0%)",position:"absolute"}),At("1s ease-in-out",Re({transform:"translateX(-100%)"}))],{optional:!0})])])]),di("slideInOutLeft",[Tt(":enter",[Re({transform:"translateX(-100%)",position:"relative"}),At("0.5s ease-in",Re({transform:"translateX(0%)"}))]),Tt(":leave",[At("0.5s ease-in",Re({transform:"translateX(-100%)"}))])]),di("slideInOutRight",[Tt(":enter",[Re({transform:"translateX(100%)",position:"fixed"}),At("0.5s ease-in",Re({transform:"translateX(0%)"}))]),Tt(":leave",[Re({transform:"translateX(-100%)",position:"relative"}),At("0.5s ease-in",Re({transform:"translateX(100%)"}))])]);let sD=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[w.ez]}),n})(),oD=(()=>{class n{constructor(e,t){this.translate=e,this.storage=t}transform(e,t="en"){const r=this.storage.getProperty("custom_labels");if(r)for(const l of r)if(l.label===e)return l[t];return e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(ui,16),i.Y36(yn,16))},n.\u0275pipe=i.Yjl({name:"customTranslate",type:n,pure:!0}),n})();function iR(n,s){if(1&n&&(i.O4$(),i._UZ(0,"circle",4)),2&n){const e=i.oxw(),t=i.MAs(1);i.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+e._spinnerAnimationLabel)("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),i.uIk("r",e._getCircleRadius())}}function nR(n,s){if(1&n&&(i.O4$(),i._UZ(0,"circle",4)),2&n){const e=i.oxw(),t=i.MAs(1);i.Udp("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),i.uIk("r",e._getCircleRadius())}}const aR=Mr(class{constructor(n){this._elementRef=n}},"primary"),sR=new i.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function oR(){return{diameter:100}}});class Mi extends aR{constructor(s,e,t,r,l,d,o,a){super(s),this._document=t,this._diameter=100,this._value=0,this._resizeSubscription=Dt.w0.EMPTY,this.mode="determinate";const c=Mi._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),c.has(t.head)||c.set(t.head,new Set([100])),this._noopAnimations="NoopAnimations"===r&&!!l&&!l._forceAnimations,"mat-spinner"===s.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),l&&(l.color&&(this.color=this.defaultColor=l.color),l.diameter&&(this.diameter=l.diameter),l.strokeWidth&&(this.strokeWidth=l.strokeWidth)),e.isBrowser&&e.SAFARI&&o&&d&&a&&(this._resizeSubscription=o.change(150).subscribe(()=>{"indeterminate"===this.mode&&a.run(()=>d.markForCheck())}))}get diameter(){return this._diameter}set diameter(s){this._diameter=ci(s),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(s){this._strokeWidth=ci(s)}get value(){return"determinate"===this.mode?this._value:0}set value(s){this._value=Math.max(0,Math.min(100,ci(s)))}ngOnInit(){const s=this._elementRef.nativeElement;this._styleRoot=Rc(s)||this._document.head,this._attachStyleNode(),s.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const s=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${s} ${s}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_getCircleTransformOrigin(s){const e=50*(s.currentScale??1);return`${e}% ${e}%`}_attachStyleNode(){const s=this._styleRoot,e=this._diameter,t=Mi._diameters;let r=t.get(s);if(!r||!r.has(e)){const l=this._document.createElement("style");l.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),l.textContent=this._getAnimationText(),s.appendChild(l),r||(r=new Set,t.set(s,r)),r.add(e)}}_getAnimationText(){const s=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*s).replace(/END_VALUE/g,""+.2*s).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}Mi._diameters=new WeakMap,Mi.\u0275fac=function(s){return new(s||Mi)(i.Y36(i.SBq),i.Y36(Hi),i.Y36(w.K0,8),i.Y36(i.QbO,8),i.Y36(sR),i.Y36(i.sBO),i.Y36(va),i.Y36(i.R0b))},Mi.\u0275cmp=i.Xpm({type:Mi,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(s,e){2&s&&(i.uIk("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),i.Udp("width",e.diameter,"px")("height",e.diameter,"px"),i.ekj("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[i.qOj],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(s,e){1&s&&(i.O4$(),i.TgZ(0,"svg",0,1),i.YNc(2,iR,1,11,"circle",2),i.YNc(3,nR,1,9,"circle",3),i.qZA()),2&s&&(i.Udp("width",e.diameter,"px")("height",e.diameter,"px"),i.Q6J("ngSwitch","indeterminate"===e.mode),i.uIk("viewBox",e._getViewBox()),i.xp6(2),i.Q6J("ngSwitchCase",!0),i.xp6(1),i.Q6J("ngSwitchCase",!1))},dependencies:[w.RF,w.n9],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:rgba(0,0,0,0);transition:stroke-dashoffset 225ms linear}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}.mat-progress-spinner[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-progress-spinner._mat-animation-noopable svg,.mat-progress-spinner._mat-animation-noopable circle{animation:none;transition: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)}}"],encapsulation:2,changeDetection:0});let ew=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[ct,w.ez,ct]}),n})();function cR(n,s){1&n&&i._UZ(0,"mat-spinner",7)}function dR(n,s){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_ERROR")))}function uR(n,s){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_ERROR")))}function hR(n,s){if(1&n){const e=i.EpF();i.TgZ(0,"div",8)(1,"mat-form-field")(2,"mat-label"),i._uU(3),i.ALo(4,"translate"),i.qZA(),i.TgZ(5,"input",9,10),i.NdJ("ngModelChange",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.subject=r)}),i.qZA(),i.YNc(7,dR,3,3,"mat-error",11),i.qZA(),i.TgZ(8,"mat-form-field")(9,"mat-label"),i._uU(10),i.ALo(11,"translate"),i.qZA(),i.TgZ(12,"textarea",12,13),i.NdJ("ngModelChange",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.message=r)}),i.ALo(14,"translate"),i._uU(15," "),i.qZA(),i.YNc(16,uR,3,3,"mat-error",11),i.qZA()()}if(2&n){const e=i.MAs(6),t=i.MAs(13),r=i.oxw();i.xp6(3),i.Oqu(i.lcZ(4,7,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT")),i.xp6(2),i.Q6J("ngModel",r.subject),i.xp6(2),i.Q6J("ngIf",e.invalid),i.xp6(3),i.Oqu(i.lcZ(11,9,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE")),i.xp6(2),i.s9C("placeholder",i.lcZ(14,11,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_PLACEHOLDER")),i.Q6J("ngModel",r.message),i.xp6(4),i.Q6J("ngIf",t.invalid)}}let pR=(()=>{class n{constructor(e,t,r,l,d,o){this.dialogRef=e,this.translate=t,this.notificator=r,this.rtMessages=l,this.data=d,this.storeService=o,this.message="",this.subject="",this.methodRegexp=/(\w+\/\w+)$/g,this.loading=!1}ngOnInit(){this.data?.error?.errorId&&(this.subject="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_VALUE"),this.parseMethod(this.data.error.call)," (",this.data.error.errorId,")"))}sendBugReport(){this.loading=!0,this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(e=>{this.dialogRef.afterClosed().subscribe(()=>{const t="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS1"),e.ticketNumber.toString(),this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS2"));this.notificator.showSuccess(t)}),this.dialogRef.close()},()=>{this.loading=!1,this.dialogRef.afterClosed().subscribe(()=>{})})}getFullEmailBody(){const e=this.storeService.getProperty("config");let t=this.message+"\n------------------------\nTechnical details:\n\n"+this.data.error.errorId;if(t=t.concat(this.data.error.type?" "+this.data.error.type+"\n":"\n"),t=t.concat(this.data.error.message,"\n","Perun instance: ",e,"\n","Request:\n",this.data.error.urlWithParams,"\n\n"),this.data.error.payload){const r=/"password":".+?"/;let l=JSON.stringify(this.data.error.payload);l=l.replace(r,'"password":"####"'),t=t.concat("Payload:\n"+l+"\n\n")}return t=t.concat("Sent from new Perun Gui, version: ",x(4147).i8),t.split("\n").join("\n ")}parseMethod(e){return e&&this.methodRegexp.exec(e)[1]}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(nn),i.Y36(ui),i.Y36(Un),i.Y36(Go),i.Y36(ar),i.Y36(yn))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-bug-report-dialog"]],decls:13,vars:12,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","",3,"ngModel","ngModelChange"],["subjectModel","ngModel"],[4,"ngIf"],["matInput","","required","",3,"ngModel","placeholder","ngModelChange"],["messageModel","ngModel"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.qZA(),i.YNc(3,cR,1,0,"mat-spinner",1),i.YNc(4,hR,17,13,"div",2),i.TgZ(5,"div",3)(6,"div",4)(7,"button",5),i.NdJ("click",function(){return t.dialogRef.close()}),i._uU(8),i.ALo(9,"translate"),i.qZA(),i.TgZ(10,"button",6),i.NdJ("click",function(){return t.sendBugReport()}),i._uU(11),i.ALo(12,"translate"),i.qZA()()()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,6,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.TITLE")),i.xp6(2),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading),i.xp6(4),i.hij(" ",i.lcZ(9,8,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.CANCEL")," "),i.xp6(2),i.Q6J("disabled",""===t.message||""===t.subject||t.loading),i.xp6(1),i.hij(" ",i.lcZ(12,10,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SEND")," "))},dependencies:[w.O5,Rn,Yn,vn,It,Da,nr,Pr,Nn,Fn,ls,id,La,Mi,tt],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),n})(),fR=(()=>{class n{constructor(e,t,r){this.dialogRef=e,this.dialog=t,this.data=r}onCloseClick(){this.dialogRef.close()}onBugReportClick(){this.dialogRef.afterClosed().subscribe(()=>{const e=Ni();e.width="550px",e.data={error:this.data.error},e.autoFocus=!1,this.dialog.open(pR,e)}),this.dialogRef.close()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(nn),i.Y36(fn),i.Y36(ar))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-notification-dialog"]],decls:12,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"hidden","click"],["autofocus","","mat-button","",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.qZA(),i.TgZ(2,"div",1),i._uU(3),i.qZA(),i.TgZ(4,"div",2)(5,"div",3)(6,"button",4),i.NdJ("click",function(){return t.onBugReportClick()}),i._uU(7),i.ALo(8,"translate"),i.qZA(),i.TgZ(9,"button",5),i.NdJ("click",function(){return t.onCloseClick()}),i._uU(10),i.ALo(11,"translate"),i.qZA()()()),2&e&&(i.xp6(1),i.Oqu(t.data.title),i.xp6(2),i.hij(" ",t.data.description,"\n"),i.xp6(3),i.Q6J("hidden","error"!==t.data.type),i.xp6(1),i.hij(" ",i.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_BUG_REPORT")," "),i.xp6(3),i.hij(" ",i.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_CLOSE")," "))},dependencies:[Rn,Yn,vn,It,tt]}),n})();const yR=[[["caption"]],[["colgroup"],["col"]]],CR=["caption","colgroup, col"];function yx(n){return class extends n{constructor(...s){super(...s),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(s){const e=this._sticky;this._sticky=Ne(s),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const s=this._hasStickyChanged;return this._hasStickyChanged=!1,s}resetStickyChanged(){this._hasStickyChanged=!1}}}const Jp=new i.OlP("CDK_TABLE");let Qp=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkCellDef",""]]}),n})(),Kp=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkHeaderCellDef",""]]}),n})(),tw=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkFooterCellDef",""]]}),n})();class TR{}const xR=yx(TR);let Yl=(()=>{class n extends xR{constructor(e){super(),this._table=e,this._stickyEnd=!1}get name(){return this._name}set name(e){this._setNameInput(e)}get stickyEnd(){return this._stickyEnd}set stickyEnd(e){const t=this._stickyEnd;this._stickyEnd=Ne(e),this._hasStickyChanged=t!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Jp,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkColumnDef",""]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,Qp,5),i.Suo(r,Kp,5),i.Suo(r,tw,5)),2&e){let l;i.iGM(l=i.CRH())&&(t.cell=l.first),i.iGM(l=i.CRH())&&(t.headerCell=l.first),i.iGM(l=i.CRH())&&(t.footerCell=l.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[i._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:n}]),i.qOj]}),n})();class Cx{constructor(s,e){e.nativeElement.classList.add(...s._columnCssClassName)}}let wx=(()=>{class n extends Cx{constructor(e,t){super(e,t)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Yl),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[i.qOj]}),n})(),Ax=(()=>{class n extends Cx{constructor(e,t){if(super(e,t),1===e._table?._elementRef.nativeElement.nodeType){const r=e._table._elementRef.nativeElement.getAttribute("role");t.nativeElement.setAttribute("role","grid"===r||"treegrid"===r?"gridcell":"cell")}}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Yl),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[i.qOj]}),n})();class cD{constructor(){this.tasks=[],this.endTasks=[]}}const vx=new i.OlP("_COALESCED_STYLE_SCHEDULER");let dD=(()=>{class n{constructor(e){this._ngZone=e,this._currentSchedule=null,this._destroyed=new Te.x}schedule(e){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(e)}scheduleEnd(e){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(e)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new cD,this._getScheduleObservable().pipe(Ge(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const e=this._currentSchedule;this._currentSchedule=new cD;for(const t of e.tasks)t();for(const t of e.endTasks)t()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,Oi.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,it.q)(1))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.R0b))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),Tx=(()=>{class n{constructor(e,t){this.template=e,this._differs=t}ngOnChanges(e){if(!this._columnsDiffer){const t=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(t).create(),this._columnsDiffer.diff(t)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof Ng?e.headerCell.template:this instanceof Fg?e.footerCell.template:e.cell.template}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc),i.Y36(i.ZZ4))},n.\u0275dir=i.lG2({type:n,features:[i.TTD]}),n})();class MR extends Tx{}const SR=yx(MR);let Ng=(()=>{class n extends SR{constructor(e,t,r){super(e,t),this._table=r}ngOnChanges(e){super.ngOnChanges(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc),i.Y36(i.ZZ4),i.Y36(Jp,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[i.qOj,i.TTD]}),n})();class ER extends Tx{}const DR=yx(ER);let Fg=(()=>{class n extends DR{constructor(e,t,r){super(e,t),this._table=r}ngOnChanges(e){super.ngOnChanges(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc),i.Y36(i.ZZ4),i.Y36(Jp,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[i.qOj,i.TTD]}),n})(),iw=(()=>{class n extends Tx{constructor(e,t,r){super(e,t),this._table=r}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc),i.Y36(i.ZZ4),i.Y36(Jp,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[i.qOj]}),n})(),Ul=(()=>{class n{constructor(e){this._viewContainer=e,n.mostRecentCellOutlet=this}ngOnDestroy(){n.mostRecentCellOutlet===this&&(n.mostRecentCellOutlet=null)}}return n.mostRecentCellOutlet=null,n.\u0275fac=function(e){return new(e||n)(i.Y36(i.s_b))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkCellOutlet",""]]}),n})(),xx=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&i.GkF(0,0)},dependencies:[Ul],encapsulation:2}),n})(),Sx=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&i.GkF(0,0)},dependencies:[Ul],encapsulation:2}),n})(),nw=(()=>{class n{constructor(e){this.templateRef=e,this._contentClassName="cdk-no-data-row"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["ng-template","cdkNoDataRow",""]]}),n})();const uD=["top","bottom","left","right"];class HR{constructor(s,e,t,r,l=!0,d=!0,o){this._isNativeHtmlTable=s,this._stickCellCss=e,this.direction=t,this._coalescedStyleScheduler=r,this._isBrowser=l,this._needsPositionStickyOnElement=d,this._positionListener=o,this._cachedCellWidths=[],this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(s,e){const t=[];for(const r of s)if(r.nodeType===r.ELEMENT_NODE){t.push(r);for(let l=0;l{for(const r of t)this._removeStickyStyle(r,e)})}updateStickyColumns(s,e,t,r=!0){if(!s.length||!this._isBrowser||!e.some(f=>f)&&!t.some(f=>f))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const l=s[0],d=l.children.length,o=this._getCellWidths(l,r),a=this._getStickyStartColumnPositions(o,e),c=this._getStickyEndColumnPositions(o,t),u=e.lastIndexOf(!0),h=t.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const f="rtl"===this.direction,b=f?"right":"left",V=f?"left":"right";for(const X of s)for(let ue=0;uee[ue]?X:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===h?[]:o.slice(h).map((X,ue)=>t[ue+h]?X:null).reverse()}))})}stickRows(s,e,t){if(!this._isBrowser)return;const r="bottom"===t?s.slice().reverse():s,l="bottom"===t?e.slice().reverse():e,d=[],o=[],a=[];for(let u=0,h=0;u{for(let u=0;u{e.some(r=>!r)?this._removeStickyStyle(t,["bottom"]):this._addStickyStyle(t,"bottom",0,!1)})}_removeStickyStyle(s,e){for(const r of e)s.style[r]="",s.classList.remove(this._borderCellCss[r]);uD.some(r=>-1===e.indexOf(r)&&s.style[r])?s.style.zIndex=this._getCalculatedZIndex(s):(s.style.zIndex="",this._needsPositionStickyOnElement&&(s.style.position=""),s.classList.remove(this._stickCellCss))}_addStickyStyle(s,e,t,r){s.classList.add(this._stickCellCss),r&&s.classList.add(this._borderCellCss[e]),s.style[e]=`${t}px`,s.style.zIndex=this._getCalculatedZIndex(s),this._needsPositionStickyOnElement&&(s.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(s){const e={top:100,bottom:10,left:1,right:1};let t=0;for(const r of uD)s.style[r]&&(t+=e[r]);return t?`${t}`:""}_getCellWidths(s,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;const t=[],r=s.children;for(let l=0;l0;l--)e[l]&&(t[l]=r,r+=s[l]);return t}}const Ex=new i.OlP("CDK_SPL");let rw=(()=>{class n{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.s_b),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","rowOutlet",""]]}),n})(),aw=(()=>{class n{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.s_b),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","headerRowOutlet",""]]}),n})(),sw=(()=>{class n{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.s_b),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","footerRowOutlet",""]]}),n})(),ow=(()=>{class n{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.s_b),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","noDataRowOutlet",""]]}),n})(),lw=(()=>{class n{constructor(e,t,r,l,d,o,a,c,u,h,f,b){this._differs=e,this._changeDetectorRef=t,this._elementRef=r,this._dir=d,this._platform=a,this._viewRepeater=c,this._coalescedStyleScheduler=u,this._viewportRuler=h,this._stickyPositioningListener=f,this._ngZone=b,this._onDestroy=new Te.x,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.contentChanged=new i.vpe,this.viewChange=new gi({start:0,end:Number.MAX_VALUE}),l||this._elementRef.nativeElement.setAttribute("role","table"),this._document=o,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(e){this._trackByFn=e}get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&this._switchDataSource(e)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(e){this._multiTemplateDataRows=Ne(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(e){this._fixedLayout=Ne(e),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((e,t)=>this.trackBy?this.trackBy(t.dataIndex,t.data):t),this._viewportRuler.change().pipe(Ge(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,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(e=>{e.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),ks(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const e=this._dataDiffer.diff(this._renderRows);if(!e)return this._updateNoDataRow(),void this.contentChanged.next();const t=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,t,(r,l,d)=>this._getEmbeddedViewArgs(r.item,d),r=>r.item.data,r=>{1===r.operation&&r.context&&this._renderCellTemplateForItem(r.record.item.rowDef,r.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(r=>{t.get(r.currentIndex).context.$implicit=r.item.data}),this._updateNoDataRow(),this._ngZone&&i.R0b.isInAngularZone()?this._ngZone.onStable.pipe((0,it.q)(1),Ge(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(e){this._customColumnDefs.add(e)}removeColumnDef(e){this._customColumnDefs.delete(e)}addRowDef(e){this._customRowDefs.add(e)}removeRowDef(e){this._customRowDefs.delete(e)}addHeaderRowDef(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}removeHeaderRowDef(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}addFooterRowDef(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}removeFooterRowDef(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}setNoDataRow(e){this._customNoDataRow=e}updateStickyHeaderRowStyles(){const e=this._getRenderedRows(this._headerRowOutlet),r=this._elementRef.nativeElement.querySelector("thead");r&&(r.style.display=e.length?"":"none");const l=this._headerRowDefs.map(d=>d.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,l,"top"),this._headerRowDefs.forEach(d=>d.resetStickyChanged())}updateStickyFooterRowStyles(){const e=this._getRenderedRows(this._footerRowOutlet),r=this._elementRef.nativeElement.querySelector("tfoot");r&&(r.style.display=e.length?"":"none");const l=this._footerRowDefs.map(d=>d.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,l,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,l),this._footerRowDefs.forEach(d=>d.resetStickyChanged())}updateStickyColumnStyles(){const e=this._getRenderedRows(this._headerRowOutlet),t=this._getRenderedRows(this._rowOutlet),r=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...t,...r],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((l,d)=>{this._addStickyColumnStyles([l],this._headerRowDefs[d])}),this._rowDefs.forEach(l=>{const d=[];for(let o=0;o{this._addStickyColumnStyles([l],this._footerRowDefs[d])}),Array.from(this._columnDefsByName.values()).forEach(l=>l.resetStickyChanged())}_getAllRenderRows(){const e=[],t=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let r=0;r{const o=r&&r.has(d)?r.get(d):[];if(o.length){const a=o.shift();return a.dataIndex=t,a}return{data:e,rowDef:d,dataIndex:t}})}_cacheColumnDefs(){this._columnDefsByName.clear(),cw(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(t=>{this._columnDefsByName.has(t.name),this._columnDefsByName.set(t.name,t)})}_cacheRowDefs(){this._headerRowDefs=cw(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=cw(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=cw(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const e=this._rowDefs.filter(t=>!t.when);this._defaultRowDef=e[0]}_renderUpdatedColumns(){const e=(d,o)=>d||!!o.getColumnsDiff(),t=this._rowDefs.reduce(e,!1);t&&this._forceRenderDataRows();const r=this._headerRowDefs.reduce(e,!1);r&&this._forceRenderHeaderRows();const l=this._footerRowDefs.reduce(e,!1);return l&&this._forceRenderFooterRows(),t||r||l}_switchDataSource(e){this._data=[],ks(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=e}_observeRenderChanges(){if(!this.dataSource)return;let e;ks(this.dataSource)?e=this.dataSource.connect(this):Bt(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=(0,Ae.of)(this.dataSource)),this._renderChangeSubscription=e.pipe(Ge(this._onDestroy)).subscribe(t=>{this._data=t||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,t)=>this._renderRow(this._headerRowOutlet,e,t)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,t)=>this._renderRow(this._footerRowOutlet,e,t)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,t){const r=Array.from(t.columns||[]).map(o=>this._columnDefsByName.get(o)),l=r.map(o=>o.sticky),d=r.map(o=>o.stickyEnd);this._stickyStyler.updateStickyColumns(e,l,d,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){const t=[];for(let r=0;r!l.when||l.when(t,e));else{let l=this._rowDefs.find(d=>d.when&&d.when(t,e))||this._defaultRowDef;l&&r.push(l)}return r}_getEmbeddedViewArgs(e,t){return{templateRef:e.rowDef.template,context:{$implicit:e.data},index:t}}_renderRow(e,t,r,l={}){const d=e.viewContainer.createEmbeddedView(t.template,l,r);return this._renderCellTemplateForItem(t,l),d}_renderCellTemplateForItem(e,t){for(let r of this._getCellTemplates(e))Ul.mostRecentCellOutlet&&Ul.mostRecentCellOutlet._viewContainer.createEmbeddedView(r,t);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const e=this._rowOutlet.viewContainer;for(let t=0,r=e.length;t{const r=this._columnDefsByName.get(t);return e.extractCellTemplate(r)}):[]}_applyNativeTableSections(){const e=this._document.createDocumentFragment(),t=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const r of t){const l=this._document.createElement(r.tag);l.setAttribute("role","rowgroup");for(const d of r.outlets)l.appendChild(d.elementRef.nativeElement);e.appendChild(l)}this._elementRef.nativeElement.appendChild(e)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const e=(t,r)=>t||r.hasStickyChanged();this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new HR(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:(0,Ae.of)()).pipe(Ge(this._onDestroy)).subscribe(t=>{this._stickyStyler.direction=t,this.updateStickyColumnStyles()})}_getOwnDefs(e){return e.filter(t=>!t._table||t._table===this)}_updateNoDataRow(){const e=this._customNoDataRow||this._noDataRow;if(!e)return;const t=0===this._rowOutlet.viewContainer.length;if(t===this._isShowingNoDataRow)return;const r=this._noDataRowOutlet.viewContainer;if(t){const l=r.createEmbeddedView(e.templateRef),d=l.rootNodes[0];1===l.rootNodes.length&&d?.nodeType===this._document.ELEMENT_NODE&&(d.setAttribute("role","row"),d.classList.add(e._contentClassName))}else r.clear();this._isShowingNoDataRow=t}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.ZZ4),i.Y36(i.sBO),i.Y36(i.SBq),i.$8M("role"),i.Y36(_i,8),i.Y36(w.K0),i.Y36(Hi),i.Y36(xl),i.Y36(vx),i.Y36(va),i.Y36(Ex,12),i.Y36(i.R0b,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,nw,5),i.Suo(r,Yl,5),i.Suo(r,iw,5),i.Suo(r,Ng,5),i.Suo(r,Fg,5)),2&e){let l;i.iGM(l=i.CRH())&&(t._noDataRow=l.first),i.iGM(l=i.CRH())&&(t._contentColumnDefs=l),i.iGM(l=i.CRH())&&(t._contentRowDefs=l),i.iGM(l=i.CRH())&&(t._contentHeaderRowDefs=l),i.iGM(l=i.CRH())&&(t._contentFooterRowDefs=l)}},viewQuery:function(e,t){if(1&e&&(i.Gf(rw,7),i.Gf(aw,7),i.Gf(sw,7),i.Gf(ow,7)),2&e){let r;i.iGM(r=i.CRH())&&(t._rowOutlet=r.first),i.iGM(r=i.CRH())&&(t._headerRowOutlet=r.first),i.iGM(r=i.CRH())&&(t._footerRowOutlet=r.first),i.iGM(r=i.CRH())&&(t._noDataRowOutlet=r.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("cdk-table-fixed-layout",t.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[i._Bn([{provide:Jp,useExisting:n},{provide:xl,useClass:Uv},{provide:vx,useClass:dD},{provide:Ex,useValue:null}])],ngContentSelectors:CR,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(i.F$t(yR),i.Hsn(0),i.Hsn(1,1),i.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[rw,aw,sw,ow],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),n})();function cw(n,s){return n.concat(Array.from(s))}let kR=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[rs]}),n})();const RR=[[["caption"]],[["colgroup"],["col"]]],LR=["caption","colgroup, col"];let Vo=(()=>{class n extends lw{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return n.\u0275fac=function(){let s;return function(t){return(s||(s=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("mat-table-fixed-layout",t.fixedLayout)},exportAs:["matTable"],features:[i._Bn([{provide:xl,useClass:Uv},{provide:lw,useExisting:n},{provide:Jp,useExisting:n},{provide:vx,useClass:dD},{provide:Ex,useValue:null}]),i.qOj],ngContentSelectors:LR,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(i.F$t(RR),i.Hsn(0),i.Hsn(1,1),i.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[rw,aw,sw,ow],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-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:sticky !important}.mat-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),n})(),js=(()=>{class n extends Qp{}return n.\u0275fac=function(){let s;return function(t){return(s||(s=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matCellDef",""]],features:[i._Bn([{provide:Qp,useExisting:n}]),i.qOj]}),n})(),Ys=(()=>{class n extends Kp{}return n.\u0275fac=function(){let s;return function(t){return(s||(s=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matHeaderCellDef",""]],features:[i._Bn([{provide:Kp,useExisting:n}]),i.qOj]}),n})(),Us=(()=>{class n extends Yl{get name(){return this._name}set name(e){this._setNameInput(e)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return n.\u0275fac=function(){let s;return function(t){return(s||(s=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[i._Bn([{provide:Yl,useExisting:n},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:n}]),i.qOj]}),n})(),zs=(()=>{class n extends wx{}return n.\u0275fac=function(){let s;return function(t){return(s||(s=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[i.qOj]}),n})(),qs=(()=>{class n extends Ax{}return n.\u0275fac=function(){let s;return function(t){return(s||(s=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[i.qOj]}),n})(),zl=(()=>{class n extends Ng{}return n.\u0275fac=function(){let s;return function(t){return(s||(s=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[i._Bn([{provide:Ng,useExisting:n}]),i.qOj]}),n})(),No=(()=>{class n extends iw{}return n.\u0275fac=function(){let s;return function(t){return(s||(s=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[i._Bn([{provide:iw,useExisting:n}]),i.qOj]}),n})(),ql=(()=>{class n extends xx{}return n.\u0275fac=function(){let s;return function(t){return(s||(s=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[i._Bn([{provide:xx,useExisting:n}]),i.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&i.GkF(0,0)},dependencies:[Ul],encapsulation:2}),n})(),Fo=(()=>{class n extends Sx{}return n.\u0275fac=function(){let s;return function(t){return(s||(s=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[i._Bn([{provide:Sx,useExisting:n}]),i.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&i.GkF(0,0)},dependencies:[Ul],encapsulation:2}),n})(),dw=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[kR,ct,ct]}),n})();class qR extends Vb{constructor(s=[]){super(),this._renderData=new gi([]),this._filter=new gi(""),this._internalPageChanges=new Te.x,this._renderChangesSubscription=null,this.sortingDataAccessor=(e,t)=>{const r=e[t];if(X_(r)){const l=Number(r);return l<9007199254740991?l:r}return r},this.sortData=(e,t)=>{const r=t.active,l=t.direction;return r&&""!=l?e.sort((d,o)=>{let a=this.sortingDataAccessor(d,r),c=this.sortingDataAccessor(o,r);const u=typeof a,h=typeof c;u!==h&&("number"===u&&(a+=""),"number"===h&&(c+=""));let f=0;return null!=a&&null!=c?a>c?f=1:a{const r=Object.keys(e).reduce((d,o)=>d+e[o]+"\u25ec","").toLowerCase(),l=t.trim().toLowerCase();return-1!=r.indexOf(l)},this._data=new gi(s),this._updateChangeSubscription()}get data(){return this._data.value}set data(s){s=Array.isArray(s)?s:[],this._data.next(s),this._renderChangesSubscription||this._filterData(s)}get filter(){return this._filter.value}set filter(s){this._filter.next(s),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(s){this._sort=s,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(s){this._paginator=s,this._updateChangeSubscription()}_updateChangeSubscription(){const s=this._sort?(0,xi.T)(this._sort.sortChange,this._sort.initialized):(0,Ae.of)(null),e=this._paginator?(0,xi.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,Ae.of)(null),r=(0,dr.a)([this._data,this._filter]).pipe((0,mt.U)(([o])=>this._filterData(o))),l=(0,dr.a)([r,s]).pipe((0,mt.U)(([o])=>this._orderData(o))),d=(0,dr.a)([l,e]).pipe((0,mt.U)(([o])=>this._pageData(o)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=d.subscribe(o=>this._renderData.next(o))}_filterData(s){return this.filteredData=null==this.filter||""===this.filter?s:s.filter(e=>this.filterPredicate(e,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(s){return this.sort?this.sortData(s.slice(),this.sort):s}_pageData(s){if(!this.paginator)return s;const e=this.paginator.pageIndex*this.paginator.pageSize;return s.slice(e,e+this.paginator.pageSize)}_updatePaginator(s){Promise.resolve().then(()=>{const e=this.paginator;if(e&&(e.length=s,e.pageIndex>0)){const t=Math.ceil(e.length/e.pageSize)-1||0,r=Math.min(e.pageIndex,t);r!==e.pageIndex&&(e.pageIndex=r,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}}class Gl extends qR{}function GR(n,s){1&n&&i._UZ(0,"mat-spinner",7)}function WR(n,s){1&n&&(i.TgZ(0,"div",12),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.ASK")," "))}function $R(n,s){1&n&&i._UZ(0,"th",19)}function ZR(n,s){if(1&n&&(i.TgZ(0,"td",20),i._uU(1),i.qZA()),2&n){const e=s.$implicit;i.xp6(1),i.Oqu(e)}}function JR(n,s){1&n&&i._UZ(0,"tr",21)}function QR(n,s){1&n&&i._UZ(0,"tr",22)}function KR(n,s){if(1&n&&(i.TgZ(0,"table",13),i.ynx(1,14),i.YNc(2,$R,1,0,"th",15),i.YNc(3,ZR,2,1,"td",16),i.BQk(),i.YNc(4,JR,1,0,"tr",17),i.YNc(5,QR,1,0,"tr",18),i.qZA()),2&n){const e=i.oxw(2);i.Q6J("dataSource",e.dataSource),i.xp6(4),i.Q6J("matHeaderRowDef",e.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",e.displayedColumns)}}function XR(n,s){if(1&n&&(i.TgZ(0,"perun-web-apps-alert",23),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n){const e=i.oxw(2);i.Q6J("alert_type","warn"),i.xp6(1),i.hij(" ",i.lcZ(2,2,e.data.alert)," ")}}function eL(n,s){if(1&n&&(i.TgZ(0,"div",8)(1,"p"),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.YNc(4,WR,3,3,"div",9),i.YNc(5,KR,6,3,"table",10),i.YNc(6,XR,3,4,"perun-web-apps-alert",11),i.qZA()),2&n){const e=i.oxw();i.xp6(2),i.hij(" ",i.lcZ(3,4,e.data.description)," "),i.xp6(2),i.Q6J("ngIf",e.data.showAsk),i.xp6(1),i.Q6J("ngIf",e.data.items.length),i.xp6(1),i.Q6J("ngIf",e.data.alert)}}function tL(n,s){if(1&n){const e=i.EpF();i.TgZ(0,"button",24),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onSubmit())}),i._uU(1),i.ALo(2,"translate"),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("disabled",e.loading),i.xp6(1),i.hij(" ",i.lcZ(2,2,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.REMOVE_BUTTON")," ")}}function iL(n,s){if(1&n){const e=i.EpF();i.TgZ(0,"button",25),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onSubmit())}),i._uU(1),i.ALo(2,"translate"),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("disabled",e.loading),i.xp6(1),i.hij(" ",i.lcZ(2,2,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.SUBMIT_BUTTON")," ")}}let Dx=(()=>{class n{constructor(e,t){this.dialogRef=e,this.data=t,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new Gl(this.data.items)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.dialogRef.close(!0)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(nn),i.Y36(ar))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-universal-confirmation-items-dialog"]],decls:12,vars:13,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","class","ml-2","color","warn",3,"disabled","click",4,"ngIf"],["mat-flat-button","","class","ml-2","color","accent",3,"disabled","click",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],["class","font-weight-bold",4,"ngIf"],["mat-table","","class","w-100",3,"dataSource",4,"ngIf"],[3,"alert_type",4,"ngIf"],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-header-row","","class","font-weight-bolder",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""],[3,"alert_type"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(e,t){1&e&&(i.TgZ(0,"div")(1,"h1",0),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.YNc(4,GR,1,0,"mat-spinner",1),i.YNc(5,eL,7,6,"div",2),i.TgZ(6,"div",3)(7,"button",4),i.NdJ("click",function(){return t.onCancel()}),i._uU(8),i.ALo(9,"translate"),i.qZA(),i.YNc(10,tL,3,4,"button",5),i.YNc(11,iL,3,4,"button",6),i.qZA()()),2&e&&(i.Tol(t.theme),i.xp6(2),i.Oqu(i.lcZ(3,9,t.data.title)),i.xp6(2),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading),i.xp6(3),i.hij(" ",i.lcZ(9,11,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.CANCEL_BUTTON")," "),i.xp6(2),i.Q6J("ngIf","remove"===t.data.type),i.xp6(1),i.Q6J("ngIf","confirmation"===t.data.type))},dependencies:[w.O5,Vo,Ys,zl,Us,js,No,zs,qs,ql,Fo,Rn,Yn,vn,It,Mi,na,tt]}),n})(),hL=(()=>{class n{constructor(e,t){this.dialogRef=e,this.data=t}ngOnInit(){this.theme=this.data.theme,this.message=this.data.message}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.dialogRef.close(!0)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(nn),i.Y36(ar))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-universal-confirmation-dialog"]],decls:11,vars:12,consts:[["mat-dialog-title",""],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"div")(1,"h1",0),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"div",1)(5,"button",2),i.NdJ("click",function(){return t.onCancel()}),i._uU(6),i.ALo(7,"translate"),i.qZA(),i.TgZ(8,"button",3),i.NdJ("click",function(){return t.onSubmit()}),i._uU(9),i.ALo(10,"translate"),i.qZA()()()),2&e&&(i.Tol(t.theme),i.xp6(2),i.Oqu(i.lcZ(3,6,t.message)),i.xp6(4),i.hij(" ",i.lcZ(7,8,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_CONFIRMATION_DIALOG.CANCEL_BUTTON")," "),i.xp6(3),i.hij(" ",i.lcZ(10,10,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_CONFIRMATION_DIALOG.SUBMIT_BUTTON")," "))},dependencies:[Rn,vn,It,tt]}),n})();function bL(n,s){1&n&&(i.TgZ(0,"mat-error",8),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"DIALOGS.ADD_SSH.INVALID_TYPE"))))}class Wl{constructor(s,e,t){this.dialogRef=s,this.data=e,this.attributesManagerService=t}ngOnInit(){this.sshControl=new ag(null,[Pi.required,Pi.pattern(Wl.sshKeyPattern)])}onCancel(){this.dialogRef.close(!1)}onSubmit(){const s=this.data.attribute?.value??[],e=this.sshControl.value;s.includes(e)||s.push(e),this.data.attribute.value=s,this.attributesManagerService.setUserAttribute({user:this.data.userId,attribute:this.data.attribute}).subscribe(()=>{this.dialogRef.close(!0)},()=>{s.pop()})}}function TL(n,s){if(1&n&&(i.TgZ(0,"div",9),i._UZ(1,"perun-web-apps-notification",10),i.qZA()),2&n){const e=s.$implicit;i.xp6(1),i.Q6J("data",e)("inDialog",!0)}}function xL(n,s){if(1&n&&(i.TgZ(0,"div",6)(1,"cdk-virtual-scroll-viewport",7),i.YNc(2,TL,2,2,"div",8),i.qZA()()),2&n){const e=i.oxw();i.xp6(2),i.Q6J("cdkVirtualForOf",e.notifications)}}function ML(n,s){1&n&&(i.TgZ(0,"perun-web-apps-alert",11),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"DIALOGS.NOTIFICATION_LIST.NO_NOTIFICATIONS_ALERT"))))}Wl.allowedSshKeys=["ssh-ed25519","ssh-ed25519-cert-v01@openssh.com","sk-ssh-ed25519@openssh.com","sk-ssh-ed25519-cert-v01@openssh.com","ssh-rsa","ssh-dss","ecdsa-sha2-nistp256","ecdsa-sha2-nistp384","ecdsa-sha2-nistp521","sk-ecdsa-sha2-nistp256@openssh.com","ssh-rsa-cert-v01@openssh.com","ssh-dss-cert-v01@openssh.com","ecdsa-sha2-nistp256-cert-v01@openssh.com","ecdsa-sha2-nistp384-cert-v01@openssh.com","ecdsa-sha2-nistp521-cert-v01@openssh.com","sk-ecdsa-sha2-nistp256-cert-v01@openssh.com"],Wl.sshKeyPattern="^("+Wl.allowedSshKeys.join("|")+").+$",Wl.\u0275fac=function(s){return new(s||Wl)(i.Y36(nn),i.Y36(ar),i.Y36(ec))},Wl.\u0275cmp=i.Xpm({type:Wl,selectors:[["perun-web-apps-add-ssh-dialog"]],decls:20,vars:23,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","user-theme"],[1,"input-width"],["matInput","","required","","cdkTextareaAutosize","","cdkAutosizeMinRows","4",3,"placeholder","formControl"],["class","white-space-pre",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[1,"white-space-pre"]],template:function(s,e){1&s&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div",1)(5,"mat-form-field",2)(6,"label",2),i._UZ(7,"textarea",3),i.ALo(8,"translate"),i.ALo(9,"customTranslate"),i.qZA(),i.YNc(10,bL,4,5,"mat-error",4),i.qZA()(),i.TgZ(11,"div",5)(12,"button",6),i.NdJ("click",function(){return e.onCancel()}),i._uU(13),i.ALo(14,"translate"),i.ALo(15,"customTranslate"),i.qZA(),i.TgZ(16,"button",7),i.NdJ("click",function(){return e.onSubmit()}),i._uU(17),i.ALo(18,"translate"),i.ALo(19,"customTranslate"),i.qZA()()),2&s&&(i.xp6(1),i.Oqu(i.lcZ(2,7,i.lcZ(3,9,"DIALOGS.ADD_SSH.TITLE"))),i.xp6(6),i.s9C("placeholder",i.lcZ(8,11,i.lcZ(9,13,"DIALOGS.ADD_SSH.INPUT_PLACEHOLDER"))),i.Q6J("formControl",e.sshControl),i.xp6(3),i.Q6J("ngIf",e.sshControl.invalid&&e.sshControl.dirty),i.xp6(3),i.hij(" ",i.lcZ(14,15,i.lcZ(15,17,"DIALOGS.ADD_SSH.CANCEL"))," "),i.xp6(3),i.Q6J("disabled",e.sshControl.invalid),i.xp6(1),i.hij(" ",i.lcZ(18,19,i.lcZ(19,21,"DIALOGS.ADD_SSH.ADD"))," "))},dependencies:[w.O5,Nn,Fn,ls,It,Da,nr,kr,_k,La,Rn,Yn,vn,tt,oD],styles:[".input-width{width:100%}.white-space-pre{white-space:pre-wrap}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper{padding-bottom:0}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-underline{position:initial!important;display:block;margin-top:-1px}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper,perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-ripple{position:initial!important;display:table}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper{min-height:calc(1em + 1px)}\n"],encapsulation:2});let fD=(()=>{class n{constructor(e,t){this.dialogRef=e,this.notificationStorageService=t}ngOnInit(){this.notifications=this.notificationStorageService.getNotifications()}onCancel(){this.dialogRef.close()}onClear(){this.notificationStorageService.clearNotifications(),this.notifications=[]}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(nn),i.Y36(JC))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-show-notification-history-dialog"]],decls:15,vars:17,consts:[["mat-dialog-title",""],["class","hide-horizontal-scrollbar",4,"ngIf"],["alert_type","warn",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","",1,"ml-2",3,"click"],[1,"hide-horizontal-scrollbar"],["itemSize","50",1,"viewport"],["class","mb-1",4,"cdkVirtualFor","cdkVirtualForOf"],[1,"mb-1"],[3,"data","inDialog"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.YNc(4,xL,3,1,"div",1),i.YNc(5,ML,4,5,"perun-web-apps-alert",2),i.TgZ(6,"div",3)(7,"button",4),i.NdJ("click",function(){return t.onClear()}),i._uU(8),i.ALo(9,"translate"),i.ALo(10,"customTranslate"),i.qZA(),i.TgZ(11,"button",5),i.NdJ("click",function(){return t.onCancel()}),i._uU(12),i.ALo(13,"translate"),i.ALo(14,"customTranslate"),i.qZA()()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,5,i.lcZ(3,7,"DIALOGS.NOTIFICATION_LIST.TITLE"))),i.xp6(3),i.Q6J("ngIf",0!==t.notifications.length),i.xp6(1),i.Q6J("ngIf",0===t.notifications.length),i.xp6(3),i.hij(" ",i.lcZ(9,9,i.lcZ(10,11,"DIALOGS.NOTIFICATION_LIST.CLEAR"))," "),i.xp6(4),i.hij(" ",i.lcZ(13,13,i.lcZ(14,15,"DIALOGS.NOTIFICATION_LIST.CANCEL"))," "))},styles:[".viewport[_ngcontent-%COMP%]{height:400px;width:470px}.hide-horizontal-scrollbar[_ngcontent-%COMP%]{overflow-x:hidden}"]}),n})();function SL(n,s){if(1&n&&(i.TgZ(0,"div",5)(1,"mat-icon"),i._uU(2),i.qZA()()),2&n){const e=i.oxw();i.xp6(2),i.Oqu(e.data.icon)}}function EL(n,s){if(1&n&&(i.TgZ(0,"div",6),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.hij(" ",e.showTimestamp()," ")}}let mD=(()=>{class n{constructor(e,t){this.dialog=e,this.notificationStorageService=t,this.newNotification=!1,this.closeNotification=new i.vpe,this.alreadyPressed=!1,this.alreadyClosed=!1,this.waiting=!1}doAction(){if(this.newNotification&&(this.alreadyPressed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,void 0!==this.data.action)this.data.action();else{const e=Ni();e.width="550px",e.data=this.data,e.autoFocus=!1,this.dialog.open(fR,e).afterClosed().subscribe(()=>{this.closeSelf()})}}closeSelf(){this.inDialog||(this.newNotification&&(this.alreadyClosed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,this.closeNotification.emit())}ngOnInit(){!function RC(n,s){qp.apply(this,arguments)}(this.data.delay,()=>{!this.alreadyClosed&&!this.waiting&&this.closeSelf()})}showTimestamp(){const[e,t]=this.data.timeStamp.split(":");return t.length<2?e+":0"+t:this.data.timeStamp}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(fn),i.Y36(JC))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-notification"]],inputs:{data:"data",inDialog:"inDialog",newNotification:"newNotification"},outputs:{closeNotification:"closeNotification"},decls:9,vars:14,consts:[[1,"notification-container",3,"click"],["class","notification-icon",4,"ngIf"],["data-cy","notification-message",1,"notification-text","clickable"],["class","ml-auto mr-5 mt-auto mb-auto",4,"ngIf"],[1,"notification-action","mt-auto","mb-auto",3,"hidden","click"],[1,"notification-icon"],[1,"ml-auto","mr-5","mt-auto","mb-auto"]],template:function(e,t){1&e&&(i.TgZ(0,"div")(1,"div",0),i.NdJ("click",function(){return t.alreadyClosed||t.waiting?"":t.closeSelf()}),i.YNc(2,SL,3,1,"div",1),i.TgZ(3,"div",2),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.YNc(6,EL,2,1,"div",3),i.TgZ(7,"div",4),i.NdJ("click",function(){return t.waiting=!0,t.doAction()}),i._uU(8),i.qZA()()()),2&e&&(i.Gre("notification ",t.inDialog?"":"mat-elevation-z7",""),i.ekj("error","error"===t.data.type)("success","success"===t.data.type),i.xp6(2),i.Q6J("ngIf",null!==t.data.icon),i.xp6(2),i.hij(" ",i.lcZ(5,12,t.data.title)," "),i.xp6(2),i.Q6J("ngIf",t.inDialog),i.xp6(1),i.Q6J("hidden",t.alreadyPressed),i.xp6(1),i.hij(" ",t.data.actionText," "))},dependencies:[w.O5,ki,tt],styles:[".notification[_ngcontent-%COMP%]{width:450px;margin-bottom:16px;display:flex;flex-direction:row;justify-content:space-between;color:#fff}.notification-container[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:row;padding:16px}.notification-text[_ngcontent-%COMP%]{font-size:1.1em}.notification-action[_ngcontent-%COMP%]{margin-left:auto;text-decoration:underline;cursor:pointer}@media (max-width: 768px){.notification[_ngcontent-%COMP%]{width:100%}}.notification.error[_ngcontent-%COMP%]{background-color:#d32f2f}.notification.success[_ngcontent-%COMP%]{background-color:#288619}.notification-icon[_ngcontent-%COMP%]{padding-right:8px;color:#fff}"]}),n})();function DL(n,s){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"perun-web-apps-notification",2),i.NdJ("closeNotification",function(){const l=i.CHM(e).index,d=i.oxw();return i.KtG(d.removeNotification(l))}),i.qZA()()}if(2&n){const e=s.$implicit;i.Q6J("@flyInOut",void 0),i.xp6(1),i.Q6J("data",e)("newNotification",!0)}}const HL=function(n){return{top:n}};let PL=(()=>{class n{constructor(e,t){this.notificator=e,this.notificationStorageService=t,this.displayWarning=!1,this.minWidth=992,this.notifications=[],this.mobileView=!1,this.notificator.addNotification.subscribe(r=>{this.processNotification(r)}),this.getScreenSize()}getScreenSize(){this.mobileView=window.innerWidth<=this.minWidth}getNotificatorTop(){return this.mobileView?"initial":this.displayWarning?"112px":"64px"}removeNotification(e){this.notifications.splice(e,1)}processNotification(e){this.notifications.push(e),this.notificationStorageService.storeNotification(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Un),i.Y36(JC))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-notificator"]],hostBindings:function(e,t){1&e&&i.NdJ("resize",function(l){return t.getScreenSize(l)},!1,i.Jf7)},inputs:{displayWarning:"displayWarning"},decls:2,vars:4,consts:[["id","notificator",3,"ngStyle"],[4,"ngFor","ngForOf"],[3,"data","newNotification","closeNotification"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.YNc(1,DL,2,3,"div",1),i.qZA()),2&e&&(i.Q6J("ngStyle",i.VKq(2,HL,t.getNotificatorTop())),i.xp6(1),i.Q6J("ngForOf",t.notifications))},dependencies:[w.sg,w.PC,mD],styles:["#notificator[_ngcontent-%COMP%]{position:fixed;right:0;z-index:1001;padding:8px}@media (max-width: 768px){#notificator[_ngcontent-%COMP%]{width:100%;top:initial;bottom:0}}"],data:{animation:[$k]}}),n})();var Xp=(()=>{return(n=Xp||(Xp={})).Admin="admin",n.Profile="profile",n.PwdReset="pwdReset",n.Consolidator="consolidator",n.Linker="linker",Xp;var n})();const kL=["*",[["mat-toolbar-row"]]],RL=["*","mat-toolbar-row"],LL=Mr(class{constructor(n){this._elementRef=n}});let IL=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),n})(),OL=(()=>{class n extends LL{constructor(e,t,r){super(e),this._platform=t,this._document=r}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Hi),i.Y36(w.K0))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-toolbar"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,IL,5),2&e){let l;i.iGM(l=i.CRH())&&(t._toolbarRows=l)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,t){2&e&&i.ekj("mat-toolbar-multiple-rows",t._toolbarRows.length>0)("mat-toolbar-single-row",0===t._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[i.qOj],ngContentSelectors:RL,decls:2,vars:0,template:function(e,t){1&e&&(i.F$t(kL),i.Hsn(0),i.Hsn(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%}"],encapsulation:2,changeDetection:0}),n})(),gD=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[ct,ct]}),n})(),BL=0;const VL=hn(class{}),_D="mat-badge-content";let NL=(()=>{class n extends VL{constructor(e,t,r,l,d){super(),this._ngZone=e,this._elementRef=t,this._ariaDescriber=r,this._renderer=l,this._animationMode=d,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=BL++,this._isInitialized=!1}get color(){return this._color}set color(e){this._setColor(e),this._color=e}get overlap(){return this._overlap}set overlap(e){this._overlap=Ne(e)}get content(){return this._content}set content(e){this._updateRenderedContent(e)}get description(){return this._description}set description(e){this._updateHostAriaDescription(e)}get hidden(){return this._hidden}set hidden(e){this._hidden=Ne(e)}isAbove(){return-1===this.position.indexOf("below")}isAfter(){return-1===this.position.indexOf("before")}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=!0}ngOnDestroy(){this._renderer.destroyNode&&this._renderer.destroyNode(this._badgeElement),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_createBadgeElement(){const e=this._renderer.createElement("span"),t="mat-badge-active";return e.setAttribute("id",`mat-badge-content-${this._id}`),e.setAttribute("aria-hidden","true"),e.classList.add(_D),"NoopAnimations"===this._animationMode&&e.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(e),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{e.classList.add(t)})}):e.classList.add(t),e}_updateRenderedContent(e){const t=`${e??""}`.trim();this._isInitialized&&t&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=t),this._content=t}_updateHostAriaDescription(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),e&&this._ariaDescriber.describe(this._elementRef.nativeElement,e),this._description=e}_setColor(e){const t=this._elementRef.nativeElement.classList;t.remove(`mat-badge-${this._color}`),e&&t.add(`mat-badge-${e}`)}_clearExistingBadges(){const e=this._elementRef.nativeElement.querySelectorAll(`:scope > .${_D}`);for(const t of Array.from(e))t!==this._badgeElement&&t.remove()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.R0b),i.Y36(i.SBq),i.Y36(Xf),i.Y36(i.Qsj),i.Y36(i.QbO,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(e,t){2&e&&i.ekj("mat-badge-overlap",t.overlap)("mat-badge-above",t.isAbove())("mat-badge-below",!t.isAbove())("mat-badge-before",!t.isAfter())("mat-badge-after",t.isAfter())("mat-badge-small","small"===t.size)("mat-badge-medium","medium"===t.size)("mat-badge-large","large"===t.size)("mat-badge-hidden",t.hidden||!t.content)("mat-badge-disabled",t.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],position:["matBadgePosition","position"],content:["matBadge","content"],description:["matBadgeDescription","description"],size:["matBadgeSize","size"],hidden:["matBadgeHidden","hidden"]},features:[i.qOj]}),n})(),FL=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[ep,ct,ct]}),n})();const Hx=function(n){return{color:n}};function jL(n,s){if(1&n&&(i.TgZ(0,"button",8),i.ALo(1,"translate"),i.TgZ(2,"mat-icon",4),i._uU(3," apps "),i.qZA()()),2&n){const e=i.oxw(),t=i.MAs(2);i.Q6J("matMenuTriggerFor",t)("matTooltip",i.lcZ(1,3,"NAV.OTHER_APPLICATIONS")),i.xp6(2),i.Q6J("ngStyle",i.VKq(5,Hx,e.iconColor))}}function YL(n,s){if(1&n&&(i.TgZ(0,"span",9),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.Q6J("ngStyle",i.VKq(6,Hx,e.textColor)),i.xp6(1),i.xDo(" ",e.user.titleBefore," ",e.user.firstName," ",e.user.middleName," ",e.user.lastName," ",e.user.titleAfter," ")}}function UL(n,s){if(1&n){const e=i.EpF();i.TgZ(0,"button",2),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onLogOut())}),i._uU(1),i.ALo(2,"translate"),i.qZA()}2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"NAV.LOGOUT")," "))}let zL=(()=>{class n{constructor(e){this.authService=e}redirectToUrl(){window.open(this.url,"_blank")}onLogOut(){this.authService.logout()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Xu))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-header-menu"]],inputs:{user:"user",iconColor:"iconColor",textColor:"textColor",logoutEnabled:"logoutEnabled",url:"url",label:"label"},decls:13,vars:8,consts:[["mat-icon-button","",3,"matMenuTriggerFor","matTooltip",4,"ngIf"],["appsMenu","matMenu"],["mat-menu-item","",3,"click"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],["class","d-none d-lg-inline",3,"ngStyle",4,"ngIf"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-icon-button","",3,"matMenuTriggerFor","matTooltip"],[1,"d-none","d-lg-inline",3,"ngStyle"]],template:function(e,t){if(1&e&&(i.YNc(0,jL,4,7,"button",0),i.TgZ(1,"mat-menu",null,1)(3,"button",2),i.NdJ("click",function(){return t.redirectToUrl()}),i.TgZ(4,"span"),i._uU(5),i.qZA()()(),i.TgZ(6,"button",3)(7,"mat-icon",4),i._uU(8," person "),i.qZA(),i.YNc(9,YL,2,8,"span",5),i.qZA(),i.TgZ(10,"mat-menu",null,6),i.YNc(12,UL,3,3,"button",7),i.qZA()),2&e){const r=i.MAs(11);i.Q6J("ngIf",t.url),i.xp6(5),i.Oqu(t.label),i.xp6(1),i.Q6J("matMenuTriggerFor",r),i.xp6(1),i.Q6J("ngStyle",i.VKq(6,Hx,t.iconColor)),i.xp6(2),i.Q6J("ngIf",null!==t.user),i.xp6(3),i.Q6J("ngIf",t.logoutEnabled)}},dependencies:[w.O5,w.PC,ki,Fp,Vl,AC,It,Ha,tt],styles:["@media (max-width: 991px){.no-left-padding[_ngcontent-%COMP%]{padding-left:0}}"]}),n})(),qL=(()=>{class n{constructor(e){this.elementRef=e}ngOnInit(){this.elementRef.nativeElement.focus()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","perunWebAppsAutoFocus",""]]}),n})(),bD=(()=>{class n{onClick(e){if(1===e.button&&null!=this.perunWebAppsMiddleClickRouterLink){const t=this.perunWebAppsMiddleClickRouterLink.join("/"),r=location.search;window.open(t+r)}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","perunWebAppsMiddleClickRouterLink",""]],hostBindings:function(e,t){1&e&&i.NdJ("mouseup",function(l){return t.onClick(l)})},inputs:{perunWebAppsMiddleClickRouterLink:"perunWebAppsMiddleClickRouterLink"}}),n})(),Px=(()=>{class n extends bo{constructor(){super(...arguments),this.queryParamsHandling="merge"}ngOnChanges(){if(this.queryParams&&"applicationFormItems"in this.queryParams){this.queryParamsHandling="";const e=Object.assign({},this.queryParams);delete e.applicationFormItems,this.queryParams=e}}}return n.\u0275fac=function(){let s;return function(t){return(s||(s=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["tr","routerLink",""],["a","routerLink",""]],features:[i.qOj,i.TTD]}),n})();const ef=function(n){return{color:n}};function GL(n,s){if(1&n){const e=i.EpF();i.TgZ(0,"button",9),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onToggleSidenav())}),i.TgZ(1,"mat-icon"),i._uU(2,"menu"),i.qZA()()}if(2&n){const e=i.oxw();i.Q6J("ngStyle",i.VKq(1,ef,e.iconColor))}}function WL(n,s){if(1&n){const e=i.EpF();i.TgZ(0,"div",10)(1,"button",11)(2,"mat-icon",12),i._uU(3," language "),i.qZA()(),i.TgZ(4,"mat-menu",null,13)(6,"button",14),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.changeLanguage())}),i._uU(7),i.ALo(8,"translate"),i.qZA()()()}if(2&n){const e=i.MAs(5),t=i.oxw();i.Q6J("ngStyle",i.VKq(6,ef,t.textColor)),i.xp6(1),i.Q6J("matMenuTriggerFor",e),i.xp6(1),i.Q6J("ngStyle",i.VKq(8,ef,t.iconColor)),i.xp6(5),i.hij(" ",i.lcZ(8,4,"HEADER.LANGUAGE")," ")}}function $L(n,s){if(1&n){const e=i.EpF();i.TgZ(0,"button",15),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.showNotificationHistory())}),i.ALo(1,"translate"),i.TgZ(2,"mat-icon",16),i._uU(3),i.qZA()()}if(2&n){const e=i.oxw();i.Q6J("matTooltip",i.lcZ(1,5,"NAV.NOTIFICATIONS_TOOLTIP")),i.xp6(2),i.s9C("matBadge",e.getNewNotificationsCount()>5?"5+":e.getNewNotificationsCount()),i.Q6J("ngStyle",i.VKq(7,ef,e.iconColor))("matBadgeHidden",0===e.getNewNotificationsCount()),i.xp6(1),i.hij(" ",e.getNewNotificationsCount()?"notifications_active":"notifications"," ")}}function ZL(n,s){if(1&n&&i._UZ(0,"perun-web-apps-header-menu",17),2&n){const e=i.oxw();i.Q6J("url",e.otherAppUrl)("label",e.otherAppLabel)("user",e.principal.user)("logoutEnabled",e.logoutEnabled)("iconColor",e.iconColor)("textColor",e.textColor)}}const JL=function(n){return{background:n}},QL=function(){return[]},KL=function(){return["/"]};let XL=(()=>{class n{constructor(e,t,r,l,d,o,a){this.storeService=e,this.sanitizer=t,this.translateService=r,this.otherApplicationService=l,this.notificationStorageService=d,this.dialog=o,this.route=a,this.sidenavToggle=new i.vpe,this.showToggle=!0,this.showLanguageMenu=!1,this.showHeaderMenu=!0,this.showNotifications=!1,this.disableLogo=!1,this.label=this.storeService.getProperty("header_label_en"),this.logoutEnabled=this.storeService.getProperty("log_out_enabled"),this.principal=this.storeService.getPerunPrincipal(),this.bgColor=this.storeService.getProperty("theme").nav_bg_color,this.textColor=this.storeService.getProperty("theme").nav_text_color,this.iconColor=this.storeService.getProperty("theme").nav_icon_color,this.navTextColor=this.storeService.getProperty("theme").nav_text_color,this.activeLink=!1,this.onToggleSidenav=()=>{this.sidenavToggle.emit()}}ngOnInit(){this.otherAppLabel=this.getOtherAppLabel(),this.translateService.onLangChange.subscribe(e=>{this.label=this.storeService.getProperty("en"===e.lang?"header_label_en":"header_label_cs"),this.otherAppLabel=this.getOtherAppLabel(e.lang)}),this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.getProperty("logo")),this.isLinkToOtherAppActive()}getOtherAppLabel(e="en"){return this.storeService.getProperty(this.otherApp===Xp.Profile?"profile_label_en":"en"===e?"admin_gui_label_en":"admin_gui_label_cs")}isLinkToOtherAppActive(){if(this.otherApp===Xp.Admin){this.linkRoles=this.storeService.getProperty("link_to_admin_gui_by_roles");for(const e in this.storeService.getPerunPrincipal().roles)this.linkRoles.includes(e)&&(this.activeLink=!0)}(this.otherApp!==Xp.Admin||this.activeLink)&&(this.otherAppUrl=this.otherApplicationService.getUrlForOtherApplication(this.otherApp))}changeLanguage(){this.translateService.use("en"===this.translateService.currentLang?"cs":"en")}showNotificationHistory(){this.notificationStorageService.newNotificationsCount=0;const e=Ni();e.width="520px",this.dialog.open(fD,e)}getNewNotificationsCount(){return this.notificationStorageService.newNotificationsCount}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(yn),i.Y36(Li),i.Y36(ui),i.Y36(nk),i.Y36(JC),i.Y36(fn),i.Y36(Jn))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-header"]],inputs:{showToggle:"showToggle",showLanguageMenu:"showLanguageMenu",showHeaderMenu:"showHeaderMenu",showNotifications:"showNotifications",disableLogo:"disableLogo",otherApp:"otherApp"},outputs:{sidenavToggle:"sidenavToggle"},decls:10,vars:19,consts:[[1,"sticky-top","header-container","mat-elevation-z3",3,"ngStyle"],["id","nav-menu-icons"],["aria-label","Menu","mat-icon-button","",3,"ngStyle","click",4,"ngIf"],["queryParamsHandling","merge",1,"logo-container","mt-auto","mb-auto",3,"innerHTML","routerLink","queryParams"],[1,"mt-auto","mb-auto","hide-label","page-subtitle",3,"ngStyle"],["id","nav-menu-user-info",3,"ngStyle"],["id","nav-menu-language",3,"ngStyle",4,"ngIf"],["mat-icon-button","",3,"matTooltip","click",4,"ngIf"],[3,"url","label","user","logoutEnabled","iconColor","textColor",4,"ngIf"],["aria-label","Menu","mat-icon-button","",3,"ngStyle","click"],["id","nav-menu-language",3,"ngStyle"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],["menu","matMenu"],["mat-menu-item","",3,"click"],["mat-icon-button","",3,"matTooltip","click"],["matBadgeColor","warn",3,"ngStyle","matBadge","matBadgeHidden"],[3,"url","label","user","logoutEnabled","iconColor","textColor"]],template:function(e,t){1&e&&(i.TgZ(0,"mat-toolbar",0)(1,"div",1),i.YNc(2,GL,3,3,"button",2),i._UZ(3,"a",3),i.TgZ(4,"p",4),i._uU(5),i.qZA()(),i.TgZ(6,"div",5),i.YNc(7,WL,9,10,"div",6),i.YNc(8,$L,4,9,"button",7),i.YNc(9,ZL,1,6,"perun-web-apps-header-menu",8),i.qZA()()),2&e&&(i.Q6J("ngStyle",i.VKq(11,JL,t.bgColor)),i.xp6(2),i.Q6J("ngIf",t.showToggle),i.xp6(1),i.Q6J("innerHTML",t.logo,i.oJD)("routerLink",t.disableLogo?i.DdM(13,QL):i.DdM(14,KL))("queryParams",t.route.snapshot.queryParams),i.xp6(1),i.Q6J("ngStyle",i.VKq(15,ef,t.textColor)),i.xp6(1),i.hij(" ",t.label," "),i.xp6(1),i.Q6J("ngStyle",i.VKq(17,ef,t.navTextColor)),i.xp6(1),i.Q6J("ngIf",t.showLanguageMenu),i.xp6(1),i.Q6J("ngIf",t.showNotifications),i.xp6(1),i.Q6J("ngIf",t.showHeaderMenu))},dependencies:[w.O5,w.PC,Xd,ki,Fp,Vl,AC,It,Ha,OL,NL,zL,Px,tt],styles:[".header-container[_ngcontent-%COMP%]{height:64px!important;display:flex;justify-content:space-between;padding:0 0 0 8px;z-index:999}#nav-menu-user-info[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding-right:16px;margin-left:auto;margin-right:0}@media (max-width: 570px){.hide-label[_ngcontent-%COMP%]{display:none}}#nav-devel-info[_ngcontent-%COMP%]{margin-left:auto;font-weight:500;font-size:1.4rem;display:flex;align-items:center;font-family:Roboto,Helvetica Neue,sans-serif}#nav-menu-icons[_ngcontent-%COMP%]{display:flex;flex-direction:row}.logo-container[_ngcontent-%COMP%]{padding:0 20px 0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}#nav-menu-language[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding-right:16px}"]}),n})(),eI=(()=>{class n{constructor(e){this.authResolver=e}getSideMenuItems(){const e=[];return this.authResolver.isCabinetAdmin()&&e.push({label:"MENU_ITEMS.ALL_PUBLICATIONS",icon:"perun-publications-white",isSVG:!0,link:"/all-publications",activatedRegex:"^/all-publications",tabName:"all-publications"}),e.push({label:"MENU_ITEMS.MY_PUBLICATIONS",icon:"local_library",link:"/my-publications",activatedRegex:"^/my-publications",tabName:"my-publications"}),e.push({label:"MENU_ITEMS.CREATE_PUBLICATION",icon:"add_box",link:"/create-publication",activatedRegex:"^/create-publication",tabName:"create-publication"}),this.authResolver.isCabinetAdmin()&&(e.push({label:"MENU_ITEMS.AUTHORS",icon:"assignment_ind",link:"/authors",activatedRegex:"^/authors",tabName:"authors"}),e.push({label:"MENU_ITEMS.CATEGORIES",icon:"all_inbox",link:"/categories",activatedRegex:"^/categories$",tabName:"categories"}),e.push({label:"MENU_ITEMS.PUBLICATION_SYSTEMS",icon:"assignment",link:"/publication-systems",activatedRegex:"^/publication-systems$",tabName:"publication-systems"})),e}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Me))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),kx=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[ct,ct]}),n})();const yD=["*"],iI=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],nI=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],lI=hn(Xr(class{})),cI=Xr(class{}),dI=new i.OlP("MatList"),CD=new i.OlP("MatNavList");let uI=(()=>{class n extends lI{constructor(){super(...arguments),this._stateChanges=new Te.x}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return n.\u0275fac=function(){let s;return function(t){return(s||(s=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[i._Bn([{provide:CD,useExisting:n}]),i.qOj,i.TTD],ngContentSelectors:yD,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.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:rgba(0,0,0,0);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{display:block;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:rgba(0,0,0,0);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{display:block;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 .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-list-option:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:hover{outline:dotted 1px;z-index:1}.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}}'],encapsulation:2,changeDetection:0}),n})(),wD=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),n})(),AD=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),n})(),hI=(()=>{class n extends cI{constructor(e,t,r,l){super(),this._element=e,this._isInteractiveList=!1,this._destroyed=new Te.x,this._disabled=!1,this._isInteractiveList=!!(r||l&&"action-list"===l._getListType()),this._list=r||l;const d=this._getHostElement();"button"===d.nodeName.toLowerCase()&&!d.hasAttribute("type")&&d.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe(Ge(this._destroyed)).subscribe(()=>{t.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(e){this._disabled=Ne(e)}ngAfterContentInit(){!function Tl(n,s,e="mat"){n.changes.pipe(Nt(n)).subscribe(({length:t})=>{vo(s,`${e}-2-line`,!1),vo(s,`${e}-3-line`,!1),vo(s,`${e}-multi-line`,!1),2===t||3===t?vo(s,`${e}-${t}-line`,!0):t>3&&vo(s,`${e}-multi-line`,!0)})}(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 n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(CD,8),i.Y36(dI,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,wD,5),i.Suo(r,AD,5),i.Suo(r,tp,5)),2&e){let l;i.iGM(l=i.CRH())&&(t._avatar=l.first),i.iGM(l=i.CRH())&&(t._icon=l.first),i.iGM(l=i.CRH())&&(t._lines=l)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:4,hostBindings:function(e,t){2&e&&i.ekj("mat-list-item-disabled",t.disabled)("mat-list-item-with-avatar",t._avatar||t._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[i.qOj],ngContentSelectors:nI,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(e,t){1&e&&(i.F$t(iI),i.TgZ(0,"span",0),i._UZ(1,"span",1),i.Hsn(2),i.TgZ(3,"span",2),i.Hsn(4,1),i.qZA(),i.Hsn(5,2),i.qZA()),2&e&&(i.xp6(1),i.Q6J("matRippleTrigger",t._getHostElement())("matRippleDisabled",t._isRippleDisabled()))},dependencies:[fr],encapsulation:2,changeDetection:0}),n})(),TD=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[To,Dr,ct,rp,w.ez,To,ct,rp,kx]}),n})();function bI(n,s){if(1&n&&i._UZ(0,"mat-icon",6),2&n){const e=i.oxw().$implicit;i.Q6J("svgIcon",e.icon)}}function yI(n,s){if(1&n&&(i.TgZ(0,"mat-icon"),i._uU(1),i.qZA()),2&n){const e=i.oxw().$implicit;i.xp6(1),i.Oqu(e.icon)}}const CI=function(n){return{color:n}};function wI(n,s){if(1&n){const e=i.EpF();i.TgZ(0,"mat-list-item",2),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.shouldHideMenu())}),i.YNc(1,bI,1,1,"mat-icon",3),i.YNc(2,yI,2,1,"mat-icon",4),i.TgZ(3,"span",5),i._uU(4),i.ALo(5,"translate"),i.qZA()()}if(2&n){const e=s.$implicit,t=i.oxw();i.ekj("activated",t.isActive(e.activatedRegex)),i.s9C("routerLink",e.link),i.Q6J("ngStyle",i.VKq(10,CI,t.textColor))("matRippleColor","rgba(255, 255, 255, 0.1)"),i.xp6(1),i.Q6J("ngIf",e.isSVG),i.xp6(1),i.Q6J("ngIf",!e.isSVG),i.xp6(2),i.Oqu(i.lcZ(5,8,e.label))}}let AI=(()=>{class n{constructor(e,t,r){this.sideMenuItemService=e,this.storeService=t,this.router=r,this.items=[],this.textColor=this.storeService.getProperty("theme").sidemenu_text_color,this.currentUrl=r.url,r.events.subscribe(l=>{l instanceof Wa&&(this.currentUrl=l.url)})}ngOnInit(){this.items=this.sideMenuItemService.getSideMenuItems()}isActive(e){return new RegExp(e).test(this.currentUrl)}shouldHideMenu(){"over"===this.sideNav.mode&&this.sideNav.close()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(eI),i.Y36(yn),i.Y36(Ji))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-side-menu"]],inputs:{sideNav:"sideNav"},decls:2,vars:1,consts:[[1,"pt-0"],["mat-ripple","","class","side-menu-item-height",3,"activated","ngStyle","matRippleColor","routerLink","click",4,"ngFor","ngForOf"],["mat-ripple","",1,"side-menu-item-height",3,"ngStyle","matRippleColor","routerLink","click"],["class","perun-icon",3,"svgIcon",4,"ngIf"],[4,"ngIf"],[1,"nav-caption","ml-3"],[1,"perun-icon",3,"svgIcon"]],template:function(e,t){1&e&&(i.TgZ(0,"mat-nav-list",0),i.YNc(1,wI,6,12,"mat-list-item",1),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngForOf",t.items))},dependencies:[w.sg,w.O5,w.PC,ki,uI,hI,fr,bo,tt],styles:[".nav-caption[_ngcontent-%COMP%]{display:inline-block}.side-menu-item-height[_ngcontent-%COMP%]{height:40px!important}mat-list-item[_ngcontent-%COMP%]:hover{background:var(--side-hover)!important;color:var(--side-text-hover)!important}.activated[_ngcontent-%COMP%]{background:var(--side-active)!important;color:var(--side-text-active)!important}"]}),n})();const vI=["footer"],xD=function(n){return{background:n}},TI=function(n){return{"min-height":n}};function xI(n,s){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"perun-web-apps-header",1),i.NdJ("sidenavToggle",function(){i.CHM(e);const r=i.MAs(4);return i.KtG(r.toggle())}),i.qZA(),i.TgZ(2,"mat-sidenav-container",2)(3,"mat-sidenav",3,4),i._UZ(5,"perun-web-apps-side-menu",5),i.qZA(),i.TgZ(6,"mat-sidenav-content",6)(7,"div",7),i._UZ(8,"router-outlet"),i.qZA(),i.TgZ(9,"div",null,8),i._UZ(11,"perun-web-apps-footer"),i.qZA()()()()}if(2&n){const e=i.MAs(4),t=i.oxw();i.xp6(3),i.Q6J("mode",t.sidebarMode)("ngStyle",i.VKq(6,xD,t.sideMenuBgColor))("opened",!t.isMobile()),i.xp6(2),i.Q6J("sideNav",e),i.xp6(1),i.Q6J("ngStyle",i.VKq(8,xD,t.contentBackgroundColor)),i.xp6(1),i.Q6J("ngStyle",i.VKq(10,TI,t.contentHeight))}}function MI(n,s){1&n&&(i.TgZ(0,"div"),i._UZ(1,"perun-web-apps-login-screen-base",9),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Q6J("application","publications")("headerTitle",i.lcZ(2,2,"HEADER.TITLE")))}let SI=(()=>{class n{constructor(e,t,r,l,d){this.store=e,this.initAuth=t,this.changeDetector=r,this.authResolver=l,this.router=d,this.sidebarMode="side",this.sideMenuBgColor=this.store.getProperty("theme").sidemenu_bg_color,this.contentBackgroundColor=this.store.getProperty("theme").content_bg_color,this.contentHeight="calc(100vh - 64px)"}getScreenSize(){this.sidebarMode=this.isMobile()?"over":"side"}ngOnInit(){this.isLoginScreenShow=this.initAuth.isLoginScreenShown(),this.isServiceAccess=this.initAuth.isServiceAccessLoginScreenShown(),sessionStorage.removeItem("baLogout");const e=location.pathname;!this.authResolver.isCabinetAdmin()&&("/"===e||["/all-publications","/authors","/categories","/publication-systems"].some(r=>e.includes(r)))&&this.router.navigate(["my-publications"],{queryParamsHandling:"preserve"})}isMobile(){return window.innerWidth<=n.minWidth}setContentHeight(e){this.contentHeight="calc(100vh - 84px - "+String(e)+"px)",this.changeDetector.detectChanges()}isServiceLogin(){return!!sessionStorage.getItem("baLogout")}ngAfterViewInit(){const e=this.footer?.nativeElement?.offsetHeight?.toString()??"0";this.contentHeight="calc(100vh - 84px - "+e+"px)",this.changeDetector.detectChanges()}}return n.minWidth=992,n.\u0275fac=function(e){return new(e||n)(i.Y36(yn),i.Y36(ZC),i.Y36(i.sBO),i.Y36(Me),i.Y36(Ji))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-root"]],viewQuery:function(e,t){if(1&e&&i.Gf(vI,5),2&e){let r;i.iGM(r=i.CRH())&&(t.footer=r.first)}},hostBindings:function(e,t){1&e&&i.NdJ("resize",function(l){return t.getScreenSize(l)},!1,i.Jf7)},decls:3,vars:2,consts:[[4,"ngIf"],[3,"sidenavToggle"],["autosize","true"],["fixedInViewport","","fixedTopGap","64",1,"side-menu-size",3,"mode","ngStyle","opened"],["sidenav",""],[1,"overflow-hidden",3,"sideNav"],["id","content-inner",3,"ngStyle"],["id","content-wrap",3,"ngStyle"],["footer",""],[3,"application","headerTitle"]],template:function(e,t){1&e&&(i._UZ(0,"perun-web-apps-notificator"),i.YNc(1,xI,12,12,"div",0),i.YNc(2,MI,3,4,"div",0)),2&e&&(i.xp6(1),i.Q6J("ngIf",!t.isLoginScreenShow&&!t.isServiceAccess&&!t.isServiceLogin()),i.xp6(1),i.Q6J("ngIf",t.isLoginScreenShow||t.isServiceAccess||t.isServiceLogin()))},dependencies:[w.O5,w.PC,XE,eD,_x,Pn,Wk,aD,PL,XL,AI,tt],styles:["#content-wrap[_ngcontent-%COMP%]{padding-bottom:25px;padding-top:10px;margin:10px}@media (min-width: 600px){#content-wrap[_ngcontent-%COMP%]{padding-left:25px;padding-right:25px}}#content-inner[_ngcontent-%COMP%]{position:relative;overflow-x:hidden;padding-top:64px;min-height:calc(100vh - 128px)}#nav-menu[_ngcontent-%COMP%]{top:0;background:#102027;position:fixed;width:100%;z-index:999;height:64px;max-height:64px}.side-menu-size[_ngcontent-%COMP%]{width:300px;height:auto}"]}),n})();class EI{constructor(s,e="/assets/i18n/",t=".json"){this.http=s,this.prefix=e,this.suffix=t}getTranslation(s){return this.http.get(`${this.prefix}${s}${this.suffix}`)}}let DI=(()=>{class n{constructor(e,t,r,l,d){this.http=e,this.storeService=t,this.authzSevice=r,this.titleService=l,this.utilsService=d}initializeColors(e,t){return new Promise(r=>{t.forEach(l=>{const d=this.storeService.getProperty("theme")[l.configValue];document.documentElement.style.setProperty(l.cssVariable,d)}),e.forEach(l=>{const d=this.storeService.getProperty("theme")[l.configValue];document.documentElement.style.setProperty(l.cssVariable,d),this.setEntityTheme(l.entity,d)}),r()})}setEntityTheme(e,t){const r=function HI(n){return[ra(tinycolor(n).lighten(52),"50"),ra(tinycolor(n).lighten(37),"100"),ra(tinycolor(n).lighten(26),"200"),ra(tinycolor(n).lighten(12),"300"),ra(tinycolor(n).lighten(6),"400"),ra(tinycolor(n),"500"),ra(tinycolor(n).darken(6),"600"),ra(tinycolor(n).darken(12),"700"),ra(tinycolor(n).darken(18),"800"),ra(tinycolor(n).darken(24),"900"),ra(tinycolor(n).lighten(50).saturate(30),"A100"),ra(tinycolor(n).lighten(30).saturate(30),"A200"),ra(tinycolor(n).lighten(10).saturate(15),"A400"),ra(tinycolor(n).lighten(5).saturate(5),"A700")]}(t);for(const l of r){const a=`--${e}-theme-primary-contrast-${l.name}`,c=l.darkContrast?"30,30,30":"255,255,255";document.documentElement.style.setProperty(`--${e}-theme-primary-${l.name}`,`${l.red},${l.green},${l.blue}`),document.documentElement.style.setProperty(a,c)}}loadAppDefaultConfig(){return new Promise(e=>{this.http.get("/assets/config/defaultConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{this.storeService.setDefaultConfig(t),e()})})}loadAppInstanceConfig(){return new Promise(e=>{this.http.get("/assets/config/instanceConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{this.storeService.setInstanceConfig(t);const r=document.location.hostname;t?.brandings?.[r]&&this.storeService.setBanding(r),e()},()=>{e()})})}getNoCacheHeaders(){return new C.WM({CacheControl:"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"})}setInstanceFavicon(){return new Promise(e=>{const t=document.querySelector("link[rel*='icon']")||document.createElement("link");t.type="image/x-icon",t.rel="shortcut icon",t.href=this.storeService.getProperty("instance_favicon")?"./assets/config/instanceFavicon.ico":"./assets/img/perun.ico",document.getElementsByTagName("head")[0].appendChild(t),e()})}setApiUrl(){return new Promise(e=>{let t=this.storeService.getProperty("api_url");("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal")||this.storeService.getProperty("auto_service_access_redirect"))&&(t=t.replace("oauth","ba")),this.authzSevice.configuration.basePath=t,this.titleService.setTitle(this.storeService.getProperty("document_title").en),e()})}loadAppsConfig(){return new Promise((e,t)=>{this.utilsService.getAppsConfig().subscribe(r=>{this.storeService.setAppsConfig(r),e()},r=>t(r))})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(C.eN),i.LFG(yn),i.LFG(Fa),i.LFG(ae),i.LFG(ja))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function ra(n,s){const e=tinycolor(n),t=e.toRgb();return{name:s,hex:e.toHexString(),darkContrast:e.isLight(),red:t.r,green:t.g,blue:t.b}}let PI=(()=>{class n{constructor(e,t,r,l,d,o){this.initAuthService=e,this.appConfigService=t,this.location=r,this.authzSevice=l,this.guiAuthResolver=d,this.mfaHandlerService=o,this.entityColorConfigs=[{entity:"user",configValue:"user_color",cssVariable:"--user-color"}],this.colorConfigs=[{configValue:"sidemenu_bg_color",cssVariable:"--side-bg"},{configValue:"sidemenu_hover_color",cssVariable:"--side-hover"},{configValue:"sidemenu_hover_text_color",cssVariable:"--side-text-hover"},{configValue:"sidemenu_active_color",cssVariable:"--side-active"},{configValue:"sidemenu_active_text_color",cssVariable:"--side-text-active"}]}loadConfigs(){return this.appConfigService.loadAppDefaultConfig().then(()=>this.appConfigService.loadAppInstanceConfig()).then(()=>this.appConfigService.setApiUrl()).then(()=>this.appConfigService.initializeColors(this.entityColorConfigs,this.colorConfigs)).then(()=>this.initAuthService.verifyAuth()).catch(e=>{throw this.mfaHandlerService.catchNoMfaTokenError(e?.params?.error),console.error(e),this.location.go("/"),location.reload(),e}).then(e=>e?(this.mfaHandlerService.closeMfaWindow(),this.initAuthService.loadPrincipal().then(()=>this.loadPolicies()).then(()=>this.initAuthService.checkRouteGuard())):this.initAuthService.handleAuthStart())}loadPolicies(){return fx(this.authzSevice.getAllPolicies()).then(e=>{this.guiAuthResolver.setPerunPolicies(e)})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(ZC),i.LFG(DI),i.LFG(w.Ye),i.LFG(Fa),i.LFG(Me),i.LFG(mx))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const kI=new i.OlP("perun-api-service");function MD(n){return new i.vHH(3e3,!1)}function pO(){return typeof window<"u"&&typeof window.document<"u"}function Rx(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function pd(n){switch(n.length){case 0:return new Qc;case 1:return n[0];default:return new ty(n)}}function SD(n,s,e,t,r=new Map,l=new Map){const d=[],o=[];let a=-1,c=null;if(t.forEach(u=>{const h=u.get("offset"),f=h==a,b=f&&c||new Map;u.forEach((V,X)=>{let ue=X,je=V;if("offset"!==X)switch(ue=s.normalizePropertyName(ue,d),je){case"!":je=r.get(X);break;case Is:je=l.get(X);break;default:je=s.normalizeStyleValue(X,ue,je,d)}b.set(ue,je)}),f||o.push(b),c=b,a=h}),d.length)throw function tO(n){return new i.vHH(3502,!1)}();return o}function Lx(n,s,e,t){switch(s){case"start":n.onStart(()=>t(e&&Ix(e,"start",n)));break;case"done":n.onDone(()=>t(e&&Ix(e,"done",n)));break;case"destroy":n.onDestroy(()=>t(e&&Ix(e,"destroy",n)))}}function Ix(n,s,e){const l=Ox(n.element,n.triggerName,n.fromState,n.toState,s||n.phaseName,e.totalTime??n.totalTime,!!e.disabled),d=n._data;return null!=d&&(l._data=d),l}function Ox(n,s,e,t,r="",l=0,d){return{element:n,triggerName:s,fromState:e,toState:t,phaseName:r,totalTime:l,disabled:!!d}}function Ia(n,s,e){let t=n.get(s);return t||n.set(s,t=e),t}function ED(n){const s=n.indexOf(":");return[n.substring(1,s),n.slice(s+1)]}let Bx=(n,s)=>!1,DD=(n,s,e)=>[],HD=null;function Vx(n){const s=n.parentNode||n.host;return s===HD?null:s}(Rx()||typeof Element<"u")&&(pO()?(HD=(()=>document.documentElement)(),Bx=(n,s)=>{for(;s;){if(s===n)return!0;s=Vx(s)}return!1}):Bx=(n,s)=>n.contains(s),DD=(n,s,e)=>{if(e)return Array.from(n.querySelectorAll(s));const t=n.querySelector(s);return t?[t]:[]});let eh=null,PD=!1;const kD=Bx,RD=DD;let LD=(()=>{class n{validateStyleProperty(e){return function mO(n){eh||(eh=function gO(){return typeof document<"u"?document.body:null}()||{},PD=!!eh.style&&"WebkitAppearance"in eh.style);let s=!0;return eh.style&&!function fO(n){return"ebkit"==n.substring(1,6)}(n)&&(s=n in eh.style,!s&&PD&&(s="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in eh.style)),s}(e)}matchesElement(e,t){return!1}containsElement(e,t){return kD(e,t)}getParentElement(e){return Vx(e)}query(e,t,r){return RD(e,t,r)}computeStyle(e,t,r){return r||""}animate(e,t,r,l,d,o=[],a){return new Qc(r,l)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),Nx=(()=>{class n{}return n.NOOP=new LD,n})();const Fx="ng-enter",uw="ng-leave",hw="ng-trigger",pw=".ng-trigger",OD="ng-animating",jx=".ng-animating";function fd(n){if("number"==typeof n)return n;const s=n.match(/^(-?[\.\d]+)(m?s)/);return!s||s.length<2?0:Yx(parseFloat(s[1]),s[2])}function Yx(n,s){return"s"===s?1e3*n:n}function fw(n,s,e){return n.hasOwnProperty("duration")?n:function yO(n,s,e){let r,l=0,d="";if("string"==typeof n){const o=n.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===o)return s.push(MD()),{duration:0,delay:0,easing:""};r=Yx(parseFloat(o[1]),o[2]);const a=o[3];null!=a&&(l=Yx(parseFloat(a),o[4]));const c=o[5];c&&(d=c)}else r=n;if(!e){let o=!1,a=s.length;r<0&&(s.push(function RI(){return new i.vHH(3100,!1)}()),o=!0),l<0&&(s.push(function LI(){return new i.vHH(3101,!1)}()),o=!0),o&&s.splice(a,0,MD())}return{duration:r,delay:l,easing:d}}(n,s,e)}function jg(n,s={}){return Object.keys(n).forEach(e=>{s[e]=n[e]}),s}function BD(n){const s=new Map;return Object.keys(n).forEach(e=>{s.set(e,n[e])}),s}function md(n,s=new Map,e){if(e)for(let[t,r]of e)s.set(t,r);for(let[t,r]of n)s.set(t,r);return s}function ND(n,s,e){return e?s+":"+e+";":""}function FD(n){let s="";for(let e=0;e{const l=zx(r);e&&!e.has(r)&&e.set(r,n.style[l]),n.style[l]=t}),Rx()&&FD(n))}function th(n,s){n.style&&(s.forEach((e,t)=>{const r=zx(t);n.style[r]=""}),Rx()&&FD(n))}function Yg(n){return Array.isArray(n)?1==n.length?n[0]:pn(n):n}const Ux=new RegExp("{{\\s*(.+?)\\s*}}","g");function jD(n){let s=[];if("string"==typeof n){let e;for(;e=Ux.exec(n);)s.push(e[1]);Ux.lastIndex=0}return s}function mw(n,s,e){const t=n.toString(),r=t.replace(Ux,(l,d)=>{let o=s[d];return null==o&&(e.push(function OI(n){return new i.vHH(3003,!1)}()),o=""),o.toString()});return r==t?n:r}function gw(n){const s=[];let e=n.next();for(;!e.done;)s.push(e.value),e=n.next();return s}const AO=/-+([a-z0-9])/g;function zx(n){return n.replace(AO,(...s)=>s[1].toUpperCase())}function vO(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Oa(n,s,e){switch(s.type){case 7:return n.visitTrigger(s,e);case 0:return n.visitState(s,e);case 1:return n.visitTransition(s,e);case 2:return n.visitSequence(s,e);case 3:return n.visitGroup(s,e);case 4:return n.visitAnimate(s,e);case 5:return n.visitKeyframes(s,e);case 6:return n.visitStyle(s,e);case 8:return n.visitReference(s,e);case 9:return n.visitAnimateChild(s,e);case 10:return n.visitAnimateRef(s,e);case 11:return n.visitQuery(s,e);case 12:return n.visitStagger(s,e);default:throw function BI(n){return new i.vHH(3004,!1)}()}}function YD(n,s){return window.getComputedStyle(n)[s]}function DO(n,s){const e=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(t=>function HO(n,s,e){if(":"==n[0]){const a=function PO(n,s){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t) *"}}(n,e);if("function"==typeof a)return void s.push(a);n=a}const t=n.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==t||t.length<4)return e.push(function JI(n){return new i.vHH(3015,!1)}()),s;const r=t[1],l=t[2],d=t[3];s.push(UD(r,d));"<"==l[0]&&!("*"==r&&"*"==d)&&s.push(UD(d,r))}(t,e,s)):e.push(n),e}const Cw=new Set(["true","1"]),ww=new Set(["false","0"]);function UD(n,s){const e=Cw.has(n)||ww.has(n),t=Cw.has(s)||ww.has(s);return(r,l)=>{let d="*"==n||n==r,o="*"==s||s==l;return!d&&e&&"boolean"==typeof r&&(d=r?Cw.has(n):ww.has(n)),!o&&t&&"boolean"==typeof l&&(o=l?Cw.has(s):ww.has(s)),d&&o}}const kO=new RegExp("s*:selfs*,?","g");function qx(n,s,e,t){return new RO(n).build(s,e,t)}class RO{constructor(s){this._driver=s}build(s,e,t){const r=new OO(e);return this._resetContextStyleTimingState(r),Oa(this,Yg(s),r)}_resetContextStyleTimingState(s){s.currentQuerySelector="",s.collectedStyles=new Map,s.collectedStyles.set("",new Map),s.currentTime=0}visitTrigger(s,e){let t=e.queryCount=0,r=e.depCount=0;const l=[],d=[];return"@"==s.name.charAt(0)&&e.errors.push(function NI(){return new i.vHH(3006,!1)}()),s.definitions.forEach(o=>{if(this._resetContextStyleTimingState(e),0==o.type){const a=o,c=a.name;c.toString().split(/\s*,\s*/).forEach(u=>{a.name=u,l.push(this.visitState(a,e))}),a.name=c}else if(1==o.type){const a=this.visitTransition(o,e);t+=a.queryCount,r+=a.depCount,d.push(a)}else e.errors.push(function FI(){return new i.vHH(3007,!1)}())}),{type:7,name:s.name,states:l,transitions:d,queryCount:t,depCount:r,options:null}}visitState(s,e){const t=this.visitStyle(s.styles,e),r=s.options&&s.options.params||null;if(t.containsDynamicStyles){const l=new Set,d=r||{};t.styles.forEach(o=>{o instanceof Map&&o.forEach(a=>{jD(a).forEach(c=>{d.hasOwnProperty(c)||l.add(c)})})}),l.size&&(gw(l.values()),e.errors.push(function jI(n,s){return new i.vHH(3008,!1)}()))}return{type:0,name:s.name,style:t,options:r?{params:r}:null}}visitTransition(s,e){e.queryCount=0,e.depCount=0;const t=Oa(this,Yg(s.animation),e);return{type:1,matchers:DO(s.expr,e.errors),animation:t,queryCount:e.queryCount,depCount:e.depCount,options:ih(s.options)}}visitSequence(s,e){return{type:2,steps:s.steps.map(t=>Oa(this,t,e)),options:ih(s.options)}}visitGroup(s,e){const t=e.currentTime;let r=0;const l=s.steps.map(d=>{e.currentTime=t;const o=Oa(this,d,e);return r=Math.max(r,e.currentTime),o});return e.currentTime=r,{type:3,steps:l,options:ih(s.options)}}visitAnimate(s,e){const t=function VO(n,s){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return Gx(fw(n,s).duration,0,"");const e=n;if(e.split(/\s+/).some(l=>"{"==l.charAt(0)&&"{"==l.charAt(1))){const l=Gx(0,0,"");return l.dynamic=!0,l.strValue=e,l}const r=fw(e,s);return Gx(r.duration,r.delay,r.easing)}(s.timings,e.errors);e.currentAnimateTimings=t;let r,l=s.styles?s.styles:Re({});if(5==l.type)r=this.visitKeyframes(l,e);else{let d=s.styles,o=!1;if(!d){o=!0;const c={};t.easing&&(c.easing=t.easing),d=Re(c)}e.currentTime+=t.duration+t.delay;const a=this.visitStyle(d,e);a.isEmptyStep=o,r=a}return e.currentAnimateTimings=null,{type:4,timings:t,style:r,options:null}}visitStyle(s,e){const t=this._makeStyleAst(s,e);return this._validateStyleAst(t,e),t}_makeStyleAst(s,e){const t=[],r=Array.isArray(s.styles)?s.styles:[s.styles];for(let o of r)"string"==typeof o?o===Is?t.push(o):e.errors.push(new i.vHH(3002,!1)):t.push(BD(o));let l=!1,d=null;return t.forEach(o=>{if(o instanceof Map&&(o.has("easing")&&(d=o.get("easing"),o.delete("easing")),!l))for(let a of o.values())if(a.toString().indexOf("{{")>=0){l=!0;break}}),{type:6,styles:t,easing:d,offset:s.offset,containsDynamicStyles:l,options:null}}_validateStyleAst(s,e){const t=e.currentAnimateTimings;let r=e.currentTime,l=e.currentTime;t&&l>0&&(l-=t.duration+t.delay),s.styles.forEach(d=>{"string"!=typeof d&&d.forEach((o,a)=>{const c=e.collectedStyles.get(e.currentQuerySelector),u=c.get(a);let h=!0;u&&(l!=r&&l>=u.startTime&&r<=u.endTime&&(e.errors.push(function UI(n,s,e,t,r){return new i.vHH(3010,!1)}()),h=!1),l=u.startTime),h&&c.set(a,{startTime:l,endTime:r}),e.options&&function wO(n,s,e){const t=s.params||{},r=jD(n);r.length&&r.forEach(l=>{t.hasOwnProperty(l)||e.push(function II(n){return new i.vHH(3001,!1)}())})}(o,e.options,e.errors)})})}visitKeyframes(s,e){const t={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function zI(){return new i.vHH(3011,!1)}()),t;let l=0;const d=[];let o=!1,a=!1,c=0;const u=s.steps.map(je=>{const Pt=this._makeStyleAst(je,e);let Gt=null!=Pt.offset?Pt.offset:function BO(n){if("string"==typeof n)return null;let s=null;if(Array.isArray(n))n.forEach(e=>{if(e instanceof Map&&e.has("offset")){const t=e;s=parseFloat(t.get("offset")),t.delete("offset")}});else if(n instanceof Map&&n.has("offset")){const e=n;s=parseFloat(e.get("offset")),e.delete("offset")}return s}(Pt.styles),ji=0;return null!=Gt&&(l++,ji=Pt.offset=Gt),a=a||ji<0||ji>1,o=o||ji0&&l{const Gt=f>0?Pt==b?1:f*Pt:d[Pt],ji=Gt*ue;e.currentTime=V+X.delay+ji,X.duration=ji,this._validateStyleAst(je,e),je.offset=Gt,t.styles.push(je)}),t}visitReference(s,e){return{type:8,animation:Oa(this,Yg(s.animation),e),options:ih(s.options)}}visitAnimateChild(s,e){return e.depCount++,{type:9,options:ih(s.options)}}visitAnimateRef(s,e){return{type:10,animation:this.visitReference(s.animation,e),options:ih(s.options)}}visitQuery(s,e){const t=e.currentQuerySelector,r=s.options||{};e.queryCount++,e.currentQuery=s;const[l,d]=function LO(n){const s=!!n.split(/\s*,\s*/).find(e=>":self"==e);return s&&(n=n.replace(kO,"")),n=n.replace(/@\*/g,pw).replace(/@\w+/g,e=>pw+"-"+e.slice(1)).replace(/:animating/g,jx),[n,s]}(s.selector);e.currentQuerySelector=t.length?t+" "+l:l,Ia(e.collectedStyles,e.currentQuerySelector,new Map);const o=Oa(this,Yg(s.animation),e);return e.currentQuery=null,e.currentQuerySelector=t,{type:11,selector:l,limit:r.limit||0,optional:!!r.optional,includeSelf:d,animation:o,originalSelector:s.selector,options:ih(s.options)}}visitStagger(s,e){e.currentQuery||e.errors.push(function $I(){return new i.vHH(3013,!1)}());const t="full"===s.timings?{duration:0,delay:0,easing:"full"}:fw(s.timings,e.errors,!0);return{type:12,animation:Oa(this,Yg(s.animation),e),timings:t,options:null}}}class OO{constructor(s){this.errors=s,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function ih(n){return n?(n=jg(n)).params&&(n.params=function IO(n){return n?jg(n):null}(n.params)):n={},n}function Gx(n,s,e){return{duration:n,delay:s,easing:e}}function Wx(n,s,e,t,r,l,d=null,o=!1){return{type:1,element:n,keyframes:s,preStyleProps:e,postStyleProps:t,duration:r,delay:l,totalTime:r+l,easing:d,subTimeline:o}}class Aw{constructor(){this._map=new Map}get(s){return this._map.get(s)||[]}append(s,e){let t=this._map.get(s);t||this._map.set(s,t=[]),t.push(...e)}has(s){return this._map.has(s)}clear(){this._map.clear()}}const jO=new RegExp(":enter","g"),UO=new RegExp(":leave","g");function $x(n,s,e,t,r,l=new Map,d=new Map,o,a,c=[]){return(new zO).buildKeyframes(n,s,e,t,r,l,d,o,a,c)}class zO{buildKeyframes(s,e,t,r,l,d,o,a,c,u=[]){c=c||new Aw;const h=new Zx(s,e,c,r,l,u,[]);h.options=a;const f=a.delay?fd(a.delay):0;h.currentTimeline.delayNextStep(f),h.currentTimeline.setStyles([d],null,h.errors,a),Oa(this,t,h);const b=h.timelines.filter(V=>V.containsAnimation());if(b.length&&o.size){let V;for(let X=b.length-1;X>=0;X--){const ue=b[X];if(ue.element===e){V=ue;break}}V&&!V.allowOnlyTimelineStyles()&&V.setStyles([o],null,h.errors,a)}return b.length?b.map(V=>V.buildKeyframes()):[Wx(e,[],[],[],0,f,"",!1)]}visitTrigger(s,e){}visitState(s,e){}visitTransition(s,e){}visitAnimateChild(s,e){const t=e.subInstructions.get(e.element);if(t){const r=e.createSubContext(s.options),l=e.currentTimeline.currentTime,d=this._visitSubInstructions(t,r,r.options);l!=d&&e.transformIntoNewTimeline(d)}e.previousNode=s}visitAnimateRef(s,e){const t=e.createSubContext(s.options);t.transformIntoNewTimeline(),this.visitReference(s.animation,t),e.transformIntoNewTimeline(t.currentTimeline.currentTime),e.previousNode=s}_visitSubInstructions(s,e,t){let l=e.currentTimeline.currentTime;const d=null!=t.duration?fd(t.duration):null,o=null!=t.delay?fd(t.delay):null;return 0!==d&&s.forEach(a=>{const c=e.appendInstructionToTimeline(a,d,o);l=Math.max(l,c.duration+c.delay)}),l}visitReference(s,e){e.updateOptions(s.options,!0),Oa(this,s.animation,e),e.previousNode=s}visitSequence(s,e){const t=e.subContextCount;let r=e;const l=s.options;if(l&&(l.params||l.delay)&&(r=e.createSubContext(l),r.transformIntoNewTimeline(),null!=l.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=vw);const d=fd(l.delay);r.delayNextStep(d)}s.steps.length&&(s.steps.forEach(d=>Oa(this,d,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>t&&r.transformIntoNewTimeline()),e.previousNode=s}visitGroup(s,e){const t=[];let r=e.currentTimeline.currentTime;const l=s.options&&s.options.delay?fd(s.options.delay):0;s.steps.forEach(d=>{const o=e.createSubContext(s.options);l&&o.delayNextStep(l),Oa(this,d,o),r=Math.max(r,o.currentTimeline.currentTime),t.push(o.currentTimeline)}),t.forEach(d=>e.currentTimeline.mergeTimelineCollectedStyles(d)),e.transformIntoNewTimeline(r),e.previousNode=s}_visitTiming(s,e){if(s.dynamic){const t=s.strValue;return fw(e.params?mw(t,e.params,e.errors):t,e.errors)}return{duration:s.duration,delay:s.delay,easing:s.easing}}visitAnimate(s,e){const t=e.currentAnimateTimings=this._visitTiming(s.timings,e),r=e.currentTimeline;t.delay&&(e.incrementTime(t.delay),r.snapshotCurrentStyles());const l=s.style;5==l.type?this.visitKeyframes(l,e):(e.incrementTime(t.duration),this.visitStyle(l,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=s}visitStyle(s,e){const t=e.currentTimeline,r=e.currentAnimateTimings;!r&&t.hasCurrentStyleProperties()&&t.forwardFrame();const l=r&&r.easing||s.easing;s.isEmptyStep?t.applyEmptyStep(l):t.setStyles(s.styles,l,e.errors,e.options),e.previousNode=s}visitKeyframes(s,e){const t=e.currentAnimateTimings,r=e.currentTimeline.duration,l=t.duration,o=e.createSubContext().currentTimeline;o.easing=t.easing,s.styles.forEach(a=>{o.forwardTime((a.offset||0)*l),o.setStyles(a.styles,a.easing,e.errors,e.options),o.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(o),e.transformIntoNewTimeline(r+l),e.previousNode=s}visitQuery(s,e){const t=e.currentTimeline.currentTime,r=s.options||{},l=r.delay?fd(r.delay):0;l&&(6===e.previousNode.type||0==t&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=vw);let d=t;const o=e.invokeQuery(s.selector,s.originalSelector,s.limit,s.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=o.length;let a=null;o.forEach((c,u)=>{e.currentQueryIndex=u;const h=e.createSubContext(s.options,c);l&&h.delayNextStep(l),c===e.element&&(a=h.currentTimeline),Oa(this,s.animation,h),h.currentTimeline.applyStylesToKeyframe(),d=Math.max(d,h.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(d),a&&(e.currentTimeline.mergeTimelineCollectedStyles(a),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=s}visitStagger(s,e){const t=e.parentContext,r=e.currentTimeline,l=s.timings,d=Math.abs(l.duration),o=d*(e.currentQueryTotal-1);let a=d*e.currentQueryIndex;switch(l.duration<0?"reverse":l.easing){case"reverse":a=o-a;break;case"full":a=t.currentStaggerTime}const u=e.currentTimeline;a&&u.delayNextStep(a);const h=u.currentTime;Oa(this,s.animation,e),e.previousNode=s,t.currentStaggerTime=r.currentTime-h+(r.startTime-t.currentTimeline.startTime)}}const vw={};class Zx{constructor(s,e,t,r,l,d,o,a){this._driver=s,this.element=e,this.subInstructions=t,this._enterClassName=r,this._leaveClassName=l,this.errors=d,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=vw,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new Tw(this._driver,e,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(s,e){if(!s)return;const t=s;let r=this.options;null!=t.duration&&(r.duration=fd(t.duration)),null!=t.delay&&(r.delay=fd(t.delay));const l=t.params;if(l){let d=r.params;d||(d=this.options.params={}),Object.keys(l).forEach(o=>{(!e||!d.hasOwnProperty(o))&&(d[o]=mw(l[o],d,this.errors))})}}_copyOptions(){const s={};if(this.options){const e=this.options.params;if(e){const t=s.params={};Object.keys(e).forEach(r=>{t[r]=e[r]})}}return s}createSubContext(s=null,e,t){const r=e||this.element,l=new Zx(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,t||0));return l.previousNode=this.previousNode,l.currentAnimateTimings=this.currentAnimateTimings,l.options=this._copyOptions(),l.updateOptions(s),l.currentQueryIndex=this.currentQueryIndex,l.currentQueryTotal=this.currentQueryTotal,l.parentContext=this,this.subContextCount++,l}transformIntoNewTimeline(s){return this.previousNode=vw,this.currentTimeline=this.currentTimeline.fork(this.element,s),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(s,e,t){const r={duration:e??s.duration,delay:this.currentTimeline.currentTime+(t??0)+s.delay,easing:""},l=new qO(this._driver,s.element,s.keyframes,s.preStyleProps,s.postStyleProps,r,s.stretchStartingKeyframe);return this.timelines.push(l),r}incrementTime(s){this.currentTimeline.forwardTime(this.currentTimeline.duration+s)}delayNextStep(s){s>0&&this.currentTimeline.delayNextStep(s)}invokeQuery(s,e,t,r,l,d){let o=[];if(r&&o.push(this.element),s.length>0){s=(s=s.replace(jO,"."+this._enterClassName)).replace(UO,"."+this._leaveClassName);let c=this._driver.query(this.element,s,1!=t);0!==t&&(c=t<0?c.slice(c.length+t,c.length):c.slice(0,t)),o.push(...c)}return!l&&0==o.length&&d.push(function ZI(n){return new i.vHH(3014,!1)}()),o}}class Tw{constructor(s,e,t,r){this._driver=s,this.element=e,this.startTime=t,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),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.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(s){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+s),e&&this.snapshotCurrentStyles()):this.startTime+=s}fork(s,e){return this.applyStylesToKeyframe(),new Tw(this._driver,s,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(s){this.applyStylesToKeyframe(),this.duration=s,this._loadKeyframe()}_updateStyle(s,e){this._localTimelineStyles.set(s,e),this._globalTimelineStyles.set(s,e),this._styleSummary.set(s,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(s){s&&this._previousKeyframe.set("easing",s);for(let[e,t]of this._globalTimelineStyles)this._backFill.set(e,t||Is),this._currentKeyframe.set(e,Is);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(s,e,t,r){e&&this._previousKeyframe.set("easing",e);const l=r&&r.params||{},d=function GO(n,s){const e=new Map;let t;return n.forEach(r=>{if("*"===r){t=t||s.keys();for(let l of t)e.set(l,Is)}else md(r,e)}),e}(s,this._globalTimelineStyles);for(let[o,a]of d){const c=mw(a,l,t);this._pendingStyles.set(o,c),this._localTimelineStyles.has(o)||this._backFill.set(o,this._globalTimelineStyles.get(o)??Is),this._updateStyle(o,c)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((s,e)=>{this._currentKeyframe.set(e,s)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((s,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,s)}))}snapshotCurrentStyles(){for(let[s,e]of this._localTimelineStyles)this._pendingStyles.set(s,e),this._updateStyle(s,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const s=[];for(let e in this._currentKeyframe)s.push(e);return s}mergeTimelineCollectedStyles(s){s._styleSummary.forEach((e,t)=>{const r=this._styleSummary.get(t);(!r||e.time>r.time)&&this._updateStyle(t,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const s=new Set,e=new Set,t=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((o,a)=>{const c=md(o,new Map,this._backFill);c.forEach((u,h)=>{"!"===u?s.add(h):u===Is&&e.add(h)}),t||c.set("offset",a/this.duration),r.push(c)});const l=s.size?gw(s.values()):[],d=e.size?gw(e.values()):[];if(t){const o=r[0],a=new Map(o);o.set("offset",0),a.set("offset",1),r=[o,a]}return Wx(this.element,r,l,d,this.duration,this.startTime,this.easing,!1)}}class qO extends Tw{constructor(s,e,t,r,l,d,o=!1){super(s,e,d.delay),this.keyframes=t,this.preStyleProps=r,this.postStyleProps=l,this._stretchStartingKeyframe=o,this.timings={duration:d.duration,delay:d.delay,easing:d.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let s=this.keyframes,{delay:e,duration:t,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const l=[],d=t+e,o=e/d,a=md(s[0]);a.set("offset",0),l.push(a);const c=md(s[0]);c.set("offset",GD(o)),l.push(c);const u=s.length-1;for(let h=1;h<=u;h++){let f=md(s[h]);const b=f.get("offset");f.set("offset",GD((e+b*t)/d)),l.push(f)}t=d,e=0,r="",s=l}return Wx(this.element,s,this.preStyleProps,this.postStyleProps,t,e,r,!0)}}function GD(n,s=3){const e=Math.pow(10,s-1);return Math.round(n*e)/e}class Jx{}const WO=new Set(["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"]);class $O extends Jx{normalizePropertyName(s,e){return zx(s)}normalizeStyleValue(s,e,t,r){let l="";const d=t.toString().trim();if(WO.has(e)&&0!==t&&"0"!==t)if("number"==typeof t)l="px";else{const o=t.match(/^[+-]?[\d\.]+([a-z]*)$/);o&&0==o[1].length&&r.push(function VI(n,s){return new i.vHH(3005,!1)}())}return d+l}}function WD(n,s,e,t,r,l,d,o,a,c,u,h,f){return{type:0,element:n,triggerName:s,isRemovalTransition:r,fromState:e,fromStyles:l,toState:t,toStyles:d,timelines:o,queriedElements:a,preStyleProps:c,postStyleProps:u,totalTime:h,errors:f}}const Qx={};class $D{constructor(s,e,t){this._triggerName=s,this.ast=e,this._stateStyles=t}match(s,e,t,r){return function ZO(n,s,e,t,r){return n.some(l=>l(s,e,t,r))}(this.ast.matchers,s,e,t,r)}buildStyles(s,e,t){let r=this._stateStyles.get("*");return void 0!==s&&(r=this._stateStyles.get(s?.toString())||r),r?r.buildStyles(e,t):new Map}build(s,e,t,r,l,d,o,a,c,u){const h=[],f=this.ast.options&&this.ast.options.params||Qx,V=this.buildStyles(t,o&&o.params||Qx,h),X=a&&a.params||Qx,ue=this.buildStyles(r,X,h),je=new Set,Pt=new Map,Gt=new Map,ji="void"===r,Gs={params:JO(X,f),delay:this.ast.options?.delay},hs=u?[]:$x(s,e,this.ast.animation,l,d,V,ue,Gs,c,h);let Lr=0;if(hs.forEach(Ql=>{Lr=Math.max(Ql.duration+Ql.delay,Lr)}),h.length)return WD(e,this._triggerName,t,r,ji,V,ue,[],[],Pt,Gt,Lr,h);hs.forEach(Ql=>{const Kl=Ql.element,Z1=Ia(Pt,Kl,new Set);Ql.preStyleProps.forEach(ah=>Z1.add(ah));const i_=Ia(Gt,Kl,new Set);Ql.postStyleProps.forEach(ah=>i_.add(ah)),Kl!==e&&je.add(Kl)});const Jl=gw(je.values());return WD(e,this._triggerName,t,r,ji,V,ue,hs,Jl,Pt,Gt,Lr)}}function JO(n,s){const e=jg(s);for(const t in n)n.hasOwnProperty(t)&&null!=n[t]&&(e[t]=n[t]);return e}class QO{constructor(s,e,t){this.styles=s,this.defaultParams=e,this.normalizer=t}buildStyles(s,e){const t=new Map,r=jg(this.defaultParams);return Object.keys(s).forEach(l=>{const d=s[l];null!==d&&(r[l]=d)}),this.styles.styles.forEach(l=>{"string"!=typeof l&&l.forEach((d,o)=>{d&&(d=mw(d,r,e));const a=this.normalizer.normalizePropertyName(o,e);d=this.normalizer.normalizeStyleValue(o,a,d,e),t.set(a,d)})}),t}}class XO{constructor(s,e,t){this.name=s,this.ast=e,this._normalizer=t,this.transitionFactories=[],this.states=new Map,e.states.forEach(r=>{this.states.set(r.name,new QO(r.style,r.options&&r.options.params||{},t))}),ZD(this.states,"true","1"),ZD(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new $D(s,r,this.states))}),this.fallbackTransition=function eB(n,s,e){return new $D(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(d,o)=>!0],options:null,queryCount:0,depCount:0},s)}(s,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(s,e,t,r){return this.transitionFactories.find(d=>d.match(s,e,t,r))||null}matchStyles(s,e,t){return this.fallbackTransition.buildStyles(s,e,t)}}function ZD(n,s,e){n.has(s)?n.has(e)||n.set(e,n.get(s)):n.has(e)&&n.set(s,n.get(e))}const tB=new Aw;class iB{constructor(s,e,t){this.bodyNode=s,this._driver=e,this._normalizer=t,this._animations=new Map,this._playersById=new Map,this.players=[]}register(s,e){const t=[],l=qx(this._driver,e,t,[]);if(t.length)throw function iO(n){return new i.vHH(3503,!1)}();this._animations.set(s,l)}_buildPlayer(s,e,t){const r=s.element,l=SD(0,this._normalizer,0,s.keyframes,e,t);return this._driver.animate(r,l,s.duration,s.delay,s.easing,[],!0)}create(s,e,t={}){const r=[],l=this._animations.get(s);let d;const o=new Map;if(l?(d=$x(this._driver,e,l,Fx,uw,new Map,new Map,t,tB,r),d.forEach(u=>{const h=Ia(o,u.element,new Map);u.postStyleProps.forEach(f=>h.set(f,null))})):(r.push(function nO(){return new i.vHH(3300,!1)}()),d=[]),r.length)throw function rO(n){return new i.vHH(3504,!1)}();o.forEach((u,h)=>{u.forEach((f,b)=>{u.set(b,this._driver.computeStyle(h,b,Is))})});const c=pd(d.map(u=>{const h=o.get(u.element);return this._buildPlayer(u,new Map,h)}));return this._playersById.set(s,c),c.onDestroy(()=>this.destroy(s)),this.players.push(c),c}destroy(s){const e=this._getPlayer(s);e.destroy(),this._playersById.delete(s);const t=this.players.indexOf(e);t>=0&&this.players.splice(t,1)}_getPlayer(s){const e=this._playersById.get(s);if(!e)throw function aO(n){return new i.vHH(3301,!1)}();return e}listen(s,e,t,r){const l=Ox(e,"","","");return Lx(this._getPlayer(s),t,l,r),()=>{}}command(s,e,t,r){if("register"==t)return void this.register(s,r[0]);if("create"==t)return void this.create(s,e,r[0]||{});const l=this._getPlayer(s);switch(t){case"play":l.play();break;case"pause":l.pause();break;case"reset":l.reset();break;case"restart":l.restart();break;case"finish":l.finish();break;case"init":l.init();break;case"setPosition":l.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(s)}}}const JD="ng-animate-queued",Kx="ng-animate-disabled",oB=[],QD={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},lB={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ds="__ng_removed";class Xx{constructor(s,e=""){this.namespaceId=e;const t=s&&s.hasOwnProperty("value");if(this.value=function hB(n){return n??null}(t?s.value:s),t){const l=jg(s);delete l.value,this.options=l}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(s){const e=s.params;if(e){const t=this.options.params;Object.keys(e).forEach(r=>{null==t[r]&&(t[r]=e[r])})}}}const Ug="void",eM=new Xx(Ug);class cB{constructor(s,e,t){this.id=s,this.hostElement=e,this._engine=t,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+s,us(e,this._hostClassName)}listen(s,e,t,r){if(!this._triggers.has(e))throw function sO(n,s){return new i.vHH(3302,!1)}();if(null==t||0==t.length)throw function oO(n){return new i.vHH(3303,!1)}();if(!function pB(n){return"start"==n||"done"==n}(t))throw function lO(n,s){return new i.vHH(3400,!1)}();const l=Ia(this._elementListeners,s,[]),d={name:e,phase:t,callback:r};l.push(d);const o=Ia(this._engine.statesByElement,s,new Map);return o.has(e)||(us(s,hw),us(s,hw+"-"+e),o.set(e,eM)),()=>{this._engine.afterFlush(()=>{const a=l.indexOf(d);a>=0&&l.splice(a,1),this._triggers.has(e)||o.delete(e)})}}register(s,e){return!this._triggers.has(s)&&(this._triggers.set(s,e),!0)}_getTrigger(s){const e=this._triggers.get(s);if(!e)throw function cO(n){return new i.vHH(3401,!1)}();return e}trigger(s,e,t,r=!0){const l=this._getTrigger(e),d=new tM(this.id,e,s);let o=this._engine.statesByElement.get(s);o||(us(s,hw),us(s,hw+"-"+e),this._engine.statesByElement.set(s,o=new Map));let a=o.get(e);const c=new Xx(t,this.id);if(!(t&&t.hasOwnProperty("value"))&&a&&c.absorbOptions(a.options),o.set(e,c),a||(a=eM),c.value!==Ug&&a.value===c.value){if(!function gB(n,s){const e=Object.keys(n),t=Object.keys(s);if(e.length!=t.length)return!1;for(let r=0;r{th(s,ue),jo(s,je)})}return}const f=Ia(this._engine.playersByElement,s,[]);f.forEach(X=>{X.namespaceId==this.id&&X.triggerName==e&&X.queued&&X.destroy()});let b=l.matchTransition(a.value,c.value,s,c.params),V=!1;if(!b){if(!r)return;b=l.fallbackTransition,V=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:s,triggerName:e,transition:b,fromState:a,toState:c,player:d,isFallbackTransition:V}),V||(us(s,JD),d.onStart(()=>{tf(s,JD)})),d.onDone(()=>{let X=this.players.indexOf(d);X>=0&&this.players.splice(X,1);const ue=this._engine.playersByElement.get(s);if(ue){let je=ue.indexOf(d);je>=0&&ue.splice(je,1)}}),this.players.push(d),f.push(d),d}deregister(s){this._triggers.delete(s),this._engine.statesByElement.forEach(e=>e.delete(s)),this._elementListeners.forEach((e,t)=>{this._elementListeners.set(t,e.filter(r=>r.name!=s))})}clearElementCache(s){this._engine.statesByElement.delete(s),this._elementListeners.delete(s);const e=this._engine.playersByElement.get(s);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(s))}_signalRemovalForInnerTriggers(s,e){const t=this._engine.driver.query(s,pw,!0);t.forEach(r=>{if(r[ds])return;const l=this._engine.fetchNamespacesByElement(r);l.size?l.forEach(d=>d.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>t.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(s,e,t,r){const l=this._engine.statesByElement.get(s),d=new Map;if(l){const o=[];if(l.forEach((a,c)=>{if(d.set(c,a.value),this._triggers.has(c)){const u=this.trigger(s,c,Ug,r);u&&o.push(u)}}),o.length)return this._engine.markElementAsRemoved(this.id,s,!0,e,d),t&&pd(o).onDone(()=>this._engine.processLeaveNode(s)),!0}return!1}prepareLeaveAnimationListeners(s){const e=this._elementListeners.get(s),t=this._engine.statesByElement.get(s);if(e&&t){const r=new Set;e.forEach(l=>{const d=l.name;if(r.has(d))return;r.add(d);const a=this._triggers.get(d).fallbackTransition,c=t.get(d)||eM,u=new Xx(Ug),h=new tM(this.id,d,s);this._engine.totalQueuedPlayers++,this._queue.push({element:s,triggerName:d,transition:a,fromState:c,toState:u,player:h,isFallbackTransition:!0})})}}removeNode(s,e){const t=this._engine;if(s.childElementCount&&this._signalRemovalForInnerTriggers(s,e),this.triggerLeaveAnimation(s,e,!0))return;let r=!1;if(t.totalAnimations){const l=t.players.length?t.playersByQueriedElement.get(s):[];if(l&&l.length)r=!0;else{let d=s;for(;d=d.parentNode;)if(t.statesByElement.get(d)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(s),r)t.markElementAsRemoved(this.id,s,!1,e);else{const l=s[ds];(!l||l===QD)&&(t.afterFlush(()=>this.clearElementCache(s)),t.destroyInnerAnimations(s),t._onRemovalComplete(s,e))}}insertNode(s,e){us(s,this._hostClassName)}drainQueuedTransitions(s){const e=[];return this._queue.forEach(t=>{const r=t.player;if(r.destroyed)return;const l=t.element,d=this._elementListeners.get(l);d&&d.forEach(o=>{if(o.name==t.triggerName){const a=Ox(l,t.triggerName,t.fromState.value,t.toState.value);a._data=s,Lx(t.player,o.phase,a,o.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(t)}),this._queue=[],e.sort((t,r)=>{const l=t.transition.ast.depCount,d=r.transition.ast.depCount;return 0==l||0==d?l-d:this._engine.driver.containsElement(t.element,r.element)?1:-1})}destroy(s){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,s)}elementContainsData(s){let e=!1;return this._elementListeners.has(s)&&(e=!0),e=!!this._queue.find(t=>t.element===s)||e,e}}class dB{constructor(s,e,t){this.bodyNode=s,this.driver=e,this._normalizer=t,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=(r,l)=>{}}_onRemovalComplete(s,e){this.onRemovalComplete(s,e)}get queuedPlayers(){const s=[];return this._namespaceList.forEach(e=>{e.players.forEach(t=>{t.queued&&s.push(t)})}),s}createNamespace(s,e){const t=new cB(s,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(t,e):(this.newHostElements.set(e,t),this.collectEnterElement(e)),this._namespaceLookup[s]=t}_balanceNamespaceList(s,e){const t=this._namespaceList,r=this.namespacesByHostElement;if(t.length-1>=0){let d=!1,o=this.driver.getParentElement(e);for(;o;){const a=r.get(o);if(a){const c=t.indexOf(a);t.splice(c+1,0,s),d=!0;break}o=this.driver.getParentElement(o)}d||t.unshift(s)}else t.push(s);return r.set(e,s),s}register(s,e){let t=this._namespaceLookup[s];return t||(t=this.createNamespace(s,e)),t}registerTrigger(s,e,t){let r=this._namespaceLookup[s];r&&r.register(e,t)&&this.totalAnimations++}destroy(s,e){if(!s)return;const t=this._fetchNamespace(s);this.afterFlush(()=>{this.namespacesByHostElement.delete(t.hostElement),delete this._namespaceLookup[s];const r=this._namespaceList.indexOf(t);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>t.destroy(e))}_fetchNamespace(s){return this._namespaceLookup[s]}fetchNamespacesByElement(s){const e=new Set,t=this.statesByElement.get(s);if(t)for(let r of t.values())if(r.namespaceId){const l=this._fetchNamespace(r.namespaceId);l&&e.add(l)}return e}trigger(s,e,t,r){if(xw(e)){const l=this._fetchNamespace(s);if(l)return l.trigger(e,t,r),!0}return!1}insertNode(s,e,t,r){if(!xw(e))return;const l=e[ds];if(l&&l.setForRemoval){l.setForRemoval=!1,l.setForMove=!0;const d=this.collectedLeaveElements.indexOf(e);d>=0&&this.collectedLeaveElements.splice(d,1)}if(s){const d=this._fetchNamespace(s);d&&d.insertNode(e,t)}r&&this.collectEnterElement(e)}collectEnterElement(s){this.collectedEnterElements.push(s)}markElementAsDisabled(s,e){e?this.disabledNodes.has(s)||(this.disabledNodes.add(s),us(s,Kx)):this.disabledNodes.has(s)&&(this.disabledNodes.delete(s),tf(s,Kx))}removeNode(s,e,t,r){if(xw(e)){const l=s?this._fetchNamespace(s):null;if(l?l.removeNode(e,r):this.markElementAsRemoved(s,e,!1,r),t){const d=this.namespacesByHostElement.get(e);d&&d.id!==s&&d.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(s,e,t,r,l){this.collectedLeaveElements.push(e),e[ds]={namespaceId:s,setForRemoval:r,hasAnimation:t,removedBeforeQueried:!1,previousTriggersValues:l}}listen(s,e,t,r,l){return xw(e)?this._fetchNamespace(s).listen(e,t,r,l):()=>{}}_buildInstruction(s,e,t,r,l){return s.transition.build(this.driver,s.element,s.fromState.value,s.toState.value,t,r,s.fromState.options,s.toState.options,e,l)}destroyInnerAnimations(s){let e=this.driver.query(s,pw,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(s,jx,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(s){const e=this.playersByElement.get(s);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(s){const e=this.playersByQueriedElement.get(s);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(s=>{if(this.players.length)return pd(this.players).onDone(()=>s());s()})}processLeaveNode(s){const e=s[ds];if(e&&e.setForRemoval){if(s[ds]=QD,e.namespaceId){this.destroyInnerAnimations(s);const t=this._fetchNamespace(e.namespaceId);t&&t.clearElementCache(s)}this._onRemovalComplete(s,e.setForRemoval)}s.classList?.contains(Kx)&&this.markElementAsDisabled(s,!1),this.driver.query(s,".ng-animate-disabled",!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(s=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,r)=>this._balanceNamespaceList(t,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let t=0;tt()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?pd(e).onDone(()=>{t.forEach(r=>r())}):t.forEach(r=>r())}}reportError(s){throw function dO(n){return new i.vHH(3402,!1)}()}_flushAnimations(s,e){const t=new Aw,r=[],l=new Map,d=[],o=new Map,a=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(at=>{u.add(at);const bt=this.driver.query(at,".ng-animate-queued",!0);for(let xt=0;xt{const xt=Fx+X++;V.set(bt,xt),at.forEach(ti=>us(ti,xt))});const ue=[],je=new Set,Pt=new Set;for(let at=0;atje.add(ti)):Pt.add(bt))}const Gt=new Map,ji=eH(f,Array.from(je));ji.forEach((at,bt)=>{const xt=uw+X++;Gt.set(bt,xt),at.forEach(ti=>us(ti,xt))}),s.push(()=>{b.forEach((at,bt)=>{const xt=V.get(bt);at.forEach(ti=>tf(ti,xt))}),ji.forEach((at,bt)=>{const xt=Gt.get(bt);at.forEach(ti=>tf(ti,xt))}),ue.forEach(at=>{this.processLeaveNode(at)})});const Gs=[],hs=[];for(let at=this._namespaceList.length-1;at>=0;at--)this._namespaceList[at].drainQueuedTransitions(e).forEach(xt=>{const ti=xt.player,zn=xt.element;if(Gs.push(ti),this.collectedEnterElements.length){const gr=zn[ds];if(gr&&gr.setForMove){if(gr.previousTriggersValues&&gr.previousTriggersValues.has(xt.triggerName)){const sh=gr.previousTriggersValues.get(xt.triggerName),ps=this.statesByElement.get(xt.element);if(ps&&ps.has(xt.triggerName)){const Yw=ps.get(xt.triggerName);Yw.value=sh,ps.set(xt.triggerName,Yw)}}return void ti.destroy()}}const Uo=!h||!this.driver.containsElement(h,zn),Na=Gt.get(zn),yd=V.get(zn),rn=this._buildInstruction(xt,t,yd,Na,Uo);if(rn.errors&&rn.errors.length)return void hs.push(rn);if(Uo)return ti.onStart(()=>th(zn,rn.fromStyles)),ti.onDestroy(()=>jo(zn,rn.toStyles)),void r.push(ti);if(xt.isFallbackTransition)return ti.onStart(()=>th(zn,rn.fromStyles)),ti.onDestroy(()=>jo(zn,rn.toStyles)),void r.push(ti);const K1=[];rn.timelines.forEach(gr=>{gr.stretchStartingKeyframe=!0,this.disabledNodes.has(gr.element)||K1.push(gr)}),rn.timelines=K1,t.append(zn,rn.timelines),d.push({instruction:rn,player:ti,element:zn}),rn.queriedElements.forEach(gr=>Ia(o,gr,[]).push(ti)),rn.preStyleProps.forEach((gr,sh)=>{if(gr.size){let ps=a.get(sh);ps||a.set(sh,ps=new Set),gr.forEach((Yw,IM)=>ps.add(IM))}}),rn.postStyleProps.forEach((gr,sh)=>{let ps=c.get(sh);ps||c.set(sh,ps=new Set),gr.forEach((Yw,IM)=>ps.add(IM))})});if(hs.length){const at=[];hs.forEach(bt=>{at.push(function uO(n,s){return new i.vHH(3505,!1)}())}),Gs.forEach(bt=>bt.destroy()),this.reportError(at)}const Lr=new Map,Jl=new Map;d.forEach(at=>{const bt=at.element;t.has(bt)&&(Jl.set(bt,bt),this._beforeAnimationBuild(at.player.namespaceId,at.instruction,Lr))}),r.forEach(at=>{const bt=at.element;this._getPreviousPlayers(bt,!1,at.namespaceId,at.triggerName,null).forEach(ti=>{Ia(Lr,bt,[]).push(ti),ti.destroy()})});const Ql=ue.filter(at=>iH(at,a,c)),Kl=new Map;XD(Kl,this.driver,Pt,c,Is).forEach(at=>{iH(at,a,c)&&Ql.push(at)});const i_=new Map;b.forEach((at,bt)=>{XD(i_,this.driver,new Set(at),a,"!")}),Ql.forEach(at=>{const bt=Kl.get(at),xt=i_.get(at);Kl.set(at,new Map([...Array.from(bt?.entries()??[]),...Array.from(xt?.entries()??[])]))});const ah=[],J1=[],Q1={};d.forEach(at=>{const{element:bt,player:xt,instruction:ti}=at;if(t.has(bt)){if(u.has(bt))return xt.onDestroy(()=>jo(bt,ti.toStyles)),xt.disabled=!0,xt.overrideTotalTime(ti.totalTime),void r.push(xt);let zn=Q1;if(Jl.size>1){let Na=bt;const yd=[];for(;Na=Na.parentNode;){const rn=Jl.get(Na);if(rn){zn=rn;break}yd.push(Na)}yd.forEach(rn=>Jl.set(rn,zn))}const Uo=this._buildAnimation(xt.namespaceId,ti,Lr,l,i_,Kl);if(xt.setRealPlayer(Uo),zn===Q1)ah.push(xt);else{const Na=this.playersByElement.get(zn);Na&&Na.length&&(xt.parentPlayer=pd(Na)),r.push(xt)}}else th(bt,ti.fromStyles),xt.onDestroy(()=>jo(bt,ti.toStyles)),J1.push(xt),u.has(bt)&&r.push(xt)}),J1.forEach(at=>{const bt=l.get(at.element);if(bt&&bt.length){const xt=pd(bt);at.setRealPlayer(xt)}}),r.forEach(at=>{at.parentPlayer?at.syncPlayerEvents(at.parentPlayer):at.destroy()});for(let at=0;at!Uo.destroyed);zn.length?fB(this,bt,zn):this.processLeaveNode(bt)}return ue.length=0,ah.forEach(at=>{this.players.push(at),at.onDone(()=>{at.destroy();const bt=this.players.indexOf(at);this.players.splice(bt,1)}),at.play()}),ah}elementContainsData(s,e){let t=!1;const r=e[ds];return r&&r.setForRemoval&&(t=!0),this.playersByElement.has(e)&&(t=!0),this.playersByQueriedElement.has(e)&&(t=!0),this.statesByElement.has(e)&&(t=!0),this._fetchNamespace(s).elementContainsData(e)||t}afterFlush(s){this._flushFns.push(s)}afterFlushAnimationsDone(s){this._whenQuietFns.push(s)}_getPreviousPlayers(s,e,t,r,l){let d=[];if(e){const o=this.playersByQueriedElement.get(s);o&&(d=o)}else{const o=this.playersByElement.get(s);if(o){const a=!l||l==Ug;o.forEach(c=>{c.queued||!a&&c.triggerName!=r||d.push(c)})}}return(t||r)&&(d=d.filter(o=>!(t&&t!=o.namespaceId||r&&r!=o.triggerName))),d}_beforeAnimationBuild(s,e,t){const l=e.element,d=e.isRemovalTransition?void 0:s,o=e.isRemovalTransition?void 0:e.triggerName;for(const a of e.timelines){const c=a.element,u=c!==l,h=Ia(t,c,[]);this._getPreviousPlayers(c,u,d,o,e.toState).forEach(b=>{const V=b.getRealPlayer();V.beforeDestroy&&V.beforeDestroy(),b.destroy(),h.push(b)})}th(l,e.fromStyles)}_buildAnimation(s,e,t,r,l,d){const o=e.triggerName,a=e.element,c=[],u=new Set,h=new Set,f=e.timelines.map(V=>{const X=V.element;u.add(X);const ue=X[ds];if(ue&&ue.removedBeforeQueried)return new Qc(V.duration,V.delay);const je=X!==a,Pt=function mB(n){const s=[];return tH(n,s),s}((t.get(X)||oB).map(Lr=>Lr.getRealPlayer())).filter(Lr=>!!Lr.element&&Lr.element===X),Gt=l.get(X),ji=d.get(X),Gs=SD(0,this._normalizer,0,V.keyframes,Gt,ji),hs=this._buildPlayer(V,Gs,Pt);if(V.subTimeline&&r&&h.add(X),je){const Lr=new tM(s,o,X);Lr.setRealPlayer(hs),c.push(Lr)}return hs});c.forEach(V=>{Ia(this.playersByQueriedElement,V.element,[]).push(V),V.onDone(()=>function uB(n,s,e){let t=n.get(s);if(t){if(t.length){const r=t.indexOf(e);t.splice(r,1)}0==t.length&&n.delete(s)}return t}(this.playersByQueriedElement,V.element,V))}),u.forEach(V=>us(V,OD));const b=pd(f);return b.onDestroy(()=>{u.forEach(V=>tf(V,OD)),jo(a,e.toStyles)}),h.forEach(V=>{Ia(r,V,[]).push(b)}),b}_buildPlayer(s,e,t){return e.length>0?this.driver.animate(s.element,e,s.duration,s.delay,s.easing,t):new Qc(s.duration,s.delay)}}class tM{constructor(s,e,t){this.namespaceId=s,this.triggerName=e,this.element=t,this._player=new Qc,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(s){this._containsRealPlayer||(this._player=s,this._queuedCallbacks.forEach((e,t)=>{e.forEach(r=>Lx(s,t,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(s.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(s){this.totalTime=s}syncPlayerEvents(s){const e=this._player;e.triggerCallback&&s.onStart(()=>e.triggerCallback("start")),s.onDone(()=>this.finish()),s.onDestroy(()=>this.destroy())}_queueEvent(s,e){Ia(this._queuedCallbacks,s,[]).push(e)}onDone(s){this.queued&&this._queueEvent("done",s),this._player.onDone(s)}onStart(s){this.queued&&this._queueEvent("start",s),this._player.onStart(s)}onDestroy(s){this.queued&&this._queueEvent("destroy",s),this._player.onDestroy(s)}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(s){this.queued||this._player.setPosition(s)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(s){const e=this._player;e.triggerCallback&&e.triggerCallback(s)}}function xw(n){return n&&1===n.nodeType}function KD(n,s){const e=n.style.display;return n.style.display=s??"none",e}function XD(n,s,e,t,r){const l=[];e.forEach(a=>l.push(KD(a)));const d=[];t.forEach((a,c)=>{const u=new Map;a.forEach(h=>{const f=s.computeStyle(c,h,r);u.set(h,f),(!f||0==f.length)&&(c[ds]=lB,d.push(c))}),n.set(c,u)});let o=0;return e.forEach(a=>KD(a,l[o++])),d}function eH(n,s){const e=new Map;if(n.forEach(o=>e.set(o,[])),0==s.length)return e;const r=new Set(s),l=new Map;function d(o){if(!o)return 1;let a=l.get(o);if(a)return a;const c=o.parentNode;return a=e.has(c)?c:r.has(c)?1:d(c),l.set(o,a),a}return s.forEach(o=>{const a=d(o);1!==a&&e.get(a).push(o)}),e}function us(n,s){n.classList?.add(s)}function tf(n,s){n.classList?.remove(s)}function fB(n,s,e){pd(e).onDone(()=>n.processLeaveNode(s))}function tH(n,s){for(let e=0;er.add(l)):s.set(n,t),e.delete(n),!0}class Mw{constructor(s,e,t){this.bodyNode=s,this._driver=e,this._normalizer=t,this._triggerCache={},this.onRemovalComplete=(r,l)=>{},this._transitionEngine=new dB(s,e,t),this._timelineEngine=new iB(s,e,t),this._transitionEngine.onRemovalComplete=(r,l)=>this.onRemovalComplete(r,l)}registerTrigger(s,e,t,r,l){const d=s+"-"+r;let o=this._triggerCache[d];if(!o){const a=[],u=qx(this._driver,l,a,[]);if(a.length)throw function eO(n,s){return new i.vHH(3404,!1)}();o=function KO(n,s,e){return new XO(n,s,e)}(r,u,this._normalizer),this._triggerCache[d]=o}this._transitionEngine.registerTrigger(e,r,o)}register(s,e){this._transitionEngine.register(s,e)}destroy(s,e){this._transitionEngine.destroy(s,e)}onInsert(s,e,t,r){this._transitionEngine.insertNode(s,e,t,r)}onRemove(s,e,t,r){this._transitionEngine.removeNode(s,e,r||!1,t)}disableAnimations(s,e){this._transitionEngine.markElementAsDisabled(s,e)}process(s,e,t,r){if("@"==t.charAt(0)){const[l,d]=ED(t);this._timelineEngine.command(l,e,d,r)}else this._transitionEngine.trigger(s,e,t,r)}listen(s,e,t,r,l){if("@"==t.charAt(0)){const[d,o]=ED(t);return this._timelineEngine.listen(d,e,o,l)}return this._transitionEngine.listen(s,e,t,r,l)}flush(s=-1){this._transitionEngine.flush(s)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let bB=(()=>{class n{constructor(e,t,r){this._element=e,this._startStyles=t,this._endStyles=r,this._state=0;let l=n.initialStylesByElement.get(e);l||n.initialStylesByElement.set(e,l=new Map),this._initialStyles=l}start(){this._state<1&&(this._startStyles&&jo(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(jo(this._element,this._initialStyles),this._endStyles&&(jo(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(th(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(th(this._element,this._endStyles),this._endStyles=null),jo(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function iM(n){let s=null;return n.forEach((e,t)=>{(function yB(n){return"display"===n||"position"===n})(t)&&(s=s||new Map,s.set(t,e))}),s}class nH{constructor(s,e,t,r){this.element=s,this.keyframes=e,this.options=t,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=t.duration,this._delay=t.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(s=>s()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const s=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,s,this.options),this._finalKeyframe=s.length?s[s.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(s){const e=[];return s.forEach(t=>{e.push(Object.fromEntries(t))}),e}_triggerWebAnimation(s,e,t){return s.animate(this._convertKeyframesToObject(e),t)}onStart(s){this._originalOnStartFns.push(s),this._onStartFns.push(s)}onDone(s){this._originalOnDoneFns.push(s),this._onDoneFns.push(s)}onDestroy(s){this._onDestroyFns.push(s)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(s=>s()),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,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_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(s=>s()),this._onDestroyFns=[])}setPosition(s){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=s*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const s=new Map;this.hasStarted()&&this._finalKeyframe.forEach((t,r)=>{"offset"!==r&&s.set(r,this._finished?t:YD(this.element,r))}),this.currentSnapshot=s}triggerCallback(s){const e="start"===s?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class CB{validateStyleProperty(s){return!0}validateAnimatableStyleProperty(s){return!0}matchesElement(s,e){return!1}containsElement(s,e){return kD(s,e)}getParentElement(s){return Vx(s)}query(s,e,t){return RD(s,e,t)}computeStyle(s,e,t){return window.getComputedStyle(s)[e]}animate(s,e,t,r,l,d=[]){const a={duration:t,delay:r,fill:0==r?"both":"forwards"};l&&(a.easing=l);const c=new Map,u=d.filter(b=>b instanceof nH);(function TO(n,s){return 0===n||0===s})(t,r)&&u.forEach(b=>{b.currentSnapshot.forEach((V,X)=>c.set(X,V))});let h=function CO(n){return n.length?n[0]instanceof Map?n:n.map(s=>BD(s)):[]}(e).map(b=>md(b));h=function xO(n,s,e){if(e.size&&s.length){let t=s[0],r=[];if(e.forEach((l,d)=>{t.has(d)||r.push(d),t.set(d,l)}),r.length)for(let l=1;ld.set(o,YD(n,o)))}}return s}(s,h,c);const f=function _B(n,s){let e=null,t=null;return Array.isArray(s)&&s.length?(e=iM(s[0]),s.length>1&&(t=iM(s[s.length-1]))):s instanceof Map&&(e=iM(s)),e||t?new bB(n,e,t):null}(s,h);return new nH(s,h,a,f)}}let wB=(()=>{class n extends Hm{constructor(e,t){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(t.body,{id:"0",encapsulation:i.ifc.None,styles:[],data:{animation:[]}})}build(e){const t=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?pn(e):e;return rH(this._renderer,null,t,"register",[r]),new AB(t,this._renderer)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.FYo),i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class AB extends class GS{}{constructor(s,e){super(),this._id=s,this._renderer=e}create(s,e){return new vB(this._id,s,e||{},this._renderer)}}class vB{constructor(s,e,t,r){this.id=s,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",t)}_listen(s,e){return this._renderer.listen(this.element,`@@${this.id}:${s}`,e)}_command(s,...e){return rH(this._renderer,this.element,this.id,s,e)}onDone(s){this._listen("done",s)}onStart(s){this._listen("start",s)}onDestroy(s){this._listen("destroy",s)}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"),this._started=!1}setPosition(s){this._command("setPosition",s)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function rH(n,s,e,t,r){return n.setProperty(s,`@@${e}:${t}`,r)}const aH="@.disabled";let TB=(()=>{class n{constructor(e,t,r){this.delegate=e,this.engine=t,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),t.onRemovalComplete=(l,d)=>{const o=d?.parentNode(l);o&&d.removeChild(o,l)}}createRenderer(e,t){const l=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){let u=this._rendererCache.get(l);return u||(u=new sH("",l,this.engine),this._rendererCache.set(l,u)),u}const d=t.id,o=t.id+"-"+this._currentId;this._currentId++,this.engine.register(o,e);const a=u=>{Array.isArray(u)?u.forEach(a):this.engine.registerTrigger(d,o,e,u.name,u)};return t.data.animation.forEach(a),new xB(this,o,l,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,r){e>=0&&et(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(l=>{const[d,o]=l;d(o)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,r]))}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 n.\u0275fac=function(e){return new(e||n)(i.LFG(i.FYo),i.LFG(Mw),i.LFG(i.R0b))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class sH{constructor(s,e,t){this.namespaceId=s,this.delegate=e,this.engine=t,this.destroyNode=this.delegate.destroyNode?r=>e.destroyNode(r):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(s,e){return this.delegate.createElement(s,e)}createComment(s){return this.delegate.createComment(s)}createText(s){return this.delegate.createText(s)}appendChild(s,e){this.delegate.appendChild(s,e),this.engine.onInsert(this.namespaceId,e,s,!1)}insertBefore(s,e,t,r=!0){this.delegate.insertBefore(s,e,t),this.engine.onInsert(this.namespaceId,e,s,r)}removeChild(s,e,t){this.engine.onRemove(this.namespaceId,e,this.delegate,t)}selectRootElement(s,e){return this.delegate.selectRootElement(s,e)}parentNode(s){return this.delegate.parentNode(s)}nextSibling(s){return this.delegate.nextSibling(s)}setAttribute(s,e,t,r){this.delegate.setAttribute(s,e,t,r)}removeAttribute(s,e,t){this.delegate.removeAttribute(s,e,t)}addClass(s,e){this.delegate.addClass(s,e)}removeClass(s,e){this.delegate.removeClass(s,e)}setStyle(s,e,t,r){this.delegate.setStyle(s,e,t,r)}removeStyle(s,e,t){this.delegate.removeStyle(s,e,t)}setProperty(s,e,t){"@"==e.charAt(0)&&e==aH?this.disableAnimations(s,!!t):this.delegate.setProperty(s,e,t)}setValue(s,e){this.delegate.setValue(s,e)}listen(s,e,t){return this.delegate.listen(s,e,t)}disableAnimations(s,e){this.engine.disableAnimations(s,e)}}class xB extends sH{constructor(s,e,t,r){super(e,t,r),this.factory=s,this.namespaceId=e}setProperty(s,e,t){"@"==e.charAt(0)?"."==e.charAt(1)&&e==aH?this.disableAnimations(s,t=void 0===t||!!t):this.engine.process(this.namespaceId,s,e.slice(1),t):this.delegate.setProperty(s,e,t)}listen(s,e,t){if("@"==e.charAt(0)){const r=function MB(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(s);let l=e.slice(1),d="";return"@"!=l.charAt(0)&&([l,d]=function SB(n){const s=n.indexOf(".");return[n.substring(0,s),n.slice(s+1)]}(l)),this.engine.listen(this.namespaceId,r,l,d,o=>{this.factory.scheduleListenerCallback(o._data||-1,t,o)})}return this.delegate.listen(s,e,t)}}const oH=[{provide:Hm,useClass:wB},{provide:Jx,useFactory:function DB(){return new $O}},{provide:Mw,useClass:(()=>{class n extends Mw{constructor(e,t,r,l){super(e.body,t,r)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0),i.LFG(Nx),i.LFG(Jx),i.LFG(i.z2F))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})()},{provide:i.FYo,useFactory:function HB(n,s,e){return new TB(n,s,e)},deps:[_e,Mw,i.R0b]}],nM=[{provide:Nx,useFactory:()=>new CB},{provide:i.QbO,useValue:"BrowserAnimations"},...oH],lH=[{provide:Nx,useClass:LD},{provide:i.QbO,useValue:"NoopAnimations"},...oH];let PB=(()=>{class n{static withConfig(e){return{ngModule:n,providers:e.disableAnimations?lH:nM}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:nM,imports:[sn]}),n})(),kB=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[w.ez,Qu,ta,Ks]}),n})();const RB=["*",[["mat-card-footer"]]],LB=["*","mat-card-footer"];let cH=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),n})(),dH=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),n})(),uH=(()=>{class n{constructor(e){this._animationMode=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.QbO,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode)},exportAs:["matCard"],ngContentSelectors:LB,decls:2,vars:0,template:function(e,t){1&e&&(i.F$t(RB),i.Hsn(0),i.Hsn(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-card._mat-animation-noopable{transition:none !important;animation:none !important}.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;display:block;overflow:hidden}.mat-card-image img{width:100%}.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:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-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}"],encapsulation:2,changeDetection:0}),n})(),hH=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[ct,ct]}),n})();const IB=["input"],OB=["label"],BB=function(n){return{enterDuration:n}},VB=["*"],NB=new i.OlP("mat-checkbox-default-options",{providedIn:"root",factory:pH});function pH(){return{color:"accent",clickAction:"check-indeterminate"}}let FB=0;const fH=pH(),jB={provide:rr,useExisting:(0,i.Gpc)(()=>gd),multi:!0};class YB{}const UB=Ao(Mr(Xr(hn(class{constructor(n){this._elementRef=n}}))));let zB=(()=>{class n extends UB{constructor(e,t,r,l,d,o,a){super(t),this._changeDetectorRef=r,this._ngZone=l,this._animationMode=o,this._options=a,this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new i.vpe,this.indeterminateChange=new i.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||fH,this.color=this.defaultColor=this._options.color||fH.color,this.tabIndex=parseInt(d)||0,this.id=this._uniqueId=`${e}${++FB}`}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(e){this._required=Ne(e)}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(e){const t=Ne(e);t!=this.checked&&(this._checked=t,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){const t=Ne(e);t!==this.disabled&&(this._disabled=t,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(e){const t=e!=this._indeterminate;this._indeterminate=Ne(e),t&&(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(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(e){let t=this._currentCheckState,r=this._getAnimationTargetElement();if(t!==e&&r&&(this._currentAnimationClass&&r.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(t,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){r.classList.add(this._currentAnimationClass);const l=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{r.classList.remove(l)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){const e=this._options?.clickAction;this.disabled||"noop"===e?!this.disabled&&"noop"===e&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==e&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}_onInteractionEvent(e){e.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(e,t){if("NoopAnimations"===this._animationMode)return"";switch(e){case 0:if(1===t)return this._animationClasses.uncheckedToChecked;if(3==t)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===t?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===t?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===t?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){const t=this._inputElement;t&&(t.nativeElement.indeterminate=e)}}return n.\u0275fac=function(e){i.$Z()},n.\u0275dir=i.lG2({type:n,viewQuery:function(e,t){if(1&e&&(i.Gf(IB,5),i.Gf(OB,5),i.Gf(fr,5)),2&e){let r;i.iGM(r=i.CRH())&&(t._inputElement=r.first),i.iGM(r=i.CRH())&&(t._labelElement=r.first),i.iGM(r=i.CRH())&&(t.ripple=r.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},features:[i.qOj]}),n})(),gd=(()=>{class n extends zB{constructor(e,t,r,l,d,o,a){super("mat-checkbox-",e,t,l,d,o,a),this._focusMonitor=r,this._animationClasses={uncheckedToChecked:"mat-checkbox-anim-unchecked-checked",uncheckedToIndeterminate:"mat-checkbox-anim-unchecked-indeterminate",checkedToUnchecked:"mat-checkbox-anim-checked-unchecked",checkedToIndeterminate:"mat-checkbox-anim-checked-indeterminate",indeterminateToChecked:"mat-checkbox-anim-indeterminate-checked",indeterminateToUnchecked:"mat-checkbox-anim-indeterminate-unchecked"}}_createChangeEvent(e){const t=new YB;return t.source=this,t.checked=e,t}_getAnimationTargetElement(){return this._elementRef.nativeElement}ngAfterViewInit(){super.ngAfterViewInit(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{e||this._onBlur()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onInputClick(e){e.stopPropagation(),super._handleInputClick()}focus(e,t){e?this._focusMonitor.focusVia(this._inputElement,e,t):this._inputElement.nativeElement.focus(t)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(tr),i.Y36(i.R0b),i.$8M("tabindex"),i.Y36(i.QbO,8),i.Y36(NB,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(e,t){2&e&&(i.Ikx("id",t.id),i.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null),i.ekj("mat-checkbox-indeterminate",t.indeterminate)("mat-checkbox-checked",t.checked)("mat-checkbox-disabled",t.disabled)("mat-checkbox-label-before","before"==t.labelPosition)("_mat-animation-noopable","NoopAnimations"===t._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[i._Bn([jB]),i.qOj],ngContentSelectors:VB,decls:17,vars:21,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","aria-hidden","true",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(e,t){if(1&e&&(i.F$t(),i.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),i.NdJ("change",function(l){return t._onInteractionEvent(l)})("click",function(l){return t._onInputClick(l)}),i.qZA(),i.TgZ(5,"span",5),i._UZ(6,"span",6),i.qZA(),i._UZ(7,"span",7),i.TgZ(8,"span",8),i.O4$(),i.TgZ(9,"svg",9),i._UZ(10,"path",10),i.qZA(),i.kcU(),i._UZ(11,"span",11),i.qZA()(),i.TgZ(12,"span",12,13),i.NdJ("cdkObserveContent",function(){return t._onLabelTextChange()}),i.TgZ(14,"span",14),i._uU(15,"\xa0"),i.qZA(),i.Hsn(16),i.qZA()()),2&e){const r=i.MAs(1),l=i.MAs(13);i.uIk("for",t.inputId),i.xp6(2),i.ekj("mat-checkbox-inner-container-no-side-margin",!l.textContent||!l.textContent.trim()),i.xp6(1),i.Q6J("id",t.inputId)("required",t.required)("checked",t.checked)("disabled",t.disabled)("tabIndex",t.tabIndex),i.uIk("value",t.value)("name",t.name)("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby)("aria-checked",t._getAriaChecked())("aria-describedby",t.ariaDescribedby),i.xp6(2),i.Q6J("matRippleTrigger",r)("matRippleDisabled",t._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",i.VKq(19,BB,"NoopAnimations"===t._animationMode?0:150))}},dependencies:[fr,Zh],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:rgba(0,0,0,0);position:relative}.mat-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.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}.mat-checkbox-layout{-webkit-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;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:rgba(0,0,0,0);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}.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);-webkit-print-color-adjust:exact;color-adjust:exact}._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:rgba(0,0,0,0)}.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-input:focus~.mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),n})(),mH=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),Ew=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[Dr,ct,vt,mH,ct,mH]}),n})(),WB=0;const rM=new i.OlP("CdkAccordion");let $B=(()=>{class n{constructor(){this._stateChanges=new Te.x,this._openCloseAllActions=new Te.x,this.id="cdk-accordion-"+WB++,this._multi=!1}get multi(){return this._multi}set multi(e){this._multi=Ne(e)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(e){this._stateChanges.next(e)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[i._Bn([{provide:rM,useExisting:n}]),i.TTD]}),n})(),ZB=0,JB=(()=>{class n{constructor(e,t,r){this.accordion=e,this._changeDetectorRef=t,this._expansionDispatcher=r,this._openCloseAllSubscription=Dt.w0.EMPTY,this.closed=new i.vpe,this.opened=new i.vpe,this.destroyed=new i.vpe,this.expandedChange=new i.vpe,this.id="cdk-accordion-child-"+ZB++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=r.listen((l,d)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===d&&this.id!==l&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(e){e=Ne(e),this._expanded!==e&&(this._expanded=e,this.expandedChange.emit(e),e?(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(e){this._disabled=Ne(e)}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(e=>{this.disabled||(this.expanded=e)})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(rM,12),i.Y36(i.sBO),i.Y36(fm))},n.\u0275dir=i.lG2({type:n,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[i._Bn([{provide:rM,useValue:void 0}])]}),n})(),QB=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();const KB=["body"];function XB(n,s){}const eV=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],tV=["mat-expansion-panel-header","*","mat-action-row"];function iV(n,s){if(1&n&&i._UZ(0,"span",2),2&n){const e=i.oxw();i.Q6J("@indicatorRotate",e._getExpandedState())}}const nV=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],rV=["mat-panel-title","mat-panel-description","*"],aM=new i.OlP("MAT_ACCORDION"),gH="225ms cubic-bezier(0.4,0.0,0.2,1)",_H={indicatorRotate:di("indicatorRotate",[Rt("collapsed, void",Re({transform:"rotate(0deg)"})),Rt("expanded",Re({transform:"rotate(180deg)"})),Tt("expanded <=> collapsed, void => collapsed",At(gH))]),bodyExpansion:di("bodyExpansion",[Rt("collapsed, void",Re({height:"0px",visibility:"hidden"})),Rt("expanded",Re({height:"*",visibility:"visible"})),Tt("expanded <=> collapsed, void => collapsed",At(gH))])},bH=new i.OlP("MAT_EXPANSION_PANEL");let aV=(()=>{class n{constructor(e,t){this._template=e,this._expansionPanel=t}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc),i.Y36(bH,8))},n.\u0275dir=i.lG2({type:n,selectors:[["ng-template","matExpansionPanelContent",""]]}),n})(),sV=0;const yH=new i.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let CH=(()=>{class n extends JB{constructor(e,t,r,l,d,o,a){super(e,t,r),this._viewContainerRef=l,this._animationMode=o,this._hideToggle=!1,this.afterExpand=new i.vpe,this.afterCollapse=new i.vpe,this._inputChanges=new Te.x,this._headerId="mat-expansion-panel-header-"+sV++,this._bodyAnimationDone=new Te.x,this.accordion=e,this._document=d,this._bodyAnimationDone.pipe(Ms((c,u)=>c.fromState===u.fromState&&c.toState===u.toState)).subscribe(c=>{"void"!==c.fromState&&("expanded"===c.toState?this.afterExpand.emit():"collapsed"===c.toState&&this.afterCollapse.emit())}),a&&(this.hideToggle=a.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(e){this._hideToggle=Ne(e)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(e){this._togglePosition=e}_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._lazyContent._expansionPanel===this&&this.opened.pipe(Nt(null),(0,Ze.h)(()=>this.expanded&&!this._portal),(0,it.q)(1)).subscribe(()=>{this._portal=new Hr(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(e){this._inputChanges.next(e)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const e=this._document.activeElement,t=this._body.nativeElement;return e===t||t.contains(e)}return!1}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(aM,12),i.Y36(i.sBO),i.Y36(fm),i.Y36(i.s_b),i.Y36(w.K0),i.Y36(i.QbO,8),i.Y36(yH,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-expansion-panel"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,aV,5),2&e){let l;i.iGM(l=i.CRH())&&(t._lazyContent=l.first)}},viewQuery:function(e,t){if(1&e&&i.Gf(KB,5),2&e){let r;i.iGM(r=i.CRH())&&(t._body=r.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(e,t){2&e&&i.ekj("mat-expanded",t.expanded)("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-expansion-panel-spacing",t._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[i._Bn([{provide:aM,useValue:void 0},{provide:bH,useExisting:n}]),i.qOj,i.TTD],ngContentSelectors:tV,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(e,t){1&e&&(i.F$t(eV),i.Hsn(0),i.TgZ(1,"div",0,1),i.NdJ("@bodyExpansion.done",function(l){return t._bodyAnimationDone.next(l)}),i.TgZ(3,"div",2),i.Hsn(4,1),i.YNc(5,XB,0,0,"ng-template",3),i.qZA(),i.Hsn(6,2),i.qZA()),2&e&&(i.xp6(1),i.Q6J("@bodyExpansion",t._getExpandedState())("id",t.id),i.uIk("aria-labelledby",t._headerId),i.xp6(4),i.Q6J("cdkPortalOutlet",t._portal))},dependencies:[Ma],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-content[style*="visibility: hidden"] *{visibility:hidden !important}.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 .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[_H.bodyExpansion]},changeDetection:0}),n})();class oV{}const lV=Ao(oV);let wH=(()=>{class n extends lV{constructor(e,t,r,l,d,o,a){super(),this.panel=e,this._element=t,this._focusMonitor=r,this._changeDetectorRef=l,this._animationMode=o,this._parentChangeSubscription=Dt.w0.EMPTY;const c=e.accordion?e.accordion._stateChanges.pipe((0,Ze.h)(u=>!(!u.hideToggle&&!u.togglePosition))):wr.E;this.tabIndex=parseInt(a||"")||0,this._parentChangeSubscription=(0,xi.T)(e.opened,e.closed,c,e._inputChanges.pipe((0,Ze.h)(u=>!!(u.hideToggle||u.disabled||u.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe((0,Ze.h)(()=>e._containsFocus())).subscribe(()=>r.focusVia(t,"program")),d&&(this.expandedHeight=d.expandedHeight,this.collapsedHeight=d.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 e=this._isExpanded();return e&&this.expandedHeight?this.expandedHeight:!e&&this.collapsedHeight?this.collapsedHeight:null}_keydown(e){switch(e.keyCode){case 32:case 13:_n(e)||(e.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e))}}focus(e,t){e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(e=>{e&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(CH,1),i.Y36(i.SBq),i.Y36(tr),i.Y36(i.sBO),i.Y36(yH,8),i.Y36(i.QbO,8),i.$8M("tabindex"))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(e,t){1&e&&i.NdJ("click",function(){return t._toggle()})("keydown",function(l){return t._keydown(l)}),2&e&&(i.uIk("id",t.panel._headerId)("tabindex",t.tabIndex)("aria-controls",t._getPanelId())("aria-expanded",t._isExpanded())("aria-disabled",t.panel.disabled),i.Udp("height",t._getHeaderHeight()),i.ekj("mat-expanded",t._isExpanded())("mat-expansion-toggle-indicator-after","after"===t._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===t._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===t._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[i.qOj],ngContentSelectors:rV,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(e,t){1&e&&(i.F$t(nV),i.TgZ(0,"span",0),i.Hsn(1),i.Hsn(2,1),i.Hsn(3,2),i.qZA(),i.YNc(4,iV,1,1,"span",1)),2&e&&(i.xp6(4),i.Q6J("ngIf",t._showToggle()))},dependencies:[w.O5],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;align-items:center}[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}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[_H.indicatorRotate]},changeDetection:0}),n})(),cV=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),n})(),dV=(()=>{class n extends $B{constructor(){super(...arguments),this._ownHeaders=new i.n_E,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(e){this._hideToggle=Ne(e)}ngAfterContentInit(){this._headers.changes.pipe(Nt(this._headers)).subscribe(e=>{this._ownHeaders.reset(e.filter(t=>t.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new Al(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(e){this._keyManager.onKeydown(e)}_handleHeaderFocus(e){this._keyManager.updateActiveItem(e)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return n.\u0275fac=function(){let s;return function(t){return(s||(s=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["mat-accordion"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,wH,5),2&e){let l;i.iGM(l=i.CRH())&&(t._headers=l)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("mat-accordion-multi",t.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[i._Bn([{provide:aM,useExisting:n}]),i.qOj]}),n})(),AH=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[w.ez,ct,QB,Rs]}),n})(),TH=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[To,ct,To,ct]}),n})();function pV(n,s){1&n&&i.Hsn(0)}const fV=["*"];let xH=(()=>{class n{constructor(e){this._elementRef=e}focus(){this._elementRef.nativeElement.focus()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),n})(),MH=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkStepLabel",""]]}),n})(),mV=0;const SH=new i.OlP("STEPPER_GLOBAL_OPTIONS");let sM=(()=>{class n{constructor(e,t){this._stepper=e,this.interacted=!1,this.interactedStream=new i.vpe,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=t||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType}get editable(){return this._editable}set editable(e){this._editable=Ne(e)}get optional(){return this._optional}set optional(e){this._optional=Ne(e)}get completed(){return this._completedOverride??this._getDefaultCompleted()}set completed(e){this._completedOverride=Ne(e)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return this._customError??this._getDefaultError()}set hasError(e){this._customError=Ne(e)}_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()}_markAsInteracted(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this))}_showError(){return this._stepperOptions.showError??null!=this._customError}}return n.\u0275fac=function(e){return new(e||n)(i.Y36((0,i.Gpc)(()=>zg)),i.Y36(SH,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["cdk-step"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,MH,5),2&e){let l;i.iGM(l=i.CRH())&&(t.stepLabel=l.first)}},viewQuery:function(e,t){if(1&e&&i.Gf(i.Rgc,7),2&e){let r;i.iGM(r=i.CRH())&&(t.content=r.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],state:"state",editable:"editable",optional:"optional",completed:"completed",hasError:"hasError"},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[i.TTD],ngContentSelectors:fV,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.YNc(0,pV,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),n})(),zg=(()=>{class n{constructor(e,t,r){this._dir=e,this._changeDetectorRef=t,this._elementRef=r,this._destroyed=new Te.x,this.steps=new i.n_E,this._sortedHeaders=new i.n_E,this._linear=!1,this._selectedIndex=0,this.selectionChange=new i.vpe,this._orientation="horizontal",this._groupId=mV++}get linear(){return this._linear}set linear(e){this._linear=Ne(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){const t=ci(e);this.steps&&this._steps?(this._isValidIndex(t),this.selected?._markAsInteracted(),this._selectedIndex!==t&&!this._anyControlsInvalidOrPending(t)&&(t>=this._selectedIndex||this.steps.toArray()[t].editable)&&this._updateSelectedItemIndex(t)):this._selectedIndex=t}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(e){this.selectedIndex=e&&this.steps?this.steps.toArray().indexOf(e):-1}get orientation(){return this._orientation}set orientation(e){this._orientation=e,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===e)}ngAfterContentInit(){this._steps.changes.pipe(Nt(this._steps),Ge(this._destroyed)).subscribe(e=>{this.steps.reset(e.filter(t=>t._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._stepHeader.changes.pipe(Nt(this._stepHeader),Ge(this._destroyed)).subscribe(e=>{this._sortedHeaders.reset(e.toArray().sort((t,r)=>t._elementRef.nativeElement.compareDocumentPosition(r._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new Al(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:(0,Ae.of)()).pipe(Nt(this._layoutDirection()),Ge(this._destroyed)).subscribe(e=>this._keyManager.withHorizontalOrientation(e)),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._sortedHeaders.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(e=>e.reset()),this._stateChanged()}_getStepLabelId(e){return`cdk-step-label-${this._groupId}-${e}`}_getStepContentId(e){return`cdk-step-content-${this._groupId}-${e}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(e){const t=e-this._selectedIndex;return t<0?"rtl"===this._layoutDirection()?"next":"previous":t>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(e,t="number"){const r=this.steps.toArray()[e],l=this._isCurrentStep(e);return r._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(r,l):this._getGuidelineLogic(r,l,t)}_getDefaultIndicatorLogic(e,t){return e._showError()&&e.hasError&&!t?"error":!e.completed||t?"number":e.editable?"edit":"done"}_getGuidelineLogic(e,t,r="number"){return e._showError()&&e.hasError&&!t?"error":e.completed&&!t?"done":e.completed&&t?r:e.editable&&t?"edit":r}_isCurrentStep(e){return this._selectedIndex===e}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(e){const t=this.steps.toArray();this.selectionChange.emit({selectedIndex:e,previouslySelectedIndex:this._selectedIndex,selectedStep:t[e],previouslySelectedStep:t[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(e):this._keyManager.updateActiveItem(e),this._selectedIndex=e,this._stateChanged()}_onKeydown(e){const t=_n(e),r=e.keyCode,l=this._keyManager;null==l.activeItemIndex||t||32!==r&&13!==r?l.onKeydown(e):(this.selectedIndex=l.activeItemIndex,e.preventDefault())}_anyControlsInvalidOrPending(e){return!!(this._linear&&e>=0)&&this.steps.toArray().slice(0,e).some(t=>{const r=t.stepControl;return(r?r.invalid||r.pending||!t.interacted:!t.completed)&&!t.optional&&!t._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){const e=this._elementRef.nativeElement,t=Lc();return e===t||e.contains(t)}_isValidIndex(e){return e>-1&&(!this.steps||e{class n{constructor(e){this._stepper=e,this.type="submit"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zg))},n.\u0275dir=i.lG2({type:n,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(e,t){1&e&&i.NdJ("click",function(){return t._stepper.next()}),2&e&&i.Ikx("type",t.type)},inputs:{type:"type"}}),n})(),_V=(()=>{class n{constructor(e){this._stepper=e,this.type="button"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zg))},n.\u0275dir=i.lG2({type:n,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(e,t){1&e&&i.NdJ("click",function(){return t._stepper.previous()}),2&e&&i.Ikx("type",t.type)},inputs:{type:"type"}}),n})(),bV=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[Yc]}),n})();function yV(n,s){if(1&n&&i.GkF(0,8),2&n){const e=i.oxw();i.Q6J("ngTemplateOutlet",e.iconOverrides[e.state])("ngTemplateOutletContext",e._getIconContext())}}function CV(n,s){if(1&n&&(i.TgZ(0,"span",13),i._uU(1),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Oqu(e._getDefaultTextForState(e.state))}}function wV(n,s){if(1&n&&(i.TgZ(0,"span",14),i._uU(1),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Oqu(e._intl.completedLabel)}}function AV(n,s){if(1&n&&(i.TgZ(0,"span",14),i._uU(1),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Oqu(e._intl.editableLabel)}}function vV(n,s){if(1&n&&(i.TgZ(0,"mat-icon",13),i._uU(1),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Oqu(e._getDefaultTextForState(e.state))}}function TV(n,s){if(1&n&&(i.ynx(0,9),i.YNc(1,CV,2,1,"span",10),i.YNc(2,wV,2,1,"span",11),i.YNc(3,AV,2,1,"span",11),i.YNc(4,vV,2,1,"mat-icon",12),i.BQk()),2&n){const e=i.oxw();i.Q6J("ngSwitch",e.state),i.xp6(1),i.Q6J("ngSwitchCase","number"),i.xp6(1),i.Q6J("ngIf","done"===e.state),i.xp6(1),i.Q6J("ngIf","edit"===e.state)}}function xV(n,s){if(1&n&&(i.TgZ(0,"div",15),i.GkF(1,16),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Q6J("ngTemplateOutlet",e._templateLabel().template)}}function MV(n,s){if(1&n&&(i.TgZ(0,"div",15),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Oqu(e.label)}}function SV(n,s){if(1&n&&(i.TgZ(0,"div",17),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Oqu(e._intl.optionalLabel)}}function EV(n,s){if(1&n&&(i.TgZ(0,"div",18),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Oqu(e.errorMessage)}}function DV(n,s){}function HV(n,s){if(1&n&&(i.Hsn(0),i.YNc(1,DV,0,0,"ng-template",0)),2&n){const e=i.oxw();i.xp6(1),i.Q6J("cdkPortalOutlet",e._portal)}}const PV=["*"];function kV(n,s){1&n&&i._UZ(0,"div",11)}const EH=function(n,s){return{step:n,i:s}};function RV(n,s){if(1&n&&(i.ynx(0),i.GkF(1,9),i.YNc(2,kV,1,0,"div",10),i.BQk()),2&n){const e=s.$implicit,t=s.index,r=s.last;i.oxw(2);const l=i.MAs(4);i.xp6(1),i.Q6J("ngTemplateOutlet",l)("ngTemplateOutletContext",i.WLB(3,EH,e,t)),i.xp6(1),i.Q6J("ngIf",!r)}}const DH=function(n){return{animationDuration:n}},HH=function(n,s){return{value:n,params:s}};function LV(n,s){if(1&n){const e=i.EpF();i.TgZ(0,"div",12),i.NdJ("@horizontalStepTransition.done",function(r){i.CHM(e);const l=i.oxw(2);return i.KtG(l._animationDone.next(r))}),i.GkF(1,13),i.qZA()}if(2&n){const e=s.$implicit,t=s.index,r=i.oxw(2);i.Q6J("@horizontalStepTransition",i.WLB(7,HH,r._getAnimationDirection(t),i.VKq(5,DH,r._getAnimationDuration())))("id",r._getStepContentId(t)),i.uIk("aria-labelledby",r._getStepLabelId(t))("aria-expanded",r.selectedIndex===t),i.xp6(1),i.Q6J("ngTemplateOutlet",e.content)}}function IV(n,s){if(1&n&&(i.TgZ(0,"div",4)(1,"div",5),i.YNc(2,RV,3,6,"ng-container",6),i.qZA(),i.TgZ(3,"div",7),i.YNc(4,LV,2,10,"div",8),i.qZA()()),2&n){const e=i.oxw();i.xp6(2),i.Q6J("ngForOf",e.steps),i.xp6(2),i.Q6J("ngForOf",e.steps)}}function OV(n,s){if(1&n){const e=i.EpF();i.TgZ(0,"div",15),i.GkF(1,9),i.TgZ(2,"div",16)(3,"div",17),i.NdJ("@verticalStepTransition.done",function(r){i.CHM(e);const l=i.oxw(2);return i.KtG(l._animationDone.next(r))}),i.TgZ(4,"div",18),i.GkF(5,13),i.qZA()()()()}if(2&n){const e=s.$implicit,t=s.index,r=s.last,l=i.oxw(2),d=i.MAs(4);i.xp6(1),i.Q6J("ngTemplateOutlet",d)("ngTemplateOutletContext",i.WLB(9,EH,e,t)),i.xp6(1),i.ekj("mat-stepper-vertical-line",!r),i.xp6(1),i.Q6J("@verticalStepTransition",i.WLB(14,HH,l._getAnimationDirection(t),i.VKq(12,DH,l._getAnimationDuration())))("id",l._getStepContentId(t)),i.uIk("aria-labelledby",l._getStepLabelId(t))("aria-expanded",l.selectedIndex===t),i.xp6(2),i.Q6J("ngTemplateOutlet",e.content)}}function BV(n,s){if(1&n&&(i.ynx(0),i.YNc(1,OV,6,17,"div",14),i.BQk()),2&n){const e=i.oxw();i.xp6(1),i.Q6J("ngForOf",e.steps)}}function VV(n,s){if(1&n){const e=i.EpF();i.TgZ(0,"mat-step-header",19),i.NdJ("click",function(){const l=i.CHM(e).step;return i.KtG(l.select())})("keydown",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l._onKeydown(r))}),i.qZA()}if(2&n){const e=s.step,t=s.i,r=i.oxw();i.ekj("mat-horizontal-stepper-header","horizontal"===r.orientation)("mat-vertical-stepper-header","vertical"===r.orientation),i.Q6J("tabIndex",r._getFocusIndex()===t?0:-1)("id",r._getStepLabelId(t))("index",t)("state",r._getIndicatorType(t,e.state))("label",e.stepLabel||e.label)("selected",r.selectedIndex===t)("active",r._stepIsNavigable(t,e))("optional",e.optional)("errorMessage",e.errorMessage)("iconOverrides",r._iconOverrides)("disableRipple",r.disableRipple||!r._stepIsNavigable(t,e))("color",e.color||r.color),i.uIk("aria-posinset",t+1)("aria-setsize",r.steps.length)("aria-controls",r._getStepContentId(t))("aria-selected",r.selectedIndex==t)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null)("aria-disabled",!r._stepIsNavigable(t,e)||null)}}let Dw=(()=>{class n extends MH{}return n.\u0275fac=function(){let s;return function(t){return(s||(s=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matStepLabel",""]],features:[i.qOj]}),n})(),Hw=(()=>{class n{constructor(){this.changes=new Te.x,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const FV={provide:Hw,deps:[[new i.FiY,new i.tp0,Hw]],useFactory:function NV(n){return n||new Hw}},jV=Mr(class extends xH{constructor(s){super(s)}},"primary");let PH=(()=>{class n extends jV{constructor(e,t,r,l){super(r),this._intl=e,this._focusMonitor=t,this._intlSubscription=e.changes.subscribe(()=>l.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,t){e?this._focusMonitor.focusVia(this._elementRef,e,t):this._elementRef.nativeElement.focus(t)}_stringLabel(){return this.label instanceof Dw?null:this.label}_templateLabel(){return this.label instanceof Dw?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(e){return"number"==e?`${this.index+1}`:"edit"==e?"create":"error"==e?"warning":e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Hw),i.Y36(tr),i.Y36(i.SBq),i.Y36(i.sBO))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],inputs:{color:"color",state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple"},features:[i.qOj],decls:10,vars:19,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",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"],["aria-hidden","true",4,"ngSwitchCase"],["class","cdk-visually-hidden",4,"ngIf"],["aria-hidden","true",4,"ngSwitchDefault"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[1,"mat-step-text-label"],[3,"ngTemplateOutlet"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"]],template:function(e,t){1&e&&(i._UZ(0,"div",0),i.TgZ(1,"div")(2,"div",1),i.YNc(3,yV,1,2,"ng-container",2),i.YNc(4,TV,5,4,"ng-container",3),i.qZA()(),i.TgZ(5,"div",4),i.YNc(6,xV,2,1,"div",5),i.YNc(7,MV,2,1,"div",5),i.YNc(8,SV,2,1,"div",6),i.YNc(9,EV,2,1,"div",7),i.qZA()),2&e&&(i.Q6J("matRippleTrigger",t._getHostElement())("matRippleDisabled",t.disableRipple),i.xp6(1),i.Gre("mat-step-icon-state-",t.state," mat-step-icon"),i.ekj("mat-step-icon-selected",t.selected),i.xp6(1),i.Q6J("ngSwitch",!(!t.iconOverrides||!t.iconOverrides[t.state])),i.xp6(1),i.Q6J("ngSwitchCase",!0),i.xp6(2),i.ekj("mat-step-label-active",t.active)("mat-step-label-selected",t.selected)("mat-step-label-error","error"==t.state),i.xp6(1),i.Q6J("ngIf",t._templateLabel()),i.xp6(1),i.Q6J("ngIf",t._stringLabel()),i.xp6(1),i.Q6J("ngIf",t.optional&&"error"!=t.state),i.xp6(1),i.Q6J("ngIf","error"==t.state))},dependencies:[w.O5,w.tP,w.RF,w.n9,w.ED,ki,fr],styles:['.mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-step-header:focus .mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-step-header{outline:solid 1px}.cdk-high-contrast-active .mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.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{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.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}'],encapsulation:2,changeDetection:0}),n})();const LH={horizontalStepTransition:di("horizontalStepTransition",[Rt("previous",Re({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),Rt("current",Re({transform:"none",visibility:"inherit"})),Rt("next",Re({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),Tt("* => *",At("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)"),{params:{animationDuration:"500ms"}})]),verticalStepTransition:di("verticalStepTransition",[Rt("previous",Re({height:"0px",visibility:"hidden"})),Rt("next",Re({height:"0px",visibility:"hidden"})),Rt("current",Re({height:"*",visibility:"inherit"})),Tt("* <=> current",At("{{animationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)"),{params:{animationDuration:"225ms"}})])};let YV=(()=>{class n{constructor(e){this.templateRef=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),n})(),UV=(()=>{class n{constructor(e){this._template=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["ng-template","matStepContent",""]]}),n})(),IH=(()=>{class n extends sM{constructor(e,t,r,l){super(e,l),this._errorStateMatcher=t,this._viewContainerRef=r,this._isSelected=Dt.w0.EMPTY}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe((0,pi.w)(()=>this._stepper.selectionChange.pipe((0,mt.U)(e=>e.selectedStep===this),Nt(this._stepper.selected===this)))).subscribe(e=>{e&&this._lazyContent&&!this._portal&&(this._portal=new Hr(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(e,t){return this._errorStateMatcher.isErrorState(e,t)||!!(e&&e.invalid&&this.interacted)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36((0,i.Gpc)(()=>OH)),i.Y36(Er,4),i.Y36(i.s_b),i.Y36(SH,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-step"]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,Dw,5),i.Suo(r,UV,5)),2&e){let l;i.iGM(l=i.CRH())&&(t.stepLabel=l.first),i.iGM(l=i.CRH())&&(t._lazyContent=l.first)}},inputs:{color:"color"},exportAs:["matStep"],features:[i._Bn([{provide:Er,useExisting:n},{provide:sM,useExisting:n}]),i.qOj],ngContentSelectors:PV,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(e,t){1&e&&(i.F$t(),i.YNc(0,HV,2,1,"ng-template"))},dependencies:[Ma],encapsulation:2,changeDetection:0}),n})(),OH=(()=>{class n extends zg{constructor(e,t,r){super(e,t,r),this.steps=new i.n_E,this.animationDone=new i.vpe,this.labelPosition="end",this.headerPosition="top",this._iconOverrides={},this._animationDone=new Te.x,this._animationDuration="";const l=r.nativeElement.nodeName.toLowerCase();this.orientation="mat-vertical-stepper"===l?"vertical":"horizontal"}get animationDuration(){return this._animationDuration}set animationDuration(e){this._animationDuration=/^\d+$/.test(e)?e+"ms":e}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:e,templateRef:t})=>this._iconOverrides[e]=t),this.steps.changes.pipe(Ge(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe(Ms((e,t)=>e.fromState===t.fromState&&e.toState===t.toState),Ge(this._destroyed)).subscribe(e=>{"current"===e.toState&&this.animationDone.emit()})}_stepIsNavigable(e,t){return t.completed||this.selectedIndex===e||!this.linear}_getAnimationDuration(){return this.animationDuration?this.animationDuration:"horizontal"===this.orientation?"500ms":"225ms"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(_i,8),i.Y36(i.sBO),i.Y36(i.SBq))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,IH,5),i.Suo(r,YV,5)),2&e){let l;i.iGM(l=i.CRH())&&(t._steps=l),i.iGM(l=i.CRH())&&(t._icons=l)}},viewQuery:function(e,t){if(1&e&&i.Gf(PH,5),2&e){let r;i.iGM(r=i.CRH())&&(t._stepHeader=r)}},hostAttrs:["role","tablist"],hostVars:11,hostBindings:function(e,t){2&e&&(i.uIk("aria-orientation",t.orientation),i.ekj("mat-stepper-horizontal","horizontal"===t.orientation)("mat-stepper-vertical","vertical"===t.orientation)("mat-stepper-label-position-end","horizontal"===t.orientation&&"end"==t.labelPosition)("mat-stepper-label-position-bottom","horizontal"===t.orientation&&"bottom"==t.labelPosition)("mat-stepper-header-position-bottom","bottom"===t.headerPosition))},inputs:{selectedIndex:"selectedIndex",disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition",headerPosition:"headerPosition",animationDuration:"animationDuration"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[i._Bn([{provide:zg,useExisting:n}]),i.qOj],decls:5,vars:3,consts:[[3,"ngSwitch"],["class","mat-horizontal-stepper-wrapper",4,"ngSwitchCase"],[4,"ngSwitchCase"],["stepTemplate",""],[1,"mat-horizontal-stepper-wrapper"],[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"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","mat-stepper-horizontal-line",4,"ngIf"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],["class","mat-step",4,"ngFor","ngForOf"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color","click","keydown"]],template:function(e,t){1&e&&(i.ynx(0,0),i.YNc(1,IV,5,2,"div",1),i.YNc(2,BV,2,1,"ng-container",2),i.BQk(),i.YNc(3,VV,1,23,"ng-template",null,3,i.W1O)),2&e&&(i.Q6J("ngSwitch",t.orientation),i.xp6(1),i.Q6J("ngSwitchCase","horizontal"),i.xp6(1),i.Q6J("ngSwitchCase","vertical"))},dependencies:[w.sg,w.O5,w.tP,w.RF,w.n9,PH],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-header-position-bottom .mat-horizontal-stepper-header-container{order:1}.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-wrapper{display:flex;flex-direction:column}.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}.cdk-high-contrast-active .mat-horizontal-content-container{outline:solid 1px}.mat-stepper-header-position-bottom .mat-horizontal-content-container{padding:24px 24px 0 24px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}.cdk-high-contrast-active .mat-vertical-content-container{outline:solid 1px}[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}'],encapsulation:2,data:{animation:[LH.horizontalStepTransition,LH.verticalStepTransition]},changeDetection:0}),n})(),zV=(()=>{class n extends gV{}return n.\u0275fac=function(){let s;return function(t){return(s||(s=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(e,t){2&e&&i.Ikx("type",t.type)},inputs:{type:"type"},features:[i.qOj]}),n})(),qV=(()=>{class n extends _V{}return n.\u0275fac=function(){let s;return function(t){return(s||(s=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(e,t){2&e&&i.Ikx("type",t.type)},inputs:{type:"type"},features:[i.qOj]}),n})(),BH=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[FV,Er],imports:[ct,w.ez,Rs,ta,bV,Nl,Dr,ct]}),n})();const GV=["mat-calendar-body",""];function WV(n,s){if(1&n&&(i.TgZ(0,"tr",2)(1,"td",3),i._uU(2),i.qZA()()),2&n){const e=i.oxw();i.xp6(1),i.Udp("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),i.uIk("colspan",e.numCols),i.xp6(1),i.hij(" ",e.label," ")}}function $V(n,s){if(1&n&&(i.TgZ(0,"td",3),i._uU(1),i.qZA()),2&n){const e=i.oxw(2);i.Udp("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),i.uIk("colspan",e._firstRowOffset),i.xp6(1),i.hij(" ",e._firstRowOffset>=e.labelMinRequiredCells?e.label:""," ")}}function ZV(n,s){if(1&n){const e=i.EpF();i.TgZ(0,"td",7)(1,"button",8),i.NdJ("click",function(r){const d=i.CHM(e).$implicit,o=i.oxw(2);return i.KtG(o._cellClicked(d,r))})("focus",function(r){const d=i.CHM(e).$implicit,o=i.oxw(2);return i.KtG(o._emitActiveDateChange(d,r))}),i.TgZ(2,"div",9),i._uU(3),i.qZA(),i._UZ(4,"div",10),i.qZA()()}if(2&n){const e=s.$implicit,t=s.index,r=i.oxw().index,l=i.oxw();i.Udp("width",l._cellWidth)("padding-top",l._cellPadding)("padding-bottom",l._cellPadding),i.uIk("data-mat-row",r)("data-mat-col",t),i.xp6(1),i.ekj("mat-calendar-body-disabled",!e.enabled)("mat-calendar-body-active",l._isActiveCell(r,t))("mat-calendar-body-range-start",l._isRangeStart(e.compareValue))("mat-calendar-body-range-end",l._isRangeEnd(e.compareValue))("mat-calendar-body-in-range",l._isInRange(e.compareValue))("mat-calendar-body-comparison-bridge-start",l._isComparisonBridgeStart(e.compareValue,r,t))("mat-calendar-body-comparison-bridge-end",l._isComparisonBridgeEnd(e.compareValue,r,t))("mat-calendar-body-comparison-start",l._isComparisonStart(e.compareValue))("mat-calendar-body-comparison-end",l._isComparisonEnd(e.compareValue))("mat-calendar-body-in-comparison-range",l._isInComparisonRange(e.compareValue))("mat-calendar-body-preview-start",l._isPreviewStart(e.compareValue))("mat-calendar-body-preview-end",l._isPreviewEnd(e.compareValue))("mat-calendar-body-in-preview",l._isInPreview(e.compareValue)),i.Q6J("ngClass",e.cssClasses)("tabindex",l._isActiveCell(r,t)?0:-1),i.uIk("aria-label",e.ariaLabel)("aria-disabled",!e.enabled||null)("aria-pressed",l._isSelected(e.compareValue))("aria-current",l.todayValue===e.compareValue?"date":null),i.xp6(1),i.ekj("mat-calendar-body-selected",l._isSelected(e.compareValue))("mat-calendar-body-comparison-identical",l._isComparisonIdentical(e.compareValue))("mat-calendar-body-today",l.todayValue===e.compareValue),i.xp6(1),i.hij(" ",e.displayValue," ")}}function JV(n,s){if(1&n&&(i.TgZ(0,"tr",4),i.YNc(1,$V,2,6,"td",5),i.YNc(2,ZV,5,47,"td",6),i.qZA()),2&n){const e=s.$implicit,t=s.index,r=i.oxw();i.xp6(1),i.Q6J("ngIf",0===t&&r._firstRowOffset),i.xp6(1),i.Q6J("ngForOf",e)}}function QV(n,s){if(1&n&&(i.TgZ(0,"th",5)(1,"span",6),i._uU(2),i.qZA(),i.TgZ(3,"span",7),i._uU(4),i.qZA()()),2&n){const e=s.$implicit;i.xp6(2),i.Oqu(e.long),i.xp6(2),i.Oqu(e.narrow)}}const KV=["*"];function XV(n,s){}function e2(n,s){if(1&n){const e=i.EpF();i.TgZ(0,"mat-month-view",5),i.NdJ("activeDateChange",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.activeDate=r)})("_userSelection",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l._dateSelected(r))}),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("activeDate",e.activeDate)("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)}}function t2(n,s){if(1&n){const e=i.EpF();i.TgZ(0,"mat-year-view",6),i.NdJ("activeDateChange",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.activeDate=r)})("monthSelected",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l._monthSelectedInYearView(r))})("selectedChange",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l._goToDateInView(r,"month"))}),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("activeDate",e.activeDate)("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function n2(n,s){if(1&n){const e=i.EpF();i.TgZ(0,"mat-multi-year-view",7),i.NdJ("activeDateChange",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.activeDate=r)})("yearSelected",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l._yearSelectedInMultiYearView(r))})("selectedChange",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l._goToDateInView(r,"year"))}),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("activeDate",e.activeDate)("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function r2(n,s){}const a2=["button"];function s2(n,s){1&n&&(i.O4$(),i.TgZ(0,"svg",3),i._UZ(1,"path",4),i.qZA())}const o2=[[["","matDatepickerToggleIcon",""]]],l2=["[matDatepickerToggleIcon]"];let qg=(()=>{class n{constructor(){this.changes=new Te.x,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 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(e,t){return`${e} \u2013 ${t}`}formatYearRangeLabel(e,t){return`${e} to ${t}`}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class oM{constructor(s,e,t,r,l={},d=s,o){this.value=s,this.displayValue=e,this.ariaLabel=t,this.enabled=r,this.cssClasses=l,this.compareValue=d,this.rawValue=o}}let nf=(()=>{class n{constructor(e,t){this._elementRef=e,this._ngZone=t,this._focusActiveCellAfterViewChecked=!1,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new i.vpe,this.previewChange=new i.vpe,this.activeDateChange=new i.vpe,this._enterHandler=r=>{if(this._skipNextFocus&&"focus"===r.type)this._skipNextFocus=!1;else if(r.target&&this.isRange){const l=this._getCellFromElement(r.target);l&&this._ngZone.run(()=>this.previewChange.emit({value:l.enabled?l:null,event:r}))}},this._leaveHandler=r=>{null!==this.previewEnd&&this.isRange&&r.target&&this._getCellFromElement(r.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:r}))},t.runOutsideAngular(()=>{const r=e.nativeElement;r.addEventListener("mouseenter",this._enterHandler,!0),r.addEventListener("focus",this._enterHandler,!0),r.addEventListener("mouseleave",this._leaveHandler,!0),r.addEventListener("blur",this._leaveHandler,!0)})}ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}_cellClicked(e,t){e.enabled&&this.selectedValueChange.emit({value:e.value,event:t})}_emitActiveDateChange(e,t){e.enabled&&this.activeDateChange.emit({value:e.value,event:t})}_isSelected(e){return this.startValue===e||this.endValue===e}ngOnChanges(e){const t=e.numCols,{rows:r,numCols:l}=this;(e.rows||t)&&(this._firstRowOffset=r&&r.length&&r[0].length?l-r[0].length:0),(e.cellAspectRatio||t||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/l+"%"),(t||!this._cellWidth)&&(this._cellWidth=100/l+"%")}ngOnDestroy(){const e=this._elementRef.nativeElement;e.removeEventListener("mouseenter",this._enterHandler,!0),e.removeEventListener("focus",this._enterHandler,!0),e.removeEventListener("mouseleave",this._leaveHandler,!0),e.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(e,t){let r=e*this.numCols+t;return e&&(r-=this._firstRowOffset),r==this.activeCell}_focusActiveCell(e=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,it.q)(1)).subscribe(()=>{setTimeout(()=>{const t=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");t&&(e||(this._skipNextFocus=!0),t.focus())})})})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(e){return lM(e,this.startValue,this.endValue)}_isRangeEnd(e){return cM(e,this.startValue,this.endValue)}_isInRange(e){return dM(e,this.startValue,this.endValue,this.isRange)}_isComparisonStart(e){return lM(e,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(e,t,r){if(!this._isComparisonStart(e)||this._isRangeStart(e)||!this._isInRange(e))return!1;let l=this.rows[t][r-1];if(!l){const d=this.rows[t-1];l=d&&d[d.length-1]}return l&&!this._isRangeEnd(l.compareValue)}_isComparisonBridgeEnd(e,t,r){if(!this._isComparisonEnd(e)||this._isRangeEnd(e)||!this._isInRange(e))return!1;let l=this.rows[t][r+1];if(!l){const d=this.rows[t+1];l=d&&d[0]}return l&&!this._isRangeStart(l.compareValue)}_isComparisonEnd(e){return cM(e,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(e){return dM(e,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(e){return this.comparisonStart===this.comparisonEnd&&e===this.comparisonStart}_isPreviewStart(e){return lM(e,this.previewStart,this.previewEnd)}_isPreviewEnd(e){return cM(e,this.previewStart,this.previewEnd)}_isInPreview(e){return dM(e,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(e){let t;if(VH(e)?t=e:VH(e.parentNode)&&(t=e.parentNode),t){const r=t.getAttribute("data-mat-row"),l=t.getAttribute("data-mat-col");if(r&&l)return this.rows[parseInt(r)][parseInt(l)]}return null}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.R0b))},n.\u0275cmp=i.Xpm({type:n,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange"},exportAs:["matCalendarBody"],features:[i.TTD],attrs:GV,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"],["class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom",4,"ngFor","ngForOf"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click","focus"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(e,t){1&e&&(i.YNc(0,WV,3,6,"tr",0),i.YNc(1,JV,3,2,"tr",1)),2&e&&(i.Q6J("ngIf",t._firstRowOffset=s&&n===e}function dM(n,s,e,t){return t&&null!==s&&null!==e&&s!==e&&n>=s&&n<=e}class aa{constructor(s,e){this.start=s,this.end=e}}let _d=(()=>{class n{constructor(e,t){this.selection=e,this._adapter=t,this._selectionChanged=new Te.x,this.selectionChanged=this._selectionChanged,this.selection=e}updateSelection(e,t){const r=this.selection;this.selection=e,this._selectionChanged.next({selection:e,source:t,oldValue:r})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(e){return this._adapter.isDateInstance(e)&&this._adapter.isValid(e)}}return n.\u0275fac=function(e){i.$Z()},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),c2=(()=>{class n extends _d{constructor(e){super(null,e)}add(e){super.updateSelection(e,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const e=new n(this._adapter);return e.updateSelection(this.selection,this),e}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(ei))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const NH={provide:_d,deps:[[new i.FiY,new i.tp0,_d],ei],useFactory:function u2(n,s){return n||new c2(s)}},Pw=new i.OlP("MAT_DATE_RANGE_SELECTION_STRATEGY");let FH=(()=>{class n{constructor(e,t,r,l,d){this._changeDetectorRef=e,this._dateFormats=t,this._dateAdapter=r,this._dir=l,this._rangeStrategy=d,this._rerenderSubscription=Dt.w0.EMPTY,this.selectedChange=new i.vpe,this._userSelection=new i.vpe,this.activeDateChange=new i.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(e){const t=this._activeDate,r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),this._hasSameMonthAndYear(t,this._activeDate)||this._init()}get selected(){return this._selected}set selected(e){this._selected=e instanceof aa?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Nt(null)).subscribe(()=>this._init())}ngOnChanges(e){const t=e.comparisonStart||e.comparisonEnd;t&&!t.firstChange&&this._setRanges(this.selected)}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(e){const t=e.value,r=this._getDateFromDayOfMonth(t);let l,d;this._selected instanceof aa?(l=this._getDateInCurrentMonth(this._selected.start),d=this._getDateInCurrentMonth(this._selected.end)):l=d=this._getDateInCurrentMonth(this._selected),(l!==t||d!==t)&&this.selectedChange.emit(r),this._userSelection.emit({value:r,event:e.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}_updateActiveDate(e){const r=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(e.value),this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(e){const t=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&e.preventDefault());case 27:return void(null!=this._previewEnd&&!_n(e)&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:e}),e.preventDefault(),e.stopPropagation()));default:return}this._dateAdapter.compareDate(t,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(32===e.keyCode||13===e.keyCode)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(e)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(e){this._matCalendarBody._focusActiveCell(e)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:e,value:t}){if(this._rangeStrategy){const l=this._rangeStrategy.createPreview(t?t.rawValue:null,this.selected,e);this._previewStart=this._getCellCompareValue(l.start),this._previewEnd=this._getCellCompareValue(l.end),this._changeDetectorRef.detectChanges()}}_getDateFromDayOfMonth(e){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),e)}_initWeekdays(){const e=this._dateAdapter.getFirstDayOfWeek(),t=this._dateAdapter.getDayOfWeekNames("narrow");let l=this._dateAdapter.getDayOfWeekNames("long").map((d,o)=>({long:d,narrow:t[o]}));this._weekdays=l.slice(e).concat(l.slice(0,e))}_createWeekCells(){const e=this._dateAdapter.getNumDaysInMonth(this.activeDate),t=this._dateAdapter.getDateNames();this._weeks=[[]];for(let r=0,l=this._firstWeekOffset;r=0)&&(!this.maxDate||this._dateAdapter.compareDate(e,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(e))}_getDateInCurrentMonth(e){return e&&this._hasSameMonthAndYear(e,this.activeDate)?this._dateAdapter.getDate(e):null}_hasSameMonthAndYear(e,t){return!(!e||!t||this._dateAdapter.getMonth(e)!=this._dateAdapter.getMonth(t)||this._dateAdapter.getYear(e)!=this._dateAdapter.getYear(t))}_getCellCompareValue(e){if(e){const t=this._dateAdapter.getYear(e),r=this._dateAdapter.getMonth(e),l=this._dateAdapter.getDate(e);return new Date(t,r,l).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(e){e instanceof aa?(this._rangeStart=this._getCellCompareValue(e.start),this._rangeEnd=this._getCellCompareValue(e.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(e),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(e){return!this.dateFilter||this.dateFilter(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.sBO),i.Y36(Sr,8),i.Y36(ei,8),i.Y36(_i,8),i.Y36(Pw,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-month-view"]],viewQuery:function(e,t){if(1&e&&i.Gf(nf,5),2&e){let r;i.iGM(r=i.CRH())&&(t._matCalendarBody=r.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:[i.TTD],decls:7,vars:13,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["aria-hidden","true","colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","activeDateChange","previewChange","keyup","keydown"],["scope","col"],[1,"cdk-visually-hidden"],["aria-hidden","true"]],template:function(e,t){1&e&&(i.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),i.YNc(3,QV,5,2,"th",2),i.qZA(),i.TgZ(4,"tr"),i._UZ(5,"th",3),i.qZA()(),i.TgZ(6,"tbody",4),i.NdJ("selectedValueChange",function(l){return t._dateSelected(l)})("activeDateChange",function(l){return t._updateActiveDate(l)})("previewChange",function(l){return t._previewChanged(l)})("keyup",function(l){return t._handleCalendarBodyKeyup(l)})("keydown",function(l){return t._handleCalendarBodyKeydown(l)}),i.qZA()()),2&e&&(i.xp6(3),i.Q6J("ngForOf",t._weekdays),i.xp6(3),i.Q6J("label",t._monthLabel)("rows",t._weeks)("todayValue",t._todayDate)("startValue",t._rangeStart)("endValue",t._rangeEnd)("comparisonStart",t._comparisonRangeStart)("comparisonEnd",t._comparisonRangeEnd)("previewStart",t._previewStart)("previewEnd",t._previewEnd)("isRange",t._isRange)("labelMinRequiredCells",3)("activeCell",t._dateAdapter.getDate(t.activeDate)-1))},dependencies:[w.sg,nf],encapsulation:2,changeDetection:0}),n})(),jH=(()=>{class n{constructor(e,t,r){this._changeDetectorRef=e,this._dateAdapter=t,this._dir=r,this._rerenderSubscription=Dt.w0.EMPTY,this.selectedChange=new i.vpe,this.yearSelected=new i.vpe,this.activeDateChange=new i.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(e){let t=this._activeDate;const r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),YH(this._dateAdapter,t,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(e){this._selected=e instanceof aa?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedYear(e)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Nt(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const t=this._dateAdapter.getYear(this._activeDate)-Gg(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let r=0,l=[];r<24;r++)l.push(t+r),4==l.length&&(this._years.push(l.map(d=>this._createCellForYear(d))),l=[]);this._changeDetectorRef.markForCheck()}_yearSelected(e){const t=e.value,r=this._dateAdapter.createDate(t,0,1),l=this._getDateFromYear(t);this.yearSelected.emit(r),this.selectedChange.emit(l)}_updateActiveDate(e){const r=this._activeDate;this.activeDate=this._getDateFromYear(e.value),this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){const t=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-Gg(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-Gg(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-240:-24);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?240:24);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(t,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),e.preventDefault()}_handleCalendarBodyKeyup(e){(32===e.keyCode||13===e.keyCode)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_getActiveCell(){return Gg(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(e){const t=this._dateAdapter.getMonth(this.activeDate),r=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,t,1));return this._dateAdapter.createDate(e,t,Math.min(this._dateAdapter.getDate(this.activeDate),r))}_createCellForYear(e){const t=this._dateAdapter.createDate(e,0,1),r=this._dateAdapter.getYearName(t),l=this.dateClass?this.dateClass(t,"multi-year"):void 0;return new oM(e,r,r,this._shouldEnableYear(e),l)}_shouldEnableYear(e){if(null==e||this.maxDate&&e>this._dateAdapter.getYear(this.maxDate)||this.minDate&&e{class n{constructor(e,t,r,l){this._changeDetectorRef=e,this._dateFormats=t,this._dateAdapter=r,this._dir=l,this._rerenderSubscription=Dt.w0.EMPTY,this.selectedChange=new i.vpe,this.monthSelected=new i.vpe,this.activeDateChange=new i.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(e){let t=this._activeDate;const r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),this._dateAdapter.getYear(t)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(e){this._selected=e instanceof aa?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedMonth(e)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Nt(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(e){const t=e.value,r=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,1);this.monthSelected.emit(r);const l=this._getDateFromMonth(t);this.selectedChange.emit(l)}_updateActiveDate(e){const r=this._activeDate;this.activeDate=this._getDateFromMonth(e.value),this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){const t=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?10:1);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(t,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(32===e.keyCode||13===e.keyCode)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let e=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(t=>t.map(r=>this._createCellForMonth(r,e[r]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(e){return e&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(e):null}_getDateFromMonth(e){const t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),r=this._dateAdapter.getNumDaysInMonth(t);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,Math.min(this._dateAdapter.getDate(this.activeDate),r))}_createCellForMonth(e,t){const r=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),l=this._dateAdapter.format(r,this._dateFormats.display.monthYearA11yLabel),d=this.dateClass?this.dateClass(r,"year"):void 0;return new oM(e,t.toLocaleUpperCase(),l,this._shouldEnableMonth(e),d)}_shouldEnableMonth(e){const t=this._dateAdapter.getYear(this.activeDate);if(null==e||this._isYearAndMonthAfterMaxDate(t,e)||this._isYearAndMonthBeforeMinDate(t,e))return!1;if(!this.dateFilter)return!0;for(let l=this._dateAdapter.createDate(t,e,1);this._dateAdapter.getMonth(l)==e;l=this._dateAdapter.addCalendarDays(l,1))if(this.dateFilter(l))return!0;return!1}_isYearAndMonthAfterMaxDate(e,t){if(this.maxDate){const r=this._dateAdapter.getYear(this.maxDate),l=this._dateAdapter.getMonth(this.maxDate);return e>r||e===r&&t>l}return!1}_isYearAndMonthBeforeMinDate(e,t){if(this.minDate){const r=this._dateAdapter.getYear(this.minDate),l=this._dateAdapter.getMonth(this.minDate);return e{class n{constructor(e,t,r,l,d){this._intl=e,this.calendar=t,this._dateAdapter=r,this._dateFormats=l,this._buttonDescriptionId="mat-calendar-button-"+g2++,this.calendar.stateChanges.subscribe(()=>d.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)-Gg(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),r=t+24-1,l=this._dateAdapter.getYearName(this._dateAdapter.createDate(t,0,1)),d=this._dateAdapter.getYearName(this._dateAdapter.createDate(r,0,1));return this._intl.formatYearRange(l,d)}get periodButtonLabel(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-24)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:24)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(e,t){return"month"==this.calendar.currentView?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(t)&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(t):"year"==this.calendar.currentView?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(t):YH(this._dateAdapter,e,t,this.calendar.minDate,this.calendar.maxDate)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(qg),i.Y36((0,i.Gpc)(()=>pM)),i.Y36(ei,8),i.Y36(Sr,8),i.Y36(i.sBO))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:KV,decls:11,vars:10,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","aria-live","polite",1,"mat-calendar-period-button",3,"click"],["viewBox","0 0 10 5","focusable","false",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[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(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0)(1,"div",1)(2,"button",2),i.NdJ("click",function(){return t.currentPeriodClicked()}),i.TgZ(3,"span"),i._uU(4),i.qZA(),i.O4$(),i.TgZ(5,"svg",3),i._UZ(6,"polygon",4),i.qZA()(),i.kcU(),i._UZ(7,"div",5),i.Hsn(8),i.TgZ(9,"button",6),i.NdJ("click",function(){return t.previousClicked()}),i.qZA(),i.TgZ(10,"button",7),i.NdJ("click",function(){return t.nextClicked()}),i.qZA()()()),2&e&&(i.xp6(2),i.uIk("aria-label",t.periodButtonLabel)("aria-describedby",t._buttonDescriptionId),i.xp6(1),i.uIk("id",t._buttonDescriptionId),i.xp6(1),i.Oqu(t.periodButtonText),i.xp6(1),i.ekj("mat-calendar-invert","month"!==t.calendar.currentView),i.xp6(4),i.Q6J("disabled",!t.previousEnabled()),i.uIk("aria-label",t.prevButtonLabel),i.xp6(1),i.Q6J("disabled",!t.nextEnabled()),i.uIk("aria-label",t.nextButtonLabel))},dependencies:[It],encapsulation:2,changeDetection:0}),n})(),pM=(()=>{class n{constructor(e,t,r,l){this._dateAdapter=t,this._dateFormats=r,this._changeDetectorRef=l,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new i.vpe,this.yearSelected=new i.vpe,this.monthSelected=new i.vpe,this.viewChanged=new i.vpe(!0),this._userSelection=new i.vpe,this.stateChanges=new Te.x,this._intlChanges=e.changes.subscribe(()=>{l.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get selected(){return this._selected}set selected(e){this._selected=e instanceof aa?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get activeDate(){return this._clampedActiveDate}set activeDate(e){this._clampedActiveDate=this._dateAdapter.clampDate(e,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(e){const t=this._currentView!==e?e:null;this._currentView=e,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),t&&this.viewChanged.emit(t)}ngAfterContentInit(){this._calendarHeaderPortal=new xa(this.headerComponent||_2),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(e){const t=e.minDate&&!this._dateAdapter.sameDate(e.minDate.previousValue,e.minDate.currentValue)?e.minDate:void 0,r=e.maxDate&&!this._dateAdapter.sameDate(e.maxDate.previousValue,e.maxDate.currentValue)?e.maxDate:void 0,l=t||r||e.dateFilter;if(l&&!l.firstChange){const d=this._getCurrentViewComponent();d&&(this._changeDetectorRef.detectChanges(),d._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(e){const t=e.value;(this.selected instanceof aa||t&&!this._dateAdapter.sameDate(t,this.selected))&&this.selectedChange.emit(t),this._userSelection.emit(e)}_yearSelectedInMultiYearView(e){this.yearSelected.emit(e)}_monthSelectedInYearView(e){this.monthSelected.emit(e)}_goToDateInView(e,t){this.activeDate=e,this.currentView=t}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(qg),i.Y36(ei,8),i.Y36(Sr,8),i.Y36(i.sBO))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-calendar"]],viewQuery:function(e,t){if(1&e&&(i.Gf(FH,5),i.Gf(zH,5),i.Gf(jH,5)),2&e){let r;i.iGM(r=i.CRH())&&(t.monthView=r.first),i.iGM(r=i.CRH())&&(t.yearView=r.first),i.iGM(r=i.CRH())&&(t.multiYearView=r.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection"},exportAs:["matCalendar"],features:[i._Bn([NH]),i.TTD],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(e,t){1&e&&(i.YNc(0,XV,0,0,"ng-template",0),i.TgZ(1,"div",1),i.YNc(2,e2,1,8,"mat-month-view",2),i.YNc(3,t2,1,6,"mat-year-view",3),i.YNc(4,n2,1,6,"mat-multi-year-view",4),i.qZA()),2&e&&(i.Q6J("cdkPortalOutlet",t._calendarHeaderPortal),i.xp6(1),i.Q6J("ngSwitch",t.currentView),i.xp6(1),i.Q6J("ngSwitchCase","month"),i.xp6(1),i.Q6J("ngSwitchCase","year"),i.xp6(1),i.Q6J("ngSwitchCase","multi-year"))},dependencies:[w.RF,w.n9,hu,Ma,FH,zH,jH],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(4.7142857143% - 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:10px;height:5px;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}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.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}.mat-calendar-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),n})();const qH={transformPanel:di("transformPanel",[Tt("void => enter-dropdown",At("120ms cubic-bezier(0, 0, 0.2, 1)",kl([Re({opacity:0,transform:"scale(1, 0.8)"}),Re({opacity:1,transform:"scale(1, 1)"})]))),Tt("void => enter-dialog",At("150ms cubic-bezier(0, 0, 0.2, 1)",kl([Re({opacity:0,transform:"scale(0.7)"}),Re({transform:"none",opacity:1})]))),Tt("* => void",At("100ms linear",Re({opacity:0})))]),fadeInCalendar:di("fadeInCalendar",[Rt("void",Re({opacity:0})),Rt("enter",Re({opacity:1})),Tt("void => *",At("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let b2=0;const GH=new i.OlP("mat-datepicker-scroll-strategy"),C2={provide:GH,deps:[Vn],useFactory:function y2(n){return()=>n.scrollStrategies.reposition()}},w2=Mr(class{constructor(n){this._elementRef=n}});let A2=(()=>{class n extends w2{constructor(e,t,r,l,d,o){super(e),this._changeDetectorRef=t,this._globalModel=r,this._dateAdapter=l,this._rangeSelectionStrategy=d,this._subscriptions=new Dt.w0,this._animationDone=new Te.x,this._actionsPortal=null,this._closeButtonText=o.closeCalendarLabel}ngOnInit(){this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(e){const t=this._model.selection,r=e.value,l=t instanceof aa;if(l&&this._rangeSelectionStrategy){const d=this._rangeSelectionStrategy.selectionFinished(r,t,e.event);this._model.updateSelection(d,this)}else r&&(l||!this._dateAdapter.sameDate(r,t))&&this._model.add(r);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(e,t){this._model=e?this._globalModel.clone():this._globalModel,this._actionsPortal=e,t&&this._changeDetectorRef.detectChanges()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(_d),i.Y36(ei),i.Y36(Pw,8),i.Y36(qg))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-datepicker-content"]],viewQuery:function(e,t){if(1&e&&i.Gf(pM,5),2&e){let r;i.iGM(r=i.CRH())&&(t._calendar=r.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(e,t){1&e&&i.WFA("@transformPanel.done",function(){return t._animationDone.next()}),2&e&&(i.d8E("@transformPanel",t._animationState),i.ekj("mat-datepicker-content-touch",t.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[i.qOj],decls:5,vars:24,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","yearSelected","monthSelected","viewChanged","_userSelection"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"color","focus","blur","click"]],template:function(e,t){if(1&e&&(i.TgZ(0,"div",0)(1,"mat-calendar",1),i.NdJ("yearSelected",function(l){return t.datepicker._selectYear(l)})("monthSelected",function(l){return t.datepicker._selectMonth(l)})("viewChanged",function(l){return t.datepicker._viewChanged(l)})("_userSelection",function(l){return t._handleUserSelection(l)}),i.qZA(),i.YNc(2,r2,0,0,"ng-template",2),i.TgZ(3,"button",3),i.NdJ("focus",function(){return t._closeButtonFocused=!0})("blur",function(){return t._closeButtonFocused=!1})("click",function(){return t.datepicker.close()}),i._uU(4),i.qZA()()),2&e){let r;i.ekj("mat-datepicker-content-container-with-custom-header",t.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",t._actionsPortal),i.uIk("aria-modal",!0)("aria-labelledby",null!==(r=t._dialogLabelId)&&void 0!==r?r:void 0),i.xp6(1),i.Q6J("id",t.datepicker.id)("ngClass",t.datepicker.panelClass)("startAt",t.datepicker.startAt)("startView",t.datepicker.startView)("minDate",t.datepicker._getMinDate())("maxDate",t.datepicker._getMaxDate())("dateFilter",t.datepicker._getDateFilter())("headerComponent",t.datepicker.calendarHeaderComponent)("selected",t._getSelected())("dateClass",t.datepicker.dateClass)("comparisonStart",t.comparisonStart)("comparisonEnd",t.comparisonEnd)("@fadeInCalendar","enter"),i.xp6(1),i.Q6J("cdkPortalOutlet",t._actionsPortal),i.xp6(1),i.ekj("cdk-visually-hidden",!t._closeButtonFocused),i.Q6J("color",t.color||"primary"),i.xp6(1),i.Oqu(t._closeButtonText)}},dependencies:[w.mk,It,pb,Ma,pM],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}"],encapsulation:2,data:{animation:[qH.transformPanel,qH.fadeInCalendar]},changeDetection:0}),n})(),WH=(()=>{class n{constructor(e,t,r,l,d,o,a){this._overlay=e,this._ngZone=t,this._viewContainerRef=r,this._dateAdapter=d,this._dir=o,this._model=a,this._inputStateChanges=Dt.w0.EMPTY,this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new i.vpe,this.monthSelected=new i.vpe,this.viewChanged=new i.vpe(!0),this.openedStream=new i.vpe,this.closedStream=new i.vpe,this._opened=!1,this.id="mat-datepicker-"+b2++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new Te.x,this._scrollStrategy=l}get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(e){this._color=e}get touchUi(){return this._touchUi}set touchUi(e){this._touchUi=Ne(e)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(e){const t=Ne(e);t!==this._disabled&&(this._disabled=t,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(e){this._restoreFocus=Ne(e)}get panelClass(){return this._panelClass}set panelClass(e){this._panelClass=function eb(n,s=/\s+/){const e=[];if(null!=n){const t=Array.isArray(n)?n:`${n}`.split(s);for(const r of t){const l=`${r}`.trim();l&&e.push(l)}}return e}(e)}get opened(){return this._opened}set opened(e){Ne(e)?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(e){const t=e.xPosition||e.yPosition;if(t&&!t.firstChange&&this._overlayRef){const r=this._overlayRef.getConfig().positionStrategy;r instanceof dp&&(this._setConnectedPositions(r),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(e){this._model.add(e)}_selectYear(e){this.yearSelected.emit(e)}_selectMonth(e){this.monthSelected.emit(e)}_viewChanged(e){this.viewChanged.emit(e)}registerInput(e){return this._inputStateChanges.unsubscribe(),this.datepickerInput=e,this._inputStateChanges=e.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(e){this._actionsPortal=e,this._componentRef?.instance._assignActions(e,!0)}removeActions(e){e===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||(this._focusedElementBeforeOpen=Lc(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened)return;if(this._componentRef){const t=this._componentRef.instance;t._startExitAnimation(),t._animationDone.pipe((0,it.q)(1)).subscribe(()=>this._destroyOverlay())}const e=()=>{this._opened&&(this._opened=!1,this.closedStream.emit(),this._focusedElementBeforeOpen=null)};this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(e)):e()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(e){e.datepicker=this,e.color=this.color,e._dialogLabelId=this.datepickerInput.getOverlayLabelId(),e._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();const e=this.touchUi,t=new xa(A2,this._viewContainerRef),r=this._overlayRef=this._overlay.create(new Dl({positionStrategy:e?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[e?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:e?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(e?"dialog":"popup")}));this._getCloseStream(r).subscribe(l=>{l&&l.preventDefault(),this.close()}),r.keydownEvents().subscribe(l=>{const d=l.keyCode;(38===d||40===d||37===d||39===d||33===d||34===d)&&l.preventDefault()}),this._componentRef=r.attach(t),this._forwardContentValues(this._componentRef.instance),e||this._ngZone.onStable.pipe((0,it.q)(1)).subscribe(()=>r.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const e=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(e)}_setConnectedPositions(e){const t="end"===this.xPosition?"end":"start",r="start"===t?"end":"start",l="above"===this.yPosition?"bottom":"top",d="top"===l?"bottom":"top";return e.withPositions([{originX:t,originY:d,overlayX:t,overlayY:l},{originX:t,originY:l,overlayX:t,overlayY:d},{originX:r,originY:d,overlayX:r,overlayY:l},{originX:r,originY:l,overlayX:r,overlayY:d}])}_getCloseStream(e){return(0,xi.T)(e.backdropClick(),e.detachments(),e.keydownEvents().pipe((0,Ze.h)(t=>27===t.keyCode&&!_n(t)||this.datepickerInput&&_n(t,"altKey")&&38===t.keyCode)))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Vn),i.Y36(i.R0b),i.Y36(i.s_b),i.Y36(GH),i.Y36(ei,8),i.Y36(_i,8),i.Y36(_d))},n.\u0275dir=i.lG2({type:n,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:"touchUi",disabled:"disabled",xPosition:"xPosition",yPosition:"yPosition",restoreFocus:"restoreFocus",dateClass:"dateClass",panelClass:"panelClass",opened:"opened"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[i.TTD]}),n})(),fM=(()=>{class n extends WH{}return n.\u0275fac=function(){let s;return function(t){return(s||(s=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[i._Bn([NH,{provide:WH,useExisting:n}]),i.qOj],decls:0,vars:0,template:function(e,t){},encapsulation:2,changeDetection:0}),n})();class kw{constructor(s,e){this.target=s,this.targetElement=e,this.value=this.target.value}}let v2=(()=>{class n{constructor(e,t,r){this._elementRef=e,this._dateAdapter=t,this._dateFormats=r,this.dateChange=new i.vpe,this.dateInput=new i.vpe,this.stateChanges=new Te.x,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=Dt.w0.EMPTY,this._localeSubscription=Dt.w0.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=l=>{const d=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(l.value));return!d||this._matchesFilter(d)?null:{matDatepickerFilter:!0}},this._minValidator=l=>{const d=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(l.value)),o=this._getMinDate();return!o||!d||this._dateAdapter.compareDate(o,d)<=0?null:{matDatepickerMin:{min:o,actual:d}}},this._maxValidator=l=>{const d=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(l.value)),o=this._getMaxDate();return!o||!d||this._dateAdapter.compareDate(o,d)>=0?null:{matDatepickerMax:{max:o,actual:d}}},this._lastValueValid=!1,this._localeSubscription=t.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(e){this._assignValueProgrammatically(e)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(e){const t=Ne(e),r=this._elementRef.nativeElement;this._disabled!==t&&(this._disabled=t,this.stateChanges.next(void 0)),t&&this._isInitialized&&r.blur&&r.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(e){this._model=e,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(t=>{if(this._shouldHandleChangeEvent(t)){const r=this._getValueFromModel(t.selection);this._lastValueValid=this._isValidValue(r),this._cvaOnChange(r),this._onTouched(),this._formatValue(r),this.dateInput.emit(new kw(this,this._elementRef.nativeElement)),this.dateChange.emit(new kw(this,this._elementRef.nativeElement))}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(e){(function T2(n,s){const e=Object.keys(n);for(let t of e){const{previousValue:r,currentValue:l}=n[t];if(!s.isDateInstance(r)||!s.isDateInstance(l))return!0;if(!s.sameDate(r,l))return!0}return!1})(e,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(e){this._validatorOnChange=e}validate(e){return this._validator?this._validator(e):null}writeValue(e){this._assignValueProgrammatically(e)}registerOnChange(e){this._cvaOnChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_onKeydown(e){e.altKey&&40===e.keyCode&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),e.preventDefault())}_onInput(e){const t=this._lastValueValid;let r=this._dateAdapter.parse(e,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(r),r=this._dateAdapter.getValidDateOrNull(r);const l=!this._dateAdapter.sameDate(r,this.value);!r||l?this._cvaOnChange(r):(e&&!this.value&&this._cvaOnChange(r),t!==this._lastValueValid&&this._validatorOnChange()),l&&(this._assignValue(r),this.dateInput.emit(new kw(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new kw(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(e){this._elementRef.nativeElement.value=null!=e?this._dateAdapter.format(e,this._dateFormats.display.dateInput):""}_assignValue(e){this._model?(this._assignValueToModel(e),this._pendingValue=null):this._pendingValue=e}_isValidValue(e){return!e||this._dateAdapter.isValid(e)}_parentDisabled(){return!1}_assignValueProgrammatically(e){e=this._dateAdapter.deserialize(e),this._lastValueValid=this._isValidValue(e),e=this._dateAdapter.getValidDateOrNull(e),this._assignValue(e),this._formatValue(e)}_matchesFilter(e){const t=this._getDateFilter();return!t||t(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(ei,8),i.Y36(Sr,8))},n.\u0275dir=i.lG2({type:n,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[i.TTD]}),n})();const x2={provide:rr,useExisting:(0,i.Gpc)(()=>Wg),multi:!0},M2={provide:bn,useExisting:(0,i.Gpc)(()=>Wg),multi:!0};let Wg=(()=>{class n extends v2{constructor(e,t,r,l){super(e,t,r),this._formField=l,this._closedSubscription=Dt.w0.EMPTY,this._validator=Pi.compose(super._getValidators())}set matDatepicker(e){e&&(this._datepicker=e,this._closedSubscription=e.closedStream.subscribe(()=>this._onTouched()),this._registerModel(e.registerInput(this)))}get min(){return this._min}set min(e){const t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(t,this._min)||(this._min=t,this._validatorOnChange())}get max(){return this._max}set max(e){const t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(t,this._max)||(this._max=t,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(e){const t=this._matchesFilter(this.value);this._dateFilter=e,this._matchesFilter(this.value)!==t&&this._validatorOnChange()}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(e){return e}_assignValueToModel(e){this._model&&this._model.updateSelection(e,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(e){return e.source!==this}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(ei,8),i.Y36(Sr,8),i.Y36(mp,8))},n.\u0275dir=i.lG2({type:n,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(e,t){1&e&&i.NdJ("input",function(l){return t._onInput(l.target.value)})("change",function(){return t._onChange()})("blur",function(){return t._onBlur()})("keydown",function(l){return t._onKeydown(l)}),2&e&&(i.Ikx("disabled",t.disabled),i.uIk("aria-haspopup",t._datepicker?"dialog":null)("aria-owns",(null==t._datepicker?null:t._datepicker.opened)&&t._datepicker.id||null)("min",t.min?t._dateAdapter.toIso8601(t.min):null)("max",t.max?t._dateAdapter.toIso8601(t.max):null)("data-mat-calendar",t._datepicker?t._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[i._Bn([x2,M2,{provide:rD,useExisting:n}]),i.qOj]}),n})(),S2=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","matDatepickerToggleIcon",""]]}),n})(),mM=(()=>{class n{constructor(e,t,r){this._intl=e,this._changeDetectorRef=t,this._stateChanges=Dt.w0.EMPTY;const l=Number(r);this.tabIndex=l||0===l?l:null}get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(e){this._disabled=Ne(e)}ngOnChanges(e){e.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(e){this.datepicker&&!this.disabled&&(this.datepicker.open(),e.stopPropagation())}_watchStateChanges(){const e=this.datepicker?this.datepicker.stateChanges:(0,Ae.of)(),t=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:(0,Ae.of)(),r=this.datepicker?(0,xi.T)(this.datepicker.openedStream,this.datepicker.closedStream):(0,Ae.of)();this._stateChanges.unsubscribe(),this._stateChanges=(0,xi.T)(this._intl.changes,e,t,r).subscribe(()=>this._changeDetectorRef.markForCheck())}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(qg),i.Y36(i.sBO),i.$8M("tabindex"))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-datepicker-toggle"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,S2,5),2&e){let l;i.iGM(l=i.CRH())&&(t._customIcon=l.first)}},viewQuery:function(e,t){if(1&e&&i.Gf(a2,5),2&e){let r;i.iGM(r=i.CRH())&&(t._button=r.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(e,t){1&e&&i.NdJ("click",function(l){return t._open(l)}),2&e&&(i.uIk("tabindex",null)("data-mat-calendar",t.datepicker?t.datepicker.id:null),i.ekj("mat-datepicker-toggle-active",t.datepicker&&t.datepicker.opened)("mat-accent",t.datepicker&&"accent"===t.datepicker.color)("mat-warn",t.datepicker&&"warn"===t.datepicker.color))},inputs:{datepicker:["for","datepicker"],tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[i.TTD],ngContentSelectors:l2,decls:4,vars:6,consts:[["mat-icon-button","","type","button",3,"disabled","disableRipple"],["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(e,t){1&e&&(i.F$t(o2),i.TgZ(0,"button",0,1),i.YNc(2,s2,2,0,"svg",2),i.Hsn(3),i.qZA()),2&e&&(i.Q6J("disabled",t.disabled)("disableRipple",t.disableRipple),i.uIk("aria-haspopup",t.datepicker?"dialog":null)("aria-label",t.ariaLabel||t._intl.openCalendarLabel)("tabindex",t.disabled?-1:t.tabIndex),i.xp6(2),i.Q6J("ngIf",!t._customIcon))},dependencies:[w.O5,It],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}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}"],encapsulation:2,changeDetection:0}),n})(),gM=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[qg,C2],imports:[w.ez,ta,Pl,ep,Rs,ct,wn]}),n})();const E2=["mat-sort-header",""];function D2(n,s){if(1&n){const e=i.EpF();i.TgZ(0,"div",3),i.NdJ("@arrowPosition.start",function(){i.CHM(e);const r=i.oxw();return i.KtG(r._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){i.CHM(e);const r=i.oxw();return i.KtG(r._disableViewStateAnimation=!1)}),i._UZ(1,"div",4),i.TgZ(2,"div",5),i._UZ(3,"div",6)(4,"div",7)(5,"div",8),i.qZA()()}if(2&n){const e=i.oxw();i.Q6J("@arrowOpacity",e._getArrowViewState())("@arrowPosition",e._getArrowViewState())("@allowChildren",e._getArrowDirectionState()),i.xp6(2),i.Q6J("@indicator",e._getArrowDirectionState()),i.xp6(1),i.Q6J("@leftPointer",e._getArrowDirectionState()),i.xp6(1),i.Q6J("@rightPointer",e._getArrowDirectionState())}}const H2=["*"],$H=new i.OlP("MAT_SORT_DEFAULT_OPTIONS"),P2=nm(hn(class{}));let Va=(()=>{class n extends P2{constructor(e){super(),this._defaultOptions=e,this.sortables=new Map,this._stateChanges=new Te.x,this.start="asc",this._direction="",this.sortChange=new i.vpe}get direction(){return this._direction}set direction(e){this._direction=e}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=Ne(e)}register(e){this.sortables.set(e.id,e)}deregister(e){this.sortables.delete(e.id)}sort(e){this.active!=e.id?(this.active=e.id,this.direction=e.start?e.start:this.start):this.direction=this.getNextSortDirection(e),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(e){if(!e)return"";let r=function k2(n,s){let e=["asc","desc"];return"desc"==n&&e.reverse(),s||e.push(""),e}(e.start||this.start,e?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear),l=r.indexOf(this.direction)+1;return l>=r.length&&(l=0),r[l]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36($H,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],active:["matSortActive","active"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[i.qOj,i.TTD]}),n})();const bd=kS.ENTERING+" "+PS.STANDARD_CURVE,rf={indicator:di("indicator",[Rt("active-asc, asc",Re({transform:"translateY(0px)"})),Rt("active-desc, desc",Re({transform:"translateY(10px)"})),Tt("active-asc <=> active-desc",At(bd))]),leftPointer:di("leftPointer",[Rt("active-asc, asc",Re({transform:"rotate(-45deg)"})),Rt("active-desc, desc",Re({transform:"rotate(45deg)"})),Tt("active-asc <=> active-desc",At(bd))]),rightPointer:di("rightPointer",[Rt("active-asc, asc",Re({transform:"rotate(45deg)"})),Rt("active-desc, desc",Re({transform:"rotate(-45deg)"})),Tt("active-asc <=> active-desc",At(bd))]),arrowOpacity:di("arrowOpacity",[Rt("desc-to-active, asc-to-active, active",Re({opacity:1})),Rt("desc-to-hint, asc-to-hint, hint",Re({opacity:.54})),Rt("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",Re({opacity:0})),Tt("* => asc, * => desc, * => active, * => hint, * => void",At("0ms")),Tt("* <=> *",At(bd))]),arrowPosition:di("arrowPosition",[Tt("* => desc-to-hint, * => desc-to-active",At(bd,kl([Re({transform:"translateY(-25%)"}),Re({transform:"translateY(0)"})]))),Tt("* => hint-to-desc, * => active-to-desc",At(bd,kl([Re({transform:"translateY(0)"}),Re({transform:"translateY(25%)"})]))),Tt("* => asc-to-hint, * => asc-to-active",At(bd,kl([Re({transform:"translateY(25%)"}),Re({transform:"translateY(0)"})]))),Tt("* => hint-to-asc, * => active-to-asc",At(bd,kl([Re({transform:"translateY(0)"}),Re({transform:"translateY(-25%)"})]))),Rt("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",Re({transform:"translateY(0)"})),Rt("hint-to-desc, active-to-desc, desc",Re({transform:"translateY(-25%)"})),Rt("hint-to-asc, active-to-asc, asc",Re({transform:"translateY(25%)"}))]),allowChildren:di("allowChildren",[Tt("* <=> *",[An("@*",Su(),{optional:!0})])])};let Rw=(()=>{class n{constructor(){this.changes=new Te.x}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const L2={provide:Rw,deps:[[new i.FiY,new i.tp0,Rw]],useFactory:function R2(n){return n||new Rw}},I2=hn(class{});let af=(()=>{class n extends I2{constructor(e,t,r,l,d,o,a,c){super(),this._intl=e,this._changeDetectorRef=t,this._sort=r,this._columnDef=l,this._focusMonitor=d,this._elementRef=o,this._ariaDescriber=a,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",c?.arrowPosition&&(this.arrowPosition=c?.arrowPosition),this._handleStateChanges()}get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(e){this._updateSortActionDescription(e)}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=Ne(e)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{const t=!!e;t!==this._showIndicatorHint&&(this._setIndicatorHintVisible(t),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(e){this._isDisabled()&&e||(this._showIndicatorHint=e,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(e){this._viewState=e||{},this._disableViewStateAnimation&&(this._viewState={toState:e.toState})}_toggleOnInteraction(){this._sort.sort(this),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(e){!this._isDisabled()&&(32===e.keyCode||13===e.keyCode)&&(e.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const e=this._viewState.fromState;return(e?`${e}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(e){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,e)),this._sortActionDescription=e}_handleStateChanges(){this._rerenderSubscription=(0,xi.T)(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Rw),i.Y36(i.sBO),i.Y36(Va,8),i.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),i.Y36(tr),i.Y36(i.SBq),i.Y36(Xf,8),i.Y36($H,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(e,t){1&e&&i.NdJ("click",function(){return t._handleClick()})("keydown",function(l){return t._handleKeydown(l)})("mouseenter",function(){return t._setIndicatorHintVisible(!0)})("mouseleave",function(){return t._setIndicatorHintVisible(!1)}),2&e&&(i.uIk("aria-sort",t._getAriaSortAttribute()),i.ekj("mat-sort-header-disabled",t._isDisabled()))},inputs:{disabled:"disabled",id:["mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[i.qOj],attrs:E2,ngContentSelectors:H2,decls:4,vars:7,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0)(1,"div",1),i.Hsn(2),i.qZA(),i.YNc(3,D2,6,6,"div",2),i.qZA()),2&e&&(i.ekj("mat-sort-header-sorted",t._isSorted())("mat-sort-header-position-before","before"===t.arrowPosition),i.uIk("tabindex",t._isDisabled()?null:0)("role",t._isDisabled()?null:"button"),i.xp6(3),i.Q6J("ngIf",t._renderArrow()))},dependencies:[w.O5],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}"],encapsulation:2,data:{animation:[rf.indicator,rf.leftPointer,rf.rightPointer,rf.arrowOpacity,rf.arrowPosition,rf.allowChildren]},changeDetection:0}),n})(),_M=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[L2],imports:[w.ez,ct]}),n})();function O2(n,s){1&n&&i.Hsn(0)}const ZH=["*"];function B2(n,s){}const V2=function(n){return{animationDuration:n}},N2=function(n,s){return{value:n,params:s}},F2=["tabListContainer"],j2=["tabList"],Y2=["tabListInner"],U2=["nextPaginator"],z2=["previousPaginator"],q2=["tabBodyWrapper"],G2=["tabHeader"];function W2(n,s){}function $2(n,s){if(1&n&&i.YNc(0,W2,0,0,"ng-template",10),2&n){const e=i.oxw().$implicit;i.Q6J("cdkPortalOutlet",e.templateLabel)}}function Z2(n,s){if(1&n&&i._uU(0),2&n){const e=i.oxw().$implicit;i.Oqu(e.textLabel)}}function J2(n,s){if(1&n){const e=i.EpF();i.TgZ(0,"div",6),i.NdJ("click",function(){const r=i.CHM(e),l=r.$implicit,d=r.index,o=i.oxw(),a=i.MAs(1);return i.KtG(o._handleClick(l,a,d))})("cdkFocusChange",function(r){const d=i.CHM(e).index,o=i.oxw();return i.KtG(o._tabFocusChanged(r,d))}),i.TgZ(1,"div",7),i.YNc(2,$2,1,1,"ng-template",8),i.YNc(3,Z2,1,1,"ng-template",null,9,i.W1O),i.qZA()()}if(2&n){const e=s.$implicit,t=s.index,r=i.MAs(4),l=i.oxw();i.ekj("mat-tab-label-active",l.selectedIndex===t),i.Q6J("id",l._getTabLabelId(t))("ngClass",e.labelClass)("disabled",e.disabled)("matRippleDisabled",e.disabled||l.disableRipple),i.uIk("tabIndex",l._getTabIndex(e,t))("aria-posinset",t+1)("aria-setsize",l._tabs.length)("aria-controls",l._getTabContentId(t))("aria-selected",l.selectedIndex===t)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null),i.xp6(2),i.Q6J("ngIf",e.templateLabel)("ngIfElse",r)}}function Q2(n,s){if(1&n){const e=i.EpF();i.TgZ(0,"mat-tab-body",11),i.NdJ("_onCentered",function(){i.CHM(e);const r=i.oxw();return i.KtG(r._removeTabBodyWrapperHeight())})("_onCentering",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l._setTabBodyWrapperHeight(r))}),i.qZA()}if(2&n){const e=s.$implicit,t=s.index,r=i.oxw();i.ekj("mat-tab-body-active",r.selectedIndex===t),i.Q6J("id",r._getTabContentId(t))("ngClass",e.bodyClass)("content",e.content)("position",e.position)("origin",e.origin)("animationDuration",r.animationDuration)("preserveContent",r.preserveContent),i.uIk("tabindex",null!=r.contentTabIndex&&r.selectedIndex===t?r.contentTabIndex:null)("aria-labelledby",r._getTabLabelId(t))}}const K2=new i.OlP("MatInkBarPositioner",{providedIn:"root",factory:function X2(){return s=>({left:s?(s.offsetLeft||0)+"px":"0",width:s?(s.offsetWidth||0)+"px":"0"})}});let JH=(()=>{class n{constructor(e,t,r,l){this._elementRef=e,this._ngZone=t,this._inkBarPositioner=r,this._animationMode=l}alignToElement(e){this.show(),this._ngZone.run(()=>{this._ngZone.onStable.pipe((0,it.q)(1)).subscribe(()=>{const t=this._inkBarPositioner(e),r=this._elementRef.nativeElement;r.style.left=t.left,r.style.width=t.width})})}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(K2),i.Y36(i.QbO,8))},n.\u0275dir=i.lG2({type:n,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode)}}),n})();const QH=new i.OlP("MatTabContent");let eN=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["","matTabContent",""]],features:[i._Bn([{provide:QH,useExisting:n}])]}),n})();const KH=new i.OlP("MatTabLabel"),XH=new i.OlP("MAT_TAB");let tN=(()=>{class n extends Yb{constructor(e,t,r){super(e,t),this._closestTab=r}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc),i.Y36(i.s_b),i.Y36(XH,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[i._Bn([{provide:KH,useExisting:n}]),i.qOj]}),n})();const iN=hn(class{}),e1=new i.OlP("MAT_TAB_GROUP");let t1=(()=>{class n extends iN{constructor(e,t){super(),this._viewContainerRef=e,this._closestTabGroup=t,this.textLabel="",this._contentPortal=null,this._stateChanges=new Te.x,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(e){this._setTemplateLabelInput(e)}get content(){return this._contentPortal}ngOnChanges(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new Hr(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(e){e&&e._closestTab===this&&(this._templateLabel=e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.s_b),i.Y36(e1,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-tab"]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,KH,5),i.Suo(r,QH,7,i.Rgc)),2&e){let l;i.iGM(l=i.CRH())&&(t.templateLabel=l.first),i.iGM(l=i.CRH())&&(t._explicitContent=l.first)}},viewQuery:function(e,t){if(1&e&&i.Gf(i.Rgc,7),2&e){let r;i.iGM(r=i.CRH())&&(t._implicitContent=r.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],features:[i._Bn([{provide:XH,useExisting:n}]),i.qOj,i.TTD],ngContentSelectors:ZH,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.YNc(0,O2,1,0,"ng-template"))},encapsulation:2}),n})();const nN={translateTab:di("translateTab",[Rt("center, void, left-origin-center, right-origin-center",Re({transform:"none"})),Rt("left",Re({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),Rt("right",Re({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),Tt("* => left, * => right, left => center, right => center",At("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),Tt("void => left-origin-center",[Re({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),At("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),Tt("void => right-origin-center",[Re({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),At("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let rN=(()=>{class n extends Ma{constructor(e,t,r,l){super(e,t,l),this._host=r,this._centeringSub=Dt.w0.EMPTY,this._leavingSub=Dt.w0.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(Nt(this._host._isCenterPosition(this._host._position))).subscribe(e=>{e&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i._Vd),i.Y36(i.s_b),i.Y36((0,i.Gpc)(()=>n1)),i.Y36(w.K0))},n.\u0275dir=i.lG2({type:n,selectors:[["","matTabBodyHost",""]],features:[i.qOj]}),n})(),aN=(()=>{class n{constructor(e,t,r){this._elementRef=e,this._dir=t,this._dirChangeSubscription=Dt.w0.EMPTY,this._translateTabComplete=new Te.x,this._onCentering=new i.vpe,this._beforeCentering=new i.vpe,this._afterLeavingCenter=new i.vpe,this._onCentered=new i.vpe(!0),this.animationDuration="500ms",this.preserveContent=!1,t&&(this._dirChangeSubscription=t.change.subscribe(l=>{this._computePositionAnimationState(l),r.markForCheck()})),this._translateTabComplete.pipe(Ms((l,d)=>l.fromState===d.fromState&&l.toState===d.toState)).subscribe(l=>{this._isCenterPosition(l.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(l.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(e){this._positionIndex=e,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(e){const t=this._isCenterPosition(e.toState);this._beforeCentering.emit(t),t&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(e){return"center"==e||"left-origin-center"==e||"right-origin-center"==e}_computePositionAnimationState(e=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==e?"left":"right":this._positionIndex>0?"ltr"==e?"right":"left":"center"}_computePositionFromOrigin(e){const t=this._getLayoutDirection();return"ltr"==t&&e<=0||"rtl"==t&&e>0?"left-origin-center":"right-origin-center"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(_i,8),i.Y36(i.sBO))},n.\u0275dir=i.lG2({type:n,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),n})(),n1=(()=>{class n extends aN{constructor(e,t,r){super(e,t,r)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(_i,8),i.Y36(i.sBO))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-tab-body"]],viewQuery:function(e,t){if(1&e&&i.Gf(Ma,5),2&e){let r;i.iGM(r=i.CRH())&&(t._portalHost=r.first)}},hostAttrs:[1,"mat-tab-body"],features:[i.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(e,t){1&e&&(i.TgZ(0,"div",0,1),i.NdJ("@translateTab.start",function(l){return t._onTranslateTabStarted(l)})("@translateTab.done",function(l){return t._translateTabComplete.next(l)}),i.YNc(2,B2,0,0,"ng-template",2),i.qZA()),2&e&&i.Q6J("@translateTab",i.WLB(3,N2,t._position,i.VKq(1,V2,t.animationDuration)))},dependencies:[rN],styles:['.mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}.mat-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[nN.translateTab]}}),n})();const r1=new i.OlP("MAT_TABS_CONFIG"),sN=hn(class{});let a1=(()=>{class n extends sN{constructor(e){super(),this.elementRef=e}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(e,t){2&e&&(i.uIk("aria-disabled",!!t.disabled),i.ekj("mat-tab-disabled",t.disabled))},inputs:{disabled:"disabled"},features:[i.qOj]}),n})();const s1=Ts({passive:!0});let cN=(()=>{class n{constructor(e,t,r,l,d,o,a){this._elementRef=e,this._changeDetectorRef=t,this._viewportRuler=r,this._dir=l,this._ngZone=d,this._platform=o,this._animationMode=a,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new Te.x,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new Te.x,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new i.vpe,this.indexFocused=new i.vpe,d.runOutsideAngular(()=>{Aa(e.nativeElement,"mouseleave").pipe(Ge(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get disablePagination(){return this._disablePagination}set disablePagination(e){this._disablePagination=Ne(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){e=ci(e),this._selectedIndex!=e&&(this._selectedIndexChanged=!0,this._selectedIndex=e,this._keyManager&&this._keyManager.updateActiveItem(e))}ngAfterViewInit(){Aa(this._previousPaginator.nativeElement,"touchstart",s1).pipe(Ge(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),Aa(this._nextPaginator.nativeElement,"touchstart",s1).pipe(Ge(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const e=this._dir?this._dir.change:(0,Ae.of)("ltr"),t=this._viewportRuler.change(150),r=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new Al(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe((0,it.q)(1)).subscribe(r),(0,xi.T)(e,t,this._items.changes,this._itemsResized()).pipe(Ge(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),r()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe(Ge(this._destroyed)).subscribe(l=>{this.indexFocused.emit(l),this._setTabFocus(l)})}_itemsResized(){return"function"!=typeof ResizeObserver?wr.E:this._items.changes.pipe(Nt(this._items),(0,pi.w)(e=>new oi.y(t=>this._ngZone.runOutsideAngular(()=>{const r=new ResizeObserver(()=>{t.next()});return e.forEach(l=>{r.observe(l.elementRef.nativeElement)}),()=>{r.disconnect()}}))),Jf(1))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(e){if(!_n(e))switch(e.keyCode){case 13:case 32:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(e));break;default:this._keyManager.onKeydown(e)}}_onContentChanges(){const e=this._elementRef.nativeElement.textContent;e!==this._currentTextContent&&(this._currentTextContent=e||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(e){!this._isValidIndex(e)||this.focusIndex===e||!this._keyManager||this._keyManager.setActiveItem(e)}_isValidIndex(e){if(!this._items)return!0;const t=this._items?this._items.toArray()[e]:null;return!!t&&!t.disabled}_setTabFocus(e){if(this._showPaginationControls&&this._scrollToLabel(e),this._items&&this._items.length){this._items.toArray()[e].focus();const t=this._tabListContainer.nativeElement;t.scrollLeft="ltr"==this._getLayoutDirection()?0:t.scrollWidth-t.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const e=this.scrollDistance,t="ltr"===this._getLayoutDirection()?-e:e;this._tabList.nativeElement.style.transform=`translateX(${Math.round(t)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(e){this._scrollTo(e)}_scrollHeader(e){return this._scrollTo(this._scrollDistance+("before"==e?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(e){this._stopInterval(),this._scrollHeader(e)}_scrollToLabel(e){if(this.disablePagination)return;const t=this._items?this._items.toArray()[e]:null;if(!t)return;const r=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:l,offsetWidth:d}=t.elementRef.nativeElement;let o,a;"ltr"==this._getLayoutDirection()?(o=l,a=o+d):(a=this._tabListInner.nativeElement.offsetWidth-l,o=a-d);const c=this.scrollDistance,u=this.scrollDistance+r;ou&&(this.scrollDistance+=a-u+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const e=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;e||(this.scrollDistance=0),e!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=e}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,t=e?e.elementRef.nativeElement:null;t?this._inkBar.alignToElement(t):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(e,t){t&&null!=t.button&&0!==t.button||(this._stopInterval(),(0,yu.H)(650,100).pipe(Ge((0,xi.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:r,distance:l}=this._scrollHeader(e);(0===l||l>=r)&&this._stopInterval()}))}_scrollTo(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const t=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(t,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:t,distance:this._scrollDistance}}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(va),i.Y36(_i,8),i.Y36(i.R0b),i.Y36(Hi),i.Y36(i.QbO,8))},n.\u0275dir=i.lG2({type:n,inputs:{disablePagination:"disablePagination"}}),n})(),dN=(()=>{class n extends cN{constructor(e,t,r,l,d,o,a){super(e,t,r,l,d,o,a),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=Ne(e)}_itemSelected(e){e.preventDefault()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(va),i.Y36(_i,8),i.Y36(i.R0b),i.Y36(Hi),i.Y36(i.QbO,8))},n.\u0275dir=i.lG2({type:n,inputs:{disableRipple:"disableRipple"},features:[i.qOj]}),n})(),uN=(()=>{class n extends dN{constructor(e,t,r,l,d,o,a){super(e,t,r,l,d,o,a)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(va),i.Y36(_i,8),i.Y36(i.R0b),i.Y36(Hi),i.Y36(i.QbO,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-tab-header"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,a1,4),2&e){let l;i.iGM(l=i.CRH())&&(t._items=l)}},viewQuery:function(e,t){if(1&e&&(i.Gf(JH,7),i.Gf(F2,7),i.Gf(j2,7),i.Gf(Y2,7),i.Gf(U2,5),i.Gf(z2,5)),2&e){let r;i.iGM(r=i.CRH())&&(t._inkBar=r.first),i.iGM(r=i.CRH())&&(t._tabListContainer=r.first),i.iGM(r=i.CRH())&&(t._tabList=r.first),i.iGM(r=i.CRH())&&(t._tabListInner=r.first),i.iGM(r=i.CRH())&&(t._nextPaginator=r.first),i.iGM(r=i.CRH())&&(t._previousPaginator=r.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(e,t){2&e&&i.ekj("mat-tab-header-pagination-controls-enabled",t._showPaginationControls)("mat-tab-header-rtl","rtl"==t._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[i.qOj],ngContentSelectors:ZH,decls:14,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"button",0,1),i.NdJ("click",function(){return t._handlePaginatorClick("before")})("mousedown",function(l){return t._handlePaginatorPress("before",l)})("touchend",function(){return t._stopInterval()}),i._UZ(2,"div",2),i.qZA(),i.TgZ(3,"div",3,4),i.NdJ("keydown",function(l){return t._handleKeydown(l)}),i.TgZ(5,"div",5,6),i.NdJ("cdkObserveContent",function(){return t._onContentChanges()}),i.TgZ(7,"div",7,8),i.Hsn(9),i.qZA(),i._UZ(10,"mat-ink-bar"),i.qZA()(),i.TgZ(11,"button",9,10),i.NdJ("mousedown",function(l){return t._handlePaginatorPress("after",l)})("click",function(){return t._handlePaginatorClick("after")})("touchend",function(){return t._stopInterval()}),i._UZ(13,"div",2),i.qZA()),2&e&&(i.ekj("mat-tab-header-pagination-disabled",t._disableScrollBefore),i.Q6J("matRippleDisabled",t._disableScrollBefore||t.disableRipple)("disabled",t._disableScrollBefore||null),i.xp6(5),i.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode),i.xp6(6),i.ekj("mat-tab-header-pagination-disabled",t._disableScrollAfter),i.Q6J("matRippleDisabled",t._disableScrollAfter||t.disableRipple)("disabled",t._disableScrollAfter||null))},dependencies:[fr,Zh,JH],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-list._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}.mat-tab-label::before{margin:5px}@media(max-width: 599px){.mat-tab-label{min-width:72px}}"],encapsulation:2}),n})(),hN=0;class pN{}const fN=Mr(Xr(class{constructor(n){this._elementRef=n}}),"primary");let mN=(()=>{class n extends fN{constructor(e,t,r,l){super(e),this._changeDetectorRef=t,this._animationMode=l,this._tabs=new i.n_E,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=Dt.w0.EMPTY,this._tabLabelSubscription=Dt.w0.EMPTY,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this._disablePagination=!1,this._preserveContent=!1,this.selectedIndexChange=new i.vpe,this.focusChange=new i.vpe,this.animationDone=new i.vpe,this.selectedTabChange=new i.vpe(!0),this._groupId=hN++,this.animationDuration=r&&r.animationDuration?r.animationDuration:"500ms",this.disablePagination=!(!r||null==r.disablePagination)&&r.disablePagination,this.dynamicHeight=!(!r||null==r.dynamicHeight)&&r.dynamicHeight,this.contentTabIndex=r?.contentTabIndex??null,this.preserveContent=!!r?.preserveContent}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(e){this._dynamicHeight=Ne(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this._indexToSelect=ci(e,null)}get animationDuration(){return this._animationDuration}set animationDuration(e){this._animationDuration=/^\d+$/.test(e+"")?e+"ms":e}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(e){this._contentTabIndex=ci(e,null)}get disablePagination(){return this._disablePagination}set disablePagination(e){this._disablePagination=Ne(e)}get preserveContent(){return this._preserveContent}set preserveContent(e){this._preserveContent=Ne(e)}get backgroundColor(){return this._backgroundColor}set backgroundColor(e){const t=this._elementRef.nativeElement;t.classList.remove(`mat-background-${this.backgroundColor}`),e&&t.classList.add(`mat-background-${e}`),this._backgroundColor=e}ngAfterContentChecked(){const e=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=e){const t=null==this._selectedIndex;if(!t){this.selectedTabChange.emit(this._createChangeEvent(e));const r=this._tabBodyWrapper.nativeElement;r.style.minHeight=r.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((r,l)=>r.isActive=l===e),t||(this.selectedIndexChange.emit(e),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((t,r)=>{t.position=r-e,null!=this._selectedIndex&&0==t.position&&!t.origin&&(t.origin=e-this._selectedIndex)}),this._selectedIndex!==e&&(this._selectedIndex=e,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const e=this._clampTabIndex(this._indexToSelect);if(e===this._selectedIndex){const t=this._tabs.toArray();let r;for(let l=0;l{t[e].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(e))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe(Nt(this._allTabs)).subscribe(e=>{this._tabs.reset(e.filter(t=>t._closestTabGroup===this||!t._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(e){const t=this._tabHeader;t&&(t.focusIndex=e)}_focusChanged(e){this._lastFocusedTabIndex=e,this.focusChange.emit(this._createChangeEvent(e))}_createChangeEvent(e){const t=new pN;return t.index=e,this._tabs&&this._tabs.length&&(t.tab=this._tabs.toArray()[e]),t}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,xi.T)(...this._tabs.map(e=>e._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(e){return Math.min(this._tabs.length-1,Math.max(e||0,0))}_getTabLabelId(e){return`mat-tab-label-${this._groupId}-${e}`}_getTabContentId(e){return`mat-tab-content-${this._groupId}-${e}`}_setTabBodyWrapperHeight(e){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const t=this._tabBodyWrapper.nativeElement;t.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(t.style.height=e+"px")}_removeTabBodyWrapperHeight(){const e=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=e.clientHeight,e.style.height="",this.animationDone.emit()}_handleClick(e,t,r){e.disabled||(this.selectedIndex=t.focusIndex=r)}_getTabIndex(e,t){return e.disabled?null:t===(this._lastFocusedTabIndex??this.selectedIndex)?0:-1}_tabFocusChanged(e,t){e&&"mouse"!==e&&"touch"!==e&&(this._tabHeader.focusIndex=t)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(r1,8),i.Y36(i.QbO,8))},n.\u0275dir=i.lG2({type:n,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",preserveContent:"preserveContent",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[i.qOj]}),n})(),gN=(()=>{class n extends mN{constructor(e,t,r,l){super(e,t,r,l)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(r1,8),i.Y36(i.QbO,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-tab-group"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,t1,5),2&e){let l;i.iGM(l=i.CRH())&&(t._allTabs=l)}},viewQuery:function(e,t){if(1&e&&(i.Gf(q2,5),i.Gf(G2,5)),2&e){let r;i.iGM(r=i.CRH())&&(t._tabBodyWrapper=r.first),i.iGM(r=i.CRH())&&(t._tabHeader=r.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(e,t){2&e&&i.ekj("mat-tab-group-dynamic-height",t.dynamicHeight)("mat-tab-group-inverted-header","below"===t.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[i._Bn([{provide:e1,useExisting:n}]),i.qOj],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","ngClass","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","ngClass","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf","ngIfElse"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering"]],template:function(e,t){1&e&&(i.TgZ(0,"mat-tab-header",0,1),i.NdJ("indexFocused",function(l){return t._focusChanged(l)})("selectFocusedIndex",function(l){return t.selectedIndex=l}),i.YNc(2,J2,5,15,"div",2),i.qZA(),i.TgZ(3,"div",3,4),i.YNc(5,Q2,1,11,"mat-tab-body",5),i.qZA()),2&e&&(i.Q6J("selectedIndex",t.selectedIndex||0)("disableRipple",t.disableRipple)("disablePagination",t.disablePagination),i.xp6(2),i.Q6J("ngForOf",t._tabs),i.xp6(1),i.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode),i.xp6(2),i.Q6J("ngForOf",t._tabs))},dependencies:[w.mk,w.sg,w.O5,Ma,fr,hu,a1,n1,uN],styles:[".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}"],encapsulation:2}),n})(),l1=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[w.ez,ct,Rs,Dr,vt,ep,ct]}),n})(),c1=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),d1=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[c1,Dr,ct,vt,c1,ct]}),n})();const f1=new i.OlP("mat-chips-default-options");let yM=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[Er,{provide:f1,useValue:{separatorKeyCodes:[13]}}],imports:[ct]}),n})(),m1=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[w.ez,hH,kx,AH,ta,TH,Ew,Nl,dw,Qu,ew,Rl,XC,rs,Xy,Ro,BH,gM,wb,tD,TD,Eg,gD,_M,Vs,qu,Uu,Dr,dw,d1,yM,hH,kx,AH,ta,TH,Ew,Nl,dw,Qu,ew,Rl,XC,rs,Xy,Ro,BH,gM,wb,tD,TD,Eg,gD,_M,Vs,qu,Uu,Dr,l1,d1,yM]}),n})();class jN{constructor(s,e){this._document=e;const t=this._textarea=this._document.createElement("textarea"),r=t.style;r.position="fixed",r.top=r.opacity="0",r.left="-999em",t.setAttribute("aria-hidden","true"),t.value=s,t.readOnly=!0,this._document.body.appendChild(t)}copy(){const s=this._textarea;let e=!1;try{if(s){const t=this._document.activeElement;s.select(),s.setSelectionRange(0,s.value.length),e=this._document.execCommand("copy"),t&&t.focus()}}catch{}return e}destroy(){const s=this._textarea;s&&(s.remove(),this._textarea=void 0)}}let YN=(()=>{class n{constructor(e){this._document=e}copy(e){const t=this.beginCopy(e),r=t.copy();return t.destroy(),r}beginCopy(e){return new jN(e,this._document)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),UN=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),zN=(()=>{class n{constructor(e,t,r){this.dialogRef=e,this.data=t,this.clipboard=r}ngOnInit(){this.publication=this.data}close(){this.dialogRef.close()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(nn),i.Y36(ar),i.Y36(YN))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-show-cite-dialog"]],decls:15,vars:10,consts:[[1,"user-theme"],["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-button","",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"div",2),i._uU(5),i.qZA(),i.TgZ(6,"div",3)(7,"button",4),i.NdJ("click",function(){return t.close()}),i._uU(8),i.ALo(9,"translate"),i.qZA(),i.TgZ(10,"button",5),i.NdJ("click",function(){return t.clipboard.copy(t.publication.main)}),i._uU(11),i.ALo(12,"translate"),i.TgZ(13,"mat-icon"),i._uU(14,"content_copy"),i.qZA()()()()),2&e&&(i.xp6(2),i.Oqu(i.lcZ(3,4,"DIALOGS.SHOW_CITE.TITLE")),i.xp6(3),i.hij(" ",t.publication.main," "),i.xp6(3),i.hij(" ",i.lcZ(9,6,"DIALOGS.SHOW_CITE.CANCEL")," "),i.xp6(3),i.hij(" ",i.lcZ(12,8,"DIALOGS.SHOW_CITE.COPY")," "))},dependencies:[It,ki,Rn,Yn,vn,tt]}),n})(),Lw=(()=>{class n{constructor(e){this.tableCheckboxService=e}transform(e,t,r){return 0!==t&&(function tk(n){return"allObjectCount"in n}(e)?t===e.getData().length:function qN(n){return"_count"in n}(e)?this.tableCheckboxService.isAllSelectedPaginated(e,t,r):this.tableCheckboxService.isAllSelected(t,e,r))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Zp,16))},n.\u0275pipe=i.Yjl({name:"isAllSelected",type:n,pure:!0}),n})(),$g=(()=>{class n{transform(e){const t="SHARED_LIB.PERUN.CHECKBOX_LABEL.";return e?t+"DESELECT_ROW":t+"SELECT_ROW"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"checkboxLabel",type:n,pure:!0}),n})(),Iw=(()=>{class n{transform(e){const t="SHARED_LIB.PERUN.CHECKBOX_LABEL.";return e?t+"DESELECT_ALL":t+"SELECT_ALL"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"masterCheckboxLabel",type:n,pure:!0}),n})(),GN=(()=>{class n{transform(e){const t=[];return e.forEach(r=>t.push(r.firstName+" "+r.lastName)),t.join(", ")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"authorsSeparatedByComma",type:n,pure:!0}),n})();function WN(n,s){if(1&n){const e=i.EpF();i.TgZ(0,"th",21)(1,"mat-checkbox",22),i.NdJ("change",function(r){i.CHM(e);const l=i.oxw(2);return i.KtG(r?l.masterToggle():null)}),i.ALo(2,"translate"),i.ALo(3,"masterCheckboxLabel"),i.qZA()()}if(2&n){const e=i.oxw().ngIf,t=i.oxw();i.xp6(1),i.Q6J("aria-label",i.lcZ(2,3,i.lcZ(3,5,e.all)))("checked",t.selection.hasValue()&&e.all)("indeterminate",t.selection.hasValue()&&!e.all)}}const $N=function(n){return{name:n}};function ZN(n,s){if(1&n){const e=i.EpF();i.TgZ(0,"td",23)(1,"mat-checkbox",24),i.NdJ("change",function(r){const d=i.CHM(e).$implicit,o=i.oxw(2);return i.KtG(r?o.itemSelectionToggle(d):null)})("click",function(r){return r.stopPropagation()}),i.ALo(2,"translate"),i.ALo(3,"checkboxLabel"),i.qZA()()}if(2&n){const e=s.$implicit,t=i.oxw(2);i.xp6(1),i.Q6J("aria-label",i.xi3(2,2,i.lcZ(3,5,t.selection.isSelected(e)),i.VKq(7,$N,e.title)))("checked",t.selection.isSelected(e))}}function JN(n,s){1&n&&(i.ynx(0,18),i.YNc(1,WN,4,7,"th",19),i.YNc(2,ZN,4,9,"td",20),i.BQk())}function QN(n,s){1&n&&(i.TgZ(0,"th",25),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_ID")," "))}function KN(n,s){if(1&n&&(i.TgZ(0,"td",26),i._uU(1),i.qZA()),2&n){const e=s.$implicit;i.xp6(1),i.hij(" ",e.id," ")}}function XN(n,s){1&n&&(i.TgZ(0,"th",25),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_LOCK")," "))}function eF(n,s){if(1&n){const e=i.EpF();i.TgZ(0,"button",28),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit,l=i.oxw();return i.KtG(l.lockOrUnlockPublication(r))})("mouseenter",function(){i.CHM(e);const r=i.oxw(2);return i.KtG(r.buttonPressed=!0)})("mouseleave",function(){i.CHM(e);const r=i.oxw(2);return i.KtG(r.buttonPressed=!1)}),i.ALo(1,"translate"),i.TgZ(2,"mat-icon"),i._uU(3,"lock"),i.qZA()()}if(2&n){const e=i.oxw(2);i.s9C("matTooltip",i.lcZ(1,2,"PUBLICATIONS_LIST.LOCKED")),i.Q6J("disabled",!e.lockAuth)}}function tF(n,s){if(1&n){const e=i.EpF();i.TgZ(0,"button",28),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit,l=i.oxw();return i.KtG(l.lockOrUnlockPublication(r))})("mouseenter",function(){i.CHM(e);const r=i.oxw(2);return i.KtG(r.buttonPressed=!0)})("mouseleave",function(){i.CHM(e);const r=i.oxw(2);return i.KtG(r.buttonPressed=!1)}),i.ALo(1,"translate"),i.TgZ(2,"mat-icon"),i._uU(3,"lock_open"),i.qZA()()}if(2&n){const e=i.oxw(2);i.s9C("matTooltip",i.lcZ(1,2,"PUBLICATIONS_LIST.UNLOCKED")),i.Q6J("disabled",!e.lockAuth)}}function iF(n,s){if(1&n&&(i.TgZ(0,"td",26),i.YNc(1,eF,4,4,"button",27),i.YNc(2,tF,4,4,"button",27),i.qZA()),2&n){const e=s.$implicit;i.xp6(1),i.Q6J("ngIf",e.locked),i.xp6(1),i.Q6J("ngIf",!e.locked)}}function nF(n,s){1&n&&(i.TgZ(0,"th",25),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_TITLE")," "))}function rF(n,s){if(1&n&&(i.TgZ(0,"td",26),i._uU(1),i.qZA()),2&n){const e=s.$implicit;i.xp6(1),i.hij(" ",e.title," ")}}function aF(n,s){1&n&&(i.TgZ(0,"th",25),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_REPORTED_BY")," "))}function sF(n,s){if(1&n&&(i.TgZ(0,"td",26),i._uU(1),i.ALo(2,"authorsSeparatedByComma"),i.qZA()),2&n){const e=s.$implicit;i.xp6(1),i.hij(" ",i.lcZ(2,1,e.authors)," ")}}function oF(n,s){1&n&&(i.TgZ(0,"th",25),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_YEAR")," "))}function lF(n,s){if(1&n&&(i.TgZ(0,"td",26),i._uU(1),i.qZA()),2&n){const e=s.$implicit;i.xp6(1),i.hij(" ",e.year," ")}}function cF(n,s){1&n&&(i.TgZ(0,"th",25),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_CATEGORY")," "))}function dF(n,s){if(1&n&&(i.TgZ(0,"td",26),i._uU(1),i.qZA()),2&n){const e=s.$implicit;i.xp6(1),i.hij(" ",e.categoryName," ")}}function uF(n,s){1&n&&(i.TgZ(0,"th",25),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_THANKEDTO")," "))}function hF(n,s){if(1&n&&(i.TgZ(0,"span"),i._uU(1),i._UZ(2,"br"),i.qZA()),2&n){const e=s.$implicit;i.xp6(1),i.hij(" ",e.ownerName,"")}}function pF(n,s){if(1&n&&(i.TgZ(0,"td",26),i.YNc(1,hF,3,1,"span",29),i.qZA()),2&n){const e=s.$implicit;i.xp6(1),i.Q6J("ngForOf",e.thanks)}}function fF(n,s){1&n&&(i.TgZ(0,"th",30),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_CITE")))}function mF(n,s){if(1&n){const e=i.EpF();i.TgZ(0,"td",26)(1,"button",31),i.NdJ("click",function(){const l=i.CHM(e).$implicit,d=i.oxw();return i.KtG(d.showCite(l))})("mouseenter",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.buttonPressed=!0)})("mouseleave",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.buttonPressed=!1)}),i._uU(2),i.ALo(3,"translate"),i.qZA()()}2&n&&(i.xp6(2),i.hij(" ",i.lcZ(3,1,"PUBLICATIONS_LIST.SHOW_CITE")," "))}function gF(n,s){1&n&&i._UZ(0,"tr",32)}const g1=function(n,s){return[n,s]};function _F(n,s){if(1&n){const e=i.EpF();i.TgZ(0,"tr",33),i.NdJ("click",function(){const l=i.CHM(e).$implicit,d=i.oxw();return i.KtG(d.disabledRouting&&d.openInTab&&!d.buttonPressed?d.emitPublication(l):null)}),i.qZA()}if(2&n){const e=s.$implicit,t=i.oxw();i.ekj("cursor-pointer",!t.disabledRouting||t.openInTab),i.Q6J("perunWebAppsMiddleClickRouterLink",t.disabledRouting||t.buttonPressed?null:i.WLB(4,g1,t.routerPath,e.id))("routerLink",t.disabledRouting||t.buttonPressed?null:i.WLB(7,g1,t.routerPath,e.id))}}function bF(n,s){1&n&&(i.TgZ(0,"perun-web-apps-alert",34),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATIONS_LIST.NO_PUBLICATIONS_FOUND"),"\n"))}const yF=function(n){return{all:n}};let sf=(()=>{class n{constructor(e,t,r,l,d,o){this.tableCheckbox=e,this.cabinetService=t,this.dialog=r,this.notificator=l,this.translate=d,this.authResolver=o,this.selection=new tn(!0,[]),this.displayedColumns=["select","id","lock","title","reportedBy","year","category","thankedTo","cite"],this.pageSizeOptions=Bo,this.disabledRouting=!1,this.openInTab=!1,this.allowAlert=!0,this.publicationSelector=new i.vpe,this.buttonPressed=!1,this.lockAuth=!1,d.get("PUBLICATIONS_LIST.CHANGE_LOCK_SUCCESS").subscribe(a=>this.changeLockMessage=a),d.get("PUBLICATIONS_LIST.LOCKED").subscribe(a=>this.locked=a),d.get("PUBLICATIONS_LIST.UNLOCKED").subscribe(a=>this.unlocked=a),this.lockAuth=this.authResolver.isCabinetAdmin()}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,t){switch(t){case"id":return e.id.toString();case"lock":return String(e.locked);case"title":return e.title;case"reportedBy":{let r="";return e.authors.forEach(l=>r+=l.firstName+" "+l.lastName+";"),r.slice(0,-1)}case"year":return e.year.toString();case"category":return e.categoryName;case"thankedTo":{let r="";return e.thanks.forEach(l=>r+=l.ownerName+";"),r.slice(0,-1)}default:return e[t]}}ngOnChanges(){this.dataSource=new Gl(this.publications),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}exportAllData(e){Ra(ka(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}exportDisplayedData(e){const t=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,r=t+this.dataSource.paginator.pageSize;Ra(ka(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(t,r),this.displayedColumns,n.getDataForColumn),e)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,"",this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}itemSelectionToggle(e){this.selection.toggle(e)}showCite(e){const t=Ni();t.width="500px",t.data=e,this.dialog.open(zN,t)}lockOrUnlockPublication(e){this.cabinetService.lockPublications({publications:[this.createPublication(e)],lock:!e.locked}).subscribe(()=>{this.notificator.showSuccess(e.locked?this.changeLockMessage+this.unlocked:this.changeLockMessage+this.locked),e.locked=!e.locked})}emitPublication(e){this.publicationSelector.emit(e)}setDataSource(){this.dataSource&&(this.dataSource.sortData=(e,t)=>Fs(e,t,n.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}createPublication(e){return{id:e.id,beanName:e.beanName,externalId:e.externalId,publicationSystemId:e.publicationSystemId,categoryId:e.categoryId,createdBy:e.createdBy,createdDate:e.createdDate,doi:e.doi,isbn:e.isbn,locked:e.locked,main:e.main,rank:e.rank,title:e.title,year:e.year}}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Zp),i.Y36(fi),i.Y36(fn),i.Y36(Un),i.Y36(ui),i.Y36(Me))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-publications-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(cs,7),i.Gf(Va,7)),2&e){let r;i.iGM(r=i.CRH())&&(t.child=r.first),i.iGM(r=i.CRH())&&(t.matSort=r.first)}},inputs:{publications:"publications",selection:"selection",displayedColumns:"displayedColumns",tableId:"tableId",pageSizeOptions:"pageSizeOptions",routerPath:"routerPath",disabledRouting:"disabledRouting",openInTab:"openInTab",allowAlert:"allowAlert"},outputs:{publicationSelector:"publicationSelector"},features:[i.TTD],decls:32,vars:14,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","title","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","lock"],["matColumnDef","title"],["matColumnDef","reportedBy"],["matColumnDef","year"],["matColumnDef","category"],["matColumnDef","thankedTo"],["matColumnDef","cite"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"perunWebAppsMiddleClickRouterLink","routerLink","cursor-pointer","click",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-icon-button","",3,"disabled","matTooltip","click","mouseenter","mouseleave",4,"ngIf"],["mat-icon-button","",3,"disabled","matTooltip","click","mouseenter","mouseleave"],[4,"ngFor","ngForOf"],["mat-header-cell",""],["mat-stroked-button","",3,"click","mouseenter","mouseleave"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink","click"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportDisplayedData",function(l){return t.exportDisplayedData(l)})("exportAllData",function(l){return t.exportAllData(l)}),i.TgZ(2,"table",2),i.YNc(3,JN,3,0,"ng-container",3),i.ALo(4,"isAllSelected"),i.ynx(5,4),i.YNc(6,QN,3,3,"th",5),i.YNc(7,KN,2,1,"td",6),i.BQk(),i.ynx(8,7),i.YNc(9,XN,3,3,"th",5),i.YNc(10,iF,3,2,"td",6),i.BQk(),i.ynx(11,8),i.YNc(12,nF,3,3,"th",5),i.YNc(13,rF,2,1,"td",6),i.BQk(),i.ynx(14,9),i.YNc(15,aF,3,3,"th",5),i.YNc(16,sF,3,3,"td",6),i.BQk(),i.ynx(17,10),i.YNc(18,oF,3,3,"th",5),i.YNc(19,lF,2,1,"td",6),i.BQk(),i.ynx(20,11),i.YNc(21,cF,3,3,"th",5),i.YNc(22,dF,2,1,"td",6),i.BQk(),i.ynx(23,12),i.YNc(24,uF,3,3,"th",5),i.YNc(25,pF,2,1,"td",6),i.BQk(),i.ynx(26,13),i.YNc(27,fF,3,3,"th",14),i.YNc(28,mF,4,3,"td",6),i.BQk(),i.YNc(29,gF,1,0,"tr",15),i.YNc(30,_F,1,10,"tr",16),i.qZA()()(),i.YNc(31,bF,3,3,"perun-web-apps-alert",17)),2&e&&(i.Q6J("hidden",0===t.dataSource.filteredData.length||0===t.publications.length),i.xp6(1),i.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),i.xp6(1),i.Q6J("dataSource",t.dataSource),i.xp6(1),i.Q6J("ngIf",i.VKq(12,yF,i.xi3(4,9,t.dataSource,t.selection.selected.length))),i.xp6(26),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns),i.xp6(1),i.Q6J("ngIf",0===t.publications.length&&t.allowAlert))},dependencies:[w.sg,w.O5,It,gd,ki,Vo,Ys,zl,Us,js,No,zs,qs,ql,Fo,Va,af,Ha,bo,na,cs,bD,Px,tt,Lw,$g,Iw,GN],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),n})();function CF(n,s){1&n&&i._UZ(0,"mat-spinner",7)}const wF=function(){return["id","title","year"]};function AF(n,s){if(1&n&&(i.TgZ(0,"div",8),i._uU(1),i.ALo(2,"translate"),i._UZ(3,"perun-web-apps-publications-list",9),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.hij(" ",i.lcZ(2,4,"DIALOGS.REMOVE_PUBLICATION.WARNING")," "),i.xp6(2),i.Q6J("publications",e.publications)("routerPath",null)("displayedColumns",i.DdM(6,wF))}}let CM=(()=>{class n{constructor(e,t,r,l,d){this.dialogRef=e,this.data=t,this.notificator=r,this.translate=l,this.cabinetService=d,this.loading=!1}ngOnInit(){this.publications=this.data}cancel(){this.dialogRef.close()}remove(){this.loading=!0,this.cabinetService.deletePublication(this.publications.pop().id).subscribe(()=>{this.publications.length<=0?this.translate.get("DIALOGS.REMOVE_PUBLICATION.REMOVE_SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.dialogRef.close(!0)}):this.remove()},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(nn),i.Y36(ar),i.Y36(Un),i.Y36(ui),i.Y36(fi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-remove-publication-dialog"]],decls:13,vars:12,consts:[[1,"user-theme"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","","class","dialog-container",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"publications","routerPath","displayedColumns"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.YNc(4,CF,1,0,"mat-spinner",2),i.YNc(5,AF,4,7,"div",3),i.TgZ(6,"div",4)(7,"button",5),i.NdJ("click",function(){return t.cancel()}),i._uU(8),i.ALo(9,"translate"),i.qZA(),i.TgZ(10,"button",6),i.NdJ("click",function(){return t.remove()}),i._uU(11),i.ALo(12,"translate"),i.qZA()()()),2&e&&(i.xp6(2),i.Oqu(i.lcZ(3,6,"DIALOGS.REMOVE_PUBLICATION.TITLE")),i.xp6(2),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading),i.xp6(3),i.hij(" ",i.lcZ(9,8,"DIALOGS.REMOVE_PUBLICATION.CANCEL")," "),i.xp6(2),i.Q6J("disabled",t.loading),i.xp6(1),i.hij(" ",i.lcZ(12,10,"DIALOGS.REMOVE_PUBLICATION.REMOVE")," "))},dependencies:[w.O5,It,Rn,Yn,vn,Mi,sf,tt]}),n})(),lf=(()=>{class n{constructor(){this.refresh=new i.vpe}onClickbutton(e){this.refresh.emit(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-refresh-button"]],inputs:{disabled:"disabled"},outputs:{refresh:"refresh"},decls:3,vars:5,consts:[["mat-stroked-button","","data-cy","refresh-button",1,"mr-2",3,"disabled","matTooltip","click"],[1,"center-icon","perun-icon",3,"svgIcon"]],template:function(e,t){1&e&&(i.TgZ(0,"button",0),i.NdJ("click",function(l){return t.onClickbutton(l)}),i.ALo(1,"translate"),i._UZ(2,"mat-icon",1),i.qZA()),2&e&&(i.s9C("matTooltip",i.lcZ(1,3,"SHARED_LIB.PERUN.REFRESH_BUTTON")),i.Q6J("disabled",t.disabled),i.xp6(2),i.s9C("svgIcon",t.disabled?"perun-refresh-disabled":"perun-refresh-enabled"))},dependencies:[ki,It,Ha,tt],styles:[".center-icon[_ngcontent-%COMP%]{display:inline-flex}.perun-icon[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{fill:currentColor}.perun-icon[_ngcontent-%COMP%] rect[_ngcontent-%COMP%]{fill:currentColor}.perun-icon[_ngcontent-%COMP%] polygon[_ngcontent-%COMP%]{fill:currentColor}"]}),n})();var cf=x(5439);const rh=cf||x.t(cf,2),_1=new i.OlP("MAT_MOMENT_DATE_ADAPTER_OPTIONS",{providedIn:"root",factory:function TF(){return{useUtc:!1}}});function xF(n,s){const e=Array(n);for(let t=0;t{class n extends ei{constructor(e,t){super(),this._options=t,this.setLocale(e||rh.locale())}setLocale(e){super.setLocale(e);let t=rh.localeData(e);this._localeData={firstDayOfWeek:t.firstDayOfWeek(),longMonths:t.months(),shortMonths:t.monthsShort(),dates:xF(31,r=>this.createDate(2017,0,r+1).format("D")),longDaysOfWeek:t.weekdays(),shortDaysOfWeek:t.weekdaysShort(),narrowDaysOfWeek:t.weekdaysMin()}}getYear(e){return this.clone(e).year()}getMonth(e){return this.clone(e).month()}getDate(e){return this.clone(e).date()}getDayOfWeek(e){return this.clone(e).day()}getMonthNames(e){return"long"==e?this._localeData.longMonths:this._localeData.shortMonths}getDateNames(){return this._localeData.dates}getDayOfWeekNames(e){return"long"==e?this._localeData.longDaysOfWeek:"short"==e?this._localeData.shortDaysOfWeek:this._localeData.narrowDaysOfWeek}getYearName(e){return this.clone(e).format("YYYY")}getFirstDayOfWeek(){return this._localeData.firstDayOfWeek}getNumDaysInMonth(e){return this.clone(e).daysInMonth()}clone(e){return e.clone().locale(this.locale)}createDate(e,t,r){const l=this._createMoment({year:e,month:t,date:r}).locale(this.locale);return l.isValid(),l}today(){return this._createMoment().locale(this.locale)}parse(e,t){return e&&"string"==typeof e?this._createMoment(e,t,this.locale):e?this._createMoment(e).locale(this.locale):null}format(e,t){return e=this.clone(e),this.isValid(e),e.format(t)}addCalendarYears(e,t){return this.clone(e).add({years:t})}addCalendarMonths(e,t){return this.clone(e).add({months:t})}addCalendarDays(e,t){return this.clone(e).add({days:t})}toIso8601(e){return this.clone(e).format()}deserialize(e){let t;if(e instanceof Date)t=this._createMoment(e).locale(this.locale);else if(this.isDateInstance(e))return this.clone(e);if("string"==typeof e){if(!e)return null;t=this._createMoment(e,rh.ISO_8601).locale(this.locale)}return t&&this.isValid(t)?this._createMoment(t).locale(this.locale):super.deserialize(e)}isDateInstance(e){return rh.isMoment(e)}isValid(e){return this.clone(e).isValid()}invalid(){return rh.invalid()}_createMoment(e,t,r){const{strict:l,useUtc:d}=this._options||{};return d?rh.utc(e,t,r,l):rh(e,t,r,l)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Ds,8),i.LFG(_1,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),MF=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[{provide:ei,useClass:Zg,deps:[Ds,_1]}]}),n})(),b1=(()=>{class n{ngOnInit(){this.endMaxYear=new Date,this.startMaxYear=this.endYear.value.toDate(),this.startYear.setValue(null)}chosenYearHandler(e,t,r){e.setValue(t),this.startMaxYear=this.endYear.value.toDate(),this.endMinYear=this.startYear.value?this.startYear.value.toDate():null,r.close()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-year-range"]],inputs:{startYear:"startYear",endYear:"endYear"},decls:16,vars:15,consts:[[1,"year-field","mr-2",3,"click"],["matInput","","readonly","",1,"disable",3,"matDatepicker","max","formControl"],["matSuffix","",3,"for"],["startView","multi-year","panelClass","year-picker",3,"yearSelected"],["sdp",""],["matInput","","readonly","",3,"matDatepicker","min","max","formControl"],["edp",""]],template:function(e,t){if(1&e){const r=i.EpF();i.TgZ(0,"mat-form-field",0),i.NdJ("click",function(){i.CHM(r);const d=i.MAs(7);return i.KtG(d.open())}),i.TgZ(1,"mat-label"),i._uU(2),i.ALo(3,"translate"),i.qZA(),i._UZ(4,"input",1)(5,"mat-datepicker-toggle",2),i.TgZ(6,"mat-datepicker",3,4),i.NdJ("yearSelected",function(d){i.CHM(r);const o=i.MAs(7);return i.KtG(t.chosenYearHandler(t.startYear,d,o))}),i.qZA()(),i.TgZ(8,"mat-form-field",0),i.NdJ("click",function(){i.CHM(r);const d=i.MAs(15);return i.KtG(d.open())}),i.TgZ(9,"mat-label"),i._uU(10),i.ALo(11,"translate"),i.qZA(),i._UZ(12,"input",5)(13,"mat-datepicker-toggle",2),i.TgZ(14,"mat-datepicker",3,6),i.NdJ("yearSelected",function(d){i.CHM(r);const o=i.MAs(15);return i.KtG(t.chosenYearHandler(t.endYear,d,o))}),i.qZA()()}if(2&e){const r=i.MAs(7),l=i.MAs(15);i.xp6(2),i.Oqu(i.lcZ(3,11,"PUBLICATION_FILTER.START_YEAR")),i.xp6(2),i.Q6J("matDatepicker",r)("max",t.startMaxYear)("formControl",t.startYear),i.xp6(1),i.Q6J("for",r),i.xp6(5),i.Oqu(i.lcZ(11,13,"PUBLICATION_FILTER.END_YEAR")),i.xp6(2),i.Q6J("matDatepicker",l)("min",t.endMinYear)("max",t.endMaxYear)("formControl",t.endYear),i.xp6(1),i.Q6J("for",l)}},dependencies:[nr,Pr,fp,La,Nn,Fn,kr,fM,Wg,mM,tt],styles:[".year-field{max-width:95px!important;width:100%!important;min-width:initial!important}.year-picker .mat-calendar-period-button{pointer-events:none}.year-picker .mat-calendar-arrow{display:none}\n"],encapsulation:2}),n})();function SF(n,s){if(1&n&&(i.TgZ(0,"mat-option",12),i._uU(1),i.qZA()),2&n){const e=s.$implicit;i.Q6J("value",e),i.xp6(1),i.hij(" ",e.name," ")}}const wM=cf,EF={parse:{dateInput:"YYYY"},display:{dateInput:"YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}};let AM=(()=>{class n{constructor(e){this.cabinetService=e,this.filteredPublication=new i.vpe,this.title=new Vi(""),this.code=new Vi(""),this.startYear=new Vi(wM()),this.endYear=new Vi(wM())}ngOnInit(){this.title.setValue(""),this.code.setValue(""),this.selectedCategory="no_value",this.cabinetService.getCategories().subscribe(e=>{this.categories=e,this.selectedMode="isbn/issn"})}filter(){const e=this.code.value,t={title:this.title.value,isbnissn:"isbn/issn"===this.selectedMode?e:null,doi:"doi"===this.selectedMode?e:null,category:"no_value"!==this.selectedCategory?this.selectedCategory.id:null,startYear:(0,w.p6)(this.startYear.value?this.startYear.value.toDate():null,"yyyy","en-GB"),endYear:(0,w.p6)(this.endYear.value.toDate(),"yyyy","en-GB")};this.filteredPublication.emit(t)}clearFilter(){this.title.setValue(""),this.code.setValue(""),this.selectedMode="isbn/issn",this.selectedCategory="no_value",this.startYear.setValue(null),this.endYear.setValue(wM()),this.filteredPublication.emit({title:null,isbnissn:null,doi:null,category:null,startYear:null,endYear:null})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(fi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-publication-filter"]],outputs:{filteredPublication:"filteredPublication"},features:[i._Bn([{provide:ei,useClass:Zg,deps:[Ds]},{provide:Sr,useValue:EF}])],decls:38,vars:34,consts:[[1,"mt-2"],[1,"filter-field","mr-2"],["matInput","",3,"formControl","placeholder"],[3,"value","valueChange"],["value","isbn/issn"],["value","doi"],[1,"year-field","mr-2"],["value","no_value"],[3,"value",4,"ngFor","ngForOf"],[3,"startYear","endYear"],["mat-stroked-button","",1,"mr-2",3,"click"],["mat-stroked-button","",3,"click"],[3,"value"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"mat-form-field",1),i._UZ(2,"input",2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"mat-form-field",1)(5,"mat-label"),i._uU(6),i.ALo(7,"translate"),i.qZA(),i.TgZ(8,"mat-select",3),i.NdJ("valueChange",function(l){return t.selectedMode=l}),i.TgZ(9,"mat-option",4),i._uU(10),i.ALo(11,"translate"),i.qZA(),i.TgZ(12,"mat-option",5),i._uU(13),i.ALo(14,"translate"),i.qZA()()(),i.TgZ(15,"mat-form-field",6),i._UZ(16,"input",2),i.ALo(17,"translate"),i.qZA(),i.TgZ(18,"mat-form-field",1)(19,"mat-label"),i._uU(20),i.ALo(21,"translate"),i.qZA(),i.TgZ(22,"mat-select",3),i.NdJ("valueChange",function(l){return t.selectedCategory=l}),i.TgZ(23,"mat-option",7),i._uU(24),i.ALo(25,"translate"),i.qZA(),i.YNc(26,SF,2,2,"mat-option",8),i.qZA()(),i._UZ(27,"perun-web-apps-year-range",9),i.TgZ(28,"button",10),i.NdJ("click",function(){return t.filter()}),i.TgZ(29,"mat-icon"),i._uU(30,"search"),i.qZA(),i._uU(31),i.ALo(32,"translate"),i.qZA(),i.TgZ(33,"button",11),i.NdJ("click",function(){return t.clearFilter()}),i.TgZ(34,"mat-icon"),i._uU(35,"search_off"),i.qZA(),i._uU(36),i.ALo(37,"translate"),i.qZA()()),2&e&&(i.xp6(2),i.s9C("placeholder",i.lcZ(3,16,"PUBLICATION_FILTER.TITLE_PLACEHOLDER")),i.Q6J("formControl",t.title),i.xp6(4),i.Oqu(i.lcZ(7,18,"PUBLICATION_FILTER.SELECT_MODE")),i.xp6(2),i.Q6J("value",t.selectedMode),i.xp6(2),i.Oqu(i.lcZ(11,20,"PUBLICATION_FILTER.ISBN/ISSN")),i.xp6(3),i.Oqu(i.lcZ(14,22,"PUBLICATION_FILTER.DOI")),i.xp6(3),i.s9C("placeholder",i.lcZ(17,24,"PUBLICATION_FILTER.CODE_PLACEHOLDER")),i.Q6J("formControl",t.code),i.xp6(4),i.Oqu(i.lcZ(21,26,"PUBLICATION_FILTER.SELECT_CATEGORY")),i.xp6(2),i.Q6J("value",t.selectedCategory),i.xp6(2),i.Oqu(i.lcZ(25,28,"PUBLICATION_FILTER.NO_CATEGORY_SELECTED")),i.xp6(2),i.Q6J("ngForOf",t.categories),i.xp6(1),i.Q6J("startYear",t.startYear)("endYear",t.endYear),i.xp6(4),i.hij(" ",i.lcZ(32,30,"PUBLICATION_FILTER.FILTER")," "),i.xp6(5),i.hij(" ",i.lcZ(37,32,"PUBLICATION_FILTER.CLEAR_FILTER")," "))},dependencies:[w.sg,It,ki,nr,Pr,La,Nn,Fn,kr,ad,Uc,b1,tt],styles:[".filter-field[_ngcontent-%COMP%]{max-width:250px!important;width:100%!important;min-width:initial!important}.disable[_ngcontent-%COMP%]{cursor:not-allowed;pointer-events:none}.year-field[_ngcontent-%COMP%]{max-width:80px!important;width:100%!important;min-width:initial!important}"]}),n})();function DF(n,s){if(1&n&&i._UZ(0,"perun-web-apps-publications-list",10),2&n){const e=i.oxw();i.Q6J("publications",e.publications)("selection",e.selected)("routerPath","/all-publications")("tableId",e.tableId)}}function HF(n,s){1&n&&i._UZ(0,"mat-spinner",11)}let PF=(()=>{class n{constructor(e,t,r,l,d){this.route=e,this.cabinetService=t,this.dialog=r,this.matIconRegistry=l,this.domSanitizer=d,this.selected=new tn(!0,[]),this.tableId="68",this.filter={title:null,isbnissn:null,doi:null,category:null,startYear:null,endYear:null},this.matIconRegistry.addSvgIcon("publications",this.domSanitizer.bypassSecurityTrustResourceUrl("../../assets/img/publications-dark.svg"))}ngOnInit(){this.refreshTable()}removePublication(){const e=Ni();e.width="500px",e.data=this.selected.selected,this.dialog.open(CM,e).afterClosed().subscribe(r=>{r&&this.refreshTable()})}refreshTable(){this.loading=!0,this.selected.clear(),this.cabinetService.findPublicationsByGUIFilter(this.filter.title,this.filter.isbnissn,this.filter.doi,null,null,this.filter.category,+this.filter.startYear,+this.filter.endYear,null).subscribe(e=>{this.publications=e,this.loading=!1})}filterPublication(e){this.filter=e,this.refreshTable()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Jn),i.Y36(fi),i.Y36(fn),i.Y36(Io),i.Y36(Li))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-all-publications-page"]],decls:14,vars:9,consts:[[1,"user-theme"],[1,"page-subtitle","d-flex"],["svgIcon","publications",1,"publications-icon"],[1,"ml-3","mt-1"],[1,"mt-4"],[3,"refresh"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[3,"filteredPublication"],[3,"publications","selection","routerPath","tableId",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"publications","selection","routerPath","tableId"],[1,"ml-auto","mr-auto"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"h1",1),i._UZ(2,"mat-icon",2),i.TgZ(3,"span",3),i._uU(4),i.ALo(5,"translate"),i.qZA()(),i.TgZ(6,"div",4)(7,"perun-web-apps-refresh-button",5),i.NdJ("refresh",function(){return t.refreshTable()}),i.qZA(),i.TgZ(8,"button",6),i.NdJ("click",function(){return t.removePublication()}),i._uU(9),i.ALo(10,"translate"),i.qZA(),i.TgZ(11,"perun-web-apps-publication-filter",7),i.NdJ("filteredPublication",function(l){return t.filterPublication(l)}),i.qZA()(),i.YNc(12,DF,1,4,"perun-web-apps-publications-list",8),i.YNc(13,HF,1,0,"mat-spinner",9),i.qZA()),2&e&&(i.xp6(4),i.Oqu(i.lcZ(5,5,"ALL_PUBLICATIONS.TITLE")),i.xp6(4),i.Q6J("disabled",0===t.selected.selected.length),i.xp6(1),i.hij(" ",i.lcZ(10,7,"ALL_PUBLICATIONS.REMOVE")," "),i.xp6(3),i.Q6J("ngIf",!t.loading),i.xp6(1),i.Q6J("ngIf",t.loading))},dependencies:[w.O5,It,ki,Mi,lf,sf,AM,tt],styles:[".publications-icon[_ngcontent-%COMP%]{height:32px;width:32px}"]}),n})();function kF(n,s){if(1&n&&i._UZ(0,"perun-web-apps-publications-list",11),2&n){const e=i.oxw(2);i.Q6J("publications",e.publications)("selection",e.selected)("tableId",e.tableId)("routerPath","/my-publications")}}function RF(n,s){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"div",6)(2,"perun-web-apps-refresh-button",7),i.NdJ("refresh",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.refreshTable())}),i.qZA(),i.TgZ(3,"button",8),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.removePublication())}),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.TgZ(6,"perun-web-apps-publication-filter",9),i.NdJ("filteredPublication",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.filterPublication(r))}),i.qZA()(),i.YNc(7,kF,1,4,"perun-web-apps-publications-list",10),i.qZA()}if(2&n){const e=i.oxw();i.xp6(3),i.Q6J("disabled",0===e.selected.selected.length),i.xp6(1),i.hij(" ",i.lcZ(5,3,"MY_PUBLICATIONS.REMOVE")," "),i.xp6(3),i.Q6J("ngIf",!e.loading)}}function LF(n,s){1&n&&i._UZ(0,"mat-spinner",12)}let IF=(()=>{class n{constructor(e,t,r,l){this.route=e,this.cabinetService=t,this.dialog=r,this.authResolver=l,this.selected=new tn(!0,[]),this.tableId="68",this.filter={title:null,isbnissn:null,doi:null,category:null,startYear:null,endYear:null}}ngOnInit(){this.initLoading=!0,this.authResolver.getPerunPrincipal().subscribe(e=>{this.authorId=e.userId,this.initLoading=!1,this.refreshTable()})}removePublication(){const e=Ni();e.width="500px",e.data=this.selected.selected,this.dialog.open(CM,e).afterClosed().subscribe(r=>{r&&this.refreshTable()})}refreshTable(){this.loading=!0,this.selected.clear(),this.cabinetService.findPublicationsByGUIFilter(this.filter.title,this.filter.isbnissn,this.filter.doi,null,null,this.filter.category,+this.filter.startYear,+this.filter.endYear,this.authorId).subscribe(e=>{this.publications=e,this.loading=!1})}filterPublication(e){this.filter=e,this.refreshTable()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Jn),i.Y36(fi),i.Y36(fn),i.Y36(Fa))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-my-publications-page"]],decls:9,vars:5,consts:[[1,"user-theme"],[1,"page-subtitle","d-flex"],[1,"title-icon"],[1,"ml-3","mt-1"],[4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[1,"mt-4"],[3,"refresh"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[3,"filteredPublication"],[3,"publications","selection","tableId","routerPath",4,"ngIf"],[3,"publications","selection","tableId","routerPath"],[1,"ml-auto","mr-auto"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"h1",1)(2,"mat-icon",2),i._uU(3,"local_library"),i.qZA(),i.TgZ(4,"span",3),i._uU(5),i.ALo(6,"translate"),i.qZA()(),i.YNc(7,RF,8,5,"div",4),i.YNc(8,LF,1,0,"mat-spinner",5),i.qZA()),2&e&&(i.xp6(5),i.Oqu(i.lcZ(6,3,"MY_PUBLICATIONS.TITLE")),i.xp6(2),i.Q6J("ngIf",!t.initLoading),i.xp6(1),i.Q6J("ngIf",t.loading||t.initLoading))},dependencies:[w.O5,It,ki,Mi,lf,sf,AM,tt]}),n})(),OF=(()=>{class n{constructor(e){this.router=e}importPublications(){this.router.navigate(["create-publication","import"],{queryParamsHandling:"preserve"})}createPublication(){this.router.navigate(["create-publication","create"],{queryParamsHandling:"preserve"})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ji))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-create-publication-page"]],decls:32,vars:21,consts:[[1,"user-theme"],[1,"page-subtitle","d-flex"],[1,"add-icon","mr-1"],[1,"card-container"],[1,"align-cards"],[1,"mat-elevation-z3","card-height"],[1,"d-flex","flex-column"],["mat-flat-button","","color","accent",1,"align-self-end","action-button",3,"click"],["mat-flat-button","","color","accent",1,"align-self-end","action-button","create-button",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"h1",1)(2,"span")(3,"mat-icon",2),i._uU(4,"add_box"),i.qZA(),i._uU(5),i.ALo(6,"translate"),i.qZA()(),i.TgZ(7,"div",3)(8,"div",4)(9,"mat-card",5)(10,"mat-card-title"),i._uU(11),i.ALo(12,"translate"),i.qZA(),i.TgZ(13,"mat-card-content",6)(14,"div"),i._uU(15),i.ALo(16,"translate"),i.qZA(),i.TgZ(17,"button",7),i.NdJ("click",function(){return t.importPublications()}),i._uU(18),i.ALo(19,"translate"),i.qZA()()()(),i.TgZ(20,"div",4)(21,"mat-card",5)(22,"mat-card-title"),i._uU(23),i.ALo(24,"translate"),i.qZA(),i.TgZ(25,"mat-card-content",6)(26,"div"),i._uU(27),i.ALo(28,"translate"),i.qZA(),i.TgZ(29,"button",8),i.NdJ("click",function(){return t.createPublication()}),i._uU(30),i.ALo(31,"translate"),i.qZA()()()()()()),2&e&&(i.xp6(5),i.hij(" ",i.lcZ(6,7,"CREATE_PUBLICATION.TITLE")," "),i.xp6(6),i.hij(" ",i.lcZ(12,9,"CREATE_PUBLICATION.IMPORT_TITLE")," "),i.xp6(4),i.hij(" ",i.lcZ(16,11,"CREATE_PUBLICATION.IMPORT_HINT")," "),i.xp6(3),i.hij(" ",i.lcZ(19,13,"CREATE_PUBLICATION.IMPORT")," "),i.xp6(5),i.hij(" ",i.lcZ(24,15,"CREATE_PUBLICATION.CREATE_TITLE")," "),i.xp6(4),i.hij(" ",i.lcZ(28,17,"CREATE_PUBLICATION.CREATE_HINT")," "),i.xp6(3),i.hij(" ",i.lcZ(31,19,"CREATE_PUBLICATION.CREATE")," "))},dependencies:[uH,cH,dH,It,ki,tt],styles:[".add-icon[_ngcontent-%COMP%]{font-size:32px;vertical-align:text-top}.card-container[_ngcontent-%COMP%]{margin:0 -1rem}.align-cards[_ngcontent-%COMP%]{margin:1rem;display:inline-block;vertical-align:top;max-width:250px;max-height:200px}.card-height[_ngcontent-%COMP%]{height:200px}.create-button[_ngcontent-%COMP%]{display:flex;margin-top:21px}"]}),n})();const BF=["input"];let VF=(()=>{class n{constructor(){this.autoFocus=!1,this.control=new ag,this.filter=new i.vpe}ngOnInit(){this.autoFocus&&this.input.nativeElement.focus(),Aa(this.input.nativeElement,"keyup").pipe((0,mt.U)(e=>e.target.value),(0,Bc.b)(500),Ms()).subscribe(e=>{this.control.invalid||this.filter.emit(e)})}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-debounce-filter"]],viewQuery:function(e,t){if(1&e&&i.Gf(BF,7),2&e){let r;i.iGM(r=i.CRH())&&(t.input=r.first)}},inputs:{placeholder:"placeholder",autoFocus:"autoFocus",control:"control",error:"error"},outputs:{filter:"filter"},decls:6,vars:5,consts:[[1,"filter-field","mr-2"],["matInput","","data-cy","filter-input",3,"placeholder","formControl"],["input",""]],template:function(e,t){1&e&&(i.TgZ(0,"mat-form-field",0),i._UZ(1,"input",1,2),i.ALo(3,"translate"),i.TgZ(4,"mat-error"),i._uU(5),i.qZA()()),2&e&&(i.xp6(1),i.s9C("placeholder",i.lcZ(3,3,t.placeholder)),i.Q6J("formControl",t.control),i.xp6(4),i.hij(" ",t.error," "))},dependencies:[Nn,Fn,Da,nr,kr,La,tt],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:auto!important}"]}),n})(),vM=(()=>{class n{transform(e){return[e.titleBefore,e.firstName,e.middleName,e.lastName,e.titleAfter].join(" ")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"userFullName",type:n,pure:!0}),n})();function NF(n,s){if(1&n){const e=i.EpF();i.TgZ(0,"mat-checkbox",20),i.NdJ("change",function(r){i.CHM(e);const l=i.oxw(3);return i.KtG(r?l.masterToggle():null)}),i.ALo(1,"translate"),i.ALo(2,"masterCheckboxLabel"),i.qZA()}if(2&n){const e=i.oxw(2).ngIf,t=i.oxw();i.Q6J("aria-label",i.lcZ(1,3,i.lcZ(2,5,e.all)))("checked",t.selection.hasValue()&&e.all)("indeterminate",t.selection.hasValue()&&!e.all)}}function FF(n,s){if(1&n&&(i.TgZ(0,"th",18),i.YNc(1,NF,3,7,"mat-checkbox",19),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Q6J("ngIf",e.selection.isMultipleSelection())}}const jF=function(n){return{name:n}};function YF(n,s){if(1&n){const e=i.EpF();i.TgZ(0,"td",21)(1,"mat-checkbox",22),i.NdJ("change",function(r){const d=i.CHM(e).$implicit,o=i.oxw(2);return i.KtG(r?o.selection.toggle(d):null)})("click",function(r){return r.stopPropagation()}),i.ALo(2,"translate"),i.ALo(3,"checkboxLabel"),i.ALo(4,"userFullName"),i.qZA()()}if(2&n){const e=s.$implicit,t=i.oxw(2);i.xp6(1),i.Q6J("aria-label",i.xi3(2,2,i.lcZ(3,5,t.selection.isSelected(e)),i.VKq(9,jF,i.lcZ(4,7,e))))("checked",t.selection.isSelected(e))}}function UF(n,s){1&n&&(i.ynx(0,15),i.YNc(1,FF,2,1,"th",16),i.YNc(2,YF,5,11,"td",17),i.BQk())}function zF(n,s){1&n&&(i.TgZ(0,"th",23),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"AUTHORS_LIST.ID")))}function qF(n,s){if(1&n&&(i.TgZ(0,"td",24),i._uU(1),i.qZA()),2&n){const e=s.$implicit;i.xp6(1),i.Oqu(e.id)}}function GF(n,s){1&n&&(i.TgZ(0,"th",23),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"AUTHORS_LIST.NAME")," "))}function WF(n,s){if(1&n&&(i.TgZ(0,"td",25),i._uU(1),i.ALo(2,"userFullName"),i.qZA()),2&n){const e=s.$implicit;i.xp6(1),i.Oqu(i.lcZ(2,1,e))}}function $F(n,s){1&n&&(i.TgZ(0,"th",23),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"AUTHORS_LIST.ORGANIZATION")," "))}function ZF(n,s){if(1&n&&(i.TgZ(0,"td",25),i._uU(1),i.qZA()),2&n){const e=s.$implicit,t=i.oxw();i.xp6(1),i.Oqu(t.parseAttribute(e,"organization"))}}function JF(n,s){1&n&&(i.TgZ(0,"th",23),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"AUTHORS_LIST.EMAIL")," "))}function QF(n,s){if(1&n&&(i.TgZ(0,"td",25),i._uU(1),i.qZA()),2&n){const e=s.$implicit,t=i.oxw();i.xp6(1),i.Oqu(t.parseAttribute(e,"preferredMail"))}}function KF(n,s){1&n&&(i.TgZ(0,"th",23),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"AUTHORS_LIST.NUMBER_OF_PUBLICATIONS")," "))}function XF(n,s){if(1&n&&(i.TgZ(0,"td",25),i._uU(1),i.qZA()),2&n){const e=s.$implicit;i.xp6(1),i.Oqu(e.authorships.length.toString())}}function ej(n,s){1&n&&i._UZ(0,"tr",26)}const y1=function(n){return["/authors",n]};function tj(n,s){if(1&n&&i._UZ(0,"tr",27),2&n){const e=s.$implicit,t=i.oxw();i.ekj("cursor-pointer",!t.disableRouting),i.Q6J("perunWebAppsMiddleClickRouterLink",t.disableRouting?null:i.VKq(4,y1,e.id))("routerLink",t.disableRouting?null:i.VKq(6,y1,e.id))}}function ij(n,s){1&n&&(i.TgZ(0,"perun-web-apps-alert",28),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function nj(n,s){1&n&&(i.TgZ(0,"perun-web-apps-alert",28),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"AUTHORS_LIST.NO_AUTHORS"),"\n"))}const rj=function(n){return{all:n}};let TM=(()=>{class n{constructor(e){this.tableCheckbox=e,this.authors=[],this.displayedColumns=["select","id","name","organization","email","numberOfPublications"],this.disableRouting=!1,this.selection=new tn(!0,[]),this.pageSizeOptions=Bo}set matSort(e){this.sort=e,this.setDataSource()}static getFilterDataForColumn(e,t){switch(t){case"id":return e.id.toString();case"name":return function zp(n){let s="";return null!==n.firstName&&(s+=n.firstName+" "),null!==n.middleName&&(s+=n.middleName+" "),null!==n.lastName&&(s+=n.lastName+" "),s.endsWith(" ")&&(s=s.substring(0,s.length-1)),s}(e);case"organization":return Ku(e.attributes,"organization");case"email":return Ku(e.attributes,"preferredMail");case"numberOfPublications":return e.authorships.length.toString();default:return e[t]}}static getExportDataForColumn(e,t){switch(t){case"id":return e.id.toString();case"name":return function kC(n){let s="";return null!==n.titleBefore&&(s+=n.titleBefore+" "),null!==n.firstName&&(s+=n.firstName+" "),null!==n.middleName&&(s+=n.middleName+" "),null!==n.lastName&&(s+=n.lastName+" "),null!==n.titleAfter&&(s+=n.titleAfter+" "),s.endsWith(" ")&&(s=s.substring(0,s.length-1)),s}(e);case"organization":return Ku(e.attributes,"organization");case"email":return Ku(e.attributes,"preferredMail");case"numberOfPublications":return e.authorships.length.toString();default:return e[t]}}static getSortDataForColumn(e,t){switch(t){case"id":return e.id.toString();case"name":return e.lastName?e.lastName:e.firstName??"";case"organization":return Ku(e.attributes,"organization");case"email":return Ku(e.attributes,"preferredMail");case"numberOfPublications":return e.authorships.length.toString();default:return e[t]}}ngOnChanges(){this.dataSource=new Gl(this.authors),this.setDataSource(),this.dataSource.filter=this.filterValue}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}exportAllData(e){Ra(ka(this.dataSource.filteredData,this.displayedColumns,n.getExportDataForColumn),e)}exportDisplayedData(e){const t=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,r=t+this.dataSource.paginator.pageSize;Ra(ka(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(t,r),this.displayedColumns,n.getExportDataForColumn),e)}parseAttribute(e,t){let r="";return e.attributes&&e.attributes.forEach(l=>{l.friendlyName===t&&(r=l.value)}),r}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>Wp(e,t,this.displayedColumns,n.getFilterDataForColumn),this.dataSource.sortData=(e,t)=>Fs(e,t,n.getSortDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Zp))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-authors-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(cs,7),i.Gf(Va,7)),2&e){let r;i.iGM(r=i.CRH())&&(t.child=r.first),i.iGM(r=i.CRH())&&(t.matSort=r.first)}},inputs:{authors:"authors",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",disableRouting:"disableRouting",reloadTable:"reloadTable",selection:"selection",pageSizeOptions:"pageSizeOptions"},features:[i.TTD],decls:24,vars:15,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","name","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","organization"],["matColumnDef","email"],["matColumnDef","numberOfPublications"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"perunWebAppsMiddleClickRouterLink","routerLink","cursor-pointer",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change",4,"ngIf"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportDisplayedData",function(l){return t.exportDisplayedData(l)})("exportAllData",function(l){return t.exportAllData(l)}),i.TgZ(2,"table",2),i.YNc(3,UF,3,0,"ng-container",3),i.ALo(4,"isAllSelected"),i.ynx(5,4),i.YNc(6,zF,3,3,"th",5),i.YNc(7,qF,2,1,"td",6),i.BQk(),i.ynx(8,7),i.YNc(9,GF,3,3,"th",5),i.YNc(10,WF,3,3,"td",8),i.BQk(),i.ynx(11,9),i.YNc(12,$F,3,3,"th",5),i.YNc(13,ZF,2,1,"td",8),i.BQk(),i.ynx(14,10),i.YNc(15,JF,3,3,"th",5),i.YNc(16,QF,2,1,"td",8),i.BQk(),i.ynx(17,11),i.YNc(18,KF,3,3,"th",5),i.YNc(19,XF,2,1,"td",8),i.BQk(),i.YNc(20,ej,1,0,"tr",12),i.YNc(21,tj,1,8,"tr",13),i.qZA()()(),i.YNc(22,ij,3,3,"perun-web-apps-alert",14),i.YNc(23,nj,3,3,"perun-web-apps-alert",14)),2&e&&(i.Q6J("hidden",0===t.authors.length||0===t.dataSource.filteredData.length),i.xp6(1),i.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),i.xp6(1),i.Q6J("dataSource",t.dataSource),i.xp6(1),i.Q6J("ngIf",i.VKq(13,rj,i.xi3(4,10,t.dataSource,t.selection.selected.length))),i.xp6(17),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns),i.xp6(1),i.Q6J("ngIf",0!==t.authors.length&&0===t.dataSource.filteredData.length),i.xp6(1),i.Q6J("ngIf",0===t.authors.length))},dependencies:[w.O5,gd,Vo,Ys,zl,Us,js,No,zs,qs,ql,Fo,Va,af,bo,na,cs,bD,Px,tt,vM,Lw,$g,Iw],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),n})();function aj(n,s){1&n&&i._UZ(0,"mat-spinner",8)}const sj=function(){return["id","name","organization","email","numberOfPublications"]};function oj(n,s){if(1&n&&i._UZ(0,"perun-web-apps-authors-list",9),2&n){const e=i.oxw();i.Q6J("authors",e.authors)("displayedColumns",i.DdM(4,sj))("filterValue",e.filterValue)("tableId",e.tableId)}}let lj=(()=>{class n{constructor(e){this.cabinetService=e,this.filterValue="",this.tableId="67"}ngOnInit(){this.refreshTable()}refreshTable(){this.loading=!0,this.cabinetService.findAllAuthors().subscribe(e=>{this.authors=e,this.loading=!1})}applyFilter(e){this.filterValue=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(fi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-authors-page"]],decls:11,vars:6,consts:[[1,"user-theme"],[1,"page-subtitle","d-flex"],[1,"title-icon"],[1,"ml-3","mt-1"],[3,"refresh"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"authors","displayedColumns","filterValue","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"authors","displayedColumns","filterValue","tableId"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"h1",1)(2,"mat-icon",2),i._uU(3,"assignment_ind"),i.qZA(),i.TgZ(4,"span",3),i._uU(5),i.ALo(6,"translate"),i.qZA()(),i.TgZ(7,"perun-web-apps-refresh-button",4),i.NdJ("refresh",function(){return t.refreshTable()}),i.qZA(),i.TgZ(8,"perun-web-apps-debounce-filter",5),i.NdJ("filter",function(l){return t.applyFilter(l)}),i.qZA(),i.YNc(9,aj,1,0,"mat-spinner",6),i.YNc(10,oj,1,5,"perun-web-apps-authors-list",7),i.qZA()),2&e&&(i.xp6(5),i.Oqu(i.lcZ(6,4,"AUTHORS_PAGE.TITLE")),i.xp6(3),i.Q6J("placeholder","AUTHORS_PAGE.FILTER"),i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},dependencies:[w.O5,ki,Mi,lf,VF,TM,tt]}),n})();function cj(n,s){1&n&&i._UZ(0,"mat-spinner",4)}function dj(n,s){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"div",5)(2,"mat-form-field"),i._UZ(3,"input",6),i.ALo(4,"translate"),i.TgZ(5,"mat-error"),i._uU(6),i.ALo(7,"translate"),i.qZA()(),i.TgZ(8,"mat-form-field"),i._UZ(9,"input",6),i.ALo(10,"translate"),i.TgZ(11,"mat-error"),i._uU(12),i.ALo(13,"translate"),i.qZA()(),i.TgZ(14,"p",7),i._uU(15),i.ALo(16,"translate"),i.qZA()(),i.TgZ(17,"div",8)(18,"button",9),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onCancel())}),i._uU(19),i.ALo(20,"translate"),i.qZA(),i.TgZ(21,"div",10),i.ALo(22,"translate"),i.TgZ(23,"button",11),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onSubmit())}),i._uU(24),i.ALo(25,"translate"),i.qZA()()()()}if(2&n){const e=i.oxw();i.xp6(3),i.s9C("placeholder",i.lcZ(4,12,"DIALOGS.ADD_CATEGORY.NAME")),i.Q6J("formControl",e.nameCtrl),i.xp6(3),i.hij(" ",i.lcZ(7,14,"DIALOGS.ADD_CATEGORY.FILL_NAME")," "),i.xp6(3),i.s9C("placeholder",i.lcZ(10,16,"DIALOGS.ADD_CATEGORY.RANK")),i.Q6J("formControl",e.rankCtrl),i.xp6(3),i.hij(" ",i.lcZ(13,18,"DIALOGS.ADD_CATEGORY.FILL_RANK")," "),i.xp6(3),i.Oqu(i.lcZ(16,20,"DIALOGS.ADD_CATEGORY.RANK_HINT")),i.xp6(4),i.hij(" ",i.lcZ(20,22,"DIALOGS.ADD_CATEGORY.CANCEL")," "),i.xp6(2),i.s9C("matTooltip",i.lcZ(22,24,"DIALOGS.ADD_CATEGORY.TOOLTIP")),i.Q6J("matTooltipDisabled",e.nameCtrl.valid&&e.rankCtrl.valid),i.xp6(2),i.Q6J("disabled",e.nameCtrl.invalid||e.rankCtrl.invalid),i.xp6(1),i.hij(" ",i.lcZ(25,26,"DIALOGS.ADD_CATEGORY.CREATE")," ")}}let uj=(()=>{class n{constructor(e,t,r,l){this.dialogRef=e,this.notificator=t,this.cabinetManagerService=r,this.translate=l,l.get("DIALOGS.ADD_CATEGORY.SUCCESS").subscribe(d=>this.successMessage=d)}ngOnInit(){this.nameCtrl=new Vi("",[Pi.required,Pi.pattern("^[\\w.-]+( [\\w.-]+)*$"),Pi.maxLength(128)]),this.rankCtrl=new Vi(null,[Pi.required,Pi.pattern("^[0-9]+(\\.[0-9])?$")])}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.cabinetManagerService.createCategoryCat({category:{id:0,beanName:"Category",name:this.nameCtrl.value,rank:this.rankCtrl.value}}).subscribe({next:()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},error:()=>this.loading=!1})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(nn),i.Y36(Un),i.Y36(fi),i.Y36(ui))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-add-category-dialog"]],decls:6,vars:5,consts:[[1,"user-theme"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","",3,"placeholder","formControl"],[1,"mt-2"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.YNc(4,cj,1,0,"mat-spinner",2),i.YNc(5,dj,26,28,"div",3),i.qZA()),2&e&&(i.xp6(2),i.Oqu(i.lcZ(3,3,"DIALOGS.ADD_CATEGORY.TITLE")),i.xp6(2),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},dependencies:[w.O5,It,Rn,Yn,vn,Mi,Da,nr,La,Nn,Fn,ls,kr,Ha,tt],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),n})();function hj(n,s){1&n&&i._UZ(0,"mat-spinner",5)}function pj(n,s){1&n&&i._UZ(0,"th",14)}function fj(n,s){if(1&n&&(i.TgZ(0,"td",15),i._uU(1),i.qZA()),2&n){const e=s.$implicit;i.xp6(1),i.Oqu(e.name)}}function mj(n,s){1&n&&i._UZ(0,"tr",16)}function gj(n,s){1&n&&i._UZ(0,"tr",17)}function _j(n,s){if(1&n&&(i.TgZ(0,"div",6)(1,"p"),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"div",7),i._uU(5),i.ALo(6,"translate"),i.qZA(),i.TgZ(7,"table",8),i.ynx(8,9),i.YNc(9,pj,1,0,"th",10),i.YNc(10,fj,2,1,"td",11),i.BQk(),i.YNc(11,mj,1,0,"tr",12),i.YNc(12,gj,1,0,"tr",13),i.qZA()()),2&n){const e=i.oxw();i.xp6(2),i.hij(" ",i.lcZ(3,5,"DIALOGS.REMOVE_CATEGORY.DESCRIPTION")," "),i.xp6(3),i.hij(" ",i.lcZ(6,7,"DIALOGS.REMOVE_CATEGORY.ASK")," "),i.xp6(2),i.Q6J("dataSource",e.dataSource),i.xp6(4),i.Q6J("matHeaderRowDef",e.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",e.displayedColumns)}}function bj(n,s){if(1&n){const e=i.EpF();i.TgZ(0,"div",18)(1,"button",19),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onCancel())}),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"button",20),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onSubmit())}),i._uU(5),i.ALo(6,"translate"),i.qZA()()}if(2&n){const e=i.oxw();i.xp6(2),i.hij(" ",i.lcZ(3,3,"DIALOGS.REMOVE_CATEGORY.CANCEL")," "),i.xp6(2),i.Q6J("disabled",e.loading),i.xp6(1),i.hij(" ",i.lcZ(6,5,"DIALOGS.REMOVE_CATEGORY.DELETE")," ")}}let yj=(()=>{class n{constructor(e,t,r,l,d){this.dialogRef=e,this.data=t,this.notificator=r,this.translate=l,this.cabinetManagerService=d,this.displayedColumns=["name"],this.categories=[]}ngOnInit(){this.dataSource=new Gl(this.data),this.categories=this.data}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.categories.length?this.cabinetManagerService.deleteCategory(this.categories.pop().id).subscribe(()=>{this.onSubmit()},()=>this.loading=!1):this.translate.get("DIALOGS.REMOVE_CATEGORY.SUCCESS").subscribe(e=>{this.loading=!1,this.notificator.showSuccess(e),this.dialogRef.close(!0)})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(nn),i.Y36(ar),i.Y36(Un),i.Y36(ui),i.Y36(fi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-remove-category-dialog"]],decls:7,vars:6,consts:[[1,"user-theme"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-header-row","","class","font-weight-bolder",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.YNc(4,hj,1,0,"mat-spinner",2),i.YNc(5,_j,13,9,"div",3),i.YNc(6,bj,7,7,"div",4),i.qZA()),2&e&&(i.xp6(2),i.Oqu(i.lcZ(3,4,"DIALOGS.REMOVE_CATEGORY.TITLE")),i.xp6(2),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},dependencies:[w.O5,It,Vo,Ys,zl,Us,js,No,zs,qs,ql,Fo,Rn,Yn,vn,Mi,tt]}),n})();function Cj(n,s){if(1&n&&(i._UZ(0,"input",3),i.ALo(1,"translate")),2&n){const e=i.oxw();i.s9C("placeholder",i.lcZ(1,2,e.placeholder)),i.Q6J("formControl",e.formControl)}}function wj(n,s){if(1&n&&(i._UZ(0,"input",4),i.ALo(1,"translate")),2&n){const e=i.oxw();i.s9C("placeholder",i.lcZ(1,2,e.placeholder)),i.Q6J("formControl",e.formControl)}}let Jg=(()=>{class n{constructor(){this.filter=new i.vpe,this.autoFocus=!1,this.formControl=new ag}ngOnInit(){this.formControl.valueChanges.subscribe(e=>{let t=e.trim();t=t.toLowerCase(),this.filter.emit(t)})}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-immediate-filter"]],inputs:{placeholder:"placeholder",autoFocus:"autoFocus"},outputs:{filter:"filter"},decls:3,vars:2,consts:[[1,"filter-field","mr-2"],["matInput","","perunWebAppsAutoFocus","","data-cy","auto-focused-filter",3,"formControl","placeholder",4,"ngIf"],["matInput","","data-cy","unfocused-filter",3,"formControl","placeholder",4,"ngIf"],["matInput","","perunWebAppsAutoFocus","","data-cy","auto-focused-filter",3,"formControl","placeholder"],["matInput","","data-cy","unfocused-filter",3,"formControl","placeholder"]],template:function(e,t){1&e&&(i.TgZ(0,"mat-form-field",0),i.YNc(1,Cj,2,4,"input",1),i.YNc(2,wj,2,4,"input",2),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngIf",t.autoFocus),i.xp6(1),i.Q6J("ngIf",!t.autoFocus))},dependencies:[w.O5,Nn,Fn,nr,kr,La,qL,tt],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:initial!important}"]}),n})();function Aj(n,s){1&n&&i._UZ(0,"mat-spinner",4)}function vj(n,s){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"div",5)(2,"mat-form-field"),i._UZ(3,"input",6),i.ALo(4,"translate"),i.TgZ(5,"mat-error"),i._uU(6),i.ALo(7,"translate"),i.qZA()(),i.TgZ(8,"p",7),i._uU(9),i.ALo(10,"translate"),i.qZA()(),i.TgZ(11,"div",8)(12,"button",9),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onCancel())}),i._uU(13),i.ALo(14,"translate"),i.qZA(),i.TgZ(15,"div",10),i.ALo(16,"translate"),i.TgZ(17,"button",11),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onSubmit())}),i._uU(18),i.ALo(19,"translate"),i.qZA()()()()}if(2&n){const e=i.oxw();i.xp6(3),i.s9C("placeholder",i.lcZ(4,9,"DIALOGS.UPDATE_RANK.RANK")),i.Q6J("formControl",e.rankCtrl),i.xp6(3),i.hij(" ",i.lcZ(7,11,"DIALOGS.UPDATE_RANK.FILL_RANK")," "),i.xp6(3),i.Oqu(i.lcZ(10,13,"DIALOGS.UPDATE_RANK.RANK_HINT")),i.xp6(4),i.hij(" ",i.lcZ(14,15,"DIALOGS.UPDATE_RANK.CANCEL")," "),i.xp6(2),i.s9C("matTooltip",i.lcZ(16,17,"DIALOGS.UPDATE_RANK.TOOLTIP")),i.Q6J("matTooltipDisabled",e.rankCtrl.valid),i.xp6(2),i.Q6J("disabled",e.rankCtrl.invalid),i.xp6(1),i.hij(" ",i.lcZ(19,19,"DIALOGS.UPDATE_RANK.UPDATE")," ")}}let Tj=(()=>{class n{constructor(e,t,r,l,d){this.dialogRef=e,this.data=t,this.notificator=r,this.cabinetManagerService=l,this.translate=d,this.categoryName="",d.get("DIALOGS.UPDATE_RANK.SUCCESS").subscribe(o=>this.successMessage=o)}ngOnInit(){this.categoryName=this.data.name,this.rankCtrl=new Vi(this.data.rank,[Pi.required,Pi.pattern("^[0-9]+(\\.[0-9])?$")])}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.data.rank=this.rankCtrl.value,this.cabinetManagerService.updateCategory({category:this.data}).subscribe({next:()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},error:()=>this.loading=!1})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(nn),i.Y36(ar),i.Y36(Un),i.Y36(fi),i.Y36(ui))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-update-rank-dialog"]],decls:6,vars:6,consts:[[1,"user-theme"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","",3,"placeholder","formControl"],[1,"mt-2"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.YNc(4,Aj,1,0,"mat-spinner",2),i.YNc(5,vj,20,21,"div",3),i.qZA()),2&e&&(i.xp6(2),i.AsE("",i.lcZ(3,4,"DIALOGS.UPDATE_RANK.TITLE"),"",t.categoryName,""),i.xp6(2),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},dependencies:[w.O5,It,Rn,Yn,vn,Mi,Da,nr,La,Nn,Fn,ls,kr,Ha,tt],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),n})();function xj(n,s){1&n&&i._UZ(0,"th",15)}const Mj=function(n){return{name:n}};function Sj(n,s){if(1&n){const e=i.EpF();i.TgZ(0,"td",16)(1,"mat-checkbox",17),i.NdJ("change",function(r){const d=i.CHM(e).$implicit,o=i.oxw();return i.KtG(r?o.itemSelectionToggle(d):null)})("click",function(r){return r.stopPropagation()}),i.ALo(2,"translate"),i.ALo(3,"checkboxLabel"),i.qZA()()}if(2&n){const e=s.$implicit,t=i.oxw();i.xp6(1),i.Q6J("aria-label",i.xi3(2,2,i.lcZ(3,5,t.selection.isSelected(e)),i.VKq(7,Mj,e.name)))("checked",t.selection.isSelected(e))}}function Ej(n,s){1&n&&(i.TgZ(0,"th",18),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"CATEGORIES_LIST.ID")," "))}function Dj(n,s){if(1&n&&(i.TgZ(0,"td",19),i._uU(1),i.qZA()),2&n){const e=s.$implicit;i.xp6(1),i.Oqu(e.id)}}function Hj(n,s){1&n&&(i.TgZ(0,"th",18),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"CATEGORIES_LIST.NAME")," "))}function Pj(n,s){if(1&n&&(i.TgZ(0,"td",20),i._uU(1),i.qZA()),2&n){const e=s.$implicit;i.xp6(1),i.Oqu(e.name)}}function kj(n,s){1&n&&(i.TgZ(0,"th",18),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"CATEGORIES_LIST.RANK")," "))}function Rj(n,s){if(1&n){const e=i.EpF();i.TgZ(0,"button",22),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit,l=i.oxw();return i.KtG(l.updateCategory(r))}),i.TgZ(1,"mat-icon"),i._uU(2,"edit"),i.qZA()()}}function Lj(n,s){if(1&n&&(i.TgZ(0,"td",20),i._uU(1),i.YNc(2,Rj,3,0,"button",21),i.qZA()),2&n){const e=s.$implicit,t=i.oxw();i.xp6(1),i.hij(" ",e.rank," "),i.xp6(1),i.Q6J("ngIf",t.editAuth)}}function Ij(n,s){1&n&&i._UZ(0,"tr",23)}function Oj(n,s){1&n&&i._UZ(0,"tr",24)}function Bj(n,s){1&n&&(i.TgZ(0,"perun-web-apps-alert",25),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"CATEGORIES_PAGE.NO_FILTER_RESULTS"),"\n"))}let Vj=(()=>{class n{constructor(e,t,r,l){this.guiAuthResolver=e,this.tableCheckbox=t,this.dialog=r,this.authResolver=l,this.categories=[],this.selection=new tn(!0,[]),this.displayedColumns=["select","id","name","rank"],this.pageSizeOptions=Bo,this.refreshTable=new i.vpe,this.editAuth=!1}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,t){switch(t){case"id":return e.id.toString();case"name":return e.name;case"rank":return e.rank.toString();default:return e[t]}}ngOnChanges(){this.dataSource=new Gl(this.categories),this.setDataSource(),this.dataSource.filter=this.filterValue}exportAllData(e){Ra(ka(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}exportDisplayedData(e){const t=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,r=t+this.dataSource.paginator.pageSize;Ra(ka(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(t,r),this.displayedColumns,n.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>Wp(e,t,this.displayedColumns,n.getDataForColumn),this.dataSource.sortData=(e,t)=>Fs(e,t,n.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}ngAfterViewInit(){this.editAuth=this.authResolver.isCabinetAdmin(),this.dataSource.paginator=this.child.paginator}itemSelectionToggle(e){this.selection.toggle(e)}updateCategory(e){const t=Ni();t.width="400px",t.data=e,this.dialog.open(Tj,t).afterClosed().subscribe(l=>{l&&this.refreshTable.emit()})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Me),i.Y36(Zp),i.Y36(fn),i.Y36(Me))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-categories-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(cs,7),i.Gf(Va,7)),2&e){let r;i.iGM(r=i.CRH())&&(t.child=r.first),i.iGM(r=i.CRH())&&(t.matSort=r.first)}},inputs:{categories:"categories",selection:"selection",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",pageSizeOptions:"pageSizeOptions"},outputs:{refreshTable:"refreshTable"},features:[i.TTD],decls:18,vars:8,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","name","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","rank"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-icon-button","",3,"click",4,"ngIf"],["mat-icon-button","",3,"click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportDisplayedData",function(l){return t.exportDisplayedData(l)})("exportAllData",function(l){return t.exportAllData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,xj,1,0,"th",4),i.YNc(5,Sj,4,9,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,Ej,3,3,"th",7),i.YNc(8,Dj,2,1,"td",8),i.BQk(),i.ynx(9,9),i.YNc(10,Hj,3,3,"th",7),i.YNc(11,Pj,2,1,"td",10),i.BQk(),i.ynx(12,11),i.YNc(13,kj,3,3,"th",7),i.YNc(14,Lj,3,2,"td",10),i.BQk(),i.YNc(15,Ij,1,0,"tr",12),i.YNc(16,Oj,1,0,"tr",13),i.qZA()()(),i.YNc(17,Bj,3,3,"perun-web-apps-alert",14)),2&e&&(i.Q6J("hidden",0===t.dataSource.filteredData.length||0===t.categories.length),i.xp6(1),i.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),i.xp6(1),i.Q6J("dataSource",t.dataSource),i.xp6(13),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns),i.xp6(1),i.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.categories.length))},dependencies:[w.O5,It,gd,ki,Vo,Ys,zl,Us,js,No,zs,qs,ql,Fo,Va,af,na,cs,tt,$g]}),n})();function Nj(n,s){if(1&n){const e=i.EpF();i.TgZ(0,"button",8),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.addCategory())}),i._uU(1),i.ALo(2,"translate"),i.qZA()}2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"CATEGORIES_PAGE.CREATE")," "))}function Fj(n,s){if(1&n){const e=i.EpF();i.TgZ(0,"button",9),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.removeCategory())}),i._uU(1),i.ALo(2,"translate"),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("disabled",!e.selected.selected.length),i.xp6(1),i.hij(" ",i.lcZ(2,2,"CATEGORIES_PAGE.REMOVE")," ")}}function jj(n,s){1&n&&i._UZ(0,"mat-spinner",10)}const Yj=function(){return["select","id","name","rank"]},Uj=function(){return["name","rank"]};function zj(n,s){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-categories-list",11),i.NdJ("refreshTable",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.refreshTable())}),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("categories",e.categories)("filterValue",e.filterValue)("displayedColumns",e.removeAuth?i.DdM(5,Yj):i.DdM(6,Uj))("tableId",e.tableId)("selection",e.selected)}}let qj=(()=>{class n{constructor(e,t,r){this.cabinetManagerService=e,this.dialog=t,this.guiAuthResolver=r,this.categories=[],this.selected=new tn(!0,[]),this.filterValue="",this.tableId="5"}ngOnInit(){this.setAuth(),this.refreshTable()}setAuth(){this.removeAuth=this.guiAuthResolver.isAuthorized("deleteCategory_Category_policy",[]),this.addAuth=this.guiAuthResolver.isAuthorized("createCategory_Category_policy",[])}refreshTable(){this.loading=!0,this.cabinetManagerService.getCategories().subscribe(e=>{this.categories=e,this.loading=!1})}applyFilter(e){this.filterValue=e}addCategory(){const e=Ni();e.width="400px",e.data={},this.dialog.open(uj,e).afterClosed().subscribe(r=>{r&&this.refreshTable()})}removeCategory(){const e=Ni();e.width="400px",e.data=this.selected.selected,this.dialog.open(yj,e).afterClosed().subscribe(r=>{r&&(this.selected.clear(),this.refreshTable())})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(fi),i.Y36(fn),i.Y36(Me))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-categories-page"]],decls:10,vars:8,consts:[[1,"user-theme"],[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2 action-button",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"categories","filterValue","displayedColumns","tableId","selection","refreshTable",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2","action-button",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"categories","filterValue","displayedColumns","tableId","selection","refreshTable"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"perun-web-apps-refresh-button",2),i.NdJ("refresh",function(){return t.refreshTable()}),i.qZA(),i.YNc(5,Nj,3,3,"button",3),i.YNc(6,Fj,3,4,"button",4),i.TgZ(7,"perun-web-apps-immediate-filter",5),i.NdJ("filter",function(l){return t.applyFilter(l)}),i.qZA(),i.YNc(8,jj,1,0,"mat-spinner",6),i.YNc(9,zj,1,7,"perun-web-apps-categories-list",7),i.qZA()),2&e&&(i.xp6(2),i.Oqu(i.lcZ(3,6,"CATEGORIES_PAGE.TITLE")),i.xp6(3),i.Q6J("ngIf",t.addAuth),i.xp6(1),i.Q6J("ngIf",t.removeAuth),i.xp6(1),i.Q6J("placeholder","CATEGORIES_PAGE.FILTER"),i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",t.categories&&!t.loading))},dependencies:[w.O5,It,Mi,lf,Jg,Vj,tt]}),n})();function Gj(n,s){1&n&&(i.TgZ(0,"th",14),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATION_SYSTEMS_LIST.ID")," "))}function Wj(n,s){if(1&n&&(i.TgZ(0,"td",15),i._uU(1),i.qZA()),2&n){const e=s.$implicit;i.xp6(1),i.Oqu(e.id)}}function $j(n,s){1&n&&(i.TgZ(0,"th",14),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATION_SYSTEMS_LIST.FRIENDLY_NAME")," "))}function Zj(n,s){if(1&n&&(i.TgZ(0,"td",16),i._uU(1),i.qZA()),2&n){const e=s.$implicit;i.xp6(1),i.Oqu(e.friendlyName)}}function Jj(n,s){1&n&&(i.TgZ(0,"th",14),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATION_SYSTEMS_LIST.LOGIN_NAMESPACE")," "))}function Qj(n,s){if(1&n&&(i.TgZ(0,"td",16),i._uU(1),i.qZA()),2&n){const e=s.$implicit;i.xp6(1),i.hij(" ","empty"===e.loginNamespace?"":e.loginNamespace," ")}}function Kj(n,s){1&n&&(i.TgZ(0,"th",14),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATION_SYSTEMS_LIST.URL")," "))}function Xj(n,s){if(1&n&&(i.TgZ(0,"td",16),i._uU(1),i.qZA()),2&n){const e=s.$implicit;i.xp6(1),i.Oqu("empty"===e.url?"":e.url)}}function e3(n,s){1&n&&(i.TgZ(0,"th",14),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATION_SYSTEMS_LIST.TYPE")," "))}function t3(n,s){if(1&n&&(i.TgZ(0,"td",16),i._uU(1),i.qZA()),2&n){const e=s.$implicit;i.xp6(1),i.Oqu("empty"===e.type?"":e.type)}}function n3(n,s){1&n&&i._UZ(0,"tr",17)}function r3(n,s){1&n&&i._UZ(0,"tr",18)}function a3(n,s){1&n&&(i.TgZ(0,"perun-web-apps-alert",19),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}let s3=(()=>{class n{constructor(){this.publicationSystems=[],this.displayedColumns=["id","friendlyName","loginNamespace","url","type"],this.pageSizeOptions=Bo}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,t){switch(t){case"id":return e.id.toString();case"friendlyName":return e.friendlyName;case"url":return e.url;case"loginNamespace":return e.loginNamespace;case"type":return e.type;default:return e[t]}}ngOnChanges(){this.dataSource=new Gl(this.publicationSystems),this.setDataSource(),this.dataSource.filter=this.filterValue}exportAllData(e){Ra(ka(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}exportDisplayedData(e){const t=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,r=t+this.dataSource.paginator.pageSize;Ra(ka(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(t,r),this.displayedColumns,n.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>Wp(e,t,this.displayedColumns,n.getDataForColumn),this.dataSource.sortData=(e,t)=>Fs(e,t,n.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-publication-systems-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(cs,7),i.Gf(Va,7)),2&e){let r;i.iGM(r=i.CRH())&&(t.child=r.first),i.iGM(r=i.CRH())&&(t.matSort=r.first)}},inputs:{publicationSystems:"publicationSystems",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",pageSizeOptions:"pageSizeOptions"},features:[i.TTD],decls:21,vars:8,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","friendlyName"],["mat-cell","",4,"matCellDef"],["matColumnDef","loginNamespace"],["matColumnDef","url"],["matColumnDef","type"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportDisplayedData",function(l){return t.exportDisplayedData(l)})("exportAllData",function(l){return t.exportAllData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,Gj,3,3,"th",4),i.YNc(5,Wj,2,1,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,$j,3,3,"th",4),i.YNc(8,Zj,2,1,"td",7),i.BQk(),i.ynx(9,8),i.YNc(10,Jj,3,3,"th",4),i.YNc(11,Qj,2,1,"td",7),i.BQk(),i.ynx(12,9),i.YNc(13,Kj,3,3,"th",4),i.YNc(14,Xj,2,1,"td",7),i.BQk(),i.ynx(15,10),i.YNc(16,e3,3,3,"th",4),i.YNc(17,t3,2,1,"td",7),i.BQk(),i.YNc(18,n3,1,0,"tr",11),i.YNc(19,r3,1,0,"tr",12),i.qZA()()(),i.YNc(20,a3,3,3,"perun-web-apps-alert",13)),2&e&&(i.Q6J("hidden",0===t.dataSource.filteredData.length||0===t.publicationSystems.length),i.xp6(1),i.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),i.xp6(1),i.Q6J("dataSource",t.dataSource),i.xp6(16),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns),i.xp6(1),i.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.publicationSystems.length))},dependencies:[w.O5,Vo,Ys,zl,Us,js,No,zs,qs,ql,Fo,Va,af,na,cs,tt]}),n})();function o3(n,s){1&n&&i._UZ(0,"mat-spinner",6)}function l3(n,s){if(1&n&&i._UZ(0,"perun-web-apps-publication-systems-list",7),2&n){const e=i.oxw();i.Q6J("publicationSystems",e.publicationSystems)("filterValue",e.filterValue)("tableId",e.tableId)}}let c3=(()=>{class n{constructor(e){this.cabinetManagerService=e,this.publicationSystems=[],this.filterValue="",this.tableId="5"}ngOnInit(){this.refreshTable()}refreshTable(){this.loading=!0,this.cabinetManagerService.getPublicationSystems().subscribe(e=>{this.publicationSystems=e,this.loading=!1})}applyFilter(e){this.filterValue=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(fi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-publication-systems-page"]],decls:8,vars:6,consts:[[1,"user-theme"],[1,"page-subtitle"],[3,"refresh"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"publicationSystems","filterValue","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"publicationSystems","filterValue","tableId"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"perun-web-apps-refresh-button",2),i.NdJ("refresh",function(){return t.refreshTable()}),i.qZA(),i.TgZ(5,"perun-web-apps-immediate-filter",3),i.NdJ("filter",function(l){return t.applyFilter(l)}),i.qZA(),i.YNc(6,o3,1,0,"mat-spinner",4),i.YNc(7,l3,1,3,"perun-web-apps-publication-systems-list",5),i.qZA()),2&e&&(i.xp6(2),i.Oqu(i.lcZ(3,4,"PUBLICATION_SYSTEMS_PAGE.TITLE")),i.xp6(3),i.Q6J("placeholder","PUBLICATION_SYSTEMS_PAGE.FILTER"),i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",t.publicationSystems&&!t.loading))},dependencies:[w.O5,Mi,lf,Jg,s3,tt]}),n})();function d3(n,s){if(1&n&&i._UZ(0,"perun-web-apps-publications-list",11),2&n){const e=i.oxw(2);i.Q6J("publications",e.publications)("selection",e.selected)("tableId",e.tableId)("routerPath","/authors/"+e.author.id+"/publication")}}function u3(n,s){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"h5"),i._uU(2),i.ALo(3,"userFullName"),i.ALo(4,"translate"),i.qZA(),i.TgZ(5,"div",6)(6,"perun-web-apps-refresh-button",7),i.NdJ("refresh",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.refreshTable())}),i.qZA(),i.TgZ(7,"button",8),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.removePublication())}),i._uU(8),i.ALo(9,"translate"),i.qZA(),i.TgZ(10,"perun-web-apps-publication-filter",9),i.NdJ("filteredPublication",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.filterPublication(r))}),i.qZA()(),i.YNc(11,d3,1,4,"perun-web-apps-publications-list",10),i.qZA()}if(2&n){const e=i.oxw();i.xp6(2),i.AsE("",i.lcZ(3,5,e.author),"",i.lcZ(4,7,"AUTHOR_DETAIL.TITLE"),""),i.xp6(5),i.Q6J("disabled",0===e.selected.selected.length),i.xp6(1),i.hij(" ",i.lcZ(9,9,"AUTHOR_DETAIL.REMOVE")," "),i.xp6(3),i.Q6J("ngIf",!e.loading)}}function h3(n,s){1&n&&i._UZ(0,"mat-spinner",12)}let p3=(()=>{class n{constructor(e,t,r,l){this.route=e,this.cabinetService=t,this.userService=r,this.dialog=l,this.selected=new tn(!0,[]),this.tableId="68"}ngOnInit(){this.initLoading=!0,this.route.params.subscribe(e=>{const t=Number(e.authorId);this.userService.getUserById(t).subscribe(r=>{this.author=r,this.initLoading=!1,this.refreshTable()})})}removePublication(){const e=Ni();e.width="500px",e.data=this.selected.selected,this.dialog.open(CM,e).afterClosed().subscribe(r=>{r&&this.refreshTable()})}refreshTable(){this.loading=!0,this.selected.clear(),this.cabinetService.findPublicationsByGUIFilter(null,null,null,null,null,null,null,null,this.author.id).subscribe(e=>{this.publications=e,this.loading=!1})}filterPublication(e){this.loading=!0,this.selected.clear(),this.cabinetService.findPublicationsByGUIFilter(e.title,e.isbnissn,e.doi,null,null,e.category,+e.startYear,+e.endYear,this.author.id).subscribe(t=>{this.publications=t,this.loading=!1})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Jn),i.Y36(fi),i.Y36(on),i.Y36(fn))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-author-detail"]],decls:9,vars:5,consts:[[1,"user-theme"],[1,"page-subtitle","d-flex"],[1,"title-icon"],[1,"ml-3","mt-1"],[4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[1,"mt-3"],[3,"refresh"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[3,"filteredPublication"],[3,"publications","selection","tableId","routerPath",4,"ngIf"],[3,"publications","selection","tableId","routerPath"],[1,"ml-auto","mr-auto"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"h1",1)(2,"mat-icon",2),i._uU(3,"assignment_ind"),i.qZA(),i.TgZ(4,"span",3),i._uU(5),i.ALo(6,"translate"),i.qZA()(),i.YNc(7,u3,12,11,"div",4),i.YNc(8,h3,1,0,"mat-spinner",5),i.qZA()),2&e&&(i.xp6(5),i.Oqu(i.lcZ(6,3,"AUTHORS_PAGE.TITLE")),i.xp6(2),i.Q6J("ngIf",!t.initLoading),i.xp6(1),i.Q6J("ngIf",t.loading||t.initLoading))},dependencies:[w.O5,It,ki,Mi,lf,sf,AM,tt,vM]}),n})();function f3(n,s){1&n&&i._UZ(0,"mat-spinner",2)}function m3(n,s){if(1&n&&(i.TgZ(0,"h3",15),i._uU(1),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Oqu(e.publication.title)}}function g3(n,s){if(1&n){const e=i.EpF();i.TgZ(0,"button",16),i.NdJ("click",function(){i.CHM(e);const r=i.oxw(2);return i.KtG(r.editing=!r.editing)}),i.ALo(1,"translate"),i.TgZ(2,"mat-icon",17),i._uU(3,"edit"),i.qZA()()}2&n&&i.s9C("matTooltip",i.lcZ(1,1,"PUBLICATION_DETAIL.LIST.EDIT"))}function _3(n,s){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATION_DETAIL.LIST.EMPTY_ERROR")," "))}function b3(n,s){if(1&n&&(i.TgZ(0,"mat-form-field",18),i._UZ(1,"textarea",19),i.YNc(2,_3,3,3,"mat-error",1),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Q6J("formControl",e.titleControl),i.xp6(1),i.Q6J("ngIf",e.titleControl.invalid)}}function y3(n,s){if(1&n){const e=i.EpF();i.TgZ(0,"button",20),i.NdJ("click",function(){i.CHM(e);const r=i.oxw(2);return i.KtG(r.save())}),i.ALo(1,"translate"),i.TgZ(2,"mat-icon",17),i._uU(3,"save"),i.qZA()()}if(2&n){const e=i.oxw(2);i.s9C("matTooltip",i.lcZ(1,2,"PUBLICATION_DETAIL.LIST.SAVE")),i.Q6J("disabled",e.titleControl.invalid)}}function C3(n,s){1&n&&i._UZ(0,"th",21)}function w3(n,s){if(1&n&&(i.TgZ(0,"td",22),i._uU(1),i.qZA()),2&n){const e=s.$implicit;i.xp6(1),i.hij("",e.key,":")}}function A3(n,s){1&n&&i._UZ(0,"th",21)}function v3(n,s){if(1&n&&(i.TgZ(0,"span"),i._uU(1),i.TgZ(2,"span",24),i._uU(3),i.ALo(4,"translate"),i.qZA(),i._uU(5),i.TgZ(6,"span",24),i._uU(7),i.ALo(8,"translate"),i.qZA(),i._uU(9),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw(2);i.xp6(1),i.hij(" ",e.value," / "),i.xp6(2),i.hij("",i.lcZ(4,5,"PUBLICATION_DETAIL.LIST.EXT_ID"),":"),i.xp6(2),i.hij(" ",t.publication.externalId," "),i.xp6(2),i.hij("",i.lcZ(8,7,"PUBLICATION_DETAIL.LIST.SYSTEM"),":"),i.xp6(2),i.hij(" ",t.publication.pubSystemName," ")}}function T3(n,s){if(1&n&&(i.TgZ(0,"span"),i._uU(1),i.ALo(2,"date"),i.qZA()),2&n){const e=i.oxw().$implicit;i.xp6(1),i.hij(" ",i.xi3(2,1,e.value,"dd/MM/yyyy")," ")}}function x3(n,s){if(1&n&&(i.TgZ(0,"span"),i._uU(1),i.qZA()),2&n){const e=i.oxw().$implicit;i.xp6(1),i.hij(" ",e.value," ")}}function M3(n,s){if(1&n&&(i.TgZ(0,"span"),i._uU(1),i.qZA()),2&n){const e=i.oxw(3).$implicit;i.xp6(1),i.hij(" ",e.value," ")}}function S3(n,s){if(1&n&&(i.TgZ(0,"span"),i.YNc(1,M3,2,1,"span",1),i.qZA()),2&n){const e=i.oxw(2).$implicit;i.xp6(1),i.Q6J("ngIf","Id / Origin"!==e.key&&"Create date"!==e.key&&"Created by"!==e.key)}}function E3(n,s){1&n&&(i.TgZ(0,"span"),i._uU(1," - "),i.qZA())}function D3(n,s){if(1&n&&(i.TgZ(0,"div"),i.YNc(1,S3,2,1,"span",1),i.YNc(2,E3,2,0,"span",1),i.qZA()),2&n){const e=i.oxw().$implicit;i.xp6(1),i.Q6J("ngIf",null!==e.value&&""!==e.value),i.xp6(1),i.Q6J("ngIf",null===e.value||""===e.value)}}function H3(n,s){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",26),i.NdJ("click",function(){i.CHM(e);const r=i.MAs(7);return i.KtG(r.open())}),i.TgZ(1,"mat-label"),i._uU(2),i.ALo(3,"translate"),i.qZA(),i._UZ(4,"input",27)(5,"mat-datepicker-toggle",28),i.TgZ(6,"mat-datepicker",29,30),i.NdJ("yearSelected",function(r){i.CHM(e);const l=i.MAs(7),d=i.oxw(4);return i.KtG(d.chosenYearHandler(r,l))}),i.qZA()()}if(2&n){const e=i.MAs(7),t=i.oxw(4);i.xp6(2),i.Oqu(i.lcZ(3,5,"PUBLICATION_DETAIL.LIST.YEAR")),i.xp6(2),i.Q6J("max",t.maxYear)("matDatepicker",e)("formControl",t.yearControl),i.xp6(1),i.Q6J("for",e)}}function P3(n,s){if(1&n&&(i.TgZ(0,"mat-option",33),i._uU(1),i.qZA()),2&n){const e=s.$implicit;i.Q6J("value",e.name),i.xp6(1),i.hij(" ",e.name," ")}}function k3(n,s){if(1&n&&(i.TgZ(0,"mat-form-field")(1,"mat-select",31),i.YNc(2,P3,2,2,"mat-option",32),i.qZA()()),2&n){const e=i.oxw(4);i.xp6(1),i.Q6J("formControl",e.categoryControl),i.xp6(1),i.Q6J("ngForOf",e.categories)}}function R3(n,s){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATION_DETAIL.LIST.RANK_ERROR")," "))}function L3(n,s){if(1&n&&(i.TgZ(0,"mat-form-field"),i._UZ(1,"input",34),i.YNc(2,R3,3,3,"mat-error",1),i.qZA()),2&n){const e=i.oxw(4);i.xp6(1),i.Q6J("formControl",e.rankControl),i.xp6(1),i.Q6J("ngIf",e.rankControl.invalid)}}function I3(n,s){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",18)(1,"input",35),i.NdJ("ngModelChange",function(r){i.CHM(e);const l=i.oxw(4);return i.KtG(l.publication.isbn=r)}),i.qZA()()}if(2&n){const e=i.oxw(4);i.xp6(1),i.Q6J("ngModel",e.publication.isbn)}}function O3(n,s){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",18)(1,"input",35),i.NdJ("ngModelChange",function(r){i.CHM(e);const l=i.oxw(4);return i.KtG(l.publication.doi=r)}),i.qZA()()}if(2&n){const e=i.oxw(4);i.xp6(1),i.Q6J("ngModel",e.publication.doi)}}function B3(n,s){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",18)(1,"textarea",36),i.NdJ("ngModelChange",function(r){i.CHM(e);const l=i.oxw(4);return i.KtG(l.publication.main=r)}),i.qZA()()}if(2&n){const e=i.oxw(4);i.xp6(1),i.Q6J("ngModel",e.publication.main)}}function V3(n,s){if(1&n&&(i.TgZ(0,"div"),i.YNc(1,H3,8,7,"mat-form-field",25),i.YNc(2,k3,3,2,"mat-form-field",1),i.YNc(3,L3,3,2,"mat-form-field",1),i.YNc(4,I3,2,1,"mat-form-field",6),i.YNc(5,O3,2,1,"mat-form-field",6),i.YNc(6,B3,2,1,"mat-form-field",6),i.qZA()),2&n){const e=i.oxw().$implicit;i.xp6(1),i.Q6J("ngIf","Year"===e.key),i.xp6(1),i.Q6J("ngIf","Category"===e.key),i.xp6(1),i.Q6J("ngIf","Rank"===e.key),i.xp6(1),i.Q6J("ngIf","ISBN / ISSN"===e.key),i.xp6(1),i.Q6J("ngIf","DOI"===e.key),i.xp6(1),i.Q6J("ngIf","Full cite"===e.key)}}function N3(n,s){if(1&n&&(i.TgZ(0,"td",23),i.YNc(1,v3,10,9,"span",1),i.YNc(2,T3,3,4,"span",1),i.YNc(3,x3,2,1,"span",1),i.YNc(4,D3,3,2,"div",1),i.YNc(5,V3,7,6,"div",1),i.qZA()),2&n){const e=s.$implicit,t=i.oxw(2);i.xp6(1),i.Q6J("ngIf","Id / Origin"===e.key),i.xp6(1),i.Q6J("ngIf","Create date"===e.key),i.xp6(1),i.Q6J("ngIf","Created by"===e.key),i.xp6(1),i.Q6J("ngIf",!t.editing),i.xp6(1),i.Q6J("ngIf",t.editing)}}function F3(n,s){1&n&&i._UZ(0,"tr",37)}function j3(n,s){if(1&n&&(i.TgZ(0,"div")(1,"div",3),i.YNc(2,m3,2,1,"h3",4),i.YNc(3,g3,4,3,"button",5),i.YNc(4,b3,3,2,"mat-form-field",6),i.YNc(5,y3,4,4,"button",7),i.qZA(),i.TgZ(6,"table",8),i.ynx(7,9),i.YNc(8,C3,1,0,"th",10),i.YNc(9,w3,2,1,"td",11),i.BQk(),i.ynx(10,12),i.YNc(11,A3,1,0,"th",10),i.YNc(12,N3,6,5,"td",13),i.BQk(),i.YNc(13,F3,1,0,"tr",14),i.qZA()()),2&n){const e=i.oxw();i.xp6(2),i.Q6J("ngIf",!e.editing),i.xp6(1),i.Q6J("ngIf",!e.editing&&!e.publication.locked&&!e.similarityCheck),i.xp6(1),i.Q6J("ngIf",e.editing),i.xp6(1),i.Q6J("ngIf",e.editing),i.xp6(1),i.Q6J("dataSource",e.dataSource),i.xp6(7),i.Q6J("matRowDefColumns",e.displayedColumns)}}const C1=cf,Y3={parse:{dateInput:"YYYY"},display:{dateInput:"YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}};let U3=(()=>{class n{constructor(e,t,r){this.cabinetService=e,this.notificator=t,this.translate=r,this.categories=[],this.similarityCheck=!1,this.edited=new i.vpe,this.loading=!1,this.dataSource=null,this.displayedColumns=["key","value"],this.map=[],this.editing=!1}ngOnInit(){this.loading=!0,this.keys=["Id / Origin","Year","Category","Rank","ISBN / ISSN","DOI","Full cite","Created by","Create date"],this.values=[this.publication.id.toString(),this.publication.year.toString(),this.publication.categoryName,this.publication.rank.toString(),this.publication.isbn,this.publication.doi,this.publication.main,this.publication.createdBy,this.publication.createdDate];for(let e=0;el.name===this.categoryControl.value).id,t=this.yearControl.value.year();this.cabinetService.updatePublication({publication:{id:this.publication.id,beanName:this.publication.beanName,externalId:this.publication.externalId,publicationSystemId:this.publication.publicationSystemId,title:this.titleControl.value,year:t,main:this.publication.main,isbn:this.publication.isbn,doi:this.publication.doi,categoryId:e,rank:this.rankControl.value,locked:this.publication.locked,createdBy:this.publication.createdBy,createdDate:this.publication.createdDate}}).subscribe({next:()=>{this.translate.get("PUBLICATION_DETAIL.CHANGE_PUBLICATION_SUCCESS").subscribe(l=>{this.notificator.showSuccess(l),this.edited.emit(!0),this.loading=!1})},error:()=>this.loading=!1})}chosenYearHandler(e,t){const r=this.yearControl.value;r.year(e.year()),this.yearControl.setValue(r),t.close()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(fi),i.Y36(Un),i.Y36(ui))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-publication-detail-list"]],inputs:{publication:"publication",categories:"categories",similarityCheck:"similarityCheck"},outputs:{edited:"edited"},features:[i._Bn([{provide:ei,useClass:Zg,deps:[Ds]},{provide:Sr,useValue:Y3}])],decls:3,vars:2,consts:[["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"d-flex"],["class","bigger-font w-75 mr-2",4,"ngIf"],["class","ml-auto","mat-icon-button","","matTooltipPosition","above",3,"matTooltip","click",4,"ngIf"],["class","w-75",4,"ngIf"],["class","ml-auto","mat-icon-button","","matTooltipPosition","above",3,"disabled","matTooltip","click",4,"ngIf"],["mat-table","",1,"w-100","layout",3,"dataSource"],["matColumnDef","key"],["mat-header-cell","",4,"matHeaderCellDef"],["class","font-weight-bold","mat-cell","",4,"matCellDef"],["matColumnDef","value"],["mat-cell","",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"bigger-font","w-75","mr-2"],["mat-icon-button","","matTooltipPosition","above",1,"ml-auto",3,"matTooltip","click"],[1,"big-icon"],[1,"w-75"],["matInput","",1,"bigger-font","fix-height",3,"formControl"],["mat-icon-button","","matTooltipPosition","above",1,"ml-auto",3,"disabled","matTooltip","click"],["mat-header-cell",""],["mat-cell","",1,"font-weight-bold"],["mat-cell",""],[1,"bold"],["class","mr-2",3,"click",4,"ngIf"],[1,"mr-2",3,"click"],["matInput","","readonly","",1,"disable",3,"max","matDatepicker","formControl"],["matSuffix","",3,"for"],["startView","multi-year",3,"yearSelected"],["sdp",""],[3,"formControl"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["matInput","",3,"formControl"],["matInput","",3,"ngModel","ngModelChange"],["matInput","",1,"fix-height",3,"ngModel","ngModelChange"],["mat-row",""]],template:function(e,t){1&e&&(i.TgZ(0,"div"),i.YNc(1,f3,1,0,"mat-spinner",0),i.YNc(2,j3,14,6,"div",1),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},dependencies:[w.sg,w.O5,It,ki,Vo,Ys,Us,js,No,zs,qs,Fo,Mi,Da,nr,Pr,fp,La,Nn,Fn,id,kr,fM,Wg,mM,Ha,ad,Uc,w.uU,tt],styles:[".disable[_ngcontent-%COMP%]{cursor:not-allowed;pointer-events:none}.bigger-font[_ngcontent-%COMP%]{font-size:1.5rem}.bold[_ngcontent-%COMP%]{font-weight:700}.big-icon[_ngcontent-%COMP%]{font-size:40px}.fix-height[_ngcontent-%COMP%]{min-height:6ch}.layout[_ngcontent-%COMP%]{table-layout:fixed}"]}),n})();const z3=function(){return["select","id","name","organization","email"]};function q3(n,s){if(1&n&&i._UZ(0,"perun-web-apps-authors-list",13),2&n){const e=i.oxw(3);i.Q6J("authors",e.authors)("selection",e.selection)("disableRouting",!0)("tableId",e.tableIdAuthors)("displayedColumns",i.DdM(5,z3))}}function G3(n,s){1&n&&(i.TgZ(0,"perun-web-apps-alert",14),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"DIALOGS.ADD_AUTHORS.SEARCH_INFO")," "))}function W3(n,s){if(1&n&&(i.TgZ(0,"div"),i.YNc(1,q3,1,6,"perun-web-apps-authors-list",11),i.YNc(2,G3,3,3,"perun-web-apps-alert",12),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Q6J("ngIf",e.firstSearchDone),i.xp6(1),i.Q6J("ngIf",!e.firstSearchDone)}}function $3(n,s){1&n&&i._UZ(0,"mat-spinner",15)}function Z3(n,s){if(1&n&&(i.TgZ(0,"div"),i.YNc(1,W3,3,2,"div",6),i.YNc(2,$3,1,0,"mat-spinner",7),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Q6J("ngIf",!e.searchLoading),i.xp6(1),i.Q6J("ngIf",e.searchLoading)}}function J3(n,s){1&n&&i._UZ(0,"mat-spinner",15)}let Q3=(()=>{class n{constructor(e,t,r,l,d){this.dialogRef=e,this.data=t,this.notificator=r,this.cabinetService=l,this.translate=d,this.searchControl=new Vi(""),this.loading=!1,this.searchLoading=!1,this.firstSearchDone=!1,this.authors=[],this.alreadyAddedAuthors=[],this.tableIdAuthors="67",this.selection=new tn(!0,[]),d.get("DIALOGS.ADD_AUTHORS.SUCCESS_MESSAGE").subscribe(o=>this.successMessage=o),this.publicationId=t.publicationId,this.alreadyAddedAuthors=t.alreadyAddedAuthors}ngOnInit(){this.searchControl=new Vi("",[Pi.required,Pi.pattern(".*[\\S]+.*")])}onSearchByString(){!this.searchLoading&&""!==this.searchControl.value.trim()&&(this.searchLoading=!0,this.cabinetService.findNewAuthors(this.searchControl.value).subscribe({next:e=>{e=e.filter(t=>!this.alreadyAddedAuthors.map(r=>r.id).includes(t.id)),this.authors=e,this.firstSearchDone=!0,this.searchLoading=!1},error:()=>{this.searchLoading=!1}}))}onAdd(){if(this.loading=!0,this.selection.selected.length){const e=this.selection.selected.pop();this.cabinetService.createAutorship({authorship:{id:0,beanName:"Authorship",publicationId:this.publicationId,userId:e.id}}).subscribe({next:()=>{this.onAdd()},error:()=>this.loading=!1})}else this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)}onCancel(){this.dialogRef.close(!1)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(nn),i.Y36(ar),i.Y36(Un),i.Y36(fi),i.Y36(ui))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-add-authors-dialog"]],decls:24,vars:20,consts:[[1,"user-theme"],["mat-dialog-title",""],["mat-dialog-content",""],[1,"mr-2","adjust-width"],["matInput","","autocomplete","false",3,"placeholder","formControl","keyup.enter"],["mat-flat-button","","color","accent",1,"mr-2",3,"disabled","click"],[4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[3,"authors","selection","disableRouting","tableId","displayedColumns",4,"ngIf"],["alert_type","info",4,"ngIf"],[3,"authors","selection","disableRouting","tableId","displayedColumns"],["alert_type","info"],[1,"ml-auto","mr-auto"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"div",2)(5,"mat-form-field",3)(6,"label")(7,"input",4),i.NdJ("keyup.enter",function(){return t.onSearchByString()}),i.ALo(8,"translate"),i.qZA()(),i.TgZ(9,"mat-error"),i._uU(10),i.ALo(11,"translate"),i.qZA()(),i.TgZ(12,"button",5),i.NdJ("click",function(){return t.onSearchByString()}),i.TgZ(13,"mat-icon"),i._uU(14,"search"),i.qZA()(),i.YNc(15,Z3,3,2,"div",6),i.qZA(),i.YNc(16,J3,1,0,"mat-spinner",7),i.TgZ(17,"div",8)(18,"button",9),i.NdJ("click",function(){return t.onCancel()}),i._uU(19),i.ALo(20,"translate"),i.qZA(),i.TgZ(21,"button",10),i.NdJ("click",function(){return t.onAdd()}),i._uU(22),i.ALo(23,"translate"),i.qZA()()()),2&e&&(i.xp6(2),i.Oqu(i.lcZ(3,10,"DIALOGS.ADD_AUTHORS.TITLE")),i.xp6(5),i.s9C("placeholder",i.lcZ(8,12,"DIALOGS.ADD_AUTHORS.SEARCH_PLACEHOLDER")),i.Q6J("formControl",t.searchControl),i.xp6(3),i.hij(" ",i.lcZ(11,14,"DIALOGS.ADD_AUTHORS.EMPTY_SEARCH_MESSAGE")," "),i.xp6(2),i.Q6J("disabled",t.searchLoading||""===t.searchControl.value.trim()),i.xp6(3),i.Q6J("ngIf",!t.loading),i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(3),i.hij(" ",i.lcZ(20,16,"DIALOGS.ADD_AUTHORS.CANCEL")," "),i.xp6(2),i.Q6J("disabled",0===t.selection.selected.length||t.loading),i.xp6(1),i.hij(" ",i.lcZ(23,18,"DIALOGS.ADD_AUTHORS.ADD")," "))},dependencies:[w.O5,It,ki,Rn,Yn,vn,Mi,Da,nr,La,Nn,Fn,kr,na,TM,tt],styles:[".top-margin[_ngcontent-%COMP%]{margin-top:15px}.adjust-width[_ngcontent-%COMP%]{width:300px}"]}),n})();function K3(n,s){if(1&n){const e=i.EpF();i.TgZ(0,"button",6),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onAddAuthors())}),i._uU(1),i.ALo(2,"translate"),i.qZA()}2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATION_DETAIL.ADD")," "))}function X3(n,s){if(1&n){const e=i.EpF();i.TgZ(0,"button",7),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onRemoveAuthors())}),i._uU(1),i.ALo(2,"translate"),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("disabled",0===e.selection.selected.length||e.publication.locked),i.xp6(1),i.hij(" ",i.lcZ(2,2,"PUBLICATION_DETAIL.REMOVE")," ")}}function eY(n,s){1&n&&i._UZ(0,"mat-spinner",8)}const tY=function(){return["id","name","organization","email"]},iY=function(){return["select","id","name","organization","email"]};function nY(n,s){if(1&n&&i._UZ(0,"perun-web-apps-authors-list",9),2&n){const e=i.oxw();i.Q6J("authors",e.publication.authors)("selection",e.selection)("filterValue",e.filterValue)("tableId",e.tableId)("disableRouting",e.disableRouting)("displayedColumns",e.publication.locked?i.DdM(6,tY):i.DdM(7,iY))}}let w1=(()=>{class n{constructor(e,t,r,l,d){this.dialog=e,this.cabinetService=t,this.notificator=r,this.translate=l,this.storeService=d,this.selection=new tn(!0,[]),this.disableRouting=!1,this.similarityCheck=!1,this.yourselfAsAnAuthor=new i.vpe,this.filterValue="",this.loading=!1,this.tableId="67"}ngOnInit(){this.refresh()}refresh(){this.loading=!0,this.cabinetService.findAuthorsByPublicationId(this.publication.id).subscribe(e=>{this.yourselfAsAnAuthor.emit(e.some(t=>t.id===this.storeService.getPerunPrincipal().userId)),this.publication.authors=e,this.selection.clear(),this.loading=!1})}onAddAuthors(){const e=Ni();e.width="800px",e.data={publicationId:this.publication.id,alreadyAddedAuthors:this.publication.authors},this.dialog.open(Q3,e).afterClosed().subscribe(r=>{r&&(this.selection.clear(),this.refresh())})}onRemoveAuthors(){const e=Ni();e.width="800px",e.data={items:this.selection.selected.map(r=>`${r.titleBefore?r.titleBefore:""} ${r.firstName?r.firstName:""} ${r.lastName?r.lastName:""} ${r.titleAfter?r.titleAfter:""}`),title:"DIALOGS.REMOVE_AUTHORS.TITLE",description:"DIALOGS.REMOVE_AUTHORS.DESCRIPTION",theme:"user-theme",type:"remove",showAsk:!0},this.dialog.open(Dx,e).afterClosed().subscribe(r=>{r&&this.removeAuthors(this.selection.selected)})}removeAuthors(e){if(this.loading=!0,e.length){const t=e.pop();this.cabinetService.deleteAuthorship(this.publication.id,t.id).subscribe(()=>{this.removeAuthors(e)},()=>this.loading=!1)}else this.notificator.showSuccess(this.translate.instant("DIALOGS.REMOVE_AUTHORS.SUCCESS_MESSAGE")),this.selection.clear(),this.refresh()}applyFilter(e){this.filterValue=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(fn),i.Y36(fi),i.Y36(Un),i.Y36(ui),i.Y36(yn))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-add-authors"]],inputs:{publication:"publication",selection:"selection",disableRouting:"disableRouting",similarityCheck:"similarityCheck"},outputs:{yourselfAsAnAuthor:"yourselfAsAnAuthor"},decls:6,vars:5,consts:[[1,"'user-theme'"],["mat-flat-button","","color","accent","class","mr-2 action-button",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"authors","selection","filterValue","tableId","disableRouting","displayedColumns",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2","action-button",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"authors","selection","filterValue","tableId","disableRouting","displayedColumns"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.YNc(1,K3,3,3,"button",1),i.YNc(2,X3,3,4,"button",2),i.TgZ(3,"perun-web-apps-immediate-filter",3),i.NdJ("filter",function(l){return t.applyFilter(l)}),i.qZA(),i.YNc(4,eY,1,0,"mat-spinner",4),i.YNc(5,nY,1,8,"perun-web-apps-authors-list",5),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngIf",!t.publication.locked),i.xp6(1),i.Q6J("ngIf",!t.publication.locked&&!t.similarityCheck),i.xp6(1),i.Q6J("placeholder","PUBLICATION_DETAIL.FILTER"),i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},dependencies:[w.O5,It,Mi,Jg,TM,tt]}),n})();function rY(n,s){if(1&n){const e=i.EpF();i.TgZ(0,"th",17)(1,"mat-checkbox",18),i.NdJ("change",function(r){i.CHM(e);const l=i.oxw(2);return i.KtG(r?l.masterToggle():null)}),i.ALo(2,"translate"),i.ALo(3,"masterCheckboxLabel"),i.qZA()()}if(2&n){const e=i.oxw().ngIf,t=i.oxw();i.xp6(1),i.Q6J("aria-label",i.lcZ(2,3,i.lcZ(3,5,e.all)))("checked",t.selection.hasValue()&&e.all)("indeterminate",t.selection.hasValue()&&!e.all)}}const aY=function(n){return{name:n}};function sY(n,s){if(1&n){const e=i.EpF();i.TgZ(0,"td",19)(1,"mat-checkbox",20),i.NdJ("change",function(r){const d=i.CHM(e).$implicit,o=i.oxw(2);return i.KtG(r?o.selection.toggle(d):null)})("click",function(r){return r.stopPropagation()}),i.ALo(2,"translate"),i.ALo(3,"checkboxLabel"),i.qZA()()}if(2&n){const e=s.$implicit,t=i.oxw(2);i.xp6(1),i.Q6J("aria-label",i.xi3(2,2,i.lcZ(3,5,t.selection.isSelected(e)),i.VKq(7,aY,e.name)))("checked",t.selection.isSelected(e))}}function oY(n,s){1&n&&(i.ynx(0,14),i.YNc(1,rY,4,7,"th",15),i.YNc(2,sY,4,9,"td",16),i.BQk())}function lY(n,s){1&n&&(i.TgZ(0,"th",21),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.ID")," "))}function cY(n,s){if(1&n&&(i.TgZ(0,"td",22),i._uU(1),i.qZA()),2&n){const e=s.$implicit;i.xp6(1),i.hij(" ",e.id," ")}}function dY(n,s){1&n&&(i.TgZ(0,"th",21),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NAME")," "))}function uY(n,s){if(1&n&&(i.TgZ(0,"td",23),i._uU(1),i.qZA()),2&n){const e=s.$implicit;i.uIk("data-cy",e.name),i.xp6(1),i.Oqu(e.name)}}function hY(n,s){1&n&&(i.TgZ(0,"th",21),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.CONTACT")," "))}function pY(n,s){if(1&n&&(i.TgZ(0,"td",23),i._uU(1),i.qZA()),2&n){const e=s.$implicit;i.xp6(1),i.Oqu(e.contact)}}function fY(n,s){1&n&&(i.TgZ(0,"th",21),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.TYPE")," "))}function mY(n,s){if(1&n&&(i.TgZ(0,"td",23),i._uU(1),i.qZA()),2&n){const e=s.$implicit;i.xp6(1),i.Oqu(e.type)}}function gY(n,s){1&n&&i._UZ(0,"tr",24)}function _Y(n,s){1&n&&i._UZ(0,"tr",25)}function bY(n,s){1&n&&(i.TgZ(0,"perun-web-apps-alert",26),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NO_OWNERS"),"\n"))}function yY(n,s){1&n&&(i.TgZ(0,"perun-web-apps-alert",26),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NO_FILTER_OWNERS"),"\n"))}const CY=function(n){return{all:n}};let wY=(()=>{class n{constructor(e,t){this.authResolver=e,this.tableCheckbox=t,this.owners=[],this.selection=new tn(!0,[]),this.filterValue="",this.displayedColumns=["select","id","name","contact","type"],this.pageSizeOptions=Bo}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,t){switch(t){case"id":return e.id.toString();case"name":return e.name;case"contact":return e.contact;case"type":return e.type;default:return""}}ngAfterViewInit(){this.setDataSource()}exportAllData(e){Ra(ka(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}exportDisplayedData(e){const t=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,r=t+this.dataSource.paginator.pageSize;Ra(ka(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(t,r),this.displayedColumns,n.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>Wp(e,t,this.displayedColumns,n.getDataForColumn),this.dataSource.sortData=(e,t)=>Fs(e,t,n.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"id"!==e)),this.dataSource=new Gl(this.owners),this.setDataSource()}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Me),i.Y36(Zp))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-owners-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(cs,7),i.Gf(Va,7)),2&e){let r;i.iGM(r=i.CRH())&&(t.child=r.first),i.iGM(r=i.CRH())&&(t.matSort=r.first)}},inputs:{owners:"owners",selection:"selection",tableId:"tableId",filterValue:"filterValue",displayedColumns:"displayedColumns"},features:[i.TTD],decls:21,vars:15,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","contact"],["matColumnDef","type"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportDisplayedData",function(l){return t.exportDisplayedData(l)})("exportAllData",function(l){return t.exportAllData(l)}),i.TgZ(2,"table",2),i.YNc(3,oY,3,0,"ng-container",3),i.ALo(4,"isAllSelected"),i.ynx(5,4),i.YNc(6,lY,3,3,"th",5),i.YNc(7,cY,2,1,"td",6),i.BQk(),i.ynx(8,7),i.YNc(9,dY,3,3,"th",5),i.YNc(10,uY,2,2,"td",8),i.BQk(),i.ynx(11,9),i.YNc(12,hY,3,3,"th",5),i.YNc(13,pY,2,1,"td",8),i.BQk(),i.ynx(14,10),i.YNc(15,fY,3,3,"th",5),i.YNc(16,mY,2,1,"td",8),i.BQk(),i.YNc(17,gY,1,0,"tr",11),i.YNc(18,_Y,1,0,"tr",12),i.qZA()()(),i.YNc(19,bY,3,3,"perun-web-apps-alert",13),i.YNc(20,yY,3,3,"perun-web-apps-alert",13)),2&e&&(i.Q6J("hidden",0===t.owners.length||0===t.dataSource.filteredData.length),i.xp6(1),i.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),i.xp6(1),i.Q6J("dataSource",t.dataSource),i.xp6(1),i.Q6J("ngIf",i.VKq(13,CY,i.xi3(4,10,t.dataSource,t.selection.selected.length))),i.xp6(14),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns),i.xp6(1),i.Q6J("ngIf",!t.owners.length),i.xp6(1),i.Q6J("ngIf",!t.dataSource.filteredData.length&&t.owners.length))},dependencies:[w.O5,gd,Vo,Ys,zl,Us,js,No,zs,qs,ql,Fo,Va,af,na,cs,tt,Lw,$g,Iw]}),n})();function AY(n,s){1&n&&i._UZ(0,"mat-spinner",4)}const vY=function(){return["select","id","name","contact"]};function TY(n,s){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"div",5)(2,"perun-web-apps-immediate-filter",6),i.NdJ("filter",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.filterValue=r)}),i.qZA(),i._UZ(3,"perun-web-apps-owners-list",7),i.qZA(),i.TgZ(4,"div",8)(5,"button",9),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onCancel())}),i._uU(6),i.ALo(7,"translate"),i.qZA(),i.TgZ(8,"button",10),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onSubmit())}),i._uU(9),i.ALo(10,"translate"),i.qZA()()()}if(2&n){const e=i.oxw();i.xp6(2),i.Q6J("placeholder","DIALOGS.ADD_THANKS.FILTER"),i.xp6(1),i.Q6J("owners",e.owners)("filterValue",e.filterValue)("tableId",e.tableId)("displayedColumns",i.DdM(13,vY))("selection",e.selected),i.xp6(3),i.hij(" ",i.lcZ(7,9,"DIALOGS.ADD_THANKS.CANCEL")," "),i.xp6(2),i.Q6J("disabled",0===e.selected.selected.length||e.loading),i.xp6(1),i.hij(" ",i.lcZ(10,11,"DIALOGS.ADD_THANKS.ADD")," ")}}let xY=(()=>{class n{constructor(e,t,r,l,d,o,a){this.dialogRef=e,this.data=t,this.ownersManagerService=r,this.storeService=l,this.notificator=d,this.translate=o,this.cabinetManagerService=a,this.selected=new tn(!0,[]),this.tableId="73"}ngOnInit(){this.loading=!0;const e=this.storeService.getProperty("allowed_owners_for_thanks");this.ownersManagerService.getAllOwners().subscribe(t=>{this.owners=0!==e.length?t.filter(r=>e.includes(String(r.id))):t,this.owners=this.owners.filter(r=>!this.data.thanks.map(l=>l.ownerId).includes(r.id)),this.loading=!1})}onCancel(){this.dialogRef.close()}onSubmit(){this.loading=!0,0===this.selected.selected.length?this.translate.get("DIALOGS.ADD_THANKS.SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.dialogRef.close(!0)}):this.cabinetManagerService.createThanks({thanks:{publicationId:this.data.id,ownerId:this.selected.selected.pop().id,createdBy:this.storeService.getPerunPrincipal().actor,createdByUid:this.storeService.getPerunPrincipal().userId,createdDate:Date.now().toString(),id:0,beanName:"Thanks"}}).subscribe(()=>{this.onSubmit()},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(nn),i.Y36(ar),i.Y36(ic),i.Y36(yn),i.Y36(Un),i.Y36(ui),i.Y36(fi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-add-thanks-dialog"]],decls:6,vars:5,consts:[[1,"user-theme"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"placeholder","filter"],[3,"owners","filterValue","tableId","displayedColumns","selection"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.YNc(4,AY,1,0,"mat-spinner",2),i.YNc(5,TY,11,14,"div",3),i.qZA()),2&e&&(i.xp6(2),i.Oqu(i.lcZ(3,3,"DIALOGS.ADD_THANKS.TITLE")),i.xp6(2),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},dependencies:[w.O5,It,Rn,Yn,vn,Mi,Jg,wY,tt]}),n})();function MY(n,s){if(1&n){const e=i.EpF();i.TgZ(0,"th",16)(1,"mat-checkbox",17),i.NdJ("change",function(r){i.CHM(e);const l=i.oxw(2);return i.KtG(r?l.masterToggle():null)}),i.ALo(2,"translate"),i.ALo(3,"masterCheckboxLabel"),i.qZA()()}if(2&n){const e=i.oxw().ngIf,t=i.oxw();i.xp6(1),i.Q6J("aria-label",i.lcZ(2,3,i.lcZ(3,5,e.all)))("checked",t.selection.hasValue()&&e.all)("indeterminate",t.selection.hasValue()&&!e.all)}}const SY=function(n){return{name:n}};function EY(n,s){if(1&n){const e=i.EpF();i.TgZ(0,"td",18)(1,"mat-checkbox",19),i.NdJ("change",function(r){const d=i.CHM(e).$implicit,o=i.oxw(2);return i.KtG(r?o.selection.toggle(d):null)})("click",function(r){return r.stopPropagation()}),i.ALo(2,"translate"),i.ALo(3,"checkboxLabel"),i.qZA()()}if(2&n){const e=s.$implicit,t=i.oxw(2);i.xp6(1),i.Q6J("aria-label",i.xi3(2,2,i.lcZ(3,5,t.selection.isSelected(e)),i.VKq(7,SY,e.ownerName)))("checked",t.selection.isSelected(e))}}function DY(n,s){1&n&&(i.ynx(0,13),i.YNc(1,MY,4,7,"th",14),i.YNc(2,EY,4,9,"td",15),i.BQk())}function HY(n,s){1&n&&(i.TgZ(0,"th",20),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"THANKS_LIST.ID")))}function PY(n,s){if(1&n&&(i.TgZ(0,"td",21),i._uU(1),i.qZA()),2&n){const e=s.$implicit;i.xp6(1),i.Oqu(e.ownerId)}}function kY(n,s){1&n&&(i.TgZ(0,"th",20),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"THANKS_LIST.NAME")," "))}function RY(n,s){if(1&n&&(i.TgZ(0,"td",22),i._uU(1),i.qZA()),2&n){const e=s.$implicit;i.xp6(1),i.Oqu(e.ownerName)}}function LY(n,s){1&n&&(i.TgZ(0,"th",20),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"THANKS_LIST.CREATED_BY")," "))}function IY(n,s){if(1&n&&(i.TgZ(0,"td",22),i._uU(1),i.qZA()),2&n){const e=s.$implicit;i.xp6(1),i.Oqu(e.createdBy)}}function OY(n,s){1&n&&i._UZ(0,"tr",23)}function BY(n,s){1&n&&i._UZ(0,"tr",24)}function VY(n,s){1&n&&(i.TgZ(0,"perun-web-apps-alert",25),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function NY(n,s){1&n&&(i.TgZ(0,"perun-web-apps-alert",25),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"THANKS_LIST.NO_THANKS"),"\n"))}const FY=function(n){return{all:n}};let jY=(()=>{class n{constructor(e){this.tableCheckbox=e,this.thanks=[],this.filterValue="",this.displayedColumns=["select","id","name","createdBy"],this.pageSizeOptions=Bo,this.selection=new tn(!0,[])}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,t){switch(t){case"id":return e.ownerId.toString();case"name":return e.ownerName;default:return e[t]}}ngOnChanges(){this.dataSource=new Gl(this.thanks),this.setDataSource(),this.dataSource.filter=this.filterValue}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}exportAllData(e){Ra(ka(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}exportDisplayedData(e){const t=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,r=t+this.dataSource.paginator.pageSize;Ra(ka(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(t,r),this.displayedColumns,n.getDataForColumn),e)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>Wp(e,t,this.displayedColumns,n.getDataForColumn),this.dataSource.sortData=(e,t)=>Fs(e,t,n.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Zp))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-thanks-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(cs,7),i.Gf(Va,7)),2&e){let r;i.iGM(r=i.CRH())&&(t.child=r.first),i.iGM(r=i.CRH())&&(t.matSort=r.first)}},inputs:{thanks:"thanks",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",pageSizeOptions:"pageSizeOptions",selection:"selection"},features:[i.TTD],decls:18,vars:15,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","name","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","createdBy"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportDisplayedData",function(l){return t.exportDisplayedData(l)})("exportAllData",function(l){return t.exportAllData(l)}),i.TgZ(2,"table",2),i.YNc(3,DY,3,0,"ng-container",3),i.ALo(4,"isAllSelected"),i.ynx(5,4),i.YNc(6,HY,3,3,"th",5),i.YNc(7,PY,2,1,"td",6),i.BQk(),i.ynx(8,7),i.YNc(9,kY,3,3,"th",5),i.YNc(10,RY,2,1,"td",8),i.BQk(),i.ynx(11,9),i.YNc(12,LY,3,3,"th",5),i.YNc(13,IY,2,1,"td",8),i.BQk(),i.YNc(14,OY,1,0,"tr",10),i.YNc(15,BY,1,0,"tr",11),i.qZA()()(),i.YNc(16,VY,3,3,"perun-web-apps-alert",12),i.YNc(17,NY,3,3,"perun-web-apps-alert",12)),2&e&&(i.Q6J("hidden",0===t.thanks.length||0===t.dataSource.filteredData.length),i.xp6(1),i.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),i.xp6(1),i.Q6J("dataSource",t.dataSource),i.xp6(1),i.Q6J("ngIf",i.VKq(13,FY,i.xi3(4,10,t.dataSource,t.selection.selected.length))),i.xp6(11),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns),i.xp6(1),i.Q6J("ngIf",0!==t.thanks.length&&0===t.dataSource.filteredData.length),i.xp6(1),i.Q6J("ngIf",0===t.thanks.length))},dependencies:[w.O5,gd,Vo,Ys,zl,Us,js,No,zs,qs,ql,Fo,Va,af,na,cs,tt,Lw,$g,Iw]}),n})();function YY(n,s){if(1&n){const e=i.EpF();i.TgZ(0,"button",6),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onAddThanks())}),i._uU(1),i.ALo(2,"translate"),i.qZA()}2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATION_DETAIL.ADD")," "))}function UY(n,s){if(1&n){const e=i.EpF();i.TgZ(0,"button",7),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onRemoveThanks())}),i._uU(1),i.ALo(2,"translate"),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("disabled",0===e.selection.selected.length),i.xp6(1),i.hij(" ",i.lcZ(2,2,"PUBLICATION_DETAIL.REMOVE")," ")}}function zY(n,s){1&n&&i._UZ(0,"mat-spinner",8)}const qY=function(){return["id","name","createdBy"]},GY=function(){return["select","id","name","createdBy"]};function WY(n,s){if(1&n&&i._UZ(0,"perun-web-apps-thanks-list",9),2&n){const e=i.oxw();i.Q6J("thanks",e.publication.thanks)("filterValue",e.filterValue)("tableId",e.tableId)("displayedColumns",e.publication.locked?i.DdM(5,qY):i.DdM(6,GY))("selection",e.selection)}}let A1=(()=>{class n{constructor(e,t,r,l){this.dialog=e,this.cabinetService=t,this.notificator=r,this.translate=l,this.selection=new tn(!0,[]),this.similarityCheck=!1,this.tableId="70",this.loading=!1,this.filterValue=""}ngOnInit(){this.refresh()}refresh(){this.loading=!0,this.cabinetService.findPublicationById(this.publication.id).subscribe(e=>{this.publication=e,this.selection.clear(),this.loading=!1})}onAddThanks(){const e=Ni();e.width="800px",e.data=this.publication,this.dialog.open(xY,e).afterClosed().subscribe(r=>{r&&this.refresh()})}onRemoveThanks(){const e=Ni();e.width="450px",e.data={items:this.selection.selected.map(r=>r.ownerName),title:"PUBLICATION_DETAIL.REMOVE_THANKS_DIALOG_TITLE",description:"PUBLICATION_DETAIL.REMOVE_THANKS_DIALOG_DESCRIPTION",theme:"user-theme",type:"remove",showAsk:!0},this.dialog.open(Dx,e).afterClosed().subscribe(r=>{r&&(this.loading=!0,this.removeThank())})}removeThank(){0===this.selection.selected.length?this.translate.get("PUBLICATION_DETAIL.REMOVE_THANKS_SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.refresh()}):this.cabinetService.deleteThanks(this.selection.selected.pop().id).subscribe(()=>{this.removeThank()})}applyFilter(e){this.filterValue=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(fn),i.Y36(fi),i.Y36(Un),i.Y36(ui))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-add-thanks"]],inputs:{publication:"publication",selection:"selection",similarityCheck:"similarityCheck"},decls:6,vars:5,consts:[[1,"'user-theme'"],["mat-flat-button","","color","accent","class","mr-2 action-button",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"thanks","filterValue","tableId","displayedColumns","selection",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2","action-button",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"thanks","filterValue","tableId","displayedColumns","selection"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.YNc(1,YY,3,3,"button",1),i.YNc(2,UY,3,4,"button",2),i.TgZ(3,"perun-web-apps-immediate-filter",3),i.NdJ("filter",function(l){return t.applyFilter(l)}),i.qZA(),i.YNc(4,zY,1,0,"mat-spinner",4),i.YNc(5,WY,1,7,"perun-web-apps-thanks-list",5),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngIf",!t.publication.locked&&!t.similarityCheck),i.xp6(1),i.Q6J("ngIf",!t.publication.locked&&!t.similarityCheck),i.xp6(1),i.Q6J("placeholder","PUBLICATION_DETAIL.FILTER"),i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},dependencies:[w.O5,It,Mi,Jg,jY,tt]}),n})();function $Y(n,s){1&n&&i._UZ(0,"mat-spinner",3)}function ZY(n,s){1&n&&(i.TgZ(0,"h1",13)(1,"span")(2,"mat-icon",14),i._uU(3,"assignment_ind"),i.qZA(),i._uU(4),i.ALo(5,"translate"),i.qZA()()),2&n&&(i.xp6(4),i.hij(" ",i.lcZ(5,1,"AUTHORS_PAGE.TITLE")," "))}function JY(n,s){1&n&&(i.TgZ(0,"h1",13),i._UZ(1,"mat-icon",15),i.TgZ(2,"span",16),i._uU(3),i.ALo(4,"translate"),i.qZA()()),2&n&&(i.xp6(3),i.Oqu(i.lcZ(4,1,"ALL_PUBLICATIONS.TITLE")))}function QY(n,s){1&n&&(i.TgZ(0,"h1",13)(1,"span")(2,"mat-icon",14),i._uU(3,"local_library"),i.qZA(),i._uU(4),i.ALo(5,"translate"),i.qZA()()),2&n&&(i.xp6(4),i.hij(" ",i.lcZ(5,1,"MY_PUBLICATIONS.TITLE")," "))}function KY(n,s){if(1&n&&(i.TgZ(0,"h5",17),i._uU(1),i.ALo(2,"userFullName"),i.ALo(3,"translate"),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.AsE(" ",i.lcZ(2,2,e.mainAuthor),"",i.lcZ(3,4,"AUTHOR_DETAIL.TITLE")," ")}}function XY(n,s){1&n&&(i.TgZ(0,"span",18),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATION_DETAIL.LOCKED")," "))}function e6(n,s){1&n&&(i.TgZ(0,"mat-icon"),i._uU(1," lock "),i.qZA())}function t6(n,s){1&n&&(i.TgZ(0,"span",18),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATION_DETAIL.UNLOCKED")," "))}function n6(n,s){1&n&&(i.TgZ(0,"mat-icon"),i._uU(1," lock_open "),i.qZA())}function r6(n,s){1&n&&i._UZ(0,"mat-spinner",3)}function a6(n,s){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-publication-detail-list",19),i.NdJ("edited",function(){i.CHM(e);const r=i.oxw(2);return i.KtG(r.refreshPublication())}),i.qZA()}if(2&n){const e=i.oxw(2);i.Q6J("publication",e.publication)("categories",e.categories)("similarityCheck",e.similarityCheck)}}function s6(n,s){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.YNc(1,ZY,6,3,"h1",4),i.YNc(2,JY,5,3,"h1",4),i.YNc(3,QY,6,3,"h1",4),i.YNc(4,KY,4,6,"h5",5),i.TgZ(5,"h5"),i._uU(6),i.ALo(7,"translate"),i.qZA(),i.TgZ(8,"h6"),i._uU(9),i.ALo(10,"translate"),i.TgZ(11,"span",6),i.ALo(12,"translate"),i.TgZ(13,"button",7),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.changeLock())}),i.YNc(14,XY,3,3,"span",8),i.YNc(15,e6,2,0,"mat-icon",2),i.YNc(16,t6,3,3,"span",8),i.YNc(17,n6,2,0,"mat-icon",2),i.qZA()()(),i.TgZ(18,"mat-card")(19,"mat-card-content"),i.YNc(20,r6,1,0,"mat-spinner",1),i.YNc(21,a6,1,3,"perun-web-apps-publication-detail-list",9),i.qZA()(),i.TgZ(22,"mat-card",10)(23,"mat-card-title"),i._uU(24),i.ALo(25,"translate"),i.qZA(),i.TgZ(26,"mat-card-content"),i._UZ(27,"perun-web-apps-add-authors",11),i.qZA()(),i.TgZ(28,"mat-card",10)(29,"mat-card-title"),i._uU(30),i.ALo(31,"translate"),i.qZA(),i.TgZ(32,"mat-card-content"),i._UZ(33,"perun-web-apps-add-thanks",12),i.qZA()()()}if(2&n){const e=i.oxw();i.xp6(1),i.Q6J("ngIf","authors"===e.mode),i.xp6(1),i.Q6J("ngIf","all"===e.mode),i.xp6(1),i.Q6J("ngIf","my"===e.mode),i.xp6(1),i.Q6J("ngIf",void 0!==e.mainAuthor),i.xp6(2),i.Oqu(i.lcZ(7,24,"PUBLICATION_DETAIL.TITLE")),i.xp6(3),i.hij(" ",i.lcZ(10,26,"PUBLICATION_DETAIL.LOCK_INFO")," "),i.xp6(2),i.s9C("matTooltip",i.lcZ(12,28,"PUBLICATION_DETAIL.LOCK_DISABLED_TOOLTIP")),i.Q6J("matTooltipDisabled",e.lockAuth),i.xp6(2),i.Q6J("disabled",!e.lockAuth),i.xp6(1),i.Q6J("ngIf",e.publication.locked),i.xp6(1),i.Q6J("ngIf",e.publication.locked),i.xp6(1),i.Q6J("ngIf",!e.publication.locked),i.xp6(1),i.Q6J("ngIf",!e.publication.locked),i.xp6(3),i.Q6J("ngIf",e.loading||e.pubLoading),i.xp6(1),i.Q6J("ngIf",!e.pubLoading&&!e.loading),i.xp6(3),i.hij(" ",i.lcZ(25,30,"PUBLICATION_DETAIL.AUTHORS")," "),i.xp6(3),i.Q6J("publication",e.publication)("selection",e.selectionAuthors)("disableRouting",e.disableRouting)("similarityCheck",e.similarityCheck),i.xp6(3),i.hij(" ",i.lcZ(31,32,"PUBLICATION_DETAIL.ACKNOWLEDGEMENT")," "),i.xp6(3),i.Q6J("publication",e.publication)("selection",e.selectionThanks)("similarityCheck",e.similarityCheck)}}let Qg=(()=>{class n{constructor(e,t,r,l,d,o,a,c){this.route=e,this.cabinetService=t,this.matIconRegistry=r,this.domSanitizer=l,this.dialog=d,this.notificator=o,this.translate=a,this.authResolver=c,this.disableRouting=!1,this.similarityCheck=!1,this.loading=!1,this.pubLoading=!1,this.initLoading=!1,this.selectionAuthors=new tn(!0,[]),this.selectionThanks=new tn(!0,[]),this.lockAuth=!1,this.matIconRegistry.addSvgIcon("publications",this.domSanitizer.bypassSecurityTrustResourceUrl("../../assets/img/publications-dark.svg"))}ngOnInit(){this.initLoading=!0,this.disableRouting=this.disableRouting||!this.authResolver.isCabinetAdmin(),this.lockAuth=this.authResolver.isCabinetAdmin(),this.publicationId?(this.setMode(),this.loadAllData()):this.route.params.subscribe(e=>{this.publicationId=Number(e.publicationId),this.mainAuthorId=Number(e.authorId),this.setMode(),this.loadAllData()})}setMode(){const e=location.pathname;this.mode=e.includes("my")?"my":e.includes("all")?"all":e.includes("import")?"import":e.includes("create")?"create":"authors"}loadAllData(){this.loading=!0,this.cabinetService.findPublicationById(this.publicationId).subscribe(e=>{this.publication=e,this.cabinetService.getCategories().subscribe(t=>{this.categories=t,this.loading=!1,this.initLoading=!1})})}refreshPublication(){this.pubLoading=!0,this.cabinetService.findPublicationById(this.publicationId).subscribe(e=>{this.publication=e,this.pubLoading=!1})}changeLock(){this.pubLoading=!0,this.cabinetService.lockPublications({publications:[{id:this.publication.id,beanName:"Publication",externalId:this.publication.externalId,publicationSystemId:this.publication.publicationSystemId,title:this.publication.title,year:this.publication.year,main:this.publication.main,isbn:this.publication.isbn,doi:this.publication.doi,categoryId:this.publication.categoryId,rank:this.publication.rank,locked:this.publication.locked,createdBy:this.publication.createdBy,createdDate:this.publication.createdDate}],lock:!this.publication.locked}).subscribe(()=>{this.translate.get("PUBLICATION_DETAIL.CHANGE_PUBLICATION_SUCCESS").subscribe(t=>{this.notificator.showSuccess(t),this.refreshPublication()})})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Jn),i.Y36(fi),i.Y36(Io),i.Y36(Li),i.Y36(fn),i.Y36(Un),i.Y36(ui),i.Y36(Me))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-publication-detail"]],inputs:{publicationId:"publicationId",disableRouting:"disableRouting",similarityCheck:"similarityCheck"},decls:3,vars:2,consts:[[1,"user-theme"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["class","page-subtitle d-flex",4,"ngIf"],["class","mb-2",4,"ngIf"],["matTooltipPosition","below",3,"matTooltip","matTooltipDisabled"],["mat-stroked-button","",1,"ml-2",3,"disabled","click"],["class","font-weight-bold",4,"ngIf"],[3,"publication","categories","similarityCheck","edited",4,"ngIf"],[1,"mt-4"],[3,"publication","selection","disableRouting","similarityCheck"],[3,"publication","selection","similarityCheck"],[1,"page-subtitle","d-flex"],[1,"title-icon","align-icon","mr-3"],["svgIcon","publications",1,"icon-size"],[1,"ml-3","mt-1"],[1,"mb-2"],[1,"font-weight-bold"],[3,"publication","categories","similarityCheck","edited"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.YNc(1,$Y,1,0,"mat-spinner",1),i.YNc(2,s6,34,34,"div",2),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngIf",t.initLoading),i.xp6(1),i.Q6J("ngIf",!t.initLoading))},dependencies:[w.O5,uH,cH,dH,It,ki,Mi,Ha,U3,w1,A1,tt,vM],styles:[".icon-size[_ngcontent-%COMP%]{width:32px;height:32px}.align-icon[_ngcontent-%COMP%]{vertical-align:text-top}"]}),n})(),xM=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[Nl,w.ez]}),n})();function MM(n,s,e){for(let t in s)if(s.hasOwnProperty(t)){const r=s[t];r?n.setProperty(t,r,e?.has(t)?"important":""):n.removeProperty(t)}return n}function df(n,s){const e=s?"":"none";MM(n.style,{"touch-action":s?"":"none","-webkit-user-drag":s?"":"none","-webkit-tap-highlight-color":s?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function v1(n,s,e){MM(n.style,{position:s?"":"fixed",top:s?"":"0",opacity:s?"":"0",left:s?"":"-999em"},e)}function Ow(n,s){return s&&"none"!=s?n+" "+s:n}function T1(n){const s=n.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(n)*s}function SM(n,s){return n.getPropertyValue(s).split(",").map(t=>t.trim())}function EM(n){const s=n.getBoundingClientRect();return{top:s.top,right:s.right,bottom:s.bottom,left:s.left,width:s.width,height:s.height,x:s.x,y:s.y}}function DM(n,s,e){const{top:t,bottom:r,left:l,right:d}=n;return e>=t&&e<=r&&s>=l&&s<=d}function Kg(n,s,e){n.top+=s,n.bottom=n.top+n.height,n.left+=e,n.right=n.left+n.width}function x1(n,s,e,t){const{top:r,right:l,bottom:d,left:o,width:a,height:c}=n,u=a*s,h=c*s;return t>r-h&&to-u&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:EM(e)})})}handleScroll(s){const e=wa(s),t=this.positions.get(e);if(!t)return null;const r=t.scrollPosition;let l,d;if(e===this._document){const c=this.getViewportScrollPosition();l=c.top,d=c.left}else l=e.scrollTop,d=e.scrollLeft;const o=r.top-l,a=r.left-d;return this.positions.forEach((c,u)=>{c.clientRect&&e!==u&&e.contains(u)&&Kg(c.clientRect,o,a)}),r.top=l,r.left=d,{top:o,left:a}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function S1(n){const s=n.cloneNode(!0),e=s.querySelectorAll("[id]"),t=n.nodeName.toLowerCase();s.removeAttribute("id");for(let r=0;r{if(this.beforeStarted.next(),this._handles.length){const a=this._getTargetHandle(o);a&&!this._disabledHandles.has(a)&&!this.disabled&&this._initializeDragSequence(a,o)}else this.disabled||this._initializeDragSequence(this._rootElement,o)},this._pointerMove=o=>{const a=this._getPointerPositionOnPage(o);if(!this._hasStartedDragging){if(Math.abs(a.x-this._pickupPositionOnPage.x)+Math.abs(a.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const b=Date.now()>=this._dragStartTime+this._getDragStartDelay(o),V=this._dropContainer;if(!b)return void this._endDragSequence(o);(!V||!V.isDragging()&&!V.isReceiving())&&(o.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(o)))}return}o.preventDefault();const c=this._getConstrainedPointerPosition(a);if(this._hasMoved=!0,this._lastKnownPointerPosition=a,this._updatePointerDirectionDelta(c),this._dropContainer)this._updateActiveDropContainer(c,a);else{const u=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,h=this._activeTransform;h.x=c.x-u.x+this._passiveTransform.x,h.y=c.y-u.y+this._passiveTransform.y,this._applyRootElementTransform(h.x,h.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:c,event:o,distance:this._getDragDistance(c),delta:this._pointerDirectionDelta})})},this._pointerUp=o=>{this._endDragSequence(o)},this._nativeDragStart=o=>{if(this._handles.length){const a=this._getTargetHandle(o);a&&!this._disabledHandles.has(a)&&!this.disabled&&o.preventDefault()}else this.disabled||o.preventDefault()},this.withRootElement(s).withParent(e.parentDragRef||null),this._parentPositions=new M1(t),d.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(s){const e=Ne(s);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(t=>df(t,e)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(s){this._handles=s.map(t=>en(t)),this._handles.forEach(t=>df(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(s){return this._previewTemplate=s,this}withPlaceholderTemplate(s){return this._placeholderTemplate=s,this}withRootElement(s){const e=en(s);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,Bw),e.addEventListener("touchstart",this._pointerDown,P1),e.addEventListener("dragstart",this._nativeDragStart,Bw)}),this._initialTransform=void 0,this._rootElement=e),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(s){return this._boundaryElement=s?en(s):null,this._resizeSubscription.unsubscribe(),s&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(s){return this._parentDragRef=s,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),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=this._parentDragRef=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(s){!this._disabledHandles.has(s)&&this._handles.indexOf(s)>-1&&(this._disabledHandles.add(s),df(s,!0))}enableHandle(s){this._disabledHandles.has(s)&&(this._disabledHandles.delete(s),df(s,this.disabled))}withDirection(s){return this._direction=s,this}_withDropContainer(s){this._dropContainer=s}getFreeDragPosition(){const s=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:s.x,y:s.y}}setFreeDragPosition(s){return this._activeTransform={x:0,y:0},this._passiveTransform.x=s.x,this._passiveTransform.y=s.y,this._dropContainer||this._applyRootElementTransform(s.x,s.y),this}withPreviewContainer(s){return this._previewContainer=s,this}_sortFromLastPointerPosition(){const s=this._lastKnownPointerPosition;s&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(s),s)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview?.remove(),this._previewRef?.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(s){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:s}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(s),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(s);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e,event:s})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(s){Xg(s)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const t=this._rootElement,r=t.parentNode,l=this._placeholder=this._createPlaceholderElement(),d=this._anchor=this._anchor||this._document.createComment(""),o=this._getShadowRoot();r.insertBefore(d,t),this._initialTransform=t.style.transform||"",this._preview=this._createPreviewElement(),v1(t,!1,HM),this._document.body.appendChild(r.replaceChild(l,t)),this._getPreviewInsertionPoint(r,o).appendChild(this._preview),this.started.next({source:this,event:s}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this,event:s}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(s,e){this._parentDragRef&&e.stopPropagation();const t=this.isDragging(),r=Xg(e),l=!r&&0!==e.button,d=this._rootElement,o=wa(e),a=!r&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),c=r?du(e):Ss(e);if(o&&o.draggable&&"mousedown"===e.type&&e.preventDefault(),t||l||a||c)return;if(this._handles.length){const f=d.style;this._rootElementTapHighlight=f.webkitTapHighlightColor||"",f.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(f=>this._updateOnScroll(f)),this._boundaryElement&&(this._boundaryRect=EM(this._boundaryElement));const u=this._previewTemplate;this._pickupPositionInElement=u&&u.template&&!u.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,s,e);const h=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:h.x,y:h.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(s){v1(this._rootElement,!0,HM),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,t=e.getItemIndex(this),r=this._getPointerPositionOnPage(s),l=this._getDragDistance(r),d=e._isOverContainer(r.x,r.y);this.ended.next({source:this,distance:l,dropPoint:r,event:s}),this.dropped.next({item:this,currentIndex:t,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:d,distance:l,dropPoint:r,event:s}),e.drop(this,t,this._initialIndex,this._initialContainer,d,l,r),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:s,y:e},{x:t,y:r}){let l=this._initialContainer._getSiblingContainerFromPosition(this,s,e);!l&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(s,e)&&(l=this._initialContainer),l&&l!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=l,this._dropContainer.enter(this,s,e,l===this._initialContainer&&l.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:l,currentIndex:l.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(t,r),this._dropContainer._sortItem(this,s,e,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(s,e):this._applyPreviewTransform(s-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const s=this._previewTemplate,e=this.previewClass,t=s?s.template:null;let r;if(t&&s){const l=s.matchSize?this._initialClientRect:null,d=s.viewContainer.createEmbeddedView(t,s.context);d.detectChanges(),r=R1(d,this._document),this._previewRef=d,s.matchSize?L1(r,l):r.style.transform=Vw(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else r=S1(this._rootElement),L1(r,this._initialClientRect),this._initialTransform&&(r.style.transform=this._initialTransform);return MM(r.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},HM),df(r,!1),r.classList.add("cdk-drag-preview"),r.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(l=>r.classList.add(l)):r.classList.add(e)),r}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const s=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(s.left,s.top);const e=function l6(n){const s=getComputedStyle(n),e=SM(s,"transition-property"),t=e.find(o=>"transform"===o||"all"===o);if(!t)return 0;const r=e.indexOf(t),l=SM(s,"transition-duration"),d=SM(s,"transition-delay");return T1(l[r])+T1(d[r])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{const r=d=>{(!d||wa(d)===this._preview&&"transform"===d.propertyName)&&(this._preview?.removeEventListener("transitionend",r),t(),clearTimeout(l))},l=setTimeout(r,1.5*e);this._preview.addEventListener("transitionend",r)}))}_createPlaceholderElement(){const s=this._placeholderTemplate,e=s?s.template:null;let t;return e?(this._placeholderRef=s.viewContainer.createEmbeddedView(e,s.context),this._placeholderRef.detectChanges(),t=R1(this._placeholderRef,this._document)):t=S1(this._rootElement),t.style.pointerEvents="none",t.classList.add("cdk-drag-placeholder"),t}_getPointerPositionInElement(s,e,t){const r=e===this._rootElement?null:e,l=r?r.getBoundingClientRect():s,d=Xg(t)?t.targetTouches[0]:t,o=this._getViewportScrollPosition();return{x:l.left-s.left+(d.pageX-l.left-o.left),y:l.top-s.top+(d.pageY-l.top-o.top)}}_getPointerPositionOnPage(s){const e=this._getViewportScrollPosition(),t=Xg(s)?s.touches[0]||s.changedTouches[0]||{pageX:0,pageY:0}:s,r=t.pageX-e.left,l=t.pageY-e.top;if(this._ownerSVGElement){const d=this._ownerSVGElement.getScreenCTM();if(d){const o=this._ownerSVGElement.createSVGPoint();return o.x=r,o.y=l,o.matrixTransform(d.inverse())}}return{x:r,y:l}}_getConstrainedPointerPosition(s){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:t,y:r}=this.constrainPosition?this.constrainPosition(s,this,this._initialClientRect,this._pickupPositionInElement):s;if("x"===this.lockAxis||"x"===e?r=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===e)&&(t=this._pickupPositionOnPage.x),this._boundaryRect){const{x:l,y:d}=this._pickupPositionInElement,o=this._boundaryRect,{width:a,height:c}=this._getPreviewRect(),u=o.top+d,h=o.bottom-(c-d);t=k1(t,o.left+l,o.right-(a-l)),r=k1(r,u,h)}return{x:t,y:r}}_updatePointerDirectionDelta(s){const{x:e,y:t}=s,r=this._pointerDirectionDelta,l=this._pointerPositionAtLastDirectionChange,d=Math.abs(e-l.x),o=Math.abs(t-l.y);return d>this._config.pointerDirectionChangeThreshold&&(r.x=e>l.x?1:-1,l.x=e),o>this._config.pointerDirectionChangeThreshold&&(r.y=t>l.y?1:-1,l.y=t),r}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const s=this._handles.length>0||!this.isDragging();s!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=s,df(this._rootElement,s))}_removeRootElementListeners(s){s.removeEventListener("mousedown",this._pointerDown,Bw),s.removeEventListener("touchstart",this._pointerDown,P1),s.removeEventListener("dragstart",this._nativeDragStart,Bw)}_applyRootElementTransform(s,e){const t=Vw(s,e),r=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=r.transform&&"none"!=r.transform?r.transform:""),r.transform=Ow(t,this._initialTransform)}_applyPreviewTransform(s,e){const t=this._previewTemplate?.template?void 0:this._initialTransform,r=Vw(s,e);this._preview.style.transform=Ow(r,t)}_getDragDistance(s){const e=this._pickupPositionOnPage;return e?{x:s.x-e.x,y:s.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:s,y:e}=this._passiveTransform;if(0===s&&0===e||this.isDragging()||!this._boundaryElement)return;const t=this._rootElement.getBoundingClientRect(),r=this._boundaryElement.getBoundingClientRect();if(0===r.width&&0===r.height||0===t.width&&0===t.height)return;const l=r.left-t.left,d=t.right-r.right,o=r.top-t.top,a=t.bottom-r.bottom;r.width>t.width?(l>0&&(s+=l),d>0&&(s-=d)):s=0,r.height>t.height?(o>0&&(e+=o),a>0&&(e-=a)):e=0,(s!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:s})}_getDragStartDelay(s){const e=this.dragStartDelay;return"number"==typeof e?e:Xg(s)?e.touch:e?e.mouse:0}_updateOnScroll(s){const e=this._parentPositions.handleScroll(s);if(e){const t=wa(s);this._boundaryRect&&t!==this._boundaryElement&&t.contains(this._boundaryElement)&&Kg(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(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=Rc(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(s,e){const t=this._previewContainer||"global";if("parent"===t)return s;if("global"===t){const r=this._document;return e||r.fullscreenElement||r.webkitFullscreenElement||r.mozFullScreenElement||r.msFullscreenElement||r.body}return en(t)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(s){return this._handles.find(e=>s.target&&(s.target===e||e.contains(s.target)))}}function Vw(n,s){return`translate3d(${Math.round(n)}px, ${Math.round(s)}px, 0)`}function k1(n,s,e){return Math.max(s,Math.min(e,n))}function Xg(n){return"t"===n.type[0]}function R1(n,s){const e=n.rootNodes;if(1===e.length&&e[0].nodeType===s.ELEMENT_NODE)return e[0];const t=s.createElement("div");return e.forEach(r=>t.appendChild(r)),t}function L1(n,s){n.style.width=`${s.width}px`,n.style.height=`${s.height}px`,n.style.transform=Vw(s.left,s.top)}function e_(n,s){return Math.max(0,Math.min(s,n))}class p6{constructor(s,e){this._element=s,this._dragDropRegistry=e,this._itemPositions=[],this.orientation="vertical",this._previousSwap={drag:null,delta:0,overlaps:!1}}start(s){this.withItems(s)}sort(s,e,t,r){const l=this._itemPositions,d=this._getItemIndexFromPointerPosition(s,e,t,r);if(-1===d&&l.length>0)return null;const o="horizontal"===this.orientation,a=l.findIndex(ue=>ue.drag===s),c=l[d],h=c.clientRect,f=a>d?1:-1,b=this._getItemOffsetPx(l[a].clientRect,h,f),V=this._getSiblingOffsetPx(a,l,f),X=l.slice();return function h6(n,s,e){const t=e_(s,n.length-1),r=e_(e,n.length-1);if(t===r)return;const l=n[t],d=r{if(X[je]===ue)return;const Pt=ue.drag===s,Gt=Pt?b:V,ji=Pt?s.getPlaceholderElement():ue.drag.getRootElement();ue.offset+=Gt,o?(ji.style.transform=Ow(`translate3d(${Math.round(ue.offset)}px, 0, 0)`,ue.initialTransform),Kg(ue.clientRect,0,Gt)):(ji.style.transform=Ow(`translate3d(0, ${Math.round(ue.offset)}px, 0)`,ue.initialTransform),Kg(ue.clientRect,Gt,0))}),this._previousSwap.overlaps=DM(h,e,t),this._previousSwap.drag=c.drag,this._previousSwap.delta=o?r.x:r.y,{previousIndex:a,currentIndex:d}}enter(s,e,t,r){const l=null==r||r<0?this._getItemIndexFromPointerPosition(s,e,t):r,d=this._activeDraggables,o=d.indexOf(s),a=s.getPlaceholderElement();let c=d[l];if(c===s&&(c=d[l+1]),!c&&(null==l||-1===l||l-1&&d.splice(o,1),c&&!this._dragDropRegistry.isDragging(c)){const u=c.getRootElement();u.parentElement.insertBefore(a,u),d.splice(l,0,s)}else en(this._element).appendChild(a),d.push(s);a.style.transform="",this._cacheItemPositions()}withItems(s){this._activeDraggables=s.slice(),this._cacheItemPositions()}withSortPredicate(s){this._sortPredicate=s}reset(){this._activeDraggables.forEach(s=>{const e=s.getRootElement();if(e){const t=this._itemPositions.find(r=>r.drag===s)?.initialTransform;e.style.transform=t||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(s){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(t=>t.drag===s)}updateOnScroll(s,e){this._itemPositions.forEach(({clientRect:t})=>{Kg(t,s,e)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()})}_cacheItemPositions(){const s="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(e=>{const t=e.getVisibleElement();return{drag:e,offset:0,initialTransform:t.style.transform||"",clientRect:EM(t)}}).sort((e,t)=>s?e.clientRect.left-t.clientRect.left:e.clientRect.top-t.clientRect.top)}_getItemOffsetPx(s,e,t){const r="horizontal"===this.orientation;let l=r?e.left-s.left:e.top-s.top;return-1===t&&(l+=r?e.width-s.width:e.height-s.height),l}_getSiblingOffsetPx(s,e,t){const r="horizontal"===this.orientation,l=e[s].clientRect,d=e[s+-1*t];let o=l[r?"width":"height"]*t;if(d){const a=r?"left":"top",c=r?"right":"bottom";-1===t?o-=d.clientRect[a]-l[c]:o+=l[a]-d.clientRect[c]}return o}_shouldEnterAsFirstChild(s,e){if(!this._activeDraggables.length)return!1;const t=this._itemPositions,r="horizontal"===this.orientation;if(t[0].drag!==this._activeDraggables[0]){const d=t[t.length-1].clientRect;return r?s>=d.right:e>=d.bottom}{const d=t[0].clientRect;return r?s<=d.left:e<=d.top}}_getItemIndexFromPointerPosition(s,e,t,r){const l="horizontal"===this.orientation,d=this._itemPositions.findIndex(({drag:o,clientRect:a})=>{if(o===s)return!1;if(r){const c=l?r.x:r.y;if(o===this._previousSwap.drag&&this._previousSwap.overlaps&&c===this._previousSwap.delta)return!1}return l?e>=Math.floor(a.left)&&e=Math.floor(a.top)&&t!0,this.sortPredicate=()=>!0,this.beforeStarted=new Te.x,this.entered=new Te.x,this.exited=new Te.x,this.dropped=new Te.x,this.sorted=new Te.x,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=Dt.w0.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new Te.x,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function o6(n=0,s=Gc.z){return n<0&&(n=0),(0,yu.H)(n,n,s)}(0,sp).pipe(Ge(this._stopScrollTimers)).subscribe(()=>{const d=this._scrollNode,o=this.autoScrollStep;1===this._verticalScrollDirection?d.scrollBy(0,-o):2===this._verticalScrollDirection&&d.scrollBy(0,o),1===this._horizontalScrollDirection?d.scrollBy(-o,0):2===this._horizontalScrollDirection&&d.scrollBy(o,0)})},this.element=en(s),this._document=t,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new M1(t),this._sortStrategy=new p6(this.element,e),this._sortStrategy.withSortPredicate((d,o)=>this.sortPredicate(d,o,this))}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(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(s,e,t,r){this._draggingStarted(),null==r&&this.sortingDisabled&&(r=this._draggables.indexOf(s)),this._sortStrategy.enter(s,e,t,r),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:s,container:this,currentIndex:this.getItemIndex(s)})}exit(s){this._reset(),this.exited.next({item:s,container:this})}drop(s,e,t,r,l,d,o,a={}){this._reset(),this.dropped.next({item:s,currentIndex:e,previousIndex:t,container:this,previousContainer:r,isPointerOverContainer:l,distance:d,dropPoint:o,event:a})}withItems(s){const e=this._draggables;return this._draggables=s,s.forEach(t=>t._withDropContainer(this)),this.isDragging()&&(e.filter(r=>r.isDragging()).every(r=>-1===s.indexOf(r))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(s){return this._sortStrategy.direction=s,this}connectedTo(s){return this._siblings=s.slice(),this}withOrientation(s){return this._sortStrategy.orientation=s,this}withScrollableParents(s){const e=en(this.element);return this._scrollableElements=-1===s.indexOf(e)?[e,...s]:s.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(s){return this._isDragging?this._sortStrategy.getItemIndex(s):this._draggables.indexOf(s)}isReceiving(){return this._activeSiblings.size>0}_sortItem(s,e,t,r){if(this.sortingDisabled||!this._clientRect||!x1(this._clientRect,.05,e,t))return;const l=this._sortStrategy.sort(s,e,t,r);l&&this.sorted.next({previousIndex:l.previousIndex,currentIndex:l.currentIndex,container:this,item:s})}_startScrollingIfNecessary(s,e){if(this.autoScrollDisabled)return;let t,r=0,l=0;if(this._parentPositions.positions.forEach((d,o)=>{o===this._document||!d.clientRect||t||x1(d.clientRect,.05,s,e)&&([r,l]=function m6(n,s,e,t){const r=B1(s,t),l=V1(s,e);let d=0,o=0;if(r){const a=n.scrollTop;1===r?a>0&&(d=1):n.scrollHeight-a>n.clientHeight&&(d=2)}if(l){const a=n.scrollLeft;1===l?a>0&&(o=1):n.scrollWidth-a>n.clientWidth&&(o=2)}return[d,o]}(o,d.clientRect,s,e),(r||l)&&(t=o))}),!r&&!l){const{width:d,height:o}=this._viewportRuler.getViewportSize(),a={width:d,height:o,top:0,right:d,bottom:o,left:0};r=B1(a,e),l=V1(a,s),t=window}t&&(r!==this._verticalScrollDirection||l!==this._horizontalScrollDirection||t!==this._scrollNode)&&(this._verticalScrollDirection=r,this._horizontalScrollDirection=l,this._scrollNode=t,(r||l)&&t?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const s=en(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=s.msScrollSnapType||s.scrollSnapType||"",s.scrollSnapType=s.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const s=en(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(s).clientRect}_reset(){this._isDragging=!1;const s=en(this.element).style;s.scrollSnapType=s.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(e=>e._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(s,e){return null!=this._clientRect&&DM(this._clientRect,s,e)}_getSiblingContainerFromPosition(s,e,t){return this._siblings.find(r=>r._canReceive(s,e,t))}_canReceive(s,e,t){if(!this._clientRect||!DM(this._clientRect,e,t)||!this.enterPredicate(s,this))return!1;const r=this._getShadowRoot().elementFromPoint(e,t);if(!r)return!1;const l=en(this.element);return r===l||l.contains(r)}_startReceiving(s,e){const t=this._activeSiblings;!t.has(s)&&e.every(r=>this.enterPredicate(r,this)||this._draggables.indexOf(r)>-1)&&(t.add(s),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(s){this._activeSiblings.delete(s),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(s=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(s);e&&this._sortStrategy.updateOnScroll(e.top,e.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const s=Rc(en(this.element));this._cachedShadowRoot=s||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const s=this._sortStrategy.getActiveItemsSnapshot().filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,s))}}function B1(n,s){const{top:e,bottom:t,height:r}=n,l=.05*r;return s>=e-l&&s<=e+l?1:s>=t-l&&s<=t+l?2:0}function V1(n,s){const{left:e,right:t,width:r}=n,l=.05*r;return s>=e-l&&s<=e+l?1:s>=t-l&&s<=t+l?2:0}const Nw=Ts({passive:!1,capture:!0});let g6=(()=>{class n{constructor(e,t){this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=r=>r.isDragging(),this.pointerMove=new Te.x,this.pointerUp=new Te.x,this.scroll=new Te.x,this._preventDefaultWhileDragging=r=>{this._activeDragInstances.length>0&&r.preventDefault()},this._persistentTouchmoveListener=r=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&r.preventDefault(),this.pointerMove.next(r))},this._document=t}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,Nw)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,Nw)}startDragging(e,t){if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){const r=t.type.startsWith("touch");this._globalListeners.set(r?"touchend":"mouseup",{handler:l=>this.pointerUp.next(l),options:!0}).set("scroll",{handler:l=>this.scroll.next(l),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:Nw}),r||this._globalListeners.set("mousemove",{handler:l=>this.pointerMove.next(l),options:Nw}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((l,d)=>{this._document.addEventListener(d,l.handler,l.options)})})}}stopDragging(e){const t=this._activeDragInstances.indexOf(e);t>-1&&(this._activeDragInstances.splice(t,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(e){return this._activeDragInstances.indexOf(e)>-1}scrolled(e){const t=[this.scroll];return e&&e!==this._document&&t.push(new oi.y(r=>this._ngZone.runOutsideAngular(()=>{const d=o=>{this._activeDragInstances.length&&r.next(o)};return e.addEventListener("scroll",d,!0),()=>{e.removeEventListener("scroll",d,!0)}}))),(0,xi.T)(...t)}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((e,t)=>{this._document.removeEventListener(t,e.handler,e.options)}),this._globalListeners.clear()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.R0b),i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const _6={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let b6=(()=>{class n{constructor(e,t,r,l){this._document=e,this._ngZone=t,this._viewportRuler=r,this._dragDropRegistry=l}createDrag(e,t=_6){return new u6(e,t,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new f6(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0),i.LFG(i.R0b),i.LFG(va),i.LFG(g6))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),y6=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[b6],imports:[wn]}),n})(),T6=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),k6=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[T6,ct,ct]}),n})(),q6=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[Dr,ct,ct]}),n})();new i.OlP("mat-selectsearch-default-options");let J6=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[w.ez,Ro,ta,Ew,Nl,ew,qu]]}),n})(),Q6=(()=>{class n extends yb{format(e,t){return"input"===t?`${e.getDate().toString()}.${(e.getMonth()+1).toString()}.${e.getFullYear()}`:e.toDateString()}}return n.\u0275fac=function(){let s;return function(t){return(s||(s=i.n5z(n)))(t||n)}}(),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const K6={parse:{dateInput:{month:"short",year:"numeric",day:"numeric"}},display:{dateInput:"input",monthYearLabel:{year:"numeric",month:"numeric"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let Y1=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[{provide:ei,useClass:Q6},{provide:Sr,useValue:K6}],imports:[w.ez,Ew,dw,Xy,yM,y6,Ks,Pc,_M,Vs,ew,xM,Nl,Eg,ta,qu,Rl,Ro,XC,Dr,sD,UN,k6,gM,q6,ap,Uu,J6,rs,Qu,MC,m1,FL]}),n})();i.B6R(fD,[w.O5,na,It,_m,Zv,Wc,Rn,vn,mD],[tt,oD]),new Date(324721404e5).valueOf();let iz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[w.ez,ta,Nl,Pc,Y1,Ks,Rl,Ro,XC,xM]}),n})(),nz=(()=>{class n{constructor(e,t){this.auth=e,this.router=t}ngOnInit(){this.auth.isLoggedIn()&&this.router.navigate([""],{queryParamsHandling:"merge"})}startAuth(){this.auth.startAuthentication()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Xu),i.Y36(Ji))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-login-screen"]],decls:11,vars:6,consts:[[1,"container","login-con"],[1,"row"],[1,"ml-auto","mr-auto","d-flex","flex-column","align-items-center"],[1,"mb-3"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h4",3),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.TgZ(6,"button",4),i.NdJ("click",function(){return t.startAuth()}),i._uU(7),i.ALo(8,"translate"),i.TgZ(9,"mat-icon"),i._uU(10," login "),i.qZA()()()()()),2&e&&(i.xp6(4),i.hij(" ",i.lcZ(5,2,"SHARED_LIB.PERUN.LOGIN.TEXT")," "),i.xp6(3),i.hij(" ",i.lcZ(8,4,"SHARED_LIB.PERUN.LOGIN.SIGN_IN")," "))},dependencies:[It,ki,tt],styles:[".login-con[_ngcontent-%COMP%]{padding:120px 0}"]}),n})();function rz(n,s){1&n&&(i.TgZ(0,"perun-web-apps-alert",8),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.WRONG_LOGIN_OR_PASSWORD")," "))}let az=(()=>{class n{constructor(e){this.authzService=e,this.usernameCtrl=new Vi(null,[Pi.required]),this.passwordCtrl=new Vi(null,[Pi.required]),this.wrongUsernameOrPassword=!1}startAuth(){this.usernameCtrl.invalid||this.passwordCtrl.invalid||(sessionStorage.setItem("basicUsername",this.usernameCtrl.value),sessionStorage.setItem("basicPassword",this.passwordCtrl.value),this.authzService.getPerunPrincipal().subscribe({next:e=>{sessionStorage.setItem("baPrincipal",JSON.stringify(e)),location.reload()},error:()=>{this.wrongUsernameOrPassword=!0}}))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Fa))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-login-screen-service-access"]],decls:28,vars:23,consts:[[1,"container","login-con","vo-theme","top-padding"],[1,"row"],[1,"ml-auto","mr-auto","d-flex","flex-column","align-items-center"],["alert_type","error",4,"ngIf"],["appearance","outline"],["matInput","","required","",3,"formControl","keyup.enter"],["matInput","","required","",3,"formControl","type","keyup.enter"],["mat-raised-button","",1,"black",3,"disabled","click"],["alert_type","error"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h2"),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.YNc(6,rz,3,3,"perun-web-apps-alert",3),i.TgZ(7,"mat-form-field",4)(8,"mat-label"),i._uU(9),i.ALo(10,"translate"),i.qZA(),i.TgZ(11,"input",5),i.NdJ("keyup.enter",function(){return t.startAuth()}),i.qZA(),i.TgZ(12,"mat-error"),i._uU(13),i.ALo(14,"translate"),i.qZA()(),i.TgZ(15,"mat-form-field",4)(16,"mat-label"),i._uU(17),i.ALo(18,"translate"),i.qZA(),i.TgZ(19,"input",6),i.NdJ("keyup.enter",function(){return t.startAuth()}),i.qZA(),i.TgZ(20,"mat-error"),i._uU(21),i.ALo(22,"translate"),i.qZA()(),i.TgZ(23,"button",7),i.NdJ("click",function(){return t.startAuth()}),i._uU(24),i.ALo(25,"translate"),i.TgZ(26,"mat-icon"),i._uU(27," login "),i.qZA()()()()()),2&e&&(i.xp6(4),i.Oqu(i.lcZ(5,11,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.LABEL")),i.xp6(2),i.Q6J("ngIf",t.wrongUsernameOrPassword),i.xp6(3),i.Oqu(i.lcZ(10,13,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME")),i.xp6(2),i.Q6J("formControl",t.usernameCtrl),i.xp6(2),i.hij(" ",i.lcZ(14,15,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME_ERROR")," "),i.xp6(4),i.Oqu(i.lcZ(18,17,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD")),i.xp6(2),i.Q6J("formControl",t.passwordCtrl)("type","password"),i.xp6(2),i.hij(" ",i.lcZ(22,19,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD_ERROR")," "),i.xp6(2),i.Q6J("disabled",t.usernameCtrl.invalid||t.passwordCtrl.invalid),i.xp6(1),i.hij(" ",i.lcZ(25,21,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.SIGN_IN")," "))},dependencies:[w.O5,It,ki,Da,nr,Pr,Nn,Fn,ls,kr,La,na,tt],styles:[".top-padding[_ngcontent-%COMP%]{padding:120px 0}mat-form-field.mat-form-field[_ngcontent-%COMP%]{font-size:14px;width:250px}.black[_ngcontent-%COMP%]{background-color:#000;color:#fff}"]}),n})(),sz=(()=>{class n{transform(e){return e.length>50?e.substring(0,50)+"...":e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"publicationTabLabel",type:n,pure:!0}),n})();const oz=["stepper"];function lz(n,s){1&n&&i._UZ(0,"mat-spinner",5)}function cz(n,s){1&n&&(i._uU(0),i.ALo(1,"translate")),2&n&&i.Oqu(i.lcZ(1,1,"CREATE_SINGLE_PUBLICATION.PUBLICATION"))}function dz(n,s){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"CREATE_SINGLE_PUBLICATION.REQUIRED_ERROR")," "))}function uz(n,s){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"CREATE_SINGLE_PUBLICATION.REQUIRED_ERROR")," "))}function hz(n,s){if(1&n&&(i.TgZ(0,"mat-option",36),i._uU(1),i.qZA()),2&n){const e=s.$implicit;i.Q6J("value",e),i.xp6(1),i.hij(" ",e.name," ")}}function pz(n,s){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"CREATE_SINGLE_PUBLICATION.REQUIRED_ERROR")," "))}function fz(n,s){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"CREATE_SINGLE_PUBLICATION.REQUIRED_ERROR")," "))}function mz(n,s){1&n&&(i._uU(0),i.ALo(1,"translate")),2&n&&i.hij(" ",i.lcZ(1,1,"CREATE_SINGLE_PUBLICATION.CHECK")," ")}function gz(n,s){1&n&&(i.TgZ(0,"div",29),i._UZ(1,"mat-spinner",5),i.TgZ(2,"h5",37),i._uU(3),i.ALo(4,"translate"),i.qZA()()),2&n&&(i.xp6(3),i.hij(" ",i.lcZ(4,1,"CREATE_SINGLE_PUBLICATION.CHECK_PERFORM")," "))}function _z(n,s){1&n&&(i.TgZ(0,"perun-web-apps-alert",38)(1,"div",29)(2,"span",39),i._uU(3),i.ALo(4,"translate"),i.ALo(5,"translate"),i.qZA(),i.TgZ(6,"span",40)(7,"mat-icon",41),i._uU(8,"fiber_manual_record"),i.qZA(),i._uU(9),i.ALo(10,"translate"),i.qZA(),i.TgZ(11,"span",42)(12,"mat-icon",41),i._uU(13,"fiber_manual_record"),i.qZA(),i._uU(14),i.ALo(15,"translate"),i.qZA()()()),2&n&&(i.xp6(3),i.AsE(" ",i.lcZ(4,4,"CREATE_SINGLE_PUBLICATION.SIMILAR_FOUND"),". ",i.lcZ(5,6,"CREATE_SINGLE_PUBLICATION.CHECK_BELOW"),". "),i.xp6(6),i.hij(" ",i.lcZ(10,8,"CREATE_SINGLE_PUBLICATION.IS_BELOW")," "),i.xp6(5),i.hij(" ",i.lcZ(15,10,"CREATE_SINGLE_PUBLICATION.NOT_BELOW")," "))}function bz(n,s){1&n&&(i._uU(0),i.ALo(1,"translate")),2&n&&i.Oqu(i.lcZ(1,1,"CREATE_SINGLE_PUBLICATION.CHECK"))}function yz(n,s){1&n&&i._UZ(0,"mat-spinner",5)}const Cz=function(){return["id","lock","title","reportedBy","year","category","thankedTo","cite"]};function wz(n,s){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-publications-list",48),i.NdJ("publicationSelector",function(r){i.CHM(e),i.oxw(2);const l=i.MAs(1),d=i.oxw(2);return i.KtG(d.loadPublicationDetail(r,l))}),i.qZA()}if(2&n){const e=i.oxw(4);i.Q6J("displayedColumns",i.DdM(4,Cz))("disabledRouting",!0)("openInTab",!0)("publications",e.filteredPublications)}}function Az(n,s){if(1&n&&(i.TgZ(0,"div",46),i.YNc(1,yz,1,0,"mat-spinner",3),i.YNc(2,wz,1,5,"perun-web-apps-publications-list",47),i.qZA()),2&n){const e=i.oxw(3);i.xp6(1),i.Q6J("ngIf",e.innerLoading),i.xp6(1),i.Q6J("ngIf",!e.innerLoading)}}function vz(n,s){if(1&n&&(i._uU(0),i.ALo(1,"publicationTabLabel")),2&n){const e=i.oxw(4);i.hij(" ",i.lcZ(1,1,e.selectedPubTitle)," ")}}function Tz(n,s){if(1&n&&(i.TgZ(0,"div",49),i._UZ(1,"perun-web-apps-publication-detail",50),i.qZA()),2&n){const e=i.oxw(4);i.xp6(1),i.Q6J("publicationId",e.selectedPubId)("disableRouting",!0)("similarityCheck",!0)}}function xz(n,s){1&n&&(i.TgZ(0,"mat-tab"),i.YNc(1,vz,2,3,"ng-template",44),i.YNc(2,Tz,2,3,"ng-template",45),i.qZA())}function Mz(n,s){if(1&n&&(i.TgZ(0,"mat-tab-group",null,43)(2,"mat-tab"),i.YNc(3,bz,2,3,"ng-template",44),i.YNc(4,Az,3,2,"ng-template",45),i.qZA(),i.YNc(5,xz,3,0,"mat-tab",15),i.qZA()),2&n){const e=i.oxw(2);i.xp6(5),i.Q6J("ngIf",null!==e.selectedPubId)}}function Sz(n,s){1&n&&(i.TgZ(0,"div",29)(1,"mat-icon",51),i._uU(2,"check_circle"),i.qZA(),i.TgZ(3,"h5",52),i._uU(4),i.ALo(5,"translate"),i.qZA()()),2&n&&(i.xp6(4),i.hij(" ",i.lcZ(5,1,"CREATE_SINGLE_PUBLICATION.NO_SIMILAR")," "))}function Ez(n,s){if(1&n){const e=i.EpF();i.TgZ(0,"div",26)(1,"button",53),i.NdJ("click",function(){i.CHM(e);const r=i.oxw(2);return i.KtG(r.redirect(["create-publication"]))}),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"button",54),i._uU(5),i.ALo(6,"translate"),i.qZA(),i.TgZ(7,"button",55),i._uU(8),i.ALo(9,"translate"),i.qZA()()}2&n&&(i.xp6(2),i.hij(" ",i.lcZ(3,3,"CREATE_SINGLE_PUBLICATION.CANCEL")," "),i.xp6(3),i.hij(" ",i.lcZ(6,5,"CREATE_SINGLE_PUBLICATION.PREV")," "),i.xp6(3),i.hij(" ",i.lcZ(9,7,"CREATE_SINGLE_PUBLICATION.CREATE")," "))}function Dz(n,s){1&n&&(i._uU(0),i.ALo(1,"translate")),2&n&&i.hij(" ",i.lcZ(1,1,"CREATE_SINGLE_PUBLICATION.AUTHORS")," ")}function Hz(n,s){1&n&&i._UZ(0,"mat-spinner",5)}function Pz(n,s){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-add-authors",58),i.NdJ("yourselfAsAnAuthor",function(r){i.CHM(e);const l=i.oxw(3);return i.KtG(l.yourselfAsAnAuthor=r)}),i.qZA()}if(2&n){const e=i.oxw(3);i.Q6J("publication",e.publication)("selection",e.authorsSelection)("disableRouting",!0)}}function kz(n,s){if(1&n&&(i.TgZ(0,"div")(1,"perun-web-apps-alert",56),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.YNc(4,Pz,1,3,"perun-web-apps-add-authors",57),i.qZA()),2&n){const e=i.oxw(2);i.xp6(2),i.Oqu(i.lcZ(3,2,"CREATE_SINGLE_PUBLICATION.PUB_CREATED")),i.xp6(2),i.Q6J("ngIf",null!==e.publication)}}function Rz(n,s){1&n&&(i.TgZ(0,"div",26)(1,"button",59),i._uU(2),i.ALo(3,"translate"),i.qZA()()),2&n&&(i.xp6(2),i.hij(" ",i.lcZ(3,1,"CREATE_SINGLE_PUBLICATION.NEXT")," "))}function Lz(n,s){1&n&&(i._uU(0),i.ALo(1,"translate")),2&n&&i.hij(" ",i.lcZ(1,1,"CREATE_SINGLE_PUBLICATION.THANKS")," ")}function Iz(n,s){if(1&n&&i._UZ(0,"perun-web-apps-add-thanks",60),2&n){const e=i.oxw(2);i.Q6J("publication",e.publication)("selection",e.thanksSelection)}}function Oz(n,s){1&n&&i._UZ(0,"mat-spinner",5)}function Bz(n,s){if(1&n){const e=i.EpF();i.TgZ(0,"mat-horizontal-stepper",6,7),i.NdJ("selectionChange",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.stepChanged(r))}),i.TgZ(2,"mat-step",8),i.YNc(3,cz,2,3,"ng-template",9),i.TgZ(4,"form",10)(5,"h5",11),i._uU(6),i.ALo(7,"translate"),i.qZA(),i.TgZ(8,"div",12)(9,"mat-checkbox",13),i._uU(10),i.ALo(11,"translate"),i.qZA(),i.TgZ(12,"mat-form-field"),i._UZ(13,"input",14),i.ALo(14,"translate"),i.YNc(15,dz,3,3,"mat-error",15),i.qZA(),i.TgZ(16,"mat-form-field",16),i.NdJ("click",function(){i.CHM(e);const r=i.MAs(23);return i.KtG(r.open())}),i.TgZ(17,"mat-label"),i._uU(18),i.ALo(19,"translate"),i.qZA(),i._UZ(20,"input",17)(21,"mat-datepicker-toggle",18),i.TgZ(22,"mat-datepicker",19,20),i.NdJ("yearSelected",function(r){i.CHM(e);const l=i.MAs(23),d=i.oxw();return i.KtG(d.chosenYearHandler(r,l))}),i.qZA(),i.YNc(24,uz,3,3,"mat-error",15),i.qZA(),i.TgZ(25,"mat-form-field")(26,"mat-select",21),i.ALo(27,"translate"),i.YNc(28,hz,2,2,"mat-option",22),i.qZA(),i.YNc(29,pz,3,3,"mat-error",15),i.qZA(),i.TgZ(30,"mat-form-field"),i._UZ(31,"input",23),i.ALo(32,"translate"),i.qZA(),i.TgZ(33,"mat-form-field"),i._UZ(34,"input",24),i.ALo(35,"translate"),i.qZA(),i.TgZ(36,"mat-form-field")(37,"textarea",25),i.ALo(38,"translate"),i._uU(39," "),i.qZA(),i.YNc(40,fz,3,3,"mat-error",15),i.qZA()()(),i.TgZ(41,"div",26)(42,"button",27),i._uU(43),i.ALo(44,"translate"),i.qZA()()(),i.TgZ(45,"mat-step",28),i.YNc(46,mz,2,3,"ng-template",9),i.TgZ(47,"form",29)(48,"h5",11),i._uU(49),i.ALo(50,"translate"),i.qZA(),i.YNc(51,gz,5,3,"div",30),i.YNc(52,_z,16,12,"perun-web-apps-alert",31),i.YNc(53,Mz,6,1,"mat-tab-group",15),i.YNc(54,Sz,6,3,"div",30),i.qZA(),i.YNc(55,Ez,10,9,"div",32),i.qZA(),i.TgZ(56,"mat-step"),i.YNc(57,Dz,2,3,"ng-template",9),i.TgZ(58,"h5",11),i._uU(59),i.ALo(60,"translate"),i.qZA(),i.YNc(61,Hz,1,0,"mat-spinner",3),i.YNc(62,kz,5,4,"div",15),i.YNc(63,Rz,4,3,"div",32),i.qZA(),i.TgZ(64,"mat-step"),i.YNc(65,Lz,2,3,"ng-template",9),i.TgZ(66,"h5",11),i._uU(67),i.ALo(68,"translate"),i.qZA(),i.YNc(69,Iz,1,2,"perun-web-apps-add-thanks",33),i.YNc(70,Oz,1,0,"mat-spinner",3),i.TgZ(71,"div",26)(72,"button",34),i._uU(73),i.ALo(74,"translate"),i.qZA(),i.TgZ(75,"button",35),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.showDialogAndRedirect(["all-publications"],r.publication.id))}),i._uU(76),i.ALo(77,"translate"),i.qZA()()()()}if(2&n){const e=i.MAs(23),t=i.oxw();i.xp6(2),i.Q6J("stepControl",t.publicationControl),i.xp6(2),i.Q6J("formGroup",t.publicationControl),i.xp6(2),i.hij(" ",i.lcZ(7,36,"CREATE_SINGLE_PUBLICATION.PUB_INFO")," "),i.xp6(4),i.hij(" ",i.lcZ(11,38,"CREATE_SINGLE_PUBLICATION.ADD_MYSELF")," "),i.xp6(3),i.s9C("placeholder",i.lcZ(14,40,"CREATE_SINGLE_PUBLICATION.SET_TITLE")),i.xp6(2),i.Q6J("ngIf",t.publicationControl.hasError("required","title")),i.xp6(3),i.Oqu(i.lcZ(19,42,"CREATE_SINGLE_PUBLICATION.YEAR")),i.xp6(2),i.Q6J("max",t.maxYear)("matDatepicker",e),i.xp6(1),i.Q6J("for",e),i.xp6(3),i.Q6J("ngIf",t.publicationControl.hasError("required","year")),i.xp6(2),i.s9C("placeholder",i.lcZ(27,44,"CREATE_SINGLE_PUBLICATION.CATEGORY")),i.xp6(2),i.Q6J("ngForOf",t.categories),i.xp6(1),i.Q6J("ngIf",t.publicationControl.hasError("required","category")),i.xp6(2),i.s9C("placeholder",i.lcZ(32,46,"CREATE_SINGLE_PUBLICATION.ISBN")),i.xp6(3),i.s9C("placeholder",i.lcZ(35,48,"CREATE_SINGLE_PUBLICATION.DOI")),i.xp6(3),i.s9C("placeholder",i.lcZ(38,50,"CREATE_SINGLE_PUBLICATION.CITE")),i.xp6(3),i.Q6J("ngIf",t.publicationControl.hasError("required","cite")),i.xp6(2),i.Q6J("disabled",t.publicationControl.invalid),i.xp6(1),i.hij(" ",i.lcZ(44,52,"CREATE_SINGLE_PUBLICATION.NEXT")," "),i.xp6(2),i.Q6J("editable",!t.duplicateCheck&&!t.publicationControl.invalid),i.xp6(4),i.hij(" ",i.lcZ(50,54,"CREATE_SINGLE_PUBLICATION.SIMILARITY_CHECK")," "),i.xp6(2),i.Q6J("ngIf",t.innerLoading),i.xp6(1),i.Q6J("ngIf",!t.innerLoading&&!t.duplicateCheck),i.xp6(1),i.Q6J("ngIf",!t.innerLoading&&!t.duplicateCheck),i.xp6(1),i.Q6J("ngIf",!t.innerLoading&&t.duplicateCheck),i.xp6(1),i.Q6J("ngIf",!t.innerLoading),i.xp6(4),i.hij(" ",i.lcZ(60,56,"CREATE_SINGLE_PUBLICATION.ADD_AUTHORS")," "),i.xp6(2),i.Q6J("ngIf",t.innerLoading),i.xp6(1),i.Q6J("ngIf",!t.innerLoading),i.xp6(1),i.Q6J("ngIf",!t.innerLoading),i.xp6(4),i.hij(" ",i.lcZ(68,58,"CREATE_SINGLE_PUBLICATION.ADD_THANKS")," "),i.xp6(2),i.Q6J("ngIf",null!==t.publication),i.xp6(1),i.Q6J("ngIf",t.innerLoading),i.xp6(3),i.hij(" ",i.lcZ(74,60,"CREATE_SINGLE_PUBLICATION.PREV")," "),i.xp6(3),i.hij(" ",i.lcZ(77,62,"CREATE_SINGLE_PUBLICATION.FINISH")," ")}}const Vz=cf,Nz={parse:{dateInput:"YYYY"},display:{dateInput:"YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}};let Fz=(()=>{class n{constructor(e,t,r,l,d,o,a,c){this.formBuilder=e,this.cabinetService=t,this.dialog=r,this.router=l,this.notificator=d,this.translate=o,this.storeService=a,this.userService=c,this.similarPublications=[],this.filteredPublications=[],this.categories=[],this.publication=null,this.authorsSelection=new tn(!0,[]),this.yourselfAsAnAuthor=!0,this.thanksSelection=new tn(!0,[]),this.innerLoading=!1,this.loading=!1,this.duplicateCheck=!1,this.selectedPubId=null,this.selectedPubTitle=""}ngOnInit(){this.loading=!0,this.publicationControl=this.formBuilder.group({addAuthor:[!0],title:["",Pi.required],year:["",Pi.required],category:["",Pi.required],isbn:[""],doi:[""],cite:["",Pi.required]}),this.maxYear=Vz(),this.cabinetService.getCategories().subscribe(e=>{this.categories=e,this.loading=!1})}chosenYearHandler(e,t){this.publicationControl.get("year").setValue(e),t.close()}createTimeout(){setTimeout(()=>{this.notificator.showSuccess(this.translate.instant("CREATE_SINGLE_PUBLICATION.SUCCESS")),this.duplicateCheck=!0,this.innerLoading=!1},1e3)}createPublication(){this.innerLoading=!0,this.duplicateCheck=!0;const e={publication:{id:0,beanName:"Publication",title:this.publicationControl.get("title").value,categoryId:this.publicationControl.get("category").value.id,year:this.publicationControl.get("year").value.year(),isbn:this.publicationControl.get("isbn").value,doi:this.publicationControl.get("doi").value,main:this.publicationControl.get("cite").value}};this.userService.getRichUserWithAttributes(this.storeService.getPerunPrincipal().userId).subscribe(t=>{const r=t.userAttributes.filter(l=>"preferredMail"===l.friendlyName);0!==r.length&&(e.publication.createdBy=r[0].value),this.cabinetService.createPublication(e).subscribe(l=>{this.publication=l,this.publicationControl.get("addAuthor").value?this.cabinetService.createAutorship({authorship:{id:0,beanName:"Authorship",publicationId:this.publication.id,userId:t.id}}).subscribe(()=>{this.createTimeout()},()=>this.innerLoading=!1):this.createTimeout()},()=>this.innerLoading=!1)},()=>this.innerLoading=!1)}similarCheck(){this.innerLoading=!0;const e=this.publicationControl.get("title").value,t=this.publicationControl.get("doi").value?this.publicationControl.get("doi").value:null,r=this.publicationControl.get("isbn").value?this.publicationControl.get("isbn").value:null;this.cabinetService.findSimilarPublications(e,t,r).subscribe(l=>{this.similarPublications=l,this.filteredPublications=l,setTimeout(()=>{this.duplicateCheck=0===l.length,this.innerLoading=!1},2e3)})}stepChanged(e){1===e.selectedIndex&&this.similarCheck(),2===e.selectedIndex&&null===this.publication&&this.createPublication()}redirect(e){this.router.navigate(e,{queryParamsHandling:"preserve"})}showDialogAndRedirect(e,t){if(e.push(String(t)),this.yourselfAsAnAuthor)this.redirect(e);else{const r=Ni();r.width="500px",r.data={theme:"user-theme",title:this.translate.instant("CREATE_SINGLE_PUBLICATION.NOT_AN_AUTHOR_DIALOG_TITLE"),alert:this.translate.instant("CREATE_SINGLE_PUBLICATION.NOT_AN_AUTHOR_DIALOG_ALERT"),items:[],type:"confirmation",showAsk:!1},this.dialog.open(Dx,r).afterClosed().subscribe(d=>{d&&this.redirect(e)})}}loadPublicationDetail(e,t){this.selectedPubId=e.id,this.selectedPubTitle=e.title,t.selectedIndex=1}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(yg),i.Y36(fi),i.Y36(fn),i.Y36(Ji),i.Y36(Un),i.Y36(oh),i.Y36(yn),i.Y36(on))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-create-single-publication-page"]],viewQuery:function(e,t){if(1&e&&i.Gf(oz,5),2&e){let r;i.iGM(r=i.CRH())&&(t.stepper=r.first)}},features:[i._Bn([{provide:ei,useClass:Zg,deps:[Ds]},{provide:Sr,useValue:Nz}])],decls:9,vars:5,consts:[[1,"user-theme"],[1,"page-subtitle","d-flex"],[1,"add-icon","mr-1"],["class","ml-auto mr-auto",4,"ngIf"],[3,"selectionChange",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"selectionChange"],["stepper",""],[3,"stepControl"],["matStepLabel",""],[3,"formGroup"],[1,"mt-2"],[1,"dialog-container","w-50"],["labelPosition","before","formControlName","addAuthor",1,"mt-3"],["matInput","","formControlName","title","required","",3,"placeholder"],[4,"ngIf"],[3,"click"],["matInput","","required","","formControlName","year","readonly","",1,"disable",3,"max","matDatepicker"],["matSuffix","",3,"for"],["startView","multi-year","panelClass","year-picker",3,"yearSelected"],["sdp",""],["required","","formControlName","category",3,"placeholder"],[3,"value",4,"ngFor","ngForOf"],["matInput","","formControlName","isbn",3,"placeholder"],["matInput","","formControlName","doi",3,"placeholder"],["matInput","","formControlName","cite","required","",3,"placeholder"],[1,"actions"],["mat-flat-button","","color","accent","matStepperNext","",1,"ml-auto","mr-2",3,"disabled"],[3,"editable"],[1,"flex-container"],["class","flex-container",4,"ngIf"],["class","w-100","alert_type","warn",4,"ngIf"],["class","actions",4,"ngIf"],[3,"publication","selection",4,"ngIf"],["mat-flat-button","","matStepperPrevious","",1,"ml-auto"],["mat-flat-button","","color","accent",1,"ml-2",3,"click"],[3,"value"],[1,"ml-auto","mr-auto","mt-1","font-weight-bold"],["alert_type","warn",1,"w-100"],[1,"font-weight-bold"],[1,"mt-2","ml-3"],[1,"dot-icon"],[1,"ml-3"],["similarPublicationTabs",""],["matTabLabel",""],["matTabContent",""],[1,"flex-container","mb-2"],[3,"displayedColumns","disabledRouting","openInTab","publications","publicationSelector",4,"ngIf"],[3,"displayedColumns","disabledRouting","openInTab","publications","publicationSelector"],[1,"mt-4"],[3,"publicationId","disableRouting","similarityCheck"],[1,"ml-auto","mr-auto","passed-icon"],[1,"ml-auto","mr-auto","font-weight-bold"],["mat-flat-button","","type","button",1,"ml-2",3,"click"],["mat-flat-button","","type","button","matStepperPrevious","",1,"ml-auto"],["mat-flat-button","","color","accent","type","button","matStepperNext","",1,"ml-2"],["alert_type","info"],[3,"publication","selection","disableRouting","yourselfAsAnAuthor",4,"ngIf"],[3,"publication","selection","disableRouting","yourselfAsAnAuthor"],["mat-flat-button","","color","accent","matStepperNext","",1,"ml-auto"],[3,"publication","selection"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"h1",1)(2,"span")(3,"mat-icon",2),i._uU(4,"add_box"),i.qZA(),i._uU(5),i.ALo(6,"translate"),i.qZA()(),i.YNc(7,lz,1,0,"mat-spinner",3),i.YNc(8,Bz,78,64,"mat-horizontal-stepper",4),i.qZA()),2&e&&(i.xp6(5),i.hij(" ",i.lcZ(6,3,"CREATE_SINGLE_PUBLICATION.TITLE")," "),i.xp6(2),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},dependencies:[w.sg,w.O5,It,gd,ki,Mi,Da,nr,Pr,fp,La,Iy,Nn,Fn,Zm,ls,Ho,ko,Pp,IH,Dw,OH,zV,qV,fM,Wg,mM,ad,Uc,gN,tN,t1,eN,na,sf,Qg,w1,A1,tt,sz],styles:[".add-icon{font-size:32px;vertical-align:text-top}.dot-icon{font-size:small;vertical-align:-1px}.passed-icon{font-size:130px;color:#288619;margin-bottom:130px;padding-right:120px}.flex-container{display:flex;flex-direction:column}.year-picker .mat-calendar-period-button{pointer-events:none}.year-picker .mat-calendar-arrow{display:none}.actions{background-color:#fff;display:flex;margin-top:20px}.mat-horizontal-stepper-header{pointer-events:none!important}\n"],encapsulation:2}),n})();function jz(n,s){if(1&n&&(i.TgZ(0,"mat-option",14),i._uU(1),i.qZA()),2&n){const e=s.$implicit;i.Q6J("value",e),i.xp6(1),i.Oqu(e.friendlyName)}}function Yz(n,s){1&n&&(i.TgZ(0,"perun-web-apps-alert",15),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"IMPORT_PUBLICATIONS.INFO")," "))}function Uz(n,s){if(1&n&&i._UZ(0,"perun-web-apps-publications-list",16),2&n){const e=i.oxw(2);i.Q6J("publications",e.publications)("displayedColumns",e.displayedColumns)("selection",e.selected)("tableId",e.tableId)("disabledRouting",!0)("allowAlert",e.firstSearchDone)}}function zz(n,s){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"div")(2,"mat-form-field",5)(3,"mat-label"),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.TgZ(6,"mat-select",6),i.NdJ("closed",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.selectPubSystem())}),i.YNc(7,jz,2,2,"mat-option",7),i.qZA()(),i._UZ(8,"perun-web-apps-year-range",8),i.TgZ(9,"button",9),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.searchPublications())}),i.TgZ(10,"mat-icon"),i._uU(11,"search"),i.qZA(),i._uU(12),i.ALo(13,"translate"),i.qZA(),i.TgZ(14,"button",10),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.importPublications(r.selected.selected))}),i._uU(15),i.ALo(16,"translate"),i.qZA(),i.TgZ(17,"mat-checkbox",11),i.NdJ("ngModelChange",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.userAsAuthor=r)}),i._uU(18),i.ALo(19,"translate"),i.qZA()(),i.YNc(20,Yz,3,3,"perun-web-apps-alert",12),i.YNc(21,Uz,1,6,"perun-web-apps-publications-list",13),i.qZA()}if(2&n){const e=i.oxw();i.xp6(4),i.Oqu(i.lcZ(5,12,"IMPORT_PUBLICATIONS.EXT_PUB_SYSTEM")),i.xp6(2),i.Q6J("formControl",e.pubSystem),i.xp6(1),i.Q6J("ngForOf",e.publicationSystems),i.xp6(1),i.Q6J("startYear",e.startYear)("endYear",e.endYear),i.xp6(4),i.hij(" ",i.lcZ(13,14,"IMPORT_PUBLICATIONS.SEARCH")," "),i.xp6(2),i.Q6J("disabled",0===e.selected.selected.length),i.xp6(1),i.hij(" ",i.lcZ(16,16,"IMPORT_PUBLICATIONS.IMPORT")," "),i.xp6(2),i.Q6J("ngModel",e.userAsAuthor),i.xp6(1),i.hij(" ",i.lcZ(19,18,"IMPORT_PUBLICATIONS.ADD_MYSELF")," "),i.xp6(2),i.Q6J("ngIf",!e.firstSearchDone),i.xp6(1),i.Q6J("ngIf",!e.loading)}}function qz(n,s){1&n&&i._UZ(0,"mat-spinner",17)}function Gz(n,s){1&n&&(i.TgZ(0,"i"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"IMPORT_PUBLICATIONS.NOT_CHECKED")," "))}function Wz(n,s){1&n&&(i.TgZ(0,"mat-icon",28),i._uU(1,"check_circle"),i.qZA())}function $z(n,s){if(1&n){const e=i.EpF();i.TgZ(0,"button",29),i.NdJ("click",function(){i.CHM(e);const r=i.oxw(),l=r.$implicit,d=r.index,o=i.oxw(2);return i.KtG(o.completePublication(l.id,d))}),i._uU(1),i.ALo(2,"translate"),i.qZA()}2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"IMPORT_PUBLICATIONS.CHECKED_BUTTON")," "))}function Zz(n,s){if(1&n){const e=i.EpF();i.TgZ(0,"button",30),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit,l=i.oxw(2);return i.KtG(l.incompletePublication(r.id))}),i._uU(1),i.ALo(2,"translate"),i.qZA()}2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"IMPORT_PUBLICATIONS.NOT_CHECKED_BUTTON")," "))}function Jz(n,s){if(1&n){const e=i.EpF();i.TgZ(0,"mat-expansion-panel",22)(1,"mat-expansion-panel-header",23),i.NdJ("click",function(){const l=i.CHM(e).index,d=i.oxw(2);return i.KtG(d.editPublication(l))}),i.TgZ(2,"mat-panel-title"),i._uU(3),i.YNc(4,Gz,3,3,"i",3),i.YNc(5,Wz,2,0,"mat-icon",24),i.qZA()(),i._UZ(6,"perun-web-apps-publication-detail",25),i.TgZ(7,"div",26),i.YNc(8,$z,3,3,"button",20),i.YNc(9,Zz,3,3,"button",27),i.qZA()()}if(2&n){const e=s.$implicit,t=s.index,r=i.oxw(2);i.Q6J("expanded",r.indexExpanded===t),i.xp6(3),i.hij(" ",e.title," "),i.xp6(1),i.Q6J("ngIf",!r.completePublications.includes(e.id)),i.xp6(1),i.Q6J("ngIf",r.completePublications.includes(e.id)),i.xp6(1),i.Q6J("publicationId",e.id),i.xp6(2),i.Q6J("ngIf",!r.completePublications.includes(e.id)),i.xp6(1),i.Q6J("ngIf",r.completePublications.includes(e.id))}}function Qz(n,s){if(1&n){const e=i.EpF();i.TgZ(0,"button",29),i.NdJ("click",function(){i.CHM(e);const r=i.oxw(2);return i.KtG(r.completeAllPublications())}),i._uU(1),i.ALo(2,"translate"),i.qZA()}2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"IMPORT_PUBLICATIONS.CHECK_ALL")," "))}function Kz(n,s){if(1&n){const e=i.EpF();i.TgZ(0,"div",31),i.ALo(1,"translate"),i.TgZ(2,"button",32),i.NdJ("click",function(){i.CHM(e);const r=i.oxw(2);return i.KtG(r.onSubmit())}),i._uU(3),i.ALo(4,"translate"),i.qZA()()}if(2&n){const e=i.oxw(2);i.s9C("matTooltip",i.lcZ(1,4,"IMPORT_PUBLICATIONS.SUBMIT_TOOLTIP")),i.Q6J("matTooltipPosition","above")("matTooltipDisabled",e.completePublications.length===e.importedPublications.length),i.xp6(3),i.hij(" ",i.lcZ(4,6,"IMPORT_PUBLICATIONS.FINISH")," ")}}function Xz(n,s){if(1&n&&(i.TgZ(0,"div")(1,"perun-web-apps-alert",15),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"mat-accordion"),i.YNc(5,Jz,10,7,"mat-expansion-panel",18),i.qZA(),i.TgZ(6,"div",19),i.YNc(7,Qz,3,3,"button",20),i.qZA(),i.YNc(8,Kz,5,8,"div",21),i.qZA()),2&n){const e=i.oxw();i.xp6(2),i.hij(" ",i.lcZ(3,4,"IMPORT_PUBLICATIONS.IMPORTED_INFO")," "),i.xp6(3),i.Q6J("ngForOf",e.importedPublications),i.xp6(2),i.Q6J("ngIf",e.completePublications.length!==e.importedPublications.length),i.xp6(1),i.Q6J("ngIf",e.completePublications.length===e.importedPublications.length)}}const $1=cf,eq={parse:{dateInput:"YYYY"},display:{dateInput:"YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}},tq=[{path:"",redirectTo:"all-publications",pathMatch:"full"},{path:"login",component:nz},{path:"service-access",component:az},{path:"all-publications",component:PF},{path:"my-publications",component:IF},{path:"create-publication",component:OF},{path:"create-publication/import",component:(()=>{class n{constructor(e,t,r,l,d,o){this.cabinetService=e,this.storeService=t,this.notificator=r,this.translate=l,this.router=d,this.dialog=o,this.loading=!1,this.publicationSystems=[],this.publications=[],this.selected=new tn(!0,[]),this.tableId="74",this.displayedColumns=["select","id","lock","title","reportedBy","year","category"],this.userAsAuthor=!0,this.importedPublications=[],this.importDone=!1,this.completePublications=[]}ngOnInit(){this.loading=!0,this.firstSearchDone=!1,this.userId=this.storeService.getPerunPrincipal().user.id,this.startYear=new Vi($1().subtract(1,"year")),this.endYear=new Vi($1()),this.cabinetService.getPublicationSystems().subscribe(e=>{this.publicationSystems=e.filter(t=>"INTERNAL"!==t.friendlyName),this.pubSystem=new Vi(this.publicationSystems[0]),this.pubSystemNamespace=this.pubSystem.value.loginNamespace,this.loading=!1})}selectPubSystem(){this.pubSystemNamespace=this.pubSystem.value.loginNamespace}searchPublications(){this.loading=!0,this.firstSearchDone=!0,this.cabinetService.findExternalPublications(this.storeService.getPerunPrincipal().user.id,this.startYear.value.year(),this.endYear.value.year(),this.pubSystemNamespace).subscribe({next:e=>{this.publications=e,this.loading=!1},error:()=>this.loading=!1})}importPublications(e){if(this.loading=!0,0===e.length)return this.notificator.showSuccess(this.translate.instant("IMPORT_PUBLICATIONS.SUCCESS")),this.importDone=!0,this.indexExpanded=0,void(this.loading=!1);const t=e.shift();this.cabinetService.createPublication({publication:{id:0,beanName:"Publication",title:t.title,categoryId:t.categoryId,year:t.year,isbn:t.isbn,doi:t.doi,main:t.main}}).subscribe({next:l=>{this.userAsAuthor?this.cabinetService.createAutorship({authorship:{id:0,beanName:"Authorship",publicationId:l.id,userId:this.userId}}).subscribe({next:()=>{this.importedPublications.push(l),this.importPublications(e)},error:()=>this.loading=!1}):(this.importedPublications.push(l),this.importPublications(e))},error:()=>this.loading=!1})}editPublication(e){this.indexExpanded=e===this.indexExpanded?-1:e}completePublication(e,t){this.completePublications.includes(e)||this.completePublications.push(e),this.indexExpanded=t!==this.importedPublications.length-1?t+1:-1}incompletePublication(e){this.completePublications.includes(e)&&(this.completePublications=this.completePublications.filter(t=>t!==e)),this.indexExpanded=-1}completeAllPublications(){const e=Ni();e.width="500px",e.data={theme:"user-theme",message:this.translate.instant("IMPORT_PUBLICATIONS.CHECK_ALL_MESSAGE")},this.dialog.open(hL,e).afterClosed().subscribe(r=>{r&&this.onSubmit()})}onSubmit(){this.notificator.showSuccess(this.translate.instant("IMPORT_PUBLICATIONS.SHOW_FINISH")),this.router.navigate(["/my-publications"],{queryParamsHandling:"preserve"})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(fi),i.Y36(yn),i.Y36(Un),i.Y36(ui),i.Y36(Ji),i.Y36(fn))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-import-publications-page"]],features:[i._Bn([{provide:ei,useClass:Zg,deps:[Ds]},{provide:Sr,useValue:eq}])],decls:10,vars:6,consts:[[1,"user-theme"],[1,"page-subtitle","d-flex"],[1,"add-icon","mr-1"],[4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[1,"input-width-300","mr-2"],[3,"formControl","closed"],["class","group-theme",3,"value",4,"ngFor","ngForOf"],[3,"startYear","endYear"],["mat-stroked-button","",1,"left-space",3,"click"],["mat-flat-button","","color","accent",1,"left-space",3,"disabled","click"],[1,"mt-3","left-space",3,"ngModel","ngModelChange"],["alert_type","info",4,"ngIf"],[3,"publications","displayedColumns","selection","tableId","disabledRouting","allowAlert",4,"ngIf"],[1,"group-theme",3,"value"],["alert_type","info"],[3,"publications","displayedColumns","selection","tableId","disabledRouting","allowAlert"],[1,"ml-auto","mr-auto"],[3,"expanded",4,"ngFor","ngForOf"],[1,"right-button"],["mat-flat-button","","class","width-100","color","accent",3,"click",4,"ngIf"],["class","right-button",3,"matTooltip","matTooltipPosition","matTooltipDisabled",4,"ngIf"],[3,"expanded"],[3,"click"],["color","accent","class","checked-icon",4,"ngIf"],[3,"publicationId"],[1,"fit-content"],["mat-stroked-button","","class","width-100",3,"click",4,"ngIf"],["color","accent",1,"checked-icon"],["mat-flat-button","","color","accent",1,"width-100",3,"click"],["mat-stroked-button","",1,"width-100",3,"click"],[1,"right-button",3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["mat-flat-button","","color","accent",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"h1",1)(2,"span")(3,"mat-icon",2),i._uU(4,"add_box"),i.qZA(),i._uU(5),i.ALo(6,"translate"),i.qZA()(),i.YNc(7,zz,22,20,"div",3),i.YNc(8,qz,1,0,"mat-spinner",4),i.YNc(9,Xz,9,6,"div",3),i.qZA()),2&e&&(i.xp6(5),i.hij(" ",i.lcZ(6,4,"IMPORT_PUBLICATIONS.TITLE")," "),i.xp6(2),i.Q6J("ngIf",!t.importDone),i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",t.importDone))},dependencies:[w.sg,w.O5,dV,CH,wH,cV,It,gd,ki,Mi,nr,Pr,Fn,id,kr,Ha,ad,Uc,na,sf,Qg,b1,tt],styles:[".add-icon[_ngcontent-%COMP%]{font-size:32px;vertical-align:text-top}.input-width-300[_ngcontent-%COMP%]{width:300px}.left-space[_ngcontent-%COMP%]{margin-left:10px}mat-panel-title[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin-left:5px}.checked-icon[_ngcontent-%COMP%]{vertical-align:middle;margin-left:5px}.right-button[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content;margin-top:20px;margin-left:auto;margin-right:0}.fit-content[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content;margin-top:15px}.width-100[_ngcontent-%COMP%]{width:100%}"]}),n})()},{path:"create-publication/create",component:Fz},{path:"authors",component:lj},{path:"authors/:authorId",component:p3},{path:"authors/:authorId/publication/:publicationId",component:Qg},{path:"all-publications/:publicationId",component:Qg},{path:"my-publications/:publicationId",component:Qg},{path:"categories",component:qj},{path:"publication-systems",component:c3}];let iq=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[Pc.forRoot(tq,{preloadingStrategy:Nf,scrollPositionRestoration:"enabled",relativeLinkResolution:"legacy"}),Pc]}),n})();const nq={provide:C.TP,useExisting:(0,i.Gpc)(()=>ZE),multi:!0};function rq(n){return new EI(n,"./assets/i18n/",".json")}function aq(n){const s={basePath:n.getProperty("api_url")};return new yt(s)}const sq=n=>()=>n.loadConfigs();let oq=(()=>{class n{constructor(e,t){this.customIconService=e,this.translate=t,this.translate.setDefaultLang("en"),this.translate.use("en"),this.customIconService.registerPerunRefreshIcon()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(WE),i.LFG(ui))},n.\u0275mod=i.oAB({type:n,bootstrap:[SI]}),n.\u0275inj=i.cJS({providers:[WE,{provide:i.ip1,useFactory:sq,multi:!0,deps:[PI]},{provide:yt,useFactory:aq,deps:[yn]},ZE,nq,{provide:kI,useClass:ek},MF,{provide:$p.Hy,useFactory:()=>localStorage}],imports:[sn,Ks.forRoot({loader:{provide:Fr,useFactory:rq,deps:[C.eN]}}),PB,m1,kB,mi,C.JF,iq,xM,sD,iz,l1,MC,$p.zr.forRoot(),Y1]}),n})();(0,i.G48)(),dt().bootstrapModule(oq).catch(n=>console.error(n))},1302:function(Y,z,x){var w;!function(i,E){var M={};!function(i){"use strict";i.__esModule=!0,i.digestLength=32,i.blockSize=64;var E=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function M(le,re,ie,me,be){for(var ve,$e,Je,He,xe,Ee,lt,Le,Be,Ie,he,fe,we;be>=64;){for(ve=re[0],$e=re[1],Je=re[2],He=re[3],xe=re[4],Ee=re[5],lt=re[6],Le=re[7],Ie=0;Ie<16;Ie++)le[Ie]=(255&ie[he=me+4*Ie])<<24|(255&ie[he+1])<<16|(255&ie[he+2])<<8|255&ie[he+3];for(Ie=16;Ie<64;Ie++)le[Ie]=((fe=((Be=le[Ie-2])>>>17|Be<<15)^(Be>>>19|Be<<13)^Be>>>10)+le[Ie-7]|0)+((we=((Be=le[Ie-15])>>>7|Be<<25)^(Be>>>18|Be<<14)^Be>>>3)+le[Ie-16]|0);for(Ie=0;Ie<64;Ie++)fe=(((xe>>>6|xe<<26)^(xe>>>11|xe<<21)^(xe>>>25|xe<<7))+(xe&Ee^~xe<)|0)+(Le+(E[Ie]+le[Ie]|0)|0)|0,we=((ve>>>2|ve<<30)^(ve>>>13|ve<<19)^(ve>>>22|ve<<10))+(ve&$e^ve&Je^$e&Je)|0,Le=lt,lt=Ee,Ee=xe,xe=He+fe|0,He=Je,Je=$e,$e=ve,ve=fe+we|0;re[0]+=ve,re[1]+=$e,re[2]+=Je,re[3]+=He,re[4]+=xe,re[5]+=Ee,re[6]+=lt,re[7]+=Le,me+=64,be-=64}return me}var S=function(){function le(){this.digestLength=i.digestLength,this.blockSize=i.blockSize,this.state=new Int32Array(8),this.temp=new Int32Array(64),this.buffer=new Uint8Array(128),this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this.reset()}return le.prototype.reset=function(){return this.state[0]=1779033703,this.state[1]=3144134277,this.state[2]=1013904242,this.state[3]=2773480762,this.state[4]=1359893119,this.state[5]=2600822924,this.state[6]=528734635,this.state[7]=1541459225,this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this},le.prototype.clean=function(){for(var re=0;re0){for(;this.bufferLength<64&&ie>0;)this.buffer[this.bufferLength++]=re[me++],ie--;64===this.bufferLength&&(M(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(ie>=64&&(me=M(this.temp,this.state,re,me,ie),ie%=64);ie>0;)this.buffer[this.bufferLength++]=re[me++],ie--;return this},le.prototype.finish=function(re){if(!this.finished){var ie=this.bytesHashed,me=this.bufferLength,be=ie/536870912|0,ve=ie<<3,$e=ie%64<56?64:128;this.buffer[me]=128;for(var Je=me+1;Je<$e-8;Je++)this.buffer[Je]=0;this.buffer[$e-8]=be>>>24&255,this.buffer[$e-7]=be>>>16&255,this.buffer[$e-6]=be>>>8&255,this.buffer[$e-5]=be>>>0&255,this.buffer[$e-4]=ve>>>24&255,this.buffer[$e-3]=ve>>>16&255,this.buffer[$e-2]=ve>>>8&255,this.buffer[$e-1]=ve>>>0&255,M(this.temp,this.state,this.buffer,0,$e),this.finished=!0}for(Je=0;Je<8;Je++)re[4*Je+0]=this.state[Je]>>>24&255,re[4*Je+1]=this.state[Je]>>>16&255,re[4*Je+2]=this.state[Je]>>>8&255,re[4*Je+3]=this.state[Je]>>>0&255;return this},le.prototype.digest=function(){var re=new Uint8Array(this.digestLength);return this.finish(re),re},le.prototype._saveState=function(re){for(var ie=0;iethis.blockSize)(new S).update(re).finish(ie).clean();else for(var me=0;me1&&re.update(le),ie&&re.update(ie),re.update(me),re.finish(le),me[0]++}i.HMAC=k,i.hash=L,i.default=L,i.hmac=F;var J=new Uint8Array(i.digestLength);i.hkdf=function Q(le,re,ie,me){void 0===re&&(re=J),void 0===me&&(me=32);for(var be=new Uint8Array([1]),ve=F(re,le),$e=new k(ve),Je=new Uint8Array($e.digestLength),He=Je.length,xe=new Uint8Array(me),Ee=0;Ee>>24&255,$e[1]=lt>>>16&255,$e[2]=lt>>>8&255,$e[3]=lt>>>0&255,be.reset(),be.update(re),be.update($e),be.finish(He);for(var Le=0;Le=Q.status}function k(J){try{J.dispatchEvent(new MouseEvent("click"))}catch{var Q=document.createEvent("MouseEvents");Q.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),J.dispatchEvent(Q)}}var L="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,F=L.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),U=L.saveAs||("object"!=typeof window||window!==L?function(){}:"download"in HTMLAnchorElement.prototype&&!F?function(J,Q,ne){var le=L.URL||L.webkitURL,re=document.createElement("a");re.download=Q=Q||J.name||"download",re.rel="noopener","string"==typeof J?(re.href=J,re.origin===location.origin?k(re):S(re.href)?M(J,Q,ne):k(re,re.target="_blank")):(re.href=le.createObjectURL(J),setTimeout(function(){le.revokeObjectURL(re.href)},4e4),setTimeout(function(){k(re)},0))}:"msSaveOrOpenBlob"in navigator?function(J,Q,ne){if(Q=Q||J.name||"download","string"!=typeof J)navigator.msSaveOrOpenBlob(function E(J,Q){return typeof Q>"u"?Q={autoBom:!1}:"object"!=typeof Q&&(console.warn("Deprecated: Expected third argument to be a object"),Q={autoBom:!Q}),Q.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(J.type)?new Blob(["\ufeff",J],{type:J.type}):J}(J,ne),Q);else if(S(J))M(J,Q,ne);else{var le=document.createElement("a");le.href=J,le.target="_blank",setTimeout(function(){k(le)})}}:function(J,Q,ne,le){if((le=le||open("","_blank"))&&(le.document.title=le.document.body.innerText="downloading..."),"string"==typeof J)return M(J,Q,ne);var re="application/octet-stream"===J.type,ie=/constructor/i.test(L.HTMLElement)||L.safari,me=/CriOS\/[\d]+/.test(navigator.userAgent);if((me||re&&ie||F)&&typeof FileReader<"u"){var be=new FileReader;be.onloadend=function(){var Je=be.result;Je=me?Je:Je.replace(/^data:[^;]*;/,"data:attachment/file;"),le?le.location.href=Je:location=Je,le=null},be.readAsDataURL(J)}else{var ve=L.URL||L.webkitURL,$e=ve.createObjectURL(J);le?le.location=$e:location.href=$e,le=null,setTimeout(function(){ve.revokeObjectURL($e)},4e4)}});L.saveAs=U.saveAs=U,Y.exports=U}.apply(z,[]))&&(Y.exports=i)},7088:function(Y,z,x){!function(w){"use strict";w.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(E){return/^nm$/i.test(E)},meridiem:function(E,M,S){return E<12?S?"vm":"VM":S?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[M\xf4re om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(E){return E+(1===E||8===E||E>=20?"ste":"de")},week:{dow:1,doy:4}})}(x(5439))},2502:function(Y,z,x){!function(w){"use strict";var i=function(L){return 0===L?0:1===L?1:2===L?2:L%100>=3&&L%100<=10?3:L%100>=11?4:5},E={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},M=function(L){return function(F,U,J,Q){var ne=i(F),le=E[L][i(F)];return 2===ne&&(le=le[U?0:1]),le.replace(/%d/i,F)}},S=["\u062c\u0627\u0646\u0641\u064a","\u0641\u064a\u0641\u0631\u064a","\u0645\u0627\u0631\u0633","\u0623\u0641\u0631\u064a\u0644","\u0645\u0627\u064a","\u062c\u0648\u0627\u0646","\u062c\u0648\u064a\u0644\u064a\u0629","\u0623\u0648\u062a","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];w.defineLocale("ar-dz",{months:S,monthsShort:S,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(L){return"\u0645"===L},meridiem:function(L,F,U){return L<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:M("s"),ss:M("s"),m:M("m"),mm:M("m"),h:M("h"),hh:M("h"),d:M("d"),dd:M("d"),M:M("M"),MM:M("M"),y:M("y"),yy:M("y")},postformat:function(L){return L.replace(/,/g,"\u060c")},week:{dow:0,doy:4}})}(x(5439))},128:function(Y,z,x){!function(w){"use strict";w.defineLocale("ar-kw",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062a\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062a\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:0,doy:12}})}(x(5439))},4519:function(Y,z,x){!function(w){"use strict";var i={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},E=function(F){return 0===F?0:1===F?1:2===F?2:F%100>=3&&F%100<=10?3:F%100>=11?4:5},M={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},S=function(F){return function(U,J,Q,ne){var le=E(U),re=M[F][E(U)];return 2===le&&(re=re[J?0:1]),re.replace(/%d/i,U)}},k=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];w.defineLocale("ar-ly",{months:k,monthsShort:k,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(F){return"\u0645"===F},meridiem:function(F,U,J){return F<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:S("s"),ss:S("s"),m:S("m"),mm:S("m"),h:S("h"),hh:S("h"),d:S("d"),dd:S("d"),M:S("M"),MM:S("M"),y:S("y"),yy:S("y")},preparse:function(F){return F.replace(/\u060c/g,",")},postformat:function(F){return F.replace(/\d/g,function(U){return i[U]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(x(5439))},5443:function(Y,z,x){!function(w){"use strict";w.defineLocale("ar-ma",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(x(5439))},7642:function(Y,z,x){!function(w){"use strict";var i={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},E={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"};w.defineLocale("ar-sa",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(S){return"\u0645"===S},meridiem:function(S,k,L){return S<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},preparse:function(S){return S.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(k){return E[k]}).replace(/\u060c/g,",")},postformat:function(S){return S.replace(/\d/g,function(k){return i[k]}).replace(/,/g,"\u060c")},week:{dow:0,doy:6}})}(x(5439))},8592:function(Y,z,x){!function(w){"use strict";w.defineLocale("ar-tn",{months:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(x(5439))},7038:function(Y,z,x){!function(w){"use strict";var i={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},E={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},M=function(U){return 0===U?0:1===U?1:2===U?2:U%100>=3&&U%100<=10?3:U%100>=11?4:5},S={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},k=function(U){return function(J,Q,ne,le){var re=M(J),ie=S[U][M(J)];return 2===re&&(ie=ie[Q?0:1]),ie.replace(/%d/i,J)}},L=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];w.defineLocale("ar",{months:L,monthsShort:L,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(U){return"\u0645"===U},meridiem:function(U,J,Q){return U<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:k("s"),ss:k("s"),m:k("m"),mm:k("m"),h:k("h"),hh:k("h"),d:k("d"),dd:k("d"),M:k("M"),MM:k("M"),y:k("y"),yy:k("y")},preparse:function(U){return U.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(J){return E[J]}).replace(/\u060c/g,",")},postformat:function(U){return U.replace(/\d/g,function(J){return i[J]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(x(5439))},1213:function(Y,z,x){!function(w){"use strict";var i={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-\xfcnc\xfc",4:"-\xfcnc\xfc",100:"-\xfcnc\xfc",6:"-nc\u0131",9:"-uncu",10:"-uncu",30:"-uncu",60:"-\u0131nc\u0131",90:"-\u0131nc\u0131"};w.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ert\u0259si_\xc7\u0259r\u015f\u0259nb\u0259 ax\u015fam\u0131_\xc7\u0259r\u015f\u0259nb\u0259_C\xfcm\u0259 ax\u015fam\u0131_C\xfcm\u0259_\u015e\u0259nb\u0259".split("_"),weekdaysShort:"Baz_BzE_\xc7Ax_\xc7\u0259r_CAx_C\xfcm_\u015e\u0259n".split("_"),weekdaysMin:"Bz_BE_\xc7A_\xc7\u0259_CA_C\xfc_\u015e\u0259".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[g\u0259l\u0259n h\u0259ft\u0259] dddd [saat] LT",lastDay:"[d\xfcn\u0259n] LT",lastWeek:"[ke\xe7\u0259n h\u0259ft\u0259] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \u0259vv\u0259l",s:"bir ne\xe7\u0259 saniy\u0259",ss:"%d saniy\u0259",m:"bir d\u0259qiq\u0259",mm:"%d d\u0259qiq\u0259",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gec\u0259|s\u0259h\u0259r|g\xfcnd\xfcz|ax\u015fam/,isPM:function(M){return/^(g\xfcnd\xfcz|ax\u015fam)$/.test(M)},meridiem:function(M,S,k){return M<4?"gec\u0259":M<12?"s\u0259h\u0259r":M<17?"g\xfcnd\xfcz":"ax\u015fam"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0131nc\u0131|inci|nci|\xfcnc\xfc|nc\u0131|uncu)/,ordinal:function(M){if(0===M)return M+"-\u0131nc\u0131";var S=M%10;return M+(i[S]||i[M%100-S]||i[M>=100?100:null])},week:{dow:1,doy:7}})}(x(5439))},9191:function(Y,z,x){!function(w){"use strict";function E(S,k,L){return"m"===L?k?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443":"h"===L?k?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443":S+" "+function i(S,k){var L=S.split("_");return k%10==1&&k%100!=11?L[0]:k%10>=2&&k%10<=4&&(k%100<10||k%100>=20)?L[1]:L[2]}({ss:k?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:k?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d",hh:k?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d",dd:"\u0434\u0437\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u0437\u0451\u043d",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u044b_\u043c\u0435\u0441\u044f\u0446\u0430\u045e",yy:"\u0433\u043e\u0434_\u0433\u0430\u0434\u044b_\u0433\u0430\u0434\u043e\u045e"}[L],+S)}w.defineLocale("be",{months:{format:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044f_\u043b\u044e\u0442\u0430\u0433\u0430_\u0441\u0430\u043a\u0430\u0432\u0456\u043a\u0430_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a\u0430_\u0442\u0440\u0430\u045e\u043d\u044f_\u0447\u044d\u0440\u0432\u0435\u043d\u044f_\u043b\u0456\u043f\u0435\u043d\u044f_\u0436\u043d\u0456\u045e\u043d\u044f_\u0432\u0435\u0440\u0430\u0441\u043d\u044f_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a\u0430_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434\u0430_\u0441\u043d\u0435\u0436\u043d\u044f".split("_"),standalone:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044c_\u043b\u044e\u0442\u044b_\u0441\u0430\u043a\u0430\u0432\u0456\u043a_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u044d\u0440\u0432\u0435\u043d\u044c_\u043b\u0456\u043f\u0435\u043d\u044c_\u0436\u043d\u0456\u0432\u0435\u043d\u044c_\u0432\u0435\u0440\u0430\u0441\u0435\u043d\u044c_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434_\u0441\u043d\u0435\u0436\u0430\u043d\u044c".split("_")},monthsShort:"\u0441\u0442\u0443\u0434_\u043b\u044e\u0442_\u0441\u0430\u043a_\u043a\u0440\u0430\u0441_\u0442\u0440\u0430\u0432_\u0447\u044d\u0440\u0432_\u043b\u0456\u043f_\u0436\u043d\u0456\u0432_\u0432\u0435\u0440_\u043a\u0430\u0441\u0442_\u043b\u0456\u0441\u0442_\u0441\u043d\u0435\u0436".split("_"),weekdays:{format:"\u043d\u044f\u0434\u0437\u0435\u043b\u044e_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0443_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0443_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),standalone:"\u043d\u044f\u0434\u0437\u0435\u043b\u044f_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0430_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0430_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),isFormat:/\[ ?[\u0423\u0443\u045e] ?(?:\u043c\u0456\u043d\u0443\u043b\u0443\u044e|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0443\u044e)? ?\] ?dddd/},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., HH:mm",LLLL:"dddd, D MMMM YYYY \u0433., HH:mm"},calendar:{sameDay:"[\u0421\u0451\u043d\u043d\u044f \u045e] LT",nextDay:"[\u0417\u0430\u045e\u0442\u0440\u0430 \u045e] LT",lastDay:"[\u0423\u0447\u043e\u0440\u0430 \u045e] LT",nextWeek:function(){return"[\u0423] dddd [\u045e] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u0443\u044e] dddd [\u045e] LT";case 1:case 2:case 4:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u044b] dddd [\u045e] LT"}},sameElse:"L"},relativeTime:{future:"\u043f\u0440\u0430\u0437 %s",past:"%s \u0442\u0430\u043c\u0443",s:"\u043d\u0435\u043a\u0430\u043b\u044c\u043a\u0456 \u0441\u0435\u043a\u0443\u043d\u0434",m:E,mm:E,h:E,hh:E,d:"\u0434\u0437\u0435\u043d\u044c",dd:E,M:"\u043c\u0435\u0441\u044f\u0446",MM:E,y:"\u0433\u043e\u0434",yy:E},meridiemParse:/\u043d\u043e\u0447\u044b|\u0440\u0430\u043d\u0456\u0446\u044b|\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430/,isPM:function(S){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430)$/.test(S)},meridiem:function(S,k,L){return S<4?"\u043d\u043e\u0447\u044b":S<12?"\u0440\u0430\u043d\u0456\u0446\u044b":S<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0430\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0456|\u044b|\u0433\u0430)/,ordinal:function(S,k){switch(k){case"M":case"d":case"DDD":case"w":case"W":return S%10!=2&&S%10!=3||S%100==12||S%100==13?S+"-\u044b":S+"-\u0456";case"D":return S+"-\u0433\u0430";default:return S}},week:{dow:1,doy:7}})}(x(5439))},322:function(Y,z,x){!function(w){"use strict";w.defineLocale("bg",{months:"\u044f\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u044f\u043d\u0443_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u044f\u0434\u0430_\u0447\u0435\u0442\u0432\u044a\u0440\u0442\u044a\u043a_\u043f\u0435\u0442\u044a\u043a_\u0441\u044a\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u044f_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u044a\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u043d\u0435\u0441 \u0432] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432] LT",nextWeek:"dddd [\u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u041c\u0438\u043d\u0430\u043b\u0430\u0442\u0430] dddd [\u0432] LT";case 1:case 2:case 4:case 5:return"[\u041c\u0438\u043d\u0430\u043b\u0438\u044f] dddd [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0441\u043b\u0435\u0434 %s",past:"\u043f\u0440\u0435\u0434\u0438 %s",s:"\u043d\u044f\u043a\u043e\u043b\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",w:"\u0441\u0435\u0434\u043c\u0438\u0446\u0430",ww:"%d \u0441\u0435\u0434\u043c\u0438\u0446\u0438",M:"\u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0430",y:"\u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(E){var M=E%10,S=E%100;return 0===E?E+"-\u0435\u0432":0===S?E+"-\u0435\u043d":S>10&&S<20?E+"-\u0442\u0438":1===M?E+"-\u0432\u0438":2===M?E+"-\u0440\u0438":7===M||8===M?E+"-\u043c\u0438":E+"-\u0442\u0438"},week:{dow:1,doy:7}})}(x(5439))},8042:function(Y,z,x){!function(w){"use strict";w.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_M\u025bkalo_Zuw\u025bnkalo_Zuluyekalo_Utikalo_S\u025btanburukalo_\u0254kut\u0254burukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_M\u025b_Zuw_Zul_Uti_S\u025bt_\u0254ku_Now_Des".split("_"),weekdays:"Kari_Nt\u025bn\u025bn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Nt\u025b_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm"},calendar:{sameDay:"[Bi l\u025br\u025b] LT",nextDay:"[Sini l\u025br\u025b] LT",nextWeek:"dddd [don l\u025br\u025b] LT",lastDay:"[Kunu l\u025br\u025b] LT",lastWeek:"dddd [t\u025bm\u025bnen l\u025br\u025b] LT",sameElse:"L"},relativeTime:{future:"%s k\u0254n\u0254",past:"a b\u025b %s b\u0254",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"l\u025br\u025b kelen",hh:"l\u025br\u025b %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})}(x(5439))},5903:function(Y,z,x){!function(w){"use strict";var i={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},E={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};w.defineLocale("bn-bd",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(S){return S.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(k){return E[k]})},postformat:function(S){return S.replace(/\d/g,function(k){return i[k]})},meridiemParse:/\u09b0\u09be\u09a4|\u09ad\u09cb\u09b0|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be|\u09b0\u09be\u09a4/,meridiemHour:function(S,k){return 12===S&&(S=0),"\u09b0\u09be\u09a4"===k?S<4?S:S+12:"\u09ad\u09cb\u09b0"===k||"\u09b8\u0995\u09be\u09b2"===k?S:"\u09a6\u09c1\u09aa\u09c1\u09b0"===k?S>=3?S:S+12:"\u09ac\u09bf\u0995\u09be\u09b2"===k||"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be"===k?S+12:void 0},meridiem:function(S,k,L){return S<4?"\u09b0\u09be\u09a4":S<6?"\u09ad\u09cb\u09b0":S<12?"\u09b8\u0995\u09be\u09b2":S<15?"\u09a6\u09c1\u09aa\u09c1\u09b0":S<18?"\u09ac\u09bf\u0995\u09be\u09b2":S<20?"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(x(5439))},9620:function(Y,z,x){!function(w){"use strict";var i={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},E={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};w.defineLocale("bn",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(S){return S.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(k){return E[k]})},postformat:function(S){return S.replace(/\d/g,function(k){return i[k]})},meridiemParse:/\u09b0\u09be\u09a4|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b0\u09be\u09a4/,meridiemHour:function(S,k){return 12===S&&(S=0),"\u09b0\u09be\u09a4"===k&&S>=4||"\u09a6\u09c1\u09aa\u09c1\u09b0"===k&&S<5||"\u09ac\u09bf\u0995\u09be\u09b2"===k?S+12:S},meridiem:function(S,k,L){return S<4?"\u09b0\u09be\u09a4":S<10?"\u09b8\u0995\u09be\u09b2":S<17?"\u09a6\u09c1\u09aa\u09c1\u09b0":S<20?"\u09ac\u09bf\u0995\u09be\u09b2":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(x(5439))},9645:function(Y,z,x){!function(w){"use strict";var i={1:"\u0f21",2:"\u0f22",3:"\u0f23",4:"\u0f24",5:"\u0f25",6:"\u0f26",7:"\u0f27",8:"\u0f28",9:"\u0f29",0:"\u0f20"},E={"\u0f21":"1","\u0f22":"2","\u0f23":"3","\u0f24":"4","\u0f25":"5","\u0f26":"6","\u0f27":"7","\u0f28":"8","\u0f29":"9","\u0f20":"0"};w.defineLocale("bo",{months:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f44\u0f0b\u0f54\u0f7c_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f66\u0f74\u0f58\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f5e\u0f72\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f63\u0f94\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0fb2\u0f74\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f62\u0f92\u0fb1\u0f51\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f42\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f45\u0f72\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54".split("_"),monthsShort:"\u0f5f\u0fb3\u0f0b1_\u0f5f\u0fb3\u0f0b2_\u0f5f\u0fb3\u0f0b3_\u0f5f\u0fb3\u0f0b4_\u0f5f\u0fb3\u0f0b5_\u0f5f\u0fb3\u0f0b6_\u0f5f\u0fb3\u0f0b7_\u0f5f\u0fb3\u0f0b8_\u0f5f\u0fb3\u0f0b9_\u0f5f\u0fb3\u0f0b10_\u0f5f\u0fb3\u0f0b11_\u0f5f\u0fb3\u0f0b12".split("_"),monthsShortRegex:/^(\u0f5f\u0fb3\u0f0b\d{1,2})/,monthsParseExact:!0,weekdays:"\u0f42\u0f5f\u0f60\u0f0b\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f42\u0f5f\u0f60\u0f0b\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysShort:"\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysMin:"\u0f49\u0f72_\u0f5f\u0fb3_\u0f58\u0f72\u0f42_\u0f63\u0fb7\u0f42_\u0f55\u0f74\u0f62_\u0f66\u0f44\u0f66_\u0f66\u0fa4\u0f7a\u0f53".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0f51\u0f72\u0f0b\u0f62\u0f72\u0f44] LT",nextDay:"[\u0f66\u0f44\u0f0b\u0f49\u0f72\u0f53] LT",nextWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f62\u0f97\u0f7a\u0f66\u0f0b\u0f58], LT",lastDay:"[\u0f41\u0f0b\u0f66\u0f44] LT",lastWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f58\u0f50\u0f60\u0f0b\u0f58] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0f63\u0f0b",past:"%s \u0f66\u0f94\u0f53\u0f0b\u0f63",s:"\u0f63\u0f58\u0f0b\u0f66\u0f44",ss:"%d \u0f66\u0f90\u0f62\u0f0b\u0f46\u0f0d",m:"\u0f66\u0f90\u0f62\u0f0b\u0f58\u0f0b\u0f42\u0f45\u0f72\u0f42",mm:"%d \u0f66\u0f90\u0f62\u0f0b\u0f58",h:"\u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51\u0f0b\u0f42\u0f45\u0f72\u0f42",hh:"%d \u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51",d:"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f45\u0f72\u0f42",dd:"%d \u0f49\u0f72\u0f53\u0f0b",M:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f45\u0f72\u0f42",MM:"%d \u0f5f\u0fb3\u0f0b\u0f56",y:"\u0f63\u0f7c\u0f0b\u0f42\u0f45\u0f72\u0f42",yy:"%d \u0f63\u0f7c"},preparse:function(S){return S.replace(/[\u0f21\u0f22\u0f23\u0f24\u0f25\u0f26\u0f27\u0f28\u0f29\u0f20]/g,function(k){return E[k]})},postformat:function(S){return S.replace(/\d/g,function(k){return i[k]})},meridiemParse:/\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c|\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66|\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44|\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42|\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c/,meridiemHour:function(S,k){return 12===S&&(S=0),"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"===k&&S>=4||"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44"===k&&S<5||"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42"===k?S+12:S},meridiem:function(S,k,L){return S<4?"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c":S<10?"\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66":S<17?"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44":S<20?"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42":"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"},week:{dow:0,doy:6}})}(x(5439))},5020:function(Y,z,x){!function(w){"use strict";function i(ie,me,be){return ie+" "+function S(ie,me){return 2===me?function k(ie){var me={m:"v",b:"v",d:"z"};return void 0===me[ie.charAt(0)]?ie:me[ie.charAt(0)]+ie.substring(1)}(ie):ie}({mm:"munutenn",MM:"miz",dd:"devezh"}[be],ie)}function M(ie){return ie>9?M(ie%10):ie}var L=[/^gen/i,/^c[\u02bc\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],F=/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,le=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];w.defineLocale("br",{months:"Genver_C\u02bchwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C\u02bchwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc\u02bcher_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParse:le,fullWeekdaysParse:[/^sul/i,/^lun/i,/^meurzh/i,/^merc[\u02bc\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],shortWeekdaysParse:[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],minWeekdaysParse:le,monthsRegex:F,monthsShortRegex:F,monthsStrictRegex:/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,monthsShortStrictRegex:/^(gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,monthsParse:L,longMonthsParse:L,shortMonthsParse:L,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc\u02bchoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec\u02bch da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s \u02bczo",s:"un nebeud segondenno\xf9",ss:"%d eilenn",m:"ur vunutenn",mm:i,h:"un eur",hh:"%d eur",d:"un devezh",dd:i,M:"ur miz",MM:i,y:"ur bloaz",yy:function E(ie){switch(M(ie)){case 1:case 3:case 4:case 5:case 9:return ie+" bloaz";default:return ie+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(a\xf1|vet)/,ordinal:function(ie){return ie+(1===ie?"a\xf1":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(ie){return"g.m."===ie},meridiem:function(ie,me,be){return ie<12?"a.m.":"g.m."}})}(x(5439))},4792:function(Y,z,x){!function(w){"use strict";function i(M,S,k){var L=M+" ";switch(k){case"ss":return L+(1===M?"sekunda":2===M||3===M||4===M?"sekunde":"sekundi");case"m":return S?"jedna minuta":"jedne minute";case"mm":return L+(1===M?"minuta":2===M||3===M||4===M?"minute":"minuta");case"h":return S?"jedan sat":"jednog sata";case"hh":return L+(1===M?"sat":2===M||3===M||4===M?"sata":"sati");case"dd":return L+(1===M?"dan":"dana");case"MM":return L+(1===M?"mjesec":2===M||3===M||4===M?"mjeseca":"mjeseci");case"yy":return L+(1===M?"godina":2===M||3===M||4===M?"godine":"godina")}}w.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[pro\u0161lu] dddd [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:i,m:i,mm:i,h:i,hh:i,d:"dan",dd:i,M:"mjesec",MM:i,y:"godinu",yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(x(5439))},7980:function(Y,z,x){!function(w){"use strict";w.defineLocale("ca",{months:{standalone:"gener_febrer_mar\xe7_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de mar\xe7_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[dem\xe0 a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(E,M){var S=1===E?"r":2===E?"n":3===E?"r":4===E?"t":"\xe8";return("w"===M||"W"===M)&&(S="a"),E+S},week:{dow:1,doy:4}})}(x(5439))},7322:function(Y,z,x){!function(w){"use strict";var i={format:"leden_\xfanor_b\u0159ezen_duben_kv\u011bten_\u010derven_\u010dervenec_srpen_z\xe1\u0159\xed_\u0159\xedjen_listopad_prosinec".split("_"),standalone:"ledna_\xfanora_b\u0159ezna_dubna_kv\u011btna_\u010dervna_\u010dervence_srpna_z\xe1\u0159\xed_\u0159\xedjna_listopadu_prosince".split("_")},E="led_\xfano_b\u0159e_dub_kv\u011b_\u010dvn_\u010dvc_srp_z\xe1\u0159_\u0159\xedj_lis_pro".split("_"),M=[/^led/i,/^\xfano/i,/^b\u0159e/i,/^dub/i,/^kv\u011b/i,/^(\u010dvn|\u010derven$|\u010dervna)/i,/^(\u010dvc|\u010dervenec|\u010dervence)/i,/^srp/i,/^z\xe1\u0159/i,/^\u0159\xedj/i,/^lis/i,/^pro/i],S=/^(leden|\xfanor|b\u0159ezen|duben|kv\u011bten|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|z\xe1\u0159\xed|\u0159\xedjen|listopad|prosinec|led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i;function k(U){return U>1&&U<5&&1!=~~(U/10)}function L(U,J,Q,ne){var le=U+" ";switch(Q){case"s":return J||ne?"p\xe1r sekund":"p\xe1r sekundami";case"ss":return J||ne?le+(k(U)?"sekundy":"sekund"):le+"sekundami";case"m":return J?"minuta":ne?"minutu":"minutou";case"mm":return J||ne?le+(k(U)?"minuty":"minut"):le+"minutami";case"h":return J?"hodina":ne?"hodinu":"hodinou";case"hh":return J||ne?le+(k(U)?"hodiny":"hodin"):le+"hodinami";case"d":return J||ne?"den":"dnem";case"dd":return J||ne?le+(k(U)?"dny":"dn\xed"):le+"dny";case"M":return J||ne?"m\u011bs\xedc":"m\u011bs\xedcem";case"MM":return J||ne?le+(k(U)?"m\u011bs\xedce":"m\u011bs\xedc\u016f"):le+"m\u011bs\xedci";case"y":return J||ne?"rok":"rokem";case"yy":return J||ne?le+(k(U)?"roky":"let"):le+"lety"}}w.defineLocale("cs",{months:i,monthsShort:E,monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(leden|ledna|\xfanora|\xfanor|b\u0159ezen|b\u0159ezna|duben|dubna|kv\u011bten|kv\u011btna|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|srpna|z\xe1\u0159\xed|\u0159\xedjen|\u0159\xedjna|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i,monthsParse:M,longMonthsParse:M,shortMonthsParse:M,weekdays:"ned\u011ble_pond\u011bl\xed_\xfater\xfd_st\u0159eda_\u010dtvrtek_p\xe1tek_sobota".split("_"),weekdaysShort:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),weekdaysMin:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[z\xedtra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v ned\u011bli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve st\u0159edu v] LT";case 4:return"[ve \u010dtvrtek v] LT";case 5:return"[v p\xe1tek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[v\u010dera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou ned\u011bli v] LT";case 1:case 2:return"[minul\xe9] dddd [v] LT";case 3:return"[minulou st\u0159edu v] LT";case 4:case 5:return"[minul\xfd] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"p\u0159ed %s",s:L,ss:L,m:L,mm:L,h:L,hh:L,d:L,dd:L,M:L,MM:L,y:L,yy:L},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},365:function(Y,z,x){!function(w){"use strict";w.defineLocale("cv",{months:"\u043a\u04d1\u0440\u043b\u0430\u0447_\u043d\u0430\u0440\u04d1\u0441_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440\u0442\u043c\u0435_\u0443\u0442\u04d1_\u04ab\u0443\u0440\u043b\u0430_\u0430\u0432\u04d1\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448\u0442\u0430\u0432".split("_"),monthsShort:"\u043a\u04d1\u0440_\u043d\u0430\u0440_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440_\u0443\u0442\u04d1_\u04ab\u0443\u0440_\u0430\u0432\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448".split("_"),weekdays:"\u0432\u044b\u0440\u0441\u0430\u0440\u043d\u0438\u043a\u0443\u043d_\u0442\u0443\u043d\u0442\u0438\u043a\u0443\u043d_\u044b\u0442\u043b\u0430\u0440\u0438\u043a\u0443\u043d_\u044e\u043d\u043a\u0443\u043d_\u043a\u04d7\u04ab\u043d\u0435\u0440\u043d\u0438\u043a\u0443\u043d_\u044d\u0440\u043d\u0435\u043a\u0443\u043d_\u0448\u04d1\u043c\u0430\u0442\u043a\u0443\u043d".split("_"),weekdaysShort:"\u0432\u044b\u0440_\u0442\u0443\u043d_\u044b\u0442\u043b_\u044e\u043d_\u043a\u04d7\u04ab_\u044d\u0440\u043d_\u0448\u04d1\u043c".split("_"),weekdaysMin:"\u0432\u0440_\u0442\u043d_\u044b\u0442_\u044e\u043d_\u043a\u04ab_\u044d\u0440_\u0448\u043c".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7]",LLL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm",LLLL:"dddd, YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm"},calendar:{sameDay:"[\u041f\u0430\u044f\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextDay:"[\u042b\u0440\u0430\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastDay:"[\u04d6\u043d\u0435\u0440] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextWeek:"[\u04aa\u0438\u0442\u0435\u0441] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastWeek:"[\u0418\u0440\u0442\u043d\u04d7] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",sameElse:"L"},relativeTime:{future:function(E){return E+(/\u0441\u0435\u0445\u0435\u0442$/i.exec(E)?"\u0440\u0435\u043d":/\u04ab\u0443\u043b$/i.exec(E)?"\u0442\u0430\u043d":"\u0440\u0430\u043d")},past:"%s \u043a\u0430\u044f\u043b\u043b\u0430",s:"\u043f\u04d7\u0440-\u0438\u043a \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",ss:"%d \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",m:"\u043f\u04d7\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u043f\u04d7\u0440 \u0441\u0435\u0445\u0435\u0442",hh:"%d \u0441\u0435\u0445\u0435\u0442",d:"\u043f\u04d7\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u043f\u04d7\u0440 \u0443\u0439\u04d1\u0445",MM:"%d \u0443\u0439\u04d1\u0445",y:"\u043f\u04d7\u0440 \u04ab\u0443\u043b",yy:"%d \u04ab\u0443\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-\u043c\u04d7\u0448/,ordinal:"%d-\u043c\u04d7\u0448",week:{dow:1,doy:7}})}(x(5439))},2092:function(Y,z,x){!function(w){"use strict";w.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn \xf4l",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(E){var S="";return E>20?S=40===E||50===E||60===E||80===E||100===E?"fed":"ain":E>0&&(S=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][E]),E+S},week:{dow:1,doy:4}})}(x(5439))},7387:function(Y,z,x){!function(w){"use strict";w.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8n_man_tir_ons_tor_fre_l\xf8r".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"p\xe5 dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"f\xe5 sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"et \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},9459:function(Y,z,x){!function(w){"use strict";function i(M,S,k,L){var F={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[M+" Tage",M+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[M+" Monate",M+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[M+" Jahre",M+" Jahren"]};return S?F[k][0]:F[k][1]}w.defineLocale("de-at",{months:"J\xe4nner_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"J\xe4n._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:i,mm:"%d Minuten",h:i,hh:"%d Stunden",d:i,dd:i,w:i,ww:"%d Wochen",M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},3694:function(Y,z,x){!function(w){"use strict";function i(M,S,k,L){var F={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[M+" Tage",M+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[M+" Monate",M+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[M+" Jahre",M+" Jahren"]};return S?F[k][0]:F[k][1]}w.defineLocale("de-ch",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:i,mm:"%d Minuten",h:i,hh:"%d Stunden",d:i,dd:i,w:i,ww:"%d Wochen",M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},4307:function(Y,z,x){!function(w){"use strict";function i(M,S,k,L){var F={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[M+" Tage",M+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[M+" Monate",M+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[M+" Jahre",M+" Jahren"]};return S?F[k][0]:F[k][1]}w.defineLocale("de",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:i,mm:"%d Minuten",h:i,hh:"%d Stunden",d:i,dd:i,w:i,ww:"%d Wochen",M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},9659:function(Y,z,x){!function(w){"use strict";var i=["\u0796\u07ac\u0782\u07aa\u0787\u07a6\u0783\u07a9","\u078a\u07ac\u0784\u07b0\u0783\u07aa\u0787\u07a6\u0783\u07a9","\u0789\u07a7\u0783\u07a8\u0797\u07aa","\u0787\u07ad\u0795\u07b0\u0783\u07a9\u078d\u07aa","\u0789\u07ad","\u0796\u07ab\u0782\u07b0","\u0796\u07aa\u078d\u07a6\u0787\u07a8","\u0787\u07af\u078e\u07a6\u0790\u07b0\u0793\u07aa","\u0790\u07ac\u0795\u07b0\u0793\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0787\u07ae\u0786\u07b0\u0793\u07af\u0784\u07a6\u0783\u07aa","\u0782\u07ae\u0788\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0791\u07a8\u0790\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa"],E=["\u0787\u07a7\u078b\u07a8\u0787\u07b0\u078c\u07a6","\u0780\u07af\u0789\u07a6","\u0787\u07a6\u0782\u07b0\u078e\u07a7\u0783\u07a6","\u0784\u07aa\u078b\u07a6","\u0784\u07aa\u0783\u07a7\u0790\u07b0\u078a\u07a6\u078c\u07a8","\u0780\u07aa\u0786\u07aa\u0783\u07aa","\u0780\u07ae\u0782\u07a8\u0780\u07a8\u0783\u07aa"];w.defineLocale("dv",{months:i,monthsShort:i,weekdays:E,weekdaysShort:E,weekdaysMin:"\u0787\u07a7\u078b\u07a8_\u0780\u07af\u0789\u07a6_\u0787\u07a6\u0782\u07b0_\u0784\u07aa\u078b\u07a6_\u0784\u07aa\u0783\u07a7_\u0780\u07aa\u0786\u07aa_\u0780\u07ae\u0782\u07a8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0789\u0786|\u0789\u078a/,isPM:function(S){return"\u0789\u078a"===S},meridiem:function(S,k,L){return S<12?"\u0789\u0786":"\u0789\u078a"},calendar:{sameDay:"[\u0789\u07a8\u0787\u07a6\u078b\u07aa] LT",nextDay:"[\u0789\u07a7\u078b\u07a6\u0789\u07a7] LT",nextWeek:"dddd LT",lastDay:"[\u0787\u07a8\u0787\u07b0\u0794\u07ac] LT",lastWeek:"[\u078a\u07a7\u0787\u07a8\u078c\u07aa\u0788\u07a8] dddd LT",sameElse:"L"},relativeTime:{future:"\u078c\u07ac\u0783\u07ad\u078e\u07a6\u0787\u07a8 %s",past:"\u0786\u07aa\u0783\u07a8\u0782\u07b0 %s",s:"\u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa\u0786\u07ae\u0785\u07ac\u0787\u07b0",ss:"d% \u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa",m:"\u0789\u07a8\u0782\u07a8\u0793\u07ac\u0787\u07b0",mm:"\u0789\u07a8\u0782\u07a8\u0793\u07aa %d",h:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07ac\u0787\u07b0",hh:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07aa %d",d:"\u078b\u07aa\u0788\u07a6\u0780\u07ac\u0787\u07b0",dd:"\u078b\u07aa\u0788\u07a6\u0790\u07b0 %d",M:"\u0789\u07a6\u0780\u07ac\u0787\u07b0",MM:"\u0789\u07a6\u0790\u07b0 %d",y:"\u0787\u07a6\u0780\u07a6\u0783\u07ac\u0787\u07b0",yy:"\u0787\u07a6\u0780\u07a6\u0783\u07aa %d"},preparse:function(S){return S.replace(/\u060c/g,",")},postformat:function(S){return S.replace(/,/g,"\u060c")},week:{dow:7,doy:12}})}(x(5439))},3460:function(Y,z,x){!function(w){"use strict";w.defineLocale("el",{monthsNominativeEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u039c\u03ac\u03c1\u03c4\u03b9\u03bf\u03c2_\u0391\u03c0\u03c1\u03af\u03bb\u03b9\u03bf\u03c2_\u039c\u03ac\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bd\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bb\u03b9\u03bf\u03c2_\u0391\u03cd\u03b3\u03bf\u03c5\u03c3\u03c4\u03bf\u03c2_\u03a3\u03b5\u03c0\u03c4\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u039f\u03ba\u03c4\u03ce\u03b2\u03c1\u03b9\u03bf\u03c2_\u039d\u03bf\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u0394\u03b5\u03ba\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2".split("_"),monthsGenitiveEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u039c\u03b1\u03c1\u03c4\u03af\u03bf\u03c5_\u0391\u03c0\u03c1\u03b9\u03bb\u03af\u03bf\u03c5_\u039c\u03b1\u0390\u03bf\u03c5_\u0399\u03bf\u03c5\u03bd\u03af\u03bf\u03c5_\u0399\u03bf\u03c5\u03bb\u03af\u03bf\u03c5_\u0391\u03c5\u03b3\u03bf\u03cd\u03c3\u03c4\u03bf\u03c5_\u03a3\u03b5\u03c0\u03c4\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u039f\u03ba\u03c4\u03c9\u03b2\u03c1\u03af\u03bf\u03c5_\u039d\u03bf\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u0394\u03b5\u03ba\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5".split("_"),months:function(M,S){return M?"string"==typeof S&&/D/.test(S.substring(0,S.indexOf("MMMM")))?this._monthsGenitiveEl[M.month()]:this._monthsNominativeEl[M.month()]:this._monthsNominativeEl},monthsShort:"\u0399\u03b1\u03bd_\u03a6\u03b5\u03b2_\u039c\u03b1\u03c1_\u0391\u03c0\u03c1_\u039c\u03b1\u03ca_\u0399\u03bf\u03c5\u03bd_\u0399\u03bf\u03c5\u03bb_\u0391\u03c5\u03b3_\u03a3\u03b5\u03c0_\u039f\u03ba\u03c4_\u039d\u03bf\u03b5_\u0394\u03b5\u03ba".split("_"),weekdays:"\u039a\u03c5\u03c1\u03b9\u03b1\u03ba\u03ae_\u0394\u03b5\u03c5\u03c4\u03ad\u03c1\u03b1_\u03a4\u03c1\u03af\u03c4\u03b7_\u03a4\u03b5\u03c4\u03ac\u03c1\u03c4\u03b7_\u03a0\u03ad\u03bc\u03c0\u03c4\u03b7_\u03a0\u03b1\u03c1\u03b1\u03c3\u03ba\u03b5\u03c5\u03ae_\u03a3\u03ac\u03b2\u03b2\u03b1\u03c4\u03bf".split("_"),weekdaysShort:"\u039a\u03c5\u03c1_\u0394\u03b5\u03c5_\u03a4\u03c1\u03b9_\u03a4\u03b5\u03c4_\u03a0\u03b5\u03bc_\u03a0\u03b1\u03c1_\u03a3\u03b1\u03b2".split("_"),weekdaysMin:"\u039a\u03c5_\u0394\u03b5_\u03a4\u03c1_\u03a4\u03b5_\u03a0\u03b5_\u03a0\u03b1_\u03a3\u03b1".split("_"),meridiem:function(M,S,k){return M>11?k?"\u03bc\u03bc":"\u039c\u039c":k?"\u03c0\u03bc":"\u03a0\u039c"},isPM:function(M){return"\u03bc"===(M+"").toLowerCase()[0]},meridiemParse:/[\u03a0\u039c]\.?\u039c?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[\u03a3\u03ae\u03bc\u03b5\u03c1\u03b1 {}] LT",nextDay:"[\u0391\u03cd\u03c1\u03b9\u03bf {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[\u03a7\u03b8\u03b5\u03c2 {}] LT",lastWeek:function(){return 6===this.day()?"[\u03c4\u03bf \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03bf] dddd [{}] LT":"[\u03c4\u03b7\u03bd \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03b7] dddd [{}] LT"},sameElse:"L"},calendar:function(M,S){var k=this._calendarEl[M],L=S&&S.hours();return function i(M){return typeof Function<"u"&&M instanceof Function||"[object Function]"===Object.prototype.toString.call(M)}(k)&&(k=k.apply(S)),k.replace("{}",L%12==1?"\u03c3\u03c4\u03b7":"\u03c3\u03c4\u03b9\u03c2")},relativeTime:{future:"\u03c3\u03b5 %s",past:"%s \u03c0\u03c1\u03b9\u03bd",s:"\u03bb\u03af\u03b3\u03b1 \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",ss:"%d \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",m:"\u03ad\u03bd\u03b1 \u03bb\u03b5\u03c0\u03c4\u03cc",mm:"%d \u03bb\u03b5\u03c0\u03c4\u03ac",h:"\u03bc\u03af\u03b1 \u03ce\u03c1\u03b1",hh:"%d \u03ce\u03c1\u03b5\u03c2",d:"\u03bc\u03af\u03b1 \u03bc\u03ad\u03c1\u03b1",dd:"%d \u03bc\u03ad\u03c1\u03b5\u03c2",M:"\u03ad\u03bd\u03b1\u03c2 \u03bc\u03ae\u03bd\u03b1\u03c2",MM:"%d \u03bc\u03ae\u03bd\u03b5\u03c2",y:"\u03ad\u03bd\u03b1\u03c2 \u03c7\u03c1\u03cc\u03bd\u03bf\u03c2",yy:"%d \u03c7\u03c1\u03cc\u03bd\u03b9\u03b1"},dayOfMonthOrdinalParse:/\d{1,2}\u03b7/,ordinal:"%d\u03b7",week:{dow:1,doy:4}})}(x(5439))},4369:function(Y,z,x){!function(w){"use strict";w.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(E){var M=E%10;return E+(1==~~(E%100/10)?"th":1===M?"st":2===M?"nd":3===M?"rd":"th")},week:{dow:0,doy:4}})}(x(5439))},530:function(Y,z,x){!function(w){"use strict";w.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(E){var M=E%10;return E+(1==~~(E%100/10)?"th":1===M?"st":2===M?"nd":3===M?"rd":"th")}})}(x(5439))},9998:function(Y,z,x){!function(w){"use strict";w.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(E){var M=E%10;return E+(1==~~(E%100/10)?"th":1===M?"st":2===M?"nd":3===M?"rd":"th")},week:{dow:1,doy:4}})}(x(5439))},3391:function(Y,z,x){!function(w){"use strict";w.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(E){var M=E%10;return E+(1==~~(E%100/10)?"th":1===M?"st":2===M?"nd":3===M?"rd":"th")},week:{dow:1,doy:4}})}(x(5439))},5414:function(Y,z,x){!function(w){"use strict";w.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(E){var M=E%10;return E+(1==~~(E%100/10)?"th":1===M?"st":2===M?"nd":3===M?"rd":"th")}})}(x(5439))},9615:function(Y,z,x){!function(w){"use strict";w.defineLocale("en-in",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(E){var M=E%10;return E+(1==~~(E%100/10)?"th":1===M?"st":2===M?"nd":3===M?"rd":"th")},week:{dow:0,doy:6}})}(x(5439))},1248:function(Y,z,x){!function(w){"use strict";w.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(E){var M=E%10;return E+(1==~~(E%100/10)?"th":1===M?"st":2===M?"nd":3===M?"rd":"th")},week:{dow:1,doy:4}})}(x(5439))},3767:function(Y,z,x){!function(w){"use strict";w.defineLocale("en-sg",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(E){var M=E%10;return E+(1==~~(E%100/10)?"th":1===M?"st":2===M?"nd":3===M?"rd":"th")},week:{dow:1,doy:4}})}(x(5439))},4530:function(Y,z,x){!function(w){"use strict";w.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_a\u016dgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_a\u016dg_sept_okt_nov_dec".split("_"),weekdays:"diman\u0109o_lundo_mardo_merkredo_\u0135a\u016ddo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_\u0135a\u016d_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_\u0135a_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(E){return"p"===E.charAt(0).toLowerCase()},meridiem:function(E,M,S){return E>11?S?"p.t.m.":"P.T.M.":S?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodia\u016d je] LT",nextDay:"[Morga\u016d je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hiera\u016d je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"anta\u016d %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(x(5439))},8944:function(Y,z,x){!function(w){"use strict";var i="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),E="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),M=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],S=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;w.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(L,F){return L?/-MMM-/.test(F)?E[L.month()]:i[L.month()]:i},monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:M,longMonthsParse:M,shortMonthsParse:M,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(x(5439))},9116:function(Y,z,x){!function(w){"use strict";var i="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),E="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),M=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],S=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;w.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(L,F){return L?/-MMM-/.test(F)?E[L.month()]:i[L.month()]:i},monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:M,longMonthsParse:M,shortMonthsParse:M,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:4},invalidDate:"Fecha inv\xe1lida"})}(x(5439))},3609:function(Y,z,x){!function(w){"use strict";var i="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),E="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),M=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],S=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;w.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(L,F){return L?/-MMM-/.test(F)?E[L.month()]:i[L.month()]:i},monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:M,longMonthsParse:M,shortMonthsParse:M,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:6}})}(x(5439))},6866:function(Y,z,x){!function(w){"use strict";var i="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),E="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),M=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],S=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;w.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(L,F){return L?/-MMM-/.test(F)?E[L.month()]:i[L.month()]:i},monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:M,longMonthsParse:M,shortMonthsParse:M,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4},invalidDate:"Fecha inv\xe1lida"})}(x(5439))},6725:function(Y,z,x){!function(w){"use strict";function i(M,S,k,L){var F={s:["m\xf5ne sekundi","m\xf5ni sekund","paar sekundit"],ss:[M+"sekundi",M+"sekundit"],m:["\xfche minuti","\xfcks minut"],mm:[M+" minuti",M+" minutit"],h:["\xfche tunni","tund aega","\xfcks tund"],hh:[M+" tunni",M+" tundi"],d:["\xfche p\xe4eva","\xfcks p\xe4ev"],M:["kuu aja","kuu aega","\xfcks kuu"],MM:[M+" kuu",M+" kuud"],y:["\xfche aasta","aasta","\xfcks aasta"],yy:[M+" aasta",M+" aastat"]};return S?F[k][2]?F[k][2]:F[k][1]:L?F[k][0]:F[k][1]}w.defineLocale("et",{months:"jaanuar_veebruar_m\xe4rts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_m\xe4rts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"p\xfchap\xe4ev_esmasp\xe4ev_teisip\xe4ev_kolmap\xe4ev_neljap\xe4ev_reede_laup\xe4ev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[T\xe4na,] LT",nextDay:"[Homme,] LT",nextWeek:"[J\xe4rgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s p\xe4rast",past:"%s tagasi",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:"%d p\xe4eva",M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},7931:function(Y,z,x){!function(w){"use strict";w.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(x(5439))},6417:function(Y,z,x){!function(w){"use strict";var i={1:"\u06f1",2:"\u06f2",3:"\u06f3",4:"\u06f4",5:"\u06f5",6:"\u06f6",7:"\u06f7",8:"\u06f8",9:"\u06f9",0:"\u06f0"},E={"\u06f1":"1","\u06f2":"2","\u06f3":"3","\u06f4":"4","\u06f5":"5","\u06f6":"6","\u06f7":"7","\u06f8":"8","\u06f9":"9","\u06f0":"0"};w.defineLocale("fa",{months:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),monthsShort:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),weekdays:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysShort:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u062c_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631|\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/,isPM:function(S){return/\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/.test(S)},meridiem:function(S,k,L){return S<12?"\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631":"\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631"},calendar:{sameDay:"[\u0627\u0645\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",nextDay:"[\u0641\u0631\u062f\u0627 \u0633\u0627\u0639\u062a] LT",nextWeek:"dddd [\u0633\u0627\u0639\u062a] LT",lastDay:"[\u062f\u06cc\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",lastWeek:"dddd [\u067e\u06cc\u0634] [\u0633\u0627\u0639\u062a] LT",sameElse:"L"},relativeTime:{future:"\u062f\u0631 %s",past:"%s \u067e\u06cc\u0634",s:"\u0686\u0646\u062f \u062b\u0627\u0646\u06cc\u0647",ss:"%d \u062b\u0627\u0646\u06cc\u0647",m:"\u06cc\u06a9 \u062f\u0642\u06cc\u0642\u0647",mm:"%d \u062f\u0642\u06cc\u0642\u0647",h:"\u06cc\u06a9 \u0633\u0627\u0639\u062a",hh:"%d \u0633\u0627\u0639\u062a",d:"\u06cc\u06a9 \u0631\u0648\u0632",dd:"%d \u0631\u0648\u0632",M:"\u06cc\u06a9 \u0645\u0627\u0647",MM:"%d \u0645\u0627\u0647",y:"\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(S){return S.replace(/[\u06f0-\u06f9]/g,function(k){return E[k]}).replace(/\u060c/g,",")},postformat:function(S){return S.replace(/\d/g,function(k){return i[k]}).replace(/,/g,"\u060c")},dayOfMonthOrdinalParse:/\d{1,2}\u0645/,ordinal:"%d\u0645",week:{dow:6,doy:12}})}(x(5439))},944:function(Y,z,x){!function(w){"use strict";var i="nolla yksi kaksi kolme nelj\xe4 viisi kuusi seitsem\xe4n kahdeksan yhdeks\xe4n".split(" "),E=["nolla","yhden","kahden","kolmen","nelj\xe4n","viiden","kuuden",i[7],i[8],i[9]];function M(L,F,U,J){var Q="";switch(U){case"s":return J?"muutaman sekunnin":"muutama sekunti";case"ss":Q=J?"sekunnin":"sekuntia";break;case"m":return J?"minuutin":"minuutti";case"mm":Q=J?"minuutin":"minuuttia";break;case"h":return J?"tunnin":"tunti";case"hh":Q=J?"tunnin":"tuntia";break;case"d":return J?"p\xe4iv\xe4n":"p\xe4iv\xe4";case"dd":Q=J?"p\xe4iv\xe4n":"p\xe4iv\xe4\xe4";break;case"M":return J?"kuukauden":"kuukausi";case"MM":Q=J?"kuukauden":"kuukautta";break;case"y":return J?"vuoden":"vuosi";case"yy":Q=J?"vuoden":"vuotta"}return function S(L,F){return L<10?F?E[L]:i[L]:L}(L,J)+" "+Q}w.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kes\xe4kuu_hein\xe4kuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kes\xe4_hein\xe4_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[t\xe4n\xe4\xe4n] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s p\xe4\xe4st\xe4",past:"%s sitten",s:M,ss:M,m:M,mm:M,h:M,hh:M,d:M,dd:M,M,MM:M,y:M,yy:M},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},1766:function(Y,z,x){!function(w){"use strict";w.defineLocale("fil",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(E){return E},week:{dow:1,doy:4}})}(x(5439))},5867:function(Y,z,x){!function(w){"use strict";w.defineLocale("fo",{months:"januar_februar_mars_apr\xedl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_m\xe1nadagur_t\xfdsdagur_mikudagur_h\xf3sdagur_fr\xedggjadagur_leygardagur".split("_"),weekdaysShort:"sun_m\xe1n_t\xfds_mik_h\xf3s_fr\xed_ley".split("_"),weekdaysMin:"su_m\xe1_t\xfd_mi_h\xf3_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[\xcd dag kl.] LT",nextDay:"[\xcd morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xcd gj\xe1r kl.] LT",lastWeek:"[s\xed\xf0stu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s s\xed\xf0ani",s:"f\xe1 sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein t\xedmi",hh:"%d t\xedmar",d:"ein dagur",dd:"%d dagar",M:"ein m\xe1na\xf0ur",MM:"%d m\xe1na\xf0ir",y:"eitt \xe1r",yy:"%d \xe1r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},6848:function(Y,z,x){!function(w){"use strict";w.defineLocale("fr-ca",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(E,M){switch(M){default:case"M":case"Q":case"D":case"DDD":case"d":return E+(1===E?"er":"e");case"w":case"W":return E+(1===E?"re":"e")}}})}(x(5439))},7773:function(Y,z,x){!function(w){"use strict";w.defineLocale("fr-ch",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(E,M){switch(M){default:case"M":case"Q":case"D":case"DDD":case"d":return E+(1===E?"er":"e");case"w":case"W":return E+(1===E?"re":"e")}},week:{dow:1,doy:4}})}(x(5439))},1636:function(Y,z,x){!function(w){"use strict";var M=/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?|janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,S=[/^janv/i,/^f\xe9vr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^ao\xfbt/i,/^sept/i,/^oct/i,/^nov/i,/^d\xe9c/i];w.defineLocale("fr",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsRegex:M,monthsShortRegex:M,monthsStrictRegex:/^(janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,monthsShortStrictRegex:/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?)/i,monthsParse:S,longMonthsParse:S,shortMonthsParse:S,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(L,F){switch(F){case"D":return L+(1===L?"er":"");default:case"M":case"Q":case"DDD":case"d":return L+(1===L?"er":"e");case"w":case"W":return L+(1===L?"re":"e")}},week:{dow:1,doy:4}})}(x(5439))},4940:function(Y,z,x){!function(w){"use strict";var i="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),E="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");w.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(S,k){return S?/-MMM-/.test(k)?E[S.month()]:i[S.month()]:i},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[\xf4fr\xfbne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien min\xfat",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(S){return S+(1===S||8===S||S>=20?"ste":"de")},week:{dow:1,doy:4}})}(x(5439))},1402:function(Y,z,x){!function(w){"use strict";w.defineLocale("ga",{months:["Ean\xe1ir","Feabhra","M\xe1rta","Aibre\xe1n","Bealtaine","Meitheamh","I\xfail","L\xfanasa","Me\xe1n F\xf3mhair","Deireadh F\xf3mhair","Samhain","Nollaig"],monthsShort:["Ean","Feabh","M\xe1rt","Aib","Beal","Meith","I\xfail","L\xfan","M.F.","D.F.","Samh","Noll"],monthsParseExact:!0,weekdays:["D\xe9 Domhnaigh","D\xe9 Luain","D\xe9 M\xe1irt","D\xe9 C\xe9adaoin","D\xe9ardaoin","D\xe9 hAoine","D\xe9 Sathairn"],weekdaysShort:["Domh","Luan","M\xe1irt","C\xe9ad","D\xe9ar","Aoine","Sath"],weekdaysMin:["Do","Lu","M\xe1","C\xe9","D\xe9","A","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Am\xe1rach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inn\xe9 ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s \xf3 shin",s:"c\xfapla soicind",ss:"%d soicind",m:"n\xf3im\xe9ad",mm:"%d n\xf3im\xe9ad",h:"uair an chloig",hh:"%d uair an chloig",d:"l\xe1",dd:"%d l\xe1",M:"m\xed",MM:"%d m\xedonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(F){return F+(1===F?"d":F%10==2?"na":"mh")},week:{dow:1,doy:4}})}(x(5439))},6924:function(Y,z,x){!function(w){"use strict";w.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am M\xe0rt","An Giblean","An C\xe8itean","An t-\xd2gmhios","An t-Iuchar","An L\xf9nastal","An t-Sultain","An D\xe0mhair","An t-Samhain","An D\xf9bhlachd"],monthsShort:["Faoi","Gear","M\xe0rt","Gibl","C\xe8it","\xd2gmh","Iuch","L\xf9n","Sult","D\xe0mh","Samh","D\xf9bh"],monthsParseExact:!0,weekdays:["Did\xf2mhnaich","Diluain","Dim\xe0irt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["D\xf2","Lu","M\xe0","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-m\xe0ireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-d\xe8 aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"m\xecos",MM:"%d m\xecosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(F){return F+(1===F?"d":F%10==2?"na":"mh")},week:{dow:1,doy:4}})}(x(5439))},6398:function(Y,z,x){!function(w){"use strict";w.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xu\xf1o_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xu\xf1._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_m\xe9rcores_xoves_venres_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._m\xe9r._xov._ven._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_m\xe9_xo_ve_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextDay:function(){return"[ma\xf1\xe1 "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"\xe1s":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"\xe1":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"\xe1s":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(E){return 0===E.indexOf("un")?"n"+E:"en "+E},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(x(5439))},2457:function(Y,z,x){!function(w){"use strict";function i(M,S,k,L){var F={s:["\u0925\u094b\u0921\u092f\u093e \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940","\u0925\u094b\u0921\u0947 \u0938\u0945\u0915\u0902\u0921"],ss:[M+" \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940",M+" \u0938\u0945\u0915\u0902\u0921"],m:["\u090f\u0915\u093e \u092e\u093f\u0923\u091f\u093e\u0928","\u090f\u0915 \u092e\u093f\u0928\u0942\u091f"],mm:[M+" \u092e\u093f\u0923\u091f\u093e\u0902\u0928\u0940",M+" \u092e\u093f\u0923\u091f\u093e\u0902"],h:["\u090f\u0915\u093e \u0935\u0930\u093e\u0928","\u090f\u0915 \u0935\u0930"],hh:[M+" \u0935\u0930\u093e\u0902\u0928\u0940",M+" \u0935\u0930\u093e\u0902"],d:["\u090f\u0915\u093e \u0926\u093f\u0938\u093e\u0928","\u090f\u0915 \u0926\u0940\u0938"],dd:[M+" \u0926\u093f\u0938\u093e\u0902\u0928\u0940",M+" \u0926\u0940\u0938"],M:["\u090f\u0915\u093e \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928","\u090f\u0915 \u092e\u094d\u0939\u092f\u0928\u094b"],MM:[M+" \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928\u0940",M+" \u092e\u094d\u0939\u092f\u0928\u0947"],y:["\u090f\u0915\u093e \u0935\u0930\u094d\u0938\u093e\u0928","\u090f\u0915 \u0935\u0930\u094d\u0938"],yy:[M+" \u0935\u0930\u094d\u0938\u093e\u0902\u0928\u0940",M+" \u0935\u0930\u094d\u0938\u093e\u0902"]};return L?F[k][0]:F[k][1]}w.defineLocale("gom-deva",{months:{standalone:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u092f_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),format:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092e\u093e\u0930\u094d\u091a\u093e\u091a\u094d\u092f\u093e_\u090f\u092a\u094d\u0930\u0940\u0932\u093e\u091a\u094d\u092f\u093e_\u092e\u0947\u092f\u093e\u091a\u094d\u092f\u093e_\u091c\u0942\u0928\u093e\u091a\u094d\u092f\u093e_\u091c\u0941\u0932\u092f\u093e\u091a\u094d\u092f\u093e_\u0911\u0917\u0938\u094d\u091f\u093e\u091a\u094d\u092f\u093e_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0911\u0915\u094d\u091f\u094b\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0921\u093f\u0938\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940._\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u092f\u0924\u093e\u0930_\u0938\u094b\u092e\u093e\u0930_\u092e\u0902\u0917\u0933\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u092c\u093f\u0930\u0947\u0938\u094d\u0924\u093e\u0930_\u0938\u0941\u0915\u094d\u0930\u093e\u0930_\u0936\u0947\u0928\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0906\u092f\u0924._\u0938\u094b\u092e._\u092e\u0902\u0917\u0933._\u092c\u0941\u0927._\u092c\u094d\u0930\u0947\u0938\u094d\u0924._\u0938\u0941\u0915\u094d\u0930._\u0936\u0947\u0928.".split("_"),weekdaysMin:"\u0906_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u092c\u094d\u0930\u0947_\u0938\u0941_\u0936\u0947".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LTS:"A h:mm:ss [\u0935\u093e\u091c\u0924\u093e\u0902]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",llll:"ddd, D MMM YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]"},calendar:{sameDay:"[\u0906\u092f\u091c] LT",nextDay:"[\u092b\u093e\u0932\u094d\u092f\u093e\u0902] LT",nextWeek:"[\u092b\u0941\u0921\u0932\u094b] dddd[,] LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092b\u093e\u091f\u0932\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s \u0906\u0926\u0940\u0902",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}(\u0935\u0947\u0930)/,ordinal:function(M,S){return"D"===S?M+"\u0935\u0947\u0930":M},week:{dow:0,doy:3},meridiemParse:/\u0930\u093e\u0924\u0940|\u0938\u0915\u093e\u0933\u0940\u0902|\u0926\u0928\u092a\u093e\u0930\u093e\u0902|\u0938\u093e\u0902\u091c\u0947/,meridiemHour:function(M,S){return 12===M&&(M=0),"\u0930\u093e\u0924\u0940"===S?M<4?M:M+12:"\u0938\u0915\u093e\u0933\u0940\u0902"===S?M:"\u0926\u0928\u092a\u093e\u0930\u093e\u0902"===S?M>12?M:M+12:"\u0938\u093e\u0902\u091c\u0947"===S?M+12:void 0},meridiem:function(M,S,k){return M<4?"\u0930\u093e\u0924\u0940":M<12?"\u0938\u0915\u093e\u0933\u0940\u0902":M<16?"\u0926\u0928\u092a\u093e\u0930\u093e\u0902":M<20?"\u0938\u093e\u0902\u091c\u0947":"\u0930\u093e\u0924\u0940"}})}(x(5439))},2545:function(Y,z,x){!function(w){"use strict";function i(M,S,k,L){var F={s:["thoddea sekondamni","thodde sekond"],ss:[M+" sekondamni",M+" sekond"],m:["eka mintan","ek minut"],mm:[M+" mintamni",M+" mintam"],h:["eka voran","ek vor"],hh:[M+" voramni",M+" voram"],d:["eka disan","ek dis"],dd:[M+" disamni",M+" dis"],M:["eka mhoinean","ek mhoino"],MM:[M+" mhoineamni",M+" mhoine"],y:["eka vorsan","ek voros"],yy:[M+" vorsamni",M+" vorsam"]};return L?F[k][0]:F[k][1]}w.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(M,S){return"D"===S?M+"er":M},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(M,S){return 12===M&&(M=0),"rati"===S?M<4?M:M+12:"sokallim"===S?M:"donparam"===S?M>12?M:M+12:"sanje"===S?M+12:void 0},meridiem:function(M,S,k){return M<4?"rati":M<12?"sokallim":M<16?"donparam":M<20?"sanje":"rati"}})}(x(5439))},2641:function(Y,z,x){!function(w){"use strict";var i={1:"\u0ae7",2:"\u0ae8",3:"\u0ae9",4:"\u0aea",5:"\u0aeb",6:"\u0aec",7:"\u0aed",8:"\u0aee",9:"\u0aef",0:"\u0ae6"},E={"\u0ae7":"1","\u0ae8":"2","\u0ae9":"3","\u0aea":"4","\u0aeb":"5","\u0aec":"6","\u0aed":"7","\u0aee":"8","\u0aef":"9","\u0ae6":"0"};w.defineLocale("gu",{months:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1\u0a86\u0ab0\u0ac0_\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1\u0a86\u0ab0\u0ac0_\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf\u0ab2_\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe\u0a88_\u0a91\u0a97\u0ab8\u0acd\u0a9f_\u0ab8\u0aaa\u0acd\u0a9f\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0a91\u0a95\u0acd\u0a9f\u0acd\u0aac\u0ab0_\u0aa8\u0ab5\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0aa1\u0abf\u0ab8\u0ac7\u0aae\u0acd\u0aac\u0ab0".split("_"),monthsShort:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1._\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1._\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf._\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe._\u0a91\u0a97._\u0ab8\u0aaa\u0acd\u0a9f\u0ac7._\u0a91\u0a95\u0acd\u0a9f\u0acd._\u0aa8\u0ab5\u0ac7._\u0aa1\u0abf\u0ab8\u0ac7.".split("_"),monthsParseExact:!0,weekdays:"\u0ab0\u0ab5\u0abf\u0ab5\u0abe\u0ab0_\u0ab8\u0acb\u0aae\u0ab5\u0abe\u0ab0_\u0aae\u0a82\u0a97\u0ab3\u0ab5\u0abe\u0ab0_\u0aac\u0ac1\u0aa7\u0acd\u0ab5\u0abe\u0ab0_\u0a97\u0ac1\u0ab0\u0ac1\u0ab5\u0abe\u0ab0_\u0ab6\u0ac1\u0a95\u0acd\u0ab0\u0ab5\u0abe\u0ab0_\u0ab6\u0aa8\u0abf\u0ab5\u0abe\u0ab0".split("_"),weekdaysShort:"\u0ab0\u0ab5\u0abf_\u0ab8\u0acb\u0aae_\u0aae\u0a82\u0a97\u0ab3_\u0aac\u0ac1\u0aa7\u0acd_\u0a97\u0ac1\u0ab0\u0ac1_\u0ab6\u0ac1\u0a95\u0acd\u0ab0_\u0ab6\u0aa8\u0abf".split("_"),weekdaysMin:"\u0ab0_\u0ab8\u0acb_\u0aae\u0a82_\u0aac\u0ac1_\u0a97\u0ac1_\u0ab6\u0ac1_\u0ab6".split("_"),longDateFormat:{LT:"A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LTS:"A h:mm:ss \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LLLL:"dddd, D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7"},calendar:{sameDay:"[\u0a86\u0a9c] LT",nextDay:"[\u0a95\u0abe\u0ab2\u0ac7] LT",nextWeek:"dddd, LT",lastDay:"[\u0a97\u0a87\u0a95\u0abe\u0ab2\u0ac7] LT",lastWeek:"[\u0aaa\u0abe\u0a9b\u0ab2\u0abe] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0aae\u0abe",past:"%s \u0aaa\u0ab9\u0ac7\u0ab2\u0abe",s:"\u0a85\u0aae\u0ac1\u0a95 \u0aaa\u0ab3\u0acb",ss:"%d \u0ab8\u0ac7\u0a95\u0a82\u0aa1",m:"\u0a8f\u0a95 \u0aae\u0abf\u0aa8\u0abf\u0a9f",mm:"%d \u0aae\u0abf\u0aa8\u0abf\u0a9f",h:"\u0a8f\u0a95 \u0a95\u0ab2\u0abe\u0a95",hh:"%d \u0a95\u0ab2\u0abe\u0a95",d:"\u0a8f\u0a95 \u0aa6\u0abf\u0ab5\u0ab8",dd:"%d \u0aa6\u0abf\u0ab5\u0ab8",M:"\u0a8f\u0a95 \u0aae\u0ab9\u0abf\u0aa8\u0acb",MM:"%d \u0aae\u0ab9\u0abf\u0aa8\u0acb",y:"\u0a8f\u0a95 \u0ab5\u0ab0\u0acd\u0ab7",yy:"%d \u0ab5\u0ab0\u0acd\u0ab7"},preparse:function(S){return S.replace(/[\u0ae7\u0ae8\u0ae9\u0aea\u0aeb\u0aec\u0aed\u0aee\u0aef\u0ae6]/g,function(k){return E[k]})},postformat:function(S){return S.replace(/\d/g,function(k){return i[k]})},meridiemParse:/\u0ab0\u0abe\u0aa4|\u0aac\u0aaa\u0acb\u0ab0|\u0ab8\u0ab5\u0abe\u0ab0|\u0ab8\u0abe\u0a82\u0a9c/,meridiemHour:function(S,k){return 12===S&&(S=0),"\u0ab0\u0abe\u0aa4"===k?S<4?S:S+12:"\u0ab8\u0ab5\u0abe\u0ab0"===k?S:"\u0aac\u0aaa\u0acb\u0ab0"===k?S>=10?S:S+12:"\u0ab8\u0abe\u0a82\u0a9c"===k?S+12:void 0},meridiem:function(S,k,L){return S<4?"\u0ab0\u0abe\u0aa4":S<10?"\u0ab8\u0ab5\u0abe\u0ab0":S<17?"\u0aac\u0aaa\u0acb\u0ab0":S<20?"\u0ab8\u0abe\u0a82\u0a9c":"\u0ab0\u0abe\u0aa4"},week:{dow:0,doy:6}})}(x(5439))},7536:function(Y,z,x){!function(w){"use strict";w.defineLocale("he",{months:"\u05d9\u05e0\u05d5\u05d0\u05e8_\u05e4\u05d1\u05e8\u05d5\u05d0\u05e8_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05d9\u05dc_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05d5\u05e1\u05d8_\u05e1\u05e4\u05d8\u05de\u05d1\u05e8_\u05d0\u05d5\u05e7\u05d8\u05d5\u05d1\u05e8_\u05e0\u05d5\u05d1\u05de\u05d1\u05e8_\u05d3\u05e6\u05de\u05d1\u05e8".split("_"),monthsShort:"\u05d9\u05e0\u05d5\u05f3_\u05e4\u05d1\u05e8\u05f3_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05f3_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05f3_\u05e1\u05e4\u05d8\u05f3_\u05d0\u05d5\u05e7\u05f3_\u05e0\u05d5\u05d1\u05f3_\u05d3\u05e6\u05de\u05f3".split("_"),weekdays:"\u05e8\u05d0\u05e9\u05d5\u05df_\u05e9\u05e0\u05d9_\u05e9\u05dc\u05d9\u05e9\u05d9_\u05e8\u05d1\u05d9\u05e2\u05d9_\u05d7\u05de\u05d9\u05e9\u05d9_\u05e9\u05d9\u05e9\u05d9_\u05e9\u05d1\u05ea".split("_"),weekdaysShort:"\u05d0\u05f3_\u05d1\u05f3_\u05d2\u05f3_\u05d3\u05f3_\u05d4\u05f3_\u05d5\u05f3_\u05e9\u05f3".split("_"),weekdaysMin:"\u05d0_\u05d1_\u05d2_\u05d3_\u05d4_\u05d5_\u05e9".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [\u05d1]MMMM YYYY",LLL:"D [\u05d1]MMMM YYYY HH:mm",LLLL:"dddd, D [\u05d1]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[\u05d4\u05d9\u05d5\u05dd \u05d1\u05be]LT",nextDay:"[\u05de\u05d7\u05e8 \u05d1\u05be]LT",nextWeek:"dddd [\u05d1\u05e9\u05e2\u05d4] LT",lastDay:"[\u05d0\u05ea\u05de\u05d5\u05dc \u05d1\u05be]LT",lastWeek:"[\u05d1\u05d9\u05d5\u05dd] dddd [\u05d4\u05d0\u05d7\u05e8\u05d5\u05df \u05d1\u05e9\u05e2\u05d4] LT",sameElse:"L"},relativeTime:{future:"\u05d1\u05e2\u05d5\u05d3 %s",past:"\u05dc\u05e4\u05e0\u05d9 %s",s:"\u05de\u05e1\u05e4\u05e8 \u05e9\u05e0\u05d9\u05d5\u05ea",ss:"%d \u05e9\u05e0\u05d9\u05d5\u05ea",m:"\u05d3\u05e7\u05d4",mm:"%d \u05d3\u05e7\u05d5\u05ea",h:"\u05e9\u05e2\u05d4",hh:function(E){return 2===E?"\u05e9\u05e2\u05ea\u05d9\u05d9\u05dd":E+" \u05e9\u05e2\u05d5\u05ea"},d:"\u05d9\u05d5\u05dd",dd:function(E){return 2===E?"\u05d9\u05d5\u05de\u05d9\u05d9\u05dd":E+" \u05d9\u05de\u05d9\u05dd"},M:"\u05d7\u05d5\u05d3\u05e9",MM:function(E){return 2===E?"\u05d7\u05d5\u05d3\u05e9\u05d9\u05d9\u05dd":E+" \u05d7\u05d5\u05d3\u05e9\u05d9\u05dd"},y:"\u05e9\u05e0\u05d4",yy:function(E){return 2===E?"\u05e9\u05e0\u05ea\u05d9\u05d9\u05dd":E%10==0&&10!==E?E+" \u05e9\u05e0\u05d4":E+" \u05e9\u05e0\u05d9\u05dd"}},meridiemParse:/\u05d0\u05d7\u05d4"\u05e6|\u05dc\u05e4\u05e0\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8|\u05d1\u05d1\u05d5\u05e7\u05e8|\u05d1\u05e2\u05e8\u05d1/i,isPM:function(E){return/^(\u05d0\u05d7\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05d1\u05e2\u05e8\u05d1)$/.test(E)},meridiem:function(E,M,S){return E<5?"\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8":E<10?"\u05d1\u05d1\u05d5\u05e7\u05e8":E<12?S?'\u05dc\u05e4\u05e0\u05d4"\u05e6':"\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":E<18?S?'\u05d0\u05d7\u05d4"\u05e6':"\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":"\u05d1\u05e2\u05e8\u05d1"}})}(x(5439))},6335:function(Y,z,x){!function(w){"use strict";var i={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},E={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"},M=[/^\u091c\u0928/i,/^\u092b\u093c\u0930|\u092b\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924\u0902|\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935|\u0928\u0935\u0902/i,/^\u0926\u093f\u0938\u0902|\u0926\u093f\u0938/i];w.defineLocale("hi",{months:{format:"\u091c\u0928\u0935\u0930\u0940_\u092b\u093c\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u092e\u094d\u092c\u0930_\u0926\u093f\u0938\u092e\u094d\u092c\u0930".split("_"),standalone:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u0902\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u0902\u092c\u0930_\u0926\u093f\u0938\u0902\u092c\u0930".split("_")},monthsShort:"\u091c\u0928._\u092b\u093c\u0930._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948._\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0905\u0917._\u0938\u093f\u0924._\u0905\u0915\u094d\u091f\u0942._\u0928\u0935._\u0926\u093f\u0938.".split("_"),weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0932\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0932_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u092c\u091c\u0947",LTS:"A h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A h:mm \u092c\u091c\u0947"},monthsParse:M,longMonthsParse:M,shortMonthsParse:[/^\u091c\u0928/i,/^\u092b\u093c\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935/i,/^\u0926\u093f\u0938/i],monthsRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsShortRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsStrictRegex:/^(\u091c\u0928\u0935\u0930\u0940?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908?|\u0905\u0917\u0938\u094d\u0924?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924?\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930?)/i,monthsShortStrictRegex:/^(\u091c\u0928\.?|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\.?|\u0905\u0917\.?|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\.?|\u0926\u093f\u0938\.?)/i,calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0915\u0932] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u0932] LT",lastWeek:"[\u092a\u093f\u091b\u0932\u0947] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u092e\u0947\u0902",past:"%s \u092a\u0939\u0932\u0947",s:"\u0915\u0941\u091b \u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0902\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u091f",mm:"%d \u092e\u093f\u0928\u091f",h:"\u090f\u0915 \u0918\u0902\u091f\u093e",hh:"%d \u0918\u0902\u091f\u0947",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u0940\u0928\u0947",MM:"%d \u092e\u0939\u0940\u0928\u0947",y:"\u090f\u0915 \u0935\u0930\u094d\u0937",yy:"%d \u0935\u0930\u094d\u0937"},preparse:function(L){return L.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(F){return E[F]})},postformat:function(L){return L.replace(/\d/g,function(F){return i[F]})},meridiemParse:/\u0930\u093e\u0924|\u0938\u0941\u092c\u0939|\u0926\u094b\u092a\u0939\u0930|\u0936\u093e\u092e/,meridiemHour:function(L,F){return 12===L&&(L=0),"\u0930\u093e\u0924"===F?L<4?L:L+12:"\u0938\u0941\u092c\u0939"===F?L:"\u0926\u094b\u092a\u0939\u0930"===F?L>=10?L:L+12:"\u0936\u093e\u092e"===F?L+12:void 0},meridiem:function(L,F,U){return L<4?"\u0930\u093e\u0924":L<10?"\u0938\u0941\u092c\u0939":L<17?"\u0926\u094b\u092a\u0939\u0930":L<20?"\u0936\u093e\u092e":"\u0930\u093e\u0924"},week:{dow:0,doy:6}})}(x(5439))},7458:function(Y,z,x){!function(w){"use strict";function i(M,S,k){var L=M+" ";switch(k){case"ss":return L+(1===M?"sekunda":2===M||3===M||4===M?"sekunde":"sekundi");case"m":return S?"jedna minuta":"jedne minute";case"mm":return L+(1===M?"minuta":2===M||3===M||4===M?"minute":"minuta");case"h":return S?"jedan sat":"jednog sata";case"hh":return L+(1===M?"sat":2===M||3===M||4===M?"sata":"sati");case"dd":return L+(1===M?"dan":"dana");case"MM":return L+(1===M?"mjesec":2===M||3===M||4===M?"mjeseca":"mjeseci");case"yy":return L+(1===M?"godina":2===M||3===M||4===M?"godine":"godina")}}w.defineLocale("hr",{months:{format:"sije\u010dnja_velja\u010de_o\u017eujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"sije\u010danj_velja\u010da_o\u017eujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._o\u017eu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:return"[pro\u0161lu] [nedjelju] [u] LT";case 3:return"[pro\u0161lu] [srijedu] [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:i,m:i,mm:i,h:i,hh:i,d:"dan",dd:i,M:"mjesec",MM:i,y:"godinu",yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(x(5439))},6540:function(Y,z,x){!function(w){"use strict";var i="vas\xe1rnap h\xe9tf\u0151n kedden szerd\xe1n cs\xfct\xf6rt\xf6k\xf6n p\xe9nteken szombaton".split(" ");function E(k,L,F,U){var J=k;switch(F){case"s":return U||L?"n\xe9h\xe1ny m\xe1sodperc":"n\xe9h\xe1ny m\xe1sodperce";case"ss":return J+(U||L)?" m\xe1sodperc":" m\xe1sodperce";case"m":return"egy"+(U||L?" perc":" perce");case"mm":return J+(U||L?" perc":" perce");case"h":return"egy"+(U||L?" \xf3ra":" \xf3r\xe1ja");case"hh":return J+(U||L?" \xf3ra":" \xf3r\xe1ja");case"d":return"egy"+(U||L?" nap":" napja");case"dd":return J+(U||L?" nap":" napja");case"M":return"egy"+(U||L?" h\xf3nap":" h\xf3napja");case"MM":return J+(U||L?" h\xf3nap":" h\xf3napja");case"y":return"egy"+(U||L?" \xe9v":" \xe9ve");case"yy":return J+(U||L?" \xe9v":" \xe9ve")}return""}function M(k){return(k?"":"[m\xfalt] ")+"["+i[this.day()]+"] LT[-kor]"}w.defineLocale("hu",{months:"janu\xe1r_febru\xe1r_m\xe1rcius_\xe1prilis_m\xe1jus_j\xfanius_j\xfalius_augusztus_szeptember_okt\xf3ber_november_december".split("_"),monthsShort:"jan._feb._m\xe1rc._\xe1pr._m\xe1j._j\xfan._j\xfal._aug._szept._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"vas\xe1rnap_h\xe9tf\u0151_kedd_szerda_cs\xfct\xf6rt\xf6k_p\xe9ntek_szombat".split("_"),weekdaysShort:"vas_h\xe9t_kedd_sze_cs\xfct_p\xe9n_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(k){return"u"===k.charAt(1).toLowerCase()},meridiem:function(k,L,F){return k<12?!0===F?"de":"DE":!0===F?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return M.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return M.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s m\xfalva",past:"%s",s:E,ss:E,m:E,mm:E,h:E,hh:E,d:E,dd:E,M:E,MM:E,y:E,yy:E},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},5283:function(Y,z,x){!function(w){"use strict";w.defineLocale("hy-am",{months:{format:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580\u056b_\u0583\u0565\u057f\u0580\u057e\u0561\u0580\u056b_\u0574\u0561\u0580\u057f\u056b_\u0561\u057a\u0580\u056b\u056c\u056b_\u0574\u0561\u0575\u056b\u057d\u056b_\u0570\u0578\u0582\u0576\u056b\u057d\u056b_\u0570\u0578\u0582\u056c\u056b\u057d\u056b_\u0585\u0563\u0578\u057d\u057f\u0578\u057d\u056b_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580\u056b_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b".split("_"),standalone:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580_\u0583\u0565\u057f\u0580\u057e\u0561\u0580_\u0574\u0561\u0580\u057f_\u0561\u057a\u0580\u056b\u056c_\u0574\u0561\u0575\u056b\u057d_\u0570\u0578\u0582\u0576\u056b\u057d_\u0570\u0578\u0582\u056c\u056b\u057d_\u0585\u0563\u0578\u057d\u057f\u0578\u057d_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580".split("_")},monthsShort:"\u0570\u0576\u057e_\u0583\u057f\u0580_\u0574\u0580\u057f_\u0561\u057a\u0580_\u0574\u0575\u057d_\u0570\u0576\u057d_\u0570\u056c\u057d_\u0585\u0563\u057d_\u057d\u057a\u057f_\u0570\u056f\u057f_\u0576\u0574\u0562_\u0564\u056f\u057f".split("_"),weekdays:"\u056f\u056b\u0580\u0561\u056f\u056b_\u0565\u0580\u056f\u0578\u0582\u0577\u0561\u0562\u0569\u056b_\u0565\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0579\u0578\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0570\u056b\u0576\u0563\u0577\u0561\u0562\u0569\u056b_\u0578\u0582\u0580\u0562\u0561\u0569_\u0577\u0561\u0562\u0561\u0569".split("_"),weekdaysShort:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),weekdaysMin:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0569.",LLL:"D MMMM YYYY \u0569., HH:mm",LLLL:"dddd, D MMMM YYYY \u0569., HH:mm"},calendar:{sameDay:"[\u0561\u0575\u057d\u0585\u0580] LT",nextDay:"[\u057e\u0561\u0572\u0568] LT",lastDay:"[\u0565\u0580\u0565\u056f] LT",nextWeek:function(){return"dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},lastWeek:function(){return"[\u0561\u0576\u0581\u0561\u056e] dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},sameElse:"L"},relativeTime:{future:"%s \u0570\u0565\u057f\u0578",past:"%s \u0561\u057c\u0561\u057b",s:"\u0574\u056b \u0584\u0561\u0576\u056b \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",ss:"%d \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",m:"\u0580\u0578\u057a\u0565",mm:"%d \u0580\u0578\u057a\u0565",h:"\u056a\u0561\u0574",hh:"%d \u056a\u0561\u0574",d:"\u0585\u0580",dd:"%d \u0585\u0580",M:"\u0561\u0574\u056b\u057d",MM:"%d \u0561\u0574\u056b\u057d",y:"\u057f\u0561\u0580\u056b",yy:"%d \u057f\u0561\u0580\u056b"},meridiemParse:/\u0563\u056b\u0577\u0565\u0580\u057e\u0561|\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561|\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576/,isPM:function(E){return/^(\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576)$/.test(E)},meridiem:function(E){return E<4?"\u0563\u056b\u0577\u0565\u0580\u057e\u0561":E<12?"\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561":E<17?"\u0581\u0565\u0580\u0565\u056f\u057e\u0561":"\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(\u056b\u0576|\u0580\u0564)/,ordinal:function(E,M){switch(M){case"DDD":case"w":case"W":case"DDDo":return 1===E?E+"-\u056b\u0576":E+"-\u0580\u0564";default:return E}},week:{dow:1,doy:7}})}(x(5439))},8780:function(Y,z,x){!function(w){"use strict";w.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(E,M){return 12===E&&(E=0),"pagi"===M?E:"siang"===M?E>=11?E:E+12:"sore"===M||"malam"===M?E+12:void 0},meridiem:function(E,M,S){return E<11?"pagi":E<15?"siang":E<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}})}(x(5439))},4205:function(Y,z,x){!function(w){"use strict";function i(S){return S%100==11||S%10!=1}function E(S,k,L,F){var U=S+" ";switch(L){case"s":return k||F?"nokkrar sek\xfandur":"nokkrum sek\xfandum";case"ss":return i(S)?U+(k||F?"sek\xfandur":"sek\xfandum"):U+"sek\xfanda";case"m":return k?"m\xedn\xfata":"m\xedn\xfatu";case"mm":return i(S)?U+(k||F?"m\xedn\xfatur":"m\xedn\xfatum"):k?U+"m\xedn\xfata":U+"m\xedn\xfatu";case"hh":return i(S)?U+(k||F?"klukkustundir":"klukkustundum"):U+"klukkustund";case"d":return k?"dagur":F?"dag":"degi";case"dd":return i(S)?k?U+"dagar":U+(F?"daga":"d\xf6gum"):k?U+"dagur":U+(F?"dag":"degi");case"M":return k?"m\xe1nu\xf0ur":F?"m\xe1nu\xf0":"m\xe1nu\xf0i";case"MM":return i(S)?k?U+"m\xe1nu\xf0ir":U+(F?"m\xe1nu\xf0i":"m\xe1nu\xf0um"):k?U+"m\xe1nu\xf0ur":U+(F?"m\xe1nu\xf0":"m\xe1nu\xf0i");case"y":return k||F?"\xe1r":"\xe1ri";case"yy":return i(S)?U+(k||F?"\xe1r":"\xe1rum"):U+(k||F?"\xe1r":"\xe1ri")}}w.defineLocale("is",{months:"jan\xfaar_febr\xfaar_mars_apr\xedl_ma\xed_j\xfan\xed_j\xfal\xed_\xe1g\xfast_september_okt\xf3ber_n\xf3vember_desember".split("_"),monthsShort:"jan_feb_mar_apr_ma\xed_j\xfan_j\xfal_\xe1g\xfa_sep_okt_n\xf3v_des".split("_"),weekdays:"sunnudagur_m\xe1nudagur_\xferi\xf0judagur_mi\xf0vikudagur_fimmtudagur_f\xf6studagur_laugardagur".split("_"),weekdaysShort:"sun_m\xe1n_\xferi_mi\xf0_fim_f\xf6s_lau".split("_"),weekdaysMin:"Su_M\xe1_\xder_Mi_Fi_F\xf6_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[\xed dag kl.] LT",nextDay:"[\xe1 morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xed g\xe6r kl.] LT",lastWeek:"[s\xed\xf0asta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s s\xed\xf0an",s:E,ss:E,m:E,mm:E,h:"klukkustund",hh:E,d:E,dd:E,M:E,MM:E,y:E,yy:E},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},9985:function(Y,z,x){!function(w){"use strict";w.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){return 0===this.day()?"[la scorsa] dddd [alle] LT":"[lo scorso] dddd [alle] LT"},sameElse:"L"},relativeTime:{future:function(E){return(/^[0-9].+$/.test(E)?"tra":"in")+" "+E},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(x(5439))},4211:function(Y,z,x){!function(w){"use strict";w.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){return 0===this.day()?"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT":"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(x(5439))},1003:function(Y,z,x){!function(w){"use strict";w.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"\u4ee4\u548c",narrow:"\u32ff",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"\u5e73\u6210",narrow:"\u337b",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"\u662d\u548c",narrow:"\u337c",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"\u5927\u6b63",narrow:"\u337d",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"\u660e\u6cbb",narrow:"\u337e",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"\u897f\u66a6",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"\u7d00\u5143\u524d",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(\u5143|\d+)\u5e74/,eraYearOrdinalParse:function(E,M){return"\u5143"===M[1]?1:parseInt(M[1]||E,10)},months:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u65e5\u66dc\u65e5_\u6708\u66dc\u65e5_\u706b\u66dc\u65e5_\u6c34\u66dc\u65e5_\u6728\u66dc\u65e5_\u91d1\u66dc\u65e5_\u571f\u66dc\u65e5".split("_"),weekdaysShort:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),weekdaysMin:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5(ddd) HH:mm"},meridiemParse:/\u5348\u524d|\u5348\u5f8c/i,isPM:function(E){return"\u5348\u5f8c"===E},meridiem:function(E,M,S){return E<12?"\u5348\u524d":"\u5348\u5f8c"},calendar:{sameDay:"[\u4eca\u65e5] LT",nextDay:"[\u660e\u65e5] LT",nextWeek:function(E){return E.week()!==this.week()?"[\u6765\u9031]dddd LT":"dddd LT"},lastDay:"[\u6628\u65e5] LT",lastWeek:function(E){return this.week()!==E.week()?"[\u5148\u9031]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}\u65e5/,ordinal:function(E,M){switch(M){case"y":return 1===E?"\u5143\u5e74":E+"\u5e74";case"d":case"D":case"DDD":return E+"\u65e5";default:return E}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u6570\u79d2",ss:"%d\u79d2",m:"1\u5206",mm:"%d\u5206",h:"1\u6642\u9593",hh:"%d\u6642\u9593",d:"1\u65e5",dd:"%d\u65e5",M:"1\u30f6\u6708",MM:"%d\u30f6\u6708",y:"1\u5e74",yy:"%d\u5e74"}})}(x(5439))},420:function(Y,z,x){!function(w){"use strict";w.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(E,M){return 12===E&&(E=0),"enjing"===M?E:"siyang"===M?E>=11?E:E+12:"sonten"===M||"ndalu"===M?E+12:void 0},meridiem:function(E,M,S){return E<11?"enjing":E<15?"siyang":E<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(x(5439))},851:function(Y,z,x){!function(w){"use strict";w.defineLocale("ka",{months:"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10d8_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10d8_\u10db\u10d0\u10e0\u10e2\u10d8_\u10d0\u10de\u10e0\u10d8\u10da\u10d8_\u10db\u10d0\u10d8\u10e1\u10d8_\u10d8\u10d5\u10dc\u10d8\u10e1\u10d8_\u10d8\u10d5\u10da\u10d8\u10e1\u10d8_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10dd_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10d8_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10d8".split("_"),monthsShort:"\u10d8\u10d0\u10dc_\u10d7\u10d4\u10d1_\u10db\u10d0\u10e0_\u10d0\u10de\u10e0_\u10db\u10d0\u10d8_\u10d8\u10d5\u10dc_\u10d8\u10d5\u10da_\u10d0\u10d2\u10d5_\u10e1\u10d4\u10e5_\u10dd\u10e5\u10e2_\u10dc\u10dd\u10d4_\u10d3\u10d4\u10d9".split("_"),weekdays:{standalone:"\u10d9\u10d5\u10d8\u10e0\u10d0_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10d8_\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8".split("_"),format:"\u10d9\u10d5\u10d8\u10e0\u10d0\u10e1_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10e1_\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1".split("_"),isFormat:/(\u10ec\u10d8\u10dc\u10d0|\u10e8\u10d4\u10db\u10d3\u10d4\u10d2)/},weekdaysShort:"\u10d9\u10d5\u10d8_\u10dd\u10e0\u10e8_\u10e1\u10d0\u10db_\u10dd\u10d7\u10ee_\u10ee\u10e3\u10d7_\u10de\u10d0\u10e0_\u10e8\u10d0\u10d1".split("_"),weekdaysMin:"\u10d9\u10d5_\u10dd\u10e0_\u10e1\u10d0_\u10dd\u10d7_\u10ee\u10e3_\u10de\u10d0_\u10e8\u10d0".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u10d3\u10e6\u10d4\u10e1] LT[-\u10d6\u10d4]",nextDay:"[\u10ee\u10d5\u10d0\u10da] LT[-\u10d6\u10d4]",lastDay:"[\u10d2\u10e3\u10e8\u10d8\u10dc] LT[-\u10d6\u10d4]",nextWeek:"[\u10e8\u10d4\u10db\u10d3\u10d4\u10d2] dddd LT[-\u10d6\u10d4]",lastWeek:"[\u10ec\u10d8\u10dc\u10d0] dddd LT-\u10d6\u10d4",sameElse:"L"},relativeTime:{future:function(E){return E.replace(/(\u10ec\u10d0\u10db|\u10ec\u10e3\u10d7|\u10e1\u10d0\u10d0\u10d7|\u10ec\u10d4\u10da|\u10d3\u10e6|\u10d7\u10d5)(\u10d8|\u10d4)/,function(M,S,k){return"\u10d8"===k?S+"\u10e8\u10d8":S+k+"\u10e8\u10d8"})},past:function(E){return/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10d3\u10e6\u10d4|\u10d7\u10d5\u10d4)/.test(E)?E.replace(/(\u10d8|\u10d4)$/,"\u10d8\u10e1 \u10ec\u10d8\u10dc"):/\u10ec\u10d4\u10da\u10d8/.test(E)?E.replace(/\u10ec\u10d4\u10da\u10d8$/,"\u10ec\u10da\u10d8\u10e1 \u10ec\u10d8\u10dc"):E},s:"\u10e0\u10d0\u10db\u10d3\u10d4\u10dc\u10d8\u10db\u10d4 \u10ec\u10d0\u10db\u10d8",ss:"%d \u10ec\u10d0\u10db\u10d8",m:"\u10ec\u10e3\u10d7\u10d8",mm:"%d \u10ec\u10e3\u10d7\u10d8",h:"\u10e1\u10d0\u10d0\u10d7\u10d8",hh:"%d \u10e1\u10d0\u10d0\u10d7\u10d8",d:"\u10d3\u10e6\u10d4",dd:"%d \u10d3\u10e6\u10d4",M:"\u10d7\u10d5\u10d4",MM:"%d \u10d7\u10d5\u10d4",y:"\u10ec\u10d4\u10da\u10d8",yy:"%d \u10ec\u10d4\u10da\u10d8"},dayOfMonthOrdinalParse:/0|1-\u10da\u10d8|\u10db\u10d4-\d{1,2}|\d{1,2}-\u10d4/,ordinal:function(E){return 0===E?E:1===E?E+"-\u10da\u10d8":E<20||E<=100&&E%20==0||E%100==0?"\u10db\u10d4-"+E:E+"-\u10d4"},week:{dow:1,doy:7}})}(x(5439))},6074:function(Y,z,x){!function(w){"use strict";var i={0:"-\u0448\u0456",1:"-\u0448\u0456",2:"-\u0448\u0456",3:"-\u0448\u0456",4:"-\u0448\u0456",5:"-\u0448\u0456",6:"-\u0448\u044b",7:"-\u0448\u0456",8:"-\u0448\u0456",9:"-\u0448\u044b",10:"-\u0448\u044b",20:"-\u0448\u044b",30:"-\u0448\u044b",40:"-\u0448\u044b",50:"-\u0448\u0456",60:"-\u0448\u044b",70:"-\u0448\u0456",80:"-\u0448\u0456",90:"-\u0448\u044b",100:"-\u0448\u0456"};w.defineLocale("kk",{months:"\u049b\u0430\u04a3\u0442\u0430\u0440_\u0430\u049b\u043f\u0430\u043d_\u043d\u0430\u0443\u0440\u044b\u0437_\u0441\u04d9\u0443\u0456\u0440_\u043c\u0430\u043c\u044b\u0440_\u043c\u0430\u0443\u0441\u044b\u043c_\u0448\u0456\u043b\u0434\u0435_\u0442\u0430\u043c\u044b\u0437_\u049b\u044b\u0440\u043a\u04af\u0439\u0435\u043a_\u049b\u0430\u0437\u0430\u043d_\u049b\u0430\u0440\u0430\u0448\u0430_\u0436\u0435\u043b\u0442\u043e\u049b\u0441\u0430\u043d".split("_"),monthsShort:"\u049b\u0430\u04a3_\u0430\u049b\u043f_\u043d\u0430\u0443_\u0441\u04d9\u0443_\u043c\u0430\u043c_\u043c\u0430\u0443_\u0448\u0456\u043b_\u0442\u0430\u043c_\u049b\u044b\u0440_\u049b\u0430\u0437_\u049b\u0430\u0440_\u0436\u0435\u043b".split("_"),weekdays:"\u0436\u0435\u043a\u0441\u0435\u043d\u0431\u0456_\u0434\u04af\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u04d9\u0440\u0441\u0435\u043d\u0431\u0456_\u0431\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0436\u04b1\u043c\u0430_\u0441\u0435\u043d\u0431\u0456".split("_"),weekdaysShort:"\u0436\u0435\u043a_\u0434\u04af\u0439_\u0441\u0435\u0439_\u0441\u04d9\u0440_\u0431\u0435\u0439_\u0436\u04b1\u043c_\u0441\u0435\u043d".split("_"),weekdaysMin:"\u0436\u043a_\u0434\u0439_\u0441\u0439_\u0441\u0440_\u0431\u0439_\u0436\u043c_\u0441\u043d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u0456\u043d \u0441\u0430\u0493\u0430\u0442] LT",nextDay:"[\u0415\u0440\u0442\u0435\u04a3 \u0441\u0430\u0493\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0493\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0448\u0435 \u0441\u0430\u0493\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u0435\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u04a3] dddd [\u0441\u0430\u0493\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0456\u0448\u0456\u043d\u0434\u0435",past:"%s \u0431\u04b1\u0440\u044b\u043d",s:"\u0431\u0456\u0440\u043d\u0435\u0448\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0456\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u0431\u0456\u0440 \u0441\u0430\u0493\u0430\u0442",hh:"%d \u0441\u0430\u0493\u0430\u0442",d:"\u0431\u0456\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0456\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0456\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0448\u0456|\u0448\u044b)/,ordinal:function(M){return M+(i[M]||i[M%10]||i[M>=100?100:null])},week:{dow:1,doy:7}})}(x(5439))},3343:function(Y,z,x){!function(w){"use strict";var i={1:"\u17e1",2:"\u17e2",3:"\u17e3",4:"\u17e4",5:"\u17e5",6:"\u17e6",7:"\u17e7",8:"\u17e8",9:"\u17e9",0:"\u17e0"},E={"\u17e1":"1","\u17e2":"2","\u17e3":"3","\u17e4":"4","\u17e5":"5","\u17e6":"6","\u17e7":"7","\u17e8":"8","\u17e9":"9","\u17e0":"0"};w.defineLocale("km",{months:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),monthsShort:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),weekdays:"\u17a2\u17b6\u1791\u17b7\u178f\u17d2\u1799_\u1785\u17d0\u1793\u17d2\u1791_\u17a2\u1784\u17d2\u1782\u17b6\u179a_\u1796\u17bb\u1792_\u1796\u17d2\u179a\u17a0\u179f\u17d2\u1794\u178f\u17b7\u17cd_\u179f\u17bb\u1780\u17d2\u179a_\u179f\u17c5\u179a\u17cd".split("_"),weekdaysShort:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysMin:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u1796\u17d2\u179a\u17b9\u1780|\u179b\u17d2\u1784\u17b6\u1785/,isPM:function(S){return"\u179b\u17d2\u1784\u17b6\u1785"===S},meridiem:function(S,k,L){return S<12?"\u1796\u17d2\u179a\u17b9\u1780":"\u179b\u17d2\u1784\u17b6\u1785"},calendar:{sameDay:"[\u1790\u17d2\u1784\u17c3\u1793\u17c1\u17c7 \u1798\u17c9\u17c4\u1784] LT",nextDay:"[\u179f\u17d2\u17a2\u17c2\u1780 \u1798\u17c9\u17c4\u1784] LT",nextWeek:"dddd [\u1798\u17c9\u17c4\u1784] LT",lastDay:"[\u1798\u17d2\u179f\u17b7\u179b\u1798\u17b7\u1789 \u1798\u17c9\u17c4\u1784] LT",lastWeek:"dddd [\u179f\u1794\u17d2\u178f\u17b6\u17a0\u17cd\u1798\u17bb\u1793] [\u1798\u17c9\u17c4\u1784] LT",sameElse:"L"},relativeTime:{future:"%s\u1791\u17c0\u178f",past:"%s\u1798\u17bb\u1793",s:"\u1794\u17c9\u17bb\u1793\u17d2\u1798\u17b6\u1793\u179c\u17b7\u1793\u17b6\u1791\u17b8",ss:"%d \u179c\u17b7\u1793\u17b6\u1791\u17b8",m:"\u1798\u17bd\u1799\u1793\u17b6\u1791\u17b8",mm:"%d \u1793\u17b6\u1791\u17b8",h:"\u1798\u17bd\u1799\u1798\u17c9\u17c4\u1784",hh:"%d \u1798\u17c9\u17c4\u1784",d:"\u1798\u17bd\u1799\u1790\u17d2\u1784\u17c3",dd:"%d \u1790\u17d2\u1784\u17c3",M:"\u1798\u17bd\u1799\u1781\u17c2",MM:"%d \u1781\u17c2",y:"\u1798\u17bd\u1799\u1786\u17d2\u1793\u17b6\u17c6",yy:"%d \u1786\u17d2\u1793\u17b6\u17c6"},dayOfMonthOrdinalParse:/\u1791\u17b8\d{1,2}/,ordinal:"\u1791\u17b8%d",preparse:function(S){return S.replace(/[\u17e1\u17e2\u17e3\u17e4\u17e5\u17e6\u17e7\u17e8\u17e9\u17e0]/g,function(k){return E[k]})},postformat:function(S){return S.replace(/\d/g,function(k){return i[k]})},week:{dow:1,doy:4}})}(x(5439))},4799:function(Y,z,x){!function(w){"use strict";var i={1:"\u0ce7",2:"\u0ce8",3:"\u0ce9",4:"\u0cea",5:"\u0ceb",6:"\u0cec",7:"\u0ced",8:"\u0cee",9:"\u0cef",0:"\u0ce6"},E={"\u0ce7":"1","\u0ce8":"2","\u0ce9":"3","\u0cea":"4","\u0ceb":"5","\u0cec":"6","\u0ced":"7","\u0cee":"8","\u0cef":"9","\u0ce6":"0"};w.defineLocale("kn",{months:"\u0c9c\u0ca8\u0cb5\u0cb0\u0cbf_\u0cab\u0cc6\u0cac\u0ccd\u0cb0\u0cb5\u0cb0\u0cbf_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5\u0cac\u0cb0\u0ccd_\u0ca8\u0cb5\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82\u0cac\u0cb0\u0ccd".split("_"),monthsShort:"\u0c9c\u0ca8_\u0cab\u0cc6\u0cac\u0ccd\u0cb0_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5_\u0ca8\u0cb5\u0cc6\u0c82_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82".split("_"),monthsParseExact:!0,weekdays:"\u0cad\u0cbe\u0ca8\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae\u0cb5\u0cbe\u0cb0_\u0cae\u0c82\u0c97\u0cb3\u0cb5\u0cbe\u0cb0_\u0cac\u0cc1\u0ca7\u0cb5\u0cbe\u0cb0_\u0c97\u0cc1\u0cb0\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0\u0cb5\u0cbe\u0cb0_\u0cb6\u0ca8\u0cbf\u0cb5\u0cbe\u0cb0".split("_"),weekdaysShort:"\u0cad\u0cbe\u0ca8\u0cc1_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae_\u0cae\u0c82\u0c97\u0cb3_\u0cac\u0cc1\u0ca7_\u0c97\u0cc1\u0cb0\u0cc1_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0_\u0cb6\u0ca8\u0cbf".split("_"),weekdaysMin:"\u0cad\u0cbe_\u0cb8\u0cc6\u0cc2\u0cd5_\u0cae\u0c82_\u0cac\u0cc1_\u0c97\u0cc1_\u0cb6\u0cc1_\u0cb6".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c87\u0c82\u0ca6\u0cc1] LT",nextDay:"[\u0ca8\u0cbe\u0cb3\u0cc6] LT",nextWeek:"dddd, LT",lastDay:"[\u0ca8\u0cbf\u0ca8\u0ccd\u0ca8\u0cc6] LT",lastWeek:"[\u0c95\u0cc6\u0cc2\u0ca8\u0cc6\u0caf] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0ca8\u0c82\u0ca4\u0cb0",past:"%s \u0cb9\u0cbf\u0c82\u0ca6\u0cc6",s:"\u0c95\u0cc6\u0cb2\u0cb5\u0cc1 \u0c95\u0ccd\u0cb7\u0ca3\u0c97\u0cb3\u0cc1",ss:"%d \u0cb8\u0cc6\u0c95\u0cc6\u0c82\u0ca1\u0cc1\u0c97\u0cb3\u0cc1",m:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",mm:"%d \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",h:"\u0c92\u0c82\u0ca6\u0cc1 \u0c97\u0c82\u0c9f\u0cc6",hh:"%d \u0c97\u0c82\u0c9f\u0cc6",d:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca6\u0cbf\u0ca8",dd:"%d \u0ca6\u0cbf\u0ca8",M:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",MM:"%d \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",y:"\u0c92\u0c82\u0ca6\u0cc1 \u0cb5\u0cb0\u0ccd\u0cb7",yy:"%d \u0cb5\u0cb0\u0ccd\u0cb7"},preparse:function(S){return S.replace(/[\u0ce7\u0ce8\u0ce9\u0cea\u0ceb\u0cec\u0ced\u0cee\u0cef\u0ce6]/g,function(k){return E[k]})},postformat:function(S){return S.replace(/\d/g,function(k){return i[k]})},meridiemParse:/\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf|\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6|\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8|\u0cb8\u0c82\u0c9c\u0cc6/,meridiemHour:function(S,k){return 12===S&&(S=0),"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"===k?S<4?S:S+12:"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6"===k?S:"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8"===k?S>=10?S:S+12:"\u0cb8\u0c82\u0c9c\u0cc6"===k?S+12:void 0},meridiem:function(S,k,L){return S<4?"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf":S<10?"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6":S<17?"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8":S<20?"\u0cb8\u0c82\u0c9c\u0cc6":"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"},dayOfMonthOrdinalParse:/\d{1,2}(\u0ca8\u0cc6\u0cd5)/,ordinal:function(S){return S+"\u0ca8\u0cc6\u0cd5"},week:{dow:0,doy:6}})}(x(5439))},3549:function(Y,z,x){!function(w){"use strict";w.defineLocale("ko",{months:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),monthsShort:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),weekdays:"\uc77c\uc694\uc77c_\uc6d4\uc694\uc77c_\ud654\uc694\uc77c_\uc218\uc694\uc77c_\ubaa9\uc694\uc77c_\uae08\uc694\uc77c_\ud1a0\uc694\uc77c".split("_"),weekdaysShort:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),weekdaysMin:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY\ub144 MMMM D\uc77c",LLL:"YYYY\ub144 MMMM D\uc77c A h:mm",LLLL:"YYYY\ub144 MMMM D\uc77c dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY\ub144 MMMM D\uc77c",lll:"YYYY\ub144 MMMM D\uc77c A h:mm",llll:"YYYY\ub144 MMMM D\uc77c dddd A h:mm"},calendar:{sameDay:"\uc624\ub298 LT",nextDay:"\ub0b4\uc77c LT",nextWeek:"dddd LT",lastDay:"\uc5b4\uc81c LT",lastWeek:"\uc9c0\ub09c\uc8fc dddd LT",sameElse:"L"},relativeTime:{future:"%s \ud6c4",past:"%s \uc804",s:"\uba87 \ucd08",ss:"%d\ucd08",m:"1\ubd84",mm:"%d\ubd84",h:"\ud55c \uc2dc\uac04",hh:"%d\uc2dc\uac04",d:"\ud558\ub8e8",dd:"%d\uc77c",M:"\ud55c \ub2ec",MM:"%d\ub2ec",y:"\uc77c \ub144",yy:"%d\ub144"},dayOfMonthOrdinalParse:/\d{1,2}(\uc77c|\uc6d4|\uc8fc)/,ordinal:function(E,M){switch(M){case"d":case"D":case"DDD":return E+"\uc77c";case"M":return E+"\uc6d4";case"w":case"W":return E+"\uc8fc";default:return E}},meridiemParse:/\uc624\uc804|\uc624\ud6c4/,isPM:function(E){return"\uc624\ud6c4"===E},meridiem:function(E,M,S){return E<12?"\uc624\uc804":"\uc624\ud6c4"}})}(x(5439))},1037:function(Y,z,x){!function(w){"use strict";var i={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},E={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},M=["\u06a9\u0627\u0646\u0648\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0634\u0648\u0628\u0627\u062a","\u0626\u0627\u0632\u0627\u0631","\u0646\u06cc\u0633\u0627\u0646","\u0626\u0627\u06cc\u0627\u0631","\u062d\u0648\u0632\u06d5\u06cc\u0631\u0627\u0646","\u062a\u06d5\u0645\u0645\u0648\u0632","\u0626\u0627\u0628","\u0626\u06d5\u06cc\u0644\u0648\u0648\u0644","\u062a\u0634\u0631\u06cc\u0646\u06cc \u06cc\u06d5\u0643\u06d5\u0645","\u062a\u0634\u0631\u06cc\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0643\u0627\u0646\u0648\u0646\u06cc \u06cc\u06d5\u06a9\u06d5\u0645"];w.defineLocale("ku",{months:M,monthsShort:M,weekdays:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u062f\u0648\u0648\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0633\u06ce\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysShort:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645_\u062f\u0648\u0648\u0634\u0647\u200c\u0645_\u0633\u06ce\u0634\u0647\u200c\u0645_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u0647_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c|\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc/,isPM:function(k){return/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c/.test(k)},meridiem:function(k,L,F){return k<12?"\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc":"\u0626\u06ce\u0648\u0627\u0631\u0647\u200c"},calendar:{sameDay:"[\u0626\u0647\u200c\u0645\u0631\u06c6 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextDay:"[\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastDay:"[\u062f\u0648\u06ce\u0646\u06ce \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",sameElse:"L"},relativeTime:{future:"\u0644\u0647\u200c %s",past:"%s",s:"\u0686\u0647\u200c\u0646\u062f \u0686\u0631\u0643\u0647\u200c\u06cc\u0647\u200c\u0643",ss:"\u0686\u0631\u0643\u0647\u200c %d",m:"\u06cc\u0647\u200c\u0643 \u062e\u0648\u0644\u0647\u200c\u0643",mm:"%d \u062e\u0648\u0644\u0647\u200c\u0643",h:"\u06cc\u0647\u200c\u0643 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",hh:"%d \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",d:"\u06cc\u0647\u200c\u0643 \u0695\u06c6\u0698",dd:"%d \u0695\u06c6\u0698",M:"\u06cc\u0647\u200c\u0643 \u0645\u0627\u0646\u06af",MM:"%d \u0645\u0627\u0646\u06af",y:"\u06cc\u0647\u200c\u0643 \u0633\u0627\u06b5",yy:"%d \u0633\u0627\u06b5"},preparse:function(k){return k.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(L){return E[L]}).replace(/\u060c/g,",")},postformat:function(k){return k.replace(/\d/g,function(L){return i[L]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(x(5439))},3125:function(Y,z,x){!function(w){"use strict";var i={0:"-\u0447\u04af",1:"-\u0447\u0438",2:"-\u0447\u0438",3:"-\u0447\u04af",4:"-\u0447\u04af",5:"-\u0447\u0438",6:"-\u0447\u044b",7:"-\u0447\u0438",8:"-\u0447\u0438",9:"-\u0447\u0443",10:"-\u0447\u0443",20:"-\u0447\u044b",30:"-\u0447\u0443",40:"-\u0447\u044b",50:"-\u0447\u04af",60:"-\u0447\u044b",70:"-\u0447\u0438",80:"-\u0447\u0438",90:"-\u0447\u0443",100:"-\u0447\u04af"};w.defineLocale("ky",{months:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u0416\u0435\u043a\u0448\u0435\u043c\u0431\u0438_\u0414\u04af\u0439\u0448\u04e9\u043c\u0431\u04af_\u0428\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0428\u0430\u0440\u0448\u0435\u043c\u0431\u0438_\u0411\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0416\u0443\u043c\u0430_\u0418\u0448\u0435\u043c\u0431\u0438".split("_"),weekdaysShort:"\u0416\u0435\u043a_\u0414\u04af\u0439_\u0428\u0435\u0439_\u0428\u0430\u0440_\u0411\u0435\u0439_\u0416\u0443\u043c_\u0418\u0448\u0435".split("_"),weekdaysMin:"\u0416\u043a_\u0414\u0439_\u0428\u0439_\u0428\u0440_\u0411\u0439_\u0416\u043c_\u0418\u0448".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u04af\u043d \u0441\u0430\u0430\u0442] LT",nextDay:"[\u042d\u0440\u0442\u0435\u04a3 \u0441\u0430\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0447\u044d\u044d \u0441\u0430\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u04e9\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u043d] dddd [\u043a\u04af\u043d\u04af] [\u0441\u0430\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0438\u0447\u0438\u043d\u0434\u0435",past:"%s \u043c\u0443\u0440\u0443\u043d",s:"\u0431\u0438\u0440\u043d\u0435\u0447\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0438\u0440 \u043c\u04af\u043d\u04e9\u0442",mm:"%d \u043c\u04af\u043d\u04e9\u0442",h:"\u0431\u0438\u0440 \u0441\u0430\u0430\u0442",hh:"%d \u0441\u0430\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0438\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0438\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0447\u0438|\u0447\u044b|\u0447\u04af|\u0447\u0443)/,ordinal:function(M){return M+(i[M]||i[M%10]||i[M>=100?100:null])},week:{dow:1,doy:7}})}(x(5439))},9586:function(Y,z,x){!function(w){"use strict";function i(L,F,U,J){var Q={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return F?Q[U][0]:Q[U][1]}function S(L){if(L=parseInt(L,10),isNaN(L))return!1;if(L<0)return!0;if(L<10)return 4<=L&&L<=7;if(L<100){var F=L%10;return S(0===F?L/10:F)}if(L<1e4){for(;L>=10;)L/=10;return S(L)}return S(L/=1e3)}w.defineLocale("lb",{months:"Januar_Februar_M\xe4erz_Abr\xebll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_M\xe9indeg_D\xebnschdeg_M\xebttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._M\xe9._D\xeb._M\xeb._Do._Fr._Sa.".split("_"),weekdaysMin:"So_M\xe9_D\xeb_M\xeb_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[G\xebschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function E(L){return S(L.substr(0,L.indexOf(" ")))?"a "+L:"an "+L},past:function M(L){return S(L.substr(0,L.indexOf(" ")))?"viru "+L:"virun "+L},s:"e puer Sekonnen",ss:"%d Sekonnen",m:i,mm:"%d Minutten",h:i,hh:"%d Stonnen",d:i,dd:"%d Deeg",M:i,MM:"%d M\xe9int",y:i,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},2349:function(Y,z,x){!function(w){"use strict";w.defineLocale("lo",{months:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),monthsShort:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),weekdays:"\u0ead\u0eb2\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysShort:"\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysMin:"\u0e97_\u0e88_\u0ead\u0e84_\u0e9e_\u0e9e\u0eab_\u0eaa\u0e81_\u0eaa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"\u0ea7\u0eb1\u0e99dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2|\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87/,isPM:function(E){return"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"===E},meridiem:function(E,M,S){return E<12?"\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2":"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"},calendar:{sameDay:"[\u0ea1\u0eb7\u0ec9\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextDay:"[\u0ea1\u0eb7\u0ec9\u0ead\u0eb7\u0ec8\u0e99\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0edc\u0ec9\u0eb2\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastDay:"[\u0ea1\u0eb7\u0ec9\u0ea7\u0eb2\u0e99\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0ec1\u0ea5\u0ec9\u0ea7\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",sameElse:"L"},relativeTime:{future:"\u0ead\u0eb5\u0e81 %s",past:"%s\u0e9c\u0ec8\u0eb2\u0e99\u0ea1\u0eb2",s:"\u0e9a\u0ecd\u0ec8\u0ec0\u0e97\u0ebb\u0ec8\u0eb2\u0ec3\u0e94\u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",ss:"%d \u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",m:"1 \u0e99\u0eb2\u0e97\u0eb5",mm:"%d \u0e99\u0eb2\u0e97\u0eb5",h:"1 \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",hh:"%d \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",d:"1 \u0ea1\u0eb7\u0ec9",dd:"%d \u0ea1\u0eb7\u0ec9",M:"1 \u0ec0\u0e94\u0eb7\u0ead\u0e99",MM:"%d \u0ec0\u0e94\u0eb7\u0ead\u0e99",y:"1 \u0e9b\u0eb5",yy:"%d \u0e9b\u0eb5"},dayOfMonthOrdinalParse:/(\u0e97\u0eb5\u0ec8)\d{1,2}/,ordinal:function(E){return"\u0e97\u0eb5\u0ec8"+E}})}(x(5439))},2400:function(Y,z,x){!function(w){"use strict";var i={ss:"sekund\u0117_sekund\u017ei\u0173_sekundes",m:"minut\u0117_minut\u0117s_minut\u0119",mm:"minut\u0117s_minu\u010di\u0173_minutes",h:"valanda_valandos_valand\u0105",hh:"valandos_valand\u0173_valandas",d:"diena_dienos_dien\u0105",dd:"dienos_dien\u0173_dienas",M:"m\u0117nuo_m\u0117nesio_m\u0117nes\u012f",MM:"m\u0117nesiai_m\u0117nesi\u0173_m\u0117nesius",y:"metai_met\u0173_metus",yy:"metai_met\u0173_metus"};function M(U,J,Q,ne){return J?k(Q)[0]:ne?k(Q)[1]:k(Q)[2]}function S(U){return U%10==0||U>10&&U<20}function k(U){return i[U].split("_")}function L(U,J,Q,ne){var le=U+" ";return 1===U?le+M(0,J,Q[0],ne):J?le+(S(U)?k(Q)[1]:k(Q)[0]):ne?le+k(Q)[1]:le+(S(U)?k(Q)[1]:k(Q)[2])}w.defineLocale("lt",{months:{format:"sausio_vasario_kovo_baland\u017eio_gegu\u017e\u0117s_bir\u017eelio_liepos_rugpj\u016b\u010dio_rugs\u0117jo_spalio_lapkri\u010dio_gruod\u017eio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegu\u017e\u0117_bir\u017eelis_liepa_rugpj\u016btis_rugs\u0117jis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadien\u012f_pirmadien\u012f_antradien\u012f_tre\u010diadien\u012f_ketvirtadien\u012f_penktadien\u012f_\u0161e\u0161tadien\u012f".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_tre\u010diadienis_ketvirtadienis_penktadienis_\u0161e\u0161tadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_\u0160e\u0161".split("_"),weekdaysMin:"S_P_A_T_K_Pn_\u0160".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[\u0160iandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Pra\u0117jus\u012f] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prie\u0161 %s",s:function E(U,J,Q,ne){return J?"kelios sekund\u0117s":ne?"keli\u0173 sekund\u017ei\u0173":"kelias sekundes"},ss:L,m:M,mm:L,h:M,hh:L,d:M,dd:L,M,MM:L,y:M,yy:L},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(U){return U+"-oji"},week:{dow:1,doy:4}})}(x(5439))},9991:function(Y,z,x){!function(w){"use strict";var i={ss:"sekundes_sekund\u0113m_sekunde_sekundes".split("_"),m:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),mm:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),h:"stundas_stund\u0101m_stunda_stundas".split("_"),hh:"stundas_stund\u0101m_stunda_stundas".split("_"),d:"dienas_dien\u0101m_diena_dienas".split("_"),dd:"dienas_dien\u0101m_diena_dienas".split("_"),M:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),MM:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function E(F,U,J){return J?U%10==1&&U%100!=11?F[2]:F[3]:U%10==1&&U%100!=11?F[0]:F[1]}function M(F,U,J){return F+" "+E(i[J],F,U)}function S(F,U,J){return E(i[J],F,U)}w.defineLocale("lv",{months:"janv\u0101ris_febru\u0101ris_marts_apr\u012blis_maijs_j\u016bnijs_j\u016blijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_j\u016bn_j\u016bl_aug_sep_okt_nov_dec".split("_"),weekdays:"sv\u0113tdiena_pirmdiena_otrdiena_tre\u0161diena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[\u0160odien pulksten] LT",nextDay:"[R\u012bt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pag\u0101ju\u0161\u0101] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"p\u0113c %s",past:"pirms %s",s:function k(F,U){return U?"da\u017eas sekundes":"da\u017e\u0101m sekund\u0113m"},ss:M,m:S,mm:M,h:S,hh:M,d:S,dd:M,M:S,MM:M,y:S,yy:M},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},8477:function(Y,z,x){!function(w){"use strict";var i={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(M,S){return 1===M?S[0]:M>=2&&M<=4?S[1]:S[2]},translate:function(M,S,k){var L=i.words[k];return 1===k.length?S?L[0]:L[1]:M+" "+i.correctGrammaticalCase(M,L)}};w.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedjelje] [u] LT","[pro\u0161log] [ponedjeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srijede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:i.translate,m:i.translate,mm:i.translate,h:i.translate,hh:i.translate,d:"dan",dd:i.translate,M:"mjesec",MM:i.translate,y:"godinu",yy:i.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(x(5439))},5118:function(Y,z,x){!function(w){"use strict";w.defineLocale("mi",{months:"Kohi-t\u0101te_Hui-tanguru_Pout\u016b-te-rangi_Paenga-wh\u0101wh\u0101_Haratua_Pipiri_H\u014dngoingoi_Here-turi-k\u014dk\u0101_Mahuru_Whiringa-\u0101-nuku_Whiringa-\u0101-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_H\u014dngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"R\u0101tapu_Mane_T\u016brei_Wenerei_T\u0101ite_Paraire_H\u0101tarei".split("_"),weekdaysShort:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),weekdaysMin:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te h\u0113kona ruarua",ss:"%d h\u0113kona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(x(5439))},5943:function(Y,z,x){!function(w){"use strict";w.defineLocale("mk",{months:"\u0458\u0430\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d\u0438_\u0458\u0443\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u0458\u0430\u043d_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u043e\u043a_\u043f\u0435\u0442\u043e\u043a_\u0441\u0430\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u0435_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u0430\u0431".split("_"),weekdaysMin:"\u043de_\u043fo_\u0432\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441a".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u0435\u043d\u0435\u0441 \u0432\u043e] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432\u043e] LT",nextWeek:"[\u0412\u043e] dddd [\u0432\u043e] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432\u043e] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0430\u0442\u0430] dddd [\u0432\u043e] LT";case 1:case 2:case 4:case 5:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0438\u043e\u0442] dddd [\u0432\u043e] LT"}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435\u0434 %s",s:"\u043d\u0435\u043a\u043e\u043b\u043a\u0443 \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u0435\u0434\u043d\u0430 \u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0435\u0434\u0435\u043d \u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0435\u0434\u0435\u043d \u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",M:"\u0435\u0434\u0435\u043d \u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0438",y:"\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(E){var M=E%10,S=E%100;return 0===E?E+"-\u0435\u0432":0===S?E+"-\u0435\u043d":S>10&&S<20?E+"-\u0442\u0438":1===M?E+"-\u0432\u0438":2===M?E+"-\u0440\u0438":7===M||8===M?E+"-\u043c\u0438":E+"-\u0442\u0438"},week:{dow:1,doy:7}})}(x(5439))},3849:function(Y,z,x){!function(w){"use strict";w.defineLocale("ml",{months:"\u0d1c\u0d28\u0d41\u0d35\u0d30\u0d3f_\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41\u0d35\u0d30\u0d3f_\u0d2e\u0d3e\u0d7c\u0d1a\u0d4d\u0d1a\u0d4d_\u0d0f\u0d2a\u0d4d\u0d30\u0d3f\u0d7d_\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48_\u0d13\u0d17\u0d38\u0d4d\u0d31\u0d4d\u0d31\u0d4d_\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31\u0d02\u0d2c\u0d7c_\u0d12\u0d15\u0d4d\u0d1f\u0d4b\u0d2c\u0d7c_\u0d28\u0d35\u0d02\u0d2c\u0d7c_\u0d21\u0d3f\u0d38\u0d02\u0d2c\u0d7c".split("_"),monthsShort:"\u0d1c\u0d28\u0d41._\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41._\u0d2e\u0d3e\u0d7c._\u0d0f\u0d2a\u0d4d\u0d30\u0d3f._\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48._\u0d13\u0d17._\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31._\u0d12\u0d15\u0d4d\u0d1f\u0d4b._\u0d28\u0d35\u0d02._\u0d21\u0d3f\u0d38\u0d02.".split("_"),monthsParseExact:!0,weekdays:"\u0d1e\u0d3e\u0d2f\u0d31\u0d3e\u0d34\u0d4d\u0d1a_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d33\u0d3e\u0d34\u0d4d\u0d1a_\u0d1a\u0d4a\u0d35\u0d4d\u0d35\u0d3e\u0d34\u0d4d\u0d1a_\u0d2c\u0d41\u0d27\u0d28\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a_\u0d36\u0d28\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a".split("_"),weekdaysShort:"\u0d1e\u0d3e\u0d2f\u0d7c_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d7e_\u0d1a\u0d4a\u0d35\u0d4d\u0d35_\u0d2c\u0d41\u0d27\u0d7b_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d02_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f_\u0d36\u0d28\u0d3f".split("_"),weekdaysMin:"\u0d1e\u0d3e_\u0d24\u0d3f_\u0d1a\u0d4a_\u0d2c\u0d41_\u0d35\u0d4d\u0d2f\u0d3e_\u0d35\u0d46_\u0d36".split("_"),longDateFormat:{LT:"A h:mm -\u0d28\u0d41",LTS:"A h:mm:ss -\u0d28\u0d41",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -\u0d28\u0d41",LLLL:"dddd, D MMMM YYYY, A h:mm -\u0d28\u0d41"},calendar:{sameDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d4d] LT",nextDay:"[\u0d28\u0d3e\u0d33\u0d46] LT",nextWeek:"dddd, LT",lastDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d32\u0d46] LT",lastWeek:"[\u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d",past:"%s \u0d2e\u0d41\u0d7b\u0d2a\u0d4d",s:"\u0d05\u0d7d\u0d2a \u0d28\u0d3f\u0d2e\u0d3f\u0d37\u0d19\u0d4d\u0d19\u0d7e",ss:"%d \u0d38\u0d46\u0d15\u0d4d\u0d15\u0d7b\u0d21\u0d4d",m:"\u0d12\u0d30\u0d41 \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",mm:"%d \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",h:"\u0d12\u0d30\u0d41 \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",hh:"%d \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",d:"\u0d12\u0d30\u0d41 \u0d26\u0d3f\u0d35\u0d38\u0d02",dd:"%d \u0d26\u0d3f\u0d35\u0d38\u0d02",M:"\u0d12\u0d30\u0d41 \u0d2e\u0d3e\u0d38\u0d02",MM:"%d \u0d2e\u0d3e\u0d38\u0d02",y:"\u0d12\u0d30\u0d41 \u0d35\u0d7c\u0d37\u0d02",yy:"%d \u0d35\u0d7c\u0d37\u0d02"},meridiemParse:/\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f|\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46|\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d|\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02|\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f/i,meridiemHour:function(E,M){return 12===E&&(E=0),"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"===M&&E>=4||"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d"===M||"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02"===M?E+12:E},meridiem:function(E,M,S){return E<4?"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f":E<12?"\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46":E<17?"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d":E<20?"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02":"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"}})}(x(5439))},1977:function(Y,z,x){!function(w){"use strict";function i(M,S,k,L){switch(k){case"s":return S?"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434":"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d";case"ss":return M+(S?" \u0441\u0435\u043a\u0443\u043d\u0434":" \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d");case"m":case"mm":return M+(S?" \u043c\u0438\u043d\u0443\u0442":" \u043c\u0438\u043d\u0443\u0442\u044b\u043d");case"h":case"hh":return M+(S?" \u0446\u0430\u0433":" \u0446\u0430\u0433\u0438\u0439\u043d");case"d":case"dd":return M+(S?" \u04e9\u0434\u04e9\u0440":" \u04e9\u0434\u0440\u0438\u0439\u043d");case"M":case"MM":return M+(S?" \u0441\u0430\u0440":" \u0441\u0430\u0440\u044b\u043d");case"y":case"yy":return M+(S?" \u0436\u0438\u043b":" \u0436\u0438\u043b\u0438\u0439\u043d");default:return M}}w.defineLocale("mn",{months:"\u041d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0425\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0413\u0443\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u04e9\u0440\u04e9\u0432\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0422\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0417\u0443\u0440\u0433\u0430\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u043e\u043b\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u041d\u0430\u0439\u043c\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0415\u0441\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u043d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u0445\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440".split("_"),monthsShort:"1 \u0441\u0430\u0440_2 \u0441\u0430\u0440_3 \u0441\u0430\u0440_4 \u0441\u0430\u0440_5 \u0441\u0430\u0440_6 \u0441\u0430\u0440_7 \u0441\u0430\u0440_8 \u0441\u0430\u0440_9 \u0441\u0430\u0440_10 \u0441\u0430\u0440_11 \u0441\u0430\u0440_12 \u0441\u0430\u0440".split("_"),monthsParseExact:!0,weekdays:"\u041d\u044f\u043c_\u0414\u0430\u0432\u0430\u0430_\u041c\u044f\u0433\u043c\u0430\u0440_\u041b\u0445\u0430\u0433\u0432\u0430_\u041f\u04af\u0440\u044d\u0432_\u0411\u0430\u0430\u0441\u0430\u043d_\u0411\u044f\u043c\u0431\u0430".split("_"),weekdaysShort:"\u041d\u044f\u043c_\u0414\u0430\u0432_\u041c\u044f\u0433_\u041b\u0445\u0430_\u041f\u04af\u0440_\u0411\u0430\u0430_\u0411\u044f\u043c".split("_"),weekdaysMin:"\u041d\u044f_\u0414\u0430_\u041c\u044f_\u041b\u0445_\u041f\u04af_\u0411\u0430_\u0411\u044f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D",LLL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm",LLLL:"dddd, YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm"},meridiemParse:/\u04ae\u04e8|\u04ae\u0425/i,isPM:function(M){return"\u04ae\u0425"===M},meridiem:function(M,S,k){return M<12?"\u04ae\u04e8":"\u04ae\u0425"},calendar:{sameDay:"[\u04e8\u043d\u04e9\u04e9\u0434\u04e9\u0440] LT",nextDay:"[\u041c\u0430\u0440\u0433\u0430\u0430\u0448] LT",nextWeek:"[\u0418\u0440\u044d\u0445] dddd LT",lastDay:"[\u04e8\u0447\u0438\u0433\u0434\u04e9\u0440] LT",lastWeek:"[\u04e8\u043d\u0433\u04e9\u0440\u0441\u04e9\u043d] dddd LT",sameElse:"L"},relativeTime:{future:"%s \u0434\u0430\u0440\u0430\u0430",past:"%s \u04e9\u043c\u043d\u04e9",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2} \u04e9\u0434\u04e9\u0440/,ordinal:function(M,S){switch(S){case"d":case"D":case"DDD":return M+" \u04e9\u0434\u04e9\u0440";default:return M}}})}(x(5439))},6184:function(Y,z,x){!function(w){"use strict";var i={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},E={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};function M(k,L,F,U){var J="";if(L)switch(F){case"s":J="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926";break;case"ss":J="%d \u0938\u0947\u0915\u0902\u0926";break;case"m":J="\u090f\u0915 \u092e\u093f\u0928\u093f\u091f";break;case"mm":J="%d \u092e\u093f\u0928\u093f\u091f\u0947";break;case"h":J="\u090f\u0915 \u0924\u093e\u0938";break;case"hh":J="%d \u0924\u093e\u0938";break;case"d":J="\u090f\u0915 \u0926\u093f\u0935\u0938";break;case"dd":J="%d \u0926\u093f\u0935\u0938";break;case"M":J="\u090f\u0915 \u092e\u0939\u093f\u0928\u093e";break;case"MM":J="%d \u092e\u0939\u093f\u0928\u0947";break;case"y":J="\u090f\u0915 \u0935\u0930\u094d\u0937";break;case"yy":J="%d \u0935\u0930\u094d\u0937\u0947"}else switch(F){case"s":J="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"ss":J="%d \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"m":J="\u090f\u0915\u093e \u092e\u093f\u0928\u093f\u091f\u093e";break;case"mm":J="%d \u092e\u093f\u0928\u093f\u091f\u093e\u0902";break;case"h":J="\u090f\u0915\u093e \u0924\u093e\u0938\u093e";break;case"hh":J="%d \u0924\u093e\u0938\u093e\u0902";break;case"d":J="\u090f\u0915\u093e \u0926\u093f\u0935\u0938\u093e";break;case"dd":J="%d \u0926\u093f\u0935\u0938\u093e\u0902";break;case"M":J="\u090f\u0915\u093e \u092e\u0939\u093f\u0928\u094d\u092f\u093e";break;case"MM":J="%d \u092e\u0939\u093f\u0928\u094d\u092f\u093e\u0902";break;case"y":J="\u090f\u0915\u093e \u0935\u0930\u094d\u0937\u093e";break;case"yy":J="%d \u0935\u0930\u094d\u0937\u093e\u0902"}return J.replace(/%d/i,k)}w.defineLocale("mr",{months:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u093f\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u0948_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a._\u090f\u092a\u094d\u0930\u093f._\u092e\u0947._\u091c\u0942\u0928._\u091c\u0941\u0932\u0948._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0933\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0933_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u0935\u093e\u091c\u0924\u093e",LTS:"A h:mm:ss \u0935\u093e\u091c\u0924\u093e",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e",LLLL:"dddd, D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0909\u0926\u094d\u092f\u093e] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092e\u093e\u0917\u0940\u0932] dddd, LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u0927\u094d\u092f\u0947",past:"%s\u092a\u0942\u0930\u094d\u0935\u0940",s:M,ss:M,m:M,mm:M,h:M,hh:M,d:M,dd:M,M,MM:M,y:M,yy:M},preparse:function(k){return k.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(L){return E[L]})},postformat:function(k){return k.replace(/\d/g,function(L){return i[L]})},meridiemParse:/\u092a\u0939\u093e\u091f\u0947|\u0938\u0915\u093e\u0933\u0940|\u0926\u0941\u092a\u093e\u0930\u0940|\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940|\u0930\u093e\u0924\u094d\u0930\u0940/,meridiemHour:function(k,L){return 12===k&&(k=0),"\u092a\u0939\u093e\u091f\u0947"===L||"\u0938\u0915\u093e\u0933\u0940"===L?k:"\u0926\u0941\u092a\u093e\u0930\u0940"===L||"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940"===L||"\u0930\u093e\u0924\u094d\u0930\u0940"===L?k>=12?k:k+12:void 0},meridiem:function(k,L,F){return k>=0&&k<6?"\u092a\u0939\u093e\u091f\u0947":k<12?"\u0938\u0915\u093e\u0933\u0940":k<17?"\u0926\u0941\u092a\u093e\u0930\u0940":k<20?"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940":"\u0930\u093e\u0924\u094d\u0930\u0940"},week:{dow:0,doy:6}})}(x(5439))},4524:function(Y,z,x){!function(w){"use strict";w.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(E,M){return 12===E&&(E=0),"pagi"===M?E:"tengahari"===M?E>=11?E:E+12:"petang"===M||"malam"===M?E+12:void 0},meridiem:function(E,M,S){return E<11?"pagi":E<15?"tengahari":E<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(x(5439))},485:function(Y,z,x){!function(w){"use strict";w.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(E,M){return 12===E&&(E=0),"pagi"===M?E:"tengahari"===M?E>=11?E:E+12:"petang"===M||"malam"===M?E+12:void 0},meridiem:function(E,M,S){return E<11?"pagi":E<15?"tengahari":E<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(x(5439))},6681:function(Y,z,x){!function(w){"use strict";w.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_\u0120unju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Di\u010bembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_\u0120un_Lul_Aww_Set_Ott_Nov_Di\u010b".split("_"),weekdays:"Il-\u0126add_It-Tnejn_It-Tlieta_L-Erbg\u0127a_Il-\u0126amis_Il-\u0120img\u0127a_Is-Sibt".split("_"),weekdaysShort:"\u0126ad_Tne_Tli_Erb_\u0126am_\u0120im_Sib".split("_"),weekdaysMin:"\u0126a_Tn_Tl_Er_\u0126a_\u0120i_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[G\u0127ada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-biera\u0127 fil-]LT",lastWeek:"dddd [li g\u0127adda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f\u2019 %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"sieg\u0127a",hh:"%d sieg\u0127at",d:"\u0121urnata",dd:"%d \u0121ranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(x(5439))},2024:function(Y,z,x){!function(w){"use strict";var i={1:"\u1041",2:"\u1042",3:"\u1043",4:"\u1044",5:"\u1045",6:"\u1046",7:"\u1047",8:"\u1048",9:"\u1049",0:"\u1040"},E={"\u1041":"1","\u1042":"2","\u1043":"3","\u1044":"4","\u1045":"5","\u1046":"6","\u1047":"7","\u1048":"8","\u1049":"9","\u1040":"0"};w.defineLocale("my",{months:"\u1007\u1014\u103a\u1014\u101d\u102b\u101b\u102e_\u1016\u1031\u1016\u1031\u102c\u103a\u101d\u102b\u101b\u102e_\u1019\u1010\u103a_\u1027\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u1007\u1030\u101c\u102d\u102f\u1004\u103a_\u101e\u103c\u1002\u102f\u1010\u103a_\u1005\u1000\u103a\u1010\u1004\u103a\u1018\u102c_\u1021\u1031\u102c\u1000\u103a\u1010\u102d\u102f\u1018\u102c_\u1014\u102d\u102f\u101d\u1004\u103a\u1018\u102c_\u1012\u102e\u1007\u1004\u103a\u1018\u102c".split("_"),monthsShort:"\u1007\u1014\u103a_\u1016\u1031_\u1019\u1010\u103a_\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u101c\u102d\u102f\u1004\u103a_\u101e\u103c_\u1005\u1000\u103a_\u1021\u1031\u102c\u1000\u103a_\u1014\u102d\u102f_\u1012\u102e".split("_"),weekdays:"\u1010\u1014\u1004\u103a\u1039\u1002\u1014\u103d\u1031_\u1010\u1014\u1004\u103a\u1039\u101c\u102c_\u1021\u1004\u103a\u1039\u1002\u102b_\u1017\u102f\u1012\u1039\u1013\u101f\u1030\u1038_\u1000\u103c\u102c\u101e\u1015\u1010\u1031\u1038_\u101e\u1031\u102c\u1000\u103c\u102c_\u1005\u1014\u1031".split("_"),weekdaysShort:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),weekdaysMin:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u101a\u1014\u1031.] LT [\u1019\u103e\u102c]",nextDay:"[\u1019\u1014\u1000\u103a\u1016\u103c\u1014\u103a] LT [\u1019\u103e\u102c]",nextWeek:"dddd LT [\u1019\u103e\u102c]",lastDay:"[\u1019\u1014\u1031.\u1000] LT [\u1019\u103e\u102c]",lastWeek:"[\u1015\u103c\u102e\u1038\u1001\u1032\u1037\u101e\u1031\u102c] dddd LT [\u1019\u103e\u102c]",sameElse:"L"},relativeTime:{future:"\u101c\u102c\u1019\u100a\u103a\u1037 %s \u1019\u103e\u102c",past:"\u101c\u103d\u1014\u103a\u1001\u1032\u1037\u101e\u1031\u102c %s \u1000",s:"\u1005\u1000\u1039\u1000\u1014\u103a.\u1021\u1014\u100a\u103a\u1038\u1004\u101a\u103a",ss:"%d \u1005\u1000\u1039\u1000\u1014\u1037\u103a",m:"\u1010\u1005\u103a\u1019\u102d\u1014\u1005\u103a",mm:"%d \u1019\u102d\u1014\u1005\u103a",h:"\u1010\u1005\u103a\u1014\u102c\u101b\u102e",hh:"%d \u1014\u102c\u101b\u102e",d:"\u1010\u1005\u103a\u101b\u1000\u103a",dd:"%d \u101b\u1000\u103a",M:"\u1010\u1005\u103a\u101c",MM:"%d \u101c",y:"\u1010\u1005\u103a\u1014\u103e\u1005\u103a",yy:"%d \u1014\u103e\u1005\u103a"},preparse:function(S){return S.replace(/[\u1041\u1042\u1043\u1044\u1045\u1046\u1047\u1048\u1049\u1040]/g,function(k){return E[k]})},postformat:function(S){return S.replace(/\d/g,function(k){return i[k]})},week:{dow:1,doy:4}})}(x(5439))},2688:function(Y,z,x){!function(w){"use strict";w.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8._ma._ti._on._to._fr._l\xf8.".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",w:"en uke",ww:"%d uker",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},8914:function(Y,z,x){!function(w){"use strict";var i={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},E={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};w.defineLocale("ne",{months:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f\u0932_\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0937\u094d\u091f_\u0938\u0947\u092a\u094d\u091f\u0947\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u092d\u0947\u092e\u094d\u092c\u0930_\u0921\u093f\u0938\u0947\u092e\u094d\u092c\u0930".split("_"),monthsShort:"\u091c\u0928._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f._\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908._\u0905\u0917._\u0938\u0947\u092a\u094d\u091f._\u0905\u0915\u094d\u091f\u094b._\u0928\u094b\u092d\u0947._\u0921\u093f\u0938\u0947.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u0907\u0924\u092c\u093e\u0930_\u0938\u094b\u092e\u092c\u093e\u0930_\u092e\u0919\u094d\u0917\u0932\u092c\u093e\u0930_\u092c\u0941\u0927\u092c\u093e\u0930_\u092c\u093f\u0939\u093f\u092c\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u092c\u093e\u0930_\u0936\u0928\u093f\u092c\u093e\u0930".split("_"),weekdaysShort:"\u0906\u0907\u0924._\u0938\u094b\u092e._\u092e\u0919\u094d\u0917\u0932._\u092c\u0941\u0927._\u092c\u093f\u0939\u093f._\u0936\u0941\u0915\u094d\u0930._\u0936\u0928\u093f.".split("_"),weekdaysMin:"\u0906._\u0938\u094b._\u092e\u0902._\u092c\u0941._\u092c\u093f._\u0936\u0941._\u0936.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A\u0915\u094b h:mm \u092c\u091c\u0947",LTS:"A\u0915\u094b h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947"},preparse:function(S){return S.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(k){return E[k]})},postformat:function(S){return S.replace(/\d/g,function(k){return i[k]})},meridiemParse:/\u0930\u093e\u0924\u093f|\u092c\u093f\u0939\u093e\u0928|\u0926\u093f\u0909\u0901\u0938\u094b|\u0938\u093e\u0901\u091d/,meridiemHour:function(S,k){return 12===S&&(S=0),"\u0930\u093e\u0924\u093f"===k?S<4?S:S+12:"\u092c\u093f\u0939\u093e\u0928"===k?S:"\u0926\u093f\u0909\u0901\u0938\u094b"===k?S>=10?S:S+12:"\u0938\u093e\u0901\u091d"===k?S+12:void 0},meridiem:function(S,k,L){return S<3?"\u0930\u093e\u0924\u093f":S<12?"\u092c\u093f\u0939\u093e\u0928":S<16?"\u0926\u093f\u0909\u0901\u0938\u094b":S<20?"\u0938\u093e\u0901\u091d":"\u0930\u093e\u0924\u093f"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u092d\u094b\u0932\u093f] LT",nextWeek:"[\u0906\u0909\u0901\u0926\u094b] dddd[,] LT",lastDay:"[\u0939\u093f\u091c\u094b] LT",lastWeek:"[\u0917\u090f\u0915\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u093e",past:"%s \u0905\u0917\u093e\u0921\u093f",s:"\u0915\u0947\u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0947\u0923\u094d\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u0947\u091f",mm:"%d \u092e\u093f\u0928\u0947\u091f",h:"\u090f\u0915 \u0918\u0923\u094d\u091f\u093e",hh:"%d \u0918\u0923\u094d\u091f\u093e",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u093f\u0928\u093e",MM:"%d \u092e\u0939\u093f\u0928\u093e",y:"\u090f\u0915 \u092c\u0930\u094d\u0937",yy:"%d \u092c\u0930\u094d\u0937"},week:{dow:0,doy:6}})}(x(5439))},2272:function(Y,z,x){!function(w){"use strict";var i="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),E="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),M=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],S=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;w.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(L,F){return L?/-MMM-/.test(F)?E[L.month()]:i[L.month()]:i},monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:M,longMonthsParse:M,shortMonthsParse:M,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(L){return L+(1===L||8===L||L>=20?"ste":"de")},week:{dow:1,doy:4}})}(x(5439))},1758:function(Y,z,x){!function(w){"use strict";var i="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),E="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),M=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],S=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;w.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(L,F){return L?/-MMM-/.test(F)?E[L.month()]:i[L.month()]:i},monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:M,longMonthsParse:M,shortMonthsParse:M,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",w:"\xe9\xe9n week",ww:"%d weken",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(L){return L+(1===L||8===L||L>=20?"ste":"de")},week:{dow:1,doy:4}})}(x(5439))},1510:function(Y,z,x){!function(w){"use strict";w.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_m\xe5ndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._m\xe5._ty._on._to._fr._lau.".split("_"),weekdaysMin:"su_m\xe5_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I g\xe5r klokka] LT",lastWeek:"[F\xf8reg\xe5ande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",w:"ei veke",ww:"%d veker",M:"ein m\xe5nad",MM:"%d m\xe5nader",y:"eit \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},2797:function(Y,z,x){!function(w){"use strict";w.defineLocale("oc-lnc",{months:{standalone:"geni\xe8r_febri\xe8r_mar\xe7_abril_mai_junh_julhet_agost_setembre_oct\xf2bre_novembre_decembre".split("_"),format:"de geni\xe8r_de febri\xe8r_de mar\xe7_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'oct\xf2bre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dim\xe8cres_dij\xf2us_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[u\xe8i a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[i\xe8r a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(E,M){var S=1===E?"r":2===E?"n":3===E?"r":4===E?"t":"\xe8";return("w"===M||"W"===M)&&(S="a"),E+S},week:{dow:1,doy:4}})}(x(5439))},7944:function(Y,z,x){!function(w){"use strict";var i={1:"\u0a67",2:"\u0a68",3:"\u0a69",4:"\u0a6a",5:"\u0a6b",6:"\u0a6c",7:"\u0a6d",8:"\u0a6e",9:"\u0a6f",0:"\u0a66"},E={"\u0a67":"1","\u0a68":"2","\u0a69":"3","\u0a6a":"4","\u0a6b":"5","\u0a6c":"6","\u0a6d":"7","\u0a6e":"8","\u0a6f":"9","\u0a66":"0"};w.defineLocale("pa-in",{months:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),monthsShort:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),weekdays:"\u0a10\u0a24\u0a35\u0a3e\u0a30_\u0a38\u0a4b\u0a2e\u0a35\u0a3e\u0a30_\u0a2e\u0a70\u0a17\u0a32\u0a35\u0a3e\u0a30_\u0a2c\u0a41\u0a27\u0a35\u0a3e\u0a30_\u0a35\u0a40\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a41\u0a71\u0a15\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a28\u0a40\u0a1a\u0a30\u0a35\u0a3e\u0a30".split("_"),weekdaysShort:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),weekdaysMin:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),longDateFormat:{LT:"A h:mm \u0a35\u0a1c\u0a47",LTS:"A h:mm:ss \u0a35\u0a1c\u0a47",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47",LLLL:"dddd, D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47"},calendar:{sameDay:"[\u0a05\u0a1c] LT",nextDay:"[\u0a15\u0a32] LT",nextWeek:"[\u0a05\u0a17\u0a32\u0a3e] dddd, LT",lastDay:"[\u0a15\u0a32] LT",lastWeek:"[\u0a2a\u0a3f\u0a1b\u0a32\u0a47] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0a35\u0a3f\u0a71\u0a1a",past:"%s \u0a2a\u0a3f\u0a1b\u0a32\u0a47",s:"\u0a15\u0a41\u0a1d \u0a38\u0a15\u0a3f\u0a70\u0a1f",ss:"%d \u0a38\u0a15\u0a3f\u0a70\u0a1f",m:"\u0a07\u0a15 \u0a2e\u0a3f\u0a70\u0a1f",mm:"%d \u0a2e\u0a3f\u0a70\u0a1f",h:"\u0a07\u0a71\u0a15 \u0a18\u0a70\u0a1f\u0a3e",hh:"%d \u0a18\u0a70\u0a1f\u0a47",d:"\u0a07\u0a71\u0a15 \u0a26\u0a3f\u0a28",dd:"%d \u0a26\u0a3f\u0a28",M:"\u0a07\u0a71\u0a15 \u0a2e\u0a39\u0a40\u0a28\u0a3e",MM:"%d \u0a2e\u0a39\u0a40\u0a28\u0a47",y:"\u0a07\u0a71\u0a15 \u0a38\u0a3e\u0a32",yy:"%d \u0a38\u0a3e\u0a32"},preparse:function(S){return S.replace(/[\u0a67\u0a68\u0a69\u0a6a\u0a6b\u0a6c\u0a6d\u0a6e\u0a6f\u0a66]/g,function(k){return E[k]})},postformat:function(S){return S.replace(/\d/g,function(k){return i[k]})},meridiemParse:/\u0a30\u0a3e\u0a24|\u0a38\u0a35\u0a47\u0a30|\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30|\u0a38\u0a3c\u0a3e\u0a2e/,meridiemHour:function(S,k){return 12===S&&(S=0),"\u0a30\u0a3e\u0a24"===k?S<4?S:S+12:"\u0a38\u0a35\u0a47\u0a30"===k?S:"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30"===k?S>=10?S:S+12:"\u0a38\u0a3c\u0a3e\u0a2e"===k?S+12:void 0},meridiem:function(S,k,L){return S<4?"\u0a30\u0a3e\u0a24":S<10?"\u0a38\u0a35\u0a47\u0a30":S<17?"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30":S<20?"\u0a38\u0a3c\u0a3e\u0a2e":"\u0a30\u0a3e\u0a24"},week:{dow:0,doy:6}})}(x(5439))},1605:function(Y,z,x){!function(w){"use strict";var i="stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017adziernik_listopad_grudzie\u0144".split("_"),E="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015bnia_pa\u017adziernika_listopada_grudnia".split("_"),M=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^pa\u017a/i,/^lis/i,/^gru/i];function S(F){return F%10<5&&F%10>1&&~~(F/10)%10!=1}function k(F,U,J){var Q=F+" ";switch(J){case"ss":return Q+(S(F)?"sekundy":"sekund");case"m":return U?"minuta":"minut\u0119";case"mm":return Q+(S(F)?"minuty":"minut");case"h":return U?"godzina":"godzin\u0119";case"hh":return Q+(S(F)?"godziny":"godzin");case"ww":return Q+(S(F)?"tygodnie":"tygodni");case"MM":return Q+(S(F)?"miesi\u0105ce":"miesi\u0119cy");case"yy":return Q+(S(F)?"lata":"lat")}}w.defineLocale("pl",{months:function(F,U){return F?/D MMMM/.test(U)?E[F.month()]:i[F.month()]:i},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017a_lis_gru".split("_"),monthsParse:M,longMonthsParse:M,shortMonthsParse:M,weekdays:"niedziela_poniedzia\u0142ek_wtorek_\u015broda_czwartek_pi\u0105tek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_\u015br_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_\u015ar_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dzi\u015b o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedziel\u0119 o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W \u015brod\u0119 o] LT";case 6:return"[W sobot\u0119 o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zesz\u0142\u0105 niedziel\u0119 o] LT";case 3:return"[W zesz\u0142\u0105 \u015brod\u0119 o] LT";case 6:return"[W zesz\u0142\u0105 sobot\u0119 o] LT";default:return"[W zesz\u0142y] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:k,m:k,mm:k,h:k,hh:k,d:"1 dzie\u0144",dd:"%d dni",w:"tydzie\u0144",ww:k,M:"miesi\u0105c",MM:k,y:"rok",yy:k},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},3840:function(Y,z,x){!function(w){"use strict";w.defineLocale("pt-br",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_ter\xe7a-feira_quarta-feira_quinta-feira_sexta-feira_s\xe1bado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_s\xe1b".split("_"),weekdaysMin:"do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [\xe0s] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [\xe0s] HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",invalidDate:"Data inv\xe1lida"})}(x(5439))},4225:function(Y,z,x){!function(w){"use strict";w.defineLocale("pt",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Ter\xe7a-feira_Quarta-feira_Quinta-feira_Sexta-feira_S\xe1bado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_S\xe1b".split("_"),weekdaysMin:"Do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",w:"uma semana",ww:"%d semanas",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(x(5439))},5128:function(Y,z,x){!function(w){"use strict";function i(M,S,k){var F=" ";return(M%100>=20||M>=100&&M%100==0)&&(F=" de "),M+F+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"s\u0103pt\u0103m\xe2ni",MM:"luni",yy:"ani"}[k]}w.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminic\u0103_luni_mar\u021bi_miercuri_joi_vineri_s\xe2mb\u0103t\u0103".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_S\xe2m".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_S\xe2".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[m\xe2ine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s \xeen urm\u0103",s:"c\xe2teva secunde",ss:i,m:"un minut",mm:i,h:"o or\u0103",hh:i,d:"o zi",dd:i,w:"o s\u0103pt\u0103m\xe2n\u0103",ww:i,M:"o lun\u0103",MM:i,y:"un an",yy:i},week:{dow:1,doy:7}})}(x(5439))},5127:function(Y,z,x){!function(w){"use strict";function E(k,L,F){return"m"===F?L?"\u043c\u0438\u043d\u0443\u0442\u0430":"\u043c\u0438\u043d\u0443\u0442\u0443":k+" "+function i(k,L){var F=k.split("_");return L%10==1&&L%100!=11?F[0]:L%10>=2&&L%10<=4&&(L%100<10||L%100>=20)?F[1]:F[2]}({ss:L?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:L?"\u043c\u0438\u043d\u0443\u0442\u0430_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442":"\u043c\u0438\u043d\u0443\u0442\u0443_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442",hh:"\u0447\u0430\u0441_\u0447\u0430\u0441\u0430_\u0447\u0430\u0441\u043e\u0432",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u044f_\u0434\u043d\u0435\u0439",ww:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043d\u0435\u0434\u0435\u043b\u0438_\u043d\u0435\u0434\u0435\u043b\u044c",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u0430_\u043c\u0435\u0441\u044f\u0446\u0435\u0432",yy:"\u0433\u043e\u0434_\u0433\u043e\u0434\u0430_\u043b\u0435\u0442"}[F],+k)}var M=[/^\u044f\u043d\u0432/i,/^\u0444\u0435\u0432/i,/^\u043c\u0430\u0440/i,/^\u0430\u043f\u0440/i,/^\u043c\u0430[\u0439\u044f]/i,/^\u0438\u044e\u043d/i,/^\u0438\u044e\u043b/i,/^\u0430\u0432\u0433/i,/^\u0441\u0435\u043d/i,/^\u043e\u043a\u0442/i,/^\u043d\u043e\u044f/i,/^\u0434\u0435\u043a/i];w.defineLocale("ru",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u044f_\u0444\u0435\u0432\u0440\u0430\u043b\u044f_\u043c\u0430\u0440\u0442\u0430_\u0430\u043f\u0440\u0435\u043b\u044f_\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433\u0443\u0441\u0442\u0430_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f_\u043e\u043a\u0442\u044f\u0431\u0440\u044f_\u043d\u043e\u044f\u0431\u0440\u044f_\u0434\u0435\u043a\u0430\u0431\u0440\u044f".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_")},monthsShort:{format:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_"),standalone:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440\u0442_\u0430\u043f\u0440._\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_")},weekdays:{standalone:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0430_\u0441\u0443\u0431\u0431\u043e\u0442\u0430".split("_"),format:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0443_\u0441\u0443\u0431\u0431\u043e\u0442\u0443".split("_"),isFormat:/\[ ?[\u0412\u0432] ?(?:\u043f\u0440\u043e\u0448\u043b\u0443\u044e|\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e|\u044d\u0442\u0443)? ?] ?dddd/},weekdaysShort:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),monthsParse:M,longMonthsParse:M,shortMonthsParse:M,monthsRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsShortRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsStrictRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044f\u044c]|\u0444\u0435\u0432\u0440\u0430\u043b[\u044f\u044c]|\u043c\u0430\u0440\u0442\u0430?|\u0430\u043f\u0440\u0435\u043b[\u044f\u044c]|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044f\u044c]|\u0438\u044e\u043b[\u044f\u044c]|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043e\u043a\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043d\u043e\u044f\u0431\u0440[\u044f\u044c]|\u0434\u0435\u043a\u0430\u0431\u0440[\u044f\u044c])/i,monthsShortStrictRegex:/^(\u044f\u043d\u0432\.|\u0444\u0435\u0432\u0440?\.|\u043c\u0430\u0440[\u0442.]|\u0430\u043f\u0440\.|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044c\u044f.]|\u0438\u044e\u043b[\u044c\u044f.]|\u0430\u0432\u0433\.|\u0441\u0435\u043d\u0442?\.|\u043e\u043a\u0442\.|\u043d\u043e\u044f\u0431?\.|\u0434\u0435\u043a\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., H:mm",LLLL:"dddd, D MMMM YYYY \u0433., H:mm"},calendar:{sameDay:"[\u0421\u0435\u0433\u043e\u0434\u043d\u044f, \u0432] LT",nextDay:"[\u0417\u0430\u0432\u0442\u0440\u0430, \u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430, \u0432] LT",nextWeek:function(k){if(k.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e] dddd, [\u0432] LT"}},lastWeek:function(k){if(k.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u043e\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u044b\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u0443\u044e] dddd, [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0447\u0435\u0440\u0435\u0437 %s",past:"%s \u043d\u0430\u0437\u0430\u0434",s:"\u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434",ss:E,m:E,mm:E,h:"\u0447\u0430\u0441",hh:E,d:"\u0434\u0435\u043d\u044c",dd:E,w:"\u043d\u0435\u0434\u0435\u043b\u044f",ww:E,M:"\u043c\u0435\u0441\u044f\u0446",MM:E,y:"\u0433\u043e\u0434",yy:E},meridiemParse:/\u043d\u043e\u0447\u0438|\u0443\u0442\u0440\u0430|\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430/i,isPM:function(k){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430)$/.test(k)},meridiem:function(k,L,F){return k<4?"\u043d\u043e\u0447\u0438":k<12?"\u0443\u0442\u0440\u0430":k<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0435\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e|\u044f)/,ordinal:function(k,L){switch(L){case"M":case"d":case"DDD":return k+"-\u0439";case"D":return k+"-\u0433\u043e";case"w":case"W":return k+"-\u044f";default:return k}},week:{dow:1,doy:4}})}(x(5439))},2525:function(Y,z,x){!function(w){"use strict";var i=["\u062c\u0646\u0648\u0631\u064a","\u0641\u064a\u0628\u0631\u0648\u0631\u064a","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u064a\u0644","\u0645\u0626\u064a","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0621\u0650","\u0622\u06af\u0633\u067d","\u0633\u064a\u067e\u067d\u0645\u0628\u0631","\u0622\u06aa\u067d\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u068a\u0633\u0645\u0628\u0631"],E=["\u0622\u0686\u0631","\u0633\u0648\u0645\u0631","\u0627\u06b1\u0627\u0631\u0648","\u0627\u0631\u0628\u0639","\u062e\u0645\u064a\u0633","\u062c\u0645\u0639","\u0687\u0646\u0687\u0631"];w.defineLocale("sd",{months:i,monthsShort:i,weekdays:E,weekdaysShort:E,weekdaysMin:E,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(S){return"\u0634\u0627\u0645"===S},meridiem:function(S,k,L){return S<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0627\u0684] LT",nextDay:"[\u0633\u0680\u0627\u06bb\u064a] LT",nextWeek:"dddd [\u0627\u06b3\u064a\u0646 \u0647\u0641\u062a\u064a \u062a\u064a] LT",lastDay:"[\u06aa\u0627\u0644\u0647\u0647] LT",lastWeek:"[\u06af\u0632\u0631\u064a\u0644 \u0647\u0641\u062a\u064a] dddd [\u062a\u064a] LT",sameElse:"L"},relativeTime:{future:"%s \u067e\u0648\u0621",past:"%s \u0627\u06b3",s:"\u0686\u0646\u062f \u0633\u064a\u06aa\u0646\u068a",ss:"%d \u0633\u064a\u06aa\u0646\u068a",m:"\u0647\u06aa \u0645\u0646\u067d",mm:"%d \u0645\u0646\u067d",h:"\u0647\u06aa \u06aa\u0644\u0627\u06aa",hh:"%d \u06aa\u0644\u0627\u06aa",d:"\u0647\u06aa \u068f\u064a\u0646\u0647\u0646",dd:"%d \u068f\u064a\u0646\u0647\u0646",M:"\u0647\u06aa \u0645\u0647\u064a\u0646\u0648",MM:"%d \u0645\u0647\u064a\u0646\u0627",y:"\u0647\u06aa \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(S){return S.replace(/\u060c/g,",")},postformat:function(S){return S.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(x(5439))},9893:function(Y,z,x){!function(w){"use strict";w.defineLocale("se",{months:"o\u0111\u0111ajagem\xe1nnu_guovvam\xe1nnu_njuk\u010dam\xe1nnu_cuo\u014bom\xe1nnu_miessem\xe1nnu_geassem\xe1nnu_suoidnem\xe1nnu_borgem\xe1nnu_\u010dak\u010dam\xe1nnu_golggotm\xe1nnu_sk\xe1bmam\xe1nnu_juovlam\xe1nnu".split("_"),monthsShort:"o\u0111\u0111j_guov_njuk_cuo_mies_geas_suoi_borg_\u010dak\u010d_golg_sk\xe1b_juov".split("_"),weekdays:"sotnabeaivi_vuoss\xe1rga_ma\u014b\u014beb\xe1rga_gaskavahkku_duorastat_bearjadat_l\xe1vvardat".split("_"),weekdaysShort:"sotn_vuos_ma\u014b_gask_duor_bear_l\xe1v".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s gea\u017ees",past:"ma\u014bit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta m\xe1nnu",MM:"%d m\xe1nut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},3123:function(Y,z,x){!function(w){"use strict";w.defineLocale("si",{months:"\u0da2\u0db1\u0dc0\u0dcf\u0dbb\u0dd2_\u0db4\u0dd9\u0db6\u0dbb\u0dc0\u0dcf\u0dbb\u0dd2_\u0db8\u0dcf\u0dbb\u0dca\u0dad\u0dd4_\u0d85\u0db4\u0dca\u200d\u0dbb\u0dda\u0dbd\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd\u0dc3\u0dca\u0dad\u0dd4_\u0dc3\u0dd0\u0db4\u0dca\u0dad\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0d94\u0d9a\u0dca\u0dad\u0ddd\u0db6\u0dbb\u0dca_\u0db1\u0ddc\u0dc0\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0daf\u0dd9\u0dc3\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca".split("_"),monthsShort:"\u0da2\u0db1_\u0db4\u0dd9\u0db6_\u0db8\u0dcf\u0dbb\u0dca_\u0d85\u0db4\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd_\u0dc3\u0dd0\u0db4\u0dca_\u0d94\u0d9a\u0dca_\u0db1\u0ddc\u0dc0\u0dd0_\u0daf\u0dd9\u0dc3\u0dd0".split("_"),weekdays:"\u0d89\u0dbb\u0dd2\u0daf\u0dcf_\u0dc3\u0db3\u0dd4\u0daf\u0dcf_\u0d85\u0d9f\u0dc4\u0dbb\u0dd4\u0dc0\u0dcf\u0daf\u0dcf_\u0db6\u0daf\u0dcf\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4\u0dc3\u0dca\u0db4\u0dad\u0dd2\u0db1\u0dca\u0daf\u0dcf_\u0dc3\u0dd2\u0d9a\u0dd4\u0dbb\u0dcf\u0daf\u0dcf_\u0dc3\u0dd9\u0db1\u0dc3\u0dd4\u0dbb\u0dcf\u0daf\u0dcf".split("_"),weekdaysShort:"\u0d89\u0dbb\u0dd2_\u0dc3\u0db3\u0dd4_\u0d85\u0d9f_\u0db6\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4_\u0dc3\u0dd2\u0d9a\u0dd4_\u0dc3\u0dd9\u0db1".split("_"),weekdaysMin:"\u0d89_\u0dc3_\u0d85_\u0db6_\u0db6\u0dca\u200d\u0dbb_\u0dc3\u0dd2_\u0dc3\u0dd9".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [\u0dc0\u0dd0\u0db1\u0dd2] dddd, a h:mm:ss"},calendar:{sameDay:"[\u0d85\u0daf] LT[\u0da7]",nextDay:"[\u0dc4\u0dd9\u0da7] LT[\u0da7]",nextWeek:"dddd LT[\u0da7]",lastDay:"[\u0d8a\u0dba\u0dda] LT[\u0da7]",lastWeek:"[\u0db4\u0dc3\u0dd4\u0d9c\u0dd2\u0dba] dddd LT[\u0da7]",sameElse:"L"},relativeTime:{future:"%s\u0d9a\u0dd2\u0db1\u0dca",past:"%s\u0d9a\u0da7 \u0db4\u0dd9\u0dbb",s:"\u0dad\u0dad\u0dca\u0db4\u0dbb \u0d9a\u0dd2\u0dc4\u0dd2\u0db4\u0dba",ss:"\u0dad\u0dad\u0dca\u0db4\u0dbb %d",m:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4\u0dc0",mm:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4 %d",h:"\u0db4\u0dd0\u0dba",hh:"\u0db4\u0dd0\u0dba %d",d:"\u0daf\u0dd2\u0db1\u0dba",dd:"\u0daf\u0dd2\u0db1 %d",M:"\u0db8\u0dcf\u0dc3\u0dba",MM:"\u0db8\u0dcf\u0dc3 %d",y:"\u0dc0\u0dc3\u0dbb",yy:"\u0dc0\u0dc3\u0dbb %d"},dayOfMonthOrdinalParse:/\d{1,2} \u0dc0\u0dd0\u0db1\u0dd2/,ordinal:function(E){return E+" \u0dc0\u0dd0\u0db1\u0dd2"},meridiemParse:/\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4|\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4|\u0db4\u0dd9.\u0dc0|\u0db4.\u0dc0./,isPM:function(E){return"\u0db4.\u0dc0."===E||"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4"===E},meridiem:function(E,M,S){return E>11?S?"\u0db4.\u0dc0.":"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4":S?"\u0db4\u0dd9.\u0dc0.":"\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4"}})}(x(5439))},3027:function(Y,z,x){!function(w){"use strict";var i="janu\xe1r_febru\xe1r_marec_apr\xedl_m\xe1j_j\xfan_j\xfal_august_september_okt\xf3ber_november_december".split("_"),E="jan_feb_mar_apr_m\xe1j_j\xfan_j\xfal_aug_sep_okt_nov_dec".split("_");function M(L){return L>1&&L<5}function S(L,F,U,J){var Q=L+" ";switch(U){case"s":return F||J?"p\xe1r sek\xfand":"p\xe1r sekundami";case"ss":return F||J?Q+(M(L)?"sekundy":"sek\xfand"):Q+"sekundami";case"m":return F?"min\xfata":J?"min\xfatu":"min\xfatou";case"mm":return F||J?Q+(M(L)?"min\xfaty":"min\xfat"):Q+"min\xfatami";case"h":return F?"hodina":J?"hodinu":"hodinou";case"hh":return F||J?Q+(M(L)?"hodiny":"hod\xedn"):Q+"hodinami";case"d":return F||J?"de\u0148":"d\u0148om";case"dd":return F||J?Q+(M(L)?"dni":"dn\xed"):Q+"d\u0148ami";case"M":return F||J?"mesiac":"mesiacom";case"MM":return F||J?Q+(M(L)?"mesiace":"mesiacov"):Q+"mesiacmi";case"y":return F||J?"rok":"rokom";case"yy":return F||J?Q+(M(L)?"roky":"rokov"):Q+"rokmi"}}w.defineLocale("sk",{months:i,monthsShort:E,weekdays:"nede\u013ea_pondelok_utorok_streda_\u0161tvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_\u0161t_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_\u0161t_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nede\u013eu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo \u0161tvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[v\u010dera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minul\xfa nede\u013eu o] LT";case 1:case 2:case 4:case 5:return"[minul\xfd] dddd [o] LT";case 3:return"[minul\xfa stredu o] LT";case 6:return"[minul\xfa sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:S,ss:S,m:S,mm:S,h:S,hh:S,d:S,dd:S,M:S,MM:S,y:S,yy:S},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},8106:function(Y,z,x){!function(w){"use strict";function i(M,S,k,L){var F=M+" ";switch(k){case"s":return S||L?"nekaj sekund":"nekaj sekundami";case"ss":return F+(1===M?S?"sekundo":"sekundi":2===M?S||L?"sekundi":"sekundah":M<5?S||L?"sekunde":"sekundah":"sekund");case"m":return S?"ena minuta":"eno minuto";case"mm":return F+(1===M?S?"minuta":"minuto":2===M?S||L?"minuti":"minutama":M<5?S||L?"minute":"minutami":S||L?"minut":"minutami");case"h":return S?"ena ura":"eno uro";case"hh":return F+(1===M?S?"ura":"uro":2===M?S||L?"uri":"urama":M<5?S||L?"ure":"urami":S||L?"ur":"urami");case"d":return S||L?"en dan":"enim dnem";case"dd":return F+(1===M?S||L?"dan":"dnem":2===M?S||L?"dni":"dnevoma":S||L?"dni":"dnevi");case"M":return S||L?"en mesec":"enim mesecem";case"MM":return F+(1===M?S||L?"mesec":"mesecem":2===M?S||L?"meseca":"mesecema":M<5?S||L?"mesece":"meseci":S||L?"mesecev":"meseci");case"y":return S||L?"eno leto":"enim letom";case"yy":return F+(1===M?S||L?"leto":"letom":2===M?S||L?"leti":"letoma":M<5?S||L?"leta":"leti":S||L?"let":"leti")}}w.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_\u010detrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._\u010det._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_\u010de_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[v\u010deraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prej\u0161njo] [nedeljo] [ob] LT";case 3:return"[prej\u0161njo] [sredo] [ob] LT";case 6:return"[prej\u0161njo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prej\u0161nji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"\u010dez %s",past:"pred %s",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(x(5439))},8799:function(Y,z,x){!function(w){"use strict";w.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_N\xebntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_N\xebn_Dhj".split("_"),weekdays:"E Diel_E H\xebn\xeb_E Mart\xeb_E M\xebrkur\xeb_E Enjte_E Premte_E Shtun\xeb".split("_"),weekdaysShort:"Die_H\xebn_Mar_M\xebr_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_M\xeb_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(E){return"M"===E.charAt(0)},meridiem:function(E,M,S){return E<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot n\xeb] LT",nextDay:"[Nes\xebr n\xeb] LT",nextWeek:"dddd [n\xeb] LT",lastDay:"[Dje n\xeb] LT",lastWeek:"dddd [e kaluar n\xeb] LT",sameElse:"L"},relativeTime:{future:"n\xeb %s",past:"%s m\xeb par\xeb",s:"disa sekonda",ss:"%d sekonda",m:"nj\xeb minut\xeb",mm:"%d minuta",h:"nj\xeb or\xeb",hh:"%d or\xeb",d:"nj\xeb dit\xeb",dd:"%d dit\xeb",M:"nj\xeb muaj",MM:"%d muaj",y:"nj\xeb vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},2872:function(Y,z,x){!function(w){"use strict";var i={words:{ss:["\u0441\u0435\u043a\u0443\u043d\u0434\u0430","\u0441\u0435\u043a\u0443\u043d\u0434\u0435","\u0441\u0435\u043a\u0443\u043d\u0434\u0438"],m:["\u0458\u0435\u0434\u0430\u043d \u043c\u0438\u043d\u0443\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u043c\u0438\u043d\u0443\u0442\u0430"],mm:["\u043c\u0438\u043d\u0443\u0442","\u043c\u0438\u043d\u0443\u0442\u0430","\u043c\u0438\u043d\u0443\u0442\u0430"],h:["\u0458\u0435\u0434\u0430\u043d \u0441\u0430\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u0441\u0430\u0442\u0430"],hh:["\u0441\u0430\u0442","\u0441\u0430\u0442\u0430","\u0441\u0430\u0442\u0438"],d:["\u0458\u0435\u0434\u0430\u043d \u0434\u0430\u043d","\u0458\u0435\u0434\u043d\u043e\u0433 \u0434\u0430\u043d\u0430"],dd:["\u0434\u0430\u043d","\u0434\u0430\u043d\u0430","\u0434\u0430\u043d\u0430"],M:["\u0458\u0435\u0434\u0430\u043d \u043c\u0435\u0441\u0435\u0446","\u0458\u0435\u0434\u043d\u043e\u0433 \u043c\u0435\u0441\u0435\u0446\u0430"],MM:["\u043c\u0435\u0441\u0435\u0446","\u043c\u0435\u0441\u0435\u0446\u0430","\u043c\u0435\u0441\u0435\u0446\u0438"],y:["\u0458\u0435\u0434\u043d\u0443 \u0433\u043e\u0434\u0438\u043d\u0443","\u0458\u0435\u0434\u043d\u0435 \u0433\u043e\u0434\u0438\u043d\u0435"],yy:["\u0433\u043e\u0434\u0438\u043d\u0443","\u0433\u043e\u0434\u0438\u043d\u0435","\u0433\u043e\u0434\u0438\u043d\u0430"]},correctGrammaticalCase:function(M,S){return M%10>=1&&M%10<=4&&(M%100<10||M%100>=20)?M%10==1?S[0]:S[1]:S[2]},translate:function(M,S,k,L){var U,F=i.words[k];return 1===k.length?"y"===k&&S?"\u0458\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430":L||S?F[0]:F[1]:(U=i.correctGrammaticalCase(M,F),"yy"===k&&S&&"\u0433\u043e\u0434\u0438\u043d\u0443"===U?M+" \u0433\u043e\u0434\u0438\u043d\u0430":M+" "+U)}};w.defineLocale("sr-cyrl",{months:"\u0458\u0430\u043d\u0443\u0430\u0440_\u0444\u0435\u0431\u0440\u0443\u0430\u0440_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0431\u0430\u0440_\u043e\u043a\u0442\u043e\u0431\u0430\u0440_\u043d\u043e\u0432\u0435\u043c\u0431\u0430\u0440_\u0434\u0435\u0446\u0435\u043c\u0431\u0430\u0440".split("_"),monthsShort:"\u0458\u0430\u043d._\u0444\u0435\u0431._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433._\u0441\u0435\u043f._\u043e\u043a\u0442._\u043d\u043e\u0432._\u0434\u0435\u0446.".split("_"),monthsParseExact:!0,weekdays:"\u043d\u0435\u0434\u0435\u0459\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u0430\u043a_\u0443\u0442\u043e\u0440\u0430\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u0430\u043a_\u043f\u0435\u0442\u0430\u043a_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434._\u043f\u043e\u043d._\u0443\u0442\u043e._\u0441\u0440\u0435._\u0447\u0435\u0442._\u043f\u0435\u0442._\u0441\u0443\u0431.".split("_"),weekdaysMin:"\u043d\u0435_\u043f\u043e_\u0443\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441\u0443".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[\u0434\u0430\u043d\u0430\u0441 \u0443] LT",nextDay:"[\u0441\u0443\u0442\u0440\u0430 \u0443] LT",nextWeek:function(){switch(this.day()){case 0:return"[\u0443] [\u043d\u0435\u0434\u0435\u0459\u0443] [\u0443] LT";case 3:return"[\u0443] [\u0441\u0440\u0435\u0434\u0443] [\u0443] LT";case 6:return"[\u0443] [\u0441\u0443\u0431\u043e\u0442\u0443] [\u0443] LT";case 1:case 2:case 4:case 5:return"[\u0443] dddd [\u0443] LT"}},lastDay:"[\u0458\u0443\u0447\u0435 \u0443] LT",lastWeek:function(){return["[\u043f\u0440\u043e\u0448\u043b\u0435] [\u043d\u0435\u0434\u0435\u0459\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0443\u0442\u043e\u0440\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0440\u0435\u0434\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0447\u0435\u0442\u0432\u0440\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u0435\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0443\u0431\u043e\u0442\u0435] [\u0443] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435 %s",s:"\u043d\u0435\u043a\u043e\u043b\u0438\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:i.translate,m:i.translate,mm:i.translate,h:i.translate,hh:i.translate,d:i.translate,dd:i.translate,M:i.translate,MM:i.translate,y:i.translate,yy:i.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(x(5439))},7949:function(Y,z,x){!function(w){"use strict";var i={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],d:["jedan dan","jednog dana"],dd:["dan","dana","dana"],M:["jedan mesec","jednog meseca"],MM:["mesec","meseca","meseci"],y:["jednu godinu","jedne godine"],yy:["godinu","godine","godina"]},correctGrammaticalCase:function(M,S){return M%10>=1&&M%10<=4&&(M%100<10||M%100>=20)?M%10==1?S[0]:S[1]:S[2]},translate:function(M,S,k,L){var U,F=i.words[k];return 1===k.length?"y"===k&&S?"jedna godina":L||S?F[0]:F[1]:(U=i.correctGrammaticalCase(M,F),"yy"===k&&S&&"godinu"===U?M+" godina":M+" "+U)}};w.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedelje] [u] LT","[pro\u0161log] [ponedeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:i.translate,m:i.translate,mm:i.translate,h:i.translate,hh:i.translate,d:i.translate,dd:i.translate,M:i.translate,MM:i.translate,y:i.translate,yy:i.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(x(5439))},6167:function(Y,z,x){!function(w){"use strict";w.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(E,M,S){return E<11?"ekuseni":E<15?"emini":E<19?"entsambama":"ebusuku"},meridiemHour:function(E,M){return 12===E&&(E=0),"ekuseni"===M?E:"emini"===M?E>=11?E:E+12:"entsambama"===M||"ebusuku"===M?0===E?0:E+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(x(5439))},9713:function(Y,z,x){!function(w){"use strict";w.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf6ndag_m\xe5ndag_tisdag_onsdag_torsdag_fredag_l\xf6rdag".split("_"),weekdaysShort:"s\xf6n_m\xe5n_tis_ons_tor_fre_l\xf6r".split("_"),weekdaysMin:"s\xf6_m\xe5_ti_on_to_fr_l\xf6".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Ig\xe5r] LT",nextWeek:"[P\xe5] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"f\xf6r %s sedan",s:"n\xe5gra sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en m\xe5nad",MM:"%d m\xe5nader",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(E){var M=E%10;return E+(1==~~(E%100/10)?":e":1===M||2===M?":a":":e")},week:{dow:1,doy:4}})}(x(5439))},1982:function(Y,z,x){!function(w){"use strict";w.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"hh:mm A",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(x(5439))},2732:function(Y,z,x){!function(w){"use strict";var i={1:"\u0be7",2:"\u0be8",3:"\u0be9",4:"\u0bea",5:"\u0beb",6:"\u0bec",7:"\u0bed",8:"\u0bee",9:"\u0bef",0:"\u0be6"},E={"\u0be7":"1","\u0be8":"2","\u0be9":"3","\u0bea":"4","\u0beb":"5","\u0bec":"6","\u0bed":"7","\u0bee":"8","\u0bef":"9","\u0be6":"0"};w.defineLocale("ta",{months:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),monthsShort:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),weekdays:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bcd\u0bb1\u0bc1\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0b9f\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0ba9\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8".split("_"),weekdaysShort:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bc1_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0bb3\u0bcd_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0ba9\u0bcd_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf_\u0b9a\u0ba9\u0bbf".split("_"),weekdaysMin:"\u0b9e\u0bbe_\u0ba4\u0bbf_\u0b9a\u0bc6_\u0baa\u0bc1_\u0bb5\u0bbf_\u0bb5\u0bc6_\u0b9a".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[\u0b87\u0ba9\u0bcd\u0bb1\u0bc1] LT",nextDay:"[\u0ba8\u0bbe\u0bb3\u0bc8] LT",nextWeek:"dddd, LT",lastDay:"[\u0ba8\u0bc7\u0bb1\u0bcd\u0bb1\u0bc1] LT",lastWeek:"[\u0b95\u0b9f\u0ba8\u0bcd\u0ba4 \u0bb5\u0bbe\u0bb0\u0bae\u0bcd] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0b87\u0bb2\u0bcd",past:"%s \u0bae\u0bc1\u0ba9\u0bcd",s:"\u0b92\u0bb0\u0bc1 \u0b9a\u0bbf\u0bb2 \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",ss:"%d \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",m:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0bae\u0bcd",mm:"%d \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0b99\u0bcd\u0b95\u0bb3\u0bcd",h:"\u0b92\u0bb0\u0bc1 \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",hh:"%d \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",d:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbe\u0bb3\u0bcd",dd:"%d \u0ba8\u0bbe\u0b9f\u0bcd\u0b95\u0bb3\u0bcd",M:"\u0b92\u0bb0\u0bc1 \u0bae\u0bbe\u0ba4\u0bae\u0bcd",MM:"%d \u0bae\u0bbe\u0ba4\u0b99\u0bcd\u0b95\u0bb3\u0bcd",y:"\u0b92\u0bb0\u0bc1 \u0bb5\u0bb0\u0bc1\u0b9f\u0bae\u0bcd",yy:"%d \u0b86\u0ba3\u0bcd\u0b9f\u0bc1\u0b95\u0bb3\u0bcd"},dayOfMonthOrdinalParse:/\d{1,2}\u0bb5\u0ba4\u0bc1/,ordinal:function(S){return S+"\u0bb5\u0ba4\u0bc1"},preparse:function(S){return S.replace(/[\u0be7\u0be8\u0be9\u0bea\u0beb\u0bec\u0bed\u0bee\u0bef\u0be6]/g,function(k){return E[k]})},postformat:function(S){return S.replace(/\d/g,function(k){return i[k]})},meridiemParse:/\u0baf\u0bbe\u0bae\u0bae\u0bcd|\u0bb5\u0bc8\u0b95\u0bb1\u0bc8|\u0b95\u0bbe\u0bb2\u0bc8|\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd|\u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1|\u0bae\u0bbe\u0bb2\u0bc8/,meridiem:function(S,k,L){return S<2?" \u0baf\u0bbe\u0bae\u0bae\u0bcd":S<6?" \u0bb5\u0bc8\u0b95\u0bb1\u0bc8":S<10?" \u0b95\u0bbe\u0bb2\u0bc8":S<14?" \u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd":S<18?" \u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1":S<22?" \u0bae\u0bbe\u0bb2\u0bc8":" \u0baf\u0bbe\u0bae\u0bae\u0bcd"},meridiemHour:function(S,k){return 12===S&&(S=0),"\u0baf\u0bbe\u0bae\u0bae\u0bcd"===k?S<2?S:S+12:"\u0bb5\u0bc8\u0b95\u0bb1\u0bc8"===k||"\u0b95\u0bbe\u0bb2\u0bc8"===k||"\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd"===k&&S>=10?S:S+12},week:{dow:0,doy:6}})}(x(5439))},3636:function(Y,z,x){!function(w){"use strict";w.defineLocale("te",{months:"\u0c1c\u0c28\u0c35\u0c30\u0c3f_\u0c2b\u0c3f\u0c2c\u0c4d\u0c30\u0c35\u0c30\u0c3f_\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f\u0c32\u0c4d_\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17\u0c38\u0c4d\u0c1f\u0c41_\u0c38\u0c46\u0c2a\u0c4d\u0c1f\u0c46\u0c02\u0c2c\u0c30\u0c4d_\u0c05\u0c15\u0c4d\u0c1f\u0c4b\u0c2c\u0c30\u0c4d_\u0c28\u0c35\u0c02\u0c2c\u0c30\u0c4d_\u0c21\u0c3f\u0c38\u0c46\u0c02\u0c2c\u0c30\u0c4d".split("_"),monthsShort:"\u0c1c\u0c28._\u0c2b\u0c3f\u0c2c\u0c4d\u0c30._\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f._\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17._\u0c38\u0c46\u0c2a\u0c4d._\u0c05\u0c15\u0c4d\u0c1f\u0c4b._\u0c28\u0c35._\u0c21\u0c3f\u0c38\u0c46.".split("_"),monthsParseExact:!0,weekdays:"\u0c06\u0c26\u0c3f\u0c35\u0c3e\u0c30\u0c02_\u0c38\u0c4b\u0c2e\u0c35\u0c3e\u0c30\u0c02_\u0c2e\u0c02\u0c17\u0c33\u0c35\u0c3e\u0c30\u0c02_\u0c2c\u0c41\u0c27\u0c35\u0c3e\u0c30\u0c02_\u0c17\u0c41\u0c30\u0c41\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c41\u0c15\u0c4d\u0c30\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c28\u0c3f\u0c35\u0c3e\u0c30\u0c02".split("_"),weekdaysShort:"\u0c06\u0c26\u0c3f_\u0c38\u0c4b\u0c2e_\u0c2e\u0c02\u0c17\u0c33_\u0c2c\u0c41\u0c27_\u0c17\u0c41\u0c30\u0c41_\u0c36\u0c41\u0c15\u0c4d\u0c30_\u0c36\u0c28\u0c3f".split("_"),weekdaysMin:"\u0c06_\u0c38\u0c4b_\u0c2e\u0c02_\u0c2c\u0c41_\u0c17\u0c41_\u0c36\u0c41_\u0c36".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c28\u0c47\u0c21\u0c41] LT",nextDay:"[\u0c30\u0c47\u0c2a\u0c41] LT",nextWeek:"dddd, LT",lastDay:"[\u0c28\u0c3f\u0c28\u0c4d\u0c28] LT",lastWeek:"[\u0c17\u0c24] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0c32\u0c4b",past:"%s \u0c15\u0c4d\u0c30\u0c3f\u0c24\u0c02",s:"\u0c15\u0c4a\u0c28\u0c4d\u0c28\u0c3f \u0c15\u0c4d\u0c37\u0c23\u0c3e\u0c32\u0c41",ss:"%d \u0c38\u0c46\u0c15\u0c28\u0c4d\u0c32\u0c41",m:"\u0c12\u0c15 \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c02",mm:"%d \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c3e\u0c32\u0c41",h:"\u0c12\u0c15 \u0c17\u0c02\u0c1f",hh:"%d \u0c17\u0c02\u0c1f\u0c32\u0c41",d:"\u0c12\u0c15 \u0c30\u0c4b\u0c1c\u0c41",dd:"%d \u0c30\u0c4b\u0c1c\u0c41\u0c32\u0c41",M:"\u0c12\u0c15 \u0c28\u0c46\u0c32",MM:"%d \u0c28\u0c46\u0c32\u0c32\u0c41",y:"\u0c12\u0c15 \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c02",yy:"%d \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c3e\u0c32\u0c41"},dayOfMonthOrdinalParse:/\d{1,2}\u0c35/,ordinal:"%d\u0c35",meridiemParse:/\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f|\u0c09\u0c26\u0c2f\u0c02|\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02|\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02/,meridiemHour:function(E,M){return 12===E&&(E=0),"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"===M?E<4?E:E+12:"\u0c09\u0c26\u0c2f\u0c02"===M?E:"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02"===M?E>=10?E:E+12:"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02"===M?E+12:void 0},meridiem:function(E,M,S){return E<4?"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f":E<10?"\u0c09\u0c26\u0c2f\u0c02":E<17?"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02":E<20?"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02":"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"},week:{dow:0,doy:6}})}(x(5439))},2115:function(Y,z,x){!function(w){"use strict";w.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Ju\xf1u_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"segundu balun",ss:"segundu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(E){var M=E%10;return E+(1==~~(E%100/10)?"th":1===M?"st":2===M?"nd":3===M?"rd":"th")},week:{dow:1,doy:4}})}(x(5439))},9801:function(Y,z,x){!function(w){"use strict";var i={0:"-\u0443\u043c",1:"-\u0443\u043c",2:"-\u044e\u043c",3:"-\u044e\u043c",4:"-\u0443\u043c",5:"-\u0443\u043c",6:"-\u0443\u043c",7:"-\u0443\u043c",8:"-\u0443\u043c",9:"-\u0443\u043c",10:"-\u0443\u043c",12:"-\u0443\u043c",13:"-\u0443\u043c",20:"-\u0443\u043c",30:"-\u044e\u043c",40:"-\u0443\u043c",50:"-\u0443\u043c",60:"-\u0443\u043c",70:"-\u0443\u043c",80:"-\u0443\u043c",90:"-\u0443\u043c",100:"-\u0443\u043c"};w.defineLocale("tg",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0430\u043b\u0438_\u043c\u0430\u0440\u0442\u0438_\u0430\u043f\u0440\u0435\u043b\u0438_\u043c\u0430\u0439\u0438_\u0438\u044e\u043d\u0438_\u0438\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442\u0438_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u0438_\u043e\u043a\u0442\u044f\u0431\u0440\u0438_\u043d\u043e\u044f\u0431\u0440\u0438_\u0434\u0435\u043a\u0430\u0431\u0440\u0438".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_")},monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u044f\u043a\u0448\u0430\u043d\u0431\u0435_\u0434\u0443\u0448\u0430\u043d\u0431\u0435_\u0441\u0435\u0448\u0430\u043d\u0431\u0435_\u0447\u043e\u0440\u0448\u0430\u043d\u0431\u0435_\u043f\u0430\u043d\u04b7\u0448\u0430\u043d\u0431\u0435_\u04b7\u0443\u043c\u044a\u0430_\u0448\u0430\u043d\u0431\u0435".split("_"),weekdaysShort:"\u044f\u0448\u0431_\u0434\u0448\u0431_\u0441\u0448\u0431_\u0447\u0448\u0431_\u043f\u0448\u0431_\u04b7\u0443\u043c_\u0448\u043d\u0431".split("_"),weekdaysMin:"\u044f\u0448_\u0434\u0448_\u0441\u0448_\u0447\u0448_\u043f\u0448_\u04b7\u043c_\u0448\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0418\u043c\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextDay:"[\u0424\u0430\u0440\u0434\u043e \u0441\u043e\u0430\u0442\u0438] LT",lastDay:"[\u0414\u0438\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u043e\u044f\u043d\u0434\u0430 \u0441\u043e\u0430\u0442\u0438] LT",lastWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u0433\u0443\u0437\u0430\u0448\u0442\u0430 \u0441\u043e\u0430\u0442\u0438] LT",sameElse:"L"},relativeTime:{future:"\u0431\u0430\u044a\u0434\u0438 %s",past:"%s \u043f\u0435\u0448",s:"\u044f\u043a\u0447\u0430\u043d\u0434 \u0441\u043e\u043d\u0438\u044f",m:"\u044f\u043a \u0434\u0430\u049b\u0438\u049b\u0430",mm:"%d \u0434\u0430\u049b\u0438\u049b\u0430",h:"\u044f\u043a \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u044f\u043a \u0440\u04ef\u0437",dd:"%d \u0440\u04ef\u0437",M:"\u044f\u043a \u043c\u043e\u04b3",MM:"%d \u043c\u043e\u04b3",y:"\u044f\u043a \u0441\u043e\u043b",yy:"%d \u0441\u043e\u043b"},meridiemParse:/\u0448\u0430\u0431|\u0441\u0443\u0431\u04b3|\u0440\u04ef\u0437|\u0431\u0435\u0433\u043e\u04b3/,meridiemHour:function(M,S){return 12===M&&(M=0),"\u0448\u0430\u0431"===S?M<4?M:M+12:"\u0441\u0443\u0431\u04b3"===S?M:"\u0440\u04ef\u0437"===S?M>=11?M:M+12:"\u0431\u0435\u0433\u043e\u04b3"===S?M+12:void 0},meridiem:function(M,S,k){return M<4?"\u0448\u0430\u0431":M<11?"\u0441\u0443\u0431\u04b3":M<16?"\u0440\u04ef\u0437":M<19?"\u0431\u0435\u0433\u043e\u04b3":"\u0448\u0430\u0431"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0443\u043c|\u044e\u043c)/,ordinal:function(M){return M+(i[M]||i[M%10]||i[M>=100?100:null])},week:{dow:1,doy:7}})}(x(5439))},2868:function(Y,z,x){!function(w){"use strict";w.defineLocale("th",{months:"\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21_\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c_\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21_\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19_\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21_\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19_\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21_\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21_\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19_\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21_\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19_\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21".split("_"),monthsShort:"\u0e21.\u0e04._\u0e01.\u0e1e._\u0e21\u0e35.\u0e04._\u0e40\u0e21.\u0e22._\u0e1e.\u0e04._\u0e21\u0e34.\u0e22._\u0e01.\u0e04._\u0e2a.\u0e04._\u0e01.\u0e22._\u0e15.\u0e04._\u0e1e.\u0e22._\u0e18.\u0e04.".split("_"),monthsParseExact:!0,weekdays:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysShort:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysMin:"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm",LLLL:"\u0e27\u0e31\u0e19dddd\u0e17\u0e35\u0e48 D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm"},meridiemParse:/\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07|\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07/,isPM:function(E){return"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"===E},meridiem:function(E,M,S){return E<12?"\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07":"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"},calendar:{sameDay:"[\u0e27\u0e31\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextDay:"[\u0e1e\u0e23\u0e38\u0e48\u0e07\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextWeek:"dddd[\u0e2b\u0e19\u0e49\u0e32 \u0e40\u0e27\u0e25\u0e32] LT",lastDay:"[\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e27\u0e32\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",lastWeek:"[\u0e27\u0e31\u0e19]dddd[\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27 \u0e40\u0e27\u0e25\u0e32] LT",sameElse:"L"},relativeTime:{future:"\u0e2d\u0e35\u0e01 %s",past:"%s\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27",s:"\u0e44\u0e21\u0e48\u0e01\u0e35\u0e48\u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",ss:"%d \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",m:"1 \u0e19\u0e32\u0e17\u0e35",mm:"%d \u0e19\u0e32\u0e17\u0e35",h:"1 \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",hh:"%d \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",d:"1 \u0e27\u0e31\u0e19",dd:"%d \u0e27\u0e31\u0e19",w:"1 \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",ww:"%d \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",M:"1 \u0e40\u0e14\u0e37\u0e2d\u0e19",MM:"%d \u0e40\u0e14\u0e37\u0e2d\u0e19",y:"1 \u0e1b\u0e35",yy:"%d \u0e1b\u0e35"}})}(x(5439))},1310:function(Y,z,x){!function(w){"use strict";var i={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'\xfcnji",4:"'\xfcnji",100:"'\xfcnji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"};w.defineLocale("tk",{months:"\xddanwar_Fewral_Mart_Aprel_Ma\xfd_I\xfdun_I\xfdul_Awgust_Sent\xfdabr_Okt\xfdabr_No\xfdabr_Dekabr".split("_"),monthsShort:"\xddan_Few_Mar_Apr_Ma\xfd_I\xfdn_I\xfdl_Awg_Sen_Okt_No\xfd_Dek".split("_"),weekdays:"\xddek\u015fenbe_Du\u015fenbe_Si\u015fenbe_\xc7ar\u015fenbe_Pen\u015fenbe_Anna_\u015eenbe".split("_"),weekdaysShort:"\xddek_Du\u015f_Si\u015f_\xc7ar_Pen_Ann_\u015een".split("_"),weekdaysMin:"\xddk_D\u015f_S\u015f_\xc7r_Pn_An_\u015en".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[d\xfc\xfdn] LT",lastWeek:"[ge\xe7en] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s so\u0148",past:"%s \xf6\u0148",s:"birn\xe4\xe7e sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir a\xfd",MM:"%d a\xfd",y:"bir \xfdyl",yy:"%d \xfdyl"},ordinal:function(M,S){switch(S){case"d":case"D":case"Do":case"DD":return M;default:if(0===M)return M+"'unjy";var k=M%10;return M+(i[k]||i[M%100-k]||i[M>=100?100:null])}},week:{dow:1,doy:7}})}(x(5439))},2360:function(Y,z,x){!function(w){"use strict";w.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(E){return E},week:{dow:1,doy:4}})}(x(5439))},6645:function(Y,z,x){!function(w){"use strict";var i="pagh_wa\u2019_cha\u2019_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function S(F,U,J,Q){var ne=function k(F){var U=Math.floor(F%1e3/100),J=Math.floor(F%100/10),Q=F%10,ne="";return U>0&&(ne+=i[U]+"vatlh"),J>0&&(ne+=(""!==ne?" ":"")+i[J]+"maH"),Q>0&&(ne+=(""!==ne?" ":"")+i[Q]),""===ne?"pagh":ne}(F);switch(J){case"ss":return ne+" lup";case"mm":return ne+" tup";case"hh":return ne+" rep";case"dd":return ne+" jaj";case"MM":return ne+" jar";case"yy":return ne+" DIS"}}w.defineLocale("tlh",{months:"tera\u2019 jar wa\u2019_tera\u2019 jar cha\u2019_tera\u2019 jar wej_tera\u2019 jar loS_tera\u2019 jar vagh_tera\u2019 jar jav_tera\u2019 jar Soch_tera\u2019 jar chorgh_tera\u2019 jar Hut_tera\u2019 jar wa\u2019maH_tera\u2019 jar wa\u2019maH wa\u2019_tera\u2019 jar wa\u2019maH cha\u2019".split("_"),monthsShort:"jar wa\u2019_jar cha\u2019_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa\u2019maH_jar wa\u2019maH wa\u2019_jar wa\u2019maH cha\u2019".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa\u2019leS] LT",nextWeek:"LLL",lastDay:"[wa\u2019Hu\u2019] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function E(F){var U=F;return-1!==F.indexOf("jaj")?U.slice(0,-3)+"leS":-1!==F.indexOf("jar")?U.slice(0,-3)+"waQ":-1!==F.indexOf("DIS")?U.slice(0,-3)+"nem":U+" pIq"},past:function M(F){var U=F;return-1!==F.indexOf("jaj")?U.slice(0,-3)+"Hu\u2019":-1!==F.indexOf("jar")?U.slice(0,-3)+"wen":-1!==F.indexOf("DIS")?U.slice(0,-3)+"ben":U+" ret"},s:"puS lup",ss:S,m:"wa\u2019 tup",mm:S,h:"wa\u2019 rep",hh:S,d:"wa\u2019 jaj",dd:S,M:"wa\u2019 jar",MM:S,y:"wa\u2019 DIS",yy:S},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},8374:function(Y,z,x){!function(w){"use strict";var i={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'\xfcnc\xfc",4:"'\xfcnc\xfc",100:"'\xfcnc\xfc",6:"'nc\u0131",9:"'uncu",10:"'uncu",30:"'uncu",60:"'\u0131nc\u0131",90:"'\u0131nc\u0131"};w.defineLocale("tr",{months:"Ocak_\u015eubat_Mart_Nisan_May\u0131s_Haziran_Temmuz_A\u011fustos_Eyl\xfcl_Ekim_Kas\u0131m_Aral\u0131k".split("_"),monthsShort:"Oca_\u015eub_Mar_Nis_May_Haz_Tem_A\u011fu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Sal\u0131_\xc7ar\u015famba_Per\u015fembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pzt_Sal_\xc7ar_Per_Cum_Cmt".split("_"),weekdaysMin:"Pz_Pt_Sa_\xc7a_Pe_Cu_Ct".split("_"),meridiem:function(M,S,k){return M<12?k?"\xf6\xf6":"\xd6\xd6":k?"\xf6s":"\xd6S"},meridiemParse:/\xf6\xf6|\xd6\xd6|\xf6s|\xd6S/,isPM:function(M){return"\xf6s"===M||"\xd6S"===M},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[yar\u0131n saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[d\xfcn] LT",lastWeek:"[ge\xe7en] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \xf6nce",s:"birka\xe7 saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir y\u0131l",yy:"%d y\u0131l"},ordinal:function(M,S){switch(S){case"d":case"D":case"Do":case"DD":return M;default:if(0===M)return M+"'\u0131nc\u0131";var k=M%10;return M+(i[k]||i[M%100-k]||i[M>=100?100:null])}},week:{dow:1,doy:7}})}(x(5439))},256:function(Y,z,x){!function(w){"use strict";function E(M,S,k,L){var F={s:["viensas secunds","'iensas secunds"],ss:[M+" secunds",M+" secunds"],m:["'n m\xedut","'iens m\xedut"],mm:[M+" m\xeduts",M+" m\xeduts"],h:["'n \xfeora","'iensa \xfeora"],hh:[M+" \xfeoras",M+" \xfeoras"],d:["'n ziua","'iensa ziua"],dd:[M+" ziuas",M+" ziuas"],M:["'n mes","'iens mes"],MM:[M+" mesen",M+" mesen"],y:["'n ar","'iens ar"],yy:[M+" ars",M+" ars"]};return L||S?F[k][0]:F[k][1]}w.defineLocale("tzl",{months:"Januar_Fevraglh_Mar\xe7_Avr\xefu_Mai_G\xfcn_Julia_Guscht_Setemvar_Listop\xe4ts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_G\xfcn_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"S\xfaladi_L\xfane\xe7i_Maitzi_M\xe1rcuri_Xh\xfaadi_Vi\xe9ner\xe7i_S\xe1turi".split("_"),weekdaysShort:"S\xfal_L\xfan_Mai_M\xe1r_Xh\xfa_Vi\xe9_S\xe1t".split("_"),weekdaysMin:"S\xfa_L\xfa_Ma_M\xe1_Xh_Vi_S\xe1".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(M){return"d'o"===M.toLowerCase()},meridiem:function(M,S,k){return M>11?k?"d'o":"D'O":k?"d'a":"D'A"},calendar:{sameDay:"[oxhi \xe0] LT",nextDay:"[dem\xe0 \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[ieiri \xe0] LT",lastWeek:"[s\xfcr el] dddd [lasteu \xe0] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:E,ss:E,m:E,mm:E,h:E,hh:E,d:E,dd:E,M:E,MM:E,y:E,yy:E},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},1631:function(Y,z,x){!function(w){"use strict";w.defineLocale("tzm-latn",{months:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minu\u1e0d",mm:"%d minu\u1e0d",h:"sa\u025ba",hh:"%d tassa\u025bin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(x(5439))},1595:function(Y,z,x){!function(w){"use strict";w.defineLocale("tzm",{months:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),monthsShort:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),weekdays:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysShort:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysMin:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u2d30\u2d59\u2d37\u2d45 \u2d34] LT",nextDay:"[\u2d30\u2d59\u2d3d\u2d30 \u2d34] LT",nextWeek:"dddd [\u2d34] LT",lastDay:"[\u2d30\u2d5a\u2d30\u2d4f\u2d5c \u2d34] LT",lastWeek:"dddd [\u2d34] LT",sameElse:"L"},relativeTime:{future:"\u2d37\u2d30\u2d37\u2d45 \u2d59 \u2d62\u2d30\u2d4f %s",past:"\u2d62\u2d30\u2d4f %s",s:"\u2d49\u2d4e\u2d49\u2d3d",ss:"%d \u2d49\u2d4e\u2d49\u2d3d",m:"\u2d4e\u2d49\u2d4f\u2d53\u2d3a",mm:"%d \u2d4e\u2d49\u2d4f\u2d53\u2d3a",h:"\u2d59\u2d30\u2d44\u2d30",hh:"%d \u2d5c\u2d30\u2d59\u2d59\u2d30\u2d44\u2d49\u2d4f",d:"\u2d30\u2d59\u2d59",dd:"%d o\u2d59\u2d59\u2d30\u2d4f",M:"\u2d30\u2d62o\u2d53\u2d54",MM:"%d \u2d49\u2d62\u2d62\u2d49\u2d54\u2d4f",y:"\u2d30\u2d59\u2d33\u2d30\u2d59",yy:"%d \u2d49\u2d59\u2d33\u2d30\u2d59\u2d4f"},week:{dow:6,doy:12}})}(x(5439))},6050:function(Y,z,x){!function(w){"use strict";w.defineLocale("ug-cn",{months:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),monthsShort:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),weekdays:"\u064a\u06d5\u0643\u0634\u06d5\u0646\u0628\u06d5_\u062f\u06c8\u0634\u06d5\u0646\u0628\u06d5_\u0633\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u0686\u0627\u0631\u0634\u06d5\u0646\u0628\u06d5_\u067e\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u062c\u06c8\u0645\u06d5_\u0634\u06d5\u0646\u0628\u06d5".split("_"),weekdaysShort:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),weekdaysMin:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649",LLL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm",LLLL:"dddd\u060c YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm"},meridiemParse:/\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5|\u0633\u06d5\u06be\u06d5\u0631|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646|\u0686\u06c8\u0634|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646|\u0643\u06d5\u0686/,meridiemHour:function(E,M){return 12===E&&(E=0),"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5"===M||"\u0633\u06d5\u06be\u06d5\u0631"===M||"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646"===M?E:"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646"===M||"\u0643\u06d5\u0686"===M?E+12:E>=11?E:E+12},meridiem:function(E,M,S){var k=100*E+M;return k<600?"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5":k<900?"\u0633\u06d5\u06be\u06d5\u0631":k<1130?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646":k<1230?"\u0686\u06c8\u0634":k<1800?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646":"\u0643\u06d5\u0686"},calendar:{sameDay:"[\u0628\u06c8\u06af\u06c8\u0646 \u0633\u0627\u0626\u06d5\u062a] LT",nextDay:"[\u0626\u06d5\u062a\u06d5 \u0633\u0627\u0626\u06d5\u062a] LT",nextWeek:"[\u0643\u06d0\u0644\u06d5\u0631\u0643\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",lastDay:"[\u062a\u06c6\u0646\u06c8\u06af\u06c8\u0646] LT",lastWeek:"[\u0626\u0627\u0644\u062f\u0649\u0646\u0642\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0643\u06d0\u064a\u0649\u0646",past:"%s \u0628\u06c7\u0631\u06c7\u0646",s:"\u0646\u06d5\u0686\u0686\u06d5 \u0633\u06d0\u0643\u0648\u0646\u062a",ss:"%d \u0633\u06d0\u0643\u0648\u0646\u062a",m:"\u0628\u0649\u0631 \u0645\u0649\u0646\u06c7\u062a",mm:"%d \u0645\u0649\u0646\u06c7\u062a",h:"\u0628\u0649\u0631 \u0633\u0627\u0626\u06d5\u062a",hh:"%d \u0633\u0627\u0626\u06d5\u062a",d:"\u0628\u0649\u0631 \u0643\u06c8\u0646",dd:"%d \u0643\u06c8\u0646",M:"\u0628\u0649\u0631 \u0626\u0627\u064a",MM:"%d \u0626\u0627\u064a",y:"\u0628\u0649\u0631 \u064a\u0649\u0644",yy:"%d \u064a\u0649\u0644"},dayOfMonthOrdinalParse:/\d{1,2}(-\u0643\u06c8\u0646\u0649|-\u0626\u0627\u064a|-\u06be\u06d5\u067e\u062a\u06d5)/,ordinal:function(E,M){switch(M){case"d":case"D":case"DDD":return E+"-\u0643\u06c8\u0646\u0649";case"w":case"W":return E+"-\u06be\u06d5\u067e\u062a\u06d5";default:return E}},preparse:function(E){return E.replace(/\u060c/g,",")},postformat:function(E){return E.replace(/,/g,"\u060c")},week:{dow:1,doy:7}})}(x(5439))},5610:function(Y,z,x){!function(w){"use strict";function E(L,F,U){return"m"===U?F?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443":"h"===U?F?"\u0433\u043e\u0434\u0438\u043d\u0430":"\u0433\u043e\u0434\u0438\u043d\u0443":L+" "+function i(L,F){var U=L.split("_");return F%10==1&&F%100!=11?U[0]:F%10>=2&&F%10<=4&&(F%100<10||F%100>=20)?U[1]:U[2]}({ss:F?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434",mm:F?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d",hh:F?"\u0433\u043e\u0434\u0438\u043d\u0430_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d":"\u0433\u043e\u0434\u0438\u043d\u0443_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u043d\u0456\u0432",MM:"\u043c\u0456\u0441\u044f\u0446\u044c_\u043c\u0456\u0441\u044f\u0446\u0456_\u043c\u0456\u0441\u044f\u0446\u0456\u0432",yy:"\u0440\u0456\u043a_\u0440\u043e\u043a\u0438_\u0440\u043e\u043a\u0456\u0432"}[U],+L)}function S(L){return function(){return L+"\u043e"+(11===this.hours()?"\u0431":"")+"] LT"}}w.defineLocale("uk",{months:{format:"\u0441\u0456\u0447\u043d\u044f_\u043b\u044e\u0442\u043e\u0433\u043e_\u0431\u0435\u0440\u0435\u0437\u043d\u044f_\u043a\u0432\u0456\u0442\u043d\u044f_\u0442\u0440\u0430\u0432\u043d\u044f_\u0447\u0435\u0440\u0432\u043d\u044f_\u043b\u0438\u043f\u043d\u044f_\u0441\u0435\u0440\u043f\u043d\u044f_\u0432\u0435\u0440\u0435\u0441\u043d\u044f_\u0436\u043e\u0432\u0442\u043d\u044f_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434\u0430_\u0433\u0440\u0443\u0434\u043d\u044f".split("_"),standalone:"\u0441\u0456\u0447\u0435\u043d\u044c_\u043b\u044e\u0442\u0438\u0439_\u0431\u0435\u0440\u0435\u0437\u0435\u043d\u044c_\u043a\u0432\u0456\u0442\u0435\u043d\u044c_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u0435\u0440\u0432\u0435\u043d\u044c_\u043b\u0438\u043f\u0435\u043d\u044c_\u0441\u0435\u0440\u043f\u0435\u043d\u044c_\u0432\u0435\u0440\u0435\u0441\u0435\u043d\u044c_\u0436\u043e\u0432\u0442\u0435\u043d\u044c_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434_\u0433\u0440\u0443\u0434\u0435\u043d\u044c".split("_")},monthsShort:"\u0441\u0456\u0447_\u043b\u044e\u0442_\u0431\u0435\u0440_\u043a\u0432\u0456\u0442_\u0442\u0440\u0430\u0432_\u0447\u0435\u0440\u0432_\u043b\u0438\u043f_\u0441\u0435\u0440\u043f_\u0432\u0435\u0440_\u0436\u043e\u0432\u0442_\u043b\u0438\u0441\u0442_\u0433\u0440\u0443\u0434".split("_"),weekdays:function M(L,F){var U={nominative:"\u043d\u0435\u0434\u0456\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044f_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),accusative:"\u043d\u0435\u0434\u0456\u043b\u044e_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044e_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),genitive:"\u043d\u0435\u0434\u0456\u043b\u0456_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043a\u0430_\u0432\u0456\u0432\u0442\u043e\u0440\u043a\u0430_\u0441\u0435\u0440\u0435\u0434\u0438_\u0447\u0435\u0442\u0432\u0435\u0440\u0433\u0430_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u0456_\u0441\u0443\u0431\u043e\u0442\u0438".split("_")};return!0===L?U.nominative.slice(1,7).concat(U.nominative.slice(0,1)):L?U[/(\[[\u0412\u0432\u0423\u0443]\]) ?dddd/.test(F)?"accusative":/\[?(?:\u043c\u0438\u043d\u0443\u043b\u043e\u0457|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0457)? ?\] ?dddd/.test(F)?"genitive":"nominative"][L.day()]:U.nominative},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0440.",LLL:"D MMMM YYYY \u0440., HH:mm",LLLL:"dddd, D MMMM YYYY \u0440., HH:mm"},calendar:{sameDay:S("[\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456 "),nextDay:S("[\u0417\u0430\u0432\u0442\u0440\u0430 "),lastDay:S("[\u0412\u0447\u043e\u0440\u0430 "),nextWeek:S("[\u0423] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return S("[\u041c\u0438\u043d\u0443\u043b\u043e\u0457] dddd [").call(this);case 1:case 2:case 4:return S("[\u041c\u0438\u043d\u0443\u043b\u043e\u0433\u043e] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"%s \u0442\u043e\u043c\u0443",s:"\u0434\u0435\u043a\u0456\u043b\u044c\u043a\u0430 \u0441\u0435\u043a\u0443\u043d\u0434",ss:E,m:E,mm:E,h:"\u0433\u043e\u0434\u0438\u043d\u0443",hh:E,d:"\u0434\u0435\u043d\u044c",dd:E,M:"\u043c\u0456\u0441\u044f\u0446\u044c",MM:E,y:"\u0440\u0456\u043a",yy:E},meridiemParse:/\u043d\u043e\u0447\u0456|\u0440\u0430\u043d\u043a\u0443|\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430/,isPM:function(L){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430)$/.test(L)},meridiem:function(L,F,U){return L<4?"\u043d\u043e\u0447\u0456":L<12?"\u0440\u0430\u043d\u043a\u0443":L<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u043e\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e)/,ordinal:function(L,F){switch(F){case"M":case"d":case"DDD":case"w":case"W":return L+"-\u0439";case"D":return L+"-\u0433\u043e";default:return L}},week:{dow:1,doy:7}})}(x(5439))},6077:function(Y,z,x){!function(w){"use strict";var i=["\u062c\u0646\u0648\u0631\u06cc","\u0641\u0631\u0648\u0631\u06cc","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u06cc\u0644","\u0645\u0626\u06cc","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0626\u06cc","\u0627\u06af\u0633\u062a","\u0633\u062a\u0645\u0628\u0631","\u0627\u06a9\u062a\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u062f\u0633\u0645\u0628\u0631"],E=["\u0627\u062a\u0648\u0627\u0631","\u067e\u06cc\u0631","\u0645\u0646\u06af\u0644","\u0628\u062f\u06be","\u062c\u0645\u0639\u0631\u0627\u062a","\u062c\u0645\u0639\u06c1","\u06c1\u0641\u062a\u06c1"];w.defineLocale("ur",{months:i,monthsShort:i,weekdays:E,weekdaysShort:E,weekdaysMin:E,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(S){return"\u0634\u0627\u0645"===S},meridiem:function(S,k,L){return S<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0622\u062c \u0628\u0648\u0642\u062a] LT",nextDay:"[\u06a9\u0644 \u0628\u0648\u0642\u062a] LT",nextWeek:"dddd [\u0628\u0648\u0642\u062a] LT",lastDay:"[\u06af\u0630\u0634\u062a\u06c1 \u0631\u0648\u0632 \u0628\u0648\u0642\u062a] LT",lastWeek:"[\u06af\u0630\u0634\u062a\u06c1] dddd [\u0628\u0648\u0642\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0628\u0639\u062f",past:"%s \u0642\u0628\u0644",s:"\u0686\u0646\u062f \u0633\u06cc\u06a9\u0646\u0688",ss:"%d \u0633\u06cc\u06a9\u0646\u0688",m:"\u0627\u06cc\u06a9 \u0645\u0646\u0679",mm:"%d \u0645\u0646\u0679",h:"\u0627\u06cc\u06a9 \u06af\u06be\u0646\u0679\u06c1",hh:"%d \u06af\u06be\u0646\u0679\u06d2",d:"\u0627\u06cc\u06a9 \u062f\u0646",dd:"%d \u062f\u0646",M:"\u0627\u06cc\u06a9 \u0645\u0627\u06c1",MM:"%d \u0645\u0627\u06c1",y:"\u0627\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(S){return S.replace(/\u060c/g,",")},postformat:function(S){return S.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(x(5439))},2207:function(Y,z,x){!function(w){"use strict";w.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(x(5439))},2862:function(Y,z,x){!function(w){"use strict";w.defineLocale("uz",{months:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u042f\u043a\u0448\u0430\u043d\u0431\u0430_\u0414\u0443\u0448\u0430\u043d\u0431\u0430_\u0421\u0435\u0448\u0430\u043d\u0431\u0430_\u0427\u043e\u0440\u0448\u0430\u043d\u0431\u0430_\u041f\u0430\u0439\u0448\u0430\u043d\u0431\u0430_\u0416\u0443\u043c\u0430_\u0428\u0430\u043d\u0431\u0430".split("_"),weekdaysShort:"\u042f\u043a\u0448_\u0414\u0443\u0448_\u0421\u0435\u0448_\u0427\u043e\u0440_\u041f\u0430\u0439_\u0416\u0443\u043c_\u0428\u0430\u043d".split("_"),weekdaysMin:"\u042f\u043a_\u0414\u0443_\u0421\u0435_\u0427\u043e_\u041f\u0430_\u0416\u0443_\u0428\u0430".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[\u0411\u0443\u0433\u0443\u043d \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",nextDay:"[\u042d\u0440\u0442\u0430\u0433\u0430] LT [\u0434\u0430]",nextWeek:"dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastDay:"[\u041a\u0435\u0447\u0430 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastWeek:"[\u0423\u0442\u0433\u0430\u043d] dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",sameElse:"L"},relativeTime:{future:"\u042f\u043a\u0438\u043d %s \u0438\u0447\u0438\u0434\u0430",past:"\u0411\u0438\u0440 \u043d\u0435\u0447\u0430 %s \u043e\u043b\u0434\u0438\u043d",s:"\u0444\u0443\u0440\u0441\u0430\u0442",ss:"%d \u0444\u0443\u0440\u0441\u0430\u0442",m:"\u0431\u0438\u0440 \u0434\u0430\u043a\u0438\u043a\u0430",mm:"%d \u0434\u0430\u043a\u0438\u043a\u0430",h:"\u0431\u0438\u0440 \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u0431\u0438\u0440 \u043e\u0439",MM:"%d \u043e\u0439",y:"\u0431\u0438\u0440 \u0439\u0438\u043b",yy:"%d \u0439\u0438\u043b"},week:{dow:1,doy:7}})}(x(5439))},8093:function(Y,z,x){!function(w){"use strict";w.defineLocale("vi",{months:"th\xe1ng 1_th\xe1ng 2_th\xe1ng 3_th\xe1ng 4_th\xe1ng 5_th\xe1ng 6_th\xe1ng 7_th\xe1ng 8_th\xe1ng 9_th\xe1ng 10_th\xe1ng 11_th\xe1ng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"ch\u1ee7 nh\u1eadt_th\u1ee9 hai_th\u1ee9 ba_th\u1ee9 t\u01b0_th\u1ee9 n\u0103m_th\u1ee9 s\xe1u_th\u1ee9 b\u1ea3y".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(E){return/^ch$/i.test(E)},meridiem:function(E,M,S){return E<12?S?"sa":"SA":S?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [n\u0103m] YYYY",LLL:"D MMMM [n\u0103m] YYYY HH:mm",LLLL:"dddd, D MMMM [n\u0103m] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[H\xf4m nay l\xfac] LT",nextDay:"[Ng\xe0y mai l\xfac] LT",nextWeek:"dddd [tu\u1ea7n t\u1edbi l\xfac] LT",lastDay:"[H\xf4m qua l\xfac] LT",lastWeek:"dddd [tu\u1ea7n tr\u01b0\u1edbc l\xfac] LT",sameElse:"L"},relativeTime:{future:"%s t\u1edbi",past:"%s tr\u01b0\u1edbc",s:"v\xe0i gi\xe2y",ss:"%d gi\xe2y",m:"m\u1ed9t ph\xfat",mm:"%d ph\xfat",h:"m\u1ed9t gi\u1edd",hh:"%d gi\u1edd",d:"m\u1ed9t ng\xe0y",dd:"%d ng\xe0y",w:"m\u1ed9t tu\u1ea7n",ww:"%d tu\u1ea7n",M:"m\u1ed9t th\xe1ng",MM:"%d th\xe1ng",y:"m\u1ed9t n\u0103m",yy:"%d n\u0103m"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(E){return E},week:{dow:1,doy:4}})}(x(5439))},5590:function(Y,z,x){!function(w){"use strict";w.defineLocale("x-pseudo",{months:"J~\xe1\xf1\xfa\xe1~r\xfd_F~\xe9br\xfa~\xe1r\xfd_~M\xe1rc~h_\xc1p~r\xedl_~M\xe1\xfd_~J\xfa\xf1\xe9~_J\xfal~\xfd_\xc1\xfa~g\xfast~_S\xe9p~t\xe9mb~\xe9r_\xd3~ct\xf3b~\xe9r_\xd1~\xf3v\xe9m~b\xe9r_~D\xe9c\xe9~mb\xe9r".split("_"),monthsShort:"J~\xe1\xf1_~F\xe9b_~M\xe1r_~\xc1pr_~M\xe1\xfd_~J\xfa\xf1_~J\xfal_~\xc1\xfag_~S\xe9p_~\xd3ct_~\xd1\xf3v_~D\xe9c".split("_"),monthsParseExact:!0,weekdays:"S~\xfa\xf1d\xe1~\xfd_M\xf3~\xf1d\xe1\xfd~_T\xfa\xe9~sd\xe1\xfd~_W\xe9d~\xf1\xe9sd~\xe1\xfd_T~h\xfars~d\xe1\xfd_~Fr\xedd~\xe1\xfd_S~\xe1t\xfar~d\xe1\xfd".split("_"),weekdaysShort:"S~\xfa\xf1_~M\xf3\xf1_~T\xfa\xe9_~W\xe9d_~Th\xfa_~Fr\xed_~S\xe1t".split("_"),weekdaysMin:"S~\xfa_M\xf3~_T\xfa_~W\xe9_T~h_Fr~_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~\xf3d\xe1~\xfd \xe1t] LT",nextDay:"[T~\xf3m\xf3~rr\xf3~w \xe1t] LT",nextWeek:"dddd [\xe1t] LT",lastDay:"[\xdd~\xe9st~\xe9rd\xe1~\xfd \xe1t] LT",lastWeek:"[L~\xe1st] dddd [\xe1t] LT",sameElse:"L"},relativeTime:{future:"\xed~\xf1 %s",past:"%s \xe1~g\xf3",s:"\xe1 ~f\xe9w ~s\xe9c\xf3~\xf1ds",ss:"%d s~\xe9c\xf3\xf1~ds",m:"\xe1 ~m\xed\xf1~\xfat\xe9",mm:"%d m~\xed\xf1\xfa~t\xe9s",h:"\xe1~\xf1 h\xf3~\xfar",hh:"%d h~\xf3\xfars",d:"\xe1 ~d\xe1\xfd",dd:"%d d~\xe1\xfds",M:"\xe1 ~m\xf3\xf1~th",MM:"%d m~\xf3\xf1t~hs",y:"\xe1 ~\xfd\xe9\xe1r",yy:"%d \xfd~\xe9\xe1rs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(E){var M=E%10;return E+(1==~~(E%100/10)?"th":1===M?"st":2===M?"nd":3===M?"rd":"th")},week:{dow:1,doy:4}})}(x(5439))},9058:function(Y,z,x){!function(w){"use strict";w.defineLocale("yo",{months:"S\u1eb9\u0301r\u1eb9\u0301_E\u0300re\u0300le\u0300_\u1eb8r\u1eb9\u0300na\u0300_I\u0300gbe\u0301_E\u0300bibi_O\u0300ku\u0300du_Ag\u1eb9mo_O\u0300gu\u0301n_Owewe_\u1ecc\u0300wa\u0300ra\u0300_Be\u0301lu\u0301_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),monthsShort:"S\u1eb9\u0301r_E\u0300rl_\u1eb8rn_I\u0300gb_E\u0300bi_O\u0300ku\u0300_Ag\u1eb9_O\u0300gu\u0301_Owe_\u1ecc\u0300wa\u0300_Be\u0301l_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),weekdays:"A\u0300i\u0300ku\u0301_Aje\u0301_I\u0300s\u1eb9\u0301gun_\u1eccj\u1ecd\u0301ru\u0301_\u1eccj\u1ecd\u0301b\u1ecd_\u1eb8ti\u0300_A\u0300ba\u0301m\u1eb9\u0301ta".split("_"),weekdaysShort:"A\u0300i\u0300k_Aje\u0301_I\u0300s\u1eb9\u0301_\u1eccjr_\u1eccjb_\u1eb8ti\u0300_A\u0300ba\u0301".split("_"),weekdaysMin:"A\u0300i\u0300_Aj_I\u0300s_\u1eccr_\u1eccb_\u1eb8t_A\u0300b".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[O\u0300ni\u0300 ni] LT",nextDay:"[\u1ecc\u0300la ni] LT",nextWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301n'b\u1ecd] [ni] LT",lastDay:"[A\u0300na ni] LT",lastWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301l\u1ecd\u0301] [ni] LT",sameElse:"L"},relativeTime:{future:"ni\u0301 %s",past:"%s k\u1ecdja\u0301",s:"i\u0300s\u1eb9ju\u0301 aaya\u0301 die",ss:"aaya\u0301 %d",m:"i\u0300s\u1eb9ju\u0301 kan",mm:"i\u0300s\u1eb9ju\u0301 %d",h:"wa\u0301kati kan",hh:"wa\u0301kati %d",d:"\u1ecdj\u1ecd\u0301 kan",dd:"\u1ecdj\u1ecd\u0301 %d",M:"osu\u0300 kan",MM:"osu\u0300 %d",y:"\u1ecddu\u0301n kan",yy:"\u1ecddu\u0301n %d"},dayOfMonthOrdinalParse:/\u1ecdj\u1ecd\u0301\s\d{1,2}/,ordinal:"\u1ecdj\u1ecd\u0301 %d",week:{dow:1,doy:4}})}(x(5439))},7908:function(Y,z,x){!function(w){"use strict";w.defineLocale("zh-cn",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u5468\u65e5_\u5468\u4e00_\u5468\u4e8c_\u5468\u4e09_\u5468\u56db_\u5468\u4e94_\u5468\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5Ah\u70b9mm\u5206",LLLL:"YYYY\u5e74M\u6708D\u65e5ddddAh\u70b9mm\u5206",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(E,M){return 12===E&&(E=0),"\u51cc\u6668"===M||"\u65e9\u4e0a"===M||"\u4e0a\u5348"===M?E:"\u4e0b\u5348"===M||"\u665a\u4e0a"===M?E+12:E>=11?E:E+12},meridiem:function(E,M,S){var k=100*E+M;return k<600?"\u51cc\u6668":k<900?"\u65e9\u4e0a":k<1130?"\u4e0a\u5348":k<1230?"\u4e2d\u5348":k<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:function(E){return E.week()!==this.week()?"[\u4e0b]dddLT":"[\u672c]dddLT"},lastDay:"[\u6628\u5929]LT",lastWeek:function(E){return this.week()!==E.week()?"[\u4e0a]dddLT":"[\u672c]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u5468)/,ordinal:function(E,M){switch(M){case"d":case"D":case"DDD":return E+"\u65e5";case"M":return E+"\u6708";case"w":case"W":return E+"\u5468";default:return E}},relativeTime:{future:"%s\u540e",past:"%s\u524d",s:"\u51e0\u79d2",ss:"%d \u79d2",m:"1 \u5206\u949f",mm:"%d \u5206\u949f",h:"1 \u5c0f\u65f6",hh:"%d \u5c0f\u65f6",d:"1 \u5929",dd:"%d \u5929",w:"1 \u5468",ww:"%d \u5468",M:"1 \u4e2a\u6708",MM:"%d \u4e2a\u6708",y:"1 \u5e74",yy:"%d \u5e74"},week:{dow:1,doy:4}})}(x(5439))},8867:function(Y,z,x){!function(w){"use strict";w.defineLocale("zh-hk",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(E,M){return 12===E&&(E=0),"\u51cc\u6668"===M||"\u65e9\u4e0a"===M||"\u4e0a\u5348"===M?E:"\u4e2d\u5348"===M?E>=11?E:E+12:"\u4e0b\u5348"===M||"\u665a\u4e0a"===M?E+12:void 0},meridiem:function(E,M,S){var k=100*E+M;return k<600?"\u51cc\u6668":k<900?"\u65e9\u4e0a":k<1200?"\u4e0a\u5348":1200===k?"\u4e2d\u5348":k<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:"[\u4e0b]ddddLT",lastDay:"[\u6628\u5929]LT",lastWeek:"[\u4e0a]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(E,M){switch(M){case"d":case"D":case"DDD":return E+"\u65e5";case"M":return E+"\u6708";case"w":case"W":return E+"\u9031";default:return E}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(x(5439))},1133:function(Y,z,x){!function(w){"use strict";w.defineLocale("zh-mo",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"D/M/YYYY",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(E,M){return 12===E&&(E=0),"\u51cc\u6668"===M||"\u65e9\u4e0a"===M||"\u4e0a\u5348"===M?E:"\u4e2d\u5348"===M?E>=11?E:E+12:"\u4e0b\u5348"===M||"\u665a\u4e0a"===M?E+12:void 0},meridiem:function(E,M,S){var k=100*E+M;return k<600?"\u51cc\u6668":k<900?"\u65e9\u4e0a":k<1130?"\u4e0a\u5348":k<1230?"\u4e2d\u5348":k<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(E,M){switch(M){case"d":case"D":case"DDD":return E+"\u65e5";case"M":return E+"\u6708";case"w":case"W":return E+"\u9031";default:return E}},relativeTime:{future:"%s\u5167",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(x(5439))},3291:function(Y,z,x){!function(w){"use strict";w.defineLocale("zh-tw",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(E,M){return 12===E&&(E=0),"\u51cc\u6668"===M||"\u65e9\u4e0a"===M||"\u4e0a\u5348"===M?E:"\u4e2d\u5348"===M?E>=11?E:E+12:"\u4e0b\u5348"===M||"\u665a\u4e0a"===M?E+12:void 0},meridiem:function(E,M,S){var k=100*E+M;return k<600?"\u51cc\u6668":k<900?"\u65e9\u4e0a":k<1130?"\u4e0a\u5348":k<1230?"\u4e2d\u5348":k<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(E,M){switch(M){case"d":case"D":case"DDD":return E+"\u65e5";case"M":return E+"\u6708";case"w":case"W":return E+"\u9031";default:return E}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(x(5439))},5439:function(Y,z,x){(Y=x.nmd(Y)).exports=function(){"use strict";var w,me;function i(){return w.apply(null,arguments)}function M(T){return T instanceof Array||"[object Array]"===Object.prototype.toString.call(T)}function S(T){return null!=T&&"[object Object]"===Object.prototype.toString.call(T)}function k(T,H){return Object.prototype.hasOwnProperty.call(T,H)}function L(T){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(T).length;var H;for(H in T)if(k(T,H))return!1;return!0}function F(T){return void 0===T}function U(T){return"number"==typeof T||"[object Number]"===Object.prototype.toString.call(T)}function J(T){return T instanceof Date||"[object Date]"===Object.prototype.toString.call(T)}function Q(T,H){var j,I=[],W=T.length;for(j=0;j>>0;for(j=0;j0)for(I=0;I=0?I?"+":"":"-")+Math.pow(10,Math.max(0,H-j.length)).toString().substr(1)+j}var Jt=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Qe=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,an={},Tn={};function ze(T,H,I,j){var W=j;"string"==typeof j&&(W=function(){return this[j]()}),T&&(Tn[T]=W),H&&(Tn[H[0]]=function(){return Lt(W.apply(this,arguments),H[1],H[2])}),I&&(Tn[I]=function(){return this.localeData().ordinal(W.apply(this,arguments),T)})}function Qt(T){return T.match(/\[[\s\S]/)?T.replace(/^\[|\]$/g,""):T.replace(/\\/g,"")}function Si(T,H){return T.isValid()?(H=sa(H,T.localeData()),an[H]=an[H]||function _r(T){var I,j,H=T.match(Jt);for(I=0,j=H.length;I=0&&Qe.test(T);)T=T.replace(Qe,j),Qe.lastIndex=0,I-=1;return T}var br={};function Wt(T,H){var I=T.toLowerCase();br[I]=br[I+"s"]=br[H]=T}function sn(T){return"string"==typeof T?br[T]||br[T.toLowerCase()]:void 0}function zo(T){var I,j,H={};for(j in T)k(T,j)&&(I=sn(j))&&(H[I]=T[j]);return H}var sr={};function Ut(T,H){sr[T]=H}function ae(T){return T%4==0&&T%100!=0||T%400==0}function te(T){return T<0?Math.ceil(T)||0:Math.floor(T)}function de(T){var H=+T,I=0;return 0!==H&&isFinite(H)&&(I=te(H)),I}function ke(T,H){return function(I){return null!=I?(St(this,T,I),i.updateOffset(this,H),this):ut(this,T)}}function ut(T,H){return T.isValid()?T._d["get"+(T._isUTC?"UTC":"")+H]():NaN}function St(T,H,I){T.isValid()&&!isNaN(I)&&("FullYear"===H&&ae(T.year())&&1===T.month()&&29===T.date()?(I=de(I),T._d["set"+(T._isUTC?"UTC":"")+H](I,T.month(),Te(I,T.month()))):T._d["set"+(T._isUTC?"UTC":"")+H](I))}var Ki,Ri=/\d/,Et=/\d\d/,Ln=/\d{3}/,_t=/\d{4}/,zt=/[+-]?\d{6}/,gt=/\d\d?/,qn=/\d\d\d\d?/,Br=/\d\d\d\d\d\d?/,Yi=/\d{1,3}/,Vr=/\d{1,4}/,yr=/[+-]?\d{1,6}/,or=/\d+/,oa=/[+-]?\d+/,wd=/Z|[+-]\d\d:?\d\d/gi,ms=/Z|[+-]\d\d(?::?\d\d)?/gi,Wi=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function Ye(T,H,I){Ki[T]=he(H)?H:function(j,W){return j&&I?I:H}}function Li(T,H){return k(Ki,T)?Ki[T](H._strict,H._locale):new RegExp(function qe(T){return rt(T.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(H,I,j,W,se){return I||j||W||se}))}(T))}function rt(T){return T.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}Ki={};var Zt={};function Ae(T,H){var I,W,j=H;for("string"==typeof T&&(T=[T]),U(H)&&(j=function(se,ye){ye[H]=de(se)}),W=T.length,I=0;I68?1900:2e3)};var Yr=ke("FullYear",!0);function En(T,H,I,j,W,se,ye){var ot;return T<100&&T>=0?(ot=new Date(T+400,H,I,j,W,se,ye),isFinite(ot.getFullYear())&&ot.setFullYear(T)):ot=new Date(T,H,I,j,W,se,ye),ot}function ua(T){var H,I;return T<100&&T>=0?((I=Array.prototype.slice.call(arguments))[0]=T+400,H=new Date(Date.UTC.apply(null,I)),isFinite(H.getUTCFullYear())&&H.setUTCFullYear(T)):H=new Date(Date.UTC.apply(null,arguments)),H}function Qs(T,H,I){var j=7+H-I;return-(7+ua(T,0,j).getUTCDay()-H)%7+j-1}function gs(T,H,I,j,W){var Ht,si,ot=1+7*(H-1)+(7+I-j)%7+Qs(T,j,W);return ot<=0?si=Gn(Ht=T-1)+ot:ot>Gn(T)?(Ht=T+1,si=ot-Gn(T)):(Ht=T,si=ot),{year:Ht,dayOfYear:si}}function ha(T,H,I){var se,ye,j=Qs(T.year(),H,I),W=Math.floor((T.dayOfYear()-j-1)/7)+1;return W<1?se=W+Wn(ye=T.year()-1,H,I):W>Wn(T.year(),H,I)?(se=W-Wn(T.year(),H,I),ye=T.year()+1):(ye=T.year(),se=W),{week:se,year:ye}}function Wn(T,H,I){var j=Qs(T,H,I),W=Qs(T+1,H,I);return(Gn(T)-j+W)/7}ze("w",["ww",2],"wo","week"),ze("W",["WW",2],"Wo","isoWeek"),Wt("week","w"),Wt("isoWeek","W"),Ut("week",5),Ut("isoWeek",5),Ye("w",gt),Ye("ww",gt,Et),Ye("W",gt),Ye("WW",gt,Et),oi(["w","ww","W","WW"],function(T,H,I,j){H[j.substr(0,1)]=de(T)});function Ad(T,H){return T.slice(H,7).concat(T.slice(0,H))}ze("d",0,"do","day"),ze("dd",0,0,function(T){return this.localeData().weekdaysMin(this,T)}),ze("ddd",0,0,function(T){return this.localeData().weekdaysShort(this,T)}),ze("dddd",0,0,function(T){return this.localeData().weekdays(this,T)}),ze("e",0,0,"weekday"),ze("E",0,0,"isoWeekday"),Wt("day","d"),Wt("weekday","e"),Wt("isoWeekday","E"),Ut("day",11),Ut("weekday",11),Ut("isoWeekday",11),Ye("d",gt),Ye("e",gt),Ye("E",gt),Ye("dd",function(T,H){return H.weekdaysMinRegex(T)}),Ye("ddd",function(T,H){return H.weekdaysShortRegex(T)}),Ye("dddd",function(T,H){return H.weekdaysRegex(T)}),oi(["dd","ddd","dddd"],function(T,H,I,j){var W=I._locale.weekdaysParse(T,j,I._strict);null!=W?H.d=W:ie(I).invalidWeekday=T}),oi(["d","e","E"],function(T,H,I,j){H[j]=de(T)});var yt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),ec="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),lh="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Fa=Wi,fi=Wi,qo=Wi;function pa(T,H,I){var j,W,se,ye=T.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],j=0;j<7;++j)se=le([2e3,1]).day(j),this._minWeekdaysParse[j]=this.weekdaysMin(se,"").toLocaleLowerCase(),this._shortWeekdaysParse[j]=this.weekdaysShort(se,"").toLocaleLowerCase(),this._weekdaysParse[j]=this.weekdays(se,"").toLocaleLowerCase();return I?"dddd"===H?-1!==(W=it.call(this._weekdaysParse,ye))?W:null:"ddd"===H?-1!==(W=it.call(this._shortWeekdaysParse,ye))?W:null:-1!==(W=it.call(this._minWeekdaysParse,ye))?W:null:"dddd"===H?-1!==(W=it.call(this._weekdaysParse,ye))||-1!==(W=it.call(this._shortWeekdaysParse,ye))||-1!==(W=it.call(this._minWeekdaysParse,ye))?W:null:"ddd"===H?-1!==(W=it.call(this._shortWeekdaysParse,ye))||-1!==(W=it.call(this._weekdaysParse,ye))||-1!==(W=it.call(this._minWeekdaysParse,ye))?W:null:-1!==(W=it.call(this._minWeekdaysParse,ye))||-1!==(W=it.call(this._weekdaysParse,ye))||-1!==(W=it.call(this._shortWeekdaysParse,ye))?W:null}function Wo(){function T(Zi,Bn){return Bn.length-Zi.length}var se,ye,ot,Ht,si,H=[],I=[],j=[],W=[];for(se=0;se<7;se++)ye=le([2e3,1]).day(se),ot=rt(this.weekdaysMin(ye,"")),Ht=rt(this.weekdaysShort(ye,"")),si=rt(this.weekdays(ye,"")),H.push(ot),I.push(Ht),j.push(si),W.push(ot),W.push(Ht),W.push(si);H.sort(T),I.sort(T),j.sort(T),W.sort(T),this._weekdaysRegex=new RegExp("^("+W.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+j.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+I.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+H.join("|")+")","i")}function io(){return this.hours()%12||12}function on(T,H){ze(T,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),H)})}function ja(T,H){return H._meridiemParse}ze("H",["HH",2],0,"hour"),ze("h",["hh",2],0,io),ze("k",["kk",2],0,function Td(){return this.hours()||24}),ze("hmm",0,0,function(){return""+io.apply(this)+Lt(this.minutes(),2)}),ze("hmmss",0,0,function(){return""+io.apply(this)+Lt(this.minutes(),2)+Lt(this.seconds(),2)}),ze("Hmm",0,0,function(){return""+this.hours()+Lt(this.minutes(),2)}),ze("Hmmss",0,0,function(){return""+this.hours()+Lt(this.minutes(),2)+Lt(this.seconds(),2)}),on("a",!0),on("A",!1),Wt("hour","h"),Ut("hour",13),Ye("a",ja),Ye("A",ja),Ye("H",gt),Ye("h",gt),Ye("k",gt),Ye("HH",gt,Et),Ye("hh",gt,Et),Ye("kk",gt,Et),Ye("hmm",qn),Ye("hmmss",Br),Ye("Hmm",qn),Ye("Hmmss",Br),Ae(["H","HH"],3),Ae(["k","kk"],function(T,H,I){var j=de(T);H[3]=24===j?0:j}),Ae(["a","A"],function(T,H,I){I._isPm=I._locale.isPM(T),I._meridiem=T}),Ae(["h","hh"],function(T,H,I){H[3]=de(T),ie(I).bigHour=!0}),Ae("hmm",function(T,H,I){var j=T.length-2;H[3]=de(T.substr(0,j)),H[4]=de(T.substr(j)),ie(I).bigHour=!0}),Ae("hmmss",function(T,H,I){var j=T.length-4,W=T.length-2;H[3]=de(T.substr(0,j)),H[4]=de(T.substr(j,2)),H[5]=de(T.substr(W)),ie(I).bigHour=!0}),Ae("Hmm",function(T,H,I){var j=T.length-2;H[3]=de(T.substr(0,j)),H[4]=de(T.substr(j))}),Ae("Hmmss",function(T,H,I){var j=T.length-4,W=T.length-2;H[3]=de(T.substr(0,j)),H[4]=de(T.substr(j,2)),H[5]=de(T.substr(W))});var ph=ke("Hours",!0);var fa,Ui={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Mn,monthsShort:Nr,week:{dow:0,doy:6},weekdays:yt,weekdaysMin:lh,weekdaysShort:ec,meridiemParse:/[ap]\.?m?\.?/i},Ci={},rc={};function $n(T,H){var I,j=Math.min(T.length,H.length);for(I=0;I0;){if(W=mn(se.slice(0,I).join("-")))return W;if(j&&j.length>=I&&$n(se,j)>=I-1)break;I--}H++}return fa}(T)}function Ce(T){var H,I=T._a;return I&&-2===ie(T).overflow&&(H=I[1]<0||I[1]>11?1:I[2]<1||I[2]>Te(I[0],I[1])?2:I[3]<0||I[3]>24||24===I[3]&&(0!==I[4]||0!==I[5]||0!==I[6])?3:I[4]<0||I[4]>59?4:I[5]<0||I[5]>59?5:I[6]<0||I[6]>999?6:-1,ie(T)._overflowDayOfYear&&(H<0||H>2)&&(H=2),ie(T)._overflowWeeks&&-1===H&&(H=7),ie(T)._overflowWeekday&&-1===H&&(H=8),ie(T).overflow=H),T}var ge=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,nt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,wi=/Z|[+-]\d\d(?::?\d\d)?/,ni=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],li=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],jt=/^\/?Date\((-?\d+)/i,ln=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,mi={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function st(T){var H,I,se,ye,ot,Ht,j=T._i,W=ge.exec(j)||nt.exec(j),si=ni.length,Zi=li.length;if(W){for(ie(T).iso=!0,H=0,I=si;H7)&&(Ht=!0)):(se=T._locale._week.dow,ye=T._locale._week.doy,si=ha(hi(),se,ye),I=vi(H.gg,T._a[0],si.year),j=vi(H.w,si.week),null!=H.d?((W=H.d)<0||W>6)&&(Ht=!0):null!=H.e?(W=H.e+se,(H.e<0||H.e>6)&&(Ht=!0)):W=se),j<1||j>Wn(I,se,ye)?ie(T)._overflowWeeks=!0:null!=Ht?ie(T)._overflowWeekday=!0:(ot=gs(I,j,W,se,ye),T._a[0]=ot.year,T._dayOfYear=ot.dayOfYear)}(T),null!=T._dayOfYear&&(ye=vi(T._a[0],W[0]),(T._dayOfYear>Gn(ye)||0===T._dayOfYear)&&(ie(T)._overflowDayOfYear=!0),I=ua(ye,0,T._dayOfYear),T._a[1]=I.getUTCMonth(),T._a[2]=I.getUTCDate()),H=0;H<3&&null==T._a[H];++H)T._a[H]=j[H]=W[H];for(;H<7;H++)T._a[H]=j[H]=T._a[H]??(2===H?1:0);24===T._a[3]&&0===T._a[4]&&0===T._a[5]&&0===T._a[6]&&(T._nextDay=!0,T._a[3]=0),T._d=(T._useUTC?ua:En).apply(null,j),se=T._useUTC?T._d.getUTCDay():T._d.getDay(),null!=T._tzm&&T._d.setUTCMinutes(T._d.getUTCMinutes()-T._tzm),T._nextDay&&(T._a[3]=24),T._w&&typeof T._w.d<"u"&&T._w.d!==se&&(ie(T).weekdayMismatch=!0)}}function $o(T){if(T._f!==i.ISO_8601)if(T._f!==i.RFC_2822){T._a=[],ie(T).empty=!0;var I,j,W,se,ye,si,Zi,H=""+T._i,ot=H.length,Ht=0;for(Zi=(W=sa(T._f,T._locale).match(Jt)||[]).length,I=0;I0&&ie(T).unusedInput.push(ye),H=H.slice(H.indexOf(j)+j.length),Ht+=j.length),Tn[se]?(j?ie(T).empty=!1:ie(T).unusedTokens.push(se),ii(se,j,T)):T._strict&&!j&&ie(T).unusedTokens.push(se);ie(T).charsLeftOver=ot-Ht,H.length>0&&ie(T).unusedInput.push(H),T._a[3]<=12&&!0===ie(T).bigHour&&T._a[3]>0&&(ie(T).bigHour=void 0),ie(T).parsedDateParts=T._a.slice(0),ie(T).meridiem=T._meridiem,T._a[3]=function uf(T,H,I){var j;return null==I?H:null!=T.meridiemHour?T.meridiemHour(H,I):(null!=T.isPM&&((j=T.isPM(I))&&H<12&&(H+=12),!j&&12===H&&(H=0)),H)}(T._locale,T._a[3],T._meridiem),null!==(si=ie(T).era)&&(T._a[0]=T._locale.erasConvertYear(si,T._a[0])),Dt(T),Ce(T)}else dr(T);else st(T)}function Di(T){var H=T._i,I=T._f;return T._locale=T._locale||$(T._l),null===H||void 0===I&&""===H?ve({nullInput:!0}):("string"==typeof H&&(T._i=H=T._locale.preparse(H)),Ee(H)?new xe(Ce(H)):(J(H)?T._d=H:M(I)?function Nt(T){var H,I,j,W,se,ye,ot=!1,Ht=T._f.length;if(0===Ht)return ie(T).invalidFormat=!0,void(T._d=new Date(NaN));for(W=0;Wthis?this:T:ve()});function lc(T,H){var I,j;if(1===H.length&&M(H[0])&&(H=H[0]),!H.length)return hi();for(I=H[0],j=1;j=0?new Date(T+400,H,I)-Zr:new Date(T,H,I).valueOf()}function Cc(T,H,I){return T<100&&T>=0?Date.UTC(T+400,H,I)-Zr:Date.UTC(T,H,I)}function Ah(T,H){return H.erasAbbrRegex(T)}function vh(){var W,se,T=[],H=[],I=[],j=[],ye=this.eras();for(W=0,se=ye.length;W(se=Wn(T,j,W))&&(H=se),sl.call(this,T,H,I,j,W))}function sl(T,H,I,j,W){var se=gs(T,H,I,j,W),ye=ua(se.year,0,se.dayOfYear);return this.year(ye.getUTCFullYear()),this.month(ye.getUTCMonth()),this.date(ye.getUTCDate()),this}ze("N",0,0,"eraAbbr"),ze("NN",0,0,"eraAbbr"),ze("NNN",0,0,"eraAbbr"),ze("NNNN",0,0,"eraName"),ze("NNNNN",0,0,"eraNarrow"),ze("y",["y",1],"yo","eraYear"),ze("y",["yy",2],0,"eraYear"),ze("y",["yyy",3],0,"eraYear"),ze("y",["yyyy",4],0,"eraYear"),Ye("N",Ah),Ye("NN",Ah),Ye("NNN",Ah),Ye("NNNN",function d_(T,H){return H.erasNameRegex(T)}),Ye("NNNNN",function rl(T,H){return H.erasNarrowRegex(T)}),Ae(["N","NN","NNN","NNNN","NNNNN"],function(T,H,I,j){var W=I._locale.erasParse(T,j,I._strict);W?ie(I).era=W:ie(I).invalidEra=T}),Ye("y",or),Ye("yy",or),Ye("yyy",or),Ye("yyyy",or),Ye("yo",function u_(T,H){return H._eraYearOrdinalRegex||or}),Ae(["y","yy","yyy","yyyy"],0),Ae(["yo"],function(T,H,I,j){var W;I._locale._eraYearOrdinalRegex&&(W=T.match(I._locale._eraYearOrdinalRegex)),H[0]=I._locale.eraYearOrdinalParse?I._locale.eraYearOrdinalParse(T,W):parseInt(T,10)}),ze(0,["gg",2],0,function(){return this.weekYear()%100}),ze(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Bi("gggg","weekYear"),Bi("ggggg","weekYear"),Bi("GGGG","isoWeekYear"),Bi("GGGGG","isoWeekYear"),Wt("weekYear","gg"),Wt("isoWeekYear","GG"),Ut("weekYear",1),Ut("isoWeekYear",1),Ye("G",oa),Ye("g",oa),Ye("GG",gt,Et),Ye("gg",gt,Et),Ye("GGGG",Vr,_t),Ye("gggg",Vr,_t),Ye("GGGGG",yr,zt),Ye("ggggg",yr,zt),oi(["gggg","ggggg","GGGG","GGGGG"],function(T,H,I,j){H[j.substr(0,2)]=de(T)}),oi(["gg","GG"],function(T,H,I,j){H[j]=i.parseTwoDigitYear(T)}),ze("Q",0,"Qo","quarter"),Wt("quarter","Q"),Ut("quarter",7),Ye("Q",Ri),Ae("Q",function(T,H){H[1]=3*(de(T)-1)}),ze("D",["DD",2],"Do","date"),Wt("date","D"),Ut("date",9),Ye("D",gt),Ye("DD",gt,Et),Ye("Do",function(T,H){return T?H._dayOfMonthOrdinalParse||H._ordinalParse:H._dayOfMonthOrdinalParseLenient}),Ae(["D","DD"],2),Ae("Do",function(T,H){H[2]=de(T.match(gt)[0])});var Ud=ke("Date",!0);ze("DDD",["DDDD",3],"DDDo","dayOfYear"),Wt("dayOfYear","DDD"),Ut("dayOfYear",4),Ye("DDD",Yi),Ye("DDDD",Ln),Ae(["DDD","DDDD"],function(T,H,I){I._dayOfYear=de(T)}),ze("m",["mm",2],0,"minute"),Wt("minute","m"),Ut("minute",14),Ye("m",gt),Ye("mm",gt,Et),Ae(["m","mm"],4);var Th=ke("Minutes",!1);ze("s",["ss",2],0,"second"),Wt("second","s"),Ut("second",15),Ye("s",gt),Ye("ss",gt,Et),Ae(["s","ss"],5);var Jr,vc,h_=ke("Seconds",!1);for(ze("S",0,0,function(){return~~(this.millisecond()/100)}),ze(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),ze(0,["SSS",3],0,"millisecond"),ze(0,["SSSS",4],0,function(){return 10*this.millisecond()}),ze(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),ze(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),ze(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),ze(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),ze(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),Wt("millisecond","ms"),Ut("millisecond",16),Ye("S",Yi,Ri),Ye("SS",Yi,Et),Ye("SSS",Yi,Ln),Jr="SSSS";Jr.length<=9;Jr+="S")Ye(Jr,or);function Hn(T,H){H[6]=de(1e3*("0."+T))}for(Jr="S";Jr.length<=9;Jr+="S")Ae(Jr,Hn);vc=ke("Milliseconds",!1),ze("z",0,0,"zoneAbbr"),ze("zz",0,0,"zoneName");var Ve=xe.prototype;function Mh(T){return T}Ve.add=yh,Ve.calendar=function bc(T,H){1===arguments.length&&(arguments[0]?Dd(arguments[0])?(T=arguments[0],H=void 0):el(arguments[0])&&(H=arguments[0],T=void 0):(T=void 0,H=void 0));var I=T||hi(),j=dn(I,this).startOf("day"),W=i.calendarFormat(this,j)||"sameElse",se=H&&(he(H[W])?H[W].call(this,I):H[W]);return this.format(se||this.localeData().calendar(W,this,hi(I)))},Ve.clone=function tl(){return new xe(this)},Ve.diff=function wh(T,H,I){var j,W,se;if(!this.isValid())return NaN;if(!(j=dn(T,this)).isValid())return NaN;switch(W=6e4*(j.utcOffset()-this.utcOffset()),H=sn(H)){case"year":se=il(this,j)/12;break;case"month":se=il(this,j);break;case"quarter":se=il(this,j)/3;break;case"second":se=(this-j)/1e3;break;case"minute":se=(this-j)/6e4;break;case"hour":se=(this-j)/36e5;break;case"day":se=(this-j-W)/864e5;break;case"week":se=(this-j-W)/6048e5;break;default:se=this-j}return I?se:te(se)},Ve.endOf=function lo(T){var H,I;if(void 0===(T=sn(T))||"millisecond"===T||!this.isValid())return this;switch(I=this._isUTC?Cc:Od,T){case"year":H=I(this.year()+1,0,1)-1;break;case"quarter":H=I(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":H=I(this.year(),this.month()+1,1)-1;break;case"week":H=I(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":H=I(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":H=I(this.year(),this.month(),this.date()+1)-1;break;case"hour":H=this._d.valueOf(),H+=za-vr(H+(this._isUTC?0:this.utcOffset()*Ar),za)-1;break;case"minute":H=this._d.valueOf(),H+=Ar-vr(H,Ar)-1;break;case"second":H=this._d.valueOf(),H+=1e3-vr(H,1e3)-1}return this._d.setTime(H),i.updateOffset(this,!0),this},Ve.format=function bs(T){T||(T=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var H=Si(this,T);return this.localeData().postformat(H)},Ve.from=function so(T,H){return this.isValid()&&(Ee(T)&&T.isValid()||hi(T).isValid())?Ti({to:this,from:T}).locale(this.locale()).humanize(!H):this.localeData().invalidDate()},Ve.fromNow=function Rd(T){return this.from(hi(),T)},Ve.to=function $r(T,H){return this.isValid()&&(Ee(T)&&T.isValid()||hi(T).isValid())?Ti({from:this,to:T}).locale(this.locale()).humanize(!H):this.localeData().invalidDate()},Ve.toNow=function oo(T){return this.to(hi(),T)},Ve.get=function Xe(T){return he(this[T=sn(T)])?this[T]():this},Ve.invalidAt=function Cs(){return ie(this).overflow},Ve.isAfter=function _s(T,H){var I=Ee(T)?T:hi(T);return!(!this.isValid()||!I.isValid())&&("millisecond"===(H=sn(H)||"millisecond")?this.valueOf()>I.valueOf():I.valueOf()9999?Si(I,H?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):he(Date.prototype.toISOString)?H?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",Si(I,"Z")):Si(I,H?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Ve.inspect=function _f(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var I,j,T="moment",H="";return this.isLocal()||(T=0===this.utcOffset()?"moment.utc":"moment.parseZone",H="Z"),I="["+T+'("]',j=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(I+j+"-MM-DD[T]HH:mm:ss.SSS"+H+'[")]')},typeof Symbol<"u"&&null!=Symbol.for&&(Ve[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Ve.toJSON=function Fd(){return this.isValid()?this.toISOString():null},Ve.toString=function gf(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Ve.unix=function Bd(){return Math.floor(this.valueOf()/1e3)},Ve.valueOf=function yf(){return this._d.valueOf()-6e4*(this._offset||0)},Ve.creationData=function jd(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Ve.eraName=function wc(){var T,H,I,j=this.localeData().eras();for(T=0,H=j.length;Tthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Ve.isLocal=function Ko(){return!!this.isValid()&&!this._isUTC},Ve.isUtcOffset=function fc(){return!!this.isValid()&&this._isUTC},Ve.isUtc=Xo,Ve.isUTC=Xo,Ve.zoneAbbr=function Tc(){return this._isUTC?"UTC":""},Ve.zoneName=function Za(){return this._isUTC?"Coordinated Universal Time":""},Ve.dates=Le("dates accessor is deprecated. Use date instead.",Ud),Ve.months=Le("months accessor is deprecated. Use month instead",lr),Ve.years=Le("years accessor is deprecated. Use year instead",Yr),Ve.zone=Le("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function Gr(T,H){return null!=T?("string"!=typeof T&&(T=-T),this.utcOffset(T,H),this):-this.utcOffset()}),Ve.isDSTShifted=Le("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function pc(){if(!F(this._isDSTShifted))return this._isDSTShifted;var H,T={};return He(T,this),(T=Di(T))._a?(H=T._isUTC?le(T._a):hi(T._a),this._isDSTShifted=this.isValid()&&function fh(T,H,I){var ye,j=Math.min(T.length,H.length),W=Math.abs(T.length-H.length),se=0;for(ye=0;ye0):this._isDSTShifted=!1,this._isDSTShifted});var qt=_e.prototype;function po(T,H,I,j){var W=$(),se=le().set(j,H);return W[I](se,T)}function zd(T,H,I){if(U(T)&&(H=T,T=void 0),T=T||"",null!=H)return po(T,H,I,"month");var j,W=[];for(j=0;j<12;j++)W[j]=po(T,j,I,"month");return W}function xc(T,H,I,j){"boolean"==typeof T?(U(H)&&(I=H,H=void 0),H=H||""):(I=H=T,T=!1,U(H)&&(I=H,H=void 0),H=H||"");var ye,W=$(),se=T?W._week.dow:0,ot=[];if(null!=I)return po(H,(I+se)%7,j,"day");for(ye=0;ye<7;ye++)ot[ye]=po(H,(ye+se)%7,j,"day");return ot}qt.calendar=function Mt(T,H,I){var j=this._calendar[T]||this._calendar.sameElse;return he(j)?j.call(H,I):j},qt.longDateFormat=function Ws(T){var H=this._longDateFormat[T],I=this._longDateFormat[T.toUpperCase()];return H||!I?H:(this._longDateFormat[T]=I.match(Jt).map(function(j){return"MMMM"===j||"MM"===j||"DD"===j||"dddd"===j?j.slice(1):j}).join(""),this._longDateFormat[T])},qt.invalidDate=function $s(){return this._invalidDate},qt.ordinal=function fs(T){return this._ordinal.replace("%d",T)},qt.preparse=Mh,qt.postformat=Mh,qt.relativeTime=function dt(T,H,I,j){var W=this._relativeTime[I];return he(W)?W(T,H,I,j):W.replace(/%d/i,T)},qt.pastFuture=function Qi(T,H){var I=this._relativeTime[T>0?"future":"past"];return he(I)?I(H):I.replace(/%s/i,H)},qt.set=function fe(T){var H,I;for(I in T)k(T,I)&&(he(H=T[I])?this[I]=H:this["_"+I]=H);this._config=T,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},qt.eras=function Tr(T,H){var I,j,W,se=this._eras||$("en")._eras;for(I=0,j=se.length;I=0)return se[j]},qt.erasConvertYear=function Wa(T,H){var I=T.since<=T.until?1:-1;return void 0===H?i(T.since).year():i(T.since).year()+(H-T.offset)*I},qt.erasAbbrRegex=function l_(T){return k(this,"_erasAbbrRegex")||vh.call(this),T?this._erasAbbrRegex:this._erasRegex},qt.erasNameRegex=function o_(T){return k(this,"_erasNameRegex")||vh.call(this),T?this._erasNameRegex:this._erasRegex},qt.erasNarrowRegex=function c_(T){return k(this,"_erasNarrowRegex")||vh.call(this),T?this._erasNarrowRegex:this._erasRegex},qt.months=function Cr(T,H){return T?M(this._months)?this._months[T.month()]:this._months[(this._months.isFormat||Js).test(H)?"format":"standalone"][T.month()]:M(this._months)?this._months:this._months.standalone},qt.monthsShort=function pi(T,H){return T?M(this._monthsShort)?this._monthsShort[T.month()]:this._monthsShort[Js.test(H)?"format":"standalone"][T.month()]:M(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},qt.monthsParse=function ca(T,H,I){var j,W,se;if(this._monthsParseExact)return Fr.call(this,T,H,I);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),j=0;j<12;j++){if(W=le([2e3,j]),I&&!this._longMonthsParse[j]&&(this._longMonthsParse[j]=new RegExp("^"+this.months(W,"").replace(".","")+"$","i"),this._shortMonthsParse[j]=new RegExp("^"+this.monthsShort(W,"").replace(".","")+"$","i")),!I&&!this._monthsParse[j]&&(se="^"+this.months(W,"")+"|^"+this.monthsShort(W,""),this._monthsParse[j]=new RegExp(se.replace(".",""),"i")),I&&"MMMM"===H&&this._longMonthsParse[j].test(T))return j;if(I&&"MMM"===H&&this._shortMonthsParse[j].test(T))return j;if(!I&&this._monthsParse[j].test(T))return j}},qt.monthsRegex=function Xi(T){return this._monthsParseExact?(k(this,"_monthsRegex")||Sn.call(this),T?this._monthsStrictRegex:this._monthsRegex):(k(this,"_monthsRegex")||(this._monthsRegex=mt),this._monthsStrictRegex&&T?this._monthsStrictRegex:this._monthsRegex)},qt.monthsShortRegex=function jr(T){return this._monthsParseExact?(k(this,"_monthsRegex")||Sn.call(this),T?this._monthsShortStrictRegex:this._monthsShortRegex):(k(this,"_monthsShortRegex")||(this._monthsShortRegex=Xt),this._monthsShortStrictRegex&&T?this._monthsShortStrictRegex:this._monthsShortRegex)},qt.week=function ui(T){return ha(T,this._week.dow,this._week.doy).week},qt.firstDayOfYear=function Ks(){return this._week.doy},qt.firstDayOfWeek=function tt(){return this._week.dow},qt.weekdays=function ch(T,H){var I=M(this._weekdays)?this._weekdays:this._weekdays[T&&!0!==T&&this._weekdays.isFormat.test(H)?"format":"standalone"];return!0===T?Ad(I,this._week.dow):T?I[T.day()]:I},qt.weekdaysMin=function uh(T){return!0===T?Ad(this._weekdaysMin,this._week.dow):T?this._weekdaysMin[T.day()]:this._weekdaysMin},qt.weekdaysShort=function dh(T){return!0===T?Ad(this._weekdaysShort,this._week.dow):T?this._weekdaysShort[T.day()]:this._weekdaysShort},qt.weekdaysParse=function vd(T,H,I){var j,W,se;if(this._weekdaysParseExact)return pa.call(this,T,H,I);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),j=0;j<7;j++){if(W=le([2e3,1]).day(j),I&&!this._fullWeekdaysParse[j]&&(this._fullWeekdaysParse[j]=new RegExp("^"+this.weekdays(W,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[j]=new RegExp("^"+this.weekdaysShort(W,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[j]=new RegExp("^"+this.weekdaysMin(W,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[j]||(se="^"+this.weekdays(W,"")+"|^"+this.weekdaysShort(W,"")+"|^"+this.weekdaysMin(W,""),this._weekdaysParse[j]=new RegExp(se.replace(".",""),"i")),I&&"dddd"===H&&this._fullWeekdaysParse[j].test(T))return j;if(I&&"ddd"===H&&this._shortWeekdaysParse[j].test(T))return j;if(I&&"dd"===H&&this._minWeekdaysParse[j].test(T))return j;if(!I&&this._weekdaysParse[j].test(T))return j}},qt.weekdaysRegex=function Go(T){return this._weekdaysParseExact?(k(this,"_weekdaysRegex")||Wo.call(this),T?this._weekdaysStrictRegex:this._weekdaysRegex):(k(this,"_weekdaysRegex")||(this._weekdaysRegex=Fa),this._weekdaysStrictRegex&&T?this._weekdaysStrictRegex:this._weekdaysRegex)},qt.weekdaysShortRegex=function eo(T){return this._weekdaysParseExact?(k(this,"_weekdaysRegex")||Wo.call(this),T?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(k(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=fi),this._weekdaysShortStrictRegex&&T?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},qt.weekdaysMinRegex=function to(T){return this._weekdaysParseExact?(k(this,"_weekdaysRegex")||Wo.call(this),T?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(k(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=qo),this._weekdaysMinStrictRegex&&T?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},qt.isPM=function hh(T){return"p"===(T+"").toLowerCase().charAt(0)},qt.meridiem=function r_(T,H,I){return T>11?I?"pm":"PM":I?"am":"AM"},O("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(T){var H=T%10;return T+(1===de(T%100/10)?"th":1===H?"st":2===H?"nd":3===H?"rd":"th")}}),i.lang=Le("moment.lang is deprecated. Use moment.locale instead.",O),i.langData=Le("moment.langData is deprecated. Use moment.localeData instead.",$);var Pn=Math.abs;function Sh(T,H,I,j){var W=Ti(H,I);return T._milliseconds+=j*W._milliseconds,T._days+=j*W._days,T._months+=j*W._months,T._bubble()}function cl(T){return T<0?Math.floor(T):Math.ceil(T)}function Af(T){return 4800*T/146097}function zi(T){return 146097*T/4800}function xr(T){return function(){return this.as(T)}}var ul=xr("ms"),Gd=xr("s"),hr=xr("m"),Hh=xr("h"),Ec=xr("d"),hl=xr("w"),Ph=xr("M"),mo=xr("Q"),Dc=xr("y");function Qn(T){return function(){return this.isValid()?this._data[T]:NaN}}var go=Qn("milliseconds"),vf=Qn("seconds"),Tf=Qn("minutes"),Qr=Qn("hours"),ba=Qn("days"),xf=Qn("months"),f_=Qn("years");var ya=Math.round,fl={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Mf(T,H,I,j,W){return W.relativeTime(H||1,!!I,T,j)}var Ja=Math.abs;function ws(T){return(T>0)-(T<0)||+T}function Wd(){if(!this.isValid())return this.localeData().invalidDate();var j,W,se,ye,Ht,si,Zi,Bn,T=Ja(this._milliseconds)/1e3,H=Ja(this._days),I=Ja(this._months),ot=this.asSeconds();return ot?(j=te(T/60),W=te(j/60),T%=60,j%=60,se=te(I/12),I%=12,ye=T?T.toFixed(3).replace(/\.?0+$/,""):"",Ht=ot<0?"-":"",si=ws(this._months)!==ws(ot)?"-":"",Zi=ws(this._days)!==ws(ot)?"-":"",Bn=ws(this._milliseconds)!==ws(ot)?"-":"",Ht+"P"+(se?si+se+"Y":"")+(I?si+I+"M":"")+(H?Zi+H+"D":"")+(W||j||T?"T":"")+(W?Bn+W+"H":"")+(j?Bn+j+"M":"")+(T?Bn+ye+"S":"")):"P0D"}var Vt=Qo.prototype;return Vt.isValid=function Jo(){return this._isValid},Vt.abs=function wf(){var T=this._data;return this._milliseconds=Pn(this._milliseconds),this._days=Pn(this._days),this._months=Pn(this._months),T.milliseconds=Pn(T.milliseconds),T.seconds=Pn(T.seconds),T.minutes=Pn(T.minutes),T.hours=Pn(T.hours),T.months=Pn(T.months),T.years=Pn(T.years),this},Vt.add=function Eh(T,H){return Sh(this,T,H,1)},Vt.subtract=function qd(T,H){return Sh(this,T,H,-1)},Vt.as=function Sc(T){if(!this.isValid())return NaN;var H,I,j=this._milliseconds;if("month"===(T=sn(T))||"quarter"===T||"year"===T)switch(H=this._days+j/864e5,I=this._months+Af(H),T){case"month":return I;case"quarter":return I/3;case"year":return I/12}else switch(H=this._days+Math.round(zi(this._months)),T){case"week":return H/7+j/6048e5;case"day":return H+j/864e5;case"hour":return 24*H+j/36e5;case"minute":return 1440*H+j/6e4;case"second":return 86400*H+j/1e3;case"millisecond":return Math.floor(864e5*H)+j;default:throw new Error("Unknown unit "+T)}},Vt.asMilliseconds=ul,Vt.asSeconds=Gd,Vt.asMinutes=hr,Vt.asHours=Hh,Vt.asDays=Ec,Vt.asWeeks=hl,Vt.asMonths=Ph,Vt.asQuarters=mo,Vt.asYears=Dc,Vt.valueOf=function Dh(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*de(this._months/12):NaN},Vt._bubble=function dl(){var W,se,ye,ot,Ht,T=this._milliseconds,H=this._days,I=this._months,j=this._data;return T>=0&&H>=0&&I>=0||T<=0&&H<=0&&I<=0||(T+=864e5*cl(zi(I)+H),H=0,I=0),j.milliseconds=T%1e3,W=te(T/1e3),j.seconds=W%60,se=te(W/60),j.minutes=se%60,ye=te(se/60),j.hours=ye%24,H+=te(ye/24),I+=Ht=te(Af(H)),H-=cl(zi(Ht)),ot=te(I/12),I%=12,j.days=H,j.months=I,j.years=ot,this},Vt.clone=function kh(){return Ti(this)},Vt.get=function pl(T){return T=sn(T),this.isValid()?this[T+"s"]():NaN},Vt.milliseconds=go,Vt.seconds=vf,Vt.minutes=Tf,Vt.hours=Qr,Vt.days=ba,Vt.weeks=function Rh(){return te(this.days()/7)},Vt.months=xf,Vt.years=f_,Vt.humanize=function ml(T,H){if(!this.isValid())return this.localeData().invalidDate();var W,se,I=!1,j=fl;return"object"==typeof T&&(H=T,T=!1),"boolean"==typeof T&&(I=T),"object"==typeof H&&(j=Object.assign({},fl,H),null!=H.s&&null==H.ss&&(j.ss=H.s-1)),se=function m_(T,H,I,j){var W=Ti(T).abs(),se=ya(W.as("s")),ye=ya(W.as("m")),ot=ya(W.as("h")),Ht=ya(W.as("d")),si=ya(W.as("M")),Zi=ya(W.as("w")),Bn=ya(W.as("y")),Ca=se<=I.ss&&["s",se]||se0,Ca[4]=j,Mf.apply(null,Ca)}(this,!I,j,W=this.localeData()),I&&(se=W.pastFuture(+this,se)),W.postformat(se)},Vt.toISOString=Wd,Vt.toString=Wd,Vt.toJSON=Wd,Vt.locale=bf,Vt.localeData=Id,Vt.toIsoString=Le("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Wd),Vt.lang=Ld,ze("X",0,0,"unix"),ze("x",0,0,"valueOf"),Ye("x",oa),Ye("X",/[+-]?\d+(\.\d{1,3})?/),Ae("X",function(T,H,I){I._d=new Date(1e3*parseFloat(T))}),Ae("x",function(T,H,I){I._d=new Date(de(T))}),i.version="2.29.4",function E(T){w=T}(hi),i.fn=Ve,i.min=function cc(){return lc("isBefore",[].slice.call(arguments,0))},i.max=function dc(){return lc("isAfter",[].slice.call(arguments,0))},i.now=function(){return Date.now?Date.now():+new Date},i.utc=le,i.unix=function xh(T){return hi(1e3*T)},i.months=function Mc(T,H){return zd(T,H,"months")},i.isDate=J,i.locale=O,i.invalid=ve,i.duration=Ti,i.isMoment=Ee,i.weekdays=function p_(T,H,I){return xc(T,H,I,"weekdays")},i.parseZone=function ol(){return hi.apply(null,arguments).parseZone()},i.localeData=$,i.isDuration=qr,i.monthsShort=function ll(T,H){return zd(T,H,"monthsShort")},i.weekdaysMin=function fo(T,H,I){return xc(T,H,I,"weekdaysMin")},i.defineLocale=G,i.updateLocale=function B(T,H){if(null!=H){var I,j,W=Ui;null!=Ci[T]&&null!=Ci[T].parentLocale?Ci[T].set(we(Ci[T]._config,H)):(null!=(j=mn(T))&&(W=j._config),H=we(W,H),null==j&&(H.abbr=T),(I=new _e(H)).parentLocale=Ci[T],Ci[T]=I),O(T)}else null!=Ci[T]&&(null!=Ci[T].parentLocale?(Ci[T]=Ci[T].parentLocale,T===O()&&O(T)):null!=Ci[T]&&delete Ci[T]);return Ci[T]},i.locales=function ce(){return Ue(Ci)},i.weekdaysShort=function _a(T,H,I){return xc(T,H,I,"weekdaysShort")},i.normalizeUnits=sn,i.relativeTimeRounding=function Sf(T){return void 0===T?ya:"function"==typeof T&&(ya=T,!0)},i.relativeTimeThreshold=function _o(T,H){return void 0!==fl[T]&&(void 0===H?fl[T]:(fl[T]=H,"s"===T&&(fl.ss=H-1),!0))},i.calendarFormat=function _c(T,H){var I=T.diff(H,"days",!0);return I<-6?"sameElse":I<-1?"lastWeek":I<0?"lastDay":I<1?"sameDay":I<2?"nextDay":I<7?"nextWeek":"sameElse"},i.prototype=Ve,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},i}()},9751:(Y,z,x)=>{"use strict";x.d(z,{y:()=>F});var w=x(930),i=x(727),E=x(8822),M=x(9635),S=x(2416),k=x(576),L=x(2806);let F=(()=>{class ne{constructor(re){re&&(this._subscribe=re)}lift(re){const ie=new ne;return ie.source=this,ie.operator=re,ie}subscribe(re,ie,me){const be=function Q(ne){return ne&&ne instanceof w.Lv||function J(ne){return ne&&(0,k.m)(ne.next)&&(0,k.m)(ne.error)&&(0,k.m)(ne.complete)}(ne)&&(0,i.Nn)(ne)}(re)?re:new w.Hp(re,ie,me);return(0,L.x)(()=>{const{operator:ve,source:$e}=this;be.add(ve?ve.call(be,$e):$e?this._subscribe(be):this._trySubscribe(be))}),be}_trySubscribe(re){try{return this._subscribe(re)}catch(ie){re.error(ie)}}forEach(re,ie){return new(ie=U(ie))((me,be)=>{const ve=new w.Hp({next:$e=>{try{re($e)}catch(Je){be(Je),ve.unsubscribe()}},error:be,complete:me});this.subscribe(ve)})}_subscribe(re){var ie;return null===(ie=this.source)||void 0===ie?void 0:ie.subscribe(re)}[E.L](){return this}pipe(...re){return(0,M.U)(re)(this)}toPromise(re){return new(re=U(re))((ie,me)=>{let be;this.subscribe(ve=>be=ve,ve=>me(ve),()=>ie(be))})}}return ne.create=le=>new ne(le),ne})();function U(ne){var le;return null!==(le=ne??S.v.Promise)&&void 0!==le?le:Promise}},7579:(Y,z,x)=>{"use strict";x.d(z,{x:()=>L});var w=x(9751),i=x(727);const M=(0,x(3888).d)(U=>function(){U(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var S=x(8737),k=x(2806);let L=(()=>{class U extends w.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(Q){const ne=new F(this,this);return ne.operator=Q,ne}_throwIfClosed(){if(this.closed)throw new M}next(Q){(0,k.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const ne of this.currentObservers)ne.next(Q)}})}error(Q){(0,k.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=Q;const{observers:ne}=this;for(;ne.length;)ne.shift().error(Q)}})}complete(){(0,k.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:Q}=this;for(;Q.length;)Q.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var Q;return(null===(Q=this.observers)||void 0===Q?void 0:Q.length)>0}_trySubscribe(Q){return this._throwIfClosed(),super._trySubscribe(Q)}_subscribe(Q){return this._throwIfClosed(),this._checkFinalizedStatuses(Q),this._innerSubscribe(Q)}_innerSubscribe(Q){const{hasError:ne,isStopped:le,observers:re}=this;return ne||le?i.Lc:(this.currentObservers=null,re.push(Q),new i.w0(()=>{this.currentObservers=null,(0,S.P)(re,Q)}))}_checkFinalizedStatuses(Q){const{hasError:ne,thrownError:le,isStopped:re}=this;ne?Q.error(le):re&&Q.complete()}asObservable(){const Q=new w.y;return Q.source=this,Q}}return U.create=(J,Q)=>new F(J,Q),U})();class F extends L{constructor(J,Q){super(),this.destination=J,this.source=Q}next(J){var Q,ne;null===(ne=null===(Q=this.destination)||void 0===Q?void 0:Q.next)||void 0===ne||ne.call(Q,J)}error(J){var Q,ne;null===(ne=null===(Q=this.destination)||void 0===Q?void 0:Q.error)||void 0===ne||ne.call(Q,J)}complete(){var J,Q;null===(Q=null===(J=this.destination)||void 0===J?void 0:J.complete)||void 0===Q||Q.call(J)}_subscribe(J){var Q,ne;return null!==(ne=null===(Q=this.source)||void 0===Q?void 0:Q.subscribe(J))&&void 0!==ne?ne:i.Lc}}},930:(Y,z,x)=>{"use strict";x.d(z,{Hp:()=>me,Lv:()=>ne});var w=x(576),i=x(727),E=x(2416),M=x(7849),S=x(5032);const k=U("C",void 0,void 0);function U(He,xe,Ee){return{kind:He,value:xe,error:Ee}}var J=x(3410),Q=x(2806);class ne extends i.w0{constructor(xe){super(),this.isStopped=!1,xe?(this.destination=xe,(0,i.Nn)(xe)&&xe.add(this)):this.destination=Je}static create(xe,Ee,lt){return new me(xe,Ee,lt)}next(xe){this.isStopped?$e(function F(He){return U("N",He,void 0)}(xe),this):this._next(xe)}error(xe){this.isStopped?$e(function L(He){return U("E",void 0,He)}(xe),this):(this.isStopped=!0,this._error(xe))}complete(){this.isStopped?$e(k,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(xe){this.destination.next(xe)}_error(xe){try{this.destination.error(xe)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const le=Function.prototype.bind;function re(He,xe){return le.call(He,xe)}class ie{constructor(xe){this.partialObserver=xe}next(xe){const{partialObserver:Ee}=this;if(Ee.next)try{Ee.next(xe)}catch(lt){be(lt)}}error(xe){const{partialObserver:Ee}=this;if(Ee.error)try{Ee.error(xe)}catch(lt){be(lt)}else be(xe)}complete(){const{partialObserver:xe}=this;if(xe.complete)try{xe.complete()}catch(Ee){be(Ee)}}}class me extends ne{constructor(xe,Ee,lt){let Le;if(super(),(0,w.m)(xe)||!xe)Le={next:xe??void 0,error:Ee??void 0,complete:lt??void 0};else{let Be;this&&E.v.useDeprecatedNextContext?(Be=Object.create(xe),Be.unsubscribe=()=>this.unsubscribe(),Le={next:xe.next&&re(xe.next,Be),error:xe.error&&re(xe.error,Be),complete:xe.complete&&re(xe.complete,Be)}):Le=xe}this.destination=new ie(Le)}}function be(He){E.v.useDeprecatedSynchronousErrorHandling?(0,Q.O)(He):(0,M.h)(He)}function $e(He,xe){const{onStoppedNotification:Ee}=E.v;Ee&&J.z.setTimeout(()=>Ee(He,xe))}const Je={closed:!0,next:S.Z,error:function ve(He){throw He},complete:S.Z}},727:(Y,z,x)=>{"use strict";x.d(z,{Lc:()=>k,w0:()=>S,Nn:()=>L});var w=x(576);const E=(0,x(3888).d)(U=>function(Q){U(this),this.message=Q?`${Q.length} errors occurred during unsubscription:\n${Q.map((ne,le)=>`${le+1}) ${ne.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=Q});var M=x(8737);class S{constructor(J){this.initialTeardown=J,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let J;if(!this.closed){this.closed=!0;const{_parentage:Q}=this;if(Q)if(this._parentage=null,Array.isArray(Q))for(const re of Q)re.remove(this);else Q.remove(this);const{initialTeardown:ne}=this;if((0,w.m)(ne))try{ne()}catch(re){J=re instanceof E?re.errors:[re]}const{_finalizers:le}=this;if(le){this._finalizers=null;for(const re of le)try{F(re)}catch(ie){J=J??[],ie instanceof E?J=[...J,...ie.errors]:J.push(ie)}}if(J)throw new E(J)}}add(J){var Q;if(J&&J!==this)if(this.closed)F(J);else{if(J instanceof S){if(J.closed||J._hasParent(this))return;J._addParent(this)}(this._finalizers=null!==(Q=this._finalizers)&&void 0!==Q?Q:[]).push(J)}}_hasParent(J){const{_parentage:Q}=this;return Q===J||Array.isArray(Q)&&Q.includes(J)}_addParent(J){const{_parentage:Q}=this;this._parentage=Array.isArray(Q)?(Q.push(J),Q):Q?[Q,J]:J}_removeParent(J){const{_parentage:Q}=this;Q===J?this._parentage=null:Array.isArray(Q)&&(0,M.P)(Q,J)}remove(J){const{_finalizers:Q}=this;Q&&(0,M.P)(Q,J),J instanceof S&&J._removeParent(this)}}S.EMPTY=(()=>{const U=new S;return U.closed=!0,U})();const k=S.EMPTY;function L(U){return U instanceof S||U&&"closed"in U&&(0,w.m)(U.remove)&&(0,w.m)(U.add)&&(0,w.m)(U.unsubscribe)}function F(U){(0,w.m)(U)?U():U.unsubscribe()}},2416:(Y,z,x)=>{"use strict";x.d(z,{v:()=>w});const w={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9841:(Y,z,x)=>{"use strict";x.d(z,{a:()=>J});var w=x(9751),i=x(4742),E=x(2076),M=x(4671),S=x(3268),k=x(3269),L=x(1810),F=x(5403),U=x(9672);function J(...le){const re=(0,k.yG)(le),ie=(0,k.jO)(le),{args:me,keys:be}=(0,i.D)(le);if(0===me.length)return(0,E.D)([],re);const ve=new w.y(function Q(le,re,ie=M.y){return me=>{ne(re,()=>{const{length:be}=le,ve=new Array(be);let $e=be,Je=be;for(let He=0;He{const xe=(0,E.D)(le[He],re);let Ee=!1;xe.subscribe((0,F.x)(me,lt=>{ve[He]=lt,Ee||(Ee=!0,Je--),Je||me.next(ie(ve.slice()))},()=>{--$e||me.complete()}))},me)},me)}}(me,re,be?$e=>(0,L.n)(be,$e):M.y));return ie?ve.pipe((0,S.Z)(ie)):ve}function ne(le,re,ie){le?(0,U.f)(ie,le,re):re()}},7272:(Y,z,x)=>{"use strict";x.d(z,{z:()=>S});var w=x(8189),E=x(3269),M=x(2076);function S(...k){return function i(){return(0,w.J)(1)}()((0,M.D)(k,(0,E.yG)(k)))}},515:(Y,z,x)=>{"use strict";x.d(z,{E:()=>i});const i=new(x(9751).y)(S=>S.complete())},2076:(Y,z,x)=>{"use strict";x.d(z,{D:()=>lt});var w=x(8421),i=x(9672),E=x(4482),M=x(5403);function S(Le,Be=0){return(0,E.e)((Ie,he)=>{Ie.subscribe((0,M.x)(he,fe=>(0,i.f)(he,Le,()=>he.next(fe),Be),()=>(0,i.f)(he,Le,()=>he.complete(),Be),fe=>(0,i.f)(he,Le,()=>he.error(fe),Be)))})}function k(Le,Be=0){return(0,E.e)((Ie,he)=>{he.add(Le.schedule(()=>Ie.subscribe(he),Be))})}var U=x(9751),Q=x(2202),ne=x(576);function re(Le,Be){if(!Le)throw new Error("Iterable cannot be null");return new U.y(Ie=>{(0,i.f)(Ie,Be,()=>{const he=Le[Symbol.asyncIterator]();(0,i.f)(Ie,Be,()=>{he.next().then(fe=>{fe.done?Ie.complete():Ie.next(fe.value)})},0,!0)})})}var ie=x(3670),me=x(8239),be=x(1144),ve=x(6495),$e=x(2206),Je=x(4532),He=x(3260);function lt(Le,Be){return Be?function Ee(Le,Be){if(null!=Le){if((0,ie.c)(Le))return function L(Le,Be){return(0,w.Xf)(Le).pipe(k(Be),S(Be))}(Le,Be);if((0,be.z)(Le))return function J(Le,Be){return new U.y(Ie=>{let he=0;return Be.schedule(function(){he===Le.length?Ie.complete():(Ie.next(Le[he++]),Ie.closed||this.schedule())})})}(Le,Be);if((0,me.t)(Le))return function F(Le,Be){return(0,w.Xf)(Le).pipe(k(Be),S(Be))}(Le,Be);if((0,$e.D)(Le))return re(Le,Be);if((0,ve.T)(Le))return function le(Le,Be){return new U.y(Ie=>{let he;return(0,i.f)(Ie,Be,()=>{he=Le[Q.h](),(0,i.f)(Ie,Be,()=>{let fe,we;try{({value:fe,done:we}=he.next())}catch(_e){return void Ie.error(_e)}we?Ie.complete():Ie.next(fe)},0,!0)}),()=>(0,ne.m)(he?.return)&&he.return()})}(Le,Be);if((0,He.L)(Le))return function xe(Le,Be){return re((0,He.Q)(Le),Be)}(Le,Be)}throw(0,Je.z)(Le)}(Le,Be):(0,w.Xf)(Le)}},8421:(Y,z,x)=>{"use strict";x.d(z,{Xf:()=>le});var w=x(655),i=x(1144),E=x(8239),M=x(9751),S=x(3670),k=x(2206),L=x(4532),F=x(6495),U=x(3260),J=x(576),Q=x(7849),ne=x(8822);function le(He){if(He instanceof M.y)return He;if(null!=He){if((0,S.c)(He))return function re(He){return new M.y(xe=>{const Ee=He[ne.L]();if((0,J.m)(Ee.subscribe))return Ee.subscribe(xe);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(He);if((0,i.z)(He))return function ie(He){return new M.y(xe=>{for(let Ee=0;Ee{He.then(Ee=>{xe.closed||(xe.next(Ee),xe.complete())},Ee=>xe.error(Ee)).then(null,Q.h)})}(He);if((0,k.D)(He))return ve(He);if((0,F.T)(He))return function be(He){return new M.y(xe=>{for(const Ee of He)if(xe.next(Ee),xe.closed)return;xe.complete()})}(He);if((0,U.L)(He))return function $e(He){return ve((0,U.Q)(He))}(He)}throw(0,L.z)(He)}function ve(He){return new M.y(xe=>{(function Je(He,xe){var Ee,lt,Le,Be;return(0,w.mG)(this,void 0,void 0,function*(){try{for(Ee=(0,w.KL)(He);!(lt=yield Ee.next()).done;)if(xe.next(lt.value),xe.closed)return}catch(Ie){Le={error:Ie}}finally{try{lt&&!lt.done&&(Be=Ee.return)&&(yield Be.call(Ee))}finally{if(Le)throw Le.error}}xe.complete()})})(He,xe).catch(Ee=>xe.error(Ee))})}},6451:(Y,z,x)=>{"use strict";x.d(z,{T:()=>k});var w=x(8189),i=x(8421),E=x(515),M=x(3269),S=x(2076);function k(...L){const F=(0,M.yG)(L),U=(0,M._6)(L,1/0),J=L;return J.length?1===J.length?(0,i.Xf)(J[0]):(0,w.J)(U)((0,S.D)(J,F)):E.E}},9646:(Y,z,x)=>{"use strict";x.d(z,{of:()=>E});var w=x(3269),i=x(2076);function E(...M){const S=(0,w.yG)(M);return(0,i.D)(M,S)}},102:(Y,z,x)=>{"use strict";x.d(z,{S:()=>k});var w=x(9751),i=x(8421);const{isArray:E}=Array;var S=x(5403);function k(...F){return 1===(F=function M(F){return 1===F.length&&E(F[0])?F[0]:F}(F)).length?(0,i.Xf)(F[0]):new w.y(function L(F){return U=>{let J=[];for(let Q=0;J&&!U.closed&&Q{if(J){for(let le=0;le{"use strict";x.d(z,{_:()=>E});var w=x(9751),i=x(576);function E(M,S){const k=(0,i.m)(M)?M:()=>M,L=F=>F.error(k());return new w.y(S?F=>S.schedule(L,0,F):L)}},2805:(Y,z,x)=>{"use strict";x.d(z,{H:()=>S});var w=x(9751),i=x(4986),E=x(3532),M=x(1165);function S(k=0,L,F=i.P){let U=-1;return null!=L&&((0,E.K)(L)?F=L:U=L),new w.y(J=>{let Q=(0,M.q)(k)?+k-F.now():k;Q<0&&(Q=0);let ne=0;return F.schedule(function(){J.closed||(J.next(ne++),0<=U?this.schedule(void 0,U):J.complete())},Q)})}},5403:(Y,z,x)=>{"use strict";x.d(z,{x:()=>i});var w=x(930);function i(M,S,k,L,F){return new E(M,S,k,L,F)}class E extends w.Lv{constructor(S,k,L,F,U,J){super(S),this.onFinalize=U,this.shouldUnsubscribe=J,this._next=k?function(Q){try{k(Q)}catch(ne){S.error(ne)}}:super._next,this._error=F?function(Q){try{F(Q)}catch(ne){S.error(ne)}finally{this.unsubscribe()}}:super._error,this._complete=L?function(){try{L()}catch(Q){S.error(Q)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var S;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:k}=this;super.unsubscribe(),!k&&(null===(S=this.onFinalize)||void 0===S||S.call(this))}}}},262:(Y,z,x)=>{"use strict";x.d(z,{K:()=>M});var w=x(8421),i=x(5403),E=x(4482);function M(S){return(0,E.e)((k,L)=>{let J,F=null,U=!1;F=k.subscribe((0,i.x)(L,void 0,void 0,Q=>{J=(0,w.Xf)(S(Q,M(S)(k))),F?(F.unsubscribe(),F=null,J.subscribe(L)):U=!0})),U&&(F.unsubscribe(),F=null,J.subscribe(L))})}},4351:(Y,z,x)=>{"use strict";x.d(z,{b:()=>E});var w=x(5577),i=x(576);function E(M,S){return(0,i.m)(S)?(0,w.z)(M,S,1):(0,w.z)(M,1)}},8372:(Y,z,x)=>{"use strict";x.d(z,{b:()=>M});var w=x(4986),i=x(4482),E=x(5403);function M(S,k=w.z){return(0,i.e)((L,F)=>{let U=null,J=null,Q=null;const ne=()=>{if(U){U.unsubscribe(),U=null;const re=J;J=null,F.next(re)}};function le(){const re=Q+S,ie=k.now();if(ie{J=re,Q=k.now(),U||(U=k.schedule(le,S),F.add(U))},()=>{ne(),F.complete()},void 0,()=>{J=U=null}))})}},6590:(Y,z,x)=>{"use strict";x.d(z,{d:()=>E});var w=x(4482),i=x(5403);function E(M){return(0,w.e)((S,k)=>{let L=!1;S.subscribe((0,i.x)(k,F=>{L=!0,k.next(F)},()=>{L||k.next(M),k.complete()}))})}},1005:(Y,z,x)=>{"use strict";x.d(z,{g:()=>ne});var w=x(4986),i=x(7272),E=x(5698),M=x(4482),S=x(5403),k=x(5032),F=x(9718),U=x(5577);function J(le,re){return re?ie=>(0,i.z)(re.pipe((0,E.q)(1),function L(){return(0,M.e)((le,re)=>{le.subscribe((0,S.x)(re,k.Z))})}()),ie.pipe(J(le))):(0,U.z)((ie,me)=>le(ie,me).pipe((0,E.q)(1),(0,F.h)(ie)))}var Q=x(2805);function ne(le,re=w.z){const ie=(0,Q.H)(le,re);return J(()=>ie)}},9300:(Y,z,x)=>{"use strict";x.d(z,{h:()=>E});var w=x(4482),i=x(5403);function E(M,S){return(0,w.e)((k,L)=>{let F=0;k.subscribe((0,i.x)(L,U=>M.call(S,U,F++)&&L.next(U)))})}},590:(Y,z,x)=>{"use strict";x.d(z,{P:()=>L});var w=x(6805),i=x(9300),E=x(5698),M=x(6590),S=x(8068),k=x(4671);function L(F,U){const J=arguments.length>=2;return Q=>Q.pipe(F?(0,i.h)((ne,le)=>F(ne,le,Q)):k.y,(0,E.q)(1),J?(0,M.d)(U):(0,S.T)(()=>new w.K))}},4004:(Y,z,x)=>{"use strict";x.d(z,{U:()=>E});var w=x(4482),i=x(5403);function E(M,S){return(0,w.e)((k,L)=>{let F=0;k.subscribe((0,i.x)(L,U=>{L.next(M.call(S,U,F++))}))})}},9718:(Y,z,x)=>{"use strict";x.d(z,{h:()=>i});var w=x(4004);function i(E){return(0,w.U)(()=>E)}},8189:(Y,z,x)=>{"use strict";x.d(z,{J:()=>E});var w=x(5577),i=x(4671);function E(M=1/0){return(0,w.z)(i.y,M)}},5577:(Y,z,x)=>{"use strict";x.d(z,{z:()=>F});var w=x(4004),i=x(8421),E=x(4482),M=x(9672),S=x(5403),L=x(576);function F(U,J,Q=1/0){return(0,L.m)(J)?F((ne,le)=>(0,w.U)((re,ie)=>J(ne,re,le,ie))((0,i.Xf)(U(ne,le))),Q):("number"==typeof J&&(Q=J),(0,E.e)((ne,le)=>function k(U,J,Q,ne,le,re,ie,me){const be=[];let ve=0,$e=0,Je=!1;const He=()=>{Je&&!be.length&&!ve&&J.complete()},xe=lt=>ve{re&&J.next(lt),ve++;let Le=!1;(0,i.Xf)(Q(lt,$e++)).subscribe((0,S.x)(J,Be=>{le?.(Be),re?xe(Be):J.next(Be)},()=>{Le=!0},void 0,()=>{if(Le)try{for(ve--;be.length&&veEe(Be)):Ee(Be)}He()}catch(Be){J.error(Be)}}))};return U.subscribe((0,S.x)(J,xe,()=>{Je=!0,He()})),()=>{me?.()}}(ne,le,U,Q)))}},3099:(Y,z,x)=>{"use strict";x.d(z,{B:()=>S});var w=x(8421),i=x(7579),E=x(930),M=x(4482);function S(L={}){const{connector:F=(()=>new i.x),resetOnError:U=!0,resetOnComplete:J=!0,resetOnRefCountZero:Q=!0}=L;return ne=>{let le,re,ie,me=0,be=!1,ve=!1;const $e=()=>{re?.unsubscribe(),re=void 0},Je=()=>{$e(),le=ie=void 0,be=ve=!1},He=()=>{const xe=le;Je(),xe?.unsubscribe()};return(0,M.e)((xe,Ee)=>{me++,!ve&&!be&&$e();const lt=ie=ie??F();Ee.add(()=>{me--,0===me&&!ve&&!be&&(re=k(He,Q))}),lt.subscribe(Ee),!le&&me>0&&(le=new E.Hp({next:Le=>lt.next(Le),error:Le=>{ve=!0,$e(),re=k(Je,U,Le),lt.error(Le)},complete:()=>{be=!0,$e(),re=k(Je,J),lt.complete()}}),(0,w.Xf)(xe).subscribe(le))})(ne)}}function k(L,F,...U){if(!0===F)return void L();if(!1===F)return;const J=new E.Hp({next:()=>{J.unsubscribe(),L()}});return F(...U).subscribe(J)}},3900:(Y,z,x)=>{"use strict";x.d(z,{w:()=>M});var w=x(8421),i=x(4482),E=x(5403);function M(S,k){return(0,i.e)((L,F)=>{let U=null,J=0,Q=!1;const ne=()=>Q&&!U&&F.complete();L.subscribe((0,E.x)(F,le=>{U?.unsubscribe();let re=0;const ie=J++;(0,w.Xf)(S(le,ie)).subscribe(U=(0,E.x)(F,me=>F.next(k?k(le,me,ie,re++):me),()=>{U=null,ne()}))},()=>{Q=!0,ne()}))})}},5698:(Y,z,x)=>{"use strict";x.d(z,{q:()=>M});var w=x(515),i=x(4482),E=x(5403);function M(S){return S<=0?()=>w.E:(0,i.e)((k,L)=>{let F=0;k.subscribe((0,E.x)(L,U=>{++F<=S&&(L.next(U),S<=F&&L.complete())}))})}},8505:(Y,z,x)=>{"use strict";x.d(z,{b:()=>S});var w=x(576),i=x(4482),E=x(5403),M=x(4671);function S(k,L,F){const U=(0,w.m)(k)||L||F?{next:k,error:L,complete:F}:k;return U?(0,i.e)((J,Q)=>{var ne;null===(ne=U.subscribe)||void 0===ne||ne.call(U);let le=!0;J.subscribe((0,E.x)(Q,re=>{var ie;null===(ie=U.next)||void 0===ie||ie.call(U,re),Q.next(re)},()=>{var re;le=!1,null===(re=U.complete)||void 0===re||re.call(U),Q.complete()},re=>{var ie;le=!1,null===(ie=U.error)||void 0===ie||ie.call(U,re),Q.error(re)},()=>{var re,ie;le&&(null===(re=U.unsubscribe)||void 0===re||re.call(U)),null===(ie=U.finalize)||void 0===ie||ie.call(U)}))}):M.y}},8068:(Y,z,x)=>{"use strict";x.d(z,{T:()=>M});var w=x(6805),i=x(4482),E=x(5403);function M(k=S){return(0,i.e)((L,F)=>{let U=!1;L.subscribe((0,E.x)(F,J=>{U=!0,F.next(J)},()=>U?F.complete():F.error(k())))})}function S(){return new w.K}},7414:(Y,z,x)=>{"use strict";x.d(z,{V:()=>U});var w=x(4986),i=x(1165),E=x(4482),M=x(8421),S=x(3888),k=x(5403),L=x(9672);const F=(0,S.d)(Q=>function(le=null){Q(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=le});function U(Q,ne){const{first:le,each:re,with:ie=J,scheduler:me=ne??w.z,meta:be=null}=(0,i.q)(Q)?{first:Q}:"number"==typeof Q?{each:Q}:Q;if(null==le&&null==re)throw new TypeError("No timeout provided.");return(0,E.e)((ve,$e)=>{let Je,He,xe=null,Ee=0;const lt=Le=>{He=(0,L.f)($e,me,()=>{try{Je.unsubscribe(),(0,M.Xf)(ie({meta:be,lastValue:xe,seen:Ee})).subscribe($e)}catch(Be){$e.error(Be)}},Le)};Je=ve.subscribe((0,k.x)($e,Le=>{He?.unsubscribe(),Ee++,$e.next(xe=Le),re>0&<(re)},void 0,void 0,()=>{He?.closed||He?.unsubscribe(),xe=null})),!Ee&<(null!=le?"number"==typeof le?le:+le-me.now():re)})}function J(Q){throw new F(Q)}},4408:(Y,z,x)=>{"use strict";x.d(z,{o:()=>S});var w=x(727);class i extends w.w0{constructor(L,F){super()}schedule(L,F=0){return this}}const E={setInterval(k,L,...F){const{delegate:U}=E;return U?.setInterval?U.setInterval(k,L,...F):setInterval(k,L,...F)},clearInterval(k){const{delegate:L}=E;return(L?.clearInterval||clearInterval)(k)},delegate:void 0};var M=x(8737);class S extends i{constructor(L,F){super(L,F),this.scheduler=L,this.work=F,this.pending=!1}schedule(L,F=0){if(this.closed)return this;this.state=L;const U=this.id,J=this.scheduler;return null!=U&&(this.id=this.recycleAsyncId(J,U,F)),this.pending=!0,this.delay=F,this.id=this.id||this.requestAsyncId(J,this.id,F),this}requestAsyncId(L,F,U=0){return E.setInterval(L.flush.bind(L,this),U)}recycleAsyncId(L,F,U=0){if(null!=U&&this.delay===U&&!1===this.pending)return F;E.clearInterval(F)}execute(L,F){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const U=this._execute(L,F);if(U)return U;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(L,F){let J,U=!1;try{this.work(L)}catch(Q){U=!0,J=Q||new Error("Scheduled action threw falsy error")}if(U)return this.unsubscribe(),J}unsubscribe(){if(!this.closed){const{id:L,scheduler:F}=this,{actions:U}=F;this.work=this.state=this.scheduler=null,this.pending=!1,(0,M.P)(U,this),null!=L&&(this.id=this.recycleAsyncId(F,L,null)),this.delay=null,super.unsubscribe()}}}},7565:(Y,z,x)=>{"use strict";x.d(z,{v:()=>E});var w=x(6063);class i{constructor(S,k=i.now){this.schedulerActionCtor=S,this.now=k}schedule(S,k=0,L){return new this.schedulerActionCtor(this,S).schedule(L,k)}}i.now=w.l.now;class E extends i{constructor(S,k=i.now){super(S,k),this.actions=[],this._active=!1,this._scheduled=void 0}flush(S){const{actions:k}=this;if(this._active)return void k.push(S);let L;this._active=!0;do{if(L=S.execute(S.state,S.delay))break}while(S=k.shift());if(this._active=!1,L){for(;S=k.shift();)S.unsubscribe();throw L}}}},4986:(Y,z,x)=>{"use strict";x.d(z,{P:()=>M,z:()=>E});var w=x(4408);const E=new(x(7565).v)(w.o),M=E},6063:(Y,z,x)=>{"use strict";x.d(z,{l:()=>w});const w={now:()=>(w.delegate||Date).now(),delegate:void 0}},3410:(Y,z,x)=>{"use strict";x.d(z,{z:()=>w});const w={setTimeout(i,E,...M){const{delegate:S}=w;return S?.setTimeout?S.setTimeout(i,E,...M):setTimeout(i,E,...M)},clearTimeout(i){const{delegate:E}=w;return(E?.clearTimeout||clearTimeout)(i)},delegate:void 0}},2202:(Y,z,x)=>{"use strict";x.d(z,{h:()=>i});const i=function w(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(Y,z,x)=>{"use strict";x.d(z,{L:()=>w});const w="function"==typeof Symbol&&Symbol.observable||"@@observable"},6805:(Y,z,x)=>{"use strict";x.d(z,{K:()=>i});const i=(0,x(3888).d)(E=>function(){E(this),this.name="EmptyError",this.message="no elements in sequence"})},3269:(Y,z,x)=>{"use strict";x.d(z,{_6:()=>k,jO:()=>M,yG:()=>S});var w=x(576),i=x(3532);function E(L){return L[L.length-1]}function M(L){return(0,w.m)(E(L))?L.pop():void 0}function S(L){return(0,i.K)(E(L))?L.pop():void 0}function k(L,F){return"number"==typeof E(L)?L.pop():F}},4742:(Y,z,x)=>{"use strict";x.d(z,{D:()=>S});const{isArray:w}=Array,{getPrototypeOf:i,prototype:E,keys:M}=Object;function S(L){if(1===L.length){const F=L[0];if(w(F))return{args:F,keys:null};if(function k(L){return L&&"object"==typeof L&&i(L)===E}(F)){const U=M(F);return{args:U.map(J=>F[J]),keys:U}}}return{args:L,keys:null}}},8737:(Y,z,x)=>{"use strict";function w(i,E){if(i){const M=i.indexOf(E);0<=M&&i.splice(M,1)}}x.d(z,{P:()=>w})},3888:(Y,z,x)=>{"use strict";function w(i){const M=i(S=>{Error.call(S),S.stack=(new Error).stack});return M.prototype=Object.create(Error.prototype),M.prototype.constructor=M,M}x.d(z,{d:()=>w})},1810:(Y,z,x)=>{"use strict";function w(i,E){return i.reduce((M,S,k)=>(M[S]=E[k],M),{})}x.d(z,{n:()=>w})},2806:(Y,z,x)=>{"use strict";x.d(z,{O:()=>M,x:()=>E});var w=x(2416);let i=null;function E(S){if(w.v.useDeprecatedSynchronousErrorHandling){const k=!i;if(k&&(i={errorThrown:!1,error:null}),S(),k){const{errorThrown:L,error:F}=i;if(i=null,L)throw F}}else S()}function M(S){w.v.useDeprecatedSynchronousErrorHandling&&i&&(i.errorThrown=!0,i.error=S)}},9672:(Y,z,x)=>{"use strict";function w(i,E,M,S=0,k=!1){const L=E.schedule(function(){M(),k?i.add(this.schedule(null,S)):this.unsubscribe()},S);if(i.add(L),!k)return L}x.d(z,{f:()=>w})},4671:(Y,z,x)=>{"use strict";function w(i){return i}x.d(z,{y:()=>w})},1144:(Y,z,x)=>{"use strict";x.d(z,{z:()=>w});const w=i=>i&&"number"==typeof i.length&&"function"!=typeof i},2206:(Y,z,x)=>{"use strict";x.d(z,{D:()=>i});var w=x(576);function i(E){return Symbol.asyncIterator&&(0,w.m)(E?.[Symbol.asyncIterator])}},1165:(Y,z,x)=>{"use strict";function w(i){return i instanceof Date&&!isNaN(i)}x.d(z,{q:()=>w})},576:(Y,z,x)=>{"use strict";function w(i){return"function"==typeof i}x.d(z,{m:()=>w})},3670:(Y,z,x)=>{"use strict";x.d(z,{c:()=>E});var w=x(8822),i=x(576);function E(M){return(0,i.m)(M[w.L])}},6495:(Y,z,x)=>{"use strict";x.d(z,{T:()=>E});var w=x(2202),i=x(576);function E(M){return(0,i.m)(M?.[w.h])}},8239:(Y,z,x)=>{"use strict";x.d(z,{t:()=>i});var w=x(576);function i(E){return(0,w.m)(E?.then)}},3260:(Y,z,x)=>{"use strict";x.d(z,{L:()=>M,Q:()=>E});var w=x(655),i=x(576);function E(S){return(0,w.FC)(this,arguments,function*(){const L=S.getReader();try{for(;;){const{value:F,done:U}=yield(0,w.qq)(L.read());if(U)return yield(0,w.qq)(void 0);yield yield(0,w.qq)(F)}}finally{L.releaseLock()}})}function M(S){return(0,i.m)(S?.getReader)}},3532:(Y,z,x)=>{"use strict";x.d(z,{K:()=>i});var w=x(576);function i(E){return E&&(0,w.m)(E.schedule)}},4482:(Y,z,x)=>{"use strict";x.d(z,{A:()=>i,e:()=>E});var w=x(576);function i(M){return(0,w.m)(M?.lift)}function E(M){return S=>{if(i(S))return S.lift(function(k){try{return M(k,this)}catch(L){this.error(L)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(Y,z,x)=>{"use strict";x.d(z,{Z:()=>M});var w=x(4004);const{isArray:i}=Array;function M(S){return(0,w.U)(k=>function E(S,k){return i(k)?S(...k):S(k)}(S,k))}},5032:(Y,z,x)=>{"use strict";function w(){}x.d(z,{Z:()=>w})},9635:(Y,z,x)=>{"use strict";x.d(z,{U:()=>E,z:()=>i});var w=x(4671);function i(...M){return E(M)}function E(M){return 0===M.length?w.y:1===M.length?M[0]:function(k){return M.reduce((L,F)=>F(L),k)}}},7849:(Y,z,x)=>{"use strict";x.d(z,{h:()=>E});var w=x(2416),i=x(3410);function E(M){i.z.setTimeout(()=>{const{onUnhandledError:S}=w.v;if(!S)throw M;S(M)})}},4532:(Y,z,x)=>{"use strict";function w(i){return new TypeError(`You provided ${null!==i&&"object"==typeof i?"an invalid object":`'${i}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}x.d(z,{z:()=>w})},6700:(Y,z,x)=>{var w={"./af":7088,"./af.js":7088,"./ar":7038,"./ar-dz":2502,"./ar-dz.js":2502,"./ar-kw":128,"./ar-kw.js":128,"./ar-ly":4519,"./ar-ly.js":4519,"./ar-ma":5443,"./ar-ma.js":5443,"./ar-sa":7642,"./ar-sa.js":7642,"./ar-tn":8592,"./ar-tn.js":8592,"./ar.js":7038,"./az":1213,"./az.js":1213,"./be":9191,"./be.js":9191,"./bg":322,"./bg.js":322,"./bm":8042,"./bm.js":8042,"./bn":9620,"./bn-bd":5903,"./bn-bd.js":5903,"./bn.js":9620,"./bo":9645,"./bo.js":9645,"./br":5020,"./br.js":5020,"./bs":4792,"./bs.js":4792,"./ca":7980,"./ca.js":7980,"./cs":7322,"./cs.js":7322,"./cv":365,"./cv.js":365,"./cy":2092,"./cy.js":2092,"./da":7387,"./da.js":7387,"./de":4307,"./de-at":9459,"./de-at.js":9459,"./de-ch":3694,"./de-ch.js":3694,"./de.js":4307,"./dv":9659,"./dv.js":9659,"./el":3460,"./el.js":3460,"./en-au":4369,"./en-au.js":4369,"./en-ca":530,"./en-ca.js":530,"./en-gb":9998,"./en-gb.js":9998,"./en-ie":3391,"./en-ie.js":3391,"./en-il":5414,"./en-il.js":5414,"./en-in":9615,"./en-in.js":9615,"./en-nz":1248,"./en-nz.js":1248,"./en-sg":3767,"./en-sg.js":3767,"./eo":4530,"./eo.js":4530,"./es":6866,"./es-do":8944,"./es-do.js":8944,"./es-mx":9116,"./es-mx.js":9116,"./es-us":3609,"./es-us.js":3609,"./es.js":6866,"./et":6725,"./et.js":6725,"./eu":7931,"./eu.js":7931,"./fa":6417,"./fa.js":6417,"./fi":944,"./fi.js":944,"./fil":1766,"./fil.js":1766,"./fo":5867,"./fo.js":5867,"./fr":1636,"./fr-ca":6848,"./fr-ca.js":6848,"./fr-ch":7773,"./fr-ch.js":7773,"./fr.js":1636,"./fy":4940,"./fy.js":4940,"./ga":1402,"./ga.js":1402,"./gd":6924,"./gd.js":6924,"./gl":6398,"./gl.js":6398,"./gom-deva":2457,"./gom-deva.js":2457,"./gom-latn":2545,"./gom-latn.js":2545,"./gu":2641,"./gu.js":2641,"./he":7536,"./he.js":7536,"./hi":6335,"./hi.js":6335,"./hr":7458,"./hr.js":7458,"./hu":6540,"./hu.js":6540,"./hy-am":5283,"./hy-am.js":5283,"./id":8780,"./id.js":8780,"./is":4205,"./is.js":4205,"./it":4211,"./it-ch":9985,"./it-ch.js":9985,"./it.js":4211,"./ja":1003,"./ja.js":1003,"./jv":420,"./jv.js":420,"./ka":851,"./ka.js":851,"./kk":6074,"./kk.js":6074,"./km":3343,"./km.js":3343,"./kn":4799,"./kn.js":4799,"./ko":3549,"./ko.js":3549,"./ku":1037,"./ku.js":1037,"./ky":3125,"./ky.js":3125,"./lb":9586,"./lb.js":9586,"./lo":2349,"./lo.js":2349,"./lt":2400,"./lt.js":2400,"./lv":9991,"./lv.js":9991,"./me":8477,"./me.js":8477,"./mi":5118,"./mi.js":5118,"./mk":5943,"./mk.js":5943,"./ml":3849,"./ml.js":3849,"./mn":1977,"./mn.js":1977,"./mr":6184,"./mr.js":6184,"./ms":485,"./ms-my":4524,"./ms-my.js":4524,"./ms.js":485,"./mt":6681,"./mt.js":6681,"./my":2024,"./my.js":2024,"./nb":2688,"./nb.js":2688,"./ne":8914,"./ne.js":8914,"./nl":1758,"./nl-be":2272,"./nl-be.js":2272,"./nl.js":1758,"./nn":1510,"./nn.js":1510,"./oc-lnc":2797,"./oc-lnc.js":2797,"./pa-in":7944,"./pa-in.js":7944,"./pl":1605,"./pl.js":1605,"./pt":4225,"./pt-br":3840,"./pt-br.js":3840,"./pt.js":4225,"./ro":5128,"./ro.js":5128,"./ru":5127,"./ru.js":5127,"./sd":2525,"./sd.js":2525,"./se":9893,"./se.js":9893,"./si":3123,"./si.js":3123,"./sk":3027,"./sk.js":3027,"./sl":8106,"./sl.js":8106,"./sq":8799,"./sq.js":8799,"./sr":7949,"./sr-cyrl":2872,"./sr-cyrl.js":2872,"./sr.js":7949,"./ss":6167,"./ss.js":6167,"./sv":9713,"./sv.js":9713,"./sw":1982,"./sw.js":1982,"./ta":2732,"./ta.js":2732,"./te":3636,"./te.js":3636,"./tet":2115,"./tet.js":2115,"./tg":9801,"./tg.js":9801,"./th":2868,"./th.js":2868,"./tk":1310,"./tk.js":1310,"./tl-ph":2360,"./tl-ph.js":2360,"./tlh":6645,"./tlh.js":6645,"./tr":8374,"./tr.js":8374,"./tzl":256,"./tzl.js":256,"./tzm":1595,"./tzm-latn":1631,"./tzm-latn.js":1631,"./tzm.js":1595,"./ug-cn":6050,"./ug-cn.js":6050,"./uk":5610,"./uk.js":5610,"./ur":6077,"./ur.js":6077,"./uz":2862,"./uz-latn":2207,"./uz-latn.js":2207,"./uz.js":2862,"./vi":8093,"./vi.js":8093,"./x-pseudo":5590,"./x-pseudo.js":5590,"./yo":9058,"./yo.js":9058,"./zh-cn":7908,"./zh-cn.js":7908,"./zh-hk":8867,"./zh-hk.js":8867,"./zh-mo":1133,"./zh-mo.js":1133,"./zh-tw":3291,"./zh-tw.js":3291};function i(M){var S=E(M);return x(S)}function E(M){if(!x.o(w,M)){var S=new Error("Cannot find module '"+M+"'");throw S.code="MODULE_NOT_FOUND",S}return w[M]}i.keys=function(){return Object.keys(w)},i.resolve=E,Y.exports=i,i.id=6700},655:(Y,z,x)=>{"use strict";function F(he,fe,we,_e){return new(we||(we=Promise))(function(Fe,Mt){function Lt(an){try{Qe(_e.next(an))}catch(Tn){Mt(Tn)}}function Jt(an){try{Qe(_e.throw(an))}catch(Tn){Mt(Tn)}}function Qe(an){an.done?Fe(an.value):function Ue(Fe){return Fe instanceof we?Fe:new we(function(Mt){Mt(Fe)})}(an.value).then(Lt,Jt)}Qe((_e=_e.apply(he,fe||[])).next())})}function be(he){return this instanceof be?(this.v=he,this):new be(he)}function ve(he,fe,we){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Ue,_e=we.apply(he,fe||[]),Fe=[];return Ue={},Mt("next"),Mt("throw"),Mt("return"),Ue[Symbol.asyncIterator]=function(){return this},Ue;function Mt(ze){_e[ze]&&(Ue[ze]=function(Qt){return new Promise(function(_r,Si){Fe.push([ze,Qt,_r,Si])>1||Lt(ze,Qt)})})}function Lt(ze,Qt){try{!function Jt(ze){ze.value instanceof be?Promise.resolve(ze.value.v).then(Qe,an):Tn(Fe[0][2],ze)}(_e[ze](Qt))}catch(_r){Tn(Fe[0][3],_r)}}function Qe(ze){Lt("next",ze)}function an(ze){Lt("throw",ze)}function Tn(ze,Qt){ze(Qt),Fe.shift(),Fe.length&&Lt(Fe[0][0],Fe[0][1])}}function Je(he){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var we,fe=he[Symbol.asyncIterator];return fe?fe.call(he):(he=function ne(he){var fe="function"==typeof Symbol&&Symbol.iterator,we=fe&&he[fe],_e=0;if(we)return we.call(he);if(he&&"number"==typeof he.length)return{next:function(){return he&&_e>=he.length&&(he=void 0),{value:he&&he[_e++],done:!he}}};throw new TypeError(fe?"Object is not iterable.":"Symbol.iterator is not defined.")}(he),we={},_e("next"),_e("throw"),_e("return"),we[Symbol.asyncIterator]=function(){return this},we);function _e(Fe){we[Fe]=he[Fe]&&function(Mt){return new Promise(function(Lt,Jt){!function Ue(Fe,Mt,Lt,Jt){Promise.resolve(Jt).then(function(Qe){Fe({value:Qe,done:Lt})},Mt)}(Lt,Jt,(Mt=he[Fe](Mt)).done,Mt.value)})}}}x.d(z,{FC:()=>ve,KL:()=>Je,mG:()=>F,qq:()=>be})},6895:(Y,z,x)=>{"use strict";x.d(z,{Do:()=>Je,ED:()=>ua,EM:()=>fa,HT:()=>S,JF:()=>mn,K0:()=>L,Mx:()=>mt,NF:()=>ph,O5:()=>Xi,Ov:()=>yi,PC:()=>Wn,RF:()=>cr,S$:()=>be,V_:()=>J,Ye:()=>He,b0:()=>$e,bD:()=>on,ez:()=>Td,mk:()=>Cr,n9:()=>En,p6:()=>ke,q:()=>E,sg:()=>lr,tP:()=>ui,uU:()=>fi,w_:()=>k});var w=x(4650);let i=null;function E(){return i}function S(O){i||(i=O)}class k{}const L=new w.OlP("DocumentToken");let F=(()=>{class O{historyGo(B){throw new Error("Not implemented")}}return O.\u0275fac=function(B){return new(B||O)},O.\u0275prov=w.Yz7({token:O,factory:function(){return function U(){return(0,w.LFG)(Q)}()},providedIn:"platform"}),O})();const J=new w.OlP("Location Initialized");let Q=(()=>{class O extends F{constructor(B){super(),this._doc=B,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return E().getBaseHref(this._doc)}onPopState(B){const $=E().getGlobalEventTarget(this._doc,"window");return $.addEventListener("popstate",B,!1),()=>$.removeEventListener("popstate",B)}onHashChange(B){const $=E().getGlobalEventTarget(this._doc,"window");return $.addEventListener("hashchange",B,!1),()=>$.removeEventListener("hashchange",B)}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(B){this.location.pathname=B}pushState(B,$,ce){ne()?this._history.pushState(B,$,ce):this.location.hash=ce}replaceState(B,$,ce){ne()?this._history.replaceState(B,$,ce):this.location.hash=ce}forward(){this._history.forward()}back(){this._history.back()}historyGo(B=0){this._history.go(B)}getState(){return this._history.state}}return O.\u0275fac=function(B){return new(B||O)(w.LFG(L))},O.\u0275prov=w.Yz7({token:O,factory:function(){return function le(){return new Q((0,w.LFG)(L))}()},providedIn:"platform"}),O})();function ne(){return!!window.history.pushState}function re(O,G){if(0==O.length)return G;if(0==G.length)return O;let B=0;return O.endsWith("/")&&B++,G.startsWith("/")&&B++,2==B?O+G.substring(1):1==B?O+G:O+"/"+G}function ie(O){const G=O.match(/#|\?|$/),B=G&&G.index||O.length;return O.slice(0,B-("/"===O[B-1]?1:0))+O.slice(B)}function me(O){return O&&"?"!==O[0]?"?"+O:O}let be=(()=>{class O{historyGo(B){throw new Error("Not implemented")}}return O.\u0275fac=function(B){return new(B||O)},O.\u0275prov=w.Yz7({token:O,factory:function(){return(0,w.f3M)($e)},providedIn:"root"}),O})();const ve=new w.OlP("appBaseHref");let $e=(()=>{class O extends be{constructor(B,$){super(),this._platformLocation=B,this._removeListenerFns=[],this._baseHref=$??this._platformLocation.getBaseHrefFromDOM()??(0,w.f3M)(L).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(B){this._removeListenerFns.push(this._platformLocation.onPopState(B),this._platformLocation.onHashChange(B))}getBaseHref(){return this._baseHref}prepareExternalUrl(B){return re(this._baseHref,B)}path(B=!1){const $=this._platformLocation.pathname+me(this._platformLocation.search),ce=this._platformLocation.hash;return ce&&B?`${$}${ce}`:$}pushState(B,$,ce,Ce){const ge=this.prepareExternalUrl(ce+me(Ce));this._platformLocation.pushState(B,$,ge)}replaceState(B,$,ce,Ce){const ge=this.prepareExternalUrl(ce+me(Ce));this._platformLocation.replaceState(B,$,ge)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(B=0){this._platformLocation.historyGo?.(B)}}return O.\u0275fac=function(B){return new(B||O)(w.LFG(F),w.LFG(ve,8))},O.\u0275prov=w.Yz7({token:O,factory:O.\u0275fac,providedIn:"root"}),O})(),Je=(()=>{class O extends be{constructor(B,$){super(),this._platformLocation=B,this._baseHref="",this._removeListenerFns=[],null!=$&&(this._baseHref=$)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(B){this._removeListenerFns.push(this._platformLocation.onPopState(B),this._platformLocation.onHashChange(B))}getBaseHref(){return this._baseHref}path(B=!1){let $=this._platformLocation.hash;return null==$&&($="#"),$.length>0?$.substring(1):$}prepareExternalUrl(B){const $=re(this._baseHref,B);return $.length>0?"#"+$:$}pushState(B,$,ce,Ce){let ge=this.prepareExternalUrl(ce+me(Ce));0==ge.length&&(ge=this._platformLocation.pathname),this._platformLocation.pushState(B,$,ge)}replaceState(B,$,ce,Ce){let ge=this.prepareExternalUrl(ce+me(Ce));0==ge.length&&(ge=this._platformLocation.pathname),this._platformLocation.replaceState(B,$,ge)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(B=0){this._platformLocation.historyGo?.(B)}}return O.\u0275fac=function(B){return new(B||O)(w.LFG(F),w.LFG(ve,8))},O.\u0275prov=w.Yz7({token:O,factory:O.\u0275fac}),O})(),He=(()=>{class O{constructor(B){this._subject=new w.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=B;const $=this._locationStrategy.getBaseHref();this._baseHref=ie(lt($)),this._locationStrategy.onPopState(ce=>{this._subject.emit({url:this.path(!0),pop:!0,state:ce.state,type:ce.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(B=!1){return this.normalize(this._locationStrategy.path(B))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(B,$=""){return this.path()==this.normalize(B+me($))}normalize(B){return O.stripTrailingSlash(function Ee(O,G){return O&&G.startsWith(O)?G.substring(O.length):G}(this._baseHref,lt(B)))}prepareExternalUrl(B){return B&&"/"!==B[0]&&(B="/"+B),this._locationStrategy.prepareExternalUrl(B)}go(B,$="",ce=null){this._locationStrategy.pushState(ce,"",B,$),this._notifyUrlChangeListeners(this.prepareExternalUrl(B+me($)),ce)}replaceState(B,$="",ce=null){this._locationStrategy.replaceState(ce,"",B,$),this._notifyUrlChangeListeners(this.prepareExternalUrl(B+me($)),ce)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(B=0){this._locationStrategy.historyGo?.(B)}onUrlChange(B){return this._urlChangeListeners.push(B),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe($=>{this._notifyUrlChangeListeners($.url,$.state)})),()=>{const $=this._urlChangeListeners.indexOf(B);this._urlChangeListeners.splice($,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(B="",$){this._urlChangeListeners.forEach(ce=>ce(B,$))}subscribe(B,$,ce){return this._subject.subscribe({next:B,error:$,complete:ce})}}return O.normalizeQueryParams=me,O.joinWithSlash=re,O.stripTrailingSlash=ie,O.\u0275fac=function(B){return new(B||O)(w.LFG(be))},O.\u0275prov=w.Yz7({token:O,factory:function(){return function xe(){return new He((0,w.LFG)(be))}()},providedIn:"root"}),O})();function lt(O){return O.replace(/\/index.html$/,"")}var he=(()=>((he=he||{})[he.Format=0]="Format",he[he.Standalone=1]="Standalone",he))(),fe=(()=>((fe=fe||{})[fe.Narrow=0]="Narrow",fe[fe.Abbreviated=1]="Abbreviated",fe[fe.Wide=2]="Wide",fe[fe.Short=3]="Short",fe))(),we=(()=>((we=we||{})[we.Short=0]="Short",we[we.Medium=1]="Medium",we[we.Long=2]="Long",we[we.Full=3]="Full",we))(),_e=(()=>((_e=_e||{})[_e.Decimal=0]="Decimal",_e[_e.Group=1]="Group",_e[_e.List=2]="List",_e[_e.PercentSign=3]="PercentSign",_e[_e.PlusSign=4]="PlusSign",_e[_e.MinusSign=5]="MinusSign",_e[_e.Exponential=6]="Exponential",_e[_e.SuperscriptingExponent=7]="SuperscriptingExponent",_e[_e.PerMille=8]="PerMille",_e[_e.Infinity=9]="Infinity",_e[_e.NaN=10]="NaN",_e[_e.TimeSeparator=11]="TimeSeparator",_e[_e.CurrencyDecimal=12]="CurrencyDecimal",_e[_e.CurrencyGroup=13]="CurrencyGroup",_e))();function ze(O,G){return Qi((0,w.cg1)(O)[w.wAp.DateFormat],G)}function Qt(O,G){return Qi((0,w.cg1)(O)[w.wAp.TimeFormat],G)}function _r(O,G){return Qi((0,w.cg1)(O)[w.wAp.DateTimeFormat],G)}function Si(O,G){const B=(0,w.cg1)(O),$=B[w.wAp.NumberSymbols][G];if(typeof $>"u"){if(G===_e.CurrencyDecimal)return B[w.wAp.NumberSymbols][_e.Decimal];if(G===_e.CurrencyGroup)return B[w.wAp.NumberSymbols][_e.Group]}return $}function Or(O){if(!O[w.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${O[w.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Qi(O,G){for(let B=G;B>-1;B--)if(typeof O[B]<"u")return O[B];throw new Error("Locale data API: locale data undefined")}function br(O){const[G,B]=O.split(":");return{hours:+G,minutes:+B}}const sr=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Ut={},De=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var ae=(()=>((ae=ae||{})[ae.Short=0]="Short",ae[ae.ShortGMT=1]="ShortGMT",ae[ae.Long=2]="Long",ae[ae.Extended=3]="Extended",ae))(),te=(()=>((te=te||{})[te.FullYear=0]="FullYear",te[te.Month=1]="Month",te[te.Date=2]="Date",te[te.Hours=3]="Hours",te[te.Minutes=4]="Minutes",te[te.Seconds=5]="Seconds",te[te.FractionalSeconds=6]="FractionalSeconds",te[te.Day=7]="Day",te))(),de=(()=>((de=de||{})[de.DayPeriods=0]="DayPeriods",de[de.Days=1]="Days",de[de.Months=2]="Months",de[de.Eras=3]="Eras",de))();function ke(O,G,B,$){let ce=function Ki(O){if(Li(O))return O;if("number"==typeof O&&!isNaN(O))return new Date(O);if("string"==typeof O){if(O=O.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(O)){const[ce,Ce=1,ge=1]=O.split("-").map(nt=>+nt);return ut(ce,Ce-1,ge)}const B=parseFloat(O);if(!isNaN(O-B))return new Date(B);let $;if($=O.match(sr))return function Ye(O){const G=new Date(0);let B=0,$=0;const ce=O[8]?G.setUTCFullYear:G.setFullYear,Ce=O[8]?G.setUTCHours:G.setHours;O[9]&&(B=Number(O[9]+O[10]),$=Number(O[9]+O[11])),ce.call(G,Number(O[1]),Number(O[2])-1,Number(O[3]));const ge=Number(O[4]||0)-B,nt=Number(O[5]||0)-$,wi=Number(O[6]||0),ni=Math.floor(1e3*parseFloat("0."+(O[7]||0)));return Ce.call(G,ge,nt,wi,ni),G}($)}const G=new Date(O);if(!Li(G))throw new Error(`Unable to convert "${O}" into a date`);return G}(O);G=St(B,G)||G;let nt,ge=[];for(;G;){if(nt=De.exec(G),!nt){ge.push(G);break}{ge=ge.concat(nt.slice(1));const li=ge.pop();if(!li)break;G=li}}let wi=ce.getTimezoneOffset();$&&(wi=ms($,wi),ce=function Wi(O,G,B){const $=B?-1:1,ce=O.getTimezoneOffset();return function $t(O,G){return(O=new Date(O.getTime())).setMinutes(O.getMinutes()+G),O}(O,$*(ms(G,ce)-ce))}(ce,$,!0));let ni="";return ge.forEach(li=>{const jt=function wd(O){if(oa[O])return oa[O];let G;switch(O){case"G":case"GG":case"GGG":G=_t(de.Eras,fe.Abbreviated);break;case"GGGG":G=_t(de.Eras,fe.Wide);break;case"GGGGG":G=_t(de.Eras,fe.Narrow);break;case"y":G=Et(te.FullYear,1,0,!1,!0);break;case"yy":G=Et(te.FullYear,2,0,!0,!0);break;case"yyy":G=Et(te.FullYear,3,0,!1,!0);break;case"yyyy":G=Et(te.FullYear,4,0,!1,!0);break;case"Y":G=or(1);break;case"YY":G=or(2,!0);break;case"YYY":G=or(3);break;case"YYYY":G=or(4);break;case"M":case"L":G=Et(te.Month,1,1);break;case"MM":case"LL":G=Et(te.Month,2,1);break;case"MMM":G=_t(de.Months,fe.Abbreviated);break;case"MMMM":G=_t(de.Months,fe.Wide);break;case"MMMMM":G=_t(de.Months,fe.Narrow);break;case"LLL":G=_t(de.Months,fe.Abbreviated,he.Standalone);break;case"LLLL":G=_t(de.Months,fe.Wide,he.Standalone);break;case"LLLLL":G=_t(de.Months,fe.Narrow,he.Standalone);break;case"w":G=yr(1);break;case"ww":G=yr(2);break;case"W":G=yr(1,!0);break;case"d":G=Et(te.Date,1);break;case"dd":G=Et(te.Date,2);break;case"c":case"cc":G=Et(te.Day,1);break;case"ccc":G=_t(de.Days,fe.Abbreviated,he.Standalone);break;case"cccc":G=_t(de.Days,fe.Wide,he.Standalone);break;case"ccccc":G=_t(de.Days,fe.Narrow,he.Standalone);break;case"cccccc":G=_t(de.Days,fe.Short,he.Standalone);break;case"E":case"EE":case"EEE":G=_t(de.Days,fe.Abbreviated);break;case"EEEE":G=_t(de.Days,fe.Wide);break;case"EEEEE":G=_t(de.Days,fe.Narrow);break;case"EEEEEE":G=_t(de.Days,fe.Short);break;case"a":case"aa":case"aaa":G=_t(de.DayPeriods,fe.Abbreviated);break;case"aaaa":G=_t(de.DayPeriods,fe.Wide);break;case"aaaaa":G=_t(de.DayPeriods,fe.Narrow);break;case"b":case"bb":case"bbb":G=_t(de.DayPeriods,fe.Abbreviated,he.Standalone,!0);break;case"bbbb":G=_t(de.DayPeriods,fe.Wide,he.Standalone,!0);break;case"bbbbb":G=_t(de.DayPeriods,fe.Narrow,he.Standalone,!0);break;case"B":case"BB":case"BBB":G=_t(de.DayPeriods,fe.Abbreviated,he.Format,!0);break;case"BBBB":G=_t(de.DayPeriods,fe.Wide,he.Format,!0);break;case"BBBBB":G=_t(de.DayPeriods,fe.Narrow,he.Format,!0);break;case"h":G=Et(te.Hours,1,-12);break;case"hh":G=Et(te.Hours,2,-12);break;case"H":G=Et(te.Hours,1);break;case"HH":G=Et(te.Hours,2);break;case"m":G=Et(te.Minutes,1);break;case"mm":G=Et(te.Minutes,2);break;case"s":G=Et(te.Seconds,1);break;case"ss":G=Et(te.Seconds,2);break;case"S":G=Et(te.FractionalSeconds,1);break;case"SS":G=Et(te.FractionalSeconds,2);break;case"SSS":G=Et(te.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":G=gt(ae.Short);break;case"ZZZZZ":G=gt(ae.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":G=gt(ae.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":G=gt(ae.Long);break;default:return null}return oa[O]=G,G}(li);ni+=jt?jt(ce,B,wi):"''"===li?"'":li.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),ni}function ut(O,G,B){const $=new Date(0);return $.setFullYear(O,G,B),$.setHours(0,0,0),$}function St(O,G){const B=function Fe(O){return(0,w.cg1)(O)[w.wAp.LocaleId]}(O);if(Ut[B]=Ut[B]||{},Ut[B][G])return Ut[B][G];let $="";switch(G){case"shortDate":$=ze(O,we.Short);break;case"mediumDate":$=ze(O,we.Medium);break;case"longDate":$=ze(O,we.Long);break;case"fullDate":$=ze(O,we.Full);break;case"shortTime":$=Qt(O,we.Short);break;case"mediumTime":$=Qt(O,we.Medium);break;case"longTime":$=Qt(O,we.Long);break;case"fullTime":$=Qt(O,we.Full);break;case"short":const ce=St(O,"shortTime"),Ce=St(O,"shortDate");$=Xe(_r(O,we.Short),[ce,Ce]);break;case"medium":const ge=St(O,"mediumTime"),nt=St(O,"mediumDate");$=Xe(_r(O,we.Medium),[ge,nt]);break;case"long":const wi=St(O,"longTime"),ni=St(O,"longDate");$=Xe(_r(O,we.Long),[wi,ni]);break;case"full":const li=St(O,"fullTime"),jt=St(O,"fullDate");$=Xe(_r(O,we.Full),[li,jt])}return $&&(Ut[B][G]=$),$}function Xe(O,G){return G&&(O=O.replace(/\{([^}]+)}/g,function(B,$){return null!=G&&$ in G?G[$]:B})),O}function ft(O,G,B="-",$,ce){let Ce="";(O<0||ce&&O<=0)&&(ce?O=1-O:(O=-O,Ce=B));let ge=String(O);for(;ge.length0||nt>-B)&&(nt+=B),O===te.Hours)0===nt&&-12===B&&(nt=12);else if(O===te.FractionalSeconds)return function Ri(O,G){return ft(O,3).substring(0,G)}(nt,G);const wi=Si(ge,_e.MinusSign);return ft(nt,G,wi,$,ce)}}function _t(O,G,B=he.Format,$=!1){return function(ce,Ce){return function zt(O,G,B,$,ce,Ce){switch(B){case de.Months:return function Jt(O,G,B){const $=(0,w.cg1)(O),Ce=Qi([$[w.wAp.MonthsFormat],$[w.wAp.MonthsStandalone]],G);return Qi(Ce,B)}(G,ce,$)[O.getMonth()];case de.Days:return function Lt(O,G,B){const $=(0,w.cg1)(O),Ce=Qi([$[w.wAp.DaysFormat],$[w.wAp.DaysStandalone]],G);return Qi(Ce,B)}(G,ce,$)[O.getDay()];case de.DayPeriods:const ge=O.getHours(),nt=O.getMinutes();if(Ce){const ni=function fs(O){const G=(0,w.cg1)(O);return Or(G),(G[w.wAp.ExtraData][2]||[]).map($=>"string"==typeof $?br($):[br($[0]),br($[1])])}(G),li=function Zs(O,G,B){const $=(0,w.cg1)(O);Or($);const Ce=Qi([$[w.wAp.ExtraData][0],$[w.wAp.ExtraData][1]],G)||[];return Qi(Ce,B)||[]}(G,ce,$),jt=ni.findIndex(ln=>{if(Array.isArray(ln)){const[mi,st]=ln,Me=ge>=mi.hours&&nt>=mi.minutes,Ze=ge0?Math.floor(ce/60):Math.ceil(ce/60);switch(O){case ae.Short:return(ce>=0?"+":"")+ft(ge,2,Ce)+ft(Math.abs(ce%60),2,Ce);case ae.ShortGMT:return"GMT"+(ce>=0?"+":"")+ft(ge,1,Ce);case ae.Long:return"GMT"+(ce>=0?"+":"")+ft(ge,2,Ce)+":"+ft(Math.abs(ce%60),2,Ce);case ae.Extended:return 0===$?"Z":(ce>=0?"+":"")+ft(ge,2,Ce)+":"+ft(Math.abs(ce%60),2,Ce);default:throw new Error(`Unknown zone width "${O}"`)}}}function Vr(O){return ut(O.getFullYear(),O.getMonth(),O.getDate()+(4-O.getDay()))}function yr(O,G=!1){return function(B,$){let ce;if(G){const Ce=new Date(B.getFullYear(),B.getMonth(),1).getDay()-1,ge=B.getDate();ce=1+Math.floor((ge+Ce)/7)}else{const Ce=Vr(B),ge=function Yi(O){const G=ut(O,0,1).getDay();return ut(O,0,1+(G<=4?4:11)-G)}(Ce.getFullYear()),nt=Ce.getTime()-ge.getTime();ce=1+Math.round(nt/6048e5)}return ft(ce,O,Si($,_e.MinusSign))}}function or(O,G=!1){return function(B,$){return ft(Vr(B).getFullYear(),O,Si($,_e.MinusSign),G)}}const oa={};function ms(O,G){O=O.replace(/:/g,"");const B=Date.parse("Jan 01, 1970 00:00:00 "+O)/6e4;return isNaN(B)?G:B}function Li(O){return O instanceof Date&&!isNaN(O.valueOf())}function mt(O,G){G=encodeURIComponent(G);for(const B of O.split(";")){const $=B.indexOf("="),[ce,Ce]=-1==$?[B,""]:[B.slice(0,$),B.slice($+1)];if(ce.trim()===G)return decodeURIComponent(Ce)}return null}let Cr=(()=>{class O{constructor(B,$,ce,Ce){this._iterableDiffers=B,this._keyValueDiffers=$,this._ngEl=ce,this._renderer=Ce,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(B){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof B?B.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(B){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof B?B.split(/\s+/):B,this._rawClass&&((0,w.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const B=this._iterableDiffer.diff(this._rawClass);B&&this._applyIterableChanges(B)}else if(this._keyValueDiffer){const B=this._keyValueDiffer.diff(this._rawClass);B&&this._applyKeyValueChanges(B)}}_applyKeyValueChanges(B){B.forEachAddedItem($=>this._toggleClass($.key,$.currentValue)),B.forEachChangedItem($=>this._toggleClass($.key,$.currentValue)),B.forEachRemovedItem($=>{$.previousValue&&this._toggleClass($.key,!1)})}_applyIterableChanges(B){B.forEachAddedItem($=>{if("string"!=typeof $.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,w.AaK)($.item)}`);this._toggleClass($.item,!0)}),B.forEachRemovedItem($=>this._toggleClass($.item,!1))}_applyClasses(B){B&&(Array.isArray(B)||B instanceof Set?B.forEach($=>this._toggleClass($,!0)):Object.keys(B).forEach($=>this._toggleClass($,!!B[$])))}_removeClasses(B){B&&(Array.isArray(B)||B instanceof Set?B.forEach($=>this._toggleClass($,!1)):Object.keys(B).forEach($=>this._toggleClass($,!1)))}_toggleClass(B,$){(B=B.trim())&&B.split(/\s+/g).forEach(ce=>{$?this._renderer.addClass(this._ngEl.nativeElement,ce):this._renderer.removeClass(this._ngEl.nativeElement,ce)})}}return O.\u0275fac=function(B){return new(B||O)(w.Y36(w.ZZ4),w.Y36(w.aQg),w.Y36(w.SBq),w.Y36(w.Qsj))},O.\u0275dir=w.lG2({type:O,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),O})();class da{constructor(G,B,$,ce){this.$implicit=G,this.ngForOf=B,this.index=$,this.count=ce}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 lr=(()=>{class O{constructor(B,$,ce){this._viewContainer=B,this._template=$,this._differs=ce,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(B){this._ngForOf=B,this._ngForOfDirty=!0}set ngForTrackBy(B){this._trackByFn=B}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(B){B&&(this._template=B)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const B=this._ngForOf;!this._differ&&B&&(this._differ=this._differs.find(B).create(this.ngForTrackBy))}if(this._differ){const B=this._differ.diff(this._ngForOf);B&&this._applyChanges(B)}}_applyChanges(B){const $=this._viewContainer;B.forEachOperation((ce,Ce,ge)=>{if(null==ce.previousIndex)$.createEmbeddedView(this._template,new da(ce.item,this._ngForOf,-1,-1),null===ge?void 0:ge);else if(null==ge)$.remove(null===Ce?void 0:Ce);else if(null!==Ce){const nt=$.get(Ce);$.move(nt,ge),Ii(nt,ce)}});for(let ce=0,Ce=$.length;ce{Ii($.get(ce.currentIndex),ce)})}static ngTemplateContextGuard(B,$){return!0}}return O.\u0275fac=function(B){return new(B||O)(w.Y36(w.s_b),w.Y36(w.Rgc),w.Y36(w.ZZ4))},O.\u0275dir=w.lG2({type:O,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),O})();function Ii(O,G){O.context.$implicit=G.item}let Xi=(()=>{class O{constructor(B,$){this._viewContainer=B,this._context=new Sn,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=$}set ngIf(B){this._context.$implicit=this._context.ngIf=B,this._updateView()}set ngIfThen(B){Gn("ngIfThen",B),this._thenTemplateRef=B,this._thenViewRef=null,this._updateView()}set ngIfElse(B){Gn("ngIfElse",B),this._elseTemplateRef=B,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(B,$){return!0}}return O.\u0275fac=function(B){return new(B||O)(w.Y36(w.s_b),w.Y36(w.Rgc))},O.\u0275dir=w.lG2({type:O,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),O})();class Sn{constructor(){this.$implicit=null,this.ngIf=null}}function Gn(O,G){if(G&&!G.createEmbeddedView)throw new Error(`${O} must be a TemplateRef, but received '${(0,w.AaK)(G)}'.`)}class Yr{constructor(G,B){this._viewContainerRef=G,this._templateRef=B,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(G){G&&!this._created?this.create():!G&&this._created&&this.destroy()}}let cr=(()=>{class O{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(B){this._ngSwitch=B,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(B){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(B)}_matchCase(B){const $=B==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||$,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),$}_updateDefaultCases(B){if(this._defaultViews&&B!==this._defaultUsed){this._defaultUsed=B;for(let $=0;${class O{constructor(B,$,ce){this.ngSwitch=ce,ce._addCase(),this._view=new Yr(B,$)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return O.\u0275fac=function(B){return new(B||O)(w.Y36(w.s_b),w.Y36(w.Rgc),w.Y36(cr,9))},O.\u0275dir=w.lG2({type:O,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),O})(),ua=(()=>{class O{constructor(B,$,ce){ce._addDefault(new Yr(B,$))}}return O.\u0275fac=function(B){return new(B||O)(w.Y36(w.s_b),w.Y36(w.Rgc),w.Y36(cr,9))},O.\u0275dir=w.lG2({type:O,selectors:[["","ngSwitchDefault",""]],standalone:!0}),O})(),Wn=(()=>{class O{constructor(B,$,ce){this._ngEl=B,this._differs=$,this._renderer=ce,this._ngStyle=null,this._differ=null}set ngStyle(B){this._ngStyle=B,!this._differ&&B&&(this._differ=this._differs.find(B).create())}ngDoCheck(){if(this._differ){const B=this._differ.diff(this._ngStyle);B&&this._applyChanges(B)}}_setStyle(B,$){const[ce,Ce]=B.split("."),ge=-1===ce.indexOf("-")?void 0:w.JOm.DashCase;null!=$?this._renderer.setStyle(this._ngEl.nativeElement,ce,Ce?`${$}${Ce}`:$,ge):this._renderer.removeStyle(this._ngEl.nativeElement,ce,ge)}_applyChanges(B){B.forEachRemovedItem($=>this._setStyle($.key,null)),B.forEachAddedItem($=>this._setStyle($.key,$.currentValue)),B.forEachChangedItem($=>this._setStyle($.key,$.currentValue))}}return O.\u0275fac=function(B){return new(B||O)(w.Y36(w.SBq),w.Y36(w.aQg),w.Y36(w.Qsj))},O.\u0275dir=w.lG2({type:O,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),O})(),ui=(()=>{class O{constructor(B){this._viewContainerRef=B,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(B){if(B.ngTemplateOutlet||B.ngTemplateOutletInjector){const $=this._viewContainerRef;if(this._viewRef&&$.remove($.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:ce,ngTemplateOutletContext:Ce,ngTemplateOutletInjector:ge}=this;this._viewRef=$.createEmbeddedView(ce,Ce,ge?{injector:ge}:void 0)}else this._viewRef=null}else this._viewRef&&B.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return O.\u0275fac=function(B){return new(B||O)(w.Y36(w.s_b))},O.\u0275dir=w.lG2({type:O,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[w.TTD]}),O})();function tt(O,G){return new w.vHH(2100,!1)}class Ks{createSubscription(G,B){return G.subscribe({next:B,error:$=>{throw $}})}dispose(G){G.unsubscribe()}}class oh{createSubscription(G,B){return G.then(B,$=>{throw $})}dispose(G){}}const C=new oh,Ei=new Ks;let yi=(()=>{class O{constructor(B){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=B}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(B){return this._obj?B!==this._obj?(this._dispose(),this.transform(B)):this._latestValue:(B&&this._subscribe(B),this._latestValue)}_subscribe(B){this._obj=B,this._strategy=this._selectStrategy(B),this._subscription=this._strategy.createSubscription(B,$=>this._updateLatestValue(B,$))}_selectStrategy(B){if((0,w.QGY)(B))return C;if((0,w.F4k)(B))return Ei;throw tt()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(B,$){B===this._obj&&(this._latestValue=$,this._ref.markForCheck())}}return O.\u0275fac=function(B){return new(B||O)(w.Y36(w.sBO,16))},O.\u0275pipe=w.Yjl({name:"async",type:O,pure:!1,standalone:!0}),O})();const Fa=new w.OlP("DATE_PIPE_DEFAULT_TIMEZONE");let fi=(()=>{class O{constructor(B,$){this.locale=B,this.defaultTimezone=$}transform(B,$="mediumDate",ce,Ce){if(null==B||""===B||B!=B)return null;try{return ke(B,$,Ce||this.locale,ce??this.defaultTimezone??void 0)}catch(ge){throw tt()}}}return O.\u0275fac=function(B){return new(B||O)(w.Y36(w.soG,16),w.Y36(Fa,24))},O.\u0275pipe=w.Yjl({name:"date",type:O,pure:!0,standalone:!0}),O})(),Td=(()=>{class O{}return O.\u0275fac=function(B){return new(B||O)},O.\u0275mod=w.oAB({type:O}),O.\u0275inj=w.cJS({}),O})();const on="browser";function ph(O){return O===on}let fa=(()=>{class O{}return O.\u0275prov=(0,w.Yz7)({token:O,providedIn:"root",factory:()=>new $n((0,w.LFG)(L),window)}),O})();class $n{constructor(G,B){this.document=G,this.window=B,this.offset=()=>[0,0]}setOffset(G){this.offset=Array.isArray(G)?()=>G:G}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(G){this.supportsScrolling()&&this.window.scrollTo(G[0],G[1])}scrollToAnchor(G){if(!this.supportsScrolling())return;const B=function sc(O,G){const B=O.getElementById(G)||O.getElementsByName(G)[0];if(B)return B;if("function"==typeof O.createTreeWalker&&O.body&&(O.body.createShadowRoot||O.body.attachShadow)){const $=O.createTreeWalker(O.body,NodeFilter.SHOW_ELEMENT);let ce=$.currentNode;for(;ce;){const Ce=ce.shadowRoot;if(Ce){const ge=Ce.getElementById(G)||Ce.querySelector(`[name="${G}"]`);if(ge)return ge}ce=$.nextNode()}}return null}(this.document,G);B&&(this.scrollToElement(B),B.focus())}setHistoryScrollRestoration(G){if(this.supportScrollRestoration()){const B=this.window.history;B&&B.scrollRestoration&&(B.scrollRestoration=G)}}scrollToElement(G){const B=G.getBoundingClientRect(),$=B.left+this.window.pageXOffset,ce=B.top+this.window.pageYOffset,Ce=this.offset();this.window.scrollTo($-Ce[0],ce-Ce[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const G=ac(this.window.history)||ac(Object.getPrototypeOf(this.window.history));return!(!G||!G.writable&&!G.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function ac(O){return Object.getOwnPropertyDescriptor(O,"scrollRestoration")}class mn{}},529:(Y,z,x)=>{"use strict";x.d(z,{JF:()=>zo,LE:()=>ve,TP:()=>Lt,WM:()=>J,Zn:()=>we,eN:()=>Fe,qT:()=>Je});var w=x(6895),i=x(4650),E=x(9646),M=x(9751),S=x(4351),k=x(9300),L=x(4004);class F{}class U{}class J{constructor(ae){this.normalizedNames=new Map,this.lazyUpdate=null,ae?this.lazyInit="string"==typeof ae?()=>{this.headers=new Map,ae.split("\n").forEach(te=>{const de=te.indexOf(":");if(de>0){const ke=te.slice(0,de),ut=ke.toLowerCase(),St=te.slice(de+1).trim();this.maybeSetNormalizedName(ke,ut),this.headers.has(ut)?this.headers.get(ut).push(St):this.headers.set(ut,[St])}})}:()=>{this.headers=new Map,Object.keys(ae).forEach(te=>{let de=ae[te];const ke=te.toLowerCase();"string"==typeof de&&(de=[de]),de.length>0&&(this.headers.set(ke,de),this.maybeSetNormalizedName(te,ke))})}:this.headers=new Map}has(ae){return this.init(),this.headers.has(ae.toLowerCase())}get(ae){this.init();const te=this.headers.get(ae.toLowerCase());return te&&te.length>0?te[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(ae){return this.init(),this.headers.get(ae.toLowerCase())||null}append(ae,te){return this.clone({name:ae,value:te,op:"a"})}set(ae,te){return this.clone({name:ae,value:te,op:"s"})}delete(ae,te){return this.clone({name:ae,value:te,op:"d"})}maybeSetNormalizedName(ae,te){this.normalizedNames.has(te)||this.normalizedNames.set(te,ae)}init(){this.lazyInit&&(this.lazyInit instanceof J?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(ae=>this.applyUpdate(ae)),this.lazyUpdate=null))}copyFrom(ae){ae.init(),Array.from(ae.headers.keys()).forEach(te=>{this.headers.set(te,ae.headers.get(te)),this.normalizedNames.set(te,ae.normalizedNames.get(te))})}clone(ae){const te=new J;return te.lazyInit=this.lazyInit&&this.lazyInit instanceof J?this.lazyInit:this,te.lazyUpdate=(this.lazyUpdate||[]).concat([ae]),te}applyUpdate(ae){const te=ae.name.toLowerCase();switch(ae.op){case"a":case"s":let de=ae.value;if("string"==typeof de&&(de=[de]),0===de.length)return;this.maybeSetNormalizedName(ae.name,te);const ke=("a"===ae.op?this.headers.get(te):void 0)||[];ke.push(...de),this.headers.set(te,ke);break;case"d":const ut=ae.value;if(ut){let St=this.headers.get(te);if(!St)return;St=St.filter(Xe=>-1===ut.indexOf(Xe)),0===St.length?(this.headers.delete(te),this.normalizedNames.delete(te)):this.headers.set(te,St)}else this.headers.delete(te),this.normalizedNames.delete(te)}}forEach(ae){this.init(),Array.from(this.normalizedNames.keys()).forEach(te=>ae(this.normalizedNames.get(te),this.headers.get(te)))}}class ne{encodeKey(ae){return me(ae)}encodeValue(ae){return me(ae)}decodeKey(ae){return decodeURIComponent(ae)}decodeValue(ae){return decodeURIComponent(ae)}}const re=/%(\d[a-f0-9])/gi,ie={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function me(De){return encodeURIComponent(De).replace(re,(ae,te)=>ie[te]??ae)}function be(De){return`${De}`}class ve{constructor(ae={}){if(this.updates=null,this.cloneFrom=null,this.encoder=ae.encoder||new ne,ae.fromString){if(ae.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function le(De,ae){const te=new Map;return De.length>0&&De.replace(/^\?/,"").split("&").forEach(ke=>{const ut=ke.indexOf("="),[St,Xe]=-1==ut?[ae.decodeKey(ke),""]:[ae.decodeKey(ke.slice(0,ut)),ae.decodeValue(ke.slice(ut+1))],ft=te.get(St)||[];ft.push(Xe),te.set(St,ft)}),te}(ae.fromString,this.encoder)}else ae.fromObject?(this.map=new Map,Object.keys(ae.fromObject).forEach(te=>{const de=ae.fromObject[te],ke=Array.isArray(de)?de.map(be):[be(de)];this.map.set(te,ke)})):this.map=null}has(ae){return this.init(),this.map.has(ae)}get(ae){this.init();const te=this.map.get(ae);return te?te[0]:null}getAll(ae){return this.init(),this.map.get(ae)||null}keys(){return this.init(),Array.from(this.map.keys())}append(ae,te){return this.clone({param:ae,value:te,op:"a"})}appendAll(ae){const te=[];return Object.keys(ae).forEach(de=>{const ke=ae[de];Array.isArray(ke)?ke.forEach(ut=>{te.push({param:de,value:ut,op:"a"})}):te.push({param:de,value:ke,op:"a"})}),this.clone(te)}set(ae,te){return this.clone({param:ae,value:te,op:"s"})}delete(ae,te){return this.clone({param:ae,value:te,op:"d"})}toString(){return this.init(),this.keys().map(ae=>{const te=this.encoder.encodeKey(ae);return this.map.get(ae).map(de=>te+"="+this.encoder.encodeValue(de)).join("&")}).filter(ae=>""!==ae).join("&")}clone(ae){const te=new ve({encoder:this.encoder});return te.cloneFrom=this.cloneFrom||this,te.updates=(this.updates||[]).concat(ae),te}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(ae=>this.map.set(ae,this.cloneFrom.map.get(ae))),this.updates.forEach(ae=>{switch(ae.op){case"a":case"s":const te=("a"===ae.op?this.map.get(ae.param):void 0)||[];te.push(be(ae.value)),this.map.set(ae.param,te);break;case"d":if(void 0===ae.value){this.map.delete(ae.param);break}{let de=this.map.get(ae.param)||[];const ke=de.indexOf(be(ae.value));-1!==ke&&de.splice(ke,1),de.length>0?this.map.set(ae.param,de):this.map.delete(ae.param)}}}),this.cloneFrom=this.updates=null)}}class Je{constructor(){this.map=new Map}set(ae,te){return this.map.set(ae,te),this}get(ae){return this.map.has(ae)||this.map.set(ae,ae.defaultValue()),this.map.get(ae)}delete(ae){return this.map.delete(ae),this}has(ae){return this.map.has(ae)}keys(){return this.map.keys()}}function xe(De){return typeof ArrayBuffer<"u"&&De instanceof ArrayBuffer}function Ee(De){return typeof Blob<"u"&&De instanceof Blob}function lt(De){return typeof FormData<"u"&&De instanceof FormData}class Be{constructor(ae,te,de,ke){let ut;if(this.url=te,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=ae.toUpperCase(),function He(De){switch(De){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||ke?(this.body=void 0!==de?de:null,ut=ke):ut=de,ut&&(this.reportProgress=!!ut.reportProgress,this.withCredentials=!!ut.withCredentials,ut.responseType&&(this.responseType=ut.responseType),ut.headers&&(this.headers=ut.headers),ut.context&&(this.context=ut.context),ut.params&&(this.params=ut.params)),this.headers||(this.headers=new J),this.context||(this.context=new Je),this.params){const St=this.params.toString();if(0===St.length)this.urlWithParams=te;else{const Xe=te.indexOf("?");this.urlWithParams=te+(-1===Xe?"?":XeLn.set(_t,ae.setHeaders[_t]),ft)),ae.setParams&&(Ri=Object.keys(ae.setParams).reduce((Ln,_t)=>Ln.set(_t,ae.setParams[_t]),Ri)),new Be(te,de,ut,{params:Ri,headers:ft,context:Et,reportProgress:Xe,responseType:ke,withCredentials:St})}}var Ie=(()=>((Ie=Ie||{})[Ie.Sent=0]="Sent",Ie[Ie.UploadProgress=1]="UploadProgress",Ie[Ie.ResponseHeader=2]="ResponseHeader",Ie[Ie.DownloadProgress=3]="DownloadProgress",Ie[Ie.Response=4]="Response",Ie[Ie.User=5]="User",Ie))();class he{constructor(ae,te=200,de="OK"){this.headers=ae.headers||new J,this.status=void 0!==ae.status?ae.status:te,this.statusText=ae.statusText||de,this.url=ae.url||null,this.ok=this.status>=200&&this.status<300}}class fe extends he{constructor(ae={}){super(ae),this.type=Ie.ResponseHeader}clone(ae={}){return new fe({headers:ae.headers||this.headers,status:void 0!==ae.status?ae.status:this.status,statusText:ae.statusText||this.statusText,url:ae.url||this.url||void 0})}}class we extends he{constructor(ae={}){super(ae),this.type=Ie.Response,this.body=void 0!==ae.body?ae.body:null}clone(ae={}){return new we({body:void 0!==ae.body?ae.body:this.body,headers:ae.headers||this.headers,status:void 0!==ae.status?ae.status:this.status,statusText:ae.statusText||this.statusText,url:ae.url||this.url||void 0})}}class _e extends he{constructor(ae){super(ae,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${ae.url||"(unknown url)"}`:`Http failure response for ${ae.url||"(unknown url)"}: ${ae.status} ${ae.statusText}`,this.error=ae.error||null}}function Ue(De,ae){return{body:ae,headers:De.headers,context:De.context,observe:De.observe,params:De.params,reportProgress:De.reportProgress,responseType:De.responseType,withCredentials:De.withCredentials}}let Fe=(()=>{class De{constructor(te){this.handler=te}request(te,de,ke={}){let ut;if(te instanceof Be)ut=te;else{let ft,Ri;ft=ke.headers instanceof J?ke.headers:new J(ke.headers),ke.params&&(Ri=ke.params instanceof ve?ke.params:new ve({fromObject:ke.params})),ut=new Be(te,de,void 0!==ke.body?ke.body:null,{headers:ft,context:ke.context,params:Ri,reportProgress:ke.reportProgress,responseType:ke.responseType||"json",withCredentials:ke.withCredentials})}const St=(0,E.of)(ut).pipe((0,S.b)(ft=>this.handler.handle(ft)));if(te instanceof Be||"events"===ke.observe)return St;const Xe=St.pipe((0,k.h)(ft=>ft instanceof we));switch(ke.observe||"body"){case"body":switch(ut.responseType){case"arraybuffer":return Xe.pipe((0,L.U)(ft=>{if(null!==ft.body&&!(ft.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return ft.body}));case"blob":return Xe.pipe((0,L.U)(ft=>{if(null!==ft.body&&!(ft.body instanceof Blob))throw new Error("Response is not a Blob.");return ft.body}));case"text":return Xe.pipe((0,L.U)(ft=>{if(null!==ft.body&&"string"!=typeof ft.body)throw new Error("Response is not a string.");return ft.body}));default:return Xe.pipe((0,L.U)(ft=>ft.body))}case"response":return Xe;default:throw new Error(`Unreachable: unhandled observe type ${ke.observe}}`)}}delete(te,de={}){return this.request("DELETE",te,de)}get(te,de={}){return this.request("GET",te,de)}head(te,de={}){return this.request("HEAD",te,de)}jsonp(te,de){return this.request("JSONP",te,{params:(new ve).append(de,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(te,de={}){return this.request("OPTIONS",te,de)}patch(te,de,ke={}){return this.request("PATCH",te,Ue(ke,de))}post(te,de,ke={}){return this.request("POST",te,Ue(ke,de))}put(te,de,ke={}){return this.request("PUT",te,Ue(ke,de))}}return De.\u0275fac=function(te){return new(te||De)(i.LFG(F))},De.\u0275prov=i.Yz7({token:De,factory:De.\u0275fac}),De})();class Mt{constructor(ae,te){this.next=ae,this.interceptor=te}handle(ae){return this.interceptor.intercept(ae,this.next)}}const Lt=new i.OlP("HTTP_INTERCEPTORS");let Jt=(()=>{class De{intercept(te,de){return de.handle(te)}}return De.\u0275fac=function(te){return new(te||De)},De.\u0275prov=i.Yz7({token:De,factory:De.\u0275fac}),De})();const Ws=/^\)\]\}',?\n/;let $s=(()=>{class De{constructor(te){this.xhrFactory=te}handle(te){if("JSONP"===te.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new M.y(de=>{const ke=this.xhrFactory.build();if(ke.open(te.method,te.urlWithParams),te.withCredentials&&(ke.withCredentials=!0),te.headers.forEach((zt,gt)=>ke.setRequestHeader(zt,gt.join(","))),te.headers.has("Accept")||ke.setRequestHeader("Accept","application/json, text/plain, */*"),!te.headers.has("Content-Type")){const zt=te.detectContentTypeHeader();null!==zt&&ke.setRequestHeader("Content-Type",zt)}if(te.responseType){const zt=te.responseType.toLowerCase();ke.responseType="json"!==zt?zt:"text"}const ut=te.serializeBody();let St=null;const Xe=()=>{if(null!==St)return St;const zt=ke.statusText||"OK",gt=new J(ke.getAllResponseHeaders()),qn=function Cd(De){return"responseURL"in De&&De.responseURL?De.responseURL:/^X-Request-URL:/m.test(De.getAllResponseHeaders())?De.getResponseHeader("X-Request-URL"):null}(ke)||te.url;return St=new fe({headers:gt,status:ke.status,statusText:zt,url:qn}),St},ft=()=>{let{headers:zt,status:gt,statusText:qn,url:Br}=Xe(),Yi=null;204!==gt&&(Yi=typeof ke.response>"u"?ke.responseText:ke.response),0===gt&&(gt=Yi?200:0);let Vr=gt>=200&><300;if("json"===te.responseType&&"string"==typeof Yi){const yr=Yi;Yi=Yi.replace(Ws,"");try{Yi=""!==Yi?JSON.parse(Yi):null}catch(or){Yi=yr,Vr&&(Vr=!1,Yi={error:or,text:Yi})}}Vr?(de.next(new we({body:Yi,headers:zt,status:gt,statusText:qn,url:Br||void 0})),de.complete()):de.error(new _e({error:Yi,headers:zt,status:gt,statusText:qn,url:Br||void 0}))},Ri=zt=>{const{url:gt}=Xe(),qn=new _e({error:zt,status:ke.status||0,statusText:ke.statusText||"Unknown Error",url:gt||void 0});de.error(qn)};let Et=!1;const Ln=zt=>{Et||(de.next(Xe()),Et=!0);let gt={type:Ie.DownloadProgress,loaded:zt.loaded};zt.lengthComputable&&(gt.total=zt.total),"text"===te.responseType&&!!ke.responseText&&(gt.partialText=ke.responseText),de.next(gt)},_t=zt=>{let gt={type:Ie.UploadProgress,loaded:zt.loaded};zt.lengthComputable&&(gt.total=zt.total),de.next(gt)};return ke.addEventListener("load",ft),ke.addEventListener("error",Ri),ke.addEventListener("timeout",Ri),ke.addEventListener("abort",Ri),te.reportProgress&&(ke.addEventListener("progress",Ln),null!==ut&&ke.upload&&ke.upload.addEventListener("progress",_t)),ke.send(ut),de.next({type:Ie.Sent}),()=>{ke.removeEventListener("error",Ri),ke.removeEventListener("abort",Ri),ke.removeEventListener("load",ft),ke.removeEventListener("timeout",Ri),te.reportProgress&&(ke.removeEventListener("progress",Ln),null!==ut&&ke.upload&&ke.upload.removeEventListener("progress",_t)),ke.readyState!==ke.DONE&&ke.abort()}})}}return De.\u0275fac=function(te){return new(te||De)(i.LFG(w.JF))},De.\u0275prov=i.Yz7({token:De,factory:De.\u0275fac}),De})();const Ir=new i.OlP("XSRF_COOKIE_NAME"),Or=new i.OlP("XSRF_HEADER_NAME");class fs{}let Zs=(()=>{class De{constructor(te,de,ke){this.doc=te,this.platform=de,this.cookieName=ke,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const te=this.doc.cookie||"";return te!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,w.Mx)(te,this.cookieName),this.lastCookieString=te),this.lastToken}}return De.\u0275fac=function(te){return new(te||De)(i.LFG(w.K0),i.LFG(i.Lbi),i.LFG(Ir))},De.\u0275prov=i.Yz7({token:De,factory:De.\u0275fac}),De})(),dt=(()=>{class De{constructor(te,de){this.tokenService=te,this.headerName=de}intercept(te,de){const ke=te.url.toLowerCase();if("GET"===te.method||"HEAD"===te.method||ke.startsWith("http://")||ke.startsWith("https://"))return de.handle(te);const ut=this.tokenService.getToken();return null!==ut&&!te.headers.has(this.headerName)&&(te=te.clone({headers:te.headers.set(this.headerName,ut)})),de.handle(te)}}return De.\u0275fac=function(te){return new(te||De)(i.LFG(fs),i.LFG(Or))},De.\u0275prov=i.Yz7({token:De,factory:De.\u0275fac}),De})(),Qi=(()=>{class De{constructor(te,de){this.backend=te,this.injector=de,this.chain=null}handle(te){if(null===this.chain){const de=this.injector.get(Lt,[]);this.chain=de.reduceRight((ke,ut)=>new Mt(ke,ut),this.backend)}return this.chain.handle(te)}}return De.\u0275fac=function(te){return new(te||De)(i.LFG(U),i.LFG(i.zs3))},De.\u0275prov=i.Yz7({token:De,factory:De.\u0275fac}),De})(),sn=(()=>{class De{static disable(){return{ngModule:De,providers:[{provide:dt,useClass:Jt}]}}static withOptions(te={}){return{ngModule:De,providers:[te.cookieName?{provide:Ir,useValue:te.cookieName}:[],te.headerName?{provide:Or,useValue:te.headerName}:[]]}}}return De.\u0275fac=function(te){return new(te||De)},De.\u0275mod=i.oAB({type:De}),De.\u0275inj=i.cJS({providers:[dt,{provide:Lt,useExisting:dt,multi:!0},{provide:fs,useClass:Zs},{provide:Ir,useValue:"XSRF-TOKEN"},{provide:Or,useValue:"X-XSRF-TOKEN"}]}),De})(),zo=(()=>{class De{}return De.\u0275fac=function(te){return new(te||De)},De.\u0275mod=i.oAB({type:De}),De.\u0275inj=i.cJS({providers:[Fe,{provide:F,useClass:Qi},$s,{provide:U,useExisting:$s}],imports:[sn.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),De})()},4650:(Y,z,x)=>{"use strict";x.d(z,{$8M:()=>Fd,$Z:()=>du,AFp:()=>Lo,ALo:()=>KT,AaK:()=>F,AsE:()=>Bm,B6R:()=>Br,BQk:()=>cp,CHM:()=>Oi,CRH:()=>sC,CZH:()=>Wu,CqO:()=>$b,D6c:()=>qE,DdM:()=>Wy,Dn7:()=>XT,EJc:()=>O0,EiD:()=>x_,EpF:()=>Mu,F$t:()=>Jb,F4k:()=>vm,FYo:()=>eu,FiY:()=>hl,G48:()=>PE,Gf:()=>ad,GfV:()=>Uh,GkF:()=>Am,Gpc:()=>Q,Gre:()=>cy,Hsn:()=>Qb,Ikx:()=>gp,JOm:()=>xs,JVY:()=>Uw,Jf7:()=>EA,KtG:()=>gi,L6k:()=>zw,LAX:()=>Gw,LFG:()=>zi,LSH:()=>Bf,Lbi:()=>TC,Lck:()=>kr,MAs:()=>Gb,MMx:()=>dg,NdJ:()=>dp,O4$:()=>Gr,OlP:()=>ai,Oqu:()=>Om,PXZ:()=>ME,Q6J:()=>Cm,QGY:()=>Hl,QP$:()=>od,QbO:()=>R0,Qsj:()=>yl,R0b:()=>Rr,RDi:()=>I,Rgc:()=>Fu,SBq:()=>vs,Sil:()=>B0,Suo:()=>Uu,TTD:()=>Xs,TgZ:()=>wm,Tol:()=>iy,Udp:()=>Pm,VKq:()=>mg,W1O:()=>f0,WFA:()=>Ls,WLB:()=>$y,XFs:()=>dt,Xpm:()=>qn,Xts:()=>Nh,Y36:()=>Ss,YKP:()=>Ny,YNc:()=>op,Yjl:()=>ms,Yz7:()=>Qt,ZZ4:()=>Vg,_Bn:()=>og,_UZ:()=>Wb,_Vd:()=>es,_c5:()=>UE,_uU:()=>Im,aQg:()=>NC,c2e:()=>L0,cJS:()=>Si,cg1:()=>Gm,d8E:()=>_p,dDg:()=>q0,dqk:()=>de,eBb:()=>qw,eFA:()=>Qu,ekj:()=>km,eoX:()=>ar,f3M:()=>Dh,g9A:()=>$u,h0i:()=>Po,hGG:()=>zE,hij:()=>Pr,iGM:()=>aC,ifc:()=>te,ip1:()=>Hg,kL8:()=>Wm,kcU:()=>gh,lG2:()=>wd,lcZ:()=>Ro,lqb:()=>_l,lri:()=>DC,mCW:()=>Zd,n5z:()=>Bd,n_E:()=>Lp,oAB:()=>yr,oJD:()=>Vh,oxw:()=>xm,pB0:()=>Ww,q3G:()=>qi,qLn:()=>pr,qOj:()=>gm,qZA:()=>lp,qzn:()=>Ka,rWj:()=>nn,s9C:()=>Vn,sBO:()=>tx,sIi:()=>Wc,s_b:()=>Op,soG:()=>Zu,tb:()=>xC,tp0:()=>mo,uIk:()=>jb,vHH:()=>ie,vpe:()=>Bs,wAp:()=>ht,xDo:()=>pp,xi3:()=>bg,xp6:()=>KA,ynx:()=>xu,z2F:()=>zp,z3N:()=>Qa,zSh:()=>jf,zs3:()=>Vc});var w=x(7579),i=x(727),E=x(9751),M=x(6451),S=x(3099);function k(p){for(let m in p)if(p[m]===k)return m;throw Error("Could not find renamed property on target object.")}function L(p,m){for(const g in m)m.hasOwnProperty(g)&&!p.hasOwnProperty(g)&&(p[g]=m[g])}function F(p){if("string"==typeof p)return p;if(Array.isArray(p))return"["+p.map(F).join(", ")+"]";if(null==p)return""+p;if(p.overriddenName)return`${p.overriddenName}`;if(p.name)return`${p.name}`;const m=p.toString();if(null==m)return""+m;const g=m.indexOf("\n");return-1===g?m:m.substring(0,g)}function U(p,m){return null==p||""===p?null===m?"":m:null==m||""===m?p:p+" "+m}const J=k({__forward_ref__:k});function Q(p){return p.__forward_ref__=Q,p.toString=function(){return F(this())},p}function ne(p){return le(p)?p():p}function le(p){return"function"==typeof p&&p.hasOwnProperty(J)&&p.__forward_ref__===Q}class ie extends Error{constructor(m,g){super(function me(p,m){return`NG0${Math.abs(p)}${m?": "+m.trim():""}`}(m,g)),this.code=m}}function be(p){return"string"==typeof p?p:null==p?"":String(p)}function xe(p,m){throw new ie(-201,!1)}function Jt(p,m){null==p&&function Qe(p,m,g,_){throw new Error(`ASSERTION ERROR: ${p}`+(null==_?"":` [Expected=> ${g} ${_} ${m} <=Actual]`))}(m,p,null,"!=")}function Qt(p){return{token:p.token,providedIn:p.providedIn||null,factory:p.factory,value:void 0}}function Si(p){return{providers:p.providers||[],imports:p.imports||[]}}function sa(p){return Xl(p,Ir)||Xl(p,fs)}function Xl(p,m){return p.hasOwnProperty(m)?p[m]:null}function $s(p){return p&&(p.hasOwnProperty(Or)||p.hasOwnProperty(Zs))?p[Or]:null}const Ir=k({\u0275prov:k}),Or=k({\u0275inj:k}),fs=k({ngInjectableDef:k}),Zs=k({ngInjectorDef:k});var dt=(()=>((dt=dt||{})[dt.Default=0]="Default",dt[dt.Host=1]="Host",dt[dt.Self=2]="Self",dt[dt.SkipSelf=4]="SkipSelf",dt[dt.Optional=8]="Optional",dt))();let Qi;function Wt(p){const m=Qi;return Qi=p,m}function sn(p,m,g){const _=sa(p);return _&&"root"==_.providedIn?void 0===_.value?_.value=_.factory():_.value:g&dt.Optional?null:void 0!==m?m:void xe(F(p))}function sr(p){return{toString:p}.toString()}var Ut=(()=>((Ut=Ut||{})[Ut.OnPush=0]="OnPush",Ut[Ut.Default=1]="Default",Ut))(),te=(()=>{return(p=te||(te={}))[p.Emulated=0]="Emulated",p[p.None=2]="None",p[p.ShadowDom=3]="ShadowDom",te;var p})();const de=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),St={},Xe=[],ft=k({\u0275cmp:k}),Ri=k({\u0275dir:k}),Et=k({\u0275pipe:k}),Ln=k({\u0275mod:k}),_t=k({\u0275fac:k}),zt=k({__NG_ELEMENT_ID__:k});let gt=0;function qn(p){return sr(()=>{const g=!0===p.standalone,_={},y={type:p.type,providersResolver:null,decls:p.decls,vars:p.vars,factory:null,template:p.template||null,consts:p.consts||null,ngContentSelectors:p.ngContentSelectors,hostBindings:p.hostBindings||null,hostVars:p.hostVars||0,hostAttrs:p.hostAttrs||null,contentQueries:p.contentQueries||null,declaredInputs:_,inputs:null,outputs:null,exportAs:p.exportAs||null,onPush:p.changeDetection===Ut.OnPush,directiveDefs:null,pipeDefs:null,standalone:g,dependencies:g&&p.dependencies||null,getStandaloneInjector:null,selectors:p.selectors||Xe,viewQuery:p.viewQuery||null,features:p.features||null,data:p.data||{},encapsulation:p.encapsulation||te.Emulated,id:"c"+gt++,styles:p.styles||Xe,_:null,setInput:null,schemas:p.schemas||null,tView:null},v=p.dependencies,D=p.features;return y.inputs=oa(p.inputs,_),y.outputs=oa(p.outputs),D&&D.forEach(P=>P(y)),y.directiveDefs=v?()=>("function"==typeof v?v():v).map(Yi).filter(Vr):null,y.pipeDefs=v?()=>("function"==typeof v?v():v).map(Ki).filter(Vr):null,y})}function Br(p,m,g){const _=p.\u0275cmp;_.directiveDefs=()=>("function"==typeof m?m():m).map(Yi),_.pipeDefs=()=>("function"==typeof g?g():g).map(Ki)}function Yi(p){return $t(p)||Wi(p)}function Vr(p){return null!==p}function yr(p){return sr(()=>({type:p.type,bootstrap:p.bootstrap||Xe,declarations:p.declarations||Xe,imports:p.imports||Xe,exports:p.exports||Xe,transitiveCompileScopes:null,schemas:p.schemas||null,id:p.id||null}))}function oa(p,m){if(null==p)return St;const g={};for(const _ in p)if(p.hasOwnProperty(_)){let y=p[_],v=y;Array.isArray(y)&&(v=y[1],y=y[0]),g[y]=_,m&&(m[y]=v)}return g}const wd=qn;function ms(p){return{type:p.type,name:p.name,factory:null,pure:!1!==p.pure,standalone:!0===p.standalone,onDestroy:p.type.prototype.ngOnDestroy||null}}function $t(p){return p[ft]||null}function Wi(p){return p[Ri]||null}function Ki(p){return p[Et]||null}function Ye(p,m){const g=p[Ln]||null;if(!g&&!0===m)throw new Error(`Type ${F(p)} does not have '\u0275mod' property.`);return g}function Xi(p){return Array.isArray(p)&&"object"==typeof p[1]}function Sn(p){return Array.isArray(p)&&!0===p[1]}function Gn(p){return 0!=(8&p.flags)}function Yr(p){return 2==(2&p.flags)}function cr(p){return 1==(1&p.flags)}function En(p){return null!==p.template}function ua(p){return 0!=(256&p[2])}function pa(p,m){return p.hasOwnProperty(_t)?p[_t]:null}class vd{constructor(m,g,_){this.previousValue=m,this.currentValue=g,this.firstChange=_}isFirstChange(){return this.firstChange}}function Xs(){return tc}function tc(p){return p.type.prototype.ngOnChanges&&(p.setInput=Go),ic}function ic(){const p=to(this),m=p?.current;if(m){const g=p.previous;if(g===St)p.previous=m;else for(let _ in m)g[_]=m[_];p.current=null,this.ngOnChanges(m)}}function Go(p,m,g,_){const y=to(p)||function Wo(p,m){return p[eo]=m}(p,{previous:St,current:null}),v=y.current||(y.current={}),D=y.previous,P=this.declaredInputs[g],R=D[P];v[P]=new vd(R&&R.currentValue,m,D===St),p[_]=m}Xs.ngInherit=!0;const eo="__ngSimpleChanges__";function to(p){return p[eo]||null}function Ui(p){for(;Array.isArray(p);)p=p[0];return p}function fa(p,m){return Ui(m[p])}function $n(p,m){return Ui(m[p.index])}function sc(p,m){return p.data[m]}function no(p,m){return p[m]}function mn(p,m){const g=m[p];return Xi(g)?g:g[0]}function O(p){return 4==(4&p[2])}function G(p){return 64==(64&p[2])}function $(p,m){return null==m?null:p[m]}function ce(p){p[18]=0}function Ce(p,m){p[5]+=m;let g=p,_=p[3];for(;null!==_&&(1===m&&1===g[5]||-1===m&&0===g[5]);)_[5]+=m,g=_,_=_[3]}const ge={lFrame:qr(null),bindingsEnabled:!0};function ln(){return ge.bindingsEnabled}function Me(){return ge.lFrame.lView}function Ze(){return ge.lFrame.tView}function Oi(p){return ge.lFrame.contextLView=p,p[8]}function gi(p){return ge.lFrame.contextLView=null,p}function Ai(){let p=dr();for(;null!==p&&64===p.type;)p=p.parent;return p}function dr(){return ge.lFrame.currentTNode}function vi(p,m){const g=ge.lFrame;g.currentTNode=p,g.isParent=m}function wr(){return ge.lFrame.isParent}function Dt(){ge.lFrame.isParent=!1}function ri(){const p=ge.lFrame;let m=p.bindingRootIndex;return-1===m&&(m=p.bindingRootIndex=p.tView.bindingStartIndex),m}function Cn(){return ge.lFrame.bindingIndex}function cn(){return ge.lFrame.bindingIndex++}function zr(p){const m=ge.lFrame,g=m.bindingIndex;return m.bindingIndex=m.bindingIndex+p,g}function hf(p,m){const g=ge.lFrame;g.bindingIndex=g.bindingRootIndex=p,cc(m)}function cc(p){ge.lFrame.currentDirectiveIndex=p}function dc(p){const m=ge.lFrame.currentDirectiveIndex;return-1===m?null:p[m]}function xd(){return ge.lFrame.currentQueryIndex}function ma(p){ge.lFrame.currentQueryIndex=p}function Zo(p){const m=p[1];return 2===m.type?m.declTNode:1===m.type?p[6]:null}function Jo(p,m,g){if(g&dt.SkipSelf){let y=m,v=p;for(;!(y=y.parent,null!==y||g&dt.Host||(y=Zo(v),null===y||(v=v[15],10&y.type))););if(null===y)return!1;m=y,p=v}const _=ge.lFrame=Qo();return _.currentTNode=m,_.lView=p,!0}function kt(p){const m=Qo(),g=p[1];ge.lFrame=m,m.currentTNode=g.firstChild,m.lView=p,m.tView=g,m.contextLView=p,m.bindingIndex=g.bindingStartIndex,m.inI18n=!1}function Qo(){const p=ge.lFrame,m=null===p?null:p.child;return null===m?qr(p):m}function qr(p){const m={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:p,child:null,inI18n:!1};return null!==p&&(p.child=m),m}function uc(){const p=ge.lFrame;return ge.lFrame=p.parent,p.currentTNode=null,p.lView=null,p}const fh=uc;function Zn(){const p=uc();p.isParent=!0,p.tView=null,p.selectedIndex=-1,p.contextLView=null,p.elementDepthCount=0,p.currentDirectiveIndex=-1,p.currentNamespace=null,p.bindingRootIndex=-1,p.bindingIndex=-1,p.currentQueryIndex=0}function dn(){return ge.lFrame.selectedIndex}function ga(p){ge.lFrame.selectedIndex=p}function Ot(){const p=ge.lFrame;return sc(p.tView,p.selectedIndex)}function Gr(){ge.lFrame.currentNamespace="svg"}function gh(){!function pf(){ge.lFrame.currentNamespace=null}()}function pc(p,m){for(let g=m.directiveStart,_=m.directiveEnd;g<_;g++){const v=p.data[g].type.prototype,{ngAfterContentInit:D,ngAfterContentChecked:P,ngAfterViewInit:R,ngAfterViewChecked:N,ngOnDestroy:q}=v;D&&(p.contentHooks||(p.contentHooks=[])).push(-g,D),P&&((p.contentHooks||(p.contentHooks=[])).push(g,P),(p.contentCheckHooks||(p.contentCheckHooks=[])).push(g,P)),R&&(p.viewHooks||(p.viewHooks=[])).push(-g,R),N&&((p.viewHooks||(p.viewHooks=[])).push(g,N),(p.viewCheckHooks||(p.viewCheckHooks=[])).push(g,N)),null!=q&&(p.destroyHooks||(p.destroyHooks=[])).push(g,q)}}function Ko(p,m,g){Sd(p,m,3,g)}function fc(p,m,g,_){(3&p[2])===g&&Sd(p,m,g,_)}function Xo(p,m){let g=p[2];(3&g)===m&&(g&=2047,g+=1,p[2]=g)}function Sd(p,m,g,_){const v=_??-1,D=m.length-1;let P=0;for(let R=void 0!==_?65535&p[18]:0;R=_)break}else m[R]<0&&(p[18]+=65536),(P>11>16&&(3&p[2])===m){p[2]+=2048;try{v.call(P)}finally{}}}else try{v.call(P)}finally{}}class Ct{constructor(m,g,_){this.factory=m,this.resolving=!1,this.canSeeViewProviders=g,this.injectImpl=_}}function Ua(p,m,g){let _=0;for(;_m){D=v-1;break}}}for(;v>16}(p),_=m;for(;g>0;)_=_[15],g--;return _}let Pd=!0;function yc(p){const m=Pd;return Pd=p,m}let gf=0;const Wr={};function bs(p,m){const g=Rd(p,m);if(-1!==g)return g;const _=m[1];_.firstCreatePass&&(p.injectorIndex=m.length,so(_.data,p),so(m,null),so(_.blueprint,null));const y=$r(p,m),v=p.injectorIndex;if(tl(y)){const D=_s(y),P=ao(y,m),R=P[1].data;for(let N=0;N<8;N++)m[v+N]=P[D+N]|R[D+N]}return m[v+8]=y,v}function so(p,m){p.push(0,0,0,0,0,0,0,0,m)}function Rd(p,m){return-1===p.injectorIndex||p.parent&&p.parent.injectorIndex===p.injectorIndex||null===m[p.injectorIndex+8]?-1:p.injectorIndex}function $r(p,m){if(p.parent&&-1!==p.parent.injectorIndex)return p.parent.injectorIndex;let g=0,_=null,y=m;for(;null!==y;){if(_=co(y),null===_)return-1;if(g++,y=y[15],-1!==_.injectorIndex)return _.injectorIndex|g<<16}return-1}function oo(p,m,g){!function _f(p,m,g){let _;"string"==typeof g?_=g.charCodeAt(0)||0:g.hasOwnProperty(zt)&&(_=g[zt]),null==_&&(_=g[zt]=gf++);const y=255&_;m.data[p+(y>>5)]|=1<=0?255&m:yf:m}(g);if("function"==typeof v){if(!Jo(m,p,_))return _&dt.Host?Ld(y,0,_):Id(m,g,_,y);try{const D=v(_);if(null!=D||_&dt.Optional)return D;xe()}finally{fh()}}else if("number"==typeof v){let D=null,P=Rd(p,m),R=-1,N=_&dt.Host?m[16][6]:null;for((-1===P||_&dt.SkipSelf)&&(R=-1===P?$r(p,m):m[P+8],-1!==R&&ys(_,!1)?(D=m[1],P=_s(R),m=ao(R,m)):P=-1);-1!==P;){const q=m[1];if(Cc(v,P,q.data)){const ee=za(P,m,g,D,_,N);if(ee!==Wr)return ee}R=m[P+8],-1!==R&&ys(_,m[1].data[P+8]===N)&&Cc(v,P,m)?(D=q,P=_s(R),m=ao(R,m)):P=-1}}return y}function za(p,m,g,_,y,v){const D=m[1],P=D.data[p+8],q=Zr(P,D,g,null==_?Yr(P)&&Pd:_!=D&&0!=(3&P.type),y&dt.Host&&v===P);return null!==q?vr(m,D,q,P):Wr}function Zr(p,m,g,_,y){const v=p.providerIndexes,D=m.data,P=1048575&v,R=p.directiveStart,q=v>>20,oe=y?P+q:p.directiveEnd;for(let pe=_?P:P+q;pe=R&&Se.type===g)return pe}if(y){const pe=D[R];if(pe&&En(pe)&&pe.type===g)return R}return null}function vr(p,m,g,_){let y=p[g];const v=m.data;if(function ro(p){return p instanceof Ct}(y)){const D=y;D.resolving&&function $e(p,m){const g=m?`. Dependency path: ${m.join(" > ")} > ${p}`:"";throw new ie(-200,`Circular dependency in DI detected for ${p}${g}`)}(function ve(p){return"function"==typeof p?p.name||p.toString():"object"==typeof p&&null!=p&&"function"==typeof p.type?p.type.name||p.type.toString():be(p)}(v[g]));const P=yc(D.canSeeViewProviders);D.resolving=!0;const R=D.injectImpl?Wt(D.injectImpl):null;Jo(p,_,dt.Default);try{y=p[g]=D.factory(void 0,v,p,_),m.firstCreatePass&&g>=_.directiveStart&&function bh(p,m,g){const{ngOnChanges:_,ngOnInit:y,ngDoCheck:v}=m.type.prototype;if(_){const D=tc(m);(g.preOrderHooks||(g.preOrderHooks=[])).push(p,D),(g.preOrderCheckHooks||(g.preOrderCheckHooks=[])).push(p,D)}y&&(g.preOrderHooks||(g.preOrderHooks=[])).push(0-p,y),v&&((g.preOrderHooks||(g.preOrderHooks=[])).push(p,v),(g.preOrderCheckHooks||(g.preOrderCheckHooks=[])).push(p,v))}(g,v[g],m)}finally{null!==R&&Wt(R),yc(P),D.resolving=!1,fh()}}return y}function Cc(p,m,g){return!!(g[m+(p>>5)]&1<{const m=p.prototype.constructor,g=m[_t]||Vd(m),_=Object.prototype;let y=Object.getPrototypeOf(p.prototype).constructor;for(;y&&y!==_;){const v=y[_t]||Vd(y);if(v&&v!==g)return v;y=Object.getPrototypeOf(y)}return v=>new v})}function Vd(p){return le(p)?()=>{const m=Vd(ne(p));return m&&m()}:pa(p)}function co(p){const m=p[1],g=m.type;return 2===g?m.declTNode:1===g?p[6]:null}function Fd(p){return function bf(p,m){if("class"===m)return p.classes;if("style"===m)return p.styles;const g=p.attrs;if(g){const _=g.length;let y=0;for(;y<_;){const v=g[y];if(Hd(v))break;if(0===v)y+=2;else if("number"==typeof v)for(y++;y<_&&"string"==typeof g[y];)y++;else{if(v===m)return g[y+1];y+=2}}}return null}(Ai(),p)}const uo="__parameters__";function Ga(p,m,g){return sr(()=>{const _=function Tr(p){return function(...g){if(p){const _=p(...g);for(const y in _)this[y]=_[y]}}}(m);function y(...v){if(this instanceof y)return _.apply(this,v),this;const D=new y(...v);return P.annotation=D,P;function P(R,N,q){const ee=R.hasOwnProperty(uo)?R[uo]:Object.defineProperty(R,uo,{value:[]})[uo];for(;ee.length<=q;)ee.push(null);return(ee[q]=ee[q]||[]).push(D),R}}return g&&(y.prototype=Object.create(g.prototype)),y.prototype.ngMetadataName=p,y.annotationCls=y,y})}class ai{constructor(m,g){this._desc=m,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof g?this.__NG_ELEMENT_ID__=g:void 0!==g&&(this.\u0275prov=Qt({token:this,providedIn:g.providedIn||"root",factory:g.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Dn(p,m){void 0===m&&(m=p);for(let g=0;gArray.isArray(g)?gn(g,m):m(g))}function $a(p,m,g){m>=p.length?p.push(g):p.splice(m,0,g)}function sl(p,m){return m>=p.length-1?p.pop():p.splice(m,1)[0]}function ho(p,m){const g=[];for(let _=0;_=0?p[1|_]=g:(_=~_,function Th(p,m,g,_){let y=p.length;if(y==m)p.push(g,_);else if(1===y)p.push(_,p[0]),p[0]=g;else{for(y--,p.push(p[y-1],p[y]);y>m;)p[y]=p[y-2],y--;p[m]=g,p[m+1]=_}}(p,_,m,g)),_}function Tc(p,m){const g=Za(p,m);if(g>=0)return p[1|g]}function Za(p,m){return function xh(p,m,g){let _=0,y=p.length>>g;for(;y!==_;){const v=_+(y-_>>1),D=p[v<m?y=v:_=v+1}return~(y<p,createScript:p=>p,createScriptURL:p=>p})}catch{}return W}()?.createHTML(p)||p}function Ca(p){return function Bn(){if(void 0===Zi&&(Zi=null,de.trustedTypes))try{Zi=de.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:p=>p,createScript:p=>p,createScriptURL:p=>p})}catch{}return Zi}()?.createHTML(p)||p}class gl{constructor(m){this.changingThisBreaksApplicationSecurity=m}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Lh extends gl{getTypeName(){return"HTML"}}class b_ extends gl{getTypeName(){return"Style"}}class y_ extends gl{getTypeName(){return"Script"}}class Ih extends gl{getTypeName(){return"URL"}}class Oh extends gl{getTypeName(){return"ResourceURL"}}function Qa(p){return p instanceof gl?p.changingThisBreaksApplicationSecurity:p}function Ka(p,m){const g=function C_(p){return p instanceof gl&&p.getTypeName()||null}(p);if(null!=g&&g!==m){if("ResourceURL"===g&&"URL"===m)return!0;throw new Error(`Required a safe ${m}, got a ${g} (see https://g.co/ng/security#xss)`)}return g===m}function Uw(p){return new Lh(p)}function zw(p){return new b_(p)}function qw(p){return new y_(p)}function Gw(p){return new Ih(p)}function Ww(p){return new Oh(p)}class $w{constructor(m){this.inertDocumentHelper=m}getInertBodyElement(m){m=""+m;try{const g=(new window.DOMParser).parseFromString(ye(m),"text/html").body;return null===g?this.inertDocumentHelper.getInertBodyElement(m):(g.removeChild(g.firstChild),g)}catch{return null}}}class Zw{constructor(m){if(this.defaultDoc=m,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const g=this.inertDocument.createElement("html");this.inertDocument.appendChild(g);const _=this.inertDocument.createElement("body");g.appendChild(_)}}getInertBodyElement(m){const g=this.inertDocument.createElement("template");if("content"in g)return g.innerHTML=ye(m),g;const _=this.inertDocument.createElement("body");return _.innerHTML=ye(m),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(_),_}stripCustomNsAttrs(m){const g=m.attributes;for(let y=g.length-1;0Zd(m.trim())).join(", ")),this.buf.push(" ",D,'="',T_(R),'"')}var p;return this.buf.push(">"),!0}endElement(m){const g=m.nodeName.toLowerCase();kf.hasOwnProperty(g)&&!Df.hasOwnProperty(g)&&(this.buf.push(""))}chars(m){this.buf.push(T_(m))}checkClobberedElement(m,g){if(g&&(m.compareDocumentPosition(g)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${m.outerHTML}`);return g}}const v_=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,eA=/([^\#-~ |!])/g;function T_(p){return p.replace(/&/g,"&").replace(v_,function(m){return"&#"+(1024*(m.charCodeAt(0)-55296)+(m.charCodeAt(1)-56320)+65536)+";"}).replace(eA,function(m){return"&#"+m.charCodeAt(0)+";"}).replace(//g,">")}let Bh;function x_(p,m){let g=null;try{Bh=Bh||function $d(p){const m=new Zw(p);return function Jw(){try{return!!(new window.DOMParser).parseFromString(ye(""),"text/html")}catch{return!1}}()?new $w(m):m}(p);let _=m?String(m):"";g=Bh.getInertBodyElement(_);let y=5,v=_;do{if(0===y)throw new Error("Failed to sanitize html because the input is unstable");y--,_=v,v=g.innerHTML,g=Bh.getInertBodyElement(_)}while(_!==v);return ye((new A_).sanitizeChildren(Jd(g)||g))}finally{if(g){const _=Jd(g)||g;for(;_.firstChild;)_.removeChild(_.firstChild)}}}function Jd(p){return"content"in p&&function M_(p){return p.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===p.nodeName}(p)?p.content:null}var qi=(()=>((qi=qi||{})[qi.NONE=0]="NONE",qi[qi.HTML=1]="HTML",qi[qi.STYLE=2]="STYLE",qi[qi.SCRIPT=3]="SCRIPT",qi[qi.URL=4]="URL",qi[qi.RESOURCE_URL=5]="RESOURCE_URL",qi))();function Vh(p){const m=Kd();return m?Ca(m.sanitize(qi.HTML,p)||""):Ka(p,"HTML")?Ca(Qa(p)):x_(function j(){return void 0!==H?H:typeof document<"u"?document:void 0}(),be(p))}function Bf(p){const m=Kd();return m?m.sanitize(qi.URL,p)||"":Ka(p,"URL")?Qa(p):Zd(be(p))}function Kd(){const p=Me();return p&&p[12]}const Nh=new ai("ENVIRONMENT_INITIALIZER"),bo=new ai("INJECTOR",-1),Xd=new ai("INJECTOR_DEF_TYPES");class S_{get(m,g=_a){if(g===_a){const _=new Error(`NullInjectorError: No provider for ${F(m)}!`);throw _.name="NullInjectorError",_}return g}}function lA(...p){return{\u0275providers:Vf(0,p)}}function Vf(p,...m){const g=[],_=new Set;let y;return gn(m,v=>{const D=v;Nf(D,g,[],_)&&(y||(y=[]),y.push(D))}),void 0!==y&&cA(y,g),g}function cA(p,m){for(let g=0;g{m.push(v)})}}function Nf(p,m,g,_){if(!(p=ne(p)))return!1;let y=null,v=$s(p);const D=!v&&$t(p);if(v||D){if(D&&!D.standalone)return!1;y=p}else{const R=p.ngModule;if(v=$s(R),!v)return!1;y=R}const P=_.has(y);if(D){if(P)return!1;if(_.add(y),D.dependencies){const R="function"==typeof D.dependencies?D.dependencies():D.dependencies;for(const N of R)Nf(N,m,g,_)}}else{if(!v)return!1;{if(null!=v.imports&&!P){let N;_.add(y);try{gn(v.imports,q=>{Nf(q,m,g,_)&&(N||(N=[]),N.push(q))})}finally{}void 0!==N&&cA(N,m)}if(!P){const N=pa(y)||(()=>new y);m.push({provide:y,useFactory:N,deps:Xe},{provide:Xd,useValue:y,multi:!0},{provide:Nh,useValue:()=>zi(y),multi:!0})}const R=v.providers;null==R||P||gn(R,q=>{m.push(q)})}}return y!==p&&void 0!==p.providers}const E_=k({provide:String,useValue:k});function Ff(p){return null!==p&&"object"==typeof p&&E_ in p}function yo(p){return"function"==typeof p}const jf=new ai("Set Injector scope."),Fh={},hA={};let Pc;function jh(){return void 0===Pc&&(Pc=new S_),Pc}class _l{}class H_ extends _l{constructor(m,g,_,y){super(),this.parent=g,this.source=_,this.scopes=y,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,qf(m,D=>this.processProvider(D)),this.records.set(bo,kc(void 0,this)),y.has("environment")&&this.records.set(_l,kc(void 0,this));const v=this.records.get(jf);null!=v&&"string"==typeof v.value&&this.scopes.add(v.value),this.injectorDefTypes=new Set(this.get(Xd.multi,Xe,dt.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const m of this._ngOnDestroyHooks)m.ngOnDestroy();for(const m of this._onDestroyHooks)m()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(m){this._onDestroyHooks.push(m)}runInContext(m){this.assertNotDestroyed();const g=dl(this),_=Wt(void 0);try{return m()}finally{dl(g),Wt(_)}}get(m,g=_a,_=dt.Default){this.assertNotDestroyed();const y=dl(this),v=Wt(void 0);try{if(!(_&dt.SkipSelf)){let P=this.records.get(m);if(void 0===P){const R=function mA(p){return"function"==typeof p||"object"==typeof p&&p instanceof ai}(m)&&sa(m);P=R&&this.injectableDefInScope(R)?kc(Yf(m),Fh):null,this.records.set(m,P)}if(null!=P)return this.hydrate(m,P)}return(_&dt.Self?jh():this.parent).get(m,g=_&dt.Optional&&g===_a?null:g)}catch(D){if("NullInjectorError"===D.name){if((D[Pn]=D[Pn]||[]).unshift(F(m)),y)throw D;return function hr(p,m,g,_){const y=p[Pn];throw m[qd]&&y.unshift(m[qd]),p.message=function Hh(p,m,g,_=null){p=p&&"\n"===p.charAt(0)&&"\u0275"==p.charAt(1)?p.slice(2):p;let y=F(m);if(Array.isArray(m))y=m.map(F).join(" -> ");else if("object"==typeof m){let v=[];for(let D in m)if(m.hasOwnProperty(D)){let P=m[D];v.push(D+":"+("string"==typeof P?JSON.stringify(P):F(P)))}y=`{${v.join(", ")}}`}return`${g}${_?"("+_+")":""}[${y}]: ${p.replace(Sh,"\n ")}`}("\n"+p.message,y,g,_),p.ngTokenPath=y,p[Pn]=null,p}(D,m,"R3InjectorError",this.source)}throw D}finally{Wt(v),dl(y)}}resolveInjectorInitializers(){const m=dl(this),g=Wt(void 0);try{const _=this.get(Nh.multi,Xe,dt.Self);for(const y of _)y()}finally{dl(m),Wt(g)}}toString(){const m=[],g=this.records;for(const _ of g.keys())m.push(F(_));return`R3Injector[${m.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ie(205,!1)}processProvider(m){let g=yo(m=ne(m))?m:ne(m&&m.provide);const _=function pA(p){return Ff(p)?kc(void 0,p.useValue):kc(Uf(p),Fh)}(m);if(yo(m)||!0!==m.multi)this.records.get(g);else{let y=this.records.get(g);y||(y=kc(void 0,Fh,!0),y.factory=()=>xr(y.multi),this.records.set(g,y)),g=m,y.multi.push(m)}this.records.set(g,_)}hydrate(m,g){return g.value===Fh&&(g.value=hA,g.value=g.factory()),"object"==typeof g.value&&g.value&&function k_(p){return null!==p&&"object"==typeof p&&"function"==typeof p.ngOnDestroy}(g.value)&&this._ngOnDestroyHooks.add(g.value),g.value}injectableDefInScope(m){if(!m.providedIn)return!1;const g=ne(m.providedIn);return"string"==typeof g?"any"===g||this.scopes.has(g):this.injectorDefTypes.has(g)}}function Yf(p){const m=sa(p),g=null!==m?m.factory:pa(p);if(null!==g)return g;if(p instanceof ai)throw new ie(204,!1);if(p instanceof Function)return function P_(p){const m=p.length;if(m>0)throw ho(m,"?"),new ie(204,!1);const g=function Ws(p){const m=p&&(p[Ir]||p[fs]);if(m){const g=function Cd(p){if(p.hasOwnProperty("name"))return p.name;const m=(""+p).match(/^function\s*([^\s(]+)/);return null===m?"":m[1]}(p);return console.warn(`DEPRECATED: DI is instantiating a token "${g}" 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 "${g}" class.`),m}return null}(p);return null!==g?()=>g.factory(p):()=>new p}(p);throw new ie(204,!1)}function Uf(p,m,g){let _;if(yo(p)){const y=ne(p);return pa(y)||Yf(y)}if(Ff(p))_=()=>ne(p.useValue);else if(function uA(p){return!(!p||!p.useFactory)}(p))_=()=>p.useFactory(...xr(p.deps||[]));else if(function As(p){return!(!p||!p.useExisting)}(p))_=()=>zi(ne(p.useExisting));else{const y=ne(p&&(p.useClass||p.provide));if(!function fA(p){return!!p.deps}(p))return pa(y)||Yf(y);_=()=>new y(...xr(p.deps))}return _}function kc(p,m,g=!1){return{factory:p,value:m,multi:g?[]:void 0}}function zf(p){return!!p.\u0275providers}function qf(p,m){for(const g of p)Array.isArray(g)?qf(g,m):zf(g)?qf(g.\u0275providers,m):m(g)}class R_{}class jM{resolveComponentFactory(m){throw function FM(p){const m=Error(`No component factory found for ${F(p)}. Did you add it to @NgModule.entryComponents?`);return m.ngComponent=p,m}(m)}}let es=(()=>{class p{}return p.NULL=new jM,p})();function L_(){return bl(Ai(),Me())}function bl(p,m){return new vs($n(p,m))}let vs=(()=>{class p{constructor(g){this.nativeElement=g}}return p.__NG_ELEMENT_ID__=L_,p})();function _A(p){return p instanceof vs?p.nativeElement:p}class eu{}let yl=(()=>{class p{}return p.__NG_ELEMENT_ID__=()=>function I_(){const p=Me(),g=mn(Ai().index,p);return(Xi(g)?g:p)[11]}(),p})(),tu=(()=>{class p{}return p.\u0275prov=Qt({token:p,providedIn:"root",factory:()=>null}),p})();class Uh{constructor(m){this.full=m,this.major=m.split(".")[0],this.minor=m.split(".")[1],this.patch=m.split(".").slice(2).join(".")}}const bA=new Uh("14.1.2"),Rc={};function is(p){return p.ngOriginalError}class pr{constructor(){this._console=console}handleError(m){const g=this._findOriginalError(m);this._console.error("ERROR",m),g&&this._console.error("ORIGINAL ERROR",g)}_findOriginalError(m){let g=m&&is(m);for(;g&&is(g);)g=is(g);return g||null}}const B_=new Map;let ZM=0;const N_="__ngContext__";function er(p,m){Xi(m)?(p[N_]=m[20],function QM(p){B_.set(p[20],p)}(m)):p[N_]=m}function Cl(p){const m=p[N_];return"number"==typeof m?function vA(p){return B_.get(p)||null}(m):m||null}function F_(p){const m=Cl(p);return m?Xi(m)?m:m.lView:null}const sS=(()=>(typeof requestAnimationFrame<"u"&&requestAnimationFrame||setTimeout).bind(de))();function EA(p){return p.ownerDocument.defaultView}function wo(p){return p instanceof Function?p():p}var xs=(()=>((xs=xs||{})[xs.Important=1]="Important",xs[xs.DashCase=2]="DashCase",xs))();function Gf(p,m){return undefined(p,m)}function Gh(p){const m=p[3];return Sn(m)?m[3]:m}function Y_(p){return RA(p[13])}function U_(p){return RA(p[4])}function RA(p){for(;null!==p&&!Sn(p);)p=p[4];return p}function su(p,m,g,_,y){if(null!=_){let v,D=!1;Sn(_)?v=_:Xi(_)&&(D=!0,_=_[0]);const P=Ui(_);0===p&&null!==g?null==y?NA(m,g,P):Oc(m,g,P,y||null,!0):1===p&&null!==g?Oc(m,g,P,y||null,!0):2===p?function GA(p,m,g){const _=Wf(p,m);_&&function AS(p,m,g,_){p.removeChild(m,g,_)}(p,_,m,g)}(m,P,D):3===p&&m.destroyNode(P),null!=v&&function xS(p,m,g,_,y){const v=g[7];v!==Ui(g)&&su(m,p,_,v,y);for(let P=10;P0&&(p[g-1][4]=_[4]);const v=sl(p,10+m);!function fS(p,m){Wh(p,m,m[11],2,null,null),m[0]=null,m[6]=null}(_[1],_);const D=v[19];null!==D&&D.detachView(v[1]),_[3]=null,_[4]=null,_[2]&=-65}return _}function OA(p,m){if(!(128&m[2])){const g=m[11];g.destroyNode&&Wh(p,m,g,3,null,null),function _S(p){let m=p[13];if(!m)return W_(p[1],p);for(;m;){let g=null;if(Xi(m))g=m[13];else{const _=m[10];_&&(g=_)}if(!g){for(;m&&!m[4]&&m!==p;)Xi(m)&&W_(m[1],m),m=m[3];null===m&&(m=p),Xi(m)&&W_(m[1],m),g=m&&m[4]}m=g}}(m)}}function W_(p,m){if(!(128&m[2])){m[2]&=-65,m[2]|=128,function wS(p,m){let g;if(null!=p&&null!=(g=p.destroyHooks))for(let _=0;_=0?_[y=N]():_[y=-N].unsubscribe(),v+=2}else{const D=_[y=g[v+1]];g[v].call(D)}if(null!==_){for(let v=y+1;v<_.length;v++)(0,_[v])();m[7]=null}}(p,m),1===m[1].type&&m[11].destroy();const g=m[17];if(null!==g&&Sn(m[3])){g!==m[3]&&IA(g,m);const _=m[19];null!==_&&_.detachView(p)}!function KM(p){B_.delete(p[20])}(m)}}function BA(p,m,g){return function VA(p,m,g){let _=m;for(;null!==_&&40&_.type;)_=(m=_).parent;if(null===_)return g[0];if(2&_.flags){const y=p.data[_.directiveStart].encapsulation;if(y===te.None||y===te.Emulated)return null}return $n(_,g)}(p,m.parent,g)}function Oc(p,m,g,_,y){p.insertBefore(m,g,_,y)}function NA(p,m,g){p.appendChild(m,g)}function FA(p,m,g,_,y){null!==_?Oc(p,m,g,_,y):NA(p,m,g)}function Wf(p,m){return p.parentNode(m)}function jA(p,m,g){return UA(p,m,g)}let UA=function YA(p,m,g){return 40&p.type?$n(p,g):null};function $f(p,m,g,_){const y=BA(p,_,m),v=m[11],P=jA(_.parent||m[6],_,m);if(null!=y)if(Array.isArray(g))for(let R=0;Rv?"":y[ee+1].toLowerCase();const pe=8&_?oe:null;if(pe&&-1!==K_(pe,N,0)||2&_&&N!==oe){if(Ge(_))return!1;D=!0}}}}else{if(!D&&!Ge(_)&&!Ge(R))return!1;if(D&&Ge(R))continue;D=!1,_=R|1&_}}return Ge(_)||D}function Ge(p){return 0==(1&p)}function Ne(p,m,g,_){if(null===m)return-1;let y=0;if(_||!g){let v=!1;for(;y-1)for(g++;g0?'="'+P+'"':"")+"]"}else 8&_?y+="."+D:4&_&&(y+=" "+D);else""!==y&&!Ge(D)&&(m+=eb(v,y),y=""),_=D,v=v||!Ge(_);g++}return""!==y&&(m+=eb(v,y)),m}const vt={};function KA(p){Qf(Ze(),Me(),dn()+p,!1)}function Qf(p,m,g,_){if(!_)if(3==(3&m[2])){const v=p.preOrderCheckHooks;null!==v&&Ko(m,v,g)}else{const v=p.preOrderHooks;null!==v&&fc(m,v,0,g)}ga(g)}function ab(p,m=null,g=null,_){const y=ou(p,m,g,_);return y.resolveInjectorInitializers(),y}function ou(p,m=null,g=null,_,y=new Set){const v=[g||Xe,lA(p)];return _=_||("object"==typeof p?void 0:F(p)),new H_(v,m||jh(),_||null,y)}let Vc=(()=>{class p{static create(g,_){if(Array.isArray(g))return ab({name:""},_,g,"");{const y=g.name??"";return ab({name:y},g.parent,g.providers,y)}}}return p.THROW_IF_NOT_FOUND=_a,p.NULL=new S_,p.\u0275prov=Qt({token:p,providedIn:"any",factory:()=>zi(bo)}),p.__NG_ELEMENT_ID__=-1,p})();function Ss(p,m=dt.Default){const g=Me();return null===g?zi(p,m):nl(Ai(),g,ne(p),m)}function du(){throw new Error("invalid")}function Qh(p,m){return p<<17|m<<2}function Kr(p){return p>>17&32767}function em(p){return 2|p}function Es(p){return(131068&p)>>2}function tm(p,m){return-131069&p|m<<2}function bb(p){return 1|p}function Cb(p,m){const g=p.contentQueries;if(null!==g)for(let _=0;_22&&Qf(p,m,22,!1),g(_,y)}finally{ga(v)}}function Ab(p,m,g){if(Gn(m)){const y=m.directiveEnd;for(let v=m.directiveStart;v0;){const g=p[--m];if("number"==typeof g&&g<0)return g}return 0})(P)!=R&&P.push(R),P.push(_,y,D)}}function ap(p,m){null!==p.hostBindings&&p.hostBindings(1,m)}function Sb(p,m){m.flags|=2,(p.components||(p.components=[])).push(m.index)}function Pv(p,m,g){if(g){if(m.exportAs)for(let _=0;_0&&cm(g)}}function cm(p){for(let _=Y_(p);null!==_;_=U_(_))for(let y=10;y<_.length;y++){const v=_[y];if(G(v))if(512&v[2]){const D=v[1];To(D,v,D.template,v[8])}else v[5]>0&&cm(v)}const g=p[1].components;if(null!==g)for(let _=0;_0&&cm(y)}}function Iv(p,m){const g=mn(m,p),_=g[1];(function kb(p,m){for(let g=m.length;gPromise.resolve(null))();function Nv(p){return p[7]||(p[7]=[])}function Ob(p){return p.cleanup||(p.cleanup=[])}function Bb(p,m,g){return(null===p||En(p))&&(g=function Ci(p){for(;Array.isArray(p);){if("object"==typeof p[1])return p;p=p[0]}return null}(g[m.index])),g[11]}function bu(p,m){const g=p[9],_=g?g.get(pr,null):null;_&&_.handleError(m)}function um(p,m,g,_,y){for(let v=0;v-1&&(G_(m,_),sl(g,_))}this._attachedToViewContainer=!1}OA(this._lView[1],this._lView)}onDestroy(m){Dr(this._lView[1],this._lView,null,m)}markForCheck(){dm(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){!function sp(p,m,g){const _=m[10];_.begin&&_.begin();try{To(p,m,p.template,g)}catch(y){throw bu(m,y),y}finally{_.end&&_.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ie(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function gS(p,m){Wh(p,m,m[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(m){if(this._attachedToViewContainer)throw new ie(902,!1);this._appRef=m}}class Fv extends Gc{constructor(m){super(m),this._view=m}detectChanges(){Ov(this._view)}checkNoChanges(){}get context(){return null}}class yu extends es{constructor(m){super(),this.ngModule=m}resolveComponentFactory(m){const g=$t(m);return new ks(g,this.ngModule)}}function Cu(p){const m=[];for(let g in p)p.hasOwnProperty(g)&&m.push({propName:p[g],templateName:g});return m}class Vb{constructor(m,g){this.injector=m,this.parentInjector=g}get(m,g,_){const y=this.injector.get(m,Rc,_);return y!==Rc||g===Rc?y:this.parentInjector.get(m,g,_)}}class ks extends R_{constructor(m,g){super(),this.componentDef=m,this.ngModule=g,this.componentType=m.type,this.selector=function QA(p){return p.map(tb).join(",")}(m.selectors),this.ngContentSelectors=m.ngContentSelectors?m.ngContentSelectors:[],this.isBoundToModule=!!g}get inputs(){return Cu(this.componentDef.inputs)}get outputs(){return Cu(this.componentDef.outputs)}create(m,g,_,y){let v=(y=y||this.ngModule)instanceof _l?y:y?.injector;v&&null!==this.componentDef.getStandaloneInjector&&(v=this.componentDef.getStandaloneInjector(v)||v);const D=v?new Vb(m,v):m,P=D.get(eu,null);if(null===P)throw new ie(407,!1);const R=D.get(tu,null),N=P.createRenderer(null,this.componentDef),q=this.componentDef.selectors[0][0]||"div",ee=_?function fr(p,m,g){return p.selectRootElement(m,g===te.ShadowDom)}(N,_,this.componentDef.encapsulation):q_(P.createRenderer(null,this.componentDef),q,function jv(p){const m=p.toLowerCase();return"svg"===m?"svg":"math"===m?"math":null}(q)),oe=this.componentDef.onPush?288:272,pe=function xl(p,m){return{components:[],scheduler:p||sS,clean:Vv,playerHandler:m||null,flags:0}}(),Se=np(0,null,null,1,0,null,null,null,null,null),Oe=rm(null,Se,pe,oe,null,null,P,N,R,D,null);let We,Ke;kt(Oe);try{const wt=function NS(p,m,g,_,y,v){const D=g[1];g[22]=p;const R=Er(D,22,2,"#host",null),N=R.mergedAttrs=m.hostAttrs;null!==N&&(qc(R,N,!0),null!==p&&(Ua(y,p,N),null!==R.classes&&Q_(y,p,R.classes),null!==R.styles&&$A(y,p,R.styles)));const q=_.createRenderer(p,m),ee=rm(g,sm(m),null,m.onPush?32:16,g[22],R,_,q,v||null,null,null);return D.firstCreatePass&&(oo(bs(R,g),D,m.type),Sb(D,R),Eb(R,g.length,1)),xo(g,ee),g[22]=ee}(ee,this.componentDef,Oe,P,N);if(ee)if(_)Ua(N,ee,["ng-version",bA.full]);else{const{attrs:Pe,classes:pt}=function Zh(p){const m=[],g=[];let _=1,y=2;for(;_0&&Q_(N,ee,pt.join(" "))}if(Ke=sc(Se,22),void 0!==g){const Pe=Ke.projection=[];for(let pt=0;pt=0;_--){const y=p[_];y.hostVars=m+=y.hostVars,y.hostAttrs=_c(y.hostAttrs,g=_c(g,y.hostAttrs))}}(_)}function _m(p){return p===St?{}:p===Xe?[]:p}function Gv(p,m){const g=p.viewQuery;p.viewQuery=g?(_,y)=>{m(_,y),g(_,y)}:m}function Ml(p,m){const g=p.contentQueries;p.contentQueries=g?(_,y,v)=>{m(_,y,v),g(_,y,v)}:m}function Sl(p,m){const g=p.hostBindings;p.hostBindings=g?(_,y)=>{m(_,y),g(_,y)}:m}let wu=null;function El(){if(!wu){const p=de.Symbol;if(p&&p.iterator)wu=p.iterator;else{const m=Object.getOwnPropertyNames(Map.prototype);for(let g=0;gP(Ui(Yt[_.index])):_.index;let pt=null;if(!P&&R&&(pt=function Zb(p,m,g,_){const y=p.cleanup;if(null!=y)for(let v=0;vR?P[R]:null}"string"==typeof D&&(v+=2)}return null}(p,m,y,_.index)),null!==pt)(pt.__ngLastListenerFn__||pt).__ngNextListenerFn__=v,pt.__ngLastListenerFn__=v,pe=!1;else{v=tT(_,m,ee,v,!1);const Yt=g.listen(Ke,y,v);oe.push(v,Yt),q&&q.push(y,Pe,wt,wt+1)}}else v=tT(_,m,ee,v,!1);const Se=_.outputs;let Oe;if(pe&&null!==Se&&(Oe=Se[y])){const We=Oe.length;if(We)for(let Ke=0;Ke0;)m=m[15],p--;return m}(p,ge.lFrame.contextLView))[8]}(p)}function iT(p,m){let g=null;const _=function X_(p){const m=p.attrs;if(null!=m){const g=m.indexOf(5);if(0==(1&g))return m[g+1]}return null}(p);for(let y=0;y=0}const pn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Re(p){return p.substring(pn.key,pn.keyEnd)}function Tt(p,m){const g=pn.textEnd;return g===m?-1:(m=pn.keyEnd=function $S(p,m,g){for(;m32;)m++;return m}(p,pn.key=m,g),An(p,m,g))}function An(p,m,g){for(;m=0;g=Tt(m,g))Hn(p,Re(m),!0)}function Sa(p,m,g,_){const y=Me(),v=Ze(),D=zr(2);v.firstUpdatePass&&ry(v,p,D,_),m!==vt&&ir(y,D,m)&&Kc(v,v.data[dn()],y,y[11],p,y[D+1]=function JS(p,m){return null==p||("string"==typeof m?p+=m:"object"==typeof p&&(p=F(Qa(p)))),p}(m,g),_,D)}function Ea(p,m,g,_){const y=Ze(),v=zr(2);y.firstUpdatePass&&ry(y,null,v,_);const D=Me();if(g!==vt&&ir(D,v,g)){const P=y.data[dn()];if(sy(P,_)&&!ny(y,v)){let R=_?P.classesWithoutHost:P.stylesWithoutHost;null!==R&&(g=U(R,g||"")),Dl(y,P,D,g,_)}else!function dT(p,m,g,_,y,v,D,P){y===vt&&(y=Xe);let R=0,N=0,q=0=p.expandoStartIndex}function ry(p,m,g,_){const y=p.data;if(null===y[g+1]){const v=y[dn()],D=ny(p,g);sy(v,_)&&null===m&&!D&&(m=!1),m=function sT(p,m,g,_){const y=dc(p);let v=_?m.residualClasses:m.residualStyles;if(null===y)0===(_?m.classBindings:m.styleBindings)&&(g=Eu(g=Rm(null,p,m,g,_),m.attrs,_),v=null);else{const D=m.directiveStylingLast;if(-1===D||p[D]!==y)if(g=Rm(y,p,m,g,_),null===v){let R=function oT(p,m,g){const _=g?m.classBindings:m.styleBindings;if(0!==Es(_))return p[Kr(_)]}(p,m,_);void 0!==R&&Array.isArray(R)&&(R=Rm(null,p,m,R[1],_),R=Eu(R,m.attrs,_),function lT(p,m,g,_){p[Kr(g?m.classBindings:m.styleBindings)]=_}(p,m,_,R))}else v=function cT(p,m,g){let _;const y=m.directiveEnd;for(let v=1+m.directiveStylingLast;v0)&&(N=!0)}else q=g;if(y)if(0!==R){const oe=Kr(p[P+1]);p[_+1]=Qh(oe,P),0!==oe&&(p[oe+1]=tm(p[oe+1],_)),p[P+1]=function uv(p,m){return 131071&p|m<<17}(p[P+1],_)}else p[_+1]=Qh(P,0),0!==P&&(p[P+1]=tm(p[P+1],_)),P=_;else p[_+1]=Qh(R,0),0===P?P=_:p[R+1]=tm(p[R+1],_),R=_;N&&(p[_+1]=em(p[_+1])),At(p,q,_,!0),At(p,q,_,!1),function di(p,m,g,_,y){const v=y?p.residualClasses:p.residualStyles;null!=v&&"string"==typeof m&&Za(v,m)>=0&&(g[_+1]=bb(g[_+1]))}(m,q,p,_,v),D=Qh(P,R),v?m.classBindings=D:m.styleBindings=D}(y,v,m,g,D,_)}}function Rm(p,m,g,_,y){let v=null;const D=g.directiveEnd;let P=g.directiveStylingLast;for(-1===P?P=g.directiveStart:P++;P0;){const R=p[y],N=Array.isArray(R),q=N?R[1]:R,ee=null===q;let oe=g[y+1];oe===vt&&(oe=ee?Xe:void 0);let pe=ee?Tc(oe,_):q===_?oe:void 0;if(N&&!Lm(pe)&&(pe=Tc(R,_)),Lm(pe)&&(P=pe,D))return P;const Se=p[y+1];y=D?Kr(Se):Es(Se)}if(null!==m){let R=v?m.residualClasses:m.residualStyles;null!=R&&(P=Tc(R,_))}return P}function Lm(p){return void 0!==p}function sy(p,m){return 0!=(p.flags&(m?16:32))}function Im(p,m=""){const g=Me(),_=Ze(),y=p+22,v=_.firstCreatePass?Er(_,y,1,m,null):_.data[y],D=g[y]=function z_(p,m){return p.createText(m)}(g[11],m);$f(_,g,D,v),vi(v,!1)}function Om(p){return Pr("",p,""),Om}function Pr(p,m,g){const _=Me(),y=Mo(_,p,m,g);return y!==vt&&Ps(_,dn(),y),Pr}function Bm(p,m,g,_,y){const v=Me(),D=function xa(p,m,g,_,y,v){const P=$c(p,Cn(),g,y);return zr(2),P?m+be(g)+_+be(y)+v:vt}(v,p,m,g,_,y);return D!==vt&&Ps(v,dn(),D),Bm}function pp(p,m,g,_,y,v,D,P,R,N,q){const ee=Me(),oe=So(ee,p,m,g,_,y,v,D,P,R,N,q);return oe!==vt&&Ps(ee,dn(),oe),pp}function cy(p,m,g){Ea(Hn,ss,Mo(Me(),p,m,g),!0)}function gp(p,m,g){const _=Me();return ir(_,cn(),m)&&ea(Ze(),Ot(),_,p,m,_[11],g,!0),gp}function _p(p,m,g){const _=Me();if(ir(_,cn(),m)){const v=Ze(),D=Ot();ea(v,D,_,p,m,Bb(dc(v.data),D,_),g,!0)}return _p}const os=void 0;var my=["en",[["a","p"],["AM","PM"],os],[["AM","PM"],os,os],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],os,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],os,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",os,"{1} 'at' {0}",os],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function fy(p){const g=Math.floor(Math.abs(p)),_=p.toString().replace(/^[^.]*\.?/,"").length;return 1===g&&0===_?1:5}];let Il={};function Gm(p){const m=function gy(p){return p.toLowerCase().replace(/_/g,"-")}(p);let g=bp(m);if(g)return g;const _=m.split("-")[0];if(g=bp(_),g)return g;if("en"===_)return my;throw new ie(701,!1)}function Wm(p){return Gm(p)[ht.PluralCase]}function bp(p){return p in Il||(Il[p]=de.ng&&de.ng.common&&de.ng.common.locales&&de.ng.common.locales[p]),Il[p]}var ht=(()=>((ht=ht||{})[ht.LocaleId=0]="LocaleId",ht[ht.DayPeriodsFormat=1]="DayPeriodsFormat",ht[ht.DayPeriodsStandalone=2]="DayPeriodsStandalone",ht[ht.DaysFormat=3]="DaysFormat",ht[ht.DaysStandalone=4]="DaysStandalone",ht[ht.MonthsFormat=5]="MonthsFormat",ht[ht.MonthsStandalone=6]="MonthsStandalone",ht[ht.Eras=7]="Eras",ht[ht.FirstDayOfWeek=8]="FirstDayOfWeek",ht[ht.WeekendRange=9]="WeekendRange",ht[ht.DateFormat=10]="DateFormat",ht[ht.TimeFormat=11]="TimeFormat",ht[ht.DateTimeFormat=12]="DateTimeFormat",ht[ht.NumberSymbols=13]="NumberSymbols",ht[ht.NumberFormats=14]="NumberFormats",ht[ht.CurrencyCode=15]="CurrencyCode",ht[ht.CurrencySymbol=16]="CurrencySymbol",ht[ht.CurrencyName=17]="CurrencyName",ht[ht.Currencies=18]="Currencies",ht[ht.Directionality=19]="Directionality",ht[ht.PluralCase=20]="PluralCase",ht[ht.ExtraData=21]="ExtraData",ht))();const Do="en-US";let ia=Do;function sg(p,m,g,_,y){if(p=ne(p),Array.isArray(p))for(let v=0;v>20;if(yo(p)||!p.multi){const pe=new Ct(R,y,Ss),Se=By(P,m,y?q:q+oe,ee);-1===Se?(oo(bs(N,D),v,P),Dp(v,p,m.length),m.push(P),N.directiveStart++,N.directiveEnd++,y&&(N.providerIndexes+=1048576),g.push(pe),D.push(pe)):(g[Se]=pe,D[Se]=pe)}else{const pe=By(P,m,q+oe,ee),Se=By(P,m,q,q+oe),Oe=pe>=0&&g[pe],We=Se>=0&&g[Se];if(y&&!We||!y&&!Oe){oo(bs(N,D),v,P);const Ke=function jT(p,m,g,_,y){const v=new Ct(p,g,Ss);return v.multi=[],v.index=m,v.componentProviders=0,Oy(v,y,_&&!g),v}(y?FT:Vy,g.length,y,_,R);!y&&We&&(g[Se].providerFactory=Ke),Dp(v,p,m.length,0),m.push(P),N.directiveStart++,N.directiveEnd++,y&&(N.providerIndexes+=1048576),g.push(Ke),D.push(Ke)}else Dp(v,p,pe>-1?pe:Se,Oy(g[y?Se:pe],R,!y&&_));!y&&_&&We&&g[Se].componentProviders++}}}function Dp(p,m,g,_){const y=yo(m),v=function D_(p){return!!p.useClass}(m);if(y||v){const R=(v?ne(m.useClass):m).prototype.ngOnDestroy;if(R){const N=p.destroyHooks||(p.destroyHooks=[]);if(!y&&m.multi){const q=N.indexOf(g);-1===q?N.push(g,[_,R]):N[q+1].push(_,R)}else N.push(g,R)}}}function Oy(p,m,g){return g&&p.componentProviders++,p.multi.push(m)-1}function By(p,m,g,_){for(let y=g;y<_;y++)if(m[y]===p)return y;return-1}function Vy(p,m,g,_){return Hp(this.multi,[])}function FT(p,m,g,_){const y=this.multi;let v;if(this.providerFactory){const D=this.providerFactory.componentProviders,P=vr(g,g[1],this.providerFactory.index,_);v=P.slice(0,D),Hp(y,v);for(let R=D;R{g.providersResolver=(_,y)=>function Iy(p,m,g){const _=Ze();if(_.firstCreatePass){const y=En(p);sg(g,_.data,_.blueprint,y,!0),sg(m,_.data,_.blueprint,y,!1)}}(_,y?y(p):p,m)}}class Po{}class Ny{}function kr(p,m){return new ko(p,m??null)}class ko extends Po{constructor(m,g){super(),this._parent=g,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new yu(this);const _=Ye(m);this._bootstrapComponents=wo(_.bootstrap),this._r3Injector=ou(m,g,[{provide:Po,useValue:this},{provide:es,useValue:this.componentFactoryResolver}],F(m),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(m)}get injector(){return this._r3Injector}destroy(){const m=this._r3Injector;!m.destroyed&&m.destroy(),this.destroyCbs.forEach(g=>g()),this.destroyCbs=null}onDestroy(m){this.destroyCbs.push(m)}}class lg extends Ny{constructor(m){super(),this.moduleType=m}create(m){return new ko(this.moduleType,m)}}class cg extends Po{constructor(m,g,_){super(),this.componentFactoryResolver=new yu(this),this.instance=null;const y=new H_([...m,{provide:Po,useValue:this},{provide:es,useValue:this.componentFactoryResolver}],g||jh(),_,new Set(["environment"]));this.injector=y,y.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(m){this.injector.onDestroy(m)}}function dg(p,m,g=null){return new cg(p,m,g).injector}function Wy(p,m,g){const _=ri()+p,y=Me();return y[_]===vt?wn(y,_,g?m.call(g):m()):function rs(p,m){return p[m]}(y,_)}function mg(p,m,g,_){return gg(Me(),ri(),p,m,g,_)}function $y(p,m,g,_,y){return Qy(Me(),ri(),p,m,g,_,y)}function Vu(p,m){const g=p[m];return g===vt?void 0:g}function gg(p,m,g,_,y,v){const D=m+g;return ir(p,D,y)?wn(p,D+1,v?_.call(v,y):_(y)):Vu(p,D+1)}function Qy(p,m,g,_,y,v,D){const P=m+g;return $c(p,P,y,v)?wn(p,P+2,D?_.call(D,y,v):_(y,v)):Vu(p,P+2)}function _g(p,m,g,_,y,v,D,P){const R=m+g;return function bm(p,m,g,_,y){const v=$c(p,m,g,_);return ir(p,m+2,y)||v}(p,R,y,v,D)?wn(p,R+3,P?_.call(P,y,v,D):_(y,v,D)):Vu(p,R+3)}function KT(p,m){const g=Ze();let _;const y=p+22;g.firstCreatePass?(_=function Ky(p,m){if(m)for(let g=m.length-1;g>=0;g--){const _=m[g];if(p===_.name)return _}}(m,g.pipeRegistry),g.data[y]=_,_.onDestroy&&(g.destroyHooks||(g.destroyHooks=[])).push(y,_.onDestroy)):_=g.data[y];const v=_.factory||(_.factory=pa(_.type)),D=Wt(Ss);try{const P=yc(!1),R=v();return yc(P),function qb(p,m,g,_){g>=p.data.length&&(p.data[g]=null,p.blueprint[g]=null),m[g]=_}(g,Me(),y,R),R}finally{Wt(D)}}function Ro(p,m,g){const _=p+22,y=Me(),v=no(y,_);return Nu(y,_)?gg(y,ri(),m,v.transform,g,v):v.transform(g)}function bg(p,m,g,_){const y=p+22,v=Me(),D=no(v,y);return Nu(v,y)?Qy(v,ri(),m,D.transform,g,_,D):D.transform(g,_)}function XT(p,m,g,_,y){const v=p+22,D=Me(),P=no(D,v);return Nu(D,v)?_g(D,ri(),m,P.transform,g,_,y,P):P.transform(g,_,y)}function Nu(p,m){return p[1].data[m].pure}function yg(p){return m=>{setTimeout(p,void 0,m)}}const Bs=class cE extends w.x{constructor(m=!1){super(),this.__isAsync=m}emit(m){super.next(m)}subscribe(m,g,_){let y=m,v=g||(()=>null),D=_;if(m&&"object"==typeof m){const R=m;y=R.next?.bind(R),v=R.error?.bind(R),D=R.complete?.bind(R)}this.__isAsync&&(v=yg(v),y&&(y=yg(y)),D&&(D=yg(D)));const P=super.subscribe({next:y,error:v,complete:D});return m instanceof i.w0&&m.add(P),P}};function e0(){return this._results[El()]()}class Lp{constructor(m=!1){this._emitDistinctChangesOnly=m,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const g=El(),_=Lp.prototype;_[g]||(_[g]=e0)}get changes(){return this._changes||(this._changes=new Bs)}get(m){return this._results[m]}map(m){return this._results.map(m)}filter(m){return this._results.filter(m)}find(m){return this._results.find(m)}reduce(m,g){return this._results.reduce(m,g)}forEach(m){this._results.forEach(m)}some(m){return this._results.some(m)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(m,g){const _=this;_.dirty=!1;const y=Dn(m);(this._changesDetected=!function Yd(p,m,g){if(p.length!==m.length)return!1;for(let _=0;_{class p{}return p.__NG_ELEMENT_ID__=r0,p})();const t0=Fu,n0=class extends t0{constructor(m,g,_){super(),this._declarationLView=m,this._declarationTContainer=g,this.elementRef=_}createEmbeddedView(m,g){const _=this._declarationTContainer.tViews,y=rm(this._declarationLView,_,m,16,null,_.declTNode,null,null,null,null,g||null);y[17]=this._declarationLView[this._declarationTContainer.index];const D=this._declarationLView[19];return null!==D&&(y[19]=D.createEmbeddedView(_)),vo(_,y,m),new Gc(y)}};function r0(){return Ip(Ai(),Me())}function Ip(p,m){return 4&p.type?new n0(m,p,bl(p,m)):null}let Op=(()=>{class p{}return p.__NG_ELEMENT_ID__=a0,p})();function a0(){return Cg(Ai(),Me())}const tC=Op,s0=class extends tC{constructor(m,g,_){super(),this._lContainer=m,this._hostTNode=g,this._hostLView=_}get element(){return bl(this._hostTNode,this._hostLView)}get injector(){return new lo(this._hostTNode,this._hostLView)}get parentInjector(){const m=$r(this._hostTNode,this._hostLView);if(tl(m)){const g=ao(m,this._hostLView),_=_s(m);return new lo(g[1].data[_+8],g)}return new lo(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(m){const g=o0(this._lContainer);return null!==g&&g[m]||null}get length(){return this._lContainer.length-10}createEmbeddedView(m,g,_){let y,v;"number"==typeof _?y=_:null!=_&&(y=_.index,v=_.injector);const D=m.createEmbeddedView(g||{},v);return this.insert(D,y),D}createComponent(m,g,_,y,v){const D=m&&!function al(p){return"function"==typeof p}(m);let P;if(D)P=g;else{const ee=g||{};P=ee.index,_=ee.injector,y=ee.projectableNodes,v=ee.environmentInjector||ee.ngModuleRef}const R=D?m:new ks($t(m)),N=_||this.parentInjector;if(!v&&null==R.ngModule){const oe=(D?N:this.parentInjector).get(_l,null);oe&&(v=oe)}const q=R.create(N,y,void 0,v);return this.insert(q.hostView,P),q}insert(m,g){const _=m._lView,y=_[1];if(function B(p){return Sn(p[3])}(_)){const q=this.indexOf(m);if(-1!==q)this.detach(q);else{const ee=_[3],oe=new s0(ee,ee[6],ee[3]);oe.detach(oe.indexOf(m))}}const v=this._adjustIndex(g),D=this._lContainer;!function bS(p,m,g,_){const y=10+_,v=g.length;_>0&&(g[y-1][4]=m),_0)_.push(D[P/2]);else{const N=v[P+1],q=m[-R];for(let ee=10;ee{class p{constructor(g){this.appInits=g,this.resolve=Gu,this.reject=Gu,this.initialized=!1,this.done=!1,this.donePromise=new Promise((_,y)=>{this.resolve=_,this.reject=y})}runInitializers(){if(this.initialized)return;const g=[],_=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let y=0;y{v.subscribe({complete:P,error:R})});g.push(D)}}Promise.all(g).then(()=>{_()}).catch(y=>{this.reject(y)}),0===g.length&&_(),this.initialized=!0}}return p.\u0275fac=function(g){return new(g||p)(zi(Hg,8))},p.\u0275prov=Qt({token:p,factory:p.\u0275fac,providedIn:"root"}),p})();const Lo=new ai("AppId",{providedIn:"root",factory:function Io(){return`${vC()}${vC()}${vC()}`}});function vC(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const $u=new ai("Platform Initializer"),TC=new ai("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),xC=new ai("appBootstrapListener"),R0=new ai("AnimationModuleType");let L0=(()=>{class p{log(g){console.log(g)}warn(g){console.warn(g)}}return p.\u0275fac=function(g){return new(g||p)},p.\u0275prov=Qt({token:p,factory:p.\u0275fac,providedIn:"platform"}),p})();const Zu=new ai("LocaleId",{providedIn:"root",factory:()=>Dh(Zu,dt.Optional|dt.SkipSelf)||function I0(){return typeof $localize<"u"&&$localize.locale||Do}()}),O0=new ai("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class MC{constructor(m,g){this.ngModuleFactory=m,this.componentFactories=g}}let B0=(()=>{class p{compileModuleSync(g){return new lg(g)}compileModuleAsync(g){return Promise.resolve(this.compileModuleSync(g))}compileModuleAndAllComponentsSync(g){const _=this.compileModuleSync(g),v=wo(Ye(g).declarations).reduce((D,P)=>{const R=$t(P);return R&&D.push(new ks(R)),D},[]);return new MC(_,v)}compileModuleAndAllComponentsAsync(g){return Promise.resolve(this.compileModuleAndAllComponentsSync(g))}clearCache(){}clearCacheFor(g){}getModuleId(g){}}return p.\u0275fac=function(g){return new(g||p)},p.\u0275prov=Qt({token:p,factory:p.\u0275fac,providedIn:"root"}),p})();const F0=(()=>Promise.resolve(0))();function Rg(p){typeof Zone>"u"?F0.then(()=>{p&&p.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",p)}class Rr{constructor({enableLongStackTrace:m=!1,shouldCoalesceEventChangeDetection:g=!1,shouldCoalesceRunChangeDetection:_=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Bs(!1),this.onMicrotaskEmpty=new Bs(!1),this.onStable=new Bs(!1),this.onError=new Bs(!1),typeof Zone>"u")throw new ie(908,!1);Zone.assertZonePatched();const y=this;if(y._nesting=0,y._outer=y._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const v=Zone.AsyncStackTaggingZoneSpec;y._inner=y._inner.fork(new v("Angular"))}Zone.TaskTrackingZoneSpec&&(y._inner=y._inner.fork(new Zone.TaskTrackingZoneSpec)),m&&Zone.longStackTraceZoneSpec&&(y._inner=y._inner.fork(Zone.longStackTraceZoneSpec)),y.shouldCoalesceEventChangeDetection=!_&&g,y.shouldCoalesceRunChangeDetection=_,y.lastRequestAnimationFrameId=-1,y.nativeRequestAnimationFrame=function j0(){let p=de.requestAnimationFrame,m=de.cancelAnimationFrame;if(typeof Zone<"u"&&p&&m){const g=p[Zone.__symbol__("OriginalDelegate")];g&&(p=g);const _=m[Zone.__symbol__("OriginalDelegate")];_&&(m=_)}return{nativeRequestAnimationFrame:p,nativeCancelAnimationFrame:m}}().nativeRequestAnimationFrame,function U0(p){const m=()=>{!function Y0(p){p.isCheckStableRunning||-1!==p.lastRequestAnimationFrameId||(p.lastRequestAnimationFrameId=p.nativeRequestAnimationFrame.call(de,()=>{p.fakeTopEventTask||(p.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{p.lastRequestAnimationFrameId=-1,Oo(p),p.isCheckStableRunning=!0,Ju(p),p.isCheckStableRunning=!1},void 0,()=>{},()=>{})),p.fakeTopEventTask.invoke()}),Oo(p))}(p)};p._inner=p._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(g,_,y,v,D,P)=>{try{return EC(p),g.invokeTask(y,v,D,P)}finally{(p.shouldCoalesceEventChangeDetection&&"eventTask"===v.type||p.shouldCoalesceRunChangeDetection)&&m(),dd(p)}},onInvoke:(g,_,y,v,D,P,R)=>{try{return EC(p),g.invoke(y,v,D,P,R)}finally{p.shouldCoalesceRunChangeDetection&&m(),dd(p)}},onHasTask:(g,_,y,v)=>{g.hasTask(y,v),_===y&&("microTask"==v.change?(p._hasPendingMicrotasks=v.microTask,Oo(p),Ju(p)):"macroTask"==v.change&&(p.hasPendingMacrotasks=v.macroTask))},onHandleError:(g,_,y,v)=>(g.handleError(y,v),p.runOutsideAngular(()=>p.onError.emit(v)),!1)})}(y)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Rr.isInAngularZone())throw new ie(909,!1)}static assertNotInAngularZone(){if(Rr.isInAngularZone())throw new ie(909,!1)}run(m,g,_){return this._inner.run(m,g,_)}runTask(m,g,_,y){const v=this._inner,D=v.scheduleEventTask("NgZoneEvent: "+y,m,SC,Gu,Gu);try{return v.runTask(D,g,_)}finally{v.cancelTask(D)}}runGuarded(m,g,_){return this._inner.runGuarded(m,g,_)}runOutsideAngular(m){return this._outer.run(m)}}const SC={};function Ju(p){if(0==p._nesting&&!p.hasPendingMicrotasks&&!p.isStable)try{p._nesting++,p.onMicrotaskEmpty.emit(null)}finally{if(p._nesting--,!p.hasPendingMicrotasks)try{p.runOutsideAngular(()=>p.onStable.emit(null))}finally{p.isStable=!0}}}function Oo(p){p.hasPendingMicrotasks=!!(p._hasPendingMicrotasks||(p.shouldCoalesceEventChangeDetection||p.shouldCoalesceRunChangeDetection)&&-1!==p.lastRequestAnimationFrameId)}function EC(p){p._nesting++,p.isStable&&(p.isStable=!1,p.onUnstable.emit(null))}function dd(p){p._nesting--,Ju(p)}class z0{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Bs,this.onMicrotaskEmpty=new Bs,this.onStable=new Bs,this.onError=new Bs}run(m,g,_){return m.apply(g,_)}runGuarded(m,g,_){return m.apply(g,_)}runOutsideAngular(m){return m()}runTask(m,g,_,y){return m.apply(g,_)}}const DC=new ai(""),nn=new ai("");let Up,q0=(()=>{class p{constructor(g,_,y){this._ngZone=g,this.registry=_,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Up||(function G0(p){Up=p}(y),y.addToWindow(_)),this._watchAngularEvents(),g.run(()=>{this.taskTrackingZone=typeof Zone>"u"?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:()=>{Rr.assertNotInAngularZone(),Rg(()=>{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())Rg(()=>{for(;0!==this._callbacks.length;){let g=this._callbacks.pop();clearTimeout(g.timeoutId),g.doneCb(this._didWork)}this._didWork=!1});else{let g=this.getPendingTasks();this._callbacks=this._callbacks.filter(_=>!_.updateCb||!_.updateCb(g)||(clearTimeout(_.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(g=>({source:g.source,creationLocation:g.creationLocation,data:g.data})):[]}addCallback(g,_,y){let v=-1;_&&_>0&&(v=setTimeout(()=>{this._callbacks=this._callbacks.filter(D=>D.timeoutId!==v),g(this._didWork,this.getPendingTasks())},_)),this._callbacks.push({doneCb:g,timeoutId:v,updateCb:y})}whenStable(g,_,y){if(y&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(g,_,y),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(g){this.registry.registerApplication(g,this)}unregisterApplication(g){this.registry.unregisterApplication(g)}findProviders(g,_,y){return[]}}return p.\u0275fac=function(g){return new(g||p)(zi(Rr),zi(ar),zi(nn))},p.\u0275prov=Qt({token:p,factory:p.\u0275fac}),p})(),ar=(()=>{class p{constructor(){this._applications=new Map}registerApplication(g,_){this._applications.set(g,_)}unregisterApplication(g){this._applications.delete(g)}unregisterAllApplications(){this._applications.clear()}getTestability(g){return this._applications.get(g)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(g,_=!0){return Up?.findTestabilityInTree(this,g,_)??null}}return p.\u0275fac=function(g){return new(g||p)},p.\u0275prov=Qt({token:p,factory:p.\u0275fac,providedIn:"platform"}),p})(),Fl=null;const HC=new ai("AllowMultipleToken"),Lg=new ai("PlatformDestroyListeners");class ME{constructor(m,g){this.name=m,this.token=g}}function Qu(p,m,g=[]){const _=`Platform: ${m}`,y=new ai(_);return(v=[])=>{let D=PC();if(!D||D.injector.get(HC,!1)){const P=[...g,...v,{provide:y,useValue:!0}];p?p(P):function Rn(p){if(Fl&&!Fl.get(HC,!1))throw new ie(400,!1);Fl=p;const m=p.get(J0);(function vn(p){const m=p.get($u,null);m&&m.forEach(g=>g())})(p)}(function Bo(p=[],m){return Vc.create({name:m,providers:[{provide:jf,useValue:"platform"},{provide:Lg,useValue:new Set([()=>Fl=null])},...p]})}(P,_))}return function Z0(p){const m=PC();if(!m)throw new ie(401,!1);return m}()}}function PC(){return Fl?.get(J0)??null}let J0=(()=>{class p{constructor(g){this._injector=g,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(g,_){const y=function EE(p,m){let g;return g="noop"===p?new z0:("zone.js"===p?void 0:p)||new Rr(m),g}(_?.ngZone,function Q0(p){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!p||!p.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!p||!p.ngZoneRunCoalescing)||!1}}(_)),v=[{provide:Rr,useValue:y}];return y.run(()=>{const D=Vc.create({providers:v,parent:this.injector,name:g.moduleType.name}),P=g.create(D),R=P.injector.get(pr,null);if(!R)throw new ie(402,!1);return y.runOutsideAngular(()=>{const N=y.onError.subscribe({next:q=>{R.handleError(q)}});P.onDestroy(()=>{Ig(this._modules,P),N.unsubscribe()})}),function K0(p,m,g){try{const _=g();return Hl(_)?_.catch(y=>{throw m.runOutsideAngular(()=>p.handleError(y)),y}):_}catch(_){throw m.runOutsideAngular(()=>p.handleError(_)),_}}(R,y,()=>{const N=P.injector.get(Wu);return N.runInitializers(),N.donePromise.then(()=>(function $m(p){Jt(p,"Expected localeId to be defined"),"string"==typeof p&&(ia=p.toLowerCase().replace(/_/g,"-"))}(P.injector.get(Zu,Do)||Do),this._moduleDoBootstrap(P),P))})})}bootstrapModule(g,_=[]){const y=kC({},_);return function W0(p,m,g){const _=new lg(g);return Promise.resolve(_)}(0,0,g).then(v=>this.bootstrapModuleFactory(v,y))}_moduleDoBootstrap(g){const _=g.injector.get(zp);if(g._bootstrapComponents.length>0)g._bootstrapComponents.forEach(y=>_.bootstrap(y));else{if(!g.instance.ngDoBootstrap)throw new ie(403,!1);g.instance.ngDoBootstrap(_)}this._modules.push(g)}onDestroy(g){this._destroyListeners.push(g)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ie(404,!1);this._modules.slice().forEach(_=>_.destroy()),this._destroyListeners.forEach(_=>_());const g=this._injector.get(Lg,null);g&&(g.forEach(_=>_()),g.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return p.\u0275fac=function(g){return new(g||p)(zi(Vc))},p.\u0275prov=Qt({token:p,factory:p.\u0275fac,providedIn:"platform"}),p})();function kC(p,m){return Array.isArray(m)?m.reduce(kC,p):{...p,...m}}let zp=(()=>{class p{constructor(g,_,y){this._zone=g,this._injector=_,this._exceptionHandler=y,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const v=new E.y(P=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{P.next(this._stable),P.complete()})}),D=new E.y(P=>{let R;this._zone.runOutsideAngular(()=>{R=this._zone.onStable.subscribe(()=>{Rr.assertNotInAngularZone(),Rg(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,P.next(!0))})})});const N=this._zone.onUnstable.subscribe(()=>{Rr.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{P.next(!1)}))});return()=>{R.unsubscribe(),N.unsubscribe()}});this.isStable=(0,M.T)(v,D.pipe((0,S.B)()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(g,_){const y=g instanceof R_;if(!this._injector.get(Wu).done)throw!y&&od(g),new ie(405,false);let D;D=y?g:this._injector.get(es).resolveComponentFactory(g),this.componentTypes.push(D.componentType);const P=function $0(p){return p.isBoundToModule}(D)?void 0:this._injector.get(Po),N=D.create(Vc.NULL,[],_||D.selector,P),q=N.location.nativeElement,ee=N.injector.get(DC,null);return ee?.registerApplication(q),N.onDestroy(()=>{this.detachView(N.hostView),Ig(this.components,N),ee?.unregisterApplication(q)}),this._loadComponent(N),N}tick(){if(this._runningTick)throw new ie(101,!1);try{this._runningTick=!0;for(let g of this._views)g.detectChanges()}catch(g){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(g))}finally{this._runningTick=!1}}attachView(g){const _=g;this._views.push(_),_.attachToAppRef(this)}detachView(g){const _=g;Ig(this._views,_),_.detachFromAppRef()}_loadComponent(g){this.attachView(g.hostView),this.tick(),this.components.push(g),this._injector.get(xC,[]).concat(this._bootstrapListeners).forEach(y=>y(g))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(g=>g()),this._views.slice().forEach(g=>g.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(g){return this._destroyListeners.push(g),()=>Ig(this._destroyListeners,g)}destroy(){if(this._destroyed)throw new ie(406,!1);const g=this._injector;g.destroy&&!g.destroyed&&g.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return p.\u0275fac=function(g){return new(g||p)(zi(Rr),zi(_l),zi(pr))},p.\u0275prov=Qt({token:p,factory:p.\u0275fac,providedIn:"root"}),p})();function Ig(p,m){const g=p.indexOf(m);g>-1&&p.splice(g,1)}let RC=!0;function PE(){RC=!1}let tx=(()=>{class p{}return p.__NG_ELEMENT_ID__=ix,p})();function ix(p){return function kE(p,m,g){if(Yr(p)&&!g){const _=mn(p.index,m);return new Gc(_,_)}return 47&p.type?new Gc(m[16],m):null}(Ai(),Me(),16==(16&p))}class sx{constructor(){}supports(m){return Wc(m)}create(m){return new BE(m)}}const OE=(p,m)=>m;class BE{constructor(m){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=m||OE}forEachItem(m){let g;for(g=this._itHead;null!==g;g=g._next)m(g)}forEachOperation(m){let g=this._itHead,_=this._removalsHead,y=0,v=null;for(;g||_;){const D=!_||g&&g.currentIndex{D=this._trackByFn(y,P),null!==g&&Object.is(g.trackById,D)?(_&&(g=this._verifyReinsertion(g,P,D,y)),Object.is(g.item,P)||this._addIdentityChange(g,P)):(g=this._mismatch(g,P,D,y),_=!0),g=g._next,y++}),this.length=y;return this._truncate(g),this.collection=m,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let m;for(m=this._previousItHead=this._itHead;null!==m;m=m._next)m._nextPrevious=m._next;for(m=this._additionsHead;null!==m;m=m._nextAdded)m.previousIndex=m.currentIndex;for(this._additionsHead=this._additionsTail=null,m=this._movesHead;null!==m;m=m._nextMoved)m.previousIndex=m.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(m,g,_,y){let v;return null===m?v=this._itTail:(v=m._prev,this._remove(m)),null!==(m=null===this._unlinkedRecords?null:this._unlinkedRecords.get(_,null))?(Object.is(m.item,g)||this._addIdentityChange(m,g),this._reinsertAfter(m,v,y)):null!==(m=null===this._linkedRecords?null:this._linkedRecords.get(_,y))?(Object.is(m.item,g)||this._addIdentityChange(m,g),this._moveAfter(m,v,y)):m=this._addAfter(new VE(g,_),v,y),m}_verifyReinsertion(m,g,_,y){let v=null===this._unlinkedRecords?null:this._unlinkedRecords.get(_,null);return null!==v?m=this._reinsertAfter(v,m._prev,y):m.currentIndex!=y&&(m.currentIndex=y,this._addToMoves(m,y)),m}_truncate(m){for(;null!==m;){const g=m._next;this._addToRemovals(this._unlink(m)),m=g}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(m,g,_){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(m);const y=m._prevRemoved,v=m._nextRemoved;return null===y?this._removalsHead=v:y._nextRemoved=v,null===v?this._removalsTail=y:v._prevRemoved=y,this._insertAfter(m,g,_),this._addToMoves(m,_),m}_moveAfter(m,g,_){return this._unlink(m),this._insertAfter(m,g,_),this._addToMoves(m,_),m}_addAfter(m,g,_){return this._insertAfter(m,g,_),this._additionsTail=null===this._additionsTail?this._additionsHead=m:this._additionsTail._nextAdded=m,m}_insertAfter(m,g,_){const y=null===g?this._itHead:g._next;return m._next=y,m._prev=g,null===y?this._itTail=m:y._prev=m,null===g?this._itHead=m:g._next=m,null===this._linkedRecords&&(this._linkedRecords=new ox),this._linkedRecords.put(m),m.currentIndex=_,m}_remove(m){return this._addToRemovals(this._unlink(m))}_unlink(m){null!==this._linkedRecords&&this._linkedRecords.remove(m);const g=m._prev,_=m._next;return null===g?this._itHead=_:g._next=_,null===_?this._itTail=g:_._prev=g,m}_addToMoves(m,g){return m.previousIndex===g||(this._movesTail=null===this._movesTail?this._movesHead=m:this._movesTail._nextMoved=m),m}_addToRemovals(m){return null===this._unlinkedRecords&&(this._unlinkedRecords=new ox),this._unlinkedRecords.put(m),m.currentIndex=null,m._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=m,m._prevRemoved=null):(m._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=m),m}_addIdentityChange(m,g){return m.item=g,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=m:this._identityChangesTail._nextIdentityChange=m,m}}class VE{constructor(m,g){this.item=m,this.trackById=g,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 BC{constructor(){this._head=null,this._tail=null}add(m){null===this._head?(this._head=this._tail=m,m._nextDup=null,m._prevDup=null):(this._tail._nextDup=m,m._prevDup=this._tail,m._nextDup=null,this._tail=m)}get(m,g){let _;for(_=this._head;null!==_;_=_._nextDup)if((null===g||g<=_.currentIndex)&&Object.is(_.trackById,m))return _;return null}remove(m){const g=m._prevDup,_=m._nextDup;return null===g?this._head=_:g._nextDup=_,null===_?this._tail=g:_._prevDup=g,null===this._head}}class ox{constructor(){this.map=new Map}put(m){const g=m.trackById;let _=this.map.get(g);_||(_=new BC,this.map.set(g,_)),_.add(m)}get(m,g){const y=this.map.get(m);return y?y.get(m,g):null}remove(m){const g=m.trackById;return this.map.get(g).remove(m)&&this.map.delete(g),m}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function VC(p,m,g){const _=p.previousIndex;if(null===_)return _;let y=0;return g&&_{if(g&&g.key===y)this._maybeAddToChanges(g,_),this._appendAfter=g,g=g._next;else{const v=this._getOrCreateRecordForKey(y,_);g=this._insertBeforeOrAppend(g,v)}}),g){g._prev&&(g._prev._next=null),this._removalsHead=g;for(let _=g;null!==_;_=_._nextRemoved)_===this._mapHead&&(this._mapHead=null),this._records.delete(_.key),_._nextRemoved=_._next,_.previousValue=_.currentValue,_.currentValue=null,_._prev=null,_._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(m,g){if(m){const _=m._prev;return g._next=m,g._prev=_,m._prev=g,_&&(_._next=g),m===this._mapHead&&(this._mapHead=g),this._appendAfter=m,m}return this._appendAfter?(this._appendAfter._next=g,g._prev=this._appendAfter):this._mapHead=g,this._appendAfter=g,null}_getOrCreateRecordForKey(m,g){if(this._records.has(m)){const y=this._records.get(m);this._maybeAddToChanges(y,g);const v=y._prev,D=y._next;return v&&(v._next=D),D&&(D._prev=v),y._next=null,y._prev=null,y}const _=new cx(m);return this._records.set(m,_),_.currentValue=g,this._addToAdditions(_),_}_reset(){if(this.isDirty){let m;for(this._previousMapHead=this._mapHead,m=this._previousMapHead;null!==m;m=m._next)m._nextPrevious=m._next;for(m=this._changesHead;null!==m;m=m._nextChanged)m.previousValue=m.currentValue;for(m=this._additionsHead;null!=m;m=m._nextAdded)m.previousValue=m.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(m,g){Object.is(g,m.currentValue)||(m.previousValue=m.currentValue,m.currentValue=g,this._addToChanges(m))}_addToAdditions(m){null===this._additionsHead?this._additionsHead=this._additionsTail=m:(this._additionsTail._nextAdded=m,this._additionsTail=m)}_addToChanges(m){null===this._changesHead?this._changesHead=this._changesTail=m:(this._changesTail._nextChanged=m,this._changesTail=m)}_forEach(m,g){m instanceof Map?m.forEach(g):Object.keys(m).forEach(_=>g(m[_],_))}}class cx{constructor(m){this.key=m,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Bg(){return new Vg([new sx])}let Vg=(()=>{class p{constructor(g){this.factories=g}static create(g,_){if(null!=_){const y=_.factories.slice();g=g.concat(y)}return new p(g)}static extend(g){return{provide:p,useFactory:_=>p.create(g,_||Bg()),deps:[[p,new mo,new hl]]}}find(g){const _=this.factories.find(y=>y.supports(g));if(null!=_)return _;throw new ie(901,!1)}}return p.\u0275prov=Qt({token:p,providedIn:"root",factory:Bg}),p})();function dx(){return new NC([new lx])}let NC=(()=>{class p{constructor(g){this.factories=g}static create(g,_){if(_){const y=_.factories.slice();g=g.concat(y)}return new p(g)}static extend(g){return{provide:p,useFactory:_=>p.create(g,_||dx()),deps:[[p,new mo,new hl]]}}find(g){const _=this.factories.find(y=>y.supports(g));if(_)return _;throw new ie(901,!1)}}return p.\u0275prov=Qt({token:p,providedIn:"root",factory:dx}),p})();const UE=Qu(null,"core",[]);let zE=(()=>{class p{constructor(g){}}return p.\u0275fac=function(g){return new(g||p)(zi(zp))},p.\u0275mod=yr({type:p}),p.\u0275inj=Si({}),p})();function qE(p){return"boolean"==typeof p?p:null!=p&&"false"!==p}},1214:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Ct:()=>OAuthService,Hy:()=>OAuthStorage,zr:()=>OAuthModule});var _home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5861),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(4650),_angular_common__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(6895),_angular_common_http__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(529),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(7579),rxjs__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(9646),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(2076),rxjs__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(102),rxjs__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(2843),rxjs__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(9841),rxjs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(6451),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(9300),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(8505),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(8372),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(1005),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(3900),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(4004),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(590),rxjs_operators__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(262),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(7414),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(5698),rxjs_operators__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(5577),fast_sha256__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1302);class DateTimeProvider{}let SystemDateTimeProvider=(()=>{class Y extends DateTimeProvider{now(){return Date.now()}new(){return new Date}}return Y.\u0275fac=function(){let z;return function(w){return(z||(z=_angular_core__WEBPACK_IMPORTED_MODULE_1__.n5z(Y)))(w||Y)}}(),Y.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:Y,factory:Y.\u0275fac}),Y})();class LoginOptions{constructor(){this.disableNonceCheck=!1,this.preventClearHashAfterLogin=!1}}class OAuthLogger{}class OAuthStorage{}let MemoryStorage=(()=>{class Y{constructor(){this.data=new Map}getItem(x){return this.data.get(x)}removeItem(x){this.data.delete(x)}setItem(x,w){this.data.set(x,w)}}return Y.\u0275fac=function(x){return new(x||Y)},Y.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:Y,factory:Y.\u0275fac}),Y})();class ReceivedTokens{}class OAuthEvent{constructor(z){this.type=z}}class OAuthSuccessEvent extends OAuthEvent{constructor(z,x=null){super(z),this.info=x}}class OAuthInfoEvent extends OAuthEvent{constructor(z,x=null){super(z),this.info=x}}class OAuthErrorEvent extends OAuthEvent{constructor(z,x,w=null){super(z),this.reason=x,this.params=w}}function b64DecodeUnicode(Y){const z=Y.replace(/\-/g,"+").replace(/\_/g,"/");return decodeURIComponent(atob(z).split("").map(function(x){return"%"+("00"+x.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function base64UrlEncode(Y){return btoa(Y).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}class AuthConfig{constructor(z){this.clientId="",this.redirectUri="",this.postLogoutRedirectUri="",this.redirectUriAsPostLogoutRedirectUriFallback=!0,this.loginUrl="",this.scope="openid profile",this.resource="",this.rngUrl="",this.oidc=!0,this.requestAccessToken=!0,this.options=null,this.issuer="",this.logoutUrl="",this.clearHashAfterLogin=!0,this.tokenEndpoint=null,this.revocationEndpoint=null,this.customTokenParameters=[],this.userinfoEndpoint=null,this.responseType="",this.showDebugInformation=!1,this.silentRefreshRedirectUri="",this.silentRefreshMessagePrefix="",this.silentRefreshShowIFrame=!1,this.siletRefreshTimeout=2e4,this.silentRefreshTimeout=2e4,this.dummyClientSecret=null,this.requireHttps="remoteOnly",this.strictDiscoveryDocumentValidation=!0,this.jwks=null,this.customQueryParams=null,this.silentRefreshIFrameName="angular-oauth-oidc-silent-refresh-iframe",this.timeoutFactor=.75,this.sessionChecksEnabled=!1,this.sessionCheckIntervall=3e3,this.sessionCheckIFrameUrl=null,this.sessionCheckIFrameName="angular-oauth-oidc-check-session-iframe",this.disableAtHashCheck=!1,this.skipSubjectCheck=!1,this.useIdTokenHintForSilentRefresh=!1,this.skipIssuerCheck=!1,this.nonceStateSeparator=";",this.useHttpBasicAuth=!1,this.waitForTokenInMsec=0,this.disablePKCE=!1,this.preserveRequestedRoute=!1,this.openUri=x=>{location.href=x},z&&Object.assign(this,z)}}class WebHttpUrlEncodingCodec{encodeKey(z){return encodeURIComponent(z)}encodeValue(z){return encodeURIComponent(z)}decodeKey(z){return decodeURIComponent(z)}decodeValue(z){return decodeURIComponent(z)}}class ValidationHandler{}class AbstractValidationHandler{validateAtHash(z){var x=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){let w=x.inferHashAlgorithm(z.idTokenHeader),i=yield x.calcHash(z.accessToken,w),M=base64UrlEncode(i.substr(0,i.length/2)),S=z.idTokenClaims.at_hash.replace(/=/g,"");return M!==S&&(console.error("exptected at_hash: "+M),console.error("actual at_hash: "+S)),M===S})()}inferHashAlgorithm(z){let x=z.alg;if(!x.match(/^.S[0-9]{3}$/))throw new Error("Algorithm not supported: "+x);return"sha-"+x.substr(2)}}let UrlHelperService=(()=>{class Y{getHashFragmentParams(x){let w=x||window.location.hash;if(w=decodeURIComponent(w),0!==w.indexOf("#"))return{};const i=w.indexOf("?");return w=w.substr(i>-1?i+1:1),this.parseQueryString(w)}parseQueryString(x){const w={};let i,E,M,S,k,L,F;if(null===x)return w;i=x.split("&");for(let U=0;U>6,E[S++]=128|63&k):k<55296||k>=57344?(E[S++]=224|k>>12,E[S++]=128|k>>6&63,E[S++]=128|63&k):(k=65536+((1023&k)<<10|1023&Y.charCodeAt(++w)),E[S++]=240|k>>18,E[S++]=128|k>>12&63,E[S++]=128|k>>6&63,E[S++]=128|63&k);Y=E}else{if("object"!==i)throw new Error(ERROR);if(null===Y)throw new Error(ERROR);if(ARRAY_BUFFER&&Y.constructor===ArrayBuffer)Y=new Uint8Array(Y);else if(!(Array.isArray(Y)||ARRAY_BUFFER&&ArrayBuffer.isView(Y)))throw new Error(ERROR)}Y.length>64&&(Y=new Sha256(z,!0).update(Y).array());var L=[],F=[];for(w=0;w<64;++w){var U=Y[w]||0;L[w]=92^U,F[w]=54^U}Sha256.call(this,z,x),this.update(F),this.oKeyPad=L,this.inner=!0,this.sharedMemory=x}Sha256.prototype.update=function(Y){if(!this.finalized){var z,x=typeof Y;if("string"!==x){if("object"!==x)throw new Error(ERROR);if(null===Y)throw new Error(ERROR);if(ARRAY_BUFFER&&Y.constructor===ArrayBuffer)Y=new Uint8Array(Y);else if(!(Array.isArray(Y)||ARRAY_BUFFER&&ArrayBuffer.isView(Y)))throw new Error(ERROR);z=!0}for(var w,E,i=0,M=Y.length,S=this.blocks;i>2]|=Y[i]<>2]|=w<>2]|=(192|w>>6)<>2]|=(128|63&w)<=57344?(S[E>>2]|=(224|w>>12)<>2]|=(128|w>>6&63)<>2]|=(128|63&w)<>2]|=(240|w>>18)<>2]|=(128|w>>12&63)<>2]|=(128|w>>6&63)<>2]|=(128|63&w)<=64?(this.block=S[16],this.start=E-64,this.hash(),this.hashed=!0):this.start=E}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var Y=this.blocks,z=this.lastByteIndex;Y[16]=this.block,Y[z>>2]|=EXTRA[3&z],this.block=Y[16],z>=56&&(this.hashed||this.hash(),Y[0]=this.block,Y[16]=Y[1]=Y[2]=Y[3]=Y[4]=Y[5]=Y[6]=Y[7]=Y[8]=Y[9]=Y[10]=Y[11]=Y[12]=Y[13]=Y[14]=Y[15]=0),Y[14]=this.hBytes<<3|this.bytes>>>29,Y[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var L,Q,re,ie,me,be,Y=this.h0,z=this.h1,x=this.h2,w=this.h3,i=this.h4,E=this.h5,M=this.h6,S=this.h7,k=this.blocks;for(L=16;L<64;++L)k[L]=k[L-16]+(((Q=k[L-15])>>>7|Q<<25)^(Q>>>18|Q<<14)^Q>>>3)+k[L-7]+(((Q=k[L-2])>>>17|Q<<15)^(Q>>>19|Q<<13)^Q>>>10)<<0;for(be=z&x,L=0;L<64;L+=4)this.first?(this.is224?(re=300032,S=(Q=k[0]-1413257819)-150054599<<0,w=Q+24177077<<0):(re=704751109,S=(Q=k[0]-210244248)-1521486534<<0,w=Q+143694565<<0),this.first=!1):(S=w+(Q=S+((i>>>6|i<<26)^(i>>>11|i<<21)^(i>>>25|i<<7))+(i&E^~i&M)+K[L]+k[L])<<0,w=Q+(((Y>>>2|Y<<30)^(Y>>>13|Y<<19)^(Y>>>22|Y<<10))+((re=Y&z)^Y&x^be))<<0),M=x+(Q=M+((S>>>6|S<<26)^(S>>>11|S<<21)^(S>>>25|S<<7))+(S&i^~S&E)+K[L+1]+k[L+1])<<0,x=Q+(((w>>>2|w<<30)^(w>>>13|w<<19)^(w>>>22|w<<10))+((ie=w&Y)^w&z^re))<<0,E=z+(Q=E+((M>>>6|M<<26)^(M>>>11|M<<21)^(M>>>25|M<<7))+(M&S^~M&i)+K[L+2]+k[L+2])<<0,z=Q+(((x>>>2|x<<30)^(x>>>13|x<<19)^(x>>>22|x<<10))+((me=x&w)^x&Y^ie))<<0,i=Y+(Q=i+((E>>>6|E<<26)^(E>>>11|E<<21)^(E>>>25|E<<7))+(E&M^~E&S)+K[L+3]+k[L+3])<<0,Y=Q+(((z>>>2|z<<30)^(z>>>13|z<<19)^(z>>>22|z<<10))+((be=z&x)^z&w^me))<<0;this.h0=this.h0+Y<<0,this.h1=this.h1+z<<0,this.h2=this.h2+x<<0,this.h3=this.h3+w<<0,this.h4=this.h4+i<<0,this.h5=this.h5+E<<0,this.h6=this.h6+M<<0,this.h7=this.h7+S<<0},Sha256.prototype.hex=function(){this.finalize();var Y=this.h0,z=this.h1,x=this.h2,w=this.h3,i=this.h4,E=this.h5,M=this.h6,S=this.h7,k=HEX_CHARS[Y>>28&15]+HEX_CHARS[Y>>24&15]+HEX_CHARS[Y>>20&15]+HEX_CHARS[Y>>16&15]+HEX_CHARS[Y>>12&15]+HEX_CHARS[Y>>8&15]+HEX_CHARS[Y>>4&15]+HEX_CHARS[15&Y]+HEX_CHARS[z>>28&15]+HEX_CHARS[z>>24&15]+HEX_CHARS[z>>20&15]+HEX_CHARS[z>>16&15]+HEX_CHARS[z>>12&15]+HEX_CHARS[z>>8&15]+HEX_CHARS[z>>4&15]+HEX_CHARS[15&z]+HEX_CHARS[x>>28&15]+HEX_CHARS[x>>24&15]+HEX_CHARS[x>>20&15]+HEX_CHARS[x>>16&15]+HEX_CHARS[x>>12&15]+HEX_CHARS[x>>8&15]+HEX_CHARS[x>>4&15]+HEX_CHARS[15&x]+HEX_CHARS[w>>28&15]+HEX_CHARS[w>>24&15]+HEX_CHARS[w>>20&15]+HEX_CHARS[w>>16&15]+HEX_CHARS[w>>12&15]+HEX_CHARS[w>>8&15]+HEX_CHARS[w>>4&15]+HEX_CHARS[15&w]+HEX_CHARS[i>>28&15]+HEX_CHARS[i>>24&15]+HEX_CHARS[i>>20&15]+HEX_CHARS[i>>16&15]+HEX_CHARS[i>>12&15]+HEX_CHARS[i>>8&15]+HEX_CHARS[i>>4&15]+HEX_CHARS[15&i]+HEX_CHARS[E>>28&15]+HEX_CHARS[E>>24&15]+HEX_CHARS[E>>20&15]+HEX_CHARS[E>>16&15]+HEX_CHARS[E>>12&15]+HEX_CHARS[E>>8&15]+HEX_CHARS[E>>4&15]+HEX_CHARS[15&E]+HEX_CHARS[M>>28&15]+HEX_CHARS[M>>24&15]+HEX_CHARS[M>>20&15]+HEX_CHARS[M>>16&15]+HEX_CHARS[M>>12&15]+HEX_CHARS[M>>8&15]+HEX_CHARS[M>>4&15]+HEX_CHARS[15&M];return this.is224||(k+=HEX_CHARS[S>>28&15]+HEX_CHARS[S>>24&15]+HEX_CHARS[S>>20&15]+HEX_CHARS[S>>16&15]+HEX_CHARS[S>>12&15]+HEX_CHARS[S>>8&15]+HEX_CHARS[S>>4&15]+HEX_CHARS[15&S]),k},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var Y=this.h0,z=this.h1,x=this.h2,w=this.h3,i=this.h4,E=this.h5,M=this.h6,S=this.h7,k=[Y>>24&255,Y>>16&255,Y>>8&255,255&Y,z>>24&255,z>>16&255,z>>8&255,255&z,x>>24&255,x>>16&255,x>>8&255,255&x,w>>24&255,w>>16&255,w>>8&255,255&w,i>>24&255,i>>16&255,i>>8&255,255&i,E>>24&255,E>>16&255,E>>8&255,255&E,M>>24&255,M>>16&255,M>>8&255,255&M];return this.is224||k.push(S>>24&255,S>>16&255,S>>8&255,255&S),k},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var Y=new ArrayBuffer(this.is224?28:32),z=new DataView(Y);return z.setUint32(0,this.h0),z.setUint32(4,this.h1),z.setUint32(8,this.h2),z.setUint32(12,this.h3),z.setUint32(16,this.h4),z.setUint32(20,this.h5),z.setUint32(24,this.h6),this.is224||z.setUint32(28,this.h7),Y},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var Y=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(Y),Sha256.prototype.finalize.call(this)}};var exports=createMethod();return exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),exports}const sha256=factory();class HashHandler{}function decodeUTF8(Y){if("string"!=typeof Y)throw new TypeError("expected string");var z,x=Y,w=new Uint8Array(x.length);for(z=0;z{class Y{calcHash(x,w){return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){return encodeUTF8(fast_sha256__WEBPACK_IMPORTED_MODULE_0__(decodeUTF8(x)))})()}toHashString2(x){let w="";for(let i of x)w+=String.fromCharCode(i);return w}toHashString(x){const w=new Uint8Array(x);let i="";for(let E of w)i+=String.fromCharCode(E);return i}}return Y.\u0275fac=function(x){return new(x||Y)},Y.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:Y,factory:Y.\u0275fac}),Y})(),OAuthService=(()=>{class Y extends AuthConfig{constructor(x,w,i,E,M,S,k,L,F,U){super(),this.ngZone=x,this.http=w,this.config=M,this.urlHelper=S,this.logger=k,this.crypto=L,this.dateTimeService=U,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.discoveryDocumentLoadedSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=F,M||(M={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),E&&(this.tokenValidationHandler=E),M&&this.configure(M);try{i?this.setStorage(i):typeof sessionStorage<"u"&&this.setStorage(sessionStorage)}catch(J){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",J)}if(this.checkLocalStorageAccessable()){const J=window?.navigator?.userAgent;(J?.includes("MSIE ")||J?.includes("Trident"))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if(typeof window>"u")return!1;const x="test";try{return!(typeof window.localStorage>"u"||(localStorage.setItem(x,x),localStorage.removeItem(x),0))}catch{return!1}}configure(x){Object.assign(this,new AuthConfig,x),this.config=Object.assign({},new AuthConfig,x),this.sessionChecksEnabled&&this.setupSessionCheck(),this.configChanged()}configChanged(){this.setupRefreshTimer()}restartSessionChecksIfStillLoggedIn(){this.hasValidIdToken()&&this.initSessionCheck()}restartRefreshTimerIfStillLoggedIn(){this.setupExpirationTimers()}setupSessionCheck(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(x=>"token_received"===x.type)).subscribe(x=>{this.initSessionCheck()})}setupAutomaticSilentRefresh(x={},w,i=!0){let E=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(M=>{"token_received"===M.type?E=!0:"logout"===M.type&&(E=!1)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(M=>"token_expires"===M.type&&(null==w||"any"===w||M.info===w)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.b)(1e3)).subscribe(M=>{E&&this.refreshInternal(x,i).catch(S=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(x,w){return this.useSilentRefresh||"code"!==this.responseType?this.silentRefresh(x,w):this.refreshToken()}loadDiscoveryDocumentAndTryLogin(x=null){return this.loadDiscoveryDocument().then(w=>this.tryLogin(x))}loadDiscoveryDocumentAndLogin(x=null){return this.loadDiscoveryDocumentAndTryLogin(x=x||{}).then(w=>!(!this.hasValidIdToken()||!this.hasValidAccessToken())||(this.initLoginFlow("string"==typeof x.state?x.state:""),!1))}debug(...x){this.showDebugInformation&&this.logger.debug.apply(this.logger,x)}validateUrlFromDiscoveryDocument(x){const w=[],i=this.validateUrlForHttps(x),E=this.validateUrlAgainstIssuer(x);return i||w.push("https for all urls required. Also for urls received by discovery."),E||w.push("Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation."),w}validateUrlForHttps(x){if(!x)return!0;const w=x.toLowerCase();return!(!1!==this.requireHttps&&(!w.match(/^http:\/\/localhost($|[:\/])/)&&!w.match(/^http:\/\/localhost($|[:\/])/)||"remoteOnly"!==this.requireHttps))||w.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(x,w){if(!x)throw new Error(`'${w}' should not be null`);if(!this.validateUrlForHttps(x))throw new Error(`'${w}' must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).`)}validateUrlAgainstIssuer(x){return!this.strictDiscoveryDocumentValidation||!x||x.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){typeof window>"u"?this.debug("timer not supported on this plattform"):((this.hasValidIdToken()||this.hasValidAccessToken())&&(this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()),this.tokenReceivedSubscription&&this.tokenReceivedSubscription.unsubscribe(),this.tokenReceivedSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(x=>"token_received"===x.type)).subscribe(x=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()}))}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){const x=this.getAccessTokenExpiration(),w=this.getAccessTokenStoredAt(),i=this.calcTimeout(w,x);this.ngZone.runOutsideAngular(()=>{this.accessTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","access_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(i)).subscribe(E=>{this.ngZone.run(()=>{this.eventsSubject.next(E)})})})}setupIdTokenTimer(){const x=this.getIdTokenExpiration(),w=this.getIdTokenStoredAt(),i=this.calcTimeout(w,x);this.ngZone.runOutsideAngular(()=>{this.idTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","id_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(i)).subscribe(E=>{this.ngZone.run(()=>{this.eventsSubject.next(E)})})})}stopAutomaticRefresh(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.clearAutomaticRefreshTimer()}clearAccessTokenTimer(){this.accessTokenTimeoutSubscription&&this.accessTokenTimeoutSubscription.unsubscribe()}clearIdTokenTimer(){this.idTokenTimeoutSubscription&&this.idTokenTimeoutSubscription.unsubscribe()}clearAutomaticRefreshTimer(){this.automaticRefreshSubscription&&this.automaticRefreshSubscription.unsubscribe()}calcTimeout(x,w){const i=this.dateTimeService.now();return Math.max(0,(w-x)*this.timeoutFactor-(i-x))}setStorage(x){this._storage=x,this.configChanged()}loadDiscoveryDocument(x=null){return new Promise((w,i)=>{x||((x=this.issuer||"").endsWith("/")||(x+="/"),x+=".well-known/openid-configuration"),this.validateUrlForHttps(x)?this.http.get(x).subscribe(E=>{if(!this.validateDiscoveryDocument(E))return this.eventsSubject.next(new OAuthErrorEvent("discovery_document_validation_error",null)),void i("discovery_document_validation_error");this.loginUrl=E.authorization_endpoint,this.logoutUrl=E.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=E.grant_types_supported,this.issuer=E.issuer,this.tokenEndpoint=E.token_endpoint,this.userinfoEndpoint=E.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=E.jwks_uri,this.sessionCheckIFrameUrl=E.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(E),this.revocationEndpoint=E.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(M=>{const k=new OAuthSuccessEvent("discovery_document_loaded",{discoveryDocument:E,jwks:M});this.eventsSubject.next(k),w(k)}).catch(M=>{this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",M)),i(M)})},E=>{this.logger.error("error loading discovery document",E),this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",E)),i(E)}):i("issuer must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).")})}loadJwks(){return new Promise((x,w)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(i=>{this.jwks=i,this.eventsSubject.next(new OAuthSuccessEvent("discovery_document_loaded")),x(i)},i=>{this.logger.error("error loading jwks",i),this.eventsSubject.next(new OAuthErrorEvent("jwks_load_error",i)),w(i)}):x(null)})}validateDiscoveryDocument(x){let w;return this.skipIssuerCheck||x.issuer===this.issuer?(w=this.validateUrlFromDiscoveryDocument(x.authorization_endpoint),w.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",w),!1):(w=this.validateUrlFromDiscoveryDocument(x.end_session_endpoint),w.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",w),!1):(w=this.validateUrlFromDiscoveryDocument(x.token_endpoint),w.length>0&&this.logger.error("error validating token_endpoint in discovery document",w),w=this.validateUrlFromDiscoveryDocument(x.revocation_endpoint),w.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",w),w=this.validateUrlFromDiscoveryDocument(x.userinfo_endpoint),w.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",w),!1):(w=this.validateUrlFromDiscoveryDocument(x.jwks_uri),w.length>0?(this.logger.error("error validating jwks_uri in discovery document",w),!1):(this.sessionChecksEnabled&&!x.check_session_iframe&&this.logger.warn("sessionChecksEnabled is activated but discovery document does not contain a check_session_iframe field"),!0))))):(this.logger.error("invalid issuer in discovery document","expected: "+this.issuer,"current: "+x.issuer),!1)}fetchTokenUsingPasswordFlowAndLoadUserProfile(x,w,i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingPasswordFlow(x,w,i).then(()=>this.loadUserProfile())}loadUserProfile(){if(!this.hasValidAccessToken())throw new Error("Can not load User Profile without access_token");if(!this.validateUrlForHttps(this.userinfoEndpoint))throw new Error("userinfoEndpoint must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");return new Promise((x,w)=>{const i=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:i,observe:"response",responseType:"text"}).subscribe(E=>{if(this.debug("userinfo received",JSON.stringify(E)),E.headers.get("content-type").startsWith("application/json")){let M=JSON.parse(E.body);const S=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!S.sub||M.sub!==S.sub))return void w("if property oidc is true, the received user-id (sub) has to be the user-id of the user that has logged in with oidc.\nif you are not using oidc but just oauth2 password flow set oidc to false");M=Object.assign({},S,M),this._storage.setItem("id_token_claims_obj",JSON.stringify(M)),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),x({info:M})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),x(JSON.parse(E.body))},E=>{this.logger.error("error loading user info",E),this.eventsSubject.next(new OAuthErrorEvent("user_profile_load_error",E)),w(E)})})}fetchTokenUsingPasswordFlow(x,w,i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingGrant("password",{username:x,password:w},i)}fetchTokenUsingGrant(x,w,i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let E=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type",x).set("scope",this.scope);if(this.useHttpBasicAuth){const M=btoa(`${this.clientId}:${this.dummyClientSecret}`);i=i.set("Authorization","Basic "+M)}if(this.useHttpBasicAuth||(E=E.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(E=E.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const M of Object.getOwnPropertyNames(this.customQueryParams))E=E.set(M,this.customQueryParams[M]);for(const M of Object.keys(w))E=E.set(M,w[M]);return i=i.set("Content-Type","application/x-www-form-urlencoded"),new Promise((M,S)=>{this.http.post(this.tokenEndpoint,E,{headers:i}).subscribe(k=>{this.debug("tokenResponse",k),this.storeAccessTokenResponse(k.access_token,k.refresh_token,k.expires_in||this.fallbackAccessTokenExpirationTimeInSec,k.scope,this.extractRecognizedCustomParameters(k)),this.oidc&&k.id_token&&this.processIdToken(k.id_token,k.access_token).then(L=>{this.storeIdToken(L),M(k)}),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),M(k)},k=>{this.logger.error("Error performing ${grantType} flow",k),this.eventsSubject.next(new OAuthErrorEvent("token_error",k)),S(k)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((x,w)=>{let i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","refresh_token").set("scope",this.scope).set("refresh_token",this._storage.getItem("refresh_token")),E=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const M=btoa(`${this.clientId}:${this.dummyClientSecret}`);E=E.set("Authorization","Basic "+M)}if(this.useHttpBasicAuth||(i=i.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(i=i.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const M of Object.getOwnPropertyNames(this.customQueryParams))i=i.set(M,this.customQueryParams[M]);this.http.post(this.tokenEndpoint,i,{headers:E}).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.w)(M=>M.id_token?(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.D)(this.processIdToken(M.id_token,M.access_token,!0)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(S=>this.storeIdToken(S)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(S=>M)):(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(M))).subscribe(M=>{this.debug("refresh tokenResponse",M),this.storeAccessTokenResponse(M.access_token,M.refresh_token,M.expires_in||this.fallbackAccessTokenExpirationTimeInSec,M.scope,this.extractRecognizedCustomParameters(M)),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),x(M)},M=>{this.logger.error("Error refreshing token",M),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",M)),w(M)})})}removeSilentRefreshEventListener(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}setupSilentRefreshEventListener(){this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=x=>{const w=this.processMessageEventMessage(x);this.tryLogin({customHashFragment:w,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri||this.redirectUri}).catch(i=>this.debug("tryLogin during silent refresh failed",i))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(x={},w=!0){const i=this.getIdentityClaims()||{};if(this.useIdTokenHintForSilentRefresh&&this.hasValidIdToken()&&(x.id_token_hint=this.getIdToken()),!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(typeof this.document>"u")throw new Error("silent refresh is not supported on this platform");const E=this.document.getElementById(this.silentRefreshIFrameName);E&&this.document.body.removeChild(E),this.silentRefreshSubject=i.sub;const M=this.document.createElement("iframe");M.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,w,x).then(U=>{M.setAttribute("src",U),this.silentRefreshShowIFrame||(M.style.display="none"),this.document.body.appendChild(M)});const k=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(U=>U instanceof OAuthErrorEvent),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),L=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(U=>"token_received"===U.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),F=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthErrorEvent("silent_refresh_timeout",null)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(this.silentRefreshTimeout));return(0,rxjs__WEBPACK_IMPORTED_MODULE_14__.S)([k,L,F]).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(U=>{if(U instanceof OAuthErrorEvent)throw"silent_refresh_timeout"===U.type||(U=new OAuthErrorEvent("silent_refresh_error",U)),this.eventsSubject.next(U),U;return"token_received"===U.type&&(U=new OAuthSuccessEvent("silently_refreshed"),this.eventsSubject.next(U)),U})).toPromise()}initImplicitFlowInPopup(x){return this.initLoginFlowInPopup(x)}initLoginFlowInPopup(x){return x=x||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(w=>new Promise((i,E)=>{let k,S=null;x.windowRef?x.windowRef&&!x.windowRef.closed&&(S=x.windowRef,S.location.href=w):S=window.open(w,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(x));const L=ne=>{this.tryLogin({customHashFragment:ne,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{U(),i(!0)},le=>{U(),E(le)})};S?k=window.setInterval(()=>{(!S||S.closed)&&(U(),E(new OAuthErrorEvent("popup_closed",{})))},500):E(new OAuthErrorEvent("popup_blocked",{}));const U=()=>{window.clearInterval(k),window.removeEventListener("storage",Q),window.removeEventListener("message",J),null!==S&&S.close(),S=null},J=ne=>{const le=this.processMessageEventMessage(ne);le&&null!==le?(window.removeEventListener("storage",Q),L(le)):console.log("false event firing")},Q=ne=>{"auth_hash"===ne.key&&(window.removeEventListener("message",J),L(ne.newValue))};window.addEventListener("message",J),window.addEventListener("storage",Q)}))}calculatePopupFeatures(x){const w=x.height||470,i=x.width||500,E=window.screenLeft+(window.outerWidth-i)/2;return`location=no,toolbar=no,width=${i},height=${w},top=${window.screenTop+(window.outerHeight-w)/2},left=${E}`}processMessageEventMessage(x){let w="#";if(this.silentRefreshMessagePrefix&&(w+=this.silentRefreshMessagePrefix),!x||!x.data||"string"!=typeof x.data)return;const i=x.data;return i.startsWith(w)?"#"+i.substr(w.length):void 0}canPerformSessionCheck(){return!(!this.sessionChecksEnabled||(this.sessionCheckIFrameUrl?this.getSessionState()?typeof this.document>"u":(console.warn("sessionChecksEnabled is activated but there is no session_state"),1):(console.warn("sessionChecksEnabled is activated but there is no sessionCheckIFrameUrl"),1)))}setupSessionCheckEventListener(){this.removeSessionCheckEventListener(),this.sessionCheckEventListener=x=>{const w=x.origin.toLowerCase(),i=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),i.startsWith(w)){switch(x.data){case"unchanged":this.ngZone.run(()=>{this.handleSessionUnchanged()});break;case"changed":this.ngZone.run(()=>{this.handleSessionChange()});break;case"error":this.ngZone.run(()=>{this.handleSessionError()})}this.debug("got info from session check inframe",x)}else this.debug("sessionCheckEventListener","wrong origin",w,"expected",i,"event",x)},this.ngZone.runOutsideAngular(()=>{window.addEventListener("message",this.sessionCheckEventListener)})}handleSessionUnchanged(){this.debug("session check","session unchanged"),this.eventsSubject.next(new OAuthInfoEvent("session_unchanged"))}handleSessionChange(){this.eventsSubject.next(new OAuthInfoEvent("session_changed")),this.stopSessionCheckTimer(),this.useSilentRefresh||"code"!==this.responseType?this.silentRefreshRedirectUri?(this.silentRefresh().catch(x=>this.debug("silent refresh failed after session changed")),this.waitForSilentRefreshAfterSessionChange()):(this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)):this.refreshToken().then(x=>{this.debug("token refresh after session change worked")}).catch(x=>{this.debug("token refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)})}waitForSilentRefreshAfterSessionChange(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(x=>"silently_refreshed"===x.type||"silent_refresh_timeout"===x.type||"silent_refresh_error"===x.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()).subscribe(x=>{"silently_refreshed"!==x.type&&(this.debug("silent refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0))})}handleSessionError(){this.stopSessionCheckTimer(),this.eventsSubject.next(new OAuthInfoEvent("session_error"))}removeSessionCheckEventListener(){this.sessionCheckEventListener&&(window.removeEventListener("message",this.sessionCheckEventListener),this.sessionCheckEventListener=null)}initSessionCheck(){if(!this.canPerformSessionCheck())return;const x=this.document.getElementById(this.sessionCheckIFrameName);x&&this.document.body.removeChild(x);const w=this.document.createElement("iframe");w.id=this.sessionCheckIFrameName,this.setupSessionCheckEventListener(),w.setAttribute("src",this.sessionCheckIFrameUrl),w.style.display="none",this.document.body.appendChild(w),this.startSessionCheckTimer()}startSessionCheckTimer(){this.stopSessionCheckTimer(),this.ngZone.runOutsideAngular(()=>{this.sessionCheckTimer=setInterval(this.checkSession.bind(this),this.sessionCheckIntervall)})}stopSessionCheckTimer(){this.sessionCheckTimer&&(clearInterval(this.sessionCheckTimer),this.sessionCheckTimer=null)}checkSession(){const x=this.document.getElementById(this.sessionCheckIFrameName);x||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);const w=this.getSessionState();w||this.stopSessionCheckTimer(),x.contentWindow.postMessage(this.clientId+" "+w,this.issuer)}createLoginUrl(x="",w="",i="",E=!1,M={}){var S=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const k=S;let L;L=i||S.redirectUri;const F=yield S.createAndSaveNonce();if(x=x?F+S.config.nonceStateSeparator+encodeURIComponent(x):F,!S.requestAccessToken&&!S.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");S.responseType=S.config.responseType?S.config.responseType:S.oidc&&S.requestAccessToken?"id_token token":S.oidc&&!S.requestAccessToken?"id_token":"token";const U=k.loginUrl.indexOf("?")>-1?"&":"?";let J=k.scope;S.oidc&&!J.match(/(^|\s)openid($|\s)/)&&(J="openid "+J);let Q=k.loginUrl+U+"response_type="+encodeURIComponent(k.responseType)+"&client_id="+encodeURIComponent(k.clientId)+"&state="+encodeURIComponent(x)+"&redirect_uri="+encodeURIComponent(L)+"&scope="+encodeURIComponent(J);if(S.responseType.includes("code")&&!S.disablePKCE){const[ne,le]=yield S.createChallangeVerifierPairForPKCE();S.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("PKCE_verifier",le):S._storage.setItem("PKCE_verifier",le),Q+="&code_challenge="+ne,Q+="&code_challenge_method=S256"}w&&(Q+="&login_hint="+encodeURIComponent(w)),k.resource&&(Q+="&resource="+encodeURIComponent(k.resource)),k.oidc&&(Q+="&nonce="+encodeURIComponent(F)),E&&(Q+="&prompt=none");for(const ne of Object.keys(M))Q+="&"+encodeURIComponent(ne)+"="+encodeURIComponent(M[ne]);if(S.customQueryParams)for(const ne of Object.getOwnPropertyNames(S.customQueryParams))Q+="&"+ne+"="+encodeURIComponent(S.customQueryParams[ne]);return Q})()}initImplicitFlowInternal(x="",w=""){if(this.inImplicitFlow)return;if(this.inImplicitFlow=!0,!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let i={},E=null;"string"==typeof w?E=w:"object"==typeof w&&(i=w),this.createLoginUrl(x,E,null,!1,i).then(this.config.openUri).catch(M=>{console.error("Error in initImplicitFlow",M),this.inImplicitFlow=!1})}initImplicitFlow(x="",w=""){""!==this.loginUrl?this.initImplicitFlowInternal(x,w):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(i=>"discovery_document_loaded"===i.type)).subscribe(i=>this.initImplicitFlowInternal(x,w))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(x){const w=this;if(x.onTokenReceived){const i={idClaims:w.getIdentityClaims(),idToken:w.getIdToken(),accessToken:w.getAccessToken(),state:w.state};x.onTokenReceived(i)}}storeAccessTokenResponse(x,w,i,E,M){if(this._storage.setItem("access_token",x),E&&!Array.isArray(E)?this._storage.setItem("granted_scopes",JSON.stringify(E.split(" "))):E&&Array.isArray(E)&&this._storage.setItem("granted_scopes",JSON.stringify(E)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),i){const S=1e3*i,L=this.dateTimeService.new().getTime()+S;this._storage.setItem("expires_at",""+L)}w&&this._storage.setItem("refresh_token",w),M&&M.forEach((S,k)=>{this._storage.setItem(k,S)})}tryLogin(x=null){return"code"===this.config.responseType?this.tryLoginCodeFlow(x).then(w=>!0):this.tryLoginImplicitFlow(x)}parseQueryString(x){return x&&0!==x.length?("?"===x.charAt(0)&&(x=x.substr(1)),this.urlHelper.parseQueryString(x)):{}}tryLoginCodeFlow(x=null){var w=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const i=(x=x||{}).customHashFragment?x.customHashFragment.substring(1):window.location.search,E=w.getCodePartsFromUrl(i),M=E.code,S=E.state,k=E.session_state;if(!x.preventClearHashAfterLogin){const U=location.origin+location.pathname+location.search.replace(/code=[^&\$]*/,"").replace(/scope=[^&\$]*/,"").replace(/state=[^&\$]*/,"").replace(/session_state=[^&\$]*/,"").replace(/^\?&/,"?").replace(/&$/,"").replace(/^\?$/,"").replace(/&+/g,"&").replace(/\?&/,"?").replace(/\?$/,"")+location.hash;history.replaceState(null,window.name,U)}let[L,F]=w.parseState(S);if(w.state=F,E.error){w.debug("error trying to login"),w.handleLoginError(x,E);const U=new OAuthErrorEvent("code_error",{},E);return w.eventsSubject.next(U),Promise.reject(U)}if(!x.disableNonceCheck){if(!L)return w.saveRequestedRoute(),Promise.resolve();if(!x.disableOAuth2StateCheck&&!w.validateNonce(L)){const J=new OAuthErrorEvent("invalid_nonce_in_state",null);return w.eventsSubject.next(J),Promise.reject(J)}return w.storeSessionState(k),M&&(yield w.getTokenFromCode(M,x),w.restoreRequestedRoute()),Promise.resolve()}return Promise.reject()})()}saveRequestedRoute(){this.config.preserveRequestedRoute&&this._storage.setItem("requested_route",window.location.pathname+window.location.search)}restoreRequestedRoute(){const x=this._storage.getItem("requested_route");x&&history.replaceState(null,"",window.location.origin+x)}getCodePartsFromUrl(x){return x&&0!==x.length?("?"===x.charAt(0)&&(x=x.substr(1)),this.urlHelper.parseQueryString(x)):this.urlHelper.getHashFragmentParams()}getTokenFromCode(x,w){let i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","authorization_code").set("code",x).set("redirect_uri",w.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let E;E=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("PKCE_verifier"):this._storage.getItem("PKCE_verifier"),E?i=i.set("code_verifier",E):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(i,w)}fetchAndProcessToken(x,w){w=w||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let i=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const E=btoa(`${this.clientId}:${this.dummyClientSecret}`);i=i.set("Authorization","Basic "+E)}return this.useHttpBasicAuth||(x=x.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(x=x.set("client_secret",this.dummyClientSecret)),new Promise((E,M)=>{if(this.customQueryParams)for(let S of Object.getOwnPropertyNames(this.customQueryParams))x=x.set(S,this.customQueryParams[S]);this.http.post(this.tokenEndpoint,x,{headers:i}).subscribe(S=>{this.debug("refresh tokenResponse",S),this.storeAccessTokenResponse(S.access_token,S.refresh_token,S.expires_in||this.fallbackAccessTokenExpirationTimeInSec,S.scope,this.extractRecognizedCustomParameters(S)),this.oidc&&S.id_token?this.processIdToken(S.id_token,S.access_token,w.disableNonceCheck).then(k=>{this.storeIdToken(k),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),E(S)}).catch(k=>{this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",k)),console.error("Error validating tokens"),console.error(k),M(k)}):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),E(S))},S=>{console.error("Error getting token",S),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",S)),M(S)})})}tryLoginImplicitFlow(x=null){let w;w=(x=x||{}).customHashFragment?this.urlHelper.getHashFragmentParams(x.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",w);const i=w.state;let[E,M]=this.parseState(i);if(this.state=M,w.error){this.debug("error trying to login"),this.handleLoginError(x,w);const U=new OAuthErrorEvent("token_error",{},w);return this.eventsSubject.next(U),Promise.reject(U)}const S=w.access_token,k=w.id_token,L=w.session_state,F=w.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!S||this.requestAccessToken&&!x.disableOAuth2StateCheck&&!i||this.oidc&&!k)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!L&&this.logger.warn("session checks (Session Status Change Notification) were activated in the configuration but the id_token does not contain a session_state claim"),this.requestAccessToken&&!x.disableNonceCheck&&!this.validateNonce(E)){const J=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(J),Promise.reject(J)}return this.requestAccessToken&&this.storeAccessTokenResponse(S,null,w.expires_in||this.fallbackAccessTokenExpirationTimeInSec,F),this.oidc?this.processIdToken(k,S,x.disableNonceCheck).then(U=>x.validationHandler?x.validationHandler({accessToken:S,idClaims:U.idTokenClaims,idToken:U.idToken,state:i}).then(J=>U):U).then(U=>(this.storeIdToken(U),this.storeSessionState(L),this.clearHashAfterLogin&&!x.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.callOnTokenReceivedIfExists(x),this.inImplicitFlow=!1,!0)).catch(U=>(this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",U)),this.logger.error("Error validating tokens"),this.logger.error(U),Promise.reject(U))):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.clearHashAfterLogin&&!x.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(x),Promise.resolve(!0))}parseState(x){let w=x,i="";if(x){const E=x.indexOf(this.config.nonceStateSeparator);E>-1&&(w=x.substr(0,E),i=x.substr(E+this.config.nonceStateSeparator.length))}return[w,i]}validateNonce(x){let w;return w=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),w===x||(console.error("Validating access_token failed, wrong state/nonce.",w,x),!1)}storeIdToken(x){this._storage.setItem("id_token",x.idToken),this._storage.setItem("id_token_claims_obj",x.idTokenClaimsJson),this._storage.setItem("id_token_expires_at",""+x.idTokenExpiresAt),this._storage.setItem("id_token_stored_at",""+this.dateTimeService.now())}storeSessionState(x){this._storage.setItem("session_state",x)}getSessionState(){return this._storage.getItem("session_state")}handleLoginError(x,w){x.onLoginError&&x.onLoginError(w),this.clearHashAfterLogin&&!x.preventClearHashAfterLogin&&this.clearLocationHash()}getClockSkewInMsec(x=6e5){return this.clockSkewInSec?1e3*this.clockSkewInSec:x}processIdToken(x,w,i=!1){const E=x.split("."),S=b64DecodeUnicode(this.padBase64(E[0])),k=JSON.parse(S),F=b64DecodeUnicode(this.padBase64(E[1])),U=JSON.parse(F);let J;if(J=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Array.isArray(U.aud)){if(U.aud.every(me=>me!==this.clientId)){const me="Wrong audience: "+U.aud.join(",");return this.logger.warn(me),Promise.reject(me)}}else if(U.aud!==this.clientId){const me="Wrong audience: "+U.aud;return this.logger.warn(me),Promise.reject(me)}if(!U.sub){const me="No sub claim in id_token";return this.logger.warn(me),Promise.reject(me)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==U.sub){const me=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${U.sub}`;return this.logger.warn(me),Promise.reject(me)}if(!U.iat){const me="No iat claim in id_token";return this.logger.warn(me),Promise.reject(me)}if(!this.skipIssuerCheck&&U.iss!==this.issuer){const me="Wrong issuer: "+U.iss;return this.logger.warn(me),Promise.reject(me)}if(!i&&U.nonce!==J){const me="Wrong nonce: "+U.nonce;return this.logger.warn(me),Promise.reject(me)}if(this.hasOwnProperty("responseType")&&("code"===this.responseType||"id_token"===this.responseType)&&(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!U.at_hash){const me="An at_hash is needed!";return this.logger.warn(me),Promise.reject(me)}const Q=this.dateTimeService.now(),ne=1e3*U.iat,le=1e3*U.exp,re=this.getClockSkewInMsec();if(ne-re>=Q||le+re<=Q){const me="Token has expired";return console.error(me),console.error({now:Q,issuedAtMSec:ne,expiresAtMSec:le}),Promise.reject(me)}const ie={accessToken:w,idToken:x,jwks:this.jwks,idTokenClaims:U,idTokenHeader:k,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(ie).then(me=>({idToken:x,idTokenClaims:U,idTokenClaimsJson:F,idTokenHeader:k,idTokenHeaderJson:S,idTokenExpiresAt:le})):this.checkAtHash(ie).then(me=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!me){const be="Wrong at_hash";return this.logger.warn(be),Promise.reject(be)}return this.checkSignature(ie).then(be=>{const $e={idToken:x,idTokenClaims:U,idTokenClaimsJson:F,idTokenHeader:k,idTokenHeaderJson:S,idTokenExpiresAt:le};return this.disableAtHashCheck?$e:this.checkAtHash(ie).then(Je=>{if(this.requestAccessToken&&!Je){const He="Wrong at_hash";return this.logger.warn(He),Promise.reject(He)}return $e})})})}getIdentityClaims(){const x=this._storage.getItem("id_token_claims_obj");return x?JSON.parse(x):null}getGrantedScopes(){const x=this._storage.getItem("granted_scopes");return x?JSON.parse(x):null}getIdToken(){return this._storage?this._storage.getItem("id_token"):null}padBase64(x){for(;x.length%4!=0;)x+="=";return x}getAccessToken(){return this._storage?this._storage.getItem("access_token"):null}getRefreshToken(){return this._storage?this._storage.getItem("refresh_token"):null}getAccessTokenExpiration(){return this._storage.getItem("expires_at")?parseInt(this._storage.getItem("expires_at"),10):null}getAccessTokenStoredAt(){return parseInt(this._storage.getItem("access_token_stored_at"),10)}getIdTokenStoredAt(){return parseInt(this._storage.getItem("id_token_stored_at"),10)}getIdTokenExpiration(){return this._storage.getItem("id_token_expires_at")?parseInt(this._storage.getItem("id_token_expires_at"),10):null}hasValidAccessToken(){if(this.getAccessToken()){const x=this._storage.getItem("expires_at"),w=this.dateTimeService.new();return!(x&&parseInt(x,10)=0&&null!==this._storage.getItem(x)?JSON.parse(this._storage.getItem(x)):null}authorizationHeader(){return"Bearer "+this.getAccessToken()}logOut(x={},w=""){let i=!1;"boolean"==typeof x&&(i=x,x={});const E=this.getIdToken();if(this._storage.removeItem("access_token"),this._storage.removeItem("id_token"),this._storage.removeItem("refresh_token"),this.saveNoncesInLocalStorage?(localStorage.removeItem("nonce"),localStorage.removeItem("PKCE_verifier")):(this._storage.removeItem("nonce"),this._storage.removeItem("PKCE_verifier")),this._storage.removeItem("expires_at"),this._storage.removeItem("id_token_claims_obj"),this._storage.removeItem("id_token_expires_at"),this._storage.removeItem("id_token_stored_at"),this._storage.removeItem("access_token_stored_at"),this._storage.removeItem("granted_scopes"),this._storage.removeItem("session_state"),this.config.customTokenParameters&&this.config.customTokenParameters.forEach(S=>this._storage.removeItem(S)),this.silentRefreshSubject=null,this.eventsSubject.next(new OAuthInfoEvent("logout")),!this.logoutUrl||i||!E&&!this.postLogoutRedirectUri)return;let M;if(!this.validateUrlForHttps(this.logoutUrl))throw new Error("logoutUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(this.logoutUrl.indexOf("{{")>-1)M=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(E)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let S=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec});E&&(S=S.set("id_token_hint",E));const k=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";k&&(S=S.set("post_logout_redirect_uri",k),w&&(S=S.set("state",w)));for(let L in x)S=S.set(L,x[L]);M=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+S.toString()}this.config.openUri(M)}createAndSaveNonce(){const x=this;return this.createNonce().then(function(w){return x.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("nonce",w):x._storage.setItem("nonce",w),w})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();const x=this.document.getElementById(this.silentRefreshIFrameName);x&&x.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();const w=this.document.getElementById(this.sessionCheckIFrameName);w&&w.remove()}createNonce(){return new Promise(x=>{if(this.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");const w="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";let i=45,E="";const M=typeof self>"u"?null:self.crypto||self.msCrypto;if(M){let S=new Uint8Array(i);M.getRandomValues(S),S.map||(S.map=Array.prototype.map),S=S.map(k=>w.charCodeAt(k%w.length)),E=String.fromCharCode.apply(null,S)}else for(;0"discovery_document_loaded"===i.type)).subscribe(i=>this.initCodeFlowInternal(x,w))}initCodeFlowInternal(x="",w={}){if(!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let i={},E=null;"string"==typeof w?E=w:"object"==typeof w&&(i=w),this.createLoginUrl(x,E,null,!1,i).then(this.config.openUri).catch(M=>{console.error("Error in initAuthorizationCodeFlow"),console.error(M)})}createChallangeVerifierPairForPKCE(){var x=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){if(!x.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");const w=yield x.createNonce();return[base64UrlEncode(yield x.crypto.calcHash(w,"sha-256")),w]})()}extractRecognizedCustomParameters(x){let w=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(i=>{x[i]&&w.set(i,JSON.stringify(x[i]))}),w}revokeTokenAndLogout(x={},w=!1){let i=this.revocationEndpoint,E=this.getAccessToken(),M=this.getRefreshToken();if(!E)return;let S=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}),k=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const L=btoa(`${this.clientId}:${this.dummyClientSecret}`);k=k.set("Authorization","Basic "+L)}if(this.useHttpBasicAuth||(S=S.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(S=S.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const L of Object.getOwnPropertyNames(this.customQueryParams))S=S.set(L,this.customQueryParams[L]);return new Promise((L,F)=>{let U,J;if(E){let Q=S.set("token",E).set("token_type_hint","access_token");U=this.http.post(i,Q,{headers:k})}else U=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);if(M){let Q=S.set("token",M).set("token_type_hint","refresh_token");J=this.http.post(i,Q,{headers:k})}else J=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);w&&(U=U.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(Q=>0===Q.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(Q))),J=J.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(Q=>0===Q.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(Q)))),(0,rxjs__WEBPACK_IMPORTED_MODULE_17__.a)([U,J]).subscribe(Q=>{this.logOut(x),L(Q),this.logger.info("Token successfully revoked")},Q=>{this.logger.error("Error revoking token",Q),this.eventsSubject.next(new OAuthErrorEvent("token_revoke_error",Q)),F(Q)})})}clearLocationHash(){""!=location.hash&&(location.hash="")}}return Y.\u0275fac=function(x){return new(x||Y)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_core__WEBPACK_IMPORTED_MODULE_1__.R0b),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.eN),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthStorage,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(ValidationHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(AuthConfig,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(UrlHelperService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthLogger),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(HashHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common__WEBPACK_IMPORTED_MODULE_18__.K0),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(DateTimeProvider))},Y.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:Y,factory:Y.\u0275fac}),Y})();class OAuthModuleConfig{}class OAuthResourceServerConfig{}class OAuthResourceServerErrorHandler{}class OAuthNoopResourceServerErrorHandler{handleError(z){return(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(z)}}let DefaultOAuthInterceptor=(()=>{class Y{constructor(x,w,i){this.oAuthService=x,this.errorHandler=w,this.moduleConfig=i}checkUrl(x){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(x):!this.moduleConfig.resourceServer.allowedUrls||!!this.moduleConfig.resourceServer.allowedUrls.find(w=>x.toLowerCase().startsWith(w.toLowerCase()))}intercept(x,w){const i=x.url.toLowerCase();return this.moduleConfig&&this.moduleConfig.resourceServer&&this.checkUrl(i)?this.moduleConfig.resourceServer.sendAccessToken?(0,rxjs__WEBPACK_IMPORTED_MODULE_19__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(this.oAuthService.getAccessToken()).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(M=>!!M)),this.oAuthService.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(M=>"token_received"===M.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.V)(this.oAuthService.waitForTokenInMsec||0),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(M=>(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(M=>this.oAuthService.getAccessToken()))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.q)(1),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_22__.z)(M=>{if(M){const k=x.headers.set("Authorization","Bearer "+M);x=x.clone({headers:k})}return w.handle(x).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(S=>this.errorHandler.handleError(S)))})):w.handle(x).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(M=>this.errorHandler.handleError(M))):w.handle(x)}}return Y.\u0275fac=function(x){return new(x||Y)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthResourceServerErrorHandler),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthModuleConfig,8))},Y.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:Y,factory:Y.\u0275fac}),Y})();class NullValidationHandler{validateSignature(z){return Promise.resolve(null)}validateAtHash(z){return Promise.resolve(!0)}}function createDefaultLogger(){return console}function createDefaultStorage(){return typeof sessionStorage<"u"?sessionStorage:new MemoryStorage}let OAuthModule=(()=>{class Y{static forRoot(x=null,w=NullValidationHandler){return{ngModule:Y,providers:[OAuthService,UrlHelperService,{provide:OAuthLogger,useFactory:createDefaultLogger},{provide:OAuthStorage,useFactory:createDefaultStorage},{provide:ValidationHandler,useClass:w},{provide:HashHandler,useClass:DefaultHashHandler},{provide:OAuthResourceServerErrorHandler,useClass:OAuthNoopResourceServerErrorHandler},{provide:OAuthModuleConfig,useValue:x},{provide:_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.TP,useClass:DefaultOAuthInterceptor,multi:!0},{provide:DateTimeProvider,useClass:SystemDateTimeProvider}]}}}return Y.\u0275fac=function(x){return new(x||Y)},Y.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_1__.oAB({type:Y}),Y.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_1__.cJS({imports:[[_angular_common__WEBPACK_IMPORTED_MODULE_18__.ez]]}),Y})();const err="PLEASE READ THIS CAREFULLY:\n\nBeginning with angular-oauth2-oidc version 9, the JwksValidationHandler\nhas been moved to an library of its own. If you need it for implementing\nOAuth2/OIDC **implicit flow**, please install it using npm:\n\n npm i angular-oauth2-oidc-jwks --save\n\nAfter that, you can import it into your application:\n\n import { JwksValidationHandler } from 'angular-oauth2-oidc-jwks';\n\nPlease note, that this dependency is not needed for the **code flow**,\nwhich is nowadays the **recommented** one for single page applications.\nThis also results in smaller bundle sizes.\n";class JwksValidationHandler extends NullValidationHandler{constructor(){super(),console.error(err)}}const AUTH_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_1__.OlP("AUTH_CONFIG")},5861:(Y,z,x)=>{"use strict";function w(E,M,S,k,L,F,U){try{var J=E[F](U),Q=J.value}catch(ne){return void S(ne)}J.done?M(Q):Promise.resolve(Q).then(k,L)}function i(E){return function(){var M=this,S=arguments;return new Promise(function(k,L){var F=E.apply(M,S);function U(Q){w(F,k,L,U,J,"next",Q)}function J(Q){w(F,k,L,U,J,"throw",Q)}U(void 0)})}}x.d(z,{Z:()=>i})},4147:Y=>{"use strict";Y.exports={i8:"10.3.0"}}},Y=>{Y(Y.s=615)}]); \ No newline at end of file diff --git a/dist/apps/publications/main.d3d1e28371fb69a0.js b/dist/apps/publications/main.d3d1e28371fb69a0.js new file mode 100644 index 000000000..53436ca21 --- /dev/null +++ b/dist/apps/publications/main.d3d1e28371fb69a0.js @@ -0,0 +1 @@ +(self.webpackChunkpublications=self.webpackChunkpublications||[]).push([[179],{887:(z,W,E)=>{"use strict";var x=E(6895),n=E(4650);class P extends x.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class D extends P{static makeCurrent(){(0,x.HT)(new D)}onAndCancel(s,e,t){return s.addEventListener(e,t,!1),()=>{s.removeEventListener(e,t,!1)}}dispatchEvent(s,e){s.dispatchEvent(e)}remove(s){s.parentNode&&s.parentNode.removeChild(s)}createElement(s,e){return(e=e||this.getDefaultDocument()).createElement(s)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(s){return s.nodeType===Node.ELEMENT_NODE}isShadowRoot(s){return s instanceof DocumentFragment}getGlobalEventTarget(s,e){return"window"===e?window:"document"===e?s:"body"===e?s.body:null}getBaseHref(s){const e=function I(){return H=H||document.querySelector("base"),H?H.getAttribute("href"):null}();return null==e?null:function Y(i){B=B||document.createElement("a"),B.setAttribute("href",i);const s=B.pathname;return"/"===s.charAt(0)?s:`/${s}`}(e)}resetBaseElement(){H=null}getUserAgent(){return window.navigator.userAgent}getCookie(s){return(0,x.Mx)(document.cookie,s)}}let B,H=null;const G=new n.OlP("TRANSITION_ID"),te=[{provide:n.ip1,useFactory:function ee(i,s,e){return()=>{e.get(n.CZH).donePromise.then(()=>{const t=(0,x.q)(),r=s.querySelectorAll(`style[ng-transition="${i}"]`);for(let d=0;d{class i{build(){return new XMLHttpRequest}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();const se=new n.OlP("EventManagerPlugins");let re=(()=>{class i{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(r=>r.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,r){return this._findPluginFor(t).addEventListener(e,t,r)}addGlobalEventListener(e,t,r){return this._findPluginFor(t).addGlobalEventListener(e,t,r)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const r=this._plugins;for(let d=0;d{class i{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(r=>{this._stylesSet.has(r)||(this._stylesSet.add(r),t.add(r))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})(),Se=(()=>{class i extends ye{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,t,r){e.forEach(d=>{const h=this._doc.createElement("style");h.textContent=d,r.push(t.appendChild(h))})}addHost(e){const t=[];this._addStylesToHost(this._stylesSet,e,t),this._hostNodes.set(e,t)}removeHost(e){const t=this._hostNodes.get(e);t&&t.forEach(Je),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((t,r)=>{this._addStylesToHost(e,r,t)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(Je))}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(x.K0))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();function Je(i){(0,x.q)().remove(i)}const Ze={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/",math:"http://www.w3.org/1998/MathML/"},ke=/%COMP%/g;function fe(i,s,e){for(let t=0;t{if("__ngUnwrap__"===s)return i;!1===i(s)&&(s.preventDefault(),s.returnValue=!1)}}let we=(()=>{class i{constructor(e,t,r){this.eventManager=e,this.sharedStylesHost=t,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new ze(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case n.ifc.Emulated:{let r=this.rendererByCompId.get(t.id);return r||(r=new Kt(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,r)),r.applyToHost(e),r}case 1:case n.ifc.ShadowDom:return new Qe(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const r=fe(t.id,t.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(re),n.LFG(Se),n.LFG(n.AFp))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();class ze{constructor(s){this.eventManager=s,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(s,e){return e?document.createElementNS(Ze[e]||e,s):document.createElement(s)}createComment(s){return document.createComment(s)}createText(s){return document.createTextNode(s)}appendChild(s,e){(Bt(s)?s.content:s).appendChild(e)}insertBefore(s,e,t){s&&(Bt(s)?s.content:s).insertBefore(e,t)}removeChild(s,e){s&&s.removeChild(e)}selectRootElement(s,e){let t="string"==typeof s?document.querySelector(s):s;if(!t)throw new Error(`The selector "${s}" did not match any elements`);return e||(t.textContent=""),t}parentNode(s){return s.parentNode}nextSibling(s){return s.nextSibling}setAttribute(s,e,t,r){if(r){e=r+":"+e;const d=Ze[r];d?s.setAttributeNS(d,e,t):s.setAttribute(e,t)}else s.setAttribute(e,t)}removeAttribute(s,e,t){if(t){const r=Ze[t];r?s.removeAttributeNS(r,e):s.removeAttribute(`${t}:${e}`)}else s.removeAttribute(e)}addClass(s,e){s.classList.add(e)}removeClass(s,e){s.classList.remove(e)}setStyle(s,e,t,r){r&(n.JOm.DashCase|n.JOm.Important)?s.style.setProperty(e,t,r&n.JOm.Important?"important":""):s.style[e]=t}removeStyle(s,e,t){t&n.JOm.DashCase?s.style.removeProperty(e):s.style[e]=""}setProperty(s,e,t){s[e]=t}setValue(s,e){s.nodeValue=e}listen(s,e,t){return"string"==typeof s?this.eventManager.addGlobalEventListener(s,e,ge(t)):this.eventManager.addEventListener(s,e,ge(t))}}function Bt(i){return"TEMPLATE"===i.tagName&&void 0!==i.content}class Kt extends ze{constructor(s,e,t,r){super(s),this.component=t;const d=fe(r+"-"+t.id,t.styles,[]);e.addStyles(d),this.contentAttr=function Ne(i){return"_ngcontent-%COMP%".replace(ke,i)}(r+"-"+t.id),this.hostAttr=function je(i){return"_nghost-%COMP%".replace(ke,i)}(r+"-"+t.id)}applyToHost(s){super.setAttribute(s,this.hostAttr,"")}createElement(s,e){const t=super.createElement(s,e);return super.setAttribute(t,this.contentAttr,""),t}}class Qe extends ze{constructor(s,e,t,r){super(s),this.sharedStylesHost=e,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const d=fe(r.id,r.styles,[]);for(let h=0;h{class i extends _e{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,r){return e.addEventListener(t,r,!1),()=>this.removeEventListener(e,t,r)}removeEventListener(e,t,r){return e.removeEventListener(t,r)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(x.K0))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();const Si=["alt","control","meta","shift"],Xt={"\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"},Cr={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"},En={alt:i=>i.altKey,control:i=>i.ctrlKey,meta:i=>i.metaKey,shift:i=>i.shiftKey};let aa=(()=>{class i extends _e{constructor(e){super(e)}supports(e){return null!=i.parseEventName(e)}addEventListener(e,t,r){const d=i.parseEventName(t),h=i.eventCallback(d.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,x.q)().onAndCancel(e,d.domEventName,h))}static parseEventName(e){const t=e.toLowerCase().split("."),r=t.shift();if(0===t.length||"keydown"!==r&&"keyup"!==r)return null;const d=i._normalizeKey(t.pop());let h="";if(Si.forEach(o=>{const a=t.indexOf(o);a>-1&&(t.splice(a,1),h+=o+".")}),h+=d,0!=t.length||0===d.length)return null;const c={};return c.domEventName=r,c.fullKey=h,c}static getEventFullKey(e){let t="",r=function Zl(i){let s=i.key;if(null==s){if(s=i.keyIdentifier,null==s)return"Unidentified";s.startsWith("U+")&&(s=String.fromCharCode(parseInt(s.substring(2),16)),3===i.location&&Cr.hasOwnProperty(s)&&(s=Cr[s]))}return Xt[s]||s}(e);return r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),Si.forEach(d=>{d!=r&&(0,En[d])(e)&&(t+=d+".")}),t+=r,t}static eventCallback(e,t,r){return d=>{i.getEventFullKey(d)===e&&r.runGuarded(()=>t(d))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(x.K0))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();const pt=(0,n.eFA)(n._c5,"browser",[{provide:n.Lbi,useValue:x.bD},{provide:n.g9A,useValue:function Br(){D.makeCurrent()},multi:!0},{provide:x.K0,useFactory:function ds(){return(0,n.RDi)(document),document},deps:[]}]),ei=new n.OlP(""),Ar=[{provide:n.rWj,useClass:class ae{addToWindow(s){n.dqk.getAngularTestability=(t,r=!0)=>{const d=s.findTestabilityInTree(t,r);if(null==d)throw new Error("Could not find testability for element.");return d},n.dqk.getAllAngularTestabilities=()=>s.getAllTestabilities(),n.dqk.getAllAngularRootElements=()=>s.getAllRootElements(),n.dqk.frameworkStabilizers||(n.dqk.frameworkStabilizers=[]),n.dqk.frameworkStabilizers.push(t=>{const r=n.dqk.getAllAngularTestabilities();let d=r.length,h=!1;const c=function(o){h=h||o,d--,0==d&&t(h)};r.forEach(function(o){o.whenStable(c)})})}findTestabilityInTree(s,e,t){return null==e?null:s.getTestability(e)??(t?(0,x.q)().isShadowRoot(e)?this.findTestabilityInTree(s,e.host,!0):this.findTestabilityInTree(s,e.parentElement,!0):null)}},deps:[]},{provide:n.lri,useClass:n.dDg,deps:[n.R0b,n.eoX,n.rWj]},{provide:n.dDg,useClass:n.dDg,deps:[n.R0b,n.eoX,n.rWj]}],Wt=[{provide:n.zSh,useValue:"root"},{provide:n.qLn,useFactory:function Vr(){return new n.qLn},deps:[]},{provide:se,useClass:ci,multi:!0,deps:[x.K0,n.R0b,n.Lbi]},{provide:se,useClass:aa,multi:!0,deps:[x.K0]},{provide:we,useClass:we,deps:[re,Se,n.AFp]},{provide:n.FYo,useExisting:we},{provide:ye,useExisting:Se},{provide:Se,useClass:Se,deps:[x.K0]},{provide:re,useClass:re,deps:[se,n.R0b]},{provide:x.JF,useClass:ue,deps:[]},[]];let di=(()=>{class i{constructor(e){}static withServerTransition(e){return{ngModule:i,providers:[{provide:n.AFp,useValue:e.appId},{provide:G,useExisting:n.AFp},te]}}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(ei,12))},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[...Wt,...Ar],imports:[x.ez,n.hGG]}),i})(),oe=(()=>{class i{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(x.K0))},i.\u0275prov=n.Yz7({token:i,factory:function(e){let t=null;return t=e?new e:function Re(){return new oe((0,n.LFG)(x.K0))}(),t},providedIn:"root"}),i})();typeof window<"u"&&window;let On=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:function(e){let t=null;return t=e?new(e||i):n.LFG(st),t},providedIn:"root"}),i})(),st=(()=>{class i extends On{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case n.q3G.NONE:return t;case n.q3G.HTML:return(0,n.qzn)(t,"HTML")?(0,n.z3N)(t):(0,n.EiD)(this._doc,String(t)).toString();case n.q3G.STYLE:return(0,n.qzn)(t,"Style")?(0,n.z3N)(t):t;case n.q3G.SCRIPT:if((0,n.qzn)(t,"Script"))return(0,n.z3N)(t);throw new Error("unsafe value used in a script context");case n.q3G.URL:return(0,n.qzn)(t,"URL")?(0,n.z3N)(t):(0,n.mCW)(String(t));case n.q3G.RESOURCE_URL:if((0,n.qzn)(t,"ResourceURL"))return(0,n.z3N)(t);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return(0,n.JVY)(e)}bypassSecurityTrustStyle(e){return(0,n.L6k)(e)}bypassSecurityTrustScript(e){return(0,n.eBb)(e)}bypassSecurityTrustUrl(e){return(0,n.LAX)(e)}bypassSecurityTrustResourceUrl(e){return(0,n.pB0)(e)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(x.K0))},i.\u0275prov=n.Yz7({token:i,factory:function(e){let t=null;return t=e?new e:function We(i){return new st(i.get(x.K0))}(n.LFG(n.zs3)),t},providedIn:"root"}),i})();var xe=E(9646),ln=E(9751),sn=E(576);function Vt(i){return!!i&&(i instanceof ln.y||(0,sn.m)(i.lift)&&(0,sn.m)(i.subscribe))}var Ft=E(4742),Qn=E(8421),en=E(3269),nt=E(5403),Mi=E(3268),ji=E(1810);function oa(...i){const s=(0,en.jO)(i),{args:e,keys:t}=(0,Ft.D)(i),r=new ln.y(d=>{const{length:h}=e;if(!h)return void d.complete();const c=new Array(h);let o=h,a=h;for(let l=0;l{u||(u=!0,a--),c[l]=p},()=>o--,void 0,()=>{(!o||!u)&&(a||d.next(t?(0,ji.n)(t,c):c),d.complete())}))}});return s?r.pipe((0,Mi.Z)(s)):r}var Ui=E(7272);function Cn(i){return new ln.y(s=>{(0,Qn.Xf)(i()).subscribe(s)})}var rt=E(5698),Me=E(7579),Ei=E(6063);class Nr extends Me.x{constructor(s=1/0,e=1/0,t=Ei.l){super(),this._bufferSize=s,this._windowTime=e,this._timestampProvider=t,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,s),this._windowTime=Math.max(1,e)}next(s){const{isStopped:e,_buffer:t,_infiniteTimeWindow:r,_timestampProvider:d,_windowTime:h}=this;e||(t.push(s),!r&&t.push(d.now()+h)),this._trimBuffer(),super.next(s)}_subscribe(s){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(s),{_infiniteTimeWindow:t,_buffer:r}=this,d=r.slice();for(let h=0;hnew Nr(t,s,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:r})}var _t=E(4004),Tr=E(4351),bn=E(3900);class Fr{}let la=(()=>{class i extends Fr{getTranslation(e){return(0,xe.of)({})}}return i.\u0275fac=function(){let s;return function(t){return(s||(s=n.n5z(i)))(t||i)}}(),i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();class ca{}let dr=(()=>{class i{handle(e){return e.key}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();function Bn(i,s){if(i===s)return!0;if(null===i||null===s)return!1;if(i!=i&&s!=s)return!0;let r,d,h,e=typeof i;if(e==typeof s&&"object"==e){if(!Array.isArray(i)){if(Array.isArray(s))return!1;for(d in h=Object.create(null),i){if(!Bn(i[d],s[d]))return!1;h[d]=!0}for(d in s)if(!(d in h)&&typeof s[d]<"u")return!1;return!0}if(!Array.isArray(s))return!1;if((r=i.length)==s.length){for(d=0;d{ni(s[t])?t in i?e[t]=Di(i[t],s[t]):Object.assign(e,{[t]:s[t]}):Object.assign(e,{[t]:s[t]})}),e}class Ki{}let qr=(()=>{class i extends Ki{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(e,t){let r;return r="string"==typeof e?this.interpolateString(e,t):"function"==typeof e?this.interpolateFunction(e,t):e,r}getValue(e,t){let r="string"==typeof t?t.split("."):[t];t="";do{t+=r.shift(),!Yr(e)||!Yr(e[t])||"object"!=typeof e[t]&&r.length?r.length?t+=".":e=void 0:(e=e[t],t="")}while(r.length);return e}interpolateFunction(e,t){return e(t)}interpolateString(e,t){return t?e.replace(this.templateMatcher,(r,d)=>{let h=this.getValue(t,d);return Yr(h)?h:r}):e}}return i.\u0275fac=function(){let s;return function(t){return(s||(s=n.n5z(i)))(t||i)}}(),i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();class ur{}let Hi=(()=>{class i extends ur{compile(e,t){return e}compileTranslations(e,t){return e}}return i.\u0275fac=function(){let s;return function(t){return(s||(s=n.n5z(i)))(t||i)}}(),i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();class da{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new n.vpe,this.onLangChange=new n.vpe,this.onDefaultLangChange=new n.vpe}}const zs=new n.OlP("USE_STORE"),hs=new n.OlP("USE_DEFAULT_LANG"),ua=new n.OlP("DEFAULT_LANGUAGE"),Xi=new n.OlP("USE_EXTEND");let mn=(()=>{class i{constructor(e,t,r,d,h,c=!0,o=!1,a=!1,l){this.store=e,this.currentLoader=t,this.compiler=r,this.parser=d,this.missingTranslationHandler=h,this.useDefaultLang=c,this.isolate=o,this.extend=a,this.pending=!1,this._onTranslationChange=new n.vpe,this._onLangChange=new n.vpe,this._onDefaultLangChange=new n.vpe,this._langs=[],this._translations={},this._translationRequests={},l&&this.setDefaultLang(l)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(e){this.isolate?this._currentLang=e:this.store.currentLang=e}get langs(){return this.isolate?this._langs:this.store.langs}set langs(e){this.isolate?this._langs=e:this.store.langs=e}get translations(){return this.isolate?this._translations:this.store.translations}set translations(e){this.isolate?this._translations=e:this.store.translations=e}setDefaultLang(e){if(e===this.defaultLang)return;let t=this.retrieveTranslations(e);typeof t<"u"?(null==this.defaultLang&&(this.defaultLang=e),t.pipe((0,rt.q)(1)).subscribe(r=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(e===this.currentLang)return(0,xe.of)(this.translations[e]);let t=this.retrieveTranslations(e);return typeof t<"u"?(this.currentLang||(this.currentLang=e),t.pipe((0,rt.q)(1)).subscribe(r=>{this.changeLang(e)}),t):(this.changeLang(e),(0,xe.of)(this.translations[e]))}retrieveTranslations(e){let t;return(typeof this.translations[e]>"u"||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),t=this._translationRequests[e]),t}getTranslation(e){this.pending=!0;const t=this.currentLoader.getTranslation(e).pipe(tn(1),(0,rt.q)(1));return this.loadingTranslations=t.pipe((0,_t.U)(r=>this.compiler.compileTranslations(r,e)),tn(1),(0,rt.q)(1)),this.loadingTranslations.subscribe({next:r=>{this.translations[e]=this.extend&&this.translations[e]?{...r,...this.translations[e]}:r,this.updateLangs(),this.pending=!1},error:r=>{this.pending=!1}}),t}setTranslation(e,t,r=!1){t=this.compiler.compileTranslations(t,e),this.translations[e]=(r||this.extend)&&this.translations[e]?Di(this.translations[e],t):t,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return this.langs}addLangs(e){e.forEach(t=>{-1===this.langs.indexOf(t)&&this.langs.push(t)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(e,t,r){let d;if(t instanceof Array){let h={},c=!1;for(let o of t)h[o]=this.getParsedResult(e,o,r),Vt(h[o])&&(c=!0);return c?oa(t.map(a=>Vt(h[a])?h[a]:(0,xe.of)(h[a]))).pipe((0,_t.U)(a=>{let l={};return a.forEach((u,p)=>{l[t[p]]=u}),l})):h}if(e&&(d=this.parser.interpolate(this.parser.getValue(e,t),r)),typeof d>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(d=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],t),r)),typeof d>"u"){let h={key:t,translateService:this};typeof r<"u"&&(h.interpolateParams=r),d=this.missingTranslationHandler.handle(h)}return typeof d<"u"?d:t}get(e,t){if(!Yr(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,Tr.b)(r=>Vt(r=this.getParsedResult(r,e,t))?r:(0,xe.of)(r)));{let r=this.getParsedResult(this.translations[this.currentLang],e,t);return Vt(r)?r:(0,xe.of)(r)}}getStreamOnTranslationChange(e,t){if(!Yr(e)||!e.length)throw new Error('Parameter "key" required');return(0,Ui.z)(Cn(()=>this.get(e,t)),this.onTranslationChange.pipe((0,bn.w)(r=>{const d=this.getParsedResult(r.translations,e,t);return"function"==typeof d.subscribe?d:(0,xe.of)(d)})))}stream(e,t){if(!Yr(e)||!e.length)throw new Error('Parameter "key" required');return(0,Ui.z)(Cn(()=>this.get(e,t)),this.onLangChange.pipe((0,bn.w)(r=>{const d=this.getParsedResult(r.translations,e,t);return Vt(d)?d:(0,xe.of)(d)})))}instant(e,t){if(!Yr(e)||!e.length)throw new Error('Parameter "key" required');let r=this.getParsedResult(this.translations[this.currentLang],e,t);if(Vt(r)){if(e instanceof Array){let d={};return e.forEach((h,c)=>{d[e[c]]=e[c]}),d}return e}return r}set(e,t,r=this.currentLang){this.translations[r][e]=this.compiler.compile(t,r),this.updateLangs(),this.onTranslationChange.emit({lang:r,translations:this.translations[r]})}changeLang(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),null==this.defaultLang&&this.changeDefaultLang(e)}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return this.resetLang(e),this.getTranslation(e)}resetLang(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof e>"u"?void 0:(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,e}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(da),n.LFG(Fr),n.LFG(ur),n.LFG(Ki),n.LFG(ca),n.LFG(hs),n.LFG(zs),n.LFG(Xi),n.LFG(ua))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})(),it=(()=>{class i{constructor(e,t){this.translate=e,this._ref=t,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(e,t,r){let d=h=>{this.value=void 0!==h?h:e,this.lastKey=e,this._ref.markForCheck()};if(r){let h=this.translate.getParsedResult(r,e,t);Vt(h.subscribe)?h.subscribe(d):d(h)}this.translate.get(e,t).subscribe(d)}transform(e,...t){if(!e||!e.length)return e;if(Bn(e,this.lastKey)&&Bn(t,this.lastParams))return this.value;let r;if(Yr(t[0])&&t.length)if("string"==typeof t[0]&&t[0].length){let d=t[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{r=JSON.parse(d)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${t[0]}`)}}else"object"==typeof t[0]&&!Array.isArray(t[0])&&(r=t[0]);return this.lastKey=e,this.lastParams=t,this.updateValue(e,r),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(d=>{this.lastKey&&d.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,r,d.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(d=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r,d.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(mn,16),n.Y36(n.sBO,16))},i.\u0275pipe=n.Yjl({name:"translate",type:i,pure:!1}),i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})(),Gs=(()=>{class i{static forRoot(e={}){return{ngModule:i,providers:[e.loader||{provide:Fr,useClass:la},e.compiler||{provide:ur,useClass:Hi},e.parser||{provide:Ki,useClass:qr},e.missingTranslationHandler||{provide:ca,useClass:dr},da,{provide:zs,useValue:e.isolate},{provide:hs,useValue:e.useDefaultLang},{provide:Xi,useValue:e.extend},{provide:ua,useValue:e.defaultLanguage},mn]}}static forChild(e={}){return{ngModule:i,providers:[e.loader||{provide:Fr,useClass:la},e.compiler||{provide:ur,useClass:Hi},e.parser||{provide:Ki,useClass:qr},e.missingTranslationHandler||{provide:ca,useClass:dr},{provide:zs,useValue:e.isolate},{provide:hs,useValue:e.useDefaultLang},{provide:Xi,useValue:e.extend},{provide:ua,useValue:e.defaultLanguage},mn]}}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})(),qu=(()=>{class i extends mn{instant(e,t){return String(super.instant(e,t))}}return i.\u0275fac=function(){let s;return function(t){return(s||(s=n.n5z(i)))(t||i)}}(),i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();var v=E(529);class Vn{encodeKey(s){return encodeURIComponent(s)}encodeValue(s){return encodeURIComponent(s)}decodeKey(s){return decodeURIComponent(s)}decodeValue(s){return decodeURIComponent(s)}}const Dn=new n.OlP("basePath");class vt{constructor(s={}){this.apiKeys=s.apiKeys,this.username=s.username,this.password=s.password,this.accessToken=s.accessToken,this.basePath=s.basePath,this.withCredentials=s.withCredentials,this.encoder=s.encoder,this.credentials=s.credentials?s.credentials:{},this.credentials.BasicAuth||(this.credentials.BasicAuth=()=>this.username||this.password?btoa(this.username+":"+this.password):void 0),this.credentials.BearerAuth||(this.credentials.BearerAuth=()=>"function"==typeof this.accessToken?this.accessToken():this.accessToken)}selectHeaderContentType(s){if(0===s.length)return;const e=s.find(t=>this.isJsonMime(t));return void 0===e?s[0]:e}selectHeaderAccept(s){if(0===s.length)return;const e=s.find(t=>this.isJsonMime(t));return void 0===e?s[0]:e}isJsonMime(s){const e=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==s&&(e.test(s)||"application/json-patch+json"===s.toLowerCase())}lookupCredential(s){const e=this.credentials[s];return"function"==typeof e?e():e}}let Ql=(()=>{class i{constructor(e,t,r){this.httpClient=e,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new v.WM,this.configuration=new vt,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Vn}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(d=>e=this.addToHttpParamsRecursive(e,d,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(d=>e=this.addToHttpParamsRecursive(e,t[d],null!=r?`${r}.${d}`:d));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}convertAttributeToNonunique(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToNonunique.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeDefinition"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToNonunique`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}convertAttributeToUnique(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToUnique.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeDefinition"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToUnique`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}createAttributeDefinition(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputCreateAttributeDefinition was null or undefined when calling createAttributeDefinition.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/createAttribute`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}deleteAttributeDefinition(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter attribute was null or undefined when calling deleteAttributeDefinition.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attribute"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttribute`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}deleteAttributeDefinitions(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter attributes was null or undefined when calling deleteAttributeDefinitions.");let c=new v.LE({encoder:this.encoder});e&&e.forEach(g=>{c=this.addToHttpParams(c,g,"attributes[]")});let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttributes`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAllAttributeDefinitions(e=!1,t="body",r=!1,d){let c,h=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(h=h.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(h=h.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(h=h.set("Accept",o));let a=d&&d.context;void 0===a&&(a=new v.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let u=`${this.configuration.basePath}/json/attributesManager/getAttributesDefinition`;if(e){let p=new URL(u),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),u=p.toString()}return this.httpClient.get(u,{context:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:h,observe:t,reportProgress:r})}getAttribute(e,t,r,d,h,c,o,a,l,u,p,m=!1,g="body",f=!1,y){let j=new v.LE({encoder:this.encoder});null!=e&&(j=this.addToHttpParams(j,e,"attributeName")),null!=t&&(j=this.addToHttpParams(j,t,"attributeId")),null!=r&&(j=this.addToHttpParams(j,r,"facility")),null!=d&&(j=this.addToHttpParams(j,d,"user")),null!=h&&(j=this.addToHttpParams(j,h,"vo")),null!=c&&(j=this.addToHttpParams(j,c,"resource")),null!=o&&(j=this.addToHttpParams(j,o,"member")),null!=a&&(j=this.addToHttpParams(j,a,"group")),null!=l&&(j=this.addToHttpParams(j,l,"host")),null!=u&&(j=this.addToHttpParams(j,u,"userExtSource")),null!=p&&(j=this.addToHttpParams(j,p,"key"));let Be,le=this.defaultHeaders;Be=this.configuration.lookupCredential("BasicAuth"),Be&&(le=le.set("Authorization","Basic "+Be)),Be=this.configuration.lookupCredential("BearerAuth"),Be&&(le=le.set("Authorization","Bearer "+Be));let St=y&&y.httpHeaderAccept;void 0===St&&(St=this.configuration.selectHeaderAccept(["application/json"])),void 0!==St&&(le=le.set("Accept",St));let xi=y&&y.context;void 0===xi&&(xi=new v.qT);let Xn="json";St&&(Xn=St.startsWith("text")?"text":this.configuration.isJsonMime(St)?"json":"blob");let pi=`${this.configuration.basePath}/json/attributesManager/getAttribute/any`;if(m){let Or=new URL(pi),ls=Or.pathname.split("/");ls[1]="non",Or.pathname=ls.join("/"),pi=Or.toString()}return this.httpClient.get(pi,{context:xi,params:j,responseType:Xn,withCredentials:this.configuration.withCredentials,headers:le,observe:g,reportProgress:f})}getAttributeDefinitionById(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter id was null or undefined when calling getAttributeDefinitionById.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributeDefinitionById`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAttributeDefinitionByName(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getAttributeDefinitionByName.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeName"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributeDefinition`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAttributeDefinitionsByNamespace(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter namespace was null or undefined when calling getAttributeDefinitionsByNamespace.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"namespace"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributesDefinitionByNamespace`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAttributeModulesDependenciesForAttributeGraphText(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");if(null==t)throw new Error("Required parameter attrName was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"format")),null!=t&&(o=this.addToHttpParams(o,t,"attrName"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText/for-attribute`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getAttributeModulesDependenciesGraphText(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesGraphText.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"format"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAttributePolicyCollections(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getAttributePolicyCollections.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeId"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributePolicyCollections`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAttributeRights(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getAttributeRights.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeId"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributeRights`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAttributeRules(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling getAttributeRules.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeDefinition"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributeRules`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAttributesDefinitionWithRights(e,t,r,d,h,c,o,a,l=!1,u="body",p=!1,m){let g=new v.LE({encoder:this.encoder});null!=e&&(g=this.addToHttpParams(g,e,"member")),null!=t&&(g=this.addToHttpParams(g,t,"user")),null!=r&&(g=this.addToHttpParams(g,r,"vo")),null!=d&&(g=this.addToHttpParams(g,d,"group")),null!=h&&(g=this.addToHttpParams(g,h,"resource")),null!=c&&(g=this.addToHttpParams(g,c,"facility")),null!=o&&(g=this.addToHttpParams(g,o,"host")),null!=a&&(g=this.addToHttpParams(g,a,"userExtSource"));let y,f=this.defaultHeaders;y=this.configuration.lookupCredential("BasicAuth"),y&&(f=f.set("Authorization","Basic "+y)),y=this.configuration.lookupCredential("BearerAuth"),y&&(f=f.set("Authorization","Bearer "+y));let j=m&&m.httpHeaderAccept;void 0===j&&(j=this.configuration.selectHeaderAccept(["application/json"])),void 0!==j&&(f=f.set("Accept",j));let le=m&&m.context;void 0===le&&(le=new v.qT);let Be="json";j&&(Be=j.startsWith("text")?"text":this.configuration.isJsonMime(j)?"json":"blob");let St=`${this.configuration.basePath}/urlinjsonout/attributesManager/getAttributesDefinitionWithRights`;if(l){let xi=new URL(St),Xn=xi.pathname.split("/");Xn[1]="non",xi.pathname=Xn.join("/"),St=xi.toString()}return this.httpClient.get(St,{context:le,params:g,responseType:Be,withCredentials:this.configuration.withCredentials,headers:f,observe:u,reportProgress:p})}getEntitylessAttributeByName(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getEntitylessAttributeByName.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"key")),null!=t&&(o=this.addToHttpParams(o,t,"attributeName"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-entityless`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getEntitylessAttributesByKey(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributesByKey.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"key"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/key`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getEntitylessAttributesByName(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesByName.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attrName"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributes`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getEntitylessAttributesWithKeys(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesWithKeys.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"attrName")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"keys[]")});let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributesWithKeys`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getEntitylessKeys(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling getEntitylessKeys.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeDefinition"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getEntitylessKeys`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getFacilityAttributeById(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getFacilityAttributeById.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"facility")),null!=t&&(o=this.addToHttpParams(o,t,"attributeId"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-facility`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getFacilityAttributeByName(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getFacilityAttributeByName.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"facility")),null!=t&&(o=this.addToHttpParams(o,t,"attributeName"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-facility`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getFacilityAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributes.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"facility"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/f`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getFacilityAttributesByNames(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getFacilityAttributesByNames.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"facility")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/f-names`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getFacilityResourceUserMemberAttributes(e,t,r,d,h=!1,c="body",o=!1,a){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==r)throw new Error("Required parameter user was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==d)throw new Error("Required parameter member was null or undefined when calling getFacilityResourceUserMemberAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"facility")),null!=t&&(l=this.addToHttpParams(l,t,"resource")),null!=r&&(l=this.addToHttpParams(l,r,"user")),null!=d&&(l=this.addToHttpParams(l,d,"member"));let p,u=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(u=u.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(u=u.set("Authorization","Bearer "+p));let m=a&&a.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(u=u.set("Accept",m));let g=a&&a.context;void 0===g&&(g=new v.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let y=`${this.configuration.basePath}/json/attributesManager/getAttributes/f-r-u-m`;if(h){let j=new URL(y),le=j.pathname.split("/");le[1]="non",j.pathname=le.join("/"),y=j.toString()}return this.httpClient.get(y,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:o})}getFacilityUserAttributes(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityUserAttributes.");if(null==t)throw new Error("Required parameter user was null or undefined when calling getFacilityUserAttributes.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"facility")),null!=t&&(o=this.addToHttpParams(o,t,"user"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/f-u`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getGroupAttributeById(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getGroupAttributeById.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"attributeId"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getGroupAttributeByName(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getGroupAttributeByName.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"attributeName"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getGroupAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributes.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/g`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getGroupAttributesByNames(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getGroupAttributesByNames.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/g-names`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getGroupResourceAttributeById(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeById.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeById.");if(null==r)throw new Error("Required parameter attributeId was null or undefined when calling getGroupResourceAttributeById.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"group")),null!=t&&(a=this.addToHttpParams(a,t,"resource")),null!=r&&(a=this.addToHttpParams(a,r,"attributeId"));let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group-resource`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.get(f,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}getGroupResourceAttributeByName(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeByName.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeByName.");if(null==r)throw new Error("Required parameter attributeName was null or undefined when calling getGroupResourceAttributeByName.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"group")),null!=t&&(a=this.addToHttpParams(a,t,"resource")),null!=r&&(a=this.addToHttpParams(a,r,"attributeName"));let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group-resource`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.get(f,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}getGroupResourceAttributes(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributes.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"resource"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/group-resource`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getHostAttributeById(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getHostAttributeById.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"host")),null!=t&&(o=this.addToHttpParams(o,t,"attributeId"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-host`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getHostAttributeByName(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getHostAttributeByName.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"host")),null!=t&&(o=this.addToHttpParams(o,t,"attributeName"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-host`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getHostAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributes.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"host"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/h`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getHostAttributesByNames(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getHostAttributesByNames.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"host")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/h-names`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getIdpAttributeDefinitions(e=!1,t="body",r=!1,d){let c,h=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(h=h.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(h=h.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(h=h.set("Accept",o));let a=d&&d.context;void 0===a&&(a=new v.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let u=`${this.configuration.basePath}/json/attributesManager/getIdpAttributeDefinitions`;if(e){let p=new URL(u),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),u=p.toString()}return this.httpClient.get(u,{context:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:h,observe:t,reportProgress:r})}getLogins(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter user was null or undefined when calling getLogins.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getLogins`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getMemberAndUserAttributes(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributes.");if(null==t)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributes.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"workWithUserAttributes"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-wu`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getMemberAndUserAttributesByNames(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==r)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributesByNames.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"member")),t&&t.forEach(y=>{a=this.addToHttpParams(a,y,"attrNames[]")}),null!=r&&(a=this.addToHttpParams(a,r,"workWithUserAttributes"));let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names-wu`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.get(f,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}getMemberAttributeById(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getMemberAttributeById.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"attributeId"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getMemberAttributeByName(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getMemberAttributeByName.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"attributeName"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getMemberAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributes.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/m`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getMemberAttributesByNames(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAttributesByNames.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getMemberGroupAndUserAttributesByNames(e,t,r,d,h=!1,c="body",o=!1,a){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==r)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==d)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberGroupAndUserAttributesByNames.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"member")),null!=t&&(l=this.addToHttpParams(l,t,"group")),r&&r.forEach(j=>{l=this.addToHttpParams(l,j,"attrNames[]")}),null!=d&&(l=this.addToHttpParams(l,d,"workWithUserAttributes"));let p,u=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(u=u.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(u=u.set("Authorization","Bearer "+p));let m=a&&a.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(u=u.set("Accept",m));let g=a&&a.context;void 0===g&&(g=new v.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let y=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names-wu`;if(h){let j=new URL(y),le=j.pathname.split("/");le[1]="non",j.pathname=le.join("/"),y=j.toString()}return this.httpClient.get(y,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:o})}getMemberGroupAttributeById(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeById.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeById.");if(null==r)throw new Error("Required parameter attributeId was null or undefined when calling getMemberGroupAttributeById.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"member")),null!=t&&(a=this.addToHttpParams(a,t,"group")),null!=r&&(a=this.addToHttpParams(a,r,"attributeId"));let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-group`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.get(f,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}getMemberGroupAttributeByName(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeByName.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeByName.");if(null==r)throw new Error("Required parameter attributeName was null or undefined when calling getMemberGroupAttributeByName.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"member")),null!=t&&(a=this.addToHttpParams(a,t,"group")),null!=r&&(a=this.addToHttpParams(a,r,"attributeName"));let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-group`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.get(f,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}getMemberGroupAttributes(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributes.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getMemberGroupAttributesByNames(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributesByNames.");if(null==r)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAttributesByNames.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"member")),null!=t&&(a=this.addToHttpParams(a,t,"group")),r&&r.forEach(y=>{a=this.addToHttpParams(a,y,"attrNames[]")});let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.get(f,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}getMemberResourceAndUserFacilityAttributes(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==r)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"member")),null!=t&&(a=this.addToHttpParams(a,t,"resource")),null!=r&&(a=this.addToHttpParams(a,r,"workWithUserAttributes"));let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-wu`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.get(f,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}getMemberResourceAndUserFacilityAttributesByNames(e,t,r,d,h=!1,c="body",o=!1,a){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==r)throw new Error("Required parameter attrNames was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==d)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"member")),null!=t&&(l=this.addToHttpParams(l,t,"resource")),r&&r.forEach(j=>{l=this.addToHttpParams(l,j,"attrNames[]")}),null!=d&&(l=this.addToHttpParams(l,d,"workWithUserAttributes"));let p,u=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(u=u.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(u=u.set("Authorization","Bearer "+p));let m=a&&a.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(u=u.set("Accept",m));let g=a&&a.context;void 0===g&&(g=new v.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let y=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-names-wu`;if(h){let j=new URL(y),le=j.pathname.split("/");le[1]="non",j.pathname=le.join("/"),y=j.toString()}return this.httpClient.get(y,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:o})}getMemberResourceAttributeById(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeById.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeById.");if(null==r)throw new Error("Required parameter attributeId was null or undefined when calling getMemberResourceAttributeById.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"member")),null!=t&&(a=this.addToHttpParams(a,t,"resource")),null!=r&&(a=this.addToHttpParams(a,r,"attributeId"));let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-resource`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.get(f,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}getMemberResourceAttributeByName(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeByName.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeByName.");if(null==r)throw new Error("Required parameter attributeName was null or undefined when calling getMemberResourceAttributeByName.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"member")),null!=t&&(a=this.addToHttpParams(a,t,"resource")),null!=r&&(a=this.addToHttpParams(a,r,"attributeName"));let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-resource`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.get(f,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}getMemberResourceAttributes(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributes.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"resource"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getRequiredAttributesDefinition(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesDefinition.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"service"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributesDefinition`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getRequiredAttributesFacility(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacility.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"facility"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/f`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getRequiredAttributesFacilityService(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesFacilityService.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityService.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"service")),null!=t&&(o=this.addToHttpParams(o,t,"facility"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-f`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getRequiredAttributesFacilityServices(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesFacilityServices.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityServices.");let o=new v.LE({encoder:this.encoder});e&&e.forEach(f=>{o=this.addToHttpParams(o,f,"services[]")}),null!=t&&(o=this.addToHttpParams(o,t,"facility"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-f`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getRequiredAttributesGroupResourceService(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==r)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesGroupResourceService.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"service")),null!=t&&(a=this.addToHttpParams(a,t,"resource")),null!=r&&(a=this.addToHttpParams(a,r,"group"));let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.get(f,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}getRequiredAttributesHostService(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesHostService.");if(null==t)throw new Error("Required parameter host was null or undefined when calling getRequiredAttributesHostService.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"service")),null!=t&&(o=this.addToHttpParams(o,t,"host"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-h`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getRequiredAttributesMember(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMember.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"workWithUserAttributes"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getRequiredAttributesMemberGroup(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroup.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroup.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"member")),null!=t&&(a=this.addToHttpParams(a,t,"group")),null!=r&&(a=this.addToHttpParams(a,r,"workWithUserAttributes"));let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-g`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.get(f,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}getRequiredAttributesMemberGroupResourceService(e,t,r,d,h,c=!1,o="body",a=!1,l){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==r)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==d)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");let u=new v.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"service")),null!=t&&(u=this.addToHttpParams(u,t,"resource")),null!=r&&(u=this.addToHttpParams(u,r,"group")),null!=d&&(u=this.addToHttpParams(u,d,"member")),null!=h&&(u=this.addToHttpParams(u,h,"workWithUserAttributes"));let m,p=this.defaultHeaders;m=this.configuration.lookupCredential("BasicAuth"),m&&(p=p.set("Authorization","Basic "+m)),m=this.configuration.lookupCredential("BearerAuth"),m&&(p=p.set("Authorization","Bearer "+m));let g=l&&l.httpHeaderAccept;void 0===g&&(g=this.configuration.selectHeaderAccept(["application/json"])),void 0!==g&&(p=p.set("Accept",g));let f=l&&l.context;void 0===f&&(f=new v.qT);let y="json";g&&(y=g.startsWith("text")?"text":this.configuration.isJsonMime(g)?"json":"blob");let j=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g-m`;if(c){let le=new URL(j),Be=le.pathname.split("/");Be[1]="non",le.pathname=Be.join("/"),j=le.toString()}return this.httpClient.get(j,{context:f,params:u,responseType:y,withCredentials:this.configuration.withCredentials,headers:p,observe:o,reportProgress:a})}getRequiredAttributesMemberGroupService(e,t,r,d,h=!1,c="body",o=!1,a){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==r)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupService.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"service")),null!=t&&(l=this.addToHttpParams(l,t,"group")),null!=r&&(l=this.addToHttpParams(l,r,"member")),null!=d&&(l=this.addToHttpParams(l,d,"workWithUserAttributes"));let p,u=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(u=u.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(u=u.set("Authorization","Bearer "+p));let m=a&&a.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(u=u.set("Accept",m));let g=a&&a.context;void 0===g&&(g=new v.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let y=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-g-m`;if(h){let j=new URL(y),le=j.pathname.split("/");le[1]="non",j.pathname=le.join("/"),y=j.toString()}return this.httpClient.get(y,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:o})}getRequiredAttributesMemberResource(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResource.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResource.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"member")),null!=t&&(a=this.addToHttpParams(a,t,"resource")),null!=r&&(a=this.addToHttpParams(a,r,"workWithUserAttributes"));let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-r`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.get(f,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}getRequiredAttributesMemberResourceService(e,t,r,d,h=!1,c="body",o=!1,a){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==r)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResourceService.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"service")),null!=t&&(l=this.addToHttpParams(l,t,"resource")),null!=r&&(l=this.addToHttpParams(l,r,"member")),null!=d&&(l=this.addToHttpParams(l,d,"workWithUserAttributes"));let p,u=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(u=u.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(u=u.set("Authorization","Bearer "+p));let m=a&&a.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(u=u.set("Accept",m));let g=a&&a.context;void 0===g&&(g=new v.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let y=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-m`;if(h){let j=new URL(y),le=j.pathname.split("/");le[1]="non",j.pathname=le.join("/"),y=j.toString()}return this.httpClient.get(y,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:o})}getRequiredAttributesResource(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResource.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/r`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getRequiredAttributesResourceService(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceService.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"service")),null!=t&&(o=this.addToHttpParams(o,t,"resource"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getRequiredAttributesResourceServices(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesResourceServices.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceServices.");let o=new v.LE({encoder:this.encoder});e&&e.forEach(f=>{o=this.addToHttpParams(o,f,"services[]")}),null!=t&&(o=this.addToHttpParams(o,t,"resource"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-r`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getRequiredAttributesUser(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUser.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getRequiredAttributesUserFacility(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUserFacility.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesUserFacility.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"facility"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u-f`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getRequiredAttributesVoService(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesVoService.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling getRequiredAttributesVoService.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"service")),null!=t&&(o=this.addToHttpParams(o,t,"vo"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-v`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getResourceAttributeById(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getResourceAttributeById.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"attributeId"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-resource`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getResourceAttributeByName(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getResourceAttributeByName.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"attributeName"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-resource`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getResourceAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributes.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/r`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getResourceAttributesByNames(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getResourceAttributesByNames.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-names`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getResourceGroupAndGroupAttributes(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==r)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributes.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"resource")),null!=t&&(a=this.addToHttpParams(a,t,"group")),null!=r&&(a=this.addToHttpParams(a,r,"workWithGroupAttributes"));let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-wg`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.get(f,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}getResourceGroupAndGroupAttributesByNames(e,t,r,d,h=!1,c="body",o=!1,a){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==r)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==d)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"resource")),null!=t&&(l=this.addToHttpParams(l,t,"group")),r&&r.forEach(j=>{l=this.addToHttpParams(l,j,"attrNames[]")}),null!=d&&(l=this.addToHttpParams(l,d,"workWithGroupAttributes"));let p,u=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(u=u.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(u=u.set("Authorization","Bearer "+p));let m=a&&a.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(u=u.set("Accept",m));let g=a&&a.context;void 0===g&&(g=new v.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let y=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-names-wg`;if(h){let j=new URL(y),le=j.pathname.split("/");le[1]="non",j.pathname=le.join("/"),y=j.toString()}return this.httpClient.get(y,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:o})}getResourceGroupAttributes(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAttributes.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"group"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getResourceGroupMemberAttributesByNames(e,t,r,d,h=!1,c="body",o=!1,a){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==r)throw new Error("Required parameter member was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==d)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupMemberAttributesByNames.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"resource")),null!=t&&(l=this.addToHttpParams(l,t,"group")),null!=r&&(l=this.addToHttpParams(l,r,"member")),d&&d.forEach(j=>{l=this.addToHttpParams(l,j,"attrNames[]")});let p,u=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(u=u.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(u=u.set("Authorization","Bearer "+p));let m=a&&a.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(u=u.set("Accept",m));let g=a&&a.context;void 0===g&&(g=new v.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let y=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-m-names`;if(h){let j=new URL(y),le=j.pathname.split("/");le[1]="non",j.pathname=le.join("/"),y=j.toString()}return this.httpClient.get(y,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:o})}getUserAttributeById(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getUserAttributeById.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"attributeId"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getUserAttributeByName(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getUserAttributeByName.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"attributeName"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getUserAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributes.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/u`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getUserAttributesByNames(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getUserAttributesByNames.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/u-names`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getUserExtSourceAttributeById(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceAttributeById.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"userExtSource")),null!=t&&(o=this.addToHttpParams(o,t,"attributeId"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-ues`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getUserExtSourceAttributeByName(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceAttributeByName.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"userExtSource")),null!=t&&(o=this.addToHttpParams(o,t,"attributeName"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-ues`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getUserExtSourceAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributes.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"userExtSource"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/ues`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getUserExtSourceAttributesByNames(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getUserExtSourceAttributesByNames.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"userExtSource")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/ues-names`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getUserFacilityAttributeById(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeById.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeById.");if(null==r)throw new Error("Required parameter attributeId was null or undefined when calling getUserFacilityAttributeById.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"user")),null!=t&&(a=this.addToHttpParams(a,t,"facility")),null!=r&&(a=this.addToHttpParams(a,r,"attributeId"));let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user_facility`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.get(f,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}getUserFacilityAttributeByName(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeByName.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeByName.");if(null==r)throw new Error("Required parameter attributeName was null or undefined when calling getUserFacilityAttributeByName.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"user")),null!=t&&(a=this.addToHttpParams(a,t,"facility")),null!=r&&(a=this.addToHttpParams(a,r,"attributeName"));let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user_facility`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.get(f,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}getUserFacilityAttributes(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributes.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributes.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"facility"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/user-facility`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getVoAttributeById(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getVoAttributeById.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"attributeId"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-vo`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getVoAttributeByName(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getVoAttributeByName.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"attributeName"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-vo`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getVoAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributes.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/vo`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getVoAttributesByNames(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getVoAttributesByNames.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/vo-names`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}removeAttributesForFacilityResourceGroupUserMember(e,t,r,d,h,c,o=!1,a="body",l=!1,u){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==r)throw new Error("Required parameter group was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==d)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==h)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==c)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");let p=new v.LE({encoder:this.encoder});null!=e&&(p=this.addToHttpParams(p,e,"facility")),null!=t&&(p=this.addToHttpParams(p,t,"resource")),null!=r&&(p=this.addToHttpParams(p,r,"group")),null!=d&&(p=this.addToHttpParams(p,d,"user")),null!=h&&(p=this.addToHttpParams(p,h,"member")),c&&c.forEach(Be=>{p=this.addToHttpParams(p,Be,"attributes[]")});let g,m=this.defaultHeaders;g=this.configuration.lookupCredential("BasicAuth"),g&&(m=m.set("Authorization","Basic "+g)),g=this.configuration.lookupCredential("BearerAuth"),g&&(m=m.set("Authorization","Bearer "+g));let f=u&&u.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(m=m.set("Accept",f));let y=u&&u.context;void 0===y&&(y=new v.qT);let j="json";f&&(j=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob");let le=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-g-u-m`;if(o){let Be=new URL(le),St=Be.pathname.split("/");St[1]="non",Be.pathname=St.join("/"),le=Be.toString()}return this.httpClient.post(le,null,{context:y,params:p,responseType:j,withCredentials:this.configuration.withCredentials,headers:m,observe:a,reportProgress:l})}removeAttributesForFacilityResourceUserMember(e,t,r,d,h,c=!1,o="body",a=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==r)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==d)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==h)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceUserMember.");let u=new v.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"facility")),null!=t&&(u=this.addToHttpParams(u,t,"resource")),null!=r&&(u=this.addToHttpParams(u,r,"user")),null!=d&&(u=this.addToHttpParams(u,d,"member")),h&&h.forEach(le=>{u=this.addToHttpParams(u,le,"attributes[]")});let m,p=this.defaultHeaders;m=this.configuration.lookupCredential("BasicAuth"),m&&(p=p.set("Authorization","Basic "+m)),m=this.configuration.lookupCredential("BearerAuth"),m&&(p=p.set("Authorization","Bearer "+m));let g=l&&l.httpHeaderAccept;void 0===g&&(g=this.configuration.selectHeaderAccept(["application/json"])),void 0!==g&&(p=p.set("Accept",g));let f=l&&l.context;void 0===f&&(f=new v.qT);let y="json";g&&(y=g.startsWith("text")?"text":this.configuration.isJsonMime(g)?"json":"blob");let j=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-u-m`;if(c){let le=new URL(j),Be=le.pathname.split("/");Be[1]="non",le.pathname=Be.join("/"),j=le.toString()}return this.httpClient.post(j,null,{context:f,params:u,responseType:y,withCredentials:this.configuration.withCredentials,headers:p,observe:o,reportProgress:a})}removeEntitylessAttribute(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter key was null or undefined when calling removeEntitylessAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeEntitylessAttribute.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"key")),null!=t&&(o=this.addToHttpParams(o,t,"attribute"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/e`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}removeFacilityAttribute(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeFacilityAttribute.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"facility")),null!=t&&(o=this.addToHttpParams(o,t,"attribute"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/f`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}removeFacilityAttributes(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeFacilityAttributes.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"facility")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attributes[]")});let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}removeGroupAttribute(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeGroupAttribute.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"attribute"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}removeGroupAttributes(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeGroupAttributes.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attributes[]")});let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}removeGroupResourceAttribute(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttribute.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttribute.");if(null==r)throw new Error("Required parameter attribute was null or undefined when calling removeGroupResourceAttribute.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"group")),null!=t&&(a=this.addToHttpParams(a,t,"resource")),null!=r&&(a=this.addToHttpParams(a,r,"attribute"));let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g-r`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.post(f,null,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}removeGroupResourceAttributes(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributes.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributes.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"group")),null!=t&&(a=this.addToHttpParams(a,t,"resource")),r&&r.forEach(y=>{a=this.addToHttpParams(a,y,"attributes[]")});let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.post(f,null,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}removeGroupResourceAttributesWorkWithGroupAttributes(e,t,r,d,h=!1,c="body",o=!1,a){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==d)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"group")),null!=t&&(l=this.addToHttpParams(l,t,"resource")),r&&r.forEach(j=>{l=this.addToHttpParams(l,j,"attributes[]")}),null!=d&&(l=this.addToHttpParams(l,d,"workWithGroupAttributes"));let p,u=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(u=u.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(u=u.set("Authorization","Bearer "+p));let m=a&&a.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(u=u.set("Accept",m));let g=a&&a.context;void 0===g&&(g=new v.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let y=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r-workWithGroupAttributes`;if(h){let j=new URL(y),le=j.pathname.split("/");le[1]="non",j.pathname=le.join("/"),y=j.toString()}return this.httpClient.post(y,null,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:o})}removeHostAttribute(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling removeHostAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeHostAttribute.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"host")),null!=t&&(o=this.addToHttpParams(o,t,"attribute"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/h`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}removeHostAttributes(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling removeHostAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeHostAttributes.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"host")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attributes[]")});let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/h`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}removeMemberAttribute(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeMemberAttribute.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"attribute"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}removeMemberAttributes(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributes.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attributes[]")});let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}removeMemberAttributesWorkWithUserAttributes(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==r)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"member")),t&&t.forEach(y=>{a=this.addToHttpParams(a,y,"attributes[]")}),null!=r&&(a=this.addToHttpParams(a,r,"workWithUserAttributes"));let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-workWithUserAttributes`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.post(f,null,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}removeMemberGroupAttribute(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttribute.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttribute.");if(null==r)throw new Error("Required parameter attribute was null or undefined when calling removeMemberGroupAttribute.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"member")),null!=t&&(a=this.addToHttpParams(a,t,"group")),null!=r&&(a=this.addToHttpParams(a,r,"attribute"));let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-g`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.post(f,null,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}removeMemberGroupAttributes(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributes.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributes.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"member")),null!=t&&(a=this.addToHttpParams(a,t,"group")),r&&r.forEach(y=>{a=this.addToHttpParams(a,y,"attributes[]")});let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.post(f,null,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}removeMemberGroupAttributesWorkWithUserAttributes(e,t,r,d,h=!1,c="body",o=!1,a){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==d)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"member")),null!=t&&(l=this.addToHttpParams(l,t,"group")),r&&r.forEach(j=>{l=this.addToHttpParams(l,j,"attributes[]")}),null!=d&&(l=this.addToHttpParams(l,d,"workWithUserAttributes"));let p,u=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(u=u.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(u=u.set("Authorization","Bearer "+p));let m=a&&a.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(u=u.set("Accept",m));let g=a&&a.context;void 0===g&&(g=new v.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let y=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g-workWithUserAttributes`;if(h){let j=new URL(y),le=j.pathname.split("/");le[1]="non",j.pathname=le.join("/"),y=j.toString()}return this.httpClient.post(y,null,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:o})}removeMemberResourceAttribute(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttribute.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttribute.");if(null==r)throw new Error("Required parameter attribute was null or undefined when calling removeMemberResourceAttribute.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"member")),null!=t&&(a=this.addToHttpParams(a,t,"resource")),null!=r&&(a=this.addToHttpParams(a,r,"attribute"));let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-r`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.post(f,null,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}removeMemberResourceAttributes(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttributes.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeMemberResourceAttributes.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"member")),null!=t&&(a=this.addToHttpParams(a,t,"resource")),r&&r.forEach(y=>{a=this.addToHttpParams(a,y,"attributes[]")});let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-r`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.post(f,null,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}removeResourceAttribute(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeResourceAttribute.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"attribute"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/r`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}removeResourceAttributes(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeResourceAttributes.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attributes[]")});let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/r`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}removeUesAttributes(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling removeUesAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeUesAttributes.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"userExtSource")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attributes[]")});let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/ues`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}removeUserAttribute(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeUserAttribute.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"attribute"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}removeUserAttributes(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeUserAttributes.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attributes[]")});let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}removeUserExtSourceAttribute(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSourceAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeUserExtSourceAttribute.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"userExtSource")),null!=t&&(o=this.addToHttpParams(o,t,"attribute"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/ues`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}removeUserFacilityAttribute(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttribute.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttribute.");if(null==r)throw new Error("Required parameter attribute was null or undefined when calling removeUserFacilityAttribute.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"user")),null!=t&&(a=this.addToHttpParams(a,t,"facility")),null!=r&&(a=this.addToHttpParams(a,r,"attribute"));let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u-f`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.post(f,null,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}removeUserFacilityAttributes(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttributes.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttributes.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeUserFacilityAttributes.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"user")),null!=t&&(a=this.addToHttpParams(a,t,"facility")),r&&r.forEach(y=>{a=this.addToHttpParams(a,y,"attributes[]")});let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u-f`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.post(f,null,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}removeVoAttribute(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeVoAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeVoAttribute.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"attribute"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/v`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}removeVoAttributes(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeVoAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeVoAttributes.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attributes[]")});let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/v`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}setAttributeActionCriticality(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling setAttributeActionCriticality.");if(null==t)throw new Error("Required parameter action was null or undefined when calling setAttributeActionCriticality.");if(null==r)throw new Error("Required parameter critical was null or undefined when calling setAttributeActionCriticality.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"attributeDefinition")),null!=t&&(a=this.addToHttpParams(a,t,"action")),null!=r&&(a=this.addToHttpParams(a,r,"critical"));let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/setAttributeActionCriticality`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.post(f,null,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}setAttributePolicyCollections(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputAttributePolicyCollections was null or undefined when calling setAttributePolicyCollections.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributePolicyCollections`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setAttributeRights(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputAttributeRights was null or undefined when calling setAttributeRights.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributeRights`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setEntitylessAttribute(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputEntitylessAttribute was null or undefined when calling setEntitylessAttribute.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/entityless`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setFacilityAttribute(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetFacilityAttribute was null or undefined when calling setFacilityAttribute.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/facility`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setFacilityAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetFacilityAttributes was null or undefined when calling setFacilityAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/f`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setFacilityResourceGroupUserMemberAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetFacilityResourceGroupUserMemberAttributes was null or undefined when calling setFacilityResourceGroupUserMemberAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-g-u-m`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setFacilityResourceUserMemberAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetFacilityResourceUserMemberAttributes was null or undefined when calling setFacilityResourceUserMemberAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-u-m`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setFacilityUserAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetFacilityUserAttributes was null or undefined when calling setFacilityUserAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/f-u`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setGroupAttribute(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetGroupAttribute was null or undefined when calling setGroupAttribute.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/group`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setGroupAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetGroupAttributes was null or undefined when calling setGroupAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/g`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setGroupResourceAttribute(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetGroupResourceAttribute was null or undefined when calling setGroupResourceAttribute.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/group-resource`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setGroupResourceAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetGroupResourceAttributes was null or undefined when calling setGroupResourceAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/group-resource`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setHostAttribute(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetHostAttribute was null or undefined when calling setHostAttribute.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/host`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setHostAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetHostAttributes was null or undefined when calling setHostAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/h`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setMemberAttribute(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetMemberAttribute was null or undefined when calling setMemberAttribute.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/member`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setMemberAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetMemberAttributes was null or undefined when calling setMemberAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/m`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setMemberGroupAttribute(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetMemberGroupAttribute was null or undefined when calling setMemberGroupAttribute.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/member-group`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setMemberGroupAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetMemberGroupAttributes was null or undefined when calling setMemberGroupAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setMemberGroupWithUserAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetMemberGroupWithUserAttributes was null or undefined when calling setMemberGroupWithUserAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g-wu`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setMemberResourceAndUserAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetMemberResourceAndUserAttributes was null or undefined when calling setMemberResourceAndUserAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r-wu`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setMemberResourceAttribute(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetMemberResourceAttribute was null or undefined when calling setMemberResourceAttribute.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/member-resource`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setMemberResourceAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetMemberResourceAttributes was null or undefined when calling setMemberResourceAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setMemberWithUserAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetMemberWithUserAttributes was null or undefined when calling setMemberWithUserAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-wu`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setResourceAttribute(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetResourceAttribute was null or undefined when calling setResourceAttribute.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/resource`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setResourceAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetResourceAttributes was null or undefined when calling setResourceAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/r`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setResourceGroupAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetResourceGroupAttributes was null or undefined when calling setResourceGroupAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setResourceGroupWithGroupAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetResourceGroupWithGroupAttributes was null or undefined when calling setResourceGroupWithGroupAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g-wg`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setUserAttribute(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetUserAttribute was null or undefined when calling setUserAttribute.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/user`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setUserAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetUserAttributes was null or undefined when calling setUserAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/u`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setUserExtSourceAttribute(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetUserExtSourceAttribute was null or undefined when calling setUserExtSourceAttribute.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/userExtSource`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setUserExtSourceAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetUserExtSourceAttributes was null or undefined when calling setUserExtSourceAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/ues`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setUserFacilityAttribute(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetUserFacilityAttribute was null or undefined when calling setUserFacilityAttribute.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/facility-user`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setUserFacilityAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetUserFacilityAttributes was null or undefined when calling setUserFacilityAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/facility-user`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setVoAttribute(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetVoAttribute was null or undefined when calling setVoAttribute.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/vo`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setVoAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputSetVoAttributes was null or undefined when calling setVoAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/vo`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}updateAttributeDefinition(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputAttributeDefinition was null or undefined when calling updateAttributeDefinition.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/updateAttributeDefinition`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(v.eN),n.LFG(Dn,8),n.LFG(vt,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Va=(()=>{class i{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new v.WM,this.configuration=new vt,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Vn}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(d=>e=this.addToHttpParamsRecursive(e,d,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(d=>e=this.addToHttpParamsRecursive(e,t[d],null!=r?`${r}.${d}`:d));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}getAllPolicies(e=!1,t="body",r=!1,d){let c,h=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(h=h.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(h=h.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(h=h.set("Accept",o));let a=d&&d.context;void 0===a&&(a=new v.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let u=`${this.configuration.basePath}/json/authzResolver/getAllPolicies`;if(e){let p=new URL(u),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),u=p.toString()}return this.httpClient.get(u,{context:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:h,observe:t,reportProgress:r})}getAllRolesManagementRules(e=!1,t="body",r=!1,d){let c,h=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(h=h.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(h=h.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(h=h.set("Accept",o));let a=d&&d.context;void 0===a&&(a=new v.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let u=`${this.configuration.basePath}/json/authzResolver/getAllRolesManagementRules`;if(e){let p=new URL(u),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),u=p.toString()}return this.httpClient.get(u,{context:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:h,observe:t,reportProgress:r})}getAuthzAdminGroups(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter role was null or undefined when calling getAuthzAdminGroups.");if(null==t)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzAdminGroups.");if(null==r)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzAdminGroups.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"role")),null!=t&&(a=this.addToHttpParams(a,t,"complementaryObjectId")),null!=r&&(a=this.addToHttpParams(a,r,"complementaryObjectName"));let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/authzResolver/getAdminGroups`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.get(f,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}getAuthzRichAdmins(e,t,r,d,h,c,o=!1,a="body",l=!1,u){if(null==e)throw new Error("Required parameter role was null or undefined when calling getAuthzRichAdmins.");if(null==t)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzRichAdmins.");if(null==r)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzRichAdmins.");if(null==d)throw new Error("Required parameter specificAttributes was null or undefined when calling getAuthzRichAdmins.");let p=new v.LE({encoder:this.encoder});null!=e&&(p=this.addToHttpParams(p,e,"role")),null!=t&&(p=this.addToHttpParams(p,t,"complementaryObjectId")),null!=r&&(p=this.addToHttpParams(p,r,"complementaryObjectName")),d&&d.forEach(Be=>{p=this.addToHttpParams(p,Be,"specificAttributes")}),null!=h&&(p=this.addToHttpParams(p,h,"allUserAttributes")),null!=c&&(p=this.addToHttpParams(p,c,"onlyDirectAdmins"));let g,m=this.defaultHeaders;g=this.configuration.lookupCredential("BasicAuth"),g&&(m=m.set("Authorization","Basic "+g)),g=this.configuration.lookupCredential("BearerAuth"),g&&(m=m.set("Authorization","Bearer "+g));let f=u&&u.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(m=m.set("Accept",f));let y=u&&u.context;void 0===y&&(y=new v.qT);let j="json";f&&(j=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob");let le=`${this.configuration.basePath}/json/authzResolver/getRichAdmins`;if(o){let Be=new URL(le),St=Be.pathname.split("/");St[1]="non",Be.pathname=St.join("/"),le=Be.toString()}return this.httpClient.get(le,{context:y,params:p,responseType:j,withCredentials:this.configuration.withCredentials,headers:m,observe:a,reportProgress:l})}getFacilitiesWhereUserIsInRoles(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getFacilitiesWhereUserIsInRoles.");let o=new v.LE({encoder:this.encoder});null!=t&&(o=this.addToHttpParams(o,t,"user")),e&&e.forEach(f=>{o=this.addToHttpParams(o,f,"roles[]")});let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/getFacilitiesWhereUserIsInRoles`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getGroupRoleNames(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/getGroupRoleNames`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getGroupRoles(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"groupId"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/authzResolver/getGroupRoles`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getGroupsWhereUserIsInRoles(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getGroupsWhereUserIsInRoles.");let o=new v.LE({encoder:this.encoder});null!=t&&(o=this.addToHttpParams(o,t,"user")),e&&e.forEach(f=>{o=this.addToHttpParams(o,f,"roles[]")});let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/getGroupsWhereUserIsInRoles`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getLoggedUser(e=!1,t="body",r=!1,d){let c,h=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(h=h.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(h=h.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(h=h.set("Accept",o));let a=d&&d.context;void 0===a&&(a=new v.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let u=`${this.configuration.basePath}/json/authzResolver/getLoggedUser`;if(e){let p=new URL(u),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),u=p.toString()}return this.httpClient.get(u,{context:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:h,observe:t,reportProgress:r})}getMembersWhereUserIsInRoles(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getMembersWhereUserIsInRoles.");let o=new v.LE({encoder:this.encoder});null!=t&&(o=this.addToHttpParams(o,t,"user")),e&&e.forEach(f=>{o=this.addToHttpParams(o,f,"roles[]")});let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/getMembersWhereUserIsInRoles`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getPerunPrincipal(e=!1,t="body",r=!1,d){let c,h=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(h=h.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(h=h.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(h=h.set("Accept",o));let a=d&&d.context;void 0===a&&(a=new v.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let u=`${this.configuration.basePath}/json/authzResolver/getPerunPrincipal`;if(e){let p=new URL(u),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),u=p.toString()}return this.httpClient.get(u,{context:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:h,observe:t,reportProgress:r})}getPrincipalRoleNames(e=!1,t="body",r=!1,d){let c,h=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(h=h.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(h=h.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(h=h.set("Accept",o));let a=d&&d.context;void 0===a&&(a=new v.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let u=`${this.configuration.basePath}/json/authzResolver/getPrincipalRoleNames`;if(e){let p=new URL(u),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),u=p.toString()}return this.httpClient.get(u,{context:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:h,observe:t,reportProgress:r})}getResourcesWhereUserIsInRoles(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getResourcesWhereUserIsInRoles.");let o=new v.LE({encoder:this.encoder});null!=t&&(o=this.addToHttpParams(o,t,"user")),e&&e.forEach(f=>{o=this.addToHttpParams(o,f,"roles[]")});let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/getResourcesWhereUserIsInRoles`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getSecurityTeamsWhereUserIsInRoles(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getSecurityTeamsWhereUserIsInRoles.");let o=new v.LE({encoder:this.encoder});null!=t&&(o=this.addToHttpParams(o,t,"user")),e&&e.forEach(f=>{o=this.addToHttpParams(o,f,"roles[]")});let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/getSecurityTeamsWhereUserIsInRoles`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getUserRoleNames(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/getUserRoleNames`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getUserRoles(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"userId"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/getUserRoles`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getVosWhereUserIsInRoles(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getVosWhereUserIsInRoles.");let o=new v.LE({encoder:this.encoder});null!=t&&(o=this.addToHttpParams(o,t,"user")),e&&e.forEach(f=>{o=this.addToHttpParams(o,f,"roles[]")});let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/getVosWhereUserIsInRoles`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}isFacilityAdmin(e,t=!1,r="body",d=!1,h){let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"facility"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/authzResolver/isFacilityAdmin`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}isGroupAdmin(e,t=!1,r="body",d=!1,h){let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/authzResolver/isGroupAdmin`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}isPerunAdmin(e=!1,t="body",r=!1,d){let c,h=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(h=h.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(h=h.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(h=h.set("Accept",o));let a=d&&d.context;void 0===a&&(a=new v.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let u=`${this.configuration.basePath}/json/authzResolver/isPerunAdmin`;if(e){let p=new URL(u),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),u=p.toString()}return this.httpClient.get(u,{context:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:h,observe:t,reportProgress:r})}isVoAdmin(e,t=!1,r="body",d=!1,h){let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/authzResolver/isVoAdmin`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}keepAlive(e=!1,t="body",r=!1,d){let c,h=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(h=h.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(h=h.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(h=h.set("Accept",o));let a=d&&d.context;void 0===a&&(a=new v.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let u=`${this.configuration.basePath}/json/authzResolver/keepAlive`;if(e){let p=new URL(u),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),u=p.toString()}return this.httpClient.get(u,{context:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:h,observe:t,reportProgress:r})}loadAuthorizationComponents(e=!1,t="body",r=!1,d){let c,h=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(h=h.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(h=h.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(h=h.set("Accept",o));let a=d&&d.context;void 0===a&&(a=new v.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let u=`${this.configuration.basePath}/json/authzResolver/loadAuthorizationComponents`;if(e){let p=new URL(u),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),u=p.toString()}return this.httpClient.get(u,{context:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:h,observe:t,reportProgress:r})}refreshMfa(e=!1,t="body",r=!1,d){let c,h=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(h=h.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(h=h.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(h=h.set("Accept",o));let a=d&&d.context;void 0===a&&(a=new v.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let u=`${this.configuration.basePath}/json/authzResolver/refreshMfa`;if(e){let p=new URL(u),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),u=p.toString()}return this.httpClient.get(u,{context:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:h,observe:t,reportProgress:r})}setRoleForGroup(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter SetRoleForGroup was null or undefined when calling setRoleForGroup.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/setRole/g`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setRoleForUser(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter SetRoleForUser was null or undefined when calling setRoleForUser.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/setRole/u`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setRoleWithGroupComplementaryObject(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter SetRoleWithGroupComplementaryObject was null or undefined when calling setRoleWithGroupComplementaryObject.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/setRole/g-co`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setRoleWithGroupComplementaryObjects(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter SetRoleWithGroupComplementaryObjects was null or undefined when calling setRoleWithGroupComplementaryObjects.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/setRole/g-cos`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setRoleWithUserComplementaryObject(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter SetRoleWithUserComplementaryObject was null or undefined when calling setRoleWithUserComplementaryObject.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/setRole/u-co`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setRoleWithUserComplementaryObjects(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter SetRoleWithUserComplementaryObjects was null or undefined when calling setRoleWithUserComplementaryObjects.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/setRole/u-cos`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}unsetRoleForGroup(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter UnsetRoleForGroup was null or undefined when calling unsetRoleForGroup.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/unsetRole/g`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}unsetRoleForUser(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter UnsetRoleForUser was null or undefined when calling unsetRoleForUser.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/unsetRole/u`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}unsetRoleWithGroupComplementaryObject(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter UnsetRoleWithGroupComplementaryObject was null or undefined when calling unsetRoleWithGroupComplementaryObject.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/unsetRole/g-co`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}unsetRoleWithGroupComplementaryObjects(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter UnsetRoleWithGroupComplementaryObjects was null or undefined when calling unsetRoleWithGroupComplementaryObjects.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/unsetRole/g-cos`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}unsetRoleWithUserComplementaryObject(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter UnsetRoleWithUserComplementaryObject was null or undefined when calling unsetRoleWithUserComplementaryObject.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/unsetRole/u-co`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}unsetRoleWithUserComplementaryObjects(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter UnsetRoleWithUserComplementaryObjects was null or undefined when calling unsetRoleWithUserComplementaryObjects.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/unsetRole/u-cos`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(v.eN),n.LFG(Dn,8),n.LFG(vt,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),wn=(()=>{class i{constructor(e,t,r){this.httpClient=e,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new v.WM,this.configuration=new vt,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Vn}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(d=>e=this.addToHttpParamsRecursive(e,d,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(d=>e=this.addToHttpParamsRecursive(e,t[d],null!=r?`${r}.${d}`:d));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}createAutorship(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputCreateAuthorship was null or undefined when calling createAutorship.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/cabinetManager/createAuthorship`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}createCategoryCat(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputCreateCategory was null or undefined when calling createCategoryCat.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/cabinetManager/createCategory/cat`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}createCategoryNR(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputCreateCategoryNR was null or undefined when calling createCategoryNR.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/cabinetManager/createCategory/n-r`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}createPublication(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputCreatePublication was null or undefined when calling createPublication.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/cabinetManager/createPublication`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}createPublicationSystem(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputCreatePublicationSystem was null or undefined when calling createPublicationSystem.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/cabinetManager/createPublicationSystem`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}createThanks(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputCreateThanks was null or undefined when calling createThanks.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/cabinetManager/createThanks`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}deleteAuthorship(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter publicationId was null or undefined when calling deleteAuthorship.");if(null==t)throw new Error("Required parameter userId was null or undefined when calling deleteAuthorship.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"publicationId")),null!=t&&(o=this.addToHttpParams(o,t,"userId"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/cabinetManager/deleteAuthorship`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}deleteCategory(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteCategory.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/cabinetManager/deleteCategory`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}deletePublication(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter id was null or undefined when calling deletePublication.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/cabinetManager/deletePublication`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}deletePublicationSystem(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter id was null or undefined when calling deletePublicationSystem.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/cabinetManager/deletePublicationSystem`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}deleteThanks(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteThanks.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/cabinetManager/deleteThanks`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}findAllAuthors(e=!1,t="body",r=!1,d){let c,h=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(h=h.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(h=h.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(h=h.set("Accept",o));let a=d&&d.context;void 0===a&&(a=new v.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let u=`${this.configuration.basePath}/json/cabinetManager/findAllAuthors`;if(e){let p=new URL(u),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),u=p.toString()}return this.httpClient.get(u,{context:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:h,observe:t,reportProgress:r})}findAuthorsByPublicationId(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter id was null or undefined when calling findAuthorsByPublicationId.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/cabinetManager/findAuthorsByPublicationId`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}findExternalPublications(e,t,r,d,h=!1,c="body",o=!1,a){if(null==e)throw new Error("Required parameter user was null or undefined when calling findExternalPublications.");if(null==t)throw new Error("Required parameter yearSince was null or undefined when calling findExternalPublications.");if(null==r)throw new Error("Required parameter yearTill was null or undefined when calling findExternalPublications.");if(null==d)throw new Error("Required parameter pubSysNamespace was null or undefined when calling findExternalPublications.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user")),null!=t&&(l=this.addToHttpParams(l,t,"yearSince")),null!=r&&(l=this.addToHttpParams(l,r,"yearTill")),null!=d&&(l=this.addToHttpParams(l,d,"pubSysNamespace"));let p,u=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(u=u.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(u=u.set("Authorization","Bearer "+p));let m=a&&a.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(u=u.set("Accept",m));let g=a&&a.context;void 0===g&&(g=new v.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let y=`${this.configuration.basePath}/json/cabinetManager/findExternalPublications`;if(h){let j=new URL(y),le=j.pathname.split("/");le[1]="non",j.pathname=le.join("/"),y=j.toString()}return this.httpClient.get(y,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:o})}findNewAuthors(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findNewAuthors.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"searchString"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/cabinetManager/findNewAuthors`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}findPublicationById(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter id was null or undefined when calling findPublicationById.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/cabinetManager/findPublicationById`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}findPublicationsByFilter(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter userId was null or undefined when calling findPublicationsByFilter.");let a=new v.LE({encoder:this.encoder});null!=t&&(a=this.addToHttpParams(a,t,"yearSince")),null!=r&&(a=this.addToHttpParams(a,r,"yearTill")),null!=e&&(a=this.addToHttpParams(a,e,"userId"));let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/cabinetManager/findPublicationsByFilter`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.get(f,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}findPublicationsByGUIFilter(e,t,r,d,h,c,o,a,l,u=!1,p="body",m=!1,g){let f=new v.LE({encoder:this.encoder});null!=e&&(f=this.addToHttpParams(f,e,"title")),null!=t&&(f=this.addToHttpParams(f,t,"isbn")),null!=r&&(f=this.addToHttpParams(f,r,"doi")),null!=d&&(f=this.addToHttpParams(f,d,"id")),null!=h&&(f=this.addToHttpParams(f,h,"year")),null!=c&&(f=this.addToHttpParams(f,c,"category")),null!=o&&(f=this.addToHttpParams(f,o,"yearSince")),null!=a&&(f=this.addToHttpParams(f,a,"yearTill")),null!=l&&(f=this.addToHttpParams(f,l,"userId"));let j,y=this.defaultHeaders;j=this.configuration.lookupCredential("BasicAuth"),j&&(y=y.set("Authorization","Basic "+j)),j=this.configuration.lookupCredential("BearerAuth"),j&&(y=y.set("Authorization","Bearer "+j));let le=g&&g.httpHeaderAccept;void 0===le&&(le=this.configuration.selectHeaderAccept(["application/json"])),void 0!==le&&(y=y.set("Accept",le));let Be=g&&g.context;void 0===Be&&(Be=new v.qT);let St="json";le&&(St=le.startsWith("text")?"text":this.configuration.isJsonMime(le)?"json":"blob");let xi=`${this.configuration.basePath}/json/cabinetManager/findPublicationsByGUIFilter`;if(u){let Xn=new URL(xi),pi=Xn.pathname.split("/");pi[1]="non",Xn.pathname=pi.join("/"),xi=Xn.toString()}return this.httpClient.get(xi,{context:Be,params:f,responseType:St,withCredentials:this.configuration.withCredentials,headers:y,observe:p,reportProgress:m})}findSimilarPublications(e,t,r,d=!1,h="body",c=!1,o){let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"title")),null!=t&&(a=this.addToHttpParams(a,t,"doi")),null!=r&&(a=this.addToHttpParams(a,r,"isbn"));let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/cabinetManager/findSimilarPublications`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.get(f,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}getCategories(e=!1,t="body",r=!1,d){let c,h=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(h=h.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(h=h.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(h=h.set("Accept",o));let a=d&&d.context;void 0===a&&(a=new v.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let u=`${this.configuration.basePath}/json/cabinetManager/getCategories`;if(e){let p=new URL(u),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),u=p.toString()}return this.httpClient.get(u,{context:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:h,observe:t,reportProgress:r})}getPublicationSystems(e=!1,t="body",r=!1,d){let c,h=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(h=h.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(h=h.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(h=h.set("Accept",o));let a=d&&d.context;void 0===a&&(a=new v.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let u=`${this.configuration.basePath}/json/cabinetManager/getPublicationSystems`;if(e){let p=new URL(u),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),u=p.toString()}return this.httpClient.get(u,{context:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:h,observe:t,reportProgress:r})}getRank(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRank.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/cabinetManager/getRank`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getRichThanksByPublicationId(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter id was null or undefined when calling getRichThanksByPublicationId.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/cabinetManager/getRichThanksByPublicationId`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}lockPublications(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputLockPublications was null or undefined when calling lockPublications.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/cabinetManager/lockPublications`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}updateCategory(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputUpdateCategory was null or undefined when calling updateCategory.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/cabinetManager/updateCategory`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}updatePublication(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputUpdatePublication was null or undefined when calling updatePublication.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/cabinetManager/updatePublication`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}updatePublicationSystem(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputUpdatePublicationSystem was null or undefined when calling updatePublicationSystem.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/cabinetManager/updatePublicationSystem`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(v.eN),n.LFG(Dn,8),n.LFG(vt,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Bo=(()=>{class i{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new v.WM,this.configuration=new vt,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Vn}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(d=>e=this.addToHttpParamsRecursive(e,d,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(d=>e=this.addToHttpParamsRecursive(e,t[d],null!=r?`${r}.${d}`:d));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}createOwner(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputCreateOwner was null or undefined when calling createOwner.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/ownersManager/createOwner`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}deleteOwner(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter owner was null or undefined when calling deleteOwner.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"owner")),null!=t&&(o=this.addToHttpParams(o,t,"force"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/ownersManager/deleteOwner`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}deleteOwners(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter owners was null or undefined when calling deleteOwners.");let o=new v.LE({encoder:this.encoder});e&&e.forEach(f=>{o=this.addToHttpParams(o,f,"owners[]")}),null!=t&&(o=this.addToHttpParams(o,t,"force"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/ownersManager/deleteOwners`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getAllOwners(e=!1,t="body",r=!1,d){let c,h=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(h=h.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(h=h.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(h=h.set("Accept",o));let a=d&&d.context;void 0===a&&(a=new v.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let u=`${this.configuration.basePath}/json/ownersManager/getOwners`;if(e){let p=new URL(u),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),u=p.toString()}return this.httpClient.get(u,{context:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:h,observe:t,reportProgress:r})}getOwnerById(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter id was null or undefined when calling getOwnerById.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/ownersManager/getOwnerById`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getOwnerByName(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter owner was null or undefined when calling getOwnerByName.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"owner"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/ownersManager/getOwnerByName`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(v.eN),n.LFG(Dn,8),n.LFG(vt,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Vo=(()=>{class i{constructor(e,t,r){this.httpClient=e,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new v.WM,this.configuration=new vt,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Vn}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(d=>e=this.addToHttpParamsRecursive(e,d,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(d=>e=this.addToHttpParamsRecursive(e,t[d],null!=r?`${r}.${d}`:d));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}sentMessageToRTWithMemberQueue(e,t,r,d,h=!1,c="body",o=!1,a){if(null==e)throw new Error("Required parameter memberId was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==r)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==d)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithMemberQueue.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"memberId")),null!=t&&(l=this.addToHttpParams(l,t,"queue")),null!=r&&(l=this.addToHttpParams(l,r,"subject")),null!=d&&(l=this.addToHttpParams(l,d,"text"));let p,u=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(u=u.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(u=u.set("Authorization","Bearer "+p));let m=a&&a.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(u=u.set("Accept",m));let g=a&&a.context;void 0===g&&(g=new v.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let y=`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/m-q`;if(h){let j=new URL(y),le=j.pathname.split("/");le[1]="non",j.pathname=le.join("/"),y=j.toString()}return this.httpClient.post(y,null,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:o})}sentMessageToRTWithQueue(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithQueue.");if(null==t)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithQueue.");if(null==r)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithQueue.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"queue")),null!=t&&(a=this.addToHttpParams(a,t,"subject")),null!=r&&(a=this.addToHttpParams(a,r,"text"));let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/q`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.post(f,null,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}sentMessageToRTWithVo(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVo.");if(null==t)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVo.");if(null==r)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVo.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"voId")),null!=t&&(a=this.addToHttpParams(a,t,"subject")),null!=r&&(a=this.addToHttpParams(a,r,"text"));let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.post(f,null,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}sentMessageToRTWithVoQueue(e,t,r,d,h=!1,c="body",o=!1,a){if(null==e)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==r)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==d)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVoQueue.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"voId")),null!=t&&(l=this.addToHttpParams(l,t,"queue")),null!=r&&(l=this.addToHttpParams(l,r,"subject")),null!=d&&(l=this.addToHttpParams(l,d,"text"));let p,u=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(u=u.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(u=u.set("Authorization","Bearer "+p));let m=a&&a.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(u=u.set("Accept",m));let g=a&&a.context;void 0===g&&(g=new v.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let y=`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v-q`;if(h){let j=new URL(y),le=j.pathname.split("/");le[1]="non",j.pathname=le.join("/"),y=j.toString()}return this.httpClient.post(y,null,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:o})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(v.eN),n.LFG(Dn,8),n.LFG(vt,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Uo=(()=>{class i{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new v.WM,this.configuration=new vt,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Vn}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(d=>e=this.addToHttpParamsRecursive(e,d,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(d=>e=this.addToHttpParamsRecursive(e,t[d],null!=r?`${r}.${d}`:d));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}addSpecificUserOwner(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling addSpecificUserOwner.");if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling addSpecificUserOwner.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"specificUser"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/addSpecificUserOwner`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}addUserExtSource(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter AddUserExtSourceInput was null or undefined when calling addUserExtSource.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/addUserExtSource`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}anonymizeUser(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling anonymizeUser.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"force"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/anonymizeUser`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}changeNonAuthzPasswordByToken(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputChangeNonAuthzPasswordByToken was null or undefined when calling changeNonAuthzPasswordByToken.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/changeNonAuthzPassword/token`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}changePasswordForLogin(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputChangePasswordForLogin was null or undefined when calling changePasswordForLogin.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/changePassword/login`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}changePasswordForUser(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputChangePasswordForUser was null or undefined when calling changePasswordForUser.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/changePassword/user`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}checkPasswordResetRequestByTokenIsValid(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter token was null or undefined when calling checkPasswordResetRequestByTokenIsValid.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"token"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/checkPasswordResetRequestIsValid/token`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}checkPasswordStrength(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputCheckPasswordStrength was null or undefined when calling checkPasswordStrength.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/checkPasswordStrength`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}createAlternativePassword(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputCreateAlternativePassword was null or undefined when calling createAlternativePassword.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/createAlternativePassword`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}createServiceUser(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputCreateServiceUser was null or undefined when calling createServiceUser.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/createServiceUser`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}deleteAlternativePassword(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter user was null or undefined when calling deleteAlternativePassword.");if(null==t)throw new Error("Required parameter loginNamespace was null or undefined when calling deleteAlternativePassword.");if(null==r)throw new Error("Required parameter passwordId was null or undefined when calling deleteAlternativePassword.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"user")),null!=t&&(a=this.addToHttpParams(a,t,"loginNamespace")),null!=r&&(a=this.addToHttpParams(a,r,"passwordId"));let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/usersManager/deleteAlternativePassword`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.post(f,null,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}deletePasswordForLogin(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter login was null or undefined when calling deletePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForLogin.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"login")),null!=t&&(o=this.addToHttpParams(o,t,"namespace"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/login`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}deletePasswordForUser(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling deletePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForUser.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"namespace"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/user`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}deleteUser(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling deleteUser.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"force"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/deleteUser`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}findRichUsers(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findRichUsers.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"searchString"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/findRichUsers`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}findRichUsersWithAttributes(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findRichUsersWithAttributes.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"searchString")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrsNames[]")});let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/findRichUsersWithAttributes`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}findUsers(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findUsers.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"searchString"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/findUsers`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}generateAccountForName(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter namespace was null or undefined when calling generateAccountForName.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"namespace")),null!=t&&(o=this.addToHttpParams(o,t,"name"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/generateAccount/name`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getAllRichUsersWithAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter includedSpecificUsers was null or undefined when calling getAllRichUsersWithAttributes.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"includedSpecificUsers"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getAllRichUsersWithAttributes`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAssignedRichResourcesForUser(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter user was null or undefined when calling getAssignedRichResourcesForUser.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getAssignedRichResources`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getGroupsForFacilityWhereUserIsActive(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"facility"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/facility`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getGroupsForResourceWhereUserIsActive(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsForResourceWhereUserIsActive.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupsForResourceWhereUserIsActive.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"resource"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/resource`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getGroupsInVoWhereUserIsAdmin(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"vo"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u-v`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getGroupsWhereUserIsAdmin(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsWhereUserIsAdmin.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getPendingPreferredEmailChanges(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter user was null or undefined when calling getPendingPreferredEmailChanges.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getPendingPreferredEmailChanges`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getRichUserExtSources(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserExtSources.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getRichUserExtSources/u`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getRichUserWithAttributes(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserWithAttributes.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getRichUserWithAttributes`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getRichUsersByIds(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersByIds.");let c=new v.LE({encoder:this.encoder});e&&e.forEach(g=>{c=this.addToHttpParams(c,g,"ids[]")});let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getRichUsersByIds`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getRichUsersWithAttributesByIds(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersWithAttributesByIds.");let c=new v.LE({encoder:this.encoder});e&&e.forEach(g=>{c=this.addToHttpParams(c,g,"ids[]")});let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getRichUsersWithAttributesByIds`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getRichUsersWithoutVoWithAttributes(e,t=!1,r="body",d=!1,h){let c=new v.LE({encoder:this.encoder});e&&e.forEach(g=>{c=this.addToHttpParams(c,g,"attrsNames[]")});let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getRichUsersWithoutVoWithAttributes`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getSpecificUsersByUser(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter user was null or undefined when calling getSpecificUsersByUser.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getSpecificUsersByUser`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getSponsorsForMember(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getSponsorsForMember.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/member`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getSponsorsForMemberByVoAndLogin(e,t,r,d,h=!1,c="body",o=!1,a){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==t)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==r)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsForMemberByVoAndLogin.");let l=new v.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"vo")),null!=t&&(l=this.addToHttpParams(l,t,"extSourceName")),null!=r&&(l=this.addToHttpParams(l,r,"extLogin")),d&&d.forEach(j=>{l=this.addToHttpParams(l,j,"attrNames[]")});let p,u=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(u=u.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(u=u.set("Authorization","Bearer "+p));let m=a&&a.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(u=u.set("Accept",m));let g=a&&a.context;void 0===g&&(g=new v.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let y=`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/vo`;if(h){let j=new URL(y),le=j.pathname.split("/");le[1]="non",j.pathname=le.join("/"),y=j.toString()}return this.httpClient.get(y,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:o})}getUserByExtSourceNameAndExtLogin(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter extLogin was null or undefined when calling getUserByExtSourceNameAndExtLogin.");if(null==t)throw new Error("Required parameter extSourceName was null or undefined when calling getUserByExtSourceNameAndExtLogin.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"extLogin")),null!=t&&(o=this.addToHttpParams(o,t,"extSourceName"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getUserByExtSourceNameAndExtLogin`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getUserById(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter id was null or undefined when calling getUserById.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getUserById`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getUserExtSourceByExtLoginAndExtSourceName(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");if(null==t)throw new Error("Required parameter extSourceLogin was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"extSourceName")),null!=t&&(o=this.addToHttpParams(o,t,"extSourceLogin"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getUserExtSourceByExtLoginAndExtSourceName`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getUserExtSourceById(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceById.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"userExtSource"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getUserExtSourceById`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getUserExtSourceByUniqueAttributeValueAndAttributeId(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");if(null==t)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"attributeId")),null!=t&&(o=this.addToHttpParams(o,t,"attributeValue"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/id`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getUserExtSourceByUniqueAttributeValueAndAttributeName(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");if(null==t)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"attributeName")),null!=t&&(o=this.addToHttpParams(o,t,"attributeValue"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/name`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}getUserExtSources(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserExtSources.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getUserExtSources`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getUserExtSourcesByIds(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUserExtSourcesByIds.");let c=new v.LE({encoder:this.encoder});e&&e.forEach(g=>{c=this.addToHttpParams(c,g,"ids[]")});let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getUserExtSourcesByIds`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getUsers(e=!1,t="body",r=!1,d){let c,h=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(h=h.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(h=h.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(h=h.set("Accept",o));let a=d&&d.context;void 0===a&&(a=new v.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let u=`${this.configuration.basePath}/json/usersManager/getUsers`;if(e){let p=new URL(u),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),u=p.toString()}return this.httpClient.get(u,{context:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:h,observe:t,reportProgress:r})}getUsersByIds(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUsersByIds.");let c=new v.LE({encoder:this.encoder});e&&e.forEach(g=>{c=this.addToHttpParams(c,g,"ids[]")});let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getUsersByIds`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getUsersBySpecificUser(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter specificUser was null or undefined when calling getUsersBySpecificUser.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"specificUser"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getUsersBySpecificUser`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getUsersPage(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputGetPaginatedUsers was null or undefined when calling getUsersPage.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getUsersPage`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}getVosWhereUserIsAdmin(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsAdmin.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsAdmin`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getVosWhereUserIsMember(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsMember.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsMember`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}isLoginAvailable(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter loginNamespace was null or undefined when calling isLoginAvailable.");if(null==t)throw new Error("Required parameter login was null or undefined when calling isLoginAvailable.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"loginNamespace")),null!=t&&(o=this.addToHttpParams(o,t,"login"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/isLoginAvailable`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}loginExist(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling loginExist.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling loginExist.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"namespace"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/loginExist`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}removeSpecificUserOwner(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeSpecificUserOwner.");if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling removeSpecificUserOwner.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"specificUser"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/removeSpecificUserOwner`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}removeUserExtSource(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserExtSource.");if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSource.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"user")),null!=t&&(a=this.addToHttpParams(a,t,"userExtSource")),null!=r&&(a=this.addToHttpParams(a,r,"force"));let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/usersManager/removeUserExtSource`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.post(f,null,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}removeUserExtSources(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserExtSources.");if(null==t)throw new Error("Required parameter userExtSources was null or undefined when calling removeUserExtSources.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"user")),t&&t.forEach(y=>{a=this.addToHttpParams(a,y,"userExtSources")}),null!=r&&(a=this.addToHttpParams(a,r,"force"));let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/usersManager/removeUserExtSources`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.post(f,null,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}requestPreferredEmailChange(e,t,r,d,h,c,o=!1,a="body",l=!1,u){if(null==e)throw new Error("Required parameter user was null or undefined when calling requestPreferredEmailChange.");if(null==t)throw new Error("Required parameter email was null or undefined when calling requestPreferredEmailChange.");let p=new v.LE({encoder:this.encoder});null!=e&&(p=this.addToHttpParams(p,e,"user")),null!=t&&(p=this.addToHttpParams(p,t,"email")),null!=r&&(p=this.addToHttpParams(p,r,"lang")),null!=d&&(p=this.addToHttpParams(p,d,"linkPath")),null!=h&&(p=this.addToHttpParams(p,h,"customUrl")),null!=c&&(p=this.addToHttpParams(p,c,"idpFilter"));let g,m=this.defaultHeaders;g=this.configuration.lookupCredential("BasicAuth"),g&&(m=m.set("Authorization","Basic "+g)),g=this.configuration.lookupCredential("BearerAuth"),g&&(m=m.set("Authorization","Bearer "+g));let f=u&&u.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(m=m.set("Accept",f));let y=u&&u.context;void 0===y&&(y=new v.qT);let j="json";f&&(j=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob");let le=`${this.configuration.basePath}/urlinjsonout/usersManager/requestPreferredEmailChange`;if(o){let Be=new URL(le),St=Be.pathname.split("/");St[1]="non",Be.pathname=St.join("/"),le=Be.toString()}return this.httpClient.post(le,null,{context:y,params:p,responseType:j,withCredentials:this.configuration.withCredentials,headers:m,observe:a,reportProgress:l})}reservePasswordForLogin(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputReservePasswordForLogin was null or undefined when calling reservePasswordForLogin.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/reservePassword/login`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}reservePasswordForUser(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputReservePasswordForUser was null or undefined when calling reservePasswordForUser.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/reservePassword/user`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}reserveRandomPassword(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling reserveRandomPassword.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling reserveRandomPassword.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"namespace"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/reserveRandomPassword`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}setLogin(e,t,r,d=!1,h="body",c=!1,o){if(null==e)throw new Error("Required parameter user was null or undefined when calling setLogin.");if(null==t)throw new Error("Required parameter login was null or undefined when calling setLogin.");if(null==r)throw new Error("Required parameter namespace was null or undefined when calling setLogin.");let a=new v.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"user")),null!=t&&(a=this.addToHttpParams(a,t,"login")),null!=r&&(a=this.addToHttpParams(a,r,"namespace"));let u,l=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(l=l.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(l=l.set("Authorization","Bearer "+u));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new v.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/usersManager/setLogin`;if(d){let y=new URL(f),j=y.pathname.split("/");j[1]="non",y.pathname=j.join("/"),f=y.toString()}return this.httpClient.post(f,null,{context:m,params:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:h,reportProgress:c})}updateUser(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter InputUpdateUser was null or undefined when calling updateUser.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let a=h&&h.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(c=c.set("Accept",a));let l=h&&h.context;void 0===l&&(l=new v.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";a&&(m=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/updateUser`;if(t){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}updateUserExtSourceLastAccess(e,t=!1,r="body",d=!1,h){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling updateUserExtSourceLastAccess.");let c=new v.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"userExtSource"));let a,o=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(o=o.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(o=o.set("Authorization","Bearer "+a));let l=h&&h.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let u=h&&h.context;void 0===u&&(u=new v.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/usersManager/updateUserExtSourceLastAccess`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:u,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}validatePasswordForLogin(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter login was null or undefined when calling validatePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForLogin.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"login")),null!=t&&(o=this.addToHttpParams(o,t,"namespace"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/login`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}validatePasswordForUser(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling validatePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForUser.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"namespace"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/user`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}validatePreferredEmailChangeWithToken(e,t,r=!1,d="body",h=!1,c){if(null==e)throw new Error("Required parameter token was null or undefined when calling validatePreferredEmailChangeWithToken.");if(null==t)throw new Error("Required parameter u was null or undefined when calling validatePreferredEmailChangeWithToken.");let o=new v.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"token")),null!=t&&(o=this.addToHttpParams(o,t,"u"));let l,a=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(a=a.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(a=a.set("Authorization","Bearer "+l));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=c&&c.context;void 0===p&&(p=new v.qT);let m="json";u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/validatePreferredEmailChange`;if(r){let f=new URL(g),y=f.pathname.split("/");y[1]="non",f.pathname=y.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:a,observe:d,reportProgress:h})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(v.eN),n.LFG(Dn,8),n.LFG(vt,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),ui=(()=>{class i{constructor(e,t,r){this.httpClient=e,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new v.WM,this.configuration=new vt,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Vn}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(d=>e=this.addToHttpParamsRecursive(e,d,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(d=>e=this.addToHttpParamsRecursive(e,t[d],null!=r?`${r}.${d}`:d));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}getAppsConfig(e=!1,t="body",r=!1,d){let c,h=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(h=h.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(h=h.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(h=h.set("Accept",o));let a=d&&d.context;void 0===a&&(a=new v.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let u=`${this.configuration.basePath}/json/utils/getAppsConfig`;if(e){let p=new URL(u),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),u=p.toString()}return this.httpClient.get(u,{context:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:h,observe:t,reportProgress:r})}getGuiConfiguration(e=!1,t="body",r=!1,d){let c,h=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(h=h.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(h=h.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(h=h.set("Accept",o));let a=d&&d.context;void 0===a&&(a=new v.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let u=`${this.configuration.basePath}/json/utils/getGuiConfiguration`;if(e){let p=new URL(u),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),u=p.toString()}return this.httpClient.get(u,{context:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:h,observe:t,reportProgress:r})}getNewGuiAlert(e=!1,t="body",r=!1,d){let c,h=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(h=h.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(h=h.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(h=h.set("Accept",o));let a=d&&d.context;void 0===a&&(a=new v.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let u=`${this.configuration.basePath}/json/utils/getNewGuiAlert`;if(e){let p=new URL(u),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),u=p.toString()}return this.httpClient.get(u,{context:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:h,observe:t,reportProgress:r})}getPerunRPCVersion(e=!1,t="body",r=!1,d){let c,h=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(h=h.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(h=h.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["text/plain"])),void 0!==o&&(h=h.set("Accept",o));let a=d&&d.context;void 0===a&&(a=new v.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let u=`${this.configuration.basePath}/`;if(e){let p=new URL(u),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),u=p.toString()}return this.httpClient.get(u,{context:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:h,observe:t,reportProgress:r})}getPerunStatistics(e=!1,t="body",r=!1,d){let c,h=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(h=h.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(h=h.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(h=h.set("Accept",o));let a=d&&d.context;void 0===a&&(a=new v.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let u=`${this.configuration.basePath}/json/utils/getPerunStatistics`;if(e){let p=new URL(u),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),u=p.toString()}return this.httpClient.get(u,{context:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:h,observe:t,reportProgress:r})}getPerunStatus(e=!1,t="body",r=!1,d){let c,h=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(h=h.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(h=h.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(h=h.set("Accept",o));let a=d&&d.context;void 0===a&&(a=new v.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let u=`${this.configuration.basePath}/json/utils/getPerunStatus`;if(e){let p=new URL(u),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),u=p.toString()}return this.httpClient.get(u,{context:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:h,observe:t,reportProgress:r})}getPerunSystemTimeInMillis(e=!1,t="body",r=!1,d){let c,h=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(h=h.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(h=h.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(h=h.set("Accept",o));let a=d&&d.context;void 0===a&&(a=new v.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let u=`${this.configuration.basePath}/json/utils/getPerunSystemTimeInMillis`;if(e){let p=new URL(u),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),u=p.toString()}return this.httpClient.get(u,{context:a,responseType:l,withCredentials:this.configuration.withCredentials,headers:h,observe:t,reportProgress:r})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(v.eN),n.LFG(Dn,8),n.LFG(vt,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),ii=(()=>{class i{constructor(e,t){if(e)throw new Error("ApiModule is already loaded. Import in your base AppModule only.");if(!t)throw new Error("You need to import the HttpClientModule in your AppModule! \nSee also https://github.com/angular/angular/issues/20575")}static forRoot(e){return{ngModule:i,providers:[{provide:vt,useFactory:e}]}}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(i,12),n.LFG(v.eN,8))},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})();var tt=(()=>{return(i=tt||(tt={})).PERUNADMIN="PERUNADMIN",i.PERUNOBSERVER="PERUNOBSERVER",i.VOADMIN="VOADMIN",i.GROUPADMIN="GROUPADMIN",i.GROUPOBSERVER="GROUPOBSERVER",i.GROUPMEMBERSHIPMANAGER="GROUPMEMBERSHIPMANAGER",i.SELF="SELF",i.FACILITYADMIN="FACILITYADMIN",i.FACILITIYOBSERVER="FACILITYOBSERVER",i.RESOURCEADMIN="RESOURCEADMIN",i.RESOURCESELFSERVICE="RESOURCESELFSERVICE",i.REGISTRAR="REGISTRAR",i.ENGINE="ENGINE",i.RPC="RPC",i.NOTIFICATIONS="NOTIFICATIONS",i.SERVICEUSER="SERVICEUSER",i.SPONSOR="SPONSOR",i.VOOBSERVER="VOOBSERVER",i.TOPGROUPCREATOR="TOPGROUPCREATOR",i.SECURITYADMIN="SECURITYADMIN",i.CABINETADMIN="CABINETADMIN",i.UNKNOWNROLENAME="UNKNOWNROLENAME",i.AUDITCONSUMERADMIN="AUDITCONSUMERADMIN",i.UNKNOWN="UNKNOWN",i.MEMBERSHIP="MEMBERSHIP",tt;var i})();let dn=(()=>{class i{constructor(e){this.authzSevice=e,this.principalRoles=new Set,this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[],this.sortRoles=(t,r)=>t.roleName>r.roleName?1:t.roleName{this.authzSevice.getAllRolesManagementRules().subscribe(r=>{this.allRolesManagementRules=r,e()},r=>t(r))})}assignAvailableRoles(e,t){this.allRolesManagementRules.forEach(r=>{r.primaryObject===t&&e.push(r)}),e.sort(this.sortRoles),"Vo"===t&&this.voCustomSort(e)}isManagerPagePrivileged(e){const t=[];let r=e.beanName;r.startsWith("Rich")&&(r=r.substring(4)),this.assignAvailableRoles(t,r);const d=new Map;this.setRolesAuthorization(t,e,d);for(const h of d.values())if(h.readAuth||h.manageAuth)return!0;return!1}setRolesAuthorization(e,t,r){for(const d of e){let h=[],c=[],o=[];for(const m of this.allRolesManagementRules)if(m.roleName===d.roleName){h=h.concat(m.privilegedRolesToRead),c=c.concat(m.privilegedRolesToManage);for(const g of Object.keys(m.entitiesToManage))o="User"===g?[g].concat(o):o.concat(g);break}const a=this.fetchAllRelatedObjects([t]),l=this.resolveAuthorization(h,a),u=this.resolveAuthorization(c,a);r.set(d.roleName,{readAuth:l,manageAuth:u,modes:o})}}initializeVariables(){this.principalRoles.clear(),this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}getPrimaryObjectOfRole(e){for(const t of this.allRolesManagementRules)if(t.roleName===e)return t.primaryObject;return""}getAllRules(){return this.allRolesManagementRules.sort(this.sortRoles)}getRuleForRole(e){return this.allRolesManagementRules.find(t=>t.roleName===e)}getAssignableRoleRules(e){const t=[],r=["UNKNOWN","RPC","NOTIFICATIONS","ENGINE","MFA","REGISTRAR","AUDITCONSUMERADMIN","SPONSORSHIP","MEMBERSHIP","SERVICEUSER","SELF","SECURITYADMIN"];return this.allRolesManagementRules.forEach(d=>{!r.includes(d.roleName)&&this.canManage(d)&&this.ruleHasMode(d,e)&&t.push(d)}),t.sort(this.sortRoles)}ruleHasMode(e,t){return Object.keys(e.entitiesToManage).map(r=>r.toUpperCase()).includes(t)}canManage(e){return e.privilegedRolesToManage.some(t=>this.principalRoles.has(Object.keys(t)[0]))}resolveAuthorization(e,t){for(const r of e){let d=!0;for(const h of Object.keys(r)){const c=r[h];if(null===c)this.principalRoles.has(h)||(d=!1);else if(t[c]){for(const o of t[c])if(!this.principalHasRole(h,c,o)){d=!1;break}}else d=!1;if(!d)break}if(d)return!0}return!1}getPerunPolicy(e){for(const t of this.perunPolicies)if(t.policyName===e)return t;return null}fetchAllRelatedObjects(e){const t={};for(const r of e){let d=r.beanName;switch(r.beanName.startsWith("Rich")&&(d=r.beanName.substring(4)),t[d]?t[d].push(r.id):t[d]=[r.id],d){case"Member":t.User?t.User.push(r.userId):t.User=[r.userId],t.Vo?t.Vo.push(r.voId):t.Vo=[r.voId];break;case"Group":case"ResourceTag":t.Vo?t.Vo.push(r.voId):t.Vo=[r.voId];break;case"Resource":t.Facility?t.Facility.push(r.facilityId):t.Facility=[r.facilityId],t.Vo?t.Vo.push(r.voId):t.Vo=[r.voId]}}return t}fetchPolicyWithAllIncludedPolicies(e){const t=new Map;let r=[];for(r.push(e);0!==r.length;){const h=r.shift();if(t.has(h))continue;const c=this.getPerunPolicy(h);if(!c)return[];t.set(h,c),r=r.concat(c.includePolicies)}const d=[];for(const h of t.values())d.push(h);return d}voCustomSort(e){for(let t=0;t{let e=null;i._refCount++;const t=(0,nt.x)(s,void 0,void 0,void 0,()=>{if(!i||i._refCount<=0||0<--i._refCount)return void(e=null);const r=i._connection,d=e;e=null,r&&(!d||r===d)&&r.unsubscribe(),s.unsubscribe()});i.subscribe(t),t.closed||(e=i.connect())})}class nc extends ln.y{constructor(s,e){super(),this.source=s,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,(0,Pi.A)(s)&&(this.lift=s.lift)}_subscribe(s){return this.getSubject().subscribe(s)}getSubject(){const s=this._subject;return(!s||s.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:s}=this;this._subject=this._connection=null,s?.unsubscribe()}connect(){let s=this._connection;if(!s){s=this._connection=new Rt.w0;const e=this.getSubject();s.add(this.source.subscribe((0,nt.x)(e,void 0,()=>{this._teardown(),e.complete()},t=>{this._teardown(),e.error(t)},()=>this._teardown()))),s.closed&&(this._connection=null,s=Rt.w0.EMPTY)}return s}refCount(){return Qu()(this)}}function Zt(...i){const s=(0,en.yG)(i);return(0,Pi.e)((e,t)=>{(s?(0,Ui.z)(i,e,s):(0,Ui.z)(i,e)).subscribe(t)})}var gi=E(5577),jn=E(590),nn=E(8505),Ri=E(262);function Ks(i,s,e,t,r){return(d,h)=>{let c=e,o=s,a=0;d.subscribe((0,nt.x)(h,l=>{const u=a++;o=c?i(o,l,u):(c=!0,l),t&&h.next(o)},r&&(()=>{c&&h.next(o),h.complete()})))}}function Sr(i,s){return(0,Pi.e)(Ks(i,s,arguments.length>=2,!0))}function hn(i){return i<=0?()=>Pn.E:(0,Pi.e)((s,e)=>{let t=[];s.subscribe((0,nt.x)(e,r=>{t.push(r),i{for(const r of t)e.next(r);e.complete()},void 0,()=>{t=null}))})}var Ku=E(8068),bd=E(6590),wd=E(4671);function ic(i,s){const e=arguments.length>=2;return t=>t.pipe(i?(0,Ce.h)((r,d)=>i(r,d,t)):wd.y,hn(1),e?(0,bd.d)(s):(0,Ku.T)(()=>new xr.K))}function rc(i,s=!1){return(0,Pi.e)((e,t)=>{let r=0;e.subscribe((0,nt.x)(t,d=>{const h=i(d,r++);(h||s)&&t.next(d),!h&&t.complete()}))})}var ac=E(9718);function Mr(i){return(0,Pi.e)((s,e)=>{try{s.subscribe(e)}finally{e.add(i)}})}var sc=E(8189);const It="primary";class yd{constructor(s){this.params=s||{}}has(s){return Object.prototype.hasOwnProperty.call(this.params,s)}get(s){if(this.has(s)){const e=this.params[s];return Array.isArray(e)?e[0]:e}return null}getAll(s){if(this.has(s)){const e=this.params[s];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function zr(i){return new yd(i)}function Fo(i,s,e){const t=e.path.split("/");if(t.length>i.length||"full"===e.pathMatch&&(s.hasChildren()||t.lengtht[d]===r)}return i===s}function Xu(i){return Array.prototype.concat.apply([],i)}function lc(i){return i.length>0?i[i.length-1]:null}function gn(i,s){for(const e in i)i.hasOwnProperty(e)&&s(i[e],e)}function Qt(i){return(0,n.CqO)(i)?i:(0,n.QGY)(i)?(0,lt.D)(Promise.resolve(i)):(0,xe.of)(i)}const eh={exact:function qo(i,s,e){if(!ms(i.segments,s.segments)||!Wo(i.segments,s.segments,e)||i.numberOfChildren!==s.numberOfChildren)return!1;for(const t in s.children)if(!i.children[t]||!qo(i.children[t],s.children[t],e))return!1;return!0},subset:zo},th={exact:function uf(i,s){return Er(i,s)},subset:function dc(i,s){return Object.keys(s).length<=Object.keys(i).length&&Object.keys(s).every(e=>Yo(i[e],s[e]))},ignored:()=>!0};function nh(i,s,e){return eh[e.paths](i.root,s.root,e.matrixParams)&&th[e.queryParams](i.queryParams,s.queryParams)&&!("exact"===e.fragment&&i.fragment!==s.fragment)}function zo(i,s,e){return Go(i,s,s.segments,e)}function Go(i,s,e,t){if(i.segments.length>e.length){const r=i.segments.slice(0,e.length);return!(!ms(r,e)||s.hasChildren()||!Wo(r,e,t))}if(i.segments.length===e.length){if(!ms(i.segments,e)||!Wo(i.segments,e,t))return!1;for(const r in s.children)if(!i.children[r]||!zo(i.children[r],s.children[r],t))return!1;return!0}{const r=e.slice(0,i.segments.length),d=e.slice(i.segments.length);return!!(ms(i.segments,r)&&Wo(i.segments,r,t)&&i.children[It])&&Go(i.children[It],s,d,t)}}function Wo(i,s,e){return s.every((t,r)=>th[e](i[r].parameters,t.parameters))}class fs{constructor(s,e,t){this.root=s,this.queryParams=e,this.fragment=t}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=zr(this.queryParams)),this._queryParamMap}toString(){return hf.serialize(this)}}class dt{constructor(s,e){this.segments=s,this.children=e,this.parent=null,gn(e,(t,r)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return uc(this)}}class ki{constructor(s,e){this.path=s,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=zr(this.parameters)),this._parameterMap}toString(){return gs(this)}}function ms(i,s){return i.length===s.length&&i.every((e,t)=>e.path===s[t].path)}let $o=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:function(){return new Cd},providedIn:"root"}),i})();class Cd{parse(s){const e=new Gr(s);return new fs(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(s){const e=`/${hc(s.root,!0)}`,t=function to(i){const s=Object.keys(i).map(e=>{const t=i[e];return Array.isArray(t)?t.map(r=>`${Zo(e)}=${Zo(r)}`).join("&"):`${Zo(e)}=${Zo(t)}`}).filter(e=>!!e);return s.length?`?${s.join("&")}`:""}(s.queryParams);return`${e}${t}${"string"==typeof s.fragment?`#${function rh(i){return encodeURI(i)}(s.fragment)}`:""}`}}const hf=new Cd;function uc(i){return i.segments.map(s=>gs(s)).join("/")}function hc(i,s){if(!i.hasChildren())return uc(i);if(s){const e=i.children[It]?hc(i.children[It],!1):"",t=[];return gn(i.children,(r,d)=>{d!==It&&t.push(`${d}:${hc(r,!1)}`)}),t.length>0?`${e}(${t.join("//")})`:e}{const e=function Xs(i,s){let e=[];return gn(i.children,(t,r)=>{r===It&&(e=e.concat(s(t,r)))}),gn(i.children,(t,r)=>{r!==It&&(e=e.concat(s(t,r)))}),e}(i,(t,r)=>r===It?[hc(i.children[It],!1)]:[`${r}:${hc(t,!1)}`]);return 1===Object.keys(i.children).length&&null!=i.children[It]?`${uc(i)}/${e[0]}`:`${uc(i)}/(${e.join("//")})`}}function Jo(i){return encodeURIComponent(i).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Zo(i){return Jo(i).replace(/%3B/gi,";")}function eo(i){return Jo(i).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Qo(i){return decodeURIComponent(i)}function Ad(i){return Qo(i.replace(/\+/g,"%20"))}function gs(i){return`${eo(i.path)}${function pf(i){return Object.keys(i).map(s=>`;${eo(s)}=${eo(i[s])}`).join("")}(i.parameters)}`}const vd=/^[^\/()?;=#]+/;function _s(i){const s=i.match(vd);return s?s[0]:""}const C_=/^[^=?&#]+/,Ko=/^[^&#]+/;class Gr{constructor(s){this.url=s,this.remaining=s}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new dt([],{}):new dt([],this.parseChildren())}parseQueryParams(){const s={};if(this.consumeOptional("?"))do{this.parseQueryParam(s)}while(this.consumeOptional("&"));return s}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const s=[];for(this.peekStartsWith("(")||s.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),s.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let t={};return this.peekStartsWith("(")&&(t=this.parseParens(!1)),(s.length>0||Object.keys(e).length>0)&&(t[It]=new dt(s,e)),t}parseSegment(){const s=_s(this.remaining);if(""===s&&this.peekStartsWith(";"))throw new n.vHH(4009,!1);return this.capture(s),new ki(Qo(s),this.parseMatrixParams())}parseMatrixParams(){const s={};for(;this.consumeOptional(";");)this.parseParam(s);return s}parseParam(s){const e=_s(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const r=_s(this.remaining);r&&(t=r,this.capture(t))}s[Qo(e)]=Qo(t)}parseQueryParam(s){const e=function ah(i){const s=i.match(C_);return s?s[0]:""}(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const h=function ff(i){const s=i.match(Ko);return s?s[0]:""}(this.remaining);h&&(t=h,this.capture(t))}const r=Ad(e),d=Ad(t);if(s.hasOwnProperty(r)){let h=s[r];Array.isArray(h)||(h=[h],s[r]=h),h.push(d)}else s[r]=d}parseParens(s){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const t=_s(this.remaining),r=this.remaining[t.length];if("/"!==r&&")"!==r&&";"!==r)throw new n.vHH(4010,!1);let d;t.indexOf(":")>-1?(d=t.slice(0,t.indexOf(":")),this.capture(d),this.capture(":")):s&&(d=It);const h=this.parseChildren();e[d]=1===Object.keys(h).length?h[It]:new dt([],h),this.consumeOptional("//")}return e}peekStartsWith(s){return this.remaining.startsWith(s)}consumeOptional(s){return!!this.peekStartsWith(s)&&(this.remaining=this.remaining.substring(s.length),!0)}capture(s){if(!this.consumeOptional(s))throw new n.vHH(4011,!1)}}function Td(i){return i.segments.length>0?new dt([],{[It]:i}):i}function ja(i){const s={};for(const t of Object.keys(i.children)){const d=ja(i.children[t]);(d.segments.length>0||d.hasChildren())&&(s[t]=d)}return function xd(i){if(1===i.numberOfChildren&&i.children[It]){const s=i.children[It];return new dt(i.segments.concat(s.segments),s.children)}return i}(new dt(i.segments,s))}function fa(i){return i instanceof fs}function Ed(i,s,e,t,r){if(0===e.length)return ga(s.root,s.root,s.root,t,r);const d=function Dd(i){if("string"==typeof i[0]&&1===i.length&&"/"===i[0])return new Hr(!0,0,i);let s=0,e=!1;const t=i.reduce((r,d,h)=>{if("object"==typeof d&&null!=d){if(d.outlets){const c={};return gn(d.outlets,(o,a)=>{c[a]="string"==typeof o?o.split("/"):o}),[...r,{outlets:c}]}if(d.segmentPath)return[...r,d.segmentPath]}return"string"!=typeof d?[...r,d]:0===h?(d.split("/").forEach((c,o)=>{0==o&&"."===c||(0==o&&""===c?e=!0:".."===c?s++:""!=c&&r.push(c))}),r):[...r,d]},[]);return new Hr(e,s,t)}(e);return d.toRoot()?ga(s.root,s.root,new dt([],{}),t,r):function h(o){const a=function ro(i,s,e,t){if(i.isAbsolute)return new Ua(s.root,!0,0);if(-1===t)return new Ua(e,e===s.root,0);return function lh(i,s,e){let t=i,r=s,d=e;for(;d>r;){if(d-=r,t=t.parent,!t)throw new n.vHH(4005,!1);r=t.segments.length}return new Ua(t,!1,r-d)}(e,t+(ma(i.commands[0])?0:1),i.numberOfDoubleDots)}(d,s,i.snapshot?._urlSegment,o),l=a.processChildren?el(a.segmentGroup,a.index,d.commands):Xo(a.segmentGroup,a.index,d.commands);return ga(s.root,a.segmentGroup,l,t,r)}(i.snapshot?._lastPathIndex)}function ma(i){return"object"==typeof i&&null!=i&&!i.outlets&&!i.segmentPath}function Dr(i){return"object"==typeof i&&null!=i&&i.outlets}function ga(i,s,e,t,r){let h,d={};t&&gn(t,(o,a)=>{d[a]=Array.isArray(o)?o.map(l=>`${l}`):`${o}`}),h=i===s?e:io(i,s,e);const c=Td(ja(h));return new fs(c,d,r)}function io(i,s,e){const t={};return gn(i.children,(r,d)=>{t[d]=r===s?e:io(r,s,e)}),new dt(i.segments,t)}class Hr{constructor(s,e,t){if(this.isAbsolute=s,this.numberOfDoubleDots=e,this.commands=t,s&&t.length>0&&ma(t[0]))throw new n.vHH(4003,!1);const r=t.find(Dr);if(r&&r!==lc(t))throw new n.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Ua{constructor(s,e,t){this.segmentGroup=s,this.processChildren=e,this.index=t}}function Xo(i,s,e){if(i||(i=new dt([],{})),0===i.segments.length&&i.hasChildren())return el(i,s,e);const t=function dh(i,s,e){let t=0,r=s;const d={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return d;const h=i.segments[r],c=e[t];if(Dr(c))break;const o=`${c}`,a=t0&&void 0===o)break;if(o&&a&&"object"==typeof a&&void 0===a.outlets){if(!ws(o,a,h))return d;t+=2}else{if(!ws(o,{},h))return d;t++}r++}return{match:!0,pathIndex:r,commandIndex:t}}(i,s,e),r=e.slice(t.commandIndex);if(t.match&&t.pathIndex{"string"==typeof d&&(d=[d]),null!==d&&(r[h]=Xo(i.children[h],s,d))}),gn(i.children,(d,h)=>{void 0===t[h]&&(r[h]=d)}),new dt(i.segments,r)}}function tl(i,s,e){const t=i.segments.slice(0,s);let r=0;for(;r{"string"==typeof e&&(e=[e]),null!==e&&(s[t]=tl(new dt([],{}),0,e))}),s}function bs(i){const s={};return gn(i,(e,t)=>s[t]=`${e}`),s}function ws(i,s,e){return i==e.path&&Er(s,e.parameters)}class Wr{constructor(s,e){this.id=s,this.url=e}}class nl extends Wr{constructor(s,e,t="imperative",r=null){super(s,e),this.type=0,this.navigationTrigger=t,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Ni extends Wr{constructor(s,e,t){super(s,e),this.urlAfterRedirects=t,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Hd extends Wr{constructor(s,e,t,r){super(s,e),this.reason=t,this.code=r,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class uh extends Wr{constructor(s,e,t,r){super(s,e),this.error=t,this.target=r,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class pn extends Wr{constructor(s,e,t,r){super(s,e),this.urlAfterRedirects=t,this.state=r,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class A_ extends Wr{constructor(s,e,t,r){super(s,e),this.urlAfterRedirects=t,this.state=r,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class v_ extends Wr{constructor(s,e,t,r,d){super(s,e),this.urlAfterRedirects=t,this.state=r,this.shouldActivate=d,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class T_ extends Wr{constructor(s,e,t,r){super(s,e),this.urlAfterRedirects=t,this.state=r,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class x_ extends Wr{constructor(s,e,t,r){super(s,e),this.urlAfterRedirects=t,this.state=r,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class S_{constructor(s){this.route=s,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class hh{constructor(s){this.route=s,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class M_{constructor(s){this.snapshot=s,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class il{constructor(s){this.snapshot=s,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class E_{constructor(s){this.snapshot=s,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ph{constructor(s){this.snapshot=s,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Rn{constructor(s,e,t){this.routerEvent=s,this.position=e,this.anchor=t,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class so{constructor(s){this._root=s}get root(){return this._root.value}parent(s){const e=this.pathFromRoot(s);return e.length>1?e[e.length-2]:null}children(s){const e=fh(s,this._root);return e?e.children.map(t=>t.value):[]}firstChild(s){const e=fh(s,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(s){const e=Rd(s,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==s)}pathFromRoot(s){return Rd(s,this._root).map(e=>e.value)}}function fh(i,s){if(i===s.value)return s;for(const e of s.children){const t=fh(i,e);if(t)return t}return null}function Rd(i,s){if(i===s.value)return[s];for(const e of s.children){const t=Rd(i,e);if(t.length)return t.unshift(s),t}return[]}class zn{constructor(s,e){this.value=s,this.children=e}toString(){return`TreeNode(${this.value})`}}function Fi(i){const s={};return i&&i.children.forEach(e=>s[e.value.outlet]=e),s}class pc extends so{constructor(s,e){super(s),this.snapshot=e,sl(this,s)}toString(){return this.snapshot.toString()}}function rl(i,s){const e=function al(i,s){const h=new kd([],{},{},"",{},It,s,null,i.root,-1,{});return new Na("",new zn(h,[]))}(i,s),t=new Hn([new ki("",{})]),r=new Hn({}),d=new Hn({}),h=new Hn({}),c=new Hn(""),o=new Li(t,r,h,c,d,It,s,e.root);return o.snapshot=e.root,new pc(new zn(o,[]),e)}class Li{constructor(s,e,t,r,d,h,c,o){this.url=s,this.params=e,this.queryParams=t,this.fragment=r,this.data=d,this.outlet=h,this.component=c,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((0,_t.U)(s=>zr(s)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,_t.U)(s=>zr(s)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function mh(i,s="emptyOnly"){const e=i.pathFromRoot;let t=0;if("always"!==s)for(t=e.length-1;t>=1;){const r=e[t],d=e[t-1];if(r.routeConfig&&""===r.routeConfig.path)t--;else{if(d.component)break;t--}}return function mf(i){return i.reduce((s,e)=>({params:{...s.params,...e.params},data:{...s.data,...e.data},resolve:{...e.data,...s.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(t))}class kd{constructor(s,e,t,r,d,h,c,o,a,l,u,p){this.url=s,this.params=e,this.queryParams=t,this.fragment=r,this.data=d,this.outlet=h,this.component=c,this.routeConfig=o,this._urlSegment=a,this._lastPathIndex=l,this._correctedLastPathIndex=p??l,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=zr(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=zr(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Na extends so{constructor(s,e){super(e),this.url=s,sl(this,e)}toString(){return Yi(this._root)}}function sl(i,s){s.value._routerState=i,s.children.forEach(e=>sl(i,e))}function Yi(i){const s=i.children.length>0?` { ${i.children.map(Yi).join(", ")} } `:"";return`${i.value}${s}`}function ol(i){if(i.snapshot){const s=i.snapshot,e=i._futureSnapshot;i.snapshot=e,Er(s.queryParams,e.queryParams)||i.queryParams.next(e.queryParams),s.fragment!==e.fragment&&i.fragment.next(e.fragment),Er(s.params,e.params)||i.params.next(e.params),function oc(i,s){if(i.length!==s.length)return!1;for(let e=0;eEr(e.parameters,s[t].parameters))}(i.url,s.url);return e&&!(!i.parent!=!s.parent)&&(!i.parent||Fa(i.parent,s.parent))}function oo(i,s,e){if(e&&i.shouldReuseRoute(s.value,e.value.snapshot)){const t=e.value;t._futureSnapshot=s.value;const r=function gf(i,s,e){return s.children.map(t=>{for(const r of e.children)if(i.shouldReuseRoute(t.value,r.value.snapshot))return oo(i,t,r);return oo(i,t)})}(i,s,e);return new zn(t,r)}{if(i.shouldAttach(s.value)){const d=i.retrieve(s.value);if(null!==d){const h=d.route;return h.value._futureSnapshot=s.value,h.children=s.children.map(c=>oo(i,c)),h}}const t=function gh(i){return new Li(new Hn(i.url),new Hn(i.params),new Hn(i.queryParams),new Hn(i.fragment),new Hn(i.data),i.outlet,i.component,i)}(s.value),r=s.children.map(d=>oo(i,d));return new zn(t,r)}}const Ut="ngNavigationCancelingError";function ll(i,s){const{redirectTo:e,navigationBehaviorOptions:t}=fa(s)?{redirectTo:s,navigationBehaviorOptions:void 0}:s,r=Ld(!1,0,s);return r.url=e,r.navigationBehaviorOptions=t,r}function Ld(i,s,e){const t=new Error("NavigationCancelingError: "+(i||""));return t[Ut]=!0,t.cancellationCode=s,e&&(t.url=e),t}function fc(i){return mc(i)&&fa(i.url)}function mc(i){return i&&i[Ut]}class gc{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new _c,this.attachRef=null}}let _c=(()=>{class i{constructor(){this.contexts=new Map}onChildOutletCreated(e,t){const r=this.getOrCreateContext(e);r.outlet=t,this.contexts.set(e,r)}onChildOutletDestroyed(e){const t=this.getContext(e);t&&(t.outlet=null,t.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new gc,this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const Ya=!1;let lo=(()=>{class i{constructor(e,t,r,d,h){this.parentContexts=e,this.location=t,this.changeDetector=d,this.environmentInjector=h,this.activated=null,this._activatedRoute=null,this.activateEvents=new n.vpe,this.deactivateEvents=new n.vpe,this.attachEvents=new n.vpe,this.detachEvents=new n.vpe,this.name=r||It,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.getContext(this.name)?.outlet===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new n.vHH(4012,Ya);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new n.vHH(4012,Ya);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new n.vHH(4012,Ya);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new n.vHH(4013,Ya);this._activatedRoute=e;const r=this.location,h=e._futureSnapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,o=new hr(e,c,r.injector);if(t&&function _f(i){return!!i.resolveComponentFactory}(t)){const a=t.resolveComponentFactory(h);this.activated=r.createComponent(a,r.length,o)}else this.activated=r.createComponent(h,{index:r.length,injector:o,environmentInjector:t??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(_c),n.Y36(n.s_b),n.$8M("name"),n.Y36(n.sBO),n.Y36(n.lqb))},i.\u0275dir=n.lG2({type:i,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),i})();class hr{constructor(s,e,t){this.route=s,this.childContexts=e,this.parent=t}get(s,e){return s===Li?this.route:s===_c?this.childContexts:this.parent.get(s,e)}}let Id=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&n._UZ(0,"router-outlet")},dependencies:[lo],encapsulation:2}),i})();function _h(i,s){return i.providers&&!i._injector&&(i._injector=(0,n.MMx)(i.providers,s,`Route: ${i.path}`)),i._injector??s}function ys(i){const s=i.children&&i.children.map(ys),e=s?{...i,children:s}:{...i};return!e.component&&!e.loadComponent&&(s||e.loadChildren)&&e.outlet&&e.outlet!==It&&(e.component=Id),e}function pr(i){return i.outlet||It}function yh(i,s){const e=i.filter(t=>pr(t)===s);return e.push(...i.filter(t=>pr(t)!==s)),e}function Ch(i){if(!i)return null;if(i.routeConfig?._injector)return i.routeConfig._injector;for(let s=i.parent;s;s=s.parent){const e=s.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class ul{constructor(s,e,t,r){this.routeReuseStrategy=s,this.futureState=e,this.currState=t,this.forwardEvent=r}activate(s){const e=this.futureState._root,t=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,t,s),ol(this.futureState.root),this.activateChildRoutes(e,t,s)}deactivateChildRoutes(s,e,t){const r=Fi(e);s.children.forEach(d=>{const h=d.value.outlet;this.deactivateRoutes(d,r[h],t),delete r[h]}),gn(r,(d,h)=>{this.deactivateRouteAndItsChildren(d,t)})}deactivateRoutes(s,e,t){const r=s.value,d=e?e.value:null;if(r===d)if(r.component){const h=t.getContext(r.outlet);h&&this.deactivateChildRoutes(s,e,h.children)}else this.deactivateChildRoutes(s,e,t);else d&&this.deactivateRouteAndItsChildren(e,t)}deactivateRouteAndItsChildren(s,e){s.value.component&&this.routeReuseStrategy.shouldDetach(s.value.snapshot)?this.detachAndStoreRouteSubtree(s,e):this.deactivateRouteAndOutlet(s,e)}detachAndStoreRouteSubtree(s,e){const t=e.getContext(s.value.outlet),r=t&&s.value.component?t.children:e,d=Fi(s);for(const h of Object.keys(d))this.deactivateRouteAndItsChildren(d[h],r);if(t&&t.outlet){const h=t.outlet.detach(),c=t.children.onOutletDeactivated();this.routeReuseStrategy.store(s.value.snapshot,{componentRef:h,route:s,contexts:c})}}deactivateRouteAndOutlet(s,e){const t=e.getContext(s.value.outlet),r=t&&s.value.component?t.children:e,d=Fi(s);for(const h of Object.keys(d))this.deactivateRouteAndItsChildren(d[h],r);t&&t.outlet&&(t.outlet.deactivate(),t.children.onOutletDeactivated(),t.attachRef=null,t.resolver=null,t.route=null)}activateChildRoutes(s,e,t){const r=Fi(e);s.children.forEach(d=>{this.activateRoutes(d,r[d.value.outlet],t),this.forwardEvent(new ph(d.value.snapshot))}),s.children.length&&this.forwardEvent(new il(s.value.snapshot))}activateRoutes(s,e,t){const r=s.value,d=e?e.value:null;if(ol(r),r===d)if(r.component){const h=t.getOrCreateContext(r.outlet);this.activateChildRoutes(s,e,h.children)}else this.activateChildRoutes(s,e,t);else if(r.component){const h=t.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const c=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),h.children.onOutletReAttached(c.contexts),h.attachRef=c.componentRef,h.route=c.route.value,h.outlet&&h.outlet.attach(c.componentRef,c.route.value),ol(c.route.value),this.activateChildRoutes(s,null,h.children)}else{const c=Ch(r.snapshot),o=c?.get(n._Vd)??null;h.attachRef=null,h.route=r,h.resolver=o,h.injector=c,h.outlet&&h.outlet.activateWith(r,h.injector),this.activateChildRoutes(s,null,h.children)}}else this.activateChildRoutes(s,null,t)}}class Bd{constructor(s){this.path=s,this.route=this.path[this.path.length-1]}}class qa{constructor(s,e){this.component=s,this.route=e}}function yf(i,s,e){const t=i._root;return qi(t,s?s._root:null,e,[t.value])}function za(i,s,e){return(Ch(s)??e).get(i)}function qi(i,s,e,t,r={canDeactivateChecks:[],canActivateChecks:[]}){const d=Fi(s);return i.children.forEach(h=>{(function vh(i,s,e,t,r={canDeactivateChecks:[],canActivateChecks:[]}){const d=i.value,h=s?s.value:null,c=e?e.getContext(i.value.outlet):null;if(h&&d.routeConfig===h.routeConfig){const o=function Cf(i,s,e){if("function"==typeof e)return e(i,s);switch(e){case"pathParamsChange":return!ms(i.url,s.url);case"pathParamsOrQueryParamsChange":return!ms(i.url,s.url)||!Er(i.queryParams,s.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Fa(i,s)||!Er(i.queryParams,s.queryParams);default:return!Fa(i,s)}}(h,d,d.routeConfig.runGuardsAndResolvers);o?r.canActivateChecks.push(new Bd(t)):(d.data=h.data,d._resolvedData=h._resolvedData),qi(i,s,d.component?c?c.children:null:e,t,r),o&&c&&c.outlet&&c.outlet.isActivated&&r.canDeactivateChecks.push(new qa(c.outlet.component,h))}else h&&hl(s,c,r),r.canActivateChecks.push(new Bd(t)),qi(i,null,d.component?c?c.children:null:e,t,r)})(h,d[h.value.outlet],e,t.concat([h.value]),r),delete d[h.value.outlet]}),gn(d,(h,c)=>hl(h,e.getContext(c),r)),r}function hl(i,s,e){const t=Fi(i),r=i.value;gn(t,(d,h)=>{hl(d,r.component?s?s.children.getContext(h):null:s,e)}),e.canDeactivateChecks.push(new qa(r.component&&s&&s.outlet&&s.outlet.isActivated?s.outlet.component:null,r))}function $r(i){return"function"==typeof i}function Vd(i){return i instanceof xr.K||"EmptyError"===i?.name}const Cs=Symbol("INITIAL_VALUE");function As(){return(0,bn.w)(i=>(0,un.a)(i.map(s=>s.pipe((0,rt.q)(1),Zt(Cs)))).pipe((0,_t.U)(s=>{for(const e of s)if(!0!==e){if(e===Cs)return Cs;if(!1===e||e instanceof fs)return e}return!0}),(0,Ce.h)(s=>s!==Cs),(0,rt.q)(1)))}function ce(i){return(0,ps.z)((0,nn.b)(s=>{if(fa(s))throw ll(0,s)}),(0,_t.U)(s=>!0===s))}const ct={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function kt(i,s,e,t,r){const d=rn(i,s,e);return d.matched?function Ae(i,s,e,t){const r=s.canMatch;if(!r||0===r.length)return(0,xe.of)(!0);const d=r.map(h=>{const c=i.get(h),o=function fl(i){return i&&$r(i.canMatch)}(c)?c.canMatch(s,e):c(s,e);return Qt(o)});return(0,xe.of)(d).pipe(As(),ce())}(t=_h(s,t),s,e).pipe((0,_t.U)(h=>!0===h?d:{...ct})):(0,xe.of)(d)}function rn(i,s,e){if(""===s.path)return"full"===s.pathMatch&&(i.hasChildren()||e.length>0)?{...ct}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const r=(s.matcher||Fo)(e,i,s);if(!r)return{...ct};const d={};gn(r.posParams,(c,o)=>{d[o]=c.path});const h=r.consumed.length>0?{...d,...r.consumed[r.consumed.length-1].parameters}:d;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:h,positionalParamSegments:r.posParams??{}}}function Gn(i,s,e,t,r="corrected"){if(e.length>0&&function P_(i,s,e){return e.some(t=>Ga(i,s,t)&&pr(t)!==It)}(i,e,t)){const h=new dt(s,function ba(i,s,e,t){const r={};r[It]=t,t._sourceSegment=i,t._segmentIndexShift=s.length;for(const d of e)if(""===d.path&&pr(d)!==It){const h=new dt([],{});h._sourceSegment=i,h._segmentIndexShift=s.length,r[pr(d)]=h}return r}(i,s,t,new dt(e,i.children)));return h._sourceSegment=i,h._segmentIndexShift=s.length,{segmentGroup:h,slicedSegments:[]}}if(0===e.length&&function R_(i,s,e){return e.some(t=>Ga(i,s,t))}(i,e,t)){const h=new dt(i.segments,function Rr(i,s,e,t,r,d){const h={};for(const c of t)if(Ga(i,e,c)&&!r[pr(c)]){const o=new dt([],{});o._sourceSegment=i,o._segmentIndexShift="legacy"===d?i.segments.length:s.length,h[pr(c)]=o}return{...r,...h}}(i,s,e,t,i.children,r));return h._sourceSegment=i,h._segmentIndexShift=s.length,{segmentGroup:h,slicedSegments:e}}const d=new dt(i.segments,i.children);return d._sourceSegment=i,d._segmentIndexShift=s.length,{segmentGroup:d,slicedSegments:e}}function Ga(i,s,e){return(!(i.hasChildren()||s.length>0)||"full"!==e.pathMatch)&&""===e.path}function k_(i,s,e,t){return!!(pr(i)===t||t!==It&&Ga(s,e,i))&&("**"===i.path||rn(s,i,e).matched)}function L_(i,s,e){return 0===s.length&&!i.children[e]}const xh=!1;class Sh{constructor(s){this.segmentGroup=s||null}}class I_{constructor(s){this.urlTree=s}}function kr(i){return(0,mi._)(new Sh(i))}function ml(i){return(0,mi._)(new I_(i))}class iA{constructor(s,e,t,r,d){this.injector=s,this.configLoader=e,this.urlSerializer=t,this.urlTree=r,this.config=d,this.allowRedirects=!0}apply(){const s=Gn(this.urlTree.root,[],[],this.config).segmentGroup,e=new dt(s.segments,s.children);return this.expandSegmentGroup(this.injector,this.config,e,It).pipe((0,_t.U)(d=>this.createUrlTree(ja(d),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,Ri.K)(d=>{if(d instanceof I_)return this.allowRedirects=!1,this.match(d.urlTree);throw d instanceof Sh?this.noMatchError(d):d}))}match(s){return this.expandSegmentGroup(this.injector,this.config,s.root,It).pipe((0,_t.U)(r=>this.createUrlTree(ja(r),s.queryParams,s.fragment))).pipe((0,Ri.K)(r=>{throw r instanceof Sh?this.noMatchError(r):r}))}noMatchError(s){return new n.vHH(4002,xh)}createUrlTree(s,e,t){const r=Td(s);return new fs(r,e,t)}expandSegmentGroup(s,e,t,r){return 0===t.segments.length&&t.hasChildren()?this.expandChildren(s,e,t).pipe((0,_t.U)(d=>new dt([],d))):this.expandSegment(s,t,e,t.segments,r,!0)}expandChildren(s,e,t){const r=[];for(const d of Object.keys(t.children))"primary"===d?r.unshift(d):r.push(d);return(0,lt.D)(r).pipe((0,Tr.b)(d=>{const h=t.children[d],c=yh(e,d);return this.expandSegmentGroup(s,c,h,d).pipe((0,_t.U)(o=>({segment:o,outlet:d})))}),Sr((d,h)=>(d[h.outlet]=h.segment,d),{}),ic())}expandSegment(s,e,t,r,d,h){return(0,lt.D)(t).pipe((0,Tr.b)(c=>this.expandSegmentAgainstRoute(s,e,t,c,r,d,h).pipe((0,Ri.K)(a=>{if(a instanceof Sh)return(0,xe.of)(null);throw a}))),(0,jn.P)(c=>!!c),(0,Ri.K)((c,o)=>{if(Vd(c))return L_(e,r,d)?(0,xe.of)(new dt([],{})):kr(e);throw c}))}expandSegmentAgainstRoute(s,e,t,r,d,h,c){return k_(r,e,d,h)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(s,e,r,d,h):c&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(s,e,t,r,d,h):kr(e):kr(e)}expandSegmentAgainstRouteUsingRedirect(s,e,t,r,d,h){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(s,t,r,h):this.expandRegularSegmentAgainstRouteUsingRedirect(s,e,t,r,d,h)}expandWildCardWithParamsAgainstRouteUsingRedirect(s,e,t,r){const d=this.applyRedirectCommands([],t.redirectTo,{});return t.redirectTo.startsWith("/")?ml(d):this.lineralizeSegments(t,d).pipe((0,gi.z)(h=>{const c=new dt(h,{});return this.expandSegment(s,c,e,h,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(s,e,t,r,d,h){const{matched:c,consumedSegments:o,remainingSegments:a,positionalParamSegments:l}=rn(e,r,d);if(!c)return kr(e);const u=this.applyRedirectCommands(o,r.redirectTo,l);return r.redirectTo.startsWith("/")?ml(u):this.lineralizeSegments(r,u).pipe((0,gi.z)(p=>this.expandSegment(s,e,t,p.concat(a),h,!1)))}matchSegmentAgainstRoute(s,e,t,r,d){return"**"===t.path?(s=_h(t,s),t.loadChildren?(t._loadedRoutes?(0,xe.of)({routes:t._loadedRoutes,injector:t._loadedInjector}):this.configLoader.loadChildren(s,t)).pipe((0,_t.U)(c=>(t._loadedRoutes=c.routes,t._loadedInjector=c.injector,new dt(r,{})))):(0,xe.of)(new dt(r,{}))):kt(e,t,r,s).pipe((0,bn.w)(({matched:h,consumedSegments:c,remainingSegments:o})=>h?this.getChildConfig(s=t._injector??s,t,r).pipe((0,gi.z)(l=>{const u=l.injector??s,p=l.routes,{segmentGroup:m,slicedSegments:g}=Gn(e,c,o,p),f=new dt(m.segments,m.children);if(0===g.length&&f.hasChildren())return this.expandChildren(u,p,f).pipe((0,_t.U)(Be=>new dt(c,Be)));if(0===p.length&&0===g.length)return(0,xe.of)(new dt(c,{}));const y=pr(t)===d;return this.expandSegment(u,f,p,g,y?It:d,!0).pipe((0,_t.U)(le=>new dt(c.concat(le.segments),le.children)))})):kr(e)))}getChildConfig(s,e,t){return e.children?(0,xe.of)({routes:e.children,injector:s}):e.loadChildren?void 0!==e._loadedRoutes?(0,xe.of)({routes:e._loadedRoutes,injector:e._loadedInjector}):function Q(i,s,e,t){const r=s.canLoad;if(void 0===r||0===r.length)return(0,xe.of)(!0);const d=r.map(h=>{const c=i.get(h),o=function Af(i){return i&&$r(i.canLoad)}(c)?c.canLoad(s,e):c(s,e);return Qt(o)});return(0,xe.of)(d).pipe(As(),ce())}(s,e,t).pipe((0,gi.z)(r=>r?this.configLoader.loadChildren(s,e).pipe((0,nn.b)(d=>{e._loadedRoutes=d.routes,e._loadedInjector=d.injector})):function tA(i){return(0,mi._)(Ld(xh,3))}())):(0,xe.of)({routes:[],injector:s})}lineralizeSegments(s,e){let t=[],r=e.root;for(;;){if(t=t.concat(r.segments),0===r.numberOfChildren)return(0,xe.of)(t);if(r.numberOfChildren>1||!r.children[It])return(0,mi._)(new n.vHH(4e3,xh));r=r.children[It]}}applyRedirectCommands(s,e,t){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),s,t)}applyRedirectCreateUrlTree(s,e,t,r){const d=this.createSegmentGroup(s,e.root,t,r);return new fs(d,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(s,e){const t={};return gn(s,(r,d)=>{if("string"==typeof r&&r.startsWith(":")){const c=r.substring(1);t[d]=e[c]}else t[d]=r}),t}createSegmentGroup(s,e,t,r){const d=this.createSegments(s,e.segments,t,r);let h={};return gn(e.children,(c,o)=>{h[o]=this.createSegmentGroup(s,c,t,r)}),new dt(d,h)}createSegments(s,e,t,r){return e.map(d=>d.path.startsWith(":")?this.findPosParam(s,d,r):this.findOrReturn(d,t))}findPosParam(s,e,t){const r=t[e.path.substring(1)];if(!r)throw new n.vHH(4001,xh);return r}findOrReturn(s,e){let t=0;for(const r of e){if(r.path===s.path)return e.splice(t),r;t++}return s}}class O_{}class oA{constructor(s,e,t,r,d,h,c,o){this.injector=s,this.rootComponentType=e,this.config=t,this.urlTree=r,this.url=d,this.paramsInheritanceStrategy=h,this.relativeLinkResolution=c,this.urlSerializer=o}recognize(){const s=Gn(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,s,It).pipe((0,_t.U)(e=>{if(null===e)return null;const t=new kd([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},It,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new zn(t,e),d=new Na(this.url,r);return this.inheritParamsAndData(d._root),d}))}inheritParamsAndData(s){const e=s.value,t=mh(e,this.paramsInheritanceStrategy);e.params=Object.freeze(t.params),e.data=Object.freeze(t.data),s.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(s,e,t,r){return 0===t.segments.length&&t.hasChildren()?this.processChildren(s,e,t):this.processSegment(s,e,t,t.segments,r)}processChildren(s,e,t){return(0,lt.D)(Object.keys(t.children)).pipe((0,Tr.b)(r=>{const d=t.children[r],h=yh(e,r);return this.processSegmentGroup(s,h,d,r)}),Sr((r,d)=>r&&d?(r.push(...d),r):null),rc(r=>null!==r),(0,bd.d)(null),ic(),(0,_t.U)(r=>{if(null===r)return null;const d=bc(r);return function lA(i){i.sort((s,e)=>s.value.outlet===It?-1:e.value.outlet===It?1:s.value.outlet.localeCompare(e.value.outlet))}(d),d}))}processSegment(s,e,t,r,d){return(0,lt.D)(e).pipe((0,Tr.b)(h=>this.processSegmentAgainstRoute(h._injector??s,h,t,r,d)),(0,jn.P)(h=>!!h),(0,Ri.K)(h=>{if(Vd(h))return L_(t,r,d)?(0,xe.of)([]):(0,xe.of)(null);throw h}))}processSegmentAgainstRoute(s,e,t,r,d){if(e.redirectTo||!k_(e,t,r,d))return(0,xe.of)(null);let h;if("**"===e.path){const c=r.length>0?lc(r).parameters:{},o=wc(t)+r.length,a=new kd(r,c,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,xf(e),pr(e),e.component??e._loadedComponent??null,e,wa(t),o,Sf(e),o);h=(0,xe.of)({snapshot:a,consumedSegments:[],remainingSegments:[]})}else h=kt(t,e,r,s).pipe((0,_t.U)(({matched:c,consumedSegments:o,remainingSegments:a,parameters:l})=>{if(!c)return null;const u=wc(t)+o.length;return{snapshot:new kd(o,l,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,xf(e),pr(e),e.component??e._loadedComponent??null,e,wa(t),u,Sf(e),u),consumedSegments:o,remainingSegments:a}}));return h.pipe((0,bn.w)(c=>{if(null===c)return(0,xe.of)(null);const{snapshot:o,consumedSegments:a,remainingSegments:l}=c;s=e._injector??s;const u=e._loadedInjector??s,p=function YS(i){return i.children?i.children:i.loadChildren?i._loadedRoutes:[]}(e),{segmentGroup:m,slicedSegments:g}=Gn(t,a,l,p.filter(y=>void 0===y.redirectTo),this.relativeLinkResolution);if(0===g.length&&m.hasChildren())return this.processChildren(u,p,m).pipe((0,_t.U)(y=>null===y?null:[new zn(o,y)]));if(0===p.length&&0===g.length)return(0,xe.of)([new zn(o,[])]);const f=pr(e)===d;return this.processSegment(u,p,m,g,f?It:d).pipe((0,_t.U)(y=>null===y?null:[new zn(o,y)]))}))}}function cA(i){const s=i.value.routeConfig;return s&&""===s.path&&void 0===s.redirectTo}function bc(i){const s=[],e=new Set;for(const t of i){if(!cA(t)){s.push(t);continue}const r=s.find(d=>t.value.routeConfig===d.value.routeConfig);void 0!==r?(r.children.push(...t.children),e.add(r)):s.push(t)}for(const t of e){const r=bc(t.children);s.push(new zn(t.value,r))}return s.filter(t=>!e.has(t))}function wa(i){let s=i;for(;s._sourceSegment;)s=s._sourceSegment;return s}function wc(i){let s=i,e=s._segmentIndexShift??0;for(;s._sourceSegment;)s=s._sourceSegment,e+=s._segmentIndexShift??0;return e-1}function xf(i){return i.data||{}}function Sf(i){return i.resolve||{}}const V_=Symbol("RouteTitle");function dA(i){return"string"==typeof i.title||null===i.title}function Eh(i){return(0,bn.w)(s=>{const e=i(s);return e?(0,lt.D)(e).pipe((0,_t.U)(()=>s)):(0,xe.of)(s)})}let j_=(()=>{class i{buildTitle(e){let t,r=e.root;for(;void 0!==r;)t=this.getResolvedTitleForRoute(r)??t,r=r.children.find(d=>d.outlet===It);return t}getResolvedTitleForRoute(e){return e.data[V_]}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:function(){return(0,n.f3M)(U_)},providedIn:"root"}),i})(),U_=(()=>{class i extends j_{constructor(e){super(),this.title=e}updateTitle(e){const t=this.buildTitle(e);void 0!==t&&this.title.setTitle(t)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(oe))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();class uA{}class N_ extends class hA{shouldDetach(s){return!1}store(s,e){}shouldAttach(s){return!1}retrieve(s){return null}shouldReuseRoute(s,e){return s.routeConfig===e.routeConfig}}{}const Hh=new n.OlP("",{providedIn:"root",factory:()=>({})}),Hf=new n.OlP("ROUTES");let Wn=(()=>{class i{constructor(e,t){this.injector=e,this.compiler=t,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return(0,xe.of)(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const t=Qt(e.loadComponent()).pipe((0,nn.b)(d=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=d}),Mr(()=>{this.componentLoaders.delete(e)})),r=new nc(t,()=>new Me.x).pipe(Qu());return this.componentLoaders.set(e,r),r}loadChildren(e,t){if(this.childrenLoaders.get(t))return this.childrenLoaders.get(t);if(t._loadedRoutes)return(0,xe.of)({routes:t._loadedRoutes,injector:t._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(t);const d=this.loadModuleFactoryOrRoutes(t.loadChildren).pipe((0,_t.U)(c=>{this.onLoadEndListener&&this.onLoadEndListener(t);let o,a,l=!1;Array.isArray(c)?a=c:(o=c.create(e).injector,a=Xu(o.get(Hf,[],n.XFs.Self|n.XFs.Optional)));return{routes:a.map(ys),injector:o}}),Mr(()=>{this.childrenLoaders.delete(t)})),h=new nc(d,()=>new Me.x).pipe(Qu());return this.childrenLoaders.set(t,h),h}loadModuleFactoryOrRoutes(e){return Qt(e()).pipe((0,gi.z)(t=>t instanceof n.YKP||Array.isArray(t)?(0,xe.of)(t):(0,lt.D)(this.compiler.compileModuleAsync(t))))}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(n.zs3),n.LFG(n.Sil))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();class F_{}class pA{shouldProcessUrl(s){return!0}extract(s){return s}merge(s,e){return s}}function Y_(i){throw i}function fA(i,s,e){return s.parse("/")}const mA={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},gA={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function q_(){const i=(0,n.f3M)($o),s=(0,n.f3M)(_c),e=(0,n.f3M)(x.Ye),t=(0,n.f3M)(n.zs3),r=(0,n.f3M)(n.Sil),d=(0,n.f3M)(Hf,{optional:!0})??[],h=(0,n.f3M)(Hh,{optional:!0})??{},c=(0,n.f3M)(U_),o=(0,n.f3M)(j_,{optional:!0}),a=(0,n.f3M)(F_,{optional:!0}),l=(0,n.f3M)(uA,{optional:!0}),u=new $n(null,i,s,e,t,r,Xu(d));return a&&(u.urlHandlingStrategy=a),l&&(u.routeReuseStrategy=l),u.titleStrategy=o??c,function _A(i,s){i.errorHandler&&(s.errorHandler=i.errorHandler),i.malformedUriErrorHandler&&(s.malformedUriErrorHandler=i.malformedUriErrorHandler),i.onSameUrlNavigation&&(s.onSameUrlNavigation=i.onSameUrlNavigation),i.paramsInheritanceStrategy&&(s.paramsInheritanceStrategy=i.paramsInheritanceStrategy),i.relativeLinkResolution&&(s.relativeLinkResolution=i.relativeLinkResolution),i.urlUpdateStrategy&&(s.urlUpdateStrategy=i.urlUpdateStrategy),i.canceledNavigationResolution&&(s.canceledNavigationResolution=i.canceledNavigationResolution)}(h,u),u}let $n=(()=>{class i{constructor(e,t,r,d,h,c,o){this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=r,this.location=d,this.config=o,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Me.x,this.errorHandler=Y_,this.malformedUriErrorHandler=fA,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>(0,xe.of)(void 0),this.urlHandlingStrategy=new pA,this.routeReuseStrategy=new N_,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=h.get(Wn),this.configLoader.onLoadEndListener=p=>this.triggerEvent(new hh(p)),this.configLoader.onLoadStartListener=p=>this.triggerEvent(new S_(p)),this.ngModule=h.get(n.h0i),this.console=h.get(n.c2e);const u=h.get(n.R0b);this.isNgZoneEnabled=u instanceof n.R0b&&n.R0b.isInAngularZone(),this.resetConfig(o),this.currentUrlTree=function df(){return new fs(new dt([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=rl(this.currentUrlTree,this.rootComponentType),this.transitions=new Hn({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){return this.location.getState()?.\u0275routerPageId}setupNavigations(e){const t=this.events;return e.pipe((0,Ce.h)(r=>0!==r.id),(0,_t.U)(r=>({...r,extractedUrl:this.urlHandlingStrategy.extract(r.rawUrl)})),(0,bn.w)(r=>{let d=!1,h=!1;return(0,xe.of)(r).pipe((0,nn.b)(c=>{this.currentNavigation={id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,bn.w)(c=>{const o=this.browserUrlTree.toString(),a=!this.navigated||c.extractedUrl.toString()!==o||o!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||a)&&this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return Cc(c.source)&&(this.browserUrlTree=c.extractedUrl),(0,xe.of)(c).pipe((0,bn.w)(u=>{const p=this.transitions.getValue();return t.next(new nl(u.id,this.serializeUrl(u.extractedUrl),u.source,u.restoredState)),p!==this.transitions.getValue()?Pn.E:Promise.resolve(u)}),function rA(i,s,e,t){return(0,bn.w)(r=>function nA(i,s,e,t,r){return new iA(i,s,e,t,r).apply()}(i,s,e,r.extractedUrl,t).pipe((0,_t.U)(d=>({...r,urlAfterRedirects:d}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,nn.b)(u=>{this.currentNavigation={...this.currentNavigation,finalUrl:u.urlAfterRedirects},r.urlAfterRedirects=u.urlAfterRedirects}),function qS(i,s,e,t,r,d){return(0,gi.z)(h=>function sA(i,s,e,t,r,d,h="emptyOnly",c="legacy"){return new oA(i,s,e,t,r,h,c,d).recognize().pipe((0,bn.w)(o=>null===o?function aA(i){return new ln.y(s=>s.error(i))}(new O_):(0,xe.of)(o)))}(i,s,e,h.urlAfterRedirects,t.serialize(h.urlAfterRedirects),t,r,d).pipe((0,_t.U)(c=>({...h,targetSnapshot:c}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,nn.b)(u=>{if(r.targetSnapshot=u.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!u.extras.skipLocationChange){const m=this.urlHandlingStrategy.merge(u.urlAfterRedirects,u.rawUrl);this.setBrowserUrl(m,u)}this.browserUrlTree=u.urlAfterRedirects}const p=new pn(u.id,this.serializeUrl(u.extractedUrl),this.serializeUrl(u.urlAfterRedirects),u.targetSnapshot);t.next(p)}));if(a&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:p,extractedUrl:m,source:g,restoredState:f,extras:y}=c,j=new nl(p,this.serializeUrl(m),g,f);t.next(j);const le=rl(m,this.rootComponentType).snapshot;return r={...c,targetSnapshot:le,urlAfterRedirects:m,extras:{...y,skipLocationChange:!1,replaceUrl:!1}},(0,xe.of)(r)}return this.rawUrlTree=c.rawUrl,c.resolve(null),Pn.E}),(0,nn.b)(c=>{const o=new A_(c.id,this.serializeUrl(c.extractedUrl),this.serializeUrl(c.urlAfterRedirects),c.targetSnapshot);this.triggerEvent(o)}),(0,_t.U)(c=>r={...c,guards:yf(c.targetSnapshot,c.currentSnapshot,this.rootContexts)}),function jd(i,s){return(0,gi.z)(e=>{const{targetSnapshot:t,currentSnapshot:r,guards:{canActivateChecks:d,canDeactivateChecks:h}}=e;return 0===h.length&&0===d.length?(0,xe.of)({...e,guardsResult:!0}):function vs(i,s,e,t){return(0,lt.D)(i).pipe((0,gi.z)(r=>function q(i,s,e,t,r){const d=s&&s.routeConfig?s.routeConfig.canDeactivate:null;if(!d||0===d.length)return(0,xe.of)(!0);const h=d.map(c=>{const o=za(c,s,r);return Qt(function _a(i){return i&&$r(i.canDeactivate)}(o)?o.canDeactivate(i,s,e,t):o(i,s,e,t)).pipe((0,jn.P)())});return(0,xe.of)(h).pipe(As())}(r.component,r.route,e,s,t)),(0,jn.P)(r=>!0!==r,!0))}(h,t,r,i).pipe((0,gi.z)(c=>c&&function pl(i){return"boolean"==typeof i}(c)?function Ud(i,s,e,t){return(0,lt.D)(s).pipe((0,Tr.b)(r=>(0,Ui.z)(function M(i,s){return null!==i&&s&&s(new M_(i)),(0,xe.of)(!0)}(r.route.parent,t),function jt(i,s){return null!==i&&s&&s(new E_(i)),(0,xe.of)(!0)}(r.route,t),function V(i,s,e){const t=s[s.length-1],d=s.slice(0,s.length-1).reverse().map(h=>function Ah(i){const s=i.routeConfig?i.routeConfig.canActivateChild:null;return s&&0!==s.length?{node:i,guards:s}:null}(h)).filter(h=>null!==h).map(h=>Cn(()=>{const c=h.guards.map(o=>{const a=za(o,h.node,e);return Qt(function Th(i){return i&&$r(i.canActivateChild)}(a)?a.canActivateChild(t,i):a(t,i)).pipe((0,jn.P)())});return(0,xe.of)(c).pipe(As())}));return(0,xe.of)(d).pipe(As())}(i,r.path,e),function k(i,s,e){const t=s.routeConfig?s.routeConfig.canActivate:null;if(!t||0===t.length)return(0,xe.of)(!0);const r=t.map(d=>Cn(()=>{const h=za(d,s,e);return Qt(function D_(i){return i&&$r(i.canActivate)}(h)?h.canActivate(s,i):h(s,i)).pipe((0,jn.P)())}));return(0,xe.of)(r).pipe(As())}(i,r.route,e))),(0,jn.P)(r=>!0!==r,!0))}(t,d,i,s):(0,xe.of)(c)),(0,_t.U)(c=>({...e,guardsResult:c})))})}(this.ngModule.injector,c=>this.triggerEvent(c)),(0,nn.b)(c=>{if(r.guardsResult=c.guardsResult,fa(c.guardsResult))throw ll(0,c.guardsResult);const o=new v_(c.id,this.serializeUrl(c.extractedUrl),this.serializeUrl(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.triggerEvent(o)}),(0,Ce.h)(c=>!!c.guardsResult||(this.restoreHistory(c),this.cancelNavigationTransition(c,"",3),!1)),Eh(c=>{if(c.guards.canActivateChecks.length)return(0,xe.of)(c).pipe((0,nn.b)(o=>{const a=new T_(o.id,this.serializeUrl(o.extractedUrl),this.serializeUrl(o.urlAfterRedirects),o.targetSnapshot);this.triggerEvent(a)}),(0,bn.w)(o=>{let a=!1;return(0,xe.of)(o).pipe(function zS(i,s){return(0,gi.z)(e=>{const{targetSnapshot:t,guards:{canActivateChecks:r}}=e;if(!r.length)return(0,xe.of)(e);let d=0;return(0,lt.D)(r).pipe((0,Tr.b)(h=>function Mf(i,s,e,t){const r=i.routeConfig,d=i._resolve;return void 0!==r?.title&&!dA(r)&&(d[V_]=r.title),function Ef(i,s,e,t){const r=function Df(i){return[...Object.keys(i),...Object.getOwnPropertySymbols(i)]}(i);if(0===r.length)return(0,xe.of)({});const d={};return(0,lt.D)(r).pipe((0,gi.z)(h=>function GS(i,s,e,t){const r=za(i,s,t);return Qt(r.resolve?r.resolve(s,e):r(s,e))}(i[h],s,e,t).pipe((0,jn.P)(),(0,nn.b)(c=>{d[h]=c}))),hn(1),(0,ac.h)(d),(0,Ri.K)(h=>Vd(h)?Pn.E:(0,mi._)(h)))}(d,i,s,t).pipe((0,_t.U)(h=>(i._resolvedData=h,i.data=mh(i,e).resolve,r&&dA(r)&&(i.data[V_]=r.title),null)))}(h.route,t,i,s)),(0,nn.b)(()=>d++),hn(1),(0,gi.z)(h=>d===r.length?(0,xe.of)(e):Pn.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,nn.b)({next:()=>a=!0,complete:()=>{a||(this.restoreHistory(o),this.cancelNavigationTransition(o,"",2))}}))}),(0,nn.b)(o=>{const a=new x_(o.id,this.serializeUrl(o.extractedUrl),this.serializeUrl(o.urlAfterRedirects),o.targetSnapshot);this.triggerEvent(a)}))}),Eh(c=>{const o=a=>{const l=[];a.routeConfig?.loadComponent&&!a.routeConfig._loadedComponent&&l.push(this.configLoader.loadComponent(a.routeConfig).pipe((0,nn.b)(u=>{a.component=u}),(0,_t.U)(()=>{})));for(const u of a.children)l.push(...o(u));return l};return(0,un.a)(o(c.targetSnapshot.root)).pipe((0,bd.d)(),(0,rt.q)(1))}),Eh(()=>this.afterPreactivation()),(0,_t.U)(c=>{const o=function Fe(i,s,e){const t=oo(i,s._root,e?e._root:void 0);return new pc(t,s)}(this.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return r={...c,targetRouterState:o}}),(0,nn.b)(c=>{this.currentUrlTree=c.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(c.urlAfterRedirects,c.rawUrl),this.routerState=c.targetRouterState,"deferred"===this.urlUpdateStrategy&&(c.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,c),this.browserUrlTree=c.urlAfterRedirects)}),((i,s,e)=>(0,_t.U)(t=>(new ul(s,t.targetRouterState,t.currentRouterState,e).activate(i),t)))(this.rootContexts,this.routeReuseStrategy,c=>this.triggerEvent(c)),(0,nn.b)({next(){d=!0},complete(){d=!0}}),Mr(()=>{d||h||this.cancelNavigationTransition(r,"",1),this.currentNavigation?.id===r.id&&(this.currentNavigation=null)}),(0,Ri.K)(c=>{if(h=!0,mc(c)){fc(c)||(this.navigated=!0,this.restoreHistory(r,!0));const o=new Hd(r.id,this.serializeUrl(r.extractedUrl),c.message,c.cancellationCode);if(t.next(o),fc(c)){const a=this.urlHandlingStrategy.merge(c.url,this.rawUrlTree),l={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Cc(r.source)};this.scheduleNavigation(a,"imperative",null,l,{resolve:r.resolve,reject:r.reject,promise:r.promise})}else r.resolve(!1)}else{this.restoreHistory(r,!0);const o=new uh(r.id,this.serializeUrl(r.extractedUrl),c,r.targetSnapshot??void 0);t.next(o);try{r.resolve(this.errorHandler(c))}catch(a){r.reject(a)}}return Pn.E}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next({...this.transitions.value,...e})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const t="popstate"===e.type?"popstate":"hashchange";"popstate"===t&&setTimeout(()=>{const r={replaceUrl:!0},d=e.state?.navigationId?e.state:null;if(d){const c={...d};delete c.navigationId,delete c.\u0275routerPageId,0!==Object.keys(c).length&&(r.state=c)}const h=this.parseUrl(e.url);this.scheduleNavigation(h,t,d,r)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){this.config=e.map(ys),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,t={}){const{relativeTo:r,queryParams:d,fragment:h,queryParamsHandling:c,preserveFragment:o}=t,a=r||this.routerState.root,l=o?this.currentUrlTree.fragment:h;let u=null;switch(c){case"merge":u={...this.currentUrlTree.queryParams,...d};break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=d||null}return null!==u&&(u=this.removeEmptyProps(u)),Ed(a,this.currentUrlTree,e,u,l??null)}navigateByUrl(e,t={skipLocationChange:!1}){const r=fa(e)?e:this.parseUrl(e),d=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(d,"imperative",null,t)}navigate(e,t={skipLocationChange:!1}){return function WS(i){for(let s=0;s{const d=e[r];return null!=d&&(t[r]=d),t},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new Ni(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.titleStrategy?.updateTitle(this.routerState.snapshot),e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,t,r,d,h){if(this.disposed)return Promise.resolve(!1);let c,o,a;h?(c=h.resolve,o=h.reject,a=h.promise):a=new Promise((p,m)=>{c=p,o=m});const l=++this.navigationId;let u;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(r=this.location.getState()),u=r&&r.\u0275routerPageId?r.\u0275routerPageId:d.replaceUrl||d.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):u=0,this.setTransition({id:l,targetPageId:u,source:t,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:d,resolve:c,reject:o,promise:a,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),a.catch(p=>Promise.reject(p))}setBrowserUrl(e,t){const r=this.urlSerializer.serialize(e),d={...t.extras.state,...this.generateNgRouterState(t.id,t.targetPageId)};this.location.isCurrentPathEqualTo(r)||t.extras.replaceUrl?this.location.replaceState(r,"",d):this.location.go(r,"",d)}restoreHistory(e,t=!1){if("computed"===this.canceledNavigationResolution){const r=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.currentNavigation?.finalUrl||0===r?this.currentUrlTree===this.currentNavigation?.finalUrl&&0===r&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(r)}else"replace"===this.canceledNavigationResolution&&(t&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,t,r){const d=new Hd(e.id,this.serializeUrl(e.extractedUrl),t,r);this.triggerEvent(d),e.resolve(!1)}generateNgRouterState(e,t){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:t}:{navigationId:e}}}return i.\u0275fac=function(e){n.$Z()},i.\u0275prov=n.Yz7({token:i,factory:function(){return q_()},providedIn:"root"}),i})();function Cc(i){return"imperative"!==i}let Ts=(()=>{class i{constructor(e,t,r,d,h){this.router=e,this.route=t,this.tabIndexAttribute=r,this.renderer=d,this.el=h,this.commands=null,this.onChanges=new Me.x,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(e){if(null!=this.tabIndexAttribute)return;const t=this.renderer,r=this.el.nativeElement;null!==e?t.setAttribute(r,"tabindex",e):t.removeAttribute(r,"tabindex")}ngOnChanges(e){this.onChanges.next(this)}set routerLink(e){null!=e?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const e={skipLocationChange:(0,n.D6c)(this.skipLocationChange),replaceUrl:(0,n.D6c)(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,e),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:(0,n.D6c)(this.preserveFragment)})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36($n),n.Y36(Li),n.$8M("tabindex"),n.Y36(n.Qsj),n.Y36(n.SBq))},i.\u0275dir=n.lG2({type:i,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(e,t){1&e&&n.NdJ("click",function(){return t.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[n.TTD]}),i})(),Nd=(()=>{class i{constructor(e,t,r){this.router=e,this.route=t,this.locationStrategy=r,this.commands=null,this.href=null,this.onChanges=new Me.x,this.subscription=e.events.subscribe(d=>{d instanceof Ni&&this.updateTargetUrlAndHref()})}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:null}ngOnChanges(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(e,t,r,d,h){if(0!==e||t||r||d||h||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const c={skipLocationChange:(0,n.D6c)(this.skipLocationChange),replaceUrl:(0,n.D6c)(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,c),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:(0,n.D6c)(this.preserveFragment)})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36($n),n.Y36(Li),n.Y36(x.S$))},i.\u0275dir=n.lG2({type:i,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,t){1&e&&n.NdJ("click",function(d){return t.onClick(d.button,d.ctrlKey,d.shiftKey,d.altKey,d.metaKey)}),2&e&&n.uIk("target",t.target)("href",t.href,n.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[n.TTD]}),i})();class W_{}let $_=(()=>{class i{preload(e,t){return(0,xe.of)(null)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Rh=(()=>{class i{constructor(e,t,r,d,h){this.router=e,this.injector=r,this.preloadingStrategy=d,this.loader=h}setUpPreloading(){this.subscription=this.router.events.pipe((0,Ce.h)(e=>e instanceof Ni),(0,Tr.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,t){const r=[];for(const d of t){d.providers&&!d._injector&&(d._injector=(0,n.MMx)(d.providers,e,`Route: ${d.path}`));const h=d._injector??e,c=d._loadedInjector??h;d.loadChildren&&!d._loadedRoutes&&void 0===d.canLoad||d.loadComponent&&!d._loadedComponent?r.push(this.preloadConfig(h,d)):(d.children||d._loadedRoutes)&&r.push(this.processRoutes(c,d.children??d._loadedRoutes))}return(0,lt.D)(r).pipe((0,sc.J)())}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>{let r;r=t.loadChildren&&void 0===t.canLoad?this.loader.loadChildren(e,t):(0,xe.of)(null);const d=r.pipe((0,gi.z)(h=>null===h?(0,xe.of)(void 0):(t._loadedRoutes=h.routes,t._loadedInjector=h.injector,this.processRoutes(h.injector??e,h.routes))));if(t.loadComponent&&!t._loadedComponent){const h=this.loader.loadComponent(t);return(0,lt.D)([d,h]).pipe((0,sc.J)())}return d})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG($n),n.LFG(n.Sil),n.LFG(n.lqb),n.LFG(W_),n.LFG(Wn))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();const wA=new n.OlP("");let yA=(()=>{class i{constructor(e,t,r={}){this.router=e,this.viewportScroller=t,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.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(e=>{e instanceof nl?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Ni&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof Rn&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,t){this.router.triggerEvent(new Rn(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return i.\u0275fac=function(e){n.$Z()},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();const Pf=new n.OlP("ROUTER_FORROOT_GUARD"),co=new n.OlP(""),AA=[x.Ye,{provide:$o,useClass:Cd},{provide:$n,useFactory:q_},_c,{provide:Li,useFactory:function Rf(i){return i.routerState.root},deps:[$n]},Wn];function kh(){return new n.PXZ("Router",$n)}let Lh=(()=>{class i{constructor(e){}static forRoot(e,t){return{ngModule:i,providers:[AA,[],Oh(e),{provide:Pf,useFactory:J_,deps:[[$n,new n.FiY,new n.tp0]]},{provide:Hh,useValue:t||{}},t?.useHash?{provide:x.S$,useClass:x.Do}:{provide:x.S$,useClass:x.b0},{provide:wA,useFactory:()=>{const i=(0,n.f3M)($n),s=(0,n.f3M)(x.EM),e=(0,n.f3M)(Hh);return e.scrollOffset&&s.setOffset(e.scrollOffset),new yA(i,s,e)}},t?.preloadingStrategy?SA(t.preloadingStrategy):[],{provide:n.PXZ,multi:!0,useFactory:kh},t?.initialNavigation?Q_(t):[],[{provide:Z_,useFactory:vA},{provide:n.tb,multi:!0,useExisting:Z_}]]}}static forChild(e){return{ngModule:i,providers:[Oh(e)]}}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Pf,8))},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})();function J_(i){return"guarded"}function Oh(i){return[{provide:Hf,multi:!0,useValue:i}]}function vA(){const i=(0,n.f3M)(n.zs3);return s=>{const e=i.get(n.z2F);if(s!==e.components[0])return;const t=i.get($n),r=i.get(K_);1===i.get(Lf)&&t.initialNavigation(),i.get(co,null,n.XFs.Optional)?.setUpPreloading(),i.get(wA,null,n.XFs.Optional)?.init(),t.resetRootComponentType(e.componentTypes[0]),r.next(),r.complete()}}const Z_=new n.OlP("");function Q_(i){return["disabled"===i.initialNavigation?[{provide:n.ip1,multi:!0,useFactory:()=>{const i=(0,n.f3M)($n);return()=>{i.setUpLocationChangeListener()}}},{provide:Lf,useValue:2}]:[],"enabledBlocking"===i.initialNavigation?[{provide:Lf,useValue:0},{provide:n.ip1,multi:!0,deps:[n.zs3],useFactory:i=>{const s=i.get(x.V_,Promise.resolve(null));let e=!1;return()=>s.then(()=>new Promise(r=>{const d=i.get($n),h=i.get(K_);(function t(r){i.get($n).events.pipe((0,Ce.h)(h=>h instanceof Ni||h instanceof Hd||h instanceof uh),(0,_t.U)(h=>h instanceof Ni||h instanceof Hd&&(0===h.code||1===h.code)&&null),(0,Ce.h)(h=>null!==h),(0,rt.q)(1)).subscribe(()=>{r()})})(()=>{r(!0),e=!0}),d.afterPreactivation=()=>(r(!0),e||h.closed?(0,xe.of)(void 0):h),d.initialNavigation()}))}}]:[]]}const K_=new n.OlP("",{factory:()=>new Me.x}),Lf=new n.OlP("",{providedIn:"root",factory:()=>1});function SA(i){return[Rh,{provide:co,useExisting:Rh},{provide:W_,useExisting:i}]}let Of;try{Of=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Of=!1}let vc,yn=(()=>{class i{constructor(e){this._platformId=e,this.isBrowser=this._platformId?(0,x.NF)(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&&!Of)&&typeof CSS<"u"&&!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 i.\u0275fac=function(e){return new(e||i)(n.LFG(n.Lbi))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const Tc=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function X_(){if(vc)return vc;if("object"!=typeof document||!document)return vc=new Set(Tc),vc;let i=document.createElement("input");return vc=new Set(Tc.filter(s=>(i.setAttribute("type",s),i.type===s))),vc}let $a,Bf,uo,Vf;function Ja(i){return function Fd(){if(null==$a&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>$a=!0}))}finally{$a=$a||!1}return $a}()?i:!!i.capture}function eb(){if(null==uo){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return uo=!1,uo;if("scrollBehavior"in document.documentElement.style)uo=!0;else{const i=Element.prototype.scrollTo;uo=!!i&&!/\{\s*\[native code\]\s*\}/.test(i.toString())}}return uo}function Yd(){if("object"!=typeof document||!document)return 0;if(null==Bf){const i=document.createElement("div"),s=i.style;i.dir="rtl",s.width="1px",s.overflow="auto",s.visibility="hidden",s.pointerEvents="none",s.position="absolute";const e=document.createElement("div"),t=e.style;t.width="2px",t.height="1px",i.appendChild(e),document.body.appendChild(i),Bf=0,0===i.scrollLeft&&(i.scrollLeft=1,Bf=0===i.scrollLeft?1:2),i.remove()}return Bf}function Bh(i){if(function tb(){if(null==Vf){const i=typeof document<"u"?document.head:null;Vf=!(!i||!i.createShadowRoot&&!i.attachShadow)}return Vf}()){const s=i.getRootNode?i.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&s instanceof ShadowRoot)return s}return null}function ho(){let i=typeof document<"u"&&document?document.activeElement:null;for(;i&&i.shadowRoot;){const s=i.shadowRoot.activeElement;if(s===i)break;i=s}return i}function ya(i){return i.composedPath?i.composedPath()[0]:i.target}function jf(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function ri(i,...s){return s.length?s.some(e=>i[e]):i.altKey||i.shiftKey||i.ctrlKey||i.metaKey}var Nh=E(8372);function Fh(i){return(0,Ce.h)((s,e)=>i<=e)}function mo(i,s=wd.y){return i=i??bb,(0,Pi.e)((e,t)=>{let r,d=!0;e.subscribe((0,nt.x)(t,h=>{const c=s(h);(d||!i(r,c))&&(d=!1,r=c,t.next(h))}))})}function bb(i,s){return i===s}var rv=E(5032);function Ke(i){return(0,Pi.e)((s,e)=>{(0,Qn.Xf)(i).subscribe((0,nt.x)(e,()=>e.complete(),rv.Z)),!e.closed&&s.subscribe(e)})}function Oe(i){return null!=i&&"false"!=`${i}`}function _n(i,s=0){return Gf(i)?Number(i):s}function Gf(i){return!isNaN(parseFloat(i))&&!isNaN(Number(i))}function Yh(i){return Array.isArray(i)?i:[i]}function hi(i){return null==i?"":"string"==typeof i?i:`${i}px`}function ai(i){return i instanceof n.SBq?i.nativeElement:i}let Wf=(()=>{class i{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),sv=(()=>{class i{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,t)=>this._cleanupObserver(t))}observe(e){const t=ai(e);return new ln.y(r=>{const h=this._observeElement(t).subscribe(r);return()=>{h.unsubscribe(),this._unobserveElement(t)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const t=new Me.x,r=this._mutationObserverFactory.create(d=>t.next(d));r&&r.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:r,stream:t,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:t,stream:r}=this._observedElements.get(e);t&&t.disconnect(),r.complete(),this._observedElements.delete(e)}}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Wf))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),qh=(()=>{class i{constructor(e,t,r){this._contentObserver=e,this._elementRef=t,this._ngZone=r,this.event=new n.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=Oe(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=_n(e),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe((0,Nh.b)(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(sv),n.Y36(n.SBq),n.Y36(n.R0b))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),i})(),Jd=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[Wf]}),i})();const $f=new Set;let _l,wb=(()=>{class i{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):lv}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function ov(i){if(!$f.has(i))try{_l||(_l=document.createElement("style"),_l.setAttribute("type","text/css"),document.head.appendChild(_l)),_l.sheet&&(_l.sheet.insertRule(`@media ${i} {body{ }}`,0),$f.add(i))}catch(s){console.error(s)}}(e),this._matchMedia(e)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(yn))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();function lv(i){return{matches:"all"===i||""===i,media:i,addListener:()=>{},removeListener:()=>{}}}let Jf=(()=>{class i{constructor(e,t){this._mediaMatcher=e,this._zone=t,this._queries=new Map,this._destroySubject=new Me.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return yb(Yh(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){const r=yb(Yh(e)).map(h=>this._registerQuery(h).observable);let d=(0,un.a)(r);return d=(0,Ui.z)(d.pipe((0,rt.q)(1)),d.pipe(Fh(1),(0,Nh.b)(0))),d.pipe((0,_t.U)(h=>{const c={matches:!1,breakpoints:{}};return h.forEach(({matches:o,query:a})=>{c.matches=c.matches||o,c.breakpoints[a]=o}),c}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const t=this._mediaMatcher.matchMedia(e),d={observable:new ln.y(h=>{const c=o=>this._zone.run(()=>h.next(o));return t.addListener(c),()=>{t.removeListener(c)}}).pipe(Zt(t),(0,_t.U)(({matches:h})=>({query:e,matches:h})),Ke(this._destroySubject)),mql:t};return this._queries.set(e,d),d}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(wb),n.LFG(n.R0b))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();function yb(i){return i.map(s=>s.split(",")).reduce((s,e)=>s.concat(e)).map(s=>s.trim())}function Zd(i,s){return(i.getAttribute(s)||"").match(/\S+/g)||[]}const go="cdk-describedby-message",zh="cdk-describedby-host";let Qd=0,Kd=(()=>{class i{constructor(e,t){this._platform=t,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+Qd++,this._document=e,this._id=(0,n.f3M)(n.AFp)+"-"+Qd++}describe(e,t,r){if(!this._canBeDescribed(e,t))return;const d=Zf(t,r);"string"!=typeof t?(uv(t,this._id),this._messageRegistry.set(d,{messageElement:t,referenceCount:0})):this._messageRegistry.has(d)||this._createMessageElement(t,r),this._isElementDescribedByMessage(e,d)||this._addMessageReference(e,d)}removeDescription(e,t,r){if(!t||!this._isElementNode(e))return;const d=Zf(t,r);if(this._isElementDescribedByMessage(e,d)&&this._removeMessageReference(e,d),"string"==typeof t){const h=this._messageRegistry.get(d);h&&0===h.referenceCount&&this._deleteMessageElement(d)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const e=this._document.querySelectorAll(`[${zh}="${this._id}"]`);for(let t=0;t0!=r.indexOf(go));e.setAttribute("aria-describedby",t.join(" "))}_addMessageReference(e,t){const r=this._messageRegistry.get(t);(function cv(i,s,e){const t=Zd(i,s);t.some(r=>r.trim()==e.trim())||(t.push(e.trim()),i.setAttribute(s,t.join(" ")))})(e,"aria-describedby",r.messageElement.id),e.setAttribute(zh,this._id),r.referenceCount++}_removeMessageReference(e,t){const r=this._messageRegistry.get(t);r.referenceCount--,function LM(i,s,e){const r=Zd(i,s).filter(d=>d!=e.trim());r.length?i.setAttribute(s,r.join(" ")):i.removeAttribute(s)}(e,"aria-describedby",r.messageElement.id),e.removeAttribute(zh)}_isElementDescribedByMessage(e,t){const r=Zd(e,"aria-describedby"),d=this._messageRegistry.get(t),h=d&&d.messageElement.id;return!!h&&-1!=r.indexOf(h)}_canBeDescribed(e,t){if(!this._isElementNode(e))return!1;if(t&&"object"==typeof t)return!0;const r=null==t?"":`${t}`.trim(),d=e.getAttribute("aria-label");return!(!r||d&&d.trim()===r)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(x.K0),n.LFG(yn))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();function Zf(i,s){return"string"==typeof i?`${s||""}/${i}`:i}function uv(i,s){i.id||(i.id=`${go}-${s}-${Qd++}`)}class hv{constructor(s){this._items=s,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new Me.x,this._typeaheadSubscription=Rt.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new Me.x,this.change=new Me.x,s instanceof n.n_E&&s.changes.subscribe(e=>{if(this._activeItem){const r=e.toArray().indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}})}skipPredicate(s){return this._skipPredicateFn=s,this}withWrap(s=!0){return this._wrap=s,this}withVerticalOrientation(s=!0){return this._vertical=s,this}withHorizontalOrientation(s){return this._horizontal=s,this}withAllowedModifierKeys(s){return this._allowedModifierKeys=s,this}withTypeAhead(s=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,nn.b)(e=>this._pressedLetters.push(e)),(0,Nh.b)(s),(0,Ce.h)(()=>this._pressedLetters.length>0),(0,_t.U)(()=>this._pressedLetters.join(""))).subscribe(e=>{const t=this._getItemsArray();for(let r=1;r!s[d]||this._allowedModifierKeys.indexOf(d)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&r){this.setNextItemActive();break}return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&r){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&r){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}return;default:return void((r||ri(s,"shiftKey"))&&(s.key&&1===s.key.length?this._letterKeyStream.next(s.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],s.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(s){const e=this._getItemsArray(),t="number"==typeof s?s:e.indexOf(s);this._activeItem=e[t]??null,this._activeItemIndex=t}_setActiveItemByDelta(s){this._wrap?this._setActiveInWrapMode(s):this._setActiveInDefaultMode(s)}_setActiveInWrapMode(s){const e=this._getItemsArray();for(let t=1;t<=e.length;t++){const r=(this._activeItemIndex+s*t+e.length)%e.length;if(!this._skipPredicateFn(e[r]))return void this.setActiveItem(r)}}_setActiveInDefaultMode(s){this._setActiveItemByIndex(this._activeItemIndex+s,s)}_setActiveItemByIndex(s,e){const t=this._getItemsArray();if(t[s]){for(;this._skipPredicateFn(t[s]);)if(!t[s+=e])return;this.setActiveItem(s)}}_getItemsArray(){return this._items instanceof n.n_E?this._items.toArray():this._items}}class IM extends hv{setActiveItem(s){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(s),this.activeItem&&this.activeItem.setActiveStyles()}}class Mc extends hv{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(s){return this._origin=s,this}setActiveItem(s){super.setActiveItem(s),this.activeItem&&this.activeItem.focus(this._origin)}}let Gh=(()=>{class i{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function Ec(i){return!!(i.offsetWidth||i.offsetHeight||"function"==typeof i.getClientRects&&i.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const t=function fv(i){try{return i.frameElement}catch{return null}}(function wv(i){return i.ownerDocument&&i.ownerDocument.defaultView||window}(e));if(t&&(-1===Sb(t)||!this.isVisible(t)))return!1;let r=e.nodeName.toLowerCase(),d=Sb(e);return e.hasAttribute("contenteditable")?-1!==d:!("iframe"===r||"object"===r||this._platform.WEBKIT&&this._platform.IOS&&!function _v(i){let s=i.nodeName.toLowerCase(),e="input"===s&&i.type;return"text"===e||"password"===e||"select"===s||"textarea"===s}(e))&&("audio"===r?!!e.hasAttribute("controls")&&-1!==d:"video"===r?-1!==d&&(null!==d||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,t){return function bv(i){return!function vb(i){return function gv(i){return"input"==i.nodeName.toLowerCase()}(i)&&"hidden"==i.type}(i)&&(function mv(i){let s=i.nodeName.toLowerCase();return"input"===s||"select"===s||"button"===s||"textarea"===s}(i)||function Wh(i){return function Tb(i){return"a"==i.nodeName.toLowerCase()}(i)&&i.hasAttribute("href")}(i)||i.hasAttribute("contenteditable")||xb(i))}(e)&&!this.isDisabled(e)&&(t?.ignoreVisibility||this.isVisible(e))}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(yn))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();function xb(i){if(!i.hasAttribute("tabindex")||void 0===i.tabIndex)return!1;let s=i.getAttribute("tabindex");return!(!s||isNaN(parseInt(s,10)))}function Sb(i){if(!xb(i))return null;const s=parseInt(i.getAttribute("tabindex")||"",10);return isNaN(s)?-1:s}class Mb{constructor(s,e,t,r,d=!1){this._element=s,this._checker=e,this._ngZone=t,this._document=r,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,d||this.attachAnchors()}get enabled(){return this._enabled}set enabled(s){this._enabled=s,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(s,this._startAnchor),this._toggleAnchorTabIndex(s,this._endAnchor))}destroy(){const s=this._startAnchor,e=this._endAnchor;s&&(s.removeEventListener("focus",this.startAnchorListener),s.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),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(s){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(s)))})}focusFirstTabbableElementWhenReady(s){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(s)))})}focusLastTabbableElementWhenReady(s){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(s)))})}_getRegionBoundary(s){const e=this._element.querySelectorAll(`[cdk-focus-region-${s}], [cdkFocusRegion${s}], [cdk-focus-${s}]`);return"start"==s?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(s){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const t=this._getFirstTabbableElement(e);return t?.focus(s),!!t}return e.focus(s),!0}return this.focusFirstTabbableElement(s)}focusFirstTabbableElement(s){const e=this._getRegionBoundary("start");return e&&e.focus(s),!!e}focusLastTabbableElement(s){const e=this._getRegionBoundary("end");return e&&e.focus(s),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(s){if(this._checker.isFocusable(s)&&this._checker.isTabbable(s))return s;const e=s.children;for(let t=0;t=0;t--){const r=e[t].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[t]):null;if(r)return r}return null}_createAnchor(){const s=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,s),s.classList.add("cdk-visually-hidden"),s.classList.add("cdk-focus-trap-anchor"),s.setAttribute("aria-hidden","true"),s}_toggleAnchorTabIndex(s,e){s?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(s){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(s,this._startAnchor),this._toggleAnchorTabIndex(s,this._endAnchor))}_executeOnStable(s){this._ngZone.isStable?s():this._ngZone.onStable.pipe((0,rt.q)(1)).subscribe(s)}}let Xd=(()=>{class i{constructor(e,t,r){this._checker=e,this._ngZone=t,this._document=r}create(e,t=!1){return new Mb(e,this._checker,this._ngZone,this._document,t)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Gh),n.LFG(n.R0b),n.LFG(x.K0))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Eb=(()=>{class i{constructor(e,t,r){this._elementRef=e,this._focusTrapFactory=t,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(e){this.focusTrap.enabled=Oe(e)}get autoCapture(){return this._autoCapture}set autoCapture(e){this._autoCapture=Oe(e)}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(e){const t=e.autoCapture;t&&!t.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=ho(),this.focusTrap.focusInitialElementWhenReady()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(Xd),n.Y36(x.K0))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[n.TTD]}),i})();function Qf(i){return 0===i.buttons||0===i.offsetX&&0===i.offsetY}function Ms(i){const s=i.touches&&i.touches[0]||i.changedTouches&&i.changedTouches[0];return!(!s||-1!==s.identifier||null!=s.radiusX&&1!==s.radiusX||null!=s.radiusY&&1!==s.radiusY)}const Pb=new n.OlP("cdk-input-modality-detector-options"),Rb={ignoreKeys:[18,17,224,91,16]},zi=Ja({passive:!0,capture:!0});let kb=(()=>{class i{constructor(e,t,r,d){this._platform=e,this._mostRecentTarget=null,this._modality=new Hn(null),this._lastTouchMs=0,this._onKeydown=h=>{this._options?.ignoreKeys?.some(c=>c===h.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=ya(h))},this._onMousedown=h=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Qf(h)?"keyboard":"mouse"),this._mostRecentTarget=ya(h))},this._onTouchstart=h=>{Ms(h)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=ya(h))},this._options={...Rb,...d},this.modalityDetected=this._modality.pipe(Fh(1)),this.modalityChanged=this.modalityDetected.pipe(mo()),e.isBrowser&&t.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,zi),r.addEventListener("mousedown",this._onMousedown,zi),r.addEventListener("touchstart",this._onTouchstart,zi)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,zi),document.removeEventListener("mousedown",this._onMousedown,zi),document.removeEventListener("touchstart",this._onTouchstart,zi))}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(yn),n.LFG(n.R0b),n.LFG(x.K0),n.LFG(Pb,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const Cv=new n.OlP("liveAnnouncerElement",{providedIn:"root",factory:function Kf(){return null}}),Es=new n.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let Xf=(()=>{class i{constructor(e,t,r,d){this._ngZone=t,this._defaultOptions=d,this._document=r,this._liveElement=e||this._createLiveElement()}announce(e,...t){const r=this._defaultOptions;let d,h;return 1===t.length&&"number"==typeof t[0]?h=t[0]:[d,h]=t,this.clear(),clearTimeout(this._previousTimeout),d||(d=r&&r.politeness?r.politeness:"polite"),null==h&&r&&(h=r.duration),this._liveElement.setAttribute("aria-live",d),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(c=>this._currentResolve=c)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,"number"==typeof h&&(this._previousTimeout=setTimeout(()=>this.clear(),h)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const e="cdk-live-announcer-element",t=this._document.getElementsByClassName(e),r=this._document.createElement("div");for(let d=0;d{class i{constructor(e,t,r,d,h){this._ngZone=e,this._platform=t,this._inputModalityDetector=r,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new Me.x,this._rootNodeFocusAndBlurListener=c=>{for(let a=ya(c);a;a=a.parentElement)"focus"===c.type?this._onFocus(c,a):this._onBlur(c,a)},this._document=d,this._detectionMode=h?.detectionMode||0}monitor(e,t=!1){const r=ai(e);if(!this._platform.isBrowser||1!==r.nodeType)return(0,xe.of)(null);const d=Bh(r)||this._getDocument(),h=this._elementInfo.get(r);if(h)return t&&(h.checkChildren=!0),h.subject;const c={checkChildren:t,subject:new Me.x,rootNode:d};return this._elementInfo.set(r,c),this._registerGlobalListeners(c),c.subject}stopMonitoring(e){const t=ai(e),r=this._elementInfo.get(t);r&&(r.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(r))}focusVia(e,t,r){const d=ai(e);d===this._getDocument().activeElement?this._getClosestElementsInfo(d).forEach(([c,o])=>this._originChanged(c,t,o)):(this._setOrigin(t),"function"==typeof d.focus&&d.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,t)=>this.stopMonitoring(t))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,t){e.classList.toggle("cdk-focused",!!t),e.classList.toggle("cdk-touch-focused","touch"===t),e.classList.toggle("cdk-keyboard-focused","keyboard"===t),e.classList.toggle("cdk-mouse-focused","mouse"===t),e.classList.toggle("cdk-program-focused","program"===t)}_setOrigin(e,t=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&t,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,t){const r=this._elementInfo.get(t),d=ya(e);!r||!r.checkChildren&&t!==d||this._originChanged(t,this._getFocusOrigin(d),r)}_onBlur(e,t){const r=this._elementInfo.get(t);!r||r.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(r,null))}_emitOrigin(e,t){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(t))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const t=e.rootNode,r=this._rootNodeFocusListenerCount.get(t)||0;r||this._ngZone.runOutsideAngular(()=>{t.addEventListener("focus",this._rootNodeFocusAndBlurListener,tm),t.addEventListener("blur",this._rootNodeFocusAndBlurListener,tm)}),this._rootNodeFocusListenerCount.set(t,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Ke(this._stopInputModalityDetector)).subscribe(d=>{this._setOrigin(d,!0)}))}_removeGlobalListeners(e){const t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){const r=this._rootNodeFocusListenerCount.get(t);r>1?this._rootNodeFocusListenerCount.set(t,r-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,tm),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,tm),this._rootNodeFocusListenerCount.delete(t))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,t,r){this._setClasses(e,t),this._emitOrigin(r,t),this._lastFocusOrigin=t}_getClosestElementsInfo(e){const t=[];return this._elementInfo.forEach((r,d)=>{(d===e||r.checkChildren&&d.contains(e))&&t.push([d,r])}),t}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:t,mostRecentModality:r}=this._inputModalityDetector;if("mouse"!==r||!t||t===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const d=e.labels;if(d)for(let h=0;h{class i{constructor(e,t){this._elementRef=e,this._focusMonitor=t,this.cdkFocusChange=new n.vpe}ngAfterViewInit(){const e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,1===e.nodeType&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(t=>this.cdkFocusChange.emit(t))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(Ii))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),i})();const tu="cdk-high-contrast-black-on-white",nu="cdk-high-contrast-white-on-black",iu="cdk-high-contrast-active";let $h=(()=>{class i{constructor(e,t){this._platform=e,this._document=t,this._breakpointSubscription=(0,n.f3M)(Jf).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const t=this._document.defaultView||window,r=t&&t.getComputedStyle?t.getComputedStyle(e):null,d=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),d){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(iu,tu,nu),this._hasCheckedHighContrastMode=!0;const t=this.getHighContrastMode();1===t?e.add(iu,tu):2===t&&e.add(iu,nu)}}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(yn),n.LFG(x.K0))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),bl=(()=>{class i{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return i.\u0275fac=function(e){return new(e||i)(n.LFG($h))},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Jd]}),i})();const BM=new n.OlP("cdk-dir-doc",{providedIn:"root",factory:function Tv(){return(0,n.f3M)(x.K0)}}),xv=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let xn=(()=>{class i{constructor(e){if(this.value="ltr",this.change=new n.vpe,e){const r=e.documentElement?e.documentElement.dir:null;this.value=function Sv(i){const s=i?.toLowerCase()||"";return"auto"===s&&typeof navigator<"u"&&navigator?.language?xv.test(navigator.language)?"rtl":"ltr":"rtl"===s?"rtl":"ltr"}((e.body?e.body.dir:null)||r||"ltr")}}ngOnDestroy(){this.change.complete()}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(BM,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),ru=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})();function Ib(i,s){if(1&i&&n._UZ(0,"mat-pseudo-checkbox",4),2&i){const e=n.oxw();n.Q6J("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}function Dv(i,s){if(1&i&&(n.TgZ(0,"span",5),n._uU(1),n.qZA()),2&i){const e=n.oxw();n.xp6(1),n.hij("(",e.group.label,")")}}const nm=["*"];let VM=(()=>{class i{}return i.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",i.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",i.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",i.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",i})(),jM=(()=>{class i{}return i.COMPLEX="375ms",i.ENTERING="225ms",i.EXITING="195ms",i})();const NM=new n.OlP("mat-sanity-checks",{providedIn:"root",factory:function UM(){return!0}});let ht=(()=>{class i{constructor(e,t,r){this._sanityChecks=t,this._document=r,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!jf()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return i.\u0275fac=function(e){return new(e||i)(n.LFG($h),n.LFG(NM,8),n.LFG(x.K0))},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[ru,ru]}),i})();function Qr(i){return class extends i{constructor(...s){super(...s),this._disabled=!1}get disabled(){return this._disabled}set disabled(s){this._disabled=Oe(s)}}}function Ti(i,s){return class extends i{constructor(...e){super(...e),this.defaultColor=s,this.color=s}get color(){return this._color}set color(e){const t=e||this.defaultColor;t!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),t&&this._elementRef.nativeElement.classList.add(`mat-${t}`),this._color=t)}}}function mr(i){return class extends i{constructor(...s){super(...s),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(s){this._disableRipple=Oe(s)}}}function wl(i,s=0){return class extends i{constructor(...e){super(...e),this._tabIndex=s,this.defaultTabIndex=s}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(e){this._tabIndex=null!=e?_n(e):this.defaultTabIndex}}}function Jh(i){return class extends i{constructor(...s){super(...s),this.errorState=!1}updateErrorState(){const s=this.errorState,d=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);d!==s&&(this.errorState=d,this.stateChanges.next())}}}function Zh(i){return class extends i{constructor(...s){super(...s),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new ln.y(e=>{this._isInitialized?this._notifySubscriber(e):this._pendingSubscribers.push(e)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(s){s.next(),s.complete()}}}const _o=new n.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function im(){return(0,n.f3M)(n.soG)}});class Un{constructor(){this._localeChanges=new Me.x,this.localeChanges=this._localeChanges}getValidDateOrNull(s){return this.isDateInstance(s)&&this.isValid(s)?s:null}deserialize(s){return null==s||this.isDateInstance(s)&&this.isValid(s)?s:this.invalid()}setLocale(s){this.locale=s,this._localeChanges.next()}compareDate(s,e){return this.getYear(s)-this.getYear(e)||this.getMonth(s)-this.getMonth(e)||this.getDate(s)-this.getDate(e)}sameDate(s,e){if(s&&e){let t=this.isValid(s),r=this.isValid(e);return t&&r?!this.compareDate(s,e):t==r}return s==e}clampDate(s,e,t){return e&&this.compareDate(s,e)<0?e:t&&this.compareDate(s,t)>0?t:s}}const _i=new n.OlP("mat-date-formats"),Ob=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function rm(i,s){const e=Array(i);for(let t=0;t{class i extends Un{constructor(e,t){super(),this.useUtcForDisplay=!1,super.setLocale(e)}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){const t=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return rm(12,r=>this._format(t,new Date(2017,r,1)))}getDateNames(){const e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return rm(31,t=>this._format(e,new Date(2017,0,t+1)))}getDayOfWeekNames(e){const t=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return rm(7,r=>this._format(t,new Date(2017,0,r+1)))}getYearName(e){const t=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(t,e)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,t,r){let d=this._createDateWithOverflow(e,t,r);return d.getMonth(),d}today(){return new Date}parse(e,t){return"number"==typeof e?new Date(e):e?new Date(Date.parse(e)):null}format(e,t){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");const r=new Intl.DateTimeFormat(this.locale,{...t,timeZone:"utc"});return this._format(r,e)}addCalendarYears(e,t){return this.addCalendarMonths(e,12*t)}addCalendarMonths(e,t){let r=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+t,this.getDate(e));return this.getMonth(r)!=((this.getMonth(e)+t)%12+12)%12&&(r=this._createDateWithOverflow(this.getYear(r),this.getMonth(r),0)),r}addCalendarDays(e,t){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+t)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if("string"==typeof e){if(!e)return null;if(Ob.test(e)){let t=new Date(e);if(this.isValid(t))return t}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(e,t,r){const d=new Date;return d.setFullYear(e,t,r),d.setHours(0,0,0,0),d}_2digit(e){return("00"+e).slice(-2)}_format(e,t){const r=new Date;return r.setUTCFullYear(t.getFullYear(),t.getMonth(),t.getDate()),r.setUTCHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e.format(r)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(_o,8),n.LFG(yn))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();const Pv={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 Bb=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[{provide:Un,useClass:Qh}]}),i})(),Vb=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[{provide:_i,useValue:Pv}],imports:[Bb]}),i})(),Ca=(()=>{class i{isErrorState(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),yl=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),i})();function Qa(i,s,e){i.nativeElement.classList.toggle(s,e)}let Cl=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[ht,ht]}),i})();class au{constructor(s,e,t,r=!1){this._renderer=s,this.element=e,this.config=t,this._animationForciblyDisabledThroughCss=r,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const jb={enterDuration:225,exitDuration:150},Xh=Ja({passive:!0}),ep=["mousedown","touchstart"],tp=["mouseup","mouseleave","touchend","touchcancel"];class am{constructor(s,e,t,r){this._target=s,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=ai(t))}fadeInRipple(s,e,t={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),d={...jb,...t.animation};t.centered&&(s=r.left+r.width/2,e=r.top+r.height/2);const h=t.radius||function sm(i,s,e){const t=Math.max(Math.abs(i-e.left),Math.abs(i-e.right)),r=Math.max(Math.abs(s-e.top),Math.abs(s-e.bottom));return Math.sqrt(t*t+r*r)}(s,e,r),c=s-r.left,o=e-r.top,a=d.enterDuration,l=document.createElement("div");l.classList.add("mat-ripple-element"),l.style.left=c-h+"px",l.style.top=o-h+"px",l.style.height=2*h+"px",l.style.width=2*h+"px",null!=t.color&&(l.style.backgroundColor=t.color),l.style.transitionDuration=`${a}ms`,this._containerElement.appendChild(l);const u=window.getComputedStyle(l),m=u.transitionDuration,g="none"===u.transitionProperty||"0s"===m||"0s, 0s"===m,f=new au(this,l,t,g);l.style.transform="scale3d(1, 1, 1)",f.state=0,t.persistent||(this._mostRecentTransientRipple=f);let y=null;return!g&&(a||d.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const j=()=>this._finishRippleTransition(f),le=()=>this._destroyRipple(f);l.addEventListener("transitionend",j),l.addEventListener("transitioncancel",le),y={onTransitionEnd:j,onTransitionCancel:le}}),this._activeRipples.set(f,y),(g||!a)&&this._finishRippleTransition(f),f}fadeOutRipple(s){if(2===s.state||3===s.state)return;const e=s.element,t={...jb,...s.config.animation};e.style.transitionDuration=`${t.exitDuration}ms`,e.style.opacity="0",s.state=2,(s._animationForciblyDisabledThroughCss||!t.exitDuration)&&this._finishRippleTransition(s)}fadeOutAll(){this._getActiveRipples().forEach(s=>s.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(s=>{s.config.persistent||s.fadeOut()})}setupTriggerEvents(s){const e=ai(s);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(ep))}handleEvent(s){"mousedown"===s.type?this._onMousedown(s):"touchstart"===s.type?this._onTouchStart(s):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(tp),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(s){0===s.state?this._startFadeOutTransition(s):2===s.state&&this._destroyRipple(s)}_startFadeOutTransition(s){const e=s===this._mostRecentTransientRipple,{persistent:t}=s.config;s.state=1,!t&&(!e||!this._isPointerDown)&&s.fadeOut()}_destroyRipple(s){const e=this._activeRipples.get(s)??null;this._activeRipples.delete(s),this._activeRipples.size||(this._containerRect=null),s===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),s.state=3,null!==e&&(s.element.removeEventListener("transitionend",e.onTransitionEnd),s.element.removeEventListener("transitioncancel",e.onTransitionCancel)),s.element.remove()}_onMousedown(s){const e=Qf(s),t=this._lastTouchStartEvent&&Date.now(){!s.config.persistent&&(1===s.state||s.config.terminateOnPointerUp&&0===s.state)&&s.fadeOut()}))}_registerEvents(s){this._ngZone.runOutsideAngular(()=>{s.forEach(e=>{this._triggerElement.addEventListener(e,this,Xh)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(ep.forEach(s=>{this._triggerElement.removeEventListener(s,this,Xh)}),this._pointerUpEventsRegistered&&tp.forEach(s=>{this._triggerElement.removeEventListener(s,this,Xh)}))}}const Nb=new n.OlP("mat-ripple-global-options");let Lr=(()=>{class i{constructor(e,t,r,d,h){this._elementRef=e,this._animationMode=h,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=d||{},this._rippleRenderer=new am(this,t,e,r)}get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...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(e,t=0,r){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,{...this.rippleConfig,...r}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...e})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(n.R0b),n.Y36(yn),n.Y36(Nb,8),n.Y36(n.QbO,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&n.ekj("mat-ripple-unbounded",t.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),i})(),Kr=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[ht,ht]}),i})(),om=(()=>{class i{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.QbO,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,t){2&e&&n.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===t.state)("mat-pseudo-checkbox-checked","checked"===t.state)("mat-pseudo-checkbox-disabled",t.disabled)("_mat-animation-noopable","NoopAnimations"===t._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(e,t){},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:rgba(0,0,0,0)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::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}'],encapsulation:2,changeDetection:0}),i})(),lm=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[ht]}),i})();const cm=new n.OlP("MAT_OPTION_PARENT_COMPONENT"),dm=new n.OlP("MatOptgroup");let zM=0;class kv{constructor(s,e=!1){this.source=s,this.isUserInput=e}}let um=(()=>{class i{constructor(e,t,r,d){this._element=e,this._changeDetectorRef=t,this._parent=r,this.group=d,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+zM++,this.onSelectionChange=new n.vpe,this._stateChanges=new Me.x}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(e){this._disabled=Oe(e)}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(e,t){const r=this._getHostElement();"function"==typeof r.focus&&r.focus(t)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!ri(e)&&(this._selectViaInteraction(),e.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 e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue=e,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new kv(this,e))}}return i.\u0275fac=function(e){n.$Z()},i.\u0275dir=n.lG2({type:i,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),i})(),Al=(()=>{class i extends um{constructor(e,t,r,d){super(e,t,r,d)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(cm,8),n.Y36(dm,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,t){1&e&&n.NdJ("click",function(){return t._selectViaInteraction()})("keydown",function(d){return t._handleKeydown(d)}),2&e&&(n.Ikx("id",t.id),n.uIk("tabindex",t._getTabIndex())("aria-selected",t._getAriaSelected())("aria-disabled",t.disabled.toString()),n.ekj("mat-selected",t.selected)("mat-option-multiple",t.multiple)("mat-active",t.active)("mat-option-disabled",t.disabled))},exportAs:["matOption"],features:[n.qOj],ngContentSelectors:nm,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(e,t){1&e&&(n.F$t(),n.YNc(0,Ib,1,2,"mat-pseudo-checkbox",0),n.TgZ(1,"span",1),n.Hsn(2),n.qZA(),n.YNc(3,Dv,2,1,"span",2),n._UZ(4,"div",3)),2&e&&(n.Q6J("ngIf",t.multiple),n.xp6(3),n.Q6J("ngIf",t.group&&t.group._inert),n.xp6(1),n.Q6J("matRippleTrigger",t._getHostElement())("matRippleDisabled",t.disabled||t.disableRipple))},dependencies:[Lr,x.O5,om],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:rgba(0,0,0,0)}.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;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}.mat-option.mat-active::before{content:""}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{right:auto;left:16px}.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}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}'],encapsulation:2,changeDetection:0}),i})();function Fb(i,s,e){if(e.length){let t=s.toArray(),r=e.toArray(),d=0;for(let h=0;h{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Kr,x.ez,ht,lm]}),i})();const Yb=["mat-button",""],Iv=["*"],Vv=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],qb=Ti(Qr(mr(class{constructor(i){this._elementRef=i}})));let Ot=(()=>{class i extends qb{constructor(e,t,r){super(e),this._focusMonitor=t,this._animationMode=r,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const d of Vv)this._hasHostAttributes(d)&&this._getHostElement().classList.add(d);e.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(e,t){e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...e){return e.some(t=>this._getHostElement().hasAttribute(t))}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(Ii),n.Y36(n.QbO,8))},i.\u0275cmp=n.Xpm({type:i,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(e,t){if(1&e&&n.Gf(Lr,5),2&e){let r;n.iGM(r=n.CRH())&&(t.ripple=r.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,t){2&e&&(n.uIk("disabled",t.disabled||null),n.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-button-disabled",t.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[n.qOj],attrs:Yb,ngContentSelectors:Iv,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(e,t){1&e&&(n.F$t(),n.TgZ(0,"span",0),n.Hsn(1),n.qZA(),n._UZ(2,"span",1)(3,"span",2)),2&e&&(n.xp6(2),n.ekj("mat-button-ripple-round",t.isRoundButton||t.isIconButton),n.Q6J("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",t.isIconButton)("matRippleTrigger",t._getHostElement()))},dependencies:[Lr],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.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;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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-fab._mat-animation-noopable{transition:none !important;animation:none !important}.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;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.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:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.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}"],encapsulation:2,changeDetection:0}),i})(),bi=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Kr,ht,ht]}),i})();var pm=E(1144);const jv=["addListener","removeListener"],Uv=["addEventListener","removeEventListener"],WM=["on","off"];function ea(i,s,e,t){if((0,sn.m)(e)&&(t=e,e=void 0),t)return ea(i,s,e).pipe((0,Mi.Z)(t));const[r,d]=function fm(i){return(0,sn.m)(i.addEventListener)&&(0,sn.m)(i.removeEventListener)}(i)?Uv.map(h=>c=>i[h](s,c,e)):function Nv(i){return(0,sn.m)(i.addListener)&&(0,sn.m)(i.removeListener)}(i)?jv.map(zb(i,s)):function Fv(i){return(0,sn.m)(i.on)&&(0,sn.m)(i.off)}(i)?WM.map(zb(i,s)):[];if(!r&&(0,pm.z)(i))return(0,gi.z)(h=>ea(h,s,e))((0,Qn.Xf)(i));if(!r)throw new TypeError("Invalid event target");return new ln.y(h=>{const c=(...o)=>h.next(1d(c)})}function zb(i,s){return e=>t=>i[e](s,t)}var Gb=E(4408);const su={schedule(i){let s=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:t}=su;t&&(s=t.requestAnimationFrame,e=t.cancelAnimationFrame);const r=s(d=>{e=void 0,i(d)});return new Rt.w0(()=>e?.(r))},requestAnimationFrame(...i){const{delegate:s}=su;return(s?.requestAnimationFrame||requestAnimationFrame)(...i)},cancelAnimationFrame(...i){const{delegate:s}=su;return(s?.cancelAnimationFrame||cancelAnimationFrame)(...i)},delegate:void 0};var ip=E(7565);const mm=new class Yv extends ip.v{flush(s){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:t}=this;let r;s=s||t.shift();do{if(r=s.execute(s.state,s.delay))break}while((s=t[0])&&s.id===e&&t.shift());if(this._active=!1,r){for(;(s=t[0])&&s.id===e&&t.shift();)s.unsubscribe();throw r}}}(class np extends Gb.o{constructor(s,e){super(s,e),this.scheduler=s,this.work=e}requestAsyncId(s,e,t=0){return null!==t&&t>0?super.requestAsyncId(s,e,t):(s.actions.push(this),s._scheduled||(s._scheduled=su.requestAnimationFrame(()=>s.flush(void 0))))}recycleAsyncId(s,e,t=0){if(null!=t&&t>0||null==t&&this.delay>0)return super.recycleAsyncId(s,e,t);s.actions.some(r=>r.id===e)||(su.cancelAnimationFrame(e),s._scheduled=void 0)}});let Jb,$b=1;const gm={};function rp(i){return i in gm&&(delete gm[i],!0)}const $M={setImmediate(i){const s=$b++;return gm[s]=!0,Jb||(Jb=Promise.resolve()),Jb.then(()=>rp(s)&&i()),s},clearImmediate(i){rp(i)}},{setImmediate:Zb,clearImmediate:Qb}=$M,ou={setImmediate(...i){const{delegate:s}=ou;return(s?.setImmediate||Zb)(...i)},clearImmediate(i){const{delegate:s}=ou;return(s?.clearImmediate||Qb)(i)},delegate:void 0},Aa=new class _m extends ip.v{flush(s){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:t}=this;let r;s=s||t.shift();do{if(r=s.execute(s.state,s.delay))break}while((s=t[0])&&s.id===e&&t.shift());if(this._active=!1,r){for(;(s=t[0])&&s.id===e&&t.shift();)s.unsubscribe();throw r}}}(class Kb extends Gb.o{constructor(s,e){super(s,e),this.scheduler=s,this.work=e}requestAsyncId(s,e,t=0){return null!==t&&t>0?super.requestAsyncId(s,e,t):(s.actions.push(this),s._scheduled||(s._scheduled=ou.setImmediate(s.flush.bind(s,void 0))))}recycleAsyncId(s,e,t=0){if(null!=t&&t>0||null==t&&this.delay>0)return super.recycleAsyncId(s,e,t);s.actions.some(r=>r.id===e)||(ou.clearImmediate(e),s._scheduled=void 0)}});var lu=E(4986),wm=E(2805);function Dc(i,s=lu.z){return function cu(i){return(0,Pi.e)((s,e)=>{let t=!1,r=null,d=null,h=!1;const c=()=>{if(d?.unsubscribe(),d=null,t){t=!1;const a=r;r=null,e.next(a)}h&&e.complete()},o=()=>{d=null,h&&e.complete()};s.subscribe((0,nt.x)(e,a=>{t=!0,r=a,d||(0,Qn.Xf)(i(a)).subscribe(d=(0,nt.x)(e,c,o))},()=>{h=!0,(!t||!d||d.closed)&&e.complete()}))})}(()=>(0,wm.H)(i,s))}class ew{}function du(i){return i&&"function"==typeof i.connect}class uu extends ew{constructor(s){super(),this._data=s}connect(){return Vt(this._data)?this._data:(0,xe.of)(this._data)}disconnect(){}}class tw{applyChanges(s,e,t,r,d){s.forEachOperation((h,c,o)=>{let a,l;if(null==h.previousIndex){const u=t(h,c,o);a=e.createEmbeddedView(u.templateRef,u.context,u.index),l=1}else null==o?(e.remove(c),l=3):(a=e.get(c),e.move(a,o),l=2);d&&d({context:a?.context,operation:l,record:h})})}detach(){}}class nw{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(s,e,t,r,d){s.forEachOperation((h,c,o)=>{let a,l;null==h.previousIndex?(a=this._insertView(()=>t(h,c,o),o,e,r(h)),l=a?1:0):null==o?(this._detachAndCacheView(c,e),l=3):(a=this._moveView(c,o,e,r(h)),l=2),d&&d({context:a?.context,operation:l,record:h})})}detach(){for(const s of this._viewCache)s.destroy();this._viewCache=[]}_insertView(s,e,t,r){const d=this._insertViewFromCache(e,t);if(d)return void(d.context.$implicit=r);const h=s();return t.createEmbeddedView(h.templateRef,h.context,h.index)}_detachAndCacheView(s,e){const t=e.detach(s);this._maybeCacheView(t,e)}_moveView(s,e,t,r){const d=t.get(s);return t.move(d,e),d.context.$implicit=r,d}_maybeCacheView(s,e){if(this._viewCache.lengththis._markSelected(d)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...s){this._verifyValueAssignment(s),s.forEach(t=>this._markSelected(t));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...s){this._verifyValueAssignment(s),s.forEach(t=>this._unmarkSelected(t));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...s){this._verifyValueAssignment(s);const e=this.selected,t=new Set(s);s.forEach(d=>this._markSelected(d)),e.filter(d=>!t.has(d)).forEach(d=>this._unmarkSelected(d));const r=this._hasQueuedChanges();return this._emitChangeEvent(),r}toggle(s){return this.isSelected(s)?this.deselect(s):this.select(s)}clear(s=!0){this._unmarkAll();const e=this._hasQueuedChanges();return s&&this._emitChangeEvent(),e}isSelected(s){if(this.compareWith){for(const e of this._selection)if(this.compareWith(e,s))return!0;return!1}return this._selection.has(s)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(s){this._multiple&&this.selected&&this._selected.sort(s)}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(s){this.isSelected(s)||(this._multiple||this._unmarkAll(),this.isSelected(s)||this._selection.add(s),this._emitChanges&&this._selectedToEmit.push(s))}_unmarkSelected(s){this.isSelected(s)&&(this._selection.delete(s),this._emitChanges&&this._deselectedToEmit.push(s))}_unmarkAll(){this.isEmpty()||this._selection.forEach(s=>this._unmarkSelected(s))}_verifyValueAssignment(s){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}}let ym=(()=>{class i{constructor(){this._listeners=[]}notify(e,t){for(let r of this._listeners)r(e,t)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(t=>e!==t)}}ngOnDestroy(){this._listeners=[]}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const vl=new n.OlP("_ViewRepeater"),qv=["contentWrapper"],zv=["*"],Gv=new n.OlP("VIRTUAL_SCROLL_STRATEGY");class iw{constructor(s,e,t){this._scrolledIndexChange=new Me.x,this.scrolledIndexChange=this._scrolledIndexChange.pipe(mo()),this._viewport=null,this._itemSize=s,this._minBufferPx=e,this._maxBufferPx=t}attach(s){this._viewport=s,this._updateTotalContentSize(),this._updateRenderedRange()}detach(){this._scrolledIndexChange.complete(),this._viewport=null}updateItemAndBufferSize(s,e,t){this._itemSize=s,this._minBufferPx=e,this._maxBufferPx=t,this._updateTotalContentSize(),this._updateRenderedRange()}onContentScrolled(){this._updateRenderedRange()}onDataLengthChanged(){this._updateTotalContentSize(),this._updateRenderedRange()}onContentRendered(){}onRenderedOffsetChanged(){}scrollToIndex(s,e){this._viewport&&this._viewport.scrollToOffset(s*this._itemSize,e)}_updateTotalContentSize(){!this._viewport||this._viewport.setTotalContentSize(this._viewport.getDataLength()*this._itemSize)}_updateRenderedRange(){if(!this._viewport)return;const s=this._viewport.getRenderedRange(),e={start:s.start,end:s.end},t=this._viewport.getViewportSize(),r=this._viewport.getDataLength();let d=this._viewport.measureScrollOffset(),h=this._itemSize>0?d/this._itemSize:0;if(e.end>r){const o=Math.ceil(t/this._itemSize),a=Math.max(0,Math.min(h,r-o));h!=a&&(h=a,d=a*this._itemSize,e.start=Math.floor(h)),e.end=Math.max(0,Math.min(r,e.start+o))}const c=d-e.start*this._itemSize;if(c0&&(e.end=Math.min(r,e.end+a),e.start=Math.max(0,Math.floor(h-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(e),this._viewport.setRenderedContentOffset(this._itemSize*e.start),this._scrolledIndexChange.next(Math.floor(h))}}function Cm(i){return i._scrollStrategy}let Wv=(()=>{class i{constructor(){this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new iw(this.itemSize,this.minBufferPx,this.maxBufferPx)}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=_n(e)}get minBufferPx(){return this._minBufferPx}set minBufferPx(e){this._minBufferPx=_n(e)}get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(e){this._maxBufferPx=_n(e)}ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[n._Bn([{provide:Gv,useFactory:Cm,deps:[(0,n.Gpc)(()=>i)]}]),n.TTD]}),i})(),Tl=(()=>{class i{constructor(e,t,r){this._ngZone=e,this._platform=t,this._scrolled=new Me.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new ln.y(t=>{this._globalSubscription||this._addGlobalListener();const r=e>0?this._scrolled.pipe(Dc(e)).subscribe(t):this._scrolled.subscribe(t);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,xe.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,t)=>this.deregister(t)),this._scrolled.complete()}ancestorScrolled(e,t){const r=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe((0,Ce.h)(d=>!d||r.indexOf(d)>-1))}getAncestorScrollContainers(e){const t=[];return this.scrollContainers.forEach((r,d)=>{this._scrollableContainsElement(d,e)&&t.push(d)}),t}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,t){let r=ai(t),d=e.getElementRef().nativeElement;do{if(r==d)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>ea(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(n.R0b),n.LFG(yn),n.LFG(x.K0,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),xl=(()=>{class i{constructor(e,t,r,d){this.elementRef=e,this.scrollDispatcher=t,this.ngZone=r,this.dir=d,this._destroyed=new Me.x,this._elementScrolled=new ln.y(h=>this.ngZone.runOutsideAngular(()=>ea(this.elementRef.nativeElement,"scroll").pipe(Ke(this._destroyed)).subscribe(h)))}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(e){const t=this.elementRef.nativeElement,r=this.dir&&"rtl"==this.dir.value;null==e.left&&(e.left=r?e.end:e.start),null==e.right&&(e.right=r?e.start:e.end),null!=e.bottom&&(e.top=t.scrollHeight-t.clientHeight-e.bottom),r&&0!=Yd()?(null!=e.left&&(e.right=t.scrollWidth-t.clientWidth-e.left),2==Yd()?e.left=e.right:1==Yd()&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.left=t.scrollWidth-t.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){const t=this.elementRef.nativeElement;eb()?t.scrollTo(e):(null!=e.top&&(t.scrollTop=e.top),null!=e.left&&(t.scrollLeft=e.left))}measureScrollOffset(e){const t="left",r="right",d=this.elementRef.nativeElement;if("top"==e)return d.scrollTop;if("bottom"==e)return d.scrollHeight-d.clientHeight-d.scrollTop;const h=this.dir&&"rtl"==this.dir.value;return"start"==e?e=h?r:t:"end"==e&&(e=h?t:r),h&&2==Yd()?e==t?d.scrollWidth-d.clientWidth-d.scrollLeft:d.scrollLeft:h&&1==Yd()?e==t?d.scrollLeft+d.scrollWidth-d.clientWidth:-d.scrollLeft:e==t?d.scrollLeft:d.scrollWidth-d.clientWidth-d.scrollLeft}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(Tl),n.Y36(n.R0b),n.Y36(xn,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),i})(),va=(()=>{class i{constructor(e,t,r){this._platform=e,this._change=new Me.x,this._changeListener=d=>{this._change.next(d)},this._document=r,t.runOutsideAngular(()=>{if(e.isBrowser){const d=this._getWindow();d.addEventListener("resize",this._changeListener),d.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:t,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+t,height:r,width:t}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,t=this._getWindow(),r=e.documentElement,d=r.getBoundingClientRect();return{top:-d.top||e.body.scrollTop||t.scrollY||r.scrollTop||0,left:-d.left||e.body.scrollLeft||t.scrollX||r.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(Dc(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(yn),n.LFG(n.R0b),n.LFG(x.K0,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const Jv=new n.OlP("VIRTUAL_SCROLLABLE");let rw=(()=>{class i extends xl{constructor(e,t,r,d){super(e,t,r,d)}measureViewportSize(e){const t=this.elementRef.nativeElement;return"horizontal"===e?t.clientWidth:t.clientHeight}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(Tl),n.Y36(n.R0b),n.Y36(xn,8))},i.\u0275dir=n.lG2({type:i,features:[n.qOj]}),i})();const Sl=typeof requestAnimationFrame<"u"?mm:Aa;let Zv=(()=>{class i extends rw{constructor(e,t,r,d,h,c,o,a){super(e,c,r,h),this.elementRef=e,this._changeDetectorRef=t,this._scrollStrategy=d,this.scrollable=a,this._detachedSubject=new Me.x,this._renderedRangeSubject=new Me.x,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new ln.y(l=>this._scrollStrategy.scrolledIndexChange.subscribe(u=>Promise.resolve().then(()=>this.ngZone.run(()=>l.next(u))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=Rt.w0.EMPTY,this._viewportChanges=o.change().subscribe(()=>{this.checkViewportSize()}),this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this)}get orientation(){return this._orientation}set orientation(e){this._orientation!==e&&(this._orientation=e,this._calculateSpacerSize())}get appendOnly(){return this._appendOnly}set appendOnly(e){this._appendOnly=Oe(e)}ngOnInit(){this.scrollable===this&&super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.scrollable.elementScrolled().pipe(Zt(null),Dc(0,Sl)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()}))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(e){this.ngZone.runOutsideAngular(()=>{this._forOf=e,this._forOf.dataStream.pipe(Ke(this._detachedSubject)).subscribe(t=>{const r=t.length;r!==this._dataLength&&(this._dataLength=r,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}measureBoundingClientRectWithScrollOffset(e){return this.getElementRef().nativeElement.getBoundingClientRect()[e]}setTotalContentSize(e){this._totalContentSize!==e&&(this._totalContentSize=e,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(e){(function ap(i,s){return i.start==s.start&&i.end==s.end})(this._renderedRange,e)||(this.appendOnly&&(e={start:0,end:Math.max(this._renderedRange.end,e.end)}),this._renderedRangeSubject.next(this._renderedRange=e),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(e,t="to-start"){e=this.appendOnly&&"to-start"===t?0:e;const d="horizontal"==this.orientation,h=d?"X":"Y";let o=`translate${h}(${Number((d&&this.dir&&"rtl"==this.dir.value?-1:1)*e)}px)`;this._renderedContentOffset=e,"to-end"===t&&(o+=` translate${h}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=o&&(this._renderedContentTransform=o,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(e,t="auto"){const r={behavior:t};"horizontal"===this.orientation?r.start=e:r.top=e,this.scrollable.scrollTo(r)}scrollToIndex(e,t="auto"){this._scrollStrategy.scrollToIndex(e,t)}measureScrollOffset(e){let t;return t=this.scrollable==this?r=>super.measureScrollOffset(r):r=>this.scrollable.measureScrollOffset(r),Math.max(0,t(e??("horizontal"===this.orientation?"start":"top"))-this.measureViewportOffset())}measureViewportOffset(e){let t;const r="left",d="right",h="rtl"==this.dir?.value;t="start"==e?h?d:r:"end"==e?h?r:d:e||("horizontal"===this.orientation?"left":"top");const c=this.scrollable.measureBoundingClientRectWithScrollOffset(t);return this.elementRef.nativeElement.getBoundingClientRect()[t]-c}measureRenderedContentSize(){const e=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?e.offsetWidth:e.offsetHeight}measureRangeSize(e){return this._forOf?this._forOf.measureRangeSize(e,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}_markChangeDetectionNeeded(e){e&&this._runAfterChangeDetection.push(e),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(()=>this._changeDetectorRef.markForCheck());const e=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const t of e)t()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(n.R0b),n.Y36(Gv,8),n.Y36(xn,8),n.Y36(Tl),n.Y36(va),n.Y36(Jv,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(e,t){if(1&e&&n.Gf(qv,7),2&e){let r;n.iGM(r=n.CRH())&&(t._contentWrapper=r.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(e,t){2&e&&n.ekj("cdk-virtual-scroll-orientation-horizontal","horizontal"===t.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==t.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[n._Bn([{provide:xl,useFactory:(s,e)=>s||e,deps:[rw,i]}]),n.qOj],ngContentSelectors:zv,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(e,t){1&e&&(n.F$t(),n.TgZ(0,"div",0,1),n.Hsn(2),n.qZA(),n._UZ(3,"div",2)),2&e&&(n.xp6(3),n.Udp("width",t._totalContentWidth)("height",t._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}"],encapsulation:2,changeDetection:0}),i})();function Hc(i,s,e){if(!e.getBoundingClientRect)return 0;const r=e.getBoundingClientRect();return"horizontal"===i?"start"===s?r.left:r.right:"start"===s?r.top:r.bottom}let Qv=(()=>{class i{constructor(e,t,r,d,h,c){this._viewContainerRef=e,this._template=t,this._differs=r,this._viewRepeater=d,this._viewport=h,this.viewChange=new Me.x,this._dataSourceChanges=new Me.x,this.dataStream=this._dataSourceChanges.pipe(Zt(null),function Xb(){return(0,Pi.e)((i,s)=>{let e,t=!1;i.subscribe((0,nt.x)(s,r=>{const d=e;e=r,t&&s.next([d,r]),t=!0}))})}(),(0,bn.w)(([o,a])=>this._changeDataSource(o,a)),tn(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new Me.x,this.dataStream.subscribe(o=>{this._data=o,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe(Ke(this._destroyed)).subscribe(o=>{this._renderedRange=o,this.viewChange.observers.length&&c.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(e){this._cdkVirtualForOf=e,du(e)?this._dataSourceChanges.next(e):this._dataSourceChanges.next(new uu(Vt(e)?e:Array.from(e||[])))}get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(e){this._needsUpdate=!0,this._cdkVirtualForTrackBy=e?(t,r)=>e(t+(this._renderedRange?this._renderedRange.start:0),r):void 0}set cdkVirtualForTemplate(e){e&&(this._needsUpdate=!0,this._template=e)}get cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set cdkVirtualForTemplateCacheSize(e){this._viewRepeater.viewCacheSize=_n(e)}measureRangeSize(e,t){if(e.start>=e.end)return 0;const r=e.start-this._renderedRange.start,d=e.end-e.start;let h,c;for(let o=0;o-1;o--){const a=this._viewContainerRef.get(o+r);if(a&&a.rootNodes.length){c=a.rootNodes[a.rootNodes.length-1];break}}return h&&c?Hc(t,"end",c)-Hc(t,"start",h):0}ngDoCheck(){if(this._differ&&this._needsUpdate){const e=this._differ.diff(this._renderedItems);e?this._applyChanges(e):this._updateContext(),this._needsUpdate=!1}}ngOnDestroy(){this._viewport.detach(),this._dataSourceChanges.next(void 0),this._dataSourceChanges.complete(),this.viewChange.complete(),this._destroyed.next(),this._destroyed.complete(),this._viewRepeater.detach()}_onRenderedDataChange(){!this._renderedRange||(this._renderedItems=this._data.slice(this._renderedRange.start,this._renderedRange.end),this._differ||(this._differ=this._differs.find(this._renderedItems).create((e,t)=>this.cdkVirtualForTrackBy?this.cdkVirtualForTrackBy(e,t):t)),this._needsUpdate=!0)}_changeDataSource(e,t){return e&&e.disconnect(this),this._needsUpdate=!0,t?t.connect(this):(0,xe.of)()}_updateContext(){const e=this._data.length;let t=this._viewContainerRef.length;for(;t--;){const r=this._viewContainerRef.get(t);r.context.index=this._renderedRange.start+t,r.context.count=e,this._updateComputedContextProperties(r.context),r.detectChanges()}}_applyChanges(e){this._viewRepeater.applyChanges(e,this._viewContainerRef,(d,h,c)=>this._getEmbeddedViewArgs(d,c),d=>d.item),e.forEachIdentityChange(d=>{this._viewContainerRef.get(d.currentIndex).context.$implicit=d.item});const t=this._data.length;let r=this._viewContainerRef.length;for(;r--;){const d=this._viewContainerRef.get(r);d.context.index=this._renderedRange.start+r,d.context.count=t,this._updateComputedContextProperties(d.context)}}_updateComputedContextProperties(e){e.first=0===e.index,e.last=e.index===e.count-1,e.even=e.index%2==0,e.odd=!e.even}_getEmbeddedViewArgs(e,t){return{templateRef:this._template,context:{$implicit:e.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:t}}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.s_b),n.Y36(n.Rgc),n.Y36(n.ZZ4),n.Y36(vl),n.Y36(Zv,4),n.Y36(n.R0b))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},features:[n._Bn([{provide:vl,useClass:nw}])]}),i})(),Ds=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})(),nr=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[ru,Ds,ru,Ds]}),i})();class bo{attach(s){return this._attachedHost=s,s.attach(this)}detach(){let s=this._attachedHost;null!=s&&(this._attachedHost=null,s.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(s){this._attachedHost=s}}class xa extends bo{constructor(s,e,t,r){super(),this.component=s,this.viewContainerRef=e,this.injector=t,this.componentFactoryResolver=r}}class Ir extends bo{constructor(s,e,t,r){super(),this.templateRef=s,this.viewContainerRef=e,this.context=t,this.injector=r}get origin(){return this.templateRef.elementRef}attach(s,e=this.context){return this.context=e,super.attach(s)}detach(){return this.context=void 0,super.detach()}}class Rc extends bo{constructor(s){super(),this.element=s instanceof n.SBq?s.nativeElement:s}}class wo{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(s){return s instanceof xa?(this._attachedPortal=s,this.attachComponentPortal(s)):s instanceof Ir?(this._attachedPortal=s,this.attachTemplatePortal(s)):this.attachDomPortal&&s instanceof Rc?(this._attachedPortal=s,this.attachDomPortal(s)):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(s){this._disposeFn=s}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class kc extends wo{constructor(s,e,t,r,d){super(),this.outletElement=s,this._componentFactoryResolver=e,this._appRef=t,this._defaultInjector=r,this.attachDomPortal=h=>{const c=h.element,o=this._document.createComment("dom-portal");c.parentNode.insertBefore(o,c),this.outletElement.appendChild(c),this._attachedPortal=h,super.setDisposeFn(()=>{o.parentNode&&o.parentNode.replaceChild(c,o)})},this._document=d}attachComponentPortal(s){const t=(s.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(s.component);let r;return s.viewContainerRef?(r=s.viewContainerRef.createComponent(t,s.viewContainerRef.length,s.injector||s.viewContainerRef.injector),this.setDisposeFn(()=>r.destroy())):(r=t.create(s.injector||this._defaultInjector||n.zs3.NULL),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=s,r}attachTemplatePortal(s){let e=s.viewContainerRef,t=e.createEmbeddedView(s.templateRef,s.context,{injector:s.injector});return t.rootNodes.forEach(r=>this.outletElement.appendChild(r)),t.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(t);-1!==r&&e.remove(r)}),this._attachedPortal=s,t}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(s){return s.hostView.rootNodes[0]}}let Lc=(()=>{class i extends Ir{constructor(e,t){super(e,t)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.Rgc),n.Y36(n.s_b))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[n.qOj]}),i})(),Sa=(()=>{class i extends wo{constructor(e,t,r){super(),this._componentFactoryResolver=e,this._viewContainerRef=t,this._isInitialized=!1,this.attached=new n.vpe,this.attachDomPortal=d=>{const h=d.element,c=this._document.createComment("dom-portal");d.setAttachedHost(this),h.parentNode.insertBefore(c,h),this._getRootNode().appendChild(h),this._attachedPortal=d,super.setDisposeFn(()=>{c.parentNode&&c.parentNode.replaceChild(h,c)})},this._document=r}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(e){e.setAttachedHost(this);const t=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,d=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),h=t.createComponent(d,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(h.hostView.rootNodes[0]),super.setDisposeFn(()=>h.destroy()),this._attachedPortal=e,this._attachedRef=h,this.attached.emit(h),h}attachTemplatePortal(e){e.setAttachedHost(this);const t=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=t,this.attached.emit(t),t}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n._Vd),n.Y36(n.s_b),n.Y36(x.K0))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[n.qOj]}),i})(),Hs=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})();var Sn=E(6451);const Tm=eb();class ow{constructor(s,e){this._viewportRuler=s,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const s=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=s.style.left||"",this._previousHTMLStyles.top=s.style.top||"",s.style.left=hi(-this._previousScrollPosition.left),s.style.top=hi(-this._previousScrollPosition.top),s.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const s=this._document.documentElement,t=s.style,r=this._document.body.style,d=t.scrollBehavior||"",h=r.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,s.classList.remove("cdk-global-scrollblock"),Tm&&(t.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Tm&&(t.scrollBehavior=d,r.scrollBehavior=h)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width}}class nT{constructor(s,e,t,r){this._scrollDispatcher=s,this._ngZone=e,this._viewportRuler=t,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(s){this._overlayRef=s}enable(){if(this._scrollSubscription)return;const s=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=s.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=s.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class lw{enable(){}disable(){}attach(){}}function xm(i,s){return s.some(e=>i.bottome.bottom||i.righte.right)}function Sm(i,s){return s.some(e=>i.tope.bottom||i.lefte.right)}class iT{constructor(s,e,t,r){this._scrollDispatcher=s,this._viewportRuler=e,this._ngZone=t,this._config=r,this._scrollSubscription=null}attach(s){this._overlayRef=s}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 e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:t,height:r}=this._viewportRuler.getViewportSize();xm(e,[{width:t,height:r,bottom:r,right:t,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 cw=(()=>{class i{constructor(e,t,r,d){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=r,this.noop=()=>new lw,this.close=h=>new nT(this._scrollDispatcher,this._ngZone,this._viewportRuler,h),this.block=()=>new ow(this._viewportRuler,this._document),this.reposition=h=>new iT(this._scrollDispatcher,this._viewportRuler,this._ngZone,h),this._document=d}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Tl),n.LFG(va),n.LFG(n.R0b),n.LFG(x.K0))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();class Ml{constructor(s){if(this.scrollStrategy=new lw,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,s){const e=Object.keys(s);for(const t of e)void 0!==s[t]&&(this[t]=s[t])}}}class op{constructor(s,e){this.connectionPair=s,this.scrollableViewProperties=e}}let hw=(()=>{class i{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const t=this._attachedOverlays.indexOf(e);t>-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this.detach()}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(x.K0))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),lp=(()=>{class i extends hw{constructor(e,t){super(e),this._ngZone=t,this._keydownListener=r=>{const d=this._attachedOverlays;for(let h=d.length-1;h>-1;h--)if(d[h]._keydownEvents.observers.length>0){const c=d[h]._keydownEvents;this._ngZone?this._ngZone.run(()=>c.next(r)):c.next(r);break}}}add(e){super.add(e),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(x.K0),n.LFG(n.R0b,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),cp=(()=>{class i extends hw{constructor(e,t,r){super(e),this._platform=t,this._ngZone=r,this._cursorStyleIsSet=!1,this._pointerDownListener=d=>{this._pointerDownEventTarget=ya(d)},this._clickListener=d=>{const h=ya(d),c="click"===d.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:h;this._pointerDownEventTarget=null;const o=this._attachedOverlays.slice();for(let a=o.length-1;a>-1;a--){const l=o[a];if(l._outsidePointerEvents.observers.length<1||!l.hasAttached())continue;if(l.overlayElement.contains(h)||l.overlayElement.contains(c))break;const u=l._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>u.next(d)):u.next(d)}}}add(e){if(super.add(e),!this._isAttached){const t=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(t)):this._addEventListeners(t),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(x.K0),n.LFG(yn),n.LFG(n.R0b,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Ic=(()=>{class i{constructor(e,t){this._platform=t,this._document=e}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||jf()){const r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let d=0;dthis._backdropClick.next(u),this._backdropTransitionendHandler=u=>{this._disposeBackdrop(u.target)},this._keydownEvents=new Me.x,this._outsidePointerEvents=new Me.x,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(s){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const e=this._portalOutlet.attach(s);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,rt.q)(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),"function"==typeof e?.onDestroy&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),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 s=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),s}dispose(){const s=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),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?.remove(),this._previousHostParent=this._pane=this._host=null,s&&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(s){s!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=s,this.hasAttached()&&(s.attach(this),this.updatePosition()))}updateSize(s){this._config={...this._config,...s},this._updateElementSize()}setDirection(s){this._config={...this._config,direction:s},this._updateElementDirection()}addPanelClass(s){this._pane&&this._toggleClasses(this._pane,s,!0)}removePanelClass(s){this._pane&&this._toggleClasses(this._pane,s,!1)}getDirection(){const s=this._config.direction;return s?"string"==typeof s?s:s.value:"ltr"}updateScrollStrategy(s){s!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=s,this.hasAttached()&&(s.attach(this),s.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const s=this._pane.style;s.width=hi(this._config.width),s.height=hi(this._config.height),s.minWidth=hi(this._config.minWidth),s.minHeight=hi(this._config.minHeight),s.maxWidth=hi(this._config.maxWidth),s.maxHeight=hi(this._config.maxHeight)}_togglePointerEvents(s){this._pane.style.pointerEvents=s?"":"none"}_attachBackdrop(){const s="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),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),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(s)})}):this._backdropElement.classList.add(s)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const s=this._backdropElement;if(s){if(this._animationsDisabled)return void this._disposeBackdrop(s);s.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{s.addEventListener("transitionend",this._backdropTransitionendHandler)}),s.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(s)},500))}}_toggleClasses(s,e,t){const r=Yh(e||[]).filter(d=>!!d);r.length&&(t?s.classList.add(...r):s.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const s=this._ngZone.onStable.pipe(Ke((0,Sn.T)(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._host.remove()),s.unsubscribe())})})}_disposeScrollStrategy(){const s=this._scrollStrategy;s&&(s.disable(),s.detach&&s.detach())}_disposeBackdrop(s){s&&(s.removeEventListener("click",this._backdropClickHandler),s.removeEventListener("transitionend",this._backdropTransitionendHandler),s.remove(),this._backdropElement===s&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const dp="cdk-overlay-connected-position-bounding-box",pw=/([A-Za-z%]+)$/;class Em{constructor(s,e,t,r,d){this._viewportRuler=e,this._document=t,this._platform=r,this._overlayContainer=d,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 Me.x,this._resizeSubscription=Rt.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(s)}get positions(){return this._preferredPositions}attach(s){this._validatePositions(),s.hostElement.classList.add(dp),this._overlayRef=s,this._boundingBox=s.hostElement,this._pane=s.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(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const s=this._originRect,e=this._overlayRect,t=this._viewportRect,r=this._containerRect,d=[];let h;for(let c of this._preferredPositions){let o=this._getOriginPoint(s,r,c),a=this._getOverlayPoint(o,e,c),l=this._getOverlayFit(a,e,t,c);if(l.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(c,o);this._canFitWithFlexibleDimensions(l,a,t)?d.push({position:c,origin:o,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(o,c)}):(!h||h.overlayFit.visibleAreao&&(o=l,c=a)}return this._isPushed=!1,void this._applyPosition(c.position,c.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(h.position,h.originPoint);this._applyPosition(h.position,h.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Ps(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(dp),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const s=this._lastPosition;if(s){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._getOriginPoint(this._originRect,this._containerRect,s);this._applyPosition(s,e)}else this.apply()}withScrollableContainers(s){return this._scrollables=s,this}withPositions(s){return this._preferredPositions=s,-1===s.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(s){return this._viewportMargin=s,this}withFlexibleDimensions(s=!0){return this._hasFlexibleDimensions=s,this}withGrowAfterOpen(s=!0){return this._growAfterOpen=s,this}withPush(s=!0){return this._canPush=s,this}withLockedPosition(s=!0){return this._positionLocked=s,this}setOrigin(s){return this._origin=s,this}withDefaultOffsetX(s){return this._offsetX=s,this}withDefaultOffsetY(s){return this._offsetY=s,this}withTransformOriginOn(s){return this._transformOriginSelector=s,this}_getOriginPoint(s,e,t){let r,d;if("center"==t.originX)r=s.left+s.width/2;else{const h=this._isRtl()?s.right:s.left,c=this._isRtl()?s.left:s.right;r="start"==t.originX?h:c}return e.left<0&&(r-=e.left),d="center"==t.originY?s.top+s.height/2:"top"==t.originY?s.top:s.bottom,e.top<0&&(d-=e.top),{x:r,y:d}}_getOverlayPoint(s,e,t){let r,d;return r="center"==t.overlayX?-e.width/2:"start"===t.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,d="center"==t.overlayY?-e.height/2:"top"==t.overlayY?0:-e.height,{x:s.x+r,y:s.y+d}}_getOverlayFit(s,e,t,r){const d=fw(e);let{x:h,y:c}=s,o=this._getOffset(r,"x"),a=this._getOffset(r,"y");o&&(h+=o),a&&(c+=a);let p=0-c,m=c+d.height-t.height,g=this._subtractOverflows(d.width,0-h,h+d.width-t.width),f=this._subtractOverflows(d.height,p,m),y=g*f;return{visibleArea:y,isCompletelyWithinViewport:d.width*d.height===y,fitsInViewportVertically:f===d.height,fitsInViewportHorizontally:g==d.width}}_canFitWithFlexibleDimensions(s,e,t){if(this._hasFlexibleDimensions){const r=t.bottom-e.y,d=t.right-e.x,h=up(this._overlayRef.getConfig().minHeight),c=up(this._overlayRef.getConfig().minWidth),a=s.fitsInViewportHorizontally||null!=c&&c<=d;return(s.fitsInViewportVertically||null!=h&&h<=r)&&a}return!1}_pushOverlayOnScreen(s,e,t){if(this._previousPushAmount&&this._positionLocked)return{x:s.x+this._previousPushAmount.x,y:s.y+this._previousPushAmount.y};const r=fw(e),d=this._viewportRect,h=Math.max(s.x+r.width-d.width,0),c=Math.max(s.y+r.height-d.height,0),o=Math.max(d.top-t.top-s.y,0),a=Math.max(d.left-t.left-s.x,0);let l=0,u=0;return l=r.width<=d.width?a||-h:s.xg&&!this._isInitialRender&&!this._growAfterOpen&&(h=s.y-g/2)}if("end"===e.overlayX&&!r||"start"===e.overlayX&&r)p=t.width-s.x+this._viewportMargin,l=s.x-this._viewportMargin;else if("start"===e.overlayX&&!r||"end"===e.overlayX&&r)u=s.x,l=t.right-s.x;else{const m=Math.min(t.right-s.x+t.left,s.x),g=this._lastBoundingBoxSize.width;l=2*m,u=s.x-m,l>g&&!this._isInitialRender&&!this._growAfterOpen&&(u=s.x-g/2)}return{top:h,left:u,bottom:c,right:p,width:l,height:d}}_setBoundingBoxStyles(s,e){const t=this._calculateBoundingBoxRect(s,e);!this._isInitialRender&&!this._growAfterOpen&&(t.height=Math.min(t.height,this._lastBoundingBoxSize.height),t.width=Math.min(t.width,this._lastBoundingBoxSize.width));const r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{const d=this._overlayRef.getConfig().maxHeight,h=this._overlayRef.getConfig().maxWidth;r.height=hi(t.height),r.top=hi(t.top),r.bottom=hi(t.bottom),r.width=hi(t.width),r.left=hi(t.left),r.right=hi(t.right),r.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",r.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",d&&(r.maxHeight=hi(d)),h&&(r.maxWidth=hi(h))}this._lastBoundingBoxSize=t,Ps(this._boundingBox.style,r)}_resetBoundingBoxStyles(){Ps(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Ps(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(s,e){const t={},r=this._hasExactPosition(),d=this._hasFlexibleDimensions,h=this._overlayRef.getConfig();if(r){const l=this._viewportRuler.getViewportScrollPosition();Ps(t,this._getExactOverlayY(e,s,l)),Ps(t,this._getExactOverlayX(e,s,l))}else t.position="static";let c="",o=this._getOffset(e,"x"),a=this._getOffset(e,"y");o&&(c+=`translateX(${o}px) `),a&&(c+=`translateY(${a}px)`),t.transform=c.trim(),h.maxHeight&&(r?t.maxHeight=hi(h.maxHeight):d&&(t.maxHeight="")),h.maxWidth&&(r?t.maxWidth=hi(h.maxWidth):d&&(t.maxWidth="")),Ps(this._pane.style,t)}_getExactOverlayY(s,e,t){let r={top:"",bottom:""},d=this._getOverlayPoint(e,this._overlayRect,s);return this._isPushed&&(d=this._pushOverlayOnScreen(d,this._overlayRect,t)),"bottom"===s.overlayY?r.bottom=this._document.documentElement.clientHeight-(d.y+this._overlayRect.height)+"px":r.top=hi(d.y),r}_getExactOverlayX(s,e,t){let h,r={left:"",right:""},d=this._getOverlayPoint(e,this._overlayRect,s);return this._isPushed&&(d=this._pushOverlayOnScreen(d,this._overlayRect,t)),h=this._isRtl()?"end"===s.overlayX?"left":"right":"end"===s.overlayX?"right":"left","right"===h?r.right=this._document.documentElement.clientWidth-(d.x+this._overlayRect.width)+"px":r.left=hi(d.x),r}_getScrollVisibility(){const s=this._getOriginRect(),e=this._pane.getBoundingClientRect(),t=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Sm(s,t),isOriginOutsideView:xm(s,t),isOverlayClipped:Sm(e,t),isOverlayOutsideView:xm(e,t)}}_subtractOverflows(s,...e){return e.reduce((t,r)=>t-Math.max(r,0),s)}_getNarrowedViewportRect(){const s=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,t=this._viewportRuler.getViewportScrollPosition();return{top:t.top+this._viewportMargin,left:t.left+this._viewportMargin,right:t.left+s-this._viewportMargin,bottom:t.top+e-this._viewportMargin,width:s-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(s,e){return"x"===e?s.offsetX??this._offsetX:s.offsetY??this._offsetY}_validatePositions(){}_addPanelClasses(s){this._pane&&Yh(s).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(s=>{this._pane.classList.remove(s)}),this._appliedPanelClasses=[])}_getOriginRect(){const s=this._origin;if(s instanceof n.SBq)return s.nativeElement.getBoundingClientRect();if(s instanceof Element)return s.getBoundingClientRect();const e=s.width||0,t=s.height||0;return{top:s.y,bottom:s.y+t,left:s.x,right:s.x+e,height:t,width:e}}}function Ps(i,s){for(let e in s)s.hasOwnProperty(e)&&(i[e]=s[e]);return i}function up(i){if("number"!=typeof i&&null!=i){const[s,e]=i.split(pw);return e&&"px"!==e?null:parseFloat(s)}return i||null}function fw(i){return{top:Math.floor(i.top),right:Math.floor(i.right),bottom:Math.floor(i.bottom),left:Math.floor(i.left),width:Math.floor(i.width),height:Math.floor(i.height)}}const Dm="cdk-global-overlay-wrapper";class mw{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(s){const e=s.getConfig();this._overlayRef=s,this._width&&!e.width&&s.updateSize({width:this._width}),this._height&&!e.height&&s.updateSize({height:this._height}),s.hostElement.classList.add(Dm),this._isDisposed=!1}top(s=""){return this._bottomOffset="",this._topOffset=s,this._alignItems="flex-start",this}left(s=""){return this._xOffset=s,this._xPosition="left",this}bottom(s=""){return this._topOffset="",this._bottomOffset=s,this._alignItems="flex-end",this}right(s=""){return this._xOffset=s,this._xPosition="right",this}start(s=""){return this._xOffset=s,this._xPosition="start",this}end(s=""){return this._xOffset=s,this._xPosition="end",this}width(s=""){return this._overlayRef?this._overlayRef.updateSize({width:s}):this._width=s,this}height(s=""){return this._overlayRef?this._overlayRef.updateSize({height:s}):this._height=s,this}centerHorizontally(s=""){return this.left(s),this._xPosition="center",this}centerVertically(s=""){return this.top(s),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const s=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,t=this._overlayRef.getConfig(),{width:r,height:d,maxWidth:h,maxHeight:c}=t,o=!("100%"!==r&&"100vw"!==r||h&&"100%"!==h&&"100vw"!==h),a=!("100%"!==d&&"100vh"!==d||c&&"100%"!==c&&"100vh"!==c),l=this._xPosition,u=this._xOffset,p="rtl"===this._overlayRef.getConfig().direction;let m="",g="",f="";o?f="flex-start":"center"===l?(f="center",p?g=u:m=u):p?"left"===l||"end"===l?(f="flex-end",m=u):("right"===l||"start"===l)&&(f="flex-start",g=u):"left"===l||"start"===l?(f="flex-start",m=u):("right"===l||"end"===l)&&(f="flex-end",g=u),s.position=this._cssPosition,s.marginLeft=o?"0":m,s.marginTop=a?"0":this._topOffset,s.marginBottom=this._bottomOffset,s.marginRight=o?"0":g,e.justifyContent=f,e.alignItems=a?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const s=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,t=e.style;e.classList.remove(Dm),t.justifyContent=t.alignItems=s.marginTop=s.marginBottom=s.marginLeft=s.marginRight=s.position="",this._overlayRef=null,this._isDisposed=!0}}let sT=(()=>{class i{constructor(e,t,r,d){this._viewportRuler=e,this._document=t,this._platform=r,this._overlayContainer=d}global(){return new mw}flexibleConnectedTo(e){return new Em(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(va),n.LFG(x.K0),n.LFG(yn),n.LFG(Ic))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),gw=0,rr=(()=>{class i{constructor(e,t,r,d,h,c,o,a,l,u,p,m){this.scrollStrategies=e,this._overlayContainer=t,this._componentFactoryResolver=r,this._positionBuilder=d,this._keyboardDispatcher=h,this._injector=c,this._ngZone=o,this._document=a,this._directionality=l,this._location=u,this._outsideClickDispatcher=p,this._animationsModuleType=m}create(e){const t=this._createHostElement(),r=this._createPaneElement(t),d=this._createPortalOutlet(r),h=new Ml(e);return h.direction=h.direction||this._directionality.value,new Oc(d,t,r,h,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(e){const t=this._document.createElement("div");return t.id="cdk-overlay-"+gw++,t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(n.z2F)),new kc(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(cw),n.LFG(Ic),n.LFG(n._Vd),n.LFG(sT),n.LFG(lp),n.LFG(n.zs3),n.LFG(n.R0b),n.LFG(x.K0),n.LFG(xn),n.LFG(x.Ye),n.LFG(cp),n.LFG(n.QbO,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();const Hm=[{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"}],hp=new n.OlP("cdk-connected-overlay-scroll-strategy");let Pm=(()=>{class i{constructor(e){this.elementRef=e}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),i})(),Rm=(()=>{class i{constructor(e,t,r,d,h){this._overlay=e,this._dir=h,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=Rt.w0.EMPTY,this._attachSubscription=Rt.w0.EMPTY,this._detachSubscription=Rt.w0.EMPTY,this._positionSubscription=Rt.w0.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new n.vpe,this.positionChange=new n.vpe,this.attach=new n.vpe,this.detach=new n.vpe,this.overlayKeydown=new n.vpe,this.overlayOutsideClick=new n.vpe,this._templatePortal=new Ir(t,r),this._scrollStrategyFactory=d,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=Oe(e)}get lockPosition(){return this._lockPosition}set lockPosition(e){this._lockPosition=Oe(e)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(e){this._flexibleDimensions=Oe(e)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(e){this._growAfterOpen=Oe(e)}get push(){return this._push}set push(e){this._push=Oe(e)}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(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=Hm);const e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(t=>{this.overlayKeydown.next(t),27===t.keyCode&&!this.disableClose&&!ri(t)&&(t.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(t=>{this.overlayOutsideClick.next(t)})}_buildConfig(){const e=this._position=this.positionStrategy||this._createPositionStrategy(),t=new Ml({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(t.width=this.width),(this.height||0===this.height)&&(t.height=this.height),(this.minWidth||0===this.minWidth)&&(t.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(t.minHeight=this.minHeight),this.backdropClass&&(t.backdropClass=this.backdropClass),this.panelClass&&(t.panelClass=this.panelClass),t}_updatePositionStrategy(e){const t=this.positions.map(r=>({originX:r.originX,originY:r.originY,overlayX:r.overlayX,overlayY:r.overlayY,offsetX:r.offsetX||this.offsetX,offsetY:r.offsetY||this.offsetY,panelClass:r.panelClass||void 0}));return e.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(t).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const e=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(e),e}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof Pm?this.origin.elementRef:this.origin}_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(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(rc(()=>this.positionChange.observers.length>0)).subscribe(e=>{this.positionChange.emit(e),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(rr),n.Y36(n.Rgc),n.Y36(n.s_b),n.Y36(hp),n.Y36(xn,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[n.TTD]}),i})();const bw={provide:hp,deps:[rr],useFactory:function _w(i){return()=>i.scrollStrategies.reposition()}};let El=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[rr,bw],imports:[ru,Hs,nr,nr]}),i})();class km{}const yo="*";function fn(i,s){return{type:7,name:i,definitions:s,options:{}}}function Tt(i,s=null){return{type:4,styles:s,timings:i}}function fu(i,s=null){return{type:3,steps:i,options:s}}function yw(i,s=null){return{type:2,steps:i,options:s}}function He(i){return{type:6,styles:i,offset:null}}function Pt(i,s,e){return{type:0,name:i,styles:s,options:e}}function Dl(i){return{type:5,steps:i}}function xt(i,s,e=null){return{type:1,expr:i,animation:s,options:e}}function pp(i=null){return{type:9,options:i}}function gr(i,s,e=null){return{type:11,selector:i,animation:s,options:e}}function Cw(i){Promise.resolve(null).then(i)}class gu{constructor(s=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=s+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(s=>s()),this._onDoneFns=[])}onStart(s){this._originalOnStartFns.push(s),this._onStartFns.push(s)}onDone(s){this._originalOnDoneFns.push(s),this._onDoneFns.push(s)}onDestroy(s){this._onDestroyFns.push(s)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Cw(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(s=>s()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(s=>s()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(s){this._position=this.totalTime?s*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(s){const e="start"==s?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class Lm{constructor(s){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=s;let e=0,t=0,r=0;const d=this.players.length;0==d?Cw(()=>this._onFinish()):this.players.forEach(h=>{h.onDone(()=>{++e==d&&this._onFinish()}),h.onDestroy(()=>{++t==d&&this._onDestroy()}),h.onStart(()=>{++r==d&&this._onStart()})}),this.totalTime=this.players.reduce((h,c)=>Math.max(h,c.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(s=>s()),this._onDoneFns=[])}init(){this.players.forEach(s=>s.init())}onStart(s){this._onStartFns.push(s)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(s=>s()),this._onStartFns=[])}onDone(s){this._onDoneFns.push(s)}onDestroy(s){this._onDestroyFns.push(s)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(s=>s.play())}pause(){this.players.forEach(s=>s.pause())}restart(){this.players.forEach(s=>s.restart())}finish(){this._onFinish(),this.players.forEach(s=>s.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(s=>s.destroy()),this._onDestroyFns.forEach(s=>s()),this._onDestroyFns=[])}reset(){this.players.forEach(s=>s.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(s){const e=s*this.totalTime;this.players.forEach(t=>{const r=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(r)})}getPosition(){const s=this.players.reduce((e,t)=>null===e||t.totalTime>e.totalTime?t:e,null);return null!=s?s.getPosition():0}beforeDestroy(){this.players.forEach(s=>{s.beforeDestroy&&s.beforeDestroy()})}triggerCallback(s){const e="start"==s?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}const Aw=["connectionContainer"],KM=["inputContainer"],Om=["label"];function Bm(i,s){1&i&&(n.ynx(0),n.TgZ(1,"div",14),n._UZ(2,"div",15)(3,"div",16)(4,"div",17),n.qZA(),n.TgZ(5,"div",18),n._UZ(6,"div",15)(7,"div",16)(8,"div",17),n.qZA(),n.BQk())}function Ka(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"div",19),n.NdJ("cdkObserveContent",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.updateOutlineGap())}),n.Hsn(1,1),n.qZA()}if(2&i){const e=n.oxw();n.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)}}function dT(i,s){if(1&i&&(n.ynx(0),n.Hsn(1,2),n.TgZ(2,"span"),n._uU(3),n.qZA(),n.BQk()),2&i){const e=n.oxw(2);n.xp6(3),n.Oqu(e._control.placeholder)}}function vw(i,s){1&i&&n.Hsn(0,3,["*ngSwitchCase","true"])}function Xa(i,s){1&i&&(n.TgZ(0,"span",23),n._uU(1," *"),n.qZA())}function Ma(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"label",20,21),n.NdJ("cdkObserveContent",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.updateOutlineGap())}),n.YNc(2,dT,4,1,"ng-container",12),n.YNc(3,vw,1,0,"ng-content",12),n.YNc(4,Xa,2,0,"span",22),n.qZA()}if(2&i){const e=n.oxw();n.ekj("mat-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-form-field-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-accent","accent"==e.color)("mat-warn","warn"==e.color),n.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),n.uIk("for",e._control.id)("aria-owns",e._control.id),n.xp6(2),n.Q6J("ngSwitchCase",!1),n.xp6(1),n.Q6J("ngSwitchCase",!0),n.xp6(1),n.Q6J("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function Ea(i,s){1&i&&(n.TgZ(0,"div",24),n.Hsn(1,4),n.qZA())}function Tw(i,s){if(1&i&&(n.TgZ(0,"div",25),n._UZ(1,"span",26),n.qZA()),2&i){const e=n.oxw();n.xp6(1),n.ekj("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function xw(i,s){if(1&i&&(n.TgZ(0,"div"),n.Hsn(1,5),n.qZA()),2&i){const e=n.oxw();n.Q6J("@transitionMessages",e._subscriptAnimationState)}}function uT(i,s){if(1&i&&(n.TgZ(0,"div",30),n._uU(1),n.qZA()),2&i){const e=n.oxw(2);n.Q6J("id",e._hintLabelId),n.xp6(1),n.Oqu(e.hintLabel)}}function hT(i,s){if(1&i&&(n.TgZ(0,"div",27),n.YNc(1,uT,2,2,"div",28),n.Hsn(2,6),n._UZ(3,"div",29),n.Hsn(4,7),n.qZA()),2&i){const e=n.oxw();n.Q6J("@transitionMessages",e._subscriptAnimationState),n.xp6(1),n.Q6J("ngIf",e.hintLabel)}}const pT=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],fT=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let Vm=0;const Bc=new n.OlP("MatError");let es=(()=>{class i{constructor(e,t){this.id="mat-error-"+Vm++,e||t.nativeElement.setAttribute("aria-live","polite")}}return i.\u0275fac=function(e){return new(e||i)(n.$8M("aria-live"),n.Y36(n.SBq))},i.\u0275dir=n.lG2({type:i,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(e,t){2&e&&n.uIk("id",t.id)},inputs:{id:"id"},features:[n._Bn([{provide:Bc,useExisting:i}])]}),i})();const Sw={transitionMessages:fn("transitionMessages",[Pt("enter",He({opacity:1,transform:"translateY(0%)"})),xt("void => enter",[He({opacity:0,transform:"translateY(-5px)"}),Tt("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let _u=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i}),i})(),_T=0;const Um=new n.OlP("MatHint");let Mw=(()=>{class i{constructor(){this.align="start",this.id="mat-hint-"+_T++}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(e,t){2&e&&(n.uIk("id",t.id)("align",null),n.ekj("mat-form-field-hint-end","end"===t.align))},inputs:{align:"align",id:"id"},features:[n._Bn([{provide:Um,useExisting:i}])]}),i})(),ta=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["mat-label"]]}),i})(),fp=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["mat-placeholder"]]}),i})();const Nm=new n.OlP("MatPrefix"),Fm=new n.OlP("MatSuffix");let bu=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["","matSuffix",""]],features:[n._Bn([{provide:Fm,useExisting:i}])]}),i})(),Ym=0;const Dw=Ti(class{constructor(i){this._elementRef=i}},"primary"),Hw=new n.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),mp=new n.OlP("MatFormField");let ar=(()=>{class i extends Dw{constructor(e,t,r,d,h,c,o){super(e),this._changeDetectorRef=t,this._dir=r,this._defaults=d,this._platform=h,this._ngZone=c,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new Me.x,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+Ym++,this._labelId="mat-form-field-label-"+Ym++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==o,this.appearance=d?.appearance||"legacy",d&&(this._hideRequiredMarker=Boolean(d.hideRequiredMarker),d.color&&(this.color=this.defaultColor=d.color))}get appearance(){return this._appearance}set appearance(e){const t=this._appearance;this._appearance=e||this._defaults?.appearance||"legacy","outline"===this._appearance&&t!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=Oe(e)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(e){this._explicitFormFieldControl=e}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${e.controlType}`),e.stateChanges.pipe(Zt(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(Ke(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Ke(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,Sn.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Zt(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Zt(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Ke(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(e){const t=this._control?this._control.ngControl:null;return t&&t[e]}_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,ea(this._label.nativeElement,"transitionend").pipe((0,rt.q)(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 e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const t=this._hintChildren?this._hintChildren.find(d=>"start"===d.align):null,r=this._hintChildren?this._hintChildren.find(d=>"end"===d.align):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),r&&e.push(r.id)}else this._errorChildren&&e.push(...this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(e)}}_validateControlChild(){}updateOutlineGap(){const e=this._label?this._label.nativeElement:null,t=this._connectionContainerRef.nativeElement,r=".mat-form-field-outline-start",d=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!e||!e.children.length||!e.textContent.trim()){const l=t.querySelectorAll(`${r}, ${d}`);for(let u=0;u0?.75*g+10:0}for(let l=0;l{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[x.ez,ht,Jd,ht]}),i})(),Pw=(()=>{class i{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,t){this._renderer.setProperty(this._elementRef.nativeElement,e,t)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.Qsj),n.Y36(n.SBq))},i.\u0275dir=n.lG2({type:i}),i})(),Pl=(()=>{class i extends Pw{}return i.\u0275fac=function(){let s;return function(t){return(s||(s=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,features:[n.qOj]}),i})();const sr=new n.OlP("NgValueAccessor"),yT={provide:sr,useExisting:(0,n.Gpc)(()=>Gi),multi:!0},AT=new n.OlP("CompositionEventMode");let Gi=(()=>{class i extends Pw{constructor(e,t,r){super(e,t),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function CT(){const i=(0,x.q)()?(0,x.q)().getUserAgent():"";return/android (\d+)/.test(i.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.Qsj),n.Y36(n.SBq),n.Y36(AT,8))},i.\u0275dir=n.lG2({type:i,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(e,t){1&e&&n.NdJ("input",function(d){return t._handleInput(d.target.value)})("blur",function(){return t.onTouched()})("compositionstart",function(){return t._compositionStart()})("compositionend",function(d){return t._compositionEnd(d.target.value)})},features:[n._Bn([yT]),n.qOj]}),i})();function Co(i){return null==i||("string"==typeof i||Array.isArray(i))&&0===i.length}function kw(i){return null!=i&&"number"==typeof i.length}const wi=new n.OlP("NgValidators"),Ao=new n.OlP("NgAsyncValidators"),Lw=/^(?=.{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 kn{static min(s){return function zm(i){return s=>{if(Co(s.value)||Co(i))return null;const e=parseFloat(s.value);return!isNaN(e)&&e{if(Co(s.value)||Co(i))return null;const e=parseFloat(s.value);return!isNaN(e)&&e>i?{max:{max:i,actual:s.value}}:null}}(s)}static required(s){return Wm(s)}static requiredTrue(s){return function $m(i){return!0===i.value?null:{required:!0}}(s)}static email(s){return function Jm(i){return Co(i.value)||Lw.test(i.value)?null:{email:!0}}(s)}static minLength(s){return function Zm(i){return s=>Co(s.value)||!kw(s.value)?null:s.value.lengthkw(s.value)&&s.value.length>i?{maxlength:{requiredLength:i,actualLength:s.value.length}}:null}(s)}static pattern(s){return function gp(i){if(!i)return Vc;let s,e;return"string"==typeof i?(e="","^"!==i.charAt(0)&&(e+="^"),e+=i,"$"!==i.charAt(i.length-1)&&(e+="$"),s=new RegExp(e)):(e=i.toString(),s=i),t=>{if(Co(t.value))return null;const r=t.value;return s.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}(s)}static nullValidator(s){return null}static compose(s){return TT(s)}static composeAsync(s){return Km(s)}}function Wm(i){return Co(i.value)?{required:!0}:null}function Vc(i){return null}function vo(i){return null!=i}function Iw(i){return(0,n.QGY)(i)?(0,lt.D)(i):i}function Ow(i){let s={};return i.forEach(e=>{s=null!=e?{...s,...e}:s}),0===Object.keys(s).length?null:s}function Rl(i,s){return s.map(e=>e(i))}function _p(i){return i.map(s=>function XM(i){return!i.validate}(s)?s:e=>s.validate(e))}function TT(i){if(!i)return null;const s=i.filter(vo);return 0==s.length?null:function(e){return Ow(Rl(e,s))}}function bp(i){return null!=i?TT(_p(i)):null}function Km(i){if(!i)return null;const s=i.filter(vo);return 0==s.length?null:function(e){return oa(Rl(e,s).map(Iw)).pipe((0,_t.U)(Ow))}}function Bw(i){return null!=i?Km(_p(i)):null}function bt(i,s){return null===i?[s]:Array.isArray(i)?[...i,s]:[i,s]}function Vw(i){return i._rawValidators}function jw(i){return i._rawAsyncValidators}function Xm(i){return i?Array.isArray(i)?i:[i]:[]}function Rs(i,s){return Array.isArray(i)?i.includes(s):i===s}function Uw(i,s){const e=Xm(s);return Xm(i).forEach(r=>{Rs(e,r)||e.push(r)}),e}function wu(i,s){return Xm(s).filter(e=>!Rs(i,e))}class yu{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(s){this._rawValidators=s||[],this._composedValidatorFn=bp(this._rawValidators)}_setAsyncValidators(s){this._rawAsyncValidators=s||[],this._composedAsyncValidatorFn=Bw(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(s){this._onDestroyCallbacks.push(s)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(s=>s()),this._onDestroyCallbacks=[]}reset(s){this.control&&this.control.reset(s)}hasError(s,e){return!!this.control&&this.control.hasError(s,e)}getError(s,e){return this.control?this.control.getError(s,e):null}}class Nt extends yu{get formDirective(){return null}get path(){return null}}class ts extends yu{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class eg{constructor(s){this._cd=s}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let Wi=(()=>{class i extends eg{constructor(e){super(e)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(ts,2))},i.\u0275dir=n.lG2({type:i,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&n.ekj("ng-untouched",t.isUntouched)("ng-touched",t.isTouched)("ng-pristine",t.isPristine)("ng-dirty",t.isDirty)("ng-valid",t.isValid)("ng-invalid",t.isInvalid)("ng-pending",t.isPending)},features:[n.qOj]}),i})(),tg=(()=>{class i extends eg{constructor(e){super(e)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Nt,10))},i.\u0275dir=n.lG2({type:i,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,t){2&e&&n.ekj("ng-untouched",t.isUntouched)("ng-touched",t.isTouched)("ng-pristine",t.isPristine)("ng-dirty",t.isDirty)("ng-valid",t.isValid)("ng-invalid",t.isInvalid)("ng-pending",t.isPending)("ng-submitted",t.isSubmitted)},features:[n.qOj]}),i})();const Tu="VALID",xu="INVALID",kl="PENDING",jc="DISABLED";function ag(i){return(lg(i)?i.validators:i)||null}function sg(i){return Array.isArray(i)?bp(i):i||null}function og(i,s){return(lg(s)?s.asyncValidators:i)||null}function Yw(i){return Array.isArray(i)?Bw(i):i||null}function lg(i){return null!=i&&!Array.isArray(i)&&"object"==typeof i}function PT(i,s,e){const t=i.controls;if(!(s?Object.keys(t):t).length)throw new n.vHH(1e3,"");if(!t[e])throw new n.vHH(1001,"")}function RT(i,s,e){i._forEachChild((t,r)=>{if(void 0===e[r])throw new n.vHH(1002,"")})}class cg{constructor(s,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=s,this._rawAsyncValidators=e,this._composedValidatorFn=sg(this._rawValidators),this._composedAsyncValidatorFn=Yw(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(s){this._rawValidators=this._composedValidatorFn=s}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(s){this._rawAsyncValidators=this._composedAsyncValidatorFn=s}get parent(){return this._parent}get valid(){return this.status===Tu}get invalid(){return this.status===xu}get pending(){return this.status==kl}get disabled(){return this.status===jc}get enabled(){return this.status!==jc}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(s){this._rawValidators=s,this._composedValidatorFn=sg(s)}setAsyncValidators(s){this._rawAsyncValidators=s,this._composedAsyncValidatorFn=Yw(s)}addValidators(s){this.setValidators(Uw(s,this._rawValidators))}addAsyncValidators(s){this.setAsyncValidators(Uw(s,this._rawAsyncValidators))}removeValidators(s){this.setValidators(wu(s,this._rawValidators))}removeAsyncValidators(s){this.setAsyncValidators(wu(s,this._rawAsyncValidators))}hasValidator(s){return Rs(this._rawValidators,s)}hasAsyncValidator(s){return Rs(this._rawAsyncValidators,s)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(s={}){this.touched=!0,this._parent&&!s.onlySelf&&this._parent.markAsTouched(s)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(s=>s.markAllAsTouched())}markAsUntouched(s={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!s.onlySelf&&this._parent._updateTouched(s)}markAsDirty(s={}){this.pristine=!1,this._parent&&!s.onlySelf&&this._parent.markAsDirty(s)}markAsPristine(s={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!s.onlySelf&&this._parent._updatePristine(s)}markAsPending(s={}){this.status=kl,!1!==s.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!s.onlySelf&&this._parent.markAsPending(s)}disable(s={}){const e=this._parentMarkedDirty(s.onlySelf);this.status=jc,this.errors=null,this._forEachChild(t=>{t.disable({...s,onlySelf:!0})}),this._updateValue(),!1!==s.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...s,skipPristineCheck:e}),this._onDisabledChange.forEach(t=>t(!0))}enable(s={}){const e=this._parentMarkedDirty(s.onlySelf);this.status=Tu,this._forEachChild(t=>{t.enable({...s,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:s.emitEvent}),this._updateAncestors({...s,skipPristineCheck:e}),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(s){this._parent&&!s.onlySelf&&(this._parent.updateValueAndValidity(s),s.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(s){this._parent=s}getRawValue(){return this.value}updateValueAndValidity(s={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Tu||this.status===kl)&&this._runAsyncValidator(s.emitEvent)),!1!==s.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!s.onlySelf&&this._parent.updateValueAndValidity(s)}_updateTreeValidity(s={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(s)),this.updateValueAndValidity({onlySelf:!0,emitEvent:s.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?jc:Tu}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(s){if(this.asyncValidator){this.status=kl,this._hasOwnPendingAsyncValidator=!0;const e=Iw(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(t=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(t,{emitEvent:s})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(s,e={}){this.errors=s,this._updateControlsErrors(!1!==e.emitEvent)}get(s){let e=s;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((t,r)=>t&&t._find(r),this)}getError(s,e){const t=e?this.get(e):this;return t&&t.errors?t.errors[s]:null}hasError(s,e){return!!this.getError(s,e)}get root(){let s=this;for(;s._parent;)s=s._parent;return s}_updateControlsErrors(s){this.status=this._calculateStatus(),s&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(s)}_initObservables(){this.valueChanges=new n.vpe,this.statusChanges=new n.vpe}_calculateStatus(){return this._allControlsDisabled()?jc:this.errors?xu:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(kl)?kl:this._anyControlsHaveStatus(xu)?xu:Tu}_anyControlsHaveStatus(s){return this._anyControls(e=>e.status===s)}_anyControlsDirty(){return this._anyControls(s=>s.dirty)}_anyControlsTouched(){return this._anyControls(s=>s.touched)}_updatePristine(s={}){this.pristine=!this._anyControlsDirty(),this._parent&&!s.onlySelf&&this._parent._updatePristine(s)}_updateTouched(s={}){this.touched=this._anyControlsTouched(),this._parent&&!s.onlySelf&&this._parent._updateTouched(s)}_registerOnCollectionChange(s){this._onCollectionChange=s}_setUpdateStrategy(s){lg(s)&&null!=s.updateOn&&(this._updateOn=s.updateOn)}_parentMarkedDirty(s){return!s&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(s){return null}}class Su extends cg{constructor(s,e,t){super(ag(e),og(t,e)),this.controls=s,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(s,e){return this.controls[s]?this.controls[s]:(this.controls[s]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(s,e,t={}){this.registerControl(s,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}removeControl(s,e={}){this.controls[s]&&this.controls[s]._registerOnCollectionChange(()=>{}),delete this.controls[s],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(s,e,t={}){this.controls[s]&&this.controls[s]._registerOnCollectionChange(()=>{}),delete this.controls[s],e&&this.registerControl(s,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}contains(s){return this.controls.hasOwnProperty(s)&&this.controls[s].enabled}setValue(s,e={}){RT(this,0,s),Object.keys(s).forEach(t=>{PT(this,!0,t),this.controls[t].setValue(s[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(s,e={}){null!=s&&(Object.keys(s).forEach(t=>{const r=this.controls[t];r&&r.patchValue(s[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(s={},e={}){this._forEachChild((t,r)=>{t.reset(s[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(s,e,t)=>(s[t]=e.getRawValue(),s))}_syncPendingControls(){let s=this._reduceChildren(!1,(e,t)=>!!t._syncPendingControls()||e);return s&&this.updateValueAndValidity({onlySelf:!0}),s}_forEachChild(s){Object.keys(this.controls).forEach(e=>{const t=this.controls[e];t&&s(t,e)})}_setUpControls(){this._forEachChild(s=>{s.setParent(this),s._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(s){for(const[e,t]of Object.entries(this.controls))if(this.contains(e)&&s(t))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,t,r)=>((t.enabled||this.disabled)&&(e[r]=t.value),e))}_reduceChildren(s,e){let t=s;return this._forEachChild((r,d)=>{t=e(t,r,d)}),t}_allControlsDisabled(){for(const s of Object.keys(this.controls))if(this.controls[s].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(s){return this.controls.hasOwnProperty(s)?this.controls[s]:null}}function To(i,s){return[...s.path,i]}function Mu(i,s){ug(i,s),s.valueAccessor.writeValue(i.value),i.disabled&&s.valueAccessor.setDisabledState?.(!0),function OT(i,s){s.valueAccessor.registerOnChange(e=>{i._pendingValue=e,i._pendingChange=!0,i._pendingDirty=!0,"change"===i.updateOn&&Ll(i,s)})}(i,s),function VT(i,s){const e=(t,r)=>{s.valueAccessor.writeValue(t),r&&s.viewToModelUpdate(t)};i.registerOnChange(e),s._registerOnDestroy(()=>{i._unregisterOnChange(e)})}(i,s),function BT(i,s){s.valueAccessor.registerOnTouched(()=>{i._pendingTouched=!0,"blur"===i.updateOn&&i._pendingChange&&Ll(i,s),"submit"!==i.updateOn&&i.markAsTouched()})}(i,s),function IT(i,s){if(s.valueAccessor.setDisabledState){const e=t=>{s.valueAccessor.setDisabledState(t)};i.registerOnDisabledChange(e),s._registerOnDestroy(()=>{i._unregisterOnDisabledChange(e)})}}(i,s)}function Cp(i,s,e=!0){const t=()=>{};s.valueAccessor&&(s.valueAccessor.registerOnChange(t),s.valueAccessor.registerOnTouched(t)),Eu(i,s),i&&(s._invokeOnDestroyCallbacks(),i._registerOnCollectionChange(()=>{}))}function Ap(i,s){i.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(s)})}function ug(i,s){const e=Vw(i);null!==s.validator?i.setValidators(bt(e,s.validator)):"function"==typeof e&&i.setValidators([e]);const t=jw(i);null!==s.asyncValidator?i.setAsyncValidators(bt(t,s.asyncValidator)):"function"==typeof t&&i.setAsyncValidators([t]);const r=()=>i.updateValueAndValidity();Ap(s._rawValidators,r),Ap(s._rawAsyncValidators,r)}function Eu(i,s){let e=!1;if(null!==i){if(null!==s.validator){const r=Vw(i);if(Array.isArray(r)&&r.length>0){const d=r.filter(h=>h!==s.validator);d.length!==r.length&&(e=!0,i.setValidators(d))}}if(null!==s.asyncValidator){const r=jw(i);if(Array.isArray(r)&&r.length>0){const d=r.filter(h=>h!==s.asyncValidator);d.length!==r.length&&(e=!0,i.setAsyncValidators(d))}}}const t=()=>{};return Ap(s._rawValidators,t),Ap(s._rawAsyncValidators,t),e}function Ll(i,s){i._pendingDirty&&i.markAsDirty(),i.setValue(i._pendingValue,{emitModelToViewChange:!1}),s.viewToModelUpdate(i._pendingValue),i._pendingChange=!1}function hg(i,s){ug(i,s)}function Du(i,s){if(!i.hasOwnProperty("model"))return!1;const e=i.model;return!!e.isFirstChange()||!Object.is(s,e.currentValue)}function fg(i,s){i._syncPendingControls(),s.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function vp(i,s){if(!s)return null;let e,t,r;return Array.isArray(s),s.forEach(d=>{d.constructor===Gi?e=d:function FT(i){return Object.getPrototypeOf(i.constructor)===Pl}(d)?t=d:r=d}),r||t||e||null}const qT={provide:Nt,useExisting:(0,n.Gpc)(()=>Ol)},Il=(()=>Promise.resolve(null))();let Ol=(()=>{class i extends Nt{constructor(e,t){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new n.vpe,this.form=new Su({},bp(e),Bw(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Il.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),Mu(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Il.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Il.then(()=>{const t=this._findContainer(e.path),r=new Su({});hg(r,e),t.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Il.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){Il.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,fg(this.form,this._directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(wi,10),n.Y36(Ao,10))},i.\u0275dir=n.lG2({type:i,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&n.NdJ("submit",function(d){return t.onSubmit(d)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[n._Bn([qT]),n.qOj]}),i})();function mg(i,s){const e=i.indexOf(s);e>-1&&i.splice(e,1)}function qw(i){return"object"==typeof i&&null!==i&&2===Object.keys(i).length&&"value"in i&&"disabled"in i}const Nn=class extends cg{constructor(s=null,e,t){super(ag(e),og(t,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(s),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),lg(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=qw(s)?s.value:s)}setValue(s,e={}){this.value=this._pendingValue=s,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(s,e={}){this.setValue(s,e)}reset(s=this.defaultValue,e={}){this._applyFormState(s),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(s){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(s){this._onChange.push(s)}_unregisterOnChange(s){mg(this._onChange,s)}registerOnDisabledChange(s){this._onDisabledChange.push(s)}_unregisterOnDisabledChange(s){mg(this._onDisabledChange,s)}_forEachChild(s){}_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(s){qw(s)?(this.value=this._pendingValue=s.value,s.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=s}},gg=Nn,WT={provide:ts,useExisting:(0,n.Gpc)(()=>Uc)},_g=(()=>Promise.resolve(null))();let Uc=(()=>{class i extends ts{constructor(e,t,r,d,h){super(),this._changeDetectorRef=h,this.control=new Nn,this._registered=!1,this.update=new n.vpe,this._parent=e,this._setValidators(t),this._setAsyncValidators(r),this.valueAccessor=vp(0,d)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const t=e.name.previousValue;this.formDirective.removeControl({name:t,path:this._getPath(t)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),Du(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_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(){Mu(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(e){_g.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const t=e.isDisabled.currentValue,r=0!==t&&(0,n.D6c)(t);_g.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?To(e,this._parent):[e]}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Nt,9),n.Y36(wi,10),n.Y36(Ao,10),n.Y36(sr,10),n.Y36(n.sBO,8))},i.\u0275dir=n.lG2({type:i,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._Bn([WT]),n.qOj,n.TTD]}),i})(),$w=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),i})(),xp=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})();const Sp=new n.OlP("NgModelWithFormControlWarning"),Nc={provide:ts,useExisting:(0,n.Gpc)(()=>_r)};let _r=(()=>{class i extends ts{constructor(e,t,r,d){super(),this._ngModelWarningConfig=d,this.update=new n.vpe,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(t),this.valueAccessor=vp(0,r)}set isDisabled(e){}ngOnChanges(e){if(this._isControlChanged(e)){const t=e.form.previousValue;t&&Cp(t,this,!1),Mu(this.form,this),this.form.updateValueAndValidity({emitEvent:!1})}Du(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Cp(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}}return i._ngModelWarningSentOnce=!1,i.\u0275fac=function(e){return new(e||i)(n.Y36(wi,10),n.Y36(Ao,10),n.Y36(sr,10),n.Y36(Sp,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[n._Bn([Nc]),n.qOj,n.TTD]}),i})();const QT={provide:Nt,useExisting:(0,n.Gpc)(()=>Fc)};let Fc=(()=>{class i extends Nt{constructor(e,t){super(),this.validators=e,this.asyncValidators=t,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new n.vpe,this._setValidators(e),this._setAsyncValidators(t)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Eu(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const t=this.form.get(e.path);return Mu(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){Cp(e.control||null,e,!1),function YT(i,s){const e=i.indexOf(s);e>-1&&i.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,t){this.form.get(e.path).setValue(t)}onSubmit(e){return this.submitted=!0,fg(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const t=e.control,r=this.form.get(e.path);t!==r&&(Cp(t||null,e),(i=>i instanceof Nn)(r)&&(Mu(r,e),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const t=this.form.get(e.path);hg(t,e),t.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const t=this.form.get(e.path);t&&function jT(i,s){return Eu(i,s)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){ug(this.form,this),this._oldForm&&Eu(this._oldForm,this)}_checkFormPresent(){}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(wi,10),n.Y36(Ao,10))},i.\u0275dir=n.lG2({type:i,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&n.NdJ("submit",function(d){return t.onSubmit(d)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[n._Bn([QT]),n.qOj,n.TTD]}),i})();const XT={provide:ts,useExisting:(0,n.Gpc)(()=>Ru)};let Ru=(()=>{class i extends ts{constructor(e,t,r,d,h){super(),this._ngModelWarningConfig=h,this._added=!1,this.update=new n.vpe,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(t),this._setAsyncValidators(r),this.valueAccessor=vp(0,d)}set isDisabled(e){}ngOnChanges(e){this._added||this._setUpControl(),Du(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return To(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._added=!0}}return i._ngModelWarningSentOnce=!1,i.\u0275fac=function(e){return new(e||i)(n.Y36(Nt,13),n.Y36(wi,10),n.Y36(Ao,10),n.Y36(sr,10),n.Y36(Sp,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[n._Bn([XT]),n.qOj,n.TTD]}),i})(),Yc=(()=>{class i{constructor(){this._validator=Vc}ngOnChanges(e){if(this.inputName in e){const t=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(t),this._validator=this._enabled?this.createValidator(t):Vc,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,features:[n.TTD]}),i})();const oy={provide:wi,useExisting:(0,n.Gpc)(()=>ns),multi:!0};let ns=(()=>{class i extends Yc{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=n.D6c,this.createValidator=e=>Wm}enabled(e){return e}}return i.\u0275fac=function(){let s;return function(t){return(s||(s=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&n.uIk("required",t._enabled?"":null)},inputs:{required:"required"},features:[n._Bn([oy]),n.qOj]}),i})(),vg=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[xp]}),i})(),Tg=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[vg]}),i})(),zc=(()=>{class i{static withConfig(e){return{ngModule:i,providers:[{provide:Sp,useValue:e.warnOnNgModelWithFormControl}]}}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[vg]}),i})();class xg extends cg{constructor(s,e,t){super(ag(e),og(t,e)),this.controls=s,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(s){return this.controls[this._adjustIndex(s)]}push(s,e={}){this.controls.push(s),this._registerControl(s),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(s,e,t={}){this.controls.splice(s,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:t.emitEvent})}removeAt(s,e={}){let t=this._adjustIndex(s);t<0&&(t=0),this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(s,e,t={}){let r=this._adjustIndex(s);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(s,e={}){RT(this,0,s),s.forEach((t,r)=>{PT(this,!1,r),this.at(r).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(s,e={}){null!=s&&(s.forEach((t,r)=>{this.at(r)&&this.at(r).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(s=[],e={}){this._forEachChild((t,r)=>{t.reset(s[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(s=>s.getRawValue())}clear(s={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:s.emitEvent}))}_adjustIndex(s){return s<0?s+this.length:s}_syncPendingControls(){let s=this.controls.reduce((e,t)=>!!t._syncPendingControls()||e,!1);return s&&this.updateValueAndValidity({onlySelf:!0}),s}_forEachChild(s){this.controls.forEach((e,t)=>{s(e,t)})}_updateValue(){this.value=this.controls.filter(s=>s.enabled||this.disabled).map(s=>s.value)}_anyControls(s){return this.controls.some(e=>e.enabled&&s(e))}_setUpControls(){this._forEachChild(s=>this._registerControl(s))}_allControlsDisabled(){for(const s of this.controls)if(s.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(s){s.setParent(this),s._registerOnCollectionChange(this._onCollectionChange)}_find(s){return this.at(s)??null}}function hy(i){return!!i&&(void 0!==i.asyncValidators||void 0!==i.validators||void 0!==i.updateOn)}let f0=(()=>{class i{constructor(){this.useNonNullable=!1}get nonNullable(){const e=new i;return e.useNonNullable=!0,e}group(e,t=null){const r=this._reduceControls(e);let d={};return hy(t)?d=t:null!==t&&(d.validators=t.validator,d.asyncValidators=t.asyncValidator),new Su(r,d)}control(e,t,r){let d={};return this.useNonNullable?(hy(t)?d=t:(d.validators=t,d.asyncValidators=r),new Nn(e,{...d,nonNullable:!0})):new Nn(e,t,r)}array(e,t,r){const d=e.map(h=>this._createControl(h));return new xg(d,t,r)}_reduceControls(e){const t={};return Object.keys(e).forEach(r=>{t[r]=this._createControl(e[r])}),t}_createControl(e){return e instanceof Nn||e instanceof cg?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:zc}),i})(),m0=(()=>{class i extends f0{group(e,t=null){return super.group(e,t)}control(e,t,r){return super.control(e,t,r)}array(e,t,r){return super.array(e,t,r)}}return i.\u0275fac=function(){let s;return function(t){return(s||(s=n.n5z(i)))(t||i)}}(),i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:zc}),i})();const is=["trigger"],g0=["panel"];function Hp(i,s){if(1&i&&(n.TgZ(0,"span",8),n._uU(1),n.qZA()),2&i){const e=n.oxw();n.xp6(1),n.Oqu(e.placeholder)}}function ku(i,s){if(1&i&&(n.TgZ(0,"span",12),n._uU(1),n.qZA()),2&i){const e=n.oxw(2);n.xp6(1),n.Oqu(e.triggerValue)}}function _0(i,s){1&i&&n.Hsn(0,0,["*ngSwitchCase","true"])}function b0(i,s){if(1&i&&(n.TgZ(0,"span",9),n.YNc(1,ku,2,1,"span",10),n.YNc(2,_0,1,0,"ng-content",11),n.qZA()),2&i){const e=n.oxw();n.Q6J("ngSwitch",!!e.customTrigger),n.xp6(2),n.Q6J("ngSwitchCase",!0)}}function w0(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"div",13)(1,"div",14,15),n.NdJ("@transformPanel.done",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d._panelDoneAnimatingStream.next(r.toState))})("keydown",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d._handleKeydown(r))}),n.Hsn(3,1),n.qZA()()}if(2&i){const e=n.oxw();n.Q6J("@transformPanelWrap",void 0),n.xp6(1),n.Gre("mat-select-panel ",e._getPanelTheme(),""),n.Udp("transform-origin",e._transformOrigin)("font-size",e._triggerFontSize,"px"),n.Q6J("ngClass",e.panelClass)("@transformPanel",e.multiple?"showing-multiple":"showing"),n.uIk("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}const Pp=[[["mat-select-trigger"]],"*"],Rp=["mat-select-trigger","*"],fy={transformPanelWrap:fn("transformPanelWrap",[xt("* => void",gr("@transformPanel",[pp()],{optional:!0}))]),transformPanel:fn("transformPanel",[Pt("void",He({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),Pt("showing",He({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),Pt("showing-multiple",He({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),xt("void => *",Tt("120ms cubic-bezier(0, 0, 0.2, 1)")),xt("* => void",Tt("100ms 25ms linear",He({opacity:0})))])};let kp=0;const Sg=new n.OlP("mat-select-scroll-strategy"),Eg=new n.OlP("MAT_SELECT_CONFIG"),v0={provide:Sg,deps:[rr],useFactory:function Mg(i){return()=>i.scrollStrategies.reposition()}};class T0{constructor(s,e){this.source=s,this.value=e}}const x0=mr(wl(Qr(Jh(class{constructor(i,s,e,t,r){this._elementRef=i,this._defaultErrorStateMatcher=s,this._parentForm=e,this._parentFormGroup=t,this.ngControl=r,this.stateChanges=new Me.x}})))),S0=new n.OlP("MatSelectTrigger");let Dg=(()=>{class i extends x0{constructor(e,t,r,d,h,c,o,a,l,u,p,m,g,f){super(h,d,o,a,u),this._viewportRuler=e,this._changeDetectorRef=t,this._ngZone=r,this._dir=c,this._parentFormField=l,this._liveAnnouncer=g,this._defaultOptions=f,this._panelOpen=!1,this._compareWith=(y,j)=>y===j,this._uid="mat-select-"+kp++,this._triggerAriaLabelledBy=null,this._destroy=new Me.x,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+kp++,this._panelDoneAnimatingStream=new Me.x,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.optionSelectionChanges=Cn(()=>{const y=this.options;return y?y.changes.pipe(Zt(y),(0,bn.w)(()=>(0,Sn.T)(...y.map(j=>j.onSelectionChange)))):this._ngZone.onStable.pipe((0,rt.q)(1),(0,bn.w)(()=>this.optionSelectionChanges))}),this.openedChange=new n.vpe,this._openedStream=this.openedChange.pipe((0,Ce.h)(y=>y),(0,_t.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,Ce.h)(y=>!y),(0,_t.U)(()=>{})),this.selectionChange=new n.vpe,this.valueChange=new n.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=f?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=f.typeaheadDebounceInterval),this._scrollStrategyFactory=m,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(p)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(kn.required)??!1}set required(e){this._required=Oe(e),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._multiple=Oe(e)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(e){this._disableOptionCentering=Oe(e)}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(e){this._typeaheadDebounceInterval=_n(e)}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new Kn(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(mo(),Ke(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(Ke(this._destroy)).subscribe(e=>{e.added.forEach(t=>t.select()),e.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(Zt(null),Ke(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const e=this._getTriggerAriaLabelledby(),t=this.ngControl;if(e!==this._triggerAriaLabelledBy){const r=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?r.setAttribute("aria-labelledby",e):r.removeAttribute("aria-labelledby")}t&&(this._previousControl!==t.control&&(void 0!==this._previousControl&&null!==t.disabled&&t.disabled!==this.disabled&&(this.disabled=t.disabled),this._previousControl=t.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.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(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,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 e=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){const t=e.keyCode,r=40===t||38===t||37===t||39===t,d=13===t||32===t,h=this._keyManager;if(!h.isTyping()&&d&&!ri(e)||(this.multiple||e.altKey)&&r)e.preventDefault(),this.open();else if(!this.multiple){const c=this.selected;h.onKeydown(e);const o=this.selected;o&&c!==o&&this._liveAnnouncer.announce(o.viewValue,1e4)}}_handleOpenKeydown(e){const t=this._keyManager,r=e.keyCode,d=40===r||38===r,h=t.isTyping();if(d&&e.altKey)e.preventDefault(),this.close();else if(h||13!==r&&32!==r||!t.activeItem||ri(e))if(!h&&this._multiple&&65===r&&e.ctrlKey){e.preventDefault();const c=this.options.some(o=>!o.disabled&&!o.selected);this.options.forEach(o=>{o.disabled||(c?o.select():o.deselect())})}else{const c=t.activeItemIndex;t.onKeydown(e),this._multiple&&d&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==c&&t.activeItem._selectViaInteraction()}else e.preventDefault(),t.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((0,rt.q)(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.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this._selectionModel.selected.forEach(t=>t.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(t=>this._selectOptionByValue(t)),this._sortValues();else{const t=this._selectOptionByValue(e);t?this._keyManager.updateActiveItem(t):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){const t=this.options.find(r=>{if(this._selectionModel.isSelected(r))return!1;try{return null!=r.value&&this._compareWith(r.value,e)}catch{return!1}});return t&&this._selectionModel.select(t),t}_assignValue(e){return!!(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e,!0)}_initKeyManager(){this._keyManager=new IM(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Ke(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(Ke(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 e=(0,Sn.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Ke(e)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,Sn.T)(...this.options.map(t=>t._stateChanges)).pipe(Ke(e)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(e,t){const r=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(r!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),r!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const e=this.options.toArray();this._selectionModel.sort((t,r)=>this.sortComparator?this.sortComparator(t,r,e):e.indexOf(t)-e.indexOf(r)),this.stateChanges.next()}}_propagateChanges(e){let t=null;t=this.multiple?this.selected.map(r=>r.value):this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(this._getChangeEvent(t)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){return!this._panelOpen&&!this.disabled&&this.options?.length>0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const e=this._parentFormField?.getLabelId();return this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const e=this._parentFormField?.getLabelId();let t=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(t+=" "+this.ariaLabelledby),t}_panelDoneAnimating(e){this.openedChange.emit(e)}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(va),n.Y36(n.sBO),n.Y36(n.R0b),n.Y36(Ca),n.Y36(n.SBq),n.Y36(xn,8),n.Y36(Ol,8),n.Y36(Fc,8),n.Y36(mp,8),n.Y36(ts,10),n.$8M("tabindex"),n.Y36(Sg),n.Y36(Xf),n.Y36(Eg,8))},i.\u0275dir=n.lG2({type:i,viewQuery:function(e,t){if(1&e&&(n.Gf(is,5),n.Gf(g0,5),n.Gf(Rm,5)),2&e){let r;n.iGM(r=n.CRH())&&(t.trigger=r.first),n.iGM(r=n.CRH())&&(t.panel=r.first),n.iGM(r=n.CRH())&&(t._overlayDir=r.first)}},inputs:{userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[n.qOj,n.TTD]}),i})(),Jc=(()=>{class i extends Dg{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(e,t,r){const d=this._getItemHeight();return Math.min(Math.max(0,d*e-t+d/2),r)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(Ke(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((0,rt.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(e){const t=Fb(e,this.options,this.optionGroups),r=this._getItemHeight();this.panel.nativeElement.scrollTop=0===e&&1===t?0:function Lv(i,s,e,t){return ie+t?Math.max(0,i-t+s):e}((e+t)*r,r,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(e){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(e)}_getChangeEvent(e){return new T0(this,e)}_calculateOverlayOffsetX(){const e=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),t=this._viewportRuler.getViewportSize(),r=this._isRtl(),d=this.multiple?56:32;let h;if(this.multiple)h=40;else if(this.disableOptionCentering)h=16;else{let a=this._selectionModel.selected[0]||this.options.first;h=a&&a.group?32:16}r||(h*=-1);const c=0-(e.left+h-(r?d:0)),o=e.right+h-t.width+(r?0:d);c>0?h+=c+8:o>0&&(h-=o+8),this._overlayDir.offsetX=Math.round(h),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(e,t,r){const d=this._getItemHeight(),h=(d-this._triggerRect.height)/2,c=Math.floor(256/d);let o;return this.disableOptionCentering?0:(o=0===this._scrollTop?e*d:this._scrollTop===r?(e-(this._getItemCount()-c))*d+(d-(this._getItemCount()*d-256)%d):t-d/2,Math.round(-1*o-h))}_checkOverlayWithinViewport(e){const t=this._getItemHeight(),r=this._viewportRuler.getViewportSize(),d=this._triggerRect.top-8,h=r.height-this._triggerRect.bottom-8,c=Math.abs(this._offsetY),a=Math.min(this._getItemCount()*t,256)-c-this._triggerRect.height;a>h?this._adjustPanelUp(a,h):c>d?this._adjustPanelDown(c,d,e):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(e,t){const r=Math.round(e-t);this._scrollTop-=r,this._offsetY-=r,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(e,t,r){const d=Math.round(e-t);if(this._scrollTop+=d,this._offsetY+=d,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=r)return this._scrollTop=r,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const e=this._getItemHeight(),t=this._getItemCount(),r=Math.min(t*e,256),h=t*e-r;let c;c=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),c+=Fb(c,this.options,this.optionGroups);const o=r/2;this._scrollTop=this._calculateOverlayScroll(c,o,h),this._offsetY=this._calculateOverlayOffsetY(c,o,h),this._checkOverlayWithinViewport(h)}_getOriginBasedOnOption(){const e=this._getItemHeight(),t=(e-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-t+e/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return i.\u0275fac=function(){let s;return function(t){return(s||(s=n.n5z(i)))(t||i)}}(),i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-select"]],contentQueries:function(e,t,r){if(1&e&&(n.Suo(r,S0,5),n.Suo(r,Al,5),n.Suo(r,dm,5)),2&e){let d;n.iGM(d=n.CRH())&&(t.customTrigger=d.first),n.iGM(d=n.CRH())&&(t.options=d),n.iGM(d=n.CRH())&&(t.optionGroups=d)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:19,hostBindings:function(e,t){1&e&&n.NdJ("keydown",function(d){return t._handleKeydown(d)})("focus",function(){return t._onFocus()})("blur",function(){return t._onBlur()}),2&e&&(n.uIk("id",t.id)("tabindex",t.tabIndex)("aria-controls",t.panelOpen?t.id+"-panel":null)("aria-expanded",t.panelOpen)("aria-label",t.ariaLabel||null)("aria-required",t.required.toString())("aria-disabled",t.disabled.toString())("aria-invalid",t.errorState)("aria-activedescendant",t._getAriaActiveDescendant()),n.ekj("mat-select-disabled",t.disabled)("mat-select-invalid",t.errorState)("mat-select-required",t.required)("mat-select-empty",t.empty)("mat-select-multiple",t.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[n._Bn([{provide:_u,useExisting:i},{provide:cm,useExisting:i}]),n.qOj],ngContentSelectors:Rp,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 mat-select-min-line",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","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(e,t){if(1&e&&(n.F$t(Pp),n.TgZ(0,"div",0,1),n.NdJ("click",function(){return t.toggle()}),n.TgZ(3,"div",2),n.YNc(4,Hp,2,1,"span",3),n.YNc(5,b0,3,2,"span",4),n.qZA(),n.TgZ(6,"div",5),n._UZ(7,"div",6),n.qZA()(),n.YNc(8,w0,4,14,"ng-template",7),n.NdJ("backdropClick",function(){return t.close()})("attach",function(){return t._onAttached()})("detach",function(){return t.close()})),2&e){const r=n.MAs(1);n.uIk("aria-owns",t.panelOpen?t.id+"-panel":null),n.xp6(3),n.Q6J("ngSwitch",t.empty),n.uIk("id",t._valueId),n.xp6(1),n.Q6J("ngSwitchCase",!0),n.xp6(1),n.Q6J("ngSwitchCase",!1),n.xp6(3),n.Q6J("cdkConnectedOverlayPanelClass",t._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",t._scrollStrategy)("cdkConnectedOverlayOrigin",r)("cdkConnectedOverlayOpen",t.panelOpen)("cdkConnectedOverlayPositions",t._positions)("cdkConnectedOverlayMinWidth",null==t._triggerRect?null:t._triggerRect.width)("cdkConnectedOverlayOffsetY",t._offsetY)}},dependencies:[x.mk,x.RF,x.n9,x.ED,Rm,Pm],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-select-value{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{height:16px;flex-shrink:0;display:inline-flex;align-items:center}.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 rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;margin:0 4px}.mat-form-field.mat-focused .mat-select-arrow{transform:translateX(0)}.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:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[fy.transformPanelWrap,fy.transformPanel]},changeDetection:0}),i})(),Lu=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[v0],imports:[x.ez,El,hm,ht,Ds,Hl,hm,ht]}),i})();const my=["tooltip"],Hg="tooltip-panel",Pg=Ja({passive:!0}),Rg=new n.OlP("mat-tooltip-scroll-strategy"),Zc={provide:Rg,deps:[rr],useFactory:function or(i){return()=>i.scrollStrategies.reposition({scrollThrottle:20})}},H0=new n.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function P0(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let fE=(()=>{class i{constructor(e,t,r,d,h,c,o,a,l,u,p,m){this._overlay=e,this._elementRef=t,this._scrollDispatcher=r,this._viewContainerRef=d,this._ngZone=h,this._platform=c,this._ariaDescriber=o,this._focusMonitor=a,this._dir=u,this._defaultOptions=p,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new Me.x,this._scrollStrategy=l,this._document=m,p&&(p.position&&(this.position=p.position),p.touchGestures&&(this.touchGestures=p.touchGestures)),u.change.pipe(Ke(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(e){this._disabled=Oe(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=_n(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=_n(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).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,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Ke(this._destroyed)).subscribe(e=>{e?"keyboard"===e&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([t,r])=>{e.removeEventListener(t,r,Pg)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const t=this._createOverlay();this._detach(),this._portal=this._portal||new xa(this._tooltipComponent,this._viewContainerRef);const r=this._tooltipInstance=t.attach(this._portal).instance;r._triggerElement=this._elementRef.nativeElement,r._mouseLeaveHideDelay=this._hideDelay,r.afterHidden().pipe(Ke(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),r.show(e)}hide(e=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(e)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const e=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),t=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(e);return t.positionChanges.pipe(Ke(this._destroyed)).subscribe(r=>{this._updateCurrentPositionClass(r.connectionPair),this._tooltipInstance&&r.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:t,panelClass:`${this._cssClassPrefix}-${Hg}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Ke(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(Ke(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(Ke(this._destroyed)).subscribe(r=>{this._isTooltipVisible()&&27===r.keyCode&&!ri(r)&&(r.preventDefault(),r.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){const t=e.getConfig().positionStrategy,r=this._getOrigin(),d=this._getOverlayPosition();t.withPositions([this._addOffset({...r.main,...d.main}),this._addOffset({...r.fallback,...d.fallback})])}_addOffset(e){return e}_getOrigin(){const e=!this._dir||"ltr"==this._dir.value,t=this.position;let r;"above"==t||"below"==t?r={originX:"center",originY:"above"==t?"top":"bottom"}:"before"==t||"left"==t&&e||"right"==t&&!e?r={originX:"start",originY:"center"}:("after"==t||"right"==t&&e||"left"==t&&!e)&&(r={originX:"end",originY:"center"});const{x:d,y:h}=this._invertPosition(r.originX,r.originY);return{main:r,fallback:{originX:d,originY:h}}}_getOverlayPosition(){const e=!this._dir||"ltr"==this._dir.value,t=this.position;let r;"above"==t?r={overlayX:"center",overlayY:"bottom"}:"below"==t?r={overlayX:"center",overlayY:"top"}:"before"==t||"left"==t&&e||"right"==t&&!e?r={overlayX:"end",overlayY:"center"}:("after"==t||"right"==t&&e||"left"==t&&!e)&&(r={overlayX:"start",overlayY:"center"});const{x:d,y:h}=this._invertPosition(r.overlayX,r.overlayY);return{main:r,fallback:{overlayX:d,overlayY:h}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,rt.q)(1),Ke(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,t){return"above"===this.position||"below"===this.position?"top"===t?t="bottom":"bottom"===t&&(t="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:t}}_updateCurrentPositionClass(e){const{overlayY:t,originX:r,originY:d}=e;let h;if(h="center"===t?this._dir&&"rtl"===this._dir.value?"end"===r?"left":"right":"start"===r?"left":"right":"bottom"===t&&"top"===d?"above":"below",h!==this._currentPosition){const c=this._overlayRef;if(c){const o=`${this._cssClassPrefix}-${Hg}-`;c.removePanelClass(o+this._currentPosition),c.addPanelClass(o+h)}this._currentPosition=h}}_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 e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",t=>{const r=t.relatedTarget;(!r||!this._overlayRef?.overlayElement.contains(r))&&this.hide()}],["wheel",t=>this._wheelListener(t)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const t=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",t],["touchcancel",t])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([t,r])=>{this._elementRef.nativeElement.addEventListener(t,r,Pg)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const t=this._document.elementFromPoint(e.clientX,e.clientY),r=this._elementRef.nativeElement;t!==r&&!r.contains(t)&&this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const t=this._elementRef.nativeElement,r=t.style;("on"===e||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(r.userSelect=r.msUserSelect=r.webkitUserSelect=r.MozUserSelect="none"),("on"===e||!t.draggable)&&(r.webkitUserDrag="none"),r.touchAction="none",r.webkitTapHighlightColor="transparent"}}}return i.\u0275fac=function(e){n.$Z()},i.\u0275dir=n.lG2({type:i,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),i})(),ks=(()=>{class i extends fE{constructor(e,t,r,d,h,c,o,a,l,u,p,m){super(e,t,r,d,h,c,o,a,l,u,p,m),this._tooltipComponent=by}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(rr),n.Y36(n.SBq),n.Y36(Tl),n.Y36(n.s_b),n.Y36(n.R0b),n.Y36(yn),n.Y36(Kd),n.Y36(Ii),n.Y36(Rg),n.Y36(xn,8),n.Y36(H0,8),n.Y36(x.K0))},i.\u0275dir=n.lG2({type:i,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[n.qOj]}),i})(),_y=(()=>{class i{constructor(e,t){this._changeDetectorRef=e,this._visibility="initial",this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new Me.x,this._animationsDisabled="NoopAnimations"===t}show(e){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:e}){(!e||!this._triggerElement.contains(e))&&this.hide(this._mouseLeaveHideDelay)}_onShow(){}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){const t=this._tooltip.nativeElement,r=this._showAnimation,d=this._hideAnimation;if(t.classList.remove(e?d:r),t.classList.add(e?r:d),this._isVisible=e,e&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const h=getComputedStyle(t);("0s"===h.getPropertyValue("animation-duration")||"none"===h.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(t.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.sBO),n.Y36(n.QbO,8))},i.\u0275dir=n.lG2({type:i}),i})(),by=(()=>{class i extends _y{constructor(e,t,r){super(e,r),this._breakpointObserver=t,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)"),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.sBO),n.Y36(Jf),n.Y36(n.QbO,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-tooltip-component"]],viewQuery:function(e,t){if(1&e&&n.Gf(my,7),2&e){let r;n.iGM(r=n.CRH())&&(t._tooltip=r.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,t){1&e&&n.NdJ("mouseleave",function(d){return t._handleMouseLeave(d)}),2&e&&n.Udp("zoom",t.isVisible()?1:null)},features:[n.qOj],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(e,t){if(1&e&&(n.TgZ(0,"div",0,1),n.NdJ("animationend",function(d){return t._handleAnimationEnd(d)}),n.ALo(2,"async"),n._uU(3),n.qZA()),2&e){let r;n.ekj("mat-tooltip-handset",null==(r=n.lcZ(2,4,t._isHandset))?null:r.matches),n.Q6J("ngClass",t.tooltipClass),n.xp6(3),n.Oqu(t.message)}},dependencies:[x.mk,x.Ov],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}"],encapsulation:2,changeDetection:0}),i})(),Ls=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[Zc],imports:[bl,x.ez,El,ht,ht,Ds]}),i})();function kg(i,s){if(1&i&&(n.TgZ(0,"mat-option",19),n._uU(1),n.qZA()),2&i){const e=s.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function R0(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"mat-form-field",16)(1,"mat-select",17),n.NdJ("selectionChange",function(r){n.CHM(e);const d=n.oxw(2);return n.KtG(d._changePageSize(r.value))}),n.YNc(2,kg,2,2,"mat-option",18),n.qZA()()}if(2&i){const e=n.oxw(2);n.Q6J("appearance",e._formFieldAppearance)("color",e.color),n.xp6(1),n.Q6J("value",e.pageSize)("disabled",e.disabled)("panelClass",e.selectConfig.panelClass||"")("disableOptionCentering",e.selectConfig.disableOptionCentering)("aria-label",e._intl.itemsPerPageLabel),n.xp6(1),n.Q6J("ngForOf",e._displayedPageSizeOptions)}}function wy(i,s){if(1&i&&(n.TgZ(0,"div",20),n._uU(1),n.qZA()),2&i){const e=n.oxw(2);n.xp6(1),n.Oqu(e.pageSize)}}function k0(i,s){if(1&i&&(n.TgZ(0,"div",12)(1,"div",13),n._uU(2),n.qZA(),n.YNc(3,R0,3,8,"mat-form-field",14),n.YNc(4,wy,2,1,"div",15),n.qZA()),2&i){const e=n.oxw();n.xp6(2),n.hij(" ",e._intl.itemsPerPageLabel," "),n.xp6(1),n.Q6J("ngIf",e._displayedPageSizeOptions.length>1),n.xp6(1),n.Q6J("ngIf",e._displayedPageSizeOptions.length<=1)}}function L0(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"button",21),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.firstPage())}),n.O4$(),n.TgZ(1,"svg",7),n._UZ(2,"path",22),n.qZA()()}if(2&i){const e=n.oxw();n.Q6J("matTooltip",e._intl.firstPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),n.uIk("aria-label",e._intl.firstPageLabel)}}function Qc(i,s){if(1&i){const e=n.EpF();n.O4$(),n.kcU(),n.TgZ(0,"button",23),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.lastPage())}),n.O4$(),n.TgZ(1,"svg",7),n._UZ(2,"path",24),n.qZA()()}if(2&i){const e=n.oxw();n.Q6J("matTooltip",e._intl.lastPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),n.uIk("aria-label",e._intl.lastPageLabel)}}let Ip=(()=>{class i{constructor(){this.changes=new Me.x,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(e,t,r)=>{if(0==r||0==t)return`0 of ${r}`;const d=e*t;return`${d+1} \u2013 ${d<(r=Math.max(r,0))?Math.min(d+t,r):d+t} of ${r}`}}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const yy={provide:Ip,deps:[[new n.FiY,new n.tp0,Ip]],useFactory:function Lg(i){return i||new Ip}},Og=new n.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),gE=Qr(Zh(class{}));let Ay=(()=>{class i extends gE{constructor(e,t,r){if(super(),this._intl=e,this._changeDetectorRef=t,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.selectConfig={},this.page=new n.vpe,this._intlChanges=e.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),r){const{pageSize:d,pageSizeOptions:h,hidePageSize:c,showFirstLastButtons:o}=r;null!=d&&(this._pageSize=d),null!=h&&(this._pageSizeOptions=h),null!=c&&(this._hidePageSize=c),null!=o&&(this._showFirstLastButtons=o)}}get pageIndex(){return this._pageIndex}set pageIndex(e){this._pageIndex=Math.max(_n(e),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(e){this._length=_n(e),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(e){this._pageSize=Math.max(_n(e),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(e){this._pageSizeOptions=(e||[]).map(t=>_n(t)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(e){this._hidePageSize=Oe(e)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(e){this._showFirstLastButtons=Oe(e)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const e=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(e)}previousPage(){if(!this.hasPreviousPage())return;const e=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(e)}firstPage(){if(!this.hasPreviousPage())return;const e=this.pageIndex;this.pageIndex=0,this._emitPageEvent(e)}lastPage(){if(!this.hasNextPage())return;const e=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(e)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const e=this.getNumberOfPages()-1;return this.pageIndexe-t),this._changeDetectorRef.markForCheck())}_emitPageEvent(e){this.page.emit({previousPageIndex:e,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return i.\u0275fac=function(e){n.$Z()},i.\u0275dir=n.lG2({type:i,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",selectConfig:"selectConfig"},outputs:{page:"page"},features:[n.qOj]}),i})(),vy=(()=>{class i extends Ay{constructor(e,t,r){super(e,t,r),r&&null!=r.formFieldAppearance&&(this._formFieldAppearance=r.formFieldAppearance)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ip),n.Y36(n.sBO),n.Y36(Og,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[n.qOj],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","panelClass","disableOptionCentering","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(e,t){1&e&&(n.TgZ(0,"div",0)(1,"div",1),n.YNc(2,k0,5,3,"div",2),n.TgZ(3,"div",3)(4,"div",4),n._uU(5),n.qZA(),n.YNc(6,L0,3,5,"button",5),n.TgZ(7,"button",6),n.NdJ("click",function(){return t.previousPage()}),n.O4$(),n.TgZ(8,"svg",7),n._UZ(9,"path",8),n.qZA()(),n.kcU(),n.TgZ(10,"button",9),n.NdJ("click",function(){return t.nextPage()}),n.O4$(),n.TgZ(11,"svg",7),n._UZ(12,"path",10),n.qZA()(),n.YNc(13,Qc,3,5,"button",11),n.qZA()()()),2&e&&(n.xp6(2),n.Q6J("ngIf",!t.hidePageSize),n.xp6(3),n.hij(" ",t._intl.getRangeLabel(t.pageIndex,t.pageSize,t.length)," "),n.xp6(1),n.Q6J("ngIf",t.showFirstLastButtons),n.xp6(1),n.Q6J("matTooltip",t._intl.previousPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("matTooltipPosition","above")("disabled",t._previousButtonsDisabled()),n.uIk("aria-label",t._intl.previousPageLabel),n.xp6(3),n.Q6J("matTooltip",t._intl.nextPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("matTooltipPosition","above")("disabled",t._nextButtonsDisabled()),n.uIk("aria-label",t._intl.nextPageLabel),n.xp6(3),n.Q6J("ngIf",t.showFirstLastButtons))},dependencies:[x.sg,x.O5,Ot,ar,Jc,Al,ks],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{display:inline-block;width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}"],encapsulation:2,changeDetection:0}),i})(),Iu=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[yy],imports:[x.ez,bi,Lu,Ls,ht]}),i})();var Bl=E(1005);const I0=["mat-menu-item",""];function Ty(i,s){1&i&&(n.O4$(),n.TgZ(0,"svg",2),n._UZ(1,"polygon",3),n.qZA())}const Op=["*"];function _E(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"div",0),n.NdJ("keydown",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d._handleKeydown(r))})("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.closed.emit("click"))})("@transformMenu.start",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d._onAnimationStart(r))})("@transformMenu.done",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d._onAnimationDone(r))}),n.TgZ(1,"div",1),n.Hsn(2),n.qZA()()}if(2&i){const e=n.oxw();n.Q6J("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),n.uIk("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const Bp={transformMenu:fn("transformMenu",[Pt("void",He({opacity:0,transform:"scale(0.8)"})),xt("void => enter",Tt("120ms cubic-bezier(0, 0, 0.2, 1)",He({opacity:1,transform:"scale(1)"}))),xt("* => void",Tt("100ms 25ms linear",He({opacity:0})))]),fadeInItems:fn("fadeInItems",[Pt("showing",He({opacity:1})),xt("void => *",[He({opacity:0}),Tt("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},O0=new n.OlP("MatMenuContent"),Vp=new n.OlP("MAT_MENU_PANEL"),U0=mr(Qr(class{}));let Kc=(()=>{class i extends U0{constructor(e,t,r,d,h){super(),this._elementRef=e,this._document=t,this._focusMonitor=r,this._parentMenu=d,this._changeDetectorRef=h,this.role="menuitem",this._hovered=new Me.x,this._focused=new Me.x,this._highlighted=!1,this._triggersSubmenu=!1,d?.addItem?.(this)}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),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(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const e=this._elementRef.nativeElement.cloneNode(!0),t=e.querySelectorAll("mat-icon, .material-icons");for(let r=0;r{class i{constructor(e,t,r,d){this._elementRef=e,this._ngZone=t,this._defaultOptions=r,this._changeDetectorRef=d,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new n.n_E,this._tabSubscription=Rt.w0.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new Me.x,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new n.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+xy++}get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(e){this._overlapTrigger=Oe(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=Oe(e)}set panelClass(e){const t=this._previousPanelClass;t&&t.length&&t.split(" ").forEach(r=>{this._classList[r]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(r=>{this._classList[r]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(e){this.panelClass=e}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new Mc(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Zt(this._directDescendantItems),(0,bn.w)(e=>(0,Sn.T)(...e.map(t=>t._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{const t=this._keyManager;if("enter"===this._panelAnimationState&&t.activeItem?._hasFocus()){const r=e.toArray(),d=Math.max(0,Math.min(r.length-1,t.activeItemIndex||0));r[d]&&!r[d].disabled?t.setActiveItem(d):t.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(Zt(this._directDescendantItems),(0,bn.w)(t=>(0,Sn.T)(...t.map(r=>r._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const t=e.keyCode,r=this._keyManager;switch(t){case 27:ri(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(38===t||40===t)&&r.setFocusOrigin("keyboard"),void r.onKeydown(e)}e.stopPropagation()}focusFirstItem(e="program"){this._ngZone.onStable.pipe((0,rt.q)(1)).subscribe(()=>{let t=null;if(this._directDescendantItems.length&&(t=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!t||!t.contains(document.activeElement)){const r=this._keyManager;r.setFocusOrigin(e).setFirstItemActive(),!r.activeItem&&t&&t.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const t=Math.min(this._baseElevation+e,24),r=`${this._elevationPrefix}${t}`,d=Object.keys(this._classList).find(h=>h.startsWith(this._elevationPrefix));(!d||d===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[r]=!0,this._previousElevation=r)}setPositionClasses(e=this.xPosition,t=this.yPosition){const r=this._classList;r["mat-menu-before"]="before"===e,r["mat-menu-after"]="after"===e,r["mat-menu-above"]="above"===t,r["mat-menu-below"]="below"===t,this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(Zt(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(n.R0b),n.Y36(Bg),n.Y36(n.sBO))},i.\u0275dir=n.lG2({type:i,contentQueries:function(e,t,r){if(1&e&&(n.Suo(r,O0,5),n.Suo(r,Kc,5),n.Suo(r,Kc,4)),2&e){let d;n.iGM(d=n.CRH())&&(t.lazyContent=d.first),n.iGM(d=n.CRH())&&(t._allItems=d),n.iGM(d=n.CRH())&&(t.items=d)}},viewQuery:function(e,t){if(1&e&&n.Gf(n.Rgc,5),2&e){let r;n.iGM(r=n.CRH())&&(t.templateRef=r.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),i})(),jp=(()=>{class i extends Xc{constructor(e,t,r,d){super(e,t,r,d),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(n.R0b),n.Y36(Bg),n.Y36(n.sBO))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,t){2&e&&n.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[n._Bn([{provide:Vp,useExisting:i}]),n.qOj],ngContentSelectors:Op,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(e,t){1&e&&(n.F$t(),n.YNc(0,_E,3,6,"ng-template"))},dependencies:[x.mk],styles:['mat-menu{display:none}.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;position:relative}.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;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}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}'],encapsulation:2,data:{animation:[Bp.transformMenu,Bp.fadeInItems]},changeDetection:0}),i})();const Vg=new n.OlP("mat-menu-scroll-strategy"),Y0={provide:Vg,deps:[rr],useFactory:function F0(i){return()=>i.scrollStrategies.reposition()}},jg=Ja({passive:!0});let CE=(()=>{class i{constructor(e,t,r,d,h,c,o,a,l){this._overlay=e,this._element=t,this._viewContainerRef=r,this._menuItemInstance=c,this._dir=o,this._focusMonitor=a,this._ngZone=l,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=Rt.w0.EMPTY,this._hoverSubscription=Rt.w0.EMPTY,this._menuCloseSubscription=Rt.w0.EMPTY,this._handleTouchStart=u=>{Ms(u)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new n.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new n.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=d,this._parentMaterialMenu=h instanceof Xc?h:void 0,t.nativeElement.addEventListener("touchstart",this._handleTouchStart,jg),c&&(c._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(t=>{this._destroyMenu(t),("click"===t||"tab"===t)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(t)})))}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,jg),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(){const e=this.menu;if(this._menuOpen||!e)return;const t=this._createOverlay(e),r=t.getConfig(),d=r.positionStrategy;this._setPosition(e,d),r.hasBackdrop=e.hasBackdrop??!this.triggersSubmenu(),t.attach(this._getPortal(e)),e.lazyContent&&e.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(e),e instanceof Xc&&(e._startAnimation(),e._directDescendantItems.changes.pipe(Ke(e.close)).subscribe(()=>{d.withLockedPosition(!1).reapplyLastPosition(),d.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;const t=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,t instanceof Xc?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe((0,Ce.h)(r=>"void"===r.toState),(0,rt.q)(1),Ke(t.lazyContent._attached)).subscribe({next:()=>t.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),t?.lazyContent?.detach())}_initMenu(e){e.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,e.direction=this.dir,this._setMenuElevation(e),e.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(e){if(e.setElevation){let t=0,r=e.parentMenu;for(;r;)t++,r=r.parentMenu;e.setElevation(t)}}_setIsMenuOpen(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e)}_createOverlay(e){if(!this._overlayRef){const t=this._getOverlayConfig(e);this._subscribeToPositions(e,t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(e){return new Ml({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e,t){e.setPositionClasses&&t.positionChanges.subscribe(r=>{const d="start"===r.connectionPair.overlayX?"after":"before",h="top"===r.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>e.setPositionClasses(d,h)):e.setPositionClasses(d,h)})}_setPosition(e,t){let[r,d]="before"===e.xPosition?["end","start"]:["start","end"],[h,c]="above"===e.yPosition?["bottom","top"]:["top","bottom"],[o,a]=[h,c],[l,u]=[r,d],p=0;if(this.triggersSubmenu()){if(u=r="before"===e.xPosition?"start":"end",d=l="end"===r?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const m=this._parentMaterialMenu.items.first;this._parentInnerPadding=m?m._getHostElement().offsetTop:0}p="bottom"===h?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(o="top"===h?"bottom":"top",a="top"===c?"bottom":"top");t.withPositions([{originX:r,originY:o,overlayX:l,overlayY:h,offsetY:p},{originX:d,originY:o,overlayX:u,overlayY:h,offsetY:p},{originX:r,originY:a,overlayX:l,overlayY:c,offsetY:-p},{originX:d,originY:a,overlayX:u,overlayY:c,offsetY:-p}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),t=this._overlayRef.detachments(),r=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,xe.of)(),d=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,Ce.h)(h=>h!==this._menuItemInstance),(0,Ce.h)(()=>this._menuOpen)):(0,xe.of)();return(0,Sn.T)(e,r,d,t)}_handleMousedown(e){Qf(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){const t=e.keyCode;(13===t||32===t)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===t&&"ltr"===this.dir||37===t&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,Ce.h)(e=>e===this._menuItemInstance&&!e.disabled),(0,Bl.g)(0,Aa)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Xc&&this.menu._isAnimating?this.menu._animationDone.pipe((0,rt.q)(1),(0,Bl.g)(0,Aa),Ke(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new Ir(e.templateRef,this._viewContainerRef)),this._portal}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(rr),n.Y36(n.SBq),n.Y36(n.s_b),n.Y36(Vg),n.Y36(Vp,8),n.Y36(Kc,10),n.Y36(xn,8),n.Y36(Ii),n.Y36(n.R0b))},i.\u0275dir=n.lG2({type:i,hostVars:3,hostBindings:function(e,t){1&e&&n.NdJ("click",function(d){return t._handleClick(d)})("mousedown",function(d){return t._handleMousedown(d)})("keydown",function(d){return t._handleKeydown(d)}),2&e&&n.uIk("aria-haspopup",t.menu?"menu":null)("aria-expanded",t.menuOpen||null)("aria-controls",t.menuOpen?t.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),i})(),Sy=(()=>{class i extends CE{}return i.\u0275fac=function(){let s;return function(t){return(s||(s=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[n.qOj]}),i})(),Ug=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[Y0],imports:[x.ez,ht,Kr,El,Ds,ht]}),i})();const AE=["*"];let Ng;function Up(i){return function vE(){if(void 0===Ng&&(Ng=null,typeof window<"u")){const i=window;void 0!==i.trustedTypes&&(Ng=i.trustedTypes.createPolicy("angular#components",{createHTML:s=>s}))}return Ng}()?.createHTML(i)||i}function q0(i){return Error(`Unable to find icon with the name "${i}"`)}function z0(i){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${i}".`)}function Fg(i){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${i}".`)}class rs{constructor(s,e,t){this.url=s,this.svgText=e,this.options=t}}let xo=(()=>{class i{constructor(e,t,r,d){this._httpClient=e,this._sanitizer=t,this._errorHandler=d,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=r}addSvgIcon(e,t,r){return this.addSvgIconInNamespace("",e,t,r)}addSvgIconLiteral(e,t,r){return this.addSvgIconLiteralInNamespace("",e,t,r)}addSvgIconInNamespace(e,t,r,d){return this._addSvgIconConfig(e,t,new rs(r,null,d))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,t,r,d){const h=this._sanitizer.sanitize(n.q3G.HTML,r);if(!h)throw Fg(r);const c=Up(h);return this._addSvgIconConfig(e,t,new rs("",c,d))}addSvgIconSet(e,t){return this.addSvgIconSetInNamespace("",e,t)}addSvgIconSetLiteral(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}addSvgIconSetInNamespace(e,t,r){return this._addSvgIconSetConfig(e,new rs(t,null,r))}addSvgIconSetLiteralInNamespace(e,t,r){const d=this._sanitizer.sanitize(n.q3G.HTML,t);if(!d)throw Fg(t);const h=Up(d);return this._addSvgIconSetConfig(e,new rs("",h,r))}registerFontClassAlias(e,t=e){return this._fontCssClassesByAlias.set(e,t),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const t=this._sanitizer.sanitize(n.q3G.RESOURCE_URL,e);if(!t)throw z0(e);const r=this._cachedIconsByUrl.get(t);return r?(0,xe.of)(ed(r)):this._loadSvgIconFromConfig(new rs(e,null)).pipe((0,nn.b)(d=>this._cachedIconsByUrl.set(t,d)),(0,_t.U)(d=>ed(d)))}getNamedSvgIcon(e,t=""){const r=Yg(t,e);let d=this._svgIconConfigs.get(r);if(d)return this._getSvgFromConfig(d);if(d=this._getIconConfigFromResolvers(t,e),d)return this._svgIconConfigs.set(r,d),this._getSvgFromConfig(d);const h=this._iconSetConfigs.get(t);return h?this._getSvgFromIconSetConfigs(e,h):(0,mi._)(q0(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?(0,xe.of)(ed(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe((0,_t.U)(t=>ed(t)))}_getSvgFromIconSetConfigs(e,t){const r=this._extractIconWithNameFromAnySet(e,t);return r?(0,xe.of)(r):oa(t.filter(h=>!h.svgText).map(h=>this._loadSvgIconSetFromConfig(h).pipe((0,Ri.K)(c=>{const a=`Loading icon set URL: ${this._sanitizer.sanitize(n.q3G.RESOURCE_URL,h.url)} failed: ${c.message}`;return this._errorHandler.handleError(new Error(a)),(0,xe.of)(null)})))).pipe((0,_t.U)(()=>{const h=this._extractIconWithNameFromAnySet(e,t);if(!h)throw q0(e);return h}))}_extractIconWithNameFromAnySet(e,t){for(let r=t.length-1;r>=0;r--){const d=t[r];if(d.svgText&&d.svgText.toString().indexOf(e)>-1){const h=this._svgElementFromConfig(d),c=this._extractSvgIconFromSet(h,e,d.options);if(c)return c}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe((0,nn.b)(t=>e.svgText=t),(0,_t.U)(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?(0,xe.of)(null):this._fetchIcon(e).pipe((0,nn.b)(t=>e.svgText=t))}_extractSvgIconFromSet(e,t,r){const d=e.querySelector(`[id="${t}"]`);if(!d)return null;const h=d.cloneNode(!0);if(h.removeAttribute("id"),"svg"===h.nodeName.toLowerCase())return this._setSvgAttributes(h,r);if("symbol"===h.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(h),r);const c=this._svgElementFromString(Up(""));return c.appendChild(h),this._setSvgAttributes(c,r)}_svgElementFromString(e){const t=this._document.createElement("DIV");t.innerHTML=e;const r=t.querySelector("svg");if(!r)throw Error(" tag not found");return r}_toSvgElement(e){const t=this._svgElementFromString(Up("")),r=e.attributes;for(let d=0;dUp(a)),Mr(()=>this._inProgressUrlFetches.delete(h)),(0,qs.B)());return this._inProgressUrlFetches.set(h,o),o}_addSvgIconConfig(e,t,r){return this._svgIconConfigs.set(Yg(e,t),r),this}_addSvgIconSetConfig(e,t){const r=this._iconSetConfigs.get(e);return r?r.push(t):this._iconSetConfigs.set(e,[t]),this}_svgElementFromConfig(e){if(!e.svgElement){const t=this._svgElementFromString(e.svgText);this._setSvgAttributes(t,e.options),e.svgElement=t}return e.svgElement}_getIconConfigFromResolvers(e,t){for(let r=0;rs?s.pathname+s.search:""}}}),Dy=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Fp=Dy.map(i=>`[${i}]`).join(", "),J0=/^url\(['"]?#(.*?)['"]?\)$/;let Ln=(()=>{class i extends Ey{constructor(e,t,r,d,h,c){super(e),this._iconRegistry=t,this._location=d,this._errorHandler=h,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=Rt.w0.EMPTY,c&&(c.color&&(this.color=this.defaultColor=c.color),c.fontSet&&(this.fontSet=c.fontSet)),r||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=Oe(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const t=this._cleanupFontValue(e);t!==this._fontSet&&(this._fontSet=t,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const t=this._cleanupFontValue(e);t!==this._fontIcon&&(this._fontIcon=t,this._updateFontIconClasses())}_splitIconName(e){if(!e)return["",""];const t=e.split(":");switch(t.length){case 1:return["",t[0]];case 2:return t;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.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(e){this._clearSvgElement();const t=this._location.getPathname();this._previousPath=t,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(t),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let t=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();t--;){const r=e.childNodes[t];(1!==r.nodeType||"svg"===r.nodeName.toLowerCase())&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,t=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(r=>r.length>0);this._previousFontSetClass.forEach(r=>e.classList.remove(r)),t.forEach(r=>e.classList.add(r)),this._previousFontSetClass=t,this.fontIcon!==this._previousFontIconClass&&!t.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return"string"==typeof e?e.trim().split(" ")[0]:e}_prependPathToReferences(e){const t=this._elementsWithExternalReferences;t&&t.forEach((r,d)=>{r.forEach(h=>{d.setAttribute(h.name,`url('${e}#${h.value}')`)})})}_cacheChildrenWithExternalReferences(e){const t=e.querySelectorAll(Fp),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let d=0;d{const c=t[d],o=c.getAttribute(h),a=o?o.match(J0):null;if(a){let l=r.get(c);l||(l=[],r.set(c,l)),l.push({name:h,value:a[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[t,r]=this._splitIconName(e);t&&(this._svgNamespace=t),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,t).pipe((0,rt.q)(1)).subscribe(d=>this._setSvgElement(d),d=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${t}:${r}! ${d.message}`))})}}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(xo),n.$8M("aria-hidden"),n.Y36(W0),n.Y36(n.qLn),n.Y36(TE,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,t){2&e&&(n.uIk("data-mat-icon-type",t._usingFontIcon()?"font":"svg")("data-mat-icon-name",t._svgName||t.fontIcon)("data-mat-icon-namespace",t._svgNamespace||t.fontSet),n.ekj("mat-icon-inline",t.inline)("mat-icon-no-color","primary"!==t.color&&"accent"!==t.color&&"warn"!==t.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[n.qOj],ngContentSelectors:AE,decls:1,vars:0,template:function(e,t){1&e&&(n.F$t(),n.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[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}"],encapsulation:2,changeDetection:0}),i})(),Vl=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[ht,ht]}),i})(),Z0=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Iu,Ug,Vl,bi,Gs,x.ez]}),i})();var Q0=E(5861);function K0(i,s){}class Yp{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0}}let Hy=(()=>{class i extends wo{constructor(e,t,r,d,h,c,o,a){super(),this._elementRef=e,this._focusTrapFactory=t,this._config=d,this._interactivityChecker=h,this._ngZone=c,this._overlayRef=o,this._focusMonitor=a,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=l=>{this._portalOutlet.hasAttached();const u=this._portalOutlet.attachDomPortal(l);return this._contentAttached(),u},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=r}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();const t=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),t}attachTemplatePortal(e){this._portalOutlet.hasAttached();const t=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),t}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const r=()=>{e.removeEventListener("blur",r),e.removeEventListener("mousedown",r),e.removeAttribute("tabindex")};e.addEventListener("blur",r),e.addEventListener("mousedown",r)})),e.focus(t)}_focusByCssSelector(e,t){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,t)}_trapFocus(){const e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(t=>{t||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const e=this._config.restoreFocus;let t=null;if("string"==typeof e?t=this._document.querySelector(e):"boolean"==typeof e?t=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(t=e),this._config.restoreFocus&&t&&"function"==typeof t.focus){const r=ho(),d=this._elementRef.nativeElement;(!r||r===this._document.body||r===d||d.contains(r))&&(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,t=ho();return e===t||e.contains(t)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=ho())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(Xd),n.Y36(x.K0,8),n.Y36(Yp),n.Y36(Gh),n.Y36(n.R0b),n.Y36(Oc),n.Y36(Ii))},i.\u0275cmp=n.Xpm({type:i,selectors:[["cdk-dialog-container"]],viewQuery:function(e,t){if(1&e&&n.Gf(Sa,7),2&e){let r;n.iGM(r=n.CRH())&&(t._portalOutlet=r.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(e,t){2&e&&n.uIk("id",t._config.id||null)("role",t._config.role)("aria-modal",t._config.ariaModal)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null)},features:[n.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&n.YNc(0,K0,0,0,"ng-template",0)},dependencies:[Sa],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),i})();class qp{constructor(s,e){this.overlayRef=s,this.config=e,this.closed=new Me.x,this.disableClose=e.disableClose,this.backdropClick=s.backdropClick(),this.keydownEvents=s.keydownEvents(),this.outsidePointerEvents=s.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(t=>{27===t.keyCode&&!this.disableClose&&!ri(t)&&(t.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(s,e){if(this.containerInstance){const t=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this.overlayRef.dispose(),t.next(s),t.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(s="",e=""){return this.overlayRef.updateSize({width:s,height:e}),this}addPanelClass(s){return this.overlayRef.addPanelClass(s),this}removePanelClass(s){return this.overlayRef.removePanelClass(s),this}}const qg=new n.OlP("DialogScrollStrategy"),xE=new n.OlP("DialogData"),Da=new n.OlP("DefaultDialogConfig"),zg={provide:qg,deps:[rr],useFactory:function X0(i){return()=>i.scrollStrategies.block()}};let ex=0,br=(()=>{class i{constructor(e,t,r,d,h,c){this._overlay=e,this._injector=t,this._defaultOptions=r,this._parentDialog=d,this._overlayContainer=h,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Me.x,this._afterOpenedAtThisLevel=new Me.x,this._ariaHiddenElements=new Map,this.afterAllClosed=Cn(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Zt(void 0))),this._scrollStrategy=c}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}open(e,t){(t={...this._defaultOptions||new Yp,...t}).id=t.id||"cdk-dialog-"+ex++,t.id&&this.getDialogById(t.id);const d=this._getOverlayConfig(t),h=this._overlay.create(d),c=new qp(h,t),o=this._attachContainer(h,c,t);return c.containerInstance=o,this._attachDialogContent(e,c,o,t),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(c),c.closed.subscribe(()=>this._removeOpenDialog(c,!0)),this.afterOpened.next(c),c}closeAll(){Gg(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){Gg(this._openDialogsAtThisLevel,e=>{!1===e.config.closeOnDestroy&&this._removeOpenDialog(e,!1)}),Gg(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){const t=new Ml({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}_attachContainer(e,t,r){const d=r.injector??r.viewContainerRef?.injector,h=[{provide:Yp,useValue:r},{provide:qp,useValue:t},{provide:Oc,useValue:e}];let c;r.container?"function"==typeof r.container?c=r.container:(c=r.container.type,h.push(...r.container.providers(r))):c=Hy;const o=new xa(c,r.viewContainerRef,n.zs3.create({parent:d||this._injector,providers:h}),r.componentFactoryResolver);return e.attach(o).instance}_attachDialogContent(e,t,r,d){const h=this._createInjector(d,t,r);if(e instanceof n.Rgc){let c={$implicit:d.data,dialogRef:t};d.templateContext&&(c={...c,..."function"==typeof d.templateContext?d.templateContext():d.templateContext}),r.attachTemplatePortal(new Ir(e,null,c,h))}else{const c=r.attachComponentPortal(new xa(e,d.viewContainerRef,h,d.componentFactoryResolver));t.componentInstance=c.instance}}_createInjector(e,t,r){const d=e&&e.viewContainerRef&&e.viewContainerRef.injector,h=[{provide:xE,useValue:e.data},{provide:qp,useValue:t}];return e.providers&&("function"==typeof e.providers?h.push(...e.providers(t,e,r)):h.push(...e.providers)),e.direction&&(!d||!d.get(xn,null,n.XFs.Optional))&&h.push({provide:xn,useValue:{value:e.direction,change:(0,xe.of)()}}),n.zs3.create({parent:e.injector||d||this._injector,providers:h})}_removeOpenDialog(e,t){const r=this.openDialogs.indexOf(e);r>-1&&(this.openDialogs.splice(r,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((d,h)=>{d?h.setAttribute("aria-hidden",d):h.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),t&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const t=e.parentElement.children;for(let r=t.length-1;r>-1;r--){const d=t[r];d!==e&&"SCRIPT"!==d.nodeName&&"STYLE"!==d.nodeName&&!d.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(d,d.getAttribute("aria-hidden")),d.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(rr),n.LFG(n.zs3),n.LFG(Da,8),n.LFG(i,12),n.LFG(Ic),n.LFG(qg))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();function Gg(i,s){let e=i.length;for(;e--;)s(i[e])}let Wg=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[br,zg],imports:[El,Hs,bl,Hs]}),i})();function tx(i,s){}const td={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},$g={dialogContainer:fn("dialogContainer",[Pt("void, exit",He({opacity:0,transform:"scale(0.7)"})),Pt("enter",He({transform:"none"})),xt("* => enter",fu([Tt("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",He({transform:"none",opacity:1})),gr("@*",pp(),{optional:!0})]),td),xt("* => void, * => exit",fu([Tt("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",He({opacity:0})),gr("@*",pp(),{optional:!0})]),td)])};class nd{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="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0,this.enterAnimationDuration=td.params.enterAnimationDuration,this.exitAnimationDuration=td.params.exitAnimationDuration}}let Py=(()=>{class i extends Hy{constructor(e,t,r,d,h,c,o,a){super(e,t,r,d,h,c,o,a),this._animationStateChanged=new n.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(Xd),n.Y36(x.K0,8),n.Y36(nd),n.Y36(Gh),n.Y36(n.R0b),n.Y36(Oc),n.Y36(Ii))},i.\u0275cmp=n.Xpm({type:i,selectors:[["ng-component"]],features:[n.qOj],decls:0,vars:0,template:function(e,t){},encapsulation:2}),i})(),nx=(()=>{class i extends Py{constructor(e,t,r,d,h,c,o,a,l){super(e,t,r,d,h,c,o,l),this._changeDetectorRef=a,this._state="enter"}_onAnimationDone({toState:e,totalTime:t}){"enter"===e?this._openAnimationDone(t):"exit"===e&&this._animationStateChanged.next({state:"closed",totalTime:t})}_onAnimationStart({toState:e,totalTime:t}){"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:t}):("exit"===e||"void"===e)&&this._animationStateChanged.next({state:"closing",totalTime:t})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||td.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||td.params.exitAnimationDuration}}}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(Xd),n.Y36(x.K0,8),n.Y36(nd),n.Y36(Gh),n.Y36(n.R0b),n.Y36(Oc),n.Y36(n.sBO),n.Y36(Ii))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(e,t){1&e&&n.WFA("@dialogContainer.start",function(d){return t._onAnimationStart(d)})("@dialogContainer.done",function(d){return t._onAnimationDone(d)}),2&e&&(n.Ikx("id",t._config.id),n.uIk("aria-modal",t._config.ariaModal)("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),n.d8E("@dialogContainer",t._getAnimationState()))},features:[n.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&n.YNc(0,tx,0,0,"ng-template",0)},dependencies:[Sa],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.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.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}"],encapsulation:2,data:{animation:[$g.dialogContainer]}}),i})();class si{constructor(s,e,t){this._ref=s,this._containerInstance=t,this._afterOpened=new Me.x,this._beforeClosed=new Me.x,this._state=0,this.disableClose=e.disableClose,this.id=s.id,t._animationStateChanged.pipe((0,Ce.h)(r=>"opened"===r.state),(0,rt.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),t._animationStateChanged.pipe((0,Ce.h)(r=>"closed"===r.state),(0,rt.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),s.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,Sn.T)(this.backdropClick(),this.keydownEvents().pipe((0,Ce.h)(r=>27===r.keyCode&&!this.disableClose&&!ri(r)))).subscribe(r=>{this.disableClose||(r.preventDefault(),function Ry(i,s,e){i._closeInteractionType=s,i.close(e)}(this,"keydown"===r.type?"keyboard":"mouse"))})}close(s){this._result=s,this._containerInstance._animationStateChanged.pipe((0,Ce.h)(e=>"closing"===e.state),(0,rt.q)(1)).subscribe(e=>{this._beforeClosed.next(s),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(s){let e=this._ref.config.positionStrategy;return s&&(s.left||s.right)?s.left?e.left(s.left):e.right(s.right):e.centerHorizontally(),s&&(s.top||s.bottom)?s.top?e.top(s.top):e.bottom(s.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(s="",e=""){return this._ref.updateSize(s,e),this}addPanelClass(s){return this._ref.addPanelClass(s),this}removePanelClass(s){return this._ref.removePanelClass(s),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}const wr=new n.OlP("MatDialogData"),ky=new n.OlP("mat-dialog-default-options"),Ly=new n.OlP("mat-dialog-scroll-strategy"),Oy={provide:Ly,deps:[rr],useFactory:function So(i){return()=>i.scrollStrategies.block()}};let Jg=0,Is=(()=>{class i{constructor(e,t,r,d,h,c,o,a,l,u){this._overlay=e,this._defaultOptions=r,this._parentDialog=d,this._dialogRefConstructor=o,this._dialogContainerType=a,this._dialogDataToken=l,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Me.x,this._afterOpenedAtThisLevel=new Me.x,this._idPrefix="mat-dialog-",this.afterAllClosed=Cn(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Zt(void 0))),this._scrollStrategy=c,this._dialog=t.get(br)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(e,t){let r;(t={...this._defaultOptions||new nd,...t}).id=t.id||`${this._idPrefix}${Jg++}`,t.scrollStrategy=t.scrollStrategy||this._scrollStrategy();const d=this._dialog.open(e,{...t,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:nd,useValue:t},{provide:Yp,useValue:t}]},templateContext:()=>({dialogRef:r}),providers:(h,c,o)=>(r=new this._dialogRefConstructor(h,t,o),r.updatePosition(t?.position),[{provide:this._dialogContainerType,useValue:o},{provide:this._dialogDataToken,useValue:c.data},{provide:this._dialogRefConstructor,useValue:r}])});return r.componentInstance=d.componentInstance,this.openDialogs.push(r),this.afterOpened.next(r),r.afterClosed().subscribe(()=>{const h=this.openDialogs.indexOf(r);h>-1&&(this.openDialogs.splice(h,1),this.openDialogs.length||this._getAfterAllClosed().next())}),r}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let t=e.length;for(;t--;)e[t].close()}}return i.\u0275fac=function(e){n.$Z()},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})(),oi=(()=>{class i extends Is{constructor(e,t,r,d,h,c,o,a){super(e,t,d,c,o,h,si,nx,wr,a)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(rr),n.LFG(n.zs3),n.LFG(x.Ye,8),n.LFG(ky,8),n.LFG(Ly),n.LFG(i,12),n.LFG(Ic),n.LFG(n.QbO,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})(),SE=0,Oi=(()=>{class i{constructor(e,t,r){this._dialogRef=e,this._elementRef=t,this._dialog=r,this.id="mat-dialog-title-"+SE++}ngOnInit(){this._dialogRef||(this._dialogRef=function By(i,s){let e=i.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-dialog-container");)e=e.parentElement;return e?s.find(t=>t.id===e.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const e=this._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=this.id)})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(si,8),n.Y36(n.SBq),n.Y36(oi))},i.\u0275dir=n.lG2({type:i,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,t){2&e&&n.Ikx("id",t.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),i})(),$i=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),i})(),Bi=(()=>{class i{constructor(){this.align="start"}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(e,t){2&e&&n.ekj("mat-dialog-actions-align-center","center"===t.align)("mat-dialog-actions-align-end","end"===t.align)},inputs:{align:"align"}}),i})(),Zg=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[oi,Oy],imports:[Wg,El,Hs,ht,ht]}),i})();var Vy=E(4327);const jl=[5,10,25,100];function zp(){return(zp=(0,Q0.Z)(function*(i,s){yield Fy(i),s()})).apply(this,arguments)}function Fy(i){return new Promise(s=>setTimeout(s,i))}function Jn(){const i=new nd;return i.disableClose=!0,i.autoFocus=!1,i}const Xg=new Intl.Collator("cs",{numeric:!0});function Mo(i,s,e){const t=s.active,r=s.direction;return t&&""!==r?i.sort((d,h)=>{const c=e(d,t),o=e(h,t);return Xg.compare(c,o)*("asc"===r?1:-1)}):i}function Eo(i,s,e,t,r){s=s.toLowerCase();let d="";return e.forEach(h=>{d+=";"+t(i,h)}),r&&(d+=";"+t(i,"uuid")),d.toLowerCase().includes(s)}function Ou(i,s){let e="";return i?.forEach(t=>{t.friendlyName===s&&(e=t.value)}),e}function Ha(i,s,e){const t=[],r=["checkbox","select","edit","menu","cite","extend","recent"];return s=s.filter(d=>!r.includes(d)),i.forEach(d=>{const h={};s.forEach(c=>{h[c]=(e(d,c)??"").split('"').join("''").trim()}),t.push(h)}),t}function Pa(i,s="csv",e="export"){if("csv"===s){const t=(o,a)=>null===a?"":a,r=Object.keys(i[0]),d=i.map(o=>r.map(a=>JSON.stringify(o[a],t)).join(","));d.unshift(r.join(",").split(" ").join("_").split('"').join("''"));const h=d.join("\r\n"),c=new Blob([h],{type:"text/csv"});(0,Vy.saveAs)(c,`${e}.${s}`)}}const $y="GUI_CONFIG.PREF_PAGE_SIZE.";let Jy=(()=>{class i{getString(e){return localStorage.getItem(e)}getNumber(e){return parseInt(localStorage.getItem(e),10)}setNumber(e,t){localStorage.setItem(e,t.toString())}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),e_=(()=>{class i{constructor(e){this.guiConfigService=e,this.defaultTableSizes=new Map,this.defaultTableSizes.set(C,25),this.defaultTableSizes.set(bx,25)}getTablePageSize(e){const t=this.guiConfigService.getNumber($y+e);if(!isNaN(t))return t;const r=this.guiConfigService.getNumber("GUI_CONFIG.PREF_PAGE_SIZE");return isNaN(r)?this.defaultTableSizes.get(e)??10:r}setTablePageSize(e,t){this.guiConfigService.setNumber($y+e,t)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Jy))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const bx="8",C="25";function BP(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"button",7),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.exportAllData.emit("csv"))}),n._uU(1),n.ALo(2,"translate"),n.qZA()}2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.ALL_DATA")," "))}let VP=(()=>{class i{constructor(){this.exportDisplayedData=new n.vpe,this.exportAllData=new n.vpe}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-table-options"]],inputs:{allowExportAll:"allowExportAll"},outputs:{exportDisplayedData:"exportDisplayedData",exportAllData:"exportAllData"},decls:19,vars:10,consts:[[1,"position-right"],["mat-icon-button","",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"matMenuTriggerFor"],["exportOptions","matMenu"],["xPosition","before"],["selectData","matMenu"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"click",4,"ngIf"]],template:function(e,t){if(1&e&&(n.TgZ(0,"div",0)(1,"button",1)(2,"mat-icon"),n._uU(3,"more_vert"),n.qZA()(),n.TgZ(4,"mat-menu",null,2)(6,"button",3),n._uU(7),n.ALo(8,"translate"),n.qZA()(),n.TgZ(9,"mat-menu",null,4)(11,"button",3),n._uU(12,"Csv"),n.qZA()(),n.TgZ(13,"mat-menu",5,6)(15,"button",7),n.NdJ("click",function(){return t.exportDisplayedData.emit("csv")}),n._uU(16),n.ALo(17,"translate"),n.qZA(),n.YNc(18,BP,3,3,"button",8),n.qZA()()),2&e){const r=n.MAs(5),d=n.MAs(10),h=n.MAs(14);n.xp6(1),n.Q6J("matMenuTriggerFor",r),n.xp6(5),n.Q6J("matMenuTriggerFor",d),n.xp6(1),n.hij(" ",n.lcZ(8,6,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.EXPORT_TO_FILE")," "),n.xp6(4),n.Q6J("matMenuTriggerFor",h),n.xp6(5),n.hij(" ",n.lcZ(17,8,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.DISPLAYED_DATA")," "),n.xp6(2),n.Q6J("ngIf",t.allowExportAll)}},dependencies:[jp,Kc,Sy,Ln,Ot,x.O5,it]}),i})();const jP=["topNav"];function UP(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"perun-web-apps-table-options",7),n.NdJ("exportDisplayedData",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.exportDisplayedData.emit(r))})("exportAllData",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.exportAllData.emit(r))}),n.qZA()}if(2&i){const e=n.oxw();n.Q6J("allowExportAll",e.allowExportAll)}}function NP(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"perun-web-apps-table-options",7),n.NdJ("exportDisplayedData",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.exportDisplayedData.emit(r))})("exportAllData",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.exportAllData.emit(r))}),n.qZA()}if(2&i){const e=n.oxw();n.Q6J("allowExportAll",e.allowExportAll)}}const FP=["*"];let as=(()=>{class i{constructor(e){this.tableConfigService=e,this.hideExport=!1,this.pageSizeOptions=jl,this.dataLength=0,this.allowExportAll=!0,this.exportDisplayedData=new n.vpe,this.exportAllData=new n.vpe,this.pageSize=5}set matPaginator(e){this.paginator=e}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),null===this.pageSizeOptions&&(this.pageSize=5),this.paginator._changePageSize(this.pageSize)}pageChangedTop(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}pageChangedBottom(e){this.paginator.pageSize=e.pageSize,this.paginator.pageIndex=e.pageIndex,this.paginator.page.emit(e),this.pageSize=e.pageSize,this.tableId&&this.tableConfigService.setTablePageSize(this.tableId,e.pageSize),this.topNav.nativeElement.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(e_))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-table-wrapper"]],viewQuery:function(e,t){if(1&e&&(n.Gf(jP,5),n.Gf(vy,7)),2&e){let r;n.iGM(r=n.CRH())&&(t.topNav=r.first),n.iGM(r=n.CRH())&&(t.matPaginator=r.first)}},inputs:{hideExport:"hideExport",pageSizeOptions:"pageSizeOptions",dataLength:"dataLength",tableId:"tableId",allowExportAll:"allowExportAll"},outputs:{exportDisplayedData:"exportDisplayedData",exportAllData:"exportAllData"},ngContentSelectors:FP,decls:10,vars:9,consts:[[1,"card-body","pt-0"],[1,"row","justify-content-end","align-items-center"],["topNav",""],[3,"length","pageSizeOptions","pageSize","page"],[3,"allowExportAll","exportDisplayedData","exportAllData",4,"ngIf"],[1,"overflow-auto","border-top"],[3,"length","pageIndex","pageSizeOptions","pageSize","page"],[3,"allowExportAll","exportDisplayedData","exportAllData"]],template:function(e,t){1&e&&(n.F$t(),n.TgZ(0,"div",0)(1,"div",1,2)(3,"mat-paginator",3),n.NdJ("page",function(d){return t.pageChangedTop(d)}),n.qZA(),n.YNc(4,UP,1,1,"perun-web-apps-table-options",4),n.qZA(),n.TgZ(5,"div",5),n.Hsn(6),n.qZA(),n.TgZ(7,"div",1)(8,"mat-paginator",6),n.NdJ("page",function(d){return t.pageChangedBottom(d)}),n.qZA(),n.YNc(9,NP,1,1,"perun-web-apps-table-options",4),n.qZA()()),2&e&&(n.xp6(3),n.Q6J("length",t.dataLength)("pageSizeOptions",t.pageSizeOptions)("pageSize",t.pageSize),n.xp6(1),n.Q6J("ngIf",!t.hideExport),n.xp6(4),n.Q6J("length",t.paginator.length)("pageIndex",t.paginator.pageIndex)("pageSizeOptions",t.paginator.pageSizeOptions)("pageSize",t.paginator.pageSize),n.xp6(1),n.Q6J("ngIf",!t.hideExport))},dependencies:[vy,x.O5,VP]}),i})(),yi=(()=>{class i{constructor(){this.branding=""}setInstanceConfig(e){this.instanceConfig=e}setDefaultConfig(e){this.defaultConfig=e}getAppsConfig(){return this.appsConfig}setAppsConfig(e){this.appsConfig=e}setPerunPrincipal(e){this.principal=e}getPerunPrincipal(){return this.principal}getInitialPageId(){return this.initialPageId}setInitialPageId(e){this.initialPageId=e}getLoginAttributeNames(){return this.getProperty("login_namespace_attributes")}getMemberProfileAttributeNames(){return this.getProperty("member_profile_attributes_friendly_names")}setBanding(e){this.branding=e}getProperty(e){if(!this.instanceConfig||!this.defaultConfig)return null;const t=[this.instanceConfig?.brandings?.[this.branding],this.instanceConfig],r=this.defaultConfig[e];let d=null;for(const h of t)h&&null==d&&(d=h[e]);return null===d?r:this.addMissingValuesToProperty(d,r)}addMissingValuesToProperty(e,t){if("object"!=typeof e||Array.isArray(e)||null==e){if(null!=e)return e}else for(const r of Object.keys(t))t[r]=this.addMissingValuesToProperty(e[r],t[r]);return t}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();var Wp=E(1214);let ad=(()=>{class i{constructor(e,t,r,d,h){this.injector=e,this.store=t,this.dialog=r,this.route=d,this.oauthService=h,setTimeout(()=>{this.router=this.injector.get($n),this.startIdpFilterKeeper()}),this.route.queryParams.subscribe(c=>{c.idpFilter&&(this.filterShortname=String(c.idpFilter))})}loadOidcConfigData(){this.oauthService.configure(this.getClientConfig())}logout(){sessionStorage.getItem("baPrincipal")?(sessionStorage.removeItem("baPrincipal"),sessionStorage.removeItem("basicUsername"),sessionStorage.removeItem("basicPassword"),sessionStorage.setItem("baLogout","true"),this.router.navigate(["/service-access"],{queryParamsHandling:"preserve"})):this.oauthService.logOut()}isLoggedIn(){return this.oauthService.hasValidAccessToken()}getAuthorizationHeaderValue(){return this.oauthService.hasValidAccessToken()?"Bearer "+this.oauthService.getAccessToken():""}startAuthentication(){this.oauthService.loadDiscoveryDocumentAndLogin()}getIdpFilter(){return this.filterShortname}getClientConfig(){const e=this.setIdpFilter(),d=.5+.25*Math.random(),h=e?{acr_values:e}:{},c=this.store.getProperty("oidc_client");if(c.oauth_scopes.split(" ").includes("offline_access")&&c.oauth_offline_access_consent_prompt&&(h.prompt="consent"),(sessionStorage.getItem("mfa_route")||sessionStorage.getItem("mfaProcessed"))&&(h.acr_values="https://refeds.org/profile/mfa"),sessionStorage.getItem("mfa_route")&&(h.prompt?h.prompt+=" login":h.prompt="login",h.max_age="0"),"Linker"===this.store.getProperty("application")){h.prompt?h.prompt+=" login":h.prompt="login";const o=function Wy(i,s){const e=s.split("&");for(const t of e){const[r,d]=t.split("=");if(r.includes(i))return d}return""}("idphint",location.search.substring(1));o&&(h.idphint=o)}return{requestAccessToken:!0,issuer:c.oauth_authority,clientId:c.oauth_client_id,redirectUri:c.oauth_redirect_uri,postLogoutRedirectUri:c.oauth_post_logout_redirect_uri,responseType:c.oauth_response_type,scope:c.oauth_scopes,clockSkewInSec:1,timeoutFactor:d,userinfoEndpoint:this.store.getProperty("oidc_client").user_info_endpoint_url,customQueryParams:h}}setIdpFilter(){const e=location.search.length?location.search.substring(1).split("&"):[];this.filterShortname=null;const t=this.store.getProperty("oidc_client").filters;if(!t)return null;let r=null;return e.forEach(d=>{const h=d.split("=");"idpFilter"===h[0]&&t[h[1]]&&(this.filterShortname=h[1],r=t[h[1]])}),t.default&&!r?(this.filterShortname="default",t.default):r}startIdpFilterKeeper(){this.router.events.pipe((0,Ce.h)(e=>e instanceof Ni)).subscribe(()=>{const e={idpFilter:this.getIdpFilter()};this.router.navigate([],{relativeTo:this.route,queryParams:"default"===e.idpFilter?{}:e,queryParamsHandling:"merge",replaceUrl:!0})})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(n.zs3),n.LFG(yi),n.LFG(oi),n.LFG(Li),n.LFG(Wp.Ct))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),YP=(()=>{class i{constructor(e){this.dialogRef=e}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(si))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-user-dont-exist-dialog"]],decls:3,vars:3,consts:[["mat-dialog-content","",1,"mt-2","mb-2"]],template:function(e,t){1&e&&(n.TgZ(0,"h2",0),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&e&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.USER_DONT_EXIST.TITLE"),"\n"))},dependencies:[$i,it]}),i})();var qP=E(930);function Cx(i,s){const e="object"==typeof s;return new Promise((t,r)=>{const d=new qP.Hp({next:h=>{t(h),d.unsubscribe()},error:r,complete:()=>{e?t(s.defaultValue):r(new xr.K)}});i.subscribe(d)})}function zP(i,s){1&i&&(n.TgZ(0,"mat-icon",2),n._uU(1," info "),n.qZA())}function GP(i,s){1&i&&(n.TgZ(0,"mat-icon",2),n._uU(1," warning "),n.qZA())}function WP(i,s){1&i&&(n.TgZ(0,"mat-icon",2),n._uU(1," dangerous "),n.qZA())}function $P(i,s){1&i&&(n.TgZ(0,"mat-icon",2),n._uU(1," check_circle "),n.qZA())}const JP=["*"];let na=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-alert"]],inputs:{alert_type:"alert_type"},ngContentSelectors:JP,decls:6,vars:12,consts:[[1,"perun-alert","d-flex","align-items-flex-start"],["class","perun-alert-icon",4,"ngIf"],[1,"perun-alert-icon"]],template:function(e,t){1&e&&(n.F$t(),n.TgZ(0,"div",0),n.YNc(1,zP,2,0,"mat-icon",1),n.YNc(2,GP,2,0,"mat-icon",1),n.YNc(3,WP,2,0,"mat-icon",1),n.YNc(4,$P,2,0,"mat-icon",1),n.Hsn(5),n.qZA()),2&e&&(n.ekj("warn-alert","warn"===t.alert_type)("error-alert","error"===t.alert_type)("success-alert","success"===t.alert_type)("info-alert","info"===t.alert_type),n.xp6(1),n.Q6J("ngIf","info"===t.alert_type),n.xp6(1),n.Q6J("ngIf","warn"===t.alert_type),n.xp6(1),n.Q6J("ngIf","error"===t.alert_type),n.xp6(1),n.Q6J("ngIf","success"===t.alert_type))},dependencies:[Ln,x.O5],styles:[".perun-alert[_ngcontent-%COMP%]{position:relative;padding:.75rem 1.25rem;margin-top:1rem;margin-bottom:1rem}.perun-alert.info-alert[_ngcontent-%COMP%]{font-style:italic;color:gray;text-align:left;border:1px #b3b3b3 solid;border-radius:10px}.perun-alert.warn-alert[_ngcontent-%COMP%]{font-weight:700;text-align:left;border:1px #ececec solid;border-radius:10px;background-color:#ececec}.perun-alert-icon[_ngcontent-%COMP%]{padding-right:2rem}.perun-alert.error-alert[_ngcontent-%COMP%]{text-align:left;border:1px #fedcda solid;border-radius:10px;background-color:#fedcda}.perun-alert.success-alert[_ngcontent-%COMP%]{text-align:left;border:1px #d7ffd7 solid;border-radius:10px;background-color:#d7ffd7}"]}),i})(),ZP=(()=>{class i{constructor(e,t){this.dialogRef=e,this.data=t}cancel(){this.dialogRef.close(!1)}submit(){this.dialogRef.close(!0)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(si),n.Y36(wr))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-mfa-required-dialog"]],decls:15,vars:17,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["alert_type","warn"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"hidden","click"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.qZA(),n.TgZ(3,"div",1)(4,"perun-web-apps-alert",2),n._uU(5),n.ALo(6,"translate"),n.ALo(7,"translate"),n.qZA()(),n.TgZ(8,"div",3)(9,"button",4),n.NdJ("click",function(){return t.cancel()}),n._uU(10),n.ALo(11,"translate"),n.qZA(),n.TgZ(12,"button",5),n.NdJ("click",function(){return t.submit()}),n._uU(13),n.ALo(14,"translate"),n.qZA()()),2&e&&(n.xp6(1),n.Oqu(n.lcZ(2,7,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.TITLE")),n.xp6(4),n.hij(" ",t.data.mfaRoleException?n.lcZ(6,9,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.INFO_ROLE"):n.lcZ(7,11,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.INFO")," "),n.xp6(4),n.Q6J("hidden",t.data.mfaRoleException),n.xp6(1),n.hij(" ",n.lcZ(11,13,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.CANCEL")," "),n.xp6(2),n.Tol(t.data.mfaRoleException?"ml-auto":"ml-2"),n.xp6(1),n.hij(" ",n.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.STEP_UP")," "))},dependencies:[Oi,$i,Bi,Ot,na,it]}),i})(),QP=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-focus-on-mfa-window"]],decls:9,vars:6,consts:[[1,"text-center","custom-dialog"],[1,"align-text-bottom"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"div")(2,"mat-icon",1),n._uU(3," info "),n.qZA(),n._uU(4),n.ALo(5,"translate"),n.qZA(),n.TgZ(6,"div"),n._uU(7),n.ALo(8,"translate"),n.qZA()()),2&e&&(n.xp6(4),n.hij(" ",n.lcZ(5,2,"SHARED_LIB.PERUN.COMPONENTS.FOCUS_ON_MFA_DIALOG.MODAL")," "),n.xp6(3),n.hij(" ",n.lcZ(8,4,"SHARED_LIB.PERUN.COMPONENTS.FOCUS_ON_MFA_DIALOG.MODAL_WARNING")," "))},dependencies:[Ln,it],styles:[".custom-dialog[_ngcontent-%COMP%]{background-color:#000;color:#fffffff2;font-size:1.2rem}"]}),i})(),KP=(()=>{class i{constructor(e,t){this.data=e,this.dialogRef=t}cancel(){this.dialogRef.close(!1)}submit(){window.open(this.data.tokensUrl,"_blank"),this.dialogRef.close(!0)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(wr),n.Y36(si))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-no-mfa-tokens-dialog"]],decls:14,vars:12,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["alert_type","warn"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.qZA(),n.TgZ(3,"div",1)(4,"perun-web-apps-alert",2),n._uU(5),n.ALo(6,"translate"),n.qZA()(),n.TgZ(7,"div",3)(8,"button",4),n.NdJ("click",function(){return t.cancel()}),n._uU(9),n.ALo(10,"translate"),n.qZA(),n.TgZ(11,"button",5),n.NdJ("click",function(){return t.submit()}),n._uU(12),n.ALo(13,"translate"),n.qZA()()),2&e&&(n.xp6(1),n.Oqu(n.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.TITLE")),n.xp6(4),n.hij(" ",n.lcZ(6,6,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.INFO")," "),n.xp6(4),n.hij(" ",n.lcZ(10,8,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.CANCEL")," "),n.xp6(3),n.hij(" ",n.lcZ(13,10,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.MANAGE_TOKENS")," "))},dependencies:[Oi,$i,Bi,Ot,na,it]}),i})(),Ax=(()=>{class i{constructor(e,t,r,d){this.dialog=e,this.oauthService=t,this.authService=r,this.store=d}openMfaWindow(e){let t=null,r=null;const d=Jn();d.width="450px",d.data={mfaRoleException:e};const h=this.dialog.open(ZP,d);let c=!1;if(h.afterClosed().subscribe(o=>{if(o){if(sessionStorage.setItem("mfaRequired","true"),sessionStorage.setItem("oldAccessToken",this.oauthService.getAccessToken()),sessionStorage.setItem("oldRefreshToken",this.oauthService.getRefreshToken()),t=this.setupMfaWindow(),t){const a=Jn();a.width="450px",a.panelClass="noBorderDialog",r=this.dialog.open(QP,a)}}else c=!0}),localStorage.getItem("noMfaTokenDialog")){localStorage.removeItem("noMfaTokenDialog");const o=Jn();o.width="450px",o.data={tokensUrl:this.store.getProperty("mfa").url_en},this.dialog.open(KP,o)}return new ln.y(o=>{const a=setInterval(()=>t?.closed?(clearInterval(a),r.close(),sessionStorage.removeItem("mfaRequired"),sessionStorage.removeItem("mfaProcessed"),null===this.oauthService.getAccessToken()&&(localStorage.setItem("access_token",sessionStorage.getItem("oldAccessToken")),localStorage.setItem("refresh_token",sessionStorage.getItem("oldRefreshToken"))),o.next(!0)):c?(clearInterval(a),o.next(!1)):void 0,1e3)})}catchNoMfaTokenError(e){"unmet_authentication_requirements"===e&&(localStorage.setItem("noMfaTokenDialog","true"),window.close())}mfaWindowForceLogout(){if(sessionStorage.getItem("mfaRequired")&&!sessionStorage.getItem("mfaProcessed"))return sessionStorage.setItem("mfaProcessed","true"),this.oauthService.logOut(!0),this.authService.loadOidcConfigData(),void this.oauthService.loadDiscoveryDocumentAndLogin();sessionStorage.removeItem("mfaRequired")}closeMfaWindow(){sessionStorage.getItem("mfaProcessed")&&!sessionStorage.getItem("mfaRequired")&&(sessionStorage.removeItem("mfaProcessed"),window.close())}setupMfaWindow(){const e=location.pathname+location.search,d=window.top;return window.open(e,"_blank",`width=600,height=600,top=${d.outerHeight/2+d.screenY-300}, left=${d.outerWidth/2+d.screenX-300}`)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(oi),n.LFG(Wp.Ct),n.LFG(ad),n.LFG(yi))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),sC=(()=>{class i{constructor(e,t,r,d,h,c,o,a){this.authService=e,this.oauthService=t,this.storeService=r,this.authResolver=d,this.authzService=h,this.dialog=c,this.router=o,this.mfaHandlerService=a,this.loginScreenShown=!1,this.serviceAccess=!1,this.serviceAccessLoginScreen=!1}isLoginScreenShown(){return this.loginScreenShown}isServiceAccess(){return this.serviceAccess}isServiceAccessLoginScreenShown(){return this.serviceAccessLoginScreen}verifyAuth(){if(this.mfaHandlerService.mfaWindowForceLogout(),sessionStorage.getItem("baPrincipal"))return this.serviceAccess=!0,sessionStorage.getItem("auth:redirect")?this.redirectToOriginDestination():Promise.resolve(!0);if("/service-access"!==location.pathname&&!this.storeService.getProperty("auto_service_access_redirect")){this.authService.loadOidcConfigData();const e=location.pathname,t=location.search.substring(1);return"/api-callback"===e?this.oauthService.loadDiscoveryDocumentAndTryLogin().then(()=>this.startRefreshToken()).then(()=>this.redirectToOriginDestination()):this.oauthService.loadDiscoveryDocument().then(()=>this.tryRefreshToken()).then(()=>"Linker"===this.storeService.getProperty("application")?(sessionStorage.setItem("auth:queryParams",t),localStorage.removeItem("access_token"),!1):this.oauthService.hasValidAccessToken()?this.startRefreshToken():this.isPotentiallyValidPath(e)?(sessionStorage.setItem("auth:redirect",e),sessionStorage.setItem("auth:queryParams",t),!1):Promise.reject("Invalid path"))}}loadPrincipal(){return Cx(this.authzService.getPerunPrincipal()).then(e=>{if(null===e.user){const t=Jn();this.dialog.open(YP,t)}else this.storeService.setPerunPrincipal(e),this.authResolver.init(e)})}simpleLoadPrincipal(){return Cx(this.authzService.getPerunPrincipal()).then(e=>{this.storeService.setPerunPrincipal(e)})}checkRouteGuard(){const e=localStorage.getItem("routeAuthGuard");e&&(localStorage.removeItem("routeAuthGuard"),this.router.navigate([e],{queryParamsHandling:"merge"}))}handleAuthStart(){if(this.storeService.getProperty("auto_service_access_redirect")&&"/service-access"!==location.pathname){this.serviceAccess=!0,this.serviceAccessLoginScreen=!0;const e=location.pathname,t=location.search.substring(1);sessionStorage.setItem("auth:redirect",e),sessionStorage.setItem("auth:queryParams",t);const r={};return t.split("&").forEach(d=>{const h=d.split("=");r[h[0]]=h[1]}),this.router.navigate(["service-access"],{queryParams:r,queryParamsHandling:"merge"}).then()}if("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal")||this.storeService.getProperty("auto_service_access_redirect")){this.serviceAccess=!0,this.serviceAccessLoginScreen=!0;const e=location.search.substring(1);return sessionStorage.setItem("auth:queryParams",e),Promise.resolve()}return this.storeService.getProperty("auto_auth_redirect")?(sessionStorage.getItem("mfaProcessed")||localStorage.setItem("routeAuthGuard",window.location.pathname),this.startAuth().then(()=>new Promise(()=>{}))):(this.setLoginScreen(!0),localStorage.setItem("routeAuthGuard",window.location.pathname),void this.router.navigate(["login"],{queryParamsHandling:"merge"}))}setLoginScreen(e){this.loginScreenShown=e}isPotentiallyValidPath(e){const t=["/home","/organizations","/facilities","/myProfile","/admin","/login","/service-access","/profile"];if("/"===e)return!0;for(const r of t)if(e.startsWith(r))return!0;return!1}startRefreshToken(){return this.oauthService.hasValidAccessToken()?(this.oauthService.events.pipe((0,Ce.h)(e=>"token_expires"===e.type&&"access_token"===e.info)).subscribe(()=>{this.oauthService.refreshToken()}),Promise.resolve(!0)):Promise.resolve(!1)}tryRefreshToken(){return localStorage.getItem("refresh_token")&&!this.oauthService.hasValidAccessToken()?this.oauthService.refreshToken().then(()=>Promise.resolve()).catch(()=>Promise.resolve()):Promise.resolve()}redirectToOriginDestination(){const e=sessionStorage.getItem("mfa_route");if(e)return this.router.navigate([e],{replaceUrl:!0,queryParamsHandling:"merge"});let t=sessionStorage.getItem("auth:redirect");(!t||"/login"===t)&&(t="/"),sessionStorage.removeItem("auth:redirect");const r=sessionStorage.getItem("auth:queryParams");let d=[];r&&(d=r.split("&"));const h={};return d.forEach(c=>{const o=c.split("=");h[o[0]]=o[1]}),sessionStorage.removeItem("auth:queryParams"),this.router.navigate([t],{queryParams:h,replaceUrl:!0,queryParamsHandling:"merge"})}startAuth(){return this.authService.startAuthentication(),Promise.resolve()}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(ad),n.LFG(Wp.Ct),n.LFG(yi),n.LFG(dn),n.LFG(Va),n.LFG(oi),n.LFG($n),n.LFG(Ax))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),qE=(()=>{class i{constructor(e,t){this.matIconRegistry=e,this.domSanitizer=t,this.customIcons=[{url:"assets/img/PerunWebImages/refresh_tab-black.svg",name:"perun-refresh-enabled"},{url:"assets/img/PerunWebImages/refresh_tab-grey.svg",name:"perun-refresh-disabled"},{url:"assets/img/PerunWebImages/manage_facility_white.svg",name:"perun-manage-facility"},{url:"assets/img/PerunWebImages/vo-white.svg",name:"perun-vo"},{url:"assets/img/PerunWebImages/user-white.svg",name:"perun-user"},{url:"assets/img/PerunWebImages/perun_admin-white.svg",name:"perun-perun-admin"},{url:"assets/img/PerunWebImages/group-white.svg",name:"perun-group"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/preview-white.svg",name:"perun-preview"},{url:"assets/img/PerunWebImages/module_dependencies.svg",name:"perun-module-dependencies"},{url:"assets/img/PerunWebImages/user_destination_relationship.svg",name:"perun-user-destination-relationship"},{url:"assets/img/PerunWebImages/settings2-white.svg",name:"perun-settings2"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/applications-white.svg",name:"perun-applications"},{url:"assets/img/PerunWebImages/manager-white.svg",name:"perun-manager"},{url:"assets/img/PerunWebImages/key-white.svg",name:"perun-key"},{url:"assets/img/PerunWebImages/application_form-white.svg",name:"perun-application-form"},{url:"assets/img/PerunWebImages/notification-white.svg",name:"perun-notification"},{url:"assets/img/PerunWebImages/invite_member-white.svg",name:"perun-invite-member"},{url:"assets/img/PerunWebImages/service_identity-white.svg",name:"perun-service-identity"},{url:"assets/img/PerunWebImages/service_identity-black.svg",name:"perun-service-identity-black"},{url:"assets/img/PerunWebImages/create1-white.svg",name:"perun-create1"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource"},{url:"assets/img/PerunWebImages/resource_tags-white.svg",name:"perun-resource-tags"},{url:"assets/img/PerunWebImages/resources_state-white.svg",name:"perun-resources-state"},{url:"assets/img/PerunWebImages/external_sources-white.svg",name:"perun-external-sources"},{url:"assets/img/PerunWebImages/vo-dark.svg",name:"perun-vo-black"},{url:"assets/img/PerunWebImages/group-dark.svg",name:"perun-group-black"},{url:"assets/img/PerunWebImages/facility-dark.svg",name:"perun-facility-black"},{url:"assets/img/publications.svg",name:"perun-publications-white"},{url:"assets/img/PerunWebImages/owner-grey.svg",name:"perun-owner-grey"},{url:"assets/img/PerunWebImages/settings1-blue.svg",name:"perun-settings1"},{url:"assets/img/PerunWebImages/service_destination-blue.svg",name:"perun-service_destination"},{url:"assets/img/PerunWebImages/host-blue.svg",name:"perun-hosts"},{url:"assets/img/PerunWebImages/home.svg",name:"perun-home-white"},{url:"assets/img/PerunWebImages/security_admin-blue.svg",name:"perun-security-teams"},{url:"assets/img/PerunWebImages/black_list-white.svg",name:"perun-black-list"},{url:"assets/img/PerunWebImages/facility-white.svg",name:"perun-facility-white"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource-white"},{url:"assets/img/PerunWebImages/service-white.svg",name:"perun-service"},{url:"assets/img/PerunWebImages/resource-black.svg",name:"perun-resource-black"},{url:"assets/img/PerunWebImages/service_status-grey.svg",name:"perun-service-status"},{url:"assets/img/PerunWebImages/user-dark.svg",name:"perun-user-dark"},{url:"assets/img/PerunWebImages/statistics-blue.svg",name:"perun-statistics"},{url:"assets/img/PerunWebImages/audit_log-blue.svg",name:"perun-audit-log"},{url:"assets/img/PerunWebImages/contact-grey.svg",name:"perun-identity"},{url:"assets/img/PerunWebImages/roles.svg",name:"perun-roles"},{url:"assets/img/PerunWebImages/consent-white.svg",name:"perun-consent-hubs"},{url:"assets/img/PerunWebImages/hierarchical_vo-black.svg",name:"perun-hierarchical-vo"},{url:"assets/img/PerunWebImages/searcher-blue.svg",name:"perun-searcher"},{url:"assets/img/PerunWebImages/propagation-blue.svg",name:"perun-hierarchical-inclusion"},{url:"assets/img/PerunWebImages/verify-grey.svg",name:"perun-verify-grey"},{url:"assets/img/PerunWebImages/info-grey.svg",name:"perun-info-grey"},{url:"assets/img/PerunWebImages/logins.svg",name:"perun-logins"},{url:"assets/img/PerunWebImages/certificates.svg",name:"perun-certificates"},{url:"assets/img/PerunWebImages/authentication.svg",name:"perun-authentication"},{url:"assets/img/PerunWebImages/ban.svg",name:"perun-ban"}]}registerPerunRefreshIcon(){this.customIcons.forEach(e=>{this.matIconRegistry.addSvgIcon(e.name,this.domSanitizer.bypassSecurityTrustResourceUrl(e.url))})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(xo),n.LFG(On))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})(),zE=(()=>{class i{constructor(e){this.dialogRef=e}close(){this.dialogRef.close(!0)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(si))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-session-expiration-dialog"]],decls:11,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"ml-auto"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.qZA(),n.TgZ(3,"div",1),n._uU(4),n.ALo(5,"translate"),n.qZA(),n.TgZ(6,"div",2)(7,"div",3)(8,"button",4),n.NdJ("click",function(){return t.close()}),n._uU(9),n.ALo(10,"translate"),n.qZA()()()),2&e&&(n.xp6(1),n.Oqu(n.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.TITLE")),n.xp6(3),n.hij(" ",n.lcZ(5,5,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.DESCRIPTION"),"\n"),n.xp6(5),n.hij(" ",n.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.SIGN_IN")," "))},dependencies:[Oi,$i,Bi,Ot,it]}),i})(),XP=(()=>{class i{constructor(){this.handleNextError=!0}dontHandleErrorForNext(){this.handleNextError=!1}shouldHandleError(){const e=this.handleNextError;return this.handleNextError=!0,e}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Ji=(()=>{class i{constructor(e){this.translate=e,this.addNotification=new n.vpe,this.defaultErrorDelayMs=5e3,this.defaultSuccessDelayMs=3e3}getDefaultActionMessage(){return void 0===this.defaultAction?this.defaultAction=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_ACTION"):this.defaultAction}getDefaultRpcMessage(){return void 0===this.defaultRpcMessage?this.defaultRpcMessage=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_RPC_ERROR_MESSAGE"):this.defaultRpcMessage}showRPCError(e,t=this.getDefaultRpcMessage()){this.showError("PrivilegeException"===e.name?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.PRIVILEGE_EXCEPTION"):void 0===e.name?t:t+"\n"+e.name,e,e.message)}showRouteError(){const e=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_ERROR"),t=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_DESC");this.showError(e,null,t)}showError(e,t,r,d,h){this.addNotification.emit({type:"error",error:t,description:r,title:e,actionText:void 0===d&&void 0!==r?this.getDefaultActionMessage():d,delay:this.defaultErrorDelayMs,icon:"error_outline",action:h,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}showSuccess(e,t,r,d){this.addNotification.emit({type:"success",description:t,title:e,actionText:void 0===r&&void 0!==t?this.getDefaultActionMessage():r,delay:this.defaultSuccessDelayMs,icon:"done",action:d,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(mn))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),GE=(()=>{class i{constructor(e,t,r,d,h,c,o,a){this.authService=e,this.apiRequestConfiguration=t,this.notificator=r,this.store=d,this.dialog=h,this.initAuthService=c,this.mfaHandlerService=o,this.oauthService=a}intercept(e,t){const r=this.store.getProperty("api_url");if(e.url.includes("i18n")&&(e=e.clone({setHeaders:{"Cache-control":"no-cache, must-revalidate"}})),void 0!==r&&this.isCallToPerunApi(e.url)&&!this.isLoggedIn()&&!this.dialogRefSessionExpiration){const d=Jn();d.width="450px",null==this.dialogRefSessionExpiration&&(this.dialogRefSessionExpiration=this.dialog.open(zE,d),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{Mr(()=>this.dialogRefSessionExpiration=void 0),sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.oauthService.logOut(!0),this.reauthenticate()}))}return this.initAuthService.isServiceAccess()?e=e.clone({setHeaders:{Authorization:"Basic "+btoa(sessionStorage.getItem("basicUsername")+":"+sessionStorage.getItem("basicPassword"))}}):this.isCallToPerunApi(e.url)&&(e=e.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}})),this.handleRequest(e,t)}isLoggedIn(){return(this.authService.isLoggedIn()||this.initAuthService.isServiceAccess())&&!this.initAuthService.isServiceAccessLoginScreenShown()}reauthenticate(){sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.initAuthService.handleAuthStart()}handleRequest(e,t){const r=this.apiRequestConfiguration.shouldHandleError(),d="POST"===e.method&&this.isNotConsolidatorOrLinker()&&this.isCallToPerunApi(e.url);return t.handle(e).pipe((0,nn.b)(h=>{h instanceof v.Zn&&d&&this.initAuthService.loadPrincipal()}),(0,Ri.K)(h=>{const c=h.error;if("MfaPrivilegeException"===c.type||"MfaRolePrivilegeException"===c.type)return this.mfaHandlerService.openMfaWindow("MfaRolePrivilegeException"===c.type).pipe((0,bn.w)(o=>o?("MfaRolePrivilegeException"===c.type&&window.location.reload(),this.handleRequest(this.replaceAuthenticationToken(e),t)):(0,mi._)(()=>c)));{this.handleInvalidAccessTokenError(h);const o=this.formatErrors(h,e);return void 0===o?(0,mi._)(()=>h):(r&&this.notificator.showRPCError(o),(0,mi._)(()=>o))}}))}replaceAuthenticationToken(e){return e.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}})}isCallToPerunApi(e){return e.startsWith(this.store.getProperty("api_url"))}formatErrors(e,t){let r;console.error(e);const d=e.error;if(d.errorId&&(r=d),void 0!==r)return r.urlWithParams=t.urlWithParams,r.call=t.url,r.payload=t.body,r}isNotConsolidatorOrLinker(){const e=this.store.getProperty("application");return!("Linker"===e||"Consolidator"===e)}handleInvalidAccessTokenError(e){if(401===e.status){if(!this.isLoggedIn()||"invalid_token"===e.error.error||null!=this.dialogRefSessionExpiration)return;const t=Jn();this.dialogRefSessionExpiration=this.dialog.open(zE,t),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{this.oauthService.logOut(!0),this.reauthenticate()})}}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(ad),n.LFG(XP),n.LFG(Ji),n.LFG(yi),n.LFG(oi),n.LFG(sC),n.LFG(Ax),n.LFG(Wp.Ct))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})(),oC=(()=>{class i{constructor(){this.newNotificationsCount=0,this.notificationData=[]}storeNotification(e){this.newNotificationsCount++,this.notificationData.push(e)}getNotifications(){return this.notificationData.reverse()}clearNotifications(){this.notificationData=[]}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),eR=(()=>{class i{constructor(e,t,r,d){this.http=e,this.notificator=t,this.authService=r,this.storeService=d}getApiUrl(){return void 0===this.api_url&&(this.api_url=this.storeService.getProperty("api_url")),this.api_url+"/"}getHeaders(){let e=new v.WM;return e=e.set("Authorization",this.authService.getAuthorizationHeaderValue()),e}get(e,t=!0){const r=`${this.getApiUrl()}${e}`;return this.http.get(r,{headers:this.getHeaders()}).pipe((0,Ri.K)(d=>this.formatErrors(d,r,null,t)))}put(e,t={},r=!0){const d=`${this.getApiUrl()}${e}`,h=JSON.stringify(t);return this.http.put(d,h,{headers:this.getHeaders()}).pipe((0,Ri.K)(c=>this.formatErrors(c,d,h,r)))}post(e,t={},r=!0){const d=`${this.getApiUrl()}${e}`,h=JSON.stringify(t);let c=this.getHeaders();return c=c.set("Content-Type","application/json; charset=utf-8"),this.http.post(d,h,{headers:c}).pipe((0,Ri.K)(o=>this.formatErrors(o,d,h,r)))}delete(e,t=!0){const r=`${this.getApiUrl()}${e}`;return this.http.delete(r,{headers:this.getHeaders()}).pipe((0,Ri.K)(d=>this.formatErrors(d,r,null,t)))}formatErrors(e,t,r,d){const h=e.error;return h.call=t,h.payload=r,d&&this.notificator.showRPCError(e.error),(0,mi._)(h)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(v.eN),n.LFG(Ji),n.LFG(ad),n.LFG(yi))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),$p=(()=>{class i{isAllSelected(e,t,r=(()=>!0)){const d=t.paginator.pageSize??0,h=t.paginator.pageIndex??0,c=t.paginator.hasNextPage(),o=t.data.length===t.filteredData.length;this.numCanBeSelected=0,this.pageStart=h*d,this.pageEnd=this.pageStart+d,this.numSelected=e,this.dataLength=o?t.data.length:t.filteredData.length;const a=t.sort;return c||(this.modulo=this.dataLength%d,this.pageEnd=0===this.modulo?this.pageStart+d:this.pageStart+this.modulo),this.pageIterator=0,t.sortData(t.filteredData,a).forEach(l=>{this.pageStart<=this.pageIterator&&this.pageIterator{a?l(u)&&this.pageStart<=this.pageIterator&&this.pageIterator!0)){return t===e.data.reduce((d,h)=>d+Number(r(h)),0)}masterTogglePaginated(e,t,r,d=(()=>!0)){t.clear(),r&&e.data.forEach(h=>{d(h)&&t.select(h)})}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),nR=(()=>{class i{constructor(e,t){this.route=e,this.store=t}getPreferredLanguage(e){const t=this.store.getProperty("supported_languages"),r=navigator.languages.map(c=>c.split("-")[0]),d=location.search.substring(1).split("&");let h=null;for(const c of d){const o=c.split("=");"lang"===o[0]&&(h=o[1])}return h&&t.includes(h)?h:e&&t.includes(e)?e:r&&t.includes(r[0])?r[0]:"en"}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Li),n.LFG(yi))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),iR=(()=>{class i{constructor(e){this.storeService=e}static getBrandContainingDomain(e,t){for(const d of e)if(d.newApps.admin===t||d.newApps.profile===t||d.newApps.pwdReset===t||d.newApps.consolidator===t||d.newApps.linker===t)return d;return e.filter(d=>"default"===d.name)[0]||e[0]}getUrlForOtherApplication(e,t){const d=window.location.href.split("/"),h=d[0]+"//"+d[2],c=i.getBrandContainingDomain(this.storeService.getAppsConfig().brands,h);let o;if(c.newApps[e])o=c.newApps[e],"pwdReset"===e&&(o+=`?login-namespace=${t}`);else switch(o=c.oldGuiDomain+"/fed",e){case"admin":o+="/gui/";break;case"profile":o+="/profile/";break;case"pwdReset":o+=`/pwd-reset/?login-namespace=${t}`}return o}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(yi))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const lC=["*"],rR=["content"];function aR(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"div",2),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r._onBackdropClicked())}),n.qZA()}if(2&i){const e=n.oxw();n.ekj("mat-drawer-shown",e._isShowingBackdrop())}}function sR(i,s){1&i&&(n.TgZ(0,"mat-drawer-content"),n.Hsn(1,2),n.qZA())}const oR=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],lR=["mat-drawer","mat-drawer-content","*"];function cR(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"div",2),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r._onBackdropClicked())}),n.qZA()}if(2&i){const e=n.oxw();n.ekj("mat-drawer-shown",e._isShowingBackdrop())}}function dR(i,s){1&i&&(n.TgZ(0,"mat-sidenav-content"),n.Hsn(1,2),n.qZA())}const uR=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],hR=["mat-sidenav","mat-sidenav-content","*"],WE={transformDrawer:fn("transform",[Pt("open, open-instant",He({transform:"none",visibility:"visible"})),Pt("void",He({"box-shadow":"none",visibility:"hidden"})),xt("void => open-instant",Tt("0ms")),xt("void <=> open, open-instant => void",Tt("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},fR=new n.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function mR(){return!1}}),vx=new n.OlP("MAT_DRAWER_CONTAINER");let cC=(()=>{class i extends xl{constructor(e,t,r,d,h){super(r,d,h),this._changeDetectorRef=e,this._container=t}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.sBO),n.Y36((0,n.Gpc)(()=>JE)),n.Y36(n.SBq),n.Y36(Tl),n.Y36(n.R0b))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(e,t){2&e&&n.Udp("margin-left",t._container._contentMargins.left,"px")("margin-right",t._container._contentMargins.right,"px")},features:[n._Bn([{provide:xl,useExisting:i}]),n.qOj],ngContentSelectors:lC,decls:1,vars:0,template:function(e,t){1&e&&(n.F$t(),n.Hsn(0))},encapsulation:2,changeDetection:0}),i})(),$E=(()=>{class i{constructor(e,t,r,d,h,c,o,a){this._elementRef=e,this._focusTrapFactory=t,this._focusMonitor=r,this._platform=d,this._ngZone=h,this._interactivityChecker=c,this._doc=o,this._container=a,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new Me.x,this._animationEnd=new Me.x,this._animationState="void",this.openedChange=new n.vpe(!0),this._openedStream=this.openedChange.pipe((0,Ce.h)(l=>l),(0,_t.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,Ce.h)(l=>l.fromState!==l.toState&&0===l.toState.indexOf("open")),(0,ac.h)(void 0)),this._closedStream=this.openedChange.pipe((0,Ce.h)(l=>!l),(0,_t.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,Ce.h)(l=>l.fromState!==l.toState&&"void"===l.toState),(0,ac.h)(void 0)),this._destroyed=new Me.x,this.onPositionChanged=new n.vpe,this._modeChanged=new Me.x,this.openedChange.subscribe(l=>{l?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{ea(this._elementRef.nativeElement,"keydown").pipe((0,Ce.h)(l=>27===l.keyCode&&!this.disableClose&&!ri(l)),Ke(this._destroyed)).subscribe(l=>this._ngZone.run(()=>{this.close(),l.stopPropagation(),l.preventDefault()}))}),this._animationEnd.pipe(mo((l,u)=>l.fromState===u.fromState&&l.toState===u.toState)).subscribe(l=>{const{fromState:u,toState:p}=l;(0===p.indexOf("open")&&"void"===u||"void"===p&&0===u.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(e){(e="end"===e?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(e),this._position=e,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(e){this._mode=e,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(e){this._disableClose=Oe(e)}get autoFocus(){return this._autoFocus??("side"===this.mode?"dialog":"first-tabbable")}set autoFocus(e){("true"===e||"false"===e||null==e)&&(e=Oe(e)),this._autoFocus=e}get opened(){return this._opened}set opened(e){this.toggle(Oe(e))}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const r=()=>{e.removeEventListener("blur",r),e.removeEventListener("mousedown",r),e.removeAttribute("tabindex")};e.addEventListener("blur",r),e.addEventListener("mousedown",r)})),e.focus(t)}_focusByCssSelector(e,t){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,t)}_takeFocus(){if(!this._focusTrap)return;const e=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(t=>{!t&&"function"==typeof this._elementRef.nativeElement.focus&&e.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(e){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,e):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const e=this._doc.activeElement;return!!e&&this._elementRef.nativeElement.contains(e)}ngAfterViewInit(){this._isAttached=!0,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap&&this._focusTrap.destroy(),this._anchor?.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(e){return this.toggle(!0,e)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(e=!this.opened,t){e&&t&&(this._openedVia=t);const r=this._setOpen(e,!e&&this._isFocusWithinDrawer(),this._openedVia||"program");return e||(this._openedVia=null),r}_setOpen(e,t,r){return this._opened=e,e?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",t&&this._restoreFocus(r)),this._updateFocusTrapState(),new Promise(d=>{this.openedChange.pipe((0,rt.q)(1)).subscribe(h=>d(h?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_updatePositionInParent(e){const t=this._elementRef.nativeElement,r=t.parentNode;"end"===e?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),r.insertBefore(this._anchor,t)),r.appendChild(t)):this._anchor&&this._anchor.parentNode.insertBefore(t,this._anchor)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(Xd),n.Y36(Ii),n.Y36(yn),n.Y36(n.R0b),n.Y36(Gh),n.Y36(x.K0,8),n.Y36(vx,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-drawer"]],viewQuery:function(e,t){if(1&e&&n.Gf(rR,5),2&e){let r;n.iGM(r=n.CRH())&&(t._content=r.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(e,t){1&e&&n.WFA("@transform.start",function(d){return t._animationStarted.next(d)})("@transform.done",function(d){return t._animationEnd.next(d)}),2&e&&(n.uIk("align",null),n.d8E("@transform",t._animationState),n.ekj("mat-drawer-end","end"===t.position)("mat-drawer-over","over"===t.mode)("mat-drawer-push","push"===t.mode)("mat-drawer-side","side"===t.mode)("mat-drawer-opened",t.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:lC,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(e,t){1&e&&(n.F$t(),n.TgZ(0,"div",0,1),n.Hsn(2),n.qZA())},dependencies:[xl],encapsulation:2,data:{animation:[WE.transformDrawer]},changeDetection:0}),i})(),JE=(()=>{class i{constructor(e,t,r,d,h,c=!1,o){this._dir=e,this._element=t,this._ngZone=r,this._changeDetectorRef=d,this._animationMode=o,this._drawers=new n.n_E,this.backdropClick=new n.vpe,this._destroyed=new Me.x,this._doCheckSubject=new Me.x,this._contentMargins={left:null,right:null},this._contentMarginChanges=new Me.x,e&&e.change.pipe(Ke(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),h.change().pipe(Ke(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=c}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(e){this._autosize=Oe(e)}get hasBackdrop(){return this._backdropOverride??(!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode)}set hasBackdrop(e){this._backdropOverride=null==e?null:Oe(e)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe(Zt(this._allDrawers),Ke(this._destroyed)).subscribe(e=>{this._drawers.reset(e.filter(t=>!t._container||t._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(Zt(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(e=>{this._watchDrawerToggle(e),this._watchDrawerPosition(e),this._watchDrawerMode(e)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,Nh.b)(10),Ke(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(e=>e.open())}close(){this._drawers.forEach(e=>e.close())}updateContentMargins(){let e=0,t=0;if(this._left&&this._left.opened)if("side"==this._left.mode)e+=this._left._getWidth();else if("push"==this._left.mode){const r=this._left._getWidth();e+=r,t-=r}if(this._right&&this._right.opened)if("side"==this._right.mode)t+=this._right._getWidth();else if("push"==this._right.mode){const r=this._right._getWidth();t+=r,e-=r}e=e||null,t=t||null,(e!==this._contentMargins.left||t!==this._contentMargins.right)&&(this._contentMargins={left:e,right:t},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(e){e._animationStarted.pipe((0,Ce.h)(t=>t.fromState!==t.toState),Ke(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"!==e.mode&&e.openedChange.pipe(Ke(this._drawers.changes)).subscribe(()=>this._setContainerClass(e.opened))}_watchDrawerPosition(e){!e||e.onPositionChanged.pipe(Ke(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,rt.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(e){e&&e._modeChanged.pipe(Ke((0,Sn.T)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(e){const t=this._element.nativeElement.classList,r="mat-drawer-container-has-open";e?t.add(r):t.remove(r)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(e=>{"end"==e.position?this._end=e:this._start=e}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_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(e=>e&&!e.disableClose&&this._canHaveBackdrop(e)).forEach(e=>e._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(e){return"side"!==e.mode||!!this._backdropOverride}_isDrawerOpen(e){return null!=e&&e.opened}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(xn,8),n.Y36(n.SBq),n.Y36(n.R0b),n.Y36(n.sBO),n.Y36(va),n.Y36(fR),n.Y36(n.QbO,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-drawer-container"]],contentQueries:function(e,t,r){if(1&e&&(n.Suo(r,cC,5),n.Suo(r,$E,5)),2&e){let d;n.iGM(d=n.CRH())&&(t._content=d.first),n.iGM(d=n.CRH())&&(t._allDrawers=d)}},viewQuery:function(e,t){if(1&e&&n.Gf(cC,5),2&e){let r;n.iGM(r=n.CRH())&&(t._userContent=r.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(e,t){2&e&&n.ekj("mat-drawer-container-explicit-backdrop",t._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[n._Bn([{provide:vx,useExisting:i}])],ngContentSelectors:lR,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(e,t){1&e&&(n.F$t(oR),n.YNc(0,aR,1,2,"div",0),n.Hsn(1),n.Hsn(2,1),n.YNc(3,sR,2,0,"mat-drawer-content",1)),2&e&&(n.Q6J("ngIf",t.hasBackdrop),n.xp6(3),n.Q6J("ngIf",!t._content))},dependencies:[x.O5,cC],styles:['.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[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),i})(),Tx=(()=>{class i extends cC{constructor(e,t,r,d,h){super(e,t,r,d,h)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.sBO),n.Y36((0,n.Gpc)(()=>QE)),n.Y36(n.SBq),n.Y36(Tl),n.Y36(n.R0b))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(e,t){2&e&&n.Udp("margin-left",t._container._contentMargins.left,"px")("margin-right",t._container._contentMargins.right,"px")},features:[n._Bn([{provide:xl,useExisting:i}]),n.qOj],ngContentSelectors:lC,decls:1,vars:0,template:function(e,t){1&e&&(n.F$t(),n.Hsn(0))},encapsulation:2,changeDetection:0}),i})(),ZE=(()=>{class i extends $E{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(e){this._fixedInViewport=Oe(e)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(e){this._fixedTopGap=_n(e)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(e){this._fixedBottomGap=_n(e)}}return i.\u0275fac=function(){let s;return function(t){return(s||(s=n.n5z(i)))(t||i)}}(),i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(e,t){2&e&&(n.uIk("align",null),n.Udp("top",t.fixedInViewport?t.fixedTopGap:null,"px")("bottom",t.fixedInViewport?t.fixedBottomGap:null,"px"),n.ekj("mat-drawer-end","end"===t.position)("mat-drawer-over","over"===t.mode)("mat-drawer-push","push"===t.mode)("mat-drawer-side","side"===t.mode)("mat-drawer-opened",t.opened)("mat-sidenav-fixed",t.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[n.qOj],ngContentSelectors:lC,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(e,t){1&e&&(n.F$t(),n.TgZ(0,"div",0,1),n.Hsn(2),n.qZA())},dependencies:[xl],encapsulation:2,data:{animation:[WE.transformDrawer]},changeDetection:0}),i})(),QE=(()=>{class i extends JE{}return i.\u0275fac=function(){let s;return function(t){return(s||(s=n.n5z(i)))(t||i)}}(),i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-sidenav-container"]],contentQueries:function(e,t,r){if(1&e&&(n.Suo(r,Tx,5),n.Suo(r,ZE,5)),2&e){let d;n.iGM(d=n.CRH())&&(t._content=d.first),n.iGM(d=n.CRH())&&(t._allDrawers=d)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(e,t){2&e&&n.ekj("mat-drawer-container-explicit-backdrop",t._backdropOverride)},exportAs:["matSidenavContainer"],features:[n._Bn([{provide:vx,useExisting:i}]),n.qOj],ngContentSelectors:hR,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(e,t){1&e&&(n.F$t(uR),n.YNc(0,cR,1,2,"div",0),n.Hsn(1),n.Hsn(2,1),n.YNc(3,dR,2,0,"mat-sidenav-content",1)),2&e&&(n.Q6J("ngIf",t.hasBackdrop),n.xp6(3),n.Q6J("ngIf",!t._content))},dependencies:[x.O5,Tx],styles:['.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[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),i})(),KE=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[x.ez,ht,Ds,Ds,ht]}),i})();const XE=Ja({passive:!0});let gR=(()=>{class i{constructor(e,t){this._platform=e,this._ngZone=t,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return Pn.E;const t=ai(e),r=this._monitoredElements.get(t);if(r)return r.subject;const d=new Me.x,h="cdk-text-field-autofilled",c=o=>{"cdk-text-field-autofill-start"!==o.animationName||t.classList.contains(h)?"cdk-text-field-autofill-end"===o.animationName&&t.classList.contains(h)&&(t.classList.remove(h),this._ngZone.run(()=>d.next({target:o.target,isAutofilled:!1}))):(t.classList.add(h),this._ngZone.run(()=>d.next({target:o.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{t.addEventListener("animationstart",c,XE),t.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(t,{subject:d,unlisten:()=>{t.removeEventListener("animationstart",c,XE)}}),d}stopMonitoring(e){const t=ai(e),r=this._monitoredElements.get(t);r&&(r.unlisten(),r.subject.complete(),t.classList.remove("cdk-text-field-autofill-monitored"),t.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(t))}ngOnDestroy(){this._monitoredElements.forEach((e,t)=>this.stopMonitoring(t))}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(yn),n.LFG(n.R0b))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),_R=(()=>{class i{constructor(e,t,r,d){this._elementRef=e,this._platform=t,this._ngZone=r,this._destroyed=new Me.x,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._handleFocusEvent=h=>{this._hasFocus="focus"===h.type},this._document=d,this._textareaElement=this._elementRef.nativeElement}get minRows(){return this._minRows}set minRows(e){this._minRows=_n(e),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(e){this._maxRows=_n(e),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(e){e=Oe(e),this._enabled!==e&&((this._enabled=e)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(e){this._cachedPlaceholderHeight=void 0,e?this._textareaElement.setAttribute("placeholder",e):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}_setMinHeight(){const e=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;e&&(this._textareaElement.style.minHeight=e)}_setMaxHeight(){const e=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;e&&(this._textareaElement.style.maxHeight=e)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{ea(this._getWindow(),"resize").pipe(Dc(16),Ke(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0)),this._textareaElement.addEventListener("focus",this._handleFocusEvent),this._textareaElement.addEventListener("blur",this._handleFocusEvent)}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._textareaElement.removeEventListener("focus",this._handleFocusEvent),this._textareaElement.removeEventListener("blur",this._handleFocusEvent),this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let e=this._textareaElement.cloneNode(!1);e.rows=1,e.style.position="absolute",e.style.visibility="hidden",e.style.border="none",e.style.padding="0",e.style.height="",e.style.minHeight="",e.style.maxHeight="",e.style.overflow="hidden",this._textareaElement.parentNode.appendChild(e),this._cachedLineHeight=e.clientHeight,e.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){const e=this._textareaElement,t=e.style.marginBottom||"",r=this._platform.FIREFOX,d=r&&this._hasFocus,h=r?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";d&&(e.style.marginBottom=`${e.clientHeight}px`),e.classList.add(h);const c=e.scrollHeight-4;return e.classList.remove(h),d&&(e.style.marginBottom=t),c}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const e=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=e}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(e=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;const t=this._elementRef.nativeElement,r=t.value;if(!e&&this._minRows===this._previousMinRows&&r===this._previousValue)return;const d=this._measureScrollHeight(),h=Math.max(d,this._cachedPlaceholderHeight||0);t.style.height=`${h}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(t)):setTimeout(()=>this._scrollToCaretPosition(t))}),this._previousValue=r,this._previousMinRows=this._minRows}reset(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollToCaretPosition(e){const{selectionStart:t,selectionEnd:r}=e;!this._destroyed.isStopped&&this._hasFocus&&e.setSelectionRange(t,r)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(yn),n.Y36(n.R0b),n.Y36(x.K0,8))},i.\u0275dir=n.lG2({type:i,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(e,t){1&e&&n.NdJ("input",function(){return t._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]}),i})(),eD=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})();const tD=new n.OlP("MAT_INPUT_VALUE_ACCESSOR"),bR=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let wR=0;const yR=Jh(class{constructor(i,s,e,t){this._defaultErrorStateMatcher=i,this._parentForm=s,this._parentFormGroup=e,this.ngControl=t,this.stateChanges=new Me.x}});let Ra=(()=>{class i extends yR{constructor(e,t,r,d,h,c,o,a,l,u){super(c,d,h,r),this._elementRef=e,this._platform=t,this._autofillMonitor=a,this._formField=u,this._uid="mat-input-"+wR++,this.focused=!1,this.stateChanges=new Me.x,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(g=>X_().has(g)),this._iOSKeyupListener=g=>{const f=g.target;!f.value&&0===f.selectionStart&&0===f.selectionEnd&&(f.setSelectionRange(1,1),f.setSelectionRange(0,0))};const p=this._elementRef.nativeElement,m=p.nodeName.toLowerCase();this._inputValueAccessor=o||p,this._previousNativeValue=this.value,this.id=this.id,t.IOS&&l.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===m,this._isTextarea="textarea"===m,this._isInFormField=!!u,this._isNativeSelect&&(this.controlType=p.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=Oe(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(kn.required)??!1}set required(e){this._required=Oe(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&X_().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=Oe(e)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){const e=this._formField,t=e&&"legacy"===e.appearance&&!e._hasLabel?.()?null:this.placeholder;if(t!==this._previousPlaceholder){const r=this._elementRef.nativeElement;this._previousPlaceholder=t,t?r.setAttribute("placeholder",t):r.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){bR.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(yn),n.Y36(ts,10),n.Y36(Ol,8),n.Y36(Fc,8),n.Y36(Ca),n.Y36(tD,10),n.Y36(gR),n.Y36(n.R0b),n.Y36(mp,8))},i.\u0275dir=n.lG2({type:i,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(e,t){1&e&&n.NdJ("focus",function(){return t._focusChanged(!0)})("blur",function(){return t._focusChanged(!1)})("input",function(){return t._onInput()}),2&e&&(n.Ikx("disabled",t.disabled)("required",t.required),n.uIk("id",t.id)("data-placeholder",t.placeholder)("name",t.name||null)("readonly",t.readonly&&!t._isNativeSelect||null)("aria-invalid",t.empty&&t.required?null:t.errorState)("aria-required",t.required),n.ekj("mat-input-server",t._isServer)("mat-native-select-inline",t._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[n._Bn([{provide:_u,useExisting:i}]),n.qOj,n.TTD]}),i})(),dC=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[Ca],imports:[eD,Hl,ht,eD,Hl]}),i})();function CR(i,s){1&i&&(n.TgZ(0,"mat-error"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT_ERROR")))}let AR=(()=>{class i{constructor(e,t,r,d,h){this.dialogRef=e,this.translate=t,this.notificator=r,this.rtMessages=d,this.storeService=h,this.message="",this.subject="",this.instanceName=""}ngOnInit(){this.instanceName=this.storeService.getProperty("config")}sendBugReport(){this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(e=>{this.dialogRef.afterClosed().subscribe(()=>this.notificator.showSuccess(this.translate.instant("DIALOGS.REPORT_ISSUE.SUCCESS")+String(e.ticketNumber))),this.dialogRef.close()})}getFullEmailBody(){return this.message.concat("\n ","------------------------\n ","Perun instance: ",this.instanceName,"\n ","Sended from new Perun Gui, version: ",E(4147).i8)}close(){this.dialogRef.close()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(si),n.Y36(mn),n.Y36(Ji),n.Y36(Vo),n.Y36(yi))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-report-issue-dialog"]],decls:29,vars:25,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","","type","text",3,"ngModel","ngModelChange"],["subjectModel","ngModel"],[4,"ngIf"],["matInput","",3,"placeholder","ngModel","ngModelChange"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(e,t){if(1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.qZA(),n.TgZ(3,"div",1)(4,"mat-form-field")(5,"mat-label"),n._uU(6),n.ALo(7,"translate"),n.qZA(),n.TgZ(8,"input",2,3),n.NdJ("ngModelChange",function(d){return t.subject=d}),n.qZA(),n.YNc(10,CR,3,3,"mat-error",4),n.qZA(),n.TgZ(11,"mat-form-field")(12,"mat-label"),n._uU(13),n.ALo(14,"translate"),n.qZA(),n.TgZ(15,"textarea",5),n.NdJ("ngModelChange",function(d){return t.message=d}),n.ALo(16,"translate"),n._uU(17," "),n.qZA(),n.TgZ(18,"mat-hint"),n._uU(19),n.ALo(20,"translate"),n.qZA()()(),n.TgZ(21,"div",6)(22,"div",7)(23,"button",8),n.NdJ("click",function(){return t.close()}),n._uU(24),n.ALo(25,"translate"),n.qZA(),n.TgZ(26,"button",9),n.NdJ("click",function(){return t.sendBugReport()}),n._uU(27),n.ALo(28,"translate"),n.qZA()()()),2&e){const r=n.MAs(9);n.xp6(1),n.Oqu(n.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.TITLE")),n.xp6(5),n.Oqu(n.lcZ(7,13,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT")),n.xp6(2),n.Q6J("ngModel",t.subject),n.xp6(2),n.Q6J("ngIf",r.invalid),n.xp6(3),n.Oqu(n.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE")),n.xp6(2),n.s9C("placeholder",n.lcZ(16,17,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_PLACEHOLDER")),n.Q6J("ngModel",t.message),n.xp6(4),n.Oqu(n.lcZ(20,19,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_HINT")),n.xp6(5),n.hij(" ",n.lcZ(25,21,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.CANCEL")," "),n.xp6(2),n.Q6J("disabled",r.invalid),n.xp6(1),n.hij(" ",n.lcZ(28,23,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SEND")," ")}},dependencies:[x.O5,Gi,Wi,ns,Uc,Ot,es,ar,Mw,ta,Ra,Oi,$i,Bi,it],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),i})(),vR=(()=>{class i{transform(e,t,r){return e[`${r}_${t}`]}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=n.Yjl({name:"localisedText",type:i,pure:!0}),i})(),TR=(()=>{class i{transform(e,t){return e["link_"+t]||e.link_en}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=n.Yjl({name:"localisedLink",type:i,pure:!0}),i})(),xR=(()=>{class i{transform(e){return e.includes("/")?e:"/assets/config/"+e}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=n.Yjl({name:"footerLogoPath",type:i,pure:!0}),i})();function SR(i,s){if(1&i&&(n.TgZ(0,"a",13),n.ALo(1,"localisedLink"),n._UZ(2,"img",14),n.ALo(3,"footerLogoPath"),n.qZA()),2&i){const e=n.oxw().$implicit,t=n.oxw(3);n.Q6J("href",n.xi3(1,2,e,t.language),n.LSH),n.xp6(2),n.s9C("src",n.lcZ(3,5,e.logo),n.LSH)}}function MR(i,s){if(1&i&&(n.TgZ(0,"span"),n._UZ(1,"img",14),n.ALo(2,"footerLogoPath"),n.qZA()),2&i){const e=n.oxw().$implicit;n.xp6(1),n.s9C("src",n.lcZ(2,1,e.logo),n.LSH)}}function ER(i,s){if(1&i&&(n.TgZ(0,"div"),n.YNc(1,SR,4,7,"a",11),n.ALo(2,"localisedLink"),n.YNc(3,MR,3,3,"span",12),n.ALo(4,"localisedLink"),n.qZA()),2&i){const e=s.$implicit,t=n.oxw(3);n.xp6(1),n.Q6J("ngIf",n.xi3(2,2,e,t.language)),n.xp6(2),n.Q6J("ngIf",!n.xi3(4,5,e,t.language))}}const DR=function(i){return{"min-height":i}};function HR(i,s){if(1&i&&(n.TgZ(0,"div",10),n.YNc(1,ER,5,8,"div",5),n.qZA()),2&i){const e=n.oxw().$implicit,t=n.oxw();n.Q6J("ngStyle",n.VKq(2,DR,t.columnContentHeight+"px")),n.xp6(1),n.Q6J("ngForOf",e.elements)}}const Ul=function(i){return{color:i}};function PR(i,s){if(1&i&&(n.TgZ(0,"i",20),n._uU(1),n.qZA()),2&i){const e=n.oxw().$implicit,t=n.oxw(3);n.Q6J("ngStyle",n.VKq(2,Ul,t.linksTextColor)),n.xp6(1),n.hij(" ",e.icon," ")}}function RR(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"span",21),n.NdJ("click",function(){n.CHM(e);const r=n.oxw().$implicit,d=n.oxw(3);return n.KtG(d.openDialog(r.dialog))}),n._uU(1),n.ALo(2,"localisedText"),n.qZA()}if(2&i){const e=n.oxw().$implicit,t=n.oxw(3);n.Q6J("ngStyle",n.VKq(6,Ul,t.linksTextColor)),n.xp6(1),n.hij("",n.Dn7(2,2,e,t.language,"label")," ")}}function kR(i,s){if(1&i&&(n.TgZ(0,"a",22),n.ALo(1,"localisedLink"),n._uU(2),n.ALo(3,"localisedText"),n.qZA()),2&i){const e=n.oxw().$implicit,t=n.oxw(3);n.Q6J("href",n.xi3(1,3,e,t.language),n.LSH)("ngStyle",n.VKq(10,Ul,t.linksTextColor)),n.xp6(2),n.Oqu(n.Dn7(3,6,e,t.language,"label"))}}function LR(i,s){if(1&i&&(n.TgZ(0,"span",10),n._uU(1),n.ALo(2,"localisedText"),n.qZA()),2&i){const e=n.oxw().$implicit,t=n.oxw(3);n.Q6J("ngStyle",n.VKq(6,Ul,t.linksTextColor)),n.xp6(1),n.Oqu(n.Dn7(2,2,e,t.language,"label"))}}function IR(i,s){if(1&i&&(n.TgZ(0,"div",16),n.YNc(1,PR,2,4,"i",17),n.YNc(2,RR,3,8,"span",18),n.YNc(3,kR,4,12,"a",19),n.ALo(4,"localisedLink"),n.YNc(5,LR,3,8,"span",9),n.ALo(6,"localisedLink"),n.qZA()),2&i){const e=s.$implicit,t=n.oxw(3);n.xp6(1),n.Q6J("ngIf",e.icon),n.xp6(1),n.Q6J("ngIf",e.dialog),n.xp6(1),n.Q6J("ngIf",n.xi3(4,4,e,t.language)&&!e.dialog),n.xp6(2),n.Q6J("ngIf",!n.xi3(6,7,e,t.language)&&!e.dialog)}}const OR=function(i){return{height:i}};function BR(i,s){if(1&i&&(n.TgZ(0,"div",10),n.YNc(1,IR,7,10,"div",15),n.qZA()),2&i){const e=n.oxw().$implicit,t=n.oxw();n.Q6J("ngStyle",n.VKq(2,OR,t.columnContentHeight+"px")),n.xp6(1),n.Q6J("ngForOf",e.elements)}}function VR(i,s){if(1&i&&(n.TgZ(0,"div",7)(1,"h6",8),n._uU(2),n.ALo(3,"localisedText"),n.qZA(),n.YNc(4,HR,2,4,"div",9),n.YNc(5,BR,2,4,"div",9),n.qZA()),2&i){const e=s.$implicit,t=n.oxw();n.ekj("my-auto",t.containsLogos),n.xp6(1),n.Q6J("ngStyle",n.VKq(10,Ul,t.headersTextColor)),n.xp6(1),n.hij(" ",n.Dn7(3,6,e,t.language,"title")," "),n.xp6(2),n.Q6J("ngIf",e.logos),n.xp6(1),n.Q6J("ngIf",e.elements&&!e.logos)}}function jR(i,s){if(1&i&&(n.TgZ(0,"span")(1,"a",6),n._uU(2),n.qZA()()),2&i){const e=s.$implicit,t=s.index,r=n.oxw();n.xp6(1),n.Q6J("href",e.url,n.LSH)("ngStyle",n.VKq(3,Ul,r.copyrightTextColor)),n.xp6(1),n.Oqu(t?", "+e.name:e.name)}}const UR=function(i){return{background:i}};let nD=(()=>{class i{constructor(e,t,r,d,h,c){this.storeService=e,this.translateService=t,this.utilsService=r,this.dialog=d,this.authService=h,this.initAuthService=c,this.copyrightTextColor=this.storeService.getProperty("theme").footer_copyright_text_color,this.footerColumns=[],this.copyrightItems=[],this.currentYear=(new Date).getFullYear(),this.containsLogos=!1,this.headersTextColor=this.storeService.getProperty("theme").footer_headers_text_color,this.linksTextColor=this.storeService.getProperty("theme").footer_links_text_color,this.githubRepository=this.storeService.getProperty("footer").github_releases,this.githubBackendRepository=this.storeService.getProperty("footer").github_backend_releases,this.bgColor=this.storeService.getProperty("theme").footer_bg_color,this.version="",this.backendVersion="",this.guiVersion="",this.language="en",this.columnContentHeight=0}ngOnInit(){this.translateService.onLangChange.subscribe(e=>{this.language=e.lang}),this.version=E(4147).i8,this.footerColumns=this.storeService.getProperty("footer").columns,this.guiVersion=E(4147).i8,this.utilsService.getPerunRPCVersion(!0).subscribe(e=>{this.backendVersion=e.match("\\bVersion:\\s*([^,\\s]+)")[1]}),this.footerColumns=this.storeService.getProperty("footer").columns;for(const e of this.footerColumns)e.logos?this.containsLogos=!0:25*e.elements.length>this.columnContentHeight&&(this.columnContentHeight=25*e.elements.length);this.copyrightItems=this.storeService.getProperty("footer").copyright_items}openDialog(e){const t=Jn();"reportIssue"===e&&(t.width="550px",this.dialog.open(AR,t))}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(yi),n.Y36(mn),n.Y36(ui),n.Y36(oi),n.Y36(ad),n.Y36(sC))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-footer"]],decls:13,vars:19,consts:[[1,"footer-container",3,"ngStyle"],[1,"footer-columns-container"],["class","footer-col mx-auto",3,"my-auto",4,"ngFor","ngForOf"],[1,"my-0","mt-3"],[1,"font-fix","text-center",3,"ngStyle"],[4,"ngFor","ngForOf"],["target","_blank",1,"text-decoration-none",3,"href","ngStyle"],[1,"footer-col","mx-auto"],[1,"font-weight-bold",3,"ngStyle"],[3,"ngStyle",4,"ngIf"],[3,"ngStyle"],[3,"href",4,"ngIf"],[4,"ngIf"],[3,"href"],["alt","image",3,"src"],["class","row-height",4,"ngFor","ngForOf"],[1,"row-height"],["class","material-icons align-bottom mr-1",3,"ngStyle",4,"ngIf"],["id","clickable",3,"ngStyle","click",4,"ngIf"],["target","_blank",3,"href","ngStyle",4,"ngIf"],[1,"material-icons","align-bottom","mr-1",3,"ngStyle"],["id","clickable",3,"ngStyle","click"],["target","_blank",3,"href","ngStyle"]],template:function(e,t){1&e&&(n.TgZ(0,"footer",0)(1,"div",1),n.YNc(2,VR,6,12,"div",2),n.qZA(),n._UZ(3,"hr",3),n.TgZ(4,"div",4),n._uU(5),n.YNc(6,jR,3,5,"span",5),n._uU(7,", web application: "),n.TgZ(8,"a",6),n._uU(9),n.qZA(),n._uU(10,", server: "),n.TgZ(11,"a",6),n._uU(12),n.qZA()()()),2&e&&(n.Q6J("ngStyle",n.VKq(11,UR,t.bgColor)),n.xp6(2),n.Q6J("ngForOf",t.footerColumns),n.xp6(2),n.Q6J("ngStyle",n.VKq(13,Ul,t.copyrightTextColor)),n.xp6(1),n.hij(" \xa9 ",t.currentYear," Copyright: "),n.xp6(1),n.Q6J("ngForOf",t.copyrightItems),n.xp6(2),n.Q6J("href",t.githubRepository,n.LSH)("ngStyle",n.VKq(15,Ul,t.copyrightTextColor)),n.xp6(1),n.Oqu(t.guiVersion),n.xp6(2),n.Q6J("href",t.githubBackendRepository,n.LSH)("ngStyle",n.VKq(17,Ul,t.copyrightTextColor)),n.xp6(1),n.Oqu(t.backendVersion))},dependencies:[x.sg,x.O5,x.PC,vR,TR,xR],styles:["a[_ngcontent-%COMP%]{text-decoration:none}.font-fix[_ngcontent-%COMP%]{font-size:.8rem}.row-height[_ngcontent-%COMP%]{height:25px!important}.footer-col[_ngcontent-%COMP%]{padding-top:35px;white-space:nowrap;text-align:center}.wrap-content[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content}#clickable[_ngcontent-%COMP%]{cursor:pointer}.footer-columns-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-direction:column}@media (min-width: 768px){.footer-columns-container[_ngcontent-%COMP%]{flex-direction:row}}.footer-container[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content}"]}),i})();function NR(i,s){if(1&i&&(n.TgZ(0,"div",8),n._UZ(1,"div",9),n.qZA()),2&i){const e=n.oxw();n.xp6(1),n.Q6J("innerHTML",e.logo,n.oJD)}}function FR(i,s){if(1&i&&(n.TgZ(0,"div",10),n._UZ(1,"div",11)(2,"mat-icon",12),n.qZA()),2&i){const e=n.oxw();n.xp6(1),n.Q6J("innerHTML",e.logo,n.oJD)}}const YR=function(i){return{color:i}};function qR(i,s){if(1&i&&(n.TgZ(0,"p",13),n._uU(1),n.qZA()),2&i){const e=n.oxw();n.Q6J("ngStyle",n.VKq(2,YR,e.textColor)),n.xp6(1),n.hij(" ",e.headerTitle," ")}}const zR=function(i,s){return{background:i,color:s}},GR=function(i,s){return{"min-height":i,"background-color":s}};let WR=(()=>{class i{constructor(e,t,r,d){this.storeService=e,this.sanitizer=t,this.preferredLangService=r,this.translateService=d,this.contentBackgroundColor=this.storeService.getProperty("theme").content_bg_color}ngOnInit(){if(this.headerBackgroundColor=this.storeService.getProperty("theme").nav_bg_color,this.headerTextColor=this.storeService.getProperty("theme").nav_text_color,this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.getProperty("logo")),this.textColor=this.headerTitle?this.storeService.getProperty("theme").nav_text_color:"","user-profile"===this.application){const e=this.preferredLangService.getPreferredLanguage(null);this.translateService.use(e)}}getContentInnerMinHeight(){return"calc((100vh - 64px) + 0px)"}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(yi),n.Y36(On),n.Y36(nR),n.Y36(mn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-login-screen-base"]],inputs:{application:"application",headerTitle:"headerTitle"},decls:10,vars:11,consts:[["id","login-nav",1,"mat-elevation-z3",3,"ngStyle"],["class","mt-auto mb-auto",4,"ngIf"],["class","display-flex-row",4,"ngIf"],["class","ml-3 mt-auto mb-auto page-subtitle",3,"ngStyle",4,"ngIf"],["id","content"],["id","content-inner",3,"ngStyle"],["id","content-wrap"],["id","footer"],[1,"mt-auto","mb-auto"],[1,"logo-container",3,"innerHTML"],[1,"display-flex-row"],[1,"logo-container","mt-auto","mb-auto",3,"innerHTML"],["svgIcon","perun-publications-white",1,"mt-auto","mb-auto","router-icon","ml-2","mr-2"],[1,"ml-3","mt-auto","mb-auto","page-subtitle",3,"ngStyle"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0),n.YNc(1,NR,2,1,"div",1),n.YNc(2,FR,3,1,"div",2),n.YNc(3,qR,2,4,"p",3),n.qZA(),n.TgZ(4,"div",4)(5,"div",5)(6,"div",6),n._UZ(7,"router-outlet"),n.qZA(),n.TgZ(8,"div",7),n._UZ(9,"perun-web-apps-footer"),n.qZA()()()),2&e&&(n.Q6J("ngStyle",n.WLB(5,zR,t.headerBackgroundColor,t.headerTextColor)),n.xp6(1),n.Q6J("ngIf","admin-gui"===t.application||"user-profile"===t.application||"consolidator"===t.application),n.xp6(1),n.Q6J("ngIf","publications"===t.application),n.xp6(1),n.Q6J("ngIf",!!t.headerTitle),n.xp6(2),n.Q6J("ngStyle",n.WLB(8,GR,t.getContentInnerMinHeight(),t.contentBackgroundColor)))},dependencies:[x.O5,x.PC,Ln,lo,nD],styles:["#login-nav[_ngcontent-%COMP%]{position:fixed;width:100%;z-index:999;display:flex;height:64px;max-height:64px;top:0}#footer[_ngcontent-%COMP%]{position:absolute;bottom:0;width:100%}#content[_ngcontent-%COMP%]{width:100%;min-height:calc(100vh - 64px);margin-top:64px}#content-inner[_ngcontent-%COMP%]{position:relative}#content-wrap[_ngcontent-%COMP%]{padding-bottom:250px;padding-top:10px}@media (max-width: 768px){#content-wrap[_ngcontent-%COMP%]{padding-bottom:500px}}.router-icon[_ngcontent-%COMP%]{height:2.5rem;width:2.5rem;cursor:pointer;outline:0}.page-subtitle[_ngcontent-%COMP%]{margin-bottom:1rem;font-size:1.5rem}.logo-container[_ngcontent-%COMP%]{padding:0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}.display-flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}"]}),i})();fn("openClose",[Pt("open",He({overflow:"hidden"})),Pt("closed",He({height:"0px",overflow:"hidden"})),xt("open <=> closed",[Tt(".3s ease-in")])]);const $R=fn("flyInOut",[xt(":enter",[He({transform:"translateX(100%)"}),Tt(".25s")]),xt(":leave",[Tt(".5s",He({transform:"translateX(100%)"}))])]);fn("rollInOut",[xt(":enter",[He({height:"0px"}),Tt(".25s")]),xt(":leave",[Tt(".25s",He({height:"0px"}))])]),fn("routeAnimations",[xt("* => *",[He({position:"relative"}),gr(":enter",[He({width:"100%",opacity:0})],{optional:!0}),gr(":leave",[He({position:"absolute",width:"100%",opacity:1}),Tt("0.15s",He({position:"absolute",width:"100%",opacity:0}))],{optional:!0}),gr(":enter",[He({position:"absolute",width:"100%",opacity:0}),Tt("0.15s",He({position:"absolute",width:"100%",opacity:1}))],{optional:!0})])]),fn("tagsOpenClose",[Pt("open",He({})),Pt("closed",He({width:"0px",height:"0px"})),xt("open <=> closed",[Tt(".3s ease-in")])]),fn("switchAnimations",[xt("true => false",[gr(":enter, :leave",He({})),fu([gr(":enter",[He({transform:"translateX(-100%)"}),Tt("1s ease-in-out",He({transform:"translateX(0%)"}))],{optional:!0}),gr(":leave",[He({transform:"translateX(0%)",position:"absolute"}),Tt("1s ease-in-out",He({transform:"translateX(100%)"}))],{optional:!0})])]),xt("false => true",[gr(":enter, :leave",He({})),fu([gr(":enter",[He({transform:"translateX(100%)"}),Tt("1s ease-in-out",He({transform:"translateX(0%)"}))],{optional:!0}),gr(":leave",[He({transform:"translateX(0%)",position:"absolute"}),Tt("1s ease-in-out",He({transform:"translateX(-100%)"}))],{optional:!0})])])]),fn("slideInOutLeft",[xt(":enter",[He({transform:"translateX(-100%)",position:"relative"}),Tt("0.5s ease-in",He({transform:"translateX(0%)"}))]),xt(":leave",[Tt("0.5s ease-in",He({transform:"translateX(-100%)"}))])]),fn("slideInOutRight",[xt(":enter",[He({transform:"translateX(100%)",position:"fixed"}),Tt("0.5s ease-in",He({transform:"translateX(0%)"}))]),xt(":leave",[He({transform:"translateX(-100%)",position:"relative"}),Tt("0.5s ease-in",He({transform:"translateX(100%)"}))])]);let iD=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[x.ez]}),i})(),rD=(()=>{class i{constructor(e,t){this.translate=e,this.storage=t}transform(e,t="en"){const r=this.storage.getProperty("custom_labels");if(r)for(const d of r)if(d.label===e)return d[t];return e}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(mn,16),n.Y36(yi,16))},i.\u0275pipe=n.Yjl({name:"customTranslate",type:i,pure:!0}),i})();function nk(i,s){if(1&i&&(n.O4$(),n._UZ(0,"circle",4)),2&i){const e=n.oxw(),t=n.MAs(1);n.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+e._spinnerAnimationLabel)("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),n.uIk("r",e._getCircleRadius())}}function ik(i,s){if(1&i&&(n.O4$(),n._UZ(0,"circle",4)),2&i){const e=n.oxw(),t=n.MAs(1);n.Udp("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),n.uIk("r",e._getCircleRadius())}}const ak=Ti(class{constructor(i){this._elementRef=i}},"primary"),sk=new n.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function ok(){return{diameter:100}}});class Mn extends ak{constructor(s,e,t,r,d,h,c,o){super(s),this._document=t,this._diameter=100,this._value=0,this._resizeSubscription=Rt.w0.EMPTY,this.mode="determinate";const a=Mn._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),a.has(t.head)||a.set(t.head,new Set([100])),this._noopAnimations="NoopAnimations"===r&&!!d&&!d._forceAnimations,"mat-spinner"===s.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),d&&(d.color&&(this.color=this.defaultColor=d.color),d.diameter&&(this.diameter=d.diameter),d.strokeWidth&&(this.strokeWidth=d.strokeWidth)),e.isBrowser&&e.SAFARI&&c&&h&&o&&(this._resizeSubscription=c.change(150).subscribe(()=>{"indeterminate"===this.mode&&o.run(()=>h.markForCheck())}))}get diameter(){return this._diameter}set diameter(s){this._diameter=_n(s),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(s){this._strokeWidth=_n(s)}get value(){return"determinate"===this.mode?this._value:0}set value(s){this._value=Math.max(0,Math.min(100,_n(s)))}ngOnInit(){const s=this._elementRef.nativeElement;this._styleRoot=Bh(s)||this._document.head,this._attachStyleNode(),s.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const s=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${s} ${s}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_getCircleTransformOrigin(s){const e=50*(s.currentScale??1);return`${e}% ${e}%`}_attachStyleNode(){const s=this._styleRoot,e=this._diameter,t=Mn._diameters;let r=t.get(s);if(!r||!r.has(e)){const d=this._document.createElement("style");d.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),d.textContent=this._getAnimationText(),s.appendChild(d),r||(r=new Set,t.set(s,r)),r.add(e)}}_getAnimationText(){const s=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*s).replace(/END_VALUE/g,""+.2*s).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}Mn._diameters=new WeakMap,Mn.\u0275fac=function(s){return new(s||Mn)(n.Y36(n.SBq),n.Y36(yn),n.Y36(x.K0,8),n.Y36(n.QbO,8),n.Y36(sk),n.Y36(n.sBO),n.Y36(va),n.Y36(n.R0b))},Mn.\u0275cmp=n.Xpm({type:Mn,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(s,e){2&s&&(n.uIk("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.Udp("width",e.diameter,"px")("height",e.diameter,"px"),n.ekj("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[n.qOj],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(s,e){1&s&&(n.O4$(),n.TgZ(0,"svg",0,1),n.YNc(2,nk,1,11,"circle",2),n.YNc(3,ik,1,9,"circle",3),n.qZA()),2&s&&(n.Udp("width",e.diameter,"px")("height",e.diameter,"px"),n.Q6J("ngSwitch","indeterminate"===e.mode),n.uIk("viewBox",e._getViewBox()),n.xp6(2),n.Q6J("ngSwitchCase",!0),n.xp6(1),n.Q6J("ngSwitchCase",!1))},dependencies:[x.RF,x.n9],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:rgba(0,0,0,0);transition:stroke-dashoffset 225ms linear}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}.mat-progress-spinner[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-progress-spinner._mat-animation-noopable svg,.mat-progress-spinner._mat-animation-noopable circle{animation:none;transition: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)}}"],encapsulation:2,changeDetection:0});let uC=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[ht,x.ez,ht]}),i})();function ck(i,s){1&i&&n._UZ(0,"mat-spinner",7)}function dk(i,s){1&i&&(n.TgZ(0,"mat-error"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_ERROR")))}function uk(i,s){1&i&&(n.TgZ(0,"mat-error"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_ERROR")))}function hk(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"div",8)(1,"mat-form-field")(2,"mat-label"),n._uU(3),n.ALo(4,"translate"),n.qZA(),n.TgZ(5,"input",9,10),n.NdJ("ngModelChange",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.subject=r)}),n.qZA(),n.YNc(7,dk,3,3,"mat-error",11),n.qZA(),n.TgZ(8,"mat-form-field")(9,"mat-label"),n._uU(10),n.ALo(11,"translate"),n.qZA(),n.TgZ(12,"textarea",12,13),n.NdJ("ngModelChange",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.message=r)}),n.ALo(14,"translate"),n._uU(15," "),n.qZA(),n.YNc(16,uk,3,3,"mat-error",11),n.qZA()()}if(2&i){const e=n.MAs(6),t=n.MAs(13),r=n.oxw();n.xp6(3),n.Oqu(n.lcZ(4,7,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT")),n.xp6(2),n.Q6J("ngModel",r.subject),n.xp6(2),n.Q6J("ngIf",e.invalid),n.xp6(3),n.Oqu(n.lcZ(11,9,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE")),n.xp6(2),n.s9C("placeholder",n.lcZ(14,11,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_PLACEHOLDER")),n.Q6J("ngModel",r.message),n.xp6(4),n.Q6J("ngIf",t.invalid)}}let pk=(()=>{class i{constructor(e,t,r,d,h,c){this.dialogRef=e,this.translate=t,this.notificator=r,this.rtMessages=d,this.data=h,this.storeService=c,this.message="",this.subject="",this.methodRegexp=/(\w+\/\w+)$/g,this.loading=!1}ngOnInit(){this.data?.error?.errorId&&(this.subject="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_VALUE"),this.parseMethod(this.data.error.call)," (",this.data.error.errorId,")"))}sendBugReport(){this.loading=!0,this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(e=>{this.dialogRef.afterClosed().subscribe(()=>{const t="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS1"),e.ticketNumber.toString(),this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS2"));this.notificator.showSuccess(t)}),this.dialogRef.close()},()=>{this.loading=!1,this.dialogRef.afterClosed().subscribe(()=>{})})}getFullEmailBody(){const e=this.storeService.getProperty("config");let t=this.message+"\n------------------------\nTechnical details:\n\n"+this.data.error.errorId;if(t=t.concat(this.data.error.type?" "+this.data.error.type+"\n":"\n"),t=t.concat(this.data.error.message,"\n","Perun instance: ",e,"\n","Request:\n",this.data.error.urlWithParams,"\n\n"),this.data.error.payload){const r=/"password":".+?"/;let d=JSON.stringify(this.data.error.payload);d=d.replace(r,'"password":"####"'),t=t.concat("Payload:\n"+d+"\n\n")}return t=t.concat("Sent from new Perun Gui, version: ",E(4147).i8),t.split("\n").join("\n ")}parseMethod(e){return e&&this.methodRegexp.exec(e)[1]}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(si),n.Y36(mn),n.Y36(Ji),n.Y36(Vo),n.Y36(wr),n.Y36(yi))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-bug-report-dialog"]],decls:13,vars:12,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","",3,"ngModel","ngModelChange"],["subjectModel","ngModel"],[4,"ngIf"],["matInput","","required","",3,"ngModel","placeholder","ngModelChange"],["messageModel","ngModel"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.qZA(),n.YNc(3,ck,1,0,"mat-spinner",1),n.YNc(4,hk,17,13,"div",2),n.TgZ(5,"div",3)(6,"div",4)(7,"button",5),n.NdJ("click",function(){return t.dialogRef.close()}),n._uU(8),n.ALo(9,"translate"),n.qZA(),n.TgZ(10,"button",6),n.NdJ("click",function(){return t.sendBugReport()}),n._uU(11),n.ALo(12,"translate"),n.qZA()()()),2&e&&(n.xp6(1),n.Oqu(n.lcZ(2,6,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.TITLE")),n.xp6(2),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading),n.xp6(4),n.hij(" ",n.lcZ(9,8,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.CANCEL")," "),n.xp6(2),n.Q6J("disabled",""===t.message||""===t.subject||t.loading),n.xp6(1),n.hij(" ",n.lcZ(12,10,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SEND")," "))},dependencies:[x.O5,Oi,$i,Bi,Ot,es,ar,ta,Gi,Wi,ns,Uc,Ra,Mn,it],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),i})(),fk=(()=>{class i{constructor(e,t,r){this.dialogRef=e,this.dialog=t,this.data=r}onCloseClick(){this.dialogRef.close()}onBugReportClick(){this.dialogRef.afterClosed().subscribe(()=>{const e=Jn();e.width="550px",e.data={error:this.data.error},e.autoFocus=!1,this.dialog.open(pk,e)}),this.dialogRef.close()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(si),n.Y36(oi),n.Y36(wr))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-notification-dialog"]],decls:12,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"hidden","click"],["autofocus","","mat-button","",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.qZA(),n.TgZ(2,"div",1),n._uU(3),n.qZA(),n.TgZ(4,"div",2)(5,"div",3)(6,"button",4),n.NdJ("click",function(){return t.onBugReportClick()}),n._uU(7),n.ALo(8,"translate"),n.qZA(),n.TgZ(9,"button",5),n.NdJ("click",function(){return t.onCloseClick()}),n._uU(10),n.ALo(11,"translate"),n.qZA()()()),2&e&&(n.xp6(1),n.Oqu(t.data.title),n.xp6(2),n.hij(" ",t.data.description,"\n"),n.xp6(3),n.Q6J("hidden","error"!==t.data.type),n.xp6(1),n.hij(" ",n.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_BUG_REPORT")," "),n.xp6(3),n.hij(" ",n.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_CLOSE")," "))},dependencies:[Oi,$i,Bi,Ot,it]}),i})();const wk=[[["caption"]],[["colgroup"],["col"]]],yk=["caption","colgroup, col"];function Sx(i){return class extends i{constructor(...s){super(...s),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(s){const e=this._sticky;this._sticky=Oe(s),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const s=this._hasStickyChanged;return this._hasStickyChanged=!1,s}resetStickyChanged(){this._hasStickyChanged=!1}}}const Jp=new n.OlP("CDK_TABLE");let Zp=(()=>{class i{constructor(e){this.template=e}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.Rgc))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkCellDef",""]]}),i})(),Qp=(()=>{class i{constructor(e){this.template=e}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.Rgc))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkHeaderCellDef",""]]}),i})(),hC=(()=>{class i{constructor(e){this.template=e}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.Rgc))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkFooterCellDef",""]]}),i})();class Tk{}const xk=Sx(Tk);let Nl=(()=>{class i extends xk{constructor(e){super(),this._table=e,this._stickyEnd=!1}get name(){return this._name}set name(e){this._setNameInput(e)}get stickyEnd(){return this._stickyEnd}set stickyEnd(e){const t=this._stickyEnd;this._stickyEnd=Oe(e),this._hasStickyChanged=t!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Jp,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkColumnDef",""]],contentQueries:function(e,t,r){if(1&e&&(n.Suo(r,Zp,5),n.Suo(r,Qp,5),n.Suo(r,hC,5)),2&e){let d;n.iGM(d=n.CRH())&&(t.cell=d.first),n.iGM(d=n.CRH())&&(t.headerCell=d.first),n.iGM(d=n.CRH())&&(t.footerCell=d.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[n._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:i}]),n.qOj]}),i})();class Mx{constructor(s,e){e.nativeElement.classList.add(...s._columnCssClassName)}}let Ex=(()=>{class i extends Mx{constructor(e,t){super(e,t)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Nl),n.Y36(n.SBq))},i.\u0275dir=n.lG2({type:i,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[n.qOj]}),i})(),Dx=(()=>{class i extends Mx{constructor(e,t){if(super(e,t),1===e._table?._elementRef.nativeElement.nodeType){const r=e._table._elementRef.nativeElement.getAttribute("role");t.nativeElement.setAttribute("role","grid"===r||"treegrid"===r?"gridcell":"cell")}}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Nl),n.Y36(n.SBq))},i.\u0275dir=n.lG2({type:i,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[n.qOj]}),i})();class sD{constructor(){this.tasks=[],this.endTasks=[]}}const Hx=new n.OlP("_COALESCED_STYLE_SCHEDULER");let oD=(()=>{class i{constructor(e){this._ngZone=e,this._currentSchedule=null,this._destroyed=new Me.x}schedule(e){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(e)}scheduleEnd(e){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(e)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new sD,this._getScheduleObservable().pipe(Ke(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const e=this._currentSchedule;this._currentSchedule=new sD;for(const t of e.tasks)t();for(const t of e.endTasks)t()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,lt.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,rt.q)(1))}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(n.R0b))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})(),Px=(()=>{class i{constructor(e,t){this.template=e,this._differs=t}ngOnChanges(e){if(!this._columnsDiffer){const t=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(t).create(),this._columnsDiffer.diff(t)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof t_?e.headerCell.template:this instanceof n_?e.footerCell.template:e.cell.template}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.Rgc),n.Y36(n.ZZ4))},i.\u0275dir=n.lG2({type:i,features:[n.TTD]}),i})();class Sk extends Px{}const Mk=Sx(Sk);let t_=(()=>{class i extends Mk{constructor(e,t,r){super(e,t),this._table=r}ngOnChanges(e){super.ngOnChanges(e)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.Rgc),n.Y36(n.ZZ4),n.Y36(Jp,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[n.qOj,n.TTD]}),i})();class Ek extends Px{}const Dk=Sx(Ek);let n_=(()=>{class i extends Dk{constructor(e,t,r){super(e,t),this._table=r}ngOnChanges(e){super.ngOnChanges(e)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.Rgc),n.Y36(n.ZZ4),n.Y36(Jp,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[n.qOj,n.TTD]}),i})(),pC=(()=>{class i extends Px{constructor(e,t,r){super(e,t),this._table=r}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.Rgc),n.Y36(n.ZZ4),n.Y36(Jp,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[n.qOj]}),i})(),Fl=(()=>{class i{constructor(e){this._viewContainer=e,i.mostRecentCellOutlet=this}ngOnDestroy(){i.mostRecentCellOutlet===this&&(i.mostRecentCellOutlet=null)}}return i.mostRecentCellOutlet=null,i.\u0275fac=function(e){return new(e||i)(n.Y36(n.s_b))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkCellOutlet",""]]}),i})(),Rx=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&n.GkF(0,0)},dependencies:[Fl],encapsulation:2}),i})(),Lx=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&n.GkF(0,0)},dependencies:[Fl],encapsulation:2}),i})(),fC=(()=>{class i{constructor(e){this.templateRef=e,this._contentClassName="cdk-no-data-row"}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.Rgc))},i.\u0275dir=n.lG2({type:i,selectors:[["ng-template","cdkNoDataRow",""]]}),i})();const lD=["top","bottom","left","right"];class Hk{constructor(s,e,t,r,d=!0,h=!0,c){this._isNativeHtmlTable=s,this._stickCellCss=e,this.direction=t,this._coalescedStyleScheduler=r,this._isBrowser=d,this._needsPositionStickyOnElement=h,this._positionListener=c,this._cachedCellWidths=[],this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(s,e){const t=[];for(const r of s)if(r.nodeType===r.ELEMENT_NODE){t.push(r);for(let d=0;d{for(const r of t)this._removeStickyStyle(r,e)})}updateStickyColumns(s,e,t,r=!0){if(!s.length||!this._isBrowser||!e.some(p=>p)&&!t.some(p=>p))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const d=s[0],h=d.children.length,c=this._getCellWidths(d,r),o=this._getStickyStartColumnPositions(c,e),a=this._getStickyEndColumnPositions(c,t),l=e.lastIndexOf(!0),u=t.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const p="rtl"===this.direction,m=p?"right":"left",g=p?"left":"right";for(const f of s)for(let y=0;ye[y]?f:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===u?[]:c.slice(u).map((f,y)=>t[y+u]?f:null).reverse()}))})}stickRows(s,e,t){if(!this._isBrowser)return;const r="bottom"===t?s.slice().reverse():s,d="bottom"===t?e.slice().reverse():e,h=[],c=[],o=[];for(let l=0,u=0;l{for(let l=0;l{e.some(r=>!r)?this._removeStickyStyle(t,["bottom"]):this._addStickyStyle(t,"bottom",0,!1)})}_removeStickyStyle(s,e){for(const r of e)s.style[r]="",s.classList.remove(this._borderCellCss[r]);lD.some(r=>-1===e.indexOf(r)&&s.style[r])?s.style.zIndex=this._getCalculatedZIndex(s):(s.style.zIndex="",this._needsPositionStickyOnElement&&(s.style.position=""),s.classList.remove(this._stickCellCss))}_addStickyStyle(s,e,t,r){s.classList.add(this._stickCellCss),r&&s.classList.add(this._borderCellCss[e]),s.style[e]=`${t}px`,s.style.zIndex=this._getCalculatedZIndex(s),this._needsPositionStickyOnElement&&(s.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(s){const e={top:100,bottom:10,left:1,right:1};let t=0;for(const r of lD)s.style[r]&&(t+=e[r]);return t?`${t}`:""}_getCellWidths(s,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;const t=[],r=s.children;for(let d=0;d0;d--)e[d]&&(t[d]=r,r+=s[d]);return t}}const Ix=new n.OlP("CDK_SPL");let mC=(()=>{class i{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.s_b),n.Y36(n.SBq))},i.\u0275dir=n.lG2({type:i,selectors:[["","rowOutlet",""]]}),i})(),gC=(()=>{class i{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.s_b),n.Y36(n.SBq))},i.\u0275dir=n.lG2({type:i,selectors:[["","headerRowOutlet",""]]}),i})(),_C=(()=>{class i{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.s_b),n.Y36(n.SBq))},i.\u0275dir=n.lG2({type:i,selectors:[["","footerRowOutlet",""]]}),i})(),bC=(()=>{class i{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.s_b),n.Y36(n.SBq))},i.\u0275dir=n.lG2({type:i,selectors:[["","noDataRowOutlet",""]]}),i})(),wC=(()=>{class i{constructor(e,t,r,d,h,c,o,a,l,u,p,m){this._differs=e,this._changeDetectorRef=t,this._elementRef=r,this._dir=h,this._platform=o,this._viewRepeater=a,this._coalescedStyleScheduler=l,this._viewportRuler=u,this._stickyPositioningListener=p,this._ngZone=m,this._onDestroy=new Me.x,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.contentChanged=new n.vpe,this.viewChange=new Hn({start:0,end:Number.MAX_VALUE}),d||this._elementRef.nativeElement.setAttribute("role","table"),this._document=c,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(e){this._trackByFn=e}get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&this._switchDataSource(e)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(e){this._multiTemplateDataRows=Oe(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(e){this._fixedLayout=Oe(e),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((e,t)=>this.trackBy?this.trackBy(t.dataIndex,t.data):t),this._viewportRuler.change().pipe(Ke(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,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(e=>{e.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),du(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const e=this._dataDiffer.diff(this._renderRows);if(!e)return this._updateNoDataRow(),void this.contentChanged.next();const t=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,t,(r,d,h)=>this._getEmbeddedViewArgs(r.item,h),r=>r.item.data,r=>{1===r.operation&&r.context&&this._renderCellTemplateForItem(r.record.item.rowDef,r.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(r=>{t.get(r.currentIndex).context.$implicit=r.item.data}),this._updateNoDataRow(),this._ngZone&&n.R0b.isInAngularZone()?this._ngZone.onStable.pipe((0,rt.q)(1),Ke(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(e){this._customColumnDefs.add(e)}removeColumnDef(e){this._customColumnDefs.delete(e)}addRowDef(e){this._customRowDefs.add(e)}removeRowDef(e){this._customRowDefs.delete(e)}addHeaderRowDef(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}removeHeaderRowDef(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}addFooterRowDef(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}removeFooterRowDef(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}setNoDataRow(e){this._customNoDataRow=e}updateStickyHeaderRowStyles(){const e=this._getRenderedRows(this._headerRowOutlet),r=this._elementRef.nativeElement.querySelector("thead");r&&(r.style.display=e.length?"":"none");const d=this._headerRowDefs.map(h=>h.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,d,"top"),this._headerRowDefs.forEach(h=>h.resetStickyChanged())}updateStickyFooterRowStyles(){const e=this._getRenderedRows(this._footerRowOutlet),r=this._elementRef.nativeElement.querySelector("tfoot");r&&(r.style.display=e.length?"":"none");const d=this._footerRowDefs.map(h=>h.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,d,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,d),this._footerRowDefs.forEach(h=>h.resetStickyChanged())}updateStickyColumnStyles(){const e=this._getRenderedRows(this._headerRowOutlet),t=this._getRenderedRows(this._rowOutlet),r=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...t,...r],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((d,h)=>{this._addStickyColumnStyles([d],this._headerRowDefs[h])}),this._rowDefs.forEach(d=>{const h=[];for(let c=0;c{this._addStickyColumnStyles([d],this._footerRowDefs[h])}),Array.from(this._columnDefsByName.values()).forEach(d=>d.resetStickyChanged())}_getAllRenderRows(){const e=[],t=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let r=0;r{const c=r&&r.has(h)?r.get(h):[];if(c.length){const o=c.shift();return o.dataIndex=t,o}return{data:e,rowDef:h,dataIndex:t}})}_cacheColumnDefs(){this._columnDefsByName.clear(),yC(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(t=>{this._columnDefsByName.has(t.name),this._columnDefsByName.set(t.name,t)})}_cacheRowDefs(){this._headerRowDefs=yC(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=yC(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=yC(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const e=this._rowDefs.filter(t=>!t.when);this._defaultRowDef=e[0]}_renderUpdatedColumns(){const e=(h,c)=>h||!!c.getColumnsDiff(),t=this._rowDefs.reduce(e,!1);t&&this._forceRenderDataRows();const r=this._headerRowDefs.reduce(e,!1);r&&this._forceRenderHeaderRows();const d=this._footerRowDefs.reduce(e,!1);return d&&this._forceRenderFooterRows(),t||r||d}_switchDataSource(e){this._data=[],du(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=e}_observeRenderChanges(){if(!this.dataSource)return;let e;du(this.dataSource)?e=this.dataSource.connect(this):Vt(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=(0,xe.of)(this.dataSource)),this._renderChangeSubscription=e.pipe(Ke(this._onDestroy)).subscribe(t=>{this._data=t||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,t)=>this._renderRow(this._headerRowOutlet,e,t)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,t)=>this._renderRow(this._footerRowOutlet,e,t)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,t){const r=Array.from(t.columns||[]).map(c=>this._columnDefsByName.get(c)),d=r.map(c=>c.sticky),h=r.map(c=>c.stickyEnd);this._stickyStyler.updateStickyColumns(e,d,h,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){const t=[];for(let r=0;r!d.when||d.when(t,e));else{let d=this._rowDefs.find(h=>h.when&&h.when(t,e))||this._defaultRowDef;d&&r.push(d)}return r}_getEmbeddedViewArgs(e,t){return{templateRef:e.rowDef.template,context:{$implicit:e.data},index:t}}_renderRow(e,t,r,d={}){const h=e.viewContainer.createEmbeddedView(t.template,d,r);return this._renderCellTemplateForItem(t,d),h}_renderCellTemplateForItem(e,t){for(let r of this._getCellTemplates(e))Fl.mostRecentCellOutlet&&Fl.mostRecentCellOutlet._viewContainer.createEmbeddedView(r,t);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const e=this._rowOutlet.viewContainer;for(let t=0,r=e.length;t{const r=this._columnDefsByName.get(t);return e.extractCellTemplate(r)}):[]}_applyNativeTableSections(){const e=this._document.createDocumentFragment(),t=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const r of t){const d=this._document.createElement(r.tag);d.setAttribute("role","rowgroup");for(const h of r.outlets)d.appendChild(h.elementRef.nativeElement);e.appendChild(d)}this._elementRef.nativeElement.appendChild(e)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const e=(t,r)=>t||r.hasStickyChanged();this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new Hk(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:(0,xe.of)()).pipe(Ke(this._onDestroy)).subscribe(t=>{this._stickyStyler.direction=t,this.updateStickyColumnStyles()})}_getOwnDefs(e){return e.filter(t=>!t._table||t._table===this)}_updateNoDataRow(){const e=this._customNoDataRow||this._noDataRow;if(!e)return;const t=0===this._rowOutlet.viewContainer.length;if(t===this._isShowingNoDataRow)return;const r=this._noDataRowOutlet.viewContainer;if(t){const d=r.createEmbeddedView(e.templateRef),h=d.rootNodes[0];1===d.rootNodes.length&&h?.nodeType===this._document.ELEMENT_NODE&&(h.setAttribute("role","row"),h.classList.add(e._contentClassName))}else r.clear();this._isShowingNoDataRow=t}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.ZZ4),n.Y36(n.sBO),n.Y36(n.SBq),n.$8M("role"),n.Y36(xn,8),n.Y36(x.K0),n.Y36(yn),n.Y36(vl),n.Y36(Hx),n.Y36(va),n.Y36(Ix,12),n.Y36(n.R0b,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(e,t,r){if(1&e&&(n.Suo(r,fC,5),n.Suo(r,Nl,5),n.Suo(r,pC,5),n.Suo(r,t_,5),n.Suo(r,n_,5)),2&e){let d;n.iGM(d=n.CRH())&&(t._noDataRow=d.first),n.iGM(d=n.CRH())&&(t._contentColumnDefs=d),n.iGM(d=n.CRH())&&(t._contentRowDefs=d),n.iGM(d=n.CRH())&&(t._contentHeaderRowDefs=d),n.iGM(d=n.CRH())&&(t._contentFooterRowDefs=d)}},viewQuery:function(e,t){if(1&e&&(n.Gf(mC,7),n.Gf(gC,7),n.Gf(_C,7),n.Gf(bC,7)),2&e){let r;n.iGM(r=n.CRH())&&(t._rowOutlet=r.first),n.iGM(r=n.CRH())&&(t._headerRowOutlet=r.first),n.iGM(r=n.CRH())&&(t._footerRowOutlet=r.first),n.iGM(r=n.CRH())&&(t._noDataRowOutlet=r.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(e,t){2&e&&n.ekj("cdk-table-fixed-layout",t.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[n._Bn([{provide:Jp,useExisting:i},{provide:vl,useClass:tw},{provide:Hx,useClass:oD},{provide:Ix,useValue:null}])],ngContentSelectors:yk,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(n.F$t(wk),n.Hsn(0),n.Hsn(1,1),n.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[mC,gC,_C,bC],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),i})();function yC(i,s){return i.concat(Array.from(s))}let Rk=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[nr]}),i})();const kk=[[["caption"]],[["colgroup"],["col"]]],Lk=["caption","colgroup, col"];let Do=(()=>{class i extends wC{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return i.\u0275fac=function(){let s;return function(t){return(s||(s=n.n5z(i)))(t||i)}}(),i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(e,t){2&e&&n.ekj("mat-table-fixed-layout",t.fixedLayout)},exportAs:["matTable"],features:[n._Bn([{provide:vl,useClass:tw},{provide:wC,useExisting:i},{provide:Jp,useExisting:i},{provide:Hx,useClass:oD},{provide:Ix,useValue:null}]),n.qOj],ngContentSelectors:Lk,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(n.F$t(kk),n.Hsn(0),n.Hsn(1,1),n.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[mC,gC,_C,bC],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-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:sticky !important}.mat-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),i})(),Os=(()=>{class i extends Zp{}return i.\u0275fac=function(){let s;return function(t){return(s||(s=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["","matCellDef",""]],features:[n._Bn([{provide:Zp,useExisting:i}]),n.qOj]}),i})(),Bs=(()=>{class i extends Qp{}return i.\u0275fac=function(){let s;return function(t){return(s||(s=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["","matHeaderCellDef",""]],features:[n._Bn([{provide:Qp,useExisting:i}]),n.qOj]}),i})(),Vs=(()=>{class i extends Nl{get name(){return this._name}set name(e){this._setNameInput(e)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return i.\u0275fac=function(){let s;return function(t){return(s||(s=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[n._Bn([{provide:Nl,useExisting:i},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:i}]),n.qOj]}),i})(),js=(()=>{class i extends Ex{}return i.\u0275fac=function(){let s;return function(t){return(s||(s=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[n.qOj]}),i})(),Us=(()=>{class i extends Dx{}return i.\u0275fac=function(){let s;return function(t){return(s||(s=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[n.qOj]}),i})(),Yl=(()=>{class i extends t_{}return i.\u0275fac=function(){let s;return function(t){return(s||(s=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[n._Bn([{provide:t_,useExisting:i}]),n.qOj]}),i})(),Ho=(()=>{class i extends pC{}return i.\u0275fac=function(){let s;return function(t){return(s||(s=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[n._Bn([{provide:pC,useExisting:i}]),n.qOj]}),i})(),ql=(()=>{class i extends Rx{}return i.\u0275fac=function(){let s;return function(t){return(s||(s=n.n5z(i)))(t||i)}}(),i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[n._Bn([{provide:Rx,useExisting:i}]),n.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&n.GkF(0,0)},dependencies:[Fl],encapsulation:2}),i})(),Po=(()=>{class i extends Lx{}return i.\u0275fac=function(){let s;return function(t){return(s||(s=n.n5z(i)))(t||i)}}(),i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[n._Bn([{provide:Lx,useExisting:i}]),n.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&n.GkF(0,0)},dependencies:[Fl],encapsulation:2}),i})(),CC=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Rk,ht,ht]}),i})();class zk extends ew{constructor(s=[]){super(),this._renderData=new Hn([]),this._filter=new Hn(""),this._internalPageChanges=new Me.x,this._renderChangesSubscription=null,this.sortingDataAccessor=(e,t)=>{const r=e[t];if(Gf(r)){const d=Number(r);return d<9007199254740991?d:r}return r},this.sortData=(e,t)=>{const r=t.active,d=t.direction;return r&&""!=d?e.sort((h,c)=>{let o=this.sortingDataAccessor(h,r),a=this.sortingDataAccessor(c,r);const l=typeof o,u=typeof a;l!==u&&("number"===l&&(o+=""),"number"===u&&(a+=""));let p=0;return null!=o&&null!=a?o>a?p=1:o{const r=Object.keys(e).reduce((h,c)=>h+e[c]+"\u25ec","").toLowerCase(),d=t.trim().toLowerCase();return-1!=r.indexOf(d)},this._data=new Hn(s),this._updateChangeSubscription()}get data(){return this._data.value}set data(s){s=Array.isArray(s)?s:[],this._data.next(s),this._renderChangesSubscription||this._filterData(s)}get filter(){return this._filter.value}set filter(s){this._filter.next(s),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(s){this._sort=s,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(s){this._paginator=s,this._updateChangeSubscription()}_updateChangeSubscription(){const s=this._sort?(0,Sn.T)(this._sort.sortChange,this._sort.initialized):(0,xe.of)(null),e=this._paginator?(0,Sn.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,xe.of)(null),r=(0,un.a)([this._data,this._filter]).pipe((0,_t.U)(([c])=>this._filterData(c))),d=(0,un.a)([r,s]).pipe((0,_t.U)(([c])=>this._orderData(c))),h=(0,un.a)([d,e]).pipe((0,_t.U)(([c])=>this._pageData(c)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=h.subscribe(c=>this._renderData.next(c))}_filterData(s){return this.filteredData=null==this.filter||""===this.filter?s:s.filter(e=>this.filterPredicate(e,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(s){return this.sort?this.sortData(s.slice(),this.sort):s}_pageData(s){if(!this.paginator)return s;const e=this.paginator.pageIndex*this.paginator.pageSize;return s.slice(e,e+this.paginator.pageSize)}_updatePaginator(s){Promise.resolve().then(()=>{const e=this.paginator;if(e&&(e.length=s,e.pageIndex>0)){const t=Math.ceil(e.length/e.pageSize)-1||0,r=Math.min(e.pageIndex,t);r!==e.pageIndex&&(e.pageIndex=r,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}}class zl extends zk{}function Gk(i,s){1&i&&n._UZ(0,"mat-spinner",7)}function Wk(i,s){1&i&&(n.TgZ(0,"div",12),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.ASK")," "))}function $k(i,s){1&i&&n._UZ(0,"th",19)}function Jk(i,s){if(1&i&&(n.TgZ(0,"td",20),n._uU(1),n.qZA()),2&i){const e=s.$implicit;n.xp6(1),n.Oqu(e)}}function Zk(i,s){1&i&&n._UZ(0,"tr",21)}function Qk(i,s){1&i&&n._UZ(0,"tr",22)}function Kk(i,s){if(1&i&&(n.TgZ(0,"table",13),n.ynx(1,14),n.YNc(2,$k,1,0,"th",15),n.YNc(3,Jk,2,1,"td",16),n.BQk(),n.YNc(4,Zk,1,0,"tr",17),n.YNc(5,Qk,1,0,"tr",18),n.qZA()),2&i){const e=n.oxw(2);n.Q6J("dataSource",e.dataSource),n.xp6(4),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns)}}function Xk(i,s){if(1&i&&(n.TgZ(0,"perun-web-apps-alert",23),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i){const e=n.oxw(2);n.Q6J("alert_type","warn"),n.xp6(1),n.hij(" ",n.lcZ(2,2,e.data.alert)," ")}}function eL(i,s){if(1&i&&(n.TgZ(0,"div",8)(1,"p"),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.YNc(4,Wk,3,3,"div",9),n.YNc(5,Kk,6,3,"table",10),n.YNc(6,Xk,3,4,"perun-web-apps-alert",11),n.qZA()),2&i){const e=n.oxw();n.xp6(2),n.hij(" ",n.lcZ(3,4,e.data.description)," "),n.xp6(2),n.Q6J("ngIf",e.data.showAsk),n.xp6(1),n.Q6J("ngIf",e.data.items.length),n.xp6(1),n.Q6J("ngIf",e.data.alert)}}function tL(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"button",24),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onSubmit())}),n._uU(1),n.ALo(2,"translate"),n.qZA()}if(2&i){const e=n.oxw();n.Q6J("disabled",e.loading),n.xp6(1),n.hij(" ",n.lcZ(2,2,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.REMOVE_BUTTON")," ")}}function nL(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"button",25),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onSubmit())}),n._uU(1),n.ALo(2,"translate"),n.qZA()}if(2&i){const e=n.oxw();n.Q6J("disabled",e.loading),n.xp6(1),n.hij(" ",n.lcZ(2,2,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.SUBMIT_BUTTON")," ")}}let Ox=(()=>{class i{constructor(e,t){this.dialogRef=e,this.data=t,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new zl(this.data.items)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.dialogRef.close(!0)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(si),n.Y36(wr))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-universal-confirmation-items-dialog"]],decls:12,vars:13,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","class","ml-2","color","warn",3,"disabled","click",4,"ngIf"],["mat-flat-button","","class","ml-2","color","accent",3,"disabled","click",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],["class","font-weight-bold",4,"ngIf"],["mat-table","","class","w-100",3,"dataSource",4,"ngIf"],[3,"alert_type",4,"ngIf"],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-header-row","","class","font-weight-bolder",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""],[3,"alert_type"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(e,t){1&e&&(n.TgZ(0,"div")(1,"h1",0),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.YNc(4,Gk,1,0,"mat-spinner",1),n.YNc(5,eL,7,6,"div",2),n.TgZ(6,"div",3)(7,"button",4),n.NdJ("click",function(){return t.onCancel()}),n._uU(8),n.ALo(9,"translate"),n.qZA(),n.YNc(10,tL,3,4,"button",5),n.YNc(11,nL,3,4,"button",6),n.qZA()()),2&e&&(n.Tol(t.theme),n.xp6(2),n.Oqu(n.lcZ(3,9,t.data.title)),n.xp6(2),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading),n.xp6(3),n.hij(" ",n.lcZ(9,11,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.CANCEL_BUTTON")," "),n.xp6(2),n.Q6J("ngIf","remove"===t.data.type),n.xp6(1),n.Q6J("ngIf","confirmation"===t.data.type))},dependencies:[x.O5,Do,Bs,Yl,Vs,Os,Ho,js,Us,ql,Po,Oi,$i,Bi,Ot,Mn,na,it]}),i})(),hL=(()=>{class i{constructor(e,t){this.dialogRef=e,this.data=t}ngOnInit(){this.theme=this.data.theme,this.message=this.data.message}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.dialogRef.close(!0)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(si),n.Y36(wr))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-universal-confirmation-dialog"]],decls:11,vars:12,consts:[["mat-dialog-title",""],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(n.TgZ(0,"div")(1,"h1",0),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"div",1)(5,"button",2),n.NdJ("click",function(){return t.onCancel()}),n._uU(6),n.ALo(7,"translate"),n.qZA(),n.TgZ(8,"button",3),n.NdJ("click",function(){return t.onSubmit()}),n._uU(9),n.ALo(10,"translate"),n.qZA()()()),2&e&&(n.Tol(t.theme),n.xp6(2),n.Oqu(n.lcZ(3,6,t.message)),n.xp6(4),n.hij(" ",n.lcZ(7,8,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_CONFIRMATION_DIALOG.CANCEL_BUTTON")," "),n.xp6(3),n.hij(" ",n.lcZ(10,10,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_CONFIRMATION_DIALOG.SUBMIT_BUTTON")," "))},dependencies:[Oi,Bi,Ot,it]}),i})();function bL(i,s){1&i&&(n.TgZ(0,"mat-error",8),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,n.lcZ(3,3,"DIALOGS.ADD_SSH.INVALID_TYPE"))))}class Gl{constructor(s,e,t){this.dialogRef=s,this.data=e,this.attributesManagerService=t}ngOnInit(){this.sshControl=new gg(null,[kn.required,kn.pattern(Gl.sshKeyPattern)])}onCancel(){this.dialogRef.close(!1)}onSubmit(){const s=this.data.attribute?.value??[],e=this.sshControl.value;s.includes(e)||s.push(e),this.data.attribute.value=s,this.attributesManagerService.setUserAttribute({user:this.data.userId,attribute:this.data.attribute}).subscribe(()=>{this.dialogRef.close(!0)},()=>{s.pop()})}}function TL(i,s){if(1&i&&(n.TgZ(0,"div",9),n._UZ(1,"perun-web-apps-notification",10),n.qZA()),2&i){const e=s.$implicit;n.xp6(1),n.Q6J("data",e)("inDialog",!0)}}function xL(i,s){if(1&i&&(n.TgZ(0,"div",6)(1,"cdk-virtual-scroll-viewport",7),n.YNc(2,TL,2,2,"div",8),n.qZA()()),2&i){const e=n.oxw();n.xp6(2),n.Q6J("cdkVirtualForOf",e.notifications)}}function SL(i,s){1&i&&(n.TgZ(0,"perun-web-apps-alert",11),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,n.lcZ(3,3,"DIALOGS.NOTIFICATION_LIST.NO_NOTIFICATIONS_ALERT"))))}Gl.allowedSshKeys=["ssh-ed25519","ssh-ed25519-cert-v01@openssh.com","sk-ssh-ed25519@openssh.com","sk-ssh-ed25519-cert-v01@openssh.com","ssh-rsa","ssh-dss","ecdsa-sha2-nistp256","ecdsa-sha2-nistp384","ecdsa-sha2-nistp521","sk-ecdsa-sha2-nistp256@openssh.com","ssh-rsa-cert-v01@openssh.com","ssh-dss-cert-v01@openssh.com","ecdsa-sha2-nistp256-cert-v01@openssh.com","ecdsa-sha2-nistp384-cert-v01@openssh.com","ecdsa-sha2-nistp521-cert-v01@openssh.com","sk-ecdsa-sha2-nistp256-cert-v01@openssh.com"],Gl.sshKeyPattern="^("+Gl.allowedSshKeys.join("|")+").+$",Gl.\u0275fac=function(s){return new(s||Gl)(n.Y36(si),n.Y36(wr),n.Y36(Ql))},Gl.\u0275cmp=n.Xpm({type:Gl,selectors:[["perun-web-apps-add-ssh-dialog"]],decls:20,vars:23,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","user-theme"],[1,"input-width"],["matInput","","required","","cdkTextareaAutosize","","cdkAutosizeMinRows","4",3,"placeholder","formControl"],["class","white-space-pre",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[1,"white-space-pre"]],template:function(s,e){1&s&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA(),n.TgZ(4,"div",1)(5,"mat-form-field",2)(6,"label",2),n._UZ(7,"textarea",3),n.ALo(8,"translate"),n.ALo(9,"customTranslate"),n.qZA(),n.YNc(10,bL,4,5,"mat-error",4),n.qZA()(),n.TgZ(11,"div",5)(12,"button",6),n.NdJ("click",function(){return e.onCancel()}),n._uU(13),n.ALo(14,"translate"),n.ALo(15,"customTranslate"),n.qZA(),n.TgZ(16,"button",7),n.NdJ("click",function(){return e.onSubmit()}),n._uU(17),n.ALo(18,"translate"),n.ALo(19,"customTranslate"),n.qZA()()),2&s&&(n.xp6(1),n.Oqu(n.lcZ(2,7,n.lcZ(3,9,"DIALOGS.ADD_SSH.TITLE"))),n.xp6(6),n.s9C("placeholder",n.lcZ(8,11,n.lcZ(9,13,"DIALOGS.ADD_SSH.INPUT_PLACEHOLDER"))),n.Q6J("formControl",e.sshControl),n.xp6(3),n.Q6J("ngIf",e.sshControl.invalid&&e.sshControl.dirty),n.xp6(3),n.hij(" ",n.lcZ(14,15,n.lcZ(15,17,"DIALOGS.ADD_SSH.CANCEL"))," "),n.xp6(3),n.Q6J("disabled",e.sshControl.invalid),n.xp6(1),n.hij(" ",n.lcZ(18,19,n.lcZ(19,21,"DIALOGS.ADD_SSH.ADD"))," "))},dependencies:[x.O5,Gi,Wi,ns,Ot,es,ar,_r,_R,Ra,Oi,$i,Bi,it,rD],styles:[".input-width{width:100%}.white-space-pre{white-space:pre-wrap}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper{padding-bottom:0}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-underline{position:initial!important;display:block;margin-top:-1px}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper,perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-ripple{position:initial!important;display:table}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper{min-height:calc(1em + 1px)}\n"],encapsulation:2});let uD=(()=>{class i{constructor(e,t){this.dialogRef=e,this.notificationStorageService=t}ngOnInit(){this.notifications=this.notificationStorageService.getNotifications()}onCancel(){this.dialogRef.close()}onClear(){this.notificationStorageService.clearNotifications(),this.notifications=[]}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(si),n.Y36(oC))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-show-notification-history-dialog"]],decls:15,vars:17,consts:[["mat-dialog-title",""],["class","hide-horizontal-scrollbar",4,"ngIf"],["alert_type","warn",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","",1,"ml-2",3,"click"],[1,"hide-horizontal-scrollbar"],["itemSize","50",1,"viewport"],["class","mb-1",4,"cdkVirtualFor","cdkVirtualForOf"],[1,"mb-1"],[3,"data","inDialog"],["alert_type","warn"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA(),n.YNc(4,xL,3,1,"div",1),n.YNc(5,SL,4,5,"perun-web-apps-alert",2),n.TgZ(6,"div",3)(7,"button",4),n.NdJ("click",function(){return t.onClear()}),n._uU(8),n.ALo(9,"translate"),n.ALo(10,"customTranslate"),n.qZA(),n.TgZ(11,"button",5),n.NdJ("click",function(){return t.onCancel()}),n._uU(12),n.ALo(13,"translate"),n.ALo(14,"customTranslate"),n.qZA()()),2&e&&(n.xp6(1),n.Oqu(n.lcZ(2,5,n.lcZ(3,7,"DIALOGS.NOTIFICATION_LIST.TITLE"))),n.xp6(3),n.Q6J("ngIf",0!==t.notifications.length),n.xp6(1),n.Q6J("ngIf",0===t.notifications.length),n.xp6(3),n.hij(" ",n.lcZ(9,9,n.lcZ(10,11,"DIALOGS.NOTIFICATION_LIST.CLEAR"))," "),n.xp6(4),n.hij(" ",n.lcZ(13,13,n.lcZ(14,15,"DIALOGS.NOTIFICATION_LIST.CANCEL"))," "))},styles:[".viewport[_ngcontent-%COMP%]{height:400px;width:470px}.hide-horizontal-scrollbar[_ngcontent-%COMP%]{overflow-x:hidden}"]}),i})();function ML(i,s){if(1&i&&(n.TgZ(0,"div",5)(1,"mat-icon"),n._uU(2),n.qZA()()),2&i){const e=n.oxw();n.xp6(2),n.Oqu(e.data.icon)}}function EL(i,s){if(1&i&&(n.TgZ(0,"div",6),n._uU(1),n.qZA()),2&i){const e=n.oxw();n.xp6(1),n.hij(" ",e.showTimestamp()," ")}}let hD=(()=>{class i{constructor(e,t){this.dialog=e,this.notificationStorageService=t,this.newNotification=!1,this.closeNotification=new n.vpe,this.alreadyPressed=!1,this.alreadyClosed=!1,this.waiting=!1}doAction(){if(this.newNotification&&(this.alreadyPressed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,void 0!==this.data.action)this.data.action();else{const e=Jn();e.width="550px",e.data=this.data,e.autoFocus=!1,this.dialog.open(fk,e).afterClosed().subscribe(()=>{this.closeSelf()})}}closeSelf(){this.inDialog||(this.newNotification&&(this.alreadyClosed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,this.closeNotification.emit())}ngOnInit(){!function ox(i,s){zp.apply(this,arguments)}(this.data.delay,()=>{!this.alreadyClosed&&!this.waiting&&this.closeSelf()})}showTimestamp(){const[e,t]=this.data.timeStamp.split(":");return t.length<2?e+":0"+t:this.data.timeStamp}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(oi),n.Y36(oC))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-notification"]],inputs:{data:"data",inDialog:"inDialog",newNotification:"newNotification"},outputs:{closeNotification:"closeNotification"},decls:9,vars:14,consts:[[1,"notification-container",3,"click"],["class","notification-icon",4,"ngIf"],["data-cy","notification-message",1,"notification-text","clickable"],["class","ml-auto mr-5 mt-auto mb-auto",4,"ngIf"],[1,"notification-action","mt-auto","mb-auto",3,"hidden","click"],[1,"notification-icon"],[1,"ml-auto","mr-5","mt-auto","mb-auto"]],template:function(e,t){1&e&&(n.TgZ(0,"div")(1,"div",0),n.NdJ("click",function(){return t.alreadyClosed||t.waiting?"":t.closeSelf()}),n.YNc(2,ML,3,1,"div",1),n.TgZ(3,"div",2),n._uU(4),n.ALo(5,"translate"),n.qZA(),n.YNc(6,EL,2,1,"div",3),n.TgZ(7,"div",4),n.NdJ("click",function(){return t.waiting=!0,t.doAction()}),n._uU(8),n.qZA()()()),2&e&&(n.Gre("notification ",t.inDialog?"":"mat-elevation-z7",""),n.ekj("error","error"===t.data.type)("success","success"===t.data.type),n.xp6(2),n.Q6J("ngIf",null!==t.data.icon),n.xp6(2),n.hij(" ",n.lcZ(5,12,t.data.title)," "),n.xp6(2),n.Q6J("ngIf",t.inDialog),n.xp6(1),n.Q6J("hidden",t.alreadyPressed),n.xp6(1),n.hij(" ",t.data.actionText," "))},dependencies:[x.O5,Ln,it],styles:[".notification[_ngcontent-%COMP%]{width:450px;margin-bottom:16px;display:flex;flex-direction:row;justify-content:space-between;color:#fff}.notification-container[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:row;padding:16px}.notification-text[_ngcontent-%COMP%]{font-size:1.1em}.notification-action[_ngcontent-%COMP%]{margin-left:auto;text-decoration:underline;cursor:pointer}@media (max-width: 768px){.notification[_ngcontent-%COMP%]{width:100%}}.notification.error[_ngcontent-%COMP%]{background-color:#d32f2f}.notification.success[_ngcontent-%COMP%]{background-color:#288619}.notification-icon[_ngcontent-%COMP%]{padding-right:8px;color:#fff}"]}),i})();function DL(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"div")(1,"perun-web-apps-notification",2),n.NdJ("closeNotification",function(){const d=n.CHM(e).index,h=n.oxw();return n.KtG(h.removeNotification(d))}),n.qZA()()}if(2&i){const e=s.$implicit;n.Q6J("@flyInOut",void 0),n.xp6(1),n.Q6J("data",e)("newNotification",!0)}}const HL=function(i){return{top:i}};let PL=(()=>{class i{constructor(e,t){this.notificator=e,this.notificationStorageService=t,this.displayWarning=!1,this.minWidth=992,this.notifications=[],this.mobileView=!1,this.notificator.addNotification.subscribe(r=>{this.processNotification(r)}),this.getScreenSize()}getScreenSize(){this.mobileView=window.innerWidth<=this.minWidth}getNotificatorTop(){return this.mobileView?"initial":this.displayWarning?"112px":"64px"}removeNotification(e){this.notifications.splice(e,1)}processNotification(e){this.notifications.push(e),this.notificationStorageService.storeNotification(e)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ji),n.Y36(oC))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-notificator"]],hostBindings:function(e,t){1&e&&n.NdJ("resize",function(d){return t.getScreenSize(d)},!1,n.Jf7)},inputs:{displayWarning:"displayWarning"},decls:2,vars:4,consts:[["id","notificator",3,"ngStyle"],[4,"ngFor","ngForOf"],[3,"data","newNotification","closeNotification"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0),n.YNc(1,DL,2,3,"div",1),n.qZA()),2&e&&(n.Q6J("ngStyle",n.VKq(2,HL,t.getNotificatorTop())),n.xp6(1),n.Q6J("ngForOf",t.notifications))},dependencies:[x.sg,x.PC,hD],styles:["#notificator[_ngcontent-%COMP%]{position:fixed;right:0;z-index:1001;padding:8px}@media (max-width: 768px){#notificator[_ngcontent-%COMP%]{width:100%;top:initial;bottom:0}}"],data:{animation:[$R]}}),i})();var Kp=(()=>{return(i=Kp||(Kp={})).Admin="admin",i.Profile="profile",i.PwdReset="pwdReset",i.Consolidator="consolidator",i.Linker="linker",Kp;var i})();const RL=["*",[["mat-toolbar-row"]]],kL=["*","mat-toolbar-row"],LL=Ti(class{constructor(i){this._elementRef=i}});let IL=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),i})(),OL=(()=>{class i extends LL{constructor(e,t,r){super(e),this._platform=t,this._document=r}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(yn),n.Y36(x.K0))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-toolbar"]],contentQueries:function(e,t,r){if(1&e&&n.Suo(r,IL,5),2&e){let d;n.iGM(d=n.CRH())&&(t._toolbarRows=d)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,t){2&e&&n.ekj("mat-toolbar-multiple-rows",t._toolbarRows.length>0)("mat-toolbar-single-row",0===t._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[n.qOj],ngContentSelectors:kL,decls:2,vars:0,template:function(e,t){1&e&&(n.F$t(RL),n.Hsn(0),n.Hsn(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%}"],encapsulation:2,changeDetection:0}),i})(),pD=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[ht,ht]}),i})(),BL=0;const VL=Qr(class{}),fD="mat-badge-content";let jL=(()=>{class i extends VL{constructor(e,t,r,d,h){super(),this._ngZone=e,this._elementRef=t,this._ariaDescriber=r,this._renderer=d,this._animationMode=h,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=BL++,this._isInitialized=!1}get color(){return this._color}set color(e){this._setColor(e),this._color=e}get overlap(){return this._overlap}set overlap(e){this._overlap=Oe(e)}get content(){return this._content}set content(e){this._updateRenderedContent(e)}get description(){return this._description}set description(e){this._updateHostAriaDescription(e)}get hidden(){return this._hidden}set hidden(e){this._hidden=Oe(e)}isAbove(){return-1===this.position.indexOf("below")}isAfter(){return-1===this.position.indexOf("before")}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=!0}ngOnDestroy(){this._renderer.destroyNode&&this._renderer.destroyNode(this._badgeElement),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_createBadgeElement(){const e=this._renderer.createElement("span"),t="mat-badge-active";return e.setAttribute("id",`mat-badge-content-${this._id}`),e.setAttribute("aria-hidden","true"),e.classList.add(fD),"NoopAnimations"===this._animationMode&&e.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(e),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{e.classList.add(t)})}):e.classList.add(t),e}_updateRenderedContent(e){const t=`${e??""}`.trim();this._isInitialized&&t&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=t),this._content=t}_updateHostAriaDescription(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),e&&this._ariaDescriber.describe(this._elementRef.nativeElement,e),this._description=e}_setColor(e){const t=this._elementRef.nativeElement.classList;t.remove(`mat-badge-${this._color}`),e&&t.add(`mat-badge-${e}`)}_clearExistingBadges(){const e=this._elementRef.nativeElement.querySelectorAll(`:scope > .${fD}`);for(const t of Array.from(e))t!==this._badgeElement&&t.remove()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.R0b),n.Y36(n.SBq),n.Y36(Kd),n.Y36(n.Qsj),n.Y36(n.QbO,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(e,t){2&e&&n.ekj("mat-badge-overlap",t.overlap)("mat-badge-above",t.isAbove())("mat-badge-below",!t.isAbove())("mat-badge-before",!t.isAfter())("mat-badge-after",t.isAfter())("mat-badge-small","small"===t.size)("mat-badge-medium","medium"===t.size)("mat-badge-large","large"===t.size)("mat-badge-hidden",t.hidden||!t.content)("mat-badge-disabled",t.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],position:["matBadgePosition","position"],content:["matBadge","content"],description:["matBadgeDescription","description"],size:["matBadgeSize","size"],hidden:["matBadgeHidden","hidden"]},features:[n.qOj]}),i})(),UL=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[bl,ht,ht]}),i})();const Bx=function(i){return{color:i}};function NL(i,s){if(1&i&&(n.TgZ(0,"button",8),n.ALo(1,"translate"),n.TgZ(2,"mat-icon",4),n._uU(3," apps "),n.qZA()()),2&i){const e=n.oxw(),t=n.MAs(2);n.Q6J("matMenuTriggerFor",t)("matTooltip",n.lcZ(1,3,"NAV.OTHER_APPLICATIONS")),n.xp6(2),n.Q6J("ngStyle",n.VKq(5,Bx,e.iconColor))}}function FL(i,s){if(1&i&&(n.TgZ(0,"span",9),n._uU(1),n.qZA()),2&i){const e=n.oxw();n.Q6J("ngStyle",n.VKq(6,Bx,e.textColor)),n.xp6(1),n.xDo(" ",e.user.titleBefore," ",e.user.firstName," ",e.user.middleName," ",e.user.lastName," ",e.user.titleAfter," ")}}function YL(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"button",10),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onLogOut())}),n._uU(1),n.ALo(2,"translate"),n.qZA()}2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"NAV.LOGOUT")," "))}let qL=(()=>{class i{constructor(e){this.authService=e}redirectToUrl(){window.open(this.url,"_blank")}onLogOut(){this.authService.logout()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(ad))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-header-menu"]],inputs:{user:"user",iconColor:"iconColor",textColor:"textColor",logoutEnabled:"logoutEnabled",url:"url",label:"label"},decls:13,vars:8,consts:[["mat-icon-button","",3,"matMenuTriggerFor","matTooltip",4,"ngIf"],["appsMenu","matMenu"],["mat-menu-item","",3,"click","auxclick"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],["class","d-none d-lg-inline",3,"ngStyle",4,"ngIf"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-icon-button","",3,"matMenuTriggerFor","matTooltip"],[1,"d-none","d-lg-inline",3,"ngStyle"],["mat-menu-item","",3,"click"]],template:function(e,t){if(1&e&&(n.YNc(0,NL,4,7,"button",0),n.TgZ(1,"mat-menu",null,1)(3,"button",2),n.NdJ("click",function(){return t.redirectToUrl()})("auxclick",function(){return t.redirectToUrl()}),n.TgZ(4,"span"),n._uU(5),n.qZA()()(),n.TgZ(6,"button",3)(7,"mat-icon",4),n._uU(8," person "),n.qZA(),n.YNc(9,FL,2,8,"span",5),n.qZA(),n.TgZ(10,"mat-menu",null,6),n.YNc(12,YL,3,3,"button",7),n.qZA()),2&e){const r=n.MAs(11);n.Q6J("ngIf",t.url),n.xp6(5),n.Oqu(t.label),n.xp6(1),n.Q6J("matMenuTriggerFor",r),n.xp6(1),n.Q6J("ngStyle",n.VKq(6,Bx,t.iconColor)),n.xp6(2),n.Q6J("ngIf",null!==t.user),n.xp6(3),n.Q6J("ngIf",t.logoutEnabled)}},dependencies:[x.O5,x.PC,Ln,jp,Kc,Sy,Ot,ks,it],styles:["@media (max-width: 991px){.no-left-padding[_ngcontent-%COMP%]{padding-left:0}}"]}),i})(),Vx=(()=>{class i extends Ts{constructor(){super(...arguments),this.queryParamsHandling="merge"}ngOnChanges(){if(this.queryParams&&"applicationFormItems"in this.queryParams){this.queryParamsHandling="";const e=Object.assign({},this.queryParams);delete e.applicationFormItems,this.queryParams=e}}}return i.\u0275fac=function(){let s;return function(t){return(s||(s=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["tr","routerLink",""],["a","routerLink",""]],features:[n.qOj,n.TTD]}),i})();const Xp=function(i){return{color:i}};function zL(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"button",9),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onToggleSidenav())}),n.TgZ(1,"mat-icon"),n._uU(2,"menu"),n.qZA()()}if(2&i){const e=n.oxw();n.Q6J("ngStyle",n.VKq(1,Xp,e.iconColor))}}function GL(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"div",10)(1,"button",11)(2,"mat-icon",12),n._uU(3," language "),n.qZA()(),n.TgZ(4,"mat-menu",null,13)(6,"button",14),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.changeLanguage())}),n._uU(7),n.ALo(8,"translate"),n.qZA()()()}if(2&i){const e=n.MAs(5),t=n.oxw();n.Q6J("ngStyle",n.VKq(6,Xp,t.textColor)),n.xp6(1),n.Q6J("matMenuTriggerFor",e),n.xp6(1),n.Q6J("ngStyle",n.VKq(8,Xp,t.iconColor)),n.xp6(5),n.hij(" ",n.lcZ(8,4,"HEADER.LANGUAGE")," ")}}function WL(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"button",15),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.showNotificationHistory())}),n.ALo(1,"translate"),n.TgZ(2,"mat-icon",16),n._uU(3),n.qZA()()}if(2&i){const e=n.oxw();n.Q6J("matTooltip",n.lcZ(1,5,"NAV.NOTIFICATIONS_TOOLTIP")),n.xp6(2),n.s9C("matBadge",e.getNewNotificationsCount()>5?"5+":e.getNewNotificationsCount()),n.Q6J("ngStyle",n.VKq(7,Xp,e.iconColor))("matBadgeHidden",0===e.getNewNotificationsCount()),n.xp6(1),n.hij(" ",e.getNewNotificationsCount()?"notifications_active":"notifications"," ")}}function $L(i,s){if(1&i&&n._UZ(0,"perun-web-apps-header-menu",17),2&i){const e=n.oxw();n.Q6J("url",e.otherAppUrl)("label",e.otherAppLabel)("user",e.principal.user)("logoutEnabled",e.logoutEnabled)("iconColor",e.iconColor)("textColor",e.textColor)}}const JL=function(i){return{background:i}},ZL=function(){return[]},QL=function(){return["/"]};let KL=(()=>{class i{constructor(e,t,r,d,h,c,o){this.storeService=e,this.sanitizer=t,this.translateService=r,this.otherApplicationService=d,this.notificationStorageService=h,this.dialog=c,this.route=o,this.sidenavToggle=new n.vpe,this.showToggle=!0,this.showLanguageMenu=!1,this.showHeaderMenu=!0,this.showNotifications=!1,this.disableLogo=!1,this.label=this.storeService.getProperty("header_label_en"),this.logoutEnabled=this.storeService.getProperty("log_out_enabled"),this.principal=this.storeService.getPerunPrincipal(),this.bgColor=this.storeService.getProperty("theme").nav_bg_color,this.textColor=this.storeService.getProperty("theme").nav_text_color,this.iconColor=this.storeService.getProperty("theme").nav_icon_color,this.navTextColor=this.storeService.getProperty("theme").nav_text_color,this.activeLink=!1,this.onToggleSidenav=()=>{this.sidenavToggle.emit()}}ngOnInit(){this.otherAppLabel=this.getOtherAppLabel(),this.translateService.onLangChange.subscribe(e=>{this.label=this.storeService.getProperty("en"===e.lang?"header_label_en":"header_label_cs"),this.otherAppLabel=this.getOtherAppLabel(e.lang)}),this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.getProperty("logo")),this.isLinkToOtherAppActive()}getOtherAppLabel(e="en"){return this.storeService.getProperty(this.otherApp===Kp.Profile?"profile_label_en":"en"===e?"admin_gui_label_en":"admin_gui_label_cs")}isLinkToOtherAppActive(){if(this.otherApp===Kp.Admin){this.linkRoles=this.storeService.getProperty("link_to_admin_gui_by_roles");for(const e in this.storeService.getPerunPrincipal().roles)this.linkRoles.includes(e)&&(this.activeLink=!0)}(this.otherApp!==Kp.Admin||this.activeLink)&&(this.otherAppUrl=this.otherApplicationService.getUrlForOtherApplication(this.otherApp))}changeLanguage(){this.translateService.use("en"===this.translateService.currentLang?"cs":"en")}showNotificationHistory(){this.notificationStorageService.newNotificationsCount=0;const e=Jn();e.width="520px",this.dialog.open(uD,e)}getNewNotificationsCount(){return this.notificationStorageService.newNotificationsCount}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(yi),n.Y36(On),n.Y36(mn),n.Y36(iR),n.Y36(oC),n.Y36(oi),n.Y36(Li))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-header"]],inputs:{showToggle:"showToggle",showLanguageMenu:"showLanguageMenu",showHeaderMenu:"showHeaderMenu",showNotifications:"showNotifications",disableLogo:"disableLogo",otherApp:"otherApp"},outputs:{sidenavToggle:"sidenavToggle"},decls:10,vars:19,consts:[[1,"sticky-top","header-container","mat-elevation-z3",3,"ngStyle"],["id","nav-menu-icons"],["aria-label","Menu","mat-icon-button","",3,"ngStyle","click",4,"ngIf"],["queryParamsHandling","merge",1,"logo-container","mt-auto","mb-auto",3,"innerHTML","routerLink","queryParams"],[1,"mt-auto","mb-auto","hide-label","page-subtitle",3,"ngStyle"],["id","nav-menu-user-info",3,"ngStyle"],["id","nav-menu-language",3,"ngStyle",4,"ngIf"],["mat-icon-button","",3,"matTooltip","click",4,"ngIf"],[3,"url","label","user","logoutEnabled","iconColor","textColor",4,"ngIf"],["aria-label","Menu","mat-icon-button","",3,"ngStyle","click"],["id","nav-menu-language",3,"ngStyle"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],["menu","matMenu"],["mat-menu-item","",3,"click"],["mat-icon-button","",3,"matTooltip","click"],["matBadgeColor","warn",3,"ngStyle","matBadge","matBadgeHidden"],[3,"url","label","user","logoutEnabled","iconColor","textColor"]],template:function(e,t){1&e&&(n.TgZ(0,"mat-toolbar",0)(1,"div",1),n.YNc(2,zL,3,3,"button",2),n._UZ(3,"a",3),n.TgZ(4,"p",4),n._uU(5),n.qZA()(),n.TgZ(6,"div",5),n.YNc(7,GL,9,10,"div",6),n.YNc(8,WL,4,9,"button",7),n.YNc(9,$L,1,6,"perun-web-apps-header-menu",8),n.qZA()()),2&e&&(n.Q6J("ngStyle",n.VKq(11,JL,t.bgColor)),n.xp6(2),n.Q6J("ngIf",t.showToggle),n.xp6(1),n.Q6J("innerHTML",t.logo,n.oJD)("routerLink",t.disableLogo?n.DdM(13,ZL):n.DdM(14,QL))("queryParams",t.route.snapshot.queryParams),n.xp6(1),n.Q6J("ngStyle",n.VKq(15,Xp,t.textColor)),n.xp6(1),n.hij(" ",t.label," "),n.xp6(1),n.Q6J("ngStyle",n.VKq(17,Xp,t.navTextColor)),n.xp6(1),n.Q6J("ngIf",t.showLanguageMenu),n.xp6(1),n.Q6J("ngIf",t.showNotifications),n.xp6(1),n.Q6J("ngIf",t.showHeaderMenu))},dependencies:[x.O5,x.PC,Nd,Ln,jp,Kc,Sy,Ot,ks,OL,jL,qL,Vx,it],styles:[".header-container[_ngcontent-%COMP%]{height:64px!important;display:flex;justify-content:space-between;padding:0 0 0 8px;z-index:999}#nav-menu-user-info[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding-right:16px;margin-left:auto;margin-right:0}@media (max-width: 570px){.hide-label[_ngcontent-%COMP%]{display:none}}#nav-devel-info[_ngcontent-%COMP%]{margin-left:auto;font-weight:500;font-size:1.4rem;display:flex;align-items:center;font-family:Roboto,Helvetica Neue,sans-serif}#nav-menu-icons[_ngcontent-%COMP%]{display:flex;flex-direction:row}.logo-container[_ngcontent-%COMP%]{padding:0 20px 0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}#nav-menu-language[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding-right:16px}"]}),i})(),XL=(()=>{class i{constructor(e){this.authResolver=e}getSideMenuItems(){const e=[];return this.authResolver.isCabinetAdmin()&&e.push({label:"MENU_ITEMS.ALL_PUBLICATIONS",icon:"perun-publications-white",isSVG:!0,link:"/all-publications",activatedRegex:"^/all-publications",tabName:"all-publications"}),e.push({label:"MENU_ITEMS.MY_PUBLICATIONS",icon:"local_library",link:"/my-publications",activatedRegex:"^/my-publications",tabName:"my-publications"}),e.push({label:"MENU_ITEMS.CREATE_PUBLICATION",icon:"add_box",link:"/create-publication",activatedRegex:"^/create-publication",tabName:"create-publication"}),this.authResolver.isCabinetAdmin()&&(e.push({label:"MENU_ITEMS.AUTHORS",icon:"assignment_ind",link:"/authors",activatedRegex:"^/authors",tabName:"authors"}),e.push({label:"MENU_ITEMS.CATEGORIES",icon:"all_inbox",link:"/categories",activatedRegex:"^/categories$",tabName:"categories"}),e.push({label:"MENU_ITEMS.PUBLICATION_SYSTEMS",icon:"assignment",link:"/publication-systems",activatedRegex:"^/publication-systems$",tabName:"publication-systems"})),e}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(dn))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),jx=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[ht,ht]}),i})();const mD=["*"],tI=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],nI=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],oI=Qr(mr(class{})),lI=mr(class{}),cI=new n.OlP("MatList"),gD=new n.OlP("MatNavList");let dI=(()=>{class i extends oI{constructor(){super(...arguments),this._stateChanges=new Me.x}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return i.\u0275fac=function(){let s;return function(t){return(s||(s=n.n5z(i)))(t||i)}}(),i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[n._Bn([{provide:gD,useExisting:i}]),n.qOj,n.TTD],ngContentSelectors:mD,decls:1,vars:0,template:function(e,t){1&e&&(n.F$t(),n.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.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:rgba(0,0,0,0);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{display:block;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:rgba(0,0,0,0);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{display:block;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 .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-list-option:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:hover{outline:dotted 1px;z-index:1}.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}}'],encapsulation:2,changeDetection:0}),i})(),_D=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),i})(),bD=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),i})(),uI=(()=>{class i extends lI{constructor(e,t,r,d){super(),this._element=e,this._isInteractiveList=!1,this._destroyed=new Me.x,this._disabled=!1,this._isInteractiveList=!!(r||d&&"action-list"===d._getListType()),this._list=r||d;const h=this._getHostElement();"button"===h.nodeName.toLowerCase()&&!h.hasAttribute("type")&&h.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe(Ke(this._destroyed)).subscribe(()=>{t.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(e){this._disabled=Oe(e)}ngAfterContentInit(){!function Kh(i,s,e="mat"){i.changes.pipe(Zt(i)).subscribe(({length:t})=>{Qa(s,`${e}-2-line`,!1),Qa(s,`${e}-3-line`,!1),Qa(s,`${e}-multi-line`,!1),2===t||3===t?Qa(s,`${e}-${t}-line`,!0):t>3&&Qa(s,`${e}-multi-line`,!0)})}(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 i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(gD,8),n.Y36(cI,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(e,t,r){if(1&e&&(n.Suo(r,_D,5),n.Suo(r,bD,5),n.Suo(r,yl,5)),2&e){let d;n.iGM(d=n.CRH())&&(t._avatar=d.first),n.iGM(d=n.CRH())&&(t._icon=d.first),n.iGM(d=n.CRH())&&(t._lines=d)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:4,hostBindings:function(e,t){2&e&&n.ekj("mat-list-item-disabled",t.disabled)("mat-list-item-with-avatar",t._avatar||t._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[n.qOj],ngContentSelectors:nI,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(e,t){1&e&&(n.F$t(tI),n.TgZ(0,"span",0),n._UZ(1,"span",1),n.Hsn(2),n.TgZ(3,"span",2),n.Hsn(4,1),n.qZA(),n.Hsn(5,2),n.qZA()),2&e&&(n.xp6(1),n.Q6J("matRippleTrigger",t._getHostElement())("matRippleDisabled",t._isRippleDisabled()))},dependencies:[Lr],encapsulation:2,changeDetection:0}),i})(),yD=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Cl,Kr,ht,lm,x.ez,Cl,ht,lm,jx]}),i})();function _I(i,s){if(1&i&&n._UZ(0,"mat-icon",6),2&i){const e=n.oxw().$implicit;n.Q6J("svgIcon",e.icon)}}function bI(i,s){if(1&i&&(n.TgZ(0,"mat-icon"),n._uU(1),n.qZA()),2&i){const e=n.oxw().$implicit;n.xp6(1),n.Oqu(e.icon)}}const wI=function(i){return{color:i}};function yI(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"mat-list-item",2),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.shouldHideMenu())}),n.YNc(1,_I,1,1,"mat-icon",3),n.YNc(2,bI,2,1,"mat-icon",4),n.TgZ(3,"span",5),n._uU(4),n.ALo(5,"translate"),n.qZA()()}if(2&i){const e=s.$implicit,t=n.oxw();n.ekj("activated",t.isActive(e.activatedRegex)),n.s9C("routerLink",e.link),n.Q6J("ngStyle",n.VKq(10,wI,t.textColor))("matRippleColor","rgba(255, 255, 255, 0.1)"),n.xp6(1),n.Q6J("ngIf",e.isSVG),n.xp6(1),n.Q6J("ngIf",!e.isSVG),n.xp6(2),n.Oqu(n.lcZ(5,8,e.label))}}let CI=(()=>{class i{constructor(e,t,r){this.sideMenuItemService=e,this.storeService=t,this.router=r,this.items=[],this.textColor=this.storeService.getProperty("theme").sidemenu_text_color,this.currentUrl=r.url,r.events.subscribe(d=>{d instanceof Ni&&(this.currentUrl=d.url)})}ngOnInit(){this.items=this.sideMenuItemService.getSideMenuItems()}isActive(e){return new RegExp(e).test(this.currentUrl)}shouldHideMenu(){"over"===this.sideNav.mode&&this.sideNav.close()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(XL),n.Y36(yi),n.Y36($n))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-side-menu"]],inputs:{sideNav:"sideNav"},decls:2,vars:1,consts:[[1,"pt-0"],["mat-ripple","","class","side-menu-item-height",3,"activated","ngStyle","matRippleColor","routerLink","click",4,"ngFor","ngForOf"],["mat-ripple","",1,"side-menu-item-height",3,"ngStyle","matRippleColor","routerLink","click"],["class","perun-icon",3,"svgIcon",4,"ngIf"],[4,"ngIf"],[1,"nav-caption","ml-3"],[1,"perun-icon",3,"svgIcon"]],template:function(e,t){1&e&&(n.TgZ(0,"mat-nav-list",0),n.YNc(1,yI,6,12,"mat-list-item",1),n.qZA()),2&e&&(n.xp6(1),n.Q6J("ngForOf",t.items))},dependencies:[x.sg,x.O5,x.PC,Ln,dI,uI,Lr,Ts,it],styles:[".nav-caption[_ngcontent-%COMP%]{display:inline-block}.side-menu-item-height[_ngcontent-%COMP%]{height:40px!important}mat-list-item[_ngcontent-%COMP%]:hover{background:var(--side-hover)!important;color:var(--side-text-hover)!important}.activated[_ngcontent-%COMP%]{background:var(--side-active)!important;color:var(--side-text-active)!important}"]}),i})();const AI=["footer"],CD=function(i){return{background:i}},vI=function(i){return{"min-height":i}};function TI(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"div")(1,"perun-web-apps-header",1),n.NdJ("sidenavToggle",function(){n.CHM(e);const r=n.MAs(4);return n.KtG(r.toggle())}),n.qZA(),n.TgZ(2,"mat-sidenav-container",2)(3,"mat-sidenav",3,4),n._UZ(5,"perun-web-apps-side-menu",5),n.qZA(),n.TgZ(6,"mat-sidenav-content",6)(7,"div",7),n._UZ(8,"router-outlet"),n.qZA(),n.TgZ(9,"div",null,8),n._UZ(11,"perun-web-apps-footer"),n.qZA()()()()}if(2&i){const e=n.MAs(4),t=n.oxw();n.xp6(3),n.Q6J("mode",t.sidebarMode)("ngStyle",n.VKq(6,CD,t.sideMenuBgColor))("opened",!t.isMobile()),n.xp6(2),n.Q6J("sideNav",e),n.xp6(1),n.Q6J("ngStyle",n.VKq(8,CD,t.contentBackgroundColor)),n.xp6(1),n.Q6J("ngStyle",n.VKq(10,vI,t.contentHeight))}}function xI(i,s){1&i&&(n.TgZ(0,"div"),n._UZ(1,"perun-web-apps-login-screen-base",9),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.Q6J("application","publications")("headerTitle",n.lcZ(2,2,"HEADER.TITLE")))}let SI=(()=>{class i{constructor(e,t,r,d,h){this.store=e,this.initAuth=t,this.changeDetector=r,this.authResolver=d,this.router=h,this.sidebarMode="side",this.sideMenuBgColor=this.store.getProperty("theme").sidemenu_bg_color,this.contentBackgroundColor=this.store.getProperty("theme").content_bg_color,this.contentHeight="calc(100vh - 64px)"}getScreenSize(){this.sidebarMode=this.isMobile()?"over":"side"}ngOnInit(){this.isLoginScreenShow=this.initAuth.isLoginScreenShown(),this.isServiceAccess=this.initAuth.isServiceAccessLoginScreenShown(),sessionStorage.removeItem("baLogout");const e=location.pathname;!this.authResolver.isCabinetAdmin()&&("/"===e||["/all-publications","/authors","/categories","/publication-systems"].some(r=>e.includes(r)))&&this.router.navigate(["my-publications"],{queryParamsHandling:"preserve"})}isMobile(){return window.innerWidth<=i.minWidth}setContentHeight(e){this.contentHeight="calc(100vh - 84px - "+String(e)+"px)",this.changeDetector.detectChanges()}isServiceLogin(){return!!sessionStorage.getItem("baLogout")}ngAfterViewInit(){const e=this.footer?.nativeElement?.offsetHeight?.toString()??"0";this.contentHeight="calc(100vh - 84px - "+e+"px)",this.changeDetector.detectChanges()}}return i.minWidth=992,i.\u0275fac=function(e){return new(e||i)(n.Y36(yi),n.Y36(sC),n.Y36(n.sBO),n.Y36(dn),n.Y36($n))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-root"]],viewQuery:function(e,t){if(1&e&&n.Gf(AI,5),2&e){let r;n.iGM(r=n.CRH())&&(t.footer=r.first)}},hostBindings:function(e,t){1&e&&n.NdJ("resize",function(d){return t.getScreenSize(d)},!1,n.Jf7)},decls:3,vars:2,consts:[[4,"ngIf"],[3,"sidenavToggle"],["autosize","true"],["fixedInViewport","","fixedTopGap","64",1,"side-menu-size",3,"mode","ngStyle","opened"],["sidenav",""],[1,"overflow-hidden",3,"sideNav"],["id","content-inner",3,"ngStyle"],["id","content-wrap",3,"ngStyle"],["footer",""],[3,"application","headerTitle"]],template:function(e,t){1&e&&(n._UZ(0,"perun-web-apps-notificator"),n.YNc(1,TI,12,12,"div",0),n.YNc(2,xI,3,4,"div",0)),2&e&&(n.xp6(1),n.Q6J("ngIf",!t.isLoginScreenShow&&!t.isServiceAccess&&!t.isServiceLogin()),n.xp6(1),n.Q6J("ngIf",t.isLoginScreenShow||t.isServiceAccess||t.isServiceLogin()))},dependencies:[x.O5,x.PC,ZE,QE,Tx,lo,WR,nD,PL,KL,CI,it],styles:["#content-wrap[_ngcontent-%COMP%]{padding-bottom:25px;padding-top:10px;margin:10px}@media (min-width: 600px){#content-wrap[_ngcontent-%COMP%]{padding-left:25px;padding-right:25px}}#content-inner[_ngcontent-%COMP%]{position:relative;overflow-x:hidden;padding-top:64px;min-height:calc(100vh - 128px)}#nav-menu[_ngcontent-%COMP%]{top:0;background:#102027;position:fixed;width:100%;z-index:999;height:64px;max-height:64px}.side-menu-size[_ngcontent-%COMP%]{width:300px;height:auto}"]}),i})();class MI{constructor(s,e="/assets/i18n/",t=".json"){this.http=s,this.prefix=e,this.suffix=t}getTranslation(s){return this.http.get(`${this.prefix}${s}${this.suffix}`)}}let EI=(()=>{class i{constructor(e,t,r,d,h){this.http=e,this.storeService=t,this.authzSevice=r,this.titleService=d,this.utilsService=h}initializeColors(e,t){return new Promise(r=>{t.forEach(d=>{const h=this.storeService.getProperty("theme")[d.configValue];document.documentElement.style.setProperty(d.cssVariable,h)}),e.forEach(d=>{const h=this.storeService.getProperty("theme")[d.configValue];document.documentElement.style.setProperty(d.cssVariable,h),this.setEntityTheme(d.entity,h)}),r()})}setEntityTheme(e,t){const r=function DI(i){return[ia(tinycolor(i).lighten(52),"50"),ia(tinycolor(i).lighten(37),"100"),ia(tinycolor(i).lighten(26),"200"),ia(tinycolor(i).lighten(12),"300"),ia(tinycolor(i).lighten(6),"400"),ia(tinycolor(i),"500"),ia(tinycolor(i).darken(6),"600"),ia(tinycolor(i).darken(12),"700"),ia(tinycolor(i).darken(18),"800"),ia(tinycolor(i).darken(24),"900"),ia(tinycolor(i).lighten(50).saturate(30),"A100"),ia(tinycolor(i).lighten(30).saturate(30),"A200"),ia(tinycolor(i).lighten(10).saturate(15),"A400"),ia(tinycolor(i).lighten(5).saturate(5),"A700")]}(t);for(const d of r){const o=`--${e}-theme-primary-contrast-${d.name}`,a=d.darkContrast?"30,30,30":"255,255,255";document.documentElement.style.setProperty(`--${e}-theme-primary-${d.name}`,`${d.red},${d.green},${d.blue}`),document.documentElement.style.setProperty(o,a)}}loadAppDefaultConfig(){return new Promise(e=>{this.http.get("/assets/config/defaultConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{this.storeService.setDefaultConfig(t),e()})})}loadAppInstanceConfig(){return new Promise(e=>{this.http.get("/assets/config/instanceConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{this.storeService.setInstanceConfig(t);const r=document.location.hostname;t?.brandings?.[r]&&this.storeService.setBanding(r),e()},()=>{e()})})}getNoCacheHeaders(){return new v.WM({CacheControl:"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"})}setInstanceFavicon(){return new Promise(e=>{const t=document.querySelector("link[rel*='icon']")||document.createElement("link");t.type="image/x-icon",t.rel="shortcut icon",t.href=this.storeService.getProperty("instance_favicon")?"./assets/config/instanceFavicon.ico":"./assets/img/perun.ico",document.getElementsByTagName("head")[0].appendChild(t),e()})}setApiUrl(){return new Promise(e=>{let t=this.storeService.getProperty("api_url");("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal")||this.storeService.getProperty("auto_service_access_redirect"))&&(t=t.replace("oauth","ba")),this.authzSevice.configuration.basePath=t,this.titleService.setTitle(this.storeService.getProperty("document_title").en),e()})}loadAppsConfig(){return new Promise((e,t)=>{this.utilsService.getAppsConfig().subscribe(r=>{this.storeService.setAppsConfig(r),e()},r=>t(r))})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(v.eN),n.LFG(yi),n.LFG(Va),n.LFG(oe),n.LFG(ui))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();function ia(i,s){const e=tinycolor(i),t=e.toRgb();return{name:s,hex:e.toHexString(),darkContrast:e.isLight(),red:t.r,green:t.g,blue:t.b}}let HI=(()=>{class i{constructor(e,t,r,d,h,c){this.initAuthService=e,this.appConfigService=t,this.location=r,this.authzSevice=d,this.guiAuthResolver=h,this.mfaHandlerService=c,this.entityColorConfigs=[{entity:"user",configValue:"user_color",cssVariable:"--user-color"}],this.colorConfigs=[{configValue:"sidemenu_bg_color",cssVariable:"--side-bg"},{configValue:"sidemenu_hover_color",cssVariable:"--side-hover"},{configValue:"sidemenu_hover_text_color",cssVariable:"--side-text-hover"},{configValue:"sidemenu_active_color",cssVariable:"--side-active"},{configValue:"sidemenu_active_text_color",cssVariable:"--side-text-active"}]}loadConfigs(){return this.appConfigService.loadAppDefaultConfig().then(()=>this.appConfigService.loadAppInstanceConfig()).then(()=>this.appConfigService.setApiUrl()).then(()=>this.appConfigService.initializeColors(this.entityColorConfigs,this.colorConfigs)).then(()=>this.initAuthService.verifyAuth()).catch(e=>{throw this.mfaHandlerService.catchNoMfaTokenError(e?.params?.error),console.error(e),this.location.go("/"),location.reload(),e}).then(e=>e?(this.mfaHandlerService.closeMfaWindow(),this.initAuthService.loadPrincipal().then(()=>this.loadPolicies()).then(()=>this.initAuthService.checkRouteGuard())):this.initAuthService.handleAuthStart())}loadPolicies(){return Cx(this.authzSevice.getAllPolicies()).then(e=>{this.guiAuthResolver.setPerunPolicies(e)})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(sC),n.LFG(EI),n.LFG(x.Ye),n.LFG(Va),n.LFG(dn),n.LFG(Ax))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const PI=new n.OlP("perun-api-service");function AD(i){return new n.vHH(3e3,!1)}function hO(){return typeof window<"u"&&typeof window.document<"u"}function Ux(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function sd(i){switch(i.length){case 0:return new gu;case 1:return i[0];default:return new Lm(i)}}function vD(i,s,e,t,r=new Map,d=new Map){const h=[],c=[];let o=-1,a=null;if(t.forEach(l=>{const u=l.get("offset"),p=u==o,m=p&&a||new Map;l.forEach((g,f)=>{let y=f,j=g;if("offset"!==f)switch(y=s.normalizePropertyName(y,h),j){case"!":j=r.get(f);break;case yo:j=d.get(f);break;default:j=s.normalizeStyleValue(f,y,j,h)}m.set(y,j)}),p||c.push(m),a=m,o=u}),h.length)throw function eO(i){return new n.vHH(3502,!1)}();return c}function Nx(i,s,e,t){switch(s){case"start":i.onStart(()=>t(e&&Fx(e,"start",i)));break;case"done":i.onDone(()=>t(e&&Fx(e,"done",i)));break;case"destroy":i.onDestroy(()=>t(e&&Fx(e,"destroy",i)))}}function Fx(i,s,e){const d=Yx(i.element,i.triggerName,i.fromState,i.toState,s||i.phaseName,e.totalTime??i.totalTime,!!e.disabled),h=i._data;return null!=h&&(d._data=h),d}function Yx(i,s,e,t,r="",d=0,h){return{element:i,triggerName:s,fromState:e,toState:t,phaseName:r,totalTime:d,disabled:!!h}}function ka(i,s,e){let t=i.get(s);return t||i.set(s,t=e),t}function TD(i){const s=i.indexOf(":");return[i.substring(1,s),i.slice(s+1)]}let qx=(i,s)=>!1,xD=(i,s,e)=>[],SD=null;function zx(i){const s=i.parentNode||i.host;return s===SD?null:s}(Ux()||typeof Element<"u")&&(hO()?(SD=(()=>document.documentElement)(),qx=(i,s)=>{for(;s;){if(s===i)return!0;s=zx(s)}return!1}):qx=(i,s)=>i.contains(s),xD=(i,s,e)=>{if(e)return Array.from(i.querySelectorAll(s));const t=i.querySelector(s);return t?[t]:[]});let Bu=null,MD=!1;const ED=qx,DD=xD;let HD=(()=>{class i{validateStyleProperty(e){return function fO(i){Bu||(Bu=function mO(){return typeof document<"u"?document.body:null}()||{},MD=!!Bu.style&&"WebkitAppearance"in Bu.style);let s=!0;return Bu.style&&!function pO(i){return"ebkit"==i.substring(1,6)}(i)&&(s=i in Bu.style,!s&&MD&&(s="Webkit"+i.charAt(0).toUpperCase()+i.slice(1)in Bu.style)),s}(e)}matchesElement(e,t){return!1}containsElement(e,t){return ED(e,t)}getParentElement(e){return zx(e)}query(e,t,r){return DD(e,t,r)}computeStyle(e,t,r){return r||""}animate(e,t,r,d,h,c=[],o){return new gu(r,d)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})(),Gx=(()=>{class i{}return i.NOOP=new HD,i})();const Wx="ng-enter",AC="ng-leave",vC="ng-trigger",TC=".ng-trigger",RD="ng-animating",$x=".ng-animating";function od(i){if("number"==typeof i)return i;const s=i.match(/^(-?[\.\d]+)(m?s)/);return!s||s.length<2?0:Jx(parseFloat(s[1]),s[2])}function Jx(i,s){return"s"===s?1e3*i:i}function xC(i,s,e){return i.hasOwnProperty("duration")?i:function bO(i,s,e){let r,d=0,h="";if("string"==typeof i){const c=i.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===c)return s.push(AD()),{duration:0,delay:0,easing:""};r=Jx(parseFloat(c[1]),c[2]);const o=c[3];null!=o&&(d=Jx(parseFloat(o),c[4]));const a=c[5];a&&(h=a)}else r=i;if(!e){let c=!1,o=s.length;r<0&&(s.push(function RI(){return new n.vHH(3100,!1)}()),c=!0),d<0&&(s.push(function kI(){return new n.vHH(3101,!1)}()),c=!0),c&&s.splice(o,0,AD())}return{duration:r,delay:d,easing:h}}(i,s,e)}function i_(i,s={}){return Object.keys(i).forEach(e=>{s[e]=i[e]}),s}function kD(i){const s=new Map;return Object.keys(i).forEach(e=>{s.set(e,i[e])}),s}function ld(i,s=new Map,e){if(e)for(let[t,r]of e)s.set(t,r);for(let[t,r]of i)s.set(t,r);return s}function ID(i,s,e){return e?s+":"+e+";":""}function OD(i){let s="";for(let e=0;e{const d=Qx(r);e&&!e.has(r)&&e.set(r,i.style[d]),i.style[d]=t}),Ux()&&OD(i))}function Vu(i,s){i.style&&(s.forEach((e,t)=>{const r=Qx(t);i.style[r]=""}),Ux()&&OD(i))}function r_(i){return Array.isArray(i)?1==i.length?i[0]:yw(i):i}const Zx=new RegExp("{{\\s*(.+?)\\s*}}","g");function BD(i){let s=[];if("string"==typeof i){let e;for(;e=Zx.exec(i);)s.push(e[1]);Zx.lastIndex=0}return s}function SC(i,s,e){const t=i.toString(),r=t.replace(Zx,(d,h)=>{let c=s[h];return null==c&&(e.push(function II(i){return new n.vHH(3003,!1)}()),c=""),c.toString()});return r==t?i:r}function MC(i){const s=[];let e=i.next();for(;!e.done;)s.push(e.value),e=i.next();return s}const CO=/-+([a-z0-9])/g;function Qx(i){return i.replace(CO,(...s)=>s[1].toUpperCase())}function AO(i){return i.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function La(i,s,e){switch(s.type){case 7:return i.visitTrigger(s,e);case 0:return i.visitState(s,e);case 1:return i.visitTransition(s,e);case 2:return i.visitSequence(s,e);case 3:return i.visitGroup(s,e);case 4:return i.visitAnimate(s,e);case 5:return i.visitKeyframes(s,e);case 6:return i.visitStyle(s,e);case 8:return i.visitReference(s,e);case 9:return i.visitAnimateChild(s,e);case 10:return i.visitAnimateRef(s,e);case 11:return i.visitQuery(s,e);case 12:return i.visitStagger(s,e);default:throw function OI(i){return new n.vHH(3004,!1)}()}}function VD(i,s){return window.getComputedStyle(i)[s]}function EO(i,s){const e=[];return"string"==typeof i?i.split(/\s*,\s*/).forEach(t=>function DO(i,s,e){if(":"==i[0]){const o=function HO(i,s){switch(i){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t) *"}}(i,e);if("function"==typeof o)return void s.push(o);i=o}const t=i.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==t||t.length<4)return e.push(function JI(i){return new n.vHH(3015,!1)}()),s;const r=t[1],d=t[2],h=t[3];s.push(jD(r,h));"<"==d[0]&&!("*"==r&&"*"==h)&&s.push(jD(h,r))}(t,e,s)):e.push(i),e}const PC=new Set(["true","1"]),RC=new Set(["false","0"]);function jD(i,s){const e=PC.has(i)||RC.has(i),t=PC.has(s)||RC.has(s);return(r,d)=>{let h="*"==i||i==r,c="*"==s||s==d;return!h&&e&&"boolean"==typeof r&&(h=r?PC.has(i):RC.has(i)),!c&&t&&"boolean"==typeof d&&(c=d?PC.has(s):RC.has(s)),h&&c}}const PO=new RegExp("s*:selfs*,?","g");function Kx(i,s,e,t){return new RO(i).build(s,e,t)}class RO{constructor(s){this._driver=s}build(s,e,t){const r=new IO(e);return this._resetContextStyleTimingState(r),La(this,r_(s),r)}_resetContextStyleTimingState(s){s.currentQuerySelector="",s.collectedStyles=new Map,s.collectedStyles.set("",new Map),s.currentTime=0}visitTrigger(s,e){let t=e.queryCount=0,r=e.depCount=0;const d=[],h=[];return"@"==s.name.charAt(0)&&e.errors.push(function VI(){return new n.vHH(3006,!1)}()),s.definitions.forEach(c=>{if(this._resetContextStyleTimingState(e),0==c.type){const o=c,a=o.name;a.toString().split(/\s*,\s*/).forEach(l=>{o.name=l,d.push(this.visitState(o,e))}),o.name=a}else if(1==c.type){const o=this.visitTransition(c,e);t+=o.queryCount,r+=o.depCount,h.push(o)}else e.errors.push(function jI(){return new n.vHH(3007,!1)}())}),{type:7,name:s.name,states:d,transitions:h,queryCount:t,depCount:r,options:null}}visitState(s,e){const t=this.visitStyle(s.styles,e),r=s.options&&s.options.params||null;if(t.containsDynamicStyles){const d=new Set,h=r||{};t.styles.forEach(c=>{c instanceof Map&&c.forEach(o=>{BD(o).forEach(a=>{h.hasOwnProperty(a)||d.add(a)})})}),d.size&&(MC(d.values()),e.errors.push(function UI(i,s){return new n.vHH(3008,!1)}()))}return{type:0,name:s.name,style:t,options:r?{params:r}:null}}visitTransition(s,e){e.queryCount=0,e.depCount=0;const t=La(this,r_(s.animation),e);return{type:1,matchers:EO(s.expr,e.errors),animation:t,queryCount:e.queryCount,depCount:e.depCount,options:ju(s.options)}}visitSequence(s,e){return{type:2,steps:s.steps.map(t=>La(this,t,e)),options:ju(s.options)}}visitGroup(s,e){const t=e.currentTime;let r=0;const d=s.steps.map(h=>{e.currentTime=t;const c=La(this,h,e);return r=Math.max(r,e.currentTime),c});return e.currentTime=r,{type:3,steps:d,options:ju(s.options)}}visitAnimate(s,e){const t=function BO(i,s){if(i.hasOwnProperty("duration"))return i;if("number"==typeof i)return Xx(xC(i,s).duration,0,"");const e=i;if(e.split(/\s+/).some(d=>"{"==d.charAt(0)&&"{"==d.charAt(1))){const d=Xx(0,0,"");return d.dynamic=!0,d.strValue=e,d}const r=xC(e,s);return Xx(r.duration,r.delay,r.easing)}(s.timings,e.errors);e.currentAnimateTimings=t;let r,d=s.styles?s.styles:He({});if(5==d.type)r=this.visitKeyframes(d,e);else{let h=s.styles,c=!1;if(!h){c=!0;const a={};t.easing&&(a.easing=t.easing),h=He(a)}e.currentTime+=t.duration+t.delay;const o=this.visitStyle(h,e);o.isEmptyStep=c,r=o}return e.currentAnimateTimings=null,{type:4,timings:t,style:r,options:null}}visitStyle(s,e){const t=this._makeStyleAst(s,e);return this._validateStyleAst(t,e),t}_makeStyleAst(s,e){const t=[],r=Array.isArray(s.styles)?s.styles:[s.styles];for(let c of r)"string"==typeof c?c===yo?t.push(c):e.errors.push(new n.vHH(3002,!1)):t.push(kD(c));let d=!1,h=null;return t.forEach(c=>{if(c instanceof Map&&(c.has("easing")&&(h=c.get("easing"),c.delete("easing")),!d))for(let o of c.values())if(o.toString().indexOf("{{")>=0){d=!0;break}}),{type:6,styles:t,easing:h,offset:s.offset,containsDynamicStyles:d,options:null}}_validateStyleAst(s,e){const t=e.currentAnimateTimings;let r=e.currentTime,d=e.currentTime;t&&d>0&&(d-=t.duration+t.delay),s.styles.forEach(h=>{"string"!=typeof h&&h.forEach((c,o)=>{const a=e.collectedStyles.get(e.currentQuerySelector),l=a.get(o);let u=!0;l&&(d!=r&&d>=l.startTime&&r<=l.endTime&&(e.errors.push(function FI(i,s,e,t,r){return new n.vHH(3010,!1)}()),u=!1),d=l.startTime),u&&a.set(o,{startTime:d,endTime:r}),e.options&&function yO(i,s,e){const t=s.params||{},r=BD(i);r.length&&r.forEach(d=>{t.hasOwnProperty(d)||e.push(function LI(i){return new n.vHH(3001,!1)}())})}(c,e.options,e.errors)})})}visitKeyframes(s,e){const t={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function YI(){return new n.vHH(3011,!1)}()),t;let d=0;const h=[];let c=!1,o=!1,a=0;const l=s.steps.map(j=>{const le=this._makeStyleAst(j,e);let Be=null!=le.offset?le.offset:function OO(i){if("string"==typeof i)return null;let s=null;if(Array.isArray(i))i.forEach(e=>{if(e instanceof Map&&e.has("offset")){const t=e;s=parseFloat(t.get("offset")),t.delete("offset")}});else if(i instanceof Map&&i.has("offset")){const e=i;s=parseFloat(e.get("offset")),e.delete("offset")}return s}(le.styles),St=0;return null!=Be&&(d++,St=le.offset=Be),o=o||St<0||St>1,c=c||St0&&d{const Be=p>0?le==m?1:p*le:h[le],St=Be*y;e.currentTime=g+f.delay+St,f.duration=St,this._validateStyleAst(j,e),j.offset=Be,t.styles.push(j)}),t}visitReference(s,e){return{type:8,animation:La(this,r_(s.animation),e),options:ju(s.options)}}visitAnimateChild(s,e){return e.depCount++,{type:9,options:ju(s.options)}}visitAnimateRef(s,e){return{type:10,animation:this.visitReference(s.animation,e),options:ju(s.options)}}visitQuery(s,e){const t=e.currentQuerySelector,r=s.options||{};e.queryCount++,e.currentQuery=s;const[d,h]=function kO(i){const s=!!i.split(/\s*,\s*/).find(e=>":self"==e);return s&&(i=i.replace(PO,"")),i=i.replace(/@\*/g,TC).replace(/@\w+/g,e=>TC+"-"+e.slice(1)).replace(/:animating/g,$x),[i,s]}(s.selector);e.currentQuerySelector=t.length?t+" "+d:d,ka(e.collectedStyles,e.currentQuerySelector,new Map);const c=La(this,r_(s.animation),e);return e.currentQuery=null,e.currentQuerySelector=t,{type:11,selector:d,limit:r.limit||0,optional:!!r.optional,includeSelf:h,animation:c,originalSelector:s.selector,options:ju(s.options)}}visitStagger(s,e){e.currentQuery||e.errors.push(function WI(){return new n.vHH(3013,!1)}());const t="full"===s.timings?{duration:0,delay:0,easing:"full"}:xC(s.timings,e.errors,!0);return{type:12,animation:La(this,r_(s.animation),e),timings:t,options:null}}}class IO{constructor(s){this.errors=s,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function ju(i){return i?(i=i_(i)).params&&(i.params=function LO(i){return i?i_(i):null}(i.params)):i={},i}function Xx(i,s,e){return{duration:i,delay:s,easing:e}}function eS(i,s,e,t,r,d,h=null,c=!1){return{type:1,element:i,keyframes:s,preStyleProps:e,postStyleProps:t,duration:r,delay:d,totalTime:r+d,easing:h,subTimeline:c}}class kC{constructor(){this._map=new Map}get(s){return this._map.get(s)||[]}append(s,e){let t=this._map.get(s);t||this._map.set(s,t=[]),t.push(...e)}has(s){return this._map.has(s)}clear(){this._map.clear()}}const UO=new RegExp(":enter","g"),FO=new RegExp(":leave","g");function tS(i,s,e,t,r,d=new Map,h=new Map,c,o,a=[]){return(new YO).buildKeyframes(i,s,e,t,r,d,h,c,o,a)}class YO{buildKeyframes(s,e,t,r,d,h,c,o,a,l=[]){a=a||new kC;const u=new nS(s,e,a,r,d,l,[]);u.options=o;const p=o.delay?od(o.delay):0;u.currentTimeline.delayNextStep(p),u.currentTimeline.setStyles([h],null,u.errors,o),La(this,t,u);const m=u.timelines.filter(g=>g.containsAnimation());if(m.length&&c.size){let g;for(let f=m.length-1;f>=0;f--){const y=m[f];if(y.element===e){g=y;break}}g&&!g.allowOnlyTimelineStyles()&&g.setStyles([c],null,u.errors,o)}return m.length?m.map(g=>g.buildKeyframes()):[eS(e,[],[],[],0,p,"",!1)]}visitTrigger(s,e){}visitState(s,e){}visitTransition(s,e){}visitAnimateChild(s,e){const t=e.subInstructions.get(e.element);if(t){const r=e.createSubContext(s.options),d=e.currentTimeline.currentTime,h=this._visitSubInstructions(t,r,r.options);d!=h&&e.transformIntoNewTimeline(h)}e.previousNode=s}visitAnimateRef(s,e){const t=e.createSubContext(s.options);t.transformIntoNewTimeline(),this.visitReference(s.animation,t),e.transformIntoNewTimeline(t.currentTimeline.currentTime),e.previousNode=s}_visitSubInstructions(s,e,t){let d=e.currentTimeline.currentTime;const h=null!=t.duration?od(t.duration):null,c=null!=t.delay?od(t.delay):null;return 0!==h&&s.forEach(o=>{const a=e.appendInstructionToTimeline(o,h,c);d=Math.max(d,a.duration+a.delay)}),d}visitReference(s,e){e.updateOptions(s.options,!0),La(this,s.animation,e),e.previousNode=s}visitSequence(s,e){const t=e.subContextCount;let r=e;const d=s.options;if(d&&(d.params||d.delay)&&(r=e.createSubContext(d),r.transformIntoNewTimeline(),null!=d.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=LC);const h=od(d.delay);r.delayNextStep(h)}s.steps.length&&(s.steps.forEach(h=>La(this,h,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>t&&r.transformIntoNewTimeline()),e.previousNode=s}visitGroup(s,e){const t=[];let r=e.currentTimeline.currentTime;const d=s.options&&s.options.delay?od(s.options.delay):0;s.steps.forEach(h=>{const c=e.createSubContext(s.options);d&&c.delayNextStep(d),La(this,h,c),r=Math.max(r,c.currentTimeline.currentTime),t.push(c.currentTimeline)}),t.forEach(h=>e.currentTimeline.mergeTimelineCollectedStyles(h)),e.transformIntoNewTimeline(r),e.previousNode=s}_visitTiming(s,e){if(s.dynamic){const t=s.strValue;return xC(e.params?SC(t,e.params,e.errors):t,e.errors)}return{duration:s.duration,delay:s.delay,easing:s.easing}}visitAnimate(s,e){const t=e.currentAnimateTimings=this._visitTiming(s.timings,e),r=e.currentTimeline;t.delay&&(e.incrementTime(t.delay),r.snapshotCurrentStyles());const d=s.style;5==d.type?this.visitKeyframes(d,e):(e.incrementTime(t.duration),this.visitStyle(d,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=s}visitStyle(s,e){const t=e.currentTimeline,r=e.currentAnimateTimings;!r&&t.hasCurrentStyleProperties()&&t.forwardFrame();const d=r&&r.easing||s.easing;s.isEmptyStep?t.applyEmptyStep(d):t.setStyles(s.styles,d,e.errors,e.options),e.previousNode=s}visitKeyframes(s,e){const t=e.currentAnimateTimings,r=e.currentTimeline.duration,d=t.duration,c=e.createSubContext().currentTimeline;c.easing=t.easing,s.styles.forEach(o=>{c.forwardTime((o.offset||0)*d),c.setStyles(o.styles,o.easing,e.errors,e.options),c.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(c),e.transformIntoNewTimeline(r+d),e.previousNode=s}visitQuery(s,e){const t=e.currentTimeline.currentTime,r=s.options||{},d=r.delay?od(r.delay):0;d&&(6===e.previousNode.type||0==t&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=LC);let h=t;const c=e.invokeQuery(s.selector,s.originalSelector,s.limit,s.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=c.length;let o=null;c.forEach((a,l)=>{e.currentQueryIndex=l;const u=e.createSubContext(s.options,a);d&&u.delayNextStep(d),a===e.element&&(o=u.currentTimeline),La(this,s.animation,u),u.currentTimeline.applyStylesToKeyframe(),h=Math.max(h,u.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(h),o&&(e.currentTimeline.mergeTimelineCollectedStyles(o),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=s}visitStagger(s,e){const t=e.parentContext,r=e.currentTimeline,d=s.timings,h=Math.abs(d.duration),c=h*(e.currentQueryTotal-1);let o=h*e.currentQueryIndex;switch(d.duration<0?"reverse":d.easing){case"reverse":o=c-o;break;case"full":o=t.currentStaggerTime}const l=e.currentTimeline;o&&l.delayNextStep(o);const u=l.currentTime;La(this,s.animation,e),e.previousNode=s,t.currentStaggerTime=r.currentTime-u+(r.startTime-t.currentTimeline.startTime)}}const LC={};class nS{constructor(s,e,t,r,d,h,c,o){this._driver=s,this.element=e,this.subInstructions=t,this._enterClassName=r,this._leaveClassName=d,this.errors=h,this.timelines=c,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=LC,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=o||new IC(this._driver,e,0),c.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(s,e){if(!s)return;const t=s;let r=this.options;null!=t.duration&&(r.duration=od(t.duration)),null!=t.delay&&(r.delay=od(t.delay));const d=t.params;if(d){let h=r.params;h||(h=this.options.params={}),Object.keys(d).forEach(c=>{(!e||!h.hasOwnProperty(c))&&(h[c]=SC(d[c],h,this.errors))})}}_copyOptions(){const s={};if(this.options){const e=this.options.params;if(e){const t=s.params={};Object.keys(e).forEach(r=>{t[r]=e[r]})}}return s}createSubContext(s=null,e,t){const r=e||this.element,d=new nS(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,t||0));return d.previousNode=this.previousNode,d.currentAnimateTimings=this.currentAnimateTimings,d.options=this._copyOptions(),d.updateOptions(s),d.currentQueryIndex=this.currentQueryIndex,d.currentQueryTotal=this.currentQueryTotal,d.parentContext=this,this.subContextCount++,d}transformIntoNewTimeline(s){return this.previousNode=LC,this.currentTimeline=this.currentTimeline.fork(this.element,s),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(s,e,t){const r={duration:e??s.duration,delay:this.currentTimeline.currentTime+(t??0)+s.delay,easing:""},d=new qO(this._driver,s.element,s.keyframes,s.preStyleProps,s.postStyleProps,r,s.stretchStartingKeyframe);return this.timelines.push(d),r}incrementTime(s){this.currentTimeline.forwardTime(this.currentTimeline.duration+s)}delayNextStep(s){s>0&&this.currentTimeline.delayNextStep(s)}invokeQuery(s,e,t,r,d,h){let c=[];if(r&&c.push(this.element),s.length>0){s=(s=s.replace(UO,"."+this._enterClassName)).replace(FO,"."+this._leaveClassName);let a=this._driver.query(this.element,s,1!=t);0!==t&&(a=t<0?a.slice(a.length+t,a.length):a.slice(0,t)),c.push(...a)}return!d&&0==c.length&&h.push(function $I(i){return new n.vHH(3014,!1)}()),c}}class IC{constructor(s,e,t,r){this._driver=s,this.element=e,this.startTime=t,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),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.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(s){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+s),e&&this.snapshotCurrentStyles()):this.startTime+=s}fork(s,e){return this.applyStylesToKeyframe(),new IC(this._driver,s,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(s){this.applyStylesToKeyframe(),this.duration=s,this._loadKeyframe()}_updateStyle(s,e){this._localTimelineStyles.set(s,e),this._globalTimelineStyles.set(s,e),this._styleSummary.set(s,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(s){s&&this._previousKeyframe.set("easing",s);for(let[e,t]of this._globalTimelineStyles)this._backFill.set(e,t||yo),this._currentKeyframe.set(e,yo);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(s,e,t,r){e&&this._previousKeyframe.set("easing",e);const d=r&&r.params||{},h=function zO(i,s){const e=new Map;let t;return i.forEach(r=>{if("*"===r){t=t||s.keys();for(let d of t)e.set(d,yo)}else ld(r,e)}),e}(s,this._globalTimelineStyles);for(let[c,o]of h){const a=SC(o,d,t);this._pendingStyles.set(c,a),this._localTimelineStyles.has(c)||this._backFill.set(c,this._globalTimelineStyles.get(c)??yo),this._updateStyle(c,a)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((s,e)=>{this._currentKeyframe.set(e,s)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((s,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,s)}))}snapshotCurrentStyles(){for(let[s,e]of this._localTimelineStyles)this._pendingStyles.set(s,e),this._updateStyle(s,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const s=[];for(let e in this._currentKeyframe)s.push(e);return s}mergeTimelineCollectedStyles(s){s._styleSummary.forEach((e,t)=>{const r=this._styleSummary.get(t);(!r||e.time>r.time)&&this._updateStyle(t,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const s=new Set,e=new Set,t=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((c,o)=>{const a=ld(c,new Map,this._backFill);a.forEach((l,u)=>{"!"===l?s.add(u):l===yo&&e.add(u)}),t||a.set("offset",o/this.duration),r.push(a)});const d=s.size?MC(s.values()):[],h=e.size?MC(e.values()):[];if(t){const c=r[0],o=new Map(c);c.set("offset",0),o.set("offset",1),r=[c,o]}return eS(this.element,r,d,h,this.duration,this.startTime,this.easing,!1)}}class qO extends IC{constructor(s,e,t,r,d,h,c=!1){super(s,e,h.delay),this.keyframes=t,this.preStyleProps=r,this.postStyleProps=d,this._stretchStartingKeyframe=c,this.timings={duration:h.duration,delay:h.delay,easing:h.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let s=this.keyframes,{delay:e,duration:t,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const d=[],h=t+e,c=e/h,o=ld(s[0]);o.set("offset",0),d.push(o);const a=ld(s[0]);a.set("offset",FD(c)),d.push(a);const l=s.length-1;for(let u=1;u<=l;u++){let p=ld(s[u]);const m=p.get("offset");p.set("offset",FD((e+m*t)/h)),d.push(p)}t=h,e=0,r="",s=d}return eS(this.element,s,this.preStyleProps,this.postStyleProps,t,e,r,!0)}}function FD(i,s=3){const e=Math.pow(10,s-1);return Math.round(i*e)/e}class iS{}const GO=new Set(["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"]);class WO extends iS{normalizePropertyName(s,e){return Qx(s)}normalizeStyleValue(s,e,t,r){let d="";const h=t.toString().trim();if(GO.has(e)&&0!==t&&"0"!==t)if("number"==typeof t)d="px";else{const c=t.match(/^[+-]?[\d\.]+([a-z]*)$/);c&&0==c[1].length&&r.push(function BI(i,s){return new n.vHH(3005,!1)}())}return h+d}}function YD(i,s,e,t,r,d,h,c,o,a,l,u,p){return{type:0,element:i,triggerName:s,isRemovalTransition:r,fromState:e,fromStyles:d,toState:t,toStyles:h,timelines:c,queriedElements:o,preStyleProps:a,postStyleProps:l,totalTime:u,errors:p}}const rS={};class qD{constructor(s,e,t){this._triggerName=s,this.ast=e,this._stateStyles=t}match(s,e,t,r){return function $O(i,s,e,t,r){return i.some(d=>d(s,e,t,r))}(this.ast.matchers,s,e,t,r)}buildStyles(s,e,t){let r=this._stateStyles.get("*");return void 0!==s&&(r=this._stateStyles.get(s?.toString())||r),r?r.buildStyles(e,t):new Map}build(s,e,t,r,d,h,c,o,a,l){const u=[],p=this.ast.options&&this.ast.options.params||rS,g=this.buildStyles(t,c&&c.params||rS,u),f=o&&o.params||rS,y=this.buildStyles(r,f,u),j=new Set,le=new Map,Be=new Map,St="void"===r,xi={params:JO(f,p),delay:this.ast.options?.delay},Xn=l?[]:tS(s,e,this.ast.animation,d,h,g,y,xi,a,u);let pi=0;if(Xn.forEach(ls=>{pi=Math.max(ls.duration+ls.delay,pi)}),u.length)return YD(e,this._triggerName,t,r,St,g,y,[],[],le,Be,pi,u);Xn.forEach(ls=>{const Jl=ls.element,GH=ka(le,Jl,new Set);ls.preStyleProps.forEach(Fu=>GH.add(Fu));const b_=ka(Be,Jl,new Set);ls.postStyleProps.forEach(Fu=>b_.add(Fu)),Jl!==e&&j.add(Jl)});const Or=MC(j.values());return YD(e,this._triggerName,t,r,St,g,y,Xn,Or,le,Be,pi)}}function JO(i,s){const e=i_(s);for(const t in i)i.hasOwnProperty(t)&&null!=i[t]&&(e[t]=i[t]);return e}class ZO{constructor(s,e,t){this.styles=s,this.defaultParams=e,this.normalizer=t}buildStyles(s,e){const t=new Map,r=i_(this.defaultParams);return Object.keys(s).forEach(d=>{const h=s[d];null!==h&&(r[d]=h)}),this.styles.styles.forEach(d=>{"string"!=typeof d&&d.forEach((h,c)=>{h&&(h=SC(h,r,e));const o=this.normalizer.normalizePropertyName(c,e);h=this.normalizer.normalizeStyleValue(c,o,h,e),t.set(o,h)})}),t}}class KO{constructor(s,e,t){this.name=s,this.ast=e,this._normalizer=t,this.transitionFactories=[],this.states=new Map,e.states.forEach(r=>{this.states.set(r.name,new ZO(r.style,r.options&&r.options.params||{},t))}),zD(this.states,"true","1"),zD(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new qD(s,r,this.states))}),this.fallbackTransition=function XO(i,s,e){return new qD(i,{type:1,animation:{type:2,steps:[],options:null},matchers:[(h,c)=>!0],options:null,queryCount:0,depCount:0},s)}(s,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(s,e,t,r){return this.transitionFactories.find(h=>h.match(s,e,t,r))||null}matchStyles(s,e,t){return this.fallbackTransition.buildStyles(s,e,t)}}function zD(i,s,e){i.has(s)?i.has(e)||i.set(e,i.get(s)):i.has(e)&&i.set(s,i.get(e))}const eB=new kC;class tB{constructor(s,e,t){this.bodyNode=s,this._driver=e,this._normalizer=t,this._animations=new Map,this._playersById=new Map,this.players=[]}register(s,e){const t=[],d=Kx(this._driver,e,t,[]);if(t.length)throw function tO(i){return new n.vHH(3503,!1)}();this._animations.set(s,d)}_buildPlayer(s,e,t){const r=s.element,d=vD(0,this._normalizer,0,s.keyframes,e,t);return this._driver.animate(r,d,s.duration,s.delay,s.easing,[],!0)}create(s,e,t={}){const r=[],d=this._animations.get(s);let h;const c=new Map;if(d?(h=tS(this._driver,e,d,Wx,AC,new Map,new Map,t,eB,r),h.forEach(l=>{const u=ka(c,l.element,new Map);l.postStyleProps.forEach(p=>u.set(p,null))})):(r.push(function nO(){return new n.vHH(3300,!1)}()),h=[]),r.length)throw function iO(i){return new n.vHH(3504,!1)}();c.forEach((l,u)=>{l.forEach((p,m)=>{l.set(m,this._driver.computeStyle(u,m,yo))})});const a=sd(h.map(l=>{const u=c.get(l.element);return this._buildPlayer(l,new Map,u)}));return this._playersById.set(s,a),a.onDestroy(()=>this.destroy(s)),this.players.push(a),a}destroy(s){const e=this._getPlayer(s);e.destroy(),this._playersById.delete(s);const t=this.players.indexOf(e);t>=0&&this.players.splice(t,1)}_getPlayer(s){const e=this._playersById.get(s);if(!e)throw function rO(i){return new n.vHH(3301,!1)}();return e}listen(s,e,t,r){const d=Yx(e,"","","");return Nx(this._getPlayer(s),t,d,r),()=>{}}command(s,e,t,r){if("register"==t)return void this.register(s,r[0]);if("create"==t)return void this.create(s,e,r[0]||{});const d=this._getPlayer(s);switch(t){case"play":d.play();break;case"pause":d.pause();break;case"reset":d.reset();break;case"restart":d.restart();break;case"finish":d.finish();break;case"init":d.init();break;case"setPosition":d.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(s)}}}const GD="ng-animate-queued",aS="ng-animate-disabled",sB=[],WD={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},oB={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ss="__ng_removed";class sS{constructor(s,e=""){this.namespaceId=e;const t=s&&s.hasOwnProperty("value");if(this.value=function uB(i){return i??null}(t?s.value:s),t){const d=i_(s);delete d.value,this.options=d}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(s){const e=s.params;if(e){const t=this.options.params;Object.keys(e).forEach(r=>{null==t[r]&&(t[r]=e[r])})}}}const a_="void",oS=new sS(a_);class lB{constructor(s,e,t){this.id=s,this.hostElement=e,this._engine=t,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+s,os(e,this._hostClassName)}listen(s,e,t,r){if(!this._triggers.has(e))throw function aO(i,s){return new n.vHH(3302,!1)}();if(null==t||0==t.length)throw function sO(i){return new n.vHH(3303,!1)}();if(!function hB(i){return"start"==i||"done"==i}(t))throw function oO(i,s){return new n.vHH(3400,!1)}();const d=ka(this._elementListeners,s,[]),h={name:e,phase:t,callback:r};d.push(h);const c=ka(this._engine.statesByElement,s,new Map);return c.has(e)||(os(s,vC),os(s,vC+"-"+e),c.set(e,oS)),()=>{this._engine.afterFlush(()=>{const o=d.indexOf(h);o>=0&&d.splice(o,1),this._triggers.has(e)||c.delete(e)})}}register(s,e){return!this._triggers.has(s)&&(this._triggers.set(s,e),!0)}_getTrigger(s){const e=this._triggers.get(s);if(!e)throw function lO(i){return new n.vHH(3401,!1)}();return e}trigger(s,e,t,r=!0){const d=this._getTrigger(e),h=new lS(this.id,e,s);let c=this._engine.statesByElement.get(s);c||(os(s,vC),os(s,vC+"-"+e),this._engine.statesByElement.set(s,c=new Map));let o=c.get(e);const a=new sS(t,this.id);if(!(t&&t.hasOwnProperty("value"))&&o&&a.absorbOptions(o.options),c.set(e,a),o||(o=oS),a.value!==a_&&o.value===a.value){if(!function mB(i,s){const e=Object.keys(i),t=Object.keys(s);if(e.length!=t.length)return!1;for(let r=0;r{Vu(s,y),Ro(s,j)})}return}const p=ka(this._engine.playersByElement,s,[]);p.forEach(f=>{f.namespaceId==this.id&&f.triggerName==e&&f.queued&&f.destroy()});let m=d.matchTransition(o.value,a.value,s,a.params),g=!1;if(!m){if(!r)return;m=d.fallbackTransition,g=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:s,triggerName:e,transition:m,fromState:o,toState:a,player:h,isFallbackTransition:g}),g||(os(s,GD),h.onStart(()=>{ef(s,GD)})),h.onDone(()=>{let f=this.players.indexOf(h);f>=0&&this.players.splice(f,1);const y=this._engine.playersByElement.get(s);if(y){let j=y.indexOf(h);j>=0&&y.splice(j,1)}}),this.players.push(h),p.push(h),h}deregister(s){this._triggers.delete(s),this._engine.statesByElement.forEach(e=>e.delete(s)),this._elementListeners.forEach((e,t)=>{this._elementListeners.set(t,e.filter(r=>r.name!=s))})}clearElementCache(s){this._engine.statesByElement.delete(s),this._elementListeners.delete(s);const e=this._engine.playersByElement.get(s);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(s))}_signalRemovalForInnerTriggers(s,e){const t=this._engine.driver.query(s,TC,!0);t.forEach(r=>{if(r[ss])return;const d=this._engine.fetchNamespacesByElement(r);d.size?d.forEach(h=>h.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>t.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(s,e,t,r){const d=this._engine.statesByElement.get(s),h=new Map;if(d){const c=[];if(d.forEach((o,a)=>{if(h.set(a,o.value),this._triggers.has(a)){const l=this.trigger(s,a,a_,r);l&&c.push(l)}}),c.length)return this._engine.markElementAsRemoved(this.id,s,!0,e,h),t&&sd(c).onDone(()=>this._engine.processLeaveNode(s)),!0}return!1}prepareLeaveAnimationListeners(s){const e=this._elementListeners.get(s),t=this._engine.statesByElement.get(s);if(e&&t){const r=new Set;e.forEach(d=>{const h=d.name;if(r.has(h))return;r.add(h);const o=this._triggers.get(h).fallbackTransition,a=t.get(h)||oS,l=new sS(a_),u=new lS(this.id,h,s);this._engine.totalQueuedPlayers++,this._queue.push({element:s,triggerName:h,transition:o,fromState:a,toState:l,player:u,isFallbackTransition:!0})})}}removeNode(s,e){const t=this._engine;if(s.childElementCount&&this._signalRemovalForInnerTriggers(s,e),this.triggerLeaveAnimation(s,e,!0))return;let r=!1;if(t.totalAnimations){const d=t.players.length?t.playersByQueriedElement.get(s):[];if(d&&d.length)r=!0;else{let h=s;for(;h=h.parentNode;)if(t.statesByElement.get(h)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(s),r)t.markElementAsRemoved(this.id,s,!1,e);else{const d=s[ss];(!d||d===WD)&&(t.afterFlush(()=>this.clearElementCache(s)),t.destroyInnerAnimations(s),t._onRemovalComplete(s,e))}}insertNode(s,e){os(s,this._hostClassName)}drainQueuedTransitions(s){const e=[];return this._queue.forEach(t=>{const r=t.player;if(r.destroyed)return;const d=t.element,h=this._elementListeners.get(d);h&&h.forEach(c=>{if(c.name==t.triggerName){const o=Yx(d,t.triggerName,t.fromState.value,t.toState.value);o._data=s,Nx(t.player,c.phase,o,c.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(t)}),this._queue=[],e.sort((t,r)=>{const d=t.transition.ast.depCount,h=r.transition.ast.depCount;return 0==d||0==h?d-h:this._engine.driver.containsElement(t.element,r.element)?1:-1})}destroy(s){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,s)}elementContainsData(s){let e=!1;return this._elementListeners.has(s)&&(e=!0),e=!!this._queue.find(t=>t.element===s)||e,e}}class cB{constructor(s,e,t){this.bodyNode=s,this.driver=e,this._normalizer=t,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=(r,d)=>{}}_onRemovalComplete(s,e){this.onRemovalComplete(s,e)}get queuedPlayers(){const s=[];return this._namespaceList.forEach(e=>{e.players.forEach(t=>{t.queued&&s.push(t)})}),s}createNamespace(s,e){const t=new lB(s,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(t,e):(this.newHostElements.set(e,t),this.collectEnterElement(e)),this._namespaceLookup[s]=t}_balanceNamespaceList(s,e){const t=this._namespaceList,r=this.namespacesByHostElement;if(t.length-1>=0){let h=!1,c=this.driver.getParentElement(e);for(;c;){const o=r.get(c);if(o){const a=t.indexOf(o);t.splice(a+1,0,s),h=!0;break}c=this.driver.getParentElement(c)}h||t.unshift(s)}else t.push(s);return r.set(e,s),s}register(s,e){let t=this._namespaceLookup[s];return t||(t=this.createNamespace(s,e)),t}registerTrigger(s,e,t){let r=this._namespaceLookup[s];r&&r.register(e,t)&&this.totalAnimations++}destroy(s,e){if(!s)return;const t=this._fetchNamespace(s);this.afterFlush(()=>{this.namespacesByHostElement.delete(t.hostElement),delete this._namespaceLookup[s];const r=this._namespaceList.indexOf(t);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>t.destroy(e))}_fetchNamespace(s){return this._namespaceLookup[s]}fetchNamespacesByElement(s){const e=new Set,t=this.statesByElement.get(s);if(t)for(let r of t.values())if(r.namespaceId){const d=this._fetchNamespace(r.namespaceId);d&&e.add(d)}return e}trigger(s,e,t,r){if(OC(e)){const d=this._fetchNamespace(s);if(d)return d.trigger(e,t,r),!0}return!1}insertNode(s,e,t,r){if(!OC(e))return;const d=e[ss];if(d&&d.setForRemoval){d.setForRemoval=!1,d.setForMove=!0;const h=this.collectedLeaveElements.indexOf(e);h>=0&&this.collectedLeaveElements.splice(h,1)}if(s){const h=this._fetchNamespace(s);h&&h.insertNode(e,t)}r&&this.collectEnterElement(e)}collectEnterElement(s){this.collectedEnterElements.push(s)}markElementAsDisabled(s,e){e?this.disabledNodes.has(s)||(this.disabledNodes.add(s),os(s,aS)):this.disabledNodes.has(s)&&(this.disabledNodes.delete(s),ef(s,aS))}removeNode(s,e,t,r){if(OC(e)){const d=s?this._fetchNamespace(s):null;if(d?d.removeNode(e,r):this.markElementAsRemoved(s,e,!1,r),t){const h=this.namespacesByHostElement.get(e);h&&h.id!==s&&h.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(s,e,t,r,d){this.collectedLeaveElements.push(e),e[ss]={namespaceId:s,setForRemoval:r,hasAnimation:t,removedBeforeQueried:!1,previousTriggersValues:d}}listen(s,e,t,r,d){return OC(e)?this._fetchNamespace(s).listen(e,t,r,d):()=>{}}_buildInstruction(s,e,t,r,d){return s.transition.build(this.driver,s.element,s.fromState.value,s.toState.value,t,r,s.fromState.options,s.toState.options,e,d)}destroyInnerAnimations(s){let e=this.driver.query(s,TC,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(s,$x,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(s){const e=this.playersByElement.get(s);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(s){const e=this.playersByQueriedElement.get(s);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(s=>{if(this.players.length)return sd(this.players).onDone(()=>s());s()})}processLeaveNode(s){const e=s[ss];if(e&&e.setForRemoval){if(s[ss]=WD,e.namespaceId){this.destroyInnerAnimations(s);const t=this._fetchNamespace(e.namespaceId);t&&t.clearElementCache(s)}this._onRemovalComplete(s,e.setForRemoval)}s.classList?.contains(aS)&&this.markElementAsDisabled(s,!1),this.driver.query(s,".ng-animate-disabled",!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(s=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,r)=>this._balanceNamespaceList(t,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let t=0;tt()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?sd(e).onDone(()=>{t.forEach(r=>r())}):t.forEach(r=>r())}}reportError(s){throw function cO(i){return new n.vHH(3402,!1)}()}_flushAnimations(s,e){const t=new kC,r=[],d=new Map,h=[],c=new Map,o=new Map,a=new Map,l=new Set;this.disabledNodes.forEach(ot=>{l.add(ot);const Ct=this.driver.query(ot,".ng-animate-queued",!0);for(let Mt=0;Mt{const Mt=Wx+f++;g.set(Ct,Mt),ot.forEach(an=>os(an,Mt))});const y=[],j=new Set,le=new Set;for(let ot=0;otj.add(an)):le.add(Ct))}const Be=new Map,St=ZD(p,Array.from(j));St.forEach((ot,Ct)=>{const Mt=AC+f++;Be.set(Ct,Mt),ot.forEach(an=>os(an,Mt))}),s.push(()=>{m.forEach((ot,Ct)=>{const Mt=g.get(Ct);ot.forEach(an=>ef(an,Mt))}),St.forEach((ot,Ct)=>{const Mt=Be.get(Ct);ot.forEach(an=>ef(an,Mt))}),y.forEach(ot=>{this.processLeaveNode(ot)})});const xi=[],Xn=[];for(let ot=this._namespaceList.length-1;ot>=0;ot--)this._namespaceList[ot].drainQueuedTransitions(e).forEach(Mt=>{const an=Mt.player,Zi=Mt.element;if(xi.push(an),this.collectedEnterElements.length){const yr=Zi[ss];if(yr&&yr.setForMove){if(yr.previousTriggersValues&&yr.previousTriggersValues.has(Mt.triggerName)){const Yu=yr.previousTriggersValues.get(Mt.triggerName),cs=this.statesByElement.get(Mt.element);if(cs&&cs.has(Mt.triggerName)){const XC=cs.get(Mt.triggerName);XC.value=Yu,cs.set(Mt.triggerName,XC)}}return void an.destroy()}}const Lo=!u||!this.driver.containsElement(u,Zi),Ba=Be.get(Zi),hd=g.get(Zi),li=this._buildInstruction(Mt,t,hd,Ba,Lo);if(li.errors&&li.errors.length)return void Xn.push(li);if(Lo)return an.onStart(()=>Vu(Zi,li.fromStyles)),an.onDestroy(()=>Ro(Zi,li.toStyles)),void r.push(an);if(Mt.isFallbackTransition)return an.onStart(()=>Vu(Zi,li.fromStyles)),an.onDestroy(()=>Ro(Zi,li.toStyles)),void r.push(an);const JH=[];li.timelines.forEach(yr=>{yr.stretchStartingKeyframe=!0,this.disabledNodes.has(yr.element)||JH.push(yr)}),li.timelines=JH,t.append(Zi,li.timelines),h.push({instruction:li,player:an,element:Zi}),li.queriedElements.forEach(yr=>ka(c,yr,[]).push(an)),li.preStyleProps.forEach((yr,Yu)=>{if(yr.size){let cs=o.get(Yu);cs||o.set(Yu,cs=new Set),yr.forEach((XC,FS)=>cs.add(FS))}}),li.postStyleProps.forEach((yr,Yu)=>{let cs=a.get(Yu);cs||a.set(Yu,cs=new Set),yr.forEach((XC,FS)=>cs.add(FS))})});if(Xn.length){const ot=[];Xn.forEach(Ct=>{ot.push(function dO(i,s){return new n.vHH(3505,!1)}())}),xi.forEach(Ct=>Ct.destroy()),this.reportError(ot)}const pi=new Map,Or=new Map;h.forEach(ot=>{const Ct=ot.element;t.has(Ct)&&(Or.set(Ct,Ct),this._beforeAnimationBuild(ot.player.namespaceId,ot.instruction,pi))}),r.forEach(ot=>{const Ct=ot.element;this._getPreviousPlayers(Ct,!1,ot.namespaceId,ot.triggerName,null).forEach(an=>{ka(pi,Ct,[]).push(an),an.destroy()})});const ls=y.filter(ot=>KD(ot,o,a)),Jl=new Map;JD(Jl,this.driver,le,a,yo).forEach(ot=>{KD(ot,o,a)&&ls.push(ot)});const b_=new Map;m.forEach((ot,Ct)=>{JD(b_,this.driver,new Set(ot),o,"!")}),ls.forEach(ot=>{const Ct=Jl.get(ot),Mt=b_.get(ot);Jl.set(ot,new Map([...Array.from(Ct?.entries()??[]),...Array.from(Mt?.entries()??[])]))});const Fu=[],WH=[],$H={};h.forEach(ot=>{const{element:Ct,player:Mt,instruction:an}=ot;if(t.has(Ct)){if(l.has(Ct))return Mt.onDestroy(()=>Ro(Ct,an.toStyles)),Mt.disabled=!0,Mt.overrideTotalTime(an.totalTime),void r.push(Mt);let Zi=$H;if(Or.size>1){let Ba=Ct;const hd=[];for(;Ba=Ba.parentNode;){const li=Or.get(Ba);if(li){Zi=li;break}hd.push(Ba)}hd.forEach(li=>Or.set(li,Zi))}const Lo=this._buildAnimation(Mt.namespaceId,an,pi,d,b_,Jl);if(Mt.setRealPlayer(Lo),Zi===$H)Fu.push(Mt);else{const Ba=this.playersByElement.get(Zi);Ba&&Ba.length&&(Mt.parentPlayer=sd(Ba)),r.push(Mt)}}else Vu(Ct,an.fromStyles),Mt.onDestroy(()=>Ro(Ct,an.toStyles)),WH.push(Mt),l.has(Ct)&&r.push(Mt)}),WH.forEach(ot=>{const Ct=d.get(ot.element);if(Ct&&Ct.length){const Mt=sd(Ct);ot.setRealPlayer(Mt)}}),r.forEach(ot=>{ot.parentPlayer?ot.syncPlayerEvents(ot.parentPlayer):ot.destroy()});for(let ot=0;ot!Lo.destroyed);Zi.length?pB(this,Ct,Zi):this.processLeaveNode(Ct)}return y.length=0,Fu.forEach(ot=>{this.players.push(ot),ot.onDone(()=>{ot.destroy();const Ct=this.players.indexOf(ot);this.players.splice(Ct,1)}),ot.play()}),Fu}elementContainsData(s,e){let t=!1;const r=e[ss];return r&&r.setForRemoval&&(t=!0),this.playersByElement.has(e)&&(t=!0),this.playersByQueriedElement.has(e)&&(t=!0),this.statesByElement.has(e)&&(t=!0),this._fetchNamespace(s).elementContainsData(e)||t}afterFlush(s){this._flushFns.push(s)}afterFlushAnimationsDone(s){this._whenQuietFns.push(s)}_getPreviousPlayers(s,e,t,r,d){let h=[];if(e){const c=this.playersByQueriedElement.get(s);c&&(h=c)}else{const c=this.playersByElement.get(s);if(c){const o=!d||d==a_;c.forEach(a=>{a.queued||!o&&a.triggerName!=r||h.push(a)})}}return(t||r)&&(h=h.filter(c=>!(t&&t!=c.namespaceId||r&&r!=c.triggerName))),h}_beforeAnimationBuild(s,e,t){const d=e.element,h=e.isRemovalTransition?void 0:s,c=e.isRemovalTransition?void 0:e.triggerName;for(const o of e.timelines){const a=o.element,l=a!==d,u=ka(t,a,[]);this._getPreviousPlayers(a,l,h,c,e.toState).forEach(m=>{const g=m.getRealPlayer();g.beforeDestroy&&g.beforeDestroy(),m.destroy(),u.push(m)})}Vu(d,e.fromStyles)}_buildAnimation(s,e,t,r,d,h){const c=e.triggerName,o=e.element,a=[],l=new Set,u=new Set,p=e.timelines.map(g=>{const f=g.element;l.add(f);const y=f[ss];if(y&&y.removedBeforeQueried)return new gu(g.duration,g.delay);const j=f!==o,le=function fB(i){const s=[];return QD(i,s),s}((t.get(f)||sB).map(pi=>pi.getRealPlayer())).filter(pi=>!!pi.element&&pi.element===f),Be=d.get(f),St=h.get(f),xi=vD(0,this._normalizer,0,g.keyframes,Be,St),Xn=this._buildPlayer(g,xi,le);if(g.subTimeline&&r&&u.add(f),j){const pi=new lS(s,c,f);pi.setRealPlayer(Xn),a.push(pi)}return Xn});a.forEach(g=>{ka(this.playersByQueriedElement,g.element,[]).push(g),g.onDone(()=>function dB(i,s,e){let t=i.get(s);if(t){if(t.length){const r=t.indexOf(e);t.splice(r,1)}0==t.length&&i.delete(s)}return t}(this.playersByQueriedElement,g.element,g))}),l.forEach(g=>os(g,RD));const m=sd(p);return m.onDestroy(()=>{l.forEach(g=>ef(g,RD)),Ro(o,e.toStyles)}),u.forEach(g=>{ka(r,g,[]).push(m)}),m}_buildPlayer(s,e,t){return e.length>0?this.driver.animate(s.element,e,s.duration,s.delay,s.easing,t):new gu(s.duration,s.delay)}}class lS{constructor(s,e,t){this.namespaceId=s,this.triggerName=e,this.element=t,this._player=new gu,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(s){this._containsRealPlayer||(this._player=s,this._queuedCallbacks.forEach((e,t)=>{e.forEach(r=>Nx(s,t,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(s.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(s){this.totalTime=s}syncPlayerEvents(s){const e=this._player;e.triggerCallback&&s.onStart(()=>e.triggerCallback("start")),s.onDone(()=>this.finish()),s.onDestroy(()=>this.destroy())}_queueEvent(s,e){ka(this._queuedCallbacks,s,[]).push(e)}onDone(s){this.queued&&this._queueEvent("done",s),this._player.onDone(s)}onStart(s){this.queued&&this._queueEvent("start",s),this._player.onStart(s)}onDestroy(s){this.queued&&this._queueEvent("destroy",s),this._player.onDestroy(s)}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(s){this.queued||this._player.setPosition(s)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(s){const e=this._player;e.triggerCallback&&e.triggerCallback(s)}}function OC(i){return i&&1===i.nodeType}function $D(i,s){const e=i.style.display;return i.style.display=s??"none",e}function JD(i,s,e,t,r){const d=[];e.forEach(o=>d.push($D(o)));const h=[];t.forEach((o,a)=>{const l=new Map;o.forEach(u=>{const p=s.computeStyle(a,u,r);l.set(u,p),(!p||0==p.length)&&(a[ss]=oB,h.push(a))}),i.set(a,l)});let c=0;return e.forEach(o=>$D(o,d[c++])),h}function ZD(i,s){const e=new Map;if(i.forEach(c=>e.set(c,[])),0==s.length)return e;const r=new Set(s),d=new Map;function h(c){if(!c)return 1;let o=d.get(c);if(o)return o;const a=c.parentNode;return o=e.has(a)?a:r.has(a)?1:h(a),d.set(c,o),o}return s.forEach(c=>{const o=h(c);1!==o&&e.get(o).push(c)}),e}function os(i,s){i.classList?.add(s)}function ef(i,s){i.classList?.remove(s)}function pB(i,s,e){sd(e).onDone(()=>i.processLeaveNode(s))}function QD(i,s){for(let e=0;er.add(d)):s.set(i,t),e.delete(i),!0}class BC{constructor(s,e,t){this.bodyNode=s,this._driver=e,this._normalizer=t,this._triggerCache={},this.onRemovalComplete=(r,d)=>{},this._transitionEngine=new cB(s,e,t),this._timelineEngine=new tB(s,e,t),this._transitionEngine.onRemovalComplete=(r,d)=>this.onRemovalComplete(r,d)}registerTrigger(s,e,t,r,d){const h=s+"-"+r;let c=this._triggerCache[h];if(!c){const o=[],l=Kx(this._driver,d,o,[]);if(o.length)throw function XI(i,s){return new n.vHH(3404,!1)}();c=function QO(i,s,e){return new KO(i,s,e)}(r,l,this._normalizer),this._triggerCache[h]=c}this._transitionEngine.registerTrigger(e,r,c)}register(s,e){this._transitionEngine.register(s,e)}destroy(s,e){this._transitionEngine.destroy(s,e)}onInsert(s,e,t,r){this._transitionEngine.insertNode(s,e,t,r)}onRemove(s,e,t,r){this._transitionEngine.removeNode(s,e,r||!1,t)}disableAnimations(s,e){this._transitionEngine.markElementAsDisabled(s,e)}process(s,e,t,r){if("@"==t.charAt(0)){const[d,h]=TD(t);this._timelineEngine.command(d,e,h,r)}else this._transitionEngine.trigger(s,e,t,r)}listen(s,e,t,r,d){if("@"==t.charAt(0)){const[h,c]=TD(t);return this._timelineEngine.listen(h,e,c,d)}return this._transitionEngine.listen(s,e,t,r,d)}flush(s=-1){this._transitionEngine.flush(s)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let _B=(()=>{class i{constructor(e,t,r){this._element=e,this._startStyles=t,this._endStyles=r,this._state=0;let d=i.initialStylesByElement.get(e);d||i.initialStylesByElement.set(e,d=new Map),this._initialStyles=d}start(){this._state<1&&(this._startStyles&&Ro(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Ro(this._element,this._initialStyles),this._endStyles&&(Ro(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(i.initialStylesByElement.delete(this._element),this._startStyles&&(Vu(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Vu(this._element,this._endStyles),this._endStyles=null),Ro(this._element,this._initialStyles),this._state=3)}}return i.initialStylesByElement=new WeakMap,i})();function cS(i){let s=null;return i.forEach((e,t)=>{(function bB(i){return"display"===i||"position"===i})(t)&&(s=s||new Map,s.set(t,e))}),s}class XD{constructor(s,e,t,r){this.element=s,this.keyframes=e,this.options=t,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=t.duration,this._delay=t.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(s=>s()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const s=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,s,this.options),this._finalKeyframe=s.length?s[s.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(s){const e=[];return s.forEach(t=>{e.push(Object.fromEntries(t))}),e}_triggerWebAnimation(s,e,t){return s.animate(this._convertKeyframesToObject(e),t)}onStart(s){this._originalOnStartFns.push(s),this._onStartFns.push(s)}onDone(s){this._originalOnDoneFns.push(s),this._onDoneFns.push(s)}onDestroy(s){this._onDestroyFns.push(s)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(s=>s()),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,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_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(s=>s()),this._onDestroyFns=[])}setPosition(s){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=s*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const s=new Map;this.hasStarted()&&this._finalKeyframe.forEach((t,r)=>{"offset"!==r&&s.set(r,this._finished?t:VD(this.element,r))}),this.currentSnapshot=s}triggerCallback(s){const e="start"===s?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class wB{validateStyleProperty(s){return!0}validateAnimatableStyleProperty(s){return!0}matchesElement(s,e){return!1}containsElement(s,e){return ED(s,e)}getParentElement(s){return zx(s)}query(s,e,t){return DD(s,e,t)}computeStyle(s,e,t){return window.getComputedStyle(s)[e]}animate(s,e,t,r,d,h=[]){const o={duration:t,delay:r,fill:0==r?"both":"forwards"};d&&(o.easing=d);const a=new Map,l=h.filter(m=>m instanceof XD);(function vO(i,s){return 0===i||0===s})(t,r)&&l.forEach(m=>{m.currentSnapshot.forEach((g,f)=>a.set(f,g))});let u=function wO(i){return i.length?i[0]instanceof Map?i:i.map(s=>kD(s)):[]}(e).map(m=>ld(m));u=function TO(i,s,e){if(e.size&&s.length){let t=s[0],r=[];if(e.forEach((d,h)=>{t.has(h)||r.push(h),t.set(h,d)}),r.length)for(let d=1;dh.set(c,VD(i,c)))}}return s}(s,u,a);const p=function gB(i,s){let e=null,t=null;return Array.isArray(s)&&s.length?(e=cS(s[0]),s.length>1&&(t=cS(s[s.length-1]))):s instanceof Map&&(e=cS(s)),e||t?new _B(i,e,t):null}(s,u);return new XD(s,u,o,p)}}let yB=(()=>{class i extends km{constructor(e,t){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(t.body,{id:"0",encapsulation:n.ifc.None,styles:[],data:{animation:[]}})}build(e){const t=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?yw(e):e;return e1(this._renderer,null,t,"register",[r]),new CB(t,this._renderer)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(n.FYo),n.LFG(x.K0))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();class CB extends class ww{}{constructor(s,e){super(),this._id=s,this._renderer=e}create(s,e){return new AB(this._id,s,e||{},this._renderer)}}class AB{constructor(s,e,t,r){this.id=s,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",t)}_listen(s,e){return this._renderer.listen(this.element,`@@${this.id}:${s}`,e)}_command(s,...e){return e1(this._renderer,this.element,this.id,s,e)}onDone(s){this._listen("done",s)}onStart(s){this._listen("start",s)}onDestroy(s){this._listen("destroy",s)}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"),this._started=!1}setPosition(s){this._command("setPosition",s)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function e1(i,s,e,t,r){return i.setProperty(s,`@@${e}:${t}`,r)}const t1="@.disabled";let vB=(()=>{class i{constructor(e,t,r){this.delegate=e,this.engine=t,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),t.onRemovalComplete=(d,h)=>{const c=h?.parentNode(d);c&&h.removeChild(c,d)}}createRenderer(e,t){const d=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){let l=this._rendererCache.get(d);return l||(l=new n1("",d,this.engine),this._rendererCache.set(d,l)),l}const h=t.id,c=t.id+"-"+this._currentId;this._currentId++,this.engine.register(c,e);const o=l=>{Array.isArray(l)?l.forEach(o):this.engine.registerTrigger(h,c,e,l.name,l)};return t.data.animation.forEach(o),new TB(this,c,d,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,r){e>=0&&et(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(d=>{const[h,c]=d;h(c)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,r]))}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 i.\u0275fac=function(e){return new(e||i)(n.LFG(n.FYo),n.LFG(BC),n.LFG(n.R0b))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();class n1{constructor(s,e,t){this.namespaceId=s,this.delegate=e,this.engine=t,this.destroyNode=this.delegate.destroyNode?r=>e.destroyNode(r):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(s,e){return this.delegate.createElement(s,e)}createComment(s){return this.delegate.createComment(s)}createText(s){return this.delegate.createText(s)}appendChild(s,e){this.delegate.appendChild(s,e),this.engine.onInsert(this.namespaceId,e,s,!1)}insertBefore(s,e,t,r=!0){this.delegate.insertBefore(s,e,t),this.engine.onInsert(this.namespaceId,e,s,r)}removeChild(s,e,t){this.engine.onRemove(this.namespaceId,e,this.delegate,t)}selectRootElement(s,e){return this.delegate.selectRootElement(s,e)}parentNode(s){return this.delegate.parentNode(s)}nextSibling(s){return this.delegate.nextSibling(s)}setAttribute(s,e,t,r){this.delegate.setAttribute(s,e,t,r)}removeAttribute(s,e,t){this.delegate.removeAttribute(s,e,t)}addClass(s,e){this.delegate.addClass(s,e)}removeClass(s,e){this.delegate.removeClass(s,e)}setStyle(s,e,t,r){this.delegate.setStyle(s,e,t,r)}removeStyle(s,e,t){this.delegate.removeStyle(s,e,t)}setProperty(s,e,t){"@"==e.charAt(0)&&e==t1?this.disableAnimations(s,!!t):this.delegate.setProperty(s,e,t)}setValue(s,e){this.delegate.setValue(s,e)}listen(s,e,t){return this.delegate.listen(s,e,t)}disableAnimations(s,e){this.engine.disableAnimations(s,e)}}class TB extends n1{constructor(s,e,t,r){super(e,t,r),this.factory=s,this.namespaceId=e}setProperty(s,e,t){"@"==e.charAt(0)?"."==e.charAt(1)&&e==t1?this.disableAnimations(s,t=void 0===t||!!t):this.engine.process(this.namespaceId,s,e.slice(1),t):this.delegate.setProperty(s,e,t)}listen(s,e,t){if("@"==e.charAt(0)){const r=function xB(i){switch(i){case"body":return document.body;case"document":return document;case"window":return window;default:return i}}(s);let d=e.slice(1),h="";return"@"!=d.charAt(0)&&([d,h]=function SB(i){const s=i.indexOf(".");return[i.substring(0,s),i.slice(s+1)]}(d)),this.engine.listen(this.namespaceId,r,d,h,c=>{this.factory.scheduleListenerCallback(c._data||-1,t,c)})}return this.delegate.listen(s,e,t)}}const r1=[{provide:km,useClass:yB},{provide:iS,useFactory:function EB(){return new WO}},{provide:BC,useClass:(()=>{class i extends BC{constructor(e,t,r,d){super(e.body,t,r)}ngOnDestroy(){this.flush()}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(x.K0),n.LFG(Gx),n.LFG(iS),n.LFG(n.z2F))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})()},{provide:n.FYo,useFactory:function DB(i,s,e){return new vB(i,s,e)},deps:[we,BC,n.R0b]}],dS=[{provide:Gx,useFactory:()=>new wB},{provide:n.QbO,useValue:"BrowserAnimations"},...r1],a1=[{provide:Gx,useClass:HD},{provide:n.QbO,useValue:"NoopAnimations"},...r1];let HB=(()=>{class i{static withConfig(e){return{ngModule:i,providers:e.disableAnimations?a1:dS}}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:dS,imports:[di]}),i})(),PB=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[x.ez,Zg,bi,Gs]}),i})();const RB=["*",[["mat-card-footer"]]],kB=["*","mat-card-footer"];let s1=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),i})(),o1=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),i})(),l1=(()=>{class i{constructor(e){this._animationMode=e}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.QbO,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(e,t){2&e&&n.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode)},exportAs:["matCard"],ngContentSelectors:kB,decls:2,vars:0,template:function(e,t){1&e&&(n.F$t(RB),n.Hsn(0),n.Hsn(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-card._mat-animation-noopable{transition:none !important;animation:none !important}.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;display:block;overflow:hidden}.mat-card-image img{width:100%}.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:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-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}"],encapsulation:2,changeDetection:0}),i})(),c1=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[ht,ht]}),i})();const LB=["input"],IB=["label"],OB=function(i){return{enterDuration:i}},BB=["*"],VB=new n.OlP("mat-checkbox-default-options",{providedIn:"root",factory:d1});function d1(){return{color:"accent",clickAction:"check-indeterminate"}}let jB=0;const u1=d1(),UB={provide:sr,useExisting:(0,n.Gpc)(()=>cd),multi:!0};class NB{}const FB=wl(Ti(mr(Qr(class{constructor(i){this._elementRef=i}}))));let YB=(()=>{class i extends FB{constructor(e,t,r,d,h,c,o){super(t),this._changeDetectorRef=r,this._ngZone=d,this._animationMode=c,this._options=o,this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new n.vpe,this.indeterminateChange=new n.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||u1,this.color=this.defaultColor=this._options.color||u1.color,this.tabIndex=parseInt(h)||0,this.id=this._uniqueId=`${e}${++jB}`}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(e){this._required=Oe(e)}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(e){const t=Oe(e);t!=this.checked&&(this._checked=t,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){const t=Oe(e);t!==this.disabled&&(this._disabled=t,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(e){const t=e!=this._indeterminate;this._indeterminate=Oe(e),t&&(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(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(e){let t=this._currentCheckState,r=this._getAnimationTargetElement();if(t!==e&&r&&(this._currentAnimationClass&&r.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(t,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){r.classList.add(this._currentAnimationClass);const d=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{r.classList.remove(d)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){const e=this._options?.clickAction;this.disabled||"noop"===e?!this.disabled&&"noop"===e&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==e&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}_onInteractionEvent(e){e.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(e,t){if("NoopAnimations"===this._animationMode)return"";switch(e){case 0:if(1===t)return this._animationClasses.uncheckedToChecked;if(3==t)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===t?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===t?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===t?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){const t=this._inputElement;t&&(t.nativeElement.indeterminate=e)}}return i.\u0275fac=function(e){n.$Z()},i.\u0275dir=n.lG2({type:i,viewQuery:function(e,t){if(1&e&&(n.Gf(LB,5),n.Gf(IB,5),n.Gf(Lr,5)),2&e){let r;n.iGM(r=n.CRH())&&(t._inputElement=r.first),n.iGM(r=n.CRH())&&(t._labelElement=r.first),n.iGM(r=n.CRH())&&(t.ripple=r.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},features:[n.qOj]}),i})(),cd=(()=>{class i extends YB{constructor(e,t,r,d,h,c,o){super("mat-checkbox-",e,t,d,h,c,o),this._focusMonitor=r,this._animationClasses={uncheckedToChecked:"mat-checkbox-anim-unchecked-checked",uncheckedToIndeterminate:"mat-checkbox-anim-unchecked-indeterminate",checkedToUnchecked:"mat-checkbox-anim-checked-unchecked",checkedToIndeterminate:"mat-checkbox-anim-checked-indeterminate",indeterminateToChecked:"mat-checkbox-anim-indeterminate-checked",indeterminateToUnchecked:"mat-checkbox-anim-indeterminate-unchecked"}}_createChangeEvent(e){const t=new NB;return t.source=this,t.checked=e,t}_getAnimationTargetElement(){return this._elementRef.nativeElement}ngAfterViewInit(){super.ngAfterViewInit(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{e||this._onBlur()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onInputClick(e){e.stopPropagation(),super._handleInputClick()}focus(e,t){e?this._focusMonitor.focusVia(this._inputElement,e,t):this._inputElement.nativeElement.focus(t)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(Ii),n.Y36(n.R0b),n.$8M("tabindex"),n.Y36(n.QbO,8),n.Y36(VB,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(e,t){2&e&&(n.Ikx("id",t.id),n.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null),n.ekj("mat-checkbox-indeterminate",t.indeterminate)("mat-checkbox-checked",t.checked)("mat-checkbox-disabled",t.disabled)("mat-checkbox-label-before","before"==t.labelPosition)("_mat-animation-noopable","NoopAnimations"===t._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[n._Bn([UB]),n.qOj],ngContentSelectors:BB,decls:17,vars:21,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","aria-hidden","true",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(e,t){if(1&e&&(n.F$t(),n.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),n.NdJ("change",function(d){return t._onInteractionEvent(d)})("click",function(d){return t._onInputClick(d)}),n.qZA(),n.TgZ(5,"span",5),n._UZ(6,"span",6),n.qZA(),n._UZ(7,"span",7),n.TgZ(8,"span",8),n.O4$(),n.TgZ(9,"svg",9),n._UZ(10,"path",10),n.qZA(),n.kcU(),n._UZ(11,"span",11),n.qZA()(),n.TgZ(12,"span",12,13),n.NdJ("cdkObserveContent",function(){return t._onLabelTextChange()}),n.TgZ(14,"span",14),n._uU(15,"\xa0"),n.qZA(),n.Hsn(16),n.qZA()()),2&e){const r=n.MAs(1),d=n.MAs(13);n.uIk("for",t.inputId),n.xp6(2),n.ekj("mat-checkbox-inner-container-no-side-margin",!d.textContent||!d.textContent.trim()),n.xp6(1),n.Q6J("id",t.inputId)("required",t.required)("checked",t.checked)("disabled",t.disabled)("tabIndex",t.tabIndex),n.uIk("value",t.value)("name",t.name)("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby)("aria-checked",t._getAriaChecked())("aria-describedby",t.ariaDescribedby),n.xp6(2),n.Q6J("matRippleTrigger",r)("matRippleDisabled",t._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",n.VKq(19,OB,"NoopAnimations"===t._animationMode?0:150))}},dependencies:[Lr,qh],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:rgba(0,0,0,0);position:relative}.mat-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.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}.mat-checkbox-layout{-webkit-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;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:rgba(0,0,0,0);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}.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);-webkit-print-color-adjust:exact;color-adjust:exact}._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:rgba(0,0,0,0)}.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-input:focus~.mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),i})(),h1=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})(),jC=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Kr,ht,Jd,h1,ht,h1]}),i})(),GB=0;const uS=new n.OlP("CdkAccordion");let WB=(()=>{class i{constructor(){this._stateChanges=new Me.x,this._openCloseAllActions=new Me.x,this.id="cdk-accordion-"+GB++,this._multi=!1}get multi(){return this._multi}set multi(e){this._multi=Oe(e)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(e){this._stateChanges.next(e)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[n._Bn([{provide:uS,useExisting:i}]),n.TTD]}),i})(),$B=0,JB=(()=>{class i{constructor(e,t,r){this.accordion=e,this._changeDetectorRef=t,this._expansionDispatcher=r,this._openCloseAllSubscription=Rt.w0.EMPTY,this.closed=new n.vpe,this.opened=new n.vpe,this.destroyed=new n.vpe,this.expandedChange=new n.vpe,this.id="cdk-accordion-child-"+$B++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=r.listen((d,h)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===h&&this.id!==d&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(e){e=Oe(e),this._expanded!==e&&(this._expanded=e,this.expandedChange.emit(e),e?(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(e){this._disabled=Oe(e)}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(e=>{this.disabled||(this.expanded=e)})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(uS,12),n.Y36(n.sBO),n.Y36(ym))},i.\u0275dir=n.lG2({type:i,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[n._Bn([{provide:uS,useValue:void 0}])]}),i})(),ZB=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})();const QB=["body"];function KB(i,s){}const XB=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],eV=["mat-expansion-panel-header","*","mat-action-row"];function tV(i,s){if(1&i&&n._UZ(0,"span",2),2&i){const e=n.oxw();n.Q6J("@indicatorRotate",e._getExpandedState())}}const nV=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],iV=["mat-panel-title","mat-panel-description","*"],hS=new n.OlP("MAT_ACCORDION"),p1="225ms cubic-bezier(0.4,0.0,0.2,1)",f1={indicatorRotate:fn("indicatorRotate",[Pt("collapsed, void",He({transform:"rotate(0deg)"})),Pt("expanded",He({transform:"rotate(180deg)"})),xt("expanded <=> collapsed, void => collapsed",Tt(p1))]),bodyExpansion:fn("bodyExpansion",[Pt("collapsed, void",He({height:"0px",visibility:"hidden"})),Pt("expanded",He({height:"*",visibility:"visible"})),xt("expanded <=> collapsed, void => collapsed",Tt(p1))])},m1=new n.OlP("MAT_EXPANSION_PANEL");let rV=(()=>{class i{constructor(e,t){this._template=e,this._expansionPanel=t}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.Rgc),n.Y36(m1,8))},i.\u0275dir=n.lG2({type:i,selectors:[["ng-template","matExpansionPanelContent",""]]}),i})(),aV=0;const g1=new n.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let _1=(()=>{class i extends JB{constructor(e,t,r,d,h,c,o){super(e,t,r),this._viewContainerRef=d,this._animationMode=c,this._hideToggle=!1,this.afterExpand=new n.vpe,this.afterCollapse=new n.vpe,this._inputChanges=new Me.x,this._headerId="mat-expansion-panel-header-"+aV++,this._bodyAnimationDone=new Me.x,this.accordion=e,this._document=h,this._bodyAnimationDone.pipe(mo((a,l)=>a.fromState===l.fromState&&a.toState===l.toState)).subscribe(a=>{"void"!==a.fromState&&("expanded"===a.toState?this.afterExpand.emit():"collapsed"===a.toState&&this.afterCollapse.emit())}),o&&(this.hideToggle=o.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(e){this._hideToggle=Oe(e)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(e){this._togglePosition=e}_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._lazyContent._expansionPanel===this&&this.opened.pipe(Zt(null),(0,Ce.h)(()=>this.expanded&&!this._portal),(0,rt.q)(1)).subscribe(()=>{this._portal=new Ir(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(e){this._inputChanges.next(e)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const e=this._document.activeElement,t=this._body.nativeElement;return e===t||t.contains(e)}return!1}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(hS,12),n.Y36(n.sBO),n.Y36(ym),n.Y36(n.s_b),n.Y36(x.K0),n.Y36(n.QbO,8),n.Y36(g1,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-expansion-panel"]],contentQueries:function(e,t,r){if(1&e&&n.Suo(r,rV,5),2&e){let d;n.iGM(d=n.CRH())&&(t._lazyContent=d.first)}},viewQuery:function(e,t){if(1&e&&n.Gf(QB,5),2&e){let r;n.iGM(r=n.CRH())&&(t._body=r.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(e,t){2&e&&n.ekj("mat-expanded",t.expanded)("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-expansion-panel-spacing",t._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._Bn([{provide:hS,useValue:void 0},{provide:m1,useExisting:i}]),n.qOj,n.TTD],ngContentSelectors:eV,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(e,t){1&e&&(n.F$t(XB),n.Hsn(0),n.TgZ(1,"div",0,1),n.NdJ("@bodyExpansion.done",function(d){return t._bodyAnimationDone.next(d)}),n.TgZ(3,"div",2),n.Hsn(4,1),n.YNc(5,KB,0,0,"ng-template",3),n.qZA(),n.Hsn(6,2),n.qZA()),2&e&&(n.xp6(1),n.Q6J("@bodyExpansion",t._getExpandedState())("id",t.id),n.uIk("aria-labelledby",t._headerId),n.xp6(4),n.Q6J("cdkPortalOutlet",t._portal))},dependencies:[Sa],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-content[style*="visibility: hidden"] *{visibility:hidden !important}.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 .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[f1.bodyExpansion]},changeDetection:0}),i})();class sV{}const oV=wl(sV);let b1=(()=>{class i extends oV{constructor(e,t,r,d,h,c,o){super(),this.panel=e,this._element=t,this._focusMonitor=r,this._changeDetectorRef=d,this._animationMode=c,this._parentChangeSubscription=Rt.w0.EMPTY;const a=e.accordion?e.accordion._stateChanges.pipe((0,Ce.h)(l=>!(!l.hideToggle&&!l.togglePosition))):Pn.E;this.tabIndex=parseInt(o||"")||0,this._parentChangeSubscription=(0,Sn.T)(e.opened,e.closed,a,e._inputChanges.pipe((0,Ce.h)(l=>!!(l.hideToggle||l.disabled||l.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe((0,Ce.h)(()=>e._containsFocus())).subscribe(()=>r.focusVia(t,"program")),h&&(this.expandedHeight=h.expandedHeight,this.collapsedHeight=h.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 e=this._isExpanded();return e&&this.expandedHeight?this.expandedHeight:!e&&this.collapsedHeight?this.collapsedHeight:null}_keydown(e){switch(e.keyCode){case 32:case 13:ri(e)||(e.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e))}}focus(e,t){e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(e=>{e&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(_1,1),n.Y36(n.SBq),n.Y36(Ii),n.Y36(n.sBO),n.Y36(g1,8),n.Y36(n.QbO,8),n.$8M("tabindex"))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(e,t){1&e&&n.NdJ("click",function(){return t._toggle()})("keydown",function(d){return t._keydown(d)}),2&e&&(n.uIk("id",t.panel._headerId)("tabindex",t.tabIndex)("aria-controls",t._getPanelId())("aria-expanded",t._isExpanded())("aria-disabled",t.panel.disabled),n.Udp("height",t._getHeaderHeight()),n.ekj("mat-expanded",t._isExpanded())("mat-expansion-toggle-indicator-after","after"===t._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===t._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===t._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[n.qOj],ngContentSelectors:iV,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(e,t){1&e&&(n.F$t(nV),n.TgZ(0,"span",0),n.Hsn(1),n.Hsn(2,1),n.Hsn(3,2),n.qZA(),n.YNc(4,tV,1,1,"span",1)),2&e&&(n.xp6(4),n.Q6J("ngIf",t._showToggle()))},dependencies:[x.O5],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;align-items:center}[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}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[f1.indicatorRotate]},changeDetection:0}),i})(),lV=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),i})(),cV=(()=>{class i extends WB{constructor(){super(...arguments),this._ownHeaders=new n.n_E,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(e){this._hideToggle=Oe(e)}ngAfterContentInit(){this._headers.changes.pipe(Zt(this._headers)).subscribe(e=>{this._ownHeaders.reset(e.filter(t=>t.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new Mc(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(e){this._keyManager.onKeydown(e)}_handleHeaderFocus(e){this._keyManager.updateActiveItem(e)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return i.\u0275fac=function(){let s;return function(t){return(s||(s=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["mat-accordion"]],contentQueries:function(e,t,r){if(1&e&&n.Suo(r,b1,5),2&e){let d;n.iGM(d=n.CRH())&&(t._headers=d)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(e,t){2&e&&n.ekj("mat-accordion-multi",t.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[n._Bn([{provide:hS,useExisting:i}]),n.qOj]}),i})(),w1=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[x.ez,ht,ZB,Hs]}),i})(),C1=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Cl,ht,Cl,ht]}),i})();function hV(i,s){1&i&&n.Hsn(0)}const pV=["*"];let A1=(()=>{class i{constructor(e){this._elementRef=e}focus(){this._elementRef.nativeElement.focus()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),i})(),v1=(()=>{class i{constructor(e){this.template=e}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.Rgc))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkStepLabel",""]]}),i})(),fV=0;const T1=new n.OlP("STEPPER_GLOBAL_OPTIONS");let pS=(()=>{class i{constructor(e,t){this._stepper=e,this.interacted=!1,this.interactedStream=new n.vpe,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=t||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType}get editable(){return this._editable}set editable(e){this._editable=Oe(e)}get optional(){return this._optional}set optional(e){this._optional=Oe(e)}get completed(){return this._completedOverride??this._getDefaultCompleted()}set completed(e){this._completedOverride=Oe(e)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return this._customError??this._getDefaultError()}set hasError(e){this._customError=Oe(e)}_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()}_markAsInteracted(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this))}_showError(){return this._stepperOptions.showError??null!=this._customError}}return i.\u0275fac=function(e){return new(e||i)(n.Y36((0,n.Gpc)(()=>s_)),n.Y36(T1,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["cdk-step"]],contentQueries:function(e,t,r){if(1&e&&n.Suo(r,v1,5),2&e){let d;n.iGM(d=n.CRH())&&(t.stepLabel=d.first)}},viewQuery:function(e,t){if(1&e&&n.Gf(n.Rgc,7),2&e){let r;n.iGM(r=n.CRH())&&(t.content=r.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],state:"state",editable:"editable",optional:"optional",completed:"completed",hasError:"hasError"},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[n.TTD],ngContentSelectors:pV,decls:1,vars:0,template:function(e,t){1&e&&(n.F$t(),n.YNc(0,hV,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),i})(),s_=(()=>{class i{constructor(e,t,r){this._dir=e,this._changeDetectorRef=t,this._elementRef=r,this._destroyed=new Me.x,this.steps=new n.n_E,this._sortedHeaders=new n.n_E,this._linear=!1,this._selectedIndex=0,this.selectionChange=new n.vpe,this._orientation="horizontal",this._groupId=fV++}get linear(){return this._linear}set linear(e){this._linear=Oe(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){const t=_n(e);this.steps&&this._steps?(this._isValidIndex(t),this.selected?._markAsInteracted(),this._selectedIndex!==t&&!this._anyControlsInvalidOrPending(t)&&(t>=this._selectedIndex||this.steps.toArray()[t].editable)&&this._updateSelectedItemIndex(t)):this._selectedIndex=t}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(e){this.selectedIndex=e&&this.steps?this.steps.toArray().indexOf(e):-1}get orientation(){return this._orientation}set orientation(e){this._orientation=e,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===e)}ngAfterContentInit(){this._steps.changes.pipe(Zt(this._steps),Ke(this._destroyed)).subscribe(e=>{this.steps.reset(e.filter(t=>t._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._stepHeader.changes.pipe(Zt(this._stepHeader),Ke(this._destroyed)).subscribe(e=>{this._sortedHeaders.reset(e.toArray().sort((t,r)=>t._elementRef.nativeElement.compareDocumentPosition(r._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new Mc(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:(0,xe.of)()).pipe(Zt(this._layoutDirection()),Ke(this._destroyed)).subscribe(e=>this._keyManager.withHorizontalOrientation(e)),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._sortedHeaders.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(e=>e.reset()),this._stateChanged()}_getStepLabelId(e){return`cdk-step-label-${this._groupId}-${e}`}_getStepContentId(e){return`cdk-step-content-${this._groupId}-${e}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(e){const t=e-this._selectedIndex;return t<0?"rtl"===this._layoutDirection()?"next":"previous":t>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(e,t="number"){const r=this.steps.toArray()[e],d=this._isCurrentStep(e);return r._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(r,d):this._getGuidelineLogic(r,d,t)}_getDefaultIndicatorLogic(e,t){return e._showError()&&e.hasError&&!t?"error":!e.completed||t?"number":e.editable?"edit":"done"}_getGuidelineLogic(e,t,r="number"){return e._showError()&&e.hasError&&!t?"error":e.completed&&!t?"done":e.completed&&t?r:e.editable&&t?"edit":r}_isCurrentStep(e){return this._selectedIndex===e}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(e){const t=this.steps.toArray();this.selectionChange.emit({selectedIndex:e,previouslySelectedIndex:this._selectedIndex,selectedStep:t[e],previouslySelectedStep:t[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(e):this._keyManager.updateActiveItem(e),this._selectedIndex=e,this._stateChanged()}_onKeydown(e){const t=ri(e),r=e.keyCode,d=this._keyManager;null==d.activeItemIndex||t||32!==r&&13!==r?d.onKeydown(e):(this.selectedIndex=d.activeItemIndex,e.preventDefault())}_anyControlsInvalidOrPending(e){return!!(this._linear&&e>=0)&&this.steps.toArray().slice(0,e).some(t=>{const r=t.stepControl;return(r?r.invalid||r.pending||!t.interacted:!t.completed)&&!t.optional&&!t._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){const e=this._elementRef.nativeElement,t=ho();return e===t||e.contains(t)}_isValidIndex(e){return e>-1&&(!this.steps||e{class i{constructor(e){this._stepper=e,this.type="submit"}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(s_))},i.\u0275dir=n.lG2({type:i,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(e,t){1&e&&n.NdJ("click",function(){return t._stepper.next()}),2&e&&n.Ikx("type",t.type)},inputs:{type:"type"}}),i})(),gV=(()=>{class i{constructor(e){this._stepper=e,this.type="button"}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(s_))},i.\u0275dir=n.lG2({type:i,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(e,t){1&e&&n.NdJ("click",function(){return t._stepper.previous()}),2&e&&n.Ikx("type",t.type)},inputs:{type:"type"}}),i})(),_V=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[ru]}),i})();function bV(i,s){if(1&i&&n.GkF(0,8),2&i){const e=n.oxw();n.Q6J("ngTemplateOutlet",e.iconOverrides[e.state])("ngTemplateOutletContext",e._getIconContext())}}function wV(i,s){if(1&i&&(n.TgZ(0,"span",13),n._uU(1),n.qZA()),2&i){const e=n.oxw(2);n.xp6(1),n.Oqu(e._getDefaultTextForState(e.state))}}function yV(i,s){if(1&i&&(n.TgZ(0,"span",14),n._uU(1),n.qZA()),2&i){const e=n.oxw(2);n.xp6(1),n.Oqu(e._intl.completedLabel)}}function CV(i,s){if(1&i&&(n.TgZ(0,"span",14),n._uU(1),n.qZA()),2&i){const e=n.oxw(2);n.xp6(1),n.Oqu(e._intl.editableLabel)}}function AV(i,s){if(1&i&&(n.TgZ(0,"mat-icon",13),n._uU(1),n.qZA()),2&i){const e=n.oxw(2);n.xp6(1),n.Oqu(e._getDefaultTextForState(e.state))}}function vV(i,s){if(1&i&&(n.ynx(0,9),n.YNc(1,wV,2,1,"span",10),n.YNc(2,yV,2,1,"span",11),n.YNc(3,CV,2,1,"span",11),n.YNc(4,AV,2,1,"mat-icon",12),n.BQk()),2&i){const e=n.oxw();n.Q6J("ngSwitch",e.state),n.xp6(1),n.Q6J("ngSwitchCase","number"),n.xp6(1),n.Q6J("ngIf","done"===e.state),n.xp6(1),n.Q6J("ngIf","edit"===e.state)}}function TV(i,s){if(1&i&&(n.TgZ(0,"div",15),n.GkF(1,16),n.qZA()),2&i){const e=n.oxw();n.xp6(1),n.Q6J("ngTemplateOutlet",e._templateLabel().template)}}function xV(i,s){if(1&i&&(n.TgZ(0,"div",15),n._uU(1),n.qZA()),2&i){const e=n.oxw();n.xp6(1),n.Oqu(e.label)}}function SV(i,s){if(1&i&&(n.TgZ(0,"div",17),n._uU(1),n.qZA()),2&i){const e=n.oxw();n.xp6(1),n.Oqu(e._intl.optionalLabel)}}function MV(i,s){if(1&i&&(n.TgZ(0,"div",18),n._uU(1),n.qZA()),2&i){const e=n.oxw();n.xp6(1),n.Oqu(e.errorMessage)}}function EV(i,s){}function DV(i,s){if(1&i&&(n.Hsn(0),n.YNc(1,EV,0,0,"ng-template",0)),2&i){const e=n.oxw();n.xp6(1),n.Q6J("cdkPortalOutlet",e._portal)}}const HV=["*"];function PV(i,s){1&i&&n._UZ(0,"div",11)}const x1=function(i,s){return{step:i,i:s}};function RV(i,s){if(1&i&&(n.ynx(0),n.GkF(1,9),n.YNc(2,PV,1,0,"div",10),n.BQk()),2&i){const e=s.$implicit,t=s.index,r=s.last;n.oxw(2);const d=n.MAs(4);n.xp6(1),n.Q6J("ngTemplateOutlet",d)("ngTemplateOutletContext",n.WLB(3,x1,e,t)),n.xp6(1),n.Q6J("ngIf",!r)}}const S1=function(i){return{animationDuration:i}},M1=function(i,s){return{value:i,params:s}};function kV(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"div",12),n.NdJ("@horizontalStepTransition.done",function(r){n.CHM(e);const d=n.oxw(2);return n.KtG(d._animationDone.next(r))}),n.GkF(1,13),n.qZA()}if(2&i){const e=s.$implicit,t=s.index,r=n.oxw(2);n.Q6J("@horizontalStepTransition",n.WLB(7,M1,r._getAnimationDirection(t),n.VKq(5,S1,r._getAnimationDuration())))("id",r._getStepContentId(t)),n.uIk("aria-labelledby",r._getStepLabelId(t))("aria-expanded",r.selectedIndex===t),n.xp6(1),n.Q6J("ngTemplateOutlet",e.content)}}function LV(i,s){if(1&i&&(n.TgZ(0,"div",4)(1,"div",5),n.YNc(2,RV,3,6,"ng-container",6),n.qZA(),n.TgZ(3,"div",7),n.YNc(4,kV,2,10,"div",8),n.qZA()()),2&i){const e=n.oxw();n.xp6(2),n.Q6J("ngForOf",e.steps),n.xp6(2),n.Q6J("ngForOf",e.steps)}}function IV(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"div",15),n.GkF(1,9),n.TgZ(2,"div",16)(3,"div",17),n.NdJ("@verticalStepTransition.done",function(r){n.CHM(e);const d=n.oxw(2);return n.KtG(d._animationDone.next(r))}),n.TgZ(4,"div",18),n.GkF(5,13),n.qZA()()()()}if(2&i){const e=s.$implicit,t=s.index,r=s.last,d=n.oxw(2),h=n.MAs(4);n.xp6(1),n.Q6J("ngTemplateOutlet",h)("ngTemplateOutletContext",n.WLB(9,x1,e,t)),n.xp6(1),n.ekj("mat-stepper-vertical-line",!r),n.xp6(1),n.Q6J("@verticalStepTransition",n.WLB(14,M1,d._getAnimationDirection(t),n.VKq(12,S1,d._getAnimationDuration())))("id",d._getStepContentId(t)),n.uIk("aria-labelledby",d._getStepLabelId(t))("aria-expanded",d.selectedIndex===t),n.xp6(2),n.Q6J("ngTemplateOutlet",e.content)}}function OV(i,s){if(1&i&&(n.ynx(0),n.YNc(1,IV,6,17,"div",14),n.BQk()),2&i){const e=n.oxw();n.xp6(1),n.Q6J("ngForOf",e.steps)}}function BV(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"mat-step-header",19),n.NdJ("click",function(){const d=n.CHM(e).step;return n.KtG(d.select())})("keydown",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d._onKeydown(r))}),n.qZA()}if(2&i){const e=s.step,t=s.i,r=n.oxw();n.ekj("mat-horizontal-stepper-header","horizontal"===r.orientation)("mat-vertical-stepper-header","vertical"===r.orientation),n.Q6J("tabIndex",r._getFocusIndex()===t?0:-1)("id",r._getStepLabelId(t))("index",t)("state",r._getIndicatorType(t,e.state))("label",e.stepLabel||e.label)("selected",r.selectedIndex===t)("active",r._stepIsNavigable(t,e))("optional",e.optional)("errorMessage",e.errorMessage)("iconOverrides",r._iconOverrides)("disableRipple",r.disableRipple||!r._stepIsNavigable(t,e))("color",e.color||r.color),n.uIk("aria-posinset",t+1)("aria-setsize",r.steps.length)("aria-controls",r._getStepContentId(t))("aria-selected",r.selectedIndex==t)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null)("aria-disabled",!r._stepIsNavigable(t,e)||null)}}let UC=(()=>{class i extends v1{}return i.\u0275fac=function(){let s;return function(t){return(s||(s=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["","matStepLabel",""]],features:[n.qOj]}),i})(),NC=(()=>{class i{constructor(){this.changes=new Me.x,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const jV={provide:NC,deps:[[new n.FiY,new n.tp0,NC]],useFactory:function VV(i){return i||new NC}},UV=Ti(class extends A1{constructor(s){super(s)}},"primary");let E1=(()=>{class i extends UV{constructor(e,t,r,d){super(r),this._intl=e,this._focusMonitor=t,this._intlSubscription=e.changes.subscribe(()=>d.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,t){e?this._focusMonitor.focusVia(this._elementRef,e,t):this._elementRef.nativeElement.focus(t)}_stringLabel(){return this.label instanceof UC?null:this.label}_templateLabel(){return this.label instanceof UC?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(e){return"number"==e?`${this.index+1}`:"edit"==e?"create":"error"==e?"warning":e}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(NC),n.Y36(Ii),n.Y36(n.SBq),n.Y36(n.sBO))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],inputs:{color:"color",state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple"},features:[n.qOj],decls:10,vars:19,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",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"],["aria-hidden","true",4,"ngSwitchCase"],["class","cdk-visually-hidden",4,"ngIf"],["aria-hidden","true",4,"ngSwitchDefault"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[1,"mat-step-text-label"],[3,"ngTemplateOutlet"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"]],template:function(e,t){1&e&&(n._UZ(0,"div",0),n.TgZ(1,"div")(2,"div",1),n.YNc(3,bV,1,2,"ng-container",2),n.YNc(4,vV,5,4,"ng-container",3),n.qZA()(),n.TgZ(5,"div",4),n.YNc(6,TV,2,1,"div",5),n.YNc(7,xV,2,1,"div",5),n.YNc(8,SV,2,1,"div",6),n.YNc(9,MV,2,1,"div",7),n.qZA()),2&e&&(n.Q6J("matRippleTrigger",t._getHostElement())("matRippleDisabled",t.disableRipple),n.xp6(1),n.Gre("mat-step-icon-state-",t.state," mat-step-icon"),n.ekj("mat-step-icon-selected",t.selected),n.xp6(1),n.Q6J("ngSwitch",!(!t.iconOverrides||!t.iconOverrides[t.state])),n.xp6(1),n.Q6J("ngSwitchCase",!0),n.xp6(2),n.ekj("mat-step-label-active",t.active)("mat-step-label-selected",t.selected)("mat-step-label-error","error"==t.state),n.xp6(1),n.Q6J("ngIf",t._templateLabel()),n.xp6(1),n.Q6J("ngIf",t._stringLabel()),n.xp6(1),n.Q6J("ngIf",t.optional&&"error"!=t.state),n.xp6(1),n.Q6J("ngIf","error"==t.state))},dependencies:[x.O5,x.tP,x.RF,x.n9,x.ED,Ln,Lr],styles:['.mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-step-header:focus .mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-step-header{outline:solid 1px}.cdk-high-contrast-active .mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.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{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.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}'],encapsulation:2,changeDetection:0}),i})();const P1={horizontalStepTransition:fn("horizontalStepTransition",[Pt("previous",He({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),Pt("current",He({transform:"none",visibility:"inherit"})),Pt("next",He({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),xt("* => *",Tt("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)"),{params:{animationDuration:"500ms"}})]),verticalStepTransition:fn("verticalStepTransition",[Pt("previous",He({height:"0px",visibility:"hidden"})),Pt("next",He({height:"0px",visibility:"hidden"})),Pt("current",He({height:"*",visibility:"inherit"})),xt("* <=> current",Tt("{{animationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)"),{params:{animationDuration:"225ms"}})])};let NV=(()=>{class i{constructor(e){this.templateRef=e}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.Rgc))},i.\u0275dir=n.lG2({type:i,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),i})(),FV=(()=>{class i{constructor(e){this._template=e}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.Rgc))},i.\u0275dir=n.lG2({type:i,selectors:[["ng-template","matStepContent",""]]}),i})(),R1=(()=>{class i extends pS{constructor(e,t,r,d){super(e,d),this._errorStateMatcher=t,this._viewContainerRef=r,this._isSelected=Rt.w0.EMPTY}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe((0,bn.w)(()=>this._stepper.selectionChange.pipe((0,_t.U)(e=>e.selectedStep===this),Zt(this._stepper.selected===this)))).subscribe(e=>{e&&this._lazyContent&&!this._portal&&(this._portal=new Ir(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(e,t){return this._errorStateMatcher.isErrorState(e,t)||!!(e&&e.invalid&&this.interacted)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36((0,n.Gpc)(()=>k1)),n.Y36(Ca,4),n.Y36(n.s_b),n.Y36(T1,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-step"]],contentQueries:function(e,t,r){if(1&e&&(n.Suo(r,UC,5),n.Suo(r,FV,5)),2&e){let d;n.iGM(d=n.CRH())&&(t.stepLabel=d.first),n.iGM(d=n.CRH())&&(t._lazyContent=d.first)}},inputs:{color:"color"},exportAs:["matStep"],features:[n._Bn([{provide:Ca,useExisting:i},{provide:pS,useExisting:i}]),n.qOj],ngContentSelectors:HV,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(e,t){1&e&&(n.F$t(),n.YNc(0,DV,2,1,"ng-template"))},dependencies:[Sa],encapsulation:2,changeDetection:0}),i})(),k1=(()=>{class i extends s_{constructor(e,t,r){super(e,t,r),this.steps=new n.n_E,this.animationDone=new n.vpe,this.labelPosition="end",this.headerPosition="top",this._iconOverrides={},this._animationDone=new Me.x,this._animationDuration="";const d=r.nativeElement.nodeName.toLowerCase();this.orientation="mat-vertical-stepper"===d?"vertical":"horizontal"}get animationDuration(){return this._animationDuration}set animationDuration(e){this._animationDuration=/^\d+$/.test(e)?e+"ms":e}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:e,templateRef:t})=>this._iconOverrides[e]=t),this.steps.changes.pipe(Ke(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe(mo((e,t)=>e.fromState===t.fromState&&e.toState===t.toState),Ke(this._destroyed)).subscribe(e=>{"current"===e.toState&&this.animationDone.emit()})}_stepIsNavigable(e,t){return t.completed||this.selectedIndex===e||!this.linear}_getAnimationDuration(){return this.animationDuration?this.animationDuration:"horizontal"===this.orientation?"500ms":"225ms"}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(xn,8),n.Y36(n.sBO),n.Y36(n.SBq))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(e,t,r){if(1&e&&(n.Suo(r,R1,5),n.Suo(r,NV,5)),2&e){let d;n.iGM(d=n.CRH())&&(t._steps=d),n.iGM(d=n.CRH())&&(t._icons=d)}},viewQuery:function(e,t){if(1&e&&n.Gf(E1,5),2&e){let r;n.iGM(r=n.CRH())&&(t._stepHeader=r)}},hostAttrs:["role","tablist"],hostVars:11,hostBindings:function(e,t){2&e&&(n.uIk("aria-orientation",t.orientation),n.ekj("mat-stepper-horizontal","horizontal"===t.orientation)("mat-stepper-vertical","vertical"===t.orientation)("mat-stepper-label-position-end","horizontal"===t.orientation&&"end"==t.labelPosition)("mat-stepper-label-position-bottom","horizontal"===t.orientation&&"bottom"==t.labelPosition)("mat-stepper-header-position-bottom","bottom"===t.headerPosition))},inputs:{selectedIndex:"selectedIndex",disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition",headerPosition:"headerPosition",animationDuration:"animationDuration"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[n._Bn([{provide:s_,useExisting:i}]),n.qOj],decls:5,vars:3,consts:[[3,"ngSwitch"],["class","mat-horizontal-stepper-wrapper",4,"ngSwitchCase"],[4,"ngSwitchCase"],["stepTemplate",""],[1,"mat-horizontal-stepper-wrapper"],[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"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","mat-stepper-horizontal-line",4,"ngIf"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],["class","mat-step",4,"ngFor","ngForOf"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color","click","keydown"]],template:function(e,t){1&e&&(n.ynx(0,0),n.YNc(1,LV,5,2,"div",1),n.YNc(2,OV,2,1,"ng-container",2),n.BQk(),n.YNc(3,BV,1,23,"ng-template",null,3,n.W1O)),2&e&&(n.Q6J("ngSwitch",t.orientation),n.xp6(1),n.Q6J("ngSwitchCase","horizontal"),n.xp6(1),n.Q6J("ngSwitchCase","vertical"))},dependencies:[x.sg,x.O5,x.tP,x.RF,x.n9,E1],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-header-position-bottom .mat-horizontal-stepper-header-container{order:1}.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-wrapper{display:flex;flex-direction:column}.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}.cdk-high-contrast-active .mat-horizontal-content-container{outline:solid 1px}.mat-stepper-header-position-bottom .mat-horizontal-content-container{padding:24px 24px 0 24px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}.cdk-high-contrast-active .mat-vertical-content-container{outline:solid 1px}[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}'],encapsulation:2,data:{animation:[P1.horizontalStepTransition,P1.verticalStepTransition]},changeDetection:0}),i})(),YV=(()=>{class i extends mV{}return i.\u0275fac=function(){let s;return function(t){return(s||(s=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(e,t){2&e&&n.Ikx("type",t.type)},inputs:{type:"type"},features:[n.qOj]}),i})(),qV=(()=>{class i extends gV{}return i.\u0275fac=function(){let s;return function(t){return(s||(s=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(e,t){2&e&&n.Ikx("type",t.type)},inputs:{type:"type"},features:[n.qOj]}),i})(),L1=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[jV,Ca],imports:[ht,x.ez,Hs,bi,_V,Vl,Kr,ht]}),i})();const zV=["mat-calendar-body",""];function GV(i,s){if(1&i&&(n.TgZ(0,"tr",2)(1,"td",3),n._uU(2),n.qZA()()),2&i){const e=n.oxw();n.xp6(1),n.Udp("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),n.uIk("colspan",e.numCols),n.xp6(1),n.hij(" ",e.label," ")}}function WV(i,s){if(1&i&&(n.TgZ(0,"td",3),n._uU(1),n.qZA()),2&i){const e=n.oxw(2);n.Udp("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),n.uIk("colspan",e._firstRowOffset),n.xp6(1),n.hij(" ",e._firstRowOffset>=e.labelMinRequiredCells?e.label:""," ")}}function $V(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"td",7)(1,"button",8),n.NdJ("click",function(r){const h=n.CHM(e).$implicit,c=n.oxw(2);return n.KtG(c._cellClicked(h,r))})("focus",function(r){const h=n.CHM(e).$implicit,c=n.oxw(2);return n.KtG(c._emitActiveDateChange(h,r))}),n.TgZ(2,"div",9),n._uU(3),n.qZA(),n._UZ(4,"div",10),n.qZA()()}if(2&i){const e=s.$implicit,t=s.index,r=n.oxw().index,d=n.oxw();n.Udp("width",d._cellWidth)("padding-top",d._cellPadding)("padding-bottom",d._cellPadding),n.uIk("data-mat-row",r)("data-mat-col",t),n.xp6(1),n.ekj("mat-calendar-body-disabled",!e.enabled)("mat-calendar-body-active",d._isActiveCell(r,t))("mat-calendar-body-range-start",d._isRangeStart(e.compareValue))("mat-calendar-body-range-end",d._isRangeEnd(e.compareValue))("mat-calendar-body-in-range",d._isInRange(e.compareValue))("mat-calendar-body-comparison-bridge-start",d._isComparisonBridgeStart(e.compareValue,r,t))("mat-calendar-body-comparison-bridge-end",d._isComparisonBridgeEnd(e.compareValue,r,t))("mat-calendar-body-comparison-start",d._isComparisonStart(e.compareValue))("mat-calendar-body-comparison-end",d._isComparisonEnd(e.compareValue))("mat-calendar-body-in-comparison-range",d._isInComparisonRange(e.compareValue))("mat-calendar-body-preview-start",d._isPreviewStart(e.compareValue))("mat-calendar-body-preview-end",d._isPreviewEnd(e.compareValue))("mat-calendar-body-in-preview",d._isInPreview(e.compareValue)),n.Q6J("ngClass",e.cssClasses)("tabindex",d._isActiveCell(r,t)?0:-1),n.uIk("aria-label",e.ariaLabel)("aria-disabled",!e.enabled||null)("aria-pressed",d._isSelected(e.compareValue))("aria-current",d.todayValue===e.compareValue?"date":null),n.xp6(1),n.ekj("mat-calendar-body-selected",d._isSelected(e.compareValue))("mat-calendar-body-comparison-identical",d._isComparisonIdentical(e.compareValue))("mat-calendar-body-today",d.todayValue===e.compareValue),n.xp6(1),n.hij(" ",e.displayValue," ")}}function JV(i,s){if(1&i&&(n.TgZ(0,"tr",4),n.YNc(1,WV,2,6,"td",5),n.YNc(2,$V,5,47,"td",6),n.qZA()),2&i){const e=s.$implicit,t=s.index,r=n.oxw();n.xp6(1),n.Q6J("ngIf",0===t&&r._firstRowOffset),n.xp6(1),n.Q6J("ngForOf",e)}}function ZV(i,s){if(1&i&&(n.TgZ(0,"th",5)(1,"span",6),n._uU(2),n.qZA(),n.TgZ(3,"span",7),n._uU(4),n.qZA()()),2&i){const e=s.$implicit;n.xp6(2),n.Oqu(e.long),n.xp6(2),n.Oqu(e.narrow)}}const QV=["*"];function KV(i,s){}function XV(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"mat-month-view",5),n.NdJ("activeDateChange",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.activeDate=r)})("_userSelection",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d._dateSelected(r))}),n.qZA()}if(2&i){const e=n.oxw();n.Q6J("activeDate",e.activeDate)("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)}}function ej(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"mat-year-view",6),n.NdJ("activeDateChange",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.activeDate=r)})("monthSelected",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d._monthSelectedInYearView(r))})("selectedChange",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d._goToDateInView(r,"month"))}),n.qZA()}if(2&i){const e=n.oxw();n.Q6J("activeDate",e.activeDate)("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function tj(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"mat-multi-year-view",7),n.NdJ("activeDateChange",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.activeDate=r)})("yearSelected",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d._yearSelectedInMultiYearView(r))})("selectedChange",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d._goToDateInView(r,"year"))}),n.qZA()}if(2&i){const e=n.oxw();n.Q6J("activeDate",e.activeDate)("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function nj(i,s){}const ij=["button"];function rj(i,s){1&i&&(n.O4$(),n.TgZ(0,"svg",3),n._UZ(1,"path",4),n.qZA())}const aj=[[["","matDatepickerToggleIcon",""]]],sj=["[matDatepickerToggleIcon]"];let o_=(()=>{class i{constructor(){this.changes=new Me.x,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 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(e,t){return`${e} \u2013 ${t}`}formatYearRangeLabel(e,t){return`${e} to ${t}`}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();class fS{constructor(s,e,t,r,d={},h=s,c){this.value=s,this.displayValue=e,this.ariaLabel=t,this.enabled=r,this.cssClasses=d,this.compareValue=h,this.rawValue=c}}let tf=(()=>{class i{constructor(e,t){this._elementRef=e,this._ngZone=t,this._focusActiveCellAfterViewChecked=!1,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new n.vpe,this.previewChange=new n.vpe,this.activeDateChange=new n.vpe,this._enterHandler=r=>{if(this._skipNextFocus&&"focus"===r.type)this._skipNextFocus=!1;else if(r.target&&this.isRange){const d=this._getCellFromElement(r.target);d&&this._ngZone.run(()=>this.previewChange.emit({value:d.enabled?d:null,event:r}))}},this._leaveHandler=r=>{null!==this.previewEnd&&this.isRange&&r.target&&this._getCellFromElement(r.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:r}))},t.runOutsideAngular(()=>{const r=e.nativeElement;r.addEventListener("mouseenter",this._enterHandler,!0),r.addEventListener("focus",this._enterHandler,!0),r.addEventListener("mouseleave",this._leaveHandler,!0),r.addEventListener("blur",this._leaveHandler,!0)})}ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}_cellClicked(e,t){e.enabled&&this.selectedValueChange.emit({value:e.value,event:t})}_emitActiveDateChange(e,t){e.enabled&&this.activeDateChange.emit({value:e.value,event:t})}_isSelected(e){return this.startValue===e||this.endValue===e}ngOnChanges(e){const t=e.numCols,{rows:r,numCols:d}=this;(e.rows||t)&&(this._firstRowOffset=r&&r.length&&r[0].length?d-r[0].length:0),(e.cellAspectRatio||t||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/d+"%"),(t||!this._cellWidth)&&(this._cellWidth=100/d+"%")}ngOnDestroy(){const e=this._elementRef.nativeElement;e.removeEventListener("mouseenter",this._enterHandler,!0),e.removeEventListener("focus",this._enterHandler,!0),e.removeEventListener("mouseleave",this._leaveHandler,!0),e.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(e,t){let r=e*this.numCols+t;return e&&(r-=this._firstRowOffset),r==this.activeCell}_focusActiveCell(e=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,rt.q)(1)).subscribe(()=>{setTimeout(()=>{const t=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");t&&(e||(this._skipNextFocus=!0),t.focus())})})})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(e){return mS(e,this.startValue,this.endValue)}_isRangeEnd(e){return gS(e,this.startValue,this.endValue)}_isInRange(e){return _S(e,this.startValue,this.endValue,this.isRange)}_isComparisonStart(e){return mS(e,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(e,t,r){if(!this._isComparisonStart(e)||this._isRangeStart(e)||!this._isInRange(e))return!1;let d=this.rows[t][r-1];if(!d){const h=this.rows[t-1];d=h&&h[h.length-1]}return d&&!this._isRangeEnd(d.compareValue)}_isComparisonBridgeEnd(e,t,r){if(!this._isComparisonEnd(e)||this._isRangeEnd(e)||!this._isInRange(e))return!1;let d=this.rows[t][r+1];if(!d){const h=this.rows[t+1];d=h&&h[0]}return d&&!this._isRangeStart(d.compareValue)}_isComparisonEnd(e){return gS(e,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(e){return _S(e,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(e){return this.comparisonStart===this.comparisonEnd&&e===this.comparisonStart}_isPreviewStart(e){return mS(e,this.previewStart,this.previewEnd)}_isPreviewEnd(e){return gS(e,this.previewStart,this.previewEnd)}_isInPreview(e){return _S(e,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(e){let t;if(I1(e)?t=e:I1(e.parentNode)&&(t=e.parentNode),t){const r=t.getAttribute("data-mat-row"),d=t.getAttribute("data-mat-col");if(r&&d)return this.rows[parseInt(r)][parseInt(d)]}return null}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(n.R0b))},i.\u0275cmp=n.Xpm({type:i,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange"},exportAs:["matCalendarBody"],features:[n.TTD],attrs:zV,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"],["class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom",4,"ngFor","ngForOf"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click","focus"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(e,t){1&e&&(n.YNc(0,GV,3,6,"tr",0),n.YNc(1,JV,3,2,"tr",1)),2&e&&(n.Q6J("ngIf",t._firstRowOffset=s&&i===e}function _S(i,s,e,t){return t&&null!==s&&null!==e&&s!==e&&i>=s&&i<=e}class ra{constructor(s,e){this.start=s,this.end=e}}let dd=(()=>{class i{constructor(e,t){this.selection=e,this._adapter=t,this._selectionChanged=new Me.x,this.selectionChanged=this._selectionChanged,this.selection=e}updateSelection(e,t){const r=this.selection;this.selection=e,this._selectionChanged.next({selection:e,source:t,oldValue:r})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(e){return this._adapter.isDateInstance(e)&&this._adapter.isValid(e)}}return i.\u0275fac=function(e){n.$Z()},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})(),oj=(()=>{class i extends dd{constructor(e){super(null,e)}add(e){super.updateSelection(e,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const e=new i(this._adapter);return e.updateSelection(this.selection,this),e}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Un))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();const O1={provide:dd,deps:[[new n.FiY,new n.tp0,dd],Un],useFactory:function cj(i,s){return i||new oj(s)}},FC=new n.OlP("MAT_DATE_RANGE_SELECTION_STRATEGY");let B1=(()=>{class i{constructor(e,t,r,d,h){this._changeDetectorRef=e,this._dateFormats=t,this._dateAdapter=r,this._dir=d,this._rangeStrategy=h,this._rerenderSubscription=Rt.w0.EMPTY,this.selectedChange=new n.vpe,this._userSelection=new n.vpe,this.activeDateChange=new n.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(e){const t=this._activeDate,r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),this._hasSameMonthAndYear(t,this._activeDate)||this._init()}get selected(){return this._selected}set selected(e){this._selected=e instanceof ra?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Zt(null)).subscribe(()=>this._init())}ngOnChanges(e){const t=e.comparisonStart||e.comparisonEnd;t&&!t.firstChange&&this._setRanges(this.selected)}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(e){const t=e.value,r=this._getDateFromDayOfMonth(t);let d,h;this._selected instanceof ra?(d=this._getDateInCurrentMonth(this._selected.start),h=this._getDateInCurrentMonth(this._selected.end)):d=h=this._getDateInCurrentMonth(this._selected),(d!==t||h!==t)&&this.selectedChange.emit(r),this._userSelection.emit({value:r,event:e.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}_updateActiveDate(e){const r=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(e.value),this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(e){const t=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&e.preventDefault());case 27:return void(null!=this._previewEnd&&!ri(e)&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:e}),e.preventDefault(),e.stopPropagation()));default:return}this._dateAdapter.compareDate(t,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(32===e.keyCode||13===e.keyCode)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(e)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(e){this._matCalendarBody._focusActiveCell(e)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:e,value:t}){if(this._rangeStrategy){const d=this._rangeStrategy.createPreview(t?t.rawValue:null,this.selected,e);this._previewStart=this._getCellCompareValue(d.start),this._previewEnd=this._getCellCompareValue(d.end),this._changeDetectorRef.detectChanges()}}_getDateFromDayOfMonth(e){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),e)}_initWeekdays(){const e=this._dateAdapter.getFirstDayOfWeek(),t=this._dateAdapter.getDayOfWeekNames("narrow");let d=this._dateAdapter.getDayOfWeekNames("long").map((h,c)=>({long:h,narrow:t[c]}));this._weekdays=d.slice(e).concat(d.slice(0,e))}_createWeekCells(){const e=this._dateAdapter.getNumDaysInMonth(this.activeDate),t=this._dateAdapter.getDateNames();this._weeks=[[]];for(let r=0,d=this._firstWeekOffset;r=0)&&(!this.maxDate||this._dateAdapter.compareDate(e,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(e))}_getDateInCurrentMonth(e){return e&&this._hasSameMonthAndYear(e,this.activeDate)?this._dateAdapter.getDate(e):null}_hasSameMonthAndYear(e,t){return!(!e||!t||this._dateAdapter.getMonth(e)!=this._dateAdapter.getMonth(t)||this._dateAdapter.getYear(e)!=this._dateAdapter.getYear(t))}_getCellCompareValue(e){if(e){const t=this._dateAdapter.getYear(e),r=this._dateAdapter.getMonth(e),d=this._dateAdapter.getDate(e);return new Date(t,r,d).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(e){e instanceof ra?(this._rangeStart=this._getCellCompareValue(e.start),this._rangeEnd=this._getCellCompareValue(e.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(e),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(e){return!this.dateFilter||this.dateFilter(e)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.sBO),n.Y36(_i,8),n.Y36(Un,8),n.Y36(xn,8),n.Y36(FC,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-month-view"]],viewQuery:function(e,t){if(1&e&&n.Gf(tf,5),2&e){let r;n.iGM(r=n.CRH())&&(t._matCalendarBody=r.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:[n.TTD],decls:7,vars:13,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["aria-hidden","true","colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","activeDateChange","previewChange","keyup","keydown"],["scope","col"],[1,"cdk-visually-hidden"],["aria-hidden","true"]],template:function(e,t){1&e&&(n.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),n.YNc(3,ZV,5,2,"th",2),n.qZA(),n.TgZ(4,"tr"),n._UZ(5,"th",3),n.qZA()(),n.TgZ(6,"tbody",4),n.NdJ("selectedValueChange",function(d){return t._dateSelected(d)})("activeDateChange",function(d){return t._updateActiveDate(d)})("previewChange",function(d){return t._previewChanged(d)})("keyup",function(d){return t._handleCalendarBodyKeyup(d)})("keydown",function(d){return t._handleCalendarBodyKeydown(d)}),n.qZA()()),2&e&&(n.xp6(3),n.Q6J("ngForOf",t._weekdays),n.xp6(3),n.Q6J("label",t._monthLabel)("rows",t._weeks)("todayValue",t._todayDate)("startValue",t._rangeStart)("endValue",t._rangeEnd)("comparisonStart",t._comparisonRangeStart)("comparisonEnd",t._comparisonRangeEnd)("previewStart",t._previewStart)("previewEnd",t._previewEnd)("isRange",t._isRange)("labelMinRequiredCells",3)("activeCell",t._dateAdapter.getDate(t.activeDate)-1))},dependencies:[x.sg,tf],encapsulation:2,changeDetection:0}),i})(),V1=(()=>{class i{constructor(e,t,r){this._changeDetectorRef=e,this._dateAdapter=t,this._dir=r,this._rerenderSubscription=Rt.w0.EMPTY,this.selectedChange=new n.vpe,this.yearSelected=new n.vpe,this.activeDateChange=new n.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(e){let t=this._activeDate;const r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),j1(this._dateAdapter,t,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(e){this._selected=e instanceof ra?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedYear(e)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Zt(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const t=this._dateAdapter.getYear(this._activeDate)-l_(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let r=0,d=[];r<24;r++)d.push(t+r),4==d.length&&(this._years.push(d.map(h=>this._createCellForYear(h))),d=[]);this._changeDetectorRef.markForCheck()}_yearSelected(e){const t=e.value,r=this._dateAdapter.createDate(t,0,1),d=this._getDateFromYear(t);this.yearSelected.emit(r),this.selectedChange.emit(d)}_updateActiveDate(e){const r=this._activeDate;this.activeDate=this._getDateFromYear(e.value),this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){const t=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-l_(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-l_(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-240:-24);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?240:24);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(t,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),e.preventDefault()}_handleCalendarBodyKeyup(e){(32===e.keyCode||13===e.keyCode)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_getActiveCell(){return l_(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(e){const t=this._dateAdapter.getMonth(this.activeDate),r=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,t,1));return this._dateAdapter.createDate(e,t,Math.min(this._dateAdapter.getDate(this.activeDate),r))}_createCellForYear(e){const t=this._dateAdapter.createDate(e,0,1),r=this._dateAdapter.getYearName(t),d=this.dateClass?this.dateClass(t,"multi-year"):void 0;return new fS(e,r,r,this._shouldEnableYear(e),d)}_shouldEnableYear(e){if(null==e||this.maxDate&&e>this._dateAdapter.getYear(this.maxDate)||this.minDate&&e{class i{constructor(e,t,r,d){this._changeDetectorRef=e,this._dateFormats=t,this._dateAdapter=r,this._dir=d,this._rerenderSubscription=Rt.w0.EMPTY,this.selectedChange=new n.vpe,this.monthSelected=new n.vpe,this.activeDateChange=new n.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(e){let t=this._activeDate;const r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),this._dateAdapter.getYear(t)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(e){this._selected=e instanceof ra?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedMonth(e)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Zt(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(e){const t=e.value,r=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,1);this.monthSelected.emit(r);const d=this._getDateFromMonth(t);this.selectedChange.emit(d)}_updateActiveDate(e){const r=this._activeDate;this.activeDate=this._getDateFromMonth(e.value),this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){const t=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?10:1);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(t,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(32===e.keyCode||13===e.keyCode)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let e=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(t=>t.map(r=>this._createCellForMonth(r,e[r]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(e){return e&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(e):null}_getDateFromMonth(e){const t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),r=this._dateAdapter.getNumDaysInMonth(t);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,Math.min(this._dateAdapter.getDate(this.activeDate),r))}_createCellForMonth(e,t){const r=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),d=this._dateAdapter.format(r,this._dateFormats.display.monthYearA11yLabel),h=this.dateClass?this.dateClass(r,"year"):void 0;return new fS(e,t.toLocaleUpperCase(),d,this._shouldEnableMonth(e),h)}_shouldEnableMonth(e){const t=this._dateAdapter.getYear(this.activeDate);if(null==e||this._isYearAndMonthAfterMaxDate(t,e)||this._isYearAndMonthBeforeMinDate(t,e))return!1;if(!this.dateFilter)return!0;for(let d=this._dateAdapter.createDate(t,e,1);this._dateAdapter.getMonth(d)==e;d=this._dateAdapter.addCalendarDays(d,1))if(this.dateFilter(d))return!0;return!1}_isYearAndMonthAfterMaxDate(e,t){if(this.maxDate){const r=this._dateAdapter.getYear(this.maxDate),d=this._dateAdapter.getMonth(this.maxDate);return e>r||e===r&&t>d}return!1}_isYearAndMonthBeforeMinDate(e,t){if(this.minDate){const r=this._dateAdapter.getYear(this.minDate),d=this._dateAdapter.getMonth(this.minDate);return e{class i{constructor(e,t,r,d,h){this._intl=e,this.calendar=t,this._dateAdapter=r,this._dateFormats=d,this._buttonDescriptionId="mat-calendar-button-"+fj++,this.calendar.stateChanges.subscribe(()=>h.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)-l_(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),r=t+24-1,d=this._dateAdapter.getYearName(this._dateAdapter.createDate(t,0,1)),h=this._dateAdapter.getYearName(this._dateAdapter.createDate(r,0,1));return this._intl.formatYearRange(d,h)}get periodButtonLabel(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-24)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:24)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(e,t){return"month"==this.calendar.currentView?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(t)&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(t):"year"==this.calendar.currentView?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(t):j1(this._dateAdapter,e,t,this.calendar.minDate,this.calendar.maxDate)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(o_),n.Y36((0,n.Gpc)(()=>yS)),n.Y36(Un,8),n.Y36(_i,8),n.Y36(n.sBO))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:QV,decls:11,vars:10,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","aria-live","polite",1,"mat-calendar-period-button",3,"click"],["viewBox","0 0 10 5","focusable","false",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[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(e,t){1&e&&(n.F$t(),n.TgZ(0,"div",0)(1,"div",1)(2,"button",2),n.NdJ("click",function(){return t.currentPeriodClicked()}),n.TgZ(3,"span"),n._uU(4),n.qZA(),n.O4$(),n.TgZ(5,"svg",3),n._UZ(6,"polygon",4),n.qZA()(),n.kcU(),n._UZ(7,"div",5),n.Hsn(8),n.TgZ(9,"button",6),n.NdJ("click",function(){return t.previousClicked()}),n.qZA(),n.TgZ(10,"button",7),n.NdJ("click",function(){return t.nextClicked()}),n.qZA()()()),2&e&&(n.xp6(2),n.uIk("aria-label",t.periodButtonLabel)("aria-describedby",t._buttonDescriptionId),n.xp6(1),n.uIk("id",t._buttonDescriptionId),n.xp6(1),n.Oqu(t.periodButtonText),n.xp6(1),n.ekj("mat-calendar-invert","month"!==t.calendar.currentView),n.xp6(4),n.Q6J("disabled",!t.previousEnabled()),n.uIk("aria-label",t.prevButtonLabel),n.xp6(1),n.Q6J("disabled",!t.nextEnabled()),n.uIk("aria-label",t.nextButtonLabel))},dependencies:[Ot],encapsulation:2,changeDetection:0}),i})(),yS=(()=>{class i{constructor(e,t,r,d){this._dateAdapter=t,this._dateFormats=r,this._changeDetectorRef=d,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new n.vpe,this.yearSelected=new n.vpe,this.monthSelected=new n.vpe,this.viewChanged=new n.vpe(!0),this._userSelection=new n.vpe,this.stateChanges=new Me.x,this._intlChanges=e.changes.subscribe(()=>{d.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get selected(){return this._selected}set selected(e){this._selected=e instanceof ra?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get activeDate(){return this._clampedActiveDate}set activeDate(e){this._clampedActiveDate=this._dateAdapter.clampDate(e,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(e){const t=this._currentView!==e?e:null;this._currentView=e,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),t&&this.viewChanged.emit(t)}ngAfterContentInit(){this._calendarHeaderPortal=new xa(this.headerComponent||mj),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(e){const t=e.minDate&&!this._dateAdapter.sameDate(e.minDate.previousValue,e.minDate.currentValue)?e.minDate:void 0,r=e.maxDate&&!this._dateAdapter.sameDate(e.maxDate.previousValue,e.maxDate.currentValue)?e.maxDate:void 0,d=t||r||e.dateFilter;if(d&&!d.firstChange){const h=this._getCurrentViewComponent();h&&(this._changeDetectorRef.detectChanges(),h._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(e){const t=e.value;(this.selected instanceof ra||t&&!this._dateAdapter.sameDate(t,this.selected))&&this.selectedChange.emit(t),this._userSelection.emit(e)}_yearSelectedInMultiYearView(e){this.yearSelected.emit(e)}_monthSelectedInYearView(e){this.monthSelected.emit(e)}_goToDateInView(e,t){this.activeDate=e,this.currentView=t}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(o_),n.Y36(Un,8),n.Y36(_i,8),n.Y36(n.sBO))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-calendar"]],viewQuery:function(e,t){if(1&e&&(n.Gf(B1,5),n.Gf(N1,5),n.Gf(V1,5)),2&e){let r;n.iGM(r=n.CRH())&&(t.monthView=r.first),n.iGM(r=n.CRH())&&(t.yearView=r.first),n.iGM(r=n.CRH())&&(t.multiYearView=r.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection"},exportAs:["matCalendar"],features:[n._Bn([O1]),n.TTD],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(e,t){1&e&&(n.YNc(0,KV,0,0,"ng-template",0),n.TgZ(1,"div",1),n.YNc(2,XV,1,8,"mat-month-view",2),n.YNc(3,ej,1,6,"mat-year-view",3),n.YNc(4,tj,1,6,"mat-multi-year-view",4),n.qZA()),2&e&&(n.Q6J("cdkPortalOutlet",t._calendarHeaderPortal),n.xp6(1),n.Q6J("ngSwitch",t.currentView),n.xp6(1),n.Q6J("ngSwitchCase","month"),n.xp6(1),n.Q6J("ngSwitchCase","year"),n.xp6(1),n.Q6J("ngSwitchCase","multi-year"))},dependencies:[x.RF,x.n9,vv,Sa,B1,N1,V1],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(4.7142857143% - 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:10px;height:5px;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}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.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}.mat-calendar-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),i})();const F1={transformPanel:fn("transformPanel",[xt("void => enter-dropdown",Tt("120ms cubic-bezier(0, 0, 0.2, 1)",Dl([He({opacity:0,transform:"scale(1, 0.8)"}),He({opacity:1,transform:"scale(1, 1)"})]))),xt("void => enter-dialog",Tt("150ms cubic-bezier(0, 0, 0.2, 1)",Dl([He({opacity:0,transform:"scale(0.7)"}),He({transform:"none",opacity:1})]))),xt("* => void",Tt("100ms linear",He({opacity:0})))]),fadeInCalendar:fn("fadeInCalendar",[Pt("void",He({opacity:0})),Pt("enter",He({opacity:1})),xt("void => *",Tt("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let gj=0;const Y1=new n.OlP("mat-datepicker-scroll-strategy"),bj={provide:Y1,deps:[rr],useFactory:function _j(i){return()=>i.scrollStrategies.reposition()}},wj=Ti(class{constructor(i){this._elementRef=i}});let yj=(()=>{class i extends wj{constructor(e,t,r,d,h,c){super(e),this._changeDetectorRef=t,this._globalModel=r,this._dateAdapter=d,this._rangeSelectionStrategy=h,this._subscriptions=new Rt.w0,this._animationDone=new Me.x,this._actionsPortal=null,this._closeButtonText=c.closeCalendarLabel}ngOnInit(){this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(e){const t=this._model.selection,r=e.value,d=t instanceof ra;if(d&&this._rangeSelectionStrategy){const h=this._rangeSelectionStrategy.selectionFinished(r,t,e.event);this._model.updateSelection(h,this)}else r&&(d||!this._dateAdapter.sameDate(r,t))&&this._model.add(r);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(e,t){this._model=e?this._globalModel.clone():this._globalModel,this._actionsPortal=e,t&&this._changeDetectorRef.detectChanges()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(dd),n.Y36(Un),n.Y36(FC,8),n.Y36(o_))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-datepicker-content"]],viewQuery:function(e,t){if(1&e&&n.Gf(yS,5),2&e){let r;n.iGM(r=n.CRH())&&(t._calendar=r.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(e,t){1&e&&n.WFA("@transformPanel.done",function(){return t._animationDone.next()}),2&e&&(n.d8E("@transformPanel",t._animationState),n.ekj("mat-datepicker-content-touch",t.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[n.qOj],decls:5,vars:24,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","yearSelected","monthSelected","viewChanged","_userSelection"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"color","focus","blur","click"]],template:function(e,t){if(1&e&&(n.TgZ(0,"div",0)(1,"mat-calendar",1),n.NdJ("yearSelected",function(d){return t.datepicker._selectYear(d)})("monthSelected",function(d){return t.datepicker._selectMonth(d)})("viewChanged",function(d){return t.datepicker._viewChanged(d)})("_userSelection",function(d){return t._handleUserSelection(d)}),n.qZA(),n.YNc(2,nj,0,0,"ng-template",2),n.TgZ(3,"button",3),n.NdJ("focus",function(){return t._closeButtonFocused=!0})("blur",function(){return t._closeButtonFocused=!1})("click",function(){return t.datepicker.close()}),n._uU(4),n.qZA()()),2&e){let r;n.ekj("mat-datepicker-content-container-with-custom-header",t.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",t._actionsPortal),n.uIk("aria-modal",!0)("aria-labelledby",null!==(r=t._dialogLabelId)&&void 0!==r?r:void 0),n.xp6(1),n.Q6J("id",t.datepicker.id)("ngClass",t.datepicker.panelClass)("startAt",t.datepicker.startAt)("startView",t.datepicker.startView)("minDate",t.datepicker._getMinDate())("maxDate",t.datepicker._getMaxDate())("dateFilter",t.datepicker._getDateFilter())("headerComponent",t.datepicker.calendarHeaderComponent)("selected",t._getSelected())("dateClass",t.datepicker.dateClass)("comparisonStart",t.comparisonStart)("comparisonEnd",t.comparisonEnd)("@fadeInCalendar","enter"),n.xp6(1),n.Q6J("cdkPortalOutlet",t._actionsPortal),n.xp6(1),n.ekj("cdk-visually-hidden",!t._closeButtonFocused),n.Q6J("color",t.color||"primary"),n.xp6(1),n.Oqu(t._closeButtonText)}},dependencies:[x.mk,Ot,Eb,Sa,yS],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}"],encapsulation:2,data:{animation:[F1.transformPanel,F1.fadeInCalendar]},changeDetection:0}),i})(),q1=(()=>{class i{constructor(e,t,r,d,h,c,o){this._overlay=e,this._ngZone=t,this._viewContainerRef=r,this._dateAdapter=h,this._dir=c,this._model=o,this._inputStateChanges=Rt.w0.EMPTY,this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new n.vpe,this.monthSelected=new n.vpe,this.viewChanged=new n.vpe(!0),this.openedStream=new n.vpe,this.closedStream=new n.vpe,this._opened=!1,this.id="mat-datepicker-"+gj++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new Me.x,this._scrollStrategy=d}get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(e){this._color=e}get touchUi(){return this._touchUi}set touchUi(e){this._touchUi=Oe(e)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(e){const t=Oe(e);t!==this._disabled&&(this._disabled=t,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(e){this._restoreFocus=Oe(e)}get panelClass(){return this._panelClass}set panelClass(e){this._panelClass=function av(i,s=/\s+/){const e=[];if(null!=i){const t=Array.isArray(i)?i:`${i}`.split(s);for(const r of t){const d=`${r}`.trim();d&&e.push(d)}}return e}(e)}get opened(){return this._opened}set opened(e){Oe(e)?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(e){const t=e.xPosition||e.yPosition;if(t&&!t.firstChange&&this._overlayRef){const r=this._overlayRef.getConfig().positionStrategy;r instanceof Em&&(this._setConnectedPositions(r),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(e){this._model.add(e)}_selectYear(e){this.yearSelected.emit(e)}_selectMonth(e){this.monthSelected.emit(e)}_viewChanged(e){this.viewChanged.emit(e)}registerInput(e){return this._inputStateChanges.unsubscribe(),this.datepickerInput=e,this._inputStateChanges=e.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(e){this._actionsPortal=e,this._componentRef?.instance._assignActions(e,!0)}removeActions(e){e===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||(this._focusedElementBeforeOpen=ho(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened)return;if(this._componentRef){const t=this._componentRef.instance;t._startExitAnimation(),t._animationDone.pipe((0,rt.q)(1)).subscribe(()=>this._destroyOverlay())}const e=()=>{this._opened&&(this._opened=!1,this.closedStream.emit(),this._focusedElementBeforeOpen=null)};this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(e)):e()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(e){e.datepicker=this,e.color=this.color,e._dialogLabelId=this.datepickerInput.getOverlayLabelId(),e._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();const e=this.touchUi,t=new xa(yj,this._viewContainerRef),r=this._overlayRef=this._overlay.create(new Ml({positionStrategy:e?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[e?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:e?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(e?"dialog":"popup")}));this._getCloseStream(r).subscribe(d=>{d&&d.preventDefault(),this.close()}),r.keydownEvents().subscribe(d=>{const h=d.keyCode;(38===h||40===h||37===h||39===h||33===h||34===h)&&d.preventDefault()}),this._componentRef=r.attach(t),this._forwardContentValues(this._componentRef.instance),e||this._ngZone.onStable.pipe((0,rt.q)(1)).subscribe(()=>r.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const e=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(e)}_setConnectedPositions(e){const t="end"===this.xPosition?"end":"start",r="start"===t?"end":"start",d="above"===this.yPosition?"bottom":"top",h="top"===d?"bottom":"top";return e.withPositions([{originX:t,originY:h,overlayX:t,overlayY:d},{originX:t,originY:d,overlayX:t,overlayY:h},{originX:r,originY:h,overlayX:r,overlayY:d},{originX:r,originY:d,overlayX:r,overlayY:h}])}_getCloseStream(e){return(0,Sn.T)(e.backdropClick(),e.detachments(),e.keydownEvents().pipe((0,Ce.h)(t=>27===t.keyCode&&!ri(t)||this.datepickerInput&&ri(t,"altKey")&&38===t.keyCode)))}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(rr),n.Y36(n.R0b),n.Y36(n.s_b),n.Y36(Y1),n.Y36(Un,8),n.Y36(xn,8),n.Y36(dd))},i.\u0275dir=n.lG2({type:i,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:"touchUi",disabled:"disabled",xPosition:"xPosition",yPosition:"yPosition",restoreFocus:"restoreFocus",dateClass:"dateClass",panelClass:"panelClass",opened:"opened"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[n.TTD]}),i})(),CS=(()=>{class i extends q1{}return i.\u0275fac=function(){let s;return function(t){return(s||(s=n.n5z(i)))(t||i)}}(),i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[n._Bn([O1,{provide:q1,useExisting:i}]),n.qOj],decls:0,vars:0,template:function(e,t){},encapsulation:2,changeDetection:0}),i})();class YC{constructor(s,e){this.target=s,this.targetElement=e,this.value=this.target.value}}let Cj=(()=>{class i{constructor(e,t,r){this._elementRef=e,this._dateAdapter=t,this._dateFormats=r,this.dateChange=new n.vpe,this.dateInput=new n.vpe,this.stateChanges=new Me.x,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=Rt.w0.EMPTY,this._localeSubscription=Rt.w0.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=d=>{const h=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(d.value));return!h||this._matchesFilter(h)?null:{matDatepickerFilter:!0}},this._minValidator=d=>{const h=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(d.value)),c=this._getMinDate();return!c||!h||this._dateAdapter.compareDate(c,h)<=0?null:{matDatepickerMin:{min:c,actual:h}}},this._maxValidator=d=>{const h=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(d.value)),c=this._getMaxDate();return!c||!h||this._dateAdapter.compareDate(c,h)>=0?null:{matDatepickerMax:{max:c,actual:h}}},this._lastValueValid=!1,this._localeSubscription=t.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(e){this._assignValueProgrammatically(e)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(e){const t=Oe(e),r=this._elementRef.nativeElement;this._disabled!==t&&(this._disabled=t,this.stateChanges.next(void 0)),t&&this._isInitialized&&r.blur&&r.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(e){this._model=e,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(t=>{if(this._shouldHandleChangeEvent(t)){const r=this._getValueFromModel(t.selection);this._lastValueValid=this._isValidValue(r),this._cvaOnChange(r),this._onTouched(),this._formatValue(r),this.dateInput.emit(new YC(this,this._elementRef.nativeElement)),this.dateChange.emit(new YC(this,this._elementRef.nativeElement))}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(e){(function Aj(i,s){const e=Object.keys(i);for(let t of e){const{previousValue:r,currentValue:d}=i[t];if(!s.isDateInstance(r)||!s.isDateInstance(d))return!0;if(!s.sameDate(r,d))return!0}return!1})(e,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(e){this._validatorOnChange=e}validate(e){return this._validator?this._validator(e):null}writeValue(e){this._assignValueProgrammatically(e)}registerOnChange(e){this._cvaOnChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_onKeydown(e){e.altKey&&40===e.keyCode&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),e.preventDefault())}_onInput(e){const t=this._lastValueValid;let r=this._dateAdapter.parse(e,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(r),r=this._dateAdapter.getValidDateOrNull(r);const d=!this._dateAdapter.sameDate(r,this.value);!r||d?this._cvaOnChange(r):(e&&!this.value&&this._cvaOnChange(r),t!==this._lastValueValid&&this._validatorOnChange()),d&&(this._assignValue(r),this.dateInput.emit(new YC(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new YC(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(e){this._elementRef.nativeElement.value=null!=e?this._dateAdapter.format(e,this._dateFormats.display.dateInput):""}_assignValue(e){this._model?(this._assignValueToModel(e),this._pendingValue=null):this._pendingValue=e}_isValidValue(e){return!e||this._dateAdapter.isValid(e)}_parentDisabled(){return!1}_assignValueProgrammatically(e){e=this._dateAdapter.deserialize(e),this._lastValueValid=this._isValidValue(e),e=this._dateAdapter.getValidDateOrNull(e),this._assignValue(e),this._formatValue(e)}_matchesFilter(e){const t=this._getDateFilter();return!t||t(e)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(Un,8),n.Y36(_i,8))},i.\u0275dir=n.lG2({type:i,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[n.TTD]}),i})();const vj={provide:sr,useExisting:(0,n.Gpc)(()=>c_),multi:!0},Tj={provide:wi,useExisting:(0,n.Gpc)(()=>c_),multi:!0};let c_=(()=>{class i extends Cj{constructor(e,t,r,d){super(e,t,r),this._formField=d,this._closedSubscription=Rt.w0.EMPTY,this._validator=kn.compose(super._getValidators())}set matDatepicker(e){e&&(this._datepicker=e,this._closedSubscription=e.closedStream.subscribe(()=>this._onTouched()),this._registerModel(e.registerInput(this)))}get min(){return this._min}set min(e){const t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(t,this._min)||(this._min=t,this._validatorOnChange())}get max(){return this._max}set max(e){const t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(t,this._max)||(this._max=t,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(e){const t=this._matchesFilter(this.value);this._dateFilter=e,this._matchesFilter(this.value)!==t&&this._validatorOnChange()}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(e){return e}_assignValueToModel(e){this._model&&this._model.updateSelection(e,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(e){return e.source!==this}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(Un,8),n.Y36(_i,8),n.Y36(mp,8))},i.\u0275dir=n.lG2({type:i,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(e,t){1&e&&n.NdJ("input",function(d){return t._onInput(d.target.value)})("change",function(){return t._onChange()})("blur",function(){return t._onBlur()})("keydown",function(d){return t._onKeydown(d)}),2&e&&(n.Ikx("disabled",t.disabled),n.uIk("aria-haspopup",t._datepicker?"dialog":null)("aria-owns",(null==t._datepicker?null:t._datepicker.opened)&&t._datepicker.id||null)("min",t.min?t._dateAdapter.toIso8601(t.min):null)("max",t.max?t._dateAdapter.toIso8601(t.max):null)("data-mat-calendar",t._datepicker?t._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[n._Bn([vj,Tj,{provide:tD,useExisting:i}]),n.qOj]}),i})(),xj=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["","matDatepickerToggleIcon",""]]}),i})(),AS=(()=>{class i{constructor(e,t,r){this._intl=e,this._changeDetectorRef=t,this._stateChanges=Rt.w0.EMPTY;const d=Number(r);this.tabIndex=d||0===d?d:null}get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(e){this._disabled=Oe(e)}ngOnChanges(e){e.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(e){this.datepicker&&!this.disabled&&(this.datepicker.open(),e.stopPropagation())}_watchStateChanges(){const e=this.datepicker?this.datepicker.stateChanges:(0,xe.of)(),t=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:(0,xe.of)(),r=this.datepicker?(0,Sn.T)(this.datepicker.openedStream,this.datepicker.closedStream):(0,xe.of)();this._stateChanges.unsubscribe(),this._stateChanges=(0,Sn.T)(this._intl.changes,e,t,r).subscribe(()=>this._changeDetectorRef.markForCheck())}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(o_),n.Y36(n.sBO),n.$8M("tabindex"))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-datepicker-toggle"]],contentQueries:function(e,t,r){if(1&e&&n.Suo(r,xj,5),2&e){let d;n.iGM(d=n.CRH())&&(t._customIcon=d.first)}},viewQuery:function(e,t){if(1&e&&n.Gf(ij,5),2&e){let r;n.iGM(r=n.CRH())&&(t._button=r.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(e,t){1&e&&n.NdJ("click",function(d){return t._open(d)}),2&e&&(n.uIk("tabindex",null)("data-mat-calendar",t.datepicker?t.datepicker.id:null),n.ekj("mat-datepicker-toggle-active",t.datepicker&&t.datepicker.opened)("mat-accent",t.datepicker&&"accent"===t.datepicker.color)("mat-warn",t.datepicker&&"warn"===t.datepicker.color))},inputs:{datepicker:["for","datepicker"],tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[n.TTD],ngContentSelectors:sj,decls:4,vars:6,consts:[["mat-icon-button","","type","button",3,"disabled","disableRipple"],["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(e,t){1&e&&(n.F$t(aj),n.TgZ(0,"button",0,1),n.YNc(2,rj,2,0,"svg",2),n.Hsn(3),n.qZA()),2&e&&(n.Q6J("disabled",t.disabled)("disableRipple",t.disableRipple),n.uIk("aria-haspopup",t.datepicker?"dialog":null)("aria-label",t.ariaLabel||t._intl.openCalendarLabel)("tabindex",t.disabled?-1:t.tabIndex),n.xp6(2),n.Q6J("ngIf",!t._customIcon))},dependencies:[x.O5,Ot],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}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}"],encapsulation:2,changeDetection:0}),i})(),vS=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[o_,bj],imports:[x.ez,bi,El,bl,Hs,ht,Ds]}),i})();const Sj=["mat-sort-header",""];function Mj(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"div",3),n.NdJ("@arrowPosition.start",function(){n.CHM(e);const r=n.oxw();return n.KtG(r._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){n.CHM(e);const r=n.oxw();return n.KtG(r._disableViewStateAnimation=!1)}),n._UZ(1,"div",4),n.TgZ(2,"div",5),n._UZ(3,"div",6)(4,"div",7)(5,"div",8),n.qZA()()}if(2&i){const e=n.oxw();n.Q6J("@arrowOpacity",e._getArrowViewState())("@arrowPosition",e._getArrowViewState())("@allowChildren",e._getArrowDirectionState()),n.xp6(2),n.Q6J("@indicator",e._getArrowDirectionState()),n.xp6(1),n.Q6J("@leftPointer",e._getArrowDirectionState()),n.xp6(1),n.Q6J("@rightPointer",e._getArrowDirectionState())}}const Ej=["*"],z1=new n.OlP("MAT_SORT_DEFAULT_OPTIONS"),Dj=Zh(Qr(class{}));let Oa=(()=>{class i extends Dj{constructor(e){super(),this._defaultOptions=e,this.sortables=new Map,this._stateChanges=new Me.x,this.start="asc",this._direction="",this.sortChange=new n.vpe}get direction(){return this._direction}set direction(e){this._direction=e}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=Oe(e)}register(e){this.sortables.set(e.id,e)}deregister(e){this.sortables.delete(e.id)}sort(e){this.active!=e.id?(this.active=e.id,this.direction=e.start?e.start:this.start):this.direction=this.getNextSortDirection(e),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(e){if(!e)return"";let r=function Hj(i,s){let e=["asc","desc"];return"desc"==i&&e.reverse(),s||e.push(""),e}(e.start||this.start,e?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear),d=r.indexOf(this.direction)+1;return d>=r.length&&(d=0),r[d]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(z1,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],active:["matSortActive","active"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[n.qOj,n.TTD]}),i})();const ud=jM.ENTERING+" "+VM.STANDARD_CURVE,nf={indicator:fn("indicator",[Pt("active-asc, asc",He({transform:"translateY(0px)"})),Pt("active-desc, desc",He({transform:"translateY(10px)"})),xt("active-asc <=> active-desc",Tt(ud))]),leftPointer:fn("leftPointer",[Pt("active-asc, asc",He({transform:"rotate(-45deg)"})),Pt("active-desc, desc",He({transform:"rotate(45deg)"})),xt("active-asc <=> active-desc",Tt(ud))]),rightPointer:fn("rightPointer",[Pt("active-asc, asc",He({transform:"rotate(45deg)"})),Pt("active-desc, desc",He({transform:"rotate(-45deg)"})),xt("active-asc <=> active-desc",Tt(ud))]),arrowOpacity:fn("arrowOpacity",[Pt("desc-to-active, asc-to-active, active",He({opacity:1})),Pt("desc-to-hint, asc-to-hint, hint",He({opacity:.54})),Pt("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",He({opacity:0})),xt("* => asc, * => desc, * => active, * => hint, * => void",Tt("0ms")),xt("* <=> *",Tt(ud))]),arrowPosition:fn("arrowPosition",[xt("* => desc-to-hint, * => desc-to-active",Tt(ud,Dl([He({transform:"translateY(-25%)"}),He({transform:"translateY(0)"})]))),xt("* => hint-to-desc, * => active-to-desc",Tt(ud,Dl([He({transform:"translateY(0)"}),He({transform:"translateY(25%)"})]))),xt("* => asc-to-hint, * => asc-to-active",Tt(ud,Dl([He({transform:"translateY(25%)"}),He({transform:"translateY(0)"})]))),xt("* => hint-to-asc, * => active-to-asc",Tt(ud,Dl([He({transform:"translateY(0)"}),He({transform:"translateY(-25%)"})]))),Pt("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",He({transform:"translateY(0)"})),Pt("hint-to-desc, active-to-desc, desc",He({transform:"translateY(-25%)"})),Pt("hint-to-asc, active-to-asc, asc",He({transform:"translateY(25%)"}))]),allowChildren:fn("allowChildren",[xt("* <=> *",[gr("@*",pp(),{optional:!0})])])};let qC=(()=>{class i{constructor(){this.changes=new Me.x}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const Rj={provide:qC,deps:[[new n.FiY,new n.tp0,qC]],useFactory:function Pj(i){return i||new qC}},kj=Qr(class{});let rf=(()=>{class i extends kj{constructor(e,t,r,d,h,c,o,a){super(),this._intl=e,this._changeDetectorRef=t,this._sort=r,this._columnDef=d,this._focusMonitor=h,this._elementRef=c,this._ariaDescriber=o,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",a?.arrowPosition&&(this.arrowPosition=a?.arrowPosition),this._handleStateChanges()}get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(e){this._updateSortActionDescription(e)}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=Oe(e)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{const t=!!e;t!==this._showIndicatorHint&&(this._setIndicatorHintVisible(t),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(e){this._isDisabled()&&e||(this._showIndicatorHint=e,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(e){this._viewState=e||{},this._disableViewStateAnimation&&(this._viewState={toState:e.toState})}_toggleOnInteraction(){this._sort.sort(this),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(e){!this._isDisabled()&&(32===e.keyCode||13===e.keyCode)&&(e.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const e=this._viewState.fromState;return(e?`${e}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(e){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,e)),this._sortActionDescription=e}_handleStateChanges(){this._rerenderSubscription=(0,Sn.T)(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(qC),n.Y36(n.sBO),n.Y36(Oa,8),n.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),n.Y36(Ii),n.Y36(n.SBq),n.Y36(Kd,8),n.Y36(z1,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(e,t){1&e&&n.NdJ("click",function(){return t._handleClick()})("keydown",function(d){return t._handleKeydown(d)})("mouseenter",function(){return t._setIndicatorHintVisible(!0)})("mouseleave",function(){return t._setIndicatorHintVisible(!1)}),2&e&&(n.uIk("aria-sort",t._getAriaSortAttribute()),n.ekj("mat-sort-header-disabled",t._isDisabled()))},inputs:{disabled:"disabled",id:["mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[n.qOj],attrs:Sj,ngContentSelectors:Ej,decls:4,vars:7,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(e,t){1&e&&(n.F$t(),n.TgZ(0,"div",0)(1,"div",1),n.Hsn(2),n.qZA(),n.YNc(3,Mj,6,6,"div",2),n.qZA()),2&e&&(n.ekj("mat-sort-header-sorted",t._isSorted())("mat-sort-header-position-before","before"===t.arrowPosition),n.uIk("tabindex",t._isDisabled()?null:0)("role",t._isDisabled()?null:"button"),n.xp6(3),n.Q6J("ngIf",t._renderArrow()))},dependencies:[x.O5],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}"],encapsulation:2,data:{animation:[nf.indicator,nf.leftPointer,nf.rightPointer,nf.arrowOpacity,nf.arrowPosition,nf.allowChildren]},changeDetection:0}),i})(),TS=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[Rj],imports:[x.ez,ht]}),i})();function Lj(i,s){1&i&&n.Hsn(0)}const G1=["*"];function Ij(i,s){}const Oj=function(i){return{animationDuration:i}},Bj=function(i,s){return{value:i,params:s}},Vj=["tabListContainer"],jj=["tabList"],Uj=["tabListInner"],Nj=["nextPaginator"],Fj=["previousPaginator"],Yj=["tabBodyWrapper"],qj=["tabHeader"];function zj(i,s){}function Gj(i,s){if(1&i&&n.YNc(0,zj,0,0,"ng-template",10),2&i){const e=n.oxw().$implicit;n.Q6J("cdkPortalOutlet",e.templateLabel)}}function Wj(i,s){if(1&i&&n._uU(0),2&i){const e=n.oxw().$implicit;n.Oqu(e.textLabel)}}function $j(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"div",6),n.NdJ("click",function(){const r=n.CHM(e),d=r.$implicit,h=r.index,c=n.oxw(),o=n.MAs(1);return n.KtG(c._handleClick(d,o,h))})("cdkFocusChange",function(r){const h=n.CHM(e).index,c=n.oxw();return n.KtG(c._tabFocusChanged(r,h))}),n.TgZ(1,"div",7),n.YNc(2,Gj,1,1,"ng-template",8),n.YNc(3,Wj,1,1,"ng-template",null,9,n.W1O),n.qZA()()}if(2&i){const e=s.$implicit,t=s.index,r=n.MAs(4),d=n.oxw();n.ekj("mat-tab-label-active",d.selectedIndex===t),n.Q6J("id",d._getTabLabelId(t))("ngClass",e.labelClass)("disabled",e.disabled)("matRippleDisabled",e.disabled||d.disableRipple),n.uIk("tabIndex",d._getTabIndex(e,t))("aria-posinset",t+1)("aria-setsize",d._tabs.length)("aria-controls",d._getTabContentId(t))("aria-selected",d.selectedIndex===t)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null),n.xp6(2),n.Q6J("ngIf",e.templateLabel)("ngIfElse",r)}}function Jj(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"mat-tab-body",11),n.NdJ("_onCentered",function(){n.CHM(e);const r=n.oxw();return n.KtG(r._removeTabBodyWrapperHeight())})("_onCentering",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d._setTabBodyWrapperHeight(r))}),n.qZA()}if(2&i){const e=s.$implicit,t=s.index,r=n.oxw();n.ekj("mat-tab-body-active",r.selectedIndex===t),n.Q6J("id",r._getTabContentId(t))("ngClass",e.bodyClass)("content",e.content)("position",e.position)("origin",e.origin)("animationDuration",r.animationDuration)("preserveContent",r.preserveContent),n.uIk("tabindex",null!=r.contentTabIndex&&r.selectedIndex===t?r.contentTabIndex:null)("aria-labelledby",r._getTabLabelId(t))}}const Zj=new n.OlP("MatInkBarPositioner",{providedIn:"root",factory:function Qj(){return s=>({left:s?(s.offsetLeft||0)+"px":"0",width:s?(s.offsetWidth||0)+"px":"0"})}});let W1=(()=>{class i{constructor(e,t,r,d){this._elementRef=e,this._ngZone=t,this._inkBarPositioner=r,this._animationMode=d}alignToElement(e){this.show(),this._ngZone.run(()=>{this._ngZone.onStable.pipe((0,rt.q)(1)).subscribe(()=>{const t=this._inkBarPositioner(e),r=this._elementRef.nativeElement;r.style.left=t.left,r.style.width=t.width})})}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(n.R0b),n.Y36(Zj),n.Y36(n.QbO,8))},i.\u0275dir=n.lG2({type:i,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(e,t){2&e&&n.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode)}}),i})();const $1=new n.OlP("MatTabContent");let Kj=(()=>{class i{constructor(e){this.template=e}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.Rgc))},i.\u0275dir=n.lG2({type:i,selectors:[["","matTabContent",""]],features:[n._Bn([{provide:$1,useExisting:i}])]}),i})();const J1=new n.OlP("MatTabLabel"),Z1=new n.OlP("MAT_TAB");let Xj=(()=>{class i extends Lc{constructor(e,t,r){super(e,t),this._closestTab=r}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.Rgc),n.Y36(n.s_b),n.Y36(Z1,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[n._Bn([{provide:J1,useExisting:i}]),n.qOj]}),i})();const e2=Qr(class{}),Q1=new n.OlP("MAT_TAB_GROUP");let K1=(()=>{class i extends e2{constructor(e,t){super(),this._viewContainerRef=e,this._closestTabGroup=t,this.textLabel="",this._contentPortal=null,this._stateChanges=new Me.x,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(e){this._setTemplateLabelInput(e)}get content(){return this._contentPortal}ngOnChanges(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new Ir(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(e){e&&e._closestTab===this&&(this._templateLabel=e)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.s_b),n.Y36(Q1,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-tab"]],contentQueries:function(e,t,r){if(1&e&&(n.Suo(r,J1,5),n.Suo(r,$1,7,n.Rgc)),2&e){let d;n.iGM(d=n.CRH())&&(t.templateLabel=d.first),n.iGM(d=n.CRH())&&(t._explicitContent=d.first)}},viewQuery:function(e,t){if(1&e&&n.Gf(n.Rgc,7),2&e){let r;n.iGM(r=n.CRH())&&(t._implicitContent=r.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],features:[n._Bn([{provide:Z1,useExisting:i}]),n.qOj,n.TTD],ngContentSelectors:G1,decls:1,vars:0,template:function(e,t){1&e&&(n.F$t(),n.YNc(0,Lj,1,0,"ng-template"))},encapsulation:2}),i})();const t2={translateTab:fn("translateTab",[Pt("center, void, left-origin-center, right-origin-center",He({transform:"none"})),Pt("left",He({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),Pt("right",He({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),xt("* => left, * => right, left => center, right => center",Tt("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),xt("void => left-origin-center",[He({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),Tt("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),xt("void => right-origin-center",[He({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),Tt("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let n2=(()=>{class i extends Sa{constructor(e,t,r,d){super(e,t,d),this._host=r,this._centeringSub=Rt.w0.EMPTY,this._leavingSub=Rt.w0.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(Zt(this._host._isCenterPosition(this._host._position))).subscribe(e=>{e&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n._Vd),n.Y36(n.s_b),n.Y36((0,n.Gpc)(()=>X1)),n.Y36(x.K0))},i.\u0275dir=n.lG2({type:i,selectors:[["","matTabBodyHost",""]],features:[n.qOj]}),i})(),r2=(()=>{class i{constructor(e,t,r){this._elementRef=e,this._dir=t,this._dirChangeSubscription=Rt.w0.EMPTY,this._translateTabComplete=new Me.x,this._onCentering=new n.vpe,this._beforeCentering=new n.vpe,this._afterLeavingCenter=new n.vpe,this._onCentered=new n.vpe(!0),this.animationDuration="500ms",this.preserveContent=!1,t&&(this._dirChangeSubscription=t.change.subscribe(d=>{this._computePositionAnimationState(d),r.markForCheck()})),this._translateTabComplete.pipe(mo((d,h)=>d.fromState===h.fromState&&d.toState===h.toState)).subscribe(d=>{this._isCenterPosition(d.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(d.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(e){this._positionIndex=e,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(e){const t=this._isCenterPosition(e.toState);this._beforeCentering.emit(t),t&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(e){return"center"==e||"left-origin-center"==e||"right-origin-center"==e}_computePositionAnimationState(e=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==e?"left":"right":this._positionIndex>0?"ltr"==e?"right":"left":"center"}_computePositionFromOrigin(e){const t=this._getLayoutDirection();return"ltr"==t&&e<=0||"rtl"==t&&e>0?"left-origin-center":"right-origin-center"}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(xn,8),n.Y36(n.sBO))},i.\u0275dir=n.lG2({type:i,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),i})(),X1=(()=>{class i extends r2{constructor(e,t,r){super(e,t,r)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(xn,8),n.Y36(n.sBO))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-tab-body"]],viewQuery:function(e,t){if(1&e&&n.Gf(Sa,5),2&e){let r;n.iGM(r=n.CRH())&&(t._portalHost=r.first)}},hostAttrs:[1,"mat-tab-body"],features:[n.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(e,t){1&e&&(n.TgZ(0,"div",0,1),n.NdJ("@translateTab.start",function(d){return t._onTranslateTabStarted(d)})("@translateTab.done",function(d){return t._translateTabComplete.next(d)}),n.YNc(2,Ij,0,0,"ng-template",2),n.qZA()),2&e&&n.Q6J("@translateTab",n.WLB(3,Bj,t._position,n.VKq(1,Oj,t.animationDuration)))},dependencies:[n2],styles:['.mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}.mat-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[t2.translateTab]}}),i})();const eH=new n.OlP("MAT_TABS_CONFIG"),a2=Qr(class{});let tH=(()=>{class i extends a2{constructor(e){super(),this.elementRef=e}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq))},i.\u0275dir=n.lG2({type:i,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(e,t){2&e&&(n.uIk("aria-disabled",!!t.disabled),n.ekj("mat-tab-disabled",t.disabled))},inputs:{disabled:"disabled"},features:[n.qOj]}),i})();const nH=Ja({passive:!0});let l2=(()=>{class i{constructor(e,t,r,d,h,c,o){this._elementRef=e,this._changeDetectorRef=t,this._viewportRuler=r,this._dir=d,this._ngZone=h,this._platform=c,this._animationMode=o,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new Me.x,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new Me.x,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new n.vpe,this.indexFocused=new n.vpe,h.runOutsideAngular(()=>{ea(e.nativeElement,"mouseleave").pipe(Ke(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get disablePagination(){return this._disablePagination}set disablePagination(e){this._disablePagination=Oe(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){e=_n(e),this._selectedIndex!=e&&(this._selectedIndexChanged=!0,this._selectedIndex=e,this._keyManager&&this._keyManager.updateActiveItem(e))}ngAfterViewInit(){ea(this._previousPaginator.nativeElement,"touchstart",nH).pipe(Ke(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),ea(this._nextPaginator.nativeElement,"touchstart",nH).pipe(Ke(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const e=this._dir?this._dir.change:(0,xe.of)("ltr"),t=this._viewportRuler.change(150),r=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new Mc(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe((0,rt.q)(1)).subscribe(r),(0,Sn.T)(e,t,this._items.changes,this._itemsResized()).pipe(Ke(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),r()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe(Ke(this._destroyed)).subscribe(d=>{this.indexFocused.emit(d),this._setTabFocus(d)})}_itemsResized(){return"function"!=typeof ResizeObserver?Pn.E:this._items.changes.pipe(Zt(this._items),(0,bn.w)(e=>new ln.y(t=>this._ngZone.runOutsideAngular(()=>{const r=new ResizeObserver(()=>{t.next()});return e.forEach(d=>{r.observe(d.elementRef.nativeElement)}),()=>{r.disconnect()}}))),Fh(1))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(e){if(!ri(e))switch(e.keyCode){case 13:case 32:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(e));break;default:this._keyManager.onKeydown(e)}}_onContentChanges(){const e=this._elementRef.nativeElement.textContent;e!==this._currentTextContent&&(this._currentTextContent=e||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(e){!this._isValidIndex(e)||this.focusIndex===e||!this._keyManager||this._keyManager.setActiveItem(e)}_isValidIndex(e){if(!this._items)return!0;const t=this._items?this._items.toArray()[e]:null;return!!t&&!t.disabled}_setTabFocus(e){if(this._showPaginationControls&&this._scrollToLabel(e),this._items&&this._items.length){this._items.toArray()[e].focus();const t=this._tabListContainer.nativeElement;t.scrollLeft="ltr"==this._getLayoutDirection()?0:t.scrollWidth-t.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const e=this.scrollDistance,t="ltr"===this._getLayoutDirection()?-e:e;this._tabList.nativeElement.style.transform=`translateX(${Math.round(t)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(e){this._scrollTo(e)}_scrollHeader(e){return this._scrollTo(this._scrollDistance+("before"==e?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(e){this._stopInterval(),this._scrollHeader(e)}_scrollToLabel(e){if(this.disablePagination)return;const t=this._items?this._items.toArray()[e]:null;if(!t)return;const r=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:d,offsetWidth:h}=t.elementRef.nativeElement;let c,o;"ltr"==this._getLayoutDirection()?(c=d,o=c+h):(o=this._tabListInner.nativeElement.offsetWidth-d,c=o-h);const a=this.scrollDistance,l=this.scrollDistance+r;cl&&(this.scrollDistance+=o-l+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const e=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;e||(this.scrollDistance=0),e!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=e}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,t=e?e.elementRef.nativeElement:null;t?this._inkBar.alignToElement(t):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(e,t){t&&null!=t.button&&0!==t.button||(this._stopInterval(),(0,wm.H)(650,100).pipe(Ke((0,Sn.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:r,distance:d}=this._scrollHeader(e);(0===d||d>=r)&&this._stopInterval()}))}_scrollTo(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const t=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(t,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:t,distance:this._scrollDistance}}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(va),n.Y36(xn,8),n.Y36(n.R0b),n.Y36(yn),n.Y36(n.QbO,8))},i.\u0275dir=n.lG2({type:i,inputs:{disablePagination:"disablePagination"}}),i})(),c2=(()=>{class i extends l2{constructor(e,t,r,d,h,c,o){super(e,t,r,d,h,c,o),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=Oe(e)}_itemSelected(e){e.preventDefault()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(va),n.Y36(xn,8),n.Y36(n.R0b),n.Y36(yn),n.Y36(n.QbO,8))},i.\u0275dir=n.lG2({type:i,inputs:{disableRipple:"disableRipple"},features:[n.qOj]}),i})(),d2=(()=>{class i extends c2{constructor(e,t,r,d,h,c,o){super(e,t,r,d,h,c,o)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(va),n.Y36(xn,8),n.Y36(n.R0b),n.Y36(yn),n.Y36(n.QbO,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-tab-header"]],contentQueries:function(e,t,r){if(1&e&&n.Suo(r,tH,4),2&e){let d;n.iGM(d=n.CRH())&&(t._items=d)}},viewQuery:function(e,t){if(1&e&&(n.Gf(W1,7),n.Gf(Vj,7),n.Gf(jj,7),n.Gf(Uj,7),n.Gf(Nj,5),n.Gf(Fj,5)),2&e){let r;n.iGM(r=n.CRH())&&(t._inkBar=r.first),n.iGM(r=n.CRH())&&(t._tabListContainer=r.first),n.iGM(r=n.CRH())&&(t._tabList=r.first),n.iGM(r=n.CRH())&&(t._tabListInner=r.first),n.iGM(r=n.CRH())&&(t._nextPaginator=r.first),n.iGM(r=n.CRH())&&(t._previousPaginator=r.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(e,t){2&e&&n.ekj("mat-tab-header-pagination-controls-enabled",t._showPaginationControls)("mat-tab-header-rtl","rtl"==t._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[n.qOj],ngContentSelectors:G1,decls:14,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(e,t){1&e&&(n.F$t(),n.TgZ(0,"button",0,1),n.NdJ("click",function(){return t._handlePaginatorClick("before")})("mousedown",function(d){return t._handlePaginatorPress("before",d)})("touchend",function(){return t._stopInterval()}),n._UZ(2,"div",2),n.qZA(),n.TgZ(3,"div",3,4),n.NdJ("keydown",function(d){return t._handleKeydown(d)}),n.TgZ(5,"div",5,6),n.NdJ("cdkObserveContent",function(){return t._onContentChanges()}),n.TgZ(7,"div",7,8),n.Hsn(9),n.qZA(),n._UZ(10,"mat-ink-bar"),n.qZA()(),n.TgZ(11,"button",9,10),n.NdJ("mousedown",function(d){return t._handlePaginatorPress("after",d)})("click",function(){return t._handlePaginatorClick("after")})("touchend",function(){return t._stopInterval()}),n._UZ(13,"div",2),n.qZA()),2&e&&(n.ekj("mat-tab-header-pagination-disabled",t._disableScrollBefore),n.Q6J("matRippleDisabled",t._disableScrollBefore||t.disableRipple)("disabled",t._disableScrollBefore||null),n.xp6(5),n.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode),n.xp6(6),n.ekj("mat-tab-header-pagination-disabled",t._disableScrollAfter),n.Q6J("matRippleDisabled",t._disableScrollAfter||t.disableRipple)("disabled",t._disableScrollAfter||null))},dependencies:[Lr,qh,W1],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-list._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}.mat-tab-label::before{margin:5px}@media(max-width: 599px){.mat-tab-label{min-width:72px}}"],encapsulation:2}),i})(),u2=0;class h2{}const p2=Ti(mr(class{constructor(i){this._elementRef=i}}),"primary");let f2=(()=>{class i extends p2{constructor(e,t,r,d){super(e),this._changeDetectorRef=t,this._animationMode=d,this._tabs=new n.n_E,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=Rt.w0.EMPTY,this._tabLabelSubscription=Rt.w0.EMPTY,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this._disablePagination=!1,this._preserveContent=!1,this.selectedIndexChange=new n.vpe,this.focusChange=new n.vpe,this.animationDone=new n.vpe,this.selectedTabChange=new n.vpe(!0),this._groupId=u2++,this.animationDuration=r&&r.animationDuration?r.animationDuration:"500ms",this.disablePagination=!(!r||null==r.disablePagination)&&r.disablePagination,this.dynamicHeight=!(!r||null==r.dynamicHeight)&&r.dynamicHeight,this.contentTabIndex=r?.contentTabIndex??null,this.preserveContent=!!r?.preserveContent}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(e){this._dynamicHeight=Oe(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this._indexToSelect=_n(e,null)}get animationDuration(){return this._animationDuration}set animationDuration(e){this._animationDuration=/^\d+$/.test(e+"")?e+"ms":e}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(e){this._contentTabIndex=_n(e,null)}get disablePagination(){return this._disablePagination}set disablePagination(e){this._disablePagination=Oe(e)}get preserveContent(){return this._preserveContent}set preserveContent(e){this._preserveContent=Oe(e)}get backgroundColor(){return this._backgroundColor}set backgroundColor(e){const t=this._elementRef.nativeElement;t.classList.remove(`mat-background-${this.backgroundColor}`),e&&t.classList.add(`mat-background-${e}`),this._backgroundColor=e}ngAfterContentChecked(){const e=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=e){const t=null==this._selectedIndex;if(!t){this.selectedTabChange.emit(this._createChangeEvent(e));const r=this._tabBodyWrapper.nativeElement;r.style.minHeight=r.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((r,d)=>r.isActive=d===e),t||(this.selectedIndexChange.emit(e),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((t,r)=>{t.position=r-e,null!=this._selectedIndex&&0==t.position&&!t.origin&&(t.origin=e-this._selectedIndex)}),this._selectedIndex!==e&&(this._selectedIndex=e,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const e=this._clampTabIndex(this._indexToSelect);if(e===this._selectedIndex){const t=this._tabs.toArray();let r;for(let d=0;d{t[e].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(e))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe(Zt(this._allTabs)).subscribe(e=>{this._tabs.reset(e.filter(t=>t._closestTabGroup===this||!t._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(e){const t=this._tabHeader;t&&(t.focusIndex=e)}_focusChanged(e){this._lastFocusedTabIndex=e,this.focusChange.emit(this._createChangeEvent(e))}_createChangeEvent(e){const t=new h2;return t.index=e,this._tabs&&this._tabs.length&&(t.tab=this._tabs.toArray()[e]),t}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,Sn.T)(...this._tabs.map(e=>e._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(e){return Math.min(this._tabs.length-1,Math.max(e||0,0))}_getTabLabelId(e){return`mat-tab-label-${this._groupId}-${e}`}_getTabContentId(e){return`mat-tab-content-${this._groupId}-${e}`}_setTabBodyWrapperHeight(e){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const t=this._tabBodyWrapper.nativeElement;t.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(t.style.height=e+"px")}_removeTabBodyWrapperHeight(){const e=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=e.clientHeight,e.style.height="",this.animationDone.emit()}_handleClick(e,t,r){e.disabled||(this.selectedIndex=t.focusIndex=r)}_getTabIndex(e,t){return e.disabled?null:t===(this._lastFocusedTabIndex??this.selectedIndex)?0:-1}_tabFocusChanged(e,t){e&&"mouse"!==e&&"touch"!==e&&(this._tabHeader.focusIndex=t)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(eH,8),n.Y36(n.QbO,8))},i.\u0275dir=n.lG2({type:i,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",preserveContent:"preserveContent",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[n.qOj]}),i})(),m2=(()=>{class i extends f2{constructor(e,t,r,d){super(e,t,r,d)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(eH,8),n.Y36(n.QbO,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-tab-group"]],contentQueries:function(e,t,r){if(1&e&&n.Suo(r,K1,5),2&e){let d;n.iGM(d=n.CRH())&&(t._allTabs=d)}},viewQuery:function(e,t){if(1&e&&(n.Gf(Yj,5),n.Gf(qj,5)),2&e){let r;n.iGM(r=n.CRH())&&(t._tabBodyWrapper=r.first),n.iGM(r=n.CRH())&&(t._tabHeader=r.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(e,t){2&e&&n.ekj("mat-tab-group-dynamic-height",t.dynamicHeight)("mat-tab-group-inverted-header","below"===t.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[n._Bn([{provide:Q1,useExisting:i}]),n.qOj],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","ngClass","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","ngClass","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf","ngIfElse"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering"]],template:function(e,t){1&e&&(n.TgZ(0,"mat-tab-header",0,1),n.NdJ("indexFocused",function(d){return t._focusChanged(d)})("selectFocusedIndex",function(d){return t.selectedIndex=d}),n.YNc(2,$j,5,15,"div",2),n.qZA(),n.TgZ(3,"div",3,4),n.YNc(5,Jj,1,11,"mat-tab-body",5),n.qZA()),2&e&&(n.Q6J("selectedIndex",t.selectedIndex||0)("disableRipple",t.disableRipple)("disablePagination",t.disablePagination),n.xp6(2),n.Q6J("ngForOf",t._tabs),n.xp6(1),n.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode),n.xp6(2),n.Q6J("ngForOf",t._tabs))},dependencies:[x.mk,x.sg,x.O5,Sa,Lr,vv,tH,X1,d2],styles:[".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}"],encapsulation:2}),i})(),rH=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[x.ez,ht,Hs,Kr,Jd,bl,ht]}),i})(),aH=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})(),sH=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[aH,Kr,ht,Jd,aH,ht]}),i})();const dH=new n.OlP("mat-chips-default-options");let SS=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[Ca,{provide:dH,useValue:{separatorKeyCodes:[13]}}],imports:[ht]}),i})(),uH=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[x.ez,c1,jx,w1,bi,C1,jC,Vl,CC,Zg,uC,Hl,dC,nr,Tg,zc,L1,vS,Vb,KE,yD,Ug,pD,TS,Iu,Ls,Lu,Kr,CC,sH,SS,c1,jx,w1,bi,C1,jC,Vl,CC,Zg,uC,Hl,dC,nr,Tg,zc,L1,vS,Vb,KE,yD,Ug,pD,TS,Iu,Ls,Lu,Kr,rH,sH,SS]}),i})();class U2{constructor(s,e){this._document=e;const t=this._textarea=this._document.createElement("textarea"),r=t.style;r.position="fixed",r.top=r.opacity="0",r.left="-999em",t.setAttribute("aria-hidden","true"),t.value=s,t.readOnly=!0,this._document.body.appendChild(t)}copy(){const s=this._textarea;let e=!1;try{if(s){const t=this._document.activeElement;s.select(),s.setSelectionRange(0,s.value.length),e=this._document.execCommand("copy"),t&&t.focus()}}catch{}return e}destroy(){const s=this._textarea;s&&(s.remove(),this._textarea=void 0)}}let N2=(()=>{class i{constructor(e){this._document=e}copy(e){const t=this.beginCopy(e),r=t.copy();return t.destroy(),r}beginCopy(e){return new U2(e,this._document)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(x.K0))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),F2=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})(),Y2=(()=>{class i{constructor(e,t,r){this.dialogRef=e,this.data=t,this.clipboard=r}ngOnInit(){this.publication=this.data}close(){this.dialogRef.close()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(si),n.Y36(wr),n.Y36(N2))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-show-cite-dialog"]],decls:15,vars:10,consts:[[1,"user-theme"],["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-button","",3,"click"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"h1",1),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"div",2),n._uU(5),n.qZA(),n.TgZ(6,"div",3)(7,"button",4),n.NdJ("click",function(){return t.close()}),n._uU(8),n.ALo(9,"translate"),n.qZA(),n.TgZ(10,"button",5),n.NdJ("click",function(){return t.clipboard.copy(t.publication.main)}),n._uU(11),n.ALo(12,"translate"),n.TgZ(13,"mat-icon"),n._uU(14,"content_copy"),n.qZA()()()()),2&e&&(n.xp6(2),n.Oqu(n.lcZ(3,4,"DIALOGS.SHOW_CITE.TITLE")),n.xp6(3),n.hij(" ",t.publication.main," "),n.xp6(3),n.hij(" ",n.lcZ(9,6,"DIALOGS.SHOW_CITE.CANCEL")," "),n.xp6(3),n.hij(" ",n.lcZ(12,8,"DIALOGS.SHOW_CITE.COPY")," "))},dependencies:[Ot,Ln,Oi,$i,Bi,it]}),i})(),hH=(()=>{class i{onClick(e){if(1===e.button&&null!=this.perunWebAppsMiddleClickRouterLink){const t=this.perunWebAppsMiddleClickRouterLink.join("/"),r=location.search;window.open(t+r)}}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["","perunWebAppsMiddleClickRouterLink",""]],hostBindings:function(e,t){1&e&&n.NdJ("mouseup",function(d){return t.onClick(d)})},inputs:{perunWebAppsMiddleClickRouterLink:"perunWebAppsMiddleClickRouterLink"}}),i})(),zC=(()=>{class i{constructor(e){this.tableCheckboxService=e}transform(e,t,r){return 0!==t&&(function tR(i){return"allObjectCount"in i}(e)?t===e.getData().length:function q2(i){return"_count"in i}(e)?this.tableCheckboxService.isAllSelectedPaginated(e,t,r):this.tableCheckboxService.isAllSelected(t,e,r))}}return i.\u0275fac=function(e){return new(e||i)(n.Y36($p,16))},i.\u0275pipe=n.Yjl({name:"isAllSelected",type:i,pure:!0}),i})(),d_=(()=>{class i{transform(e){const t="SHARED_LIB.PERUN.CHECKBOX_LABEL.";return e?t+"DESELECT_ROW":t+"SELECT_ROW"}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=n.Yjl({name:"checkboxLabel",type:i,pure:!0}),i})(),GC=(()=>{class i{transform(e){const t="SHARED_LIB.PERUN.CHECKBOX_LABEL.";return e?t+"DESELECT_ALL":t+"SELECT_ALL"}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=n.Yjl({name:"masterCheckboxLabel",type:i,pure:!0}),i})(),z2=(()=>{class i{transform(e){const t=[];return e.forEach(r=>t.push(r.firstName+" "+r.lastName)),t.join(", ")}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=n.Yjl({name:"authorsSeparatedByComma",type:i,pure:!0}),i})();function G2(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"th",21)(1,"mat-checkbox",22),n.NdJ("change",function(r){n.CHM(e);const d=n.oxw(2);return n.KtG(r?d.masterToggle():null)}),n.ALo(2,"translate"),n.ALo(3,"masterCheckboxLabel"),n.qZA()()}if(2&i){const e=n.oxw().ngIf,t=n.oxw();n.xp6(1),n.Q6J("aria-label",n.lcZ(2,3,n.lcZ(3,5,e.all)))("checked",t.selection.hasValue()&&e.all)("indeterminate",t.selection.hasValue()&&!e.all)}}const W2=function(i){return{name:i}};function $2(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"td",23)(1,"mat-checkbox",24),n.NdJ("change",function(r){const h=n.CHM(e).$implicit,c=n.oxw(2);return n.KtG(r?c.itemSelectionToggle(h):null)})("click",function(r){return r.stopPropagation()}),n.ALo(2,"translate"),n.ALo(3,"checkboxLabel"),n.qZA()()}if(2&i){const e=s.$implicit,t=n.oxw(2);n.xp6(1),n.Q6J("aria-label",n.xi3(2,2,n.lcZ(3,5,t.selection.isSelected(e)),n.VKq(7,W2,e.title)))("checked",t.selection.isSelected(e))}}function J2(i,s){1&i&&(n.ynx(0,18),n.YNc(1,G2,4,7,"th",19),n.YNc(2,$2,4,9,"td",20),n.BQk())}function Z2(i,s){1&i&&(n.TgZ(0,"th",25),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_ID")," "))}function Q2(i,s){if(1&i&&(n.TgZ(0,"td",26),n._uU(1),n.qZA()),2&i){const e=s.$implicit;n.xp6(1),n.hij(" ",e.id," ")}}function K2(i,s){1&i&&(n.TgZ(0,"th",25),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_LOCK")," "))}function X2(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"button",28),n.NdJ("click",function(){n.CHM(e);const r=n.oxw().$implicit,d=n.oxw();return n.KtG(d.lockOrUnlockPublication(r))})("mouseenter",function(){n.CHM(e);const r=n.oxw(2);return n.KtG(r.buttonPressed=!0)})("mouseleave",function(){n.CHM(e);const r=n.oxw(2);return n.KtG(r.buttonPressed=!1)}),n.ALo(1,"translate"),n.TgZ(2,"mat-icon"),n._uU(3,"lock"),n.qZA()()}if(2&i){const e=n.oxw(2);n.s9C("matTooltip",n.lcZ(1,2,"PUBLICATIONS_LIST.LOCKED")),n.Q6J("disabled",!e.lockAuth)}}function eU(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"button",28),n.NdJ("click",function(){n.CHM(e);const r=n.oxw().$implicit,d=n.oxw();return n.KtG(d.lockOrUnlockPublication(r))})("mouseenter",function(){n.CHM(e);const r=n.oxw(2);return n.KtG(r.buttonPressed=!0)})("mouseleave",function(){n.CHM(e);const r=n.oxw(2);return n.KtG(r.buttonPressed=!1)}),n.ALo(1,"translate"),n.TgZ(2,"mat-icon"),n._uU(3,"lock_open"),n.qZA()()}if(2&i){const e=n.oxw(2);n.s9C("matTooltip",n.lcZ(1,2,"PUBLICATIONS_LIST.UNLOCKED")),n.Q6J("disabled",!e.lockAuth)}}function tU(i,s){if(1&i&&(n.TgZ(0,"td",26),n.YNc(1,X2,4,4,"button",27),n.YNc(2,eU,4,4,"button",27),n.qZA()),2&i){const e=s.$implicit;n.xp6(1),n.Q6J("ngIf",e.locked),n.xp6(1),n.Q6J("ngIf",!e.locked)}}function nU(i,s){1&i&&(n.TgZ(0,"th",25),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_TITLE")," "))}function iU(i,s){if(1&i&&(n.TgZ(0,"td",26),n._uU(1),n.qZA()),2&i){const e=s.$implicit;n.xp6(1),n.hij(" ",e.title," ")}}function rU(i,s){1&i&&(n.TgZ(0,"th",25),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_REPORTED_BY")," "))}function aU(i,s){if(1&i&&(n.TgZ(0,"td",26),n._uU(1),n.ALo(2,"authorsSeparatedByComma"),n.qZA()),2&i){const e=s.$implicit;n.xp6(1),n.hij(" ",n.lcZ(2,1,e.authors)," ")}}function sU(i,s){1&i&&(n.TgZ(0,"th",25),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_YEAR")," "))}function oU(i,s){if(1&i&&(n.TgZ(0,"td",26),n._uU(1),n.qZA()),2&i){const e=s.$implicit;n.xp6(1),n.hij(" ",e.year," ")}}function lU(i,s){1&i&&(n.TgZ(0,"th",25),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_CATEGORY")," "))}function cU(i,s){if(1&i&&(n.TgZ(0,"td",26),n._uU(1),n.qZA()),2&i){const e=s.$implicit;n.xp6(1),n.hij(" ",e.categoryName," ")}}function dU(i,s){1&i&&(n.TgZ(0,"th",25),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_THANKEDTO")," "))}function uU(i,s){if(1&i&&(n.TgZ(0,"span"),n._uU(1),n._UZ(2,"br"),n.qZA()),2&i){const e=s.$implicit;n.xp6(1),n.hij(" ",e.ownerName,"")}}function hU(i,s){if(1&i&&(n.TgZ(0,"td",26),n.YNc(1,uU,3,1,"span",29),n.qZA()),2&i){const e=s.$implicit;n.xp6(1),n.Q6J("ngForOf",e.thanks)}}function pU(i,s){1&i&&(n.TgZ(0,"th",30),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_CITE")))}function fU(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"td",26)(1,"button",31),n.NdJ("click",function(){const d=n.CHM(e).$implicit,h=n.oxw();return n.KtG(h.showCite(d))})("mouseenter",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.buttonPressed=!0)})("mouseleave",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.buttonPressed=!1)}),n._uU(2),n.ALo(3,"translate"),n.qZA()()}2&i&&(n.xp6(2),n.hij(" ",n.lcZ(3,1,"PUBLICATIONS_LIST.SHOW_CITE")," "))}function mU(i,s){1&i&&n._UZ(0,"tr",32)}const pH=function(i,s){return[i,s]};function gU(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"tr",33),n.NdJ("click",function(){const d=n.CHM(e).$implicit,h=n.oxw();return n.KtG(h.disabledRouting&&h.openInTab&&!h.buttonPressed?h.emitPublication(d):null)}),n.qZA()}if(2&i){const e=s.$implicit,t=n.oxw();n.ekj("cursor-pointer",!t.disabledRouting||t.openInTab),n.Q6J("perunWebAppsMiddleClickRouterLink",t.disabledRouting||t.buttonPressed?null:n.WLB(4,pH,t.routerPath,e.id))("routerLink",t.disabledRouting||t.buttonPressed?null:n.WLB(7,pH,t.routerPath,e.id))}}function _U(i,s){1&i&&(n.TgZ(0,"perun-web-apps-alert",34),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"PUBLICATIONS_LIST.NO_PUBLICATIONS_FOUND"),"\n"))}const bU=function(i){return{all:i}};let af=(()=>{class i{constructor(e,t,r,d,h,c){this.tableCheckbox=e,this.cabinetService=t,this.dialog=r,this.notificator=d,this.translate=h,this.authResolver=c,this.selection=new Kn(!0,[]),this.displayedColumns=["select","id","lock","title","reportedBy","year","category","thankedTo","cite"],this.pageSizeOptions=jl,this.disabledRouting=!1,this.openInTab=!1,this.allowAlert=!0,this.publicationSelector=new n.vpe,this.buttonPressed=!1,this.lockAuth=!1,h.get("PUBLICATIONS_LIST.CHANGE_LOCK_SUCCESS").subscribe(o=>this.changeLockMessage=o),h.get("PUBLICATIONS_LIST.LOCKED").subscribe(o=>this.locked=o),h.get("PUBLICATIONS_LIST.UNLOCKED").subscribe(o=>this.unlocked=o),this.lockAuth=this.authResolver.isCabinetAdmin()}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,t){switch(t){case"id":return e.id.toString();case"lock":return String(e.locked);case"title":return e.title;case"reportedBy":{let r="";return e.authors.forEach(d=>r+=d.firstName+" "+d.lastName+";"),r.slice(0,-1)}case"year":return e.year.toString();case"category":return e.categoryName;case"thankedTo":{let r="";return e.thanks.forEach(d=>r+=d.ownerName+";"),r.slice(0,-1)}default:return e[t]}}ngOnChanges(){this.dataSource=new zl(this.publications),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}exportAllData(e){Pa(Ha(this.dataSource.filteredData,this.displayedColumns,i.getDataForColumn),e)}exportDisplayedData(e){const t=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,r=t+this.dataSource.paginator.pageSize;Pa(Ha(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(t,r),this.displayedColumns,i.getDataForColumn),e)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,"",this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}itemSelectionToggle(e){this.selection.toggle(e)}showCite(e){const t=Jn();t.width="500px",t.data=e,this.dialog.open(Y2,t)}lockOrUnlockPublication(e){this.cabinetService.lockPublications({publications:[this.createPublication(e)],lock:!e.locked}).subscribe(()=>{this.notificator.showSuccess(e.locked?this.changeLockMessage+this.unlocked:this.changeLockMessage+this.locked),e.locked=!e.locked})}emitPublication(e){this.publicationSelector.emit(e)}setDataSource(){this.dataSource&&(this.dataSource.sortData=(e,t)=>Mo(e,t,i.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}createPublication(e){return{id:e.id,beanName:e.beanName,externalId:e.externalId,publicationSystemId:e.publicationSystemId,categoryId:e.categoryId,createdBy:e.createdBy,createdDate:e.createdDate,doi:e.doi,isbn:e.isbn,locked:e.locked,main:e.main,rank:e.rank,title:e.title,year:e.year}}}return i.\u0275fac=function(e){return new(e||i)(n.Y36($p),n.Y36(wn),n.Y36(oi),n.Y36(Ji),n.Y36(mn),n.Y36(dn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-publications-list"]],viewQuery:function(e,t){if(1&e&&(n.Gf(as,7),n.Gf(Oa,7)),2&e){let r;n.iGM(r=n.CRH())&&(t.child=r.first),n.iGM(r=n.CRH())&&(t.matSort=r.first)}},inputs:{publications:"publications",selection:"selection",displayedColumns:"displayedColumns",tableId:"tableId",pageSizeOptions:"pageSizeOptions",routerPath:"routerPath",disabledRouting:"disabledRouting",openInTab:"openInTab",allowAlert:"allowAlert"},outputs:{publicationSelector:"publicationSelector"},features:[n.TTD],decls:32,vars:14,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","title","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","lock"],["matColumnDef","title"],["matColumnDef","reportedBy"],["matColumnDef","year"],["matColumnDef","category"],["matColumnDef","thankedTo"],["matColumnDef","cite"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"perunWebAppsMiddleClickRouterLink","routerLink","cursor-pointer","click",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-icon-button","",3,"disabled","matTooltip","click","mouseenter","mouseleave",4,"ngIf"],["mat-icon-button","",3,"disabled","matTooltip","click","mouseenter","mouseleave"],[4,"ngFor","ngForOf"],["mat-header-cell",""],["mat-stroked-button","",3,"click","mouseenter","mouseleave"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink","click"],["alert_type","warn"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportDisplayedData",function(d){return t.exportDisplayedData(d)})("exportAllData",function(d){return t.exportAllData(d)}),n.TgZ(2,"table",2),n.YNc(3,J2,3,0,"ng-container",3),n.ALo(4,"isAllSelected"),n.ynx(5,4),n.YNc(6,Z2,3,3,"th",5),n.YNc(7,Q2,2,1,"td",6),n.BQk(),n.ynx(8,7),n.YNc(9,K2,3,3,"th",5),n.YNc(10,tU,3,2,"td",6),n.BQk(),n.ynx(11,8),n.YNc(12,nU,3,3,"th",5),n.YNc(13,iU,2,1,"td",6),n.BQk(),n.ynx(14,9),n.YNc(15,rU,3,3,"th",5),n.YNc(16,aU,3,3,"td",6),n.BQk(),n.ynx(17,10),n.YNc(18,sU,3,3,"th",5),n.YNc(19,oU,2,1,"td",6),n.BQk(),n.ynx(20,11),n.YNc(21,lU,3,3,"th",5),n.YNc(22,cU,2,1,"td",6),n.BQk(),n.ynx(23,12),n.YNc(24,dU,3,3,"th",5),n.YNc(25,hU,2,1,"td",6),n.BQk(),n.ynx(26,13),n.YNc(27,pU,3,3,"th",14),n.YNc(28,fU,4,3,"td",6),n.BQk(),n.YNc(29,mU,1,0,"tr",15),n.YNc(30,gU,1,10,"tr",16),n.qZA()()(),n.YNc(31,_U,3,3,"perun-web-apps-alert",17)),2&e&&(n.Q6J("hidden",0===t.dataSource.filteredData.length||0===t.publications.length),n.xp6(1),n.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),n.xp6(1),n.Q6J("dataSource",t.dataSource),n.xp6(1),n.Q6J("ngIf",n.VKq(12,bU,n.xi3(4,9,t.dataSource,t.selection.selected.length))),n.xp6(26),n.Q6J("matHeaderRowDef",t.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",t.displayedColumns),n.xp6(1),n.Q6J("ngIf",0===t.publications.length&&t.allowAlert))},dependencies:[x.sg,x.O5,Ot,cd,Ln,Do,Bs,Yl,Vs,Os,Ho,js,Us,ql,Po,Oa,rf,ks,Ts,na,as,hH,Vx,it,zC,d_,GC,z2],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),i})();function wU(i,s){1&i&&n._UZ(0,"mat-spinner",7)}const yU=function(){return["id","title","year"]};function CU(i,s){if(1&i&&(n.TgZ(0,"div",8),n._uU(1),n.ALo(2,"translate"),n._UZ(3,"perun-web-apps-publications-list",9),n.qZA()),2&i){const e=n.oxw();n.xp6(1),n.hij(" ",n.lcZ(2,4,"DIALOGS.REMOVE_PUBLICATION.WARNING")," "),n.xp6(2),n.Q6J("publications",e.publications)("routerPath",null)("displayedColumns",n.DdM(6,yU))}}let MS=(()=>{class i{constructor(e,t,r,d,h){this.dialogRef=e,this.data=t,this.notificator=r,this.translate=d,this.cabinetService=h,this.loading=!1}ngOnInit(){this.publications=this.data}cancel(){this.dialogRef.close()}remove(){this.loading=!0,this.cabinetService.deletePublication(this.publications.pop().id).subscribe(()=>{this.publications.length<=0?this.translate.get("DIALOGS.REMOVE_PUBLICATION.REMOVE_SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.dialogRef.close(!0)}):this.remove()},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(si),n.Y36(wr),n.Y36(Ji),n.Y36(mn),n.Y36(wn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-remove-publication-dialog"]],decls:13,vars:12,consts:[[1,"user-theme"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","","class","dialog-container",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"publications","routerPath","displayedColumns"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"h1",1),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.YNc(4,wU,1,0,"mat-spinner",2),n.YNc(5,CU,4,7,"div",3),n.TgZ(6,"div",4)(7,"button",5),n.NdJ("click",function(){return t.cancel()}),n._uU(8),n.ALo(9,"translate"),n.qZA(),n.TgZ(10,"button",6),n.NdJ("click",function(){return t.remove()}),n._uU(11),n.ALo(12,"translate"),n.qZA()()()),2&e&&(n.xp6(2),n.Oqu(n.lcZ(3,6,"DIALOGS.REMOVE_PUBLICATION.TITLE")),n.xp6(2),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading),n.xp6(3),n.hij(" ",n.lcZ(9,8,"DIALOGS.REMOVE_PUBLICATION.CANCEL")," "),n.xp6(2),n.Q6J("disabled",t.loading),n.xp6(1),n.hij(" ",n.lcZ(12,10,"DIALOGS.REMOVE_PUBLICATION.REMOVE")," "))},dependencies:[x.O5,Ot,Oi,$i,Bi,Mn,af,it]}),i})(),sf=(()=>{class i{constructor(){this.refresh=new n.vpe}onClickbutton(e){this.refresh.emit(e)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-refresh-button"]],inputs:{disabled:"disabled"},outputs:{refresh:"refresh"},decls:3,vars:5,consts:[["mat-stroked-button","","data-cy","refresh-button",1,"mr-2",3,"disabled","matTooltip","click"],[1,"center-icon","perun-icon",3,"svgIcon"]],template:function(e,t){1&e&&(n.TgZ(0,"button",0),n.NdJ("click",function(d){return t.onClickbutton(d)}),n.ALo(1,"translate"),n._UZ(2,"mat-icon",1),n.qZA()),2&e&&(n.s9C("matTooltip",n.lcZ(1,3,"SHARED_LIB.PERUN.REFRESH_BUTTON")),n.Q6J("disabled",t.disabled),n.xp6(2),n.s9C("svgIcon",t.disabled?"perun-refresh-disabled":"perun-refresh-enabled"))},dependencies:[Ln,Ot,ks,it],styles:[".center-icon[_ngcontent-%COMP%]{display:inline-flex}.perun-icon[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{fill:currentColor}.perun-icon[_ngcontent-%COMP%] rect[_ngcontent-%COMP%]{fill:currentColor}.perun-icon[_ngcontent-%COMP%] polygon[_ngcontent-%COMP%]{fill:currentColor}"]}),i})();var lf=E(5439);const Nu=lf||E.t(lf,2),fH=new n.OlP("MAT_MOMENT_DATE_ADAPTER_OPTIONS",{providedIn:"root",factory:function vU(){return{useUtc:!1}}});function TU(i,s){const e=Array(i);for(let t=0;t{class i extends Un{constructor(e,t){super(),this._options=t,this.setLocale(e||Nu.locale())}setLocale(e){super.setLocale(e);let t=Nu.localeData(e);this._localeData={firstDayOfWeek:t.firstDayOfWeek(),longMonths:t.months(),shortMonths:t.monthsShort(),dates:TU(31,r=>this.createDate(2017,0,r+1).format("D")),longDaysOfWeek:t.weekdays(),shortDaysOfWeek:t.weekdaysShort(),narrowDaysOfWeek:t.weekdaysMin()}}getYear(e){return this.clone(e).year()}getMonth(e){return this.clone(e).month()}getDate(e){return this.clone(e).date()}getDayOfWeek(e){return this.clone(e).day()}getMonthNames(e){return"long"==e?this._localeData.longMonths:this._localeData.shortMonths}getDateNames(){return this._localeData.dates}getDayOfWeekNames(e){return"long"==e?this._localeData.longDaysOfWeek:"short"==e?this._localeData.shortDaysOfWeek:this._localeData.narrowDaysOfWeek}getYearName(e){return this.clone(e).format("YYYY")}getFirstDayOfWeek(){return this._localeData.firstDayOfWeek}getNumDaysInMonth(e){return this.clone(e).daysInMonth()}clone(e){return e.clone().locale(this.locale)}createDate(e,t,r){const d=this._createMoment({year:e,month:t,date:r}).locale(this.locale);return d.isValid(),d}today(){return this._createMoment().locale(this.locale)}parse(e,t){return e&&"string"==typeof e?this._createMoment(e,t,this.locale):e?this._createMoment(e).locale(this.locale):null}format(e,t){return e=this.clone(e),this.isValid(e),e.format(t)}addCalendarYears(e,t){return this.clone(e).add({years:t})}addCalendarMonths(e,t){return this.clone(e).add({months:t})}addCalendarDays(e,t){return this.clone(e).add({days:t})}toIso8601(e){return this.clone(e).format()}deserialize(e){let t;if(e instanceof Date)t=this._createMoment(e).locale(this.locale);else if(this.isDateInstance(e))return this.clone(e);if("string"==typeof e){if(!e)return null;t=this._createMoment(e,Nu.ISO_8601).locale(this.locale)}return t&&this.isValid(t)?this._createMoment(t).locale(this.locale):super.deserialize(e)}isDateInstance(e){return Nu.isMoment(e)}isValid(e){return this.clone(e).isValid()}invalid(){return Nu.invalid()}_createMoment(e,t,r){const{strict:d,useUtc:h}=this._options||{};return h?Nu.utc(e,t,r,d):Nu(e,t,r,d)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(_o,8),n.LFG(fH,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})(),xU=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[{provide:Un,useClass:u_,deps:[_o,fH]}]}),i})(),mH=(()=>{class i{ngOnInit(){this.endMaxYear=new Date,this.startMaxYear=this.endYear.value.toDate(),this.startYear.setValue(null)}chosenYearHandler(e,t,r){e.setValue(t),this.startMaxYear=this.endYear.value.toDate(),this.endMinYear=this.startYear.value?this.startYear.value.toDate():null,r.close()}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-year-range"]],inputs:{startYear:"startYear",endYear:"endYear"},decls:16,vars:15,consts:[[1,"year-field","mr-2",3,"click"],["matInput","","readonly","",1,"disable",3,"matDatepicker","max","formControl"],["matSuffix","",3,"for"],["startView","multi-year","panelClass","year-picker",3,"yearSelected"],["sdp",""],["matInput","","readonly","",3,"matDatepicker","min","max","formControl"],["edp",""]],template:function(e,t){if(1&e){const r=n.EpF();n.TgZ(0,"mat-form-field",0),n.NdJ("click",function(){n.CHM(r);const h=n.MAs(7);return n.KtG(h.open())}),n.TgZ(1,"mat-label"),n._uU(2),n.ALo(3,"translate"),n.qZA(),n._UZ(4,"input",1)(5,"mat-datepicker-toggle",2),n.TgZ(6,"mat-datepicker",3,4),n.NdJ("yearSelected",function(h){n.CHM(r);const c=n.MAs(7);return n.KtG(t.chosenYearHandler(t.startYear,h,c))}),n.qZA()(),n.TgZ(8,"mat-form-field",0),n.NdJ("click",function(){n.CHM(r);const h=n.MAs(15);return n.KtG(h.open())}),n.TgZ(9,"mat-label"),n._uU(10),n.ALo(11,"translate"),n.qZA(),n._UZ(12,"input",5)(13,"mat-datepicker-toggle",2),n.TgZ(14,"mat-datepicker",3,6),n.NdJ("yearSelected",function(h){n.CHM(r);const c=n.MAs(15);return n.KtG(t.chosenYearHandler(t.endYear,h,c))}),n.qZA()()}if(2&e){const r=n.MAs(7),d=n.MAs(15);n.xp6(2),n.Oqu(n.lcZ(3,11,"PUBLICATION_FILTER.START_YEAR")),n.xp6(2),n.Q6J("matDatepicker",r)("max",t.startMaxYear)("formControl",t.startYear),n.xp6(1),n.Q6J("for",r),n.xp6(5),n.Oqu(n.lcZ(11,13,"PUBLICATION_FILTER.END_YEAR")),n.xp6(2),n.Q6J("matDatepicker",d)("min",t.endMinYear)("max",t.endMaxYear)("formControl",t.endYear),n.xp6(1),n.Q6J("for",d)}},dependencies:[ar,ta,bu,Ra,Gi,Wi,_r,CS,c_,AS,it],styles:[".year-field{max-width:95px!important;width:100%!important;min-width:initial!important}.year-picker .mat-calendar-period-button{pointer-events:none}.year-picker .mat-calendar-arrow{display:none}\n"],encapsulation:2}),i})();function SU(i,s){if(1&i&&(n.TgZ(0,"mat-option",12),n._uU(1),n.qZA()),2&i){const e=s.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e.name," ")}}const ES=lf,MU={parse:{dateInput:"YYYY"},display:{dateInput:"YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}};let DS=(()=>{class i{constructor(e){this.cabinetService=e,this.filteredPublication=new n.vpe,this.title=new Nn(""),this.code=new Nn(""),this.startYear=new Nn(ES()),this.endYear=new Nn(ES())}ngOnInit(){this.title.setValue(""),this.code.setValue(""),this.selectedCategory="no_value",this.cabinetService.getCategories().subscribe(e=>{this.categories=e,this.selectedMode="isbn/issn"})}filter(){const e=this.code.value,t={title:this.title.value,isbnissn:"isbn/issn"===this.selectedMode?e:null,doi:"doi"===this.selectedMode?e:null,category:"no_value"!==this.selectedCategory?this.selectedCategory.id:null,startYear:(0,x.p6)(this.startYear.value?this.startYear.value.toDate():null,"yyyy","en-GB"),endYear:(0,x.p6)(this.endYear.value.toDate(),"yyyy","en-GB")};this.filteredPublication.emit(t)}clearFilter(){this.title.setValue(""),this.code.setValue(""),this.selectedMode="isbn/issn",this.selectedCategory="no_value",this.startYear.setValue(null),this.endYear.setValue(ES()),this.filteredPublication.emit({title:null,isbnissn:null,doi:null,category:null,startYear:null,endYear:null})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(wn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-publication-filter"]],outputs:{filteredPublication:"filteredPublication"},features:[n._Bn([{provide:Un,useClass:u_,deps:[_o]},{provide:_i,useValue:MU}])],decls:38,vars:34,consts:[[1,"mt-2"],[1,"filter-field","mr-2"],["matInput","",3,"formControl","placeholder"],[3,"value","valueChange"],["value","isbn/issn"],["value","doi"],[1,"year-field","mr-2"],["value","no_value"],[3,"value",4,"ngFor","ngForOf"],[3,"startYear","endYear"],["mat-stroked-button","",1,"mr-2",3,"click"],["mat-stroked-button","",3,"click"],[3,"value"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"mat-form-field",1),n._UZ(2,"input",2),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"mat-form-field",1)(5,"mat-label"),n._uU(6),n.ALo(7,"translate"),n.qZA(),n.TgZ(8,"mat-select",3),n.NdJ("valueChange",function(d){return t.selectedMode=d}),n.TgZ(9,"mat-option",4),n._uU(10),n.ALo(11,"translate"),n.qZA(),n.TgZ(12,"mat-option",5),n._uU(13),n.ALo(14,"translate"),n.qZA()()(),n.TgZ(15,"mat-form-field",6),n._UZ(16,"input",2),n.ALo(17,"translate"),n.qZA(),n.TgZ(18,"mat-form-field",1)(19,"mat-label"),n._uU(20),n.ALo(21,"translate"),n.qZA(),n.TgZ(22,"mat-select",3),n.NdJ("valueChange",function(d){return t.selectedCategory=d}),n.TgZ(23,"mat-option",7),n._uU(24),n.ALo(25,"translate"),n.qZA(),n.YNc(26,SU,2,2,"mat-option",8),n.qZA()(),n._UZ(27,"perun-web-apps-year-range",9),n.TgZ(28,"button",10),n.NdJ("click",function(){return t.filter()}),n.TgZ(29,"mat-icon"),n._uU(30,"search"),n.qZA(),n._uU(31),n.ALo(32,"translate"),n.qZA(),n.TgZ(33,"button",11),n.NdJ("click",function(){return t.clearFilter()}),n.TgZ(34,"mat-icon"),n._uU(35,"search_off"),n.qZA(),n._uU(36),n.ALo(37,"translate"),n.qZA()()),2&e&&(n.xp6(2),n.s9C("placeholder",n.lcZ(3,16,"PUBLICATION_FILTER.TITLE_PLACEHOLDER")),n.Q6J("formControl",t.title),n.xp6(4),n.Oqu(n.lcZ(7,18,"PUBLICATION_FILTER.SELECT_MODE")),n.xp6(2),n.Q6J("value",t.selectedMode),n.xp6(2),n.Oqu(n.lcZ(11,20,"PUBLICATION_FILTER.ISBN/ISSN")),n.xp6(3),n.Oqu(n.lcZ(14,22,"PUBLICATION_FILTER.DOI")),n.xp6(3),n.s9C("placeholder",n.lcZ(17,24,"PUBLICATION_FILTER.CODE_PLACEHOLDER")),n.Q6J("formControl",t.code),n.xp6(4),n.Oqu(n.lcZ(21,26,"PUBLICATION_FILTER.SELECT_CATEGORY")),n.xp6(2),n.Q6J("value",t.selectedCategory),n.xp6(2),n.Oqu(n.lcZ(25,28,"PUBLICATION_FILTER.NO_CATEGORY_SELECTED")),n.xp6(2),n.Q6J("ngForOf",t.categories),n.xp6(1),n.Q6J("startYear",t.startYear)("endYear",t.endYear),n.xp6(4),n.hij(" ",n.lcZ(32,30,"PUBLICATION_FILTER.FILTER")," "),n.xp6(5),n.hij(" ",n.lcZ(37,32,"PUBLICATION_FILTER.CLEAR_FILTER")," "))},dependencies:[x.sg,Ot,Ln,ar,ta,Ra,Gi,Wi,_r,Jc,Al,mH,it],styles:[".filter-field[_ngcontent-%COMP%]{max-width:250px!important;width:100%!important;min-width:initial!important}.disable[_ngcontent-%COMP%]{cursor:not-allowed;pointer-events:none}.year-field[_ngcontent-%COMP%]{max-width:80px!important;width:100%!important;min-width:initial!important}"]}),i})();function EU(i,s){if(1&i&&n._UZ(0,"perun-web-apps-publications-list",10),2&i){const e=n.oxw();n.Q6J("publications",e.publications)("selection",e.selected)("routerPath","/all-publications")("tableId",e.tableId)}}function DU(i,s){1&i&&n._UZ(0,"mat-spinner",11)}let HU=(()=>{class i{constructor(e,t,r,d,h){this.route=e,this.cabinetService=t,this.dialog=r,this.matIconRegistry=d,this.domSanitizer=h,this.selected=new Kn(!0,[]),this.tableId="68",this.filter={title:null,isbnissn:null,doi:null,category:null,startYear:null,endYear:null},this.matIconRegistry.addSvgIcon("publications",this.domSanitizer.bypassSecurityTrustResourceUrl("../../assets/img/publications-dark.svg"))}ngOnInit(){this.refreshTable()}removePublication(){const e=Jn();e.width="500px",e.data=this.selected.selected,this.dialog.open(MS,e).afterClosed().subscribe(r=>{r&&this.refreshTable()})}refreshTable(){this.loading=!0,this.selected.clear(),this.cabinetService.findPublicationsByGUIFilter(this.filter.title,this.filter.isbnissn,this.filter.doi,null,null,this.filter.category,+this.filter.startYear,+this.filter.endYear,null).subscribe(e=>{this.publications=e,this.loading=!1})}filterPublication(e){this.filter=e,this.refreshTable()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Li),n.Y36(wn),n.Y36(oi),n.Y36(xo),n.Y36(On))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-all-publications-page"]],decls:14,vars:9,consts:[[1,"user-theme"],[1,"page-subtitle","d-flex"],["svgIcon","publications",1,"publications-icon"],[1,"ml-3","mt-1"],[1,"mt-4"],[3,"refresh"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[3,"filteredPublication"],[3,"publications","selection","routerPath","tableId",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"publications","selection","routerPath","tableId"],[1,"ml-auto","mr-auto"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"h1",1),n._UZ(2,"mat-icon",2),n.TgZ(3,"span",3),n._uU(4),n.ALo(5,"translate"),n.qZA()(),n.TgZ(6,"div",4)(7,"perun-web-apps-refresh-button",5),n.NdJ("refresh",function(){return t.refreshTable()}),n.qZA(),n.TgZ(8,"button",6),n.NdJ("click",function(){return t.removePublication()}),n._uU(9),n.ALo(10,"translate"),n.qZA(),n.TgZ(11,"perun-web-apps-publication-filter",7),n.NdJ("filteredPublication",function(d){return t.filterPublication(d)}),n.qZA()(),n.YNc(12,EU,1,4,"perun-web-apps-publications-list",8),n.YNc(13,DU,1,0,"mat-spinner",9),n.qZA()),2&e&&(n.xp6(4),n.Oqu(n.lcZ(5,5,"ALL_PUBLICATIONS.TITLE")),n.xp6(4),n.Q6J("disabled",0===t.selected.selected.length),n.xp6(1),n.hij(" ",n.lcZ(10,7,"ALL_PUBLICATIONS.REMOVE")," "),n.xp6(3),n.Q6J("ngIf",!t.loading),n.xp6(1),n.Q6J("ngIf",t.loading))},dependencies:[x.O5,Ot,Ln,Mn,sf,af,DS,it],styles:[".publications-icon[_ngcontent-%COMP%]{height:32px;width:32px}"]}),i})();function PU(i,s){if(1&i&&n._UZ(0,"perun-web-apps-publications-list",11),2&i){const e=n.oxw(2);n.Q6J("publications",e.publications)("selection",e.selected)("tableId",e.tableId)("routerPath","/my-publications")}}function RU(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"div")(1,"div",6)(2,"perun-web-apps-refresh-button",7),n.NdJ("refresh",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.refreshTable())}),n.qZA(),n.TgZ(3,"button",8),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.removePublication())}),n._uU(4),n.ALo(5,"translate"),n.qZA(),n.TgZ(6,"perun-web-apps-publication-filter",9),n.NdJ("filteredPublication",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.filterPublication(r))}),n.qZA()(),n.YNc(7,PU,1,4,"perun-web-apps-publications-list",10),n.qZA()}if(2&i){const e=n.oxw();n.xp6(3),n.Q6J("disabled",0===e.selected.selected.length),n.xp6(1),n.hij(" ",n.lcZ(5,3,"MY_PUBLICATIONS.REMOVE")," "),n.xp6(3),n.Q6J("ngIf",!e.loading)}}function kU(i,s){1&i&&n._UZ(0,"mat-spinner",12)}let LU=(()=>{class i{constructor(e,t,r,d){this.route=e,this.cabinetService=t,this.dialog=r,this.authResolver=d,this.selected=new Kn(!0,[]),this.tableId="68",this.filter={title:null,isbnissn:null,doi:null,category:null,startYear:null,endYear:null}}ngOnInit(){this.initLoading=!0,this.authResolver.getPerunPrincipal().subscribe(e=>{this.authorId=e.userId,this.initLoading=!1,this.refreshTable()})}removePublication(){const e=Jn();e.width="500px",e.data=this.selected.selected,this.dialog.open(MS,e).afterClosed().subscribe(r=>{r&&this.refreshTable()})}refreshTable(){this.loading=!0,this.selected.clear(),this.cabinetService.findPublicationsByGUIFilter(this.filter.title,this.filter.isbnissn,this.filter.doi,null,null,this.filter.category,+this.filter.startYear,+this.filter.endYear,this.authorId).subscribe(e=>{this.publications=e,this.loading=!1})}filterPublication(e){this.filter=e,this.refreshTable()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Li),n.Y36(wn),n.Y36(oi),n.Y36(Va))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-my-publications-page"]],decls:9,vars:5,consts:[[1,"user-theme"],[1,"page-subtitle","d-flex"],[1,"title-icon"],[1,"ml-3","mt-1"],[4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[1,"mt-4"],[3,"refresh"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[3,"filteredPublication"],[3,"publications","selection","tableId","routerPath",4,"ngIf"],[3,"publications","selection","tableId","routerPath"],[1,"ml-auto","mr-auto"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"h1",1)(2,"mat-icon",2),n._uU(3,"local_library"),n.qZA(),n.TgZ(4,"span",3),n._uU(5),n.ALo(6,"translate"),n.qZA()(),n.YNc(7,RU,8,5,"div",4),n.YNc(8,kU,1,0,"mat-spinner",5),n.qZA()),2&e&&(n.xp6(5),n.Oqu(n.lcZ(6,3,"MY_PUBLICATIONS.TITLE")),n.xp6(2),n.Q6J("ngIf",!t.initLoading),n.xp6(1),n.Q6J("ngIf",t.loading||t.initLoading))},dependencies:[x.O5,Ot,Ln,Mn,sf,af,DS,it]}),i})(),IU=(()=>{class i{constructor(e){this.router=e}importPublications(){this.router.navigate(["create-publication","import"],{queryParamsHandling:"preserve"})}createPublication(){this.router.navigate(["create-publication","create"],{queryParamsHandling:"preserve"})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36($n))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-create-publication-page"]],decls:32,vars:21,consts:[[1,"user-theme"],[1,"page-subtitle","d-flex"],[1,"add-icon","mr-1"],[1,"card-container"],[1,"align-cards"],[1,"mat-elevation-z3","card-height"],[1,"d-flex","flex-column"],["mat-flat-button","","color","accent",1,"align-self-end","action-button",3,"click"],["mat-flat-button","","color","accent",1,"align-self-end","action-button","create-button",3,"click"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"h1",1)(2,"span")(3,"mat-icon",2),n._uU(4,"add_box"),n.qZA(),n._uU(5),n.ALo(6,"translate"),n.qZA()(),n.TgZ(7,"div",3)(8,"div",4)(9,"mat-card",5)(10,"mat-card-title"),n._uU(11),n.ALo(12,"translate"),n.qZA(),n.TgZ(13,"mat-card-content",6)(14,"div"),n._uU(15),n.ALo(16,"translate"),n.qZA(),n.TgZ(17,"button",7),n.NdJ("click",function(){return t.importPublications()}),n._uU(18),n.ALo(19,"translate"),n.qZA()()()(),n.TgZ(20,"div",4)(21,"mat-card",5)(22,"mat-card-title"),n._uU(23),n.ALo(24,"translate"),n.qZA(),n.TgZ(25,"mat-card-content",6)(26,"div"),n._uU(27),n.ALo(28,"translate"),n.qZA(),n.TgZ(29,"button",8),n.NdJ("click",function(){return t.createPublication()}),n._uU(30),n.ALo(31,"translate"),n.qZA()()()()()()),2&e&&(n.xp6(5),n.hij(" ",n.lcZ(6,7,"CREATE_PUBLICATION.TITLE")," "),n.xp6(6),n.hij(" ",n.lcZ(12,9,"CREATE_PUBLICATION.IMPORT_TITLE")," "),n.xp6(4),n.hij(" ",n.lcZ(16,11,"CREATE_PUBLICATION.IMPORT_HINT")," "),n.xp6(3),n.hij(" ",n.lcZ(19,13,"CREATE_PUBLICATION.IMPORT")," "),n.xp6(5),n.hij(" ",n.lcZ(24,15,"CREATE_PUBLICATION.CREATE_TITLE")," "),n.xp6(4),n.hij(" ",n.lcZ(28,17,"CREATE_PUBLICATION.CREATE_HINT")," "),n.xp6(3),n.hij(" ",n.lcZ(31,19,"CREATE_PUBLICATION.CREATE")," "))},dependencies:[l1,s1,o1,Ot,Ln,it],styles:[".add-icon[_ngcontent-%COMP%]{font-size:32px;vertical-align:text-top}.card-container[_ngcontent-%COMP%]{margin:0 -1rem}.align-cards[_ngcontent-%COMP%]{margin:1rem;display:inline-block;vertical-align:top;max-width:250px;max-height:200px}.card-height[_ngcontent-%COMP%]{height:200px}.create-button[_ngcontent-%COMP%]{display:flex;margin-top:21px}"]}),i})();const OU=["input"];let BU=(()=>{class i{constructor(){this.autoFocus=!1,this.control=new gg,this.filter=new n.vpe}ngOnInit(){this.autoFocus&&this.input.nativeElement.focus(),ea(this.input.nativeElement,"keyup").pipe((0,_t.U)(e=>e.target.value),(0,Nh.b)(500),mo()).subscribe(e=>{this.control.invalid||this.filter.emit(e)})}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-debounce-filter"]],viewQuery:function(e,t){if(1&e&&n.Gf(OU,7),2&e){let r;n.iGM(r=n.CRH())&&(t.input=r.first)}},inputs:{placeholder:"placeholder",autoFocus:"autoFocus",control:"control",error:"error"},outputs:{filter:"filter"},decls:6,vars:5,consts:[[1,"filter-field","mr-2"],["matInput","","data-cy","filter-input",3,"placeholder","formControl"],["input",""]],template:function(e,t){1&e&&(n.TgZ(0,"mat-form-field",0),n._UZ(1,"input",1,2),n.ALo(3,"translate"),n.TgZ(4,"mat-error"),n._uU(5),n.qZA()()),2&e&&(n.xp6(1),n.s9C("placeholder",n.lcZ(3,3,t.placeholder)),n.Q6J("formControl",t.control),n.xp6(4),n.hij(" ",t.error," "))},dependencies:[Gi,Wi,es,ar,_r,Ra,it],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:auto!important}"]}),i})(),HS=(()=>{class i{transform(e){return[e.titleBefore,e.firstName,e.middleName,e.lastName,e.titleAfter].join(" ")}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=n.Yjl({name:"userFullName",type:i,pure:!0}),i})();function VU(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"mat-checkbox",20),n.NdJ("change",function(r){n.CHM(e);const d=n.oxw(3);return n.KtG(r?d.masterToggle():null)}),n.ALo(1,"translate"),n.ALo(2,"masterCheckboxLabel"),n.qZA()}if(2&i){const e=n.oxw(2).ngIf,t=n.oxw();n.Q6J("aria-label",n.lcZ(1,3,n.lcZ(2,5,e.all)))("checked",t.selection.hasValue()&&e.all)("indeterminate",t.selection.hasValue()&&!e.all)}}function jU(i,s){if(1&i&&(n.TgZ(0,"th",18),n.YNc(1,VU,3,7,"mat-checkbox",19),n.qZA()),2&i){const e=n.oxw(2);n.xp6(1),n.Q6J("ngIf",e.selection.isMultipleSelection())}}const UU=function(i){return{name:i}};function NU(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"td",21)(1,"mat-checkbox",22),n.NdJ("change",function(r){const h=n.CHM(e).$implicit,c=n.oxw(2);return n.KtG(r?c.selection.toggle(h):null)})("click",function(r){return r.stopPropagation()}),n.ALo(2,"translate"),n.ALo(3,"checkboxLabel"),n.ALo(4,"userFullName"),n.qZA()()}if(2&i){const e=s.$implicit,t=n.oxw(2);n.xp6(1),n.Q6J("aria-label",n.xi3(2,2,n.lcZ(3,5,t.selection.isSelected(e)),n.VKq(9,UU,n.lcZ(4,7,e))))("checked",t.selection.isSelected(e))}}function FU(i,s){1&i&&(n.ynx(0,15),n.YNc(1,jU,2,1,"th",16),n.YNc(2,NU,5,11,"td",17),n.BQk())}function YU(i,s){1&i&&(n.TgZ(0,"th",23),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"AUTHORS_LIST.ID")))}function qU(i,s){if(1&i&&(n.TgZ(0,"td",24),n._uU(1),n.qZA()),2&i){const e=s.$implicit;n.xp6(1),n.Oqu(e.id)}}function zU(i,s){1&i&&(n.TgZ(0,"th",23),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"AUTHORS_LIST.NAME")," "))}function GU(i,s){if(1&i&&(n.TgZ(0,"td",25),n._uU(1),n.ALo(2,"userFullName"),n.qZA()),2&i){const e=s.$implicit;n.xp6(1),n.Oqu(n.lcZ(2,1,e))}}function WU(i,s){1&i&&(n.TgZ(0,"th",23),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"AUTHORS_LIST.ORGANIZATION")," "))}function $U(i,s){if(1&i&&(n.TgZ(0,"td",25),n._uU(1),n.qZA()),2&i){const e=s.$implicit,t=n.oxw();n.xp6(1),n.Oqu(t.parseAttribute(e,"organization"))}}function JU(i,s){1&i&&(n.TgZ(0,"th",23),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"AUTHORS_LIST.EMAIL")," "))}function ZU(i,s){if(1&i&&(n.TgZ(0,"td",25),n._uU(1),n.qZA()),2&i){const e=s.$implicit,t=n.oxw();n.xp6(1),n.Oqu(t.parseAttribute(e,"preferredMail"))}}function QU(i,s){1&i&&(n.TgZ(0,"th",23),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"AUTHORS_LIST.NUMBER_OF_PUBLICATIONS")," "))}function KU(i,s){if(1&i&&(n.TgZ(0,"td",25),n._uU(1),n.qZA()),2&i){const e=s.$implicit;n.xp6(1),n.Oqu(e.authorships.length.toString())}}function XU(i,s){1&i&&n._UZ(0,"tr",26)}const gH=function(i){return["/authors",i]};function eN(i,s){if(1&i&&n._UZ(0,"tr",27),2&i){const e=s.$implicit,t=n.oxw();n.ekj("cursor-pointer",!t.disableRouting),n.Q6J("perunWebAppsMiddleClickRouterLink",t.disableRouting?null:n.VKq(4,gH,e.id))("routerLink",t.disableRouting?null:n.VKq(6,gH,e.id))}}function tN(i,s){1&i&&(n.TgZ(0,"perun-web-apps-alert",28),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function nN(i,s){1&i&&(n.TgZ(0,"perun-web-apps-alert",28),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"AUTHORS_LIST.NO_AUTHORS"),"\n"))}const iN=function(i){return{all:i}};let PS=(()=>{class i{constructor(e){this.tableCheckbox=e,this.authors=[],this.displayedColumns=["select","id","name","organization","email","numberOfPublications"],this.disableRouting=!1,this.selection=new Kn(!0,[]),this.pageSizeOptions=jl}set matSort(e){this.sort=e,this.setDataSource()}static getFilterDataForColumn(e,t){switch(t){case"id":return e.id.toString();case"name":return function Ny(i){let s="";return null!==i.firstName&&(s+=i.firstName+" "),null!==i.middleName&&(s+=i.middleName+" "),null!==i.lastName&&(s+=i.lastName+" "),s.endsWith(" ")&&(s=s.substring(0,s.length-1)),s}(e);case"organization":return Ou(e.attributes,"organization");case"email":return Ou(e.attributes,"preferredMail");case"numberOfPublications":return e.authorships.length.toString();default:return e[t]}}static getExportDataForColumn(e,t){switch(t){case"id":return e.id.toString();case"name":return function Uy(i){let s="";return null!==i.titleBefore&&(s+=i.titleBefore+" "),null!==i.firstName&&(s+=i.firstName+" "),null!==i.middleName&&(s+=i.middleName+" "),null!==i.lastName&&(s+=i.lastName+" "),null!==i.titleAfter&&(s+=i.titleAfter+" "),s.endsWith(" ")&&(s=s.substring(0,s.length-1)),s}(e);case"organization":return Ou(e.attributes,"organization");case"email":return Ou(e.attributes,"preferredMail");case"numberOfPublications":return e.authorships.length.toString();default:return e[t]}}static getSortDataForColumn(e,t){switch(t){case"id":return e.id.toString();case"name":return e.lastName?e.lastName:e.firstName??"";case"organization":return Ou(e.attributes,"organization");case"email":return Ou(e.attributes,"preferredMail");case"numberOfPublications":return e.authorships.length.toString();default:return e[t]}}ngOnChanges(){this.dataSource=new zl(this.authors),this.setDataSource(),this.dataSource.filter=this.filterValue}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}exportAllData(e){Pa(Ha(this.dataSource.filteredData,this.displayedColumns,i.getExportDataForColumn),e)}exportDisplayedData(e){const t=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,r=t+this.dataSource.paginator.pageSize;Pa(Ha(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(t,r),this.displayedColumns,i.getExportDataForColumn),e)}parseAttribute(e,t){let r="";return e.attributes&&e.attributes.forEach(d=>{d.friendlyName===t&&(r=d.value)}),r}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>Eo(e,t,this.displayedColumns,i.getFilterDataForColumn),this.dataSource.sortData=(e,t)=>Mo(e,t,i.getSortDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36($p))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-authors-list"]],viewQuery:function(e,t){if(1&e&&(n.Gf(as,7),n.Gf(Oa,7)),2&e){let r;n.iGM(r=n.CRH())&&(t.child=r.first),n.iGM(r=n.CRH())&&(t.matSort=r.first)}},inputs:{authors:"authors",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",disableRouting:"disableRouting",reloadTable:"reloadTable",selection:"selection",pageSizeOptions:"pageSizeOptions"},features:[n.TTD],decls:24,vars:15,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","name","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","organization"],["matColumnDef","email"],["matColumnDef","numberOfPublications"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"perunWebAppsMiddleClickRouterLink","routerLink","cursor-pointer",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change",4,"ngIf"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportDisplayedData",function(d){return t.exportDisplayedData(d)})("exportAllData",function(d){return t.exportAllData(d)}),n.TgZ(2,"table",2),n.YNc(3,FU,3,0,"ng-container",3),n.ALo(4,"isAllSelected"),n.ynx(5,4),n.YNc(6,YU,3,3,"th",5),n.YNc(7,qU,2,1,"td",6),n.BQk(),n.ynx(8,7),n.YNc(9,zU,3,3,"th",5),n.YNc(10,GU,3,3,"td",8),n.BQk(),n.ynx(11,9),n.YNc(12,WU,3,3,"th",5),n.YNc(13,$U,2,1,"td",8),n.BQk(),n.ynx(14,10),n.YNc(15,JU,3,3,"th",5),n.YNc(16,ZU,2,1,"td",8),n.BQk(),n.ynx(17,11),n.YNc(18,QU,3,3,"th",5),n.YNc(19,KU,2,1,"td",8),n.BQk(),n.YNc(20,XU,1,0,"tr",12),n.YNc(21,eN,1,8,"tr",13),n.qZA()()(),n.YNc(22,tN,3,3,"perun-web-apps-alert",14),n.YNc(23,nN,3,3,"perun-web-apps-alert",14)),2&e&&(n.Q6J("hidden",0===t.authors.length||0===t.dataSource.filteredData.length),n.xp6(1),n.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),n.xp6(1),n.Q6J("dataSource",t.dataSource),n.xp6(1),n.Q6J("ngIf",n.VKq(13,iN,n.xi3(4,10,t.dataSource,t.selection.selected.length))),n.xp6(17),n.Q6J("matHeaderRowDef",t.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",t.displayedColumns),n.xp6(1),n.Q6J("ngIf",0!==t.authors.length&&0===t.dataSource.filteredData.length),n.xp6(1),n.Q6J("ngIf",0===t.authors.length))},dependencies:[x.O5,cd,Do,Bs,Yl,Vs,Os,Ho,js,Us,ql,Po,Oa,rf,Ts,na,as,hH,Vx,it,HS,zC,d_,GC],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),i})();function rN(i,s){1&i&&n._UZ(0,"mat-spinner",8)}const aN=function(){return["id","name","organization","email","numberOfPublications"]};function sN(i,s){if(1&i&&n._UZ(0,"perun-web-apps-authors-list",9),2&i){const e=n.oxw();n.Q6J("authors",e.authors)("displayedColumns",n.DdM(4,aN))("filterValue",e.filterValue)("tableId",e.tableId)}}let oN=(()=>{class i{constructor(e){this.cabinetService=e,this.filterValue="",this.tableId="67"}ngOnInit(){this.refreshTable()}refreshTable(){this.loading=!0,this.cabinetService.findAllAuthors().subscribe(e=>{this.authors=e,this.loading=!1})}applyFilter(e){this.filterValue=e}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(wn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-authors-page"]],decls:11,vars:6,consts:[[1,"user-theme"],[1,"page-subtitle","d-flex"],[1,"title-icon"],[1,"ml-3","mt-1"],[3,"refresh"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"authors","displayedColumns","filterValue","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"authors","displayedColumns","filterValue","tableId"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"h1",1)(2,"mat-icon",2),n._uU(3,"assignment_ind"),n.qZA(),n.TgZ(4,"span",3),n._uU(5),n.ALo(6,"translate"),n.qZA()(),n.TgZ(7,"perun-web-apps-refresh-button",4),n.NdJ("refresh",function(){return t.refreshTable()}),n.qZA(),n.TgZ(8,"perun-web-apps-debounce-filter",5),n.NdJ("filter",function(d){return t.applyFilter(d)}),n.qZA(),n.YNc(9,rN,1,0,"mat-spinner",6),n.YNc(10,sN,1,5,"perun-web-apps-authors-list",7),n.qZA()),2&e&&(n.xp6(5),n.Oqu(n.lcZ(6,4,"AUTHORS_PAGE.TITLE")),n.xp6(3),n.Q6J("placeholder","AUTHORS_PAGE.FILTER"),n.xp6(1),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading))},dependencies:[x.O5,Ln,Mn,sf,BU,PS,it]}),i})();function lN(i,s){1&i&&n._UZ(0,"mat-spinner",4)}function cN(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"div")(1,"div",5)(2,"mat-form-field"),n._UZ(3,"input",6),n.ALo(4,"translate"),n.TgZ(5,"mat-error"),n._uU(6),n.ALo(7,"translate"),n.qZA()(),n.TgZ(8,"mat-form-field"),n._UZ(9,"input",6),n.ALo(10,"translate"),n.TgZ(11,"mat-error"),n._uU(12),n.ALo(13,"translate"),n.qZA()(),n.TgZ(14,"p",7),n._uU(15),n.ALo(16,"translate"),n.qZA()(),n.TgZ(17,"div",8)(18,"button",9),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onCancel())}),n._uU(19),n.ALo(20,"translate"),n.qZA(),n.TgZ(21,"div",10),n.ALo(22,"translate"),n.TgZ(23,"button",11),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onSubmit())}),n._uU(24),n.ALo(25,"translate"),n.qZA()()()()}if(2&i){const e=n.oxw();n.xp6(3),n.s9C("placeholder",n.lcZ(4,12,"DIALOGS.ADD_CATEGORY.NAME")),n.Q6J("formControl",e.nameCtrl),n.xp6(3),n.hij(" ",n.lcZ(7,14,"DIALOGS.ADD_CATEGORY.FILL_NAME")," "),n.xp6(3),n.s9C("placeholder",n.lcZ(10,16,"DIALOGS.ADD_CATEGORY.RANK")),n.Q6J("formControl",e.rankCtrl),n.xp6(3),n.hij(" ",n.lcZ(13,18,"DIALOGS.ADD_CATEGORY.FILL_RANK")," "),n.xp6(3),n.Oqu(n.lcZ(16,20,"DIALOGS.ADD_CATEGORY.RANK_HINT")),n.xp6(4),n.hij(" ",n.lcZ(20,22,"DIALOGS.ADD_CATEGORY.CANCEL")," "),n.xp6(2),n.s9C("matTooltip",n.lcZ(22,24,"DIALOGS.ADD_CATEGORY.TOOLTIP")),n.Q6J("matTooltipDisabled",e.nameCtrl.valid&&e.rankCtrl.valid),n.xp6(2),n.Q6J("disabled",e.nameCtrl.invalid||e.rankCtrl.invalid),n.xp6(1),n.hij(" ",n.lcZ(25,26,"DIALOGS.ADD_CATEGORY.CREATE")," ")}}let dN=(()=>{class i{constructor(e,t,r,d){this.dialogRef=e,this.notificator=t,this.cabinetManagerService=r,this.translate=d,d.get("DIALOGS.ADD_CATEGORY.SUCCESS").subscribe(h=>this.successMessage=h)}ngOnInit(){this.nameCtrl=new Nn("",[kn.required,kn.pattern("^[\\w.-]+( [\\w.-]+)*$"),kn.maxLength(128)]),this.rankCtrl=new Nn(null,[kn.required,kn.pattern("^[0-9]+(\\.[0-9])?$")])}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.cabinetManagerService.createCategoryCat({category:{id:0,beanName:"Category",name:this.nameCtrl.value,rank:this.rankCtrl.value}}).subscribe({next:()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},error:()=>this.loading=!1})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(si),n.Y36(Ji),n.Y36(wn),n.Y36(mn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-add-category-dialog"]],decls:6,vars:5,consts:[[1,"user-theme"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","",3,"placeholder","formControl"],[1,"mt-2"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"h1",1),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.YNc(4,lN,1,0,"mat-spinner",2),n.YNc(5,cN,26,28,"div",3),n.qZA()),2&e&&(n.xp6(2),n.Oqu(n.lcZ(3,3,"DIALOGS.ADD_CATEGORY.TITLE")),n.xp6(2),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading))},dependencies:[x.O5,Ot,Oi,$i,Bi,Mn,es,ar,Ra,Gi,Wi,ns,_r,ks,it],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),i})();function uN(i,s){1&i&&n._UZ(0,"mat-spinner",5)}function hN(i,s){1&i&&n._UZ(0,"th",14)}function pN(i,s){if(1&i&&(n.TgZ(0,"td",15),n._uU(1),n.qZA()),2&i){const e=s.$implicit;n.xp6(1),n.Oqu(e.name)}}function fN(i,s){1&i&&n._UZ(0,"tr",16)}function mN(i,s){1&i&&n._UZ(0,"tr",17)}function gN(i,s){if(1&i&&(n.TgZ(0,"div",6)(1,"p"),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"div",7),n._uU(5),n.ALo(6,"translate"),n.qZA(),n.TgZ(7,"table",8),n.ynx(8,9),n.YNc(9,hN,1,0,"th",10),n.YNc(10,pN,2,1,"td",11),n.BQk(),n.YNc(11,fN,1,0,"tr",12),n.YNc(12,mN,1,0,"tr",13),n.qZA()()),2&i){const e=n.oxw();n.xp6(2),n.hij(" ",n.lcZ(3,5,"DIALOGS.REMOVE_CATEGORY.DESCRIPTION")," "),n.xp6(3),n.hij(" ",n.lcZ(6,7,"DIALOGS.REMOVE_CATEGORY.ASK")," "),n.xp6(2),n.Q6J("dataSource",e.dataSource),n.xp6(4),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns)}}function _N(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"div",18)(1,"button",19),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onCancel())}),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"button",20),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onSubmit())}),n._uU(5),n.ALo(6,"translate"),n.qZA()()}if(2&i){const e=n.oxw();n.xp6(2),n.hij(" ",n.lcZ(3,3,"DIALOGS.REMOVE_CATEGORY.CANCEL")," "),n.xp6(2),n.Q6J("disabled",e.loading),n.xp6(1),n.hij(" ",n.lcZ(6,5,"DIALOGS.REMOVE_CATEGORY.DELETE")," ")}}let bN=(()=>{class i{constructor(e,t,r,d,h){this.dialogRef=e,this.data=t,this.notificator=r,this.translate=d,this.cabinetManagerService=h,this.displayedColumns=["name"],this.categories=[]}ngOnInit(){this.dataSource=new zl(this.data),this.categories=this.data}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.categories.length?this.cabinetManagerService.deleteCategory(this.categories.pop().id).subscribe(()=>{this.onSubmit()},()=>this.loading=!1):this.translate.get("DIALOGS.REMOVE_CATEGORY.SUCCESS").subscribe(e=>{this.loading=!1,this.notificator.showSuccess(e),this.dialogRef.close(!0)})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(si),n.Y36(wr),n.Y36(Ji),n.Y36(mn),n.Y36(wn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-remove-category-dialog"]],decls:7,vars:6,consts:[[1,"user-theme"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-header-row","","class","font-weight-bolder",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"h1",1),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.YNc(4,uN,1,0,"mat-spinner",2),n.YNc(5,gN,13,9,"div",3),n.YNc(6,_N,7,7,"div",4),n.qZA()),2&e&&(n.xp6(2),n.Oqu(n.lcZ(3,4,"DIALOGS.REMOVE_CATEGORY.TITLE")),n.xp6(2),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading))},dependencies:[x.O5,Ot,Do,Bs,Yl,Vs,Os,Ho,js,Us,ql,Po,Oi,$i,Bi,Mn,it]}),i})(),wN=(()=>{class i{constructor(e){this.elementRef=e}ngOnInit(){this.elementRef.nativeElement.focus()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq))},i.\u0275dir=n.lG2({type:i,selectors:[["","perunWebAppsAutoFocus",""]]}),i})();function yN(i,s){if(1&i&&(n._UZ(0,"input",3),n.ALo(1,"translate")),2&i){const e=n.oxw();n.s9C("placeholder",n.lcZ(1,2,e.placeholder)),n.Q6J("formControl",e.formControl)}}function CN(i,s){if(1&i&&(n._UZ(0,"input",4),n.ALo(1,"translate")),2&i){const e=n.oxw();n.s9C("placeholder",n.lcZ(1,2,e.placeholder)),n.Q6J("formControl",e.formControl)}}let h_=(()=>{class i{constructor(){this.filter=new n.vpe,this.autoFocus=!1,this.formControl=new gg}ngOnInit(){this.formControl.valueChanges.subscribe(e=>{let t=e.trim();t=t.toLowerCase(),this.filter.emit(t)})}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-immediate-filter"]],inputs:{placeholder:"placeholder",autoFocus:"autoFocus"},outputs:{filter:"filter"},decls:3,vars:2,consts:[[1,"filter-field","mr-2"],["matInput","","perunWebAppsAutoFocus","","data-cy","auto-focused-filter",3,"formControl","placeholder",4,"ngIf"],["matInput","","data-cy","unfocused-filter",3,"formControl","placeholder",4,"ngIf"],["matInput","","perunWebAppsAutoFocus","","data-cy","auto-focused-filter",3,"formControl","placeholder"],["matInput","","data-cy","unfocused-filter",3,"formControl","placeholder"]],template:function(e,t){1&e&&(n.TgZ(0,"mat-form-field",0),n.YNc(1,yN,2,4,"input",1),n.YNc(2,CN,2,4,"input",2),n.qZA()),2&e&&(n.xp6(1),n.Q6J("ngIf",t.autoFocus),n.xp6(1),n.Q6J("ngIf",!t.autoFocus))},dependencies:[x.O5,Gi,Wi,ar,_r,Ra,wN,it],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:initial!important}"]}),i})();function AN(i,s){1&i&&n._UZ(0,"mat-spinner",4)}function vN(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"div")(1,"div",5)(2,"mat-form-field"),n._UZ(3,"input",6),n.ALo(4,"translate"),n.TgZ(5,"mat-error"),n._uU(6),n.ALo(7,"translate"),n.qZA()(),n.TgZ(8,"p",7),n._uU(9),n.ALo(10,"translate"),n.qZA()(),n.TgZ(11,"div",8)(12,"button",9),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onCancel())}),n._uU(13),n.ALo(14,"translate"),n.qZA(),n.TgZ(15,"div",10),n.ALo(16,"translate"),n.TgZ(17,"button",11),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onSubmit())}),n._uU(18),n.ALo(19,"translate"),n.qZA()()()()}if(2&i){const e=n.oxw();n.xp6(3),n.s9C("placeholder",n.lcZ(4,9,"DIALOGS.UPDATE_RANK.RANK")),n.Q6J("formControl",e.rankCtrl),n.xp6(3),n.hij(" ",n.lcZ(7,11,"DIALOGS.UPDATE_RANK.FILL_RANK")," "),n.xp6(3),n.Oqu(n.lcZ(10,13,"DIALOGS.UPDATE_RANK.RANK_HINT")),n.xp6(4),n.hij(" ",n.lcZ(14,15,"DIALOGS.UPDATE_RANK.CANCEL")," "),n.xp6(2),n.s9C("matTooltip",n.lcZ(16,17,"DIALOGS.UPDATE_RANK.TOOLTIP")),n.Q6J("matTooltipDisabled",e.rankCtrl.valid),n.xp6(2),n.Q6J("disabled",e.rankCtrl.invalid),n.xp6(1),n.hij(" ",n.lcZ(19,19,"DIALOGS.UPDATE_RANK.UPDATE")," ")}}let TN=(()=>{class i{constructor(e,t,r,d,h){this.dialogRef=e,this.data=t,this.notificator=r,this.cabinetManagerService=d,this.translate=h,this.categoryName="",h.get("DIALOGS.UPDATE_RANK.SUCCESS").subscribe(c=>this.successMessage=c)}ngOnInit(){this.categoryName=this.data.name,this.rankCtrl=new Nn(this.data.rank,[kn.required,kn.pattern("^[0-9]+(\\.[0-9])?$")])}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.data.rank=this.rankCtrl.value,this.cabinetManagerService.updateCategory({category:this.data}).subscribe({next:()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},error:()=>this.loading=!1})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(si),n.Y36(wr),n.Y36(Ji),n.Y36(wn),n.Y36(mn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-update-rank-dialog"]],decls:6,vars:6,consts:[[1,"user-theme"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","",3,"placeholder","formControl"],[1,"mt-2"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"h1",1),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.YNc(4,AN,1,0,"mat-spinner",2),n.YNc(5,vN,20,21,"div",3),n.qZA()),2&e&&(n.xp6(2),n.AsE("",n.lcZ(3,4,"DIALOGS.UPDATE_RANK.TITLE"),"",t.categoryName,""),n.xp6(2),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading))},dependencies:[x.O5,Ot,Oi,$i,Bi,Mn,es,ar,Ra,Gi,Wi,ns,_r,ks,it],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),i})();function xN(i,s){1&i&&n._UZ(0,"th",15)}const SN=function(i){return{name:i}};function MN(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"td",16)(1,"mat-checkbox",17),n.NdJ("change",function(r){const h=n.CHM(e).$implicit,c=n.oxw();return n.KtG(r?c.itemSelectionToggle(h):null)})("click",function(r){return r.stopPropagation()}),n.ALo(2,"translate"),n.ALo(3,"checkboxLabel"),n.qZA()()}if(2&i){const e=s.$implicit,t=n.oxw();n.xp6(1),n.Q6J("aria-label",n.xi3(2,2,n.lcZ(3,5,t.selection.isSelected(e)),n.VKq(7,SN,e.name)))("checked",t.selection.isSelected(e))}}function EN(i,s){1&i&&(n.TgZ(0,"th",18),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"CATEGORIES_LIST.ID")," "))}function DN(i,s){if(1&i&&(n.TgZ(0,"td",19),n._uU(1),n.qZA()),2&i){const e=s.$implicit;n.xp6(1),n.Oqu(e.id)}}function HN(i,s){1&i&&(n.TgZ(0,"th",18),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"CATEGORIES_LIST.NAME")," "))}function PN(i,s){if(1&i&&(n.TgZ(0,"td",20),n._uU(1),n.qZA()),2&i){const e=s.$implicit;n.xp6(1),n.Oqu(e.name)}}function RN(i,s){1&i&&(n.TgZ(0,"th",18),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"CATEGORIES_LIST.RANK")," "))}function kN(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"button",22),n.NdJ("click",function(){n.CHM(e);const r=n.oxw().$implicit,d=n.oxw();return n.KtG(d.updateCategory(r))}),n.TgZ(1,"mat-icon"),n._uU(2,"edit"),n.qZA()()}}function LN(i,s){if(1&i&&(n.TgZ(0,"td",20),n._uU(1),n.YNc(2,kN,3,0,"button",21),n.qZA()),2&i){const e=s.$implicit,t=n.oxw();n.xp6(1),n.hij(" ",e.rank," "),n.xp6(1),n.Q6J("ngIf",t.editAuth)}}function IN(i,s){1&i&&n._UZ(0,"tr",23)}function ON(i,s){1&i&&n._UZ(0,"tr",24)}function BN(i,s){1&i&&(n.TgZ(0,"perun-web-apps-alert",25),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"CATEGORIES_PAGE.NO_FILTER_RESULTS"),"\n"))}let VN=(()=>{class i{constructor(e,t,r,d){this.guiAuthResolver=e,this.tableCheckbox=t,this.dialog=r,this.authResolver=d,this.categories=[],this.selection=new Kn(!0,[]),this.displayedColumns=["select","id","name","rank"],this.pageSizeOptions=jl,this.refreshTable=new n.vpe,this.editAuth=!1}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,t){switch(t){case"id":return e.id.toString();case"name":return e.name;case"rank":return e.rank.toString();default:return e[t]}}ngOnChanges(){this.dataSource=new zl(this.categories),this.setDataSource(),this.dataSource.filter=this.filterValue}exportAllData(e){Pa(Ha(this.dataSource.filteredData,this.displayedColumns,i.getDataForColumn),e)}exportDisplayedData(e){const t=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,r=t+this.dataSource.paginator.pageSize;Pa(Ha(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(t,r),this.displayedColumns,i.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>Eo(e,t,this.displayedColumns,i.getDataForColumn),this.dataSource.sortData=(e,t)=>Mo(e,t,i.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}ngAfterViewInit(){this.editAuth=this.authResolver.isCabinetAdmin(),this.dataSource.paginator=this.child.paginator}itemSelectionToggle(e){this.selection.toggle(e)}updateCategory(e){const t=Jn();t.width="400px",t.data=e,this.dialog.open(TN,t).afterClosed().subscribe(d=>{d&&this.refreshTable.emit()})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(dn),n.Y36($p),n.Y36(oi),n.Y36(dn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-categories-list"]],viewQuery:function(e,t){if(1&e&&(n.Gf(as,7),n.Gf(Oa,7)),2&e){let r;n.iGM(r=n.CRH())&&(t.child=r.first),n.iGM(r=n.CRH())&&(t.matSort=r.first)}},inputs:{categories:"categories",selection:"selection",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",pageSizeOptions:"pageSizeOptions"},outputs:{refreshTable:"refreshTable"},features:[n.TTD],decls:18,vars:8,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","name","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","rank"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-icon-button","",3,"click",4,"ngIf"],["mat-icon-button","",3,"click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportDisplayedData",function(d){return t.exportDisplayedData(d)})("exportAllData",function(d){return t.exportAllData(d)}),n.TgZ(2,"table",2),n.ynx(3,3),n.YNc(4,xN,1,0,"th",4),n.YNc(5,MN,4,9,"td",5),n.BQk(),n.ynx(6,6),n.YNc(7,EN,3,3,"th",7),n.YNc(8,DN,2,1,"td",8),n.BQk(),n.ynx(9,9),n.YNc(10,HN,3,3,"th",7),n.YNc(11,PN,2,1,"td",10),n.BQk(),n.ynx(12,11),n.YNc(13,RN,3,3,"th",7),n.YNc(14,LN,3,2,"td",10),n.BQk(),n.YNc(15,IN,1,0,"tr",12),n.YNc(16,ON,1,0,"tr",13),n.qZA()()(),n.YNc(17,BN,3,3,"perun-web-apps-alert",14)),2&e&&(n.Q6J("hidden",0===t.dataSource.filteredData.length||0===t.categories.length),n.xp6(1),n.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),n.xp6(1),n.Q6J("dataSource",t.dataSource),n.xp6(13),n.Q6J("matHeaderRowDef",t.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",t.displayedColumns),n.xp6(1),n.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.categories.length))},dependencies:[x.O5,Ot,cd,Ln,Do,Bs,Yl,Vs,Os,Ho,js,Us,ql,Po,Oa,rf,na,as,it,d_]}),i})();function jN(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"button",8),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.addCategory())}),n._uU(1),n.ALo(2,"translate"),n.qZA()}2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"CATEGORIES_PAGE.CREATE")," "))}function UN(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"button",9),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.removeCategory())}),n._uU(1),n.ALo(2,"translate"),n.qZA()}if(2&i){const e=n.oxw();n.Q6J("disabled",!e.selected.selected.length),n.xp6(1),n.hij(" ",n.lcZ(2,2,"CATEGORIES_PAGE.REMOVE")," ")}}function NN(i,s){1&i&&n._UZ(0,"mat-spinner",10)}const FN=function(){return["select","id","name","rank"]},YN=function(){return["name","rank"]};function qN(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"perun-web-apps-categories-list",11),n.NdJ("refreshTable",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.refreshTable())}),n.qZA()}if(2&i){const e=n.oxw();n.Q6J("categories",e.categories)("filterValue",e.filterValue)("displayedColumns",e.removeAuth?n.DdM(5,FN):n.DdM(6,YN))("tableId",e.tableId)("selection",e.selected)}}let zN=(()=>{class i{constructor(e,t,r){this.cabinetManagerService=e,this.dialog=t,this.guiAuthResolver=r,this.categories=[],this.selected=new Kn(!0,[]),this.filterValue="",this.tableId="5"}ngOnInit(){this.setAuth(),this.refreshTable()}setAuth(){this.removeAuth=this.guiAuthResolver.isAuthorized("deleteCategory_Category_policy",[]),this.addAuth=this.guiAuthResolver.isAuthorized("createCategory_Category_policy",[])}refreshTable(){this.loading=!0,this.cabinetManagerService.getCategories().subscribe(e=>{this.categories=e,this.loading=!1})}applyFilter(e){this.filterValue=e}addCategory(){const e=Jn();e.width="400px",e.data={},this.dialog.open(dN,e).afterClosed().subscribe(r=>{r&&this.refreshTable()})}removeCategory(){const e=Jn();e.width="400px",e.data=this.selected.selected,this.dialog.open(bN,e).afterClosed().subscribe(r=>{r&&(this.selected.clear(),this.refreshTable())})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(wn),n.Y36(oi),n.Y36(dn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-categories-page"]],decls:10,vars:8,consts:[[1,"user-theme"],[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2 action-button",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"categories","filterValue","displayedColumns","tableId","selection","refreshTable",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2","action-button",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"categories","filterValue","displayedColumns","tableId","selection","refreshTable"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"h1",1),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"perun-web-apps-refresh-button",2),n.NdJ("refresh",function(){return t.refreshTable()}),n.qZA(),n.YNc(5,jN,3,3,"button",3),n.YNc(6,UN,3,4,"button",4),n.TgZ(7,"perun-web-apps-immediate-filter",5),n.NdJ("filter",function(d){return t.applyFilter(d)}),n.qZA(),n.YNc(8,NN,1,0,"mat-spinner",6),n.YNc(9,qN,1,7,"perun-web-apps-categories-list",7),n.qZA()),2&e&&(n.xp6(2),n.Oqu(n.lcZ(3,6,"CATEGORIES_PAGE.TITLE")),n.xp6(3),n.Q6J("ngIf",t.addAuth),n.xp6(1),n.Q6J("ngIf",t.removeAuth),n.xp6(1),n.Q6J("placeholder","CATEGORIES_PAGE.FILTER"),n.xp6(1),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",t.categories&&!t.loading))},dependencies:[x.O5,Ot,Mn,sf,h_,VN,it]}),i})();function GN(i,s){1&i&&(n.TgZ(0,"th",14),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"PUBLICATION_SYSTEMS_LIST.ID")," "))}function WN(i,s){if(1&i&&(n.TgZ(0,"td",15),n._uU(1),n.qZA()),2&i){const e=s.$implicit;n.xp6(1),n.Oqu(e.id)}}function $N(i,s){1&i&&(n.TgZ(0,"th",14),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"PUBLICATION_SYSTEMS_LIST.FRIENDLY_NAME")," "))}function JN(i,s){if(1&i&&(n.TgZ(0,"td",16),n._uU(1),n.qZA()),2&i){const e=s.$implicit;n.xp6(1),n.Oqu(e.friendlyName)}}function ZN(i,s){1&i&&(n.TgZ(0,"th",14),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"PUBLICATION_SYSTEMS_LIST.LOGIN_NAMESPACE")," "))}function QN(i,s){if(1&i&&(n.TgZ(0,"td",16),n._uU(1),n.qZA()),2&i){const e=s.$implicit;n.xp6(1),n.hij(" ","empty"===e.loginNamespace?"":e.loginNamespace," ")}}function KN(i,s){1&i&&(n.TgZ(0,"th",14),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"PUBLICATION_SYSTEMS_LIST.URL")," "))}function XN(i,s){if(1&i&&(n.TgZ(0,"td",16),n._uU(1),n.qZA()),2&i){const e=s.$implicit;n.xp6(1),n.Oqu("empty"===e.url?"":e.url)}}function eF(i,s){1&i&&(n.TgZ(0,"th",14),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"PUBLICATION_SYSTEMS_LIST.TYPE")," "))}function tF(i,s){if(1&i&&(n.TgZ(0,"td",16),n._uU(1),n.qZA()),2&i){const e=s.$implicit;n.xp6(1),n.Oqu("empty"===e.type?"":e.type)}}function nF(i,s){1&i&&n._UZ(0,"tr",17)}function iF(i,s){1&i&&n._UZ(0,"tr",18)}function rF(i,s){1&i&&(n.TgZ(0,"perun-web-apps-alert",19),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}let aF=(()=>{class i{constructor(){this.publicationSystems=[],this.displayedColumns=["id","friendlyName","loginNamespace","url","type"],this.pageSizeOptions=jl}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,t){switch(t){case"id":return e.id.toString();case"friendlyName":return e.friendlyName;case"url":return e.url;case"loginNamespace":return e.loginNamespace;case"type":return e.type;default:return e[t]}}ngOnChanges(){this.dataSource=new zl(this.publicationSystems),this.setDataSource(),this.dataSource.filter=this.filterValue}exportAllData(e){Pa(Ha(this.dataSource.filteredData,this.displayedColumns,i.getDataForColumn),e)}exportDisplayedData(e){const t=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,r=t+this.dataSource.paginator.pageSize;Pa(Ha(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(t,r),this.displayedColumns,i.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>Eo(e,t,this.displayedColumns,i.getDataForColumn),this.dataSource.sortData=(e,t)=>Mo(e,t,i.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-publication-systems-list"]],viewQuery:function(e,t){if(1&e&&(n.Gf(as,7),n.Gf(Oa,7)),2&e){let r;n.iGM(r=n.CRH())&&(t.child=r.first),n.iGM(r=n.CRH())&&(t.matSort=r.first)}},inputs:{publicationSystems:"publicationSystems",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",pageSizeOptions:"pageSizeOptions"},features:[n.TTD],decls:21,vars:8,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","friendlyName"],["mat-cell","",4,"matCellDef"],["matColumnDef","loginNamespace"],["matColumnDef","url"],["matColumnDef","type"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportDisplayedData",function(d){return t.exportDisplayedData(d)})("exportAllData",function(d){return t.exportAllData(d)}),n.TgZ(2,"table",2),n.ynx(3,3),n.YNc(4,GN,3,3,"th",4),n.YNc(5,WN,2,1,"td",5),n.BQk(),n.ynx(6,6),n.YNc(7,$N,3,3,"th",4),n.YNc(8,JN,2,1,"td",7),n.BQk(),n.ynx(9,8),n.YNc(10,ZN,3,3,"th",4),n.YNc(11,QN,2,1,"td",7),n.BQk(),n.ynx(12,9),n.YNc(13,KN,3,3,"th",4),n.YNc(14,XN,2,1,"td",7),n.BQk(),n.ynx(15,10),n.YNc(16,eF,3,3,"th",4),n.YNc(17,tF,2,1,"td",7),n.BQk(),n.YNc(18,nF,1,0,"tr",11),n.YNc(19,iF,1,0,"tr",12),n.qZA()()(),n.YNc(20,rF,3,3,"perun-web-apps-alert",13)),2&e&&(n.Q6J("hidden",0===t.dataSource.filteredData.length||0===t.publicationSystems.length),n.xp6(1),n.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),n.xp6(1),n.Q6J("dataSource",t.dataSource),n.xp6(16),n.Q6J("matHeaderRowDef",t.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",t.displayedColumns),n.xp6(1),n.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.publicationSystems.length))},dependencies:[x.O5,Do,Bs,Yl,Vs,Os,Ho,js,Us,ql,Po,Oa,rf,na,as,it]}),i})();function sF(i,s){1&i&&n._UZ(0,"mat-spinner",6)}function oF(i,s){if(1&i&&n._UZ(0,"perun-web-apps-publication-systems-list",7),2&i){const e=n.oxw();n.Q6J("publicationSystems",e.publicationSystems)("filterValue",e.filterValue)("tableId",e.tableId)}}let lF=(()=>{class i{constructor(e){this.cabinetManagerService=e,this.publicationSystems=[],this.filterValue="",this.tableId="5"}ngOnInit(){this.refreshTable()}refreshTable(){this.loading=!0,this.cabinetManagerService.getPublicationSystems().subscribe(e=>{this.publicationSystems=e,this.loading=!1})}applyFilter(e){this.filterValue=e}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(wn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-publication-systems-page"]],decls:8,vars:6,consts:[[1,"user-theme"],[1,"page-subtitle"],[3,"refresh"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"publicationSystems","filterValue","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"publicationSystems","filterValue","tableId"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"h1",1),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"perun-web-apps-refresh-button",2),n.NdJ("refresh",function(){return t.refreshTable()}),n.qZA(),n.TgZ(5,"perun-web-apps-immediate-filter",3),n.NdJ("filter",function(d){return t.applyFilter(d)}),n.qZA(),n.YNc(6,sF,1,0,"mat-spinner",4),n.YNc(7,oF,1,3,"perun-web-apps-publication-systems-list",5),n.qZA()),2&e&&(n.xp6(2),n.Oqu(n.lcZ(3,4,"PUBLICATION_SYSTEMS_PAGE.TITLE")),n.xp6(3),n.Q6J("placeholder","PUBLICATION_SYSTEMS_PAGE.FILTER"),n.xp6(1),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",t.publicationSystems&&!t.loading))},dependencies:[x.O5,Mn,sf,h_,aF,it]}),i})();function cF(i,s){if(1&i&&n._UZ(0,"perun-web-apps-publications-list",11),2&i){const e=n.oxw(2);n.Q6J("publications",e.publications)("selection",e.selected)("tableId",e.tableId)("routerPath","/authors/"+e.author.id+"/publication")}}function dF(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"div")(1,"h5"),n._uU(2),n.ALo(3,"userFullName"),n.ALo(4,"translate"),n.qZA(),n.TgZ(5,"div",6)(6,"perun-web-apps-refresh-button",7),n.NdJ("refresh",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.refreshTable())}),n.qZA(),n.TgZ(7,"button",8),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.removePublication())}),n._uU(8),n.ALo(9,"translate"),n.qZA(),n.TgZ(10,"perun-web-apps-publication-filter",9),n.NdJ("filteredPublication",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.filterPublication(r))}),n.qZA()(),n.YNc(11,cF,1,4,"perun-web-apps-publications-list",10),n.qZA()}if(2&i){const e=n.oxw();n.xp6(2),n.AsE("",n.lcZ(3,5,e.author),"",n.lcZ(4,7,"AUTHOR_DETAIL.TITLE"),""),n.xp6(5),n.Q6J("disabled",0===e.selected.selected.length),n.xp6(1),n.hij(" ",n.lcZ(9,9,"AUTHOR_DETAIL.REMOVE")," "),n.xp6(3),n.Q6J("ngIf",!e.loading)}}function uF(i,s){1&i&&n._UZ(0,"mat-spinner",12)}let hF=(()=>{class i{constructor(e,t,r,d){this.route=e,this.cabinetService=t,this.userService=r,this.dialog=d,this.selected=new Kn(!0,[]),this.tableId="68"}ngOnInit(){this.initLoading=!0,this.route.params.subscribe(e=>{const t=Number(e.authorId);this.userService.getUserById(t).subscribe(r=>{this.author=r,this.initLoading=!1,this.refreshTable()})})}removePublication(){const e=Jn();e.width="500px",e.data=this.selected.selected,this.dialog.open(MS,e).afterClosed().subscribe(r=>{r&&this.refreshTable()})}refreshTable(){this.loading=!0,this.selected.clear(),this.cabinetService.findPublicationsByGUIFilter(null,null,null,null,null,null,null,null,this.author.id).subscribe(e=>{this.publications=e,this.loading=!1})}filterPublication(e){this.loading=!0,this.selected.clear(),this.cabinetService.findPublicationsByGUIFilter(e.title,e.isbnissn,e.doi,null,null,e.category,+e.startYear,+e.endYear,this.author.id).subscribe(t=>{this.publications=t,this.loading=!1})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Li),n.Y36(wn),n.Y36(Uo),n.Y36(oi))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-author-detail"]],decls:9,vars:5,consts:[[1,"user-theme"],[1,"page-subtitle","d-flex"],[1,"title-icon"],[1,"ml-3","mt-1"],[4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[1,"mt-3"],[3,"refresh"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[3,"filteredPublication"],[3,"publications","selection","tableId","routerPath",4,"ngIf"],[3,"publications","selection","tableId","routerPath"],[1,"ml-auto","mr-auto"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"h1",1)(2,"mat-icon",2),n._uU(3,"assignment_ind"),n.qZA(),n.TgZ(4,"span",3),n._uU(5),n.ALo(6,"translate"),n.qZA()(),n.YNc(7,dF,12,11,"div",4),n.YNc(8,uF,1,0,"mat-spinner",5),n.qZA()),2&e&&(n.xp6(5),n.Oqu(n.lcZ(6,3,"AUTHORS_PAGE.TITLE")),n.xp6(2),n.Q6J("ngIf",!t.initLoading),n.xp6(1),n.Q6J("ngIf",t.loading||t.initLoading))},dependencies:[x.O5,Ot,Ln,Mn,sf,af,DS,it,HS]}),i})();function pF(i,s){1&i&&n._UZ(0,"mat-spinner",2)}function fF(i,s){if(1&i&&(n.TgZ(0,"h3",15),n._uU(1),n.qZA()),2&i){const e=n.oxw(2);n.xp6(1),n.Oqu(e.publication.title)}}function mF(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"button",16),n.NdJ("click",function(){n.CHM(e);const r=n.oxw(2);return n.KtG(r.editing=!r.editing)}),n.ALo(1,"translate"),n.TgZ(2,"mat-icon",17),n._uU(3,"edit"),n.qZA()()}2&i&&n.s9C("matTooltip",n.lcZ(1,1,"PUBLICATION_DETAIL.LIST.EDIT"))}function gF(i,s){1&i&&(n.TgZ(0,"mat-error"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"PUBLICATION_DETAIL.LIST.EMPTY_ERROR")," "))}function _F(i,s){if(1&i&&(n.TgZ(0,"mat-form-field",18),n._UZ(1,"textarea",19),n.YNc(2,gF,3,3,"mat-error",1),n.qZA()),2&i){const e=n.oxw(2);n.xp6(1),n.Q6J("formControl",e.titleControl),n.xp6(1),n.Q6J("ngIf",e.titleControl.invalid)}}function bF(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"button",20),n.NdJ("click",function(){n.CHM(e);const r=n.oxw(2);return n.KtG(r.save())}),n.ALo(1,"translate"),n.TgZ(2,"mat-icon",17),n._uU(3,"save"),n.qZA()()}if(2&i){const e=n.oxw(2);n.s9C("matTooltip",n.lcZ(1,2,"PUBLICATION_DETAIL.LIST.SAVE")),n.Q6J("disabled",e.titleControl.invalid)}}function wF(i,s){1&i&&n._UZ(0,"th",21)}function yF(i,s){if(1&i&&(n.TgZ(0,"td",22),n._uU(1),n.qZA()),2&i){const e=s.$implicit;n.xp6(1),n.hij("",e.key,":")}}function CF(i,s){1&i&&n._UZ(0,"th",21)}function AF(i,s){if(1&i&&(n.TgZ(0,"span"),n._uU(1),n.TgZ(2,"span",24),n._uU(3),n.ALo(4,"translate"),n.qZA(),n._uU(5),n.TgZ(6,"span",24),n._uU(7),n.ALo(8,"translate"),n.qZA(),n._uU(9),n.qZA()),2&i){const e=n.oxw().$implicit,t=n.oxw(2);n.xp6(1),n.hij(" ",e.value," / "),n.xp6(2),n.hij("",n.lcZ(4,5,"PUBLICATION_DETAIL.LIST.EXT_ID"),":"),n.xp6(2),n.hij(" ",t.publication.externalId," "),n.xp6(2),n.hij("",n.lcZ(8,7,"PUBLICATION_DETAIL.LIST.SYSTEM"),":"),n.xp6(2),n.hij(" ",t.publication.pubSystemName," ")}}function vF(i,s){if(1&i&&(n.TgZ(0,"span"),n._uU(1),n.ALo(2,"date"),n.qZA()),2&i){const e=n.oxw().$implicit;n.xp6(1),n.hij(" ",n.xi3(2,1,e.value,"dd/MM/yyyy")," ")}}function TF(i,s){if(1&i&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&i){const e=n.oxw().$implicit;n.xp6(1),n.hij(" ",e.value," ")}}function xF(i,s){if(1&i&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&i){const e=n.oxw(3).$implicit;n.xp6(1),n.hij(" ",e.value," ")}}function SF(i,s){if(1&i&&(n.TgZ(0,"span"),n.YNc(1,xF,2,1,"span",1),n.qZA()),2&i){const e=n.oxw(2).$implicit;n.xp6(1),n.Q6J("ngIf","Id / Origin"!==e.key&&"Create date"!==e.key&&"Created by"!==e.key)}}function MF(i,s){1&i&&(n.TgZ(0,"span"),n._uU(1," - "),n.qZA())}function EF(i,s){if(1&i&&(n.TgZ(0,"div"),n.YNc(1,SF,2,1,"span",1),n.YNc(2,MF,2,0,"span",1),n.qZA()),2&i){const e=n.oxw().$implicit;n.xp6(1),n.Q6J("ngIf",null!==e.value&&""!==e.value),n.xp6(1),n.Q6J("ngIf",null===e.value||""===e.value)}}function DF(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"mat-form-field",26),n.NdJ("click",function(){n.CHM(e);const r=n.MAs(7);return n.KtG(r.open())}),n.TgZ(1,"mat-label"),n._uU(2),n.ALo(3,"translate"),n.qZA(),n._UZ(4,"input",27)(5,"mat-datepicker-toggle",28),n.TgZ(6,"mat-datepicker",29,30),n.NdJ("yearSelected",function(r){n.CHM(e);const d=n.MAs(7),h=n.oxw(4);return n.KtG(h.chosenYearHandler(r,d))}),n.qZA()()}if(2&i){const e=n.MAs(7),t=n.oxw(4);n.xp6(2),n.Oqu(n.lcZ(3,5,"PUBLICATION_DETAIL.LIST.YEAR")),n.xp6(2),n.Q6J("max",t.maxYear)("matDatepicker",e)("formControl",t.yearControl),n.xp6(1),n.Q6J("for",e)}}function HF(i,s){if(1&i&&(n.TgZ(0,"mat-option",33),n._uU(1),n.qZA()),2&i){const e=s.$implicit;n.Q6J("value",e.name),n.xp6(1),n.hij(" ",e.name," ")}}function PF(i,s){if(1&i&&(n.TgZ(0,"mat-form-field")(1,"mat-select",31),n.YNc(2,HF,2,2,"mat-option",32),n.qZA()()),2&i){const e=n.oxw(4);n.xp6(1),n.Q6J("formControl",e.categoryControl),n.xp6(1),n.Q6J("ngForOf",e.categories)}}function RF(i,s){1&i&&(n.TgZ(0,"mat-error"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"PUBLICATION_DETAIL.LIST.RANK_ERROR")," "))}function kF(i,s){if(1&i&&(n.TgZ(0,"mat-form-field"),n._UZ(1,"input",34),n.YNc(2,RF,3,3,"mat-error",1),n.qZA()),2&i){const e=n.oxw(4);n.xp6(1),n.Q6J("formControl",e.rankControl),n.xp6(1),n.Q6J("ngIf",e.rankControl.invalid)}}function LF(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"mat-form-field",18)(1,"input",35),n.NdJ("ngModelChange",function(r){n.CHM(e);const d=n.oxw(4);return n.KtG(d.publication.isbn=r)}),n.qZA()()}if(2&i){const e=n.oxw(4);n.xp6(1),n.Q6J("ngModel",e.publication.isbn)}}function IF(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"mat-form-field",18)(1,"input",35),n.NdJ("ngModelChange",function(r){n.CHM(e);const d=n.oxw(4);return n.KtG(d.publication.doi=r)}),n.qZA()()}if(2&i){const e=n.oxw(4);n.xp6(1),n.Q6J("ngModel",e.publication.doi)}}function OF(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"mat-form-field",18)(1,"textarea",36),n.NdJ("ngModelChange",function(r){n.CHM(e);const d=n.oxw(4);return n.KtG(d.publication.main=r)}),n.qZA()()}if(2&i){const e=n.oxw(4);n.xp6(1),n.Q6J("ngModel",e.publication.main)}}function BF(i,s){if(1&i&&(n.TgZ(0,"div"),n.YNc(1,DF,8,7,"mat-form-field",25),n.YNc(2,PF,3,2,"mat-form-field",1),n.YNc(3,kF,3,2,"mat-form-field",1),n.YNc(4,LF,2,1,"mat-form-field",6),n.YNc(5,IF,2,1,"mat-form-field",6),n.YNc(6,OF,2,1,"mat-form-field",6),n.qZA()),2&i){const e=n.oxw().$implicit;n.xp6(1),n.Q6J("ngIf","Year"===e.key),n.xp6(1),n.Q6J("ngIf","Category"===e.key),n.xp6(1),n.Q6J("ngIf","Rank"===e.key),n.xp6(1),n.Q6J("ngIf","ISBN / ISSN"===e.key),n.xp6(1),n.Q6J("ngIf","DOI"===e.key),n.xp6(1),n.Q6J("ngIf","Full cite"===e.key)}}function VF(i,s){if(1&i&&(n.TgZ(0,"td",23),n.YNc(1,AF,10,9,"span",1),n.YNc(2,vF,3,4,"span",1),n.YNc(3,TF,2,1,"span",1),n.YNc(4,EF,3,2,"div",1),n.YNc(5,BF,7,6,"div",1),n.qZA()),2&i){const e=s.$implicit,t=n.oxw(2);n.xp6(1),n.Q6J("ngIf","Id / Origin"===e.key),n.xp6(1),n.Q6J("ngIf","Create date"===e.key),n.xp6(1),n.Q6J("ngIf","Created by"===e.key),n.xp6(1),n.Q6J("ngIf",!t.editing),n.xp6(1),n.Q6J("ngIf",t.editing)}}function jF(i,s){1&i&&n._UZ(0,"tr",37)}function UF(i,s){if(1&i&&(n.TgZ(0,"div")(1,"div",3),n.YNc(2,fF,2,1,"h3",4),n.YNc(3,mF,4,3,"button",5),n.YNc(4,_F,3,2,"mat-form-field",6),n.YNc(5,bF,4,4,"button",7),n.qZA(),n.TgZ(6,"table",8),n.ynx(7,9),n.YNc(8,wF,1,0,"th",10),n.YNc(9,yF,2,1,"td",11),n.BQk(),n.ynx(10,12),n.YNc(11,CF,1,0,"th",10),n.YNc(12,VF,6,5,"td",13),n.BQk(),n.YNc(13,jF,1,0,"tr",14),n.qZA()()),2&i){const e=n.oxw();n.xp6(2),n.Q6J("ngIf",!e.editing),n.xp6(1),n.Q6J("ngIf",!e.editing&&!e.publication.locked&&!e.similarityCheck),n.xp6(1),n.Q6J("ngIf",e.editing),n.xp6(1),n.Q6J("ngIf",e.editing),n.xp6(1),n.Q6J("dataSource",e.dataSource),n.xp6(7),n.Q6J("matRowDefColumns",e.displayedColumns)}}const _H=lf,NF={parse:{dateInput:"YYYY"},display:{dateInput:"YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}};let FF=(()=>{class i{constructor(e,t,r){this.cabinetService=e,this.notificator=t,this.translate=r,this.categories=[],this.similarityCheck=!1,this.edited=new n.vpe,this.loading=!1,this.dataSource=null,this.displayedColumns=["key","value"],this.map=[],this.editing=!1}ngOnInit(){this.loading=!0,this.keys=["Id / Origin","Year","Category","Rank","ISBN / ISSN","DOI","Full cite","Created by","Create date"],this.values=[this.publication.id.toString(),this.publication.year.toString(),this.publication.categoryName,this.publication.rank.toString(),this.publication.isbn,this.publication.doi,this.publication.main,this.publication.createdBy,this.publication.createdDate];for(let e=0;ed.name===this.categoryControl.value).id,t=this.yearControl.value.year();this.cabinetService.updatePublication({publication:{id:this.publication.id,beanName:this.publication.beanName,externalId:this.publication.externalId,publicationSystemId:this.publication.publicationSystemId,title:this.titleControl.value,year:t,main:this.publication.main,isbn:this.publication.isbn,doi:this.publication.doi,categoryId:e,rank:this.rankControl.value,locked:this.publication.locked,createdBy:this.publication.createdBy,createdDate:this.publication.createdDate}}).subscribe({next:()=>{this.translate.get("PUBLICATION_DETAIL.CHANGE_PUBLICATION_SUCCESS").subscribe(d=>{this.notificator.showSuccess(d),this.edited.emit(!0),this.loading=!1})},error:()=>this.loading=!1})}chosenYearHandler(e,t){const r=this.yearControl.value;r.year(e.year()),this.yearControl.setValue(r),t.close()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(wn),n.Y36(Ji),n.Y36(mn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-publication-detail-list"]],inputs:{publication:"publication",categories:"categories",similarityCheck:"similarityCheck"},outputs:{edited:"edited"},features:[n._Bn([{provide:Un,useClass:u_,deps:[_o]},{provide:_i,useValue:NF}])],decls:3,vars:2,consts:[["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"d-flex"],["class","bigger-font w-75 mr-2",4,"ngIf"],["class","ml-auto","mat-icon-button","","matTooltipPosition","above",3,"matTooltip","click",4,"ngIf"],["class","w-75",4,"ngIf"],["class","ml-auto","mat-icon-button","","matTooltipPosition","above",3,"disabled","matTooltip","click",4,"ngIf"],["mat-table","",1,"w-100","layout",3,"dataSource"],["matColumnDef","key"],["mat-header-cell","",4,"matHeaderCellDef"],["class","font-weight-bold","mat-cell","",4,"matCellDef"],["matColumnDef","value"],["mat-cell","",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"bigger-font","w-75","mr-2"],["mat-icon-button","","matTooltipPosition","above",1,"ml-auto",3,"matTooltip","click"],[1,"big-icon"],[1,"w-75"],["matInput","",1,"bigger-font","fix-height",3,"formControl"],["mat-icon-button","","matTooltipPosition","above",1,"ml-auto",3,"disabled","matTooltip","click"],["mat-header-cell",""],["mat-cell","",1,"font-weight-bold"],["mat-cell",""],[1,"bold"],["class","mr-2",3,"click",4,"ngIf"],[1,"mr-2",3,"click"],["matInput","","readonly","",1,"disable",3,"max","matDatepicker","formControl"],["matSuffix","",3,"for"],["startView","multi-year",3,"yearSelected"],["sdp",""],[3,"formControl"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["matInput","",3,"formControl"],["matInput","",3,"ngModel","ngModelChange"],["matInput","",1,"fix-height",3,"ngModel","ngModelChange"],["mat-row",""]],template:function(e,t){1&e&&(n.TgZ(0,"div"),n.YNc(1,pF,1,0,"mat-spinner",0),n.YNc(2,UF,14,6,"div",1),n.qZA()),2&e&&(n.xp6(1),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading))},dependencies:[x.sg,x.O5,Ot,Ln,Do,Bs,Vs,Os,Ho,js,Us,Po,Mn,es,ar,ta,bu,Ra,Gi,Wi,Uc,_r,CS,c_,AS,ks,Jc,Al,x.uU,it],styles:[".disable[_ngcontent-%COMP%]{cursor:not-allowed;pointer-events:none}.bigger-font[_ngcontent-%COMP%]{font-size:1.5rem}.bold[_ngcontent-%COMP%]{font-weight:700}.big-icon[_ngcontent-%COMP%]{font-size:40px}.fix-height[_ngcontent-%COMP%]{min-height:6ch}.layout[_ngcontent-%COMP%]{table-layout:fixed}"]}),i})();const YF=function(){return["select","id","name","organization","email"]};function qF(i,s){if(1&i&&n._UZ(0,"perun-web-apps-authors-list",13),2&i){const e=n.oxw(3);n.Q6J("authors",e.authors)("selection",e.selection)("disableRouting",!0)("tableId",e.tableIdAuthors)("displayedColumns",n.DdM(5,YF))}}function zF(i,s){1&i&&(n.TgZ(0,"perun-web-apps-alert",14),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"DIALOGS.ADD_AUTHORS.SEARCH_INFO")," "))}function GF(i,s){if(1&i&&(n.TgZ(0,"div"),n.YNc(1,qF,1,6,"perun-web-apps-authors-list",11),n.YNc(2,zF,3,3,"perun-web-apps-alert",12),n.qZA()),2&i){const e=n.oxw(2);n.xp6(1),n.Q6J("ngIf",e.firstSearchDone),n.xp6(1),n.Q6J("ngIf",!e.firstSearchDone)}}function WF(i,s){1&i&&n._UZ(0,"mat-spinner",15)}function $F(i,s){if(1&i&&(n.TgZ(0,"div"),n.YNc(1,GF,3,2,"div",6),n.YNc(2,WF,1,0,"mat-spinner",7),n.qZA()),2&i){const e=n.oxw();n.xp6(1),n.Q6J("ngIf",!e.searchLoading),n.xp6(1),n.Q6J("ngIf",e.searchLoading)}}function JF(i,s){1&i&&n._UZ(0,"mat-spinner",15)}let ZF=(()=>{class i{constructor(e,t,r,d,h){this.dialogRef=e,this.data=t,this.notificator=r,this.cabinetService=d,this.translate=h,this.searchControl=new Nn(""),this.loading=!1,this.searchLoading=!1,this.firstSearchDone=!1,this.authors=[],this.alreadyAddedAuthors=[],this.tableIdAuthors="67",this.selection=new Kn(!0,[]),h.get("DIALOGS.ADD_AUTHORS.SUCCESS_MESSAGE").subscribe(c=>this.successMessage=c),this.publicationId=t.publicationId,this.alreadyAddedAuthors=t.alreadyAddedAuthors}ngOnInit(){this.searchControl=new Nn("",[kn.required,kn.pattern(".*[\\S]+.*")])}onSearchByString(){!this.searchLoading&&""!==this.searchControl.value.trim()&&(this.searchLoading=!0,this.cabinetService.findNewAuthors(this.searchControl.value).subscribe({next:e=>{e=e.filter(t=>!this.alreadyAddedAuthors.map(r=>r.id).includes(t.id)),this.authors=e,this.firstSearchDone=!0,this.searchLoading=!1},error:()=>{this.searchLoading=!1}}))}onAdd(){if(this.loading=!0,this.selection.selected.length){const e=this.selection.selected.pop();this.cabinetService.createAutorship({authorship:{id:0,beanName:"Authorship",publicationId:this.publicationId,userId:e.id}}).subscribe({next:()=>{this.onAdd()},error:()=>this.loading=!1})}else this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)}onCancel(){this.dialogRef.close(!1)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(si),n.Y36(wr),n.Y36(Ji),n.Y36(wn),n.Y36(mn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-add-authors-dialog"]],decls:24,vars:20,consts:[[1,"user-theme"],["mat-dialog-title",""],["mat-dialog-content",""],[1,"mr-2","adjust-width"],["matInput","","autocomplete","false",3,"placeholder","formControl","keyup.enter"],["mat-flat-button","","color","accent",1,"mr-2",3,"disabled","click"],[4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[3,"authors","selection","disableRouting","tableId","displayedColumns",4,"ngIf"],["alert_type","info",4,"ngIf"],[3,"authors","selection","disableRouting","tableId","displayedColumns"],["alert_type","info"],[1,"ml-auto","mr-auto"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"h1",1),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"div",2)(5,"mat-form-field",3)(6,"label")(7,"input",4),n.NdJ("keyup.enter",function(){return t.onSearchByString()}),n.ALo(8,"translate"),n.qZA()(),n.TgZ(9,"mat-error"),n._uU(10),n.ALo(11,"translate"),n.qZA()(),n.TgZ(12,"button",5),n.NdJ("click",function(){return t.onSearchByString()}),n.TgZ(13,"mat-icon"),n._uU(14,"search"),n.qZA()(),n.YNc(15,$F,3,2,"div",6),n.qZA(),n.YNc(16,JF,1,0,"mat-spinner",7),n.TgZ(17,"div",8)(18,"button",9),n.NdJ("click",function(){return t.onCancel()}),n._uU(19),n.ALo(20,"translate"),n.qZA(),n.TgZ(21,"button",10),n.NdJ("click",function(){return t.onAdd()}),n._uU(22),n.ALo(23,"translate"),n.qZA()()()),2&e&&(n.xp6(2),n.Oqu(n.lcZ(3,10,"DIALOGS.ADD_AUTHORS.TITLE")),n.xp6(5),n.s9C("placeholder",n.lcZ(8,12,"DIALOGS.ADD_AUTHORS.SEARCH_PLACEHOLDER")),n.Q6J("formControl",t.searchControl),n.xp6(3),n.hij(" ",n.lcZ(11,14,"DIALOGS.ADD_AUTHORS.EMPTY_SEARCH_MESSAGE")," "),n.xp6(2),n.Q6J("disabled",t.searchLoading||""===t.searchControl.value.trim()),n.xp6(3),n.Q6J("ngIf",!t.loading),n.xp6(1),n.Q6J("ngIf",t.loading),n.xp6(3),n.hij(" ",n.lcZ(20,16,"DIALOGS.ADD_AUTHORS.CANCEL")," "),n.xp6(2),n.Q6J("disabled",0===t.selection.selected.length||t.loading),n.xp6(1),n.hij(" ",n.lcZ(23,18,"DIALOGS.ADD_AUTHORS.ADD")," "))},dependencies:[x.O5,Ot,Ln,Oi,$i,Bi,Mn,es,ar,Ra,Gi,Wi,_r,na,PS,it],styles:[".top-margin[_ngcontent-%COMP%]{margin-top:15px}.adjust-width[_ngcontent-%COMP%]{width:300px}"]}),i})();function QF(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"button",6),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onAddAuthors())}),n._uU(1),n.ALo(2,"translate"),n.qZA()}2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"PUBLICATION_DETAIL.ADD")," "))}function KF(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"button",7),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onRemoveAuthors())}),n._uU(1),n.ALo(2,"translate"),n.qZA()}if(2&i){const e=n.oxw();n.Q6J("disabled",0===e.selection.selected.length||e.publication.locked),n.xp6(1),n.hij(" ",n.lcZ(2,2,"PUBLICATION_DETAIL.REMOVE")," ")}}function XF(i,s){1&i&&n._UZ(0,"mat-spinner",8)}const e3=function(){return["id","name","organization","email"]},t3=function(){return["select","id","name","organization","email"]};function n3(i,s){if(1&i&&n._UZ(0,"perun-web-apps-authors-list",9),2&i){const e=n.oxw();n.Q6J("authors",e.publication.authors)("selection",e.selection)("filterValue",e.filterValue)("tableId",e.tableId)("disableRouting",e.disableRouting)("displayedColumns",e.publication.locked?n.DdM(6,e3):n.DdM(7,t3))}}let bH=(()=>{class i{constructor(e,t,r,d,h){this.dialog=e,this.cabinetService=t,this.notificator=r,this.translate=d,this.storeService=h,this.selection=new Kn(!0,[]),this.disableRouting=!1,this.similarityCheck=!1,this.yourselfAsAnAuthor=new n.vpe,this.filterValue="",this.loading=!1,this.tableId="67"}ngOnInit(){this.refresh()}refresh(){this.loading=!0,this.cabinetService.findAuthorsByPublicationId(this.publication.id).subscribe(e=>{this.yourselfAsAnAuthor.emit(e.some(t=>t.id===this.storeService.getPerunPrincipal().userId)),this.publication.authors=e,this.selection.clear(),this.loading=!1})}onAddAuthors(){const e=Jn();e.width="800px",e.data={publicationId:this.publication.id,alreadyAddedAuthors:this.publication.authors},this.dialog.open(ZF,e).afterClosed().subscribe(r=>{r&&(this.selection.clear(),this.refresh())})}onRemoveAuthors(){const e=Jn();e.width="800px",e.data={items:this.selection.selected.map(r=>`${r.titleBefore?r.titleBefore:""} ${r.firstName?r.firstName:""} ${r.lastName?r.lastName:""} ${r.titleAfter?r.titleAfter:""}`),title:"DIALOGS.REMOVE_AUTHORS.TITLE",description:"DIALOGS.REMOVE_AUTHORS.DESCRIPTION",theme:"user-theme",type:"remove",showAsk:!0},this.dialog.open(Ox,e).afterClosed().subscribe(r=>{r&&this.removeAuthors(this.selection.selected)})}removeAuthors(e){if(this.loading=!0,e.length){const t=e.pop();this.cabinetService.deleteAuthorship(this.publication.id,t.id).subscribe(()=>{this.removeAuthors(e)},()=>this.loading=!1)}else this.notificator.showSuccess(this.translate.instant("DIALOGS.REMOVE_AUTHORS.SUCCESS_MESSAGE")),this.selection.clear(),this.refresh()}applyFilter(e){this.filterValue=e}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(oi),n.Y36(wn),n.Y36(Ji),n.Y36(mn),n.Y36(yi))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-add-authors"]],inputs:{publication:"publication",selection:"selection",disableRouting:"disableRouting",similarityCheck:"similarityCheck"},outputs:{yourselfAsAnAuthor:"yourselfAsAnAuthor"},decls:6,vars:5,consts:[[1,"'user-theme'"],["mat-flat-button","","color","accent","class","mr-2 action-button",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"authors","selection","filterValue","tableId","disableRouting","displayedColumns",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2","action-button",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"authors","selection","filterValue","tableId","disableRouting","displayedColumns"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0),n.YNc(1,QF,3,3,"button",1),n.YNc(2,KF,3,4,"button",2),n.TgZ(3,"perun-web-apps-immediate-filter",3),n.NdJ("filter",function(d){return t.applyFilter(d)}),n.qZA(),n.YNc(4,XF,1,0,"mat-spinner",4),n.YNc(5,n3,1,8,"perun-web-apps-authors-list",5),n.qZA()),2&e&&(n.xp6(1),n.Q6J("ngIf",!t.publication.locked),n.xp6(1),n.Q6J("ngIf",!t.publication.locked&&!t.similarityCheck),n.xp6(1),n.Q6J("placeholder","PUBLICATION_DETAIL.FILTER"),n.xp6(1),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading))},dependencies:[x.O5,Ot,Mn,h_,PS,it]}),i})();function r3(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"th",17)(1,"mat-checkbox",18),n.NdJ("change",function(r){n.CHM(e);const d=n.oxw(2);return n.KtG(r?d.masterToggle():null)}),n.ALo(2,"translate"),n.ALo(3,"masterCheckboxLabel"),n.qZA()()}if(2&i){const e=n.oxw().ngIf,t=n.oxw();n.xp6(1),n.Q6J("aria-label",n.lcZ(2,3,n.lcZ(3,5,e.all)))("checked",t.selection.hasValue()&&e.all)("indeterminate",t.selection.hasValue()&&!e.all)}}const a3=function(i){return{name:i}};function s3(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"td",19)(1,"mat-checkbox",20),n.NdJ("change",function(r){const h=n.CHM(e).$implicit,c=n.oxw(2);return n.KtG(r?c.selection.toggle(h):null)})("click",function(r){return r.stopPropagation()}),n.ALo(2,"translate"),n.ALo(3,"checkboxLabel"),n.qZA()()}if(2&i){const e=s.$implicit,t=n.oxw(2);n.xp6(1),n.Q6J("aria-label",n.xi3(2,2,n.lcZ(3,5,t.selection.isSelected(e)),n.VKq(7,a3,e.name)))("checked",t.selection.isSelected(e))}}function o3(i,s){1&i&&(n.ynx(0,14),n.YNc(1,r3,4,7,"th",15),n.YNc(2,s3,4,9,"td",16),n.BQk())}function l3(i,s){1&i&&(n.TgZ(0,"th",21),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.ID")," "))}function c3(i,s){if(1&i&&(n.TgZ(0,"td",22),n._uU(1),n.qZA()),2&i){const e=s.$implicit;n.xp6(1),n.hij(" ",e.id," ")}}function d3(i,s){1&i&&(n.TgZ(0,"th",21),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NAME")," "))}function u3(i,s){if(1&i&&(n.TgZ(0,"td",23),n._uU(1),n.qZA()),2&i){const e=s.$implicit;n.uIk("data-cy",e.name),n.xp6(1),n.Oqu(e.name)}}function h3(i,s){1&i&&(n.TgZ(0,"th",21),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.CONTACT")," "))}function p3(i,s){if(1&i&&(n.TgZ(0,"td",23),n._uU(1),n.qZA()),2&i){const e=s.$implicit;n.xp6(1),n.Oqu(e.contact)}}function f3(i,s){1&i&&(n.TgZ(0,"th",21),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.TYPE")," "))}function m3(i,s){if(1&i&&(n.TgZ(0,"td",23),n._uU(1),n.qZA()),2&i){const e=s.$implicit;n.xp6(1),n.Oqu(e.type)}}function g3(i,s){1&i&&n._UZ(0,"tr",24)}function _3(i,s){1&i&&n._UZ(0,"tr",25)}function b3(i,s){1&i&&(n.TgZ(0,"perun-web-apps-alert",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NO_OWNERS"),"\n"))}function w3(i,s){1&i&&(n.TgZ(0,"perun-web-apps-alert",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NO_FILTER_OWNERS"),"\n"))}const y3=function(i){return{all:i}};let C3=(()=>{class i{constructor(e,t){this.authResolver=e,this.tableCheckbox=t,this.owners=[],this.selection=new Kn(!0,[]),this.filterValue="",this.displayedColumns=["select","id","name","contact","type"],this.pageSizeOptions=jl}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,t){switch(t){case"id":return e.id.toString();case"name":return e.name;case"contact":return e.contact;case"type":return e.type;default:return""}}ngAfterViewInit(){this.setDataSource()}exportAllData(e){Pa(Ha(this.dataSource.filteredData,this.displayedColumns,i.getDataForColumn),e)}exportDisplayedData(e){const t=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,r=t+this.dataSource.paginator.pageSize;Pa(Ha(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(t,r),this.displayedColumns,i.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>Eo(e,t,this.displayedColumns,i.getDataForColumn),this.dataSource.sortData=(e,t)=>Mo(e,t,i.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"id"!==e)),this.dataSource=new zl(this.owners),this.setDataSource()}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(dn),n.Y36($p))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-owners-list"]],viewQuery:function(e,t){if(1&e&&(n.Gf(as,7),n.Gf(Oa,7)),2&e){let r;n.iGM(r=n.CRH())&&(t.child=r.first),n.iGM(r=n.CRH())&&(t.matSort=r.first)}},inputs:{owners:"owners",selection:"selection",tableId:"tableId",filterValue:"filterValue",displayedColumns:"displayedColumns"},features:[n.TTD],decls:21,vars:15,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","contact"],["matColumnDef","type"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportDisplayedData",function(d){return t.exportDisplayedData(d)})("exportAllData",function(d){return t.exportAllData(d)}),n.TgZ(2,"table",2),n.YNc(3,o3,3,0,"ng-container",3),n.ALo(4,"isAllSelected"),n.ynx(5,4),n.YNc(6,l3,3,3,"th",5),n.YNc(7,c3,2,1,"td",6),n.BQk(),n.ynx(8,7),n.YNc(9,d3,3,3,"th",5),n.YNc(10,u3,2,2,"td",8),n.BQk(),n.ynx(11,9),n.YNc(12,h3,3,3,"th",5),n.YNc(13,p3,2,1,"td",8),n.BQk(),n.ynx(14,10),n.YNc(15,f3,3,3,"th",5),n.YNc(16,m3,2,1,"td",8),n.BQk(),n.YNc(17,g3,1,0,"tr",11),n.YNc(18,_3,1,0,"tr",12),n.qZA()()(),n.YNc(19,b3,3,3,"perun-web-apps-alert",13),n.YNc(20,w3,3,3,"perun-web-apps-alert",13)),2&e&&(n.Q6J("hidden",0===t.owners.length||0===t.dataSource.filteredData.length),n.xp6(1),n.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),n.xp6(1),n.Q6J("dataSource",t.dataSource),n.xp6(1),n.Q6J("ngIf",n.VKq(13,y3,n.xi3(4,10,t.dataSource,t.selection.selected.length))),n.xp6(14),n.Q6J("matHeaderRowDef",t.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",t.displayedColumns),n.xp6(1),n.Q6J("ngIf",!t.owners.length),n.xp6(1),n.Q6J("ngIf",!t.dataSource.filteredData.length&&t.owners.length))},dependencies:[x.O5,cd,Do,Bs,Yl,Vs,Os,Ho,js,Us,ql,Po,Oa,rf,na,as,it,zC,d_,GC]}),i})();function A3(i,s){1&i&&n._UZ(0,"mat-spinner",4)}const v3=function(){return["select","id","name","contact"]};function T3(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"div")(1,"div",5)(2,"perun-web-apps-immediate-filter",6),n.NdJ("filter",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.filterValue=r)}),n.qZA(),n._UZ(3,"perun-web-apps-owners-list",7),n.qZA(),n.TgZ(4,"div",8)(5,"button",9),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onCancel())}),n._uU(6),n.ALo(7,"translate"),n.qZA(),n.TgZ(8,"button",10),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onSubmit())}),n._uU(9),n.ALo(10,"translate"),n.qZA()()()}if(2&i){const e=n.oxw();n.xp6(2),n.Q6J("placeholder","DIALOGS.ADD_THANKS.FILTER"),n.xp6(1),n.Q6J("owners",e.owners)("filterValue",e.filterValue)("tableId",e.tableId)("displayedColumns",n.DdM(13,v3))("selection",e.selected),n.xp6(3),n.hij(" ",n.lcZ(7,9,"DIALOGS.ADD_THANKS.CANCEL")," "),n.xp6(2),n.Q6J("disabled",0===e.selected.selected.length||e.loading),n.xp6(1),n.hij(" ",n.lcZ(10,11,"DIALOGS.ADD_THANKS.ADD")," ")}}let x3=(()=>{class i{constructor(e,t,r,d,h,c,o){this.dialogRef=e,this.data=t,this.ownersManagerService=r,this.storeService=d,this.notificator=h,this.translate=c,this.cabinetManagerService=o,this.selected=new Kn(!0,[]),this.tableId="73"}ngOnInit(){this.loading=!0;const e=this.storeService.getProperty("allowed_owners_for_thanks");this.ownersManagerService.getAllOwners().subscribe(t=>{this.owners=0!==e.length?t.filter(r=>e.includes(String(r.id))):t,this.owners=this.owners.filter(r=>!this.data.thanks.map(d=>d.ownerId).includes(r.id)),this.loading=!1})}onCancel(){this.dialogRef.close()}onSubmit(){this.loading=!0,0===this.selected.selected.length?this.translate.get("DIALOGS.ADD_THANKS.SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.dialogRef.close(!0)}):this.cabinetManagerService.createThanks({thanks:{publicationId:this.data.id,ownerId:this.selected.selected.pop().id,createdBy:this.storeService.getPerunPrincipal().actor,createdByUid:this.storeService.getPerunPrincipal().userId,createdDate:Date.now().toString(),id:0,beanName:"Thanks"}}).subscribe(()=>{this.onSubmit()},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(si),n.Y36(wr),n.Y36(Bo),n.Y36(yi),n.Y36(Ji),n.Y36(mn),n.Y36(wn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-add-thanks-dialog"]],decls:6,vars:5,consts:[[1,"user-theme"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"placeholder","filter"],[3,"owners","filterValue","tableId","displayedColumns","selection"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"h1",1),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.YNc(4,A3,1,0,"mat-spinner",2),n.YNc(5,T3,11,14,"div",3),n.qZA()),2&e&&(n.xp6(2),n.Oqu(n.lcZ(3,3,"DIALOGS.ADD_THANKS.TITLE")),n.xp6(2),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading))},dependencies:[x.O5,Ot,Oi,$i,Bi,Mn,h_,C3,it]}),i})();function S3(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"th",16)(1,"mat-checkbox",17),n.NdJ("change",function(r){n.CHM(e);const d=n.oxw(2);return n.KtG(r?d.masterToggle():null)}),n.ALo(2,"translate"),n.ALo(3,"masterCheckboxLabel"),n.qZA()()}if(2&i){const e=n.oxw().ngIf,t=n.oxw();n.xp6(1),n.Q6J("aria-label",n.lcZ(2,3,n.lcZ(3,5,e.all)))("checked",t.selection.hasValue()&&e.all)("indeterminate",t.selection.hasValue()&&!e.all)}}const M3=function(i){return{name:i}};function E3(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"td",18)(1,"mat-checkbox",19),n.NdJ("change",function(r){const h=n.CHM(e).$implicit,c=n.oxw(2);return n.KtG(r?c.selection.toggle(h):null)})("click",function(r){return r.stopPropagation()}),n.ALo(2,"translate"),n.ALo(3,"checkboxLabel"),n.qZA()()}if(2&i){const e=s.$implicit,t=n.oxw(2);n.xp6(1),n.Q6J("aria-label",n.xi3(2,2,n.lcZ(3,5,t.selection.isSelected(e)),n.VKq(7,M3,e.ownerName)))("checked",t.selection.isSelected(e))}}function D3(i,s){1&i&&(n.ynx(0,13),n.YNc(1,S3,4,7,"th",14),n.YNc(2,E3,4,9,"td",15),n.BQk())}function H3(i,s){1&i&&(n.TgZ(0,"th",20),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"THANKS_LIST.ID")))}function P3(i,s){if(1&i&&(n.TgZ(0,"td",21),n._uU(1),n.qZA()),2&i){const e=s.$implicit;n.xp6(1),n.Oqu(e.ownerId)}}function R3(i,s){1&i&&(n.TgZ(0,"th",20),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"THANKS_LIST.NAME")," "))}function k3(i,s){if(1&i&&(n.TgZ(0,"td",22),n._uU(1),n.qZA()),2&i){const e=s.$implicit;n.xp6(1),n.Oqu(e.ownerName)}}function L3(i,s){1&i&&(n.TgZ(0,"th",20),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"THANKS_LIST.CREATED_BY")," "))}function I3(i,s){if(1&i&&(n.TgZ(0,"td",22),n._uU(1),n.qZA()),2&i){const e=s.$implicit;n.xp6(1),n.Oqu(e.createdBy)}}function O3(i,s){1&i&&n._UZ(0,"tr",23)}function B3(i,s){1&i&&n._UZ(0,"tr",24)}function V3(i,s){1&i&&(n.TgZ(0,"perun-web-apps-alert",25),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function j3(i,s){1&i&&(n.TgZ(0,"perun-web-apps-alert",25),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"THANKS_LIST.NO_THANKS"),"\n"))}const U3=function(i){return{all:i}};let N3=(()=>{class i{constructor(e){this.tableCheckbox=e,this.thanks=[],this.filterValue="",this.displayedColumns=["select","id","name","createdBy"],this.pageSizeOptions=jl,this.selection=new Kn(!0,[])}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,t){switch(t){case"id":return e.ownerId.toString();case"name":return e.ownerName;default:return e[t]}}ngOnChanges(){this.dataSource=new zl(this.thanks),this.setDataSource(),this.dataSource.filter=this.filterValue}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}exportAllData(e){Pa(Ha(this.dataSource.filteredData,this.displayedColumns,i.getDataForColumn),e)}exportDisplayedData(e){const t=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,r=t+this.dataSource.paginator.pageSize;Pa(Ha(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(t,r),this.displayedColumns,i.getDataForColumn),e)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>Eo(e,t,this.displayedColumns,i.getDataForColumn),this.dataSource.sortData=(e,t)=>Mo(e,t,i.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36($p))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-thanks-list"]],viewQuery:function(e,t){if(1&e&&(n.Gf(as,7),n.Gf(Oa,7)),2&e){let r;n.iGM(r=n.CRH())&&(t.child=r.first),n.iGM(r=n.CRH())&&(t.matSort=r.first)}},inputs:{thanks:"thanks",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",pageSizeOptions:"pageSizeOptions",selection:"selection"},features:[n.TTD],decls:18,vars:15,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","name","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","createdBy"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportDisplayedData",function(d){return t.exportDisplayedData(d)})("exportAllData",function(d){return t.exportAllData(d)}),n.TgZ(2,"table",2),n.YNc(3,D3,3,0,"ng-container",3),n.ALo(4,"isAllSelected"),n.ynx(5,4),n.YNc(6,H3,3,3,"th",5),n.YNc(7,P3,2,1,"td",6),n.BQk(),n.ynx(8,7),n.YNc(9,R3,3,3,"th",5),n.YNc(10,k3,2,1,"td",8),n.BQk(),n.ynx(11,9),n.YNc(12,L3,3,3,"th",5),n.YNc(13,I3,2,1,"td",8),n.BQk(),n.YNc(14,O3,1,0,"tr",10),n.YNc(15,B3,1,0,"tr",11),n.qZA()()(),n.YNc(16,V3,3,3,"perun-web-apps-alert",12),n.YNc(17,j3,3,3,"perun-web-apps-alert",12)),2&e&&(n.Q6J("hidden",0===t.thanks.length||0===t.dataSource.filteredData.length),n.xp6(1),n.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),n.xp6(1),n.Q6J("dataSource",t.dataSource),n.xp6(1),n.Q6J("ngIf",n.VKq(13,U3,n.xi3(4,10,t.dataSource,t.selection.selected.length))),n.xp6(11),n.Q6J("matHeaderRowDef",t.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",t.displayedColumns),n.xp6(1),n.Q6J("ngIf",0!==t.thanks.length&&0===t.dataSource.filteredData.length),n.xp6(1),n.Q6J("ngIf",0===t.thanks.length))},dependencies:[x.O5,cd,Do,Bs,Yl,Vs,Os,Ho,js,Us,ql,Po,Oa,rf,na,as,it,zC,d_,GC]}),i})();function F3(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"button",6),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onAddThanks())}),n._uU(1),n.ALo(2,"translate"),n.qZA()}2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"PUBLICATION_DETAIL.ADD")," "))}function Y3(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"button",7),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onRemoveThanks())}),n._uU(1),n.ALo(2,"translate"),n.qZA()}if(2&i){const e=n.oxw();n.Q6J("disabled",0===e.selection.selected.length),n.xp6(1),n.hij(" ",n.lcZ(2,2,"PUBLICATION_DETAIL.REMOVE")," ")}}function q3(i,s){1&i&&n._UZ(0,"mat-spinner",8)}const z3=function(){return["id","name","createdBy"]},G3=function(){return["select","id","name","createdBy"]};function W3(i,s){if(1&i&&n._UZ(0,"perun-web-apps-thanks-list",9),2&i){const e=n.oxw();n.Q6J("thanks",e.publication.thanks)("filterValue",e.filterValue)("tableId",e.tableId)("displayedColumns",e.publication.locked?n.DdM(5,z3):n.DdM(6,G3))("selection",e.selection)}}let wH=(()=>{class i{constructor(e,t,r,d){this.dialog=e,this.cabinetService=t,this.notificator=r,this.translate=d,this.selection=new Kn(!0,[]),this.similarityCheck=!1,this.tableId="70",this.loading=!1,this.filterValue=""}ngOnInit(){this.refresh()}refresh(){this.loading=!0,this.cabinetService.findPublicationById(this.publication.id).subscribe(e=>{this.publication=e,this.selection.clear(),this.loading=!1})}onAddThanks(){const e=Jn();e.width="800px",e.data=this.publication,this.dialog.open(x3,e).afterClosed().subscribe(r=>{r&&this.refresh()})}onRemoveThanks(){const e=Jn();e.width="450px",e.data={items:this.selection.selected.map(r=>r.ownerName),title:"PUBLICATION_DETAIL.REMOVE_THANKS_DIALOG_TITLE",description:"PUBLICATION_DETAIL.REMOVE_THANKS_DIALOG_DESCRIPTION",theme:"user-theme",type:"remove",showAsk:!0},this.dialog.open(Ox,e).afterClosed().subscribe(r=>{r&&(this.loading=!0,this.removeThank())})}removeThank(){0===this.selection.selected.length?this.translate.get("PUBLICATION_DETAIL.REMOVE_THANKS_SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.refresh()}):this.cabinetService.deleteThanks(this.selection.selected.pop().id).subscribe(()=>{this.removeThank()})}applyFilter(e){this.filterValue=e}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(oi),n.Y36(wn),n.Y36(Ji),n.Y36(mn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-add-thanks"]],inputs:{publication:"publication",selection:"selection",similarityCheck:"similarityCheck"},decls:6,vars:5,consts:[[1,"'user-theme'"],["mat-flat-button","","color","accent","class","mr-2 action-button",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"thanks","filterValue","tableId","displayedColumns","selection",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2","action-button",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"thanks","filterValue","tableId","displayedColumns","selection"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0),n.YNc(1,F3,3,3,"button",1),n.YNc(2,Y3,3,4,"button",2),n.TgZ(3,"perun-web-apps-immediate-filter",3),n.NdJ("filter",function(d){return t.applyFilter(d)}),n.qZA(),n.YNc(4,q3,1,0,"mat-spinner",4),n.YNc(5,W3,1,7,"perun-web-apps-thanks-list",5),n.qZA()),2&e&&(n.xp6(1),n.Q6J("ngIf",!t.publication.locked&&!t.similarityCheck),n.xp6(1),n.Q6J("ngIf",!t.publication.locked&&!t.similarityCheck),n.xp6(1),n.Q6J("placeholder","PUBLICATION_DETAIL.FILTER"),n.xp6(1),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading))},dependencies:[x.O5,Ot,Mn,h_,N3,it]}),i})();function $3(i,s){1&i&&n._UZ(0,"mat-spinner",3)}function J3(i,s){1&i&&(n.TgZ(0,"h1",13)(1,"span")(2,"mat-icon",14),n._uU(3,"assignment_ind"),n.qZA(),n._uU(4),n.ALo(5,"translate"),n.qZA()()),2&i&&(n.xp6(4),n.hij(" ",n.lcZ(5,1,"AUTHORS_PAGE.TITLE")," "))}function Z3(i,s){1&i&&(n.TgZ(0,"h1",13),n._UZ(1,"mat-icon",15),n.TgZ(2,"span",16),n._uU(3),n.ALo(4,"translate"),n.qZA()()),2&i&&(n.xp6(3),n.Oqu(n.lcZ(4,1,"ALL_PUBLICATIONS.TITLE")))}function Q3(i,s){1&i&&(n.TgZ(0,"h1",13)(1,"span")(2,"mat-icon",14),n._uU(3,"local_library"),n.qZA(),n._uU(4),n.ALo(5,"translate"),n.qZA()()),2&i&&(n.xp6(4),n.hij(" ",n.lcZ(5,1,"MY_PUBLICATIONS.TITLE")," "))}function K3(i,s){if(1&i&&(n.TgZ(0,"h5",17),n._uU(1),n.ALo(2,"userFullName"),n.ALo(3,"translate"),n.qZA()),2&i){const e=n.oxw(2);n.xp6(1),n.AsE(" ",n.lcZ(2,2,e.mainAuthor),"",n.lcZ(3,4,"AUTHOR_DETAIL.TITLE")," ")}}function X3(i,s){1&i&&(n.TgZ(0,"span",18),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"PUBLICATION_DETAIL.LOCKED")," "))}function eY(i,s){1&i&&(n.TgZ(0,"mat-icon"),n._uU(1," lock "),n.qZA())}function tY(i,s){1&i&&(n.TgZ(0,"span",18),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"PUBLICATION_DETAIL.UNLOCKED")," "))}function nY(i,s){1&i&&(n.TgZ(0,"mat-icon"),n._uU(1," lock_open "),n.qZA())}function iY(i,s){1&i&&n._UZ(0,"mat-spinner",3)}function rY(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"perun-web-apps-publication-detail-list",19),n.NdJ("edited",function(){n.CHM(e);const r=n.oxw(2);return n.KtG(r.refreshPublication())}),n.qZA()}if(2&i){const e=n.oxw(2);n.Q6J("publication",e.publication)("categories",e.categories)("similarityCheck",e.similarityCheck)}}function aY(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"div"),n.YNc(1,J3,6,3,"h1",4),n.YNc(2,Z3,5,3,"h1",4),n.YNc(3,Q3,6,3,"h1",4),n.YNc(4,K3,4,6,"h5",5),n.TgZ(5,"h5"),n._uU(6),n.ALo(7,"translate"),n.qZA(),n.TgZ(8,"h6"),n._uU(9),n.ALo(10,"translate"),n.TgZ(11,"span",6),n.ALo(12,"translate"),n.TgZ(13,"button",7),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.changeLock())}),n.YNc(14,X3,3,3,"span",8),n.YNc(15,eY,2,0,"mat-icon",2),n.YNc(16,tY,3,3,"span",8),n.YNc(17,nY,2,0,"mat-icon",2),n.qZA()()(),n.TgZ(18,"mat-card")(19,"mat-card-content"),n.YNc(20,iY,1,0,"mat-spinner",1),n.YNc(21,rY,1,3,"perun-web-apps-publication-detail-list",9),n.qZA()(),n.TgZ(22,"mat-card",10)(23,"mat-card-title"),n._uU(24),n.ALo(25,"translate"),n.qZA(),n.TgZ(26,"mat-card-content"),n._UZ(27,"perun-web-apps-add-authors",11),n.qZA()(),n.TgZ(28,"mat-card",10)(29,"mat-card-title"),n._uU(30),n.ALo(31,"translate"),n.qZA(),n.TgZ(32,"mat-card-content"),n._UZ(33,"perun-web-apps-add-thanks",12),n.qZA()()()}if(2&i){const e=n.oxw();n.xp6(1),n.Q6J("ngIf","authors"===e.mode),n.xp6(1),n.Q6J("ngIf","all"===e.mode),n.xp6(1),n.Q6J("ngIf","my"===e.mode),n.xp6(1),n.Q6J("ngIf",void 0!==e.mainAuthor),n.xp6(2),n.Oqu(n.lcZ(7,24,"PUBLICATION_DETAIL.TITLE")),n.xp6(3),n.hij(" ",n.lcZ(10,26,"PUBLICATION_DETAIL.LOCK_INFO")," "),n.xp6(2),n.s9C("matTooltip",n.lcZ(12,28,"PUBLICATION_DETAIL.LOCK_DISABLED_TOOLTIP")),n.Q6J("matTooltipDisabled",e.lockAuth),n.xp6(2),n.Q6J("disabled",!e.lockAuth),n.xp6(1),n.Q6J("ngIf",e.publication.locked),n.xp6(1),n.Q6J("ngIf",e.publication.locked),n.xp6(1),n.Q6J("ngIf",!e.publication.locked),n.xp6(1),n.Q6J("ngIf",!e.publication.locked),n.xp6(3),n.Q6J("ngIf",e.loading||e.pubLoading),n.xp6(1),n.Q6J("ngIf",!e.pubLoading&&!e.loading),n.xp6(3),n.hij(" ",n.lcZ(25,30,"PUBLICATION_DETAIL.AUTHORS")," "),n.xp6(3),n.Q6J("publication",e.publication)("selection",e.selectionAuthors)("disableRouting",e.disableRouting)("similarityCheck",e.similarityCheck),n.xp6(3),n.hij(" ",n.lcZ(31,32,"PUBLICATION_DETAIL.ACKNOWLEDGEMENT")," "),n.xp6(3),n.Q6J("publication",e.publication)("selection",e.selectionThanks)("similarityCheck",e.similarityCheck)}}let p_=(()=>{class i{constructor(e,t,r,d,h,c,o,a){this.route=e,this.cabinetService=t,this.matIconRegistry=r,this.domSanitizer=d,this.dialog=h,this.notificator=c,this.translate=o,this.authResolver=a,this.disableRouting=!1,this.similarityCheck=!1,this.loading=!1,this.pubLoading=!1,this.initLoading=!1,this.selectionAuthors=new Kn(!0,[]),this.selectionThanks=new Kn(!0,[]),this.lockAuth=!1,this.matIconRegistry.addSvgIcon("publications",this.domSanitizer.bypassSecurityTrustResourceUrl("../../assets/img/publications-dark.svg"))}ngOnInit(){this.initLoading=!0,this.disableRouting=this.disableRouting||!this.authResolver.isCabinetAdmin(),this.lockAuth=this.authResolver.isCabinetAdmin(),this.publicationId?(this.setMode(),this.loadAllData()):this.route.params.subscribe(e=>{this.publicationId=Number(e.publicationId),this.mainAuthorId=Number(e.authorId),this.setMode(),this.loadAllData()})}setMode(){const e=location.pathname;this.mode=e.includes("my")?"my":e.includes("all")?"all":e.includes("import")?"import":e.includes("create")?"create":"authors"}loadAllData(){this.loading=!0,this.cabinetService.findPublicationById(this.publicationId).subscribe(e=>{this.publication=e,this.cabinetService.getCategories().subscribe(t=>{this.categories=t,this.loading=!1,this.initLoading=!1})})}refreshPublication(){this.pubLoading=!0,this.cabinetService.findPublicationById(this.publicationId).subscribe(e=>{this.publication=e,this.pubLoading=!1})}changeLock(){this.pubLoading=!0,this.cabinetService.lockPublications({publications:[{id:this.publication.id,beanName:"Publication",externalId:this.publication.externalId,publicationSystemId:this.publication.publicationSystemId,title:this.publication.title,year:this.publication.year,main:this.publication.main,isbn:this.publication.isbn,doi:this.publication.doi,categoryId:this.publication.categoryId,rank:this.publication.rank,locked:this.publication.locked,createdBy:this.publication.createdBy,createdDate:this.publication.createdDate}],lock:!this.publication.locked}).subscribe(()=>{this.translate.get("PUBLICATION_DETAIL.CHANGE_PUBLICATION_SUCCESS").subscribe(t=>{this.notificator.showSuccess(t),this.refreshPublication()})})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Li),n.Y36(wn),n.Y36(xo),n.Y36(On),n.Y36(oi),n.Y36(Ji),n.Y36(mn),n.Y36(dn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-publication-detail"]],inputs:{publicationId:"publicationId",disableRouting:"disableRouting",similarityCheck:"similarityCheck"},decls:3,vars:2,consts:[[1,"user-theme"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["class","page-subtitle d-flex",4,"ngIf"],["class","mb-2",4,"ngIf"],["matTooltipPosition","below",3,"matTooltip","matTooltipDisabled"],["mat-stroked-button","",1,"ml-2",3,"disabled","click"],["class","font-weight-bold",4,"ngIf"],[3,"publication","categories","similarityCheck","edited",4,"ngIf"],[1,"mt-4"],[3,"publication","selection","disableRouting","similarityCheck"],[3,"publication","selection","similarityCheck"],[1,"page-subtitle","d-flex"],[1,"title-icon","align-icon","mr-3"],["svgIcon","publications",1,"icon-size"],[1,"ml-3","mt-1"],[1,"mb-2"],[1,"font-weight-bold"],[3,"publication","categories","similarityCheck","edited"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0),n.YNc(1,$3,1,0,"mat-spinner",1),n.YNc(2,aY,34,34,"div",2),n.qZA()),2&e&&(n.xp6(1),n.Q6J("ngIf",t.initLoading),n.xp6(1),n.Q6J("ngIf",!t.initLoading))},dependencies:[x.O5,l1,s1,o1,Ot,Ln,Mn,ks,FF,bH,wH,it,HS],styles:[".icon-size[_ngcontent-%COMP%]{width:32px;height:32px}.align-icon[_ngcontent-%COMP%]{vertical-align:text-top}"]}),i})(),RS=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Vl,x.ez]}),i})();function kS(i,s,e){for(let t in s)if(s.hasOwnProperty(t)){const r=s[t];r?i.setProperty(t,r,e?.has(t)?"important":""):i.removeProperty(t)}return i}function cf(i,s){const e=s?"":"none";kS(i.style,{"touch-action":s?"":"none","-webkit-user-drag":s?"":"none","-webkit-tap-highlight-color":s?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function yH(i,s,e){kS(i.style,{position:s?"":"fixed",top:s?"":"0",opacity:s?"":"0",left:s?"":"-999em"},e)}function WC(i,s){return s&&"none"!=s?i+" "+s:i}function CH(i){const s=i.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(i)*s}function LS(i,s){return i.getPropertyValue(s).split(",").map(t=>t.trim())}function IS(i){const s=i.getBoundingClientRect();return{top:s.top,right:s.right,bottom:s.bottom,left:s.left,width:s.width,height:s.height,x:s.x,y:s.y}}function OS(i,s,e){const{top:t,bottom:r,left:d,right:h}=i;return e>=t&&e<=r&&s>=d&&s<=h}function f_(i,s,e){i.top+=s,i.bottom=i.top+i.height,i.left+=e,i.right=i.left+i.width}function AH(i,s,e,t){const{top:r,right:d,bottom:h,left:c,width:o,height:a}=i,l=o*s,u=a*s;return t>r-u&&tc-l&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:IS(e)})})}handleScroll(s){const e=ya(s),t=this.positions.get(e);if(!t)return null;const r=t.scrollPosition;let d,h;if(e===this._document){const a=this.getViewportScrollPosition();d=a.top,h=a.left}else d=e.scrollTop,h=e.scrollLeft;const c=r.top-d,o=r.left-h;return this.positions.forEach((a,l)=>{a.clientRect&&e!==l&&e.contains(l)&&f_(a.clientRect,c,o)}),r.top=d,r.left=h,{top:c,left:o}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function TH(i){const s=i.cloneNode(!0),e=s.querySelectorAll("[id]"),t=i.nodeName.toLowerCase();s.removeAttribute("id");for(let r=0;r{if(this.beforeStarted.next(),this._handles.length){const o=this._getTargetHandle(c);o&&!this._disabledHandles.has(o)&&!this.disabled&&this._initializeDragSequence(o,c)}else this.disabled||this._initializeDragSequence(this._rootElement,c)},this._pointerMove=c=>{const o=this._getPointerPositionOnPage(c);if(!this._hasStartedDragging){if(Math.abs(o.x-this._pickupPositionOnPage.x)+Math.abs(o.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const m=Date.now()>=this._dragStartTime+this._getDragStartDelay(c),g=this._dropContainer;if(!m)return void this._endDragSequence(c);(!g||!g.isDragging()&&!g.isReceiving())&&(c.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(c)))}return}c.preventDefault();const a=this._getConstrainedPointerPosition(o);if(this._hasMoved=!0,this._lastKnownPointerPosition=o,this._updatePointerDirectionDelta(a),this._dropContainer)this._updateActiveDropContainer(a,o);else{const l=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,u=this._activeTransform;u.x=a.x-l.x+this._passiveTransform.x,u.y=a.y-l.y+this._passiveTransform.y,this._applyRootElementTransform(u.x,u.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:a,event:c,distance:this._getDragDistance(a),delta:this._pointerDirectionDelta})})},this._pointerUp=c=>{this._endDragSequence(c)},this._nativeDragStart=c=>{if(this._handles.length){const o=this._getTargetHandle(c);o&&!this._disabledHandles.has(o)&&!this.disabled&&c.preventDefault()}else this.disabled||c.preventDefault()},this.withRootElement(s).withParent(e.parentDragRef||null),this._parentPositions=new vH(t),h.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(s){const e=Oe(s);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(t=>cf(t,e)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(s){this._handles=s.map(t=>ai(t)),this._handles.forEach(t=>cf(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(s){return this._previewTemplate=s,this}withPlaceholderTemplate(s){return this._placeholderTemplate=s,this}withRootElement(s){const e=ai(s);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,$C),e.addEventListener("touchstart",this._pointerDown,EH),e.addEventListener("dragstart",this._nativeDragStart,$C)}),this._initialTransform=void 0,this._rootElement=e),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(s){return this._boundaryElement=s?ai(s):null,this._resizeSubscription.unsubscribe(),s&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(s){return this._parentDragRef=s,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),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=this._parentDragRef=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(s){!this._disabledHandles.has(s)&&this._handles.indexOf(s)>-1&&(this._disabledHandles.add(s),cf(s,!0))}enableHandle(s){this._disabledHandles.has(s)&&(this._disabledHandles.delete(s),cf(s,this.disabled))}withDirection(s){return this._direction=s,this}_withDropContainer(s){this._dropContainer=s}getFreeDragPosition(){const s=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:s.x,y:s.y}}setFreeDragPosition(s){return this._activeTransform={x:0,y:0},this._passiveTransform.x=s.x,this._passiveTransform.y=s.y,this._dropContainer||this._applyRootElementTransform(s.x,s.y),this}withPreviewContainer(s){return this._previewContainer=s,this}_sortFromLastPointerPosition(){const s=this._lastKnownPointerPosition;s&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(s),s)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview?.remove(),this._previewRef?.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(s){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:s}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(s),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(s);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e,event:s})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(s){m_(s)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const t=this._rootElement,r=t.parentNode,d=this._placeholder=this._createPlaceholderElement(),h=this._anchor=this._anchor||this._document.createComment(""),c=this._getShadowRoot();r.insertBefore(h,t),this._initialTransform=t.style.transform||"",this._preview=this._createPreviewElement(),yH(t,!1,BS),this._document.body.appendChild(r.replaceChild(d,t)),this._getPreviewInsertionPoint(r,c).appendChild(this._preview),this.started.next({source:this,event:s}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this,event:s}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(s,e){this._parentDragRef&&e.stopPropagation();const t=this.isDragging(),r=m_(e),d=!r&&0!==e.button,h=this._rootElement,c=ya(e),o=!r&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),a=r?Ms(e):Qf(e);if(c&&c.draggable&&"mousedown"===e.type&&e.preventDefault(),t||d||o||a)return;if(this._handles.length){const p=h.style;this._rootElementTapHighlight=p.webkitTapHighlightColor||"",p.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(p=>this._updateOnScroll(p)),this._boundaryElement&&(this._boundaryRect=IS(this._boundaryElement));const l=this._previewTemplate;this._pickupPositionInElement=l&&l.template&&!l.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,s,e);const u=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:u.x,y:u.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(s){yH(this._rootElement,!0,BS),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,t=e.getItemIndex(this),r=this._getPointerPositionOnPage(s),d=this._getDragDistance(r),h=e._isOverContainer(r.x,r.y);this.ended.next({source:this,distance:d,dropPoint:r,event:s}),this.dropped.next({item:this,currentIndex:t,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:h,distance:d,dropPoint:r,event:s}),e.drop(this,t,this._initialIndex,this._initialContainer,h,d,r),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:s,y:e},{x:t,y:r}){let d=this._initialContainer._getSiblingContainerFromPosition(this,s,e);!d&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(s,e)&&(d=this._initialContainer),d&&d!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=d,this._dropContainer.enter(this,s,e,d===this._initialContainer&&d.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:d,currentIndex:d.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(t,r),this._dropContainer._sortItem(this,s,e,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(s,e):this._applyPreviewTransform(s-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const s=this._previewTemplate,e=this.previewClass,t=s?s.template:null;let r;if(t&&s){const d=s.matchSize?this._initialClientRect:null,h=s.viewContainer.createEmbeddedView(t,s.context);h.detectChanges(),r=HH(h,this._document),this._previewRef=h,s.matchSize?PH(r,d):r.style.transform=JC(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else r=TH(this._rootElement),PH(r,this._initialClientRect),this._initialTransform&&(r.style.transform=this._initialTransform);return kS(r.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},BS),cf(r,!1),r.classList.add("cdk-drag-preview"),r.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(d=>r.classList.add(d)):r.classList.add(e)),r}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const s=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(s.left,s.top);const e=function oY(i){const s=getComputedStyle(i),e=LS(s,"transition-property"),t=e.find(c=>"transform"===c||"all"===c);if(!t)return 0;const r=e.indexOf(t),d=LS(s,"transition-duration"),h=LS(s,"transition-delay");return CH(d[r])+CH(h[r])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{const r=h=>{(!h||ya(h)===this._preview&&"transform"===h.propertyName)&&(this._preview?.removeEventListener("transitionend",r),t(),clearTimeout(d))},d=setTimeout(r,1.5*e);this._preview.addEventListener("transitionend",r)}))}_createPlaceholderElement(){const s=this._placeholderTemplate,e=s?s.template:null;let t;return e?(this._placeholderRef=s.viewContainer.createEmbeddedView(e,s.context),this._placeholderRef.detectChanges(),t=HH(this._placeholderRef,this._document)):t=TH(this._rootElement),t.style.pointerEvents="none",t.classList.add("cdk-drag-placeholder"),t}_getPointerPositionInElement(s,e,t){const r=e===this._rootElement?null:e,d=r?r.getBoundingClientRect():s,h=m_(t)?t.targetTouches[0]:t,c=this._getViewportScrollPosition();return{x:d.left-s.left+(h.pageX-d.left-c.left),y:d.top-s.top+(h.pageY-d.top-c.top)}}_getPointerPositionOnPage(s){const e=this._getViewportScrollPosition(),t=m_(s)?s.touches[0]||s.changedTouches[0]||{pageX:0,pageY:0}:s,r=t.pageX-e.left,d=t.pageY-e.top;if(this._ownerSVGElement){const h=this._ownerSVGElement.getScreenCTM();if(h){const c=this._ownerSVGElement.createSVGPoint();return c.x=r,c.y=d,c.matrixTransform(h.inverse())}}return{x:r,y:d}}_getConstrainedPointerPosition(s){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:t,y:r}=this.constrainPosition?this.constrainPosition(s,this,this._initialClientRect,this._pickupPositionInElement):s;if("x"===this.lockAxis||"x"===e?r=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===e)&&(t=this._pickupPositionOnPage.x),this._boundaryRect){const{x:d,y:h}=this._pickupPositionInElement,c=this._boundaryRect,{width:o,height:a}=this._getPreviewRect(),l=c.top+h,u=c.bottom-(a-h);t=DH(t,c.left+d,c.right-(o-d)),r=DH(r,l,u)}return{x:t,y:r}}_updatePointerDirectionDelta(s){const{x:e,y:t}=s,r=this._pointerDirectionDelta,d=this._pointerPositionAtLastDirectionChange,h=Math.abs(e-d.x),c=Math.abs(t-d.y);return h>this._config.pointerDirectionChangeThreshold&&(r.x=e>d.x?1:-1,d.x=e),c>this._config.pointerDirectionChangeThreshold&&(r.y=t>d.y?1:-1,d.y=t),r}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const s=this._handles.length>0||!this.isDragging();s!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=s,cf(this._rootElement,s))}_removeRootElementListeners(s){s.removeEventListener("mousedown",this._pointerDown,$C),s.removeEventListener("touchstart",this._pointerDown,EH),s.removeEventListener("dragstart",this._nativeDragStart,$C)}_applyRootElementTransform(s,e){const t=JC(s,e),r=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=r.transform&&"none"!=r.transform?r.transform:""),r.transform=WC(t,this._initialTransform)}_applyPreviewTransform(s,e){const t=this._previewTemplate?.template?void 0:this._initialTransform,r=JC(s,e);this._preview.style.transform=WC(r,t)}_getDragDistance(s){const e=this._pickupPositionOnPage;return e?{x:s.x-e.x,y:s.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:s,y:e}=this._passiveTransform;if(0===s&&0===e||this.isDragging()||!this._boundaryElement)return;const t=this._rootElement.getBoundingClientRect(),r=this._boundaryElement.getBoundingClientRect();if(0===r.width&&0===r.height||0===t.width&&0===t.height)return;const d=r.left-t.left,h=t.right-r.right,c=r.top-t.top,o=t.bottom-r.bottom;r.width>t.width?(d>0&&(s+=d),h>0&&(s-=h)):s=0,r.height>t.height?(c>0&&(e+=c),o>0&&(e-=o)):e=0,(s!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:s})}_getDragStartDelay(s){const e=this.dragStartDelay;return"number"==typeof e?e:m_(s)?e.touch:e?e.mouse:0}_updateOnScroll(s){const e=this._parentPositions.handleScroll(s);if(e){const t=ya(s);this._boundaryRect&&t!==this._boundaryElement&&t.contains(this._boundaryElement)&&f_(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(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=Bh(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(s,e){const t=this._previewContainer||"global";if("parent"===t)return s;if("global"===t){const r=this._document;return e||r.fullscreenElement||r.webkitFullscreenElement||r.mozFullScreenElement||r.msFullscreenElement||r.body}return ai(t)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(s){return this._handles.find(e=>s.target&&(s.target===e||e.contains(s.target)))}}function JC(i,s){return`translate3d(${Math.round(i)}px, ${Math.round(s)}px, 0)`}function DH(i,s,e){return Math.max(s,Math.min(e,i))}function m_(i){return"t"===i.type[0]}function HH(i,s){const e=i.rootNodes;if(1===e.length&&e[0].nodeType===s.ELEMENT_NODE)return e[0];const t=s.createElement("div");return e.forEach(r=>t.appendChild(r)),t}function PH(i,s){i.style.width=`${s.width}px`,i.style.height=`${s.height}px`,i.style.transform=JC(s.left,s.top)}function g_(i,s){return Math.max(0,Math.min(s,i))}class hY{constructor(s,e){this._element=s,this._dragDropRegistry=e,this._itemPositions=[],this.orientation="vertical",this._previousSwap={drag:null,delta:0,overlaps:!1}}start(s){this.withItems(s)}sort(s,e,t,r){const d=this._itemPositions,h=this._getItemIndexFromPointerPosition(s,e,t,r);if(-1===h&&d.length>0)return null;const c="horizontal"===this.orientation,o=d.findIndex(y=>y.drag===s),a=d[h],u=a.clientRect,p=o>h?1:-1,m=this._getItemOffsetPx(d[o].clientRect,u,p),g=this._getSiblingOffsetPx(o,d,p),f=d.slice();return function uY(i,s,e){const t=g_(s,i.length-1),r=g_(e,i.length-1);if(t===r)return;const d=i[t],h=r{if(f[j]===y)return;const le=y.drag===s,Be=le?m:g,St=le?s.getPlaceholderElement():y.drag.getRootElement();y.offset+=Be,c?(St.style.transform=WC(`translate3d(${Math.round(y.offset)}px, 0, 0)`,y.initialTransform),f_(y.clientRect,0,Be)):(St.style.transform=WC(`translate3d(0, ${Math.round(y.offset)}px, 0)`,y.initialTransform),f_(y.clientRect,Be,0))}),this._previousSwap.overlaps=OS(u,e,t),this._previousSwap.drag=a.drag,this._previousSwap.delta=c?r.x:r.y,{previousIndex:o,currentIndex:h}}enter(s,e,t,r){const d=null==r||r<0?this._getItemIndexFromPointerPosition(s,e,t):r,h=this._activeDraggables,c=h.indexOf(s),o=s.getPlaceholderElement();let a=h[d];if(a===s&&(a=h[d+1]),!a&&(null==d||-1===d||d-1&&h.splice(c,1),a&&!this._dragDropRegistry.isDragging(a)){const l=a.getRootElement();l.parentElement.insertBefore(o,l),h.splice(d,0,s)}else ai(this._element).appendChild(o),h.push(s);o.style.transform="",this._cacheItemPositions()}withItems(s){this._activeDraggables=s.slice(),this._cacheItemPositions()}withSortPredicate(s){this._sortPredicate=s}reset(){this._activeDraggables.forEach(s=>{const e=s.getRootElement();if(e){const t=this._itemPositions.find(r=>r.drag===s)?.initialTransform;e.style.transform=t||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(s){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(t=>t.drag===s)}updateOnScroll(s,e){this._itemPositions.forEach(({clientRect:t})=>{f_(t,s,e)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()})}_cacheItemPositions(){const s="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(e=>{const t=e.getVisibleElement();return{drag:e,offset:0,initialTransform:t.style.transform||"",clientRect:IS(t)}}).sort((e,t)=>s?e.clientRect.left-t.clientRect.left:e.clientRect.top-t.clientRect.top)}_getItemOffsetPx(s,e,t){const r="horizontal"===this.orientation;let d=r?e.left-s.left:e.top-s.top;return-1===t&&(d+=r?e.width-s.width:e.height-s.height),d}_getSiblingOffsetPx(s,e,t){const r="horizontal"===this.orientation,d=e[s].clientRect,h=e[s+-1*t];let c=d[r?"width":"height"]*t;if(h){const o=r?"left":"top",a=r?"right":"bottom";-1===t?c-=h.clientRect[o]-d[a]:c+=d[o]-h.clientRect[a]}return c}_shouldEnterAsFirstChild(s,e){if(!this._activeDraggables.length)return!1;const t=this._itemPositions,r="horizontal"===this.orientation;if(t[0].drag!==this._activeDraggables[0]){const h=t[t.length-1].clientRect;return r?s>=h.right:e>=h.bottom}{const h=t[0].clientRect;return r?s<=h.left:e<=h.top}}_getItemIndexFromPointerPosition(s,e,t,r){const d="horizontal"===this.orientation,h=this._itemPositions.findIndex(({drag:c,clientRect:o})=>{if(c===s)return!1;if(r){const a=d?r.x:r.y;if(c===this._previousSwap.drag&&this._previousSwap.overlaps&&a===this._previousSwap.delta)return!1}return d?e>=Math.floor(o.left)&&e=Math.floor(o.top)&&t!0,this.sortPredicate=()=>!0,this.beforeStarted=new Me.x,this.entered=new Me.x,this.exited=new Me.x,this.dropped=new Me.x,this.sorted=new Me.x,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=Rt.w0.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new Me.x,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function sY(i=0,s=lu.z){return i<0&&(i=0),(0,wm.H)(i,i,s)}(0,mm).pipe(Ke(this._stopScrollTimers)).subscribe(()=>{const h=this._scrollNode,c=this.autoScrollStep;1===this._verticalScrollDirection?h.scrollBy(0,-c):2===this._verticalScrollDirection&&h.scrollBy(0,c),1===this._horizontalScrollDirection?h.scrollBy(-c,0):2===this._horizontalScrollDirection&&h.scrollBy(c,0)})},this.element=ai(s),this._document=t,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new vH(t),this._sortStrategy=new hY(this.element,e),this._sortStrategy.withSortPredicate((h,c)=>this.sortPredicate(h,c,this))}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(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(s,e,t,r){this._draggingStarted(),null==r&&this.sortingDisabled&&(r=this._draggables.indexOf(s)),this._sortStrategy.enter(s,e,t,r),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:s,container:this,currentIndex:this.getItemIndex(s)})}exit(s){this._reset(),this.exited.next({item:s,container:this})}drop(s,e,t,r,d,h,c,o={}){this._reset(),this.dropped.next({item:s,currentIndex:e,previousIndex:t,container:this,previousContainer:r,isPointerOverContainer:d,distance:h,dropPoint:c,event:o})}withItems(s){const e=this._draggables;return this._draggables=s,s.forEach(t=>t._withDropContainer(this)),this.isDragging()&&(e.filter(r=>r.isDragging()).every(r=>-1===s.indexOf(r))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(s){return this._sortStrategy.direction=s,this}connectedTo(s){return this._siblings=s.slice(),this}withOrientation(s){return this._sortStrategy.orientation=s,this}withScrollableParents(s){const e=ai(this.element);return this._scrollableElements=-1===s.indexOf(e)?[e,...s]:s.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(s){return this._isDragging?this._sortStrategy.getItemIndex(s):this._draggables.indexOf(s)}isReceiving(){return this._activeSiblings.size>0}_sortItem(s,e,t,r){if(this.sortingDisabled||!this._clientRect||!AH(this._clientRect,.05,e,t))return;const d=this._sortStrategy.sort(s,e,t,r);d&&this.sorted.next({previousIndex:d.previousIndex,currentIndex:d.currentIndex,container:this,item:s})}_startScrollingIfNecessary(s,e){if(this.autoScrollDisabled)return;let t,r=0,d=0;if(this._parentPositions.positions.forEach((h,c)=>{c===this._document||!h.clientRect||t||AH(h.clientRect,.05,s,e)&&([r,d]=function fY(i,s,e,t){const r=LH(s,t),d=IH(s,e);let h=0,c=0;if(r){const o=i.scrollTop;1===r?o>0&&(h=1):i.scrollHeight-o>i.clientHeight&&(h=2)}if(d){const o=i.scrollLeft;1===d?o>0&&(c=1):i.scrollWidth-o>i.clientWidth&&(c=2)}return[h,c]}(c,h.clientRect,s,e),(r||d)&&(t=c))}),!r&&!d){const{width:h,height:c}=this._viewportRuler.getViewportSize(),o={width:h,height:c,top:0,right:h,bottom:c,left:0};r=LH(o,e),d=IH(o,s),t=window}t&&(r!==this._verticalScrollDirection||d!==this._horizontalScrollDirection||t!==this._scrollNode)&&(this._verticalScrollDirection=r,this._horizontalScrollDirection=d,this._scrollNode=t,(r||d)&&t?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const s=ai(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=s.msScrollSnapType||s.scrollSnapType||"",s.scrollSnapType=s.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const s=ai(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(s).clientRect}_reset(){this._isDragging=!1;const s=ai(this.element).style;s.scrollSnapType=s.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(e=>e._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(s,e){return null!=this._clientRect&&OS(this._clientRect,s,e)}_getSiblingContainerFromPosition(s,e,t){return this._siblings.find(r=>r._canReceive(s,e,t))}_canReceive(s,e,t){if(!this._clientRect||!OS(this._clientRect,e,t)||!this.enterPredicate(s,this))return!1;const r=this._getShadowRoot().elementFromPoint(e,t);if(!r)return!1;const d=ai(this.element);return r===d||d.contains(r)}_startReceiving(s,e){const t=this._activeSiblings;!t.has(s)&&e.every(r=>this.enterPredicate(r,this)||this._draggables.indexOf(r)>-1)&&(t.add(s),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(s){this._activeSiblings.delete(s),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(s=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(s);e&&this._sortStrategy.updateOnScroll(e.top,e.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const s=Bh(ai(this.element));this._cachedShadowRoot=s||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const s=this._sortStrategy.getActiveItemsSnapshot().filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,s))}}function LH(i,s){const{top:e,bottom:t,height:r}=i,d=.05*r;return s>=e-d&&s<=e+d?1:s>=t-d&&s<=t+d?2:0}function IH(i,s){const{left:e,right:t,width:r}=i,d=.05*r;return s>=e-d&&s<=e+d?1:s>=t-d&&s<=t+d?2:0}const ZC=Ja({passive:!1,capture:!0});let mY=(()=>{class i{constructor(e,t){this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=r=>r.isDragging(),this.pointerMove=new Me.x,this.pointerUp=new Me.x,this.scroll=new Me.x,this._preventDefaultWhileDragging=r=>{this._activeDragInstances.length>0&&r.preventDefault()},this._persistentTouchmoveListener=r=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&r.preventDefault(),this.pointerMove.next(r))},this._document=t}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,ZC)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,ZC)}startDragging(e,t){if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){const r=t.type.startsWith("touch");this._globalListeners.set(r?"touchend":"mouseup",{handler:d=>this.pointerUp.next(d),options:!0}).set("scroll",{handler:d=>this.scroll.next(d),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:ZC}),r||this._globalListeners.set("mousemove",{handler:d=>this.pointerMove.next(d),options:ZC}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((d,h)=>{this._document.addEventListener(h,d.handler,d.options)})})}}stopDragging(e){const t=this._activeDragInstances.indexOf(e);t>-1&&(this._activeDragInstances.splice(t,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(e){return this._activeDragInstances.indexOf(e)>-1}scrolled(e){const t=[this.scroll];return e&&e!==this._document&&t.push(new ln.y(r=>this._ngZone.runOutsideAngular(()=>{const h=c=>{this._activeDragInstances.length&&r.next(c)};return e.addEventListener("scroll",h,!0),()=>{e.removeEventListener("scroll",h,!0)}}))),(0,Sn.T)(...t)}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((e,t)=>{this._document.removeEventListener(t,e.handler,e.options)}),this._globalListeners.clear()}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(n.R0b),n.LFG(x.K0))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const gY={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let _Y=(()=>{class i{constructor(e,t,r,d){this._document=e,this._ngZone=t,this._viewportRuler=r,this._dragDropRegistry=d}createDrag(e,t=gY){return new dY(e,t,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new pY(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(x.K0),n.LFG(n.R0b),n.LFG(va),n.LFG(mY))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),bY=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[_Y],imports:[Ds]}),i})(),vY=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})(),PY=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[vY,ht,ht]}),i})(),qY=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Kr,ht,ht]}),i})();new n.OlP("mat-selectsearch-default-options");let JY=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[[x.ez,zc,bi,jC,Vl,uC,Ls]]}),i})(),ZY=(()=>{class i extends Qh{format(e,t){return"input"===t?`${e.getDate().toString()}.${(e.getMonth()+1).toString()}.${e.getFullYear()}`:e.toDateString()}}return i.\u0275fac=function(){let s;return function(t){return(s||(s=n.n5z(i)))(t||i)}}(),i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();const QY={parse:{dateInput:{month:"short",year:"numeric",day:"numeric"}},display:{dateInput:"input",monthYearLabel:{year:"numeric",month:"numeric"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let jH=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[{provide:Un,useClass:ZY},{provide:_i,useValue:QY}],imports:[x.ez,jC,CC,Tg,SS,bY,Gs,Lh,TS,Iu,uC,RS,Vl,Ug,bi,Ls,Hl,zc,dC,Kr,iD,F2,PY,vS,qY,hm,Lu,JY,nr,Zg,Z0,uH,UL]}),i})();n.B6R(uD,[x.O5,na,Ot,Wv,Qv,Zv,Oi,Bi,hD],[it,rD]),new Date(324721404e5).valueOf();let y6=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[x.ez,bi,Vl,Lh,jH,Gs,Hl,zc,dC,RS]}),i})(),C6=(()=>{class i{constructor(e,t){this.auth=e,this.router=t}ngOnInit(){(this.auth.isLoggedIn()||sessionStorage.getItem("baPrincipal"))&&this.router.navigate([""],{queryParamsHandling:"merge"})}startAuth(){this.auth.startAuthentication()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(ad),n.Y36($n))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-login-screen"]],decls:11,vars:6,consts:[[1,"container","login-con"],[1,"row"],[1,"ml-auto","mr-auto","d-flex","flex-column","align-items-center"],[1,"mb-3"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h4",3),n._uU(4),n.ALo(5,"translate"),n.qZA(),n.TgZ(6,"button",4),n.NdJ("click",function(){return t.startAuth()}),n._uU(7),n.ALo(8,"translate"),n.TgZ(9,"mat-icon"),n._uU(10," login "),n.qZA()()()()()),2&e&&(n.xp6(4),n.hij(" ",n.lcZ(5,2,"SHARED_LIB.PERUN.LOGIN.TEXT")," "),n.xp6(3),n.hij(" ",n.lcZ(8,4,"SHARED_LIB.PERUN.LOGIN.SIGN_IN")," "))},dependencies:[Ot,Ln,it],styles:[".login-con[_ngcontent-%COMP%]{padding:120px 0}"]}),i})();function A6(i,s){1&i&&(n.TgZ(0,"perun-web-apps-alert",8),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.WRONG_LOGIN_OR_PASSWORD")," "))}let v6=(()=>{class i{constructor(e,t,r){this.authzService=e,this.auth=t,this.router=r,this.usernameCtrl=new Nn(null,[kn.required]),this.passwordCtrl=new Nn(null,[kn.required]),this.wrongUsernameOrPassword=!1}startAuth(){this.usernameCtrl.invalid||this.passwordCtrl.invalid||(sessionStorage.setItem("basicUsername",this.usernameCtrl.value),sessionStorage.setItem("basicPassword",this.passwordCtrl.value),this.authzService.getPerunPrincipal().subscribe({next:e=>{sessionStorage.setItem("baPrincipal",JSON.stringify(e)),location.reload()},error:()=>{this.wrongUsernameOrPassword=!0}}))}ngOnInit(){(this.auth.isLoggedIn()||sessionStorage.getItem("baPrincipal"))&&this.router.navigate([""],{queryParamsHandling:"merge"})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Va),n.Y36(ad),n.Y36($n))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-login-screen-service-access"]],decls:28,vars:23,consts:[[1,"container","login-con","vo-theme","top-padding"],[1,"row"],[1,"ml-auto","mr-auto","d-flex","flex-column","align-items-center"],["alert_type","error",4,"ngIf"],["appearance","outline"],["matInput","","required","",3,"formControl","keyup.enter"],["matInput","","required","",3,"formControl","type","keyup.enter"],["mat-raised-button","",1,"black",3,"disabled","click"],["alert_type","error"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h2"),n._uU(4),n.ALo(5,"translate"),n.qZA(),n.YNc(6,A6,3,3,"perun-web-apps-alert",3),n.TgZ(7,"mat-form-field",4)(8,"mat-label"),n._uU(9),n.ALo(10,"translate"),n.qZA(),n.TgZ(11,"input",5),n.NdJ("keyup.enter",function(){return t.startAuth()}),n.qZA(),n.TgZ(12,"mat-error"),n._uU(13),n.ALo(14,"translate"),n.qZA()(),n.TgZ(15,"mat-form-field",4)(16,"mat-label"),n._uU(17),n.ALo(18,"translate"),n.qZA(),n.TgZ(19,"input",6),n.NdJ("keyup.enter",function(){return t.startAuth()}),n.qZA(),n.TgZ(20,"mat-error"),n._uU(21),n.ALo(22,"translate"),n.qZA()(),n.TgZ(23,"button",7),n.NdJ("click",function(){return t.startAuth()}),n._uU(24),n.ALo(25,"translate"),n.TgZ(26,"mat-icon"),n._uU(27," login "),n.qZA()()()()()),2&e&&(n.xp6(4),n.Oqu(n.lcZ(5,11,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.LABEL")),n.xp6(2),n.Q6J("ngIf",t.wrongUsernameOrPassword),n.xp6(3),n.Oqu(n.lcZ(10,13,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME")),n.xp6(2),n.Q6J("formControl",t.usernameCtrl),n.xp6(2),n.hij(" ",n.lcZ(14,15,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME_ERROR")," "),n.xp6(4),n.Oqu(n.lcZ(18,17,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD")),n.xp6(2),n.Q6J("formControl",t.passwordCtrl)("type","password"),n.xp6(2),n.hij(" ",n.lcZ(22,19,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD_ERROR")," "),n.xp6(2),n.Q6J("disabled",t.usernameCtrl.invalid||t.passwordCtrl.invalid),n.xp6(1),n.hij(" ",n.lcZ(25,21,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.SIGN_IN")," "))},dependencies:[x.O5,Ot,Ln,es,ar,ta,Gi,Wi,ns,_r,Ra,na,it],styles:[".top-padding[_ngcontent-%COMP%]{padding:120px 0}mat-form-field.mat-form-field[_ngcontent-%COMP%]{font-size:14px;width:250px}.black[_ngcontent-%COMP%]{background-color:#000;color:#fff}"]}),i})(),T6=(()=>{class i{transform(e){return e.length>50?e.substring(0,50)+"...":e}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=n.Yjl({name:"publicationTabLabel",type:i,pure:!0}),i})();const x6=["stepper"];function S6(i,s){1&i&&n._UZ(0,"mat-spinner",5)}function M6(i,s){1&i&&(n._uU(0),n.ALo(1,"translate")),2&i&&n.Oqu(n.lcZ(1,1,"CREATE_SINGLE_PUBLICATION.PUBLICATION"))}function E6(i,s){1&i&&(n.TgZ(0,"mat-error"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"CREATE_SINGLE_PUBLICATION.REQUIRED_ERROR")," "))}function D6(i,s){1&i&&(n.TgZ(0,"mat-error"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"CREATE_SINGLE_PUBLICATION.REQUIRED_ERROR")," "))}function H6(i,s){if(1&i&&(n.TgZ(0,"mat-option",36),n._uU(1),n.qZA()),2&i){const e=s.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e.name," ")}}function P6(i,s){1&i&&(n.TgZ(0,"mat-error"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"CREATE_SINGLE_PUBLICATION.REQUIRED_ERROR")," "))}function R6(i,s){1&i&&(n.TgZ(0,"mat-error"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"CREATE_SINGLE_PUBLICATION.REQUIRED_ERROR")," "))}function k6(i,s){1&i&&(n._uU(0),n.ALo(1,"translate")),2&i&&n.hij(" ",n.lcZ(1,1,"CREATE_SINGLE_PUBLICATION.CHECK")," ")}function L6(i,s){1&i&&(n.TgZ(0,"div",29),n._UZ(1,"mat-spinner",5),n.TgZ(2,"h5",37),n._uU(3),n.ALo(4,"translate"),n.qZA()()),2&i&&(n.xp6(3),n.hij(" ",n.lcZ(4,1,"CREATE_SINGLE_PUBLICATION.CHECK_PERFORM")," "))}function I6(i,s){1&i&&(n.TgZ(0,"perun-web-apps-alert",38)(1,"div",29)(2,"span",39),n._uU(3),n.ALo(4,"translate"),n.ALo(5,"translate"),n.qZA(),n.TgZ(6,"span",40)(7,"mat-icon",41),n._uU(8,"fiber_manual_record"),n.qZA(),n._uU(9),n.ALo(10,"translate"),n.qZA(),n.TgZ(11,"span",42)(12,"mat-icon",41),n._uU(13,"fiber_manual_record"),n.qZA(),n._uU(14),n.ALo(15,"translate"),n.qZA()()()),2&i&&(n.xp6(3),n.AsE(" ",n.lcZ(4,4,"CREATE_SINGLE_PUBLICATION.SIMILAR_FOUND"),". ",n.lcZ(5,6,"CREATE_SINGLE_PUBLICATION.CHECK_BELOW"),". "),n.xp6(6),n.hij(" ",n.lcZ(10,8,"CREATE_SINGLE_PUBLICATION.IS_BELOW")," "),n.xp6(5),n.hij(" ",n.lcZ(15,10,"CREATE_SINGLE_PUBLICATION.NOT_BELOW")," "))}function O6(i,s){1&i&&(n._uU(0),n.ALo(1,"translate")),2&i&&n.Oqu(n.lcZ(1,1,"CREATE_SINGLE_PUBLICATION.CHECK"))}function B6(i,s){1&i&&n._UZ(0,"mat-spinner",5)}const V6=function(){return["id","lock","title","reportedBy","year","category","thankedTo","cite"]};function j6(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"perun-web-apps-publications-list",48),n.NdJ("publicationSelector",function(r){n.CHM(e),n.oxw(2);const d=n.MAs(1),h=n.oxw(2);return n.KtG(h.loadPublicationDetail(r,d))}),n.qZA()}if(2&i){const e=n.oxw(4);n.Q6J("displayedColumns",n.DdM(4,V6))("disabledRouting",!0)("openInTab",!0)("publications",e.filteredPublications)}}function U6(i,s){if(1&i&&(n.TgZ(0,"div",46),n.YNc(1,B6,1,0,"mat-spinner",3),n.YNc(2,j6,1,5,"perun-web-apps-publications-list",47),n.qZA()),2&i){const e=n.oxw(3);n.xp6(1),n.Q6J("ngIf",e.innerLoading),n.xp6(1),n.Q6J("ngIf",!e.innerLoading)}}function N6(i,s){if(1&i&&(n._uU(0),n.ALo(1,"publicationTabLabel")),2&i){const e=n.oxw(4);n.hij(" ",n.lcZ(1,1,e.selectedPubTitle)," ")}}function F6(i,s){if(1&i&&(n.TgZ(0,"div",49),n._UZ(1,"perun-web-apps-publication-detail",50),n.qZA()),2&i){const e=n.oxw(4);n.xp6(1),n.Q6J("publicationId",e.selectedPubId)("disableRouting",!0)("similarityCheck",!0)}}function Y6(i,s){1&i&&(n.TgZ(0,"mat-tab"),n.YNc(1,N6,2,3,"ng-template",44),n.YNc(2,F6,2,3,"ng-template",45),n.qZA())}function q6(i,s){if(1&i&&(n.TgZ(0,"mat-tab-group",null,43)(2,"mat-tab"),n.YNc(3,O6,2,3,"ng-template",44),n.YNc(4,U6,3,2,"ng-template",45),n.qZA(),n.YNc(5,Y6,3,0,"mat-tab",15),n.qZA()),2&i){const e=n.oxw(2);n.xp6(5),n.Q6J("ngIf",null!==e.selectedPubId)}}function z6(i,s){1&i&&(n.TgZ(0,"div",29)(1,"mat-icon",51),n._uU(2,"check_circle"),n.qZA(),n.TgZ(3,"h5",52),n._uU(4),n.ALo(5,"translate"),n.qZA()()),2&i&&(n.xp6(4),n.hij(" ",n.lcZ(5,1,"CREATE_SINGLE_PUBLICATION.NO_SIMILAR")," "))}function G6(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"div",26)(1,"button",53),n.NdJ("click",function(){n.CHM(e);const r=n.oxw(2);return n.KtG(r.redirect(["create-publication"]))}),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"button",54),n._uU(5),n.ALo(6,"translate"),n.qZA(),n.TgZ(7,"button",55),n._uU(8),n.ALo(9,"translate"),n.qZA()()}2&i&&(n.xp6(2),n.hij(" ",n.lcZ(3,3,"CREATE_SINGLE_PUBLICATION.CANCEL")," "),n.xp6(3),n.hij(" ",n.lcZ(6,5,"CREATE_SINGLE_PUBLICATION.PREV")," "),n.xp6(3),n.hij(" ",n.lcZ(9,7,"CREATE_SINGLE_PUBLICATION.CREATE")," "))}function W6(i,s){1&i&&(n._uU(0),n.ALo(1,"translate")),2&i&&n.hij(" ",n.lcZ(1,1,"CREATE_SINGLE_PUBLICATION.AUTHORS")," ")}function $6(i,s){1&i&&n._UZ(0,"mat-spinner",5)}function J6(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"perun-web-apps-add-authors",58),n.NdJ("yourselfAsAnAuthor",function(r){n.CHM(e);const d=n.oxw(3);return n.KtG(d.yourselfAsAnAuthor=r)}),n.qZA()}if(2&i){const e=n.oxw(3);n.Q6J("publication",e.publication)("selection",e.authorsSelection)("disableRouting",!0)}}function Z6(i,s){if(1&i&&(n.TgZ(0,"div")(1,"perun-web-apps-alert",56),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.YNc(4,J6,1,3,"perun-web-apps-add-authors",57),n.qZA()),2&i){const e=n.oxw(2);n.xp6(2),n.Oqu(n.lcZ(3,2,"CREATE_SINGLE_PUBLICATION.PUB_CREATED")),n.xp6(2),n.Q6J("ngIf",null!==e.publication)}}function Q6(i,s){1&i&&(n.TgZ(0,"div",26)(1,"button",59),n._uU(2),n.ALo(3,"translate"),n.qZA()()),2&i&&(n.xp6(2),n.hij(" ",n.lcZ(3,1,"CREATE_SINGLE_PUBLICATION.NEXT")," "))}function K6(i,s){1&i&&(n._uU(0),n.ALo(1,"translate")),2&i&&n.hij(" ",n.lcZ(1,1,"CREATE_SINGLE_PUBLICATION.THANKS")," ")}function X6(i,s){if(1&i&&n._UZ(0,"perun-web-apps-add-thanks",60),2&i){const e=n.oxw(2);n.Q6J("publication",e.publication)("selection",e.thanksSelection)}}function ez(i,s){1&i&&n._UZ(0,"mat-spinner",5)}function tz(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"mat-horizontal-stepper",6,7),n.NdJ("selectionChange",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.stepChanged(r))}),n.TgZ(2,"mat-step",8),n.YNc(3,M6,2,3,"ng-template",9),n.TgZ(4,"form",10)(5,"h5",11),n._uU(6),n.ALo(7,"translate"),n.qZA(),n.TgZ(8,"div",12)(9,"mat-checkbox",13),n._uU(10),n.ALo(11,"translate"),n.qZA(),n.TgZ(12,"mat-form-field"),n._UZ(13,"input",14),n.ALo(14,"translate"),n.YNc(15,E6,3,3,"mat-error",15),n.qZA(),n.TgZ(16,"mat-form-field",16),n.NdJ("click",function(){n.CHM(e);const r=n.MAs(23);return n.KtG(r.open())}),n.TgZ(17,"mat-label"),n._uU(18),n.ALo(19,"translate"),n.qZA(),n._UZ(20,"input",17)(21,"mat-datepicker-toggle",18),n.TgZ(22,"mat-datepicker",19,20),n.NdJ("yearSelected",function(r){n.CHM(e);const d=n.MAs(23),h=n.oxw();return n.KtG(h.chosenYearHandler(r,d))}),n.qZA(),n.YNc(24,D6,3,3,"mat-error",15),n.qZA(),n.TgZ(25,"mat-form-field")(26,"mat-select",21),n.ALo(27,"translate"),n.YNc(28,H6,2,2,"mat-option",22),n.qZA(),n.YNc(29,P6,3,3,"mat-error",15),n.qZA(),n.TgZ(30,"mat-form-field"),n._UZ(31,"input",23),n.ALo(32,"translate"),n.qZA(),n.TgZ(33,"mat-form-field"),n._UZ(34,"input",24),n.ALo(35,"translate"),n.qZA(),n.TgZ(36,"mat-form-field")(37,"textarea",25),n.ALo(38,"translate"),n._uU(39," "),n.qZA(),n.YNc(40,R6,3,3,"mat-error",15),n.qZA()()(),n.TgZ(41,"div",26)(42,"button",27),n._uU(43),n.ALo(44,"translate"),n.qZA()()(),n.TgZ(45,"mat-step",28),n.YNc(46,k6,2,3,"ng-template",9),n.TgZ(47,"form",29)(48,"h5",11),n._uU(49),n.ALo(50,"translate"),n.qZA(),n.YNc(51,L6,5,3,"div",30),n.YNc(52,I6,16,12,"perun-web-apps-alert",31),n.YNc(53,q6,6,1,"mat-tab-group",15),n.YNc(54,z6,6,3,"div",30),n.qZA(),n.YNc(55,G6,10,9,"div",32),n.qZA(),n.TgZ(56,"mat-step"),n.YNc(57,W6,2,3,"ng-template",9),n.TgZ(58,"h5",11),n._uU(59),n.ALo(60,"translate"),n.qZA(),n.YNc(61,$6,1,0,"mat-spinner",3),n.YNc(62,Z6,5,4,"div",15),n.YNc(63,Q6,4,3,"div",32),n.qZA(),n.TgZ(64,"mat-step"),n.YNc(65,K6,2,3,"ng-template",9),n.TgZ(66,"h5",11),n._uU(67),n.ALo(68,"translate"),n.qZA(),n.YNc(69,X6,1,2,"perun-web-apps-add-thanks",33),n.YNc(70,ez,1,0,"mat-spinner",3),n.TgZ(71,"div",26)(72,"button",34),n._uU(73),n.ALo(74,"translate"),n.qZA(),n.TgZ(75,"button",35),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.showDialogAndRedirect(["all-publications"],r.publication.id))}),n._uU(76),n.ALo(77,"translate"),n.qZA()()()()}if(2&i){const e=n.MAs(23),t=n.oxw();n.xp6(2),n.Q6J("stepControl",t.publicationControl),n.xp6(2),n.Q6J("formGroup",t.publicationControl),n.xp6(2),n.hij(" ",n.lcZ(7,36,"CREATE_SINGLE_PUBLICATION.PUB_INFO")," "),n.xp6(4),n.hij(" ",n.lcZ(11,38,"CREATE_SINGLE_PUBLICATION.ADD_MYSELF")," "),n.xp6(3),n.s9C("placeholder",n.lcZ(14,40,"CREATE_SINGLE_PUBLICATION.SET_TITLE")),n.xp6(2),n.Q6J("ngIf",t.publicationControl.hasError("required","title")),n.xp6(3),n.Oqu(n.lcZ(19,42,"CREATE_SINGLE_PUBLICATION.YEAR")),n.xp6(2),n.Q6J("max",t.maxYear)("matDatepicker",e),n.xp6(1),n.Q6J("for",e),n.xp6(3),n.Q6J("ngIf",t.publicationControl.hasError("required","year")),n.xp6(2),n.s9C("placeholder",n.lcZ(27,44,"CREATE_SINGLE_PUBLICATION.CATEGORY")),n.xp6(2),n.Q6J("ngForOf",t.categories),n.xp6(1),n.Q6J("ngIf",t.publicationControl.hasError("required","category")),n.xp6(2),n.s9C("placeholder",n.lcZ(32,46,"CREATE_SINGLE_PUBLICATION.ISBN")),n.xp6(3),n.s9C("placeholder",n.lcZ(35,48,"CREATE_SINGLE_PUBLICATION.DOI")),n.xp6(3),n.s9C("placeholder",n.lcZ(38,50,"CREATE_SINGLE_PUBLICATION.CITE")),n.xp6(3),n.Q6J("ngIf",t.publicationControl.hasError("required","cite")),n.xp6(2),n.Q6J("disabled",t.publicationControl.invalid),n.xp6(1),n.hij(" ",n.lcZ(44,52,"CREATE_SINGLE_PUBLICATION.NEXT")," "),n.xp6(2),n.Q6J("editable",!t.duplicateCheck&&!t.publicationControl.invalid),n.xp6(4),n.hij(" ",n.lcZ(50,54,"CREATE_SINGLE_PUBLICATION.SIMILARITY_CHECK")," "),n.xp6(2),n.Q6J("ngIf",t.innerLoading),n.xp6(1),n.Q6J("ngIf",!t.innerLoading&&!t.duplicateCheck),n.xp6(1),n.Q6J("ngIf",!t.innerLoading&&!t.duplicateCheck),n.xp6(1),n.Q6J("ngIf",!t.innerLoading&&t.duplicateCheck),n.xp6(1),n.Q6J("ngIf",!t.innerLoading),n.xp6(4),n.hij(" ",n.lcZ(60,56,"CREATE_SINGLE_PUBLICATION.ADD_AUTHORS")," "),n.xp6(2),n.Q6J("ngIf",t.innerLoading),n.xp6(1),n.Q6J("ngIf",!t.innerLoading),n.xp6(1),n.Q6J("ngIf",!t.innerLoading),n.xp6(4),n.hij(" ",n.lcZ(68,58,"CREATE_SINGLE_PUBLICATION.ADD_THANKS")," "),n.xp6(2),n.Q6J("ngIf",null!==t.publication),n.xp6(1),n.Q6J("ngIf",t.innerLoading),n.xp6(3),n.hij(" ",n.lcZ(74,60,"CREATE_SINGLE_PUBLICATION.PREV")," "),n.xp6(3),n.hij(" ",n.lcZ(77,62,"CREATE_SINGLE_PUBLICATION.FINISH")," ")}}const nz=lf,iz={parse:{dateInput:"YYYY"},display:{dateInput:"YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}};let rz=(()=>{class i{constructor(e,t,r,d,h,c,o,a){this.formBuilder=e,this.cabinetService=t,this.dialog=r,this.router=d,this.notificator=h,this.translate=c,this.storeService=o,this.userService=a,this.similarPublications=[],this.filteredPublications=[],this.categories=[],this.publication=null,this.authorsSelection=new Kn(!0,[]),this.yourselfAsAnAuthor=!0,this.thanksSelection=new Kn(!0,[]),this.innerLoading=!1,this.loading=!1,this.duplicateCheck=!1,this.selectedPubId=null,this.selectedPubTitle=""}ngOnInit(){this.loading=!0,this.publicationControl=this.formBuilder.group({addAuthor:[!0],title:["",kn.required],year:["",kn.required],category:["",kn.required],isbn:[""],doi:[""],cite:["",kn.required]}),this.maxYear=nz(),this.cabinetService.getCategories().subscribe(e=>{this.categories=e,this.loading=!1})}chosenYearHandler(e,t){this.publicationControl.get("year").setValue(e),t.close()}createTimeout(){setTimeout(()=>{this.notificator.showSuccess(this.translate.instant("CREATE_SINGLE_PUBLICATION.SUCCESS")),this.duplicateCheck=!0,this.innerLoading=!1},1e3)}createPublication(){this.innerLoading=!0,this.duplicateCheck=!0;const e={publication:{id:0,beanName:"Publication",title:this.publicationControl.get("title").value,categoryId:this.publicationControl.get("category").value.id,year:this.publicationControl.get("year").value.year(),isbn:this.publicationControl.get("isbn").value,doi:this.publicationControl.get("doi").value,main:this.publicationControl.get("cite").value}};this.userService.getRichUserWithAttributes(this.storeService.getPerunPrincipal().userId).subscribe(t=>{const r=t.userAttributes.filter(d=>"preferredMail"===d.friendlyName);0!==r.length&&(e.publication.createdBy=r[0].value),this.cabinetService.createPublication(e).subscribe(d=>{this.publication=d,this.publicationControl.get("addAuthor").value?this.cabinetService.createAutorship({authorship:{id:0,beanName:"Authorship",publicationId:this.publication.id,userId:t.id}}).subscribe(()=>{this.createTimeout()},()=>this.innerLoading=!1):this.createTimeout()},()=>this.innerLoading=!1)},()=>this.innerLoading=!1)}similarCheck(){this.innerLoading=!0;const e=this.publicationControl.get("title").value,t=this.publicationControl.get("doi").value?this.publicationControl.get("doi").value:null,r=this.publicationControl.get("isbn").value?this.publicationControl.get("isbn").value:null;this.cabinetService.findSimilarPublications(e,t,r).subscribe(d=>{this.similarPublications=d,this.filteredPublications=d,setTimeout(()=>{this.duplicateCheck=0===d.length,this.innerLoading=!1},2e3)})}stepChanged(e){1===e.selectedIndex&&this.similarCheck(),2===e.selectedIndex&&null===this.publication&&this.createPublication()}redirect(e){this.router.navigate(e,{queryParamsHandling:"preserve"})}showDialogAndRedirect(e,t){if(e.push(String(t)),this.yourselfAsAnAuthor)this.redirect(e);else{const r=Jn();r.width="500px",r.data={theme:"user-theme",title:this.translate.instant("CREATE_SINGLE_PUBLICATION.NOT_AN_AUTHOR_DIALOG_TITLE"),alert:this.translate.instant("CREATE_SINGLE_PUBLICATION.NOT_AN_AUTHOR_DIALOG_ALERT"),items:[],type:"confirmation",showAsk:!1},this.dialog.open(Ox,r).afterClosed().subscribe(h=>{h&&this.redirect(e)})}}loadPublicationDetail(e,t){this.selectedPubId=e.id,this.selectedPubTitle=e.title,t.selectedIndex=1}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(m0),n.Y36(wn),n.Y36(oi),n.Y36($n),n.Y36(Ji),n.Y36(qu),n.Y36(yi),n.Y36(Uo))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-create-single-publication-page"]],viewQuery:function(e,t){if(1&e&&n.Gf(x6,5),2&e){let r;n.iGM(r=n.CRH())&&(t.stepper=r.first)}},features:[n._Bn([{provide:Un,useClass:u_,deps:[_o]},{provide:_i,useValue:iz}])],decls:9,vars:5,consts:[[1,"user-theme"],[1,"page-subtitle","d-flex"],[1,"add-icon","mr-1"],["class","ml-auto mr-auto",4,"ngIf"],[3,"selectionChange",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"selectionChange"],["stepper",""],[3,"stepControl"],["matStepLabel",""],[3,"formGroup"],[1,"mt-2"],[1,"dialog-container","w-50"],["labelPosition","before","formControlName","addAuthor",1,"mt-3"],["matInput","","formControlName","title","required","",3,"placeholder"],[4,"ngIf"],[3,"click"],["matInput","","required","","formControlName","year","readonly","",1,"disable",3,"max","matDatepicker"],["matSuffix","",3,"for"],["startView","multi-year","panelClass","year-picker",3,"yearSelected"],["sdp",""],["required","","formControlName","category",3,"placeholder"],[3,"value",4,"ngFor","ngForOf"],["matInput","","formControlName","isbn",3,"placeholder"],["matInput","","formControlName","doi",3,"placeholder"],["matInput","","formControlName","cite","required","",3,"placeholder"],[1,"actions"],["mat-flat-button","","color","accent","matStepperNext","",1,"ml-auto","mr-2",3,"disabled"],[3,"editable"],[1,"flex-container"],["class","flex-container",4,"ngIf"],["class","w-100","alert_type","warn",4,"ngIf"],["class","actions",4,"ngIf"],[3,"publication","selection",4,"ngIf"],["mat-flat-button","","matStepperPrevious","",1,"ml-auto"],["mat-flat-button","","color","accent",1,"ml-2",3,"click"],[3,"value"],[1,"ml-auto","mr-auto","mt-1","font-weight-bold"],["alert_type","warn",1,"w-100"],[1,"font-weight-bold"],[1,"mt-2","ml-3"],[1,"dot-icon"],[1,"ml-3"],["similarPublicationTabs",""],["matTabLabel",""],["matTabContent",""],[1,"flex-container","mb-2"],[3,"displayedColumns","disabledRouting","openInTab","publications","publicationSelector",4,"ngIf"],[3,"displayedColumns","disabledRouting","openInTab","publications","publicationSelector"],[1,"mt-4"],[3,"publicationId","disableRouting","similarityCheck"],[1,"ml-auto","mr-auto","passed-icon"],[1,"ml-auto","mr-auto","font-weight-bold"],["mat-flat-button","","type","button",1,"ml-2",3,"click"],["mat-flat-button","","type","button","matStepperPrevious","",1,"ml-auto"],["mat-flat-button","","color","accent","type","button","matStepperNext","",1,"ml-2"],["alert_type","info"],[3,"publication","selection","disableRouting","yourselfAsAnAuthor",4,"ngIf"],[3,"publication","selection","disableRouting","yourselfAsAnAuthor"],["mat-flat-button","","color","accent","matStepperNext","",1,"ml-auto"],[3,"publication","selection"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"h1",1)(2,"span")(3,"mat-icon",2),n._uU(4,"add_box"),n.qZA(),n._uU(5),n.ALo(6,"translate"),n.qZA()(),n.YNc(7,S6,1,0,"mat-spinner",3),n.YNc(8,tz,78,64,"mat-horizontal-stepper",4),n.qZA()),2&e&&(n.xp6(5),n.hij(" ",n.lcZ(6,3,"CREATE_SINGLE_PUBLICATION.TITLE")," "),n.xp6(2),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading))},dependencies:[x.sg,x.O5,Ot,cd,Ln,Mn,es,ar,ta,bu,Ra,$w,Gi,Wi,tg,ns,Ol,Fc,Ru,R1,UC,k1,YV,qV,CS,c_,AS,Jc,Al,m2,Xj,K1,Kj,na,af,p_,bH,wH,it,T6],styles:[".add-icon{font-size:32px;vertical-align:text-top}.dot-icon{font-size:small;vertical-align:-1px}.passed-icon{font-size:130px;color:#288619;margin-bottom:130px;padding-right:120px}.flex-container{display:flex;flex-direction:column}.year-picker .mat-calendar-period-button{pointer-events:none}.year-picker .mat-calendar-arrow{display:none}.actions{background-color:#fff;display:flex;margin-top:20px}.mat-horizontal-stepper-header{pointer-events:none!important}\n"],encapsulation:2}),i})();function az(i,s){if(1&i&&(n.TgZ(0,"mat-option",14),n._uU(1),n.qZA()),2&i){const e=s.$implicit;n.Q6J("value",e),n.xp6(1),n.Oqu(e.friendlyName)}}function sz(i,s){1&i&&(n.TgZ(0,"perun-web-apps-alert",15),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"IMPORT_PUBLICATIONS.INFO")," "))}function oz(i,s){if(1&i&&n._UZ(0,"perun-web-apps-publications-list",16),2&i){const e=n.oxw(2);n.Q6J("publications",e.publications)("displayedColumns",e.displayedColumns)("selection",e.selected)("tableId",e.tableId)("disabledRouting",!0)("allowAlert",e.firstSearchDone)}}function lz(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"div")(1,"div")(2,"mat-form-field",5)(3,"mat-label"),n._uU(4),n.ALo(5,"translate"),n.qZA(),n.TgZ(6,"mat-select",6),n.NdJ("closed",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.selectPubSystem())}),n.YNc(7,az,2,2,"mat-option",7),n.qZA()(),n._UZ(8,"perun-web-apps-year-range",8),n.TgZ(9,"button",9),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.searchPublications())}),n.TgZ(10,"mat-icon"),n._uU(11,"search"),n.qZA(),n._uU(12),n.ALo(13,"translate"),n.qZA(),n.TgZ(14,"button",10),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.importPublications(r.selected.selected))}),n._uU(15),n.ALo(16,"translate"),n.qZA(),n.TgZ(17,"mat-checkbox",11),n.NdJ("ngModelChange",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.userAsAuthor=r)}),n._uU(18),n.ALo(19,"translate"),n.qZA()(),n.YNc(20,sz,3,3,"perun-web-apps-alert",12),n.YNc(21,oz,1,6,"perun-web-apps-publications-list",13),n.qZA()}if(2&i){const e=n.oxw();n.xp6(4),n.Oqu(n.lcZ(5,12,"IMPORT_PUBLICATIONS.EXT_PUB_SYSTEM")),n.xp6(2),n.Q6J("formControl",e.pubSystem),n.xp6(1),n.Q6J("ngForOf",e.publicationSystems),n.xp6(1),n.Q6J("startYear",e.startYear)("endYear",e.endYear),n.xp6(4),n.hij(" ",n.lcZ(13,14,"IMPORT_PUBLICATIONS.SEARCH")," "),n.xp6(2),n.Q6J("disabled",0===e.selected.selected.length),n.xp6(1),n.hij(" ",n.lcZ(16,16,"IMPORT_PUBLICATIONS.IMPORT")," "),n.xp6(2),n.Q6J("ngModel",e.userAsAuthor),n.xp6(1),n.hij(" ",n.lcZ(19,18,"IMPORT_PUBLICATIONS.ADD_MYSELF")," "),n.xp6(2),n.Q6J("ngIf",!e.firstSearchDone),n.xp6(1),n.Q6J("ngIf",!e.loading)}}function cz(i,s){1&i&&n._UZ(0,"mat-spinner",17)}function dz(i,s){1&i&&(n.TgZ(0,"i"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"IMPORT_PUBLICATIONS.NOT_CHECKED")," "))}function uz(i,s){1&i&&(n.TgZ(0,"mat-icon",28),n._uU(1,"check_circle"),n.qZA())}function hz(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"button",29),n.NdJ("click",function(){n.CHM(e);const r=n.oxw(),d=r.$implicit,h=r.index,c=n.oxw(2);return n.KtG(c.completePublication(d.id,h))}),n._uU(1),n.ALo(2,"translate"),n.qZA()}2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"IMPORT_PUBLICATIONS.CHECKED_BUTTON")," "))}function pz(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"button",30),n.NdJ("click",function(){n.CHM(e);const r=n.oxw().$implicit,d=n.oxw(2);return n.KtG(d.incompletePublication(r.id))}),n._uU(1),n.ALo(2,"translate"),n.qZA()}2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"IMPORT_PUBLICATIONS.NOT_CHECKED_BUTTON")," "))}function fz(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"mat-expansion-panel",22)(1,"mat-expansion-panel-header",23),n.NdJ("click",function(){const d=n.CHM(e).index,h=n.oxw(2);return n.KtG(h.editPublication(d))}),n.TgZ(2,"mat-panel-title"),n._uU(3),n.YNc(4,dz,3,3,"i",3),n.YNc(5,uz,2,0,"mat-icon",24),n.qZA()(),n._UZ(6,"perun-web-apps-publication-detail",25),n.TgZ(7,"div",26),n.YNc(8,hz,3,3,"button",20),n.YNc(9,pz,3,3,"button",27),n.qZA()()}if(2&i){const e=s.$implicit,t=s.index,r=n.oxw(2);n.Q6J("expanded",r.indexExpanded===t),n.xp6(3),n.hij(" ",e.title," "),n.xp6(1),n.Q6J("ngIf",!r.completePublications.includes(e.id)),n.xp6(1),n.Q6J("ngIf",r.completePublications.includes(e.id)),n.xp6(1),n.Q6J("publicationId",e.id),n.xp6(2),n.Q6J("ngIf",!r.completePublications.includes(e.id)),n.xp6(1),n.Q6J("ngIf",r.completePublications.includes(e.id))}}function mz(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"button",29),n.NdJ("click",function(){n.CHM(e);const r=n.oxw(2);return n.KtG(r.completeAllPublications())}),n._uU(1),n.ALo(2,"translate"),n.qZA()}2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"IMPORT_PUBLICATIONS.CHECK_ALL")," "))}function gz(i,s){if(1&i){const e=n.EpF();n.TgZ(0,"div",31),n.ALo(1,"translate"),n.TgZ(2,"button",32),n.NdJ("click",function(){n.CHM(e);const r=n.oxw(2);return n.KtG(r.onSubmit())}),n._uU(3),n.ALo(4,"translate"),n.qZA()()}if(2&i){const e=n.oxw(2);n.s9C("matTooltip",n.lcZ(1,4,"IMPORT_PUBLICATIONS.SUBMIT_TOOLTIP")),n.Q6J("matTooltipPosition","above")("matTooltipDisabled",e.completePublications.length===e.importedPublications.length),n.xp6(3),n.hij(" ",n.lcZ(4,6,"IMPORT_PUBLICATIONS.FINISH")," ")}}function _z(i,s){if(1&i&&(n.TgZ(0,"div")(1,"perun-web-apps-alert",15),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"mat-accordion"),n.YNc(5,fz,10,7,"mat-expansion-panel",18),n.qZA(),n.TgZ(6,"div",19),n.YNc(7,mz,3,3,"button",20),n.qZA(),n.YNc(8,gz,5,8,"div",21),n.qZA()),2&i){const e=n.oxw();n.xp6(2),n.hij(" ",n.lcZ(3,4,"IMPORT_PUBLICATIONS.IMPORTED_INFO")," "),n.xp6(3),n.Q6J("ngForOf",e.importedPublications),n.xp6(2),n.Q6J("ngIf",e.completePublications.length!==e.importedPublications.length),n.xp6(1),n.Q6J("ngIf",e.completePublications.length===e.importedPublications.length)}}const zH=lf,bz={parse:{dateInput:"YYYY"},display:{dateInput:"YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}},wz=[{path:"",redirectTo:"all-publications",pathMatch:"full"},{path:"login",component:C6},{path:"service-access",component:v6},{path:"all-publications",component:HU},{path:"my-publications",component:LU},{path:"create-publication",component:IU},{path:"create-publication/import",component:(()=>{class i{constructor(e,t,r,d,h,c){this.cabinetService=e,this.storeService=t,this.notificator=r,this.translate=d,this.router=h,this.dialog=c,this.loading=!1,this.publicationSystems=[],this.publications=[],this.selected=new Kn(!0,[]),this.tableId="74",this.displayedColumns=["select","id","lock","title","reportedBy","year","category"],this.userAsAuthor=!0,this.importedPublications=[],this.importDone=!1,this.completePublications=[]}ngOnInit(){this.loading=!0,this.firstSearchDone=!1,this.userId=this.storeService.getPerunPrincipal().user.id,this.startYear=new Nn(zH().subtract(1,"year")),this.endYear=new Nn(zH()),this.cabinetService.getPublicationSystems().subscribe(e=>{this.publicationSystems=e.filter(t=>"INTERNAL"!==t.friendlyName),this.pubSystem=new Nn(this.publicationSystems[0]),this.pubSystemNamespace=this.pubSystem.value.loginNamespace,this.loading=!1})}selectPubSystem(){this.pubSystemNamespace=this.pubSystem.value.loginNamespace}searchPublications(){this.loading=!0,this.firstSearchDone=!0,this.cabinetService.findExternalPublications(this.storeService.getPerunPrincipal().user.id,this.startYear.value.year(),this.endYear.value.year(),this.pubSystemNamespace).subscribe({next:e=>{this.publications=e,this.loading=!1},error:()=>this.loading=!1})}importPublications(e){if(this.loading=!0,0===e.length)return this.notificator.showSuccess(this.translate.instant("IMPORT_PUBLICATIONS.SUCCESS")),this.importDone=!0,this.indexExpanded=0,void(this.loading=!1);const t=e.shift();this.cabinetService.createPublication({publication:{id:0,beanName:"Publication",title:t.title,categoryId:t.categoryId,year:t.year,isbn:t.isbn,doi:t.doi,main:t.main}}).subscribe({next:d=>{this.userAsAuthor?this.cabinetService.createAutorship({authorship:{id:0,beanName:"Authorship",publicationId:d.id,userId:this.userId}}).subscribe({next:()=>{this.importedPublications.push(d),this.importPublications(e)},error:()=>this.loading=!1}):(this.importedPublications.push(d),this.importPublications(e))},error:()=>this.loading=!1})}editPublication(e){this.indexExpanded=e===this.indexExpanded?-1:e}completePublication(e,t){this.completePublications.includes(e)||this.completePublications.push(e),this.indexExpanded=t!==this.importedPublications.length-1?t+1:-1}incompletePublication(e){this.completePublications.includes(e)&&(this.completePublications=this.completePublications.filter(t=>t!==e)),this.indexExpanded=-1}completeAllPublications(){const e=Jn();e.width="500px",e.data={theme:"user-theme",message:this.translate.instant("IMPORT_PUBLICATIONS.CHECK_ALL_MESSAGE")},this.dialog.open(hL,e).afterClosed().subscribe(r=>{r&&this.onSubmit()})}onSubmit(){this.notificator.showSuccess(this.translate.instant("IMPORT_PUBLICATIONS.SHOW_FINISH")),this.router.navigate(["/my-publications"],{queryParamsHandling:"preserve"})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(wn),n.Y36(yi),n.Y36(Ji),n.Y36(mn),n.Y36($n),n.Y36(oi))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-import-publications-page"]],features:[n._Bn([{provide:Un,useClass:u_,deps:[_o]},{provide:_i,useValue:bz}])],decls:10,vars:6,consts:[[1,"user-theme"],[1,"page-subtitle","d-flex"],[1,"add-icon","mr-1"],[4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[1,"input-width-300","mr-2"],[3,"formControl","closed"],["class","group-theme",3,"value",4,"ngFor","ngForOf"],[3,"startYear","endYear"],["mat-stroked-button","",1,"left-space",3,"click"],["mat-flat-button","","color","accent",1,"left-space",3,"disabled","click"],[1,"mt-3","left-space",3,"ngModel","ngModelChange"],["alert_type","info",4,"ngIf"],[3,"publications","displayedColumns","selection","tableId","disabledRouting","allowAlert",4,"ngIf"],[1,"group-theme",3,"value"],["alert_type","info"],[3,"publications","displayedColumns","selection","tableId","disabledRouting","allowAlert"],[1,"ml-auto","mr-auto"],[3,"expanded",4,"ngFor","ngForOf"],[1,"right-button"],["mat-flat-button","","class","width-100","color","accent",3,"click",4,"ngIf"],["class","right-button",3,"matTooltip","matTooltipPosition","matTooltipDisabled",4,"ngIf"],[3,"expanded"],[3,"click"],["color","accent","class","checked-icon",4,"ngIf"],[3,"publicationId"],[1,"fit-content"],["mat-stroked-button","","class","width-100",3,"click",4,"ngIf"],["color","accent",1,"checked-icon"],["mat-flat-button","","color","accent",1,"width-100",3,"click"],["mat-stroked-button","",1,"width-100",3,"click"],[1,"right-button",3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["mat-flat-button","","color","accent",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"h1",1)(2,"span")(3,"mat-icon",2),n._uU(4,"add_box"),n.qZA(),n._uU(5),n.ALo(6,"translate"),n.qZA()(),n.YNc(7,lz,22,20,"div",3),n.YNc(8,cz,1,0,"mat-spinner",4),n.YNc(9,_z,9,6,"div",3),n.qZA()),2&e&&(n.xp6(5),n.hij(" ",n.lcZ(6,4,"IMPORT_PUBLICATIONS.TITLE")," "),n.xp6(2),n.Q6J("ngIf",!t.importDone),n.xp6(1),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",t.importDone))},dependencies:[x.sg,x.O5,cV,_1,b1,lV,Ot,cd,Ln,Mn,ar,ta,Wi,Uc,_r,ks,Jc,Al,na,af,p_,mH,it],styles:[".add-icon[_ngcontent-%COMP%]{font-size:32px;vertical-align:text-top}.input-width-300[_ngcontent-%COMP%]{width:300px}.left-space[_ngcontent-%COMP%]{margin-left:10px}mat-panel-title[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin-left:5px}.checked-icon[_ngcontent-%COMP%]{vertical-align:middle;margin-left:5px}.right-button[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content;margin-top:20px;margin-left:auto;margin-right:0}.fit-content[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content;margin-top:15px}.width-100[_ngcontent-%COMP%]{width:100%}"]}),i})()},{path:"create-publication/create",component:rz},{path:"authors",component:oN},{path:"authors/:authorId",component:hF},{path:"authors/:authorId/publication/:publicationId",component:p_},{path:"all-publications/:publicationId",component:p_},{path:"my-publications/:publicationId",component:p_},{path:"categories",component:zN},{path:"publication-systems",component:lF}];let yz=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Lh.forRoot(wz,{preloadingStrategy:$_,scrollPositionRestoration:"enabled",relativeLinkResolution:"legacy"}),Lh]}),i})();const Cz={provide:v.TP,useExisting:(0,n.Gpc)(()=>GE),multi:!0};function Az(i){return new MI(i,"./assets/i18n/",".json")}function vz(i){const s={basePath:i.getProperty("api_url")};return new vt(s)}const Tz=i=>()=>i.loadConfigs();let xz=(()=>{class i{constructor(e,t){this.customIconService=e,this.translate=t,this.translate.setDefaultLang("en"),this.translate.use("en"),this.customIconService.registerPerunRefreshIcon()}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(qE),n.LFG(mn))},i.\u0275mod=n.oAB({type:i,bootstrap:[SI]}),i.\u0275inj=n.cJS({providers:[qE,{provide:n.ip1,useFactory:Tz,multi:!0,deps:[HI]},{provide:vt,useFactory:vz,deps:[yi]},GE,Cz,{provide:PI,useClass:eR},xU,{provide:Wp.Hy,useFactory:()=>localStorage}],imports:[di,Gs.forRoot({loader:{provide:Fr,useFactory:Az,deps:[v.eN]}}),HB,uH,PB,ii,v.JF,yz,RS,iD,y6,rH,Z0,Wp.zr.forRoot(),jH]}),i})();(0,n.G48)(),pt().bootstrapModule(xz).catch(i=>console.error(i))},1302:function(z,W,E){var x;!function(n,P){var D={};!function(n){"use strict";n.__esModule=!0,n.digestLength=32,n.blockSize=64;var P=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function D(ue,se,re,_e,ye){for(var Se,Je,Ze,ke,Ee,Pe,ut,Ve,Ne,je,fe,ge,Te;ye>=64;){for(Se=se[0],Je=se[1],Ze=se[2],ke=se[3],Ee=se[4],Pe=se[5],ut=se[6],Ve=se[7],je=0;je<16;je++)ue[je]=(255&re[fe=_e+4*je])<<24|(255&re[fe+1])<<16|(255&re[fe+2])<<8|255&re[fe+3];for(je=16;je<64;je++)ue[je]=((ge=((Ne=ue[je-2])>>>17|Ne<<15)^(Ne>>>19|Ne<<13)^Ne>>>10)+ue[je-7]|0)+((Te=((Ne=ue[je-15])>>>7|Ne<<25)^(Ne>>>18|Ne<<14)^Ne>>>3)+ue[je-16]|0);for(je=0;je<64;je++)ge=(((Ee>>>6|Ee<<26)^(Ee>>>11|Ee<<21)^(Ee>>>25|Ee<<7))+(Ee&Pe^~Ee&ut)|0)+(Ve+(P[je]+ue[je]|0)|0)|0,Te=((Se>>>2|Se<<30)^(Se>>>13|Se<<19)^(Se>>>22|Se<<10))+(Se&Je^Se&Ze^Je&Ze)|0,Ve=ut,ut=Pe,Pe=Ee,Ee=ke+ge|0,ke=Ze,Ze=Je,Je=Se,Se=ge+Te|0;se[0]+=Se,se[1]+=Je,se[2]+=Ze,se[3]+=ke,se[4]+=Ee,se[5]+=Pe,se[6]+=ut,se[7]+=Ve,_e+=64,ye-=64}return _e}var H=function(){function ue(){this.digestLength=n.digestLength,this.blockSize=n.blockSize,this.state=new Int32Array(8),this.temp=new Int32Array(64),this.buffer=new Uint8Array(128),this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this.reset()}return ue.prototype.reset=function(){return this.state[0]=1779033703,this.state[1]=3144134277,this.state[2]=1013904242,this.state[3]=2773480762,this.state[4]=1359893119,this.state[5]=2600822924,this.state[6]=528734635,this.state[7]=1541459225,this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this},ue.prototype.clean=function(){for(var se=0;se0){for(;this.bufferLength<64&&re>0;)this.buffer[this.bufferLength++]=se[_e++],re--;64===this.bufferLength&&(D(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(re>=64&&(_e=D(this.temp,this.state,se,_e,re),re%=64);re>0;)this.buffer[this.bufferLength++]=se[_e++],re--;return this},ue.prototype.finish=function(se){if(!this.finished){var re=this.bytesHashed,_e=this.bufferLength,ye=re/536870912|0,Se=re<<3,Je=re%64<56?64:128;this.buffer[_e]=128;for(var Ze=_e+1;Ze>>24&255,this.buffer[Je-7]=ye>>>16&255,this.buffer[Je-6]=ye>>>8&255,this.buffer[Je-5]=ye>>>0&255,this.buffer[Je-4]=Se>>>24&255,this.buffer[Je-3]=Se>>>16&255,this.buffer[Je-2]=Se>>>8&255,this.buffer[Je-1]=Se>>>0&255,D(this.temp,this.state,this.buffer,0,Je),this.finished=!0}for(Ze=0;Ze<8;Ze++)se[4*Ze+0]=this.state[Ze]>>>24&255,se[4*Ze+1]=this.state[Ze]>>>16&255,se[4*Ze+2]=this.state[Ze]>>>8&255,se[4*Ze+3]=this.state[Ze]>>>0&255;return this},ue.prototype.digest=function(){var se=new Uint8Array(this.digestLength);return this.finish(se),se},ue.prototype._saveState=function(se){for(var re=0;rethis.blockSize)(new H).update(se).finish(re).clean();else for(var _e=0;_e1&&se.update(ue),re&&se.update(re),se.update(_e),se.finish(ue),_e[0]++}n.HMAC=I,n.hash=B,n.default=B,n.hmac=Y;var ee=new Uint8Array(n.digestLength);n.hkdf=function te(ue,se,re,_e){void 0===se&&(se=ee),void 0===_e&&(_e=32);for(var ye=new Uint8Array([1]),Se=Y(se,ue),Je=new I(Se),Ze=new Uint8Array(Je.digestLength),ke=Ze.length,Ee=new Uint8Array(_e),Pe=0;Pe<_e;Pe++)ke===Ze.length&&(G(Ze,Je,re,ye),ke=0),Ee[Pe]=Ze[ke++];return Je.clean(),Ze.fill(0),ye.fill(0),Ee},n.pbkdf2=function ae(ue,se,re,_e){for(var ye=new I(ue),Se=ye.digestLength,Je=new Uint8Array(4),Ze=new Uint8Array(Se),ke=new Uint8Array(Se),Ee=new Uint8Array(_e),Pe=0;Pe*Se<_e;Pe++){var ut=Pe+1;Je[0]=ut>>>24&255,Je[1]=ut>>>16&255,Je[2]=ut>>>8&255,Je[3]=ut>>>0&255,ye.reset(),ye.update(se),ye.update(Je),ye.finish(ke);for(var Ve=0;Ve=te.status}function I(ee){try{ee.dispatchEvent(new MouseEvent("click"))}catch{var te=document.createEvent("MouseEvents");te.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),ee.dispatchEvent(te)}}var B="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,Y=B.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),G=B.saveAs||("object"!=typeof window||window!==B?function(){}:"download"in HTMLAnchorElement.prototype&&!Y?function(ee,te,ae){var ue=B.URL||B.webkitURL,se=document.createElement("a");se.download=te=te||ee.name||"download",se.rel="noopener","string"==typeof ee?(se.href=ee,se.origin===location.origin?I(se):H(se.href)?D(ee,te,ae):I(se,se.target="_blank")):(se.href=ue.createObjectURL(ee),setTimeout(function(){ue.revokeObjectURL(se.href)},4e4),setTimeout(function(){I(se)},0))}:"msSaveOrOpenBlob"in navigator?function(ee,te,ae){if(te=te||ee.name||"download","string"!=typeof ee)navigator.msSaveOrOpenBlob(function P(ee,te){return typeof te>"u"?te={autoBom:!1}:"object"!=typeof te&&(console.warn("Deprecated: Expected third argument to be a object"),te={autoBom:!te}),te.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(ee.type)?new Blob(["\ufeff",ee],{type:ee.type}):ee}(ee,ae),te);else if(H(ee))D(ee,te,ae);else{var ue=document.createElement("a");ue.href=ee,ue.target="_blank",setTimeout(function(){I(ue)})}}:function(ee,te,ae,ue){if((ue=ue||open("","_blank"))&&(ue.document.title=ue.document.body.innerText="downloading..."),"string"==typeof ee)return D(ee,te,ae);var se="application/octet-stream"===ee.type,re=/constructor/i.test(B.HTMLElement)||B.safari,_e=/CriOS\/[\d]+/.test(navigator.userAgent);if((_e||se&&re||Y)&&typeof FileReader<"u"){var ye=new FileReader;ye.onloadend=function(){var Ze=ye.result;Ze=_e?Ze:Ze.replace(/^data:[^;]*;/,"data:attachment/file;"),ue?ue.location.href=Ze:location=Ze,ue=null},ye.readAsDataURL(ee)}else{var Se=B.URL||B.webkitURL,Je=Se.createObjectURL(ee);ue?ue.location=Je:location.href=Je,ue=null,setTimeout(function(){Se.revokeObjectURL(Je)},4e4)}});B.saveAs=G.saveAs=G,z.exports=G}.apply(W,[]))&&(z.exports=n)},7088:function(z,W,E){!function(x){"use strict";x.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(P){return/^nm$/i.test(P)},meridiem:function(P,D,H){return P<12?H?"vm":"VM":H?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[M\xf4re om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(P){return P+(1===P||8===P||P>=20?"ste":"de")},week:{dow:1,doy:4}})}(E(5439))},2502:function(z,W,E){!function(x){"use strict";var n=function(B){return 0===B?0:1===B?1:2===B?2:B%100>=3&&B%100<=10?3:B%100>=11?4:5},P={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},D=function(B){return function(Y,G,ee,te){var ae=n(Y),ue=P[B][n(Y)];return 2===ae&&(ue=ue[G?0:1]),ue.replace(/%d/i,Y)}},H=["\u062c\u0627\u0646\u0641\u064a","\u0641\u064a\u0641\u0631\u064a","\u0645\u0627\u0631\u0633","\u0623\u0641\u0631\u064a\u0644","\u0645\u0627\u064a","\u062c\u0648\u0627\u0646","\u062c\u0648\u064a\u0644\u064a\u0629","\u0623\u0648\u062a","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];x.defineLocale("ar-dz",{months:H,monthsShort:H,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(B){return"\u0645"===B},meridiem:function(B,Y,G){return B<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:D("s"),ss:D("s"),m:D("m"),mm:D("m"),h:D("h"),hh:D("h"),d:D("d"),dd:D("d"),M:D("M"),MM:D("M"),y:D("y"),yy:D("y")},postformat:function(B){return B.replace(/,/g,"\u060c")},week:{dow:0,doy:4}})}(E(5439))},128:function(z,W,E){!function(x){"use strict";x.defineLocale("ar-kw",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062a\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062a\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:0,doy:12}})}(E(5439))},4519:function(z,W,E){!function(x){"use strict";var n={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},P=function(Y){return 0===Y?0:1===Y?1:2===Y?2:Y%100>=3&&Y%100<=10?3:Y%100>=11?4:5},D={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},H=function(Y){return function(G,ee,te,ae){var ue=P(G),se=D[Y][P(G)];return 2===ue&&(se=se[ee?0:1]),se.replace(/%d/i,G)}},I=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];x.defineLocale("ar-ly",{months:I,monthsShort:I,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(Y){return"\u0645"===Y},meridiem:function(Y,G,ee){return Y<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:H("s"),ss:H("s"),m:H("m"),mm:H("m"),h:H("h"),hh:H("h"),d:H("d"),dd:H("d"),M:H("M"),MM:H("M"),y:H("y"),yy:H("y")},preparse:function(Y){return Y.replace(/\u060c/g,",")},postformat:function(Y){return Y.replace(/\d/g,function(G){return n[G]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(E(5439))},5443:function(z,W,E){!function(x){"use strict";x.defineLocale("ar-ma",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(E(5439))},7642:function(z,W,E){!function(x){"use strict";var n={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},P={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"};x.defineLocale("ar-sa",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(H){return"\u0645"===H},meridiem:function(H,I,B){return H<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},preparse:function(H){return H.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(I){return P[I]}).replace(/\u060c/g,",")},postformat:function(H){return H.replace(/\d/g,function(I){return n[I]}).replace(/,/g,"\u060c")},week:{dow:0,doy:6}})}(E(5439))},8592:function(z,W,E){!function(x){"use strict";x.defineLocale("ar-tn",{months:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(E(5439))},7038:function(z,W,E){!function(x){"use strict";var n={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},P={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},D=function(G){return 0===G?0:1===G?1:2===G?2:G%100>=3&&G%100<=10?3:G%100>=11?4:5},H={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},I=function(G){return function(ee,te,ae,ue){var se=D(ee),re=H[G][D(ee)];return 2===se&&(re=re[te?0:1]),re.replace(/%d/i,ee)}},B=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];x.defineLocale("ar",{months:B,monthsShort:B,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(G){return"\u0645"===G},meridiem:function(G,ee,te){return G<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:I("s"),ss:I("s"),m:I("m"),mm:I("m"),h:I("h"),hh:I("h"),d:I("d"),dd:I("d"),M:I("M"),MM:I("M"),y:I("y"),yy:I("y")},preparse:function(G){return G.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(ee){return P[ee]}).replace(/\u060c/g,",")},postformat:function(G){return G.replace(/\d/g,function(ee){return n[ee]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(E(5439))},1213:function(z,W,E){!function(x){"use strict";var n={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-\xfcnc\xfc",4:"-\xfcnc\xfc",100:"-\xfcnc\xfc",6:"-nc\u0131",9:"-uncu",10:"-uncu",30:"-uncu",60:"-\u0131nc\u0131",90:"-\u0131nc\u0131"};x.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ert\u0259si_\xc7\u0259r\u015f\u0259nb\u0259 ax\u015fam\u0131_\xc7\u0259r\u015f\u0259nb\u0259_C\xfcm\u0259 ax\u015fam\u0131_C\xfcm\u0259_\u015e\u0259nb\u0259".split("_"),weekdaysShort:"Baz_BzE_\xc7Ax_\xc7\u0259r_CAx_C\xfcm_\u015e\u0259n".split("_"),weekdaysMin:"Bz_BE_\xc7A_\xc7\u0259_CA_C\xfc_\u015e\u0259".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[g\u0259l\u0259n h\u0259ft\u0259] dddd [saat] LT",lastDay:"[d\xfcn\u0259n] LT",lastWeek:"[ke\xe7\u0259n h\u0259ft\u0259] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \u0259vv\u0259l",s:"bir ne\xe7\u0259 saniy\u0259",ss:"%d saniy\u0259",m:"bir d\u0259qiq\u0259",mm:"%d d\u0259qiq\u0259",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gec\u0259|s\u0259h\u0259r|g\xfcnd\xfcz|ax\u015fam/,isPM:function(D){return/^(g\xfcnd\xfcz|ax\u015fam)$/.test(D)},meridiem:function(D,H,I){return D<4?"gec\u0259":D<12?"s\u0259h\u0259r":D<17?"g\xfcnd\xfcz":"ax\u015fam"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0131nc\u0131|inci|nci|\xfcnc\xfc|nc\u0131|uncu)/,ordinal:function(D){if(0===D)return D+"-\u0131nc\u0131";var H=D%10;return D+(n[H]||n[D%100-H]||n[D>=100?100:null])},week:{dow:1,doy:7}})}(E(5439))},9191:function(z,W,E){!function(x){"use strict";function P(H,I,B){return"m"===B?I?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443":"h"===B?I?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443":H+" "+function n(H,I){var B=H.split("_");return I%10==1&&I%100!=11?B[0]:I%10>=2&&I%10<=4&&(I%100<10||I%100>=20)?B[1]:B[2]}({ss:I?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:I?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d",hh:I?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d",dd:"\u0434\u0437\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u0437\u0451\u043d",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u044b_\u043c\u0435\u0441\u044f\u0446\u0430\u045e",yy:"\u0433\u043e\u0434_\u0433\u0430\u0434\u044b_\u0433\u0430\u0434\u043e\u045e"}[B],+H)}x.defineLocale("be",{months:{format:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044f_\u043b\u044e\u0442\u0430\u0433\u0430_\u0441\u0430\u043a\u0430\u0432\u0456\u043a\u0430_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a\u0430_\u0442\u0440\u0430\u045e\u043d\u044f_\u0447\u044d\u0440\u0432\u0435\u043d\u044f_\u043b\u0456\u043f\u0435\u043d\u044f_\u0436\u043d\u0456\u045e\u043d\u044f_\u0432\u0435\u0440\u0430\u0441\u043d\u044f_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a\u0430_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434\u0430_\u0441\u043d\u0435\u0436\u043d\u044f".split("_"),standalone:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044c_\u043b\u044e\u0442\u044b_\u0441\u0430\u043a\u0430\u0432\u0456\u043a_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u044d\u0440\u0432\u0435\u043d\u044c_\u043b\u0456\u043f\u0435\u043d\u044c_\u0436\u043d\u0456\u0432\u0435\u043d\u044c_\u0432\u0435\u0440\u0430\u0441\u0435\u043d\u044c_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434_\u0441\u043d\u0435\u0436\u0430\u043d\u044c".split("_")},monthsShort:"\u0441\u0442\u0443\u0434_\u043b\u044e\u0442_\u0441\u0430\u043a_\u043a\u0440\u0430\u0441_\u0442\u0440\u0430\u0432_\u0447\u044d\u0440\u0432_\u043b\u0456\u043f_\u0436\u043d\u0456\u0432_\u0432\u0435\u0440_\u043a\u0430\u0441\u0442_\u043b\u0456\u0441\u0442_\u0441\u043d\u0435\u0436".split("_"),weekdays:{format:"\u043d\u044f\u0434\u0437\u0435\u043b\u044e_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0443_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0443_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),standalone:"\u043d\u044f\u0434\u0437\u0435\u043b\u044f_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0430_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0430_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),isFormat:/\[ ?[\u0423\u0443\u045e] ?(?:\u043c\u0456\u043d\u0443\u043b\u0443\u044e|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0443\u044e)? ?\] ?dddd/},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., HH:mm",LLLL:"dddd, D MMMM YYYY \u0433., HH:mm"},calendar:{sameDay:"[\u0421\u0451\u043d\u043d\u044f \u045e] LT",nextDay:"[\u0417\u0430\u045e\u0442\u0440\u0430 \u045e] LT",lastDay:"[\u0423\u0447\u043e\u0440\u0430 \u045e] LT",nextWeek:function(){return"[\u0423] dddd [\u045e] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u0443\u044e] dddd [\u045e] LT";case 1:case 2:case 4:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u044b] dddd [\u045e] LT"}},sameElse:"L"},relativeTime:{future:"\u043f\u0440\u0430\u0437 %s",past:"%s \u0442\u0430\u043c\u0443",s:"\u043d\u0435\u043a\u0430\u043b\u044c\u043a\u0456 \u0441\u0435\u043a\u0443\u043d\u0434",m:P,mm:P,h:P,hh:P,d:"\u0434\u0437\u0435\u043d\u044c",dd:P,M:"\u043c\u0435\u0441\u044f\u0446",MM:P,y:"\u0433\u043e\u0434",yy:P},meridiemParse:/\u043d\u043e\u0447\u044b|\u0440\u0430\u043d\u0456\u0446\u044b|\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430/,isPM:function(H){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430)$/.test(H)},meridiem:function(H,I,B){return H<4?"\u043d\u043e\u0447\u044b":H<12?"\u0440\u0430\u043d\u0456\u0446\u044b":H<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0430\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0456|\u044b|\u0433\u0430)/,ordinal:function(H,I){switch(I){case"M":case"d":case"DDD":case"w":case"W":return H%10!=2&&H%10!=3||H%100==12||H%100==13?H+"-\u044b":H+"-\u0456";case"D":return H+"-\u0433\u0430";default:return H}},week:{dow:1,doy:7}})}(E(5439))},322:function(z,W,E){!function(x){"use strict";x.defineLocale("bg",{months:"\u044f\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u044f\u043d\u0443_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u044f\u0434\u0430_\u0447\u0435\u0442\u0432\u044a\u0440\u0442\u044a\u043a_\u043f\u0435\u0442\u044a\u043a_\u0441\u044a\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u044f_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u044a\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u043d\u0435\u0441 \u0432] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432] LT",nextWeek:"dddd [\u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u041c\u0438\u043d\u0430\u043b\u0430\u0442\u0430] dddd [\u0432] LT";case 1:case 2:case 4:case 5:return"[\u041c\u0438\u043d\u0430\u043b\u0438\u044f] dddd [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0441\u043b\u0435\u0434 %s",past:"\u043f\u0440\u0435\u0434\u0438 %s",s:"\u043d\u044f\u043a\u043e\u043b\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",w:"\u0441\u0435\u0434\u043c\u0438\u0446\u0430",ww:"%d \u0441\u0435\u0434\u043c\u0438\u0446\u0438",M:"\u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0430",y:"\u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(P){var D=P%10,H=P%100;return 0===P?P+"-\u0435\u0432":0===H?P+"-\u0435\u043d":H>10&&H<20?P+"-\u0442\u0438":1===D?P+"-\u0432\u0438":2===D?P+"-\u0440\u0438":7===D||8===D?P+"-\u043c\u0438":P+"-\u0442\u0438"},week:{dow:1,doy:7}})}(E(5439))},8042:function(z,W,E){!function(x){"use strict";x.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_M\u025bkalo_Zuw\u025bnkalo_Zuluyekalo_Utikalo_S\u025btanburukalo_\u0254kut\u0254burukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_M\u025b_Zuw_Zul_Uti_S\u025bt_\u0254ku_Now_Des".split("_"),weekdays:"Kari_Nt\u025bn\u025bn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Nt\u025b_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm"},calendar:{sameDay:"[Bi l\u025br\u025b] LT",nextDay:"[Sini l\u025br\u025b] LT",nextWeek:"dddd [don l\u025br\u025b] LT",lastDay:"[Kunu l\u025br\u025b] LT",lastWeek:"dddd [t\u025bm\u025bnen l\u025br\u025b] LT",sameElse:"L"},relativeTime:{future:"%s k\u0254n\u0254",past:"a b\u025b %s b\u0254",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"l\u025br\u025b kelen",hh:"l\u025br\u025b %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})}(E(5439))},5903:function(z,W,E){!function(x){"use strict";var n={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},P={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};x.defineLocale("bn-bd",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(H){return H.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(I){return P[I]})},postformat:function(H){return H.replace(/\d/g,function(I){return n[I]})},meridiemParse:/\u09b0\u09be\u09a4|\u09ad\u09cb\u09b0|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be|\u09b0\u09be\u09a4/,meridiemHour:function(H,I){return 12===H&&(H=0),"\u09b0\u09be\u09a4"===I?H<4?H:H+12:"\u09ad\u09cb\u09b0"===I||"\u09b8\u0995\u09be\u09b2"===I?H:"\u09a6\u09c1\u09aa\u09c1\u09b0"===I?H>=3?H:H+12:"\u09ac\u09bf\u0995\u09be\u09b2"===I||"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be"===I?H+12:void 0},meridiem:function(H,I,B){return H<4?"\u09b0\u09be\u09a4":H<6?"\u09ad\u09cb\u09b0":H<12?"\u09b8\u0995\u09be\u09b2":H<15?"\u09a6\u09c1\u09aa\u09c1\u09b0":H<18?"\u09ac\u09bf\u0995\u09be\u09b2":H<20?"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(E(5439))},9620:function(z,W,E){!function(x){"use strict";var n={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},P={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};x.defineLocale("bn",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(H){return H.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(I){return P[I]})},postformat:function(H){return H.replace(/\d/g,function(I){return n[I]})},meridiemParse:/\u09b0\u09be\u09a4|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b0\u09be\u09a4/,meridiemHour:function(H,I){return 12===H&&(H=0),"\u09b0\u09be\u09a4"===I&&H>=4||"\u09a6\u09c1\u09aa\u09c1\u09b0"===I&&H<5||"\u09ac\u09bf\u0995\u09be\u09b2"===I?H+12:H},meridiem:function(H,I,B){return H<4?"\u09b0\u09be\u09a4":H<10?"\u09b8\u0995\u09be\u09b2":H<17?"\u09a6\u09c1\u09aa\u09c1\u09b0":H<20?"\u09ac\u09bf\u0995\u09be\u09b2":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(E(5439))},9645:function(z,W,E){!function(x){"use strict";var n={1:"\u0f21",2:"\u0f22",3:"\u0f23",4:"\u0f24",5:"\u0f25",6:"\u0f26",7:"\u0f27",8:"\u0f28",9:"\u0f29",0:"\u0f20"},P={"\u0f21":"1","\u0f22":"2","\u0f23":"3","\u0f24":"4","\u0f25":"5","\u0f26":"6","\u0f27":"7","\u0f28":"8","\u0f29":"9","\u0f20":"0"};x.defineLocale("bo",{months:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f44\u0f0b\u0f54\u0f7c_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f66\u0f74\u0f58\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f5e\u0f72\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f63\u0f94\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0fb2\u0f74\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f62\u0f92\u0fb1\u0f51\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f42\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f45\u0f72\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54".split("_"),monthsShort:"\u0f5f\u0fb3\u0f0b1_\u0f5f\u0fb3\u0f0b2_\u0f5f\u0fb3\u0f0b3_\u0f5f\u0fb3\u0f0b4_\u0f5f\u0fb3\u0f0b5_\u0f5f\u0fb3\u0f0b6_\u0f5f\u0fb3\u0f0b7_\u0f5f\u0fb3\u0f0b8_\u0f5f\u0fb3\u0f0b9_\u0f5f\u0fb3\u0f0b10_\u0f5f\u0fb3\u0f0b11_\u0f5f\u0fb3\u0f0b12".split("_"),monthsShortRegex:/^(\u0f5f\u0fb3\u0f0b\d{1,2})/,monthsParseExact:!0,weekdays:"\u0f42\u0f5f\u0f60\u0f0b\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f42\u0f5f\u0f60\u0f0b\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysShort:"\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysMin:"\u0f49\u0f72_\u0f5f\u0fb3_\u0f58\u0f72\u0f42_\u0f63\u0fb7\u0f42_\u0f55\u0f74\u0f62_\u0f66\u0f44\u0f66_\u0f66\u0fa4\u0f7a\u0f53".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0f51\u0f72\u0f0b\u0f62\u0f72\u0f44] LT",nextDay:"[\u0f66\u0f44\u0f0b\u0f49\u0f72\u0f53] LT",nextWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f62\u0f97\u0f7a\u0f66\u0f0b\u0f58], LT",lastDay:"[\u0f41\u0f0b\u0f66\u0f44] LT",lastWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f58\u0f50\u0f60\u0f0b\u0f58] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0f63\u0f0b",past:"%s \u0f66\u0f94\u0f53\u0f0b\u0f63",s:"\u0f63\u0f58\u0f0b\u0f66\u0f44",ss:"%d \u0f66\u0f90\u0f62\u0f0b\u0f46\u0f0d",m:"\u0f66\u0f90\u0f62\u0f0b\u0f58\u0f0b\u0f42\u0f45\u0f72\u0f42",mm:"%d \u0f66\u0f90\u0f62\u0f0b\u0f58",h:"\u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51\u0f0b\u0f42\u0f45\u0f72\u0f42",hh:"%d \u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51",d:"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f45\u0f72\u0f42",dd:"%d \u0f49\u0f72\u0f53\u0f0b",M:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f45\u0f72\u0f42",MM:"%d \u0f5f\u0fb3\u0f0b\u0f56",y:"\u0f63\u0f7c\u0f0b\u0f42\u0f45\u0f72\u0f42",yy:"%d \u0f63\u0f7c"},preparse:function(H){return H.replace(/[\u0f21\u0f22\u0f23\u0f24\u0f25\u0f26\u0f27\u0f28\u0f29\u0f20]/g,function(I){return P[I]})},postformat:function(H){return H.replace(/\d/g,function(I){return n[I]})},meridiemParse:/\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c|\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66|\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44|\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42|\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c/,meridiemHour:function(H,I){return 12===H&&(H=0),"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"===I&&H>=4||"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44"===I&&H<5||"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42"===I?H+12:H},meridiem:function(H,I,B){return H<4?"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c":H<10?"\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66":H<17?"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44":H<20?"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42":"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"},week:{dow:0,doy:6}})}(E(5439))},5020:function(z,W,E){!function(x){"use strict";function n(re,_e,ye){return re+" "+function H(re,_e){return 2===_e?function I(re){var _e={m:"v",b:"v",d:"z"};return void 0===_e[re.charAt(0)]?re:_e[re.charAt(0)]+re.substring(1)}(re):re}({mm:"munutenn",MM:"miz",dd:"devezh"}[ye],re)}function D(re){return re>9?D(re%10):re}var B=[/^gen/i,/^c[\u02bc\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],Y=/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,ue=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];x.defineLocale("br",{months:"Genver_C\u02bchwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C\u02bchwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc\u02bcher_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParse:ue,fullWeekdaysParse:[/^sul/i,/^lun/i,/^meurzh/i,/^merc[\u02bc\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],shortWeekdaysParse:[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],minWeekdaysParse:ue,monthsRegex:Y,monthsShortRegex:Y,monthsStrictRegex:/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,monthsShortStrictRegex:/^(gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,monthsParse:B,longMonthsParse:B,shortMonthsParse:B,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc\u02bchoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec\u02bch da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s \u02bczo",s:"un nebeud segondenno\xf9",ss:"%d eilenn",m:"ur vunutenn",mm:n,h:"un eur",hh:"%d eur",d:"un devezh",dd:n,M:"ur miz",MM:n,y:"ur bloaz",yy:function P(re){switch(D(re)){case 1:case 3:case 4:case 5:case 9:return re+" bloaz";default:return re+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(a\xf1|vet)/,ordinal:function(re){return re+(1===re?"a\xf1":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(re){return"g.m."===re},meridiem:function(re,_e,ye){return re<12?"a.m.":"g.m."}})}(E(5439))},4792:function(z,W,E){!function(x){"use strict";function n(D,H,I){var B=D+" ";switch(I){case"ss":return B+(1===D?"sekunda":2===D||3===D||4===D?"sekunde":"sekundi");case"m":return H?"jedna minuta":"jedne minute";case"mm":return B+(1===D?"minuta":2===D||3===D||4===D?"minute":"minuta");case"h":return H?"jedan sat":"jednog sata";case"hh":return B+(1===D?"sat":2===D||3===D||4===D?"sata":"sati");case"dd":return B+(1===D?"dan":"dana");case"MM":return B+(1===D?"mjesec":2===D||3===D||4===D?"mjeseca":"mjeseci");case"yy":return B+(1===D?"godina":2===D||3===D||4===D?"godine":"godina")}}x.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[pro\u0161lu] dddd [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:n,m:n,mm:n,h:n,hh:n,d:"dan",dd:n,M:"mjesec",MM:n,y:"godinu",yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(E(5439))},7980:function(z,W,E){!function(x){"use strict";x.defineLocale("ca",{months:{standalone:"gener_febrer_mar\xe7_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de mar\xe7_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[dem\xe0 a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(P,D){var H=1===P?"r":2===P?"n":3===P?"r":4===P?"t":"\xe8";return("w"===D||"W"===D)&&(H="a"),P+H},week:{dow:1,doy:4}})}(E(5439))},7322:function(z,W,E){!function(x){"use strict";var n={format:"leden_\xfanor_b\u0159ezen_duben_kv\u011bten_\u010derven_\u010dervenec_srpen_z\xe1\u0159\xed_\u0159\xedjen_listopad_prosinec".split("_"),standalone:"ledna_\xfanora_b\u0159ezna_dubna_kv\u011btna_\u010dervna_\u010dervence_srpna_z\xe1\u0159\xed_\u0159\xedjna_listopadu_prosince".split("_")},P="led_\xfano_b\u0159e_dub_kv\u011b_\u010dvn_\u010dvc_srp_z\xe1\u0159_\u0159\xedj_lis_pro".split("_"),D=[/^led/i,/^\xfano/i,/^b\u0159e/i,/^dub/i,/^kv\u011b/i,/^(\u010dvn|\u010derven$|\u010dervna)/i,/^(\u010dvc|\u010dervenec|\u010dervence)/i,/^srp/i,/^z\xe1\u0159/i,/^\u0159\xedj/i,/^lis/i,/^pro/i],H=/^(leden|\xfanor|b\u0159ezen|duben|kv\u011bten|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|z\xe1\u0159\xed|\u0159\xedjen|listopad|prosinec|led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i;function I(G){return G>1&&G<5&&1!=~~(G/10)}function B(G,ee,te,ae){var ue=G+" ";switch(te){case"s":return ee||ae?"p\xe1r sekund":"p\xe1r sekundami";case"ss":return ee||ae?ue+(I(G)?"sekundy":"sekund"):ue+"sekundami";case"m":return ee?"minuta":ae?"minutu":"minutou";case"mm":return ee||ae?ue+(I(G)?"minuty":"minut"):ue+"minutami";case"h":return ee?"hodina":ae?"hodinu":"hodinou";case"hh":return ee||ae?ue+(I(G)?"hodiny":"hodin"):ue+"hodinami";case"d":return ee||ae?"den":"dnem";case"dd":return ee||ae?ue+(I(G)?"dny":"dn\xed"):ue+"dny";case"M":return ee||ae?"m\u011bs\xedc":"m\u011bs\xedcem";case"MM":return ee||ae?ue+(I(G)?"m\u011bs\xedce":"m\u011bs\xedc\u016f"):ue+"m\u011bs\xedci";case"y":return ee||ae?"rok":"rokem";case"yy":return ee||ae?ue+(I(G)?"roky":"let"):ue+"lety"}}x.defineLocale("cs",{months:n,monthsShort:P,monthsRegex:H,monthsShortRegex:H,monthsStrictRegex:/^(leden|ledna|\xfanora|\xfanor|b\u0159ezen|b\u0159ezna|duben|dubna|kv\u011bten|kv\u011btna|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|srpna|z\xe1\u0159\xed|\u0159\xedjen|\u0159\xedjna|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i,monthsParse:D,longMonthsParse:D,shortMonthsParse:D,weekdays:"ned\u011ble_pond\u011bl\xed_\xfater\xfd_st\u0159eda_\u010dtvrtek_p\xe1tek_sobota".split("_"),weekdaysShort:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),weekdaysMin:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[z\xedtra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v ned\u011bli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve st\u0159edu v] LT";case 4:return"[ve \u010dtvrtek v] LT";case 5:return"[v p\xe1tek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[v\u010dera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou ned\u011bli v] LT";case 1:case 2:return"[minul\xe9] dddd [v] LT";case 3:return"[minulou st\u0159edu v] LT";case 4:case 5:return"[minul\xfd] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"p\u0159ed %s",s:B,ss:B,m:B,mm:B,h:B,hh:B,d:B,dd:B,M:B,MM:B,y:B,yy:B},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},365:function(z,W,E){!function(x){"use strict";x.defineLocale("cv",{months:"\u043a\u04d1\u0440\u043b\u0430\u0447_\u043d\u0430\u0440\u04d1\u0441_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440\u0442\u043c\u0435_\u0443\u0442\u04d1_\u04ab\u0443\u0440\u043b\u0430_\u0430\u0432\u04d1\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448\u0442\u0430\u0432".split("_"),monthsShort:"\u043a\u04d1\u0440_\u043d\u0430\u0440_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440_\u0443\u0442\u04d1_\u04ab\u0443\u0440_\u0430\u0432\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448".split("_"),weekdays:"\u0432\u044b\u0440\u0441\u0430\u0440\u043d\u0438\u043a\u0443\u043d_\u0442\u0443\u043d\u0442\u0438\u043a\u0443\u043d_\u044b\u0442\u043b\u0430\u0440\u0438\u043a\u0443\u043d_\u044e\u043d\u043a\u0443\u043d_\u043a\u04d7\u04ab\u043d\u0435\u0440\u043d\u0438\u043a\u0443\u043d_\u044d\u0440\u043d\u0435\u043a\u0443\u043d_\u0448\u04d1\u043c\u0430\u0442\u043a\u0443\u043d".split("_"),weekdaysShort:"\u0432\u044b\u0440_\u0442\u0443\u043d_\u044b\u0442\u043b_\u044e\u043d_\u043a\u04d7\u04ab_\u044d\u0440\u043d_\u0448\u04d1\u043c".split("_"),weekdaysMin:"\u0432\u0440_\u0442\u043d_\u044b\u0442_\u044e\u043d_\u043a\u04ab_\u044d\u0440_\u0448\u043c".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7]",LLL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm",LLLL:"dddd, YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm"},calendar:{sameDay:"[\u041f\u0430\u044f\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextDay:"[\u042b\u0440\u0430\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastDay:"[\u04d6\u043d\u0435\u0440] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextWeek:"[\u04aa\u0438\u0442\u0435\u0441] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastWeek:"[\u0418\u0440\u0442\u043d\u04d7] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",sameElse:"L"},relativeTime:{future:function(P){return P+(/\u0441\u0435\u0445\u0435\u0442$/i.exec(P)?"\u0440\u0435\u043d":/\u04ab\u0443\u043b$/i.exec(P)?"\u0442\u0430\u043d":"\u0440\u0430\u043d")},past:"%s \u043a\u0430\u044f\u043b\u043b\u0430",s:"\u043f\u04d7\u0440-\u0438\u043a \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",ss:"%d \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",m:"\u043f\u04d7\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u043f\u04d7\u0440 \u0441\u0435\u0445\u0435\u0442",hh:"%d \u0441\u0435\u0445\u0435\u0442",d:"\u043f\u04d7\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u043f\u04d7\u0440 \u0443\u0439\u04d1\u0445",MM:"%d \u0443\u0439\u04d1\u0445",y:"\u043f\u04d7\u0440 \u04ab\u0443\u043b",yy:"%d \u04ab\u0443\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-\u043c\u04d7\u0448/,ordinal:"%d-\u043c\u04d7\u0448",week:{dow:1,doy:7}})}(E(5439))},2092:function(z,W,E){!function(x){"use strict";x.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn \xf4l",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(P){var H="";return P>20?H=40===P||50===P||60===P||80===P||100===P?"fed":"ain":P>0&&(H=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][P]),P+H},week:{dow:1,doy:4}})}(E(5439))},7387:function(z,W,E){!function(x){"use strict";x.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8n_man_tir_ons_tor_fre_l\xf8r".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"p\xe5 dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"f\xe5 sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"et \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},9459:function(z,W,E){!function(x){"use strict";function n(D,H,I,B){var Y={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[D+" Tage",D+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[D+" Monate",D+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[D+" Jahre",D+" Jahren"]};return H?Y[I][0]:Y[I][1]}x.defineLocale("de-at",{months:"J\xe4nner_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"J\xe4n._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:n,mm:"%d Minuten",h:n,hh:"%d Stunden",d:n,dd:n,w:n,ww:"%d Wochen",M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},3694:function(z,W,E){!function(x){"use strict";function n(D,H,I,B){var Y={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[D+" Tage",D+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[D+" Monate",D+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[D+" Jahre",D+" Jahren"]};return H?Y[I][0]:Y[I][1]}x.defineLocale("de-ch",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:n,mm:"%d Minuten",h:n,hh:"%d Stunden",d:n,dd:n,w:n,ww:"%d Wochen",M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},4307:function(z,W,E){!function(x){"use strict";function n(D,H,I,B){var Y={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[D+" Tage",D+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[D+" Monate",D+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[D+" Jahre",D+" Jahren"]};return H?Y[I][0]:Y[I][1]}x.defineLocale("de",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:n,mm:"%d Minuten",h:n,hh:"%d Stunden",d:n,dd:n,w:n,ww:"%d Wochen",M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},9659:function(z,W,E){!function(x){"use strict";var n=["\u0796\u07ac\u0782\u07aa\u0787\u07a6\u0783\u07a9","\u078a\u07ac\u0784\u07b0\u0783\u07aa\u0787\u07a6\u0783\u07a9","\u0789\u07a7\u0783\u07a8\u0797\u07aa","\u0787\u07ad\u0795\u07b0\u0783\u07a9\u078d\u07aa","\u0789\u07ad","\u0796\u07ab\u0782\u07b0","\u0796\u07aa\u078d\u07a6\u0787\u07a8","\u0787\u07af\u078e\u07a6\u0790\u07b0\u0793\u07aa","\u0790\u07ac\u0795\u07b0\u0793\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0787\u07ae\u0786\u07b0\u0793\u07af\u0784\u07a6\u0783\u07aa","\u0782\u07ae\u0788\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0791\u07a8\u0790\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa"],P=["\u0787\u07a7\u078b\u07a8\u0787\u07b0\u078c\u07a6","\u0780\u07af\u0789\u07a6","\u0787\u07a6\u0782\u07b0\u078e\u07a7\u0783\u07a6","\u0784\u07aa\u078b\u07a6","\u0784\u07aa\u0783\u07a7\u0790\u07b0\u078a\u07a6\u078c\u07a8","\u0780\u07aa\u0786\u07aa\u0783\u07aa","\u0780\u07ae\u0782\u07a8\u0780\u07a8\u0783\u07aa"];x.defineLocale("dv",{months:n,monthsShort:n,weekdays:P,weekdaysShort:P,weekdaysMin:"\u0787\u07a7\u078b\u07a8_\u0780\u07af\u0789\u07a6_\u0787\u07a6\u0782\u07b0_\u0784\u07aa\u078b\u07a6_\u0784\u07aa\u0783\u07a7_\u0780\u07aa\u0786\u07aa_\u0780\u07ae\u0782\u07a8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0789\u0786|\u0789\u078a/,isPM:function(H){return"\u0789\u078a"===H},meridiem:function(H,I,B){return H<12?"\u0789\u0786":"\u0789\u078a"},calendar:{sameDay:"[\u0789\u07a8\u0787\u07a6\u078b\u07aa] LT",nextDay:"[\u0789\u07a7\u078b\u07a6\u0789\u07a7] LT",nextWeek:"dddd LT",lastDay:"[\u0787\u07a8\u0787\u07b0\u0794\u07ac] LT",lastWeek:"[\u078a\u07a7\u0787\u07a8\u078c\u07aa\u0788\u07a8] dddd LT",sameElse:"L"},relativeTime:{future:"\u078c\u07ac\u0783\u07ad\u078e\u07a6\u0787\u07a8 %s",past:"\u0786\u07aa\u0783\u07a8\u0782\u07b0 %s",s:"\u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa\u0786\u07ae\u0785\u07ac\u0787\u07b0",ss:"d% \u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa",m:"\u0789\u07a8\u0782\u07a8\u0793\u07ac\u0787\u07b0",mm:"\u0789\u07a8\u0782\u07a8\u0793\u07aa %d",h:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07ac\u0787\u07b0",hh:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07aa %d",d:"\u078b\u07aa\u0788\u07a6\u0780\u07ac\u0787\u07b0",dd:"\u078b\u07aa\u0788\u07a6\u0790\u07b0 %d",M:"\u0789\u07a6\u0780\u07ac\u0787\u07b0",MM:"\u0789\u07a6\u0790\u07b0 %d",y:"\u0787\u07a6\u0780\u07a6\u0783\u07ac\u0787\u07b0",yy:"\u0787\u07a6\u0780\u07a6\u0783\u07aa %d"},preparse:function(H){return H.replace(/\u060c/g,",")},postformat:function(H){return H.replace(/,/g,"\u060c")},week:{dow:7,doy:12}})}(E(5439))},3460:function(z,W,E){!function(x){"use strict";x.defineLocale("el",{monthsNominativeEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u039c\u03ac\u03c1\u03c4\u03b9\u03bf\u03c2_\u0391\u03c0\u03c1\u03af\u03bb\u03b9\u03bf\u03c2_\u039c\u03ac\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bd\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bb\u03b9\u03bf\u03c2_\u0391\u03cd\u03b3\u03bf\u03c5\u03c3\u03c4\u03bf\u03c2_\u03a3\u03b5\u03c0\u03c4\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u039f\u03ba\u03c4\u03ce\u03b2\u03c1\u03b9\u03bf\u03c2_\u039d\u03bf\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u0394\u03b5\u03ba\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2".split("_"),monthsGenitiveEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u039c\u03b1\u03c1\u03c4\u03af\u03bf\u03c5_\u0391\u03c0\u03c1\u03b9\u03bb\u03af\u03bf\u03c5_\u039c\u03b1\u0390\u03bf\u03c5_\u0399\u03bf\u03c5\u03bd\u03af\u03bf\u03c5_\u0399\u03bf\u03c5\u03bb\u03af\u03bf\u03c5_\u0391\u03c5\u03b3\u03bf\u03cd\u03c3\u03c4\u03bf\u03c5_\u03a3\u03b5\u03c0\u03c4\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u039f\u03ba\u03c4\u03c9\u03b2\u03c1\u03af\u03bf\u03c5_\u039d\u03bf\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u0394\u03b5\u03ba\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5".split("_"),months:function(D,H){return D?"string"==typeof H&&/D/.test(H.substring(0,H.indexOf("MMMM")))?this._monthsGenitiveEl[D.month()]:this._monthsNominativeEl[D.month()]:this._monthsNominativeEl},monthsShort:"\u0399\u03b1\u03bd_\u03a6\u03b5\u03b2_\u039c\u03b1\u03c1_\u0391\u03c0\u03c1_\u039c\u03b1\u03ca_\u0399\u03bf\u03c5\u03bd_\u0399\u03bf\u03c5\u03bb_\u0391\u03c5\u03b3_\u03a3\u03b5\u03c0_\u039f\u03ba\u03c4_\u039d\u03bf\u03b5_\u0394\u03b5\u03ba".split("_"),weekdays:"\u039a\u03c5\u03c1\u03b9\u03b1\u03ba\u03ae_\u0394\u03b5\u03c5\u03c4\u03ad\u03c1\u03b1_\u03a4\u03c1\u03af\u03c4\u03b7_\u03a4\u03b5\u03c4\u03ac\u03c1\u03c4\u03b7_\u03a0\u03ad\u03bc\u03c0\u03c4\u03b7_\u03a0\u03b1\u03c1\u03b1\u03c3\u03ba\u03b5\u03c5\u03ae_\u03a3\u03ac\u03b2\u03b2\u03b1\u03c4\u03bf".split("_"),weekdaysShort:"\u039a\u03c5\u03c1_\u0394\u03b5\u03c5_\u03a4\u03c1\u03b9_\u03a4\u03b5\u03c4_\u03a0\u03b5\u03bc_\u03a0\u03b1\u03c1_\u03a3\u03b1\u03b2".split("_"),weekdaysMin:"\u039a\u03c5_\u0394\u03b5_\u03a4\u03c1_\u03a4\u03b5_\u03a0\u03b5_\u03a0\u03b1_\u03a3\u03b1".split("_"),meridiem:function(D,H,I){return D>11?I?"\u03bc\u03bc":"\u039c\u039c":I?"\u03c0\u03bc":"\u03a0\u039c"},isPM:function(D){return"\u03bc"===(D+"").toLowerCase()[0]},meridiemParse:/[\u03a0\u039c]\.?\u039c?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[\u03a3\u03ae\u03bc\u03b5\u03c1\u03b1 {}] LT",nextDay:"[\u0391\u03cd\u03c1\u03b9\u03bf {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[\u03a7\u03b8\u03b5\u03c2 {}] LT",lastWeek:function(){return 6===this.day()?"[\u03c4\u03bf \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03bf] dddd [{}] LT":"[\u03c4\u03b7\u03bd \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03b7] dddd [{}] LT"},sameElse:"L"},calendar:function(D,H){var I=this._calendarEl[D],B=H&&H.hours();return function n(D){return typeof Function<"u"&&D instanceof Function||"[object Function]"===Object.prototype.toString.call(D)}(I)&&(I=I.apply(H)),I.replace("{}",B%12==1?"\u03c3\u03c4\u03b7":"\u03c3\u03c4\u03b9\u03c2")},relativeTime:{future:"\u03c3\u03b5 %s",past:"%s \u03c0\u03c1\u03b9\u03bd",s:"\u03bb\u03af\u03b3\u03b1 \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",ss:"%d \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",m:"\u03ad\u03bd\u03b1 \u03bb\u03b5\u03c0\u03c4\u03cc",mm:"%d \u03bb\u03b5\u03c0\u03c4\u03ac",h:"\u03bc\u03af\u03b1 \u03ce\u03c1\u03b1",hh:"%d \u03ce\u03c1\u03b5\u03c2",d:"\u03bc\u03af\u03b1 \u03bc\u03ad\u03c1\u03b1",dd:"%d \u03bc\u03ad\u03c1\u03b5\u03c2",M:"\u03ad\u03bd\u03b1\u03c2 \u03bc\u03ae\u03bd\u03b1\u03c2",MM:"%d \u03bc\u03ae\u03bd\u03b5\u03c2",y:"\u03ad\u03bd\u03b1\u03c2 \u03c7\u03c1\u03cc\u03bd\u03bf\u03c2",yy:"%d \u03c7\u03c1\u03cc\u03bd\u03b9\u03b1"},dayOfMonthOrdinalParse:/\d{1,2}\u03b7/,ordinal:"%d\u03b7",week:{dow:1,doy:4}})}(E(5439))},4369:function(z,W,E){!function(x){"use strict";x.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(P){var D=P%10;return P+(1==~~(P%100/10)?"th":1===D?"st":2===D?"nd":3===D?"rd":"th")},week:{dow:0,doy:4}})}(E(5439))},530:function(z,W,E){!function(x){"use strict";x.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(P){var D=P%10;return P+(1==~~(P%100/10)?"th":1===D?"st":2===D?"nd":3===D?"rd":"th")}})}(E(5439))},9998:function(z,W,E){!function(x){"use strict";x.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(P){var D=P%10;return P+(1==~~(P%100/10)?"th":1===D?"st":2===D?"nd":3===D?"rd":"th")},week:{dow:1,doy:4}})}(E(5439))},3391:function(z,W,E){!function(x){"use strict";x.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(P){var D=P%10;return P+(1==~~(P%100/10)?"th":1===D?"st":2===D?"nd":3===D?"rd":"th")},week:{dow:1,doy:4}})}(E(5439))},5414:function(z,W,E){!function(x){"use strict";x.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(P){var D=P%10;return P+(1==~~(P%100/10)?"th":1===D?"st":2===D?"nd":3===D?"rd":"th")}})}(E(5439))},9615:function(z,W,E){!function(x){"use strict";x.defineLocale("en-in",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(P){var D=P%10;return P+(1==~~(P%100/10)?"th":1===D?"st":2===D?"nd":3===D?"rd":"th")},week:{dow:0,doy:6}})}(E(5439))},1248:function(z,W,E){!function(x){"use strict";x.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(P){var D=P%10;return P+(1==~~(P%100/10)?"th":1===D?"st":2===D?"nd":3===D?"rd":"th")},week:{dow:1,doy:4}})}(E(5439))},3767:function(z,W,E){!function(x){"use strict";x.defineLocale("en-sg",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(P){var D=P%10;return P+(1==~~(P%100/10)?"th":1===D?"st":2===D?"nd":3===D?"rd":"th")},week:{dow:1,doy:4}})}(E(5439))},4530:function(z,W,E){!function(x){"use strict";x.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_a\u016dgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_a\u016dg_sept_okt_nov_dec".split("_"),weekdays:"diman\u0109o_lundo_mardo_merkredo_\u0135a\u016ddo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_\u0135a\u016d_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_\u0135a_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(P){return"p"===P.charAt(0).toLowerCase()},meridiem:function(P,D,H){return P>11?H?"p.t.m.":"P.T.M.":H?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodia\u016d je] LT",nextDay:"[Morga\u016d je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hiera\u016d je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"anta\u016d %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(E(5439))},8944:function(z,W,E){!function(x){"use strict";var n="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),P="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),D=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],H=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;x.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(B,Y){return B?/-MMM-/.test(Y)?P[B.month()]:n[B.month()]:n},monthsRegex:H,monthsShortRegex:H,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:D,longMonthsParse:D,shortMonthsParse:D,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(E(5439))},9116:function(z,W,E){!function(x){"use strict";var n="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),P="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),D=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],H=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;x.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(B,Y){return B?/-MMM-/.test(Y)?P[B.month()]:n[B.month()]:n},monthsRegex:H,monthsShortRegex:H,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:D,longMonthsParse:D,shortMonthsParse:D,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:4},invalidDate:"Fecha inv\xe1lida"})}(E(5439))},3609:function(z,W,E){!function(x){"use strict";var n="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),P="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),D=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],H=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;x.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(B,Y){return B?/-MMM-/.test(Y)?P[B.month()]:n[B.month()]:n},monthsRegex:H,monthsShortRegex:H,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:D,longMonthsParse:D,shortMonthsParse:D,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:6}})}(E(5439))},6866:function(z,W,E){!function(x){"use strict";var n="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),P="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),D=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],H=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;x.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(B,Y){return B?/-MMM-/.test(Y)?P[B.month()]:n[B.month()]:n},monthsRegex:H,monthsShortRegex:H,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:D,longMonthsParse:D,shortMonthsParse:D,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4},invalidDate:"Fecha inv\xe1lida"})}(E(5439))},6725:function(z,W,E){!function(x){"use strict";function n(D,H,I,B){var Y={s:["m\xf5ne sekundi","m\xf5ni sekund","paar sekundit"],ss:[D+"sekundi",D+"sekundit"],m:["\xfche minuti","\xfcks minut"],mm:[D+" minuti",D+" minutit"],h:["\xfche tunni","tund aega","\xfcks tund"],hh:[D+" tunni",D+" tundi"],d:["\xfche p\xe4eva","\xfcks p\xe4ev"],M:["kuu aja","kuu aega","\xfcks kuu"],MM:[D+" kuu",D+" kuud"],y:["\xfche aasta","aasta","\xfcks aasta"],yy:[D+" aasta",D+" aastat"]};return H?Y[I][2]?Y[I][2]:Y[I][1]:B?Y[I][0]:Y[I][1]}x.defineLocale("et",{months:"jaanuar_veebruar_m\xe4rts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_m\xe4rts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"p\xfchap\xe4ev_esmasp\xe4ev_teisip\xe4ev_kolmap\xe4ev_neljap\xe4ev_reede_laup\xe4ev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[T\xe4na,] LT",nextDay:"[Homme,] LT",nextWeek:"[J\xe4rgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s p\xe4rast",past:"%s tagasi",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:"%d p\xe4eva",M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},7931:function(z,W,E){!function(x){"use strict";x.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(E(5439))},6417:function(z,W,E){!function(x){"use strict";var n={1:"\u06f1",2:"\u06f2",3:"\u06f3",4:"\u06f4",5:"\u06f5",6:"\u06f6",7:"\u06f7",8:"\u06f8",9:"\u06f9",0:"\u06f0"},P={"\u06f1":"1","\u06f2":"2","\u06f3":"3","\u06f4":"4","\u06f5":"5","\u06f6":"6","\u06f7":"7","\u06f8":"8","\u06f9":"9","\u06f0":"0"};x.defineLocale("fa",{months:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),monthsShort:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),weekdays:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysShort:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u062c_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631|\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/,isPM:function(H){return/\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/.test(H)},meridiem:function(H,I,B){return H<12?"\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631":"\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631"},calendar:{sameDay:"[\u0627\u0645\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",nextDay:"[\u0641\u0631\u062f\u0627 \u0633\u0627\u0639\u062a] LT",nextWeek:"dddd [\u0633\u0627\u0639\u062a] LT",lastDay:"[\u062f\u06cc\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",lastWeek:"dddd [\u067e\u06cc\u0634] [\u0633\u0627\u0639\u062a] LT",sameElse:"L"},relativeTime:{future:"\u062f\u0631 %s",past:"%s \u067e\u06cc\u0634",s:"\u0686\u0646\u062f \u062b\u0627\u0646\u06cc\u0647",ss:"%d \u062b\u0627\u0646\u06cc\u0647",m:"\u06cc\u06a9 \u062f\u0642\u06cc\u0642\u0647",mm:"%d \u062f\u0642\u06cc\u0642\u0647",h:"\u06cc\u06a9 \u0633\u0627\u0639\u062a",hh:"%d \u0633\u0627\u0639\u062a",d:"\u06cc\u06a9 \u0631\u0648\u0632",dd:"%d \u0631\u0648\u0632",M:"\u06cc\u06a9 \u0645\u0627\u0647",MM:"%d \u0645\u0627\u0647",y:"\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(H){return H.replace(/[\u06f0-\u06f9]/g,function(I){return P[I]}).replace(/\u060c/g,",")},postformat:function(H){return H.replace(/\d/g,function(I){return n[I]}).replace(/,/g,"\u060c")},dayOfMonthOrdinalParse:/\d{1,2}\u0645/,ordinal:"%d\u0645",week:{dow:6,doy:12}})}(E(5439))},944:function(z,W,E){!function(x){"use strict";var n="nolla yksi kaksi kolme nelj\xe4 viisi kuusi seitsem\xe4n kahdeksan yhdeks\xe4n".split(" "),P=["nolla","yhden","kahden","kolmen","nelj\xe4n","viiden","kuuden",n[7],n[8],n[9]];function D(B,Y,G,ee){var te="";switch(G){case"s":return ee?"muutaman sekunnin":"muutama sekunti";case"ss":te=ee?"sekunnin":"sekuntia";break;case"m":return ee?"minuutin":"minuutti";case"mm":te=ee?"minuutin":"minuuttia";break;case"h":return ee?"tunnin":"tunti";case"hh":te=ee?"tunnin":"tuntia";break;case"d":return ee?"p\xe4iv\xe4n":"p\xe4iv\xe4";case"dd":te=ee?"p\xe4iv\xe4n":"p\xe4iv\xe4\xe4";break;case"M":return ee?"kuukauden":"kuukausi";case"MM":te=ee?"kuukauden":"kuukautta";break;case"y":return ee?"vuoden":"vuosi";case"yy":te=ee?"vuoden":"vuotta"}return function H(B,Y){return B<10?Y?P[B]:n[B]:B}(B,ee)+" "+te}x.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kes\xe4kuu_hein\xe4kuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kes\xe4_hein\xe4_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[t\xe4n\xe4\xe4n] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s p\xe4\xe4st\xe4",past:"%s sitten",s:D,ss:D,m:D,mm:D,h:D,hh:D,d:D,dd:D,M:D,MM:D,y:D,yy:D},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},1766:function(z,W,E){!function(x){"use strict";x.defineLocale("fil",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(P){return P},week:{dow:1,doy:4}})}(E(5439))},5867:function(z,W,E){!function(x){"use strict";x.defineLocale("fo",{months:"januar_februar_mars_apr\xedl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_m\xe1nadagur_t\xfdsdagur_mikudagur_h\xf3sdagur_fr\xedggjadagur_leygardagur".split("_"),weekdaysShort:"sun_m\xe1n_t\xfds_mik_h\xf3s_fr\xed_ley".split("_"),weekdaysMin:"su_m\xe1_t\xfd_mi_h\xf3_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[\xcd dag kl.] LT",nextDay:"[\xcd morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xcd gj\xe1r kl.] LT",lastWeek:"[s\xed\xf0stu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s s\xed\xf0ani",s:"f\xe1 sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein t\xedmi",hh:"%d t\xedmar",d:"ein dagur",dd:"%d dagar",M:"ein m\xe1na\xf0ur",MM:"%d m\xe1na\xf0ir",y:"eitt \xe1r",yy:"%d \xe1r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},6848:function(z,W,E){!function(x){"use strict";x.defineLocale("fr-ca",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(P,D){switch(D){default:case"M":case"Q":case"D":case"DDD":case"d":return P+(1===P?"er":"e");case"w":case"W":return P+(1===P?"re":"e")}}})}(E(5439))},7773:function(z,W,E){!function(x){"use strict";x.defineLocale("fr-ch",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(P,D){switch(D){default:case"M":case"Q":case"D":case"DDD":case"d":return P+(1===P?"er":"e");case"w":case"W":return P+(1===P?"re":"e")}},week:{dow:1,doy:4}})}(E(5439))},1636:function(z,W,E){!function(x){"use strict";var D=/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?|janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,H=[/^janv/i,/^f\xe9vr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^ao\xfbt/i,/^sept/i,/^oct/i,/^nov/i,/^d\xe9c/i];x.defineLocale("fr",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsRegex:D,monthsShortRegex:D,monthsStrictRegex:/^(janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,monthsShortStrictRegex:/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?)/i,monthsParse:H,longMonthsParse:H,shortMonthsParse:H,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(B,Y){switch(Y){case"D":return B+(1===B?"er":"");default:case"M":case"Q":case"DDD":case"d":return B+(1===B?"er":"e");case"w":case"W":return B+(1===B?"re":"e")}},week:{dow:1,doy:4}})}(E(5439))},4940:function(z,W,E){!function(x){"use strict";var n="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),P="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");x.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(H,I){return H?/-MMM-/.test(I)?P[H.month()]:n[H.month()]:n},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[\xf4fr\xfbne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien min\xfat",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(H){return H+(1===H||8===H||H>=20?"ste":"de")},week:{dow:1,doy:4}})}(E(5439))},1402:function(z,W,E){!function(x){"use strict";x.defineLocale("ga",{months:["Ean\xe1ir","Feabhra","M\xe1rta","Aibre\xe1n","Bealtaine","Meitheamh","I\xfail","L\xfanasa","Me\xe1n F\xf3mhair","Deireadh F\xf3mhair","Samhain","Nollaig"],monthsShort:["Ean","Feabh","M\xe1rt","Aib","Beal","Meith","I\xfail","L\xfan","M.F.","D.F.","Samh","Noll"],monthsParseExact:!0,weekdays:["D\xe9 Domhnaigh","D\xe9 Luain","D\xe9 M\xe1irt","D\xe9 C\xe9adaoin","D\xe9ardaoin","D\xe9 hAoine","D\xe9 Sathairn"],weekdaysShort:["Domh","Luan","M\xe1irt","C\xe9ad","D\xe9ar","Aoine","Sath"],weekdaysMin:["Do","Lu","M\xe1","C\xe9","D\xe9","A","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Am\xe1rach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inn\xe9 ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s \xf3 shin",s:"c\xfapla soicind",ss:"%d soicind",m:"n\xf3im\xe9ad",mm:"%d n\xf3im\xe9ad",h:"uair an chloig",hh:"%d uair an chloig",d:"l\xe1",dd:"%d l\xe1",M:"m\xed",MM:"%d m\xedonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(Y){return Y+(1===Y?"d":Y%10==2?"na":"mh")},week:{dow:1,doy:4}})}(E(5439))},6924:function(z,W,E){!function(x){"use strict";x.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am M\xe0rt","An Giblean","An C\xe8itean","An t-\xd2gmhios","An t-Iuchar","An L\xf9nastal","An t-Sultain","An D\xe0mhair","An t-Samhain","An D\xf9bhlachd"],monthsShort:["Faoi","Gear","M\xe0rt","Gibl","C\xe8it","\xd2gmh","Iuch","L\xf9n","Sult","D\xe0mh","Samh","D\xf9bh"],monthsParseExact:!0,weekdays:["Did\xf2mhnaich","Diluain","Dim\xe0irt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["D\xf2","Lu","M\xe0","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-m\xe0ireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-d\xe8 aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"m\xecos",MM:"%d m\xecosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(Y){return Y+(1===Y?"d":Y%10==2?"na":"mh")},week:{dow:1,doy:4}})}(E(5439))},6398:function(z,W,E){!function(x){"use strict";x.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xu\xf1o_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xu\xf1._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_m\xe9rcores_xoves_venres_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._m\xe9r._xov._ven._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_m\xe9_xo_ve_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextDay:function(){return"[ma\xf1\xe1 "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"\xe1s":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"\xe1":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"\xe1s":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(P){return 0===P.indexOf("un")?"n"+P:"en "+P},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(E(5439))},2457:function(z,W,E){!function(x){"use strict";function n(D,H,I,B){var Y={s:["\u0925\u094b\u0921\u092f\u093e \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940","\u0925\u094b\u0921\u0947 \u0938\u0945\u0915\u0902\u0921"],ss:[D+" \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940",D+" \u0938\u0945\u0915\u0902\u0921"],m:["\u090f\u0915\u093e \u092e\u093f\u0923\u091f\u093e\u0928","\u090f\u0915 \u092e\u093f\u0928\u0942\u091f"],mm:[D+" \u092e\u093f\u0923\u091f\u093e\u0902\u0928\u0940",D+" \u092e\u093f\u0923\u091f\u093e\u0902"],h:["\u090f\u0915\u093e \u0935\u0930\u093e\u0928","\u090f\u0915 \u0935\u0930"],hh:[D+" \u0935\u0930\u093e\u0902\u0928\u0940",D+" \u0935\u0930\u093e\u0902"],d:["\u090f\u0915\u093e \u0926\u093f\u0938\u093e\u0928","\u090f\u0915 \u0926\u0940\u0938"],dd:[D+" \u0926\u093f\u0938\u093e\u0902\u0928\u0940",D+" \u0926\u0940\u0938"],M:["\u090f\u0915\u093e \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928","\u090f\u0915 \u092e\u094d\u0939\u092f\u0928\u094b"],MM:[D+" \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928\u0940",D+" \u092e\u094d\u0939\u092f\u0928\u0947"],y:["\u090f\u0915\u093e \u0935\u0930\u094d\u0938\u093e\u0928","\u090f\u0915 \u0935\u0930\u094d\u0938"],yy:[D+" \u0935\u0930\u094d\u0938\u093e\u0902\u0928\u0940",D+" \u0935\u0930\u094d\u0938\u093e\u0902"]};return B?Y[I][0]:Y[I][1]}x.defineLocale("gom-deva",{months:{standalone:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u092f_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),format:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092e\u093e\u0930\u094d\u091a\u093e\u091a\u094d\u092f\u093e_\u090f\u092a\u094d\u0930\u0940\u0932\u093e\u091a\u094d\u092f\u093e_\u092e\u0947\u092f\u093e\u091a\u094d\u092f\u093e_\u091c\u0942\u0928\u093e\u091a\u094d\u092f\u093e_\u091c\u0941\u0932\u092f\u093e\u091a\u094d\u092f\u093e_\u0911\u0917\u0938\u094d\u091f\u093e\u091a\u094d\u092f\u093e_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0911\u0915\u094d\u091f\u094b\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0921\u093f\u0938\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940._\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u092f\u0924\u093e\u0930_\u0938\u094b\u092e\u093e\u0930_\u092e\u0902\u0917\u0933\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u092c\u093f\u0930\u0947\u0938\u094d\u0924\u093e\u0930_\u0938\u0941\u0915\u094d\u0930\u093e\u0930_\u0936\u0947\u0928\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0906\u092f\u0924._\u0938\u094b\u092e._\u092e\u0902\u0917\u0933._\u092c\u0941\u0927._\u092c\u094d\u0930\u0947\u0938\u094d\u0924._\u0938\u0941\u0915\u094d\u0930._\u0936\u0947\u0928.".split("_"),weekdaysMin:"\u0906_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u092c\u094d\u0930\u0947_\u0938\u0941_\u0936\u0947".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LTS:"A h:mm:ss [\u0935\u093e\u091c\u0924\u093e\u0902]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",llll:"ddd, D MMM YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]"},calendar:{sameDay:"[\u0906\u092f\u091c] LT",nextDay:"[\u092b\u093e\u0932\u094d\u092f\u093e\u0902] LT",nextWeek:"[\u092b\u0941\u0921\u0932\u094b] dddd[,] LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092b\u093e\u091f\u0932\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s \u0906\u0926\u0940\u0902",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}(\u0935\u0947\u0930)/,ordinal:function(D,H){return"D"===H?D+"\u0935\u0947\u0930":D},week:{dow:0,doy:3},meridiemParse:/\u0930\u093e\u0924\u0940|\u0938\u0915\u093e\u0933\u0940\u0902|\u0926\u0928\u092a\u093e\u0930\u093e\u0902|\u0938\u093e\u0902\u091c\u0947/,meridiemHour:function(D,H){return 12===D&&(D=0),"\u0930\u093e\u0924\u0940"===H?D<4?D:D+12:"\u0938\u0915\u093e\u0933\u0940\u0902"===H?D:"\u0926\u0928\u092a\u093e\u0930\u093e\u0902"===H?D>12?D:D+12:"\u0938\u093e\u0902\u091c\u0947"===H?D+12:void 0},meridiem:function(D,H,I){return D<4?"\u0930\u093e\u0924\u0940":D<12?"\u0938\u0915\u093e\u0933\u0940\u0902":D<16?"\u0926\u0928\u092a\u093e\u0930\u093e\u0902":D<20?"\u0938\u093e\u0902\u091c\u0947":"\u0930\u093e\u0924\u0940"}})}(E(5439))},2545:function(z,W,E){!function(x){"use strict";function n(D,H,I,B){var Y={s:["thoddea sekondamni","thodde sekond"],ss:[D+" sekondamni",D+" sekond"],m:["eka mintan","ek minut"],mm:[D+" mintamni",D+" mintam"],h:["eka voran","ek vor"],hh:[D+" voramni",D+" voram"],d:["eka disan","ek dis"],dd:[D+" disamni",D+" dis"],M:["eka mhoinean","ek mhoino"],MM:[D+" mhoineamni",D+" mhoine"],y:["eka vorsan","ek voros"],yy:[D+" vorsamni",D+" vorsam"]};return B?Y[I][0]:Y[I][1]}x.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(D,H){return"D"===H?D+"er":D},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(D,H){return 12===D&&(D=0),"rati"===H?D<4?D:D+12:"sokallim"===H?D:"donparam"===H?D>12?D:D+12:"sanje"===H?D+12:void 0},meridiem:function(D,H,I){return D<4?"rati":D<12?"sokallim":D<16?"donparam":D<20?"sanje":"rati"}})}(E(5439))},2641:function(z,W,E){!function(x){"use strict";var n={1:"\u0ae7",2:"\u0ae8",3:"\u0ae9",4:"\u0aea",5:"\u0aeb",6:"\u0aec",7:"\u0aed",8:"\u0aee",9:"\u0aef",0:"\u0ae6"},P={"\u0ae7":"1","\u0ae8":"2","\u0ae9":"3","\u0aea":"4","\u0aeb":"5","\u0aec":"6","\u0aed":"7","\u0aee":"8","\u0aef":"9","\u0ae6":"0"};x.defineLocale("gu",{months:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1\u0a86\u0ab0\u0ac0_\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1\u0a86\u0ab0\u0ac0_\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf\u0ab2_\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe\u0a88_\u0a91\u0a97\u0ab8\u0acd\u0a9f_\u0ab8\u0aaa\u0acd\u0a9f\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0a91\u0a95\u0acd\u0a9f\u0acd\u0aac\u0ab0_\u0aa8\u0ab5\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0aa1\u0abf\u0ab8\u0ac7\u0aae\u0acd\u0aac\u0ab0".split("_"),monthsShort:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1._\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1._\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf._\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe._\u0a91\u0a97._\u0ab8\u0aaa\u0acd\u0a9f\u0ac7._\u0a91\u0a95\u0acd\u0a9f\u0acd._\u0aa8\u0ab5\u0ac7._\u0aa1\u0abf\u0ab8\u0ac7.".split("_"),monthsParseExact:!0,weekdays:"\u0ab0\u0ab5\u0abf\u0ab5\u0abe\u0ab0_\u0ab8\u0acb\u0aae\u0ab5\u0abe\u0ab0_\u0aae\u0a82\u0a97\u0ab3\u0ab5\u0abe\u0ab0_\u0aac\u0ac1\u0aa7\u0acd\u0ab5\u0abe\u0ab0_\u0a97\u0ac1\u0ab0\u0ac1\u0ab5\u0abe\u0ab0_\u0ab6\u0ac1\u0a95\u0acd\u0ab0\u0ab5\u0abe\u0ab0_\u0ab6\u0aa8\u0abf\u0ab5\u0abe\u0ab0".split("_"),weekdaysShort:"\u0ab0\u0ab5\u0abf_\u0ab8\u0acb\u0aae_\u0aae\u0a82\u0a97\u0ab3_\u0aac\u0ac1\u0aa7\u0acd_\u0a97\u0ac1\u0ab0\u0ac1_\u0ab6\u0ac1\u0a95\u0acd\u0ab0_\u0ab6\u0aa8\u0abf".split("_"),weekdaysMin:"\u0ab0_\u0ab8\u0acb_\u0aae\u0a82_\u0aac\u0ac1_\u0a97\u0ac1_\u0ab6\u0ac1_\u0ab6".split("_"),longDateFormat:{LT:"A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LTS:"A h:mm:ss \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LLLL:"dddd, D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7"},calendar:{sameDay:"[\u0a86\u0a9c] LT",nextDay:"[\u0a95\u0abe\u0ab2\u0ac7] LT",nextWeek:"dddd, LT",lastDay:"[\u0a97\u0a87\u0a95\u0abe\u0ab2\u0ac7] LT",lastWeek:"[\u0aaa\u0abe\u0a9b\u0ab2\u0abe] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0aae\u0abe",past:"%s \u0aaa\u0ab9\u0ac7\u0ab2\u0abe",s:"\u0a85\u0aae\u0ac1\u0a95 \u0aaa\u0ab3\u0acb",ss:"%d \u0ab8\u0ac7\u0a95\u0a82\u0aa1",m:"\u0a8f\u0a95 \u0aae\u0abf\u0aa8\u0abf\u0a9f",mm:"%d \u0aae\u0abf\u0aa8\u0abf\u0a9f",h:"\u0a8f\u0a95 \u0a95\u0ab2\u0abe\u0a95",hh:"%d \u0a95\u0ab2\u0abe\u0a95",d:"\u0a8f\u0a95 \u0aa6\u0abf\u0ab5\u0ab8",dd:"%d \u0aa6\u0abf\u0ab5\u0ab8",M:"\u0a8f\u0a95 \u0aae\u0ab9\u0abf\u0aa8\u0acb",MM:"%d \u0aae\u0ab9\u0abf\u0aa8\u0acb",y:"\u0a8f\u0a95 \u0ab5\u0ab0\u0acd\u0ab7",yy:"%d \u0ab5\u0ab0\u0acd\u0ab7"},preparse:function(H){return H.replace(/[\u0ae7\u0ae8\u0ae9\u0aea\u0aeb\u0aec\u0aed\u0aee\u0aef\u0ae6]/g,function(I){return P[I]})},postformat:function(H){return H.replace(/\d/g,function(I){return n[I]})},meridiemParse:/\u0ab0\u0abe\u0aa4|\u0aac\u0aaa\u0acb\u0ab0|\u0ab8\u0ab5\u0abe\u0ab0|\u0ab8\u0abe\u0a82\u0a9c/,meridiemHour:function(H,I){return 12===H&&(H=0),"\u0ab0\u0abe\u0aa4"===I?H<4?H:H+12:"\u0ab8\u0ab5\u0abe\u0ab0"===I?H:"\u0aac\u0aaa\u0acb\u0ab0"===I?H>=10?H:H+12:"\u0ab8\u0abe\u0a82\u0a9c"===I?H+12:void 0},meridiem:function(H,I,B){return H<4?"\u0ab0\u0abe\u0aa4":H<10?"\u0ab8\u0ab5\u0abe\u0ab0":H<17?"\u0aac\u0aaa\u0acb\u0ab0":H<20?"\u0ab8\u0abe\u0a82\u0a9c":"\u0ab0\u0abe\u0aa4"},week:{dow:0,doy:6}})}(E(5439))},7536:function(z,W,E){!function(x){"use strict";x.defineLocale("he",{months:"\u05d9\u05e0\u05d5\u05d0\u05e8_\u05e4\u05d1\u05e8\u05d5\u05d0\u05e8_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05d9\u05dc_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05d5\u05e1\u05d8_\u05e1\u05e4\u05d8\u05de\u05d1\u05e8_\u05d0\u05d5\u05e7\u05d8\u05d5\u05d1\u05e8_\u05e0\u05d5\u05d1\u05de\u05d1\u05e8_\u05d3\u05e6\u05de\u05d1\u05e8".split("_"),monthsShort:"\u05d9\u05e0\u05d5\u05f3_\u05e4\u05d1\u05e8\u05f3_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05f3_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05f3_\u05e1\u05e4\u05d8\u05f3_\u05d0\u05d5\u05e7\u05f3_\u05e0\u05d5\u05d1\u05f3_\u05d3\u05e6\u05de\u05f3".split("_"),weekdays:"\u05e8\u05d0\u05e9\u05d5\u05df_\u05e9\u05e0\u05d9_\u05e9\u05dc\u05d9\u05e9\u05d9_\u05e8\u05d1\u05d9\u05e2\u05d9_\u05d7\u05de\u05d9\u05e9\u05d9_\u05e9\u05d9\u05e9\u05d9_\u05e9\u05d1\u05ea".split("_"),weekdaysShort:"\u05d0\u05f3_\u05d1\u05f3_\u05d2\u05f3_\u05d3\u05f3_\u05d4\u05f3_\u05d5\u05f3_\u05e9\u05f3".split("_"),weekdaysMin:"\u05d0_\u05d1_\u05d2_\u05d3_\u05d4_\u05d5_\u05e9".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [\u05d1]MMMM YYYY",LLL:"D [\u05d1]MMMM YYYY HH:mm",LLLL:"dddd, D [\u05d1]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[\u05d4\u05d9\u05d5\u05dd \u05d1\u05be]LT",nextDay:"[\u05de\u05d7\u05e8 \u05d1\u05be]LT",nextWeek:"dddd [\u05d1\u05e9\u05e2\u05d4] LT",lastDay:"[\u05d0\u05ea\u05de\u05d5\u05dc \u05d1\u05be]LT",lastWeek:"[\u05d1\u05d9\u05d5\u05dd] dddd [\u05d4\u05d0\u05d7\u05e8\u05d5\u05df \u05d1\u05e9\u05e2\u05d4] LT",sameElse:"L"},relativeTime:{future:"\u05d1\u05e2\u05d5\u05d3 %s",past:"\u05dc\u05e4\u05e0\u05d9 %s",s:"\u05de\u05e1\u05e4\u05e8 \u05e9\u05e0\u05d9\u05d5\u05ea",ss:"%d \u05e9\u05e0\u05d9\u05d5\u05ea",m:"\u05d3\u05e7\u05d4",mm:"%d \u05d3\u05e7\u05d5\u05ea",h:"\u05e9\u05e2\u05d4",hh:function(P){return 2===P?"\u05e9\u05e2\u05ea\u05d9\u05d9\u05dd":P+" \u05e9\u05e2\u05d5\u05ea"},d:"\u05d9\u05d5\u05dd",dd:function(P){return 2===P?"\u05d9\u05d5\u05de\u05d9\u05d9\u05dd":P+" \u05d9\u05de\u05d9\u05dd"},M:"\u05d7\u05d5\u05d3\u05e9",MM:function(P){return 2===P?"\u05d7\u05d5\u05d3\u05e9\u05d9\u05d9\u05dd":P+" \u05d7\u05d5\u05d3\u05e9\u05d9\u05dd"},y:"\u05e9\u05e0\u05d4",yy:function(P){return 2===P?"\u05e9\u05e0\u05ea\u05d9\u05d9\u05dd":P%10==0&&10!==P?P+" \u05e9\u05e0\u05d4":P+" \u05e9\u05e0\u05d9\u05dd"}},meridiemParse:/\u05d0\u05d7\u05d4"\u05e6|\u05dc\u05e4\u05e0\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8|\u05d1\u05d1\u05d5\u05e7\u05e8|\u05d1\u05e2\u05e8\u05d1/i,isPM:function(P){return/^(\u05d0\u05d7\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05d1\u05e2\u05e8\u05d1)$/.test(P)},meridiem:function(P,D,H){return P<5?"\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8":P<10?"\u05d1\u05d1\u05d5\u05e7\u05e8":P<12?H?'\u05dc\u05e4\u05e0\u05d4"\u05e6':"\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":P<18?H?'\u05d0\u05d7\u05d4"\u05e6':"\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":"\u05d1\u05e2\u05e8\u05d1"}})}(E(5439))},6335:function(z,W,E){!function(x){"use strict";var n={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},P={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"},D=[/^\u091c\u0928/i,/^\u092b\u093c\u0930|\u092b\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924\u0902|\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935|\u0928\u0935\u0902/i,/^\u0926\u093f\u0938\u0902|\u0926\u093f\u0938/i];x.defineLocale("hi",{months:{format:"\u091c\u0928\u0935\u0930\u0940_\u092b\u093c\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u092e\u094d\u092c\u0930_\u0926\u093f\u0938\u092e\u094d\u092c\u0930".split("_"),standalone:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u0902\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u0902\u092c\u0930_\u0926\u093f\u0938\u0902\u092c\u0930".split("_")},monthsShort:"\u091c\u0928._\u092b\u093c\u0930._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948._\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0905\u0917._\u0938\u093f\u0924._\u0905\u0915\u094d\u091f\u0942._\u0928\u0935._\u0926\u093f\u0938.".split("_"),weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0932\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0932_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u092c\u091c\u0947",LTS:"A h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A h:mm \u092c\u091c\u0947"},monthsParse:D,longMonthsParse:D,shortMonthsParse:[/^\u091c\u0928/i,/^\u092b\u093c\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935/i,/^\u0926\u093f\u0938/i],monthsRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsShortRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsStrictRegex:/^(\u091c\u0928\u0935\u0930\u0940?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908?|\u0905\u0917\u0938\u094d\u0924?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924?\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930?)/i,monthsShortStrictRegex:/^(\u091c\u0928\.?|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\.?|\u0905\u0917\.?|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\.?|\u0926\u093f\u0938\.?)/i,calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0915\u0932] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u0932] LT",lastWeek:"[\u092a\u093f\u091b\u0932\u0947] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u092e\u0947\u0902",past:"%s \u092a\u0939\u0932\u0947",s:"\u0915\u0941\u091b \u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0902\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u091f",mm:"%d \u092e\u093f\u0928\u091f",h:"\u090f\u0915 \u0918\u0902\u091f\u093e",hh:"%d \u0918\u0902\u091f\u0947",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u0940\u0928\u0947",MM:"%d \u092e\u0939\u0940\u0928\u0947",y:"\u090f\u0915 \u0935\u0930\u094d\u0937",yy:"%d \u0935\u0930\u094d\u0937"},preparse:function(B){return B.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(Y){return P[Y]})},postformat:function(B){return B.replace(/\d/g,function(Y){return n[Y]})},meridiemParse:/\u0930\u093e\u0924|\u0938\u0941\u092c\u0939|\u0926\u094b\u092a\u0939\u0930|\u0936\u093e\u092e/,meridiemHour:function(B,Y){return 12===B&&(B=0),"\u0930\u093e\u0924"===Y?B<4?B:B+12:"\u0938\u0941\u092c\u0939"===Y?B:"\u0926\u094b\u092a\u0939\u0930"===Y?B>=10?B:B+12:"\u0936\u093e\u092e"===Y?B+12:void 0},meridiem:function(B,Y,G){return B<4?"\u0930\u093e\u0924":B<10?"\u0938\u0941\u092c\u0939":B<17?"\u0926\u094b\u092a\u0939\u0930":B<20?"\u0936\u093e\u092e":"\u0930\u093e\u0924"},week:{dow:0,doy:6}})}(E(5439))},7458:function(z,W,E){!function(x){"use strict";function n(D,H,I){var B=D+" ";switch(I){case"ss":return B+(1===D?"sekunda":2===D||3===D||4===D?"sekunde":"sekundi");case"m":return H?"jedna minuta":"jedne minute";case"mm":return B+(1===D?"minuta":2===D||3===D||4===D?"minute":"minuta");case"h":return H?"jedan sat":"jednog sata";case"hh":return B+(1===D?"sat":2===D||3===D||4===D?"sata":"sati");case"dd":return B+(1===D?"dan":"dana");case"MM":return B+(1===D?"mjesec":2===D||3===D||4===D?"mjeseca":"mjeseci");case"yy":return B+(1===D?"godina":2===D||3===D||4===D?"godine":"godina")}}x.defineLocale("hr",{months:{format:"sije\u010dnja_velja\u010de_o\u017eujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"sije\u010danj_velja\u010da_o\u017eujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._o\u017eu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:return"[pro\u0161lu] [nedjelju] [u] LT";case 3:return"[pro\u0161lu] [srijedu] [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:n,m:n,mm:n,h:n,hh:n,d:"dan",dd:n,M:"mjesec",MM:n,y:"godinu",yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(E(5439))},6540:function(z,W,E){!function(x){"use strict";var n="vas\xe1rnap h\xe9tf\u0151n kedden szerd\xe1n cs\xfct\xf6rt\xf6k\xf6n p\xe9nteken szombaton".split(" ");function P(I,B,Y,G){var ee=I;switch(Y){case"s":return G||B?"n\xe9h\xe1ny m\xe1sodperc":"n\xe9h\xe1ny m\xe1sodperce";case"ss":return ee+(G||B)?" m\xe1sodperc":" m\xe1sodperce";case"m":return"egy"+(G||B?" perc":" perce");case"mm":return ee+(G||B?" perc":" perce");case"h":return"egy"+(G||B?" \xf3ra":" \xf3r\xe1ja");case"hh":return ee+(G||B?" \xf3ra":" \xf3r\xe1ja");case"d":return"egy"+(G||B?" nap":" napja");case"dd":return ee+(G||B?" nap":" napja");case"M":return"egy"+(G||B?" h\xf3nap":" h\xf3napja");case"MM":return ee+(G||B?" h\xf3nap":" h\xf3napja");case"y":return"egy"+(G||B?" \xe9v":" \xe9ve");case"yy":return ee+(G||B?" \xe9v":" \xe9ve")}return""}function D(I){return(I?"":"[m\xfalt] ")+"["+n[this.day()]+"] LT[-kor]"}x.defineLocale("hu",{months:"janu\xe1r_febru\xe1r_m\xe1rcius_\xe1prilis_m\xe1jus_j\xfanius_j\xfalius_augusztus_szeptember_okt\xf3ber_november_december".split("_"),monthsShort:"jan._feb._m\xe1rc._\xe1pr._m\xe1j._j\xfan._j\xfal._aug._szept._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"vas\xe1rnap_h\xe9tf\u0151_kedd_szerda_cs\xfct\xf6rt\xf6k_p\xe9ntek_szombat".split("_"),weekdaysShort:"vas_h\xe9t_kedd_sze_cs\xfct_p\xe9n_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(I){return"u"===I.charAt(1).toLowerCase()},meridiem:function(I,B,Y){return I<12?!0===Y?"de":"DE":!0===Y?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return D.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return D.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s m\xfalva",past:"%s",s:P,ss:P,m:P,mm:P,h:P,hh:P,d:P,dd:P,M:P,MM:P,y:P,yy:P},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},5283:function(z,W,E){!function(x){"use strict";x.defineLocale("hy-am",{months:{format:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580\u056b_\u0583\u0565\u057f\u0580\u057e\u0561\u0580\u056b_\u0574\u0561\u0580\u057f\u056b_\u0561\u057a\u0580\u056b\u056c\u056b_\u0574\u0561\u0575\u056b\u057d\u056b_\u0570\u0578\u0582\u0576\u056b\u057d\u056b_\u0570\u0578\u0582\u056c\u056b\u057d\u056b_\u0585\u0563\u0578\u057d\u057f\u0578\u057d\u056b_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580\u056b_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b".split("_"),standalone:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580_\u0583\u0565\u057f\u0580\u057e\u0561\u0580_\u0574\u0561\u0580\u057f_\u0561\u057a\u0580\u056b\u056c_\u0574\u0561\u0575\u056b\u057d_\u0570\u0578\u0582\u0576\u056b\u057d_\u0570\u0578\u0582\u056c\u056b\u057d_\u0585\u0563\u0578\u057d\u057f\u0578\u057d_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580".split("_")},monthsShort:"\u0570\u0576\u057e_\u0583\u057f\u0580_\u0574\u0580\u057f_\u0561\u057a\u0580_\u0574\u0575\u057d_\u0570\u0576\u057d_\u0570\u056c\u057d_\u0585\u0563\u057d_\u057d\u057a\u057f_\u0570\u056f\u057f_\u0576\u0574\u0562_\u0564\u056f\u057f".split("_"),weekdays:"\u056f\u056b\u0580\u0561\u056f\u056b_\u0565\u0580\u056f\u0578\u0582\u0577\u0561\u0562\u0569\u056b_\u0565\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0579\u0578\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0570\u056b\u0576\u0563\u0577\u0561\u0562\u0569\u056b_\u0578\u0582\u0580\u0562\u0561\u0569_\u0577\u0561\u0562\u0561\u0569".split("_"),weekdaysShort:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),weekdaysMin:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0569.",LLL:"D MMMM YYYY \u0569., HH:mm",LLLL:"dddd, D MMMM YYYY \u0569., HH:mm"},calendar:{sameDay:"[\u0561\u0575\u057d\u0585\u0580] LT",nextDay:"[\u057e\u0561\u0572\u0568] LT",lastDay:"[\u0565\u0580\u0565\u056f] LT",nextWeek:function(){return"dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},lastWeek:function(){return"[\u0561\u0576\u0581\u0561\u056e] dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},sameElse:"L"},relativeTime:{future:"%s \u0570\u0565\u057f\u0578",past:"%s \u0561\u057c\u0561\u057b",s:"\u0574\u056b \u0584\u0561\u0576\u056b \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",ss:"%d \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",m:"\u0580\u0578\u057a\u0565",mm:"%d \u0580\u0578\u057a\u0565",h:"\u056a\u0561\u0574",hh:"%d \u056a\u0561\u0574",d:"\u0585\u0580",dd:"%d \u0585\u0580",M:"\u0561\u0574\u056b\u057d",MM:"%d \u0561\u0574\u056b\u057d",y:"\u057f\u0561\u0580\u056b",yy:"%d \u057f\u0561\u0580\u056b"},meridiemParse:/\u0563\u056b\u0577\u0565\u0580\u057e\u0561|\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561|\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576/,isPM:function(P){return/^(\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576)$/.test(P)},meridiem:function(P){return P<4?"\u0563\u056b\u0577\u0565\u0580\u057e\u0561":P<12?"\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561":P<17?"\u0581\u0565\u0580\u0565\u056f\u057e\u0561":"\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(\u056b\u0576|\u0580\u0564)/,ordinal:function(P,D){switch(D){case"DDD":case"w":case"W":case"DDDo":return 1===P?P+"-\u056b\u0576":P+"-\u0580\u0564";default:return P}},week:{dow:1,doy:7}})}(E(5439))},8780:function(z,W,E){!function(x){"use strict";x.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(P,D){return 12===P&&(P=0),"pagi"===D?P:"siang"===D?P>=11?P:P+12:"sore"===D||"malam"===D?P+12:void 0},meridiem:function(P,D,H){return P<11?"pagi":P<15?"siang":P<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}})}(E(5439))},4205:function(z,W,E){!function(x){"use strict";function n(H){return H%100==11||H%10!=1}function P(H,I,B,Y){var G=H+" ";switch(B){case"s":return I||Y?"nokkrar sek\xfandur":"nokkrum sek\xfandum";case"ss":return n(H)?G+(I||Y?"sek\xfandur":"sek\xfandum"):G+"sek\xfanda";case"m":return I?"m\xedn\xfata":"m\xedn\xfatu";case"mm":return n(H)?G+(I||Y?"m\xedn\xfatur":"m\xedn\xfatum"):I?G+"m\xedn\xfata":G+"m\xedn\xfatu";case"hh":return n(H)?G+(I||Y?"klukkustundir":"klukkustundum"):G+"klukkustund";case"d":return I?"dagur":Y?"dag":"degi";case"dd":return n(H)?I?G+"dagar":G+(Y?"daga":"d\xf6gum"):I?G+"dagur":G+(Y?"dag":"degi");case"M":return I?"m\xe1nu\xf0ur":Y?"m\xe1nu\xf0":"m\xe1nu\xf0i";case"MM":return n(H)?I?G+"m\xe1nu\xf0ir":G+(Y?"m\xe1nu\xf0i":"m\xe1nu\xf0um"):I?G+"m\xe1nu\xf0ur":G+(Y?"m\xe1nu\xf0":"m\xe1nu\xf0i");case"y":return I||Y?"\xe1r":"\xe1ri";case"yy":return n(H)?G+(I||Y?"\xe1r":"\xe1rum"):G+(I||Y?"\xe1r":"\xe1ri")}}x.defineLocale("is",{months:"jan\xfaar_febr\xfaar_mars_apr\xedl_ma\xed_j\xfan\xed_j\xfal\xed_\xe1g\xfast_september_okt\xf3ber_n\xf3vember_desember".split("_"),monthsShort:"jan_feb_mar_apr_ma\xed_j\xfan_j\xfal_\xe1g\xfa_sep_okt_n\xf3v_des".split("_"),weekdays:"sunnudagur_m\xe1nudagur_\xferi\xf0judagur_mi\xf0vikudagur_fimmtudagur_f\xf6studagur_laugardagur".split("_"),weekdaysShort:"sun_m\xe1n_\xferi_mi\xf0_fim_f\xf6s_lau".split("_"),weekdaysMin:"Su_M\xe1_\xder_Mi_Fi_F\xf6_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[\xed dag kl.] LT",nextDay:"[\xe1 morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xed g\xe6r kl.] LT",lastWeek:"[s\xed\xf0asta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s s\xed\xf0an",s:P,ss:P,m:P,mm:P,h:"klukkustund",hh:P,d:P,dd:P,M:P,MM:P,y:P,yy:P},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},9985:function(z,W,E){!function(x){"use strict";x.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){return 0===this.day()?"[la scorsa] dddd [alle] LT":"[lo scorso] dddd [alle] LT"},sameElse:"L"},relativeTime:{future:function(P){return(/^[0-9].+$/.test(P)?"tra":"in")+" "+P},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(E(5439))},4211:function(z,W,E){!function(x){"use strict";x.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){return 0===this.day()?"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT":"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(E(5439))},1003:function(z,W,E){!function(x){"use strict";x.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"\u4ee4\u548c",narrow:"\u32ff",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"\u5e73\u6210",narrow:"\u337b",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"\u662d\u548c",narrow:"\u337c",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"\u5927\u6b63",narrow:"\u337d",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"\u660e\u6cbb",narrow:"\u337e",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"\u897f\u66a6",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"\u7d00\u5143\u524d",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(\u5143|\d+)\u5e74/,eraYearOrdinalParse:function(P,D){return"\u5143"===D[1]?1:parseInt(D[1]||P,10)},months:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u65e5\u66dc\u65e5_\u6708\u66dc\u65e5_\u706b\u66dc\u65e5_\u6c34\u66dc\u65e5_\u6728\u66dc\u65e5_\u91d1\u66dc\u65e5_\u571f\u66dc\u65e5".split("_"),weekdaysShort:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),weekdaysMin:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5(ddd) HH:mm"},meridiemParse:/\u5348\u524d|\u5348\u5f8c/i,isPM:function(P){return"\u5348\u5f8c"===P},meridiem:function(P,D,H){return P<12?"\u5348\u524d":"\u5348\u5f8c"},calendar:{sameDay:"[\u4eca\u65e5] LT",nextDay:"[\u660e\u65e5] LT",nextWeek:function(P){return P.week()!==this.week()?"[\u6765\u9031]dddd LT":"dddd LT"},lastDay:"[\u6628\u65e5] LT",lastWeek:function(P){return this.week()!==P.week()?"[\u5148\u9031]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}\u65e5/,ordinal:function(P,D){switch(D){case"y":return 1===P?"\u5143\u5e74":P+"\u5e74";case"d":case"D":case"DDD":return P+"\u65e5";default:return P}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u6570\u79d2",ss:"%d\u79d2",m:"1\u5206",mm:"%d\u5206",h:"1\u6642\u9593",hh:"%d\u6642\u9593",d:"1\u65e5",dd:"%d\u65e5",M:"1\u30f6\u6708",MM:"%d\u30f6\u6708",y:"1\u5e74",yy:"%d\u5e74"}})}(E(5439))},420:function(z,W,E){!function(x){"use strict";x.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(P,D){return 12===P&&(P=0),"enjing"===D?P:"siyang"===D?P>=11?P:P+12:"sonten"===D||"ndalu"===D?P+12:void 0},meridiem:function(P,D,H){return P<11?"enjing":P<15?"siyang":P<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(E(5439))},851:function(z,W,E){!function(x){"use strict";x.defineLocale("ka",{months:"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10d8_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10d8_\u10db\u10d0\u10e0\u10e2\u10d8_\u10d0\u10de\u10e0\u10d8\u10da\u10d8_\u10db\u10d0\u10d8\u10e1\u10d8_\u10d8\u10d5\u10dc\u10d8\u10e1\u10d8_\u10d8\u10d5\u10da\u10d8\u10e1\u10d8_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10dd_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10d8_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10d8".split("_"),monthsShort:"\u10d8\u10d0\u10dc_\u10d7\u10d4\u10d1_\u10db\u10d0\u10e0_\u10d0\u10de\u10e0_\u10db\u10d0\u10d8_\u10d8\u10d5\u10dc_\u10d8\u10d5\u10da_\u10d0\u10d2\u10d5_\u10e1\u10d4\u10e5_\u10dd\u10e5\u10e2_\u10dc\u10dd\u10d4_\u10d3\u10d4\u10d9".split("_"),weekdays:{standalone:"\u10d9\u10d5\u10d8\u10e0\u10d0_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10d8_\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8".split("_"),format:"\u10d9\u10d5\u10d8\u10e0\u10d0\u10e1_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10e1_\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1".split("_"),isFormat:/(\u10ec\u10d8\u10dc\u10d0|\u10e8\u10d4\u10db\u10d3\u10d4\u10d2)/},weekdaysShort:"\u10d9\u10d5\u10d8_\u10dd\u10e0\u10e8_\u10e1\u10d0\u10db_\u10dd\u10d7\u10ee_\u10ee\u10e3\u10d7_\u10de\u10d0\u10e0_\u10e8\u10d0\u10d1".split("_"),weekdaysMin:"\u10d9\u10d5_\u10dd\u10e0_\u10e1\u10d0_\u10dd\u10d7_\u10ee\u10e3_\u10de\u10d0_\u10e8\u10d0".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u10d3\u10e6\u10d4\u10e1] LT[-\u10d6\u10d4]",nextDay:"[\u10ee\u10d5\u10d0\u10da] LT[-\u10d6\u10d4]",lastDay:"[\u10d2\u10e3\u10e8\u10d8\u10dc] LT[-\u10d6\u10d4]",nextWeek:"[\u10e8\u10d4\u10db\u10d3\u10d4\u10d2] dddd LT[-\u10d6\u10d4]",lastWeek:"[\u10ec\u10d8\u10dc\u10d0] dddd LT-\u10d6\u10d4",sameElse:"L"},relativeTime:{future:function(P){return P.replace(/(\u10ec\u10d0\u10db|\u10ec\u10e3\u10d7|\u10e1\u10d0\u10d0\u10d7|\u10ec\u10d4\u10da|\u10d3\u10e6|\u10d7\u10d5)(\u10d8|\u10d4)/,function(D,H,I){return"\u10d8"===I?H+"\u10e8\u10d8":H+I+"\u10e8\u10d8"})},past:function(P){return/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10d3\u10e6\u10d4|\u10d7\u10d5\u10d4)/.test(P)?P.replace(/(\u10d8|\u10d4)$/,"\u10d8\u10e1 \u10ec\u10d8\u10dc"):/\u10ec\u10d4\u10da\u10d8/.test(P)?P.replace(/\u10ec\u10d4\u10da\u10d8$/,"\u10ec\u10da\u10d8\u10e1 \u10ec\u10d8\u10dc"):P},s:"\u10e0\u10d0\u10db\u10d3\u10d4\u10dc\u10d8\u10db\u10d4 \u10ec\u10d0\u10db\u10d8",ss:"%d \u10ec\u10d0\u10db\u10d8",m:"\u10ec\u10e3\u10d7\u10d8",mm:"%d \u10ec\u10e3\u10d7\u10d8",h:"\u10e1\u10d0\u10d0\u10d7\u10d8",hh:"%d \u10e1\u10d0\u10d0\u10d7\u10d8",d:"\u10d3\u10e6\u10d4",dd:"%d \u10d3\u10e6\u10d4",M:"\u10d7\u10d5\u10d4",MM:"%d \u10d7\u10d5\u10d4",y:"\u10ec\u10d4\u10da\u10d8",yy:"%d \u10ec\u10d4\u10da\u10d8"},dayOfMonthOrdinalParse:/0|1-\u10da\u10d8|\u10db\u10d4-\d{1,2}|\d{1,2}-\u10d4/,ordinal:function(P){return 0===P?P:1===P?P+"-\u10da\u10d8":P<20||P<=100&&P%20==0||P%100==0?"\u10db\u10d4-"+P:P+"-\u10d4"},week:{dow:1,doy:7}})}(E(5439))},6074:function(z,W,E){!function(x){"use strict";var n={0:"-\u0448\u0456",1:"-\u0448\u0456",2:"-\u0448\u0456",3:"-\u0448\u0456",4:"-\u0448\u0456",5:"-\u0448\u0456",6:"-\u0448\u044b",7:"-\u0448\u0456",8:"-\u0448\u0456",9:"-\u0448\u044b",10:"-\u0448\u044b",20:"-\u0448\u044b",30:"-\u0448\u044b",40:"-\u0448\u044b",50:"-\u0448\u0456",60:"-\u0448\u044b",70:"-\u0448\u0456",80:"-\u0448\u0456",90:"-\u0448\u044b",100:"-\u0448\u0456"};x.defineLocale("kk",{months:"\u049b\u0430\u04a3\u0442\u0430\u0440_\u0430\u049b\u043f\u0430\u043d_\u043d\u0430\u0443\u0440\u044b\u0437_\u0441\u04d9\u0443\u0456\u0440_\u043c\u0430\u043c\u044b\u0440_\u043c\u0430\u0443\u0441\u044b\u043c_\u0448\u0456\u043b\u0434\u0435_\u0442\u0430\u043c\u044b\u0437_\u049b\u044b\u0440\u043a\u04af\u0439\u0435\u043a_\u049b\u0430\u0437\u0430\u043d_\u049b\u0430\u0440\u0430\u0448\u0430_\u0436\u0435\u043b\u0442\u043e\u049b\u0441\u0430\u043d".split("_"),monthsShort:"\u049b\u0430\u04a3_\u0430\u049b\u043f_\u043d\u0430\u0443_\u0441\u04d9\u0443_\u043c\u0430\u043c_\u043c\u0430\u0443_\u0448\u0456\u043b_\u0442\u0430\u043c_\u049b\u044b\u0440_\u049b\u0430\u0437_\u049b\u0430\u0440_\u0436\u0435\u043b".split("_"),weekdays:"\u0436\u0435\u043a\u0441\u0435\u043d\u0431\u0456_\u0434\u04af\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u04d9\u0440\u0441\u0435\u043d\u0431\u0456_\u0431\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0436\u04b1\u043c\u0430_\u0441\u0435\u043d\u0431\u0456".split("_"),weekdaysShort:"\u0436\u0435\u043a_\u0434\u04af\u0439_\u0441\u0435\u0439_\u0441\u04d9\u0440_\u0431\u0435\u0439_\u0436\u04b1\u043c_\u0441\u0435\u043d".split("_"),weekdaysMin:"\u0436\u043a_\u0434\u0439_\u0441\u0439_\u0441\u0440_\u0431\u0439_\u0436\u043c_\u0441\u043d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u0456\u043d \u0441\u0430\u0493\u0430\u0442] LT",nextDay:"[\u0415\u0440\u0442\u0435\u04a3 \u0441\u0430\u0493\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0493\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0448\u0435 \u0441\u0430\u0493\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u0435\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u04a3] dddd [\u0441\u0430\u0493\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0456\u0448\u0456\u043d\u0434\u0435",past:"%s \u0431\u04b1\u0440\u044b\u043d",s:"\u0431\u0456\u0440\u043d\u0435\u0448\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0456\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u0431\u0456\u0440 \u0441\u0430\u0493\u0430\u0442",hh:"%d \u0441\u0430\u0493\u0430\u0442",d:"\u0431\u0456\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0456\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0456\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0448\u0456|\u0448\u044b)/,ordinal:function(D){return D+(n[D]||n[D%10]||n[D>=100?100:null])},week:{dow:1,doy:7}})}(E(5439))},3343:function(z,W,E){!function(x){"use strict";var n={1:"\u17e1",2:"\u17e2",3:"\u17e3",4:"\u17e4",5:"\u17e5",6:"\u17e6",7:"\u17e7",8:"\u17e8",9:"\u17e9",0:"\u17e0"},P={"\u17e1":"1","\u17e2":"2","\u17e3":"3","\u17e4":"4","\u17e5":"5","\u17e6":"6","\u17e7":"7","\u17e8":"8","\u17e9":"9","\u17e0":"0"};x.defineLocale("km",{months:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),monthsShort:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),weekdays:"\u17a2\u17b6\u1791\u17b7\u178f\u17d2\u1799_\u1785\u17d0\u1793\u17d2\u1791_\u17a2\u1784\u17d2\u1782\u17b6\u179a_\u1796\u17bb\u1792_\u1796\u17d2\u179a\u17a0\u179f\u17d2\u1794\u178f\u17b7\u17cd_\u179f\u17bb\u1780\u17d2\u179a_\u179f\u17c5\u179a\u17cd".split("_"),weekdaysShort:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysMin:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u1796\u17d2\u179a\u17b9\u1780|\u179b\u17d2\u1784\u17b6\u1785/,isPM:function(H){return"\u179b\u17d2\u1784\u17b6\u1785"===H},meridiem:function(H,I,B){return H<12?"\u1796\u17d2\u179a\u17b9\u1780":"\u179b\u17d2\u1784\u17b6\u1785"},calendar:{sameDay:"[\u1790\u17d2\u1784\u17c3\u1793\u17c1\u17c7 \u1798\u17c9\u17c4\u1784] LT",nextDay:"[\u179f\u17d2\u17a2\u17c2\u1780 \u1798\u17c9\u17c4\u1784] LT",nextWeek:"dddd [\u1798\u17c9\u17c4\u1784] LT",lastDay:"[\u1798\u17d2\u179f\u17b7\u179b\u1798\u17b7\u1789 \u1798\u17c9\u17c4\u1784] LT",lastWeek:"dddd [\u179f\u1794\u17d2\u178f\u17b6\u17a0\u17cd\u1798\u17bb\u1793] [\u1798\u17c9\u17c4\u1784] LT",sameElse:"L"},relativeTime:{future:"%s\u1791\u17c0\u178f",past:"%s\u1798\u17bb\u1793",s:"\u1794\u17c9\u17bb\u1793\u17d2\u1798\u17b6\u1793\u179c\u17b7\u1793\u17b6\u1791\u17b8",ss:"%d \u179c\u17b7\u1793\u17b6\u1791\u17b8",m:"\u1798\u17bd\u1799\u1793\u17b6\u1791\u17b8",mm:"%d \u1793\u17b6\u1791\u17b8",h:"\u1798\u17bd\u1799\u1798\u17c9\u17c4\u1784",hh:"%d \u1798\u17c9\u17c4\u1784",d:"\u1798\u17bd\u1799\u1790\u17d2\u1784\u17c3",dd:"%d \u1790\u17d2\u1784\u17c3",M:"\u1798\u17bd\u1799\u1781\u17c2",MM:"%d \u1781\u17c2",y:"\u1798\u17bd\u1799\u1786\u17d2\u1793\u17b6\u17c6",yy:"%d \u1786\u17d2\u1793\u17b6\u17c6"},dayOfMonthOrdinalParse:/\u1791\u17b8\d{1,2}/,ordinal:"\u1791\u17b8%d",preparse:function(H){return H.replace(/[\u17e1\u17e2\u17e3\u17e4\u17e5\u17e6\u17e7\u17e8\u17e9\u17e0]/g,function(I){return P[I]})},postformat:function(H){return H.replace(/\d/g,function(I){return n[I]})},week:{dow:1,doy:4}})}(E(5439))},4799:function(z,W,E){!function(x){"use strict";var n={1:"\u0ce7",2:"\u0ce8",3:"\u0ce9",4:"\u0cea",5:"\u0ceb",6:"\u0cec",7:"\u0ced",8:"\u0cee",9:"\u0cef",0:"\u0ce6"},P={"\u0ce7":"1","\u0ce8":"2","\u0ce9":"3","\u0cea":"4","\u0ceb":"5","\u0cec":"6","\u0ced":"7","\u0cee":"8","\u0cef":"9","\u0ce6":"0"};x.defineLocale("kn",{months:"\u0c9c\u0ca8\u0cb5\u0cb0\u0cbf_\u0cab\u0cc6\u0cac\u0ccd\u0cb0\u0cb5\u0cb0\u0cbf_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5\u0cac\u0cb0\u0ccd_\u0ca8\u0cb5\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82\u0cac\u0cb0\u0ccd".split("_"),monthsShort:"\u0c9c\u0ca8_\u0cab\u0cc6\u0cac\u0ccd\u0cb0_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5_\u0ca8\u0cb5\u0cc6\u0c82_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82".split("_"),monthsParseExact:!0,weekdays:"\u0cad\u0cbe\u0ca8\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae\u0cb5\u0cbe\u0cb0_\u0cae\u0c82\u0c97\u0cb3\u0cb5\u0cbe\u0cb0_\u0cac\u0cc1\u0ca7\u0cb5\u0cbe\u0cb0_\u0c97\u0cc1\u0cb0\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0\u0cb5\u0cbe\u0cb0_\u0cb6\u0ca8\u0cbf\u0cb5\u0cbe\u0cb0".split("_"),weekdaysShort:"\u0cad\u0cbe\u0ca8\u0cc1_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae_\u0cae\u0c82\u0c97\u0cb3_\u0cac\u0cc1\u0ca7_\u0c97\u0cc1\u0cb0\u0cc1_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0_\u0cb6\u0ca8\u0cbf".split("_"),weekdaysMin:"\u0cad\u0cbe_\u0cb8\u0cc6\u0cc2\u0cd5_\u0cae\u0c82_\u0cac\u0cc1_\u0c97\u0cc1_\u0cb6\u0cc1_\u0cb6".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c87\u0c82\u0ca6\u0cc1] LT",nextDay:"[\u0ca8\u0cbe\u0cb3\u0cc6] LT",nextWeek:"dddd, LT",lastDay:"[\u0ca8\u0cbf\u0ca8\u0ccd\u0ca8\u0cc6] LT",lastWeek:"[\u0c95\u0cc6\u0cc2\u0ca8\u0cc6\u0caf] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0ca8\u0c82\u0ca4\u0cb0",past:"%s \u0cb9\u0cbf\u0c82\u0ca6\u0cc6",s:"\u0c95\u0cc6\u0cb2\u0cb5\u0cc1 \u0c95\u0ccd\u0cb7\u0ca3\u0c97\u0cb3\u0cc1",ss:"%d \u0cb8\u0cc6\u0c95\u0cc6\u0c82\u0ca1\u0cc1\u0c97\u0cb3\u0cc1",m:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",mm:"%d \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",h:"\u0c92\u0c82\u0ca6\u0cc1 \u0c97\u0c82\u0c9f\u0cc6",hh:"%d \u0c97\u0c82\u0c9f\u0cc6",d:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca6\u0cbf\u0ca8",dd:"%d \u0ca6\u0cbf\u0ca8",M:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",MM:"%d \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",y:"\u0c92\u0c82\u0ca6\u0cc1 \u0cb5\u0cb0\u0ccd\u0cb7",yy:"%d \u0cb5\u0cb0\u0ccd\u0cb7"},preparse:function(H){return H.replace(/[\u0ce7\u0ce8\u0ce9\u0cea\u0ceb\u0cec\u0ced\u0cee\u0cef\u0ce6]/g,function(I){return P[I]})},postformat:function(H){return H.replace(/\d/g,function(I){return n[I]})},meridiemParse:/\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf|\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6|\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8|\u0cb8\u0c82\u0c9c\u0cc6/,meridiemHour:function(H,I){return 12===H&&(H=0),"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"===I?H<4?H:H+12:"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6"===I?H:"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8"===I?H>=10?H:H+12:"\u0cb8\u0c82\u0c9c\u0cc6"===I?H+12:void 0},meridiem:function(H,I,B){return H<4?"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf":H<10?"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6":H<17?"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8":H<20?"\u0cb8\u0c82\u0c9c\u0cc6":"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"},dayOfMonthOrdinalParse:/\d{1,2}(\u0ca8\u0cc6\u0cd5)/,ordinal:function(H){return H+"\u0ca8\u0cc6\u0cd5"},week:{dow:0,doy:6}})}(E(5439))},3549:function(z,W,E){!function(x){"use strict";x.defineLocale("ko",{months:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),monthsShort:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),weekdays:"\uc77c\uc694\uc77c_\uc6d4\uc694\uc77c_\ud654\uc694\uc77c_\uc218\uc694\uc77c_\ubaa9\uc694\uc77c_\uae08\uc694\uc77c_\ud1a0\uc694\uc77c".split("_"),weekdaysShort:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),weekdaysMin:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY\ub144 MMMM D\uc77c",LLL:"YYYY\ub144 MMMM D\uc77c A h:mm",LLLL:"YYYY\ub144 MMMM D\uc77c dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY\ub144 MMMM D\uc77c",lll:"YYYY\ub144 MMMM D\uc77c A h:mm",llll:"YYYY\ub144 MMMM D\uc77c dddd A h:mm"},calendar:{sameDay:"\uc624\ub298 LT",nextDay:"\ub0b4\uc77c LT",nextWeek:"dddd LT",lastDay:"\uc5b4\uc81c LT",lastWeek:"\uc9c0\ub09c\uc8fc dddd LT",sameElse:"L"},relativeTime:{future:"%s \ud6c4",past:"%s \uc804",s:"\uba87 \ucd08",ss:"%d\ucd08",m:"1\ubd84",mm:"%d\ubd84",h:"\ud55c \uc2dc\uac04",hh:"%d\uc2dc\uac04",d:"\ud558\ub8e8",dd:"%d\uc77c",M:"\ud55c \ub2ec",MM:"%d\ub2ec",y:"\uc77c \ub144",yy:"%d\ub144"},dayOfMonthOrdinalParse:/\d{1,2}(\uc77c|\uc6d4|\uc8fc)/,ordinal:function(P,D){switch(D){case"d":case"D":case"DDD":return P+"\uc77c";case"M":return P+"\uc6d4";case"w":case"W":return P+"\uc8fc";default:return P}},meridiemParse:/\uc624\uc804|\uc624\ud6c4/,isPM:function(P){return"\uc624\ud6c4"===P},meridiem:function(P,D,H){return P<12?"\uc624\uc804":"\uc624\ud6c4"}})}(E(5439))},1037:function(z,W,E){!function(x){"use strict";var n={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},P={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},D=["\u06a9\u0627\u0646\u0648\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0634\u0648\u0628\u0627\u062a","\u0626\u0627\u0632\u0627\u0631","\u0646\u06cc\u0633\u0627\u0646","\u0626\u0627\u06cc\u0627\u0631","\u062d\u0648\u0632\u06d5\u06cc\u0631\u0627\u0646","\u062a\u06d5\u0645\u0645\u0648\u0632","\u0626\u0627\u0628","\u0626\u06d5\u06cc\u0644\u0648\u0648\u0644","\u062a\u0634\u0631\u06cc\u0646\u06cc \u06cc\u06d5\u0643\u06d5\u0645","\u062a\u0634\u0631\u06cc\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0643\u0627\u0646\u0648\u0646\u06cc \u06cc\u06d5\u06a9\u06d5\u0645"];x.defineLocale("ku",{months:D,monthsShort:D,weekdays:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u062f\u0648\u0648\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0633\u06ce\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysShort:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645_\u062f\u0648\u0648\u0634\u0647\u200c\u0645_\u0633\u06ce\u0634\u0647\u200c\u0645_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u0647_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c|\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc/,isPM:function(I){return/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c/.test(I)},meridiem:function(I,B,Y){return I<12?"\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc":"\u0626\u06ce\u0648\u0627\u0631\u0647\u200c"},calendar:{sameDay:"[\u0626\u0647\u200c\u0645\u0631\u06c6 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextDay:"[\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastDay:"[\u062f\u0648\u06ce\u0646\u06ce \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",sameElse:"L"},relativeTime:{future:"\u0644\u0647\u200c %s",past:"%s",s:"\u0686\u0647\u200c\u0646\u062f \u0686\u0631\u0643\u0647\u200c\u06cc\u0647\u200c\u0643",ss:"\u0686\u0631\u0643\u0647\u200c %d",m:"\u06cc\u0647\u200c\u0643 \u062e\u0648\u0644\u0647\u200c\u0643",mm:"%d \u062e\u0648\u0644\u0647\u200c\u0643",h:"\u06cc\u0647\u200c\u0643 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",hh:"%d \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",d:"\u06cc\u0647\u200c\u0643 \u0695\u06c6\u0698",dd:"%d \u0695\u06c6\u0698",M:"\u06cc\u0647\u200c\u0643 \u0645\u0627\u0646\u06af",MM:"%d \u0645\u0627\u0646\u06af",y:"\u06cc\u0647\u200c\u0643 \u0633\u0627\u06b5",yy:"%d \u0633\u0627\u06b5"},preparse:function(I){return I.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(B){return P[B]}).replace(/\u060c/g,",")},postformat:function(I){return I.replace(/\d/g,function(B){return n[B]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(E(5439))},3125:function(z,W,E){!function(x){"use strict";var n={0:"-\u0447\u04af",1:"-\u0447\u0438",2:"-\u0447\u0438",3:"-\u0447\u04af",4:"-\u0447\u04af",5:"-\u0447\u0438",6:"-\u0447\u044b",7:"-\u0447\u0438",8:"-\u0447\u0438",9:"-\u0447\u0443",10:"-\u0447\u0443",20:"-\u0447\u044b",30:"-\u0447\u0443",40:"-\u0447\u044b",50:"-\u0447\u04af",60:"-\u0447\u044b",70:"-\u0447\u0438",80:"-\u0447\u0438",90:"-\u0447\u0443",100:"-\u0447\u04af"};x.defineLocale("ky",{months:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u0416\u0435\u043a\u0448\u0435\u043c\u0431\u0438_\u0414\u04af\u0439\u0448\u04e9\u043c\u0431\u04af_\u0428\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0428\u0430\u0440\u0448\u0435\u043c\u0431\u0438_\u0411\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0416\u0443\u043c\u0430_\u0418\u0448\u0435\u043c\u0431\u0438".split("_"),weekdaysShort:"\u0416\u0435\u043a_\u0414\u04af\u0439_\u0428\u0435\u0439_\u0428\u0430\u0440_\u0411\u0435\u0439_\u0416\u0443\u043c_\u0418\u0448\u0435".split("_"),weekdaysMin:"\u0416\u043a_\u0414\u0439_\u0428\u0439_\u0428\u0440_\u0411\u0439_\u0416\u043c_\u0418\u0448".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u04af\u043d \u0441\u0430\u0430\u0442] LT",nextDay:"[\u042d\u0440\u0442\u0435\u04a3 \u0441\u0430\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0447\u044d\u044d \u0441\u0430\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u04e9\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u043d] dddd [\u043a\u04af\u043d\u04af] [\u0441\u0430\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0438\u0447\u0438\u043d\u0434\u0435",past:"%s \u043c\u0443\u0440\u0443\u043d",s:"\u0431\u0438\u0440\u043d\u0435\u0447\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0438\u0440 \u043c\u04af\u043d\u04e9\u0442",mm:"%d \u043c\u04af\u043d\u04e9\u0442",h:"\u0431\u0438\u0440 \u0441\u0430\u0430\u0442",hh:"%d \u0441\u0430\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0438\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0438\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0447\u0438|\u0447\u044b|\u0447\u04af|\u0447\u0443)/,ordinal:function(D){return D+(n[D]||n[D%10]||n[D>=100?100:null])},week:{dow:1,doy:7}})}(E(5439))},9586:function(z,W,E){!function(x){"use strict";function n(B,Y,G,ee){var te={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return Y?te[G][0]:te[G][1]}function H(B){if(B=parseInt(B,10),isNaN(B))return!1;if(B<0)return!0;if(B<10)return 4<=B&&B<=7;if(B<100){var Y=B%10;return H(0===Y?B/10:Y)}if(B<1e4){for(;B>=10;)B/=10;return H(B)}return H(B/=1e3)}x.defineLocale("lb",{months:"Januar_Februar_M\xe4erz_Abr\xebll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_M\xe9indeg_D\xebnschdeg_M\xebttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._M\xe9._D\xeb._M\xeb._Do._Fr._Sa.".split("_"),weekdaysMin:"So_M\xe9_D\xeb_M\xeb_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[G\xebschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function P(B){return H(B.substr(0,B.indexOf(" ")))?"a "+B:"an "+B},past:function D(B){return H(B.substr(0,B.indexOf(" ")))?"viru "+B:"virun "+B},s:"e puer Sekonnen",ss:"%d Sekonnen",m:n,mm:"%d Minutten",h:n,hh:"%d Stonnen",d:n,dd:"%d Deeg",M:n,MM:"%d M\xe9int",y:n,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},2349:function(z,W,E){!function(x){"use strict";x.defineLocale("lo",{months:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),monthsShort:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),weekdays:"\u0ead\u0eb2\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysShort:"\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysMin:"\u0e97_\u0e88_\u0ead\u0e84_\u0e9e_\u0e9e\u0eab_\u0eaa\u0e81_\u0eaa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"\u0ea7\u0eb1\u0e99dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2|\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87/,isPM:function(P){return"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"===P},meridiem:function(P,D,H){return P<12?"\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2":"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"},calendar:{sameDay:"[\u0ea1\u0eb7\u0ec9\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextDay:"[\u0ea1\u0eb7\u0ec9\u0ead\u0eb7\u0ec8\u0e99\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0edc\u0ec9\u0eb2\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastDay:"[\u0ea1\u0eb7\u0ec9\u0ea7\u0eb2\u0e99\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0ec1\u0ea5\u0ec9\u0ea7\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",sameElse:"L"},relativeTime:{future:"\u0ead\u0eb5\u0e81 %s",past:"%s\u0e9c\u0ec8\u0eb2\u0e99\u0ea1\u0eb2",s:"\u0e9a\u0ecd\u0ec8\u0ec0\u0e97\u0ebb\u0ec8\u0eb2\u0ec3\u0e94\u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",ss:"%d \u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",m:"1 \u0e99\u0eb2\u0e97\u0eb5",mm:"%d \u0e99\u0eb2\u0e97\u0eb5",h:"1 \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",hh:"%d \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",d:"1 \u0ea1\u0eb7\u0ec9",dd:"%d \u0ea1\u0eb7\u0ec9",M:"1 \u0ec0\u0e94\u0eb7\u0ead\u0e99",MM:"%d \u0ec0\u0e94\u0eb7\u0ead\u0e99",y:"1 \u0e9b\u0eb5",yy:"%d \u0e9b\u0eb5"},dayOfMonthOrdinalParse:/(\u0e97\u0eb5\u0ec8)\d{1,2}/,ordinal:function(P){return"\u0e97\u0eb5\u0ec8"+P}})}(E(5439))},2400:function(z,W,E){!function(x){"use strict";var n={ss:"sekund\u0117_sekund\u017ei\u0173_sekundes",m:"minut\u0117_minut\u0117s_minut\u0119",mm:"minut\u0117s_minu\u010di\u0173_minutes",h:"valanda_valandos_valand\u0105",hh:"valandos_valand\u0173_valandas",d:"diena_dienos_dien\u0105",dd:"dienos_dien\u0173_dienas",M:"m\u0117nuo_m\u0117nesio_m\u0117nes\u012f",MM:"m\u0117nesiai_m\u0117nesi\u0173_m\u0117nesius",y:"metai_met\u0173_metus",yy:"metai_met\u0173_metus"};function D(G,ee,te,ae){return ee?I(te)[0]:ae?I(te)[1]:I(te)[2]}function H(G){return G%10==0||G>10&&G<20}function I(G){return n[G].split("_")}function B(G,ee,te,ae){var ue=G+" ";return 1===G?ue+D(0,ee,te[0],ae):ee?ue+(H(G)?I(te)[1]:I(te)[0]):ae?ue+I(te)[1]:ue+(H(G)?I(te)[1]:I(te)[2])}x.defineLocale("lt",{months:{format:"sausio_vasario_kovo_baland\u017eio_gegu\u017e\u0117s_bir\u017eelio_liepos_rugpj\u016b\u010dio_rugs\u0117jo_spalio_lapkri\u010dio_gruod\u017eio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegu\u017e\u0117_bir\u017eelis_liepa_rugpj\u016btis_rugs\u0117jis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadien\u012f_pirmadien\u012f_antradien\u012f_tre\u010diadien\u012f_ketvirtadien\u012f_penktadien\u012f_\u0161e\u0161tadien\u012f".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_tre\u010diadienis_ketvirtadienis_penktadienis_\u0161e\u0161tadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_\u0160e\u0161".split("_"),weekdaysMin:"S_P_A_T_K_Pn_\u0160".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[\u0160iandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Pra\u0117jus\u012f] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prie\u0161 %s",s:function P(G,ee,te,ae){return ee?"kelios sekund\u0117s":ae?"keli\u0173 sekund\u017ei\u0173":"kelias sekundes"},ss:B,m:D,mm:B,h:D,hh:B,d:D,dd:B,M:D,MM:B,y:D,yy:B},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(G){return G+"-oji"},week:{dow:1,doy:4}})}(E(5439))},9991:function(z,W,E){!function(x){"use strict";var n={ss:"sekundes_sekund\u0113m_sekunde_sekundes".split("_"),m:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),mm:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),h:"stundas_stund\u0101m_stunda_stundas".split("_"),hh:"stundas_stund\u0101m_stunda_stundas".split("_"),d:"dienas_dien\u0101m_diena_dienas".split("_"),dd:"dienas_dien\u0101m_diena_dienas".split("_"),M:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),MM:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function P(Y,G,ee){return ee?G%10==1&&G%100!=11?Y[2]:Y[3]:G%10==1&&G%100!=11?Y[0]:Y[1]}function D(Y,G,ee){return Y+" "+P(n[ee],Y,G)}function H(Y,G,ee){return P(n[ee],Y,G)}x.defineLocale("lv",{months:"janv\u0101ris_febru\u0101ris_marts_apr\u012blis_maijs_j\u016bnijs_j\u016blijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_j\u016bn_j\u016bl_aug_sep_okt_nov_dec".split("_"),weekdays:"sv\u0113tdiena_pirmdiena_otrdiena_tre\u0161diena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[\u0160odien pulksten] LT",nextDay:"[R\u012bt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pag\u0101ju\u0161\u0101] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"p\u0113c %s",past:"pirms %s",s:function I(Y,G){return G?"da\u017eas sekundes":"da\u017e\u0101m sekund\u0113m"},ss:D,m:H,mm:D,h:H,hh:D,d:H,dd:D,M:H,MM:D,y:H,yy:D},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},8477:function(z,W,E){!function(x){"use strict";var n={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(D,H){return 1===D?H[0]:D>=2&&D<=4?H[1]:H[2]},translate:function(D,H,I){var B=n.words[I];return 1===I.length?H?B[0]:B[1]:D+" "+n.correctGrammaticalCase(D,B)}};x.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedjelje] [u] LT","[pro\u0161log] [ponedjeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srijede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:n.translate,m:n.translate,mm:n.translate,h:n.translate,hh:n.translate,d:"dan",dd:n.translate,M:"mjesec",MM:n.translate,y:"godinu",yy:n.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(E(5439))},5118:function(z,W,E){!function(x){"use strict";x.defineLocale("mi",{months:"Kohi-t\u0101te_Hui-tanguru_Pout\u016b-te-rangi_Paenga-wh\u0101wh\u0101_Haratua_Pipiri_H\u014dngoingoi_Here-turi-k\u014dk\u0101_Mahuru_Whiringa-\u0101-nuku_Whiringa-\u0101-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_H\u014dngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"R\u0101tapu_Mane_T\u016brei_Wenerei_T\u0101ite_Paraire_H\u0101tarei".split("_"),weekdaysShort:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),weekdaysMin:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te h\u0113kona ruarua",ss:"%d h\u0113kona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(E(5439))},5943:function(z,W,E){!function(x){"use strict";x.defineLocale("mk",{months:"\u0458\u0430\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d\u0438_\u0458\u0443\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u0458\u0430\u043d_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u043e\u043a_\u043f\u0435\u0442\u043e\u043a_\u0441\u0430\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u0435_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u0430\u0431".split("_"),weekdaysMin:"\u043de_\u043fo_\u0432\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441a".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u0435\u043d\u0435\u0441 \u0432\u043e] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432\u043e] LT",nextWeek:"[\u0412\u043e] dddd [\u0432\u043e] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432\u043e] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0430\u0442\u0430] dddd [\u0432\u043e] LT";case 1:case 2:case 4:case 5:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0438\u043e\u0442] dddd [\u0432\u043e] LT"}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435\u0434 %s",s:"\u043d\u0435\u043a\u043e\u043b\u043a\u0443 \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u0435\u0434\u043d\u0430 \u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0435\u0434\u0435\u043d \u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0435\u0434\u0435\u043d \u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",M:"\u0435\u0434\u0435\u043d \u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0438",y:"\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(P){var D=P%10,H=P%100;return 0===P?P+"-\u0435\u0432":0===H?P+"-\u0435\u043d":H>10&&H<20?P+"-\u0442\u0438":1===D?P+"-\u0432\u0438":2===D?P+"-\u0440\u0438":7===D||8===D?P+"-\u043c\u0438":P+"-\u0442\u0438"},week:{dow:1,doy:7}})}(E(5439))},3849:function(z,W,E){!function(x){"use strict";x.defineLocale("ml",{months:"\u0d1c\u0d28\u0d41\u0d35\u0d30\u0d3f_\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41\u0d35\u0d30\u0d3f_\u0d2e\u0d3e\u0d7c\u0d1a\u0d4d\u0d1a\u0d4d_\u0d0f\u0d2a\u0d4d\u0d30\u0d3f\u0d7d_\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48_\u0d13\u0d17\u0d38\u0d4d\u0d31\u0d4d\u0d31\u0d4d_\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31\u0d02\u0d2c\u0d7c_\u0d12\u0d15\u0d4d\u0d1f\u0d4b\u0d2c\u0d7c_\u0d28\u0d35\u0d02\u0d2c\u0d7c_\u0d21\u0d3f\u0d38\u0d02\u0d2c\u0d7c".split("_"),monthsShort:"\u0d1c\u0d28\u0d41._\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41._\u0d2e\u0d3e\u0d7c._\u0d0f\u0d2a\u0d4d\u0d30\u0d3f._\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48._\u0d13\u0d17._\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31._\u0d12\u0d15\u0d4d\u0d1f\u0d4b._\u0d28\u0d35\u0d02._\u0d21\u0d3f\u0d38\u0d02.".split("_"),monthsParseExact:!0,weekdays:"\u0d1e\u0d3e\u0d2f\u0d31\u0d3e\u0d34\u0d4d\u0d1a_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d33\u0d3e\u0d34\u0d4d\u0d1a_\u0d1a\u0d4a\u0d35\u0d4d\u0d35\u0d3e\u0d34\u0d4d\u0d1a_\u0d2c\u0d41\u0d27\u0d28\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a_\u0d36\u0d28\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a".split("_"),weekdaysShort:"\u0d1e\u0d3e\u0d2f\u0d7c_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d7e_\u0d1a\u0d4a\u0d35\u0d4d\u0d35_\u0d2c\u0d41\u0d27\u0d7b_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d02_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f_\u0d36\u0d28\u0d3f".split("_"),weekdaysMin:"\u0d1e\u0d3e_\u0d24\u0d3f_\u0d1a\u0d4a_\u0d2c\u0d41_\u0d35\u0d4d\u0d2f\u0d3e_\u0d35\u0d46_\u0d36".split("_"),longDateFormat:{LT:"A h:mm -\u0d28\u0d41",LTS:"A h:mm:ss -\u0d28\u0d41",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -\u0d28\u0d41",LLLL:"dddd, D MMMM YYYY, A h:mm -\u0d28\u0d41"},calendar:{sameDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d4d] LT",nextDay:"[\u0d28\u0d3e\u0d33\u0d46] LT",nextWeek:"dddd, LT",lastDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d32\u0d46] LT",lastWeek:"[\u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d",past:"%s \u0d2e\u0d41\u0d7b\u0d2a\u0d4d",s:"\u0d05\u0d7d\u0d2a \u0d28\u0d3f\u0d2e\u0d3f\u0d37\u0d19\u0d4d\u0d19\u0d7e",ss:"%d \u0d38\u0d46\u0d15\u0d4d\u0d15\u0d7b\u0d21\u0d4d",m:"\u0d12\u0d30\u0d41 \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",mm:"%d \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",h:"\u0d12\u0d30\u0d41 \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",hh:"%d \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",d:"\u0d12\u0d30\u0d41 \u0d26\u0d3f\u0d35\u0d38\u0d02",dd:"%d \u0d26\u0d3f\u0d35\u0d38\u0d02",M:"\u0d12\u0d30\u0d41 \u0d2e\u0d3e\u0d38\u0d02",MM:"%d \u0d2e\u0d3e\u0d38\u0d02",y:"\u0d12\u0d30\u0d41 \u0d35\u0d7c\u0d37\u0d02",yy:"%d \u0d35\u0d7c\u0d37\u0d02"},meridiemParse:/\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f|\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46|\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d|\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02|\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f/i,meridiemHour:function(P,D){return 12===P&&(P=0),"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"===D&&P>=4||"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d"===D||"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02"===D?P+12:P},meridiem:function(P,D,H){return P<4?"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f":P<12?"\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46":P<17?"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d":P<20?"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02":"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"}})}(E(5439))},1977:function(z,W,E){!function(x){"use strict";function n(D,H,I,B){switch(I){case"s":return H?"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434":"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d";case"ss":return D+(H?" \u0441\u0435\u043a\u0443\u043d\u0434":" \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d");case"m":case"mm":return D+(H?" \u043c\u0438\u043d\u0443\u0442":" \u043c\u0438\u043d\u0443\u0442\u044b\u043d");case"h":case"hh":return D+(H?" \u0446\u0430\u0433":" \u0446\u0430\u0433\u0438\u0439\u043d");case"d":case"dd":return D+(H?" \u04e9\u0434\u04e9\u0440":" \u04e9\u0434\u0440\u0438\u0439\u043d");case"M":case"MM":return D+(H?" \u0441\u0430\u0440":" \u0441\u0430\u0440\u044b\u043d");case"y":case"yy":return D+(H?" \u0436\u0438\u043b":" \u0436\u0438\u043b\u0438\u0439\u043d");default:return D}}x.defineLocale("mn",{months:"\u041d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0425\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0413\u0443\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u04e9\u0440\u04e9\u0432\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0422\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0417\u0443\u0440\u0433\u0430\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u043e\u043b\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u041d\u0430\u0439\u043c\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0415\u0441\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u043d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u0445\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440".split("_"),monthsShort:"1 \u0441\u0430\u0440_2 \u0441\u0430\u0440_3 \u0441\u0430\u0440_4 \u0441\u0430\u0440_5 \u0441\u0430\u0440_6 \u0441\u0430\u0440_7 \u0441\u0430\u0440_8 \u0441\u0430\u0440_9 \u0441\u0430\u0440_10 \u0441\u0430\u0440_11 \u0441\u0430\u0440_12 \u0441\u0430\u0440".split("_"),monthsParseExact:!0,weekdays:"\u041d\u044f\u043c_\u0414\u0430\u0432\u0430\u0430_\u041c\u044f\u0433\u043c\u0430\u0440_\u041b\u0445\u0430\u0433\u0432\u0430_\u041f\u04af\u0440\u044d\u0432_\u0411\u0430\u0430\u0441\u0430\u043d_\u0411\u044f\u043c\u0431\u0430".split("_"),weekdaysShort:"\u041d\u044f\u043c_\u0414\u0430\u0432_\u041c\u044f\u0433_\u041b\u0445\u0430_\u041f\u04af\u0440_\u0411\u0430\u0430_\u0411\u044f\u043c".split("_"),weekdaysMin:"\u041d\u044f_\u0414\u0430_\u041c\u044f_\u041b\u0445_\u041f\u04af_\u0411\u0430_\u0411\u044f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D",LLL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm",LLLL:"dddd, YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm"},meridiemParse:/\u04ae\u04e8|\u04ae\u0425/i,isPM:function(D){return"\u04ae\u0425"===D},meridiem:function(D,H,I){return D<12?"\u04ae\u04e8":"\u04ae\u0425"},calendar:{sameDay:"[\u04e8\u043d\u04e9\u04e9\u0434\u04e9\u0440] LT",nextDay:"[\u041c\u0430\u0440\u0433\u0430\u0430\u0448] LT",nextWeek:"[\u0418\u0440\u044d\u0445] dddd LT",lastDay:"[\u04e8\u0447\u0438\u0433\u0434\u04e9\u0440] LT",lastWeek:"[\u04e8\u043d\u0433\u04e9\u0440\u0441\u04e9\u043d] dddd LT",sameElse:"L"},relativeTime:{future:"%s \u0434\u0430\u0440\u0430\u0430",past:"%s \u04e9\u043c\u043d\u04e9",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2} \u04e9\u0434\u04e9\u0440/,ordinal:function(D,H){switch(H){case"d":case"D":case"DDD":return D+" \u04e9\u0434\u04e9\u0440";default:return D}}})}(E(5439))},6184:function(z,W,E){!function(x){"use strict";var n={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},P={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};function D(I,B,Y,G){var ee="";if(B)switch(Y){case"s":ee="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926";break;case"ss":ee="%d \u0938\u0947\u0915\u0902\u0926";break;case"m":ee="\u090f\u0915 \u092e\u093f\u0928\u093f\u091f";break;case"mm":ee="%d \u092e\u093f\u0928\u093f\u091f\u0947";break;case"h":ee="\u090f\u0915 \u0924\u093e\u0938";break;case"hh":ee="%d \u0924\u093e\u0938";break;case"d":ee="\u090f\u0915 \u0926\u093f\u0935\u0938";break;case"dd":ee="%d \u0926\u093f\u0935\u0938";break;case"M":ee="\u090f\u0915 \u092e\u0939\u093f\u0928\u093e";break;case"MM":ee="%d \u092e\u0939\u093f\u0928\u0947";break;case"y":ee="\u090f\u0915 \u0935\u0930\u094d\u0937";break;case"yy":ee="%d \u0935\u0930\u094d\u0937\u0947"}else switch(Y){case"s":ee="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"ss":ee="%d \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"m":ee="\u090f\u0915\u093e \u092e\u093f\u0928\u093f\u091f\u093e";break;case"mm":ee="%d \u092e\u093f\u0928\u093f\u091f\u093e\u0902";break;case"h":ee="\u090f\u0915\u093e \u0924\u093e\u0938\u093e";break;case"hh":ee="%d \u0924\u093e\u0938\u093e\u0902";break;case"d":ee="\u090f\u0915\u093e \u0926\u093f\u0935\u0938\u093e";break;case"dd":ee="%d \u0926\u093f\u0935\u0938\u093e\u0902";break;case"M":ee="\u090f\u0915\u093e \u092e\u0939\u093f\u0928\u094d\u092f\u093e";break;case"MM":ee="%d \u092e\u0939\u093f\u0928\u094d\u092f\u093e\u0902";break;case"y":ee="\u090f\u0915\u093e \u0935\u0930\u094d\u0937\u093e";break;case"yy":ee="%d \u0935\u0930\u094d\u0937\u093e\u0902"}return ee.replace(/%d/i,I)}x.defineLocale("mr",{months:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u093f\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u0948_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a._\u090f\u092a\u094d\u0930\u093f._\u092e\u0947._\u091c\u0942\u0928._\u091c\u0941\u0932\u0948._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0933\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0933_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u0935\u093e\u091c\u0924\u093e",LTS:"A h:mm:ss \u0935\u093e\u091c\u0924\u093e",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e",LLLL:"dddd, D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0909\u0926\u094d\u092f\u093e] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092e\u093e\u0917\u0940\u0932] dddd, LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u0927\u094d\u092f\u0947",past:"%s\u092a\u0942\u0930\u094d\u0935\u0940",s:D,ss:D,m:D,mm:D,h:D,hh:D,d:D,dd:D,M:D,MM:D,y:D,yy:D},preparse:function(I){return I.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(B){return P[B]})},postformat:function(I){return I.replace(/\d/g,function(B){return n[B]})},meridiemParse:/\u092a\u0939\u093e\u091f\u0947|\u0938\u0915\u093e\u0933\u0940|\u0926\u0941\u092a\u093e\u0930\u0940|\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940|\u0930\u093e\u0924\u094d\u0930\u0940/,meridiemHour:function(I,B){return 12===I&&(I=0),"\u092a\u0939\u093e\u091f\u0947"===B||"\u0938\u0915\u093e\u0933\u0940"===B?I:"\u0926\u0941\u092a\u093e\u0930\u0940"===B||"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940"===B||"\u0930\u093e\u0924\u094d\u0930\u0940"===B?I>=12?I:I+12:void 0},meridiem:function(I,B,Y){return I>=0&&I<6?"\u092a\u0939\u093e\u091f\u0947":I<12?"\u0938\u0915\u093e\u0933\u0940":I<17?"\u0926\u0941\u092a\u093e\u0930\u0940":I<20?"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940":"\u0930\u093e\u0924\u094d\u0930\u0940"},week:{dow:0,doy:6}})}(E(5439))},4524:function(z,W,E){!function(x){"use strict";x.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(P,D){return 12===P&&(P=0),"pagi"===D?P:"tengahari"===D?P>=11?P:P+12:"petang"===D||"malam"===D?P+12:void 0},meridiem:function(P,D,H){return P<11?"pagi":P<15?"tengahari":P<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(E(5439))},485:function(z,W,E){!function(x){"use strict";x.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(P,D){return 12===P&&(P=0),"pagi"===D?P:"tengahari"===D?P>=11?P:P+12:"petang"===D||"malam"===D?P+12:void 0},meridiem:function(P,D,H){return P<11?"pagi":P<15?"tengahari":P<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(E(5439))},6681:function(z,W,E){!function(x){"use strict";x.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_\u0120unju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Di\u010bembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_\u0120un_Lul_Aww_Set_Ott_Nov_Di\u010b".split("_"),weekdays:"Il-\u0126add_It-Tnejn_It-Tlieta_L-Erbg\u0127a_Il-\u0126amis_Il-\u0120img\u0127a_Is-Sibt".split("_"),weekdaysShort:"\u0126ad_Tne_Tli_Erb_\u0126am_\u0120im_Sib".split("_"),weekdaysMin:"\u0126a_Tn_Tl_Er_\u0126a_\u0120i_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[G\u0127ada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-biera\u0127 fil-]LT",lastWeek:"dddd [li g\u0127adda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f\u2019 %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"sieg\u0127a",hh:"%d sieg\u0127at",d:"\u0121urnata",dd:"%d \u0121ranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(E(5439))},2024:function(z,W,E){!function(x){"use strict";var n={1:"\u1041",2:"\u1042",3:"\u1043",4:"\u1044",5:"\u1045",6:"\u1046",7:"\u1047",8:"\u1048",9:"\u1049",0:"\u1040"},P={"\u1041":"1","\u1042":"2","\u1043":"3","\u1044":"4","\u1045":"5","\u1046":"6","\u1047":"7","\u1048":"8","\u1049":"9","\u1040":"0"};x.defineLocale("my",{months:"\u1007\u1014\u103a\u1014\u101d\u102b\u101b\u102e_\u1016\u1031\u1016\u1031\u102c\u103a\u101d\u102b\u101b\u102e_\u1019\u1010\u103a_\u1027\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u1007\u1030\u101c\u102d\u102f\u1004\u103a_\u101e\u103c\u1002\u102f\u1010\u103a_\u1005\u1000\u103a\u1010\u1004\u103a\u1018\u102c_\u1021\u1031\u102c\u1000\u103a\u1010\u102d\u102f\u1018\u102c_\u1014\u102d\u102f\u101d\u1004\u103a\u1018\u102c_\u1012\u102e\u1007\u1004\u103a\u1018\u102c".split("_"),monthsShort:"\u1007\u1014\u103a_\u1016\u1031_\u1019\u1010\u103a_\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u101c\u102d\u102f\u1004\u103a_\u101e\u103c_\u1005\u1000\u103a_\u1021\u1031\u102c\u1000\u103a_\u1014\u102d\u102f_\u1012\u102e".split("_"),weekdays:"\u1010\u1014\u1004\u103a\u1039\u1002\u1014\u103d\u1031_\u1010\u1014\u1004\u103a\u1039\u101c\u102c_\u1021\u1004\u103a\u1039\u1002\u102b_\u1017\u102f\u1012\u1039\u1013\u101f\u1030\u1038_\u1000\u103c\u102c\u101e\u1015\u1010\u1031\u1038_\u101e\u1031\u102c\u1000\u103c\u102c_\u1005\u1014\u1031".split("_"),weekdaysShort:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),weekdaysMin:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u101a\u1014\u1031.] LT [\u1019\u103e\u102c]",nextDay:"[\u1019\u1014\u1000\u103a\u1016\u103c\u1014\u103a] LT [\u1019\u103e\u102c]",nextWeek:"dddd LT [\u1019\u103e\u102c]",lastDay:"[\u1019\u1014\u1031.\u1000] LT [\u1019\u103e\u102c]",lastWeek:"[\u1015\u103c\u102e\u1038\u1001\u1032\u1037\u101e\u1031\u102c] dddd LT [\u1019\u103e\u102c]",sameElse:"L"},relativeTime:{future:"\u101c\u102c\u1019\u100a\u103a\u1037 %s \u1019\u103e\u102c",past:"\u101c\u103d\u1014\u103a\u1001\u1032\u1037\u101e\u1031\u102c %s \u1000",s:"\u1005\u1000\u1039\u1000\u1014\u103a.\u1021\u1014\u100a\u103a\u1038\u1004\u101a\u103a",ss:"%d \u1005\u1000\u1039\u1000\u1014\u1037\u103a",m:"\u1010\u1005\u103a\u1019\u102d\u1014\u1005\u103a",mm:"%d \u1019\u102d\u1014\u1005\u103a",h:"\u1010\u1005\u103a\u1014\u102c\u101b\u102e",hh:"%d \u1014\u102c\u101b\u102e",d:"\u1010\u1005\u103a\u101b\u1000\u103a",dd:"%d \u101b\u1000\u103a",M:"\u1010\u1005\u103a\u101c",MM:"%d \u101c",y:"\u1010\u1005\u103a\u1014\u103e\u1005\u103a",yy:"%d \u1014\u103e\u1005\u103a"},preparse:function(H){return H.replace(/[\u1041\u1042\u1043\u1044\u1045\u1046\u1047\u1048\u1049\u1040]/g,function(I){return P[I]})},postformat:function(H){return H.replace(/\d/g,function(I){return n[I]})},week:{dow:1,doy:4}})}(E(5439))},2688:function(z,W,E){!function(x){"use strict";x.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8._ma._ti._on._to._fr._l\xf8.".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",w:"en uke",ww:"%d uker",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},8914:function(z,W,E){!function(x){"use strict";var n={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},P={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};x.defineLocale("ne",{months:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f\u0932_\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0937\u094d\u091f_\u0938\u0947\u092a\u094d\u091f\u0947\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u092d\u0947\u092e\u094d\u092c\u0930_\u0921\u093f\u0938\u0947\u092e\u094d\u092c\u0930".split("_"),monthsShort:"\u091c\u0928._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f._\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908._\u0905\u0917._\u0938\u0947\u092a\u094d\u091f._\u0905\u0915\u094d\u091f\u094b._\u0928\u094b\u092d\u0947._\u0921\u093f\u0938\u0947.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u0907\u0924\u092c\u093e\u0930_\u0938\u094b\u092e\u092c\u093e\u0930_\u092e\u0919\u094d\u0917\u0932\u092c\u093e\u0930_\u092c\u0941\u0927\u092c\u093e\u0930_\u092c\u093f\u0939\u093f\u092c\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u092c\u093e\u0930_\u0936\u0928\u093f\u092c\u093e\u0930".split("_"),weekdaysShort:"\u0906\u0907\u0924._\u0938\u094b\u092e._\u092e\u0919\u094d\u0917\u0932._\u092c\u0941\u0927._\u092c\u093f\u0939\u093f._\u0936\u0941\u0915\u094d\u0930._\u0936\u0928\u093f.".split("_"),weekdaysMin:"\u0906._\u0938\u094b._\u092e\u0902._\u092c\u0941._\u092c\u093f._\u0936\u0941._\u0936.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A\u0915\u094b h:mm \u092c\u091c\u0947",LTS:"A\u0915\u094b h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947"},preparse:function(H){return H.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(I){return P[I]})},postformat:function(H){return H.replace(/\d/g,function(I){return n[I]})},meridiemParse:/\u0930\u093e\u0924\u093f|\u092c\u093f\u0939\u093e\u0928|\u0926\u093f\u0909\u0901\u0938\u094b|\u0938\u093e\u0901\u091d/,meridiemHour:function(H,I){return 12===H&&(H=0),"\u0930\u093e\u0924\u093f"===I?H<4?H:H+12:"\u092c\u093f\u0939\u093e\u0928"===I?H:"\u0926\u093f\u0909\u0901\u0938\u094b"===I?H>=10?H:H+12:"\u0938\u093e\u0901\u091d"===I?H+12:void 0},meridiem:function(H,I,B){return H<3?"\u0930\u093e\u0924\u093f":H<12?"\u092c\u093f\u0939\u093e\u0928":H<16?"\u0926\u093f\u0909\u0901\u0938\u094b":H<20?"\u0938\u093e\u0901\u091d":"\u0930\u093e\u0924\u093f"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u092d\u094b\u0932\u093f] LT",nextWeek:"[\u0906\u0909\u0901\u0926\u094b] dddd[,] LT",lastDay:"[\u0939\u093f\u091c\u094b] LT",lastWeek:"[\u0917\u090f\u0915\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u093e",past:"%s \u0905\u0917\u093e\u0921\u093f",s:"\u0915\u0947\u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0947\u0923\u094d\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u0947\u091f",mm:"%d \u092e\u093f\u0928\u0947\u091f",h:"\u090f\u0915 \u0918\u0923\u094d\u091f\u093e",hh:"%d \u0918\u0923\u094d\u091f\u093e",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u093f\u0928\u093e",MM:"%d \u092e\u0939\u093f\u0928\u093e",y:"\u090f\u0915 \u092c\u0930\u094d\u0937",yy:"%d \u092c\u0930\u094d\u0937"},week:{dow:0,doy:6}})}(E(5439))},2272:function(z,W,E){!function(x){"use strict";var n="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),P="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),D=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],H=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;x.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(B,Y){return B?/-MMM-/.test(Y)?P[B.month()]:n[B.month()]:n},monthsRegex:H,monthsShortRegex:H,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:D,longMonthsParse:D,shortMonthsParse:D,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(B){return B+(1===B||8===B||B>=20?"ste":"de")},week:{dow:1,doy:4}})}(E(5439))},1758:function(z,W,E){!function(x){"use strict";var n="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),P="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),D=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],H=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;x.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(B,Y){return B?/-MMM-/.test(Y)?P[B.month()]:n[B.month()]:n},monthsRegex:H,monthsShortRegex:H,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:D,longMonthsParse:D,shortMonthsParse:D,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",w:"\xe9\xe9n week",ww:"%d weken",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(B){return B+(1===B||8===B||B>=20?"ste":"de")},week:{dow:1,doy:4}})}(E(5439))},1510:function(z,W,E){!function(x){"use strict";x.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_m\xe5ndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._m\xe5._ty._on._to._fr._lau.".split("_"),weekdaysMin:"su_m\xe5_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I g\xe5r klokka] LT",lastWeek:"[F\xf8reg\xe5ande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",w:"ei veke",ww:"%d veker",M:"ein m\xe5nad",MM:"%d m\xe5nader",y:"eit \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},2797:function(z,W,E){!function(x){"use strict";x.defineLocale("oc-lnc",{months:{standalone:"geni\xe8r_febri\xe8r_mar\xe7_abril_mai_junh_julhet_agost_setembre_oct\xf2bre_novembre_decembre".split("_"),format:"de geni\xe8r_de febri\xe8r_de mar\xe7_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'oct\xf2bre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dim\xe8cres_dij\xf2us_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[u\xe8i a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[i\xe8r a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(P,D){var H=1===P?"r":2===P?"n":3===P?"r":4===P?"t":"\xe8";return("w"===D||"W"===D)&&(H="a"),P+H},week:{dow:1,doy:4}})}(E(5439))},7944:function(z,W,E){!function(x){"use strict";var n={1:"\u0a67",2:"\u0a68",3:"\u0a69",4:"\u0a6a",5:"\u0a6b",6:"\u0a6c",7:"\u0a6d",8:"\u0a6e",9:"\u0a6f",0:"\u0a66"},P={"\u0a67":"1","\u0a68":"2","\u0a69":"3","\u0a6a":"4","\u0a6b":"5","\u0a6c":"6","\u0a6d":"7","\u0a6e":"8","\u0a6f":"9","\u0a66":"0"};x.defineLocale("pa-in",{months:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),monthsShort:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),weekdays:"\u0a10\u0a24\u0a35\u0a3e\u0a30_\u0a38\u0a4b\u0a2e\u0a35\u0a3e\u0a30_\u0a2e\u0a70\u0a17\u0a32\u0a35\u0a3e\u0a30_\u0a2c\u0a41\u0a27\u0a35\u0a3e\u0a30_\u0a35\u0a40\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a41\u0a71\u0a15\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a28\u0a40\u0a1a\u0a30\u0a35\u0a3e\u0a30".split("_"),weekdaysShort:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),weekdaysMin:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),longDateFormat:{LT:"A h:mm \u0a35\u0a1c\u0a47",LTS:"A h:mm:ss \u0a35\u0a1c\u0a47",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47",LLLL:"dddd, D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47"},calendar:{sameDay:"[\u0a05\u0a1c] LT",nextDay:"[\u0a15\u0a32] LT",nextWeek:"[\u0a05\u0a17\u0a32\u0a3e] dddd, LT",lastDay:"[\u0a15\u0a32] LT",lastWeek:"[\u0a2a\u0a3f\u0a1b\u0a32\u0a47] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0a35\u0a3f\u0a71\u0a1a",past:"%s \u0a2a\u0a3f\u0a1b\u0a32\u0a47",s:"\u0a15\u0a41\u0a1d \u0a38\u0a15\u0a3f\u0a70\u0a1f",ss:"%d \u0a38\u0a15\u0a3f\u0a70\u0a1f",m:"\u0a07\u0a15 \u0a2e\u0a3f\u0a70\u0a1f",mm:"%d \u0a2e\u0a3f\u0a70\u0a1f",h:"\u0a07\u0a71\u0a15 \u0a18\u0a70\u0a1f\u0a3e",hh:"%d \u0a18\u0a70\u0a1f\u0a47",d:"\u0a07\u0a71\u0a15 \u0a26\u0a3f\u0a28",dd:"%d \u0a26\u0a3f\u0a28",M:"\u0a07\u0a71\u0a15 \u0a2e\u0a39\u0a40\u0a28\u0a3e",MM:"%d \u0a2e\u0a39\u0a40\u0a28\u0a47",y:"\u0a07\u0a71\u0a15 \u0a38\u0a3e\u0a32",yy:"%d \u0a38\u0a3e\u0a32"},preparse:function(H){return H.replace(/[\u0a67\u0a68\u0a69\u0a6a\u0a6b\u0a6c\u0a6d\u0a6e\u0a6f\u0a66]/g,function(I){return P[I]})},postformat:function(H){return H.replace(/\d/g,function(I){return n[I]})},meridiemParse:/\u0a30\u0a3e\u0a24|\u0a38\u0a35\u0a47\u0a30|\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30|\u0a38\u0a3c\u0a3e\u0a2e/,meridiemHour:function(H,I){return 12===H&&(H=0),"\u0a30\u0a3e\u0a24"===I?H<4?H:H+12:"\u0a38\u0a35\u0a47\u0a30"===I?H:"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30"===I?H>=10?H:H+12:"\u0a38\u0a3c\u0a3e\u0a2e"===I?H+12:void 0},meridiem:function(H,I,B){return H<4?"\u0a30\u0a3e\u0a24":H<10?"\u0a38\u0a35\u0a47\u0a30":H<17?"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30":H<20?"\u0a38\u0a3c\u0a3e\u0a2e":"\u0a30\u0a3e\u0a24"},week:{dow:0,doy:6}})}(E(5439))},1605:function(z,W,E){!function(x){"use strict";var n="stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017adziernik_listopad_grudzie\u0144".split("_"),P="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015bnia_pa\u017adziernika_listopada_grudnia".split("_"),D=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^pa\u017a/i,/^lis/i,/^gru/i];function H(Y){return Y%10<5&&Y%10>1&&~~(Y/10)%10!=1}function I(Y,G,ee){var te=Y+" ";switch(ee){case"ss":return te+(H(Y)?"sekundy":"sekund");case"m":return G?"minuta":"minut\u0119";case"mm":return te+(H(Y)?"minuty":"minut");case"h":return G?"godzina":"godzin\u0119";case"hh":return te+(H(Y)?"godziny":"godzin");case"ww":return te+(H(Y)?"tygodnie":"tygodni");case"MM":return te+(H(Y)?"miesi\u0105ce":"miesi\u0119cy");case"yy":return te+(H(Y)?"lata":"lat")}}x.defineLocale("pl",{months:function(Y,G){return Y?/D MMMM/.test(G)?P[Y.month()]:n[Y.month()]:n},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017a_lis_gru".split("_"),monthsParse:D,longMonthsParse:D,shortMonthsParse:D,weekdays:"niedziela_poniedzia\u0142ek_wtorek_\u015broda_czwartek_pi\u0105tek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_\u015br_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_\u015ar_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dzi\u015b o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedziel\u0119 o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W \u015brod\u0119 o] LT";case 6:return"[W sobot\u0119 o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zesz\u0142\u0105 niedziel\u0119 o] LT";case 3:return"[W zesz\u0142\u0105 \u015brod\u0119 o] LT";case 6:return"[W zesz\u0142\u0105 sobot\u0119 o] LT";default:return"[W zesz\u0142y] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:I,m:I,mm:I,h:I,hh:I,d:"1 dzie\u0144",dd:"%d dni",w:"tydzie\u0144",ww:I,M:"miesi\u0105c",MM:I,y:"rok",yy:I},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},3840:function(z,W,E){!function(x){"use strict";x.defineLocale("pt-br",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_ter\xe7a-feira_quarta-feira_quinta-feira_sexta-feira_s\xe1bado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_s\xe1b".split("_"),weekdaysMin:"do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [\xe0s] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [\xe0s] HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",invalidDate:"Data inv\xe1lida"})}(E(5439))},4225:function(z,W,E){!function(x){"use strict";x.defineLocale("pt",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Ter\xe7a-feira_Quarta-feira_Quinta-feira_Sexta-feira_S\xe1bado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_S\xe1b".split("_"),weekdaysMin:"Do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",w:"uma semana",ww:"%d semanas",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(E(5439))},5128:function(z,W,E){!function(x){"use strict";function n(D,H,I){var Y=" ";return(D%100>=20||D>=100&&D%100==0)&&(Y=" de "),D+Y+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"s\u0103pt\u0103m\xe2ni",MM:"luni",yy:"ani"}[I]}x.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminic\u0103_luni_mar\u021bi_miercuri_joi_vineri_s\xe2mb\u0103t\u0103".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_S\xe2m".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_S\xe2".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[m\xe2ine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s \xeen urm\u0103",s:"c\xe2teva secunde",ss:n,m:"un minut",mm:n,h:"o or\u0103",hh:n,d:"o zi",dd:n,w:"o s\u0103pt\u0103m\xe2n\u0103",ww:n,M:"o lun\u0103",MM:n,y:"un an",yy:n},week:{dow:1,doy:7}})}(E(5439))},5127:function(z,W,E){!function(x){"use strict";function P(I,B,Y){return"m"===Y?B?"\u043c\u0438\u043d\u0443\u0442\u0430":"\u043c\u0438\u043d\u0443\u0442\u0443":I+" "+function n(I,B){var Y=I.split("_");return B%10==1&&B%100!=11?Y[0]:B%10>=2&&B%10<=4&&(B%100<10||B%100>=20)?Y[1]:Y[2]}({ss:B?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:B?"\u043c\u0438\u043d\u0443\u0442\u0430_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442":"\u043c\u0438\u043d\u0443\u0442\u0443_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442",hh:"\u0447\u0430\u0441_\u0447\u0430\u0441\u0430_\u0447\u0430\u0441\u043e\u0432",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u044f_\u0434\u043d\u0435\u0439",ww:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043d\u0435\u0434\u0435\u043b\u0438_\u043d\u0435\u0434\u0435\u043b\u044c",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u0430_\u043c\u0435\u0441\u044f\u0446\u0435\u0432",yy:"\u0433\u043e\u0434_\u0433\u043e\u0434\u0430_\u043b\u0435\u0442"}[Y],+I)}var D=[/^\u044f\u043d\u0432/i,/^\u0444\u0435\u0432/i,/^\u043c\u0430\u0440/i,/^\u0430\u043f\u0440/i,/^\u043c\u0430[\u0439\u044f]/i,/^\u0438\u044e\u043d/i,/^\u0438\u044e\u043b/i,/^\u0430\u0432\u0433/i,/^\u0441\u0435\u043d/i,/^\u043e\u043a\u0442/i,/^\u043d\u043e\u044f/i,/^\u0434\u0435\u043a/i];x.defineLocale("ru",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u044f_\u0444\u0435\u0432\u0440\u0430\u043b\u044f_\u043c\u0430\u0440\u0442\u0430_\u0430\u043f\u0440\u0435\u043b\u044f_\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433\u0443\u0441\u0442\u0430_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f_\u043e\u043a\u0442\u044f\u0431\u0440\u044f_\u043d\u043e\u044f\u0431\u0440\u044f_\u0434\u0435\u043a\u0430\u0431\u0440\u044f".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_")},monthsShort:{format:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_"),standalone:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440\u0442_\u0430\u043f\u0440._\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_")},weekdays:{standalone:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0430_\u0441\u0443\u0431\u0431\u043e\u0442\u0430".split("_"),format:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0443_\u0441\u0443\u0431\u0431\u043e\u0442\u0443".split("_"),isFormat:/\[ ?[\u0412\u0432] ?(?:\u043f\u0440\u043e\u0448\u043b\u0443\u044e|\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e|\u044d\u0442\u0443)? ?] ?dddd/},weekdaysShort:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),monthsParse:D,longMonthsParse:D,shortMonthsParse:D,monthsRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsShortRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsStrictRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044f\u044c]|\u0444\u0435\u0432\u0440\u0430\u043b[\u044f\u044c]|\u043c\u0430\u0440\u0442\u0430?|\u0430\u043f\u0440\u0435\u043b[\u044f\u044c]|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044f\u044c]|\u0438\u044e\u043b[\u044f\u044c]|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043e\u043a\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043d\u043e\u044f\u0431\u0440[\u044f\u044c]|\u0434\u0435\u043a\u0430\u0431\u0440[\u044f\u044c])/i,monthsShortStrictRegex:/^(\u044f\u043d\u0432\.|\u0444\u0435\u0432\u0440?\.|\u043c\u0430\u0440[\u0442.]|\u0430\u043f\u0440\.|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044c\u044f.]|\u0438\u044e\u043b[\u044c\u044f.]|\u0430\u0432\u0433\.|\u0441\u0435\u043d\u0442?\.|\u043e\u043a\u0442\.|\u043d\u043e\u044f\u0431?\.|\u0434\u0435\u043a\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., H:mm",LLLL:"dddd, D MMMM YYYY \u0433., H:mm"},calendar:{sameDay:"[\u0421\u0435\u0433\u043e\u0434\u043d\u044f, \u0432] LT",nextDay:"[\u0417\u0430\u0432\u0442\u0440\u0430, \u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430, \u0432] LT",nextWeek:function(I){if(I.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e] dddd, [\u0432] LT"}},lastWeek:function(I){if(I.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u043e\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u044b\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u0443\u044e] dddd, [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0447\u0435\u0440\u0435\u0437 %s",past:"%s \u043d\u0430\u0437\u0430\u0434",s:"\u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434",ss:P,m:P,mm:P,h:"\u0447\u0430\u0441",hh:P,d:"\u0434\u0435\u043d\u044c",dd:P,w:"\u043d\u0435\u0434\u0435\u043b\u044f",ww:P,M:"\u043c\u0435\u0441\u044f\u0446",MM:P,y:"\u0433\u043e\u0434",yy:P},meridiemParse:/\u043d\u043e\u0447\u0438|\u0443\u0442\u0440\u0430|\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430/i,isPM:function(I){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430)$/.test(I)},meridiem:function(I,B,Y){return I<4?"\u043d\u043e\u0447\u0438":I<12?"\u0443\u0442\u0440\u0430":I<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0435\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e|\u044f)/,ordinal:function(I,B){switch(B){case"M":case"d":case"DDD":return I+"-\u0439";case"D":return I+"-\u0433\u043e";case"w":case"W":return I+"-\u044f";default:return I}},week:{dow:1,doy:4}})}(E(5439))},2525:function(z,W,E){!function(x){"use strict";var n=["\u062c\u0646\u0648\u0631\u064a","\u0641\u064a\u0628\u0631\u0648\u0631\u064a","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u064a\u0644","\u0645\u0626\u064a","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0621\u0650","\u0622\u06af\u0633\u067d","\u0633\u064a\u067e\u067d\u0645\u0628\u0631","\u0622\u06aa\u067d\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u068a\u0633\u0645\u0628\u0631"],P=["\u0622\u0686\u0631","\u0633\u0648\u0645\u0631","\u0627\u06b1\u0627\u0631\u0648","\u0627\u0631\u0628\u0639","\u062e\u0645\u064a\u0633","\u062c\u0645\u0639","\u0687\u0646\u0687\u0631"];x.defineLocale("sd",{months:n,monthsShort:n,weekdays:P,weekdaysShort:P,weekdaysMin:P,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(H){return"\u0634\u0627\u0645"===H},meridiem:function(H,I,B){return H<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0627\u0684] LT",nextDay:"[\u0633\u0680\u0627\u06bb\u064a] LT",nextWeek:"dddd [\u0627\u06b3\u064a\u0646 \u0647\u0641\u062a\u064a \u062a\u064a] LT",lastDay:"[\u06aa\u0627\u0644\u0647\u0647] LT",lastWeek:"[\u06af\u0632\u0631\u064a\u0644 \u0647\u0641\u062a\u064a] dddd [\u062a\u064a] LT",sameElse:"L"},relativeTime:{future:"%s \u067e\u0648\u0621",past:"%s \u0627\u06b3",s:"\u0686\u0646\u062f \u0633\u064a\u06aa\u0646\u068a",ss:"%d \u0633\u064a\u06aa\u0646\u068a",m:"\u0647\u06aa \u0645\u0646\u067d",mm:"%d \u0645\u0646\u067d",h:"\u0647\u06aa \u06aa\u0644\u0627\u06aa",hh:"%d \u06aa\u0644\u0627\u06aa",d:"\u0647\u06aa \u068f\u064a\u0646\u0647\u0646",dd:"%d \u068f\u064a\u0646\u0647\u0646",M:"\u0647\u06aa \u0645\u0647\u064a\u0646\u0648",MM:"%d \u0645\u0647\u064a\u0646\u0627",y:"\u0647\u06aa \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(H){return H.replace(/\u060c/g,",")},postformat:function(H){return H.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(E(5439))},9893:function(z,W,E){!function(x){"use strict";x.defineLocale("se",{months:"o\u0111\u0111ajagem\xe1nnu_guovvam\xe1nnu_njuk\u010dam\xe1nnu_cuo\u014bom\xe1nnu_miessem\xe1nnu_geassem\xe1nnu_suoidnem\xe1nnu_borgem\xe1nnu_\u010dak\u010dam\xe1nnu_golggotm\xe1nnu_sk\xe1bmam\xe1nnu_juovlam\xe1nnu".split("_"),monthsShort:"o\u0111\u0111j_guov_njuk_cuo_mies_geas_suoi_borg_\u010dak\u010d_golg_sk\xe1b_juov".split("_"),weekdays:"sotnabeaivi_vuoss\xe1rga_ma\u014b\u014beb\xe1rga_gaskavahkku_duorastat_bearjadat_l\xe1vvardat".split("_"),weekdaysShort:"sotn_vuos_ma\u014b_gask_duor_bear_l\xe1v".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s gea\u017ees",past:"ma\u014bit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta m\xe1nnu",MM:"%d m\xe1nut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},3123:function(z,W,E){!function(x){"use strict";x.defineLocale("si",{months:"\u0da2\u0db1\u0dc0\u0dcf\u0dbb\u0dd2_\u0db4\u0dd9\u0db6\u0dbb\u0dc0\u0dcf\u0dbb\u0dd2_\u0db8\u0dcf\u0dbb\u0dca\u0dad\u0dd4_\u0d85\u0db4\u0dca\u200d\u0dbb\u0dda\u0dbd\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd\u0dc3\u0dca\u0dad\u0dd4_\u0dc3\u0dd0\u0db4\u0dca\u0dad\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0d94\u0d9a\u0dca\u0dad\u0ddd\u0db6\u0dbb\u0dca_\u0db1\u0ddc\u0dc0\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0daf\u0dd9\u0dc3\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca".split("_"),monthsShort:"\u0da2\u0db1_\u0db4\u0dd9\u0db6_\u0db8\u0dcf\u0dbb\u0dca_\u0d85\u0db4\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd_\u0dc3\u0dd0\u0db4\u0dca_\u0d94\u0d9a\u0dca_\u0db1\u0ddc\u0dc0\u0dd0_\u0daf\u0dd9\u0dc3\u0dd0".split("_"),weekdays:"\u0d89\u0dbb\u0dd2\u0daf\u0dcf_\u0dc3\u0db3\u0dd4\u0daf\u0dcf_\u0d85\u0d9f\u0dc4\u0dbb\u0dd4\u0dc0\u0dcf\u0daf\u0dcf_\u0db6\u0daf\u0dcf\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4\u0dc3\u0dca\u0db4\u0dad\u0dd2\u0db1\u0dca\u0daf\u0dcf_\u0dc3\u0dd2\u0d9a\u0dd4\u0dbb\u0dcf\u0daf\u0dcf_\u0dc3\u0dd9\u0db1\u0dc3\u0dd4\u0dbb\u0dcf\u0daf\u0dcf".split("_"),weekdaysShort:"\u0d89\u0dbb\u0dd2_\u0dc3\u0db3\u0dd4_\u0d85\u0d9f_\u0db6\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4_\u0dc3\u0dd2\u0d9a\u0dd4_\u0dc3\u0dd9\u0db1".split("_"),weekdaysMin:"\u0d89_\u0dc3_\u0d85_\u0db6_\u0db6\u0dca\u200d\u0dbb_\u0dc3\u0dd2_\u0dc3\u0dd9".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [\u0dc0\u0dd0\u0db1\u0dd2] dddd, a h:mm:ss"},calendar:{sameDay:"[\u0d85\u0daf] LT[\u0da7]",nextDay:"[\u0dc4\u0dd9\u0da7] LT[\u0da7]",nextWeek:"dddd LT[\u0da7]",lastDay:"[\u0d8a\u0dba\u0dda] LT[\u0da7]",lastWeek:"[\u0db4\u0dc3\u0dd4\u0d9c\u0dd2\u0dba] dddd LT[\u0da7]",sameElse:"L"},relativeTime:{future:"%s\u0d9a\u0dd2\u0db1\u0dca",past:"%s\u0d9a\u0da7 \u0db4\u0dd9\u0dbb",s:"\u0dad\u0dad\u0dca\u0db4\u0dbb \u0d9a\u0dd2\u0dc4\u0dd2\u0db4\u0dba",ss:"\u0dad\u0dad\u0dca\u0db4\u0dbb %d",m:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4\u0dc0",mm:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4 %d",h:"\u0db4\u0dd0\u0dba",hh:"\u0db4\u0dd0\u0dba %d",d:"\u0daf\u0dd2\u0db1\u0dba",dd:"\u0daf\u0dd2\u0db1 %d",M:"\u0db8\u0dcf\u0dc3\u0dba",MM:"\u0db8\u0dcf\u0dc3 %d",y:"\u0dc0\u0dc3\u0dbb",yy:"\u0dc0\u0dc3\u0dbb %d"},dayOfMonthOrdinalParse:/\d{1,2} \u0dc0\u0dd0\u0db1\u0dd2/,ordinal:function(P){return P+" \u0dc0\u0dd0\u0db1\u0dd2"},meridiemParse:/\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4|\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4|\u0db4\u0dd9.\u0dc0|\u0db4.\u0dc0./,isPM:function(P){return"\u0db4.\u0dc0."===P||"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4"===P},meridiem:function(P,D,H){return P>11?H?"\u0db4.\u0dc0.":"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4":H?"\u0db4\u0dd9.\u0dc0.":"\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4"}})}(E(5439))},3027:function(z,W,E){!function(x){"use strict";var n="janu\xe1r_febru\xe1r_marec_apr\xedl_m\xe1j_j\xfan_j\xfal_august_september_okt\xf3ber_november_december".split("_"),P="jan_feb_mar_apr_m\xe1j_j\xfan_j\xfal_aug_sep_okt_nov_dec".split("_");function D(B){return B>1&&B<5}function H(B,Y,G,ee){var te=B+" ";switch(G){case"s":return Y||ee?"p\xe1r sek\xfand":"p\xe1r sekundami";case"ss":return Y||ee?te+(D(B)?"sekundy":"sek\xfand"):te+"sekundami";case"m":return Y?"min\xfata":ee?"min\xfatu":"min\xfatou";case"mm":return Y||ee?te+(D(B)?"min\xfaty":"min\xfat"):te+"min\xfatami";case"h":return Y?"hodina":ee?"hodinu":"hodinou";case"hh":return Y||ee?te+(D(B)?"hodiny":"hod\xedn"):te+"hodinami";case"d":return Y||ee?"de\u0148":"d\u0148om";case"dd":return Y||ee?te+(D(B)?"dni":"dn\xed"):te+"d\u0148ami";case"M":return Y||ee?"mesiac":"mesiacom";case"MM":return Y||ee?te+(D(B)?"mesiace":"mesiacov"):te+"mesiacmi";case"y":return Y||ee?"rok":"rokom";case"yy":return Y||ee?te+(D(B)?"roky":"rokov"):te+"rokmi"}}x.defineLocale("sk",{months:n,monthsShort:P,weekdays:"nede\u013ea_pondelok_utorok_streda_\u0161tvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_\u0161t_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_\u0161t_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nede\u013eu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo \u0161tvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[v\u010dera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minul\xfa nede\u013eu o] LT";case 1:case 2:case 4:case 5:return"[minul\xfd] dddd [o] LT";case 3:return"[minul\xfa stredu o] LT";case 6:return"[minul\xfa sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:H,ss:H,m:H,mm:H,h:H,hh:H,d:H,dd:H,M:H,MM:H,y:H,yy:H},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},8106:function(z,W,E){!function(x){"use strict";function n(D,H,I,B){var Y=D+" ";switch(I){case"s":return H||B?"nekaj sekund":"nekaj sekundami";case"ss":return Y+(1===D?H?"sekundo":"sekundi":2===D?H||B?"sekundi":"sekundah":D<5?H||B?"sekunde":"sekundah":"sekund");case"m":return H?"ena minuta":"eno minuto";case"mm":return Y+(1===D?H?"minuta":"minuto":2===D?H||B?"minuti":"minutama":D<5?H||B?"minute":"minutami":H||B?"minut":"minutami");case"h":return H?"ena ura":"eno uro";case"hh":return Y+(1===D?H?"ura":"uro":2===D?H||B?"uri":"urama":D<5?H||B?"ure":"urami":H||B?"ur":"urami");case"d":return H||B?"en dan":"enim dnem";case"dd":return Y+(1===D?H||B?"dan":"dnem":2===D?H||B?"dni":"dnevoma":H||B?"dni":"dnevi");case"M":return H||B?"en mesec":"enim mesecem";case"MM":return Y+(1===D?H||B?"mesec":"mesecem":2===D?H||B?"meseca":"mesecema":D<5?H||B?"mesece":"meseci":H||B?"mesecev":"meseci");case"y":return H||B?"eno leto":"enim letom";case"yy":return Y+(1===D?H||B?"leto":"letom":2===D?H||B?"leti":"letoma":D<5?H||B?"leta":"leti":H||B?"let":"leti")}}x.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_\u010detrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._\u010det._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_\u010de_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[v\u010deraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prej\u0161njo] [nedeljo] [ob] LT";case 3:return"[prej\u0161njo] [sredo] [ob] LT";case 6:return"[prej\u0161njo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prej\u0161nji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"\u010dez %s",past:"pred %s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(E(5439))},8799:function(z,W,E){!function(x){"use strict";x.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_N\xebntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_N\xebn_Dhj".split("_"),weekdays:"E Diel_E H\xebn\xeb_E Mart\xeb_E M\xebrkur\xeb_E Enjte_E Premte_E Shtun\xeb".split("_"),weekdaysShort:"Die_H\xebn_Mar_M\xebr_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_M\xeb_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(P){return"M"===P.charAt(0)},meridiem:function(P,D,H){return P<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot n\xeb] LT",nextDay:"[Nes\xebr n\xeb] LT",nextWeek:"dddd [n\xeb] LT",lastDay:"[Dje n\xeb] LT",lastWeek:"dddd [e kaluar n\xeb] LT",sameElse:"L"},relativeTime:{future:"n\xeb %s",past:"%s m\xeb par\xeb",s:"disa sekonda",ss:"%d sekonda",m:"nj\xeb minut\xeb",mm:"%d minuta",h:"nj\xeb or\xeb",hh:"%d or\xeb",d:"nj\xeb dit\xeb",dd:"%d dit\xeb",M:"nj\xeb muaj",MM:"%d muaj",y:"nj\xeb vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},2872:function(z,W,E){!function(x){"use strict";var n={words:{ss:["\u0441\u0435\u043a\u0443\u043d\u0434\u0430","\u0441\u0435\u043a\u0443\u043d\u0434\u0435","\u0441\u0435\u043a\u0443\u043d\u0434\u0438"],m:["\u0458\u0435\u0434\u0430\u043d \u043c\u0438\u043d\u0443\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u043c\u0438\u043d\u0443\u0442\u0430"],mm:["\u043c\u0438\u043d\u0443\u0442","\u043c\u0438\u043d\u0443\u0442\u0430","\u043c\u0438\u043d\u0443\u0442\u0430"],h:["\u0458\u0435\u0434\u0430\u043d \u0441\u0430\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u0441\u0430\u0442\u0430"],hh:["\u0441\u0430\u0442","\u0441\u0430\u0442\u0430","\u0441\u0430\u0442\u0438"],d:["\u0458\u0435\u0434\u0430\u043d \u0434\u0430\u043d","\u0458\u0435\u0434\u043d\u043e\u0433 \u0434\u0430\u043d\u0430"],dd:["\u0434\u0430\u043d","\u0434\u0430\u043d\u0430","\u0434\u0430\u043d\u0430"],M:["\u0458\u0435\u0434\u0430\u043d \u043c\u0435\u0441\u0435\u0446","\u0458\u0435\u0434\u043d\u043e\u0433 \u043c\u0435\u0441\u0435\u0446\u0430"],MM:["\u043c\u0435\u0441\u0435\u0446","\u043c\u0435\u0441\u0435\u0446\u0430","\u043c\u0435\u0441\u0435\u0446\u0438"],y:["\u0458\u0435\u0434\u043d\u0443 \u0433\u043e\u0434\u0438\u043d\u0443","\u0458\u0435\u0434\u043d\u0435 \u0433\u043e\u0434\u0438\u043d\u0435"],yy:["\u0433\u043e\u0434\u0438\u043d\u0443","\u0433\u043e\u0434\u0438\u043d\u0435","\u0433\u043e\u0434\u0438\u043d\u0430"]},correctGrammaticalCase:function(D,H){return D%10>=1&&D%10<=4&&(D%100<10||D%100>=20)?D%10==1?H[0]:H[1]:H[2]},translate:function(D,H,I,B){var G,Y=n.words[I];return 1===I.length?"y"===I&&H?"\u0458\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430":B||H?Y[0]:Y[1]:(G=n.correctGrammaticalCase(D,Y),"yy"===I&&H&&"\u0433\u043e\u0434\u0438\u043d\u0443"===G?D+" \u0433\u043e\u0434\u0438\u043d\u0430":D+" "+G)}};x.defineLocale("sr-cyrl",{months:"\u0458\u0430\u043d\u0443\u0430\u0440_\u0444\u0435\u0431\u0440\u0443\u0430\u0440_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0431\u0430\u0440_\u043e\u043a\u0442\u043e\u0431\u0430\u0440_\u043d\u043e\u0432\u0435\u043c\u0431\u0430\u0440_\u0434\u0435\u0446\u0435\u043c\u0431\u0430\u0440".split("_"),monthsShort:"\u0458\u0430\u043d._\u0444\u0435\u0431._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433._\u0441\u0435\u043f._\u043e\u043a\u0442._\u043d\u043e\u0432._\u0434\u0435\u0446.".split("_"),monthsParseExact:!0,weekdays:"\u043d\u0435\u0434\u0435\u0459\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u0430\u043a_\u0443\u0442\u043e\u0440\u0430\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u0430\u043a_\u043f\u0435\u0442\u0430\u043a_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434._\u043f\u043e\u043d._\u0443\u0442\u043e._\u0441\u0440\u0435._\u0447\u0435\u0442._\u043f\u0435\u0442._\u0441\u0443\u0431.".split("_"),weekdaysMin:"\u043d\u0435_\u043f\u043e_\u0443\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441\u0443".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[\u0434\u0430\u043d\u0430\u0441 \u0443] LT",nextDay:"[\u0441\u0443\u0442\u0440\u0430 \u0443] LT",nextWeek:function(){switch(this.day()){case 0:return"[\u0443] [\u043d\u0435\u0434\u0435\u0459\u0443] [\u0443] LT";case 3:return"[\u0443] [\u0441\u0440\u0435\u0434\u0443] [\u0443] LT";case 6:return"[\u0443] [\u0441\u0443\u0431\u043e\u0442\u0443] [\u0443] LT";case 1:case 2:case 4:case 5:return"[\u0443] dddd [\u0443] LT"}},lastDay:"[\u0458\u0443\u0447\u0435 \u0443] LT",lastWeek:function(){return["[\u043f\u0440\u043e\u0448\u043b\u0435] [\u043d\u0435\u0434\u0435\u0459\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0443\u0442\u043e\u0440\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0440\u0435\u0434\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0447\u0435\u0442\u0432\u0440\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u0435\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0443\u0431\u043e\u0442\u0435] [\u0443] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435 %s",s:"\u043d\u0435\u043a\u043e\u043b\u0438\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:n.translate,m:n.translate,mm:n.translate,h:n.translate,hh:n.translate,d:n.translate,dd:n.translate,M:n.translate,MM:n.translate,y:n.translate,yy:n.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(E(5439))},7949:function(z,W,E){!function(x){"use strict";var n={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],d:["jedan dan","jednog dana"],dd:["dan","dana","dana"],M:["jedan mesec","jednog meseca"],MM:["mesec","meseca","meseci"],y:["jednu godinu","jedne godine"],yy:["godinu","godine","godina"]},correctGrammaticalCase:function(D,H){return D%10>=1&&D%10<=4&&(D%100<10||D%100>=20)?D%10==1?H[0]:H[1]:H[2]},translate:function(D,H,I,B){var G,Y=n.words[I];return 1===I.length?"y"===I&&H?"jedna godina":B||H?Y[0]:Y[1]:(G=n.correctGrammaticalCase(D,Y),"yy"===I&&H&&"godinu"===G?D+" godina":D+" "+G)}};x.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedelje] [u] LT","[pro\u0161log] [ponedeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:n.translate,m:n.translate,mm:n.translate,h:n.translate,hh:n.translate,d:n.translate,dd:n.translate,M:n.translate,MM:n.translate,y:n.translate,yy:n.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(E(5439))},6167:function(z,W,E){!function(x){"use strict";x.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(P,D,H){return P<11?"ekuseni":P<15?"emini":P<19?"entsambama":"ebusuku"},meridiemHour:function(P,D){return 12===P&&(P=0),"ekuseni"===D?P:"emini"===D?P>=11?P:P+12:"entsambama"===D||"ebusuku"===D?0===P?0:P+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(E(5439))},9713:function(z,W,E){!function(x){"use strict";x.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf6ndag_m\xe5ndag_tisdag_onsdag_torsdag_fredag_l\xf6rdag".split("_"),weekdaysShort:"s\xf6n_m\xe5n_tis_ons_tor_fre_l\xf6r".split("_"),weekdaysMin:"s\xf6_m\xe5_ti_on_to_fr_l\xf6".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Ig\xe5r] LT",nextWeek:"[P\xe5] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"f\xf6r %s sedan",s:"n\xe5gra sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en m\xe5nad",MM:"%d m\xe5nader",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(P){var D=P%10;return P+(1==~~(P%100/10)?":e":1===D||2===D?":a":":e")},week:{dow:1,doy:4}})}(E(5439))},1982:function(z,W,E){!function(x){"use strict";x.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"hh:mm A",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(E(5439))},2732:function(z,W,E){!function(x){"use strict";var n={1:"\u0be7",2:"\u0be8",3:"\u0be9",4:"\u0bea",5:"\u0beb",6:"\u0bec",7:"\u0bed",8:"\u0bee",9:"\u0bef",0:"\u0be6"},P={"\u0be7":"1","\u0be8":"2","\u0be9":"3","\u0bea":"4","\u0beb":"5","\u0bec":"6","\u0bed":"7","\u0bee":"8","\u0bef":"9","\u0be6":"0"};x.defineLocale("ta",{months:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),monthsShort:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),weekdays:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bcd\u0bb1\u0bc1\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0b9f\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0ba9\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8".split("_"),weekdaysShort:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bc1_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0bb3\u0bcd_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0ba9\u0bcd_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf_\u0b9a\u0ba9\u0bbf".split("_"),weekdaysMin:"\u0b9e\u0bbe_\u0ba4\u0bbf_\u0b9a\u0bc6_\u0baa\u0bc1_\u0bb5\u0bbf_\u0bb5\u0bc6_\u0b9a".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[\u0b87\u0ba9\u0bcd\u0bb1\u0bc1] LT",nextDay:"[\u0ba8\u0bbe\u0bb3\u0bc8] LT",nextWeek:"dddd, LT",lastDay:"[\u0ba8\u0bc7\u0bb1\u0bcd\u0bb1\u0bc1] LT",lastWeek:"[\u0b95\u0b9f\u0ba8\u0bcd\u0ba4 \u0bb5\u0bbe\u0bb0\u0bae\u0bcd] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0b87\u0bb2\u0bcd",past:"%s \u0bae\u0bc1\u0ba9\u0bcd",s:"\u0b92\u0bb0\u0bc1 \u0b9a\u0bbf\u0bb2 \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",ss:"%d \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",m:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0bae\u0bcd",mm:"%d \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0b99\u0bcd\u0b95\u0bb3\u0bcd",h:"\u0b92\u0bb0\u0bc1 \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",hh:"%d \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",d:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbe\u0bb3\u0bcd",dd:"%d \u0ba8\u0bbe\u0b9f\u0bcd\u0b95\u0bb3\u0bcd",M:"\u0b92\u0bb0\u0bc1 \u0bae\u0bbe\u0ba4\u0bae\u0bcd",MM:"%d \u0bae\u0bbe\u0ba4\u0b99\u0bcd\u0b95\u0bb3\u0bcd",y:"\u0b92\u0bb0\u0bc1 \u0bb5\u0bb0\u0bc1\u0b9f\u0bae\u0bcd",yy:"%d \u0b86\u0ba3\u0bcd\u0b9f\u0bc1\u0b95\u0bb3\u0bcd"},dayOfMonthOrdinalParse:/\d{1,2}\u0bb5\u0ba4\u0bc1/,ordinal:function(H){return H+"\u0bb5\u0ba4\u0bc1"},preparse:function(H){return H.replace(/[\u0be7\u0be8\u0be9\u0bea\u0beb\u0bec\u0bed\u0bee\u0bef\u0be6]/g,function(I){return P[I]})},postformat:function(H){return H.replace(/\d/g,function(I){return n[I]})},meridiemParse:/\u0baf\u0bbe\u0bae\u0bae\u0bcd|\u0bb5\u0bc8\u0b95\u0bb1\u0bc8|\u0b95\u0bbe\u0bb2\u0bc8|\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd|\u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1|\u0bae\u0bbe\u0bb2\u0bc8/,meridiem:function(H,I,B){return H<2?" \u0baf\u0bbe\u0bae\u0bae\u0bcd":H<6?" \u0bb5\u0bc8\u0b95\u0bb1\u0bc8":H<10?" \u0b95\u0bbe\u0bb2\u0bc8":H<14?" \u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd":H<18?" \u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1":H<22?" \u0bae\u0bbe\u0bb2\u0bc8":" \u0baf\u0bbe\u0bae\u0bae\u0bcd"},meridiemHour:function(H,I){return 12===H&&(H=0),"\u0baf\u0bbe\u0bae\u0bae\u0bcd"===I?H<2?H:H+12:"\u0bb5\u0bc8\u0b95\u0bb1\u0bc8"===I||"\u0b95\u0bbe\u0bb2\u0bc8"===I||"\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd"===I&&H>=10?H:H+12},week:{dow:0,doy:6}})}(E(5439))},3636:function(z,W,E){!function(x){"use strict";x.defineLocale("te",{months:"\u0c1c\u0c28\u0c35\u0c30\u0c3f_\u0c2b\u0c3f\u0c2c\u0c4d\u0c30\u0c35\u0c30\u0c3f_\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f\u0c32\u0c4d_\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17\u0c38\u0c4d\u0c1f\u0c41_\u0c38\u0c46\u0c2a\u0c4d\u0c1f\u0c46\u0c02\u0c2c\u0c30\u0c4d_\u0c05\u0c15\u0c4d\u0c1f\u0c4b\u0c2c\u0c30\u0c4d_\u0c28\u0c35\u0c02\u0c2c\u0c30\u0c4d_\u0c21\u0c3f\u0c38\u0c46\u0c02\u0c2c\u0c30\u0c4d".split("_"),monthsShort:"\u0c1c\u0c28._\u0c2b\u0c3f\u0c2c\u0c4d\u0c30._\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f._\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17._\u0c38\u0c46\u0c2a\u0c4d._\u0c05\u0c15\u0c4d\u0c1f\u0c4b._\u0c28\u0c35._\u0c21\u0c3f\u0c38\u0c46.".split("_"),monthsParseExact:!0,weekdays:"\u0c06\u0c26\u0c3f\u0c35\u0c3e\u0c30\u0c02_\u0c38\u0c4b\u0c2e\u0c35\u0c3e\u0c30\u0c02_\u0c2e\u0c02\u0c17\u0c33\u0c35\u0c3e\u0c30\u0c02_\u0c2c\u0c41\u0c27\u0c35\u0c3e\u0c30\u0c02_\u0c17\u0c41\u0c30\u0c41\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c41\u0c15\u0c4d\u0c30\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c28\u0c3f\u0c35\u0c3e\u0c30\u0c02".split("_"),weekdaysShort:"\u0c06\u0c26\u0c3f_\u0c38\u0c4b\u0c2e_\u0c2e\u0c02\u0c17\u0c33_\u0c2c\u0c41\u0c27_\u0c17\u0c41\u0c30\u0c41_\u0c36\u0c41\u0c15\u0c4d\u0c30_\u0c36\u0c28\u0c3f".split("_"),weekdaysMin:"\u0c06_\u0c38\u0c4b_\u0c2e\u0c02_\u0c2c\u0c41_\u0c17\u0c41_\u0c36\u0c41_\u0c36".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c28\u0c47\u0c21\u0c41] LT",nextDay:"[\u0c30\u0c47\u0c2a\u0c41] LT",nextWeek:"dddd, LT",lastDay:"[\u0c28\u0c3f\u0c28\u0c4d\u0c28] LT",lastWeek:"[\u0c17\u0c24] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0c32\u0c4b",past:"%s \u0c15\u0c4d\u0c30\u0c3f\u0c24\u0c02",s:"\u0c15\u0c4a\u0c28\u0c4d\u0c28\u0c3f \u0c15\u0c4d\u0c37\u0c23\u0c3e\u0c32\u0c41",ss:"%d \u0c38\u0c46\u0c15\u0c28\u0c4d\u0c32\u0c41",m:"\u0c12\u0c15 \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c02",mm:"%d \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c3e\u0c32\u0c41",h:"\u0c12\u0c15 \u0c17\u0c02\u0c1f",hh:"%d \u0c17\u0c02\u0c1f\u0c32\u0c41",d:"\u0c12\u0c15 \u0c30\u0c4b\u0c1c\u0c41",dd:"%d \u0c30\u0c4b\u0c1c\u0c41\u0c32\u0c41",M:"\u0c12\u0c15 \u0c28\u0c46\u0c32",MM:"%d \u0c28\u0c46\u0c32\u0c32\u0c41",y:"\u0c12\u0c15 \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c02",yy:"%d \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c3e\u0c32\u0c41"},dayOfMonthOrdinalParse:/\d{1,2}\u0c35/,ordinal:"%d\u0c35",meridiemParse:/\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f|\u0c09\u0c26\u0c2f\u0c02|\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02|\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02/,meridiemHour:function(P,D){return 12===P&&(P=0),"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"===D?P<4?P:P+12:"\u0c09\u0c26\u0c2f\u0c02"===D?P:"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02"===D?P>=10?P:P+12:"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02"===D?P+12:void 0},meridiem:function(P,D,H){return P<4?"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f":P<10?"\u0c09\u0c26\u0c2f\u0c02":P<17?"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02":P<20?"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02":"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"},week:{dow:0,doy:6}})}(E(5439))},2115:function(z,W,E){!function(x){"use strict";x.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Ju\xf1u_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"segundu balun",ss:"segundu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(P){var D=P%10;return P+(1==~~(P%100/10)?"th":1===D?"st":2===D?"nd":3===D?"rd":"th")},week:{dow:1,doy:4}})}(E(5439))},9801:function(z,W,E){!function(x){"use strict";var n={0:"-\u0443\u043c",1:"-\u0443\u043c",2:"-\u044e\u043c",3:"-\u044e\u043c",4:"-\u0443\u043c",5:"-\u0443\u043c",6:"-\u0443\u043c",7:"-\u0443\u043c",8:"-\u0443\u043c",9:"-\u0443\u043c",10:"-\u0443\u043c",12:"-\u0443\u043c",13:"-\u0443\u043c",20:"-\u0443\u043c",30:"-\u044e\u043c",40:"-\u0443\u043c",50:"-\u0443\u043c",60:"-\u0443\u043c",70:"-\u0443\u043c",80:"-\u0443\u043c",90:"-\u0443\u043c",100:"-\u0443\u043c"};x.defineLocale("tg",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0430\u043b\u0438_\u043c\u0430\u0440\u0442\u0438_\u0430\u043f\u0440\u0435\u043b\u0438_\u043c\u0430\u0439\u0438_\u0438\u044e\u043d\u0438_\u0438\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442\u0438_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u0438_\u043e\u043a\u0442\u044f\u0431\u0440\u0438_\u043d\u043e\u044f\u0431\u0440\u0438_\u0434\u0435\u043a\u0430\u0431\u0440\u0438".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_")},monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u044f\u043a\u0448\u0430\u043d\u0431\u0435_\u0434\u0443\u0448\u0430\u043d\u0431\u0435_\u0441\u0435\u0448\u0430\u043d\u0431\u0435_\u0447\u043e\u0440\u0448\u0430\u043d\u0431\u0435_\u043f\u0430\u043d\u04b7\u0448\u0430\u043d\u0431\u0435_\u04b7\u0443\u043c\u044a\u0430_\u0448\u0430\u043d\u0431\u0435".split("_"),weekdaysShort:"\u044f\u0448\u0431_\u0434\u0448\u0431_\u0441\u0448\u0431_\u0447\u0448\u0431_\u043f\u0448\u0431_\u04b7\u0443\u043c_\u0448\u043d\u0431".split("_"),weekdaysMin:"\u044f\u0448_\u0434\u0448_\u0441\u0448_\u0447\u0448_\u043f\u0448_\u04b7\u043c_\u0448\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0418\u043c\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextDay:"[\u0424\u0430\u0440\u0434\u043e \u0441\u043e\u0430\u0442\u0438] LT",lastDay:"[\u0414\u0438\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u043e\u044f\u043d\u0434\u0430 \u0441\u043e\u0430\u0442\u0438] LT",lastWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u0433\u0443\u0437\u0430\u0448\u0442\u0430 \u0441\u043e\u0430\u0442\u0438] LT",sameElse:"L"},relativeTime:{future:"\u0431\u0430\u044a\u0434\u0438 %s",past:"%s \u043f\u0435\u0448",s:"\u044f\u043a\u0447\u0430\u043d\u0434 \u0441\u043e\u043d\u0438\u044f",m:"\u044f\u043a \u0434\u0430\u049b\u0438\u049b\u0430",mm:"%d \u0434\u0430\u049b\u0438\u049b\u0430",h:"\u044f\u043a \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u044f\u043a \u0440\u04ef\u0437",dd:"%d \u0440\u04ef\u0437",M:"\u044f\u043a \u043c\u043e\u04b3",MM:"%d \u043c\u043e\u04b3",y:"\u044f\u043a \u0441\u043e\u043b",yy:"%d \u0441\u043e\u043b"},meridiemParse:/\u0448\u0430\u0431|\u0441\u0443\u0431\u04b3|\u0440\u04ef\u0437|\u0431\u0435\u0433\u043e\u04b3/,meridiemHour:function(D,H){return 12===D&&(D=0),"\u0448\u0430\u0431"===H?D<4?D:D+12:"\u0441\u0443\u0431\u04b3"===H?D:"\u0440\u04ef\u0437"===H?D>=11?D:D+12:"\u0431\u0435\u0433\u043e\u04b3"===H?D+12:void 0},meridiem:function(D,H,I){return D<4?"\u0448\u0430\u0431":D<11?"\u0441\u0443\u0431\u04b3":D<16?"\u0440\u04ef\u0437":D<19?"\u0431\u0435\u0433\u043e\u04b3":"\u0448\u0430\u0431"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0443\u043c|\u044e\u043c)/,ordinal:function(D){return D+(n[D]||n[D%10]||n[D>=100?100:null])},week:{dow:1,doy:7}})}(E(5439))},2868:function(z,W,E){!function(x){"use strict";x.defineLocale("th",{months:"\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21_\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c_\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21_\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19_\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21_\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19_\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21_\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21_\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19_\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21_\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19_\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21".split("_"),monthsShort:"\u0e21.\u0e04._\u0e01.\u0e1e._\u0e21\u0e35.\u0e04._\u0e40\u0e21.\u0e22._\u0e1e.\u0e04._\u0e21\u0e34.\u0e22._\u0e01.\u0e04._\u0e2a.\u0e04._\u0e01.\u0e22._\u0e15.\u0e04._\u0e1e.\u0e22._\u0e18.\u0e04.".split("_"),monthsParseExact:!0,weekdays:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysShort:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysMin:"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm",LLLL:"\u0e27\u0e31\u0e19dddd\u0e17\u0e35\u0e48 D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm"},meridiemParse:/\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07|\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07/,isPM:function(P){return"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"===P},meridiem:function(P,D,H){return P<12?"\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07":"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"},calendar:{sameDay:"[\u0e27\u0e31\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextDay:"[\u0e1e\u0e23\u0e38\u0e48\u0e07\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextWeek:"dddd[\u0e2b\u0e19\u0e49\u0e32 \u0e40\u0e27\u0e25\u0e32] LT",lastDay:"[\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e27\u0e32\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",lastWeek:"[\u0e27\u0e31\u0e19]dddd[\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27 \u0e40\u0e27\u0e25\u0e32] LT",sameElse:"L"},relativeTime:{future:"\u0e2d\u0e35\u0e01 %s",past:"%s\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27",s:"\u0e44\u0e21\u0e48\u0e01\u0e35\u0e48\u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",ss:"%d \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",m:"1 \u0e19\u0e32\u0e17\u0e35",mm:"%d \u0e19\u0e32\u0e17\u0e35",h:"1 \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",hh:"%d \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",d:"1 \u0e27\u0e31\u0e19",dd:"%d \u0e27\u0e31\u0e19",w:"1 \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",ww:"%d \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",M:"1 \u0e40\u0e14\u0e37\u0e2d\u0e19",MM:"%d \u0e40\u0e14\u0e37\u0e2d\u0e19",y:"1 \u0e1b\u0e35",yy:"%d \u0e1b\u0e35"}})}(E(5439))},1310:function(z,W,E){!function(x){"use strict";var n={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'\xfcnji",4:"'\xfcnji",100:"'\xfcnji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"};x.defineLocale("tk",{months:"\xddanwar_Fewral_Mart_Aprel_Ma\xfd_I\xfdun_I\xfdul_Awgust_Sent\xfdabr_Okt\xfdabr_No\xfdabr_Dekabr".split("_"),monthsShort:"\xddan_Few_Mar_Apr_Ma\xfd_I\xfdn_I\xfdl_Awg_Sen_Okt_No\xfd_Dek".split("_"),weekdays:"\xddek\u015fenbe_Du\u015fenbe_Si\u015fenbe_\xc7ar\u015fenbe_Pen\u015fenbe_Anna_\u015eenbe".split("_"),weekdaysShort:"\xddek_Du\u015f_Si\u015f_\xc7ar_Pen_Ann_\u015een".split("_"),weekdaysMin:"\xddk_D\u015f_S\u015f_\xc7r_Pn_An_\u015en".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[d\xfc\xfdn] LT",lastWeek:"[ge\xe7en] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s so\u0148",past:"%s \xf6\u0148",s:"birn\xe4\xe7e sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir a\xfd",MM:"%d a\xfd",y:"bir \xfdyl",yy:"%d \xfdyl"},ordinal:function(D,H){switch(H){case"d":case"D":case"Do":case"DD":return D;default:if(0===D)return D+"'unjy";var I=D%10;return D+(n[I]||n[D%100-I]||n[D>=100?100:null])}},week:{dow:1,doy:7}})}(E(5439))},2360:function(z,W,E){!function(x){"use strict";x.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(P){return P},week:{dow:1,doy:4}})}(E(5439))},6645:function(z,W,E){!function(x){"use strict";var n="pagh_wa\u2019_cha\u2019_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function H(Y,G,ee,te){var ae=function I(Y){var G=Math.floor(Y%1e3/100),ee=Math.floor(Y%100/10),te=Y%10,ae="";return G>0&&(ae+=n[G]+"vatlh"),ee>0&&(ae+=(""!==ae?" ":"")+n[ee]+"maH"),te>0&&(ae+=(""!==ae?" ":"")+n[te]),""===ae?"pagh":ae}(Y);switch(ee){case"ss":return ae+" lup";case"mm":return ae+" tup";case"hh":return ae+" rep";case"dd":return ae+" jaj";case"MM":return ae+" jar";case"yy":return ae+" DIS"}}x.defineLocale("tlh",{months:"tera\u2019 jar wa\u2019_tera\u2019 jar cha\u2019_tera\u2019 jar wej_tera\u2019 jar loS_tera\u2019 jar vagh_tera\u2019 jar jav_tera\u2019 jar Soch_tera\u2019 jar chorgh_tera\u2019 jar Hut_tera\u2019 jar wa\u2019maH_tera\u2019 jar wa\u2019maH wa\u2019_tera\u2019 jar wa\u2019maH cha\u2019".split("_"),monthsShort:"jar wa\u2019_jar cha\u2019_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa\u2019maH_jar wa\u2019maH wa\u2019_jar wa\u2019maH cha\u2019".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa\u2019leS] LT",nextWeek:"LLL",lastDay:"[wa\u2019Hu\u2019] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function P(Y){var G=Y;return-1!==Y.indexOf("jaj")?G.slice(0,-3)+"leS":-1!==Y.indexOf("jar")?G.slice(0,-3)+"waQ":-1!==Y.indexOf("DIS")?G.slice(0,-3)+"nem":G+" pIq"},past:function D(Y){var G=Y;return-1!==Y.indexOf("jaj")?G.slice(0,-3)+"Hu\u2019":-1!==Y.indexOf("jar")?G.slice(0,-3)+"wen":-1!==Y.indexOf("DIS")?G.slice(0,-3)+"ben":G+" ret"},s:"puS lup",ss:H,m:"wa\u2019 tup",mm:H,h:"wa\u2019 rep",hh:H,d:"wa\u2019 jaj",dd:H,M:"wa\u2019 jar",MM:H,y:"wa\u2019 DIS",yy:H},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},8374:function(z,W,E){!function(x){"use strict";var n={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'\xfcnc\xfc",4:"'\xfcnc\xfc",100:"'\xfcnc\xfc",6:"'nc\u0131",9:"'uncu",10:"'uncu",30:"'uncu",60:"'\u0131nc\u0131",90:"'\u0131nc\u0131"};x.defineLocale("tr",{months:"Ocak_\u015eubat_Mart_Nisan_May\u0131s_Haziran_Temmuz_A\u011fustos_Eyl\xfcl_Ekim_Kas\u0131m_Aral\u0131k".split("_"),monthsShort:"Oca_\u015eub_Mar_Nis_May_Haz_Tem_A\u011fu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Sal\u0131_\xc7ar\u015famba_Per\u015fembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pzt_Sal_\xc7ar_Per_Cum_Cmt".split("_"),weekdaysMin:"Pz_Pt_Sa_\xc7a_Pe_Cu_Ct".split("_"),meridiem:function(D,H,I){return D<12?I?"\xf6\xf6":"\xd6\xd6":I?"\xf6s":"\xd6S"},meridiemParse:/\xf6\xf6|\xd6\xd6|\xf6s|\xd6S/,isPM:function(D){return"\xf6s"===D||"\xd6S"===D},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[yar\u0131n saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[d\xfcn] LT",lastWeek:"[ge\xe7en] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \xf6nce",s:"birka\xe7 saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir y\u0131l",yy:"%d y\u0131l"},ordinal:function(D,H){switch(H){case"d":case"D":case"Do":case"DD":return D;default:if(0===D)return D+"'\u0131nc\u0131";var I=D%10;return D+(n[I]||n[D%100-I]||n[D>=100?100:null])}},week:{dow:1,doy:7}})}(E(5439))},256:function(z,W,E){!function(x){"use strict";function P(D,H,I,B){var Y={s:["viensas secunds","'iensas secunds"],ss:[D+" secunds",D+" secunds"],m:["'n m\xedut","'iens m\xedut"],mm:[D+" m\xeduts",D+" m\xeduts"],h:["'n \xfeora","'iensa \xfeora"],hh:[D+" \xfeoras",D+" \xfeoras"],d:["'n ziua","'iensa ziua"],dd:[D+" ziuas",D+" ziuas"],M:["'n mes","'iens mes"],MM:[D+" mesen",D+" mesen"],y:["'n ar","'iens ar"],yy:[D+" ars",D+" ars"]};return B||H?Y[I][0]:Y[I][1]}x.defineLocale("tzl",{months:"Januar_Fevraglh_Mar\xe7_Avr\xefu_Mai_G\xfcn_Julia_Guscht_Setemvar_Listop\xe4ts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_G\xfcn_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"S\xfaladi_L\xfane\xe7i_Maitzi_M\xe1rcuri_Xh\xfaadi_Vi\xe9ner\xe7i_S\xe1turi".split("_"),weekdaysShort:"S\xfal_L\xfan_Mai_M\xe1r_Xh\xfa_Vi\xe9_S\xe1t".split("_"),weekdaysMin:"S\xfa_L\xfa_Ma_M\xe1_Xh_Vi_S\xe1".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(D){return"d'o"===D.toLowerCase()},meridiem:function(D,H,I){return D>11?I?"d'o":"D'O":I?"d'a":"D'A"},calendar:{sameDay:"[oxhi \xe0] LT",nextDay:"[dem\xe0 \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[ieiri \xe0] LT",lastWeek:"[s\xfcr el] dddd [lasteu \xe0] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:P,ss:P,m:P,mm:P,h:P,hh:P,d:P,dd:P,M:P,MM:P,y:P,yy:P},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},1631:function(z,W,E){!function(x){"use strict";x.defineLocale("tzm-latn",{months:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minu\u1e0d",mm:"%d minu\u1e0d",h:"sa\u025ba",hh:"%d tassa\u025bin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(E(5439))},1595:function(z,W,E){!function(x){"use strict";x.defineLocale("tzm",{months:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),monthsShort:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),weekdays:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysShort:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysMin:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u2d30\u2d59\u2d37\u2d45 \u2d34] LT",nextDay:"[\u2d30\u2d59\u2d3d\u2d30 \u2d34] LT",nextWeek:"dddd [\u2d34] LT",lastDay:"[\u2d30\u2d5a\u2d30\u2d4f\u2d5c \u2d34] LT",lastWeek:"dddd [\u2d34] LT",sameElse:"L"},relativeTime:{future:"\u2d37\u2d30\u2d37\u2d45 \u2d59 \u2d62\u2d30\u2d4f %s",past:"\u2d62\u2d30\u2d4f %s",s:"\u2d49\u2d4e\u2d49\u2d3d",ss:"%d \u2d49\u2d4e\u2d49\u2d3d",m:"\u2d4e\u2d49\u2d4f\u2d53\u2d3a",mm:"%d \u2d4e\u2d49\u2d4f\u2d53\u2d3a",h:"\u2d59\u2d30\u2d44\u2d30",hh:"%d \u2d5c\u2d30\u2d59\u2d59\u2d30\u2d44\u2d49\u2d4f",d:"\u2d30\u2d59\u2d59",dd:"%d o\u2d59\u2d59\u2d30\u2d4f",M:"\u2d30\u2d62o\u2d53\u2d54",MM:"%d \u2d49\u2d62\u2d62\u2d49\u2d54\u2d4f",y:"\u2d30\u2d59\u2d33\u2d30\u2d59",yy:"%d \u2d49\u2d59\u2d33\u2d30\u2d59\u2d4f"},week:{dow:6,doy:12}})}(E(5439))},6050:function(z,W,E){!function(x){"use strict";x.defineLocale("ug-cn",{months:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),monthsShort:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),weekdays:"\u064a\u06d5\u0643\u0634\u06d5\u0646\u0628\u06d5_\u062f\u06c8\u0634\u06d5\u0646\u0628\u06d5_\u0633\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u0686\u0627\u0631\u0634\u06d5\u0646\u0628\u06d5_\u067e\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u062c\u06c8\u0645\u06d5_\u0634\u06d5\u0646\u0628\u06d5".split("_"),weekdaysShort:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),weekdaysMin:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649",LLL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm",LLLL:"dddd\u060c YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm"},meridiemParse:/\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5|\u0633\u06d5\u06be\u06d5\u0631|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646|\u0686\u06c8\u0634|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646|\u0643\u06d5\u0686/,meridiemHour:function(P,D){return 12===P&&(P=0),"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5"===D||"\u0633\u06d5\u06be\u06d5\u0631"===D||"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646"===D?P:"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646"===D||"\u0643\u06d5\u0686"===D?P+12:P>=11?P:P+12},meridiem:function(P,D,H){var I=100*P+D;return I<600?"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5":I<900?"\u0633\u06d5\u06be\u06d5\u0631":I<1130?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646":I<1230?"\u0686\u06c8\u0634":I<1800?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646":"\u0643\u06d5\u0686"},calendar:{sameDay:"[\u0628\u06c8\u06af\u06c8\u0646 \u0633\u0627\u0626\u06d5\u062a] LT",nextDay:"[\u0626\u06d5\u062a\u06d5 \u0633\u0627\u0626\u06d5\u062a] LT",nextWeek:"[\u0643\u06d0\u0644\u06d5\u0631\u0643\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",lastDay:"[\u062a\u06c6\u0646\u06c8\u06af\u06c8\u0646] LT",lastWeek:"[\u0626\u0627\u0644\u062f\u0649\u0646\u0642\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0643\u06d0\u064a\u0649\u0646",past:"%s \u0628\u06c7\u0631\u06c7\u0646",s:"\u0646\u06d5\u0686\u0686\u06d5 \u0633\u06d0\u0643\u0648\u0646\u062a",ss:"%d \u0633\u06d0\u0643\u0648\u0646\u062a",m:"\u0628\u0649\u0631 \u0645\u0649\u0646\u06c7\u062a",mm:"%d \u0645\u0649\u0646\u06c7\u062a",h:"\u0628\u0649\u0631 \u0633\u0627\u0626\u06d5\u062a",hh:"%d \u0633\u0627\u0626\u06d5\u062a",d:"\u0628\u0649\u0631 \u0643\u06c8\u0646",dd:"%d \u0643\u06c8\u0646",M:"\u0628\u0649\u0631 \u0626\u0627\u064a",MM:"%d \u0626\u0627\u064a",y:"\u0628\u0649\u0631 \u064a\u0649\u0644",yy:"%d \u064a\u0649\u0644"},dayOfMonthOrdinalParse:/\d{1,2}(-\u0643\u06c8\u0646\u0649|-\u0626\u0627\u064a|-\u06be\u06d5\u067e\u062a\u06d5)/,ordinal:function(P,D){switch(D){case"d":case"D":case"DDD":return P+"-\u0643\u06c8\u0646\u0649";case"w":case"W":return P+"-\u06be\u06d5\u067e\u062a\u06d5";default:return P}},preparse:function(P){return P.replace(/\u060c/g,",")},postformat:function(P){return P.replace(/,/g,"\u060c")},week:{dow:1,doy:7}})}(E(5439))},5610:function(z,W,E){!function(x){"use strict";function P(B,Y,G){return"m"===G?Y?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443":"h"===G?Y?"\u0433\u043e\u0434\u0438\u043d\u0430":"\u0433\u043e\u0434\u0438\u043d\u0443":B+" "+function n(B,Y){var G=B.split("_");return Y%10==1&&Y%100!=11?G[0]:Y%10>=2&&Y%10<=4&&(Y%100<10||Y%100>=20)?G[1]:G[2]}({ss:Y?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434",mm:Y?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d",hh:Y?"\u0433\u043e\u0434\u0438\u043d\u0430_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d":"\u0433\u043e\u0434\u0438\u043d\u0443_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u043d\u0456\u0432",MM:"\u043c\u0456\u0441\u044f\u0446\u044c_\u043c\u0456\u0441\u044f\u0446\u0456_\u043c\u0456\u0441\u044f\u0446\u0456\u0432",yy:"\u0440\u0456\u043a_\u0440\u043e\u043a\u0438_\u0440\u043e\u043a\u0456\u0432"}[G],+B)}function H(B){return function(){return B+"\u043e"+(11===this.hours()?"\u0431":"")+"] LT"}}x.defineLocale("uk",{months:{format:"\u0441\u0456\u0447\u043d\u044f_\u043b\u044e\u0442\u043e\u0433\u043e_\u0431\u0435\u0440\u0435\u0437\u043d\u044f_\u043a\u0432\u0456\u0442\u043d\u044f_\u0442\u0440\u0430\u0432\u043d\u044f_\u0447\u0435\u0440\u0432\u043d\u044f_\u043b\u0438\u043f\u043d\u044f_\u0441\u0435\u0440\u043f\u043d\u044f_\u0432\u0435\u0440\u0435\u0441\u043d\u044f_\u0436\u043e\u0432\u0442\u043d\u044f_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434\u0430_\u0433\u0440\u0443\u0434\u043d\u044f".split("_"),standalone:"\u0441\u0456\u0447\u0435\u043d\u044c_\u043b\u044e\u0442\u0438\u0439_\u0431\u0435\u0440\u0435\u0437\u0435\u043d\u044c_\u043a\u0432\u0456\u0442\u0435\u043d\u044c_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u0435\u0440\u0432\u0435\u043d\u044c_\u043b\u0438\u043f\u0435\u043d\u044c_\u0441\u0435\u0440\u043f\u0435\u043d\u044c_\u0432\u0435\u0440\u0435\u0441\u0435\u043d\u044c_\u0436\u043e\u0432\u0442\u0435\u043d\u044c_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434_\u0433\u0440\u0443\u0434\u0435\u043d\u044c".split("_")},monthsShort:"\u0441\u0456\u0447_\u043b\u044e\u0442_\u0431\u0435\u0440_\u043a\u0432\u0456\u0442_\u0442\u0440\u0430\u0432_\u0447\u0435\u0440\u0432_\u043b\u0438\u043f_\u0441\u0435\u0440\u043f_\u0432\u0435\u0440_\u0436\u043e\u0432\u0442_\u043b\u0438\u0441\u0442_\u0433\u0440\u0443\u0434".split("_"),weekdays:function D(B,Y){var G={nominative:"\u043d\u0435\u0434\u0456\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044f_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),accusative:"\u043d\u0435\u0434\u0456\u043b\u044e_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044e_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),genitive:"\u043d\u0435\u0434\u0456\u043b\u0456_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043a\u0430_\u0432\u0456\u0432\u0442\u043e\u0440\u043a\u0430_\u0441\u0435\u0440\u0435\u0434\u0438_\u0447\u0435\u0442\u0432\u0435\u0440\u0433\u0430_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u0456_\u0441\u0443\u0431\u043e\u0442\u0438".split("_")};return!0===B?G.nominative.slice(1,7).concat(G.nominative.slice(0,1)):B?G[/(\[[\u0412\u0432\u0423\u0443]\]) ?dddd/.test(Y)?"accusative":/\[?(?:\u043c\u0438\u043d\u0443\u043b\u043e\u0457|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0457)? ?\] ?dddd/.test(Y)?"genitive":"nominative"][B.day()]:G.nominative},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0440.",LLL:"D MMMM YYYY \u0440., HH:mm",LLLL:"dddd, D MMMM YYYY \u0440., HH:mm"},calendar:{sameDay:H("[\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456 "),nextDay:H("[\u0417\u0430\u0432\u0442\u0440\u0430 "),lastDay:H("[\u0412\u0447\u043e\u0440\u0430 "),nextWeek:H("[\u0423] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return H("[\u041c\u0438\u043d\u0443\u043b\u043e\u0457] dddd [").call(this);case 1:case 2:case 4:return H("[\u041c\u0438\u043d\u0443\u043b\u043e\u0433\u043e] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"%s \u0442\u043e\u043c\u0443",s:"\u0434\u0435\u043a\u0456\u043b\u044c\u043a\u0430 \u0441\u0435\u043a\u0443\u043d\u0434",ss:P,m:P,mm:P,h:"\u0433\u043e\u0434\u0438\u043d\u0443",hh:P,d:"\u0434\u0435\u043d\u044c",dd:P,M:"\u043c\u0456\u0441\u044f\u0446\u044c",MM:P,y:"\u0440\u0456\u043a",yy:P},meridiemParse:/\u043d\u043e\u0447\u0456|\u0440\u0430\u043d\u043a\u0443|\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430/,isPM:function(B){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430)$/.test(B)},meridiem:function(B,Y,G){return B<4?"\u043d\u043e\u0447\u0456":B<12?"\u0440\u0430\u043d\u043a\u0443":B<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u043e\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e)/,ordinal:function(B,Y){switch(Y){case"M":case"d":case"DDD":case"w":case"W":return B+"-\u0439";case"D":return B+"-\u0433\u043e";default:return B}},week:{dow:1,doy:7}})}(E(5439))},6077:function(z,W,E){!function(x){"use strict";var n=["\u062c\u0646\u0648\u0631\u06cc","\u0641\u0631\u0648\u0631\u06cc","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u06cc\u0644","\u0645\u0626\u06cc","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0626\u06cc","\u0627\u06af\u0633\u062a","\u0633\u062a\u0645\u0628\u0631","\u0627\u06a9\u062a\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u062f\u0633\u0645\u0628\u0631"],P=["\u0627\u062a\u0648\u0627\u0631","\u067e\u06cc\u0631","\u0645\u0646\u06af\u0644","\u0628\u062f\u06be","\u062c\u0645\u0639\u0631\u0627\u062a","\u062c\u0645\u0639\u06c1","\u06c1\u0641\u062a\u06c1"];x.defineLocale("ur",{months:n,monthsShort:n,weekdays:P,weekdaysShort:P,weekdaysMin:P,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(H){return"\u0634\u0627\u0645"===H},meridiem:function(H,I,B){return H<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0622\u062c \u0628\u0648\u0642\u062a] LT",nextDay:"[\u06a9\u0644 \u0628\u0648\u0642\u062a] LT",nextWeek:"dddd [\u0628\u0648\u0642\u062a] LT",lastDay:"[\u06af\u0630\u0634\u062a\u06c1 \u0631\u0648\u0632 \u0628\u0648\u0642\u062a] LT",lastWeek:"[\u06af\u0630\u0634\u062a\u06c1] dddd [\u0628\u0648\u0642\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0628\u0639\u062f",past:"%s \u0642\u0628\u0644",s:"\u0686\u0646\u062f \u0633\u06cc\u06a9\u0646\u0688",ss:"%d \u0633\u06cc\u06a9\u0646\u0688",m:"\u0627\u06cc\u06a9 \u0645\u0646\u0679",mm:"%d \u0645\u0646\u0679",h:"\u0627\u06cc\u06a9 \u06af\u06be\u0646\u0679\u06c1",hh:"%d \u06af\u06be\u0646\u0679\u06d2",d:"\u0627\u06cc\u06a9 \u062f\u0646",dd:"%d \u062f\u0646",M:"\u0627\u06cc\u06a9 \u0645\u0627\u06c1",MM:"%d \u0645\u0627\u06c1",y:"\u0627\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(H){return H.replace(/\u060c/g,",")},postformat:function(H){return H.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(E(5439))},2207:function(z,W,E){!function(x){"use strict";x.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(E(5439))},2862:function(z,W,E){!function(x){"use strict";x.defineLocale("uz",{months:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u042f\u043a\u0448\u0430\u043d\u0431\u0430_\u0414\u0443\u0448\u0430\u043d\u0431\u0430_\u0421\u0435\u0448\u0430\u043d\u0431\u0430_\u0427\u043e\u0440\u0448\u0430\u043d\u0431\u0430_\u041f\u0430\u0439\u0448\u0430\u043d\u0431\u0430_\u0416\u0443\u043c\u0430_\u0428\u0430\u043d\u0431\u0430".split("_"),weekdaysShort:"\u042f\u043a\u0448_\u0414\u0443\u0448_\u0421\u0435\u0448_\u0427\u043e\u0440_\u041f\u0430\u0439_\u0416\u0443\u043c_\u0428\u0430\u043d".split("_"),weekdaysMin:"\u042f\u043a_\u0414\u0443_\u0421\u0435_\u0427\u043e_\u041f\u0430_\u0416\u0443_\u0428\u0430".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[\u0411\u0443\u0433\u0443\u043d \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",nextDay:"[\u042d\u0440\u0442\u0430\u0433\u0430] LT [\u0434\u0430]",nextWeek:"dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastDay:"[\u041a\u0435\u0447\u0430 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastWeek:"[\u0423\u0442\u0433\u0430\u043d] dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",sameElse:"L"},relativeTime:{future:"\u042f\u043a\u0438\u043d %s \u0438\u0447\u0438\u0434\u0430",past:"\u0411\u0438\u0440 \u043d\u0435\u0447\u0430 %s \u043e\u043b\u0434\u0438\u043d",s:"\u0444\u0443\u0440\u0441\u0430\u0442",ss:"%d \u0444\u0443\u0440\u0441\u0430\u0442",m:"\u0431\u0438\u0440 \u0434\u0430\u043a\u0438\u043a\u0430",mm:"%d \u0434\u0430\u043a\u0438\u043a\u0430",h:"\u0431\u0438\u0440 \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u0431\u0438\u0440 \u043e\u0439",MM:"%d \u043e\u0439",y:"\u0431\u0438\u0440 \u0439\u0438\u043b",yy:"%d \u0439\u0438\u043b"},week:{dow:1,doy:7}})}(E(5439))},8093:function(z,W,E){!function(x){"use strict";x.defineLocale("vi",{months:"th\xe1ng 1_th\xe1ng 2_th\xe1ng 3_th\xe1ng 4_th\xe1ng 5_th\xe1ng 6_th\xe1ng 7_th\xe1ng 8_th\xe1ng 9_th\xe1ng 10_th\xe1ng 11_th\xe1ng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"ch\u1ee7 nh\u1eadt_th\u1ee9 hai_th\u1ee9 ba_th\u1ee9 t\u01b0_th\u1ee9 n\u0103m_th\u1ee9 s\xe1u_th\u1ee9 b\u1ea3y".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(P){return/^ch$/i.test(P)},meridiem:function(P,D,H){return P<12?H?"sa":"SA":H?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [n\u0103m] YYYY",LLL:"D MMMM [n\u0103m] YYYY HH:mm",LLLL:"dddd, D MMMM [n\u0103m] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[H\xf4m nay l\xfac] LT",nextDay:"[Ng\xe0y mai l\xfac] LT",nextWeek:"dddd [tu\u1ea7n t\u1edbi l\xfac] LT",lastDay:"[H\xf4m qua l\xfac] LT",lastWeek:"dddd [tu\u1ea7n tr\u01b0\u1edbc l\xfac] LT",sameElse:"L"},relativeTime:{future:"%s t\u1edbi",past:"%s tr\u01b0\u1edbc",s:"v\xe0i gi\xe2y",ss:"%d gi\xe2y",m:"m\u1ed9t ph\xfat",mm:"%d ph\xfat",h:"m\u1ed9t gi\u1edd",hh:"%d gi\u1edd",d:"m\u1ed9t ng\xe0y",dd:"%d ng\xe0y",w:"m\u1ed9t tu\u1ea7n",ww:"%d tu\u1ea7n",M:"m\u1ed9t th\xe1ng",MM:"%d th\xe1ng",y:"m\u1ed9t n\u0103m",yy:"%d n\u0103m"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(P){return P},week:{dow:1,doy:4}})}(E(5439))},5590:function(z,W,E){!function(x){"use strict";x.defineLocale("x-pseudo",{months:"J~\xe1\xf1\xfa\xe1~r\xfd_F~\xe9br\xfa~\xe1r\xfd_~M\xe1rc~h_\xc1p~r\xedl_~M\xe1\xfd_~J\xfa\xf1\xe9~_J\xfal~\xfd_\xc1\xfa~g\xfast~_S\xe9p~t\xe9mb~\xe9r_\xd3~ct\xf3b~\xe9r_\xd1~\xf3v\xe9m~b\xe9r_~D\xe9c\xe9~mb\xe9r".split("_"),monthsShort:"J~\xe1\xf1_~F\xe9b_~M\xe1r_~\xc1pr_~M\xe1\xfd_~J\xfa\xf1_~J\xfal_~\xc1\xfag_~S\xe9p_~\xd3ct_~\xd1\xf3v_~D\xe9c".split("_"),monthsParseExact:!0,weekdays:"S~\xfa\xf1d\xe1~\xfd_M\xf3~\xf1d\xe1\xfd~_T\xfa\xe9~sd\xe1\xfd~_W\xe9d~\xf1\xe9sd~\xe1\xfd_T~h\xfars~d\xe1\xfd_~Fr\xedd~\xe1\xfd_S~\xe1t\xfar~d\xe1\xfd".split("_"),weekdaysShort:"S~\xfa\xf1_~M\xf3\xf1_~T\xfa\xe9_~W\xe9d_~Th\xfa_~Fr\xed_~S\xe1t".split("_"),weekdaysMin:"S~\xfa_M\xf3~_T\xfa_~W\xe9_T~h_Fr~_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~\xf3d\xe1~\xfd \xe1t] LT",nextDay:"[T~\xf3m\xf3~rr\xf3~w \xe1t] LT",nextWeek:"dddd [\xe1t] LT",lastDay:"[\xdd~\xe9st~\xe9rd\xe1~\xfd \xe1t] LT",lastWeek:"[L~\xe1st] dddd [\xe1t] LT",sameElse:"L"},relativeTime:{future:"\xed~\xf1 %s",past:"%s \xe1~g\xf3",s:"\xe1 ~f\xe9w ~s\xe9c\xf3~\xf1ds",ss:"%d s~\xe9c\xf3\xf1~ds",m:"\xe1 ~m\xed\xf1~\xfat\xe9",mm:"%d m~\xed\xf1\xfa~t\xe9s",h:"\xe1~\xf1 h\xf3~\xfar",hh:"%d h~\xf3\xfars",d:"\xe1 ~d\xe1\xfd",dd:"%d d~\xe1\xfds",M:"\xe1 ~m\xf3\xf1~th",MM:"%d m~\xf3\xf1t~hs",y:"\xe1 ~\xfd\xe9\xe1r",yy:"%d \xfd~\xe9\xe1rs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(P){var D=P%10;return P+(1==~~(P%100/10)?"th":1===D?"st":2===D?"nd":3===D?"rd":"th")},week:{dow:1,doy:4}})}(E(5439))},9058:function(z,W,E){!function(x){"use strict";x.defineLocale("yo",{months:"S\u1eb9\u0301r\u1eb9\u0301_E\u0300re\u0300le\u0300_\u1eb8r\u1eb9\u0300na\u0300_I\u0300gbe\u0301_E\u0300bibi_O\u0300ku\u0300du_Ag\u1eb9mo_O\u0300gu\u0301n_Owewe_\u1ecc\u0300wa\u0300ra\u0300_Be\u0301lu\u0301_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),monthsShort:"S\u1eb9\u0301r_E\u0300rl_\u1eb8rn_I\u0300gb_E\u0300bi_O\u0300ku\u0300_Ag\u1eb9_O\u0300gu\u0301_Owe_\u1ecc\u0300wa\u0300_Be\u0301l_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),weekdays:"A\u0300i\u0300ku\u0301_Aje\u0301_I\u0300s\u1eb9\u0301gun_\u1eccj\u1ecd\u0301ru\u0301_\u1eccj\u1ecd\u0301b\u1ecd_\u1eb8ti\u0300_A\u0300ba\u0301m\u1eb9\u0301ta".split("_"),weekdaysShort:"A\u0300i\u0300k_Aje\u0301_I\u0300s\u1eb9\u0301_\u1eccjr_\u1eccjb_\u1eb8ti\u0300_A\u0300ba\u0301".split("_"),weekdaysMin:"A\u0300i\u0300_Aj_I\u0300s_\u1eccr_\u1eccb_\u1eb8t_A\u0300b".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[O\u0300ni\u0300 ni] LT",nextDay:"[\u1ecc\u0300la ni] LT",nextWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301n'b\u1ecd] [ni] LT",lastDay:"[A\u0300na ni] LT",lastWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301l\u1ecd\u0301] [ni] LT",sameElse:"L"},relativeTime:{future:"ni\u0301 %s",past:"%s k\u1ecdja\u0301",s:"i\u0300s\u1eb9ju\u0301 aaya\u0301 die",ss:"aaya\u0301 %d",m:"i\u0300s\u1eb9ju\u0301 kan",mm:"i\u0300s\u1eb9ju\u0301 %d",h:"wa\u0301kati kan",hh:"wa\u0301kati %d",d:"\u1ecdj\u1ecd\u0301 kan",dd:"\u1ecdj\u1ecd\u0301 %d",M:"osu\u0300 kan",MM:"osu\u0300 %d",y:"\u1ecddu\u0301n kan",yy:"\u1ecddu\u0301n %d"},dayOfMonthOrdinalParse:/\u1ecdj\u1ecd\u0301\s\d{1,2}/,ordinal:"\u1ecdj\u1ecd\u0301 %d",week:{dow:1,doy:4}})}(E(5439))},7908:function(z,W,E){!function(x){"use strict";x.defineLocale("zh-cn",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u5468\u65e5_\u5468\u4e00_\u5468\u4e8c_\u5468\u4e09_\u5468\u56db_\u5468\u4e94_\u5468\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5Ah\u70b9mm\u5206",LLLL:"YYYY\u5e74M\u6708D\u65e5ddddAh\u70b9mm\u5206",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(P,D){return 12===P&&(P=0),"\u51cc\u6668"===D||"\u65e9\u4e0a"===D||"\u4e0a\u5348"===D?P:"\u4e0b\u5348"===D||"\u665a\u4e0a"===D?P+12:P>=11?P:P+12},meridiem:function(P,D,H){var I=100*P+D;return I<600?"\u51cc\u6668":I<900?"\u65e9\u4e0a":I<1130?"\u4e0a\u5348":I<1230?"\u4e2d\u5348":I<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:function(P){return P.week()!==this.week()?"[\u4e0b]dddLT":"[\u672c]dddLT"},lastDay:"[\u6628\u5929]LT",lastWeek:function(P){return this.week()!==P.week()?"[\u4e0a]dddLT":"[\u672c]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u5468)/,ordinal:function(P,D){switch(D){case"d":case"D":case"DDD":return P+"\u65e5";case"M":return P+"\u6708";case"w":case"W":return P+"\u5468";default:return P}},relativeTime:{future:"%s\u540e",past:"%s\u524d",s:"\u51e0\u79d2",ss:"%d \u79d2",m:"1 \u5206\u949f",mm:"%d \u5206\u949f",h:"1 \u5c0f\u65f6",hh:"%d \u5c0f\u65f6",d:"1 \u5929",dd:"%d \u5929",w:"1 \u5468",ww:"%d \u5468",M:"1 \u4e2a\u6708",MM:"%d \u4e2a\u6708",y:"1 \u5e74",yy:"%d \u5e74"},week:{dow:1,doy:4}})}(E(5439))},8867:function(z,W,E){!function(x){"use strict";x.defineLocale("zh-hk",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(P,D){return 12===P&&(P=0),"\u51cc\u6668"===D||"\u65e9\u4e0a"===D||"\u4e0a\u5348"===D?P:"\u4e2d\u5348"===D?P>=11?P:P+12:"\u4e0b\u5348"===D||"\u665a\u4e0a"===D?P+12:void 0},meridiem:function(P,D,H){var I=100*P+D;return I<600?"\u51cc\u6668":I<900?"\u65e9\u4e0a":I<1200?"\u4e0a\u5348":1200===I?"\u4e2d\u5348":I<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:"[\u4e0b]ddddLT",lastDay:"[\u6628\u5929]LT",lastWeek:"[\u4e0a]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(P,D){switch(D){case"d":case"D":case"DDD":return P+"\u65e5";case"M":return P+"\u6708";case"w":case"W":return P+"\u9031";default:return P}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(E(5439))},1133:function(z,W,E){!function(x){"use strict";x.defineLocale("zh-mo",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"D/M/YYYY",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(P,D){return 12===P&&(P=0),"\u51cc\u6668"===D||"\u65e9\u4e0a"===D||"\u4e0a\u5348"===D?P:"\u4e2d\u5348"===D?P>=11?P:P+12:"\u4e0b\u5348"===D||"\u665a\u4e0a"===D?P+12:void 0},meridiem:function(P,D,H){var I=100*P+D;return I<600?"\u51cc\u6668":I<900?"\u65e9\u4e0a":I<1130?"\u4e0a\u5348":I<1230?"\u4e2d\u5348":I<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(P,D){switch(D){case"d":case"D":case"DDD":return P+"\u65e5";case"M":return P+"\u6708";case"w":case"W":return P+"\u9031";default:return P}},relativeTime:{future:"%s\u5167",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(E(5439))},3291:function(z,W,E){!function(x){"use strict";x.defineLocale("zh-tw",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(P,D){return 12===P&&(P=0),"\u51cc\u6668"===D||"\u65e9\u4e0a"===D||"\u4e0a\u5348"===D?P:"\u4e2d\u5348"===D?P>=11?P:P+12:"\u4e0b\u5348"===D||"\u665a\u4e0a"===D?P+12:void 0},meridiem:function(P,D,H){var I=100*P+D;return I<600?"\u51cc\u6668":I<900?"\u65e9\u4e0a":I<1130?"\u4e0a\u5348":I<1230?"\u4e2d\u5348":I<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(P,D){switch(D){case"d":case"D":case"DDD":return P+"\u65e5";case"M":return P+"\u6708";case"w":case"W":return P+"\u9031";default:return P}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(E(5439))},5439:function(z,W,E){(z=E.nmd(z)).exports=function(){"use strict";var x,_e;function n(){return x.apply(null,arguments)}function D(M){return M instanceof Array||"[object Array]"===Object.prototype.toString.call(M)}function H(M){return null!=M&&"[object Object]"===Object.prototype.toString.call(M)}function I(M,k){return Object.prototype.hasOwnProperty.call(M,k)}function B(M){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(M).length;var k;for(k in M)if(I(M,k))return!1;return!0}function Y(M){return void 0===M}function G(M){return"number"==typeof M||"[object Number]"===Object.prototype.toString.call(M)}function ee(M){return M instanceof Date||"[object Date]"===Object.prototype.toString.call(M)}function te(M,k){var q,V=[],Q=M.length;for(q=0;q>>0;for(q=0;q0)for(V=0;V=0?V?"+":"":"-")+Math.pow(10,Math.max(0,k-q.length)).toString().substr(1)+q}var Kt=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Qe=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ci={},Si={};function Ge(M,k,V,q){var Q=q;"string"==typeof q&&(Q=function(){return this[q]()}),M&&(Si[M]=Q),k&&(Si[k[0]]=function(){return Bt(Q.apply(this,arguments),k[1],k[2])}),V&&(Si[V]=function(){return this.localeData().ordinal(Q.apply(this,arguments),M)})}function Xt(M){return M.match(/\[[\s\S]/)?M.replace(/^\[|\]$/g,""):M.replace(/\\/g,"")}function En(M,k){return M.isValid()?(k=aa(k,M.localeData()),ci[k]=ci[k]||function Cr(M){var V,q,k=M.match(Kt);for(V=0,q=k.length;V=0&&Qe.test(M);)M=M.replace(Qe,q),Qe.lastIndex=0,V-=1;return M}var Ar={};function Wt(M,k){var V=M.toLowerCase();Ar[V]=Ar[V+"s"]=Ar[k]=M}function di(M){return"string"==typeof M?Ar[M]||Ar[M.toLowerCase()]:void 0}function Io(M){var V,q,k={};for(q in M)I(M,q)&&(V=di(q))&&(k[V]=M[q]);return k}var lr={};function zt(M,k){lr[M]=k}function oe(M){return M%4==0&&M%100!=0||M%400==0}function ie(M){return M<0?Math.ceil(M)||0:Math.floor(M)}function pe(M){var k=+M,V=0;return 0!==k&&isFinite(k)&&(V=ie(k)),V}function Ie(M,k){return function(V){return null!=V?(Dt(this,M,V),n.updateOffset(this,k),this):ft(this,M)}}function ft(M,k){return M.isValid()?M._d["get"+(M._isUTC?"UTC":"")+k]():NaN}function Dt(M,k,V){M.isValid()&&!isNaN(V)&&("FullYear"===k&&oe(M.year())&&1===M.month()&&29===M.date()?(V=pe(V),M._d["set"+(M._isUTC?"UTC":"")+k](V,M.month(),Me(V,M.month()))):M._d["set"+(M._isUTC?"UTC":"")+k](V))}var ti,In=/\d/,Ht=/\d\d/,Vi=/\d{3}/,yt=/\d{4}/,Gt=/[+-]?\d{6}/,wt=/\d\d?/,Qi=/\d\d\d\d?/,jr=/\d\d\d\d\d\d?/,Yn=/\d{1,3}/,Ur=/\d{1,4}/,vr=/[+-]?\d{1,6}/,cr=/\d+/,sa=/[+-]?\d+/,fd=/Z|[+-]\d\d:?\d\d/gi,us=/Z|[+-]\d\d(?::?\d\d)?/gi,Zn=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function qe(M,k,V){ti[M]=fe(k)?k:function(q,Q){return q&&V?V:k}}function On(M,k){return I(ti,M)?ti[M](k._strict,k._locale):new RegExp(function We(M){return st(M.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(k,V,q,Q,ce){return V||q||Q||ce}))}(M))}function st(M){return M.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}ti={};var Jt={};function xe(M,k){var V,Q,q=k;for("string"==typeof M&&(M=[M]),G(k)&&(q=function(ce,Ae){Ae[k]=pe(ce)}),Q=M.length,V=0;V68?1900:2e3)};var qr=Ie("FullYear",!0);function Hi(M,k,V,q,Q,ce,Ae){var ct;return M<100&&M>=0?(ct=new Date(M+400,k,V,q,Q,ce,Ae),isFinite(ct.getFullYear())&&ct.setFullYear(M)):ct=new Date(M,k,V,q,Q,ce,Ae),ct}function da(M){var k,V;return M<100&&M>=0?((V=Array.prototype.slice.call(arguments))[0]=M+400,k=new Date(Date.UTC.apply(null,V)),isFinite(k.getUTCFullYear())&&k.setUTCFullYear(M)):k=new Date(Date.UTC.apply(null,arguments)),k}function zs(M,k,V){var q=7+k-V;return-(7+da(M,0,q).getUTCDay()-k)%7+q-1}function hs(M,k,V,q,Q){var kt,rn,ct=1+7*(k-1)+(7+V-q)%7+zs(M,q,Q);return ct<=0?rn=Ki(kt=M-1)+ct:ct>Ki(M)?(kt=M+1,rn=ct-Ki(M)):(kt=M,rn=ct),{year:kt,dayOfYear:rn}}function ua(M,k,V){var ce,Ae,q=zs(M.year(),k,V),Q=Math.floor((M.dayOfYear()-q-1)/7)+1;return Q<1?ce=Q+Xi(Ae=M.year()-1,k,V):Q>Xi(M.year(),k,V)?(ce=Q-Xi(M.year(),k,V),Ae=M.year()+1):(Ae=M.year(),ce=Q),{week:ce,year:Ae}}function Xi(M,k,V){var q=zs(M,k,V),Q=zs(M+1,k,V);return(Ki(M)-q+Q)/7}Ge("w",["ww",2],"wo","week"),Ge("W",["WW",2],"Wo","isoWeek"),Wt("week","w"),Wt("isoWeek","W"),zt("week",5),zt("isoWeek",5),qe("w",wt),qe("ww",wt,Ht),qe("W",wt),qe("WW",wt,Ht),ln(["w","ww","W","WW"],function(M,k,V,q){k[q.substr(0,1)]=pe(M)});function md(M,k){return M.slice(k,7).concat(M.slice(0,k))}Ge("d",0,"do","day"),Ge("dd",0,0,function(M){return this.localeData().weekdaysMin(this,M)}),Ge("ddd",0,0,function(M){return this.localeData().weekdaysShort(this,M)}),Ge("dddd",0,0,function(M){return this.localeData().weekdays(this,M)}),Ge("e",0,0,"weekday"),Ge("E",0,0,"isoWeekday"),Wt("day","d"),Wt("weekday","e"),Wt("isoWeekday","E"),zt("day",11),zt("weekday",11),zt("isoWeekday",11),qe("d",wt),qe("e",wt),qe("E",wt),qe("dd",function(M,k){return k.weekdaysMinRegex(M)}),qe("ddd",function(M,k){return k.weekdaysShortRegex(M)}),qe("dddd",function(M,k){return k.weekdaysRegex(M)}),ln(["dd","ddd","dddd"],function(M,k,V,q){var Q=V._locale.weekdaysParse(M,q,V._strict);null!=Q?k.d=Q:re(V).invalidWeekday=M}),ln(["d","e","E"],function(M,k,V,q){k[q]=pe(M)});var vt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ql="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),zu="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Va=Zn,wn=Zn,Oo=Zn;function ha(M,k,V){var q,Q,ce,Ae=M.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],q=0;q<7;++q)ce=ue([2e3,1]).day(q),this._minWeekdaysParse[q]=this.weekdaysMin(ce,"").toLocaleLowerCase(),this._shortWeekdaysParse[q]=this.weekdaysShort(ce,"").toLocaleLowerCase(),this._weekdaysParse[q]=this.weekdays(ce,"").toLocaleLowerCase();return V?"dddd"===k?-1!==(Q=rt.call(this._weekdaysParse,Ae))?Q:null:"ddd"===k?-1!==(Q=rt.call(this._shortWeekdaysParse,Ae))?Q:null:-1!==(Q=rt.call(this._minWeekdaysParse,Ae))?Q:null:"dddd"===k?-1!==(Q=rt.call(this._weekdaysParse,Ae))||-1!==(Q=rt.call(this._shortWeekdaysParse,Ae))||-1!==(Q=rt.call(this._minWeekdaysParse,Ae))?Q:null:"ddd"===k?-1!==(Q=rt.call(this._shortWeekdaysParse,Ae))||-1!==(Q=rt.call(this._weekdaysParse,Ae))||-1!==(Q=rt.call(this._minWeekdaysParse,Ae))?Q:null:-1!==(Q=rt.call(this._minWeekdaysParse,Ae))||-1!==(Q=rt.call(this._weekdaysParse,Ae))||-1!==(Q=rt.call(this._shortWeekdaysParse,Ae))?Q:null}function jo(){function M(Gn,Rr){return Rr.length-Gn.length}var ce,Ae,ct,kt,rn,k=[],V=[],q=[],Q=[];for(ce=0;ce<7;ce++)Ae=ue([2e3,1]).day(ce),ct=st(this.weekdaysMin(Ae,"")),kt=st(this.weekdaysShort(Ae,"")),rn=st(this.weekdays(Ae,"")),k.push(ct),V.push(kt),q.push(rn),Q.push(ct),Q.push(kt),Q.push(rn);k.sort(M),V.sort(M),q.sort(M),Q.sort(M),this._weekdaysRegex=new RegExp("^("+Q.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+q.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+V.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+k.join("|")+")","i")}function Zs(){return this.hours()%12||12}function ui(M,k){Ge(M,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),k)})}function No(M,k){return k._meridiemParse}Ge("H",["HH",2],0,"hour"),Ge("h",["hh",2],0,Zs),Ge("k",["kk",2],0,function Uo(){return this.hours()||24}),Ge("hmm",0,0,function(){return""+Zs.apply(this)+Bt(this.minutes(),2)}),Ge("hmmss",0,0,function(){return""+Zs.apply(this)+Bt(this.minutes(),2)+Bt(this.seconds(),2)}),Ge("Hmm",0,0,function(){return""+this.hours()+Bt(this.minutes(),2)}),Ge("Hmmss",0,0,function(){return""+this.hours()+Bt(this.minutes(),2)+Bt(this.seconds(),2)}),ui("a",!0),ui("A",!1),Wt("hour","h"),zt("hour",13),qe("a",No),qe("A",No),qe("H",wt),qe("h",wt),qe("k",wt),qe("HH",wt,Ht),qe("hh",wt,Ht),qe("kk",wt,Ht),qe("hmm",Qi),qe("hmmss",jr),qe("Hmm",Qi),qe("Hmmss",jr),xe(["H","HH"],3),xe(["k","kk"],function(M,k,V){var q=pe(M);k[3]=24===q?0:q}),xe(["a","A"],function(M,k,V){V._isPm=V._locale.isPM(M),V._meridiem=M}),xe(["h","hh"],function(M,k,V){k[3]=pe(M),re(V).bigHour=!0}),xe("hmm",function(M,k,V){var q=M.length-2;k[3]=pe(M.substr(0,q)),k[4]=pe(M.substr(q)),re(V).bigHour=!0}),xe("hmmss",function(M,k,V){var q=M.length-4,Q=M.length-2;k[3]=pe(M.substr(0,q)),k[4]=pe(M.substr(q,2)),k[5]=pe(M.substr(Q)),re(V).bigHour=!0}),xe("Hmm",function(M,k,V){var q=M.length-2;k[3]=pe(M.substr(0,q)),k[4]=pe(M.substr(q))}),xe("Hmmss",function(M,k,V){var q=M.length-4,Q=M.length-2;k[3]=pe(M.substr(0,q)),k[4]=pe(M.substr(q,2)),k[5]=pe(M.substr(Q))});var Zu=Ie("Hours",!0);var pa,qn={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Ei,monthsShort:Nr,week:{dow:0,doy:6},weekdays:vt,weekdaysMin:zu,weekdaysShort:Ql,meridiemParse:/[ap]\.?m?\.?/i},An={},Xl={};function er(M,k){var V,q=Math.min(M.length,k.length);for(V=0;V0;){if(Q=fi(ce.slice(0,V).join("-")))return Q;if(q&&q.length>=V&&er(ce,q)>=V-1)break;V--}k++}return pa}(M)}function ve(M){var k,V=M._a;return V&&-2===re(M).overflow&&(k=V[1]<0||V[1]>11?1:V[2]<1||V[2]>Me(V[0],V[1])?2:V[3]<0||V[3]>24||24===V[3]&&(0!==V[4]||0!==V[5]||0!==V[6])?3:V[4]<0||V[4]>59?4:V[5]<0||V[5]>59?5:V[6]<0||V[6]>999?6:-1,re(M)._overflowDayOfYear&&(k<0||k>2)&&(k=2),re(M)._overflowWeeks&&-1===k&&(k=7),re(M)._overflowWeekday&&-1===k&&(k=8),re(M).overflow=k),M}var be=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,at=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,vn=/Z|[+-]\d\d(?::?\d\d)?/,on=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],cn=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Yt=/^\/?Date\((-?\d+)/i,ii=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,tt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function dn(M){var k,V,ce,Ae,ct,kt,q=M._i,Q=be.exec(q)||at.exec(q),rn=on.length,Gn=cn.length;if(Q){for(re(M).iso=!0,k=0,V=rn;k7)&&(kt=!0)):(ce=M._locale._week.dow,Ae=M._locale._week.doy,rn=ua(hn(),ce,Ae),V=Pn(k.gg,M._a[0],rn.year),q=Pn(k.w,rn.week),null!=k.d?((Q=k.d)<0||Q>6)&&(kt=!0):null!=k.e?(Q=k.e+ce,(k.e<0||k.e>6)&&(kt=!0)):Q=ce),q<1||q>Xi(V,ce,Ae)?re(M)._overflowWeeks=!0:null!=kt?re(M)._overflowWeekday=!0:(ct=hs(V,q,Q,ce,Ae),M._a[0]=ct.year,M._dayOfYear=ct.dayOfYear)}(M),null!=M._dayOfYear&&(Ae=Pn(M._a[0],Q[0]),(M._dayOfYear>Ki(Ae)||0===M._dayOfYear)&&(re(M)._overflowDayOfYear=!0),V=da(Ae,0,M._dayOfYear),M._a[1]=V.getUTCMonth(),M._a[2]=V.getUTCDate()),k=0;k<3&&null==M._a[k];++k)M._a[k]=q[k]=Q[k];for(;k<7;k++)M._a[k]=q[k]=M._a[k]??(2===k?1:0);24===M._a[3]&&0===M._a[4]&&0===M._a[5]&&0===M._a[6]&&(M._nextDay=!0,M._a[3]=0),M._d=(M._useUTC?da:Hi).apply(null,q),ce=M._useUTC?M._d.getUTCDay():M._d.getDay(),null!=M._tzm&&M._d.setUTCMinutes(M._d.getUTCMinutes()-M._tzm),M._nextDay&&(M._a[3]=24),M._w&&typeof M._w.d<"u"&&M._w.d!==ce&&(re(M).weekdayMismatch=!0)}}function nc(M){if(M._f!==n.ISO_8601)if(M._f!==n.RFC_2822){M._a=[],re(M).empty=!0;var V,q,Q,ce,Ae,rn,Gn,k=""+M._i,ct=k.length,kt=0;for(Gn=(Q=aa(M._f,M._locale).match(Kt)||[]).length,V=0;V0&&re(M).unusedInput.push(Ae),k=k.slice(k.indexOf(q)+q.length),kt+=q.length),Si[ce]?(q?re(M).empty=!1:re(M).unusedTokens.push(ce),sn(ce,q,M)):M._strict&&!q&&re(M).unusedTokens.push(ce);re(M).charsLeftOver=ct-kt,k.length>0&&re(M).unusedInput.push(k),M._a[3]<=12&&!0===re(M).bigHour&&M._a[3]>0&&(re(M).bigHour=void 0),re(M).parsedDateParts=M._a.slice(0),re(M).meridiem=M._meridiem,M._a[3]=function Zt(M,k,V){var q;return null==V?k:null!=M.meridiemHour?M.meridiemHour(k,V):(null!=M.isPM&&((q=M.isPM(V))&&k<12&&(k+=12),!q&&12===k&&(k=0)),k)}(M._locale,M._a[3],M._meridiem),null!==(rn=re(M).era)&&(M._a[0]=M._locale.erasConvertYear(rn,M._a[0])),Pi(M),ve(M)}else ps(M);else dn(M)}function Ri(M){var k=M._i,V=M._f;return M._locale=M._locale||X(M._l),null===k||void 0===V&&""===k?Se({nullInput:!0}):("string"==typeof k&&(M._i=k=M._locale.preparse(k)),Pe(k)?new Ee(ve(k)):(ee(k)?M._d=k:D(V)?function gi(M){var k,V,q,Q,ce,Ae,ct=!1,kt=M._f.length;if(0===kt)return re(M).invalidFormat=!0,void(M._d=new Date(NaN));for(Q=0;Qthis?this:M:Se()});function wd(M,k){var V,q;if(1===k.length&&D(k[0])&&(k=k[0]),!k.length)return hn();for(V=k[0],q=1;q=0?new Date(M+400,k,V)-io:new Date(M,k,V).valueOf()}function Ua(M,k,V){return M<100&&M>=0?Date.UTC(M+400,k,V)-io:Date.UTC(M,k,V)}function hh(M,k){return k.erasAbbrRegex(M)}function ph(){var Q,ce,M=[],k=[],V=[],q=[],Ae=this.eras();for(Q=0,ce=Ae.length;Q(ce=Xi(M,q,Q))&&(k=ce),rl.call(this,M,k,V,q,Q))}function rl(M,k,V,q,Q){var ce=hs(M,k,V,q,Q),Ae=da(ce.year,0,ce.dayOfYear);return this.year(Ae.getUTCFullYear()),this.month(Ae.getUTCMonth()),this.date(Ae.getUTCDate()),this}Ge("N",0,0,"eraAbbr"),Ge("NN",0,0,"eraAbbr"),Ge("NNN",0,0,"eraAbbr"),Ge("NNNN",0,0,"eraName"),Ge("NNNNN",0,0,"eraNarrow"),Ge("y",["y",1],"yo","eraYear"),Ge("y",["yy",2],0,"eraYear"),Ge("y",["yyy",3],0,"eraYear"),Ge("y",["yyyy",4],0,"eraYear"),qe("N",hh),qe("NN",hh),qe("NNN",hh),qe("NNNN",function M_(M,k){return k.erasNameRegex(M)}),qe("NNNNN",function il(M,k){return k.erasNarrowRegex(M)}),xe(["N","NN","NNN","NNNN","NNNNN"],function(M,k,V,q){var Q=V._locale.erasParse(M,q,V._strict);Q?re(V).era=Q:re(V).invalidEra=M}),qe("y",cr),qe("yy",cr),qe("yyy",cr),qe("yyyy",cr),qe("yo",function E_(M,k){return k._eraYearOrdinalRegex||cr}),xe(["y","yy","yyy","yyyy"],0),xe(["yo"],function(M,k,V,q){var Q;V._locale._eraYearOrdinalRegex&&(Q=M.match(V._locale._eraYearOrdinalRegex)),k[0]=V._locale.eraYearOrdinalParse?V._locale.eraYearOrdinalParse(M,Q):parseInt(M,10)}),Ge(0,["gg",2],0,function(){return this.weekYear()%100}),Ge(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Rn("gggg","weekYear"),Rn("ggggg","weekYear"),Rn("GGGG","isoWeekYear"),Rn("GGGGG","isoWeekYear"),Wt("weekYear","gg"),Wt("isoWeekYear","GG"),zt("weekYear",1),zt("isoWeekYear",1),qe("G",sa),qe("g",sa),qe("GG",wt,Ht),qe("gg",wt,Ht),qe("GGGG",Ur,yt),qe("gggg",Ur,yt),qe("GGGGG",vr,Gt),qe("ggggg",vr,Gt),ln(["gggg","ggggg","GGGG","GGGGG"],function(M,k,V,q){k[q.substr(0,2)]=pe(M)}),ln(["gg","GG"],function(M,k,V,q){k[q]=n.parseTwoDigitYear(M)}),Ge("Q",0,"Qo","quarter"),Wt("quarter","Q"),zt("quarter",7),qe("Q",In),xe("Q",function(M,k){k[1]=3*(pe(M)-1)}),Ge("D",["DD",2],"Do","date"),Wt("date","D"),zt("date",9),qe("D",wt),qe("DD",wt,Ht),qe("Do",function(M,k){return M?k._dayOfMonthOrdinalParse||k._ordinalParse:k._dayOfMonthOrdinalParseLenient}),xe(["D","DD"],2),xe("Do",function(M,k){k[2]=pe(M.match(wt)[0])});var Li=Ie("Date",!0);Ge("DDD",["DDDD",3],"DDDo","dayOfYear"),Wt("dayOfYear","DDD"),zt("dayOfYear",4),qe("DDD",Yn),qe("DDDD",Vi),xe(["DDD","DDDD"],function(M,k,V){V._dayOfYear=pe(M)}),Ge("m",["mm",2],0,"minute"),Wt("minute","m"),zt("minute",14),qe("m",wt),qe("mm",wt,Ht),xe(["m","mm"],4);var mf=Ie("Minutes",!1);Ge("s",["ss",2],0,"second"),Wt("second","s"),zt("second",15),qe("s",wt),qe("ss",wt,Ht),xe(["s","ss"],5);var Na,sl,kd=Ie("Seconds",!1);for(Ge("S",0,0,function(){return~~(this.millisecond()/100)}),Ge(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),Ge(0,["SSS",3],0,"millisecond"),Ge(0,["SSSS",4],0,function(){return 10*this.millisecond()}),Ge(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),Ge(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),Ge(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),Ge(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),Ge(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),Wt("millisecond","ms"),zt("millisecond",16),qe("S",Yn,In),qe("SS",Yn,Ht),qe("SSS",Yn,Vi),Na="SSSS";Na.length<=9;Na+="S")qe(Na,cr);function Yi(M,k){k[6]=pe(1e3*("0."+M))}for(Na="S";Na.length<=9;Na+="S")xe(Na,Yi);sl=Ie("Milliseconds",!1),Ge("z",0,0,"zoneAbbr"),Ge("zz",0,0,"zoneName");var Fe=Ee.prototype;function gh(M){return M}Fe.add=Cd,Fe.calendar=function Qo(M,k){1===arguments.length&&(arguments[0]?hc(arguments[0])?(M=arguments[0],k=void 0):rh(arguments[0])&&(k=arguments[0],M=void 0):(M=void 0,k=void 0));var V=M||hn(),q=Ci(V,this).startOf("day"),Q=n.calendarFormat(this,q)||"sameElse",ce=k&&(fe(k[Q])?k[Q].call(this,V):k[Q]);return this.format(ce||this.localeData().calendar(Q,this,hn(V)))},Fe.clone=function Ad(){return new Ee(this)},Fe.diff=function ah(M,k,V){var q,Q,ce;if(!this.isValid())return NaN;if(!(q=Ci(M,this)).isValid())return NaN;switch(Q=6e4*(q.utcOffset()-this.utcOffset()),k=di(k)){case"year":ce=Ko(this,q)/12;break;case"month":ce=Ko(this,q);break;case"quarter":ce=Ko(this,q)/3;break;case"second":ce=(this-q)/1e3;break;case"minute":ce=(this-q)/6e4;break;case"hour":ce=(this-q)/36e5;break;case"day":ce=(this-q-Q)/864e5;break;case"week":ce=(this-q-Q)/6048e5;break;default:ce=this-q}return V?ce:ie(ce)},Fe.endOf=function ro(M){var k,V;if(void 0===(M=di(M))||"millisecond"===M||!this.isValid())return this;switch(V=this._isUTC?Ua:Dd,M){case"year":k=V(this.year()+1,0,1)-1;break;case"quarter":k=V(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":k=V(this.year(),this.month()+1,1)-1;break;case"week":k=V(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":k=V(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":k=V(this.year(),this.month(),this.date()+1)-1;break;case"hour":k=this._d.valueOf(),k+=ga-Hr(k+(this._isUTC?0:this.utcOffset()*Dr),ga)-1;break;case"minute":k=this._d.valueOf(),k+=Dr-Hr(k,Dr)-1;break;case"second":k=this._d.valueOf(),k+=1e3-Hr(k,1e3)-1}return this._d.setTime(k),n.updateOffset(this,!0),this},Fe.format=function ja(M){M||(M=this.isUtc()?n.defaultFormatUtc:n.defaultFormat);var k=En(this,M);return this.localeData().postformat(k)},Fe.from=function xd(M,k){return this.isValid()&&(Pe(M)&&M.isValid()||hn(M).isValid())?dt({to:this,from:M}).locale(this.locale()).humanize(!k):this.localeData().invalidDate()},Fe.fromNow=function fa(M){return this.from(hn(),M)},Fe.to=function no(M,k){return this.isValid()&&(Pe(M)&&M.isValid()||hn(M).isValid())?dt({from:this,to:M}).locale(this.locale()).humanize(!k):this.localeData().invalidDate()},Fe.toNow=function Sd(M){return this.to(hn(),M)},Fe.get=function et(M){return fe(this[M=di(M)])?this[M]():this},Fe.invalidAt=function ws(){return re(this).overflow},Fe.isAfter=function gs(M,k){var V=Pe(M)?M:hn(M);return!(!this.isValid()||!V.isValid())&&("millisecond"===(k=di(k)||"millisecond")?this.valueOf()>V.valueOf():V.valueOf()9999?En(V,k?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):fe(Date.prototype.toISOString)?k?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",En(V,"Z")):En(V,k?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Fe.inspect=function Td(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var V,q,M="moment",k="";return this.isLocal()||(M=0===this.utcOffset()?"moment.utc":"moment.parseZone",k="Z"),V="["+M+'("]',q=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(V+q+"-MM-DD[T]HH:mm:ss.SSS"+k+'[")]')},typeof Symbol<"u"&&null!=Symbol.for&&(Fe[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Fe.toJSON=function tl(){return this.isValid()?this.toISOString():null},Fe.toString=function ff(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Fe.unix=function ch(){return Math.floor(this.valueOf()/1e3)},Fe.valueOf=function lh(){return this._d.valueOf()-6e4*(this._offset||0)},Fe.creationData=function Wr(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Fe.eraName=function uh(){var M,k,V,q=this.localeData().eras();for(M=0,k=q.length;Mthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Fe.isLocal=function dc(){return!!this.isValid()&&!this._isUTC},Fe.isUtcOffset=function zo(){return!!this.isValid()&&this._isUTC},Fe.isUtc=Go,Fe.isUTC=Go,Fe.zoneAbbr=function ol(){return this._isUTC?"UTC":""},Fe.zoneName=function Fa(){return this._isUTC?"Coordinated Universal Time":""},Fe.dates=Ve("dates accessor is deprecated. Use date instead.",Li),Fe.months=Ve("months accessor is deprecated. Use month instead",dr),Fe.years=Ve("years accessor is deprecated. Use year instead",qr),Fe.zone=Ve("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function cc(M,k){return null!=M?("string"!=typeof M&&(M=-M),this.utcOffset(M,k),this):-this.utcOffset()}),Fe.isDSTShifted=Ve("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function qo(){if(!Y(this._isDSTShifted))return this._isDSTShifted;var k,M={};return ke(M,this),(M=Ri(M))._a?(k=M._isUTC?ue(M._a):hn(M._a),this._isDSTShifted=this.isValid()&&function Er(M,k,V){var Ae,q=Math.min(M.length,k.length),Q=Math.abs(M.length-k.length),ce=0;for(Ae=0;Ae0):this._isDSTShifted=!1,this._isDSTShifted});var Ut=we.prototype;function ll(M,k,V,q){var Q=X(),ce=ue().set(q,k);return Q[V](ce,M)}function Ld(M,k,V){if(G(M)&&(k=M,M=void 0),M=M||"",null!=k)return ll(M,k,V,"month");var q,Q=[];for(q=0;q<12;q++)Q[q]=ll(M,q,V,"month");return Q}function fc(M,k,V,q){"boolean"==typeof M?(G(k)&&(V=k,k=void 0),k=k||""):(V=k=M,M=!1,G(k)&&(V=k,k=void 0),k=k||"");var Ae,Q=X(),ce=M?Q._week.dow:0,ct=[];if(null!=V)return ll(k,(V+ce)%7,q,"day");for(Ae=0;Ae<7;Ae++)ct[Ae]=ll(k,(Ae+ce)%7,q,"day");return ct}Ut.calendar=function Et(M,k,V){var q=this._calendar[M]||this._calendar.sameElse;return fe(q)?q.call(k,V):q},Ut.longDateFormat=function Ns(M){var k=this._longDateFormat[M],V=this._longDateFormat[M.toUpperCase()];return k||!V?k:(this._longDateFormat[M]=V.match(Kt).map(function(q){return"MMMM"===q||"MM"===q||"DD"===q||"dddd"===q?q.slice(1):q}).join(""),this._longDateFormat[M])},Ut.invalidDate=function Fs(){return this._invalidDate},Ut.ordinal=function ds(M){return this._ordinal.replace("%d",M)},Ut.preparse=gh,Ut.postformat=gh,Ut.relativeTime=function pt(M,k,V,q){var Q=this._relativeTime[V];return fe(Q)?Q(M,k,V,q):Q.replace(/%d/i,M)},Ut.pastFuture=function ei(M,k){var V=this._relativeTime[M>0?"future":"past"];return fe(V)?V(k):V.replace(/%s/i,k)},Ut.set=function ge(M){var k,V;for(V in M)I(M,V)&&(fe(k=M[V])?this[V]=k:this["_"+V]=k);this._config=M,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Ut.eras=function nl(M,k){var V,q,Q,ce=this._eras||X("en")._eras;for(V=0,q=ce.length;V=0)return ce[q]},Ut.erasConvertYear=function Hd(M,k){var V=M.since<=M.until?1:-1;return void 0===k?n(M.since).year():n(M.since).year()+(k-M.offset)*V},Ut.erasAbbrRegex=function x_(M){return I(this,"_erasAbbrRegex")||ph.call(this),M?this._erasAbbrRegex:this._erasRegex},Ut.erasNameRegex=function T_(M){return I(this,"_erasNameRegex")||ph.call(this),M?this._erasNameRegex:this._erasRegex},Ut.erasNarrowRegex=function S_(M){return I(this,"_erasNarrowRegex")||ph.call(this),M?this._erasNarrowRegex:this._erasRegex},Ut.months=function Tr(M,k){return M?D(this._months)?this._months[M.month()]:this._months[(this._months.isFormat||qs).test(k)?"format":"standalone"][M.month()]:D(this._months)?this._months:this._months.standalone},Ut.monthsShort=function bn(M,k){return M?D(this._monthsShort)?this._monthsShort[M.month()]:this._monthsShort[qs.test(k)?"format":"standalone"][M.month()]:D(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Ut.monthsParse=function la(M,k,V){var q,Q,ce;if(this._monthsParseExact)return Fr.call(this,M,k,V);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),q=0;q<12;q++){if(Q=ue([2e3,q]),V&&!this._longMonthsParse[q]&&(this._longMonthsParse[q]=new RegExp("^"+this.months(Q,"").replace(".","")+"$","i"),this._shortMonthsParse[q]=new RegExp("^"+this.monthsShort(Q,"").replace(".","")+"$","i")),!V&&!this._monthsParse[q]&&(ce="^"+this.months(Q,"")+"|^"+this.monthsShort(Q,""),this._monthsParse[q]=new RegExp(ce.replace(".",""),"i")),V&&"MMMM"===k&&this._longMonthsParse[q].test(M))return q;if(V&&"MMM"===k&&this._shortMonthsParse[q].test(M))return q;if(!V&&this._monthsParse[q].test(M))return q}},Ut.monthsRegex=function ni(M){return this._monthsParseExact?(I(this,"_monthsRegex")||Di.call(this),M?this._monthsStrictRegex:this._monthsRegex):(I(this,"_monthsRegex")||(this._monthsRegex=_t),this._monthsStrictRegex&&M?this._monthsStrictRegex:this._monthsRegex)},Ut.monthsShortRegex=function Yr(M){return this._monthsParseExact?(I(this,"_monthsRegex")||Di.call(this),M?this._monthsShortStrictRegex:this._monthsShortRegex):(I(this,"_monthsShortRegex")||(this._monthsShortRegex=tn),this._monthsShortStrictRegex&&M?this._monthsShortStrictRegex:this._monthsShortRegex)},Ut.week=function mn(M){return ua(M,this._week.dow,this._week.doy).week},Ut.firstDayOfYear=function Gs(){return this._week.doy},Ut.firstDayOfWeek=function it(){return this._week.dow},Ut.weekdays=function Gu(M,k){var V=D(this._weekdays)?this._weekdays:this._weekdays[M&&!0!==M&&this._weekdays.isFormat.test(k)?"format":"standalone"];return!0===M?md(V,this._week.dow):M?V[M.day()]:V},Ut.weekdaysMin=function $u(M){return!0===M?md(this._weekdaysMin,this._week.dow):M?this._weekdaysMin[M.day()]:this._weekdaysMin},Ut.weekdaysShort=function Wu(M){return!0===M?md(this._weekdaysShort,this._week.dow):M?this._weekdaysShort[M.day()]:this._weekdaysShort},Ut.weekdaysParse=function gd(M,k,V){var q,Q,ce;if(this._weekdaysParseExact)return ha.call(this,M,k,V);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),q=0;q<7;q++){if(Q=ue([2e3,1]).day(q),V&&!this._fullWeekdaysParse[q]&&(this._fullWeekdaysParse[q]=new RegExp("^"+this.weekdays(Q,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[q]=new RegExp("^"+this.weekdaysShort(Q,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[q]=new RegExp("^"+this.weekdaysMin(Q,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[q]||(ce="^"+this.weekdays(Q,"")+"|^"+this.weekdaysShort(Q,"")+"|^"+this.weekdaysMin(Q,""),this._weekdaysParse[q]=new RegExp(ce.replace(".",""),"i")),V&&"dddd"===k&&this._fullWeekdaysParse[q].test(M))return q;if(V&&"ddd"===k&&this._shortWeekdaysParse[q].test(M))return q;if(V&&"dd"===k&&this._minWeekdaysParse[q].test(M))return q;if(!V&&this._weekdaysParse[q].test(M))return q}},Ut.weekdaysRegex=function _d(M){return this._weekdaysParseExact?(I(this,"_weekdaysRegex")||jo.call(this),M?this._weekdaysStrictRegex:this._weekdaysRegex):(I(this,"_weekdaysRegex")||(this._weekdaysRegex=Va),this._weekdaysStrictRegex&&M?this._weekdaysStrictRegex:this._weekdaysRegex)},Ut.weekdaysShortRegex=function $s(M){return this._weekdaysParseExact?(I(this,"_weekdaysRegex")||jo.call(this),M?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(I(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=wn),this._weekdaysShortStrictRegex&&M?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Ut.weekdaysMinRegex=function Js(M){return this._weekdaysParseExact?(I(this,"_weekdaysRegex")||jo.call(this),M?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(I(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Oo),this._weekdaysMinStrictRegex&&M?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Ut.isPM=function Ju(M){return"p"===(M+"").toLowerCase().charAt(0)},Ut.meridiem=function y_(M,k,V){return M>11?V?"pm":"PM":V?"am":"AM"},U("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(M){var k=M%10;return M+(1===pe(M%100/10)?"th":1===k?"st":2===k?"nd":3===k?"rd":"th")}}),n.lang=Ve("moment.lang is deprecated. Use moment.locale instead.",U),n.langData=Ve("moment.langData is deprecated. Use moment.localeData instead.",X);var hr=Math.abs;function Id(M,k,V,q){var Q=dt(k,V);return M._milliseconds+=q*Q._milliseconds,M._days+=q*Q._days,M._months+=q*Q._months,M._bubble()}function cl(M){return M<0?Math.floor(M):Math.ceil(M)}function wf(M){return 4800*M/146097}function Tn(M){return 146097*M/4800}function Pr(M){return function(){return this.as(M)}}var ys=Pr("ms"),pr=Pr("s"),yh=Pr("m"),Ch=Pr("h"),Od=Pr("d"),ul=Pr("w"),Bd=Pr("M"),qa=Pr("Q"),yf=Pr("y");function qi(M){return function(){return this.isValid()?this._data[M]:NaN}}var vh=qi("milliseconds"),Cf=qi("seconds"),hl=qi("minutes"),$r=qi("hours"),pl=qi("days"),Af=qi("months"),D_=qi("years");var _a=Math.round,fl={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function H_(M,k,V,q,Q){return Q.relativeTime(k||1,!!V,M,q)}var jd=Math.abs;function vs(M){return(M>0)-(M<0)||+M}function Ud(){if(!this.isValid())return this.localeData().invalidDate();var q,Q,ce,Ae,kt,rn,Gn,Rr,M=jd(this._milliseconds)/1e3,k=jd(this._days),V=jd(this._months),ct=this.asSeconds();return ct?(q=ie(M/60),Q=ie(q/60),M%=60,q%=60,ce=ie(V/12),V%=12,Ae=M?M.toFixed(3).replace(/\.?0+$/,""):"",kt=ct<0?"-":"",rn=vs(this._months)!==vs(ct)?"-":"",Gn=vs(this._days)!==vs(ct)?"-":"",Rr=vs(this._milliseconds)!==vs(ct)?"-":"",kt+"P"+(ce?rn+ce+"Y":"")+(V?rn+V+"M":"")+(k?Gn+k+"D":"")+(Q||q||M?"T":"")+(Q?Rr+Q+"H":"")+(q?Rr+q+"M":"")+(M?Rr+Ae+"S":"")):"P0D"}var jt=zr.prototype;return jt.isValid=function It(){return this._isValid},jt.abs=function _f(){var M=this._data;return this._milliseconds=hr(this._milliseconds),this._days=hr(this._days),this._months=hr(this._months),M.milliseconds=hr(M.milliseconds),M.seconds=hr(M.seconds),M.minutes=hr(M.minutes),M.hours=hr(M.hours),M.months=hr(M.months),M.years=hr(M.years),this},jt.add=function _h(M,k){return Id(this,M,k,1)},jt.subtract=function bf(M,k){return Id(this,M,k,-1)},jt.as=function bh(M){if(!this.isValid())return NaN;var k,V,q=this._milliseconds;if("month"===(M=di(M))||"quarter"===M||"year"===M)switch(k=this._days+q/864e5,V=this._months+wf(k),M){case"month":return V;case"quarter":return V/3;case"year":return V/12}else switch(k=this._days+Math.round(Tn(this._months)),M){case"week":return k/7+q/6048e5;case"day":return k+q/864e5;case"hour":return 24*k+q/36e5;case"minute":return 1440*k+q/6e4;case"second":return 86400*k+q/1e3;case"millisecond":return Math.floor(864e5*k)+q;default:throw new Error("Unknown unit "+M)}},jt.asMilliseconds=ys,jt.asSeconds=pr,jt.asMinutes=yh,jt.asHours=Ch,jt.asDays=Od,jt.asWeeks=ul,jt.asMonths=Bd,jt.asQuarters=qa,jt.asYears=yf,jt.valueOf=function wh(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*pe(this._months/12):NaN},jt._bubble=function dl(){var Q,ce,Ae,ct,kt,M=this._milliseconds,k=this._days,V=this._months,q=this._data;return M>=0&&k>=0&&V>=0||M<=0&&k<=0&&V<=0||(M+=864e5*cl(Tn(V)+k),k=0,V=0),q.milliseconds=M%1e3,Q=ie(M/1e3),q.seconds=Q%60,ce=ie(Q/60),q.minutes=ce%60,Ae=ie(ce/60),q.hours=Ae%24,k+=ie(Ae/24),V+=kt=ie(wf(k)),k-=cl(Tn(kt)),ct=ie(V/12),V%=12,q.days=k,q.months=V,q.years=ct,this},jt.clone=function Ah(){return dt(this)},jt.get=function za(M){return M=di(M),this.isValid()?this[M+"s"]():NaN},jt.milliseconds=vh,jt.seconds=Cf,jt.minutes=hl,jt.hours=$r,jt.days=pl,jt.weeks=function Th(){return ie(this.days()/7)},jt.months=Af,jt.years=D_,jt.humanize=function As(M,k){if(!this.isValid())return this.localeData().invalidDate();var Q,ce,V=!1,q=fl;return"object"==typeof M&&(k=M,M=!1),"boolean"==typeof M&&(V=M),"object"==typeof k&&(q=Object.assign({},fl,k),null!=k.s&&null==k.ss&&(q.ss=k.s-1)),ce=function vf(M,k,V,q){var Q=dt(M).abs(),ce=_a(Q.as("s")),Ae=_a(Q.as("m")),ct=_a(Q.as("h")),kt=_a(Q.as("d")),rn=_a(Q.as("M")),Gn=_a(Q.as("w")),Rr=_a(Q.as("y")),ba=ce<=V.ss&&["s",ce]||ce0,ba[4]=q,H_.apply(null,ba)}(this,!V,q,Q=this.localeData()),V&&(ce=Q.pastFuture(+this,ce)),Q.postformat(ce)},jt.toISOString=Ud,jt.toString=Ud,jt.toJSON=Ud,jt.locale=sh,jt.localeData=Ed,jt.toIsoString=Ve("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Ud),jt.lang=Md,Ge("X",0,0,"unix"),Ge("x",0,0,"valueOf"),qe("x",sa),qe("X",/[+-]?\d+(\.\d{1,3})?/),xe("X",function(M,k,V){V._d=new Date(1e3*parseFloat(M))}),xe("x",function(M,k,V){V._d=new Date(pe(M))}),n.version="2.29.4",function P(M){x=M}(hn),n.fn=Fe,n.min=function ic(){return wd("isBefore",[].slice.call(arguments,0))},n.max=function rc(){return wd("isAfter",[].slice.call(arguments,0))},n.now=function(){return Date.now?Date.now():+new Date},n.utc=ue,n.unix=function oo(M){return hn(1e3*M)},n.months=function mc(M,k){return Ld(M,k,"months")},n.isDate=ee,n.locale=U,n.invalid=Se,n.duration=dt,n.isMoment=Pe,n.weekdays=function _c(M,k,V){return fc(M,k,V,"weekdays")},n.parseZone=function gf(){return hn.apply(null,arguments).parseZone()},n.localeData=X,n.isDuration=Fo,n.monthsShort=function gc(M,k){return Ld(M,k,"monthsShort")},n.weekdaysMin=function lo(M,k,V){return fc(M,k,V,"weekdaysMin")},n.defineLocale=J,n.updateLocale=function N(M,k){if(null!=k){var V,q,Q=qn;null!=An[M]&&null!=An[M].parentLocale?An[M].set(Te(An[M]._config,k)):(null!=(q=fi(M))&&(Q=q._config),k=Te(Q,k),null==q&&(k.abbr=M),(V=new we(k)).parentLocale=An[M],An[M]=V),U(M)}else null!=An[M]&&(null!=An[M].parentLocale?(An[M]=An[M].parentLocale,M===U()&&U(M)):null!=An[M]&&delete An[M]);return An[M]},n.locales=function he(){return ze(An)},n.weekdaysShort=function Ya(M,k,V){return fc(M,k,V,"weekdaysShort")},n.normalizeUnits=di,n.relativeTimeRounding=function Vd(M){return void 0===M?_a:"function"==typeof M&&(_a=M,!0)},n.relativeTimeThreshold=function Cs(M,k){return void 0!==fl[M]&&(void 0===k?fl[M]:(fl[M]=k,"s"===M&&(fl.ss=k-1),!0))},n.calendarFormat=function eo(M,k){var V=M.diff(k,"days",!0);return V<-6?"sameElse":V<-1?"lastWeek":V<0?"lastDay":V<1?"sameDay":V<2?"nextDay":V<7?"nextWeek":"sameElse"},n.prototype=Fe,n.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},n}()},9751:(z,W,E)=>{"use strict";E.d(W,{y:()=>Y});var x=E(930),n=E(727),P=E(8822),D=E(9635),H=E(2416),I=E(576),B=E(2806);let Y=(()=>{class ae{constructor(se){se&&(this._subscribe=se)}lift(se){const re=new ae;return re.source=this,re.operator=se,re}subscribe(se,re,_e){const ye=function te(ae){return ae&&ae instanceof x.Lv||function ee(ae){return ae&&(0,I.m)(ae.next)&&(0,I.m)(ae.error)&&(0,I.m)(ae.complete)}(ae)&&(0,n.Nn)(ae)}(se)?se:new x.Hp(se,re,_e);return(0,B.x)(()=>{const{operator:Se,source:Je}=this;ye.add(Se?Se.call(ye,Je):Je?this._subscribe(ye):this._trySubscribe(ye))}),ye}_trySubscribe(se){try{return this._subscribe(se)}catch(re){se.error(re)}}forEach(se,re){return new(re=G(re))((_e,ye)=>{const Se=new x.Hp({next:Je=>{try{se(Je)}catch(Ze){ye(Ze),Se.unsubscribe()}},error:ye,complete:_e});this.subscribe(Se)})}_subscribe(se){var re;return null===(re=this.source)||void 0===re?void 0:re.subscribe(se)}[P.L](){return this}pipe(...se){return(0,D.U)(se)(this)}toPromise(se){return new(se=G(se))((re,_e)=>{let ye;this.subscribe(Se=>ye=Se,Se=>_e(Se),()=>re(ye))})}}return ae.create=ue=>new ae(ue),ae})();function G(ae){var ue;return null!==(ue=ae??H.v.Promise)&&void 0!==ue?ue:Promise}},7579:(z,W,E)=>{"use strict";E.d(W,{x:()=>B});var x=E(9751),n=E(727);const D=(0,E(3888).d)(G=>function(){G(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var H=E(8737),I=E(2806);let B=(()=>{class G extends x.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(te){const ae=new Y(this,this);return ae.operator=te,ae}_throwIfClosed(){if(this.closed)throw new D}next(te){(0,I.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const ae of this.currentObservers)ae.next(te)}})}error(te){(0,I.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=te;const{observers:ae}=this;for(;ae.length;)ae.shift().error(te)}})}complete(){(0,I.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:te}=this;for(;te.length;)te.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var te;return(null===(te=this.observers)||void 0===te?void 0:te.length)>0}_trySubscribe(te){return this._throwIfClosed(),super._trySubscribe(te)}_subscribe(te){return this._throwIfClosed(),this._checkFinalizedStatuses(te),this._innerSubscribe(te)}_innerSubscribe(te){const{hasError:ae,isStopped:ue,observers:se}=this;return ae||ue?n.Lc:(this.currentObservers=null,se.push(te),new n.w0(()=>{this.currentObservers=null,(0,H.P)(se,te)}))}_checkFinalizedStatuses(te){const{hasError:ae,thrownError:ue,isStopped:se}=this;ae?te.error(ue):se&&te.complete()}asObservable(){const te=new x.y;return te.source=this,te}}return G.create=(ee,te)=>new Y(ee,te),G})();class Y extends B{constructor(ee,te){super(),this.destination=ee,this.source=te}next(ee){var te,ae;null===(ae=null===(te=this.destination)||void 0===te?void 0:te.next)||void 0===ae||ae.call(te,ee)}error(ee){var te,ae;null===(ae=null===(te=this.destination)||void 0===te?void 0:te.error)||void 0===ae||ae.call(te,ee)}complete(){var ee,te;null===(te=null===(ee=this.destination)||void 0===ee?void 0:ee.complete)||void 0===te||te.call(ee)}_subscribe(ee){var te,ae;return null!==(ae=null===(te=this.source)||void 0===te?void 0:te.subscribe(ee))&&void 0!==ae?ae:n.Lc}}},930:(z,W,E)=>{"use strict";E.d(W,{Hp:()=>_e,Lv:()=>ae});var x=E(576),n=E(727),P=E(2416),D=E(7849),H=E(5032);const I=G("C",void 0,void 0);function G(ke,Ee,Pe){return{kind:ke,value:Ee,error:Pe}}var ee=E(3410),te=E(2806);class ae extends n.w0{constructor(Ee){super(),this.isStopped=!1,Ee?(this.destination=Ee,(0,n.Nn)(Ee)&&Ee.add(this)):this.destination=Ze}static create(Ee,Pe,ut){return new _e(Ee,Pe,ut)}next(Ee){this.isStopped?Je(function Y(ke){return G("N",ke,void 0)}(Ee),this):this._next(Ee)}error(Ee){this.isStopped?Je(function B(ke){return G("E",void 0,ke)}(Ee),this):(this.isStopped=!0,this._error(Ee))}complete(){this.isStopped?Je(I,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(Ee){this.destination.next(Ee)}_error(Ee){try{this.destination.error(Ee)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const ue=Function.prototype.bind;function se(ke,Ee){return ue.call(ke,Ee)}class re{constructor(Ee){this.partialObserver=Ee}next(Ee){const{partialObserver:Pe}=this;if(Pe.next)try{Pe.next(Ee)}catch(ut){ye(ut)}}error(Ee){const{partialObserver:Pe}=this;if(Pe.error)try{Pe.error(Ee)}catch(ut){ye(ut)}else ye(Ee)}complete(){const{partialObserver:Ee}=this;if(Ee.complete)try{Ee.complete()}catch(Pe){ye(Pe)}}}class _e extends ae{constructor(Ee,Pe,ut){let Ve;if(super(),(0,x.m)(Ee)||!Ee)Ve={next:Ee??void 0,error:Pe??void 0,complete:ut??void 0};else{let Ne;this&&P.v.useDeprecatedNextContext?(Ne=Object.create(Ee),Ne.unsubscribe=()=>this.unsubscribe(),Ve={next:Ee.next&&se(Ee.next,Ne),error:Ee.error&&se(Ee.error,Ne),complete:Ee.complete&&se(Ee.complete,Ne)}):Ve=Ee}this.destination=new re(Ve)}}function ye(ke){P.v.useDeprecatedSynchronousErrorHandling?(0,te.O)(ke):(0,D.h)(ke)}function Je(ke,Ee){const{onStoppedNotification:Pe}=P.v;Pe&&ee.z.setTimeout(()=>Pe(ke,Ee))}const Ze={closed:!0,next:H.Z,error:function Se(ke){throw ke},complete:H.Z}},727:(z,W,E)=>{"use strict";E.d(W,{Lc:()=>I,w0:()=>H,Nn:()=>B});var x=E(576);const P=(0,E(3888).d)(G=>function(te){G(this),this.message=te?`${te.length} errors occurred during unsubscription:\n${te.map((ae,ue)=>`${ue+1}) ${ae.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=te});var D=E(8737);class H{constructor(ee){this.initialTeardown=ee,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let ee;if(!this.closed){this.closed=!0;const{_parentage:te}=this;if(te)if(this._parentage=null,Array.isArray(te))for(const se of te)se.remove(this);else te.remove(this);const{initialTeardown:ae}=this;if((0,x.m)(ae))try{ae()}catch(se){ee=se instanceof P?se.errors:[se]}const{_finalizers:ue}=this;if(ue){this._finalizers=null;for(const se of ue)try{Y(se)}catch(re){ee=ee??[],re instanceof P?ee=[...ee,...re.errors]:ee.push(re)}}if(ee)throw new P(ee)}}add(ee){var te;if(ee&&ee!==this)if(this.closed)Y(ee);else{if(ee instanceof H){if(ee.closed||ee._hasParent(this))return;ee._addParent(this)}(this._finalizers=null!==(te=this._finalizers)&&void 0!==te?te:[]).push(ee)}}_hasParent(ee){const{_parentage:te}=this;return te===ee||Array.isArray(te)&&te.includes(ee)}_addParent(ee){const{_parentage:te}=this;this._parentage=Array.isArray(te)?(te.push(ee),te):te?[te,ee]:ee}_removeParent(ee){const{_parentage:te}=this;te===ee?this._parentage=null:Array.isArray(te)&&(0,D.P)(te,ee)}remove(ee){const{_finalizers:te}=this;te&&(0,D.P)(te,ee),ee instanceof H&&ee._removeParent(this)}}H.EMPTY=(()=>{const G=new H;return G.closed=!0,G})();const I=H.EMPTY;function B(G){return G instanceof H||G&&"closed"in G&&(0,x.m)(G.remove)&&(0,x.m)(G.add)&&(0,x.m)(G.unsubscribe)}function Y(G){(0,x.m)(G)?G():G.unsubscribe()}},2416:(z,W,E)=>{"use strict";E.d(W,{v:()=>x});const x={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9841:(z,W,E)=>{"use strict";E.d(W,{a:()=>ee});var x=E(9751),n=E(4742),P=E(2076),D=E(4671),H=E(3268),I=E(3269),B=E(1810),Y=E(5403),G=E(9672);function ee(...ue){const se=(0,I.yG)(ue),re=(0,I.jO)(ue),{args:_e,keys:ye}=(0,n.D)(ue);if(0===_e.length)return(0,P.D)([],se);const Se=new x.y(function te(ue,se,re=D.y){return _e=>{ae(se,()=>{const{length:ye}=ue,Se=new Array(ye);let Je=ye,Ze=ye;for(let ke=0;ke{const Ee=(0,P.D)(ue[ke],se);let Pe=!1;Ee.subscribe((0,Y.x)(_e,ut=>{Se[ke]=ut,Pe||(Pe=!0,Ze--),Ze||_e.next(re(Se.slice()))},()=>{--Je||_e.complete()}))},_e)},_e)}}(_e,se,ye?Je=>(0,B.n)(ye,Je):D.y));return re?Se.pipe((0,H.Z)(re)):Se}function ae(ue,se,re){ue?(0,G.f)(re,ue,se):se()}},7272:(z,W,E)=>{"use strict";E.d(W,{z:()=>H});var x=E(8189),P=E(3269),D=E(2076);function H(...I){return function n(){return(0,x.J)(1)}()((0,D.D)(I,(0,P.yG)(I)))}},515:(z,W,E)=>{"use strict";E.d(W,{E:()=>n});const n=new(E(9751).y)(H=>H.complete())},2076:(z,W,E)=>{"use strict";E.d(W,{D:()=>ut});var x=E(8421),n=E(9672),P=E(4482),D=E(5403);function H(Ve,Ne=0){return(0,P.e)((je,fe)=>{je.subscribe((0,D.x)(fe,ge=>(0,n.f)(fe,Ve,()=>fe.next(ge),Ne),()=>(0,n.f)(fe,Ve,()=>fe.complete(),Ne),ge=>(0,n.f)(fe,Ve,()=>fe.error(ge),Ne)))})}function I(Ve,Ne=0){return(0,P.e)((je,fe)=>{fe.add(Ve.schedule(()=>je.subscribe(fe),Ne))})}var G=E(9751),te=E(2202),ae=E(576);function se(Ve,Ne){if(!Ve)throw new Error("Iterable cannot be null");return new G.y(je=>{(0,n.f)(je,Ne,()=>{const fe=Ve[Symbol.asyncIterator]();(0,n.f)(je,Ne,()=>{fe.next().then(ge=>{ge.done?je.complete():je.next(ge.value)})},0,!0)})})}var re=E(3670),_e=E(8239),ye=E(1144),Se=E(6495),Je=E(2206),Ze=E(4532),ke=E(3260);function ut(Ve,Ne){return Ne?function Pe(Ve,Ne){if(null!=Ve){if((0,re.c)(Ve))return function B(Ve,Ne){return(0,x.Xf)(Ve).pipe(I(Ne),H(Ne))}(Ve,Ne);if((0,ye.z)(Ve))return function ee(Ve,Ne){return new G.y(je=>{let fe=0;return Ne.schedule(function(){fe===Ve.length?je.complete():(je.next(Ve[fe++]),je.closed||this.schedule())})})}(Ve,Ne);if((0,_e.t)(Ve))return function Y(Ve,Ne){return(0,x.Xf)(Ve).pipe(I(Ne),H(Ne))}(Ve,Ne);if((0,Je.D)(Ve))return se(Ve,Ne);if((0,Se.T)(Ve))return function ue(Ve,Ne){return new G.y(je=>{let fe;return(0,n.f)(je,Ne,()=>{fe=Ve[te.h](),(0,n.f)(je,Ne,()=>{let ge,Te;try{({value:ge,done:Te}=fe.next())}catch(we){return void je.error(we)}Te?je.complete():je.next(ge)},0,!0)}),()=>(0,ae.m)(fe?.return)&&fe.return()})}(Ve,Ne);if((0,ke.L)(Ve))return function Ee(Ve,Ne){return se((0,ke.Q)(Ve),Ne)}(Ve,Ne)}throw(0,Ze.z)(Ve)}(Ve,Ne):(0,x.Xf)(Ve)}},8421:(z,W,E)=>{"use strict";E.d(W,{Xf:()=>ue});var x=E(655),n=E(1144),P=E(8239),D=E(9751),H=E(3670),I=E(2206),B=E(4532),Y=E(6495),G=E(3260),ee=E(576),te=E(7849),ae=E(8822);function ue(ke){if(ke instanceof D.y)return ke;if(null!=ke){if((0,H.c)(ke))return function se(ke){return new D.y(Ee=>{const Pe=ke[ae.L]();if((0,ee.m)(Pe.subscribe))return Pe.subscribe(Ee);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(ke);if((0,n.z)(ke))return function re(ke){return new D.y(Ee=>{for(let Pe=0;Pe{ke.then(Pe=>{Ee.closed||(Ee.next(Pe),Ee.complete())},Pe=>Ee.error(Pe)).then(null,te.h)})}(ke);if((0,I.D)(ke))return Se(ke);if((0,Y.T)(ke))return function ye(ke){return new D.y(Ee=>{for(const Pe of ke)if(Ee.next(Pe),Ee.closed)return;Ee.complete()})}(ke);if((0,G.L)(ke))return function Je(ke){return Se((0,G.Q)(ke))}(ke)}throw(0,B.z)(ke)}function Se(ke){return new D.y(Ee=>{(function Ze(ke,Ee){var Pe,ut,Ve,Ne;return(0,x.mG)(this,void 0,void 0,function*(){try{for(Pe=(0,x.KL)(ke);!(ut=yield Pe.next()).done;)if(Ee.next(ut.value),Ee.closed)return}catch(je){Ve={error:je}}finally{try{ut&&!ut.done&&(Ne=Pe.return)&&(yield Ne.call(Pe))}finally{if(Ve)throw Ve.error}}Ee.complete()})})(ke,Ee).catch(Pe=>Ee.error(Pe))})}},6451:(z,W,E)=>{"use strict";E.d(W,{T:()=>I});var x=E(8189),n=E(8421),P=E(515),D=E(3269),H=E(2076);function I(...B){const Y=(0,D.yG)(B),G=(0,D._6)(B,1/0),ee=B;return ee.length?1===ee.length?(0,n.Xf)(ee[0]):(0,x.J)(G)((0,H.D)(ee,Y)):P.E}},9646:(z,W,E)=>{"use strict";E.d(W,{of:()=>P});var x=E(3269),n=E(2076);function P(...D){const H=(0,x.yG)(D);return(0,n.D)(D,H)}},102:(z,W,E)=>{"use strict";E.d(W,{S:()=>I});var x=E(9751),n=E(8421);const{isArray:P}=Array;var H=E(5403);function I(...Y){return 1===(Y=function D(Y){return 1===Y.length&&P(Y[0])?Y[0]:Y}(Y)).length?(0,n.Xf)(Y[0]):new x.y(function B(Y){return G=>{let ee=[];for(let te=0;ee&&!G.closed&&te{if(ee){for(let ue=0;ue{"use strict";E.d(W,{_:()=>P});var x=E(9751),n=E(576);function P(D,H){const I=(0,n.m)(D)?D:()=>D,B=Y=>Y.error(I());return new x.y(H?Y=>H.schedule(B,0,Y):B)}},2805:(z,W,E)=>{"use strict";E.d(W,{H:()=>H});var x=E(9751),n=E(4986),P=E(3532),D=E(1165);function H(I=0,B,Y=n.P){let G=-1;return null!=B&&((0,P.K)(B)?Y=B:G=B),new x.y(ee=>{let te=(0,D.q)(I)?+I-Y.now():I;te<0&&(te=0);let ae=0;return Y.schedule(function(){ee.closed||(ee.next(ae++),0<=G?this.schedule(void 0,G):ee.complete())},te)})}},5403:(z,W,E)=>{"use strict";E.d(W,{x:()=>n});var x=E(930);function n(D,H,I,B,Y){return new P(D,H,I,B,Y)}class P extends x.Lv{constructor(H,I,B,Y,G,ee){super(H),this.onFinalize=G,this.shouldUnsubscribe=ee,this._next=I?function(te){try{I(te)}catch(ae){H.error(ae)}}:super._next,this._error=Y?function(te){try{Y(te)}catch(ae){H.error(ae)}finally{this.unsubscribe()}}:super._error,this._complete=B?function(){try{B()}catch(te){H.error(te)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var H;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:I}=this;super.unsubscribe(),!I&&(null===(H=this.onFinalize)||void 0===H||H.call(this))}}}},262:(z,W,E)=>{"use strict";E.d(W,{K:()=>D});var x=E(8421),n=E(5403),P=E(4482);function D(H){return(0,P.e)((I,B)=>{let ee,Y=null,G=!1;Y=I.subscribe((0,n.x)(B,void 0,void 0,te=>{ee=(0,x.Xf)(H(te,D(H)(I))),Y?(Y.unsubscribe(),Y=null,ee.subscribe(B)):G=!0})),G&&(Y.unsubscribe(),Y=null,ee.subscribe(B))})}},4351:(z,W,E)=>{"use strict";E.d(W,{b:()=>P});var x=E(5577),n=E(576);function P(D,H){return(0,n.m)(H)?(0,x.z)(D,H,1):(0,x.z)(D,1)}},8372:(z,W,E)=>{"use strict";E.d(W,{b:()=>D});var x=E(4986),n=E(4482),P=E(5403);function D(H,I=x.z){return(0,n.e)((B,Y)=>{let G=null,ee=null,te=null;const ae=()=>{if(G){G.unsubscribe(),G=null;const se=ee;ee=null,Y.next(se)}};function ue(){const se=te+H,re=I.now();if(re{ee=se,te=I.now(),G||(G=I.schedule(ue,H),Y.add(G))},()=>{ae(),Y.complete()},void 0,()=>{ee=G=null}))})}},6590:(z,W,E)=>{"use strict";E.d(W,{d:()=>P});var x=E(4482),n=E(5403);function P(D){return(0,x.e)((H,I)=>{let B=!1;H.subscribe((0,n.x)(I,Y=>{B=!0,I.next(Y)},()=>{B||I.next(D),I.complete()}))})}},1005:(z,W,E)=>{"use strict";E.d(W,{g:()=>ae});var x=E(4986),n=E(7272),P=E(5698),D=E(4482),H=E(5403),I=E(5032),Y=E(9718),G=E(5577);function ee(ue,se){return se?re=>(0,n.z)(se.pipe((0,P.q)(1),function B(){return(0,D.e)((ue,se)=>{ue.subscribe((0,H.x)(se,I.Z))})}()),re.pipe(ee(ue))):(0,G.z)((re,_e)=>ue(re,_e).pipe((0,P.q)(1),(0,Y.h)(re)))}var te=E(2805);function ae(ue,se=x.z){const re=(0,te.H)(ue,se);return ee(()=>re)}},9300:(z,W,E)=>{"use strict";E.d(W,{h:()=>P});var x=E(4482),n=E(5403);function P(D,H){return(0,x.e)((I,B)=>{let Y=0;I.subscribe((0,n.x)(B,G=>D.call(H,G,Y++)&&B.next(G)))})}},590:(z,W,E)=>{"use strict";E.d(W,{P:()=>B});var x=E(6805),n=E(9300),P=E(5698),D=E(6590),H=E(8068),I=E(4671);function B(Y,G){const ee=arguments.length>=2;return te=>te.pipe(Y?(0,n.h)((ae,ue)=>Y(ae,ue,te)):I.y,(0,P.q)(1),ee?(0,D.d)(G):(0,H.T)(()=>new x.K))}},4004:(z,W,E)=>{"use strict";E.d(W,{U:()=>P});var x=E(4482),n=E(5403);function P(D,H){return(0,x.e)((I,B)=>{let Y=0;I.subscribe((0,n.x)(B,G=>{B.next(D.call(H,G,Y++))}))})}},9718:(z,W,E)=>{"use strict";E.d(W,{h:()=>n});var x=E(4004);function n(P){return(0,x.U)(()=>P)}},8189:(z,W,E)=>{"use strict";E.d(W,{J:()=>P});var x=E(5577),n=E(4671);function P(D=1/0){return(0,x.z)(n.y,D)}},5577:(z,W,E)=>{"use strict";E.d(W,{z:()=>Y});var x=E(4004),n=E(8421),P=E(4482),D=E(9672),H=E(5403),B=E(576);function Y(G,ee,te=1/0){return(0,B.m)(ee)?Y((ae,ue)=>(0,x.U)((se,re)=>ee(ae,se,ue,re))((0,n.Xf)(G(ae,ue))),te):("number"==typeof ee&&(te=ee),(0,P.e)((ae,ue)=>function I(G,ee,te,ae,ue,se,re,_e){const ye=[];let Se=0,Je=0,Ze=!1;const ke=()=>{Ze&&!ye.length&&!Se&&ee.complete()},Ee=ut=>Se{se&&ee.next(ut),Se++;let Ve=!1;(0,n.Xf)(te(ut,Je++)).subscribe((0,H.x)(ee,Ne=>{ue?.(Ne),se?Ee(Ne):ee.next(Ne)},()=>{Ve=!0},void 0,()=>{if(Ve)try{for(Se--;ye.length&&SePe(Ne)):Pe(Ne)}ke()}catch(Ne){ee.error(Ne)}}))};return G.subscribe((0,H.x)(ee,Ee,()=>{Ze=!0,ke()})),()=>{_e?.()}}(ae,ue,G,te)))}},3099:(z,W,E)=>{"use strict";E.d(W,{B:()=>H});var x=E(8421),n=E(7579),P=E(930),D=E(4482);function H(B={}){const{connector:Y=(()=>new n.x),resetOnError:G=!0,resetOnComplete:ee=!0,resetOnRefCountZero:te=!0}=B;return ae=>{let ue,se,re,_e=0,ye=!1,Se=!1;const Je=()=>{se?.unsubscribe(),se=void 0},Ze=()=>{Je(),ue=re=void 0,ye=Se=!1},ke=()=>{const Ee=ue;Ze(),Ee?.unsubscribe()};return(0,D.e)((Ee,Pe)=>{_e++,!Se&&!ye&&Je();const ut=re=re??Y();Pe.add(()=>{_e--,0===_e&&!Se&&!ye&&(se=I(ke,te))}),ut.subscribe(Pe),!ue&&_e>0&&(ue=new P.Hp({next:Ve=>ut.next(Ve),error:Ve=>{Se=!0,Je(),se=I(Ze,G,Ve),ut.error(Ve)},complete:()=>{ye=!0,Je(),se=I(Ze,ee),ut.complete()}}),(0,x.Xf)(Ee).subscribe(ue))})(ae)}}function I(B,Y,...G){if(!0===Y)return void B();if(!1===Y)return;const ee=new P.Hp({next:()=>{ee.unsubscribe(),B()}});return Y(...G).subscribe(ee)}},3900:(z,W,E)=>{"use strict";E.d(W,{w:()=>D});var x=E(8421),n=E(4482),P=E(5403);function D(H,I){return(0,n.e)((B,Y)=>{let G=null,ee=0,te=!1;const ae=()=>te&&!G&&Y.complete();B.subscribe((0,P.x)(Y,ue=>{G?.unsubscribe();let se=0;const re=ee++;(0,x.Xf)(H(ue,re)).subscribe(G=(0,P.x)(Y,_e=>Y.next(I?I(ue,_e,re,se++):_e),()=>{G=null,ae()}))},()=>{te=!0,ae()}))})}},5698:(z,W,E)=>{"use strict";E.d(W,{q:()=>D});var x=E(515),n=E(4482),P=E(5403);function D(H){return H<=0?()=>x.E:(0,n.e)((I,B)=>{let Y=0;I.subscribe((0,P.x)(B,G=>{++Y<=H&&(B.next(G),H<=Y&&B.complete())}))})}},8505:(z,W,E)=>{"use strict";E.d(W,{b:()=>H});var x=E(576),n=E(4482),P=E(5403),D=E(4671);function H(I,B,Y){const G=(0,x.m)(I)||B||Y?{next:I,error:B,complete:Y}:I;return G?(0,n.e)((ee,te)=>{var ae;null===(ae=G.subscribe)||void 0===ae||ae.call(G);let ue=!0;ee.subscribe((0,P.x)(te,se=>{var re;null===(re=G.next)||void 0===re||re.call(G,se),te.next(se)},()=>{var se;ue=!1,null===(se=G.complete)||void 0===se||se.call(G),te.complete()},se=>{var re;ue=!1,null===(re=G.error)||void 0===re||re.call(G,se),te.error(se)},()=>{var se,re;ue&&(null===(se=G.unsubscribe)||void 0===se||se.call(G)),null===(re=G.finalize)||void 0===re||re.call(G)}))}):D.y}},8068:(z,W,E)=>{"use strict";E.d(W,{T:()=>D});var x=E(6805),n=E(4482),P=E(5403);function D(I=H){return(0,n.e)((B,Y)=>{let G=!1;B.subscribe((0,P.x)(Y,ee=>{G=!0,Y.next(ee)},()=>G?Y.complete():Y.error(I())))})}function H(){return new x.K}},7414:(z,W,E)=>{"use strict";E.d(W,{V:()=>G});var x=E(4986),n=E(1165),P=E(4482),D=E(8421),H=E(3888),I=E(5403),B=E(9672);const Y=(0,H.d)(te=>function(ue=null){te(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=ue});function G(te,ae){const{first:ue,each:se,with:re=ee,scheduler:_e=ae??x.z,meta:ye=null}=(0,n.q)(te)?{first:te}:"number"==typeof te?{each:te}:te;if(null==ue&&null==se)throw new TypeError("No timeout provided.");return(0,P.e)((Se,Je)=>{let Ze,ke,Ee=null,Pe=0;const ut=Ve=>{ke=(0,B.f)(Je,_e,()=>{try{Ze.unsubscribe(),(0,D.Xf)(re({meta:ye,lastValue:Ee,seen:Pe})).subscribe(Je)}catch(Ne){Je.error(Ne)}},Ve)};Ze=Se.subscribe((0,I.x)(Je,Ve=>{ke?.unsubscribe(),Pe++,Je.next(Ee=Ve),se>0&&ut(se)},void 0,void 0,()=>{ke?.closed||ke?.unsubscribe(),Ee=null})),!Pe&&ut(null!=ue?"number"==typeof ue?ue:+ue-_e.now():se)})}function ee(te){throw new Y(te)}},4408:(z,W,E)=>{"use strict";E.d(W,{o:()=>H});var x=E(727);class n extends x.w0{constructor(B,Y){super()}schedule(B,Y=0){return this}}const P={setInterval(I,B,...Y){const{delegate:G}=P;return G?.setInterval?G.setInterval(I,B,...Y):setInterval(I,B,...Y)},clearInterval(I){const{delegate:B}=P;return(B?.clearInterval||clearInterval)(I)},delegate:void 0};var D=E(8737);class H extends n{constructor(B,Y){super(B,Y),this.scheduler=B,this.work=Y,this.pending=!1}schedule(B,Y=0){if(this.closed)return this;this.state=B;const G=this.id,ee=this.scheduler;return null!=G&&(this.id=this.recycleAsyncId(ee,G,Y)),this.pending=!0,this.delay=Y,this.id=this.id||this.requestAsyncId(ee,this.id,Y),this}requestAsyncId(B,Y,G=0){return P.setInterval(B.flush.bind(B,this),G)}recycleAsyncId(B,Y,G=0){if(null!=G&&this.delay===G&&!1===this.pending)return Y;P.clearInterval(Y)}execute(B,Y){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const G=this._execute(B,Y);if(G)return G;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(B,Y){let ee,G=!1;try{this.work(B)}catch(te){G=!0,ee=te||new Error("Scheduled action threw falsy error")}if(G)return this.unsubscribe(),ee}unsubscribe(){if(!this.closed){const{id:B,scheduler:Y}=this,{actions:G}=Y;this.work=this.state=this.scheduler=null,this.pending=!1,(0,D.P)(G,this),null!=B&&(this.id=this.recycleAsyncId(Y,B,null)),this.delay=null,super.unsubscribe()}}}},7565:(z,W,E)=>{"use strict";E.d(W,{v:()=>P});var x=E(6063);class n{constructor(H,I=n.now){this.schedulerActionCtor=H,this.now=I}schedule(H,I=0,B){return new this.schedulerActionCtor(this,H).schedule(B,I)}}n.now=x.l.now;class P extends n{constructor(H,I=n.now){super(H,I),this.actions=[],this._active=!1,this._scheduled=void 0}flush(H){const{actions:I}=this;if(this._active)return void I.push(H);let B;this._active=!0;do{if(B=H.execute(H.state,H.delay))break}while(H=I.shift());if(this._active=!1,B){for(;H=I.shift();)H.unsubscribe();throw B}}}},4986:(z,W,E)=>{"use strict";E.d(W,{P:()=>D,z:()=>P});var x=E(4408);const P=new(E(7565).v)(x.o),D=P},6063:(z,W,E)=>{"use strict";E.d(W,{l:()=>x});const x={now:()=>(x.delegate||Date).now(),delegate:void 0}},3410:(z,W,E)=>{"use strict";E.d(W,{z:()=>x});const x={setTimeout(n,P,...D){const{delegate:H}=x;return H?.setTimeout?H.setTimeout(n,P,...D):setTimeout(n,P,...D)},clearTimeout(n){const{delegate:P}=x;return(P?.clearTimeout||clearTimeout)(n)},delegate:void 0}},2202:(z,W,E)=>{"use strict";E.d(W,{h:()=>n});const n=function x(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(z,W,E)=>{"use strict";E.d(W,{L:()=>x});const x="function"==typeof Symbol&&Symbol.observable||"@@observable"},6805:(z,W,E)=>{"use strict";E.d(W,{K:()=>n});const n=(0,E(3888).d)(P=>function(){P(this),this.name="EmptyError",this.message="no elements in sequence"})},3269:(z,W,E)=>{"use strict";E.d(W,{_6:()=>I,jO:()=>D,yG:()=>H});var x=E(576),n=E(3532);function P(B){return B[B.length-1]}function D(B){return(0,x.m)(P(B))?B.pop():void 0}function H(B){return(0,n.K)(P(B))?B.pop():void 0}function I(B,Y){return"number"==typeof P(B)?B.pop():Y}},4742:(z,W,E)=>{"use strict";E.d(W,{D:()=>H});const{isArray:x}=Array,{getPrototypeOf:n,prototype:P,keys:D}=Object;function H(B){if(1===B.length){const Y=B[0];if(x(Y))return{args:Y,keys:null};if(function I(B){return B&&"object"==typeof B&&n(B)===P}(Y)){const G=D(Y);return{args:G.map(ee=>Y[ee]),keys:G}}}return{args:B,keys:null}}},8737:(z,W,E)=>{"use strict";function x(n,P){if(n){const D=n.indexOf(P);0<=D&&n.splice(D,1)}}E.d(W,{P:()=>x})},3888:(z,W,E)=>{"use strict";function x(n){const D=n(H=>{Error.call(H),H.stack=(new Error).stack});return D.prototype=Object.create(Error.prototype),D.prototype.constructor=D,D}E.d(W,{d:()=>x})},1810:(z,W,E)=>{"use strict";function x(n,P){return n.reduce((D,H,I)=>(D[H]=P[I],D),{})}E.d(W,{n:()=>x})},2806:(z,W,E)=>{"use strict";E.d(W,{O:()=>D,x:()=>P});var x=E(2416);let n=null;function P(H){if(x.v.useDeprecatedSynchronousErrorHandling){const I=!n;if(I&&(n={errorThrown:!1,error:null}),H(),I){const{errorThrown:B,error:Y}=n;if(n=null,B)throw Y}}else H()}function D(H){x.v.useDeprecatedSynchronousErrorHandling&&n&&(n.errorThrown=!0,n.error=H)}},9672:(z,W,E)=>{"use strict";function x(n,P,D,H=0,I=!1){const B=P.schedule(function(){D(),I?n.add(this.schedule(null,H)):this.unsubscribe()},H);if(n.add(B),!I)return B}E.d(W,{f:()=>x})},4671:(z,W,E)=>{"use strict";function x(n){return n}E.d(W,{y:()=>x})},1144:(z,W,E)=>{"use strict";E.d(W,{z:()=>x});const x=n=>n&&"number"==typeof n.length&&"function"!=typeof n},2206:(z,W,E)=>{"use strict";E.d(W,{D:()=>n});var x=E(576);function n(P){return Symbol.asyncIterator&&(0,x.m)(P?.[Symbol.asyncIterator])}},1165:(z,W,E)=>{"use strict";function x(n){return n instanceof Date&&!isNaN(n)}E.d(W,{q:()=>x})},576:(z,W,E)=>{"use strict";function x(n){return"function"==typeof n}E.d(W,{m:()=>x})},3670:(z,W,E)=>{"use strict";E.d(W,{c:()=>P});var x=E(8822),n=E(576);function P(D){return(0,n.m)(D[x.L])}},6495:(z,W,E)=>{"use strict";E.d(W,{T:()=>P});var x=E(2202),n=E(576);function P(D){return(0,n.m)(D?.[x.h])}},8239:(z,W,E)=>{"use strict";E.d(W,{t:()=>n});var x=E(576);function n(P){return(0,x.m)(P?.then)}},3260:(z,W,E)=>{"use strict";E.d(W,{L:()=>D,Q:()=>P});var x=E(655),n=E(576);function P(H){return(0,x.FC)(this,arguments,function*(){const B=H.getReader();try{for(;;){const{value:Y,done:G}=yield(0,x.qq)(B.read());if(G)return yield(0,x.qq)(void 0);yield yield(0,x.qq)(Y)}}finally{B.releaseLock()}})}function D(H){return(0,n.m)(H?.getReader)}},3532:(z,W,E)=>{"use strict";E.d(W,{K:()=>n});var x=E(576);function n(P){return P&&(0,x.m)(P.schedule)}},4482:(z,W,E)=>{"use strict";E.d(W,{A:()=>n,e:()=>P});var x=E(576);function n(D){return(0,x.m)(D?.lift)}function P(D){return H=>{if(n(H))return H.lift(function(I){try{return D(I,this)}catch(B){this.error(B)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(z,W,E)=>{"use strict";E.d(W,{Z:()=>D});var x=E(4004);const{isArray:n}=Array;function D(H){return(0,x.U)(I=>function P(H,I){return n(I)?H(...I):H(I)}(H,I))}},5032:(z,W,E)=>{"use strict";function x(){}E.d(W,{Z:()=>x})},9635:(z,W,E)=>{"use strict";E.d(W,{U:()=>P,z:()=>n});var x=E(4671);function n(...D){return P(D)}function P(D){return 0===D.length?x.y:1===D.length?D[0]:function(I){return D.reduce((B,Y)=>Y(B),I)}}},7849:(z,W,E)=>{"use strict";E.d(W,{h:()=>P});var x=E(2416),n=E(3410);function P(D){n.z.setTimeout(()=>{const{onUnhandledError:H}=x.v;if(!H)throw D;H(D)})}},4532:(z,W,E)=>{"use strict";function x(n){return new TypeError(`You provided ${null!==n&&"object"==typeof n?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}E.d(W,{z:()=>x})},6700:(z,W,E)=>{var x={"./af":7088,"./af.js":7088,"./ar":7038,"./ar-dz":2502,"./ar-dz.js":2502,"./ar-kw":128,"./ar-kw.js":128,"./ar-ly":4519,"./ar-ly.js":4519,"./ar-ma":5443,"./ar-ma.js":5443,"./ar-sa":7642,"./ar-sa.js":7642,"./ar-tn":8592,"./ar-tn.js":8592,"./ar.js":7038,"./az":1213,"./az.js":1213,"./be":9191,"./be.js":9191,"./bg":322,"./bg.js":322,"./bm":8042,"./bm.js":8042,"./bn":9620,"./bn-bd":5903,"./bn-bd.js":5903,"./bn.js":9620,"./bo":9645,"./bo.js":9645,"./br":5020,"./br.js":5020,"./bs":4792,"./bs.js":4792,"./ca":7980,"./ca.js":7980,"./cs":7322,"./cs.js":7322,"./cv":365,"./cv.js":365,"./cy":2092,"./cy.js":2092,"./da":7387,"./da.js":7387,"./de":4307,"./de-at":9459,"./de-at.js":9459,"./de-ch":3694,"./de-ch.js":3694,"./de.js":4307,"./dv":9659,"./dv.js":9659,"./el":3460,"./el.js":3460,"./en-au":4369,"./en-au.js":4369,"./en-ca":530,"./en-ca.js":530,"./en-gb":9998,"./en-gb.js":9998,"./en-ie":3391,"./en-ie.js":3391,"./en-il":5414,"./en-il.js":5414,"./en-in":9615,"./en-in.js":9615,"./en-nz":1248,"./en-nz.js":1248,"./en-sg":3767,"./en-sg.js":3767,"./eo":4530,"./eo.js":4530,"./es":6866,"./es-do":8944,"./es-do.js":8944,"./es-mx":9116,"./es-mx.js":9116,"./es-us":3609,"./es-us.js":3609,"./es.js":6866,"./et":6725,"./et.js":6725,"./eu":7931,"./eu.js":7931,"./fa":6417,"./fa.js":6417,"./fi":944,"./fi.js":944,"./fil":1766,"./fil.js":1766,"./fo":5867,"./fo.js":5867,"./fr":1636,"./fr-ca":6848,"./fr-ca.js":6848,"./fr-ch":7773,"./fr-ch.js":7773,"./fr.js":1636,"./fy":4940,"./fy.js":4940,"./ga":1402,"./ga.js":1402,"./gd":6924,"./gd.js":6924,"./gl":6398,"./gl.js":6398,"./gom-deva":2457,"./gom-deva.js":2457,"./gom-latn":2545,"./gom-latn.js":2545,"./gu":2641,"./gu.js":2641,"./he":7536,"./he.js":7536,"./hi":6335,"./hi.js":6335,"./hr":7458,"./hr.js":7458,"./hu":6540,"./hu.js":6540,"./hy-am":5283,"./hy-am.js":5283,"./id":8780,"./id.js":8780,"./is":4205,"./is.js":4205,"./it":4211,"./it-ch":9985,"./it-ch.js":9985,"./it.js":4211,"./ja":1003,"./ja.js":1003,"./jv":420,"./jv.js":420,"./ka":851,"./ka.js":851,"./kk":6074,"./kk.js":6074,"./km":3343,"./km.js":3343,"./kn":4799,"./kn.js":4799,"./ko":3549,"./ko.js":3549,"./ku":1037,"./ku.js":1037,"./ky":3125,"./ky.js":3125,"./lb":9586,"./lb.js":9586,"./lo":2349,"./lo.js":2349,"./lt":2400,"./lt.js":2400,"./lv":9991,"./lv.js":9991,"./me":8477,"./me.js":8477,"./mi":5118,"./mi.js":5118,"./mk":5943,"./mk.js":5943,"./ml":3849,"./ml.js":3849,"./mn":1977,"./mn.js":1977,"./mr":6184,"./mr.js":6184,"./ms":485,"./ms-my":4524,"./ms-my.js":4524,"./ms.js":485,"./mt":6681,"./mt.js":6681,"./my":2024,"./my.js":2024,"./nb":2688,"./nb.js":2688,"./ne":8914,"./ne.js":8914,"./nl":1758,"./nl-be":2272,"./nl-be.js":2272,"./nl.js":1758,"./nn":1510,"./nn.js":1510,"./oc-lnc":2797,"./oc-lnc.js":2797,"./pa-in":7944,"./pa-in.js":7944,"./pl":1605,"./pl.js":1605,"./pt":4225,"./pt-br":3840,"./pt-br.js":3840,"./pt.js":4225,"./ro":5128,"./ro.js":5128,"./ru":5127,"./ru.js":5127,"./sd":2525,"./sd.js":2525,"./se":9893,"./se.js":9893,"./si":3123,"./si.js":3123,"./sk":3027,"./sk.js":3027,"./sl":8106,"./sl.js":8106,"./sq":8799,"./sq.js":8799,"./sr":7949,"./sr-cyrl":2872,"./sr-cyrl.js":2872,"./sr.js":7949,"./ss":6167,"./ss.js":6167,"./sv":9713,"./sv.js":9713,"./sw":1982,"./sw.js":1982,"./ta":2732,"./ta.js":2732,"./te":3636,"./te.js":3636,"./tet":2115,"./tet.js":2115,"./tg":9801,"./tg.js":9801,"./th":2868,"./th.js":2868,"./tk":1310,"./tk.js":1310,"./tl-ph":2360,"./tl-ph.js":2360,"./tlh":6645,"./tlh.js":6645,"./tr":8374,"./tr.js":8374,"./tzl":256,"./tzl.js":256,"./tzm":1595,"./tzm-latn":1631,"./tzm-latn.js":1631,"./tzm.js":1595,"./ug-cn":6050,"./ug-cn.js":6050,"./uk":5610,"./uk.js":5610,"./ur":6077,"./ur.js":6077,"./uz":2862,"./uz-latn":2207,"./uz-latn.js":2207,"./uz.js":2862,"./vi":8093,"./vi.js":8093,"./x-pseudo":5590,"./x-pseudo.js":5590,"./yo":9058,"./yo.js":9058,"./zh-cn":7908,"./zh-cn.js":7908,"./zh-hk":8867,"./zh-hk.js":8867,"./zh-mo":1133,"./zh-mo.js":1133,"./zh-tw":3291,"./zh-tw.js":3291};function n(D){var H=P(D);return E(H)}function P(D){if(!E.o(x,D)){var H=new Error("Cannot find module '"+D+"'");throw H.code="MODULE_NOT_FOUND",H}return x[D]}n.keys=function(){return Object.keys(x)},n.resolve=P,z.exports=n,n.id=6700},655:(z,W,E)=>{"use strict";function Y(fe,ge,Te,we){return new(Te||(Te=Promise))(function(Ye,Et){function Bt(ci){try{Qe(we.next(ci))}catch(Si){Et(Si)}}function Kt(ci){try{Qe(we.throw(ci))}catch(Si){Et(Si)}}function Qe(ci){ci.done?Ye(ci.value):function ze(Ye){return Ye instanceof Te?Ye:new Te(function(Et){Et(Ye)})}(ci.value).then(Bt,Kt)}Qe((we=we.apply(fe,ge||[])).next())})}function ye(fe){return this instanceof ye?(this.v=fe,this):new ye(fe)}function Se(fe,ge,Te){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ze,we=Te.apply(fe,ge||[]),Ye=[];return ze={},Et("next"),Et("throw"),Et("return"),ze[Symbol.asyncIterator]=function(){return this},ze;function Et(Ge){we[Ge]&&(ze[Ge]=function(Xt){return new Promise(function(Cr,En){Ye.push([Ge,Xt,Cr,En])>1||Bt(Ge,Xt)})})}function Bt(Ge,Xt){try{!function Kt(Ge){Ge.value instanceof ye?Promise.resolve(Ge.value.v).then(Qe,ci):Si(Ye[0][2],Ge)}(we[Ge](Xt))}catch(Cr){Si(Ye[0][3],Cr)}}function Qe(Ge){Bt("next",Ge)}function ci(Ge){Bt("throw",Ge)}function Si(Ge,Xt){Ge(Xt),Ye.shift(),Ye.length&&Bt(Ye[0][0],Ye[0][1])}}function Ze(fe){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Te,ge=fe[Symbol.asyncIterator];return ge?ge.call(fe):(fe=function ae(fe){var ge="function"==typeof Symbol&&Symbol.iterator,Te=ge&&fe[ge],we=0;if(Te)return Te.call(fe);if(fe&&"number"==typeof fe.length)return{next:function(){return fe&&we>=fe.length&&(fe=void 0),{value:fe&&fe[we++],done:!fe}}};throw new TypeError(ge?"Object is not iterable.":"Symbol.iterator is not defined.")}(fe),Te={},we("next"),we("throw"),we("return"),Te[Symbol.asyncIterator]=function(){return this},Te);function we(Ye){Te[Ye]=fe[Ye]&&function(Et){return new Promise(function(Bt,Kt){!function ze(Ye,Et,Bt,Kt){Promise.resolve(Kt).then(function(Qe){Ye({value:Qe,done:Bt})},Et)}(Bt,Kt,(Et=fe[Ye](Et)).done,Et.value)})}}}E.d(W,{FC:()=>Se,KL:()=>Ze,mG:()=>Y,qq:()=>ye})},6895:(z,W,E)=>{"use strict";E.d(W,{Do:()=>Ze,ED:()=>da,EM:()=>pa,HT:()=>H,JF:()=>fi,K0:()=>B,Mx:()=>_t,NF:()=>Zu,O5:()=>ni,Ov:()=>Dn,PC:()=>Xi,RF:()=>ur,S$:()=>ye,V_:()=>ee,Ye:()=>ke,b0:()=>Je,bD:()=>ui,ez:()=>Uo,mk:()=>Tr,n9:()=>Hi,p6:()=>Ie,q:()=>P,sg:()=>dr,tP:()=>mn,uU:()=>wn,w_:()=>I});var x=E(4650);let n=null;function P(){return n}function H(U){n||(n=U)}class I{}const B=new x.OlP("DocumentToken");let Y=(()=>{class U{historyGo(N){throw new Error("Not implemented")}}return U.\u0275fac=function(N){return new(N||U)},U.\u0275prov=x.Yz7({token:U,factory:function(){return function G(){return(0,x.LFG)(te)}()},providedIn:"platform"}),U})();const ee=new x.OlP("Location Initialized");let te=(()=>{class U extends Y{constructor(N){super(),this._doc=N,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return P().getBaseHref(this._doc)}onPopState(N){const X=P().getGlobalEventTarget(this._doc,"window");return X.addEventListener("popstate",N,!1),()=>X.removeEventListener("popstate",N)}onHashChange(N){const X=P().getGlobalEventTarget(this._doc,"window");return X.addEventListener("hashchange",N,!1),()=>X.removeEventListener("hashchange",N)}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(N){this.location.pathname=N}pushState(N,X,he){ae()?this._history.pushState(N,X,he):this.location.hash=he}replaceState(N,X,he){ae()?this._history.replaceState(N,X,he):this.location.hash=he}forward(){this._history.forward()}back(){this._history.back()}historyGo(N=0){this._history.go(N)}getState(){return this._history.state}}return U.\u0275fac=function(N){return new(N||U)(x.LFG(B))},U.\u0275prov=x.Yz7({token:U,factory:function(){return function ue(){return new te((0,x.LFG)(B))}()},providedIn:"platform"}),U})();function ae(){return!!window.history.pushState}function se(U,J){if(0==U.length)return J;if(0==J.length)return U;let N=0;return U.endsWith("/")&&N++,J.startsWith("/")&&N++,2==N?U+J.substring(1):1==N?U+J:U+"/"+J}function re(U){const J=U.match(/#|\?|$/),N=J&&J.index||U.length;return U.slice(0,N-("/"===U[N-1]?1:0))+U.slice(N)}function _e(U){return U&&"?"!==U[0]?"?"+U:U}let ye=(()=>{class U{historyGo(N){throw new Error("Not implemented")}}return U.\u0275fac=function(N){return new(N||U)},U.\u0275prov=x.Yz7({token:U,factory:function(){return(0,x.f3M)(Je)},providedIn:"root"}),U})();const Se=new x.OlP("appBaseHref");let Je=(()=>{class U extends ye{constructor(N,X){super(),this._platformLocation=N,this._removeListenerFns=[],this._baseHref=X??this._platformLocation.getBaseHrefFromDOM()??(0,x.f3M)(B).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(N){this._removeListenerFns.push(this._platformLocation.onPopState(N),this._platformLocation.onHashChange(N))}getBaseHref(){return this._baseHref}prepareExternalUrl(N){return se(this._baseHref,N)}path(N=!1){const X=this._platformLocation.pathname+_e(this._platformLocation.search),he=this._platformLocation.hash;return he&&N?`${X}${he}`:X}pushState(N,X,he,ve){const be=this.prepareExternalUrl(he+_e(ve));this._platformLocation.pushState(N,X,be)}replaceState(N,X,he,ve){const be=this.prepareExternalUrl(he+_e(ve));this._platformLocation.replaceState(N,X,be)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(N=0){this._platformLocation.historyGo?.(N)}}return U.\u0275fac=function(N){return new(N||U)(x.LFG(Y),x.LFG(Se,8))},U.\u0275prov=x.Yz7({token:U,factory:U.\u0275fac,providedIn:"root"}),U})(),Ze=(()=>{class U extends ye{constructor(N,X){super(),this._platformLocation=N,this._baseHref="",this._removeListenerFns=[],null!=X&&(this._baseHref=X)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(N){this._removeListenerFns.push(this._platformLocation.onPopState(N),this._platformLocation.onHashChange(N))}getBaseHref(){return this._baseHref}path(N=!1){let X=this._platformLocation.hash;return null==X&&(X="#"),X.length>0?X.substring(1):X}prepareExternalUrl(N){const X=se(this._baseHref,N);return X.length>0?"#"+X:X}pushState(N,X,he,ve){let be=this.prepareExternalUrl(he+_e(ve));0==be.length&&(be=this._platformLocation.pathname),this._platformLocation.pushState(N,X,be)}replaceState(N,X,he,ve){let be=this.prepareExternalUrl(he+_e(ve));0==be.length&&(be=this._platformLocation.pathname),this._platformLocation.replaceState(N,X,be)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(N=0){this._platformLocation.historyGo?.(N)}}return U.\u0275fac=function(N){return new(N||U)(x.LFG(Y),x.LFG(Se,8))},U.\u0275prov=x.Yz7({token:U,factory:U.\u0275fac}),U})(),ke=(()=>{class U{constructor(N){this._subject=new x.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=N;const X=this._locationStrategy.getBaseHref();this._baseHref=re(ut(X)),this._locationStrategy.onPopState(he=>{this._subject.emit({url:this.path(!0),pop:!0,state:he.state,type:he.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(N=!1){return this.normalize(this._locationStrategy.path(N))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(N,X=""){return this.path()==this.normalize(N+_e(X))}normalize(N){return U.stripTrailingSlash(function Pe(U,J){return U&&J.startsWith(U)?J.substring(U.length):J}(this._baseHref,ut(N)))}prepareExternalUrl(N){return N&&"/"!==N[0]&&(N="/"+N),this._locationStrategy.prepareExternalUrl(N)}go(N,X="",he=null){this._locationStrategy.pushState(he,"",N,X),this._notifyUrlChangeListeners(this.prepareExternalUrl(N+_e(X)),he)}replaceState(N,X="",he=null){this._locationStrategy.replaceState(he,"",N,X),this._notifyUrlChangeListeners(this.prepareExternalUrl(N+_e(X)),he)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(N=0){this._locationStrategy.historyGo?.(N)}onUrlChange(N){return this._urlChangeListeners.push(N),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(X=>{this._notifyUrlChangeListeners(X.url,X.state)})),()=>{const X=this._urlChangeListeners.indexOf(N);this._urlChangeListeners.splice(X,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(N="",X){this._urlChangeListeners.forEach(he=>he(N,X))}subscribe(N,X,he){return this._subject.subscribe({next:N,error:X,complete:he})}}return U.normalizeQueryParams=_e,U.joinWithSlash=se,U.stripTrailingSlash=re,U.\u0275fac=function(N){return new(N||U)(x.LFG(ye))},U.\u0275prov=x.Yz7({token:U,factory:function(){return function Ee(){return new ke((0,x.LFG)(ye))}()},providedIn:"root"}),U})();function ut(U){return U.replace(/\/index.html$/,"")}var fe=(()=>((fe=fe||{})[fe.Format=0]="Format",fe[fe.Standalone=1]="Standalone",fe))(),ge=(()=>((ge=ge||{})[ge.Narrow=0]="Narrow",ge[ge.Abbreviated=1]="Abbreviated",ge[ge.Wide=2]="Wide",ge[ge.Short=3]="Short",ge))(),Te=(()=>((Te=Te||{})[Te.Short=0]="Short",Te[Te.Medium=1]="Medium",Te[Te.Long=2]="Long",Te[Te.Full=3]="Full",Te))(),we=(()=>((we=we||{})[we.Decimal=0]="Decimal",we[we.Group=1]="Group",we[we.List=2]="List",we[we.PercentSign=3]="PercentSign",we[we.PlusSign=4]="PlusSign",we[we.MinusSign=5]="MinusSign",we[we.Exponential=6]="Exponential",we[we.SuperscriptingExponent=7]="SuperscriptingExponent",we[we.PerMille=8]="PerMille",we[we.Infinity=9]="Infinity",we[we.NaN=10]="NaN",we[we.TimeSeparator=11]="TimeSeparator",we[we.CurrencyDecimal=12]="CurrencyDecimal",we[we.CurrencyGroup=13]="CurrencyGroup",we))();function Ge(U,J){return ei((0,x.cg1)(U)[x.wAp.DateFormat],J)}function Xt(U,J){return ei((0,x.cg1)(U)[x.wAp.TimeFormat],J)}function Cr(U,J){return ei((0,x.cg1)(U)[x.wAp.DateTimeFormat],J)}function En(U,J){const N=(0,x.cg1)(U),X=N[x.wAp.NumberSymbols][J];if(typeof X>"u"){if(J===we.CurrencyDecimal)return N[x.wAp.NumberSymbols][we.Decimal];if(J===we.CurrencyGroup)return N[x.wAp.NumberSymbols][we.Group]}return X}function Vr(U){if(!U[x.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${U[x.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function ei(U,J){for(let N=J;N>-1;N--)if(typeof U[N]<"u")return U[N];throw new Error("Locale data API: locale data undefined")}function Ar(U){const[J,N]=U.split(":");return{hours:+J,minutes:+N}}const lr=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,zt={},Re=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var oe=(()=>((oe=oe||{})[oe.Short=0]="Short",oe[oe.ShortGMT=1]="ShortGMT",oe[oe.Long=2]="Long",oe[oe.Extended=3]="Extended",oe))(),ie=(()=>((ie=ie||{})[ie.FullYear=0]="FullYear",ie[ie.Month=1]="Month",ie[ie.Date=2]="Date",ie[ie.Hours=3]="Hours",ie[ie.Minutes=4]="Minutes",ie[ie.Seconds=5]="Seconds",ie[ie.FractionalSeconds=6]="FractionalSeconds",ie[ie.Day=7]="Day",ie))(),pe=(()=>((pe=pe||{})[pe.DayPeriods=0]="DayPeriods",pe[pe.Days=1]="Days",pe[pe.Months=2]="Months",pe[pe.Eras=3]="Eras",pe))();function Ie(U,J,N,X){let he=function ti(U){if(On(U))return U;if("number"==typeof U&&!isNaN(U))return new Date(U);if("string"==typeof U){if(U=U.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(U)){const[he,ve=1,be=1]=U.split("-").map(at=>+at);return ft(he,ve-1,be)}const N=parseFloat(U);if(!isNaN(U-N))return new Date(N);let X;if(X=U.match(lr))return function qe(U){const J=new Date(0);let N=0,X=0;const he=U[8]?J.setUTCFullYear:J.setFullYear,ve=U[8]?J.setUTCHours:J.setHours;U[9]&&(N=Number(U[9]+U[10]),X=Number(U[9]+U[11])),he.call(J,Number(U[1]),Number(U[2])-1,Number(U[3]));const be=Number(U[4]||0)-N,at=Number(U[5]||0)-X,vn=Number(U[6]||0),on=Math.floor(1e3*parseFloat("0."+(U[7]||0)));return ve.call(J,be,at,vn,on),J}(X)}const J=new Date(U);if(!On(J))throw new Error(`Unable to convert "${U}" into a date`);return J}(U);J=Dt(N,J)||J;let at,be=[];for(;J;){if(at=Re.exec(J),!at){be.push(J);break}{be=be.concat(at.slice(1));const cn=be.pop();if(!cn)break;J=cn}}let vn=he.getTimezoneOffset();X&&(vn=us(X,vn),he=function Zn(U,J,N){const X=N?-1:1,he=U.getTimezoneOffset();return function $t(U,J){return(U=new Date(U.getTime())).setMinutes(U.getMinutes()+J),U}(U,X*(us(J,he)-he))}(he,X,!0));let on="";return be.forEach(cn=>{const Yt=function fd(U){if(sa[U])return sa[U];let J;switch(U){case"G":case"GG":case"GGG":J=yt(pe.Eras,ge.Abbreviated);break;case"GGGG":J=yt(pe.Eras,ge.Wide);break;case"GGGGG":J=yt(pe.Eras,ge.Narrow);break;case"y":J=Ht(ie.FullYear,1,0,!1,!0);break;case"yy":J=Ht(ie.FullYear,2,0,!0,!0);break;case"yyy":J=Ht(ie.FullYear,3,0,!1,!0);break;case"yyyy":J=Ht(ie.FullYear,4,0,!1,!0);break;case"Y":J=cr(1);break;case"YY":J=cr(2,!0);break;case"YYY":J=cr(3);break;case"YYYY":J=cr(4);break;case"M":case"L":J=Ht(ie.Month,1,1);break;case"MM":case"LL":J=Ht(ie.Month,2,1);break;case"MMM":J=yt(pe.Months,ge.Abbreviated);break;case"MMMM":J=yt(pe.Months,ge.Wide);break;case"MMMMM":J=yt(pe.Months,ge.Narrow);break;case"LLL":J=yt(pe.Months,ge.Abbreviated,fe.Standalone);break;case"LLLL":J=yt(pe.Months,ge.Wide,fe.Standalone);break;case"LLLLL":J=yt(pe.Months,ge.Narrow,fe.Standalone);break;case"w":J=vr(1);break;case"ww":J=vr(2);break;case"W":J=vr(1,!0);break;case"d":J=Ht(ie.Date,1);break;case"dd":J=Ht(ie.Date,2);break;case"c":case"cc":J=Ht(ie.Day,1);break;case"ccc":J=yt(pe.Days,ge.Abbreviated,fe.Standalone);break;case"cccc":J=yt(pe.Days,ge.Wide,fe.Standalone);break;case"ccccc":J=yt(pe.Days,ge.Narrow,fe.Standalone);break;case"cccccc":J=yt(pe.Days,ge.Short,fe.Standalone);break;case"E":case"EE":case"EEE":J=yt(pe.Days,ge.Abbreviated);break;case"EEEE":J=yt(pe.Days,ge.Wide);break;case"EEEEE":J=yt(pe.Days,ge.Narrow);break;case"EEEEEE":J=yt(pe.Days,ge.Short);break;case"a":case"aa":case"aaa":J=yt(pe.DayPeriods,ge.Abbreviated);break;case"aaaa":J=yt(pe.DayPeriods,ge.Wide);break;case"aaaaa":J=yt(pe.DayPeriods,ge.Narrow);break;case"b":case"bb":case"bbb":J=yt(pe.DayPeriods,ge.Abbreviated,fe.Standalone,!0);break;case"bbbb":J=yt(pe.DayPeriods,ge.Wide,fe.Standalone,!0);break;case"bbbbb":J=yt(pe.DayPeriods,ge.Narrow,fe.Standalone,!0);break;case"B":case"BB":case"BBB":J=yt(pe.DayPeriods,ge.Abbreviated,fe.Format,!0);break;case"BBBB":J=yt(pe.DayPeriods,ge.Wide,fe.Format,!0);break;case"BBBBB":J=yt(pe.DayPeriods,ge.Narrow,fe.Format,!0);break;case"h":J=Ht(ie.Hours,1,-12);break;case"hh":J=Ht(ie.Hours,2,-12);break;case"H":J=Ht(ie.Hours,1);break;case"HH":J=Ht(ie.Hours,2);break;case"m":J=Ht(ie.Minutes,1);break;case"mm":J=Ht(ie.Minutes,2);break;case"s":J=Ht(ie.Seconds,1);break;case"ss":J=Ht(ie.Seconds,2);break;case"S":J=Ht(ie.FractionalSeconds,1);break;case"SS":J=Ht(ie.FractionalSeconds,2);break;case"SSS":J=Ht(ie.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":J=wt(oe.Short);break;case"ZZZZZ":J=wt(oe.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":J=wt(oe.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":J=wt(oe.Long);break;default:return null}return sa[U]=J,J}(cn);on+=Yt?Yt(he,N,vn):"''"===cn?"'":cn.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),on}function ft(U,J,N){const X=new Date(0);return X.setFullYear(U,J,N),X.setHours(0,0,0),X}function Dt(U,J){const N=function Ye(U){return(0,x.cg1)(U)[x.wAp.LocaleId]}(U);if(zt[N]=zt[N]||{},zt[N][J])return zt[N][J];let X="";switch(J){case"shortDate":X=Ge(U,Te.Short);break;case"mediumDate":X=Ge(U,Te.Medium);break;case"longDate":X=Ge(U,Te.Long);break;case"fullDate":X=Ge(U,Te.Full);break;case"shortTime":X=Xt(U,Te.Short);break;case"mediumTime":X=Xt(U,Te.Medium);break;case"longTime":X=Xt(U,Te.Long);break;case"fullTime":X=Xt(U,Te.Full);break;case"short":const he=Dt(U,"shortTime"),ve=Dt(U,"shortDate");X=et(Cr(U,Te.Short),[he,ve]);break;case"medium":const be=Dt(U,"mediumTime"),at=Dt(U,"mediumDate");X=et(Cr(U,Te.Medium),[be,at]);break;case"long":const vn=Dt(U,"longTime"),on=Dt(U,"longDate");X=et(Cr(U,Te.Long),[vn,on]);break;case"full":const cn=Dt(U,"fullTime"),Yt=Dt(U,"fullDate");X=et(Cr(U,Te.Full),[cn,Yt])}return X&&(zt[N][J]=X),X}function et(U,J){return J&&(U=U.replace(/\{([^}]+)}/g,function(N,X){return null!=J&&X in J?J[X]:N})),U}function gt(U,J,N="-",X,he){let ve="";(U<0||he&&U<=0)&&(he?U=1-U:(U=-U,ve=N));let be=String(U);for(;be.length0||at>-N)&&(at+=N),U===ie.Hours)0===at&&-12===N&&(at=12);else if(U===ie.FractionalSeconds)return function In(U,J){return gt(U,3).substring(0,J)}(at,J);const vn=En(be,we.MinusSign);return gt(at,J,vn,X,he)}}function yt(U,J,N=fe.Format,X=!1){return function(he,ve){return function Gt(U,J,N,X,he,ve){switch(N){case pe.Months:return function Kt(U,J,N){const X=(0,x.cg1)(U),ve=ei([X[x.wAp.MonthsFormat],X[x.wAp.MonthsStandalone]],J);return ei(ve,N)}(J,he,X)[U.getMonth()];case pe.Days:return function Bt(U,J,N){const X=(0,x.cg1)(U),ve=ei([X[x.wAp.DaysFormat],X[x.wAp.DaysStandalone]],J);return ei(ve,N)}(J,he,X)[U.getDay()];case pe.DayPeriods:const be=U.getHours(),at=U.getMinutes();if(ve){const on=function ds(U){const J=(0,x.cg1)(U);return Vr(J),(J[x.wAp.ExtraData][2]||[]).map(X=>"string"==typeof X?Ar(X):[Ar(X[0]),Ar(X[1])])}(J),cn=function Ys(U,J,N){const X=(0,x.cg1)(U);Vr(X);const ve=ei([X[x.wAp.ExtraData][0],X[x.wAp.ExtraData][1]],J)||[];return ei(ve,N)||[]}(J,he,X),Yt=on.findIndex(ii=>{if(Array.isArray(ii)){const[tt,dn]=ii,Ce=be>=tt.hours&&at>=tt.minutes,lt=be0?Math.floor(he/60):Math.ceil(he/60);switch(U){case oe.Short:return(he>=0?"+":"")+gt(be,2,ve)+gt(Math.abs(he%60),2,ve);case oe.ShortGMT:return"GMT"+(he>=0?"+":"")+gt(be,1,ve);case oe.Long:return"GMT"+(he>=0?"+":"")+gt(be,2,ve)+":"+gt(Math.abs(he%60),2,ve);case oe.Extended:return 0===X?"Z":(he>=0?"+":"")+gt(be,2,ve)+":"+gt(Math.abs(he%60),2,ve);default:throw new Error(`Unknown zone width "${U}"`)}}}function Ur(U){return ft(U.getFullYear(),U.getMonth(),U.getDate()+(4-U.getDay()))}function vr(U,J=!1){return function(N,X){let he;if(J){const ve=new Date(N.getFullYear(),N.getMonth(),1).getDay()-1,be=N.getDate();he=1+Math.floor((be+ve)/7)}else{const ve=Ur(N),be=function Yn(U){const J=ft(U,0,1).getDay();return ft(U,0,1+(J<=4?4:11)-J)}(ve.getFullYear()),at=ve.getTime()-be.getTime();he=1+Math.round(at/6048e5)}return gt(he,U,En(X,we.MinusSign))}}function cr(U,J=!1){return function(N,X){return gt(Ur(N).getFullYear(),U,En(X,we.MinusSign),J)}}const sa={};function us(U,J){U=U.replace(/:/g,"");const N=Date.parse("Jan 01, 1970 00:00:00 "+U)/6e4;return isNaN(N)?J:N}function On(U){return U instanceof Date&&!isNaN(U.valueOf())}function _t(U,J){J=encodeURIComponent(J);for(const N of U.split(";")){const X=N.indexOf("="),[he,ve]=-1==X?[N,""]:[N.slice(0,X),N.slice(X+1)];if(he.trim()===J)return decodeURIComponent(ve)}return null}let Tr=(()=>{class U{constructor(N,X,he,ve){this._iterableDiffers=N,this._keyValueDiffers=X,this._ngEl=he,this._renderer=ve,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(N){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof N?N.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(N){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof N?N.split(/\s+/):N,this._rawClass&&((0,x.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const N=this._iterableDiffer.diff(this._rawClass);N&&this._applyIterableChanges(N)}else if(this._keyValueDiffer){const N=this._keyValueDiffer.diff(this._rawClass);N&&this._applyKeyValueChanges(N)}}_applyKeyValueChanges(N){N.forEachAddedItem(X=>this._toggleClass(X.key,X.currentValue)),N.forEachChangedItem(X=>this._toggleClass(X.key,X.currentValue)),N.forEachRemovedItem(X=>{X.previousValue&&this._toggleClass(X.key,!1)})}_applyIterableChanges(N){N.forEachAddedItem(X=>{if("string"!=typeof X.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,x.AaK)(X.item)}`);this._toggleClass(X.item,!0)}),N.forEachRemovedItem(X=>this._toggleClass(X.item,!1))}_applyClasses(N){N&&(Array.isArray(N)||N instanceof Set?N.forEach(X=>this._toggleClass(X,!0)):Object.keys(N).forEach(X=>this._toggleClass(X,!!N[X])))}_removeClasses(N){N&&(Array.isArray(N)||N instanceof Set?N.forEach(X=>this._toggleClass(X,!1)):Object.keys(N).forEach(X=>this._toggleClass(X,!1)))}_toggleClass(N,X){(N=N.trim())&&N.split(/\s+/g).forEach(he=>{X?this._renderer.addClass(this._ngEl.nativeElement,he):this._renderer.removeClass(this._ngEl.nativeElement,he)})}}return U.\u0275fac=function(N){return new(N||U)(x.Y36(x.ZZ4),x.Y36(x.aQg),x.Y36(x.SBq),x.Y36(x.Qsj))},U.\u0275dir=x.lG2({type:U,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),U})();class ca{constructor(J,N,X,he){this.$implicit=J,this.ngForOf=N,this.index=X,this.count=he}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 dr=(()=>{class U{constructor(N,X,he){this._viewContainer=N,this._template=X,this._differs=he,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(N){this._ngForOf=N,this._ngForOfDirty=!0}set ngForTrackBy(N){this._trackByFn=N}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(N){N&&(this._template=N)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const N=this._ngForOf;!this._differ&&N&&(this._differ=this._differs.find(N).create(this.ngForTrackBy))}if(this._differ){const N=this._differ.diff(this._ngForOf);N&&this._applyChanges(N)}}_applyChanges(N){const X=this._viewContainer;N.forEachOperation((he,ve,be)=>{if(null==he.previousIndex)X.createEmbeddedView(this._template,new ca(he.item,this._ngForOf,-1,-1),null===be?void 0:be);else if(null==be)X.remove(null===ve?void 0:ve);else if(null!==ve){const at=X.get(ve);X.move(at,be),Bn(at,he)}});for(let he=0,ve=X.length;he{Bn(X.get(he.currentIndex),he)})}static ngTemplateContextGuard(N,X){return!0}}return U.\u0275fac=function(N){return new(N||U)(x.Y36(x.s_b),x.Y36(x.Rgc),x.Y36(x.ZZ4))},U.\u0275dir=x.lG2({type:U,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),U})();function Bn(U,J){U.context.$implicit=J.item}let ni=(()=>{class U{constructor(N,X){this._viewContainer=N,this._context=new Di,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=X}set ngIf(N){this._context.$implicit=this._context.ngIf=N,this._updateView()}set ngIfThen(N){Ki("ngIfThen",N),this._thenTemplateRef=N,this._thenViewRef=null,this._updateView()}set ngIfElse(N){Ki("ngIfElse",N),this._elseTemplateRef=N,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(N,X){return!0}}return U.\u0275fac=function(N){return new(N||U)(x.Y36(x.s_b),x.Y36(x.Rgc))},U.\u0275dir=x.lG2({type:U,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),U})();class Di{constructor(){this.$implicit=null,this.ngIf=null}}function Ki(U,J){if(J&&!J.createEmbeddedView)throw new Error(`${U} must be a TemplateRef, but received '${(0,x.AaK)(J)}'.`)}class qr{constructor(J,N){this._viewContainerRef=J,this._templateRef=N,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(J){J&&!this._created?this.create():!J&&this._created&&this.destroy()}}let ur=(()=>{class U{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(N){this._ngSwitch=N,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(N){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(N)}_matchCase(N){const X=N==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||X,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),X}_updateDefaultCases(N){if(this._defaultViews&&N!==this._defaultUsed){this._defaultUsed=N;for(let X=0;X{class U{constructor(N,X,he){this.ngSwitch=he,he._addCase(),this._view=new qr(N,X)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return U.\u0275fac=function(N){return new(N||U)(x.Y36(x.s_b),x.Y36(x.Rgc),x.Y36(ur,9))},U.\u0275dir=x.lG2({type:U,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),U})(),da=(()=>{class U{constructor(N,X,he){he._addDefault(new qr(N,X))}}return U.\u0275fac=function(N){return new(N||U)(x.Y36(x.s_b),x.Y36(x.Rgc),x.Y36(ur,9))},U.\u0275dir=x.lG2({type:U,selectors:[["","ngSwitchDefault",""]],standalone:!0}),U})(),Xi=(()=>{class U{constructor(N,X,he){this._ngEl=N,this._differs=X,this._renderer=he,this._ngStyle=null,this._differ=null}set ngStyle(N){this._ngStyle=N,!this._differ&&N&&(this._differ=this._differs.find(N).create())}ngDoCheck(){if(this._differ){const N=this._differ.diff(this._ngStyle);N&&this._applyChanges(N)}}_setStyle(N,X){const[he,ve]=N.split("."),be=-1===he.indexOf("-")?void 0:x.JOm.DashCase;null!=X?this._renderer.setStyle(this._ngEl.nativeElement,he,ve?`${X}${ve}`:X,be):this._renderer.removeStyle(this._ngEl.nativeElement,he,be)}_applyChanges(N){N.forEachRemovedItem(X=>this._setStyle(X.key,null)),N.forEachAddedItem(X=>this._setStyle(X.key,X.currentValue)),N.forEachChangedItem(X=>this._setStyle(X.key,X.currentValue))}}return U.\u0275fac=function(N){return new(N||U)(x.Y36(x.SBq),x.Y36(x.aQg),x.Y36(x.Qsj))},U.\u0275dir=x.lG2({type:U,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),U})(),mn=(()=>{class U{constructor(N){this._viewContainerRef=N,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(N){if(N.ngTemplateOutlet||N.ngTemplateOutletInjector){const X=this._viewContainerRef;if(this._viewRef&&X.remove(X.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:he,ngTemplateOutletContext:ve,ngTemplateOutletInjector:be}=this;this._viewRef=X.createEmbeddedView(he,ve,be?{injector:be}:void 0)}else this._viewRef=null}else this._viewRef&&N.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return U.\u0275fac=function(N){return new(N||U)(x.Y36(x.s_b))},U.\u0275dir=x.lG2({type:U,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[x.TTD]}),U})();function it(U,J){return new x.vHH(2100,!1)}class Gs{createSubscription(J,N){return J.subscribe({next:N,error:X=>{throw X}})}dispose(J){J.unsubscribe()}}class qu{createSubscription(J,N){return J.then(N,X=>{throw X})}dispose(J){}}const v=new qu,Vn=new Gs;let Dn=(()=>{class U{constructor(N){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=N}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(N){return this._obj?N!==this._obj?(this._dispose(),this.transform(N)):this._latestValue:(N&&this._subscribe(N),this._latestValue)}_subscribe(N){this._obj=N,this._strategy=this._selectStrategy(N),this._subscription=this._strategy.createSubscription(N,X=>this._updateLatestValue(N,X))}_selectStrategy(N){if((0,x.QGY)(N))return v;if((0,x.F4k)(N))return Vn;throw it()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(N,X){N===this._obj&&(this._latestValue=X,this._ref.markForCheck())}}return U.\u0275fac=function(N){return new(N||U)(x.Y36(x.sBO,16))},U.\u0275pipe=x.Yjl({name:"async",type:U,pure:!1,standalone:!0}),U})();const Va=new x.OlP("DATE_PIPE_DEFAULT_TIMEZONE");let wn=(()=>{class U{constructor(N,X){this.locale=N,this.defaultTimezone=X}transform(N,X="mediumDate",he,ve){if(null==N||""===N||N!=N)return null;try{return Ie(N,X,ve||this.locale,he??this.defaultTimezone??void 0)}catch(be){throw it()}}}return U.\u0275fac=function(N){return new(N||U)(x.Y36(x.soG,16),x.Y36(Va,24))},U.\u0275pipe=x.Yjl({name:"date",type:U,pure:!0,standalone:!0}),U})(),Uo=(()=>{class U{}return U.\u0275fac=function(N){return new(N||U)},U.\u0275mod=x.oAB({type:U}),U.\u0275inj=x.cJS({}),U})();const ui="browser";function Zu(U){return U===ui}let pa=(()=>{class U{}return U.\u0275prov=(0,x.Yz7)({token:U,providedIn:"root",factory:()=>new er((0,x.LFG)(B),window)}),U})();class er{constructor(J,N){this.document=J,this.window=N,this.offset=()=>[0,0]}setOffset(J){this.offset=Array.isArray(J)?()=>J:J}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(J){this.supportsScrolling()&&this.window.scrollTo(J[0],J[1])}scrollToAnchor(J){if(!this.supportsScrolling())return;const N=function tc(U,J){const N=U.getElementById(J)||U.getElementsByName(J)[0];if(N)return N;if("function"==typeof U.createTreeWalker&&U.body&&(U.body.createShadowRoot||U.body.attachShadow)){const X=U.createTreeWalker(U.body,NodeFilter.SHOW_ELEMENT);let he=X.currentNode;for(;he;){const ve=he.shadowRoot;if(ve){const be=ve.getElementById(J)||ve.querySelector(`[name="${J}"]`);if(be)return be}he=X.nextNode()}}return null}(this.document,J);N&&(this.scrollToElement(N),N.focus())}setHistoryScrollRestoration(J){if(this.supportScrollRestoration()){const N=this.window.history;N&&N.scrollRestoration&&(N.scrollRestoration=J)}}scrollToElement(J){const N=J.getBoundingClientRect(),X=N.left+this.window.pageXOffset,he=N.top+this.window.pageYOffset,ve=this.offset();this.window.scrollTo(X-ve[0],he-ve[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const J=ec(this.window.history)||ec(Object.getPrototypeOf(this.window.history));return!(!J||!J.writable&&!J.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function ec(U){return Object.getOwnPropertyDescriptor(U,"scrollRestoration")}class fi{}},529:(z,W,E)=>{"use strict";E.d(W,{JF:()=>Io,LE:()=>Se,TP:()=>Bt,WM:()=>ee,Zn:()=>Te,eN:()=>Ye,qT:()=>Ze});var x=E(6895),n=E(4650),P=E(9646),D=E(9751),H=E(4351),I=E(9300),B=E(4004);class Y{}class G{}class ee{constructor(oe){this.normalizedNames=new Map,this.lazyUpdate=null,oe?this.lazyInit="string"==typeof oe?()=>{this.headers=new Map,oe.split("\n").forEach(ie=>{const pe=ie.indexOf(":");if(pe>0){const Ie=ie.slice(0,pe),ft=Ie.toLowerCase(),Dt=ie.slice(pe+1).trim();this.maybeSetNormalizedName(Ie,ft),this.headers.has(ft)?this.headers.get(ft).push(Dt):this.headers.set(ft,[Dt])}})}:()=>{this.headers=new Map,Object.keys(oe).forEach(ie=>{let pe=oe[ie];const Ie=ie.toLowerCase();"string"==typeof pe&&(pe=[pe]),pe.length>0&&(this.headers.set(Ie,pe),this.maybeSetNormalizedName(ie,Ie))})}:this.headers=new Map}has(oe){return this.init(),this.headers.has(oe.toLowerCase())}get(oe){this.init();const ie=this.headers.get(oe.toLowerCase());return ie&&ie.length>0?ie[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(oe){return this.init(),this.headers.get(oe.toLowerCase())||null}append(oe,ie){return this.clone({name:oe,value:ie,op:"a"})}set(oe,ie){return this.clone({name:oe,value:ie,op:"s"})}delete(oe,ie){return this.clone({name:oe,value:ie,op:"d"})}maybeSetNormalizedName(oe,ie){this.normalizedNames.has(ie)||this.normalizedNames.set(ie,oe)}init(){this.lazyInit&&(this.lazyInit instanceof ee?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(oe=>this.applyUpdate(oe)),this.lazyUpdate=null))}copyFrom(oe){oe.init(),Array.from(oe.headers.keys()).forEach(ie=>{this.headers.set(ie,oe.headers.get(ie)),this.normalizedNames.set(ie,oe.normalizedNames.get(ie))})}clone(oe){const ie=new ee;return ie.lazyInit=this.lazyInit&&this.lazyInit instanceof ee?this.lazyInit:this,ie.lazyUpdate=(this.lazyUpdate||[]).concat([oe]),ie}applyUpdate(oe){const ie=oe.name.toLowerCase();switch(oe.op){case"a":case"s":let pe=oe.value;if("string"==typeof pe&&(pe=[pe]),0===pe.length)return;this.maybeSetNormalizedName(oe.name,ie);const Ie=("a"===oe.op?this.headers.get(ie):void 0)||[];Ie.push(...pe),this.headers.set(ie,Ie);break;case"d":const ft=oe.value;if(ft){let Dt=this.headers.get(ie);if(!Dt)return;Dt=Dt.filter(et=>-1===ft.indexOf(et)),0===Dt.length?(this.headers.delete(ie),this.normalizedNames.delete(ie)):this.headers.set(ie,Dt)}else this.headers.delete(ie),this.normalizedNames.delete(ie)}}forEach(oe){this.init(),Array.from(this.normalizedNames.keys()).forEach(ie=>oe(this.normalizedNames.get(ie),this.headers.get(ie)))}}class ae{encodeKey(oe){return _e(oe)}encodeValue(oe){return _e(oe)}decodeKey(oe){return decodeURIComponent(oe)}decodeValue(oe){return decodeURIComponent(oe)}}const se=/%(\d[a-f0-9])/gi,re={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function _e(Re){return encodeURIComponent(Re).replace(se,(oe,ie)=>re[ie]??oe)}function ye(Re){return`${Re}`}class Se{constructor(oe={}){if(this.updates=null,this.cloneFrom=null,this.encoder=oe.encoder||new ae,oe.fromString){if(oe.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function ue(Re,oe){const ie=new Map;return Re.length>0&&Re.replace(/^\?/,"").split("&").forEach(Ie=>{const ft=Ie.indexOf("="),[Dt,et]=-1==ft?[oe.decodeKey(Ie),""]:[oe.decodeKey(Ie.slice(0,ft)),oe.decodeValue(Ie.slice(ft+1))],gt=ie.get(Dt)||[];gt.push(et),ie.set(Dt,gt)}),ie}(oe.fromString,this.encoder)}else oe.fromObject?(this.map=new Map,Object.keys(oe.fromObject).forEach(ie=>{const pe=oe.fromObject[ie],Ie=Array.isArray(pe)?pe.map(ye):[ye(pe)];this.map.set(ie,Ie)})):this.map=null}has(oe){return this.init(),this.map.has(oe)}get(oe){this.init();const ie=this.map.get(oe);return ie?ie[0]:null}getAll(oe){return this.init(),this.map.get(oe)||null}keys(){return this.init(),Array.from(this.map.keys())}append(oe,ie){return this.clone({param:oe,value:ie,op:"a"})}appendAll(oe){const ie=[];return Object.keys(oe).forEach(pe=>{const Ie=oe[pe];Array.isArray(Ie)?Ie.forEach(ft=>{ie.push({param:pe,value:ft,op:"a"})}):ie.push({param:pe,value:Ie,op:"a"})}),this.clone(ie)}set(oe,ie){return this.clone({param:oe,value:ie,op:"s"})}delete(oe,ie){return this.clone({param:oe,value:ie,op:"d"})}toString(){return this.init(),this.keys().map(oe=>{const ie=this.encoder.encodeKey(oe);return this.map.get(oe).map(pe=>ie+"="+this.encoder.encodeValue(pe)).join("&")}).filter(oe=>""!==oe).join("&")}clone(oe){const ie=new Se({encoder:this.encoder});return ie.cloneFrom=this.cloneFrom||this,ie.updates=(this.updates||[]).concat(oe),ie}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(oe=>this.map.set(oe,this.cloneFrom.map.get(oe))),this.updates.forEach(oe=>{switch(oe.op){case"a":case"s":const ie=("a"===oe.op?this.map.get(oe.param):void 0)||[];ie.push(ye(oe.value)),this.map.set(oe.param,ie);break;case"d":if(void 0===oe.value){this.map.delete(oe.param);break}{let pe=this.map.get(oe.param)||[];const Ie=pe.indexOf(ye(oe.value));-1!==Ie&&pe.splice(Ie,1),pe.length>0?this.map.set(oe.param,pe):this.map.delete(oe.param)}}}),this.cloneFrom=this.updates=null)}}class Ze{constructor(){this.map=new Map}set(oe,ie){return this.map.set(oe,ie),this}get(oe){return this.map.has(oe)||this.map.set(oe,oe.defaultValue()),this.map.get(oe)}delete(oe){return this.map.delete(oe),this}has(oe){return this.map.has(oe)}keys(){return this.map.keys()}}function Ee(Re){return typeof ArrayBuffer<"u"&&Re instanceof ArrayBuffer}function Pe(Re){return typeof Blob<"u"&&Re instanceof Blob}function ut(Re){return typeof FormData<"u"&&Re instanceof FormData}class Ne{constructor(oe,ie,pe,Ie){let ft;if(this.url=ie,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=oe.toUpperCase(),function ke(Re){switch(Re){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Ie?(this.body=void 0!==pe?pe:null,ft=Ie):ft=pe,ft&&(this.reportProgress=!!ft.reportProgress,this.withCredentials=!!ft.withCredentials,ft.responseType&&(this.responseType=ft.responseType),ft.headers&&(this.headers=ft.headers),ft.context&&(this.context=ft.context),ft.params&&(this.params=ft.params)),this.headers||(this.headers=new ee),this.context||(this.context=new Ze),this.params){const Dt=this.params.toString();if(0===Dt.length)this.urlWithParams=ie;else{const et=ie.indexOf("?");this.urlWithParams=ie+(-1===et?"?":etVi.set(yt,oe.setHeaders[yt]),gt)),oe.setParams&&(In=Object.keys(oe.setParams).reduce((Vi,yt)=>Vi.set(yt,oe.setParams[yt]),In)),new Ne(ie,pe,ft,{params:In,headers:gt,context:Ht,reportProgress:et,responseType:Ie,withCredentials:Dt})}}var je=(()=>((je=je||{})[je.Sent=0]="Sent",je[je.UploadProgress=1]="UploadProgress",je[je.ResponseHeader=2]="ResponseHeader",je[je.DownloadProgress=3]="DownloadProgress",je[je.Response=4]="Response",je[je.User=5]="User",je))();class fe{constructor(oe,ie=200,pe="OK"){this.headers=oe.headers||new ee,this.status=void 0!==oe.status?oe.status:ie,this.statusText=oe.statusText||pe,this.url=oe.url||null,this.ok=this.status>=200&&this.status<300}}class ge extends fe{constructor(oe={}){super(oe),this.type=je.ResponseHeader}clone(oe={}){return new ge({headers:oe.headers||this.headers,status:void 0!==oe.status?oe.status:this.status,statusText:oe.statusText||this.statusText,url:oe.url||this.url||void 0})}}class Te extends fe{constructor(oe={}){super(oe),this.type=je.Response,this.body=void 0!==oe.body?oe.body:null}clone(oe={}){return new Te({body:void 0!==oe.body?oe.body:this.body,headers:oe.headers||this.headers,status:void 0!==oe.status?oe.status:this.status,statusText:oe.statusText||this.statusText,url:oe.url||this.url||void 0})}}class we extends fe{constructor(oe){super(oe,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${oe.url||"(unknown url)"}`:`Http failure response for ${oe.url||"(unknown url)"}: ${oe.status} ${oe.statusText}`,this.error=oe.error||null}}function ze(Re,oe){return{body:oe,headers:Re.headers,context:Re.context,observe:Re.observe,params:Re.params,reportProgress:Re.reportProgress,responseType:Re.responseType,withCredentials:Re.withCredentials}}let Ye=(()=>{class Re{constructor(ie){this.handler=ie}request(ie,pe,Ie={}){let ft;if(ie instanceof Ne)ft=ie;else{let gt,In;gt=Ie.headers instanceof ee?Ie.headers:new ee(Ie.headers),Ie.params&&(In=Ie.params instanceof Se?Ie.params:new Se({fromObject:Ie.params})),ft=new Ne(ie,pe,void 0!==Ie.body?Ie.body:null,{headers:gt,context:Ie.context,params:In,reportProgress:Ie.reportProgress,responseType:Ie.responseType||"json",withCredentials:Ie.withCredentials})}const Dt=(0,P.of)(ft).pipe((0,H.b)(gt=>this.handler.handle(gt)));if(ie instanceof Ne||"events"===Ie.observe)return Dt;const et=Dt.pipe((0,I.h)(gt=>gt instanceof Te));switch(Ie.observe||"body"){case"body":switch(ft.responseType){case"arraybuffer":return et.pipe((0,B.U)(gt=>{if(null!==gt.body&&!(gt.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return gt.body}));case"blob":return et.pipe((0,B.U)(gt=>{if(null!==gt.body&&!(gt.body instanceof Blob))throw new Error("Response is not a Blob.");return gt.body}));case"text":return et.pipe((0,B.U)(gt=>{if(null!==gt.body&&"string"!=typeof gt.body)throw new Error("Response is not a string.");return gt.body}));default:return et.pipe((0,B.U)(gt=>gt.body))}case"response":return et;default:throw new Error(`Unreachable: unhandled observe type ${Ie.observe}}`)}}delete(ie,pe={}){return this.request("DELETE",ie,pe)}get(ie,pe={}){return this.request("GET",ie,pe)}head(ie,pe={}){return this.request("HEAD",ie,pe)}jsonp(ie,pe){return this.request("JSONP",ie,{params:(new Se).append(pe,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(ie,pe={}){return this.request("OPTIONS",ie,pe)}patch(ie,pe,Ie={}){return this.request("PATCH",ie,ze(Ie,pe))}post(ie,pe,Ie={}){return this.request("POST",ie,ze(Ie,pe))}put(ie,pe,Ie={}){return this.request("PUT",ie,ze(Ie,pe))}}return Re.\u0275fac=function(ie){return new(ie||Re)(n.LFG(Y))},Re.\u0275prov=n.Yz7({token:Re,factory:Re.\u0275fac}),Re})();class Et{constructor(oe,ie){this.next=oe,this.interceptor=ie}handle(oe){return this.interceptor.intercept(oe,this.next)}}const Bt=new n.OlP("HTTP_INTERCEPTORS");let Kt=(()=>{class Re{intercept(ie,pe){return pe.handle(ie)}}return Re.\u0275fac=function(ie){return new(ie||Re)},Re.\u0275prov=n.Yz7({token:Re,factory:Re.\u0275fac}),Re})();const Ns=/^\)\]\}',?\n/;let Fs=(()=>{class Re{constructor(ie){this.xhrFactory=ie}handle(ie){if("JSONP"===ie.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new D.y(pe=>{const Ie=this.xhrFactory.build();if(Ie.open(ie.method,ie.urlWithParams),ie.withCredentials&&(Ie.withCredentials=!0),ie.headers.forEach((Gt,wt)=>Ie.setRequestHeader(Gt,wt.join(","))),ie.headers.has("Accept")||Ie.setRequestHeader("Accept","application/json, text/plain, */*"),!ie.headers.has("Content-Type")){const Gt=ie.detectContentTypeHeader();null!==Gt&&Ie.setRequestHeader("Content-Type",Gt)}if(ie.responseType){const Gt=ie.responseType.toLowerCase();Ie.responseType="json"!==Gt?Gt:"text"}const ft=ie.serializeBody();let Dt=null;const et=()=>{if(null!==Dt)return Dt;const Gt=Ie.statusText||"OK",wt=new ee(Ie.getAllResponseHeaders()),Qi=function pd(Re){return"responseURL"in Re&&Re.responseURL?Re.responseURL:/^X-Request-URL:/m.test(Re.getAllResponseHeaders())?Re.getResponseHeader("X-Request-URL"):null}(Ie)||ie.url;return Dt=new ge({headers:wt,status:Ie.status,statusText:Gt,url:Qi}),Dt},gt=()=>{let{headers:Gt,status:wt,statusText:Qi,url:jr}=et(),Yn=null;204!==wt&&(Yn=typeof Ie.response>"u"?Ie.responseText:Ie.response),0===wt&&(wt=Yn?200:0);let Ur=wt>=200&&wt<300;if("json"===ie.responseType&&"string"==typeof Yn){const vr=Yn;Yn=Yn.replace(Ns,"");try{Yn=""!==Yn?JSON.parse(Yn):null}catch(cr){Yn=vr,Ur&&(Ur=!1,Yn={error:cr,text:Yn})}}Ur?(pe.next(new Te({body:Yn,headers:Gt,status:wt,statusText:Qi,url:jr||void 0})),pe.complete()):pe.error(new we({error:Yn,headers:Gt,status:wt,statusText:Qi,url:jr||void 0}))},In=Gt=>{const{url:wt}=et(),Qi=new we({error:Gt,status:Ie.status||0,statusText:Ie.statusText||"Unknown Error",url:wt||void 0});pe.error(Qi)};let Ht=!1;const Vi=Gt=>{Ht||(pe.next(et()),Ht=!0);let wt={type:je.DownloadProgress,loaded:Gt.loaded};Gt.lengthComputable&&(wt.total=Gt.total),"text"===ie.responseType&&!!Ie.responseText&&(wt.partialText=Ie.responseText),pe.next(wt)},yt=Gt=>{let wt={type:je.UploadProgress,loaded:Gt.loaded};Gt.lengthComputable&&(wt.total=Gt.total),pe.next(wt)};return Ie.addEventListener("load",gt),Ie.addEventListener("error",In),Ie.addEventListener("timeout",In),Ie.addEventListener("abort",In),ie.reportProgress&&(Ie.addEventListener("progress",Vi),null!==ft&&Ie.upload&&Ie.upload.addEventListener("progress",yt)),Ie.send(ft),pe.next({type:je.Sent}),()=>{Ie.removeEventListener("error",In),Ie.removeEventListener("abort",In),Ie.removeEventListener("load",gt),Ie.removeEventListener("timeout",In),ie.reportProgress&&(Ie.removeEventListener("progress",Vi),null!==ft&&Ie.upload&&Ie.upload.removeEventListener("progress",yt)),Ie.readyState!==Ie.DONE&&Ie.abort()}})}}return Re.\u0275fac=function(ie){return new(ie||Re)(n.LFG(x.JF))},Re.\u0275prov=n.Yz7({token:Re,factory:Re.\u0275fac}),Re})();const Br=new n.OlP("XSRF_COOKIE_NAME"),Vr=new n.OlP("XSRF_HEADER_NAME");class ds{}let Ys=(()=>{class Re{constructor(ie,pe,Ie){this.doc=ie,this.platform=pe,this.cookieName=Ie,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const ie=this.doc.cookie||"";return ie!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,x.Mx)(ie,this.cookieName),this.lastCookieString=ie),this.lastToken}}return Re.\u0275fac=function(ie){return new(ie||Re)(n.LFG(x.K0),n.LFG(n.Lbi),n.LFG(Br))},Re.\u0275prov=n.Yz7({token:Re,factory:Re.\u0275fac}),Re})(),pt=(()=>{class Re{constructor(ie,pe){this.tokenService=ie,this.headerName=pe}intercept(ie,pe){const Ie=ie.url.toLowerCase();if("GET"===ie.method||"HEAD"===ie.method||Ie.startsWith("http://")||Ie.startsWith("https://"))return pe.handle(ie);const ft=this.tokenService.getToken();return null!==ft&&!ie.headers.has(this.headerName)&&(ie=ie.clone({headers:ie.headers.set(this.headerName,ft)})),pe.handle(ie)}}return Re.\u0275fac=function(ie){return new(ie||Re)(n.LFG(ds),n.LFG(Vr))},Re.\u0275prov=n.Yz7({token:Re,factory:Re.\u0275fac}),Re})(),ei=(()=>{class Re{constructor(ie,pe){this.backend=ie,this.injector=pe,this.chain=null}handle(ie){if(null===this.chain){const pe=this.injector.get(Bt,[]);this.chain=pe.reduceRight((Ie,ft)=>new Et(Ie,ft),this.backend)}return this.chain.handle(ie)}}return Re.\u0275fac=function(ie){return new(ie||Re)(n.LFG(G),n.LFG(n.zs3))},Re.\u0275prov=n.Yz7({token:Re,factory:Re.\u0275fac}),Re})(),di=(()=>{class Re{static disable(){return{ngModule:Re,providers:[{provide:pt,useClass:Kt}]}}static withOptions(ie={}){return{ngModule:Re,providers:[ie.cookieName?{provide:Br,useValue:ie.cookieName}:[],ie.headerName?{provide:Vr,useValue:ie.headerName}:[]]}}}return Re.\u0275fac=function(ie){return new(ie||Re)},Re.\u0275mod=n.oAB({type:Re}),Re.\u0275inj=n.cJS({providers:[pt,{provide:Bt,useExisting:pt,multi:!0},{provide:ds,useClass:Ys},{provide:Br,useValue:"XSRF-TOKEN"},{provide:Vr,useValue:"X-XSRF-TOKEN"}]}),Re})(),Io=(()=>{class Re{}return Re.\u0275fac=function(ie){return new(ie||Re)},Re.\u0275mod=n.oAB({type:Re}),Re.\u0275inj=n.cJS({providers:[Ye,{provide:Y,useClass:ei},Fs,{provide:G,useExisting:Fs}],imports:[di.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),Re})()},4650:(z,W,E)=>{"use strict";E.d(W,{$8M:()=>tl,$Z:()=>Pb,AFp:()=>xo,ALo:()=>vg,AaK:()=>Y,AsE:()=>Nm,B6R:()=>jr,BQk:()=>cp,CHM:()=>Hn,CRH:()=>gy,CZH:()=>rs,CqO:()=>Em,D6c:()=>FE,DdM:()=>Cg,Dn7:()=>p0,EJc:()=>J0,EiD:()=>Hh,EpF:()=>Oc,F$t:()=>gw,F4k:()=>pw,FYo:()=>uo,FiY:()=>ul,G48:()=>DE,Gf:()=>Lu,GfV:()=>tb,GkF:()=>Ic,Gpc:()=>te,Gre:()=>Hw,Hsn:()=>rr,Ikx:()=>gp,JOm:()=>Ss,JVY:()=>tA,Jf7:()=>VA,KtG:()=>xr,L6k:()=>nA,LAX:()=>rA,LFG:()=>Tn,LSH:()=>yc,Lbi:()=>G0,Lck:()=>QT,MAs:()=>cw,MMx:()=>Pu,NdJ:()=>Ps,O4$:()=>cc,OlP:()=>pn,Oqu:()=>ta,PXZ:()=>Oi,Q6J:()=>Ml,QGY:()=>dp,QP$:()=>Qc,QbO:()=>W0,Qsj:()=>eb,R0b:()=>br,RDi:()=>V,Rgc:()=>ku,SBq:()=>Fd,Sil:()=>K0,Suo:()=>my,TTD:()=>Ws,TgZ:()=>op,Tol:()=>vw,Udp:()=>Om,VKq:()=>oy,W1O:()=>Rg,WFA:()=>up,WLB:()=>ly,XFs:()=>pt,Xpm:()=>Qi,Xts:()=>Ts,Y36:()=>Ms,YKP:()=>_r,YNc:()=>Sm,Yjl:()=>us,Yz7:()=>Xt,ZZ4:()=>e_,_Bn:()=>Sp,_UZ:()=>uw,_Vd:()=>Tc,_c5:()=>NE,_uU:()=>Mw,aQg:()=>Zy,c2e:()=>$0,cJS:()=>En,cg1:()=>_p,d8E:()=>Vc,dDg:()=>wr,dqk:()=>pe,eBb:()=>iA,eFA:()=>Vy,ekj:()=>Bm,eoX:()=>ky,f3M:()=>wh,g9A:()=>Yg,h0i:()=>Nc,hGG:()=>bx,hij:()=>fp,iGM:()=>Jc,ifc:()=>ie,ip1:()=>Fg,kL8:()=>bp,kcU:()=>eh,lG2:()=>fd,lcZ:()=>xg,lqb:()=>gl,lri:()=>si,mCW:()=>bc,n5z:()=>ch,n_E:()=>Hp,oAB:()=>vr,oJD:()=>F_,oxw:()=>mw,pB0:()=>Mh,q3G:()=>Wn,qLn:()=>Zr,qOj:()=>Cm,qZA:()=>Mm,qzn:()=>ml,rWj:()=>Ry,s9C:()=>Hm,sBO:()=>lx,sIi:()=>Hc,s_b:()=>Rp,soG:()=>Fp,tb:()=>Ey,tp0:()=>qa,uIk:()=>sw,vHH:()=>re,vpe:()=>is,wAp:()=>bt,xDo:()=>bu,xi3:()=>h0,xp6:()=>$f,ynx:()=>lp,z2F:()=>Qg,z3N:()=>kr,zSh:()=>Rf,zs3:()=>go});var x=E(7579),n=E(727),P=E(9751),D=E(6451),H=E(3099);function I(_){for(let b in _)if(_[b]===I)return b;throw Error("Could not find renamed property on target object.")}function B(_,b){for(const w in b)b.hasOwnProperty(w)&&!_.hasOwnProperty(w)&&(_[w]=b[w])}function Y(_){if("string"==typeof _)return _;if(Array.isArray(_))return"["+_.map(Y).join(", ")+"]";if(null==_)return""+_;if(_.overriddenName)return`${_.overriddenName}`;if(_.name)return`${_.name}`;const b=_.toString();if(null==b)return""+b;const w=b.indexOf("\n");return-1===w?b:b.substring(0,w)}function G(_,b){return null==_||""===_?null===b?"":b:null==b||""===b?_:_+" "+b}const ee=I({__forward_ref__:I});function te(_){return _.__forward_ref__=te,_.toString=function(){return Y(this())},_}function ae(_){return ue(_)?_():_}function ue(_){return"function"==typeof _&&_.hasOwnProperty(ee)&&_.__forward_ref__===te}class re extends Error{constructor(b,w){super(function _e(_,b){return`NG0${Math.abs(_)}${b?": "+b.trim():""}`}(b,w)),this.code=b}}function ye(_){return"string"==typeof _?_:null==_?"":String(_)}function Ee(_,b){throw new re(-201,!1)}function Kt(_,b){null==_&&function Qe(_,b,w,C){throw new Error(`ASSERTION ERROR: ${_}`+(null==C?"":` [Expected=> ${w} ${C} ${b} <=Actual]`))}(b,_,null,"!=")}function Xt(_){return{token:_.token,providedIn:_.providedIn||null,factory:_.factory,value:void 0}}function En(_){return{providers:_.providers||[],imports:_.imports||[]}}function aa(_){return Zl(_,Br)||Zl(_,ds)}function Zl(_,b){return _.hasOwnProperty(b)?_[b]:null}function Fs(_){return _&&(_.hasOwnProperty(Vr)||_.hasOwnProperty(Ys))?_[Vr]:null}const Br=I({\u0275prov:I}),Vr=I({\u0275inj:I}),ds=I({ngInjectableDef:I}),Ys=I({ngInjectorDef:I});var pt=(()=>((pt=pt||{})[pt.Default=0]="Default",pt[pt.Host=1]="Host",pt[pt.Self=2]="Self",pt[pt.SkipSelf=4]="SkipSelf",pt[pt.Optional=8]="Optional",pt))();let ei;function Wt(_){const b=ei;return ei=_,b}function di(_,b,w){const C=aa(_);return C&&"root"==C.providedIn?void 0===C.value?C.value=C.factory():C.value:w&pt.Optional?null:void 0!==b?b:void Ee(Y(_))}function lr(_){return{toString:_}.toString()}var zt=(()=>((zt=zt||{})[zt.OnPush=0]="OnPush",zt[zt.Default=1]="Default",zt))(),ie=(()=>{return(_=ie||(ie={}))[_.Emulated=0]="Emulated",_[_.None=2]="None",_[_.ShadowDom=3]="ShadowDom",ie;var _})();const pe=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),Dt={},et=[],gt=I({\u0275cmp:I}),In=I({\u0275dir:I}),Ht=I({\u0275pipe:I}),Vi=I({\u0275mod:I}),yt=I({\u0275fac:I}),Gt=I({__NG_ELEMENT_ID__:I});let wt=0;function Qi(_){return lr(()=>{const w=!0===_.standalone,C={},T={type:_.type,providersResolver:null,decls:_.decls,vars:_.vars,factory:null,template:_.template||null,consts:_.consts||null,ngContentSelectors:_.ngContentSelectors,hostBindings:_.hostBindings||null,hostVars:_.hostVars||0,hostAttrs:_.hostAttrs||null,contentQueries:_.contentQueries||null,declaredInputs:C,inputs:null,outputs:null,exportAs:_.exportAs||null,onPush:_.changeDetection===zt.OnPush,directiveDefs:null,pipeDefs:null,standalone:w,dependencies:w&&_.dependencies||null,getStandaloneInjector:null,selectors:_.selectors||et,viewQuery:_.viewQuery||null,features:_.features||null,data:_.data||{},encapsulation:_.encapsulation||ie.Emulated,id:"c"+wt++,styles:_.styles||et,_:null,setInput:null,schemas:_.schemas||null,tView:null},S=_.dependencies,R=_.features;return T.inputs=sa(_.inputs,C),T.outputs=sa(_.outputs),R&&R.forEach(L=>L(T)),T.directiveDefs=S?()=>("function"==typeof S?S():S).map(Yn).filter(Ur):null,T.pipeDefs=S?()=>("function"==typeof S?S():S).map(ti).filter(Ur):null,T})}function jr(_,b,w){const C=_.\u0275cmp;C.directiveDefs=()=>("function"==typeof b?b():b).map(Yn),C.pipeDefs=()=>("function"==typeof w?w():w).map(ti)}function Yn(_){return $t(_)||Zn(_)}function Ur(_){return null!==_}function vr(_){return lr(()=>({type:_.type,bootstrap:_.bootstrap||et,declarations:_.declarations||et,imports:_.imports||et,exports:_.exports||et,transitiveCompileScopes:null,schemas:_.schemas||null,id:_.id||null}))}function sa(_,b){if(null==_)return Dt;const w={};for(const C in _)if(_.hasOwnProperty(C)){let T=_[C],S=T;Array.isArray(T)&&(S=T[1],T=T[0]),w[T]=C,b&&(b[T]=S)}return w}const fd=Qi;function us(_){return{type:_.type,name:_.name,factory:null,pure:!1!==_.pure,standalone:!0===_.standalone,onDestroy:_.type.prototype.ngOnDestroy||null}}function $t(_){return _[gt]||null}function Zn(_){return _[In]||null}function ti(_){return _[Ht]||null}function qe(_,b){const w=_[Vi]||null;if(!w&&!0===b)throw new Error(`Type ${Y(_)} does not have '\u0275mod' property.`);return w}function ni(_){return Array.isArray(_)&&"object"==typeof _[1]}function Di(_){return Array.isArray(_)&&!0===_[1]}function Ki(_){return 0!=(8&_.flags)}function qr(_){return 2==(2&_.flags)}function ur(_){return 1==(1&_.flags)}function Hi(_){return null!==_.template}function da(_){return 0!=(256&_[2])}function ha(_,b){return _.hasOwnProperty(yt)?_[yt]:null}class gd{constructor(b,w,C){this.previousValue=b,this.currentValue=w,this.firstChange=C}isFirstChange(){return this.firstChange}}function Ws(){return Bo}function Bo(_){return _.type.prototype.ngOnChanges&&(_.setInput=_d),Vo}function Vo(){const _=Js(this),b=_?.current;if(b){const w=_.previous;if(w===Dt)_.previous=b;else for(let C in b)w[C]=b[C];_.current=null,this.ngOnChanges(b)}}function _d(_,b,w,C){const T=Js(_)||function jo(_,b){return _[$s]=b}(_,{previous:Dt,current:null}),S=T.current||(T.current={}),R=T.previous,L=this.declaredInputs[w],O=R[L];S[L]=new gd(O&&O.currentValue,b,R===Dt),_[C]=b}Ws.ngInherit=!0;const $s="__ngSimpleChanges__";function Js(_){return _[$s]||null}function qn(_){for(;Array.isArray(_);)_=_[0];return _}function pa(_,b){return qn(b[_])}function er(_,b){return qn(b[_.index])}function tc(_,b){return _.data[b]}function Qs(_,b){return _[b]}function fi(_,b){const w=b[_];return ni(w)?w:w[0]}function U(_){return 4==(4&_[2])}function J(_){return 64==(64&_[2])}function X(_,b){return null==b?null:_[b]}function he(_){_[18]=0}function ve(_,b){_[5]+=b;let w=_,C=_[3];for(;null!==C&&(1===b&&1===w[5]||-1===b&&0===w[5]);)C[5]+=b,w=C,C=C[3]}const be={lFrame:Fo(null),bindingsEnabled:!0};function ii(){return be.bindingsEnabled}function Ce(){return be.lFrame.lView}function lt(){return be.lFrame.tView}function Hn(_){return be.lFrame.contextLView=_,_[8]}function xr(_){return be.lFrame.contextLView=null,_}function un(){let _=ps();for(;null!==_&&64===_.type;)_=_.parent;return _}function ps(){return be.lFrame.currentTNode}function Pn(_,b){const w=be.lFrame;w.currentTNode=_,w.isParent=b}function Rt(){return be.lFrame.isParent}function Pi(){be.lFrame.isParent=!1}function jn(){const _=be.lFrame;let b=_.bindingRootIndex;return-1===b&&(b=_.bindingRootIndex=_.tView.bindingStartIndex),b}function nn(){return be.lFrame.bindingIndex}function Ks(){return be.lFrame.bindingIndex++}function Sr(_){const b=be.lFrame,w=b.bindingIndex;return b.bindingIndex=b.bindingIndex+_,w}function bd(_,b){const w=be.lFrame;w.bindingIndex=w.bindingRootIndex=_,ic(b)}function ic(_){be.lFrame.currentDirectiveIndex=_}function rc(_){const b=be.lFrame.currentDirectiveIndex;return-1===b?null:_[b]}function ac(){return be.lFrame.currentQueryIndex}function Mr(_){be.lFrame.currentQueryIndex=_}function sc(_){const b=_[1];return 2===b.type?b.declTNode:1===b.type?_[6]:null}function It(_,b,w){if(w&pt.SkipSelf){let T=b,S=_;for(;!(T=T.parent,null!==T||w&pt.Host||(T=sc(S),null===T||(S=S[15],10&T.type))););if(null===T)return!1;b=T,_=S}const C=be.lFrame=zr();return C.currentTNode=b,C.lView=_,!0}function yd(_){const b=zr(),w=_[1];be.lFrame=b,b.currentTNode=w.firstChild,b.lView=_,b.tView=w,b.contextLView=_,b.bindingIndex=w.bindingStartIndex,b.inI18n=!1}function zr(){const _=be.lFrame,b=null===_?null:_.child;return null===b?Fo(_):b}function Fo(_){const b={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:_,child:null,inI18n:!1};return null!==_&&(_.child=b),b}function oc(){const _=be.lFrame;return be.lFrame=_.parent,_.currentTNode=null,_.lView=null,_}const Er=oc;function Yo(){const _=oc();_.isParent=!0,_.tView=null,_.selectedIndex=-1,_.contextLView=null,_.elementDepthCount=0,_.currentDirectiveIndex=-1,_.currentNamespace=null,_.bindingRootIndex=-1,_.bindingIndex=-1,_.currentQueryIndex=0}function Ci(){return be.lFrame.selectedIndex}function gn(_){be.lFrame.selectedIndex=_}function Qt(){const _=be.lFrame;return tc(_.tView,_.selectedIndex)}function cc(){be.lFrame.currentNamespace="svg"}function eh(){!function th(){be.lFrame.currentNamespace=null}()}function qo(_,b){for(let w=b.directiveStart,C=b.directiveEnd;w=C)break}else b[O]<0&&(_[18]+=65536),(L>11<_[18]>>16&&(3&_[2])===b){_[2]+=2048;try{S.call(L)}finally{}}}else try{S.call(L)}finally{}}class ki{constructor(b,w,C){this.factory=b,this.resolving=!1,this.canSeeViewProviders=w,this.injectImpl=C}}function Jo(_,b,w){let C=0;for(;Cb){R=S-1;break}}}for(;S<_.length;){const L=_[S];if("number"==typeof L)break;if(L===w){if(null===C)return void(null!==T&&(_[S+1]=T));if(C===_[S+1])return void(_[S+2]=T)}S++,null!==C&&S++,null!==T&&S++}-1!==R&&(_.splice(R,0,b),S=R+1),_.splice(S++,0,w),null!==C&&_.splice(S++,0,C),null!==T&&_.splice(S++,0,T)}function Ad(_){return-1!==_}function gs(_){return 32767&_}function to(_,b){let w=function pf(_){return _>>16}(_),C=b;for(;w>0;)C=C[15],w--;return C}let vd=!0;function _s(_){const b=vd;return vd=_,b}let ff=0;const Gr={};function ja(_,b){const w=fa(_,b);if(-1!==w)return w;const C=b[1];C.firstCreatePass&&(_.injectorIndex=b.length,xd(C.data,_),xd(b,null),xd(C.blueprint,null));const T=no(_,b),S=_.injectorIndex;if(Ad(T)){const R=gs(T),L=to(T,b),O=L[1].data;for(let F=0;F<8;F++)b[S+F]=L[R+F]|O[R+F]}return b[S+8]=T,S}function xd(_,b){_.push(0,0,0,0,0,0,0,0,b)}function fa(_,b){return-1===_.injectorIndex||_.parent&&_.parent.injectorIndex===_.injectorIndex||null===b[_.injectorIndex+8]?-1:_.injectorIndex}function no(_,b){if(_.parent&&-1!==_.parent.injectorIndex)return _.parent.injectorIndex;let w=0,C=null,T=b;for(;null!==T;){if(C=dh(T),null===C)return-1;if(w++,T=T[15],-1!==C.injectorIndex)return C.injectorIndex|w<<16}return-1}function Sd(_,b,w){!function Td(_,b,w){let C;"string"==typeof w?C=w.charCodeAt(0)||0:w.hasOwnProperty(Gt)&&(C=w[Gt]),null==C&&(C=w[Gt]=ff++);const T=255&C;b.data[_+(T>>5)]|=1<=0?255&b:lh:b}(w);if("function"==typeof S){if(!It(b,_,C))return C&pt.Host?Md(T,0,C):Ed(b,w,C,T);try{const R=S(C);if(null!=R||C&pt.Optional)return R;Ee()}finally{Er()}}else if("number"==typeof S){let R=null,L=fa(_,b),O=-1,F=C&pt.Host?b[16][6]:null;for((-1===L||C&pt.SkipSelf)&&(O=-1===L?no(_,b):b[L+8],-1!==O&&oh(C,!1)?(R=b[1],L=gs(O),b=to(O,b)):L=-1);-1!==L;){const $=b[1];if(Ua(S,L,$.data)){const ne=ga(L,b,w,R,C,F);if(ne!==Gr)return ne}O=b[L+8],-1!==O&&oh(C,b[1].data[L+8]===F)&&Ua(S,L,b)?(R=$,L=gs(O),b=to(O,b)):L=-1}}return T}function ga(_,b,w,C,T,S){const R=b[1],L=R.data[_+8],$=io(L,R,w,null==C?qr(L)&&vd:C!=R&&0!=(3&L.type),T&pt.Host&&S===L);return null!==$?Hr(b,R,$,L):Gr}function io(_,b,w,C,T){const S=_.providerIndexes,R=b.data,L=1048575&S,O=_.directiveStart,$=S>>20,de=T?L+$:_.directiveEnd;for(let me=C?L:L+$;me=O&&De.type===w)return me}if(T){const me=R[O];if(me&&Hi(me)&&me.type===w)return O}return null}function Hr(_,b,w,C){let T=_[w];const S=b.data;if(function ih(_){return _ instanceof ki}(T)){const R=T;R.resolving&&function Je(_,b){const w=b?`. Dependency path: ${b.join(" > ")} > ${_}`:"";throw new re(-200,`Circular dependency in DI detected for ${_}${w}`)}(function Se(_){return"function"==typeof _?_.name||_.toString():"object"==typeof _&&null!=_&&"function"==typeof _.type?_.type.name||_.type.toString():ye(_)}(S[w]));const L=_s(R.canSeeViewProviders);R.resolving=!0;const O=R.injectImpl?Wt(R.injectImpl):null;It(_,C,pt.Default);try{T=_[w]=R.factory(void 0,S,_,C),b.firstCreatePass&&w>=C.directiveStart&&function uf(_,b,w){const{ngOnChanges:C,ngOnInit:T,ngDoCheck:S}=b.type.prototype;if(C){const R=Bo(b);(w.preOrderHooks||(w.preOrderHooks=[])).push(_,R),(w.preOrderCheckHooks||(w.preOrderCheckHooks=[])).push(_,R)}T&&(w.preOrderHooks||(w.preOrderHooks=[])).push(0-_,T),S&&((w.preOrderHooks||(w.preOrderHooks=[])).push(_,S),(w.preOrderCheckHooks||(w.preOrderCheckHooks=[])).push(_,S))}(w,S[w],b)}finally{null!==O&&Wt(O),_s(L),R.resolving=!1,Er()}}return T}function Ua(_,b,w){return!!(w[b+(_>>5)]&1<<_)}function oh(_,b){return!(_&pt.Self||_&pt.Host&&b)}class ro{constructor(b,w){this._tNode=b,this._lView=w}get(b,w,C){return ma(this._tNode,this._lView,b,C,w)}}function lh(){return new ro(un(),Ce())}function ch(_){return lr(()=>{const b=_.prototype.constructor,w=b[yt]||Xo(b),C=Object.prototype;let T=Object.getPrototypeOf(_.prototype).constructor;for(;T&&T!==C;){const S=T[yt]||Xo(T);if(S&&S!==w)return S;T=Object.getPrototypeOf(T)}return S=>new S})}function Xo(_){return ue(_)?()=>{const b=Xo(ae(_));return b&&b()}:ha(_)}function dh(_){const b=_[1],w=b.type;return 2===w?b.declTNode:1===w?_[6]:null}function tl(_){return function sh(_,b){if("class"===b)return _.classes;if("style"===b)return _.styles;const w=_.attrs;if(w){const C=w.length;let T=0;for(;T{const C=function nl(_){return function(...w){if(_){const C=_(...w);for(const T in C)this[T]=C[T]}}}(b);function T(...S){if(this instanceof T)return C.apply(this,S),this;const R=new T(...S);return L.annotation=R,L;function L(O,F,$){const ne=O.hasOwnProperty(bs)?O[bs]:Object.defineProperty(O,bs,{value:[]})[bs];for(;ne.length<=$;)ne.push(null);return(ne[$]=ne[$]||[]).push(R),O}}return w&&(T.prototype=Object.create(w.prototype)),T.prototype.ngMetadataName=_,T.annotationCls=T,T})}class pn{constructor(b,w){this._desc=b,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof w?this.__NG_ELEMENT_ID__=w:void 0!==w&&(this.\u0275prov=Xt({token:this,providedIn:w.providedIn||"root",factory:w.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function zn(_,b){void 0===b&&(b=_);for(let w=0;w<_.length;w++){let C=_[w];Array.isArray(C)?(b===_&&(b=_.slice(0,w)),zn(C,b)):b!==_&&b.push(C)}return b}function Fi(_,b){_.forEach(w=>Array.isArray(w)?Fi(w,b):b(w))}function pc(_,b,w){b>=_.length?_.push(w):_.splice(b,0,w)}function rl(_,b){return b>=_.length-1?_.pop():_.splice(b,1)[0]}function al(_,b){const w=[];for(let C=0;C<_;C++)w.push(b);return w}function Yi(_,b,w){let C=Fa(_,b);return C>=0?_[1|C]=w:(C=~C,function mf(_,b,w,C){let T=_.length;if(T==b)_.push(w,C);else if(1===T)_.push(C,_[0]),_[0]=w;else{for(T--,_.push(_[T-1],_[T]);T>b;)_[T]=_[T-2],T--;_[b]=w,_[b+1]=C}}(_,C,b,w)),C}function ol(_,b){const w=Fa(_,b);if(w>=0)return _[1|w]}function Fa(_,b){return function oo(_,b,w){let C=0,T=_.length>>w;for(;T!==C;){const S=C+(T-C>>1),R=_[S<b?T=S:C=S+1}return~(T<_,createScript:_=>_,createScriptURL:_=>_})}catch{}return Q}()?.createHTML(_)||_}function ba(_){return function Rr(){if(void 0===Gn&&(Gn=null,pe.trustedTypes))try{Gn=pe.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:_=>_,createScript:_=>_,createScriptURL:_=>_})}catch{}return Gn}()?.createHTML(_)||_}class Ga{constructor(b){this.changingThisBreaksApplicationSecurity=b}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class k_ extends Ga{getTypeName(){return"HTML"}}class L_ extends Ga{getTypeName(){return"Style"}}class xh extends Ga{getTypeName(){return"Script"}}class Sh extends Ga{getTypeName(){return"URL"}}class I_ extends Ga{getTypeName(){return"ResourceURL"}}function kr(_){return _ instanceof Ga?_.changingThisBreaksApplicationSecurity:_}function ml(_,b){const w=function eA(_){return _ instanceof Ga&&_.getTypeName()||null}(_);if(null!=w&&w!==b){if("ResourceURL"===w&&"URL"===b)return!0;throw new Error(`Required a safe ${b}, got a ${w} (see https://g.co/ng/security#xss)`)}return w===b}function tA(_){return new k_(_)}function nA(_){return new L_(_)}function iA(_){return new xh(_)}function rA(_){return new Sh(_)}function Mh(_){return new I_(_)}class aA{constructor(b){this.inertDocumentHelper=b}getInertBodyElement(b){b=""+b;try{const w=(new window.DOMParser).parseFromString(Ae(b),"text/html").body;return null===w?this.inertDocumentHelper.getInertBodyElement(b):(w.removeChild(w.firstChild),w)}catch{return null}}}class sA{constructor(b){if(this.defaultDoc=b,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const w=this.inertDocument.createElement("html");this.inertDocument.appendChild(w);const C=this.inertDocument.createElement("body");w.appendChild(C)}}getInertBodyElement(b){const w=this.inertDocument.createElement("template");if("content"in w)return w.innerHTML=Ae(b),w;const C=this.inertDocument.createElement("body");return C.innerHTML=Ae(b),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(C),C}stripCustomNsAttrs(b){const w=b.attributes;for(let T=w.length-1;0bc(b.trim())).join(", ")),this.buf.push(" ",R,'="',N_(O),'"')}var _;return this.buf.push(">"),!0}endElement(b){const w=b.nodeName.toLowerCase();Mf.hasOwnProperty(w)&&!Tf.hasOwnProperty(w)&&(this.buf.push(""))}chars(b){this.buf.push(N_(b))}checkClobberedElement(b,w){if(w&&(b.compareDocumentPosition(w)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${b.outerHTML}`);return w}}const uA=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,hA=/([^\#-~ |!])/g;function N_(_){return _.replace(/&/g,"&").replace(uA,function(b){return"&#"+(1024*(b.charCodeAt(0)-55296)+(b.charCodeAt(1)-56320)+65536)+";"}).replace(hA,function(b){return"&#"+b.charCodeAt(0)+";"}).replace(//g,">")}let Dh;function Hh(_,b){let w=null;try{Dh=Dh||function O_(_){const b=new sA(_);return function oA(){try{return!!(new window.DOMParser).parseFromString(Ae(""),"text/html")}catch{return!1}}()?new aA(b):b}(_);let C=b?String(b):"";w=Dh.getInertBodyElement(C);let T=5,S=C;do{if(0===T)throw new Error("Failed to sanitize html because the input is unstable");T--,C=S,S=w.innerHTML,w=Dh.getInertBodyElement(C)}while(C!==S);return Ae((new U_).sanitizeChildren(Ph(w)||w))}finally{if(w){const C=Ph(w)||w;for(;C.firstChild;)C.removeChild(C.firstChild)}}}function Ph(_){return"content"in _&&function Hf(_){return _.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===_.nodeName}(_)?_.content:null}var Wn=(()=>((Wn=Wn||{})[Wn.NONE=0]="NONE",Wn[Wn.HTML=1]="HTML",Wn[Wn.STYLE=2]="STYLE",Wn[Wn.SCRIPT=3]="SCRIPT",Wn[Wn.URL=4]="URL",Wn[Wn.RESOURCE_URL=5]="RESOURCE_URL",Wn))();function F_(_){const b=Cc();return b?ba(b.sanitize(Wn.HTML,_)||""):ml(_,"HTML")?ba(kr(_)):Hh(function q(){return void 0!==k?k:typeof document<"u"?document:void 0}(),ye(_))}function yc(_){const b=Cc();return b?b.sanitize(Wn.URL,_)||"":ml(_,"URL")?kr(_):bc(ye(_))}function Cc(){const _=Ce();return _&&_[12]}const Ts=new pn("ENVIRONMENT_INITIALIZER"),Nd=new pn("INJECTOR",-1),z_=new pn("INJECTOR_DEF_TYPES");class G_{get(b,w=Ya){if(w===Ya){const C=new Error(`NullInjectorError: No provider for ${Y(b)}!`);throw C.name="NullInjectorError",C}return w}}function W_(..._){return{\u0275providers:bA(0,_)}}function bA(_,...b){const w=[],C=new Set;let T;return Fi(b,S=>{const R=S;Rh(R,w,[],C)&&(T||(T=[]),T.push(R))}),void 0!==T&&$_(T,w),w}function $_(_,b){for(let w=0;w<_.length;w++){const{providers:T}=_[w];Fi(T,S=>{b.push(S)})}}function Rh(_,b,w,C){if(!(_=ae(_)))return!1;let T=null,S=Fs(_);const R=!S&&$t(_);if(S||R){if(R&&!R.standalone)return!1;T=_}else{const O=_.ngModule;if(S=Fs(O),!S)return!1;T=O}const L=C.has(T);if(R){if(L)return!1;if(C.add(T),R.dependencies){const O="function"==typeof R.dependencies?R.dependencies():R.dependencies;for(const F of O)Rh(F,b,w,C)}}else{if(!S)return!1;{if(null!=S.imports&&!L){let F;C.add(T);try{Fi(S.imports,$=>{Rh($,b,w,C)&&(F||(F=[]),F.push($))})}finally{}void 0!==F&&$_(F,b)}if(!L){const F=ha(T)||(()=>new T);b.push({provide:T,useFactory:F,deps:et},{provide:z_,useValue:T,multi:!0},{provide:Ts,useValue:()=>Tn(T),multi:!0})}const O=S.providers;null==O||L||Fi(O,$=>{b.push($)})}}return T!==_&&void 0!==_.providers}const yA=I({provide:String,useValue:I});function Wa(_){return null!==_&&"object"==typeof _&&yA in _}function co(_){return"function"==typeof _}const Rf=new pn("Set Injector scope."),kh={},Lh={};let kf;function Ih(){return void 0===kf&&(kf=new G_),kf}class gl{}class J_ extends gl{constructor(b,w,C,T){super(),this.parent=w,this.source=C,this.scopes=T,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,If(b,R=>this.processProvider(R)),this.records.set(Nd,Ac(void 0,this)),T.has("environment")&&this.records.set(gl,Ac(void 0,this));const S=this.records.get(Rf);null!=S&&"string"==typeof S.value&&this.scopes.add(S.value),this.injectorDefTypes=new Set(this.get(z_.multi,et,pt.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const b of this._ngOnDestroyHooks)b.ngOnDestroy();for(const b of this._onDestroyHooks)b()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(b){this._onDestroyHooks.push(b)}runInContext(b){this.assertNotDestroyed();const w=dl(this),C=Wt(void 0);try{return b()}finally{dl(w),Wt(C)}}get(b,w=Ya,C=pt.Default){this.assertNotDestroyed();const T=dl(this),S=Wt(void 0);try{if(!(C&pt.SkipSelf)){let L=this.records.get(b);if(void 0===L){const O=function Lf(_){return"function"==typeof _||"object"==typeof _&&_ instanceof pn}(b)&&aa(b);L=O&&this.injectableDefInScope(O)?Ac(Oh(b),kh):null,this.records.set(b,L)}if(null!=L)return this.hydrate(b,L)}return(C&pt.Self?Ih():this.parent).get(b,w=C&pt.Optional&&w===Ya?null:w)}catch(R){if("NullInjectorError"===R.name){if((R[hr]=R[hr]||[]).unshift(Y(b)),T)throw R;return function yh(_,b,w,C){const T=_[hr];throw b[bf]&&T.unshift(b[bf]),_.message=function Ch(_,b,w,C=null){_=_&&"\n"===_.charAt(0)&&"\u0275"==_.charAt(1)?_.slice(2):_;let T=Y(b);if(Array.isArray(b))T=b.map(Y).join(" -> ");else if("object"==typeof b){let S=[];for(let R in b)if(b.hasOwnProperty(R)){let L=b[R];S.push(R+":"+("string"==typeof L?JSON.stringify(L):Y(L)))}T=`{${S.join(", ")}}`}return`${w}${C?"("+C+")":""}[${T}]: ${_.replace(Id,"\n ")}`}("\n"+_.message,T,w,C),_.ngTokenPath=T,_[hr]=null,_}(R,b,"R3InjectorError",this.source)}throw R}finally{Wt(S),dl(T)}}resolveInjectorInitializers(){const b=dl(this),w=Wt(void 0);try{const C=this.get(Ts.multi,et,pt.Self);for(const T of C)T()}finally{dl(b),Wt(w)}}toString(){const b=[],w=this.records;for(const C of w.keys())b.push(Y(C));return`R3Injector[${b.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new re(205,!1)}processProvider(b){let w=co(b=ae(b))?b:ae(b&&b.provide);const C=function Z_(_){return Wa(_)?Ac(void 0,_.useValue):Ac(Q_(_),kh)}(b);if(co(b)||!0!==b.multi)this.records.get(w);else{let T=this.records.get(w);T||(T=Ac(void 0,kh,!0),T.factory=()=>Pr(T.multi),this.records.set(w,T)),w=b,T.multi.push(b)}this.records.set(w,C)}hydrate(b,w){return w.value===kh&&(w.value=Lh,w.value=w.factory()),"object"==typeof w.value&&w.value&&function TA(_){return null!==_&&"object"==typeof _&&"function"==typeof _.ngOnDestroy}(w.value)&&this._ngOnDestroyHooks.add(w.value),w.value}injectableDefInScope(b){if(!b.providedIn)return!1;const w=ae(b.providedIn);return"string"==typeof w?"any"===w||this.scopes.has(w):this.injectorDefTypes.has(w)}}function Oh(_){const b=aa(_),w=null!==b?b.factory:ha(_);if(null!==w)return w;if(_ instanceof pn)throw new re(204,!1);if(_ instanceof Function)return function vA(_){const b=_.length;if(b>0)throw al(b,"?"),new re(204,!1);const w=function Ns(_){const b=_&&(_[Br]||_[ds]);if(b){const w=function pd(_){if(_.hasOwnProperty("name"))return _.name;const b=(""+_).match(/^function\s*([^\s(]+)/);return null===b?"":b[1]}(_);return console.warn(`DEPRECATED: DI is instantiating a token "${w}" 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 "${w}" class.`),b}return null}(_);return null!==w?()=>w.factory(_):()=>new _}(_);throw new re(204,!1)}function Q_(_,b,w){let C;if(co(_)){const T=ae(_);return ha(T)||Oh(T)}if(Wa(_))C=()=>ae(_.useValue);else if(function Pf(_){return!(!_||!_.useFactory)}(_))C=()=>_.useFactory(...Pr(_.deps||[]));else if(function CA(_){return!(!_||!_.useExisting)}(_))C=()=>Tn(ae(_.useExisting));else{const T=ae(_&&(_.useClass||_.provide));if(!function K_(_){return!!_.deps}(_))return ha(T)||Oh(T);C=()=>new T(...Pr(_.deps))}return C}function Ac(_,b,w=!1){return{factory:_,value:b,multi:w?[]:void 0}}function xA(_){return!!_.\u0275providers}function If(_,b){for(const w of _)Array.isArray(w)?If(w,b):xA(w)?If(w.\u0275providers,b):b(w)}class MA{}class vc{resolveComponentFactory(b){throw function Of(_){const b=Error(`No component factory found for ${Y(_)}. Did you add it to @NgModule.entryComponents?`);return b.ngComponent=_,b}(b)}}let Tc=(()=>{class _{}return _.NULL=new vc,_})();function X_(){return $a(un(),Ce())}function $a(_,b){return new Fd(er(_,b))}let Fd=(()=>{class _{constructor(w){this.nativeElement=w}}return _.__NG_ELEMENT_ID__=X_,_})();function Ja(_){return _ instanceof Fd?_.nativeElement:_}class uo{}let eb=(()=>{class _{}return _.__NG_ELEMENT_ID__=()=>function Yd(){const _=Ce(),w=fi(un().index,_);return(ni(w)?w:_)[11]}(),_})(),Vf=(()=>{class _{}return _.\u0275prov=Xt({token:_,providedIn:"root",factory:()=>null}),_})();class tb{constructor(b){this.full=b,this.major=b.split(".")[0],this.minor=b.split(".")[1],this.patch=b.split(".").slice(2).join(".")}}const Bh=new tb("14.1.2"),ho={};function Jr(_){return _.ngOriginalError}class Zr{constructor(){this._console=console}handleError(b){const w=this._findOriginalError(b);this._console.error("ERROR",b),w&&this._console.error("ORIGINAL ERROR",w)}_findOriginalError(b){let w=b&&Jr(b);for(;w&&Jr(w);)w=Jr(w);return w||null}}const ab=new Map;let nM=0;const ob="__ngContext__";function vi(_,b){ni(b)?(_[ob]=b[20],function rM(_){ab.set(_[20],_)}(b)):_[ob]=b}function Vh(_){const b=_[ob];return"number"==typeof b?function RA(_){return ab.get(_)||null}(b):b||null}function lb(_){const b=Vh(_);return b?ni(b)?b:b.lView:null}const hM=(()=>(typeof requestAnimationFrame<"u"&&requestAnimationFrame||setTimeout).bind(pe))();function VA(_){return _.ownerDocument.defaultView}function fo(_){return _ instanceof Function?_():_}var Ss=(()=>((Ss=Ss||{})[Ss.Important=1]="Important",Ss[Ss.DashCase=2]="DashCase",Ss))();function Nf(_,b){return undefined(_,b)}function jh(_){const b=_[3];return Di(b)?b[3]:b}function cb(_){return FA(_[13])}function db(_){return FA(_[4])}function FA(_){for(;null!==_&&!Di(_);)_=_[4];return _}function $d(_,b,w,C,T){if(null!=C){let S,R=!1;Di(C)?S=C:ni(C)&&(R=!0,C=C[0]);const L=qn(C);0===_&&null!==w?null==T?$A(b,w,L):Sc(b,w,L,T||null,!0):1===_&&null!==w?Sc(b,w,L,T||null,!0):2===_?function tv(_,b,w){const C=Ff(_,b);C&&function DM(_,b,w,C){_.removeChild(b,w,C)}(_,C,b,w)}(b,L,R):3===_&&b.destroyNode(L),null!=S&&function RM(_,b,w,C,T){const S=w[7];S!==qn(w)&&$d(b,_,C,S,T);for(let L=10;L0&&(_[w-1][4]=C[4]);const S=rl(_,10+b);!function CM(_,b){Uh(_,b,b[11],2,null,null),b[0]=null,b[6]=null}(C[1],C);const R=S[19];null!==R&&R.detachView(S[1]),C[3]=null,C[4]=null,C[2]&=-65}return C}function zA(_,b){if(!(128&b[2])){const w=b[11];w.destroyNode&&Uh(_,b,w,3,null,null),function TM(_){let b=_[13];if(!b)return fb(_[1],_);for(;b;){let w=null;if(ni(b))w=b[13];else{const C=b[10];C&&(w=C)}if(!w){for(;b&&!b[4]&&b!==_;)ni(b)&&fb(b[1],b),b=b[3];null===b&&(b=_),ni(b)&&fb(b[1],b),w=b&&b[4]}b=w}}(b)}}function fb(_,b){if(!(128&b[2])){b[2]&=-65,b[2]|=128,function EM(_,b){let w;if(null!=_&&null!=(w=_.destroyHooks))for(let C=0;C=0?C[T=F]():C[T=-F].unsubscribe(),S+=2}else{const R=C[T=w[S+1]];w[S].call(R)}if(null!==C){for(let S=T+1;SS?"":T[ne+1].toLowerCase();const me=8&C?de:null;if(me&&-1!==ri(me,F,0)||2&C&&F!==de){if(Oe(C))return!1;R=!0}}}}else{if(!R&&!Oe(C)&&!Oe(O))return!1;if(R&&Oe(O))continue;R=!1,C=O|1&C}}return Oe(C)||R}function Oe(_){return 0==(1&_)}function _n(_,b,w,C){if(null===b)return-1;let T=0;if(C||!w){let S=!1;for(;T-1)for(w++;w<_.length;){const C=_[w];if("number"==typeof C)return-1;if(C===b)return w;w++}return-1}(b,_)}function Gf(_,b,w=!1){for(let C=0;C0?'="'+L+'"':"")+"]"}else 8&C?T+="."+R:4&C&&(T+=" "+R);else""!==T&&!Oe(R)&&(b+=Wf(S,T),T=""),C=R,S=S||!Oe(C);w++}return""!==T&&(b+=Wf(S,T)),b}const Lt={};function $f(_){_l(lt(),Ce(),Ci()+_,!1)}function _l(_,b,w,C){if(!C)if(3==(3&b[2])){const S=_.preOrderCheckHooks;null!==S&&dc(b,S,w)}else{const S=_.preOrderHooks;null!==S&&zo(b,S,0,w)}gn(w)}function Zd(_,b=null,w=null,C){const T=dv(_,b,w,C);return T.resolveInjectorInitializers(),T}function dv(_,b=null,w=null,C,T=new Set){const S=[w||et,W_(_)];return C=C||("object"==typeof _?void 0:Y(_)),new J_(S,b||Ih(),C||null,T)}let go=(()=>{class _{static create(w,C){if(Array.isArray(w))return Zd({name:""},C,w,"");{const T=w.name??"";return Zd({name:T},w.parent,w.providers,T)}}}return _.THROW_IF_NOT_FOUND=Ya,_.NULL=new G_,_.\u0275prov=Xt({token:_,providedIn:"any",factory:()=>Tn(Nd)}),_.__NG_ELEMENT_ID__=-1,_})();function Ms(_,b=pt.Default){const w=Ce();return null===w?Tn(_,b):ma(un(),w,ae(_),b)}function Pb(){throw new Error("invalid")}function eu(_,b){return _<<17|b<<2}function zi(_){return _>>17&32767}function Kf(_){return 2|_}function Es(_){return(131068&_)>>2}function Xf(_,b){return-131069&_|b<<2}function em(_){return 1|_}function Bb(_,b){const w=_.contentQueries;if(null!==w)for(let C=0;C22&&_l(_,b,22,!1),w(C,T)}finally{gn(S)}}function Xh(_,b,w){if(Ki(b)){const T=b.directiveEnd;for(let S=b.directiveStart;S0;){const w=_[--b];if("number"==typeof w&&w<0)return w}return 0})(L)!=O&&L.push(O),L.push(C,T,R)}}function Yb(_,b){null!==_.hostBindings&&_.hostBindings(1,b)}function Ov(_,b){b.flags|=2,(_.components||(_.components=[])).push(b.index)}function Vv(_,b,w){if(w){if(b.exportAs)for(let C=0;C0&&fm(w)}}function fm(_){for(let C=cb(_);null!==C;C=db(C))for(let T=10;T0&&fm(S)}const w=_[1].components;if(null!==w)for(let C=0;C0&&fm(T)}}function Gb(_,b){const w=fi(b,_),C=w[1];(function su(_,b){for(let w=b.length;w<_.blueprint.length;w++)b.push(_.blueprint[w])})(C,w),Cl(C,w,w[8])}function np(_,b){return _[13]?_[14][4]=b:_[13]=b,_[14]=b,b}function ip(_){for(;_;){_[2]|=32;const b=jh(_);if(da(_)&&!b)return _;_=b}return null}function $b(_){!function mm(_){for(let b=0;b<_.components.length;b++){const w=_.components[b],C=lb(w);if(null!==C){const T=C[1];jb(T,C,T.template,w)}}}(_[8])}function rp(_,b,w){Mr(0),b(_,w)}const JM=(()=>Promise.resolve(null))();function Zb(_){return _[7]||(_[7]=[])}function Qb(_){return _.cleanup||(_.cleanup=[])}function ou(_,b,w){return(null===_||Hi(_))&&(w=function An(_){for(;Array.isArray(_);){if("object"==typeof _[1])return _;_=_[0]}return null}(w[b.index])),w[11]}function Kb(_,b){const w=_[9],C=w?w.get(Zr,null):null;C&&C.handleError(b)}function _m(_,b,w,C,T){for(let S=0;S-1&&(pb(b,C),rl(w,C))}this._attachedToViewContainer=!1}zA(this._lView[1],this._lView)}onDestroy(b){om(this._lView[1],this._lView,null,b)}markForCheck(){ip(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){!function Wb(_,b,w){const C=b[10];C.begin&&C.begin();try{au(_,b,_.template,w)}catch(T){throw Kb(b,T),T}finally{C.end&&C.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new re(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function vM(_,b){Uh(_,b,b[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(b){if(this._attachedToViewContainer)throw new re(902,!1);this._appRef=b}}class wm extends cu{constructor(b){super(b),this._view=b}detectChanges(){$b(this._view)}checkNoChanges(){}get context(){return null}}class Dc extends Tc{constructor(b){super(),this.ngModule=b}resolveComponentFactory(b){const w=$t(b);return new uu(w,this.ngModule)}}function Xb(_){const b=[];for(let w in _)_.hasOwnProperty(w)&&b.push({propName:_[w],templateName:w});return b}class du{constructor(b,w){this.injector=b,this.parentInjector=w}get(b,w,C){const T=this.injector.get(b,ho,C);return T!==ho||w===ho?T:this.parentInjector.get(b,w,C)}}class uu extends MA{constructor(b,w){super(),this.componentDef=b,this.ngModule=w,this.componentType=b.type,this.selector=function qh(_){return _.map(sv).join(",")}(b.selectors),this.ngContentSelectors=b.ngContentSelectors?b.ngContentSelectors:[],this.isBoundToModule=!!w}get inputs(){return Xb(this.componentDef.inputs)}get outputs(){return Xb(this.componentDef.outputs)}create(b,w,C,T){let S=(T=T||this.ngModule)instanceof gl?T:T?.injector;S&&null!==this.componentDef.getStandaloneInjector&&(S=this.componentDef.getStandaloneInjector(S)||S);const R=S?new du(b,S):b,L=R.get(uo,null);if(null===L)throw new re(407,!1);const O=R.get(Vf,null),F=L.createRenderer(null,this.componentDef),$=this.componentDef.selectors[0][0]||"div",ne=C?function Kr(_,b,w){return _.selectRootElement(b,w===ie.ShadowDom)}(F,C,this.componentDef.encapsulation):hb(L.createRenderer(null,this.componentDef),$,function ew(_){const b=_.toLowerCase();return"svg"===b?"svg":"math"===b?"math":null}($)),de=this.componentDef.onPush?288:272,me=function qv(_,b){return{components:[],scheduler:_||hM,clean:JM,playerHandler:b||null,flags:0}}(),De=sm(0,null,null,1,0,null,null,null,null,null),Ue=Ca(null,De,me,de,null,null,L,F,O,R,null);let $e,Xe;yd(Ue);try{const At=function ym(_,b,w,C,T,S){const R=w[1];w[22]=_;const O=yl(R,22,2,"#host",null),F=O.mergedAttrs=b.hostAttrs;null!==F&&(bm(O,F,!0),null!==_&&(Jo(T,_,F),null!==O.classes&&zf(T,_,O.classes),null!==O.styles&&iv(T,_,O.styles)));const $=C.createRenderer(_,b),ne=Ca(w,am(b),null,b.onPush?32:16,w[22],O,C,$,S||null,null,null);return R.firstCreatePass&&(Sd(ja(O,w),R,b.type),Ov(R,O),qb(O,w.length,1)),np(w,ne),w[22]=ne}(ne,this.componentDef,Ue,L,F);if(ne)if(C)Jo(F,ne,["ng-version",Bh.full]);else{const{attrs:Le,classes:mt}=function Jd(_){const b=[],w=[];let C=1,T=2;for(;C<_.length;){let S=_[C];if("string"==typeof S)2===T?""!==S&&b.push(S,_[++C]):8===T&&w.push(S);else{if(!Oe(T))break;T=S}C++}return{attrs:b,classes:w}}(this.componentDef.selectors[0]);Le&&Jo(F,ne,Le),mt&&mt.length>0&&zf(F,ne,mt.join(" "))}if(Xe=tc(De,22),void 0!==w){const Le=Xe.projection=[];for(let mt=0;mt=0;C--){const T=_[C];T.hostVars=b+=T.hostVars,T.hostAttrs=eo(T.hostAttrs,w=eo(w,T.hostAttrs))}}(C)}function Am(_){return _===Dt?{}:_===et?[]:_}function Tl(_,b){const w=_.viewQuery;_.viewQuery=w?(C,T)=>{b(C,T),w(C,T)}:b}function xl(_,b){const w=_.contentQueries;_.contentQueries=w?(C,T,S)=>{b(C,T,S),w(C,T,S)}:b}function $v(_,b){const w=_.hostBindings;_.hostBindings=w?(C,T)=>{b(C,T),w(C,T)}:b}let ap=null;function Sl(){if(!ap){const _=pe.Symbol;if(_&&_.iterator)ap=_.iterator;else{const b=Object.getOwnPropertyNames(Map.prototype);for(let w=0;wL(qn(qt[C.index])):C.index;let mt=null;if(!L&&O&&(mt=function fw(_,b,w,C){const T=_.cleanup;if(null!=T)for(let S=0;SO?L[O]:null}"string"==typeof R&&(S+=2)}return null}(_,b,T,C.index)),null!==mt)(mt.__ngLastListenerFn__||mt).__ngNextListenerFn__=S,mt.__ngLastListenerFn__=S,me=!1;else{S=Dm(C,b,ne,S,!1);const qt=w.listen(Xe,T,S);de.push(S,qt),$&&$.push(T,Le,At,At+1)}}else S=Dm(C,b,ne,S,!1);const De=C.outputs;let Ue;if(me&&null!==De&&(Ue=De[T])){const $e=Ue.length;if($e)for(let Xe=0;Xe<$e;Xe+=2){const Fn=b[Ue[Xe]][Ue[Xe+1]].subscribe(S),rd=de.length;de.push(S,Fn),$&&$.push(T,C.index,rd,-(rd+1))}}}function aT(_,b,w,C){try{return!1!==w(C)}catch(T){return Kb(_,T),!1}}function Dm(_,b,w,C,T){return function S(R){if(R===Function)return C;ip(2&_.flags?fi(_.index,b):b);let O=aT(b,0,C,R),F=S.__ngNextListenerFn__;for(;F;)O=aT(b,0,F,R)&&O,F=F.__ngNextListenerFn__;return T&&!1===O&&(R.preventDefault(),R.returnValue=!1),O}}function mw(_=1){return function Xu(_){return(be.lFrame.contextLView=function lc(_,b){for(;_>0;)b=b[15],_--;return b}(_,be.lFrame.contextLView))[8]}(_)}function sT(_,b){let w=null;const C=function Yh(_){const b=_.attrs;if(null!=b){const w=b.indexOf(5);if(0==(1&w))return b[w+1]}return null}(_);for(let T=0;T=0}const He={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Pt(_){return _.substring(He.key,He.keyEnd)}function lT(_,b){const w=He.textEnd;return w===b?-1:(b=He.keyEnd=function Cw(_,b,w){for(;b32;)b++;return b}(_,He.key=b,w),mu(_,b,w))}function mu(_,b,w){for(;b=0;w=lT(b,w))Yi(_,Pt(b),!0)}function Ma(_,b,w,C){const T=Ce(),S=lt(),R=Sr(2);S.firstUpdatePass&&xw(S,_,R,C),b!==Lt&&ir(T,R,b)&&mT(S,S.data[Ci()],T,T[11],_,T[R+1]=function _T(_,b){return null==_||("string"==typeof b?_+=b:"object"==typeof _&&(_=Y(kr(_)))),_}(b,w),C,R)}function Ea(_,b,w,C){const T=lt(),S=Sr(2);T.firstUpdatePass&&xw(T,null,S,C);const R=Ce();if(w!==Lt&&ir(R,S,w)){const L=T.data[Ci()];if(Um(L,C)&&!Tw(T,S)){let O=C?L.classesWithoutHost:L.stylesWithoutHost;null!==O&&(w=G(O,w||"")),dw(T,L,R,w,C)}else!function _u(_,b,w,C,T,S,R,L){T===Lt&&(T=et);let O=0,F=0,$=0=_.expandoStartIndex}function xw(_,b,w,C){const T=_.data;if(null===T[w+1]){const S=T[Ci()],R=Tw(_,w);Um(S,C)&&null===b&&!R&&(b=!1),b=function uT(_,b,w,C){const T=rc(_);let S=C?b.residualClasses:b.residualStyles;if(null===T)0===(C?b.classBindings:b.styleBindings)&&(w=Bc(w=Vm(null,_,b,w,C),b.attrs,C),S=null);else{const R=b.directiveStylingLast;if(-1===R||_[R]!==T)if(w=Vm(T,_,b,w,C),null===S){let O=function hT(_,b,w){const C=w?b.classBindings:b.styleBindings;if(0!==Es(C))return _[zi(C)]}(_,b,C);void 0!==O&&Array.isArray(O)&&(O=Vm(null,_,b,O[1],C),O=Bc(O,b.attrs,C),function pT(_,b,w,C){_[zi(w?b.classBindings:b.styleBindings)]=C}(_,b,C,O))}else S=function fT(_,b,w){let C;const T=b.directiveEnd;for(let S=1+b.directiveStylingLast;S0)&&(F=!0)}else $=w;if(T)if(0!==O){const de=zi(_[L+1]);_[C+1]=eu(de,L),0!==de&&(_[de+1]=Xf(_[de+1],C)),_[L+1]=function Cv(_,b){return 131071&_|b<<17}(_[L+1],C)}else _[C+1]=eu(L,0),0!==L&&(_[L+1]=Xf(_[L+1],C)),L=C;else _[C+1]=eu(O,0),0===L?L=C:_[O+1]=Xf(_[O+1],C),O=C;F&&(_[C+1]=Kf(_[C+1])),fu(_,$,C,!0),fu(_,$,C,!1),function Tt(_,b,w,C,T){const S=T?_.residualClasses:_.residualStyles;null!=S&&"string"==typeof b&&Fa(S,b)>=0&&(w[C+1]=em(w[C+1]))}(b,$,_,C,S),R=eu(L,O),S?b.classBindings=R:b.styleBindings=R}(T,S,b,w,R,C)}}function Vm(_,b,w,C,T){let S=null;const R=w.directiveEnd;let L=w.directiveStylingLast;for(-1===L?L=w.directiveStart:L++;L0;){const O=_[T],F=Array.isArray(O),$=F?O[1]:O,ne=null===$;let de=w[T+1];de===Lt&&(de=ne?et:void 0);let me=ne?ol(de,C):$===C?de:void 0;if(F&&!jm(me)&&(me=ol(O,C)),jm(me)&&(L=me,R))return L;const De=_[T+1];T=R?zi(De):Es(De)}if(null!==b){let O=S?b.residualClasses:b.residualStyles;null!=O&&(L=ol(O,C))}return L}function jm(_){return void 0!==_}function Um(_,b){return 0!=(_.flags&(b?16:32))}function Mw(_,b=""){const w=Ce(),C=lt(),T=_+22,S=C.firstCreatePass?yl(C,T,1,b,null):C.data[T],R=w[T]=function ub(_,b){return _.createText(b)}(w[11],b);Yf(C,w,R,S),Pn(S,!1)}function ta(_){return fp("",_,""),ta}function fp(_,b,w){const C=Ce(),T=xa(C,_,b,w);return T!==Lt&&Aa(C,Ci(),T),fp}function Nm(_,b,w,C,T){const S=Ce(),R=function Ir(_,b,w,C,T,S){const L=Pc(_,nn(),w,T);return Sr(2),L?b+ye(w)+C+ye(T)+S:Lt}(S,_,b,w,C,T);return R!==Lt&&Aa(S,Ci(),R),Nm}function bu(_,b,w,C,T,S,R,L,O,F,$){const ne=Ce(),de=hu(ne,_,b,w,C,T,S,R,L,O,F,$);return de!==Lt&&Aa(ne,Ci(),de),bu}function Hw(_,b,w){Ea(Yi,Xa,xa(Ce(),_,b,w),!0)}function gp(_,b,w){const C=Ce();return ir(C,Ks(),b)&&Xr(lt(),Qt(),C,_,b,C[11],w,!0),gp}function Vc(_,b,w){const C=Ce();if(ir(C,Ks(),b)){const S=lt(),R=Qt();Xr(S,R,C,_,b,ou(rc(S.data),R,C),w,!0)}return Vc}const vo=void 0;var Ow=["en",[["a","p"],["AM","PM"],vo],[["AM","PM"],vo,vo],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],vo,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],vo,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",vo,"{1} 'at' {0}",vo],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Iw(_){const w=Math.floor(Math.abs(_)),C=_.toString().replace(/^[^.]*\.?/,"").length;return 1===w&&0===C?1:5}];let Rl={};function _p(_){const b=function Vw(_){return _.toLowerCase().replace(/_/g,"-")}(_);let w=Km(b);if(w)return w;const C=b.split("-")[0];if(w=Km(C),w)return w;if("en"===C)return Ow;throw new re(701,!1)}function bp(_){return _p(_)[bt.PluralCase]}function Km(_){return _ in Rl||(Rl[_]=pe.ng&&pe.ng.common&&pe.ng.common.locales&&pe.ng.common.locales[_]),Rl[_]}var bt=(()=>((bt=bt||{})[bt.LocaleId=0]="LocaleId",bt[bt.DayPeriodsFormat=1]="DayPeriodsFormat",bt[bt.DayPeriodsStandalone=2]="DayPeriodsStandalone",bt[bt.DaysFormat=3]="DaysFormat",bt[bt.DaysStandalone=4]="DaysStandalone",bt[bt.MonthsFormat=5]="MonthsFormat",bt[bt.MonthsStandalone=6]="MonthsStandalone",bt[bt.Eras=7]="Eras",bt[bt.FirstDayOfWeek=8]="FirstDayOfWeek",bt[bt.WeekendRange=9]="WeekendRange",bt[bt.DateFormat=10]="DateFormat",bt[bt.TimeFormat=11]="TimeFormat",bt[bt.DateTimeFormat=12]="DateTimeFormat",bt[bt.NumberSymbols=13]="NumberSymbols",bt[bt.NumberFormats=14]="NumberFormats",bt[bt.CurrencyCode=15]="CurrencyCode",bt[bt.CurrencySymbol=16]="CurrencySymbol",bt[bt.CurrencyName=17]="CurrencyName",bt[bt.Currencies=18]="Currencies",bt[bt.Directionality=19]="Directionality",bt[bt.PluralCase=20]="PluralCase",bt[bt.ExtraData=21]="ExtraData",bt))();const Rs="en-US";let eg=Rs;function Tp(_,b,w,C,T){if(_=ae(_),Array.isArray(_))for(let S=0;S<_.length;S++)Tp(_[S],b,w,C,T);else{const S=lt(),R=Ce();let L=co(_)?_:ae(_.provide),O=Q_(_);const F=un(),$=1048575&F.providerIndexes,ne=F.directiveStart,de=F.providerIndexes>>20;if(co(_)||!_.multi){const me=new ki(O,T,Ms),De=xp(L,b,T?$:$+de,ne);-1===De?(Sd(ja(F,R),S,L),bg(S,_,b.length),b.push(L),F.directiveStart++,F.directiveEnd++,T&&(F.providerIndexes+=1048576),w.push(me),R.push(me)):(w[De]=me,R[De]=me)}else{const me=xp(L,b,$+de,ne),De=xp(L,b,$,$+de),Ue=me>=0&&w[me],$e=De>=0&&w[De];if(T&&!$e||!T&&!Ue){Sd(ja(F,R),S,L);const Xe=function Zw(_,b,w,C,T){const S=new ki(_,w,Ms);return S.multi=[],S.index=b,S.componentProviders=0,JT(S,T,C&&!w),S}(T?Jw:ZT,w.length,T,C,O);!T&&$e&&(w[De].providerFactory=Xe),bg(S,_,b.length,0),b.push(L),F.directiveStart++,F.directiveEnd++,T&&(F.providerIndexes+=1048576),w.push(Xe),R.push(Xe)}else bg(S,_,me>-1?me:De,JT(w[T?De:me],O,!T&&C));!T&&C&&$e&&w[De].componentProviders++}}}function bg(_,b,w,C){const T=co(b),S=function AA(_){return!!_.useClass}(b);if(T||S){const O=(S?ae(b.useClass):b).prototype.ngOnDestroy;if(O){const F=_.destroyHooks||(_.destroyHooks=[]);if(!T&&b.multi){const $=F.indexOf(w);-1===$?F.push(w,[C,O]):F[$+1].push(C,O)}else F.push(w,O)}}}function JT(_,b,w){return w&&_.componentProviders++,_.multi.push(b)-1}function xp(_,b,w,C){for(let T=w;T{w.providersResolver=(C,T)=>function $T(_,b,w){const C=lt();if(C.firstCreatePass){const T=Hi(_);Tp(w,C.data,C.blueprint,T,!0),Tp(b,C.data,C.blueprint,T,!1)}}(C,T?T(_):_,b)}}class Nc{}class _r{}function QT(_,b){return new Qw(_,b??null)}class Qw extends Nc{constructor(b,w){super(),this._parent=w,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Dc(this);const C=qe(b);this._bootstrapComponents=fo(C.bootstrap),this._r3Injector=dv(b,w,[{provide:Nc,useValue:this},{provide:Tc,useValue:this.componentFactoryResolver}],Y(b),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(b)}get injector(){return this._r3Injector}destroy(){const b=this._r3Injector;!b.destroyed&&b.destroy(),this.destroyCbs.forEach(w=>w()),this.destroyCbs=null}onDestroy(b){this.destroyCbs.push(b)}}class Hu extends _r{constructor(b){super(),this.moduleType=b}create(b){return new Qw(this.moduleType,b)}}class KT extends Nc{constructor(b,w,C){super(),this.componentFactoryResolver=new Dc(this),this.instance=null;const T=new J_([...b,{provide:Nc,useValue:this},{provide:Tc,useValue:this.componentFactoryResolver}],w||Ih(),C,new Set(["environment"]));this.injector=T,T.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(b){this.injector.onDestroy(b)}}function Pu(_,b,w=null){return new KT(_,b,w).injector}function Cg(_,b,w){const C=jn()+_,T=Ce();return T[C]===Lt?nr(T,C,w?b.call(w):b()):function sp(_,b){return _[b]}(T,C)}function oy(_,b,w,C){return uy(Ce(),jn(),_,b,w,C)}function ly(_,b,w,C,T){return Ag(Ce(),jn(),_,b,w,C,T)}function qc(_,b){const w=_[b];return w===Lt?void 0:w}function uy(_,b,w,C,T,S){const R=b+w;return ir(_,R,T)?nr(_,R+1,S?C.call(S,T):C(T)):qc(_,R+1)}function Ag(_,b,w,C,T,S,R){const L=b+w;return Pc(_,L,T,S)?nr(_,L+2,R?C.call(R,T,S):C(T,S)):qc(_,L+2)}function c0(_,b,w,C,T,S,R,L){const O=b+w;return function vm(_,b,w,C,T){const S=Pc(_,b,w,C);return ir(_,b+2,T)||S}(_,O,T,S,R)?nr(_,O+3,L?C.call(L,T,S,R):C(T,S,R)):qc(_,O+3)}function vg(_,b){const w=lt();let C;const T=_+22;w.firstCreatePass?(C=function Tg(_,b){if(b)for(let w=b.length-1;w>=0;w--){const C=b[w];if(_===C.name)return C}}(b,w.pipeRegistry),w.data[T]=C,C.onDestroy&&(w.destroyHooks||(w.destroyHooks=[])).push(T,C.onDestroy)):C=w.data[T];const S=C.factory||(C.factory=ha(C.type)),R=Wt(Ms);try{const L=_s(!1),O=S();return _s(L),function iT(_,b,w,C){w>=_.data.length&&(_.data[w]=null,_.blueprint[w]=null),b[w]=C}(w,Ce(),T,O),O}finally{Wt(R)}}function xg(_,b,w){const C=_+22,T=Ce(),S=Qs(T,C);return Dp(T,C)?uy(T,jn(),b,S.transform,w,S):S.transform(w)}function h0(_,b,w,C){const T=_+22,S=Ce(),R=Qs(S,T);return Dp(S,T)?Ag(S,jn(),b,R.transform,w,C,R):R.transform(w,C)}function p0(_,b,w,C,T){const S=_+22,R=Ce(),L=Qs(R,S);return Dp(R,S)?c0(R,jn(),b,L.transform,w,C,T,L):L.transform(w,C,T)}function Dp(_,b){return _[1].data[b].pure}function py(_){return b=>{setTimeout(_,void 0,b)}}const is=class m0 extends x.x{constructor(b=!1){super(),this.__isAsync=b}emit(b){super.next(b)}subscribe(b,w,C){let T=b,S=w||(()=>null),R=C;if(b&&"object"==typeof b){const O=b;T=O.next?.bind(O),S=O.error?.bind(O),R=O.complete?.bind(O)}this.__isAsync&&(S=py(S),T&&(T=py(T)),R&&(R=py(R)));const L=super.subscribe({next:T,error:S,complete:R});return b instanceof n.w0&&b.add(L),L}};function g0(){return this._results[Sl()]()}class Hp{constructor(b=!1){this._emitDistinctChangesOnly=b,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const w=Sl(),C=Hp.prototype;C[w]||(C[w]=g0)}get changes(){return this._changes||(this._changes=new is)}get(b){return this._results[b]}map(b){return this._results.map(b)}filter(b){return this._results.filter(b)}find(b){return this._results.find(b)}reduce(b,w){return this._results.reduce(b,w)}forEach(b){this._results.forEach(b)}some(b){return this._results.some(b)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(b,w){const C=this;C.dirty=!1;const T=zn(b);(this._changesDetected=!function Rd(_,b,w){if(_.length!==b.length)return!1;for(let C=0;C<_.length;C++){let T=_[C],S=b[C];if(w&&(T=w(T),S=w(S)),S!==T)return!1}return!0}(C._results,T,w))&&(C._results=T,C.length=T.length,C.last=T[this.length-1],C.first=T[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}let ku=(()=>{class _{}return _.__NG_ELEMENT_ID__=w0,_})();const _0=ku,b0=class extends _0{constructor(b,w,C){super(),this._declarationLView=b,this._declarationTContainer=w,this.elementRef=C}createEmbeddedView(b,w){const C=this._declarationTContainer.tViews,T=Ca(this._declarationLView,C,b,16,null,C.declTNode,null,null,null,null,w||null);T[17]=this._declarationLView[this._declarationTContainer.index];const R=this._declarationLView[19];return null!==R&&(T[19]=R.createEmbeddedView(C)),Cl(C,T,b),new cu(T)}};function w0(){return Pp(un(),Ce())}function Pp(_,b){return 4&_.type?new b0(b,_,$a(_,b)):null}let Rp=(()=>{class _{}return _.__NG_ELEMENT_ID__=fy,_})();function fy(){return Gc(un(),Ce())}const uE=Rp,y0=class extends uE{constructor(b,w,C){super(),this._lContainer=b,this._hostTNode=w,this._hostLView=C}get element(){return $a(this._hostTNode,this._hostLView)}get injector(){return new ro(this._hostTNode,this._hostLView)}get parentInjector(){const b=no(this._hostTNode,this._hostLView);if(Ad(b)){const w=to(b,this._hostLView),C=gs(b);return new ro(w[1].data[C+8],w)}return new ro(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(b){const w=C0(this._lContainer);return null!==w&&w[b]||null}get length(){return this._lContainer.length-10}createEmbeddedView(b,w,C){let T,S;"number"==typeof C?T=C:null!=C&&(T=C.index,S=C.injector);const R=b.createEmbeddedView(w||{},S);return this.insert(R,T),R}createComponent(b,w,C,T,S){const R=b&&!function so(_){return"function"==typeof _}(b);let L;if(R)L=w;else{const ne=w||{};L=ne.index,C=ne.injector,T=ne.projectableNodes,S=ne.environmentInjector||ne.ngModuleRef}const O=R?b:new uu($t(b)),F=C||this.parentInjector;if(!S&&null==O.ngModule){const de=(R?F:this.parentInjector).get(gl,null);de&&(S=de)}const $=O.create(F,T,void 0,S);return this.insert($.hostView,L),$}insert(b,w){const C=b._lView,T=C[1];if(function N(_){return Di(_[3])}(C)){const $=this.indexOf(b);if(-1!==$)this.detach($);else{const ne=C[3],de=new y0(ne,ne[6],ne[3]);de.detach(de.indexOf(b))}}const S=this._adjustIndex(w),R=this._lContainer;!function xM(_,b,w,C){const T=10+C,S=w.length;C>0&&(w[T-1][4]=b),C0)C.push(R[L/2]);else{const F=S[L+1],$=b[-O];for(let ne=10;ne<$.length;ne++){const de=$[ne];de[17]===de[3]&&Dg(de[1],de,F,C)}if(null!==$[9]){const ne=$[9];for(let de=0;de{class _{constructor(w){this.appInits=w,this.resolve=Np,this.reject=Np,this.initialized=!1,this.done=!1,this.donePromise=new Promise((C,T)=>{this.resolve=C,this.reject=T})}runInitializers(){if(this.initialized)return;const w=[],C=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let T=0;T{S.subscribe({complete:L,error:O})});w.push(R)}}Promise.all(w).then(()=>{C()}).catch(T=>{this.reject(T)}),0===w.length&&C(),this.initialized=!0}}return _.\u0275fac=function(w){return new(w||_)(Tn(Fg,8))},_.\u0275prov=Xt({token:_,factory:_.\u0275fac,providedIn:"root"}),_})();const xo=new pn("AppId",{providedIn:"root",factory:function My(){return`${ed()}${ed()}${ed()}`}});function ed(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Yg=new pn("Platform Initializer"),G0=new pn("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Ey=new pn("appBootstrapListener"),W0=new pn("AnimationModuleType");let $0=(()=>{class _{log(w){console.log(w)}warn(w){console.warn(w)}}return _.\u0275fac=function(w){return new(w||_)},_.\u0275prov=Xt({token:_,factory:_.\u0275fac,providedIn:"platform"}),_})();const Fp=new pn("LocaleId",{providedIn:"root",factory:()=>wh(Fp,pt.Optional|pt.SkipSelf)||function Dy(){return typeof $localize<"u"&&$localize.locale||Rs}()}),J0=new pn("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class Q0{constructor(b,w){this.ngModuleFactory=b,this.componentFactories=w}}let K0=(()=>{class _{compileModuleSync(w){return new Hu(w)}compileModuleAsync(w){return Promise.resolve(this.compileModuleSync(w))}compileModuleAndAllComponentsSync(w){const C=this.compileModuleSync(w),S=fo(qe(w).declarations).reduce((R,L)=>{const O=$t(L);return O&&R.push(new uu(O)),R},[]);return new Q0(C,S)}compileModuleAndAllComponentsAsync(w){return Promise.resolve(this.compileModuleAndAllComponentsSync(w))}clearCache(){}clearCacheFor(w){}getModuleId(w){}}return _.\u0275fac=function(w){return new(w||_)},_.\u0275prov=Xt({token:_,factory:_.\u0275fac,providedIn:"root"}),_})();const X0=(()=>Promise.resolve(0))();function zg(_){typeof Zone>"u"?X0.then(()=>{_&&_.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",_)}class br{constructor({enableLongStackTrace:b=!1,shouldCoalesceEventChangeDetection:w=!1,shouldCoalesceRunChangeDetection:C=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new is(!1),this.onMicrotaskEmpty=new is(!1),this.onStable=new is(!1),this.onError=new is(!1),typeof Zone>"u")throw new re(908,!1);Zone.assertZonePatched();const T=this;if(T._nesting=0,T._outer=T._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const S=Zone.AsyncStackTaggingZoneSpec;T._inner=T._inner.fork(new S("Angular"))}Zone.TaskTrackingZoneSpec&&(T._inner=T._inner.fork(new Zone.TaskTrackingZoneSpec)),b&&Zone.longStackTraceZoneSpec&&(T._inner=T._inner.fork(Zone.longStackTraceZoneSpec)),T.shouldCoalesceEventChangeDetection=!C&&w,T.shouldCoalesceRunChangeDetection=C,T.lastRequestAnimationFrameId=-1,T.nativeRequestAnimationFrame=function ex(){let _=pe.requestAnimationFrame,b=pe.cancelAnimationFrame;if(typeof Zone<"u"&&_&&b){const w=_[Zone.__symbol__("OriginalDelegate")];w&&(_=w);const C=b[Zone.__symbol__("OriginalDelegate")];C&&(b=C)}return{nativeRequestAnimationFrame:_,nativeCancelAnimationFrame:b}}().nativeRequestAnimationFrame,function td(_){const b=()=>{!function tx(_){_.isCheckStableRunning||-1!==_.lastRequestAnimationFrameId||(_.lastRequestAnimationFrameId=_.nativeRequestAnimationFrame.call(pe,()=>{_.fakeTopEventTask||(_.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{_.lastRequestAnimationFrameId=-1,$g(_),_.isCheckStableRunning=!0,Wg(_),_.isCheckStableRunning=!1},void 0,()=>{},()=>{})),_.fakeTopEventTask.invoke()}),$g(_))}(_)};_._inner=_._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(w,C,T,S,R,L)=>{try{return nd(_),w.invokeTask(T,S,R,L)}finally{(_.shouldCoalesceEventChangeDetection&&"eventTask"===S.type||_.shouldCoalesceRunChangeDetection)&&b(),Py(_)}},onInvoke:(w,C,T,S,R,L,O)=>{try{return nd(_),w.invoke(T,S,R,L,O)}finally{_.shouldCoalesceRunChangeDetection&&b(),Py(_)}},onHasTask:(w,C,T,S)=>{w.hasTask(T,S),C===T&&("microTask"==S.change?(_._hasPendingMicrotasks=S.microTask,$g(_),Wg(_)):"macroTask"==S.change&&(_.hasPendingMacrotasks=S.macroTask))},onHandleError:(w,C,T,S)=>(w.handleError(T,S),_.runOutsideAngular(()=>_.onError.emit(S)),!1)})}(T)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!br.isInAngularZone())throw new re(909,!1)}static assertNotInAngularZone(){if(br.isInAngularZone())throw new re(909,!1)}run(b,w,C){return this._inner.run(b,w,C)}runTask(b,w,C,T){const S=this._inner,R=S.scheduleEventTask("NgZoneEvent: "+T,b,Gg,Np,Np);try{return S.runTask(R,w,C)}finally{S.cancelTask(R)}}runGuarded(b,w,C){return this._inner.runGuarded(b,w,C)}runOutsideAngular(b){return this._outer.run(b)}}const Gg={};function Wg(_){if(0==_._nesting&&!_.hasPendingMicrotasks&&!_.isStable)try{_._nesting++,_.onMicrotaskEmpty.emit(null)}finally{if(_._nesting--,!_.hasPendingMicrotasks)try{_.runOutsideAngular(()=>_.onStable.emit(null))}finally{_.isStable=!0}}}function $g(_){_.hasPendingMicrotasks=!!(_._hasPendingMicrotasks||(_.shouldCoalesceEventChangeDetection||_.shouldCoalesceRunChangeDetection)&&-1!==_.lastRequestAnimationFrameId)}function nd(_){_._nesting++,_.isStable&&(_.isStable=!1,_.onUnstable.emit(null))}function Py(_){_._nesting--,Wg(_)}class nx{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new is,this.onMicrotaskEmpty=new is,this.onStable=new is,this.onError=new is}run(b,w,C){return b.apply(w,C)}runGuarded(b,w,C){return b.apply(w,C)}runOutsideAngular(b){return b()}runTask(b,w,C,T){return b.apply(w,C)}}const si=new pn(""),Ry=new pn("");let Iy,wr=(()=>{class _{constructor(w,C,T){this._ngZone=w,this.registry=C,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Iy||(function Ly(_){Iy=_}(T),T.addToWindow(C)),this._watchAngularEvents(),w.run(()=>{this.taskTrackingZone=typeof Zone>"u"?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:()=>{br.assertNotInAngularZone(),zg(()=>{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())zg(()=>{for(;0!==this._callbacks.length;){let w=this._callbacks.pop();clearTimeout(w.timeoutId),w.doneCb(this._didWork)}this._didWork=!1});else{let w=this.getPendingTasks();this._callbacks=this._callbacks.filter(C=>!C.updateCb||!C.updateCb(w)||(clearTimeout(C.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(w=>({source:w.source,creationLocation:w.creationLocation,data:w.data})):[]}addCallback(w,C,T){let S=-1;C&&C>0&&(S=setTimeout(()=>{this._callbacks=this._callbacks.filter(R=>R.timeoutId!==S),w(this._didWork,this.getPendingTasks())},C)),this._callbacks.push({doneCb:w,timeoutId:S,updateCb:T})}whenStable(w,C,T){if(T&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(w,C,T),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(w){this.registry.registerApplication(w,this)}unregisterApplication(w){this.registry.unregisterApplication(w)}findProviders(w,C,T){return[]}}return _.\u0275fac=function(w){return new(w||_)(Tn(br),Tn(ky),Tn(Ry))},_.\u0275prov=Xt({token:_,factory:_.\u0275fac}),_})(),ky=(()=>{class _{constructor(){this._applications=new Map}registerApplication(w,C){this._applications.set(w,C)}unregisterApplication(w){this._applications.delete(w)}unregisterAllApplications(){this._applications.clear()}getTestability(w){return this._applications.get(w)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(w,C=!0){return Iy?.findTestabilityInTree(this,w,C)??null}}return _.\u0275fac=function(w){return new(w||_)},_.\u0275prov=Xt({token:_,factory:_.\u0275fac,providedIn:"platform"}),_})(),So=null;const Oy=new pn("AllowMultipleToken"),Jg=new pn("PlatformDestroyListeners");class Oi{constructor(b,w){this.name=b,this.token=w}}function Vy(_,b,w=[]){const C=`Platform: ${b}`,T=new pn(C);return(S=[])=>{let R=jy();if(!R||R.injector.get(Oy,!1)){const L=[...w,...S,{provide:T,useValue:!0}];_?_(L):function $i(_){if(So&&!So.get(Oy,!1))throw new re(400,!1);So=_;const b=_.get(rx);(function By(_){const b=_.get(Yg,null);b&&b.forEach(w=>w())})(_)}(function ix(_=[],b){return go.create({name:b,providers:[{provide:Rf,useValue:"platform"},{provide:Jg,useValue:new Set([()=>So=null])},..._]})}(L,C))}return function jl(_){const b=jy();if(!b)throw new re(401,!1);return b}()}}function jy(){return So?.get(rx)??null}let rx=(()=>{class _{constructor(w){this._injector=w,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(w,C){const T=function EE(_,b){let w;return w="noop"===_?new nx:("zone.js"===_?void 0:_)||new br(b),w}(C?.ngZone,function ax(_){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!_||!_.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!_||!_.ngZoneRunCoalescing)||!1}}(C)),S=[{provide:br,useValue:T}];return T.run(()=>{const R=go.create({providers:S,parent:this.injector,name:w.moduleType.name}),L=w.create(R),O=L.injector.get(Zr,null);if(!O)throw new re(402,!1);return T.runOutsideAngular(()=>{const F=T.onError.subscribe({next:$=>{O.handleError($)}});L.onDestroy(()=>{Kg(this._modules,L),F.unsubscribe()})}),function Uy(_,b,w){try{const C=w();return dp(C)?C.catch(T=>{throw b.runOutsideAngular(()=>_.handleError(T)),T}):C}catch(C){throw b.runOutsideAngular(()=>_.handleError(C)),C}}(O,T,()=>{const F=L.injector.get(rs);return F.runInitializers(),F.donePromise.then(()=>(function xT(_){Kt(_,"Expected localeId to be defined"),"string"==typeof _&&(eg=_.toLowerCase().replace(/_/g,"-"))}(L.injector.get(Fp,Rs)||Rs),this._moduleDoBootstrap(L),L))})})}bootstrapModule(w,C=[]){const T=Ny({},C);return function oi(_,b,w){const C=new Hu(w);return Promise.resolve(C)}(0,0,w).then(S=>this.bootstrapModuleFactory(S,T))}_moduleDoBootstrap(w){const C=w.injector.get(Qg);if(w._bootstrapComponents.length>0)w._bootstrapComponents.forEach(T=>C.bootstrap(T));else{if(!w.instance.ngDoBootstrap)throw new re(403,!1);w.instance.ngDoBootstrap(C)}this._modules.push(w)}onDestroy(w){this._destroyListeners.push(w)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new re(404,!1);this._modules.slice().forEach(C=>C.destroy()),this._destroyListeners.forEach(C=>C());const w=this._injector.get(Jg,null);w&&(w.forEach(C=>C()),w.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return _.\u0275fac=function(w){return new(w||_)(Tn(go))},_.\u0275prov=Xt({token:_,factory:_.\u0275fac,providedIn:"platform"}),_})();function Ny(_,b){return Array.isArray(b)?b.reduce(Ny,_):{..._,...b}}let Qg=(()=>{class _{constructor(w,C,T){this._zone=w,this._injector=C,this._exceptionHandler=T,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const S=new P.y(L=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{L.next(this._stable),L.complete()})}),R=new P.y(L=>{let O;this._zone.runOutsideAngular(()=>{O=this._zone.onStable.subscribe(()=>{br.assertNotInAngularZone(),zg(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,L.next(!0))})})});const F=this._zone.onUnstable.subscribe(()=>{br.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{L.next(!1)}))});return()=>{O.unsubscribe(),F.unsubscribe()}});this.isStable=(0,D.T)(S,R.pipe((0,H.B)()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(w,C){const T=w instanceof MA;if(!this._injector.get(rs).done)throw!T&&Qc(w),new re(405,false);let R;R=T?w:this._injector.get(Tc).resolveComponentFactory(w),this.componentTypes.push(R.componentType);const L=function ME(_){return _.isBoundToModule}(R)?void 0:this._injector.get(Nc),F=R.create(go.NULL,[],C||R.selector,L),$=F.location.nativeElement,ne=F.injector.get(si,null);return ne?.registerApplication($),F.onDestroy(()=>{this.detachView(F.hostView),Kg(this.components,F),ne?.unregisterApplication($)}),this._loadComponent(F),F}tick(){if(this._runningTick)throw new re(101,!1);try{this._runningTick=!0;for(let w of this._views)w.detectChanges()}catch(w){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(w))}finally{this._runningTick=!1}}attachView(w){const C=w;this._views.push(C),C.attachToAppRef(this)}detachView(w){const C=w;Kg(this._views,C),C.detachFromAppRef()}_loadComponent(w){this.attachView(w.hostView),this.tick(),this.components.push(w),this._injector.get(Ey,[]).concat(this._bootstrapListeners).forEach(T=>T(w))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(w=>w()),this._views.slice().forEach(w=>w.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(w){return this._destroyListeners.push(w),()=>Kg(this._destroyListeners,w)}destroy(){if(this._destroyed)throw new re(406,!1);const w=this._injector;w.destroy&&!w.destroyed&&w.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return _.\u0275fac=function(w){return new(w||_)(Tn(br),Tn(gl),Tn(Zr))},_.\u0275prov=Xt({token:_,factory:_.\u0275fac,providedIn:"root"}),_})();function Kg(_,b){const w=_.indexOf(b);w>-1&&_.splice(w,1)}let zp=!0;function DE(){zp=!1}let lx=(()=>{class _{}return _.__NG_ELEMENT_ID__=HE,_})();function HE(_){return function PE(_,b,w){if(qr(_)&&!w){const C=fi(_.index,b);return new cu(C,C)}return 47&_.type?new cu(b[16],b):null}(un(),Ce(),16==(16&_))}class hx{constructor(){}supports(b){return Hc(b)}create(b){return new BE(b)}}const OE=(_,b)=>b;class BE{constructor(b){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=b||OE}forEachItem(b){let w;for(w=this._itHead;null!==w;w=w._next)b(w)}forEachOperation(b){let w=this._itHead,C=this._removalsHead,T=0,S=null;for(;w||C;){const R=!C||w&&w.currentIndex{R=this._trackByFn(T,L),null!==w&&Object.is(w.trackById,R)?(C&&(w=this._verifyReinsertion(w,L,R,T)),Object.is(w.item,L)||this._addIdentityChange(w,L)):(w=this._mismatch(w,L,R,T),C=!0),w=w._next,T++}),this.length=T;return this._truncate(w),this.collection=b,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let b;for(b=this._previousItHead=this._itHead;null!==b;b=b._next)b._nextPrevious=b._next;for(b=this._additionsHead;null!==b;b=b._nextAdded)b.previousIndex=b.currentIndex;for(this._additionsHead=this._additionsTail=null,b=this._movesHead;null!==b;b=b._nextMoved)b.previousIndex=b.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(b,w,C,T){let S;return null===b?S=this._itTail:(S=b._prev,this._remove(b)),null!==(b=null===this._unlinkedRecords?null:this._unlinkedRecords.get(C,null))?(Object.is(b.item,w)||this._addIdentityChange(b,w),this._reinsertAfter(b,S,T)):null!==(b=null===this._linkedRecords?null:this._linkedRecords.get(C,T))?(Object.is(b.item,w)||this._addIdentityChange(b,w),this._moveAfter(b,S,T)):b=this._addAfter(new Gy(w,C),S,T),b}_verifyReinsertion(b,w,C,T){let S=null===this._unlinkedRecords?null:this._unlinkedRecords.get(C,null);return null!==S?b=this._reinsertAfter(S,b._prev,T):b.currentIndex!=T&&(b.currentIndex=T,this._addToMoves(b,T)),b}_truncate(b){for(;null!==b;){const w=b._next;this._addToRemovals(this._unlink(b)),b=w}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(b,w,C){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(b);const T=b._prevRemoved,S=b._nextRemoved;return null===T?this._removalsHead=S:T._nextRemoved=S,null===S?this._removalsTail=T:S._prevRemoved=T,this._insertAfter(b,w,C),this._addToMoves(b,C),b}_moveAfter(b,w,C){return this._unlink(b),this._insertAfter(b,w,C),this._addToMoves(b,C),b}_addAfter(b,w,C){return this._insertAfter(b,w,C),this._additionsTail=null===this._additionsTail?this._additionsHead=b:this._additionsTail._nextAdded=b,b}_insertAfter(b,w,C){const T=null===w?this._itHead:w._next;return b._next=T,b._prev=w,null===T?this._itTail=b:T._prev=b,null===w?this._itHead=b:w._next=b,null===this._linkedRecords&&(this._linkedRecords=new Wy),this._linkedRecords.put(b),b.currentIndex=C,b}_remove(b){return this._addToRemovals(this._unlink(b))}_unlink(b){null!==this._linkedRecords&&this._linkedRecords.remove(b);const w=b._prev,C=b._next;return null===w?this._itHead=C:w._next=C,null===C?this._itTail=w:C._prev=w,b}_addToMoves(b,w){return b.previousIndex===w||(this._movesTail=null===this._movesTail?this._movesHead=b:this._movesTail._nextMoved=b),b}_addToRemovals(b){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Wy),this._unlinkedRecords.put(b),b.currentIndex=null,b._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=b,b._prevRemoved=null):(b._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=b),b}_addIdentityChange(b,w){return b.item=w,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=b:this._identityChangesTail._nextIdentityChange=b,b}}class Gy{constructor(b,w){this.item=b,this.trackById=w,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 VE{constructor(){this._head=null,this._tail=null}add(b){null===this._head?(this._head=this._tail=b,b._nextDup=null,b._prevDup=null):(this._tail._nextDup=b,b._prevDup=this._tail,b._nextDup=null,this._tail=b)}get(b,w){let C;for(C=this._head;null!==C;C=C._nextDup)if((null===w||w<=C.currentIndex)&&Object.is(C.trackById,b))return C;return null}remove(b){const w=b._prevDup,C=b._nextDup;return null===w?this._head=C:w._nextDup=C,null===C?this._tail=w:C._prevDup=w,null===this._head}}class Wy{constructor(){this.map=new Map}put(b){const w=b.trackById;let C=this.map.get(w);C||(C=new VE,this.map.set(w,C)),C.add(b)}get(b,w){const T=this.map.get(b);return T?T.get(b,w):null}remove(b){const w=b.trackById;return this.map.get(w).remove(b)&&this.map.delete(w),b}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function px(_,b,w){const C=_.previousIndex;if(null===C)return C;let T=0;return w&&C{if(w&&w.key===T)this._maybeAddToChanges(w,C),this._appendAfter=w,w=w._next;else{const S=this._getOrCreateRecordForKey(T,C);w=this._insertBeforeOrAppend(w,S)}}),w){w._prev&&(w._prev._next=null),this._removalsHead=w;for(let C=w;null!==C;C=C._nextRemoved)C===this._mapHead&&(this._mapHead=null),this._records.delete(C.key),C._nextRemoved=C._next,C.previousValue=C.currentValue,C.currentValue=null,C._prev=null,C._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(b,w){if(b){const C=b._prev;return w._next=b,w._prev=C,b._prev=w,C&&(C._next=w),b===this._mapHead&&(this._mapHead=w),this._appendAfter=b,b}return this._appendAfter?(this._appendAfter._next=w,w._prev=this._appendAfter):this._mapHead=w,this._appendAfter=w,null}_getOrCreateRecordForKey(b,w){if(this._records.has(b)){const T=this._records.get(b);this._maybeAddToChanges(T,w);const S=T._prev,R=T._next;return S&&(S._next=R),R&&(R._prev=S),T._next=null,T._prev=null,T}const C=new $y(b);return this._records.set(b,C),C.currentValue=w,this._addToAdditions(C),C}_reset(){if(this.isDirty){let b;for(this._previousMapHead=this._mapHead,b=this._previousMapHead;null!==b;b=b._next)b._nextPrevious=b._next;for(b=this._changesHead;null!==b;b=b._nextChanged)b.previousValue=b.currentValue;for(b=this._additionsHead;null!=b;b=b._nextAdded)b.previousValue=b.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(b,w){Object.is(w,b.currentValue)||(b.previousValue=b.currentValue,b.currentValue=w,this._addToChanges(b))}_addToAdditions(b){null===this._additionsHead?this._additionsHead=this._additionsTail=b:(this._additionsTail._nextAdded=b,this._additionsTail=b)}_addToChanges(b){null===this._changesHead?this._changesHead=this._changesTail=b:(this._changesTail._nextChanged=b,this._changesTail=b)}_forEach(b,w){b instanceof Map?b.forEach(w):Object.keys(b).forEach(C=>w(b[C],C))}}class $y{constructor(b){this.key=b,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Jy(){return new e_([new hx])}let e_=(()=>{class _{constructor(w){this.factories=w}static create(w,C){if(null!=C){const T=C.factories.slice();w=w.concat(T)}return new _(w)}static extend(w){return{provide:_,useFactory:C=>_.create(w,C||Jy()),deps:[[_,new qa,new ul]]}}find(w){const C=this.factories.find(T=>T.supports(w));if(null!=C)return C;throw new re(901,!1)}}return _.\u0275prov=Xt({token:_,providedIn:"root",factory:Jy}),_})();function gx(){return new Zy([new fx])}let Zy=(()=>{class _{constructor(w){this.factories=w}static create(w,C){if(C){const T=C.factories.slice();w=w.concat(T)}return new _(w)}static extend(w){return{provide:_,useFactory:C=>_.create(w,C||gx()),deps:[[_,new qa,new ul]]}}find(w){const C=this.factories.find(T=>T.supports(w));if(C)return C;throw new re(901,!1)}}return _.\u0275prov=Xt({token:_,providedIn:"root",factory:gx}),_})();const NE=Vy(null,"core",[]);let bx=(()=>{class _{constructor(w){}}return _.\u0275fac=function(w){return new(w||_)(Tn(Qg))},_.\u0275mod=vr({type:_}),_.\u0275inj=En({}),_})();function FE(_){return"boolean"==typeof _?_:null!=_&&"false"!==_}},1214:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Ct:()=>OAuthService,Hy:()=>OAuthStorage,zr:()=>OAuthModule});var _home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5861),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(4650),_angular_common__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(6895),_angular_common_http__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(529),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(7579),rxjs__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(9646),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(2076),rxjs__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(102),rxjs__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(2843),rxjs__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(9841),rxjs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(6451),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(9300),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(8505),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(8372),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(1005),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(3900),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(4004),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(590),rxjs_operators__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(262),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(7414),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(5698),rxjs_operators__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(5577),fast_sha256__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1302);class DateTimeProvider{}let SystemDateTimeProvider=(()=>{class z extends DateTimeProvider{now(){return Date.now()}new(){return new Date}}return z.\u0275fac=function(){let W;return function(x){return(W||(W=_angular_core__WEBPACK_IMPORTED_MODULE_1__.n5z(z)))(x||z)}}(),z.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:z,factory:z.\u0275fac}),z})();class LoginOptions{constructor(){this.disableNonceCheck=!1,this.preventClearHashAfterLogin=!1}}class OAuthLogger{}class OAuthStorage{}let MemoryStorage=(()=>{class z{constructor(){this.data=new Map}getItem(E){return this.data.get(E)}removeItem(E){this.data.delete(E)}setItem(E,x){this.data.set(E,x)}}return z.\u0275fac=function(E){return new(E||z)},z.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:z,factory:z.\u0275fac}),z})();class ReceivedTokens{}class OAuthEvent{constructor(W){this.type=W}}class OAuthSuccessEvent extends OAuthEvent{constructor(W,E=null){super(W),this.info=E}}class OAuthInfoEvent extends OAuthEvent{constructor(W,E=null){super(W),this.info=E}}class OAuthErrorEvent extends OAuthEvent{constructor(W,E,x=null){super(W),this.reason=E,this.params=x}}function b64DecodeUnicode(z){const W=z.replace(/\-/g,"+").replace(/\_/g,"/");return decodeURIComponent(atob(W).split("").map(function(E){return"%"+("00"+E.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function base64UrlEncode(z){return btoa(z).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}class AuthConfig{constructor(W){this.clientId="",this.redirectUri="",this.postLogoutRedirectUri="",this.redirectUriAsPostLogoutRedirectUriFallback=!0,this.loginUrl="",this.scope="openid profile",this.resource="",this.rngUrl="",this.oidc=!0,this.requestAccessToken=!0,this.options=null,this.issuer="",this.logoutUrl="",this.clearHashAfterLogin=!0,this.tokenEndpoint=null,this.revocationEndpoint=null,this.customTokenParameters=[],this.userinfoEndpoint=null,this.responseType="",this.showDebugInformation=!1,this.silentRefreshRedirectUri="",this.silentRefreshMessagePrefix="",this.silentRefreshShowIFrame=!1,this.siletRefreshTimeout=2e4,this.silentRefreshTimeout=2e4,this.dummyClientSecret=null,this.requireHttps="remoteOnly",this.strictDiscoveryDocumentValidation=!0,this.jwks=null,this.customQueryParams=null,this.silentRefreshIFrameName="angular-oauth-oidc-silent-refresh-iframe",this.timeoutFactor=.75,this.sessionChecksEnabled=!1,this.sessionCheckIntervall=3e3,this.sessionCheckIFrameUrl=null,this.sessionCheckIFrameName="angular-oauth-oidc-check-session-iframe",this.disableAtHashCheck=!1,this.skipSubjectCheck=!1,this.useIdTokenHintForSilentRefresh=!1,this.skipIssuerCheck=!1,this.nonceStateSeparator=";",this.useHttpBasicAuth=!1,this.waitForTokenInMsec=0,this.disablePKCE=!1,this.preserveRequestedRoute=!1,this.openUri=E=>{location.href=E},W&&Object.assign(this,W)}}class WebHttpUrlEncodingCodec{encodeKey(W){return encodeURIComponent(W)}encodeValue(W){return encodeURIComponent(W)}decodeKey(W){return decodeURIComponent(W)}decodeValue(W){return decodeURIComponent(W)}}class ValidationHandler{}class AbstractValidationHandler{validateAtHash(W){var E=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){let x=E.inferHashAlgorithm(W.idTokenHeader),n=yield E.calcHash(W.accessToken,x),D=base64UrlEncode(n.substr(0,n.length/2)),H=W.idTokenClaims.at_hash.replace(/=/g,"");return D!==H&&(console.error("exptected at_hash: "+D),console.error("actual at_hash: "+H)),D===H})()}inferHashAlgorithm(W){let E=W.alg;if(!E.match(/^.S[0-9]{3}$/))throw new Error("Algorithm not supported: "+E);return"sha-"+E.substr(2)}}let UrlHelperService=(()=>{class z{getHashFragmentParams(E){let x=E||window.location.hash;if(x=decodeURIComponent(x),0!==x.indexOf("#"))return{};const n=x.indexOf("?");return x=x.substr(n>-1?n+1:1),this.parseQueryString(x)}parseQueryString(E){const x={};let n,P,D,H,I,B,Y;if(null===E)return x;n=E.split("&");for(let G=0;G>6,P[H++]=128|63&I):I<55296||I>=57344?(P[H++]=224|I>>12,P[H++]=128|I>>6&63,P[H++]=128|63&I):(I=65536+((1023&I)<<10|1023&z.charCodeAt(++x)),P[H++]=240|I>>18,P[H++]=128|I>>12&63,P[H++]=128|I>>6&63,P[H++]=128|63&I);z=P}else{if("object"!==n)throw new Error(ERROR);if(null===z)throw new Error(ERROR);if(ARRAY_BUFFER&&z.constructor===ArrayBuffer)z=new Uint8Array(z);else if(!(Array.isArray(z)||ARRAY_BUFFER&&ArrayBuffer.isView(z)))throw new Error(ERROR)}z.length>64&&(z=new Sha256(W,!0).update(z).array());var B=[],Y=[];for(x=0;x<64;++x){var G=z[x]||0;B[x]=92^G,Y[x]=54^G}Sha256.call(this,W,E),this.update(Y),this.oKeyPad=B,this.inner=!0,this.sharedMemory=E}Sha256.prototype.update=function(z){if(!this.finalized){var W,E=typeof z;if("string"!==E){if("object"!==E)throw new Error(ERROR);if(null===z)throw new Error(ERROR);if(ARRAY_BUFFER&&z.constructor===ArrayBuffer)z=new Uint8Array(z);else if(!(Array.isArray(z)||ARRAY_BUFFER&&ArrayBuffer.isView(z)))throw new Error(ERROR);W=!0}for(var x,P,n=0,D=z.length,H=this.blocks;n>2]|=z[n]<>2]|=x<>2]|=(192|x>>6)<>2]|=(128|63&x)<=57344?(H[P>>2]|=(224|x>>12)<>2]|=(128|x>>6&63)<>2]|=(128|63&x)<>2]|=(240|x>>18)<>2]|=(128|x>>12&63)<>2]|=(128|x>>6&63)<>2]|=(128|63&x)<=64?(this.block=H[16],this.start=P-64,this.hash(),this.hashed=!0):this.start=P}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var z=this.blocks,W=this.lastByteIndex;z[16]=this.block,z[W>>2]|=EXTRA[3&W],this.block=z[16],W>=56&&(this.hashed||this.hash(),z[0]=this.block,z[16]=z[1]=z[2]=z[3]=z[4]=z[5]=z[6]=z[7]=z[8]=z[9]=z[10]=z[11]=z[12]=z[13]=z[14]=z[15]=0),z[14]=this.hBytes<<3|this.bytes>>>29,z[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var B,te,se,re,_e,ye,z=this.h0,W=this.h1,E=this.h2,x=this.h3,n=this.h4,P=this.h5,D=this.h6,H=this.h7,I=this.blocks;for(B=16;B<64;++B)I[B]=I[B-16]+(((te=I[B-15])>>>7|te<<25)^(te>>>18|te<<14)^te>>>3)+I[B-7]+(((te=I[B-2])>>>17|te<<15)^(te>>>19|te<<13)^te>>>10)<<0;for(ye=W&E,B=0;B<64;B+=4)this.first?(this.is224?(se=300032,H=(te=I[0]-1413257819)-150054599<<0,x=te+24177077<<0):(se=704751109,H=(te=I[0]-210244248)-1521486534<<0,x=te+143694565<<0),this.first=!1):(H=x+(te=H+((n>>>6|n<<26)^(n>>>11|n<<21)^(n>>>25|n<<7))+(n&P^~n&D)+K[B]+I[B])<<0,x=te+(((z>>>2|z<<30)^(z>>>13|z<<19)^(z>>>22|z<<10))+((se=z&W)^z&E^ye))<<0),D=E+(te=D+((H>>>6|H<<26)^(H>>>11|H<<21)^(H>>>25|H<<7))+(H&n^~H&P)+K[B+1]+I[B+1])<<0,E=te+(((x>>>2|x<<30)^(x>>>13|x<<19)^(x>>>22|x<<10))+((re=x&z)^x&W^se))<<0,P=W+(te=P+((D>>>6|D<<26)^(D>>>11|D<<21)^(D>>>25|D<<7))+(D&H^~D&n)+K[B+2]+I[B+2])<<0,W=te+(((E>>>2|E<<30)^(E>>>13|E<<19)^(E>>>22|E<<10))+((_e=E&x)^E&z^re))<<0,n=z+(te=n+((P>>>6|P<<26)^(P>>>11|P<<21)^(P>>>25|P<<7))+(P&D^~P&H)+K[B+3]+I[B+3])<<0,z=te+(((W>>>2|W<<30)^(W>>>13|W<<19)^(W>>>22|W<<10))+((ye=W&E)^W&x^_e))<<0;this.h0=this.h0+z<<0,this.h1=this.h1+W<<0,this.h2=this.h2+E<<0,this.h3=this.h3+x<<0,this.h4=this.h4+n<<0,this.h5=this.h5+P<<0,this.h6=this.h6+D<<0,this.h7=this.h7+H<<0},Sha256.prototype.hex=function(){this.finalize();var z=this.h0,W=this.h1,E=this.h2,x=this.h3,n=this.h4,P=this.h5,D=this.h6,H=this.h7,I=HEX_CHARS[z>>28&15]+HEX_CHARS[z>>24&15]+HEX_CHARS[z>>20&15]+HEX_CHARS[z>>16&15]+HEX_CHARS[z>>12&15]+HEX_CHARS[z>>8&15]+HEX_CHARS[z>>4&15]+HEX_CHARS[15&z]+HEX_CHARS[W>>28&15]+HEX_CHARS[W>>24&15]+HEX_CHARS[W>>20&15]+HEX_CHARS[W>>16&15]+HEX_CHARS[W>>12&15]+HEX_CHARS[W>>8&15]+HEX_CHARS[W>>4&15]+HEX_CHARS[15&W]+HEX_CHARS[E>>28&15]+HEX_CHARS[E>>24&15]+HEX_CHARS[E>>20&15]+HEX_CHARS[E>>16&15]+HEX_CHARS[E>>12&15]+HEX_CHARS[E>>8&15]+HEX_CHARS[E>>4&15]+HEX_CHARS[15&E]+HEX_CHARS[x>>28&15]+HEX_CHARS[x>>24&15]+HEX_CHARS[x>>20&15]+HEX_CHARS[x>>16&15]+HEX_CHARS[x>>12&15]+HEX_CHARS[x>>8&15]+HEX_CHARS[x>>4&15]+HEX_CHARS[15&x]+HEX_CHARS[n>>28&15]+HEX_CHARS[n>>24&15]+HEX_CHARS[n>>20&15]+HEX_CHARS[n>>16&15]+HEX_CHARS[n>>12&15]+HEX_CHARS[n>>8&15]+HEX_CHARS[n>>4&15]+HEX_CHARS[15&n]+HEX_CHARS[P>>28&15]+HEX_CHARS[P>>24&15]+HEX_CHARS[P>>20&15]+HEX_CHARS[P>>16&15]+HEX_CHARS[P>>12&15]+HEX_CHARS[P>>8&15]+HEX_CHARS[P>>4&15]+HEX_CHARS[15&P]+HEX_CHARS[D>>28&15]+HEX_CHARS[D>>24&15]+HEX_CHARS[D>>20&15]+HEX_CHARS[D>>16&15]+HEX_CHARS[D>>12&15]+HEX_CHARS[D>>8&15]+HEX_CHARS[D>>4&15]+HEX_CHARS[15&D];return this.is224||(I+=HEX_CHARS[H>>28&15]+HEX_CHARS[H>>24&15]+HEX_CHARS[H>>20&15]+HEX_CHARS[H>>16&15]+HEX_CHARS[H>>12&15]+HEX_CHARS[H>>8&15]+HEX_CHARS[H>>4&15]+HEX_CHARS[15&H]),I},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var z=this.h0,W=this.h1,E=this.h2,x=this.h3,n=this.h4,P=this.h5,D=this.h6,H=this.h7,I=[z>>24&255,z>>16&255,z>>8&255,255&z,W>>24&255,W>>16&255,W>>8&255,255&W,E>>24&255,E>>16&255,E>>8&255,255&E,x>>24&255,x>>16&255,x>>8&255,255&x,n>>24&255,n>>16&255,n>>8&255,255&n,P>>24&255,P>>16&255,P>>8&255,255&P,D>>24&255,D>>16&255,D>>8&255,255&D];return this.is224||I.push(H>>24&255,H>>16&255,H>>8&255,255&H),I},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var z=new ArrayBuffer(this.is224?28:32),W=new DataView(z);return W.setUint32(0,this.h0),W.setUint32(4,this.h1),W.setUint32(8,this.h2),W.setUint32(12,this.h3),W.setUint32(16,this.h4),W.setUint32(20,this.h5),W.setUint32(24,this.h6),this.is224||W.setUint32(28,this.h7),z},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var z=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(z),Sha256.prototype.finalize.call(this)}};var exports=createMethod();return exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),exports}const sha256=factory();class HashHandler{}function decodeUTF8(z){if("string"!=typeof z)throw new TypeError("expected string");var W,E=z,x=new Uint8Array(E.length);for(W=0;W{class z{calcHash(E,x){return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){return encodeUTF8(fast_sha256__WEBPACK_IMPORTED_MODULE_0__(decodeUTF8(E)))})()}toHashString2(E){let x="";for(let n of E)x+=String.fromCharCode(n);return x}toHashString(E){const x=new Uint8Array(E);let n="";for(let P of x)n+=String.fromCharCode(P);return n}}return z.\u0275fac=function(E){return new(E||z)},z.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:z,factory:z.\u0275fac}),z})(),OAuthService=(()=>{class z extends AuthConfig{constructor(E,x,n,P,D,H,I,B,Y,G){super(),this.ngZone=E,this.http=x,this.config=D,this.urlHelper=H,this.logger=I,this.crypto=B,this.dateTimeService=G,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.discoveryDocumentLoadedSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=Y,D||(D={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),P&&(this.tokenValidationHandler=P),D&&this.configure(D);try{n?this.setStorage(n):typeof sessionStorage<"u"&&this.setStorage(sessionStorage)}catch(ee){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",ee)}if(this.checkLocalStorageAccessable()){const ee=window?.navigator?.userAgent;(ee?.includes("MSIE ")||ee?.includes("Trident"))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if(typeof window>"u")return!1;const E="test";try{return!(typeof window.localStorage>"u"||(localStorage.setItem(E,E),localStorage.removeItem(E),0))}catch{return!1}}configure(E){Object.assign(this,new AuthConfig,E),this.config=Object.assign({},new AuthConfig,E),this.sessionChecksEnabled&&this.setupSessionCheck(),this.configChanged()}configChanged(){this.setupRefreshTimer()}restartSessionChecksIfStillLoggedIn(){this.hasValidIdToken()&&this.initSessionCheck()}restartRefreshTimerIfStillLoggedIn(){this.setupExpirationTimers()}setupSessionCheck(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(E=>"token_received"===E.type)).subscribe(E=>{this.initSessionCheck()})}setupAutomaticSilentRefresh(E={},x,n=!0){let P=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(D=>{"token_received"===D.type?P=!0:"logout"===D.type&&(P=!1)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(D=>"token_expires"===D.type&&(null==x||"any"===x||D.info===x)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.b)(1e3)).subscribe(D=>{P&&this.refreshInternal(E,n).catch(H=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(E,x){return this.useSilentRefresh||"code"!==this.responseType?this.silentRefresh(E,x):this.refreshToken()}loadDiscoveryDocumentAndTryLogin(E=null){return this.loadDiscoveryDocument().then(x=>this.tryLogin(E))}loadDiscoveryDocumentAndLogin(E=null){return this.loadDiscoveryDocumentAndTryLogin(E=E||{}).then(x=>!(!this.hasValidIdToken()||!this.hasValidAccessToken())||(this.initLoginFlow("string"==typeof E.state?E.state:""),!1))}debug(...E){this.showDebugInformation&&this.logger.debug.apply(this.logger,E)}validateUrlFromDiscoveryDocument(E){const x=[],n=this.validateUrlForHttps(E),P=this.validateUrlAgainstIssuer(E);return n||x.push("https for all urls required. Also for urls received by discovery."),P||x.push("Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation."),x}validateUrlForHttps(E){if(!E)return!0;const x=E.toLowerCase();return!(!1!==this.requireHttps&&(!x.match(/^http:\/\/localhost($|[:\/])/)&&!x.match(/^http:\/\/localhost($|[:\/])/)||"remoteOnly"!==this.requireHttps))||x.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(E,x){if(!E)throw new Error(`'${x}' should not be null`);if(!this.validateUrlForHttps(E))throw new Error(`'${x}' must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).`)}validateUrlAgainstIssuer(E){return!this.strictDiscoveryDocumentValidation||!E||E.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){typeof window>"u"?this.debug("timer not supported on this plattform"):((this.hasValidIdToken()||this.hasValidAccessToken())&&(this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()),this.tokenReceivedSubscription&&this.tokenReceivedSubscription.unsubscribe(),this.tokenReceivedSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(E=>"token_received"===E.type)).subscribe(E=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()}))}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){const E=this.getAccessTokenExpiration(),x=this.getAccessTokenStoredAt(),n=this.calcTimeout(x,E);this.ngZone.runOutsideAngular(()=>{this.accessTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","access_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(n)).subscribe(P=>{this.ngZone.run(()=>{this.eventsSubject.next(P)})})})}setupIdTokenTimer(){const E=this.getIdTokenExpiration(),x=this.getIdTokenStoredAt(),n=this.calcTimeout(x,E);this.ngZone.runOutsideAngular(()=>{this.idTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","id_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(n)).subscribe(P=>{this.ngZone.run(()=>{this.eventsSubject.next(P)})})})}stopAutomaticRefresh(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.clearAutomaticRefreshTimer()}clearAccessTokenTimer(){this.accessTokenTimeoutSubscription&&this.accessTokenTimeoutSubscription.unsubscribe()}clearIdTokenTimer(){this.idTokenTimeoutSubscription&&this.idTokenTimeoutSubscription.unsubscribe()}clearAutomaticRefreshTimer(){this.automaticRefreshSubscription&&this.automaticRefreshSubscription.unsubscribe()}calcTimeout(E,x){const n=this.dateTimeService.now();return Math.max(0,(x-E)*this.timeoutFactor-(n-E))}setStorage(E){this._storage=E,this.configChanged()}loadDiscoveryDocument(E=null){return new Promise((x,n)=>{E||((E=this.issuer||"").endsWith("/")||(E+="/"),E+=".well-known/openid-configuration"),this.validateUrlForHttps(E)?this.http.get(E).subscribe(P=>{if(!this.validateDiscoveryDocument(P))return this.eventsSubject.next(new OAuthErrorEvent("discovery_document_validation_error",null)),void n("discovery_document_validation_error");this.loginUrl=P.authorization_endpoint,this.logoutUrl=P.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=P.grant_types_supported,this.issuer=P.issuer,this.tokenEndpoint=P.token_endpoint,this.userinfoEndpoint=P.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=P.jwks_uri,this.sessionCheckIFrameUrl=P.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(P),this.revocationEndpoint=P.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(D=>{const I=new OAuthSuccessEvent("discovery_document_loaded",{discoveryDocument:P,jwks:D});this.eventsSubject.next(I),x(I)}).catch(D=>{this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",D)),n(D)})},P=>{this.logger.error("error loading discovery document",P),this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",P)),n(P)}):n("issuer must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).")})}loadJwks(){return new Promise((E,x)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(n=>{this.jwks=n,this.eventsSubject.next(new OAuthSuccessEvent("discovery_document_loaded")),E(n)},n=>{this.logger.error("error loading jwks",n),this.eventsSubject.next(new OAuthErrorEvent("jwks_load_error",n)),x(n)}):E(null)})}validateDiscoveryDocument(E){let x;return this.skipIssuerCheck||E.issuer===this.issuer?(x=this.validateUrlFromDiscoveryDocument(E.authorization_endpoint),x.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",x),!1):(x=this.validateUrlFromDiscoveryDocument(E.end_session_endpoint),x.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",x),!1):(x=this.validateUrlFromDiscoveryDocument(E.token_endpoint),x.length>0&&this.logger.error("error validating token_endpoint in discovery document",x),x=this.validateUrlFromDiscoveryDocument(E.revocation_endpoint),x.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",x),x=this.validateUrlFromDiscoveryDocument(E.userinfo_endpoint),x.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",x),!1):(x=this.validateUrlFromDiscoveryDocument(E.jwks_uri),x.length>0?(this.logger.error("error validating jwks_uri in discovery document",x),!1):(this.sessionChecksEnabled&&!E.check_session_iframe&&this.logger.warn("sessionChecksEnabled is activated but discovery document does not contain a check_session_iframe field"),!0))))):(this.logger.error("invalid issuer in discovery document","expected: "+this.issuer,"current: "+E.issuer),!1)}fetchTokenUsingPasswordFlowAndLoadUserProfile(E,x,n=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingPasswordFlow(E,x,n).then(()=>this.loadUserProfile())}loadUserProfile(){if(!this.hasValidAccessToken())throw new Error("Can not load User Profile without access_token");if(!this.validateUrlForHttps(this.userinfoEndpoint))throw new Error("userinfoEndpoint must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");return new Promise((E,x)=>{const n=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:n,observe:"response",responseType:"text"}).subscribe(P=>{if(this.debug("userinfo received",JSON.stringify(P)),P.headers.get("content-type").startsWith("application/json")){let D=JSON.parse(P.body);const H=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!H.sub||D.sub!==H.sub))return void x("if property oidc is true, the received user-id (sub) has to be the user-id of the user that has logged in with oidc.\nif you are not using oidc but just oauth2 password flow set oidc to false");D=Object.assign({},H,D),this._storage.setItem("id_token_claims_obj",JSON.stringify(D)),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),E({info:D})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),E(JSON.parse(P.body))},P=>{this.logger.error("error loading user info",P),this.eventsSubject.next(new OAuthErrorEvent("user_profile_load_error",P)),x(P)})})}fetchTokenUsingPasswordFlow(E,x,n=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingGrant("password",{username:E,password:x},n)}fetchTokenUsingGrant(E,x,n=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let P=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type",E).set("scope",this.scope);if(this.useHttpBasicAuth){const D=btoa(`${this.clientId}:${this.dummyClientSecret}`);n=n.set("Authorization","Basic "+D)}if(this.useHttpBasicAuth||(P=P.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(P=P.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const D of Object.getOwnPropertyNames(this.customQueryParams))P=P.set(D,this.customQueryParams[D]);for(const D of Object.keys(x))P=P.set(D,x[D]);return n=n.set("Content-Type","application/x-www-form-urlencoded"),new Promise((D,H)=>{this.http.post(this.tokenEndpoint,P,{headers:n}).subscribe(I=>{this.debug("tokenResponse",I),this.storeAccessTokenResponse(I.access_token,I.refresh_token,I.expires_in||this.fallbackAccessTokenExpirationTimeInSec,I.scope,this.extractRecognizedCustomParameters(I)),this.oidc&&I.id_token&&this.processIdToken(I.id_token,I.access_token).then(B=>{this.storeIdToken(B),D(I)}),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),D(I)},I=>{this.logger.error("Error performing ${grantType} flow",I),this.eventsSubject.next(new OAuthErrorEvent("token_error",I)),H(I)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((E,x)=>{let n=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","refresh_token").set("scope",this.scope).set("refresh_token",this._storage.getItem("refresh_token")),P=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const D=btoa(`${this.clientId}:${this.dummyClientSecret}`);P=P.set("Authorization","Basic "+D)}if(this.useHttpBasicAuth||(n=n.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(n=n.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const D of Object.getOwnPropertyNames(this.customQueryParams))n=n.set(D,this.customQueryParams[D]);this.http.post(this.tokenEndpoint,n,{headers:P}).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.w)(D=>D.id_token?(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.D)(this.processIdToken(D.id_token,D.access_token,!0)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(H=>this.storeIdToken(H)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(H=>D)):(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(D))).subscribe(D=>{this.debug("refresh tokenResponse",D),this.storeAccessTokenResponse(D.access_token,D.refresh_token,D.expires_in||this.fallbackAccessTokenExpirationTimeInSec,D.scope,this.extractRecognizedCustomParameters(D)),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),E(D)},D=>{this.logger.error("Error refreshing token",D),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",D)),x(D)})})}removeSilentRefreshEventListener(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}setupSilentRefreshEventListener(){this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=E=>{const x=this.processMessageEventMessage(E);this.tryLogin({customHashFragment:x,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri||this.redirectUri}).catch(n=>this.debug("tryLogin during silent refresh failed",n))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(E={},x=!0){const n=this.getIdentityClaims()||{};if(this.useIdTokenHintForSilentRefresh&&this.hasValidIdToken()&&(E.id_token_hint=this.getIdToken()),!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(typeof this.document>"u")throw new Error("silent refresh is not supported on this platform");const P=this.document.getElementById(this.silentRefreshIFrameName);P&&this.document.body.removeChild(P),this.silentRefreshSubject=n.sub;const D=this.document.createElement("iframe");D.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,x,E).then(G=>{D.setAttribute("src",G),this.silentRefreshShowIFrame||(D.style.display="none"),this.document.body.appendChild(D)});const I=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(G=>G instanceof OAuthErrorEvent),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),B=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(G=>"token_received"===G.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),Y=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthErrorEvent("silent_refresh_timeout",null)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(this.silentRefreshTimeout));return(0,rxjs__WEBPACK_IMPORTED_MODULE_14__.S)([I,B,Y]).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(G=>{if(G instanceof OAuthErrorEvent)throw"silent_refresh_timeout"===G.type||(G=new OAuthErrorEvent("silent_refresh_error",G)),this.eventsSubject.next(G),G;return"token_received"===G.type&&(G=new OAuthSuccessEvent("silently_refreshed"),this.eventsSubject.next(G)),G})).toPromise()}initImplicitFlowInPopup(E){return this.initLoginFlowInPopup(E)}initLoginFlowInPopup(E){return E=E||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(x=>new Promise((n,P)=>{let I,H=null;E.windowRef?E.windowRef&&!E.windowRef.closed&&(H=E.windowRef,H.location.href=x):H=window.open(x,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(E));const B=ae=>{this.tryLogin({customHashFragment:ae,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{G(),n(!0)},ue=>{G(),P(ue)})};H?I=window.setInterval(()=>{(!H||H.closed)&&(G(),P(new OAuthErrorEvent("popup_closed",{})))},500):P(new OAuthErrorEvent("popup_blocked",{}));const G=()=>{window.clearInterval(I),window.removeEventListener("storage",te),window.removeEventListener("message",ee),null!==H&&H.close(),H=null},ee=ae=>{const ue=this.processMessageEventMessage(ae);ue&&null!==ue?(window.removeEventListener("storage",te),B(ue)):console.log("false event firing")},te=ae=>{"auth_hash"===ae.key&&(window.removeEventListener("message",ee),B(ae.newValue))};window.addEventListener("message",ee),window.addEventListener("storage",te)}))}calculatePopupFeatures(E){const x=E.height||470,n=E.width||500,P=window.screenLeft+(window.outerWidth-n)/2;return`location=no,toolbar=no,width=${n},height=${x},top=${window.screenTop+(window.outerHeight-x)/2},left=${P}`}processMessageEventMessage(E){let x="#";if(this.silentRefreshMessagePrefix&&(x+=this.silentRefreshMessagePrefix),!E||!E.data||"string"!=typeof E.data)return;const n=E.data;return n.startsWith(x)?"#"+n.substr(x.length):void 0}canPerformSessionCheck(){return!(!this.sessionChecksEnabled||(this.sessionCheckIFrameUrl?this.getSessionState()?typeof this.document>"u":(console.warn("sessionChecksEnabled is activated but there is no session_state"),1):(console.warn("sessionChecksEnabled is activated but there is no sessionCheckIFrameUrl"),1)))}setupSessionCheckEventListener(){this.removeSessionCheckEventListener(),this.sessionCheckEventListener=E=>{const x=E.origin.toLowerCase(),n=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),n.startsWith(x)){switch(E.data){case"unchanged":this.ngZone.run(()=>{this.handleSessionUnchanged()});break;case"changed":this.ngZone.run(()=>{this.handleSessionChange()});break;case"error":this.ngZone.run(()=>{this.handleSessionError()})}this.debug("got info from session check inframe",E)}else this.debug("sessionCheckEventListener","wrong origin",x,"expected",n,"event",E)},this.ngZone.runOutsideAngular(()=>{window.addEventListener("message",this.sessionCheckEventListener)})}handleSessionUnchanged(){this.debug("session check","session unchanged"),this.eventsSubject.next(new OAuthInfoEvent("session_unchanged"))}handleSessionChange(){this.eventsSubject.next(new OAuthInfoEvent("session_changed")),this.stopSessionCheckTimer(),this.useSilentRefresh||"code"!==this.responseType?this.silentRefreshRedirectUri?(this.silentRefresh().catch(E=>this.debug("silent refresh failed after session changed")),this.waitForSilentRefreshAfterSessionChange()):(this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)):this.refreshToken().then(E=>{this.debug("token refresh after session change worked")}).catch(E=>{this.debug("token refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)})}waitForSilentRefreshAfterSessionChange(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(E=>"silently_refreshed"===E.type||"silent_refresh_timeout"===E.type||"silent_refresh_error"===E.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()).subscribe(E=>{"silently_refreshed"!==E.type&&(this.debug("silent refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0))})}handleSessionError(){this.stopSessionCheckTimer(),this.eventsSubject.next(new OAuthInfoEvent("session_error"))}removeSessionCheckEventListener(){this.sessionCheckEventListener&&(window.removeEventListener("message",this.sessionCheckEventListener),this.sessionCheckEventListener=null)}initSessionCheck(){if(!this.canPerformSessionCheck())return;const E=this.document.getElementById(this.sessionCheckIFrameName);E&&this.document.body.removeChild(E);const x=this.document.createElement("iframe");x.id=this.sessionCheckIFrameName,this.setupSessionCheckEventListener(),x.setAttribute("src",this.sessionCheckIFrameUrl),x.style.display="none",this.document.body.appendChild(x),this.startSessionCheckTimer()}startSessionCheckTimer(){this.stopSessionCheckTimer(),this.ngZone.runOutsideAngular(()=>{this.sessionCheckTimer=setInterval(this.checkSession.bind(this),this.sessionCheckIntervall)})}stopSessionCheckTimer(){this.sessionCheckTimer&&(clearInterval(this.sessionCheckTimer),this.sessionCheckTimer=null)}checkSession(){const E=this.document.getElementById(this.sessionCheckIFrameName);E||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);const x=this.getSessionState();x||this.stopSessionCheckTimer(),E.contentWindow.postMessage(this.clientId+" "+x,this.issuer)}createLoginUrl(E="",x="",n="",P=!1,D={}){var H=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const I=H;let B;B=n||H.redirectUri;const Y=yield H.createAndSaveNonce();if(E=E?Y+H.config.nonceStateSeparator+encodeURIComponent(E):Y,!H.requestAccessToken&&!H.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");H.responseType=H.config.responseType?H.config.responseType:H.oidc&&H.requestAccessToken?"id_token token":H.oidc&&!H.requestAccessToken?"id_token":"token";const G=I.loginUrl.indexOf("?")>-1?"&":"?";let ee=I.scope;H.oidc&&!ee.match(/(^|\s)openid($|\s)/)&&(ee="openid "+ee);let te=I.loginUrl+G+"response_type="+encodeURIComponent(I.responseType)+"&client_id="+encodeURIComponent(I.clientId)+"&state="+encodeURIComponent(E)+"&redirect_uri="+encodeURIComponent(B)+"&scope="+encodeURIComponent(ee);if(H.responseType.includes("code")&&!H.disablePKCE){const[ae,ue]=yield H.createChallangeVerifierPairForPKCE();H.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("PKCE_verifier",ue):H._storage.setItem("PKCE_verifier",ue),te+="&code_challenge="+ae,te+="&code_challenge_method=S256"}x&&(te+="&login_hint="+encodeURIComponent(x)),I.resource&&(te+="&resource="+encodeURIComponent(I.resource)),I.oidc&&(te+="&nonce="+encodeURIComponent(Y)),P&&(te+="&prompt=none");for(const ae of Object.keys(D))te+="&"+encodeURIComponent(ae)+"="+encodeURIComponent(D[ae]);if(H.customQueryParams)for(const ae of Object.getOwnPropertyNames(H.customQueryParams))te+="&"+ae+"="+encodeURIComponent(H.customQueryParams[ae]);return te})()}initImplicitFlowInternal(E="",x=""){if(this.inImplicitFlow)return;if(this.inImplicitFlow=!0,!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let n={},P=null;"string"==typeof x?P=x:"object"==typeof x&&(n=x),this.createLoginUrl(E,P,null,!1,n).then(this.config.openUri).catch(D=>{console.error("Error in initImplicitFlow",D),this.inImplicitFlow=!1})}initImplicitFlow(E="",x=""){""!==this.loginUrl?this.initImplicitFlowInternal(E,x):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(n=>"discovery_document_loaded"===n.type)).subscribe(n=>this.initImplicitFlowInternal(E,x))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(E){const x=this;if(E.onTokenReceived){const n={idClaims:x.getIdentityClaims(),idToken:x.getIdToken(),accessToken:x.getAccessToken(),state:x.state};E.onTokenReceived(n)}}storeAccessTokenResponse(E,x,n,P,D){if(this._storage.setItem("access_token",E),P&&!Array.isArray(P)?this._storage.setItem("granted_scopes",JSON.stringify(P.split(" "))):P&&Array.isArray(P)&&this._storage.setItem("granted_scopes",JSON.stringify(P)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),n){const H=1e3*n,B=this.dateTimeService.new().getTime()+H;this._storage.setItem("expires_at",""+B)}x&&this._storage.setItem("refresh_token",x),D&&D.forEach((H,I)=>{this._storage.setItem(I,H)})}tryLogin(E=null){return"code"===this.config.responseType?this.tryLoginCodeFlow(E).then(x=>!0):this.tryLoginImplicitFlow(E)}parseQueryString(E){return E&&0!==E.length?("?"===E.charAt(0)&&(E=E.substr(1)),this.urlHelper.parseQueryString(E)):{}}tryLoginCodeFlow(E=null){var x=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const n=(E=E||{}).customHashFragment?E.customHashFragment.substring(1):window.location.search,P=x.getCodePartsFromUrl(n),D=P.code,H=P.state,I=P.session_state;if(!E.preventClearHashAfterLogin){const G=location.origin+location.pathname+location.search.replace(/code=[^&\$]*/,"").replace(/scope=[^&\$]*/,"").replace(/state=[^&\$]*/,"").replace(/session_state=[^&\$]*/,"").replace(/^\?&/,"?").replace(/&$/,"").replace(/^\?$/,"").replace(/&+/g,"&").replace(/\?&/,"?").replace(/\?$/,"")+location.hash;history.replaceState(null,window.name,G)}let[B,Y]=x.parseState(H);if(x.state=Y,P.error){x.debug("error trying to login"),x.handleLoginError(E,P);const G=new OAuthErrorEvent("code_error",{},P);return x.eventsSubject.next(G),Promise.reject(G)}if(!E.disableNonceCheck){if(!B)return x.saveRequestedRoute(),Promise.resolve();if(!E.disableOAuth2StateCheck&&!x.validateNonce(B)){const ee=new OAuthErrorEvent("invalid_nonce_in_state",null);return x.eventsSubject.next(ee),Promise.reject(ee)}return x.storeSessionState(I),D&&(yield x.getTokenFromCode(D,E),x.restoreRequestedRoute()),Promise.resolve()}return Promise.reject()})()}saveRequestedRoute(){this.config.preserveRequestedRoute&&this._storage.setItem("requested_route",window.location.pathname+window.location.search)}restoreRequestedRoute(){const E=this._storage.getItem("requested_route");E&&history.replaceState(null,"",window.location.origin+E)}getCodePartsFromUrl(E){return E&&0!==E.length?("?"===E.charAt(0)&&(E=E.substr(1)),this.urlHelper.parseQueryString(E)):this.urlHelper.getHashFragmentParams()}getTokenFromCode(E,x){let n=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","authorization_code").set("code",E).set("redirect_uri",x.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let P;P=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("PKCE_verifier"):this._storage.getItem("PKCE_verifier"),P?n=n.set("code_verifier",P):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(n,x)}fetchAndProcessToken(E,x){x=x||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let n=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const P=btoa(`${this.clientId}:${this.dummyClientSecret}`);n=n.set("Authorization","Basic "+P)}return this.useHttpBasicAuth||(E=E.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(E=E.set("client_secret",this.dummyClientSecret)),new Promise((P,D)=>{if(this.customQueryParams)for(let H of Object.getOwnPropertyNames(this.customQueryParams))E=E.set(H,this.customQueryParams[H]);this.http.post(this.tokenEndpoint,E,{headers:n}).subscribe(H=>{this.debug("refresh tokenResponse",H),this.storeAccessTokenResponse(H.access_token,H.refresh_token,H.expires_in||this.fallbackAccessTokenExpirationTimeInSec,H.scope,this.extractRecognizedCustomParameters(H)),this.oidc&&H.id_token?this.processIdToken(H.id_token,H.access_token,x.disableNonceCheck).then(I=>{this.storeIdToken(I),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),P(H)}).catch(I=>{this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",I)),console.error("Error validating tokens"),console.error(I),D(I)}):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),P(H))},H=>{console.error("Error getting token",H),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",H)),D(H)})})}tryLoginImplicitFlow(E=null){let x;x=(E=E||{}).customHashFragment?this.urlHelper.getHashFragmentParams(E.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",x);const n=x.state;let[P,D]=this.parseState(n);if(this.state=D,x.error){this.debug("error trying to login"),this.handleLoginError(E,x);const G=new OAuthErrorEvent("token_error",{},x);return this.eventsSubject.next(G),Promise.reject(G)}const H=x.access_token,I=x.id_token,B=x.session_state,Y=x.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!H||this.requestAccessToken&&!E.disableOAuth2StateCheck&&!n||this.oidc&&!I)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!B&&this.logger.warn("session checks (Session Status Change Notification) were activated in the configuration but the id_token does not contain a session_state claim"),this.requestAccessToken&&!E.disableNonceCheck&&!this.validateNonce(P)){const ee=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(ee),Promise.reject(ee)}return this.requestAccessToken&&this.storeAccessTokenResponse(H,null,x.expires_in||this.fallbackAccessTokenExpirationTimeInSec,Y),this.oidc?this.processIdToken(I,H,E.disableNonceCheck).then(G=>E.validationHandler?E.validationHandler({accessToken:H,idClaims:G.idTokenClaims,idToken:G.idToken,state:n}).then(ee=>G):G).then(G=>(this.storeIdToken(G),this.storeSessionState(B),this.clearHashAfterLogin&&!E.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.callOnTokenReceivedIfExists(E),this.inImplicitFlow=!1,!0)).catch(G=>(this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",G)),this.logger.error("Error validating tokens"),this.logger.error(G),Promise.reject(G))):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.clearHashAfterLogin&&!E.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(E),Promise.resolve(!0))}parseState(E){let x=E,n="";if(E){const P=E.indexOf(this.config.nonceStateSeparator);P>-1&&(x=E.substr(0,P),n=E.substr(P+this.config.nonceStateSeparator.length))}return[x,n]}validateNonce(E){let x;return x=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),x===E||(console.error("Validating access_token failed, wrong state/nonce.",x,E),!1)}storeIdToken(E){this._storage.setItem("id_token",E.idToken),this._storage.setItem("id_token_claims_obj",E.idTokenClaimsJson),this._storage.setItem("id_token_expires_at",""+E.idTokenExpiresAt),this._storage.setItem("id_token_stored_at",""+this.dateTimeService.now())}storeSessionState(E){this._storage.setItem("session_state",E)}getSessionState(){return this._storage.getItem("session_state")}handleLoginError(E,x){E.onLoginError&&E.onLoginError(x),this.clearHashAfterLogin&&!E.preventClearHashAfterLogin&&this.clearLocationHash()}getClockSkewInMsec(E=6e5){return this.clockSkewInSec?1e3*this.clockSkewInSec:E}processIdToken(E,x,n=!1){const P=E.split("."),H=b64DecodeUnicode(this.padBase64(P[0])),I=JSON.parse(H),Y=b64DecodeUnicode(this.padBase64(P[1])),G=JSON.parse(Y);let ee;if(ee=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Array.isArray(G.aud)){if(G.aud.every(_e=>_e!==this.clientId)){const _e="Wrong audience: "+G.aud.join(",");return this.logger.warn(_e),Promise.reject(_e)}}else if(G.aud!==this.clientId){const _e="Wrong audience: "+G.aud;return this.logger.warn(_e),Promise.reject(_e)}if(!G.sub){const _e="No sub claim in id_token";return this.logger.warn(_e),Promise.reject(_e)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==G.sub){const _e=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${G.sub}`;return this.logger.warn(_e),Promise.reject(_e)}if(!G.iat){const _e="No iat claim in id_token";return this.logger.warn(_e),Promise.reject(_e)}if(!this.skipIssuerCheck&&G.iss!==this.issuer){const _e="Wrong issuer: "+G.iss;return this.logger.warn(_e),Promise.reject(_e)}if(!n&&G.nonce!==ee){const _e="Wrong nonce: "+G.nonce;return this.logger.warn(_e),Promise.reject(_e)}if(this.hasOwnProperty("responseType")&&("code"===this.responseType||"id_token"===this.responseType)&&(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!G.at_hash){const _e="An at_hash is needed!";return this.logger.warn(_e),Promise.reject(_e)}const te=this.dateTimeService.now(),ae=1e3*G.iat,ue=1e3*G.exp,se=this.getClockSkewInMsec();if(ae-se>=te||ue+se<=te){const _e="Token has expired";return console.error(_e),console.error({now:te,issuedAtMSec:ae,expiresAtMSec:ue}),Promise.reject(_e)}const re={accessToken:x,idToken:E,jwks:this.jwks,idTokenClaims:G,idTokenHeader:I,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(re).then(_e=>({idToken:E,idTokenClaims:G,idTokenClaimsJson:Y,idTokenHeader:I,idTokenHeaderJson:H,idTokenExpiresAt:ue})):this.checkAtHash(re).then(_e=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!_e){const ye="Wrong at_hash";return this.logger.warn(ye),Promise.reject(ye)}return this.checkSignature(re).then(ye=>{const Je={idToken:E,idTokenClaims:G,idTokenClaimsJson:Y,idTokenHeader:I,idTokenHeaderJson:H,idTokenExpiresAt:ue};return this.disableAtHashCheck?Je:this.checkAtHash(re).then(Ze=>{if(this.requestAccessToken&&!Ze){const ke="Wrong at_hash";return this.logger.warn(ke),Promise.reject(ke)}return Je})})})}getIdentityClaims(){const E=this._storage.getItem("id_token_claims_obj");return E?JSON.parse(E):null}getGrantedScopes(){const E=this._storage.getItem("granted_scopes");return E?JSON.parse(E):null}getIdToken(){return this._storage?this._storage.getItem("id_token"):null}padBase64(E){for(;E.length%4!=0;)E+="=";return E}getAccessToken(){return this._storage?this._storage.getItem("access_token"):null}getRefreshToken(){return this._storage?this._storage.getItem("refresh_token"):null}getAccessTokenExpiration(){return this._storage.getItem("expires_at")?parseInt(this._storage.getItem("expires_at"),10):null}getAccessTokenStoredAt(){return parseInt(this._storage.getItem("access_token_stored_at"),10)}getIdTokenStoredAt(){return parseInt(this._storage.getItem("id_token_stored_at"),10)}getIdTokenExpiration(){return this._storage.getItem("id_token_expires_at")?parseInt(this._storage.getItem("id_token_expires_at"),10):null}hasValidAccessToken(){if(this.getAccessToken()){const E=this._storage.getItem("expires_at"),x=this.dateTimeService.new();return!(E&&parseInt(E,10)=0&&null!==this._storage.getItem(E)?JSON.parse(this._storage.getItem(E)):null}authorizationHeader(){return"Bearer "+this.getAccessToken()}logOut(E={},x=""){let n=!1;"boolean"==typeof E&&(n=E,E={});const P=this.getIdToken();if(this._storage.removeItem("access_token"),this._storage.removeItem("id_token"),this._storage.removeItem("refresh_token"),this.saveNoncesInLocalStorage?(localStorage.removeItem("nonce"),localStorage.removeItem("PKCE_verifier")):(this._storage.removeItem("nonce"),this._storage.removeItem("PKCE_verifier")),this._storage.removeItem("expires_at"),this._storage.removeItem("id_token_claims_obj"),this._storage.removeItem("id_token_expires_at"),this._storage.removeItem("id_token_stored_at"),this._storage.removeItem("access_token_stored_at"),this._storage.removeItem("granted_scopes"),this._storage.removeItem("session_state"),this.config.customTokenParameters&&this.config.customTokenParameters.forEach(H=>this._storage.removeItem(H)),this.silentRefreshSubject=null,this.eventsSubject.next(new OAuthInfoEvent("logout")),!this.logoutUrl||n||!P&&!this.postLogoutRedirectUri)return;let D;if(!this.validateUrlForHttps(this.logoutUrl))throw new Error("logoutUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(this.logoutUrl.indexOf("{{")>-1)D=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(P)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let H=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec});P&&(H=H.set("id_token_hint",P));const I=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";I&&(H=H.set("post_logout_redirect_uri",I),x&&(H=H.set("state",x)));for(let B in E)H=H.set(B,E[B]);D=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+H.toString()}this.config.openUri(D)}createAndSaveNonce(){const E=this;return this.createNonce().then(function(x){return E.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("nonce",x):E._storage.setItem("nonce",x),x})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();const E=this.document.getElementById(this.silentRefreshIFrameName);E&&E.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();const x=this.document.getElementById(this.sessionCheckIFrameName);x&&x.remove()}createNonce(){return new Promise(E=>{if(this.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");const x="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";let n=45,P="";const D=typeof self>"u"?null:self.crypto||self.msCrypto;if(D){let H=new Uint8Array(n);D.getRandomValues(H),H.map||(H.map=Array.prototype.map),H=H.map(I=>x.charCodeAt(I%x.length)),P=String.fromCharCode.apply(null,H)}else for(;0"discovery_document_loaded"===n.type)).subscribe(n=>this.initCodeFlowInternal(E,x))}initCodeFlowInternal(E="",x={}){if(!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let n={},P=null;"string"==typeof x?P=x:"object"==typeof x&&(n=x),this.createLoginUrl(E,P,null,!1,n).then(this.config.openUri).catch(D=>{console.error("Error in initAuthorizationCodeFlow"),console.error(D)})}createChallangeVerifierPairForPKCE(){var E=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){if(!E.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");const x=yield E.createNonce();return[base64UrlEncode(yield E.crypto.calcHash(x,"sha-256")),x]})()}extractRecognizedCustomParameters(E){let x=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(n=>{E[n]&&x.set(n,JSON.stringify(E[n]))}),x}revokeTokenAndLogout(E={},x=!1){let n=this.revocationEndpoint,P=this.getAccessToken(),D=this.getRefreshToken();if(!P)return;let H=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}),I=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const B=btoa(`${this.clientId}:${this.dummyClientSecret}`);I=I.set("Authorization","Basic "+B)}if(this.useHttpBasicAuth||(H=H.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(H=H.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const B of Object.getOwnPropertyNames(this.customQueryParams))H=H.set(B,this.customQueryParams[B]);return new Promise((B,Y)=>{let G,ee;if(P){let te=H.set("token",P).set("token_type_hint","access_token");G=this.http.post(n,te,{headers:I})}else G=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);if(D){let te=H.set("token",D).set("token_type_hint","refresh_token");ee=this.http.post(n,te,{headers:I})}else ee=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);x&&(G=G.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(te=>0===te.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(te))),ee=ee.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(te=>0===te.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(te)))),(0,rxjs__WEBPACK_IMPORTED_MODULE_17__.a)([G,ee]).subscribe(te=>{this.logOut(E),B(te),this.logger.info("Token successfully revoked")},te=>{this.logger.error("Error revoking token",te),this.eventsSubject.next(new OAuthErrorEvent("token_revoke_error",te)),Y(te)})})}clearLocationHash(){""!=location.hash&&(location.hash="")}}return z.\u0275fac=function(E){return new(E||z)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_core__WEBPACK_IMPORTED_MODULE_1__.R0b),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.eN),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthStorage,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(ValidationHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(AuthConfig,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(UrlHelperService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthLogger),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(HashHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common__WEBPACK_IMPORTED_MODULE_18__.K0),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(DateTimeProvider))},z.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:z,factory:z.\u0275fac}),z})();class OAuthModuleConfig{}class OAuthResourceServerConfig{}class OAuthResourceServerErrorHandler{}class OAuthNoopResourceServerErrorHandler{handleError(W){return(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(W)}}let DefaultOAuthInterceptor=(()=>{class z{constructor(E,x,n){this.oAuthService=E,this.errorHandler=x,this.moduleConfig=n}checkUrl(E){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(E):!this.moduleConfig.resourceServer.allowedUrls||!!this.moduleConfig.resourceServer.allowedUrls.find(x=>E.toLowerCase().startsWith(x.toLowerCase()))}intercept(E,x){const n=E.url.toLowerCase();return this.moduleConfig&&this.moduleConfig.resourceServer&&this.checkUrl(n)?this.moduleConfig.resourceServer.sendAccessToken?(0,rxjs__WEBPACK_IMPORTED_MODULE_19__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(this.oAuthService.getAccessToken()).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(D=>!!D)),this.oAuthService.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(D=>"token_received"===D.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.V)(this.oAuthService.waitForTokenInMsec||0),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(D=>(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(D=>this.oAuthService.getAccessToken()))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.q)(1),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_22__.z)(D=>{if(D){const I=E.headers.set("Authorization","Bearer "+D);E=E.clone({headers:I})}return x.handle(E).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(H=>this.errorHandler.handleError(H)))})):x.handle(E).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(D=>this.errorHandler.handleError(D))):x.handle(E)}}return z.\u0275fac=function(E){return new(E||z)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthResourceServerErrorHandler),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthModuleConfig,8))},z.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:z,factory:z.\u0275fac}),z})();class NullValidationHandler{validateSignature(W){return Promise.resolve(null)}validateAtHash(W){return Promise.resolve(!0)}}function createDefaultLogger(){return console}function createDefaultStorage(){return typeof sessionStorage<"u"?sessionStorage:new MemoryStorage}let OAuthModule=(()=>{class z{static forRoot(E=null,x=NullValidationHandler){return{ngModule:z,providers:[OAuthService,UrlHelperService,{provide:OAuthLogger,useFactory:createDefaultLogger},{provide:OAuthStorage,useFactory:createDefaultStorage},{provide:ValidationHandler,useClass:x},{provide:HashHandler,useClass:DefaultHashHandler},{provide:OAuthResourceServerErrorHandler,useClass:OAuthNoopResourceServerErrorHandler},{provide:OAuthModuleConfig,useValue:E},{provide:_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.TP,useClass:DefaultOAuthInterceptor,multi:!0},{provide:DateTimeProvider,useClass:SystemDateTimeProvider}]}}}return z.\u0275fac=function(E){return new(E||z)},z.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_1__.oAB({type:z}),z.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_1__.cJS({imports:[[_angular_common__WEBPACK_IMPORTED_MODULE_18__.ez]]}),z})();const err="PLEASE READ THIS CAREFULLY:\n\nBeginning with angular-oauth2-oidc version 9, the JwksValidationHandler\nhas been moved to an library of its own. If you need it for implementing\nOAuth2/OIDC **implicit flow**, please install it using npm:\n\n npm i angular-oauth2-oidc-jwks --save\n\nAfter that, you can import it into your application:\n\n import { JwksValidationHandler } from 'angular-oauth2-oidc-jwks';\n\nPlease note, that this dependency is not needed for the **code flow**,\nwhich is nowadays the **recommented** one for single page applications.\nThis also results in smaller bundle sizes.\n";class JwksValidationHandler extends NullValidationHandler{constructor(){super(),console.error(err)}}const AUTH_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_1__.OlP("AUTH_CONFIG")},5861:(z,W,E)=>{"use strict";function x(P,D,H,I,B,Y,G){try{var ee=P[Y](G),te=ee.value}catch(ae){return void H(ae)}ee.done?D(te):Promise.resolve(te).then(I,B)}function n(P){return function(){var D=this,H=arguments;return new Promise(function(I,B){var Y=P.apply(D,H);function G(te){x(Y,I,B,G,ee,"next",te)}function ee(te){x(Y,I,B,G,ee,"throw",te)}G(void 0)})}}E.d(W,{Z:()=>n})},4147:z=>{"use strict";z.exports={i8:"10.4.0"}}},z=>{z(z.s=887)}]); \ No newline at end of file diff --git a/dist/apps/user-profile/assets/i18n/cs.json b/dist/apps/user-profile/assets/i18n/cs.json index 4dc7a42e4..9da9a47f9 100644 --- a/dist/apps/user-profile/assets/i18n/cs.json +++ b/dist/apps/user-profile/assets/i18n/cs.json @@ -360,9 +360,9 @@ "COPY": "Zkopírovat hodnotu" }, "SESSION_EXPIRATION": { - "TITLE": "Relace vypršela", - "DESCRIPTION": "Vaše relace vypršela. Prosím znovu se přihlašte.", - "SIGN_IN": "Přihlásit se" + "TITLE": "Platnost přihlášení vypršela", + "DESCRIPTION": "Byli jste automaticky odhlášeni. Pro pokračování se znovu přihlaste.", + "SIGN_IN": "Pokračovat" }, "MFA_REQUIRED_DIALOG": { "TITLE": "Vyžadována step-up authentizace", diff --git a/dist/apps/user-profile/assets/i18n/en.json b/dist/apps/user-profile/assets/i18n/en.json index 645d4065a..fdd384d2a 100644 --- a/dist/apps/user-profile/assets/i18n/en.json +++ b/dist/apps/user-profile/assets/i18n/en.json @@ -424,7 +424,7 @@ "SESSION_EXPIRATION": { "TITLE": "Session expiration", "DESCRIPTION": "Your session has expired. Please sign in to continue.", - "SIGN_IN": "Sign in" + "SIGN_IN": "Proceed" }, "MFA_REQUIRED_DIALOG": { "TITLE": "Step-up authentication required", diff --git a/dist/apps/user-profile/index.html b/dist/apps/user-profile/index.html index 2ede0aedb..48f35355e 100644 --- a/dist/apps/user-profile/index.html +++ b/dist/apps/user-profile/index.html @@ -13,5 +13,5 @@
- + diff --git a/dist/apps/user-profile/main.9a2956a803cd4152.js b/dist/apps/user-profile/main.9a2956a803cd4152.js new file mode 100644 index 000000000..9d79a2b28 --- /dev/null +++ b/dist/apps/user-profile/main.9a2956a803cd4152.js @@ -0,0 +1 @@ +(self.webpackChunkuser_profile=self.webpackChunkuser_profile||[]).push([[179],{5882:(Y,G,E)=>{"use strict";var T=E(6895),n=E(4650);class H extends T.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class D extends H{static makeCurrent(){(0,T.HT)(new D)}onAndCancel(a,e,t){return a.addEventListener(e,t,!1),()=>{a.removeEventListener(e,t,!1)}}dispatchEvent(a,e){a.dispatchEvent(e)}remove(a){a.parentNode&&a.parentNode.removeChild(a)}createElement(a,e){return(e=e||this.getDefaultDocument()).createElement(a)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(a){return a.nodeType===Node.ELEMENT_NODE}isShadowRoot(a){return a instanceof DocumentFragment}getGlobalEventTarget(a,e){return"window"===e?window:"document"===e?a:"body"===e?a.body:null}getBaseHref(a){const e=function O(){return L=L||document.querySelector("base"),L?L.getAttribute("href"):null}();return null==e?null:function U(i){B=B||document.createElement("a"),B.setAttribute("href",i);const a=B.pathname;return"/"===a.charAt(0)?a:`/${a}`}(e)}resetBaseElement(){L=null}getUserAgent(){return window.navigator.userAgent}getCookie(a){return(0,T.Mx)(document.cookie,a)}}let B,L=null;const W=new n.OlP("TRANSITION_ID"),te=[{provide:n.ip1,useFactory:function ee(i,a,e){return()=>{e.get(n.CZH).donePromise.then(()=>{const t=(0,T.q)(),r=a.querySelectorAll(`style[ng-transition="${i}"]`);for(let d=0;d{class i{build(){return new XMLHttpRequest}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();const oe=new n.OlP("EventManagerPlugins");let re=(()=>{class i{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(r=>r.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,r){return this._findPluginFor(t).addEventListener(e,t,r)}addGlobalEventListener(e,t,r){return this._findPluginFor(t).addGlobalEventListener(e,t,r)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const r=this._plugins;for(let d=0;d{class i{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(r=>{this._stylesSet.has(r)||(this._stylesSet.add(r),t.add(r))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})(),xe=(()=>{class i extends we{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,t,r){e.forEach(d=>{const u=this._doc.createElement("style");u.textContent=d,r.push(t.appendChild(u))})}addHost(e){const t=[];this._addStylesToHost(this._stylesSet,e,t),this._hostNodes.set(e,t)}removeHost(e){const t=this._hostNodes.get(e);t&&t.forEach(Xe),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((t,r)=>{this._addStylesToHost(e,r,t)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(Xe))}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(T.K0))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();function Xe(i){(0,T.q)().remove(i)}const et={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/",math:"http://www.w3.org/1998/MathML/"},ke=/%COMP%/g;function me(i,a,e){for(let t=0;t{if("__ngUnwrap__"===a)return i;!1===i(a)&&(a.preventDefault(),a.returnValue=!1)}}let Me=(()=>{class i{constructor(e,t,r){this.eventManager=e,this.sharedStylesHost=t,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new $e(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case n.ifc.Emulated:{let r=this.rendererByCompId.get(t.id);return r||(r=new cn(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,r)),r.applyToHost(e),r}case 1:case n.ifc.ShadowDom:return new tt(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const r=me(t.id,t.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(re),n.LFG(xe),n.LFG(n.AFp))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();class $e{constructor(a){this.eventManager=a,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(a,e){return e?document.createElementNS(et[e]||e,a):document.createElement(a)}createComment(a){return document.createComment(a)}createText(a){return document.createTextNode(a)}appendChild(a,e){(Ft(a)?a.content:a).appendChild(e)}insertBefore(a,e,t){a&&(Ft(a)?a.content:a).insertBefore(e,t)}removeChild(a,e){a&&a.removeChild(e)}selectRootElement(a,e){let t="string"==typeof a?document.querySelector(a):a;if(!t)throw new Error(`The selector "${a}" did not match any elements`);return e||(t.textContent=""),t}parentNode(a){return a.parentNode}nextSibling(a){return a.nextSibling}setAttribute(a,e,t,r){if(r){e=r+":"+e;const d=et[r];d?a.setAttributeNS(d,e,t):a.setAttribute(e,t)}else a.setAttribute(e,t)}removeAttribute(a,e,t){if(t){const r=et[t];r?a.removeAttributeNS(r,e):a.removeAttribute(`${t}:${e}`)}else a.removeAttribute(e)}addClass(a,e){a.classList.add(e)}removeClass(a,e){a.classList.remove(e)}setStyle(a,e,t,r){r&(n.JOm.DashCase|n.JOm.Important)?a.style.setProperty(e,t,r&n.JOm.Important?"important":""):a.style[e]=t}removeStyle(a,e,t){t&n.JOm.DashCase?a.style.removeProperty(e):a.style[e]=""}setProperty(a,e,t){a[e]=t}setValue(a,e){a.nodeValue=e}listen(a,e,t){return"string"==typeof a?this.eventManager.addGlobalEventListener(a,e,_e(t)):this.eventManager.addEventListener(a,e,_e(t))}}function Ft(i){return"TEMPLATE"===i.tagName&&void 0!==i.content}class cn extends $e{constructor(a,e,t,r){super(a),this.component=t;const d=me(r+"-"+t.id,t.styles,[]);e.addStyles(d),this.contentAttr=function ze(i){return"_ngcontent-%COMP%".replace(ke,i)}(r+"-"+t.id),this.hostAttr=function Fe(i){return"_nghost-%COMP%".replace(ke,i)}(r+"-"+t.id)}applyToHost(a){super.setAttribute(a,this.hostAttr,"")}createElement(a,e){const t=super.createElement(a,e);return super.setAttribute(t,this.contentAttr,""),t}}class tt extends $e{constructor(a,e,t,r){super(a),this.sharedStylesHost=e,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const d=me(r.id,r.styles,[]);for(let u=0;u{class i extends be{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,r){return e.addEventListener(t,r,!1),()=>this.removeEventListener(e,t,r)}removeEventListener(e,t,r){return e.removeEventListener(t,r)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(T.K0))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();const Oi=["alt","control","meta","shift"],dn={"\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"},Gi={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"},Tn={alt:i=>i.altKey,control:i=>i.ctrlKey,meta:i=>i.metaKey,shift:i=>i.shiftKey};let Ii=(()=>{class i extends be{constructor(e){super(e)}supports(e){return null!=i.parseEventName(e)}addEventListener(e,t,r){const d=i.parseEventName(t),u=i.eventCallback(d.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,T.q)().onAndCancel(e,d.domEventName,u))}static parseEventName(e){const t=e.toLowerCase().split("."),r=t.shift();if(0===t.length||"keydown"!==r&&"keyup"!==r)return null;const d=i._normalizeKey(t.pop());let u="";if(Oi.forEach(o=>{const s=t.indexOf(o);s>-1&&(t.splice(s,1),u+=o+".")}),u+=d,0!=t.length||0===d.length)return null;const c={};return c.domEventName=r,c.fullKey=u,c}static getEventFullKey(e){let t="",r=function hn(i){let a=i.key;if(null==a){if(a=i.keyIdentifier,null==a)return"Unidentified";a.startsWith("U+")&&(a=String.fromCharCode(parseInt(a.substring(2),16)),3===i.location&&Gi.hasOwnProperty(a)&&(a=Gi[a]))}return dn[a]||a}(e);return r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),Oi.forEach(d=>{d!=r&&(0,Tn[d])(e)&&(t+=d+".")}),t+=r,t}static eventCallback(e,t,r){return d=>{i.getEventFullKey(d)===e&&r.runGuarded(()=>t(d))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(T.K0))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();const ye=(0,n.eFA)(n._c5,"browser",[{provide:n.Lbi,useValue:T.bD},{provide:n.g9A,useValue:function Cr(){D.makeCurrent()},multi:!0},{provide:T.K0,useFactory:function pe(){return(0,n.RDi)(document),document},deps:[]}]),Ye=new n.OlP(""),lt=[{provide:n.rWj,useClass:class ae{addToWindow(a){n.dqk.getAngularTestability=(t,r=!0)=>{const d=a.findTestabilityInTree(t,r);if(null==d)throw new Error("Could not find testability for element.");return d},n.dqk.getAllAngularTestabilities=()=>a.getAllTestabilities(),n.dqk.getAllAngularRootElements=()=>a.getAllRootElements(),n.dqk.frameworkStabilizers||(n.dqk.frameworkStabilizers=[]),n.dqk.frameworkStabilizers.push(t=>{const r=n.dqk.getAllAngularTestabilities();let d=r.length,u=!1;const c=function(o){u=u||o,d--,0==d&&t(u)};r.forEach(function(o){o.whenStable(c)})})}findTestabilityInTree(a,e,t){return null==e?null:a.getTestability(e)??(t?(0,T.q)().isShadowRoot(e)?this.findTestabilityInTree(a,e.host,!0):this.findTestabilityInTree(a,e.parentElement,!0):null)}},deps:[]},{provide:n.lri,useClass:n.dDg,deps:[n.R0b,n.eoX,n.rWj]},{provide:n.dDg,useClass:n.dDg,deps:[n.R0b,n.eoX,n.rWj]}],ct=[{provide:n.zSh,useValue:"root"},{provide:n.qLn,useFactory:function zi(){return new n.qLn},deps:[]},{provide:oe,useClass:ai,multi:!0,deps:[T.K0,n.R0b,n.Lbi]},{provide:oe,useClass:Ii,multi:!0,deps:[T.K0]},{provide:Me,useClass:Me,deps:[re,xe,n.AFp]},{provide:n.FYo,useExisting:Me},{provide:we,useExisting:xe},{provide:xe,useClass:xe,deps:[T.K0]},{provide:re,useClass:re,deps:[oe,n.R0b]},{provide:T.JF,useClass:ue,deps:[]},[]];let Zt=(()=>{class i{constructor(e){}static withServerTransition(e){return{ngModule:i,providers:[{provide:n.AFp,useValue:e.appId},{provide:W,useExisting:n.AFp},te]}}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Ye,12))},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[...ct,...lt],imports:[T.ez,n.hGG]}),i})(),ce=(()=>{class i{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(T.K0))},i.\u0275prov=n.Yz7({token:i,factory:function(e){let t=null;return t=e?new e:function Oe(){return new ce((0,n.LFG)(T.K0))}(),t},providedIn:"root"}),i})();typeof window<"u"&&window;let ei=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:function(e){let t=null;return t=e?new(e||i):n.LFG(ft),t},providedIn:"root"}),i})(),ft=(()=>{class i extends ei{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case n.q3G.NONE:return t;case n.q3G.HTML:return(0,n.qzn)(t,"HTML")?(0,n.z3N)(t):(0,n.EiD)(this._doc,String(t)).toString();case n.q3G.STYLE:return(0,n.qzn)(t,"Style")?(0,n.z3N)(t):t;case n.q3G.SCRIPT:if((0,n.qzn)(t,"Script"))return(0,n.z3N)(t);throw new Error("unsafe value used in a script context");case n.q3G.URL:return(0,n.qzn)(t,"URL")?(0,n.z3N)(t):(0,n.mCW)(String(t));case n.q3G.RESOURCE_URL:if((0,n.qzn)(t,"ResourceURL"))return(0,n.z3N)(t);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return(0,n.JVY)(e)}bypassSecurityTrustStyle(e){return(0,n.L6k)(e)}bypassSecurityTrustScript(e){return(0,n.eBb)(e)}bypassSecurityTrustUrl(e){return(0,n.LAX)(e)}bypassSecurityTrustResourceUrl(e){return(0,n.pB0)(e)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(T.K0))},i.\u0275prov=n.Yz7({token:i,factory:function(e){let t=null;return t=e?new e:function nt(i){return new ft(i.get(T.K0))}(n.LFG(n.zs3)),t},providedIn:"root"}),i})();var Ee=E(9646),yn=E(9751),wn=E(576);function $t(i){return!!i&&(i instanceof yn.y||(0,wn.m)(i.lift)&&(0,wn.m)(i.subscribe))}var en=E(4742),oi=E(8421),_n=E(3269),at=E(5403),$i=E(3268),er=E(1810);function ma(...i){const a=(0,_n.jO)(i),{args:e,keys:t}=(0,en.D)(i),r=new yn.y(d=>{const{length:u}=e;if(!u)return void d.complete();const c=new Array(u);let o=u,s=u;for(let l=0;l{h||(h=!0,s--),c[l]=p},()=>o--,void 0,()=>{(!o||!h)&&(s||d.next(t?(0,er.n)(t,c):c),d.complete())}))}});return a?r.pipe((0,$i.Z)(a)):r}var tr=E(7272);function Rn(i){return new yn.y(a=>{(0,oi.Xf)(i()).subscribe(a)})}var ht=E(5698),Le=E(7579),Zi=E(6063);class Kr extends Le.x{constructor(a=1/0,e=1/0,t=Zi.l){super(),this._bufferSize=a,this._windowTime=e,this._timestampProvider=t,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,a),this._windowTime=Math.max(1,e)}next(a){const{isStopped:e,_buffer:t,_infiniteTimeWindow:r,_timestampProvider:d,_windowTime:u}=this;e||(t.push(a),!r&&t.push(d.now()+u)),this._trimBuffer(),super.next(a)}_subscribe(a){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(a),{_infiniteTimeWindow:t,_buffer:r}=this,d=r.slice();for(let u=0;unew Kr(t,a,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:r})}var Mt=E(4004),Fr=E(4351),An=E(3900);class ea{}let ga=(()=>{class i extends ea{getTranslation(e){return(0,Ee.of)({})}}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();class _a{}let xr=(()=>{class i{handle(e){return e.key}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();function Yn(i,a){if(i===a)return!0;if(null===i||null===a)return!1;if(i!=i&&a!=a)return!0;let r,d,u,e=typeof i;if(e==typeof a&&"object"==e){if(!Array.isArray(i)){if(Array.isArray(a))return!1;for(d in u=Object.create(null),i){if(!Yn(i[d],a[d]))return!1;u[d]=!0}for(d in a)if(!(d in u)&&typeof a[d]<"u")return!1;return!0}if(!Array.isArray(a))return!1;if((r=i.length)==a.length){for(d=0;d{fi(a[t])?t in i?e[t]=Ji(i[t],a[t]):Object.assign(e,{[t]:a[t]}):Object.assign(e,{[t]:a[t]})}),e}class cr{}let na=(()=>{class i extends cr{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(e,t){let r;return r="string"==typeof e?this.interpolateString(e,t):"function"==typeof e?this.interpolateFunction(e,t):e,r}getValue(e,t){let r="string"==typeof t?t.split("."):[t];t="";do{t+=r.shift(),!ta(e)||!ta(e[t])||"object"!=typeof e[t]&&r.length?r.length?t+=".":e=void 0:(e=e[t],t="")}while(r.length);return e}interpolateFunction(e,t){return e(t)}interpolateString(e,t){return t?e.replace(this.templateMatcher,(r,d)=>{let u=this.getValue(t,d);return ta(u)?u:r}):e}}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();class Sr{}let Qi=(()=>{class i extends Sr{compile(e,t){return e}compileTranslations(e,t){return e}}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();class ba{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new n.vpe,this.onLangChange=new n.vpe,this.onDefaultLangChange=new n.vpe}}const ho=new n.OlP("USE_STORE"),bs=new n.OlP("USE_DEFAULT_LANG"),Aa=new n.OlP("DEFAULT_LANGUAGE"),dr=new n.OlP("USE_EXTEND");let tn=(()=>{class i{constructor(e,t,r,d,u,c=!0,o=!1,s=!1,l){this.store=e,this.currentLoader=t,this.compiler=r,this.parser=d,this.missingTranslationHandler=u,this.useDefaultLang=c,this.isolate=o,this.extend=s,this.pending=!1,this._onTranslationChange=new n.vpe,this._onLangChange=new n.vpe,this._onDefaultLangChange=new n.vpe,this._langs=[],this._translations={},this._translationRequests={},l&&this.setDefaultLang(l)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(e){this.isolate?this._currentLang=e:this.store.currentLang=e}get langs(){return this.isolate?this._langs:this.store.langs}set langs(e){this.isolate?this._langs=e:this.store.langs=e}get translations(){return this.isolate?this._translations:this.store.translations}set translations(e){this.isolate?this._translations=e:this.store.translations=e}setDefaultLang(e){if(e===this.defaultLang)return;let t=this.retrieveTranslations(e);typeof t<"u"?(null==this.defaultLang&&(this.defaultLang=e),t.pipe((0,ht.q)(1)).subscribe(r=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(e===this.currentLang)return(0,Ee.of)(this.translations[e]);let t=this.retrieveTranslations(e);return typeof t<"u"?(this.currentLang||(this.currentLang=e),t.pipe((0,ht.q)(1)).subscribe(r=>{this.changeLang(e)}),t):(this.changeLang(e),(0,Ee.of)(this.translations[e]))}retrieveTranslations(e){let t;return(typeof this.translations[e]>"u"||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),t=this._translationRequests[e]),t}getTranslation(e){this.pending=!0;const t=this.currentLoader.getTranslation(e).pipe(bn(1),(0,ht.q)(1));return this.loadingTranslations=t.pipe((0,Mt.U)(r=>this.compiler.compileTranslations(r,e)),bn(1),(0,ht.q)(1)),this.loadingTranslations.subscribe({next:r=>{this.translations[e]=this.extend&&this.translations[e]?{...r,...this.translations[e]}:r,this.updateLangs(),this.pending=!1},error:r=>{this.pending=!1}}),t}setTranslation(e,t,r=!1){t=this.compiler.compileTranslations(t,e),this.translations[e]=(r||this.extend)&&this.translations[e]?Ji(this.translations[e],t):t,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return this.langs}addLangs(e){e.forEach(t=>{-1===this.langs.indexOf(t)&&this.langs.push(t)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(e,t,r){let d;if(t instanceof Array){let u={},c=!1;for(let o of t)u[o]=this.getParsedResult(e,o,r),$t(u[o])&&(c=!0);return c?ma(t.map(s=>$t(u[s])?u[s]:(0,Ee.of)(u[s]))).pipe((0,Mt.U)(s=>{let l={};return s.forEach((h,p)=>{l[t[p]]=h}),l})):u}if(e&&(d=this.parser.interpolate(this.parser.getValue(e,t),r)),typeof d>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(d=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],t),r)),typeof d>"u"){let u={key:t,translateService:this};typeof r<"u"&&(u.interpolateParams=r),d=this.missingTranslationHandler.handle(u)}return typeof d<"u"?d:t}get(e,t){if(!ta(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,Fr.b)(r=>$t(r=this.getParsedResult(r,e,t))?r:(0,Ee.of)(r)));{let r=this.getParsedResult(this.translations[this.currentLang],e,t);return $t(r)?r:(0,Ee.of)(r)}}getStreamOnTranslationChange(e,t){if(!ta(e)||!e.length)throw new Error('Parameter "key" required');return(0,tr.z)(Rn(()=>this.get(e,t)),this.onTranslationChange.pipe((0,An.w)(r=>{const d=this.getParsedResult(r.translations,e,t);return"function"==typeof d.subscribe?d:(0,Ee.of)(d)})))}stream(e,t){if(!ta(e)||!e.length)throw new Error('Parameter "key" required');return(0,tr.z)(Rn(()=>this.get(e,t)),this.onLangChange.pipe((0,An.w)(r=>{const d=this.getParsedResult(r.translations,e,t);return $t(d)?d:(0,Ee.of)(d)})))}instant(e,t){if(!ta(e)||!e.length)throw new Error('Parameter "key" required');let r=this.getParsedResult(this.translations[this.currentLang],e,t);if($t(r)){if(e instanceof Array){let d={};return e.forEach((u,c)=>{d[e[c]]=e[c]}),d}return e}return r}set(e,t,r=this.currentLang){this.translations[r][e]=this.compiler.compile(t,r),this.updateLangs(),this.onTranslationChange.emit({lang:r,translations:this.translations[r]})}changeLang(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),null==this.defaultLang&&this.changeDefaultLang(e)}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return this.resetLang(e),this.getTranslation(e)}resetLang(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof e>"u"?void 0:(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,e}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(ba),n.LFG(ea),n.LFG(Sr),n.LFG(cr),n.LFG(_a),n.LFG(bs),n.LFG(ho),n.LFG(dr),n.LFG(Aa))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})(),Ke=(()=>{class i{constructor(e,t){this.translate=e,this._ref=t,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(e,t,r){let d=u=>{this.value=void 0!==u?u:e,this.lastKey=e,this._ref.markForCheck()};if(r){let u=this.translate.getParsedResult(r,e,t);$t(u.subscribe)?u.subscribe(d):d(u)}this.translate.get(e,t).subscribe(d)}transform(e,...t){if(!e||!e.length)return e;if(Yn(e,this.lastKey)&&Yn(t,this.lastParams))return this.value;let r;if(ta(t[0])&&t.length)if("string"==typeof t[0]&&t[0].length){let d=t[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{r=JSON.parse(d)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${t[0]}`)}}else"object"==typeof t[0]&&!Array.isArray(t[0])&&(r=t[0]);return this.lastKey=e,this.lastParams=t,this.updateValue(e,r),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(d=>{this.lastKey&&d.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,r,d.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(d=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r,d.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(tn,16),n.Y36(n.sBO,16))},i.\u0275pipe=n.Yjl({name:"translate",type:i,pure:!1}),i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})(),po=(()=>{class i{static forRoot(e={}){return{ngModule:i,providers:[e.loader||{provide:ea,useClass:ga},e.compiler||{provide:Sr,useClass:Qi},e.parser||{provide:cr,useClass:na},e.missingTranslationHandler||{provide:_a,useClass:xr},ba,{provide:ho,useValue:e.isolate},{provide:bs,useValue:e.useDefaultLang},{provide:dr,useValue:e.extend},{provide:Aa,useValue:e.defaultLanguage},tn]}}static forChild(e={}){return{ngModule:i,providers:[e.loader||{provide:ea,useClass:ga},e.compiler||{provide:Sr,useClass:Qi},e.parser||{provide:cr,useClass:na},e.missingTranslationHandler||{provide:_a,useClass:xr},{provide:ho,useValue:e.isolate},{provide:bs,useValue:e.useDefaultLang},{provide:dr,useValue:e.extend},{provide:Aa,useValue:e.defaultLanguage},tn]}}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})(),Dd=(()=>{class i extends tn{instant(e,t){return String(super.instant(e,t))}}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();var C=E(529);class Wn{encodeKey(a){return encodeURIComponent(a)}encodeValue(a){return encodeURIComponent(a)}decodeKey(a){return decodeURIComponent(a)}decodeValue(a){return decodeURIComponent(a)}}const Vn=new n.OlP("basePath");class It{constructor(a={}){this.apiKeys=a.apiKeys,this.username=a.username,this.password=a.password,this.accessToken=a.accessToken,this.basePath=a.basePath,this.withCredentials=a.withCredentials,this.encoder=a.encoder,this.credentials=a.credentials?a.credentials:{},this.credentials.BasicAuth||(this.credentials.BasicAuth=()=>this.username||this.password?btoa(this.username+":"+this.password):void 0),this.credentials.BearerAuth||(this.credentials.BearerAuth=()=>"function"==typeof this.accessToken?this.accessToken():this.accessToken)}selectHeaderContentType(a){if(0===a.length)return;const e=a.find(t=>this.isJsonMime(t));return void 0===e?a[0]:e}selectHeaderAccept(a){if(0===a.length)return;const e=a.find(t=>this.isJsonMime(t));return void 0===e?a[0]:e}isJsonMime(a){const e=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==a&&(e.test(a)||"application/json-patch+json"===a.toLowerCase())}lookupCredential(a){const e=this.credentials[a];return"function"==typeof e?e():e}}let jn=(()=>{class i{constructor(e,t,r){this.httpClient=e,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new C.WM,this.configuration=new It,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Wn}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(d=>e=this.addToHttpParamsRecursive(e,d,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(d=>e=this.addToHttpParamsRecursive(e,t[d],null!=r?`${r}.${d}`:d));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}convertAttributeToNonunique(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToNonunique.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeDefinition"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToNonunique`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}convertAttributeToUnique(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToUnique.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeDefinition"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToUnique`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}createAttributeDefinition(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputCreateAttributeDefinition was null or undefined when calling createAttributeDefinition.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/createAttribute`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}deleteAttributeDefinition(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter attribute was null or undefined when calling deleteAttributeDefinition.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attribute"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttribute`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}deleteAttributeDefinitions(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter attributes was null or undefined when calling deleteAttributeDefinitions.");let c=new C.LE({encoder:this.encoder});e&&e.forEach(g=>{c=this.addToHttpParams(c,g,"attributes[]")});let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttributes`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAllAttributeDefinitions(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/attributesManager/getAttributesDefinition`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}getAttribute(e,t,r,d,u,c,o,s,l,h,p,m=!1,g="body",f=!1,w){let N=new C.LE({encoder:this.encoder});null!=e&&(N=this.addToHttpParams(N,e,"attributeName")),null!=t&&(N=this.addToHttpParams(N,t,"attributeId")),null!=r&&(N=this.addToHttpParams(N,r,"facility")),null!=d&&(N=this.addToHttpParams(N,d,"user")),null!=u&&(N=this.addToHttpParams(N,u,"vo")),null!=c&&(N=this.addToHttpParams(N,c,"resource")),null!=o&&(N=this.addToHttpParams(N,o,"member")),null!=s&&(N=this.addToHttpParams(N,s,"group")),null!=l&&(N=this.addToHttpParams(N,l,"host")),null!=h&&(N=this.addToHttpParams(N,h,"userExtSource")),null!=p&&(N=this.addToHttpParams(N,p,"key"));let Pe,se=this.defaultHeaders;Pe=this.configuration.lookupCredential("BasicAuth"),Pe&&(se=se.set("Authorization","Basic "+Pe)),Pe=this.configuration.lookupCredential("BearerAuth"),Pe&&(se=se.set("Authorization","Bearer "+Pe));let ot=w&&w.httpHeaderAccept;void 0===ot&&(ot=this.configuration.selectHeaderAccept(["application/json"])),void 0!==ot&&(se=se.set("Accept",ot));let Mi=w&&w.context;void 0===Mi&&(Mi=new C.qT);let Pi="json";ot&&(Pi=ot.startsWith("text")?"text":this.configuration.isJsonMime(ot)?"json":"blob");let Fi=`${this.configuration.basePath}/json/attributesManager/getAttribute/any`;if(m){let or=new URL(Fi),Xu=or.pathname.split("/");Xu[1]="non",or.pathname=Xu.join("/"),Fi=or.toString()}return this.httpClient.get(Fi,{context:Mi,params:N,responseType:Pi,withCredentials:this.configuration.withCredentials,headers:se,observe:g,reportProgress:f})}getAttributeDefinitionById(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter id was null or undefined when calling getAttributeDefinitionById.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributeDefinitionById`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAttributeDefinitionByName(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getAttributeDefinitionByName.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeName"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributeDefinition`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAttributeDefinitionsByNamespace(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter namespace was null or undefined when calling getAttributeDefinitionsByNamespace.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"namespace"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributesDefinitionByNamespace`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAttributeModulesDependenciesForAttributeGraphText(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");if(null==t)throw new Error("Required parameter attrName was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"format")),null!=t&&(o=this.addToHttpParams(o,t,"attrName"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText/for-attribute`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getAttributeModulesDependenciesGraphText(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesGraphText.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"format"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAttributePolicyCollections(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getAttributePolicyCollections.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeId"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributePolicyCollections`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAttributeRights(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getAttributeRights.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeId"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributeRights`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAttributeRules(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling getAttributeRules.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeDefinition"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributeRules`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAttributesDefinitionWithRights(e,t,r,d,u,c,o,s,l=!1,h="body",p=!1,m){let g=new C.LE({encoder:this.encoder});null!=e&&(g=this.addToHttpParams(g,e,"member")),null!=t&&(g=this.addToHttpParams(g,t,"user")),null!=r&&(g=this.addToHttpParams(g,r,"vo")),null!=d&&(g=this.addToHttpParams(g,d,"group")),null!=u&&(g=this.addToHttpParams(g,u,"resource")),null!=c&&(g=this.addToHttpParams(g,c,"facility")),null!=o&&(g=this.addToHttpParams(g,o,"host")),null!=s&&(g=this.addToHttpParams(g,s,"userExtSource"));let w,f=this.defaultHeaders;w=this.configuration.lookupCredential("BasicAuth"),w&&(f=f.set("Authorization","Basic "+w)),w=this.configuration.lookupCredential("BearerAuth"),w&&(f=f.set("Authorization","Bearer "+w));let N=m&&m.httpHeaderAccept;void 0===N&&(N=this.configuration.selectHeaderAccept(["application/json"])),void 0!==N&&(f=f.set("Accept",N));let se=m&&m.context;void 0===se&&(se=new C.qT);let Pe="json";N&&(Pe=N.startsWith("text")?"text":this.configuration.isJsonMime(N)?"json":"blob");let ot=`${this.configuration.basePath}/urlinjsonout/attributesManager/getAttributesDefinitionWithRights`;if(l){let Mi=new URL(ot),Pi=Mi.pathname.split("/");Pi[1]="non",Mi.pathname=Pi.join("/"),ot=Mi.toString()}return this.httpClient.get(ot,{context:se,params:g,responseType:Pe,withCredentials:this.configuration.withCredentials,headers:f,observe:h,reportProgress:p})}getEntitylessAttributeByName(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getEntitylessAttributeByName.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"key")),null!=t&&(o=this.addToHttpParams(o,t,"attributeName"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-entityless`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getEntitylessAttributesByKey(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributesByKey.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"key"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/key`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getEntitylessAttributesByName(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesByName.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attrName"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributes`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getEntitylessAttributesWithKeys(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesWithKeys.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"attrName")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"keys[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributesWithKeys`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getEntitylessKeys(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling getEntitylessKeys.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeDefinition"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getEntitylessKeys`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getFacilityAttributeById(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getFacilityAttributeById.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"facility")),null!=t&&(o=this.addToHttpParams(o,t,"attributeId"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-facility`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getFacilityAttributeByName(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getFacilityAttributeByName.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"facility")),null!=t&&(o=this.addToHttpParams(o,t,"attributeName"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-facility`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getFacilityAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributes.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"facility"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/f`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getFacilityAttributesByNames(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getFacilityAttributesByNames.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"facility")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/f-names`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getFacilityResourceUserMemberAttributes(e,t,r,d,u=!1,c="body",o=!1,s){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==r)throw new Error("Required parameter user was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==d)throw new Error("Required parameter member was null or undefined when calling getFacilityResourceUserMemberAttributes.");let l=new C.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"facility")),null!=t&&(l=this.addToHttpParams(l,t,"resource")),null!=r&&(l=this.addToHttpParams(l,r,"user")),null!=d&&(l=this.addToHttpParams(l,d,"member"));let p,h=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(h=h.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(h=h.set("Authorization","Bearer "+p));let m=s&&s.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(h=h.set("Accept",m));let g=s&&s.context;void 0===g&&(g=new C.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/attributesManager/getAttributes/f-r-u-m`;if(u){let N=new URL(w),se=N.pathname.split("/");se[1]="non",N.pathname=se.join("/"),w=N.toString()}return this.httpClient.get(w,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:h,observe:c,reportProgress:o})}getFacilityUserAttributes(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityUserAttributes.");if(null==t)throw new Error("Required parameter user was null or undefined when calling getFacilityUserAttributes.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"facility")),null!=t&&(o=this.addToHttpParams(o,t,"user"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/f-u`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getGroupAttributeById(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getGroupAttributeById.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"attributeId"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getGroupAttributeByName(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getGroupAttributeByName.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"attributeName"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getGroupAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributes.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/g`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getGroupAttributesByNames(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getGroupAttributesByNames.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/g-names`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getGroupResourceAttributeById(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeById.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeById.");if(null==r)throw new Error("Required parameter attributeId was null or undefined when calling getGroupResourceAttributeById.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"resource")),null!=r&&(s=this.addToHttpParams(s,r,"attributeId"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group-resource`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}getGroupResourceAttributeByName(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeByName.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeByName.");if(null==r)throw new Error("Required parameter attributeName was null or undefined when calling getGroupResourceAttributeByName.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"resource")),null!=r&&(s=this.addToHttpParams(s,r,"attributeName"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group-resource`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}getGroupResourceAttributes(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributes.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"resource"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/group-resource`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getHostAttributeById(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getHostAttributeById.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"host")),null!=t&&(o=this.addToHttpParams(o,t,"attributeId"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-host`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getHostAttributeByName(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getHostAttributeByName.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"host")),null!=t&&(o=this.addToHttpParams(o,t,"attributeName"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-host`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getHostAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributes.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"host"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/h`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getHostAttributesByNames(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getHostAttributesByNames.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"host")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/h-names`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getIdpAttributeDefinitions(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/attributesManager/getIdpAttributeDefinitions`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}getLogins(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter user was null or undefined when calling getLogins.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getLogins`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getMemberAndUserAttributes(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributes.");if(null==t)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributes.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"workWithUserAttributes"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-wu`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getMemberAndUserAttributesByNames(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==r)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributesByNames.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),t&&t.forEach(w=>{s=this.addToHttpParams(s,w,"attrNames[]")}),null!=r&&(s=this.addToHttpParams(s,r,"workWithUserAttributes"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names-wu`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}getMemberAttributeById(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getMemberAttributeById.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"attributeId"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getMemberAttributeByName(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getMemberAttributeByName.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"attributeName"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getMemberAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributes.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/m`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getMemberAttributesByNames(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAttributesByNames.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getMemberGroupAndUserAttributesByNames(e,t,r,d,u=!1,c="body",o=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==r)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==d)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberGroupAndUserAttributesByNames.");let l=new C.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"member")),null!=t&&(l=this.addToHttpParams(l,t,"group")),r&&r.forEach(N=>{l=this.addToHttpParams(l,N,"attrNames[]")}),null!=d&&(l=this.addToHttpParams(l,d,"workWithUserAttributes"));let p,h=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(h=h.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(h=h.set("Authorization","Bearer "+p));let m=s&&s.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(h=h.set("Accept",m));let g=s&&s.context;void 0===g&&(g=new C.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names-wu`;if(u){let N=new URL(w),se=N.pathname.split("/");se[1]="non",N.pathname=se.join("/"),w=N.toString()}return this.httpClient.get(w,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:h,observe:c,reportProgress:o})}getMemberGroupAttributeById(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeById.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeById.");if(null==r)throw new Error("Required parameter attributeId was null or undefined when calling getMemberGroupAttributeById.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"group")),null!=r&&(s=this.addToHttpParams(s,r,"attributeId"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-group`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}getMemberGroupAttributeByName(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeByName.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeByName.");if(null==r)throw new Error("Required parameter attributeName was null or undefined when calling getMemberGroupAttributeByName.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"group")),null!=r&&(s=this.addToHttpParams(s,r,"attributeName"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-group`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}getMemberGroupAttributes(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributes.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getMemberGroupAttributesByNames(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributesByNames.");if(null==r)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAttributesByNames.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"group")),r&&r.forEach(w=>{s=this.addToHttpParams(s,w,"attrNames[]")});let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}getMemberResourceAndUserFacilityAttributes(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==r)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"resource")),null!=r&&(s=this.addToHttpParams(s,r,"workWithUserAttributes"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-wu`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}getMemberResourceAndUserFacilityAttributesByNames(e,t,r,d,u=!1,c="body",o=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==r)throw new Error("Required parameter attrNames was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==d)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");let l=new C.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"member")),null!=t&&(l=this.addToHttpParams(l,t,"resource")),r&&r.forEach(N=>{l=this.addToHttpParams(l,N,"attrNames[]")}),null!=d&&(l=this.addToHttpParams(l,d,"workWithUserAttributes"));let p,h=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(h=h.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(h=h.set("Authorization","Bearer "+p));let m=s&&s.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(h=h.set("Accept",m));let g=s&&s.context;void 0===g&&(g=new C.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-names-wu`;if(u){let N=new URL(w),se=N.pathname.split("/");se[1]="non",N.pathname=se.join("/"),w=N.toString()}return this.httpClient.get(w,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:h,observe:c,reportProgress:o})}getMemberResourceAttributeById(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeById.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeById.");if(null==r)throw new Error("Required parameter attributeId was null or undefined when calling getMemberResourceAttributeById.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"resource")),null!=r&&(s=this.addToHttpParams(s,r,"attributeId"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-resource`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}getMemberResourceAttributeByName(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeByName.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeByName.");if(null==r)throw new Error("Required parameter attributeName was null or undefined when calling getMemberResourceAttributeByName.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"resource")),null!=r&&(s=this.addToHttpParams(s,r,"attributeName"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-resource`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}getMemberResourceAttributes(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributes.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"resource"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getRequiredAttributesDefinition(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesDefinition.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"service"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributesDefinition`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getRequiredAttributesFacility(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacility.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"facility"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/f`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getRequiredAttributesFacilityService(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesFacilityService.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityService.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"service")),null!=t&&(o=this.addToHttpParams(o,t,"facility"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-f`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getRequiredAttributesFacilityServices(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesFacilityServices.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityServices.");let o=new C.LE({encoder:this.encoder});e&&e.forEach(f=>{o=this.addToHttpParams(o,f,"services[]")}),null!=t&&(o=this.addToHttpParams(o,t,"facility"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-f`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getRequiredAttributesGroupResourceService(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==r)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesGroupResourceService.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"service")),null!=t&&(s=this.addToHttpParams(s,t,"resource")),null!=r&&(s=this.addToHttpParams(s,r,"group"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}getRequiredAttributesHostService(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesHostService.");if(null==t)throw new Error("Required parameter host was null or undefined when calling getRequiredAttributesHostService.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"service")),null!=t&&(o=this.addToHttpParams(o,t,"host"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-h`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getRequiredAttributesMember(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMember.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"workWithUserAttributes"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getRequiredAttributesMemberGroup(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroup.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroup.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"group")),null!=r&&(s=this.addToHttpParams(s,r,"workWithUserAttributes"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-g`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}getRequiredAttributesMemberGroupResourceService(e,t,r,d,u,c=!1,o="body",s=!1,l){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==r)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==d)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");let h=new C.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"service")),null!=t&&(h=this.addToHttpParams(h,t,"resource")),null!=r&&(h=this.addToHttpParams(h,r,"group")),null!=d&&(h=this.addToHttpParams(h,d,"member")),null!=u&&(h=this.addToHttpParams(h,u,"workWithUserAttributes"));let m,p=this.defaultHeaders;m=this.configuration.lookupCredential("BasicAuth"),m&&(p=p.set("Authorization","Basic "+m)),m=this.configuration.lookupCredential("BearerAuth"),m&&(p=p.set("Authorization","Bearer "+m));let g=l&&l.httpHeaderAccept;void 0===g&&(g=this.configuration.selectHeaderAccept(["application/json"])),void 0!==g&&(p=p.set("Accept",g));let f=l&&l.context;void 0===f&&(f=new C.qT);let w="json";g&&(w=g.startsWith("text")?"text":this.configuration.isJsonMime(g)?"json":"blob");let N=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g-m`;if(c){let se=new URL(N),Pe=se.pathname.split("/");Pe[1]="non",se.pathname=Pe.join("/"),N=se.toString()}return this.httpClient.get(N,{context:f,params:h,responseType:w,withCredentials:this.configuration.withCredentials,headers:p,observe:o,reportProgress:s})}getRequiredAttributesMemberGroupService(e,t,r,d,u=!1,c="body",o=!1,s){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==r)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupService.");let l=new C.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"service")),null!=t&&(l=this.addToHttpParams(l,t,"group")),null!=r&&(l=this.addToHttpParams(l,r,"member")),null!=d&&(l=this.addToHttpParams(l,d,"workWithUserAttributes"));let p,h=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(h=h.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(h=h.set("Authorization","Bearer "+p));let m=s&&s.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(h=h.set("Accept",m));let g=s&&s.context;void 0===g&&(g=new C.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-g-m`;if(u){let N=new URL(w),se=N.pathname.split("/");se[1]="non",N.pathname=se.join("/"),w=N.toString()}return this.httpClient.get(w,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:h,observe:c,reportProgress:o})}getRequiredAttributesMemberResource(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResource.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResource.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"resource")),null!=r&&(s=this.addToHttpParams(s,r,"workWithUserAttributes"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-r`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}getRequiredAttributesMemberResourceService(e,t,r,d,u=!1,c="body",o=!1,s){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==r)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResourceService.");let l=new C.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"service")),null!=t&&(l=this.addToHttpParams(l,t,"resource")),null!=r&&(l=this.addToHttpParams(l,r,"member")),null!=d&&(l=this.addToHttpParams(l,d,"workWithUserAttributes"));let p,h=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(h=h.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(h=h.set("Authorization","Bearer "+p));let m=s&&s.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(h=h.set("Accept",m));let g=s&&s.context;void 0===g&&(g=new C.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-m`;if(u){let N=new URL(w),se=N.pathname.split("/");se[1]="non",N.pathname=se.join("/"),w=N.toString()}return this.httpClient.get(w,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:h,observe:c,reportProgress:o})}getRequiredAttributesResource(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResource.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/r`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getRequiredAttributesResourceService(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceService.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"service")),null!=t&&(o=this.addToHttpParams(o,t,"resource"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getRequiredAttributesResourceServices(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesResourceServices.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceServices.");let o=new C.LE({encoder:this.encoder});e&&e.forEach(f=>{o=this.addToHttpParams(o,f,"services[]")}),null!=t&&(o=this.addToHttpParams(o,t,"resource"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-r`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getRequiredAttributesUser(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUser.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getRequiredAttributesUserFacility(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUserFacility.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesUserFacility.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"facility"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u-f`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getRequiredAttributesVoService(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesVoService.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling getRequiredAttributesVoService.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"service")),null!=t&&(o=this.addToHttpParams(o,t,"vo"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-v`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getResourceAttributeById(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getResourceAttributeById.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"attributeId"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-resource`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getResourceAttributeByName(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getResourceAttributeByName.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"attributeName"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-resource`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getResourceAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributes.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/r`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getResourceAttributesByNames(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getResourceAttributesByNames.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-names`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getResourceGroupAndGroupAttributes(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==r)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributes.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"group")),null!=r&&(s=this.addToHttpParams(s,r,"workWithGroupAttributes"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-wg`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}getResourceGroupAndGroupAttributesByNames(e,t,r,d,u=!1,c="body",o=!1,s){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==r)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==d)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");let l=new C.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"resource")),null!=t&&(l=this.addToHttpParams(l,t,"group")),r&&r.forEach(N=>{l=this.addToHttpParams(l,N,"attrNames[]")}),null!=d&&(l=this.addToHttpParams(l,d,"workWithGroupAttributes"));let p,h=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(h=h.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(h=h.set("Authorization","Bearer "+p));let m=s&&s.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(h=h.set("Accept",m));let g=s&&s.context;void 0===g&&(g=new C.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-names-wg`;if(u){let N=new URL(w),se=N.pathname.split("/");se[1]="non",N.pathname=se.join("/"),w=N.toString()}return this.httpClient.get(w,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:h,observe:c,reportProgress:o})}getResourceGroupAttributes(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAttributes.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"group"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getResourceGroupMemberAttributesByNames(e,t,r,d,u=!1,c="body",o=!1,s){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==r)throw new Error("Required parameter member was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==d)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupMemberAttributesByNames.");let l=new C.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"resource")),null!=t&&(l=this.addToHttpParams(l,t,"group")),null!=r&&(l=this.addToHttpParams(l,r,"member")),d&&d.forEach(N=>{l=this.addToHttpParams(l,N,"attrNames[]")});let p,h=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(h=h.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(h=h.set("Authorization","Bearer "+p));let m=s&&s.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(h=h.set("Accept",m));let g=s&&s.context;void 0===g&&(g=new C.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-m-names`;if(u){let N=new URL(w),se=N.pathname.split("/");se[1]="non",N.pathname=se.join("/"),w=N.toString()}return this.httpClient.get(w,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:h,observe:c,reportProgress:o})}getUserAttributeById(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getUserAttributeById.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"attributeId"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getUserAttributeByName(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getUserAttributeByName.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"attributeName"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getUserAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributes.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/u`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getUserAttributesByNames(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getUserAttributesByNames.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/u-names`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getUserExtSourceAttributeById(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceAttributeById.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"userExtSource")),null!=t&&(o=this.addToHttpParams(o,t,"attributeId"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-ues`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getUserExtSourceAttributeByName(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceAttributeByName.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"userExtSource")),null!=t&&(o=this.addToHttpParams(o,t,"attributeName"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-ues`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getUserExtSourceAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributes.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"userExtSource"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/ues`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getUserExtSourceAttributesByNames(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getUserExtSourceAttributesByNames.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"userExtSource")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/ues-names`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getUserFacilityAttributeById(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeById.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeById.");if(null==r)throw new Error("Required parameter attributeId was null or undefined when calling getUserFacilityAttributeById.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"facility")),null!=r&&(s=this.addToHttpParams(s,r,"attributeId"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user_facility`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}getUserFacilityAttributeByName(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeByName.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeByName.");if(null==r)throw new Error("Required parameter attributeName was null or undefined when calling getUserFacilityAttributeByName.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"facility")),null!=r&&(s=this.addToHttpParams(s,r,"attributeName"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user_facility`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}getUserFacilityAttributes(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributes.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributes.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"facility"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/user-facility`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getVoAttributeById(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getVoAttributeById.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"attributeId"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/id-vo`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getVoAttributeByName(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getVoAttributeByName.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"attributeName"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttribute/name-vo`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getVoAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributes.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/attributesManager/getAttributes/vo`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getVoAttributesByNames(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getVoAttributesByNames.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/getAttributes/vo-names`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeAttributesForFacilityResourceGroupUserMember(e,t,r,d,u,c,o=!1,s="body",l=!1,h){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==r)throw new Error("Required parameter group was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==d)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==u)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==c)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");let p=new C.LE({encoder:this.encoder});null!=e&&(p=this.addToHttpParams(p,e,"facility")),null!=t&&(p=this.addToHttpParams(p,t,"resource")),null!=r&&(p=this.addToHttpParams(p,r,"group")),null!=d&&(p=this.addToHttpParams(p,d,"user")),null!=u&&(p=this.addToHttpParams(p,u,"member")),c&&c.forEach(Pe=>{p=this.addToHttpParams(p,Pe,"attributes[]")});let g,m=this.defaultHeaders;g=this.configuration.lookupCredential("BasicAuth"),g&&(m=m.set("Authorization","Basic "+g)),g=this.configuration.lookupCredential("BearerAuth"),g&&(m=m.set("Authorization","Bearer "+g));let f=h&&h.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(m=m.set("Accept",f));let w=h&&h.context;void 0===w&&(w=new C.qT);let N="json";f&&(N=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob");let se=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-g-u-m`;if(o){let Pe=new URL(se),ot=Pe.pathname.split("/");ot[1]="non",Pe.pathname=ot.join("/"),se=Pe.toString()}return this.httpClient.post(se,null,{context:w,params:p,responseType:N,withCredentials:this.configuration.withCredentials,headers:m,observe:s,reportProgress:l})}removeAttributesForFacilityResourceUserMember(e,t,r,d,u,c=!1,o="body",s=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==r)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==d)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==u)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceUserMember.");let h=new C.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"facility")),null!=t&&(h=this.addToHttpParams(h,t,"resource")),null!=r&&(h=this.addToHttpParams(h,r,"user")),null!=d&&(h=this.addToHttpParams(h,d,"member")),u&&u.forEach(se=>{h=this.addToHttpParams(h,se,"attributes[]")});let m,p=this.defaultHeaders;m=this.configuration.lookupCredential("BasicAuth"),m&&(p=p.set("Authorization","Basic "+m)),m=this.configuration.lookupCredential("BearerAuth"),m&&(p=p.set("Authorization","Bearer "+m));let g=l&&l.httpHeaderAccept;void 0===g&&(g=this.configuration.selectHeaderAccept(["application/json"])),void 0!==g&&(p=p.set("Accept",g));let f=l&&l.context;void 0===f&&(f=new C.qT);let w="json";g&&(w=g.startsWith("text")?"text":this.configuration.isJsonMime(g)?"json":"blob");let N=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-u-m`;if(c){let se=new URL(N),Pe=se.pathname.split("/");Pe[1]="non",se.pathname=Pe.join("/"),N=se.toString()}return this.httpClient.post(N,null,{context:f,params:h,responseType:w,withCredentials:this.configuration.withCredentials,headers:p,observe:o,reportProgress:s})}removeEntitylessAttribute(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter key was null or undefined when calling removeEntitylessAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeEntitylessAttribute.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"key")),null!=t&&(o=this.addToHttpParams(o,t,"attribute"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/e`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeFacilityAttribute(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeFacilityAttribute.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"facility")),null!=t&&(o=this.addToHttpParams(o,t,"attribute"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/f`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeFacilityAttributes(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeFacilityAttributes.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"facility")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attributes[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeGroupAttribute(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeGroupAttribute.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"attribute"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeGroupAttributes(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeGroupAttributes.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attributes[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeGroupResourceAttribute(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttribute.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttribute.");if(null==r)throw new Error("Required parameter attribute was null or undefined when calling removeGroupResourceAttribute.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"resource")),null!=r&&(s=this.addToHttpParams(s,r,"attribute"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g-r`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}removeGroupResourceAttributes(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributes.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributes.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"resource")),r&&r.forEach(w=>{s=this.addToHttpParams(s,w,"attributes[]")});let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}removeGroupResourceAttributesWorkWithGroupAttributes(e,t,r,d,u=!1,c="body",o=!1,s){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==d)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");let l=new C.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"group")),null!=t&&(l=this.addToHttpParams(l,t,"resource")),r&&r.forEach(N=>{l=this.addToHttpParams(l,N,"attributes[]")}),null!=d&&(l=this.addToHttpParams(l,d,"workWithGroupAttributes"));let p,h=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(h=h.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(h=h.set("Authorization","Bearer "+p));let m=s&&s.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(h=h.set("Accept",m));let g=s&&s.context;void 0===g&&(g=new C.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r-workWithGroupAttributes`;if(u){let N=new URL(w),se=N.pathname.split("/");se[1]="non",N.pathname=se.join("/"),w=N.toString()}return this.httpClient.post(w,null,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:h,observe:c,reportProgress:o})}removeHostAttribute(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling removeHostAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeHostAttribute.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"host")),null!=t&&(o=this.addToHttpParams(o,t,"attribute"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/h`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeHostAttributes(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling removeHostAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeHostAttributes.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"host")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attributes[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/h`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeMemberAttribute(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeMemberAttribute.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"attribute"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeMemberAttributes(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributes.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attributes[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeMemberAttributesWorkWithUserAttributes(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==r)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),t&&t.forEach(w=>{s=this.addToHttpParams(s,w,"attributes[]")}),null!=r&&(s=this.addToHttpParams(s,r,"workWithUserAttributes"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-workWithUserAttributes`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}removeMemberGroupAttribute(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttribute.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttribute.");if(null==r)throw new Error("Required parameter attribute was null or undefined when calling removeMemberGroupAttribute.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"group")),null!=r&&(s=this.addToHttpParams(s,r,"attribute"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-g`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}removeMemberGroupAttributes(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributes.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributes.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"group")),r&&r.forEach(w=>{s=this.addToHttpParams(s,w,"attributes[]")});let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}removeMemberGroupAttributesWorkWithUserAttributes(e,t,r,d,u=!1,c="body",o=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==d)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");let l=new C.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"member")),null!=t&&(l=this.addToHttpParams(l,t,"group")),r&&r.forEach(N=>{l=this.addToHttpParams(l,N,"attributes[]")}),null!=d&&(l=this.addToHttpParams(l,d,"workWithUserAttributes"));let p,h=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(h=h.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(h=h.set("Authorization","Bearer "+p));let m=s&&s.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(h=h.set("Accept",m));let g=s&&s.context;void 0===g&&(g=new C.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g-workWithUserAttributes`;if(u){let N=new URL(w),se=N.pathname.split("/");se[1]="non",N.pathname=se.join("/"),w=N.toString()}return this.httpClient.post(w,null,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:h,observe:c,reportProgress:o})}removeMemberResourceAttribute(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttribute.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttribute.");if(null==r)throw new Error("Required parameter attribute was null or undefined when calling removeMemberResourceAttribute.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"resource")),null!=r&&(s=this.addToHttpParams(s,r,"attribute"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-r`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}removeMemberResourceAttributes(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttributes.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeMemberResourceAttributes.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"resource")),r&&r.forEach(w=>{s=this.addToHttpParams(s,w,"attributes[]")});let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-r`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}removeResourceAttribute(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeResourceAttribute.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"attribute"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/r`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeResourceAttributes(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeResourceAttributes.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attributes[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/r`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeUesAttributes(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling removeUesAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeUesAttributes.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"userExtSource")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attributes[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/ues`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeUserAttribute(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeUserAttribute.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"attribute"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeUserAttributes(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeUserAttributes.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attributes[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeUserExtSourceAttribute(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSourceAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeUserExtSourceAttribute.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"userExtSource")),null!=t&&(o=this.addToHttpParams(o,t,"attribute"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/ues`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeUserFacilityAttribute(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttribute.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttribute.");if(null==r)throw new Error("Required parameter attribute was null or undefined when calling removeUserFacilityAttribute.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"facility")),null!=r&&(s=this.addToHttpParams(s,r,"attribute"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u-f`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}removeUserFacilityAttributes(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttributes.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttributes.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeUserFacilityAttributes.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"facility")),r&&r.forEach(w=>{s=this.addToHttpParams(s,w,"attributes[]")});let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u-f`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}removeVoAttribute(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeVoAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeVoAttribute.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"attribute"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/v`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeVoAttributes(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeVoAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeVoAttributes.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attributes[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/v`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}setAttributeActionCriticality(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling setAttributeActionCriticality.");if(null==t)throw new Error("Required parameter action was null or undefined when calling setAttributeActionCriticality.");if(null==r)throw new Error("Required parameter critical was null or undefined when calling setAttributeActionCriticality.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"attributeDefinition")),null!=t&&(s=this.addToHttpParams(s,t,"action")),null!=r&&(s=this.addToHttpParams(s,r,"critical"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/attributesManager/setAttributeActionCriticality`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}setAttributePolicyCollections(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputAttributePolicyCollections was null or undefined when calling setAttributePolicyCollections.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributePolicyCollections`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setAttributeRights(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputAttributeRights was null or undefined when calling setAttributeRights.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributeRights`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setEntitylessAttribute(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputEntitylessAttribute was null or undefined when calling setEntitylessAttribute.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/entityless`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setFacilityAttribute(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetFacilityAttribute was null or undefined when calling setFacilityAttribute.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/facility`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setFacilityAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetFacilityAttributes was null or undefined when calling setFacilityAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/f`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setFacilityResourceGroupUserMemberAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetFacilityResourceGroupUserMemberAttributes was null or undefined when calling setFacilityResourceGroupUserMemberAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-g-u-m`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setFacilityResourceUserMemberAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetFacilityResourceUserMemberAttributes was null or undefined when calling setFacilityResourceUserMemberAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-u-m`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setFacilityUserAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetFacilityUserAttributes was null or undefined when calling setFacilityUserAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/f-u`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setGroupAttribute(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetGroupAttribute was null or undefined when calling setGroupAttribute.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/group`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setGroupAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetGroupAttributes was null or undefined when calling setGroupAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/g`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setGroupResourceAttribute(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetGroupResourceAttribute was null or undefined when calling setGroupResourceAttribute.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/group-resource`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setGroupResourceAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetGroupResourceAttributes was null or undefined when calling setGroupResourceAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/group-resource`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setHostAttribute(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetHostAttribute was null or undefined when calling setHostAttribute.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/host`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setHostAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetHostAttributes was null or undefined when calling setHostAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/h`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setMemberAttribute(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetMemberAttribute was null or undefined when calling setMemberAttribute.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/member`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setMemberAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetMemberAttributes was null or undefined when calling setMemberAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/m`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setMemberGroupAttribute(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetMemberGroupAttribute was null or undefined when calling setMemberGroupAttribute.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/member-group`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setMemberGroupAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetMemberGroupAttributes was null or undefined when calling setMemberGroupAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setMemberGroupWithUserAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetMemberGroupWithUserAttributes was null or undefined when calling setMemberGroupWithUserAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g-wu`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setMemberResourceAndUserAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetMemberResourceAndUserAttributes was null or undefined when calling setMemberResourceAndUserAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r-wu`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setMemberResourceAttribute(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetMemberResourceAttribute was null or undefined when calling setMemberResourceAttribute.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/member-resource`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setMemberResourceAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetMemberResourceAttributes was null or undefined when calling setMemberResourceAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setMemberWithUserAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetMemberWithUserAttributes was null or undefined when calling setMemberWithUserAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/m-wu`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setResourceAttribute(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetResourceAttribute was null or undefined when calling setResourceAttribute.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/resource`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setResourceAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetResourceAttributes was null or undefined when calling setResourceAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/r`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setResourceGroupAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetResourceGroupAttributes was null or undefined when calling setResourceGroupAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setResourceGroupWithGroupAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetResourceGroupWithGroupAttributes was null or undefined when calling setResourceGroupWithGroupAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g-wg`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setUserAttribute(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetUserAttribute was null or undefined when calling setUserAttribute.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/user`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setUserAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetUserAttributes was null or undefined when calling setUserAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/u`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setUserExtSourceAttribute(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetUserExtSourceAttribute was null or undefined when calling setUserExtSourceAttribute.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/userExtSource`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setUserExtSourceAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetUserExtSourceAttributes was null or undefined when calling setUserExtSourceAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/ues`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setUserFacilityAttribute(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetUserFacilityAttribute was null or undefined when calling setUserFacilityAttribute.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/facility-user`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setUserFacilityAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetUserFacilityAttributes was null or undefined when calling setUserFacilityAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/facility-user`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setVoAttribute(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetVoAttribute was null or undefined when calling setVoAttribute.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttribute/vo`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setVoAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetVoAttributes was null or undefined when calling setVoAttributes.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/setAttributes/vo`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}updateAttributeDefinition(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputAttributeDefinition was null or undefined when calling updateAttributeDefinition.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/attributesManager/updateAttributeDefinition`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(C.eN),n.LFG(Vn,8),n.LFG(It,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),As=(()=>{class i{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new C.WM,this.configuration=new It,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Wn}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(d=>e=this.addToHttpParamsRecursive(e,d,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(d=>e=this.addToHttpParamsRecursive(e,t[d],null!=r?`${r}.${d}`:d));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}getAllPolicies(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/authzResolver/getAllPolicies`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}getAllRolesManagementRules(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/authzResolver/getAllRolesManagementRules`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}getAuthzAdminGroups(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter role was null or undefined when calling getAuthzAdminGroups.");if(null==t)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzAdminGroups.");if(null==r)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzAdminGroups.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"role")),null!=t&&(s=this.addToHttpParams(s,t,"complementaryObjectId")),null!=r&&(s=this.addToHttpParams(s,r,"complementaryObjectName"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/authzResolver/getAdminGroups`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}getAuthzRichAdmins(e,t,r,d,u,c,o=!1,s="body",l=!1,h){if(null==e)throw new Error("Required parameter role was null or undefined when calling getAuthzRichAdmins.");if(null==t)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzRichAdmins.");if(null==r)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzRichAdmins.");if(null==d)throw new Error("Required parameter specificAttributes was null or undefined when calling getAuthzRichAdmins.");let p=new C.LE({encoder:this.encoder});null!=e&&(p=this.addToHttpParams(p,e,"role")),null!=t&&(p=this.addToHttpParams(p,t,"complementaryObjectId")),null!=r&&(p=this.addToHttpParams(p,r,"complementaryObjectName")),d&&d.forEach(Pe=>{p=this.addToHttpParams(p,Pe,"specificAttributes")}),null!=u&&(p=this.addToHttpParams(p,u,"allUserAttributes")),null!=c&&(p=this.addToHttpParams(p,c,"onlyDirectAdmins"));let g,m=this.defaultHeaders;g=this.configuration.lookupCredential("BasicAuth"),g&&(m=m.set("Authorization","Basic "+g)),g=this.configuration.lookupCredential("BearerAuth"),g&&(m=m.set("Authorization","Bearer "+g));let f=h&&h.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(m=m.set("Accept",f));let w=h&&h.context;void 0===w&&(w=new C.qT);let N="json";f&&(N=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob");let se=`${this.configuration.basePath}/json/authzResolver/getRichAdmins`;if(o){let Pe=new URL(se),ot=Pe.pathname.split("/");ot[1]="non",Pe.pathname=ot.join("/"),se=Pe.toString()}return this.httpClient.get(se,{context:w,params:p,responseType:N,withCredentials:this.configuration.withCredentials,headers:m,observe:s,reportProgress:l})}getFacilitiesWhereUserIsInRoles(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getFacilitiesWhereUserIsInRoles.");let o=new C.LE({encoder:this.encoder});null!=t&&(o=this.addToHttpParams(o,t,"user")),e&&e.forEach(f=>{o=this.addToHttpParams(o,f,"roles[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/getFacilitiesWhereUserIsInRoles`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getGroupRoleNames(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/getGroupRoleNames`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getGroupRoles(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"groupId"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/authzResolver/getGroupRoles`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getGroupsWhereUserIsInRoles(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getGroupsWhereUserIsInRoles.");let o=new C.LE({encoder:this.encoder});null!=t&&(o=this.addToHttpParams(o,t,"user")),e&&e.forEach(f=>{o=this.addToHttpParams(o,f,"roles[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/getGroupsWhereUserIsInRoles`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getLoggedUser(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/authzResolver/getLoggedUser`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}getMembersWhereUserIsInRoles(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getMembersWhereUserIsInRoles.");let o=new C.LE({encoder:this.encoder});null!=t&&(o=this.addToHttpParams(o,t,"user")),e&&e.forEach(f=>{o=this.addToHttpParams(o,f,"roles[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/getMembersWhereUserIsInRoles`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getPerunPrincipal(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/authzResolver/getPerunPrincipal`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}getPrincipalRoleNames(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/authzResolver/getPrincipalRoleNames`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}getResourcesWhereUserIsInRoles(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getResourcesWhereUserIsInRoles.");let o=new C.LE({encoder:this.encoder});null!=t&&(o=this.addToHttpParams(o,t,"user")),e&&e.forEach(f=>{o=this.addToHttpParams(o,f,"roles[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/getResourcesWhereUserIsInRoles`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getSecurityTeamsWhereUserIsInRoles(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getSecurityTeamsWhereUserIsInRoles.");let o=new C.LE({encoder:this.encoder});null!=t&&(o=this.addToHttpParams(o,t,"user")),e&&e.forEach(f=>{o=this.addToHttpParams(o,f,"roles[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/getSecurityTeamsWhereUserIsInRoles`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getUserRoleNames(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/getUserRoleNames`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getUserRoles(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"userId"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/authzResolver/getUserRoles`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getVosWhereUserIsInRoles(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getVosWhereUserIsInRoles.");let o=new C.LE({encoder:this.encoder});null!=t&&(o=this.addToHttpParams(o,t,"user")),e&&e.forEach(f=>{o=this.addToHttpParams(o,f,"roles[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/getVosWhereUserIsInRoles`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}isFacilityAdmin(e,t=!1,r="body",d=!1,u){let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"facility"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/authzResolver/isFacilityAdmin`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}isGroupAdmin(e,t=!1,r="body",d=!1,u){let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/authzResolver/isGroupAdmin`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}isPerunAdmin(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/authzResolver/isPerunAdmin`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}isVoAdmin(e,t=!1,r="body",d=!1,u){let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/authzResolver/isVoAdmin`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}keepAlive(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/authzResolver/keepAlive`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}loadAuthorizationComponents(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/authzResolver/loadAuthorizationComponents`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}refreshMfa(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/authzResolver/refreshMfa`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}setRoleForGroup(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter SetRoleForGroup was null or undefined when calling setRoleForGroup.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/setRole/g`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setRoleForUser(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter SetRoleForUser was null or undefined when calling setRoleForUser.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/setRole/u`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setRoleWithGroupComplementaryObject(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter SetRoleWithGroupComplementaryObject was null or undefined when calling setRoleWithGroupComplementaryObject.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/setRole/g-co`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setRoleWithGroupComplementaryObjects(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter SetRoleWithGroupComplementaryObjects was null or undefined when calling setRoleWithGroupComplementaryObjects.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/setRole/g-cos`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setRoleWithUserComplementaryObject(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter SetRoleWithUserComplementaryObject was null or undefined when calling setRoleWithUserComplementaryObject.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/setRole/u-co`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setRoleWithUserComplementaryObjects(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter SetRoleWithUserComplementaryObjects was null or undefined when calling setRoleWithUserComplementaryObjects.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/setRole/u-cos`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}unsetRoleForGroup(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter UnsetRoleForGroup was null or undefined when calling unsetRoleForGroup.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/unsetRole/g`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}unsetRoleForUser(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter UnsetRoleForUser was null or undefined when calling unsetRoleForUser.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/unsetRole/u`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}unsetRoleWithGroupComplementaryObject(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter UnsetRoleWithGroupComplementaryObject was null or undefined when calling unsetRoleWithGroupComplementaryObject.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/unsetRole/g-co`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}unsetRoleWithGroupComplementaryObjects(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter UnsetRoleWithGroupComplementaryObjects was null or undefined when calling unsetRoleWithGroupComplementaryObjects.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/unsetRole/g-cos`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}unsetRoleWithUserComplementaryObject(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter UnsetRoleWithUserComplementaryObject was null or undefined when calling unsetRoleWithUserComplementaryObject.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/unsetRole/u-co`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}unsetRoleWithUserComplementaryObjects(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter UnsetRoleWithUserComplementaryObjects was null or undefined when calling unsetRoleWithUserComplementaryObjects.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/authzResolver/unsetRole/u-cos`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(C.eN),n.LFG(Vn,8),n.LFG(It,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),ys=(()=>{class i{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new C.WM,this.configuration=new It,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Wn}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(d=>e=this.addToHttpParamsRecursive(e,d,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(d=>e=this.addToHttpParamsRecursive(e,t[d],null!=r?`${r}.${d}`:d));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}changeConsentStatus(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter consent was null or undefined when calling changeConsentStatus.");if(null==t)throw new Error("Required parameter status was null or undefined when calling changeConsentStatus.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"consent")),null!=t&&(o=this.addToHttpParams(o,t,"status"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/consentsManager/changeConsentStatus`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}evaluateConsentsForConsentHub(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter consentHub was null or undefined when calling evaluateConsentsForConsentHub.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"consentHub"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/consentsManager/evaluateConsentsForConsentHub`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}evaluateConsentsForConsentHubs(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter consentHubs was null or undefined when calling evaluateConsentsForConsentHubs.");let c=new C.LE({encoder:this.encoder});e&&e.forEach(g=>{c=this.addToHttpParams(c,g,"consentHubs[]")});let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/consentsManager/evaluateConsentsForConsentHubs`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}evaluateConsentsForService(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter service was null or undefined when calling evaluateConsentsForService.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"service"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/consentsManager/evaluateConsentsForService`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAllConsentHubs(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/consentsManager/getAllConsentHubs`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}getAllConsents(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/consentsManager/getAllConsents`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}getConsentById(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter id was null or undefined when calling getConsentById.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/consentsManager/getConsentById`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getConsentForUserAndConsentHub(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter user was null or undefined when calling getConsentForUserAndConsentHub.");if(null==t)throw new Error("Required parameter consentHub was null or undefined when calling getConsentForUserAndConsentHub.");if(null==r)throw new Error("Required parameter status was null or undefined when calling getConsentForUserAndConsentHub.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"consentHub")),null!=r&&(s=this.addToHttpParams(s,r,"status"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/consentsManager/getConsentForUserAndConsentHub`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}getConsentHubByFacility(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getConsentHubByFacility.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"facility"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/consentsManager/getConsentHubByFacility`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getConsentHubById(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter id was null or undefined when calling getConsentHubById.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/consentsManager/getConsentHubById`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getConsentHubByName(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter name was null or undefined when calling getConsentHubByName.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"name"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/consentsManager/getConsentHubByName`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getConsentsForConsentHub(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter consentHub was null or undefined when calling getConsentsForConsentHub.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"consentHub"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/consentsManager/getConsentsForConsentHub/id`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getConsentsForConsentHubWithStatus(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter consentHub was null or undefined when calling getConsentsForConsentHubWithStatus.");if(null==t)throw new Error("Required parameter status was null or undefined when calling getConsentsForConsentHubWithStatus.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"consentHub")),null!=t&&(o=this.addToHttpParams(o,t,"status"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/consentsManager/getConsentsForConsentHub/id-s`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getConsentsForUser(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter user was null or undefined when calling getConsentsForUser.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/consentsManager/getConsentsForUser/id`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getConsentsForUserAndConsentHub(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getConsentsForUserAndConsentHub.");if(null==t)throw new Error("Required parameter consentHub was null or undefined when calling getConsentsForUserAndConsentHub.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"consentHub"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/consentsManager/getConsentsForUserAndConsentHub`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getConsentsForUserWithStatus(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getConsentsForUserWithStatus.");if(null==t)throw new Error("Required parameter status was null or undefined when calling getConsentsForUserWithStatus.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"status"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/consentsManager/getConsentsForUser/id-s`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}updateConsentHub(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputUpdateConsentHub was null or undefined when calling updateConsentHub.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/consentsManager/updateConsentHub`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(C.eN),n.LFG(Vn,8),n.LFG(It,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),zr=(()=>{class i{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new C.WM,this.configuration=new It,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Wn}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(d=>e=this.addToHttpParamsRecursive(e,d,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(d=>e=this.addToHttpParamsRecursive(e,t[d],null!=r?`${r}.${d}`:d));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}addMember(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter groups was null or undefined when calling addMember.");if(null==t)throw new Error("Required parameter member was null or undefined when calling addMember.");let o=new C.LE({encoder:this.encoder});e&&e.forEach(f=>{o=this.addToHttpParams(o,f,"groups[]")}),null!=t&&(o=this.addToHttpParams(o,t,"member"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/groupsManager/addMember`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}addMembers(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling addMembers.");if(null==t)throw new Error("Required parameter members was null or undefined when calling addMembers.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"members[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/groupsManager/addMembers`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}allowGroupToHierarchicalVo(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling allowGroupToHierarchicalVo.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling allowGroupToHierarchicalVo.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"vo"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/groupsManager/allowGroupToHierarchicalVo`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}allowGroupsToHierarchicalVo(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter groups was null or undefined when calling allowGroupsToHierarchicalVo.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling allowGroupsToHierarchicalVo.");let o=new C.LE({encoder:this.encoder});e&&e.forEach(f=>{o=this.addToHttpParams(o,f,"groups[]")}),null!=t&&(o=this.addToHttpParams(o,t,"vo"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/groupsManager/allowGroupsToHierarchicalVo`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}canExtendMembershipInGroup(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling canExtendMembershipInGroup.");if(null==t)throw new Error("Required parameter group was null or undefined when calling canExtendMembershipInGroup.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/groupsManager/canExtendMembershipInGroup`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}copyMembers(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter sourceGroup was null or undefined when calling copyMembers.");if(null==t)throw new Error("Required parameter destinationGroups was null or undefined when calling copyMembers.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"sourceGroup")),t&&t.forEach(w=>{s=this.addToHttpParams(s,w,"destinationGroups")}),r&&r.forEach(w=>{s=this.addToHttpParams(s,w,"members")});let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/groupsManager/copyMembers`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}createGroupUnion(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter resultGroup was null or undefined when calling createGroupUnion.");if(null==t)throw new Error("Required parameter operandGroup was null or undefined when calling createGroupUnion.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resultGroup")),null!=t&&(o=this.addToHttpParams(o,t,"operandGroup"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroupUnion`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}createGroupWithParentGroupNameDescription(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter parentGroup was null or undefined when calling createGroupWithParentGroupNameDescription.");if(null==t)throw new Error("Required parameter name was null or undefined when calling createGroupWithParentGroupNameDescription.");if(null==r)throw new Error("Required parameter description was null or undefined when calling createGroupWithParentGroupNameDescription.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"parentGroup")),null!=t&&(s=this.addToHttpParams(s,t,"name")),null!=r&&(s=this.addToHttpParams(s,r,"description"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroup/pg-n-d`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}createGroupWithVoNameDescription(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter vo was null or undefined when calling createGroupWithVoNameDescription.");if(null==t)throw new Error("Required parameter name was null or undefined when calling createGroupWithVoNameDescription.");if(null==r)throw new Error("Required parameter description was null or undefined when calling createGroupWithVoNameDescription.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"name")),null!=r&&(s=this.addToHttpParams(s,r,"description"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroup/v-n-d`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}deleteGroup(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling deleteGroup.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"force"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/groupsManager/deleteGroup`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}deleteGroups(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputDeleteGroups was null or undefined when calling deleteGroups.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/groupsManager/deleteGroups`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}disallowGroupToHierarchicalVo(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling disallowGroupToHierarchicalVo.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling disallowGroupToHierarchicalVo.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"vo"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/groupsManager/disallowGroupToHierarchicalVo`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}disallowGroupsToHierarchicalVo(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter groups was null or undefined when calling disallowGroupsToHierarchicalVo.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling disallowGroupsToHierarchicalVo.");let o=new C.LE({encoder:this.encoder});e&&e.forEach(f=>{o=this.addToHttpParams(o,f,"groups[]")}),null!=t&&(o=this.addToHttpParams(o,t,"vo"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/groupsManager/disallowGroupsToHierarchicalVo`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}extendMembershipInGroup(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling extendMembershipInGroup.");if(null==t)throw new Error("Required parameter group was null or undefined when calling extendMembershipInGroup.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/groupsManager/extendMembershipInGroup`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}forceAllSubGroupsSynchronization(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter group was null or undefined when calling forceAllSubGroupsSynchronization.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/groupsManager/forceAllSubGroupsSynchronization`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}forceGroupStructureSynchronization(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter group was null or undefined when calling forceGroupStructureSynchronization.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/groupsManager/forceGroupStructureSynchronization`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}forceGroupSynchronization(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter group was null or undefined when calling forceGroupSynchronization.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/groupsManager/forceGroupSynchronization`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAllAllowedGroupsToHierarchicalVo(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getAllAllowedGroupsToHierarchicalVo.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/groupsManager/getAllAllowedGroupsToHierarchicalVo/v`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAllGroups(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getAllGroups.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/groupsManager/getAllGroups`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAllGroupsFromAllVos(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/groupsManager/getAllGroups/all`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}getAllMemberGroups(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter member was null or undefined when calling getAllMemberGroups.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/groupsManager/getAllMemberGroups`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAllRichGroups(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllRichGroups.");let c=new C.LE({encoder:this.encoder});e&&e.forEach(g=>{c=this.addToHttpParams(c,g,"attrNames[]")});let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/groupsManager/getAllRichGroups`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAllRichGroupsWithAttributesByNames(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getAllRichGroupsWithAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getAllRichGroupsWithAttributesByNames.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/groupsManager/getAllRichGroupsWithAttributesByNames`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getAllRichSubGroupsWithGroupAttributesByNames(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getAllRichSubGroupsWithGroupAttributesByNames.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/groupsManager/getAllRichSubGroupsWithAttributesByNames`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getGroupById(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter id was null or undefined when calling getGroupById.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/groupsManager/getGroupById`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getGroupByName(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getGroupByName.");if(null==t)throw new Error("Required parameter name was null or undefined when calling getGroupByName.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"name"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/groupsManager/getGroupByName`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getGroupDirectMembersCount(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupDirectMembersCount.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/groupsManager/getGroupDirectMembersCount`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getGroupMemberById(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupMemberById.");if(null==t)throw new Error("Required parameter member was null or undefined when calling getGroupMemberById.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"member"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/groupsManager/getGroupMemberById`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getGroupMembers(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupMembers.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/groupsManager/getGroupMembers`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getGroupMembersCount(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCount.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/groupsManager/getGroupMembersCount`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getGroupMembersCountsByGroupStatus(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByGroupStatus.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/groupsManager/getGroupMembersCountsByGroupStatus`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getGroupMembersCountsByVoStatus(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByVoStatus.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/groupsManager/getGroupMembersCountsByVoStatus`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getGroupRichMembersByIds(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupRichMembersByIds.");if(null==t)throw new Error("Required parameter members was null or undefined when calling getGroupRichMembersByIds.");if(null==r)throw new Error("Required parameter attrNames was null or undefined when calling getGroupRichMembersByIds.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),t&&t.forEach(w=>{s=this.addToHttpParams(s,w,"members[]")}),r&&r.forEach(w=>{s=this.addToHttpParams(s,w,"attrNames[]")});let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/groupsManager/getGroupRichMembersByIds`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}getGroupUnions(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupUnions.");if(null==t)throw new Error("Required parameter reverseDirection was null or undefined when calling getGroupUnions.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"reverseDirection"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/groupsManager/getGroupUnions`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getGroupsByIds(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getGroupsByIds.");let c=new C.LE({encoder:this.encoder});e&&e.forEach(g=>{c=this.addToHttpParams(c,g,"ids[]")});let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/groupsManager/getGroupsByIds`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getGroupsPage(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputGetPaginatedGroups was null or undefined when calling getGroupsPage.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/groupsManager/getGroupsPage`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}getGroupsWhereMemberIsActive(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter member was null or undefined when calling getGroupsWhereMemberIsActive.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/groupsManager/getGroupsWhereMemberIsActive`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getIndirectMembershipPaths(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getIndirectMembershipPaths.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getIndirectMembershipPaths.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/groupsManager/getIndirectMembershipPaths`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getMemberGroups(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroups.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/groupsManager/getMemberGroups`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getMemberRichGroupsWithAttributesByNames(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberRichGroupsWithAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getMemberRichGroupsWithAttributesByNames.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/groupsManager/getMemberRichGroupsWithAttributesByNames`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getParentGroup(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter group was null or undefined when calling getParentGroup.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/groupsManager/getParentGroup`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getRichGroupByIdWithAttributesByNames(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter groupId was null or undefined when calling getRichGroupByIdWithAttributesByNames.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"groupId")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/groupsManager/getRichGroupByIdWithAttributesByNames`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getSubgroupsPage(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputGetPaginatedSubgroups was null or undefined when calling getSubgroupsPage.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/groupsManager/getSubgroupsPage`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}getVoAllAllowedGroupsToHierarchicalVo(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAllAllowedGroupsToHierarchicalVo.");if(null==t)throw new Error("Required parameter memberVo was null or undefined when calling getVoAllAllowedGroupsToHierarchicalVo.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"memberVo"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/groupsManager/getAllAllowedGroupsToHierarchicalVo/v-v`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}isAllowedGroupToHierarchicalVo(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling isAllowedGroupToHierarchicalVo.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling isAllowedGroupToHierarchicalVo.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"vo"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/groupsManager/isAllowedGroupToHierarchicalVo`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}isGroupMember(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling isGroupMember.");if(null==t)throw new Error("Required parameter group was null or undefined when calling isGroupMember.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/groupsManager/isGroupMember`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}moveGroupWithDestinationGroupMovingGroup(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter movingGroup was null or undefined when calling moveGroupWithDestinationGroupMovingGroup.");let o=new C.LE({encoder:this.encoder});null!=t&&(o=this.addToHttpParams(o,t,"destinationGroup")),null!=e&&(o=this.addToHttpParams(o,e,"movingGroup"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/groupsManager/moveGroup/dg-mg`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeGroupUnion(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter resultGroup was null or undefined when calling removeGroupUnion.");if(null==t)throw new Error("Required parameter operandGroup was null or undefined when calling removeGroupUnion.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resultGroup")),null!=t&&(o=this.addToHttpParams(o,t,"operandGroup"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/groupsManager/removeGroupUnion`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeMember(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter groups was null or undefined when calling removeMember.");if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMember.");let o=new C.LE({encoder:this.encoder});e&&e.forEach(f=>{o=this.addToHttpParams(o,f,"groups[]")}),null!=t&&(o=this.addToHttpParams(o,t,"member"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/groupsManager/removeMember`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeMembers(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeMembers.");if(null==t)throw new Error("Required parameter members was null or undefined when calling removeMembers.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"members[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/groupsManager/removeMembers`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}setGroupsMemberStatus(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling setGroupsMemberStatus.");if(null==t)throw new Error("Required parameter group was null or undefined when calling setGroupsMemberStatus.");if(null==r)throw new Error("Required parameter status was null or undefined when calling setGroupsMemberStatus.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"group")),null!=r&&(s=this.addToHttpParams(s,r,"status"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/groupsManager/setGroupsMemberStatus`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}updateGroup(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputUpdateGroup was null or undefined when calling updateGroup.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/groupsManager/updateGroup`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(C.eN),n.LFG(Vn,8),n.LFG(It,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Er=(()=>{class i{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new C.WM,this.configuration=new It,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Wn}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(d=>e=this.addToHttpParamsRecursive(e,d,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(d=>e=this.addToHttpParamsRecursive(e,t[d],null!=r?`${r}.${d}`:d));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}canExtendMembership(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter member was null or undefined when calling canExtendMembership.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/membersManager/canExtendMembership`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}createMemberForCandidate(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputCreateMemberForCandidate was null or undefined when calling createMemberForCandidate.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/membersManager/createMember/c`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}createMemberForUser(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputCreateMemberForUser was null or undefined when calling createMemberForUser.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/membersManager/createMember/u`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}createMemberFromExtSource(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputCreateMemberFromExtSource was null or undefined when calling createMemberFromExtSource.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/membersManager/createMember/extSource`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}createSpecificMember(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSpecificMember was null or undefined when calling createSpecificMember.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/membersManager/createSpecificMember`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}createSponsoredMember(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputCreateSponsoredMember was null or undefined when calling createSponsoredMember.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/membersManager/createSponsoredMember/withFullName`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}createSponsoredMembers(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputCreateSponsoredMembers was null or undefined when calling createSponsoredMembers.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/membersManager/createSponsoredMembers`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}createSponsoredMembersFromCSV(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputCreateSponsoredMemberFromCSV was null or undefined when calling createSponsoredMembersFromCSV.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/membersManager/createSponsoredMembersFromCSV`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}deleteMember(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter member was null or undefined when calling deleteMember.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/membersManager/deleteMember`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}deleteMembers(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter members was null or undefined when calling deleteMembers.");let c=new C.LE({encoder:this.encoder});e&&e.forEach(g=>{c=this.addToHttpParams(c,g,"members[]")});let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/membersManager/deleteMembers`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}extendMembership(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter member was null or undefined when calling extendMembership.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/membersManager/extendMembership`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}findCompleteRichMembersByAttributes(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersByAttributes.");if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersByAttributes.");let s=new C.LE({encoder:this.encoder});e&&e.forEach(w=>{s=this.addToHttpParams(s,w,"attrsNames[]")}),null!=t&&(s=this.addToHttpParams(s,t,"searchString")),r&&r.forEach(w=>{s=this.addToHttpParams(s,w,"allowedStatuses[]")});let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/attrs`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}findCompleteRichMembersForGroup(e,t,r,d,u,c,o=!1,s="body",l=!1,h){if(null==e)throw new Error("Required parameter group was null or undefined when calling findCompleteRichMembersForGroup.");if(null==t)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersForGroup.");if(null==r)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForGroup.");if(null==d)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling findCompleteRichMembersForGroup.");let p=new C.LE({encoder:this.encoder});null!=e&&(p=this.addToHttpParams(p,e,"group")),t&&t.forEach(Pe=>{p=this.addToHttpParams(p,Pe,"attrsNames[]")}),u&&u.forEach(Pe=>{p=this.addToHttpParams(p,Pe,"allowedStatuses[]")}),c&&c.forEach(Pe=>{p=this.addToHttpParams(p,Pe,"allowedGroupStatuses[]")}),null!=r&&(p=this.addToHttpParams(p,r,"searchString")),null!=d&&(p=this.addToHttpParams(p,d,"lookingInParentGroup"));let g,m=this.defaultHeaders;g=this.configuration.lookupCredential("BasicAuth"),g&&(m=m.set("Authorization","Basic "+g)),g=this.configuration.lookupCredential("BearerAuth"),g&&(m=m.set("Authorization","Bearer "+g));let f=h&&h.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(m=m.set("Accept",f));let w=h&&h.context;void 0===w&&(w=new C.qT);let N="json";f&&(N=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob");let se=`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/g`;if(o){let Pe=new URL(se),ot=Pe.pathname.split("/");ot[1]="non",Pe.pathname=ot.join("/"),se=Pe.toString()}return this.httpClient.get(se,{context:w,params:p,responseType:N,withCredentials:this.configuration.withCredentials,headers:m,observe:s,reportProgress:l})}findCompleteRichMembersForVo(e,t,r,d,u=!1,c="body",o=!1,s){if(null==e)throw new Error("Required parameter vo was null or undefined when calling findCompleteRichMembersForVo.");if(null==t)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersForVo.");if(null==r)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForVo.");let l=new C.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"vo")),t&&t.forEach(N=>{l=this.addToHttpParams(l,N,"attrsNames[]")}),d&&d.forEach(N=>{l=this.addToHttpParams(l,N,"allowedStatuses[]")}),null!=r&&(l=this.addToHttpParams(l,r,"searchString"));let p,h=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(h=h.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(h=h.set("Authorization","Bearer "+p));let m=s&&s.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(h=h.set("Accept",m));let g=s&&s.context;void 0===g&&(g=new C.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/v`;if(u){let N=new URL(w),se=N.pathname.split("/");se[1]="non",N.pathname=se.join("/"),w=N.toString()}return this.httpClient.get(w,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:h,observe:c,reportProgress:o})}findMembersInVo(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling findMembersInVo.");if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findMembersInVo.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"searchString"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/membersManager/findMembersInVo`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}findSponsoredCompleteRichMembersForVo(e,t,r,d,u=!1,c="body",o=!1,s){if(null==e)throw new Error("Required parameter vo was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==t)throw new Error("Required parameter attrsNames was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==r)throw new Error("Required parameter searchString was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==d)throw new Error("Required parameter onlySponsored was null or undefined when calling findSponsoredCompleteRichMembersForVo.");let l=new C.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"vo")),t&&t.forEach(N=>{l=this.addToHttpParams(l,N,"attrsNames[]")}),null!=r&&(l=this.addToHttpParams(l,r,"searchString")),null!=d&&(l=this.addToHttpParams(l,d,"onlySponsored"));let p,h=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(h=h.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(h=h.set("Authorization","Bearer "+p));let m=s&&s.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(h=h.set("Accept",m));let g=s&&s.context;void 0===g&&(g=new C.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/v-sponsored`;if(u){let N=new URL(w),se=N.pathname.split("/");se[1]="non",N.pathname=se.join("/"),w=N.toString()}return this.httpClient.get(w,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:h,observe:c,reportProgress:o})}getAllMembers(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/membersManager/getAllMembers`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}getAllNamespacesRules(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/membersManager/getAllNamespacesRules`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}getAllSponsoredMembers(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembers.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/membersManager/getAllSponsoredMembers`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAllSponsoredMembersAndTheirSponsors(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembersAndTheirSponsors.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getAllSponsoredMembersAndTheirSponsors.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/membersManager/getAllSponsoredMembersAndTheirSponsors`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getCompleteRichMembersForGroup(e,t,r,d,u,c=!1,o="body",s=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getCompleteRichMembersForGroup.");if(null==t)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling getCompleteRichMembersForGroup.");let h=new C.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"group")),r&&r.forEach(se=>{h=this.addToHttpParams(h,se,"allowedStatuses[]")}),d&&d.forEach(se=>{h=this.addToHttpParams(h,se,"allowedGroupStatuses[]")}),null!=t&&(h=this.addToHttpParams(h,t,"lookingInParentGroup")),u&&u.forEach(se=>{h=this.addToHttpParams(h,se,"attrsNames[]")});let m,p=this.defaultHeaders;m=this.configuration.lookupCredential("BasicAuth"),m&&(p=p.set("Authorization","Basic "+m)),m=this.configuration.lookupCredential("BearerAuth"),m&&(p=p.set("Authorization","Bearer "+m));let g=l&&l.httpHeaderAccept;void 0===g&&(g=this.configuration.selectHeaderAccept(["application/json"])),void 0!==g&&(p=p.set("Accept",g));let f=l&&l.context;void 0===f&&(f=new C.qT);let w="json";g&&(w=g.startsWith("text")?"text":this.configuration.isJsonMime(g)?"json":"blob");let N=`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/g`;if(c){let se=new URL(N),Pe=se.pathname.split("/");Pe[1]="non",se.pathname=Pe.join("/"),N=se.toString()}return this.httpClient.get(N,{context:f,params:h,responseType:w,withCredentials:this.configuration.withCredentials,headers:p,observe:o,reportProgress:s})}getCompleteRichMembersForGroupResource(e,t,r,d,u=!1,c="body",o=!1,s){if(null==e)throw new Error("Required parameter group was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==r)throw new Error("Required parameter attrsNames was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==d)throw new Error("Required parameter allowedStatuses was null or undefined when calling getCompleteRichMembersForGroupResource.");let l=new C.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"group")),null!=t&&(l=this.addToHttpParams(l,t,"resource")),r&&r.forEach(N=>{l=this.addToHttpParams(l,N,"attrsNames[]")}),d&&d.forEach(N=>{l=this.addToHttpParams(l,N,"allowedStatuses[]")});let p,h=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(h=h.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(h=h.set("Authorization","Bearer "+p));let m=s&&s.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(h=h.set("Accept",m));let g=s&&s.context;void 0===g&&(g=new C.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/g-r`;if(u){let N=new URL(w),se=N.pathname.split("/");se[1]="non",N.pathname=se.join("/"),w=N.toString()}return this.httpClient.get(w,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:h,observe:c,reportProgress:o})}getCompleteRichMembersForVo(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getCompleteRichMembersForVo.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),t&&t.forEach(w=>{s=this.addToHttpParams(s,w,"allowedStatuses[]")}),r&&r.forEach(w=>{s=this.addToHttpParams(s,w,"attrsNames[]")});let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/v`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}getMemberByExtSourceNameAndExtLogin(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");if(null==t)throw new Error("Required parameter extLogin was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");if(null==r)throw new Error("Required parameter extSourceName was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"extLogin")),null!=r&&(s=this.addToHttpParams(s,r,"extSourceName"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/membersManager/getMemberByExtSourceNameAndExtLogin`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}getMemberById(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter id was null or undefined when calling getMemberById.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/membersManager/getMemberById`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getMemberByUser(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getMemberByUser.");if(null==t)throw new Error("Required parameter user was null or undefined when calling getMemberByUser.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"user"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/membersManager/getMemberByUser`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getMembers(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getMembers.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"status"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/membersManager/getMembers`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getMembersByIds(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getMembersByIds.");let c=new C.LE({encoder:this.encoder});e&&e.forEach(g=>{c=this.addToHttpParams(c,g,"ids[]")});let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/membersManager/getMembersByIds`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getMembersByUser(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter user was null or undefined when calling getMembersByUser.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/membersManager/getMembersByUser`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getMembersCount(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getMembersCount.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/membersManager/getMembersCount`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getMembersPage(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputGetPaginatedMembers was null or undefined when calling getMembersPage.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/membersManager/getMembersPage`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}getMembersWithStatusCount(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getMembersWithStatusCount.");if(null==t)throw new Error("Required parameter status was null or undefined when calling getMembersWithStatusCount.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"status"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/membersManager/getMembersCount/status`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getRichMember(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter id was null or undefined when calling getRichMember.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/membersManager/getRichMember`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getRichMemberWithAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter id was null or undefined when calling getRichMemberWithAttributes.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/membersManager/getRichMemberWithAttributes`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getRichMembersByIds(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichMembersByIds.");let o=new C.LE({encoder:this.encoder});e&&e.forEach(f=>{o=this.addToHttpParams(o,f,"ids[]")}),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/membersManager/getRichMembersByIds`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getRichMembersNoUserAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getRichMembersNoUserAttributes.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/membersManager/getRichMembersNoUserAttributes`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getSponsoredMembers(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembers.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/membersManager/getSponsoredMembers/v`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getSponsoredMembersAndTheirSponsors(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembersAndTheirSponsors.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getSponsoredMembersAndTheirSponsors.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/membersManager/getSponsoredMembersAndTheirSponsors`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getSponsorsByMember(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getSponsorsByMember.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/membersManager/getSponsors/member`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getSponsorsByVo(e,t,r,d,u=!1,c="body",o=!1,s){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getSponsorsByVo.");if(null==t)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsByVo.");if(null==r)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsByVo.");let l=new C.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"vo")),null!=t&&(l=this.addToHttpParams(l,t,"extSourceName")),null!=r&&(l=this.addToHttpParams(l,r,"extLogin")),d&&d.forEach(N=>{l=this.addToHttpParams(l,N,"attrNames[]")});let p,h=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(h=h.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(h=h.set("Authorization","Bearer "+p));let m=s&&s.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(h=h.set("Accept",m));let g=s&&s.context;void 0===g&&(g=new C.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/membersManager/getSponsors/vo`;if(u){let N=new URL(w),se=N.pathname.split("/");se[1]="non",N.pathname=se.join("/"),w=N.toString()}return this.httpClient.get(w,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:h,observe:c,reportProgress:o})}moveMembership(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter vo was null or undefined when calling moveMembership.");if(null==t)throw new Error("Required parameter sourceUser was null or undefined when calling moveMembership.");if(null==r)throw new Error("Required parameter targetUser was null or undefined when calling moveMembership.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"sourceUser")),null!=r&&(s=this.addToHttpParams(s,r,"targetUser"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/membersManager/moveMembership`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}removeSponsor(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeSponsor.");if(null==t)throw new Error("Required parameter sponsor was null or undefined when calling removeSponsor.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"sponsor"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/membersManager/removeSponsor`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeSponsors(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeSponsors.");if(null==t)throw new Error("Required parameter sponsorIds was null or undefined when calling removeSponsors.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"sponsorIds")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/membersManager/removeSponsors`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}sendAccountActivationLinkEmail(e,t,r,d,u=!1,c="body",o=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling sendAccountActivationLinkEmail.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling sendAccountActivationLinkEmail.");if(null==r)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendAccountActivationLinkEmail.");if(null==d)throw new Error("Required parameter language was null or undefined when calling sendAccountActivationLinkEmail.");let l=new C.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"member")),null!=t&&(l=this.addToHttpParams(l,t,"namespace")),null!=r&&(l=this.addToHttpParams(l,r,"emailAttributeURN")),null!=d&&(l=this.addToHttpParams(l,d,"language"));let p,h=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(h=h.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(h=h.set("Authorization","Bearer "+p));let m=s&&s.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(h=h.set("Accept",m));let g=s&&s.context;void 0===g&&(g=new C.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/urlinjsonout/membersManager/sendAccountActivationLinkEmail`;if(u){let N=new URL(w),se=N.pathname.split("/");se[1]="non",N.pathname=se.join("/"),w=N.toString()}return this.httpClient.post(w,null,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:h,observe:c,reportProgress:o})}sendPasswordResetLinkEmail(e,t,r,d,u,c=!1,o="body",s=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling sendPasswordResetLinkEmail.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling sendPasswordResetLinkEmail.");if(null==r)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendPasswordResetLinkEmail.");if(null==d)throw new Error("Required parameter language was null or undefined when calling sendPasswordResetLinkEmail.");let h=new C.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"member")),null!=t&&(h=this.addToHttpParams(h,t,"namespace")),null!=r&&(h=this.addToHttpParams(h,r,"emailAttributeURN")),null!=d&&(h=this.addToHttpParams(h,d,"language")),null!=u&&(h=this.addToHttpParams(h,u,"baseUrl"));let m,p=this.defaultHeaders;m=this.configuration.lookupCredential("BasicAuth"),m&&(p=p.set("Authorization","Basic "+m)),m=this.configuration.lookupCredential("BearerAuth"),m&&(p=p.set("Authorization","Bearer "+m));let g=l&&l.httpHeaderAccept;void 0===g&&(g=this.configuration.selectHeaderAccept(["application/json"])),void 0!==g&&(p=p.set("Accept",g));let f=l&&l.context;void 0===f&&(f=new C.qT);let w="json";g&&(w=g.startsWith("text")?"text":this.configuration.isJsonMime(g)?"json":"blob");let N=`${this.configuration.basePath}/urlinjsonout/membersManager/sendPasswordResetLinkEmail`;if(c){let se=new URL(N),Pe=se.pathname.split("/");Pe[1]="non",se.pathname=Pe.join("/"),N=se.toString()}return this.httpClient.post(N,null,{context:f,params:h,responseType:w,withCredentials:this.configuration.withCredentials,headers:p,observe:o,reportProgress:s})}setSponsoredMember(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetSponsoredMember was null or undefined when calling setSponsoredMember.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/membersManager/setSponsoredMember`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setSponsorshipForMember(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter sponsoredMember was null or undefined when calling setSponsorshipForMember.");if(null==t)throw new Error("Required parameter sponsor was null or undefined when calling setSponsorshipForMember.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"sponsoredMember")),null!=t&&(s=this.addToHttpParams(s,t,"sponsor")),null!=r&&(s=this.addToHttpParams(s,r,"validityTo"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/membersManager/setSponsorshipForMember`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}setStatus(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling setStatus.");if(null==t)throw new Error("Required parameter status was null or undefined when calling setStatus.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"status"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/membersManager/setStatus`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}sponsorMember(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling sponsorMember.");if(null==t)throw new Error("Required parameter sponsor was null or undefined when calling sponsorMember.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"sponsor")),null!=r&&(s=this.addToHttpParams(s,r,"validityTo"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/membersManager/sponsorMember`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}sponsorMembers(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter members was null or undefined when calling sponsorMembers.");if(null==t)throw new Error("Required parameter sponsor was null or undefined when calling sponsorMembers.");let s=new C.LE({encoder:this.encoder});e&&e.forEach(w=>{s=this.addToHttpParams(s,w,"members[]")}),null!=t&&(s=this.addToHttpParams(s,t,"sponsor")),null!=r&&(s=this.addToHttpParams(s,r,"validityTo"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/membersManager/sponsorMembers`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}updateSponsorshipValidity(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling updateSponsorshipValidity.");if(null==t)throw new Error("Required parameter sponsor was null or undefined when calling updateSponsorshipValidity.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"sponsor")),null!=r&&(s=this.addToHttpParams(s,r,"validityTo"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/membersManager/updateSponsorshipValidity`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}validateMemberAsync(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter member was null or undefined when calling validateMemberAsync.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/membersManager/validateMemberAsync`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(C.eN),n.LFG(Vn,8),n.LFG(It,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),fo=(()=>{class i{constructor(e,t,r){this.httpClient=e,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new C.WM,this.configuration=new It,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Wn}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(d=>e=this.addToHttpParamsRecursive(e,d,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(d=>e=this.addToHttpParamsRecursive(e,t[d],null!=r?`${r}.${d}`:d));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}sentMessageToRTWithMemberQueue(e,t,r,d,u=!1,c="body",o=!1,s){if(null==e)throw new Error("Required parameter memberId was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==r)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==d)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithMemberQueue.");let l=new C.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"memberId")),null!=t&&(l=this.addToHttpParams(l,t,"queue")),null!=r&&(l=this.addToHttpParams(l,r,"subject")),null!=d&&(l=this.addToHttpParams(l,d,"text"));let p,h=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(h=h.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(h=h.set("Authorization","Bearer "+p));let m=s&&s.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(h=h.set("Accept",m));let g=s&&s.context;void 0===g&&(g=new C.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/m-q`;if(u){let N=new URL(w),se=N.pathname.split("/");se[1]="non",N.pathname=se.join("/"),w=N.toString()}return this.httpClient.post(w,null,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:h,observe:c,reportProgress:o})}sentMessageToRTWithQueue(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithQueue.");if(null==t)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithQueue.");if(null==r)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithQueue.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"queue")),null!=t&&(s=this.addToHttpParams(s,t,"subject")),null!=r&&(s=this.addToHttpParams(s,r,"text"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/q`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}sentMessageToRTWithVo(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVo.");if(null==t)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVo.");if(null==r)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVo.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"voId")),null!=t&&(s=this.addToHttpParams(s,t,"subject")),null!=r&&(s=this.addToHttpParams(s,r,"text"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}sentMessageToRTWithVoQueue(e,t,r,d,u=!1,c="body",o=!1,s){if(null==e)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==r)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==d)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVoQueue.");let l=new C.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"voId")),null!=t&&(l=this.addToHttpParams(l,t,"queue")),null!=r&&(l=this.addToHttpParams(l,r,"subject")),null!=d&&(l=this.addToHttpParams(l,d,"text"));let p,h=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(h=h.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(h=h.set("Authorization","Bearer "+p));let m=s&&s.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(h=h.set("Accept",m));let g=s&&s.context;void 0===g&&(g=new C.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v-q`;if(u){let N=new URL(w),se=N.pathname.split("/");se[1]="non",N.pathname=se.join("/"),w=N.toString()}return this.httpClient.post(w,null,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:h,observe:c,reportProgress:o})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(C.eN),n.LFG(Vn,8),n.LFG(It,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),oc=(()=>{class i{constructor(e,t,r){this.httpClient=e,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new C.WM,this.configuration=new It,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Wn}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(d=>e=this.addToHttpParamsRecursive(e,d,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(d=>e=this.addToHttpParamsRecursive(e,t[d],null!=r?`${r}.${d}`:d));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}addApplicationMailForGroup(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputAddApplicationMailForGroup was null or undefined when calling addApplicationMailForGroup.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/addApplicationMail/g`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}addApplicationMailForVo(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputAddApplicationMailForVo was null or undefined when calling addApplicationMailForVo.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/addApplicationMail/v`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}addGroupsToAutoRegistration(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter groups was null or undefined when calling addGroupsToAutoRegistration.");let c=new C.LE({encoder:this.encoder});e&&e.forEach(g=>{c=this.addToHttpParams(c,g,"groups[]")});let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/registrarManager/addGroupsToAutoRegistration`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}approveApplication(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter id was null or undefined when calling approveApplication.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/registrarManager/approveApplication`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}checkForSimilarRichIdentities(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/urlinjsonout/registrarManager/checkForSimilarRichIdentities`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.post(h,null,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}checkForSimilarUsersWithAuthInfo(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/urlinjsonout/registrarManager/checkForSimilarUsers/authInfo`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.post(h,null,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}consolidate(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputConsolidate was null or undefined when calling consolidate.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/consolidate`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}consolidateIdentityUsingToken(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter token was null or undefined when calling consolidateIdentityUsingToken.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"token"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/consolidateIdentityUsingToken`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}copyFormFromGroupToGroup(e,t,r=!1,d="body",u=!1,c){let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"fromGroup")),null!=t&&(o=this.addToHttpParams(o,t,"toGroup"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToGroup`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}copyFormFromGroupToVo(e,t,r=!1,d="body",u=!1,c){let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"fromGroup")),null!=t&&(o=this.addToHttpParams(o,t,"toVo"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToVo`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}copyFormFromVoToGroup(e,t,r=!1,d="body",u=!1,c){let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"fromVo")),null!=t&&(o=this.addToHttpParams(o,t,"toGroup"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToGroup`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}copyFormFromVoToVo(e,t,r=!1,d="body",u=!1,c){let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"fromVo")),null!=t&&(o=this.addToHttpParams(o,t,"toVo"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToVo`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}copyMailsFromGroupToGroup(e,t,r=!1,d="body",u=!1,c){let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"fromGroup")),null!=t&&(o=this.addToHttpParams(o,t,"toGroup"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToGroup`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}copyMailsFromGroupToVo(e,t,r=!1,d="body",u=!1,c){let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"fromGroup")),null!=t&&(o=this.addToHttpParams(o,t,"toVo"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToVo`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}copyMailsFromVoToGroup(e,t,r=!1,d="body",u=!1,c){let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"fromVo")),null!=t&&(o=this.addToHttpParams(o,t,"toGroup"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToGroup`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}copyMailsFromVoToVo(e,t,r=!1,d="body",u=!1,c){let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"fromVo")),null!=t&&(o=this.addToHttpParams(o,t,"toVo"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToVo`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}createApplicationFormInGroup(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter group was null or undefined when calling createApplicationFormInGroup.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/group`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}createApplicationFormInVo(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter vo was null or undefined when calling createApplicationFormInVo.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/vo`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}deleteApplication(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteApplication.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplication`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}deleteApplicationMailForGroup(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling deleteApplicationMailForGroup.");if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForGroup.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"id"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/g`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}deleteApplicationMailForVo(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling deleteApplicationMailForVo.");if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForVo.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"id"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/v`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}deleteGroupsFromAutoRegistration(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter groups was null or undefined when calling deleteGroupsFromAutoRegistration.");let c=new C.LE({encoder:this.encoder});e&&e.forEach(g=>{c=this.addToHttpParams(c,g,"groups[]")});let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteGroupsFromAutoRegistration`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getApplicationById(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter id was null or undefined when calling getApplicationById.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/getApplicationById`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getApplicationDataById(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter id was null or undefined when calling getApplicationDataById.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/getApplicationDataById`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getApplicationMailsForGroup(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter group was null or undefined when calling getApplicationMailsForGroup.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/getApplicationMails/g`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getApplicationMailsForVo(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getApplicationMailsForVo.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/getApplicationMails/v`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getApplicationsForGroup(e,t,r,d,u=!1,c="body",o=!1,s){if(null==e)throw new Error("Required parameter group was null or undefined when calling getApplicationsForGroup.");let l=new C.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"group")),t&&t.forEach(N=>{l=this.addToHttpParams(l,N,"state[]")}),null!=r&&(l=this.addToHttpParams(l,r,"dateFrom")),null!=d&&(l=this.addToHttpParams(l,d,"dateTo"));let p,h=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(h=h.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(h=h.set("Authorization","Bearer "+p));let m=s&&s.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(h=h.set("Accept",m));let g=s&&s.context;void 0===g&&(g=new C.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/registrarManager/getApplicationsForGroup`;if(u){let N=new URL(w),se=N.pathname.split("/");se[1]="non",N.pathname=se.join("/"),w=N.toString()}return this.httpClient.get(w,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:h,observe:c,reportProgress:o})}getApplicationsForMember(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getApplicationsForMember.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/getApplicationsForMember`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getApplicationsForVo(e,t,r,d,u=!1,c="body",o=!1,s){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getApplicationsForVo.");let l=new C.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"vo")),t&&t.forEach(N=>{l=this.addToHttpParams(l,N,"state[]")}),null!=r&&(l=this.addToHttpParams(l,r,"dateFrom")),null!=d&&(l=this.addToHttpParams(l,d,"dateTo"));let p,h=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(h=h.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(h=h.set("Authorization","Bearer "+p));let m=s&&s.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(h=h.set("Accept",m));let g=s&&s.context;void 0===g&&(g=new C.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/registrarManager/getApplicationsForVo`;if(u){let N=new URL(w),se=N.pathname.split("/");se[1]="non",N.pathname=se.join("/"),w=N.toString()}return this.httpClient.get(w,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:h,observe:c,reportProgress:o})}getApplicationsPage(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputGetPaginatedApplications was null or undefined when calling getApplicationsPage.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/getApplicationsPage`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}getConsolidatorToken(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/registrarManager/getConsolidatorToken`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}getFormItemsForGroup(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroup.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/getFormItems/group`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getFormItemsForGroupWithType(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroupWithType.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"type"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/getFormItems/group-type`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getFormItemsForVo(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVo.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/getFormItems/vo`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getFormItemsForVoWithType(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVoWithType.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"type"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/getFormItems/vo-type`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getGroupApplicationForm(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupApplicationForm.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/getApplicationForm/group`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getGroupsToAutoRegistration(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getGroupsToAutoRegistration.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/getGroupsToAutoRegistration`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getVoApplicationForm(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoApplicationForm.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/registrarManager/getApplicationForm/vo`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}rejectApplication(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter id was null or undefined when calling rejectApplication.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"id")),null!=t&&(o=this.addToHttpParams(o,t,"reason"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/registrarManager/rejectApplication`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}sendInvitation(e,t,r,d,u=!1,c="body",o=!1,s){if(null==e)throw new Error("Required parameter email was null or undefined when calling sendInvitation.");if(null==t)throw new Error("Required parameter language was null or undefined when calling sendInvitation.");let l=new C.LE({encoder:this.encoder});null!=r&&(l=this.addToHttpParams(l,r,"voId")),null!=d&&(l=this.addToHttpParams(l,d,"name")),null!=e&&(l=this.addToHttpParams(l,e,"email")),null!=t&&(l=this.addToHttpParams(l,t,"language"));let p,h=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(h=h.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(h=h.set("Authorization","Bearer "+p));let m=s&&s.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(h=h.set("Accept",m));let g=s&&s.context;void 0===g&&(g=new C.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation`;if(u){let N=new URL(w),se=N.pathname.split("/");se[1]="non",N.pathname=se.join("/"),w=N.toString()}return this.httpClient.post(w,null,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:h,observe:c,reportProgress:o})}sendInvitationForGroup(e,t,r,d,u,c=!1,o="body",s=!1,l){if(null==e)throw new Error("Required parameter email was null or undefined when calling sendInvitationForGroup.");if(null==t)throw new Error("Required parameter language was null or undefined when calling sendInvitationForGroup.");let h=new C.LE({encoder:this.encoder});null!=r&&(h=this.addToHttpParams(h,r,"voId")),null!=d&&(h=this.addToHttpParams(h,d,"groupId")),null!=u&&(h=this.addToHttpParams(h,u,"name")),null!=e&&(h=this.addToHttpParams(h,e,"email")),null!=t&&(h=this.addToHttpParams(h,t,"language"));let m,p=this.defaultHeaders;m=this.configuration.lookupCredential("BasicAuth"),m&&(p=p.set("Authorization","Basic "+m)),m=this.configuration.lookupCredential("BearerAuth"),m&&(p=p.set("Authorization","Bearer "+m));let g=l&&l.httpHeaderAccept;void 0===g&&(g=this.configuration.selectHeaderAccept(["application/json"])),void 0!==g&&(p=p.set("Accept",g));let f=l&&l.context;void 0===f&&(f=new C.qT);let w="json";g&&(w=g.startsWith("text")?"text":this.configuration.isJsonMime(g)?"json":"blob");let N=`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/g`;if(c){let se=new URL(N),Pe=se.pathname.split("/");Pe[1]="non",se.pathname=Pe.join("/"),N=se.toString()}return this.httpClient.post(N,null,{context:f,params:h,responseType:w,withCredentials:this.configuration.withCredentials,headers:p,observe:o,reportProgress:s})}sendInvitationGroupToExistingUser(e,t,r,d=!1,u="body",c=!1,o){let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"userId")),null!=t&&(s=this.addToHttpParams(s,t,"voId")),null!=r&&(s=this.addToHttpParams(s,r,"groupId"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u-g`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}sendInvitationToExistingUser(e,t,r=!1,d="body",u=!1,c){let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"userId")),null!=t&&(o=this.addToHttpParams(o,t,"voId"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}sendInvitationsFromCsv(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputInvitationsFromCsv was null or undefined when calling sendInvitationsFromCsv.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/sendInvitationsFromCsv`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}sendMessage(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSendMessage was null or undefined when calling sendMessage.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/sendMessage`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}setSendingEnabled(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetSendingEnabled was null or undefined when calling setSendingEnabled.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/setSendingEnabled`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}submitApplication(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSubmitApplication was null or undefined when calling submitApplication.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/submitApplication`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}updateApplicationMail(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputUpdateApplicationMail was null or undefined when calling updateApplicationMail.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/updateApplicationMail`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}updateForm(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputUpdateForm was null or undefined when calling updateForm.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/updateForm`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}updateFormItemData(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputFormItemData was null or undefined when calling updateFormItemData.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/updateFormItemData`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}updateFormItemsData(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputFormItemsData was null or undefined when calling updateFormItemsData.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/updateFormItemsData`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}updateFormItemsForGroup(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputUpdateFormItemsForGroup was null or undefined when calling updateFormItemsForGroup.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/updateFormItems/group`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}updateFormItemsForVo(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputUpdateFormItemsForVo was null or undefined when calling updateFormItemsForVo.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/registrarManager/updateFormItems/vo`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}verifyApplication(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter id was null or undefined when calling verifyApplication.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/registrarManager/verifyApplication`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(C.eN),n.LFG(Vn,8),n.LFG(It,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),ia=(()=>{class i{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new C.WM,this.configuration=new It,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Wn}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(d=>e=this.addToHttpParamsRecursive(e,d,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(d=>e=this.addToHttpParamsRecursive(e,t[d],null!=r?`${r}.${d}`:d));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}activateGroupResourceAssignment(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter group was null or undefined when calling activateGroupResourceAssignment.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling activateGroupResourceAssignment.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"resource")),null!=r&&(s=this.addToHttpParams(s,r,"async"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/resourcesManager/activateGroupResourceAssignment`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}addAdminToGroup(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling addAdminToGroup.");if(null==t)throw new Error("Required parameter authorizedGroup was null or undefined when calling addAdminToGroup.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"authorizedGroup"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/resourcesManager/addAdmin/r-g`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}addAdminToUser(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling addAdminToUser.");if(null==t)throw new Error("Required parameter user was null or undefined when calling addAdminToUser.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"user"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/resourcesManager/addAdmin/r-u`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}addResourceSelfServiceGroup(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceGroup.");if(null==t)throw new Error("Required parameter group was null or undefined when calling addResourceSelfServiceGroup.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"group"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/resourcesManager/addResourceSelfServiceGroup`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}addResourceSelfServiceUser(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceUser.");if(null==t)throw new Error("Required parameter user was null or undefined when calling addResourceSelfServiceUser.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"user"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/resourcesManager/addResourceSelfServiceUser`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}allowGroupsToResources(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter groups was null or undefined when calling allowGroupsToResources.");if(null==t)throw new Error("Required parameter resources was null or undefined when calling allowGroupsToResources.");let s=new C.LE({encoder:this.encoder});e&&e.forEach(w=>{s=this.addToHttpParams(s,w,"groups[]")}),t&&t.forEach(w=>{s=this.addToHttpParams(s,w,"resources[]")}),null!=r&&(s=this.addToHttpParams(s,r,"async"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/resourcesManager/allowGroupsToResources`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}assignGroupToResource(e,t,r,d,u,c=!1,o="body",s=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling assignGroupToResource.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling assignGroupToResource.");let h=new C.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"group")),null!=t&&(h=this.addToHttpParams(h,t,"resource")),null!=r&&(h=this.addToHttpParams(h,r,"async")),null!=d&&(h=this.addToHttpParams(h,d,"assignInactive")),null!=u&&(h=this.addToHttpParams(h,u,"autoAssignSubgroups"));let m,p=this.defaultHeaders;m=this.configuration.lookupCredential("BasicAuth"),m&&(p=p.set("Authorization","Basic "+m)),m=this.configuration.lookupCredential("BearerAuth"),m&&(p=p.set("Authorization","Bearer "+m));let g=l&&l.httpHeaderAccept;void 0===g&&(g=this.configuration.selectHeaderAccept(["application/json"])),void 0!==g&&(p=p.set("Accept",g));let f=l&&l.context;void 0===f&&(f=new C.qT);let w="json";g&&(w=g.startsWith("text")?"text":this.configuration.isJsonMime(g)?"json":"blob");let N=`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupToResource`;if(c){let se=new URL(N),Pe=se.pathname.split("/");Pe[1]="non",se.pathname=Pe.join("/"),N=se.toString()}return this.httpClient.post(N,null,{context:f,params:h,responseType:w,withCredentials:this.configuration.withCredentials,headers:p,observe:o,reportProgress:s})}assignGroupToResources(e,t,r,d,u,c=!1,o="body",s=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling assignGroupToResources.");if(null==t)throw new Error("Required parameter resources was null or undefined when calling assignGroupToResources.");let h=new C.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"group")),t&&t.forEach(se=>{h=this.addToHttpParams(h,se,"resources[]")}),null!=r&&(h=this.addToHttpParams(h,r,"async")),null!=d&&(h=this.addToHttpParams(h,d,"assignInactive")),null!=u&&(h=this.addToHttpParams(h,u,"autoAssignSubgroups"));let m,p=this.defaultHeaders;m=this.configuration.lookupCredential("BasicAuth"),m&&(p=p.set("Authorization","Basic "+m)),m=this.configuration.lookupCredential("BearerAuth"),m&&(p=p.set("Authorization","Bearer "+m));let g=l&&l.httpHeaderAccept;void 0===g&&(g=this.configuration.selectHeaderAccept(["application/json"])),void 0!==g&&(p=p.set("Accept",g));let f=l&&l.context;void 0===f&&(f=new C.qT);let w="json";g&&(w=g.startsWith("text")?"text":this.configuration.isJsonMime(g)?"json":"blob");let N=`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupToResources`;if(c){let se=new URL(N),Pe=se.pathname.split("/");Pe[1]="non",se.pathname=Pe.join("/"),N=se.toString()}return this.httpClient.post(N,null,{context:f,params:h,responseType:w,withCredentials:this.configuration.withCredentials,headers:p,observe:o,reportProgress:s})}assignGroupsToResource(e,t,r,d,u,c=!1,o="body",s=!1,l){if(null==e)throw new Error("Required parameter groups was null or undefined when calling assignGroupsToResource.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling assignGroupsToResource.");let h=new C.LE({encoder:this.encoder});e&&e.forEach(se=>{h=this.addToHttpParams(h,se,"groups[]")}),null!=t&&(h=this.addToHttpParams(h,t,"resource")),null!=r&&(h=this.addToHttpParams(h,r,"async")),null!=d&&(h=this.addToHttpParams(h,d,"assignInactive")),null!=u&&(h=this.addToHttpParams(h,u,"autoAssignSubgroups"));let m,p=this.defaultHeaders;m=this.configuration.lookupCredential("BasicAuth"),m&&(p=p.set("Authorization","Basic "+m)),m=this.configuration.lookupCredential("BearerAuth"),m&&(p=p.set("Authorization","Bearer "+m));let g=l&&l.httpHeaderAccept;void 0===g&&(g=this.configuration.selectHeaderAccept(["application/json"])),void 0!==g&&(p=p.set("Accept",g));let f=l&&l.context;void 0===f&&(f=new C.qT);let w="json";g&&(w=g.startsWith("text")?"text":this.configuration.isJsonMime(g)?"json":"blob");let N=`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupsToResource`;if(c){let se=new URL(N),Pe=se.pathname.split("/");Pe[1]="non",se.pathname=Pe.join("/"),N=se.toString()}return this.httpClient.post(N,null,{context:f,params:h,responseType:w,withCredentials:this.configuration.withCredentials,headers:p,observe:o,reportProgress:s})}assignResourceTagToResource(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputAssignResourceTagToResource was null or undefined when calling assignResourceTagToResource.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/resourcesManager/assignResourceTagToResource`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}assignResourceTagsToResource(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputAssignResourceTagsToResource was null or undefined when calling assignResourceTagsToResource.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/resourcesManager/assignResourceTagsToResource`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}assignService(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling assignService.");if(null==t)throw new Error("Required parameter service was null or undefined when calling assignService.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"service"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignService`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}assignServices(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling assignServices.");if(null==t)throw new Error("Required parameter services was null or undefined when calling assignServices.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"services[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignServices`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}assignServicesPackage(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling assignServicesPackage.");if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling assignServicesPackage.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"servicesPackage"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignServicesPackage`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}copyResource(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputCopyResource was null or undefined when calling copyResource.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/resourcesManager/copyResource`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}createResource(e,t,r,d,u=!1,c="body",o=!1,s){if(null==e)throw new Error("Required parameter vo was null or undefined when calling createResource.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling createResource.");if(null==r)throw new Error("Required parameter name was null or undefined when calling createResource.");let l=new C.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"vo")),null!=t&&(l=this.addToHttpParams(l,t,"facility")),null!=r&&(l=this.addToHttpParams(l,r,"name")),null!=d&&(l=this.addToHttpParams(l,d,"description"));let p,h=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(h=h.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(h=h.set("Authorization","Bearer "+p));let m=s&&s.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(h=h.set("Accept",m));let g=s&&s.context;void 0===g&&(g=new C.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/urlinjsonout/resourcesManager/createResource`;if(u){let N=new URL(w),se=N.pathname.split("/");se[1]="non",N.pathname=se.join("/"),w=N.toString()}return this.httpClient.post(w,null,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:h,observe:c,reportProgress:o})}createResourceTagWithResourceTag(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputCreateResourceTagWithResourceTag was null or undefined when calling createResourceTagWithResourceTag.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/resourcesManager/createResourceTag/resourceTag`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}createResourceTagWithTagName(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter tagName was null or undefined when calling createResourceTagWithTagName.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling createResourceTagWithTagName.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"tagName")),null!=t&&(o=this.addToHttpParams(o,t,"vo"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/resourcesManager/createResourceTag/tagName`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}deactivateGroupResourceAssignment(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling deactivateGroupResourceAssignment.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling deactivateGroupResourceAssignment.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"resource"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/resourcesManager/deactivateGroupResourceAssignment`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}deleteAllResources(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter vo was null or undefined when calling deleteAllResources.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteAllResources`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}deleteAllResourcesTagsForVo(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter vo was null or undefined when calling deleteAllResourcesTagsForVo.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteAllResourcesTagsForVo`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}deleteResource(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter resource was null or undefined when calling deleteResource.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteResource`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}deleteResourceTag(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputDeleteResourceTag was null or undefined when calling deleteResourceTag.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/resourcesManager/deleteResourceTag`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}getAdminGroups(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAdminGroups.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/resourcesManager/getAdminGroups`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAdmins(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAdmins.");if(null==t)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getAdmins.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"onlyDirectAdmins"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/resourcesManager/getAdmins`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getAllResources(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/resourcesManager/getAllResources`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}getAllResourcesByResourceTag(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputGetAllResourcesByResourceTag was null or undefined when calling getAllResourcesByResourceTag.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/resourcesManager/getAllResourcesByResourceTag`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}getAllResourcesTagsForResource(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAllResourcesTagsForResource.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/resourcesManager/getAllResourcesTagsForResource`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAllResourcesTagsForVo(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getAllResourcesTagsForVo.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/resourcesManager/getAllResourcesTagsForVo`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAllResourcesWhereUserIsAdmin(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter user was null or undefined when calling getAllResourcesWhereUserIsAdmin.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/all`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAllowedMembers(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAllowedMembers.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/resourcesManager/getAllowedMembers`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAllowedResources(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter member was null or undefined when calling getAllowedResources.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/resourcesManager/getAllowedResources`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAllowedUsersOfResource(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAllowedUsersOfResource.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/resourcesManager/getAllowedUsers`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAssignedGroups(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAssignedGroups.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"member"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/resourcesManager/getAssignedGroups`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getAssignedMembers(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAssignedMembers.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/resourcesManager/getAssignedMembers`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAssignedMembersWithStatus(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAssignedMembersWithStatus.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/resourcesManager/getAssignedMembersWithStatus`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAssignedResourcesWithGroup(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter group was null or undefined when calling getAssignedResourcesWithGroup.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/resourcesManager/getAssignedResources/g`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAssignedResourcesWithMember(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter member was null or undefined when calling getAssignedResourcesWithMember.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/resourcesManager/getAssignedResources/m`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAssignedResourcesWithStatus(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter member was null or undefined when calling getAssignedResourcesWithStatus.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/resourcesManager/getAssignedResourcesWithStatus`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAssignedRichMembers(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAssignedRichMembers.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/resourcesManager/getAssignedRichMembers`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAssignedRichResourcesWithGroup(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter group was null or undefined when calling getAssignedRichResourcesWithGroup.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/g`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAssignedRichResourcesWithMember(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMember.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/m`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAssignedRichResourcesWithMemberService(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMemberService.");if(null==t)throw new Error("Required parameter service was null or undefined when calling getAssignedRichResourcesWithMemberService.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"service"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/s-m`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getAssignedServicesToResource(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAssignedServicesToResource.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/resourcesManager/getAssignedServices`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getBansForMember(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter member was null or undefined when calling getBansForMember.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/resourcesManager/getBansForMember`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getBansForResource(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getBansForResource.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/resourcesManager/getBansForResource`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getEnrichedBansForResource(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getEnrichedBansForResource.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/resourcesManager/getEnrichedBansForResource`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getEnrichedBansForUser(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getEnrichedBansForUser.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/resourcesManager/getEnrichedBansForUser`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getEnrichedResourceById(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter id was null or undefined when calling getEnrichedResourceById.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"id")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourceById`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getEnrichedResourcesForFacility(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getEnrichedResourcesForFacility.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"facility")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourcesForFacility`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getEnrichedResourcesForVo(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getEnrichedResourcesForVo.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourcesForVo`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getFacility(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getFacility.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/resourcesManager/getFacility`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getGroupAssignments(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupAssignments.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/resourcesManager/getGroupAssignments`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getMailingServiceRichResourcesWithMember(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMailingServiceRichResourcesWithMember.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/resourcesManager/getMailingServiceRichResourcesWithMember`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getResourceAssignments(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceAssignments.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/resourcesManager/getResourceAssignments`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getResourceBan(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getResourceBan.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceBan.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"resource"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/resourcesManager/getBan`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getResourceBanById(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter banId was null or undefined when calling getResourceBanById.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"banId"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/resourcesManager/getBanById`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getResourceById(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter id was null or undefined when calling getResourceById.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/resourcesManager/getResourceById`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getResourceByName(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResourceByName.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getResourceByName.");if(null==r)throw new Error("Required parameter name was null or undefined when calling getResourceByName.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"facility")),null!=r&&(s=this.addToHttpParams(s,r,"name"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/resourcesManager/getResourceByName`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}getResources(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResources.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/resourcesManager/getResources`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getResourcesByIds(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getResourcesByIds.");let c=new C.LE({encoder:this.encoder});e&&e.forEach(g=>{c=this.addToHttpParams(c,g,"ids[]")});let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/resourcesManager/getResourcesByIds`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getResourcesCountForAll(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/resourcesManager/getResourcesCount/all`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}getResourcesCountForVo(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResourcesCountForVo.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/resourcesManager/getResourcesCount/vo`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getResourcesFromVoWhereUserIsAdmin(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResourcesFromVoWhereUserIsAdmin.");if(null==t)throw new Error("Required parameter user was null or undefined when calling getResourcesFromVoWhereUserIsAdmin.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"user"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/fromVo`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getResourcesWhereGroupIsAdmin(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getResourcesWhereGroupIsAdmin.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResourcesWhereGroupIsAdmin.");if(null==r)throw new Error("Required parameter group was null or undefined when calling getResourcesWhereGroupIsAdmin.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"facility")),null!=t&&(s=this.addToHttpParams(s,t,"vo")),null!=r&&(s=this.addToHttpParams(s,r,"group"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/group`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}getResourcesWhereUserIsAdmin(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getResourcesWhereUserIsAdmin.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResourcesWhereUserIsAdmin.");if(null==r)throw new Error("Required parameter user was null or undefined when calling getResourcesWhereUserIsAdmin.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"facility")),null!=t&&(s=this.addToHttpParams(s,t,"vo")),null!=r&&(s=this.addToHttpParams(s,r,"user"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}getRichAdmins(e,t,r,d,u=!1,c="body",o=!1,s){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRichAdmins.");if(null==t)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdmins.");if(null==r)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdmins.");if(null==d)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdmins.");let l=new C.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"resource")),t&&t.forEach(N=>{l=this.addToHttpParams(l,N,"specificAttributes")}),null!=r&&(l=this.addToHttpParams(l,r,"allUserAttributes")),null!=d&&(l=this.addToHttpParams(l,d,"onlyDirectAdmins"));let p,h=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(h=h.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(h=h.set("Authorization","Bearer "+p));let m=s&&s.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(h=h.set("Accept",m));let g=s&&s.context;void 0===g&&(g=new C.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/resourcesManager/getRichAdmins`;if(u){let N=new URL(w),se=N.pathname.split("/");se[1]="non",N.pathname=se.join("/"),w=N.toString()}return this.httpClient.get(w,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:h,observe:c,reportProgress:o})}getRichResourceById(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter id was null or undefined when calling getRichResourceById.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/resourcesManager/getRichResourceById`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getRichResources(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getRichResources.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/resourcesManager/getRichResources`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getRichResourcesByIds(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichResourcesByIds.");let c=new C.LE({encoder:this.encoder});e&&e.forEach(g=>{c=this.addToHttpParams(c,g,"ids[]")});let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/resourcesManager/getRichResourcesByIds`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getVo(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getVo.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/resourcesManager/getVo`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}removeAllResourceTagsFromResource(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeAllResourceTagsFromResource.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAllResourcesTagFromResource`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}removeBanByMemberAndResource(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeBanByMemberAndResource.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeBanByMemberAndResource.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"resource"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeBan/member-resource-id`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeGroupAdminResource(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupAdminResource.");if(null==t)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeGroupAdminResource.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"authorizedGroup"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAdmin/r-g`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeGroupFromResource(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResource.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupFromResource.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"resource"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupFromResource`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeGroupFromResources(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResources.");if(null==t)throw new Error("Required parameter resources was null or undefined when calling removeGroupFromResources.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"resources[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupFromResources`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeGroupsFromResource(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter groups was null or undefined when calling removeGroupsFromResource.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupsFromResource.");let o=new C.LE({encoder:this.encoder});e&&e.forEach(f=>{o=this.addToHttpParams(o,f,"groups[]")}),null!=t&&(o=this.addToHttpParams(o,t,"resource"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupsFromResource`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeResourceBanById(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter banId was null or undefined when calling removeResourceBanById.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"banId"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeBan/id`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}removeResourceSelfServiceGroup(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceGroup.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeResourceSelfServiceGroup.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"group"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeResourceSelfServiceGroup`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeResourceSelfServiceUser(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceUser.");if(null==t)throw new Error("Required parameter user was null or undefined when calling removeResourceSelfServiceUser.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"user"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeResourceSelfServiceUser`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeResourceTagFromResource(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputRemoveResourceTagFromResource was null or undefined when calling removeResourceTagFromResource.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/resourcesManager/removeResourceTagFromResource`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}removeResourceTagsFromResource(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputRemoveResourceTagsFromResource was null or undefined when calling removeResourceTagsFromResource.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/resourcesManager/removeResourceTagsFromResource`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}removeService(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeService.");if(null==t)throw new Error("Required parameter service was null or undefined when calling removeService.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"service"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeService`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeServiceForResources(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter resources was null or undefined when calling removeServiceForResources.");if(null==t)throw new Error("Required parameter service was null or undefined when calling removeServiceForResources.");let o=new C.LE({encoder:this.encoder});e&&e.forEach(f=>{o=this.addToHttpParams(o,f,"resources[]")}),null!=t&&(o=this.addToHttpParams(o,t,"service"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeService/forResources`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeServices(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeServices.");if(null==t)throw new Error("Required parameter services was null or undefined when calling removeServices.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"services[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeServices`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeServicesPackage(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeServicesPackage.");if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling removeServicesPackage.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"servicesPackage"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeServicesPackage`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeUserAdminResource(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeUserAdminResource.");if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserAdminResource.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"user"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAdmin/r-u`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}setResourceBan(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetBan was null or undefined when calling setResourceBan.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/resourcesManager/setBan`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}unallowGroupsFromResources(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter groups was null or undefined when calling unallowGroupsFromResources.");if(null==t)throw new Error("Required parameter resources was null or undefined when calling unallowGroupsFromResources.");let o=new C.LE({encoder:this.encoder});e&&e.forEach(f=>{o=this.addToHttpParams(o,f,"groups[]")}),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"resources[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/resourcesManager/unallowGroupsFromResources`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}updateResource(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputUpdateResource was null or undefined when calling updateResource.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/resourcesManager/updateResource`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}updateResourceBan(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputUpdateBan was null or undefined when calling updateResourceBan.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/resourcesManager/updateBan`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}updateResourceTag(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputUpdateResourceTag was null or undefined when calling updateResourceTag.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/resourcesManager/updateResourceTag`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(C.eN),n.LFG(Vn,8),n.LFG(It,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),li=(()=>{class i{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new C.WM,this.configuration=new It,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Wn}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(d=>e=this.addToHttpParamsRecursive(e,d,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(d=>e=this.addToHttpParamsRecursive(e,t[d],null!=r?`${r}.${d}`:d));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}addSpecificUserOwner(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling addSpecificUserOwner.");if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling addSpecificUserOwner.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"specificUser"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/addSpecificUserOwner`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}addUserExtSource(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter AddUserExtSourceInput was null or undefined when calling addUserExtSource.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/addUserExtSource`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}anonymizeUser(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling anonymizeUser.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"force"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/anonymizeUser`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}changeNonAuthzPasswordByToken(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputChangeNonAuthzPasswordByToken was null or undefined when calling changeNonAuthzPasswordByToken.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/changeNonAuthzPassword/token`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}changePasswordForLogin(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputChangePasswordForLogin was null or undefined when calling changePasswordForLogin.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/changePassword/login`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}changePasswordForUser(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputChangePasswordForUser was null or undefined when calling changePasswordForUser.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/changePassword/user`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}checkPasswordResetRequestByTokenIsValid(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter token was null or undefined when calling checkPasswordResetRequestByTokenIsValid.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"token"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/checkPasswordResetRequestIsValid/token`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}checkPasswordStrength(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputCheckPasswordStrength was null or undefined when calling checkPasswordStrength.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/checkPasswordStrength`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}createAlternativePassword(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputCreateAlternativePassword was null or undefined when calling createAlternativePassword.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/createAlternativePassword`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}createServiceUser(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputCreateServiceUser was null or undefined when calling createServiceUser.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/createServiceUser`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}deleteAlternativePassword(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter user was null or undefined when calling deleteAlternativePassword.");if(null==t)throw new Error("Required parameter loginNamespace was null or undefined when calling deleteAlternativePassword.");if(null==r)throw new Error("Required parameter passwordId was null or undefined when calling deleteAlternativePassword.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"loginNamespace")),null!=r&&(s=this.addToHttpParams(s,r,"passwordId"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/usersManager/deleteAlternativePassword`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}deletePasswordForLogin(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter login was null or undefined when calling deletePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForLogin.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"login")),null!=t&&(o=this.addToHttpParams(o,t,"namespace"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/login`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}deletePasswordForUser(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling deletePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForUser.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"namespace"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/user`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}deleteUser(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling deleteUser.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"force"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/deleteUser`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}findRichUsers(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findRichUsers.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"searchString"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/findRichUsers`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}findRichUsersWithAttributes(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findRichUsersWithAttributes.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"searchString")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrsNames[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/findRichUsersWithAttributes`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}findUsers(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findUsers.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"searchString"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/findUsers`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}generateAccountForName(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter namespace was null or undefined when calling generateAccountForName.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"namespace")),null!=t&&(o=this.addToHttpParams(o,t,"name"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/generateAccount/name`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getAllRichUsersWithAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter includedSpecificUsers was null or undefined when calling getAllRichUsersWithAttributes.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"includedSpecificUsers"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getAllRichUsersWithAttributes`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getAssignedRichResourcesForUser(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter user was null or undefined when calling getAssignedRichResourcesForUser.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getAssignedRichResources`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getGroupsForFacilityWhereUserIsActive(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"facility"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/facility`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getGroupsForResourceWhereUserIsActive(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsForResourceWhereUserIsActive.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupsForResourceWhereUserIsActive.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"resource"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/resource`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getGroupsInVoWhereUserIsAdmin(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"vo"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u-v`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getGroupsWhereUserIsAdmin(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsWhereUserIsAdmin.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getPendingPreferredEmailChanges(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter user was null or undefined when calling getPendingPreferredEmailChanges.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getPendingPreferredEmailChanges`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getRichUserExtSources(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserExtSources.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getRichUserExtSources/u`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getRichUserWithAttributes(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserWithAttributes.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getRichUserWithAttributes`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getRichUsersByIds(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersByIds.");let c=new C.LE({encoder:this.encoder});e&&e.forEach(g=>{c=this.addToHttpParams(c,g,"ids[]")});let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getRichUsersByIds`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getRichUsersWithAttributesByIds(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersWithAttributesByIds.");let c=new C.LE({encoder:this.encoder});e&&e.forEach(g=>{c=this.addToHttpParams(c,g,"ids[]")});let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getRichUsersWithAttributesByIds`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getRichUsersWithoutVoWithAttributes(e,t=!1,r="body",d=!1,u){let c=new C.LE({encoder:this.encoder});e&&e.forEach(g=>{c=this.addToHttpParams(c,g,"attrsNames[]")});let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getRichUsersWithoutVoWithAttributes`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getSpecificUsersByUser(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter user was null or undefined when calling getSpecificUsersByUser.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getSpecificUsersByUser`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getSponsorsForMember(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getSponsorsForMember.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/member`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getSponsorsForMemberByVoAndLogin(e,t,r,d,u=!1,c="body",o=!1,s){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==t)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==r)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsForMemberByVoAndLogin.");let l=new C.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"vo")),null!=t&&(l=this.addToHttpParams(l,t,"extSourceName")),null!=r&&(l=this.addToHttpParams(l,r,"extLogin")),d&&d.forEach(N=>{l=this.addToHttpParams(l,N,"attrNames[]")});let p,h=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(h=h.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(h=h.set("Authorization","Bearer "+p));let m=s&&s.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(h=h.set("Accept",m));let g=s&&s.context;void 0===g&&(g=new C.qT);let f="json";m&&(f=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let w=`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/vo`;if(u){let N=new URL(w),se=N.pathname.split("/");se[1]="non",N.pathname=se.join("/"),w=N.toString()}return this.httpClient.get(w,{context:g,params:l,responseType:f,withCredentials:this.configuration.withCredentials,headers:h,observe:c,reportProgress:o})}getUserByExtSourceNameAndExtLogin(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter extLogin was null or undefined when calling getUserByExtSourceNameAndExtLogin.");if(null==t)throw new Error("Required parameter extSourceName was null or undefined when calling getUserByExtSourceNameAndExtLogin.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"extLogin")),null!=t&&(o=this.addToHttpParams(o,t,"extSourceName"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getUserByExtSourceNameAndExtLogin`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getUserById(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter id was null or undefined when calling getUserById.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getUserById`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getUserExtSourceByExtLoginAndExtSourceName(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");if(null==t)throw new Error("Required parameter extSourceLogin was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"extSourceName")),null!=t&&(o=this.addToHttpParams(o,t,"extSourceLogin"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getUserExtSourceByExtLoginAndExtSourceName`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getUserExtSourceById(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceById.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"userExtSource"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getUserExtSourceById`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getUserExtSourceByUniqueAttributeValueAndAttributeId(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");if(null==t)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"attributeId")),null!=t&&(o=this.addToHttpParams(o,t,"attributeValue"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/id`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getUserExtSourceByUniqueAttributeValueAndAttributeName(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");if(null==t)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"attributeName")),null!=t&&(o=this.addToHttpParams(o,t,"attributeValue"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/name`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getUserExtSources(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserExtSources.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getUserExtSources`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getUserExtSourcesByIds(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUserExtSourcesByIds.");let c=new C.LE({encoder:this.encoder});e&&e.forEach(g=>{c=this.addToHttpParams(c,g,"ids[]")});let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getUserExtSourcesByIds`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getUsers(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/usersManager/getUsers`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}getUsersByIds(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUsersByIds.");let c=new C.LE({encoder:this.encoder});e&&e.forEach(g=>{c=this.addToHttpParams(c,g,"ids[]")});let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getUsersByIds`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getUsersBySpecificUser(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter specificUser was null or undefined when calling getUsersBySpecificUser.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"specificUser"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getUsersBySpecificUser`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getUsersPage(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputGetPaginatedUsers was null or undefined when calling getUsersPage.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/getUsersPage`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}getVosWhereUserIsAdmin(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsAdmin.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsAdmin`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getVosWhereUserIsMember(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsMember.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsMember`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}isLoginAvailable(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter loginNamespace was null or undefined when calling isLoginAvailable.");if(null==t)throw new Error("Required parameter login was null or undefined when calling isLoginAvailable.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"loginNamespace")),null!=t&&(o=this.addToHttpParams(o,t,"login"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/isLoginAvailable`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}loginExist(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling loginExist.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling loginExist.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"namespace"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/loginExist`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeSpecificUserOwner(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeSpecificUserOwner.");if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling removeSpecificUserOwner.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"specificUser"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/removeSpecificUserOwner`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeUserExtSource(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserExtSource.");if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSource.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"userExtSource")),null!=r&&(s=this.addToHttpParams(s,r,"force"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/usersManager/removeUserExtSource`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}removeUserExtSources(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserExtSources.");if(null==t)throw new Error("Required parameter userExtSources was null or undefined when calling removeUserExtSources.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),t&&t.forEach(w=>{s=this.addToHttpParams(s,w,"userExtSources")}),null!=r&&(s=this.addToHttpParams(s,r,"force"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/usersManager/removeUserExtSources`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}requestPreferredEmailChange(e,t,r,d,u,c,o=!1,s="body",l=!1,h){if(null==e)throw new Error("Required parameter user was null or undefined when calling requestPreferredEmailChange.");if(null==t)throw new Error("Required parameter email was null or undefined when calling requestPreferredEmailChange.");let p=new C.LE({encoder:this.encoder});null!=e&&(p=this.addToHttpParams(p,e,"user")),null!=t&&(p=this.addToHttpParams(p,t,"email")),null!=r&&(p=this.addToHttpParams(p,r,"lang")),null!=d&&(p=this.addToHttpParams(p,d,"linkPath")),null!=u&&(p=this.addToHttpParams(p,u,"customUrl")),null!=c&&(p=this.addToHttpParams(p,c,"idpFilter"));let g,m=this.defaultHeaders;g=this.configuration.lookupCredential("BasicAuth"),g&&(m=m.set("Authorization","Basic "+g)),g=this.configuration.lookupCredential("BearerAuth"),g&&(m=m.set("Authorization","Bearer "+g));let f=h&&h.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(m=m.set("Accept",f));let w=h&&h.context;void 0===w&&(w=new C.qT);let N="json";f&&(N=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob");let se=`${this.configuration.basePath}/urlinjsonout/usersManager/requestPreferredEmailChange`;if(o){let Pe=new URL(se),ot=Pe.pathname.split("/");ot[1]="non",Pe.pathname=ot.join("/"),se=Pe.toString()}return this.httpClient.post(se,null,{context:w,params:p,responseType:N,withCredentials:this.configuration.withCredentials,headers:m,observe:s,reportProgress:l})}reservePasswordForLogin(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputReservePasswordForLogin was null or undefined when calling reservePasswordForLogin.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/reservePassword/login`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}reservePasswordForUser(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputReservePasswordForUser was null or undefined when calling reservePasswordForUser.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/reservePassword/user`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}reserveRandomPassword(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling reserveRandomPassword.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling reserveRandomPassword.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"namespace"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/reserveRandomPassword`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}setLogin(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter user was null or undefined when calling setLogin.");if(null==t)throw new Error("Required parameter login was null or undefined when calling setLogin.");if(null==r)throw new Error("Required parameter namespace was null or undefined when calling setLogin.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"login")),null!=r&&(s=this.addToHttpParams(s,r,"namespace"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/urlinjsonout/usersManager/setLogin`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.post(f,null,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}updateUser(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputUpdateUser was null or undefined when calling updateUser.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/usersManager/updateUser`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}updateUserExtSourceLastAccess(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling updateUserExtSourceLastAccess.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"userExtSource"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/usersManager/updateUserExtSourceLastAccess`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}validatePasswordForLogin(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter login was null or undefined when calling validatePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForLogin.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"login")),null!=t&&(o=this.addToHttpParams(o,t,"namespace"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/login`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}validatePasswordForUser(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling validatePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForUser.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"namespace"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/user`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}validatePreferredEmailChangeWithToken(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter token was null or undefined when calling validatePreferredEmailChangeWithToken.");if(null==t)throw new Error("Required parameter u was null or undefined when calling validatePreferredEmailChangeWithToken.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"token")),null!=t&&(o=this.addToHttpParams(o,t,"u"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/usersManager/validatePreferredEmailChange`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(C.eN),n.LFG(Vn,8),n.LFG(It,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Ti=(()=>{class i{constructor(e,t,r){this.httpClient=e,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new C.WM,this.configuration=new It,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Wn}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(d=>e=this.addToHttpParamsRecursive(e,d,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(d=>e=this.addToHttpParamsRecursive(e,t[d],null!=r?`${r}.${d}`:d));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}getAppsConfig(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/utils/getAppsConfig`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}getGuiConfiguration(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/utils/getGuiConfiguration`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}getNewGuiAlert(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/utils/getNewGuiAlert`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}getPerunRPCVersion(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["text/plain"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}getPerunStatistics(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/utils/getPerunStatistics`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}getPerunStatus(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/utils/getPerunStatus`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}getPerunSystemTimeInMillis(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/utils/getPerunSystemTimeInMillis`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(C.eN),n.LFG(Vn,8),n.LFG(It,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),ws=(()=>{class i{constructor(e,t,r){this.httpClient=e,this.basePath="https://api-dev.perun-aai.org/ba/rpc",this.defaultHeaders=new C.WM,this.configuration=new It,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Wn}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(d=>e=this.addToHttpParamsRecursive(e,d,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(d=>e=this.addToHttpParamsRecursive(e,t[d],null!=r?`${r}.${d}`:d));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}addMemberVo(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling addMemberVo.");if(null==t)throw new Error("Required parameter memberVo was null or undefined when calling addMemberVo.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"memberVo"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/vosManager/addMemberVo`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}addSponsorRoleToGroup(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToGroup.");if(null==t)throw new Error("Required parameter authorizedGroup was null or undefined when calling addSponsorRoleToGroup.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"authorizedGroup"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/vosManager/addSponsorRole/group`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}addSponsorRoleToUser(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToUser.");if(null==t)throw new Error("Required parameter user was null or undefined when calling addSponsorRoleToUser.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"user"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/vosManager/addSponsorRole/user`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}addVoAdminGroup(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling addVoAdminGroup.");if(null==t)throw new Error("Required parameter authorizedGroup was null or undefined when calling addVoAdminGroup.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"authorizedGroup"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/vosManager/addAdmin/group`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}addVoAdminUser(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling addVoAdminUser.");if(null==t)throw new Error("Required parameter user was null or undefined when calling addVoAdminUser.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"user"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/vosManager/addAdmin/user`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}createVoWithName(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter name was null or undefined when calling createVoWithName.");if(null==t)throw new Error("Required parameter shortName was null or undefined when calling createVoWithName.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"name")),null!=t&&(o=this.addToHttpParams(o,t,"shortName"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/vosManager/createVo/withName`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}createVoWithVo(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputCreateVoWithVo was null or undefined when calling createVoWithVo.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/vosManager/createVo/withVo`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}deleteVo(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling deleteVo.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"force"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/vosManager/deleteVo`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}findCandidates(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter id was null or undefined when calling findCandidates.");if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findCandidates.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"id")),null!=t&&(s=this.addToHttpParams(s,t,"searchString")),null!=r&&(s=this.addToHttpParams(s,r,"maxNumOfResults"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/vosManager/findCandidates`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}findCandidatesForGroup(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling findCandidatesForGroup.");if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findCandidatesForGroup.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"searchString"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/vosManager/findCandidates/forGroup`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getAllVos(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/vosManager/getAllVos`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}getCompleteCandidatesForGroup(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter group was null or undefined when calling getCompleteCandidatesForGroup.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getCompleteCandidatesForGroup.");if(null==r)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForGroup.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),t&&t.forEach(w=>{s=this.addToHttpParams(s,w,"attrNames[]")}),null!=r&&(s=this.addToHttpParams(s,r,"searchString"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/vosManager/getCompleteCandidates/forGroup`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}getCompleteCandidatesForVo(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getCompleteCandidatesForVo.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getCompleteCandidatesForVo.");if(null==r)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForVo.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),t&&t.forEach(w=>{s=this.addToHttpParams(s,w,"attrNames[]")}),null!=r&&(s=this.addToHttpParams(s,r,"searchString"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/vosManager/getCompleteCandidates/forVo`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}getEnrichedBansForVo(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getEnrichedBansForVo.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/vosManager/getEnrichedBansForVo`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getEnrichedVoBansForUser(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getEnrichedVoBansForUser.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),t&&t.forEach(f=>{o=this.addToHttpParams(o,f,"attrNames[]")});let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/vosManager/getEnrichedBansForUser`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getEnrichedVoById(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter id was null or undefined when calling getEnrichedVoById.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/vosManager/getEnrichedVoById`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getMemberVos(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getMemberVos.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/vosManager/getMemberVos`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getMyEnrichedVos(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/vosManager/getEnrichedVos`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}getMyVos(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/vosManager/getVos`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}getParentVos(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getParentVos.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/vosManager/getParentVos`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getRichAdminsForVo(e,t,r,d,u,c=!1,o="body",s=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getRichAdminsForVo.");if(null==t)throw new Error("Required parameter role was null or undefined when calling getRichAdminsForVo.");if(null==r)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdminsForVo.");if(null==d)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdminsForVo.");if(null==u)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdminsForVo.");let h=new C.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"vo")),null!=t&&(h=this.addToHttpParams(h,t,"role")),r&&r.forEach(se=>{h=this.addToHttpParams(h,se,"specificAttributes")}),null!=d&&(h=this.addToHttpParams(h,d,"allUserAttributes")),null!=u&&(h=this.addToHttpParams(h,u,"onlyDirectAdmins"));let m,p=this.defaultHeaders;m=this.configuration.lookupCredential("BasicAuth"),m&&(p=p.set("Authorization","Basic "+m)),m=this.configuration.lookupCredential("BearerAuth"),m&&(p=p.set("Authorization","Bearer "+m));let g=l&&l.httpHeaderAccept;void 0===g&&(g=this.configuration.selectHeaderAccept(["application/json"])),void 0!==g&&(p=p.set("Accept",g));let f=l&&l.context;void 0===f&&(f=new C.qT);let w="json";g&&(w=g.startsWith("text")?"text":this.configuration.isJsonMime(g)?"json":"blob");let N=`${this.configuration.basePath}/json/vosManager/getRichAdmins`;if(c){let se=new URL(N),Pe=se.pathname.split("/");Pe[1]="non",se.pathname=Pe.join("/"),N=se.toString()}return this.httpClient.get(N,{context:f,params:h,responseType:w,withCredentials:this.configuration.withCredentials,headers:p,observe:o,reportProgress:s})}getVoAdminGroups(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAdminGroups.");if(null==t)throw new Error("Required parameter role was null or undefined when calling getVoAdminGroups.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"role"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/json/vosManager/getAdminGroups`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.get(g,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}getVoAdminUsers(e,t,r,d=!1,u="body",c=!1,o){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAdminUsers.");if(null==t)throw new Error("Required parameter role was null or undefined when calling getVoAdminUsers.");if(null==r)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getVoAdminUsers.");let s=new C.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"role")),null!=r&&(s=this.addToHttpParams(s,r,"onlyDirectAdmins"));let h,l=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(l=l.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(l=l.set("Authorization","Bearer "+h));let p=o&&o.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(l=l.set("Accept",p));let m=o&&o.context;void 0===m&&(m=new C.qT);let g="json";p&&(g=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob");let f=`${this.configuration.basePath}/json/vosManager/getAdmins`;if(d){let w=new URL(f),N=w.pathname.split("/");N[1]="non",w.pathname=N.join("/"),f=w.toString()}return this.httpClient.get(f,{context:m,params:s,responseType:g,withCredentials:this.configuration.withCredentials,headers:l,observe:u,reportProgress:c})}getVoBanById(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter banId was null or undefined when calling getVoBanById.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"banId"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/vosManager/getBanById`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getVoBanForMember(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter member was null or undefined when calling getVoBanForMember.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/vosManager/getBanForMember`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getVoBansForVo(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoBansForVo.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/vosManager/getBansForVo`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getVoById(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter id was null or undefined when calling getVoById.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/vosManager/getVoById`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getVoByShortName(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter shortName was null or undefined when calling getVoByShortName.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"shortName"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/vosManager/getVoByShortName`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getVoMembersCountsByStatus(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoMembersCountsByStatus.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/vosManager/getVoMembersCountsByStatus`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getVosByIds(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getVosByIds.");let c=new C.LE({encoder:this.encoder});e&&e.forEach(g=>{c=this.addToHttpParams(c,g,"ids[]")});let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/json/vosManager/getVosByIds`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.get(m,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}getVosCount(e=!1,t="body",r=!1,d){let c,u=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(u=u.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(u=u.set("Authorization","Bearer "+c));let o=d&&d.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(u=u.set("Accept",o));let s=d&&d.context;void 0===s&&(s=new C.qT);let l="json";o&&(l=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob");let h=`${this.configuration.basePath}/json/vosManager/getVosCount`;if(e){let p=new URL(h),m=p.pathname.split("/");m[1]="non",p.pathname=m.join("/"),h=p.toString()}return this.httpClient.get(h,{context:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:t,reportProgress:r})}removeMemberVo(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeMemberVo.");if(null==t)throw new Error("Required parameter memberVo was null or undefined when calling removeMemberVo.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"memberVo"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/vosManager/removeMemberVo`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeSponsorRoleFromGroup(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromGroup.");if(null==t)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeSponsorRoleFromGroup.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"authorizedGroup"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/vosManager/removeSponsorRole/group`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeSponsorRoleFromUser(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromUser.");if(null==t)throw new Error("Required parameter user was null or undefined when calling removeSponsorRoleFromUser.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"user"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/vosManager/removeSponsorRole/user`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeVoAdminGroup(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminGroup.");if(null==t)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeVoAdminGroup.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"authorizedGroup"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/vosManager/removeAdmin/group`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeVoAdminUser(e,t,r=!1,d="body",u=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminUser.");if(null==t)throw new Error("Required parameter user was null or undefined when calling removeVoAdminUser.");let o=new C.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"user"));let l,s=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(s=s.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(s=s.set("Authorization","Bearer "+l));let h=c&&c.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(s=s.set("Accept",h));let p=c&&c.context;void 0===p&&(p=new C.qT);let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");let g=`${this.configuration.basePath}/urlinjsonout/vosManager/removeAdmin/user`;if(r){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,null,{context:p,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:d,reportProgress:u})}removeVoBan(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter banId was null or undefined when calling removeVoBan.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"banId"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/vosManager/removeBan`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}removeVoBanForMember(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeVoBanForMember.");let c=new C.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let l=u&&u.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json"])),void 0!==l&&(o=o.set("Accept",l));let h=u&&u.context;void 0===h&&(h=new C.qT);let p="json";l&&(p=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`${this.configuration.basePath}/urlinjsonout/vosManager/removeBanForMember`;if(t){let g=new URL(m),f=g.pathname.split("/");f[1]="non",g.pathname=f.join("/"),m=g.toString()}return this.httpClient.post(m,null,{context:h,params:c,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:d})}setVoBan(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputSetVoBan was null or undefined when calling setVoBan.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/vosManager/setBan`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}updateVo(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputUpdateVo was null or undefined when calling updateVo.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/vosManager/updateVo`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}updateVoBan(e,t=!1,r="body",d=!1,u){if(null==e)throw new Error("Required parameter InputUpdateBan1 was null or undefined when calling updateVoBan.");let o,c=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(c=c.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(c=c.set("Authorization","Bearer "+o));let s=u&&u.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(c=c.set("Accept",s));let l=u&&u.context;void 0===l&&(l=new C.qT);const p=this.configuration.selectHeaderContentType(["application/json"]);void 0!==p&&(c=c.set("Content-Type",p));let m="json";s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob");let g=`${this.configuration.basePath}/json/vosManager/updateBan`;if(t){let f=new URL(g),w=f.pathname.split("/");w[1]="non",f.pathname=w.join("/"),g=f.toString()}return this.httpClient.post(g,e,{context:l,responseType:m,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:d})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(C.eN),n.LFG(Vn,8),n.LFG(It,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();var gt=(()=>{return(i=gt||(gt={})).PERUNADMIN="PERUNADMIN",i.PERUNOBSERVER="PERUNOBSERVER",i.VOADMIN="VOADMIN",i.GROUPADMIN="GROUPADMIN",i.GROUPOBSERVER="GROUPOBSERVER",i.GROUPMEMBERSHIPMANAGER="GROUPMEMBERSHIPMANAGER",i.SELF="SELF",i.FACILITYADMIN="FACILITYADMIN",i.FACILITIYOBSERVER="FACILITYOBSERVER",i.RESOURCEADMIN="RESOURCEADMIN",i.RESOURCESELFSERVICE="RESOURCESELFSERVICE",i.REGISTRAR="REGISTRAR",i.ENGINE="ENGINE",i.RPC="RPC",i.NOTIFICATIONS="NOTIFICATIONS",i.SERVICEUSER="SERVICEUSER",i.SPONSOR="SPONSOR",i.VOOBSERVER="VOOBSERVER",i.TOPGROUPCREATOR="TOPGROUPCREATOR",i.SECURITYADMIN="SECURITYADMIN",i.CABINETADMIN="CABINETADMIN",i.UNKNOWNROLENAME="UNKNOWNROLENAME",i.AUDITCONSUMERADMIN="AUDITCONSUMERADMIN",i.UNKNOWN="UNKNOWN",i.MEMBERSHIP="MEMBERSHIP",gt;var i})();let Cn=(()=>{class i{constructor(e){this.authzSevice=e,this.principalRoles=new Set,this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[],this.sortRoles=(t,r)=>t.roleName>r.roleName?1:t.roleName{this.authzSevice.getAllRolesManagementRules().subscribe(r=>{this.allRolesManagementRules=r,e()},r=>t(r))})}assignAvailableRoles(e,t){this.allRolesManagementRules.forEach(r=>{r.primaryObject===t&&e.push(r)}),e.sort(this.sortRoles),"Vo"===t&&this.voCustomSort(e)}isManagerPagePrivileged(e){const t=[];let r=e.beanName;r.startsWith("Rich")&&(r=r.substring(4)),this.assignAvailableRoles(t,r);const d=new Map;this.setRolesAuthorization(t,e,d);for(const u of d.values())if(u.readAuth||u.manageAuth)return!0;return!1}setRolesAuthorization(e,t,r){for(const d of e){let u=[],c=[],o=[];for(const m of this.allRolesManagementRules)if(m.roleName===d.roleName){u=u.concat(m.privilegedRolesToRead),c=c.concat(m.privilegedRolesToManage);for(const g of Object.keys(m.entitiesToManage))o="User"===g?[g].concat(o):o.concat(g);break}const s=this.fetchAllRelatedObjects([t]),l=this.resolveAuthorization(u,s),h=this.resolveAuthorization(c,s);r.set(d.roleName,{readAuth:l,manageAuth:h,modes:o})}}initializeVariables(){this.principalRoles.clear(),this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}getPrimaryObjectOfRole(e){for(const t of this.allRolesManagementRules)if(t.roleName===e)return t.primaryObject;return""}getAllRules(){return this.allRolesManagementRules.sort(this.sortRoles)}getRuleForRole(e){return this.allRolesManagementRules.find(t=>t.roleName===e)}getAssignableRoleRules(e){const t=[],r=["UNKNOWN","RPC","NOTIFICATIONS","ENGINE","MFA","REGISTRAR","AUDITCONSUMERADMIN","SPONSORSHIP","MEMBERSHIP","SERVICEUSER","SELF","SECURITYADMIN"];return this.allRolesManagementRules.forEach(d=>{!r.includes(d.roleName)&&this.canManage(d)&&this.ruleHasMode(d,e)&&t.push(d)}),t.sort(this.sortRoles)}ruleHasMode(e,t){return Object.keys(e.entitiesToManage).map(r=>r.toUpperCase()).includes(t)}canManage(e){return e.privilegedRolesToManage.some(t=>this.principalRoles.has(Object.keys(t)[0]))}resolveAuthorization(e,t){for(const r of e){let d=!0;for(const u of Object.keys(r)){const c=r[u];if(null===c)this.principalRoles.has(u)||(d=!1);else if(t[c]){for(const o of t[c])if(!this.principalHasRole(u,c,o)){d=!1;break}}else d=!1;if(!d)break}if(d)return!0}return!1}getPerunPolicy(e){for(const t of this.perunPolicies)if(t.policyName===e)return t;return null}fetchAllRelatedObjects(e){const t={};for(const r of e){let d=r.beanName;switch(r.beanName.startsWith("Rich")&&(d=r.beanName.substring(4)),t[d]?t[d].push(r.id):t[d]=[r.id],d){case"Member":t.User?t.User.push(r.userId):t.User=[r.userId],t.Vo?t.Vo.push(r.voId):t.Vo=[r.voId];break;case"Group":case"ResourceTag":t.Vo?t.Vo.push(r.voId):t.Vo=[r.voId];break;case"Resource":t.Facility?t.Facility.push(r.facilityId):t.Facility=[r.facilityId],t.Vo?t.Vo.push(r.voId):t.Vo=[r.voId]}}return t}fetchPolicyWithAllIncludedPolicies(e){const t=new Map;let r=[];for(r.push(e);0!==r.length;){const u=r.shift();if(t.has(u))continue;const c=this.getPerunPolicy(u);if(!c)return[];t.set(u,c),r=r.concat(c.includePolicies)}const d=[];for(const u of t.values())d.push(u);return d}voCustomSort(e){for(let t=0;t{let e=null;i._refCount++;const t=(0,at.x)(a,void 0,void 0,void 0,()=>{if(!i||i._refCount<=0||0<--i._refCount)return void(e=null);const r=i._connection,d=e;e=null,r&&(!d||r===d)&&r.unsubscribe(),a.unsubscribe()});i.subscribe(t),t.closed||(e=i.connect())})}class mf extends yn.y{constructor(a,e){super(),this.source=a,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,(0,hr.A)(a)&&(this.lift=a.lift)}_subscribe(a){return this.getSubject().subscribe(a)}getSubject(){const a=this._subject;return(!a||a.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:a}=this;this._subject=this._connection=null,a?.unsubscribe()}connect(){let a=this._connection;if(!a){a=this._connection=new Nt.w0;const e=this.getSubject();a.add(this.source.subscribe((0,at.x)(e,void 0,()=>{this._teardown(),e.complete()},t=>{this._teardown(),e.error(t)},()=>this._teardown()))),a.closed&&(this._connection=null,a=Nt.w0.EMPTY)}return a}refCount(){return Ms()(this)}}function vn(...i){const a=(0,_n.yG)(i);return(0,hr.e)((e,t)=>{(a?(0,tr.z)(i,e,a):(0,tr.z)(i,e)).subscribe(t)})}var pr=E(5577),Ur=E(590),Wt=E(8505),Fn=E(262);function Rd(i,a,e,t,r){return(d,u)=>{let c=e,o=a,s=0;d.subscribe((0,at.x)(u,l=>{const h=s++;o=c?i(o,l,h):(c=!0,l),t&&u.next(o)},r&&(()=>{c&&u.next(o),u.complete()})))}}function Cs(i,a){return(0,hr.e)(Rd(i,a,arguments.length>=2,!0))}function Dr(i){return i<=0?()=>Xi.E:(0,hr.e)((a,e)=>{let t=[];a.subscribe((0,at.x)(e,r=>{t.push(r),i{for(const r of t)e.next(r);e.complete()},void 0,()=>{t=null}))})}var Pn=E(8068),hc=E(6590),ah=E(4671);function Pd(i,a){const e=arguments.length>=2;return t=>t.pipe(i?(0,bt.h)((r,d)=>i(r,d,t)):ah.y,Dr(1),e?(0,hc.d)(a):(0,Pn.T)(()=>new wa.K))}function pc(i,a=!1){return(0,hr.e)((e,t)=>{let r=0;e.subscribe((0,at.x)(t,d=>{const u=i(d,r++);(u||a)&&t.next(d),!u&&t.complete()}))})}var nl=E(9718);function bo(i){return(0,hr.e)((a,e)=>{try{a.subscribe(e)}finally{e.add(i)}})}var ra=E(8189);const qt="primary";class sh{constructor(a){this.params=a||{}}has(a){return Object.prototype.hasOwnProperty.call(this.params,a)}get(a){if(this.has(a)){const e=this.params[a];return Array.isArray(e)?e[0]:e}return null}getAll(a){if(this.has(a)){const e=this.params[a];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Ya(i){return new sh(i)}function il(i,a,e){const t=e.path.split("/");if(t.length>i.length||"full"===e.pathMatch&&(a.hasChildren()||t.lengtht[d]===r)}return i===a}function al(i){return Array.prototype.concat.apply([],i)}function oh(i){return i.length>0?i[i.length-1]:null}function rn(i,a){for(const e in i)i.hasOwnProperty(e)&&a(i[e],e)}function xi(i){return(0,n.CqO)(i)?i:(0,n.QGY)(i)?(0,Se.D)(Promise.resolve(i)):(0,Ee.of)(i)}const gf={exact:function uh(i,a,e){if(!Ga(i.segments,a.segments)||!vs(i.segments,a.segments,e)||i.numberOfChildren!==a.numberOfChildren)return!1;for(const t in a.children)if(!i.children[t]||!uh(i.children[t],a.children[t],e))return!1;return!0},subset:sl},Od={exact:function _f(i,a){return fr(i,a)},subset:function fc(i,a){return Object.keys(a).length<=Object.keys(i).length&&Object.keys(a).every(e=>kd(i[e],a[e]))},ignored:()=>!0};function dh(i,a,e){return gf[e.paths](i.root,a.root,e.matrixParams)&&Od[e.queryParams](i.queryParams,a.queryParams)&&!("exact"===e.fragment&&i.fragment!==a.fragment)}function sl(i,a,e){return ol(i,a,a.segments,e)}function ol(i,a,e,t){if(i.segments.length>e.length){const r=i.segments.slice(0,e.length);return!(!Ga(r,e)||a.hasChildren()||!vs(r,e,t))}if(i.segments.length===e.length){if(!Ga(i.segments,e)||!vs(i.segments,e,t))return!1;for(const r in a.children)if(!i.children[r]||!sl(i.children[r],a.children[r],t))return!1;return!0}{const r=e.slice(0,i.segments.length),d=e.slice(i.segments.length);return!!(Ga(i.segments,r)&&vs(i.segments,r,t)&&i.children[qt])&&ol(i.children[qt],a,d,t)}}function vs(i,a,e){return a.every((t,r)=>Od[e](i[r].parameters,t.parameters))}class Wa{constructor(a,e,t){this.root=a,this.queryParams=e,this.fragment=t}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ya(this.queryParams)),this._queryParamMap}toString(){return Af.serialize(this)}}class Gt{constructor(a,e){this.segments=a,this.children=e,this.parent=null,rn(e,(t,r)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return mc(this)}}class $n{constructor(a,e){this.path=a,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Ya(this.parameters)),this._parameterMap}toString(){return Bd(this)}}function Ga(i,a){return i.length===a.length&&i.every((e,t)=>e.path===a[t].path)}let Ts=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:function(){return new Ao},providedIn:"root"}),i})();class Ao{parse(a){const e=new Mf(a);return new Wa(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(a){const e=`/${ll(a.root,!0)}`,t=function wf(i){const a=Object.keys(i).map(e=>{const t=i[e];return Array.isArray(t)?t.map(r=>`${xs(e)}=${xs(r)}`).join("&"):`${xs(e)}=${xs(t)}`}).filter(e=>!!e);return a.length?`?${a.join("&")}`:""}(a.queryParams);return`${e}${t}${"string"==typeof a.fragment?`#${function hh(i){return encodeURI(i)}(a.fragment)}`:""}`}}const Af=new Ao;function mc(i){return i.segments.map(a=>Bd(a)).join("/")}function ll(i,a){if(!i.hasChildren())return mc(i);if(a){const e=i.children[qt]?ll(i.children[qt],!1):"",t=[];return rn(i.children,(r,d)=>{d!==qt&&t.push(`${d}:${ll(r,!1)}`)}),t.length>0?`${e}(${t.join("//")})`:e}{const e=function bf(i,a){let e=[];return rn(i.children,(t,r)=>{r===qt&&(e=e.concat(a(t,r)))}),rn(i.children,(t,r)=>{r!==qt&&(e=e.concat(a(t,r)))}),e}(i,(t,r)=>r===qt?[ll(i.children[qt],!1)]:[`${r}:${ll(t,!1)}`]);return 1===Object.keys(i.children).length&&null!=i.children[qt]?`${mc(i)}/${e[0]}`:`${mc(i)}/(${e.join("//")})`}}function yf(i){return encodeURIComponent(i).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function xs(i){return yf(i).replace(/%3B/gi,";")}function gc(i){return yf(i).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ss(i){return decodeURIComponent(i)}function Id(i){return Ss(i.replace(/\+/g,"%20"))}function Bd(i){return`${gc(i.path)}${function yo(i){return Object.keys(i).map(a=>`;${gc(a)}=${gc(i[a])}`).join("")}(i.parameters)}`}const wo=/^[^\/()?;=#]+/;function Mo(i){const a=i.match(wo);return a?a[0]:""}const _c=/^[^=?&#]+/,ph=/^[^&#]+/;class Mf{constructor(a){this.url=a,this.remaining=a}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Gt([],{}):new Gt([],this.parseChildren())}parseQueryParams(){const a={};if(this.consumeOptional("?"))do{this.parseQueryParam(a)}while(this.consumeOptional("&"));return a}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const a=[];for(this.peekStartsWith("(")||a.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),a.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let t={};return this.peekStartsWith("(")&&(t=this.parseParens(!1)),(a.length>0||Object.keys(e).length>0)&&(t[qt]=new Gt(a,e)),t}parseSegment(){const a=Mo(this.remaining);if(""===a&&this.peekStartsWith(";"))throw new n.vHH(4009,!1);return this.capture(a),new $n(Ss(a),this.parseMatrixParams())}parseMatrixParams(){const a={};for(;this.consumeOptional(";");)this.parseParam(a);return a}parseParam(a){const e=Mo(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const r=Mo(this.remaining);r&&(t=r,this.capture(t))}a[Ss(e)]=Ss(t)}parseQueryParam(a){const e=function Rg(i){const a=i.match(_c);return a?a[0]:""}(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const u=function cl(i){const a=i.match(ph);return a?a[0]:""}(this.remaining);u&&(t=u,this.capture(t))}const r=Id(e),d=Id(t);if(a.hasOwnProperty(r)){let u=a[r];Array.isArray(u)||(u=[u],a[r]=u),u.push(d)}else a[r]=d}parseParens(a){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const t=Mo(this.remaining),r=this.remaining[t.length];if("/"!==r&&")"!==r&&";"!==r)throw new n.vHH(4010,!1);let d;t.indexOf(":")>-1?(d=t.slice(0,t.indexOf(":")),this.capture(d),this.capture(":")):a&&(d=qt);const u=this.parseChildren();e[d]=1===Object.keys(u).length?u[qt]:new Gt([],u),this.consumeOptional("//")}return e}peekStartsWith(a){return this.remaining.startsWith(a)}consumeOptional(a){return!!this.peekStartsWith(a)&&(this.remaining=this.remaining.substring(a.length),!0)}capture(a){if(!this.consumeOptional(a))throw new n.vHH(4011,!1)}}function Lr(i){return i.segments.length>0?new Gt([],{[qt]:i}):i}function bc(i){const a={};for(const t of Object.keys(i.children)){const d=bc(i.children[t]);(d.segments.length>0||d.hasChildren())&&(a[t]=d)}return function dl(i){if(1===i.numberOfChildren&&i.children[qt]){const a=i.children[qt];return new Gt(i.segments.concat(a.segments),a.children)}return i}(new Gt(i.segments,a))}function Ma(i){return i instanceof Wa}function Vd(i,a,e,t,r){var d;if(0===e.length)return Hr(a.root,a.root,a.root,t,r);const u=function Yr(i){if("string"==typeof i[0]&&1===i.length&&"/"===i[0])return new Co(!0,0,i);let a=0,e=!1;const t=i.reduce((r,d,u)=>{if("object"==typeof d&&null!=d){if(d.outlets){const c={};return rn(d.outlets,(o,s)=>{c[s]="string"==typeof o?o.split("/"):o}),[...r,{outlets:c}]}if(d.segmentPath)return[...r,d.segmentPath]}return"string"!=typeof d?[...r,d]:0===u?(d.split("/").forEach((c,o)=>{0==o&&"."===c||(0==o&&""===c?e=!0:".."===c?a++:""!=c&&r.push(c))}),r):[...r,d]},[]);return new Co(e,a,t)}(e);if(u.toRoot())return Hr(a.root,a.root,new Gt([],{}),t,r);const o=function c(l){var h;const p=function mh(i,a,e,t){if(i.isAbsolute)return new Ds(a.root,!0,0);if(-1===t)return new Ds(e,e===a.root,0);return function Ls(i,a,e){let t=i,r=a,d=e;for(;d>r;){if(d-=r,t=t.parent,!t)throw new n.vHH(4005,!1);r=t.segments.length}return new Ds(t,!1,r-d)}(e,t+(Es(i.commands[0])?0:1),i.numberOfDoubleDots)}(u,a,null===(h=i.snapshot)||void 0===h?void 0:h._urlSegment,l),m=p.processChildren?Hs(p.segmentGroup,p.index,u.commands):yc(p.segmentGroup,p.index,u.commands);return Hr(a.root,p.segmentGroup,m,t,r)}(null===(d=i.snapshot)||void 0===d?void 0:d._lastPathIndex);return o}function Es(i){return"object"==typeof i&&null!=i&&!i.outlets&&!i.segmentPath}function Ca(i){return"object"==typeof i&&null!=i&&i.outlets}function Hr(i,a,e,t,r){let u,d={};t&&rn(t,(o,s)=>{d[s]=Array.isArray(o)?o.map(l=>`${l}`):`${o}`}),u=i===a?e:hl(i,a,e);const c=Lr(bc(u));return new Wa(c,d,r)}function hl(i,a,e){const t={};return rn(i.children,(r,d)=>{t[d]=r===a?e:hl(r,a,e)}),new Gt(i.segments,t)}class Co{constructor(a,e,t){if(this.isAbsolute=a,this.numberOfDoubleDots=e,this.commands=t,a&&t.length>0&&Es(t[0]))throw new n.vHH(4003,!1);const r=t.find(Ca);if(r&&r!==oh(t))throw new n.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Ds{constructor(a,e,t){this.segmentGroup=a,this.processChildren=e,this.index=t}}function yc(i,a,e){if(i||(i=new Gt([],{})),0===i.segments.length&&i.hasChildren())return Hs(i,a,e);const t=function vf(i,a,e){let t=0,r=a;const d={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return d;const u=i.segments[r],c=e[t];if(Ca(c))break;const o=`${c}`,s=t0&&void 0===o)break;if(o&&s&&"object"==typeof s&&void 0===s.outlets){if(!Ps(o,s,u))return d;t+=2}else{if(!Ps(o,{},u))return d;t++}r++}return{match:!0,pathIndex:r,commandIndex:t}}(i,a,e),r=e.slice(t.commandIndex);if(t.match&&t.pathIndex{"string"==typeof d&&(d=[d]),null!==d&&(r[u]=yc(i.children[u],a,d))}),rn(i.children,(d,u)=>{void 0===t[u]&&(r[u]=d)}),new Gt(i.segments,r)}}function wc(i,a,e){const t=i.segments.slice(0,a);let r=0;for(;r{"string"==typeof e&&(e=[e]),null!==e&&(a[t]=wc(new Gt([],{}),0,e))}),a}function Rs(i){const a={};return rn(i,(e,t)=>a[t]=`${e}`),a}function Ps(i,a,e){return i==e.path&&fr(a,e.parameters)}class ir{constructor(a,e){this.id=a,this.url=e}}class Mc extends ir{constructor(a,e,t="imperative",r=null){super(a,e),this.type=0,this.navigationTrigger=t,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Rr extends ir{constructor(a,e,t){super(a,e),this.urlAfterRedirects=t,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class va extends ir{constructor(a,e,t,r){super(a,e),this.reason=t,this.code=r,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Tf extends ir{constructor(a,e,t,r){super(a,e),this.error=t,this.target=r,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class xf extends ir{constructor(a,e,t,r){super(a,e),this.urlAfterRedirects=t,this.state=r,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Sn extends ir{constructor(a,e,t,r){super(a,e),this.urlAfterRedirects=t,this.state=r,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Pg extends ir{constructor(a,e,t,r,d){super(a,e),this.urlAfterRedirects=t,this.state=r,this.shouldActivate=d,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class kg extends ir{constructor(a,e,t,r){super(a,e),this.urlAfterRedirects=t,this.state=r,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Og extends ir{constructor(a,e,t,r){super(a,e),this.urlAfterRedirects=t,this.state=r,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ig{constructor(a){this.route=a,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Bg{constructor(a){this.route=a,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class gh{constructor(a){this.snapshot=a,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ng{constructor(a){this.snapshot=a,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class pl{constructor(a){this.snapshot=a,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Vg{constructor(a){this.snapshot=a,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class zd{constructor(a,e,t){this.routerEvent=a,this.position=e,this.anchor=t,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Cc{constructor(a){this._root=a}get root(){return this._root.value}parent(a){const e=this.pathFromRoot(a);return e.length>1?e[e.length-2]:null}children(a){const e=ks(a,this._root);return e?e.children.map(t=>t.value):[]}firstChild(a){const e=ks(a,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(a){const e=_h(a,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==a)}pathFromRoot(a){return _h(a,this._root).map(e=>e.value)}}function ks(i,a){if(i===a.value)return a;for(const e of a.children){const t=ks(i,e);if(t)return t}return null}function _h(i,a){if(i===a.value)return[a];for(const e of a.children){const t=_h(i,e);if(t.length)return t.unshift(a),t}return[]}class Ta{constructor(a,e){this.value=a,this.children=e}toString(){return`TreeNode(${this.value})`}}function Si(i){const a={};return i&&i.children.forEach(e=>a[e.value.outlet]=e),a}class aa extends Cc{constructor(a,e){super(a),this.snapshot=e,xa(this,a)}toString(){return this.snapshot.toString()}}function vc(i,a){const e=function Tc(i,a){const u=new Sc([],{},{},"",{},qt,a,null,i.root,-1,{});return new Ef("",new Ta(u,[]))}(i,a),t=new pt([new $n("",{})]),r=new pt({}),d=new pt({}),u=new pt({}),c=new pt(""),o=new mi(t,r,u,c,d,qt,a,e.root);return o.snapshot=e.root,new aa(new Ta(o,[]),e)}class mi{constructor(a,e,t,r,d,u,c,o){this.url=a,this.params=e,this.queryParams=t,this.fragment=r,this.data=d,this.outlet=u,this.component=c,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((0,Mt.U)(a=>Ya(a)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,Mt.U)(a=>Ya(a)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function xc(i,a="emptyOnly"){const e=i.pathFromRoot;let t=0;if("always"!==a)for(t=e.length-1;t>=1;){const r=e[t],d=e[t-1];if(r.routeConfig&&""===r.routeConfig.path)t--;else{if(d.component)break;t--}}return function Sf(i){return i.reduce((a,e)=>{var t;return{params:{...a.params,...e.params},data:{...a.data,...e.data},resolve:{...e.data,...a.resolve,...null===(t=e.routeConfig)||void 0===t?void 0:t.data,...e._resolvedData}}},{params:{},data:{},resolve:{}})}(e.slice(t))}class Sc{constructor(a,e,t,r,d,u,c,o,s,l,h,p){this.url=a,this.params=e,this.queryParams=t,this.fragment=r,this.data=d,this.outlet=u,this.component=c,this.routeConfig=o,this._urlSegment=s,this._lastPathIndex=l,this._correctedLastPathIndex=p??l,this._resolve=h}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Ya(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ya(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Ef extends Cc{constructor(a,e){super(e),this.url=a,xa(this,e)}toString(){return Ec(this._root)}}function xa(i,a){a.value._routerState=i,a.children.forEach(e=>xa(i,e))}function Ec(i){const a=i.children.length>0?` { ${i.children.map(Ec).join(", ")} } `:"";return`${i.value}${a}`}function Ki(i){if(i.snapshot){const a=i.snapshot,e=i._futureSnapshot;i.snapshot=e,fr(a.queryParams,e.queryParams)||i.queryParams.next(e.queryParams),a.fragment!==e.fragment&&i.fragment.next(e.fragment),fr(a.params,e.params)||i.params.next(e.params),function rl(i,a){if(i.length!==a.length)return!1;for(let e=0;efr(e.parameters,a[t].parameters))}(i.url,a.url);return e&&!(!i.parent!=!a.parent)&&(!i.parent||fl(i.parent,a.parent))}function Ue(i,a,e){if(e&&i.shouldReuseRoute(a.value,e.value.snapshot)){const t=e.value;t._futureSnapshot=a.value;const r=function bh(i,a,e){return a.children.map(t=>{for(const r of e.children)if(i.shouldReuseRoute(t.value,r.value.snapshot))return Ue(i,t,r);return Ue(i,t)})}(i,a,e);return new Ta(t,r)}{if(i.shouldAttach(a.value)){const d=i.retrieve(a.value);if(null!==d){const u=d.route;return u.value._futureSnapshot=a.value,u.children=a.children.map(c=>Ue(i,c)),u}}const t=function Df(i){return new mi(new pt(i.url),new pt(i.params),new pt(i.queryParams),new pt(i.fragment),new pt(i.data),i.outlet,i.component,i)}(a.value),r=a.children.map(d=>Ue(i,d));return new Ta(t,r)}}const Dc="ngNavigationCancelingError";function an(i,a){const{redirectTo:e,navigationBehaviorOptions:t}=Ma(a)?{redirectTo:a,navigationBehaviorOptions:void 0}:a,r=ml(!1,0,a);return r.url=e,r.navigationBehaviorOptions=t,r}function ml(i,a,e){const t=new Error("NavigationCancelingError: "+(i||""));return t[Dc]=!0,t.cancellationCode=a,e&&(t.url=e),t}function Ud(i){return Lc(i)&&Ma(i.url)}function Lc(i){return i&&i[Dc]}class qd{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new $a,this.attachRef=null}}let $a=(()=>{class i{constructor(){this.contexts=new Map}onChildOutletCreated(e,t){const r=this.getOrCreateContext(e);r.outlet=t,this.contexts.set(e,r)}onChildOutletDestroyed(e){const t=this.getContext(e);t&&(t.outlet=null,t.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new qd,this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const Yd=!1;let Wr=(()=>{class i{constructor(e,t,r,d,u){this.parentContexts=e,this.location=t,this.changeDetector=d,this.environmentInjector=u,this.activated=null,this._activatedRoute=null,this.activateEvents=new n.vpe,this.deactivateEvents=new n.vpe,this.attachEvents=new n.vpe,this.detachEvents=new n.vpe,this.name=r||qt,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){var e;(null===(e=this.parentContexts.getContext(this.name))||void 0===e?void 0:e.outlet)===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new n.vHH(4012,Yd);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new n.vHH(4012,Yd);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new n.vHH(4012,Yd);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new n.vHH(4013,Yd);this._activatedRoute=e;const r=this.location,u=e._futureSnapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,o=new Wd(e,c,r.injector);if(t&&function Pr(i){return!!i.resolveComponentFactory}(t)){const s=t.resolveComponentFactory(u);this.activated=r.createComponent(s,r.length,o)}else this.activated=r.createComponent(u,{index:r.length,injector:o,environmentInjector:t??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36($a),n.Y36(n.s_b),n.$8M("name"),n.Y36(n.sBO),n.Y36(n.lqb))},i.\u0275dir=n.lG2({type:i,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),i})();class Wd{constructor(a,e,t){this.route=a,this.childContexts=e,this.parent=t}get(a,e){return a===mi?this.route:a===$a?this.childContexts:this.parent.get(a,e)}}let Ah=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&n._UZ(0,"router-outlet")},dependencies:[Wr],encapsulation:2}),i})();function Gd(i,a){var e;return i.providers&&!i._injector&&(i._injector=(0,n.MMx)(i.providers,a,`Route: ${i.path}`)),null!==(e=i._injector)&&void 0!==e?e:a}function mr(i){const a=i.children&&i.children.map(mr),e=a?{...i,children:a}:{...i};return!e.component&&!e.loadComponent&&(a||e.loadChildren)&&e.outlet&&e.outlet!==qt&&(e.component=Ah),e}function qi(i){return i.outlet||qt}function Mh(i,a){const e=i.filter(t=>qi(t)===a);return e.push(...i.filter(t=>qi(t)!==a)),e}function Ch(i){var a;if(!i)return null;if(null!==(a=i.routeConfig)&&void 0!==a&&a._injector)return i.routeConfig._injector;for(let e=i.parent;e;e=e.parent){const t=e.routeConfig;if(null!=t&&t._loadedInjector)return t._loadedInjector;if(null!=t&&t._injector)return t._injector}return null}class $d{constructor(a,e,t,r){this.routeReuseStrategy=a,this.futureState=e,this.currState=t,this.forwardEvent=r}activate(a){const e=this.futureState._root,t=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,t,a),Ki(this.futureState.root),this.activateChildRoutes(e,t,a)}deactivateChildRoutes(a,e,t){const r=Si(e);a.children.forEach(d=>{const u=d.value.outlet;this.deactivateRoutes(d,r[u],t),delete r[u]}),rn(r,(d,u)=>{this.deactivateRouteAndItsChildren(d,t)})}deactivateRoutes(a,e,t){const r=a.value,d=e?e.value:null;if(r===d)if(r.component){const u=t.getContext(r.outlet);u&&this.deactivateChildRoutes(a,e,u.children)}else this.deactivateChildRoutes(a,e,t);else d&&this.deactivateRouteAndItsChildren(e,t)}deactivateRouteAndItsChildren(a,e){a.value.component&&this.routeReuseStrategy.shouldDetach(a.value.snapshot)?this.detachAndStoreRouteSubtree(a,e):this.deactivateRouteAndOutlet(a,e)}detachAndStoreRouteSubtree(a,e){const t=e.getContext(a.value.outlet),r=t&&a.value.component?t.children:e,d=Si(a);for(const u of Object.keys(d))this.deactivateRouteAndItsChildren(d[u],r);if(t&&t.outlet){const u=t.outlet.detach(),c=t.children.onOutletDeactivated();this.routeReuseStrategy.store(a.value.snapshot,{componentRef:u,route:a,contexts:c})}}deactivateRouteAndOutlet(a,e){const t=e.getContext(a.value.outlet),r=t&&a.value.component?t.children:e,d=Si(a);for(const u of Object.keys(d))this.deactivateRouteAndItsChildren(d[u],r);t&&t.outlet&&(t.outlet.deactivate(),t.children.onOutletDeactivated(),t.attachRef=null,t.resolver=null,t.route=null)}activateChildRoutes(a,e,t){const r=Si(e);a.children.forEach(d=>{this.activateRoutes(d,r[d.value.outlet],t),this.forwardEvent(new Vg(d.value.snapshot))}),a.children.length&&this.forwardEvent(new Ng(a.value.snapshot))}activateRoutes(a,e,t){const r=a.value,d=e?e.value:null;if(Ki(r),r===d)if(r.component){const c=t.getOrCreateContext(r.outlet);this.activateChildRoutes(a,e,c.children)}else this.activateChildRoutes(a,e,t);else if(r.component){const c=t.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const o=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),c.children.onOutletReAttached(o.contexts),c.attachRef=o.componentRef,c.route=o.route.value,c.outlet&&c.outlet.attach(o.componentRef,o.route.value),Ki(o.route.value),this.activateChildRoutes(a,null,c.children)}else{var u;const o=Ch(r.snapshot),s=null!==(u=o?.get(n._Vd))&&void 0!==u?u:null;c.attachRef=null,c.route=r,c.resolver=s,c.injector=o,c.outlet&&c.outlet.activateWith(r,c.injector),this.activateChildRoutes(a,null,c.children)}}else this.activateChildRoutes(a,null,t)}}class To{constructor(a){this.path=a,this.route=this.path[this.path.length-1]}}class bl{constructor(a,e){this.component=a,this.route=e}}function Al(i,a,e){const t=i._root;return Sa(t,a?a._root:null,e,[t.value])}function yl(i,a,e){return(Ch(a)??e).get(i)}function Sa(i,a,e,t,r={canDeactivateChecks:[],canActivateChecks:[]}){const d=Si(a);return i.children.forEach(u=>{(function sa(i,a,e,t,r={canDeactivateChecks:[],canActivateChecks:[]}){const d=i.value,u=a?a.value:null,c=e?e.getContext(i.value.outlet):null;if(u&&d.routeConfig===u.routeConfig){const o=function vh(i,a,e){if("function"==typeof e)return e(i,a);switch(e){case"pathParamsChange":return!Ga(i.url,a.url);case"pathParamsOrQueryParamsChange":return!Ga(i.url,a.url)||!fr(i.queryParams,a.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!fl(i,a)||!fr(i.queryParams,a.queryParams);default:return!fl(i,a)}}(u,d,d.routeConfig.runGuardsAndResolvers);o?r.canActivateChecks.push(new To(t)):(d.data=u.data,d._resolvedData=u._resolvedData),Sa(i,a,d.component?c?c.children:null:e,t,r),o&&c&&c.outlet&&c.outlet.isActivated&&r.canDeactivateChecks.push(new bl(c.outlet.component,u))}else u&&wl(a,c,r),r.canActivateChecks.push(new To(t)),Sa(i,null,d.component?c?c.children:null:e,t,r)})(u,d[u.value.outlet],e,t.concat([u.value]),r),delete d[u.value.outlet]}),rn(d,(u,c)=>wl(u,e.getContext(c),r)),r}function wl(i,a,e){const t=Si(i),r=i.value;rn(t,(d,u)=>{wl(d,r.component?a?a.children.getContext(u):null:a,e)}),e.canDeactivateChecks.push(new bl(r.component&&a&&a.outlet&&a.outlet.isActivated?a.outlet.component:null,r))}function Ml(i){return"function"==typeof i}function Zd(i){return i instanceof wa.K||"EmptyError"===i?.name}const Pc=Symbol("INITIAL_VALUE");function Da(){return(0,An.w)(i=>(0,nr.a)(i.map(a=>a.pipe((0,ht.q)(1),vn(Pc)))).pipe((0,Mt.U)(a=>{for(const e of a)if(!0!==e){if(e===Pc)return Pc;if(!1===e||e instanceof Wa)return e}return!0}),(0,bt.h)(a=>a!==Pc),(0,ht.q)(1)))}function Q(i){return(0,Gn.z)((0,Wt.b)(a=>{if(Ma(a))throw an(0,a)}),(0,Mt.U)(a=>!0===a))}const ve={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function At(i,a,e,t,r){const d=jt(i,a,e);return d.matched?function he(i,a,e,t){const r=a.canMatch;if(!r||0===r.length)return(0,Ee.of)(!0);const d=r.map(u=>{const c=i.get(u),o=function Ea(i){return i&&Ml(i.canMatch)}(c)?c.canMatch(a,e):c(a,e);return xi(o)});return(0,Ee.of)(d).pipe(Da(),Q())}(t=Gd(a,t),a,e).pipe((0,Mt.U)(u=>!0===u?d:{...ve})):(0,Ee.of)(d)}function jt(i,a,e){var t;if(""===a.path)return"full"===a.pathMatch&&(i.hasChildren()||e.length>0)?{...ve}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const d=(a.matcher||il)(e,i,a);if(!d)return{...ve};const u={};rn(d.posParams,(o,s)=>{u[s]=o.path});const c=d.consumed.length>0?{...u,...d.consumed[d.consumed.length-1].parameters}:u;return{matched:!0,consumedSegments:d.consumed,remainingSegments:e.slice(d.consumed.length),parameters:c,positionalParamSegments:null!==(t=d.posParams)&&void 0!==t?t:{}}}function mn(i,a,e,t,r="corrected"){if(e.length>0&&function La(i,a,e){return e.some(t=>Xd(i,a,t)&&qi(t)!==qt)}(i,e,t)){const u=new Gt(a,function Gr(i,a,e,t){const r={};r[qt]=t,t._sourceSegment=i,t._segmentIndexShift=a.length;for(const d of e)if(""===d.path&&qi(d)!==qt){const u=new Gt([],{});u._sourceSegment=i,u._segmentIndexShift=a.length,r[qi(d)]=u}return r}(i,a,t,new Gt(e,i.children)));return u._sourceSegment=i,u._segmentIndexShift=a.length,{segmentGroup:u,slicedSegments:[]}}if(0===e.length&&function zg(i,a,e){return e.some(t=>Xd(i,a,t))}(i,e,t)){const u=new Gt(i.segments,function Ei(i,a,e,t,r,d){const u={};for(const c of t)if(Xd(i,e,c)&&!r[qi(c)]){const o=new Gt([],{});o._sourceSegment=i,o._segmentIndexShift="legacy"===d?i.segments.length:a.length,u[qi(c)]=o}return{...r,...u}}(i,a,e,t,i.children,r));return u._sourceSegment=i,u._segmentIndexShift=a.length,{segmentGroup:u,slicedSegments:e}}const d=new Gt(i.segments,i.children);return d._sourceSegment=i,d._segmentIndexShift=a.length,{segmentGroup:d,slicedSegments:e}}function Xd(i,a,e){return(!(i.hasChildren()||a.length>0)||"full"!==e.pathMatch)&&""===e.path}function So(i,a,e,t){return!!(qi(i)===t||t!==qt&&Xd(a,e,i))&&("**"===i.path||jt(a,i,e).matched)}function Ug(i,a,e){return 0===a.length&&!i.children[e]}const Sh=!1;class Eh{constructor(a){this.segmentGroup=a||null}}class qg{constructor(a){this.urlTree=a}}function Kd(i){return(0,Ui._)(new Eh(i))}function Za(i){return(0,Ui._)(new qg(i))}class hy{constructor(a,e,t,r,d){this.injector=a,this.configLoader=e,this.urlSerializer=t,this.urlTree=r,this.config=d,this.allowRedirects=!0}apply(){const a=mn(this.urlTree.root,[],[],this.config).segmentGroup,e=new Gt(a.segments,a.children);return this.expandSegmentGroup(this.injector,this.config,e,qt).pipe((0,Mt.U)(d=>this.createUrlTree(bc(d),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,Fn.K)(d=>{if(d instanceof qg)return this.allowRedirects=!1,this.match(d.urlTree);throw d instanceof Eh?this.noMatchError(d):d}))}match(a){return this.expandSegmentGroup(this.injector,this.config,a.root,qt).pipe((0,Mt.U)(r=>this.createUrlTree(bc(r),a.queryParams,a.fragment))).pipe((0,Fn.K)(r=>{throw r instanceof Eh?this.noMatchError(r):r}))}noMatchError(a){return new n.vHH(4002,Sh)}createUrlTree(a,e,t){const r=Lr(a);return new Wa(r,e,t)}expandSegmentGroup(a,e,t,r){return 0===t.segments.length&&t.hasChildren()?this.expandChildren(a,e,t).pipe((0,Mt.U)(d=>new Gt([],d))):this.expandSegment(a,t,e,t.segments,r,!0)}expandChildren(a,e,t){const r=[];for(const d of Object.keys(t.children))"primary"===d?r.unshift(d):r.push(d);return(0,Se.D)(r).pipe((0,Fr.b)(d=>{const u=t.children[d],c=Mh(e,d);return this.expandSegmentGroup(a,c,u,d).pipe((0,Mt.U)(o=>({segment:o,outlet:d})))}),Cs((d,u)=>(d[u.outlet]=u.segment,d),{}),Pd())}expandSegment(a,e,t,r,d,u){return(0,Se.D)(t).pipe((0,Fr.b)(c=>this.expandSegmentAgainstRoute(a,e,t,c,r,d,u).pipe((0,Fn.K)(s=>{if(s instanceof Eh)return(0,Ee.of)(null);throw s}))),(0,Ur.P)(c=>!!c),(0,Fn.K)((c,o)=>{if(Zd(c))return Ug(e,r,d)?(0,Ee.of)(new Gt([],{})):Kd(e);throw c}))}expandSegmentAgainstRoute(a,e,t,r,d,u,c){return So(r,e,d,u)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(a,e,r,d,u):c&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(a,e,t,r,d,u):Kd(e):Kd(e)}expandSegmentAgainstRouteUsingRedirect(a,e,t,r,d,u){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(a,t,r,u):this.expandRegularSegmentAgainstRouteUsingRedirect(a,e,t,r,d,u)}expandWildCardWithParamsAgainstRouteUsingRedirect(a,e,t,r){const d=this.applyRedirectCommands([],t.redirectTo,{});return t.redirectTo.startsWith("/")?Za(d):this.lineralizeSegments(t,d).pipe((0,pr.z)(u=>{const c=new Gt(u,{});return this.expandSegment(a,c,e,u,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(a,e,t,r,d,u){const{matched:c,consumedSegments:o,remainingSegments:s,positionalParamSegments:l}=jt(e,r,d);if(!c)return Kd(e);const h=this.applyRedirectCommands(o,r.redirectTo,l);return r.redirectTo.startsWith("/")?Za(h):this.lineralizeSegments(r,h).pipe((0,pr.z)(p=>this.expandSegment(a,e,t,p.concat(s),u,!1)))}matchSegmentAgainstRoute(a,e,t,r,d){return"**"===t.path?(a=Gd(t,a),t.loadChildren?(t._loadedRoutes?(0,Ee.of)({routes:t._loadedRoutes,injector:t._loadedInjector}):this.configLoader.loadChildren(a,t)).pipe((0,Mt.U)(c=>(t._loadedRoutes=c.routes,t._loadedInjector=c.injector,new Gt(r,{})))):(0,Ee.of)(new Gt(r,{}))):At(e,t,r,a).pipe((0,An.w)(({matched:u,consumedSegments:c,remainingSegments:o})=>{var s;return u?(a=null!==(s=t._injector)&&void 0!==s?s:a,this.getChildConfig(a,t,r).pipe((0,pr.z)(h=>{var p;const m=null!==(p=h.injector)&&void 0!==p?p:a,g=h.routes,{segmentGroup:f,slicedSegments:w}=mn(e,c,o,g),N=new Gt(f.segments,f.children);if(0===w.length&&N.hasChildren())return this.expandChildren(m,g,N).pipe((0,Mt.U)(Mi=>new Gt(c,Mi)));if(0===g.length&&0===w.length)return(0,Ee.of)(new Gt(c,{}));const se=qi(t)===d;return this.expandSegment(m,N,g,w,se?qt:d,!0).pipe((0,Mt.U)(ot=>new Gt(c.concat(ot.segments),ot.children)))}))):Kd(e)}))}getChildConfig(a,e,t){return e.children?(0,Ee.of)({routes:e.children,injector:a}):e.loadChildren?void 0!==e._loadedRoutes?(0,Ee.of)({routes:e._loadedRoutes,injector:e._loadedInjector}):function q(i,a,e,t){const r=a.canLoad;if(void 0===r||0===r.length)return(0,Ee.of)(!0);const d=r.map(u=>{const c=i.get(u),o=function Cl(i){return i&&Ml(i.canLoad)}(c)?c.canLoad(a,e):c(a,e);return xi(o)});return(0,Ee.of)(d).pipe(Da(),Q())}(a,e,t).pipe((0,pr.z)(r=>r?this.configLoader.loadChildren(a,e).pipe((0,Wt.b)(d=>{e._loadedRoutes=d.routes,e._loadedInjector=d.injector})):function dy(i){return(0,Ui._)(ml(Sh,3))}())):(0,Ee.of)({routes:[],injector:a})}lineralizeSegments(a,e){let t=[],r=e.root;for(;;){if(t=t.concat(r.segments),0===r.numberOfChildren)return(0,Ee.of)(t);if(r.numberOfChildren>1||!r.children[qt])return(0,Ui._)(new n.vHH(4e3,Sh));r=r.children[qt]}}applyRedirectCommands(a,e,t){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),a,t)}applyRedirectCreateUrlTree(a,e,t,r){const d=this.createSegmentGroup(a,e.root,t,r);return new Wa(d,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(a,e){const t={};return rn(a,(r,d)=>{if("string"==typeof r&&r.startsWith(":")){const c=r.substring(1);t[d]=e[c]}else t[d]=r}),t}createSegmentGroup(a,e,t,r){const d=this.createSegments(a,e.segments,t,r);let u={};return rn(e.children,(c,o)=>{u[o]=this.createSegmentGroup(a,c,t,r)}),new Gt(d,u)}createSegments(a,e,t,r){return e.map(d=>d.path.startsWith(":")?this.findPosParam(a,d,r):this.findOrReturn(d,t))}findPosParam(a,e,t){const r=t[e.path.substring(1)];if(!r)throw new n.vHH(4001,Sh);return r}findOrReturn(a,e){let t=0;for(const r of e){if(r.path===a.path)return e.splice(t),r;t++}return a}}class fy{}class gy{constructor(a,e,t,r,d,u,c,o){this.injector=a,this.rootComponentType=e,this.config=t,this.urlTree=r,this.url=d,this.paramsInheritanceStrategy=u,this.relativeLinkResolution=c,this.urlSerializer=o}recognize(){const a=mn(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,a,qt).pipe((0,Mt.U)(e=>{if(null===e)return null;const t=new Sc([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},qt,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Ta(t,e),d=new Ef(this.url,r);return this.inheritParamsAndData(d._root),d}))}inheritParamsAndData(a){const e=a.value,t=xc(e,this.paramsInheritanceStrategy);e.params=Object.freeze(t.params),e.data=Object.freeze(t.data),a.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(a,e,t,r){return 0===t.segments.length&&t.hasChildren()?this.processChildren(a,e,t):this.processSegment(a,e,t,t.segments,r)}processChildren(a,e,t){return(0,Se.D)(Object.keys(t.children)).pipe((0,Fr.b)(r=>{const d=t.children[r],u=Mh(e,r);return this.processSegmentGroup(a,u,d,r)}),Cs((r,d)=>r&&d?(r.push(...d),r):null),pc(r=>null!==r),(0,hc.d)(null),Pd(),(0,Mt.U)(r=>{if(null===r)return null;const d=Wg(r);return function _y(i){i.sort((a,e)=>a.value.outlet===qt?-1:e.value.outlet===qt?1:a.value.outlet.localeCompare(e.value.outlet))}(d),d}))}processSegment(a,e,t,r,d){return(0,Se.D)(e).pipe((0,Fr.b)(u=>{var c;return this.processSegmentAgainstRoute(null!==(c=u._injector)&&void 0!==c?c:a,u,t,r,d)}),(0,Ur.P)(u=>!!u),(0,Fn.K)(u=>{if(Zd(u))return Ug(t,r,d)?(0,Ee.of)([]):(0,Ee.of)(null);throw u}))}processSegmentAgainstRoute(a,e,t,r,d){if(e.redirectTo||!So(e,t,r,d))return(0,Ee.of)(null);let u;if("**"===e.path){var c,o;const s=r.length>0?oh(r).parameters:{},l=Ha(t)+r.length,h=new Sc(r,s,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,If(e),qi(e),null!==(c=null!==(o=e.component)&&void 0!==o?o:e._loadedComponent)&&void 0!==c?c:null,e,Of(t),l,Bf(e),l);u=(0,Ee.of)({snapshot:h,consumedSegments:[],remainingSegments:[]})}else u=At(t,e,r,a).pipe((0,Mt.U)(({matched:s,consumedSegments:l,remainingSegments:h,parameters:p})=>{var m,g;if(!s)return null;const f=Ha(t)+l.length;return{snapshot:new Sc(l,p,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,If(e),qi(e),null!==(m=null!==(g=e.component)&&void 0!==g?g:e._loadedComponent)&&void 0!==m?m:null,e,Of(t),f,Bf(e),f),consumedSegments:l,remainingSegments:h}}));return u.pipe((0,An.w)(s=>{var l,h;if(null===s)return(0,Ee.of)(null);const{snapshot:p,consumedSegments:m,remainingSegments:g}=s;a=null!==(l=e._injector)&&void 0!==l?l:a;const f=null!==(h=e._loadedInjector)&&void 0!==h?h:a,w=function by(i){return i.children?i.children:i.loadChildren?i._loadedRoutes:[]}(e),{segmentGroup:N,slicedSegments:se}=mn(t,m,g,w.filter(ot=>void 0===ot.redirectTo),this.relativeLinkResolution);if(0===se.length&&N.hasChildren())return this.processChildren(f,w,N).pipe((0,Mt.U)(ot=>null===ot?null:[new Ta(p,ot)]));if(0===w.length&&0===se.length)return(0,Ee.of)([new Ta(p,[])]);const Pe=qi(e)===d;return this.processSegment(f,w,N,se,Pe?qt:d).pipe((0,Mt.U)(ot=>null===ot?null:[new Ta(p,ot)]))}))}}function QT(i){const a=i.value.routeConfig;return a&&""===a.path&&void 0===a.redirectTo}function Wg(i){const a=[],e=new Set;for(const t of i){if(!QT(t)){a.push(t);continue}const r=a.find(d=>t.value.routeConfig===d.value.routeConfig);void 0!==r?(r.children.push(...t.children),e.add(r)):a.push(t)}for(const t of e){const r=Wg(t.children);a.push(new Ta(t.value,r))}return a.filter(t=>!e.has(t))}function Of(i){let a=i;for(;a._sourceSegment;)a=a._sourceSegment;return a}function Ha(i){var a;let e=i,t=null!==(a=e._segmentIndexShift)&&void 0!==a?a:0;for(;e._sourceSegment;){var r;e=e._sourceSegment,t+=null!==(r=e._segmentIndexShift)&&void 0!==r?r:0}return t-1}function If(i){return i.data||{}}function Bf(i){return i.resolve||{}}const $g=Symbol("RouteTitle");function Ay(i){return"string"==typeof i.title||null===i.title}function Zg(i){return(0,An.w)(a=>{const e=i(a);return e?(0,Se.D)(e).pipe((0,Mt.U)(()=>a)):(0,Ee.of)(a)})}let Ff=(()=>{class i{buildTitle(e){let t,r=e.root;for(;void 0!==r;){var d;t=null!==(d=this.getResolvedTitleForRoute(r))&&void 0!==d?d:t,r=r.children.find(u=>u.outlet===qt)}return t}getResolvedTitleForRoute(e){return e.data[$g]}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:function(){return(0,n.f3M)(Jg)},providedIn:"root"}),i})(),Jg=(()=>{class i extends Ff{constructor(e){super(),this.title=e}updateTitle(e){const t=this.buildTitle(e);void 0!==t&&this.title.setTitle(t)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(ce))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();class yy{}class My extends class wy{shouldDetach(a){return!1}store(a,e){}shouldAttach(a){return!1}retrieve(a){return null}shouldReuseRoute(a,e){return a.routeConfig===e.routeConfig}}{}const Ic=new n.OlP("",{providedIn:"root",factory:()=>({})}),tu=new n.OlP("ROUTES");let Uf=(()=>{class i{constructor(e,t){this.injector=e,this.compiler=t,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return(0,Ee.of)(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const t=xi(e.loadComponent()).pipe((0,Wt.b)(d=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=d}),bo(()=>{this.componentLoaders.delete(e)})),r=new mf(t,()=>new Le.x).pipe(Ms());return this.componentLoaders.set(e,r),r}loadChildren(e,t){if(this.childrenLoaders.get(t))return this.childrenLoaders.get(t);if(t._loadedRoutes)return(0,Ee.of)({routes:t._loadedRoutes,injector:t._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(t);const d=this.loadModuleFactoryOrRoutes(t.loadChildren).pipe((0,Mt.U)(c=>{this.onLoadEndListener&&this.onLoadEndListener(t);let o,s,l=!1;Array.isArray(c)?s=c:(o=c.create(e).injector,s=al(o.get(tu,[],n.XFs.Self|n.XFs.Optional)));return{routes:s.map(mr),injector:o}}),bo(()=>{this.childrenLoaders.delete(t)})),u=new mf(d,()=>new Le.x).pipe(Ms());return this.childrenLoaders.set(t,u),u}loadModuleFactoryOrRoutes(e){return xi(e()).pipe((0,pr.z)(t=>t instanceof n.YKP||Array.isArray(t)?(0,Ee.of)(t):(0,Se.D)(this.compiler.compileModuleAsync(t))))}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(n.zs3),n.LFG(n.Sil))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();class gi{}class Xg{shouldProcessUrl(a){return!0}extract(a){return a}merge(a,e){return a}}function qf(i){throw i}function Kg(i,a,e){return a.parse("/")}const Cy={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},vy={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function e1(){var i,a;const e=(0,n.f3M)(Ts),t=(0,n.f3M)($a),r=(0,n.f3M)(T.Ye),d=(0,n.f3M)(n.zs3),u=(0,n.f3M)(n.Sil),c=null!==(i=(0,n.f3M)(tu,{optional:!0}))&&void 0!==i?i:[],o=null!==(a=(0,n.f3M)(Ic,{optional:!0}))&&void 0!==a?a:{},s=(0,n.f3M)(Jg),l=(0,n.f3M)(Ff,{optional:!0}),h=(0,n.f3M)(gi,{optional:!0}),p=(0,n.f3M)(yy,{optional:!0}),m=new Dn(null,e,t,r,d,u,al(c));return h&&(m.urlHandlingStrategy=h),p&&(m.routeReuseStrategy=p),m.titleStrategy=l??s,function Ty(i,a){i.errorHandler&&(a.errorHandler=i.errorHandler),i.malformedUriErrorHandler&&(a.malformedUriErrorHandler=i.malformedUriErrorHandler),i.onSameUrlNavigation&&(a.onSameUrlNavigation=i.onSameUrlNavigation),i.paramsInheritanceStrategy&&(a.paramsInheritanceStrategy=i.paramsInheritanceStrategy),i.relativeLinkResolution&&(a.relativeLinkResolution=i.relativeLinkResolution),i.urlUpdateStrategy&&(a.urlUpdateStrategy=i.urlUpdateStrategy),i.canceledNavigationResolution&&(a.canceledNavigationResolution=i.canceledNavigationResolution)}(o,m),m}let Dn=(()=>{class i{constructor(e,t,r,d,u,c,o){this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=r,this.location=d,this.config=o,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Le.x,this.errorHandler=qf,this.malformedUriErrorHandler=Kg,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>(0,Ee.of)(void 0),this.urlHandlingStrategy=new Xg,this.routeReuseStrategy=new My,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=u.get(Uf),this.configLoader.onLoadEndListener=p=>this.triggerEvent(new Bg(p)),this.configLoader.onLoadStartListener=p=>this.triggerEvent(new Ig(p)),this.ngModule=u.get(n.h0i),this.console=u.get(n.c2e);const h=u.get(n.R0b);this.isNgZoneEnabled=h instanceof n.R0b&&n.R0b.isInAngularZone(),this.resetConfig(o),this.currentUrlTree=function ch(){return new Wa(new Gt([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=vc(this.currentUrlTree,this.rootComponentType),this.transitions=new pt({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var e;return null===(e=this.location.getState())||void 0===e?void 0:e.\u0275routerPageId}setupNavigations(e){const t=this.events;return e.pipe((0,bt.h)(r=>0!==r.id),(0,Mt.U)(r=>({...r,extractedUrl:this.urlHandlingStrategy.extract(r.rawUrl)})),(0,An.w)(r=>{let d=!1,u=!1;return(0,Ee.of)(r).pipe((0,Wt.b)(c=>{this.currentNavigation={id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,An.w)(c=>{const o=this.browserUrlTree.toString(),s=!this.navigated||c.extractedUrl.toString()!==o||o!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||s)&&this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return xy(c.source)&&(this.browserUrlTree=c.extractedUrl),(0,Ee.of)(c).pipe((0,An.w)(h=>{const p=this.transitions.getValue();return t.next(new Mc(h.id,this.serializeUrl(h.extractedUrl),h.source,h.restoredState)),p!==this.transitions.getValue()?Xi.E:Promise.resolve(h)}),function py(i,a,e,t){return(0,An.w)(r=>function uy(i,a,e,t,r){return new hy(i,a,e,t,r).apply()}(i,a,e,r.extractedUrl,t).pipe((0,Mt.U)(d=>({...r,urlAfterRedirects:d}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,Wt.b)(h=>{this.currentNavigation={...this.currentNavigation,finalUrl:h.urlAfterRedirects},r.urlAfterRedirects=h.urlAfterRedirects}),function Gg(i,a,e,t,r,d){return(0,pr.z)(u=>function my(i,a,e,t,r,d,u="emptyOnly",c="legacy"){return new gy(i,a,e,t,r,u,c,d).recognize().pipe((0,An.w)(o=>null===o?function Yg(i){return new yn.y(a=>a.error(i))}(new fy):(0,Ee.of)(o)))}(i,a,e,u.urlAfterRedirects,t.serialize(u.urlAfterRedirects),t,r,d).pipe((0,Mt.U)(c=>({...u,targetSnapshot:c}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,Wt.b)(h=>{if(r.targetSnapshot=h.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!h.extras.skipLocationChange){const m=this.urlHandlingStrategy.merge(h.urlAfterRedirects,h.rawUrl);this.setBrowserUrl(m,h)}this.browserUrlTree=h.urlAfterRedirects}const p=new xf(h.id,this.serializeUrl(h.extractedUrl),this.serializeUrl(h.urlAfterRedirects),h.targetSnapshot);t.next(p)}));if(s&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:p,extractedUrl:m,source:g,restoredState:f,extras:w}=c,N=new Mc(p,this.serializeUrl(m),g,f);t.next(N);const se=vc(m,this.rootComponentType).snapshot;return r={...c,targetSnapshot:se,urlAfterRedirects:m,extras:{...w,skipLocationChange:!1,replaceUrl:!1}},(0,Ee.of)(r)}return this.rawUrlTree=c.rawUrl,c.resolve(null),Xi.E}),(0,Wt.b)(c=>{const o=new Sn(c.id,this.serializeUrl(c.extractedUrl),this.serializeUrl(c.urlAfterRedirects),c.targetSnapshot);this.triggerEvent(o)}),(0,Mt.U)(c=>r={...c,guards:Al(c.targetSnapshot,c.currentSnapshot,this.rootContexts)}),function xh(i,a){return(0,pr.z)(e=>{const{targetSnapshot:t,currentSnapshot:r,guards:{canActivateChecks:d,canDeactivateChecks:u}}=e;return 0===u.length&&0===d.length?(0,Ee.of)({...e,guardsResult:!0}):function Jd(i,a,e,t){return(0,Se.D)(i).pipe((0,pr.z)(r=>function V(i,a,e,t,r){const d=a&&a.routeConfig?a.routeConfig.canDeactivate:null;if(!d||0===d.length)return(0,Ee.of)(!0);const u=d.map(c=>{const o=yl(c,a,r);return xi(function Th(i){return i&&Ml(i.canDeactivate)}(o)?o.canDeactivate(i,a,e,t):o(i,a,e,t)).pipe((0,Ur.P)())});return(0,Ee.of)(u).pipe(Da())}(r.component,r.route,e,a,t)),(0,Ur.P)(r=>!0!==r,!0))}(u,t,r,i).pipe((0,pr.z)(c=>c&&function xo(i){return"boolean"==typeof i}(c)?function Os(i,a,e,t){return(0,Se.D)(a).pipe((0,Fr.b)(r=>(0,tr.z)(function Jt(i,a){return null!==i&&a&&a(new gh(i)),(0,Ee.of)(!0)}(r.route.parent,t),function Qd(i,a){return null!==i&&a&&a(new pl(i)),(0,Ee.of)(!0)}(r.route,t),function P(i,a,e){const t=a[a.length-1],d=a.slice(0,a.length-1).reverse().map(u=>function Rf(i){const a=i.routeConfig?i.routeConfig.canActivateChild:null;return a&&0!==a.length?{node:i,guards:a}:null}(u)).filter(u=>null!==u).map(u=>Rn(()=>{const c=u.guards.map(o=>{const s=yl(o,u.node,e);return xi(function Fg(i){return i&&Ml(i.canActivateChild)}(s)?s.canActivateChild(t,i):s(t,i)).pipe((0,Ur.P)())});return(0,Ee.of)(c).pipe(Da())}));return(0,Ee.of)(d).pipe(Da())}(i,r.path,e),function S(i,a,e){const t=a.routeConfig?a.routeConfig.canActivate:null;if(!t||0===t.length)return(0,Ee.of)(!0);const r=t.map(d=>Rn(()=>{const u=yl(d,a,e);return xi(function Pf(i){return i&&Ml(i.canActivate)}(u)?u.canActivate(a,i):u(a,i)).pipe((0,Ur.P)())}));return(0,Ee.of)(r).pipe(Da())}(i,r.route,e))),(0,Ur.P)(r=>!0!==r,!0))}(t,d,i,a):(0,Ee.of)(c)),(0,Mt.U)(c=>({...e,guardsResult:c})))})}(this.ngModule.injector,c=>this.triggerEvent(c)),(0,Wt.b)(c=>{if(r.guardsResult=c.guardsResult,Ma(c.guardsResult))throw an(0,c.guardsResult);const o=new Pg(c.id,this.serializeUrl(c.extractedUrl),this.serializeUrl(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.triggerEvent(o)}),(0,bt.h)(c=>!!c.guardsResult||(this.restoreHistory(c),this.cancelNavigationTransition(c,"",3),!1)),Zg(c=>{if(c.guards.canActivateChecks.length)return(0,Ee.of)(c).pipe((0,Wt.b)(o=>{const s=new kg(o.id,this.serializeUrl(o.extractedUrl),this.serializeUrl(o.urlAfterRedirects),o.targetSnapshot);this.triggerEvent(s)}),(0,An.w)(o=>{let s=!1;return(0,Ee.of)(o).pipe(function XT(i,a){return(0,pr.z)(e=>{const{targetSnapshot:t,guards:{canActivateChecks:r}}=e;if(!r.length)return(0,Ee.of)(e);let d=0;return(0,Se.D)(r).pipe((0,Fr.b)(u=>function KT(i,a,e,t){const r=i.routeConfig,d=i._resolve;return void 0!==r?.title&&!Ay(r)&&(d[$g]=r.title),function Nf(i,a,e,t){const r=function Vf(i){return[...Object.keys(i),...Object.getOwnPropertySymbols(i)]}(i);if(0===r.length)return(0,Ee.of)({});const d={};return(0,Se.D)(r).pipe((0,pr.z)(u=>function jf(i,a,e,t){const r=yl(i,a,t);return xi(r.resolve?r.resolve(a,e):r(a,e))}(i[u],a,e,t).pipe((0,Ur.P)(),(0,Wt.b)(c=>{d[u]=c}))),Dr(1),(0,nl.h)(d),(0,Fn.K)(u=>Zd(u)?Xi.E:(0,Ui._)(u)))}(d,i,a,t).pipe((0,Mt.U)(u=>(i._resolvedData=u,i.data=xc(i,e).resolve,r&&Ay(r)&&(i.data[$g]=r.title),null)))}(u.route,t,i,a)),(0,Wt.b)(()=>d++),Dr(1),(0,pr.z)(u=>d===r.length?(0,Ee.of)(e):Xi.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,Wt.b)({next:()=>s=!0,complete:()=>{s||(this.restoreHistory(o),this.cancelNavigationTransition(o,"",2))}}))}),(0,Wt.b)(o=>{const s=new Og(o.id,this.serializeUrl(o.extractedUrl),this.serializeUrl(o.urlAfterRedirects),o.targetSnapshot);this.triggerEvent(s)}))}),Zg(c=>{const o=s=>{var l;const h=[];null!==(l=s.routeConfig)&&void 0!==l&&l.loadComponent&&!s.routeConfig._loadedComponent&&h.push(this.configLoader.loadComponent(s.routeConfig).pipe((0,Wt.b)(p=>{s.component=p}),(0,Mt.U)(()=>{})));for(const p of s.children)h.push(...o(p));return h};return(0,nr.a)(o(c.targetSnapshot.root)).pipe((0,hc.d)(),(0,ht.q)(1))}),Zg(()=>this.afterPreactivation()),(0,Mt.U)(c=>{const o=function vo(i,a,e){const t=Ue(i,a._root,e?e._root:void 0);return new aa(t,a)}(this.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return r={...c,targetRouterState:o}}),(0,Wt.b)(c=>{this.currentUrlTree=c.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(c.urlAfterRedirects,c.rawUrl),this.routerState=c.targetRouterState,"deferred"===this.urlUpdateStrategy&&(c.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,c),this.browserUrlTree=c.urlAfterRedirects)}),((i,a,e)=>(0,Mt.U)(t=>(new $d(a,t.targetRouterState,t.currentRouterState,e).activate(i),t)))(this.rootContexts,this.routeReuseStrategy,c=>this.triggerEvent(c)),(0,Wt.b)({next(){d=!0},complete(){d=!0}}),bo(()=>{var c;d||u||this.cancelNavigationTransition(r,"",1),(null===(c=this.currentNavigation)||void 0===c?void 0:c.id)===r.id&&(this.currentNavigation=null)}),(0,Fn.K)(c=>{if(u=!0,Lc(c)){Ud(c)||(this.navigated=!0,this.restoreHistory(r,!0));const s=new va(r.id,this.serializeUrl(r.extractedUrl),c.message,c.cancellationCode);if(t.next(s),Ud(c)){const l=this.urlHandlingStrategy.merge(c.url,this.rawUrlTree),h={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||xy(r.source)};this.scheduleNavigation(l,"imperative",null,h,{resolve:r.resolve,reject:r.reject,promise:r.promise})}else r.resolve(!1)}else{var o;this.restoreHistory(r,!0);const s=new Tf(r.id,this.serializeUrl(r.extractedUrl),c,null!==(o=r.targetSnapshot)&&void 0!==o?o:void 0);t.next(s);try{r.resolve(this.errorHandler(c))}catch(l){r.reject(l)}}return Xi.E}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next({...this.transitions.value,...e})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const t="popstate"===e.type?"popstate":"hashchange";"popstate"===t&&setTimeout(()=>{var r;const d={replaceUrl:!0},u=null!==(r=e.state)&&void 0!==r&&r.navigationId?e.state:null;if(u){const o={...u};delete o.navigationId,delete o.\u0275routerPageId,0!==Object.keys(o).length&&(d.state=o)}const c=this.parseUrl(e.url);this.scheduleNavigation(c,t,u,d)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){this.config=e.map(mr),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,t={}){const{relativeTo:r,queryParams:d,fragment:u,queryParamsHandling:c,preserveFragment:o}=t,s=r||this.routerState.root,l=o?this.currentUrlTree.fragment:u;let h=null;switch(c){case"merge":h={...this.currentUrlTree.queryParams,...d};break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=d||null}return null!==h&&(h=this.removeEmptyProps(h)),Vd(s,this.currentUrlTree,e,h,l??null)}navigateByUrl(e,t={skipLocationChange:!1}){const r=Ma(e)?e:this.parseUrl(e),d=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(d,"imperative",null,t)}navigate(e,t={skipLocationChange:!1}){return function ex(i){for(let a=0;a{const d=e[r];return null!=d&&(t[r]=d),t},{})}processNavigations(){this.navigations.subscribe(e=>{var t;this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new Rr(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,null===(t=this.titleStrategy)||void 0===t||t.updateTitle(this.routerState.snapshot),e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,t,r,d,u){if(this.disposed)return Promise.resolve(!1);let c,o,s;u?(c=u.resolve,o=u.reject,s=u.promise):s=new Promise((g,f)=>{c=g,o=f});const l=++this.navigationId;let h;if("computed"===this.canceledNavigationResolution)if(0===this.currentPageId&&(r=this.location.getState()),r&&r.\u0275routerPageId)h=r.\u0275routerPageId;else if(d.replaceUrl||d.skipLocationChange){var p;h=null!==(p=this.browserPageId)&&void 0!==p?p:0}else{var m;h=(null!==(m=this.browserPageId)&&void 0!==m?m:0)+1}else h=0;return this.setTransition({id:l,targetPageId:h,source:t,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:d,resolve:c,reject:o,promise:s,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),s.catch(g=>Promise.reject(g))}setBrowserUrl(e,t){const r=this.urlSerializer.serialize(e),d={...t.extras.state,...this.generateNgRouterState(t.id,t.targetPageId)};this.location.isCurrentPathEqualTo(r)||t.extras.replaceUrl?this.location.replaceState(r,"",d):this.location.go(r,"",d)}restoreHistory(e,t=!1){if("computed"===this.canceledNavigationResolution){var r,d;const u=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(r=this.currentNavigation)||void 0===r?void 0:r.finalUrl)||0===u?this.currentUrlTree===(null===(d=this.currentNavigation)||void 0===d?void 0:d.finalUrl)&&0===u&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(u)}else"replace"===this.canceledNavigationResolution&&(t&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,t,r){const d=new va(e.id,this.serializeUrl(e.extractedUrl),t,r);this.triggerEvent(d),e.resolve(!1)}generateNgRouterState(e,t){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:t}:{navigationId:e}}}return i.\u0275fac=function(e){n.$Z()},i.\u0275prov=n.Yz7({token:i,factory:function(){return e1()},providedIn:"root"}),i})();function xy(i){return"imperative"!==i}let oa=(()=>{class i{constructor(e,t,r,d,u){this.router=e,this.route=t,this.tabIndexAttribute=r,this.renderer=d,this.el=u,this.commands=null,this.onChanges=new Le.x,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(e){if(null!=this.tabIndexAttribute)return;const t=this.renderer,r=this.el.nativeElement;null!==e?t.setAttribute(r,"tabindex",e):t.removeAttribute(r,"tabindex")}ngOnChanges(e){this.onChanges.next(this)}set routerLink(e){null!=e?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const e={skipLocationChange:(0,n.D6c)(this.skipLocationChange),replaceUrl:(0,n.D6c)(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,e),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:(0,n.D6c)(this.preserveFragment)})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Dn),n.Y36(mi),n.$8M("tabindex"),n.Y36(n.Qsj),n.Y36(n.SBq))},i.\u0275dir=n.lG2({type:i,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(e,t){1&e&&n.NdJ("click",function(){return t.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[n.TTD]}),i})(),vl=(()=>{class i{constructor(e,t,r){this.router=e,this.route=t,this.locationStrategy=r,this.commands=null,this.href=null,this.onChanges=new Le.x,this.subscription=e.events.subscribe(d=>{d instanceof Rr&&this.updateTargetUrlAndHref()})}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:null}ngOnChanges(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(e,t,r,d,u){if(0!==e||t||r||d||u||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const c={skipLocationChange:(0,n.D6c)(this.skipLocationChange),replaceUrl:(0,n.D6c)(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,c),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:(0,n.D6c)(this.preserveFragment)})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Dn),n.Y36(mi),n.Y36(T.S$))},i.\u0275dir=n.lG2({type:i,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,t){1&e&&n.NdJ("click",function(d){return t.onClick(d.button,d.ctrlKey,d.shiftKey,d.altKey,d.metaKey)}),2&e&&n.uIk("target",t.target)("href",t.href,n.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[n.TTD]}),i})();class Yf{}let Sy=(()=>{class i{preload(e,t){return t().pipe((0,Fn.K)(()=>(0,Ee.of)(null)))}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Wf=(()=>{class i{constructor(e,t,r,d,u){this.router=e,this.injector=r,this.preloadingStrategy=d,this.loader=u}setUpPreloading(){this.subscription=this.router.events.pipe((0,bt.h)(e=>e instanceof Rr),(0,Fr.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,t){const r=[];for(const o of t){var d,u;o.providers&&!o._injector&&(o._injector=(0,n.MMx)(o.providers,e,`Route: ${o.path}`));const s=null!==(d=o._injector)&&void 0!==d?d:e,l=null!==(u=o._loadedInjector)&&void 0!==u?u:s;if(o.loadChildren&&!o._loadedRoutes&&void 0===o.canLoad||o.loadComponent&&!o._loadedComponent)r.push(this.preloadConfig(s,o));else if(o.children||o._loadedRoutes){var c;r.push(this.processRoutes(l,null!==(c=o.children)&&void 0!==c?c:o._loadedRoutes))}}return(0,Se.D)(r).pipe((0,ra.J)())}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>{let r;r=t.loadChildren&&void 0===t.canLoad?this.loader.loadChildren(e,t):(0,Ee.of)(null);const d=r.pipe((0,pr.z)(u=>{var c;return null===u?(0,Ee.of)(void 0):(t._loadedRoutes=u.routes,t._loadedInjector=u.injector,this.processRoutes(null!==(c=u.injector)&&void 0!==c?c:e,u.routes))}));if(t.loadComponent&&!t._loadedComponent){const u=this.loader.loadComponent(t);return(0,Se.D)([d,u]).pipe((0,ra.J)())}return d})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Dn),n.LFG(n.Sil),n.LFG(n.lqb),n.LFG(Yf),n.LFG(Uf))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();const Hh=new n.OlP("");let tx=(()=>{class i{constructor(e,t,r={}){this.router=e,this.viewportScroller=t,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.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(e=>{e instanceof Mc?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Rr&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof zd&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,t){this.router.triggerEvent(new zd(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return i.\u0275fac=function(e){n.$Z()},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();const Gf=new n.OlP("ROUTER_FORROOT_GUARD"),$f=new n.OlP(""),Tl=[T.Ye,{provide:Ts,useClass:Ao},{provide:Dn,useFactory:e1},$a,{provide:mi,useFactory:function Dy(i){return i.routerState.root},deps:[Dn]},Uf];function Zf(){return new n.PXZ("Router",Dn)}let xl=(()=>{class i{constructor(e){}static forRoot(e,t){return{ngModule:i,providers:[Tl,[],Qf(e),{provide:Gf,useFactory:Sl,deps:[[Dn,new n.FiY,new n.tp0]]},{provide:Ic,useValue:t||{}},null!=t&&t.useHash?{provide:T.S$,useClass:T.Do}:{provide:T.S$,useClass:T.b0},{provide:Hh,useFactory:()=>{const i=(0,n.f3M)(Dn),a=(0,n.f3M)(T.EM),e=(0,n.f3M)(Ic);return e.scrollOffset&&a.setOffset(e.scrollOffset),new tx(i,a,e)}},null!=t&&t.preloadingStrategy?e0(t.preloadingStrategy):[],{provide:n.PXZ,multi:!0,useFactory:Zf},null!=t&&t.initialNavigation?Hy(t):[],[{provide:a1,useFactory:Xf},{provide:n.tb,multi:!0,useExisting:a1}]]}}static forChild(e){return{ngModule:i,providers:[Qf(e)]}}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Gf,8))},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})();function Sl(i){return"guarded"}function Qf(i){return[{provide:tu,multi:!0,useValue:i}]}function Xf(){const i=(0,n.f3M)(n.zs3);return a=>{var e,t;const r=i.get(n.z2F);if(a!==r.components[0])return;const d=i.get(Dn),u=i.get(El);1===i.get(Kf)&&d.initialNavigation(),null===(e=i.get($f,null,n.XFs.Optional))||void 0===e||e.setUpPreloading(),null===(t=i.get(Hh,null,n.XFs.Optional))||void 0===t||t.init(),d.resetRootComponentType(r.componentTypes[0]),u.next(),u.complete()}}const a1=new n.OlP("");function Hy(i){return["disabled"===i.initialNavigation?[{provide:n.ip1,multi:!0,useFactory:()=>{const i=(0,n.f3M)(Dn);return()=>{i.setUpLocationChangeListener()}}},{provide:Kf,useValue:2}]:[],"enabledBlocking"===i.initialNavigation?[{provide:Kf,useValue:0},{provide:n.ip1,multi:!0,deps:[n.zs3],useFactory:i=>{const a=i.get(T.V_,Promise.resolve(null));let e=!1;return()=>a.then(()=>new Promise(r=>{const d=i.get(Dn),u=i.get(El);(function t(r){i.get(Dn).events.pipe((0,bt.h)(u=>u instanceof Rr||u instanceof va||u instanceof Tf),(0,Mt.U)(u=>u instanceof Rr||u instanceof va&&(0===u.code||1===u.code)&&null),(0,bt.h)(u=>null!==u),(0,ht.q)(1)).subscribe(()=>{r()})})(()=>{r(!0),e=!0}),d.afterPreactivation=()=>(r(!0),e||u.closed?(0,Ee.of)(void 0):u),d.initialNavigation()}))}}]:[]]}const El=new n.OlP("",{factory:()=>new Le.x}),Kf=new n.OlP("",{providedIn:"root",factory:()=>1});function e0(i){return[Wf,{provide:$f,useExisting:Wf},{provide:Yf,useExisting:i}]}let Ph;try{Ph=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Ph=!1}let nu,Qn=(()=>{class i{constructor(e){this._platformId=e,this.isBrowser=this._platformId?(0,T.NF)(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&&!Ph)&&typeof CSS<"u"&&!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 i.\u0275fac=function(e){return new(e||i)(n.LFG(n.Lbi))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const o1=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Bc(){if(nu)return nu;if("object"!=typeof document||!document)return nu=new Set(o1),nu;let i=document.createElement("input");return nu=new Set(o1.filter(a=>(i.setAttribute("type",a),i.type===a))),nu}let iu,kh,Vc,n0;function kr(i){return function Nc(){if(null==iu&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>iu=!0}))}finally{iu=iu||!1}return iu}()?i:!!i.capture}function t0(){if(null==Vc){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Vc=!1,Vc;if("scrollBehavior"in document.documentElement.style)Vc=!0;else{const i=Element.prototype.scrollTo;Vc=!!i&&!/\{\s*\[native code\]\s*\}/.test(i.toString())}}return Vc}function ru(){if("object"!=typeof document||!document)return 0;if(null==kh){const i=document.createElement("div"),a=i.style;i.dir="rtl",a.width="1px",a.overflow="auto",a.visibility="hidden",a.pointerEvents="none",a.position="absolute";const e=document.createElement("div"),t=e.style;t.width="2px",t.height="1px",i.appendChild(e),document.body.appendChild(i),kh=0,0===i.scrollLeft&&(i.scrollLeft=1,kh=0===i.scrollLeft?1:2),i.remove()}return kh}function au(i){if(function Iy(){if(null==n0){const i=typeof document<"u"?document.head:null;n0=!(!i||!i.createShadowRoot&&!i.attachShadow)}return n0}()){const a=i.getRootNode?i.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&a instanceof ShadowRoot)return a}return null}function r0(){let i=typeof document<"u"&&document?document.activeElement:null;for(;i&&i.shadowRoot;){const a=i.shadowRoot.activeElement;if(a===i)break;i=a}return i}function Or(i){return i.composedPath?i.composedPath()[0]:i.target}function a0(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function Di(i,...a){return a.length?a.some(e=>i[e]):i.altKey||i.shiftKey||i.ctrlKey||i.metaKey}var du=E(8372);function dw(i){return(0,bt.h)((a,e)=>i<=e)}function Uc(i,a=ah.y){return i=i??uw,(0,hr.e)((e,t)=>{let r,d=!0;e.subscribe((0,at.x)(t,u=>{const c=a(u);(d||!i(r,c))&&(d=!1,r=c,t.next(u))}))})}function uw(i,a){return i===a}var S1=E(5032);function rt(i){return(0,hr.e)((a,e)=>{(0,oi.Xf)(i).subscribe((0,at.x)(e,()=>e.complete(),S1.Z)),!e.closed&&a.subscribe(e)})}function Ge(i){return null!=i&&"false"!=`${i}`}function Qt(i,a=0){return E1(i)?Number(i):a}function E1(i){return!isNaN(parseFloat(i))&&!isNaN(Number(i))}function qc(i){return Array.isArray(i)?i:[i]}function Li(i){return null==i?"":"string"==typeof i?i:`${i}px`}function ci(i){return i instanceof n.SBq?i.nativeElement:i}let D1=(()=>{class i{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),L1=(()=>{class i{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,t)=>this._cleanupObserver(t))}observe(e){const t=ci(e);return new yn.y(r=>{const u=this._observeElement(t).subscribe(r);return()=>{u.unsubscribe(),this._unobserveElement(t)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const t=new Le.x,r=this._mutationObserverFactory.create(d=>t.next(d));r&&r.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:r,stream:t,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:t,stream:r}=this._observedElements.get(e);t&&t.disconnect(),r.complete(),this._observedElements.delete(e)}}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(D1))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),c0=(()=>{class i{constructor(e,t,r){this._contentObserver=e,this._elementRef=t,this._ngZone=r,this.event=new n.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=Ge(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=Qt(e),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe((0,du.b)(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){var e;null===(e=this._currentSubscription)||void 0===e||e.unsubscribe()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(L1),n.Y36(n.SBq),n.Y36(n.R0b))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),i})(),uu=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[D1]}),i})();const Vt=new Set;let Ll,H1=(()=>{class i{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):pw}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function R1(i){if(!Vt.has(i))try{Ll||(Ll=document.createElement("style"),Ll.setAttribute("type","text/css"),document.head.appendChild(Ll)),Ll.sheet&&(Ll.sheet.insertRule(`@media ${i} {body{ }}`,0),Vt.add(i))}catch(a){console.error(a)}}(e),this._matchMedia(e)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Qn))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();function pw(i){return{matches:"all"===i||""===i,media:i,addListener:()=>{},removeListener:()=>{}}}let P1=(()=>{class i{constructor(e,t){this._mediaMatcher=e,this._zone=t,this._queries=new Map,this._destroySubject=new Le.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return d0(qc(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){const r=d0(qc(e)).map(u=>this._registerQuery(u).observable);let d=(0,nr.a)(r);return d=(0,tr.z)(d.pipe((0,ht.q)(1)),d.pipe(dw(1),(0,du.b)(0))),d.pipe((0,Mt.U)(u=>{const c={matches:!1,breakpoints:{}};return u.forEach(({matches:o,query:s})=>{c.matches=c.matches||o,c.breakpoints[s]=o}),c}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const t=this._mediaMatcher.matchMedia(e),d={observable:new yn.y(u=>{const c=o=>this._zone.run(()=>u.next(o));return t.addListener(c),()=>{t.removeListener(c)}}).pipe(vn(t),(0,Mt.U)(({matches:u})=>({query:e,matches:u})),rt(this._destroySubject)),mql:t};return this._queries.set(e,d),d}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(H1),n.LFG(n.R0b))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();function d0(i){return i.map(a=>a.split(",")).reduce((a,e)=>a.concat(e)).map(a=>a.trim())}function h0(i,a){return(i.getAttribute(a)||"").match(/\S+/g)||[]}const p0="cdk-describedby-message",Qa="cdk-describedby-host";let f0=0,hu=(()=>{class i{constructor(e,t){this._platform=t,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+f0++,this._document=e,this._id=(0,n.f3M)(n.AFp)+"-"+f0++}describe(e,t,r){if(!this._canBeDescribed(e,t))return;const d=pu(t,r);"string"!=typeof t?(k1(t,this._id),this._messageRegistry.set(d,{messageElement:t,referenceCount:0})):this._messageRegistry.has(d)||this._createMessageElement(t,r),this._isElementDescribedByMessage(e,d)||this._addMessageReference(e,d)}removeDescription(e,t,r){var d;if(!t||!this._isElementNode(e))return;const u=pu(t,r);if(this._isElementDescribedByMessage(e,u)&&this._removeMessageReference(e,u),"string"==typeof t){const c=this._messageRegistry.get(u);c&&0===c.referenceCount&&this._deleteMessageElement(u)}0===(null===(d=this._messagesContainer)||void 0===d?void 0:d.childNodes.length)&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){var e;const t=this._document.querySelectorAll(`[${Qa}="${this._id}"]`);for(let r=0;r0!=r.indexOf(p0));e.setAttribute("aria-describedby",t.join(" "))}_addMessageReference(e,t){const r=this._messageRegistry.get(t);(function mw(i,a,e){const t=h0(i,a);t.some(r=>r.trim()==e.trim())||(t.push(e.trim()),i.setAttribute(a,t.join(" ")))})(e,"aria-describedby",r.messageElement.id),e.setAttribute(Qa,this._id),r.referenceCount++}_removeMessageReference(e,t){const r=this._messageRegistry.get(t);r.referenceCount--,function gw(i,a,e){const r=h0(i,a).filter(d=>d!=e.trim());r.length?i.setAttribute(a,r.join(" ")):i.removeAttribute(a)}(e,"aria-describedby",r.messageElement.id),e.removeAttribute(Qa)}_isElementDescribedByMessage(e,t){const r=h0(e,"aria-describedby"),d=this._messageRegistry.get(t),u=d&&d.messageElement.id;return!!u&&-1!=r.indexOf(u)}_canBeDescribed(e,t){if(!this._isElementNode(e))return!1;if(t&&"object"==typeof t)return!0;const r=null==t?"":`${t}`.trim(),d=e.getAttribute("aria-label");return!(!r||d&&d.trim()===r)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(T.K0),n.LFG(Qn))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();function pu(i,a){return"string"==typeof i?`${a||""}/${i}`:i}function k1(i,a){i.id||(i.id=`${p0}-${a}-${f0++}`)}class bw{constructor(a){this._items=a,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new Le.x,this._typeaheadSubscription=Nt.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new Le.x,this.change=new Le.x,a instanceof n.n_E&&a.changes.subscribe(e=>{if(this._activeItem){const r=e.toArray().indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}})}skipPredicate(a){return this._skipPredicateFn=a,this}withWrap(a=!0){return this._wrap=a,this}withVerticalOrientation(a=!0){return this._vertical=a,this}withHorizontalOrientation(a){return this._horizontal=a,this}withAllowedModifierKeys(a){return this._allowedModifierKeys=a,this}withTypeAhead(a=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,Wt.b)(e=>this._pressedLetters.push(e)),(0,du.b)(a),(0,bt.h)(()=>this._pressedLetters.length>0),(0,Mt.U)(()=>this._pressedLetters.join(""))).subscribe(e=>{const t=this._getItemsArray();for(let r=1;r!a[d]||this._allowedModifierKeys.indexOf(d)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&r){this.setNextItemActive();break}return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&r){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&r){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}return;default:return void((r||Di(a,"shiftKey"))&&(a.key&&1===a.key.length?this._letterKeyStream.next(a.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],a.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(a){const e=this._getItemsArray(),t="number"==typeof a?a:e.indexOf(a);this._activeItem=e[t]??null,this._activeItemIndex=t}_setActiveItemByDelta(a){this._wrap?this._setActiveInWrapMode(a):this._setActiveInDefaultMode(a)}_setActiveInWrapMode(a){const e=this._getItemsArray();for(let t=1;t<=e.length;t++){const r=(this._activeItemIndex+a*t+e.length)%e.length;if(!this._skipPredicateFn(e[r]))return void this.setActiveItem(r)}}_setActiveInDefaultMode(a){this._setActiveItemByIndex(this._activeItemIndex+a,a)}_setActiveItemByIndex(a,e){const t=this._getItemsArray();if(t[a]){for(;this._skipPredicateFn(t[a]);)if(!t[a+=e])return;this.setActiveItem(a)}}_getItemsArray(){return this._items instanceof n.n_E?this._items.toArray():this._items}}class Aw extends bw{setActiveItem(a){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(a),this.activeItem&&this.activeItem.setActiveStyles()}}class m0 extends bw{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(a){return this._origin=a,this}setActiveItem(a){super.setActiveItem(a),this.activeItem&&this.activeItem.focus(this._origin)}}let Yc=(()=>{class i{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function yw(i){return!!(i.offsetWidth||i.offsetHeight||"function"==typeof i.getClientRects&&i.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const t=function Gx(i){try{return i.frameElement}catch{return null}}(function Tw(i){return i.ownerDocument&&i.ownerDocument.defaultView||window}(e));if(t&&(-1===I1(t)||!this.isVisible(t)))return!1;let r=e.nodeName.toLowerCase(),d=I1(e);return e.hasAttribute("contenteditable")?-1!==d:!("iframe"===r||"object"===r||this._platform.WEBKIT&&this._platform.IOS&&!function Cw(i){let a=i.nodeName.toLowerCase(),e="input"===a&&i.type;return"text"===e||"password"===e||"select"===a||"textarea"===a}(e))&&("audio"===r?!!e.hasAttribute("controls")&&-1!==d:"video"===r?-1!==d&&(null!==d||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,t){return function vw(i){return!function ww(i){return function Vh(i){return"input"==i.nodeName.toLowerCase()}(i)&&"hidden"==i.type}(i)&&(function Wc(i){let a=i.nodeName.toLowerCase();return"input"===a||"select"===a||"button"===a||"textarea"===a}(i)||function O1(i){return function Mw(i){return"a"==i.nodeName.toLowerCase()}(i)&&i.hasAttribute("href")}(i)||i.hasAttribute("contenteditable")||g0(i))}(e)&&!this.isDisabled(e)&&(t?.ignoreVisibility||this.isVisible(e))}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Qn))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();function g0(i){if(!i.hasAttribute("tabindex")||void 0===i.tabIndex)return!1;let a=i.getAttribute("tabindex");return!(!a||isNaN(parseInt(a,10)))}function I1(i){if(!g0(i))return null;const a=parseInt(i.getAttribute("tabindex")||"",10);return isNaN(a)?-1:a}class xw{constructor(a,e,t,r,d=!1){this._element=a,this._checker=e,this._ngZone=t,this._document=r,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,d||this.attachAnchors()}get enabled(){return this._enabled}set enabled(a){this._enabled=a,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(a,this._startAnchor),this._toggleAnchorTabIndex(a,this._endAnchor))}destroy(){const a=this._startAnchor,e=this._endAnchor;a&&(a.removeEventListener("focus",this.startAnchorListener),a.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),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(a){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(a)))})}focusFirstTabbableElementWhenReady(a){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(a)))})}focusLastTabbableElementWhenReady(a){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(a)))})}_getRegionBoundary(a){const e=this._element.querySelectorAll(`[cdk-focus-region-${a}], [cdkFocusRegion${a}], [cdk-focus-${a}]`);return"start"==a?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(a){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const t=this._getFirstTabbableElement(e);return t?.focus(a),!!t}return e.focus(a),!0}return this.focusFirstTabbableElement(a)}focusFirstTabbableElement(a){const e=this._getRegionBoundary("start");return e&&e.focus(a),!!e}focusLastTabbableElement(a){const e=this._getRegionBoundary("end");return e&&e.focus(a),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(a){if(this._checker.isFocusable(a)&&this._checker.isTabbable(a))return a;const e=a.children;for(let t=0;t=0;t--){const r=e[t].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[t]):null;if(r)return r}return null}_createAnchor(){const a=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,a),a.classList.add("cdk-visually-hidden"),a.classList.add("cdk-focus-trap-anchor"),a.setAttribute("aria-hidden","true"),a}_toggleAnchorTabIndex(a,e){a?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(a){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(a,this._startAnchor),this._toggleAnchorTabIndex(a,this._endAnchor))}_executeOnStable(a){this._ngZone.isStable?a():this._ngZone.onStable.pipe((0,ht.q)(1)).subscribe(a)}}let fu=(()=>{class i{constructor(e,t,r){this._checker=e,this._ngZone=t,this._document=r}create(e,t=!1){return new xw(e,this._checker,this._ngZone,this._document,t)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Yc),n.LFG(n.R0b),n.LFG(T.K0))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();function jh(i){return 0===i.buttons||0===i.offsetX&&0===i.offsetY}function _0(i){const a=i.touches&&i.touches[0]||i.changedTouches&&i.changedTouches[0];return!(!a||-1!==a.identifier||null!=a.radiusX&&1!==a.radiusX||null!=a.radiusY&&1!==a.radiusY)}const Gc=new n.OlP("cdk-input-modality-detector-options"),V1={ignoreKeys:[18,17,224,91,16]},Bs=kr({passive:!0,capture:!0});let Pa=(()=>{class i{constructor(e,t,r,d){this._platform=e,this._mostRecentTarget=null,this._modality=new pt(null),this._lastTouchMs=0,this._onKeydown=u=>{var c,o;null!==(c=this._options)&&void 0!==c&&null!==(o=c.ignoreKeys)&&void 0!==o&&o.some(s=>s===u.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Or(u))},this._onMousedown=u=>{Date.now()-this._lastTouchMs<650||(this._modality.next(jh(u)?"keyboard":"mouse"),this._mostRecentTarget=Or(u))},this._onTouchstart=u=>{_0(u)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Or(u))},this._options={...V1,...d},this.modalityDetected=this._modality.pipe(dw(1)),this.modalityChanged=this.modalityDetected.pipe(Uc()),e.isBrowser&&t.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,Bs),r.addEventListener("mousedown",this._onMousedown,Bs),r.addEventListener("touchstart",this._onTouchstart,Bs)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Bs),document.removeEventListener("mousedown",this._onMousedown,Bs),document.removeEventListener("touchstart",this._onTouchstart,Bs))}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Qn),n.LFG(n.R0b),n.LFG(T.K0),n.LFG(Gc,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const j1=new n.OlP("liveAnnouncerElement",{providedIn:"root",factory:function Dw(){return null}}),A0=new n.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let Ns=(()=>{class i{constructor(e,t,r,d){this._ngZone=t,this._defaultOptions=d,this._document=r,this._liveElement=e||this._createLiveElement()}announce(e,...t){const r=this._defaultOptions;let d,u;return 1===t.length&&"number"==typeof t[0]?u=t[0]:[d,u]=t,this.clear(),clearTimeout(this._previousTimeout),d||(d=r&&r.politeness?r.politeness:"polite"),null==u&&r&&(u=r.duration),this._liveElement.setAttribute("aria-live",d),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(c=>this._currentResolve=c)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,"number"==typeof u&&(this._previousTimeout=setTimeout(()=>this.clear(),u)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){var e,t;clearTimeout(this._previousTimeout),null===(e=this._liveElement)||void 0===e||e.remove(),this._liveElement=null,null===(t=this._currentResolve)||void 0===t||t.call(this),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const e="cdk-live-announcer-element",t=this._document.getElementsByClassName(e),r=this._document.createElement("div");for(let d=0;d{class i{constructor(e,t,r,d,u){this._ngZone=e,this._platform=t,this._inputModalityDetector=r,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new Le.x,this._rootNodeFocusAndBlurListener=c=>{for(let s=Or(c);s;s=s.parentElement)"focus"===c.type?this._onFocus(c,s):this._onBlur(c,s)},this._document=d,this._detectionMode=u?.detectionMode||0}monitor(e,t=!1){const r=ci(e);if(!this._platform.isBrowser||1!==r.nodeType)return(0,Ee.of)(null);const d=au(r)||this._getDocument(),u=this._elementInfo.get(r);if(u)return t&&(u.checkChildren=!0),u.subject;const c={checkChildren:t,subject:new Le.x,rootNode:d};return this._elementInfo.set(r,c),this._registerGlobalListeners(c),c.subject}stopMonitoring(e){const t=ci(e),r=this._elementInfo.get(t);r&&(r.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(r))}focusVia(e,t,r){const d=ci(e);d===this._getDocument().activeElement?this._getClosestElementsInfo(d).forEach(([c,o])=>this._originChanged(c,t,o)):(this._setOrigin(t),"function"==typeof d.focus&&d.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,t)=>this.stopMonitoring(t))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!(null==e||!e.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(e,t){e.classList.toggle("cdk-focused",!!t),e.classList.toggle("cdk-touch-focused","touch"===t),e.classList.toggle("cdk-keyboard-focused","keyboard"===t),e.classList.toggle("cdk-mouse-focused","mouse"===t),e.classList.toggle("cdk-program-focused","program"===t)}_setOrigin(e,t=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&t,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,t){const r=this._elementInfo.get(t),d=Or(e);!r||!r.checkChildren&&t!==d||this._originChanged(t,this._getFocusOrigin(d),r)}_onBlur(e,t){const r=this._elementInfo.get(t);!r||r.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(r,null))}_emitOrigin(e,t){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(t))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const t=e.rootNode,r=this._rootNodeFocusListenerCount.get(t)||0;r||this._ngZone.runOutsideAngular(()=>{t.addEventListener("focus",this._rootNodeFocusAndBlurListener,$c),t.addEventListener("blur",this._rootNodeFocusAndBlurListener,$c)}),this._rootNodeFocusListenerCount.set(t,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(rt(this._stopInputModalityDetector)).subscribe(d=>{this._setOrigin(d,!0)}))}_removeGlobalListeners(e){const t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){const r=this._rootNodeFocusListenerCount.get(t);r>1?this._rootNodeFocusListenerCount.set(t,r-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,$c),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,$c),this._rootNodeFocusListenerCount.delete(t))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,t,r){this._setClasses(e,t),this._emitOrigin(r,t),this._lastFocusOrigin=t}_getClosestElementsInfo(e){const t=[];return this._elementInfo.forEach((r,d)=>{(d===e||r.checkChildren&&d.contains(e))&&t.push([d,r])}),t}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:t,mostRecentModality:r}=this._inputModalityDetector;if("mouse"!==r||!t||t===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const d=e.labels;if(d)for(let u=0;u{class i{constructor(e,t){this._platform=e,this._document=t,this._breakpointSubscription=(0,n.f3M)(P1).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const t=this._document.defaultView||window,r=t&&t.getComputedStyle?t.getComputedStyle(e):null,d=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),d){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(Zc,Hw,mu),this._hasCheckedHighContrastMode=!0;const t=this.getHighContrastMode();1===t?e.add(Zc,Hw):2===t&&e.add(Zc,mu)}}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Qn),n.LFG(T.K0))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Hl=(()=>{class i{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Fh))},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[uu]}),i})();const y0=new n.OlP("cdk-dir-doc",{providedIn:"root",factory:function Zx(){return(0,n.f3M)(T.K0)}}),Rw=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Hi=(()=>{class i{constructor(e){if(this.value="ltr",this.change=new n.vpe,e){const r=e.documentElement?e.documentElement.dir:null;this.value=function Pw(i){var a;const e=i?.toLowerCase()||"";return"auto"===e&&typeof navigator<"u"&&null!==(a=navigator)&&void 0!==a&&a.language?Rw.test(navigator.language)?"rtl":"ltr":"rtl"===e?"rtl":"ltr"}((e.body?e.body.dir:null)||r||"ltr")}}ngOnDestroy(){this.change.complete()}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(y0,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Ho=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})();function U1(i,a){if(1&i&&n._UZ(0,"mat-pseudo-checkbox",4),2&i){const e=n.oxw();n.Q6J("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}function q1(i,a){if(1&i&&(n.TgZ(0,"span",5),n._uU(1),n.qZA()),2&i){const e=n.oxw();n.xp6(1),n.hij("(",e.group.label,")")}}const Ow=["*"];let Xx=(()=>{class i{}return i.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",i.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",i.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",i.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",i})(),Kx=(()=>{class i{}return i.COMPLEX="375ms",i.ENTERING="225ms",i.EXITING="195ms",i})();const tS=new n.OlP("mat-sanity-checks",{providedIn:"root",factory:function eS(){return!0}});let wt=(()=>{class i{constructor(e,t,r){this._sanityChecks=t,this._document=r,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!a0()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Fh),n.LFG(tS,8),n.LFG(T.K0))},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Ho,Ho]}),i})();function Xa(i){return class extends i{constructor(...a){super(...a),this._disabled=!1}get disabled(){return this._disabled}set disabled(a){this._disabled=Ge(a)}}}function Rl(i,a){return class extends i{constructor(...e){super(...e),this.defaultColor=a,this.color=a}get color(){return this._color}set color(e){const t=e||this.defaultColor;t!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),t&&this._elementRef.nativeElement.classList.add(`mat-${t}`),this._color=t)}}}function Ni(i){return class extends i{constructor(...a){super(...a),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(a){this._disableRipple=Ge(a)}}}function Vs(i,a=0){return class extends i{constructor(...e){super(...e),this._tabIndex=a,this.defaultTabIndex=a}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(e){this._tabIndex=null!=e?Qt(e):this.defaultTabIndex}}}function w0(i){return class extends i{constructor(...a){super(...a),this.errorState=!1}updateErrorState(){const a=this.errorState,d=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);d!==a&&(this.errorState=d,this.stateChanges.next())}}}function M0(i){return class extends i{constructor(...a){super(...a),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new yn.y(e=>{this._isInitialized?this._notifySubscriber(e):this._pendingSubscribers.push(e)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(a){a.next(),a.complete()}}}const C0=new n.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function Y1(){return(0,n.f3M)(n.soG)}});class Zr{constructor(){this._localeChanges=new Le.x,this.localeChanges=this._localeChanges}getValidDateOrNull(a){return this.isDateInstance(a)&&this.isValid(a)?a:null}deserialize(a){return null==a||this.isDateInstance(a)&&this.isValid(a)?a:this.invalid()}setLocale(a){this.locale=a,this._localeChanges.next()}compareDate(a,e){return this.getYear(a)-this.getYear(e)||this.getMonth(a)-this.getMonth(e)||this.getDate(a)-this.getDate(e)}sameDate(a,e){if(a&&e){let t=this.isValid(a),r=this.isValid(e);return t&&r?!this.compareDate(a,e):t==r}return a==e}clampDate(a,e,t){return e&&this.compareDate(a,e)<0?e:t&&this.compareDate(a,t)>0?t:a}}const Uh=new n.OlP("mat-date-formats"),Ro=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function qh(i,a){const e=Array(i);for(let t=0;t{class i extends Zr{constructor(e,t){super(),this.useUtcForDisplay=!1,super.setLocale(e)}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){const t=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return qh(12,r=>this._format(t,new Date(2017,r,1)))}getDateNames(){const e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return qh(31,t=>this._format(e,new Date(2017,0,t+1)))}getDayOfWeekNames(e){const t=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return qh(7,r=>this._format(t,new Date(2017,0,r+1)))}getYearName(e){const t=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(t,e)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,t,r){let d=this._createDateWithOverflow(e,t,r);return d.getMonth(),d}today(){return new Date}parse(e,t){return"number"==typeof e?new Date(e):e?new Date(Date.parse(e)):null}format(e,t){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");const r=new Intl.DateTimeFormat(this.locale,{...t,timeZone:"utc"});return this._format(r,e)}addCalendarYears(e,t){return this.addCalendarMonths(e,12*t)}addCalendarMonths(e,t){let r=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+t,this.getDate(e));return this.getMonth(r)!=((this.getMonth(e)+t)%12+12)%12&&(r=this._createDateWithOverflow(this.getYear(r),this.getMonth(r),0)),r}addCalendarDays(e,t){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+t)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if("string"==typeof e){if(!e)return null;if(Ro.test(e)){let t=new Date(e);if(this.isValid(t))return t}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(e,t,r){const d=new Date;return d.setFullYear(e,t,r),d.setHours(0,0,0,0),d}_2digit(e){return("00"+e).slice(-2)}_format(e,t){const r=new Date;return r.setUTCFullYear(t.getFullYear(),t.getMonth(),t.getDate()),r.setUTCHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e.format(r)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(C0,8),n.LFG(Qn))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();const v0={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 Iw=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[{provide:Zr,useClass:W1}]}),i})(),T0=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[{provide:Uh,useValue:v0}],imports:[Iw]}),i})(),Jc=(()=>{class i{isErrorState(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),gu=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),i})();function kl(i,a,e){i.nativeElement.classList.toggle(a,e)}let js=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[wt,wt]}),i})();class Yh{constructor(a,e,t,r=!1){this._renderer=a,this.element=e,this.config=t,this._animationForciblyDisabledThroughCss=r,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Qc={enterDuration:225,exitDuration:150},Wh=kr({passive:!0}),x0=["mousedown","touchstart"],Gh=["mouseup","mouseleave","touchend","touchcancel"];class $h{constructor(a,e,t,r){this._target=a,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=ci(t))}fadeInRipple(a,e,t={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),d={...Qc,...t.animation};t.centered&&(a=r.left+r.width/2,e=r.top+r.height/2);const u=t.radius||function G1(i,a,e){const t=Math.max(Math.abs(i-e.left),Math.abs(i-e.right)),r=Math.max(Math.abs(a-e.top),Math.abs(a-e.bottom));return Math.sqrt(t*t+r*r)}(a,e,r),c=a-r.left,o=e-r.top,s=d.enterDuration,l=document.createElement("div");l.classList.add("mat-ripple-element"),l.style.left=c-u+"px",l.style.top=o-u+"px",l.style.height=2*u+"px",l.style.width=2*u+"px",null!=t.color&&(l.style.backgroundColor=t.color),l.style.transitionDuration=`${s}ms`,this._containerElement.appendChild(l);const h=window.getComputedStyle(l),m=h.transitionDuration,g="none"===h.transitionProperty||"0s"===m||"0s, 0s"===m,f=new Yh(this,l,t,g);l.style.transform="scale3d(1, 1, 1)",f.state=0,t.persistent||(this._mostRecentTransientRipple=f);let w=null;return!g&&(s||d.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const N=()=>this._finishRippleTransition(f),se=()=>this._destroyRipple(f);l.addEventListener("transitionend",N),l.addEventListener("transitioncancel",se),w={onTransitionEnd:N,onTransitionCancel:se}}),this._activeRipples.set(f,w),(g||!s)&&this._finishRippleTransition(f),f}fadeOutRipple(a){if(2===a.state||3===a.state)return;const e=a.element,t={...Qc,...a.config.animation};e.style.transitionDuration=`${t.exitDuration}ms`,e.style.opacity="0",a.state=2,(a._animationForciblyDisabledThroughCss||!t.exitDuration)&&this._finishRippleTransition(a)}fadeOutAll(){this._getActiveRipples().forEach(a=>a.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(a=>{a.config.persistent||a.fadeOut()})}setupTriggerEvents(a){const e=ci(a);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(x0))}handleEvent(a){"mousedown"===a.type?this._onMousedown(a):"touchstart"===a.type?this._onTouchStart(a):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Gh),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(a){0===a.state?this._startFadeOutTransition(a):2===a.state&&this._destroyRipple(a)}_startFadeOutTransition(a){const e=a===this._mostRecentTransientRipple,{persistent:t}=a.config;a.state=1,!t&&(!e||!this._isPointerDown)&&a.fadeOut()}_destroyRipple(a){var e;const t=null!==(e=this._activeRipples.get(a))&&void 0!==e?e:null;this._activeRipples.delete(a),this._activeRipples.size||(this._containerRect=null),a===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),a.state=3,null!==t&&(a.element.removeEventListener("transitionend",t.onTransitionEnd),a.element.removeEventListener("transitioncancel",t.onTransitionCancel)),a.element.remove()}_onMousedown(a){const e=jh(a),t=this._lastTouchStartEvent&&Date.now(){!a.config.persistent&&(1===a.state||a.config.terminateOnPointerUp&&0===a.state)&&a.fadeOut()}))}_registerEvents(a){this._ngZone.runOutsideAngular(()=>{a.forEach(e=>{this._triggerElement.addEventListener(e,this,Wh)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(x0.forEach(a=>{this._triggerElement.removeEventListener(a,this,Wh)}),this._pointerUpEventsRegistered&&Gh.forEach(a=>{this._triggerElement.removeEventListener(a,this,Wh)}))}}const Zh=new n.OlP("mat-ripple-global-options");let Jr=(()=>{class i{constructor(e,t,r,d,u){this._elementRef=e,this._animationMode=u,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=d||{},this._rippleRenderer=new $h(this,t,e,r)}get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...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(e,t=0,r){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,{...this.rippleConfig,...r}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...e})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(n.R0b),n.Y36(Qn),n.Y36(Zh,8),n.Y36(n.QbO,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&n.ekj("mat-ripple-unbounded",t.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),i})(),ca=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[wt,wt]}),i})(),$1=(()=>{class i{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.QbO,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,t){2&e&&n.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===t.state)("mat-pseudo-checkbox-checked","checked"===t.state)("mat-pseudo-checkbox-disabled",t.disabled)("_mat-animation-noopable","NoopAnimations"===t._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(e,t){},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:rgba(0,0,0,0)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::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}'],encapsulation:2,changeDetection:0}),i})(),Jh=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[wt]}),i})();const S0=new n.OlP("MAT_OPTION_PARENT_COMPONENT"),_r=new n.OlP("MatOptgroup");let Fw=0;class zw{constructor(a,e=!1){this.source=a,this.isUserInput=e}}let Uw=(()=>{class i{constructor(e,t,r,d){this._element=e,this._changeDetectorRef=t,this._parent=r,this.group=d,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+Fw++,this.onSelectionChange=new n.vpe,this._stateChanges=new Le.x}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(e){this._disabled=Ge(e)}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(e,t){const r=this._getHostElement();"function"==typeof r.focus&&r.focus(t)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!Di(e)&&(this._selectViaInteraction(),e.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 e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue=e,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new zw(this,e))}}return i.\u0275fac=function(e){n.$Z()},i.\u0275dir=n.lG2({type:i,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),i})(),Fs=(()=>{class i extends Uw{constructor(e,t,r,d){super(e,t,r,d)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(S0,8),n.Y36(_r,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,t){1&e&&n.NdJ("click",function(){return t._selectViaInteraction()})("keydown",function(d){return t._handleKeydown(d)}),2&e&&(n.Ikx("id",t.id),n.uIk("tabindex",t._getTabIndex())("aria-selected",t._getAriaSelected())("aria-disabled",t.disabled.toString()),n.ekj("mat-selected",t.selected)("mat-option-multiple",t.multiple)("mat-active",t.active)("mat-option-disabled",t.disabled))},exportAs:["matOption"],features:[n.qOj],ngContentSelectors:Ow,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(e,t){1&e&&(n.F$t(),n.YNc(0,U1,1,2,"mat-pseudo-checkbox",0),n.TgZ(1,"span",1),n.Hsn(2),n.qZA(),n.YNc(3,q1,2,1,"span",2),n._UZ(4,"div",3)),2&e&&(n.Q6J("ngIf",t.multiple),n.xp6(3),n.Q6J("ngIf",t.group&&t.group._inert),n.xp6(1),n.Q6J("matRippleTrigger",t._getHostElement())("matRippleDisabled",t.disabled||t.disableRipple))},dependencies:[Jr,T.O5,$1],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:rgba(0,0,0,0)}.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;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}.mat-option.mat-active::before{content:""}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{right:auto;left:16px}.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}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}'],encapsulation:2,changeDetection:0}),i})();function Qh(i,a,e){if(e.length){let t=a.toArray(),r=e.toArray(),d=0;for(let u=0;ue+t?Math.max(0,i-t+a):e}let _u=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[ca,T.ez,wt,Jh]}),i})();const qw=["mat-button",""],J1=["*"],Yw=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],Ww=Rl(Xa(Ni(class{constructor(i){this._elementRef=i}})));let Ht=(()=>{class i extends Ww{constructor(e,t,r){super(e),this._focusMonitor=t,this._animationMode=r,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const d of Yw)this._hasHostAttributes(d)&&this._getHostElement().classList.add(d);e.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(e,t){e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...e){return e.some(t=>this._getHostElement().hasAttribute(t))}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36($r),n.Y36(n.QbO,8))},i.\u0275cmp=n.Xpm({type:i,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(e,t){if(1&e&&n.Gf(Jr,5),2&e){let r;n.iGM(r=n.CRH())&&(t.ripple=r.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,t){2&e&&(n.uIk("disabled",t.disabled||null),n.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-button-disabled",t.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[n.qOj],attrs:qw,ngContentSelectors:J1,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(e,t){1&e&&(n.F$t(),n.TgZ(0,"span",0),n.Hsn(1),n.qZA(),n._UZ(2,"span",1)(3,"span",2)),2&e&&(n.xp6(2),n.ekj("mat-button-ripple-round",t.isRoundButton||t.isIconButton),n.Q6J("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",t.isIconButton)("matRippleTrigger",t._getHostElement()))},dependencies:[Jr],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.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;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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-fab._mat-animation-noopable{transition:none !important;animation:none !important}.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;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.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:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.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}"],encapsulation:2,changeDetection:0}),i})(),Ka=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[ca,wt,wt]}),i})();var es=E(1144);const E0=["addListener","removeListener"],$w=["addEventListener","removeEventListener"],Zw=["on","off"];function zs(i,a,e,t){if((0,wn.m)(e)&&(t=e,e=void 0),t)return zs(i,a,e).pipe((0,$i.Z)(t));const[r,d]=function Xw(i){return(0,wn.m)(i.addEventListener)&&(0,wn.m)(i.removeEventListener)}(i)?$w.map(u=>c=>i[u](a,c,e)):function Jw(i){return(0,wn.m)(i.addListener)&&(0,wn.m)(i.removeListener)}(i)?E0.map(D0(i,a)):function Qw(i){return(0,wn.m)(i.on)&&(0,wn.m)(i.off)}(i)?Zw.map(D0(i,a)):[];if(!r&&(0,es.z)(i))return(0,pr.z)(u=>zs(u,a,e))((0,oi.Xf)(i));if(!r)throw new TypeError("Invalid event target");return new yn.y(u=>{const c=(...o)=>u.next(1d(c)})}function D0(i,a){return e=>t=>i[e](a,t)}var Xh=E(4408);const bu={schedule(i){let a=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:t}=bu;t&&(a=t.requestAnimationFrame,e=t.cancelAnimationFrame);const r=a(d=>{e=void 0,i(d)});return new Nt.w0(()=>e?.(r))},requestAnimationFrame(...i){const{delegate:a}=bu;return(a?.requestAnimationFrame||requestAnimationFrame)(...i)},cancelAnimationFrame(...i){const{delegate:a}=bu;return(a?.cancelAnimationFrame||cancelAnimationFrame)(...i)},delegate:void 0};var Au=E(7565);const X1=new class L0 extends Au.v{flush(a){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:t}=this;let r;a=a||t.shift();do{if(r=a.execute(a.state,a.delay))break}while((a=t[0])&&a.id===e&&t.shift());if(this._active=!1,r){for(;(a=t[0])&&a.id===e&&t.shift();)a.unsubscribe();throw r}}}(class Kw extends Xh.o{constructor(a,e){super(a,e),this.scheduler=a,this.work=e}requestAsyncId(a,e,t=0){return null!==t&&t>0?super.requestAsyncId(a,e,t):(a.actions.push(this),a._scheduled||(a._scheduled=bu.requestAnimationFrame(()=>a.flush(void 0))))}recycleAsyncId(a,e,t=0){if(null!=t&&t>0||null==t&&this.delay>0)return super.recycleAsyncId(a,e,t);a.actions.some(r=>r.id===e)||(bu.cancelAnimationFrame(e),a._scheduled=void 0)}});let Kh,H0=1;const R0={};function tM(i){return i in R0&&(delete R0[i],!0)}const P0={setImmediate(i){const a=H0++;return R0[a]=!0,Kh||(Kh=Promise.resolve()),Kh.then(()=>tM(a)&&i()),a},clearImmediate(i){tM(i)}},{setImmediate:nM,clearImmediate:K1}=P0,yu={setImmediate(...i){const{delegate:a}=yu;return(a?.setImmediate||nM)(...i)},clearImmediate(i){const{delegate:a}=yu;return(a?.clearImmediate||K1)(i)},delegate:void 0},wu=new class t_ extends Au.v{flush(a){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:t}=this;let r;a=a||t.shift();do{if(r=a.execute(a.state,a.delay))break}while((a=t[0])&&a.id===e&&t.shift());if(this._active=!1,r){for(;(a=t[0])&&a.id===e&&t.shift();)a.unsubscribe();throw r}}}(class e_ extends Xh.o{constructor(a,e){super(a,e),this.scheduler=a,this.work=e}requestAsyncId(a,e,t=0){return null!==t&&t>0?super.requestAsyncId(a,e,t):(a.actions.push(this),a._scheduled||(a._scheduled=yu.setImmediate(a.flush.bind(a,void 0))))}recycleAsyncId(a,e,t=0){if(null!=t&&t>0||null==t&&this.delay>0)return super.recycleAsyncId(a,e,t);a.actions.some(r=>r.id===e)||(yu.clearImmediate(e),a._scheduled=void 0)}});var Mu=E(4986),Ol=E(2805);function tp(i,a=Mu.z){return function ep(i){return(0,hr.e)((a,e)=>{let t=!1,r=null,d=null,u=!1;const c=()=>{if(d?.unsubscribe(),d=null,t){t=!1;const s=r;r=null,e.next(s)}u&&e.complete()},o=()=>{d=null,u&&e.complete()};a.subscribe((0,at.x)(e,s=>{t=!0,r=s,d||(0,oi.Xf)(i(s)).subscribe(d=(0,at.x)(e,c,o))},()=>{u=!0,(!t||!d||d.closed)&&e.complete()}))})}(()=>(0,Ol.H)(i,a))}class O0{}function Cu(i){return i&&"function"==typeof i.connect}class iM extends O0{constructor(a){super(),this._data=a}connect(){return $t(this._data)?this._data:(0,Ee.of)(this._data)}disconnect(){}}class Xc{applyChanges(a,e,t,r,d){a.forEachOperation((u,c,o)=>{let s,l;if(null==u.previousIndex){const p=t(u,c,o);s=e.createEmbeddedView(p.templateRef,p.context,p.index),l=1}else null==o?(e.remove(c),l=3):(s=e.get(c),e.move(s,o),l=2);var h;d&&d({context:null===(h=s)||void 0===h?void 0:h.context,operation:l,record:u})})}detach(){}}class I0{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(a,e,t,r,d){a.forEachOperation((u,c,o)=>{let s,l;var h;null==u.previousIndex?(s=this._insertView(()=>t(u,c,o),o,e,r(u)),l=s?1:0):null==o?(this._detachAndCacheView(c,e),l=3):(s=this._moveView(c,o,e,r(u)),l=2),d&&d({context:null===(h=s)||void 0===h?void 0:h.context,operation:l,record:u})})}detach(){for(const a of this._viewCache)a.destroy();this._viewCache=[]}_insertView(a,e,t,r){const d=this._insertViewFromCache(e,t);if(d)return void(d.context.$implicit=r);const u=a();return t.createEmbeddedView(u.templateRef,u.context,u.index)}_detachAndCacheView(a,e){const t=e.detach(a);this._maybeCacheView(t,e)}_moveView(a,e,t,r){const d=t.get(a);return t.move(d,e),d.context.$implicit=r,d}_maybeCacheView(a,e){if(this._viewCache.lengththis._markSelected(d)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...a){this._verifyValueAssignment(a),a.forEach(t=>this._markSelected(t));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...a){this._verifyValueAssignment(a),a.forEach(t=>this._unmarkSelected(t));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...a){this._verifyValueAssignment(a);const e=this.selected,t=new Set(a);a.forEach(d=>this._markSelected(d)),e.filter(d=>!t.has(d)).forEach(d=>this._unmarkSelected(d));const r=this._hasQueuedChanges();return this._emitChangeEvent(),r}toggle(a){return this.isSelected(a)?this.deselect(a):this.select(a)}clear(a=!0){this._unmarkAll();const e=this._hasQueuedChanges();return a&&this._emitChangeEvent(),e}isSelected(a){if(this.compareWith){for(const e of this._selection)if(this.compareWith(e,a))return!0;return!1}return this._selection.has(a)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(a){this._multiple&&this.selected&&this._selected.sort(a)}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(a){this.isSelected(a)||(this._multiple||this._unmarkAll(),this.isSelected(a)||this._selection.add(a),this._emitChanges&&this._selectedToEmit.push(a))}_unmarkSelected(a){this.isSelected(a)&&(this._selection.delete(a),this._emitChanges&&this._deselectedToEmit.push(a))}_unmarkAll(){this.isEmpty()||this._selection.forEach(a=>this._unmarkSelected(a))}_verifyValueAssignment(a){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}}let n_=(()=>{class i{constructor(){this._listeners=[]}notify(e,t){for(let r of this._listeners)r(e,t)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(t=>e!==t)}}ngOnDestroy(){this._listeners=[]}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const Il=new n.OlP("_ViewRepeater"),rM=["contentWrapper"],aM=["*"],i_=new n.OlP("VIRTUAL_SCROLL_STRATEGY");class sS{constructor(a,e,t){this._scrolledIndexChange=new Le.x,this.scrolledIndexChange=this._scrolledIndexChange.pipe(Uc()),this._viewport=null,this._itemSize=a,this._minBufferPx=e,this._maxBufferPx=t}attach(a){this._viewport=a,this._updateTotalContentSize(),this._updateRenderedRange()}detach(){this._scrolledIndexChange.complete(),this._viewport=null}updateItemAndBufferSize(a,e,t){this._itemSize=a,this._minBufferPx=e,this._maxBufferPx=t,this._updateTotalContentSize(),this._updateRenderedRange()}onContentScrolled(){this._updateRenderedRange()}onDataLengthChanged(){this._updateTotalContentSize(),this._updateRenderedRange()}onContentRendered(){}onRenderedOffsetChanged(){}scrollToIndex(a,e){this._viewport&&this._viewport.scrollToOffset(a*this._itemSize,e)}_updateTotalContentSize(){!this._viewport||this._viewport.setTotalContentSize(this._viewport.getDataLength()*this._itemSize)}_updateRenderedRange(){if(!this._viewport)return;const a=this._viewport.getRenderedRange(),e={start:a.start,end:a.end},t=this._viewport.getViewportSize(),r=this._viewport.getDataLength();let d=this._viewport.measureScrollOffset(),u=this._itemSize>0?d/this._itemSize:0;if(e.end>r){const o=Math.ceil(t/this._itemSize),s=Math.max(0,Math.min(u,r-o));u!=s&&(u=s,d=s*this._itemSize,e.start=Math.floor(u)),e.end=Math.max(0,Math.min(r,e.start+o))}const c=d-e.start*this._itemSize;if(c0&&(e.end=Math.min(r,e.end+s),e.start=Math.max(0,Math.floor(u-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(e),this._viewport.setRenderedContentOffset(this._itemSize*e.start),this._scrolledIndexChange.next(Math.floor(u))}}function r_(i){return i._scrollStrategy}let B0=(()=>{class i{constructor(){this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new sS(this.itemSize,this.minBufferPx,this.maxBufferPx)}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=Qt(e)}get minBufferPx(){return this._minBufferPx}set minBufferPx(e){this._minBufferPx=Qt(e)}get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(e){this._maxBufferPx=Qt(e)}ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[n._Bn([{provide:i_,useFactory:r_,deps:[(0,n.Gpc)(()=>i)]}]),n.TTD]}),i})(),ts=(()=>{class i{constructor(e,t,r){this._ngZone=e,this._platform=t,this._scrolled=new Le.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new yn.y(t=>{this._globalSubscription||this._addGlobalListener();const r=e>0?this._scrolled.pipe(tp(e)).subscribe(t):this._scrolled.subscribe(t);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,Ee.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,t)=>this.deregister(t)),this._scrolled.complete()}ancestorScrolled(e,t){const r=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe((0,bt.h)(d=>!d||r.indexOf(d)>-1))}getAncestorScrollContainers(e){const t=[];return this.scrollContainers.forEach((r,d)=>{this._scrollableContainsElement(d,e)&&t.push(d)}),t}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,t){let r=ci(t),d=e.getElementRef().nativeElement;do{if(r==d)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>zs(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(n.R0b),n.LFG(Qn),n.LFG(T.K0,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Bl=(()=>{class i{constructor(e,t,r,d){this.elementRef=e,this.scrollDispatcher=t,this.ngZone=r,this.dir=d,this._destroyed=new Le.x,this._elementScrolled=new yn.y(u=>this.ngZone.runOutsideAngular(()=>zs(this.elementRef.nativeElement,"scroll").pipe(rt(this._destroyed)).subscribe(u)))}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(e){const t=this.elementRef.nativeElement,r=this.dir&&"rtl"==this.dir.value;null==e.left&&(e.left=r?e.end:e.start),null==e.right&&(e.right=r?e.start:e.end),null!=e.bottom&&(e.top=t.scrollHeight-t.clientHeight-e.bottom),r&&0!=ru()?(null!=e.left&&(e.right=t.scrollWidth-t.clientWidth-e.left),2==ru()?e.left=e.right:1==ru()&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.left=t.scrollWidth-t.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){const t=this.elementRef.nativeElement;t0()?t.scrollTo(e):(null!=e.top&&(t.scrollTop=e.top),null!=e.left&&(t.scrollLeft=e.left))}measureScrollOffset(e){const t="left",r="right",d=this.elementRef.nativeElement;if("top"==e)return d.scrollTop;if("bottom"==e)return d.scrollHeight-d.clientHeight-d.scrollTop;const u=this.dir&&"rtl"==this.dir.value;return"start"==e?e=u?r:t:"end"==e&&(e=u?t:r),u&&2==ru()?e==t?d.scrollWidth-d.clientWidth-d.scrollLeft:d.scrollLeft:u&&1==ru()?e==t?d.scrollLeft+d.scrollWidth-d.clientWidth:-d.scrollLeft:e==t?d.scrollLeft:d.scrollWidth-d.clientWidth-d.scrollLeft}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(ts),n.Y36(n.R0b),n.Y36(Hi,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),i})(),Us=(()=>{class i{constructor(e,t,r){this._platform=e,this._change=new Le.x,this._changeListener=d=>{this._change.next(d)},this._document=r,t.runOutsideAngular(()=>{if(e.isBrowser){const d=this._getWindow();d.addEventListener("resize",this._changeListener),d.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:t,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+t,height:r,width:t}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,t=this._getWindow(),r=e.documentElement,d=r.getBoundingClientRect();return{top:-d.top||e.body.scrollTop||t.scrollY||r.scrollTop||0,left:-d.left||e.body.scrollLeft||t.scrollX||r.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(tp(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Qn),n.LFG(n.R0b),n.LFG(T.K0,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const lM=new n.OlP("VIRTUAL_SCROLLABLE");let a_=(()=>{class i extends Bl{constructor(e,t,r,d){super(e,t,r,d)}measureViewportSize(e){const t=this.elementRef.nativeElement;return"horizontal"===e?t.clientWidth:t.clientHeight}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(ts),n.Y36(n.R0b),n.Y36(Hi,8))},i.\u0275dir=n.lG2({type:i,features:[n.qOj]}),i})();const np=typeof requestAnimationFrame<"u"?X1:wu;let ko=(()=>{class i extends a_{constructor(e,t,r,d,u,c,o,s){super(e,c,r,u),this.elementRef=e,this._changeDetectorRef=t,this._scrollStrategy=d,this.scrollable=s,this._detachedSubject=new Le.x,this._renderedRangeSubject=new Le.x,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new yn.y(l=>this._scrollStrategy.scrolledIndexChange.subscribe(h=>Promise.resolve().then(()=>this.ngZone.run(()=>l.next(h))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=Nt.w0.EMPTY,this._viewportChanges=o.change().subscribe(()=>{this.checkViewportSize()}),this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this)}get orientation(){return this._orientation}set orientation(e){this._orientation!==e&&(this._orientation=e,this._calculateSpacerSize())}get appendOnly(){return this._appendOnly}set appendOnly(e){this._appendOnly=Ge(e)}ngOnInit(){this.scrollable===this&&super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.scrollable.elementScrolled().pipe(vn(null),tp(0,np)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()}))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(e){this.ngZone.runOutsideAngular(()=>{this._forOf=e,this._forOf.dataStream.pipe(rt(this._detachedSubject)).subscribe(t=>{const r=t.length;r!==this._dataLength&&(this._dataLength=r,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}measureBoundingClientRectWithScrollOffset(e){return this.getElementRef().nativeElement.getBoundingClientRect()[e]}setTotalContentSize(e){this._totalContentSize!==e&&(this._totalContentSize=e,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(e){(function cM(i,a){return i.start==a.start&&i.end==a.end})(this._renderedRange,e)||(this.appendOnly&&(e={start:0,end:Math.max(this._renderedRange.end,e.end)}),this._renderedRangeSubject.next(this._renderedRange=e),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(e,t="to-start"){e=this.appendOnly&&"to-start"===t?0:e;const d="horizontal"==this.orientation,u=d?"X":"Y";let o=`translate${u}(${Number((d&&this.dir&&"rtl"==this.dir.value?-1:1)*e)}px)`;this._renderedContentOffset=e,"to-end"===t&&(o+=` translate${u}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=o&&(this._renderedContentTransform=o,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(e,t="auto"){const r={behavior:t};"horizontal"===this.orientation?r.start=e:r.top=e,this.scrollable.scrollTo(r)}scrollToIndex(e,t="auto"){this._scrollStrategy.scrollToIndex(e,t)}measureScrollOffset(e){let t;return t=this.scrollable==this?r=>super.measureScrollOffset(r):r=>this.scrollable.measureScrollOffset(r),Math.max(0,t(e??("horizontal"===this.orientation?"start":"top"))-this.measureViewportOffset())}measureViewportOffset(e){var t;let r;const d="left",u="right",c="rtl"==(null===(t=this.dir)||void 0===t?void 0:t.value);r="start"==e?c?u:d:"end"==e?c?d:u:e||("horizontal"===this.orientation?"left":"top");const o=this.scrollable.measureBoundingClientRectWithScrollOffset(r);return this.elementRef.nativeElement.getBoundingClientRect()[r]-o}measureRenderedContentSize(){const e=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?e.offsetWidth:e.offsetHeight}measureRangeSize(e){return this._forOf?this._forOf.measureRangeSize(e,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}_markChangeDetectionNeeded(e){e&&this._runAfterChangeDetection.push(e),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(()=>this._changeDetectorRef.markForCheck());const e=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const t of e)t()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(n.R0b),n.Y36(i_,8),n.Y36(Hi,8),n.Y36(ts),n.Y36(Us),n.Y36(lM,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(e,t){if(1&e&&n.Gf(rM,7),2&e){let r;n.iGM(r=n.CRH())&&(t._contentWrapper=r.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(e,t){2&e&&n.ekj("cdk-virtual-scroll-orientation-horizontal","horizontal"===t.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==t.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[n._Bn([{provide:Bl,useFactory:(a,e)=>a||e,deps:[a_,i]}]),n.qOj],ngContentSelectors:aM,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(e,t){1&e&&(n.F$t(),n.TgZ(0,"div",0,1),n.Hsn(2),n.qZA(),n._UZ(3,"div",2)),2&e&&(n.xp6(3),n.Udp("width",t._totalContentWidth)("height",t._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}"],encapsulation:2,changeDetection:0}),i})();function dM(i,a,e){if(!e.getBoundingClientRect)return 0;const r=e.getBoundingClientRect();return"horizontal"===i?"start"===a?r.left:r.right:"start"===a?r.top:r.bottom}let vu=(()=>{class i{constructor(e,t,r,d,u,c){this._viewContainerRef=e,this._template=t,this._differs=r,this._viewRepeater=d,this._viewport=u,this.viewChange=new Le.x,this._dataSourceChanges=new Le.x,this.dataStream=this._dataSourceChanges.pipe(vn(null),function k0(){return(0,hr.e)((i,a)=>{let e,t=!1;i.subscribe((0,at.x)(a,r=>{const d=e;e=r,t&&a.next([d,r]),t=!0}))})}(),(0,An.w)(([o,s])=>this._changeDataSource(o,s)),bn(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new Le.x,this.dataStream.subscribe(o=>{this._data=o,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe(rt(this._destroyed)).subscribe(o=>{this._renderedRange=o,this.viewChange.observers.length&&c.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(e){this._cdkVirtualForOf=e,Cu(e)?this._dataSourceChanges.next(e):this._dataSourceChanges.next(new iM($t(e)?e:Array.from(e||[])))}get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(e){this._needsUpdate=!0,this._cdkVirtualForTrackBy=e?(t,r)=>e(t+(this._renderedRange?this._renderedRange.start:0),r):void 0}set cdkVirtualForTemplate(e){e&&(this._needsUpdate=!0,this._template=e)}get cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set cdkVirtualForTemplateCacheSize(e){this._viewRepeater.viewCacheSize=Qt(e)}measureRangeSize(e,t){if(e.start>=e.end)return 0;const r=e.start-this._renderedRange.start,d=e.end-e.start;let u,c;for(let o=0;o-1;o--){const s=this._viewContainerRef.get(o+r);if(s&&s.rootNodes.length){c=s.rootNodes[s.rootNodes.length-1];break}}return u&&c?dM(t,"end",c)-dM(t,"start",u):0}ngDoCheck(){if(this._differ&&this._needsUpdate){const e=this._differ.diff(this._renderedItems);e?this._applyChanges(e):this._updateContext(),this._needsUpdate=!1}}ngOnDestroy(){this._viewport.detach(),this._dataSourceChanges.next(void 0),this._dataSourceChanges.complete(),this.viewChange.complete(),this._destroyed.next(),this._destroyed.complete(),this._viewRepeater.detach()}_onRenderedDataChange(){!this._renderedRange||(this._renderedItems=this._data.slice(this._renderedRange.start,this._renderedRange.end),this._differ||(this._differ=this._differs.find(this._renderedItems).create((e,t)=>this.cdkVirtualForTrackBy?this.cdkVirtualForTrackBy(e,t):t)),this._needsUpdate=!0)}_changeDataSource(e,t){return e&&e.disconnect(this),this._needsUpdate=!0,t?t.connect(this):(0,Ee.of)()}_updateContext(){const e=this._data.length;let t=this._viewContainerRef.length;for(;t--;){const r=this._viewContainerRef.get(t);r.context.index=this._renderedRange.start+t,r.context.count=e,this._updateComputedContextProperties(r.context),r.detectChanges()}}_applyChanges(e){this._viewRepeater.applyChanges(e,this._viewContainerRef,(d,u,c)=>this._getEmbeddedViewArgs(d,c),d=>d.item),e.forEachIdentityChange(d=>{this._viewContainerRef.get(d.currentIndex).context.$implicit=d.item});const t=this._data.length;let r=this._viewContainerRef.length;for(;r--;){const d=this._viewContainerRef.get(r);d.context.index=this._renderedRange.start+r,d.context.count=t,this._updateComputedContextProperties(d.context)}}_updateComputedContextProperties(e){e.first=0===e.index,e.last=e.index===e.count-1,e.even=e.index%2==0,e.odd=!e.even}_getEmbeddedViewArgs(e,t){return{templateRef:this._template,context:{$implicit:e.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:t}}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.s_b),n.Y36(n.Rgc),n.Y36(n.ZZ4),n.Y36(Il),n.Y36(ko,4),n.Y36(n.R0b))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},features:[n._Bn([{provide:Il,useClass:I0}])]}),i})(),da=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})(),Kc=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Ho,da,Ho,da]}),i})();class Tu{attach(a){return this._attachedHost=a,a.attach(this)}detach(){let a=this._attachedHost;null!=a&&(this._attachedHost=null,a.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(a){this._attachedHost=a}}class Ys extends Tu{constructor(a,e,t,r){super(),this.component=a,this.viewContainerRef=e,this.injector=t,this.componentFactoryResolver=r}}class Oa extends Tu{constructor(a,e,t,r){super(),this.templateRef=a,this.viewContainerRef=e,this.context=t,this.injector=r}get origin(){return this.templateRef.elementRef}attach(a,e=this.context){return this.context=e,super.attach(a)}detach(){return this.context=void 0,super.detach()}}class td extends Tu{constructor(a){super(),this.element=a instanceof n.SBq?a.nativeElement:a}}class Oo{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(a){return a instanceof Ys?(this._attachedPortal=a,this.attachComponentPortal(a)):a instanceof Oa?(this._attachedPortal=a,this.attachTemplatePortal(a)):this.attachDomPortal&&a instanceof td?(this._attachedPortal=a,this.attachDomPortal(a)):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(a){this._disposeFn=a}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class nd extends Oo{constructor(a,e,t,r,d){super(),this.outletElement=a,this._componentFactoryResolver=e,this._appRef=t,this._defaultInjector=r,this.attachDomPortal=u=>{const c=u.element,o=this._document.createComment("dom-portal");c.parentNode.insertBefore(o,c),this.outletElement.appendChild(c),this._attachedPortal=u,super.setDisposeFn(()=>{o.parentNode&&o.parentNode.replaceChild(c,o)})},this._document=d}attachComponentPortal(a){const t=(a.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(a.component);let r;return a.viewContainerRef?(r=a.viewContainerRef.createComponent(t,a.viewContainerRef.length,a.injector||a.viewContainerRef.injector),this.setDisposeFn(()=>r.destroy())):(r=t.create(a.injector||this._defaultInjector||n.zs3.NULL),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=a,r}attachTemplatePortal(a){let e=a.viewContainerRef,t=e.createEmbeddedView(a.templateRef,a.context,{injector:a.injector});return t.rootNodes.forEach(r=>this.outletElement.appendChild(r)),t.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(t);-1!==r&&e.remove(r)}),this._attachedPortal=a,t}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(a){return a.hostView.rootNodes[0]}}let id=(()=>{class i extends Oo{constructor(e,t,r){super(),this._componentFactoryResolver=e,this._viewContainerRef=t,this._isInitialized=!1,this.attached=new n.vpe,this.attachDomPortal=d=>{const u=d.element,c=this._document.createComment("dom-portal");d.setAttachedHost(this),u.parentNode.insertBefore(c,u),this._getRootNode().appendChild(u),this._attachedPortal=d,super.setDisposeFn(()=>{c.parentNode&&c.parentNode.replaceChild(u,c)})},this._document=r}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(e){e.setAttachedHost(this);const t=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,d=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),u=t.createComponent(d,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(u.hostView.rootNodes[0]),super.setDisposeFn(()=>u.destroy()),this._attachedPortal=e,this._attachedRef=u,this.attached.emit(u),u}attachTemplatePortal(e){e.setAttachedHost(this);const t=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=t,this.attached.emit(t),t}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n._Vd),n.Y36(n.s_b),n.Y36(T.K0))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[n.qOj]}),i})(),Ws=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})();var kn=E(6451);const V0=t0();class s_{constructor(a,e){this._viewportRuler=a,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const a=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=a.style.left||"",this._previousHTMLStyles.top=a.style.top||"",a.style.left=Li(-this._previousScrollPosition.left),a.style.top=Li(-this._previousScrollPosition.top),a.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const a=this._document.documentElement,t=a.style,r=this._document.body.style,d=t.scrollBehavior||"",u=r.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,a.classList.remove("cdk-global-scrollblock"),V0&&(t.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),V0&&(t.scrollBehavior=d,r.scrollBehavior=u)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width}}class o_{constructor(a,e,t,r){this._scrollDispatcher=a,this._ngZone=e,this._viewportRuler=t,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(a){this._overlayRef=a}enable(){if(this._scrollSubscription)return;const a=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=a.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=a.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class l_{enable(){}disable(){}attach(){}}function j0(i,a){return a.some(e=>i.bottome.bottom||i.righte.right)}function c_(i,a){return a.some(e=>i.tope.bottom||i.lefte.right)}class d_{constructor(a,e,t,r){this._scrollDispatcher=a,this._viewportRuler=e,this._ngZone=t,this._config=r,this._scrollSubscription=null}attach(a){this._overlayRef=a}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 e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:t,height:r}=this._viewportRuler.getViewportSize();j0(e,[{width:t,height:r,bottom:r,right:t,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 fM=(()=>{class i{constructor(e,t,r,d){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=r,this.noop=()=>new l_,this.close=u=>new o_(this._scrollDispatcher,this._ngZone,this._viewportRuler,u),this.block=()=>new s_(this._viewportRuler,this._document),this.reposition=u=>new d_(this._scrollDispatcher,this._viewportRuler,this._ngZone,u),this._document=d}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(ts),n.LFG(Us),n.LFG(n.R0b),n.LFG(T.K0))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();class rd{constructor(a){if(this.scrollStrategy=new l_,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,a){const e=Object.keys(a);for(const t of e)void 0!==a[t]&&(this[t]=a[t])}}}class mM{constructor(a,e){this.connectionPair=a,this.scrollableViewProperties=e}}let rp=(()=>{class i{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const t=this._attachedOverlays.indexOf(e);t>-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this.detach()}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(T.K0))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),gM=(()=>{class i extends rp{constructor(e,t){super(e),this._ngZone=t,this._keydownListener=r=>{const d=this._attachedOverlays;for(let u=d.length-1;u>-1;u--)if(d[u]._keydownEvents.observers.length>0){const c=d[u]._keydownEvents;this._ngZone?this._ngZone.run(()=>c.next(r)):c.next(r);break}}}add(e){super.add(e),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(T.K0),n.LFG(n.R0b,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),ap=(()=>{class i extends rp{constructor(e,t,r){super(e),this._platform=t,this._ngZone=r,this._cursorStyleIsSet=!1,this._pointerDownListener=d=>{this._pointerDownEventTarget=Or(d)},this._clickListener=d=>{const u=Or(d),c="click"===d.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:u;this._pointerDownEventTarget=null;const o=this._attachedOverlays.slice();for(let s=o.length-1;s>-1;s--){const l=o[s];if(l._outsidePointerEvents.observers.length<1||!l.hasAttached())continue;if(l.overlayElement.contains(u)||l.overlayElement.contains(c))break;const h=l._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>h.next(d)):h.next(d)}}}add(e){if(super.add(e),!this._isAttached){const t=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(t)):this._addEventListeners(t),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(T.K0),n.LFG(Qn),n.LFG(n.R0b,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Nl=(()=>{class i{constructor(e,t){this._platform=t,this._document=e}ngOnDestroy(){var e;null===(e=this._containerElement)||void 0===e||e.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||a0()){const r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let d=0;dthis._backdropClick.next(h),this._backdropTransitionendHandler=h=>{this._disposeBackdrop(h.target)},this._keydownEvents=new Le.x,this._outsidePointerEvents=new Le.x,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(a){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const e=this._portalOutlet.attach(a);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,ht.q)(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),"function"==typeof e?.onDestroy&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),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 a=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),a}dispose(){var a;const e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),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),null===(a=this._host)||void 0===a||a.remove(),this._previousHostParent=this._pane=this._host=null,e&&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(a){a!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=a,this.hasAttached()&&(a.attach(this),this.updatePosition()))}updateSize(a){this._config={...this._config,...a},this._updateElementSize()}setDirection(a){this._config={...this._config,direction:a},this._updateElementDirection()}addPanelClass(a){this._pane&&this._toggleClasses(this._pane,a,!0)}removePanelClass(a){this._pane&&this._toggleClasses(this._pane,a,!1)}getDirection(){const a=this._config.direction;return a?"string"==typeof a?a:a.value:"ltr"}updateScrollStrategy(a){a!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=a,this.hasAttached()&&(a.attach(this),a.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const a=this._pane.style;a.width=Li(this._config.width),a.height=Li(this._config.height),a.minWidth=Li(this._config.minWidth),a.minHeight=Li(this._config.minHeight),a.maxWidth=Li(this._config.maxWidth),a.maxHeight=Li(this._config.maxHeight)}_togglePointerEvents(a){this._pane.style.pointerEvents=a?"":"none"}_attachBackdrop(){const a="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),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),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(a)})}):this._backdropElement.classList.add(a)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const a=this._backdropElement;if(a){if(this._animationsDisabled)return void this._disposeBackdrop(a);a.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{a.addEventListener("transitionend",this._backdropTransitionendHandler)}),a.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(a)},500))}}_toggleClasses(a,e,t){const r=qc(e||[]).filter(d=>!!d);r.length&&(t?a.classList.add(...r):a.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const a=this._ngZone.onStable.pipe(rt((0,kn.T)(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._host.remove()),a.unsubscribe())})})}_disposeScrollStrategy(){const a=this._scrollStrategy;a&&(a.disable(),a.detach&&a.detach())}_disposeBackdrop(a){a&&(a.removeEventListener("click",this._backdropClickHandler),a.removeEventListener("transitionend",this._backdropTransitionendHandler),a.remove(),this._backdropElement===a&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const U0="cdk-overlay-connected-position-bounding-box",q0=/([A-Za-z%]+)$/;class p_{constructor(a,e,t,r,d){this._viewportRuler=e,this._document=t,this._platform=r,this._overlayContainer=d,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 Le.x,this._resizeSubscription=Nt.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(a)}get positions(){return this._preferredPositions}attach(a){this._validatePositions(),a.hostElement.classList.add(U0),this._overlayRef=a,this._boundingBox=a.hostElement,this._pane=a.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(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const a=this._originRect,e=this._overlayRect,t=this._viewportRect,r=this._containerRect,d=[];let u;for(let c of this._preferredPositions){let o=this._getOriginPoint(a,r,c),s=this._getOverlayPoint(o,e,c),l=this._getOverlayFit(s,e,t,c);if(l.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(c,o);this._canFitWithFlexibleDimensions(l,s,t)?d.push({position:c,origin:o,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(o,c)}):(!u||u.overlayFit.visibleAreao&&(o=l,c=s)}return this._isPushed=!1,void this._applyPosition(c.position,c.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(u.position,u.originPoint);this._applyPosition(u.position,u.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Io(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(U0),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const a=this._lastPosition;if(a){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._getOriginPoint(this._originRect,this._containerRect,a);this._applyPosition(a,e)}else this.apply()}withScrollableContainers(a){return this._scrollables=a,this}withPositions(a){return this._preferredPositions=a,-1===a.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(a){return this._viewportMargin=a,this}withFlexibleDimensions(a=!0){return this._hasFlexibleDimensions=a,this}withGrowAfterOpen(a=!0){return this._growAfterOpen=a,this}withPush(a=!0){return this._canPush=a,this}withLockedPosition(a=!0){return this._positionLocked=a,this}setOrigin(a){return this._origin=a,this}withDefaultOffsetX(a){return this._offsetX=a,this}withDefaultOffsetY(a){return this._offsetY=a,this}withTransformOriginOn(a){return this._transformOriginSelector=a,this}_getOriginPoint(a,e,t){let r,d;if("center"==t.originX)r=a.left+a.width/2;else{const u=this._isRtl()?a.right:a.left,c=this._isRtl()?a.left:a.right;r="start"==t.originX?u:c}return e.left<0&&(r-=e.left),d="center"==t.originY?a.top+a.height/2:"top"==t.originY?a.top:a.bottom,e.top<0&&(d-=e.top),{x:r,y:d}}_getOverlayPoint(a,e,t){let r,d;return r="center"==t.overlayX?-e.width/2:"start"===t.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,d="center"==t.overlayY?-e.height/2:"top"==t.overlayY?0:-e.height,{x:a.x+r,y:a.y+d}}_getOverlayFit(a,e,t,r){const d=op(e);let{x:u,y:c}=a,o=this._getOffset(r,"x"),s=this._getOffset(r,"y");o&&(u+=o),s&&(c+=s);let p=0-c,m=c+d.height-t.height,g=this._subtractOverflows(d.width,0-u,u+d.width-t.width),f=this._subtractOverflows(d.height,p,m),w=g*f;return{visibleArea:w,isCompletelyWithinViewport:d.width*d.height===w,fitsInViewportVertically:f===d.height,fitsInViewportHorizontally:g==d.width}}_canFitWithFlexibleDimensions(a,e,t){if(this._hasFlexibleDimensions){const r=t.bottom-e.y,d=t.right-e.x,u=sp(this._overlayRef.getConfig().minHeight),c=sp(this._overlayRef.getConfig().minWidth),s=a.fitsInViewportHorizontally||null!=c&&c<=d;return(a.fitsInViewportVertically||null!=u&&u<=r)&&s}return!1}_pushOverlayOnScreen(a,e,t){if(this._previousPushAmount&&this._positionLocked)return{x:a.x+this._previousPushAmount.x,y:a.y+this._previousPushAmount.y};const r=op(e),d=this._viewportRect,u=Math.max(a.x+r.width-d.width,0),c=Math.max(a.y+r.height-d.height,0),o=Math.max(d.top-t.top-a.y,0),s=Math.max(d.left-t.left-a.x,0);let l=0,h=0;return l=r.width<=d.width?s||-u:a.xg&&!this._isInitialRender&&!this._growAfterOpen&&(u=a.y-g/2)}if("end"===e.overlayX&&!r||"start"===e.overlayX&&r)p=t.width-a.x+this._viewportMargin,l=a.x-this._viewportMargin;else if("start"===e.overlayX&&!r||"end"===e.overlayX&&r)h=a.x,l=t.right-a.x;else{const m=Math.min(t.right-a.x+t.left,a.x),g=this._lastBoundingBoxSize.width;l=2*m,h=a.x-m,l>g&&!this._isInitialRender&&!this._growAfterOpen&&(h=a.x-g/2)}return{top:u,left:h,bottom:c,right:p,width:l,height:d}}_setBoundingBoxStyles(a,e){const t=this._calculateBoundingBoxRect(a,e);!this._isInitialRender&&!this._growAfterOpen&&(t.height=Math.min(t.height,this._lastBoundingBoxSize.height),t.width=Math.min(t.width,this._lastBoundingBoxSize.width));const r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{const d=this._overlayRef.getConfig().maxHeight,u=this._overlayRef.getConfig().maxWidth;r.height=Li(t.height),r.top=Li(t.top),r.bottom=Li(t.bottom),r.width=Li(t.width),r.left=Li(t.left),r.right=Li(t.right),r.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",r.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",d&&(r.maxHeight=Li(d)),u&&(r.maxWidth=Li(u))}this._lastBoundingBoxSize=t,Io(this._boundingBox.style,r)}_resetBoundingBoxStyles(){Io(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Io(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(a,e){const t={},r=this._hasExactPosition(),d=this._hasFlexibleDimensions,u=this._overlayRef.getConfig();if(r){const l=this._viewportRuler.getViewportScrollPosition();Io(t,this._getExactOverlayY(e,a,l)),Io(t,this._getExactOverlayX(e,a,l))}else t.position="static";let c="",o=this._getOffset(e,"x"),s=this._getOffset(e,"y");o&&(c+=`translateX(${o}px) `),s&&(c+=`translateY(${s}px)`),t.transform=c.trim(),u.maxHeight&&(r?t.maxHeight=Li(u.maxHeight):d&&(t.maxHeight="")),u.maxWidth&&(r?t.maxWidth=Li(u.maxWidth):d&&(t.maxWidth="")),Io(this._pane.style,t)}_getExactOverlayY(a,e,t){let r={top:"",bottom:""},d=this._getOverlayPoint(e,this._overlayRect,a);return this._isPushed&&(d=this._pushOverlayOnScreen(d,this._overlayRect,t)),"bottom"===a.overlayY?r.bottom=this._document.documentElement.clientHeight-(d.y+this._overlayRect.height)+"px":r.top=Li(d.y),r}_getExactOverlayX(a,e,t){let u,r={left:"",right:""},d=this._getOverlayPoint(e,this._overlayRect,a);return this._isPushed&&(d=this._pushOverlayOnScreen(d,this._overlayRect,t)),u=this._isRtl()?"end"===a.overlayX?"left":"right":"end"===a.overlayX?"right":"left","right"===u?r.right=this._document.documentElement.clientWidth-(d.x+this._overlayRect.width)+"px":r.left=Li(d.x),r}_getScrollVisibility(){const a=this._getOriginRect(),e=this._pane.getBoundingClientRect(),t=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:c_(a,t),isOriginOutsideView:j0(a,t),isOverlayClipped:c_(e,t),isOverlayOutsideView:j0(e,t)}}_subtractOverflows(a,...e){return e.reduce((t,r)=>t-Math.max(r,0),a)}_getNarrowedViewportRect(){const a=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,t=this._viewportRuler.getViewportScrollPosition();return{top:t.top+this._viewportMargin,left:t.left+this._viewportMargin,right:t.left+a-this._viewportMargin,bottom:t.top+e-this._viewportMargin,width:a-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(a,e){return"x"===e?a.offsetX??this._offsetX:a.offsetY??this._offsetY}_validatePositions(){}_addPanelClasses(a){this._pane&&qc(a).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(a=>{this._pane.classList.remove(a)}),this._appliedPanelClasses=[])}_getOriginRect(){const a=this._origin;if(a instanceof n.SBq)return a.nativeElement.getBoundingClientRect();if(a instanceof Element)return a.getBoundingClientRect();const e=a.width||0,t=a.height||0;return{top:a.y,bottom:a.y+t,left:a.x,right:a.x+e,height:t,width:e}}}function Io(i,a){for(let e in a)a.hasOwnProperty(e)&&(i[e]=a[e]);return i}function sp(i){if("number"!=typeof i&&null!=i){const[a,e]=i.split(q0);return e&&"px"!==e?null:parseFloat(a)}return i||null}function op(i){return{top:Math.floor(i.top),right:Math.floor(i.right),bottom:Math.floor(i.bottom),left:Math.floor(i.left),width:Math.floor(i.width),height:Math.floor(i.height)}}const Y0="cdk-global-overlay-wrapper";class f_{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(a){const e=a.getConfig();this._overlayRef=a,this._width&&!e.width&&a.updateSize({width:this._width}),this._height&&!e.height&&a.updateSize({height:this._height}),a.hostElement.classList.add(Y0),this._isDisposed=!1}top(a=""){return this._bottomOffset="",this._topOffset=a,this._alignItems="flex-start",this}left(a=""){return this._xOffset=a,this._xPosition="left",this}bottom(a=""){return this._topOffset="",this._bottomOffset=a,this._alignItems="flex-end",this}right(a=""){return this._xOffset=a,this._xPosition="right",this}start(a=""){return this._xOffset=a,this._xPosition="start",this}end(a=""){return this._xOffset=a,this._xPosition="end",this}width(a=""){return this._overlayRef?this._overlayRef.updateSize({width:a}):this._width=a,this}height(a=""){return this._overlayRef?this._overlayRef.updateSize({height:a}):this._height=a,this}centerHorizontally(a=""){return this.left(a),this._xPosition="center",this}centerVertically(a=""){return this.top(a),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const a=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,t=this._overlayRef.getConfig(),{width:r,height:d,maxWidth:u,maxHeight:c}=t,o=!("100%"!==r&&"100vw"!==r||u&&"100%"!==u&&"100vw"!==u),s=!("100%"!==d&&"100vh"!==d||c&&"100%"!==c&&"100vh"!==c),l=this._xPosition,h=this._xOffset,p="rtl"===this._overlayRef.getConfig().direction;let m="",g="",f="";o?f="flex-start":"center"===l?(f="center",p?g=h:m=h):p?"left"===l||"end"===l?(f="flex-end",m=h):("right"===l||"start"===l)&&(f="flex-start",g=h):"left"===l||"start"===l?(f="flex-start",m=h):("right"===l||"end"===l)&&(f="flex-end",g=h),a.position=this._cssPosition,a.marginLeft=o?"0":m,a.marginTop=s?"0":this._topOffset,a.marginBottom=this._bottomOffset,a.marginRight=o?"0":g,e.justifyContent=f,e.alignItems=s?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const a=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,t=e.style;e.classList.remove(Y0),t.justifyContent=t.alignItems=a.marginTop=a.marginBottom=a.marginLeft=a.marginRight=a.position="",this._overlayRef=null,this._isDisposed=!0}}let m_=(()=>{class i{constructor(e,t,r,d){this._viewportRuler=e,this._document=t,this._platform=r,this._overlayContainer=d}global(){return new f_}flexibleConnectedTo(e){return new p_(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Us),n.LFG(T.K0),n.LFG(Qn),n.LFG(Nl))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),bM=0,rr=(()=>{class i{constructor(e,t,r,d,u,c,o,s,l,h,p,m){this.scrollStrategies=e,this._overlayContainer=t,this._componentFactoryResolver=r,this._positionBuilder=d,this._keyboardDispatcher=u,this._injector=c,this._ngZone=o,this._document=s,this._directionality=l,this._location=h,this._outsideClickDispatcher=p,this._animationsModuleType=m}create(e){const t=this._createHostElement(),r=this._createPaneElement(t),d=this._createPortalOutlet(r),u=new rd(e);return u.direction=u.direction||this._directionality.value,new Vl(d,t,r,u,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(e){const t=this._document.createElement("div");return t.id="cdk-overlay-"+bM++,t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(n.z2F)),new nd(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(fM),n.LFG(Nl),n.LFG(n._Vd),n.LFG(m_),n.LFG(gM),n.LFG(n.zs3),n.LFG(n.R0b),n.LFG(T.K0),n.LFG(Hi),n.LFG(T.Ye),n.LFG(ap),n.LFG(n.QbO,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();const g_=[{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"}],lp=new n.OlP("cdk-connected-overlay-scroll-strategy");let Lu=(()=>{class i{constructor(e){this.elementRef=e}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),i})(),cp=(()=>{class i{constructor(e,t,r,d,u){this._overlay=e,this._dir=u,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=Nt.w0.EMPTY,this._attachSubscription=Nt.w0.EMPTY,this._detachSubscription=Nt.w0.EMPTY,this._positionSubscription=Nt.w0.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new n.vpe,this.positionChange=new n.vpe,this.attach=new n.vpe,this.detach=new n.vpe,this.overlayKeydown=new n.vpe,this.overlayOutsideClick=new n.vpe,this._templatePortal=new Oa(t,r),this._scrollStrategyFactory=d,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=Ge(e)}get lockPosition(){return this._lockPosition}set lockPosition(e){this._lockPosition=Ge(e)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(e){this._flexibleDimensions=Ge(e)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(e){this._growAfterOpen=Ge(e)}get push(){return this._push}set push(e){this._push=Ge(e)}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(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=g_);const e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(t=>{this.overlayKeydown.next(t),27===t.keyCode&&!this.disableClose&&!Di(t)&&(t.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(t=>{this.overlayOutsideClick.next(t)})}_buildConfig(){const e=this._position=this.positionStrategy||this._createPositionStrategy(),t=new rd({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(t.width=this.width),(this.height||0===this.height)&&(t.height=this.height),(this.minWidth||0===this.minWidth)&&(t.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(t.minHeight=this.minHeight),this.backdropClass&&(t.backdropClass=this.backdropClass),this.panelClass&&(t.panelClass=this.panelClass),t}_updatePositionStrategy(e){const t=this.positions.map(r=>({originX:r.originX,originY:r.originY,overlayX:r.overlayX,overlayY:r.overlayY,offsetX:r.offsetX||this.offsetX,offsetY:r.offsetY||this.offsetY,panelClass:r.panelClass||void 0}));return e.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(t).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const e=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(e),e}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof Lu?this.origin.elementRef:this.origin}_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(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(pc(()=>this.positionChange.observers.length>0)).subscribe(e=>{this.positionChange.emit(e),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(rr),n.Y36(n.Rgc),n.Y36(n.s_b),n.Y36(lp),n.Y36(Hi,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[n.TTD]}),i})();const b_={provide:lp,deps:[rr],useFactory:function __(i){return()=>i.scrollStrategies.reposition()}};let Bo=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[rr,b_],imports:[Ho,Ws,Kc,Kc]}),i})();class W0{}const ns="*";function En(i,a){return{type:7,name:i,definitions:a,options:{}}}function Rt(i,a=null){return{type:4,styles:a,timings:i}}function dp(i,a=null){return{type:3,steps:i,options:a}}function G0(i,a=null){return{type:2,steps:i,options:a}}function je(i){return{type:6,styles:i,offset:null}}function ut(i,a,e){return{type:0,name:i,styles:a,options:e}}function No(i){return{type:5,steps:i}}function Ot(i,a,e=null){return{type:1,expr:i,animation:a,options:e}}function Hu(i=null){return{type:9,options:i}}function Br(i,a,e=null){return{type:11,selector:i,animation:a,options:e}}function jl(i){Promise.resolve(null).then(i)}class Ru{constructor(a=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=a+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(a=>a()),this._onDoneFns=[])}onStart(a){this._originalOnStartFns.push(a),this._onStartFns.push(a)}onDone(a){this._originalOnDoneFns.push(a),this._onDoneFns.push(a)}onDestroy(a){this._onDestroyFns.push(a)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){jl(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(a=>a()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(a=>a()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(a){this._position=this.totalTime?a*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(a){const e="start"==a?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class y_{constructor(a){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=a;let e=0,t=0,r=0;const d=this.players.length;0==d?jl(()=>this._onFinish()):this.players.forEach(u=>{u.onDone(()=>{++e==d&&this._onFinish()}),u.onDestroy(()=>{++t==d&&this._onDestroy()}),u.onStart(()=>{++r==d&&this._onStart()})}),this.totalTime=this.players.reduce((u,c)=>Math.max(u,c.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(a=>a()),this._onDoneFns=[])}init(){this.players.forEach(a=>a.init())}onStart(a){this._onStartFns.push(a)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(a=>a()),this._onStartFns=[])}onDone(a){this._onDoneFns.push(a)}onDestroy(a){this._onDestroyFns.push(a)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(a=>a.play())}pause(){this.players.forEach(a=>a.pause())}restart(){this.players.forEach(a=>a.restart())}finish(){this._onFinish(),this.players.forEach(a=>a.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(a=>a.destroy()),this._onDestroyFns.forEach(a=>a()),this._onDestroyFns=[])}reset(){this.players.forEach(a=>a.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(a){const e=a*this.totalTime;this.players.forEach(t=>{const r=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(r)})}getPosition(){const a=this.players.reduce((e,t)=>null===e||t.totalTime>e.totalTime?t:e,null);return null!=a?a.getPosition():0}beforeDestroy(){this.players.forEach(a=>{a.beforeDestroy&&a.beforeDestroy()})}triggerCallback(a){const e="start"==a?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}const wM=["connectionContainer"],w_=["inputContainer"],hS=["label"];function $0(i,a){1&i&&(n.ynx(0),n.TgZ(1,"div",14),n._UZ(2,"div",15)(3,"div",16)(4,"div",17),n.qZA(),n.TgZ(5,"div",18),n._UZ(6,"div",15)(7,"div",16)(8,"div",17),n.qZA(),n.BQk())}function Z0(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div",19),n.NdJ("cdkObserveContent",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.updateOutlineGap())}),n.Hsn(1,1),n.qZA()}if(2&i){const e=n.oxw();n.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)}}function is(i,a){if(1&i&&(n.ynx(0),n.Hsn(1,2),n.TgZ(2,"span"),n._uU(3),n.qZA(),n.BQk()),2&i){const e=n.oxw(2);n.xp6(3),n.Oqu(e._control.placeholder)}}function MM(i,a){1&i&&n.Hsn(0,3,["*ngSwitchCase","true"])}function M_(i,a){1&i&&(n.TgZ(0,"span",23),n._uU(1," *"),n.qZA())}function rs(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"label",20,21),n.NdJ("cdkObserveContent",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.updateOutlineGap())}),n.YNc(2,is,4,1,"ng-container",12),n.YNc(3,MM,1,0,"ng-content",12),n.YNc(4,M_,2,0,"span",22),n.qZA()}if(2&i){const e=n.oxw();n.ekj("mat-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-form-field-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-accent","accent"==e.color)("mat-warn","warn"==e.color),n.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),n.uIk("for",e._control.id)("aria-owns",e._control.id),n.xp6(2),n.Q6J("ngSwitchCase",!1),n.xp6(1),n.Q6J("ngSwitchCase",!0),n.xp6(1),n.Q6J("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function Ia(i,a){1&i&&(n.TgZ(0,"div",24),n.Hsn(1,4),n.qZA())}function Ba(i,a){if(1&i&&(n.TgZ(0,"div",25),n._UZ(1,"span",26),n.qZA()),2&i){const e=n.oxw();n.xp6(1),n.ekj("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function C_(i,a){if(1&i&&(n.TgZ(0,"div"),n.Hsn(1,5),n.qZA()),2&i){const e=n.oxw();n.Q6J("@transitionMessages",e._subscriptAnimationState)}}function v_(i,a){if(1&i&&(n.TgZ(0,"div",30),n._uU(1),n.qZA()),2&i){const e=n.oxw(2);n.Q6J("id",e._hintLabelId),n.xp6(1),n.Oqu(e.hintLabel)}}function CM(i,a){if(1&i&&(n.TgZ(0,"div",27),n.YNc(1,v_,2,2,"div",28),n.Hsn(2,6),n._UZ(3,"div",29),n.Hsn(4,7),n.qZA()),2&i){const e=n.oxw();n.Q6J("@transitionMessages",e._subscriptAnimationState),n.xp6(1),n.Q6J("ngIf",e.hintLabel)}}const vM=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],TM=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let xM=0;const hp=new n.OlP("MatError");let Na=(()=>{class i{constructor(e,t){this.id="mat-error-"+xM++,e||t.nativeElement.setAttribute("aria-live","polite")}}return i.\u0275fac=function(e){return new(e||i)(n.$8M("aria-live"),n.Y36(n.SBq))},i.\u0275dir=n.lG2({type:i,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(e,t){2&e&&n.uIk("id",t.id)},inputs:{id:"id"},features:[n._Bn([{provide:hp,useExisting:i}])]}),i})();const SM={transitionMessages:En("transitionMessages",[ut("enter",je({opacity:1,transform:"translateY(0%)"})),Ot("void => enter",[je({opacity:0,transform:"translateY(-5px)"}),Rt("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let ad=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i}),i})(),pp=0;const T_=new n.OlP("MatHint");let x_=(()=>{class i{constructor(){this.align="start",this.id="mat-hint-"+pp++}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(e,t){2&e&&(n.uIk("id",t.id)("align",null),n.ekj("mat-form-field-hint-end","end"===t.align))},inputs:{align:"align",id:"id"},features:[n._Bn([{provide:T_,useExisting:i}])]}),i})(),as=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["mat-label"]]}),i})(),J0=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["mat-placeholder"]]}),i})();const fp=new n.OlP("MatPrefix"),Q0=new n.OlP("MatSuffix");let X0=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["","matSuffix",""]],features:[n._Bn([{provide:Q0,useExisting:i}])]}),i})(),mp=0;const D_=Rl(class{constructor(i){this._elementRef=i}},"primary"),L_=new n.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),sd=new n.OlP("MatFormField");let di=(()=>{class i extends D_{constructor(e,t,r,d,u,c,o){super(e),this._changeDetectorRef=t,this._dir=r,this._defaults=d,this._platform=u,this._ngZone=c,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new Le.x,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+mp++,this._labelId="mat-form-field-label-"+mp++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==o,this.appearance=d?.appearance||"legacy",d&&(this._hideRequiredMarker=Boolean(d.hideRequiredMarker),d.color&&(this.color=this.defaultColor=d.color))}get appearance(){return this._appearance}set appearance(e){var t;const r=this._appearance;this._appearance=e||(null===(t=this._defaults)||void 0===t?void 0:t.appearance)||"legacy","outline"===this._appearance&&r!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=Ge(e)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(e){this._explicitFormFieldControl=e}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${e.controlType}`),e.stateChanges.pipe(vn(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(rt(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(rt(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,kn.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(vn(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(vn(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(rt(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(e){const t=this._control?this._control.ngControl:null;return t&&t[e]}_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,zs(this._label.nativeElement,"transitionend").pipe((0,ht.q)(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 e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const t=this._hintChildren?this._hintChildren.find(d=>"start"===d.align):null,r=this._hintChildren?this._hintChildren.find(d=>"end"===d.align):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),r&&e.push(r.id)}else this._errorChildren&&e.push(...this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(e)}}_validateControlChild(){}updateOutlineGap(){const e=this._label?this._label.nativeElement:null,t=this._connectionContainerRef.nativeElement,r=".mat-form-field-outline-start",d=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!e||!e.children.length||!e.textContent.trim()){const l=t.querySelectorAll(`${r}, ${d}`);for(let h=0;h0?.75*g+10:0}for(let l=0;l{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[T.ez,wt,uu,wt]}),i})(),H_=(()=>{class i{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,t){this._renderer.setProperty(this._elementRef.nativeElement,e,t)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.Qsj),n.Y36(n.SBq))},i.\u0275dir=n.lG2({type:i}),i})(),Fl=(()=>{class i extends H_{}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,features:[n.qOj]}),i})();const ar=new n.OlP("NgValueAccessor"),HM={provide:ar,useExisting:(0,n.Gpc)(()=>_i),multi:!0},PM=new n.OlP("CompositionEventMode");let _i=(()=>{class i extends H_{constructor(e,t,r){super(e,t),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function RM(){const i=(0,T.q)()?(0,T.q)().getUserAgent():"";return/android (\d+)/.test(i.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.Qsj),n.Y36(n.SBq),n.Y36(PM,8))},i.\u0275dir=n.lG2({type:i,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(e,t){1&e&&n.NdJ("input",function(d){return t._handleInput(d.target.value)})("blur",function(){return t.onTouched()})("compositionstart",function(){return t._compositionStart()})("compositionend",function(d){return t._compositionEnd(d.target.value)})},features:[n._Bn([HM]),n.qOj]}),i})();function Vo(i){return null==i||("string"==typeof i||Array.isArray(i))&&0===i.length}function P_(i){return null!=i&&"number"==typeof i.length}const Vi=new n.OlP("NgValidators"),jo=new n.OlP("NgAsyncValidators"),OM=/^(?=.{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 bi{static min(a){return function em(i){return a=>{if(Vo(a.value)||Vo(i))return null;const e=parseFloat(a.value);return!isNaN(e)&&e{if(Vo(a.value)||Vo(i))return null;const e=parseFloat(a.value);return!isNaN(e)&&e>i?{max:{max:i,actual:a.value}}:null}}(a)}static required(a){return nm(a)}static requiredTrue(a){return function im(i){return!0===i.value?null:{required:!0}}(a)}static email(a){return function rm(i){return Vo(i.value)||OM.test(i.value)?null:{email:!0}}(a)}static minLength(a){return function am(i){return a=>Vo(a.value)||!P_(a.value)?null:a.value.lengthP_(a.value)&&a.value.length>i?{maxlength:{requiredLength:i,actualLength:a.value.length}}:null}(a)}static pattern(a){return function om(i){if(!i)return od;let a,e;return"string"==typeof i?(e="","^"!==i.charAt(0)&&(e+="^"),e+=i,"$"!==i.charAt(i.length-1)&&(e+="$"),a=new RegExp(e)):(e=i.toString(),a=i),t=>{if(Vo(t.value))return null;const r=t.value;return a.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}(a)}static nullValidator(a){return null}static compose(a){return _p(a)}static composeAsync(a){return lm(a)}}function nm(i){return Vo(i.value)?{required:!0}:null}function od(i){return null}function gp(i){return null!=i}function Fo(i){return(0,n.QGY)(i)?(0,Se.D)(i):i}function k_(i){let a={};return i.forEach(e=>{a=null!=e?{...a,...e}:a}),0===Object.keys(a).length?null:a}function O_(i,a){return a.map(e=>e(i))}function IM(i){return i.map(a=>function ld(i){return!i.validate}(a)?a:e=>a.validate(e))}function _p(i){if(!i)return null;const a=i.filter(gp);return 0==a.length?null:function(e){return k_(O_(e,a))}}function I_(i){return null!=i?_p(IM(i)):null}function lm(i){if(!i)return null;const a=i.filter(gp);return 0==a.length?null:function(e){return ma(O_(e,a).map(Fo)).pipe((0,Mt.U)(k_))}}function bp(i){return null!=i?lm(IM(i)):null}function BM(i,a){return null===i?[a]:Array.isArray(i)?[...i,a]:[i,a]}function vt(i){return i._rawValidators}function B_(i){return i._rawAsyncValidators}function cm(i){return i?Array.isArray(i)?i:[i]:[]}function Ap(i,a){return Array.isArray(i)?i.includes(a):i===a}function zl(i,a){const e=cm(a);return cm(i).forEach(r=>{Ap(e,r)||e.push(r)}),e}function N_(i,a){return cm(a).filter(e=>!Ap(i,e))}class Pu{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(a){this._rawValidators=a||[],this._composedValidatorFn=I_(this._rawValidators)}_setAsyncValidators(a){this._rawAsyncValidators=a||[],this._composedAsyncValidatorFn=bp(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(a){this._onDestroyCallbacks.push(a)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(a=>a()),this._onDestroyCallbacks=[]}reset(a){this.control&&this.control.reset(a)}hasError(a,e){return!!this.control&&this.control.hasError(a,e)}getError(a,e){return this.control?this.control.getError(a,e):null}}class Wi extends Pu{get formDirective(){return null}get path(){return null}}class gn extends Pu{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class NM{constructor(a){this._cd=a}get isTouched(){var a,e;return!(null===(a=this._cd)||void 0===a||null===(e=a.control)||void 0===e||!e.touched)}get isUntouched(){var a,e;return!(null===(a=this._cd)||void 0===a||null===(e=a.control)||void 0===e||!e.untouched)}get isPristine(){var a,e;return!(null===(a=this._cd)||void 0===a||null===(e=a.control)||void 0===e||!e.pristine)}get isDirty(){var a,e;return!(null===(a=this._cd)||void 0===a||null===(e=a.control)||void 0===e||!e.dirty)}get isValid(){var a,e;return!(null===(a=this._cd)||void 0===a||null===(e=a.control)||void 0===e||!e.valid)}get isInvalid(){var a,e;return!(null===(a=this._cd)||void 0===a||null===(e=a.control)||void 0===e||!e.invalid)}get isPending(){var a,e;return!(null===(a=this._cd)||void 0===a||null===(e=a.control)||void 0===e||!e.pending)}get isSubmitted(){var a;return!(null===(a=this._cd)||void 0===a||!a.submitted)}}let Ai=(()=>{class i extends NM{constructor(e){super(e)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(gn,2))},i.\u0275dir=n.lG2({type:i,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&n.ekj("ng-untouched",t.isUntouched)("ng-touched",t.isTouched)("ng-pristine",t.isPristine)("ng-dirty",t.isDirty)("ng-valid",t.isValid)("ng-invalid",t.isInvalid)("ng-pending",t.isPending)},features:[n.qOj]}),i})(),cd=(()=>{class i extends NM{constructor(e){super(e)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Wi,10))},i.\u0275dir=n.lG2({type:i,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,t){2&e&&n.ekj("ng-untouched",t.isUntouched)("ng-touched",t.isTouched)("ng-pristine",t.isPristine)("ng-dirty",t.isDirty)("ng-valid",t.isValid)("ng-invalid",t.isInvalid)("ng-pending",t.isPending)("ng-submitted",t.isSubmitted)},features:[n.qOj]}),i})();const Bu="VALID",Mp="INVALID",Ul="PENDING",dd="DISABLED";function Cp(i){return(Tp(i)?i.validators:i)||null}function F_(i){return Array.isArray(i)?I_(i):i||null}function vp(i,a){return(Tp(a)?a.asyncValidators:i)||null}function z_(i){return Array.isArray(i)?bp(i):i||null}function Tp(i){return null!=i&&!Array.isArray(i)&&"object"==typeof i}function qM(i,a,e){const t=i.controls;if(!(a?Object.keys(t):t).length)throw new n.vHH(1e3,"");if(!t[e])throw new n.vHH(1001,"")}function YM(i,a,e){i._forEachChild((t,r)=>{if(void 0===e[r])throw new n.vHH(1002,"")})}class fm{constructor(a,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=a,this._rawAsyncValidators=e,this._composedValidatorFn=F_(this._rawValidators),this._composedAsyncValidatorFn=z_(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(a){this._rawValidators=this._composedValidatorFn=a}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(a){this._rawAsyncValidators=this._composedAsyncValidatorFn=a}get parent(){return this._parent}get valid(){return this.status===Bu}get invalid(){return this.status===Mp}get pending(){return this.status==Ul}get disabled(){return this.status===dd}get enabled(){return this.status!==dd}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(a){this._rawValidators=a,this._composedValidatorFn=F_(a)}setAsyncValidators(a){this._rawAsyncValidators=a,this._composedAsyncValidatorFn=z_(a)}addValidators(a){this.setValidators(zl(a,this._rawValidators))}addAsyncValidators(a){this.setAsyncValidators(zl(a,this._rawAsyncValidators))}removeValidators(a){this.setValidators(N_(a,this._rawValidators))}removeAsyncValidators(a){this.setAsyncValidators(N_(a,this._rawAsyncValidators))}hasValidator(a){return Ap(this._rawValidators,a)}hasAsyncValidator(a){return Ap(this._rawAsyncValidators,a)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(a={}){this.touched=!0,this._parent&&!a.onlySelf&&this._parent.markAsTouched(a)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(a=>a.markAllAsTouched())}markAsUntouched(a={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!a.onlySelf&&this._parent._updateTouched(a)}markAsDirty(a={}){this.pristine=!1,this._parent&&!a.onlySelf&&this._parent.markAsDirty(a)}markAsPristine(a={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!a.onlySelf&&this._parent._updatePristine(a)}markAsPending(a={}){this.status=Ul,!1!==a.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!a.onlySelf&&this._parent.markAsPending(a)}disable(a={}){const e=this._parentMarkedDirty(a.onlySelf);this.status=dd,this.errors=null,this._forEachChild(t=>{t.disable({...a,onlySelf:!0})}),this._updateValue(),!1!==a.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...a,skipPristineCheck:e}),this._onDisabledChange.forEach(t=>t(!0))}enable(a={}){const e=this._parentMarkedDirty(a.onlySelf);this.status=Bu,this._forEachChild(t=>{t.enable({...a,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:a.emitEvent}),this._updateAncestors({...a,skipPristineCheck:e}),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(a){this._parent&&!a.onlySelf&&(this._parent.updateValueAndValidity(a),a.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(a){this._parent=a}getRawValue(){return this.value}updateValueAndValidity(a={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Bu||this.status===Ul)&&this._runAsyncValidator(a.emitEvent)),!1!==a.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!a.onlySelf&&this._parent.updateValueAndValidity(a)}_updateTreeValidity(a={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(a)),this.updateValueAndValidity({onlySelf:!0,emitEvent:a.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?dd:Bu}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(a){if(this.asyncValidator){this.status=Ul,this._hasOwnPendingAsyncValidator=!0;const e=Fo(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(t=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(t,{emitEvent:a})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(a,e={}){this.errors=a,this._updateControlsErrors(!1!==e.emitEvent)}get(a){let e=a;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((t,r)=>t&&t._find(r),this)}getError(a,e){const t=e?this.get(e):this;return t&&t.errors?t.errors[a]:null}hasError(a,e){return!!this.getError(a,e)}get root(){let a=this;for(;a._parent;)a=a._parent;return a}_updateControlsErrors(a){this.status=this._calculateStatus(),a&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(a)}_initObservables(){this.valueChanges=new n.vpe,this.statusChanges=new n.vpe}_calculateStatus(){return this._allControlsDisabled()?dd:this.errors?Mp:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ul)?Ul:this._anyControlsHaveStatus(Mp)?Mp:Bu}_anyControlsHaveStatus(a){return this._anyControls(e=>e.status===a)}_anyControlsDirty(){return this._anyControls(a=>a.dirty)}_anyControlsTouched(){return this._anyControls(a=>a.touched)}_updatePristine(a={}){this.pristine=!this._anyControlsDirty(),this._parent&&!a.onlySelf&&this._parent._updatePristine(a)}_updateTouched(a={}){this.touched=this._anyControlsTouched(),this._parent&&!a.onlySelf&&this._parent._updateTouched(a)}_registerOnCollectionChange(a){this._onCollectionChange=a}_setUpdateStrategy(a){Tp(a)&&null!=a.updateOn&&(this._updateOn=a.updateOn)}_parentMarkedDirty(a){return!a&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(a){return null}}class mm extends fm{constructor(a,e,t){super(Cp(e),vp(t,e)),this.controls=a,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(a,e){return this.controls[a]?this.controls[a]:(this.controls[a]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(a,e,t={}){this.registerControl(a,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}removeControl(a,e={}){this.controls[a]&&this.controls[a]._registerOnCollectionChange(()=>{}),delete this.controls[a],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(a,e,t={}){this.controls[a]&&this.controls[a]._registerOnCollectionChange(()=>{}),delete this.controls[a],e&&this.registerControl(a,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}contains(a){return this.controls.hasOwnProperty(a)&&this.controls[a].enabled}setValue(a,e={}){YM(this,0,a),Object.keys(a).forEach(t=>{qM(this,!0,t),this.controls[t].setValue(a[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(a,e={}){null!=a&&(Object.keys(a).forEach(t=>{const r=this.controls[t];r&&r.patchValue(a[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(a={},e={}){this._forEachChild((t,r)=>{t.reset(a[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(a,e,t)=>(a[t]=e.getRawValue(),a))}_syncPendingControls(){let a=this._reduceChildren(!1,(e,t)=>!!t._syncPendingControls()||e);return a&&this.updateValueAndValidity({onlySelf:!0}),a}_forEachChild(a){Object.keys(this.controls).forEach(e=>{const t=this.controls[e];t&&a(t,e)})}_setUpControls(){this._forEachChild(a=>{a.setParent(this),a._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(a){for(const[e,t]of Object.entries(this.controls))if(this.contains(e)&&a(t))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,t,r)=>((t.enabled||this.disabled)&&(e[r]=t.value),e))}_reduceChildren(a,e){let t=a;return this._forEachChild((r,d)=>{t=e(t,r,d)}),t}_allControlsDisabled(){for(const a of Object.keys(this.controls))if(this.controls[a].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(a){return this.controls.hasOwnProperty(a)?this.controls[a]:null}}function Nu(i,a){return[...a.path,i]}function $s(i,a){var e,t;_m(i,a),a.valueAccessor.writeValue(i.value),i.disabled&&(null===(e=(t=a.valueAccessor).setDisabledState)||void 0===e||e.call(t,!0)),function U_(i,a){a.valueAccessor.registerOnChange(e=>{i._pendingValue=e,i._pendingChange=!0,i._pendingDirty=!0,"change"===i.updateOn&&q_(i,a)})}(i,a),function ud(i,a){const e=(t,r)=>{a.valueAccessor.writeValue(t),r&&a.viewToModelUpdate(t)};i.registerOnChange(e),a._registerOnDestroy(()=>{i._unregisterOnChange(e)})}(i,a),function ZM(i,a){a.valueAccessor.registerOnTouched(()=>{i._pendingTouched=!0,"blur"===i.updateOn&&i._pendingChange&&q_(i,a),"submit"!==i.updateOn&&i.markAsTouched()})}(i,a),function $M(i,a){if(a.valueAccessor.setDisabledState){const e=t=>{a.valueAccessor.setDisabledState(t)};i.registerOnDisabledChange(e),a._registerOnDestroy(()=>{i._unregisterOnDisabledChange(e)})}}(i,a)}function xp(i,a,e=!0){const t=()=>{};a.valueAccessor&&(a.valueAccessor.registerOnChange(t),a.valueAccessor.registerOnTouched(t)),Ep(i,a),i&&(a._invokeOnDestroyCallbacks(),i._registerOnCollectionChange(()=>{}))}function Sp(i,a){i.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(a)})}function _m(i,a){const e=vt(i);null!==a.validator?i.setValidators(BM(e,a.validator)):"function"==typeof e&&i.setValidators([e]);const t=B_(i);null!==a.asyncValidator?i.setAsyncValidators(BM(t,a.asyncValidator)):"function"==typeof t&&i.setAsyncValidators([t]);const r=()=>i.updateValueAndValidity();Sp(a._rawValidators,r),Sp(a._rawAsyncValidators,r)}function Ep(i,a){let e=!1;if(null!==i){if(null!==a.validator){const r=vt(i);if(Array.isArray(r)&&r.length>0){const d=r.filter(u=>u!==a.validator);d.length!==r.length&&(e=!0,i.setValidators(d))}}if(null!==a.asyncValidator){const r=B_(i);if(Array.isArray(r)&&r.length>0){const d=r.filter(u=>u!==a.asyncValidator);d.length!==r.length&&(e=!0,i.setAsyncValidators(d))}}}const t=()=>{};return Sp(a._rawValidators,t),Sp(a._rawAsyncValidators,t),e}function q_(i,a){i._pendingDirty&&i.markAsDirty(),i.setValue(i._pendingValue,{emitModelToViewChange:!1}),a.viewToModelUpdate(i._pendingValue),i._pendingChange=!1}function Y_(i,a){_m(i,a)}function bm(i,a){if(!i.hasOwnProperty("model"))return!1;const e=i.model;return!!e.isFirstChange()||!Object.is(a,e.currentValue)}function Z_(i,a){i._syncPendingControls(),a.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function Dp(i,a){if(!a)return null;let e,t,r;return Array.isArray(a),a.forEach(d=>{d.constructor===_i?e=d:function Am(i){return Object.getPrototypeOf(i.constructor)===Fl}(d)?t=d:r=d}),r||t||e||null}const QM={provide:Wi,useExisting:(0,n.Gpc)(()=>Zs)},Vu=(()=>Promise.resolve(null))();let Zs=(()=>{class i extends Wi{constructor(e,t){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new n.vpe,this.form=new mm({},I_(e),bp(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Vu.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),$s(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Vu.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Vu.then(()=>{const t=this._findContainer(e.path),r=new mm({});Y_(r,e),t.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Vu.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){Vu.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,Z_(this.form,this._directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Vi,10),n.Y36(jo,10))},i.\u0275dir=n.lG2({type:i,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&n.NdJ("submit",function(d){return t.onSubmit(d)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[n._Bn([QM]),n.qOj]}),i})();function Q_(i,a){const e=i.indexOf(a);e>-1&&i.splice(e,1)}function ym(i){return"object"==typeof i&&null!==i&&2===Object.keys(i).length&&"value"in i&&"disabled"in i}const zo=class extends fm{constructor(a=null,e,t){super(Cp(e),vp(t,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(a),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Tp(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=ym(a)?a.value:a)}setValue(a,e={}){this.value=this._pendingValue=a,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(a,e={}){this.setValue(a,e)}reset(a=this.defaultValue,e={}){this._applyFormState(a),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(a){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(a){this._onChange.push(a)}_unregisterOnChange(a){Q_(this._onChange,a)}registerOnDisabledChange(a){this._onDisabledChange.push(a)}_unregisterOnDisabledChange(a){Q_(this._onDisabledChange,a)}_forEachChild(a){}_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(a){ym(a)?(this.value=this._pendingValue=a.value,a.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=a}},Js=zo,KM={provide:gn,useExisting:(0,n.Gpc)(()=>ua)},eb=(()=>Promise.resolve(null))();let ua=(()=>{class i extends gn{constructor(e,t,r,d,u){super(),this._changeDetectorRef=u,this.control=new zo,this._registered=!1,this.update=new n.vpe,this._parent=e,this._setValidators(t),this._setAsyncValidators(r),this.valueAccessor=Dp(0,d)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const t=e.name.previousValue;this.formDirective.removeControl({name:t,path:this._getPath(t)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),bm(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_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(){$s(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(e){eb.then(()=>{var t;this.control.setValue(e,{emitViewToModelChange:!1}),null===(t=this._changeDetectorRef)||void 0===t||t.markForCheck()})}_updateDisabled(e){const t=e.isDisabled.currentValue,r=0!==t&&(0,n.D6c)(t);eb.then(()=>{var d;r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),null===(d=this._changeDetectorRef)||void 0===d||d.markForCheck()})}_getPath(e){return this._parent?Nu(e,this._parent):[e]}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Wi,9),n.Y36(Vi,10),n.Y36(jo,10),n.Y36(ar,10),n.Y36(n.sBO,8))},i.\u0275dir=n.lG2({type:i,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._Bn([KM]),n.qOj,n.TTD]}),i})(),Mm=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),i})();const eC={provide:ar,useExisting:(0,n.Gpc)(()=>Lp),multi:!0};let Lp=(()=>{class i extends Fl{writeValue(e){this.setProperty("value",e??"")}registerOnChange(e){this.onChange=t=>{e(""==t?null:parseFloat(t))}}}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,t){1&e&&n.NdJ("input",function(d){return t.onChange(d.target.value)})("blur",function(){return t.onTouched()})},features:[n._Bn([eC]),n.qOj]}),i})(),vm=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})();const xm=new n.OlP("NgModelWithFormControlWarning"),ib={provide:gn,useExisting:(0,n.Gpc)(()=>sr)};let sr=(()=>{class i extends gn{constructor(e,t,r,d){super(),this._ngModelWarningConfig=d,this.update=new n.vpe,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(t),this.valueAccessor=Dp(0,r)}set isDisabled(e){}ngOnChanges(e){if(this._isControlChanged(e)){const t=e.form.previousValue;t&&xp(t,this,!1),$s(this.form,this),this.form.updateValueAndValidity({emitEvent:!1})}bm(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&xp(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}}return i._ngModelWarningSentOnce=!1,i.\u0275fac=function(e){return new(e||i)(n.Y36(Vi,10),n.Y36(jo,10),n.Y36(ar,10),n.Y36(xm,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[n._Bn([ib]),n.qOj,n.TTD]}),i})();const rb={provide:Wi,useExisting:(0,n.Gpc)(()=>Qs)};let Qs=(()=>{class i extends Wi{constructor(e,t){super(),this.validators=e,this.asyncValidators=t,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new n.vpe,this._setValidators(e),this._setAsyncValidators(t)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Ep(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const t=this.form.get(e.path);return $s(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){xp(e.control||null,e,!1),function J_(i,a){const e=i.indexOf(a);e>-1&&i.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,t){this.form.get(e.path).setValue(t)}onSubmit(e){return this.submitted=!0,Z_(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const t=e.control,r=this.form.get(e.path);t!==r&&(xp(t||null,e),(i=>i instanceof zo)(r)&&($s(r,e),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const t=this.form.get(e.path);Y_(t,e),t.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const t=this.form.get(e.path);t&&function W_(i,a){return Ep(i,a)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){_m(this.form,this),this._oldForm&&Ep(this._oldForm,this)}_checkFormPresent(){}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Vi,10),n.Y36(jo,10))},i.\u0275dir=n.lG2({type:i,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&n.NdJ("submit",function(d){return t.onSubmit(d)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[n._Bn([rb]),n.qOj,n.TTD]}),i})();const nC={provide:gn,useExisting:(0,n.Gpc)(()=>kp)};let kp=(()=>{class i extends gn{constructor(e,t,r,d,u){super(),this._ngModelWarningConfig=u,this._added=!1,this.update=new n.vpe,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(t),this._setAsyncValidators(r),this.valueAccessor=Dp(0,d)}set isDisabled(e){}ngOnChanges(e){this._added||this._setUpControl(),bm(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return Nu(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._added=!0}}return i._ngModelWarningSentOnce=!1,i.\u0275fac=function(e){return new(e||i)(n.Y36(Wi,13),n.Y36(Vi,10),n.Y36(jo,10),n.Y36(ar,10),n.Y36(xm,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[n._Bn([nC]),n.qOj,n.TTD]}),i})(),ql=(()=>{class i{constructor(){this._validator=od}ngOnChanges(e){if(this.inputName in e){const t=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(t),this._validator=this._enabled?this.createValidator(t):od,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,features:[n.TTD]}),i})();const db={provide:Vi,useExisting:(0,n.Gpc)(()=>Nr),multi:!0};let Nr=(()=>{class i extends ql{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=n.D6c,this.createValidator=e=>nm}enabled(e){return e}}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&n.uIk("required",t._enabled?"":null)},inputs:{required:"required"},features:[n._Bn([db]),n.qOj]}),i})(),Pm=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[vm]}),i})(),Fu=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Pm]}),i})(),Xs=(()=>{class i{static withConfig(e){return{ngModule:i,providers:[{provide:xm,useValue:e.warnOnNgModelWithFormControl}]}}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Pm]}),i})();class pC extends fm{constructor(a,e,t){super(Cp(e),vp(t,e)),this.controls=a,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(a){return this.controls[this._adjustIndex(a)]}push(a,e={}){this.controls.push(a),this._registerControl(a),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(a,e,t={}){this.controls.splice(a,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:t.emitEvent})}removeAt(a,e={}){let t=this._adjustIndex(a);t<0&&(t=0),this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(a,e,t={}){let r=this._adjustIndex(a);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(a,e={}){YM(this,0,a),a.forEach((t,r)=>{qM(this,!1,r),this.at(r).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(a,e={}){null!=a&&(a.forEach((t,r)=>{this.at(r)&&this.at(r).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(a=[],e={}){this._forEachChild((t,r)=>{t.reset(a[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(a=>a.getRawValue())}clear(a={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:a.emitEvent}))}_adjustIndex(a){return a<0?a+this.length:a}_syncPendingControls(){let a=this.controls.reduce((e,t)=>!!t._syncPendingControls()||e,!1);return a&&this.updateValueAndValidity({onlySelf:!0}),a}_forEachChild(a){this.controls.forEach((e,t)=>{a(e,t)})}_updateValue(){this.value=this.controls.filter(a=>a.enabled||this.disabled).map(a=>a.value)}_anyControls(a){return this.controls.some(e=>e.enabled&&a(e))}_setUpControls(){this._forEachChild(a=>this._registerControl(a))}_allControlsDisabled(){for(const a of this.controls)if(a.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(a){a.setParent(this),a._registerOnCollectionChange(this._onCollectionChange)}_find(a){var e;return null!==(e=this.at(a))&&void 0!==e?e:null}}function km(i){return!!i&&(void 0!==i.asyncValidators||void 0!==i.validators||void 0!==i.updateOn)}let gC=(()=>{class i{constructor(){this.useNonNullable=!1}get nonNullable(){const e=new i;return e.useNonNullable=!0,e}group(e,t=null){const r=this._reduceControls(e);let d={};return km(t)?d=t:null!==t&&(d.validators=t.validator,d.asyncValidators=t.asyncValidator),new mm(r,d)}control(e,t,r){let d={};return this.useNonNullable?(km(t)?d=t:(d.validators=t,d.asyncValidators=r),new zo(e,{...d,nonNullable:!0})):new zo(e,t,r)}array(e,t,r){const d=e.map(u=>this._createControl(u));return new pC(d,t,r)}_reduceControls(e){const t={};return Object.keys(e).forEach(r=>{t[r]=this._createControl(e[r])}),t}_createControl(e){return e instanceof zo||e instanceof fm?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:Xs}),i})(),hd=(()=>{class i extends gC{group(e,t=null){return super.group(e,t)}control(e,t,r){return super.control(e,t,r)}array(e,t,r){return super.array(e,t,r)}}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:Xs}),i})();const Om=["trigger"],ss=["panel"];function _C(i,a){if(1&i&&(n.TgZ(0,"span",8),n._uU(1),n.qZA()),2&i){const e=n.oxw();n.xp6(1),n.Oqu(e.placeholder)}}function Np(i,a){if(1&i&&(n.TgZ(0,"span",12),n._uU(1),n.qZA()),2&i){const e=n.oxw(2);n.xp6(1),n.Oqu(e.triggerValue)}}function zu(i,a){1&i&&n.Hsn(0,0,["*ngSwitchCase","true"])}function bC(i,a){if(1&i&&(n.TgZ(0,"span",9),n.YNc(1,Np,2,1,"span",10),n.YNc(2,zu,1,0,"ng-content",11),n.qZA()),2&i){const e=n.oxw();n.Q6J("ngSwitch",!!e.customTrigger),n.xp6(2),n.Q6J("ngSwitchCase",!0)}}function AC(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div",13)(1,"div",14,15),n.NdJ("@transformPanel.done",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d._panelDoneAnimatingStream.next(r.toState))})("keydown",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d._handleKeydown(r))}),n.Hsn(3,1),n.qZA()()}if(2&i){const e=n.oxw();n.Q6J("@transformPanelWrap",void 0),n.xp6(1),n.Gre("mat-select-panel ",e._getPanelTheme(),""),n.Udp("transform-origin",e._transformOrigin)("font-size",e._triggerFontSize,"px"),n.Q6J("ngClass",e.panelClass)("@transformPanel",e.multiple?"showing-multiple":"showing"),n.uIk("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}const yC=[[["mat-select-trigger"]],"*"],Vp=["mat-select-trigger","*"],Uu={transformPanelWrap:En("transformPanelWrap",[Ot("* => void",Br("@transformPanel",[Hu()],{optional:!0}))]),transformPanel:En("transformPanel",[ut("void",je({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),ut("showing",je({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),ut("showing-multiple",je({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),Ot("void => *",Rt("120ms cubic-bezier(0, 0, 0.2, 1)")),Ot("* => void",Rt("100ms 25ms linear",je({opacity:0})))])};let Im=0;const jp=new n.OlP("mat-select-scroll-strategy"),Bm=new n.OlP("MAT_SELECT_CONFIG"),Nm={provide:jp,deps:[rr],useFactory:function mb(i){return()=>i.scrollStrategies.reposition()}};class TC{constructor(a,e){this.source=a,this.value=e}}const xC=Ni(Vs(Xa(w0(class{constructor(i,a,e,t,r){this._elementRef=i,this._defaultErrorStateMatcher=a,this._parentForm=e,this._parentFormGroup=t,this.ngControl=r,this.stateChanges=new Le.x}})))),SC=new n.OlP("MatSelectTrigger");let gb=(()=>{class i extends xC{constructor(e,t,r,d,u,c,o,s,l,h,p,m,g,f){var w,N,se;super(u,d,o,s,h),this._viewportRuler=e,this._changeDetectorRef=t,this._ngZone=r,this._dir=c,this._parentFormField=l,this._liveAnnouncer=g,this._defaultOptions=f,this._panelOpen=!1,this._compareWith=(Pe,ot)=>Pe===ot,this._uid="mat-select-"+Im++,this._triggerAriaLabelledBy=null,this._destroy=new Le.x,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+Im++,this._panelDoneAnimatingStream=new Le.x,this._overlayPanelClass=(null===(w=this._defaultOptions)||void 0===w?void 0:w.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=null!==(N=null===(se=this._defaultOptions)||void 0===se?void 0:se.disableOptionCentering)&&void 0!==N&&N,this.ariaLabel="",this.optionSelectionChanges=Rn(()=>{const Pe=this.options;return Pe?Pe.changes.pipe(vn(Pe),(0,An.w)(()=>(0,kn.T)(...Pe.map(ot=>ot.onSelectionChange)))):this._ngZone.onStable.pipe((0,ht.q)(1),(0,An.w)(()=>this.optionSelectionChanges))}),this.openedChange=new n.vpe,this._openedStream=this.openedChange.pipe((0,bt.h)(Pe=>Pe),(0,Mt.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,bt.h)(Pe=>!Pe),(0,Mt.U)(()=>{})),this.selectionChange=new n.vpe,this.valueChange=new n.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=f?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=f.typeaheadDebounceInterval),this._scrollStrategyFactory=m,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(p)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get required(){var e,t,r,d;return null!==(e=null!==(t=this._required)&&void 0!==t?t:null===(r=this.ngControl)||void 0===r||null===(d=r.control)||void 0===d?void 0:d.hasValidator(bi.required))&&void 0!==e&&e}set required(e){this._required=Ge(e),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._multiple=Ge(e)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(e){this._disableOptionCentering=Ge(e)}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(e){this._typeaheadDebounceInterval=Qt(e)}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new Yi(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Uc(),rt(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(rt(this._destroy)).subscribe(e=>{e.added.forEach(t=>t.select()),e.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(vn(null),rt(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const e=this._getTriggerAriaLabelledby(),t=this.ngControl;if(e!==this._triggerAriaLabelledBy){const r=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?r.setAttribute("aria-labelledby",e):r.removeAttribute("aria-labelledby")}t&&(this._previousControl!==t.control&&(void 0!==this._previousControl&&null!==t.disabled&&t.disabled!==this.disabled&&(this.disabled=t.disabled),this._previousControl=t.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.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(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){var e,t;return this.multiple?(null===(e=this._selectionModel)||void 0===e?void 0:e.selected)||[]:null===(t=this._selectionModel)||void 0===t?void 0:t.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const e=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){const t=e.keyCode,r=40===t||38===t||37===t||39===t,d=13===t||32===t,u=this._keyManager;if(!u.isTyping()&&d&&!Di(e)||(this.multiple||e.altKey)&&r)e.preventDefault(),this.open();else if(!this.multiple){const c=this.selected;u.onKeydown(e);const o=this.selected;o&&c!==o&&this._liveAnnouncer.announce(o.viewValue,1e4)}}_handleOpenKeydown(e){const t=this._keyManager,r=e.keyCode,d=40===r||38===r,u=t.isTyping();if(d&&e.altKey)e.preventDefault(),this.close();else if(u||13!==r&&32!==r||!t.activeItem||Di(e))if(!u&&this._multiple&&65===r&&e.ctrlKey){e.preventDefault();const c=this.options.some(o=>!o.disabled&&!o.selected);this.options.forEach(o=>{o.disabled||(c?o.select():o.deselect())})}else{const c=t.activeItemIndex;t.onKeydown(e),this._multiple&&d&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==c&&t.activeItem._selectViaInteraction()}else e.preventDefault(),t.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((0,ht.q)(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.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this._selectionModel.selected.forEach(t=>t.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(t=>this._selectOptionByValue(t)),this._sortValues();else{const t=this._selectOptionByValue(e);t?this._keyManager.updateActiveItem(t):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){const t=this.options.find(r=>{if(this._selectionModel.isSelected(r))return!1;try{return null!=r.value&&this._compareWith(r.value,e)}catch{return!1}});return t&&this._selectionModel.select(t),t}_assignValue(e){return!!(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e,!0)}_initKeyManager(){this._keyManager=new Aw(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(rt(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(rt(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 e=(0,kn.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(rt(e)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,kn.T)(...this.options.map(t=>t._stateChanges)).pipe(rt(e)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(e,t){const r=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(r!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),r!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const e=this.options.toArray();this._selectionModel.sort((t,r)=>this.sortComparator?this.sortComparator(t,r,e):e.indexOf(t)-e.indexOf(r)),this.stateChanges.next()}}_propagateChanges(e){let t=null;t=this.multiple?this.selected.map(r=>r.value):this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(this._getChangeEvent(t)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var e;return!this._panelOpen&&!this.disabled&&(null===(e=this.options)||void 0===e?void 0:e.length)>0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){var e;if(this.ariaLabel)return null;const t=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId();return this.ariaLabelledby?(t?t+" ":"")+this.ariaLabelledby:t}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var e;if(this.ariaLabel)return null;const t=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId();let r=(t?t+" ":"")+this._valueId;return this.ariaLabelledby&&(r+=" "+this.ariaLabelledby),r}_panelDoneAnimating(e){this.openedChange.emit(e)}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Us),n.Y36(n.sBO),n.Y36(n.R0b),n.Y36(Jc),n.Y36(n.SBq),n.Y36(Hi,8),n.Y36(Zs,8),n.Y36(Qs,8),n.Y36(sd,8),n.Y36(gn,10),n.$8M("tabindex"),n.Y36(jp),n.Y36(Ns),n.Y36(Bm,8))},i.\u0275dir=n.lG2({type:i,viewQuery:function(e,t){if(1&e&&(n.Gf(Om,5),n.Gf(ss,5),n.Gf(cp,5)),2&e){let r;n.iGM(r=n.CRH())&&(t.trigger=r.first),n.iGM(r=n.CRH())&&(t.panel=r.first),n.iGM(r=n.CRH())&&(t._overlayDir=r.first)}},inputs:{userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[n.qOj,n.TTD]}),i})(),fd=(()=>{class i extends gb{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(e,t,r){const d=this._getItemHeight();return Math.min(Math.max(0,d*e-t+d/2),r)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(rt(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((0,ht.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(e){const t=Qh(e,this.options,this.optionGroups),r=this._getItemHeight();this.panel.nativeElement.scrollTop=0===e&&1===t?0:Z1((e+t)*r,r,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(e){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(e)}_getChangeEvent(e){return new TC(this,e)}_calculateOverlayOffsetX(){const e=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),t=this._viewportRuler.getViewportSize(),r=this._isRtl(),d=this.multiple?56:32;let u;if(this.multiple)u=40;else if(this.disableOptionCentering)u=16;else{let s=this._selectionModel.selected[0]||this.options.first;u=s&&s.group?32:16}r||(u*=-1);const c=0-(e.left+u-(r?d:0)),o=e.right+u-t.width+(r?0:d);c>0?u+=c+8:o>0&&(u-=o+8),this._overlayDir.offsetX=Math.round(u),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(e,t,r){const d=this._getItemHeight(),u=(d-this._triggerRect.height)/2,c=Math.floor(256/d);let o;return this.disableOptionCentering?0:(o=0===this._scrollTop?e*d:this._scrollTop===r?(e-(this._getItemCount()-c))*d+(d-(this._getItemCount()*d-256)%d):t-d/2,Math.round(-1*o-u))}_checkOverlayWithinViewport(e){const t=this._getItemHeight(),r=this._viewportRuler.getViewportSize(),d=this._triggerRect.top-8,u=r.height-this._triggerRect.bottom-8,c=Math.abs(this._offsetY),s=Math.min(this._getItemCount()*t,256)-c-this._triggerRect.height;s>u?this._adjustPanelUp(s,u):c>d?this._adjustPanelDown(c,d,e):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(e,t){const r=Math.round(e-t);this._scrollTop-=r,this._offsetY-=r,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(e,t,r){const d=Math.round(e-t);if(this._scrollTop+=d,this._offsetY+=d,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=r)return this._scrollTop=r,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const e=this._getItemHeight(),t=this._getItemCount(),r=Math.min(t*e,256),u=t*e-r;let c;c=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),c+=Qh(c,this.options,this.optionGroups);const o=r/2;this._scrollTop=this._calculateOverlayScroll(c,o,u),this._offsetY=this._calculateOverlayOffsetY(c,o,u),this._checkOverlayWithinViewport(u)}_getOriginBasedOnOption(){const e=this._getItemHeight(),t=(e-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-t+e/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-select"]],contentQueries:function(e,t,r){if(1&e&&(n.Suo(r,SC,5),n.Suo(r,Fs,5),n.Suo(r,_r,5)),2&e){let d;n.iGM(d=n.CRH())&&(t.customTrigger=d.first),n.iGM(d=n.CRH())&&(t.options=d),n.iGM(d=n.CRH())&&(t.optionGroups=d)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:19,hostBindings:function(e,t){1&e&&n.NdJ("keydown",function(d){return t._handleKeydown(d)})("focus",function(){return t._onFocus()})("blur",function(){return t._onBlur()}),2&e&&(n.uIk("id",t.id)("tabindex",t.tabIndex)("aria-controls",t.panelOpen?t.id+"-panel":null)("aria-expanded",t.panelOpen)("aria-label",t.ariaLabel||null)("aria-required",t.required.toString())("aria-disabled",t.disabled.toString())("aria-invalid",t.errorState)("aria-activedescendant",t._getAriaActiveDescendant()),n.ekj("mat-select-disabled",t.disabled)("mat-select-invalid",t.errorState)("mat-select-required",t.required)("mat-select-empty",t.empty)("mat-select-multiple",t.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[n._Bn([{provide:ad,useExisting:i},{provide:S0,useExisting:i}]),n.qOj],ngContentSelectors:Vp,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 mat-select-min-line",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","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(e,t){if(1&e&&(n.F$t(yC),n.TgZ(0,"div",0,1),n.NdJ("click",function(){return t.toggle()}),n.TgZ(3,"div",2),n.YNc(4,_C,2,1,"span",3),n.YNc(5,bC,3,2,"span",4),n.qZA(),n.TgZ(6,"div",5),n._UZ(7,"div",6),n.qZA()(),n.YNc(8,AC,4,14,"ng-template",7),n.NdJ("backdropClick",function(){return t.close()})("attach",function(){return t._onAttached()})("detach",function(){return t.close()})),2&e){const r=n.MAs(1);n.uIk("aria-owns",t.panelOpen?t.id+"-panel":null),n.xp6(3),n.Q6J("ngSwitch",t.empty),n.uIk("id",t._valueId),n.xp6(1),n.Q6J("ngSwitchCase",!0),n.xp6(1),n.Q6J("ngSwitchCase",!1),n.xp6(3),n.Q6J("cdkConnectedOverlayPanelClass",t._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",t._scrollStrategy)("cdkConnectedOverlayOrigin",r)("cdkConnectedOverlayOpen",t.panelOpen)("cdkConnectedOverlayPositions",t._positions)("cdkConnectedOverlayMinWidth",null==t._triggerRect?null:t._triggerRect.width)("cdkConnectedOverlayOffsetY",t._offsetY)}},dependencies:[T.mk,T.RF,T.n9,T.ED,cp,Lu],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-select-value{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{height:16px;flex-shrink:0;display:inline-flex;align-items:center}.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 rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;margin:0 4px}.mat-form-field.mat-focused .mat-select-arrow{transform:translateX(0)}.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:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[Uu.transformPanelWrap,Uu.transformPanel]},changeDetection:0}),i})(),md=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[Nm],imports:[T.ez,Bo,_u,wt,da,Gs,_u,wt]}),i})();const _b=["tooltip"],Ab="tooltip-panel",Vm=kr({passive:!0}),jm=new n.OlP("mat-tooltip-scroll-strategy"),Ar={provide:jm,deps:[rr],useFactory:function DC(i){return()=>i.scrollStrategies.reposition({scrollThrottle:20})}},gd=new n.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function LC(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let HC=(()=>{class i{constructor(e,t,r,d,u,c,o,s,l,h,p,m){this._overlay=e,this._elementRef=t,this._scrollDispatcher=r,this._viewContainerRef=d,this._ngZone=u,this._platform=c,this._ariaDescriber=o,this._focusMonitor=s,this._dir=h,this._defaultOptions=p,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new Le.x,this._scrollStrategy=l,this._document=m,p&&(p.position&&(this.position=p.position),p.touchGestures&&(this.touchGestures=p.touchGestures)),h.change.pipe(rt(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(e){var t;e!==this._position&&(this._position=e,this._overlayRef)&&(this._updatePosition(this._overlayRef),null===(t=this._tooltipInstance)||void 0===t||t.show(0),this._overlayRef.updatePosition())}get disabled(){return this._disabled}set disabled(e){this._disabled=Ge(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=Qt(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=Qt(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).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,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(rt(this._destroyed)).subscribe(e=>{e?"keyboard"===e&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([t,r])=>{e.removeEventListener(t,r,Vm)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const t=this._createOverlay();this._detach(),this._portal=this._portal||new Ys(this._tooltipComponent,this._viewContainerRef);const r=this._tooltipInstance=t.attach(this._portal).instance;r._triggerElement=this._elementRef.nativeElement,r._mouseLeaveHideDelay=this._hideDelay,r.afterHidden().pipe(rt(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),r.show(e)}hide(e=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(e)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){var e;if(this._overlayRef)return this._overlayRef;const t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),r=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(t);return r.positionChanges.pipe(rt(this._destroyed)).subscribe(d=>{this._updateCurrentPositionClass(d.connectionPair),this._tooltipInstance&&d.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:r,panelClass:`${this._cssClassPrefix}-${Ab}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(rt(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(rt(this._destroyed)).subscribe(()=>{var d;return null===(d=this._tooltipInstance)||void 0===d?void 0:d._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe(rt(this._destroyed)).subscribe(d=>{this._isTooltipVisible()&&27===d.keyCode&&!Di(d)&&(d.preventDefault(),d.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),null!==(e=this._defaultOptions)&&void 0!==e&&e.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){const t=e.getConfig().positionStrategy,r=this._getOrigin(),d=this._getOverlayPosition();t.withPositions([this._addOffset({...r.main,...d.main}),this._addOffset({...r.fallback,...d.fallback})])}_addOffset(e){return e}_getOrigin(){const e=!this._dir||"ltr"==this._dir.value,t=this.position;let r;"above"==t||"below"==t?r={originX:"center",originY:"above"==t?"top":"bottom"}:"before"==t||"left"==t&&e||"right"==t&&!e?r={originX:"start",originY:"center"}:("after"==t||"right"==t&&e||"left"==t&&!e)&&(r={originX:"end",originY:"center"});const{x:d,y:u}=this._invertPosition(r.originX,r.originY);return{main:r,fallback:{originX:d,originY:u}}}_getOverlayPosition(){const e=!this._dir||"ltr"==this._dir.value,t=this.position;let r;"above"==t?r={overlayX:"center",overlayY:"bottom"}:"below"==t?r={overlayX:"center",overlayY:"top"}:"before"==t||"left"==t&&e||"right"==t&&!e?r={overlayX:"end",overlayY:"center"}:("after"==t||"right"==t&&e||"left"==t&&!e)&&(r={overlayX:"start",overlayY:"center"});const{x:d,y:u}=this._invertPosition(r.overlayX,r.overlayY);return{main:r,fallback:{overlayX:d,overlayY:u}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,ht.q)(1),rt(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,t){return"above"===this.position||"below"===this.position?"top"===t?t="bottom":"bottom"===t&&(t="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:t}}_updateCurrentPositionClass(e){const{overlayY:t,originX:r,originY:d}=e;let u;if(u="center"===t?this._dir&&"rtl"===this._dir.value?"end"===r?"left":"right":"start"===r?"left":"right":"bottom"===t&&"top"===d?"above":"below",u!==this._currentPosition){const c=this._overlayRef;if(c){const o=`${this._cssClassPrefix}-${Ab}-`;c.removePanelClass(o+this._currentPosition),c.addPanelClass(o+u)}this._currentPosition=u}}_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 e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",t=>{var r;const d=t.relatedTarget;(!d||null===(r=this._overlayRef)||void 0===r||!r.overlayElement.contains(d))&&this.hide()}],["wheel",t=>this._wheelListener(t)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const t=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",t],["touchcancel",t])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([t,r])=>{this._elementRef.nativeElement.addEventListener(t,r,Vm)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const t=this._document.elementFromPoint(e.clientX,e.clientY),r=this._elementRef.nativeElement;t!==r&&!r.contains(t)&&this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const t=this._elementRef.nativeElement,r=t.style;("on"===e||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(r.userSelect=r.msUserSelect=r.webkitUserSelect=r.MozUserSelect="none"),("on"===e||!t.draggable)&&(r.webkitUserDrag="none"),r.touchAction="none",r.webkitTapHighlightColor="transparent"}}}return i.\u0275fac=function(e){n.$Z()},i.\u0275dir=n.lG2({type:i,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),i})(),yr=(()=>{class i extends HC{constructor(e,t,r,d,u,c,o,s,l,h,p,m){super(e,t,r,d,u,c,o,s,l,h,p,m),this._tooltipComponent=wb}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(rr),n.Y36(n.SBq),n.Y36(ts),n.Y36(n.s_b),n.Y36(n.R0b),n.Y36(Qn),n.Y36(hu),n.Y36($r),n.Y36(jm),n.Y36(Hi,8),n.Y36(gd,8),n.Y36(T.K0))},i.\u0275dir=n.lG2({type:i,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[n.qOj]}),i})(),OS=(()=>{class i{constructor(e,t){this._changeDetectorRef=e,this._visibility="initial",this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new Le.x,this._animationsDisabled="NoopAnimations"===t}show(e){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:e}){(!e||!this._triggerElement.contains(e))&&this.hide(this._mouseLeaveHideDelay)}_onShow(){}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){const t=this._tooltip.nativeElement,r=this._showAnimation,d=this._hideAnimation;if(t.classList.remove(e?d:r),t.classList.add(e?r:d),this._isVisible=e,e&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const u=getComputedStyle(t);("0s"===u.getPropertyValue("animation-duration")||"none"===u.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(t.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.sBO),n.Y36(n.QbO,8))},i.\u0275dir=n.lG2({type:i}),i})(),wb=(()=>{class i extends OS{constructor(e,t,r){super(e,r),this._breakpointObserver=t,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)"),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.sBO),n.Y36(P1),n.Y36(n.QbO,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-tooltip-component"]],viewQuery:function(e,t){if(1&e&&n.Gf(_b,7),2&e){let r;n.iGM(r=n.CRH())&&(t._tooltip=r.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,t){1&e&&n.NdJ("mouseleave",function(d){return t._handleMouseLeave(d)}),2&e&&n.Udp("zoom",t.isVisible()?1:null)},features:[n.qOj],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(e,t){if(1&e&&(n.TgZ(0,"div",0,1),n.NdJ("animationend",function(d){return t._handleAnimationEnd(d)}),n.ALo(2,"async"),n._uU(3),n.qZA()),2&e){let r;n.ekj("mat-tooltip-handset",null==(r=n.lcZ(2,4,t._isHandset))?null:r.matches),n.Q6J("ngClass",t.tooltipClass),n.xp6(3),n.Oqu(t.message)}},dependencies:[T.mk,T.Ov],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}"],encapsulation:2,changeDetection:0}),i})(),Uo=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[Ar],imports:[Hl,T.ez,Bo,wt,wt,da]}),i})();function RC(i,a){if(1&i&&(n.TgZ(0,"mat-option",19),n._uU(1),n.qZA()),2&i){const e=a.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function Fm(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"mat-form-field",16)(1,"mat-select",17),n.NdJ("selectionChange",function(r){n.CHM(e);const d=n.oxw(2);return n.KtG(d._changePageSize(r.value))}),n.YNc(2,RC,2,2,"mat-option",18),n.qZA()()}if(2&i){const e=n.oxw(2);n.Q6J("appearance",e._formFieldAppearance)("color",e.color),n.xp6(1),n.Q6J("value",e.pageSize)("disabled",e.disabled)("panelClass",e.selectConfig.panelClass||"")("disableOptionCentering",e.selectConfig.disableOptionCentering)("aria-label",e._intl.itemsPerPageLabel),n.xp6(1),n.Q6J("ngForOf",e._displayedPageSizeOptions)}}function PC(i,a){if(1&i&&(n.TgZ(0,"div",20),n._uU(1),n.qZA()),2&i){const e=n.oxw(2);n.xp6(1),n.Oqu(e.pageSize)}}function Mb(i,a){if(1&i&&(n.TgZ(0,"div",12)(1,"div",13),n._uU(2),n.qZA(),n.YNc(3,Fm,3,8,"mat-form-field",14),n.YNc(4,PC,2,1,"div",15),n.qZA()),2&i){const e=n.oxw();n.xp6(2),n.hij(" ",e._intl.itemsPerPageLabel," "),n.xp6(1),n.Q6J("ngIf",e._displayedPageSizeOptions.length>1),n.xp6(1),n.Q6J("ngIf",e._displayedPageSizeOptions.length<=1)}}function kC(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"button",21),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.firstPage())}),n.O4$(),n.TgZ(1,"svg",7),n._UZ(2,"path",22),n.qZA()()}if(2&i){const e=n.oxw();n.Q6J("matTooltip",e._intl.firstPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),n.uIk("aria-label",e._intl.firstPageLabel)}}function OC(i,a){if(1&i){const e=n.EpF();n.O4$(),n.kcU(),n.TgZ(0,"button",23),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.lastPage())}),n.O4$(),n.TgZ(1,"svg",7),n._UZ(2,"path",24),n.qZA()()}if(2&i){const e=n.oxw();n.Q6J("matTooltip",e._intl.lastPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),n.uIk("aria-label",e._intl.lastPageLabel)}}let Ks=(()=>{class i{constructor(){this.changes=new Le.x,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(e,t,r)=>{if(0==r||0==t)return`0 of ${r}`;const d=e*t;return`${d+1} \u2013 ${d<(r=Math.max(r,0))?Math.min(d+t,r):d+t} of ${r}`}}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const zm={provide:Ks,deps:[[new n.FiY,new n.tp0,Ks]],useFactory:function IC(i){return i||new Ks}},zp=new n.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),Um=Xa(M0(class{}));let IS=(()=>{class i extends Um{constructor(e,t,r){if(super(),this._intl=e,this._changeDetectorRef=t,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.selectConfig={},this.page=new n.vpe,this._intlChanges=e.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),r){const{pageSize:d,pageSizeOptions:u,hidePageSize:c,showFirstLastButtons:o}=r;null!=d&&(this._pageSize=d),null!=u&&(this._pageSizeOptions=u),null!=c&&(this._hidePageSize=c),null!=o&&(this._showFirstLastButtons=o)}}get pageIndex(){return this._pageIndex}set pageIndex(e){this._pageIndex=Math.max(Qt(e),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(e){this._length=Qt(e),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(e){this._pageSize=Math.max(Qt(e),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(e){this._pageSizeOptions=(e||[]).map(t=>Qt(t)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(e){this._hidePageSize=Ge(e)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(e){this._showFirstLastButtons=Ge(e)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const e=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(e)}previousPage(){if(!this.hasPreviousPage())return;const e=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(e)}firstPage(){if(!this.hasPreviousPage())return;const e=this.pageIndex;this.pageIndex=0,this._emitPageEvent(e)}lastPage(){if(!this.hasNextPage())return;const e=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(e)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const e=this.getNumberOfPages()-1;return this.pageIndexe-t),this._changeDetectorRef.markForCheck())}_emitPageEvent(e){this.page.emit({previousPageIndex:e,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return i.\u0275fac=function(e){n.$Z()},i.\u0275dir=n.lG2({type:i,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",selectConfig:"selectConfig"},outputs:{page:"page"},features:[n.qOj]}),i})(),qm=(()=>{class i extends IS{constructor(e,t,r){super(e,t,r),r&&null!=r.formFieldAppearance&&(this._formFieldAppearance=r.formFieldAppearance)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ks),n.Y36(n.sBO),n.Y36(zp,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[n.qOj],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","panelClass","disableOptionCentering","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(e,t){1&e&&(n.TgZ(0,"div",0)(1,"div",1),n.YNc(2,Mb,5,3,"div",2),n.TgZ(3,"div",3)(4,"div",4),n._uU(5),n.qZA(),n.YNc(6,kC,3,5,"button",5),n.TgZ(7,"button",6),n.NdJ("click",function(){return t.previousPage()}),n.O4$(),n.TgZ(8,"svg",7),n._UZ(9,"path",8),n.qZA()(),n.kcU(),n.TgZ(10,"button",9),n.NdJ("click",function(){return t.nextPage()}),n.O4$(),n.TgZ(11,"svg",7),n._UZ(12,"path",10),n.qZA()(),n.YNc(13,OC,3,5,"button",11),n.qZA()()()),2&e&&(n.xp6(2),n.Q6J("ngIf",!t.hidePageSize),n.xp6(3),n.hij(" ",t._intl.getRangeLabel(t.pageIndex,t.pageSize,t.length)," "),n.xp6(1),n.Q6J("ngIf",t.showFirstLastButtons),n.xp6(1),n.Q6J("matTooltip",t._intl.previousPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("matTooltipPosition","above")("disabled",t._previousButtonsDisabled()),n.uIk("aria-label",t._intl.previousPageLabel),n.xp6(3),n.Q6J("matTooltip",t._intl.nextPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("matTooltipPosition","above")("disabled",t._nextButtonsDisabled()),n.uIk("aria-label",t._intl.nextPageLabel),n.xp6(3),n.Q6J("ngIf",t.showFirstLastButtons))},dependencies:[T.sg,T.O5,Ht,di,fd,Fs,yr],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{display:inline-block;width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}"],encapsulation:2,changeDetection:0}),i})(),qu=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[zm],imports:[T.ez,Ka,md,Uo,wt]}),i})();var Up=E(1005);const _d=["mat-menu-item",""];function NC(i,a){1&i&&(n.O4$(),n.TgZ(0,"svg",2),n._UZ(1,"polygon",3),n.qZA())}const Ym=["*"];function Wm(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div",0),n.NdJ("keydown",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d._handleKeydown(r))})("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.closed.emit("click"))})("@transformMenu.start",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d._onAnimationStart(r))})("@transformMenu.done",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d._onAnimationDone(r))}),n.TgZ(1,"div",1),n.Hsn(2),n.qZA()()}if(2&i){const e=n.oxw();n.Q6J("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),n.uIk("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const Gm={transformMenu:En("transformMenu",[ut("void",je({opacity:0,transform:"scale(0.8)"})),Ot("void => enter",Rt("120ms cubic-bezier(0, 0, 0.2, 1)",je({opacity:1,transform:"scale(1)"}))),Ot("* => void",Rt("100ms 25ms linear",je({opacity:0})))]),fadeInItems:En("fadeInItems",[ut("showing",je({opacity:1})),Ot("void => *",[je({opacity:0}),Rt("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},VC=new n.OlP("MatMenuContent"),qp=new n.OlP("MAT_MENU_PANEL"),vb=Ni(Xa(class{}));let bd=(()=>{class i extends vb{constructor(e,t,r,d,u){var c;super(),this._elementRef=e,this._document=t,this._focusMonitor=r,this._parentMenu=d,this._changeDetectorRef=u,this.role="menuitem",this._hovered=new Le.x,this._focused=new Le.x,this._highlighted=!1,this._triggersSubmenu=!1,null==d||null===(c=d.addItem)||void 0===c||c.call(d,this)}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),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(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var e;const t=this._elementRef.nativeElement.cloneNode(!0),r=t.querySelectorAll("mat-icon, .material-icons");for(let d=0;d{class i{constructor(e,t,r,d){this._elementRef=e,this._ngZone=t,this._defaultOptions=r,this._changeDetectorRef=d,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new n.n_E,this._tabSubscription=Nt.w0.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new Le.x,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new n.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+zC++}get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(e){this._overlapTrigger=Ge(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=Ge(e)}set panelClass(e){const t=this._previousPanelClass;t&&t.length&&t.split(" ").forEach(r=>{this._classList[r]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(r=>{this._classList[r]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(e){this.panelClass=e}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new m0(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(vn(this._directDescendantItems),(0,An.w)(e=>(0,kn.T)(...e.map(t=>t._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{var t;const r=this._keyManager;if("enter"===this._panelAnimationState&&null!==(t=r.activeItem)&&void 0!==t&&t._hasFocus()){const d=e.toArray(),u=Math.max(0,Math.min(d.length-1,r.activeItemIndex||0));d[u]&&!d[u].disabled?r.setActiveItem(u):r.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(vn(this._directDescendantItems),(0,An.w)(t=>(0,kn.T)(...t.map(r=>r._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const t=e.keyCode,r=this._keyManager;switch(t){case 27:Di(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(38===t||40===t)&&r.setFocusOrigin("keyboard"),void r.onKeydown(e)}e.stopPropagation()}focusFirstItem(e="program"){this._ngZone.onStable.pipe((0,ht.q)(1)).subscribe(()=>{let t=null;if(this._directDescendantItems.length&&(t=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!t||!t.contains(document.activeElement)){const r=this._keyManager;r.setFocusOrigin(e).setFirstItemActive(),!r.activeItem&&t&&t.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const t=Math.min(this._baseElevation+e,24),r=`${this._elevationPrefix}${t}`,d=Object.keys(this._classList).find(u=>u.startsWith(this._elevationPrefix));(!d||d===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[r]=!0,this._previousElevation=r)}setPositionClasses(e=this.xPosition,t=this.yPosition){var r;const d=this._classList;d["mat-menu-before"]="before"===e,d["mat-menu-after"]="after"===e,d["mat-menu-above"]="above"===t,d["mat-menu-below"]="below"===t,null===(r=this._changeDetectorRef)||void 0===r||r.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(vn(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(n.R0b),n.Y36(Tb),n.Y36(n.sBO))},i.\u0275dir=n.lG2({type:i,contentQueries:function(e,t,r){if(1&e&&(n.Suo(r,VC,5),n.Suo(r,bd,5),n.Suo(r,bd,4)),2&e){let d;n.iGM(d=n.CRH())&&(t.lazyContent=d.first),n.iGM(d=n.CRH())&&(t._allItems=d),n.iGM(d=n.CRH())&&(t.items=d)}},viewQuery:function(e,t){if(1&e&&n.Gf(n.Rgc,5),2&e){let r;n.iGM(r=n.CRH())&&(t.templateRef=r.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),i})(),Yp=(()=>{class i extends Ad{constructor(e,t,r,d){super(e,t,r,d),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(n.R0b),n.Y36(Tb),n.Y36(n.sBO))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,t){2&e&&n.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[n._Bn([{provide:qp,useExisting:i}]),n.qOj],ngContentSelectors:Ym,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(e,t){1&e&&(n.F$t(),n.YNc(0,Wm,3,6,"ng-template"))},dependencies:[T.mk],styles:['mat-menu{display:none}.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;position:relative}.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;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}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}'],encapsulation:2,data:{animation:[Gm.transformMenu,Gm.fadeInItems]},changeDetection:0}),i})();const $m=new n.OlP("mat-menu-scroll-strategy"),UC={provide:$m,deps:[rr],useFactory:function Sb(i){return()=>i.scrollStrategies.reposition()}},qC=kr({passive:!0});let Eb=(()=>{class i{constructor(e,t,r,d,u,c,o,s,l){this._overlay=e,this._element=t,this._viewContainerRef=r,this._menuItemInstance=c,this._dir=o,this._focusMonitor=s,this._ngZone=l,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=Nt.w0.EMPTY,this._hoverSubscription=Nt.w0.EMPTY,this._menuCloseSubscription=Nt.w0.EMPTY,this._handleTouchStart=h=>{_0(h)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new n.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new n.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=d,this._parentMaterialMenu=u instanceof Ad?u:void 0,t.nativeElement.addEventListener("touchstart",this._handleTouchStart,qC),c&&(c._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(t=>{this._destroyMenu(t),("click"===t||"tab"===t)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(t)})))}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,qC),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(){const e=this.menu;if(this._menuOpen||!e)return;const t=this._createOverlay(e),r=t.getConfig(),d=r.positionStrategy;this._setPosition(e,d),r.hasBackdrop=e.hasBackdrop??!this.triggersSubmenu(),t.attach(this._getPortal(e)),e.lazyContent&&e.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(e),e instanceof Ad&&(e._startAnimation(),e._directDescendantItems.changes.pipe(rt(e.close)).subscribe(()=>{d.withLockedPosition(!1).reapplyLastPosition(),d.withLockedPosition(!0)}))}closeMenu(){var e;null===(e=this.menu)||void 0===e||e.close.emit()}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}updatePosition(){var e;null===(e=this._overlayRef)||void 0===e||e.updatePosition()}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;const t=this.menu;var r;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,t instanceof Ad?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe((0,bt.h)(d=>"void"===d.toState),(0,ht.q)(1),rt(t.lazyContent._attached)).subscribe({next:()=>t.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),null==t||null===(r=t.lazyContent)||void 0===r||r.detach())}_initMenu(e){e.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,e.direction=this.dir,this._setMenuElevation(e),e.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(e){if(e.setElevation){let t=0,r=e.parentMenu;for(;r;)t++,r=r.parentMenu;e.setElevation(t)}}_setIsMenuOpen(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e)}_createOverlay(e){if(!this._overlayRef){const t=this._getOverlayConfig(e);this._subscribeToPositions(e,t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(e){return new rd({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e,t){e.setPositionClasses&&t.positionChanges.subscribe(r=>{const d="start"===r.connectionPair.overlayX?"after":"before",u="top"===r.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>e.setPositionClasses(d,u)):e.setPositionClasses(d,u)})}_setPosition(e,t){let[r,d]="before"===e.xPosition?["end","start"]:["start","end"],[u,c]="above"===e.yPosition?["bottom","top"]:["top","bottom"],[o,s]=[u,c],[l,h]=[r,d],p=0;if(this.triggersSubmenu()){if(h=r="before"===e.xPosition?"start":"end",d=l="end"===r?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const m=this._parentMaterialMenu.items.first;this._parentInnerPadding=m?m._getHostElement().offsetTop:0}p="bottom"===u?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(o="top"===u?"bottom":"top",s="top"===c?"bottom":"top");t.withPositions([{originX:r,originY:o,overlayX:l,overlayY:u,offsetY:p},{originX:d,originY:o,overlayX:h,overlayY:u,offsetY:p},{originX:r,originY:s,overlayX:l,overlayY:c,offsetY:-p},{originX:d,originY:s,overlayX:h,overlayY:c,offsetY:-p}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),t=this._overlayRef.detachments(),r=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,Ee.of)(),d=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,bt.h)(u=>u!==this._menuItemInstance),(0,bt.h)(()=>this._menuOpen)):(0,Ee.of)();return(0,kn.T)(e,r,d,t)}_handleMousedown(e){jh(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){const t=e.keyCode;(13===t||32===t)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===t&&"ltr"===this.dir||37===t&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,bt.h)(e=>e===this._menuItemInstance&&!e.disabled),(0,Up.g)(0,wu)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Ad&&this.menu._isAnimating?this.menu._animationDone.pipe((0,ht.q)(1),(0,Up.g)(0,wu),rt(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new Oa(e.templateRef,this._viewContainerRef)),this._portal}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(rr),n.Y36(n.SBq),n.Y36(n.s_b),n.Y36($m),n.Y36(qp,8),n.Y36(bd,10),n.Y36(Hi,8),n.Y36($r),n.Y36(n.R0b))},i.\u0275dir=n.lG2({type:i,hostVars:3,hostBindings:function(e,t){1&e&&n.NdJ("click",function(d){return t._handleClick(d)})("mousedown",function(d){return t._handleMousedown(d)})("keydown",function(d){return t._handleKeydown(d)}),2&e&&n.uIk("aria-haspopup",t.menu?"menu":null)("aria-expanded",t.menuOpen||null)("aria-controls",t.menuOpen?t.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),i})(),Db=(()=>{class i extends Eb{}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[n.qOj]}),i})(),Wp=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[UC],imports:[T.ez,wt,ca,Bo,da,wt]}),i})();const zS=["*"];let Zm;function Gp(i){var a;return(null===(a=function US(){if(void 0===Zm&&(Zm=null,typeof window<"u")){const i=window;void 0!==i.trustedTypes&&(Zm=i.trustedTypes.createPolicy("angular#components",{createHTML:a=>a}))}return Zm}())||void 0===a?void 0:a.createHTML(i))||i}function YC(i){return Error(`Unable to find icon with the name "${i}"`)}function Yu(i){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${i}".`)}function WC(i){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${i}".`)}class qo{constructor(a,e,t){this.url=a,this.svgText=e,this.options=t}}let Yo=(()=>{class i{constructor(e,t,r,d){this._httpClient=e,this._sanitizer=t,this._errorHandler=d,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=r}addSvgIcon(e,t,r){return this.addSvgIconInNamespace("",e,t,r)}addSvgIconLiteral(e,t,r){return this.addSvgIconLiteralInNamespace("",e,t,r)}addSvgIconInNamespace(e,t,r,d){return this._addSvgIconConfig(e,t,new qo(r,null,d))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,t,r,d){const u=this._sanitizer.sanitize(n.q3G.HTML,r);if(!u)throw WC(r);const c=Gp(u);return this._addSvgIconConfig(e,t,new qo("",c,d))}addSvgIconSet(e,t){return this.addSvgIconSetInNamespace("",e,t)}addSvgIconSetLiteral(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}addSvgIconSetInNamespace(e,t,r){return this._addSvgIconSetConfig(e,new qo(t,null,r))}addSvgIconSetLiteralInNamespace(e,t,r){const d=this._sanitizer.sanitize(n.q3G.HTML,t);if(!d)throw WC(t);const u=Gp(d);return this._addSvgIconSetConfig(e,new qo("",u,r))}registerFontClassAlias(e,t=e){return this._fontCssClassesByAlias.set(e,t),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const t=this._sanitizer.sanitize(n.q3G.RESOURCE_URL,e);if(!t)throw Yu(e);const r=this._cachedIconsByUrl.get(t);return r?(0,Ee.of)(Jm(r)):this._loadSvgIconFromConfig(new qo(e,null)).pipe((0,Wt.b)(d=>this._cachedIconsByUrl.set(t,d)),(0,Mt.U)(d=>Jm(d)))}getNamedSvgIcon(e,t=""){const r=$p(t,e);let d=this._svgIconConfigs.get(r);if(d)return this._getSvgFromConfig(d);if(d=this._getIconConfigFromResolvers(t,e),d)return this._svgIconConfigs.set(r,d),this._getSvgFromConfig(d);const u=this._iconSetConfigs.get(t);return u?this._getSvgFromIconSetConfigs(e,u):(0,Ui._)(YC(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?(0,Ee.of)(Jm(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe((0,Mt.U)(t=>Jm(t)))}_getSvgFromIconSetConfigs(e,t){const r=this._extractIconWithNameFromAnySet(e,t);return r?(0,Ee.of)(r):ma(t.filter(u=>!u.svgText).map(u=>this._loadSvgIconSetFromConfig(u).pipe((0,Fn.K)(c=>{const s=`Loading icon set URL: ${this._sanitizer.sanitize(n.q3G.RESOURCE_URL,u.url)} failed: ${c.message}`;return this._errorHandler.handleError(new Error(s)),(0,Ee.of)(null)})))).pipe((0,Mt.U)(()=>{const u=this._extractIconWithNameFromAnySet(e,t);if(!u)throw YC(e);return u}))}_extractIconWithNameFromAnySet(e,t){for(let r=t.length-1;r>=0;r--){const d=t[r];if(d.svgText&&d.svgText.toString().indexOf(e)>-1){const u=this._svgElementFromConfig(d),c=this._extractSvgIconFromSet(u,e,d.options);if(c)return c}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe((0,Wt.b)(t=>e.svgText=t),(0,Mt.U)(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?(0,Ee.of)(null):this._fetchIcon(e).pipe((0,Wt.b)(t=>e.svgText=t))}_extractSvgIconFromSet(e,t,r){const d=e.querySelector(`[id="${t}"]`);if(!d)return null;const u=d.cloneNode(!0);if(u.removeAttribute("id"),"svg"===u.nodeName.toLowerCase())return this._setSvgAttributes(u,r);if("symbol"===u.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(u),r);const c=this._svgElementFromString(Gp(""));return c.appendChild(u),this._setSvgAttributes(c,r)}_svgElementFromString(e){const t=this._document.createElement("DIV");t.innerHTML=e;const r=t.querySelector("svg");if(!r)throw Error(" tag not found");return r}_toSvgElement(e){const t=this._svgElementFromString(Gp("")),r=e.attributes;for(let d=0;dGp(l)),bo(()=>this._inProgressUrlFetches.delete(c)),(0,uo.B)());return this._inProgressUrlFetches.set(c,s),s}_addSvgIconConfig(e,t,r){return this._svgIconConfigs.set($p(e,t),r),this}_addSvgIconSetConfig(e,t){const r=this._iconSetConfigs.get(e);return r?r.push(t):this._iconSetConfigs.set(e,[t]),this}_svgElementFromConfig(e){if(!e.svgElement){const t=this._svgElementFromString(e.svgText);this._setSvgAttributes(t,e.options),e.svgElement=t}return e.svgElement}_getIconConfigFromResolvers(e,t){for(let r=0;ra?a.pathname+a.search:""}}}),Pb=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],JC=Pb.map(i=>`[${i}]`).join(", "),Zp=/^url\(['"]?#(.*?)['"]?\)$/;let zn=(()=>{class i extends $C{constructor(e,t,r,d,u,c){super(e),this._iconRegistry=t,this._location=d,this._errorHandler=u,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=Nt.w0.EMPTY,c&&(c.color&&(this.color=this.defaultColor=c.color),c.fontSet&&(this.fontSet=c.fontSet)),r||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=Ge(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const t=this._cleanupFontValue(e);t!==this._fontSet&&(this._fontSet=t,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const t=this._cleanupFontValue(e);t!==this._fontIcon&&(this._fontIcon=t,this._updateFontIconClasses())}_splitIconName(e){if(!e)return["",""];const t=e.split(":");switch(t.length){case 1:return["",t[0]];case 2:return t;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.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(e){this._clearSvgElement();const t=this._location.getPathname();this._previousPath=t,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(t),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let t=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();t--;){const r=e.childNodes[t];(1!==r.nodeType||"svg"===r.nodeName.toLowerCase())&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,t=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(r=>r.length>0);this._previousFontSetClass.forEach(r=>e.classList.remove(r)),t.forEach(r=>e.classList.add(r)),this._previousFontSetClass=t,this.fontIcon!==this._previousFontIconClass&&!t.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return"string"==typeof e?e.trim().split(" ")[0]:e}_prependPathToReferences(e){const t=this._elementsWithExternalReferences;t&&t.forEach((r,d)=>{r.forEach(u=>{d.setAttribute(u.name,`url('${e}#${u.value}')`)})})}_cacheChildrenWithExternalReferences(e){const t=e.querySelectorAll(JC),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let d=0;d{const c=t[d],o=c.getAttribute(u),s=o?o.match(Zp):null;if(s){let l=r.get(c);l||(l=[],r.set(c,l)),l.push({name:u,value:s[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[t,r]=this._splitIconName(e);t&&(this._svgNamespace=t),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,t).pipe((0,ht.q)(1)).subscribe(d=>this._setSvgElement(d),d=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${t}:${r}! ${d.message}`))})}}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(Yo),n.$8M("aria-hidden"),n.Y36(YS),n.Y36(n.qLn),n.Y36(Rb,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,t){2&e&&(n.uIk("data-mat-icon-type",t._usingFontIcon()?"font":"svg")("data-mat-icon-name",t._svgName||t.fontIcon)("data-mat-icon-namespace",t._svgNamespace||t.fontSet),n.ekj("mat-icon-inline",t.inline)("mat-icon-no-color","primary"!==t.color&&"accent"!==t.color&&"warn"!==t.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[n.qOj],ngContentSelectors:zS,decls:1,vars:0,template:function(e,t){1&e&&(n.F$t(),n.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[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}"],encapsulation:2,changeDetection:0}),i})(),eo=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[wt,wt]}),i})(),QC=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[qu,Wp,eo,Ka,po,T.ez]}),i})();var WS=E(5861);function XC(i,a){}class Jp{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0}}let KC=(()=>{class i extends Oo{constructor(e,t,r,d,u,c,o,s){super(),this._elementRef=e,this._focusTrapFactory=t,this._config=d,this._interactivityChecker=u,this._ngZone=c,this._overlayRef=o,this._focusMonitor=s,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=l=>{this._portalOutlet.hasAttached();const h=this._portalOutlet.attachDomPortal(l);return this._contentAttached(),h},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=r}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();const t=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),t}attachTemplatePortal(e){this._portalOutlet.hasAttached();const t=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),t}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const r=()=>{e.removeEventListener("blur",r),e.removeEventListener("mousedown",r),e.removeAttribute("tabindex")};e.addEventListener("blur",r),e.addEventListener("mousedown",r)})),e.focus(t)}_focusByCssSelector(e,t){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,t)}_trapFocus(){const e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(t=>{t||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const e=this._config.restoreFocus;let t=null;if("string"==typeof e?t=this._document.querySelector(e):"boolean"==typeof e?t=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(t=e),this._config.restoreFocus&&t&&"function"==typeof t.focus){const r=r0(),d=this._elementRef.nativeElement;(!r||r===this._document.body||r===d||d.contains(r))&&(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,t=r0();return e===t||e.contains(t)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=r0())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(fu),n.Y36(T.K0,8),n.Y36(Jp),n.Y36(Yc),n.Y36(n.R0b),n.Y36(Vl),n.Y36($r))},i.\u0275cmp=n.Xpm({type:i,selectors:[["cdk-dialog-container"]],viewQuery:function(e,t){if(1&e&&n.Gf(id,7),2&e){let r;n.iGM(r=n.CRH())&&(t._portalOutlet=r.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(e,t){2&e&&n.uIk("id",t._config.id||null)("role",t._config.role)("aria-modal",t._config.ariaModal)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null)},features:[n.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&n.YNc(0,XC,0,0,"ng-template",0)},dependencies:[id],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),i})();class Qm{constructor(a,e){this.overlayRef=a,this.config=e,this.closed=new Le.x,this.disableClose=e.disableClose,this.backdropClick=a.backdropClick(),this.keydownEvents=a.keydownEvents(),this.outsidePointerEvents=a.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(t=>{27===t.keyCode&&!this.disableClose&&!Di(t)&&(t.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(a,e){if(this.containerInstance){const t=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this.overlayRef.dispose(),t.next(a),t.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(a="",e=""){return this.overlayRef.updateSize({width:a,height:e}),this}addPanelClass(a){return this.overlayRef.addPanelClass(a),this}removePanelClass(a){return this.overlayRef.removePanelClass(a),this}}const Xm=new n.OlP("DialogScrollStrategy"),kb=new n.OlP("DialogData"),$S=new n.OlP("DefaultDialogConfig"),ev={provide:Xm,deps:[rr],useFactory:function Va(i){return()=>i.scrollStrategies.block()}};let Km=0,Ob=(()=>{class i{constructor(e,t,r,d,u,c){this._overlay=e,this._injector=t,this._defaultOptions=r,this._parentDialog=d,this._overlayContainer=u,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Le.x,this._afterOpenedAtThisLevel=new Le.x,this._ariaHiddenElements=new Map,this.afterAllClosed=Rn(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(vn(void 0))),this._scrollStrategy=c}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}open(e,t){(t={...this._defaultOptions||new Jp,...t}).id=t.id||"cdk-dialog-"+Km++,t.id&&this.getDialogById(t.id);const d=this._getOverlayConfig(t),u=this._overlay.create(d),c=new Qm(u,t),o=this._attachContainer(u,c,t);return c.containerInstance=o,this._attachDialogContent(e,c,o,t),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(c),c.closed.subscribe(()=>this._removeOpenDialog(c,!0)),this.afterOpened.next(c),c}closeAll(){wr(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){wr(this._openDialogsAtThisLevel,e=>{!1===e.config.closeOnDestroy&&this._removeOpenDialog(e,!1)}),wr(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){const t=new rd({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}_attachContainer(e,t,r){var d,u;const c=null!==(d=r.injector)&&void 0!==d?d:null===(u=r.viewContainerRef)||void 0===u?void 0:u.injector,o=[{provide:Jp,useValue:r},{provide:Qm,useValue:t},{provide:Vl,useValue:e}];let s;r.container?"function"==typeof r.container?s=r.container:(s=r.container.type,o.push(...r.container.providers(r))):s=KC;const l=new Ys(s,r.viewContainerRef,n.zs3.create({parent:c||this._injector,providers:o}),r.componentFactoryResolver);return e.attach(l).instance}_attachDialogContent(e,t,r,d){const u=this._createInjector(d,t,r);if(e instanceof n.Rgc){let c={$implicit:d.data,dialogRef:t};d.templateContext&&(c={...c,..."function"==typeof d.templateContext?d.templateContext():d.templateContext}),r.attachTemplatePortal(new Oa(e,null,c,u))}else{const c=r.attachComponentPortal(new Ys(e,d.viewContainerRef,u,d.componentFactoryResolver));t.componentInstance=c.instance}}_createInjector(e,t,r){const d=e&&e.viewContainerRef&&e.viewContainerRef.injector,u=[{provide:kb,useValue:e.data},{provide:Qm,useValue:t}];return e.providers&&("function"==typeof e.providers?u.push(...e.providers(t,e,r)):u.push(...e.providers)),e.direction&&(!d||!d.get(Hi,null,n.XFs.Optional))&&u.push({provide:Hi,useValue:{value:e.direction,change:(0,Ee.of)()}}),n.zs3.create({parent:e.injector||d||this._injector,providers:u})}_removeOpenDialog(e,t){const r=this.openDialogs.indexOf(e);r>-1&&(this.openDialogs.splice(r,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((d,u)=>{d?u.setAttribute("aria-hidden",d):u.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),t&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const t=e.parentElement.children;for(let r=t.length-1;r>-1;r--){const d=t[r];d!==e&&"SCRIPT"!==d.nodeName&&"STYLE"!==d.nodeName&&!d.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(d,d.getAttribute("aria-hidden")),d.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(rr),n.LFG(n.zs3),n.LFG($S,8),n.LFG(i,12),n.LFG(Nl),n.LFG(Xm))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();function wr(i,a){let e=i.length;for(;e--;)a(i[e])}let tv=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[Ob,ev],imports:[Bo,Ws,Hl,Ws]}),i})();function eg(i,a){}const yd={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},nv={dialogContainer:En("dialogContainer",[ut("void, exit",je({opacity:0,transform:"scale(0.7)"})),ut("enter",je({transform:"none"})),Ot("* => enter",dp([Rt("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",je({transform:"none",opacity:1})),Br("@*",Hu(),{optional:!0})]),yd),Ot("* => void, * => exit",dp([Rt("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",je({opacity:0})),Br("@*",Hu(),{optional:!0})]),yd)])};class Gl{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="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0,this.enterAnimationDuration=yd.params.enterAnimationDuration,this.exitAnimationDuration=yd.params.exitAnimationDuration}}let Ib=(()=>{class i extends KC{constructor(e,t,r,d,u,c,o,s){super(e,t,r,d,u,c,o,s),this._animationStateChanged=new n.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(fu),n.Y36(T.K0,8),n.Y36(Gl),n.Y36(Yc),n.Y36(n.R0b),n.Y36(Vl),n.Y36($r))},i.\u0275cmp=n.Xpm({type:i,selectors:[["ng-component"]],features:[n.qOj],decls:0,vars:0,template:function(e,t){},encapsulation:2}),i})(),Bb=(()=>{class i extends Ib{constructor(e,t,r,d,u,c,o,s,l){super(e,t,r,d,u,c,o,l),this._changeDetectorRef=s,this._state="enter"}_onAnimationDone({toState:e,totalTime:t}){"enter"===e?this._openAnimationDone(t):"exit"===e&&this._animationStateChanged.next({state:"closed",totalTime:t})}_onAnimationStart({toState:e,totalTime:t}){"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:t}):("exit"===e||"void"===e)&&this._animationStateChanged.next({state:"closing",totalTime:t})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||yd.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||yd.params.exitAnimationDuration}}}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(fu),n.Y36(T.K0,8),n.Y36(Gl),n.Y36(Yc),n.Y36(n.R0b),n.Y36(Vl),n.Y36(n.sBO),n.Y36($r))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(e,t){1&e&&n.WFA("@dialogContainer.start",function(d){return t._onAnimationStart(d)})("@dialogContainer.done",function(d){return t._onAnimationDone(d)}),2&e&&(n.Ikx("id",t._config.id),n.uIk("aria-modal",t._config.ariaModal)("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),n.d8E("@dialogContainer",t._getAnimationState()))},features:[n.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&n.YNc(0,eg,0,0,"ng-template",0)},dependencies:[id],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.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.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}"],encapsulation:2,data:{animation:[nv.dialogContainer]}}),i})();class Ln{constructor(a,e,t){this._ref=a,this._containerInstance=t,this._afterOpened=new Le.x,this._beforeClosed=new Le.x,this._state=0,this.disableClose=e.disableClose,this.id=a.id,t._animationStateChanged.pipe((0,bt.h)(r=>"opened"===r.state),(0,ht.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),t._animationStateChanged.pipe((0,bt.h)(r=>"closed"===r.state),(0,ht.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),a.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,kn.T)(this.backdropClick(),this.keydownEvents().pipe((0,bt.h)(r=>27===r.keyCode&&!this.disableClose&&!Di(r)))).subscribe(r=>{this.disableClose||(r.preventDefault(),function Nb(i,a,e){i._closeInteractionType=a,i.close(e)}(this,"keydown"===r.type?"keyboard":"mouse"))})}close(a){this._result=a,this._containerInstance._animationStateChanged.pipe((0,bt.h)(e=>"closing"===e.state),(0,ht.q)(1)).subscribe(e=>{this._beforeClosed.next(a),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(a){let e=this._ref.config.positionStrategy;return a&&(a.left||a.right)?a.left?e.left(a.left):e.right(a.right):e.centerHorizontally(),a&&(a.top||a.bottom)?a.top?e.top(a.top):e.bottom(a.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(a="",e=""){return this._ref.updateSize(a,e),this}addPanelClass(a){return this._ref.addPanelClass(a),this}removePanelClass(a){return this._ref.removePanelClass(a),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}const ni=new n.OlP("MatDialogData"),iv=new n.OlP("mat-dialog-default-options"),tg=new n.OlP("mat-dialog-scroll-strategy"),Wo={provide:tg,deps:[rr],useFactory:function ng(i){return()=>i.scrollStrategies.block()}};let Vb=0,ig=(()=>{class i{constructor(e,t,r,d,u,c,o,s,l,h){this._overlay=e,this._defaultOptions=r,this._parentDialog=d,this._dialogRefConstructor=o,this._dialogContainerType=s,this._dialogDataToken=l,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Le.x,this._afterOpenedAtThisLevel=new Le.x,this._idPrefix="mat-dialog-",this.afterAllClosed=Rn(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(vn(void 0))),this._scrollStrategy=c,this._dialog=t.get(Ob)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(e,t){let r;(t={...this._defaultOptions||new Gl,...t}).id=t.id||`${this._idPrefix}${Vb++}`,t.scrollStrategy=t.scrollStrategy||this._scrollStrategy();const d=this._dialog.open(e,{...t,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:Gl,useValue:t},{provide:Jp,useValue:t}]},templateContext:()=>({dialogRef:r}),providers:(u,c,o)=>{var s;return r=new this._dialogRefConstructor(u,t,o),r.updatePosition(null===(s=t)||void 0===s?void 0:s.position),[{provide:this._dialogContainerType,useValue:o},{provide:this._dialogDataToken,useValue:c.data},{provide:this._dialogRefConstructor,useValue:r}]}});return r.componentInstance=d.componentInstance,this.openDialogs.push(r),this.afterOpened.next(r),r.afterClosed().subscribe(()=>{const u=this.openDialogs.indexOf(r);u>-1&&(this.openDialogs.splice(u,1),this.openDialogs.length||this._getAfterAllClosed().next())}),r}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let t=e.length;for(;t--;)e[t].close()}}return i.\u0275fac=function(e){n.$Z()},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})(),on=(()=>{class i extends ig{constructor(e,t,r,d,u,c,o,s){super(e,t,d,c,o,u,Ln,Bb,ni,s)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(rr),n.LFG(n.zs3),n.LFG(T.Ye,8),n.LFG(iv,8),n.LFG(tg),n.LFG(i,12),n.LFG(Nl),n.LFG(n.QbO,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})(),rv=0,Xn=(()=>{class i{constructor(e,t,r){this._dialogRef=e,this._elementRef=t,this._dialog=r,this.id="mat-dialog-title-"+rv++}ngOnInit(){this._dialogRef||(this._dialogRef=function av(i,a){let e=i.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-dialog-container");)e=e.parentElement;return e?a.find(t=>t.id===e.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const e=this._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=this.id)})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ln,8),n.Y36(n.SBq),n.Y36(on))},i.\u0275dir=n.lG2({type:i,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,t){2&e&&n.Ikx("id",t.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),i})(),ii=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),i})(),Un=(()=>{class i{constructor(){this.align="start"}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(e,t){2&e&&n.ekj("mat-dialog-actions-align-center","center"===t.align)("mat-dialog-actions-align-end","end"===t.align)},inputs:{align:"align"}}),i})(),Wu=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[on,Wo],imports:[tv,Bo,Ws,wt,wt]}),i})();var JS=E(4327);const $l=[5,10,25,100];function sg(){return(sg=(0,WS.Z)(function*(i,a){yield zb(i),a()})).apply(this,arguments)}function zb(i){return new Promise(a=>setTimeout(a,i))}function ln(){const i=new Gl;return i.disableClose=!0,i.autoFocus=!1,i}function to(i){return"virt"===i.namespace.split(":")[4]}const gv=new Intl.Collator("cs",{numeric:!0});function Zl(i,a,e){const t=a.active,r=a.direction;return t&&""!==r?i.sort((d,u)=>{const c=e(d,t),o=e(u,t);return gv.compare(c,o)*("asc"===r?1:-1)}):i}function Jl(i,a,e,t,r){a=a.toLowerCase();let d="";return e.forEach(u=>{d+=";"+t(i,u)}),r&&(d+=";"+t(i,"uuid")),d.toLowerCase().includes(a)}function ja(i,a,e){const t=[],r=["checkbox","select","edit","menu","cite","extend","recent"];return a=a.filter(d=>!r.includes(d)),i.forEach(d=>{const u={};a.forEach(c=>{u[c]=(e(d,c)??"").split('"').join("''").trim()}),t.push(u)}),t}function Fa(i,a="csv",e="export"){if("csv"===a){const t=(o,s)=>null===s?"":s,r=Object.keys(i[0]),d=i.map(o=>r.map(s=>JSON.stringify(o[s],t)).join(","));d.unshift(r.join(",").split(" ").join("_").split('"').join("''"));const u=d.join("\r\n"),c=new Blob([u],{type:"text/csv"});(0,JS.saveAs)(c,`${e}.${a}`)}}function _v(i,a){return i.name.toLowerCase()>a.name.toLowerCase()?1:i.name.toLowerCase()===a.name.toLowerCase()?0:-1}const $b="GUI_CONFIG.PREF_PAGE_SIZE.";let Mv=(()=>{class i{getString(e){return localStorage.getItem(e)}getNumber(e){return parseInt(localStorage.getItem(e),10)}setNumber(e,t){localStorage.setItem(e,t.toString())}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Zb=(()=>{class i{constructor(e){this.guiConfigService=e,this.defaultTableSizes=new Map,this.defaultTableSizes.set(y,25),this.defaultTableSizes.set(vv,25)}getTablePageSize(e){const t=this.guiConfigService.getNumber($b+e);if(!isNaN(t))return t;const r=this.guiConfigService.getNumber("GUI_CONFIG.PREF_PAGE_SIZE");return isNaN(r)?this.defaultTableSizes.get(e)??10:r}setTablePageSize(e,t){this.guiConfigService.setNumber($b+e,t)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Mv))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const vv="8",y="25";function p2(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"button",7),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.exportAllData.emit("csv"))}),n._uU(1),n.ALo(2,"translate"),n.qZA()}2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.ALL_DATA")," "))}let f2=(()=>{class i{constructor(){this.exportDisplayedData=new n.vpe,this.exportAllData=new n.vpe}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-table-options"]],inputs:{allowExportAll:"allowExportAll"},outputs:{exportDisplayedData:"exportDisplayedData",exportAllData:"exportAllData"},decls:19,vars:10,consts:[[1,"position-right"],["mat-icon-button","",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"matMenuTriggerFor"],["exportOptions","matMenu"],["xPosition","before"],["selectData","matMenu"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"click",4,"ngIf"]],template:function(e,t){if(1&e&&(n.TgZ(0,"div",0)(1,"button",1)(2,"mat-icon"),n._uU(3,"more_vert"),n.qZA()(),n.TgZ(4,"mat-menu",null,2)(6,"button",3),n._uU(7),n.ALo(8,"translate"),n.qZA()(),n.TgZ(9,"mat-menu",null,4)(11,"button",3),n._uU(12,"Csv"),n.qZA()(),n.TgZ(13,"mat-menu",5,6)(15,"button",7),n.NdJ("click",function(){return t.exportDisplayedData.emit("csv")}),n._uU(16),n.ALo(17,"translate"),n.qZA(),n.YNc(18,p2,3,3,"button",8),n.qZA()()),2&e){const r=n.MAs(5),d=n.MAs(10),u=n.MAs(14);n.xp6(1),n.Q6J("matMenuTriggerFor",r),n.xp6(5),n.Q6J("matMenuTriggerFor",d),n.xp6(1),n.hij(" ",n.lcZ(8,6,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.EXPORT_TO_FILE")," "),n.xp6(4),n.Q6J("matMenuTriggerFor",u),n.xp6(5),n.hij(" ",n.lcZ(17,8,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.DISPLAYED_DATA")," "),n.xp6(2),n.Q6J("ngIf",t.allowExportAll)}},dependencies:[Yp,bd,Db,zn,Ht,T.O5,Ke]}),i})();const m2=["topNav"];function g2(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"perun-web-apps-table-options",7),n.NdJ("exportDisplayedData",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.exportDisplayedData.emit(r))})("exportAllData",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.exportAllData.emit(r))}),n.qZA()}if(2&i){const e=n.oxw();n.Q6J("allowExportAll",e.allowExportAll)}}function _2(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"perun-web-apps-table-options",7),n.NdJ("exportDisplayedData",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.exportDisplayedData.emit(r))})("exportAllData",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.exportAllData.emit(r))}),n.qZA()}if(2&i){const e=n.oxw();n.Q6J("allowExportAll",e.allowExportAll)}}const b2=["*"];let os=(()=>{class i{constructor(e){this.tableConfigService=e,this.hideExport=!1,this.pageSizeOptions=$l,this.dataLength=0,this.allowExportAll=!0,this.exportDisplayedData=new n.vpe,this.exportAllData=new n.vpe,this.pageSize=5}set matPaginator(e){this.paginator=e}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),null===this.pageSizeOptions&&(this.pageSize=5),this.paginator._changePageSize(this.pageSize)}pageChangedTop(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}pageChangedBottom(e){this.paginator.pageSize=e.pageSize,this.paginator.pageIndex=e.pageIndex,this.paginator.page.emit(e),this.pageSize=e.pageSize,this.tableId&&this.tableConfigService.setTablePageSize(this.tableId,e.pageSize),this.topNav.nativeElement.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Zb))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-table-wrapper"]],viewQuery:function(e,t){if(1&e&&(n.Gf(m2,5),n.Gf(qm,7)),2&e){let r;n.iGM(r=n.CRH())&&(t.topNav=r.first),n.iGM(r=n.CRH())&&(t.matPaginator=r.first)}},inputs:{hideExport:"hideExport",pageSizeOptions:"pageSizeOptions",dataLength:"dataLength",tableId:"tableId",allowExportAll:"allowExportAll"},outputs:{exportDisplayedData:"exportDisplayedData",exportAllData:"exportAllData"},ngContentSelectors:b2,decls:10,vars:9,consts:[[1,"card-body","pt-0"],[1,"row","justify-content-end","align-items-center"],["topNav",""],[3,"length","pageSizeOptions","pageSize","page"],[3,"allowExportAll","exportDisplayedData","exportAllData",4,"ngIf"],[1,"overflow-auto","border-top"],[3,"length","pageIndex","pageSizeOptions","pageSize","page"],[3,"allowExportAll","exportDisplayedData","exportAllData"]],template:function(e,t){1&e&&(n.F$t(),n.TgZ(0,"div",0)(1,"div",1,2)(3,"mat-paginator",3),n.NdJ("page",function(d){return t.pageChangedTop(d)}),n.qZA(),n.YNc(4,g2,1,1,"perun-web-apps-table-options",4),n.qZA(),n.TgZ(5,"div",5),n.Hsn(6),n.qZA(),n.TgZ(7,"div",1)(8,"mat-paginator",6),n.NdJ("page",function(d){return t.pageChangedBottom(d)}),n.qZA(),n.YNc(9,_2,1,1,"perun-web-apps-table-options",4),n.qZA()()),2&e&&(n.xp6(3),n.Q6J("length",t.dataLength)("pageSizeOptions",t.pageSizeOptions)("pageSize",t.pageSize),n.xp6(1),n.Q6J("ngIf",!t.hideExport),n.xp6(4),n.Q6J("length",t.paginator.length)("pageIndex",t.paginator.pageIndex)("pageSizeOptions",t.paginator.pageSizeOptions)("pageSize",t.paginator.pageSize),n.xp6(1),n.Q6J("ngIf",!t.hideExport))},dependencies:[qm,T.O5,f2]}),i})();class hE{static passwordMatchValidator(a){const e=a.get("passwordCtrl").value,t=a.get("passwordAgainCtrl").value;return a.get("passwordAgainCtrl").setErrors(e!==t?{noPasswordMatch:!0}:null),null}static patternValidator(a){return e=>{if(!e.value)return null;let t=0;for(const r of a)t+=r.test(e.value)?1:0;return t>=3?null:{isWeak:!0}}}}let Ut=(()=>{class i{constructor(){this.branding=""}setInstanceConfig(e){this.instanceConfig=e}setDefaultConfig(e){this.defaultConfig=e}getAppsConfig(){return this.appsConfig}setAppsConfig(e){this.appsConfig=e}setPerunPrincipal(e){this.principal=e}getPerunPrincipal(){return this.principal}getInitialPageId(){return this.initialPageId}setInitialPageId(e){this.initialPageId=e}getLoginAttributeNames(){return this.getProperty("login_namespace_attributes")}getMemberProfileAttributeNames(){return this.getProperty("member_profile_attributes_friendly_names")}setBanding(e){this.branding=e}getProperty(e){if(!this.instanceConfig||!this.defaultConfig)return null;const t=[this.instanceConfig?.brandings?.[this.branding],this.instanceConfig],r=this.defaultConfig[e];let d=null;for(const u of t)u&&null==d&&(d=u[e]);return null===d?r:this.addMissingValuesToProperty(d,r)}addMissingValuesToProperty(e,t){if("object"!=typeof e||Array.isArray(e)||null==e){if(null!=e)return e}else for(const r of Object.keys(t))t[r]=this.addMissingValuesToProperty(e[r],t[r]);return t}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();var Ql=E(1214);let Go=(()=>{class i{constructor(e,t,r,d,u){this.injector=e,this.store=t,this.dialog=r,this.route=d,this.oauthService=u,setTimeout(()=>{this.router=this.injector.get(Dn),this.startIdpFilterKeeper()}),this.route.queryParams.subscribe(c=>{c.idpFilter&&(this.filterShortname=String(c.idpFilter))})}loadOidcConfigData(){this.oauthService.configure(this.getClientConfig())}logout(){sessionStorage.getItem("baPrincipal")?(sessionStorage.removeItem("baPrincipal"),sessionStorage.removeItem("basicUsername"),sessionStorage.removeItem("basicPassword"),sessionStorage.setItem("baLogout","true"),this.router.navigate(["/service-access"],{queryParamsHandling:"preserve"})):this.oauthService.logOut()}isLoggedIn(){return this.oauthService.hasValidAccessToken()}getAuthorizationHeaderValue(){return this.oauthService.hasValidAccessToken()?"Bearer "+this.oauthService.getAccessToken():""}startAuthentication(){this.oauthService.loadDiscoveryDocumentAndLogin()}getIdpFilter(){return this.filterShortname}getClientConfig(){const e=this.setIdpFilter(),d=.5+.25*Math.random(),u=e?{acr_values:e}:{},c=this.store.getProperty("oidc_client");if(c.oauth_scopes.split(" ").includes("offline_access")&&c.oauth_offline_access_consent_prompt&&(u.prompt="consent"),(sessionStorage.getItem("mfa_route")||sessionStorage.getItem("mfaProcessed"))&&(u.acr_values="https://refeds.org/profile/mfa"),sessionStorage.getItem("mfa_route")&&(u.prompt?u.prompt+=" login":u.prompt="login",u.max_age="0"),"Linker"===this.store.getProperty("application")){u.prompt?u.prompt+=" login":u.prompt="login";const o=function Av(i,a){const e=a.split("&");for(const t of e){const[r,d]=t.split("=");if(r.includes(i))return d}return""}("idphint",location.search.substring(1));o&&(u.idphint=o)}return{requestAccessToken:!0,issuer:c.oauth_authority,clientId:c.oauth_client_id,redirectUri:c.oauth_redirect_uri,postLogoutRedirectUri:c.oauth_post_logout_redirect_uri,responseType:c.oauth_response_type,scope:c.oauth_scopes,clockSkewInSec:1,timeoutFactor:d,userinfoEndpoint:this.store.getProperty("oidc_client").user_info_endpoint_url,customQueryParams:u}}setIdpFilter(){const e=location.search.length?location.search.substring(1).split("&"):[];this.filterShortname=null;const t=this.store.getProperty("oidc_client").filters;if(!t)return null;let r=null;return e.forEach(d=>{const u=d.split("=");"idpFilter"===u[0]&&t[u[1]]&&(this.filterShortname=u[1],r=t[u[1]])}),t.default&&!r?(this.filterShortname="default",t.default):r}startIdpFilterKeeper(){this.router.events.pipe((0,bt.h)(e=>e instanceof Rr)).subscribe(()=>{const e={idpFilter:this.getIdpFilter()};this.router.navigate([],{relativeTo:this.route,queryParams:"default"===e.idpFilter?{}:e,queryParamsHandling:"merge",replaceUrl:!0})})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(n.zs3),n.LFG(Ut),n.LFG(on),n.LFG(mi),n.LFG(Ql.Ct))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),A2=(()=>{class i{constructor(e){this.dialogRef=e}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ln))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-user-dont-exist-dialog"]],decls:3,vars:3,consts:[["mat-dialog-content","",1,"mt-2","mb-2"]],template:function(e,t){1&e&&(n.TgZ(0,"h2",0),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&e&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.USER_DONT_EXIST.TITLE"),"\n"))},dependencies:[ii,Ke]}),i})();var y2=E(930);function pE(i,a){const e="object"==typeof a;return new Promise((t,r)=>{const d=new y2.Hp({next:u=>{t(u),d.unsubscribe()},error:r,complete:()=>{e?t(a.defaultValue):r(new wa.K)}});i.subscribe(d)})}function w2(i,a){1&i&&(n.TgZ(0,"mat-icon",2),n._uU(1," info "),n.qZA())}function M2(i,a){1&i&&(n.TgZ(0,"mat-icon",2),n._uU(1," warning "),n.qZA())}function C2(i,a){1&i&&(n.TgZ(0,"mat-icon",2),n._uU(1," dangerous "),n.qZA())}function v2(i,a){1&i&&(n.TgZ(0,"mat-icon",2),n._uU(1," check_circle "),n.qZA())}const T2=["*"];let yi=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-alert"]],inputs:{alert_type:"alert_type"},ngContentSelectors:T2,decls:6,vars:12,consts:[[1,"perun-alert","d-flex","align-items-flex-start"],["class","perun-alert-icon",4,"ngIf"],[1,"perun-alert-icon"]],template:function(e,t){1&e&&(n.F$t(),n.TgZ(0,"div",0),n.YNc(1,w2,2,0,"mat-icon",1),n.YNc(2,M2,2,0,"mat-icon",1),n.YNc(3,C2,2,0,"mat-icon",1),n.YNc(4,v2,2,0,"mat-icon",1),n.Hsn(5),n.qZA()),2&e&&(n.ekj("warn-alert","warn"===t.alert_type)("error-alert","error"===t.alert_type)("success-alert","success"===t.alert_type)("info-alert","info"===t.alert_type),n.xp6(1),n.Q6J("ngIf","info"===t.alert_type),n.xp6(1),n.Q6J("ngIf","warn"===t.alert_type),n.xp6(1),n.Q6J("ngIf","error"===t.alert_type),n.xp6(1),n.Q6J("ngIf","success"===t.alert_type))},dependencies:[zn,T.O5],styles:[".perun-alert[_ngcontent-%COMP%]{position:relative;padding:.75rem 1.25rem;margin-top:1rem;margin-bottom:1rem}.perun-alert.info-alert[_ngcontent-%COMP%]{font-style:italic;color:gray;text-align:left;border:1px #b3b3b3 solid;border-radius:10px}.perun-alert.warn-alert[_ngcontent-%COMP%]{font-weight:700;text-align:left;border:1px #ececec solid;border-radius:10px;background-color:#ececec}.perun-alert-icon[_ngcontent-%COMP%]{padding-right:2rem}.perun-alert.error-alert[_ngcontent-%COMP%]{text-align:left;border:1px #fedcda solid;border-radius:10px;background-color:#fedcda}.perun-alert.success-alert[_ngcontent-%COMP%]{text-align:left;border:1px #d7ffd7 solid;border-radius:10px;background-color:#d7ffd7}"]}),i})(),x2=(()=>{class i{constructor(e,t){this.dialogRef=e,this.data=t}cancel(){this.dialogRef.close(!1)}submit(){this.dialogRef.close(!0)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ln),n.Y36(ni))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-mfa-required-dialog"]],decls:15,vars:17,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["alert_type","warn"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"hidden","click"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.qZA(),n.TgZ(3,"div",1)(4,"perun-web-apps-alert",2),n._uU(5),n.ALo(6,"translate"),n.ALo(7,"translate"),n.qZA()(),n.TgZ(8,"div",3)(9,"button",4),n.NdJ("click",function(){return t.cancel()}),n._uU(10),n.ALo(11,"translate"),n.qZA(),n.TgZ(12,"button",5),n.NdJ("click",function(){return t.submit()}),n._uU(13),n.ALo(14,"translate"),n.qZA()()),2&e&&(n.xp6(1),n.Oqu(n.lcZ(2,7,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.TITLE")),n.xp6(4),n.hij(" ",t.data.mfaRoleException?n.lcZ(6,9,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.INFO_ROLE"):n.lcZ(7,11,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.INFO")," "),n.xp6(4),n.Q6J("hidden",t.data.mfaRoleException),n.xp6(1),n.hij(" ",n.lcZ(11,13,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.CANCEL")," "),n.xp6(2),n.Tol(t.data.mfaRoleException?"ml-auto":"ml-2"),n.xp6(1),n.hij(" ",n.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.STEP_UP")," "))},dependencies:[Xn,ii,Un,Ht,yi,Ke]}),i})(),S2=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-focus-on-mfa-window"]],decls:9,vars:6,consts:[[1,"text-center","custom-dialog"],[1,"align-text-bottom"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"div")(2,"mat-icon",1),n._uU(3," info "),n.qZA(),n._uU(4),n.ALo(5,"translate"),n.qZA(),n.TgZ(6,"div"),n._uU(7),n.ALo(8,"translate"),n.qZA()()),2&e&&(n.xp6(4),n.hij(" ",n.lcZ(5,2,"SHARED_LIB.PERUN.COMPONENTS.FOCUS_ON_MFA_DIALOG.MODAL")," "),n.xp6(3),n.hij(" ",n.lcZ(8,4,"SHARED_LIB.PERUN.COMPONENTS.FOCUS_ON_MFA_DIALOG.MODAL_WARNING")," "))},dependencies:[zn,Ke],styles:[".custom-dialog[_ngcontent-%COMP%]{background-color:#000;color:#fffffff2;font-size:1.2rem}"]}),i})(),E2=(()=>{class i{constructor(e,t){this.data=e,this.dialogRef=t}cancel(){this.dialogRef.close(!1)}submit(){window.open(this.data.tokensUrl,"_blank"),this.dialogRef.close(!0)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(ni),n.Y36(Ln))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-no-mfa-tokens-dialog"]],decls:14,vars:12,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["alert_type","warn"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.qZA(),n.TgZ(3,"div",1)(4,"perun-web-apps-alert",2),n._uU(5),n.ALo(6,"translate"),n.qZA()(),n.TgZ(7,"div",3)(8,"button",4),n.NdJ("click",function(){return t.cancel()}),n._uU(9),n.ALo(10,"translate"),n.qZA(),n.TgZ(11,"button",5),n.NdJ("click",function(){return t.submit()}),n._uU(12),n.ALo(13,"translate"),n.qZA()()),2&e&&(n.xp6(1),n.Oqu(n.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.TITLE")),n.xp6(4),n.hij(" ",n.lcZ(6,6,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.INFO")," "),n.xp6(4),n.hij(" ",n.lcZ(10,8,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.CANCEL")," "),n.xp6(3),n.hij(" ",n.lcZ(13,10,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.MANAGE_TOKENS")," "))},dependencies:[Xn,ii,Un,Ht,yi,Ke]}),i})(),Tv=(()=>{class i{constructor(e,t,r,d){this.dialog=e,this.oauthService=t,this.authService=r,this.store=d}openMfaWindow(e){let t=null,r=null;const d=ln();d.width="450px",d.data={mfaRoleException:e};const u=this.dialog.open(x2,d);let c=!1;if(u.afterClosed().subscribe(o=>{if(o){if(sessionStorage.setItem("mfaRequired","true"),sessionStorage.setItem("oldAccessToken",this.oauthService.getAccessToken()),sessionStorage.setItem("oldRefreshToken",this.oauthService.getRefreshToken()),t=this.setupMfaWindow(),t){const s=ln();s.width="450px",s.panelClass="noBorderDialog",r=this.dialog.open(S2,s)}}else c=!0}),localStorage.getItem("noMfaTokenDialog")){localStorage.removeItem("noMfaTokenDialog");const o=ln();o.width="450px",o.data={tokensUrl:this.store.getProperty("mfa").url_en},this.dialog.open(E2,o)}return new yn.y(o=>{const s=setInterval(()=>t?.closed?(clearInterval(s),r.close(),sessionStorage.removeItem("mfaRequired"),sessionStorage.removeItem("mfaProcessed"),null===this.oauthService.getAccessToken()&&(localStorage.setItem("access_token",sessionStorage.getItem("oldAccessToken")),localStorage.setItem("refresh_token",sessionStorage.getItem("oldRefreshToken"))),o.next(!0)):c?(clearInterval(s),o.next(!1)):void 0,1e3)})}catchNoMfaTokenError(e){"unmet_authentication_requirements"===e&&(localStorage.setItem("noMfaTokenDialog","true"),window.close())}mfaWindowForceLogout(){if(sessionStorage.getItem("mfaRequired")&&!sessionStorage.getItem("mfaProcessed"))return sessionStorage.setItem("mfaProcessed","true"),this.oauthService.logOut(!0),this.authService.loadOidcConfigData(),void this.oauthService.loadDiscoveryDocumentAndLogin();sessionStorage.removeItem("mfaRequired")}closeMfaWindow(){sessionStorage.getItem("mfaProcessed")&&!sessionStorage.getItem("mfaRequired")&&(sessionStorage.removeItem("mfaProcessed"),window.close())}setupMfaWindow(){const e=location.pathname+location.search,d=window.top;return window.open(e,"_blank",`width=600,height=600,top=${d.outerHeight/2+d.screenY-300}, left=${d.outerWidth/2+d.screenX-300}`)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(on),n.LFG(Ql.Ct),n.LFG(Go),n.LFG(Ut))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),oA=(()=>{class i{constructor(e,t,r,d,u,c,o,s){this.authService=e,this.oauthService=t,this.storeService=r,this.authResolver=d,this.authzService=u,this.dialog=c,this.router=o,this.mfaHandlerService=s,this.loginScreenShown=!1,this.serviceAccess=!1,this.serviceAccessLoginScreen=!1}isLoginScreenShown(){return this.loginScreenShown}isServiceAccess(){return this.serviceAccess}isServiceAccessLoginScreenShown(){return this.serviceAccessLoginScreen}verifyAuth(){if(this.mfaHandlerService.mfaWindowForceLogout(),sessionStorage.getItem("baPrincipal"))return this.serviceAccess=!0,sessionStorage.getItem("auth:redirect")?this.redirectToOriginDestination():Promise.resolve(!0);if("/service-access"!==location.pathname&&!this.storeService.getProperty("auto_service_access_redirect")){this.authService.loadOidcConfigData();const e=location.pathname,t=location.search.substring(1);return"/api-callback"===e?this.oauthService.loadDiscoveryDocumentAndTryLogin().then(()=>this.startRefreshToken()).then(()=>this.redirectToOriginDestination()):this.oauthService.loadDiscoveryDocument().then(()=>this.tryRefreshToken()).then(()=>"Linker"===this.storeService.getProperty("application")?(sessionStorage.setItem("auth:queryParams",t),localStorage.removeItem("access_token"),!1):this.oauthService.hasValidAccessToken()?this.startRefreshToken():this.isPotentiallyValidPath(e)?(sessionStorage.setItem("auth:redirect",e),sessionStorage.setItem("auth:queryParams",t),!1):Promise.reject("Invalid path"))}}loadPrincipal(){return pE(this.authzService.getPerunPrincipal()).then(e=>{if(null===e.user){const t=ln();this.dialog.open(A2,t)}else this.storeService.setPerunPrincipal(e),this.authResolver.init(e)})}simpleLoadPrincipal(){return pE(this.authzService.getPerunPrincipal()).then(e=>{this.storeService.setPerunPrincipal(e)})}checkRouteGuard(){const e=localStorage.getItem("routeAuthGuard");e&&(localStorage.removeItem("routeAuthGuard"),this.router.navigate([e],{queryParamsHandling:"merge"}))}handleAuthStart(){if(this.storeService.getProperty("auto_service_access_redirect")&&"/service-access"!==location.pathname){this.serviceAccess=!0,this.serviceAccessLoginScreen=!0;const e=location.pathname,t=location.search.substring(1);sessionStorage.setItem("auth:redirect",e),sessionStorage.setItem("auth:queryParams",t);const r={};return t.split("&").forEach(d=>{const u=d.split("=");r[u[0]]=u[1]}),this.router.navigate(["service-access"],{queryParams:r,queryParamsHandling:"merge"}).then()}if("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal")||this.storeService.getProperty("auto_service_access_redirect")){this.serviceAccess=!0,this.serviceAccessLoginScreen=!0;const e=location.search.substring(1);return sessionStorage.setItem("auth:queryParams",e),Promise.resolve()}return this.storeService.getProperty("auto_auth_redirect")?(sessionStorage.getItem("mfaProcessed")||localStorage.setItem("routeAuthGuard",window.location.pathname),this.startAuth().then(()=>new Promise(()=>{}))):(this.setLoginScreen(!0),localStorage.setItem("routeAuthGuard",window.location.pathname),void this.router.navigate(["login"],{queryParamsHandling:"merge"}))}setLoginScreen(e){this.loginScreenShown=e}isPotentiallyValidPath(e){const t=["/home","/organizations","/facilities","/myProfile","/admin","/login","/service-access","/profile"];if("/"===e)return!0;for(const r of t)if(e.startsWith(r))return!0;return!1}startRefreshToken(){return this.oauthService.hasValidAccessToken()?(this.oauthService.events.pipe((0,bt.h)(e=>"token_expires"===e.type&&"access_token"===e.info)).subscribe(()=>{this.oauthService.refreshToken()}),Promise.resolve(!0)):Promise.resolve(!1)}tryRefreshToken(){return localStorage.getItem("refresh_token")&&!this.oauthService.hasValidAccessToken()?this.oauthService.refreshToken().then(()=>Promise.resolve()).catch(()=>Promise.resolve()):Promise.resolve()}redirectToOriginDestination(){const e=sessionStorage.getItem("mfa_route");if(e)return this.router.navigate([e],{replaceUrl:!0,queryParamsHandling:"merge"});let t=sessionStorage.getItem("auth:redirect");(!t||"/login"===t)&&(t="/"),sessionStorage.removeItem("auth:redirect");const r=sessionStorage.getItem("auth:queryParams");let d=[];r&&(d=r.split("&"));const u={};return d.forEach(c=>{const o=c.split("=");u[o[0]]=o[1]}),sessionStorage.removeItem("auth:queryParams"),this.router.navigate([t],{queryParams:u,replaceUrl:!0,queryParamsHandling:"merge"})}startAuth(){return this.authService.startAuthentication(),Promise.resolve()}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Go),n.LFG(Ql.Ct),n.LFG(Ut),n.LFG(Cn),n.LFG(As),n.LFG(on),n.LFG(Dn),n.LFG(Tv))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),fE=(()=>{class i{constructor(e,t){this.matIconRegistry=e,this.domSanitizer=t,this.customIcons=[{url:"assets/img/PerunWebImages/refresh_tab-black.svg",name:"perun-refresh-enabled"},{url:"assets/img/PerunWebImages/refresh_tab-grey.svg",name:"perun-refresh-disabled"},{url:"assets/img/PerunWebImages/manage_facility_white.svg",name:"perun-manage-facility"},{url:"assets/img/PerunWebImages/vo-white.svg",name:"perun-vo"},{url:"assets/img/PerunWebImages/user-white.svg",name:"perun-user"},{url:"assets/img/PerunWebImages/perun_admin-white.svg",name:"perun-perun-admin"},{url:"assets/img/PerunWebImages/group-white.svg",name:"perun-group"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/preview-white.svg",name:"perun-preview"},{url:"assets/img/PerunWebImages/module_dependencies.svg",name:"perun-module-dependencies"},{url:"assets/img/PerunWebImages/user_destination_relationship.svg",name:"perun-user-destination-relationship"},{url:"assets/img/PerunWebImages/settings2-white.svg",name:"perun-settings2"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/applications-white.svg",name:"perun-applications"},{url:"assets/img/PerunWebImages/manager-white.svg",name:"perun-manager"},{url:"assets/img/PerunWebImages/key-white.svg",name:"perun-key"},{url:"assets/img/PerunWebImages/application_form-white.svg",name:"perun-application-form"},{url:"assets/img/PerunWebImages/notification-white.svg",name:"perun-notification"},{url:"assets/img/PerunWebImages/invite_member-white.svg",name:"perun-invite-member"},{url:"assets/img/PerunWebImages/service_identity-white.svg",name:"perun-service-identity"},{url:"assets/img/PerunWebImages/service_identity-black.svg",name:"perun-service-identity-black"},{url:"assets/img/PerunWebImages/create1-white.svg",name:"perun-create1"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource"},{url:"assets/img/PerunWebImages/resource_tags-white.svg",name:"perun-resource-tags"},{url:"assets/img/PerunWebImages/resources_state-white.svg",name:"perun-resources-state"},{url:"assets/img/PerunWebImages/external_sources-white.svg",name:"perun-external-sources"},{url:"assets/img/PerunWebImages/vo-dark.svg",name:"perun-vo-black"},{url:"assets/img/PerunWebImages/group-dark.svg",name:"perun-group-black"},{url:"assets/img/PerunWebImages/facility-dark.svg",name:"perun-facility-black"},{url:"assets/img/publications.svg",name:"perun-publications-white"},{url:"assets/img/PerunWebImages/owner-grey.svg",name:"perun-owner-grey"},{url:"assets/img/PerunWebImages/settings1-blue.svg",name:"perun-settings1"},{url:"assets/img/PerunWebImages/service_destination-blue.svg",name:"perun-service_destination"},{url:"assets/img/PerunWebImages/host-blue.svg",name:"perun-hosts"},{url:"assets/img/PerunWebImages/home.svg",name:"perun-home-white"},{url:"assets/img/PerunWebImages/security_admin-blue.svg",name:"perun-security-teams"},{url:"assets/img/PerunWebImages/black_list-white.svg",name:"perun-black-list"},{url:"assets/img/PerunWebImages/facility-white.svg",name:"perun-facility-white"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource-white"},{url:"assets/img/PerunWebImages/service-white.svg",name:"perun-service"},{url:"assets/img/PerunWebImages/resource-black.svg",name:"perun-resource-black"},{url:"assets/img/PerunWebImages/service_status-grey.svg",name:"perun-service-status"},{url:"assets/img/PerunWebImages/user-dark.svg",name:"perun-user-dark"},{url:"assets/img/PerunWebImages/statistics-blue.svg",name:"perun-statistics"},{url:"assets/img/PerunWebImages/audit_log-blue.svg",name:"perun-audit-log"},{url:"assets/img/PerunWebImages/contact-grey.svg",name:"perun-identity"},{url:"assets/img/PerunWebImages/roles.svg",name:"perun-roles"},{url:"assets/img/PerunWebImages/consent-white.svg",name:"perun-consent-hubs"},{url:"assets/img/PerunWebImages/hierarchical_vo-black.svg",name:"perun-hierarchical-vo"},{url:"assets/img/PerunWebImages/searcher-blue.svg",name:"perun-searcher"},{url:"assets/img/PerunWebImages/propagation-blue.svg",name:"perun-hierarchical-inclusion"},{url:"assets/img/PerunWebImages/verify-grey.svg",name:"perun-verify-grey"},{url:"assets/img/PerunWebImages/info-grey.svg",name:"perun-info-grey"},{url:"assets/img/PerunWebImages/logins.svg",name:"perun-logins"},{url:"assets/img/PerunWebImages/certificates.svg",name:"perun-certificates"},{url:"assets/img/PerunWebImages/authentication.svg",name:"perun-authentication"},{url:"assets/img/PerunWebImages/ban.svg",name:"perun-ban"}]}registerPerunRefreshIcon(){this.customIcons.forEach(e=>{this.matIconRegistry.addSvgIcon(e.name,this.domSanitizer.bypassSecurityTrustResourceUrl(e.url))})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Yo),n.LFG(ei))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})(),mE=(()=>{class i{constructor(e){this.dialogRef=e}close(){this.dialogRef.close(!0)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ln))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-session-expiration-dialog"]],decls:11,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"ml-auto"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.qZA(),n.TgZ(3,"div",1),n._uU(4),n.ALo(5,"translate"),n.qZA(),n.TgZ(6,"div",2)(7,"div",3)(8,"button",4),n.NdJ("click",function(){return t.close()}),n._uU(9),n.ALo(10,"translate"),n.qZA()()()),2&e&&(n.xp6(1),n.Oqu(n.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.TITLE")),n.xp6(3),n.hij(" ",n.lcZ(5,5,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.DESCRIPTION"),"\n"),n.xp6(5),n.hij(" ",n.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.SIGN_IN")," "))},dependencies:[Xn,ii,Un,Ht,Ke]}),i})(),cg=(()=>{class i{constructor(){this.handleNextError=!0}dontHandleErrorForNext(){this.handleNextError=!1}shouldHandleError(){const e=this.handleNextError;return this.handleNextError=!0,e}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Mr=(()=>{class i{constructor(e){this.translate=e,this.addNotification=new n.vpe,this.defaultErrorDelayMs=5e3,this.defaultSuccessDelayMs=3e3}getDefaultActionMessage(){return void 0===this.defaultAction?this.defaultAction=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_ACTION"):this.defaultAction}getDefaultRpcMessage(){return void 0===this.defaultRpcMessage?this.defaultRpcMessage=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_RPC_ERROR_MESSAGE"):this.defaultRpcMessage}showRPCError(e,t=this.getDefaultRpcMessage()){this.showError("PrivilegeException"===e.name?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.PRIVILEGE_EXCEPTION"):void 0===e.name?t:t+"\n"+e.name,e,e.message)}showRouteError(){const e=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_ERROR"),t=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_DESC");this.showError(e,null,t)}showError(e,t,r,d,u){this.addNotification.emit({type:"error",error:t,description:r,title:e,actionText:void 0===d&&void 0!==r?this.getDefaultActionMessage():d,delay:this.defaultErrorDelayMs,icon:"error_outline",action:u,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}showSuccess(e,t,r,d){this.addNotification.emit({type:"success",description:t,title:e,actionText:void 0===r&&void 0!==t?this.getDefaultActionMessage():r,delay:this.defaultSuccessDelayMs,icon:"done",action:d,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(tn))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),gE=(()=>{class i{constructor(e,t,r,d,u,c,o,s){this.authService=e,this.apiRequestConfiguration=t,this.notificator=r,this.store=d,this.dialog=u,this.initAuthService=c,this.mfaHandlerService=o,this.oauthService=s}intercept(e,t){const r=this.store.getProperty("api_url");if(e.url.includes("i18n")&&(e=e.clone({setHeaders:{"Cache-control":"no-cache, must-revalidate"}})),void 0!==r&&this.isCallToPerunApi(e.url)&&!this.isLoggedIn()&&!this.dialogRefSessionExpiration){const d=ln();d.width="450px",null==this.dialogRefSessionExpiration&&(this.dialogRefSessionExpiration=this.dialog.open(mE,d),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{bo(()=>this.dialogRefSessionExpiration=void 0),sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.oauthService.logOut(!0),this.reauthenticate()}))}return this.initAuthService.isServiceAccess()?e=e.clone({setHeaders:{Authorization:"Basic "+btoa(sessionStorage.getItem("basicUsername")+":"+sessionStorage.getItem("basicPassword"))}}):this.isCallToPerunApi(e.url)&&(e=e.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}})),this.handleRequest(e,t)}isLoggedIn(){return(this.authService.isLoggedIn()||this.initAuthService.isServiceAccess())&&!this.initAuthService.isServiceAccessLoginScreenShown()}reauthenticate(){sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.initAuthService.handleAuthStart()}handleRequest(e,t){const r=this.apiRequestConfiguration.shouldHandleError(),d="POST"===e.method&&this.isNotConsolidatorOrLinker()&&this.isCallToPerunApi(e.url);return t.handle(e).pipe((0,Wt.b)(u=>{u instanceof C.Zn&&d&&this.initAuthService.loadPrincipal()}),(0,Fn.K)(u=>{const c=u.error;if("MfaPrivilegeException"===c.type||"MfaRolePrivilegeException"===c.type)return this.mfaHandlerService.openMfaWindow("MfaRolePrivilegeException"===c.type).pipe((0,An.w)(o=>o?("MfaRolePrivilegeException"===c.type&&window.location.reload(),this.handleRequest(this.replaceAuthenticationToken(e),t)):(0,Ui._)(()=>c)));{this.handleInvalidAccessTokenError(u);const o=this.formatErrors(u,e);return void 0===o?(0,Ui._)(()=>u):(r&&this.notificator.showRPCError(o),(0,Ui._)(()=>o))}}))}replaceAuthenticationToken(e){return e.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}})}isCallToPerunApi(e){return e.startsWith(this.store.getProperty("api_url"))}formatErrors(e,t){let r;console.error(e);const d=e.error;if(d.errorId&&(r=d),void 0!==r)return r.urlWithParams=t.urlWithParams,r.call=t.url,r.payload=t.body,r}isNotConsolidatorOrLinker(){const e=this.store.getProperty("application");return!("Linker"===e||"Consolidator"===e)}handleInvalidAccessTokenError(e){if(401===e.status){if(!this.isLoggedIn()||"invalid_token"===e.error.error||null!=this.dialogRefSessionExpiration)return;const t=ln();this.dialogRefSessionExpiration=this.dialog.open(mE,t),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{this.oauthService.logOut(!0),this.reauthenticate()})}}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Go),n.LFG(cg),n.LFG(Mr),n.LFG(Ut),n.LFG(on),n.LFG(oA),n.LFG(Tv),n.LFG(Ql.Ct))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})(),lA=(()=>{class i{constructor(){this.newNotificationsCount=0,this.notificationData=[]}storeNotification(e){this.newNotificationsCount++,this.notificationData.push(e)}getNotifications(){return this.notificationData.reverse()}clearNotifications(){this.notificationData=[]}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),D2=(()=>{class i{constructor(e,t,r,d){this.http=e,this.notificator=t,this.authService=r,this.storeService=d}getApiUrl(){return void 0===this.api_url&&(this.api_url=this.storeService.getProperty("api_url")),this.api_url+"/"}getHeaders(){let e=new C.WM;return e=e.set("Authorization",this.authService.getAuthorizationHeaderValue()),e}get(e,t=!0){const r=`${this.getApiUrl()}${e}`;return this.http.get(r,{headers:this.getHeaders()}).pipe((0,Fn.K)(d=>this.formatErrors(d,r,null,t)))}put(e,t={},r=!0){const d=`${this.getApiUrl()}${e}`,u=JSON.stringify(t);return this.http.put(d,u,{headers:this.getHeaders()}).pipe((0,Fn.K)(c=>this.formatErrors(c,d,u,r)))}post(e,t={},r=!0){const d=`${this.getApiUrl()}${e}`,u=JSON.stringify(t);let c=this.getHeaders();return c=c.set("Content-Type","application/json; charset=utf-8"),this.http.post(d,u,{headers:c}).pipe((0,Fn.K)(o=>this.formatErrors(o,d,u,r)))}delete(e,t=!0){const r=`${this.getApiUrl()}${e}`;return this.http.delete(r,{headers:this.getHeaders()}).pipe((0,Fn.K)(d=>this.formatErrors(d,r,null,t)))}formatErrors(e,t,r,d){const u=e.error;return u.call=t,u.payload=r,d&&this.notificator.showRPCError(e.error),(0,Ui._)(u)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(C.eN),n.LFG(Mr),n.LFG(Go),n.LFG(Ut))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),cA=(()=>{class i{isAllSelected(e,t,r=(()=>!0)){const d=t.paginator.pageSize??0,u=t.paginator.pageIndex??0,c=t.paginator.hasNextPage(),o=t.data.length===t.filteredData.length;this.numCanBeSelected=0,this.pageStart=u*d,this.pageEnd=this.pageStart+d,this.numSelected=e,this.dataLength=o?t.data.length:t.filteredData.length;const s=t.sort;return c||(this.modulo=this.dataLength%d,this.pageEnd=0===this.modulo?this.pageStart+d:this.pageStart+this.modulo),this.pageIterator=0,t.sortData(t.filteredData,s).forEach(l=>{this.pageStart<=this.pageIterator&&this.pageIterator{s?l(h)&&this.pageStart<=this.pageIterator&&this.pageIterator!0)){return t===e.data.reduce((d,u)=>d+Number(r(u)),0)}masterTogglePaginated(e,t,r,d=(()=>!0)){t.clear(),r&&e.data.forEach(u=>{d(u)&&t.select(u)})}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),xv=(()=>{class i{constructor(e,t){this.route=e,this.store=t}getPreferredLanguage(e){const t=this.store.getProperty("supported_languages"),r=navigator.languages.map(c=>c.split("-")[0]),d=location.search.substring(1).split("&");let u=null;for(const c of d){const o=c.split("=");"lang"===o[0]&&(u=o[1])}return u&&t.includes(u)?u:e&&t.includes(e)?e:r&&t.includes(r[0])?r[0]:"en"}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(mi),n.LFG(Ut))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),dA=(()=>{class i{constructor(e){this.storeService=e}static getBrandContainingDomain(e,t){for(const d of e)if(d.newApps.admin===t||d.newApps.profile===t||d.newApps.pwdReset===t||d.newApps.consolidator===t||d.newApps.linker===t)return d;return e.filter(d=>"default"===d.name)[0]||e[0]}getUrlForOtherApplication(e,t){const d=window.location.href.split("/"),u=d[0]+"//"+d[2],c=i.getBrandContainingDomain(this.storeService.getAppsConfig().brands,u);let o;if(c.newApps[e])o=c.newApps[e],"pwdReset"===e&&(o+=`?login-namespace=${t}`);else switch(o=c.oldGuiDomain+"/fed",e){case"admin":o+="/gui/";break;case"profile":o+="/profile/";break;case"pwdReset":o+=`/pwd-reset/?login-namespace=${t}`}return o}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Ut))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Sv=(()=>{class i{setEntity(e){this.entity=e}getEntity(){return this.entity}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),H2=(()=>{class i{constructor(e,t,r){this.store=e,this.oauthService=t,this.httpClient=r,this.mfaApiUrl=this.store.getProperty("mfa").api_url}isMfaAvailable(){return this.httpClient.get(this.mfaApiUrl+"mfaAvailable",{headers:{Authorization:"Bearer "+this.oauthService.getAccessToken()}})}getCategories(){return this.httpClient.get(this.mfaApiUrl+"categories",{headers:{Authorization:"Bearer "+this.oauthService.getAccessToken()}})}getSettings(){return this.httpClient.get(this.mfaApiUrl+"settings",{headers:{Authorization:"Bearer "+this.oauthService.getAccessToken()}})}enforceMfaForAllServices(e){const t=`value=${String(e)}`;return this.httpClient.put(this.mfaApiUrl+"mfaEnforced",t,{headers:{Authorization:"Bearer "+this.oauthService.getAccessToken()}})}updateDetailSettings(e){return this.httpClient.put(this.mfaApiUrl+"settings",e,{headers:{Authorization:"Bearer "+this.oauthService.getAccessToken(),"content-type":"application/json"}})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Ut),n.LFG(Ql.Ct),n.LFG(C.eN))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();var $o=(()=>{return(i=$o||($o={})).Admin="admin",i.Profile="profile",i.PwdReset="pwdReset",i.Consolidator="consolidator",i.Linker="linker",$o;var i})();const uA=["*"],R2=["content"];function P2(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div",2),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r._onBackdropClicked())}),n.qZA()}if(2&i){const e=n.oxw();n.ekj("mat-drawer-shown",e._isShowingBackdrop())}}function k2(i,a){1&i&&(n.TgZ(0,"mat-drawer-content"),n.Hsn(1,2),n.qZA())}const O2=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],I2=["mat-drawer","mat-drawer-content","*"];function B2(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div",2),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r._onBackdropClicked())}),n.qZA()}if(2&i){const e=n.oxw();n.ekj("mat-drawer-shown",e._isShowingBackdrop())}}function N2(i,a){1&i&&(n.TgZ(0,"mat-sidenav-content"),n.Hsn(1,2),n.qZA())}const V2=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],j2=["mat-sidenav","mat-sidenav-content","*"],_E={transformDrawer:En("transform",[ut("open, open-instant",je({transform:"none",visibility:"visible"})),ut("void",je({"box-shadow":"none",visibility:"hidden"})),Ot("void => open-instant",Rt("0ms")),Ot("void <=> open, open-instant => void",Rt("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},z2=new n.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function U2(){return!1}}),Ev=new n.OlP("MAT_DRAWER_CONTAINER");let hA=(()=>{class i extends Bl{constructor(e,t,r,d,u){super(r,d,u),this._changeDetectorRef=e,this._container=t}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.sBO),n.Y36((0,n.Gpc)(()=>AE)),n.Y36(n.SBq),n.Y36(ts),n.Y36(n.R0b))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(e,t){2&e&&n.Udp("margin-left",t._container._contentMargins.left,"px")("margin-right",t._container._contentMargins.right,"px")},features:[n._Bn([{provide:Bl,useExisting:i}]),n.qOj],ngContentSelectors:uA,decls:1,vars:0,template:function(e,t){1&e&&(n.F$t(),n.Hsn(0))},encapsulation:2,changeDetection:0}),i})(),bE=(()=>{class i{constructor(e,t,r,d,u,c,o,s){this._elementRef=e,this._focusTrapFactory=t,this._focusMonitor=r,this._platform=d,this._ngZone=u,this._interactivityChecker=c,this._doc=o,this._container=s,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new Le.x,this._animationEnd=new Le.x,this._animationState="void",this.openedChange=new n.vpe(!0),this._openedStream=this.openedChange.pipe((0,bt.h)(l=>l),(0,Mt.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,bt.h)(l=>l.fromState!==l.toState&&0===l.toState.indexOf("open")),(0,nl.h)(void 0)),this._closedStream=this.openedChange.pipe((0,bt.h)(l=>!l),(0,Mt.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,bt.h)(l=>l.fromState!==l.toState&&"void"===l.toState),(0,nl.h)(void 0)),this._destroyed=new Le.x,this.onPositionChanged=new n.vpe,this._modeChanged=new Le.x,this.openedChange.subscribe(l=>{l?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{zs(this._elementRef.nativeElement,"keydown").pipe((0,bt.h)(l=>27===l.keyCode&&!this.disableClose&&!Di(l)),rt(this._destroyed)).subscribe(l=>this._ngZone.run(()=>{this.close(),l.stopPropagation(),l.preventDefault()}))}),this._animationEnd.pipe(Uc((l,h)=>l.fromState===h.fromState&&l.toState===h.toState)).subscribe(l=>{const{fromState:h,toState:p}=l;(0===p.indexOf("open")&&"void"===h||"void"===p&&0===h.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(e){(e="end"===e?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(e),this._position=e,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(e){this._mode=e,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(e){this._disableClose=Ge(e)}get autoFocus(){return this._autoFocus??("side"===this.mode?"dialog":"first-tabbable")}set autoFocus(e){("true"===e||"false"===e||null==e)&&(e=Ge(e)),this._autoFocus=e}get opened(){return this._opened}set opened(e){this.toggle(Ge(e))}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const r=()=>{e.removeEventListener("blur",r),e.removeEventListener("mousedown",r),e.removeAttribute("tabindex")};e.addEventListener("blur",r),e.addEventListener("mousedown",r)})),e.focus(t)}_focusByCssSelector(e,t){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,t)}_takeFocus(){if(!this._focusTrap)return;const e=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(t=>{!t&&"function"==typeof this._elementRef.nativeElement.focus&&e.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(e){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,e):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const e=this._doc.activeElement;return!!e&&this._elementRef.nativeElement.contains(e)}ngAfterViewInit(){this._isAttached=!0,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){var e;this._focusTrap&&this._focusTrap.destroy(),null===(e=this._anchor)||void 0===e||e.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(e){return this.toggle(!0,e)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(e=!this.opened,t){e&&t&&(this._openedVia=t);const r=this._setOpen(e,!e&&this._isFocusWithinDrawer(),this._openedVia||"program");return e||(this._openedVia=null),r}_setOpen(e,t,r){return this._opened=e,e?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",t&&this._restoreFocus(r)),this._updateFocusTrapState(),new Promise(d=>{this.openedChange.pipe((0,ht.q)(1)).subscribe(u=>d(u?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_updatePositionInParent(e){const t=this._elementRef.nativeElement,r=t.parentNode;"end"===e?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),r.insertBefore(this._anchor,t)),r.appendChild(t)):this._anchor&&this._anchor.parentNode.insertBefore(t,this._anchor)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(fu),n.Y36($r),n.Y36(Qn),n.Y36(n.R0b),n.Y36(Yc),n.Y36(T.K0,8),n.Y36(Ev,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-drawer"]],viewQuery:function(e,t){if(1&e&&n.Gf(R2,5),2&e){let r;n.iGM(r=n.CRH())&&(t._content=r.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(e,t){1&e&&n.WFA("@transform.start",function(d){return t._animationStarted.next(d)})("@transform.done",function(d){return t._animationEnd.next(d)}),2&e&&(n.uIk("align",null),n.d8E("@transform",t._animationState),n.ekj("mat-drawer-end","end"===t.position)("mat-drawer-over","over"===t.mode)("mat-drawer-push","push"===t.mode)("mat-drawer-side","side"===t.mode)("mat-drawer-opened",t.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:uA,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(e,t){1&e&&(n.F$t(),n.TgZ(0,"div",0,1),n.Hsn(2),n.qZA())},dependencies:[Bl],encapsulation:2,data:{animation:[_E.transformDrawer]},changeDetection:0}),i})(),AE=(()=>{class i{constructor(e,t,r,d,u,c=!1,o){this._dir=e,this._element=t,this._ngZone=r,this._changeDetectorRef=d,this._animationMode=o,this._drawers=new n.n_E,this.backdropClick=new n.vpe,this._destroyed=new Le.x,this._doCheckSubject=new Le.x,this._contentMargins={left:null,right:null},this._contentMarginChanges=new Le.x,e&&e.change.pipe(rt(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),u.change().pipe(rt(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=c}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(e){this._autosize=Ge(e)}get hasBackdrop(){return this._backdropOverride??(!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode)}set hasBackdrop(e){this._backdropOverride=null==e?null:Ge(e)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe(vn(this._allDrawers),rt(this._destroyed)).subscribe(e=>{this._drawers.reset(e.filter(t=>!t._container||t._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(vn(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(e=>{this._watchDrawerToggle(e),this._watchDrawerPosition(e),this._watchDrawerMode(e)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,du.b)(10),rt(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(e=>e.open())}close(){this._drawers.forEach(e=>e.close())}updateContentMargins(){let e=0,t=0;if(this._left&&this._left.opened)if("side"==this._left.mode)e+=this._left._getWidth();else if("push"==this._left.mode){const r=this._left._getWidth();e+=r,t-=r}if(this._right&&this._right.opened)if("side"==this._right.mode)t+=this._right._getWidth();else if("push"==this._right.mode){const r=this._right._getWidth();t+=r,e-=r}e=e||null,t=t||null,(e!==this._contentMargins.left||t!==this._contentMargins.right)&&(this._contentMargins={left:e,right:t},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(e){e._animationStarted.pipe((0,bt.h)(t=>t.fromState!==t.toState),rt(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"!==e.mode&&e.openedChange.pipe(rt(this._drawers.changes)).subscribe(()=>this._setContainerClass(e.opened))}_watchDrawerPosition(e){!e||e.onPositionChanged.pipe(rt(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,ht.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(e){e&&e._modeChanged.pipe(rt((0,kn.T)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(e){const t=this._element.nativeElement.classList,r="mat-drawer-container-has-open";e?t.add(r):t.remove(r)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(e=>{"end"==e.position?this._end=e:this._start=e}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_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(e=>e&&!e.disableClose&&this._canHaveBackdrop(e)).forEach(e=>e._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(e){return"side"!==e.mode||!!this._backdropOverride}_isDrawerOpen(e){return null!=e&&e.opened}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Hi,8),n.Y36(n.SBq),n.Y36(n.R0b),n.Y36(n.sBO),n.Y36(Us),n.Y36(z2),n.Y36(n.QbO,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-drawer-container"]],contentQueries:function(e,t,r){if(1&e&&(n.Suo(r,hA,5),n.Suo(r,bE,5)),2&e){let d;n.iGM(d=n.CRH())&&(t._content=d.first),n.iGM(d=n.CRH())&&(t._allDrawers=d)}},viewQuery:function(e,t){if(1&e&&n.Gf(hA,5),2&e){let r;n.iGM(r=n.CRH())&&(t._userContent=r.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(e,t){2&e&&n.ekj("mat-drawer-container-explicit-backdrop",t._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[n._Bn([{provide:Ev,useExisting:i}])],ngContentSelectors:I2,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(e,t){1&e&&(n.F$t(O2),n.YNc(0,P2,1,2,"div",0),n.Hsn(1),n.Hsn(2,1),n.YNc(3,k2,2,0,"mat-drawer-content",1)),2&e&&(n.Q6J("ngIf",t.hasBackdrop),n.xp6(3),n.Q6J("ngIf",!t._content))},dependencies:[T.O5,hA],styles:['.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[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),i})(),Dv=(()=>{class i extends hA{constructor(e,t,r,d,u){super(e,t,r,d,u)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.sBO),n.Y36((0,n.Gpc)(()=>wE)),n.Y36(n.SBq),n.Y36(ts),n.Y36(n.R0b))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(e,t){2&e&&n.Udp("margin-left",t._container._contentMargins.left,"px")("margin-right",t._container._contentMargins.right,"px")},features:[n._Bn([{provide:Bl,useExisting:i}]),n.qOj],ngContentSelectors:uA,decls:1,vars:0,template:function(e,t){1&e&&(n.F$t(),n.Hsn(0))},encapsulation:2,changeDetection:0}),i})(),yE=(()=>{class i extends bE{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(e){this._fixedInViewport=Ge(e)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(e){this._fixedTopGap=Qt(e)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(e){this._fixedBottomGap=Qt(e)}}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(e,t){2&e&&(n.uIk("align",null),n.Udp("top",t.fixedInViewport?t.fixedTopGap:null,"px")("bottom",t.fixedInViewport?t.fixedBottomGap:null,"px"),n.ekj("mat-drawer-end","end"===t.position)("mat-drawer-over","over"===t.mode)("mat-drawer-push","push"===t.mode)("mat-drawer-side","side"===t.mode)("mat-drawer-opened",t.opened)("mat-sidenav-fixed",t.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[n.qOj],ngContentSelectors:uA,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(e,t){1&e&&(n.F$t(),n.TgZ(0,"div",0,1),n.Hsn(2),n.qZA())},dependencies:[Bl],encapsulation:2,data:{animation:[_E.transformDrawer]},changeDetection:0}),i})(),wE=(()=>{class i extends AE{}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-sidenav-container"]],contentQueries:function(e,t,r){if(1&e&&(n.Suo(r,Dv,5),n.Suo(r,yE,5)),2&e){let d;n.iGM(d=n.CRH())&&(t._content=d.first),n.iGM(d=n.CRH())&&(t._allDrawers=d)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(e,t){2&e&&n.ekj("mat-drawer-container-explicit-backdrop",t._backdropOverride)},exportAs:["matSidenavContainer"],features:[n._Bn([{provide:Ev,useExisting:i}]),n.qOj],ngContentSelectors:j2,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(e,t){1&e&&(n.F$t(V2),n.YNc(0,B2,1,2,"div",0),n.Hsn(1),n.Hsn(2,1),n.YNc(3,N2,2,0,"mat-sidenav-content",1)),2&e&&(n.Q6J("ngIf",t.hasBackdrop),n.xp6(3),n.Q6J("ngIf",!t._content))},dependencies:[T.O5,Dv],styles:['.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[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),i})(),Lv=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[T.ez,wt,da,da,wt]}),i})();function ME(i){for(let e in i){var a;let t=null!==(a=i[e])&&void 0!==a?a:"";switch(e){case"display":i.display="flex"===t?["-webkit-flex","flex"]:"inline-flex"===t?["-webkit-inline-flex","inline-flex"]:t;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":i["-webkit-"+e]=t;break;case"flex-direction":i["-webkit-flex-direction"]=t,i["flex-direction"]=t;break;case"order":i.order=i["-webkit-"+e]=isNaN(+t)?"0":t}}return i}const Hv="inline",pA=["row","column","row-reverse","column-reverse"];function CE(i){let[a,e,t]=function vE(i){var a,e;i=null!==(a=null===(e=i)||void 0===e?void 0:e.toLowerCase())&&void 0!==a?a:"";let[t,r,d]=i.split(" ");return pA.find(u=>u===t)||(t=pA[0]),r===Hv&&(r=d!==Hv?d:"",d=Hv),[t,q2(r),!!d]}(i);return function Y2(i,a=null,e=!1){return{display:e?"inline-flex":"flex","box-sizing":"border-box","flex-direction":i,"flex-wrap":a||null}}(a,e,t)}function q2(i){if(i)switch(i.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":i="wrap-reverse";break;case"no":case"none":case"nowrap":i="nowrap";break;default:i="wrap"}return i}const G2={provide:n.tb,useFactory:function W2(i,a){return()=>{if((0,T.NF)(a)){const e=Array.from(i.querySelectorAll(`[class*=${TE}]`)),t=/\bflex-layout-.+?\b/g;e.forEach(r=>{r.classList.contains(`${TE}ssr`)&&r.parentNode?r.parentNode.removeChild(r):r.className.replace(t,"")})}}},deps:[T.K0,n.Lbi],multi:!0},TE="flex-layout-";let Rv=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[G2]}),i})();class Gu{constructor(a=!1,e="all",t="",r="",d=0){this.matches=a,this.mediaQuery=e,this.mqAlias=t,this.suffix=r,this.priority=d,this.property=""}clone(){return new Gu(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let $2=(()=>{class i{constructor(){this.stylesheet=new Map}addStyleToElement(e,t,r){const d=this.stylesheet.get(e);d?d.set(t,r):this.stylesheet.set(e,new Map([[t,r]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(e,t){const r=this.stylesheet.get(e);let d="";if(r){const u=r.get(t);("number"==typeof u||"string"==typeof u)&&(d=u+"")}return d}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const Pv={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[],multiplier:void 0,defaultUnit:"px",detectLayoutDisplay:!1},no=new n.OlP("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>Pv}),Qp=new n.OlP("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),kv=new n.OlP("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function xE(i,a){var e,t;return i=null!==(e=null===(t=i)||void 0===t?void 0:t.clone())&&void 0!==e?e:new Gu,a&&(i.mqAlias=a.alias,i.mediaQuery=a.mediaQuery,i.suffix=a.suffix,i.priority=a.priority),i}class Ri{constructor(){this.shouldCache=!0}sideEffect(a,e,t){}}let ri=(()=>{class i{constructor(e,t,r,d){this._serverStylesheet=e,this._serverModuleLoaded=t,this._platformId=r,this.layoutConfig=d}applyStyleToElement(e,t,r=null){let d={};"string"==typeof t&&(d[t]=r,t=d),d=this.layoutConfig.disableVendorPrefixes?t:ME(t),this._applyMultiValueStyleToElement(d,e)}applyStyleToElements(e,t=[]){const r=this.layoutConfig.disableVendorPrefixes?e:ME(e);t.forEach(d=>{this._applyMultiValueStyleToElement(r,d)})}getFlowDirection(e){const t="flex-direction";let r=this.lookupStyle(e,t);return[r||"row",this.lookupInlineStyle(e,t)||(0,T.PM)(this._platformId)&&this._serverModuleLoaded?r:""]}hasWrap(e){return"wrap"===this.lookupStyle(e,"flex-wrap")}lookupAttributeValue(e,t){var r;return null!==(r=e.getAttribute(t))&&void 0!==r?r:""}lookupInlineStyle(e,t){return(0,T.NF)(this._platformId)?e.style.getPropertyValue(t):function Z2(i,a){var e;return null!==(e=SE(i)[a])&&void 0!==e?e:""}(e,t)}lookupStyle(e,t,r=!1){let d="";return e&&((d=this.lookupInlineStyle(e,t))||((0,T.NF)(this._platformId)?r||(d=getComputedStyle(e).getPropertyValue(t)):this._serverModuleLoaded&&(d=this._serverStylesheet.getStyleForElement(e,t)))),d?d.trim():""}_applyMultiValueStyleToElement(e,t){Object.keys(e).sort().forEach(r=>{const d=e[r],u=Array.isArray(d)?d:[d];u.sort();for(let c of u)c=c?c+"":"",(0,T.NF)(this._platformId)||!this._serverModuleLoaded?(0,T.NF)(this._platformId)?t.style.setProperty(r,c):J2(t,r,c):this._serverStylesheet.addStyleToElement(t,r,c)})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG($2),n.LFG(Qp),n.LFG(n.Lbi),n.LFG(no))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();function J2(i,a,e){a=a.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const t=SE(i);t[a]=e??"",function Q2(i,a){let e="";for(const t in a)a[t]&&(e+=`${t}:${a[t]};`);i.setAttribute("style",e)}(i,t)}function SE(i){const a={},e=i.getAttribute("style");if(e){const t=e.split(/;+/g);for(let r=0;r0){const u=d.indexOf(":");if(-1===u)throw new Error(`Invalid CSS style: ${d}`);a[d.substr(0,u).trim()]=d.substr(u+1).trim()}}}return a}function ug(i,a){return(a&&a.priority||0)-(i&&i.priority||0)}function X2(i,a){return(i.priority||0)-(a.priority||0)}let Ov=(()=>{class i{constructor(e,t,r){this._zone=e,this._platformId=t,this._document=r,this.source=new pt(new Gu(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const e=[];return this.registry.forEach((t,r)=>{t.matches&&e.push(r)}),e}isActive(e){var t;return null!==(t=this.registry.get(e)?.matches)&&void 0!==t?t:this.registerQuery(e).some(d=>d.matches)}observe(e,t=!1){if(e&&e.length){const r=this._observable$.pipe((0,bt.h)(u=>!t||e.indexOf(u.mediaQuery)>-1)),d=new yn.y(u=>{const c=this.registerQuery(e);if(c.length){const o=c.pop();c.forEach(s=>{u.next(s)}),this.source.next(o)}u.complete()});return(0,kn.T)(d,r)}return this._observable$}registerQuery(e){const t=Array.isArray(e)?e:[e],r=[];return function K2(i,a){const e=i.filter(t=>!EE[t]);if(e.length>0){const t=e.join(", ");try{const r=a.createElement("style");r.setAttribute("type","text/css"),r.styleSheet||r.appendChild(a.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`)),a.head.appendChild(r),e.forEach(d=>EE[d]=r)}catch(r){console.error(r)}}}(t,this._document),t.forEach(d=>{const u=o=>{this._zone.run(()=>this.source.next(new Gu(o.matches,d)))};let c=this.registry.get(d);c||(c=this.buildMQL(d),c.addListener(u),this.pendingRemoveListenerFns.push(()=>c.removeListener(u)),this.registry.set(d,c)),c.matches&&r.push(new Gu(!0,d))}),r}ngOnDestroy(){let e;for(;e=this.pendingRemoveListenerFns.pop();)e()}buildMQL(e){return function eR(i,a){return a&&window.matchMedia("all").addListener?window.matchMedia(i):{matches:"all"===i||""===i,media:i,addListener:()=>{},removeListener:()=>{},onchange:null,addEventListener(){},removeEventListener(){},dispatchEvent:()=>!1}}(e,(0,T.NF)(this._platformId))}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(n.R0b),n.LFG(n.Lbi),n.LFG(T.K0))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const EE={},tR=[{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}],DE="(orientation: portrait) and (max-width: 599.98px)",LE="(orientation: landscape) and (max-width: 959.98px)",HE="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",RE="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",PE="(orientation: portrait) and (min-width: 840px)",kE="(orientation: landscape) and (min-width: 1280px)",Kl={HANDSET:`${DE}, ${LE}`,TABLET:`${HE} , ${RE}`,WEB:`${PE}, ${kE} `,HANDSET_PORTRAIT:`${DE}`,TABLET_PORTRAIT:`${HE} `,WEB_PORTRAIT:`${PE}`,HANDSET_LANDSCAPE:`${LE}`,TABLET_LANDSCAPE:`${RE}`,WEB_LANDSCAPE:`${kE}`},nR=[{alias:"handset",priority:2e3,mediaQuery:Kl.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:Kl.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:Kl.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:Kl.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:Kl.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:Kl.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:Kl.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:Kl.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:Kl.WEB_PORTRAIT,overlapping:!0}],iR=/(\.|-|_)/g;function rR(i){let a=i.length>0?i.charAt(0):"",e=i.length>1?i.slice(1):"";return a.toUpperCase()+e}const lR=new n.OlP("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const i=(0,n.f3M)(kv),a=(0,n.f3M)(no),e=[].concat.apply([],(i||[]).map(r=>Array.isArray(r)?r:[r]));return function oR(i,a=[]){const e={};return i.forEach(t=>{e[t.alias]=t}),a.forEach(t=>{e[t.alias]?function Xl(i,...a){if(null==i)throw TypeError("Cannot convert undefined or null to object");for(let e of a)if(null!=e)for(let t in e)e.hasOwnProperty(t)&&(i[t]=e[t]);return i}(e[t.alias],t):e[t.alias]=t}),function sR(i){return i.forEach(a=>{a.suffix||(a.suffix=function aR(i){return i.replace(iR,"|").split("|").map(rR).join("")}(a.alias),a.overlapping=!!a.overlapping)}),i}(Object.keys(e).map(t=>e[t]))}((a.disableDefaultBps?[]:tR).concat(a.addOrientationBps?nR:[]),e)}});let Iv=(()=>{class i{constructor(e){this.findByMap=new Map,this.items=[...e].sort(X2)}findByAlias(e){return e?this.findWithPredicate(e,t=>t.alias===e):null}findByQuery(e){return this.findWithPredicate(e,t=>t.mediaQuery===e)}get overlappings(){return this.items.filter(e=>e.overlapping)}get aliases(){return this.items.map(e=>e.alias)}get suffixes(){return this.items.map(e=>{var t;return null!==(t=e?.suffix)&&void 0!==t?t:""})}findWithPredicate(e,t){var r;let d=this.findByMap.get(e);var u;return d||(d=null!==(u=this.items.find(t))&&void 0!==u?u:null,this.findByMap.set(e,d)),null!==(r=d)&&void 0!==r?r:null}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(lR))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const Xp="print",cR={alias:Xp,mediaQuery:Xp,priority:1e3};let dR=(()=>{class i{constructor(e,t,r){this.breakpoints=e,this.layoutConfig=t,this._document=r,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.formerActivations=null,this.isPrinting=!1,this.queue=new uR,this.deactivations=[]}withPrintQuery(e){return[...e,Xp]}isPrintEvent(e){return e.mediaQuery.startsWith(Xp)}get printAlias(){var e;return[...null!==(e=this.layoutConfig.printWithBreakpoints)&&void 0!==e?e:[]]}get printBreakPoints(){return this.printAlias.map(e=>this.breakpoints.findByAlias(e)).filter(e=>null!==e)}getEventBreakpoints({mediaQuery:e}){const t=this.breakpoints.findByQuery(e);return(t?[...this.printBreakPoints,t]:this.printBreakPoints).sort(ug)}updateEvent(e){let t=this.breakpoints.findByQuery(e.mediaQuery);var r,d;return this.isPrintEvent(e)&&(t=this.getEventBreakpoints(e)[0],e.mediaQuery=null!==(r=null===(d=t)||void 0===d?void 0:d.mediaQuery)&&void 0!==r?r:""),xE(e,t)}registerBeforeAfterPrintHooks(e){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const t=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(e,this.getEventBreakpoints(new Gu(!0,Xp))),e.updateStyles())},r=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(e),e.updateStyles())};this._document.defaultView.addEventListener("beforeprint",t),this._document.defaultView.addEventListener("afterprint",r),this.beforePrintEventListeners.push(t),this.afterPrintEventListeners.push(r)}interceptEvents(e){return t=>{this.isPrintEvent(t)?t.matches&&!this.isPrinting?(this.startPrinting(e,this.getEventBreakpoints(t)),e.updateStyles()):!t.matches&&this.isPrinting&&!this.isPrintingBeforeAfterEvent&&(this.stopPrinting(e),e.updateStyles()):this.collectActivations(e,t)}}blockPropagation(){return e=>!(this.isPrinting||this.isPrintEvent(e))}startPrinting(e,t){this.isPrinting=!0,this.formerActivations=e.activatedBreakpoints,e.activatedBreakpoints=this.queue.addPrintBreakpoints(t)}stopPrinting(e){e.activatedBreakpoints=this.deactivations,this.deactivations=[],this.formerActivations=null,this.queue.clear(),this.isPrinting=!1}collectActivations(e,t){if(!this.isPrinting||this.isPrintingBeforeAfterEvent){if(!this.isPrintingBeforeAfterEvent)return void(this.deactivations=[]);if(!t.matches){const r=this.breakpoints.findByQuery(t.mediaQuery);if(r){const d=this.formerActivations&&this.formerActivations.includes(r),u=!this.formerActivations&&e.activatedBreakpoints.includes(r);(d||u)&&(this.deactivations.push(r),this.deactivations.sort(ug))}}}}ngOnDestroy(){this._document.defaultView&&(this.beforePrintEventListeners.forEach(e=>this._document.defaultView.removeEventListener("beforeprint",e)),this.afterPrintEventListeners.forEach(e=>this._document.defaultView.removeEventListener("afterprint",e)))}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Iv),n.LFG(no),n.LFG(T.K0))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();class uR{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(a){return a.push(cR),a.sort(ug),a.forEach(e=>this.addBreakpoint(e)),this.printBreakpoints}addBreakpoint(a){a&&void 0===this.printBreakpoints.find(t=>t.mediaQuery===a.mediaQuery)&&(this.printBreakpoints=function hR(i){var a;return null!==(a=i?.mediaQuery.startsWith(Xp))&&void 0!==a&&a}(a)?[a,...this.printBreakpoints]:[...this.printBreakpoints,a])}clear(){this.printBreakpoints=[]}}let ui=(()=>{class i{constructor(e,t,r){this.matchMedia=e,this.breakpoints=t,this.hook=r,this._useFallbacks=!0,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 Le.x,this.observeActivations()}get activatedAlias(){var e,t;return null!==(e=null===(t=this.activatedBreakpoints[0])||void 0===t?void 0:t.alias)&&void 0!==e?e:""}set activatedBreakpoints(e){this._activatedBreakpoints=[...e]}get activatedBreakpoints(){return[...this._activatedBreakpoints]}set useFallbacks(e){this._useFallbacks=e}onMediaChange(e){const t=this.findByQuery(e.mediaQuery);if(t){e=xE(e,t);const r=this.activatedBreakpoints.indexOf(t);e.matches&&-1===r?(this._activatedBreakpoints.push(t),this._activatedBreakpoints.sort(ug),this.updateStyles()):!e.matches&&-1!==r&&(this._activatedBreakpoints.splice(r,1),this._activatedBreakpoints.sort(ug),this.updateStyles())}}init(e,t,r,d,u=[]){OE(this.updateMap,e,t,r),OE(this.clearMap,e,t,d),this.buildElementKeyMap(e,t),this.watchExtraTriggers(e,t,u)}getValue(e,t,r){const d=this.elementMap.get(e);if(d){const u=void 0!==r?d.get(r):this.getActivatedValues(d,t);if(u)return u.get(t)}}hasValue(e,t){const r=this.elementMap.get(e);if(r){const d=this.getActivatedValues(r,t);if(d)return void 0!==d.get(t)||!1}return!1}setValue(e,t,r,d){let u=this.elementMap.get(e);if(u){var c;const s=(null!==(c=u.get(d))&&void 0!==c?c:new Map).set(t,r);u.set(d,s),this.elementMap.set(e,u)}else u=(new Map).set(d,(new Map).set(t,r)),this.elementMap.set(e,u);const o=this.getValue(e,t);void 0!==o&&this.updateElement(e,t,o)}trackValue(e,t){return this.subject.asObservable().pipe((0,bt.h)(r=>r.element===e&&r.key===t))}updateStyles(){this.elementMap.forEach((e,t)=>{const r=new Set(this.elementKeyMap.get(t));let d=this.getActivatedValues(e);d&&d.forEach((u,c)=>{this.updateElement(t,c,u),r.delete(c)}),r.forEach(u=>{if(d=this.getActivatedValues(e,u),d){const c=d.get(u);this.updateElement(t,u,c)}else this.clearElement(t,u)})})}clearElement(e,t){const r=this.clearMap.get(e);if(r){const d=r.get(t);d&&(d(),this.subject.next({element:e,key:t,value:""}))}}updateElement(e,t,r){const d=this.updateMap.get(e);if(d){const u=d.get(t);u&&(u(r),this.subject.next({element:e,key:t,value:r}))}}releaseElement(e){const t=this.watcherMap.get(e);t&&(t.forEach(d=>d.unsubscribe()),this.watcherMap.delete(e));const r=this.elementMap.get(e);r&&(r.forEach((d,u)=>r.delete(u)),this.elementMap.delete(e))}triggerUpdate(e,t){const r=this.elementMap.get(e);if(r){const d=this.getActivatedValues(r,t);d&&(t?this.updateElement(e,t,d.get(t)):d.forEach((u,c)=>this.updateElement(e,c,u)))}}buildElementKeyMap(e,t){let r=this.elementKeyMap.get(e);r||(r=new Set,this.elementKeyMap.set(e,r)),r.add(t)}watchExtraTriggers(e,t,r){if(r&&r.length){let d=this.watcherMap.get(e);if(d||(d=new Map,this.watcherMap.set(e,d)),!d.get(t)){const c=(0,kn.T)(...r).subscribe(()=>{const o=this.getValue(e,t);this.updateElement(e,t,o)});d.set(t,c)}}}findByQuery(e){return this.breakpoints.findByQuery(e)}getActivatedValues(e,t){for(let d=0;dt.mediaQuery);this.hook.registerBeforeAfterPrintHooks(this),this.matchMedia.observe(this.hook.withPrintQuery(e)).pipe((0,Wt.b)(this.hook.interceptEvents(this)),(0,bt.h)(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Ov),n.LFG(Iv),n.LFG(dR))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();function OE(i,a,e,t){if(void 0!==t){var r;const d=null!==(r=i.get(a))&&void 0!==r?r:new Map;d.set(e,t),i.set(a,d)}}let wi=(()=>{class i{constructor(e,t,r,d){this.elementRef=e,this.styleBuilder=t,this.styler=r,this.marshal=d,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new Le.x,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(e){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,e,this.marshal.activatedAlias)}ngOnChanges(e){Object.keys(e).forEach(t=>{if(-1!==this.inputs.indexOf(t)){const r=t.split(".").slice(1).join(".");this.setValue(e[t].currentValue,r)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(e=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),e)}addStyles(e,t){const r=this.styleBuilder,d=r.shouldCache;let u=this.styleCache.get(e);(!u||!d)&&(u=r.buildStyles(e,t),d&&this.styleCache.set(e,u)),this.mru={...u},this.applyStyleToElement(u),r.sideEffect(e,u,t)}clearStyles(){Object.keys(this.mru).forEach(e=>{this.mru[e]=""}),this.applyStyleToElement(this.mru),this.mru={},this.currentValue=void 0}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(e,t=!1){if(e){const[r,d]=this.styler.getFlowDirection(e);if(!d&&t){const u=CE(r);this.styler.applyStyleToElements(u,[e])}return r.trim()}return"row"}hasWrap(e){return this.styler.hasWrap(e)}applyStyleToElement(e,t,r=this.nativeElement){this.styler.applyStyleToElement(r,e,t)}setValue(e,t){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,e,t)}updateWithValue(e){this.currentValue!==e&&(this.addStyles(e),this.currentValue=e)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(Ri),n.Y36(ri),n.Y36(ui))},i.\u0275dir=n.lG2({type:i,features:[n.TTD]}),i})();class SR{constructor(a,e,t=!0){this.key=a,this.value=e,this.key=t?a.replace(/['"]/g,"").trim():a.trim(),this.value=t?e.replace(/['"]/g,"").trim():e.trim(),this.value=this.value.replace(/;/,"")}}function VE(i){let a=typeof i;return"object"===a?i.constructor===Array?"array":i.constructor===Set?"set":"object":a}function FE(i){const[a,...e]=i.split(":");return new SR(a,e.join(":"))}function zE(i,a){return a.key&&(i[a.key]=a.value),i}let LR=(()=>{class i extends wi{constructor(e,t,r,d,u,c,o,s,l){var h;super(e,null,t,r),this.sanitizer=d,this.ngStyleInstance=o,this.DIRECTIVE_KEY="ngStyle",this.ngStyleInstance||(this.ngStyleInstance=new T.PC(e,u,c)),this.init();const p=null!==(h=this.nativeElement.getAttribute("style"))&&void 0!==h?h:"";this.fallbackStyles=this.buildStyleMap(p),this.isServer=s&&(0,T.PM)(l)}updateWithValue(e){const t=this.buildStyleMap(e);this.ngStyleInstance.ngStyle={...this.fallbackStyles,...t},this.isServer&&this.applyStyleToElement(t),this.ngStyleInstance.ngDoCheck()}clearStyles(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}buildStyleMap(e){const t=r=>{var d;return null!==(d=this.sanitizer.sanitize(n.q3G.STYLE,r))&&void 0!==d?d:""};if(e)switch(VE(e)){case"string":return UE(function ER(i,a=";"){return String(i).trim().split(a).map(e=>e.trim()).filter(e=>""!==e)}(e),t);case"array":return UE(e,t);default:return function jE(i,a){let e=[];return"set"===VE(i)?i.forEach(t=>e.push(t)):Object.keys(i).forEach(t=>{e.push(`${t}:${i[t]}`)}),function DR(i,a){return i.map(FE).filter(t=>!!t).map(t=>(a&&(t.value=a(t.value)),t)).reduce(zE,{})}(e,a)}(e,t)}return{}}ngDoCheck(){this.ngStyleInstance.ngDoCheck()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(ri),n.Y36(ui),n.Y36(ei),n.Y36(n.aQg),n.Y36(n.Qsj),n.Y36(T.PC,10),n.Y36(Qp),n.Y36(n.Lbi))},i.\u0275dir=n.lG2({type:i,features:[n.qOj]}),i})();const HR=["ngStyle","ngStyle.xs","ngStyle.sm","ngStyle.md","ngStyle.lg","ngStyle.xl","ngStyle.lt-sm","ngStyle.lt-md","ngStyle.lt-lg","ngStyle.lt-xl","ngStyle.gt-xs","ngStyle.gt-sm","ngStyle.gt-md","ngStyle.gt-lg"];let Nv=(()=>{class i extends LR{constructor(){super(...arguments),this.inputs=HR}}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["","ngStyle",""],["","ngStyle.xs",""],["","ngStyle.sm",""],["","ngStyle.md",""],["","ngStyle.lg",""],["","ngStyle.xl",""],["","ngStyle.lt-sm",""],["","ngStyle.lt-md",""],["","ngStyle.lt-lg",""],["","ngStyle.lt-xl",""],["","ngStyle.gt-xs",""],["","ngStyle.gt-sm",""],["","ngStyle.gt-md",""],["","ngStyle.gt-lg",""]],inputs:{ngStyle:"ngStyle","ngStyle.xs":"ngStyle.xs","ngStyle.sm":"ngStyle.sm","ngStyle.md":"ngStyle.md","ngStyle.lg":"ngStyle.lg","ngStyle.xl":"ngStyle.xl","ngStyle.lt-sm":"ngStyle.lt-sm","ngStyle.lt-md":"ngStyle.lt-md","ngStyle.lt-lg":"ngStyle.lt-lg","ngStyle.lt-xl":"ngStyle.lt-xl","ngStyle.gt-xs":"ngStyle.gt-xs","ngStyle.gt-sm":"ngStyle.gt-sm","ngStyle.gt-md":"ngStyle.gt-md","ngStyle.gt-lg":"ngStyle.gt-lg"},features:[n.qOj]}),i})();function UE(i,a){return i.map(FE).filter(t=>!!t).map(t=>(a&&(t.value=a(t.value)),t)).reduce(zE,{})}let qE=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Rv]}),i})();const YE=kr({passive:!0});let RR=(()=>{class i{constructor(e,t){this._platform=e,this._ngZone=t,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return Xi.E;const t=ci(e),r=this._monitoredElements.get(t);if(r)return r.subject;const d=new Le.x,u="cdk-text-field-autofilled",c=o=>{"cdk-text-field-autofill-start"!==o.animationName||t.classList.contains(u)?"cdk-text-field-autofill-end"===o.animationName&&t.classList.contains(u)&&(t.classList.remove(u),this._ngZone.run(()=>d.next({target:o.target,isAutofilled:!1}))):(t.classList.add(u),this._ngZone.run(()=>d.next({target:o.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{t.addEventListener("animationstart",c,YE),t.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(t,{subject:d,unlisten:()=>{t.removeEventListener("animationstart",c,YE)}}),d}stopMonitoring(e){const t=ci(e),r=this._monitoredElements.get(t);r&&(r.unlisten(),r.subject.complete(),t.classList.remove("cdk-text-field-autofill-monitored"),t.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(t))}ngOnDestroy(){this._monitoredElements.forEach((e,t)=>this.stopMonitoring(t))}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Qn),n.LFG(n.R0b))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),mA=(()=>{class i{constructor(e,t,r,d){this._elementRef=e,this._platform=t,this._ngZone=r,this._destroyed=new Le.x,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._handleFocusEvent=u=>{this._hasFocus="focus"===u.type},this._document=d,this._textareaElement=this._elementRef.nativeElement}get minRows(){return this._minRows}set minRows(e){this._minRows=Qt(e),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(e){this._maxRows=Qt(e),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(e){e=Ge(e),this._enabled!==e&&((this._enabled=e)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(e){this._cachedPlaceholderHeight=void 0,e?this._textareaElement.setAttribute("placeholder",e):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}_setMinHeight(){const e=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;e&&(this._textareaElement.style.minHeight=e)}_setMaxHeight(){const e=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;e&&(this._textareaElement.style.maxHeight=e)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{zs(this._getWindow(),"resize").pipe(tp(16),rt(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0)),this._textareaElement.addEventListener("focus",this._handleFocusEvent),this._textareaElement.addEventListener("blur",this._handleFocusEvent)}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._textareaElement.removeEventListener("focus",this._handleFocusEvent),this._textareaElement.removeEventListener("blur",this._handleFocusEvent),this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let e=this._textareaElement.cloneNode(!1);e.rows=1,e.style.position="absolute",e.style.visibility="hidden",e.style.border="none",e.style.padding="0",e.style.height="",e.style.minHeight="",e.style.maxHeight="",e.style.overflow="hidden",this._textareaElement.parentNode.appendChild(e),this._cachedLineHeight=e.clientHeight,e.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){const e=this._textareaElement,t=e.style.marginBottom||"",r=this._platform.FIREFOX,d=r&&this._hasFocus,u=r?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";d&&(e.style.marginBottom=`${e.clientHeight}px`),e.classList.add(u);const c=e.scrollHeight-4;return e.classList.remove(u),d&&(e.style.marginBottom=t),c}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const e=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=e}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(e=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;const t=this._elementRef.nativeElement,r=t.value;if(!e&&this._minRows===this._previousMinRows&&r===this._previousValue)return;const d=this._measureScrollHeight(),u=Math.max(d,this._cachedPlaceholderHeight||0);t.style.height=`${u}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(t)):setTimeout(()=>this._scrollToCaretPosition(t))}),this._previousValue=r,this._previousMinRows=this._minRows}reset(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollToCaretPosition(e){const{selectionStart:t,selectionEnd:r}=e;!this._destroyed.isStopped&&this._hasFocus&&e.setSelectionRange(t,r)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(Qn),n.Y36(n.R0b),n.Y36(T.K0,8))},i.\u0275dir=n.lG2({type:i,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(e,t){1&e&&n.NdJ("input",function(){return t._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]}),i})(),WE=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})();const GE=new n.OlP("MAT_INPUT_VALUE_ACCESSOR"),PR=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let kR=0;const OR=w0(class{constructor(i,a,e,t){this._defaultErrorStateMatcher=i,this._parentForm=a,this._parentFormGroup=e,this.ngControl=t,this.stateChanges=new Le.x}});let ji=(()=>{class i extends OR{constructor(e,t,r,d,u,c,o,s,l,h){super(c,d,u,r),this._elementRef=e,this._platform=t,this._autofillMonitor=s,this._formField=h,this._uid="mat-input-"+kR++,this.focused=!1,this.stateChanges=new Le.x,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(g=>Bc().has(g)),this._iOSKeyupListener=g=>{const f=g.target;!f.value&&0===f.selectionStart&&0===f.selectionEnd&&(f.setSelectionRange(1,1),f.setSelectionRange(0,0))};const p=this._elementRef.nativeElement,m=p.nodeName.toLowerCase();this._inputValueAccessor=o||p,this._previousNativeValue=this.value,this.id=this.id,t.IOS&&l.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===m,this._isTextarea="textarea"===m,this._isInFormField=!!h,this._isNativeSelect&&(this.controlType=p.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=Ge(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){var e,t,r,d;return null!==(e=null!==(t=this._required)&&void 0!==t?t:null===(r=this.ngControl)||void 0===r||null===(d=r.control)||void 0===d?void 0:d.hasValidator(bi.required))&&void 0!==e&&e}set required(e){this._required=Ge(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&Bc().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=Ge(e)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var e;const t=this._formField,r=!t||"legacy"!==t.appearance||null!==(e=t._hasLabel)&&void 0!==e&&e.call(t)?this.placeholder:null;if(r!==this._previousPlaceholder){const d=this._elementRef.nativeElement;this._previousPlaceholder=r,r?d.setAttribute("placeholder",r):d.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){PR.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(Qn),n.Y36(gn,10),n.Y36(Zs,8),n.Y36(Qs,8),n.Y36(Jc),n.Y36(GE,10),n.Y36(RR),n.Y36(n.R0b),n.Y36(sd,8))},i.\u0275dir=n.lG2({type:i,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(e,t){1&e&&n.NdJ("focus",function(){return t._focusChanged(!0)})("blur",function(){return t._focusChanged(!1)})("input",function(){return t._onInput()}),2&e&&(n.Ikx("disabled",t.disabled)("required",t.required),n.uIk("id",t.id)("data-placeholder",t.placeholder)("name",t.name||null)("readonly",t.readonly&&!t._isNativeSelect||null)("aria-invalid",t.empty&&t.required?null:t.errorState)("aria-required",t.required),n.ekj("mat-input-server",t._isServer)("mat-native-select-inline",t._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[n._Bn([{provide:ad,useExisting:i}]),n.qOj,n.TTD]}),i})(),Kp=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[Jc],imports:[WE,Gs,wt,WE,Gs]}),i})();function IR(i,a){1&i&&(n.TgZ(0,"mat-error"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT_ERROR")))}let BR=(()=>{class i{constructor(e,t,r,d,u){this.dialogRef=e,this.translate=t,this.notificator=r,this.rtMessages=d,this.storeService=u,this.message="",this.subject="",this.instanceName=""}ngOnInit(){this.instanceName=this.storeService.getProperty("config")}sendBugReport(){this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(e=>{this.dialogRef.afterClosed().subscribe(()=>this.notificator.showSuccess(this.translate.instant("DIALOGS.REPORT_ISSUE.SUCCESS")+String(e.ticketNumber))),this.dialogRef.close()})}getFullEmailBody(){return this.message.concat("\n ","------------------------\n ","Perun instance: ",this.instanceName,"\n ","Sended from new Perun Gui, version: ",E(4147).i8)}close(){this.dialogRef.close()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ln),n.Y36(tn),n.Y36(Mr),n.Y36(fo),n.Y36(Ut))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-report-issue-dialog"]],decls:29,vars:25,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","","type","text",3,"ngModel","ngModelChange"],["subjectModel","ngModel"],[4,"ngIf"],["matInput","",3,"placeholder","ngModel","ngModelChange"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(e,t){if(1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.qZA(),n.TgZ(3,"div",1)(4,"mat-form-field")(5,"mat-label"),n._uU(6),n.ALo(7,"translate"),n.qZA(),n.TgZ(8,"input",2,3),n.NdJ("ngModelChange",function(d){return t.subject=d}),n.qZA(),n.YNc(10,IR,3,3,"mat-error",4),n.qZA(),n.TgZ(11,"mat-form-field")(12,"mat-label"),n._uU(13),n.ALo(14,"translate"),n.qZA(),n.TgZ(15,"textarea",5),n.NdJ("ngModelChange",function(d){return t.message=d}),n.ALo(16,"translate"),n._uU(17," "),n.qZA(),n.TgZ(18,"mat-hint"),n._uU(19),n.ALo(20,"translate"),n.qZA()()(),n.TgZ(21,"div",6)(22,"div",7)(23,"button",8),n.NdJ("click",function(){return t.close()}),n._uU(24),n.ALo(25,"translate"),n.qZA(),n.TgZ(26,"button",9),n.NdJ("click",function(){return t.sendBugReport()}),n._uU(27),n.ALo(28,"translate"),n.qZA()()()),2&e){const r=n.MAs(9);n.xp6(1),n.Oqu(n.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.TITLE")),n.xp6(5),n.Oqu(n.lcZ(7,13,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT")),n.xp6(2),n.Q6J("ngModel",t.subject),n.xp6(2),n.Q6J("ngIf",r.invalid),n.xp6(3),n.Oqu(n.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE")),n.xp6(2),n.s9C("placeholder",n.lcZ(16,17,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_PLACEHOLDER")),n.Q6J("ngModel",t.message),n.xp6(4),n.Oqu(n.lcZ(20,19,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_HINT")),n.xp6(5),n.hij(" ",n.lcZ(25,21,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.CANCEL")," "),n.xp6(2),n.Q6J("disabled",r.invalid),n.xp6(1),n.hij(" ",n.lcZ(28,23,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SEND")," ")}},dependencies:[T.O5,_i,Ai,Nr,ua,Ht,Na,di,x_,as,ji,Xn,ii,Un,Ke],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),i})(),$E=(()=>{class i{transform(e,t,r){return e[`${r}_${t}`]}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=n.Yjl({name:"localisedText",type:i,pure:!0}),i})(),NR=(()=>{class i{transform(e,t){return e["link_"+t]||e.link_en}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=n.Yjl({name:"localisedLink",type:i,pure:!0}),i})(),VR=(()=>{class i{transform(e){return e.includes("/")?e:"/assets/config/"+e}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=n.Yjl({name:"footerLogoPath",type:i,pure:!0}),i})();function jR(i,a){if(1&i&&(n.TgZ(0,"a",13),n.ALo(1,"localisedLink"),n._UZ(2,"img",14),n.ALo(3,"footerLogoPath"),n.qZA()),2&i){const e=n.oxw().$implicit,t=n.oxw(3);n.Q6J("href",n.xi3(1,2,e,t.language),n.LSH),n.xp6(2),n.s9C("src",n.lcZ(3,5,e.logo),n.LSH)}}function FR(i,a){if(1&i&&(n.TgZ(0,"span"),n._UZ(1,"img",14),n.ALo(2,"footerLogoPath"),n.qZA()),2&i){const e=n.oxw().$implicit;n.xp6(1),n.s9C("src",n.lcZ(2,1,e.logo),n.LSH)}}function zR(i,a){if(1&i&&(n.TgZ(0,"div"),n.YNc(1,jR,4,7,"a",11),n.ALo(2,"localisedLink"),n.YNc(3,FR,3,3,"span",12),n.ALo(4,"localisedLink"),n.qZA()),2&i){const e=a.$implicit,t=n.oxw(3);n.xp6(1),n.Q6J("ngIf",n.xi3(2,2,e,t.language)),n.xp6(2),n.Q6J("ngIf",!n.xi3(4,5,e,t.language))}}const UR=function(i){return{"min-height":i}};function qR(i,a){if(1&i&&(n.TgZ(0,"div",10),n.YNc(1,zR,5,8,"div",5),n.qZA()),2&i){const e=n.oxw().$implicit,t=n.oxw();n.Q6J("ngStyle",n.VKq(2,UR,t.columnContentHeight+"px")),n.xp6(1),n.Q6J("ngForOf",e.elements)}}const ec=function(i){return{color:i}};function YR(i,a){if(1&i&&(n.TgZ(0,"i",20),n._uU(1),n.qZA()),2&i){const e=n.oxw().$implicit,t=n.oxw(3);n.Q6J("ngStyle",n.VKq(2,ec,t.linksTextColor)),n.xp6(1),n.hij(" ",e.icon," ")}}function WR(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"span",21),n.NdJ("click",function(){n.CHM(e);const r=n.oxw().$implicit,d=n.oxw(3);return n.KtG(d.openDialog(r.dialog))}),n._uU(1),n.ALo(2,"localisedText"),n.qZA()}if(2&i){const e=n.oxw().$implicit,t=n.oxw(3);n.Q6J("ngStyle",n.VKq(6,ec,t.linksTextColor)),n.xp6(1),n.hij("",n.Dn7(2,2,e,t.language,"label")," ")}}function GR(i,a){if(1&i&&(n.TgZ(0,"a",22),n.ALo(1,"localisedLink"),n._uU(2),n.ALo(3,"localisedText"),n.qZA()),2&i){const e=n.oxw().$implicit,t=n.oxw(3);n.Q6J("href",n.xi3(1,3,e,t.language),n.LSH)("ngStyle",n.VKq(10,ec,t.linksTextColor)),n.xp6(2),n.Oqu(n.Dn7(3,6,e,t.language,"label"))}}function $R(i,a){if(1&i&&(n.TgZ(0,"span",10),n._uU(1),n.ALo(2,"localisedText"),n.qZA()),2&i){const e=n.oxw().$implicit,t=n.oxw(3);n.Q6J("ngStyle",n.VKq(6,ec,t.linksTextColor)),n.xp6(1),n.Oqu(n.Dn7(2,2,e,t.language,"label"))}}function ZR(i,a){if(1&i&&(n.TgZ(0,"div",16),n.YNc(1,YR,2,4,"i",17),n.YNc(2,WR,3,8,"span",18),n.YNc(3,GR,4,12,"a",19),n.ALo(4,"localisedLink"),n.YNc(5,$R,3,8,"span",9),n.ALo(6,"localisedLink"),n.qZA()),2&i){const e=a.$implicit,t=n.oxw(3);n.xp6(1),n.Q6J("ngIf",e.icon),n.xp6(1),n.Q6J("ngIf",e.dialog),n.xp6(1),n.Q6J("ngIf",n.xi3(4,4,e,t.language)&&!e.dialog),n.xp6(2),n.Q6J("ngIf",!n.xi3(6,7,e,t.language)&&!e.dialog)}}const JR=function(i){return{height:i}};function QR(i,a){if(1&i&&(n.TgZ(0,"div",10),n.YNc(1,ZR,7,10,"div",15),n.qZA()),2&i){const e=n.oxw().$implicit,t=n.oxw();n.Q6J("ngStyle",n.VKq(2,JR,t.columnContentHeight+"px")),n.xp6(1),n.Q6J("ngForOf",e.elements)}}function XR(i,a){if(1&i&&(n.TgZ(0,"div",7)(1,"h6",8),n._uU(2),n.ALo(3,"localisedText"),n.qZA(),n.YNc(4,qR,2,4,"div",9),n.YNc(5,QR,2,4,"div",9),n.qZA()),2&i){const e=a.$implicit,t=n.oxw();n.ekj("my-auto",t.containsLogos),n.xp6(1),n.Q6J("ngStyle",n.VKq(10,ec,t.headersTextColor)),n.xp6(1),n.hij(" ",n.Dn7(3,6,e,t.language,"title")," "),n.xp6(2),n.Q6J("ngIf",e.logos),n.xp6(1),n.Q6J("ngIf",e.elements&&!e.logos)}}function KR(i,a){if(1&i&&(n.TgZ(0,"span")(1,"a",6),n._uU(2),n.qZA()()),2&i){const e=a.$implicit,t=a.index,r=n.oxw();n.xp6(1),n.Q6J("href",e.url,n.LSH)("ngStyle",n.VKq(3,ec,r.copyrightTextColor)),n.xp6(1),n.Oqu(t?", "+e.name:e.name)}}const eP=function(i){return{background:i}};let ZE=(()=>{class i{constructor(e,t,r,d,u,c){this.storeService=e,this.translateService=t,this.utilsService=r,this.dialog=d,this.authService=u,this.initAuthService=c,this.copyrightTextColor=this.storeService.getProperty("theme").footer_copyright_text_color,this.footerColumns=[],this.copyrightItems=[],this.currentYear=(new Date).getFullYear(),this.containsLogos=!1,this.headersTextColor=this.storeService.getProperty("theme").footer_headers_text_color,this.linksTextColor=this.storeService.getProperty("theme").footer_links_text_color,this.githubRepository=this.storeService.getProperty("footer").github_releases,this.githubBackendRepository=this.storeService.getProperty("footer").github_backend_releases,this.bgColor=this.storeService.getProperty("theme").footer_bg_color,this.version="",this.backendVersion="",this.guiVersion="",this.language="en",this.columnContentHeight=0}ngOnInit(){this.translateService.onLangChange.subscribe(e=>{this.language=e.lang}),this.version=E(4147).i8,this.footerColumns=this.storeService.getProperty("footer").columns,this.guiVersion=E(4147).i8,this.utilsService.getPerunRPCVersion(!0).subscribe(e=>{this.backendVersion=e.match("\\bVersion:\\s*([^,\\s]+)")[1]}),this.footerColumns=this.storeService.getProperty("footer").columns;for(const e of this.footerColumns)e.logos?this.containsLogos=!0:25*e.elements.length>this.columnContentHeight&&(this.columnContentHeight=25*e.elements.length);this.copyrightItems=this.storeService.getProperty("footer").copyright_items}openDialog(e){const t=ln();"reportIssue"===e&&(t.width="550px",this.dialog.open(BR,t))}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ut),n.Y36(tn),n.Y36(Ti),n.Y36(on),n.Y36(Go),n.Y36(oA))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-footer"]],decls:13,vars:19,consts:[[1,"footer-container",3,"ngStyle"],[1,"footer-columns-container"],["class","footer-col mx-auto",3,"my-auto",4,"ngFor","ngForOf"],[1,"my-0","mt-3"],[1,"font-fix","text-center",3,"ngStyle"],[4,"ngFor","ngForOf"],["target","_blank",1,"text-decoration-none",3,"href","ngStyle"],[1,"footer-col","mx-auto"],[1,"font-weight-bold",3,"ngStyle"],[3,"ngStyle",4,"ngIf"],[3,"ngStyle"],[3,"href",4,"ngIf"],[4,"ngIf"],[3,"href"],["alt","image",3,"src"],["class","row-height",4,"ngFor","ngForOf"],[1,"row-height"],["class","material-icons align-bottom mr-1",3,"ngStyle",4,"ngIf"],["id","clickable",3,"ngStyle","click",4,"ngIf"],["target","_blank",3,"href","ngStyle",4,"ngIf"],[1,"material-icons","align-bottom","mr-1",3,"ngStyle"],["id","clickable",3,"ngStyle","click"],["target","_blank",3,"href","ngStyle"]],template:function(e,t){1&e&&(n.TgZ(0,"footer",0)(1,"div",1),n.YNc(2,XR,6,12,"div",2),n.qZA(),n._UZ(3,"hr",3),n.TgZ(4,"div",4),n._uU(5),n.YNc(6,KR,3,5,"span",5),n._uU(7,", web application: "),n.TgZ(8,"a",6),n._uU(9),n.qZA(),n._uU(10,", server: "),n.TgZ(11,"a",6),n._uU(12),n.qZA()()()),2&e&&(n.Q6J("ngStyle",n.VKq(11,eP,t.bgColor)),n.xp6(2),n.Q6J("ngForOf",t.footerColumns),n.xp6(2),n.Q6J("ngStyle",n.VKq(13,ec,t.copyrightTextColor)),n.xp6(1),n.hij(" \xa9 ",t.currentYear," Copyright: "),n.xp6(1),n.Q6J("ngForOf",t.copyrightItems),n.xp6(2),n.Q6J("href",t.githubRepository,n.LSH)("ngStyle",n.VKq(15,ec,t.copyrightTextColor)),n.xp6(1),n.Oqu(t.guiVersion),n.xp6(2),n.Q6J("href",t.githubBackendRepository,n.LSH)("ngStyle",n.VKq(17,ec,t.copyrightTextColor)),n.xp6(1),n.Oqu(t.backendVersion))},dependencies:[T.sg,T.O5,T.PC,$E,NR,VR],styles:["a[_ngcontent-%COMP%]{text-decoration:none}.font-fix[_ngcontent-%COMP%]{font-size:.8rem}.row-height[_ngcontent-%COMP%]{height:25px!important}.footer-col[_ngcontent-%COMP%]{padding-top:35px;white-space:nowrap;text-align:center}.wrap-content[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content}#clickable[_ngcontent-%COMP%]{cursor:pointer}.footer-columns-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-direction:column}@media (min-width: 768px){.footer-columns-container[_ngcontent-%COMP%]{flex-direction:row}}.footer-container[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content}"]}),i})();En("openClose",[ut("open",je({overflow:"hidden"})),ut("closed",je({height:"0px",overflow:"hidden"})),Ot("open <=> closed",[Rt(".3s ease-in")])]);const tP=En("flyInOut",[Ot(":enter",[je({transform:"translateX(100%)"}),Rt(".25s")]),Ot(":leave",[Rt(".5s",je({transform:"translateX(100%)"}))])]);En("rollInOut",[Ot(":enter",[je({height:"0px"}),Rt(".25s")]),Ot(":leave",[Rt(".25s",je({height:"0px"}))])]),En("routeAnimations",[Ot("* => *",[je({position:"relative"}),Br(":enter",[je({width:"100%",opacity:0})],{optional:!0}),Br(":leave",[je({position:"absolute",width:"100%",opacity:1}),Rt("0.15s",je({position:"absolute",width:"100%",opacity:0}))],{optional:!0}),Br(":enter",[je({position:"absolute",width:"100%",opacity:0}),Rt("0.15s",je({position:"absolute",width:"100%",opacity:1}))],{optional:!0})])]),En("tagsOpenClose",[ut("open",je({})),ut("closed",je({width:"0px",height:"0px"})),Ot("open <=> closed",[Rt(".3s ease-in")])]),En("switchAnimations",[Ot("true => false",[Br(":enter, :leave",je({})),dp([Br(":enter",[je({transform:"translateX(-100%)"}),Rt("1s ease-in-out",je({transform:"translateX(0%)"}))],{optional:!0}),Br(":leave",[je({transform:"translateX(0%)",position:"absolute"}),Rt("1s ease-in-out",je({transform:"translateX(100%)"}))],{optional:!0})])]),Ot("false => true",[Br(":enter, :leave",je({})),dp([Br(":enter",[je({transform:"translateX(100%)"}),Rt("1s ease-in-out",je({transform:"translateX(0%)"}))],{optional:!0}),Br(":leave",[je({transform:"translateX(0%)",position:"absolute"}),Rt("1s ease-in-out",je({transform:"translateX(-100%)"}))],{optional:!0})])])]),En("slideInOutLeft",[Ot(":enter",[je({transform:"translateX(-100%)",position:"relative"}),Rt("0.5s ease-in",je({transform:"translateX(0%)"}))]),Ot(":leave",[Rt("0.5s ease-in",je({transform:"translateX(-100%)"}))])]),En("slideInOutRight",[Ot(":enter",[je({transform:"translateX(100%)",position:"fixed"}),Rt("0.5s ease-in",je({transform:"translateX(0%)"}))]),Ot(":leave",[je({transform:"translateX(-100%)",position:"relative"}),Rt("0.5s ease-in",je({transform:"translateX(100%)"}))])]);let JE=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[T.ez]}),i})(),gA=(()=>{class i{transform(e){return[e.titleBefore,e.firstName,e.middleName,e.lastName,e.titleAfter].join(" ")}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=n.Yjl({name:"userFullName",type:i,pure:!0}),i})(),Xt=(()=>{class i{constructor(e,t){this.translate=e,this.storage=t}transform(e,t="en"){const r=this.storage.getProperty("custom_labels");if(r)for(const d of r)if(d.label===e)return d[t];return e}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(tn,16),n.Y36(Ut,16))},i.\u0275pipe=n.Yjl({name:"customTranslate",type:i,pure:!0}),i})();function nP(i,a){if(1&i&&(n.O4$(),n._UZ(0,"circle",4)),2&i){const e=n.oxw(),t=n.MAs(1);n.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+e._spinnerAnimationLabel)("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),n.uIk("r",e._getCircleRadius())}}function iP(i,a){if(1&i&&(n.O4$(),n._UZ(0,"circle",4)),2&i){const e=n.oxw(),t=n.MAs(1);n.Udp("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),n.uIk("r",e._getCircleRadius())}}const aP=Rl(class{constructor(i){this._elementRef=i}},"primary"),sP=new n.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function oP(){return{diameter:100}}});class Hn extends aP{constructor(a,e,t,r,d,u,c,o){super(a),this._document=t,this._diameter=100,this._value=0,this._resizeSubscription=Nt.w0.EMPTY,this.mode="determinate";const s=Hn._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),s.has(t.head)||s.set(t.head,new Set([100])),this._noopAnimations="NoopAnimations"===r&&!!d&&!d._forceAnimations,"mat-spinner"===a.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),d&&(d.color&&(this.color=this.defaultColor=d.color),d.diameter&&(this.diameter=d.diameter),d.strokeWidth&&(this.strokeWidth=d.strokeWidth)),e.isBrowser&&e.SAFARI&&c&&u&&o&&(this._resizeSubscription=c.change(150).subscribe(()=>{"indeterminate"===this.mode&&o.run(()=>u.markForCheck())}))}get diameter(){return this._diameter}set diameter(a){this._diameter=Qt(a),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(a){this._strokeWidth=Qt(a)}get value(){return"determinate"===this.mode?this._value:0}set value(a){this._value=Math.max(0,Math.min(100,Qt(a)))}ngOnInit(){const a=this._elementRef.nativeElement;this._styleRoot=au(a)||this._document.head,this._attachStyleNode(),a.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const a=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${a} ${a}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_getCircleTransformOrigin(a){var e;const t=50*(null!==(e=a.currentScale)&&void 0!==e?e:1);return`${t}% ${t}%`}_attachStyleNode(){const a=this._styleRoot,e=this._diameter,t=Hn._diameters;let r=t.get(a);if(!r||!r.has(e)){const d=this._document.createElement("style");d.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),d.textContent=this._getAnimationText(),a.appendChild(d),r||(r=new Set,t.set(a,r)),r.add(e)}}_getAnimationText(){const a=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*a).replace(/END_VALUE/g,""+.2*a).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}Hn._diameters=new WeakMap,Hn.\u0275fac=function(a){return new(a||Hn)(n.Y36(n.SBq),n.Y36(Qn),n.Y36(T.K0,8),n.Y36(n.QbO,8),n.Y36(sP),n.Y36(n.sBO),n.Y36(Us),n.Y36(n.R0b))},Hn.\u0275cmp=n.Xpm({type:Hn,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(a,e){2&a&&(n.uIk("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.Udp("width",e.diameter,"px")("height",e.diameter,"px"),n.ekj("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[n.qOj],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(a,e){1&a&&(n.O4$(),n.TgZ(0,"svg",0,1),n.YNc(2,nP,1,11,"circle",2),n.YNc(3,iP,1,9,"circle",3),n.qZA()),2&a&&(n.Udp("width",e.diameter,"px")("height",e.diameter,"px"),n.Q6J("ngSwitch","indeterminate"===e.mode),n.uIk("viewBox",e._getViewBox()),n.xp6(2),n.Q6J("ngSwitchCase",!0),n.xp6(1),n.Q6J("ngSwitchCase",!1))},dependencies:[T.RF,T.n9],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:rgba(0,0,0,0);transition:stroke-dashoffset 225ms linear}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}.mat-progress-spinner[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-progress-spinner._mat-animation-noopable svg,.mat-progress-spinner._mat-animation-noopable circle{animation:none;transition: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)}}"],encapsulation:2,changeDetection:0});let ef=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[wt,T.ez,wt]}),i})(),_A=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[eo,T.ez]}),i})(),cP=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[T.ez,Gs,Uo,Xs,Kp,po,ef,eo,_A]}),i})();class dP{isErrorState(a){return!(!a?.invalid||!a?.dirty)}}const QE=(i,a,e,t=500)=>r=>(0,Ol.H)(t).pipe((0,An.w)(()=>(e.dontHandleErrorForNext(),i&&"No namespace"!==i?a.checkPasswordStrength({password:r.value,namespace:i},!0):(0,Ee.of)(null))),(0,Mt.U)(()=>null),(0,Fn.K)(d=>{const u={backendError:d.message.substring(d.message.indexOf(":")+1)};return(0,Ee.of)(u)}));function uP(i,a){1&i&&n._UZ(0,"mat-spinner",12),2&i&&n.Q6J("diameter",18)}function hP(i,a){if(1&i&&(n.TgZ(0,"mat-icon",13),n._uU(1," error "),n.qZA()),2&i){const e=n.oxw();n.Q6J("matTooltip",e.getErrorTooltip())("matTooltipDisabled",!e.formGroup.get("passwordCtrl").hasError("backendError"))}}function pP(i,a){1&i&&(n.TgZ(0,"mat-error"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function fP(i,a){if(1&i&&(n.TgZ(0,"mat-error",14),n._uU(1),n.qZA()),2&i){const e=n.oxw();n.Q6J("matTooltip",e.getErrorTooltip()),n.xp6(1),n.Oqu(e.getErrorTooltip())}}function mP(i,a){1&i&&(n.TgZ(0,"mat-error"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function gP(i,a){1&i&&(n.TgZ(0,"mat-error"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PWD_DONT_MATCH")))}let XE=(()=>{class i{constructor(e,t,r){this.translator=e,this.usersManagerService=t,this.store=r,this.passwordRequired=!0,this.tooltipPwdViaEmail=!1,this.tooltipPwdDisabledForNamespace=!1,this.language="en",this.passwordRequirement=null,this.showNewPassword=!1,this.showPasswordConfirm=!1,this.passwordStateMatcher=new dP,this.allPasswordRequirements=this.store.getProperty("password_help")}ngOnInit(){window.location.href.includes("/profile")?this.usersManagerService.getRichUserWithAttributes(this.store.getPerunPrincipal().userId).subscribe(e=>{const t=e.userAttributes.find(r=>"preferredLanguage"===r.friendlyName);this.language=t?.value??"en","en"!==this.language&&(this.allPasswordRequirements=this.store.getProperty("en"===this.language?"password_help":"password_help_cs")),this.changeHelp()}):this.changeHelp()}ngOnChanges(){this.allPasswordRequirements=this.store.getProperty("en"===this.language?"password_help":"password_help_cs"),this.changeHelp()}getPasswordDisabledTooltip(){return this.translator.instant(this.tooltipPwdViaEmail?"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.TOOLTIP_PASSWORD_VIA_EMAIL":"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.TOOLTIP_PASSWORD_DISABLED")}getErrorTooltip(){let e=this.formGroup.get("passwordCtrl").getError("backendError");return e&&(e=e.replace(":null","")),e}changeHelp(){this.passwordRequirement=this.allPasswordRequirements[this.namespace],this.passwordRequirement||(this.passwordRequirement=this.allPasswordRequirements.default)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(tn),n.Y36(li),n.Y36(Ut))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-password-form"]],inputs:{formGroup:"formGroup",passwordRequired:"passwordRequired",tooltipPwdViaEmail:"tooltipPwdViaEmail",tooltipPwdDisabledForNamespace:"tooltipPwdDisabledForNamespace",namespace:"namespace",language:"language"},features:[n.TTD],decls:21,vars:23,consts:[[3,"formGroup"],["matTooltipPosition","left",1,"max-width",3,"matTooltip","matTooltipDisabled"],["data-cy","passwd-input","matInput","","formControlName","passwordCtrl",3,"type","required","errorStateMatcher","placeholder"],["matSuffix","","class","input-spinner",3,"diameter",4,"ngIf"],["matSuffix","",3,"click"],["color","warn","matSuffix","","class","error-icon",3,"matTooltip","matTooltipDisabled",4,"ngIf"],[4,"ngIf"],["matTooltipPosition","after",3,"matTooltip",4,"ngIf"],[1,"max-width"],["data-cy","confirm-passwd-input","matInput","","formControlName","passwordAgainCtrl",3,"type","required"],["alert_type","info"],[3,"innerHTML"],["matSuffix","",1,"input-spinner",3,"diameter"],["color","warn","matSuffix","",1,"error-icon",3,"matTooltip","matTooltipDisabled"],["matTooltipPosition","after",3,"matTooltip"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"mat-form-field",1),n._UZ(2,"input",2),n.ALo(3,"translate"),n.YNc(4,uP,1,1,"mat-spinner",3),n.TgZ(5,"mat-icon",4),n.NdJ("click",function(){return t.showNewPassword=!t.showNewPassword}),n._uU(6),n.qZA(),n.YNc(7,hP,2,2,"mat-icon",5),n.YNc(8,pP,3,3,"mat-error",6),n.YNc(9,fP,2,2,"mat-error",7),n.qZA(),n.TgZ(10,"mat-form-field",8)(11,"mat-label"),n._uU(12),n.ALo(13,"translate"),n.qZA(),n._UZ(14,"input",9),n.TgZ(15,"mat-icon",4),n.NdJ("click",function(){return t.showPasswordConfirm=!t.showPasswordConfirm}),n._uU(16),n.qZA(),n.YNc(17,mP,3,3,"mat-error",6),n.YNc(18,gP,3,3,"mat-error",6),n.qZA(),n.TgZ(19,"perun-web-apps-alert",10),n._UZ(20,"div",11),n.qZA()()),2&e&&(n.Q6J("formGroup",t.formGroup),n.xp6(1),n.Q6J("matTooltip",t.getPasswordDisabledTooltip())("matTooltipDisabled",t.formGroup.get("passwordCtrl").enabled||t.tooltipPwdDisabledForNamespace),n.xp6(1),n.s9C("placeholder",n.lcZ(3,19,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD")),n.Q6J("type",t.showNewPassword?"text":"password")("required",t.passwordRequired)("errorStateMatcher",t.passwordStateMatcher),n.xp6(2),n.Q6J("ngIf",t.formGroup.get("passwordCtrl").pending),n.xp6(2),n.hij(" ",t.showNewPassword?"visibility_off":"visibility"," "),n.xp6(1),n.Q6J("ngIf",t.formGroup.get("passwordCtrl").dirty&&null!==t.formGroup.get("passwordCtrl").errors),n.xp6(1),n.Q6J("ngIf",t.formGroup.get("passwordCtrl").hasError("required")),n.xp6(1),n.Q6J("ngIf",t.formGroup.get("passwordCtrl").hasError("backendError")),n.xp6(3),n.Oqu(n.lcZ(13,21,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD_AGAIN")),n.xp6(2),n.Q6J("type",t.showPasswordConfirm?"text":"password")("required",t.passwordRequired),n.xp6(2),n.hij(" ",t.showPasswordConfirm?"visibility_off":"visibility"," "),n.xp6(1),n.Q6J("ngIf",t.formGroup.get("passwordAgainCtrl").hasError("required")),n.xp6(1),n.Q6J("ngIf",t.formGroup.get("passwordAgainCtrl").hasError("noPasswordMatch")),n.xp6(2),n.Q6J("innerHTML",t.passwordRequirement,n.oJD))},dependencies:[T.O5,Na,di,as,X0,yr,_i,Ai,cd,Nr,Qs,kp,ji,Hn,zn,yi,Ke],styles:[".max-width[_ngcontent-%COMP%]{width:100%!important}.input-spinner[_ngcontent-%COMP%]{float:right;margin-left:5px}.error-icon[_ngcontent-%COMP%]{margin-left:5px}mat-icon[_ngcontent-%COMP%]:hover{cursor:default}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper{padding-bottom:0}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-underline{position:static!important;position:initial!important;display:block;margin-top:-1px}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper, [_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-ripple{position:static!important;position:initial!important;display:table}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper{min-height:calc(1em + 1px)}"]}),i})();function vP(i,a){1&i&&n._UZ(0,"mat-spinner",7)}function TP(i,a){1&i&&(n.TgZ(0,"mat-error"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_ERROR")))}function xP(i,a){1&i&&(n.TgZ(0,"mat-error"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_ERROR")))}function SP(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div",8)(1,"mat-form-field")(2,"mat-label"),n._uU(3),n.ALo(4,"translate"),n.qZA(),n.TgZ(5,"input",9,10),n.NdJ("ngModelChange",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.subject=r)}),n.qZA(),n.YNc(7,TP,3,3,"mat-error",11),n.qZA(),n.TgZ(8,"mat-form-field")(9,"mat-label"),n._uU(10),n.ALo(11,"translate"),n.qZA(),n.TgZ(12,"textarea",12,13),n.NdJ("ngModelChange",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.message=r)}),n.ALo(14,"translate"),n._uU(15," "),n.qZA(),n.YNc(16,xP,3,3,"mat-error",11),n.qZA()()}if(2&i){const e=n.MAs(6),t=n.MAs(13),r=n.oxw();n.xp6(3),n.Oqu(n.lcZ(4,7,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT")),n.xp6(2),n.Q6J("ngModel",r.subject),n.xp6(2),n.Q6J("ngIf",e.invalid),n.xp6(3),n.Oqu(n.lcZ(11,9,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE")),n.xp6(2),n.s9C("placeholder",n.lcZ(14,11,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_PLACEHOLDER")),n.Q6J("ngModel",r.message),n.xp6(4),n.Q6J("ngIf",t.invalid)}}let EP=(()=>{class i{constructor(e,t,r,d,u,c){this.dialogRef=e,this.translate=t,this.notificator=r,this.rtMessages=d,this.data=u,this.storeService=c,this.message="",this.subject="",this.methodRegexp=/(\w+\/\w+)$/g,this.loading=!1}ngOnInit(){this.data?.error?.errorId&&(this.subject="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_VALUE"),this.parseMethod(this.data.error.call)," (",this.data.error.errorId,")"))}sendBugReport(){this.loading=!0,this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(e=>{this.dialogRef.afterClosed().subscribe(()=>{const t="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS1"),e.ticketNumber.toString(),this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS2"));this.notificator.showSuccess(t)}),this.dialogRef.close()},()=>{this.loading=!1,this.dialogRef.afterClosed().subscribe(()=>{})})}getFullEmailBody(){const e=this.storeService.getProperty("config");let t=this.message+"\n------------------------\nTechnical details:\n\n"+this.data.error.errorId;if(t=t.concat(this.data.error.type?" "+this.data.error.type+"\n":"\n"),t=t.concat(this.data.error.message,"\n","Perun instance: ",e,"\n","Request:\n",this.data.error.urlWithParams,"\n\n"),this.data.error.payload){const r=/"password":".+?"/;let d=JSON.stringify(this.data.error.payload);d=d.replace(r,'"password":"####"'),t=t.concat("Payload:\n"+d+"\n\n")}return t=t.concat("Sent from new Perun Gui, version: ",E(4147).i8),t.split("\n").join("\n ")}parseMethod(e){return e&&this.methodRegexp.exec(e)[1]}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ln),n.Y36(tn),n.Y36(Mr),n.Y36(fo),n.Y36(ni),n.Y36(Ut))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-bug-report-dialog"]],decls:13,vars:12,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","",3,"ngModel","ngModelChange"],["subjectModel","ngModel"],[4,"ngIf"],["matInput","","required","",3,"ngModel","placeholder","ngModelChange"],["messageModel","ngModel"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.qZA(),n.YNc(3,vP,1,0,"mat-spinner",1),n.YNc(4,SP,17,13,"div",2),n.TgZ(5,"div",3)(6,"div",4)(7,"button",5),n.NdJ("click",function(){return t.dialogRef.close()}),n._uU(8),n.ALo(9,"translate"),n.qZA(),n.TgZ(10,"button",6),n.NdJ("click",function(){return t.sendBugReport()}),n._uU(11),n.ALo(12,"translate"),n.qZA()()()),2&e&&(n.xp6(1),n.Oqu(n.lcZ(2,6,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.TITLE")),n.xp6(2),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading),n.xp6(4),n.hij(" ",n.lcZ(9,8,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.CANCEL")," "),n.xp6(2),n.Q6J("disabled",""===t.message||""===t.subject||t.loading),n.xp6(1),n.hij(" ",n.lcZ(12,10,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SEND")," "))},dependencies:[T.O5,Xn,ii,Un,Ht,Na,di,as,_i,Ai,Nr,ua,ji,Hn,Ke],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),i})(),DP=(()=>{class i{constructor(e,t,r){this.dialogRef=e,this.dialog=t,this.data=r}onCloseClick(){this.dialogRef.close()}onBugReportClick(){this.dialogRef.afterClosed().subscribe(()=>{const e=ln();e.width="550px",e.data={error:this.data.error},e.autoFocus=!1,this.dialog.open(EP,e)}),this.dialogRef.close()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ln),n.Y36(on),n.Y36(ni))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-notification-dialog"]],decls:12,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"hidden","click"],["autofocus","","mat-button","",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.qZA(),n.TgZ(2,"div",1),n._uU(3),n.qZA(),n.TgZ(4,"div",2)(5,"div",3)(6,"button",4),n.NdJ("click",function(){return t.onBugReportClick()}),n._uU(7),n.ALo(8,"translate"),n.qZA(),n.TgZ(9,"button",5),n.NdJ("click",function(){return t.onCloseClick()}),n._uU(10),n.ALo(11,"translate"),n.qZA()()()),2&e&&(n.xp6(1),n.Oqu(t.data.title),n.xp6(2),n.hij(" ",t.data.description,"\n"),n.xp6(3),n.Q6J("hidden","error"!==t.data.type),n.xp6(1),n.hij(" ",n.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_BUG_REPORT")," "),n.xp6(3),n.hij(" ",n.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_CLOSE")," "))},dependencies:[Xn,ii,Un,Ht,Ke]}),i})();const LP=[[["caption"]],[["colgroup"],["col"]]],HP=["caption","colgroup, col"];function jv(i){return class extends i{constructor(...a){super(...a),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(a){const e=this._sticky;this._sticky=Ge(a),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const a=this._hasStickyChanged;return this._hasStickyChanged=!1,a}resetStickyChanged(){this._hasStickyChanged=!1}}}const tf=new n.OlP("CDK_TABLE");let nf=(()=>{class i{constructor(e){this.template=e}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.Rgc))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkCellDef",""]]}),i})(),rf=(()=>{class i{constructor(e){this.template=e}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.Rgc))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkHeaderCellDef",""]]}),i})(),bA=(()=>{class i{constructor(e){this.template=e}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.Rgc))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkFooterCellDef",""]]}),i})();class OP{}const IP=jv(OP);let tc=(()=>{class i extends IP{constructor(e){super(),this._table=e,this._stickyEnd=!1}get name(){return this._name}set name(e){this._setNameInput(e)}get stickyEnd(){return this._stickyEnd}set stickyEnd(e){const t=this._stickyEnd;this._stickyEnd=Ge(e),this._hasStickyChanged=t!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(tf,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkColumnDef",""]],contentQueries:function(e,t,r){if(1&e&&(n.Suo(r,nf,5),n.Suo(r,rf,5),n.Suo(r,bA,5)),2&e){let d;n.iGM(d=n.CRH())&&(t.cell=d.first),n.iGM(d=n.CRH())&&(t.headerCell=d.first),n.iGM(d=n.CRH())&&(t.footerCell=d.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[n._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:i}]),n.qOj]}),i})();class Fv{constructor(a,e){e.nativeElement.classList.add(...a._columnCssClassName)}}let zv=(()=>{class i extends Fv{constructor(e,t){super(e,t)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(tc),n.Y36(n.SBq))},i.\u0275dir=n.lG2({type:i,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[n.qOj]}),i})(),Uv=(()=>{class i extends Fv{constructor(e,t){var r;if(super(e,t),1===(null===(r=e._table)||void 0===r?void 0:r._elementRef.nativeElement.nodeType)){const d=e._table._elementRef.nativeElement.getAttribute("role");t.nativeElement.setAttribute("role","grid"===d||"treegrid"===d?"gridcell":"cell")}}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(tc),n.Y36(n.SBq))},i.\u0275dir=n.lG2({type:i,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[n.qOj]}),i})();class eD{constructor(){this.tasks=[],this.endTasks=[]}}const qv=new n.OlP("_COALESCED_STYLE_SCHEDULER");let tD=(()=>{class i{constructor(e){this._ngZone=e,this._currentSchedule=null,this._destroyed=new Le.x}schedule(e){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(e)}scheduleEnd(e){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(e)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new eD,this._getScheduleObservable().pipe(rt(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const e=this._currentSchedule;this._currentSchedule=new eD;for(const t of e.tasks)t();for(const t of e.endTasks)t()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,Se.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,ht.q)(1))}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(n.R0b))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})(),Yv=(()=>{class i{constructor(e,t){this.template=e,this._differs=t}ngOnChanges(e){if(!this._columnsDiffer){const t=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(t).create(),this._columnsDiffer.diff(t)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof hg?e.headerCell.template:this instanceof pg?e.footerCell.template:e.cell.template}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.Rgc),n.Y36(n.ZZ4))},i.\u0275dir=n.lG2({type:i,features:[n.TTD]}),i})();class BP extends Yv{}const NP=jv(BP);let hg=(()=>{class i extends NP{constructor(e,t,r){super(e,t),this._table=r}ngOnChanges(e){super.ngOnChanges(e)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.Rgc),n.Y36(n.ZZ4),n.Y36(tf,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[n.qOj,n.TTD]}),i})();class VP extends Yv{}const jP=jv(VP);let pg=(()=>{class i extends jP{constructor(e,t,r){super(e,t),this._table=r}ngOnChanges(e){super.ngOnChanges(e)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.Rgc),n.Y36(n.ZZ4),n.Y36(tf,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[n.qOj,n.TTD]}),i})(),AA=(()=>{class i extends Yv{constructor(e,t,r){super(e,t),this._table=r}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.Rgc),n.Y36(n.ZZ4),n.Y36(tf,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[n.qOj]}),i})(),nc=(()=>{class i{constructor(e){this._viewContainer=e,i.mostRecentCellOutlet=this}ngOnDestroy(){i.mostRecentCellOutlet===this&&(i.mostRecentCellOutlet=null)}}return i.mostRecentCellOutlet=null,i.\u0275fac=function(e){return new(e||i)(n.Y36(n.s_b))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkCellOutlet",""]]}),i})(),Wv=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&n.GkF(0,0)},dependencies:[nc],encapsulation:2}),i})(),$v=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&n.GkF(0,0)},dependencies:[nc],encapsulation:2}),i})(),yA=(()=>{class i{constructor(e){this.templateRef=e,this._contentClassName="cdk-no-data-row"}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.Rgc))},i.\u0275dir=n.lG2({type:i,selectors:[["ng-template","cdkNoDataRow",""]]}),i})();const nD=["top","bottom","left","right"];class FP{constructor(a,e,t,r,d=!0,u=!0,c){this._isNativeHtmlTable=a,this._stickCellCss=e,this.direction=t,this._coalescedStyleScheduler=r,this._isBrowser=d,this._needsPositionStickyOnElement=u,this._positionListener=c,this._cachedCellWidths=[],this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(a,e){const t=[];for(const r of a)if(r.nodeType===r.ELEMENT_NODE){t.push(r);for(let d=0;d{for(const r of t)this._removeStickyStyle(r,e)})}updateStickyColumns(a,e,t,r=!0){if(!a.length||!this._isBrowser||!e.some(p=>p)&&!t.some(p=>p))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const d=a[0],u=d.children.length,c=this._getCellWidths(d,r),o=this._getStickyStartColumnPositions(c,e),s=this._getStickyEndColumnPositions(c,t),l=e.lastIndexOf(!0),h=t.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const p="rtl"===this.direction,m=p?"right":"left",g=p?"left":"right";for(const f of a)for(let w=0;we[w]?f:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===h?[]:c.slice(h).map((f,w)=>t[w+h]?f:null).reverse()}))})}stickRows(a,e,t){if(!this._isBrowser)return;const r="bottom"===t?a.slice().reverse():a,d="bottom"===t?e.slice().reverse():e,u=[],c=[],o=[];for(let l=0,h=0;l{for(let p=0;p{e.some(r=>!r)?this._removeStickyStyle(t,["bottom"]):this._addStickyStyle(t,"bottom",0,!1)})}_removeStickyStyle(a,e){for(const r of e)a.style[r]="",a.classList.remove(this._borderCellCss[r]);nD.some(r=>-1===e.indexOf(r)&&a.style[r])?a.style.zIndex=this._getCalculatedZIndex(a):(a.style.zIndex="",this._needsPositionStickyOnElement&&(a.style.position=""),a.classList.remove(this._stickCellCss))}_addStickyStyle(a,e,t,r){a.classList.add(this._stickCellCss),r&&a.classList.add(this._borderCellCss[e]),a.style[e]=`${t}px`,a.style.zIndex=this._getCalculatedZIndex(a),this._needsPositionStickyOnElement&&(a.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(a){const e={top:100,bottom:10,left:1,right:1};let t=0;for(const r of nD)a.style[r]&&(t+=e[r]);return t?`${t}`:""}_getCellWidths(a,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;const t=[],r=a.children;for(let d=0;d0;d--)e[d]&&(t[d]=r,r+=a[d]);return t}}const Zv=new n.OlP("CDK_SPL");let wA=(()=>{class i{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.s_b),n.Y36(n.SBq))},i.\u0275dir=n.lG2({type:i,selectors:[["","rowOutlet",""]]}),i})(),MA=(()=>{class i{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.s_b),n.Y36(n.SBq))},i.\u0275dir=n.lG2({type:i,selectors:[["","headerRowOutlet",""]]}),i})(),CA=(()=>{class i{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.s_b),n.Y36(n.SBq))},i.\u0275dir=n.lG2({type:i,selectors:[["","footerRowOutlet",""]]}),i})(),vA=(()=>{class i{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.s_b),n.Y36(n.SBq))},i.\u0275dir=n.lG2({type:i,selectors:[["","noDataRowOutlet",""]]}),i})(),TA=(()=>{class i{constructor(e,t,r,d,u,c,o,s,l,h,p,m){this._differs=e,this._changeDetectorRef=t,this._elementRef=r,this._dir=u,this._platform=o,this._viewRepeater=s,this._coalescedStyleScheduler=l,this._viewportRuler=h,this._stickyPositioningListener=p,this._ngZone=m,this._onDestroy=new Le.x,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.contentChanged=new n.vpe,this.viewChange=new pt({start:0,end:Number.MAX_VALUE}),d||this._elementRef.nativeElement.setAttribute("role","table"),this._document=c,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(e){this._trackByFn=e}get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&this._switchDataSource(e)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(e){this._multiTemplateDataRows=Ge(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(e){this._fixedLayout=Ge(e),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((e,t)=>this.trackBy?this.trackBy(t.dataIndex,t.data):t),this._viewportRuler.change().pipe(rt(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,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(e=>{e.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),Cu(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const e=this._dataDiffer.diff(this._renderRows);if(!e)return this._updateNoDataRow(),void this.contentChanged.next();const t=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,t,(r,d,u)=>this._getEmbeddedViewArgs(r.item,u),r=>r.item.data,r=>{1===r.operation&&r.context&&this._renderCellTemplateForItem(r.record.item.rowDef,r.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(r=>{t.get(r.currentIndex).context.$implicit=r.item.data}),this._updateNoDataRow(),this._ngZone&&n.R0b.isInAngularZone()?this._ngZone.onStable.pipe((0,ht.q)(1),rt(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(e){this._customColumnDefs.add(e)}removeColumnDef(e){this._customColumnDefs.delete(e)}addRowDef(e){this._customRowDefs.add(e)}removeRowDef(e){this._customRowDefs.delete(e)}addHeaderRowDef(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}removeHeaderRowDef(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}addFooterRowDef(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}removeFooterRowDef(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}setNoDataRow(e){this._customNoDataRow=e}updateStickyHeaderRowStyles(){const e=this._getRenderedRows(this._headerRowOutlet),r=this._elementRef.nativeElement.querySelector("thead");r&&(r.style.display=e.length?"":"none");const d=this._headerRowDefs.map(u=>u.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,d,"top"),this._headerRowDefs.forEach(u=>u.resetStickyChanged())}updateStickyFooterRowStyles(){const e=this._getRenderedRows(this._footerRowOutlet),r=this._elementRef.nativeElement.querySelector("tfoot");r&&(r.style.display=e.length?"":"none");const d=this._footerRowDefs.map(u=>u.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,d,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,d),this._footerRowDefs.forEach(u=>u.resetStickyChanged())}updateStickyColumnStyles(){const e=this._getRenderedRows(this._headerRowOutlet),t=this._getRenderedRows(this._rowOutlet),r=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...t,...r],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((d,u)=>{this._addStickyColumnStyles([d],this._headerRowDefs[u])}),this._rowDefs.forEach(d=>{const u=[];for(let c=0;c{this._addStickyColumnStyles([d],this._footerRowDefs[u])}),Array.from(this._columnDefsByName.values()).forEach(d=>d.resetStickyChanged())}_getAllRenderRows(){const e=[],t=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let r=0;r{const c=r&&r.has(u)?r.get(u):[];if(c.length){const o=c.shift();return o.dataIndex=t,o}return{data:e,rowDef:u,dataIndex:t}})}_cacheColumnDefs(){this._columnDefsByName.clear(),xA(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(t=>{this._columnDefsByName.has(t.name),this._columnDefsByName.set(t.name,t)})}_cacheRowDefs(){this._headerRowDefs=xA(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=xA(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=xA(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const e=this._rowDefs.filter(t=>!t.when);this._defaultRowDef=e[0]}_renderUpdatedColumns(){const e=(u,c)=>u||!!c.getColumnsDiff(),t=this._rowDefs.reduce(e,!1);t&&this._forceRenderDataRows();const r=this._headerRowDefs.reduce(e,!1);r&&this._forceRenderHeaderRows();const d=this._footerRowDefs.reduce(e,!1);return d&&this._forceRenderFooterRows(),t||r||d}_switchDataSource(e){this._data=[],Cu(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=e}_observeRenderChanges(){if(!this.dataSource)return;let e;Cu(this.dataSource)?e=this.dataSource.connect(this):$t(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=(0,Ee.of)(this.dataSource)),this._renderChangeSubscription=e.pipe(rt(this._onDestroy)).subscribe(t=>{this._data=t||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,t)=>this._renderRow(this._headerRowOutlet,e,t)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,t)=>this._renderRow(this._footerRowOutlet,e,t)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,t){const r=Array.from(t.columns||[]).map(c=>this._columnDefsByName.get(c)),d=r.map(c=>c.sticky),u=r.map(c=>c.stickyEnd);this._stickyStyler.updateStickyColumns(e,d,u,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){const t=[];for(let r=0;r!d.when||d.when(t,e));else{let d=this._rowDefs.find(u=>u.when&&u.when(t,e))||this._defaultRowDef;d&&r.push(d)}return r}_getEmbeddedViewArgs(e,t){return{templateRef:e.rowDef.template,context:{$implicit:e.data},index:t}}_renderRow(e,t,r,d={}){const u=e.viewContainer.createEmbeddedView(t.template,d,r);return this._renderCellTemplateForItem(t,d),u}_renderCellTemplateForItem(e,t){for(let r of this._getCellTemplates(e))nc.mostRecentCellOutlet&&nc.mostRecentCellOutlet._viewContainer.createEmbeddedView(r,t);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const e=this._rowOutlet.viewContainer;for(let t=0,r=e.length;t{const r=this._columnDefsByName.get(t);return e.extractCellTemplate(r)}):[]}_applyNativeTableSections(){const e=this._document.createDocumentFragment(),t=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const r of t){const d=this._document.createElement(r.tag);d.setAttribute("role","rowgroup");for(const u of r.outlets)d.appendChild(u.elementRef.nativeElement);e.appendChild(d)}this._elementRef.nativeElement.appendChild(e)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const e=(t,r)=>t||r.hasStickyChanged();this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new FP(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:(0,Ee.of)()).pipe(rt(this._onDestroy)).subscribe(t=>{this._stickyStyler.direction=t,this.updateStickyColumnStyles()})}_getOwnDefs(e){return e.filter(t=>!t._table||t._table===this)}_updateNoDataRow(){const e=this._customNoDataRow||this._noDataRow;if(!e)return;const t=0===this._rowOutlet.viewContainer.length;if(t===this._isShowingNoDataRow)return;const r=this._noDataRowOutlet.viewContainer;if(t){const d=r.createEmbeddedView(e.templateRef),u=d.rootNodes[0];1===d.rootNodes.length&&u?.nodeType===this._document.ELEMENT_NODE&&(u.setAttribute("role","row"),u.classList.add(e._contentClassName))}else r.clear();this._isShowingNoDataRow=t}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.ZZ4),n.Y36(n.sBO),n.Y36(n.SBq),n.$8M("role"),n.Y36(Hi,8),n.Y36(T.K0),n.Y36(Qn),n.Y36(Il),n.Y36(qv),n.Y36(Us),n.Y36(Zv,12),n.Y36(n.R0b,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(e,t,r){if(1&e&&(n.Suo(r,yA,5),n.Suo(r,tc,5),n.Suo(r,AA,5),n.Suo(r,hg,5),n.Suo(r,pg,5)),2&e){let d;n.iGM(d=n.CRH())&&(t._noDataRow=d.first),n.iGM(d=n.CRH())&&(t._contentColumnDefs=d),n.iGM(d=n.CRH())&&(t._contentRowDefs=d),n.iGM(d=n.CRH())&&(t._contentHeaderRowDefs=d),n.iGM(d=n.CRH())&&(t._contentFooterRowDefs=d)}},viewQuery:function(e,t){if(1&e&&(n.Gf(wA,7),n.Gf(MA,7),n.Gf(CA,7),n.Gf(vA,7)),2&e){let r;n.iGM(r=n.CRH())&&(t._rowOutlet=r.first),n.iGM(r=n.CRH())&&(t._headerRowOutlet=r.first),n.iGM(r=n.CRH())&&(t._footerRowOutlet=r.first),n.iGM(r=n.CRH())&&(t._noDataRowOutlet=r.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(e,t){2&e&&n.ekj("cdk-table-fixed-layout",t.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[n._Bn([{provide:tf,useExisting:i},{provide:Il,useClass:Xc},{provide:qv,useClass:tD},{provide:Zv,useValue:null}])],ngContentSelectors:HP,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(n.F$t(LP),n.Hsn(0),n.Hsn(1,1),n.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[wA,MA,CA,vA],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),i})();function xA(i,a){return i.concat(Array.from(a))}let UP=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Kc]}),i})();const qP=[[["caption"]],[["colgroup"],["col"]]],YP=["caption","colgroup, col"];let io=(()=>{class i extends TA{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(e,t){2&e&&n.ekj("mat-table-fixed-layout",t.fixedLayout)},exportAs:["matTable"],features:[n._Bn([{provide:Il,useClass:Xc},{provide:TA,useExisting:i},{provide:tf,useExisting:i},{provide:qv,useClass:tD},{provide:Zv,useValue:null}]),n.qOj],ngContentSelectors:YP,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(n.F$t(qP),n.Hsn(0),n.Hsn(1,1),n.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[wA,MA,CA,vA],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-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:sticky !important}.mat-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),i})(),ls=(()=>{class i extends nf{}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["","matCellDef",""]],features:[n._Bn([{provide:nf,useExisting:i}]),n.qOj]}),i})(),cs=(()=>{class i extends rf{}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["","matHeaderCellDef",""]],features:[n._Bn([{provide:rf,useExisting:i}]),n.qOj]}),i})(),ds=(()=>{class i extends tc{get name(){return this._name}set name(e){this._setNameInput(e)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[n._Bn([{provide:tc,useExisting:i},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:i}]),n.qOj]}),i})(),us=(()=>{class i extends zv{}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[n.qOj]}),i})(),hs=(()=>{class i extends Uv{}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[n.qOj]}),i})(),ro=(()=>{class i extends hg{}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[n._Bn([{provide:hg,useExisting:i}]),n.qOj]}),i})(),ao=(()=>{class i extends AA{}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[n._Bn([{provide:AA,useExisting:i}]),n.qOj]}),i})(),so=(()=>{class i extends Wv{}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[n._Bn([{provide:Wv,useExisting:i}]),n.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&n.GkF(0,0)},dependencies:[nc],encapsulation:2}),i})(),oo=(()=>{class i extends $v{}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[n._Bn([{provide:$v,useExisting:i}]),n.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&n.GkF(0,0)},dependencies:[nc],encapsulation:2}),i})(),fg=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[UP,wt,wt]}),i})();class nk extends O0{constructor(a=[]){super(),this._renderData=new pt([]),this._filter=new pt(""),this._internalPageChanges=new Le.x,this._renderChangesSubscription=null,this.sortingDataAccessor=(e,t)=>{const r=e[t];if(E1(r)){const d=Number(r);return d<9007199254740991?d:r}return r},this.sortData=(e,t)=>{const r=t.active,d=t.direction;return r&&""!=d?e.sort((u,c)=>{let o=this.sortingDataAccessor(u,r),s=this.sortingDataAccessor(c,r);const l=typeof o,h=typeof s;l!==h&&("number"===l&&(o+=""),"number"===h&&(s+=""));let p=0;return null!=o&&null!=s?o>s?p=1:o{const r=Object.keys(e).reduce((u,c)=>u+e[c]+"\u25ec","").toLowerCase(),d=t.trim().toLowerCase();return-1!=r.indexOf(d)},this._data=new pt(a),this._updateChangeSubscription()}get data(){return this._data.value}set data(a){a=Array.isArray(a)?a:[],this._data.next(a),this._renderChangesSubscription||this._filterData(a)}get filter(){return this._filter.value}set filter(a){this._filter.next(a),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(a){this._sort=a,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(a){this._paginator=a,this._updateChangeSubscription()}_updateChangeSubscription(){var a;const e=this._sort?(0,kn.T)(this._sort.sortChange,this._sort.initialized):(0,Ee.of)(null),t=this._paginator?(0,kn.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,Ee.of)(null),d=(0,nr.a)([this._data,this._filter]).pipe((0,Mt.U)(([o])=>this._filterData(o))),u=(0,nr.a)([d,e]).pipe((0,Mt.U)(([o])=>this._orderData(o))),c=(0,nr.a)([u,t]).pipe((0,Mt.U)(([o])=>this._pageData(o)));null===(a=this._renderChangesSubscription)||void 0===a||a.unsubscribe(),this._renderChangesSubscription=c.subscribe(o=>this._renderData.next(o))}_filterData(a){return this.filteredData=null==this.filter||""===this.filter?a:a.filter(e=>this.filterPredicate(e,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(a){return this.sort?this.sortData(a.slice(),this.sort):a}_pageData(a){if(!this.paginator)return a;const e=this.paginator.pageIndex*this.paginator.pageSize;return a.slice(e,e+this.paginator.pageSize)}_updatePaginator(a){Promise.resolve().then(()=>{const e=this.paginator;if(e&&(e.length=a,e.pageIndex>0)){const t=Math.ceil(e.length/e.pageSize)-1||0,r=Math.min(e.pageIndex,t);r!==e.pageIndex&&(e.pageIndex=r,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){var a;null===(a=this._renderChangesSubscription)||void 0===a||a.unsubscribe(),this._renderChangesSubscription=null}}class Zo extends nk{}function ik(i,a){1&i&&n._UZ(0,"mat-spinner",3)}function rk(i,a){1&i&&n._UZ(0,"th",15)}function ak(i,a){if(1&i&&(n.TgZ(0,"td",16),n._uU(1),n.qZA()),2&i){const e=a.$implicit;n.xp6(1),n.hij(" ",e.userExtSource.extSource.name," ")}}function sk(i,a){1&i&&n._UZ(0,"tr",17)}function ok(i,a){1&i&&n._UZ(0,"tr",18)}function lk(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div")(1,"div",4)(2,"p"),n._uU(3),n.ALo(4,"translate"),n.ALo(5,"customTranslate"),n.qZA(),n.TgZ(6,"div",5),n._uU(7),n.ALo(8,"translate"),n.ALo(9,"customTranslate"),n.qZA(),n.TgZ(10,"table",6),n.ynx(11,7),n.YNc(12,rk,1,0,"th",8),n.YNc(13,ak,2,1,"td",9),n.BQk(),n.YNc(14,sk,1,0,"tr",10),n.YNc(15,ok,1,0,"tr",11),n.qZA()(),n.TgZ(16,"div",12)(17,"button",13),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onCancel())}),n._uU(18),n.ALo(19,"translate"),n.ALo(20,"customTranslate"),n.qZA(),n.TgZ(21,"button",14),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onSubmit())}),n._uU(22),n.ALo(23,"translate"),n.ALo(24,"customTranslate"),n.qZA()()()}if(2&i){const e=n.oxw();n.xp6(3),n.hij(" ",n.lcZ(4,7,n.lcZ(5,9,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.DESCRIPTION"))," "),n.xp6(4),n.hij(" ",n.lcZ(8,11,n.lcZ(9,13,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.ASK"))," "),n.xp6(3),n.Q6J("dataSource",e.dataSource),n.xp6(4),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns),n.xp6(3),n.hij(" ",n.lcZ(19,15,n.lcZ(20,17,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.CANCEL"))," "),n.xp6(4),n.hij(" ",n.lcZ(23,19,n.lcZ(24,21,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.REMOVE"))," ")}}let ck=(()=>{class i{constructor(e,t,r,d,u){this.dialogRef=e,this.data=t,this.usersManagerService=r,this.translate=d,this.notificator=u,this.force=!1,this.displayedColumns=["name"]}ngOnInit(){this.theme=this.data.theme,this.dataSource=new Zo(this.data.extSources)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;const e=this.data.extSources.map(t=>t.userExtSource.id);this.usersManagerService.removeUserExtSources(this.data.userId,e,this.force).subscribe({next:()=>{this.loading=!1,this.data.showSuccess&&this.notificator.showSuccess(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.SUCCESS")),this.dialogRef.close(!0)},error:()=>this.loading=!1})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ln),n.Y36(ni),n.Y36(li),n.Y36(Dd),n.Y36(Mr))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-remove-user-ext-source-dialog"]],decls:7,vars:10,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"click"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA(),n.TgZ(4,"div"),n.YNc(5,ik,1,0,"mat-spinner",1),n.YNc(6,lk,25,23,"div",2),n.qZA()),2&e&&(n.xp6(1),n.hij(" ",n.lcZ(2,6,n.lcZ(3,8,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.TITLE")),"\n"),n.xp6(3),n.Tol(t.theme),n.xp6(1),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading))},dependencies:[T.O5,io,cs,ro,ds,ls,ao,us,hs,so,oo,Xn,ii,Un,Ht,Hn,Ke,Xt]}),i})();class dk{constructor(a,e){this._document=e;const t=this._textarea=this._document.createElement("textarea"),r=t.style;r.position="fixed",r.top=r.opacity="0",r.left="-999em",t.setAttribute("aria-hidden","true"),t.value=a,t.readOnly=!0,this._document.body.appendChild(t)}copy(){const a=this._textarea;let e=!1;try{if(a){const t=this._document.activeElement;a.select(),a.setSelectionRange(0,a.value.length),e=this._document.execCommand("copy"),t&&t.focus()}}catch{}return e}destroy(){const a=this._textarea;a&&(a.remove(),this._textarea=void 0)}}let uk=(()=>{class i{constructor(e){this._document=e}copy(e){const t=this.beginCopy(e),r=t.copy();return t.destroy(),r}beginCopy(e){return new dk(e,this._document)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(T.K0))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const hk=new n.OlP("CDK_COPY_TO_CLIPBOARD_CONFIG");let Jv=(()=>{class i{constructor(e,t,r){this._clipboard=e,this._ngZone=t,this.text="",this.attempts=1,this.copied=new n.vpe,this._pending=new Set,r&&null!=r.attempts&&(this.attempts=r.attempts)}copy(e=this.attempts){if(e>1){let t=e;const r=this._clipboard.beginCopy(this.text);this._pending.add(r);const d=()=>{const u=r.copy();u||!--t||this._destroyed?(this._currentTimeout=null,this._pending.delete(r),r.destroy(),this.copied.emit(u)):this._currentTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(d,1))};d()}else this.copied.emit(this._clipboard.copy(this.text))}ngOnDestroy(){this._currentTimeout&&clearTimeout(this._currentTimeout),this._pending.forEach(e=>e.destroy()),this._pending.clear(),this._destroyed=!0}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(uk),n.Y36(n.R0b),n.Y36(hk,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkCopyToClipboard",""]],hostBindings:function(e,t){1&e&&n.NdJ("click",function(){return t.copy()})},inputs:{text:["cdkCopyToClipboard","text"],attempts:["cdkCopyToClipboardAttempts","attempts"]},outputs:{copied:"cdkCopyToClipboardCopied"}}),i})(),rD=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})(),SA=(()=>{class i{constructor(e,t){this.dialogRef=e,this.data=t}ngOnInit(){this.value=this.data.value,this.title=this.data.title}onCancel(){this.dialogRef.close()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ln),n.Y36(ni))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-show-value-dialog"]],decls:12,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","overflow-hidden"],["cdkTextareaAutosize","","matInput","","readonly","",1,"w-100","display-fix"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"cdkCopyToClipboard"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.qZA(),n.TgZ(2,"div",1)(3,"textarea",2),n._uU(4),n.qZA()(),n.TgZ(5,"div",3)(6,"button",4),n.NdJ("click",function(){return t.onCancel()}),n._uU(7),n.ALo(8,"translate"),n.qZA(),n.TgZ(9,"button",5),n._uU(10),n.ALo(11,"translate"),n.qZA()()),2&e&&(n.xp6(1),n.Oqu(t.title),n.xp6(3),n.Oqu(t.value),n.xp6(3),n.hij(" ",n.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.SHOW_VALUE.CLOSE")," "),n.xp6(2),n.Q6J("cdkCopyToClipboard",t.value),n.xp6(1),n.hij(" ",n.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.SHOW_VALUE.COPY")," "))},dependencies:[Xn,ii,Un,Ht,mA,ji,Jv,Ke],styles:[".display-fix[_ngcontent-%COMP%]{overflow:hidden;border:none}"]}),i})(),pk=(()=>{class i{constructor(e,t){this.dialogRef=e,this.data=t,this.attributeValue=""}ngOnInit(){this.attributeValue=this.data.attribute.value[this.data.index]}cancel(){this.dialogRef.close()}submit(){this.data.attribute.value[this.data.index]=this.attributeValue,this.dialogRef.close(!0)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ln),n.Y36(ni))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-attribute-value-list-edit-dialog"]],decls:13,vars:10,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["cdkTextareaAutosize","true","matInput","",3,"ngModel","ngModelChange"],["mat-dialog-actions","",1,"d-flex"],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(n.TgZ(0,"h5",0),n._uU(1),n.ALo(2,"translate"),n.qZA(),n.TgZ(3,"div",1)(4,"mat-form-field")(5,"textarea",2),n.NdJ("ngModelChange",function(d){return t.attributeValue=d}),n.qZA()()(),n.TgZ(6,"div",3)(7,"button",4),n.NdJ("click",function(){return t.cancel()}),n._uU(8),n.ALo(9,"translate"),n.qZA(),n.TgZ(10,"button",5),n.NdJ("click",function(){return t.submit()}),n._uU(11),n.ALo(12,"translate"),n.qZA()()),2&e&&(n.xp6(1),n.hij(" ",n.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.TITLE"),"\n"),n.xp6(4),n.Q6J("ngModel",t.attributeValue),n.xp6(3),n.hij(" ",n.lcZ(9,6,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.CANCEL_BUTTON")," "),n.xp6(3),n.hij(" ",n.lcZ(12,8,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.SUBMIT_BUTTON")," "))},dependencies:[Xn,ii,Un,Ht,di,_i,Ai,ua,mA,ji,Ke]}),i})(),fk=(()=>{class i{constructor(e,t){this.dialogRef=e,this.data=t}cancel(){this.dialogRef.close()}submit(){this.dialogRef.close(!0)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ln),n.Y36(ni))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-attribute-value-list-delete-dialog"]],decls:16,vars:13,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],[1,"mt-2","font-weight-bold"],["mat-dialog-actions","",1,"d-flex"],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(n.TgZ(0,"h5",0),n._uU(1),n.ALo(2,"translate"),n.qZA(),n.TgZ(3,"div",1)(4,"div"),n._uU(5),n.ALo(6,"translate"),n.qZA(),n.TgZ(7,"div",2),n._uU(8),n.qZA()(),n.TgZ(9,"div",3)(10,"button",4),n.NdJ("click",function(){return t.cancel()}),n._uU(11),n.ALo(12,"translate"),n.qZA(),n.TgZ(13,"button",5),n.NdJ("click",function(){return t.submit()}),n._uU(14),n.ALo(15,"translate"),n.qZA()()),2&e&&(n.xp6(1),n.hij(" ",n.lcZ(2,5,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.TITLE"),"\n"),n.xp6(4),n.hij(" ",n.lcZ(6,7,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.DESCRIPTION")," "),n.xp6(3),n.hij(" ",t.data.name," "),n.xp6(3),n.hij(" ",n.lcZ(12,9,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.CANCEL_BUTTON")," "),n.xp6(3),n.hij(" ",n.lcZ(15,11,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.SUBMIT_BUTTON")," "))},dependencies:[Xn,ii,Un,Ht,Ke]}),i})();function mk(i,a){if(1&i&&(n.TgZ(0,"perun-web-apps-alert",9),n._uU(1),n.qZA()),2&i){const e=n.oxw();n.xp6(1),n.Oqu(e.pendingEmailsMessage)}}function gk(i,a){1&i&&(n.TgZ(0,"mat-error"),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,n.lcZ(3,3,"DIALOGS.CHANGE_EMAIL.EMAIL_ERROR"))))}let _k=(()=>{class i{constructor(e,t,r,d,u,c){this.dialogRef=e,this.data=t,this.translate=r,this.notificator=d,this.usersManagerService=u,this.authService=c,this.pendingMails=[],r.get("DIALOGS.CHANGE_EMAIL.SUCCESS").subscribe(o=>this.successMessage=o),r.get("DIALOGS.CHANGE_EMAIL.PENDING_MAILS_BEGIN").subscribe(o=>this.pendingEmailsMessageStart=o),r.get("DIALOGS.CHANGE_EMAIL.PENDING_MAILS_END").subscribe(o=>this.pendingEmailsMessageEnd=o)}ngOnInit(){this.emailControl=new Js(null,[bi.required,bi.pattern(/^(([^<>()[\].,;:\s@"]+(\.[^<>()[\].,;:\s@"]+)*)|(".+"))@(([^<>()[\].,;:\s@"]+\.)+[^<>()[\].,;:\s@"]{2,})$/i)]),this.usersManagerService.getPendingPreferredEmailChanges(this.data.userId).subscribe(e=>{this.pendingMails=e.filter((r,d,u)=>d===u.indexOf(r));let t="";this.pendingMails.forEach(r=>t+=`${r===this.pendingMails[0]?"":", "}${r}`),this.pendingEmailsMessage=this.pendingEmailsMessageStart+t+this.pendingEmailsMessageEnd})}onCancel(){this.dialogRef.close()}onSubmit(){const t=window.location.href.split("/");this.usersManagerService.requestPreferredEmailChange(this.data.userId,this.emailControl.value,this.translate.currentLang,"",t[0]+"//"+t[2],this.authService.getIdpFilter()).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.dialogRef.close()})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ln),n.Y36(ni),n.Y36(tn),n.Y36(Mr),n.Y36(li),n.Y36(Go))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-change-email-dialog"]],decls:21,vars:24,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","user-theme"],["alert_type","warn",4,"ngIf"],[1,"w-100"],["matInput","","required","",3,"placeholder","formControl"],[4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],["alert_type","warn"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA(),n.TgZ(4,"div",1),n.YNc(5,mk,2,1,"perun-web-apps-alert",2),n.TgZ(6,"mat-form-field",3)(7,"label",3),n._UZ(8,"input",4),n.ALo(9,"translate"),n.ALo(10,"customTranslate"),n.qZA(),n.YNc(11,gk,4,5,"mat-error",5),n.qZA()(),n.TgZ(12,"div",6)(13,"button",7),n.NdJ("click",function(){return t.onCancel()}),n._uU(14),n.ALo(15,"translate"),n.ALo(16,"customTranslate"),n.qZA(),n.TgZ(17,"button",8),n.NdJ("click",function(){return t.onSubmit()}),n._uU(18),n.ALo(19,"translate"),n.ALo(20,"customTranslate"),n.qZA()()),2&e&&(n.xp6(1),n.Oqu(n.lcZ(2,8,n.lcZ(3,10,"DIALOGS.CHANGE_EMAIL.TITLE"))),n.xp6(4),n.Q6J("ngIf",t.pendingMails.length),n.xp6(3),n.s9C("placeholder",n.lcZ(9,12,n.lcZ(10,14,"DIALOGS.CHANGE_EMAIL.INPUT_PLACEHOLDER"))),n.Q6J("formControl",t.emailControl),n.xp6(3),n.Q6J("ngIf",t.emailControl.invalid),n.xp6(3),n.hij(" ",n.lcZ(15,16,n.lcZ(16,18,"DIALOGS.CHANGE_EMAIL.CANCEL"))," "),n.xp6(3),n.Q6J("disabled",!t.emailControl.valid),n.xp6(1),n.hij(" ",n.lcZ(19,20,n.lcZ(20,22,"DIALOGS.CHANGE_EMAIL.CHANGE"))," "))},dependencies:[T.O5,Xn,ii,Un,Ht,Na,di,_i,Ai,Nr,ji,sr,yi,Ke,Xt]}),i})(),xk=(()=>{class i{constructor(e,t){this.dialogRef=e,this.router=t}onClose(){this.router.navigate([],{queryParamsHandling:"preserve"}),this.dialogRef.close()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ln),n.Y36(Dn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-mail-change-failed-dialog"]],decls:11,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["alert_type","error"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.qZA(),n.TgZ(3,"div",1)(4,"perun-web-apps-alert",2),n._uU(5),n.ALo(6,"translate"),n.qZA()(),n.TgZ(7,"div",3)(8,"button",4),n.NdJ("click",function(){return t.onClose()}),n._uU(9),n.ALo(10,"translate"),n.qZA()()),2&e&&(n.xp6(1),n.hij(" ",n.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.TITLE"),"\n"),n.xp6(4),n.Oqu(n.lcZ(6,5,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.INFO")),n.xp6(4),n.hij(" ",n.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.CLOSE")," "))},dependencies:[Xn,ii,Un,Ht,yi,Ke]}),i})();function Sk(i,a){1&i&&(n.TgZ(0,"mat-error"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.FIELD_EMPTY")))}function Ek(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"form",5)(1,"div",6)(2,"mat-form-field")(3,"mat-label"),n._uU(4),n.ALo(5,"translate"),n.qZA(),n._UZ(6,"input",7),n.TgZ(7,"mat-icon",8),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.showOldPassword=!r.showOldPassword)}),n._uU(8),n.qZA(),n.YNc(9,Sk,3,3,"mat-error",9),n.qZA(),n._UZ(10,"perun-web-apps-password-form",10),n.qZA()()}if(2&i){const e=n.oxw();n.Q6J("formGroup",e.formGroup),n.xp6(4),n.Oqu(n.lcZ(5,7,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.OLD_PASSWORD")),n.xp6(2),n.Q6J("type",e.showOldPassword?"text":"password"),n.xp6(2),n.hij(" ",e.showOldPassword?"visibility_off":"visibility"," "),n.xp6(1),n.Q6J("ngIf",e.oldPwd.hasError("required")),n.xp6(1),n.Q6J("formGroup",e.formGroup)("namespace",e.data.namespace)}}function Dk(i,a){1&i&&n._UZ(0,"mat-spinner",11)}function Lk(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div",12)(1,"div",13)(2,"button",14),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.close())}),n._uU(3),n.ALo(4,"translate"),n.qZA(),n.TgZ(5,"button",15),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.changePassword())}),n._uU(6),n.ALo(7,"translate"),n.qZA()()()}if(2&i){const e=n.oxw();n.xp6(3),n.hij(" ",n.lcZ(4,3,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.CANCEL")," "),n.xp6(2),n.Q6J("disabled",e.formGroup.invalid||e.formGroup.pending),n.xp6(1),n.hij(" ",n.lcZ(7,5,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.CHANGE")," ")}}let Hk=(()=>{class i{constructor(e,t,r,d,u,c,o){this.dialogRef=e,this.data=t,this._formBuilder=r,this.usersManagerService=d,this.apiRequestConfiguration=u,this.notificator=c,this.translate=o,this.showOldPassword=!1,o.get("SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.SUCCESS").subscribe(s=>this.successMessage=s)}ngOnInit(){this.formGroup=this._formBuilder.group({oldPasswordCtrl:["",bi.required],passwordCtrl:["",bi.required,[QE(this.data.namespace,this.usersManagerService,this.apiRequestConfiguration)]],passwordAgainCtrl:[""]},{validators:hE.passwordMatchValidator}),this.oldPwd=this.formGroup.get("oldPasswordCtrl"),this.newPwd=this.formGroup.get("passwordCtrl"),this.newPwdAgain=this.formGroup.get("passwordAgainCtrl")}close(){this.dialogRef.close(!1)}changePassword(){this.loading=!0,this.usersManagerService.changePasswordForLogin({login:this.data.login,namespace:this.data.namespace,newPassword:this.newPwd.value,oldPassword:this.oldPwd.value,checkOldPassword:!0}).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ln),n.Y36(ni),n.Y36(hd),n.Y36(li),n.Y36(cg),n.Y36(Mr),n.Y36(tn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-change-password-dialog"]],decls:7,vars:6,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","user-theme"],[3,"formGroup",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[3,"formGroup"],[1,"display-flex"],["formControlName","oldPasswordCtrl","matInput","","required","",3,"type"],["matSuffix","",3,"click"],[4,"ngIf"],[3,"formGroup","namespace"],[1,"ml-auto","mr-auto"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.qZA(),n.TgZ(3,"div",1),n.YNc(4,Ek,11,9,"form",2),n.YNc(5,Dk,1,0,"mat-spinner",3),n.qZA(),n.YNc(6,Lk,8,7,"div",4)),2&e&&(n.xp6(1),n.Oqu(n.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.TITLE")),n.xp6(3),n.Q6J("ngIf",!t.loading),n.xp6(1),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading))},dependencies:[T.O5,Xn,ii,Un,Ht,Na,di,as,X0,Mm,_i,Ai,cd,Nr,ji,Hn,Qs,kp,zn,XE,Ke],styles:[".display-flex[_ngcontent-%COMP%]{display:flex;flex-direction:column}.white-space-pre[_ngcontent-%COMP%]{white-space:pre}mat-icon[_ngcontent-%COMP%]:hover{cursor:default}"]}),i})();const Rk=["input"],Pk=function(i){return{enterDuration:i}},kk=["*"],Ok=new n.OlP("mat-radio-default-options",{providedIn:"root",factory:function Ik(){return{color:"accent"}}});let sD=0;const Bk={provide:ar,useExisting:(0,n.Gpc)(()=>cD),multi:!0};class oD{constructor(a,e){this.source=a,this.value=e}}const lD=new n.OlP("MatRadioGroup");let Nk=(()=>{class i{constructor(e){this._changeDetector=e,this._value=null,this._name="mat-radio-group-"+sD++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new n.vpe}get name(){return this._name}set name(e){this._name=e,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(e){this._labelPosition="before"===e?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(e){this._selected=e,this.value=e?e.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(e){this._disabled=Ge(e),this._markRadiosForCheck()}get required(){return this._required}set required(e){this._required=Ge(e),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(e=>{e.name=this.name,e._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(t=>{t.checked=this.value===t.value,t.checked&&(this._selected=t)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new oD(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(e=>e._markForCheck())}writeValue(e){this.value=e,this._changeDetector.markForCheck()}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetector.markForCheck()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.sBO))},i.\u0275dir=n.lG2({type:i,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}}),i})(),cD=(()=>{class i extends Nk{}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["mat-radio-group"]],contentQueries:function(e,t,r){if(1&e&&n.Suo(r,dD,5),2&e){let d;n.iGM(d=n.CRH())&&(t._radios=d)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[n._Bn([Bk,{provide:lD,useExisting:i}]),n.qOj]}),i})();class Vk{constructor(a){this._elementRef=a}}const jk=Ni(Vs(Vk));let Fk=(()=>{class i extends jk{constructor(e,t,r,d,u,c,o,s){super(t),this._changeDetector=r,this._focusMonitor=d,this._radioDispatcher=u,this._providerOverride=o,this._uniqueId="mat-radio-"+ ++sD,this.id=this._uniqueId,this.change=new n.vpe,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=e,this._noopAnimations="NoopAnimations"===c,s&&(this.tabIndex=Qt(s,0)),this._removeUniqueSelectionListener=u.listen((l,h)=>{l!==this.id&&h===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(e){const t=Ge(e);this._checked!==t&&(this._checked=t,t&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!t&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),t&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===e),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(e){this._labelPosition=e}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(e){this._setDisabled(Ge(e))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(e){this._required=Ge(e)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(e){this._color=e}get inputId(){return`${this.id||this._uniqueId}-input`}focus(e,t){t?this._focusMonitor.focusVia(this._inputElement,t,e):this._inputElement.nativeElement.focus(e)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name)}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{!e&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new oD(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(e){e.stopPropagation()}_onInputInteraction(e){if(e.stopPropagation(),!this.checked&&!this.disabled){const t=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),t&&this.radioGroup._emitChangeEvent())}}_setDisabled(e){this._disabled!==e&&(this._disabled=e,this._changeDetector.markForCheck())}_updateTabIndex(){const e=this.radioGroup;let t;if(t=e&&e.selected&&!this.disabled?e.selected===this?this.tabIndex:-1:this.tabIndex,t!==this._previousTabIndex){var r;const d=null===(r=this._inputElement)||void 0===r?void 0:r.nativeElement;d&&(d.setAttribute("tabindex",t+""),this._previousTabIndex=t)}}}return i.\u0275fac=function(e){n.$Z()},i.\u0275dir=n.lG2({type:i,viewQuery:function(e,t){if(1&e&&n.Gf(Rk,5),2&e){let r;n.iGM(r=n.CRH())&&(t._inputElement=r.first)}},inputs:{id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},features:[n.qOj]}),i})(),dD=(()=>{class i extends Fk{constructor(e,t,r,d,u,c,o,s){super(e,t,r,d,u,c,o,s)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(lD,8),n.Y36(n.SBq),n.Y36(n.sBO),n.Y36($r),n.Y36(n_),n.Y36(n.QbO,8),n.Y36(Ok,8),n.$8M("tabindex"))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(e,t){1&e&&n.NdJ("focus",function(){return t._inputElement.nativeElement.focus()}),2&e&&(n.uIk("tabindex",null)("id",t.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),n.ekj("mat-radio-checked",t.checked)("mat-radio-disabled",t.disabled)("_mat-animation-noopable",t._noopAnimations)("mat-primary","primary"===t.color)("mat-accent","accent"===t.color)("mat-warn","warn"===t.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[n.qOj],ngContentSelectors:kk,decls:13,vars:19,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input",3,"id","checked","disabled","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(e,t){if(1&e&&(n.F$t(),n.TgZ(0,"label",0,1)(2,"span",2),n._UZ(3,"span",3)(4,"span",4),n.TgZ(5,"input",5,6),n.NdJ("change",function(d){return t._onInputInteraction(d)})("click",function(d){return t._onInputClick(d)}),n.qZA(),n.TgZ(7,"span",7),n._UZ(8,"span",8),n.qZA()(),n.TgZ(9,"span",9)(10,"span",10),n._uU(11,"\xa0"),n.qZA(),n.Hsn(12),n.qZA()()),2&e){const r=n.MAs(1);n.uIk("for",t.inputId),n.xp6(5),n.Q6J("id",t.inputId)("checked",t.checked)("disabled",t.disabled)("required",t.required),n.uIk("name",t.name)("value",t.value)("aria-label",t.ariaLabel)("aria-labelledby",t.ariaLabelledby)("aria-describedby",t.ariaDescribedby),n.xp6(2),n.Q6J("matRippleTrigger",r)("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",n.VKq(17,Pk,t._noopAnimations?0:150)),n.xp6(2),n.ekj("mat-radio-label-before","before"==t.labelPosition)}},dependencies:[Jr],styles:['.mat-radio-button{display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-radio-label{-webkit-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;opacity:0;transition:transform ease 280ms,background-color ease 280ms,opacity linear 1ms 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5);opacity:1;transition:transform ease 280ms,background-color ease 280ms}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-label-content{-webkit-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none;top:0;left:0}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{opacity:0;position:absolute;top:0;left:0;margin:0;width:100%;height:100%;cursor:inherit;z-index:-1}.mat-radio-input:focus~.mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}'],encapsulation:2,changeDetection:0}),i})(),uD=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[ca,wt,wt]}),i})();function zk(i,a){1&i&&n._UZ(0,"mat-spinner",4)}function Uk(i,a){1&i&&(n.TgZ(0,"span",11),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ACTIVE_HINT")," "))}function qk(i,a){1&i&&(n.TgZ(0,"span",11),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.INACTIVE_HINT")," "))}function Yk(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"mat-radio-group",12),n.NdJ("ngModelChange",function(r){n.CHM(e);const d=n.oxw(2);return n.KtG(d.asyncValidation=r)}),n.TgZ(1,"span",13),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"mat-radio-button",14),n._uU(5),n.ALo(6,"translate"),n.qZA(),n.TgZ(7,"mat-radio-button",14),n._uU(8),n.ALo(9,"translate"),n.qZA()()}if(2&i){const e=n.oxw(2);n.Q6J("ngModel",e.asyncValidation),n.xp6(2),n.hij(" ",n.lcZ(3,6,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.VALIDATE")," : "),n.xp6(2),n.Q6J("value",!1),n.xp6(1),n.hij(" ",n.lcZ(6,8,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.SYNC")," "),n.xp6(2),n.Q6J("value",!0),n.xp6(1),n.hij(" ",n.lcZ(9,10,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ASYNC")," ")}}function Wk(i,a){1&i&&(n.TgZ(0,"span",11),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.SYNC_HINT")," "))}function Gk(i,a){1&i&&(n.TgZ(0,"span",11),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ASYNC_HINT")," "))}function $k(i,a){if(1&i&&(n.TgZ(0,"div",5)(1,"p",6),n._uU(2),n.TgZ(3,"span",7),n._uU(4),n.qZA(),n._uU(5),n.TgZ(6,"span",7),n._uU(7),n.qZA()(),n.TgZ(8,"p")(9,"strong",8),n._uU(10),n.ALo(11,"translate"),n.qZA(),n._uU(12),n.qZA(),n.TgZ(13,"p")(14,"strong",8),n._uU(15),n.ALo(16,"translate"),n.qZA(),n._uU(17),n.qZA(),n.YNc(18,Uk,3,3,"span",9),n.YNc(19,qk,3,3,"span",9),n.YNc(20,Yk,10,12,"mat-radio-group",10),n.YNc(21,Wk,3,3,"span",9),n.YNc(22,Gk,3,3,"span",9),n.qZA()),2&i){const e=n.oxw();n.xp6(2),n.hij(" ",e.group.name," "),n.xp6(2),n.hij("#",e.group.id,""),n.xp6(1),n.hij(" - ",e.resource.name," "),n.xp6(2),n.hij("#",e.resource.id,""),n.xp6(3),n.hij(" ",n.lcZ(11,13,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.CURRENT")," : "),n.xp6(2),n.hij(" ",e.status," "),n.xp6(3),n.hij(" ",n.lcZ(16,15,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.NEW")," : "),n.xp6(2),n.hij(" ",e.getReversedStatus()," "),n.xp6(1),n.Q6J("ngIf","INACTIVE"===e.status||"FAILED"===e.status),n.xp6(1),n.Q6J("ngIf","ACTIVE"===e.status),n.xp6(1),n.Q6J("ngIf","INACTIVE"===e.status||"FAILED"===e.status),n.xp6(1),n.Q6J("ngIf",("INACTIVE"===e.status||"FAILED"===e.status)&&!1===e.asyncValidation),n.xp6(1),n.Q6J("ngIf",("INACTIVE"===e.status||"FAILED"===e.status)&&!0===e.asyncValidation)}}function Zk(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div",15)(1,"button",16),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onCancel())}),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"button",17),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onSubmit())}),n._uU(5),n.ALo(6,"translate"),n.qZA()()}if(2&i){const e=n.oxw();n.xp6(2),n.hij(" ",n.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.CANCEL")," "),n.xp6(2),n.Q6J("disabled",e.loading),n.xp6(1),n.hij(" ",n.lcZ(6,5,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG."+("ACTIVE"===e.status?"DEACTIVATE":"ACTIVATE"))," ")}}let Jk=(()=>{class i{constructor(e,t,r,d){this.dialogRef=e,this.data=t,this.resourceService=r,this.groupService=d,this.loading=!1,this.asyncValidation=!1,this.resource=null,this.group=null}ngOnInit(){this.loading=!0,this.status=this.data.status,this.theme=this.data.theme,this.resourceService.getResourceById(this.data.resourceId).subscribe(e=>{this.resource=e,this.groupService.getGroupById(this.data.groupId).subscribe(t=>{this.group=t,this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,"ACTIVE"===this.status?this.resourceService.deactivateGroupResourceAssignment(this.data.groupId,this.data.resourceId).subscribe(()=>{this.dialogRef.close(!0),this.loading=!1},()=>this.loading=!1):this.resourceService.activateGroupResourceAssignment(this.data.groupId,this.data.resourceId,this.asyncValidation).subscribe(()=>{this.dialogRef.close(!0),this.loading=!1},()=>this.loading=!1)}getReversedStatus(){return"ACTIVE"===this.status?"INACTIVE":"ACTIVE"}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ln),n.Y36(ni),n.Y36(ia),n.Y36(zr))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-change-group-resource-assigment-dialog"]],decls:7,vars:9,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"mb-4"],[1,"text-muted","id-font"],[1,"mr-2"],["class","text-muted",4,"ngIf"],["class","d-flex flex-column mt-3",3,"ngModel","ngModelChange",4,"ngIf"],[1,"text-muted"],[1,"d-flex","flex-column","mt-3",3,"ngModel","ngModelChange"],[1,"font-weight-bold"],[3,"value"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["data-cy","change-status-button","mat-flat-button","","color","accent",3,"disabled","click"]],template:function(e,t){1&e&&(n.TgZ(0,"div")(1,"h1",0),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.YNc(4,zk,1,0,"mat-spinner",1),n.YNc(5,$k,23,17,"div",2),n.YNc(6,Zk,7,7,"div",3),n.qZA()),2&e&&(n.Tol(t.theme),n.xp6(2),n.hij(" ",n.lcZ(3,7,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.TITLE")," "),n.xp6(2),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading))},dependencies:[T.O5,Xn,ii,Un,Ht,Ai,ua,Hn,cD,dD,Ke],styles:[".id-font[_ngcontent-%COMP%]{font-size:1rem}"]}),i})();function Qk(i,a){if(1&i&&(n.TgZ(0,"mat-option",13),n._uU(1),n.qZA()),2&i){const e=a.$implicit,t=n.oxw();n.Q6J("value",t.selectedUnit),n.xp6(1),n.hij(" ",e," ")}}let Xk=(()=>{class i{constructor(e,t,r,d,u){this.dialogRef=e,this.data=t,this.rtMessagesService=r,this.notificator=d,this.translate=u,this.resource="",this.currentQuota="",this.units=["MiB","GiB","TiB"],this.selectedUnit="GiB",u.get("DIALOGS.REQUEST_DATA_QUOTA_CHANGE.SUCCESS").subscribe(c=>this.successMessage=c)}ngOnInit(){this.resource=this.data.resource.name,this.currentQuota=this.data.currentQuota,this.reasonControl=new Js(null,[bi.required]),this.newValueControl=new Js(null,[bi.required,bi.pattern("[1-9][0-9]*")])}onCancel(){this.dialogRef.close()}onSubmit(){const r=`QUOTA CHANGE REQUEST\u21b5 \u21b5 User: ${(new gA).transform(this.data.user)} (user ID: ${this.data.user.id})\u21b5 VO: ${this.data.vo.shortName} / ${this.data.vo.name} (vo ID: ${this.data.vo.id})\u21b5 Resource: ${this.data.resource.name} (resource ID: ${this.data.resource.id})\u21b5 Data quota\u21b5 Requested quota: ${this.newValueControl.value}\u21b5 Reason: ${this.reasonControl.value}\u21b5 \u21b5 \u21b5 -------------------------------------\u21b5 Sent from Perun GUI`;this.rtMessagesService.sentMessageToRTWithVo(this.data.vo.id,"QUOTA: Change request",r).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.dialogRef.close()})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ln),n.Y36(ni),n.Y36(fo),n.Y36(Mr),n.Y36(tn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-request-change-data-quota-dialog"]],decls:42,vars:42,consts:[["mat-dialog-title","",1,"mb-3"],[1,"user-theme"],[1,"column-size"],["fxLayout","row","fxFlexAlign","center center"],[1,"label-width"],["matInput","","required","","type","number",3,"placeholder","formControl"],[1,"select-width","mt-auto","mb-auto","ml-2",3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[1,"form-width"],["matInput","","required","","rows","4",3,"placeholder","formControl"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[3,"value"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA(),n.TgZ(4,"div",1)(5,"div")(6,"p",2),n._uU(7),n.ALo(8,"translate"),n.ALo(9,"customTranslate"),n.qZA(),n.TgZ(10,"p"),n._uU(11),n.qZA()(),n.TgZ(12,"div")(13,"p",2),n._uU(14),n.ALo(15,"translate"),n.ALo(16,"customTranslate"),n.qZA(),n.TgZ(17,"p"),n._uU(18),n.qZA()(),n.TgZ(19,"div",3)(20,"mat-form-field")(21,"label",4),n._UZ(22,"input",5),n.ALo(23,"translate"),n.ALo(24,"customTranslate"),n.qZA()(),n.TgZ(25,"mat-select",6),n.NdJ("valueChange",function(d){return t.selectedUnit=d}),n.YNc(26,Qk,2,2,"mat-option",7),n.qZA()(),n.TgZ(27,"div")(28,"mat-form-field",8)(29,"label",4),n._UZ(30,"textarea",9),n.ALo(31,"translate"),n.ALo(32,"customTranslate"),n.qZA()()(),n.TgZ(33,"div",10)(34,"button",11),n.NdJ("click",function(){return t.onCancel()}),n._uU(35),n.ALo(36,"translate"),n.ALo(37,"customTranslate"),n.qZA(),n.TgZ(38,"button",12),n.NdJ("click",function(){return t.onSubmit()}),n._uU(39),n.ALo(40,"translate"),n.ALo(41,"customTranslate"),n.qZA()()()),2&e&&(n.xp6(1),n.hij(" ",n.lcZ(2,14,n.lcZ(3,16,"SHARED_LIB.PERUN.COMPONENTS.REQUEST_DATA_QUOTA_CHANGE.TITLE")),"\n"),n.xp6(6),n.hij(" ",n.lcZ(8,18,n.lcZ(9,20,"SHARED_LIB.PERUN.COMPONENTS.REQUEST_DATA_QUOTA_CHANGE.RESOURCE"))," "),n.xp6(4),n.Oqu(t.resource),n.xp6(3),n.hij(" ",n.lcZ(15,22,n.lcZ(16,24,"SHARED_LIB.PERUN.COMPONENTS.REQUEST_DATA_QUOTA_CHANGE.CURRENT_QUOTA"))," "),n.xp6(4),n.Oqu(t.currentQuota),n.xp6(4),n.s9C("placeholder",n.lcZ(23,26,n.lcZ(24,28,"SHARED_LIB.PERUN.COMPONENTS.REQUEST_DATA_QUOTA_CHANGE.REQUESTED_QUOTA"))),n.Q6J("formControl",t.newValueControl),n.xp6(3),n.Q6J("value",t.selectedUnit),n.xp6(1),n.Q6J("ngForOf",t.units),n.xp6(4),n.s9C("placeholder",n.lcZ(31,30,n.lcZ(32,32,"SHARED_LIB.PERUN.COMPONENTS.REQUEST_DATA_QUOTA_CHANGE.REASON"))),n.Q6J("formControl",t.reasonControl),n.xp6(5),n.hij(" ",n.lcZ(36,34,n.lcZ(37,36,"SHARED_LIB.PERUN.COMPONENTS.REQUEST_DATA_QUOTA_CHANGE.CANCEL"))," "),n.xp6(3),n.Q6J("disabled",t.reasonControl.invalid),n.xp6(1),n.hij(" ",n.lcZ(40,38,n.lcZ(41,40,"SHARED_LIB.PERUN.COMPONENTS.REQUEST_DATA_QUOTA_CHANGE.SEND"))," "))},dependencies:[T.sg,Xn,Un,Ht,di,_i,Lp,Ai,Nr,ji,sr,fd,Fs,Ke,Xt],styles:[".column-size[_ngcontent-%COMP%]{width:10rem!important;font-weight:700}.form-width[_ngcontent-%COMP%]{width:100%;overflow:hidden}.label-width[_ngcontent-%COMP%]{width:100%}.select-width[_ngcontent-%COMP%]{width:4rem}.mat-input-underline.mat-form-field-underline[_ngcontent-%COMP%], .mat-input-ripple.mat-form-field-ripple[_ngcontent-%COMP%]{display:none}"]}),i})();function Kk(i,a){1&i&&(n.TgZ(0,"mat-error",8),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,n.lcZ(3,3,"DIALOGS.ADD_SSH.INVALID_TYPE"))))}class Jo{constructor(a,e,t){this.dialogRef=a,this.data=e,this.attributesManagerService=t}ngOnInit(){this.sshControl=new Js(null,[bi.required,bi.pattern(Jo.sshKeyPattern)])}onCancel(){this.dialogRef.close(!1)}onSubmit(){const a=this.data.attribute?.value??[],e=this.sshControl.value;a.includes(e)||a.push(e),this.data.attribute.value=a,this.attributesManagerService.setUserAttribute({user:this.data.userId,attribute:this.data.attribute}).subscribe(()=>{this.dialogRef.close(!0)},()=>{a.pop()})}}function eO(i,a){1&i&&n._UZ(0,"mat-spinner",4)}function tO(i,a){1&i&&n._UZ(0,"th",17)}function nO(i,a){if(1&i&&(n.TgZ(0,"td",18),n._uU(1),n.qZA()),2&i){const e=a.$implicit;n.xp6(1),n.Oqu(e)}}function iO(i,a){1&i&&n._UZ(0,"tr",19)}function rO(i,a){1&i&&n._UZ(0,"tr",20)}function aO(i,a){if(1&i&&(n.TgZ(0,"table",11),n.ynx(1,12),n.YNc(2,tO,1,0,"th",13),n.YNc(3,nO,2,1,"td",14),n.BQk(),n.YNc(4,iO,1,0,"tr",15),n.YNc(5,rO,1,0,"tr",16),n.qZA()),2&i){const e=n.oxw(2);n.Q6J("dataSource",e.dataSource),n.xp6(4),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns)}}function sO(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div",1)(1,"div",5)(2,"p"),n._uU(3),n.qZA(),n.TgZ(4,"div",6),n._uU(5),n.ALo(6,"translate"),n.ALo(7,"customTranslate"),n.qZA(),n.YNc(8,aO,6,3,"table",7),n.qZA(),n.TgZ(9,"div",8)(10,"button",9),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onCancel())}),n._uU(11),n.ALo(12,"translate"),n.ALo(13,"customTranslate"),n.qZA(),n.TgZ(14,"button",10),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onSubmit())}),n._uU(15),n.ALo(16,"translate"),n.ALo(17,"customTranslate"),n.qZA()()()}if(2&i){const e=n.oxw();n.xp6(3),n.hij(" ",e.description," "),n.xp6(2),n.hij(" ",n.lcZ(6,5,n.lcZ(7,7,"DIALOGS.REMOVE_STRING_VALUE.ASK"))," "),n.xp6(3),n.Q6J("ngIf",e.dataSource.data.length),n.xp6(3),n.hij(" ",n.lcZ(12,9,n.lcZ(13,11,"DIALOGS.REMOVE_STRING_VALUE.CANCEL"))," "),n.xp6(4),n.hij(" ",n.lcZ(16,13,n.lcZ(17,15,"DIALOGS.REMOVE_STRING_VALUE.REMOVE"))," ")}}Jo.allowedSshKeys=["ssh-ed25519","ssh-ed25519-cert-v01@openssh.com","sk-ssh-ed25519@openssh.com","sk-ssh-ed25519-cert-v01@openssh.com","ssh-rsa","ssh-dss","ecdsa-sha2-nistp256","ecdsa-sha2-nistp384","ecdsa-sha2-nistp521","sk-ecdsa-sha2-nistp256@openssh.com","ssh-rsa-cert-v01@openssh.com","ssh-dss-cert-v01@openssh.com","ecdsa-sha2-nistp256-cert-v01@openssh.com","ecdsa-sha2-nistp384-cert-v01@openssh.com","ecdsa-sha2-nistp521-cert-v01@openssh.com","sk-ecdsa-sha2-nistp256-cert-v01@openssh.com"],Jo.sshKeyPattern="^("+Jo.allowedSshKeys.join("|")+").+$",Jo.\u0275fac=function(a){return new(a||Jo)(n.Y36(Ln),n.Y36(ni),n.Y36(jn))},Jo.\u0275cmp=n.Xpm({type:Jo,selectors:[["perun-web-apps-add-ssh-dialog"]],decls:20,vars:23,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","user-theme"],[1,"input-width"],["matInput","","required","","cdkTextareaAutosize","","cdkAutosizeMinRows","4",3,"placeholder","formControl"],["class","white-space-pre",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[1,"white-space-pre"]],template:function(a,e){1&a&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA(),n.TgZ(4,"div",1)(5,"mat-form-field",2)(6,"label",2),n._UZ(7,"textarea",3),n.ALo(8,"translate"),n.ALo(9,"customTranslate"),n.qZA(),n.YNc(10,Kk,4,5,"mat-error",4),n.qZA()(),n.TgZ(11,"div",5)(12,"button",6),n.NdJ("click",function(){return e.onCancel()}),n._uU(13),n.ALo(14,"translate"),n.ALo(15,"customTranslate"),n.qZA(),n.TgZ(16,"button",7),n.NdJ("click",function(){return e.onSubmit()}),n._uU(17),n.ALo(18,"translate"),n.ALo(19,"customTranslate"),n.qZA()()),2&a&&(n.xp6(1),n.Oqu(n.lcZ(2,7,n.lcZ(3,9,"DIALOGS.ADD_SSH.TITLE"))),n.xp6(6),n.s9C("placeholder",n.lcZ(8,11,n.lcZ(9,13,"DIALOGS.ADD_SSH.INPUT_PLACEHOLDER"))),n.Q6J("formControl",e.sshControl),n.xp6(3),n.Q6J("ngIf",e.sshControl.invalid&&e.sshControl.dirty),n.xp6(3),n.hij(" ",n.lcZ(14,15,n.lcZ(15,17,"DIALOGS.ADD_SSH.CANCEL"))," "),n.xp6(3),n.Q6J("disabled",e.sshControl.invalid),n.xp6(1),n.hij(" ",n.lcZ(18,19,n.lcZ(19,21,"DIALOGS.ADD_SSH.ADD"))," "))},dependencies:[T.O5,_i,Ai,Nr,Ht,Na,di,sr,mA,ji,Xn,ii,Un,Ke,Xt],styles:[".input-width{width:100%}.white-space-pre{white-space:pre-wrap}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper{padding-bottom:0}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-underline{position:static!important;position:initial!important;display:block;margin-top:-1px}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper,perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-ripple{position:static!important;position:initial!important;display:table}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper{min-height:calc(1em + 1px)}\n"],encapsulation:2});let EA=(()=>{class i{constructor(e,t,r){this.dialogRef=e,this.data=t,this.attributesManagerService=r,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new Zo(this.data.values),this.description=this.data.description,this.title=this.data.title}onCancel(){this.dialogRef.close(!1)}onSubmit(){if(this.loading=!0,this.data.doNotShowValues)this.data.attribute.value="";else{let e=this.data.attribute?.value??[];void 0!==this.data.valueIndex?e.splice(this.data.valueIndex,1):e=e.filter(t=>!this.data.values.find(r=>r===t)),this.data.attribute.value=e}this.attributesManagerService.setUserAttribute({user:this.data.userId,attribute:this.data.attribute}).subscribe(()=>{this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ln),n.Y36(ni),n.Y36(jn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-remove-string-value-dialog"]],decls:5,vars:3,consts:[["mat-dialog-title",""],[1,"user-theme"],["class","ml-auto mr-auto",4,"ngIf"],["class","user-theme",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["class","w-100","mat-table","",3,"dataSource",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"click"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-header-row","","class","font-weight-bolder",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.qZA(),n.TgZ(2,"div",1),n.YNc(3,eO,1,0,"mat-spinner",2),n.qZA(),n.YNc(4,sO,18,17,"div",3)),2&e&&(n.xp6(1),n.Oqu(t.title),n.xp6(2),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading))},dependencies:[T.O5,io,cs,ro,ds,ls,ao,us,hs,so,oo,Hn,Ht,Xn,ii,Un,Ke,Xt]}),i})(),oO=(()=>{class i{constructor(e,t){this.dialogRef=e,this.data=t}ngOnInit(){this.sshKey=this.data.value}onClose(){this.dialogRef.close()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ln),n.Y36(ni))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-show-ssh-dialog"]],decls:8,vars:6,consts:[[1,"user-theme"],["matInput","","cdkTextareaAutosize","","readonly","",1,"w-100","display-fix"],["mat-flat-button","","color","warn",1,"ml-auto",3,"click"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"textarea",1),n._uU(2),n.qZA()(),n.TgZ(3,"mat-dialog-actions")(4,"button",2),n.NdJ("click",function(){return t.onClose()}),n._uU(5),n.ALo(6,"translate"),n.ALo(7,"customTranslate"),n.qZA()()),2&e&&(n.xp6(2),n.Oqu(t.sshKey),n.xp6(3),n.hij(" ",n.lcZ(6,2,n.lcZ(7,4,"DIALOGS.SHOW_SSH.CLOSE"))," "))},dependencies:[Ht,mA,ji,Un,Ke,Xt],styles:[".display-fix[_ngcontent-%COMP%]{overflow:hidden;border:none}*[_ngcontent-%COMP%]:focus{outline:none}"]}),i})();function lO(i,a){if(1&i&&(n.TgZ(0,"div",9),n._UZ(1,"perun-web-apps-notification",10),n.qZA()),2&i){const e=a.$implicit;n.xp6(1),n.Q6J("data",e)("inDialog",!0)}}function cO(i,a){if(1&i&&(n.TgZ(0,"div",6)(1,"cdk-virtual-scroll-viewport",7),n.YNc(2,lO,2,2,"div",8),n.qZA()()),2&i){const e=n.oxw();n.xp6(2),n.Q6J("cdkVirtualForOf",e.notifications)}}function dO(i,a){1&i&&(n.TgZ(0,"perun-web-apps-alert",11),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,n.lcZ(3,3,"DIALOGS.NOTIFICATION_LIST.NO_NOTIFICATIONS_ALERT"))))}let hD=(()=>{class i{constructor(e,t){this.dialogRef=e,this.notificationStorageService=t}ngOnInit(){this.notifications=this.notificationStorageService.getNotifications()}onCancel(){this.dialogRef.close()}onClear(){this.notificationStorageService.clearNotifications(),this.notifications=[]}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ln),n.Y36(lA))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-show-notification-history-dialog"]],decls:15,vars:17,consts:[["mat-dialog-title",""],["class","hide-horizontal-scrollbar",4,"ngIf"],["alert_type","warn",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","",1,"ml-2",3,"click"],[1,"hide-horizontal-scrollbar"],["itemSize","50",1,"viewport"],["class","mb-1",4,"cdkVirtualFor","cdkVirtualForOf"],[1,"mb-1"],[3,"data","inDialog"],["alert_type","warn"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA(),n.YNc(4,cO,3,1,"div",1),n.YNc(5,dO,4,5,"perun-web-apps-alert",2),n.TgZ(6,"div",3)(7,"button",4),n.NdJ("click",function(){return t.onClear()}),n._uU(8),n.ALo(9,"translate"),n.ALo(10,"customTranslate"),n.qZA(),n.TgZ(11,"button",5),n.NdJ("click",function(){return t.onCancel()}),n._uU(12),n.ALo(13,"translate"),n.ALo(14,"customTranslate"),n.qZA()()),2&e&&(n.xp6(1),n.Oqu(n.lcZ(2,5,n.lcZ(3,7,"DIALOGS.NOTIFICATION_LIST.TITLE"))),n.xp6(3),n.Q6J("ngIf",0!==t.notifications.length),n.xp6(1),n.Q6J("ngIf",0===t.notifications.length),n.xp6(3),n.hij(" ",n.lcZ(9,9,n.lcZ(10,11,"DIALOGS.NOTIFICATION_LIST.CLEAR"))," "),n.xp6(4),n.hij(" ",n.lcZ(13,13,n.lcZ(14,15,"DIALOGS.NOTIFICATION_LIST.CANCEL"))," "))},styles:[".viewport[_ngcontent-%COMP%]{height:400px;width:470px}.hide-horizontal-scrollbar[_ngcontent-%COMP%]{overflow-x:hidden}"]}),i})();function uO(i,a){if(1&i&&(n.TgZ(0,"div",5)(1,"mat-icon"),n._uU(2),n.qZA()()),2&i){const e=n.oxw();n.xp6(2),n.Oqu(e.data.icon)}}function hO(i,a){if(1&i&&(n.TgZ(0,"div",6),n._uU(1),n.qZA()),2&i){const e=n.oxw();n.xp6(1),n.hij(" ",e.showTimestamp()," ")}}let pD=(()=>{class i{constructor(e,t){this.dialog=e,this.notificationStorageService=t,this.newNotification=!1,this.closeNotification=new n.vpe,this.alreadyPressed=!1,this.alreadyClosed=!1,this.waiting=!1}doAction(){if(this.newNotification&&(this.alreadyPressed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,void 0!==this.data.action)this.data.action();else{const e=ln();e.width="550px",e.data=this.data,e.autoFocus=!1,this.dialog.open(DP,e).afterClosed().subscribe(()=>{this.closeSelf()})}}closeSelf(){this.inDialog||(this.newNotification&&(this.alreadyClosed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,this.closeNotification.emit())}ngOnInit(){!function Fb(i,a){sg.apply(this,arguments)}(this.data.delay,()=>{!this.alreadyClosed&&!this.waiting&&this.closeSelf()})}showTimestamp(){const[e,t]=this.data.timeStamp.split(":");return t.length<2?e+":0"+t:this.data.timeStamp}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(on),n.Y36(lA))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-notification"]],inputs:{data:"data",inDialog:"inDialog",newNotification:"newNotification"},outputs:{closeNotification:"closeNotification"},decls:9,vars:14,consts:[[1,"notification-container",3,"click"],["class","notification-icon",4,"ngIf"],["data-cy","notification-message",1,"notification-text","clickable"],["class","ml-auto mr-5 mt-auto mb-auto",4,"ngIf"],[1,"notification-action","mt-auto","mb-auto",3,"hidden","click"],[1,"notification-icon"],[1,"ml-auto","mr-5","mt-auto","mb-auto"]],template:function(e,t){1&e&&(n.TgZ(0,"div")(1,"div",0),n.NdJ("click",function(){return t.alreadyClosed||t.waiting?"":t.closeSelf()}),n.YNc(2,uO,3,1,"div",1),n.TgZ(3,"div",2),n._uU(4),n.ALo(5,"translate"),n.qZA(),n.YNc(6,hO,2,1,"div",3),n.TgZ(7,"div",4),n.NdJ("click",function(){return t.waiting=!0,t.doAction()}),n._uU(8),n.qZA()()()),2&e&&(n.Gre("notification ",t.inDialog?"":"mat-elevation-z7",""),n.ekj("error","error"===t.data.type)("success","success"===t.data.type),n.xp6(2),n.Q6J("ngIf",null!==t.data.icon),n.xp6(2),n.hij(" ",n.lcZ(5,12,t.data.title)," "),n.xp6(2),n.Q6J("ngIf",t.inDialog),n.xp6(1),n.Q6J("hidden",t.alreadyPressed),n.xp6(1),n.hij(" ",t.data.actionText," "))},dependencies:[T.O5,zn,Ke],styles:[".notification[_ngcontent-%COMP%]{width:450px;margin-bottom:16px;display:flex;flex-direction:row;justify-content:space-between;color:#fff}.notification-container[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:row;padding:16px}.notification-text[_ngcontent-%COMP%]{font-size:1.1em}.notification-action[_ngcontent-%COMP%]{margin-left:auto;text-decoration:underline;cursor:pointer}@media (max-width: 768px){.notification[_ngcontent-%COMP%]{width:100%}}.notification.error[_ngcontent-%COMP%]{background-color:#d32f2f}.notification.success[_ngcontent-%COMP%]{background-color:#288619}.notification-icon[_ngcontent-%COMP%]{padding-right:8px;color:#fff}"]}),i})();function pO(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div")(1,"perun-web-apps-notification",2),n.NdJ("closeNotification",function(){const d=n.CHM(e).index,u=n.oxw();return n.KtG(u.removeNotification(d))}),n.qZA()()}if(2&i){const e=a.$implicit;n.Q6J("@flyInOut",void 0),n.xp6(1),n.Q6J("data",e)("newNotification",!0)}}const fO=function(i){return{top:i}};let mO=(()=>{class i{constructor(e,t){this.notificator=e,this.notificationStorageService=t,this.displayWarning=!1,this.minWidth=992,this.notifications=[],this.mobileView=!1,this.notificator.addNotification.subscribe(r=>{this.processNotification(r)}),this.getScreenSize()}getScreenSize(){this.mobileView=window.innerWidth<=this.minWidth}getNotificatorTop(){return this.mobileView?"initial":this.displayWarning?"112px":"64px"}removeNotification(e){this.notifications.splice(e,1)}processNotification(e){this.notifications.push(e),this.notificationStorageService.storeNotification(e)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Mr),n.Y36(lA))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-notificator"]],hostBindings:function(e,t){1&e&&n.NdJ("resize",function(d){return t.getScreenSize(d)},!1,n.Jf7)},inputs:{displayWarning:"displayWarning"},decls:2,vars:4,consts:[["id","notificator",3,"ngStyle"],[4,"ngFor","ngForOf"],[3,"data","newNotification","closeNotification"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0),n.YNc(1,pO,2,3,"div",1),n.qZA()),2&e&&(n.Q6J("ngStyle",n.VKq(2,fO,t.getNotificatorTop())),n.xp6(1),n.Q6J("ngForOf",t.notifications))},dependencies:[T.sg,T.PC,pD],styles:["#notificator[_ngcontent-%COMP%]{position:fixed;right:0;z-index:1001;padding:8px}@media (max-width: 768px){#notificator[_ngcontent-%COMP%]{width:100%;top:auto;top:initial;bottom:0}}"],data:{animation:[tP]}}),i})();const gO=["*",[["mat-toolbar-row"]]],_O=["*","mat-toolbar-row"],bO=Rl(class{constructor(i){this._elementRef=i}});let AO=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),i})(),yO=(()=>{class i extends bO{constructor(e,t,r){super(e),this._platform=t,this._document=r}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(Qn),n.Y36(T.K0))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-toolbar"]],contentQueries:function(e,t,r){if(1&e&&n.Suo(r,AO,5),2&e){let d;n.iGM(d=n.CRH())&&(t._toolbarRows=d)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,t){2&e&&n.ekj("mat-toolbar-multiple-rows",t._toolbarRows.length>0)("mat-toolbar-single-row",0===t._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[n.qOj],ngContentSelectors:_O,decls:2,vars:0,template:function(e,t){1&e&&(n.F$t(gO),n.Hsn(0),n.Hsn(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%}"],encapsulation:2,changeDetection:0}),i})(),Qv=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[wt,wt]}),i})(),wO=0;const MO=Xa(class{}),fD="mat-badge-content";let CO=(()=>{class i extends MO{constructor(e,t,r,d,u){super(),this._ngZone=e,this._elementRef=t,this._ariaDescriber=r,this._renderer=d,this._animationMode=u,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=wO++,this._isInitialized=!1}get color(){return this._color}set color(e){this._setColor(e),this._color=e}get overlap(){return this._overlap}set overlap(e){this._overlap=Ge(e)}get content(){return this._content}set content(e){this._updateRenderedContent(e)}get description(){return this._description}set description(e){this._updateHostAriaDescription(e)}get hidden(){return this._hidden}set hidden(e){this._hidden=Ge(e)}isAbove(){return-1===this.position.indexOf("below")}isAfter(){return-1===this.position.indexOf("before")}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=!0}ngOnDestroy(){this._renderer.destroyNode&&this._renderer.destroyNode(this._badgeElement),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_createBadgeElement(){const e=this._renderer.createElement("span"),t="mat-badge-active";return e.setAttribute("id",`mat-badge-content-${this._id}`),e.setAttribute("aria-hidden","true"),e.classList.add(fD),"NoopAnimations"===this._animationMode&&e.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(e),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{e.classList.add(t)})}):e.classList.add(t),e}_updateRenderedContent(e){const t=`${e??""}`.trim();this._isInitialized&&t&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=t),this._content=t}_updateHostAriaDescription(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),e&&this._ariaDescriber.describe(this._elementRef.nativeElement,e),this._description=e}_setColor(e){const t=this._elementRef.nativeElement.classList;t.remove(`mat-badge-${this._color}`),e&&t.add(`mat-badge-${e}`)}_clearExistingBadges(){const e=this._elementRef.nativeElement.querySelectorAll(`:scope > .${fD}`);for(const t of Array.from(e))t!==this._badgeElement&&t.remove()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.R0b),n.Y36(n.SBq),n.Y36(hu),n.Y36(n.Qsj),n.Y36(n.QbO,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(e,t){2&e&&n.ekj("mat-badge-overlap",t.overlap)("mat-badge-above",t.isAbove())("mat-badge-below",!t.isAbove())("mat-badge-before",!t.isAfter())("mat-badge-after",t.isAfter())("mat-badge-small","small"===t.size)("mat-badge-medium","medium"===t.size)("mat-badge-large","large"===t.size)("mat-badge-hidden",t.hidden||!t.content)("mat-badge-disabled",t.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],position:["matBadgePosition","position"],content:["matBadge","content"],description:["matBadgeDescription","description"],size:["matBadgeSize","size"],hidden:["matBadgeHidden","hidden"]},features:[n.qOj]}),i})(),vO=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Hl,wt,wt]}),i})();const Xv=function(i){return{color:i}};function TO(i,a){if(1&i&&(n.TgZ(0,"button",8),n.ALo(1,"translate"),n.TgZ(2,"mat-icon",4),n._uU(3," apps "),n.qZA()()),2&i){const e=n.oxw(),t=n.MAs(2);n.Q6J("matMenuTriggerFor",t)("matTooltip",n.lcZ(1,3,"NAV.OTHER_APPLICATIONS")),n.xp6(2),n.Q6J("ngStyle",n.VKq(5,Xv,e.iconColor))}}function xO(i,a){if(1&i&&(n.TgZ(0,"span",9),n._uU(1),n.qZA()),2&i){const e=n.oxw();n.Q6J("ngStyle",n.VKq(6,Xv,e.textColor)),n.xp6(1),n.xDo(" ",e.user.titleBefore," ",e.user.firstName," ",e.user.middleName," ",e.user.lastName," ",e.user.titleAfter," ")}}function SO(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"button",10),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onLogOut())}),n._uU(1),n.ALo(2,"translate"),n.qZA()}2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"NAV.LOGOUT")," "))}let EO=(()=>{class i{constructor(e){this.authService=e}redirectToUrl(){window.open(this.url,"_blank")}onLogOut(){this.authService.logout()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Go))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-header-menu"]],inputs:{user:"user",iconColor:"iconColor",textColor:"textColor",logoutEnabled:"logoutEnabled",url:"url",label:"label"},decls:13,vars:8,consts:[["mat-icon-button","",3,"matMenuTriggerFor","matTooltip",4,"ngIf"],["appsMenu","matMenu"],["mat-menu-item","",3,"click","auxclick"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],["class","d-none d-lg-inline",3,"ngStyle",4,"ngIf"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-icon-button","",3,"matMenuTriggerFor","matTooltip"],[1,"d-none","d-lg-inline",3,"ngStyle"],["mat-menu-item","",3,"click"]],template:function(e,t){if(1&e&&(n.YNc(0,TO,4,7,"button",0),n.TgZ(1,"mat-menu",null,1)(3,"button",2),n.NdJ("click",function(){return t.redirectToUrl()})("auxclick",function(){return t.redirectToUrl()}),n.TgZ(4,"span"),n._uU(5),n.qZA()()(),n.TgZ(6,"button",3)(7,"mat-icon",4),n._uU(8," person "),n.qZA(),n.YNc(9,xO,2,8,"span",5),n.qZA(),n.TgZ(10,"mat-menu",null,6),n.YNc(12,SO,3,3,"button",7),n.qZA()),2&e){const r=n.MAs(11);n.Q6J("ngIf",t.url),n.xp6(5),n.Oqu(t.label),n.xp6(1),n.Q6J("matMenuTriggerFor",r),n.xp6(1),n.Q6J("ngStyle",n.VKq(6,Xv,t.iconColor)),n.xp6(2),n.Q6J("ngIf",null!==t.user),n.xp6(3),n.Q6J("ngIf",t.logoutEnabled)}},dependencies:[T.O5,T.PC,zn,Yp,bd,Db,Ht,yr,Ke],styles:["@media (max-width: 991px){.no-left-padding[_ngcontent-%COMP%]{padding-left:0}}"]}),i})(),DA=(()=>{class i extends oa{constructor(){super(...arguments),this.queryParamsHandling="merge"}ngOnChanges(){if(this.queryParams&&"applicationFormItems"in this.queryParams){this.queryParamsHandling="";const e=Object.assign({},this.queryParams);delete e.applicationFormItems,this.queryParams=e}}}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["tr","routerLink",""],["a","routerLink",""]],features:[n.qOj,n.TTD]}),i})();const af=function(i){return{color:i}};function DO(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"button",9),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onToggleSidenav())}),n.TgZ(1,"mat-icon"),n._uU(2,"menu"),n.qZA()()}if(2&i){const e=n.oxw();n.Q6J("ngStyle",n.VKq(1,af,e.iconColor))}}function LO(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div",10)(1,"button",11)(2,"mat-icon",12),n._uU(3," language "),n.qZA()(),n.TgZ(4,"mat-menu",null,13)(6,"button",14),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.changeLanguage())}),n._uU(7),n.ALo(8,"translate"),n.qZA()()()}if(2&i){const e=n.MAs(5),t=n.oxw();n.Q6J("ngStyle",n.VKq(6,af,t.textColor)),n.xp6(1),n.Q6J("matMenuTriggerFor",e),n.xp6(1),n.Q6J("ngStyle",n.VKq(8,af,t.iconColor)),n.xp6(5),n.hij(" ",n.lcZ(8,4,"HEADER.LANGUAGE")," ")}}function HO(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"button",15),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.showNotificationHistory())}),n.ALo(1,"translate"),n.TgZ(2,"mat-icon",16),n._uU(3),n.qZA()()}if(2&i){const e=n.oxw();n.Q6J("matTooltip",n.lcZ(1,5,"NAV.NOTIFICATIONS_TOOLTIP")),n.xp6(2),n.s9C("matBadge",e.getNewNotificationsCount()>5?"5+":e.getNewNotificationsCount()),n.Q6J("ngStyle",n.VKq(7,af,e.iconColor))("matBadgeHidden",0===e.getNewNotificationsCount()),n.xp6(1),n.hij(" ",e.getNewNotificationsCount()?"notifications_active":"notifications"," ")}}function RO(i,a){if(1&i&&n._UZ(0,"perun-web-apps-header-menu",17),2&i){const e=n.oxw();n.Q6J("url",e.otherAppUrl)("label",e.otherAppLabel)("user",e.principal.user)("logoutEnabled",e.logoutEnabled)("iconColor",e.iconColor)("textColor",e.textColor)}}const PO=function(i){return{background:i}},kO=function(){return[]},OO=function(){return["/"]};let IO=(()=>{class i{constructor(e,t,r,d,u,c,o){this.storeService=e,this.sanitizer=t,this.translateService=r,this.otherApplicationService=d,this.notificationStorageService=u,this.dialog=c,this.route=o,this.sidenavToggle=new n.vpe,this.showToggle=!0,this.showLanguageMenu=!1,this.showHeaderMenu=!0,this.showNotifications=!1,this.disableLogo=!1,this.label=this.storeService.getProperty("header_label_en"),this.logoutEnabled=this.storeService.getProperty("log_out_enabled"),this.principal=this.storeService.getPerunPrincipal(),this.bgColor=this.storeService.getProperty("theme").nav_bg_color,this.textColor=this.storeService.getProperty("theme").nav_text_color,this.iconColor=this.storeService.getProperty("theme").nav_icon_color,this.navTextColor=this.storeService.getProperty("theme").nav_text_color,this.activeLink=!1,this.onToggleSidenav=()=>{this.sidenavToggle.emit()}}ngOnInit(){this.otherAppLabel=this.getOtherAppLabel(),this.translateService.onLangChange.subscribe(e=>{this.label=this.storeService.getProperty("en"===e.lang?"header_label_en":"header_label_cs"),this.otherAppLabel=this.getOtherAppLabel(e.lang)}),this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.getProperty("logo")),this.isLinkToOtherAppActive()}getOtherAppLabel(e="en"){return this.storeService.getProperty(this.otherApp===$o.Profile?"profile_label_en":"en"===e?"admin_gui_label_en":"admin_gui_label_cs")}isLinkToOtherAppActive(){if(this.otherApp===$o.Admin){this.linkRoles=this.storeService.getProperty("link_to_admin_gui_by_roles");for(const e in this.storeService.getPerunPrincipal().roles)this.linkRoles.includes(e)&&(this.activeLink=!0)}(this.otherApp!==$o.Admin||this.activeLink)&&(this.otherAppUrl=this.otherApplicationService.getUrlForOtherApplication(this.otherApp))}changeLanguage(){this.translateService.use("en"===this.translateService.currentLang?"cs":"en")}showNotificationHistory(){this.notificationStorageService.newNotificationsCount=0;const e=ln();e.width="520px",this.dialog.open(hD,e)}getNewNotificationsCount(){return this.notificationStorageService.newNotificationsCount}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ut),n.Y36(ei),n.Y36(tn),n.Y36(dA),n.Y36(lA),n.Y36(on),n.Y36(mi))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-header"]],inputs:{showToggle:"showToggle",showLanguageMenu:"showLanguageMenu",showHeaderMenu:"showHeaderMenu",showNotifications:"showNotifications",disableLogo:"disableLogo",otherApp:"otherApp"},outputs:{sidenavToggle:"sidenavToggle"},decls:10,vars:19,consts:[[1,"sticky-top","header-container","mat-elevation-z3",3,"ngStyle"],["id","nav-menu-icons"],["aria-label","Menu","mat-icon-button","",3,"ngStyle","click",4,"ngIf"],["queryParamsHandling","merge",1,"logo-container","mt-auto","mb-auto",3,"innerHTML","routerLink","queryParams"],[1,"mt-auto","mb-auto","hide-label","page-subtitle",3,"ngStyle"],["id","nav-menu-user-info",3,"ngStyle"],["id","nav-menu-language",3,"ngStyle",4,"ngIf"],["mat-icon-button","",3,"matTooltip","click",4,"ngIf"],[3,"url","label","user","logoutEnabled","iconColor","textColor",4,"ngIf"],["aria-label","Menu","mat-icon-button","",3,"ngStyle","click"],["id","nav-menu-language",3,"ngStyle"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],["menu","matMenu"],["mat-menu-item","",3,"click"],["mat-icon-button","",3,"matTooltip","click"],["matBadgeColor","warn",3,"ngStyle","matBadge","matBadgeHidden"],[3,"url","label","user","logoutEnabled","iconColor","textColor"]],template:function(e,t){1&e&&(n.TgZ(0,"mat-toolbar",0)(1,"div",1),n.YNc(2,DO,3,3,"button",2),n._UZ(3,"a",3),n.TgZ(4,"p",4),n._uU(5),n.qZA()(),n.TgZ(6,"div",5),n.YNc(7,LO,9,10,"div",6),n.YNc(8,HO,4,9,"button",7),n.YNc(9,RO,1,6,"perun-web-apps-header-menu",8),n.qZA()()),2&e&&(n.Q6J("ngStyle",n.VKq(11,PO,t.bgColor)),n.xp6(2),n.Q6J("ngIf",t.showToggle),n.xp6(1),n.Q6J("innerHTML",t.logo,n.oJD)("routerLink",t.disableLogo?n.DdM(13,kO):n.DdM(14,OO))("queryParams",t.route.snapshot.queryParams),n.xp6(1),n.Q6J("ngStyle",n.VKq(15,af,t.textColor)),n.xp6(1),n.hij(" ",t.label," "),n.xp6(1),n.Q6J("ngStyle",n.VKq(17,af,t.navTextColor)),n.xp6(1),n.Q6J("ngIf",t.showLanguageMenu),n.xp6(1),n.Q6J("ngIf",t.showNotifications),n.xp6(1),n.Q6J("ngIf",t.showHeaderMenu))},dependencies:[T.O5,T.PC,vl,zn,Yp,bd,Db,Ht,yr,yO,CO,EO,DA,Ke],styles:[".header-container[_ngcontent-%COMP%]{height:64px!important;display:flex;justify-content:space-between;padding:0 0 0 8px;z-index:999}#nav-menu-user-info[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding-right:16px;margin-left:auto;margin-right:0}@media (max-width: 570px){.hide-label[_ngcontent-%COMP%]{display:none}}#nav-devel-info[_ngcontent-%COMP%]{margin-left:auto;font-weight:500;font-size:1.4rem;display:flex;align-items:center;font-family:Roboto,Helvetica Neue,sans-serif}#nav-menu-icons[_ngcontent-%COMP%]{display:flex;flex-direction:row}.logo-container[_ngcontent-%COMP%]{padding:0 20px 0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}#nav-menu-language[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding-right:16px}"]}),i})();function BO(i,a){if(1&i&&(n.TgZ(0,"div",8),n._UZ(1,"div",9),n.qZA()),2&i){const e=n.oxw();n.xp6(1),n.Q6J("innerHTML",e.logo,n.oJD)}}function NO(i,a){if(1&i&&(n.TgZ(0,"div",10),n._UZ(1,"div",11)(2,"mat-icon",12),n.qZA()),2&i){const e=n.oxw();n.xp6(1),n.Q6J("innerHTML",e.logo,n.oJD)}}const VO=function(i){return{color:i}};function jO(i,a){if(1&i&&(n.TgZ(0,"p",13),n._uU(1),n.qZA()),2&i){const e=n.oxw();n.Q6J("ngStyle",n.VKq(2,VO,e.textColor)),n.xp6(1),n.hij(" ",e.headerTitle," ")}}const FO=function(i,a){return{background:i,color:a}},zO=function(i,a){return{"min-height":i,"background-color":a}};let UO=(()=>{class i{constructor(e,t,r,d){this.storeService=e,this.sanitizer=t,this.preferredLangService=r,this.translateService=d,this.contentBackgroundColor=this.storeService.getProperty("theme").content_bg_color}ngOnInit(){if(this.headerBackgroundColor=this.storeService.getProperty("theme").nav_bg_color,this.headerTextColor=this.storeService.getProperty("theme").nav_text_color,this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.getProperty("logo")),this.textColor=this.headerTitle?this.storeService.getProperty("theme").nav_text_color:"","user-profile"===this.application){const e=this.preferredLangService.getPreferredLanguage(null);this.translateService.use(e)}}getContentInnerMinHeight(){return"calc((100vh - 64px) + 0px)"}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ut),n.Y36(ei),n.Y36(xv),n.Y36(tn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-login-screen-base"]],inputs:{application:"application",headerTitle:"headerTitle"},decls:10,vars:11,consts:[["id","login-nav",1,"mat-elevation-z3",3,"ngStyle"],["class","mt-auto mb-auto",4,"ngIf"],["class","display-flex-row",4,"ngIf"],["class","ml-3 mt-auto mb-auto page-subtitle",3,"ngStyle",4,"ngIf"],["id","content"],["id","content-inner",3,"ngStyle"],["id","content-wrap"],["id","footer"],[1,"mt-auto","mb-auto"],[1,"logo-container",3,"innerHTML"],[1,"display-flex-row"],[1,"logo-container","mt-auto","mb-auto",3,"innerHTML"],["svgIcon","perun-publications-white",1,"mt-auto","mb-auto","router-icon","ml-2","mr-2"],[1,"ml-3","mt-auto","mb-auto","page-subtitle",3,"ngStyle"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0),n.YNc(1,BO,2,1,"div",1),n.YNc(2,NO,3,1,"div",2),n.YNc(3,jO,2,4,"p",3),n.qZA(),n.TgZ(4,"div",4)(5,"div",5)(6,"div",6),n._UZ(7,"router-outlet"),n.qZA(),n.TgZ(8,"div",7),n._UZ(9,"perun-web-apps-footer"),n.qZA()()()),2&e&&(n.Q6J("ngStyle",n.WLB(5,FO,t.headerBackgroundColor,t.headerTextColor)),n.xp6(1),n.Q6J("ngIf","admin-gui"===t.application||"user-profile"===t.application||"consolidator"===t.application),n.xp6(1),n.Q6J("ngIf","publications"===t.application),n.xp6(1),n.Q6J("ngIf",!!t.headerTitle),n.xp6(2),n.Q6J("ngStyle",n.WLB(8,zO,t.getContentInnerMinHeight(),t.contentBackgroundColor)))},dependencies:[T.O5,T.PC,zn,Wr,ZE],styles:["#login-nav[_ngcontent-%COMP%]{position:fixed;width:100%;z-index:999;display:flex;height:64px;max-height:64px;top:0}#footer[_ngcontent-%COMP%]{position:absolute;bottom:0;width:100%}#content[_ngcontent-%COMP%]{width:100%;min-height:calc(100vh - 64px);margin-top:64px}#content-inner[_ngcontent-%COMP%]{position:relative}#content-wrap[_ngcontent-%COMP%]{padding-bottom:250px;padding-top:10px}@media (max-width: 768px){#content-wrap[_ngcontent-%COMP%]{padding-bottom:500px}}.router-icon[_ngcontent-%COMP%]{height:2.5rem;width:2.5rem;cursor:pointer;outline:0}.page-subtitle[_ngcontent-%COMP%]{margin-bottom:1rem;font-size:1.5rem}.logo-container[_ngcontent-%COMP%]{padding:0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}.display-flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}"]}),i})(),qO=(()=>{class i{constructor(e){this.store=e}getSideMenuItems(){const e=this.store.getProperty("displayed_tabs"),t=[];return e.forEach(d=>{switch(d){case"profile":t.push({label:"MENU_ITEMS.PROFILE",icon:"account_box",link:"/profile",activatedRegex:"^/profile$",tabName:"profile"});break;case"identities":t.push({label:"MENU_ITEMS.IDENTITIES",icon:"remove_red_eye",link:"/profile/identities",activatedRegex:"^/profile/identities$",tabName:"identities"});break;case"services":t.push({label:"MENU_ITEMS.SERVICES",icon:"build",link:"/profile/services",activatedRegex:"^/profile/services$",tabName:"services"});break;case"groups":t.push({label:"MENU_ITEMS.GROUPS",icon:"group",link:"/profile/groups",activatedRegex:"^/profile/groups$",tabName:"groups"});break;case"vos":t.push({label:"MENU_ITEMS.VOS",icon:"account_balance",link:"/profile/organizations",activatedRegex:"^/profile/organizations$",tabName:"vos"});break;case"privacy":t.push({label:"MENU_ITEMS.PRIVACY",icon:"vpn_key",link:"/profile/privacy",activatedRegex:"^/profile/privacy$",tabName:"privacy"});break;case"consents":t.push({label:"MENU_ITEMS.CONSENTS",icon:"fact_check",link:"/profile/consents",activatedRegex:"^/profile/consents",tabName:"consents"});break;case"settings":t.push({label:"MENU_ITEMS.SETTINGS",icon:"settings",link:"/profile/settings",activatedRegex:"^/profile/settings",tabName:"settings"})}}),this.store.getProperty("external_services").forEach(d=>{const u={icon:"insert_link",link:d.url,activatedRegex:"^/profile/external",tabName:"external",external:!0};this.store.getProperty("supported_languages").forEach(o=>{u[`label_${o}`]=String(d[`label_${o}`])??d.label_en}),t.push(u)}),t}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Ut))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Kv=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[wt,wt]}),i})();const eT=["*"],YO=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],WO=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],gD=Xa(Ni(class{})),QO=Ni(class{}),_D=new n.OlP("MatList"),bD=new n.OlP("MatNavList");let XO=(()=>{class i extends gD{constructor(){super(...arguments),this._stateChanges=new Le.x}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[n._Bn([{provide:bD,useExisting:i}]),n.qOj,n.TTD],ngContentSelectors:eT,decls:1,vars:0,template:function(e,t){1&e&&(n.F$t(),n.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.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:rgba(0,0,0,0);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{display:block;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:rgba(0,0,0,0);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{display:block;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 .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-list-option:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:hover{outline:dotted 1px;z-index:1}.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}}'],encapsulation:2,changeDetection:0}),i})(),tT=(()=>{class i extends gD{constructor(e){super(),this._elementRef=e,this._stateChanges=new Le.x,"action-list"===this._getListType()&&e.nativeElement.classList.add("mat-action-list")}_getListType(){const e=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===e?"list":"mat-action-list"===e?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[n._Bn([{provide:_D,useExisting:i}]),n.qOj,n.TTD],ngContentSelectors:eT,decls:1,vars:0,template:function(e,t){1&e&&(n.F$t(),n.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.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:rgba(0,0,0,0);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{display:block;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:rgba(0,0,0,0);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{display:block;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 .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-list-option:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:hover{outline:dotted 1px;z-index:1}.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}}'],encapsulation:2,changeDetection:0}),i})(),AD=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),i})(),yD=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),i})(),LA=(()=>{class i extends QO{constructor(e,t,r,d){super(),this._element=e,this._isInteractiveList=!1,this._destroyed=new Le.x,this._disabled=!1,this._isInteractiveList=!!(r||d&&"action-list"===d._getListType()),this._list=r||d;const u=this._getHostElement();"button"===u.nodeName.toLowerCase()&&!u.hasAttribute("type")&&u.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe(rt(this._destroyed)).subscribe(()=>{t.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(e){this._disabled=Ge(e)}ngAfterContentInit(){!function Pl(i,a,e="mat"){i.changes.pipe(vn(i)).subscribe(({length:t})=>{kl(a,`${e}-2-line`,!1),kl(a,`${e}-3-line`,!1),kl(a,`${e}-multi-line`,!1),2===t||3===t?kl(a,`${e}-${t}-line`,!0):t>3&&kl(a,`${e}-multi-line`,!0)})}(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 i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(bD,8),n.Y36(_D,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(e,t,r){if(1&e&&(n.Suo(r,AD,5),n.Suo(r,yD,5),n.Suo(r,gu,5)),2&e){let d;n.iGM(d=n.CRH())&&(t._avatar=d.first),n.iGM(d=n.CRH())&&(t._icon=d.first),n.iGM(d=n.CRH())&&(t._lines=d)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:4,hostBindings:function(e,t){2&e&&n.ekj("mat-list-item-disabled",t.disabled)("mat-list-item-with-avatar",t._avatar||t._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[n.qOj],ngContentSelectors:WO,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(e,t){1&e&&(n.F$t(YO),n.TgZ(0,"span",0),n._UZ(1,"span",1),n.Hsn(2),n.TgZ(3,"span",2),n.Hsn(4,1),n.qZA(),n.Hsn(5,2),n.qZA()),2&e&&(n.xp6(1),n.Q6J("matRippleTrigger",t._getHostElement())("matRippleDisabled",t._isRippleDisabled()))},dependencies:[Jr],encapsulation:2,changeDetection:0}),i})(),nT=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[js,ca,wt,Jh,T.ez,js,wt,Jh,Kv]}),i})();const rI=function(i){return{color:i}};function aI(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"mat-list-item",2),n.NdJ("click",function(){const d=n.CHM(e).$implicit,u=n.oxw();return n.KtG(d.external?u.goToURL(d.link):u.shouldHideMenu())}),n.TgZ(1,"mat-icon"),n._uU(2),n.qZA(),n.TgZ(3,"span",3),n._uU(4),n.ALo(5,"localisedText"),n.ALo(6,"translate"),n.ALo(7,"customTranslate"),n.qZA()()}if(2&i){const e=a.$implicit,t=n.oxw();n.ekj("activated",t.isActive(e.activatedRegex)),n.s9C("routerLink",e.external?null:e.link),n.Q6J("ngStyle",n.VKq(16,rI,t.textColor))("matRippleColor","rgba(255, 255, 255, 0.1)"),n.xp6(2),n.Oqu(e.icon),n.xp6(2),n.Oqu(e.external?n.Dn7(5,7,e,t.lang,"label"):n.lcZ(6,11,n.xi3(7,13,e.label,t.lang)))}}let sI=(()=>{class i{constructor(e,t,r,d){this.sideMenuItemService=e,this.storeService=t,this.router=r,this.translateService=d,this.items=[],this.lang="en",this.textColor=this.storeService.getProperty("theme").sidemenu_text_color,this.currentUrl=r.url,r.events.subscribe(u=>{u instanceof Rr&&(this.currentUrl=u.url)})}ngOnInit(){this.translateService.onLangChange.subscribe(t=>{const{lang:r}=t;this.lang=r});const e=this.storeService.getProperty("displayed_tabs");this.items=this.sideMenuItemService.getSideMenuItems(),this.items=this.items.filter(t=>e.includes(t.tabName))}isActive(e){return new RegExp(e).test(this.currentUrl)}shouldHideMenu(){"over"===this.sideNav.mode&&this.sideNav.close()}goToURL(e){window.open(e,"_blank")}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(qO),n.Y36(Ut),n.Y36(Dn),n.Y36(tn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-side-menu"]],inputs:{sideNav:"sideNav"},decls:2,vars:1,consts:[[1,"pt-0"],["mat-ripple","","class","side-menu-item-height","queryParamsHandling","merge",3,"activated","ngStyle","matRippleColor","routerLink","click",4,"ngFor","ngForOf"],["mat-ripple","","queryParamsHandling","merge",1,"side-menu-item-height",3,"ngStyle","matRippleColor","routerLink","click"],[1,"nav-caption","ml-3"]],template:function(e,t){1&e&&(n.TgZ(0,"mat-nav-list",0),n.YNc(1,aI,8,18,"mat-list-item",1),n.qZA()),2&e&&(n.xp6(1),n.Q6J("ngForOf",t.items))},dependencies:[T.sg,T.PC,zn,XO,LA,oa,Nv,Jr,Ke,Xt,$E],styles:[".nav-caption[_ngcontent-%COMP%]{display:inline-block;padding-left:6px}.side-menu-item-height[_ngcontent-%COMP%]{height:40px!important}mat-list-item[_ngcontent-%COMP%]:hover{background:var(--side-hover)!important;color:var(--side-text-hover)!important}.activated[_ngcontent-%COMP%]{background:var(--side-active)!important;color:var(--side-text-active)!important}"]}),i})();function oI(i,a){if(1&i&&(n.TgZ(0,"span",1)(1,"a",2),n._uU(2),n.qZA()()),2&i){const e=a.$implicit;n.xp6(1),n.Q6J("routerLink",e.routerLink),n.xp6(1),n.Oqu(e.label)}}let lI=(()=>{class i{constructor(e,t,r){this.router=e,this.activatedRoute=t,this.translate=r,this.home={label:"Home",routerLink:"profile"},this.menuItems=[]}ngOnInit(){this.router.events.pipe((0,bt.h)(e=>e instanceof Rr)).subscribe(()=>{this.menuItems=[],this.createBreadcrumbs(this.activatedRoute.root)})}createBreadcrumbs(e,t=""){const r=e.children;0===r.length||"service-access"===r[0].snapshot.routeConfig.path||r.forEach(d=>{const u=d.snapshot.url.map(o=>o.path).join("/");""!==u&&(t+=`/${u}`);const c=this.translate.instant(d.snapshot.data[i.ROUTE_DATA_BREADCRUMB]);return c&&(!this.menuItems[this.menuItems.length-1]||c!==this.menuItems[this.menuItems.length-1].label)&&this.menuItems.push({label:c,routerLink:t}),this.createBreadcrumbs(d,t)})}}return i.ROUTE_DATA_BREADCRUMB="breadcrumb",i.\u0275fac=function(e){return new(e||i)(n.Y36(Dn),n.Y36(mi),n.Y36(tn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-breadcrumbs"]],decls:1,vars:1,consts:[["class","custom-breadcrumb",4,"ngFor","ngForOf"],[1,"custom-breadcrumb"],[1,"breadcrumb-text",3,"routerLink"]],template:function(e,t){1&e&&n.YNc(0,oI,3,2,"span",0),2&e&&n.Q6J("ngForOf",t.menuItems)},dependencies:[T.sg,vl,DA],styles:['.custom-breadcrumb[_ngcontent-%COMP%]{display:inline-block}.custom-breadcrumb[_ngcontent-%COMP%]:first-child:before{display:none}.custom-breadcrumb[_ngcontent-%COMP%]:before{content:">";vertical-align:center;display:inline-block;margin:0 10px 10px 8px;-webkit-font-smoothing:antialiased}.breadcrumb-text[_ngcontent-%COMP%]{text-decoration:none!important;color:#2c2c2c}']}),i})();const cI=["footer"],MD=function(i){return{background:i}},dI=function(i){return{"min-height":i}};function uI(i,a){if(1&i){const e=n.EpF();n._UZ(0,"perun-web-apps-notificator"),n.TgZ(1,"div",2)(2,"perun-web-apps-header",3),n.NdJ("sidenavToggle",function(){n.CHM(e);const r=n.MAs(5);return n.KtG(r.toggle())}),n.qZA(),n.TgZ(3,"mat-sidenav-container",4)(4,"mat-sidenav",5,6),n._UZ(6,"perun-web-apps-side-menu",7),n.qZA(),n.TgZ(7,"mat-sidenav-content",8)(8,"div",9),n._UZ(9,"perun-web-apps-breadcrumbs")(10,"router-outlet"),n.qZA(),n.TgZ(11,"div",null,10),n._UZ(13,"perun-web-apps-footer"),n.qZA()()()()}if(2&i){const e=n.MAs(5),t=n.oxw();n.xp6(2),n.Q6J("otherApp",t.otherApp),n.xp6(2),n.Q6J("mode",t.sidebarMode)("ngStyle",n.VKq(7,MD,t.sideMenuBgColor))("opened",!t.isMobile()),n.xp6(2),n.Q6J("sideNav",e),n.xp6(1),n.Q6J("ngStyle",n.VKq(9,MD,t.contentBackgroundColor)),n.xp6(1),n.Q6J("ngStyle",n.VKq(11,dI,t.contentHeight))}}function hI(i,a){if(1&i&&n._UZ(0,"perun-web-apps-login-screen-base",11),2&i){const e=n.oxw();n.Q6J("application","user-profile")("headerTitle",e.headerLabel)}}let pI=(()=>{class i{constructor(e,t,r,d,u,c,o,s){this.store=e,this.attributesManagerService=t,this.translateService=r,this.initAuth=d,this.changeDetector=u,this.preferredLangService=c,this.titleService=o,this.document=s,this.sidebarMode="side",this.sideMenuBgColor=this.store.getProperty("theme").sidemenu_bg_color,this.contentBackgroundColor=this.store.getProperty("theme").content_bg_color,this.contentHeight="calc(100vh - 84px)",this.headerLabel=this.store.getProperty("header_label_en"),this.otherApp=$o.Admin,this.getScreenSize()}getScreenSize(){this.sidebarMode=this.isMobile()?"over":"side"}ngOnInit(){if(this.translateService.onLangChange.subscribe(e=>{const t=this.store.getProperty("document_title");this.titleService.setTitle("en"===e.lang?t.en:t.cs),this.document.documentElement.lang=e.lang}),this.isLoginScreenShown=this.initAuth.isLoginScreenShown(),this.isServiceAccess=this.initAuth.isServiceAccessLoginScreenShown(),sessionStorage.removeItem("baLogout"),this.isLoginScreenShown||this.isServiceAccess){const e=this.preferredLangService.getPreferredLanguage(null);this.headerLabel=this.store.getProperty("en"===e?"header_label_en":"header_label_cs")}else this.attributesManagerService.getUserAttributes(this.store.getPerunPrincipal().userId).subscribe(e=>{const r=e.find(u=>"preferredLanguage"===u.friendlyName)?.value??null,d=this.preferredLangService.getPreferredLanguage(r);this.translateService.use(d)})}isMobile(){return window.innerWidth<=i.minWidth}isServiceLogin(){return!!sessionStorage.getItem("baLogout")}ngAfterViewInit(){const e=this.footer?.nativeElement?.offsetHeight?.toString()??"0";this.contentHeight="calc(100vh - 84px - "+e+"px)",this.changeDetector.detectChanges()}}return i.minWidth=992,i.\u0275fac=function(e){return new(e||i)(n.Y36(Ut),n.Y36(jn),n.Y36(tn),n.Y36(oA),n.Y36(n.sBO),n.Y36(xv),n.Y36(ce),n.Y36(T.K0))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-root"]],viewQuery:function(e,t){if(1&e&&n.Gf(cI,5),2&e){let r;n.iGM(r=n.CRH())&&(t.footer=r.first)}},hostBindings:function(e,t){1&e&&n.NdJ("resize",function(d){return t.getScreenSize(d)},!1,n.Jf7)},decls:2,vars:2,consts:[[3,"ngIf"],[3,"application","headerTitle",4,"ngIf"],[1,"app-min-width"],[3,"otherApp","sidenavToggle"],["autosize","true"],["fixedInViewport","","fixedTopGap","64",1,"side-menu-size",3,"mode","ngStyle","opened"],["sidenav",""],[1,"overflow-hidden",3,"sideNav"],["id","content-inner",3,"ngStyle"],["id","content-wrap",3,"ngStyle"],["footer",""],[3,"application","headerTitle"]],template:function(e,t){1&e&&(n.YNc(0,uI,14,13,"ng-template",0),n.YNc(1,hI,1,2,"perun-web-apps-login-screen-base",1)),2&e&&(n.Q6J("ngIf",!t.isLoginScreenShown&&!t.isServiceAccess&&!t.isServiceLogin()),n.xp6(1),n.Q6J("ngIf",t.isLoginScreenShown||t.isServiceAccess||t.isServiceLogin()))},dependencies:[T.O5,T.PC,yE,wE,Dv,Wr,Nv,ZE,mO,IO,UO,sI,lI],styles:["#content-inner[_ngcontent-%COMP%]{position:relative}#content-wrap[_ngcontent-%COMP%]{padding-bottom:25px;padding-top:10px;margin:10px}@media (min-width: 600px){#content-wrap[_ngcontent-%COMP%]{padding-left:25px;padding-right:25px}}a[_ngcontent-%COMP%]{text-decoration:none;color:#000}.side-menu-size[_ngcontent-%COMP%]{width:300px;height:auto}"]}),i})();var CD=E(1158);function fI(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"button",15),n.NdJ("click",function(){n.CHM(e);const r=n.oxw().index,d=n.oxw();return n.KtG(d.removeValue(r))}),n.TgZ(1,"mat-icon"),n._uU(2," indeterminate_check_box "),n.qZA()()}}function mI(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div",9)(1,"mat-form-field",10),n._UZ(2,"label",11),n.TgZ(3,"input",12),n.NdJ("click",function(){const d=n.CHM(e).index,u=n.oxw();return n.KtG(u.readonly&&u.attribute.displayName&&u.showValue(u.keys[d],u.attribute.displayName))})("ngModelChange",function(r){const u=n.CHM(e).index,c=n.oxw();return n.KtG(c.keys[u]=r)}),n.qZA()(),n.TgZ(4,"mat-form-field",10),n._UZ(5,"label",11),n.TgZ(6,"input",13),n.NdJ("click",function(){const d=n.CHM(e).$implicit,u=n.oxw();return n.KtG(u.readonly&&void 0!==u.attribute.displayName&&u.showValue(d,u.attribute.displayName))})("ngModelChange",function(r){const u=n.CHM(e).index,c=n.oxw();return n.KtG(c.values[u]=r)}),n.qZA()(),n.YNc(7,fI,3,0,"button",14),n.qZA()}if(2&i){const e=a.index,t=n.oxw();n.xp6(1),n.s9C("appearance",t.readonly?"none":"standard"),n.xp6(1),n.hYB("for","",t.attribute.id,"-key-",e,""),n.xp6(1),n.ekj("cursor-pointer",t.readonly&&void 0!==t.attribute.displayName),n.hYB("id","",t.attribute.id,"-key-",e,""),n.MGl("name","key-",e,""),n.Q6J("ngModel",t.keys[e])("readonly",t.readonly),n.xp6(1),n.s9C("appearance",t.readonly?"none":"standard"),n.xp6(1),n.hYB("for","",t.attribute.id,"-value-",e,""),n.xp6(1),n.ekj("cursor-pointer",t.readonly&&void 0!==t.attribute.displayName),n.MGl("name","value-",e,""),n.hYB("id","",t.attribute.id,"-value-",e,""),n.Q6J("readonly",t.readonly)("ngModel",t.values[e]),n.xp6(1),n.Q6J("ngIf",!t.readonly)}}function gI(i,a){1&i&&(n.TgZ(0,"mat-icon"),n._uU(1,"more_horiz"),n.qZA())}function _I(i,a){1&i&&(n.TgZ(0,"mat-icon"),n._uU(1,"keyboard_arrow_up"),n.qZA())}function bI(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"button",16),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onShowChange())}),n.YNc(1,gI,2,0,"mat-icon",17),n.YNc(2,_I,2,0,"mat-icon",17),n.qZA()}if(2&i){const e=n.oxw();n.xp6(1),n.Q6J("ngIf",!e.showMore),n.xp6(1),n.Q6J("ngIf",e.showMore)}}function AI(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"button",18),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.addValue())}),n.TgZ(1,"mat-icon"),n._uU(2," add_box "),n.qZA()()}}let yI=(()=>{class i{constructor(e){this.dialog=e,this.readonly=!1,this.keys=[],this.values=[],this.defaultItemsShown=3,this.showMore=!1}ngOnInit(){if(this.attribute.value){const e=new Map(Object.entries(this.attribute.value));for(const[t,r]of e.entries())this.keys.push(t),this.values.push(r)}this.itemsShown=this.readonly?this.values.length:this.defaultItemsShown,this.showMore=this.readonly,this.readonly||(this.readonly=to(this.attribute))}customTrackBy(e){return e}addValue(){this.keys.push(""),this.values.push(""),this.values.length>this.defaultItemsShown&&(this.showMore=!0,this.setItemsShown())}removeValue(e){this.keys.splice(e,1),this.values.splice(e,1)}updateAttribute(){const e={};for(let t=0;tt.defaultItemsShown),n.xp6(1),n.Q6J("ngIf",!t.readonly))},dependencies:[T.sg,T.O5,Mm,_i,Ai,cd,Nr,ua,Zs,zn,Ht,yr,di,ji],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}.input-margin[_ngcontent-%COMP%]{margin-bottom:-30px}.btn-margin[_ngcontent-%COMP%]{margin-top:10px}"]}),i})();const wI=["input"],MI=["label"],CI=function(i){return{enterDuration:i}},vI=["*"],TI=new n.OlP("mat-checkbox-default-options",{providedIn:"root",factory:vD});function vD(){return{color:"accent",clickAction:"check-indeterminate"}}let xI=0;const TD=vD(),SI={provide:ar,useExisting:(0,n.Gpc)(()=>ic),multi:!0};class EI{}const DI=Vs(Rl(Ni(Xa(class{constructor(i){this._elementRef=i}}))));let LI=(()=>{class i extends DI{constructor(e,t,r,d,u,c,o){super(t),this._changeDetectorRef=r,this._ngZone=d,this._animationMode=c,this._options=o,this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new n.vpe,this.indeterminateChange=new n.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||TD,this.color=this.defaultColor=this._options.color||TD.color,this.tabIndex=parseInt(u)||0,this.id=this._uniqueId=`${e}${++xI}`}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(e){this._required=Ge(e)}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(e){const t=Ge(e);t!=this.checked&&(this._checked=t,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){const t=Ge(e);t!==this.disabled&&(this._disabled=t,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(e){const t=e!=this._indeterminate;this._indeterminate=Ge(e),t&&(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(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(e){let t=this._currentCheckState,r=this._getAnimationTargetElement();if(t!==e&&r&&(this._currentAnimationClass&&r.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(t,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){r.classList.add(this._currentAnimationClass);const d=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{r.classList.remove(d)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){var e;const t=null===(e=this._options)||void 0===e?void 0:e.clickAction;this.disabled||"noop"===t?!this.disabled&&"noop"===t&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==t&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}_onInteractionEvent(e){e.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(e,t){if("NoopAnimations"===this._animationMode)return"";switch(e){case 0:if(1===t)return this._animationClasses.uncheckedToChecked;if(3==t)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===t?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===t?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===t?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){const t=this._inputElement;t&&(t.nativeElement.indeterminate=e)}}return i.\u0275fac=function(e){n.$Z()},i.\u0275dir=n.lG2({type:i,viewQuery:function(e,t){if(1&e&&(n.Gf(wI,5),n.Gf(MI,5),n.Gf(Jr,5)),2&e){let r;n.iGM(r=n.CRH())&&(t._inputElement=r.first),n.iGM(r=n.CRH())&&(t._labelElement=r.first),n.iGM(r=n.CRH())&&(t.ripple=r.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},features:[n.qOj]}),i})(),ic=(()=>{class i extends LI{constructor(e,t,r,d,u,c,o){super("mat-checkbox-",e,t,d,u,c,o),this._focusMonitor=r,this._animationClasses={uncheckedToChecked:"mat-checkbox-anim-unchecked-checked",uncheckedToIndeterminate:"mat-checkbox-anim-unchecked-indeterminate",checkedToUnchecked:"mat-checkbox-anim-checked-unchecked",checkedToIndeterminate:"mat-checkbox-anim-checked-indeterminate",indeterminateToChecked:"mat-checkbox-anim-indeterminate-checked",indeterminateToUnchecked:"mat-checkbox-anim-indeterminate-unchecked"}}_createChangeEvent(e){const t=new EI;return t.source=this,t.checked=e,t}_getAnimationTargetElement(){return this._elementRef.nativeElement}ngAfterViewInit(){super.ngAfterViewInit(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{e||this._onBlur()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onInputClick(e){e.stopPropagation(),super._handleInputClick()}focus(e,t){e?this._focusMonitor.focusVia(this._inputElement,e,t):this._inputElement.nativeElement.focus(t)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36($r),n.Y36(n.R0b),n.$8M("tabindex"),n.Y36(n.QbO,8),n.Y36(TI,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(e,t){2&e&&(n.Ikx("id",t.id),n.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null),n.ekj("mat-checkbox-indeterminate",t.indeterminate)("mat-checkbox-checked",t.checked)("mat-checkbox-disabled",t.disabled)("mat-checkbox-label-before","before"==t.labelPosition)("_mat-animation-noopable","NoopAnimations"===t._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[n._Bn([SI]),n.qOj],ngContentSelectors:vI,decls:17,vars:21,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","aria-hidden","true",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(e,t){if(1&e&&(n.F$t(),n.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),n.NdJ("change",function(d){return t._onInteractionEvent(d)})("click",function(d){return t._onInputClick(d)}),n.qZA(),n.TgZ(5,"span",5),n._UZ(6,"span",6),n.qZA(),n._UZ(7,"span",7),n.TgZ(8,"span",8),n.O4$(),n.TgZ(9,"svg",9),n._UZ(10,"path",10),n.qZA(),n.kcU(),n._UZ(11,"span",11),n.qZA()(),n.TgZ(12,"span",12,13),n.NdJ("cdkObserveContent",function(){return t._onLabelTextChange()}),n.TgZ(14,"span",14),n._uU(15,"\xa0"),n.qZA(),n.Hsn(16),n.qZA()()),2&e){const r=n.MAs(1),d=n.MAs(13);n.uIk("for",t.inputId),n.xp6(2),n.ekj("mat-checkbox-inner-container-no-side-margin",!d.textContent||!d.textContent.trim()),n.xp6(1),n.Q6J("id",t.inputId)("required",t.required)("checked",t.checked)("disabled",t.disabled)("tabIndex",t.tabIndex),n.uIk("value",t.value)("name",t.name)("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby)("aria-checked",t._getAriaChecked())("aria-describedby",t.ariaDescribedby),n.xp6(2),n.Q6J("matRippleTrigger",r)("matRippleDisabled",t._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",n.VKq(19,CI,"NoopAnimations"===t._animationMode?0:150))}},dependencies:[Jr,c0],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:rgba(0,0,0,0);position:relative}.mat-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.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}.mat-checkbox-layout{-webkit-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;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:rgba(0,0,0,0);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}.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);-webkit-print-color-adjust:exact;color-adjust:exact}._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:rgba(0,0,0,0)}.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-input:focus~.mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),i})(),xD=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})(),mg=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[ca,wt,uu,xD,wt,xD]}),i})(),iT=(()=>{class i{transform(e){return e.replace(/\s/g,"-").replace(/\./g,"-").toLowerCase()}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=n.Yjl({name:"multiWordDataCy",type:i,pure:!0}),i})();function PI(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"mat-checkbox",2),n.NdJ("change",function(){n.CHM(e);const r=n.oxw();return n.KtG(r._sendEventToParent())})("ngModelChange",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.attribute.value=r)}),n.ALo(1,"multiWordDataCy"),n.qZA()}if(2&i){const e=n.oxw();n.Q2q("data-cy","",n.lcZ(1,2,e.attribute.displayName),"-value"),n.Q6J("ngModel",e.attribute.value)}}function kI(i,a){if(1&i&&(n.TgZ(0,"mat-label"),n._uU(1),n.qZA()),2&i){const e=n.oxw();n.xp6(1),n.Oqu(e.attribute.value)}}let OI=(()=>{class i{constructor(){this.readonly=!1,this.sendEventToParent=new n.vpe}ngOnInit(){this.readonly||(this.readonly=to(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-attribute-value-boolean"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:3,vars:2,consts:[[3,"ngModel","change","ngModelChange",4,"ngIf"],[4,"ngIf"],[3,"ngModel","change","ngModelChange"]],template:function(e,t){1&e&&(n.TgZ(0,"div"),n.YNc(1,PI,2,4,"mat-checkbox",0),n.YNc(2,kI,2,1,"mat-label",1),n.qZA()),2&e&&(n.xp6(1),n.Q6J("ngIf",!t.readonly),n.xp6(1),n.Q6J("ngIf",t.readonly))},dependencies:[T.O5,ic,Ai,ua,as,iT]}),i})();function rT(i,a,e){for(let t in a)if(a.hasOwnProperty(t)){const r=a[t];r?i.setProperty(t,r,null!=e&&e.has(t)?"important":""):i.removeProperty(t)}return i}function sf(i,a){const e=a?"":"none";rT(i.style,{"touch-action":a?"":"none","-webkit-user-drag":a?"":"none","-webkit-tap-highlight-color":a?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function SD(i,a,e){rT(i.style,{position:a?"":"fixed",top:a?"":"0",opacity:a?"":"0",left:a?"":"-999em"},e)}function HA(i,a){return a&&"none"!=a?i+" "+a:i}function ED(i){const a=i.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(i)*a}function aT(i,a){return i.getPropertyValue(a).split(",").map(t=>t.trim())}function sT(i){const a=i.getBoundingClientRect();return{top:a.top,right:a.right,bottom:a.bottom,left:a.left,width:a.width,height:a.height,x:a.x,y:a.y}}function oT(i,a,e){const{top:t,bottom:r,left:d,right:u}=i;return e>=t&&e<=r&&a>=d&&a<=u}function gg(i,a,e){i.top+=a,i.bottom=i.top+i.height,i.left+=e,i.right=i.left+i.width}function DD(i,a,e,t){const{top:r,right:d,bottom:u,left:c,width:o,height:s}=i,l=o*a,h=s*a;return t>r-h&&tc-l&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:sT(e)})})}handleScroll(a){const e=Or(a),t=this.positions.get(e);if(!t)return null;const r=t.scrollPosition;let d,u;if(e===this._document){const s=this.getViewportScrollPosition();d=s.top,u=s.left}else d=e.scrollTop,u=e.scrollLeft;const c=r.top-d,o=r.left-u;return this.positions.forEach((s,l)=>{s.clientRect&&e!==l&&e.contains(l)&&gg(s.clientRect,c,o)}),r.top=d,r.left=u,{top:c,left:o}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function HD(i){const a=i.cloneNode(!0),e=a.querySelectorAll("[id]"),t=i.nodeName.toLowerCase();a.removeAttribute("id");for(let r=0;r{if(this.beforeStarted.next(),this._handles.length){const o=this._getTargetHandle(c);o&&!this._disabledHandles.has(o)&&!this.disabled&&this._initializeDragSequence(o,c)}else this.disabled||this._initializeDragSequence(this._rootElement,c)},this._pointerMove=c=>{const o=this._getPointerPositionOnPage(c);if(!this._hasStartedDragging){if(Math.abs(o.x-this._pickupPositionOnPage.x)+Math.abs(o.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const m=Date.now()>=this._dragStartTime+this._getDragStartDelay(c),g=this._dropContainer;if(!m)return void this._endDragSequence(c);(!g||!g.isDragging()&&!g.isReceiving())&&(c.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(c)))}return}c.preventDefault();const s=this._getConstrainedPointerPosition(o);if(this._hasMoved=!0,this._lastKnownPointerPosition=o,this._updatePointerDirectionDelta(s),this._dropContainer)this._updateActiveDropContainer(s,o);else{const l=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,h=this._activeTransform;h.x=s.x-l.x+this._passiveTransform.x,h.y=s.y-l.y+this._passiveTransform.y,this._applyRootElementTransform(h.x,h.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:s,event:c,distance:this._getDragDistance(s),delta:this._pointerDirectionDelta})})},this._pointerUp=c=>{this._endDragSequence(c)},this._nativeDragStart=c=>{if(this._handles.length){const o=this._getTargetHandle(c);o&&!this._disabledHandles.has(o)&&!this.disabled&&c.preventDefault()}else this.disabled||c.preventDefault()},this.withRootElement(a).withParent(e.parentDragRef||null),this._parentPositions=new LD(t),u.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(a){const e=Ge(a);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(t=>sf(t,e)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(a){this._handles=a.map(t=>ci(t)),this._handles.forEach(t=>sf(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(a){return this._previewTemplate=a,this}withPlaceholderTemplate(a){return this._placeholderTemplate=a,this}withRootElement(a){const e=ci(a);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,RA),e.addEventListener("touchstart",this._pointerDown,OD),e.addEventListener("dragstart",this._nativeDragStart,RA)}),this._initialTransform=void 0,this._rootElement=e),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(a){return this._boundaryElement=a?ci(a):null,this._resizeSubscription.unsubscribe(),a&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(a){return this._parentDragRef=a,this}dispose(){var a,e;this._removeRootElementListeners(this._rootElement),this.isDragging()&&(null===(e=this._rootElement)||void 0===e||e.remove()),null===(a=this._anchor)||void 0===a||a.remove(),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=this._parentDragRef=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(a){!this._disabledHandles.has(a)&&this._handles.indexOf(a)>-1&&(this._disabledHandles.add(a),sf(a,!0))}enableHandle(a){this._disabledHandles.has(a)&&(this._disabledHandles.delete(a),sf(a,this.disabled))}withDirection(a){return this._direction=a,this}_withDropContainer(a){this._dropContainer=a}getFreeDragPosition(){const a=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:a.x,y:a.y}}setFreeDragPosition(a){return this._activeTransform={x:0,y:0},this._passiveTransform.x=a.x,this._passiveTransform.y=a.y,this._dropContainer||this._applyRootElementTransform(a.x,a.y),this}withPreviewContainer(a){return this._previewContainer=a,this}_sortFromLastPointerPosition(){const a=this._lastKnownPointerPosition;a&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(a),a)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){var a,e;null===(a=this._preview)||void 0===a||a.remove(),null===(e=this._previewRef)||void 0===e||e.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){var a,e;null===(a=this._placeholder)||void 0===a||a.remove(),null===(e=this._placeholderRef)||void 0===e||e.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(a){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:a}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(a),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(a);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e,event:a})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(a){_g(a)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const t=this._rootElement,r=t.parentNode,d=this._placeholder=this._createPlaceholderElement(),u=this._anchor=this._anchor||this._document.createComment(""),c=this._getShadowRoot();r.insertBefore(u,t),this._initialTransform=t.style.transform||"",this._preview=this._createPreviewElement(),SD(t,!1,lT),this._document.body.appendChild(r.replaceChild(d,t)),this._getPreviewInsertionPoint(r,c).appendChild(this._preview),this.started.next({source:this,event:a}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this,event:a}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(a,e){this._parentDragRef&&e.stopPropagation();const t=this.isDragging(),r=_g(e),d=!r&&0!==e.button,u=this._rootElement,c=Or(e),o=!r&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),s=r?_0(e):jh(e);if(c&&c.draggable&&"mousedown"===e.type&&e.preventDefault(),t||d||o||s)return;if(this._handles.length){const p=u.style;this._rootElementTapHighlight=p.webkitTapHighlightColor||"",p.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(p=>this._updateOnScroll(p)),this._boundaryElement&&(this._boundaryRect=sT(this._boundaryElement));const l=this._previewTemplate;this._pickupPositionInElement=l&&l.template&&!l.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,a,e);const h=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:h.x,y:h.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(a){SD(this._rootElement,!0,lT),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,t=e.getItemIndex(this),r=this._getPointerPositionOnPage(a),d=this._getDragDistance(r),u=e._isOverContainer(r.x,r.y);this.ended.next({source:this,distance:d,dropPoint:r,event:a}),this.dropped.next({item:this,currentIndex:t,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:u,distance:d,dropPoint:r,event:a}),e.drop(this,t,this._initialIndex,this._initialContainer,u,d,r),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:a,y:e},{x:t,y:r}){let d=this._initialContainer._getSiblingContainerFromPosition(this,a,e);!d&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(a,e)&&(d=this._initialContainer),d&&d!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=d,this._dropContainer.enter(this,a,e,d===this._initialContainer&&d.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:d,currentIndex:d.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(t,r),this._dropContainer._sortItem(this,a,e,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(a,e):this._applyPreviewTransform(a-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const a=this._previewTemplate,e=this.previewClass,t=a?a.template:null;let r;if(t&&a){const d=a.matchSize?this._initialClientRect:null,u=a.viewContainer.createEmbeddedView(t,a.context);u.detectChanges(),r=BD(u,this._document),this._previewRef=u,a.matchSize?ND(r,d):r.style.transform=PA(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else r=HD(this._rootElement),ND(r,this._initialClientRect),this._initialTransform&&(r.style.transform=this._initialTransform);return rT(r.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},lT),sf(r,!1),r.classList.add("cdk-drag-preview"),r.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(d=>r.classList.add(d)):r.classList.add(e)),r}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const a=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(a.left,a.top);const e=function BI(i){const a=getComputedStyle(i),e=aT(a,"transition-property"),t=e.find(c=>"transform"===c||"all"===c);if(!t)return 0;const r=e.indexOf(t),d=aT(a,"transition-duration"),u=aT(a,"transition-delay");return ED(d[r])+ED(u[r])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{const r=u=>{var c;(!u||Or(u)===this._preview&&"transform"===u.propertyName)&&(null===(c=this._preview)||void 0===c||c.removeEventListener("transitionend",r),t(),clearTimeout(d))},d=setTimeout(r,1.5*e);this._preview.addEventListener("transitionend",r)}))}_createPlaceholderElement(){const a=this._placeholderTemplate,e=a?a.template:null;let t;return e?(this._placeholderRef=a.viewContainer.createEmbeddedView(e,a.context),this._placeholderRef.detectChanges(),t=BD(this._placeholderRef,this._document)):t=HD(this._rootElement),t.style.pointerEvents="none",t.classList.add("cdk-drag-placeholder"),t}_getPointerPositionInElement(a,e,t){const r=e===this._rootElement?null:e,d=r?r.getBoundingClientRect():a,u=_g(t)?t.targetTouches[0]:t,c=this._getViewportScrollPosition();return{x:d.left-a.left+(u.pageX-d.left-c.left),y:d.top-a.top+(u.pageY-d.top-c.top)}}_getPointerPositionOnPage(a){const e=this._getViewportScrollPosition(),t=_g(a)?a.touches[0]||a.changedTouches[0]||{pageX:0,pageY:0}:a,r=t.pageX-e.left,d=t.pageY-e.top;if(this._ownerSVGElement){const u=this._ownerSVGElement.getScreenCTM();if(u){const c=this._ownerSVGElement.createSVGPoint();return c.x=r,c.y=d,c.matrixTransform(u.inverse())}}return{x:r,y:d}}_getConstrainedPointerPosition(a){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:t,y:r}=this.constrainPosition?this.constrainPosition(a,this,this._initialClientRect,this._pickupPositionInElement):a;if("x"===this.lockAxis||"x"===e?r=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===e)&&(t=this._pickupPositionOnPage.x),this._boundaryRect){const{x:d,y:u}=this._pickupPositionInElement,c=this._boundaryRect,{width:o,height:s}=this._getPreviewRect(),l=c.top+u,h=c.bottom-(s-u);t=ID(t,c.left+d,c.right-(o-d)),r=ID(r,l,h)}return{x:t,y:r}}_updatePointerDirectionDelta(a){const{x:e,y:t}=a,r=this._pointerDirectionDelta,d=this._pointerPositionAtLastDirectionChange,u=Math.abs(e-d.x),c=Math.abs(t-d.y);return u>this._config.pointerDirectionChangeThreshold&&(r.x=e>d.x?1:-1,d.x=e),c>this._config.pointerDirectionChangeThreshold&&(r.y=t>d.y?1:-1,d.y=t),r}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const a=this._handles.length>0||!this.isDragging();a!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=a,sf(this._rootElement,a))}_removeRootElementListeners(a){a.removeEventListener("mousedown",this._pointerDown,RA),a.removeEventListener("touchstart",this._pointerDown,OD),a.removeEventListener("dragstart",this._nativeDragStart,RA)}_applyRootElementTransform(a,e){const t=PA(a,e),r=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=r.transform&&"none"!=r.transform?r.transform:""),r.transform=HA(t,this._initialTransform)}_applyPreviewTransform(a,e){var t;const r=null!==(t=this._previewTemplate)&&void 0!==t&&t.template?void 0:this._initialTransform,d=PA(a,e);this._preview.style.transform=HA(d,r)}_getDragDistance(a){const e=this._pickupPositionOnPage;return e?{x:a.x-e.x,y:a.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:a,y:e}=this._passiveTransform;if(0===a&&0===e||this.isDragging()||!this._boundaryElement)return;const t=this._rootElement.getBoundingClientRect(),r=this._boundaryElement.getBoundingClientRect();if(0===r.width&&0===r.height||0===t.width&&0===t.height)return;const d=r.left-t.left,u=t.right-r.right,c=r.top-t.top,o=t.bottom-r.bottom;r.width>t.width?(d>0&&(a+=d),u>0&&(a-=u)):a=0,r.height>t.height?(c>0&&(e+=c),o>0&&(e-=o)):e=0,(a!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:a})}_getDragStartDelay(a){const e=this.dragStartDelay;return"number"==typeof e?e:_g(a)?e.touch:e?e.mouse:0}_updateOnScroll(a){const e=this._parentPositions.handleScroll(a);if(e){const t=Or(a);this._boundaryRect&&t!==this._boundaryElement&&t.contains(this._boundaryElement)&&gg(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(){var a;return(null===(a=this._parentPositions.positions.get(this._document))||void 0===a?void 0:a.scrollPosition)||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=au(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(a,e){const t=this._previewContainer||"global";if("parent"===t)return a;if("global"===t){const r=this._document;return e||r.fullscreenElement||r.webkitFullscreenElement||r.mozFullScreenElement||r.msFullscreenElement||r.body}return ci(t)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(a){return this._handles.find(e=>a.target&&(a.target===e||e.contains(a.target)))}}function PA(i,a){return`translate3d(${Math.round(i)}px, ${Math.round(a)}px, 0)`}function ID(i,a,e){return Math.max(a,Math.min(e,i))}function _g(i){return"t"===i.type[0]}function BD(i,a){const e=i.rootNodes;if(1===e.length&&e[0].nodeType===a.ELEMENT_NODE)return e[0];const t=a.createElement("div");return e.forEach(r=>t.appendChild(r)),t}function ND(i,a){i.style.width=`${a.width}px`,i.style.height=`${a.height}px`,i.style.transform=PA(a.left,a.top)}function VD(i,a,e){const t=bg(a,i.length-1),r=bg(e,i.length-1);if(t===r)return;const d=i[t],u=r0)return null;const c="horizontal"===this.orientation,o=d.findIndex(w=>w.drag===a),s=d[u],h=s.clientRect,p=o>u?1:-1,m=this._getItemOffsetPx(d[o].clientRect,h,p),g=this._getSiblingOffsetPx(o,d,p),f=d.slice();return VD(d,o,u),d.forEach((w,N)=>{if(f[N]===w)return;const se=w.drag===a,Pe=se?m:g,ot=se?a.getPlaceholderElement():w.drag.getRootElement();w.offset+=Pe,c?(ot.style.transform=HA(`translate3d(${Math.round(w.offset)}px, 0, 0)`,w.initialTransform),gg(w.clientRect,0,Pe)):(ot.style.transform=HA(`translate3d(0, ${Math.round(w.offset)}px, 0)`,w.initialTransform),gg(w.clientRect,Pe,0))}),this._previousSwap.overlaps=oT(h,e,t),this._previousSwap.drag=s.drag,this._previousSwap.delta=c?r.x:r.y,{previousIndex:o,currentIndex:u}}enter(a,e,t,r){const d=null==r||r<0?this._getItemIndexFromPointerPosition(a,e,t):r,u=this._activeDraggables,c=u.indexOf(a),o=a.getPlaceholderElement();let s=u[d];if(s===a&&(s=u[d+1]),!s&&(null==d||-1===d||d-1&&u.splice(c,1),s&&!this._dragDropRegistry.isDragging(s)){const l=s.getRootElement();l.parentElement.insertBefore(o,l),u.splice(d,0,a)}else ci(this._element).appendChild(o),u.push(a);o.style.transform="",this._cacheItemPositions()}withItems(a){this._activeDraggables=a.slice(),this._cacheItemPositions()}withSortPredicate(a){this._sortPredicate=a}reset(){this._activeDraggables.forEach(a=>{const e=a.getRootElement();if(e){var t;const r=null===(t=this._itemPositions.find(d=>d.drag===a))||void 0===t?void 0:t.initialTransform;e.style.transform=r||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(a){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(t=>t.drag===a)}updateOnScroll(a,e){this._itemPositions.forEach(({clientRect:t})=>{gg(t,a,e)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()})}_cacheItemPositions(){const a="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(e=>{const t=e.getVisibleElement();return{drag:e,offset:0,initialTransform:t.style.transform||"",clientRect:sT(t)}}).sort((e,t)=>a?e.clientRect.left-t.clientRect.left:e.clientRect.top-t.clientRect.top)}_getItemOffsetPx(a,e,t){const r="horizontal"===this.orientation;let d=r?e.left-a.left:e.top-a.top;return-1===t&&(d+=r?e.width-a.width:e.height-a.height),d}_getSiblingOffsetPx(a,e,t){const r="horizontal"===this.orientation,d=e[a].clientRect,u=e[a+-1*t];let c=d[r?"width":"height"]*t;if(u){const o=r?"left":"top",s=r?"right":"bottom";-1===t?c-=u.clientRect[o]-d[s]:c+=d[o]-u.clientRect[s]}return c}_shouldEnterAsFirstChild(a,e){if(!this._activeDraggables.length)return!1;const t=this._itemPositions,r="horizontal"===this.orientation;if(t[0].drag!==this._activeDraggables[0]){const u=t[t.length-1].clientRect;return r?a>=u.right:e>=u.bottom}{const u=t[0].clientRect;return r?a<=u.left:e<=u.top}}_getItemIndexFromPointerPosition(a,e,t,r){const d="horizontal"===this.orientation,u=this._itemPositions.findIndex(({drag:c,clientRect:o})=>{if(c===a)return!1;if(r){const s=d?r.x:r.y;if(c===this._previousSwap.drag&&this._previousSwap.overlaps&&s===this._previousSwap.delta)return!1}return d?e>=Math.floor(o.left)&&e=Math.floor(o.top)&&t!0,this.sortPredicate=()=>!0,this.beforeStarted=new Le.x,this.entered=new Le.x,this.exited=new Le.x,this.dropped=new Le.x,this.sorted=new Le.x,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=Nt.w0.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new Le.x,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function II(i=0,a=Mu.z){return i<0&&(i=0),(0,Ol.H)(i,i,a)}(0,X1).pipe(rt(this._stopScrollTimers)).subscribe(()=>{const u=this._scrollNode,c=this.autoScrollStep;1===this._verticalScrollDirection?u.scrollBy(0,-c):2===this._verticalScrollDirection&&u.scrollBy(0,c),1===this._horizontalScrollDirection?u.scrollBy(-c,0):2===this._horizontalScrollDirection&&u.scrollBy(c,0)})},this.element=ci(a),this._document=t,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new LD(t),this._sortStrategy=new FI(this.element,e),this._sortStrategy.withSortPredicate((u,c)=>this.sortPredicate(u,c,this))}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(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(a,e,t,r){this._draggingStarted(),null==r&&this.sortingDisabled&&(r=this._draggables.indexOf(a)),this._sortStrategy.enter(a,e,t,r),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:a,container:this,currentIndex:this.getItemIndex(a)})}exit(a){this._reset(),this.exited.next({item:a,container:this})}drop(a,e,t,r,d,u,c,o={}){this._reset(),this.dropped.next({item:a,currentIndex:e,previousIndex:t,container:this,previousContainer:r,isPointerOverContainer:d,distance:u,dropPoint:c,event:o})}withItems(a){const e=this._draggables;return this._draggables=a,a.forEach(t=>t._withDropContainer(this)),this.isDragging()&&(e.filter(r=>r.isDragging()).every(r=>-1===a.indexOf(r))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(a){return this._sortStrategy.direction=a,this}connectedTo(a){return this._siblings=a.slice(),this}withOrientation(a){return this._sortStrategy.orientation=a,this}withScrollableParents(a){const e=ci(this.element);return this._scrollableElements=-1===a.indexOf(e)?[e,...a]:a.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(a){return this._isDragging?this._sortStrategy.getItemIndex(a):this._draggables.indexOf(a)}isReceiving(){return this._activeSiblings.size>0}_sortItem(a,e,t,r){if(this.sortingDisabled||!this._clientRect||!DD(this._clientRect,.05,e,t))return;const d=this._sortStrategy.sort(a,e,t,r);d&&this.sorted.next({previousIndex:d.previousIndex,currentIndex:d.currentIndex,container:this,item:a})}_startScrollingIfNecessary(a,e){if(this.autoScrollDisabled)return;let t,r=0,d=0;if(this._parentPositions.positions.forEach((u,c)=>{c===this._document||!u.clientRect||t||DD(u.clientRect,.05,a,e)&&([r,d]=function UI(i,a,e,t){const r=zD(a,t),d=UD(a,e);let u=0,c=0;if(r){const o=i.scrollTop;1===r?o>0&&(u=1):i.scrollHeight-o>i.clientHeight&&(u=2)}if(d){const o=i.scrollLeft;1===d?o>0&&(c=1):i.scrollWidth-o>i.clientWidth&&(c=2)}return[u,c]}(c,u.clientRect,a,e),(r||d)&&(t=c))}),!r&&!d){const{width:u,height:c}=this._viewportRuler.getViewportSize(),o={width:u,height:c,top:0,right:u,bottom:c,left:0};r=zD(o,e),d=UD(o,a),t=window}t&&(r!==this._verticalScrollDirection||d!==this._horizontalScrollDirection||t!==this._scrollNode)&&(this._verticalScrollDirection=r,this._horizontalScrollDirection=d,this._scrollNode=t,(r||d)&&t?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const a=ci(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=a.msScrollSnapType||a.scrollSnapType||"",a.scrollSnapType=a.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const a=ci(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(a).clientRect}_reset(){this._isDragging=!1;const a=ci(this.element).style;a.scrollSnapType=a.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(e=>e._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(a,e){return null!=this._clientRect&&oT(this._clientRect,a,e)}_getSiblingContainerFromPosition(a,e,t){return this._siblings.find(r=>r._canReceive(a,e,t))}_canReceive(a,e,t){if(!this._clientRect||!oT(this._clientRect,e,t)||!this.enterPredicate(a,this))return!1;const r=this._getShadowRoot().elementFromPoint(e,t);if(!r)return!1;const d=ci(this.element);return r===d||d.contains(r)}_startReceiving(a,e){const t=this._activeSiblings;!t.has(a)&&e.every(r=>this.enterPredicate(r,this)||this._draggables.indexOf(r)>-1)&&(t.add(a),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(a){this._activeSiblings.delete(a),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(a=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(a);e&&this._sortStrategy.updateOnScroll(e.top,e.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const a=au(ci(this.element));this._cachedShadowRoot=a||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const a=this._sortStrategy.getActiveItemsSnapshot().filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,a))}}function zD(i,a){const{top:e,bottom:t,height:r}=i,d=.05*r;return a>=e-d&&a<=e+d?1:a>=t-d&&a<=t+d?2:0}function UD(i,a){const{left:e,right:t,width:r}=i,d=.05*r;return a>=e-d&&a<=e+d?1:a>=t-d&&a<=t+d?2:0}const kA=kr({passive:!1,capture:!0});let qI=(()=>{class i{constructor(e,t){this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=r=>r.isDragging(),this.pointerMove=new Le.x,this.pointerUp=new Le.x,this.scroll=new Le.x,this._preventDefaultWhileDragging=r=>{this._activeDragInstances.length>0&&r.preventDefault()},this._persistentTouchmoveListener=r=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&r.preventDefault(),this.pointerMove.next(r))},this._document=t}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,kA)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,kA)}startDragging(e,t){if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){const r=t.type.startsWith("touch");this._globalListeners.set(r?"touchend":"mouseup",{handler:d=>this.pointerUp.next(d),options:!0}).set("scroll",{handler:d=>this.scroll.next(d),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:kA}),r||this._globalListeners.set("mousemove",{handler:d=>this.pointerMove.next(d),options:kA}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((d,u)=>{this._document.addEventListener(u,d.handler,d.options)})})}}stopDragging(e){const t=this._activeDragInstances.indexOf(e);t>-1&&(this._activeDragInstances.splice(t,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(e){return this._activeDragInstances.indexOf(e)>-1}scrolled(e){const t=[this.scroll];return e&&e!==this._document&&t.push(new yn.y(r=>this._ngZone.runOutsideAngular(()=>{const u=c=>{this._activeDragInstances.length&&r.next(c)};return e.addEventListener("scroll",u,!0),()=>{e.removeEventListener("scroll",u,!0)}}))),(0,kn.T)(...t)}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((e,t)=>{this._document.removeEventListener(t,e.handler,e.options)}),this._globalListeners.clear()}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(n.R0b),n.LFG(T.K0))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const YI={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let cT=(()=>{class i{constructor(e,t,r,d){this._document=e,this._ngZone=t,this._viewportRuler=r,this._dragDropRegistry=d}createDrag(e,t=YI){return new jI(e,t,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new zI(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(T.K0),n.LFG(n.R0b),n.LFG(Us),n.LFG(qI))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const qD=new n.OlP("CDK_DRAG_PARENT"),YD=new n.OlP("CdkDropListGroup"),WD=new n.OlP("CDK_DRAG_CONFIG");let WI=0;const GD=new n.OlP("CdkDropList");let GI=(()=>{class i{constructor(e,t,r,d,u,c,o){this.element=e,this._changeDetectorRef=r,this._scrollDispatcher=d,this._dir=u,this._group=c,this._destroyed=new Le.x,this.connectedTo=[],this.id="cdk-drop-list-"+WI++,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.dropped=new n.vpe,this.entered=new n.vpe,this.exited=new n.vpe,this.sorted=new n.vpe,this._unsortedItems=new Set,this._dropListRef=t.createDropList(e),this._dropListRef.data=this,o&&this._assignDefaults(o),this._dropListRef.enterPredicate=(s,l)=>this.enterPredicate(s.data,l.data),this._dropListRef.sortPredicate=(s,l,h)=>this.sortPredicate(s,l.data,h.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),i._dropLists.push(this),c&&c._items.add(this)}get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(e){this._dropListRef.disabled=this._disabled=Ge(e)}addItem(e){this._unsortedItems.add(e),this._dropListRef.isDragging()&&this._syncItemsWithRef()}removeItem(e){this._unsortedItems.delete(e),this._dropListRef.isDragging()&&this._syncItemsWithRef()}getSortedItems(){return Array.from(this._unsortedItems).sort((e,t)=>e._dragRef.getVisibleElement().compareDocumentPosition(t._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){const e=i._dropLists.indexOf(this);e>-1&&i._dropLists.splice(e,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}_setupInputSyncSubscription(e){this._dir&&this._dir.change.pipe(vn(this._dir.value),rt(this._destroyed)).subscribe(t=>e.withDirection(t)),e.beforeStarted.subscribe(()=>{const t=qc(this.connectedTo).map(r=>"string"==typeof r?i._dropLists.find(u=>u.id===r):r);if(this._group&&this._group._items.forEach(r=>{-1===t.indexOf(r)&&t.push(r)}),!this._scrollableParentsResolved){const r=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(d=>d.getElementRef().nativeElement);this._dropListRef.withScrollableParents(r),this._scrollableParentsResolved=!0}e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.sortingDisabled=Ge(this.sortingDisabled),e.autoScrollDisabled=Ge(this.autoScrollDisabled),e.autoScrollStep=Qt(this.autoScrollStep,2),e.connectedTo(t.filter(r=>r&&r!==this).map(r=>r._dropListRef)).withOrientation(this.orientation)})}_handleEvents(e){e.beforeStarted.subscribe(()=>{this._syncItemsWithRef(),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(t=>{this.entered.emit({container:this,item:t.item.data,currentIndex:t.currentIndex})}),e.exited.subscribe(t=>{this.exited.emit({container:this,item:t.item.data}),this._changeDetectorRef.markForCheck()}),e.sorted.subscribe(t=>{this.sorted.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,container:this,item:t.item.data})}),e.dropped.subscribe(t=>{this.dropped.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,previousContainer:t.previousContainer.data,container:t.container.data,item:t.item.data,isPointerOverContainer:t.isPointerOverContainer,distance:t.distance,dropPoint:t.dropPoint,event:t.event}),this._changeDetectorRef.markForCheck()})}_assignDefaults(e){const{lockAxis:t,draggingDisabled:r,sortingDisabled:d,listAutoScrollDisabled:u,listOrientation:c}=e;this.disabled=r??!1,this.sortingDisabled=d??!1,this.autoScrollDisabled=u??!1,this.orientation=c||"vertical",t&&(this.lockAxis=t)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(e=>e._dragRef))}}return i._dropLists=[],i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(cT),n.Y36(n.sBO),n.Y36(ts),n.Y36(Hi,8),n.Y36(YD,12),n.Y36(WD,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(e,t){2&e&&(n.uIk("id",t.id),n.ekj("cdk-drop-list-disabled",t.disabled)("cdk-drop-list-dragging",t._dropListRef.isDragging())("cdk-drop-list-receiving",t._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],data:["cdkDropListData","data"],orientation:["cdkDropListOrientation","orientation"],id:"id",lockAxis:["cdkDropListLockAxis","lockAxis"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],sortPredicate:["cdkDropListSortPredicate","sortPredicate"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],autoScrollStep:["cdkDropListAutoScrollStep","autoScrollStep"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[n._Bn([{provide:YD,useValue:void 0},{provide:GD,useExisting:i}])]}),i})();const $D=new n.OlP("CdkDragHandle"),$I=new n.OlP("CdkDragPlaceholder"),ZI=new n.OlP("CdkDragPreview");let QI=(()=>{class i{constructor(e,t,r,d,u,c,o,s,l,h,p){this.element=e,this.dropContainer=t,this._ngZone=d,this._viewContainerRef=u,this._dir=o,this._changeDetectorRef=l,this._selfHandle=h,this._parentDrag=p,this._destroyed=new Le.x,this.started=new n.vpe,this.released=new n.vpe,this.ended=new n.vpe,this.entered=new n.vpe,this.exited=new n.vpe,this.dropped=new n.vpe,this.moved=new yn.y(m=>{const g=this._dragRef.moved.pipe((0,Mt.U)(f=>({source:this,pointerPosition:f.pointerPosition,event:f.event,delta:f.delta,distance:f.distance}))).subscribe(m);return()=>{g.unsubscribe()}}),this._dragRef=s.createDrag(e,{dragStartThreshold:c&&null!=c.dragStartThreshold?c.dragStartThreshold:5,pointerDirectionChangeThreshold:c&&null!=c.pointerDirectionChangeThreshold?c.pointerDirectionChangeThreshold:5,zIndex:c?.zIndex}),this._dragRef.data=this,i._dragInstances.push(this),c&&this._assignDefaults(c),t&&(this._dragRef._withDropContainer(t._dropListRef),t.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(e){this._disabled=Ge(e),this._dragRef.disabled=this._disabled}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}setFreeDragPosition(e){this._dragRef.setFreeDragPosition(e)}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,ht.q)(1),rt(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._setupHandlesListener(),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})})}ngOnChanges(e){const t=e.rootElementSelector,r=e.freeDragPosition;t&&!t.firstChange&&this._updateRootElement(),r&&!r.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const e=i._dragInstances.indexOf(this);e>-1&&i._dragInstances.splice(e,1),this._ngZone.runOutsideAngular(()=>{this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_updateRootElement(){const e=this.element.nativeElement;let t=e;var r;this.rootElementSelector&&(t=void 0!==e.closest?e.closest(this.rootElementSelector):null===(r=e.parentElement)||void 0===r?void 0:r.closest(this.rootElementSelector)),this._dragRef.withRootElement(t||e)}_getBoundaryElement(){const e=this.boundaryElement;return e?"string"==typeof e?this.element.nativeElement.closest(e):ci(e):null}_syncInputs(e){e.beforeStarted.subscribe(()=>{if(!e.isDragging()){const t=this._dir,r=this.dragStartDelay,d=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,u=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.dragStartDelay="object"==typeof r&&r?r:Qt(r),e.constrainPosition=this.constrainPosition,e.previewClass=this.previewClass,e.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(d).withPreviewTemplate(u).withPreviewContainer(this.previewContainer||"global"),t&&e.withDirection(t.value)}}),e.beforeStarted.pipe((0,ht.q)(1)).subscribe(()=>{if(this._parentDrag)return void e.withParent(this._parentDrag._dragRef);let t=this.element.nativeElement.parentElement;for(;t;){if(t.classList.contains("cdk-drag")){var r;e.withParent((null===(r=i._dragInstances.find(d=>d.element.nativeElement===t))||void 0===r?void 0:r._dragRef)||null);break}t=t.parentElement}})}_handleEvents(e){e.started.subscribe(t=>{this.started.emit({source:this,event:t.event}),this._changeDetectorRef.markForCheck()}),e.released.subscribe(t=>{this.released.emit({source:this,event:t.event})}),e.ended.subscribe(t=>{this.ended.emit({source:this,distance:t.distance,dropPoint:t.dropPoint,event:t.event}),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(t=>{this.entered.emit({container:t.container.data,item:this,currentIndex:t.currentIndex})}),e.exited.subscribe(t=>{this.exited.emit({container:t.container.data,item:this})}),e.dropped.subscribe(t=>{this.dropped.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,previousContainer:t.previousContainer.data,container:t.container.data,isPointerOverContainer:t.isPointerOverContainer,item:this,distance:t.distance,dropPoint:t.dropPoint,event:t.event})})}_assignDefaults(e){const{lockAxis:t,dragStartDelay:r,constrainPosition:d,previewClass:u,boundaryElement:c,draggingDisabled:o,rootElementSelector:s,previewContainer:l}=e;this.disabled=o??!1,this.dragStartDelay=r||0,t&&(this.lockAxis=t),d&&(this.constrainPosition=d),u&&(this.previewClass=u),c&&(this.boundaryElement=c),s&&(this.rootElementSelector=s),l&&(this.previewContainer=l)}_setupHandlesListener(){this._handles.changes.pipe(vn(this._handles),(0,Wt.b)(e=>{const t=e.filter(r=>r._parentDrag===this).map(r=>r.element);this._selfHandle&&this.rootElementSelector&&t.push(this.element),this._dragRef.withHandles(t)}),(0,An.w)(e=>(0,kn.T)(...e.map(t=>t._stateChanges.pipe(vn(t))))),rt(this._destroyed)).subscribe(e=>{const t=this._dragRef,r=e.element.nativeElement;e.disabled?t.disableHandle(r):t.enableHandle(r)})}}return i._dragInstances=[],i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(GD,12),n.Y36(T.K0),n.Y36(n.R0b),n.Y36(n.s_b),n.Y36(WD,8),n.Y36(Hi,8),n.Y36(cT),n.Y36(n.sBO),n.Y36($D,10),n.Y36(qD,12))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkDrag",""]],contentQueries:function(e,t,r){if(1&e&&(n.Suo(r,ZI,5),n.Suo(r,$I,5),n.Suo(r,$D,5)),2&e){let d;n.iGM(d=n.CRH())&&(t._previewTemplate=d.first),n.iGM(d=n.CRH())&&(t._placeholderTemplate=d.first),n.iGM(d=n.CRH())&&(t._handles=d)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(e,t){2&e&&n.ekj("cdk-drag-disabled",t.disabled)("cdk-drag-dragging",t._dragRef.isDragging())},inputs:{data:["cdkDragData","data"],lockAxis:["cdkDragLockAxis","lockAxis"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],boundaryElement:["cdkDragBoundary","boundaryElement"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"],disabled:["cdkDragDisabled","disabled"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],previewContainer:["cdkDragPreviewContainer","previewContainer"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[n._Bn([{provide:qD,useExisting:i}]),n.TTD]}),i})(),XI=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[cT],imports:[da]}),i})();const KI=["*"],ZD=new n.OlP("MatChipRemove"),JD=new n.OlP("MatChipAvatar"),QD=new n.OlP("MatChipTrailingIcon");class eB{constructor(a){this._elementRef=a}}const tB=Vs(Rl(Ni(eB),"primary"),-1);let OA=(()=>{class i extends tB{constructor(e,t,r,d,u,c,o,s){super(e),this._ngZone=t,this._changeDetectorRef=u,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListDisabled=!1,this.role="option",this._selected=!1,this._selectable=!0,this._disabled=!1,this._removable=!0,this._onFocus=new Le.x,this._onBlur=new Le.x,this.selectionChange=new n.vpe,this.destroyed=new n.vpe,this.removed=new n.vpe,this._addHostClassName(),this._chipRippleTarget=c.createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new $h(this,t,this._chipRippleTarget,r),this._chipRipple.setupTriggerEvents(e),this.rippleConfig=d||{},this._animationsDisabled="NoopAnimations"===o,this.tabIndex=null!=s&&parseInt(s)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(e){const t=Ge(e);t!==this._selected&&(this._selected=t,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(e){this._value=e}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(e){this._selectable=Ge(e)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(e){this._disabled=Ge(e)}get removable(){return this._removable}set removable(e){this._removable=Ge(e)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}_addHostClassName(){const e="mat-basic-chip",t=this._elementRef.nativeElement;t.hasAttribute(e)||t.tagName.toLowerCase()===e?t.classList.add(e):t.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(e=!1){return this._selected=!this.selected,this._dispatchSelectionChange(e),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(e){this.disabled&&e.preventDefault()}_handleKeydown(e){if(!this.disabled)switch(e.keyCode){case 46:case 8:this.remove(),e.preventDefault();break;case 32:this.selectable&&this.toggleSelected(!0),e.preventDefault()}}_blur(){this._ngZone.onStable.pipe((0,ht.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(e=!1){this.selectionChange.emit({source:this,isUserInput:e,selected:this._selected})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(n.R0b),n.Y36(Qn),n.Y36(Zh,8),n.Y36(n.sBO),n.Y36(T.K0),n.Y36(n.QbO,8),n.$8M("tabindex"))},i.\u0275dir=n.lG2({type:i,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(e,t,r){if(1&e&&(n.Suo(r,JD,5),n.Suo(r,QD,5),n.Suo(r,ZD,5)),2&e){let d;n.iGM(d=n.CRH())&&(t.avatar=d.first),n.iGM(d=n.CRH())&&(t.trailingIcon=d.first),n.iGM(d=n.CRH())&&(t.removeIcon=d.first)}},hostAttrs:[1,"mat-chip","mat-focus-indicator"],hostVars:15,hostBindings:function(e,t){1&e&&n.NdJ("click",function(d){return t._handleClick(d)})("keydown",function(d){return t._handleKeydown(d)})("focus",function(){return t.focus()})("blur",function(){return t._blur()}),2&e&&(n.uIk("tabindex",t.disabled?null:t.tabIndex)("role",t.role)("disabled",t.disabled||null)("aria-disabled",t.disabled.toString())("aria-selected",t.ariaSelected),n.ekj("mat-chip-selected",t.selected)("mat-chip-with-avatar",t.avatar)("mat-chip-with-trailing-icon",t.trailingIcon||t.removeIcon)("mat-chip-disabled",t.disabled)("_mat-animation-noopable",t._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",role:"role",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[n.qOj]}),i})();const XD=new n.OlP("mat-chips-default-options"),aB=w0(class{constructor(i,a,e,t){this._defaultErrorStateMatcher=i,this._parentForm=a,this._parentFormGroup=e,this.ngControl=t,this.stateChanges=new Le.x}});let sB=0;class oB{constructor(a,e){this.source=a,this.value=e}}let KD=(()=>{class i extends aB{constructor(e,t,r,d,u,c,o){super(c,d,u,o),this._elementRef=e,this._changeDetectorRef=t,this._dir=r,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new Le.x,this._uid="mat-chip-list-"+sB++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(s,l)=>s===l,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new n.vpe,this.valueChange=new n.vpe,this.ngControl&&(this.ngControl.valueAccessor=this)}get selected(){var e,t;return this.multiple?(null===(e=this._selectionModel)||void 0===e?void 0:e.selected)||[]:null===(t=this._selectionModel)||void 0===t?void 0:t.selected[0]}get role(){return this._explicitRole?this._explicitRole:this.empty?null:"listbox"}set role(e){this._explicitRole=e}get multiple(){return this._multiple}set multiple(e){this._multiple=Ge(e),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this.writeValue(e),this._value=e}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){var e,t,r,d;return null!==(e=null!==(t=this._required)&&void 0!==t?t:null===(r=this.ngControl)||void 0===r||null===(d=r.control)||void 0===d?void 0:d.hasValidator(bi.required))&&void 0!==e&&e}set required(e){this._required=Ge(e),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(e){this._placeholder=e,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(e){this._disabled=Ge(e),this._syncChipsState()}get selectable(){return this._selectable}set selectable(e){this._selectable=Ge(e),this.chips&&this.chips.forEach(t=>t.chipListSelectable=this._selectable)}set tabIndex(e){this._userTabIndex=e,this._tabIndex=e}get chipSelectionChanges(){return(0,kn.T)(...this.chips.map(e=>e.selectionChange))}get chipFocusChanges(){return(0,kn.T)(...this.chips.map(e=>e._onFocus))}get chipBlurChanges(){return(0,kn.T)(...this.chips.map(e=>e._onBlur))}get chipRemoveChanges(){return(0,kn.T)(...this.chips.map(e=>e.destroyed))}ngAfterContentInit(){this._keyManager=new m0(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe(rt(this._destroyed)).subscribe(e=>this._keyManager.withHorizontalOrientation(e)),this._keyManager.tabOut.pipe(rt(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe(vn(null),rt(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 Yi(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(e){this._chipInput=e,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",e.id)}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}writeValue(e){this.chips&&this._setSelectionByValue(e,!1)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this.stateChanges.next()}onContainerClick(e){this._originatesFromChip(e)||this.focus()}focus(e){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(e),this.stateChanges.next()))}_focusInput(e){this._chipInput&&this._chipInput.focus(e)}_keydown(e){const t=e.target;t&&t.classList.contains("mat-chip")&&(this._keyManager.onKeydown(e),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const e=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(e)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(e){return e>=0&&er.deselect()),Array.isArray(e))e.forEach(r=>this._selectValue(r,t)),this._sortValues();else{const r=this._selectValue(e,t);r&&t&&this._keyManager.setActiveItem(r)}}_selectValue(e,t=!0){const r=this.chips.find(d=>null!=d.value&&this._compareWith(d.value,e));return r&&(t?r.selectViaInteraction():r.select(),this._selectionModel.select(r)),r}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(e){this._selectionModel.clear(),this.chips.forEach(t=>{t!==e&&t.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(e=>{e.selected&&this._selectionModel.select(e)}),this.stateChanges.next())}_propagateChanges(e){let t=null;t=Array.isArray(this.selected)?this.selected.map(r=>r.value):this.selected?this.selected.value:e,this._value=t,this.change.emit(new oB(this,t)),this.valueChange.emit(t),this._onChange(t),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(e=>{e.source.selected?this._selectionModel.select(e.source):this._selectionModel.deselect(e.source),this.multiple||this.chips.forEach(t=>{!this._selectionModel.isSelected(t)&&t.selected&&t.deselect()}),e.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(e=>{let t=this.chips.toArray().indexOf(e.chip);this._isValidIndex(t)&&this._keyManager.updateActiveItem(t),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(e=>{const t=e.chip,r=this.chips.toArray().indexOf(e.chip);this._isValidIndex(r)&&t._hasFocus&&(this._lastDestroyedChipIndex=r)})}_originatesFromChip(e){let t=e.target;for(;t&&t!==this._elementRef.nativeElement;){if(t.classList.contains("mat-chip"))return!0;t=t.parentElement}return!1}_hasFocusedChip(){return this.chips&&this.chips.some(e=>e._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(e=>{e._chipListDisabled=this._disabled,e._chipListMultiple=this.multiple})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(Hi,8),n.Y36(Zs,8),n.Y36(Qs,8),n.Y36(Jc),n.Y36(gn,10))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-chip-list"]],contentQueries:function(e,t,r){if(1&e&&n.Suo(r,OA,5),2&e){let d;n.iGM(d=n.CRH())&&(t.chips=d)}},hostAttrs:[1,"mat-chip-list"],hostVars:14,hostBindings:function(e,t){1&e&&n.NdJ("focus",function(){return t.focus()})("blur",function(){return t._blur()})("keydown",function(d){return t._keydown(d)}),2&e&&(n.Ikx("id",t._uid),n.uIk("tabindex",t.disabled?null:t._tabIndex)("aria-required",t.role?t.required:null)("aria-disabled",t.disabled.toString())("aria-invalid",t.errorState)("aria-multiselectable",t.multiple)("role",t.role)("aria-orientation",t.ariaOrientation),n.ekj("mat-chip-list-disabled",t.disabled)("mat-chip-list-invalid",t.errorState)("mat-chip-list-required",t.required))},inputs:{role:"role",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],errorStateMatcher:"errorStateMatcher",multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",ariaOrientation:["aria-orientation","ariaOrientation"],selectable:"selectable",tabIndex:"tabIndex"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[n._Bn([{provide:ad,useExisting:i}]),n.qOj],ngContentSelectors:KI,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(e,t){1&e&&(n.F$t(),n.TgZ(0,"div",0),n.Hsn(1),n.qZA())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-chip::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.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-standard-chip._mat-animation-noopable{transition:none !important;animation:none !important}.mat-standard-chip .mat-chip-remove{border:none;-webkit-appearance:none;-moz-appearance:none;padding:0;background:none}.mat-standard-chip .mat-chip-remove.mat-icon,.mat-standard-chip .mat-chip-remove .mat-icon{width:18px;height:18px;font-size: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.mat-chip-selected{outline-width:3px}.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;transform:translateZ(0)}.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}'],encapsulation:2,changeDetection:0}),i})(),lB=0,eL=(()=>{class i{constructor(e,t){this._elementRef=e,this._defaultOptions=t,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new n.vpe,this.placeholder="",this.id="mat-chip-list-input-"+lB++,this._disabled=!1,this.inputElement=this._elementRef.nativeElement}set chipList(e){e&&(this._chipList=e,this._chipList.registerInput(this))}get addOnBlur(){return this._addOnBlur}set addOnBlur(e){this._addOnBlur=Ge(e)}get disabled(){return this._disabled||this._chipList&&this._chipList.disabled}set disabled(e){this._disabled=Ge(e)}get empty(){return!this.inputElement.value}ngOnChanges(){this._chipList.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}ngAfterContentInit(){this._focusLastChipOnBackspace=this.empty}_keydown(e){if(e){if(9===e.keyCode&&!Di(e,"shiftKey")&&this._chipList._allowFocusEscape(),8===e.keyCode&&this._focusLastChipOnBackspace)return this._chipList._keyManager.setLastItemActive(),void e.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(e)}_keyup(e){!this._focusLastChipOnBackspace&&8===e.keyCode&&this.empty&&(this._focusLastChipOnBackspace=!0,e.preventDefault())}_blur(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipList.focused||this._chipList._blur(),this._chipList.stateChanges.next()}_focus(){this.focused=!0,this._focusLastChipOnBackspace=this.empty,this._chipList.stateChanges.next()}_emitChipEnd(e){!this.inputElement.value&&!!e&&this._chipList._keydown(e),(!e||this._isSeparatorKey(e))&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),e?.preventDefault())}_onInput(){this._chipList.stateChanges.next()}focus(e){this.inputElement.focus(e)}clear(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}_isSeparatorKey(e){return!Di(e)&&new Set(this.separatorKeyCodes).has(e.keyCode)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(XD))},i.\u0275dir=n.lG2({type:i,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(e,t){1&e&&n.NdJ("keydown",function(d){return t._keydown(d)})("keyup",function(d){return t._keyup(d)})("blur",function(){return t._blur()})("focus",function(){return t._focus()})("input",function(){return t._onInput()}),2&e&&(n.Ikx("id",t.id),n.uIk("disabled",t.disabled||null)("placeholder",t.placeholder||null)("aria-invalid",t._chipList&&t._chipList.ngControl?t._chipList.ngControl.invalid:null)("aria-required",t._chipList&&t._chipList.required||null))},inputs:{chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[n.TTD]}),i})(),dT=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[Jc,{provide:XD,useValue:{separatorKeyCodes:[13]}}],imports:[wt]}),i})();function cB(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"mat-icon",9),n.NdJ("mousedown",function(){n.CHM(e);const r=n.oxw(2);return n.KtG(r.dragDisabled=!1)}),n._uU(1,"drag_indicator"),n.qZA()}}function dB(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"mat-icon",10),n.NdJ("click",function(){n.CHM(e);const r=n.oxw().$implicit,d=n.oxw();return n.KtG(d.edit(r))}),n._uU(1,"edit"),n.qZA()}}function uB(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"mat-icon",11),n.NdJ("click",function(){n.CHM(e);const r=n.oxw().$implicit,d=n.oxw();return n.KtG(d.remove(r))}),n._uU(1,"cancel"),n.qZA()}}function hB(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"mat-chip",4),n.NdJ("removed",function(){const d=n.CHM(e).$implicit,u=n.oxw();return u.remove(d),n.KtG(u._sendEventToParent())}),n.YNc(1,cB,2,0,"mat-icon",5),n.TgZ(2,"div",6),n.NdJ("click",function(){const d=n.CHM(e).$implicit,u=n.oxw();return n.KtG(u.readonly&&void 0!==u.attribute.displayName&&u.showValue(d,u.attribute.displayName))}),n._uU(3),n.qZA(),n.YNc(4,dB,2,0,"mat-icon",7),n.YNc(5,uB,2,0,"mat-icon",8),n.qZA()}if(2&i){const e=a.$implicit,t=n.oxw();n.Q6J("selectable",t.selectable)("cdkDragData",e)("removable",t.removable),n.xp6(1),n.Q6J("ngIf",t.removable),n.xp6(1),n.ekj("cursor-pointer",t.readonly&&void 0!==t.attribute.displayName),n.xp6(1),n.hij(" ",e," "),n.xp6(1),n.Q6J("ngIf",t.removable),n.xp6(1),n.Q6J("ngIf",t.removable)}}function pB(i,a){1&i&&(n.TgZ(0,"mat-icon"),n._uU(1,"more_horiz"),n.qZA())}function fB(i,a){1&i&&(n.TgZ(0,"mat-icon"),n._uU(1,"keyboard_arrow_up"),n.qZA())}function mB(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div",12)(1,"span",13)(2,"button",14),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onShowChange())}),n.YNc(3,pB,2,0,"mat-icon",15),n.YNc(4,fB,2,0,"mat-icon",15),n.qZA()()()}if(2&i){const e=n.oxw();n.xp6(1),n.Q6J("matTooltip",e.showMore?"Show less":"Show more")("matTooltipPosition","above"),n.xp6(2),n.Q6J("ngIf",!e.showMore),n.xp6(1),n.Q6J("ngIf",e.showMore)}}function gB(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"mat-form-field",12)(1,"input",16),n.NdJ("matChipInputTokenEnd",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.add(r))})("change",function(){n.CHM(e);const r=n.oxw();return n.KtG(r._sendEventToParent())}),n.qZA()()}if(2&i){const e=n.oxw(),t=n.MAs(2);n.xp6(1),n.Q6J("matChipInputFor",t)("matChipInputSeparatorKeyCodes",e.separatorKeysCodes)("matChipInputAddOnBlur",e.addOnBlur)}}let _B=(()=>{class i{constructor(e,t){this.dialog=e,this.changeDetector=t,this.readonly=!1,this.sendEventToParent=new n.vpe,this.selectable=!1,this.removable=!0,this.addOnBlur=!0,this.dragDisabled=!0,this.separatorKeysCodes=[13,188],this.values=[],this.showMore=!1,this.defaultItemsShown=5}ngOnInit(){this.removable=!to(this.attribute)&&!this.readonly,null==this.attribute.value&&(this.attribute.value=[]),this.values=this.attribute.value,this.itemsShown=this.readonly?this.values.length:this.defaultItemsShown,this.showMore=this.readonly,this.readonly||(this.readonly=to(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}add(e){const t=e.input,r=e.value;(r||"").trim()&&(this.attribute.value.push(r.trim()),this.values=this.attribute.value,this.values.length>this.defaultItemsShown&&(this.showMore=!0,this.setItemsShown())),t&&(t.value=""),this.sendEventToParent.emit()}remove(e){const t=ln();t.width="400px",t.data={name:e},this.dialog.open(fk,t).afterClosed().subscribe(d=>{if(d){const u=this.attribute.value.indexOf(e);this.attribute.value.splice(u,1),this.values=this.attribute.value,this.sendEventToParent.emit(),this.changeDetector.detectChanges()}})}drop(e){this.dragDisabled=!0,VD(this.attribute.value,e.previousIndex,e.currentIndex),this.values=this.attribute.value}edit(e){const t=this.attribute.value.indexOf(e),r=ln();r.width="600px",r.data={attribute:this.attribute,index:t},this.dialog.open(pk,r).afterClosed().subscribe(u=>{u&&(this.values=this.attribute.value,this.sendEventToParent.emit())})}showValue(e,t){const r=ln();r.width="350px",r.data={value:e,title:t},this.dialog.open(SA,r)}setItemsShown(){this.itemsShown=this.showMore?this.values.length:this.defaultItemsShown}onShowChange(){this.showMore=!this.showMore,this.setItemsShown()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(on),n.Y36(n.sBO))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-attribute-value-list"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:6,vars:4,consts:[["cdkDropList","","cdkDropListOrientation","vertical",1,"mat-chip-list-stacked",3,"cdkDropListDisabled","cdkDropListDropped"],["chipList",""],["class","chip-word-break","cdkDrag","",3,"selectable","cdkDragData","removable","removed",4,"ngFor","ngForOf"],["class","w-100",4,"ngIf"],["cdkDrag","",1,"chip-word-break",3,"selectable","cdkDragData","removable","removed"],["class","handle-icon",3,"mousedown",4,"ngIf"],[1,"chip-text","overflow-ellipsis",3,"click"],["class","edit-delete-icon ml-2",3,"click",4,"ngIf"],["class","edit-delete-icon",3,"click",4,"ngIf"],[1,"handle-icon",3,"mousedown"],[1,"edit-delete-icon","ml-2",3,"click"],[1,"edit-delete-icon",3,"click"],[1,"w-100"],[3,"matTooltip","matTooltipPosition"],["mat-icon-button","",1,"ml-auto",3,"click"],[4,"ngIf"],["matInput","","placeholder","New value",1,"w-100","m-0",3,"matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur","matChipInputTokenEnd","change"]],template:function(e,t){1&e&&(n.TgZ(0,"div")(1,"mat-chip-list",0,1),n.NdJ("cdkDropListDropped",function(d){return t.drop(d),t._sendEventToParent()}),n.YNc(3,hB,6,9,"mat-chip",2),n.YNc(4,mB,5,4,"div",3),n.YNc(5,gB,2,3,"mat-form-field",3),n.qZA()()),2&e&&(n.xp6(1),n.Q6J("cdkDropListDisabled",t.dragDisabled),n.xp6(2),n.Q6J("ngForOf",t.values.slice(0,t.itemsShown)),n.xp6(1),n.Q6J("ngIf",t.values.length>t.defaultItemsShown),n.xp6(1),n.Q6J("ngIf",!t.readonly))},dependencies:[T.sg,T.O5,KD,OA,eL,GI,QI,zn,Ht,yr,di,ji],styles:[".chip-word-break[_ngcontent-%COMP%]{word-break:break-all}.chip-text[_ngcontent-%COMP%]{display:-webkit-box!important;-webkit-line-clamp:1!important;-webkit-box-orient:vertical;overflow:hidden}.mat-chip-list[_ngcontent-%COMP%] .mat-chip[_ngcontent-%COMP%]{width:auto;min-width:0}.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}.chip-word-break[_ngcontent-%COMP%] .cdk-drop-list-dragging[_ngcontent-%COMP%] .example-box[_ngcontent-%COMP%]:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}.example-box[_ngcontent-%COMP%]:last-child{border:none}.edit-delete-icon[_ngcontent-%COMP%]{font-size:18px;justify-content:center;align-items:center;display:flex}.handle-icon[_ngcontent-%COMP%]{font-size:22px;justify-content:center;align-items:center;display:flex;margin-right:4px}.mat-standard-chip[_ngcontent-%COMP%]{padding:7px 5px}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}"]}),i})(),bB=(()=>{class i{constructor(e){this.dialog=e,this.readonly=!1,this.sendEventToParent=new n.vpe}ngOnInit(){this.value=this.attribute.value,this.readonly||(this.readonly=to(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}showValue(e,t){const r=ln();r.width="350px",r.data={value:e,title:t},this.dialog.open(SA,r)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(on))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-attribute-value-string"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:3,vars:8,consts:[[1,"w-100",3,"appearance"],["matInput","","type","text",1,"overflow-ellipsis",3,"readonly","ngModel","click","ngModelChange","keydown"]],template:function(e,t){1&e&&(n.TgZ(0,"mat-form-field",0)(1,"input",1),n.NdJ("click",function(){return t.readonly&&void 0!==t.value&&t.showValue(t.value,t.attribute.displayName)})("ngModelChange",function(d){return t.attribute.value=d})("keydown",function(){return t._sendEventToParent()}),n.ALo(2,"multiWordDataCy"),n.qZA()()),2&e&&(n.s9C("appearance",t.readonly?"none":"standard"),n.xp6(1),n.ekj("cursor-pointer",t.readonly&&void 0!==t.value),n.Q2q("data-cy","",n.lcZ(2,6,t.attribute.displayName),"-value"),n.Q6J("readonly",t.readonly)("ngModel",t.attribute.value))},dependencies:[_i,Ai,ua,di,ji,iT],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}"]}),i})(),AB=(()=>{class i{constructor(e){this.dialog=e,this.readonly=!1,this.sendEventToParent=new n.vpe}ngOnInit(){this.readonly||(this.readonly=to(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}showValue(e){const t=ln();t.width="350px",t.data={value:e.value,title:e.displayName},this.dialog.open(SA,t)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(on))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-attribute-value-integer"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:2,vars:5,consts:[[1,"w-100",3,"appearance"],["matInput","","type","number",1,"overflow-ellipsis",3,"readonly","ngModel","click","ngModelChange","keydown"]],template:function(e,t){1&e&&(n.TgZ(0,"mat-form-field",0)(1,"input",1),n.NdJ("click",function(){return t.readonly&&void 0!==t.attribute.value&&t.showValue(t.attribute)})("ngModelChange",function(d){return t.attribute.value=d})("keydown",function(){return t._sendEventToParent()}),n.qZA()()),2&e&&(n.s9C("appearance",t.readonly?"none":"standard"),n.xp6(1),n.ekj("cursor-pointer",t.readonly&&void 0!==t.attribute.value),n.Q6J("readonly",t.readonly)("ngModel",t.attribute.value))},dependencies:[_i,Lp,Ai,ua,di,ji],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),i})();const yB=["map"];function wB(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"perun-web-apps-attribute-value-boolean",3),n.NdJ("sendEventToParent",function(){n.CHM(e);const r=n.oxw();return n.KtG(r._sendEventToParent2())}),n.qZA()}if(2&i){const e=n.oxw();n.Q6J("attribute",e.attribute)("readonly",e.readonly)}}function MB(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"perun-web-apps-attribute-value-list",3),n.NdJ("sendEventToParent",function(){n.CHM(e);const r=n.oxw();return n.KtG(r._sendEventToParent2())}),n.qZA()}if(2&i){const e=n.oxw();n.Q6J("attribute",e.attribute)("readonly",e.readonly)}}function CB(i,a){if(1&i&&n._UZ(0,"perun-web-apps-attribute-value-map",4,5),2&i){const e=n.oxw();n.Q6J("attribute",e.attribute)("readonly",e.readonly)}}function vB(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"perun-web-apps-attribute-value-string",3),n.NdJ("sendEventToParent",function(){n.CHM(e);const r=n.oxw();return n.KtG(r._sendEventToParent2())}),n.qZA()}if(2&i){const e=n.oxw();n.Q6J("attribute",e.attribute)("readonly",e.readonly)}}function TB(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"perun-web-apps-attribute-value-integer",3),n.NdJ("sendEventToParent",function(){n.CHM(e);const r=n.oxw();return n.KtG(r._sendEventToParent2())}),n.qZA()}if(2&i){const e=n.oxw();n.Q6J("attribute",e.attribute)("readonly",e.readonly)}}let uT=(()=>{class i{constructor(){this.readonly=!1,this.sendEventToParent2=new n.vpe}updateMapAttribute(){"java.util.LinkedHashMap"===this.attribute.type&&this.mapComponent.updateAttribute()}_sendEventToParent2(){this.sendEventToParent2.emit()}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-attribute-value"]],viewQuery:function(e,t){if(1&e&&n.Gf(yB,5),2&e){let r;n.iGM(r=n.CRH())&&(t.mapComponent=r.first)}},inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent2:"sendEventToParent2"},decls:7,vars:5,consts:[[3,"attribute","readonly","sendEventToParent",4,"ngIf"],[3,"click"],[3,"attribute","readonly",4,"ngIf"],[3,"attribute","readonly","sendEventToParent"],[3,"attribute","readonly"],["map",""]],template:function(e,t){1&e&&(n.TgZ(0,"div"),n.YNc(1,wB,1,2,"perun-web-apps-attribute-value-boolean",0),n.YNc(2,MB,1,2,"perun-web-apps-attribute-value-list",0),n.TgZ(3,"div",1),n.NdJ("click",function(){return t._sendEventToParent2()}),n.YNc(4,CB,2,2,"perun-web-apps-attribute-value-map",2),n.qZA(),n.YNc(5,vB,1,2,"perun-web-apps-attribute-value-string",0),n.YNc(6,TB,1,2,"perun-web-apps-attribute-value-integer",0),n.qZA()),2&e&&(n.xp6(1),n.Q6J("ngIf","java.lang.Boolean"===t.attribute.type),n.xp6(1),n.Q6J("ngIf","java.util.ArrayList"===t.attribute.type),n.xp6(2),n.Q6J("ngIf","java.util.LinkedHashMap"===t.attribute.type),n.xp6(1),n.Q6J("ngIf","java.lang.String"===t.attribute.type||"java.lang.LargeString"===t.attribute.type),n.xp6(1),n.Q6J("ngIf","java.lang.Integer"===t.attribute.type))},dependencies:[T.O5,OI,_B,yI,bB,AB]}),i})();function xB(i,a){1&i&&n._UZ(0,"mat-spinner",3)}function SB(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"mat-option",16),n.NdJ("click",function(){const d=n.CHM(e).$implicit,u=n.oxw(4);return n.KtG(u.changeLanguage(d))}),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"uppercase"),n.qZA()}if(2&i){const e=a.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",n.lcZ(2,2,n.lcZ(3,4,"SHARED_LIB.LANGUAGES."+e))," ")}}function EB(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"mat-form-field",13)(1,"mat-select",14),n.NdJ("valueChange",function(r){n.CHM(e);const d=n.oxw(3);return n.KtG(d.currentLang=r)}),n.YNc(2,SB,4,6,"mat-option",15),n.qZA()()}if(2&i){const e=n.oxw(3);n.xp6(1),n.Q6J("value",e.currentLang),n.xp6(1),n.Q6J("ngForOf",e.languages)}}function DB(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div")(1,"a",17),n._uU(2),n.qZA(),n.TgZ(3,"button",18),n.NdJ("click",function(){n.CHM(e);const r=n.oxw(3);return n.KtG(r.changeEmail())}),n.TgZ(4,"mat-icon"),n._uU(5," edit "),n.qZA()()()}if(2&i){const e=n.oxw(3);n.xp6(1),n.MGl("href","mailto:",e.email,"",n.LSH),n.xp6(1),n.Oqu(e.email)}}function LB(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"mat-option",16),n.NdJ("click",function(){const d=n.CHM(e).$implicit,u=n.oxw(4);return n.KtG(u.changeTimeZone(d))}),n._uU(1),n.qZA()}if(2&i){const e=a.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function HB(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"mat-form-field",13)(1,"mat-select",19),n.NdJ("valueChange",function(r){n.CHM(e);const d=n.oxw(3);return n.KtG(d.currentTimezone=r)}),n.YNc(2,LB,2,2,"mat-option",15),n.qZA()()}if(2&i){const e=n.oxw(3);n.xp6(1),n.Q6J("value",e.currentTimezone),n.xp6(1),n.Q6J("ngForOf",e.timeZones)}}function RB(i,a){1&i&&(n.TgZ(0,"p"),n._uU(1,"-"),n.qZA())}function PB(i,a){if(1&i&&n._UZ(0,"perun-web-apps-attribute-value",22),2&i){const e=n.oxw(2).$implicit;n.Q6J("attribute",e.attribute)("readonly",!0)}}function kB(i,a){if(1&i&&(n.TgZ(0,"div"),n.YNc(1,RB,2,0,"p",20),n.YNc(2,PB,1,2,"perun-web-apps-attribute-value",21),n.qZA()),2&i){const e=n.oxw().$implicit;n.xp6(1),n.Q6J("ngIf",!e.attribute.value),n.xp6(1),n.Q6J("ngIf",e.attribute.value)}}function OB(i,a){if(1&i&&(n.TgZ(0,"tr")(1,"td",7)(2,"div",8),n._uU(3),n.qZA()(),n.TgZ(4,"td",9),n.YNc(5,EB,3,2,"mat-form-field",10),n.YNc(6,DB,6,2,"div",11),n.YNc(7,HB,3,2,"mat-form-field",10),n.YNc(8,kB,3,2,"div",12),n.qZA()()),2&i){const e=a.$implicit,t=n.oxw(2);n.xp6(2),n.Q6J("matTooltip",e["tooltip_"+t.currentLang]),n.xp6(1),n.hij(" ",e["displayName_"+t.currentLang]," "),n.xp6(1),n.Q6J("ngSwitch",e.attribute.friendlyName),n.xp6(1),n.Q6J("ngSwitchCase","preferredLanguage"),n.xp6(1),n.Q6J("ngSwitchCase","preferredMail"),n.xp6(1),n.Q6J("ngSwitchCase","timezone")}}function IB(i,a){if(1&i&&(n.TgZ(0,"table",4)(1,"tbody")(2,"tr")(3,"td",5),n._uU(4),n.ALo(5,"translate"),n.ALo(6,"customTranslate"),n.qZA(),n.TgZ(7,"td"),n._uU(8),n.qZA()(),n.YNc(9,OB,9,6,"tr",6),n.qZA()()),2&i){const e=n.oxw();n.xp6(4),n.Oqu(n.lcZ(5,3,n.lcZ(6,5,"PROFILE_PAGE.NAME"))),n.xp6(4),n.Oqu(e.fullName),n.xp6(1),n.Q6J("ngForOf",e.additionalAttributes)}}let BB=(()=>{class i{constructor(e,t,r,d,u,c,o,s,l,h,p){this.translateService=e,this.dialog=t,this.authzResolverService=r,this.attributesManagerService=d,this.usersManagerService=u,this.route=c,this.router=o,this.notificator=s,this.storeService=l,this.apiRequestConfiguration=h,this.preferredLangService=p,this.currentLang="en",this.languages=this.storeService.getProperty("supported_languages"),this.timeZones=CD.tz.names().filter(m=>!m.startsWith("Etc/")),this.additionalAttributes=[],this.email="",this.fullName="",this.organization="",this.currentTimezone="",e.get("PROFILE_PAGE.MAIL_CHANGE_SUCCESS").subscribe(m=>this.successMessage=m)}ngOnInit(){const e=this.route.snapshot.queryParamMap,t=e.get("token"),r=e.get("u");this.loading=!0,t&&r?(this.apiRequestConfiguration.dontHandleErrorForNext(),this.usersManagerService.validatePreferredEmailChangeWithToken(t,Number.parseInt(r,10)).subscribe({next:()=>{this.notificator.showSuccess(this.successMessage),this.router.navigate([],{replaceUrl:!0,queryParamsHandling:"preserve"}),this.getData()},error:()=>{const d=ln();d.width="600px",this.dialog.open(xk,d).afterClosed().subscribe(()=>{this.getData()})}})):this.getData()}getData(){this.authzResolverService.getPerunPrincipal().subscribe(e=>{this.userId=e.userId,this.usersManagerService.getRichUserWithAttributes(this.userId).subscribe(t=>{this.fullName=(new gA).transform(t);const r=t.userAttributes.find(l=>"preferredMail"===l.friendlyName);this.email=r?.value??"-",this.languageAttribute=t.userAttributes.find(l=>"preferredLanguage"===l.friendlyName);const u=this.preferredLangService.getPreferredLanguage(this.languageAttribute?.value??null);this.translateService.use(u),this.currentLang=u,this.timezoneAttribute=t.userAttributes.find(l=>"timezone"===l.friendlyName),this.currentTimezone=this.timezoneAttribute?.value??"-";const c=this.storeService.getProperty("profile_page_attributes");let o=0;const s=this.storeService.getProperty("supported_languages");c.forEach(l=>{const h=t.userAttributes.find(p=>p.friendlyName===l.friendly_name);h?(o++,this.addAttribute(h,l,s)):this.attributesManagerService.getAttributeDefinitionByName(`urn:perun:user:attribute-def:${l.is_virtual?"virt":"def"}:${l.friendly_name}`).subscribe(p=>{this.addAttribute(p,l,s),o++,this.loading=o!==c.length}),this.loading=o!==c.length})})})}changeLanguage(e){this.currentLang=e,this.translateService.use(this.currentLang),this.languageAttribute?this.setLanguage():this.attributesManagerService.getAttributeDefinitionByName("urn:perun:user:attribute-def:def:preferredLanguage").subscribe(t=>{this.languageAttribute=t,this.setLanguage()})}setLanguage(){this.languageAttribute.value=this.currentLang,this.attributesManagerService.setUserAttribute({user:this.userId,attribute:this.languageAttribute}).subscribe(()=>{this.router.navigate([],{queryParams:{lang:null},queryParamsHandling:"merge"})})}changeTimeZone(e){this.currentTimezone=e,this.timezoneAttribute?this.setTimeZone():this.attributesManagerService.getAttributeDefinitionByName("urn:perun:user:attribute-def:def:timezone").subscribe(t=>{this.timezoneAttribute=t,this.setTimeZone()})}setTimeZone(){this.timezoneAttribute.value=this.currentTimezone,this.attributesManagerService.setUserAttribute({user:this.userId,attribute:this.timezoneAttribute}).subscribe(()=>{})}changeEmail(){const e=ln();e.width="350px",e.data={userId:this.userId},this.dialog.open(_k,e).afterClosed().subscribe(r=>{r&&this.getEmail()})}getEmail(){this.attributesManagerService.getUserAttributeByName(this.userId,"urn:perun:user:attribute-def:def:preferredMail").subscribe(e=>{this.email=e?.value??"-"})}addAttribute(e,t,r){const d={attribute:e};for(const u of r)d[`displayName_${u}`]=t?.[`display_name_${u}`]?.length?t[`display_name_${u}`]:e.displayName,d[`tooltip_${u}`]=t[`tooltip_${u}`]??"";this.additionalAttributes.push(d)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(tn),n.Y36(on),n.Y36(As),n.Y36(jn),n.Y36(li),n.Y36(mi),n.Y36(Dn),n.Y36(Mr),n.Y36(Ut),n.Y36(cg),n.Y36(xv))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-profile-page"]],decls:3,vars:2,consts:[[1,"user-theme"],["class","ml-auto mr-auto",4,"ngIf"],["class","mt-3 word-break-all",4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"mt-3","word-break-all"],[1,"font-weight-bold"],[4,"ngFor","ngForOf"],[1,"font-weight-bold","att-name-width"],["matTooltipPosition","above",3,"matTooltip"],[1,"w-100",3,"ngSwitch"],["class","center-self",4,"ngSwitchCase"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[1,"center-self"],[1,"mb-auto",3,"value","valueChange"],[3,"value","click",4,"ngFor","ngForOf"],[3,"value","click"],[1,"center-self",3,"href"],["mat-icon-button","",1,"ml-2",3,"click"],[3,"value","valueChange"],[4,"ngIf"],[3,"attribute","readonly",4,"ngIf"],[3,"attribute","readonly"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0),n.YNc(1,xB,1,0,"mat-spinner",1),n.YNc(2,IB,10,7,"table",2),n.qZA()),2&e&&(n.xp6(1),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading))},dependencies:[T.sg,T.O5,T.RF,T.n9,T.ED,zn,Ht,uT,di,fd,Fs,Hn,yr,T.gd,Ke,Xt],styles:[".center-self[_ngcontent-%COMP%]{margin-top:auto;margin-bottom:auto}.word-break-all[_ngcontent-%COMP%]{word-break:break-all}td[_ngcontent-%COMP%]{padding-right:1rem!important}.att-name-width[_ngcontent-%COMP%]{min-width:200px}"]}),i})(),NB=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-focus-on-linker-dialog"]],decls:9,vars:6,consts:[[1,"text-center","custom-dialog"],[1,"align-text-bottom"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"div")(2,"mat-icon",1),n._uU(3," info "),n.qZA(),n._uU(4),n.ALo(5,"translate"),n.qZA(),n.TgZ(6,"div"),n._uU(7),n.ALo(8,"translate"),n.qZA()()),2&e&&(n.xp6(4),n.hij(" ",n.lcZ(5,2,"SHARED_LIB.CONSOLIDATOR.FOCUS_ON_LINKER.MODAL")," "),n.xp6(3),n.hij(" ",n.lcZ(8,4,"SHARED_LIB.CONSOLIDATOR.FOCUS_ON_LINKER.MODAL_WARNING")," "))},dependencies:[zn,Ke],styles:[".custom-dialog[_ngcontent-%COMP%]{background-color:#000;color:#fffffff2;font-size:1.2rem}"]}),i})(),VB=(()=>{class i{constructor(e,t,r,d){this.otherApplicationsService=e,this.storeService=t,this.oauthService=r,this.dialog=d}openLinkerWindow(e,t){let r=this.otherApplicationsService.getUrlForOtherApplication($o.Linker);this.storeService.getProperty("use_localhost_linker_url")&&(r="http://localhost:4201/");let d=r+"?formerToken="+this.oauthService.getAccessToken();t&&0!==t.length&&(d+="&idphint="+t.toString());const o=window.top,h=window.open(d,"_blank",`width=600,height=600,top=${o.outerHeight/2+o.screenY-300}, left=${o.outerWidth/2+o.screenX-300}`);let p;if(h){const g=ln();g.width="450px",g.panelClass="noBorderDialog",p=this.dialog.open(NB,g)}window.addEventListener("message",g=>{sessionStorage.setItem("linkedResult",g.data)});const m=setInterval(()=>{if(h.closed){clearInterval(m),p.close();const g=sessionStorage.getItem("linkedResult");sessionStorage.removeItem("linkedResult"),e(g)}},1e3)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(dA),n.LFG(Ut),n.LFG(Ql.Ct),n.LFG(on))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),hT=(()=>{class i{}return i.MEMBER_DEF_EXPIRATION="urn:perun:member:attribute-def:def:membershipExpiration",i.MEMBER_DEF_GROUP_EXPIRATION="urn:perun:member_group:attribute-def:def:groupMembershipExpiration",i.MEMBER_GROUP_STATUS="urn:perun:member_group:attribute-def:virt:groupStatus",i.MEMBER_GROUP_STATUS_INDIRECT="urn:perun:member_group:attribute-def:virt:groupStatusIndirect",i.MEMBER_DEF_ORGANIZATION="urn:perun:member:attribute-def:def:organization",i.MEMBER_DEF_MAIL="urn:perun:member:attribute-def:def:mail",i.MEMBER_CORE_ID="urn:perun:member:attribute-def:core:id",i.MEMBER_LIFECYCLE_ALTERABLE="urn:perun:member:attribute-def:virt:isLifecycleAlterable",i.VO_DEF_EXPIRATION_RULES="urn:perun:vo:attribute-def:def:membershipExpirationRules",i.VO_DEF_MAIL_FOOTER="urn:perun:vo:attribute-def:def:mailFooter",i.VO_DEF_MAIL_HTML_FOOTER="urn:perun:vo:attribute-def:def:htmlMailFooter",i.VO_BLOCK_MANUAL_MEMBER_ADDING="urn:perun:vo:attribute-def:def:blockManualMemberAdding",i.USER_DEF_ORGANIZATION="urn:perun:user:attribute-def:def:organization",i.USER_DEF_PREFERRED_MAIL="urn:perun:user:attribute-def:def:preferredMail",i.USER_DEF_CERTIFICATES="urn:perun:user:attribute-def:def:userCertificates",i.GROUP_DEF_EXPIRATION_RULES="urn:perun:group:attribute-def:def:groupMembershipExpirationRules",i.GROUP_DEF_MAIL_FOOTER="urn:perun:group:attribute-def:def:mailFooter",i.GROUP_DEF_MAIL_HTML_FOOTER="urn:perun:group:attribute-def:def:htmlMailFooter",i.GROUP_SYNC_ENABLED="urn:perun:group:attribute-def:def:synchronizationEnabled",i.GROUP_LAST_SYNC_STATE="urn:perun:group:attribute-def:def:lastSynchronizationState",i.GROUP_LAST_SYNC_TIMESTAMP="urn:perun:group:attribute-def:def:lastSynchronizationTimestamp",i.GROUP_STRUCTURE_SYNC_ENABLED="urn:perun:group:attribute-def:def:groupStructureSynchronizationEnabled",i.GROUP_LAST_STRUCTURE_SYNC_STATE="urn:perun:group:attribute-def:def:lastGroupStructureSynchronizationState",i.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP="urn:perun:group:attribute-def:def:lastGroupStructureSynchronizationTimestamp",i.GROUP_SYNC_INTERVAL="urn:perun:group:attribute-def:def:synchronizationInterval",i.GROUP_BLOCK_MANUAL_MEMBER_ADDING="urn:perun:group:attribute-def:def:blockManualMemberAdding",i.UES_DEF_MAIL="urn:perun:ues:attribute-def:def:mail",i.UES_DEF_ORGANIZATION="urn:perun:ues:attribute-def:def:o",i.UES_SOURCE_IDP_NAME="urn:perun:ues:attribute-def:def:sourceIdPName",i.UES_IDP_ORGANIZATION_NAME="urn:perun:ues:attribute-def:def:IdPOrganizationName",i})();const jB=["mat-sort-header",""];function FB(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div",3),n.NdJ("@arrowPosition.start",function(){n.CHM(e);const r=n.oxw();return n.KtG(r._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){n.CHM(e);const r=n.oxw();return n.KtG(r._disableViewStateAnimation=!1)}),n._UZ(1,"div",4),n.TgZ(2,"div",5),n._UZ(3,"div",6)(4,"div",7)(5,"div",8),n.qZA()()}if(2&i){const e=n.oxw();n.Q6J("@arrowOpacity",e._getArrowViewState())("@arrowPosition",e._getArrowViewState())("@allowChildren",e._getArrowDirectionState()),n.xp6(2),n.Q6J("@indicator",e._getArrowDirectionState()),n.xp6(1),n.Q6J("@leftPointer",e._getArrowDirectionState()),n.xp6(1),n.Q6J("@rightPointer",e._getArrowDirectionState())}}const zB=["*"],tL=new n.OlP("MAT_SORT_DEFAULT_OPTIONS"),UB=M0(Xa(class{}));let ps=(()=>{class i extends UB{constructor(e){super(),this._defaultOptions=e,this.sortables=new Map,this._stateChanges=new Le.x,this.start="asc",this._direction="",this.sortChange=new n.vpe}get direction(){return this._direction}set direction(e){this._direction=e}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=Ge(e)}register(e){this.sortables.set(e.id,e)}deregister(e){this.sortables.delete(e.id)}sort(e){this.active!=e.id?(this.active=e.id,this.direction=e.start?e.start:this.start):this.direction=this.getNextSortDirection(e),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(e){var t,r,d;if(!e)return"";const u=null!==(t=null!==(r=e?.disableClear)&&void 0!==r?r:this.disableClear)&&void 0!==t?t:!(null===(d=this._defaultOptions)||void 0===d||!d.disableClear);let c=function qB(i,a){let e=["asc","desc"];return"desc"==i&&e.reverse(),a||e.push(""),e}(e.start||this.start,u),o=c.indexOf(this.direction)+1;return o>=c.length&&(o=0),c[o]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(tL,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],active:["matSortActive","active"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[n.qOj,n.TTD]}),i})();const Cd=Kx.ENTERING+" "+Xx.STANDARD_CURVE,lf={indicator:En("indicator",[ut("active-asc, asc",je({transform:"translateY(0px)"})),ut("active-desc, desc",je({transform:"translateY(10px)"})),Ot("active-asc <=> active-desc",Rt(Cd))]),leftPointer:En("leftPointer",[ut("active-asc, asc",je({transform:"rotate(-45deg)"})),ut("active-desc, desc",je({transform:"rotate(45deg)"})),Ot("active-asc <=> active-desc",Rt(Cd))]),rightPointer:En("rightPointer",[ut("active-asc, asc",je({transform:"rotate(45deg)"})),ut("active-desc, desc",je({transform:"rotate(-45deg)"})),Ot("active-asc <=> active-desc",Rt(Cd))]),arrowOpacity:En("arrowOpacity",[ut("desc-to-active, asc-to-active, active",je({opacity:1})),ut("desc-to-hint, asc-to-hint, hint",je({opacity:.54})),ut("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",je({opacity:0})),Ot("* => asc, * => desc, * => active, * => hint, * => void",Rt("0ms")),Ot("* <=> *",Rt(Cd))]),arrowPosition:En("arrowPosition",[Ot("* => desc-to-hint, * => desc-to-active",Rt(Cd,No([je({transform:"translateY(-25%)"}),je({transform:"translateY(0)"})]))),Ot("* => hint-to-desc, * => active-to-desc",Rt(Cd,No([je({transform:"translateY(0)"}),je({transform:"translateY(25%)"})]))),Ot("* => asc-to-hint, * => asc-to-active",Rt(Cd,No([je({transform:"translateY(25%)"}),je({transform:"translateY(0)"})]))),Ot("* => hint-to-asc, * => active-to-asc",Rt(Cd,No([je({transform:"translateY(0)"}),je({transform:"translateY(-25%)"})]))),ut("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",je({transform:"translateY(0)"})),ut("hint-to-desc, active-to-desc, desc",je({transform:"translateY(-25%)"})),ut("hint-to-asc, active-to-asc, asc",je({transform:"translateY(25%)"}))]),allowChildren:En("allowChildren",[Ot("* <=> *",[Br("@*",Hu(),{optional:!0})])])};let IA=(()=>{class i{constructor(){this.changes=new Le.x}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const WB={provide:IA,deps:[[new n.FiY,new n.tp0,IA]],useFactory:function YB(i){return i||new IA}},GB=Xa(class{});let Ag=(()=>{class i extends GB{constructor(e,t,r,d,u,c,o,s){super(),this._intl=e,this._changeDetectorRef=t,this._sort=r,this._columnDef=d,this._focusMonitor=u,this._elementRef=c,this._ariaDescriber=o,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",null!=s&&s.arrowPosition&&(this.arrowPosition=s?.arrowPosition),this._handleStateChanges()}get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(e){this._updateSortActionDescription(e)}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=Ge(e)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{const t=!!e;t!==this._showIndicatorHint&&(this._setIndicatorHintVisible(t),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(e){this._isDisabled()&&e||(this._showIndicatorHint=e,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(e){this._viewState=e||{},this._disableViewStateAnimation&&(this._viewState={toState:e.toState})}_toggleOnInteraction(){this._sort.sort(this),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(e){!this._isDisabled()&&(32===e.keyCode||13===e.keyCode)&&(e.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const e=this._viewState.fromState;return(e?`${e}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(e){var t,r;this._sortButton&&(null===(t=this._ariaDescriber)||void 0===t||t.removeDescription(this._sortButton,this._sortActionDescription),null===(r=this._ariaDescriber)||void 0===r||r.describe(this._sortButton,e)),this._sortActionDescription=e}_handleStateChanges(){this._rerenderSubscription=(0,kn.T)(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(IA),n.Y36(n.sBO),n.Y36(ps,8),n.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),n.Y36($r),n.Y36(n.SBq),n.Y36(hu,8),n.Y36(tL,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(e,t){1&e&&n.NdJ("click",function(){return t._handleClick()})("keydown",function(d){return t._handleKeydown(d)})("mouseenter",function(){return t._setIndicatorHintVisible(!0)})("mouseleave",function(){return t._setIndicatorHintVisible(!1)}),2&e&&(n.uIk("aria-sort",t._getAriaSortAttribute()),n.ekj("mat-sort-header-disabled",t._isDisabled()))},inputs:{disabled:"disabled",id:["mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[n.qOj],attrs:jB,ngContentSelectors:zB,decls:4,vars:7,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(e,t){1&e&&(n.F$t(),n.TgZ(0,"div",0)(1,"div",1),n.Hsn(2),n.qZA(),n.YNc(3,FB,6,6,"div",2),n.qZA()),2&e&&(n.ekj("mat-sort-header-sorted",t._isSorted())("mat-sort-header-position-before","before"===t.arrowPosition),n.uIk("tabindex",t._isDisabled()?null:0)("role",t._isDisabled()?null:"button"),n.xp6(3),n.Q6J("ngIf",t._renderArrow()))},dependencies:[T.O5],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}"],encapsulation:2,data:{animation:[lf.indicator,lf.leftPointer,lf.rightPointer,lf.arrowOpacity,lf.arrowPosition,lf.allowChildren]},changeDetection:0}),i})(),BA=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[WB],imports:[T.ez,wt]}),i})(),nL=(()=>{class i{onClick(e){if(1===e.button&&null!=this.perunWebAppsMiddleClickRouterLink){const t=this.perunWebAppsMiddleClickRouterLink.join("/"),r=location.search;window.open(t+r)}}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["","perunWebAppsMiddleClickRouterLink",""]],hostBindings:function(e,t){1&e&&n.NdJ("mouseup",function(d){return t.onClick(d)})},inputs:{perunWebAppsMiddleClickRouterLink:"perunWebAppsMiddleClickRouterLink"}}),i})(),$B=(()=>{class i{transform(e){return e.find(r=>"mail"===r.friendlyName)?.value??""}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=n.Yjl({name:"getMailFromAttributes",type:i,pure:!0}),i})(),yg=(()=>{class i{transform(e){const t="SHARED_LIB.PERUN.CHECKBOX_LABEL.";return e?t+"DESELECT_ROW":t+"SELECT_ROW"}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=n.Yjl({name:"checkboxLabel",type:i,pure:!0}),i})();function ZB(i,a){1&i&&n._UZ(0,"th",18)}const JB=function(i){return{name:i}};function QB(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"td",19)(1,"span",20),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.TgZ(4,"mat-checkbox",21),n.NdJ("change",function(r){const u=n.CHM(e).$implicit,c=n.oxw();return n.KtG(r?c.selection.toggle(u):null)})("click",function(r){return r.stopPropagation()}),n.ALo(5,"translate"),n.ALo(6,"checkboxLabel"),n.qZA()()()}if(2&i){const e=a.$implicit,t=n.oxw();n.xp6(1),n.s9C("matTooltip",n.lcZ(2,6,n.lcZ(3,8,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.CANNOT_BE_DELETED_TOOLTIP"))),n.Q6J("matTooltipPosition","above")("matTooltipDisabled",!e.userExtSource.persistent),n.xp6(3),n.Q6J("aria-label",n.xi3(5,10,n.lcZ(6,13,t.selection.isSelected(e)),n.VKq(15,JB,e.userExtSource.extSource.name)))("checked",t.selection.isSelected(e))("disabled",e.userExtSource.persistent)}}function XB(i,a){1&i&&(n.TgZ(0,"th",22),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,n.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.ID"))," "))}function KB(i,a){if(1&i&&(n.TgZ(0,"td",23),n._uU(1),n.qZA()),2&i){const e=a.$implicit;n.xp6(1),n.hij(" ",e.userExtSource.id," ")}}function eN(i,a){1&i&&(n.TgZ(0,"th",24),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,n.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.MAIL"))," "))}function tN(i,a){if(1&i&&(n.TgZ(0,"td",23),n._uU(1),n.ALo(2,"getMailFromAttributes"),n.qZA()),2&i){const e=a.$implicit;n.xp6(1),n.hij(" ",n.lcZ(2,1,e.attributes)," ")}}function nN(i,a){if(1&i&&(n.TgZ(0,"th",22),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i){const e=n.oxw();n.xp6(1),n.hij(" ",n.lcZ(2,1,n.lcZ(3,3,e.extSourceNameHeader?e.extSourceNameHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.EXT_SOURCE_NAME"))," ")}}function iN(i,a){if(1&i&&(n.TgZ(0,"td",23),n._uU(1),n.qZA()),2&i){const e=a.$implicit;n.xp6(1),n.hij(" ",e.userExtSource.extSource.name," ")}}function rN(i,a){if(1&i&&(n.TgZ(0,"th",22),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i){const e=n.oxw();n.xp6(1),n.hij(" ",n.lcZ(2,1,n.lcZ(3,3,e.loginHeader?e.loginHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LOGIN"))," ")}}function aN(i,a){if(1&i&&(n.TgZ(0,"td",23),n._uU(1),n.qZA()),2&i){const e=a.$implicit;n.xp6(1),n.hij(" ",e.userExtSource.login," ")}}function sN(i,a){1&i&&(n.TgZ(0,"th",22),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,n.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LAST_ACCESS"))," "))}function oN(i,a){if(1&i&&(n.TgZ(0,"td",25),n._uU(1),n.ALo(2,"date"),n.qZA()),2&i){const e=a.$implicit;n.xp6(1),n.hij(" ",n.xi3(2,1,e.userExtSource.lastAccess,"d.M.y H:mm:ss")," ")}}function lN(i,a){1&i&&n._UZ(0,"tr",26)}const iL=function(i,a){return["/admin","users",i,"identities",a]};function cN(i,a){if(1&i&&n._UZ(0,"tr",27),2&i){const e=a.$implicit,t=n.oxw();n.ekj("cursor-pointer",!t.disableRouting)("disable-outline",t.disableRouting),n.Q6J("perunWebAppsMiddleClickRouterLink",t.disableRouting?null:n.WLB(6,iL,t.userId.toString(),e.userExtSource.id.toString()))("routerLink",t.disableRouting?null:n.WLB(9,iL,t.userId,e.userExtSource.id))}}function dN(i,a){1&i&&(n.TgZ(0,"perun-web-apps-alert",28),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function uN(i,a){1&i&&(n.TgZ(0,"perun-web-apps-alert",28),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,n.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.NO_IDENTITIES")),"\n"))}let hN=(()=>{class i{constructor(e,t){this.route=e,this.authResolver=t,this.selection=new Yi,this.filterValue="",this.displayedColumns=["select","id","mail","extSourceName","login","lastAccess"],this.pageSizeOptions=$l}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,t){switch(t){case"id":return e.userExtSource.id.toString();case"mail":{const r=e.attributes.find(d=>"mail"===d.friendlyName);return r?r.value:"N/A"}case"extSourceName":return e.userExtSource.extSource.name;case"login":return e.userExtSource.login;case"lastAccess":return e.userExtSource.lastAccess.split(".")[0];default:return e[t]}}ngOnInit(){this.disableRouting||this.route.parent.params.subscribe(e=>{this.userId=Number(e.userId)}),this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"id"!==e)),this.dataSource=new Zo(this.userExtSources),this.setDataSource()}exportAllData(e){Fa(ja(this.dataSource.filteredData,this.displayedColumns,i.getDataForColumn),e)}exportDisplayedData(e){const t=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,r=t+this.dataSource.paginator.pageSize;Fa(ja(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(t,r),this.displayedColumns,i.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>Jl(e,t,this.displayedColumns,i.getDataForColumn),this.dataSource.sortData=(e,t)=>Zl(e,t,i.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(mi),n.Y36(Cn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-user-ext-sources-list"]],viewQuery:function(e,t){if(1&e&&(n.Gf(os,7),n.Gf(ps,7)),2&e){let r;n.iGM(r=n.CRH())&&(t.child=r.first),n.iGM(r=n.CRH())&&(t.matSort=r.first)}},inputs:{userExtSources:"userExtSources",selection:"selection",filterValue:"filterValue",displayedColumns:"displayedColumns",tableId:"tableId",extSourceNameHeader:"extSourceNameHeader",loginHeader:"loginHeader",disableRouting:"disableRouting"},features:[n.TTD],decls:25,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","lastAccess","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","truncate","mat-cell","",4,"matCellDef"],["matColumnDef","mail"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","extSourceName"],["matColumnDef","login"],["matColumnDef","lastAccess",1,"pl-3"],["mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["mat-cell","",1,"static-column-size","align-checkbox"],[3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"truncate"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportDisplayedData",function(d){return t.exportDisplayedData(d)})("exportAllData",function(d){return t.exportAllData(d)}),n.TgZ(2,"table",2),n.ynx(3,3),n.YNc(4,ZB,1,0,"th",4),n.YNc(5,QB,7,17,"td",5),n.BQk(),n.ynx(6,6),n.YNc(7,XB,4,5,"th",7),n.YNc(8,KB,2,1,"td",8),n.BQk(),n.ynx(9,9),n.YNc(10,eN,4,5,"th",10),n.YNc(11,tN,3,3,"td",8),n.BQk(),n.ynx(12,11),n.YNc(13,nN,4,5,"th",7),n.YNc(14,iN,2,1,"td",8),n.BQk(),n.ynx(15,12),n.YNc(16,rN,4,5,"th",7),n.YNc(17,aN,2,1,"td",8),n.BQk(),n.ynx(18,13),n.YNc(19,sN,4,5,"th",7),n.YNc(20,oN,3,4,"td",14),n.BQk(),n.YNc(21,lN,1,0,"tr",15),n.YNc(22,cN,1,12,"tr",16),n.qZA()()(),n.YNc(23,dN,3,3,"perun-web-apps-alert",17),n.YNc(24,uN,4,5,"perun-web-apps-alert",17)),2&e&&(n.Q6J("hidden",0===t.userExtSources.length||0===t.dataSource.filteredData.length),n.xp6(1),n.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),n.xp6(1),n.Q6J("dataSource",t.dataSource),n.xp6(19),n.Q6J("matHeaderRowDef",t.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",t.displayedColumns),n.xp6(1),n.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.userExtSources.length),n.xp6(1),n.Q6J("ngIf",0===t.userExtSources.length))},dependencies:[T.O5,ic,io,cs,ro,ds,ls,ao,us,hs,so,oo,oa,ps,Ag,yi,yr,os,nL,DA,T.uU,Ke,$B,Xt,yg],styles:[".static-column-size[_ngcontent-%COMP%]{width:80px!important}.truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;max-width:10rem}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:.25rem!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.disable-outline[_ngcontent-%COMP%]{outline:none!important}"]}),i})();function pN(i,a){1&i&&n._UZ(0,"mat-spinner",4)}function fN(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div")(1,"h1",8),n._uU(2),n.ALo(3,"translate"),n.ALo(4,"customTranslate"),n.qZA(),n.TgZ(5,"button",5),n.NdJ("click",function(){n.CHM(e);const r=n.oxw(2);return n.KtG(r.addIdentity())}),n._uU(6),n.ALo(7,"translate"),n.ALo(8,"customTranslate"),n.qZA(),n.TgZ(9,"button",6),n.NdJ("click",function(){n.CHM(e);const r=n.oxw(2);return n.KtG(r.removeIdentity(r.certSelection))}),n._uU(10),n.ALo(11,"translate"),n.ALo(12,"customTranslate"),n.qZA(),n._UZ(13,"perun-web-apps-user-ext-sources-list",11),n.qZA()}if(2&i){const e=n.oxw(2);n.xp6(2),n.Oqu(n.lcZ(3,10,n.lcZ(4,12,"IDENTITIES.CERT"))),n.xp6(4),n.hij(" ",n.lcZ(7,14,n.lcZ(8,16,"IDENTITIES.ADD"))," "),n.xp6(3),n.Q6J("disabled",0===e.certSelection.selected.length),n.xp6(1),n.hij(" ",n.lcZ(11,18,n.lcZ(12,20,"IDENTITIES.REMOVE"))," "),n.xp6(3),n.Q6J("userExtSources",e.certExtSources)("selection",e.certSelection)("extSourceNameHeader",e.extSourceNameCert)("loginHeader",e.loginCert)("displayedColumns",e.displayedColumnsCert)("disableRouting",!0)}}function mN(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div")(1,"button",5),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.addIdentity())}),n._uU(2),n.ALo(3,"translate"),n.ALo(4,"customTranslate"),n.qZA(),n.TgZ(5,"button",6),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.removeIdentity(r.idpSelection))}),n._uU(6),n.ALo(7,"translate"),n.ALo(8,"customTranslate"),n.qZA(),n._UZ(9,"perun-web-apps-user-ext-sources-list",7),n.YNc(10,fN,14,22,"div",3),n.TgZ(11,"h1",8),n._uU(12),n.ALo(13,"translate"),n.ALo(14,"customTranslate"),n.TgZ(15,"mat-icon",9),n.ALo(16,"translate"),n.ALo(17,"customTranslate"),n._uU(18," info_outline "),n.qZA()(),n._UZ(19,"perun-web-apps-user-ext-sources-list",10),n.qZA()}if(2&i){const e=n.oxw();n.xp6(2),n.hij(" ",n.lcZ(3,16,n.lcZ(4,18,"IDENTITIES.ADD"))," "),n.xp6(3),n.Q6J("disabled",0===e.idpSelection.selected.length),n.xp6(1),n.hij(" ",n.lcZ(7,20,n.lcZ(8,22,"IDENTITIES.REMOVE"))," "),n.xp6(3),n.Q6J("userExtSources",e.idpExtSources)("selection",e.idpSelection)("displayedColumns",e.displayedColumnsIdp)("loginHeader",e.loginIdp)("disableRouting",!0),n.xp6(1),n.Q6J("ngIf",e.displayCertificates),n.xp6(2),n.hij(" ",n.lcZ(13,24,n.lcZ(14,26,"IDENTITIES.OTHER"))," "),n.xp6(3),n.Q6J("matTooltip",n.lcZ(16,28,n.lcZ(17,30,"IDENTITIES.OTHER_TOOLTIP"))),n.xp6(4),n.Q6J("userExtSources",e.otherExtSources)("selection",e.otherSelection)("extSourceNameHeader",e.extSourceNameOther)("displayedColumns",e.displayedColumnsOther)("disableRouting",!0)}}let gN=(()=>{class i{constructor(e,t,r,d,u,c,o,s){this.usersManagerService=e,this.storage=t,this.dialog=r,this.attributesManagerService=d,this.translate=u,this.notificator=c,this.registrarManagerService=o,this.openLinkerService=s,this.idpExtSources=[],this.certExtSources=[],this.otherExtSources=[],this.idpSelection=new Yi(!0,[]),this.certSelection=new Yi(!0,[]),this.otherSelection=new Yi(!0,[]),this.loginIdp="IDENTITIES.LOGIN_IDP",this.extSourceNameCert="IDENTITIES.EXT_SOURCE_NAME_CERT",this.loginCert="IDENTITIES.LOGIN_CERT",this.extSourceNameOther="IDENTITIES.EXT_SOURCE_NAME_OTHER",this.displayedColumnsIdp=["select","extSourceName","login","mail","lastAccess"],this.displayedColumnsCert=["select","extSourceName","login","lastAccess"],this.displayedColumnsOther=["extSourceName","login","lastAccess"]}ngOnInit(){this.userId=this.storage.getPerunPrincipal().userId,this.displayCertificates=this.storage.getProperty("display_identity_certificates"),this.refreshTables()}refreshTables(){this.loading=!0,this.idpExtSources=[],this.certExtSources=[],this.otherExtSources=[],this.usersManagerService.getRichUserExtSources(this.userId).subscribe(e=>{let t=e.length;e.forEach(r=>{this.attributesManagerService.getUserExtSourceAttributesByNames(r.userExtSource.id,[hT.UES_SOURCE_IDP_NAME,hT.UES_DEF_MAIL]).subscribe(d=>{let u;d.filter(c=>"mail"===c.baseFriendlyName&&null===c.value).map(c=>r.attributes.push(c)),d.filter(c=>"sourceIdPName"===c.baseFriendlyName&&c?.value).map(c=>u=c.value),u?(r.userExtSource.extSource.name=u,t--,this.loading=0!==t,this.addToList(r)):this.attributesManagerService.getUserExtSourceAttributeByName(r.userExtSource.id,hT.UES_IDP_ORGANIZATION_NAME).subscribe(c=>{t--,c?.value&&(r.userExtSource.extSource.name=c.value),this.loading=0!==t,this.addToList(r)})})})})}removeIdentity(e){const t=ln();t.width="600px",t.data={theme:"user-theme",userId:this.userId,extSources:e.selected},this.dialog.open(ck,t).afterClosed().subscribe(d=>{d&&(e.clear(),this.refreshTables())})}addIdentity(){this.storage.getProperty("use_new_consolidator")?this.openLinkerService.openLinkerWindow(e=>{"TOKEN_EXPIRED"===e?location.reload():"OK"===e?(this.notificator.showSuccess(this.translate.instant("IDENTITIES.SUCCESSFULLY_ADDED")),this.refreshTables()):"MESSAGE_SENT_TO_SUPPORT"===e&&this.notificator.showSuccess(this.translate.instant("IDENTITIES.MESSAGE_SENT_TO_SUPPORT"))}):this.registrarManagerService.getConsolidatorToken().subscribe(e=>{const t=this.storage.getPerunPrincipal().extSourceType,r=this.storage.getProperty("consolidator_base_url");window.location.href=`${r}${t?.endsWith("X509")?"cert":"fed"}-ic/ic/?target_url=${window.location.href}&token=${e}`})}addToList(e){e.userExtSource.extSource.type.endsWith("Idp")?this.idpExtSources.push(e):e.userExtSource.extSource.type.endsWith("X509")?this.certExtSources.push(e):this.otherExtSources.push(e)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(li),n.Y36(Ut),n.Y36(on),n.Y36(jn),n.Y36(tn),n.Y36(Mr),n.Y36(oc),n.Y36(VB))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-identities-page"]],decls:7,vars:7,consts:[[1,"user-theme"],[1,"page-title"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-flat-button","","color","accent",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[3,"userExtSources","selection","displayedColumns","loginHeader","disableRouting"],[1,"page-title","mt-5"],["matTooltipPosition","above",1,"center-icon",3,"matTooltip"],[3,"userExtSources","selection","extSourceNameHeader","displayedColumns","disableRouting"],[3,"userExtSources","selection","extSourceNameHeader","loginHeader","displayedColumns","disableRouting"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"h1",1),n._uU(2),n.ALo(3,"translate"),n.ALo(4,"customTranslate"),n.qZA(),n.YNc(5,pN,1,0,"mat-spinner",2),n.YNc(6,mN,20,32,"div",3),n.qZA()),2&e&&(n.xp6(2),n.Oqu(n.lcZ(3,3,n.lcZ(4,5,"IDENTITIES.IDP"))),n.xp6(3),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading))},dependencies:[T.O5,zn,Ht,hN,Hn,yr,Ke,Xt],styles:[".center-icon[_ngcontent-%COMP%]{vertical-align:middle;transform:scale(.8)}"]}),i})();const _N=["panel"];function bN(i,a){if(1&i&&(n.TgZ(0,"div",0,1),n.Hsn(2),n.qZA()),2&i){const e=a.id,t=n.oxw();n.Q6J("id",t.id)("ngClass",t._classList),n.uIk("aria-label",t.ariaLabel||null)("aria-labelledby",t._getPanelAriaLabelledby(e))}}const AN=["*"];let yN=0;class wN{constructor(a,e){this.source=a,this.option=e}}const MN=Ni(class{}),rL=new n.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function CN(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1}}});let vN=(()=>{class i extends MN{constructor(e,t,r,d){super(),this._changeDetectorRef=e,this._elementRef=t,this._activeOptionChanges=Nt.w0.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new n.vpe,this.opened=new n.vpe,this.closed=new n.vpe,this.optionActivated=new n.vpe,this._classList={},this.id="mat-autocomplete-"+yN++,this.inertGroups=d?.SAFARI||!1,this._autoActiveFirstOption=!!r.autoActiveFirstOption,this._autoSelectActiveOption=!!r.autoSelectActiveOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(e){this._autoActiveFirstOption=Ge(e)}get autoSelectActiveOption(){return this._autoSelectActiveOption}set autoSelectActiveOption(e){this._autoSelectActiveOption=Ge(e)}set classList(e){this._classList=e&&e.length?function hw(i,a=/\s+/){const e=[];if(null!=i){const t=Array.isArray(i)?i:`${i}`.split(a);for(const r of t){const d=`${r}`.trim();d&&e.push(d)}}return e}(e).reduce((t,r)=>(t[r]=!0,t),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new Aw(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(e=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[e]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(e){this.panel&&(this.panel.nativeElement.scrollTop=e)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(e){const t=new wN(this,e);this.optionSelected.emit(t)}_getPanelAriaLabelledby(e){return this.ariaLabel?null:this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_setVisibilityClasses(e){e[this._visibleClass]=this.showPanel,e[this._hiddenClass]=!this.showPanel}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.sBO),n.Y36(n.SBq),n.Y36(rL),n.Y36(Qn))},i.\u0275dir=n.lG2({type:i,viewQuery:function(e,t){if(1&e&&(n.Gf(n.Rgc,7),n.Gf(_N,5)),2&e){let r;n.iGM(r=n.CRH())&&(t.template=r.first),n.iGM(r=n.CRH())&&(t.panel=r.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",autoSelectActiveOption:"autoSelectActiveOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[n.qOj]}),i})(),TN=(()=>{class i extends vN{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-autocomplete"]],contentQueries:function(e,t,r){if(1&e&&(n.Suo(r,_r,5),n.Suo(r,Fs,5)),2&e){let d;n.iGM(d=n.CRH())&&(t.optionGroups=d),n.iGM(d=n.CRH())&&(t.options=d)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[n._Bn([{provide:S0,useExisting:i}]),n.qOj],ngContentSelectors:AN,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(e,t){1&e&&(n.F$t(),n.YNc(0,bN,3,4,"ng-template"))},dependencies:[T.mk],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}"],encapsulation:2,changeDetection:0}),i})();const aL=new n.OlP("mat-autocomplete-scroll-strategy"),SN={provide:aL,deps:[rr],useFactory:function xN(i){return()=>i.scrollStrategies.reposition()}},EN={provide:ar,useExisting:(0,n.Gpc)(()=>sL),multi:!0};let DN=(()=>{class i{constructor(e,t,r,d,u,c,o,s,l,h,p){this._element=e,this._overlay=t,this._viewContainerRef=r,this._zone=d,this._changeDetectorRef=u,this._dir=o,this._formField=s,this._document=l,this._viewportRuler=h,this._defaults=p,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=Nt.w0.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new Le.x,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=Rn(()=>{const m=this.autocomplete?this.autocomplete.options:null;return m?m.changes.pipe(vn(m),(0,An.w)(()=>(0,kn.T)(...m.map(g=>g.onSelectionChange)))):this._zone.onStable.pipe((0,ht.q)(1),(0,An.w)(()=>this.optionSelections))}),this._scrollStrategy=c}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(e){this._autocompleteDisabled=Ge(e)}ngAfterViewInit(){const e=this._getWindow();typeof e<"u"&&this._zone.runOutsideAngular(()=>e.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(e){e.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const e=this._getWindow();typeof e<"u"&&e.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._isOpen=this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return(0,kn.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,bt.h)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,bt.h)(()=>this._overlayAttached)):(0,Ee.of)()).pipe((0,Mt.U)(e=>e instanceof zw?e:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,kn.T)(zs(this._document,"click"),zs(this._document,"auxclick"),zs(this._document,"touchend")).pipe((0,bt.h)(e=>{const t=Or(e),r=this._formField?this._formField._elementRef.nativeElement:null,d=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&t!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!r||!r.contains(t))&&(!d||!d.contains(t))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(t)}))}writeValue(e){Promise.resolve(null).then(()=>this._assignOptionValue(e))}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._element.nativeElement.disabled=e}_handleKeydown(e){const t=e.keyCode,r=Di(e);if(27===t&&!r&&e.preventDefault(),this.activeOption&&13===t&&this.panelOpen&&!r)this.activeOption._selectViaInteraction(),this._resetActiveItem(),e.preventDefault();else if(this.autocomplete){const d=this.autocomplete._keyManager.activeItem,u=38===t||40===t;9===t||u&&!r&&this.panelOpen?this.autocomplete._keyManager.onKeydown(e):u&&this._canOpen()&&this.openPanel(),(u||this.autocomplete._keyManager.activeItem!==d)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._element.nativeElement.value),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(e){let t=e.target,r=t.value;"number"===t.type&&(r=""==r?null:parseFloat(r)),this._previousValue!==r&&(this._previousValue=r,this._pendingAutoselectedOption=null,this._onChange(r),this._canOpen()&&this._document.activeElement===e.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this.openPanel()}_floatLabel(e=!1){this._formField&&"auto"===this._formField.floatLabel&&(e?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const e=this._zone.onStable.pipe((0,ht.q)(1)),t=this.autocomplete.options.changes.pipe((0,Wt.b)(()=>this._positionStrategy.reapplyLastPosition()),(0,Up.g)(0));return(0,kn.T)(e,t).pipe((0,An.w)(()=>(this._zone.run(()=>{const r=this.panelOpen;this._resetActiveItem(),this.autocomplete._setVisibility(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),r!==this.panelOpen&&(this.panelOpen?this.autocomplete.opened.emit():this.autocomplete.closed.emit())}),this.panelClosingActions)),(0,ht.q)(1)).subscribe(r=>this._setValueAndClose(r))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_assignOptionValue(e){const t=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(e):e;this._updateNativeInputValue(t??"")}_updateNativeInputValue(e){this._formField?this._formField._control.value=e:this._element.nativeElement.value=e,this._previousValue=e}_setValueAndClose(e){const t=e?e.source:this._pendingAutoselectedOption;t&&(this._clearPreviousSelectedOption(t),this._assignOptionValue(t.value),this._onChange(t.value),this.autocomplete._emitSelectEvent(t),this._element.nativeElement.focus()),this.closePanel()}_clearPreviousSelectedOption(e){this.autocomplete.options.forEach(t=>{t!==e&&t.selected&&t.deselect()})}_attachOverlay(){let e=this._overlayRef;var t;e?(this._positionStrategy.setOrigin(this._getConnectedElement()),e.updateSize({width:this._getPanelWidth()})):(this._portal=new Oa(this.autocomplete.template,this._viewContainerRef,{id:null===(t=this._formField)||void 0===t?void 0:t.getLabelId()}),e=this._overlay.create(this._getOverlayConfig()),this._overlayRef=e,this._handleOverlayEvents(e),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&e&&e.updateSize({width:this._getPanelWidth()})})),e&&!e.hasAttached()&&(e.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const r=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&r!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){var e;return new rd({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(e=this._defaults)||void 0===e?void 0:e.overlayPanelClass})}_getOverlayPosition(){const e=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(e),this._positionStrategy=e,e}_setStrategyPositions(e){const t=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],r=this._aboveClass,d=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:r},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:r}];let u;u="above"===this.position?d:"below"===this.position?t:[...t,...d],e.withPositions(u)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const e=this.autocomplete;e.autoActiveFirstOption?e._keyManager.setFirstItemActive():e._keyManager.setActiveItem(-1)}_canOpen(){const e=this._element.nativeElement;return!e.readOnly&&!e.disabled&&!this._autocompleteDisabled}_getWindow(){var e;return(null===(e=this._document)||void 0===e?void 0:e.defaultView)||window}_scrollToOption(e){const t=this.autocomplete,r=Qh(e,t.options,t.optionGroups);if(0===e&&1===r)t._setScrollTop(0);else if(t.panel){const d=t.options.toArray()[e];if(d){const u=d._getHostElement(),c=Z1(u.offsetTop,u.offsetHeight,t._getScrollTop(),t.panel.nativeElement.offsetHeight);t._setScrollTop(c)}}}_handleOverlayEvents(e){e.keydownEvents().subscribe(t=>{var r;(27===t.keyCode&&!Di(t)||38===t.keyCode&&Di(t,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(null!==(r=this._valueBeforeAutoSelection)&&void 0!==r?r:""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),t.stopPropagation(),t.preventDefault())}),e.outsidePointerEvents().subscribe()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36(rr),n.Y36(n.s_b),n.Y36(n.R0b),n.Y36(n.sBO),n.Y36(aL),n.Y36(Hi,8),n.Y36(sd,9),n.Y36(T.K0,8),n.Y36(Us),n.Y36(rL,8))},i.\u0275dir=n.lG2({type:i,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[n.TTD]}),i})(),sL=(()=>{class i extends DN{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(e,t){1&e&&n.NdJ("focusin",function(){return t._handleFocus()})("blur",function(){return t._onTouched()})("input",function(d){return t._handleInput(d)})("keydown",function(d){return t._handleKeydown(d)})("click",function(){return t._handleClick()}),2&e&&n.uIk("autocomplete",t.autocompleteAttribute)("role",t.autocompleteDisabled?null:"combobox")("aria-autocomplete",t.autocompleteDisabled?null:"list")("aria-activedescendant",t.panelOpen&&t.activeOption?t.activeOption.id:null)("aria-expanded",t.autocompleteDisabled?null:t.panelOpen.toString())("aria-owns",t.autocompleteDisabled||!t.panelOpen||null==t.autocomplete?null:t.autocomplete.id)("aria-haspopup",t.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[n._Bn([EN]),n.qOj]}),i})(),LN=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[SN],imports:[Bo,_u,wt,T.ez,da,_u,wt]}),i})(),HN=(()=>{class i{transform(e){return e?.value??"never"}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=n.Yjl({name:"validateExpiration",type:i,pure:!0}),i})();function RN(i,a){1&i&&n._UZ(0,"th",17)}const PN=function(i){return{name:i}};function kN(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"td",18)(1,"mat-checkbox",19),n.NdJ("change",function(r){const u=n.CHM(e).$implicit,c=n.oxw();return n.KtG(r?c.selection.toggle(u):null)})("click",function(r){return r.stopPropagation()}),n.ALo(2,"translate"),n.ALo(3,"checkboxLabel"),n.ALo(4,"validateExpiration"),n.qZA()()}if(2&i){const e=a.$implicit,t=n.oxw();n.xp6(1),n.Q6J("aria-label",n.xi3(2,3,n.lcZ(3,6,t.selection.isSelected(e)),n.VKq(10,PN,e.entity.name)))("checked",t.selection.isSelected(e))("disabled","never"===n.lcZ(4,8,e.expirationAttribute))}}function ON(i,a){1&i&&(n.TgZ(0,"th",20),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,n.lcZ(3,3,"MEMBERSHIP_LIST.NAME"))," "))}function IN(i,a){if(1&i&&(n.TgZ(0,"td",21),n._uU(1),n.qZA()),2&i){const e=a.$implicit;n.xp6(1),n.Oqu(e.entity.name)}}function BN(i,a){1&i&&(n.TgZ(0,"th",20),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,n.lcZ(3,3,"MEMBERSHIP_LIST.DESCRIPTION"))," "))}function NN(i,a){if(1&i&&(n.TgZ(0,"td",22),n._uU(1),n.qZA()),2&i){const e=a.$implicit;n.xp6(1),n.Oqu(e.entity.description)}}function VN(i,a){1&i&&(n.TgZ(0,"th",23),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,n.lcZ(3,3,"MEMBERSHIP_LIST.EXPIRATION"))," "))}function jN(i,a){if(1&i&&(n.TgZ(0,"td",22),n._uU(1),n.ALo(2,"validateExpiration"),n.qZA()),2&i){const e=a.$implicit;n.xp6(1),n.hij(" ",n.lcZ(2,1,e.expirationAttribute)," ")}}function FN(i,a){1&i&&n._UZ(0,"th",20)}function zN(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"td",22)(1,"button",24),n.NdJ("click",function(){const d=n.CHM(e).$implicit,u=n.oxw();return n.KtG(u.extend(d))}),n.ALo(2,"validateExpiration"),n._uU(3),n.ALo(4,"translate"),n.ALo(5,"customTranslate"),n.qZA()()}if(2&i){const e=a.$implicit;n.xp6(1),n.Q6J("disabled","never"===n.lcZ(2,2,e.expirationAttribute)),n.xp6(2),n.hij(" ",n.lcZ(4,4,n.lcZ(5,6,"MEMBERSHIP_LIST.EXTEND"))," ")}}function UN(i,a){1&i&&n._UZ(0,"tr",25)}function qN(i,a){1&i&&n._UZ(0,"tr",26)}function YN(i,a){1&i&&(n.TgZ(0,"perun-web-apps-alert",27),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,n.lcZ(3,3,"MEMBERSHIP_LIST.NO_MEMBERSHIPS"))))}let oL=(()=>{class i{constructor(){this.members=[],this.searchString="",this.selection=new Yi(!1,[]),this.displayedColumns=["checkbox","name","description","expirationAttribute","extend"],this.filterValue="",this.extendMembership=new n.vpe,this.pageSizeOptions=$l}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,t){switch(t){case"name":return e.entity.name;case"description":return"description"in e.entity?e.entity.description:"";case"expirationAttribute":return e?.expirationAttribute?.value??"never";default:return""}}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}ngOnChanges(){this.dataSource=new Zo(this.members),this.setDataSource()}exportAllData(e){Fa(ja(this.dataSource.filteredData,this.displayedColumns,i.getDataForColumn),e)}exportDisplayedData(e){const t=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,r=t+this.dataSource.paginator.pageSize;Fa(ja(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(t,r),this.displayedColumns,i.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>Jl(e,t,this.displayedColumns,i.getDataForColumn),this.dataSource.sortData=(e,t)=>Zl(e,t,i.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}extend(e){this.extendMembership.emit(e)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-membership-list"]],viewQuery:function(e,t){if(1&e&&(n.Gf(os,7),n.Gf(ps,7)),2&e){let r;n.iGM(r=n.CRH())&&(t.child=r.first),n.iGM(r=n.CRH())&&(t.matSort=r.first)}},inputs:{members:"members",searchString:"searchString",selection:"selection",displayedColumns:"displayedColumns",tableId:"tableId",filterValue:"filterValue"},outputs:{extendMembership:"extendMembership"},features:[n.TTD],decls:21,vars:8,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","tableId","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","expirationAttribute","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","description"],["mat-cell","",4,"matCellDef"],["matColumnDef","expirationAttribute"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","extend"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-cell","","mat-sort-header",""],["color","accent","mat-flat-button","",3,"disabled","click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportDisplayedData",function(d){return t.exportDisplayedData(d)})("exportAllData",function(d){return t.exportAllData(d)}),n.TgZ(2,"table",2),n.ynx(3,3),n.YNc(4,RN,1,0,"th",4),n.YNc(5,kN,5,12,"td",5),n.BQk(),n.ynx(6,6),n.YNc(7,ON,4,5,"th",7),n.YNc(8,IN,2,1,"td",8),n.BQk(),n.ynx(9,9),n.YNc(10,BN,4,5,"th",7),n.YNc(11,NN,2,1,"td",10),n.BQk(),n.ynx(12,11),n.YNc(13,VN,4,5,"th",12),n.YNc(14,jN,3,3,"td",10),n.BQk(),n.ynx(15,13),n.YNc(16,FN,1,0,"th",7),n.YNc(17,zN,6,8,"td",10),n.BQk(),n.YNc(18,UN,1,0,"tr",14),n.YNc(19,qN,1,0,"tr",15),n.qZA()()(),n.YNc(20,YN,4,5,"perun-web-apps-alert",16)),2&e&&(n.Q6J("hidden",!t.dataSource.filteredData.length),n.xp6(1),n.Q6J("dataLength",t.dataSource.filteredData.length)("tableId",t.tableId)("pageSizeOptions",t.pageSizeOptions),n.xp6(1),n.Q6J("dataSource",t.dataSource),n.xp6(16),n.Q6J("matHeaderRowDef",t.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",t.displayedColumns),n.xp6(1),n.Q6J("ngIf",!t.dataSource.filteredData.length))},dependencies:[T.O5,Ht,yi,io,cs,ro,ds,ls,ao,us,hs,so,oo,ic,ps,Ag,os,Ke,Xt,yg,HN]}),i})();function WN(i,a){if(1&i&&(n.TgZ(0,"mat-option",13),n._uU(1),n.qZA()),2&i){const e=a.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e.name," ")}}function GN(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"mat-form-field",7)(1,"mat-label"),n._uU(2),n.ALo(3,"translate"),n.qZA(),n._UZ(4,"input",8),n.ALo(5,"translate"),n.ALo(6,"customTranslate"),n.TgZ(7,"mat-autocomplete",9,10),n.NdJ("optionSelected",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.filterByVo(r))}),n.TgZ(9,"mat-option",11),n._uU(10),n.ALo(11,"translate"),n.ALo(12,"customTranslate"),n.qZA(),n.YNc(13,WN,2,2,"mat-option",12),n.ALo(14,"async"),n.qZA()()}if(2&i){const e=n.MAs(8),t=n.oxw();n.xp6(2),n.Oqu(n.lcZ(3,7,"GROUPS.SELECT_VO")),n.xp6(2),n.s9C("placeholder",n.lcZ(5,9,n.lcZ(6,11,"GROUPS.SELECT_VO"))),n.Q6J("formControl",t.myControl)("matAutocomplete",e),n.xp6(3),n.Q6J("displayWith",t.displayFn),n.xp6(3),n.Oqu(n.lcZ(11,13,n.lcZ(12,15,"GROUPS.ALL"))),n.xp6(3),n.Q6J("ngForOf",n.lcZ(14,17,t.filteredVos))}}function $N(i,a){1&i&&n._UZ(0,"mat-spinner",14)}function ZN(i,a){1&i&&(n.TgZ(0,"perun-web-apps-alert",15),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,n.lcZ(3,3,"GROUPS.NO_GROUPS"))))}const JN=function(){return["name","description","expirationAttribute","extend"]};function QN(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div")(1,"h4",16),n._uU(2),n.ALo(3,"translate"),n.ALo(4,"customTranslate"),n.qZA(),n.TgZ(5,"perun-web-apps-membership-list",17),n.NdJ("extendMembership",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.extendMembership(r))}),n.qZA()()}if(2&i){const e=n.oxw();n.xp6(2),n.Oqu(n.lcZ(3,4,n.lcZ(4,6,"GROUPS.MEMBER_GROUPS"))),n.xp6(3),n.Q6J("members",e.userMemberships)("selection",e.selection)("displayedColumns",n.DdM(8,JN))}}const XN=function(){return["name","description"]};function KN(i,a){if(1&i&&(n.TgZ(0,"div",18)(1,"h4",16),n._uU(2),n.ALo(3,"translate"),n.ALo(4,"customTranslate"),n.qZA(),n._UZ(5,"perun-web-apps-membership-list",19),n.qZA()),2&i){const e=n.oxw();n.xp6(2),n.Oqu(n.lcZ(3,3,n.lcZ(4,5,"GROUPS.ADMINS_GROUPS"))),n.xp6(3),n.Q6J("members",e.adminMemberships)("displayedColumns",n.DdM(7,XN))}}let e3=(()=>{class i{constructor(e,t,r,d,u,c){this.usersService=e,this.memberService=t,this.groupService=r,this.store=d,this.vosManagerService=u,this.attributesManagerService=c,this.loading=!1,this.vos=[],this.myControl=new Js,this.selection=new Yi(!1,[]),this.displayedColumns=["id","name"],this.userMemberships=[],this.adminMemberships=[]}ngOnInit(){this.loading=!0,this.userId=this.store.getPerunPrincipal().userId,this.usersService.getVosWhereUserIsMember(this.userId).subscribe(e=>{this.vos=e,this.filteredVos=this.myControl.valueChanges.pipe(vn(""),(0,Mt.U)(t=>this._filter(t))),this.getAllGroups()})}getAllGroups(){this.loading=!0;let e=0,t=0;this.userMemberships=[],this.adminMemberships=[];const r=this.store.getPerunPrincipal().roles.SELF.Member;r.length?t=r.length:this.loading=!1,r.forEach(d=>{t--,this.groupService.getMemberGroups(d).subscribe(u=>{e+=u.length,this.loading=0===e&&0!==t,u.forEach(c=>{this.attributesManagerService.getMemberGroupAttributes(d,c.id).subscribe(o=>{e--,this.userMemberships.push({entity:c,expirationAttribute:o.find(s=>"groupMembershipExpiration"===s.friendlyName)}),this.loading=0!==e})})})}),this.usersService.getGroupsWhereUserIsAdmin(this.userId).subscribe(d=>{d.forEach(u=>{this.adminMemberships.push({entity:u,expirationAttribute:null})})})}displayFn(e){return e?e.name:null}filterByVo(e){if("all"===e.option.value)this.getAllGroups();else{this.userMemberships=[],this.adminMemberships=[],this.loading=!0;const t=e.option.value;this.memberService.getMemberByUser(t.id,this.userId).subscribe(r=>{this.groupService.getMemberGroups(r.id).subscribe(d=>{let u=d.length;this.loading=0!==u,d.forEach(c=>{this.attributesManagerService.getMemberGroupAttributes(r.id,c.id).subscribe(o=>{u--,this.userMemberships.push({entity:c,expirationAttribute:o.find(s=>"groupMembershipExpiration"===s.friendlyName)}),this.loading=0!==u})})})}),this.usersService.getGroupsInVoWhereUserIsAdmin(this.userId,t.id).subscribe(r=>{r.forEach(d=>{this.adminMemberships.push({entity:d,expirationAttribute:null})})})}}extendMembership(e){const t=this.store.getProperty("registrar_base_url"),r=e.entity,d=this.vos.find(u=>u.id===r.voId).shortName;window.location.href=`${t}?vo=${d}&group=${e.entity.shortName}`}_filter(e){const t="string"==typeof e?e.toLowerCase():e.name.toLowerCase();return this.vos.filter(r=>r.name.toLowerCase().includes(t))}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(li),n.Y36(Er),n.Y36(zr),n.Y36(Ut),n.Y36(ws),n.Y36(jn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-groups-page"]],decls:10,vars:10,consts:[[1,"page-title","pt-2"],[1,"user-theme"],["class","mr-2 w-75",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],["alert_type","warn",4,"ngIf"],[4,"ngIf"],["class","mt-5",4,"ngIf"],[1,"mr-2","w-75"],["type","text","aria-label","Assignee","matInput","",3,"placeholder","formControl","matAutocomplete"],[3,"displayWith","optionSelected"],["auto","matAutocomplete"],["value","all"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mr-auto","ml-auto"],["alert_type","warn"],[1,"page-subtitle"],[3,"members","selection","displayedColumns","extendMembership"],[1,"mt-5"],[3,"members","displayedColumns"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA(),n.TgZ(4,"div",1),n.YNc(5,GN,15,19,"mat-form-field",2),n.YNc(6,$N,1,0,"mat-spinner",3),n.YNc(7,ZN,4,5,"perun-web-apps-alert",4),n.YNc(8,QN,6,9,"div",5),n.YNc(9,KN,6,8,"div",6),n.qZA()),2&e&&(n.xp6(1),n.Oqu(n.lcZ(2,6,n.lcZ(3,8,"GROUPS.TITLE"))),n.xp6(4),n.Q6J("ngIf",!t.loading),n.xp6(1),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",!t.userMemberships.length&&!t.adminMemberships.length&&!t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading&&0!==t.userMemberships.length),n.xp6(1),n.Q6J("ngIf",!t.loading&&0!==t.adminMemberships.length))},dependencies:[T.sg,T.O5,yi,di,as,Fs,ji,_i,Ai,sr,Hn,TN,sL,oL,T.Ov,Ke,Xt]}),i})(),t3=(()=>{class i{constructor(e){this.elementRef=e}ngOnInit(){this.elementRef.nativeElement.focus()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq))},i.\u0275dir=n.lG2({type:i,selectors:[["","perunWebAppsAutoFocus",""]]}),i})();function n3(i,a){if(1&i&&(n._UZ(0,"input",3),n.ALo(1,"translate")),2&i){const e=n.oxw();n.s9C("placeholder",n.lcZ(1,2,e.placeholder)),n.Q6J("formControl",e.formControl)}}function r3(i,a){if(1&i&&(n._UZ(0,"input",4),n.ALo(1,"translate")),2&i){const e=n.oxw();n.s9C("placeholder",n.lcZ(1,2,e.placeholder)),n.Q6J("formControl",e.formControl)}}let cf=(()=>{class i{constructor(){this.filter=new n.vpe,this.autoFocus=!1,this.formControl=new Js}ngOnInit(){this.formControl.valueChanges.subscribe(e=>{let t=e.trim();t=t.toLowerCase(),this.filter.emit(t)})}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-immediate-filter"]],inputs:{placeholder:"placeholder",autoFocus:"autoFocus"},outputs:{filter:"filter"},decls:3,vars:2,consts:[[1,"filter-field","mr-2"],["matInput","","perunWebAppsAutoFocus","","data-cy","auto-focused-filter",3,"formControl","placeholder",4,"ngIf"],["matInput","","data-cy","unfocused-filter",3,"formControl","placeholder",4,"ngIf"],["matInput","","perunWebAppsAutoFocus","","data-cy","auto-focused-filter",3,"formControl","placeholder"],["matInput","","data-cy","unfocused-filter",3,"formControl","placeholder"]],template:function(e,t){1&e&&(n.TgZ(0,"mat-form-field",0),n.YNc(1,n3,2,4,"input",1),n.YNc(2,r3,2,4,"input",2),n.qZA()),2&e&&(n.xp6(1),n.Q6J("ngIf",t.autoFocus),n.xp6(1),n.Q6J("ngIf",!t.autoFocus))},dependencies:[T.O5,_i,Ai,di,sr,ji,t3,Ke],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:0!important;min-width:initial!important}"]}),i})();function a3(i,a){1&i&&(n.TgZ(0,"mat-icon",1),n.ALo(1,"translate"),n._uU(2," visibility\n"),n.qZA()),2&i&&n.s9C("matTooltip",n.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.RECENTLY_VIEWED_ICON.RECENT"))}let s3=(()=>{class i{constructor(){this.recentIds=[]}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-recently-viewed-icon"]],inputs:{recentIds:"recentIds",id:"id"},decls:1,vars:1,consts:[["class","align-bottom disabled-icon",3,"matTooltip",4,"ngIf"],[1,"align-bottom","disabled-icon",3,"matTooltip"]],template:function(e,t){1&e&&n.YNc(0,a3,3,3,"mat-icon",0),2&e&&n.Q6J("ngIf",t.recentIds.indexOf(t.id)>-1)},dependencies:[T.O5,zn,yr,Ke],styles:[".disabled-icon[_ngcontent-%COMP%]{color:#00000042}"]}),i})();function o3(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"span",3),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.changeStatus())}),n.ALo(1,"translate"),n.TgZ(2,"mat-icon",4),n._uU(3,"check_circle_outline"),n.qZA()()}if(2&i){const e=n.oxw();n.s9C("matTooltip",n.lcZ(1,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.ACTIVE")),n.Q2q("data-cy","",e.groupName,"-active")}}function l3(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"span",3),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.changeStatus())}),n.ALo(1,"translate"),n.TgZ(2,"mat-icon",5),n._uU(3,"block"),n.qZA()()}if(2&i){const e=n.oxw();n.s9C("matTooltip",n.lcZ(1,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.INACTIVE")),n.Q2q("data-cy","",e.groupName,"-inactive")}}function c3(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"span",3),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.changeStatus())}),n.ALo(1,"translate"),n.TgZ(2,"mat-icon",6),n._uU(3,"report"),n.qZA()()}if(2&i){const e=n.oxw();n.hYB("matTooltip","",n.lcZ(1,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.FAILED"),": ",e.failureCause,"")}}function d3(i,a){1&i&&(n.TgZ(0,"span",7),n.ALo(1,"translate"),n.TgZ(2,"mat-icon",8),n._uU(3,"autorenew"),n.qZA()()),2&i&&n.s9C("matTooltip",n.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.PROCESSING"))}let u3=(()=>{class i{constructor(e){this.dialog=e,this.status="",this.groupName="",this.statusChange=new n.vpe}changeStatus(){const e=ln();e.width="500px",e.data={theme:this.theme,status:this.status,groupId:this.groupId,resourceId:this.resourceId},this.dialog.open(Jk,e).afterClosed().subscribe(r=>{r&&this.statusChange.emit()})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(on))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-group-resource-status"]],inputs:{status:"status",groupId:"groupId",groupName:"groupName",resourceId:"resourceId",theme:"theme",failureCause:"failureCause"},outputs:{statusChange:"statusChange"},decls:5,vars:4,consts:[[1,"flex-container"],["matTooltipPosition","above",3,"matTooltip","click",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip","click"],[1,"green"],[1,"grey"],[1,"red"],["matTooltipPosition","above",3,"matTooltip"],[1,"black"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0),n.YNc(1,o3,4,4,"span",1),n.YNc(2,l3,4,4,"span",1),n.YNc(3,c3,4,4,"span",1),n.YNc(4,d3,4,3,"span",2),n.qZA()),2&e&&(n.xp6(1),n.Q6J("ngIf","ACTIVE"===t.status),n.xp6(1),n.Q6J("ngIf","INACTIVE"===t.status),n.xp6(1),n.Q6J("ngIf","FAILED"===t.status),n.xp6(1),n.Q6J("ngIf","PROCESSING"===t.status))},dependencies:[T.O5,zn,yr,Ke]}),i})(),h3=(()=>{class i{transform(e){if(null==e)return null;let r="";return e.forEach(function(d){r=r.concat(d.tagName)}),r}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=n.Yjl({name:"resourceTagsToString",type:i,pure:!0}),i})(),p3=(()=>{class i{transform(e,t){return t?`/organizations/${e.voId}/resources/${e.id}`:`/facilities/${e.facilityId}/resources/${e.id}`}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=n.Yjl({name:"getResourceRoute",type:i,pure:!0}),i})(),pT=(()=>{class i{constructor(e){this.tableCheckboxService=e}transform(e,t,r){return 0!==t&&(function L2(i){return"allObjectCount"in i}(e)?t===e.getData().length:function f3(i){return"_count"in i}(e)?this.tableCheckboxService.isAllSelectedPaginated(e,t,r):this.tableCheckboxService.isAllSelected(t,e,r))}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(cA,16))},i.\u0275pipe=n.Yjl({name:"isAllSelected",type:i,pure:!0}),i})(),lL=(()=>{class i{transform(e){const t="SHARED_LIB.PERUN.CHECKBOX_LABEL.";return e?t+"DESELECT_ALL":t+"SELECT_ALL"}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=n.Yjl({name:"masterCheckboxLabel",type:i,pure:!0}),i})();function m3(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"mat-checkbox",27),n.NdJ("change",function(r){n.CHM(e);const d=n.oxw(3);return n.KtG(r?d.masterToggle():null)}),n.ALo(1,"translate"),n.ALo(2,"masterCheckboxLabel"),n.qZA()}if(2&i){const e=n.oxw(2).ngIf,t=n.oxw();n.Q6J("aria-label",n.lcZ(1,3,n.lcZ(2,5,e.all)))("checked",t.selection.hasValue()&&e.all)("indeterminate",t.selection.hasValue()&&!e.all)}}function g3(i,a){if(1&i&&(n.TgZ(0,"th",25),n.YNc(1,m3,3,7,"mat-checkbox",26),n.qZA()),2&i){const e=n.oxw(2);n.xp6(1),n.Q6J("ngIf",e.selection.isMultipleSelection())}}const _3=function(i){return{name:i}};function b3(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"td",28)(1,"span",29),n.ALo(2,"translate"),n.TgZ(3,"mat-checkbox",30),n.NdJ("change",function(r){const u=n.CHM(e).$implicit,c=n.oxw(2);return n.KtG(r?c.itemSelectionToggle(u):null)})("click",function(r){return r.stopPropagation()}),n.ALo(4,"translate"),n.ALo(5,"checkboxLabel"),n.qZA()()()}if(2&i){const e=a.$implicit,t=n.oxw(2);n.xp6(1),n.s9C("matTooltip",n.lcZ(2,7,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.INDIRECT_RESOURCE")),n.Q6J("matTooltipPosition","above")("matTooltipDisabled",!t.disableSelect(e)),n.xp6(2),n.Q2q("data-cy","",e.name,"-checkbox"),n.Q6J("aria-label",n.xi3(4,9,n.lcZ(5,12,t.selection.isSelected(e)),n.VKq(14,_3,e.name)))("checked",t.selection.isSelected(e))("disabled",t.disableSelect(e))}}function A3(i,a){1&i&&(n.ynx(0,22),n.YNc(1,g3,2,1,"th",23),n.YNc(2,b3,6,16,"td",24),n.BQk())}function y3(i,a){1&i&&(n.TgZ(0,"th",31),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_ID")," "))}function w3(i,a){if(1&i&&(n.TgZ(0,"td",32),n._uU(1),n.qZA()),2&i){const e=a.$implicit;n.xp6(1),n.Oqu(e.id)}}function M3(i,a){1&i&&n._UZ(0,"th",33)}function C3(i,a){if(1&i&&(n.TgZ(0,"td",34),n._UZ(1,"perun-web-apps-recently-viewed-icon",35),n.qZA()),2&i){const e=a.$implicit,t=n.oxw();n.xp6(1),n.Q6J("recentIds",t.recentIds)("id",e.id)}}function v3(i,a){1&i&&n._UZ(0,"th",33)}function T3(i,a){1&i&&(n.TgZ(0,"mat-icon",37),n.ALo(1,"translate"),n._uU(2,"account_tree"),n.qZA()),2&i&&n.Q6J("matTooltip",n.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.INDIRECT_RESOURCE"))}function x3(i,a){if(1&i&&(n.TgZ(0,"td",34),n.YNc(1,T3,3,3,"mat-icon",36),n.qZA()),2&i){const e=a.$implicit;n.xp6(1),n.Q6J("ngIf",e.sourceGroupId)}}function S3(i,a){1&i&&(n.TgZ(0,"th",31),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_NAME")," "))}function E3(i,a){if(1&i&&(n.TgZ(0,"td",34),n._uU(1),n.qZA()),2&i){const e=a.$implicit;n.uIk("data-cy",e.name),n.xp6(1),n.hij(" ",e.name," ")}}function D3(i,a){1&i&&(n.TgZ(0,"th",31),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_VO_NAME")," "))}function L3(i,a){if(1&i&&(n.TgZ(0,"td",34),n._uU(1),n.qZA()),2&i){const e=a.$implicit;n.xp6(1),n.Oqu(e.vo.name)}}function H3(i,a){1&i&&(n.TgZ(0,"th",31),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_VO_ID")," "))}function R3(i,a){if(1&i&&(n.TgZ(0,"td",34),n._uU(1),n.qZA()),2&i){const e=a.$implicit;n.xp6(1),n.Oqu(e.voId)}}function P3(i,a){1&i&&(n.TgZ(0,"th",31),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_GROUP_RESOURCE_STATUS")," "))}function k3(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"td",34)(1,"perun-web-apps-group-resource-status",38),n.NdJ("mouseenter",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.disabledRouting=!0)})("mouseleave",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.disabledRouting=r.disableRouting)})("statusChange",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.refreshTable.emit())}),n.qZA()()}if(2&i){const e=a.$implicit,t=n.oxw();n.xp6(1),n.Q6J("theme","group-theme")("resourceId",e.id)("groupId",t.groupId)("failureCause",e.failureCause)("status",e.status)}}function O3(i,a){1&i&&(n.TgZ(0,"th",31),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_FACILITY_NAME")," "))}function I3(i,a){if(1&i&&(n.TgZ(0,"td",34),n._uU(1),n.qZA()),2&i){const e=a.$implicit;n.xp6(1),n.Oqu(e.facility.name)}}function B3(i,a){1&i&&(n.TgZ(0,"th",31),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_FACILITY_ID")," "))}function N3(i,a){if(1&i&&(n.TgZ(0,"td",34),n._uU(1),n.qZA()),2&i){const e=a.$implicit;n.xp6(1),n.Oqu(e.facilityId)}}function V3(i,a){1&i&&(n.TgZ(0,"th",31),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_TAGS")," "))}function j3(i,a){if(1&i&&(n.TgZ(0,"td",34),n._uU(1),n.ALo(2,"resourceTagsToString"),n.qZA()),2&i){const e=a.$implicit;n.xp6(1),n.hij(" ",n.lcZ(2,1,e.resourceTags)," ")}}function F3(i,a){1&i&&(n.TgZ(0,"th",31),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_DESCRIPTION")," "))}function z3(i,a){if(1&i&&(n.TgZ(0,"td",34),n._uU(1),n.qZA()),2&i){const e=a.$implicit;n.xp6(1),n.Oqu(e.description)}}function U3(i,a){1&i&&n._UZ(0,"tr",39)}const q3=function(i){return[i]};function Y3(i,a){if(1&i&&(n._UZ(0,"tr",40),n.ALo(1,"getResourceRoute"),n.ALo(2,"getResourceRoute")),2&i){const e=a.$implicit,t=n.oxw();n.ekj("cursor-pointer",!t.disableRouting)("disable-outline",t.disabledRouting),n.Q6J("perunWebAppsMiddleClickRouterLink",n.VKq(12,q3,t.disabledRouting?null:n.xi3(1,6,e,t.routingVo)))("routerLink",t.disabledRouting?null:n.xi3(2,9,e,t.routingVo))}}function W3(i,a){1&i&&(n.TgZ(0,"perun-web-apps-alert",41),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function G3(i,a){1&i&&(n.TgZ(0,"perun-web-apps-alert",41),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.NO_RESOURCES_WARNING"),"\n"))}const $3=function(i){return{all:i}};let Z3=(()=>{class i{constructor(e,t){this.guiAuthResolver=e,this.tableCheckbox=t,this.resources=[],this.selection=new Yi(!0,[]),this.disableRouting=!1,this.routingVo=!1,this.displayedColumns=["select","id","recent","indirectResourceAssigment","name","vo","voId","status","facility","facilityId","tags","description"],this.pageSizeOptions=$l,this.groupId=null,this.resourcesToDisableCheckbox=new Set,this.refreshTable=new n.vpe,this.allSelected=new n.vpe,this.removeAuth=!1,this.addAuth=!1,this.getDataForColumnFun=(r,d)=>i.getDataForColumn(r,d,this.recentIds),this.canBeSelected=r=>!this.disableSelect(r)}set matSort(e){this.sort=e}static getDataForColumn(e,t,r){switch(t){case"id":return e.id.toString();case"vo":return e.vo.name;case"name":return e.name;case"facility":return e.facility.name;case"description":return e.description;case"recent":return r&&r.includes(e.id)?"#".repeat(r.indexOf(e.id)):e.name;case"tags":{if(!e.resourceTags)return e[t];let u="";return e.resourceTags.forEach(function(c){u=u.concat(c.tagName)}),u}case"status":return e.status;case"uuid":return e.uuid;default:return e[t]}}ngOnInit(){this.disabledRouting=this.disableRouting}ngOnChanges(){this.guiAuthResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"id"!==e)),this.setDataSource(),this.setAuth()}exportAllData(e){Fa(ja(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumnFun),e)}exportDisplayedData(e){const t=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,r=t+this.dataSource.paginator.pageSize;Fa(ja(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(t,r),this.displayedColumns,this.getDataForColumnFun),e)}setDataSource(){this.dataSource||(this.dataSource=new Zo,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(e,t)=>Jl(e,t,this.displayedColumns,this.getDataForColumnFun,!0),this.dataSource.sortData=(e,t)=>Zl(e,t,this.getDataForColumnFun)),this.dataSource.filter=this.filterValue,this.dataSource.data=this.resources}isAllSelected(){const e=this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource,this.canBeSelected);return this.allSelected.emit(e),e}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!0,this.canBeSelected),this.setAuth()}setAuth(){const e=this.groupToResource?[this.groupToResource]:[];this.removeAuth=this.selection.selected.reduce((t,r)=>t&&this.guiAuthResolver.isAuthorized("removeGroupFromResources_Group_List_policy",e.concat([r])),!0),this.addAuth=this.selection.selected.reduce((t,r)=>t&&this.guiAuthResolver.isAuthorized("assignGroupToResources_Group_List_policy",e.concat([r])),!0)}itemSelectionToggle(e){this.selection.toggle(e),this.setAuth()}disableSelect(e){return this.resourcesToDisableCheckbox.has(e.id)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Cn),n.Y36(cA))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-resources-list"]],viewQuery:function(e,t){if(1&e&&(n.Gf(os,7),n.Gf(ps,7)),2&e){let r;n.iGM(r=n.CRH())&&(t.child=r.first),n.iGM(r=n.CRH())&&(t.matSort=r.first)}},inputs:{resources:"resources",selection:"selection",filterValue:"filterValue",disableRouting:"disableRouting",routingVo:"routingVo",displayedColumns:"displayedColumns",groupToResource:"groupToResource",pageSizeOptions:"pageSizeOptions",recentIds:"recentIds",groupId:"groupId",resourcesToDisableCheckbox:"resourcesToDisableCheckbox",tableId:"tableId"},outputs:{refreshTable:"refreshTable",allSelected:"allSelected"},features:[n.TTD],decls:42,vars:16,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","tableId","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size",4,"matCellDef"],["matColumnDef","recent"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","indirectResourceAssigment"],["matColumnDef","name"],["matColumnDef","vo"],["matColumnDef","voId"],["matColumnDef","status"],["matColumnDef","facility"],["matColumnDef","facilityId"],["matColumnDef","tags"],["matColumnDef","description"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change",4,"ngIf"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],[3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-header-cell",""],["mat-cell",""],[3,"recentIds","id"],["matTooltipPosition","above",3,"matTooltip",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip"],[3,"theme","resourceId","groupId","failureCause","status","mouseenter","mouseleave","statusChange"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportDisplayedData",function(d){return t.exportDisplayedData(d)})("exportAllData",function(d){return t.exportAllData(d)}),n.TgZ(2,"table",2),n.YNc(3,A3,3,0,"ng-container",3),n.ALo(4,"isAllSelected"),n.ynx(5,4),n.YNc(6,y3,3,3,"th",5),n.YNc(7,w3,2,1,"td",6),n.BQk(),n.ynx(8,7),n.YNc(9,M3,1,0,"th",8),n.YNc(10,C3,2,2,"td",9),n.BQk(),n.ynx(11,10),n.YNc(12,v3,1,0,"th",8),n.YNc(13,x3,2,1,"td",9),n.BQk(),n.ynx(14,11),n.YNc(15,S3,3,3,"th",5),n.YNc(16,E3,2,2,"td",9),n.BQk(),n.ynx(17,12),n.YNc(18,D3,3,3,"th",5),n.YNc(19,L3,2,1,"td",9),n.BQk(),n.ynx(20,13),n.YNc(21,H3,3,3,"th",5),n.YNc(22,R3,2,1,"td",9),n.BQk(),n.ynx(23,14),n.YNc(24,P3,3,3,"th",5),n.YNc(25,k3,2,5,"td",9),n.BQk(),n.ynx(26,15),n.YNc(27,O3,3,3,"th",5),n.YNc(28,I3,2,1,"td",9),n.BQk(),n.ynx(29,16),n.YNc(30,B3,3,3,"th",5),n.YNc(31,N3,2,1,"td",9),n.BQk(),n.ynx(32,17),n.YNc(33,V3,3,3,"th",5),n.YNc(34,j3,3,3,"td",9),n.BQk(),n.ynx(35,18),n.YNc(36,F3,3,3,"th",5),n.YNc(37,z3,2,1,"td",9),n.BQk(),n.YNc(38,U3,1,0,"tr",19),n.YNc(39,Y3,3,14,"tr",20),n.qZA()()(),n.YNc(40,W3,3,3,"perun-web-apps-alert",21),n.YNc(41,G3,3,3,"perun-web-apps-alert",21)),2&e&&(n.Q6J("hidden",0===t.dataSource.filteredData.length||0===t.resources.length),n.xp6(1),n.Q6J("dataLength",t.dataSource.filteredData.length)("tableId",t.tableId)("pageSizeOptions",t.pageSizeOptions),n.xp6(1),n.Q6J("dataSource",t.dataSource),n.xp6(1),n.Q6J("ngIf",n.VKq(14,$3,n.Dn7(4,10,t.dataSource,t.selection.selected.length,t.canBeSelected))),n.xp6(35),n.Q6J("matHeaderRowDef",t.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",t.displayedColumns),n.xp6(1),n.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.resources.length),n.xp6(1),n.Q6J("ngIf",0===t.resources.length))},dependencies:[T.O5,ic,io,cs,ro,ds,ls,ao,us,hs,so,oo,oa,ps,Ag,yi,zn,yr,os,nL,s3,u3,DA,Ke,h3,p3,pT,yg,lL],styles:["table[_ngcontent-%COMP%]{width:100%!important}.mat-cell[_ngcontent-%COMP%]{padding:8px 8px 8px 0}.mat-column-select[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:50px!important}.mat-column-id[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:60px!important}.filter-input[_ngcontent-%COMP%]{width:300px!important}.disable-outline[_ngcontent-%COMP%]{outline:none!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:.25rem!important}"]}),i})(),J3=0;const fT=new n.OlP("CdkAccordion");let Q3=(()=>{class i{constructor(){this._stateChanges=new Le.x,this._openCloseAllActions=new Le.x,this.id="cdk-accordion-"+J3++,this._multi=!1}get multi(){return this._multi}set multi(e){this._multi=Ge(e)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(e){this._stateChanges.next(e)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[n._Bn([{provide:fT,useExisting:i}]),n.TTD]}),i})(),X3=0,K3=(()=>{class i{constructor(e,t,r){this.accordion=e,this._changeDetectorRef=t,this._expansionDispatcher=r,this._openCloseAllSubscription=Nt.w0.EMPTY,this.closed=new n.vpe,this.opened=new n.vpe,this.destroyed=new n.vpe,this.expandedChange=new n.vpe,this.id="cdk-accordion-child-"+X3++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=r.listen((d,u)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===u&&this.id!==d&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(e){e=Ge(e),this._expanded!==e&&(this._expanded=e,this.expandedChange.emit(e),e?(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(e){this._disabled=Ge(e)}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(e=>{this.disabled||(this.expanded=e)})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(fT,12),n.Y36(n.sBO),n.Y36(n_))},i.\u0275dir=n.lG2({type:i,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[n._Bn([{provide:fT,useValue:void 0}])]}),i})(),eV=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})();const tV=["body"];function nV(i,a){}const iV=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],rV=["mat-expansion-panel-header","*","mat-action-row"];function aV(i,a){if(1&i&&n._UZ(0,"span",2),2&i){const e=n.oxw();n.Q6J("@indicatorRotate",e._getExpandedState())}}const sV=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],oV=["mat-panel-title","mat-panel-description","*"],mT=new n.OlP("MAT_ACCORDION"),cL="225ms cubic-bezier(0.4,0.0,0.2,1)",dL={indicatorRotate:En("indicatorRotate",[ut("collapsed, void",je({transform:"rotate(0deg)"})),ut("expanded",je({transform:"rotate(180deg)"})),Ot("expanded <=> collapsed, void => collapsed",Rt(cL))]),bodyExpansion:En("bodyExpansion",[ut("collapsed, void",je({height:"0px",visibility:"hidden"})),ut("expanded",je({height:"*",visibility:"visible"})),Ot("expanded <=> collapsed, void => collapsed",Rt(cL))])},uL=new n.OlP("MAT_EXPANSION_PANEL");let wg=(()=>{class i{constructor(e,t){this._template=e,this._expansionPanel=t}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.Rgc),n.Y36(uL,8))},i.\u0275dir=n.lG2({type:i,selectors:[["ng-template","matExpansionPanelContent",""]]}),i})(),lV=0;const hL=new n.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let Mg=(()=>{class i extends K3{constructor(e,t,r,d,u,c,o){super(e,t,r),this._viewContainerRef=d,this._animationMode=c,this._hideToggle=!1,this.afterExpand=new n.vpe,this.afterCollapse=new n.vpe,this._inputChanges=new Le.x,this._headerId="mat-expansion-panel-header-"+lV++,this._bodyAnimationDone=new Le.x,this.accordion=e,this._document=u,this._bodyAnimationDone.pipe(Uc((s,l)=>s.fromState===l.fromState&&s.toState===l.toState)).subscribe(s=>{"void"!==s.fromState&&("expanded"===s.toState?this.afterExpand.emit():"collapsed"===s.toState&&this.afterCollapse.emit())}),o&&(this.hideToggle=o.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(e){this._hideToggle=Ge(e)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(e){this._togglePosition=e}_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._lazyContent._expansionPanel===this&&this.opened.pipe(vn(null),(0,bt.h)(()=>this.expanded&&!this._portal),(0,ht.q)(1)).subscribe(()=>{this._portal=new Oa(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(e){this._inputChanges.next(e)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const e=this._document.activeElement,t=this._body.nativeElement;return e===t||t.contains(e)}return!1}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(mT,12),n.Y36(n.sBO),n.Y36(n_),n.Y36(n.s_b),n.Y36(T.K0),n.Y36(n.QbO,8),n.Y36(hL,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-expansion-panel"]],contentQueries:function(e,t,r){if(1&e&&n.Suo(r,wg,5),2&e){let d;n.iGM(d=n.CRH())&&(t._lazyContent=d.first)}},viewQuery:function(e,t){if(1&e&&n.Gf(tV,5),2&e){let r;n.iGM(r=n.CRH())&&(t._body=r.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(e,t){2&e&&n.ekj("mat-expanded",t.expanded)("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-expansion-panel-spacing",t._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._Bn([{provide:mT,useValue:void 0},{provide:uL,useExisting:i}]),n.qOj,n.TTD],ngContentSelectors:rV,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(e,t){1&e&&(n.F$t(iV),n.Hsn(0),n.TgZ(1,"div",0,1),n.NdJ("@bodyExpansion.done",function(d){return t._bodyAnimationDone.next(d)}),n.TgZ(3,"div",2),n.Hsn(4,1),n.YNc(5,nV,0,0,"ng-template",3),n.qZA(),n.Hsn(6,2),n.qZA()),2&e&&(n.xp6(1),n.Q6J("@bodyExpansion",t._getExpandedState())("id",t.id),n.uIk("aria-labelledby",t._headerId),n.xp6(4),n.Q6J("cdkPortalOutlet",t._portal))},dependencies:[id],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-content[style*="visibility: hidden"] *{visibility:hidden !important}.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 .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[dL.bodyExpansion]},changeDetection:0}),i})();class cV{}const dV=Vs(cV);let Cg=(()=>{class i extends dV{constructor(e,t,r,d,u,c,o){super(),this.panel=e,this._element=t,this._focusMonitor=r,this._changeDetectorRef=d,this._animationMode=c,this._parentChangeSubscription=Nt.w0.EMPTY;const s=e.accordion?e.accordion._stateChanges.pipe((0,bt.h)(l=>!(!l.hideToggle&&!l.togglePosition))):Xi.E;this.tabIndex=parseInt(o||"")||0,this._parentChangeSubscription=(0,kn.T)(e.opened,e.closed,s,e._inputChanges.pipe((0,bt.h)(l=>!!(l.hideToggle||l.disabled||l.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe((0,bt.h)(()=>e._containsFocus())).subscribe(()=>r.focusVia(t,"program")),u&&(this.expandedHeight=u.expandedHeight,this.collapsedHeight=u.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 e=this._isExpanded();return e&&this.expandedHeight?this.expandedHeight:!e&&this.collapsedHeight?this.collapsedHeight:null}_keydown(e){switch(e.keyCode){case 32:case 13:Di(e)||(e.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e))}}focus(e,t){e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(e=>{e&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Mg,1),n.Y36(n.SBq),n.Y36($r),n.Y36(n.sBO),n.Y36(hL,8),n.Y36(n.QbO,8),n.$8M("tabindex"))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(e,t){1&e&&n.NdJ("click",function(){return t._toggle()})("keydown",function(d){return t._keydown(d)}),2&e&&(n.uIk("id",t.panel._headerId)("tabindex",t.tabIndex)("aria-controls",t._getPanelId())("aria-expanded",t._isExpanded())("aria-disabled",t.panel.disabled),n.Udp("height",t._getHeaderHeight()),n.ekj("mat-expanded",t._isExpanded())("mat-expansion-toggle-indicator-after","after"===t._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===t._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===t._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[n.qOj],ngContentSelectors:oV,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(e,t){1&e&&(n.F$t(sV),n.TgZ(0,"span",0),n.Hsn(1),n.Hsn(2,1),n.Hsn(3,2),n.qZA(),n.YNc(4,aV,1,1,"span",1)),2&e&&(n.xp6(4),n.Q6J("ngIf",t._showToggle()))},dependencies:[T.O5],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;align-items:center}[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}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[dL.indicatorRotate]},changeDetection:0}),i})(),NA=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=n.lG2({type:i,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),i})(),VA=(()=>{class i extends Q3{constructor(){super(...arguments),this._ownHeaders=new n.n_E,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(e){this._hideToggle=Ge(e)}ngAfterContentInit(){this._headers.changes.pipe(vn(this._headers)).subscribe(e=>{this._ownHeaders.reset(e.filter(t=>t.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new m0(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(e){this._keyManager.onKeydown(e)}_handleHeaderFocus(e){this._keyManager.updateActiveItem(e)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["mat-accordion"]],contentQueries:function(e,t,r){if(1&e&&n.Suo(r,Cg,5),2&e){let d;n.iGM(d=n.CRH())&&(t._headers=d)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(e,t){2&e&&n.ekj("mat-accordion-multi",t.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[n._Bn([{provide:mT,useExisting:i}]),n.qOj]}),i})(),gT=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[T.ez,wt,eV,Ws]}),i})();function uV(i,a){1&i&&n._UZ(0,"mat-spinner",8)}const hV=function(){return["name","description"]};function pV(i,a){if(1&i&&n._UZ(0,"perun-web-apps-resources-list",9),2&i){const e=n.oxw(3);n.Q6J("resources",e.resources)("displayedColumns",n.DdM(3,hV))("disableRouting",!0)}}function fV(i,a){if(1&i&&(n.YNc(0,uV,1,0,"mat-spinner",6),n.YNc(1,pV,1,4,"perun-web-apps-resources-list",7)),2&i){const e=n.oxw(2);n.Q6J("ngIf",e.loading),n.xp6(1),n.Q6J("ngIf",!e.loading)}}function mV(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"mat-expansion-panel",4),n.NdJ("opened",function(){const d=n.CHM(e).$implicit,u=n.oxw();return n.KtG(u.getMemberData(d))}),n.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),n._uU(3),n.qZA()(),n.YNc(4,fV,2,2,"ng-template",5),n.qZA()}if(2&i){const e=a.$implicit;n.xp6(3),n.hij(" ",e.name," ")}}let gV=(()=>{class i{constructor(e,t,r,d){this.usersManagerService=e,this.membersManagerService=t,this.resourcesManagerService=r,this.storage=d,this.resources=[],this.filteredVos=[]}ngOnInit(){this.userId=this.storage.getPerunPrincipal().userId,this.usersManagerService.getVosWhereUserIsMember(this.userId).subscribe(e=>{this.vos=e,this.filteredVos=e})}getMemberData(e){this.loading=!0,this.membersManagerService.getMemberByUser(e.id,this.userId).subscribe(t=>{this.resourcesManagerService.getAssignedRichResourcesWithMember(t.id).subscribe(r=>{this.resources=r,this.loading=!1})})}applyFilter(e){this.filteredVos=this.vos.filter(t=>t.name.toLowerCase().includes(e.toLowerCase()))}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(li),n.Y36(Er),n.Y36(ia),n.Y36(Ut))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-services-page"]],decls:10,vars:11,consts:[[1,"page-title","mt-2"],[1,"user-theme"],[3,"placeholder","filter"],[3,"opened",4,"ngFor","ngForOf"],[3,"opened"],["matExpansionPanelContent",""],["class","ml-auto mr-auto",4,"ngIf"],[3,"resources","displayedColumns","disableRouting",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"resources","displayedColumns","disableRouting"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA(),n.TgZ(4,"div",1)(5,"perun-web-apps-immediate-filter",2),n.NdJ("filter",function(d){return t.applyFilter(d)}),n.ALo(6,"translate"),n.ALo(7,"customTranslate"),n.qZA(),n.TgZ(8,"mat-accordion"),n.YNc(9,mV,5,1,"mat-expansion-panel",3),n.qZA()()),2&e&&(n.xp6(1),n.Oqu(n.lcZ(2,3,n.lcZ(3,5,"SERVICES.TITLE"))),n.xp6(4),n.Q6J("placeholder",n.lcZ(6,7,n.lcZ(7,9,"SERVICES.FILTER"))),n.xp6(4),n.Q6J("ngForOf",t.filteredVos))},dependencies:[T.sg,T.O5,cf,Z3,VA,Mg,Cg,NA,wg,Hn,Ke,Xt]}),i})();function _V(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"perun-web-apps-immediate-filter",5),n.NdJ("filter",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.applyFilter(r))}),n.qZA()}2&i&&n.Q6J("placeholder","ORGANIZATIONS.FILTER")}function bV(i,a){1&i&&n._UZ(0,"mat-spinner",6)}const AV=function(){return["name","expirationAttribute","extend"]};function yV(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div")(1,"perun-web-apps-membership-list",11),n.NdJ("extendMembership",function(r){n.CHM(e);const d=n.oxw(2);return n.KtG(d.extendMembership(r))}),n.qZA()()}if(2&i){const e=n.oxw(2);n.xp6(1),n.Q6J("members",e.userMemberships)("selection",e.selection)("filterValue",e.filterValue)("displayedColumns",n.DdM(4,AV))}}function wV(i,a){1&i&&(n.TgZ(0,"perun-web-apps-alert",12),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,n.lcZ(3,3,"ORGANIZATIONS.NO_VOS_ALERT"))))}function MV(i,a){if(1&i&&(n.TgZ(0,"div",7)(1,"h1",8),n._uU(2),n.ALo(3,"translate"),n.ALo(4,"customTranslate"),n.qZA(),n.YNc(5,yV,2,5,"div",9),n.YNc(6,wV,4,5,"perun-web-apps-alert",10),n.qZA()),2&i){const e=n.oxw();n.xp6(2),n.Oqu(n.lcZ(3,3,n.lcZ(4,5,"ORGANIZATIONS.IS_MEMBER"))),n.xp6(3),n.Q6J("ngIf",0!==e.userMemberships.length),n.xp6(1),n.Q6J("ngIf",0===e.userMemberships.length)}}function CV(i,a){1&i&&(n.TgZ(0,"perun-web-apps-alert",12),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,n.lcZ(3,3,"ORGANIZATIONS.NO_VOS_ALERT"))))}const vV=function(){return["name"]};function TV(i,a){if(1&i&&n._UZ(0,"perun-web-apps-membership-list",14),2&i){const e=n.oxw(2);n.Q6J("members",e.adminMemberships)("filterValue",e.filterValue)("displayedColumns",n.DdM(3,vV))}}function xV(i,a){if(1&i&&(n.TgZ(0,"div",7)(1,"h1",8),n._uU(2),n.ALo(3,"translate"),n.ALo(4,"customTranslate"),n.qZA(),n.YNc(5,CV,4,5,"perun-web-apps-alert",10),n.YNc(6,TV,1,4,"perun-web-apps-membership-list",13),n.qZA()),2&i){const e=n.oxw();n.xp6(2),n.Oqu(n.lcZ(3,3,n.lcZ(4,5,"ORGANIZATIONS.IS_ADMIN"))),n.xp6(3),n.Q6J("ngIf",!e.adminMemberships.length),n.xp6(1),n.Q6J("ngIf",e.adminMemberships.length)}}let SV=(()=>{class i{constructor(e,t,r){this.usersService=e,this.store=t,this.membersService=r,this.filterValue="",this.selection=new Yi(!1,[]),this.userMemberships=[],this.adminMemberships=[],this.vosCount=0}ngOnInit(){this.principal=this.store.getPerunPrincipal(),this.userId=this.principal.user.id,this.refreshTable()}refreshTable(){this.loading=!0,this.usersService.getVosWhereUserIsMember(this.userId).subscribe(e=>{this.usersService.getVosWhereUserIsAdmin(this.userId).subscribe(t=>{this.vosCount=e.length+t.length,this.fillMemberships(e,this.userMemberships),this.fillMemberships(t,this.adminMemberships)})})}applyFilter(e){this.filterValue=e}isEverythingLoaded(){this.vosCount--,this.loading=0!==this.vosCount}extendMembership(e){const t=this.store.getProperty("registrar_base_url");window.location.href=`${t}?vo=${e.entity.shortName}`}fillMemberships(e,t){this.membersService.getMembersByUser(this.userId).subscribe(r=>{e.forEach(d=>{const u=r.find(c=>c.voId===d.id);u?this.membersService.getRichMemberWithAttributes(u.id).subscribe(c=>{const o=c.memberAttributes.find(s=>"membershipExpiration"===s.friendlyName);t.push({entity:d,expirationAttribute:o}),this.isEverythingLoaded()}):(t.push({entity:d,expirationAttribute:null}),this.isEverythingLoaded())})})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(li),n.Y36(Ut),n.Y36(Er))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-vos-page"]],decls:9,vars:9,consts:[[1,"page-title","mt-2"],[1,"user-theme"],[3,"placeholder","filter",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],["class","mt-5",4,"ngIf"],[3,"placeholder","filter"],[1,"mr-auto","ml-auto"],[1,"mt-5"],[1,"page-subtitle"],[4,"ngIf"],["alert_type","warn",4,"ngIf"],[3,"members","selection","filterValue","displayedColumns","extendMembership"],["alert_type","warn"],[3,"members","filterValue","displayedColumns",4,"ngIf"],[3,"members","filterValue","displayedColumns"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA(),n.TgZ(4,"div",1),n.YNc(5,_V,1,1,"perun-web-apps-immediate-filter",2),n.YNc(6,bV,1,0,"mat-spinner",3),n.YNc(7,MV,7,7,"div",4),n.YNc(8,xV,7,7,"div",4),n.qZA()),2&e&&(n.xp6(1),n.Oqu(n.lcZ(2,5,n.lcZ(3,7,"ORGANIZATIONS.TITLE"))),n.xp6(4),n.Q6J("ngIf",!t.loading),n.xp6(1),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading))},dependencies:[T.O5,cf,yi,Hn,oL,Ke,Xt]}),i})(),EV=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-settings-page"]],decls:2,vars:0,consts:[[1,"user-theme"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0),n._UZ(1,"router-outlet"),n.qZA())},dependencies:[Wr]}),i})(),DV=(()=>{class i{constructor(e,t){this.dialogRef=e,this.data=t,this.password=""}ngOnInit(){this.password=this.data.password}onClose(){this.dialogRef.close()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ln),n.Y36(ni))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-show-generated-password-dialog"]],decls:20,vars:22,consts:[["mat-dialog-title","",1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"user-theme"],["disabled","",1,"center-text",3,"value"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"cdkCopyToClipboard"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA(),n.TgZ(4,"div",1)(5,"p"),n._uU(6),n.ALo(7,"translate"),n.ALo(8,"customTranslate"),n.qZA(),n.TgZ(9,"label"),n._UZ(10,"input",2),n.qZA()(),n.TgZ(11,"div",3)(12,"button",4),n.NdJ("click",function(){return t.onClose()}),n._uU(13),n.ALo(14,"translate"),n.ALo(15,"customTranslate"),n.qZA(),n.TgZ(16,"button",5),n._uU(17),n.ALo(18,"translate"),n.ALo(19,"customTranslate"),n.qZA()()),2&e&&(n.xp6(1),n.hij(" ",n.lcZ(2,6,n.lcZ(3,8,"DIALOGS.SHOW_PASSWORD.TITLE")),"\n"),n.xp6(5),n.Oqu(n.lcZ(7,10,n.lcZ(8,12,"DIALOGS.SHOW_PASSWORD.LABEL"))),n.xp6(4),n.Q6J("value",t.password),n.xp6(3),n.hij(" ",n.lcZ(14,14,n.lcZ(15,16,"DIALOGS.SHOW_PASSWORD.CLOSE"))," "),n.xp6(3),n.Q6J("cdkCopyToClipboard",t.password),n.xp6(1),n.hij(" ",n.lcZ(18,18,n.lcZ(19,20,"DIALOGS.SHOW_PASSWORD.COPY"))," "))},dependencies:[Ht,Xn,ii,Un,Jv,Ke,Xt],styles:[".center-text[_ngcontent-%COMP%]{text-align:center}"]}),i})();function LV(i,a){1&i&&n._UZ(0,"mat-spinner",7)}function HV(i,a){1&i&&n._UZ(0,"th",16)}function RV(i,a){if(1&i&&(n.TgZ(0,"td",17),n._uU(1),n.qZA()),2&i){const e=a.$implicit;n.xp6(1),n.Oqu(e)}}function PV(i,a){1&i&&n._UZ(0,"tr",18)}function kV(i,a){1&i&&n._UZ(0,"tr",19)}function OV(i,a){if(1&i&&(n.TgZ(0,"div",8)(1,"p"),n._uU(2),n.ALo(3,"translate"),n.ALo(4,"customTranslate"),n.qZA(),n.TgZ(5,"div",9),n._uU(6),n.ALo(7,"translate"),n.ALo(8,"customTranslate"),n.qZA(),n.TgZ(9,"table",10),n.ynx(10,11),n.YNc(11,HV,1,0,"th",12),n.YNc(12,RV,2,1,"td",13),n.BQk(),n.YNc(13,PV,1,0,"tr",14),n.YNc(14,kV,1,0,"tr",15),n.qZA()()),2&i){const e=n.oxw();n.xp6(2),n.hij(" ",n.lcZ(3,5,n.lcZ(4,7,"DIALOGS.REMOVE_ALT_PASSWORD.DESCRIPTION"))," "),n.xp6(4),n.hij(" ",n.lcZ(7,9,n.lcZ(8,11,"DIALOGS.REMOVE_ALT_PASSWORD.ASK"))," "),n.xp6(3),n.Q6J("dataSource",e.dataSource),n.xp6(4),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns)}}let IV=(()=>{class i{constructor(e,t,r){this.dialogRef=e,this.data=t,this.usersManagerService=r,this.displayedColumns=["description"]}ngOnInit(){this.dataSource=new Zo(this.data.description)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.usersManagerService.deleteAlternativePassword(this.data.userId,"einfra",this.data.passwordId).subscribe({next:()=>{this.loading=!1,this.dialogRef.close(!0)},error:()=>this.loading=!1})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ln),n.Y36(ni),n.Y36(li))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-remove-alt-password-dialog"]],decls:16,vars:17,consts:[["mat-dialog-title",""],[1,"user-theme"],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","","class","user-theme",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"user-theme"],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","description"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-header-row","","class","font-weight-bolder",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA(),n.TgZ(4,"div",1),n.YNc(5,LV,1,0,"mat-spinner",2),n.qZA(),n.YNc(6,OV,15,13,"div",3),n.TgZ(7,"div",4)(8,"button",5),n.NdJ("click",function(){return t.onCancel()}),n._uU(9),n.ALo(10,"translate"),n.ALo(11,"customTranslate"),n.qZA(),n.TgZ(12,"button",6),n.NdJ("click",function(){return t.onSubmit()}),n._uU(13),n.ALo(14,"translate"),n.ALo(15,"customTranslate"),n.qZA()()),2&e&&(n.xp6(1),n.Oqu(n.lcZ(2,5,n.lcZ(3,7,"DIALOGS.REMOVE_ALT_PASSWORD.TITLE"))),n.xp6(4),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading),n.xp6(3),n.hij(" ",n.lcZ(10,9,n.lcZ(11,11,"DIALOGS.REMOVE_ALT_PASSWORD.CANCEL"))," "),n.xp6(4),n.hij(" ",n.lcZ(14,13,n.lcZ(15,15,"DIALOGS.REMOVE_ALT_PASSWORD.REMOVE"))," "))},dependencies:[T.O5,Ht,Xn,ii,Un,io,cs,ro,ds,ls,ao,us,hs,so,oo,Hn,Ke,Xt]}),i})();function BV(i,a){1&i&&n._UZ(0,"th",12)}const NV=function(i){return{name:i}};function VV(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"td",13)(1,"mat-checkbox",14),n.NdJ("change",function(r){const u=n.CHM(e).$implicit,c=n.oxw();return n.KtG(r?c.selection.toggle(u):null)})("click",function(r){return r.stopPropagation()}),n.ALo(2,"translate"),n.ALo(3,"checkboxLabel"),n.qZA()()}if(2&i){const e=a.$implicit,t=n.oxw();n.xp6(1),n.Q6J("aria-label",n.xi3(2,2,n.lcZ(3,5,t.selection.isSelected(e)),n.VKq(7,NV,e)))("checked",t.selection.isSelected(e))}}function jV(i,a){if(1&i&&(n.TgZ(0,"th",15),n._uU(1),n.qZA()),2&i){const e=n.oxw();n.xp6(1),n.Oqu(e.headerColumnText)}}function FV(i,a){if(1&i&&(n.TgZ(0,"td",16),n._uU(1),n.qZA()),2&i){const e=a.$implicit;n.xp6(1),n.Oqu(e)}}function zV(i,a){1&i&&n._UZ(0,"tr",17)}function UV(i,a){1&i&&n._UZ(0,"tr",18)}function qV(i,a){if(1&i&&(n.TgZ(0,"perun-web-apps-alert",19),n._uU(1),n.qZA()),2&i){const e=n.oxw();n.xp6(1),n.hij(" ",e.alertText,"\n")}}let pL=(()=>{class i{constructor(){this.values=[],this.selection=new Yi(!1,[]),this.alertText="",this.headerColumnText="",this.displayedColumns=["select","value"]}static getExportDataForColumn(e){return e}ngOnChanges(){this.values=this.values?this.values:[],this.dataSource=new Zo(this.values),this.setDataSource()}exportAllData(e){Fa(ja(this.dataSource.filteredData,this.displayedColumns,i.getExportDataForColumn),e)}exportDisplayedData(e){const t=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,r=t+this.dataSource.paginator.pageSize;Fa(ja(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(t,r),this.displayedColumns,i.getExportDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}ngAfterViewInit(){this.setDataSource()}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-string-list"]],viewQuery:function(e,t){if(1&e&&n.Gf(os,7),2&e){let r;n.iGM(r=n.CRH())&&(t.child=r.first)}},inputs:{values:"values",selection:"selection",alertText:"alertText",headerColumnText:"headerColumnText"},features:[n.TTD],decls:12,vars:6,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","exportDisplayedData","exportAllData"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","value"],["class","pl-3","mat-header-cell","",4,"matHeaderCellDef"],["class","truncate pl-3","mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","",1,"pl-3"],["mat-cell","",1,"truncate","pl-3"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportDisplayedData",function(d){return t.exportDisplayedData(d)})("exportAllData",function(d){return t.exportAllData(d)}),n.TgZ(2,"table",2),n.ynx(3,3),n.YNc(4,BV,1,0,"th",4),n.YNc(5,VV,4,9,"td",5),n.BQk(),n.ynx(6,6),n.YNc(7,jV,2,1,"th",7),n.YNc(8,FV,2,1,"td",8),n.BQk(),n.YNc(9,zV,1,0,"tr",9),n.YNc(10,UV,1,0,"tr",10),n.qZA()()(),n.YNc(11,qV,2,1,"perun-web-apps-alert",11)),2&e&&(n.Q6J("hidden",!t.values.length),n.xp6(1),n.Q6J("dataLength",t.dataSource.filteredData.length),n.xp6(1),n.Q6J("dataSource",t.dataSource),n.xp6(7),n.Q6J("matHeaderRowDef",t.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",t.displayedColumns),n.xp6(1),n.Q6J("ngIf",0===t.values.length))},dependencies:[T.O5,yi,io,cs,ro,ds,ls,ao,us,hs,so,oo,ic,os,Ke,yg],styles:[".static-column-size[_ngcontent-%COMP%]{width:20px!important}.truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;max-width:100px}"]}),i})();function YV(i,a){if(1&i&&n._UZ(0,"perun-web-apps-string-list",10),2&i){const e=n.oxw();n.Q6J("values",e.displayedValues)("selection",e.selection)("alertText",e.alertText)("headerColumnText",e.headerColumnText)}}function WV(i,a){1&i&&n._UZ(0,"mat-spinner",11)}let GV=(()=>{class i{constructor(e,t,r,d,u){this.store=e,this.attributesManagerService=t,this.dialog=r,this.translateService=d,this.usersManagerService=u,this.altPasswordCtrl=new Js(null,[bi.required]),this.userId=this.store.getPerunPrincipal().userId,this.passwordDescriptions=new Set,this.displayedValues=[],this.selection=new Yi(!1,[]),d.get("ALT_PASSWORDS.REMOVE_DIALOG_DESCRIPTION").subscribe(c=>this.removeDialogDescription=c),d.get("ALT_PASSWORDS.REMOVE_DIALOG_TITLE").subscribe(c=>this.removeDialogTitle=c),d.get("ALERTS.NO_ALT_PASSWORDS").subscribe(c=>this.alertText=c),d.get("ALT_PASSWORDS.HEADER_COLUMN").subscribe(c=>this.headerColumnText=c)}ngOnInit(){this.getAltPasswords()}createPassword(){const e=this.generatePassword();this.usersManagerService.createAlternativePassword({user:this.userId,description:this.altPasswordCtrl.value,loginNamespace:"einfra",password:e}).subscribe(()=>{const t=ln();t.width="600px",t.data={password:e},this.dialog.open(DV,t),this.getAltPasswords(),this.altPasswordCtrl.setValue("")})}generatePassword(){const t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%&/=?_.,:;\\-";let r="",d=0;const u=t.length;for(;d<16;++d)r+=t.charAt(Math.random()*u);return r.match("((?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])|(?=.*[a-z])(?=.*[A-Z])(?=.*[!@#$%&/=?_.,:;\\-])|(?=.*[a-z])(?=.*[0-9])(?=.*[!@#$%&/=?_.,:;\\-])|(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#$%&/=?_.,:;\\-])).{3,}")||this.generatePassword(),r}alreadyContainsValue(e){return this.passwordDescriptions.has(e)}removeAltPasswords(){const e=ln();e.width="600px",e.data={description:this.selection.selected,passwordId:this.altPasswordsAttributeValue.get(this.selection.selected[0]),userId:this.userId},this.dialog.open(IV,e).afterClosed().subscribe(r=>{r&&(this.getAltPasswords(),this.selection.clear())})}getAltPasswords(){this.loading=!0,this.attributesManagerService.getUserAttributeByName(this.userId,"urn:perun:user:attribute-def:def:altPasswords:einfra").subscribe(e=>{if(e.value){this.altPasswordsAttributeValue=new Map(Object.entries(e.value));const t=this.altPasswordsAttributeValue.keys();this.passwordDescriptions=new Set(t),this.displayedValues=Array.from(this.passwordDescriptions.values())}else this.displayedValues=[];this.loading=!1})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ut),n.Y36(jn),n.Y36(on),n.Y36(tn),n.Y36(li))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-settings-alternative-passwords"]],decls:28,vars:35,consts:[[1,"ml-3"],[1,"page-title"],[1,"input-width"],["matInput","","type","text",3,"placeholder","formControl"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],["alert_type","info"],[1,"page-subtitle"],["mat-flat-button","","color","warn",3,"disabled","click"],[3,"values","selection","alertText","headerColumnText",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"values","selection","alertText","headerColumnText"],[1,"ml-auto","mr-auto"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"h1",1),n._uU(2),n.ALo(3,"translate"),n.ALo(4,"customTranslate"),n.qZA(),n.TgZ(5,"mat-form-field",2)(6,"label",2),n._UZ(7,"input",3),n.ALo(8,"translate"),n.ALo(9,"customTranslate"),n.qZA()(),n.TgZ(10,"button",4),n.NdJ("click",function(){return t.createPassword()}),n._uU(11),n.ALo(12,"translate"),n.ALo(13,"customTranslate"),n.qZA(),n.TgZ(14,"perun-web-apps-alert",5),n._uU(15),n.ALo(16,"translate"),n.ALo(17,"customTranslate"),n.qZA(),n.TgZ(18,"h1",6),n._uU(19),n.ALo(20,"translate"),n.ALo(21,"customTranslate"),n.qZA(),n.TgZ(22,"button",7),n.NdJ("click",function(){return t.removeAltPasswords()}),n._uU(23),n.ALo(24,"translate"),n.ALo(25,"customTranslate"),n.qZA(),n.YNc(26,YV,1,4,"perun-web-apps-string-list",8),n.YNc(27,WV,1,0,"mat-spinner",9),n.qZA()),2&e&&(n.xp6(2),n.Oqu(n.lcZ(3,11,n.lcZ(4,13,"ALT_PASSWORDS.TITLE_GENERATE"))),n.xp6(5),n.s9C("placeholder",n.lcZ(8,15,n.lcZ(9,17,"ALT_PASSWORDS.INPUT_PLACEHOLDER"))),n.Q6J("formControl",t.altPasswordCtrl),n.xp6(3),n.Q6J("disabled",!t.altPasswordCtrl.valid||t.alreadyContainsValue(t.altPasswordCtrl.value)),n.xp6(1),n.hij(" ",n.lcZ(12,19,n.lcZ(13,21,"ALT_PASSWORDS.GENERATE"))," "),n.xp6(4),n.Oqu(n.lcZ(16,23,n.lcZ(17,25,"ALT_PASSWORDS.EXAMPLE_DESCRIPTIONS"))),n.xp6(4),n.Oqu(n.lcZ(20,27,n.lcZ(21,29,"ALT_PASSWORDS.TITLE_PASSWORDS"))),n.xp6(3),n.Q6J("disabled",t.selection.isEmpty()),n.xp6(1),n.hij(" ",n.lcZ(24,31,n.lcZ(25,33,"ALT_PASSWORDS.REMOVE"))," "),n.xp6(3),n.Q6J("ngIf",!t.loading),n.xp6(1),n.Q6J("ngIf",t.loading))},dependencies:[T.O5,Ht,yi,di,ji,_i,Ai,sr,Hn,pL,Ke,Xt]}),i})();function $V(i,a){if(1&i&&(n.TgZ(0,"mat-list-item",1)(1,"mat-icon"),n._uU(2),n.qZA(),n.TgZ(3,"p",2),n._uU(4),n.ALo(5,"translate"),n.ALo(6,"customTranslate"),n.qZA()()),2&i){const e=a.$implicit;n.Q6J("routerLink",e.url),n.xp6(2),n.Oqu(e.icon),n.xp6(2),n.Oqu(n.lcZ(5,3,n.lcZ(6,5,e.label)))}}let ZV=(()=>{class i{constructor(e){this.storeService=e,this.items=[]}ngOnInit(){this.initItems();const e=this.storeService.getProperty("displayed_tabs");this.items=this.items.filter(t=>e.includes(t.tabName))}initItems(){this.items=[{icon:"lock_open",url:"/profile/settings/altPasswords",label:"SETTINGS.ALTERNATIVE_PASSWORDS",tabName:"alt_passwords"},{icon:"admin_panel_settings",url:"/profile/settings/auth",label:"SETTINGS.AUTHENTICATION",tabName:"auth"},{icon:"storage",url:"/profile/settings/dataQuotas",label:"SETTINGS.DATA_QUOTAS",tabName:"data_quotas"},{icon:"face",url:"/profile/settings/localAccount",label:"SETTINGS.LOCAL_ACCOUNT",tabName:"local_acc"},{icon:"unsubscribe",url:"/profile/settings/mailingLists",label:"SETTINGS.MAILING_LISTS",tabName:"opt_out"},{icon:"chevron_right",url:"/profile/settings/prefShells",label:"SETTINGS.PREFERRED_SHELLS",tabName:"pref_shells"},{icon:"group",url:"/profile/settings/prefGroupNames",label:"SETTINGS.PREFERRED_UNIX_GROUP_NAMES",tabName:"pref_group_names"},{icon:"lock_open",url:"/profile/settings/sambaPassword",label:"SETTINGS.SAMBA_PASSWORD",tabName:"samba"},{icon:"vpn_key",url:"/profile/settings/sshKeys",label:"SETTINGS.SSH_KEYS",tabName:"ssh_keys"},{icon:"lock",url:"/profile/settings/passwordReset",label:"SETTINGS.PASSWORD_RESET",tabName:"password_reset"}]}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ut))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-settings-overview"]],decls:2,vars:1,consts:[["matRipple","","queryParamsHandling","merge",3,"routerLink",4,"ngFor","ngForOf"],["matRipple","","queryParamsHandling","merge",3,"routerLink"],[1,"ml-2","mt-auto","mb-auto"]],template:function(e,t){1&e&&(n.TgZ(0,"mat-list"),n.YNc(1,$V,7,7,"mat-list-item",0),n.qZA()),2&e&&(n.xp6(1),n.Q6J("ngForOf",t.items))},dependencies:[T.sg,zn,tT,LA,oa,Jr,Ke,Xt],styles:["mat-list-item[_ngcontent-%COMP%]:hover{background:var(--side-hover)!important;color:var(--side-text-hover)!important;cursor:pointer}"]}),i})();function JV(i,a){1&i&&(n.TgZ(0,"perun-web-apps-alert",5),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,n.lcZ(3,3,"PREFERRED_SHELLS.NO_SHELLS"))))}function QV(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"mat-option",11),n.NdJ("click",function(){n.CHM(e);const r=n.oxw(3);return n.KtG(r.changeValue())}),n._uU(1),n.qZA()}if(2&i){const e=a.$implicit;n.Q6J("value",e),n.xp6(1),n.Oqu(e)}}function XV(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"mat-list-item")(1,"mat-form-field",7)(2,"mat-select",8),n.NdJ("valueChange",function(r){const u=n.CHM(e).index,c=n.oxw(2);return n.KtG(c.shells[u]=r)}),n.YNc(3,QV,2,2,"mat-option",9),n.qZA()(),n.TgZ(4,"button",10),n.NdJ("click",function(){const d=n.CHM(e).index,u=n.oxw(2);return n.KtG(u.removeShell(d))}),n._uU(5),n.ALo(6,"translate"),n.ALo(7,"customTranslate"),n.qZA()()}if(2&i){const e=a.index,t=n.oxw(2);n.xp6(2),n.Q6J("value",t.shells[e]),n.xp6(1),n.Q6J("ngForOf",t.defaultShells),n.xp6(2),n.hij(" ",n.lcZ(6,3,n.lcZ(7,5,"PREFERRED_SHELLS.REMOVE_BUTTON"))," ")}}function KV(i,a){if(1&i&&(n.TgZ(0,"mat-list"),n.YNc(1,XV,8,7,"mat-list-item",6),n.qZA()),2&i){const e=n.oxw();n.xp6(1),n.Q6J("ngForOf",e.shells)}}let ej=(()=>{class i{constructor(e,t,r,d){this.store=e,this.attributesManagerService=t,this.dialog=r,this.translateService=d,this.defaultShells=["/bin/bash","/bin/csh","/bin/ksh","/bin/sh","/bin/zsh"],this.shells=[],d.get("PREFERRED_SHELLS.REMOVE_DIALOG_DESCRIPTION").subscribe(u=>this.removeDialogDescription=u),d.get("PREFERRED_SHELLS.REMOVE_DIALOG_TITLE").subscribe(u=>this.removeDialogTitle=u)}ngOnInit(){this.userId=this.store.getPerunPrincipal().userId,this.translateService.onLangChange.subscribe(()=>{this.translateService.get("PREFERRED_SHELLS.REMOVE_DIALOG_DESCRIPTION").subscribe(e=>this.removeDialogDescription=e),this.translateService.get("PREFERRED_SHELLS.REMOVE_DIALOG_TITLE").subscribe(e=>this.removeDialogTitle=e)}),this.getAttribute()}addShell(){this.shells.push("/bin/bash"),this.prefShellsAttribute.value=this.shells,this.attributesManagerService.setUserAttribute({user:this.userId,attribute:this.prefShellsAttribute}).subscribe(()=>{})}removeShell(e){const t=ln();t.width="600px",t.data={valueIndex:e,values:[this.shells[e]],attribute:this.prefShellsAttribute,userId:this.userId,title:this.removeDialogTitle,description:this.removeDialogDescription},this.dialog.open(EA,t).afterClosed().subscribe(d=>{d&&this.getAttribute()})}changeValue(){this.loading=!0,this.prefShellsAttribute.value=this.shells,this.attributesManagerService.setUserAttribute({user:this.userId,attribute:this.prefShellsAttribute}).subscribe({next:()=>{this.getAttribute()},error:()=>this.loading=!1})}getAttribute(){this.loading=!0,this.attributesManagerService.getUserAttributeByName(this.userId,"urn:perun:user:attribute-def:def:preferredShells").subscribe(e=>{this.prefShellsAttribute=e,this.shells=this.prefShellsAttribute?.value??[],this.loading=!1})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ut),n.Y36(jn),n.Y36(on),n.Y36(tn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-settings-preferred-shells"]],decls:14,vars:17,consts:[[1,"page-title"],["alert_type","info"],["mat-flat-button","","color","accent",3,"click"],["alert_type","warn",4,"ngIf"],[4,"ngIf"],["alert_type","warn"],[4,"ngFor","ngForOf"],[1,"w-100"],[3,"value","valueChange"],[3,"value","click",4,"ngFor","ngForOf"],["mat-flat-button","","color","warn",1,"ml-2",3,"click"],[3,"value","click"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA(),n.TgZ(4,"perun-web-apps-alert",1),n._uU(5),n.ALo(6,"translate"),n.ALo(7,"customTranslate"),n.qZA(),n.TgZ(8,"button",2),n.NdJ("click",function(){return t.addShell()}),n._uU(9),n.ALo(10,"translate"),n.ALo(11,"customTranslate"),n.qZA(),n.YNc(12,JV,4,5,"perun-web-apps-alert",3),n.YNc(13,KV,2,1,"mat-list",4)),2&e&&(n.xp6(1),n.Oqu(n.lcZ(2,5,n.lcZ(3,7,"PREFERRED_SHELLS.TITLE"))),n.xp6(4),n.hij(" ",n.lcZ(6,9,n.lcZ(7,11,"PREFERRED_SHELLS.DESCRIPTION")),"\n"),n.xp6(4),n.hij(" ",n.lcZ(10,13,n.lcZ(11,15,"PREFERRED_SHELLS.NEW_BUTTON")),"\n"),n.xp6(3),n.Q6J("ngIf",!t.loading&&0===t.shells.length),n.xp6(1),n.Q6J("ngIf",!t.loading))},dependencies:[T.sg,T.O5,tT,LA,Ht,yi,di,fd,Fs,Ke,Xt]}),i})();function tj(i,a){1&i&&n._UZ(0,"mat-spinner",4)}function nj(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div")(1,"div",5)(2,"mat-form-field",6)(3,"label",6),n._UZ(4,"input",7),n.qZA()()(),n.TgZ(5,"div",8)(6,"button",9),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onCancel())}),n._uU(7),n.ALo(8,"translate"),n.ALo(9,"customTranslate"),n.qZA(),n.TgZ(10,"button",10),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onSubmit())}),n._uU(11),n.ALo(12,"translate"),n.ALo(13,"customTranslate"),n.qZA()()()}if(2&i){const e=n.oxw();n.xp6(4),n.Q6J("formControl",e.inputControl),n.xp6(3),n.hij(" ",n.lcZ(8,4,n.lcZ(9,6,"DIALOGS.ADD_UNIX_GROUP.CANCEL"))," "),n.xp6(3),n.Q6J("disabled",!e.inputControl.valid||e.groups.includes(e.inputControl.value)),n.xp6(1),n.hij(" ",n.lcZ(12,8,n.lcZ(13,10,"DIALOGS.ADD_UNIX_GROUP.ADD"))," ")}}let ij=(()=>{class i{constructor(e,t,r){this.dialogRef=e,this.data=t,this.attributesManagerService=r,this.groups=[]}ngOnInit(){this.inputControl=new Js(null,bi.required),this.groups=this.data.groups}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.attributesManagerService.getUserAttributeByName(this.data.userId,`urn:perun:user:attribute-def:def:preferredUnixGroupName-namespace:${this.data.namespace}`).subscribe(e=>{const t=e?.value??[];t.push(this.inputControl.value),e.value=t,this.attributesManagerService.setUserAttribute({user:this.data.userId,attribute:e}).subscribe({next:()=>{this.loading=!1,this.dialogRef.close(!0)},error:()=>this.loading=!1})})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ln),n.Y36(ni),n.Y36(jn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-add-unix-group-dialog"]],decls:7,vars:7,consts:[["mat-dialog-title",""],[1,"user-theme"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[1,"w-100"],["matInput","","required","",1,"w-100",3,"formControl"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA(),n.TgZ(4,"div",1),n.YNc(5,tj,1,0,"mat-spinner",2),n.YNc(6,nj,14,12,"div",3),n.qZA()),2&e&&(n.xp6(1),n.Oqu(n.lcZ(2,3,n.lcZ(3,5,"DIALOGS.ADD_UNIX_GROUP.TITLE"))),n.xp6(4),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading))},dependencies:[T.O5,Ht,di,Xn,ii,Un,ji,_i,Ai,Nr,sr,Hn,Ke,Xt]}),i})();function rj(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div",2)(1,"h4"),n._uU(2),n.qZA(),n.TgZ(3,"button",3),n.NdJ("click",function(){const d=n.CHM(e).$implicit,u=n.oxw();return n.KtG(u.addGroupName(d))}),n._uU(4),n.ALo(5,"translate"),n.ALo(6,"customTranslate"),n.qZA(),n.TgZ(7,"button",4),n.NdJ("click",function(){const r=n.CHM(e),d=r.$implicit,u=r.index,c=n.oxw();return n.KtG(c.removeGroupName(d,u))}),n._uU(8),n.ALo(9,"translate"),n.qZA(),n._UZ(10,"perun-web-apps-string-list",5),n.qZA()}if(2&i){const e=a.$implicit,t=a.index,r=n.oxw();n.xp6(2),n.Oqu(e),n.xp6(2),n.hij(" ",n.lcZ(5,8,n.lcZ(6,10,"PREFERRED_UNIX_GROUP_NAMES.NEW_BUTTON"))," "),n.xp6(3),n.Q6J("disabled",0===r.selectionList[t].selected.length),n.xp6(1),n.hij(" ",n.lcZ(9,12,"PREFERRED_UNIX_GROUP_NAMES.REMOVE_BUTTON")," "),n.xp6(2),n.Q6J("values",r.groupNames.get(e))("selection",r.selectionList[t])("alertText",r.alertText)("headerColumnText",r.headerColumnText)}}let aj=(()=>{class i{constructor(e,t,r,d){this.store=e,this.attributesManagerService=t,this.dialog=r,this.translateService=d,this.namespaces=[],this.userId=this.store.getPerunPrincipal().userId,this.groupNames=new Map,this.groupNameAttributes=[],this.selectionList=[],d.get("PREFERRED_UNIX_GROUP_NAMES.REMOVE_DIALOG_DESCRIPTION").subscribe(u=>this.removeDialogDescription=u),d.get("PREFERRED_UNIX_GROUP_NAMES.REMOVE_DIALOG_TITLE").subscribe(u=>this.removeDialogTitle=u),d.get("ALERTS.NO_PREFERRED_UNIX_GROUPS").subscribe(u=>this.alertText=u),d.get("PREFERRED_UNIX_GROUP_NAMES.HEADER_COLUMN").subscribe(u=>this.headerColumnText=u)}ngOnInit(){this.namespaces=this.store.getProperty("preferred_unix_group_names"),this.translateService.onLangChange.subscribe(()=>{this.translateService.get("PREFERRED_UNIX_GROUP_NAMES.REMOVE_DIALOG_DESCRIPTION").subscribe(e=>this.removeDialogDescription=e),this.translateService.get("PREFERRED_UNIX_GROUP_NAMES.REMOVE_DIALOG_TITLE").subscribe(e=>this.removeDialogTitle=e),this.translateService.get("ALERTS.NO_PREFERRED_UNIX_GROUPS").subscribe(e=>this.alertText=e),this.translateService.get("PREFERRED_UNIX_GROUP_NAMES.HEADER_COLUMN").subscribe(e=>this.headerColumnText=e)}),this.initSelection(),this.namespaces.forEach(e=>{this.getAttribute(e)})}initSelection(){this.namespaces.forEach(()=>{this.selectionList.push(new Yi(!0,[]))})}getAttribute(e){this.attributesManagerService.getUserAttributeByName(this.userId,`urn:perun:user:attribute-def:def:preferredUnixGroupName-namespace:${e}`).subscribe(t=>{this.groupNames.set(e,t?.value??[]),this.groupNameAttributes.push(t)})}addGroupName(e){const t=this.groupNames.get(e),r=ln();r.width="400px",r.data={groups:t,namespace:e,userId:this.userId},this.dialog.open(ij,r).afterClosed().subscribe(u=>{u&&this.getAttribute(e)})}removeGroupName(e,t){const r=ln();r.width="600px",r.data={values:this.selectionList[t].selected,attribute:this.groupNameAttributes[t],userId:this.userId,title:this.removeDialogTitle,description:this.removeDialogDescription},this.dialog.open(EA,r).afterClosed().subscribe(u=>{u&&(this.selectionList[t].clear(),this.getAttribute(e))})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ut),n.Y36(jn),n.Y36(on),n.Y36(tn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-settings-preferred-unix-group-names"]],decls:5,vars:6,consts:[[1,"page-title"],["class","mt-4",4,"ngFor","ngForOf"],[1,"mt-4"],["mat-flat-button","","color","accent",1,"action-button",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],[3,"values","selection","alertText","headerColumnText"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA(),n.YNc(4,rj,11,14,"div",1)),2&e&&(n.xp6(1),n.Oqu(n.lcZ(2,2,n.lcZ(3,4,"PREFERRED_UNIX_GROUP_NAMES.TITLE"))),n.xp6(3),n.Q6J("ngForOf",t.namespaces))},dependencies:[T.sg,Ht,pL,Ke,Xt]}),i})();function sj(i,a){1&i&&(n.TgZ(0,"perun-web-apps-alert",7),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,n.lcZ(3,3,"ALERTS.NO_SAMBA")),"\n"))}function oj(i,a){1&i&&(n.TgZ(0,"perun-web-apps-alert",7),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,n.lcZ(3,3,"ALERTS.SAMBA_EXISTS")),"\n"))}function lj(i,a){1&i&&(n.TgZ(0,"perun-web-apps-alert",8),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,n.lcZ(3,3,"SAMBA_PASSWORD.PASSWORD_VALIDATION"))))}let cj=(()=>{class i{constructor(e,t,r,d,u){this.attributesManagerService=e,this.store=t,this.usersManagerService=r,this.notificator=d,this.translate=u,u.get("SAMBA_PASSWORD.SUCCESS_MESSAGE").subscribe(c=>this.successMessage=c),u.get("SAMBA_PASSWORD.SHOW_PWD_TOOLTIP").subscribe(c=>this.showPwdTooltip=c),u.get("SAMBA_PASSWORD.HIDE_PWD_TOOLTIP").subscribe(c=>this.hidePwdTooltip=c)}ngOnInit(){this.userId=this.store.getPerunPrincipal().userId,this.sambaControl=new Js("",[bi.pattern("((?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])|(?=.*[a-z])(?=.*[A-Z])(?=.*[!@#$%&/=?_.,:;\\-])|(?=.*[a-z])(?=.*[0-9])(?=.*[!@#$%&/=?_.,:;\\-])|(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#$%&/=?_.,:;\\-])).{3,}")]),this.getSambaAttribute()}setSambaPassword(){this.sambaAttribute.value=this.sambaControl.value;const e=(new Date).getTime().toString();this.usersManagerService.createAlternativePassword({user:this.userId,description:e,loginNamespace:"samba-du",password:this.sambaControl.value}).subscribe(()=>{this.sambaControl.setValue(""),this.getSambaAttribute(),this.notificator.showSuccess(this.successMessage)})}getSambaAttribute(){this.attributesManagerService.getUserAttributeByName(this.userId,"urn:perun:user:attribute-def:def:altPasswords:samba-du").subscribe(e=>{this.sambaExists=!!e.value,this.sambaAttribute=e})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(jn),n.Y36(Ut),n.Y36(li),n.Y36(Mr),n.Y36(tn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-settings-samba-password"]],decls:19,vars:23,consts:[[1,"page-title"],["alert_type","warn",4,"ngIf"],[1,"input-width"],["matInput","",3,"formControl","type","placeholder"],["disableRipple","","mat-icon-button","",3,"matTooltip","click"],["color","accent","mat-flat-button","",3,"disabled","click"],["alert_type","error",4,"ngIf"],["alert_type","warn"],["alert_type","error"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA(),n.YNc(4,sj,4,5,"perun-web-apps-alert",1),n.YNc(5,oj,4,5,"perun-web-apps-alert",1),n.TgZ(6,"mat-form-field",2)(7,"label",2),n._UZ(8,"input",3),n.ALo(9,"translate"),n.ALo(10,"customTranslate"),n.qZA()(),n.TgZ(11,"button",4),n.NdJ("click",function(){return t.showPassword=!t.showPassword}),n.TgZ(12,"mat-icon"),n._uU(13),n.qZA()(),n.TgZ(14,"button",5),n.NdJ("click",function(){return t.setSambaPassword()}),n._uU(15),n.ALo(16,"translate"),n.ALo(17,"customTranslate"),n.qZA(),n.YNc(18,lj,4,5,"perun-web-apps-alert",6)),2&e&&(n.xp6(1),n.Oqu(n.lcZ(2,11,n.lcZ(3,13,"SAMBA_PASSWORD.TITLE"))),n.xp6(3),n.Q6J("ngIf",!t.sambaExists),n.xp6(1),n.Q6J("ngIf",t.sambaExists),n.xp6(3),n.s9C("placeholder",n.lcZ(9,15,n.lcZ(10,17,"SAMBA_PASSWORD.INPUT_PLACEHOLDER"))),n.Q6J("formControl",t.sambaControl)("type",t.showPassword?"text":"password"),n.xp6(3),n.Q6J("matTooltip",t.showPassword?t.hidePwdTooltip:t.showPwdTooltip),n.xp6(2),n.Oqu(t.showPassword?"visibility_off":"visibility"),n.xp6(1),n.Q6J("disabled",0===t.sambaControl.value.length||t.sambaControl.invalid),n.xp6(1),n.hij(" ",n.lcZ(16,19,n.lcZ(17,21,"SAMBA_PASSWORD.SET_PASSWORD")),"\n"),n.xp6(3),n.Q6J("ngIf",t.sambaControl.invalid))},dependencies:[T.O5,zn,Ht,yi,di,ji,_i,Ai,sr,yr,Ke,Xt]}),i})(),fj=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})(),Mj=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[fj,wt,wt]}),i})(),Tj=(()=>{class i{constructor(){this.changes=new Le.x,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 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(e,t){return`${e} \u2013 ${t}`}formatYearRangeLabel(e,t){return`${e} to ${t}`}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const Oj={provide:new n.OlP("mat-datepicker-scroll-strategy"),deps:[rr],useFactory:function kj(i){return()=>i.scrollStrategies.reposition()}};let wT=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[Tj,Oj],imports:[T.ez,Ka,Bo,Hl,Ws,wt,da]}),i})();new n.OlP("mat-selectsearch-default-options");let qj=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[[T.ez,Xs,Ka,mg,eo,ef,Uo]]}),i})(),MT=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[wt,wt]}),i})(),bL=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[js,wt,js,wt]}),i})(),Gj=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Ho]}),i})(),CT=(()=>{class i{constructor(){this.changes=new Le.x,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const rF={provide:CT,deps:[[new n.FiY,new n.tp0,CT]],useFactory:function iF(i){return i||new CT}};let ML=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[rF,Jc],imports:[wt,T.ez,Ws,Ka,Gj,eo,ca,wt]}),i})(),cF=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[T.ez,wt,Ws,ca,uu,Hl,wt]}),i})();const dF=["input"],uF=function(i){return{enterDuration:i}},hF=["*"],pF=new n.OlP("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let fF=0;const mF={provide:ar,useExisting:(0,n.Gpc)(()=>CL),multi:!0};class gF{constructor(a,e){this.source=a,this.checked=e}}const _F=Vs(Rl(Ni(Xa(class{constructor(i){this._elementRef=i}}))));let bF=(()=>{class i extends _F{constructor(e,t,r,d,u,c,o){super(e),this._focusMonitor=t,this._changeDetectorRef=r,this.defaults=u,this._onChange=s=>{},this._onTouched=()=>{},this._required=!1,this._checked=!1,this.name=null,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new n.vpe,this.toggleChange=new n.vpe,this.tabIndex=parseInt(d)||0,this.color=this.defaultColor=u.color||"accent",this._noopAnimations="NoopAnimations"===c,this.id=this._uniqueId=`${o}${++fF}`}get required(){return this._required}set required(e){this._required=Ge(e)}get checked(){return this._checked}set checked(e){this._checked=Ge(e),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{"keyboard"===e||"program"===e?this._focused=!0:e||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(e){this.checked=!!e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}}return i.\u0275fac=function(e){n.$Z()},i.\u0275dir=n.lG2({type:i,inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},features:[n.qOj]}),i})(),CL=(()=>{class i extends bF{constructor(e,t,r,d,u,c){super(e,t,r,d,u,c,"mat-slide-toggle-")}_createChangeEvent(e){return new gF(this,e)}_onChangeEvent(e){e.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(e){e.stopPropagation()}focus(e,t){t?this._focusMonitor.focusVia(this._inputElement,t,e):this._inputElement.nativeElement.focus(e)}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(n.SBq),n.Y36($r),n.Y36(n.sBO),n.$8M("tabindex"),n.Y36(pF),n.Y36(n.QbO,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["mat-slide-toggle"]],viewQuery:function(e,t){if(1&e&&n.Gf(dF,5),2&e){let r;n.iGM(r=n.CRH())&&(t._inputElement=r.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:13,hostBindings:function(e,t){2&e&&(n.Ikx("id",t.id),n.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null)("name",null),n.ekj("mat-checked",t.checked)("mat-disabled",t.disabled)("mat-slide-toggle-label-before","before"==t.labelPosition)("_mat-animation-noopable",t._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matSlideToggle"],features:[n._Bn([mF]),n.qOj],ngContentSelectors:hF,decls:14,vars:20,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["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"],[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(e,t){if(1&e&&(n.F$t(),n.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),n.NdJ("change",function(d){return t._onChangeEvent(d)})("click",function(d){return t._onInputClick(d)}),n.qZA(),n.TgZ(5,"span",5),n._UZ(6,"span",6),n.TgZ(7,"span",7),n._UZ(8,"span",8),n.qZA()()(),n.TgZ(9,"span",9,10),n.NdJ("cdkObserveContent",function(){return t._onLabelTextChange()}),n.TgZ(11,"span",11),n._uU(12,"\xa0"),n.qZA(),n.Hsn(13),n.qZA()()),2&e){const r=n.MAs(1),d=n.MAs(10);n.uIk("for",t.inputId),n.xp6(2),n.ekj("mat-slide-toggle-bar-no-side-margin",!d.textContent||!d.textContent.trim()),n.xp6(1),n.Q6J("id",t.inputId)("required",t.required)("tabIndex",t.tabIndex)("checked",t.checked)("disabled",t.disabled),n.uIk("name",t.name)("aria-checked",t.checked)("aria-label",t.ariaLabel)("aria-labelledby",t.ariaLabelledby)("aria-describedby",t.ariaDescribedby),n.xp6(4),n.Q6J("matRippleTrigger",r)("matRippleDisabled",t.disableRipple||t.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",n.VKq(18,uF,t._noopAnimations?0:150))}},dependencies:[Jr,c0],styles:['.mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.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{-webkit-user-select:none;user-select:none;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%;display:block}.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}}.mat-slide-toggle-input:focus~.mat-slide-toggle-thumb-container .mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}'],encapsulation:2,changeDetection:0}),i})(),vL=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})(),vT=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[vL,ca,wt,uu,vL,wt]}),i})(),wF=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[T.ez,MT,Kv,gT,Ka,bL,mg,eo,fg,Wu,ef,Gs,Kp,Kc,Fu,Xs,ML,wT,T0,Lv,nT,Wp,Qv,BA,qu,Uo,md,ca,fg,vT,dT,MT,Kv,gT,Ka,bL,mg,eo,fg,Wu,ef,Gs,Kp,Kc,Fu,Xs,ML,wT,T0,Lv,nT,Wp,Qv,BA,qu,Uo,md,ca,cF,vT,dT]}),i})(),MF=(()=>{class i extends W1{format(e,t){return"input"===t?`${e.getDate().toString()}.${(e.getMonth()+1).toString()}.${e.getFullYear()}`:e.toDateString()}}return i.\u0275fac=function(){let a;return function(t){return(a||(a=n.n5z(i)))(t||i)}}(),i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();const CF={parse:{dateInput:{month:"short",year:"numeric",day:"numeric"}},display:{dateInput:"input",monthYearLabel:{year:"numeric",month:"numeric"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let TL=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[{provide:Zr,useClass:MF},{provide:Uh,useValue:CF}],imports:[T.ez,mg,fg,Fu,dT,XI,po,xl,BA,qu,ef,_A,eo,Wp,Ka,Uo,Gs,Xs,Kp,ca,JE,rD,Mj,wT,uD,_u,md,qj,Kc,Wu,QC,wF,vO]}),i})();n.B6R(hD,[T.O5,yi,Ht,B0,vu,ko,Xn,Un,pD],[Ke,Xt]);let vF=(()=>{class i{transform(e){return"virt"===e.namespace.split(":")[4]}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=n.Yjl({name:"isVirtualAttribute",type:i,pure:!0}),i})();function TF(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"th",18)(1,"mat-checkbox",19),n.NdJ("change",function(r){n.CHM(e);const d=n.oxw(2);return n.KtG(r?d.masterToggle():null)}),n.ALo(2,"translate"),n.ALo(3,"masterCheckboxLabel"),n.qZA()()}if(2&i){const e=n.oxw().ngIf,t=n.oxw();n.xp6(1),n.Q6J("checked",t.selection.hasValue()&&e.all)("indeterminate",t.selection.hasValue()&&!e.all)("aria-label",n.lcZ(2,3,n.lcZ(3,5,e.all)))}}const xF=function(i){return{name:i}};function SF(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"td",20)(1,"mat-checkbox",21),n.NdJ("click",function(r){return r.stopPropagation()})("change",function(r){const u=n.CHM(e).$implicit,c=n.oxw(2);return n.KtG(r?c.selection.toggle(u):null)}),n.ALo(2,"multiWordDataCy"),n.ALo(3,"isVirtualAttribute"),n.ALo(4,"translate"),n.ALo(5,"checkboxLabel"),n.qZA()()}if(2&i){const e=a.$implicit,t=n.oxw(2);n.xp6(1),n.Q2q("data-cy","",n.lcZ(2,4,e.displayName),"-checkbox"),n.Q6J("checked",t.selection.isSelected(e))("disabled",n.lcZ(3,6,e)||!e.writable)("aria-label",n.xi3(4,8,n.lcZ(5,11,t.selection.isSelected(e)),n.VKq(13,xF,e.displayName)))}}function EF(i,a){1&i&&(n.ynx(0,15),n.YNc(1,TF,4,7,"th",16),n.YNc(2,SF,6,15,"td",17),n.BQk())}function DF(i,a){1&i&&(n.TgZ(0,"th",22),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.ID")," "))}function LF(i,a){if(1&i&&(n.TgZ(0,"td",23),n._uU(1),n.qZA()),2&i){const e=a.$implicit;n.xp6(1),n.Oqu(e.id)}}function HF(i,a){1&i&&(n.TgZ(0,"th",22),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.NAME")," "))}function RF(i,a){if(1&i&&(n.TgZ(0,"td",24),n.ALo(1,"multiWordDataCy"),n.TgZ(2,"div",25),n._uU(3),n.qZA()()),2&i){const e=a.$implicit,t=n.oxw();n.Q2q("data-cy","",n.lcZ(1,3,e.friendlyName),"-friendlyName"),n.xp6(2),n.s9C("matTooltip",t.getAttributeFullName(e)),n.xp6(1),n.hij(" ",e.displayName," ")}}function PF(i,a){1&i&&(n.TgZ(0,"th",26),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.VALUE")," "))}function kF(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"td",24)(1,"perun-web-apps-attribute-value",27),n.NdJ("sendEventToParent2",function(){const d=n.CHM(e).$implicit,u=n.oxw();return n.KtG(u.onValueChange(d))}),n.qZA()()}if(2&i){const e=a.$implicit,t=n.oxw();n.xp6(1),n.Q6J("attribute",e)("readonly",t.readonly||!e.writable)}}function OF(i,a){1&i&&(n.TgZ(0,"th",22),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.DESCRIPTION")," "))}function IF(i,a){if(1&i&&(n.TgZ(0,"td",24),n._uU(1),n.qZA()),2&i){const e=a.$implicit;n.xp6(1),n.Oqu(e.description)}}function BF(i,a){1&i&&n._UZ(0,"tr",28)}function NF(i,a){if(1&i&&(n._UZ(0,"tr",29),n.ALo(1,"translate")),2&i){const e=a.$implicit,t=n.oxw();n.s9C("matTooltip",n.lcZ(1,3,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.DISABLED_HINT")),n.Q6J("matTooltipPosition","before")("matTooltipDisabled",e.writable||t.readonly)}}function VF(i,a){1&i&&(n.TgZ(0,"perun-web-apps-alert",30),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function jF(i,a){if(1&i&&(n.TgZ(0,"perun-web-apps-alert",30),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i){const e=n.oxw();n.xp6(1),n.hij(" ",n.lcZ(2,1,e.emptyListText),"\n")}}const FF=function(i){return{all:i}};let zF=(()=>{class i{constructor(e,t){this.authResolver=e,this.tableCheckbox=t,this.attributes=[],this.selection=new Yi(!0,[]),this.displayedColumns=["select","id","displayName","value","description"],this.inDialog=!1,this.filterValue="",this.readonly=!1,this.hiddenColumns=[],this.emptyListText="SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.EMPTY_SETTINGS",this.pageSizeOptions=$l}set matSort(e){this.sort=e,this.setDataSource()}static canBeSelected(e){return!to(e)&&e.writable}static getDataForColumn(e,t){switch(t){case"id":return e.id.toString();case"displayName":return e.displayName;case"description":return e.description;case"value":return JSON.stringify(e.value);case"urn":return e.namespace+":"+e.baseFriendlyName;default:return""}}canBeSelected(e){return!to(e)&&e.writable}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"id"!==e)),this.dataSource=new Zo(function hv(i){return i.filter(a=>!a.namespace.includes("def:core"))}(this.attributes)),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}exportAllData(e){Fa(ja(this.dataSource.filteredData,this.displayedColumns,i.getDataForColumn),e)}exportDisplayedData(e){const t=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,r=t+this.dataSource.paginator.pageSize;Fa(ja(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(t,r),this.displayedColumns,i.getDataForColumn),e)}setDataSource(){this.displayedColumns=this.displayedColumns.filter(e=>!this.hiddenColumns.includes(e)),this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>Jl(e,t,this.displayedColumns.concat("urn"),i.getDataForColumn),this.dataSource.sortData=(e,t)=>Zl(e,t,i.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource,i.canBeSelected)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!0,i.canBeSelected)}updateMapAttributes(){for(const e of this.items.toArray())"java.util.LinkedHashMap"===e.attribute.type&&e.updateMapAttribute()}onValueChange(e){i.canBeSelected(e)&&this.selection.select(e)}getAttributeFullName(e){return`${e.namespace}:${e.friendlyName}`}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Cn),n.Y36(cA))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-attributes-list"]],viewQuery:function(e,t){if(1&e&&(n.Gf(os,7),n.Gf(ps,7),n.Gf(uT,5)),2&e){let r;n.iGM(r=n.CRH())&&(t.child=r.first),n.iGM(r=n.CRH())&&(t.matSort=r.first),n.iGM(r=n.CRH())&&(t.items=r)}},inputs:{attributes:"attributes",selection:"selection",displayedColumns:"displayedColumns",inDialog:"inDialog",filterValue:"filterValue",tableId:"tableId",readonly:"readonly",hiddenColumns:"hiddenColumns",emptyListText:"emptyListText"},features:[n.TTD],decls:21,vars:16,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","displayName","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size",4,"matCellDef"],["matColumnDef","displayName"],["mat-cell","",4,"matCellDef"],["matColumnDef","value"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","description"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","dark-hover-list-item",3,"matTooltip","matTooltipPosition","matTooltipDisabled",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size align-checkbox",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"checked","indeterminate","aria-label","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"checked","disabled","aria-label","click","change"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["matTooltipClass","urn-tooltip",3,"matTooltip"],["mat-header-cell",""],[3,"attribute","readonly","sendEventToParent2"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["alert_type","warn"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportDisplayedData",function(d){return t.exportDisplayedData(d)})("exportAllData",function(d){return t.exportAllData(d)}),n.TgZ(2,"table",2),n.YNc(3,EF,3,0,"ng-container",3),n.ALo(4,"isAllSelected"),n.ynx(5,4),n.YNc(6,DF,3,3,"th",5),n.YNc(7,LF,2,1,"td",6),n.BQk(),n.ynx(8,7),n.YNc(9,HF,3,3,"th",5),n.YNc(10,RF,4,5,"td",8),n.BQk(),n.ynx(11,9),n.YNc(12,PF,3,3,"th",10),n.YNc(13,kF,2,2,"td",8),n.BQk(),n.ynx(14,11),n.YNc(15,OF,3,3,"th",5),n.YNc(16,IF,2,1,"td",8),n.BQk(),n.YNc(17,BF,1,0,"tr",12),n.YNc(18,NF,2,5,"tr",13),n.qZA()()(),n.YNc(19,VF,3,3,"perun-web-apps-alert",14),n.YNc(20,jF,3,3,"perun-web-apps-alert",14)),2&e&&(n.Q6J("hidden",0===t.dataSource.filteredData.length),n.xp6(1),n.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),n.xp6(1),n.Q6J("dataSource",t.dataSource),n.xp6(1),n.Q6J("ngIf",n.VKq(14,FF,n.Dn7(4,10,t.dataSource,t.selection.selected.length,t.canBeSelected))),n.xp6(14),n.Q6J("matHeaderRowDef",t.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",t.displayedColumns),n.xp6(1),n.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.dataSource.data.length),n.xp6(1),n.Q6J("ngIf",0===t.dataSource.data.length))},dependencies:[T.O5,ic,io,cs,ro,ds,ls,ao,us,hs,so,oo,ps,Ag,yi,yr,os,uT,Ke,vF,iT,pT,yg,lL],styles:["table[_ngcontent-%COMP%]{width:100%!important}.mat-row[_ngcontent-%COMP%]{height:auto}.mat-cell[_ngcontent-%COMP%]{padding:8px 8px 8px 0}.mat-column-select[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:50px!important}.mat-column-id[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:60px!important}.mat-column-value[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:300px!important}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:.25rem!important} .urn-tooltip{max-width:800px!important}"]}),i})();function UF(i,a){1&i&&(n.TgZ(0,"perun-web-apps-alert"),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,n.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.NOT_SUPPORTED"))))}function qF(i,a){1&i&&(n.TgZ(0,"th",16),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,n.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.NAMESPACE"))," "))}function YF(i,a){if(1&i&&(n.TgZ(0,"td",17),n._uU(1),n.qZA()),2&i){const e=a.$implicit;n.xp6(1),n.Oqu(e.friendlyNameParameter)}}function WF(i,a){1&i&&(n.TgZ(0,"th",16),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,n.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.LOGIN"))," "))}function GF(i,a){if(1&i&&(n.TgZ(0,"td",18),n._uU(1),n.qZA()),2&i){const e=a.$implicit;n.xp6(1),n.Oqu(e.value)}}function $F(i,a){1&i&&n._UZ(0,"th",16)}function ZF(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"td",19)(1,"button",20),n.NdJ("click",function(){const d=n.CHM(e).$implicit,u=n.oxw();return n.KtG(u.resetPassword(d.friendlyNameParameter))}),n._uU(2),n.ALo(3,"translate"),n.ALo(4,"customTranslate"),n.qZA()()}if(2&i){const e=a.$implicit,t=n.oxw();n.xp6(1),n.Q6J("disabled",!t.logins.includes(e)),n.xp6(1),n.hij(" ",n.lcZ(3,2,n.lcZ(4,4,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.RESET_PASSWORD"))," ")}}function JF(i,a){1&i&&n._UZ(0,"th",16)}function QF(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"td",19)(1,"button",21),n.NdJ("click",function(){const d=n.CHM(e).$implicit,u=n.oxw();return n.KtG(u.changePassword(d))}),n._uU(2),n.ALo(3,"translate"),n.ALo(4,"customTranslate"),n.qZA()()}if(2&i){const e=a.$implicit,t=n.oxw();n.xp6(1),n.Q6J("disabled",!t.logins.includes(e)),n.xp6(1),n.hij(" ",n.lcZ(3,2,n.lcZ(4,4,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.CHANGE_PASSWORD"))," ")}}function XF(i,a){1&i&&n._UZ(0,"tr",22)}function KF(i,a){1&i&&n._UZ(0,"tr",23)}let ez=(()=>{class i{constructor(e,t,r,d,u,c,o){this.attributesManagerService=e,this.store=t,this.dialog=r,this.route=d,this.router=u,this.otherApplicationService=c,this.entityStorageService=o,this.authenticationPage=!1,this.filteredNamespaces=new n.vpe,this.logins=[],this.nameSpaces=[]}ngOnInit(){this.userId=this.authenticationPage?this.entityStorageService.getEntity().id:this.store.getPerunPrincipal().userId,this.displayedColumns=this.authenticationPage?["namespace","value","change"]:["namespace","value","reset","change"],this.nameSpaces=this.store.getProperty("password_namespace_attributes").map(e=>{const t=e.split(":");return t[t.length-1]}),this.refreshTable()}refreshTable(){this.attributesManagerService.getLogins(this.userId).subscribe(e=>{if(this.logins=e.filter(t=>this.nameSpaces.includes(t.friendlyNameParameter)),this.filteredNamespaces.emit(e.map(t=>t.friendlyNameParameter)),this.dataSource=new Zo(e),!this.authenticationPage){const r=this.route.snapshot.queryParamMap.get("namespace");if(r){const d=this.logins.find(u=>u.friendlyNameParameter===r);d&&this.changePassword(d)}}})}resetPassword(e){window.open(this.otherApplicationService.getUrlForOtherApplication($o.PwdReset,e),"_blank")}changePassword(e){this.authenticationPage||this.router.navigate([],{queryParams:{namespace:e.friendlyNameParameter},queryParamsHandling:"merge"});const t=ln();t.width="600px",t.data={login:String(e.value),namespace:e.friendlyName.split(":")[1]},this.dialog.open(Hk,t).afterClosed().subscribe(()=>{this.router.navigate([],{queryParams:{namespace:null},queryParamsHandling:"merge"})})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(jn),n.Y36(Ut),n.Y36(on),n.Y36(mi),n.Y36(Dn),n.Y36(dA),n.Y36(Sv))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-password-reset"]],inputs:{authenticationPage:"authenticationPage"},outputs:{filteredNamespaces:"filteredNamespaces"},decls:23,vars:9,consts:[[1,"page-subtitle"],[4,"ngIf"],[1,"card","mt-2","table-size-fix"],[1,"card-body"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","value","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","namespace"],["mat-header-cell","",4,"matHeaderCellDef"],["class","w-25","mat-cell","",4,"matCellDef"],["matColumnDef","value"],["class","w-50","mat-cell","",4,"matCellDef"],["matColumnDef","reset"],["mat-cell","",4,"matCellDef"],["matColumnDef","change"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"w-25"],["mat-cell","",1,"w-50"],["mat-cell",""],["color","accent","mat-flat-button","",3,"disabled","click"],["color","accent","mat-flat-button","",1,"action-button",3,"disabled","click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA(),n.YNc(4,UF,4,5,"perun-web-apps-alert",1),n.TgZ(5,"div",2)(6,"div",3)(7,"div",4)(8,"table",5),n.ynx(9,6),n.YNc(10,qF,4,5,"th",7),n.YNc(11,YF,2,1,"td",8),n.BQk(),n.ynx(12,9),n.YNc(13,WF,4,5,"th",7),n.YNc(14,GF,2,1,"td",10),n.BQk(),n.ynx(15,11),n.YNc(16,$F,1,0,"th",7),n.YNc(17,ZF,5,6,"td",12),n.BQk(),n.ynx(18,13),n.YNc(19,JF,1,0,"th",7),n.YNc(20,QF,5,6,"td",12),n.BQk(),n.YNc(21,XF,1,0,"tr",14),n.YNc(22,KF,1,0,"tr",15),n.qZA()()()()),2&e&&(n.xp6(1),n.hij(" ",t.authenticationPage?"":n.lcZ(2,5,n.lcZ(3,7,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.TITLE")),"\n"),n.xp6(3),n.Q6J("ngIf",!t.logins.length&&!t.authenticationPage),n.xp6(4),n.Q6J("dataSource",t.dataSource),n.xp6(13),n.Q6J("matHeaderRowDef",t.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",t.displayedColumns))},dependencies:[T.O5,io,cs,ro,ds,ls,ao,us,hs,so,oo,ps,yi,Ht,Ke,Xt],styles:[".dark-hover-list-item[_ngcontent-%COMP%]:hover{background-color:#0000000d}"]}),i})();function Cz(i,a){1&i&&n._UZ(0,"mat-spinner",8)}function vz(i,a){1&i&&(n.TgZ(0,"perun-web-apps-alert",9),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,n.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.DATA_QUOTAS.NO_QUOTAS"))))}function Tz(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div")(1,"p")(2,"strong"),n._uU(3),n.ALo(4,"translate"),n.ALo(5,"customTranslate"),n.qZA(),n._uU(6),n.qZA(),n.TgZ(7,"p",10),n._uU(8),n.ALo(9,"translate"),n.ALo(10,"customTranslate"),n.qZA(),n.TgZ(11,"button",11),n.NdJ("click",function(){n.CHM(e);const r=n.oxw().$implicit,d=n.oxw(3).$implicit,u=n.oxw();return n.KtG(u.requestChangeQuota(d,r))}),n._uU(12),n.ALo(13,"translate"),n.ALo(14,"customTranslate"),n.qZA()()}if(2&i){const e=n.oxw(5);n.xp6(3),n.Oqu(n.lcZ(4,4,n.lcZ(5,6,"SHARED_LIB.PERUN.COMPONENTS.DATA_QUOTAS.QUOTA"))),n.xp6(3),n.hij(" ",e.quotasMarkup," "),n.xp6(2),n.hij(" ",n.lcZ(9,8,n.lcZ(10,10,"SHARED_LIB.PERUN.COMPONENTS.DATA_QUOTAS.QUOTA_INFO"))," "),n.xp6(4),n.hij(" ",n.lcZ(13,12,n.lcZ(14,14,"SHARED_LIB.PERUN.COMPONENTS.DATA_QUOTAS.CHANGE"))," ")}}function xz(i,a){1&i&&(n.TgZ(0,"p"),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,n.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.DATA_QUOTAS.NO_QUOTAS"))," "))}function Sz(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"mat-expansion-panel",3),n.NdJ("opened",function(){const d=n.CHM(e).$implicit,u=n.oxw(4);return n.KtG(u.getResAttributes(d.id))}),n.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),n._uU(3),n.qZA()(),n.YNc(4,Tz,15,16,"div",7),n.YNc(5,xz,4,5,"p",7),n.qZA()}if(2&i){const e=a.$implicit,t=n.oxw(4);n.xp6(3),n.hij(" ",e.name," "),n.xp6(1),n.Q6J("ngIf",t.defaultQuota),n.xp6(1),n.Q6J("ngIf",!t.defaultQuota)}}function Ez(i,a){if(1&i&&(n.TgZ(0,"mat-accordion"),n.YNc(1,Sz,6,3,"mat-expansion-panel",2),n.qZA()),2&i){const e=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",e.resources)}}function Dz(i,a){if(1&i&&(n.YNc(0,Cz,1,0,"mat-spinner",5),n.YNc(1,vz,4,5,"perun-web-apps-alert",6),n.YNc(2,Ez,2,1,"mat-accordion",7)),2&i){const e=n.oxw(2);n.Q6J("ngIf",e.loading),n.xp6(1),n.Q6J("ngIf",0===e.resources.length&&!e.loading),n.xp6(1),n.Q6J("ngIf",e.resources.length&&!e.loading)}}function Lz(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"mat-expansion-panel",3),n.NdJ("opened",function(){const d=n.CHM(e).$implicit,u=n.oxw();return n.KtG(u.getMembersResources(d))}),n.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),n._uU(3),n.qZA()(),n.YNc(4,Dz,3,3,"ng-template",4),n.qZA()}if(2&i){const e=a.$implicit;n.xp6(3),n.hij(" ",e.name," ")}}let Hz=(()=>{class i{constructor(e,t,r,d,u,c,o){this.store=e,this.usersManagerService=t,this.membersService=r,this.resourcesManagerService=d,this.attributesManagerService=u,this.dialog=c,this.entityStorageService=o,this.vos=[],this.resources=[],this.quotasMarkup="",this.filteredVos=[]}ngOnInit(){this.usersManagerService.getVosWhereUserIsMember(this.user.id).subscribe(e=>{this.vos=e,this.filteredVos=e})}getMembersResources(e){this.loading=!0,this.resources=[],this.membersService.getMemberByUser(e.id,this.user.id).subscribe(t=>{this.resourcesManagerService.getAssignedRichResourcesWithMember(t.id).subscribe(r=>{let d=r.length;d||(this.loading=!1),r.forEach(u=>{this.attributesManagerService.getResourceAttributes(u.id).subscribe(c=>{d--,c.find(o=>"defaultDataQuotas"===o.friendlyName)&&this.resources.push(u),this.loading=0!==d})})})})}getResAttributes(e){this.attributesManagerService.getResourceAttributes(e).subscribe(t=>{let r=t.find(d=>"dataQuotas"===d.friendlyName);if(r?.value){const d=Object.entries(r.value).map(u=>String(u[1]));this.currentQuota=d[0]}else this.currentQuota="";if(r=t.find(d=>"defaultDataQuotas"===d.friendlyName),r?.value){const d=Object.entries(r.value).map(u=>String(u[1]));this.defaultQuota=d[0]}else this.defaultQuota="";this.currentQuota||(this.currentQuota=this.defaultQuota),this.parseMarkup()})}requestChangeQuota(e,t){const r=ln();r.width="400px",r.data={vo:e,resource:t,user:this.user,currentQuota:this.quotasMarkup},this.dialog.open(Xk,r)}applyFilter(e){this.filteredVos=this.vos.filter(t=>t.name.toLowerCase().includes(e.toLowerCase()))}parseMarkup(){let e="";e+=this.currentQuota,e+=` (default: ${this.defaultQuota})`,e=e.split(":").join(" : ").split("K").join(" KiB").split("M").join(" MiB").split("G").join(" GiB").split("T").join(" TiB").split("E").join(" EiB"),this.quotasMarkup=e}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ut),n.Y36(li),n.Y36(Er),n.Y36(ia),n.Y36(jn),n.Y36(on),n.Y36(Sv))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-data-quotas"]],inputs:{user:"user"},decls:9,vars:11,consts:[[1,"page-title"],[3,"placeholder","filter"],[3,"opened",4,"ngFor","ngForOf"],[3,"opened"],["matExpansionPanelContent",""],["class","ml-auto mr-auto",4,"ngIf"],["alert_type","warn",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["alert_type","warn"],[1,"color-gray"],["mat-flat-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA(),n.TgZ(4,"perun-web-apps-immediate-filter",1),n.NdJ("filter",function(d){return t.applyFilter(d)}),n.ALo(5,"translate"),n.ALo(6,"customTranslate"),n.qZA(),n.TgZ(7,"mat-accordion"),n.YNc(8,Lz,5,1,"mat-expansion-panel",2),n.qZA()),2&e&&(n.xp6(1),n.hij(" ",n.lcZ(2,3,n.lcZ(3,5,"SHARED_LIB.PERUN.COMPONENTS.DATA_QUOTAS.TITLE")),"\n"),n.xp6(3),n.Q6J("placeholder",n.lcZ(5,7,n.lcZ(6,9,"SHARED_LIB.PERUN.COMPONENTS.DATA_QUOTAS.FILTER"))),n.xp6(4),n.Q6J("ngForOf",t.filteredVos))},dependencies:[T.sg,T.O5,Hn,yi,Ht,VA,Mg,Cg,NA,wg,cf,Ke,Xt],styles:[".color-gray[_ngcontent-%COMP%]{color:gray}"]}),i})();function Rz(i,a){1&i&&n._UZ(0,"mat-spinner",8)}function Pz(i,a){1&i&&(n.TgZ(0,"perun-web-apps-alert",9),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,n.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.OPT_OUT_MAILING_LISTS.NO_MAILING_LISTS_ALERT"))))}function kz(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"mat-expansion-panel",3),n.NdJ("closed",function(){n.CHM(e);const r=n.oxw(4);return n.KtG(r.deselectResource())})("afterExpand",function(){const d=n.CHM(e).$implicit,u=n.oxw(4);return n.KtG(u.changeSelectedResource(d))}),n.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),n._uU(3),n.qZA()(),n.TgZ(4,"div",10)(5,"mat-checkbox",11),n.NdJ("change",function(){n.CHM(e);const r=n.oxw(4);return n.KtG(r.setOptOut())}),n.qZA(),n.TgZ(6,"p"),n._uU(7),n.ALo(8,"translate"),n.ALo(9,"customTranslate"),n.qZA()()()}if(2&i){const e=a.$implicit,t=n.oxw(4);n.Q6J("expanded",e.name===t.selectedResource),n.xp6(3),n.hij(" ",e.name," "),n.xp6(2),n.Q6J("checked",t.optOutAttribute&&null!==t.optOutAttribute.value),n.xp6(2),n.hij(" ",n.lcZ(8,4,n.lcZ(9,6,"SHARED_LIB.PERUN.COMPONENTS.OPT_OUT_MAILING_LISTS.OPT_OUT_LABEL"))," ")}}function Oz(i,a){if(1&i&&(n.TgZ(0,"mat-accordion"),n.YNc(1,kz,10,8,"mat-expansion-panel",2),n.qZA()),2&i){const e=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",e.resources)}}function Iz(i,a){if(1&i&&(n.YNc(0,Rz,1,0,"mat-spinner",5),n.YNc(1,Pz,4,5,"perun-web-apps-alert",6),n.YNc(2,Oz,2,1,"mat-accordion",7)),2&i){const e=n.oxw(2);n.Q6J("ngIf",e.loading),n.xp6(1),n.Q6J("ngIf",0===e.resources.length&&!e.loading),n.xp6(1),n.Q6J("ngIf",e.resources.length&&!e.loading)}}function Bz(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"mat-expansion-panel",3),n.NdJ("closed",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.deselectVo())})("afterExpand",function(){const d=n.CHM(e).$implicit,u=n.oxw();return n.KtG(u.changeSelectedVo(d))}),n.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),n._uU(3),n.qZA()(),n.YNc(4,Iz,3,3,"ng-template",4),n.qZA()}if(2&i){const e=a.$implicit,t=n.oxw();n.Q6J("expanded",e.shortName===t.selectedVo),n.xp6(3),n.hij(" ",e.name," ")}}let Nz=(()=>{class i{constructor(e,t,r,d,u,c,o,s,l){this.store=e,this.usersManagerService=t,this.membersService=r,this.resourcesManagerService=d,this.attributesManagerService=u,this.route=c,this.router=o,this.notificator=s,this.translate=l,this.vos=[],this.resources=[],this.optOuts=[],this.filteredVos=[],this.loading=!0,this.selectedVo=null,this.selectedResource=null}ngOnDestroy(){this.isService||this.router.navigate([],{relativeTo:this.route,queryParams:{vo:null,resource:null},replaceUrl:!0,queryParamsHandling:"merge"})}ngOnInit(){this.route.queryParams.subscribe(e=>{this.selectedVo=String(e.vo),this.selectedResource=String(e.resource),this.changeOptOut=String(e.action),this.usersManagerService.getVosWhereUserIsMember(this.user.id).subscribe(t=>{if(this.vos=t.sort(_v),this.filteredVos=t,void 0!==this.selectedResource){const r=this.vos.find(d=>d.shortName===this.selectedVo);r&&this.getMailingLists(r)}else if(void 0!==this.selectedVo){const r=this.vos.find(d=>d.shortName===this.selectedVo);r&&(this.getMailingLists(r),this.changeSelectedVo(r))}})}).unsubscribe()}changeSelectedResource(e){this.selectedResource!==e.name&&this.getOptOutAttribute(e),this.isService||(this.changeOptOut&&("subscribe"===this.changeOptOut?this.subscribe():"unsubscribe"===this.changeOptOut&&this.unsubscribe(),this.changeOptOut=null),this.router.navigate([],{relativeTo:this.route,queryParams:{vo:this.selectedVo,resource:this.selectedResource,action:null},queryParamsHandling:"merge"}))}changeSelectedVo(e){this.selectedVo!==e.shortName&&(this.getMailingLists(e),this.selectedResource=null),this.isService||this.router.navigate([],{relativeTo:this.route,queryParams:{vo:this.selectedVo,resource:this.selectedResource},queryParamsHandling:"merge"})}getMailingLists(e){this.selectedVo=e.shortName,this.loading=!0,this.resources=[],this.membersService.getMemberByUser(e.id,this.user.id).subscribe(t=>{this.resourcesManagerService.getMailingServiceRichResourcesWithMember(t.id).subscribe(r=>{let d=r.length;d||(this.loading=!1),r.forEach(u=>{this.attributesManagerService.getRequiredAttributesMemberResource(t.id,u.id).subscribe(c=>{this.attributesManagerService.getResourceAttributeByName(u.id,"urn:perun:resource:attribute-def:def:disableMailingListOptOut").subscribe(o=>{d--;const s=c.find(l=>"optOutMailingList"===l.friendlyName);s&&"true"!==o?.value&&(this.optOuts.push({resource:u.id,member:t.id,attribute:s}),this.resources.push(u),this.selectedResource===u.name&&(this.getOptOutAttribute(u),this.changeSelectedResource(u))),this.loading=0!==d})})})}),this.resources.sort(_v)})}getOptOutAttribute(e){this.selectedResource=e.name,this.index=this.resources.indexOf(e),this.optOutAttribute=this.optOuts[this.index].attribute}unsubscribe(){const e=String(this.optOuts[this.index].attribute.value);this.optOuts[this.index].attribute.value="true",this.attributesManagerService.setMemberResourceAttribute(this.optOuts[this.index]).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.OPT_OUT_MAILING_LISTS.UNSUBSCRIBED")+this.selectedResource+".")},()=>{this.optOuts[this.index].attribute.value=e})}subscribe(){const e=String(this.optOuts[this.index].attribute.value);this.optOuts[this.index].attribute.value=null,this.attributesManagerService.setMemberResourceAttribute(this.optOuts[this.index]).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.OPT_OUT_MAILING_LISTS.SUBSCRIBED")+this.selectedResource+".")},()=>{this.optOuts[this.index].attribute.value=e})}setOptOut(){this.optOutAttribute.value?this.subscribe():this.unsubscribe()}applyFilter(e){this.filteredVos=this.vos.filter(t=>t.name.toLowerCase().includes(e.toLowerCase()))}deselectVo(){this.loading=!0,this.selectedVo=null,this.selectedResource=null,this.isService||this.router.navigate([],{relativeTo:this.route,queryParams:{vo:this.selectedVo,resource:this.selectedResource},queryParamsHandling:"merge"})}deselectResource(){this.selectedResource=null,this.isService||this.router.navigate([],{relativeTo:this.route,queryParams:{vo:this.selectedVo,resource:this.selectedResource},queryParamsHandling:"merge"})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ut),n.Y36(li),n.Y36(Er),n.Y36(ia),n.Y36(jn),n.Y36(mi),n.Y36(Dn),n.Y36(Mr),n.Y36(tn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-mailing-lists"]],inputs:{user:"user",isService:"isService"},decls:9,vars:11,consts:[[1,"page-title"],[3,"placeholder","filter"],[3,"expanded","closed","afterExpand",4,"ngFor","ngForOf"],[3,"expanded","closed","afterExpand"],["matExpansionPanelContent",""],["class","ml-auto mr-auto",4,"ngIf"],["alert_type","warn",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["alert_type","warn"],[1,"row"],[1,"ml-3","mr-2",3,"checked","change"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA(),n.TgZ(4,"perun-web-apps-immediate-filter",1),n.NdJ("filter",function(d){return t.applyFilter(d)}),n.ALo(5,"translate"),n.ALo(6,"customTranslate"),n.qZA(),n.TgZ(7,"mat-accordion"),n.YNc(8,Bz,5,2,"mat-expansion-panel",2),n.qZA()),2&e&&(n.xp6(1),n.hij(" ",n.lcZ(2,3,n.lcZ(3,5,"SHARED_LIB.PERUN.COMPONENTS.OPT_OUT_MAILING_LISTS.TITLE")),"\n"),n.xp6(3),n.Q6J("placeholder",n.lcZ(5,7,n.lcZ(6,9,"SHARED_LIB.PERUN.COMPONENTS.OPT_OUT_MAILING_LISTS.FILTER"))),n.xp6(4),n.Q6J("ngForOf",t.filteredVos))},dependencies:[T.sg,T.O5,ic,Hn,yi,VA,Mg,Cg,NA,wg,cf,Ke,Xt]}),i})();function Vz(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"mat-list-item",4)(1,"p",5),n.NdJ("click",function(){const d=n.CHM(e).$implicit,u=n.oxw();return n.KtG(u.showWholeKey(d))}),n._uU(2),n.qZA(),n.TgZ(3,"button",6),n.ALo(4,"translate"),n.ALo(5,"customTranslate"),n.TgZ(6,"mat-icon"),n._uU(7," file_copy "),n.qZA()(),n.TgZ(8,"button",7),n.NdJ("click",function(){const d=n.CHM(e).$implicit,u=n.oxw();return n.KtG(u.removeKey(d,!1))}),n.ALo(9,"translate"),n.ALo(10,"customTranslate"),n.TgZ(11,"mat-icon"),n._uU(12," delete "),n.qZA()()()}if(2&i){const e=a.$implicit;n.xp6(2),n.Oqu(e),n.xp6(1),n.s9C("matTooltip",n.lcZ(4,4,n.lcZ(5,6,"SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.COPY_TOOLTIP"))),n.Q6J("cdkCopyToClipboard",e),n.xp6(5),n.s9C("matTooltip",n.lcZ(9,8,n.lcZ(10,10,"SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.REMOVE_TOOLTIP")))}}function jz(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"mat-list-item",4)(1,"label",8),n.NdJ("click",function(){const d=n.CHM(e).$implicit,u=n.oxw();return n.KtG(u.showWholeKey(d))}),n._uU(2),n.qZA(),n.TgZ(3,"button",9)(4,"mat-icon"),n._uU(5," file_copy "),n.qZA()(),n.TgZ(6,"button",10),n.NdJ("click",function(){const d=n.CHM(e).$implicit,u=n.oxw();return n.KtG(u.removeKey(d,!0))}),n.TgZ(7,"mat-icon"),n._uU(8," delete "),n.qZA()()()}if(2&i){const e=a.$implicit;n.xp6(2),n.Oqu(e),n.xp6(1),n.Q6J("cdkCopyToClipboard",e)}}let Fz=(()=>{class i{constructor(e,t,r,d,u){this.store=e,this.attributesManagerService=t,this.dialog=r,this.translateService=d,this.entityStorageService=u,this.adminKeys=[],this.userKeys=[],this.userUrn="urn:perun:user:attribute-def:def:sshPublicKey",this.adminUrn="urn:perun:user:attribute-def:def:sshPublicAdminKey",this.selection=new Yi(!1,[]),this.selectionAdmin=new Yi(!1,[]),d.get("SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.REMOVE_DIALOG_DESCRIPTION").subscribe(c=>this.removeDialogDescription=c),d.get("SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.REMOVE_DIALOG_TITLE").subscribe(c=>this.removeDialogTitle=c),d.get("ALERTS.NO_ALT_PASSWORDS").subscribe(c=>this.alertText=c),d.get("SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.HEADER_COLUMN").subscribe(c=>this.headerColumnText=c)}ngOnInit(){this.userId=window.location.pathname.startsWith("/myProfile")?this.entityStorageService.getEntity().id:this.store.getPerunPrincipal().userId,this.translateService.onLangChange.subscribe(()=>{this.translateService.get("SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.REMOVE_DIALOG_DESCRIPTION").subscribe(e=>this.removeDialogDescription=e),this.translateService.get("SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.REMOVE_DIALOG_TITLE").subscribe(e=>this.removeDialogTitle=e),this.translateService.get("ALERTS.NO_ALT_PASSWORDS").subscribe(e=>this.alertText=e),this.translateService.get("SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.HEADER_COLUMN").subscribe(e=>this.headerColumnText=e)}),this.loading=!0,this.getUserSSH(),this.getAdminSSH()}addKey(e){const t=ln();t.width="850px",t.data={attribute:e?this.adminKeyAttribute:this.userKeyAttribute,userId:this.userId},this.dialog.open(Jo,t).afterClosed().subscribe(d=>{d&&(e?this.getAdminSSH():this.getUserSSH())})}removeKey(e,t){const r=ln();r.width="600px",r.data={values:[e],attribute:t?this.adminKeyAttribute:this.userKeyAttribute,userId:this.userId,title:this.removeDialogTitle,description:this.removeDialogDescription},this.dialog.open(EA,r).afterClosed().subscribe(u=>{u&&(this.loading=!0,t?(this.getAdminSSH(),this.selectionAdmin.clear()):(this.getUserSSH(),this.selection.clear()))})}getUserSSH(){this.attributesManagerService.getUserAttributeByName(this.userId,this.userUrn).subscribe(e=>{this.userKeyAttribute=e,this.userKeys=e.value,this.loading=!1})}getAdminSSH(){this.attributesManagerService.getUserAttributeByName(this.userId,this.adminUrn).subscribe(e=>{this.adminKeyAttribute=e,this.adminKeys=e.value,this.loading=!1})}showWholeKey(e){const t=ln();t.width="600px",t.data={value:e},this.dialog.open(oO,t)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ut),n.Y36(jn),n.Y36(on),n.Y36(tn),n.Y36(Sv))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-settings-ssh-keys"]],decls:28,vars:32,consts:[[1,"page-title"],["mat-flat-button","","color","accent",1,"action-button",3,"click"],["class","dark-hover-list-item w-auto","matRipple","",4,"ngFor","ngForOf"],[1,"page-title","mt-5"],["matRipple","",1,"dark-hover-list-item","w-auto"],[1,"truncate","center-content","cursor-pointer",3,"click"],["color","accent","mat-icon-button","",1,"ml-auto","center-content",3,"cdkCopyToClipboard","matTooltip"],["color","warn","mat-icon-button","",1,"ml-2","center-content",3,"matTooltip","click"],[1,"truncate","center-content",3,"click"],["mat-icon-button","","color","accent",1,"ml-auto","center-content",3,"cdkCopyToClipboard"],["mat-icon-button","","color","warn",1,"ml-2","center-content",3,"click"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA(),n.TgZ(4,"p"),n._uU(5),n.ALo(6,"translate"),n.ALo(7,"customTranslate"),n.qZA(),n.TgZ(8,"button",1),n.NdJ("click",function(){return t.addKey(!1)}),n._uU(9),n.ALo(10,"translate"),n.ALo(11,"customTranslate"),n.qZA(),n.TgZ(12,"mat-list"),n.YNc(13,Vz,13,12,"mat-list-item",2),n.qZA(),n.TgZ(14,"h1",3),n._uU(15),n.ALo(16,"translate"),n.ALo(17,"customTranslate"),n.qZA(),n.TgZ(18,"p"),n._uU(19),n.ALo(20,"translate"),n.ALo(21,"customTranslate"),n.qZA(),n.TgZ(22,"button",1),n.NdJ("click",function(){return t.addKey(!0)}),n._uU(23),n.ALo(24,"translate"),n.ALo(25,"customTranslate"),n.qZA(),n.TgZ(26,"mat-list"),n.YNc(27,jz,9,2,"mat-list-item",2),n.qZA()),2&e&&(n.xp6(1),n.hij(" ",n.lcZ(2,8,n.lcZ(3,10,"SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.SSH_KEYS_TITLE")),"\n"),n.xp6(4),n.Oqu(n.lcZ(6,12,n.lcZ(7,14,"SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.SSH_KEYS_DESCRIPTION"))),n.xp6(4),n.hij(" ",n.lcZ(10,16,n.lcZ(11,18,"SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.NEW_KEY")),"\n"),n.xp6(4),n.Q6J("ngForOf",t.userKeys),n.xp6(2),n.hij(" ",n.lcZ(16,20,n.lcZ(17,22,"SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.ADMIN_SSH_KEYS_TITLE")),"\n"),n.xp6(4),n.hij(" ",n.lcZ(20,24,n.lcZ(21,26,"SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.ADMIN_SSH_KEYS_DESCRIPTION")),"\n"),n.xp6(4),n.hij(" ",n.lcZ(24,28,n.lcZ(25,30,"SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.NEW_KEY")),"\n"),n.xp6(4),n.Q6J("ngForOf",t.adminKeys))},dependencies:[T.sg,zn,Ht,yr,Jr,Jv,tT,LA,Ke,Xt],styles:[".truncate[_ngcontent-%COMP%]{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap}.center-content[_ngcontent-%COMP%]{margin-bottom:auto;margin-top:auto}label[_ngcontent-%COMP%]:hover, .cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),i})();function uU(i,a){1&i&&n._UZ(0,"mat-spinner",5)}function hU(i,a){1&i&&n._UZ(0,"mat-spinner",5)}function pU(i,a){if(1&i&&n._UZ(0,"perun-web-apps-attributes-list",10),2&i){const e=n.oxw(3);n.Q6J("attributes",e.attributes)("readonly",!0)("hiddenColumns",e.hiddenColumns)}}function fU(i,a){if(1&i&&(n.YNc(0,hU,1,0,"mat-spinner",3),n.YNc(1,pU,1,3,"perun-web-apps-attributes-list",9)),2&i){const e=n.oxw(2);n.Q6J("ngIf",e.innerLoading),n.xp6(1),n.Q6J("ngIf",!e.innerLoading)}}function mU(i,a){1&i&&n._UZ(0,"mat-spinner",5)}function gU(i,a){if(1&i&&n._UZ(0,"perun-web-apps-attributes-list",10),2&i){const e=n.oxw(4);n.Q6J("attributes",e.attributes)("readonly",!0)("hiddenColumns",e.hiddenColumns)}}function _U(i,a){if(1&i&&(n.YNc(0,mU,1,0,"mat-spinner",3),n.YNc(1,gU,1,3,"perun-web-apps-attributes-list",9)),2&i){const e=n.oxw(3);n.Q6J("ngIf",e.innerLoading),n.xp6(1),n.Q6J("ngIf",!e.innerLoading)}}function bU(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"mat-expansion-panel",6),n.NdJ("opened",function(){const d=n.CHM(e).$implicit,u=n.oxw(2);return n.KtG(u.getMemberData(d))}),n.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),n._uU(3),n.ALo(4,"translate"),n.ALo(5,"customTranslate"),n.qZA()(),n.YNc(6,_U,2,2,"ng-template",7),n.qZA()}if(2&i){const e=a.$implicit;n.xp6(3),n.AsE(" ",n.lcZ(4,2,n.lcZ(5,4,"PRIVACY.DATA")),"",e.name," ")}}function AU(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"mat-accordion")(1,"mat-expansion-panel",6),n.NdJ("opened",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.getUserData())}),n.TgZ(2,"mat-expansion-panel-header")(3,"mat-panel-title"),n._uU(4),n.ALo(5,"translate"),n.ALo(6,"customTranslate"),n.qZA()(),n.YNc(7,fU,2,2,"ng-template",7),n.qZA(),n.YNc(8,bU,7,6,"mat-expansion-panel",8),n.qZA()}if(2&i){const e=n.oxw();n.xp6(4),n.hij(" ",n.lcZ(5,2,n.lcZ(6,4,"PRIVACY.USER_INFO"))," "),n.xp6(4),n.Q6J("ngForOf",e.filteredVos)}}new Date(324721404e5).valueOf();let yU=(()=>{class i{constructor(e,t,r,d){this.usersManagerService=e,this.membersService=t,this.attributesManagerService=r,this.storage=d,this.vos=[],this.attributes=[],this.username="",this.hiddenColumns=["select","id"],this.filteredVos=[]}ngOnInit(){this.outerLoading=!0,this.userId=this.storage.getPerunPrincipal().userId,this.usersManagerService.getVosWhereUserIsMember(this.userId).subscribe(e=>{this.vos=e,this.filteredVos=e,this.outerLoading=!1})}getUserData(){this.innerLoading=!0,this.usersManagerService.getRichUserWithAttributes(this.userId).subscribe(e=>{this.user=e,this.attributes=e.userAttributes,this.username=(new gA).transform(e),this.innerLoading=!1})}getMemberData(e){this.innerLoading=!0,this.membersService.getMemberByUser(e.id,this.userId).subscribe(t=>{this.membersService.getRichMemberWithAttributes(t.id).subscribe(r=>{this.attributes=r.memberAttributes,this.innerLoading=!1})})}applyFilter(e){this.filteredVos=this.vos.filter(t=>t.name.toLowerCase().includes(e.toLowerCase()))}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(li),n.Y36(Er),n.Y36(jn),n.Y36(Ut))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-privacy-page"]],decls:10,vars:12,consts:[[1,"page-title","mt-2"],[1,"user-theme"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"opened"],["matExpansionPanelContent",""],[3,"opened",4,"ngFor","ngForOf"],[3,"attributes","readonly","hiddenColumns",4,"ngIf"],[3,"attributes","readonly","hiddenColumns"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA(),n.TgZ(4,"div",1)(5,"perun-web-apps-immediate-filter",2),n.NdJ("filter",function(d){return t.applyFilter(d)}),n.ALo(6,"translate"),n.ALo(7,"customTranslate"),n.qZA(),n.YNc(8,uU,1,0,"mat-spinner",3),n.YNc(9,AU,9,6,"mat-accordion",4),n.qZA()),2&e&&(n.xp6(1),n.Oqu(n.lcZ(2,4,n.lcZ(3,6,"PRIVACY.TITLE"))),n.xp6(4),n.Q6J("placeholder",n.lcZ(6,8,n.lcZ(7,10,"SERVICES.FILTER"))),n.xp6(3),n.Q6J("ngIf",t.outerLoading),n.xp6(1),n.Q6J("ngIf",!t.outerLoading))},dependencies:[T.sg,T.O5,cf,zF,VA,Mg,Cg,NA,wg,Hn,Ke,Xt]}),i})(),wU=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-home-page"]],decls:1,vars:0,template:function(e,t){1&e&&n._UZ(0,"router-outlet")},dependencies:[Wr]}),i})();function MU(i,a){1&i&&(n.TgZ(0,"perun-web-apps-alert",11),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,n.lcZ(3,3,"DIALOGS.ADD_AUTH_IMG.INFO"))))}function CU(i,a){1&i&&(n.TgZ(0,"perun-web-apps-alert",12),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,n.lcZ(3,3,"DIALOGS.ADD_AUTH_IMG.IMG_TOO_LONG"))))}function vU(i,a){if(1&i&&(n.TgZ(0,"div",13),n._UZ(1,"img",14),n.qZA()),2&i){const e=n.oxw();n.xp6(1),n.Q6J("src",e.newImage,n.LSH)}}function TU(i,a){1&i&&(n.TgZ(0,"perun-web-apps-alert",11),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.Oqu(n.lcZ(2,1,n.lcZ(3,3,"DIALOGS.ADD_AUTH_IMG.DELAY_INFO"))))}let SU=(()=>{class i{constructor(e,t,r,d){this.dialogRef=e,this.data=t,this.attributesManagerService=r,this.store=d,this.newImage=""}ngOnInit(){this.theme=this.data.theme,this.attribute=this.data.attribute,this.newImage=this.attribute.value}handleInputChange(e){const t=e.dataTransfer?.files[0]??e.target?.files[0],d=new FileReader;t.type.match(/image-*/)?(d.onload=this._handleReaderLoaded.bind(this),this.imageType=t.type,d.readAsDataURL(t)):alert("invalid format")}_handleReaderLoaded(e){const t=e.target;let r=100;const d=()=>{u(t.result).then(c=>{r>50&&c.length>6144?(r-=10,d()):(this.newImage=c,this.imgTooLong=this.newImage.length>=6144)}).catch(c=>console.error(c))},u=c=>new Promise((o,s)=>{const l=new Image;l.src=c,l.onload=()=>{const h=document.createElement("canvas");let p=l.width,m=l.height;p>m?p>r&&(m*=r/p,p=r):m>r&&(p*=r/m,m=r),h.width=p,h.height=m;const g=h.getContext("2d");g.drawImage(l,0,0,p,m);const f=g.canvas.toDataURL();o(f)},l.onerror=h=>s(h)});d()}onAdd(){this.attribute.value=this.newImage,this.attributesManagerService.setUserAttribute({attribute:this.attribute,user:this.store.getPerunPrincipal().userId}).subscribe(()=>{this.dialogRef.close(!0)})}onCancel(){this.dialogRef.close(!1)}generateImg(){function s(p,m,g,f){f.beginPath(),f.rect(20*p,20*m,20,20),f.fillStyle="rgb("+g.join(",")+")",f.fill()}this.newImage=function h(){const p=function o(){const p=document.createElement("canvas");p.width=100,p.height=100;const m=p.getContext("2d");return m.beginPath(),m.rect(0,0,100,100),m.fillStyle="#FFFFFF",m.fill(),p}(),m=p.getContext("2d"),g=function l(){const p=[];for(let m=0;m<3;m++){const g=Math.floor(256*Math.random()),f=Math.max(120,g),w=Math.min(200,f);p.push(w)}return p}();for(let f=0;f{class i{constructor(e,t,r,d){this.dialogRef=e,this.data=t,this.attributesManagerService=r,this.store=d,this.securityText=""}ngOnInit(){this.theme=this.data.theme,this.attribute=this.data.attribute,this.attribute.value&&(this.securityText=String(this.attribute.value))}onAdd(){this.attribute.value=this.securityText,this.attributesManagerService.setUserAttribute({attribute:this.attribute,user:this.store.getPerunPrincipal().userId}).subscribe(()=>{this.dialogRef.close(!0)})}onCancel(){this.dialogRef.close(!1)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ln),n.Y36(ni),n.Y36(jn),n.Y36(Ut))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-add-auth-text-dialog"]],decls:18,vars:19,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"w-100"],["matInput","","autofocus","",3,"ngModel","ngModelChange"],["alert_type","info"],["matDialogActions",""],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["color","accent","mat-flat-button","",3,"disabled","click"]],template:function(e,t){1&e&&(n.TgZ(0,"div")(1,"h1",0),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"div",1)(5,"mat-form-field",2)(6,"input",3),n.NdJ("ngModelChange",function(d){return t.securityText=d}),n.qZA()(),n.TgZ(7,"perun-web-apps-alert",4),n._uU(8),n.ALo(9,"translate"),n.ALo(10,"customTranslate"),n.qZA()(),n.TgZ(11,"div",5)(12,"button",6),n.NdJ("click",function(){return t.onCancel()}),n._uU(13),n.ALo(14,"translate"),n.qZA(),n.TgZ(15,"button",7),n.NdJ("click",function(){return t.onAdd()}),n._uU(16),n.ALo(17,"translate"),n.qZA()()()),2&e&&(n.Tol(t.theme),n.xp6(2),n.Oqu(n.lcZ(3,9,"DIALOGS.ADD_AUTH_TEXT.TITLE")),n.xp6(4),n.Q6J("ngModel",t.securityText),n.xp6(2),n.hij(" ",n.lcZ(9,11,n.lcZ(10,13,"DIALOGS.ADD_AUTH_TEXT.DELAY_INFO"))," "),n.xp6(5),n.hij(" ",n.lcZ(14,15,"DIALOGS.ADD_AUTH_TEXT.CANCEL")," "),n.xp6(2),n.Q6J("disabled",""===t.securityText.trim()),n.xp6(1),n.hij(" ",n.lcZ(17,17,"DIALOGS.ADD_AUTH_TEXT.ADD")," "))},dependencies:[Ht,yi,di,Xn,ii,Un,ji,_i,Ai,ua,Ke,Xt]}),i})(),DU=(()=>{class i{constructor(e){this.translate=e}transform(e){return this.translate.currentLang in e?e[this.translate.currentLang]:this.translate.defaultLang in e?e[this.translate.defaultLang]:e[Object.keys(e)[0]]}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(tn,16))},i.\u0275pipe=n.Yjl({name:"categoryLabel",type:i,pure:!0}),i})();const LU=["toggle"];function HU(i,a){1&i&&n._UZ(0,"mat-spinner",8)}function RU(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div")(1,"mat-slide-toggle",13),n.NdJ("toggleChange",function(){const d=n.CHM(e).$implicit,u=n.oxw(2).$implicit,c=n.oxw(2);return n.KtG(c.toggleRps(u,d.key))}),n._uU(2),n.ALo(3,"categoryLabel"),n.qZA()()}if(2&i){const e=a.$implicit,t=n.oxw(2).$implicit;n.xp6(1),n.Q6J("checked",null==t?null:t.value.rps_value[e.key]),n.xp6(1),n.hij(" ",n.lcZ(3,2,e.value)," ")}}function PU(i,a){if(1&i&&(n.TgZ(0,"div"),n.YNc(1,RU,4,4,"div",9),n.ALo(2,"keyvalue"),n.qZA()),2&i){const e=n.oxw().$implicit;n.xp6(1),n.Q6J("ngForOf",n.lcZ(2,1,null==e?null:e.value.rps))}}function kU(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div")(1,"span",10)(2,"mat-slide-toggle",11),n.NdJ("toggleChange",function(){const d=n.CHM(e).$implicit,u=n.oxw(2);return n.KtG(u.toggleCategory(d.value))}),n._uU(3),n.ALo(4,"categoryLabel"),n.qZA(),n.TgZ(5,"button",12),n.NdJ("click",function(){const d=n.CHM(e).$implicit;return n.KtG(d.value.show=!d.value.show)}),n.TgZ(6,"mat-icon"),n._uU(7),n.qZA()()(),n.YNc(8,PU,3,3,"div",7),n.qZA()}if(2&i){const e=a.$implicit;n.xp6(2),n.Q6J("checked",e.value.value),n.xp6(1),n.hij(" ",n.lcZ(4,4,e.value.label)," "),n.xp6(4),n.hij(" ",e.value.show?"keyboard_arrow_up":"keyboard_arrow_down"," "),n.xp6(1),n.Q6J("ngIf",e.value.show)}}function OU(i,a){if(1&i&&(n.TgZ(0,"div"),n.YNc(1,kU,9,6,"div",9),n.ALo(2,"keyvalue"),n.qZA()),2&i){const e=n.oxw();n.xp6(1),n.Q6J("ngForOf",n.lcZ(2,1,e.categories))}}function IU(i,a){1&i&&n._UZ(0,"mat-spinner",8)}let BU=(()=>{class i{constructor(e,t,r,d,u,c,o){this.translate=e,this.attributesManagerService=t,this.store=r,this.oauthService=d,this.authService=u,this.httpClient=c,this.mfaApiService=o,this.mfaAvailable=!1,this.loadingMfa=!1,this.showDetail=!1,this.loadingCategories=!1,this.includeCategories=[],this.excludeRps=[],this.allCategories=!1,this.unchangedSettings=!0,this.unchangedEnforce=!0,this.categories={}}ngOnInit(){this.loadingMfa=!0,this.enableDetailSettings=this.store.getProperty("mfa").enable_detail_settings,this.mfaApiService.isMfaAvailable().subscribe({next:e=>{this.mfaAvailable=e,e?this.loadMfa():this.loadingMfa=!1},error:e=>{console.error(e),this.loadingMfa=!1}})}loadMfa(){if(sessionStorage.getItem("mfa_route")){const t=sessionStorage.getItem("enforce_mfa");t&&this.changeEnforceMfa("true"===t),sessionStorage.getItem("settings_mfa")&&this.updateDetailSettings()}else{const t=this.store.getProperty("mfa").enforce_mfa_attribute;this.attributesManagerService.getUserAttributeByName(this.store.getPerunPrincipal().userId,t).subscribe({next:r=>{r.value?(this.enforceMfa=!0,this.toggle.toggle()):this.enforceMfa=!1,this.loadingMfa=!1},error:r=>{console.error(r),this.loadingMfa=!1}})}}getCategoriesAndSettings(){this.loadingCategories=!0,this.mfaApiService.getCategories().subscribe({next:e=>{this.categories=e,this.getSettings()},error:e=>{console.error(e),this.loadingCategories=!1}})}getSettings(){this.unchangedEnforce?this.mfaApiService.getSettings().subscribe({next:e=>{0!==e.length&&(e.all?this.allCategories=!0:(this.includeCategories=e.include_categories?e.include_categories:[],this.excludeRps=e.exclude_rps?e.exclude_rps:[])),this.setValuesFromSetting(),this.showDetail=!this.showDetail,this.loadingCategories=!1},error:e=>{console.error(e),this.loadingCategories=!1}}):(this.includeCategories=[],this.allCategories=this.toggle.checked,this.setValuesFromSetting(),this.showDetail=!this.showDetail,this.loadingCategories=!1)}setValuesFromSetting(){if(0===this.includeCategories.length){const e=this.allCategories;for(const t in this.categories){this.categories[t].value=e,this.categories[t].show=!1,this.categories[t].rps_value={};for(const r in this.categories[t].rps)this.categories[t].rps_value[r]=e}}else for(const e in this.categories){this.categories[e].value=this.includeCategories.includes(e),this.categories[e].show=!1,this.categories[e].rps_value={};for(const t in this.categories[e].rps)this.categories[e].rps_value[t]=!!this.categories[e].value&&!this.excludeRps.includes(t)}}showDetailSettings(){this.showDetail||0!==Object.keys(this.categories).length?this.showDetail=!this.showDetail:this.getCategoriesAndSettings()}toggleEnableMfa(){this.unchangedEnforce=!1,this.includeCategories=[],this.allCategories=!this.toggle.checked,this.setValuesFromSetting()}toggleCategory(e,t=!1){if(this.unchangedSettings=!1,this.checkAllCategoriesSelected()&&this.toggle.checked&&!t&&this.toggle.toggle(),e.value=!e.value,!t)for(const r in e.rps_value)e.rps_value[r]=e.value;this.checkAllCategoriesSelected()&&!this.toggle.checked&&!t&&this.toggle.toggle()}checkAllCategoriesSelected(){let e=!0;for(const t in this.categories)this.categories[t].value||(e=!1);return e}toggleRps(e,t){t=String(t),this.unchangedSettings=!1,this.checkAllRpsDeselectedForCategory(String(e.key))&&this.toggleCategory(e.value,!0),this.checkAllRpsSelected()&&this.toggle.toggle(),e.value.rps_value[t]=!e.value.rps_value[t],this.checkAllRpsDeselectedForCategory(String(e.key))&&this.toggleCategory(e.value,!0),this.checkAllRpsSelected()&&this.toggle.toggle()}checkAllRpsDeselectedForCategory(e){let t=!0;for(const r in this.categories[e].rps)this.categories[e].rps_value[r]&&(t=!1);return t}checkAllRpsSelected(){let e=!0;for(const t in this.categories){if(!this.categories[t].value)return!1;for(const r in this.categories[t].rps)this.categories[t].rps_value[r]||(e=!1)}return e}saveSettings(e=!1){this.oauthService.getIdTokenExpiration()-(0,CD.now)()>0&&!e?(this.enforceMfa!==this.toggle.checked&&(this.loadingMfa=!0,this.changeEnforceMfa(this.toggle.checked)),this.unchangedSettings||(this.loadingMfa=!0,this.saveDetailSettings(),this.updateDetailSettings())):(this.saveEnforceMfa(),this.unchangedSettings||this.saveDetailSettings(),this.reAuthenticate())}saveEnforceMfa(){this.enforceMfa!==this.toggle.checked&&sessionStorage.setItem("enforce_mfa",this.toggle.checked.toString())}saveDetailSettings(){let r,e=!0,t=!1;this.includeCategories=[],this.excludeRps=[];for(const d in this.categories)if(this.categories[d].value){t=!0,this.includeCategories.push(d);for(const u in this.categories[d].rps)this.categories[d].rps_value[u]?t=!0:(e=!1,this.excludeRps.push(u))}else e=!1;r=e===t?e?JSON.stringify({all:!0}):"{}":JSON.stringify({include_categories:this.includeCategories,exclude_rps:this.excludeRps}),sessionStorage.setItem("settings_mfa",r)}reAuthenticate(){sessionStorage.setItem("mfa_route","/profile/settings/auth"),this.oauthService.logOut(!0),sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.authService.loadOidcConfigData(),this.oauthService.loadDiscoveryDocumentAndLogin()}changeEnforceMfa(e){this.mfaApiService.enforceMfaForAllServices(e).subscribe({next:()=>{e?(this.enforceMfa=!0,this.toggle.checked||this.toggle.toggle()):this.enforceMfa=!1,this.unchangedSettings=!0,this.unchangedEnforce=!0,sessionStorage.removeItem("enforce_mfa"),sessionStorage.removeItem("mfa_route"),this.loadingMfa=!1},error:t=>{"MFA is required"===t.error.error?this.saveSettings(!0):this.loadingMfa=!1}})}updateDetailSettings(){const e=sessionStorage.getItem("settings_mfa");this.mfaApiService.updateDetailSettings(e).subscribe({next:()=>{this.unchangedSettings=!0,this.unchangedEnforce=!0,sessionStorage.removeItem("settings_mfa"),sessionStorage.removeItem("mfa_route"),this.loadingMfa=!1},error:t=>{"MFA is required"===t.error.error?this.saveSettings(!0):this.loadingMfa=!1}})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(tn),n.Y36(jn),n.Y36(Ut),n.Y36(Ql.Ct),n.Y36(Go),n.Y36(C.eN),n.Y36(H2))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-mfa-settings"]],viewQuery:function(e,t){if(1&e&&n.Gf(LU,5),2&e){let r;n.iGM(r=n.CRH())&&(t.toggle=r.first)}},decls:18,vars:23,consts:[["class","ml-auto mr-auto mt-2",4,"ngIf"],[3,"hidden"],["matTooltipPosition","right",1,"toggle-and-button",3,"matTooltip","matTooltipDisabled"],[1,"toggle-ellipsis",3,"disabled","toggleChange"],["toggle",""],["mat-icon-button","",1,"show-button",3,"hidden","disabled","click"],["mat-flat-button","","color","accent",1,"ml-3",3,"disabled","click"],[4,"ngIf"],[1,"ml-auto","mr-auto","mt-2"],[4,"ngFor","ngForOf"],[1,"toggle-and-button"],[1,"ml-4","toggle-ellipsis",3,"checked","toggleChange"],["mat-icon-button","",1,"show-button",3,"click"],[1,"ml-5",3,"checked","toggleChange"]],template:function(e,t){1&e&&(n.YNc(0,HU,1,0,"mat-spinner",0),n.TgZ(1,"div",1)(2,"span",2),n.ALo(3,"translate"),n.ALo(4,"customTranslate"),n.TgZ(5,"mat-slide-toggle",3,4),n.NdJ("toggleChange",function(){return t.toggleEnableMfa()}),n._uU(7),n.ALo(8,"translate"),n.ALo(9,"customTranslate"),n.TgZ(10,"button",5),n.NdJ("click",function(){return t.showDetailSettings()}),n.TgZ(11,"mat-icon"),n._uU(12),n.qZA()()()(),n.TgZ(13,"button",6),n.NdJ("click",function(){return t.saveSettings()}),n._uU(14),n.ALo(15,"translate"),n.qZA(),n.YNc(16,OU,3,3,"div",7),n.YNc(17,IU,1,0,"mat-spinner",0),n.qZA()),2&e&&(n.Q6J("ngIf",t.loadingMfa),n.xp6(1),n.Q6J("hidden",t.loadingMfa),n.xp6(1),n.Q6J("matTooltip",n.lcZ(3,13,n.lcZ(4,15,"AUTHENTICATION.MFA_DISABLED")))("matTooltipDisabled",t.mfaAvailable),n.xp6(3),n.Q6J("disabled",!t.mfaAvailable),n.xp6(2),n.hij("",n.lcZ(8,17,n.lcZ(9,19,"AUTHENTICATION.MFA_TOGGLE"))," "),n.xp6(3),n.Q6J("hidden",!t.enableDetailSettings)("disabled",!t.mfaAvailable),n.xp6(2),n.Oqu(t.showDetail?"keyboard_arrow_up":"keyboard_arrow_down"),n.xp6(1),n.Q6J("disabled",t.unchangedSettings&&t.unchangedEnforce),n.xp6(1),n.hij(" ",n.lcZ(15,21,"AUTHENTICATION.MFA_SAVE")," "),n.xp6(2),n.Q6J("ngIf",t.showDetail),n.xp6(1),n.Q6J("ngIf",t.loadingCategories))},dependencies:[T.sg,T.O5,zn,Ht,Hn,yr,CL,T.Nd,Ke,Xt,DU],styles:[".toggle-and-button[_ngcontent-%COMP%]{display:inline-flex;max-width:100%}.toggle-ellipsis[_ngcontent-%COMP%]{height:40px;display:inline-block;vertical-align:middle;overflow:hidden}.show-button[_ngcontent-%COMP%]{white-space:nowrap}"]}),i})();const NU=["toggle"];function VU(i,a){if(1&i&&(n.TgZ(0,"div"),n._UZ(1,"img",9),n.qZA()),2&i){const e=n.oxw(2);n.xp6(1),n.Q6J("src",e.imageSrc,n.LSH)}}function jU(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div",5)(1,"h1",2),n._uU(2),n.ALo(3,"translate"),n.ALo(4,"customTranslate"),n.qZA(),n.TgZ(5,"p"),n._uU(6),n.ALo(7,"translate"),n.ALo(8,"customTranslate"),n.qZA(),n.YNc(9,VU,2,1,"div",6),n.TgZ(10,"button",7),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onAddAttribute(r.imgAtt,r.imgAttrName,"AddAuthImgDialogComponent","IMG"))}),n._uU(11),n.ALo(12,"translate"),n.ALo(13,"customTranslate"),n.qZA(),n.TgZ(14,"button",8),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onDeleteAttribute(r.imgAtt,r.imgAttrName,"IMG"))}),n._uU(15),n.ALo(16,"translate"),n.ALo(17,"customTranslate"),n.qZA()()}if(2&i){const e=n.oxw();n.xp6(2),n.Oqu(n.lcZ(3,6,n.lcZ(4,8,"AUTHENTICATION.TITLE"))),n.xp6(4),n.Oqu(n.lcZ(7,10,n.lcZ(8,12,"AUTHENTICATION.ANTI_PHISHING_INFO"))),n.xp6(3),n.Q6J("ngIf",e.imageSrc&&e.imageSrc.length),n.xp6(2),n.hij(" ",n.lcZ(12,14,n.lcZ(13,16,"AUTHENTICATION.NEW_IMG"))," "),n.xp6(3),n.Q6J("disabled",!e.imgAtt||!e.imgAtt.value),n.xp6(1),n.hij(" ",n.lcZ(16,18,n.lcZ(17,20,"AUTHENTICATION.DELETE_IMG"))," ")}}function FU(i,a){if(1&i&&(n.TgZ(0,"h4",11),n._uU(1),n.qZA()),2&i){const e=n.oxw(2);n.xp6(1),n.Oqu(e.textAtt.value)}}function zU(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div",5)(1,"h1",2),n._uU(2),n.ALo(3,"translate"),n.ALo(4,"customTranslate"),n.qZA(),n.TgZ(5,"p"),n._uU(6),n.ALo(7,"translate"),n.ALo(8,"customTranslate"),n.qZA(),n.YNc(9,FU,2,1,"h4",10),n.TgZ(10,"button",7),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onAddAttribute(r.textAtt,r.textAttrName,"AddAuthTextDialogComponent","TEXT"))}),n._uU(11),n.ALo(12,"translate"),n.ALo(13,"customTranslate"),n.qZA(),n.TgZ(14,"button",8),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.onDeleteAttribute(r.textAtt,r.textAttrName,"TEXT"))}),n._uU(15),n.ALo(16,"translate"),n.ALo(17,"customTranslate"),n.qZA()()}if(2&i){const e=n.oxw();n.xp6(2),n.Oqu(n.lcZ(3,6,n.lcZ(4,8,"AUTHENTICATION.TITLE_TEXT"))),n.xp6(4),n.Oqu(n.lcZ(7,10,n.lcZ(8,12,"AUTHENTICATION.ANTI_PHISHING_INFO_TEXT"))),n.xp6(3),n.Q6J("ngIf",e.textAtt),n.xp6(2),n.hij(" ",n.lcZ(12,14,n.lcZ(13,16,"AUTHENTICATION.NEW_TEXT"))," "),n.xp6(3),n.Q6J("disabled",!e.textAtt||!e.textAtt.value),n.xp6(1),n.hij(" ",n.lcZ(16,18,n.lcZ(17,20,"AUTHENTICATION.DELETE_TEXT"))," ")}}function UU(i,a){1&i&&n._UZ(0,"mat-spinner",12)}let qU=(()=>{class i{constructor(e,t,r,d,u){this.dialog=e,this.attributesManagerService=t,this.store=r,this.translate=d,this.notificatorService=u,this.imageSrc="",this.mfaUrl="",this.loading=!1}ngOnInit(){const e=this.store.getProperty("mfa");this.imgAttrName=this.store.getProperty("mfa").security_image_attribute,this.textAttrName=this.store.getProperty("mfa").security_text_attribute,this.componentMapper={AddAuthImgDialogComponent:SU,AddAuthTextDialogComponent:EU},this.translate.onLangChange.subscribe(()=>{this.mfaUrl="en"===this.translate.currentLang?e.url_en:e.url_cs}),this.mfaUrl="en"===this.translate.currentLang?e.url_en:e.url_cs,this.displayImageBlock=this.store.getProperty("mfa").enable_security_image,this.displayImageBlock&&this.loadSecurityAttribute(this.imgAttrName,!0).subscribe(t=>{this.imgAtt=t}),this.displayTextBlock=this.store.getProperty("mfa").enable_security_text,this.displayTextBlock&&this.loadSecurityAttribute(this.textAttrName).subscribe(t=>{this.textAtt=t})}loadSecurityAttribute(e,t=!1){this.loading=!0;const r=new Le.x;return this.attributesManagerService.getUserAttributeByName(this.store.getPerunPrincipal().userId,e).subscribe({next:d=>{d?(t&&(this.imageSrc=d.value),r.next(d)):this.attributesManagerService.getAttributeDefinitionByName(e).subscribe(u=>{r.next(u)}),this.loading=!1},error:d=>{console.error(d),this.loading=!1}}),r.asObservable()}onAddAttribute(e,t,r,d){const u=ln();u.width="500px",u.data={theme:"user-theme",attribute:e},this.dialog.open(this.componentMapper[r],u).afterClosed().subscribe(o=>{o&&(this.notificatorService.showSuccess(this.translate.instant(`AUTHENTICATION.SAVE_${d}_SUCCESS`)),this.loadSecurityAttribute(t,"IMG"===d).subscribe(s=>{e=s}))})}onDeleteAttribute(e,t,r){const d=ln();d.width="600px";const u=this.translate.instant(`AUTHENTICATION.DELETE_${r}_DIALOG_TITLE`),c=this.translate.instant(`AUTHENTICATION.DELETE_${r}_DIALOG_DESC`);d.data={doNotShowValues:!0,attribute:e,userId:this.store.getPerunPrincipal().userId,title:u,description:c},this.dialog.open(EA,d).afterClosed().subscribe(s=>{s&&(this.notificatorService.showSuccess(this.translate.instant(`AUTHENTICATION.REMOVE_${r}_SUCCESS`)),this.loadSecurityAttribute(t,"IMG"===r).subscribe(l=>{e=l}))})}redirectToMfa(){window.open(this.mfaUrl,"_blank")}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(on),n.Y36(jn),n.Y36(Ut),n.Y36(Dd),n.Y36(Mr))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-settings-authentication"]],viewQuery:function(e,t){if(1&e&&n.Gf(NU,5),2&e){let r;n.iGM(r=n.CRH())&&(t.toggle=r.first)}},decls:13,vars:12,consts:[[3,"hidden"],["class","mb-5",4,"ngIf"],[1,"page-subtitle"],["mat-flat-button","","color","accent",1,"mb-2",3,"click"],["class","ml-auto mr-auto",4,"ngIf"],[1,"mb-5"],[4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","mt-1","action-button",3,"click"],["color","warn","mat-flat-button","",3,"disabled","click"],["alt","",3,"src"],["class","security-text",4,"ngIf"],[1,"security-text"],[1,"ml-auto","mr-auto"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0),n.YNc(1,jU,18,22,"div",1),n.YNc(2,zU,18,22,"div",1),n.TgZ(3,"h1",2),n._uU(4),n.ALo(5,"translate"),n.ALo(6,"customTranslate"),n.qZA(),n.TgZ(7,"button",3),n.NdJ("click",function(){return t.redirectToMfa()}),n._uU(8),n.ALo(9,"translate"),n.qZA(),n._UZ(10,"br")(11,"perun-web-apps-mfa-settings"),n.qZA(),n.YNc(12,UU,1,0,"mat-spinner",4)),2&e&&(n.Q6J("hidden",t.loading),n.xp6(1),n.Q6J("ngIf",t.displayImageBlock),n.xp6(1),n.Q6J("ngIf",t.displayTextBlock),n.xp6(2),n.Oqu(n.lcZ(5,6,n.lcZ(6,8,"AUTHENTICATION.MFA"))),n.xp6(4),n.hij(" ",n.lcZ(9,10,"AUTHENTICATION.MFA_INFO")," "),n.xp6(4),n.Q6J("ngIf",t.loading))},dependencies:[T.O5,Ht,Hn,BU,Ke,Xt],styles:[".security-text[_ngcontent-%COMP%]{font-family:FreeMono,monospace;color:gray}"]}),i})(),YU=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[T.ez,Ka,eo,xl,TL,po,Gs,Xs,Kp,_A]}),i})(),WU=(()=>{class i{constructor(e,t){this.auth=e,this.router=t}ngOnInit(){(this.auth.isLoggedIn()||sessionStorage.getItem("baPrincipal"))&&this.router.navigate([""],{queryParamsHandling:"merge"})}startAuth(){this.auth.startAuthentication()}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Go),n.Y36(Dn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-login-screen"]],decls:11,vars:6,consts:[[1,"container","login-con"],[1,"row"],[1,"ml-auto","mr-auto","d-flex","flex-column","align-items-center"],[1,"mb-3"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h4",3),n._uU(4),n.ALo(5,"translate"),n.qZA(),n.TgZ(6,"button",4),n.NdJ("click",function(){return t.startAuth()}),n._uU(7),n.ALo(8,"translate"),n.TgZ(9,"mat-icon"),n._uU(10," login "),n.qZA()()()()()),2&e&&(n.xp6(4),n.hij(" ",n.lcZ(5,2,"SHARED_LIB.PERUN.LOGIN.TEXT")," "),n.xp6(3),n.hij(" ",n.lcZ(8,4,"SHARED_LIB.PERUN.LOGIN.SIGN_IN")," "))},dependencies:[Ht,zn,Ke],styles:[".login-con[_ngcontent-%COMP%]{padding:120px 0}"]}),i})();function GU(i,a){1&i&&(n.TgZ(0,"perun-web-apps-alert",8),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.WRONG_LOGIN_OR_PASSWORD")," "))}let $U=(()=>{class i{constructor(e,t,r){this.authzService=e,this.auth=t,this.router=r,this.usernameCtrl=new zo(null,[bi.required]),this.passwordCtrl=new zo(null,[bi.required]),this.wrongUsernameOrPassword=!1}startAuth(){this.usernameCtrl.invalid||this.passwordCtrl.invalid||(sessionStorage.setItem("basicUsername",this.usernameCtrl.value),sessionStorage.setItem("basicPassword",this.passwordCtrl.value),this.authzService.getPerunPrincipal().subscribe({next:e=>{sessionStorage.setItem("baPrincipal",JSON.stringify(e)),location.reload()},error:()=>{this.wrongUsernameOrPassword=!0}}))}ngOnInit(){(this.auth.isLoggedIn()||sessionStorage.getItem("baPrincipal"))&&this.router.navigate([""],{queryParamsHandling:"merge"})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(As),n.Y36(Go),n.Y36(Dn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-login-screen-service-access"]],decls:28,vars:23,consts:[[1,"container","login-con","vo-theme","top-padding"],[1,"row"],[1,"ml-auto","mr-auto","d-flex","flex-column","align-items-center"],["alert_type","error",4,"ngIf"],["appearance","outline"],["matInput","","required","",3,"formControl","keyup.enter"],["matInput","","required","",3,"formControl","type","keyup.enter"],["mat-raised-button","",1,"black",3,"disabled","click"],["alert_type","error"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h2"),n._uU(4),n.ALo(5,"translate"),n.qZA(),n.YNc(6,GU,3,3,"perun-web-apps-alert",3),n.TgZ(7,"mat-form-field",4)(8,"mat-label"),n._uU(9),n.ALo(10,"translate"),n.qZA(),n.TgZ(11,"input",5),n.NdJ("keyup.enter",function(){return t.startAuth()}),n.qZA(),n.TgZ(12,"mat-error"),n._uU(13),n.ALo(14,"translate"),n.qZA()(),n.TgZ(15,"mat-form-field",4)(16,"mat-label"),n._uU(17),n.ALo(18,"translate"),n.qZA(),n.TgZ(19,"input",6),n.NdJ("keyup.enter",function(){return t.startAuth()}),n.qZA(),n.TgZ(20,"mat-error"),n._uU(21),n.ALo(22,"translate"),n.qZA()(),n.TgZ(23,"button",7),n.NdJ("click",function(){return t.startAuth()}),n._uU(24),n.ALo(25,"translate"),n.TgZ(26,"mat-icon"),n._uU(27," login "),n.qZA()()()()()),2&e&&(n.xp6(4),n.Oqu(n.lcZ(5,11,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.LABEL")),n.xp6(2),n.Q6J("ngIf",t.wrongUsernameOrPassword),n.xp6(3),n.Oqu(n.lcZ(10,13,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME")),n.xp6(2),n.Q6J("formControl",t.usernameCtrl),n.xp6(2),n.hij(" ",n.lcZ(14,15,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME_ERROR")," "),n.xp6(4),n.Oqu(n.lcZ(18,17,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD")),n.xp6(2),n.Q6J("formControl",t.passwordCtrl)("type","password"),n.xp6(2),n.hij(" ",n.lcZ(22,19,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD_ERROR")," "),n.xp6(2),n.Q6J("disabled",t.usernameCtrl.invalid||t.passwordCtrl.invalid),n.xp6(1),n.hij(" ",n.lcZ(25,21,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.SIGN_IN")," "))},dependencies:[T.O5,Ht,zn,Na,di,as,_i,Ai,Nr,sr,ji,yi,Ke],styles:[".top-padding[_ngcontent-%COMP%]{padding:120px 0}mat-form-field.mat-form-field[_ngcontent-%COMP%]{font-size:14px;width:250px}.black[_ngcontent-%COMP%]{background-color:#000;color:#fff}"]}),i})(),ZU=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-consents-page"]],decls:1,vars:0,template:function(e,t){1&e&&n._UZ(0,"router-outlet")},dependencies:[Wr]}),i})();function JU(i,a){1&i&&n._UZ(0,"mat-spinner",4)}function QU(i,a){if(1&i&&(n.TgZ(0,"li"),n._uU(1),n.qZA()),2&i){const e=a.$implicit;n.xp6(1),n.hij(" ",e.displayName," ")}}function XU(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div")(1,"h1",5),n._uU(2),n.ALo(3,"translate"),n.ALo(4,"customTranslate"),n.qZA(),n.TgZ(5,"div",6),n._uU(6),n.qZA(),n.TgZ(7,"div"),n._uU(8),n.ALo(9,"translate"),n.ALo(10,"customTranslate"),n.TgZ(11,"ul"),n.YNc(12,QU,2,1,"li",7),n.qZA()(),n.TgZ(13,"div",0)(14,"button",8),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.rejectConsent())}),n._uU(15),n.ALo(16,"translate"),n.ALo(17,"customTranslate"),n.qZA(),n.TgZ(18,"button",9),n.NdJ("click",function(){n.CHM(e);const r=n.oxw();return n.KtG(r.grantConsent())}),n._uU(19),n.ALo(20,"translate"),n.ALo(21,"customTranslate"),n.qZA()()()}if(2&i){const e=n.oxw();n.xp6(2),n.hij(" ",n.lcZ(3,6,n.lcZ(4,8,"CONSENTS.REQUEST.TITLE"))," "),n.xp6(4),n.Oqu(e.consent.consentHub.name),n.xp6(2),n.hij(" ",n.lcZ(9,10,n.lcZ(10,12,"CONSENTS.REQUEST.CONSENT_TEXT_UNSIGNED")),": "),n.xp6(4),n.Q6J("ngForOf",e.consent.attributes),n.xp6(3),n.hij(" ",n.lcZ(16,14,n.lcZ(17,16,"CONSENTS.REQUEST.REJECT_CONSENT_BUTTON"))," "),n.xp6(4),n.hij(" ",n.lcZ(20,18,n.lcZ(21,20,"CONSENTS.REQUEST.GRANT_CONSENT_BUTTON"))," ")}}let KU=(()=>{class i{constructor(e,t,r,d,u,c){this.notificator=e,this.translate=t,this.consentService=r,this.route=d,this.apiRequest=u,this.router=c,this.loading=!1}ngOnInit(){this.loading=!0,this.route.params.subscribe(e=>{const t=Number(e.consentId);this.apiRequest.dontHandleErrorForNext(),this.consentService.getConsentById(t).subscribe({next:r=>{this.consent=r,"UNSIGNED"!==this.consent.status&&this.router.navigate(["/profile","consents"],{queryParamsHandling:"merge"}),this.loading=!1},error:r=>{this.loading=!1,"ConsentNotExistsException"!==r.name&&this.notificator.showRPCError(r),this.router.navigate(["/profile","consents"],{queryParamsHandling:"merge"})}})})}grantConsent(){this.loading=!0,this.consentService.changeConsentStatus(this.consent.id,"GRANTED").subscribe(()=>{this.notificator.showSuccess(this.translate.instant("CONSENTS.CONSENT_GRANTED")+this.consent.consentHub.name),this.router.navigate(["/profile","consents"],{queryParamsHandling:"merge"})},()=>this.loading=!1)}rejectConsent(){this.loading=!0,this.consentService.changeConsentStatus(this.consent.id,"REVOKED").subscribe({next:()=>{this.notificator.showSuccess(this.translate.instant("CONSENTS.CONSENT_REJECTED")+this.consent.consentHub.name),this.router.navigate(["/profile","consents"],{queryParamsHandling:"merge"})},error:()=>this.loading=!1})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Mr),n.Y36(tn),n.Y36(ys),n.Y36(mi),n.Y36(cg),n.Y36(Dn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-consent-request"]],decls:4,vars:2,consts:[[1,"d-flex"],[1,"card","p-4","mat-elevation-z3","ml-auto","mr-auto"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"page-title"],[1,"page-subtitle"],[4,"ngFor","ngForOf"],["mat-flat-button","","color","warn",1,"mr-2","ml-auto",3,"click"],["mat-flat-button","","color","accent",3,"click"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"div",1),n.YNc(2,JU,1,0,"mat-spinner",2),n.YNc(3,XU,22,22,"div",3),n.qZA()()),2&e&&(n.xp6(2),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading))},dependencies:[T.sg,T.O5,Ht,Hn,Ke,Xt],styles:[".minimize-checkbox{font-size:.7rem;color:gray}\n"],encapsulation:2}),i})();function eq(i,a){1&i&&(n.TgZ(0,"span")(1,"mat-icon",1),n._uU(2,"priority_high"),n.qZA(),n.TgZ(3,"span"),n._uU(4),n.ALo(5,"translate"),n.ALo(6,"customTranslate"),n.qZA()()),2&i&&(n.xp6(4),n.hij(" ",n.lcZ(5,1,n.lcZ(6,3,"CONSENTS.STATUS_UNSIGNED")),""))}function tq(i,a){1&i&&(n.TgZ(0,"span")(1,"mat-icon",1),n._uU(2,"close"),n.qZA(),n.TgZ(3,"span"),n._uU(4),n.ALo(5,"translate"),n.ALo(6,"customTranslate"),n.qZA()()),2&i&&(n.xp6(4),n.hij(" ",n.lcZ(5,1,n.lcZ(6,3,"CONSENTS.STATUS_REVOKED")),""))}function nq(i,a){1&i&&(n.TgZ(0,"span")(1,"mat-icon",2),n._uU(2,"check"),n.qZA(),n.TgZ(3,"span"),n._uU(4),n.ALo(5,"translate"),n.ALo(6,"customTranslate"),n.qZA()()),2&i&&(n.xp6(4),n.hij(" ",n.lcZ(5,1,n.lcZ(6,3,"CONSENTS.STATUS_GRANTED")),""))}let iq=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-consent-status"]],inputs:{consentStatus:"consentStatus"},decls:3,vars:3,consts:[[4,"ngIf"],["color","warn"],["color","accent"]],template:function(e,t){1&e&&(n.YNc(0,eq,7,5,"span",0),n.YNc(1,tq,7,5,"span",0),n.YNc(2,nq,7,5,"span",0)),2&e&&(n.Q6J("ngIf","UNSIGNED"===t.consentStatus),n.xp6(1),n.Q6J("ngIf","REVOKED"===t.consentStatus),n.xp6(1),n.Q6J("ngIf","GRANTED"===t.consentStatus))},dependencies:[T.O5,zn,Ke,Xt],styles:["mat-icon[_ngcontent-%COMP%]{vertical-align:bottom}"]}),i})();function rq(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"th",16)(1,"mat-checkbox",17),n.NdJ("change",function(r){n.CHM(e);const d=n.oxw(2);return n.KtG(r?d.masterToggle():null)}),n.qZA()()}if(2&i){const e=n.oxw().ngIf,t=n.oxw();n.xp6(1),n.Q6J("checked",t.selection.hasValue()&&e.all)("indeterminate",t.selection.hasValue()&&!e.all)}}function aq(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"td",18)(1,"mat-checkbox",19),n.NdJ("click",function(r){return r.stopPropagation()})("change",function(r){const u=n.CHM(e).$implicit,c=n.oxw(2);return n.KtG(r?c.selection.toggle(u):null)}),n.qZA()()}if(2&i){const e=a.$implicit,t=n.oxw(2);n.xp6(1),n.Q6J("checked",t.selection.isSelected(e))}}function sq(i,a){1&i&&(n.ynx(0,13),n.YNc(1,rq,2,2,"th",14),n.YNc(2,aq,2,1,"td",15),n.BQk())}function oq(i,a){1&i&&(n.TgZ(0,"th",20),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,n.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.STATUS"))," "))}function lq(i,a){if(1&i&&(n.TgZ(0,"td",21),n._UZ(1,"perun-web-apps-consent-status",22),n.qZA()),2&i){const e=a.$implicit;n.xp6(1),n.Q6J("consentStatus",e.status)}}function cq(i,a){1&i&&(n.TgZ(0,"th",20),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,n.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.SERVICE_NAME"))," "))}function dq(i,a){if(1&i&&(n.TgZ(0,"td",21),n._uU(1),n.qZA()),2&i){const e=a.$implicit;n.xp6(1),n.hij(" ",e.consentHub.name," ")}}function uq(i,a){1&i&&(n.TgZ(0,"div"),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,n.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.GRANTED_TEXT"))," : "))}function hq(i,a){1&i&&(n.TgZ(0,"div"),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,n.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.REVOKED_TEXT"))," : "))}function pq(i,a){1&i&&(n.TgZ(0,"div"),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,n.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.UNSIGNED_TEXT"))," : "))}function fq(i,a){if(1&i&&(n.TgZ(0,"li"),n._uU(1),n.qZA()),2&i){const e=a.$implicit;n.xp6(1),n.hij(" ",e.displayName," ")}}function mq(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"button",30),n.NdJ("click",function(){n.CHM(e);const r=n.oxw().$implicit,d=n.oxw();return n.KtG(d.rejectConsent.emit(r.id))}),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()}if(2&i){const e=n.oxw().$implicit;n.xp6(1),n.hij(" ",n.lcZ(2,1,n.lcZ(3,3,"UNSIGNED"===e.status?"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.REJECT_CONSENT_BUTTON":"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.REVOKE_CONSENT_BUTTON"))," ")}}function gq(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"button",31),n.NdJ("click",function(){n.CHM(e);const r=n.oxw().$implicit,d=n.oxw();return n.KtG(d.grantConsent.emit(r.id))}),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()}2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,n.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.GRANT_CONSENT_BUTTON"))," "))}function _q(i,a){if(1&i&&(n.TgZ(0,"td",21)(1,"div",23)(2,"div",24),n.YNc(3,uq,4,5,"div",25),n.YNc(4,hq,4,5,"div",25),n.YNc(5,pq,4,5,"div",25),n.TgZ(6,"ul"),n.YNc(7,fq,2,1,"li",26),n.qZA(),n.TgZ(8,"div",27),n.YNc(9,mq,4,5,"button",28),n.YNc(10,gq,4,5,"button",29),n.qZA()()()()),2&i){const e=a.$implicit,t=n.oxw();n.uIk("colspan",t.displayedColumns.length),n.xp6(1),n.Q6J("@detailExpand",e===t.expandedConsent?"expanded":"collapsed"),n.xp6(2),n.Q6J("ngIf","GRANTED"===e.status),n.xp6(1),n.Q6J("ngIf","REVOKED"===e.status),n.xp6(1),n.Q6J("ngIf","UNSIGNED"===e.status),n.xp6(2),n.Q6J("ngForOf",e.attributes),n.xp6(2),n.Q6J("ngIf","REVOKED"!==e.status),n.xp6(1),n.Q6J("ngIf","GRANTED"!==e.status)}}function bq(i,a){1&i&&n._UZ(0,"tr",32)}function Aq(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"tr",33),n.NdJ("click",function(){const d=n.CHM(e).$implicit,u=n.oxw();return n.KtG(u.expandedConsent=u.expandedConsent===d?null:d)}),n.qZA()}if(2&i){const e=a.$implicit,t=n.oxw();n.ekj("example-expanded-row",t.expandedConsent===e)}}function yq(i,a){1&i&&n._UZ(0,"tr",34)}function wq(i,a){1&i&&(n.TgZ(0,"perun-web-apps-alert",35),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,n.lcZ(3,3,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT")),"\n"))}function Mq(i,a){1&i&&(n.TgZ(0,"perun-web-apps-alert",35),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()),2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,n.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.NO_CONSENTS")),"\n"))}const Cq=function(i){return{all:i}},vq=function(){return["expandedDetail"]};let Tq=(()=>{class i{constructor(e){this.tableCheckbox=e,this.filterValue="",this.consents=[],this.selection=new Yi(!0,[]),this.displayedColumns=["select","status","name"],this.grantConsent=new n.vpe,this.rejectConsent=new n.vpe,this.pageSizeOptions=$l}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,t){switch(t){case"name":return e.consentHub.name;case"status":return e.status;default:return""}}ngOnChanges(){this.dataSource=new Zo(this.consents),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}exportAllData(e){Fa(ja(this.dataSource.filteredData,this.displayedColumns,i.getDataForColumn),e)}exportDisplayedData(e){const t=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,r=t+this.dataSource.paginator.pageSize;Fa(ja(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(t,r),this.displayedColumns,i.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>Jl(e,t,this.displayedColumns,i.getDataForColumn),this.dataSource.sortData=(e,t)=>Zl(e,t,i.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(cA))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-consents-list"]],viewQuery:function(e,t){if(1&e&&(n.Gf(os,7),n.Gf(ps,7)),2&e){let r;n.iGM(r=n.CRH())&&(t.child=r.first),n.iGM(r=n.CRH())&&(t.matSort=r.first)}},inputs:{filterValue:"filterValue",tableId:"tableId",consents:"consents",selection:"selection",displayedColumns:"displayedColumns"},outputs:{grantConsent:"grantConsent",rejectConsent:"rejectConsent"},features:[n.TTD],decls:18,vars:17,consts:[[1,"card",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","status","matSortDirection","asc","matSortDisableClear","","multiTemplateDataRows","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","status"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","expandedDetail"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","dark-hover-list-item consent-row",3,"example-expanded-row","click",4,"matRowDef","matRowDefColumns"],["mat-row","","class","consent-detail-row",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size align-checkbox",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"checked","click","change"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"consentStatus"],[1,"consent-detail"],[1,"p-3"],[4,"ngIf"],[4,"ngFor","ngForOf"],[1,"d-flex"],["mat-flat-button","","class","mr-2","color","warn",3,"click",4,"ngIf"],["mat-flat-button","","color","accent",3,"click",4,"ngIf"],["mat-flat-button","","color","warn",1,"mr-2",3,"click"],["mat-flat-button","","color","accent",3,"click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item","consent-row",3,"click"],["mat-row","",1,"consent-detail-row"],["alert_type","warn"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportDisplayedData",function(d){return t.exportDisplayedData(d)})("exportAllData",function(d){return t.exportAllData(d)}),n.TgZ(2,"table",2),n.YNc(3,sq,3,0,"ng-container",3),n.ALo(4,"isAllSelected"),n.ynx(5,4),n.YNc(6,oq,4,5,"th",5),n.YNc(7,lq,2,1,"td",6),n.BQk(),n.ynx(8,7),n.YNc(9,cq,4,5,"th",5),n.YNc(10,dq,2,1,"td",6),n.BQk(),n.ynx(11,8),n.YNc(12,_q,11,8,"td",6),n.BQk(),n.YNc(13,bq,1,0,"tr",9),n.YNc(14,Aq,1,2,"tr",10),n.YNc(15,yq,1,0,"tr",11),n.qZA()()(),n.YNc(16,wq,4,5,"perun-web-apps-alert",12),n.YNc(17,Mq,4,5,"perun-web-apps-alert",12)),2&e&&(n.Q6J("hidden",0===t.dataSource.filteredData.length),n.xp6(1),n.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),n.xp6(1),n.Q6J("dataSource",t.dataSource),n.xp6(1),n.Q6J("ngIf",n.VKq(14,Cq,n.xi3(4,11,t.dataSource,t.selection.selected.length))),n.xp6(10),n.Q6J("matHeaderRowDef",t.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",t.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",n.DdM(16,vq)),n.xp6(1),n.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.dataSource.data.length),n.xp6(1),n.Q6J("ngIf",0===t.dataSource.data.length))},dependencies:[T.sg,T.O5,ic,io,cs,ro,ds,ls,ao,us,hs,so,oo,ps,Ag,yi,Ht,os,iq,Ke,Xt,pT],styles:["tr.consent-detail-row[_ngcontent-%COMP%]{height:0!important}.consent-row[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{cursor:pointer;border-bottom-width:0!important}.consent-detail[_ngcontent-%COMP%]{overflow:hidden;display:flex;flex-direction:column}th[_ngcontent-%COMP%], td.mat-cell[_ngcontent-%COMP%]{padding:0!important}.mat-cell[_ngcontent-%COMP%], .mat-footer-cell[_ngcontent-%COMP%]{font-size:1rem!important}"],data:{animation:[En("detailExpand",[ut("collapsed",je({height:"0px",minHeight:"0"})),ut("expanded",je({height:"*"})),Ot("expanded <=> collapsed",Rt("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}}),i})();const HL=function(){return["status","name"]};function xq(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div")(1,"div",4),n._uU(2),n.ALo(3,"translate"),n.ALo(4,"customTranslate"),n.qZA(),n.TgZ(5,"perun-web-apps-immediate-filter",5),n.NdJ("filter",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.applyFilterUnsigned(r))}),n.ALo(6,"translate"),n.ALo(7,"customTranslate"),n.qZA(),n.TgZ(8,"perun-web-apps-consents-list",6),n.NdJ("grantConsent",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.grantConsent(r))})("rejectConsent",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.rejectConsent(r))}),n.qZA()()}if(2&i){const e=n.oxw();n.xp6(2),n.hij(" ",n.lcZ(3,6,n.lcZ(4,8,"CONSENTS.UNSIGNED_CONSENTS"))," "),n.xp6(3),n.Q6J("placeholder",n.lcZ(6,10,n.lcZ(7,12,"CONSENTS.FILTER"))),n.xp6(3),n.Q6J("consents",e.unsignedConsents)("filterValue",e.filterValueUnsigned)("tableId","TABLE_USER_CONSENTS")("displayedColumns",n.DdM(14,HL))}}function Sq(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"div")(1,"div",7),n._uU(2),n.ALo(3,"translate"),n.ALo(4,"customTranslate"),n.qZA(),n.TgZ(5,"perun-web-apps-immediate-filter",5),n.NdJ("filter",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.applyFilterSigned(r))}),n.ALo(6,"translate"),n.ALo(7,"customTranslate"),n.qZA(),n.TgZ(8,"perun-web-apps-consents-list",8),n.NdJ("grantConsent",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.grantConsent(r))})("rejectConsent",function(r){n.CHM(e);const d=n.oxw();return n.KtG(d.rejectConsent(r))}),n.qZA()()}if(2&i){const e=n.oxw();n.xp6(2),n.hij(" ",n.lcZ(3,6,n.lcZ(4,8,"CONSENTS.PROCESSED_CONSENTS"))," "),n.xp6(3),n.Q6J("placeholder",n.lcZ(6,10,n.lcZ(7,12,"CONSENTS.FILTER"))),n.xp6(3),n.Q6J("consents",e.signedConsents)("tableId","TABLE_USER_CONSENTS")("filterValue",e.filterValueSigned)("displayedColumns",n.DdM(14,HL))}}function Eq(i,a){1&i&&n._UZ(0,"mat-spinner",9)}let Dq=(()=>{class i{constructor(e,t,r,d,u){this.router=e,this.notificator=t,this.translate=r,this.storeService=d,this.consentService=u,this.loading=!1,this.unsignedConsents=[],this.signedConsents=[],this.filterValueUnsigned="",this.filterValueSigned=""}ngOnInit(){this.loading=!0,this.consentService.getConsentsForUser(this.storeService.getPerunPrincipal().userId).subscribe(e=>{this.unsignedConsents=e.filter(t=>"UNSIGNED"===t.status),this.signedConsents=e.filter(t=>"UNSIGNED"!==t.status),this.loading=!1},()=>this.loading=!1)}grantAll(){this.loading=!0,this.notificator.showSuccess(this.translate.instant("CONSENTS.GRANT_ALL_NOTIFICATION")),this.loading=!1}rejectConsent(e){this.loading=!0,this.consentService.changeConsentStatus(e,"REVOKED").subscribe(()=>{const t=this.unsignedConsents.find(d=>d.id===e)??this.signedConsents.find(d=>d.id===e);this.moveConsent(t);const r=this.translate.instant("GRANTED"===t.status?"CONSENTS.CONSENT_REVOKED":"CONSENTS.CONSENT_REJECTED");t.status="REVOKED",this.notificator.showSuccess(r+t.consentHub.name),this.loading=!1},()=>this.loading=!1)}moveConsent(e){"UNSIGNED"===e.status&&(this.signedConsents=[...this.signedConsents,e],this.unsignedConsents=this.unsignedConsents.filter(t=>t.id!==e.id))}grantConsent(e){this.loading=!0,this.consentService.changeConsentStatus(e,"GRANTED").subscribe(()=>{const t=this.unsignedConsents.find(r=>r.id===e)??this.signedConsents.find(r=>r.id===e);this.moveConsent(t),t.status="GRANTED",this.notificator.showSuccess(this.translate.instant("CONSENTS.CONSENT_GRANTED")+t.consentHub.name),this.loading=!1},()=>this.loading=!1)}applyFilterUnsigned(e){this.filterValueUnsigned=e}applyFilterSigned(e){this.filterValueSigned=e}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Dn),n.Y36(Mr),n.Y36(tn),n.Y36(Ut),n.Y36(ys))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-consents-preview"]],decls:8,vars:8,consts:[[1,"page-title","mt-2"],[1,"user-theme"],[4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[1,"page-subtitle"],[3,"placeholder","filter"],[3,"consents","filterValue","tableId","displayedColumns","grantConsent","rejectConsent"],[1,"page-subtitle","mt-4"],[3,"consents","tableId","filterValue","displayedColumns","grantConsent","rejectConsent"],[1,"ml-auto","mr-auto"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA(),n.TgZ(4,"div",1),n.YNc(5,xq,9,15,"div",2),n.YNc(6,Sq,9,15,"div",2),n.YNc(7,Eq,1,0,"mat-spinner",3),n.qZA()),2&e&&(n.xp6(1),n.hij(" ",n.lcZ(2,4,n.lcZ(3,6,"CONSENTS.TITLE")),"\n"),n.xp6(4),n.Q6J("ngIf",!t.loading&&0!==t.unsignedConsents.length),n.xp6(1),n.Q6J("ngIf",!t.loading),n.xp6(1),n.Q6J("ngIf",t.loading))},dependencies:[T.O5,cf,Tq,Hn,Ke,Xt]}),i})();function Lq(i,a){1&i&&n._UZ(0,"mat-spinner",6)}function Hq(i,a){if(1&i&&(n.TgZ(0,"div",7),n._UZ(1,"perun-web-apps-password-form",8),n.qZA()),2&i){const e=n.oxw();n.xp6(1),n.Q6J("formGroup",e.pwdForm)("namespace",e.data.namespace)("language",e.lang)}}let Rq=(()=>{class i{constructor(e,t,r,d,u,c,o){this.dialogRef=e,this.data=t,this.userManager=r,this.notificator=d,this.translate=u,this.formBuilder=c,this.apiRequestConfiguration=o,this.loading=!1,this.lang=this.translate.currentLang,this.pwdForm=this.formBuilder.group({passwordCtrl:["",bi.required,[QE(this.data.namespace,this.userManager,this.apiRequestConfiguration)]],passwordAgainCtrl:["",bi.required]},{validators:hE.passwordMatchValidator})}cancel(){this.dialogRef.close()}activate(){this.loading=!0;const e=this.pwdForm.get("passwordCtrl").value;this.userManager.reservePasswordForUser({user:this.data.userId,namespace:this.data.namespace,password:e}).pipe((0,An.w)(()=>this.userManager.validatePasswordForUser(this.data.userId,this.data.namespace))).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.ACTIVATE_LOCAL_ACCOUNT.SUCCESS")),this.dialogRef.close()},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ln),n.Y36(ni),n.Y36(li),n.Y36(Mr),n.Y36(tn),n.Y36(hd),n.Y36(cg))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-activate-local-account-dialog"]],decls:15,vars:18,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","","class","dialog-container user-theme",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["mat-flat-button","","color","accent",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container","user-theme"],[3,"formGroup","namespace","language"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA(),n.YNc(4,Lq,1,0,"mat-spinner",1),n.YNc(5,Hq,2,3,"div",2),n.TgZ(6,"div",3)(7,"button",4),n.NdJ("click",function(){return t.cancel()}),n._uU(8),n.ALo(9,"translate"),n.ALo(10,"customTranslate"),n.qZA(),n.TgZ(11,"button",5),n.NdJ("click",function(){return t.activate()}),n._uU(12),n.ALo(13,"translate"),n.ALo(14,"customTranslate"),n.qZA()()),2&e&&(n.xp6(1),n.Oqu(n.lcZ(2,6,n.lcZ(3,8,"DIALOGS.ACTIVATE_LOCAL_ACCOUNT.TITLE"))),n.xp6(3),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading),n.xp6(3),n.hij(" ",n.lcZ(9,10,n.lcZ(10,12,"DIALOGS.ACTIVATE_LOCAL_ACCOUNT.CANCEL"))," "),n.xp6(3),n.Q6J("disabled",t.loading||t.pwdForm.invalid),n.xp6(1),n.hij(" ",n.lcZ(13,14,n.lcZ(14,16,"DIALOGS.ACTIVATE_LOCAL_ACCOUNT.ACTIVATE"))," "))},dependencies:[T.O5,Ht,Xn,ii,Un,cd,Qs,Hn,XE,Ke,Xt]}),i})();function Pq(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"button",4),n.NdJ("click",function(){n.CHM(e);const r=n.oxw(2);return n.KtG(r.openPwdReset())}),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()}2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,n.lcZ(3,3,"LOCAL_ACCOUNT.CHANGE_PWD"))," "))}function kq(i,a){if(1&i){const e=n.EpF();n.TgZ(0,"button",4),n.NdJ("click",function(){n.CHM(e);const r=n.oxw(2);return n.KtG(r.activateAccount())}),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA()}2&i&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,n.lcZ(3,3,"LOCAL_ACCOUNT.ACTIVATE"))," "))}function Oq(i,a){if(1&i&&(n.TgZ(0,"div"),n.YNc(1,Pq,4,5,"button",3),n.YNc(2,kq,4,5,"button",3),n.qZA()),2&i){const e=a.ngIf;n.xp6(1),n.Q6J("ngIf",e.exists),n.xp6(1),n.Q6J("ngIf",!e.exists)}}const Iq=function(i){return{exists:i}},Bq=[{path:"",redirectTo:"profile",pathMatch:"full"},{path:"login",component:WU},{path:"service-access",component:$U},{path:"profile",component:wU,data:{breadcrumb:"MENU_ITEMS.PROFILE"},children:[{path:"",component:BB,data:{breadcrumb:"MENU_ITEMS.PROFILE"}},{path:"identities",component:gN,data:{breadcrumb:"MENU_ITEMS.IDENTITIES"}},{path:"groups",component:e3,data:{breadcrumb:"MENU_ITEMS.GROUPS"}},{path:"services",component:gV,data:{breadcrumb:"MENU_ITEMS.SERVICES"}},{path:"organizations",component:SV,data:{breadcrumb:"MENU_ITEMS.VOS"}},{path:"privacy",component:yU,data:{breadcrumb:"MENU_ITEMS.PRIVACY"}},{path:"consents",component:ZU,data:{breadcrumb:"MENU_ITEMS.CONSENTS"},children:[{path:"",component:Dq,data:{breadcrumb:"MENU_ITEMS.CONSENTS"}},{path:":consentId",component:KU,data:{breadcrumb:"MENU_ITEMS.CONSENT_REQUEST"}}]},{path:"settings",component:EV,data:{breadcrumb:"MENU_ITEMS.SETTINGS"},children:[{path:"",component:ZV,data:{breadcrumb:"MENU_ITEMS.SETTINGS"}},{path:"altPasswords",component:GV,data:{breadcrumb:"SETTINGS.ALTERNATIVE_PASSWORDS"}},{path:"auth",component:qU,data:{breadcrumb:"SETTINGS.AUTHENTICATION"}},{path:"dataQuotas",component:(()=>{class i{constructor(e){this.store=e}ngOnInit(){this.user=this.store.getPerunPrincipal().user}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ut))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-settings-data-quotas"]],decls:1,vars:1,consts:[[3,"user"]],template:function(e,t){1&e&&n._UZ(0,"perun-web-apps-data-quotas",0),2&e&&n.Q6J("user",t.user)},dependencies:[Hz]}),i})(),data:{breadcrumb:"SETTINGS.DATA_QUOTAS"}},{path:"localAccount",component:(()=>{class i{constructor(e,t,r,d,u){this.userService=e,this.store=t,this.appUrlService=r,this.dialog=d,this.router=u,this.userId=this.store.getPerunPrincipal().userId,this.namespace=this.store.getProperty("local_account_namespace"),this.loginExists$=this.userService.loginExist(this.userId,this.namespace)}openPwdReset(){let e=this.appUrlService.getUrlForOtherApplication($o.PwdReset,this.namespace);e+="&reset=true",window.open(e,"_blank")}activateAccount(){const e=ln();e.width="550px",e.data={userId:this.userId,namespace:this.namespace},this.dialog.open(Rq,e).afterClosed().subscribe(()=>{this.router.navigate(["/profile","settings","localAccount"],{queryParamsHandling:"merge"})})}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(li),n.Y36(Ut),n.Y36(dA),n.Y36(on),n.Y36(Dn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-settings-local-account"]],decls:10,vars:15,consts:[[1,"page-title"],[1,"page-subtitle"],[4,"ngIf"],["mat-flat-button","","color","accent",3,"click",4,"ngIf"],["mat-flat-button","","color","accent",3,"click"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"customTranslate"),n.qZA(),n.TgZ(4,"div",1),n._uU(5),n.ALo(6,"translate"),n.ALo(7,"customTranslate"),n.qZA(),n.YNc(8,Oq,3,2,"div",2),n.ALo(9,"async")),2&e&&(n.xp6(1),n.Oqu(n.lcZ(2,3,n.lcZ(3,5,"LOCAL_ACCOUNT.TITLE"))),n.xp6(4),n.hij(" ",n.lcZ(6,7,n.lcZ(7,9,"LOCAL_ACCOUNT.DESC")),"\n"),n.xp6(3),n.Q6J("ngIf",n.VKq(13,Iq,n.lcZ(9,11,t.loginExists$))))},dependencies:[T.O5,Ht,T.Ov,Ke,Xt]}),i})(),data:{breadcrumb:"SETTINGS.LOCAL_ACCOUNT"}},{path:"mailingLists",component:(()=>{class i{constructor(e){this.store=e}ngOnInit(){this.user=this.store.getPerunPrincipal().user}}return i.\u0275fac=function(e){return new(e||i)(n.Y36(Ut))},i.\u0275cmp=n.Xpm({type:i,selectors:[["perun-web-apps-settings-mailing-lists"]],decls:1,vars:2,consts:[[3,"user","isService"]],template:function(e,t){1&e&&n._UZ(0,"perun-web-apps-mailing-lists",0),2&e&&n.Q6J("user",t.user)("isService",!1)},dependencies:[Nz]}),i})(),data:{breadcrumb:"SETTINGS.MAILING_LISTS"}},{path:"prefShells",component:ej,data:{breadcrumb:"SETTINGS.PREFERRED_SHELLS"}},{path:"prefGroupNames",component:aj,data:{breadcrumb:"SETTINGS.PREFERRED_UNIX_GROUP_NAMES"}},{path:"sambaPassword",component:cj,data:{breadcrumb:"SETTINGS.SAMBA_PASSWORD"}},{path:"sshKeys",component:Fz,data:{breadcrumb:"SETTINGS.SSH_KEYS"}},{path:"passwordReset",component:ez,data:{breadcrumb:"SETTINGS.PASSWORD_RESET"}}]}]}];let Nq=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[xl.forRoot(Bq,{preloadingStrategy:Sy,scrollPositionRestoration:"enabled",relativeLinkResolution:"legacy"})]}),i})();class Vq{constructor(a,e="/assets/i18n/",t=".json"){this.http=a,this.prefix=e,this.suffix=t}getTranslation(a){return this.http.get(`${this.prefix}${a}${this.suffix}`)}}function RL(i){return new n.vHH(3e3,!1)}function w4(){return typeof window<"u"&&typeof window.document<"u"}function TT(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function vd(i){switch(i.length){case 0:return new Ru;case 1:return i[0];default:return new y_(i)}}function PL(i,a,e,t,r=new Map,d=new Map){const u=[],c=[];let o=-1,s=null;if(t.forEach(l=>{const h=l.get("offset"),p=h==o,m=p&&s||new Map;l.forEach((g,f)=>{let w=f,N=g;if("offset"!==f)switch(w=a.normalizePropertyName(w,u),N){case"!":N=r.get(f);break;case ns:N=d.get(f);break;default:N=a.normalizeStyleValue(f,w,N,u)}m.set(w,N)}),p||c.push(m),s=m,o=h}),u.length)throw function c4(i){return new n.vHH(3502,!1)}();return c}function xT(i,a,e,t){switch(a){case"start":i.onStart(()=>t(e&&ST(e,"start",i)));break;case"done":i.onDone(()=>t(e&&ST(e,"done",i)));break;case"destroy":i.onDestroy(()=>t(e&&ST(e,"destroy",i)))}}function ST(i,a,e){const d=ET(i.element,i.triggerName,i.fromState,i.toState,a||i.phaseName,e.totalTime??i.totalTime,!!e.disabled),u=i._data;return null!=u&&(d._data=u),d}function ET(i,a,e,t,r="",d=0,u){return{element:i,triggerName:a,fromState:e,toState:t,phaseName:r,totalTime:d,disabled:!!u}}function za(i,a,e){let t=i.get(a);return t||i.set(a,t=e),t}function kL(i){const a=i.indexOf(":");return[i.substring(1,a),i.slice(a+1)]}let DT=(i,a)=>!1,OL=(i,a,e)=>[],IL=null;function LT(i){const a=i.parentNode||i.host;return a===IL?null:a}(TT()||typeof Element<"u")&&(w4()?(IL=(()=>document.documentElement)(),DT=(i,a)=>{for(;a;){if(a===i)return!0;a=LT(a)}return!1}):DT=(i,a)=>i.contains(a),OL=(i,a,e)=>{if(e)return Array.from(i.querySelectorAll(a));const t=i.querySelector(a);return t?[t]:[]});let Zu=null,BL=!1;const NL=DT,VL=OL;let jL=(()=>{class i{validateStyleProperty(e){return function C4(i){Zu||(Zu=function v4(){return typeof document<"u"?document.body:null}()||{},BL=!!Zu.style&&"WebkitAppearance"in Zu.style);let a=!0;return Zu.style&&!function M4(i){return"ebkit"==i.substring(1,6)}(i)&&(a=i in Zu.style,!a&&BL&&(a="Webkit"+i.charAt(0).toUpperCase()+i.slice(1)in Zu.style)),a}(e)}matchesElement(e,t){return!1}containsElement(e,t){return NL(e,t)}getParentElement(e){return LT(e)}query(e,t,r){return VL(e,t,r)}computeStyle(e,t,r){return r||""}animate(e,t,r,d,u,c=[],o){return new Ru(r,d)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})(),HT=(()=>{class i{}return i.NOOP=new jL,i})();const RT="ng-enter",YA="ng-leave",WA="ng-trigger",GA=".ng-trigger",zL="ng-animating",PT=".ng-animating";function Td(i){if("number"==typeof i)return i;const a=i.match(/^(-?[\.\d]+)(m?s)/);return!a||a.length<2?0:kT(parseFloat(a[1]),a[2])}function kT(i,a){return"s"===a?1e3*i:i}function $A(i,a,e){return i.hasOwnProperty("duration")?i:function S4(i,a,e){let r,d=0,u="";if("string"==typeof i){const c=i.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===c)return a.push(RL()),{duration:0,delay:0,easing:""};r=kT(parseFloat(c[1]),c[2]);const o=c[3];null!=o&&(d=kT(parseFloat(o),c[4]));const s=c[5];s&&(u=s)}else r=i;if(!e){let c=!1,o=a.length;r<0&&(a.push(function jq(){return new n.vHH(3100,!1)}()),c=!0),d<0&&(a.push(function Fq(){return new n.vHH(3101,!1)}()),c=!0),c&&a.splice(o,0,RL())}return{duration:r,delay:d,easing:u}}(i,a,e)}function Tg(i,a={}){return Object.keys(i).forEach(e=>{a[e]=i[e]}),a}function UL(i){const a=new Map;return Object.keys(i).forEach(e=>{a.set(e,i[e])}),a}function xd(i,a=new Map,e){if(e)for(let[t,r]of e)a.set(t,r);for(let[t,r]of i)a.set(t,r);return a}function YL(i,a,e){return e?a+":"+e+";":""}function WL(i){let a="";for(let e=0;e{const d=IT(r);e&&!e.has(r)&&e.set(r,i.style[d]),i.style[d]=t}),TT()&&WL(i))}function Ju(i,a){i.style&&(a.forEach((e,t)=>{const r=IT(t);i.style[r]=""}),TT()&&WL(i))}function xg(i){return Array.isArray(i)?1==i.length?i[0]:G0(i):i}const OT=new RegExp("{{\\s*(.+?)\\s*}}","g");function GL(i){let a=[];if("string"==typeof i){let e;for(;e=OT.exec(i);)a.push(e[1]);OT.lastIndex=0}return a}function ZA(i,a,e){const t=i.toString(),r=t.replace(OT,(d,u)=>{let c=a[u];return null==c&&(e.push(function Uq(i){return new n.vHH(3003,!1)}()),c=""),c.toString()});return r==t?i:r}function JA(i){const a=[];let e=i.next();for(;!e.done;)a.push(e.value),e=i.next();return a}const L4=/-+([a-z0-9])/g;function IT(i){return i.replace(L4,(...a)=>a[1].toUpperCase())}function H4(i){return i.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Ua(i,a,e){switch(a.type){case 7:return i.visitTrigger(a,e);case 0:return i.visitState(a,e);case 1:return i.visitTransition(a,e);case 2:return i.visitSequence(a,e);case 3:return i.visitGroup(a,e);case 4:return i.visitAnimate(a,e);case 5:return i.visitKeyframes(a,e);case 6:return i.visitStyle(a,e);case 8:return i.visitReference(a,e);case 9:return i.visitAnimateChild(a,e);case 10:return i.visitAnimateRef(a,e);case 11:return i.visitQuery(a,e);case 12:return i.visitStagger(a,e);default:throw function qq(i){return new n.vHH(3004,!1)}()}}function $L(i,a){return window.getComputedStyle(i)[a]}function B4(i,a){const e=[];return"string"==typeof i?i.split(/\s*,\s*/).forEach(t=>function N4(i,a,e){if(":"==i[0]){const o=function V4(i,a){switch(i){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t) *"}}(i,e);if("function"==typeof o)return void a.push(o);i=o}const t=i.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==t||t.length<4)return e.push(function r4(i){return new n.vHH(3015,!1)}()),a;const r=t[1],d=t[2],u=t[3];a.push(ZL(r,u));"<"==d[0]&&!("*"==r&&"*"==u)&&a.push(ZL(u,r))}(t,e,a)):e.push(i),e}const ey=new Set(["true","1"]),ty=new Set(["false","0"]);function ZL(i,a){const e=ey.has(i)||ty.has(i),t=ey.has(a)||ty.has(a);return(r,d)=>{let u="*"==i||i==r,c="*"==a||a==d;return!u&&e&&"boolean"==typeof r&&(u=r?ey.has(i):ty.has(i)),!c&&t&&"boolean"==typeof d&&(c=d?ey.has(a):ty.has(a)),u&&c}}const j4=new RegExp("s*:selfs*,?","g");function BT(i,a,e,t){return new F4(i).build(a,e,t)}class F4{constructor(a){this._driver=a}build(a,e,t){const r=new q4(e);return this._resetContextStyleTimingState(r),Ua(this,xg(a),r)}_resetContextStyleTimingState(a){a.currentQuerySelector="",a.collectedStyles=new Map,a.collectedStyles.set("",new Map),a.currentTime=0}visitTrigger(a,e){let t=e.queryCount=0,r=e.depCount=0;const d=[],u=[];return"@"==a.name.charAt(0)&&e.errors.push(function Wq(){return new n.vHH(3006,!1)}()),a.definitions.forEach(c=>{if(this._resetContextStyleTimingState(e),0==c.type){const o=c,s=o.name;s.toString().split(/\s*,\s*/).forEach(l=>{o.name=l,d.push(this.visitState(o,e))}),o.name=s}else if(1==c.type){const o=this.visitTransition(c,e);t+=o.queryCount,r+=o.depCount,u.push(o)}else e.errors.push(function Gq(){return new n.vHH(3007,!1)}())}),{type:7,name:a.name,states:d,transitions:u,queryCount:t,depCount:r,options:null}}visitState(a,e){const t=this.visitStyle(a.styles,e),r=a.options&&a.options.params||null;if(t.containsDynamicStyles){const d=new Set,u=r||{};t.styles.forEach(c=>{c instanceof Map&&c.forEach(o=>{GL(o).forEach(s=>{u.hasOwnProperty(s)||d.add(s)})})}),d.size&&(JA(d.values()),e.errors.push(function $q(i,a){return new n.vHH(3008,!1)}()))}return{type:0,name:a.name,style:t,options:r?{params:r}:null}}visitTransition(a,e){e.queryCount=0,e.depCount=0;const t=Ua(this,xg(a.animation),e);return{type:1,matchers:B4(a.expr,e.errors),animation:t,queryCount:e.queryCount,depCount:e.depCount,options:Qu(a.options)}}visitSequence(a,e){return{type:2,steps:a.steps.map(t=>Ua(this,t,e)),options:Qu(a.options)}}visitGroup(a,e){const t=e.currentTime;let r=0;const d=a.steps.map(u=>{e.currentTime=t;const c=Ua(this,u,e);return r=Math.max(r,e.currentTime),c});return e.currentTime=r,{type:3,steps:d,options:Qu(a.options)}}visitAnimate(a,e){const t=function W4(i,a){if(i.hasOwnProperty("duration"))return i;if("number"==typeof i)return NT($A(i,a).duration,0,"");const e=i;if(e.split(/\s+/).some(d=>"{"==d.charAt(0)&&"{"==d.charAt(1))){const d=NT(0,0,"");return d.dynamic=!0,d.strValue=e,d}const r=$A(e,a);return NT(r.duration,r.delay,r.easing)}(a.timings,e.errors);e.currentAnimateTimings=t;let r,d=a.styles?a.styles:je({});if(5==d.type)r=this.visitKeyframes(d,e);else{let u=a.styles,c=!1;if(!u){c=!0;const s={};t.easing&&(s.easing=t.easing),u=je(s)}e.currentTime+=t.duration+t.delay;const o=this.visitStyle(u,e);o.isEmptyStep=c,r=o}return e.currentAnimateTimings=null,{type:4,timings:t,style:r,options:null}}visitStyle(a,e){const t=this._makeStyleAst(a,e);return this._validateStyleAst(t,e),t}_makeStyleAst(a,e){const t=[],r=Array.isArray(a.styles)?a.styles:[a.styles];for(let c of r)"string"==typeof c?c===ns?t.push(c):e.errors.push(new n.vHH(3002,!1)):t.push(UL(c));let d=!1,u=null;return t.forEach(c=>{if(c instanceof Map&&(c.has("easing")&&(u=c.get("easing"),c.delete("easing")),!d))for(let o of c.values())if(o.toString().indexOf("{{")>=0){d=!0;break}}),{type:6,styles:t,easing:u,offset:a.offset,containsDynamicStyles:d,options:null}}_validateStyleAst(a,e){const t=e.currentAnimateTimings;let r=e.currentTime,d=e.currentTime;t&&d>0&&(d-=t.duration+t.delay),a.styles.forEach(u=>{"string"!=typeof u&&u.forEach((c,o)=>{const s=e.collectedStyles.get(e.currentQuerySelector),l=s.get(o);let h=!0;l&&(d!=r&&d>=l.startTime&&r<=l.endTime&&(e.errors.push(function Jq(i,a,e,t,r){return new n.vHH(3010,!1)}()),h=!1),d=l.startTime),h&&s.set(o,{startTime:d,endTime:r}),e.options&&function D4(i,a,e){const t=a.params||{},r=GL(i);r.length&&r.forEach(d=>{t.hasOwnProperty(d)||e.push(function zq(i){return new n.vHH(3001,!1)}())})}(c,e.options,e.errors)})})}visitKeyframes(a,e){const t={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function Qq(){return new n.vHH(3011,!1)}()),t;let d=0;const u=[];let c=!1,o=!1,s=0;const l=a.steps.map(N=>{const se=this._makeStyleAst(N,e);let Pe=null!=se.offset?se.offset:function Y4(i){if("string"==typeof i)return null;let a=null;if(Array.isArray(i))i.forEach(e=>{if(e instanceof Map&&e.has("offset")){const t=e;a=parseFloat(t.get("offset")),t.delete("offset")}});else if(i instanceof Map&&i.has("offset")){const e=i;a=parseFloat(e.get("offset")),e.delete("offset")}return a}(se.styles),ot=0;return null!=Pe&&(d++,ot=se.offset=Pe),o=o||ot<0||ot>1,c=c||ot0&&d{const Pe=p>0?se==m?1:p*se:u[se],ot=Pe*w;e.currentTime=g+f.delay+ot,f.duration=ot,this._validateStyleAst(N,e),N.offset=Pe,t.styles.push(N)}),t}visitReference(a,e){return{type:8,animation:Ua(this,xg(a.animation),e),options:Qu(a.options)}}visitAnimateChild(a,e){return e.depCount++,{type:9,options:Qu(a.options)}}visitAnimateRef(a,e){return{type:10,animation:this.visitReference(a.animation,e),options:Qu(a.options)}}visitQuery(a,e){const t=e.currentQuerySelector,r=a.options||{};e.queryCount++,e.currentQuery=a;const[d,u]=function z4(i){const a=!!i.split(/\s*,\s*/).find(e=>":self"==e);return a&&(i=i.replace(j4,"")),i=i.replace(/@\*/g,GA).replace(/@\w+/g,e=>GA+"-"+e.slice(1)).replace(/:animating/g,PT),[i,a]}(a.selector);e.currentQuerySelector=t.length?t+" "+d:d,za(e.collectedStyles,e.currentQuerySelector,new Map);const c=Ua(this,xg(a.animation),e);return e.currentQuery=null,e.currentQuerySelector=t,{type:11,selector:d,limit:r.limit||0,optional:!!r.optional,includeSelf:u,animation:c,originalSelector:a.selector,options:Qu(a.options)}}visitStagger(a,e){e.currentQuery||e.errors.push(function t4(){return new n.vHH(3013,!1)}());const t="full"===a.timings?{duration:0,delay:0,easing:"full"}:$A(a.timings,e.errors,!0);return{type:12,animation:Ua(this,xg(a.animation),e),timings:t,options:null}}}class q4{constructor(a){this.errors=a,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Qu(i){return i?(i=Tg(i)).params&&(i.params=function U4(i){return i?Tg(i):null}(i.params)):i={},i}function NT(i,a,e){return{duration:i,delay:a,easing:e}}function VT(i,a,e,t,r,d,u=null,c=!1){return{type:1,element:i,keyframes:a,preStyleProps:e,postStyleProps:t,duration:r,delay:d,totalTime:r+d,easing:u,subTimeline:c}}class ny{constructor(){this._map=new Map}get(a){return this._map.get(a)||[]}append(a,e){let t=this._map.get(a);t||this._map.set(a,t=[]),t.push(...e)}has(a){return this._map.has(a)}clear(){this._map.clear()}}const Z4=new RegExp(":enter","g"),Q4=new RegExp(":leave","g");function jT(i,a,e,t,r,d=new Map,u=new Map,c,o,s=[]){return(new X4).buildKeyframes(i,a,e,t,r,d,u,c,o,s)}class X4{buildKeyframes(a,e,t,r,d,u,c,o,s,l=[]){s=s||new ny;const h=new FT(a,e,s,r,d,l,[]);h.options=o;const p=o.delay?Td(o.delay):0;h.currentTimeline.delayNextStep(p),h.currentTimeline.setStyles([u],null,h.errors,o),Ua(this,t,h);const m=h.timelines.filter(g=>g.containsAnimation());if(m.length&&c.size){let g;for(let f=m.length-1;f>=0;f--){const w=m[f];if(w.element===e){g=w;break}}g&&!g.allowOnlyTimelineStyles()&&g.setStyles([c],null,h.errors,o)}return m.length?m.map(g=>g.buildKeyframes()):[VT(e,[],[],[],0,p,"",!1)]}visitTrigger(a,e){}visitState(a,e){}visitTransition(a,e){}visitAnimateChild(a,e){const t=e.subInstructions.get(e.element);if(t){const r=e.createSubContext(a.options),d=e.currentTimeline.currentTime,u=this._visitSubInstructions(t,r,r.options);d!=u&&e.transformIntoNewTimeline(u)}e.previousNode=a}visitAnimateRef(a,e){const t=e.createSubContext(a.options);t.transformIntoNewTimeline(),this.visitReference(a.animation,t),e.transformIntoNewTimeline(t.currentTimeline.currentTime),e.previousNode=a}_visitSubInstructions(a,e,t){let d=e.currentTimeline.currentTime;const u=null!=t.duration?Td(t.duration):null,c=null!=t.delay?Td(t.delay):null;return 0!==u&&a.forEach(o=>{const s=e.appendInstructionToTimeline(o,u,c);d=Math.max(d,s.duration+s.delay)}),d}visitReference(a,e){e.updateOptions(a.options,!0),Ua(this,a.animation,e),e.previousNode=a}visitSequence(a,e){const t=e.subContextCount;let r=e;const d=a.options;if(d&&(d.params||d.delay)&&(r=e.createSubContext(d),r.transformIntoNewTimeline(),null!=d.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=iy);const u=Td(d.delay);r.delayNextStep(u)}a.steps.length&&(a.steps.forEach(u=>Ua(this,u,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>t&&r.transformIntoNewTimeline()),e.previousNode=a}visitGroup(a,e){const t=[];let r=e.currentTimeline.currentTime;const d=a.options&&a.options.delay?Td(a.options.delay):0;a.steps.forEach(u=>{const c=e.createSubContext(a.options);d&&c.delayNextStep(d),Ua(this,u,c),r=Math.max(r,c.currentTimeline.currentTime),t.push(c.currentTimeline)}),t.forEach(u=>e.currentTimeline.mergeTimelineCollectedStyles(u)),e.transformIntoNewTimeline(r),e.previousNode=a}_visitTiming(a,e){if(a.dynamic){const t=a.strValue;return $A(e.params?ZA(t,e.params,e.errors):t,e.errors)}return{duration:a.duration,delay:a.delay,easing:a.easing}}visitAnimate(a,e){const t=e.currentAnimateTimings=this._visitTiming(a.timings,e),r=e.currentTimeline;t.delay&&(e.incrementTime(t.delay),r.snapshotCurrentStyles());const d=a.style;5==d.type?this.visitKeyframes(d,e):(e.incrementTime(t.duration),this.visitStyle(d,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=a}visitStyle(a,e){const t=e.currentTimeline,r=e.currentAnimateTimings;!r&&t.hasCurrentStyleProperties()&&t.forwardFrame();const d=r&&r.easing||a.easing;a.isEmptyStep?t.applyEmptyStep(d):t.setStyles(a.styles,d,e.errors,e.options),e.previousNode=a}visitKeyframes(a,e){const t=e.currentAnimateTimings,r=e.currentTimeline.duration,d=t.duration,c=e.createSubContext().currentTimeline;c.easing=t.easing,a.styles.forEach(o=>{c.forwardTime((o.offset||0)*d),c.setStyles(o.styles,o.easing,e.errors,e.options),c.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(c),e.transformIntoNewTimeline(r+d),e.previousNode=a}visitQuery(a,e){const t=e.currentTimeline.currentTime,r=a.options||{},d=r.delay?Td(r.delay):0;d&&(6===e.previousNode.type||0==t&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=iy);let u=t;const c=e.invokeQuery(a.selector,a.originalSelector,a.limit,a.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=c.length;let o=null;c.forEach((s,l)=>{e.currentQueryIndex=l;const h=e.createSubContext(a.options,s);d&&h.delayNextStep(d),s===e.element&&(o=h.currentTimeline),Ua(this,a.animation,h),h.currentTimeline.applyStylesToKeyframe(),u=Math.max(u,h.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(u),o&&(e.currentTimeline.mergeTimelineCollectedStyles(o),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=a}visitStagger(a,e){const t=e.parentContext,r=e.currentTimeline,d=a.timings,u=Math.abs(d.duration),c=u*(e.currentQueryTotal-1);let o=u*e.currentQueryIndex;switch(d.duration<0?"reverse":d.easing){case"reverse":o=c-o;break;case"full":o=t.currentStaggerTime}const l=e.currentTimeline;o&&l.delayNextStep(o);const h=l.currentTime;Ua(this,a.animation,e),e.previousNode=a,t.currentStaggerTime=r.currentTime-h+(r.startTime-t.currentTimeline.startTime)}}const iy={};class FT{constructor(a,e,t,r,d,u,c,o){this._driver=a,this.element=e,this.subInstructions=t,this._enterClassName=r,this._leaveClassName=d,this.errors=u,this.timelines=c,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=iy,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=o||new ry(this._driver,e,0),c.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(a,e){if(!a)return;const t=a;let r=this.options;null!=t.duration&&(r.duration=Td(t.duration)),null!=t.delay&&(r.delay=Td(t.delay));const d=t.params;if(d){let u=r.params;u||(u=this.options.params={}),Object.keys(d).forEach(c=>{(!e||!u.hasOwnProperty(c))&&(u[c]=ZA(d[c],u,this.errors))})}}_copyOptions(){const a={};if(this.options){const e=this.options.params;if(e){const t=a.params={};Object.keys(e).forEach(r=>{t[r]=e[r]})}}return a}createSubContext(a=null,e,t){const r=e||this.element,d=new FT(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,t||0));return d.previousNode=this.previousNode,d.currentAnimateTimings=this.currentAnimateTimings,d.options=this._copyOptions(),d.updateOptions(a),d.currentQueryIndex=this.currentQueryIndex,d.currentQueryTotal=this.currentQueryTotal,d.parentContext=this,this.subContextCount++,d}transformIntoNewTimeline(a){return this.previousNode=iy,this.currentTimeline=this.currentTimeline.fork(this.element,a),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(a,e,t){const r={duration:e??a.duration,delay:this.currentTimeline.currentTime+(t??0)+a.delay,easing:""},d=new K4(this._driver,a.element,a.keyframes,a.preStyleProps,a.postStyleProps,r,a.stretchStartingKeyframe);return this.timelines.push(d),r}incrementTime(a){this.currentTimeline.forwardTime(this.currentTimeline.duration+a)}delayNextStep(a){a>0&&this.currentTimeline.delayNextStep(a)}invokeQuery(a,e,t,r,d,u){let c=[];if(r&&c.push(this.element),a.length>0){a=(a=a.replace(Z4,"."+this._enterClassName)).replace(Q4,"."+this._leaveClassName);let s=this._driver.query(this.element,a,1!=t);0!==t&&(s=t<0?s.slice(s.length+t,s.length):s.slice(0,t)),c.push(...s)}return!d&&0==c.length&&u.push(function n4(i){return new n.vHH(3014,!1)}()),c}}class ry{constructor(a,e,t,r){this._driver=a,this.element=e,this.startTime=t,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),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.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(a){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+a),e&&this.snapshotCurrentStyles()):this.startTime+=a}fork(a,e){return this.applyStylesToKeyframe(),new ry(this._driver,a,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(a){this.applyStylesToKeyframe(),this.duration=a,this._loadKeyframe()}_updateStyle(a,e){this._localTimelineStyles.set(a,e),this._globalTimelineStyles.set(a,e),this._styleSummary.set(a,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(a){a&&this._previousKeyframe.set("easing",a);for(let[e,t]of this._globalTimelineStyles)this._backFill.set(e,t||ns),this._currentKeyframe.set(e,ns);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(a,e,t,r){e&&this._previousKeyframe.set("easing",e);const d=r&&r.params||{},u=function e6(i,a){const e=new Map;let t;return i.forEach(r=>{if("*"===r){t=t||a.keys();for(let d of t)e.set(d,ns)}else xd(r,e)}),e}(a,this._globalTimelineStyles);for(let[o,s]of u){const l=ZA(s,d,t);var c;this._pendingStyles.set(o,l),this._localTimelineStyles.has(o)||this._backFill.set(o,null!==(c=this._globalTimelineStyles.get(o))&&void 0!==c?c:ns),this._updateStyle(o,l)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((a,e)=>{this._currentKeyframe.set(e,a)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((a,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,a)}))}snapshotCurrentStyles(){for(let[a,e]of this._localTimelineStyles)this._pendingStyles.set(a,e),this._updateStyle(a,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const a=[];for(let e in this._currentKeyframe)a.push(e);return a}mergeTimelineCollectedStyles(a){a._styleSummary.forEach((e,t)=>{const r=this._styleSummary.get(t);(!r||e.time>r.time)&&this._updateStyle(t,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const a=new Set,e=new Set,t=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((c,o)=>{const s=xd(c,new Map,this._backFill);s.forEach((l,h)=>{"!"===l?a.add(h):l===ns&&e.add(h)}),t||s.set("offset",o/this.duration),r.push(s)});const d=a.size?JA(a.values()):[],u=e.size?JA(e.values()):[];if(t){const c=r[0],o=new Map(c);c.set("offset",0),o.set("offset",1),r=[c,o]}return VT(this.element,r,d,u,this.duration,this.startTime,this.easing,!1)}}class K4 extends ry{constructor(a,e,t,r,d,u,c=!1){super(a,e,u.delay),this.keyframes=t,this.preStyleProps=r,this.postStyleProps=d,this._stretchStartingKeyframe=c,this.timings={duration:u.duration,delay:u.delay,easing:u.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let a=this.keyframes,{delay:e,duration:t,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const d=[],u=t+e,c=e/u,o=xd(a[0]);o.set("offset",0),d.push(o);const s=xd(a[0]);s.set("offset",XL(c)),d.push(s);const l=a.length-1;for(let h=1;h<=l;h++){let p=xd(a[h]);const m=p.get("offset");p.set("offset",XL((e+m*t)/u)),d.push(p)}t=u,e=0,r="",a=d}return VT(this.element,a,this.preStyleProps,this.postStyleProps,t,e,r,!0)}}function XL(i,a=3){const e=Math.pow(10,a-1);return Math.round(i*e)/e}class zT{}const t6=new Set(["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"]);class n6 extends zT{normalizePropertyName(a,e){return IT(a)}normalizeStyleValue(a,e,t,r){let d="";const u=t.toString().trim();if(t6.has(e)&&0!==t&&"0"!==t)if("number"==typeof t)d="px";else{const c=t.match(/^[+-]?[\d\.]+([a-z]*)$/);c&&0==c[1].length&&r.push(function Yq(i,a){return new n.vHH(3005,!1)}())}return u+d}}function KL(i,a,e,t,r,d,u,c,o,s,l,h,p){return{type:0,element:i,triggerName:a,isRemovalTransition:r,fromState:e,fromStyles:d,toState:t,toStyles:u,timelines:c,queriedElements:o,preStyleProps:s,postStyleProps:l,totalTime:h,errors:p}}const UT={};class eH{constructor(a,e,t){this._triggerName=a,this.ast=e,this._stateStyles=t}match(a,e,t,r){return function r6(i,a,e,t,r){return i.some(d=>d(a,e,t,r))}(this.ast.matchers,a,e,t,r)}buildStyles(a,e,t){let r=this._stateStyles.get("*");return void 0!==a&&(r=this._stateStyles.get(a?.toString())||r),r?r.buildStyles(e,t):new Map}build(a,e,t,r,d,u,c,o,s,l){var h;const p=[],m=this.ast.options&&this.ast.options.params||UT,f=this.buildStyles(t,c&&c.params||UT,p),w=o&&o.params||UT,N=this.buildStyles(r,w,p),se=new Set,Pe=new Map,ot=new Map,Mi="void"===r,Pi={params:a6(w,m),delay:null===(h=this.ast.options)||void 0===h?void 0:h.delay},Fi=l?[]:jT(a,e,this.ast.animation,d,u,f,N,Pi,s,p);let or=0;if(Fi.forEach(lo=>{or=Math.max(lo.duration+lo.delay,or)}),p.length)return KL(e,this._triggerName,t,r,Mi,f,N,[],[],Pe,ot,or,p);Fi.forEach(lo=>{const Eg=lo.element,Dg=za(Pe,Eg,new Set);lo.preStyleProps.forEach(pf=>Dg.add(pf));const Lg=za(ot,Eg,new Set);lo.postStyleProps.forEach(pf=>Lg.add(pf)),Eg!==e&&se.add(Eg)});const Xu=JA(se.values());return KL(e,this._triggerName,t,r,Mi,f,N,Fi,Xu,Pe,ot,or)}}function a6(i,a){const e=Tg(a);for(const t in i)i.hasOwnProperty(t)&&null!=i[t]&&(e[t]=i[t]);return e}class s6{constructor(a,e,t){this.styles=a,this.defaultParams=e,this.normalizer=t}buildStyles(a,e){const t=new Map,r=Tg(this.defaultParams);return Object.keys(a).forEach(d=>{const u=a[d];null!==u&&(r[d]=u)}),this.styles.styles.forEach(d=>{"string"!=typeof d&&d.forEach((u,c)=>{u&&(u=ZA(u,r,e));const o=this.normalizer.normalizePropertyName(c,e);u=this.normalizer.normalizeStyleValue(c,o,u,e),t.set(o,u)})}),t}}class l6{constructor(a,e,t){this.name=a,this.ast=e,this._normalizer=t,this.transitionFactories=[],this.states=new Map,e.states.forEach(r=>{this.states.set(r.name,new s6(r.style,r.options&&r.options.params||{},t))}),tH(this.states,"true","1"),tH(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new eH(a,r,this.states))}),this.fallbackTransition=function c6(i,a,e){return new eH(i,{type:1,animation:{type:2,steps:[],options:null},matchers:[(u,c)=>!0],options:null,queryCount:0,depCount:0},a)}(a,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(a,e,t,r){return this.transitionFactories.find(u=>u.match(a,e,t,r))||null}matchStyles(a,e,t){return this.fallbackTransition.buildStyles(a,e,t)}}function tH(i,a,e){i.has(a)?i.has(e)||i.set(e,i.get(a)):i.has(e)&&i.set(a,i.get(e))}const d6=new ny;class u6{constructor(a,e,t){this.bodyNode=a,this._driver=e,this._normalizer=t,this._animations=new Map,this._playersById=new Map,this.players=[]}register(a,e){const t=[],d=BT(this._driver,e,t,[]);if(t.length)throw function d4(i){return new n.vHH(3503,!1)}();this._animations.set(a,d)}_buildPlayer(a,e,t){const r=a.element,d=PL(0,this._normalizer,0,a.keyframes,e,t);return this._driver.animate(r,d,a.duration,a.delay,a.easing,[],!0)}create(a,e,t={}){const r=[],d=this._animations.get(a);let u;const c=new Map;if(d?(u=jT(this._driver,e,d,RT,YA,new Map,new Map,t,d6,r),u.forEach(l=>{const h=za(c,l.element,new Map);l.postStyleProps.forEach(p=>h.set(p,null))})):(r.push(function u4(){return new n.vHH(3300,!1)}()),u=[]),r.length)throw function h4(i){return new n.vHH(3504,!1)}();c.forEach((l,h)=>{l.forEach((p,m)=>{l.set(m,this._driver.computeStyle(h,m,ns))})});const s=vd(u.map(l=>{const h=c.get(l.element);return this._buildPlayer(l,new Map,h)}));return this._playersById.set(a,s),s.onDestroy(()=>this.destroy(a)),this.players.push(s),s}destroy(a){const e=this._getPlayer(a);e.destroy(),this._playersById.delete(a);const t=this.players.indexOf(e);t>=0&&this.players.splice(t,1)}_getPlayer(a){const e=this._playersById.get(a);if(!e)throw function p4(i){return new n.vHH(3301,!1)}();return e}listen(a,e,t,r){const d=ET(e,"","","");return xT(this._getPlayer(a),t,d,r),()=>{}}command(a,e,t,r){if("register"==t)return void this.register(a,r[0]);if("create"==t)return void this.create(a,e,r[0]||{});const d=this._getPlayer(a);switch(t){case"play":d.play();break;case"pause":d.pause();break;case"reset":d.reset();break;case"restart":d.restart();break;case"finish":d.finish();break;case"init":d.init();break;case"setPosition":d.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(a)}}}const nH="ng-animate-queued",qT="ng-animate-disabled",g6=[],iH={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},_6={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},fs="__ng_removed";class YT{constructor(a,e=""){this.namespaceId=e;const t=a&&a.hasOwnProperty("value");if(this.value=function w6(i){return i??null}(t?a.value:a),t){const d=Tg(a);delete d.value,this.options=d}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(a){const e=a.params;if(e){const t=this.options.params;Object.keys(e).forEach(r=>{null==t[r]&&(t[r]=e[r])})}}}const Sg="void",WT=new YT(Sg);class b6{constructor(a,e,t){this.id=a,this.hostElement=e,this._engine=t,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+a,ms(e,this._hostClassName)}listen(a,e,t,r){if(!this._triggers.has(e))throw function f4(i,a){return new n.vHH(3302,!1)}();if(null==t||0==t.length)throw function m4(i){return new n.vHH(3303,!1)}();if(!function M6(i){return"start"==i||"done"==i}(t))throw function g4(i,a){return new n.vHH(3400,!1)}();const d=za(this._elementListeners,a,[]),u={name:e,phase:t,callback:r};d.push(u);const c=za(this._engine.statesByElement,a,new Map);return c.has(e)||(ms(a,WA),ms(a,WA+"-"+e),c.set(e,WT)),()=>{this._engine.afterFlush(()=>{const o=d.indexOf(u);o>=0&&d.splice(o,1),this._triggers.has(e)||c.delete(e)})}}register(a,e){return!this._triggers.has(a)&&(this._triggers.set(a,e),!0)}_getTrigger(a){const e=this._triggers.get(a);if(!e)throw function _4(i){return new n.vHH(3401,!1)}();return e}trigger(a,e,t,r=!0){const d=this._getTrigger(e),u=new GT(this.id,e,a);let c=this._engine.statesByElement.get(a);c||(ms(a,WA),ms(a,WA+"-"+e),this._engine.statesByElement.set(a,c=new Map));let o=c.get(e);const s=new YT(t,this.id);if(!(t&&t.hasOwnProperty("value"))&&o&&s.absorbOptions(o.options),c.set(e,s),o||(o=WT),s.value!==Sg&&o.value===s.value){if(!function T6(i,a){const e=Object.keys(i),t=Object.keys(a);if(e.length!=t.length)return!1;for(let r=0;r{Ju(a,w),Xo(a,N)})}return}const p=za(this._engine.playersByElement,a,[]);p.forEach(f=>{f.namespaceId==this.id&&f.triggerName==e&&f.queued&&f.destroy()});let m=d.matchTransition(o.value,s.value,a,s.params),g=!1;if(!m){if(!r)return;m=d.fallbackTransition,g=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:a,triggerName:e,transition:m,fromState:o,toState:s,player:u,isFallbackTransition:g}),g||(ms(a,nH),u.onStart(()=>{hf(a,nH)})),u.onDone(()=>{let f=this.players.indexOf(u);f>=0&&this.players.splice(f,1);const w=this._engine.playersByElement.get(a);if(w){let N=w.indexOf(u);N>=0&&w.splice(N,1)}}),this.players.push(u),p.push(u),u}deregister(a){this._triggers.delete(a),this._engine.statesByElement.forEach(e=>e.delete(a)),this._elementListeners.forEach((e,t)=>{this._elementListeners.set(t,e.filter(r=>r.name!=a))})}clearElementCache(a){this._engine.statesByElement.delete(a),this._elementListeners.delete(a);const e=this._engine.playersByElement.get(a);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(a))}_signalRemovalForInnerTriggers(a,e){const t=this._engine.driver.query(a,GA,!0);t.forEach(r=>{if(r[fs])return;const d=this._engine.fetchNamespacesByElement(r);d.size?d.forEach(u=>u.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>t.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(a,e,t,r){const d=this._engine.statesByElement.get(a),u=new Map;if(d){const c=[];if(d.forEach((o,s)=>{if(u.set(s,o.value),this._triggers.has(s)){const l=this.trigger(a,s,Sg,r);l&&c.push(l)}}),c.length)return this._engine.markElementAsRemoved(this.id,a,!0,e,u),t&&vd(c).onDone(()=>this._engine.processLeaveNode(a)),!0}return!1}prepareLeaveAnimationListeners(a){const e=this._elementListeners.get(a),t=this._engine.statesByElement.get(a);if(e&&t){const r=new Set;e.forEach(d=>{const u=d.name;if(r.has(u))return;r.add(u);const o=this._triggers.get(u).fallbackTransition,s=t.get(u)||WT,l=new YT(Sg),h=new GT(this.id,u,a);this._engine.totalQueuedPlayers++,this._queue.push({element:a,triggerName:u,transition:o,fromState:s,toState:l,player:h,isFallbackTransition:!0})})}}removeNode(a,e){const t=this._engine;if(a.childElementCount&&this._signalRemovalForInnerTriggers(a,e),this.triggerLeaveAnimation(a,e,!0))return;let r=!1;if(t.totalAnimations){const d=t.players.length?t.playersByQueriedElement.get(a):[];if(d&&d.length)r=!0;else{let u=a;for(;u=u.parentNode;)if(t.statesByElement.get(u)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(a),r)t.markElementAsRemoved(this.id,a,!1,e);else{const d=a[fs];(!d||d===iH)&&(t.afterFlush(()=>this.clearElementCache(a)),t.destroyInnerAnimations(a),t._onRemovalComplete(a,e))}}insertNode(a,e){ms(a,this._hostClassName)}drainQueuedTransitions(a){const e=[];return this._queue.forEach(t=>{const r=t.player;if(r.destroyed)return;const d=t.element,u=this._elementListeners.get(d);u&&u.forEach(c=>{if(c.name==t.triggerName){const o=ET(d,t.triggerName,t.fromState.value,t.toState.value);o._data=a,xT(t.player,c.phase,o,c.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(t)}),this._queue=[],e.sort((t,r)=>{const d=t.transition.ast.depCount,u=r.transition.ast.depCount;return 0==d||0==u?d-u:this._engine.driver.containsElement(t.element,r.element)?1:-1})}destroy(a){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,a)}elementContainsData(a){let e=!1;return this._elementListeners.has(a)&&(e=!0),e=!!this._queue.find(t=>t.element===a)||e,e}}class A6{constructor(a,e,t){this.bodyNode=a,this.driver=e,this._normalizer=t,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=(r,d)=>{}}_onRemovalComplete(a,e){this.onRemovalComplete(a,e)}get queuedPlayers(){const a=[];return this._namespaceList.forEach(e=>{e.players.forEach(t=>{t.queued&&a.push(t)})}),a}createNamespace(a,e){const t=new b6(a,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(t,e):(this.newHostElements.set(e,t),this.collectEnterElement(e)),this._namespaceLookup[a]=t}_balanceNamespaceList(a,e){const t=this._namespaceList,r=this.namespacesByHostElement;if(t.length-1>=0){let u=!1,c=this.driver.getParentElement(e);for(;c;){const o=r.get(c);if(o){const s=t.indexOf(o);t.splice(s+1,0,a),u=!0;break}c=this.driver.getParentElement(c)}u||t.unshift(a)}else t.push(a);return r.set(e,a),a}register(a,e){let t=this._namespaceLookup[a];return t||(t=this.createNamespace(a,e)),t}registerTrigger(a,e,t){let r=this._namespaceLookup[a];r&&r.register(e,t)&&this.totalAnimations++}destroy(a,e){if(!a)return;const t=this._fetchNamespace(a);this.afterFlush(()=>{this.namespacesByHostElement.delete(t.hostElement),delete this._namespaceLookup[a];const r=this._namespaceList.indexOf(t);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>t.destroy(e))}_fetchNamespace(a){return this._namespaceLookup[a]}fetchNamespacesByElement(a){const e=new Set,t=this.statesByElement.get(a);if(t)for(let r of t.values())if(r.namespaceId){const d=this._fetchNamespace(r.namespaceId);d&&e.add(d)}return e}trigger(a,e,t,r){if(ay(e)){const d=this._fetchNamespace(a);if(d)return d.trigger(e,t,r),!0}return!1}insertNode(a,e,t,r){if(!ay(e))return;const d=e[fs];if(d&&d.setForRemoval){d.setForRemoval=!1,d.setForMove=!0;const u=this.collectedLeaveElements.indexOf(e);u>=0&&this.collectedLeaveElements.splice(u,1)}if(a){const u=this._fetchNamespace(a);u&&u.insertNode(e,t)}r&&this.collectEnterElement(e)}collectEnterElement(a){this.collectedEnterElements.push(a)}markElementAsDisabled(a,e){e?this.disabledNodes.has(a)||(this.disabledNodes.add(a),ms(a,qT)):this.disabledNodes.has(a)&&(this.disabledNodes.delete(a),hf(a,qT))}removeNode(a,e,t,r){if(ay(e)){const d=a?this._fetchNamespace(a):null;if(d?d.removeNode(e,r):this.markElementAsRemoved(a,e,!1,r),t){const u=this.namespacesByHostElement.get(e);u&&u.id!==a&&u.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(a,e,t,r,d){this.collectedLeaveElements.push(e),e[fs]={namespaceId:a,setForRemoval:r,hasAnimation:t,removedBeforeQueried:!1,previousTriggersValues:d}}listen(a,e,t,r,d){return ay(e)?this._fetchNamespace(a).listen(e,t,r,d):()=>{}}_buildInstruction(a,e,t,r,d){return a.transition.build(this.driver,a.element,a.fromState.value,a.toState.value,t,r,a.fromState.options,a.toState.options,e,d)}destroyInnerAnimations(a){let e=this.driver.query(a,GA,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(a,PT,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(a){const e=this.playersByElement.get(a);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(a){const e=this.playersByQueriedElement.get(a);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(a=>{if(this.players.length)return vd(this.players).onDone(()=>a());a()})}processLeaveNode(a){var e;const t=a[fs];if(t&&t.setForRemoval){if(a[fs]=iH,t.namespaceId){this.destroyInnerAnimations(a);const r=this._fetchNamespace(t.namespaceId);r&&r.clearElementCache(a)}this._onRemovalComplete(a,t.setForRemoval)}null!==(e=a.classList)&&void 0!==e&&e.contains(qT)&&this.markElementAsDisabled(a,!1),this.driver.query(a,".ng-animate-disabled",!0).forEach(r=>{this.markElementAsDisabled(r,!1)})}flush(a=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,r)=>this._balanceNamespaceList(t,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let t=0;tt()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?vd(e).onDone(()=>{t.forEach(r=>r())}):t.forEach(r=>r())}}reportError(a){throw function b4(i){return new n.vHH(3402,!1)}()}_flushAnimations(a,e){const t=new ny,r=[],d=new Map,u=[],c=new Map,o=new Map,s=new Map,l=new Set;this.disabledNodes.forEach(mt=>{l.add(mt);const xt=this.driver.query(mt,".ng-animate-queued",!0);for(let Pt=0;Pt{const Pt=RT+f++;g.set(xt,Pt),mt.forEach(sn=>ms(sn,Pt))});const w=[],N=new Set,se=new Set;for(let mt=0;mtN.add(sn)):se.add(xt))}const Pe=new Map,ot=sH(p,Array.from(N));ot.forEach((mt,xt)=>{const Pt=YA+f++;Pe.set(xt,Pt),mt.forEach(sn=>ms(sn,Pt))}),a.push(()=>{m.forEach((mt,xt)=>{const Pt=g.get(xt);mt.forEach(sn=>hf(sn,Pt))}),ot.forEach((mt,xt)=>{const Pt=Pe.get(xt);mt.forEach(sn=>hf(sn,Pt))}),w.forEach(mt=>{this.processLeaveNode(mt)})});const Mi=[],Pi=[];for(let mt=this._namespaceList.length-1;mt>=0;mt--)this._namespaceList[mt].drainQueuedTransitions(e).forEach(Pt=>{const sn=Pt.player,ki=Pt.element;if(Mi.push(sn),this.collectedEnterElements.length){const Vr=ki[fs];if(Vr&&Vr.setForMove){if(Vr.previousTriggersValues&&Vr.previousTriggersValues.has(Pt.triggerName)){const Ku=Vr.previousTriggersValues.get(Pt.triggerName),gs=this.statesByElement.get(Pt.element);if(gs&&gs.has(Pt.triggerName)){const cy=gs.get(Pt.triggerName);cy.value=Ku,gs.set(Pt.triggerName,cy)}}return void sn.destroy()}}const Ko=!h||!this.driver.containsElement(h,ki),qa=Pe.get(ki),Sd=g.get(ki),Ci=this._buildInstruction(Pt,t,Sd,qa,Ko);if(Ci.errors&&Ci.errors.length)return void Pi.push(Ci);if(Ko)return sn.onStart(()=>Ju(ki,Ci.fromStyles)),sn.onDestroy(()=>Xo(ki,Ci.toStyles)),void r.push(sn);if(Pt.isFallbackTransition)return sn.onStart(()=>Ju(ki,Ci.fromStyles)),sn.onDestroy(()=>Xo(ki,Ci.toStyles)),void r.push(sn);const EH=[];Ci.timelines.forEach(Vr=>{Vr.stretchStartingKeyframe=!0,this.disabledNodes.has(Vr.element)||EH.push(Vr)}),Ci.timelines=EH,t.append(ki,Ci.timelines),u.push({instruction:Ci,player:sn,element:ki}),Ci.queriedElements.forEach(Vr=>za(c,Vr,[]).push(sn)),Ci.preStyleProps.forEach((Vr,Ku)=>{if(Vr.size){let gs=o.get(Ku);gs||o.set(Ku,gs=new Set),Vr.forEach((cy,JT)=>gs.add(JT))}}),Ci.postStyleProps.forEach((Vr,Ku)=>{let gs=s.get(Ku);gs||s.set(Ku,gs=new Set),Vr.forEach((cy,JT)=>gs.add(JT))})});if(Pi.length){const mt=[];Pi.forEach(xt=>{mt.push(function A4(i,a){return new n.vHH(3505,!1)}())}),Mi.forEach(xt=>xt.destroy()),this.reportError(mt)}const Fi=new Map,or=new Map;u.forEach(mt=>{const xt=mt.element;t.has(xt)&&(or.set(xt,xt),this._beforeAnimationBuild(mt.player.namespaceId,mt.instruction,Fi))}),r.forEach(mt=>{const xt=mt.element;this._getPreviousPlayers(xt,!1,mt.namespaceId,mt.triggerName,null).forEach(sn=>{za(Fi,xt,[]).push(sn),sn.destroy()})});const Xu=w.filter(mt=>lH(mt,o,s)),lo=new Map;aH(lo,this.driver,se,s,ns).forEach(mt=>{lH(mt,o,s)&&Xu.push(mt)});const Dg=new Map;m.forEach((mt,xt)=>{aH(Dg,this.driver,new Set(mt),o,"!")}),Xu.forEach(mt=>{var xt,Pt;const sn=lo.get(mt),ki=Dg.get(mt);lo.set(mt,new Map([...Array.from(null!==(xt=sn?.entries())&&void 0!==xt?xt:[]),...Array.from(null!==(Pt=ki?.entries())&&void 0!==Pt?Pt:[])]))});const Lg=[],pf=[],SH={};u.forEach(mt=>{const{element:xt,player:Pt,instruction:sn}=mt;if(t.has(xt)){if(l.has(xt))return Pt.onDestroy(()=>Xo(xt,sn.toStyles)),Pt.disabled=!0,Pt.overrideTotalTime(sn.totalTime),void r.push(Pt);let ki=SH;if(or.size>1){let qa=xt;const Sd=[];for(;qa=qa.parentNode;){const Ci=or.get(qa);if(Ci){ki=Ci;break}Sd.push(qa)}Sd.forEach(Ci=>or.set(Ci,ki))}const Ko=this._buildAnimation(Pt.namespaceId,sn,Fi,d,Dg,lo);if(Pt.setRealPlayer(Ko),ki===SH)Lg.push(Pt);else{const qa=this.playersByElement.get(ki);qa&&qa.length&&(Pt.parentPlayer=vd(qa)),r.push(Pt)}}else Ju(xt,sn.fromStyles),Pt.onDestroy(()=>Xo(xt,sn.toStyles)),pf.push(Pt),l.has(xt)&&r.push(Pt)}),pf.forEach(mt=>{const xt=d.get(mt.element);if(xt&&xt.length){const Pt=vd(xt);mt.setRealPlayer(Pt)}}),r.forEach(mt=>{mt.parentPlayer?mt.syncPlayerEvents(mt.parentPlayer):mt.destroy()});for(let mt=0;mt!Ko.destroyed);ki.length?C6(this,xt,ki):this.processLeaveNode(xt)}return w.length=0,Lg.forEach(mt=>{this.players.push(mt),mt.onDone(()=>{mt.destroy();const xt=this.players.indexOf(mt);this.players.splice(xt,1)}),mt.play()}),Lg}elementContainsData(a,e){let t=!1;const r=e[fs];return r&&r.setForRemoval&&(t=!0),this.playersByElement.has(e)&&(t=!0),this.playersByQueriedElement.has(e)&&(t=!0),this.statesByElement.has(e)&&(t=!0),this._fetchNamespace(a).elementContainsData(e)||t}afterFlush(a){this._flushFns.push(a)}afterFlushAnimationsDone(a){this._whenQuietFns.push(a)}_getPreviousPlayers(a,e,t,r,d){let u=[];if(e){const c=this.playersByQueriedElement.get(a);c&&(u=c)}else{const c=this.playersByElement.get(a);if(c){const o=!d||d==Sg;c.forEach(s=>{s.queued||!o&&s.triggerName!=r||u.push(s)})}}return(t||r)&&(u=u.filter(c=>!(t&&t!=c.namespaceId||r&&r!=c.triggerName))),u}_beforeAnimationBuild(a,e,t){const d=e.element,u=e.isRemovalTransition?void 0:a,c=e.isRemovalTransition?void 0:e.triggerName;for(const o of e.timelines){const s=o.element,l=s!==d,h=za(t,s,[]);this._getPreviousPlayers(s,l,u,c,e.toState).forEach(m=>{const g=m.getRealPlayer();g.beforeDestroy&&g.beforeDestroy(),m.destroy(),h.push(m)})}Ju(d,e.fromStyles)}_buildAnimation(a,e,t,r,d,u){const c=e.triggerName,o=e.element,s=[],l=new Set,h=new Set,p=e.timelines.map(g=>{const f=g.element;l.add(f);const w=f[fs];if(w&&w.removedBeforeQueried)return new Ru(g.duration,g.delay);const N=f!==o,se=function v6(i){const a=[];return oH(i,a),a}((t.get(f)||g6).map(Fi=>Fi.getRealPlayer())).filter(Fi=>!!Fi.element&&Fi.element===f),Pe=d.get(f),ot=u.get(f),Mi=PL(0,this._normalizer,0,g.keyframes,Pe,ot),Pi=this._buildPlayer(g,Mi,se);if(g.subTimeline&&r&&h.add(f),N){const Fi=new GT(a,c,f);Fi.setRealPlayer(Pi),s.push(Fi)}return Pi});s.forEach(g=>{za(this.playersByQueriedElement,g.element,[]).push(g),g.onDone(()=>function y6(i,a,e){let t=i.get(a);if(t){if(t.length){const r=t.indexOf(e);t.splice(r,1)}0==t.length&&i.delete(a)}return t}(this.playersByQueriedElement,g.element,g))}),l.forEach(g=>ms(g,zL));const m=vd(p);return m.onDestroy(()=>{l.forEach(g=>hf(g,zL)),Xo(o,e.toStyles)}),h.forEach(g=>{za(r,g,[]).push(m)}),m}_buildPlayer(a,e,t){return e.length>0?this.driver.animate(a.element,e,a.duration,a.delay,a.easing,t):new Ru(a.duration,a.delay)}}class GT{constructor(a,e,t){this.namespaceId=a,this.triggerName=e,this.element=t,this._player=new Ru,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(a){this._containsRealPlayer||(this._player=a,this._queuedCallbacks.forEach((e,t)=>{e.forEach(r=>xT(a,t,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(a.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(a){this.totalTime=a}syncPlayerEvents(a){const e=this._player;e.triggerCallback&&a.onStart(()=>e.triggerCallback("start")),a.onDone(()=>this.finish()),a.onDestroy(()=>this.destroy())}_queueEvent(a,e){za(this._queuedCallbacks,a,[]).push(e)}onDone(a){this.queued&&this._queueEvent("done",a),this._player.onDone(a)}onStart(a){this.queued&&this._queueEvent("start",a),this._player.onStart(a)}onDestroy(a){this.queued&&this._queueEvent("destroy",a),this._player.onDestroy(a)}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(a){this.queued||this._player.setPosition(a)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(a){const e=this._player;e.triggerCallback&&e.triggerCallback(a)}}function ay(i){return i&&1===i.nodeType}function rH(i,a){const e=i.style.display;return i.style.display=a??"none",e}function aH(i,a,e,t,r){const d=[];e.forEach(o=>d.push(rH(o)));const u=[];t.forEach((o,s)=>{const l=new Map;o.forEach(h=>{const p=a.computeStyle(s,h,r);l.set(h,p),(!p||0==p.length)&&(s[fs]=_6,u.push(s))}),i.set(s,l)});let c=0;return e.forEach(o=>rH(o,d[c++])),u}function sH(i,a){const e=new Map;if(i.forEach(c=>e.set(c,[])),0==a.length)return e;const r=new Set(a),d=new Map;function u(c){if(!c)return 1;let o=d.get(c);if(o)return o;const s=c.parentNode;return o=e.has(s)?s:r.has(s)?1:u(s),d.set(c,o),o}return a.forEach(c=>{const o=u(c);1!==o&&e.get(o).push(c)}),e}function ms(i,a){var e;null===(e=i.classList)||void 0===e||e.add(a)}function hf(i,a){var e;null===(e=i.classList)||void 0===e||e.remove(a)}function C6(i,a,e){vd(e).onDone(()=>i.processLeaveNode(a))}function oH(i,a){for(let e=0;er.add(d)):a.set(i,t),e.delete(i),!0}class sy{constructor(a,e,t){this.bodyNode=a,this._driver=e,this._normalizer=t,this._triggerCache={},this.onRemovalComplete=(r,d)=>{},this._transitionEngine=new A6(a,e,t),this._timelineEngine=new u6(a,e,t),this._transitionEngine.onRemovalComplete=(r,d)=>this.onRemovalComplete(r,d)}registerTrigger(a,e,t,r,d){const u=a+"-"+r;let c=this._triggerCache[u];if(!c){const o=[],l=BT(this._driver,d,o,[]);if(o.length)throw function l4(i,a){return new n.vHH(3404,!1)}();c=function o6(i,a,e){return new l6(i,a,e)}(r,l,this._normalizer),this._triggerCache[u]=c}this._transitionEngine.registerTrigger(e,r,c)}register(a,e){this._transitionEngine.register(a,e)}destroy(a,e){this._transitionEngine.destroy(a,e)}onInsert(a,e,t,r){this._transitionEngine.insertNode(a,e,t,r)}onRemove(a,e,t,r){this._transitionEngine.removeNode(a,e,r||!1,t)}disableAnimations(a,e){this._transitionEngine.markElementAsDisabled(a,e)}process(a,e,t,r){if("@"==t.charAt(0)){const[d,u]=kL(t);this._timelineEngine.command(d,e,u,r)}else this._transitionEngine.trigger(a,e,t,r)}listen(a,e,t,r,d){if("@"==t.charAt(0)){const[u,c]=kL(t);return this._timelineEngine.listen(u,e,c,d)}return this._transitionEngine.listen(a,e,t,r,d)}flush(a=-1){this._transitionEngine.flush(a)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let S6=(()=>{class i{constructor(e,t,r){this._element=e,this._startStyles=t,this._endStyles=r,this._state=0;let d=i.initialStylesByElement.get(e);d||i.initialStylesByElement.set(e,d=new Map),this._initialStyles=d}start(){this._state<1&&(this._startStyles&&Xo(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Xo(this._element,this._initialStyles),this._endStyles&&(Xo(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(i.initialStylesByElement.delete(this._element),this._startStyles&&(Ju(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ju(this._element,this._endStyles),this._endStyles=null),Xo(this._element,this._initialStyles),this._state=3)}}return i.initialStylesByElement=new WeakMap,i})();function $T(i){let a=null;return i.forEach((e,t)=>{(function E6(i){return"display"===i||"position"===i})(t)&&(a=a||new Map,a.set(t,e))}),a}class cH{constructor(a,e,t,r){this.element=a,this.keyframes=e,this.options=t,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=t.duration,this._delay=t.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(a=>a()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const a=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,a,this.options),this._finalKeyframe=a.length?a[a.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(a){const e=[];return a.forEach(t=>{e.push(Object.fromEntries(t))}),e}_triggerWebAnimation(a,e,t){return a.animate(this._convertKeyframesToObject(e),t)}onStart(a){this._originalOnStartFns.push(a),this._onStartFns.push(a)}onDone(a){this._originalOnDoneFns.push(a),this._onDoneFns.push(a)}onDestroy(a){this._onDestroyFns.push(a)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(a=>a()),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,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_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(a=>a()),this._onDestroyFns=[])}setPosition(a){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=a*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const a=new Map;this.hasStarted()&&this._finalKeyframe.forEach((t,r)=>{"offset"!==r&&a.set(r,this._finished?t:$L(this.element,r))}),this.currentSnapshot=a}triggerCallback(a){const e="start"===a?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class D6{validateStyleProperty(a){return!0}validateAnimatableStyleProperty(a){return!0}matchesElement(a,e){return!1}containsElement(a,e){return NL(a,e)}getParentElement(a){return LT(a)}query(a,e,t){return VL(a,e,t)}computeStyle(a,e,t){return window.getComputedStyle(a)[e]}animate(a,e,t,r,d,u=[]){const o={duration:t,delay:r,fill:0==r?"both":"forwards"};d&&(o.easing=d);const s=new Map,l=u.filter(m=>m instanceof cH);(function R4(i,a){return 0===i||0===a})(t,r)&&l.forEach(m=>{m.currentSnapshot.forEach((g,f)=>s.set(f,g))});let h=function E4(i){return i.length?i[0]instanceof Map?i:i.map(a=>UL(a)):[]}(e).map(m=>xd(m));h=function P4(i,a,e){if(e.size&&a.length){let t=a[0],r=[];if(e.forEach((d,u)=>{t.has(u)||r.push(u),t.set(u,d)}),r.length)for(let d=1;du.set(c,$L(i,c)))}}return a}(a,h,s);const p=function x6(i,a){let e=null,t=null;return Array.isArray(a)&&a.length?(e=$T(a[0]),a.length>1&&(t=$T(a[a.length-1]))):a instanceof Map&&(e=$T(a)),e||t?new S6(i,e,t):null}(a,h);return new cH(a,h,o,p)}}let L6=(()=>{class i extends W0{constructor(e,t){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(t.body,{id:"0",encapsulation:n.ifc.None,styles:[],data:{animation:[]}})}build(e){const t=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?G0(e):e;return dH(this._renderer,null,t,"register",[r]),new H6(t,this._renderer)}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(n.FYo),n.LFG(T.K0))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();class H6 extends class A_{}{constructor(a,e){super(),this._id=a,this._renderer=e}create(a,e){return new R6(this._id,a,e||{},this._renderer)}}class R6{constructor(a,e,t,r){this.id=a,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",t)}_listen(a,e){return this._renderer.listen(this.element,`@@${this.id}:${a}`,e)}_command(a,...e){return dH(this._renderer,this.element,this.id,a,e)}onDone(a){this._listen("done",a)}onStart(a){this._listen("start",a)}onDestroy(a){this._listen("destroy",a)}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"),this._started=!1}setPosition(a){this._command("setPosition",a)}getPosition(){var a,e;return null!==(a=null===(e=this._renderer.engine.players[+this.id])||void 0===e?void 0:e.getPosition())&&void 0!==a?a:0}}function dH(i,a,e,t,r){return i.setProperty(a,`@@${e}:${t}`,r)}const uH="@.disabled";let P6=(()=>{class i{constructor(e,t,r){this.delegate=e,this.engine=t,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),t.onRemovalComplete=(d,u)=>{const c=u?.parentNode(d);c&&u.removeChild(c,d)}}createRenderer(e,t){const d=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){let l=this._rendererCache.get(d);return l||(l=new hH("",d,this.engine),this._rendererCache.set(d,l)),l}const u=t.id,c=t.id+"-"+this._currentId;this._currentId++,this.engine.register(c,e);const o=l=>{Array.isArray(l)?l.forEach(o):this.engine.registerTrigger(u,c,e,l.name,l)};return t.data.animation.forEach(o),new k6(this,c,d,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,r){e>=0&&et(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(d=>{const[u,c]=d;u(c)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,r]))}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 i.\u0275fac=function(e){return new(e||i)(n.LFG(n.FYo),n.LFG(sy),n.LFG(n.R0b))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();class hH{constructor(a,e,t){this.namespaceId=a,this.delegate=e,this.engine=t,this.destroyNode=this.delegate.destroyNode?r=>e.destroyNode(r):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(a,e){return this.delegate.createElement(a,e)}createComment(a){return this.delegate.createComment(a)}createText(a){return this.delegate.createText(a)}appendChild(a,e){this.delegate.appendChild(a,e),this.engine.onInsert(this.namespaceId,e,a,!1)}insertBefore(a,e,t,r=!0){this.delegate.insertBefore(a,e,t),this.engine.onInsert(this.namespaceId,e,a,r)}removeChild(a,e,t){this.engine.onRemove(this.namespaceId,e,this.delegate,t)}selectRootElement(a,e){return this.delegate.selectRootElement(a,e)}parentNode(a){return this.delegate.parentNode(a)}nextSibling(a){return this.delegate.nextSibling(a)}setAttribute(a,e,t,r){this.delegate.setAttribute(a,e,t,r)}removeAttribute(a,e,t){this.delegate.removeAttribute(a,e,t)}addClass(a,e){this.delegate.addClass(a,e)}removeClass(a,e){this.delegate.removeClass(a,e)}setStyle(a,e,t,r){this.delegate.setStyle(a,e,t,r)}removeStyle(a,e,t){this.delegate.removeStyle(a,e,t)}setProperty(a,e,t){"@"==e.charAt(0)&&e==uH?this.disableAnimations(a,!!t):this.delegate.setProperty(a,e,t)}setValue(a,e){this.delegate.setValue(a,e)}listen(a,e,t){return this.delegate.listen(a,e,t)}disableAnimations(a,e){this.engine.disableAnimations(a,e)}}class k6 extends hH{constructor(a,e,t,r){super(e,t,r),this.factory=a,this.namespaceId=e}setProperty(a,e,t){"@"==e.charAt(0)?"."==e.charAt(1)&&e==uH?this.disableAnimations(a,t=void 0===t||!!t):this.engine.process(this.namespaceId,a,e.slice(1),t):this.delegate.setProperty(a,e,t)}listen(a,e,t){if("@"==e.charAt(0)){const r=function O6(i){switch(i){case"body":return document.body;case"document":return document;case"window":return window;default:return i}}(a);let d=e.slice(1),u="";return"@"!=d.charAt(0)&&([d,u]=function I6(i){const a=i.indexOf(".");return[i.substring(0,a),i.slice(a+1)]}(d)),this.engine.listen(this.namespaceId,r,d,u,c=>{this.factory.scheduleListenerCallback(c._data||-1,t,c)})}return this.delegate.listen(a,e,t)}}const pH=[{provide:W0,useClass:L6},{provide:zT,useFactory:function N6(){return new n6}},{provide:sy,useClass:(()=>{class i extends sy{constructor(e,t,r,d){super(e.body,t,r)}ngOnDestroy(){this.flush()}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(T.K0),n.LFG(HT),n.LFG(zT),n.LFG(n.z2F))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})()},{provide:n.FYo,useFactory:function V6(i,a,e){return new P6(i,a,e)},deps:[Me,sy,n.R0b]}],ZT=[{provide:HT,useFactory:()=>new D6},{provide:n.QbO,useValue:"BrowserAnimations"},...pH],fH=[{provide:HT,useClass:jL},{provide:n.QbO,useValue:"NoopAnimations"},...pH];let j6=(()=>{class i{static withConfig(e){return{ngModule:i,providers:e.disableAnimations?fH:ZT}}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:ZT,imports:[Zt]}),i})(),F6=(()=>{class i{constructor(e,t,r,d,u){this.http=e,this.storeService=t,this.authzSevice=r,this.titleService=d,this.utilsService=u}initializeColors(e,t){return new Promise(r=>{t.forEach(d=>{const u=this.storeService.getProperty("theme")[d.configValue];document.documentElement.style.setProperty(d.cssVariable,u)}),e.forEach(d=>{const u=this.storeService.getProperty("theme")[d.configValue];document.documentElement.style.setProperty(d.cssVariable,u),this.setEntityTheme(d.entity,u)}),r()})}setEntityTheme(e,t){const r=function z6(i){return[ha(tinycolor(i).lighten(52),"50"),ha(tinycolor(i).lighten(37),"100"),ha(tinycolor(i).lighten(26),"200"),ha(tinycolor(i).lighten(12),"300"),ha(tinycolor(i).lighten(6),"400"),ha(tinycolor(i),"500"),ha(tinycolor(i).darken(6),"600"),ha(tinycolor(i).darken(12),"700"),ha(tinycolor(i).darken(18),"800"),ha(tinycolor(i).darken(24),"900"),ha(tinycolor(i).lighten(50).saturate(30),"A100"),ha(tinycolor(i).lighten(30).saturate(30),"A200"),ha(tinycolor(i).lighten(10).saturate(15),"A400"),ha(tinycolor(i).lighten(5).saturate(5),"A700")]}(t);for(const d of r){const o=`--${e}-theme-primary-contrast-${d.name}`,s=d.darkContrast?"30,30,30":"255,255,255";document.documentElement.style.setProperty(`--${e}-theme-primary-${d.name}`,`${d.red},${d.green},${d.blue}`),document.documentElement.style.setProperty(o,s)}}loadAppDefaultConfig(){return new Promise(e=>{this.http.get("/assets/config/defaultConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{this.storeService.setDefaultConfig(t),e()})})}loadAppInstanceConfig(){return new Promise(e=>{this.http.get("/assets/config/instanceConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{this.storeService.setInstanceConfig(t);const r=document.location.hostname;t?.brandings?.[r]&&this.storeService.setBanding(r),e()},()=>{e()})})}getNoCacheHeaders(){return new C.WM({CacheControl:"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"})}setInstanceFavicon(){return new Promise(e=>{const t=document.querySelector("link[rel*='icon']")||document.createElement("link");t.type="image/x-icon",t.rel="shortcut icon",t.href=this.storeService.getProperty("instance_favicon")?"./assets/config/instanceFavicon.ico":"./assets/img/perun.ico",document.getElementsByTagName("head")[0].appendChild(t),e()})}setApiUrl(){return new Promise(e=>{let t=this.storeService.getProperty("api_url");("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal")||this.storeService.getProperty("auto_service_access_redirect"))&&(t=t.replace("oauth","ba")),this.authzSevice.configuration.basePath=t,this.titleService.setTitle(this.storeService.getProperty("document_title").en),e()})}loadAppsConfig(){return new Promise((e,t)=>{this.utilsService.getAppsConfig().subscribe(r=>{this.storeService.setAppsConfig(r),e()},r=>t(r))})}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(C.eN),n.LFG(Ut),n.LFG(As),n.LFG(ce),n.LFG(Ti))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();function ha(i,a){const e=tinycolor(i),t=e.toRgb();return{name:a,hex:e.toHexString(),darkContrast:e.isLight(),red:t.r,green:t.g,blue:t.b}}let U6=(()=>{class i{constructor(e,t,r,d){this.initAuthService=e,this.appConfigService=t,this.location=r,this.mfaHandlerService=d,this.entityColorConfigs=[{entity:"user",configValue:"user_color",cssVariable:"--user-color"}],this.colorConfigs=[{configValue:"sidemenu_bg_color",cssVariable:"--side-bg"},{configValue:"sidemenu_hover_color",cssVariable:"--side-hover"},{configValue:"sidemenu_hover_text_color",cssVariable:"--side-text-hover"},{configValue:"sidemenu_active_color",cssVariable:"--side-active"},{configValue:"sidemenu_active_text_color",cssVariable:"--side-text-active"}]}initialize(){return this.appConfigService.loadAppDefaultConfig().then(()=>this.appConfigService.loadAppInstanceConfig()).then(()=>this.appConfigService.setApiUrl()).then(()=>this.appConfigService.initializeColors(this.entityColorConfigs,this.colorConfigs)).then(()=>this.appConfigService.setInstanceFavicon()).then(()=>this.initAuthService.verifyAuth()).catch(e=>{throw this.mfaHandlerService.catchNoMfaTokenError(e?.params?.error),console.error(e),this.location.go("/"),location.reload(),e}).then(e=>e?(this.mfaHandlerService.closeMfaWindow(),this.initAuthService.loadPrincipal().then(()=>this.appConfigService.loadAppsConfig()).then(()=>this.initAuthService.checkRouteGuard())):this.initAuthService.handleAuthStart())}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(oA),n.LFG(F6),n.LFG(T.Ye),n.LFG(Tv))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),bH=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Rv,Ho]}),i})(),xH=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Rv]}),i})(),mW=(()=>{class i{constructor(e,t){(0,T.PM)(t)&&!e&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(e,t=[]){return{ngModule:i,providers:e.serverLoaded?[{provide:no,useValue:{...Pv,...e}},{provide:kv,useValue:t,multi:!0},{provide:Qp,useValue:!0}]:[{provide:no,useValue:{...Pv,...e}},{provide:kv,useValue:t,multi:!0}]}}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(Qp),n.LFG(n.Lbi))},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[bH,qE,xH,bH,qE,xH]}),i})();const gW=new n.OlP("perun-api-service"),_W={provide:C.TP,useExisting:(0,n.Gpc)(()=>gE),multi:!0};function bW(i){return new Vq(i,"./assets/i18n/",".json")}function AW(i){const a={basePath:i.getProperty("api_url")};return new It(a)}const yW=i=>()=>i.initialize();let wW=(()=>{class i{constructor(e,t){this.customIconService=e,this.translate=t,this.translate.setDefaultLang("en"),this.translate.use("en"),this.customIconService.registerPerunRefreshIcon()}}return i.\u0275fac=function(e){return new(e||i)(n.LFG(fE),n.LFG(tn))},i.\u0275mod=n.oAB({type:i,bootstrap:[pI]}),i.\u0275inj=n.cJS({providers:[fE,{provide:n.ip1,useFactory:yW,multi:!0,deps:[U6]},{provide:It,useFactory:AW,deps:[Ut]},gA,gE,_W,{provide:gW,useClass:D2},ce,{provide:Ql.Hy,useFactory:()=>localStorage}],imports:[Zt,j6,C.JF,po.forRoot({loader:{provide:ea,useFactory:bW,deps:[C.eN]}}),Nq,eo,Lv,nT,xl,Ka,mW,Qv,TL,_A,gT,Gs,md,Wu,fg,Kp,Xs,mg,qu,ef,BA,MT,rD,JE,LN,ca,Uo,vT,uD,Fu,YU,QC,Wp,Ql.zr.forRoot(),cP]}),i})();(0,n.G48)(),ye().bootstrapModule(wW).catch(i=>console.error(i))},1302:function(Y,G,E){var T;!function(n,H){var D={};!function(n){"use strict";n.__esModule=!0,n.digestLength=32,n.blockSize=64;var H=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function D(ue,oe,re,be,we){for(var xe,Xe,et,ke,De,Re,_t,Ve,ze,Fe,me,_e,Te;we>=64;){for(xe=oe[0],Xe=oe[1],et=oe[2],ke=oe[3],De=oe[4],Re=oe[5],_t=oe[6],Ve=oe[7],Fe=0;Fe<16;Fe++)ue[Fe]=(255&re[me=be+4*Fe])<<24|(255&re[me+1])<<16|(255&re[me+2])<<8|255&re[me+3];for(Fe=16;Fe<64;Fe++)ue[Fe]=((_e=((ze=ue[Fe-2])>>>17|ze<<15)^(ze>>>19|ze<<13)^ze>>>10)+ue[Fe-7]|0)+((Te=((ze=ue[Fe-15])>>>7|ze<<25)^(ze>>>18|ze<<14)^ze>>>3)+ue[Fe-16]|0);for(Fe=0;Fe<64;Fe++)_e=(((De>>>6|De<<26)^(De>>>11|De<<21)^(De>>>25|De<<7))+(De&Re^~De&_t)|0)+(Ve+(H[Fe]+ue[Fe]|0)|0)|0,Te=((xe>>>2|xe<<30)^(xe>>>13|xe<<19)^(xe>>>22|xe<<10))+(xe&Xe^xe&et^Xe&et)|0,Ve=_t,_t=Re,Re=De,De=ke+_e|0,ke=et,et=Xe,Xe=xe,xe=_e+Te|0;oe[0]+=xe,oe[1]+=Xe,oe[2]+=et,oe[3]+=ke,oe[4]+=De,oe[5]+=Re,oe[6]+=_t,oe[7]+=Ve,be+=64,we-=64}return be}var L=function(){function ue(){this.digestLength=n.digestLength,this.blockSize=n.blockSize,this.state=new Int32Array(8),this.temp=new Int32Array(64),this.buffer=new Uint8Array(128),this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this.reset()}return ue.prototype.reset=function(){return this.state[0]=1779033703,this.state[1]=3144134277,this.state[2]=1013904242,this.state[3]=2773480762,this.state[4]=1359893119,this.state[5]=2600822924,this.state[6]=528734635,this.state[7]=1541459225,this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this},ue.prototype.clean=function(){for(var oe=0;oe0){for(;this.bufferLength<64&&re>0;)this.buffer[this.bufferLength++]=oe[be++],re--;64===this.bufferLength&&(D(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(re>=64&&(be=D(this.temp,this.state,oe,be,re),re%=64);re>0;)this.buffer[this.bufferLength++]=oe[be++],re--;return this},ue.prototype.finish=function(oe){if(!this.finished){var re=this.bytesHashed,be=this.bufferLength,we=re/536870912|0,xe=re<<3,Xe=re%64<56?64:128;this.buffer[be]=128;for(var et=be+1;et>>24&255,this.buffer[Xe-7]=we>>>16&255,this.buffer[Xe-6]=we>>>8&255,this.buffer[Xe-5]=we>>>0&255,this.buffer[Xe-4]=xe>>>24&255,this.buffer[Xe-3]=xe>>>16&255,this.buffer[Xe-2]=xe>>>8&255,this.buffer[Xe-1]=xe>>>0&255,D(this.temp,this.state,this.buffer,0,Xe),this.finished=!0}for(et=0;et<8;et++)oe[4*et+0]=this.state[et]>>>24&255,oe[4*et+1]=this.state[et]>>>16&255,oe[4*et+2]=this.state[et]>>>8&255,oe[4*et+3]=this.state[et]>>>0&255;return this},ue.prototype.digest=function(){var oe=new Uint8Array(this.digestLength);return this.finish(oe),oe},ue.prototype._saveState=function(oe){for(var re=0;rethis.blockSize)(new L).update(oe).finish(re).clean();else for(var be=0;be1&&oe.update(ue),re&&oe.update(re),oe.update(be),oe.finish(ue),be[0]++}n.HMAC=O,n.hash=B,n.default=B,n.hmac=U;var ee=new Uint8Array(n.digestLength);n.hkdf=function te(ue,oe,re,be){void 0===oe&&(oe=ee),void 0===be&&(be=32);for(var we=new Uint8Array([1]),xe=U(oe,ue),Xe=new O(xe),et=new Uint8Array(Xe.digestLength),ke=et.length,De=new Uint8Array(be),Re=0;Re>>24&255,Xe[1]=_t>>>16&255,Xe[2]=_t>>>8&255,Xe[3]=_t>>>0&255,we.reset(),we.update(oe),we.update(Xe),we.finish(ke);for(var Ve=0;Ve=te.status}function O(ee){try{ee.dispatchEvent(new MouseEvent("click"))}catch{var te=document.createEvent("MouseEvents");te.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),ee.dispatchEvent(te)}}var B="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,U=B.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),W=B.saveAs||("object"!=typeof window||window!==B?function(){}:"download"in HTMLAnchorElement.prototype&&!U?function(ee,te,ae){var ue=B.URL||B.webkitURL,oe=document.createElement("a");oe.download=te=te||ee.name||"download",oe.rel="noopener","string"==typeof ee?(oe.href=ee,oe.origin===location.origin?O(oe):L(oe.href)?D(ee,te,ae):O(oe,oe.target="_blank")):(oe.href=ue.createObjectURL(ee),setTimeout(function(){ue.revokeObjectURL(oe.href)},4e4),setTimeout(function(){O(oe)},0))}:"msSaveOrOpenBlob"in navigator?function(ee,te,ae){if(te=te||ee.name||"download","string"!=typeof ee)navigator.msSaveOrOpenBlob(function H(ee,te){return typeof te>"u"?te={autoBom:!1}:"object"!=typeof te&&(console.warn("Deprecated: Expected third argument to be a object"),te={autoBom:!te}),te.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(ee.type)?new Blob(["\ufeff",ee],{type:ee.type}):ee}(ee,ae),te);else if(L(ee))D(ee,te,ae);else{var ue=document.createElement("a");ue.href=ee,ue.target="_blank",setTimeout(function(){O(ue)})}}:function(ee,te,ae,ue){if((ue=ue||open("","_blank"))&&(ue.document.title=ue.document.body.innerText="downloading..."),"string"==typeof ee)return D(ee,te,ae);var oe="application/octet-stream"===ee.type,re=/constructor/i.test(B.HTMLElement)||B.safari,be=/CriOS\/[\d]+/.test(navigator.userAgent);if((be||oe&&re||U)&&typeof FileReader<"u"){var we=new FileReader;we.onloadend=function(){var et=we.result;et=be?et:et.replace(/^data:[^;]*;/,"data:attachment/file;"),ue?ue.location.href=et:location=et,ue=null},we.readAsDataURL(ee)}else{var xe=B.URL||B.webkitURL,Xe=xe.createObjectURL(ee);ue?ue.location=Xe:location.href=Xe,ue=null,setTimeout(function(){xe.revokeObjectURL(Xe)},4e4)}});B.saveAs=W.saveAs=W,Y.exports=W}.apply(G,[]))&&(Y.exports=n)},1158:(Y,G,E)=>{(Y.exports=E(7867)).tz.load(E(1128))},7867:function(Y,G,E){var T,n,H;!function(D,L){"use strict";Y.exports?Y.exports=L(E(5439)):(n=[E(5439)],void 0!==(H="function"==typeof(T=L)?T.apply(G,n):T)&&(Y.exports=H))}(0,function(D){"use strict";void 0===D.version&&D.default&&(D=D.default);var te,O={},B={},U={},W={},ee={};(!D||"string"!=typeof D.version)&&Ii("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");var ae=D.version.split("."),ue=+ae[0],oe=+ae[1];function re(pe){return pe>96?pe-87:pe>64?pe-29:pe-48}function be(pe){var Ie=0,ye=pe.split("."),Ye=ye[0],lt=ye[1]||"",ct=1,hi=0,un=1;for(45===pe.charCodeAt(0)&&(Ie=1,un=-1);Ie= 2.6.0. You are using Moment.js "+D.version+". See momentjs.com"),ke.prototype={_set:function(pe){this.name=pe.name,this.abbrs=pe.abbrs,this.untils=pe.untils,this.offsets=pe.offsets,this.population=pe.population},_index:function(pe){var Ye,Ie=+pe,ye=this.untils;for(Ye=0;Yehi&&hn.moveInvalidForward&&(ct=hi),Ie3){var Ie=W[$e(pe)];if(Ie)return Ie;Ii("Moment Timezone found "+pe+" from the Intl api, but did not have that data loaded.")}}catch{}var Zt,hi,un,ye=function ze(){var Ye,lt,ct,pe=(new Date).getFullYear()-2,Ie=new Re(new Date(pe,0,1)),ye=[Ie];for(ct=1;ct<48;ct++)(lt=new Re(new Date(pe,ct,1))).offset!==Ie.offset&&(Ye=Ve(Ie,lt),ye.push(Ye),ye.push(new Re(new Date(Ye.at+6e4)))),Ie=lt;for(ct=0;ct<4;ct++)ye.push(new Re(new Date(pe+ct,0,1))),ye.push(new Re(new Date(pe+ct,6,1)));return ye}(),Ye=ye.length,lt=function _e(pe){var lt,ct,Zt,Ie=pe.length,ye={},Ye=[];for(lt=0;lt0?ct[0].zone.name:void 0}()),te},hn.names=function Ft(){var pe,Ie=[];for(pe in W)W.hasOwnProperty(pe)&&(O[pe]||O[B[pe]])&&W[pe]&&Ie.push(W[pe]);return Ie.sort()},hn.Zone=ke,hn.unpack=et,hn.unpackBase60=be,hn.needsOffset=Tn,hn.moveInvalidForward=!0,hn.moveAmbiguousForward=!1,hn.countries=function cn(){return Object.keys(U)},hn.zonesForCountry=function Je(pe,Ie){if(!(pe=function Oi(pe){return pe=pe.toUpperCase(),U[pe]||null}(pe)))return null;var ye=pe.zones.sort();return Ie?ye.map(function(Ye){return{name:Ye,offset:yt(Ye).utcOffset(new Date)}}):ye};var vi=D.fn;function co(pe){return function(){return this._z?this._z.abbr(this):pe.call(this)}}function pa(pe){return function(){return this._z=null,pe.apply(this,arguments)}}D.tz=hn,D.defaultZone=null,D.updateOffset=function(pe,Ie){var Ye,ye=D.defaultZone;if(void 0===pe._z&&(ye&&Tn(pe)&&!pe._isUTC&&(pe._d=D.utc(pe._a)._d,pe.utc().add(ye.parse(pe),"minutes")),pe._z=ye),pe._z)if(Ye=pe._z.utcOffset(pe),Math.abs(Ye)<16&&(Ye/=60),void 0!==pe.utcOffset){var lt=pe._z;pe.utcOffset(-Ye,Ie),pe._z=lt}else pe.zone(Ye,Ie)},vi.tz=function(pe,Ie){if(pe){if("string"!=typeof pe)throw new Error("Time zone name must be a string, got "+pe+" ["+typeof pe+"]");return this._z=yt(pe),this._z?D.updateOffset(this,Ie):Ii("Moment Timezone has no data for "+pe+". See http://momentjs.com/timezone/docs/#/data-loading/."),this}if(this._z)return this._z.name},vi.zoneName=co(vi.zoneName),vi.zoneAbbr=co(vi.zoneAbbr),vi.utc=pa(vi.utc),vi.local=pa(vi.local),vi.utcOffset=function Cr(pe){return function(){return arguments.length>0&&(this._z=null),pe.apply(this,arguments)}}(vi.utcOffset),D.tz.setDefault=function(pe){return(ue<2||2===ue&&oe<9)&&Ii("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js "+D.version+"."),D.defaultZone=pe?yt(pe):null,D};var zi=D.momentProperties;return"[object Array]"===Object.prototype.toString.call(zi)?(zi.push("_z"),zi.push("_a")):zi&&(zi._z=null),D})},7088:function(Y,G,E){!function(T){"use strict";T.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(H){return/^nm$/i.test(H)},meridiem:function(H,D,L){return H<12?L?"vm":"VM":L?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[M\xf4re om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(H){return H+(1===H||8===H||H>=20?"ste":"de")},week:{dow:1,doy:4}})}(E(5439))},2502:function(Y,G,E){!function(T){"use strict";var n=function(B){return 0===B?0:1===B?1:2===B?2:B%100>=3&&B%100<=10?3:B%100>=11?4:5},H={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},D=function(B){return function(U,W,ee,te){var ae=n(U),ue=H[B][n(U)];return 2===ae&&(ue=ue[W?0:1]),ue.replace(/%d/i,U)}},L=["\u062c\u0627\u0646\u0641\u064a","\u0641\u064a\u0641\u0631\u064a","\u0645\u0627\u0631\u0633","\u0623\u0641\u0631\u064a\u0644","\u0645\u0627\u064a","\u062c\u0648\u0627\u0646","\u062c\u0648\u064a\u0644\u064a\u0629","\u0623\u0648\u062a","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];T.defineLocale("ar-dz",{months:L,monthsShort:L,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(B){return"\u0645"===B},meridiem:function(B,U,W){return B<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:D("s"),ss:D("s"),m:D("m"),mm:D("m"),h:D("h"),hh:D("h"),d:D("d"),dd:D("d"),M:D("M"),MM:D("M"),y:D("y"),yy:D("y")},postformat:function(B){return B.replace(/,/g,"\u060c")},week:{dow:0,doy:4}})}(E(5439))},128:function(Y,G,E){!function(T){"use strict";T.defineLocale("ar-kw",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062a\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062a\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:0,doy:12}})}(E(5439))},4519:function(Y,G,E){!function(T){"use strict";var n={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},H=function(U){return 0===U?0:1===U?1:2===U?2:U%100>=3&&U%100<=10?3:U%100>=11?4:5},D={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},L=function(U){return function(W,ee,te,ae){var ue=H(W),oe=D[U][H(W)];return 2===ue&&(oe=oe[ee?0:1]),oe.replace(/%d/i,W)}},O=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];T.defineLocale("ar-ly",{months:O,monthsShort:O,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(U){return"\u0645"===U},meridiem:function(U,W,ee){return U<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:L("s"),ss:L("s"),m:L("m"),mm:L("m"),h:L("h"),hh:L("h"),d:L("d"),dd:L("d"),M:L("M"),MM:L("M"),y:L("y"),yy:L("y")},preparse:function(U){return U.replace(/\u060c/g,",")},postformat:function(U){return U.replace(/\d/g,function(W){return n[W]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(E(5439))},5443:function(Y,G,E){!function(T){"use strict";T.defineLocale("ar-ma",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(E(5439))},7642:function(Y,G,E){!function(T){"use strict";var n={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},H={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"};T.defineLocale("ar-sa",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(L){return"\u0645"===L},meridiem:function(L,O,B){return L<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},preparse:function(L){return L.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(O){return H[O]}).replace(/\u060c/g,",")},postformat:function(L){return L.replace(/\d/g,function(O){return n[O]}).replace(/,/g,"\u060c")},week:{dow:0,doy:6}})}(E(5439))},8592:function(Y,G,E){!function(T){"use strict";T.defineLocale("ar-tn",{months:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(E(5439))},7038:function(Y,G,E){!function(T){"use strict";var n={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},H={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},D=function(W){return 0===W?0:1===W?1:2===W?2:W%100>=3&&W%100<=10?3:W%100>=11?4:5},L={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},O=function(W){return function(ee,te,ae,ue){var oe=D(ee),re=L[W][D(ee)];return 2===oe&&(re=re[te?0:1]),re.replace(/%d/i,ee)}},B=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];T.defineLocale("ar",{months:B,monthsShort:B,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(W){return"\u0645"===W},meridiem:function(W,ee,te){return W<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:O("s"),ss:O("s"),m:O("m"),mm:O("m"),h:O("h"),hh:O("h"),d:O("d"),dd:O("d"),M:O("M"),MM:O("M"),y:O("y"),yy:O("y")},preparse:function(W){return W.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(ee){return H[ee]}).replace(/\u060c/g,",")},postformat:function(W){return W.replace(/\d/g,function(ee){return n[ee]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(E(5439))},1213:function(Y,G,E){!function(T){"use strict";var n={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-\xfcnc\xfc",4:"-\xfcnc\xfc",100:"-\xfcnc\xfc",6:"-nc\u0131",9:"-uncu",10:"-uncu",30:"-uncu",60:"-\u0131nc\u0131",90:"-\u0131nc\u0131"};T.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ert\u0259si_\xc7\u0259r\u015f\u0259nb\u0259 ax\u015fam\u0131_\xc7\u0259r\u015f\u0259nb\u0259_C\xfcm\u0259 ax\u015fam\u0131_C\xfcm\u0259_\u015e\u0259nb\u0259".split("_"),weekdaysShort:"Baz_BzE_\xc7Ax_\xc7\u0259r_CAx_C\xfcm_\u015e\u0259n".split("_"),weekdaysMin:"Bz_BE_\xc7A_\xc7\u0259_CA_C\xfc_\u015e\u0259".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[g\u0259l\u0259n h\u0259ft\u0259] dddd [saat] LT",lastDay:"[d\xfcn\u0259n] LT",lastWeek:"[ke\xe7\u0259n h\u0259ft\u0259] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \u0259vv\u0259l",s:"bir ne\xe7\u0259 saniy\u0259",ss:"%d saniy\u0259",m:"bir d\u0259qiq\u0259",mm:"%d d\u0259qiq\u0259",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gec\u0259|s\u0259h\u0259r|g\xfcnd\xfcz|ax\u015fam/,isPM:function(D){return/^(g\xfcnd\xfcz|ax\u015fam)$/.test(D)},meridiem:function(D,L,O){return D<4?"gec\u0259":D<12?"s\u0259h\u0259r":D<17?"g\xfcnd\xfcz":"ax\u015fam"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0131nc\u0131|inci|nci|\xfcnc\xfc|nc\u0131|uncu)/,ordinal:function(D){if(0===D)return D+"-\u0131nc\u0131";var L=D%10;return D+(n[L]||n[D%100-L]||n[D>=100?100:null])},week:{dow:1,doy:7}})}(E(5439))},9191:function(Y,G,E){!function(T){"use strict";function H(L,O,B){return"m"===B?O?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443":"h"===B?O?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443":L+" "+function n(L,O){var B=L.split("_");return O%10==1&&O%100!=11?B[0]:O%10>=2&&O%10<=4&&(O%100<10||O%100>=20)?B[1]:B[2]}({ss:O?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:O?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d",hh:O?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d",dd:"\u0434\u0437\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u0437\u0451\u043d",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u044b_\u043c\u0435\u0441\u044f\u0446\u0430\u045e",yy:"\u0433\u043e\u0434_\u0433\u0430\u0434\u044b_\u0433\u0430\u0434\u043e\u045e"}[B],+L)}T.defineLocale("be",{months:{format:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044f_\u043b\u044e\u0442\u0430\u0433\u0430_\u0441\u0430\u043a\u0430\u0432\u0456\u043a\u0430_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a\u0430_\u0442\u0440\u0430\u045e\u043d\u044f_\u0447\u044d\u0440\u0432\u0435\u043d\u044f_\u043b\u0456\u043f\u0435\u043d\u044f_\u0436\u043d\u0456\u045e\u043d\u044f_\u0432\u0435\u0440\u0430\u0441\u043d\u044f_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a\u0430_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434\u0430_\u0441\u043d\u0435\u0436\u043d\u044f".split("_"),standalone:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044c_\u043b\u044e\u0442\u044b_\u0441\u0430\u043a\u0430\u0432\u0456\u043a_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u044d\u0440\u0432\u0435\u043d\u044c_\u043b\u0456\u043f\u0435\u043d\u044c_\u0436\u043d\u0456\u0432\u0435\u043d\u044c_\u0432\u0435\u0440\u0430\u0441\u0435\u043d\u044c_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434_\u0441\u043d\u0435\u0436\u0430\u043d\u044c".split("_")},monthsShort:"\u0441\u0442\u0443\u0434_\u043b\u044e\u0442_\u0441\u0430\u043a_\u043a\u0440\u0430\u0441_\u0442\u0440\u0430\u0432_\u0447\u044d\u0440\u0432_\u043b\u0456\u043f_\u0436\u043d\u0456\u0432_\u0432\u0435\u0440_\u043a\u0430\u0441\u0442_\u043b\u0456\u0441\u0442_\u0441\u043d\u0435\u0436".split("_"),weekdays:{format:"\u043d\u044f\u0434\u0437\u0435\u043b\u044e_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0443_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0443_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),standalone:"\u043d\u044f\u0434\u0437\u0435\u043b\u044f_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0430_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0430_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),isFormat:/\[ ?[\u0423\u0443\u045e] ?(?:\u043c\u0456\u043d\u0443\u043b\u0443\u044e|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0443\u044e)? ?\] ?dddd/},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., HH:mm",LLLL:"dddd, D MMMM YYYY \u0433., HH:mm"},calendar:{sameDay:"[\u0421\u0451\u043d\u043d\u044f \u045e] LT",nextDay:"[\u0417\u0430\u045e\u0442\u0440\u0430 \u045e] LT",lastDay:"[\u0423\u0447\u043e\u0440\u0430 \u045e] LT",nextWeek:function(){return"[\u0423] dddd [\u045e] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u0443\u044e] dddd [\u045e] LT";case 1:case 2:case 4:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u044b] dddd [\u045e] LT"}},sameElse:"L"},relativeTime:{future:"\u043f\u0440\u0430\u0437 %s",past:"%s \u0442\u0430\u043c\u0443",s:"\u043d\u0435\u043a\u0430\u043b\u044c\u043a\u0456 \u0441\u0435\u043a\u0443\u043d\u0434",m:H,mm:H,h:H,hh:H,d:"\u0434\u0437\u0435\u043d\u044c",dd:H,M:"\u043c\u0435\u0441\u044f\u0446",MM:H,y:"\u0433\u043e\u0434",yy:H},meridiemParse:/\u043d\u043e\u0447\u044b|\u0440\u0430\u043d\u0456\u0446\u044b|\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430/,isPM:function(L){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430)$/.test(L)},meridiem:function(L,O,B){return L<4?"\u043d\u043e\u0447\u044b":L<12?"\u0440\u0430\u043d\u0456\u0446\u044b":L<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0430\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0456|\u044b|\u0433\u0430)/,ordinal:function(L,O){switch(O){case"M":case"d":case"DDD":case"w":case"W":return L%10!=2&&L%10!=3||L%100==12||L%100==13?L+"-\u044b":L+"-\u0456";case"D":return L+"-\u0433\u0430";default:return L}},week:{dow:1,doy:7}})}(E(5439))},322:function(Y,G,E){!function(T){"use strict";T.defineLocale("bg",{months:"\u044f\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u044f\u043d\u0443_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u044f\u0434\u0430_\u0447\u0435\u0442\u0432\u044a\u0440\u0442\u044a\u043a_\u043f\u0435\u0442\u044a\u043a_\u0441\u044a\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u044f_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u044a\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u043d\u0435\u0441 \u0432] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432] LT",nextWeek:"dddd [\u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u041c\u0438\u043d\u0430\u043b\u0430\u0442\u0430] dddd [\u0432] LT";case 1:case 2:case 4:case 5:return"[\u041c\u0438\u043d\u0430\u043b\u0438\u044f] dddd [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0441\u043b\u0435\u0434 %s",past:"\u043f\u0440\u0435\u0434\u0438 %s",s:"\u043d\u044f\u043a\u043e\u043b\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",w:"\u0441\u0435\u0434\u043c\u0438\u0446\u0430",ww:"%d \u0441\u0435\u0434\u043c\u0438\u0446\u0438",M:"\u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0430",y:"\u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(H){var D=H%10,L=H%100;return 0===H?H+"-\u0435\u0432":0===L?H+"-\u0435\u043d":L>10&&L<20?H+"-\u0442\u0438":1===D?H+"-\u0432\u0438":2===D?H+"-\u0440\u0438":7===D||8===D?H+"-\u043c\u0438":H+"-\u0442\u0438"},week:{dow:1,doy:7}})}(E(5439))},8042:function(Y,G,E){!function(T){"use strict";T.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_M\u025bkalo_Zuw\u025bnkalo_Zuluyekalo_Utikalo_S\u025btanburukalo_\u0254kut\u0254burukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_M\u025b_Zuw_Zul_Uti_S\u025bt_\u0254ku_Now_Des".split("_"),weekdays:"Kari_Nt\u025bn\u025bn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Nt\u025b_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm"},calendar:{sameDay:"[Bi l\u025br\u025b] LT",nextDay:"[Sini l\u025br\u025b] LT",nextWeek:"dddd [don l\u025br\u025b] LT",lastDay:"[Kunu l\u025br\u025b] LT",lastWeek:"dddd [t\u025bm\u025bnen l\u025br\u025b] LT",sameElse:"L"},relativeTime:{future:"%s k\u0254n\u0254",past:"a b\u025b %s b\u0254",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"l\u025br\u025b kelen",hh:"l\u025br\u025b %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})}(E(5439))},5903:function(Y,G,E){!function(T){"use strict";var n={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},H={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};T.defineLocale("bn-bd",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(L){return L.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(O){return H[O]})},postformat:function(L){return L.replace(/\d/g,function(O){return n[O]})},meridiemParse:/\u09b0\u09be\u09a4|\u09ad\u09cb\u09b0|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be|\u09b0\u09be\u09a4/,meridiemHour:function(L,O){return 12===L&&(L=0),"\u09b0\u09be\u09a4"===O?L<4?L:L+12:"\u09ad\u09cb\u09b0"===O||"\u09b8\u0995\u09be\u09b2"===O?L:"\u09a6\u09c1\u09aa\u09c1\u09b0"===O?L>=3?L:L+12:"\u09ac\u09bf\u0995\u09be\u09b2"===O||"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be"===O?L+12:void 0},meridiem:function(L,O,B){return L<4?"\u09b0\u09be\u09a4":L<6?"\u09ad\u09cb\u09b0":L<12?"\u09b8\u0995\u09be\u09b2":L<15?"\u09a6\u09c1\u09aa\u09c1\u09b0":L<18?"\u09ac\u09bf\u0995\u09be\u09b2":L<20?"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(E(5439))},9620:function(Y,G,E){!function(T){"use strict";var n={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},H={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};T.defineLocale("bn",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(L){return L.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(O){return H[O]})},postformat:function(L){return L.replace(/\d/g,function(O){return n[O]})},meridiemParse:/\u09b0\u09be\u09a4|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b0\u09be\u09a4/,meridiemHour:function(L,O){return 12===L&&(L=0),"\u09b0\u09be\u09a4"===O&&L>=4||"\u09a6\u09c1\u09aa\u09c1\u09b0"===O&&L<5||"\u09ac\u09bf\u0995\u09be\u09b2"===O?L+12:L},meridiem:function(L,O,B){return L<4?"\u09b0\u09be\u09a4":L<10?"\u09b8\u0995\u09be\u09b2":L<17?"\u09a6\u09c1\u09aa\u09c1\u09b0":L<20?"\u09ac\u09bf\u0995\u09be\u09b2":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(E(5439))},9645:function(Y,G,E){!function(T){"use strict";var n={1:"\u0f21",2:"\u0f22",3:"\u0f23",4:"\u0f24",5:"\u0f25",6:"\u0f26",7:"\u0f27",8:"\u0f28",9:"\u0f29",0:"\u0f20"},H={"\u0f21":"1","\u0f22":"2","\u0f23":"3","\u0f24":"4","\u0f25":"5","\u0f26":"6","\u0f27":"7","\u0f28":"8","\u0f29":"9","\u0f20":"0"};T.defineLocale("bo",{months:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f44\u0f0b\u0f54\u0f7c_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f66\u0f74\u0f58\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f5e\u0f72\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f63\u0f94\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0fb2\u0f74\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f62\u0f92\u0fb1\u0f51\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f42\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f45\u0f72\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54".split("_"),monthsShort:"\u0f5f\u0fb3\u0f0b1_\u0f5f\u0fb3\u0f0b2_\u0f5f\u0fb3\u0f0b3_\u0f5f\u0fb3\u0f0b4_\u0f5f\u0fb3\u0f0b5_\u0f5f\u0fb3\u0f0b6_\u0f5f\u0fb3\u0f0b7_\u0f5f\u0fb3\u0f0b8_\u0f5f\u0fb3\u0f0b9_\u0f5f\u0fb3\u0f0b10_\u0f5f\u0fb3\u0f0b11_\u0f5f\u0fb3\u0f0b12".split("_"),monthsShortRegex:/^(\u0f5f\u0fb3\u0f0b\d{1,2})/,monthsParseExact:!0,weekdays:"\u0f42\u0f5f\u0f60\u0f0b\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f42\u0f5f\u0f60\u0f0b\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysShort:"\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysMin:"\u0f49\u0f72_\u0f5f\u0fb3_\u0f58\u0f72\u0f42_\u0f63\u0fb7\u0f42_\u0f55\u0f74\u0f62_\u0f66\u0f44\u0f66_\u0f66\u0fa4\u0f7a\u0f53".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0f51\u0f72\u0f0b\u0f62\u0f72\u0f44] LT",nextDay:"[\u0f66\u0f44\u0f0b\u0f49\u0f72\u0f53] LT",nextWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f62\u0f97\u0f7a\u0f66\u0f0b\u0f58], LT",lastDay:"[\u0f41\u0f0b\u0f66\u0f44] LT",lastWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f58\u0f50\u0f60\u0f0b\u0f58] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0f63\u0f0b",past:"%s \u0f66\u0f94\u0f53\u0f0b\u0f63",s:"\u0f63\u0f58\u0f0b\u0f66\u0f44",ss:"%d \u0f66\u0f90\u0f62\u0f0b\u0f46\u0f0d",m:"\u0f66\u0f90\u0f62\u0f0b\u0f58\u0f0b\u0f42\u0f45\u0f72\u0f42",mm:"%d \u0f66\u0f90\u0f62\u0f0b\u0f58",h:"\u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51\u0f0b\u0f42\u0f45\u0f72\u0f42",hh:"%d \u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51",d:"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f45\u0f72\u0f42",dd:"%d \u0f49\u0f72\u0f53\u0f0b",M:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f45\u0f72\u0f42",MM:"%d \u0f5f\u0fb3\u0f0b\u0f56",y:"\u0f63\u0f7c\u0f0b\u0f42\u0f45\u0f72\u0f42",yy:"%d \u0f63\u0f7c"},preparse:function(L){return L.replace(/[\u0f21\u0f22\u0f23\u0f24\u0f25\u0f26\u0f27\u0f28\u0f29\u0f20]/g,function(O){return H[O]})},postformat:function(L){return L.replace(/\d/g,function(O){return n[O]})},meridiemParse:/\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c|\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66|\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44|\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42|\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c/,meridiemHour:function(L,O){return 12===L&&(L=0),"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"===O&&L>=4||"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44"===O&&L<5||"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42"===O?L+12:L},meridiem:function(L,O,B){return L<4?"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c":L<10?"\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66":L<17?"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44":L<20?"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42":"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"},week:{dow:0,doy:6}})}(E(5439))},5020:function(Y,G,E){!function(T){"use strict";function n(re,be,we){return re+" "+function L(re,be){return 2===be?function O(re){var be={m:"v",b:"v",d:"z"};return void 0===be[re.charAt(0)]?re:be[re.charAt(0)]+re.substring(1)}(re):re}({mm:"munutenn",MM:"miz",dd:"devezh"}[we],re)}function D(re){return re>9?D(re%10):re}var B=[/^gen/i,/^c[\u02bc\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],U=/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,ue=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];T.defineLocale("br",{months:"Genver_C\u02bchwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C\u02bchwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc\u02bcher_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParse:ue,fullWeekdaysParse:[/^sul/i,/^lun/i,/^meurzh/i,/^merc[\u02bc\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],shortWeekdaysParse:[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],minWeekdaysParse:ue,monthsRegex:U,monthsShortRegex:U,monthsStrictRegex:/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,monthsShortStrictRegex:/^(gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,monthsParse:B,longMonthsParse:B,shortMonthsParse:B,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc\u02bchoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec\u02bch da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s \u02bczo",s:"un nebeud segondenno\xf9",ss:"%d eilenn",m:"ur vunutenn",mm:n,h:"un eur",hh:"%d eur",d:"un devezh",dd:n,M:"ur miz",MM:n,y:"ur bloaz",yy:function H(re){switch(D(re)){case 1:case 3:case 4:case 5:case 9:return re+" bloaz";default:return re+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(a\xf1|vet)/,ordinal:function(re){return re+(1===re?"a\xf1":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(re){return"g.m."===re},meridiem:function(re,be,we){return re<12?"a.m.":"g.m."}})}(E(5439))},4792:function(Y,G,E){!function(T){"use strict";function n(D,L,O){var B=D+" ";switch(O){case"ss":return B+(1===D?"sekunda":2===D||3===D||4===D?"sekunde":"sekundi");case"m":return L?"jedna minuta":"jedne minute";case"mm":return B+(1===D?"minuta":2===D||3===D||4===D?"minute":"minuta");case"h":return L?"jedan sat":"jednog sata";case"hh":return B+(1===D?"sat":2===D||3===D||4===D?"sata":"sati");case"dd":return B+(1===D?"dan":"dana");case"MM":return B+(1===D?"mjesec":2===D||3===D||4===D?"mjeseca":"mjeseci");case"yy":return B+(1===D?"godina":2===D||3===D||4===D?"godine":"godina")}}T.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[pro\u0161lu] dddd [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:n,m:n,mm:n,h:n,hh:n,d:"dan",dd:n,M:"mjesec",MM:n,y:"godinu",yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(E(5439))},7980:function(Y,G,E){!function(T){"use strict";T.defineLocale("ca",{months:{standalone:"gener_febrer_mar\xe7_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de mar\xe7_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[dem\xe0 a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(H,D){var L=1===H?"r":2===H?"n":3===H?"r":4===H?"t":"\xe8";return("w"===D||"W"===D)&&(L="a"),H+L},week:{dow:1,doy:4}})}(E(5439))},7322:function(Y,G,E){!function(T){"use strict";var n={format:"leden_\xfanor_b\u0159ezen_duben_kv\u011bten_\u010derven_\u010dervenec_srpen_z\xe1\u0159\xed_\u0159\xedjen_listopad_prosinec".split("_"),standalone:"ledna_\xfanora_b\u0159ezna_dubna_kv\u011btna_\u010dervna_\u010dervence_srpna_z\xe1\u0159\xed_\u0159\xedjna_listopadu_prosince".split("_")},H="led_\xfano_b\u0159e_dub_kv\u011b_\u010dvn_\u010dvc_srp_z\xe1\u0159_\u0159\xedj_lis_pro".split("_"),D=[/^led/i,/^\xfano/i,/^b\u0159e/i,/^dub/i,/^kv\u011b/i,/^(\u010dvn|\u010derven$|\u010dervna)/i,/^(\u010dvc|\u010dervenec|\u010dervence)/i,/^srp/i,/^z\xe1\u0159/i,/^\u0159\xedj/i,/^lis/i,/^pro/i],L=/^(leden|\xfanor|b\u0159ezen|duben|kv\u011bten|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|z\xe1\u0159\xed|\u0159\xedjen|listopad|prosinec|led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i;function O(W){return W>1&&W<5&&1!=~~(W/10)}function B(W,ee,te,ae){var ue=W+" ";switch(te){case"s":return ee||ae?"p\xe1r sekund":"p\xe1r sekundami";case"ss":return ee||ae?ue+(O(W)?"sekundy":"sekund"):ue+"sekundami";case"m":return ee?"minuta":ae?"minutu":"minutou";case"mm":return ee||ae?ue+(O(W)?"minuty":"minut"):ue+"minutami";case"h":return ee?"hodina":ae?"hodinu":"hodinou";case"hh":return ee||ae?ue+(O(W)?"hodiny":"hodin"):ue+"hodinami";case"d":return ee||ae?"den":"dnem";case"dd":return ee||ae?ue+(O(W)?"dny":"dn\xed"):ue+"dny";case"M":return ee||ae?"m\u011bs\xedc":"m\u011bs\xedcem";case"MM":return ee||ae?ue+(O(W)?"m\u011bs\xedce":"m\u011bs\xedc\u016f"):ue+"m\u011bs\xedci";case"y":return ee||ae?"rok":"rokem";case"yy":return ee||ae?ue+(O(W)?"roky":"let"):ue+"lety"}}T.defineLocale("cs",{months:n,monthsShort:H,monthsRegex:L,monthsShortRegex:L,monthsStrictRegex:/^(leden|ledna|\xfanora|\xfanor|b\u0159ezen|b\u0159ezna|duben|dubna|kv\u011bten|kv\u011btna|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|srpna|z\xe1\u0159\xed|\u0159\xedjen|\u0159\xedjna|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i,monthsParse:D,longMonthsParse:D,shortMonthsParse:D,weekdays:"ned\u011ble_pond\u011bl\xed_\xfater\xfd_st\u0159eda_\u010dtvrtek_p\xe1tek_sobota".split("_"),weekdaysShort:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),weekdaysMin:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[z\xedtra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v ned\u011bli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve st\u0159edu v] LT";case 4:return"[ve \u010dtvrtek v] LT";case 5:return"[v p\xe1tek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[v\u010dera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou ned\u011bli v] LT";case 1:case 2:return"[minul\xe9] dddd [v] LT";case 3:return"[minulou st\u0159edu v] LT";case 4:case 5:return"[minul\xfd] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"p\u0159ed %s",s:B,ss:B,m:B,mm:B,h:B,hh:B,d:B,dd:B,M:B,MM:B,y:B,yy:B},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},365:function(Y,G,E){!function(T){"use strict";T.defineLocale("cv",{months:"\u043a\u04d1\u0440\u043b\u0430\u0447_\u043d\u0430\u0440\u04d1\u0441_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440\u0442\u043c\u0435_\u0443\u0442\u04d1_\u04ab\u0443\u0440\u043b\u0430_\u0430\u0432\u04d1\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448\u0442\u0430\u0432".split("_"),monthsShort:"\u043a\u04d1\u0440_\u043d\u0430\u0440_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440_\u0443\u0442\u04d1_\u04ab\u0443\u0440_\u0430\u0432\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448".split("_"),weekdays:"\u0432\u044b\u0440\u0441\u0430\u0440\u043d\u0438\u043a\u0443\u043d_\u0442\u0443\u043d\u0442\u0438\u043a\u0443\u043d_\u044b\u0442\u043b\u0430\u0440\u0438\u043a\u0443\u043d_\u044e\u043d\u043a\u0443\u043d_\u043a\u04d7\u04ab\u043d\u0435\u0440\u043d\u0438\u043a\u0443\u043d_\u044d\u0440\u043d\u0435\u043a\u0443\u043d_\u0448\u04d1\u043c\u0430\u0442\u043a\u0443\u043d".split("_"),weekdaysShort:"\u0432\u044b\u0440_\u0442\u0443\u043d_\u044b\u0442\u043b_\u044e\u043d_\u043a\u04d7\u04ab_\u044d\u0440\u043d_\u0448\u04d1\u043c".split("_"),weekdaysMin:"\u0432\u0440_\u0442\u043d_\u044b\u0442_\u044e\u043d_\u043a\u04ab_\u044d\u0440_\u0448\u043c".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7]",LLL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm",LLLL:"dddd, YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm"},calendar:{sameDay:"[\u041f\u0430\u044f\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextDay:"[\u042b\u0440\u0430\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastDay:"[\u04d6\u043d\u0435\u0440] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextWeek:"[\u04aa\u0438\u0442\u0435\u0441] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastWeek:"[\u0418\u0440\u0442\u043d\u04d7] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",sameElse:"L"},relativeTime:{future:function(H){return H+(/\u0441\u0435\u0445\u0435\u0442$/i.exec(H)?"\u0440\u0435\u043d":/\u04ab\u0443\u043b$/i.exec(H)?"\u0442\u0430\u043d":"\u0440\u0430\u043d")},past:"%s \u043a\u0430\u044f\u043b\u043b\u0430",s:"\u043f\u04d7\u0440-\u0438\u043a \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",ss:"%d \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",m:"\u043f\u04d7\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u043f\u04d7\u0440 \u0441\u0435\u0445\u0435\u0442",hh:"%d \u0441\u0435\u0445\u0435\u0442",d:"\u043f\u04d7\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u043f\u04d7\u0440 \u0443\u0439\u04d1\u0445",MM:"%d \u0443\u0439\u04d1\u0445",y:"\u043f\u04d7\u0440 \u04ab\u0443\u043b",yy:"%d \u04ab\u0443\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-\u043c\u04d7\u0448/,ordinal:"%d-\u043c\u04d7\u0448",week:{dow:1,doy:7}})}(E(5439))},2092:function(Y,G,E){!function(T){"use strict";T.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn \xf4l",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(H){var L="";return H>20?L=40===H||50===H||60===H||80===H||100===H?"fed":"ain":H>0&&(L=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][H]),H+L},week:{dow:1,doy:4}})}(E(5439))},7387:function(Y,G,E){!function(T){"use strict";T.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8n_man_tir_ons_tor_fre_l\xf8r".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"p\xe5 dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"f\xe5 sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"et \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},9459:function(Y,G,E){!function(T){"use strict";function n(D,L,O,B){var U={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[D+" Tage",D+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[D+" Monate",D+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[D+" Jahre",D+" Jahren"]};return L?U[O][0]:U[O][1]}T.defineLocale("de-at",{months:"J\xe4nner_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"J\xe4n._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:n,mm:"%d Minuten",h:n,hh:"%d Stunden",d:n,dd:n,w:n,ww:"%d Wochen",M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},3694:function(Y,G,E){!function(T){"use strict";function n(D,L,O,B){var U={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[D+" Tage",D+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[D+" Monate",D+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[D+" Jahre",D+" Jahren"]};return L?U[O][0]:U[O][1]}T.defineLocale("de-ch",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:n,mm:"%d Minuten",h:n,hh:"%d Stunden",d:n,dd:n,w:n,ww:"%d Wochen",M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},4307:function(Y,G,E){!function(T){"use strict";function n(D,L,O,B){var U={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[D+" Tage",D+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[D+" Monate",D+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[D+" Jahre",D+" Jahren"]};return L?U[O][0]:U[O][1]}T.defineLocale("de",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:n,mm:"%d Minuten",h:n,hh:"%d Stunden",d:n,dd:n,w:n,ww:"%d Wochen",M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},9659:function(Y,G,E){!function(T){"use strict";var n=["\u0796\u07ac\u0782\u07aa\u0787\u07a6\u0783\u07a9","\u078a\u07ac\u0784\u07b0\u0783\u07aa\u0787\u07a6\u0783\u07a9","\u0789\u07a7\u0783\u07a8\u0797\u07aa","\u0787\u07ad\u0795\u07b0\u0783\u07a9\u078d\u07aa","\u0789\u07ad","\u0796\u07ab\u0782\u07b0","\u0796\u07aa\u078d\u07a6\u0787\u07a8","\u0787\u07af\u078e\u07a6\u0790\u07b0\u0793\u07aa","\u0790\u07ac\u0795\u07b0\u0793\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0787\u07ae\u0786\u07b0\u0793\u07af\u0784\u07a6\u0783\u07aa","\u0782\u07ae\u0788\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0791\u07a8\u0790\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa"],H=["\u0787\u07a7\u078b\u07a8\u0787\u07b0\u078c\u07a6","\u0780\u07af\u0789\u07a6","\u0787\u07a6\u0782\u07b0\u078e\u07a7\u0783\u07a6","\u0784\u07aa\u078b\u07a6","\u0784\u07aa\u0783\u07a7\u0790\u07b0\u078a\u07a6\u078c\u07a8","\u0780\u07aa\u0786\u07aa\u0783\u07aa","\u0780\u07ae\u0782\u07a8\u0780\u07a8\u0783\u07aa"];T.defineLocale("dv",{months:n,monthsShort:n,weekdays:H,weekdaysShort:H,weekdaysMin:"\u0787\u07a7\u078b\u07a8_\u0780\u07af\u0789\u07a6_\u0787\u07a6\u0782\u07b0_\u0784\u07aa\u078b\u07a6_\u0784\u07aa\u0783\u07a7_\u0780\u07aa\u0786\u07aa_\u0780\u07ae\u0782\u07a8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0789\u0786|\u0789\u078a/,isPM:function(L){return"\u0789\u078a"===L},meridiem:function(L,O,B){return L<12?"\u0789\u0786":"\u0789\u078a"},calendar:{sameDay:"[\u0789\u07a8\u0787\u07a6\u078b\u07aa] LT",nextDay:"[\u0789\u07a7\u078b\u07a6\u0789\u07a7] LT",nextWeek:"dddd LT",lastDay:"[\u0787\u07a8\u0787\u07b0\u0794\u07ac] LT",lastWeek:"[\u078a\u07a7\u0787\u07a8\u078c\u07aa\u0788\u07a8] dddd LT",sameElse:"L"},relativeTime:{future:"\u078c\u07ac\u0783\u07ad\u078e\u07a6\u0787\u07a8 %s",past:"\u0786\u07aa\u0783\u07a8\u0782\u07b0 %s",s:"\u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa\u0786\u07ae\u0785\u07ac\u0787\u07b0",ss:"d% \u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa",m:"\u0789\u07a8\u0782\u07a8\u0793\u07ac\u0787\u07b0",mm:"\u0789\u07a8\u0782\u07a8\u0793\u07aa %d",h:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07ac\u0787\u07b0",hh:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07aa %d",d:"\u078b\u07aa\u0788\u07a6\u0780\u07ac\u0787\u07b0",dd:"\u078b\u07aa\u0788\u07a6\u0790\u07b0 %d",M:"\u0789\u07a6\u0780\u07ac\u0787\u07b0",MM:"\u0789\u07a6\u0790\u07b0 %d",y:"\u0787\u07a6\u0780\u07a6\u0783\u07ac\u0787\u07b0",yy:"\u0787\u07a6\u0780\u07a6\u0783\u07aa %d"},preparse:function(L){return L.replace(/\u060c/g,",")},postformat:function(L){return L.replace(/,/g,"\u060c")},week:{dow:7,doy:12}})}(E(5439))},3460:function(Y,G,E){!function(T){"use strict";T.defineLocale("el",{monthsNominativeEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u039c\u03ac\u03c1\u03c4\u03b9\u03bf\u03c2_\u0391\u03c0\u03c1\u03af\u03bb\u03b9\u03bf\u03c2_\u039c\u03ac\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bd\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bb\u03b9\u03bf\u03c2_\u0391\u03cd\u03b3\u03bf\u03c5\u03c3\u03c4\u03bf\u03c2_\u03a3\u03b5\u03c0\u03c4\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u039f\u03ba\u03c4\u03ce\u03b2\u03c1\u03b9\u03bf\u03c2_\u039d\u03bf\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u0394\u03b5\u03ba\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2".split("_"),monthsGenitiveEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u039c\u03b1\u03c1\u03c4\u03af\u03bf\u03c5_\u0391\u03c0\u03c1\u03b9\u03bb\u03af\u03bf\u03c5_\u039c\u03b1\u0390\u03bf\u03c5_\u0399\u03bf\u03c5\u03bd\u03af\u03bf\u03c5_\u0399\u03bf\u03c5\u03bb\u03af\u03bf\u03c5_\u0391\u03c5\u03b3\u03bf\u03cd\u03c3\u03c4\u03bf\u03c5_\u03a3\u03b5\u03c0\u03c4\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u039f\u03ba\u03c4\u03c9\u03b2\u03c1\u03af\u03bf\u03c5_\u039d\u03bf\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u0394\u03b5\u03ba\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5".split("_"),months:function(D,L){return D?"string"==typeof L&&/D/.test(L.substring(0,L.indexOf("MMMM")))?this._monthsGenitiveEl[D.month()]:this._monthsNominativeEl[D.month()]:this._monthsNominativeEl},monthsShort:"\u0399\u03b1\u03bd_\u03a6\u03b5\u03b2_\u039c\u03b1\u03c1_\u0391\u03c0\u03c1_\u039c\u03b1\u03ca_\u0399\u03bf\u03c5\u03bd_\u0399\u03bf\u03c5\u03bb_\u0391\u03c5\u03b3_\u03a3\u03b5\u03c0_\u039f\u03ba\u03c4_\u039d\u03bf\u03b5_\u0394\u03b5\u03ba".split("_"),weekdays:"\u039a\u03c5\u03c1\u03b9\u03b1\u03ba\u03ae_\u0394\u03b5\u03c5\u03c4\u03ad\u03c1\u03b1_\u03a4\u03c1\u03af\u03c4\u03b7_\u03a4\u03b5\u03c4\u03ac\u03c1\u03c4\u03b7_\u03a0\u03ad\u03bc\u03c0\u03c4\u03b7_\u03a0\u03b1\u03c1\u03b1\u03c3\u03ba\u03b5\u03c5\u03ae_\u03a3\u03ac\u03b2\u03b2\u03b1\u03c4\u03bf".split("_"),weekdaysShort:"\u039a\u03c5\u03c1_\u0394\u03b5\u03c5_\u03a4\u03c1\u03b9_\u03a4\u03b5\u03c4_\u03a0\u03b5\u03bc_\u03a0\u03b1\u03c1_\u03a3\u03b1\u03b2".split("_"),weekdaysMin:"\u039a\u03c5_\u0394\u03b5_\u03a4\u03c1_\u03a4\u03b5_\u03a0\u03b5_\u03a0\u03b1_\u03a3\u03b1".split("_"),meridiem:function(D,L,O){return D>11?O?"\u03bc\u03bc":"\u039c\u039c":O?"\u03c0\u03bc":"\u03a0\u039c"},isPM:function(D){return"\u03bc"===(D+"").toLowerCase()[0]},meridiemParse:/[\u03a0\u039c]\.?\u039c?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[\u03a3\u03ae\u03bc\u03b5\u03c1\u03b1 {}] LT",nextDay:"[\u0391\u03cd\u03c1\u03b9\u03bf {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[\u03a7\u03b8\u03b5\u03c2 {}] LT",lastWeek:function(){return 6===this.day()?"[\u03c4\u03bf \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03bf] dddd [{}] LT":"[\u03c4\u03b7\u03bd \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03b7] dddd [{}] LT"},sameElse:"L"},calendar:function(D,L){var O=this._calendarEl[D],B=L&&L.hours();return function n(D){return typeof Function<"u"&&D instanceof Function||"[object Function]"===Object.prototype.toString.call(D)}(O)&&(O=O.apply(L)),O.replace("{}",B%12==1?"\u03c3\u03c4\u03b7":"\u03c3\u03c4\u03b9\u03c2")},relativeTime:{future:"\u03c3\u03b5 %s",past:"%s \u03c0\u03c1\u03b9\u03bd",s:"\u03bb\u03af\u03b3\u03b1 \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",ss:"%d \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",m:"\u03ad\u03bd\u03b1 \u03bb\u03b5\u03c0\u03c4\u03cc",mm:"%d \u03bb\u03b5\u03c0\u03c4\u03ac",h:"\u03bc\u03af\u03b1 \u03ce\u03c1\u03b1",hh:"%d \u03ce\u03c1\u03b5\u03c2",d:"\u03bc\u03af\u03b1 \u03bc\u03ad\u03c1\u03b1",dd:"%d \u03bc\u03ad\u03c1\u03b5\u03c2",M:"\u03ad\u03bd\u03b1\u03c2 \u03bc\u03ae\u03bd\u03b1\u03c2",MM:"%d \u03bc\u03ae\u03bd\u03b5\u03c2",y:"\u03ad\u03bd\u03b1\u03c2 \u03c7\u03c1\u03cc\u03bd\u03bf\u03c2",yy:"%d \u03c7\u03c1\u03cc\u03bd\u03b9\u03b1"},dayOfMonthOrdinalParse:/\d{1,2}\u03b7/,ordinal:"%d\u03b7",week:{dow:1,doy:4}})}(E(5439))},4369:function(Y,G,E){!function(T){"use strict";T.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(H){var D=H%10;return H+(1==~~(H%100/10)?"th":1===D?"st":2===D?"nd":3===D?"rd":"th")},week:{dow:0,doy:4}})}(E(5439))},530:function(Y,G,E){!function(T){"use strict";T.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(H){var D=H%10;return H+(1==~~(H%100/10)?"th":1===D?"st":2===D?"nd":3===D?"rd":"th")}})}(E(5439))},9998:function(Y,G,E){!function(T){"use strict";T.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(H){var D=H%10;return H+(1==~~(H%100/10)?"th":1===D?"st":2===D?"nd":3===D?"rd":"th")},week:{dow:1,doy:4}})}(E(5439))},3391:function(Y,G,E){!function(T){"use strict";T.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(H){var D=H%10;return H+(1==~~(H%100/10)?"th":1===D?"st":2===D?"nd":3===D?"rd":"th")},week:{dow:1,doy:4}})}(E(5439))},5414:function(Y,G,E){!function(T){"use strict";T.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(H){var D=H%10;return H+(1==~~(H%100/10)?"th":1===D?"st":2===D?"nd":3===D?"rd":"th")}})}(E(5439))},9615:function(Y,G,E){!function(T){"use strict";T.defineLocale("en-in",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(H){var D=H%10;return H+(1==~~(H%100/10)?"th":1===D?"st":2===D?"nd":3===D?"rd":"th")},week:{dow:0,doy:6}})}(E(5439))},1248:function(Y,G,E){!function(T){"use strict";T.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(H){var D=H%10;return H+(1==~~(H%100/10)?"th":1===D?"st":2===D?"nd":3===D?"rd":"th")},week:{dow:1,doy:4}})}(E(5439))},3767:function(Y,G,E){!function(T){"use strict";T.defineLocale("en-sg",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(H){var D=H%10;return H+(1==~~(H%100/10)?"th":1===D?"st":2===D?"nd":3===D?"rd":"th")},week:{dow:1,doy:4}})}(E(5439))},4530:function(Y,G,E){!function(T){"use strict";T.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_a\u016dgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_a\u016dg_sept_okt_nov_dec".split("_"),weekdays:"diman\u0109o_lundo_mardo_merkredo_\u0135a\u016ddo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_\u0135a\u016d_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_\u0135a_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(H){return"p"===H.charAt(0).toLowerCase()},meridiem:function(H,D,L){return H>11?L?"p.t.m.":"P.T.M.":L?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodia\u016d je] LT",nextDay:"[Morga\u016d je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hiera\u016d je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"anta\u016d %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(E(5439))},8944:function(Y,G,E){!function(T){"use strict";var n="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),H="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),D=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],L=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;T.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(B,U){return B?/-MMM-/.test(U)?H[B.month()]:n[B.month()]:n},monthsRegex:L,monthsShortRegex:L,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:D,longMonthsParse:D,shortMonthsParse:D,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(E(5439))},9116:function(Y,G,E){!function(T){"use strict";var n="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),H="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),D=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],L=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;T.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(B,U){return B?/-MMM-/.test(U)?H[B.month()]:n[B.month()]:n},monthsRegex:L,monthsShortRegex:L,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:D,longMonthsParse:D,shortMonthsParse:D,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:4},invalidDate:"Fecha inv\xe1lida"})}(E(5439))},3609:function(Y,G,E){!function(T){"use strict";var n="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),H="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),D=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],L=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;T.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(B,U){return B?/-MMM-/.test(U)?H[B.month()]:n[B.month()]:n},monthsRegex:L,monthsShortRegex:L,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:D,longMonthsParse:D,shortMonthsParse:D,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:6}})}(E(5439))},6866:function(Y,G,E){!function(T){"use strict";var n="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),H="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),D=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],L=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;T.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(B,U){return B?/-MMM-/.test(U)?H[B.month()]:n[B.month()]:n},monthsRegex:L,monthsShortRegex:L,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:D,longMonthsParse:D,shortMonthsParse:D,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4},invalidDate:"Fecha inv\xe1lida"})}(E(5439))},6725:function(Y,G,E){!function(T){"use strict";function n(D,L,O,B){var U={s:["m\xf5ne sekundi","m\xf5ni sekund","paar sekundit"],ss:[D+"sekundi",D+"sekundit"],m:["\xfche minuti","\xfcks minut"],mm:[D+" minuti",D+" minutit"],h:["\xfche tunni","tund aega","\xfcks tund"],hh:[D+" tunni",D+" tundi"],d:["\xfche p\xe4eva","\xfcks p\xe4ev"],M:["kuu aja","kuu aega","\xfcks kuu"],MM:[D+" kuu",D+" kuud"],y:["\xfche aasta","aasta","\xfcks aasta"],yy:[D+" aasta",D+" aastat"]};return L?U[O][2]?U[O][2]:U[O][1]:B?U[O][0]:U[O][1]}T.defineLocale("et",{months:"jaanuar_veebruar_m\xe4rts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_m\xe4rts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"p\xfchap\xe4ev_esmasp\xe4ev_teisip\xe4ev_kolmap\xe4ev_neljap\xe4ev_reede_laup\xe4ev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[T\xe4na,] LT",nextDay:"[Homme,] LT",nextWeek:"[J\xe4rgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s p\xe4rast",past:"%s tagasi",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:"%d p\xe4eva",M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},7931:function(Y,G,E){!function(T){"use strict";T.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(E(5439))},6417:function(Y,G,E){!function(T){"use strict";var n={1:"\u06f1",2:"\u06f2",3:"\u06f3",4:"\u06f4",5:"\u06f5",6:"\u06f6",7:"\u06f7",8:"\u06f8",9:"\u06f9",0:"\u06f0"},H={"\u06f1":"1","\u06f2":"2","\u06f3":"3","\u06f4":"4","\u06f5":"5","\u06f6":"6","\u06f7":"7","\u06f8":"8","\u06f9":"9","\u06f0":"0"};T.defineLocale("fa",{months:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),monthsShort:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),weekdays:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysShort:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u062c_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631|\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/,isPM:function(L){return/\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/.test(L)},meridiem:function(L,O,B){return L<12?"\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631":"\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631"},calendar:{sameDay:"[\u0627\u0645\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",nextDay:"[\u0641\u0631\u062f\u0627 \u0633\u0627\u0639\u062a] LT",nextWeek:"dddd [\u0633\u0627\u0639\u062a] LT",lastDay:"[\u062f\u06cc\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",lastWeek:"dddd [\u067e\u06cc\u0634] [\u0633\u0627\u0639\u062a] LT",sameElse:"L"},relativeTime:{future:"\u062f\u0631 %s",past:"%s \u067e\u06cc\u0634",s:"\u0686\u0646\u062f \u062b\u0627\u0646\u06cc\u0647",ss:"%d \u062b\u0627\u0646\u06cc\u0647",m:"\u06cc\u06a9 \u062f\u0642\u06cc\u0642\u0647",mm:"%d \u062f\u0642\u06cc\u0642\u0647",h:"\u06cc\u06a9 \u0633\u0627\u0639\u062a",hh:"%d \u0633\u0627\u0639\u062a",d:"\u06cc\u06a9 \u0631\u0648\u0632",dd:"%d \u0631\u0648\u0632",M:"\u06cc\u06a9 \u0645\u0627\u0647",MM:"%d \u0645\u0627\u0647",y:"\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(L){return L.replace(/[\u06f0-\u06f9]/g,function(O){return H[O]}).replace(/\u060c/g,",")},postformat:function(L){return L.replace(/\d/g,function(O){return n[O]}).replace(/,/g,"\u060c")},dayOfMonthOrdinalParse:/\d{1,2}\u0645/,ordinal:"%d\u0645",week:{dow:6,doy:12}})}(E(5439))},944:function(Y,G,E){!function(T){"use strict";var n="nolla yksi kaksi kolme nelj\xe4 viisi kuusi seitsem\xe4n kahdeksan yhdeks\xe4n".split(" "),H=["nolla","yhden","kahden","kolmen","nelj\xe4n","viiden","kuuden",n[7],n[8],n[9]];function D(B,U,W,ee){var te="";switch(W){case"s":return ee?"muutaman sekunnin":"muutama sekunti";case"ss":te=ee?"sekunnin":"sekuntia";break;case"m":return ee?"minuutin":"minuutti";case"mm":te=ee?"minuutin":"minuuttia";break;case"h":return ee?"tunnin":"tunti";case"hh":te=ee?"tunnin":"tuntia";break;case"d":return ee?"p\xe4iv\xe4n":"p\xe4iv\xe4";case"dd":te=ee?"p\xe4iv\xe4n":"p\xe4iv\xe4\xe4";break;case"M":return ee?"kuukauden":"kuukausi";case"MM":te=ee?"kuukauden":"kuukautta";break;case"y":return ee?"vuoden":"vuosi";case"yy":te=ee?"vuoden":"vuotta"}return function L(B,U){return B<10?U?H[B]:n[B]:B}(B,ee)+" "+te}T.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kes\xe4kuu_hein\xe4kuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kes\xe4_hein\xe4_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[t\xe4n\xe4\xe4n] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s p\xe4\xe4st\xe4",past:"%s sitten",s:D,ss:D,m:D,mm:D,h:D,hh:D,d:D,dd:D,M:D,MM:D,y:D,yy:D},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},1766:function(Y,G,E){!function(T){"use strict";T.defineLocale("fil",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(H){return H},week:{dow:1,doy:4}})}(E(5439))},5867:function(Y,G,E){!function(T){"use strict";T.defineLocale("fo",{months:"januar_februar_mars_apr\xedl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_m\xe1nadagur_t\xfdsdagur_mikudagur_h\xf3sdagur_fr\xedggjadagur_leygardagur".split("_"),weekdaysShort:"sun_m\xe1n_t\xfds_mik_h\xf3s_fr\xed_ley".split("_"),weekdaysMin:"su_m\xe1_t\xfd_mi_h\xf3_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[\xcd dag kl.] LT",nextDay:"[\xcd morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xcd gj\xe1r kl.] LT",lastWeek:"[s\xed\xf0stu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s s\xed\xf0ani",s:"f\xe1 sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein t\xedmi",hh:"%d t\xedmar",d:"ein dagur",dd:"%d dagar",M:"ein m\xe1na\xf0ur",MM:"%d m\xe1na\xf0ir",y:"eitt \xe1r",yy:"%d \xe1r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},6848:function(Y,G,E){!function(T){"use strict";T.defineLocale("fr-ca",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(H,D){switch(D){default:case"M":case"Q":case"D":case"DDD":case"d":return H+(1===H?"er":"e");case"w":case"W":return H+(1===H?"re":"e")}}})}(E(5439))},7773:function(Y,G,E){!function(T){"use strict";T.defineLocale("fr-ch",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(H,D){switch(D){default:case"M":case"Q":case"D":case"DDD":case"d":return H+(1===H?"er":"e");case"w":case"W":return H+(1===H?"re":"e")}},week:{dow:1,doy:4}})}(E(5439))},1636:function(Y,G,E){!function(T){"use strict";var D=/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?|janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,L=[/^janv/i,/^f\xe9vr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^ao\xfbt/i,/^sept/i,/^oct/i,/^nov/i,/^d\xe9c/i];T.defineLocale("fr",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsRegex:D,monthsShortRegex:D,monthsStrictRegex:/^(janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,monthsShortStrictRegex:/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?)/i,monthsParse:L,longMonthsParse:L,shortMonthsParse:L,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(B,U){switch(U){case"D":return B+(1===B?"er":"");default:case"M":case"Q":case"DDD":case"d":return B+(1===B?"er":"e");case"w":case"W":return B+(1===B?"re":"e")}},week:{dow:1,doy:4}})}(E(5439))},4940:function(Y,G,E){!function(T){"use strict";var n="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),H="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");T.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(L,O){return L?/-MMM-/.test(O)?H[L.month()]:n[L.month()]:n},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[\xf4fr\xfbne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien min\xfat",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(L){return L+(1===L||8===L||L>=20?"ste":"de")},week:{dow:1,doy:4}})}(E(5439))},1402:function(Y,G,E){!function(T){"use strict";T.defineLocale("ga",{months:["Ean\xe1ir","Feabhra","M\xe1rta","Aibre\xe1n","Bealtaine","Meitheamh","I\xfail","L\xfanasa","Me\xe1n F\xf3mhair","Deireadh F\xf3mhair","Samhain","Nollaig"],monthsShort:["Ean","Feabh","M\xe1rt","Aib","Beal","Meith","I\xfail","L\xfan","M.F.","D.F.","Samh","Noll"],monthsParseExact:!0,weekdays:["D\xe9 Domhnaigh","D\xe9 Luain","D\xe9 M\xe1irt","D\xe9 C\xe9adaoin","D\xe9ardaoin","D\xe9 hAoine","D\xe9 Sathairn"],weekdaysShort:["Domh","Luan","M\xe1irt","C\xe9ad","D\xe9ar","Aoine","Sath"],weekdaysMin:["Do","Lu","M\xe1","C\xe9","D\xe9","A","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Am\xe1rach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inn\xe9 ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s \xf3 shin",s:"c\xfapla soicind",ss:"%d soicind",m:"n\xf3im\xe9ad",mm:"%d n\xf3im\xe9ad",h:"uair an chloig",hh:"%d uair an chloig",d:"l\xe1",dd:"%d l\xe1",M:"m\xed",MM:"%d m\xedonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(U){return U+(1===U?"d":U%10==2?"na":"mh")},week:{dow:1,doy:4}})}(E(5439))},6924:function(Y,G,E){!function(T){"use strict";T.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am M\xe0rt","An Giblean","An C\xe8itean","An t-\xd2gmhios","An t-Iuchar","An L\xf9nastal","An t-Sultain","An D\xe0mhair","An t-Samhain","An D\xf9bhlachd"],monthsShort:["Faoi","Gear","M\xe0rt","Gibl","C\xe8it","\xd2gmh","Iuch","L\xf9n","Sult","D\xe0mh","Samh","D\xf9bh"],monthsParseExact:!0,weekdays:["Did\xf2mhnaich","Diluain","Dim\xe0irt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["D\xf2","Lu","M\xe0","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-m\xe0ireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-d\xe8 aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"m\xecos",MM:"%d m\xecosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(U){return U+(1===U?"d":U%10==2?"na":"mh")},week:{dow:1,doy:4}})}(E(5439))},6398:function(Y,G,E){!function(T){"use strict";T.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xu\xf1o_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xu\xf1._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_m\xe9rcores_xoves_venres_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._m\xe9r._xov._ven._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_m\xe9_xo_ve_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextDay:function(){return"[ma\xf1\xe1 "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"\xe1s":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"\xe1":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"\xe1s":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(H){return 0===H.indexOf("un")?"n"+H:"en "+H},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(E(5439))},2457:function(Y,G,E){!function(T){"use strict";function n(D,L,O,B){var U={s:["\u0925\u094b\u0921\u092f\u093e \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940","\u0925\u094b\u0921\u0947 \u0938\u0945\u0915\u0902\u0921"],ss:[D+" \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940",D+" \u0938\u0945\u0915\u0902\u0921"],m:["\u090f\u0915\u093e \u092e\u093f\u0923\u091f\u093e\u0928","\u090f\u0915 \u092e\u093f\u0928\u0942\u091f"],mm:[D+" \u092e\u093f\u0923\u091f\u093e\u0902\u0928\u0940",D+" \u092e\u093f\u0923\u091f\u093e\u0902"],h:["\u090f\u0915\u093e \u0935\u0930\u093e\u0928","\u090f\u0915 \u0935\u0930"],hh:[D+" \u0935\u0930\u093e\u0902\u0928\u0940",D+" \u0935\u0930\u093e\u0902"],d:["\u090f\u0915\u093e \u0926\u093f\u0938\u093e\u0928","\u090f\u0915 \u0926\u0940\u0938"],dd:[D+" \u0926\u093f\u0938\u093e\u0902\u0928\u0940",D+" \u0926\u0940\u0938"],M:["\u090f\u0915\u093e \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928","\u090f\u0915 \u092e\u094d\u0939\u092f\u0928\u094b"],MM:[D+" \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928\u0940",D+" \u092e\u094d\u0939\u092f\u0928\u0947"],y:["\u090f\u0915\u093e \u0935\u0930\u094d\u0938\u093e\u0928","\u090f\u0915 \u0935\u0930\u094d\u0938"],yy:[D+" \u0935\u0930\u094d\u0938\u093e\u0902\u0928\u0940",D+" \u0935\u0930\u094d\u0938\u093e\u0902"]};return B?U[O][0]:U[O][1]}T.defineLocale("gom-deva",{months:{standalone:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u092f_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),format:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092e\u093e\u0930\u094d\u091a\u093e\u091a\u094d\u092f\u093e_\u090f\u092a\u094d\u0930\u0940\u0932\u093e\u091a\u094d\u092f\u093e_\u092e\u0947\u092f\u093e\u091a\u094d\u092f\u093e_\u091c\u0942\u0928\u093e\u091a\u094d\u092f\u093e_\u091c\u0941\u0932\u092f\u093e\u091a\u094d\u092f\u093e_\u0911\u0917\u0938\u094d\u091f\u093e\u091a\u094d\u092f\u093e_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0911\u0915\u094d\u091f\u094b\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0921\u093f\u0938\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940._\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u092f\u0924\u093e\u0930_\u0938\u094b\u092e\u093e\u0930_\u092e\u0902\u0917\u0933\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u092c\u093f\u0930\u0947\u0938\u094d\u0924\u093e\u0930_\u0938\u0941\u0915\u094d\u0930\u093e\u0930_\u0936\u0947\u0928\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0906\u092f\u0924._\u0938\u094b\u092e._\u092e\u0902\u0917\u0933._\u092c\u0941\u0927._\u092c\u094d\u0930\u0947\u0938\u094d\u0924._\u0938\u0941\u0915\u094d\u0930._\u0936\u0947\u0928.".split("_"),weekdaysMin:"\u0906_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u092c\u094d\u0930\u0947_\u0938\u0941_\u0936\u0947".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LTS:"A h:mm:ss [\u0935\u093e\u091c\u0924\u093e\u0902]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",llll:"ddd, D MMM YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]"},calendar:{sameDay:"[\u0906\u092f\u091c] LT",nextDay:"[\u092b\u093e\u0932\u094d\u092f\u093e\u0902] LT",nextWeek:"[\u092b\u0941\u0921\u0932\u094b] dddd[,] LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092b\u093e\u091f\u0932\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s \u0906\u0926\u0940\u0902",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}(\u0935\u0947\u0930)/,ordinal:function(D,L){return"D"===L?D+"\u0935\u0947\u0930":D},week:{dow:0,doy:3},meridiemParse:/\u0930\u093e\u0924\u0940|\u0938\u0915\u093e\u0933\u0940\u0902|\u0926\u0928\u092a\u093e\u0930\u093e\u0902|\u0938\u093e\u0902\u091c\u0947/,meridiemHour:function(D,L){return 12===D&&(D=0),"\u0930\u093e\u0924\u0940"===L?D<4?D:D+12:"\u0938\u0915\u093e\u0933\u0940\u0902"===L?D:"\u0926\u0928\u092a\u093e\u0930\u093e\u0902"===L?D>12?D:D+12:"\u0938\u093e\u0902\u091c\u0947"===L?D+12:void 0},meridiem:function(D,L,O){return D<4?"\u0930\u093e\u0924\u0940":D<12?"\u0938\u0915\u093e\u0933\u0940\u0902":D<16?"\u0926\u0928\u092a\u093e\u0930\u093e\u0902":D<20?"\u0938\u093e\u0902\u091c\u0947":"\u0930\u093e\u0924\u0940"}})}(E(5439))},2545:function(Y,G,E){!function(T){"use strict";function n(D,L,O,B){var U={s:["thoddea sekondamni","thodde sekond"],ss:[D+" sekondamni",D+" sekond"],m:["eka mintan","ek minut"],mm:[D+" mintamni",D+" mintam"],h:["eka voran","ek vor"],hh:[D+" voramni",D+" voram"],d:["eka disan","ek dis"],dd:[D+" disamni",D+" dis"],M:["eka mhoinean","ek mhoino"],MM:[D+" mhoineamni",D+" mhoine"],y:["eka vorsan","ek voros"],yy:[D+" vorsamni",D+" vorsam"]};return B?U[O][0]:U[O][1]}T.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(D,L){return"D"===L?D+"er":D},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(D,L){return 12===D&&(D=0),"rati"===L?D<4?D:D+12:"sokallim"===L?D:"donparam"===L?D>12?D:D+12:"sanje"===L?D+12:void 0},meridiem:function(D,L,O){return D<4?"rati":D<12?"sokallim":D<16?"donparam":D<20?"sanje":"rati"}})}(E(5439))},2641:function(Y,G,E){!function(T){"use strict";var n={1:"\u0ae7",2:"\u0ae8",3:"\u0ae9",4:"\u0aea",5:"\u0aeb",6:"\u0aec",7:"\u0aed",8:"\u0aee",9:"\u0aef",0:"\u0ae6"},H={"\u0ae7":"1","\u0ae8":"2","\u0ae9":"3","\u0aea":"4","\u0aeb":"5","\u0aec":"6","\u0aed":"7","\u0aee":"8","\u0aef":"9","\u0ae6":"0"};T.defineLocale("gu",{months:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1\u0a86\u0ab0\u0ac0_\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1\u0a86\u0ab0\u0ac0_\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf\u0ab2_\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe\u0a88_\u0a91\u0a97\u0ab8\u0acd\u0a9f_\u0ab8\u0aaa\u0acd\u0a9f\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0a91\u0a95\u0acd\u0a9f\u0acd\u0aac\u0ab0_\u0aa8\u0ab5\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0aa1\u0abf\u0ab8\u0ac7\u0aae\u0acd\u0aac\u0ab0".split("_"),monthsShort:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1._\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1._\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf._\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe._\u0a91\u0a97._\u0ab8\u0aaa\u0acd\u0a9f\u0ac7._\u0a91\u0a95\u0acd\u0a9f\u0acd._\u0aa8\u0ab5\u0ac7._\u0aa1\u0abf\u0ab8\u0ac7.".split("_"),monthsParseExact:!0,weekdays:"\u0ab0\u0ab5\u0abf\u0ab5\u0abe\u0ab0_\u0ab8\u0acb\u0aae\u0ab5\u0abe\u0ab0_\u0aae\u0a82\u0a97\u0ab3\u0ab5\u0abe\u0ab0_\u0aac\u0ac1\u0aa7\u0acd\u0ab5\u0abe\u0ab0_\u0a97\u0ac1\u0ab0\u0ac1\u0ab5\u0abe\u0ab0_\u0ab6\u0ac1\u0a95\u0acd\u0ab0\u0ab5\u0abe\u0ab0_\u0ab6\u0aa8\u0abf\u0ab5\u0abe\u0ab0".split("_"),weekdaysShort:"\u0ab0\u0ab5\u0abf_\u0ab8\u0acb\u0aae_\u0aae\u0a82\u0a97\u0ab3_\u0aac\u0ac1\u0aa7\u0acd_\u0a97\u0ac1\u0ab0\u0ac1_\u0ab6\u0ac1\u0a95\u0acd\u0ab0_\u0ab6\u0aa8\u0abf".split("_"),weekdaysMin:"\u0ab0_\u0ab8\u0acb_\u0aae\u0a82_\u0aac\u0ac1_\u0a97\u0ac1_\u0ab6\u0ac1_\u0ab6".split("_"),longDateFormat:{LT:"A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LTS:"A h:mm:ss \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LLLL:"dddd, D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7"},calendar:{sameDay:"[\u0a86\u0a9c] LT",nextDay:"[\u0a95\u0abe\u0ab2\u0ac7] LT",nextWeek:"dddd, LT",lastDay:"[\u0a97\u0a87\u0a95\u0abe\u0ab2\u0ac7] LT",lastWeek:"[\u0aaa\u0abe\u0a9b\u0ab2\u0abe] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0aae\u0abe",past:"%s \u0aaa\u0ab9\u0ac7\u0ab2\u0abe",s:"\u0a85\u0aae\u0ac1\u0a95 \u0aaa\u0ab3\u0acb",ss:"%d \u0ab8\u0ac7\u0a95\u0a82\u0aa1",m:"\u0a8f\u0a95 \u0aae\u0abf\u0aa8\u0abf\u0a9f",mm:"%d \u0aae\u0abf\u0aa8\u0abf\u0a9f",h:"\u0a8f\u0a95 \u0a95\u0ab2\u0abe\u0a95",hh:"%d \u0a95\u0ab2\u0abe\u0a95",d:"\u0a8f\u0a95 \u0aa6\u0abf\u0ab5\u0ab8",dd:"%d \u0aa6\u0abf\u0ab5\u0ab8",M:"\u0a8f\u0a95 \u0aae\u0ab9\u0abf\u0aa8\u0acb",MM:"%d \u0aae\u0ab9\u0abf\u0aa8\u0acb",y:"\u0a8f\u0a95 \u0ab5\u0ab0\u0acd\u0ab7",yy:"%d \u0ab5\u0ab0\u0acd\u0ab7"},preparse:function(L){return L.replace(/[\u0ae7\u0ae8\u0ae9\u0aea\u0aeb\u0aec\u0aed\u0aee\u0aef\u0ae6]/g,function(O){return H[O]})},postformat:function(L){return L.replace(/\d/g,function(O){return n[O]})},meridiemParse:/\u0ab0\u0abe\u0aa4|\u0aac\u0aaa\u0acb\u0ab0|\u0ab8\u0ab5\u0abe\u0ab0|\u0ab8\u0abe\u0a82\u0a9c/,meridiemHour:function(L,O){return 12===L&&(L=0),"\u0ab0\u0abe\u0aa4"===O?L<4?L:L+12:"\u0ab8\u0ab5\u0abe\u0ab0"===O?L:"\u0aac\u0aaa\u0acb\u0ab0"===O?L>=10?L:L+12:"\u0ab8\u0abe\u0a82\u0a9c"===O?L+12:void 0},meridiem:function(L,O,B){return L<4?"\u0ab0\u0abe\u0aa4":L<10?"\u0ab8\u0ab5\u0abe\u0ab0":L<17?"\u0aac\u0aaa\u0acb\u0ab0":L<20?"\u0ab8\u0abe\u0a82\u0a9c":"\u0ab0\u0abe\u0aa4"},week:{dow:0,doy:6}})}(E(5439))},7536:function(Y,G,E){!function(T){"use strict";T.defineLocale("he",{months:"\u05d9\u05e0\u05d5\u05d0\u05e8_\u05e4\u05d1\u05e8\u05d5\u05d0\u05e8_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05d9\u05dc_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05d5\u05e1\u05d8_\u05e1\u05e4\u05d8\u05de\u05d1\u05e8_\u05d0\u05d5\u05e7\u05d8\u05d5\u05d1\u05e8_\u05e0\u05d5\u05d1\u05de\u05d1\u05e8_\u05d3\u05e6\u05de\u05d1\u05e8".split("_"),monthsShort:"\u05d9\u05e0\u05d5\u05f3_\u05e4\u05d1\u05e8\u05f3_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05f3_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05f3_\u05e1\u05e4\u05d8\u05f3_\u05d0\u05d5\u05e7\u05f3_\u05e0\u05d5\u05d1\u05f3_\u05d3\u05e6\u05de\u05f3".split("_"),weekdays:"\u05e8\u05d0\u05e9\u05d5\u05df_\u05e9\u05e0\u05d9_\u05e9\u05dc\u05d9\u05e9\u05d9_\u05e8\u05d1\u05d9\u05e2\u05d9_\u05d7\u05de\u05d9\u05e9\u05d9_\u05e9\u05d9\u05e9\u05d9_\u05e9\u05d1\u05ea".split("_"),weekdaysShort:"\u05d0\u05f3_\u05d1\u05f3_\u05d2\u05f3_\u05d3\u05f3_\u05d4\u05f3_\u05d5\u05f3_\u05e9\u05f3".split("_"),weekdaysMin:"\u05d0_\u05d1_\u05d2_\u05d3_\u05d4_\u05d5_\u05e9".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [\u05d1]MMMM YYYY",LLL:"D [\u05d1]MMMM YYYY HH:mm",LLLL:"dddd, D [\u05d1]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[\u05d4\u05d9\u05d5\u05dd \u05d1\u05be]LT",nextDay:"[\u05de\u05d7\u05e8 \u05d1\u05be]LT",nextWeek:"dddd [\u05d1\u05e9\u05e2\u05d4] LT",lastDay:"[\u05d0\u05ea\u05de\u05d5\u05dc \u05d1\u05be]LT",lastWeek:"[\u05d1\u05d9\u05d5\u05dd] dddd [\u05d4\u05d0\u05d7\u05e8\u05d5\u05df \u05d1\u05e9\u05e2\u05d4] LT",sameElse:"L"},relativeTime:{future:"\u05d1\u05e2\u05d5\u05d3 %s",past:"\u05dc\u05e4\u05e0\u05d9 %s",s:"\u05de\u05e1\u05e4\u05e8 \u05e9\u05e0\u05d9\u05d5\u05ea",ss:"%d \u05e9\u05e0\u05d9\u05d5\u05ea",m:"\u05d3\u05e7\u05d4",mm:"%d \u05d3\u05e7\u05d5\u05ea",h:"\u05e9\u05e2\u05d4",hh:function(H){return 2===H?"\u05e9\u05e2\u05ea\u05d9\u05d9\u05dd":H+" \u05e9\u05e2\u05d5\u05ea"},d:"\u05d9\u05d5\u05dd",dd:function(H){return 2===H?"\u05d9\u05d5\u05de\u05d9\u05d9\u05dd":H+" \u05d9\u05de\u05d9\u05dd"},M:"\u05d7\u05d5\u05d3\u05e9",MM:function(H){return 2===H?"\u05d7\u05d5\u05d3\u05e9\u05d9\u05d9\u05dd":H+" \u05d7\u05d5\u05d3\u05e9\u05d9\u05dd"},y:"\u05e9\u05e0\u05d4",yy:function(H){return 2===H?"\u05e9\u05e0\u05ea\u05d9\u05d9\u05dd":H%10==0&&10!==H?H+" \u05e9\u05e0\u05d4":H+" \u05e9\u05e0\u05d9\u05dd"}},meridiemParse:/\u05d0\u05d7\u05d4"\u05e6|\u05dc\u05e4\u05e0\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8|\u05d1\u05d1\u05d5\u05e7\u05e8|\u05d1\u05e2\u05e8\u05d1/i,isPM:function(H){return/^(\u05d0\u05d7\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05d1\u05e2\u05e8\u05d1)$/.test(H)},meridiem:function(H,D,L){return H<5?"\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8":H<10?"\u05d1\u05d1\u05d5\u05e7\u05e8":H<12?L?'\u05dc\u05e4\u05e0\u05d4"\u05e6':"\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":H<18?L?'\u05d0\u05d7\u05d4"\u05e6':"\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":"\u05d1\u05e2\u05e8\u05d1"}})}(E(5439))},6335:function(Y,G,E){!function(T){"use strict";var n={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},H={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"},D=[/^\u091c\u0928/i,/^\u092b\u093c\u0930|\u092b\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924\u0902|\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935|\u0928\u0935\u0902/i,/^\u0926\u093f\u0938\u0902|\u0926\u093f\u0938/i];T.defineLocale("hi",{months:{format:"\u091c\u0928\u0935\u0930\u0940_\u092b\u093c\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u092e\u094d\u092c\u0930_\u0926\u093f\u0938\u092e\u094d\u092c\u0930".split("_"),standalone:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u0902\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u0902\u092c\u0930_\u0926\u093f\u0938\u0902\u092c\u0930".split("_")},monthsShort:"\u091c\u0928._\u092b\u093c\u0930._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948._\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0905\u0917._\u0938\u093f\u0924._\u0905\u0915\u094d\u091f\u0942._\u0928\u0935._\u0926\u093f\u0938.".split("_"),weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0932\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0932_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u092c\u091c\u0947",LTS:"A h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A h:mm \u092c\u091c\u0947"},monthsParse:D,longMonthsParse:D,shortMonthsParse:[/^\u091c\u0928/i,/^\u092b\u093c\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935/i,/^\u0926\u093f\u0938/i],monthsRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsShortRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsStrictRegex:/^(\u091c\u0928\u0935\u0930\u0940?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908?|\u0905\u0917\u0938\u094d\u0924?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924?\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930?)/i,monthsShortStrictRegex:/^(\u091c\u0928\.?|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\.?|\u0905\u0917\.?|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\.?|\u0926\u093f\u0938\.?)/i,calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0915\u0932] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u0932] LT",lastWeek:"[\u092a\u093f\u091b\u0932\u0947] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u092e\u0947\u0902",past:"%s \u092a\u0939\u0932\u0947",s:"\u0915\u0941\u091b \u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0902\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u091f",mm:"%d \u092e\u093f\u0928\u091f",h:"\u090f\u0915 \u0918\u0902\u091f\u093e",hh:"%d \u0918\u0902\u091f\u0947",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u0940\u0928\u0947",MM:"%d \u092e\u0939\u0940\u0928\u0947",y:"\u090f\u0915 \u0935\u0930\u094d\u0937",yy:"%d \u0935\u0930\u094d\u0937"},preparse:function(B){return B.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(U){return H[U]})},postformat:function(B){return B.replace(/\d/g,function(U){return n[U]})},meridiemParse:/\u0930\u093e\u0924|\u0938\u0941\u092c\u0939|\u0926\u094b\u092a\u0939\u0930|\u0936\u093e\u092e/,meridiemHour:function(B,U){return 12===B&&(B=0),"\u0930\u093e\u0924"===U?B<4?B:B+12:"\u0938\u0941\u092c\u0939"===U?B:"\u0926\u094b\u092a\u0939\u0930"===U?B>=10?B:B+12:"\u0936\u093e\u092e"===U?B+12:void 0},meridiem:function(B,U,W){return B<4?"\u0930\u093e\u0924":B<10?"\u0938\u0941\u092c\u0939":B<17?"\u0926\u094b\u092a\u0939\u0930":B<20?"\u0936\u093e\u092e":"\u0930\u093e\u0924"},week:{dow:0,doy:6}})}(E(5439))},7458:function(Y,G,E){!function(T){"use strict";function n(D,L,O){var B=D+" ";switch(O){case"ss":return B+(1===D?"sekunda":2===D||3===D||4===D?"sekunde":"sekundi");case"m":return L?"jedna minuta":"jedne minute";case"mm":return B+(1===D?"minuta":2===D||3===D||4===D?"minute":"minuta");case"h":return L?"jedan sat":"jednog sata";case"hh":return B+(1===D?"sat":2===D||3===D||4===D?"sata":"sati");case"dd":return B+(1===D?"dan":"dana");case"MM":return B+(1===D?"mjesec":2===D||3===D||4===D?"mjeseca":"mjeseci");case"yy":return B+(1===D?"godina":2===D||3===D||4===D?"godine":"godina")}}T.defineLocale("hr",{months:{format:"sije\u010dnja_velja\u010de_o\u017eujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"sije\u010danj_velja\u010da_o\u017eujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._o\u017eu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:return"[pro\u0161lu] [nedjelju] [u] LT";case 3:return"[pro\u0161lu] [srijedu] [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:n,m:n,mm:n,h:n,hh:n,d:"dan",dd:n,M:"mjesec",MM:n,y:"godinu",yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(E(5439))},6540:function(Y,G,E){!function(T){"use strict";var n="vas\xe1rnap h\xe9tf\u0151n kedden szerd\xe1n cs\xfct\xf6rt\xf6k\xf6n p\xe9nteken szombaton".split(" ");function H(O,B,U,W){var ee=O;switch(U){case"s":return W||B?"n\xe9h\xe1ny m\xe1sodperc":"n\xe9h\xe1ny m\xe1sodperce";case"ss":return ee+(W||B)?" m\xe1sodperc":" m\xe1sodperce";case"m":return"egy"+(W||B?" perc":" perce");case"mm":return ee+(W||B?" perc":" perce");case"h":return"egy"+(W||B?" \xf3ra":" \xf3r\xe1ja");case"hh":return ee+(W||B?" \xf3ra":" \xf3r\xe1ja");case"d":return"egy"+(W||B?" nap":" napja");case"dd":return ee+(W||B?" nap":" napja");case"M":return"egy"+(W||B?" h\xf3nap":" h\xf3napja");case"MM":return ee+(W||B?" h\xf3nap":" h\xf3napja");case"y":return"egy"+(W||B?" \xe9v":" \xe9ve");case"yy":return ee+(W||B?" \xe9v":" \xe9ve")}return""}function D(O){return(O?"":"[m\xfalt] ")+"["+n[this.day()]+"] LT[-kor]"}T.defineLocale("hu",{months:"janu\xe1r_febru\xe1r_m\xe1rcius_\xe1prilis_m\xe1jus_j\xfanius_j\xfalius_augusztus_szeptember_okt\xf3ber_november_december".split("_"),monthsShort:"jan._feb._m\xe1rc._\xe1pr._m\xe1j._j\xfan._j\xfal._aug._szept._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"vas\xe1rnap_h\xe9tf\u0151_kedd_szerda_cs\xfct\xf6rt\xf6k_p\xe9ntek_szombat".split("_"),weekdaysShort:"vas_h\xe9t_kedd_sze_cs\xfct_p\xe9n_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(O){return"u"===O.charAt(1).toLowerCase()},meridiem:function(O,B,U){return O<12?!0===U?"de":"DE":!0===U?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return D.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return D.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s m\xfalva",past:"%s",s:H,ss:H,m:H,mm:H,h:H,hh:H,d:H,dd:H,M:H,MM:H,y:H,yy:H},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},5283:function(Y,G,E){!function(T){"use strict";T.defineLocale("hy-am",{months:{format:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580\u056b_\u0583\u0565\u057f\u0580\u057e\u0561\u0580\u056b_\u0574\u0561\u0580\u057f\u056b_\u0561\u057a\u0580\u056b\u056c\u056b_\u0574\u0561\u0575\u056b\u057d\u056b_\u0570\u0578\u0582\u0576\u056b\u057d\u056b_\u0570\u0578\u0582\u056c\u056b\u057d\u056b_\u0585\u0563\u0578\u057d\u057f\u0578\u057d\u056b_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580\u056b_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b".split("_"),standalone:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580_\u0583\u0565\u057f\u0580\u057e\u0561\u0580_\u0574\u0561\u0580\u057f_\u0561\u057a\u0580\u056b\u056c_\u0574\u0561\u0575\u056b\u057d_\u0570\u0578\u0582\u0576\u056b\u057d_\u0570\u0578\u0582\u056c\u056b\u057d_\u0585\u0563\u0578\u057d\u057f\u0578\u057d_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580".split("_")},monthsShort:"\u0570\u0576\u057e_\u0583\u057f\u0580_\u0574\u0580\u057f_\u0561\u057a\u0580_\u0574\u0575\u057d_\u0570\u0576\u057d_\u0570\u056c\u057d_\u0585\u0563\u057d_\u057d\u057a\u057f_\u0570\u056f\u057f_\u0576\u0574\u0562_\u0564\u056f\u057f".split("_"),weekdays:"\u056f\u056b\u0580\u0561\u056f\u056b_\u0565\u0580\u056f\u0578\u0582\u0577\u0561\u0562\u0569\u056b_\u0565\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0579\u0578\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0570\u056b\u0576\u0563\u0577\u0561\u0562\u0569\u056b_\u0578\u0582\u0580\u0562\u0561\u0569_\u0577\u0561\u0562\u0561\u0569".split("_"),weekdaysShort:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),weekdaysMin:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0569.",LLL:"D MMMM YYYY \u0569., HH:mm",LLLL:"dddd, D MMMM YYYY \u0569., HH:mm"},calendar:{sameDay:"[\u0561\u0575\u057d\u0585\u0580] LT",nextDay:"[\u057e\u0561\u0572\u0568] LT",lastDay:"[\u0565\u0580\u0565\u056f] LT",nextWeek:function(){return"dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},lastWeek:function(){return"[\u0561\u0576\u0581\u0561\u056e] dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},sameElse:"L"},relativeTime:{future:"%s \u0570\u0565\u057f\u0578",past:"%s \u0561\u057c\u0561\u057b",s:"\u0574\u056b \u0584\u0561\u0576\u056b \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",ss:"%d \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",m:"\u0580\u0578\u057a\u0565",mm:"%d \u0580\u0578\u057a\u0565",h:"\u056a\u0561\u0574",hh:"%d \u056a\u0561\u0574",d:"\u0585\u0580",dd:"%d \u0585\u0580",M:"\u0561\u0574\u056b\u057d",MM:"%d \u0561\u0574\u056b\u057d",y:"\u057f\u0561\u0580\u056b",yy:"%d \u057f\u0561\u0580\u056b"},meridiemParse:/\u0563\u056b\u0577\u0565\u0580\u057e\u0561|\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561|\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576/,isPM:function(H){return/^(\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576)$/.test(H)},meridiem:function(H){return H<4?"\u0563\u056b\u0577\u0565\u0580\u057e\u0561":H<12?"\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561":H<17?"\u0581\u0565\u0580\u0565\u056f\u057e\u0561":"\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(\u056b\u0576|\u0580\u0564)/,ordinal:function(H,D){switch(D){case"DDD":case"w":case"W":case"DDDo":return 1===H?H+"-\u056b\u0576":H+"-\u0580\u0564";default:return H}},week:{dow:1,doy:7}})}(E(5439))},8780:function(Y,G,E){!function(T){"use strict";T.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(H,D){return 12===H&&(H=0),"pagi"===D?H:"siang"===D?H>=11?H:H+12:"sore"===D||"malam"===D?H+12:void 0},meridiem:function(H,D,L){return H<11?"pagi":H<15?"siang":H<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}})}(E(5439))},4205:function(Y,G,E){!function(T){"use strict";function n(L){return L%100==11||L%10!=1}function H(L,O,B,U){var W=L+" ";switch(B){case"s":return O||U?"nokkrar sek\xfandur":"nokkrum sek\xfandum";case"ss":return n(L)?W+(O||U?"sek\xfandur":"sek\xfandum"):W+"sek\xfanda";case"m":return O?"m\xedn\xfata":"m\xedn\xfatu";case"mm":return n(L)?W+(O||U?"m\xedn\xfatur":"m\xedn\xfatum"):O?W+"m\xedn\xfata":W+"m\xedn\xfatu";case"hh":return n(L)?W+(O||U?"klukkustundir":"klukkustundum"):W+"klukkustund";case"d":return O?"dagur":U?"dag":"degi";case"dd":return n(L)?O?W+"dagar":W+(U?"daga":"d\xf6gum"):O?W+"dagur":W+(U?"dag":"degi");case"M":return O?"m\xe1nu\xf0ur":U?"m\xe1nu\xf0":"m\xe1nu\xf0i";case"MM":return n(L)?O?W+"m\xe1nu\xf0ir":W+(U?"m\xe1nu\xf0i":"m\xe1nu\xf0um"):O?W+"m\xe1nu\xf0ur":W+(U?"m\xe1nu\xf0":"m\xe1nu\xf0i");case"y":return O||U?"\xe1r":"\xe1ri";case"yy":return n(L)?W+(O||U?"\xe1r":"\xe1rum"):W+(O||U?"\xe1r":"\xe1ri")}}T.defineLocale("is",{months:"jan\xfaar_febr\xfaar_mars_apr\xedl_ma\xed_j\xfan\xed_j\xfal\xed_\xe1g\xfast_september_okt\xf3ber_n\xf3vember_desember".split("_"),monthsShort:"jan_feb_mar_apr_ma\xed_j\xfan_j\xfal_\xe1g\xfa_sep_okt_n\xf3v_des".split("_"),weekdays:"sunnudagur_m\xe1nudagur_\xferi\xf0judagur_mi\xf0vikudagur_fimmtudagur_f\xf6studagur_laugardagur".split("_"),weekdaysShort:"sun_m\xe1n_\xferi_mi\xf0_fim_f\xf6s_lau".split("_"),weekdaysMin:"Su_M\xe1_\xder_Mi_Fi_F\xf6_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[\xed dag kl.] LT",nextDay:"[\xe1 morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xed g\xe6r kl.] LT",lastWeek:"[s\xed\xf0asta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s s\xed\xf0an",s:H,ss:H,m:H,mm:H,h:"klukkustund",hh:H,d:H,dd:H,M:H,MM:H,y:H,yy:H},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},9985:function(Y,G,E){!function(T){"use strict";T.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){return 0===this.day()?"[la scorsa] dddd [alle] LT":"[lo scorso] dddd [alle] LT"},sameElse:"L"},relativeTime:{future:function(H){return(/^[0-9].+$/.test(H)?"tra":"in")+" "+H},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(E(5439))},4211:function(Y,G,E){!function(T){"use strict";T.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){return 0===this.day()?"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT":"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(E(5439))},1003:function(Y,G,E){!function(T){"use strict";T.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"\u4ee4\u548c",narrow:"\u32ff",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"\u5e73\u6210",narrow:"\u337b",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"\u662d\u548c",narrow:"\u337c",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"\u5927\u6b63",narrow:"\u337d",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"\u660e\u6cbb",narrow:"\u337e",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"\u897f\u66a6",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"\u7d00\u5143\u524d",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(\u5143|\d+)\u5e74/,eraYearOrdinalParse:function(H,D){return"\u5143"===D[1]?1:parseInt(D[1]||H,10)},months:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u65e5\u66dc\u65e5_\u6708\u66dc\u65e5_\u706b\u66dc\u65e5_\u6c34\u66dc\u65e5_\u6728\u66dc\u65e5_\u91d1\u66dc\u65e5_\u571f\u66dc\u65e5".split("_"),weekdaysShort:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),weekdaysMin:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5(ddd) HH:mm"},meridiemParse:/\u5348\u524d|\u5348\u5f8c/i,isPM:function(H){return"\u5348\u5f8c"===H},meridiem:function(H,D,L){return H<12?"\u5348\u524d":"\u5348\u5f8c"},calendar:{sameDay:"[\u4eca\u65e5] LT",nextDay:"[\u660e\u65e5] LT",nextWeek:function(H){return H.week()!==this.week()?"[\u6765\u9031]dddd LT":"dddd LT"},lastDay:"[\u6628\u65e5] LT",lastWeek:function(H){return this.week()!==H.week()?"[\u5148\u9031]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}\u65e5/,ordinal:function(H,D){switch(D){case"y":return 1===H?"\u5143\u5e74":H+"\u5e74";case"d":case"D":case"DDD":return H+"\u65e5";default:return H}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u6570\u79d2",ss:"%d\u79d2",m:"1\u5206",mm:"%d\u5206",h:"1\u6642\u9593",hh:"%d\u6642\u9593",d:"1\u65e5",dd:"%d\u65e5",M:"1\u30f6\u6708",MM:"%d\u30f6\u6708",y:"1\u5e74",yy:"%d\u5e74"}})}(E(5439))},420:function(Y,G,E){!function(T){"use strict";T.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(H,D){return 12===H&&(H=0),"enjing"===D?H:"siyang"===D?H>=11?H:H+12:"sonten"===D||"ndalu"===D?H+12:void 0},meridiem:function(H,D,L){return H<11?"enjing":H<15?"siyang":H<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(E(5439))},851:function(Y,G,E){!function(T){"use strict";T.defineLocale("ka",{months:"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10d8_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10d8_\u10db\u10d0\u10e0\u10e2\u10d8_\u10d0\u10de\u10e0\u10d8\u10da\u10d8_\u10db\u10d0\u10d8\u10e1\u10d8_\u10d8\u10d5\u10dc\u10d8\u10e1\u10d8_\u10d8\u10d5\u10da\u10d8\u10e1\u10d8_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10dd_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10d8_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10d8".split("_"),monthsShort:"\u10d8\u10d0\u10dc_\u10d7\u10d4\u10d1_\u10db\u10d0\u10e0_\u10d0\u10de\u10e0_\u10db\u10d0\u10d8_\u10d8\u10d5\u10dc_\u10d8\u10d5\u10da_\u10d0\u10d2\u10d5_\u10e1\u10d4\u10e5_\u10dd\u10e5\u10e2_\u10dc\u10dd\u10d4_\u10d3\u10d4\u10d9".split("_"),weekdays:{standalone:"\u10d9\u10d5\u10d8\u10e0\u10d0_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10d8_\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8".split("_"),format:"\u10d9\u10d5\u10d8\u10e0\u10d0\u10e1_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10e1_\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1".split("_"),isFormat:/(\u10ec\u10d8\u10dc\u10d0|\u10e8\u10d4\u10db\u10d3\u10d4\u10d2)/},weekdaysShort:"\u10d9\u10d5\u10d8_\u10dd\u10e0\u10e8_\u10e1\u10d0\u10db_\u10dd\u10d7\u10ee_\u10ee\u10e3\u10d7_\u10de\u10d0\u10e0_\u10e8\u10d0\u10d1".split("_"),weekdaysMin:"\u10d9\u10d5_\u10dd\u10e0_\u10e1\u10d0_\u10dd\u10d7_\u10ee\u10e3_\u10de\u10d0_\u10e8\u10d0".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u10d3\u10e6\u10d4\u10e1] LT[-\u10d6\u10d4]",nextDay:"[\u10ee\u10d5\u10d0\u10da] LT[-\u10d6\u10d4]",lastDay:"[\u10d2\u10e3\u10e8\u10d8\u10dc] LT[-\u10d6\u10d4]",nextWeek:"[\u10e8\u10d4\u10db\u10d3\u10d4\u10d2] dddd LT[-\u10d6\u10d4]",lastWeek:"[\u10ec\u10d8\u10dc\u10d0] dddd LT-\u10d6\u10d4",sameElse:"L"},relativeTime:{future:function(H){return H.replace(/(\u10ec\u10d0\u10db|\u10ec\u10e3\u10d7|\u10e1\u10d0\u10d0\u10d7|\u10ec\u10d4\u10da|\u10d3\u10e6|\u10d7\u10d5)(\u10d8|\u10d4)/,function(D,L,O){return"\u10d8"===O?L+"\u10e8\u10d8":L+O+"\u10e8\u10d8"})},past:function(H){return/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10d3\u10e6\u10d4|\u10d7\u10d5\u10d4)/.test(H)?H.replace(/(\u10d8|\u10d4)$/,"\u10d8\u10e1 \u10ec\u10d8\u10dc"):/\u10ec\u10d4\u10da\u10d8/.test(H)?H.replace(/\u10ec\u10d4\u10da\u10d8$/,"\u10ec\u10da\u10d8\u10e1 \u10ec\u10d8\u10dc"):H},s:"\u10e0\u10d0\u10db\u10d3\u10d4\u10dc\u10d8\u10db\u10d4 \u10ec\u10d0\u10db\u10d8",ss:"%d \u10ec\u10d0\u10db\u10d8",m:"\u10ec\u10e3\u10d7\u10d8",mm:"%d \u10ec\u10e3\u10d7\u10d8",h:"\u10e1\u10d0\u10d0\u10d7\u10d8",hh:"%d \u10e1\u10d0\u10d0\u10d7\u10d8",d:"\u10d3\u10e6\u10d4",dd:"%d \u10d3\u10e6\u10d4",M:"\u10d7\u10d5\u10d4",MM:"%d \u10d7\u10d5\u10d4",y:"\u10ec\u10d4\u10da\u10d8",yy:"%d \u10ec\u10d4\u10da\u10d8"},dayOfMonthOrdinalParse:/0|1-\u10da\u10d8|\u10db\u10d4-\d{1,2}|\d{1,2}-\u10d4/,ordinal:function(H){return 0===H?H:1===H?H+"-\u10da\u10d8":H<20||H<=100&&H%20==0||H%100==0?"\u10db\u10d4-"+H:H+"-\u10d4"},week:{dow:1,doy:7}})}(E(5439))},6074:function(Y,G,E){!function(T){"use strict";var n={0:"-\u0448\u0456",1:"-\u0448\u0456",2:"-\u0448\u0456",3:"-\u0448\u0456",4:"-\u0448\u0456",5:"-\u0448\u0456",6:"-\u0448\u044b",7:"-\u0448\u0456",8:"-\u0448\u0456",9:"-\u0448\u044b",10:"-\u0448\u044b",20:"-\u0448\u044b",30:"-\u0448\u044b",40:"-\u0448\u044b",50:"-\u0448\u0456",60:"-\u0448\u044b",70:"-\u0448\u0456",80:"-\u0448\u0456",90:"-\u0448\u044b",100:"-\u0448\u0456"};T.defineLocale("kk",{months:"\u049b\u0430\u04a3\u0442\u0430\u0440_\u0430\u049b\u043f\u0430\u043d_\u043d\u0430\u0443\u0440\u044b\u0437_\u0441\u04d9\u0443\u0456\u0440_\u043c\u0430\u043c\u044b\u0440_\u043c\u0430\u0443\u0441\u044b\u043c_\u0448\u0456\u043b\u0434\u0435_\u0442\u0430\u043c\u044b\u0437_\u049b\u044b\u0440\u043a\u04af\u0439\u0435\u043a_\u049b\u0430\u0437\u0430\u043d_\u049b\u0430\u0440\u0430\u0448\u0430_\u0436\u0435\u043b\u0442\u043e\u049b\u0441\u0430\u043d".split("_"),monthsShort:"\u049b\u0430\u04a3_\u0430\u049b\u043f_\u043d\u0430\u0443_\u0441\u04d9\u0443_\u043c\u0430\u043c_\u043c\u0430\u0443_\u0448\u0456\u043b_\u0442\u0430\u043c_\u049b\u044b\u0440_\u049b\u0430\u0437_\u049b\u0430\u0440_\u0436\u0435\u043b".split("_"),weekdays:"\u0436\u0435\u043a\u0441\u0435\u043d\u0431\u0456_\u0434\u04af\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u04d9\u0440\u0441\u0435\u043d\u0431\u0456_\u0431\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0436\u04b1\u043c\u0430_\u0441\u0435\u043d\u0431\u0456".split("_"),weekdaysShort:"\u0436\u0435\u043a_\u0434\u04af\u0439_\u0441\u0435\u0439_\u0441\u04d9\u0440_\u0431\u0435\u0439_\u0436\u04b1\u043c_\u0441\u0435\u043d".split("_"),weekdaysMin:"\u0436\u043a_\u0434\u0439_\u0441\u0439_\u0441\u0440_\u0431\u0439_\u0436\u043c_\u0441\u043d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u0456\u043d \u0441\u0430\u0493\u0430\u0442] LT",nextDay:"[\u0415\u0440\u0442\u0435\u04a3 \u0441\u0430\u0493\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0493\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0448\u0435 \u0441\u0430\u0493\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u0435\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u04a3] dddd [\u0441\u0430\u0493\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0456\u0448\u0456\u043d\u0434\u0435",past:"%s \u0431\u04b1\u0440\u044b\u043d",s:"\u0431\u0456\u0440\u043d\u0435\u0448\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0456\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u0431\u0456\u0440 \u0441\u0430\u0493\u0430\u0442",hh:"%d \u0441\u0430\u0493\u0430\u0442",d:"\u0431\u0456\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0456\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0456\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0448\u0456|\u0448\u044b)/,ordinal:function(D){return D+(n[D]||n[D%10]||n[D>=100?100:null])},week:{dow:1,doy:7}})}(E(5439))},3343:function(Y,G,E){!function(T){"use strict";var n={1:"\u17e1",2:"\u17e2",3:"\u17e3",4:"\u17e4",5:"\u17e5",6:"\u17e6",7:"\u17e7",8:"\u17e8",9:"\u17e9",0:"\u17e0"},H={"\u17e1":"1","\u17e2":"2","\u17e3":"3","\u17e4":"4","\u17e5":"5","\u17e6":"6","\u17e7":"7","\u17e8":"8","\u17e9":"9","\u17e0":"0"};T.defineLocale("km",{months:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),monthsShort:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),weekdays:"\u17a2\u17b6\u1791\u17b7\u178f\u17d2\u1799_\u1785\u17d0\u1793\u17d2\u1791_\u17a2\u1784\u17d2\u1782\u17b6\u179a_\u1796\u17bb\u1792_\u1796\u17d2\u179a\u17a0\u179f\u17d2\u1794\u178f\u17b7\u17cd_\u179f\u17bb\u1780\u17d2\u179a_\u179f\u17c5\u179a\u17cd".split("_"),weekdaysShort:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysMin:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u1796\u17d2\u179a\u17b9\u1780|\u179b\u17d2\u1784\u17b6\u1785/,isPM:function(L){return"\u179b\u17d2\u1784\u17b6\u1785"===L},meridiem:function(L,O,B){return L<12?"\u1796\u17d2\u179a\u17b9\u1780":"\u179b\u17d2\u1784\u17b6\u1785"},calendar:{sameDay:"[\u1790\u17d2\u1784\u17c3\u1793\u17c1\u17c7 \u1798\u17c9\u17c4\u1784] LT",nextDay:"[\u179f\u17d2\u17a2\u17c2\u1780 \u1798\u17c9\u17c4\u1784] LT",nextWeek:"dddd [\u1798\u17c9\u17c4\u1784] LT",lastDay:"[\u1798\u17d2\u179f\u17b7\u179b\u1798\u17b7\u1789 \u1798\u17c9\u17c4\u1784] LT",lastWeek:"dddd [\u179f\u1794\u17d2\u178f\u17b6\u17a0\u17cd\u1798\u17bb\u1793] [\u1798\u17c9\u17c4\u1784] LT",sameElse:"L"},relativeTime:{future:"%s\u1791\u17c0\u178f",past:"%s\u1798\u17bb\u1793",s:"\u1794\u17c9\u17bb\u1793\u17d2\u1798\u17b6\u1793\u179c\u17b7\u1793\u17b6\u1791\u17b8",ss:"%d \u179c\u17b7\u1793\u17b6\u1791\u17b8",m:"\u1798\u17bd\u1799\u1793\u17b6\u1791\u17b8",mm:"%d \u1793\u17b6\u1791\u17b8",h:"\u1798\u17bd\u1799\u1798\u17c9\u17c4\u1784",hh:"%d \u1798\u17c9\u17c4\u1784",d:"\u1798\u17bd\u1799\u1790\u17d2\u1784\u17c3",dd:"%d \u1790\u17d2\u1784\u17c3",M:"\u1798\u17bd\u1799\u1781\u17c2",MM:"%d \u1781\u17c2",y:"\u1798\u17bd\u1799\u1786\u17d2\u1793\u17b6\u17c6",yy:"%d \u1786\u17d2\u1793\u17b6\u17c6"},dayOfMonthOrdinalParse:/\u1791\u17b8\d{1,2}/,ordinal:"\u1791\u17b8%d",preparse:function(L){return L.replace(/[\u17e1\u17e2\u17e3\u17e4\u17e5\u17e6\u17e7\u17e8\u17e9\u17e0]/g,function(O){return H[O]})},postformat:function(L){return L.replace(/\d/g,function(O){return n[O]})},week:{dow:1,doy:4}})}(E(5439))},4799:function(Y,G,E){!function(T){"use strict";var n={1:"\u0ce7",2:"\u0ce8",3:"\u0ce9",4:"\u0cea",5:"\u0ceb",6:"\u0cec",7:"\u0ced",8:"\u0cee",9:"\u0cef",0:"\u0ce6"},H={"\u0ce7":"1","\u0ce8":"2","\u0ce9":"3","\u0cea":"4","\u0ceb":"5","\u0cec":"6","\u0ced":"7","\u0cee":"8","\u0cef":"9","\u0ce6":"0"};T.defineLocale("kn",{months:"\u0c9c\u0ca8\u0cb5\u0cb0\u0cbf_\u0cab\u0cc6\u0cac\u0ccd\u0cb0\u0cb5\u0cb0\u0cbf_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5\u0cac\u0cb0\u0ccd_\u0ca8\u0cb5\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82\u0cac\u0cb0\u0ccd".split("_"),monthsShort:"\u0c9c\u0ca8_\u0cab\u0cc6\u0cac\u0ccd\u0cb0_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5_\u0ca8\u0cb5\u0cc6\u0c82_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82".split("_"),monthsParseExact:!0,weekdays:"\u0cad\u0cbe\u0ca8\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae\u0cb5\u0cbe\u0cb0_\u0cae\u0c82\u0c97\u0cb3\u0cb5\u0cbe\u0cb0_\u0cac\u0cc1\u0ca7\u0cb5\u0cbe\u0cb0_\u0c97\u0cc1\u0cb0\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0\u0cb5\u0cbe\u0cb0_\u0cb6\u0ca8\u0cbf\u0cb5\u0cbe\u0cb0".split("_"),weekdaysShort:"\u0cad\u0cbe\u0ca8\u0cc1_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae_\u0cae\u0c82\u0c97\u0cb3_\u0cac\u0cc1\u0ca7_\u0c97\u0cc1\u0cb0\u0cc1_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0_\u0cb6\u0ca8\u0cbf".split("_"),weekdaysMin:"\u0cad\u0cbe_\u0cb8\u0cc6\u0cc2\u0cd5_\u0cae\u0c82_\u0cac\u0cc1_\u0c97\u0cc1_\u0cb6\u0cc1_\u0cb6".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c87\u0c82\u0ca6\u0cc1] LT",nextDay:"[\u0ca8\u0cbe\u0cb3\u0cc6] LT",nextWeek:"dddd, LT",lastDay:"[\u0ca8\u0cbf\u0ca8\u0ccd\u0ca8\u0cc6] LT",lastWeek:"[\u0c95\u0cc6\u0cc2\u0ca8\u0cc6\u0caf] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0ca8\u0c82\u0ca4\u0cb0",past:"%s \u0cb9\u0cbf\u0c82\u0ca6\u0cc6",s:"\u0c95\u0cc6\u0cb2\u0cb5\u0cc1 \u0c95\u0ccd\u0cb7\u0ca3\u0c97\u0cb3\u0cc1",ss:"%d \u0cb8\u0cc6\u0c95\u0cc6\u0c82\u0ca1\u0cc1\u0c97\u0cb3\u0cc1",m:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",mm:"%d \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",h:"\u0c92\u0c82\u0ca6\u0cc1 \u0c97\u0c82\u0c9f\u0cc6",hh:"%d \u0c97\u0c82\u0c9f\u0cc6",d:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca6\u0cbf\u0ca8",dd:"%d \u0ca6\u0cbf\u0ca8",M:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",MM:"%d \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",y:"\u0c92\u0c82\u0ca6\u0cc1 \u0cb5\u0cb0\u0ccd\u0cb7",yy:"%d \u0cb5\u0cb0\u0ccd\u0cb7"},preparse:function(L){return L.replace(/[\u0ce7\u0ce8\u0ce9\u0cea\u0ceb\u0cec\u0ced\u0cee\u0cef\u0ce6]/g,function(O){return H[O]})},postformat:function(L){return L.replace(/\d/g,function(O){return n[O]})},meridiemParse:/\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf|\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6|\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8|\u0cb8\u0c82\u0c9c\u0cc6/,meridiemHour:function(L,O){return 12===L&&(L=0),"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"===O?L<4?L:L+12:"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6"===O?L:"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8"===O?L>=10?L:L+12:"\u0cb8\u0c82\u0c9c\u0cc6"===O?L+12:void 0},meridiem:function(L,O,B){return L<4?"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf":L<10?"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6":L<17?"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8":L<20?"\u0cb8\u0c82\u0c9c\u0cc6":"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"},dayOfMonthOrdinalParse:/\d{1,2}(\u0ca8\u0cc6\u0cd5)/,ordinal:function(L){return L+"\u0ca8\u0cc6\u0cd5"},week:{dow:0,doy:6}})}(E(5439))},3549:function(Y,G,E){!function(T){"use strict";T.defineLocale("ko",{months:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),monthsShort:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),weekdays:"\uc77c\uc694\uc77c_\uc6d4\uc694\uc77c_\ud654\uc694\uc77c_\uc218\uc694\uc77c_\ubaa9\uc694\uc77c_\uae08\uc694\uc77c_\ud1a0\uc694\uc77c".split("_"),weekdaysShort:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),weekdaysMin:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY\ub144 MMMM D\uc77c",LLL:"YYYY\ub144 MMMM D\uc77c A h:mm",LLLL:"YYYY\ub144 MMMM D\uc77c dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY\ub144 MMMM D\uc77c",lll:"YYYY\ub144 MMMM D\uc77c A h:mm",llll:"YYYY\ub144 MMMM D\uc77c dddd A h:mm"},calendar:{sameDay:"\uc624\ub298 LT",nextDay:"\ub0b4\uc77c LT",nextWeek:"dddd LT",lastDay:"\uc5b4\uc81c LT",lastWeek:"\uc9c0\ub09c\uc8fc dddd LT",sameElse:"L"},relativeTime:{future:"%s \ud6c4",past:"%s \uc804",s:"\uba87 \ucd08",ss:"%d\ucd08",m:"1\ubd84",mm:"%d\ubd84",h:"\ud55c \uc2dc\uac04",hh:"%d\uc2dc\uac04",d:"\ud558\ub8e8",dd:"%d\uc77c",M:"\ud55c \ub2ec",MM:"%d\ub2ec",y:"\uc77c \ub144",yy:"%d\ub144"},dayOfMonthOrdinalParse:/\d{1,2}(\uc77c|\uc6d4|\uc8fc)/,ordinal:function(H,D){switch(D){case"d":case"D":case"DDD":return H+"\uc77c";case"M":return H+"\uc6d4";case"w":case"W":return H+"\uc8fc";default:return H}},meridiemParse:/\uc624\uc804|\uc624\ud6c4/,isPM:function(H){return"\uc624\ud6c4"===H},meridiem:function(H,D,L){return H<12?"\uc624\uc804":"\uc624\ud6c4"}})}(E(5439))},1037:function(Y,G,E){!function(T){"use strict";var n={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},H={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},D=["\u06a9\u0627\u0646\u0648\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0634\u0648\u0628\u0627\u062a","\u0626\u0627\u0632\u0627\u0631","\u0646\u06cc\u0633\u0627\u0646","\u0626\u0627\u06cc\u0627\u0631","\u062d\u0648\u0632\u06d5\u06cc\u0631\u0627\u0646","\u062a\u06d5\u0645\u0645\u0648\u0632","\u0626\u0627\u0628","\u0626\u06d5\u06cc\u0644\u0648\u0648\u0644","\u062a\u0634\u0631\u06cc\u0646\u06cc \u06cc\u06d5\u0643\u06d5\u0645","\u062a\u0634\u0631\u06cc\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0643\u0627\u0646\u0648\u0646\u06cc \u06cc\u06d5\u06a9\u06d5\u0645"];T.defineLocale("ku",{months:D,monthsShort:D,weekdays:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u062f\u0648\u0648\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0633\u06ce\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysShort:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645_\u062f\u0648\u0648\u0634\u0647\u200c\u0645_\u0633\u06ce\u0634\u0647\u200c\u0645_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u0647_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c|\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc/,isPM:function(O){return/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c/.test(O)},meridiem:function(O,B,U){return O<12?"\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc":"\u0626\u06ce\u0648\u0627\u0631\u0647\u200c"},calendar:{sameDay:"[\u0626\u0647\u200c\u0645\u0631\u06c6 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextDay:"[\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastDay:"[\u062f\u0648\u06ce\u0646\u06ce \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",sameElse:"L"},relativeTime:{future:"\u0644\u0647\u200c %s",past:"%s",s:"\u0686\u0647\u200c\u0646\u062f \u0686\u0631\u0643\u0647\u200c\u06cc\u0647\u200c\u0643",ss:"\u0686\u0631\u0643\u0647\u200c %d",m:"\u06cc\u0647\u200c\u0643 \u062e\u0648\u0644\u0647\u200c\u0643",mm:"%d \u062e\u0648\u0644\u0647\u200c\u0643",h:"\u06cc\u0647\u200c\u0643 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",hh:"%d \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",d:"\u06cc\u0647\u200c\u0643 \u0695\u06c6\u0698",dd:"%d \u0695\u06c6\u0698",M:"\u06cc\u0647\u200c\u0643 \u0645\u0627\u0646\u06af",MM:"%d \u0645\u0627\u0646\u06af",y:"\u06cc\u0647\u200c\u0643 \u0633\u0627\u06b5",yy:"%d \u0633\u0627\u06b5"},preparse:function(O){return O.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(B){return H[B]}).replace(/\u060c/g,",")},postformat:function(O){return O.replace(/\d/g,function(B){return n[B]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(E(5439))},3125:function(Y,G,E){!function(T){"use strict";var n={0:"-\u0447\u04af",1:"-\u0447\u0438",2:"-\u0447\u0438",3:"-\u0447\u04af",4:"-\u0447\u04af",5:"-\u0447\u0438",6:"-\u0447\u044b",7:"-\u0447\u0438",8:"-\u0447\u0438",9:"-\u0447\u0443",10:"-\u0447\u0443",20:"-\u0447\u044b",30:"-\u0447\u0443",40:"-\u0447\u044b",50:"-\u0447\u04af",60:"-\u0447\u044b",70:"-\u0447\u0438",80:"-\u0447\u0438",90:"-\u0447\u0443",100:"-\u0447\u04af"};T.defineLocale("ky",{months:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u0416\u0435\u043a\u0448\u0435\u043c\u0431\u0438_\u0414\u04af\u0439\u0448\u04e9\u043c\u0431\u04af_\u0428\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0428\u0430\u0440\u0448\u0435\u043c\u0431\u0438_\u0411\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0416\u0443\u043c\u0430_\u0418\u0448\u0435\u043c\u0431\u0438".split("_"),weekdaysShort:"\u0416\u0435\u043a_\u0414\u04af\u0439_\u0428\u0435\u0439_\u0428\u0430\u0440_\u0411\u0435\u0439_\u0416\u0443\u043c_\u0418\u0448\u0435".split("_"),weekdaysMin:"\u0416\u043a_\u0414\u0439_\u0428\u0439_\u0428\u0440_\u0411\u0439_\u0416\u043c_\u0418\u0448".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u04af\u043d \u0441\u0430\u0430\u0442] LT",nextDay:"[\u042d\u0440\u0442\u0435\u04a3 \u0441\u0430\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0447\u044d\u044d \u0441\u0430\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u04e9\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u043d] dddd [\u043a\u04af\u043d\u04af] [\u0441\u0430\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0438\u0447\u0438\u043d\u0434\u0435",past:"%s \u043c\u0443\u0440\u0443\u043d",s:"\u0431\u0438\u0440\u043d\u0435\u0447\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0438\u0440 \u043c\u04af\u043d\u04e9\u0442",mm:"%d \u043c\u04af\u043d\u04e9\u0442",h:"\u0431\u0438\u0440 \u0441\u0430\u0430\u0442",hh:"%d \u0441\u0430\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0438\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0438\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0447\u0438|\u0447\u044b|\u0447\u04af|\u0447\u0443)/,ordinal:function(D){return D+(n[D]||n[D%10]||n[D>=100?100:null])},week:{dow:1,doy:7}})}(E(5439))},9586:function(Y,G,E){!function(T){"use strict";function n(B,U,W,ee){var te={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return U?te[W][0]:te[W][1]}function L(B){if(B=parseInt(B,10),isNaN(B))return!1;if(B<0)return!0;if(B<10)return 4<=B&&B<=7;if(B<100){var U=B%10;return L(0===U?B/10:U)}if(B<1e4){for(;B>=10;)B/=10;return L(B)}return L(B/=1e3)}T.defineLocale("lb",{months:"Januar_Februar_M\xe4erz_Abr\xebll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_M\xe9indeg_D\xebnschdeg_M\xebttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._M\xe9._D\xeb._M\xeb._Do._Fr._Sa.".split("_"),weekdaysMin:"So_M\xe9_D\xeb_M\xeb_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[G\xebschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function H(B){return L(B.substr(0,B.indexOf(" ")))?"a "+B:"an "+B},past:function D(B){return L(B.substr(0,B.indexOf(" ")))?"viru "+B:"virun "+B},s:"e puer Sekonnen",ss:"%d Sekonnen",m:n,mm:"%d Minutten",h:n,hh:"%d Stonnen",d:n,dd:"%d Deeg",M:n,MM:"%d M\xe9int",y:n,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},2349:function(Y,G,E){!function(T){"use strict";T.defineLocale("lo",{months:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),monthsShort:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),weekdays:"\u0ead\u0eb2\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysShort:"\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysMin:"\u0e97_\u0e88_\u0ead\u0e84_\u0e9e_\u0e9e\u0eab_\u0eaa\u0e81_\u0eaa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"\u0ea7\u0eb1\u0e99dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2|\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87/,isPM:function(H){return"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"===H},meridiem:function(H,D,L){return H<12?"\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2":"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"},calendar:{sameDay:"[\u0ea1\u0eb7\u0ec9\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextDay:"[\u0ea1\u0eb7\u0ec9\u0ead\u0eb7\u0ec8\u0e99\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0edc\u0ec9\u0eb2\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastDay:"[\u0ea1\u0eb7\u0ec9\u0ea7\u0eb2\u0e99\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0ec1\u0ea5\u0ec9\u0ea7\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",sameElse:"L"},relativeTime:{future:"\u0ead\u0eb5\u0e81 %s",past:"%s\u0e9c\u0ec8\u0eb2\u0e99\u0ea1\u0eb2",s:"\u0e9a\u0ecd\u0ec8\u0ec0\u0e97\u0ebb\u0ec8\u0eb2\u0ec3\u0e94\u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",ss:"%d \u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",m:"1 \u0e99\u0eb2\u0e97\u0eb5",mm:"%d \u0e99\u0eb2\u0e97\u0eb5",h:"1 \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",hh:"%d \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",d:"1 \u0ea1\u0eb7\u0ec9",dd:"%d \u0ea1\u0eb7\u0ec9",M:"1 \u0ec0\u0e94\u0eb7\u0ead\u0e99",MM:"%d \u0ec0\u0e94\u0eb7\u0ead\u0e99",y:"1 \u0e9b\u0eb5",yy:"%d \u0e9b\u0eb5"},dayOfMonthOrdinalParse:/(\u0e97\u0eb5\u0ec8)\d{1,2}/,ordinal:function(H){return"\u0e97\u0eb5\u0ec8"+H}})}(E(5439))},2400:function(Y,G,E){!function(T){"use strict";var n={ss:"sekund\u0117_sekund\u017ei\u0173_sekundes",m:"minut\u0117_minut\u0117s_minut\u0119",mm:"minut\u0117s_minu\u010di\u0173_minutes",h:"valanda_valandos_valand\u0105",hh:"valandos_valand\u0173_valandas",d:"diena_dienos_dien\u0105",dd:"dienos_dien\u0173_dienas",M:"m\u0117nuo_m\u0117nesio_m\u0117nes\u012f",MM:"m\u0117nesiai_m\u0117nesi\u0173_m\u0117nesius",y:"metai_met\u0173_metus",yy:"metai_met\u0173_metus"};function D(W,ee,te,ae){return ee?O(te)[0]:ae?O(te)[1]:O(te)[2]}function L(W){return W%10==0||W>10&&W<20}function O(W){return n[W].split("_")}function B(W,ee,te,ae){var ue=W+" ";return 1===W?ue+D(0,ee,te[0],ae):ee?ue+(L(W)?O(te)[1]:O(te)[0]):ae?ue+O(te)[1]:ue+(L(W)?O(te)[1]:O(te)[2])}T.defineLocale("lt",{months:{format:"sausio_vasario_kovo_baland\u017eio_gegu\u017e\u0117s_bir\u017eelio_liepos_rugpj\u016b\u010dio_rugs\u0117jo_spalio_lapkri\u010dio_gruod\u017eio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegu\u017e\u0117_bir\u017eelis_liepa_rugpj\u016btis_rugs\u0117jis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadien\u012f_pirmadien\u012f_antradien\u012f_tre\u010diadien\u012f_ketvirtadien\u012f_penktadien\u012f_\u0161e\u0161tadien\u012f".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_tre\u010diadienis_ketvirtadienis_penktadienis_\u0161e\u0161tadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_\u0160e\u0161".split("_"),weekdaysMin:"S_P_A_T_K_Pn_\u0160".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[\u0160iandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Pra\u0117jus\u012f] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prie\u0161 %s",s:function H(W,ee,te,ae){return ee?"kelios sekund\u0117s":ae?"keli\u0173 sekund\u017ei\u0173":"kelias sekundes"},ss:B,m:D,mm:B,h:D,hh:B,d:D,dd:B,M:D,MM:B,y:D,yy:B},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(W){return W+"-oji"},week:{dow:1,doy:4}})}(E(5439))},9991:function(Y,G,E){!function(T){"use strict";var n={ss:"sekundes_sekund\u0113m_sekunde_sekundes".split("_"),m:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),mm:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),h:"stundas_stund\u0101m_stunda_stundas".split("_"),hh:"stundas_stund\u0101m_stunda_stundas".split("_"),d:"dienas_dien\u0101m_diena_dienas".split("_"),dd:"dienas_dien\u0101m_diena_dienas".split("_"),M:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),MM:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function H(U,W,ee){return ee?W%10==1&&W%100!=11?U[2]:U[3]:W%10==1&&W%100!=11?U[0]:U[1]}function D(U,W,ee){return U+" "+H(n[ee],U,W)}function L(U,W,ee){return H(n[ee],U,W)}T.defineLocale("lv",{months:"janv\u0101ris_febru\u0101ris_marts_apr\u012blis_maijs_j\u016bnijs_j\u016blijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_j\u016bn_j\u016bl_aug_sep_okt_nov_dec".split("_"),weekdays:"sv\u0113tdiena_pirmdiena_otrdiena_tre\u0161diena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[\u0160odien pulksten] LT",nextDay:"[R\u012bt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pag\u0101ju\u0161\u0101] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"p\u0113c %s",past:"pirms %s",s:function O(U,W){return W?"da\u017eas sekundes":"da\u017e\u0101m sekund\u0113m"},ss:D,m:L,mm:D,h:L,hh:D,d:L,dd:D,M:L,MM:D,y:L,yy:D},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},8477:function(Y,G,E){!function(T){"use strict";var n={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(D,L){return 1===D?L[0]:D>=2&&D<=4?L[1]:L[2]},translate:function(D,L,O){var B=n.words[O];return 1===O.length?L?B[0]:B[1]:D+" "+n.correctGrammaticalCase(D,B)}};T.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedjelje] [u] LT","[pro\u0161log] [ponedjeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srijede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:n.translate,m:n.translate,mm:n.translate,h:n.translate,hh:n.translate,d:"dan",dd:n.translate,M:"mjesec",MM:n.translate,y:"godinu",yy:n.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(E(5439))},5118:function(Y,G,E){!function(T){"use strict";T.defineLocale("mi",{months:"Kohi-t\u0101te_Hui-tanguru_Pout\u016b-te-rangi_Paenga-wh\u0101wh\u0101_Haratua_Pipiri_H\u014dngoingoi_Here-turi-k\u014dk\u0101_Mahuru_Whiringa-\u0101-nuku_Whiringa-\u0101-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_H\u014dngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"R\u0101tapu_Mane_T\u016brei_Wenerei_T\u0101ite_Paraire_H\u0101tarei".split("_"),weekdaysShort:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),weekdaysMin:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te h\u0113kona ruarua",ss:"%d h\u0113kona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(E(5439))},5943:function(Y,G,E){!function(T){"use strict";T.defineLocale("mk",{months:"\u0458\u0430\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d\u0438_\u0458\u0443\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u0458\u0430\u043d_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u043e\u043a_\u043f\u0435\u0442\u043e\u043a_\u0441\u0430\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u0435_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u0430\u0431".split("_"),weekdaysMin:"\u043de_\u043fo_\u0432\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441a".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u0435\u043d\u0435\u0441 \u0432\u043e] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432\u043e] LT",nextWeek:"[\u0412\u043e] dddd [\u0432\u043e] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432\u043e] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0430\u0442\u0430] dddd [\u0432\u043e] LT";case 1:case 2:case 4:case 5:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0438\u043e\u0442] dddd [\u0432\u043e] LT"}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435\u0434 %s",s:"\u043d\u0435\u043a\u043e\u043b\u043a\u0443 \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u0435\u0434\u043d\u0430 \u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0435\u0434\u0435\u043d \u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0435\u0434\u0435\u043d \u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",M:"\u0435\u0434\u0435\u043d \u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0438",y:"\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(H){var D=H%10,L=H%100;return 0===H?H+"-\u0435\u0432":0===L?H+"-\u0435\u043d":L>10&&L<20?H+"-\u0442\u0438":1===D?H+"-\u0432\u0438":2===D?H+"-\u0440\u0438":7===D||8===D?H+"-\u043c\u0438":H+"-\u0442\u0438"},week:{dow:1,doy:7}})}(E(5439))},3849:function(Y,G,E){!function(T){"use strict";T.defineLocale("ml",{months:"\u0d1c\u0d28\u0d41\u0d35\u0d30\u0d3f_\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41\u0d35\u0d30\u0d3f_\u0d2e\u0d3e\u0d7c\u0d1a\u0d4d\u0d1a\u0d4d_\u0d0f\u0d2a\u0d4d\u0d30\u0d3f\u0d7d_\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48_\u0d13\u0d17\u0d38\u0d4d\u0d31\u0d4d\u0d31\u0d4d_\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31\u0d02\u0d2c\u0d7c_\u0d12\u0d15\u0d4d\u0d1f\u0d4b\u0d2c\u0d7c_\u0d28\u0d35\u0d02\u0d2c\u0d7c_\u0d21\u0d3f\u0d38\u0d02\u0d2c\u0d7c".split("_"),monthsShort:"\u0d1c\u0d28\u0d41._\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41._\u0d2e\u0d3e\u0d7c._\u0d0f\u0d2a\u0d4d\u0d30\u0d3f._\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48._\u0d13\u0d17._\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31._\u0d12\u0d15\u0d4d\u0d1f\u0d4b._\u0d28\u0d35\u0d02._\u0d21\u0d3f\u0d38\u0d02.".split("_"),monthsParseExact:!0,weekdays:"\u0d1e\u0d3e\u0d2f\u0d31\u0d3e\u0d34\u0d4d\u0d1a_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d33\u0d3e\u0d34\u0d4d\u0d1a_\u0d1a\u0d4a\u0d35\u0d4d\u0d35\u0d3e\u0d34\u0d4d\u0d1a_\u0d2c\u0d41\u0d27\u0d28\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a_\u0d36\u0d28\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a".split("_"),weekdaysShort:"\u0d1e\u0d3e\u0d2f\u0d7c_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d7e_\u0d1a\u0d4a\u0d35\u0d4d\u0d35_\u0d2c\u0d41\u0d27\u0d7b_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d02_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f_\u0d36\u0d28\u0d3f".split("_"),weekdaysMin:"\u0d1e\u0d3e_\u0d24\u0d3f_\u0d1a\u0d4a_\u0d2c\u0d41_\u0d35\u0d4d\u0d2f\u0d3e_\u0d35\u0d46_\u0d36".split("_"),longDateFormat:{LT:"A h:mm -\u0d28\u0d41",LTS:"A h:mm:ss -\u0d28\u0d41",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -\u0d28\u0d41",LLLL:"dddd, D MMMM YYYY, A h:mm -\u0d28\u0d41"},calendar:{sameDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d4d] LT",nextDay:"[\u0d28\u0d3e\u0d33\u0d46] LT",nextWeek:"dddd, LT",lastDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d32\u0d46] LT",lastWeek:"[\u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d",past:"%s \u0d2e\u0d41\u0d7b\u0d2a\u0d4d",s:"\u0d05\u0d7d\u0d2a \u0d28\u0d3f\u0d2e\u0d3f\u0d37\u0d19\u0d4d\u0d19\u0d7e",ss:"%d \u0d38\u0d46\u0d15\u0d4d\u0d15\u0d7b\u0d21\u0d4d",m:"\u0d12\u0d30\u0d41 \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",mm:"%d \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",h:"\u0d12\u0d30\u0d41 \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",hh:"%d \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",d:"\u0d12\u0d30\u0d41 \u0d26\u0d3f\u0d35\u0d38\u0d02",dd:"%d \u0d26\u0d3f\u0d35\u0d38\u0d02",M:"\u0d12\u0d30\u0d41 \u0d2e\u0d3e\u0d38\u0d02",MM:"%d \u0d2e\u0d3e\u0d38\u0d02",y:"\u0d12\u0d30\u0d41 \u0d35\u0d7c\u0d37\u0d02",yy:"%d \u0d35\u0d7c\u0d37\u0d02"},meridiemParse:/\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f|\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46|\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d|\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02|\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f/i,meridiemHour:function(H,D){return 12===H&&(H=0),"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"===D&&H>=4||"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d"===D||"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02"===D?H+12:H},meridiem:function(H,D,L){return H<4?"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f":H<12?"\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46":H<17?"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d":H<20?"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02":"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"}})}(E(5439))},1977:function(Y,G,E){!function(T){"use strict";function n(D,L,O,B){switch(O){case"s":return L?"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434":"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d";case"ss":return D+(L?" \u0441\u0435\u043a\u0443\u043d\u0434":" \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d");case"m":case"mm":return D+(L?" \u043c\u0438\u043d\u0443\u0442":" \u043c\u0438\u043d\u0443\u0442\u044b\u043d");case"h":case"hh":return D+(L?" \u0446\u0430\u0433":" \u0446\u0430\u0433\u0438\u0439\u043d");case"d":case"dd":return D+(L?" \u04e9\u0434\u04e9\u0440":" \u04e9\u0434\u0440\u0438\u0439\u043d");case"M":case"MM":return D+(L?" \u0441\u0430\u0440":" \u0441\u0430\u0440\u044b\u043d");case"y":case"yy":return D+(L?" \u0436\u0438\u043b":" \u0436\u0438\u043b\u0438\u0439\u043d");default:return D}}T.defineLocale("mn",{months:"\u041d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0425\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0413\u0443\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u04e9\u0440\u04e9\u0432\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0422\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0417\u0443\u0440\u0433\u0430\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u043e\u043b\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u041d\u0430\u0439\u043c\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0415\u0441\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u043d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u0445\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440".split("_"),monthsShort:"1 \u0441\u0430\u0440_2 \u0441\u0430\u0440_3 \u0441\u0430\u0440_4 \u0441\u0430\u0440_5 \u0441\u0430\u0440_6 \u0441\u0430\u0440_7 \u0441\u0430\u0440_8 \u0441\u0430\u0440_9 \u0441\u0430\u0440_10 \u0441\u0430\u0440_11 \u0441\u0430\u0440_12 \u0441\u0430\u0440".split("_"),monthsParseExact:!0,weekdays:"\u041d\u044f\u043c_\u0414\u0430\u0432\u0430\u0430_\u041c\u044f\u0433\u043c\u0430\u0440_\u041b\u0445\u0430\u0433\u0432\u0430_\u041f\u04af\u0440\u044d\u0432_\u0411\u0430\u0430\u0441\u0430\u043d_\u0411\u044f\u043c\u0431\u0430".split("_"),weekdaysShort:"\u041d\u044f\u043c_\u0414\u0430\u0432_\u041c\u044f\u0433_\u041b\u0445\u0430_\u041f\u04af\u0440_\u0411\u0430\u0430_\u0411\u044f\u043c".split("_"),weekdaysMin:"\u041d\u044f_\u0414\u0430_\u041c\u044f_\u041b\u0445_\u041f\u04af_\u0411\u0430_\u0411\u044f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D",LLL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm",LLLL:"dddd, YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm"},meridiemParse:/\u04ae\u04e8|\u04ae\u0425/i,isPM:function(D){return"\u04ae\u0425"===D},meridiem:function(D,L,O){return D<12?"\u04ae\u04e8":"\u04ae\u0425"},calendar:{sameDay:"[\u04e8\u043d\u04e9\u04e9\u0434\u04e9\u0440] LT",nextDay:"[\u041c\u0430\u0440\u0433\u0430\u0430\u0448] LT",nextWeek:"[\u0418\u0440\u044d\u0445] dddd LT",lastDay:"[\u04e8\u0447\u0438\u0433\u0434\u04e9\u0440] LT",lastWeek:"[\u04e8\u043d\u0433\u04e9\u0440\u0441\u04e9\u043d] dddd LT",sameElse:"L"},relativeTime:{future:"%s \u0434\u0430\u0440\u0430\u0430",past:"%s \u04e9\u043c\u043d\u04e9",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2} \u04e9\u0434\u04e9\u0440/,ordinal:function(D,L){switch(L){case"d":case"D":case"DDD":return D+" \u04e9\u0434\u04e9\u0440";default:return D}}})}(E(5439))},6184:function(Y,G,E){!function(T){"use strict";var n={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},H={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};function D(O,B,U,W){var ee="";if(B)switch(U){case"s":ee="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926";break;case"ss":ee="%d \u0938\u0947\u0915\u0902\u0926";break;case"m":ee="\u090f\u0915 \u092e\u093f\u0928\u093f\u091f";break;case"mm":ee="%d \u092e\u093f\u0928\u093f\u091f\u0947";break;case"h":ee="\u090f\u0915 \u0924\u093e\u0938";break;case"hh":ee="%d \u0924\u093e\u0938";break;case"d":ee="\u090f\u0915 \u0926\u093f\u0935\u0938";break;case"dd":ee="%d \u0926\u093f\u0935\u0938";break;case"M":ee="\u090f\u0915 \u092e\u0939\u093f\u0928\u093e";break;case"MM":ee="%d \u092e\u0939\u093f\u0928\u0947";break;case"y":ee="\u090f\u0915 \u0935\u0930\u094d\u0937";break;case"yy":ee="%d \u0935\u0930\u094d\u0937\u0947"}else switch(U){case"s":ee="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"ss":ee="%d \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"m":ee="\u090f\u0915\u093e \u092e\u093f\u0928\u093f\u091f\u093e";break;case"mm":ee="%d \u092e\u093f\u0928\u093f\u091f\u093e\u0902";break;case"h":ee="\u090f\u0915\u093e \u0924\u093e\u0938\u093e";break;case"hh":ee="%d \u0924\u093e\u0938\u093e\u0902";break;case"d":ee="\u090f\u0915\u093e \u0926\u093f\u0935\u0938\u093e";break;case"dd":ee="%d \u0926\u093f\u0935\u0938\u093e\u0902";break;case"M":ee="\u090f\u0915\u093e \u092e\u0939\u093f\u0928\u094d\u092f\u093e";break;case"MM":ee="%d \u092e\u0939\u093f\u0928\u094d\u092f\u093e\u0902";break;case"y":ee="\u090f\u0915\u093e \u0935\u0930\u094d\u0937\u093e";break;case"yy":ee="%d \u0935\u0930\u094d\u0937\u093e\u0902"}return ee.replace(/%d/i,O)}T.defineLocale("mr",{months:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u093f\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u0948_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a._\u090f\u092a\u094d\u0930\u093f._\u092e\u0947._\u091c\u0942\u0928._\u091c\u0941\u0932\u0948._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0933\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0933_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u0935\u093e\u091c\u0924\u093e",LTS:"A h:mm:ss \u0935\u093e\u091c\u0924\u093e",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e",LLLL:"dddd, D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0909\u0926\u094d\u092f\u093e] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092e\u093e\u0917\u0940\u0932] dddd, LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u0927\u094d\u092f\u0947",past:"%s\u092a\u0942\u0930\u094d\u0935\u0940",s:D,ss:D,m:D,mm:D,h:D,hh:D,d:D,dd:D,M:D,MM:D,y:D,yy:D},preparse:function(O){return O.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(B){return H[B]})},postformat:function(O){return O.replace(/\d/g,function(B){return n[B]})},meridiemParse:/\u092a\u0939\u093e\u091f\u0947|\u0938\u0915\u093e\u0933\u0940|\u0926\u0941\u092a\u093e\u0930\u0940|\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940|\u0930\u093e\u0924\u094d\u0930\u0940/,meridiemHour:function(O,B){return 12===O&&(O=0),"\u092a\u0939\u093e\u091f\u0947"===B||"\u0938\u0915\u093e\u0933\u0940"===B?O:"\u0926\u0941\u092a\u093e\u0930\u0940"===B||"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940"===B||"\u0930\u093e\u0924\u094d\u0930\u0940"===B?O>=12?O:O+12:void 0},meridiem:function(O,B,U){return O>=0&&O<6?"\u092a\u0939\u093e\u091f\u0947":O<12?"\u0938\u0915\u093e\u0933\u0940":O<17?"\u0926\u0941\u092a\u093e\u0930\u0940":O<20?"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940":"\u0930\u093e\u0924\u094d\u0930\u0940"},week:{dow:0,doy:6}})}(E(5439))},4524:function(Y,G,E){!function(T){"use strict";T.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(H,D){return 12===H&&(H=0),"pagi"===D?H:"tengahari"===D?H>=11?H:H+12:"petang"===D||"malam"===D?H+12:void 0},meridiem:function(H,D,L){return H<11?"pagi":H<15?"tengahari":H<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(E(5439))},485:function(Y,G,E){!function(T){"use strict";T.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(H,D){return 12===H&&(H=0),"pagi"===D?H:"tengahari"===D?H>=11?H:H+12:"petang"===D||"malam"===D?H+12:void 0},meridiem:function(H,D,L){return H<11?"pagi":H<15?"tengahari":H<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(E(5439))},6681:function(Y,G,E){!function(T){"use strict";T.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_\u0120unju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Di\u010bembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_\u0120un_Lul_Aww_Set_Ott_Nov_Di\u010b".split("_"),weekdays:"Il-\u0126add_It-Tnejn_It-Tlieta_L-Erbg\u0127a_Il-\u0126amis_Il-\u0120img\u0127a_Is-Sibt".split("_"),weekdaysShort:"\u0126ad_Tne_Tli_Erb_\u0126am_\u0120im_Sib".split("_"),weekdaysMin:"\u0126a_Tn_Tl_Er_\u0126a_\u0120i_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[G\u0127ada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-biera\u0127 fil-]LT",lastWeek:"dddd [li g\u0127adda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f\u2019 %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"sieg\u0127a",hh:"%d sieg\u0127at",d:"\u0121urnata",dd:"%d \u0121ranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(E(5439))},2024:function(Y,G,E){!function(T){"use strict";var n={1:"\u1041",2:"\u1042",3:"\u1043",4:"\u1044",5:"\u1045",6:"\u1046",7:"\u1047",8:"\u1048",9:"\u1049",0:"\u1040"},H={"\u1041":"1","\u1042":"2","\u1043":"3","\u1044":"4","\u1045":"5","\u1046":"6","\u1047":"7","\u1048":"8","\u1049":"9","\u1040":"0"};T.defineLocale("my",{months:"\u1007\u1014\u103a\u1014\u101d\u102b\u101b\u102e_\u1016\u1031\u1016\u1031\u102c\u103a\u101d\u102b\u101b\u102e_\u1019\u1010\u103a_\u1027\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u1007\u1030\u101c\u102d\u102f\u1004\u103a_\u101e\u103c\u1002\u102f\u1010\u103a_\u1005\u1000\u103a\u1010\u1004\u103a\u1018\u102c_\u1021\u1031\u102c\u1000\u103a\u1010\u102d\u102f\u1018\u102c_\u1014\u102d\u102f\u101d\u1004\u103a\u1018\u102c_\u1012\u102e\u1007\u1004\u103a\u1018\u102c".split("_"),monthsShort:"\u1007\u1014\u103a_\u1016\u1031_\u1019\u1010\u103a_\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u101c\u102d\u102f\u1004\u103a_\u101e\u103c_\u1005\u1000\u103a_\u1021\u1031\u102c\u1000\u103a_\u1014\u102d\u102f_\u1012\u102e".split("_"),weekdays:"\u1010\u1014\u1004\u103a\u1039\u1002\u1014\u103d\u1031_\u1010\u1014\u1004\u103a\u1039\u101c\u102c_\u1021\u1004\u103a\u1039\u1002\u102b_\u1017\u102f\u1012\u1039\u1013\u101f\u1030\u1038_\u1000\u103c\u102c\u101e\u1015\u1010\u1031\u1038_\u101e\u1031\u102c\u1000\u103c\u102c_\u1005\u1014\u1031".split("_"),weekdaysShort:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),weekdaysMin:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u101a\u1014\u1031.] LT [\u1019\u103e\u102c]",nextDay:"[\u1019\u1014\u1000\u103a\u1016\u103c\u1014\u103a] LT [\u1019\u103e\u102c]",nextWeek:"dddd LT [\u1019\u103e\u102c]",lastDay:"[\u1019\u1014\u1031.\u1000] LT [\u1019\u103e\u102c]",lastWeek:"[\u1015\u103c\u102e\u1038\u1001\u1032\u1037\u101e\u1031\u102c] dddd LT [\u1019\u103e\u102c]",sameElse:"L"},relativeTime:{future:"\u101c\u102c\u1019\u100a\u103a\u1037 %s \u1019\u103e\u102c",past:"\u101c\u103d\u1014\u103a\u1001\u1032\u1037\u101e\u1031\u102c %s \u1000",s:"\u1005\u1000\u1039\u1000\u1014\u103a.\u1021\u1014\u100a\u103a\u1038\u1004\u101a\u103a",ss:"%d \u1005\u1000\u1039\u1000\u1014\u1037\u103a",m:"\u1010\u1005\u103a\u1019\u102d\u1014\u1005\u103a",mm:"%d \u1019\u102d\u1014\u1005\u103a",h:"\u1010\u1005\u103a\u1014\u102c\u101b\u102e",hh:"%d \u1014\u102c\u101b\u102e",d:"\u1010\u1005\u103a\u101b\u1000\u103a",dd:"%d \u101b\u1000\u103a",M:"\u1010\u1005\u103a\u101c",MM:"%d \u101c",y:"\u1010\u1005\u103a\u1014\u103e\u1005\u103a",yy:"%d \u1014\u103e\u1005\u103a"},preparse:function(L){return L.replace(/[\u1041\u1042\u1043\u1044\u1045\u1046\u1047\u1048\u1049\u1040]/g,function(O){return H[O]})},postformat:function(L){return L.replace(/\d/g,function(O){return n[O]})},week:{dow:1,doy:4}})}(E(5439))},2688:function(Y,G,E){!function(T){"use strict";T.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8._ma._ti._on._to._fr._l\xf8.".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",w:"en uke",ww:"%d uker",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},8914:function(Y,G,E){!function(T){"use strict";var n={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},H={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};T.defineLocale("ne",{months:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f\u0932_\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0937\u094d\u091f_\u0938\u0947\u092a\u094d\u091f\u0947\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u092d\u0947\u092e\u094d\u092c\u0930_\u0921\u093f\u0938\u0947\u092e\u094d\u092c\u0930".split("_"),monthsShort:"\u091c\u0928._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f._\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908._\u0905\u0917._\u0938\u0947\u092a\u094d\u091f._\u0905\u0915\u094d\u091f\u094b._\u0928\u094b\u092d\u0947._\u0921\u093f\u0938\u0947.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u0907\u0924\u092c\u093e\u0930_\u0938\u094b\u092e\u092c\u093e\u0930_\u092e\u0919\u094d\u0917\u0932\u092c\u093e\u0930_\u092c\u0941\u0927\u092c\u093e\u0930_\u092c\u093f\u0939\u093f\u092c\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u092c\u093e\u0930_\u0936\u0928\u093f\u092c\u093e\u0930".split("_"),weekdaysShort:"\u0906\u0907\u0924._\u0938\u094b\u092e._\u092e\u0919\u094d\u0917\u0932._\u092c\u0941\u0927._\u092c\u093f\u0939\u093f._\u0936\u0941\u0915\u094d\u0930._\u0936\u0928\u093f.".split("_"),weekdaysMin:"\u0906._\u0938\u094b._\u092e\u0902._\u092c\u0941._\u092c\u093f._\u0936\u0941._\u0936.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A\u0915\u094b h:mm \u092c\u091c\u0947",LTS:"A\u0915\u094b h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947"},preparse:function(L){return L.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(O){return H[O]})},postformat:function(L){return L.replace(/\d/g,function(O){return n[O]})},meridiemParse:/\u0930\u093e\u0924\u093f|\u092c\u093f\u0939\u093e\u0928|\u0926\u093f\u0909\u0901\u0938\u094b|\u0938\u093e\u0901\u091d/,meridiemHour:function(L,O){return 12===L&&(L=0),"\u0930\u093e\u0924\u093f"===O?L<4?L:L+12:"\u092c\u093f\u0939\u093e\u0928"===O?L:"\u0926\u093f\u0909\u0901\u0938\u094b"===O?L>=10?L:L+12:"\u0938\u093e\u0901\u091d"===O?L+12:void 0},meridiem:function(L,O,B){return L<3?"\u0930\u093e\u0924\u093f":L<12?"\u092c\u093f\u0939\u093e\u0928":L<16?"\u0926\u093f\u0909\u0901\u0938\u094b":L<20?"\u0938\u093e\u0901\u091d":"\u0930\u093e\u0924\u093f"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u092d\u094b\u0932\u093f] LT",nextWeek:"[\u0906\u0909\u0901\u0926\u094b] dddd[,] LT",lastDay:"[\u0939\u093f\u091c\u094b] LT",lastWeek:"[\u0917\u090f\u0915\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u093e",past:"%s \u0905\u0917\u093e\u0921\u093f",s:"\u0915\u0947\u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0947\u0923\u094d\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u0947\u091f",mm:"%d \u092e\u093f\u0928\u0947\u091f",h:"\u090f\u0915 \u0918\u0923\u094d\u091f\u093e",hh:"%d \u0918\u0923\u094d\u091f\u093e",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u093f\u0928\u093e",MM:"%d \u092e\u0939\u093f\u0928\u093e",y:"\u090f\u0915 \u092c\u0930\u094d\u0937",yy:"%d \u092c\u0930\u094d\u0937"},week:{dow:0,doy:6}})}(E(5439))},2272:function(Y,G,E){!function(T){"use strict";var n="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),H="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),D=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],L=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;T.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(B,U){return B?/-MMM-/.test(U)?H[B.month()]:n[B.month()]:n},monthsRegex:L,monthsShortRegex:L,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:D,longMonthsParse:D,shortMonthsParse:D,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(B){return B+(1===B||8===B||B>=20?"ste":"de")},week:{dow:1,doy:4}})}(E(5439))},1758:function(Y,G,E){!function(T){"use strict";var n="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),H="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),D=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],L=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;T.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(B,U){return B?/-MMM-/.test(U)?H[B.month()]:n[B.month()]:n},monthsRegex:L,monthsShortRegex:L,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:D,longMonthsParse:D,shortMonthsParse:D,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",w:"\xe9\xe9n week",ww:"%d weken",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(B){return B+(1===B||8===B||B>=20?"ste":"de")},week:{dow:1,doy:4}})}(E(5439))},1510:function(Y,G,E){!function(T){"use strict";T.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_m\xe5ndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._m\xe5._ty._on._to._fr._lau.".split("_"),weekdaysMin:"su_m\xe5_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I g\xe5r klokka] LT",lastWeek:"[F\xf8reg\xe5ande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",w:"ei veke",ww:"%d veker",M:"ein m\xe5nad",MM:"%d m\xe5nader",y:"eit \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},2797:function(Y,G,E){!function(T){"use strict";T.defineLocale("oc-lnc",{months:{standalone:"geni\xe8r_febri\xe8r_mar\xe7_abril_mai_junh_julhet_agost_setembre_oct\xf2bre_novembre_decembre".split("_"),format:"de geni\xe8r_de febri\xe8r_de mar\xe7_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'oct\xf2bre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dim\xe8cres_dij\xf2us_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[u\xe8i a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[i\xe8r a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(H,D){var L=1===H?"r":2===H?"n":3===H?"r":4===H?"t":"\xe8";return("w"===D||"W"===D)&&(L="a"),H+L},week:{dow:1,doy:4}})}(E(5439))},7944:function(Y,G,E){!function(T){"use strict";var n={1:"\u0a67",2:"\u0a68",3:"\u0a69",4:"\u0a6a",5:"\u0a6b",6:"\u0a6c",7:"\u0a6d",8:"\u0a6e",9:"\u0a6f",0:"\u0a66"},H={"\u0a67":"1","\u0a68":"2","\u0a69":"3","\u0a6a":"4","\u0a6b":"5","\u0a6c":"6","\u0a6d":"7","\u0a6e":"8","\u0a6f":"9","\u0a66":"0"};T.defineLocale("pa-in",{months:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),monthsShort:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),weekdays:"\u0a10\u0a24\u0a35\u0a3e\u0a30_\u0a38\u0a4b\u0a2e\u0a35\u0a3e\u0a30_\u0a2e\u0a70\u0a17\u0a32\u0a35\u0a3e\u0a30_\u0a2c\u0a41\u0a27\u0a35\u0a3e\u0a30_\u0a35\u0a40\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a41\u0a71\u0a15\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a28\u0a40\u0a1a\u0a30\u0a35\u0a3e\u0a30".split("_"),weekdaysShort:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),weekdaysMin:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),longDateFormat:{LT:"A h:mm \u0a35\u0a1c\u0a47",LTS:"A h:mm:ss \u0a35\u0a1c\u0a47",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47",LLLL:"dddd, D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47"},calendar:{sameDay:"[\u0a05\u0a1c] LT",nextDay:"[\u0a15\u0a32] LT",nextWeek:"[\u0a05\u0a17\u0a32\u0a3e] dddd, LT",lastDay:"[\u0a15\u0a32] LT",lastWeek:"[\u0a2a\u0a3f\u0a1b\u0a32\u0a47] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0a35\u0a3f\u0a71\u0a1a",past:"%s \u0a2a\u0a3f\u0a1b\u0a32\u0a47",s:"\u0a15\u0a41\u0a1d \u0a38\u0a15\u0a3f\u0a70\u0a1f",ss:"%d \u0a38\u0a15\u0a3f\u0a70\u0a1f",m:"\u0a07\u0a15 \u0a2e\u0a3f\u0a70\u0a1f",mm:"%d \u0a2e\u0a3f\u0a70\u0a1f",h:"\u0a07\u0a71\u0a15 \u0a18\u0a70\u0a1f\u0a3e",hh:"%d \u0a18\u0a70\u0a1f\u0a47",d:"\u0a07\u0a71\u0a15 \u0a26\u0a3f\u0a28",dd:"%d \u0a26\u0a3f\u0a28",M:"\u0a07\u0a71\u0a15 \u0a2e\u0a39\u0a40\u0a28\u0a3e",MM:"%d \u0a2e\u0a39\u0a40\u0a28\u0a47",y:"\u0a07\u0a71\u0a15 \u0a38\u0a3e\u0a32",yy:"%d \u0a38\u0a3e\u0a32"},preparse:function(L){return L.replace(/[\u0a67\u0a68\u0a69\u0a6a\u0a6b\u0a6c\u0a6d\u0a6e\u0a6f\u0a66]/g,function(O){return H[O]})},postformat:function(L){return L.replace(/\d/g,function(O){return n[O]})},meridiemParse:/\u0a30\u0a3e\u0a24|\u0a38\u0a35\u0a47\u0a30|\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30|\u0a38\u0a3c\u0a3e\u0a2e/,meridiemHour:function(L,O){return 12===L&&(L=0),"\u0a30\u0a3e\u0a24"===O?L<4?L:L+12:"\u0a38\u0a35\u0a47\u0a30"===O?L:"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30"===O?L>=10?L:L+12:"\u0a38\u0a3c\u0a3e\u0a2e"===O?L+12:void 0},meridiem:function(L,O,B){return L<4?"\u0a30\u0a3e\u0a24":L<10?"\u0a38\u0a35\u0a47\u0a30":L<17?"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30":L<20?"\u0a38\u0a3c\u0a3e\u0a2e":"\u0a30\u0a3e\u0a24"},week:{dow:0,doy:6}})}(E(5439))},1605:function(Y,G,E){!function(T){"use strict";var n="stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017adziernik_listopad_grudzie\u0144".split("_"),H="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015bnia_pa\u017adziernika_listopada_grudnia".split("_"),D=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^pa\u017a/i,/^lis/i,/^gru/i];function L(U){return U%10<5&&U%10>1&&~~(U/10)%10!=1}function O(U,W,ee){var te=U+" ";switch(ee){case"ss":return te+(L(U)?"sekundy":"sekund");case"m":return W?"minuta":"minut\u0119";case"mm":return te+(L(U)?"minuty":"minut");case"h":return W?"godzina":"godzin\u0119";case"hh":return te+(L(U)?"godziny":"godzin");case"ww":return te+(L(U)?"tygodnie":"tygodni");case"MM":return te+(L(U)?"miesi\u0105ce":"miesi\u0119cy");case"yy":return te+(L(U)?"lata":"lat")}}T.defineLocale("pl",{months:function(U,W){return U?/D MMMM/.test(W)?H[U.month()]:n[U.month()]:n},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017a_lis_gru".split("_"),monthsParse:D,longMonthsParse:D,shortMonthsParse:D,weekdays:"niedziela_poniedzia\u0142ek_wtorek_\u015broda_czwartek_pi\u0105tek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_\u015br_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_\u015ar_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dzi\u015b o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedziel\u0119 o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W \u015brod\u0119 o] LT";case 6:return"[W sobot\u0119 o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zesz\u0142\u0105 niedziel\u0119 o] LT";case 3:return"[W zesz\u0142\u0105 \u015brod\u0119 o] LT";case 6:return"[W zesz\u0142\u0105 sobot\u0119 o] LT";default:return"[W zesz\u0142y] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:O,m:O,mm:O,h:O,hh:O,d:"1 dzie\u0144",dd:"%d dni",w:"tydzie\u0144",ww:O,M:"miesi\u0105c",MM:O,y:"rok",yy:O},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},3840:function(Y,G,E){!function(T){"use strict";T.defineLocale("pt-br",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_ter\xe7a-feira_quarta-feira_quinta-feira_sexta-feira_s\xe1bado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_s\xe1b".split("_"),weekdaysMin:"do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [\xe0s] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [\xe0s] HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",invalidDate:"Data inv\xe1lida"})}(E(5439))},4225:function(Y,G,E){!function(T){"use strict";T.defineLocale("pt",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Ter\xe7a-feira_Quarta-feira_Quinta-feira_Sexta-feira_S\xe1bado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_S\xe1b".split("_"),weekdaysMin:"Do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",w:"uma semana",ww:"%d semanas",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(E(5439))},5128:function(Y,G,E){!function(T){"use strict";function n(D,L,O){var U=" ";return(D%100>=20||D>=100&&D%100==0)&&(U=" de "),D+U+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"s\u0103pt\u0103m\xe2ni",MM:"luni",yy:"ani"}[O]}T.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminic\u0103_luni_mar\u021bi_miercuri_joi_vineri_s\xe2mb\u0103t\u0103".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_S\xe2m".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_S\xe2".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[m\xe2ine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s \xeen urm\u0103",s:"c\xe2teva secunde",ss:n,m:"un minut",mm:n,h:"o or\u0103",hh:n,d:"o zi",dd:n,w:"o s\u0103pt\u0103m\xe2n\u0103",ww:n,M:"o lun\u0103",MM:n,y:"un an",yy:n},week:{dow:1,doy:7}})}(E(5439))},5127:function(Y,G,E){!function(T){"use strict";function H(O,B,U){return"m"===U?B?"\u043c\u0438\u043d\u0443\u0442\u0430":"\u043c\u0438\u043d\u0443\u0442\u0443":O+" "+function n(O,B){var U=O.split("_");return B%10==1&&B%100!=11?U[0]:B%10>=2&&B%10<=4&&(B%100<10||B%100>=20)?U[1]:U[2]}({ss:B?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:B?"\u043c\u0438\u043d\u0443\u0442\u0430_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442":"\u043c\u0438\u043d\u0443\u0442\u0443_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442",hh:"\u0447\u0430\u0441_\u0447\u0430\u0441\u0430_\u0447\u0430\u0441\u043e\u0432",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u044f_\u0434\u043d\u0435\u0439",ww:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043d\u0435\u0434\u0435\u043b\u0438_\u043d\u0435\u0434\u0435\u043b\u044c",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u0430_\u043c\u0435\u0441\u044f\u0446\u0435\u0432",yy:"\u0433\u043e\u0434_\u0433\u043e\u0434\u0430_\u043b\u0435\u0442"}[U],+O)}var D=[/^\u044f\u043d\u0432/i,/^\u0444\u0435\u0432/i,/^\u043c\u0430\u0440/i,/^\u0430\u043f\u0440/i,/^\u043c\u0430[\u0439\u044f]/i,/^\u0438\u044e\u043d/i,/^\u0438\u044e\u043b/i,/^\u0430\u0432\u0433/i,/^\u0441\u0435\u043d/i,/^\u043e\u043a\u0442/i,/^\u043d\u043e\u044f/i,/^\u0434\u0435\u043a/i];T.defineLocale("ru",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u044f_\u0444\u0435\u0432\u0440\u0430\u043b\u044f_\u043c\u0430\u0440\u0442\u0430_\u0430\u043f\u0440\u0435\u043b\u044f_\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433\u0443\u0441\u0442\u0430_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f_\u043e\u043a\u0442\u044f\u0431\u0440\u044f_\u043d\u043e\u044f\u0431\u0440\u044f_\u0434\u0435\u043a\u0430\u0431\u0440\u044f".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_")},monthsShort:{format:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_"),standalone:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440\u0442_\u0430\u043f\u0440._\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_")},weekdays:{standalone:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0430_\u0441\u0443\u0431\u0431\u043e\u0442\u0430".split("_"),format:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0443_\u0441\u0443\u0431\u0431\u043e\u0442\u0443".split("_"),isFormat:/\[ ?[\u0412\u0432] ?(?:\u043f\u0440\u043e\u0448\u043b\u0443\u044e|\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e|\u044d\u0442\u0443)? ?] ?dddd/},weekdaysShort:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),monthsParse:D,longMonthsParse:D,shortMonthsParse:D,monthsRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsShortRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsStrictRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044f\u044c]|\u0444\u0435\u0432\u0440\u0430\u043b[\u044f\u044c]|\u043c\u0430\u0440\u0442\u0430?|\u0430\u043f\u0440\u0435\u043b[\u044f\u044c]|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044f\u044c]|\u0438\u044e\u043b[\u044f\u044c]|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043e\u043a\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043d\u043e\u044f\u0431\u0440[\u044f\u044c]|\u0434\u0435\u043a\u0430\u0431\u0440[\u044f\u044c])/i,monthsShortStrictRegex:/^(\u044f\u043d\u0432\.|\u0444\u0435\u0432\u0440?\.|\u043c\u0430\u0440[\u0442.]|\u0430\u043f\u0440\.|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044c\u044f.]|\u0438\u044e\u043b[\u044c\u044f.]|\u0430\u0432\u0433\.|\u0441\u0435\u043d\u0442?\.|\u043e\u043a\u0442\.|\u043d\u043e\u044f\u0431?\.|\u0434\u0435\u043a\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., H:mm",LLLL:"dddd, D MMMM YYYY \u0433., H:mm"},calendar:{sameDay:"[\u0421\u0435\u0433\u043e\u0434\u043d\u044f, \u0432] LT",nextDay:"[\u0417\u0430\u0432\u0442\u0440\u0430, \u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430, \u0432] LT",nextWeek:function(O){if(O.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e] dddd, [\u0432] LT"}},lastWeek:function(O){if(O.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u043e\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u044b\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u0443\u044e] dddd, [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0447\u0435\u0440\u0435\u0437 %s",past:"%s \u043d\u0430\u0437\u0430\u0434",s:"\u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434",ss:H,m:H,mm:H,h:"\u0447\u0430\u0441",hh:H,d:"\u0434\u0435\u043d\u044c",dd:H,w:"\u043d\u0435\u0434\u0435\u043b\u044f",ww:H,M:"\u043c\u0435\u0441\u044f\u0446",MM:H,y:"\u0433\u043e\u0434",yy:H},meridiemParse:/\u043d\u043e\u0447\u0438|\u0443\u0442\u0440\u0430|\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430/i,isPM:function(O){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430)$/.test(O)},meridiem:function(O,B,U){return O<4?"\u043d\u043e\u0447\u0438":O<12?"\u0443\u0442\u0440\u0430":O<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0435\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e|\u044f)/,ordinal:function(O,B){switch(B){case"M":case"d":case"DDD":return O+"-\u0439";case"D":return O+"-\u0433\u043e";case"w":case"W":return O+"-\u044f";default:return O}},week:{dow:1,doy:4}})}(E(5439))},2525:function(Y,G,E){!function(T){"use strict";var n=["\u062c\u0646\u0648\u0631\u064a","\u0641\u064a\u0628\u0631\u0648\u0631\u064a","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u064a\u0644","\u0645\u0626\u064a","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0621\u0650","\u0622\u06af\u0633\u067d","\u0633\u064a\u067e\u067d\u0645\u0628\u0631","\u0622\u06aa\u067d\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u068a\u0633\u0645\u0628\u0631"],H=["\u0622\u0686\u0631","\u0633\u0648\u0645\u0631","\u0627\u06b1\u0627\u0631\u0648","\u0627\u0631\u0628\u0639","\u062e\u0645\u064a\u0633","\u062c\u0645\u0639","\u0687\u0646\u0687\u0631"];T.defineLocale("sd",{months:n,monthsShort:n,weekdays:H,weekdaysShort:H,weekdaysMin:H,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(L){return"\u0634\u0627\u0645"===L},meridiem:function(L,O,B){return L<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0627\u0684] LT",nextDay:"[\u0633\u0680\u0627\u06bb\u064a] LT",nextWeek:"dddd [\u0627\u06b3\u064a\u0646 \u0647\u0641\u062a\u064a \u062a\u064a] LT",lastDay:"[\u06aa\u0627\u0644\u0647\u0647] LT",lastWeek:"[\u06af\u0632\u0631\u064a\u0644 \u0647\u0641\u062a\u064a] dddd [\u062a\u064a] LT",sameElse:"L"},relativeTime:{future:"%s \u067e\u0648\u0621",past:"%s \u0627\u06b3",s:"\u0686\u0646\u062f \u0633\u064a\u06aa\u0646\u068a",ss:"%d \u0633\u064a\u06aa\u0646\u068a",m:"\u0647\u06aa \u0645\u0646\u067d",mm:"%d \u0645\u0646\u067d",h:"\u0647\u06aa \u06aa\u0644\u0627\u06aa",hh:"%d \u06aa\u0644\u0627\u06aa",d:"\u0647\u06aa \u068f\u064a\u0646\u0647\u0646",dd:"%d \u068f\u064a\u0646\u0647\u0646",M:"\u0647\u06aa \u0645\u0647\u064a\u0646\u0648",MM:"%d \u0645\u0647\u064a\u0646\u0627",y:"\u0647\u06aa \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(L){return L.replace(/\u060c/g,",")},postformat:function(L){return L.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(E(5439))},9893:function(Y,G,E){!function(T){"use strict";T.defineLocale("se",{months:"o\u0111\u0111ajagem\xe1nnu_guovvam\xe1nnu_njuk\u010dam\xe1nnu_cuo\u014bom\xe1nnu_miessem\xe1nnu_geassem\xe1nnu_suoidnem\xe1nnu_borgem\xe1nnu_\u010dak\u010dam\xe1nnu_golggotm\xe1nnu_sk\xe1bmam\xe1nnu_juovlam\xe1nnu".split("_"),monthsShort:"o\u0111\u0111j_guov_njuk_cuo_mies_geas_suoi_borg_\u010dak\u010d_golg_sk\xe1b_juov".split("_"),weekdays:"sotnabeaivi_vuoss\xe1rga_ma\u014b\u014beb\xe1rga_gaskavahkku_duorastat_bearjadat_l\xe1vvardat".split("_"),weekdaysShort:"sotn_vuos_ma\u014b_gask_duor_bear_l\xe1v".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s gea\u017ees",past:"ma\u014bit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta m\xe1nnu",MM:"%d m\xe1nut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},3123:function(Y,G,E){!function(T){"use strict";T.defineLocale("si",{months:"\u0da2\u0db1\u0dc0\u0dcf\u0dbb\u0dd2_\u0db4\u0dd9\u0db6\u0dbb\u0dc0\u0dcf\u0dbb\u0dd2_\u0db8\u0dcf\u0dbb\u0dca\u0dad\u0dd4_\u0d85\u0db4\u0dca\u200d\u0dbb\u0dda\u0dbd\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd\u0dc3\u0dca\u0dad\u0dd4_\u0dc3\u0dd0\u0db4\u0dca\u0dad\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0d94\u0d9a\u0dca\u0dad\u0ddd\u0db6\u0dbb\u0dca_\u0db1\u0ddc\u0dc0\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0daf\u0dd9\u0dc3\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca".split("_"),monthsShort:"\u0da2\u0db1_\u0db4\u0dd9\u0db6_\u0db8\u0dcf\u0dbb\u0dca_\u0d85\u0db4\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd_\u0dc3\u0dd0\u0db4\u0dca_\u0d94\u0d9a\u0dca_\u0db1\u0ddc\u0dc0\u0dd0_\u0daf\u0dd9\u0dc3\u0dd0".split("_"),weekdays:"\u0d89\u0dbb\u0dd2\u0daf\u0dcf_\u0dc3\u0db3\u0dd4\u0daf\u0dcf_\u0d85\u0d9f\u0dc4\u0dbb\u0dd4\u0dc0\u0dcf\u0daf\u0dcf_\u0db6\u0daf\u0dcf\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4\u0dc3\u0dca\u0db4\u0dad\u0dd2\u0db1\u0dca\u0daf\u0dcf_\u0dc3\u0dd2\u0d9a\u0dd4\u0dbb\u0dcf\u0daf\u0dcf_\u0dc3\u0dd9\u0db1\u0dc3\u0dd4\u0dbb\u0dcf\u0daf\u0dcf".split("_"),weekdaysShort:"\u0d89\u0dbb\u0dd2_\u0dc3\u0db3\u0dd4_\u0d85\u0d9f_\u0db6\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4_\u0dc3\u0dd2\u0d9a\u0dd4_\u0dc3\u0dd9\u0db1".split("_"),weekdaysMin:"\u0d89_\u0dc3_\u0d85_\u0db6_\u0db6\u0dca\u200d\u0dbb_\u0dc3\u0dd2_\u0dc3\u0dd9".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [\u0dc0\u0dd0\u0db1\u0dd2] dddd, a h:mm:ss"},calendar:{sameDay:"[\u0d85\u0daf] LT[\u0da7]",nextDay:"[\u0dc4\u0dd9\u0da7] LT[\u0da7]",nextWeek:"dddd LT[\u0da7]",lastDay:"[\u0d8a\u0dba\u0dda] LT[\u0da7]",lastWeek:"[\u0db4\u0dc3\u0dd4\u0d9c\u0dd2\u0dba] dddd LT[\u0da7]",sameElse:"L"},relativeTime:{future:"%s\u0d9a\u0dd2\u0db1\u0dca",past:"%s\u0d9a\u0da7 \u0db4\u0dd9\u0dbb",s:"\u0dad\u0dad\u0dca\u0db4\u0dbb \u0d9a\u0dd2\u0dc4\u0dd2\u0db4\u0dba",ss:"\u0dad\u0dad\u0dca\u0db4\u0dbb %d",m:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4\u0dc0",mm:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4 %d",h:"\u0db4\u0dd0\u0dba",hh:"\u0db4\u0dd0\u0dba %d",d:"\u0daf\u0dd2\u0db1\u0dba",dd:"\u0daf\u0dd2\u0db1 %d",M:"\u0db8\u0dcf\u0dc3\u0dba",MM:"\u0db8\u0dcf\u0dc3 %d",y:"\u0dc0\u0dc3\u0dbb",yy:"\u0dc0\u0dc3\u0dbb %d"},dayOfMonthOrdinalParse:/\d{1,2} \u0dc0\u0dd0\u0db1\u0dd2/,ordinal:function(H){return H+" \u0dc0\u0dd0\u0db1\u0dd2"},meridiemParse:/\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4|\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4|\u0db4\u0dd9.\u0dc0|\u0db4.\u0dc0./,isPM:function(H){return"\u0db4.\u0dc0."===H||"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4"===H},meridiem:function(H,D,L){return H>11?L?"\u0db4.\u0dc0.":"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4":L?"\u0db4\u0dd9.\u0dc0.":"\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4"}})}(E(5439))},3027:function(Y,G,E){!function(T){"use strict";var n="janu\xe1r_febru\xe1r_marec_apr\xedl_m\xe1j_j\xfan_j\xfal_august_september_okt\xf3ber_november_december".split("_"),H="jan_feb_mar_apr_m\xe1j_j\xfan_j\xfal_aug_sep_okt_nov_dec".split("_");function D(B){return B>1&&B<5}function L(B,U,W,ee){var te=B+" ";switch(W){case"s":return U||ee?"p\xe1r sek\xfand":"p\xe1r sekundami";case"ss":return U||ee?te+(D(B)?"sekundy":"sek\xfand"):te+"sekundami";case"m":return U?"min\xfata":ee?"min\xfatu":"min\xfatou";case"mm":return U||ee?te+(D(B)?"min\xfaty":"min\xfat"):te+"min\xfatami";case"h":return U?"hodina":ee?"hodinu":"hodinou";case"hh":return U||ee?te+(D(B)?"hodiny":"hod\xedn"):te+"hodinami";case"d":return U||ee?"de\u0148":"d\u0148om";case"dd":return U||ee?te+(D(B)?"dni":"dn\xed"):te+"d\u0148ami";case"M":return U||ee?"mesiac":"mesiacom";case"MM":return U||ee?te+(D(B)?"mesiace":"mesiacov"):te+"mesiacmi";case"y":return U||ee?"rok":"rokom";case"yy":return U||ee?te+(D(B)?"roky":"rokov"):te+"rokmi"}}T.defineLocale("sk",{months:n,monthsShort:H,weekdays:"nede\u013ea_pondelok_utorok_streda_\u0161tvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_\u0161t_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_\u0161t_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nede\u013eu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo \u0161tvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[v\u010dera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minul\xfa nede\u013eu o] LT";case 1:case 2:case 4:case 5:return"[minul\xfd] dddd [o] LT";case 3:return"[minul\xfa stredu o] LT";case 6:return"[minul\xfa sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:L,ss:L,m:L,mm:L,h:L,hh:L,d:L,dd:L,M:L,MM:L,y:L,yy:L},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},8106:function(Y,G,E){!function(T){"use strict";function n(D,L,O,B){var U=D+" ";switch(O){case"s":return L||B?"nekaj sekund":"nekaj sekundami";case"ss":return U+(1===D?L?"sekundo":"sekundi":2===D?L||B?"sekundi":"sekundah":D<5?L||B?"sekunde":"sekundah":"sekund");case"m":return L?"ena minuta":"eno minuto";case"mm":return U+(1===D?L?"minuta":"minuto":2===D?L||B?"minuti":"minutama":D<5?L||B?"minute":"minutami":L||B?"minut":"minutami");case"h":return L?"ena ura":"eno uro";case"hh":return U+(1===D?L?"ura":"uro":2===D?L||B?"uri":"urama":D<5?L||B?"ure":"urami":L||B?"ur":"urami");case"d":return L||B?"en dan":"enim dnem";case"dd":return U+(1===D?L||B?"dan":"dnem":2===D?L||B?"dni":"dnevoma":L||B?"dni":"dnevi");case"M":return L||B?"en mesec":"enim mesecem";case"MM":return U+(1===D?L||B?"mesec":"mesecem":2===D?L||B?"meseca":"mesecema":D<5?L||B?"mesece":"meseci":L||B?"mesecev":"meseci");case"y":return L||B?"eno leto":"enim letom";case"yy":return U+(1===D?L||B?"leto":"letom":2===D?L||B?"leti":"letoma":D<5?L||B?"leta":"leti":L||B?"let":"leti")}}T.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_\u010detrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._\u010det._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_\u010de_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[v\u010deraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prej\u0161njo] [nedeljo] [ob] LT";case 3:return"[prej\u0161njo] [sredo] [ob] LT";case 6:return"[prej\u0161njo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prej\u0161nji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"\u010dez %s",past:"pred %s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(E(5439))},8799:function(Y,G,E){!function(T){"use strict";T.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_N\xebntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_N\xebn_Dhj".split("_"),weekdays:"E Diel_E H\xebn\xeb_E Mart\xeb_E M\xebrkur\xeb_E Enjte_E Premte_E Shtun\xeb".split("_"),weekdaysShort:"Die_H\xebn_Mar_M\xebr_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_M\xeb_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(H){return"M"===H.charAt(0)},meridiem:function(H,D,L){return H<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot n\xeb] LT",nextDay:"[Nes\xebr n\xeb] LT",nextWeek:"dddd [n\xeb] LT",lastDay:"[Dje n\xeb] LT",lastWeek:"dddd [e kaluar n\xeb] LT",sameElse:"L"},relativeTime:{future:"n\xeb %s",past:"%s m\xeb par\xeb",s:"disa sekonda",ss:"%d sekonda",m:"nj\xeb minut\xeb",mm:"%d minuta",h:"nj\xeb or\xeb",hh:"%d or\xeb",d:"nj\xeb dit\xeb",dd:"%d dit\xeb",M:"nj\xeb muaj",MM:"%d muaj",y:"nj\xeb vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},2872:function(Y,G,E){!function(T){"use strict";var n={words:{ss:["\u0441\u0435\u043a\u0443\u043d\u0434\u0430","\u0441\u0435\u043a\u0443\u043d\u0434\u0435","\u0441\u0435\u043a\u0443\u043d\u0434\u0438"],m:["\u0458\u0435\u0434\u0430\u043d \u043c\u0438\u043d\u0443\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u043c\u0438\u043d\u0443\u0442\u0430"],mm:["\u043c\u0438\u043d\u0443\u0442","\u043c\u0438\u043d\u0443\u0442\u0430","\u043c\u0438\u043d\u0443\u0442\u0430"],h:["\u0458\u0435\u0434\u0430\u043d \u0441\u0430\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u0441\u0430\u0442\u0430"],hh:["\u0441\u0430\u0442","\u0441\u0430\u0442\u0430","\u0441\u0430\u0442\u0438"],d:["\u0458\u0435\u0434\u0430\u043d \u0434\u0430\u043d","\u0458\u0435\u0434\u043d\u043e\u0433 \u0434\u0430\u043d\u0430"],dd:["\u0434\u0430\u043d","\u0434\u0430\u043d\u0430","\u0434\u0430\u043d\u0430"],M:["\u0458\u0435\u0434\u0430\u043d \u043c\u0435\u0441\u0435\u0446","\u0458\u0435\u0434\u043d\u043e\u0433 \u043c\u0435\u0441\u0435\u0446\u0430"],MM:["\u043c\u0435\u0441\u0435\u0446","\u043c\u0435\u0441\u0435\u0446\u0430","\u043c\u0435\u0441\u0435\u0446\u0438"],y:["\u0458\u0435\u0434\u043d\u0443 \u0433\u043e\u0434\u0438\u043d\u0443","\u0458\u0435\u0434\u043d\u0435 \u0433\u043e\u0434\u0438\u043d\u0435"],yy:["\u0433\u043e\u0434\u0438\u043d\u0443","\u0433\u043e\u0434\u0438\u043d\u0435","\u0433\u043e\u0434\u0438\u043d\u0430"]},correctGrammaticalCase:function(D,L){return D%10>=1&&D%10<=4&&(D%100<10||D%100>=20)?D%10==1?L[0]:L[1]:L[2]},translate:function(D,L,O,B){var W,U=n.words[O];return 1===O.length?"y"===O&&L?"\u0458\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430":B||L?U[0]:U[1]:(W=n.correctGrammaticalCase(D,U),"yy"===O&&L&&"\u0433\u043e\u0434\u0438\u043d\u0443"===W?D+" \u0433\u043e\u0434\u0438\u043d\u0430":D+" "+W)}};T.defineLocale("sr-cyrl",{months:"\u0458\u0430\u043d\u0443\u0430\u0440_\u0444\u0435\u0431\u0440\u0443\u0430\u0440_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0431\u0430\u0440_\u043e\u043a\u0442\u043e\u0431\u0430\u0440_\u043d\u043e\u0432\u0435\u043c\u0431\u0430\u0440_\u0434\u0435\u0446\u0435\u043c\u0431\u0430\u0440".split("_"),monthsShort:"\u0458\u0430\u043d._\u0444\u0435\u0431._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433._\u0441\u0435\u043f._\u043e\u043a\u0442._\u043d\u043e\u0432._\u0434\u0435\u0446.".split("_"),monthsParseExact:!0,weekdays:"\u043d\u0435\u0434\u0435\u0459\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u0430\u043a_\u0443\u0442\u043e\u0440\u0430\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u0430\u043a_\u043f\u0435\u0442\u0430\u043a_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434._\u043f\u043e\u043d._\u0443\u0442\u043e._\u0441\u0440\u0435._\u0447\u0435\u0442._\u043f\u0435\u0442._\u0441\u0443\u0431.".split("_"),weekdaysMin:"\u043d\u0435_\u043f\u043e_\u0443\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441\u0443".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[\u0434\u0430\u043d\u0430\u0441 \u0443] LT",nextDay:"[\u0441\u0443\u0442\u0440\u0430 \u0443] LT",nextWeek:function(){switch(this.day()){case 0:return"[\u0443] [\u043d\u0435\u0434\u0435\u0459\u0443] [\u0443] LT";case 3:return"[\u0443] [\u0441\u0440\u0435\u0434\u0443] [\u0443] LT";case 6:return"[\u0443] [\u0441\u0443\u0431\u043e\u0442\u0443] [\u0443] LT";case 1:case 2:case 4:case 5:return"[\u0443] dddd [\u0443] LT"}},lastDay:"[\u0458\u0443\u0447\u0435 \u0443] LT",lastWeek:function(){return["[\u043f\u0440\u043e\u0448\u043b\u0435] [\u043d\u0435\u0434\u0435\u0459\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0443\u0442\u043e\u0440\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0440\u0435\u0434\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0447\u0435\u0442\u0432\u0440\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u0435\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0443\u0431\u043e\u0442\u0435] [\u0443] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435 %s",s:"\u043d\u0435\u043a\u043e\u043b\u0438\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:n.translate,m:n.translate,mm:n.translate,h:n.translate,hh:n.translate,d:n.translate,dd:n.translate,M:n.translate,MM:n.translate,y:n.translate,yy:n.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(E(5439))},7949:function(Y,G,E){!function(T){"use strict";var n={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],d:["jedan dan","jednog dana"],dd:["dan","dana","dana"],M:["jedan mesec","jednog meseca"],MM:["mesec","meseca","meseci"],y:["jednu godinu","jedne godine"],yy:["godinu","godine","godina"]},correctGrammaticalCase:function(D,L){return D%10>=1&&D%10<=4&&(D%100<10||D%100>=20)?D%10==1?L[0]:L[1]:L[2]},translate:function(D,L,O,B){var W,U=n.words[O];return 1===O.length?"y"===O&&L?"jedna godina":B||L?U[0]:U[1]:(W=n.correctGrammaticalCase(D,U),"yy"===O&&L&&"godinu"===W?D+" godina":D+" "+W)}};T.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedelje] [u] LT","[pro\u0161log] [ponedeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:n.translate,m:n.translate,mm:n.translate,h:n.translate,hh:n.translate,d:n.translate,dd:n.translate,M:n.translate,MM:n.translate,y:n.translate,yy:n.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(E(5439))},6167:function(Y,G,E){!function(T){"use strict";T.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(H,D,L){return H<11?"ekuseni":H<15?"emini":H<19?"entsambama":"ebusuku"},meridiemHour:function(H,D){return 12===H&&(H=0),"ekuseni"===D?H:"emini"===D?H>=11?H:H+12:"entsambama"===D||"ebusuku"===D?0===H?0:H+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(E(5439))},9713:function(Y,G,E){!function(T){"use strict";T.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf6ndag_m\xe5ndag_tisdag_onsdag_torsdag_fredag_l\xf6rdag".split("_"),weekdaysShort:"s\xf6n_m\xe5n_tis_ons_tor_fre_l\xf6r".split("_"),weekdaysMin:"s\xf6_m\xe5_ti_on_to_fr_l\xf6".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Ig\xe5r] LT",nextWeek:"[P\xe5] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"f\xf6r %s sedan",s:"n\xe5gra sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en m\xe5nad",MM:"%d m\xe5nader",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(H){var D=H%10;return H+(1==~~(H%100/10)?":e":1===D||2===D?":a":":e")},week:{dow:1,doy:4}})}(E(5439))},1982:function(Y,G,E){!function(T){"use strict";T.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"hh:mm A",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(E(5439))},2732:function(Y,G,E){!function(T){"use strict";var n={1:"\u0be7",2:"\u0be8",3:"\u0be9",4:"\u0bea",5:"\u0beb",6:"\u0bec",7:"\u0bed",8:"\u0bee",9:"\u0bef",0:"\u0be6"},H={"\u0be7":"1","\u0be8":"2","\u0be9":"3","\u0bea":"4","\u0beb":"5","\u0bec":"6","\u0bed":"7","\u0bee":"8","\u0bef":"9","\u0be6":"0"};T.defineLocale("ta",{months:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),monthsShort:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),weekdays:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bcd\u0bb1\u0bc1\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0b9f\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0ba9\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8".split("_"),weekdaysShort:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bc1_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0bb3\u0bcd_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0ba9\u0bcd_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf_\u0b9a\u0ba9\u0bbf".split("_"),weekdaysMin:"\u0b9e\u0bbe_\u0ba4\u0bbf_\u0b9a\u0bc6_\u0baa\u0bc1_\u0bb5\u0bbf_\u0bb5\u0bc6_\u0b9a".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[\u0b87\u0ba9\u0bcd\u0bb1\u0bc1] LT",nextDay:"[\u0ba8\u0bbe\u0bb3\u0bc8] LT",nextWeek:"dddd, LT",lastDay:"[\u0ba8\u0bc7\u0bb1\u0bcd\u0bb1\u0bc1] LT",lastWeek:"[\u0b95\u0b9f\u0ba8\u0bcd\u0ba4 \u0bb5\u0bbe\u0bb0\u0bae\u0bcd] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0b87\u0bb2\u0bcd",past:"%s \u0bae\u0bc1\u0ba9\u0bcd",s:"\u0b92\u0bb0\u0bc1 \u0b9a\u0bbf\u0bb2 \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",ss:"%d \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",m:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0bae\u0bcd",mm:"%d \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0b99\u0bcd\u0b95\u0bb3\u0bcd",h:"\u0b92\u0bb0\u0bc1 \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",hh:"%d \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",d:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbe\u0bb3\u0bcd",dd:"%d \u0ba8\u0bbe\u0b9f\u0bcd\u0b95\u0bb3\u0bcd",M:"\u0b92\u0bb0\u0bc1 \u0bae\u0bbe\u0ba4\u0bae\u0bcd",MM:"%d \u0bae\u0bbe\u0ba4\u0b99\u0bcd\u0b95\u0bb3\u0bcd",y:"\u0b92\u0bb0\u0bc1 \u0bb5\u0bb0\u0bc1\u0b9f\u0bae\u0bcd",yy:"%d \u0b86\u0ba3\u0bcd\u0b9f\u0bc1\u0b95\u0bb3\u0bcd"},dayOfMonthOrdinalParse:/\d{1,2}\u0bb5\u0ba4\u0bc1/,ordinal:function(L){return L+"\u0bb5\u0ba4\u0bc1"},preparse:function(L){return L.replace(/[\u0be7\u0be8\u0be9\u0bea\u0beb\u0bec\u0bed\u0bee\u0bef\u0be6]/g,function(O){return H[O]})},postformat:function(L){return L.replace(/\d/g,function(O){return n[O]})},meridiemParse:/\u0baf\u0bbe\u0bae\u0bae\u0bcd|\u0bb5\u0bc8\u0b95\u0bb1\u0bc8|\u0b95\u0bbe\u0bb2\u0bc8|\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd|\u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1|\u0bae\u0bbe\u0bb2\u0bc8/,meridiem:function(L,O,B){return L<2?" \u0baf\u0bbe\u0bae\u0bae\u0bcd":L<6?" \u0bb5\u0bc8\u0b95\u0bb1\u0bc8":L<10?" \u0b95\u0bbe\u0bb2\u0bc8":L<14?" \u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd":L<18?" \u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1":L<22?" \u0bae\u0bbe\u0bb2\u0bc8":" \u0baf\u0bbe\u0bae\u0bae\u0bcd"},meridiemHour:function(L,O){return 12===L&&(L=0),"\u0baf\u0bbe\u0bae\u0bae\u0bcd"===O?L<2?L:L+12:"\u0bb5\u0bc8\u0b95\u0bb1\u0bc8"===O||"\u0b95\u0bbe\u0bb2\u0bc8"===O||"\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd"===O&&L>=10?L:L+12},week:{dow:0,doy:6}})}(E(5439))},3636:function(Y,G,E){!function(T){"use strict";T.defineLocale("te",{months:"\u0c1c\u0c28\u0c35\u0c30\u0c3f_\u0c2b\u0c3f\u0c2c\u0c4d\u0c30\u0c35\u0c30\u0c3f_\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f\u0c32\u0c4d_\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17\u0c38\u0c4d\u0c1f\u0c41_\u0c38\u0c46\u0c2a\u0c4d\u0c1f\u0c46\u0c02\u0c2c\u0c30\u0c4d_\u0c05\u0c15\u0c4d\u0c1f\u0c4b\u0c2c\u0c30\u0c4d_\u0c28\u0c35\u0c02\u0c2c\u0c30\u0c4d_\u0c21\u0c3f\u0c38\u0c46\u0c02\u0c2c\u0c30\u0c4d".split("_"),monthsShort:"\u0c1c\u0c28._\u0c2b\u0c3f\u0c2c\u0c4d\u0c30._\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f._\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17._\u0c38\u0c46\u0c2a\u0c4d._\u0c05\u0c15\u0c4d\u0c1f\u0c4b._\u0c28\u0c35._\u0c21\u0c3f\u0c38\u0c46.".split("_"),monthsParseExact:!0,weekdays:"\u0c06\u0c26\u0c3f\u0c35\u0c3e\u0c30\u0c02_\u0c38\u0c4b\u0c2e\u0c35\u0c3e\u0c30\u0c02_\u0c2e\u0c02\u0c17\u0c33\u0c35\u0c3e\u0c30\u0c02_\u0c2c\u0c41\u0c27\u0c35\u0c3e\u0c30\u0c02_\u0c17\u0c41\u0c30\u0c41\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c41\u0c15\u0c4d\u0c30\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c28\u0c3f\u0c35\u0c3e\u0c30\u0c02".split("_"),weekdaysShort:"\u0c06\u0c26\u0c3f_\u0c38\u0c4b\u0c2e_\u0c2e\u0c02\u0c17\u0c33_\u0c2c\u0c41\u0c27_\u0c17\u0c41\u0c30\u0c41_\u0c36\u0c41\u0c15\u0c4d\u0c30_\u0c36\u0c28\u0c3f".split("_"),weekdaysMin:"\u0c06_\u0c38\u0c4b_\u0c2e\u0c02_\u0c2c\u0c41_\u0c17\u0c41_\u0c36\u0c41_\u0c36".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c28\u0c47\u0c21\u0c41] LT",nextDay:"[\u0c30\u0c47\u0c2a\u0c41] LT",nextWeek:"dddd, LT",lastDay:"[\u0c28\u0c3f\u0c28\u0c4d\u0c28] LT",lastWeek:"[\u0c17\u0c24] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0c32\u0c4b",past:"%s \u0c15\u0c4d\u0c30\u0c3f\u0c24\u0c02",s:"\u0c15\u0c4a\u0c28\u0c4d\u0c28\u0c3f \u0c15\u0c4d\u0c37\u0c23\u0c3e\u0c32\u0c41",ss:"%d \u0c38\u0c46\u0c15\u0c28\u0c4d\u0c32\u0c41",m:"\u0c12\u0c15 \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c02",mm:"%d \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c3e\u0c32\u0c41",h:"\u0c12\u0c15 \u0c17\u0c02\u0c1f",hh:"%d \u0c17\u0c02\u0c1f\u0c32\u0c41",d:"\u0c12\u0c15 \u0c30\u0c4b\u0c1c\u0c41",dd:"%d \u0c30\u0c4b\u0c1c\u0c41\u0c32\u0c41",M:"\u0c12\u0c15 \u0c28\u0c46\u0c32",MM:"%d \u0c28\u0c46\u0c32\u0c32\u0c41",y:"\u0c12\u0c15 \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c02",yy:"%d \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c3e\u0c32\u0c41"},dayOfMonthOrdinalParse:/\d{1,2}\u0c35/,ordinal:"%d\u0c35",meridiemParse:/\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f|\u0c09\u0c26\u0c2f\u0c02|\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02|\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02/,meridiemHour:function(H,D){return 12===H&&(H=0),"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"===D?H<4?H:H+12:"\u0c09\u0c26\u0c2f\u0c02"===D?H:"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02"===D?H>=10?H:H+12:"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02"===D?H+12:void 0},meridiem:function(H,D,L){return H<4?"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f":H<10?"\u0c09\u0c26\u0c2f\u0c02":H<17?"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02":H<20?"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02":"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"},week:{dow:0,doy:6}})}(E(5439))},2115:function(Y,G,E){!function(T){"use strict";T.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Ju\xf1u_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"segundu balun",ss:"segundu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(H){var D=H%10;return H+(1==~~(H%100/10)?"th":1===D?"st":2===D?"nd":3===D?"rd":"th")},week:{dow:1,doy:4}})}(E(5439))},9801:function(Y,G,E){!function(T){"use strict";var n={0:"-\u0443\u043c",1:"-\u0443\u043c",2:"-\u044e\u043c",3:"-\u044e\u043c",4:"-\u0443\u043c",5:"-\u0443\u043c",6:"-\u0443\u043c",7:"-\u0443\u043c",8:"-\u0443\u043c",9:"-\u0443\u043c",10:"-\u0443\u043c",12:"-\u0443\u043c",13:"-\u0443\u043c",20:"-\u0443\u043c",30:"-\u044e\u043c",40:"-\u0443\u043c",50:"-\u0443\u043c",60:"-\u0443\u043c",70:"-\u0443\u043c",80:"-\u0443\u043c",90:"-\u0443\u043c",100:"-\u0443\u043c"};T.defineLocale("tg",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0430\u043b\u0438_\u043c\u0430\u0440\u0442\u0438_\u0430\u043f\u0440\u0435\u043b\u0438_\u043c\u0430\u0439\u0438_\u0438\u044e\u043d\u0438_\u0438\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442\u0438_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u0438_\u043e\u043a\u0442\u044f\u0431\u0440\u0438_\u043d\u043e\u044f\u0431\u0440\u0438_\u0434\u0435\u043a\u0430\u0431\u0440\u0438".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_")},monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u044f\u043a\u0448\u0430\u043d\u0431\u0435_\u0434\u0443\u0448\u0430\u043d\u0431\u0435_\u0441\u0435\u0448\u0430\u043d\u0431\u0435_\u0447\u043e\u0440\u0448\u0430\u043d\u0431\u0435_\u043f\u0430\u043d\u04b7\u0448\u0430\u043d\u0431\u0435_\u04b7\u0443\u043c\u044a\u0430_\u0448\u0430\u043d\u0431\u0435".split("_"),weekdaysShort:"\u044f\u0448\u0431_\u0434\u0448\u0431_\u0441\u0448\u0431_\u0447\u0448\u0431_\u043f\u0448\u0431_\u04b7\u0443\u043c_\u0448\u043d\u0431".split("_"),weekdaysMin:"\u044f\u0448_\u0434\u0448_\u0441\u0448_\u0447\u0448_\u043f\u0448_\u04b7\u043c_\u0448\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0418\u043c\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextDay:"[\u0424\u0430\u0440\u0434\u043e \u0441\u043e\u0430\u0442\u0438] LT",lastDay:"[\u0414\u0438\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u043e\u044f\u043d\u0434\u0430 \u0441\u043e\u0430\u0442\u0438] LT",lastWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u0433\u0443\u0437\u0430\u0448\u0442\u0430 \u0441\u043e\u0430\u0442\u0438] LT",sameElse:"L"},relativeTime:{future:"\u0431\u0430\u044a\u0434\u0438 %s",past:"%s \u043f\u0435\u0448",s:"\u044f\u043a\u0447\u0430\u043d\u0434 \u0441\u043e\u043d\u0438\u044f",m:"\u044f\u043a \u0434\u0430\u049b\u0438\u049b\u0430",mm:"%d \u0434\u0430\u049b\u0438\u049b\u0430",h:"\u044f\u043a \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u044f\u043a \u0440\u04ef\u0437",dd:"%d \u0440\u04ef\u0437",M:"\u044f\u043a \u043c\u043e\u04b3",MM:"%d \u043c\u043e\u04b3",y:"\u044f\u043a \u0441\u043e\u043b",yy:"%d \u0441\u043e\u043b"},meridiemParse:/\u0448\u0430\u0431|\u0441\u0443\u0431\u04b3|\u0440\u04ef\u0437|\u0431\u0435\u0433\u043e\u04b3/,meridiemHour:function(D,L){return 12===D&&(D=0),"\u0448\u0430\u0431"===L?D<4?D:D+12:"\u0441\u0443\u0431\u04b3"===L?D:"\u0440\u04ef\u0437"===L?D>=11?D:D+12:"\u0431\u0435\u0433\u043e\u04b3"===L?D+12:void 0},meridiem:function(D,L,O){return D<4?"\u0448\u0430\u0431":D<11?"\u0441\u0443\u0431\u04b3":D<16?"\u0440\u04ef\u0437":D<19?"\u0431\u0435\u0433\u043e\u04b3":"\u0448\u0430\u0431"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0443\u043c|\u044e\u043c)/,ordinal:function(D){return D+(n[D]||n[D%10]||n[D>=100?100:null])},week:{dow:1,doy:7}})}(E(5439))},2868:function(Y,G,E){!function(T){"use strict";T.defineLocale("th",{months:"\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21_\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c_\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21_\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19_\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21_\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19_\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21_\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21_\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19_\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21_\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19_\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21".split("_"),monthsShort:"\u0e21.\u0e04._\u0e01.\u0e1e._\u0e21\u0e35.\u0e04._\u0e40\u0e21.\u0e22._\u0e1e.\u0e04._\u0e21\u0e34.\u0e22._\u0e01.\u0e04._\u0e2a.\u0e04._\u0e01.\u0e22._\u0e15.\u0e04._\u0e1e.\u0e22._\u0e18.\u0e04.".split("_"),monthsParseExact:!0,weekdays:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysShort:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysMin:"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm",LLLL:"\u0e27\u0e31\u0e19dddd\u0e17\u0e35\u0e48 D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm"},meridiemParse:/\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07|\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07/,isPM:function(H){return"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"===H},meridiem:function(H,D,L){return H<12?"\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07":"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"},calendar:{sameDay:"[\u0e27\u0e31\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextDay:"[\u0e1e\u0e23\u0e38\u0e48\u0e07\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextWeek:"dddd[\u0e2b\u0e19\u0e49\u0e32 \u0e40\u0e27\u0e25\u0e32] LT",lastDay:"[\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e27\u0e32\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",lastWeek:"[\u0e27\u0e31\u0e19]dddd[\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27 \u0e40\u0e27\u0e25\u0e32] LT",sameElse:"L"},relativeTime:{future:"\u0e2d\u0e35\u0e01 %s",past:"%s\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27",s:"\u0e44\u0e21\u0e48\u0e01\u0e35\u0e48\u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",ss:"%d \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",m:"1 \u0e19\u0e32\u0e17\u0e35",mm:"%d \u0e19\u0e32\u0e17\u0e35",h:"1 \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",hh:"%d \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",d:"1 \u0e27\u0e31\u0e19",dd:"%d \u0e27\u0e31\u0e19",w:"1 \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",ww:"%d \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",M:"1 \u0e40\u0e14\u0e37\u0e2d\u0e19",MM:"%d \u0e40\u0e14\u0e37\u0e2d\u0e19",y:"1 \u0e1b\u0e35",yy:"%d \u0e1b\u0e35"}})}(E(5439))},1310:function(Y,G,E){!function(T){"use strict";var n={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'\xfcnji",4:"'\xfcnji",100:"'\xfcnji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"};T.defineLocale("tk",{months:"\xddanwar_Fewral_Mart_Aprel_Ma\xfd_I\xfdun_I\xfdul_Awgust_Sent\xfdabr_Okt\xfdabr_No\xfdabr_Dekabr".split("_"),monthsShort:"\xddan_Few_Mar_Apr_Ma\xfd_I\xfdn_I\xfdl_Awg_Sen_Okt_No\xfd_Dek".split("_"),weekdays:"\xddek\u015fenbe_Du\u015fenbe_Si\u015fenbe_\xc7ar\u015fenbe_Pen\u015fenbe_Anna_\u015eenbe".split("_"),weekdaysShort:"\xddek_Du\u015f_Si\u015f_\xc7ar_Pen_Ann_\u015een".split("_"),weekdaysMin:"\xddk_D\u015f_S\u015f_\xc7r_Pn_An_\u015en".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[d\xfc\xfdn] LT",lastWeek:"[ge\xe7en] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s so\u0148",past:"%s \xf6\u0148",s:"birn\xe4\xe7e sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir a\xfd",MM:"%d a\xfd",y:"bir \xfdyl",yy:"%d \xfdyl"},ordinal:function(D,L){switch(L){case"d":case"D":case"Do":case"DD":return D;default:if(0===D)return D+"'unjy";var O=D%10;return D+(n[O]||n[D%100-O]||n[D>=100?100:null])}},week:{dow:1,doy:7}})}(E(5439))},2360:function(Y,G,E){!function(T){"use strict";T.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(H){return H},week:{dow:1,doy:4}})}(E(5439))},6645:function(Y,G,E){!function(T){"use strict";var n="pagh_wa\u2019_cha\u2019_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function L(U,W,ee,te){var ae=function O(U){var W=Math.floor(U%1e3/100),ee=Math.floor(U%100/10),te=U%10,ae="";return W>0&&(ae+=n[W]+"vatlh"),ee>0&&(ae+=(""!==ae?" ":"")+n[ee]+"maH"),te>0&&(ae+=(""!==ae?" ":"")+n[te]),""===ae?"pagh":ae}(U);switch(ee){case"ss":return ae+" lup";case"mm":return ae+" tup";case"hh":return ae+" rep";case"dd":return ae+" jaj";case"MM":return ae+" jar";case"yy":return ae+" DIS"}}T.defineLocale("tlh",{months:"tera\u2019 jar wa\u2019_tera\u2019 jar cha\u2019_tera\u2019 jar wej_tera\u2019 jar loS_tera\u2019 jar vagh_tera\u2019 jar jav_tera\u2019 jar Soch_tera\u2019 jar chorgh_tera\u2019 jar Hut_tera\u2019 jar wa\u2019maH_tera\u2019 jar wa\u2019maH wa\u2019_tera\u2019 jar wa\u2019maH cha\u2019".split("_"),monthsShort:"jar wa\u2019_jar cha\u2019_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa\u2019maH_jar wa\u2019maH wa\u2019_jar wa\u2019maH cha\u2019".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa\u2019leS] LT",nextWeek:"LLL",lastDay:"[wa\u2019Hu\u2019] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function H(U){var W=U;return-1!==U.indexOf("jaj")?W.slice(0,-3)+"leS":-1!==U.indexOf("jar")?W.slice(0,-3)+"waQ":-1!==U.indexOf("DIS")?W.slice(0,-3)+"nem":W+" pIq"},past:function D(U){var W=U;return-1!==U.indexOf("jaj")?W.slice(0,-3)+"Hu\u2019":-1!==U.indexOf("jar")?W.slice(0,-3)+"wen":-1!==U.indexOf("DIS")?W.slice(0,-3)+"ben":W+" ret"},s:"puS lup",ss:L,m:"wa\u2019 tup",mm:L,h:"wa\u2019 rep",hh:L,d:"wa\u2019 jaj",dd:L,M:"wa\u2019 jar",MM:L,y:"wa\u2019 DIS",yy:L},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},8374:function(Y,G,E){!function(T){"use strict";var n={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'\xfcnc\xfc",4:"'\xfcnc\xfc",100:"'\xfcnc\xfc",6:"'nc\u0131",9:"'uncu",10:"'uncu",30:"'uncu",60:"'\u0131nc\u0131",90:"'\u0131nc\u0131"};T.defineLocale("tr",{months:"Ocak_\u015eubat_Mart_Nisan_May\u0131s_Haziran_Temmuz_A\u011fustos_Eyl\xfcl_Ekim_Kas\u0131m_Aral\u0131k".split("_"),monthsShort:"Oca_\u015eub_Mar_Nis_May_Haz_Tem_A\u011fu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Sal\u0131_\xc7ar\u015famba_Per\u015fembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pzt_Sal_\xc7ar_Per_Cum_Cmt".split("_"),weekdaysMin:"Pz_Pt_Sa_\xc7a_Pe_Cu_Ct".split("_"),meridiem:function(D,L,O){return D<12?O?"\xf6\xf6":"\xd6\xd6":O?"\xf6s":"\xd6S"},meridiemParse:/\xf6\xf6|\xd6\xd6|\xf6s|\xd6S/,isPM:function(D){return"\xf6s"===D||"\xd6S"===D},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[yar\u0131n saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[d\xfcn] LT",lastWeek:"[ge\xe7en] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \xf6nce",s:"birka\xe7 saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir y\u0131l",yy:"%d y\u0131l"},ordinal:function(D,L){switch(L){case"d":case"D":case"Do":case"DD":return D;default:if(0===D)return D+"'\u0131nc\u0131";var O=D%10;return D+(n[O]||n[D%100-O]||n[D>=100?100:null])}},week:{dow:1,doy:7}})}(E(5439))},256:function(Y,G,E){!function(T){"use strict";function H(D,L,O,B){var U={s:["viensas secunds","'iensas secunds"],ss:[D+" secunds",D+" secunds"],m:["'n m\xedut","'iens m\xedut"],mm:[D+" m\xeduts",D+" m\xeduts"],h:["'n \xfeora","'iensa \xfeora"],hh:[D+" \xfeoras",D+" \xfeoras"],d:["'n ziua","'iensa ziua"],dd:[D+" ziuas",D+" ziuas"],M:["'n mes","'iens mes"],MM:[D+" mesen",D+" mesen"],y:["'n ar","'iens ar"],yy:[D+" ars",D+" ars"]};return B||L?U[O][0]:U[O][1]}T.defineLocale("tzl",{months:"Januar_Fevraglh_Mar\xe7_Avr\xefu_Mai_G\xfcn_Julia_Guscht_Setemvar_Listop\xe4ts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_G\xfcn_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"S\xfaladi_L\xfane\xe7i_Maitzi_M\xe1rcuri_Xh\xfaadi_Vi\xe9ner\xe7i_S\xe1turi".split("_"),weekdaysShort:"S\xfal_L\xfan_Mai_M\xe1r_Xh\xfa_Vi\xe9_S\xe1t".split("_"),weekdaysMin:"S\xfa_L\xfa_Ma_M\xe1_Xh_Vi_S\xe1".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(D){return"d'o"===D.toLowerCase()},meridiem:function(D,L,O){return D>11?O?"d'o":"D'O":O?"d'a":"D'A"},calendar:{sameDay:"[oxhi \xe0] LT",nextDay:"[dem\xe0 \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[ieiri \xe0] LT",lastWeek:"[s\xfcr el] dddd [lasteu \xe0] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:H,ss:H,m:H,mm:H,h:H,hh:H,d:H,dd:H,M:H,MM:H,y:H,yy:H},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(E(5439))},1631:function(Y,G,E){!function(T){"use strict";T.defineLocale("tzm-latn",{months:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minu\u1e0d",mm:"%d minu\u1e0d",h:"sa\u025ba",hh:"%d tassa\u025bin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(E(5439))},1595:function(Y,G,E){!function(T){"use strict";T.defineLocale("tzm",{months:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),monthsShort:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),weekdays:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysShort:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysMin:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u2d30\u2d59\u2d37\u2d45 \u2d34] LT",nextDay:"[\u2d30\u2d59\u2d3d\u2d30 \u2d34] LT",nextWeek:"dddd [\u2d34] LT",lastDay:"[\u2d30\u2d5a\u2d30\u2d4f\u2d5c \u2d34] LT",lastWeek:"dddd [\u2d34] LT",sameElse:"L"},relativeTime:{future:"\u2d37\u2d30\u2d37\u2d45 \u2d59 \u2d62\u2d30\u2d4f %s",past:"\u2d62\u2d30\u2d4f %s",s:"\u2d49\u2d4e\u2d49\u2d3d",ss:"%d \u2d49\u2d4e\u2d49\u2d3d",m:"\u2d4e\u2d49\u2d4f\u2d53\u2d3a",mm:"%d \u2d4e\u2d49\u2d4f\u2d53\u2d3a",h:"\u2d59\u2d30\u2d44\u2d30",hh:"%d \u2d5c\u2d30\u2d59\u2d59\u2d30\u2d44\u2d49\u2d4f",d:"\u2d30\u2d59\u2d59",dd:"%d o\u2d59\u2d59\u2d30\u2d4f",M:"\u2d30\u2d62o\u2d53\u2d54",MM:"%d \u2d49\u2d62\u2d62\u2d49\u2d54\u2d4f",y:"\u2d30\u2d59\u2d33\u2d30\u2d59",yy:"%d \u2d49\u2d59\u2d33\u2d30\u2d59\u2d4f"},week:{dow:6,doy:12}})}(E(5439))},6050:function(Y,G,E){!function(T){"use strict";T.defineLocale("ug-cn",{months:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),monthsShort:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),weekdays:"\u064a\u06d5\u0643\u0634\u06d5\u0646\u0628\u06d5_\u062f\u06c8\u0634\u06d5\u0646\u0628\u06d5_\u0633\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u0686\u0627\u0631\u0634\u06d5\u0646\u0628\u06d5_\u067e\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u062c\u06c8\u0645\u06d5_\u0634\u06d5\u0646\u0628\u06d5".split("_"),weekdaysShort:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),weekdaysMin:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649",LLL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm",LLLL:"dddd\u060c YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm"},meridiemParse:/\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5|\u0633\u06d5\u06be\u06d5\u0631|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646|\u0686\u06c8\u0634|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646|\u0643\u06d5\u0686/,meridiemHour:function(H,D){return 12===H&&(H=0),"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5"===D||"\u0633\u06d5\u06be\u06d5\u0631"===D||"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646"===D?H:"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646"===D||"\u0643\u06d5\u0686"===D?H+12:H>=11?H:H+12},meridiem:function(H,D,L){var O=100*H+D;return O<600?"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5":O<900?"\u0633\u06d5\u06be\u06d5\u0631":O<1130?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646":O<1230?"\u0686\u06c8\u0634":O<1800?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646":"\u0643\u06d5\u0686"},calendar:{sameDay:"[\u0628\u06c8\u06af\u06c8\u0646 \u0633\u0627\u0626\u06d5\u062a] LT",nextDay:"[\u0626\u06d5\u062a\u06d5 \u0633\u0627\u0626\u06d5\u062a] LT",nextWeek:"[\u0643\u06d0\u0644\u06d5\u0631\u0643\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",lastDay:"[\u062a\u06c6\u0646\u06c8\u06af\u06c8\u0646] LT",lastWeek:"[\u0626\u0627\u0644\u062f\u0649\u0646\u0642\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0643\u06d0\u064a\u0649\u0646",past:"%s \u0628\u06c7\u0631\u06c7\u0646",s:"\u0646\u06d5\u0686\u0686\u06d5 \u0633\u06d0\u0643\u0648\u0646\u062a",ss:"%d \u0633\u06d0\u0643\u0648\u0646\u062a",m:"\u0628\u0649\u0631 \u0645\u0649\u0646\u06c7\u062a",mm:"%d \u0645\u0649\u0646\u06c7\u062a",h:"\u0628\u0649\u0631 \u0633\u0627\u0626\u06d5\u062a",hh:"%d \u0633\u0627\u0626\u06d5\u062a",d:"\u0628\u0649\u0631 \u0643\u06c8\u0646",dd:"%d \u0643\u06c8\u0646",M:"\u0628\u0649\u0631 \u0626\u0627\u064a",MM:"%d \u0626\u0627\u064a",y:"\u0628\u0649\u0631 \u064a\u0649\u0644",yy:"%d \u064a\u0649\u0644"},dayOfMonthOrdinalParse:/\d{1,2}(-\u0643\u06c8\u0646\u0649|-\u0626\u0627\u064a|-\u06be\u06d5\u067e\u062a\u06d5)/,ordinal:function(H,D){switch(D){case"d":case"D":case"DDD":return H+"-\u0643\u06c8\u0646\u0649";case"w":case"W":return H+"-\u06be\u06d5\u067e\u062a\u06d5";default:return H}},preparse:function(H){return H.replace(/\u060c/g,",")},postformat:function(H){return H.replace(/,/g,"\u060c")},week:{dow:1,doy:7}})}(E(5439))},5610:function(Y,G,E){!function(T){"use strict";function H(B,U,W){return"m"===W?U?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443":"h"===W?U?"\u0433\u043e\u0434\u0438\u043d\u0430":"\u0433\u043e\u0434\u0438\u043d\u0443":B+" "+function n(B,U){var W=B.split("_");return U%10==1&&U%100!=11?W[0]:U%10>=2&&U%10<=4&&(U%100<10||U%100>=20)?W[1]:W[2]}({ss:U?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434",mm:U?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d",hh:U?"\u0433\u043e\u0434\u0438\u043d\u0430_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d":"\u0433\u043e\u0434\u0438\u043d\u0443_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u043d\u0456\u0432",MM:"\u043c\u0456\u0441\u044f\u0446\u044c_\u043c\u0456\u0441\u044f\u0446\u0456_\u043c\u0456\u0441\u044f\u0446\u0456\u0432",yy:"\u0440\u0456\u043a_\u0440\u043e\u043a\u0438_\u0440\u043e\u043a\u0456\u0432"}[W],+B)}function L(B){return function(){return B+"\u043e"+(11===this.hours()?"\u0431":"")+"] LT"}}T.defineLocale("uk",{months:{format:"\u0441\u0456\u0447\u043d\u044f_\u043b\u044e\u0442\u043e\u0433\u043e_\u0431\u0435\u0440\u0435\u0437\u043d\u044f_\u043a\u0432\u0456\u0442\u043d\u044f_\u0442\u0440\u0430\u0432\u043d\u044f_\u0447\u0435\u0440\u0432\u043d\u044f_\u043b\u0438\u043f\u043d\u044f_\u0441\u0435\u0440\u043f\u043d\u044f_\u0432\u0435\u0440\u0435\u0441\u043d\u044f_\u0436\u043e\u0432\u0442\u043d\u044f_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434\u0430_\u0433\u0440\u0443\u0434\u043d\u044f".split("_"),standalone:"\u0441\u0456\u0447\u0435\u043d\u044c_\u043b\u044e\u0442\u0438\u0439_\u0431\u0435\u0440\u0435\u0437\u0435\u043d\u044c_\u043a\u0432\u0456\u0442\u0435\u043d\u044c_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u0435\u0440\u0432\u0435\u043d\u044c_\u043b\u0438\u043f\u0435\u043d\u044c_\u0441\u0435\u0440\u043f\u0435\u043d\u044c_\u0432\u0435\u0440\u0435\u0441\u0435\u043d\u044c_\u0436\u043e\u0432\u0442\u0435\u043d\u044c_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434_\u0433\u0440\u0443\u0434\u0435\u043d\u044c".split("_")},monthsShort:"\u0441\u0456\u0447_\u043b\u044e\u0442_\u0431\u0435\u0440_\u043a\u0432\u0456\u0442_\u0442\u0440\u0430\u0432_\u0447\u0435\u0440\u0432_\u043b\u0438\u043f_\u0441\u0435\u0440\u043f_\u0432\u0435\u0440_\u0436\u043e\u0432\u0442_\u043b\u0438\u0441\u0442_\u0433\u0440\u0443\u0434".split("_"),weekdays:function D(B,U){var W={nominative:"\u043d\u0435\u0434\u0456\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044f_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),accusative:"\u043d\u0435\u0434\u0456\u043b\u044e_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044e_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),genitive:"\u043d\u0435\u0434\u0456\u043b\u0456_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043a\u0430_\u0432\u0456\u0432\u0442\u043e\u0440\u043a\u0430_\u0441\u0435\u0440\u0435\u0434\u0438_\u0447\u0435\u0442\u0432\u0435\u0440\u0433\u0430_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u0456_\u0441\u0443\u0431\u043e\u0442\u0438".split("_")};return!0===B?W.nominative.slice(1,7).concat(W.nominative.slice(0,1)):B?W[/(\[[\u0412\u0432\u0423\u0443]\]) ?dddd/.test(U)?"accusative":/\[?(?:\u043c\u0438\u043d\u0443\u043b\u043e\u0457|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0457)? ?\] ?dddd/.test(U)?"genitive":"nominative"][B.day()]:W.nominative},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0440.",LLL:"D MMMM YYYY \u0440., HH:mm",LLLL:"dddd, D MMMM YYYY \u0440., HH:mm"},calendar:{sameDay:L("[\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456 "),nextDay:L("[\u0417\u0430\u0432\u0442\u0440\u0430 "),lastDay:L("[\u0412\u0447\u043e\u0440\u0430 "),nextWeek:L("[\u0423] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return L("[\u041c\u0438\u043d\u0443\u043b\u043e\u0457] dddd [").call(this);case 1:case 2:case 4:return L("[\u041c\u0438\u043d\u0443\u043b\u043e\u0433\u043e] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"%s \u0442\u043e\u043c\u0443",s:"\u0434\u0435\u043a\u0456\u043b\u044c\u043a\u0430 \u0441\u0435\u043a\u0443\u043d\u0434",ss:H,m:H,mm:H,h:"\u0433\u043e\u0434\u0438\u043d\u0443",hh:H,d:"\u0434\u0435\u043d\u044c",dd:H,M:"\u043c\u0456\u0441\u044f\u0446\u044c",MM:H,y:"\u0440\u0456\u043a",yy:H},meridiemParse:/\u043d\u043e\u0447\u0456|\u0440\u0430\u043d\u043a\u0443|\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430/,isPM:function(B){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430)$/.test(B)},meridiem:function(B,U,W){return B<4?"\u043d\u043e\u0447\u0456":B<12?"\u0440\u0430\u043d\u043a\u0443":B<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u043e\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e)/,ordinal:function(B,U){switch(U){case"M":case"d":case"DDD":case"w":case"W":return B+"-\u0439";case"D":return B+"-\u0433\u043e";default:return B}},week:{dow:1,doy:7}})}(E(5439))},6077:function(Y,G,E){!function(T){"use strict";var n=["\u062c\u0646\u0648\u0631\u06cc","\u0641\u0631\u0648\u0631\u06cc","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u06cc\u0644","\u0645\u0626\u06cc","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0626\u06cc","\u0627\u06af\u0633\u062a","\u0633\u062a\u0645\u0628\u0631","\u0627\u06a9\u062a\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u062f\u0633\u0645\u0628\u0631"],H=["\u0627\u062a\u0648\u0627\u0631","\u067e\u06cc\u0631","\u0645\u0646\u06af\u0644","\u0628\u062f\u06be","\u062c\u0645\u0639\u0631\u0627\u062a","\u062c\u0645\u0639\u06c1","\u06c1\u0641\u062a\u06c1"];T.defineLocale("ur",{months:n,monthsShort:n,weekdays:H,weekdaysShort:H,weekdaysMin:H,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(L){return"\u0634\u0627\u0645"===L},meridiem:function(L,O,B){return L<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0622\u062c \u0628\u0648\u0642\u062a] LT",nextDay:"[\u06a9\u0644 \u0628\u0648\u0642\u062a] LT",nextWeek:"dddd [\u0628\u0648\u0642\u062a] LT",lastDay:"[\u06af\u0630\u0634\u062a\u06c1 \u0631\u0648\u0632 \u0628\u0648\u0642\u062a] LT",lastWeek:"[\u06af\u0630\u0634\u062a\u06c1] dddd [\u0628\u0648\u0642\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0628\u0639\u062f",past:"%s \u0642\u0628\u0644",s:"\u0686\u0646\u062f \u0633\u06cc\u06a9\u0646\u0688",ss:"%d \u0633\u06cc\u06a9\u0646\u0688",m:"\u0627\u06cc\u06a9 \u0645\u0646\u0679",mm:"%d \u0645\u0646\u0679",h:"\u0627\u06cc\u06a9 \u06af\u06be\u0646\u0679\u06c1",hh:"%d \u06af\u06be\u0646\u0679\u06d2",d:"\u0627\u06cc\u06a9 \u062f\u0646",dd:"%d \u062f\u0646",M:"\u0627\u06cc\u06a9 \u0645\u0627\u06c1",MM:"%d \u0645\u0627\u06c1",y:"\u0627\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(L){return L.replace(/\u060c/g,",")},postformat:function(L){return L.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(E(5439))},2207:function(Y,G,E){!function(T){"use strict";T.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(E(5439))},2862:function(Y,G,E){!function(T){"use strict";T.defineLocale("uz",{months:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u042f\u043a\u0448\u0430\u043d\u0431\u0430_\u0414\u0443\u0448\u0430\u043d\u0431\u0430_\u0421\u0435\u0448\u0430\u043d\u0431\u0430_\u0427\u043e\u0440\u0448\u0430\u043d\u0431\u0430_\u041f\u0430\u0439\u0448\u0430\u043d\u0431\u0430_\u0416\u0443\u043c\u0430_\u0428\u0430\u043d\u0431\u0430".split("_"),weekdaysShort:"\u042f\u043a\u0448_\u0414\u0443\u0448_\u0421\u0435\u0448_\u0427\u043e\u0440_\u041f\u0430\u0439_\u0416\u0443\u043c_\u0428\u0430\u043d".split("_"),weekdaysMin:"\u042f\u043a_\u0414\u0443_\u0421\u0435_\u0427\u043e_\u041f\u0430_\u0416\u0443_\u0428\u0430".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[\u0411\u0443\u0433\u0443\u043d \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",nextDay:"[\u042d\u0440\u0442\u0430\u0433\u0430] LT [\u0434\u0430]",nextWeek:"dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastDay:"[\u041a\u0435\u0447\u0430 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastWeek:"[\u0423\u0442\u0433\u0430\u043d] dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",sameElse:"L"},relativeTime:{future:"\u042f\u043a\u0438\u043d %s \u0438\u0447\u0438\u0434\u0430",past:"\u0411\u0438\u0440 \u043d\u0435\u0447\u0430 %s \u043e\u043b\u0434\u0438\u043d",s:"\u0444\u0443\u0440\u0441\u0430\u0442",ss:"%d \u0444\u0443\u0440\u0441\u0430\u0442",m:"\u0431\u0438\u0440 \u0434\u0430\u043a\u0438\u043a\u0430",mm:"%d \u0434\u0430\u043a\u0438\u043a\u0430",h:"\u0431\u0438\u0440 \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u0431\u0438\u0440 \u043e\u0439",MM:"%d \u043e\u0439",y:"\u0431\u0438\u0440 \u0439\u0438\u043b",yy:"%d \u0439\u0438\u043b"},week:{dow:1,doy:7}})}(E(5439))},8093:function(Y,G,E){!function(T){"use strict";T.defineLocale("vi",{months:"th\xe1ng 1_th\xe1ng 2_th\xe1ng 3_th\xe1ng 4_th\xe1ng 5_th\xe1ng 6_th\xe1ng 7_th\xe1ng 8_th\xe1ng 9_th\xe1ng 10_th\xe1ng 11_th\xe1ng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"ch\u1ee7 nh\u1eadt_th\u1ee9 hai_th\u1ee9 ba_th\u1ee9 t\u01b0_th\u1ee9 n\u0103m_th\u1ee9 s\xe1u_th\u1ee9 b\u1ea3y".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(H){return/^ch$/i.test(H)},meridiem:function(H,D,L){return H<12?L?"sa":"SA":L?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [n\u0103m] YYYY",LLL:"D MMMM [n\u0103m] YYYY HH:mm",LLLL:"dddd, D MMMM [n\u0103m] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[H\xf4m nay l\xfac] LT",nextDay:"[Ng\xe0y mai l\xfac] LT",nextWeek:"dddd [tu\u1ea7n t\u1edbi l\xfac] LT",lastDay:"[H\xf4m qua l\xfac] LT",lastWeek:"dddd [tu\u1ea7n tr\u01b0\u1edbc l\xfac] LT",sameElse:"L"},relativeTime:{future:"%s t\u1edbi",past:"%s tr\u01b0\u1edbc",s:"v\xe0i gi\xe2y",ss:"%d gi\xe2y",m:"m\u1ed9t ph\xfat",mm:"%d ph\xfat",h:"m\u1ed9t gi\u1edd",hh:"%d gi\u1edd",d:"m\u1ed9t ng\xe0y",dd:"%d ng\xe0y",w:"m\u1ed9t tu\u1ea7n",ww:"%d tu\u1ea7n",M:"m\u1ed9t th\xe1ng",MM:"%d th\xe1ng",y:"m\u1ed9t n\u0103m",yy:"%d n\u0103m"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(H){return H},week:{dow:1,doy:4}})}(E(5439))},5590:function(Y,G,E){!function(T){"use strict";T.defineLocale("x-pseudo",{months:"J~\xe1\xf1\xfa\xe1~r\xfd_F~\xe9br\xfa~\xe1r\xfd_~M\xe1rc~h_\xc1p~r\xedl_~M\xe1\xfd_~J\xfa\xf1\xe9~_J\xfal~\xfd_\xc1\xfa~g\xfast~_S\xe9p~t\xe9mb~\xe9r_\xd3~ct\xf3b~\xe9r_\xd1~\xf3v\xe9m~b\xe9r_~D\xe9c\xe9~mb\xe9r".split("_"),monthsShort:"J~\xe1\xf1_~F\xe9b_~M\xe1r_~\xc1pr_~M\xe1\xfd_~J\xfa\xf1_~J\xfal_~\xc1\xfag_~S\xe9p_~\xd3ct_~\xd1\xf3v_~D\xe9c".split("_"),monthsParseExact:!0,weekdays:"S~\xfa\xf1d\xe1~\xfd_M\xf3~\xf1d\xe1\xfd~_T\xfa\xe9~sd\xe1\xfd~_W\xe9d~\xf1\xe9sd~\xe1\xfd_T~h\xfars~d\xe1\xfd_~Fr\xedd~\xe1\xfd_S~\xe1t\xfar~d\xe1\xfd".split("_"),weekdaysShort:"S~\xfa\xf1_~M\xf3\xf1_~T\xfa\xe9_~W\xe9d_~Th\xfa_~Fr\xed_~S\xe1t".split("_"),weekdaysMin:"S~\xfa_M\xf3~_T\xfa_~W\xe9_T~h_Fr~_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~\xf3d\xe1~\xfd \xe1t] LT",nextDay:"[T~\xf3m\xf3~rr\xf3~w \xe1t] LT",nextWeek:"dddd [\xe1t] LT",lastDay:"[\xdd~\xe9st~\xe9rd\xe1~\xfd \xe1t] LT",lastWeek:"[L~\xe1st] dddd [\xe1t] LT",sameElse:"L"},relativeTime:{future:"\xed~\xf1 %s",past:"%s \xe1~g\xf3",s:"\xe1 ~f\xe9w ~s\xe9c\xf3~\xf1ds",ss:"%d s~\xe9c\xf3\xf1~ds",m:"\xe1 ~m\xed\xf1~\xfat\xe9",mm:"%d m~\xed\xf1\xfa~t\xe9s",h:"\xe1~\xf1 h\xf3~\xfar",hh:"%d h~\xf3\xfars",d:"\xe1 ~d\xe1\xfd",dd:"%d d~\xe1\xfds",M:"\xe1 ~m\xf3\xf1~th",MM:"%d m~\xf3\xf1t~hs",y:"\xe1 ~\xfd\xe9\xe1r",yy:"%d \xfd~\xe9\xe1rs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(H){var D=H%10;return H+(1==~~(H%100/10)?"th":1===D?"st":2===D?"nd":3===D?"rd":"th")},week:{dow:1,doy:4}})}(E(5439))},9058:function(Y,G,E){!function(T){"use strict";T.defineLocale("yo",{months:"S\u1eb9\u0301r\u1eb9\u0301_E\u0300re\u0300le\u0300_\u1eb8r\u1eb9\u0300na\u0300_I\u0300gbe\u0301_E\u0300bibi_O\u0300ku\u0300du_Ag\u1eb9mo_O\u0300gu\u0301n_Owewe_\u1ecc\u0300wa\u0300ra\u0300_Be\u0301lu\u0301_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),monthsShort:"S\u1eb9\u0301r_E\u0300rl_\u1eb8rn_I\u0300gb_E\u0300bi_O\u0300ku\u0300_Ag\u1eb9_O\u0300gu\u0301_Owe_\u1ecc\u0300wa\u0300_Be\u0301l_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),weekdays:"A\u0300i\u0300ku\u0301_Aje\u0301_I\u0300s\u1eb9\u0301gun_\u1eccj\u1ecd\u0301ru\u0301_\u1eccj\u1ecd\u0301b\u1ecd_\u1eb8ti\u0300_A\u0300ba\u0301m\u1eb9\u0301ta".split("_"),weekdaysShort:"A\u0300i\u0300k_Aje\u0301_I\u0300s\u1eb9\u0301_\u1eccjr_\u1eccjb_\u1eb8ti\u0300_A\u0300ba\u0301".split("_"),weekdaysMin:"A\u0300i\u0300_Aj_I\u0300s_\u1eccr_\u1eccb_\u1eb8t_A\u0300b".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[O\u0300ni\u0300 ni] LT",nextDay:"[\u1ecc\u0300la ni] LT",nextWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301n'b\u1ecd] [ni] LT",lastDay:"[A\u0300na ni] LT",lastWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301l\u1ecd\u0301] [ni] LT",sameElse:"L"},relativeTime:{future:"ni\u0301 %s",past:"%s k\u1ecdja\u0301",s:"i\u0300s\u1eb9ju\u0301 aaya\u0301 die",ss:"aaya\u0301 %d",m:"i\u0300s\u1eb9ju\u0301 kan",mm:"i\u0300s\u1eb9ju\u0301 %d",h:"wa\u0301kati kan",hh:"wa\u0301kati %d",d:"\u1ecdj\u1ecd\u0301 kan",dd:"\u1ecdj\u1ecd\u0301 %d",M:"osu\u0300 kan",MM:"osu\u0300 %d",y:"\u1ecddu\u0301n kan",yy:"\u1ecddu\u0301n %d"},dayOfMonthOrdinalParse:/\u1ecdj\u1ecd\u0301\s\d{1,2}/,ordinal:"\u1ecdj\u1ecd\u0301 %d",week:{dow:1,doy:4}})}(E(5439))},7908:function(Y,G,E){!function(T){"use strict";T.defineLocale("zh-cn",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u5468\u65e5_\u5468\u4e00_\u5468\u4e8c_\u5468\u4e09_\u5468\u56db_\u5468\u4e94_\u5468\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5Ah\u70b9mm\u5206",LLLL:"YYYY\u5e74M\u6708D\u65e5ddddAh\u70b9mm\u5206",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(H,D){return 12===H&&(H=0),"\u51cc\u6668"===D||"\u65e9\u4e0a"===D||"\u4e0a\u5348"===D?H:"\u4e0b\u5348"===D||"\u665a\u4e0a"===D?H+12:H>=11?H:H+12},meridiem:function(H,D,L){var O=100*H+D;return O<600?"\u51cc\u6668":O<900?"\u65e9\u4e0a":O<1130?"\u4e0a\u5348":O<1230?"\u4e2d\u5348":O<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:function(H){return H.week()!==this.week()?"[\u4e0b]dddLT":"[\u672c]dddLT"},lastDay:"[\u6628\u5929]LT",lastWeek:function(H){return this.week()!==H.week()?"[\u4e0a]dddLT":"[\u672c]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u5468)/,ordinal:function(H,D){switch(D){case"d":case"D":case"DDD":return H+"\u65e5";case"M":return H+"\u6708";case"w":case"W":return H+"\u5468";default:return H}},relativeTime:{future:"%s\u540e",past:"%s\u524d",s:"\u51e0\u79d2",ss:"%d \u79d2",m:"1 \u5206\u949f",mm:"%d \u5206\u949f",h:"1 \u5c0f\u65f6",hh:"%d \u5c0f\u65f6",d:"1 \u5929",dd:"%d \u5929",w:"1 \u5468",ww:"%d \u5468",M:"1 \u4e2a\u6708",MM:"%d \u4e2a\u6708",y:"1 \u5e74",yy:"%d \u5e74"},week:{dow:1,doy:4}})}(E(5439))},8867:function(Y,G,E){!function(T){"use strict";T.defineLocale("zh-hk",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(H,D){return 12===H&&(H=0),"\u51cc\u6668"===D||"\u65e9\u4e0a"===D||"\u4e0a\u5348"===D?H:"\u4e2d\u5348"===D?H>=11?H:H+12:"\u4e0b\u5348"===D||"\u665a\u4e0a"===D?H+12:void 0},meridiem:function(H,D,L){var O=100*H+D;return O<600?"\u51cc\u6668":O<900?"\u65e9\u4e0a":O<1200?"\u4e0a\u5348":1200===O?"\u4e2d\u5348":O<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:"[\u4e0b]ddddLT",lastDay:"[\u6628\u5929]LT",lastWeek:"[\u4e0a]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(H,D){switch(D){case"d":case"D":case"DDD":return H+"\u65e5";case"M":return H+"\u6708";case"w":case"W":return H+"\u9031";default:return H}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(E(5439))},1133:function(Y,G,E){!function(T){"use strict";T.defineLocale("zh-mo",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"D/M/YYYY",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(H,D){return 12===H&&(H=0),"\u51cc\u6668"===D||"\u65e9\u4e0a"===D||"\u4e0a\u5348"===D?H:"\u4e2d\u5348"===D?H>=11?H:H+12:"\u4e0b\u5348"===D||"\u665a\u4e0a"===D?H+12:void 0},meridiem:function(H,D,L){var O=100*H+D;return O<600?"\u51cc\u6668":O<900?"\u65e9\u4e0a":O<1130?"\u4e0a\u5348":O<1230?"\u4e2d\u5348":O<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(H,D){switch(D){case"d":case"D":case"DDD":return H+"\u65e5";case"M":return H+"\u6708";case"w":case"W":return H+"\u9031";default:return H}},relativeTime:{future:"%s\u5167",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(E(5439))},3291:function(Y,G,E){!function(T){"use strict";T.defineLocale("zh-tw",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(H,D){return 12===H&&(H=0),"\u51cc\u6668"===D||"\u65e9\u4e0a"===D||"\u4e0a\u5348"===D?H:"\u4e2d\u5348"===D?H>=11?H:H+12:"\u4e0b\u5348"===D||"\u665a\u4e0a"===D?H+12:void 0},meridiem:function(H,D,L){var O=100*H+D;return O<600?"\u51cc\u6668":O<900?"\u65e9\u4e0a":O<1130?"\u4e0a\u5348":O<1230?"\u4e2d\u5348":O<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(H,D){switch(D){case"d":case"D":case"DDD":return H+"\u65e5";case"M":return H+"\u6708";case"w":case"W":return H+"\u9031";default:return H}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(E(5439))},5439:function(Y,G,E){(Y=E.nmd(Y)).exports=function(){"use strict";var T,be;function n(){return T.apply(null,arguments)}function D(S){return S instanceof Array||"[object Array]"===Object.prototype.toString.call(S)}function L(S){return null!=S&&"[object Object]"===Object.prototype.toString.call(S)}function O(S,P){return Object.prototype.hasOwnProperty.call(S,P)}function B(S){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(S).length;var P;for(P in S)if(O(S,P))return!1;return!0}function U(S){return void 0===S}function W(S){return"number"==typeof S||"[object Number]"===Object.prototype.toString.call(S)}function ee(S){return S instanceof Date||"[object Date]"===Object.prototype.toString.call(S)}function te(S,P){var q,V=[],Q=S.length;for(q=0;q>>0;for(q=0;q0)for(V=0;V=0?V?"+":"":"-")+Math.pow(10,Math.max(0,P-q.length)).toString().substr(1)+q}var cn=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,tt=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ai={},Oi={};function Je(S,P,V,q){var Q=q;"string"==typeof q&&(Q=function(){return this[q]()}),S&&(Oi[S]=Q),P&&(Oi[P[0]]=function(){return Ft(Q.apply(this,arguments),P[1],P[2])}),V&&(Oi[V]=function(){return this.localeData().ordinal(Q.apply(this,arguments),S)})}function dn(S){return S.match(/\[[\s\S]/)?S.replace(/^\[|\]$/g,""):S.replace(/\\/g,"")}function Tn(S,P){return S.isValid()?(P=Ii(P,S.localeData()),ai[P]=ai[P]||function Gi(S){var V,q,P=S.match(cn);for(V=0,q=P.length;V=0&&tt.test(S);)S=S.replace(tt,q),tt.lastIndex=0,V-=1;return S}var lt={};function ct(S,P){var V=S.toLowerCase();lt[V]=lt[V+"s"]=lt[P]=S}function Zt(S){return"string"==typeof S?lt[S]||lt[S.toLowerCase()]:void 0}function hi(S){var V,q,P={};for(q in S)O(S,q)&&(V=Zt(q))&&(P[V]=S[q]);return P}var un={};function Kt(S,P){un[S]=P}function ce(S){return S%4==0&&S%100!=0||S%400==0}function ie(S){return S<0?Math.ceil(S)||0:Math.floor(S)}function fe(S){var P=+S,V=0;return 0!==P&&isFinite(P)&&(V=ie(P)),V}function Be(S,P){return function(V){return null!=V?(Bt(this,S,V),n.updateOffset(this,P),this):Ct(this,S)}}function Ct(S,P){return S.isValid()?S._d["get"+(S._isUTC?"UTC":"")+P]():NaN}function Bt(S,P,V){S.isValid()&&!isNaN(V)&&("FullYear"===P&&ce(S.year())&&1===S.month()&&29===S.date()?(V=fe(V),S._d["set"+(S._isUTC?"UTC":"")+P](V,S.month(),Le(V,S.month()))):S._d["set"+(S._isUTC?"UTC":"")+P](V))}var pi,qn=/\d/,kt=/\d\d/,vr=/\d{3}/,Lt=/\d{4}/,Yt=/[+-]?\d{6}/,St=/\d\d?/,lr=/\d\d\d\d?/,Qr=/\d\d\d\d\d\d?/,Kn=/\d{1,3}/,Xr=/\d{1,4}/,jr=/[+-]?\d{1,6}/,Tr=/\d+/,fa=/[+-]?\d+/,Ed=/Z|[+-]\d\d:?\d\d/gi,_s=/Z|[+-]\d\d(?::?\d\d)?/gi,si=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function Ze(S,P,V){pi[S]=me(P)?P:function(q,Q){return q&&V?V:P}}function ei(S,P){return O(pi,S)?pi[S](P._strict,P._locale):new RegExp(function nt(S){return ft(S.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(P,V,q,Q,he){return V||q||Q||he}))}(S))}function ft(S){return S.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}pi={};var fn={};function Ee(S,P){var V,Q,q=P;for("string"==typeof S&&(S=[S]),W(P)&&(q=function(he,ve){ve[P]=fe(he)}),Q=S.length,V=0;V68?1900:2e3)};var na=Be("FullYear",!0);function Qi(S,P,V,q,Q,he,ve){var At;return S<100&&S>=0?(At=new Date(S+400,P,V,q,Q,he,ve),isFinite(At.getFullYear())&&At.setFullYear(S)):At=new Date(S,P,V,q,Q,he,ve),At}function ba(S){var P,V;return S<100&&S>=0?((V=Array.prototype.slice.call(arguments))[0]=S+400,P=new Date(Date.UTC.apply(null,V)),isFinite(P.getUTCFullYear())&&P.setUTCFullYear(S)):P=new Date(Date.UTC.apply(null,arguments)),P}function ho(S,P,V){var q=7+P-V;return-(7+ba(S,0,q).getUTCDay()-P)%7+q-1}function bs(S,P,V,q,Q){var jt,mn,At=1+7*(P-1)+(7+V-q)%7+ho(S,q,Q);return At<=0?mn=cr(jt=S-1)+At:At>cr(S)?(jt=S+1,mn=At-cr(S)):(jt=S,mn=At),{year:jt,dayOfYear:mn}}function Aa(S,P,V){var he,ve,q=ho(S.year(),P,V),Q=Math.floor((S.dayOfYear()-q-1)/7)+1;return Q<1?he=Q+dr(ve=S.year()-1,P,V):Q>dr(S.year(),P,V)?(he=Q-dr(S.year(),P,V),ve=S.year()+1):(ve=S.year(),he=Q),{week:he,year:ve}}function dr(S,P,V){var q=ho(S,P,V),Q=ho(S+1,P,V);return(cr(S)-q+Q)/7}Je("w",["ww",2],"wo","week"),Je("W",["WW",2],"Wo","isoWeek"),ct("week","w"),ct("isoWeek","W"),Kt("week",5),Kt("isoWeek",5),Ze("w",St),Ze("ww",St,kt),Ze("W",St),Ze("WW",St,kt),yn(["w","ww","W","WW"],function(S,P,V,q){P[q.substr(0,1)]=fe(S)});function Ld(S,P){return S.slice(P,7).concat(S.slice(0,P))}Je("d",0,"do","day"),Je("dd",0,0,function(S){return this.localeData().weekdaysMin(this,S)}),Je("ddd",0,0,function(S){return this.localeData().weekdaysShort(this,S)}),Je("dddd",0,0,function(S){return this.localeData().weekdays(this,S)}),Je("e",0,0,"weekday"),Je("E",0,0,"isoWeekday"),ct("day","d"),ct("weekday","e"),ct("isoWeekday","E"),Kt("day",11),Kt("weekday",11),Kt("isoWeekday",11),Ze("d",St),Ze("e",St),Ze("E",St),Ze("dd",function(S,P){return P.weekdaysMinRegex(S)}),Ze("ddd",function(S,P){return P.weekdaysShortRegex(S)}),Ze("dddd",function(S,P){return P.weekdaysRegex(S)}),yn(["dd","ddd","dddd"],function(S,P,V,q){var Q=V._locale.weekdaysParse(S,q,V._strict);null!=Q?P.d=Q:re(V).invalidWeekday=S}),yn(["d","e","E"],function(S,P,V,q){P[q]=fe(S)});var It="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),jn="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Hd="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),As=si,el=si,ys=si;function zr(S,P,V){var q,Q,he,ve=S.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],q=0;q<7;++q)he=ue([2e3,1]).day(q),this._minWeekdaysParse[q]=this.weekdaysMin(he,"").toLocaleLowerCase(),this._shortWeekdaysParse[q]=this.weekdaysShort(he,"").toLocaleLowerCase(),this._weekdaysParse[q]=this.weekdays(he,"").toLocaleLowerCase();return V?"dddd"===P?-1!==(Q=ht.call(this._weekdaysParse,ve))?Q:null:"ddd"===P?-1!==(Q=ht.call(this._shortWeekdaysParse,ve))?Q:null:-1!==(Q=ht.call(this._minWeekdaysParse,ve))?Q:null:"dddd"===P?-1!==(Q=ht.call(this._weekdaysParse,ve))||-1!==(Q=ht.call(this._shortWeekdaysParse,ve))||-1!==(Q=ht.call(this._minWeekdaysParse,ve))?Q:null:"ddd"===P?-1!==(Q=ht.call(this._shortWeekdaysParse,ve))||-1!==(Q=ht.call(this._weekdaysParse,ve))||-1!==(Q=ht.call(this._minWeekdaysParse,ve))?Q:null:-1!==(Q=ht.call(this._minWeekdaysParse,ve))||-1!==(Q=ht.call(this._weekdaysParse,ve))||-1!==(Q=ht.call(this._shortWeekdaysParse,ve))?Q:null}function tl(){function S(Ei,Gr){return Gr.length-Ei.length}var he,ve,At,jt,mn,P=[],V=[],q=[],Q=[];for(he=0;he<7;he++)ve=ue([2e3,1]).day(he),At=ft(this.weekdaysMin(ve,"")),jt=ft(this.weekdaysShort(ve,"")),mn=ft(this.weekdays(ve,"")),P.push(At),V.push(jt),q.push(mn),Q.push(At),Q.push(jt),Q.push(mn);P.sort(S),V.sort(S),q.sort(S),Q.sort(S),this._weekdaysRegex=new RegExp("^("+Q.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+q.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+V.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+P.join("|")+")","i")}function go(){return this.hours()%12||12}function Ti(S,P){Je(S,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),P)})}function ws(S,P){return P._meridiemParse}Je("H",["HH",2],0,"hour"),Je("h",["hh",2],0,go),Je("k",["kk",2],0,function li(){return this.hours()||24}),Je("hmm",0,0,function(){return""+go.apply(this)+Ft(this.minutes(),2)}),Je("hmmss",0,0,function(){return""+go.apply(this)+Ft(this.minutes(),2)+Ft(this.seconds(),2)}),Je("Hmm",0,0,function(){return""+this.hours()+Ft(this.minutes(),2)}),Je("Hmmss",0,0,function(){return""+this.hours()+Ft(this.minutes(),2)+Ft(this.seconds(),2)}),Ti("a",!0),Ti("A",!1),ct("hour","h"),Kt("hour",13),Ze("a",ws),Ze("A",ws),Ze("H",St),Ze("h",St),Ze("k",St),Ze("HH",St,kt),Ze("hh",St,kt),Ze("kk",St,kt),Ze("hmm",lr),Ze("hmmss",Qr),Ze("Hmm",lr),Ze("Hmmss",Qr),Ee(["H","HH"],3),Ee(["k","kk"],function(S,P,V){var q=fe(S);P[3]=24===q?0:q}),Ee(["a","A"],function(S,P,V){V._isPm=V._locale.isPM(S),V._meridiem=S}),Ee(["h","hh"],function(S,P,V){P[3]=fe(S),re(V).bigHour=!0}),Ee("hmm",function(S,P,V){var q=S.length-2;P[3]=fe(S.substr(0,q)),P[4]=fe(S.substr(q)),re(V).bigHour=!0}),Ee("hmmss",function(S,P,V){var q=S.length-4,Q=S.length-2;P[3]=fe(S.substr(0,q)),P[4]=fe(S.substr(q,2)),P[5]=fe(S.substr(Q)),re(V).bigHour=!0}),Ee("Hmm",function(S,P,V){var q=S.length-2;P[3]=fe(S.substr(0,q)),P[4]=fe(S.substr(q))}),Ee("Hmmss",function(S,P,V){var q=S.length-4,Q=S.length-2;P[3]=fe(S.substr(0,q)),P[4]=fe(S.substr(q,2)),P[5]=fe(S.substr(Q))});var rh=Be("Hours",!0);var ya,ti={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Zi,monthsShort:Kr,week:{dow:0,doy:6},weekdays:It,weekdaysMin:Hd,weekdaysShort:jn,meridiemParse:/[ap]\.?m?\.?/i},In={},cc={};function ur(S,P){var V,q=Math.min(S.length,P.length);for(V=0;V0;){if(Q=Bi(he.slice(0,V).join("-")))return Q;if(q&&q.length>=V&&ur(he,q)>=V-1)break;V--}P++}return ya}(S)}function Ce(S){var P,V=S._a;return V&&-2===re(S).overflow&&(P=V[1]<0||V[1]>11?1:V[2]<1||V[2]>Le(V[0],V[1])?2:V[3]<0||V[3]>24||24===V[3]&&(0!==V[4]||0!==V[5]||0!==V[6])?3:V[4]<0||V[4]>59?4:V[5]<0||V[5]>59?5:V[6]<0||V[6]>999?6:-1,re(S)._overflowDayOfYear&&(P<0||P>2)&&(P=2),re(S)._overflowWeeks&&-1===P&&(P=7),re(S)._overflowWeekday&&-1===P&&(P=8),re(S).overflow=P),S}var Ae=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,dt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Bn=/Z|[+-]\d\d(?::?\d\d)?/,Mn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],xn=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],nn=/^\/?Date\((-?\d+)/i,gt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Cn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function bt(S){var P,V,he,ve,At,jt,q=S._i,Q=Ae.exec(q)||dt.exec(q),mn=Mn.length,Ei=xn.length;if(Q){for(re(S).iso=!0,P=0,V=mn;P7)&&(jt=!0)):(he=S._locale._week.dow,ve=S._locale._week.doy,mn=Aa(Pn(),he,ve),V=Nt(P.gg,S._a[0],mn.year),q=Nt(P.w,mn.week),null!=P.d?((Q=P.d)<0||Q>6)&&(jt=!0):null!=P.e?(Q=P.e+he,(P.e<0||P.e>6)&&(jt=!0)):Q=he),q<1||q>dr(V,he,ve)?re(S)._overflowWeeks=!0:null!=jt?re(S)._overflowWeekday=!0:(At=bs(V,q,Q,he,ve),S._a[0]=At.year,S._dayOfYear=At.dayOfYear)}(S),null!=S._dayOfYear&&(ve=Nt(S._a[0],Q[0]),(S._dayOfYear>cr(ve)||0===S._dayOfYear)&&(re(S)._overflowDayOfYear=!0),V=ba(ve,0,S._dayOfYear),S._a[1]=V.getUTCMonth(),S._a[2]=V.getUTCDate()),P=0;P<3&&null==S._a[P];++P)S._a[P]=q[P]=Q[P];for(;P<7;P++)S._a[P]=q[P]=S._a[P]??(2===P?1:0);24===S._a[3]&&0===S._a[4]&&0===S._a[5]&&0===S._a[6]&&(S._nextDay=!0,S._a[3]=0),S._d=(S._useUTC?ba:Qi).apply(null,q),he=S._useUTC?S._d.getUTCDay():S._d.getDay(),null!=S._tzm&&S._d.setUTCMinutes(S._d.getUTCMinutes()-S._tzm),S._nextDay&&(S._a[3]=24),S._w&&typeof S._w.d<"u"&&S._w.d!==he&&(re(S).weekdayMismatch=!0)}}function vn(S){if(S._f!==n.ISO_8601)if(S._f!==n.RFC_2822){S._a=[],re(S).empty=!0;var V,q,Q,he,ve,mn,Ei,P=""+S._i,At=P.length,jt=0;for(Ei=(Q=Ii(S._f,S._locale).match(cn)||[]).length,V=0;V0&&re(S).unusedInput.push(ve),P=P.slice(P.indexOf(q)+q.length),jt+=q.length),Oi[he]?(q?re(S).empty=!1:re(S).unusedTokens.push(he),wn(he,q,S)):S._strict&&!q&&re(S).unusedTokens.push(he);re(S).charsLeftOver=At-jt,P.length>0&&re(S).unusedInput.push(P),S._a[3]<=12&&!0===re(S).bigHour&&S._a[3]>0&&(re(S).bigHour=void 0),re(S).parsedDateParts=S._a.slice(0),re(S).meridiem=S._meridiem,S._a[3]=function pr(S,P,V){var q;return null==V?P:null!=S.meridiemHour?S.meridiemHour(P,V):(null!=S.isPM&&((q=S.isPM(V))&&P<12&&(P+=12),!q&&12===P&&(P=0)),P)}(S._locale,S._a[3],S._meridiem),null!==(mn=re(S).era)&&(S._a[0]=S._locale.erasConvertYear(mn,S._a[0])),Ms(S),Ce(S)}else Ui(S);else bt(S)}function Rd(S){var P=S._i,V=S._f;return S._locale=S._locale||X(S._l),null===P||void 0===V&&""===P?xe({nullInput:!0}):("string"==typeof P&&(S._i=P=S._locale.preparse(P)),Re(P)?new De(Ce(P)):(ee(P)?S._d=P:D(V)?function Ur(S){var P,V,q,Q,he,ve,At=!1,jt=S._f.length;if(0===jt)return re(S).invalidFormat=!0,void(S._d=new Date(NaN));for(Q=0;Qthis?this:S:xe()});function Pd(S,P){var V,q;if(1===P.length&&D(P[0])&&(P=P[0]),!P.length)return Pn();for(V=P[0],q=1;q=0?new Date(S+400,P,V)-Co:new Date(S,P,V).valueOf()}function jd(S,P,V){return S<100&&S>=0?Date.UTC(S+400,P,V)-Co:Date.UTC(S,P,V)}function gh(S,P){return P.erasAbbrRegex(S)}function zd(){var Q,he,S=[],P=[],V=[],q=[],ve=this.eras();for(Q=0,he=ve.length;Q(he=dr(S,q,Q))&&(P=he),Tc.call(this,S,P,V,q,Q))}function Tc(S,P,V,q,Q){var he=bs(S,P,V,q,Q),ve=ba(he.year,0,he.dayOfYear);return this.year(ve.getUTCFullYear()),this.month(ve.getUTCMonth()),this.date(ve.getUTCDate()),this}Je("N",0,0,"eraAbbr"),Je("NN",0,0,"eraAbbr"),Je("NNN",0,0,"eraAbbr"),Je("NNNN",0,0,"eraName"),Je("NNNNN",0,0,"eraNarrow"),Je("y",["y",1],"yo","eraYear"),Je("y",["yy",2],0,"eraYear"),Je("y",["yyy",3],0,"eraYear"),Je("y",["yyyy",4],0,"eraYear"),Ze("N",gh),Ze("NN",gh),Ze("NNN",gh),Ze("NNNN",function Ng(S,P){return P.erasNameRegex(S)}),Ze("NNNNN",function pl(S,P){return P.erasNarrowRegex(S)}),Ee(["N","NN","NNN","NNNN","NNNNN"],function(S,P,V,q){var Q=V._locale.erasParse(S,q,V._strict);Q?re(V).era=Q:re(V).invalidEra=S}),Ze("y",Tr),Ze("yy",Tr),Ze("yyy",Tr),Ze("yyyy",Tr),Ze("yo",function Vg(S,P){return P._eraYearOrdinalRegex||Tr}),Ee(["y","yy","yyy","yyyy"],0),Ee(["yo"],function(S,P,V,q){var Q;V._locale._eraYearOrdinalRegex&&(Q=S.match(V._locale._eraYearOrdinalRegex)),P[0]=V._locale.eraYearOrdinalParse?V._locale.eraYearOrdinalParse(S,Q):parseInt(S,10)}),Je(0,["gg",2],0,function(){return this.weekYear()%100}),Je(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Zn("gggg","weekYear"),Zn("ggggg","weekYear"),Zn("GGGG","isoWeekYear"),Zn("GGGGG","isoWeekYear"),ct("weekYear","gg"),ct("isoWeekYear","GG"),Kt("weekYear",1),Kt("isoWeekYear",1),Ze("G",fa),Ze("g",fa),Ze("GG",St,kt),Ze("gg",St,kt),Ze("GGGG",Xr,Lt),Ze("gggg",Xr,Lt),Ze("GGGGG",jr,Yt),Ze("ggggg",jr,Yt),yn(["gggg","ggggg","GGGG","GGGGG"],function(S,P,V,q){P[q.substr(0,2)]=fe(S)}),yn(["gg","GG"],function(S,P,V,q){P[q]=n.parseTwoDigitYear(S)}),Je("Q",0,"Qo","quarter"),ct("quarter","Q"),Kt("quarter",7),Ze("Q",qn),Ee("Q",function(S,P){P[1]=3*(fe(S)-1)}),Je("D",["DD",2],"Do","date"),ct("date","D"),Kt("date",9),Ze("D",St),Ze("DD",St,kt),Ze("Do",function(S,P){return S?P._dayOfMonthOrdinalParse||P._ordinalParse:P._dayOfMonthOrdinalParseLenient}),Ee(["D","DD"],2),Ee("Do",function(S,P){P[2]=fe(S.match(St)[0])});var xc=Be("Date",!0);Je("DDD",["DDDD",3],"DDDo","dayOfYear"),ct("dayOfYear","DDD"),Kt("dayOfYear",4),Ze("DDD",Kn),Ze("DDDD",vr),Ee(["DDD","DDDD"],function(S,P,V){V._dayOfYear=fe(S)}),Je("m",["mm",2],0,"minute"),ct("minute","m"),Kt("minute",14),Ze("m",St),Ze("mm",St,kt),Ee(["m","mm"],4);var Sc=Be("Minutes",!1);Je("s",["ss",2],0,"second"),ct("second","s"),Kt("second",15),Ze("s",St),Ze("ss",St,kt),Ee(["s","ss"],5);var xa,Ec,Ef=Be("Seconds",!1);for(Je("S",0,0,function(){return~~(this.millisecond()/100)}),Je(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),Je(0,["SSS",3],0,"millisecond"),Je(0,["SSSS",4],0,function(){return 10*this.millisecond()}),Je(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),Je(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),Je(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),Je(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),Je(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),ct("millisecond","ms"),Kt("millisecond",16),Ze("S",Kn,qn),Ze("SS",Kn,kt),Ze("SSS",Kn,vr),xa="SSSS";xa.length<=9;xa+="S")Ze(xa,Tr);function Ki(S,P){P[6]=fe(1e3*("0."+S))}for(xa="S";xa.length<=9;xa+="S")Ee(xa,Ki);Ec=Be("Milliseconds",!1),Je("z",0,0,"zoneAbbr"),Je("zz",0,0,"zoneName");var Ue=De.prototype;function Dc(S){return S}Ue.add=Af,Ue.calendar=function Id(S,P){1===arguments.length&&(arguments[0]?yf(arguments[0])?(S=arguments[0],P=void 0):gc(arguments[0])&&(P=arguments[0],S=void 0):(S=void 0,P=void 0));var V=S||Pn(),q=rn(V,this).startOf("day"),Q=n.calendarFormat(this,q)||"sameElse",he=P&&(me(P[Q])?P[Q].call(this,V):P[Q]);return this.format(he||this.localeData().calendar(Q,this,Pn(V)))},Ue.clone=function Bd(){return new De(this)},Ue.diff=function ph(S,P,V){var q,Q,he;if(!this.isValid())return NaN;if(!(q=rn(S,this)).isValid())return NaN;switch(Q=6e4*(q.utcOffset()-this.utcOffset()),P=Zt(P)){case"year":he=cl(this,q)/12;break;case"month":he=cl(this,q);break;case"quarter":he=cl(this,q)/3;break;case"second":he=(this-q)/1e3;break;case"minute":he=(this-q)/6e4;break;case"hour":he=(this-q)/36e5;break;case"day":he=(this-q-Q)/864e5;break;case"week":he=(this-q-Q)/6048e5;break;default:he=this-q}return V?he:ie(he)},Ue.endOf=function Ls(S){var P,V;if(void 0===(S=Zt(S))||"millisecond"===S||!this.isValid())return this;switch(V=this._isUTC?jd:Ds,S){case"year":P=V(this.year()+1,0,1)-1;break;case"quarter":P=V(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":P=V(this.year(),this.month()+1,1)-1;break;case"week":P=V(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":P=V(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":P=V(this.year(),this.month(),this.date()+1)-1;break;case"hour":P=this._d.valueOf(),P+=hl-Yr(P+(this._isUTC?0:this.utcOffset()*Hr),hl)-1;break;case"minute":P=this._d.valueOf(),P+=Hr-Yr(P,Hr)-1;break;case"second":P=this._d.valueOf(),P+=1e3-Yr(P,1e3)-1}return this._d.setTime(P),n.updateOffset(this,!0),this},Ue.format=function dl(S){S||(S=this.isUtc()?n.defaultFormatUtc:n.defaultFormat);var P=Tn(this,S);return this.localeData().postformat(P)},Ue.from=function Ma(S,P){return this.isValid()&&(Re(S)&&S.isValid()||Pn(S).isValid())?$n({to:this,from:S}).locale(this.locale()).humanize(!P):this.localeData().invalidDate()},Ue.fromNow=function ul(S){return this.from(Pn(),S)},Ue.to=function Nd(S,P){return this.isValid()&&(Re(S)&&S.isValid()||Pn(S).isValid())?$n({from:this,to:S}).locale(this.locale()).humanize(!P):this.localeData().invalidDate()},Ue.toNow=function Ac(S){return this.to(Pn(),S)},Ue.get=function it(S){return me(this[S=Zt(S)])?this[S]():this},Ue.invalidAt=function ir(){return re(this).overflow},Ue.isAfter=function yo(S,P){var V=Re(S)?S:Pn(S);return!(!this.isValid()||!V.isValid())&&("millisecond"===(P=Zt(P)||"millisecond")?this.valueOf()>V.valueOf():V.valueOf()9999?Tn(V,P?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):me(Date.prototype.toISOString)?P?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",Tn(V,"Z")):Tn(V,P?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Ue.inspect=function bc(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var V,q,S="moment",P="";return this.isLocal()||(S=0===this.utcOffset()?"moment.utc":"moment.parseZone",P="Z"),V="["+S+'("]',q=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(V+q+"-MM-DD[T]HH:mm:ss.SSS"+P+'[")]')},typeof Symbol<"u"&&null!=Symbol.for&&(Ue[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Ue.toJSON=function Fd(){return this.isValid()?this.toISOString():null},Ue.toString=function Mf(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Ue.unix=function yc(){return Math.floor(this.valueOf()/1e3)},Ue.valueOf=function Cf(){return this._d.valueOf()-6e4*(this._offset||0)},Ue.creationData=function Mc(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Ue.eraName=function xf(){var S,P,V,q=this.localeData().eras();for(S=0,P=q.length;Sthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Ue.isLocal=function sl(){return!!this.isValid()&&!this._isUTC},Ue.isUtcOffset=function ol(){return!!this.isValid()&&this._isUTC},Ue.isUtc=vs,Ue.isUTC=vs,Ue.zoneAbbr=function fl(){return this._isUTC?"UTC":""},Ue.zoneName=function vo(){return this._isUTC?"Coordinated Universal Time":""},Ue.dates=Ve("dates accessor is deprecated. Use date instead.",xc),Ue.months=Ve("months accessor is deprecated. Use month instead",xr),Ue.years=Ve("years accessor is deprecated. Use year instead",na),Ue.zone=Ve("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function ch(S,P){return null!=S?("string"!=typeof S&&(S=-S),this.utcOffset(S,P),this):-this.utcOffset()}),Ue.isDSTShifted=Ve("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function fc(){if(!U(this._isDSTShifted))return this._isDSTShifted;var P,S={};return ke(S,this),(S=Rd(S))._a?(P=S._isUTC?ue(S._a):Pn(S._a),this._isDSTShifted=this.isValid()&&function kd(S,P,V){var ve,q=Math.min(S.length,P.length),Q=Math.abs(S.length-P.length),he=0;for(ve=0;ve0):this._isDSTShifted=!1,this._isDSTShifted});var an=Me.prototype;function ml(S,P,V,q){var Q=X(),he=ue().set(q,P);return Q[V](he,S)}function Ud(S,P,V){if(W(S)&&(P=S,S=void 0),S=S||"",null!=P)return ml(S,P,V,"month");var q,Q=[];for(q=0;q<12;q++)Q[q]=ml(S,q,V,"month");return Q}function Lc(S,P,V,q){"boolean"==typeof S?(W(P)&&(V=P,P=void 0),P=P||""):(V=P=S,S=!1,W(P)&&(V=P,P=void 0),P=P||"");var ve,Q=X(),he=S?Q._week.dow:0,At=[];if(null!=V)return ml(P,(V+he)%7,q,"day");for(ve=0;ve<7;ve++)At[ve]=ml(P,(ve+he)%7,q,"day");return At}an.calendar=function yt(S,P,V){var q=this._calendar[S]||this._calendar.sameElse;return me(q)?q.call(P,V):q},an.longDateFormat=function vi(S){var P=this._longDateFormat[S],V=this._longDateFormat[S.toUpperCase()];return P||!V?P:(this._longDateFormat[S]=V.match(cn).map(function(q){return"MMMM"===q||"MM"===q||"DD"===q||"dddd"===q?q.slice(1):q}).join(""),this._longDateFormat[S])},an.invalidDate=function pa(){return this._invalidDate},an.ordinal=function pe(S){return this._ordinal.replace("%d",S)},an.preparse=Dc,an.postformat=Dc,an.relativeTime=function ye(S,P,V,q){var Q=this._relativeTime[V];return me(Q)?Q(S,P,V,q):Q.replace(/%d/i,S)},an.pastFuture=function Ye(S,P){var V=this._relativeTime[S>0?"future":"past"];return me(V)?V(P):V.replace(/%s/i,P)},an.set=function _e(S){var P,V;for(V in S)O(S,V)&&(me(P=S[V])?this[V]=P:this["_"+V]=P);this._config=S,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},an.eras=function Rr(S,P){var V,q,Q,he=this._eras||X("en")._eras;for(V=0,q=he.length;V=0)return he[q]},an.erasConvertYear=function Tf(S,P){var V=S.since<=S.until?1:-1;return void 0===P?n(S.since).year():n(S.since).year()+(P-S.offset)*V},an.erasAbbrRegex=function Ig(S){return O(this,"_erasAbbrRegex")||zd.call(this),S?this._erasAbbrRegex:this._erasRegex},an.erasNameRegex=function Og(S){return O(this,"_erasNameRegex")||zd.call(this),S?this._erasNameRegex:this._erasRegex},an.erasNarrowRegex=function Bg(S){return O(this,"_erasNarrowRegex")||zd.call(this),S?this._erasNarrowRegex:this._erasRegex},an.months=function Fr(S,P){return S?D(this._months)?this._months[S.month()]:this._months[(this._months.isFormat||uo).test(P)?"format":"standalone"][S.month()]:D(this._months)?this._months:this._months.standalone},an.monthsShort=function An(S,P){return S?D(this._monthsShort)?this._monthsShort[S.month()]:this._monthsShort[uo.test(P)?"format":"standalone"][S.month()]:D(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},an.monthsParse=function ga(S,P,V){var q,Q,he;if(this._monthsParseExact)return ea.call(this,S,P,V);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),q=0;q<12;q++){if(Q=ue([2e3,q]),V&&!this._longMonthsParse[q]&&(this._longMonthsParse[q]=new RegExp("^"+this.months(Q,"").replace(".","")+"$","i"),this._shortMonthsParse[q]=new RegExp("^"+this.monthsShort(Q,"").replace(".","")+"$","i")),!V&&!this._monthsParse[q]&&(he="^"+this.months(Q,"")+"|^"+this.monthsShort(Q,""),this._monthsParse[q]=new RegExp(he.replace(".",""),"i")),V&&"MMMM"===P&&this._longMonthsParse[q].test(S))return q;if(V&&"MMM"===P&&this._shortMonthsParse[q].test(S))return q;if(!V&&this._monthsParse[q].test(S))return q}},an.monthsRegex=function fi(S){return this._monthsParseExact?(O(this,"_monthsRegex")||Ji.call(this),S?this._monthsStrictRegex:this._monthsRegex):(O(this,"_monthsRegex")||(this._monthsRegex=Mt),this._monthsStrictRegex&&S?this._monthsStrictRegex:this._monthsRegex)},an.monthsShortRegex=function ta(S){return this._monthsParseExact?(O(this,"_monthsRegex")||Ji.call(this),S?this._monthsShortStrictRegex:this._monthsShortRegex):(O(this,"_monthsShortRegex")||(this._monthsShortRegex=bn),this._monthsShortStrictRegex&&S?this._monthsShortStrictRegex:this._monthsShortRegex)},an.week=function tn(S){return Aa(S,this._week.dow,this._week.doy).week},an.firstDayOfYear=function po(){return this._week.doy},an.firstDayOfWeek=function Ke(){return this._week.dow},an.weekdays=function eh(S,P){var V=D(this._weekdays)?this._weekdays:this._weekdays[S&&!0!==S&&this._weekdays.isFormat.test(P)?"format":"standalone"];return!0===S?Ld(V,this._week.dow):S?V[S.day()]:V},an.weekdaysMin=function nh(S){return!0===S?Ld(this._weekdaysMin,this._week.dow):S?this._weekdaysMin[S.day()]:this._weekdaysMin},an.weekdaysShort=function th(S){return!0===S?Ld(this._weekdaysShort,this._week.dow):S?this._weekdaysShort[S.day()]:this._weekdaysShort},an.weekdaysParse=function ac(S,P,V){var q,Q,he;if(this._weekdaysParseExact)return zr.call(this,S,P,V);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),q=0;q<7;q++){if(Q=ue([2e3,1]).day(q),V&&!this._fullWeekdaysParse[q]&&(this._fullWeekdaysParse[q]=new RegExp("^"+this.weekdays(Q,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[q]=new RegExp("^"+this.weekdaysShort(Q,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[q]=new RegExp("^"+this.weekdaysMin(Q,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[q]||(he="^"+this.weekdays(Q,"")+"|^"+this.weekdaysShort(Q,"")+"|^"+this.weekdaysMin(Q,""),this._weekdaysParse[q]=new RegExp(he.replace(".",""),"i")),V&&"dddd"===P&&this._fullWeekdaysParse[q].test(S))return q;if(V&&"ddd"===P&&this._shortWeekdaysParse[q].test(S))return q;if(V&&"dd"===P&&this._minWeekdaysParse[q].test(S))return q;if(!V&&this._weekdaysParse[q].test(S))return q}},an.weekdaysRegex=function oc(S){return this._weekdaysParseExact?(O(this,"_weekdaysRegex")||tl.call(this),S?this._weekdaysStrictRegex:this._weekdaysRegex):(O(this,"_weekdaysRegex")||(this._weekdaysRegex=As),this._weekdaysStrictRegex&&S?this._weekdaysStrictRegex:this._weekdaysRegex)},an.weekdaysShortRegex=function ia(S){return this._weekdaysParseExact?(O(this,"_weekdaysRegex")||tl.call(this),S?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(O(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=el),this._weekdaysShortStrictRegex&&S?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},an.weekdaysMinRegex=function mo(S){return this._weekdaysParseExact?(O(this,"_weekdaysRegex")||tl.call(this),S?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(O(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ys),this._weekdaysMinStrictRegex&&S?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},an.isPM=function ih(S){return"p"===(S+"").toLowerCase().charAt(0)},an.meridiem=function ff(S,P,V){return S>11?V?"pm":"PM":V?"am":"AM"},j("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(S){var P=S%10;return S+(1===fe(S%100/10)?"th":1===P?"st":2===P?"nd":3===P?"rd":"th")}}),n.lang=Ve("moment.lang is deprecated. Use moment.locale instead.",j),n.langData=Ve("moment.langData is deprecated. Use moment.localeData instead.",X);var Pr=Math.abs;function Gd(S,P,V,q){var Q=$n(P,V);return S._milliseconds+=q*Q._milliseconds,S._days+=q*Q._days,S._months+=q*Q._months,S._bubble()}function gl(S){return S<0?Math.floor(S):Math.ceil(S)}function Hc(S){return 4800*S/146097}function Jn(S){return 146097*S/4800}function mr(S){return function(){return this.as(S)}}var qi=mr("ms"),Mh=mr("s"),Ch=mr("m"),Hf=mr("h"),$d=mr("d"),To=mr("w"),bl=mr("M"),Al=mr("Q"),Rf=mr("y");function sa(S){return function(){return this.isValid()?this._data[S]:NaN}}var vh=sa("milliseconds"),wl=sa("seconds"),Ml=sa("minutes"),xo=sa("hours"),Cl=sa("days"),Pf=sa("months"),Fg=sa("years");var Ea=Math.round,Rc={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function kf(S,P,V,q,Q){return Q.relativeTime(P||1,!!V,S,q)}var Jd=Math.abs;function Os(S){return(S>0)-(S<0)||+S}function Qd(){if(!this.isValid())return this.localeData().invalidDate();var q,Q,he,ve,jt,mn,Ei,Gr,S=Jd(this._milliseconds)/1e3,P=Jd(this._days),V=Jd(this._months),At=this.asSeconds();return At?(q=ie(S/60),Q=ie(q/60),S%=60,q%=60,he=ie(V/12),V%=12,ve=S?S.toFixed(3).replace(/\.?0+$/,""):"",jt=At<0?"-":"",mn=Os(this._months)!==Os(At)?"-":"",Ei=Os(this._days)!==Os(At)?"-":"",Gr=Os(this._milliseconds)!==Os(At)?"-":"",jt+"P"+(he?mn+he+"Y":"")+(V?mn+V+"M":"")+(P?Ei+P+"D":"")+(Q||q||S?"T":"")+(Q?Gr+Q+"H":"")+(q?Gr+q+"M":"")+(S?Gr+ve+"S":"")):"P0D"}var Jt=il.prototype;return Jt.isValid=function sh(){return this._isValid},Jt.abs=function Ah(){var S=this._data;return this._milliseconds=Pr(this._milliseconds),this._days=Pr(this._days),this._months=Pr(this._months),S.milliseconds=Pr(S.milliseconds),S.seconds=Pr(S.seconds),S.minutes=Pr(S.minutes),S.hours=Pr(S.hours),S.months=Pr(S.months),S.years=Pr(S.years),this},Jt.add=function jg(S,P){return Gd(this,S,P,1)},Jt.subtract=function Lf(S,P){return Gd(this,S,P,-1)},Jt.as=function yh(S){if(!this.isValid())return NaN;var P,V,q=this._milliseconds;if("month"===(S=Zt(S))||"quarter"===S||"year"===S)switch(P=this._days+q/864e5,V=this._months+Hc(P),S){case"month":return V;case"quarter":return V/3;case"year":return V/12}else switch(P=this._days+Math.round(Jn(this._months)),S){case"week":return P/7+q/6048e5;case"day":return P+q/864e5;case"hour":return 24*P+q/36e5;case"minute":return 1440*P+q/6e4;case"second":return 86400*P+q/1e3;case"millisecond":return Math.floor(864e5*P)+q;default:throw new Error("Unknown unit "+S)}},Jt.asMilliseconds=qi,Jt.asSeconds=Mh,Jt.asMinutes=Ch,Jt.asHours=Hf,Jt.asDays=$d,Jt.asWeeks=To,Jt.asMonths=bl,Jt.asQuarters=Al,Jt.asYears=Rf,Jt.valueOf=function wh(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*fe(this._months/12):NaN},Jt._bubble=function _l(){var Q,he,ve,At,jt,S=this._milliseconds,P=this._days,V=this._months,q=this._data;return S>=0&&P>=0&&V>=0||S<=0&&P<=0&&V<=0||(S+=864e5*gl(Jn(V)+P),P=0,V=0),q.milliseconds=S%1e3,Q=ie(S/1e3),q.seconds=Q%60,he=ie(Q/60),q.minutes=he%60,ve=ie(he/60),q.hours=ve%24,P+=ie(ve/24),V+=jt=ie(Hc(P)),P-=gl(Jn(jt)),At=ie(V/12),V%=12,q.days=P,q.months=V,q.years=At,this},Jt.clone=function yl(){return $n(this)},Jt.get=function Sa(S){return S=Zt(S),this.isValid()?this[S+"s"]():NaN},Jt.milliseconds=vh,Jt.seconds=wl,Jt.minutes=Ml,Jt.hours=xo,Jt.days=Cl,Jt.weeks=function Th(){return ie(this.days()/7)},Jt.months=Pf,Jt.years=Fg,Jt.humanize=function xh(S,P){if(!this.isValid())return this.localeData().invalidDate();var Q,he,V=!1,q=Rc;return"object"==typeof S&&(P=S,S=!1),"boolean"==typeof S&&(V=S),"object"==typeof P&&(q=Object.assign({},Rc,P),null!=P.s&&null==P.ss&&(q.ss=P.s-1)),he=function Zd(S,P,V,q){var Q=$n(S).abs(),he=Ea(Q.as("s")),ve=Ea(Q.as("m")),At=Ea(Q.as("h")),jt=Ea(Q.as("d")),mn=Ea(Q.as("M")),Ei=Ea(Q.as("w")),Gr=Ea(Q.as("y")),La=he<=V.ss&&["s",he]||he0,La[4]=q,kf.apply(null,La)}(this,!V,q,Q=this.localeData()),V&&(he=Q.pastFuture(+this,he)),Q.postformat(he)},Jt.toISOString=Qd,Jt.toString=Qd,Jt.toJSON=Qd,Jt.locale=fh,Jt.localeData=Es,Jt.toIsoString=Ve("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Qd),Jt.lang=Vd,Je("X",0,0,"unix"),Je("x",0,0,"valueOf"),Ze("x",fa),Ze("X",/[+-]?\d+(\.\d{1,3})?/),Ee("X",function(S,P,V){V._d=new Date(1e3*parseFloat(S))}),Ee("x",function(S,P,V){V._d=new Date(fe(S))}),n.version="2.29.4",function H(S){T=S}(Pn),n.fn=Ue,n.min=function pc(){return Pd("isBefore",[].slice.call(arguments,0))},n.max=function nl(){return Pd("isAfter",[].slice.call(arguments,0))},n.now=function(){return Date.now?Date.now():+new Date},n.utc=ue,n.unix=function bh(S){return Pn(1e3*S)},n.months=function qd(S,P){return Ud(S,P,"months")},n.isDate=ee,n.locale=j,n.invalid=xe,n.duration=$n,n.isMoment=Re,n.weekdays=function Yd(S,P,V){return Lc(S,P,V,"weekdays")},n.parseZone=function Df(){return Pn.apply(null,arguments).parseZone()},n.localeData=X,n.isDuration=rl,n.monthsShort=function $a(S,P){return Ud(S,P,"monthsShort")},n.weekdaysMin=function Wd(S,P,V){return Lc(S,P,V,"weekdaysMin")},n.defineLocale=J,n.updateLocale=function F(S,P){if(null!=P){var V,q,Q=ti;null!=In[S]&&null!=In[S].parentLocale?In[S].set(Te(In[S]._config,P)):(null!=(q=Bi(S))&&(Q=q._config),P=Te(Q,P),null==q&&(P.abbr=S),(V=new Me(P)).parentLocale=In[S],In[S]=V),j(S)}else null!=In[S]&&(null!=In[S].parentLocale?(In[S]=In[S].parentLocale,S===j()&&j(S)):null!=In[S]&&delete In[S]);return In[S]},n.locales=function le(){return $e(In)},n.weekdaysShort=function Wr(S,P,V){return Lc(S,P,V,"weekdaysShort")},n.normalizeUnits=Zt,n.relativeTimeRounding=function Pc(S){return void 0===S?Ea:"function"==typeof S&&(Ea=S,!0)},n.relativeTimeThreshold=function Da(S,P){return void 0!==Rc[S]&&(void 0===P?Rc[S]:(Rc[S]=P,"s"===S&&(Rc.ss=P-1),!0))},n.calendarFormat=function Ss(S,P){var V=S.diff(P,"days",!0);return V<-6?"sameElse":V<-1?"lastWeek":V<0?"lastDay":V<1?"sameDay":V<2?"nextDay":V<7?"nextWeek":"sameElse"},n.prototype=Ue,n.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},n}()},9751:(Y,G,E)=>{"use strict";E.d(G,{y:()=>U});var T=E(930),n=E(727),H=E(8822),D=E(9635),L=E(2416),O=E(576),B=E(2806);let U=(()=>{class ae{constructor(oe){oe&&(this._subscribe=oe)}lift(oe){const re=new ae;return re.source=this,re.operator=oe,re}subscribe(oe,re,be){const we=function te(ae){return ae&&ae instanceof T.Lv||function ee(ae){return ae&&(0,O.m)(ae.next)&&(0,O.m)(ae.error)&&(0,O.m)(ae.complete)}(ae)&&(0,n.Nn)(ae)}(oe)?oe:new T.Hp(oe,re,be);return(0,B.x)(()=>{const{operator:xe,source:Xe}=this;we.add(xe?xe.call(we,Xe):Xe?this._subscribe(we):this._trySubscribe(we))}),we}_trySubscribe(oe){try{return this._subscribe(oe)}catch(re){oe.error(re)}}forEach(oe,re){return new(re=W(re))((be,we)=>{const xe=new T.Hp({next:Xe=>{try{oe(Xe)}catch(et){we(et),xe.unsubscribe()}},error:we,complete:be});this.subscribe(xe)})}_subscribe(oe){var re;return null===(re=this.source)||void 0===re?void 0:re.subscribe(oe)}[H.L](){return this}pipe(...oe){return(0,D.U)(oe)(this)}toPromise(oe){return new(oe=W(oe))((re,be)=>{let we;this.subscribe(xe=>we=xe,xe=>be(xe),()=>re(we))})}}return ae.create=ue=>new ae(ue),ae})();function W(ae){var ue;return null!==(ue=ae??L.v.Promise)&&void 0!==ue?ue:Promise}},7579:(Y,G,E)=>{"use strict";E.d(G,{x:()=>B});var T=E(9751),n=E(727);const D=(0,E(3888).d)(W=>function(){W(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var L=E(8737),O=E(2806);let B=(()=>{class W extends T.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(te){const ae=new U(this,this);return ae.operator=te,ae}_throwIfClosed(){if(this.closed)throw new D}next(te){(0,O.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const ae of this.currentObservers)ae.next(te)}})}error(te){(0,O.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=te;const{observers:ae}=this;for(;ae.length;)ae.shift().error(te)}})}complete(){(0,O.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:te}=this;for(;te.length;)te.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var te;return(null===(te=this.observers)||void 0===te?void 0:te.length)>0}_trySubscribe(te){return this._throwIfClosed(),super._trySubscribe(te)}_subscribe(te){return this._throwIfClosed(),this._checkFinalizedStatuses(te),this._innerSubscribe(te)}_innerSubscribe(te){const{hasError:ae,isStopped:ue,observers:oe}=this;return ae||ue?n.Lc:(this.currentObservers=null,oe.push(te),new n.w0(()=>{this.currentObservers=null,(0,L.P)(oe,te)}))}_checkFinalizedStatuses(te){const{hasError:ae,thrownError:ue,isStopped:oe}=this;ae?te.error(ue):oe&&te.complete()}asObservable(){const te=new T.y;return te.source=this,te}}return W.create=(ee,te)=>new U(ee,te),W})();class U extends B{constructor(ee,te){super(),this.destination=ee,this.source=te}next(ee){var te,ae;null===(ae=null===(te=this.destination)||void 0===te?void 0:te.next)||void 0===ae||ae.call(te,ee)}error(ee){var te,ae;null===(ae=null===(te=this.destination)||void 0===te?void 0:te.error)||void 0===ae||ae.call(te,ee)}complete(){var ee,te;null===(te=null===(ee=this.destination)||void 0===ee?void 0:ee.complete)||void 0===te||te.call(ee)}_subscribe(ee){var te,ae;return null!==(ae=null===(te=this.source)||void 0===te?void 0:te.subscribe(ee))&&void 0!==ae?ae:n.Lc}}},930:(Y,G,E)=>{"use strict";E.d(G,{Hp:()=>be,Lv:()=>ae});var T=E(576),n=E(727),H=E(2416),D=E(7849),L=E(5032);const O=W("C",void 0,void 0);function W(ke,De,Re){return{kind:ke,value:De,error:Re}}var ee=E(3410),te=E(2806);class ae extends n.w0{constructor(De){super(),this.isStopped=!1,De?(this.destination=De,(0,n.Nn)(De)&&De.add(this)):this.destination=et}static create(De,Re,_t){return new be(De,Re,_t)}next(De){this.isStopped?Xe(function U(ke){return W("N",ke,void 0)}(De),this):this._next(De)}error(De){this.isStopped?Xe(function B(ke){return W("E",void 0,ke)}(De),this):(this.isStopped=!0,this._error(De))}complete(){this.isStopped?Xe(O,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(De){this.destination.next(De)}_error(De){try{this.destination.error(De)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const ue=Function.prototype.bind;function oe(ke,De){return ue.call(ke,De)}class re{constructor(De){this.partialObserver=De}next(De){const{partialObserver:Re}=this;if(Re.next)try{Re.next(De)}catch(_t){we(_t)}}error(De){const{partialObserver:Re}=this;if(Re.error)try{Re.error(De)}catch(_t){we(_t)}else we(De)}complete(){const{partialObserver:De}=this;if(De.complete)try{De.complete()}catch(Re){we(Re)}}}class be extends ae{constructor(De,Re,_t){let Ve;if(super(),(0,T.m)(De)||!De)Ve={next:De??void 0,error:Re??void 0,complete:_t??void 0};else{let ze;this&&H.v.useDeprecatedNextContext?(ze=Object.create(De),ze.unsubscribe=()=>this.unsubscribe(),Ve={next:De.next&&oe(De.next,ze),error:De.error&&oe(De.error,ze),complete:De.complete&&oe(De.complete,ze)}):Ve=De}this.destination=new re(Ve)}}function we(ke){H.v.useDeprecatedSynchronousErrorHandling?(0,te.O)(ke):(0,D.h)(ke)}function Xe(ke,De){const{onStoppedNotification:Re}=H.v;Re&&ee.z.setTimeout(()=>Re(ke,De))}const et={closed:!0,next:L.Z,error:function xe(ke){throw ke},complete:L.Z}},727:(Y,G,E)=>{"use strict";E.d(G,{Lc:()=>O,w0:()=>L,Nn:()=>B});var T=E(576);const H=(0,E(3888).d)(W=>function(te){W(this),this.message=te?`${te.length} errors occurred during unsubscription:\n${te.map((ae,ue)=>`${ue+1}) ${ae.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=te});var D=E(8737);class L{constructor(ee){this.initialTeardown=ee,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let ee;if(!this.closed){this.closed=!0;const{_parentage:te}=this;if(te)if(this._parentage=null,Array.isArray(te))for(const oe of te)oe.remove(this);else te.remove(this);const{initialTeardown:ae}=this;if((0,T.m)(ae))try{ae()}catch(oe){ee=oe instanceof H?oe.errors:[oe]}const{_finalizers:ue}=this;if(ue){this._finalizers=null;for(const oe of ue)try{U(oe)}catch(re){ee=ee??[],re instanceof H?ee=[...ee,...re.errors]:ee.push(re)}}if(ee)throw new H(ee)}}add(ee){var te;if(ee&&ee!==this)if(this.closed)U(ee);else{if(ee instanceof L){if(ee.closed||ee._hasParent(this))return;ee._addParent(this)}(this._finalizers=null!==(te=this._finalizers)&&void 0!==te?te:[]).push(ee)}}_hasParent(ee){const{_parentage:te}=this;return te===ee||Array.isArray(te)&&te.includes(ee)}_addParent(ee){const{_parentage:te}=this;this._parentage=Array.isArray(te)?(te.push(ee),te):te?[te,ee]:ee}_removeParent(ee){const{_parentage:te}=this;te===ee?this._parentage=null:Array.isArray(te)&&(0,D.P)(te,ee)}remove(ee){const{_finalizers:te}=this;te&&(0,D.P)(te,ee),ee instanceof L&&ee._removeParent(this)}}L.EMPTY=(()=>{const W=new L;return W.closed=!0,W})();const O=L.EMPTY;function B(W){return W instanceof L||W&&"closed"in W&&(0,T.m)(W.remove)&&(0,T.m)(W.add)&&(0,T.m)(W.unsubscribe)}function U(W){(0,T.m)(W)?W():W.unsubscribe()}},2416:(Y,G,E)=>{"use strict";E.d(G,{v:()=>T});const T={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9841:(Y,G,E)=>{"use strict";E.d(G,{a:()=>ee});var T=E(9751),n=E(4742),H=E(2076),D=E(4671),L=E(3268),O=E(3269),B=E(1810),U=E(5403),W=E(9672);function ee(...ue){const oe=(0,O.yG)(ue),re=(0,O.jO)(ue),{args:be,keys:we}=(0,n.D)(ue);if(0===be.length)return(0,H.D)([],oe);const xe=new T.y(function te(ue,oe,re=D.y){return be=>{ae(oe,()=>{const{length:we}=ue,xe=new Array(we);let Xe=we,et=we;for(let ke=0;ke{const De=(0,H.D)(ue[ke],oe);let Re=!1;De.subscribe((0,U.x)(be,_t=>{xe[ke]=_t,Re||(Re=!0,et--),et||be.next(re(xe.slice()))},()=>{--Xe||be.complete()}))},be)},be)}}(be,oe,we?Xe=>(0,B.n)(we,Xe):D.y));return re?xe.pipe((0,L.Z)(re)):xe}function ae(ue,oe,re){ue?(0,W.f)(re,ue,oe):oe()}},7272:(Y,G,E)=>{"use strict";E.d(G,{z:()=>L});var T=E(8189),H=E(3269),D=E(2076);function L(...O){return function n(){return(0,T.J)(1)}()((0,D.D)(O,(0,H.yG)(O)))}},515:(Y,G,E)=>{"use strict";E.d(G,{E:()=>n});const n=new(E(9751).y)(L=>L.complete())},2076:(Y,G,E)=>{"use strict";E.d(G,{D:()=>_t});var T=E(8421),n=E(9672),H=E(4482),D=E(5403);function L(Ve,ze=0){return(0,H.e)((Fe,me)=>{Fe.subscribe((0,D.x)(me,_e=>(0,n.f)(me,Ve,()=>me.next(_e),ze),()=>(0,n.f)(me,Ve,()=>me.complete(),ze),_e=>(0,n.f)(me,Ve,()=>me.error(_e),ze)))})}function O(Ve,ze=0){return(0,H.e)((Fe,me)=>{me.add(Ve.schedule(()=>Fe.subscribe(me),ze))})}var W=E(9751),te=E(2202),ae=E(576);function oe(Ve,ze){if(!Ve)throw new Error("Iterable cannot be null");return new W.y(Fe=>{(0,n.f)(Fe,ze,()=>{const me=Ve[Symbol.asyncIterator]();(0,n.f)(Fe,ze,()=>{me.next().then(_e=>{_e.done?Fe.complete():Fe.next(_e.value)})},0,!0)})})}var re=E(3670),be=E(8239),we=E(1144),xe=E(6495),Xe=E(2206),et=E(4532),ke=E(3260);function _t(Ve,ze){return ze?function Re(Ve,ze){if(null!=Ve){if((0,re.c)(Ve))return function B(Ve,ze){return(0,T.Xf)(Ve).pipe(O(ze),L(ze))}(Ve,ze);if((0,we.z)(Ve))return function ee(Ve,ze){return new W.y(Fe=>{let me=0;return ze.schedule(function(){me===Ve.length?Fe.complete():(Fe.next(Ve[me++]),Fe.closed||this.schedule())})})}(Ve,ze);if((0,be.t)(Ve))return function U(Ve,ze){return(0,T.Xf)(Ve).pipe(O(ze),L(ze))}(Ve,ze);if((0,Xe.D)(Ve))return oe(Ve,ze);if((0,xe.T)(Ve))return function ue(Ve,ze){return new W.y(Fe=>{let me;return(0,n.f)(Fe,ze,()=>{me=Ve[te.h](),(0,n.f)(Fe,ze,()=>{let _e,Te;try{({value:_e,done:Te}=me.next())}catch(Me){return void Fe.error(Me)}Te?Fe.complete():Fe.next(_e)},0,!0)}),()=>(0,ae.m)(me?.return)&&me.return()})}(Ve,ze);if((0,ke.L)(Ve))return function De(Ve,ze){return oe((0,ke.Q)(Ve),ze)}(Ve,ze)}throw(0,et.z)(Ve)}(Ve,ze):(0,T.Xf)(Ve)}},8421:(Y,G,E)=>{"use strict";E.d(G,{Xf:()=>ue});var T=E(655),n=E(1144),H=E(8239),D=E(9751),L=E(3670),O=E(2206),B=E(4532),U=E(6495),W=E(3260),ee=E(576),te=E(7849),ae=E(8822);function ue(ke){if(ke instanceof D.y)return ke;if(null!=ke){if((0,L.c)(ke))return function oe(ke){return new D.y(De=>{const Re=ke[ae.L]();if((0,ee.m)(Re.subscribe))return Re.subscribe(De);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(ke);if((0,n.z)(ke))return function re(ke){return new D.y(De=>{for(let Re=0;Re{ke.then(Re=>{De.closed||(De.next(Re),De.complete())},Re=>De.error(Re)).then(null,te.h)})}(ke);if((0,O.D)(ke))return xe(ke);if((0,U.T)(ke))return function we(ke){return new D.y(De=>{for(const Re of ke)if(De.next(Re),De.closed)return;De.complete()})}(ke);if((0,W.L)(ke))return function Xe(ke){return xe((0,W.Q)(ke))}(ke)}throw(0,B.z)(ke)}function xe(ke){return new D.y(De=>{(function et(ke,De){var Re,_t,Ve,ze;return(0,T.mG)(this,void 0,void 0,function*(){try{for(Re=(0,T.KL)(ke);!(_t=yield Re.next()).done;)if(De.next(_t.value),De.closed)return}catch(Fe){Ve={error:Fe}}finally{try{_t&&!_t.done&&(ze=Re.return)&&(yield ze.call(Re))}finally{if(Ve)throw Ve.error}}De.complete()})})(ke,De).catch(Re=>De.error(Re))})}},6451:(Y,G,E)=>{"use strict";E.d(G,{T:()=>O});var T=E(8189),n=E(8421),H=E(515),D=E(3269),L=E(2076);function O(...B){const U=(0,D.yG)(B),W=(0,D._6)(B,1/0),ee=B;return ee.length?1===ee.length?(0,n.Xf)(ee[0]):(0,T.J)(W)((0,L.D)(ee,U)):H.E}},9646:(Y,G,E)=>{"use strict";E.d(G,{of:()=>H});var T=E(3269),n=E(2076);function H(...D){const L=(0,T.yG)(D);return(0,n.D)(D,L)}},102:(Y,G,E)=>{"use strict";E.d(G,{S:()=>O});var T=E(9751),n=E(8421);const{isArray:H}=Array;var L=E(5403);function O(...U){return 1===(U=function D(U){return 1===U.length&&H(U[0])?U[0]:U}(U)).length?(0,n.Xf)(U[0]):new T.y(function B(U){return W=>{let ee=[];for(let te=0;ee&&!W.closed&&te{if(ee){for(let ue=0;ue{"use strict";E.d(G,{_:()=>H});var T=E(9751),n=E(576);function H(D,L){const O=(0,n.m)(D)?D:()=>D,B=U=>U.error(O());return new T.y(L?U=>L.schedule(B,0,U):B)}},2805:(Y,G,E)=>{"use strict";E.d(G,{H:()=>L});var T=E(9751),n=E(4986),H=E(3532),D=E(1165);function L(O=0,B,U=n.P){let W=-1;return null!=B&&((0,H.K)(B)?U=B:W=B),new T.y(ee=>{let te=(0,D.q)(O)?+O-U.now():O;te<0&&(te=0);let ae=0;return U.schedule(function(){ee.closed||(ee.next(ae++),0<=W?this.schedule(void 0,W):ee.complete())},te)})}},5403:(Y,G,E)=>{"use strict";E.d(G,{x:()=>n});var T=E(930);function n(D,L,O,B,U){return new H(D,L,O,B,U)}class H extends T.Lv{constructor(L,O,B,U,W,ee){super(L),this.onFinalize=W,this.shouldUnsubscribe=ee,this._next=O?function(te){try{O(te)}catch(ae){L.error(ae)}}:super._next,this._error=U?function(te){try{U(te)}catch(ae){L.error(ae)}finally{this.unsubscribe()}}:super._error,this._complete=B?function(){try{B()}catch(te){L.error(te)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var L;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:O}=this;super.unsubscribe(),!O&&(null===(L=this.onFinalize)||void 0===L||L.call(this))}}}},262:(Y,G,E)=>{"use strict";E.d(G,{K:()=>D});var T=E(8421),n=E(5403),H=E(4482);function D(L){return(0,H.e)((O,B)=>{let ee,U=null,W=!1;U=O.subscribe((0,n.x)(B,void 0,void 0,te=>{ee=(0,T.Xf)(L(te,D(L)(O))),U?(U.unsubscribe(),U=null,ee.subscribe(B)):W=!0})),W&&(U.unsubscribe(),U=null,ee.subscribe(B))})}},4351:(Y,G,E)=>{"use strict";E.d(G,{b:()=>H});var T=E(5577),n=E(576);function H(D,L){return(0,n.m)(L)?(0,T.z)(D,L,1):(0,T.z)(D,1)}},8372:(Y,G,E)=>{"use strict";E.d(G,{b:()=>D});var T=E(4986),n=E(4482),H=E(5403);function D(L,O=T.z){return(0,n.e)((B,U)=>{let W=null,ee=null,te=null;const ae=()=>{if(W){W.unsubscribe(),W=null;const oe=ee;ee=null,U.next(oe)}};function ue(){const oe=te+L,re=O.now();if(re{ee=oe,te=O.now(),W||(W=O.schedule(ue,L),U.add(W))},()=>{ae(),U.complete()},void 0,()=>{ee=W=null}))})}},6590:(Y,G,E)=>{"use strict";E.d(G,{d:()=>H});var T=E(4482),n=E(5403);function H(D){return(0,T.e)((L,O)=>{let B=!1;L.subscribe((0,n.x)(O,U=>{B=!0,O.next(U)},()=>{B||O.next(D),O.complete()}))})}},1005:(Y,G,E)=>{"use strict";E.d(G,{g:()=>ae});var T=E(4986),n=E(7272),H=E(5698),D=E(4482),L=E(5403),O=E(5032),U=E(9718),W=E(5577);function ee(ue,oe){return oe?re=>(0,n.z)(oe.pipe((0,H.q)(1),function B(){return(0,D.e)((ue,oe)=>{ue.subscribe((0,L.x)(oe,O.Z))})}()),re.pipe(ee(ue))):(0,W.z)((re,be)=>ue(re,be).pipe((0,H.q)(1),(0,U.h)(re)))}var te=E(2805);function ae(ue,oe=T.z){const re=(0,te.H)(ue,oe);return ee(()=>re)}},9300:(Y,G,E)=>{"use strict";E.d(G,{h:()=>H});var T=E(4482),n=E(5403);function H(D,L){return(0,T.e)((O,B)=>{let U=0;O.subscribe((0,n.x)(B,W=>D.call(L,W,U++)&&B.next(W)))})}},590:(Y,G,E)=>{"use strict";E.d(G,{P:()=>B});var T=E(6805),n=E(9300),H=E(5698),D=E(6590),L=E(8068),O=E(4671);function B(U,W){const ee=arguments.length>=2;return te=>te.pipe(U?(0,n.h)((ae,ue)=>U(ae,ue,te)):O.y,(0,H.q)(1),ee?(0,D.d)(W):(0,L.T)(()=>new T.K))}},4004:(Y,G,E)=>{"use strict";E.d(G,{U:()=>H});var T=E(4482),n=E(5403);function H(D,L){return(0,T.e)((O,B)=>{let U=0;O.subscribe((0,n.x)(B,W=>{B.next(D.call(L,W,U++))}))})}},9718:(Y,G,E)=>{"use strict";E.d(G,{h:()=>n});var T=E(4004);function n(H){return(0,T.U)(()=>H)}},8189:(Y,G,E)=>{"use strict";E.d(G,{J:()=>H});var T=E(5577),n=E(4671);function H(D=1/0){return(0,T.z)(n.y,D)}},5577:(Y,G,E)=>{"use strict";E.d(G,{z:()=>U});var T=E(4004),n=E(8421),H=E(4482),D=E(9672),L=E(5403),B=E(576);function U(W,ee,te=1/0){return(0,B.m)(ee)?U((ae,ue)=>(0,T.U)((oe,re)=>ee(ae,oe,ue,re))((0,n.Xf)(W(ae,ue))),te):("number"==typeof ee&&(te=ee),(0,H.e)((ae,ue)=>function O(W,ee,te,ae,ue,oe,re,be){const we=[];let xe=0,Xe=0,et=!1;const ke=()=>{et&&!we.length&&!xe&&ee.complete()},De=_t=>xe{oe&&ee.next(_t),xe++;let Ve=!1;(0,n.Xf)(te(_t,Xe++)).subscribe((0,L.x)(ee,ze=>{ue?.(ze),oe?De(ze):ee.next(ze)},()=>{Ve=!0},void 0,()=>{if(Ve)try{for(xe--;we.length&&xeRe(ze)):Re(ze)}ke()}catch(ze){ee.error(ze)}}))};return W.subscribe((0,L.x)(ee,De,()=>{et=!0,ke()})),()=>{be?.()}}(ae,ue,W,te)))}},3099:(Y,G,E)=>{"use strict";E.d(G,{B:()=>L});var T=E(8421),n=E(7579),H=E(930),D=E(4482);function L(B={}){const{connector:U=(()=>new n.x),resetOnError:W=!0,resetOnComplete:ee=!0,resetOnRefCountZero:te=!0}=B;return ae=>{let ue,oe,re,be=0,we=!1,xe=!1;const Xe=()=>{oe?.unsubscribe(),oe=void 0},et=()=>{Xe(),ue=re=void 0,we=xe=!1},ke=()=>{const De=ue;et(),De?.unsubscribe()};return(0,D.e)((De,Re)=>{be++,!xe&&!we&&Xe();const _t=re=re??U();Re.add(()=>{be--,0===be&&!xe&&!we&&(oe=O(ke,te))}),_t.subscribe(Re),!ue&&be>0&&(ue=new H.Hp({next:Ve=>_t.next(Ve),error:Ve=>{xe=!0,Xe(),oe=O(et,W,Ve),_t.error(Ve)},complete:()=>{we=!0,Xe(),oe=O(et,ee),_t.complete()}}),(0,T.Xf)(De).subscribe(ue))})(ae)}}function O(B,U,...W){if(!0===U)return void B();if(!1===U)return;const ee=new H.Hp({next:()=>{ee.unsubscribe(),B()}});return U(...W).subscribe(ee)}},3900:(Y,G,E)=>{"use strict";E.d(G,{w:()=>D});var T=E(8421),n=E(4482),H=E(5403);function D(L,O){return(0,n.e)((B,U)=>{let W=null,ee=0,te=!1;const ae=()=>te&&!W&&U.complete();B.subscribe((0,H.x)(U,ue=>{W?.unsubscribe();let oe=0;const re=ee++;(0,T.Xf)(L(ue,re)).subscribe(W=(0,H.x)(U,be=>U.next(O?O(ue,be,re,oe++):be),()=>{W=null,ae()}))},()=>{te=!0,ae()}))})}},5698:(Y,G,E)=>{"use strict";E.d(G,{q:()=>D});var T=E(515),n=E(4482),H=E(5403);function D(L){return L<=0?()=>T.E:(0,n.e)((O,B)=>{let U=0;O.subscribe((0,H.x)(B,W=>{++U<=L&&(B.next(W),L<=U&&B.complete())}))})}},8505:(Y,G,E)=>{"use strict";E.d(G,{b:()=>L});var T=E(576),n=E(4482),H=E(5403),D=E(4671);function L(O,B,U){const W=(0,T.m)(O)||B||U?{next:O,error:B,complete:U}:O;return W?(0,n.e)((ee,te)=>{var ae;null===(ae=W.subscribe)||void 0===ae||ae.call(W);let ue=!0;ee.subscribe((0,H.x)(te,oe=>{var re;null===(re=W.next)||void 0===re||re.call(W,oe),te.next(oe)},()=>{var oe;ue=!1,null===(oe=W.complete)||void 0===oe||oe.call(W),te.complete()},oe=>{var re;ue=!1,null===(re=W.error)||void 0===re||re.call(W,oe),te.error(oe)},()=>{var oe,re;ue&&(null===(oe=W.unsubscribe)||void 0===oe||oe.call(W)),null===(re=W.finalize)||void 0===re||re.call(W)}))}):D.y}},8068:(Y,G,E)=>{"use strict";E.d(G,{T:()=>D});var T=E(6805),n=E(4482),H=E(5403);function D(O=L){return(0,n.e)((B,U)=>{let W=!1;B.subscribe((0,H.x)(U,ee=>{W=!0,U.next(ee)},()=>W?U.complete():U.error(O())))})}function L(){return new T.K}},7414:(Y,G,E)=>{"use strict";E.d(G,{V:()=>W});var T=E(4986),n=E(1165),H=E(4482),D=E(8421),L=E(3888),O=E(5403),B=E(9672);const U=(0,L.d)(te=>function(ue=null){te(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=ue});function W(te,ae){const{first:ue,each:oe,with:re=ee,scheduler:be=ae??T.z,meta:we=null}=(0,n.q)(te)?{first:te}:"number"==typeof te?{each:te}:te;if(null==ue&&null==oe)throw new TypeError("No timeout provided.");return(0,H.e)((xe,Xe)=>{let et,ke,De=null,Re=0;const _t=Ve=>{ke=(0,B.f)(Xe,be,()=>{try{et.unsubscribe(),(0,D.Xf)(re({meta:we,lastValue:De,seen:Re})).subscribe(Xe)}catch(ze){Xe.error(ze)}},Ve)};et=xe.subscribe((0,O.x)(Xe,Ve=>{ke?.unsubscribe(),Re++,Xe.next(De=Ve),oe>0&&_t(oe)},void 0,void 0,()=>{ke?.closed||ke?.unsubscribe(),De=null})),!Re&&_t(null!=ue?"number"==typeof ue?ue:+ue-be.now():oe)})}function ee(te){throw new U(te)}},4408:(Y,G,E)=>{"use strict";E.d(G,{o:()=>L});var T=E(727);class n extends T.w0{constructor(B,U){super()}schedule(B,U=0){return this}}const H={setInterval(O,B,...U){const{delegate:W}=H;return W?.setInterval?W.setInterval(O,B,...U):setInterval(O,B,...U)},clearInterval(O){const{delegate:B}=H;return(B?.clearInterval||clearInterval)(O)},delegate:void 0};var D=E(8737);class L extends n{constructor(B,U){super(B,U),this.scheduler=B,this.work=U,this.pending=!1}schedule(B,U=0){if(this.closed)return this;this.state=B;const W=this.id,ee=this.scheduler;return null!=W&&(this.id=this.recycleAsyncId(ee,W,U)),this.pending=!0,this.delay=U,this.id=this.id||this.requestAsyncId(ee,this.id,U),this}requestAsyncId(B,U,W=0){return H.setInterval(B.flush.bind(B,this),W)}recycleAsyncId(B,U,W=0){if(null!=W&&this.delay===W&&!1===this.pending)return U;H.clearInterval(U)}execute(B,U){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const W=this._execute(B,U);if(W)return W;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(B,U){let ee,W=!1;try{this.work(B)}catch(te){W=!0,ee=te||new Error("Scheduled action threw falsy error")}if(W)return this.unsubscribe(),ee}unsubscribe(){if(!this.closed){const{id:B,scheduler:U}=this,{actions:W}=U;this.work=this.state=this.scheduler=null,this.pending=!1,(0,D.P)(W,this),null!=B&&(this.id=this.recycleAsyncId(U,B,null)),this.delay=null,super.unsubscribe()}}}},7565:(Y,G,E)=>{"use strict";E.d(G,{v:()=>H});var T=E(6063);class n{constructor(L,O=n.now){this.schedulerActionCtor=L,this.now=O}schedule(L,O=0,B){return new this.schedulerActionCtor(this,L).schedule(B,O)}}n.now=T.l.now;class H extends n{constructor(L,O=n.now){super(L,O),this.actions=[],this._active=!1,this._scheduled=void 0}flush(L){const{actions:O}=this;if(this._active)return void O.push(L);let B;this._active=!0;do{if(B=L.execute(L.state,L.delay))break}while(L=O.shift());if(this._active=!1,B){for(;L=O.shift();)L.unsubscribe();throw B}}}},4986:(Y,G,E)=>{"use strict";E.d(G,{P:()=>D,z:()=>H});var T=E(4408);const H=new(E(7565).v)(T.o),D=H},6063:(Y,G,E)=>{"use strict";E.d(G,{l:()=>T});const T={now:()=>(T.delegate||Date).now(),delegate:void 0}},3410:(Y,G,E)=>{"use strict";E.d(G,{z:()=>T});const T={setTimeout(n,H,...D){const{delegate:L}=T;return L?.setTimeout?L.setTimeout(n,H,...D):setTimeout(n,H,...D)},clearTimeout(n){const{delegate:H}=T;return(H?.clearTimeout||clearTimeout)(n)},delegate:void 0}},2202:(Y,G,E)=>{"use strict";E.d(G,{h:()=>n});const n=function T(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(Y,G,E)=>{"use strict";E.d(G,{L:()=>T});const T="function"==typeof Symbol&&Symbol.observable||"@@observable"},6805:(Y,G,E)=>{"use strict";E.d(G,{K:()=>n});const n=(0,E(3888).d)(H=>function(){H(this),this.name="EmptyError",this.message="no elements in sequence"})},3269:(Y,G,E)=>{"use strict";E.d(G,{_6:()=>O,jO:()=>D,yG:()=>L});var T=E(576),n=E(3532);function H(B){return B[B.length-1]}function D(B){return(0,T.m)(H(B))?B.pop():void 0}function L(B){return(0,n.K)(H(B))?B.pop():void 0}function O(B,U){return"number"==typeof H(B)?B.pop():U}},4742:(Y,G,E)=>{"use strict";E.d(G,{D:()=>L});const{isArray:T}=Array,{getPrototypeOf:n,prototype:H,keys:D}=Object;function L(B){if(1===B.length){const U=B[0];if(T(U))return{args:U,keys:null};if(function O(B){return B&&"object"==typeof B&&n(B)===H}(U)){const W=D(U);return{args:W.map(ee=>U[ee]),keys:W}}}return{args:B,keys:null}}},8737:(Y,G,E)=>{"use strict";function T(n,H){if(n){const D=n.indexOf(H);0<=D&&n.splice(D,1)}}E.d(G,{P:()=>T})},3888:(Y,G,E)=>{"use strict";function T(n){const D=n(L=>{Error.call(L),L.stack=(new Error).stack});return D.prototype=Object.create(Error.prototype),D.prototype.constructor=D,D}E.d(G,{d:()=>T})},1810:(Y,G,E)=>{"use strict";function T(n,H){return n.reduce((D,L,O)=>(D[L]=H[O],D),{})}E.d(G,{n:()=>T})},2806:(Y,G,E)=>{"use strict";E.d(G,{O:()=>D,x:()=>H});var T=E(2416);let n=null;function H(L){if(T.v.useDeprecatedSynchronousErrorHandling){const O=!n;if(O&&(n={errorThrown:!1,error:null}),L(),O){const{errorThrown:B,error:U}=n;if(n=null,B)throw U}}else L()}function D(L){T.v.useDeprecatedSynchronousErrorHandling&&n&&(n.errorThrown=!0,n.error=L)}},9672:(Y,G,E)=>{"use strict";function T(n,H,D,L=0,O=!1){const B=H.schedule(function(){D(),O?n.add(this.schedule(null,L)):this.unsubscribe()},L);if(n.add(B),!O)return B}E.d(G,{f:()=>T})},4671:(Y,G,E)=>{"use strict";function T(n){return n}E.d(G,{y:()=>T})},1144:(Y,G,E)=>{"use strict";E.d(G,{z:()=>T});const T=n=>n&&"number"==typeof n.length&&"function"!=typeof n},2206:(Y,G,E)=>{"use strict";E.d(G,{D:()=>n});var T=E(576);function n(H){return Symbol.asyncIterator&&(0,T.m)(H?.[Symbol.asyncIterator])}},1165:(Y,G,E)=>{"use strict";function T(n){return n instanceof Date&&!isNaN(n)}E.d(G,{q:()=>T})},576:(Y,G,E)=>{"use strict";function T(n){return"function"==typeof n}E.d(G,{m:()=>T})},3670:(Y,G,E)=>{"use strict";E.d(G,{c:()=>H});var T=E(8822),n=E(576);function H(D){return(0,n.m)(D[T.L])}},6495:(Y,G,E)=>{"use strict";E.d(G,{T:()=>H});var T=E(2202),n=E(576);function H(D){return(0,n.m)(D?.[T.h])}},8239:(Y,G,E)=>{"use strict";E.d(G,{t:()=>n});var T=E(576);function n(H){return(0,T.m)(H?.then)}},3260:(Y,G,E)=>{"use strict";E.d(G,{L:()=>D,Q:()=>H});var T=E(655),n=E(576);function H(L){return(0,T.FC)(this,arguments,function*(){const B=L.getReader();try{for(;;){const{value:U,done:W}=yield(0,T.qq)(B.read());if(W)return yield(0,T.qq)(void 0);yield yield(0,T.qq)(U)}}finally{B.releaseLock()}})}function D(L){return(0,n.m)(L?.getReader)}},3532:(Y,G,E)=>{"use strict";E.d(G,{K:()=>n});var T=E(576);function n(H){return H&&(0,T.m)(H.schedule)}},4482:(Y,G,E)=>{"use strict";E.d(G,{A:()=>n,e:()=>H});var T=E(576);function n(D){return(0,T.m)(D?.lift)}function H(D){return L=>{if(n(L))return L.lift(function(O){try{return D(O,this)}catch(B){this.error(B)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(Y,G,E)=>{"use strict";E.d(G,{Z:()=>D});var T=E(4004);const{isArray:n}=Array;function D(L){return(0,T.U)(O=>function H(L,O){return n(O)?L(...O):L(O)}(L,O))}},5032:(Y,G,E)=>{"use strict";function T(){}E.d(G,{Z:()=>T})},9635:(Y,G,E)=>{"use strict";E.d(G,{U:()=>H,z:()=>n});var T=E(4671);function n(...D){return H(D)}function H(D){return 0===D.length?T.y:1===D.length?D[0]:function(O){return D.reduce((B,U)=>U(B),O)}}},7849:(Y,G,E)=>{"use strict";E.d(G,{h:()=>H});var T=E(2416),n=E(3410);function H(D){n.z.setTimeout(()=>{const{onUnhandledError:L}=T.v;if(!L)throw D;L(D)})}},4532:(Y,G,E)=>{"use strict";function T(n){return new TypeError(`You provided ${null!==n&&"object"==typeof n?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}E.d(G,{z:()=>T})},6700:(Y,G,E)=>{var T={"./af":7088,"./af.js":7088,"./ar":7038,"./ar-dz":2502,"./ar-dz.js":2502,"./ar-kw":128,"./ar-kw.js":128,"./ar-ly":4519,"./ar-ly.js":4519,"./ar-ma":5443,"./ar-ma.js":5443,"./ar-sa":7642,"./ar-sa.js":7642,"./ar-tn":8592,"./ar-tn.js":8592,"./ar.js":7038,"./az":1213,"./az.js":1213,"./be":9191,"./be.js":9191,"./bg":322,"./bg.js":322,"./bm":8042,"./bm.js":8042,"./bn":9620,"./bn-bd":5903,"./bn-bd.js":5903,"./bn.js":9620,"./bo":9645,"./bo.js":9645,"./br":5020,"./br.js":5020,"./bs":4792,"./bs.js":4792,"./ca":7980,"./ca.js":7980,"./cs":7322,"./cs.js":7322,"./cv":365,"./cv.js":365,"./cy":2092,"./cy.js":2092,"./da":7387,"./da.js":7387,"./de":4307,"./de-at":9459,"./de-at.js":9459,"./de-ch":3694,"./de-ch.js":3694,"./de.js":4307,"./dv":9659,"./dv.js":9659,"./el":3460,"./el.js":3460,"./en-au":4369,"./en-au.js":4369,"./en-ca":530,"./en-ca.js":530,"./en-gb":9998,"./en-gb.js":9998,"./en-ie":3391,"./en-ie.js":3391,"./en-il":5414,"./en-il.js":5414,"./en-in":9615,"./en-in.js":9615,"./en-nz":1248,"./en-nz.js":1248,"./en-sg":3767,"./en-sg.js":3767,"./eo":4530,"./eo.js":4530,"./es":6866,"./es-do":8944,"./es-do.js":8944,"./es-mx":9116,"./es-mx.js":9116,"./es-us":3609,"./es-us.js":3609,"./es.js":6866,"./et":6725,"./et.js":6725,"./eu":7931,"./eu.js":7931,"./fa":6417,"./fa.js":6417,"./fi":944,"./fi.js":944,"./fil":1766,"./fil.js":1766,"./fo":5867,"./fo.js":5867,"./fr":1636,"./fr-ca":6848,"./fr-ca.js":6848,"./fr-ch":7773,"./fr-ch.js":7773,"./fr.js":1636,"./fy":4940,"./fy.js":4940,"./ga":1402,"./ga.js":1402,"./gd":6924,"./gd.js":6924,"./gl":6398,"./gl.js":6398,"./gom-deva":2457,"./gom-deva.js":2457,"./gom-latn":2545,"./gom-latn.js":2545,"./gu":2641,"./gu.js":2641,"./he":7536,"./he.js":7536,"./hi":6335,"./hi.js":6335,"./hr":7458,"./hr.js":7458,"./hu":6540,"./hu.js":6540,"./hy-am":5283,"./hy-am.js":5283,"./id":8780,"./id.js":8780,"./is":4205,"./is.js":4205,"./it":4211,"./it-ch":9985,"./it-ch.js":9985,"./it.js":4211,"./ja":1003,"./ja.js":1003,"./jv":420,"./jv.js":420,"./ka":851,"./ka.js":851,"./kk":6074,"./kk.js":6074,"./km":3343,"./km.js":3343,"./kn":4799,"./kn.js":4799,"./ko":3549,"./ko.js":3549,"./ku":1037,"./ku.js":1037,"./ky":3125,"./ky.js":3125,"./lb":9586,"./lb.js":9586,"./lo":2349,"./lo.js":2349,"./lt":2400,"./lt.js":2400,"./lv":9991,"./lv.js":9991,"./me":8477,"./me.js":8477,"./mi":5118,"./mi.js":5118,"./mk":5943,"./mk.js":5943,"./ml":3849,"./ml.js":3849,"./mn":1977,"./mn.js":1977,"./mr":6184,"./mr.js":6184,"./ms":485,"./ms-my":4524,"./ms-my.js":4524,"./ms.js":485,"./mt":6681,"./mt.js":6681,"./my":2024,"./my.js":2024,"./nb":2688,"./nb.js":2688,"./ne":8914,"./ne.js":8914,"./nl":1758,"./nl-be":2272,"./nl-be.js":2272,"./nl.js":1758,"./nn":1510,"./nn.js":1510,"./oc-lnc":2797,"./oc-lnc.js":2797,"./pa-in":7944,"./pa-in.js":7944,"./pl":1605,"./pl.js":1605,"./pt":4225,"./pt-br":3840,"./pt-br.js":3840,"./pt.js":4225,"./ro":5128,"./ro.js":5128,"./ru":5127,"./ru.js":5127,"./sd":2525,"./sd.js":2525,"./se":9893,"./se.js":9893,"./si":3123,"./si.js":3123,"./sk":3027,"./sk.js":3027,"./sl":8106,"./sl.js":8106,"./sq":8799,"./sq.js":8799,"./sr":7949,"./sr-cyrl":2872,"./sr-cyrl.js":2872,"./sr.js":7949,"./ss":6167,"./ss.js":6167,"./sv":9713,"./sv.js":9713,"./sw":1982,"./sw.js":1982,"./ta":2732,"./ta.js":2732,"./te":3636,"./te.js":3636,"./tet":2115,"./tet.js":2115,"./tg":9801,"./tg.js":9801,"./th":2868,"./th.js":2868,"./tk":1310,"./tk.js":1310,"./tl-ph":2360,"./tl-ph.js":2360,"./tlh":6645,"./tlh.js":6645,"./tr":8374,"./tr.js":8374,"./tzl":256,"./tzl.js":256,"./tzm":1595,"./tzm-latn":1631,"./tzm-latn.js":1631,"./tzm.js":1595,"./ug-cn":6050,"./ug-cn.js":6050,"./uk":5610,"./uk.js":5610,"./ur":6077,"./ur.js":6077,"./uz":2862,"./uz-latn":2207,"./uz-latn.js":2207,"./uz.js":2862,"./vi":8093,"./vi.js":8093,"./x-pseudo":5590,"./x-pseudo.js":5590,"./yo":9058,"./yo.js":9058,"./zh-cn":7908,"./zh-cn.js":7908,"./zh-hk":8867,"./zh-hk.js":8867,"./zh-mo":1133,"./zh-mo.js":1133,"./zh-tw":3291,"./zh-tw.js":3291};function n(D){var L=H(D);return E(L)}function H(D){if(!E.o(T,D)){var L=new Error("Cannot find module '"+D+"'");throw L.code="MODULE_NOT_FOUND",L}return T[D]}n.keys=function(){return Object.keys(T)},n.resolve=H,Y.exports=n,n.id=6700},655:(Y,G,E)=>{"use strict";function U(me,_e,Te,Me){return new(Te||(Te=Promise))(function(We,yt){function Ft(ai){try{tt(Me.next(ai))}catch(Oi){yt(Oi)}}function cn(ai){try{tt(Me.throw(ai))}catch(Oi){yt(Oi)}}function tt(ai){ai.done?We(ai.value):function $e(We){return We instanceof Te?We:new Te(function(yt){yt(We)})}(ai.value).then(Ft,cn)}tt((Me=Me.apply(me,_e||[])).next())})}function we(me){return this instanceof we?(this.v=me,this):new we(me)}function xe(me,_e,Te){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var $e,Me=Te.apply(me,_e||[]),We=[];return $e={},yt("next"),yt("throw"),yt("return"),$e[Symbol.asyncIterator]=function(){return this},$e;function yt(Je){Me[Je]&&($e[Je]=function(dn){return new Promise(function(Gi,Tn){We.push([Je,dn,Gi,Tn])>1||Ft(Je,dn)})})}function Ft(Je,dn){try{!function cn(Je){Je.value instanceof we?Promise.resolve(Je.value.v).then(tt,ai):Oi(We[0][2],Je)}(Me[Je](dn))}catch(Gi){Oi(We[0][3],Gi)}}function tt(Je){Ft("next",Je)}function ai(Je){Ft("throw",Je)}function Oi(Je,dn){Je(dn),We.shift(),We.length&&Ft(We[0][0],We[0][1])}}function et(me){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Te,_e=me[Symbol.asyncIterator];return _e?_e.call(me):(me=function ae(me){var _e="function"==typeof Symbol&&Symbol.iterator,Te=_e&&me[_e],Me=0;if(Te)return Te.call(me);if(me&&"number"==typeof me.length)return{next:function(){return me&&Me>=me.length&&(me=void 0),{value:me&&me[Me++],done:!me}}};throw new TypeError(_e?"Object is not iterable.":"Symbol.iterator is not defined.")}(me),Te={},Me("next"),Me("throw"),Me("return"),Te[Symbol.asyncIterator]=function(){return this},Te);function Me(We){Te[We]=me[We]&&function(yt){return new Promise(function(Ft,cn){!function $e(We,yt,Ft,cn){Promise.resolve(cn).then(function(tt){We({value:tt,done:Ft})},yt)}(Ft,cn,(yt=me[We](yt)).done,yt.value)})}}}E.d(G,{FC:()=>xe,KL:()=>et,mG:()=>U,qq:()=>we})},6895:(Y,G,E)=>{"use strict";E.d(G,{Do:()=>et,ED:()=>ba,EM:()=>ya,HT:()=>L,JF:()=>Bi,K0:()=>B,Mx:()=>Mt,NF:()=>rh,Nd:()=>ac,O5:()=>fi,Ov:()=>Vn,PC:()=>dr,PM:()=>ff,RF:()=>Sr,S$:()=>we,V_:()=>ee,Ye:()=>ke,b0:()=>Xe,bD:()=>Ti,ez:()=>li,gd:()=>Hd,mk:()=>Fr,n9:()=>Qi,q:()=>H,sg:()=>xr,uU:()=>el,w_:()=>O});var T=E(4650);let n=null;function H(){return n}function L(j){n||(n=j)}class O{}const B=new T.OlP("DocumentToken");let U=(()=>{class j{historyGo(F){throw new Error("Not implemented")}}return j.\u0275fac=function(F){return new(F||j)},j.\u0275prov=T.Yz7({token:j,factory:function(){return function W(){return(0,T.LFG)(te)}()},providedIn:"platform"}),j})();const ee=new T.OlP("Location Initialized");let te=(()=>{class j extends U{constructor(F){super(),this._doc=F,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return H().getBaseHref(this._doc)}onPopState(F){const X=H().getGlobalEventTarget(this._doc,"window");return X.addEventListener("popstate",F,!1),()=>X.removeEventListener("popstate",F)}onHashChange(F){const X=H().getGlobalEventTarget(this._doc,"window");return X.addEventListener("hashchange",F,!1),()=>X.removeEventListener("hashchange",F)}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(F){this.location.pathname=F}pushState(F,X,le){ae()?this._history.pushState(F,X,le):this.location.hash=le}replaceState(F,X,le){ae()?this._history.replaceState(F,X,le):this.location.hash=le}forward(){this._history.forward()}back(){this._history.back()}historyGo(F=0){this._history.go(F)}getState(){return this._history.state}}return j.\u0275fac=function(F){return new(F||j)(T.LFG(B))},j.\u0275prov=T.Yz7({token:j,factory:function(){return function ue(){return new te((0,T.LFG)(B))}()},providedIn:"platform"}),j})();function ae(){return!!window.history.pushState}function oe(j,J){if(0==j.length)return J;if(0==J.length)return j;let F=0;return j.endsWith("/")&&F++,J.startsWith("/")&&F++,2==F?j+J.substring(1):1==F?j+J:j+"/"+J}function re(j){const J=j.match(/#|\?|$/),F=J&&J.index||j.length;return j.slice(0,F-("/"===j[F-1]?1:0))+j.slice(F)}function be(j){return j&&"?"!==j[0]?"?"+j:j}let we=(()=>{class j{historyGo(F){throw new Error("Not implemented")}}return j.\u0275fac=function(F){return new(F||j)},j.\u0275prov=T.Yz7({token:j,factory:function(){return(0,T.f3M)(Xe)},providedIn:"root"}),j})();const xe=new T.OlP("appBaseHref");let Xe=(()=>{class j extends we{constructor(F,X){var le,Ce,Ae;super(),this._platformLocation=F,this._removeListenerFns=[],this._baseHref=null!==(le=null!==(Ce=X??this._platformLocation.getBaseHrefFromDOM())&&void 0!==Ce?Ce:null===(Ae=(0,T.f3M)(B).location)||void 0===Ae?void 0:Ae.origin)&&void 0!==le?le:""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(F){this._removeListenerFns.push(this._platformLocation.onPopState(F),this._platformLocation.onHashChange(F))}getBaseHref(){return this._baseHref}prepareExternalUrl(F){return oe(this._baseHref,F)}path(F=!1){const X=this._platformLocation.pathname+be(this._platformLocation.search),le=this._platformLocation.hash;return le&&F?`${X}${le}`:X}pushState(F,X,le,Ce){const Ae=this.prepareExternalUrl(le+be(Ce));this._platformLocation.pushState(F,X,Ae)}replaceState(F,X,le,Ce){const Ae=this.prepareExternalUrl(le+be(Ce));this._platformLocation.replaceState(F,X,Ae)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(F=0){var X,le;null===(X=(le=this._platformLocation).historyGo)||void 0===X||X.call(le,F)}}return j.\u0275fac=function(F){return new(F||j)(T.LFG(U),T.LFG(xe,8))},j.\u0275prov=T.Yz7({token:j,factory:j.\u0275fac,providedIn:"root"}),j})(),et=(()=>{class j extends we{constructor(F,X){super(),this._platformLocation=F,this._baseHref="",this._removeListenerFns=[],null!=X&&(this._baseHref=X)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(F){this._removeListenerFns.push(this._platformLocation.onPopState(F),this._platformLocation.onHashChange(F))}getBaseHref(){return this._baseHref}path(F=!1){let X=this._platformLocation.hash;return null==X&&(X="#"),X.length>0?X.substring(1):X}prepareExternalUrl(F){const X=oe(this._baseHref,F);return X.length>0?"#"+X:X}pushState(F,X,le,Ce){let Ae=this.prepareExternalUrl(le+be(Ce));0==Ae.length&&(Ae=this._platformLocation.pathname),this._platformLocation.pushState(F,X,Ae)}replaceState(F,X,le,Ce){let Ae=this.prepareExternalUrl(le+be(Ce));0==Ae.length&&(Ae=this._platformLocation.pathname),this._platformLocation.replaceState(F,X,Ae)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(F=0){var X,le;null===(X=(le=this._platformLocation).historyGo)||void 0===X||X.call(le,F)}}return j.\u0275fac=function(F){return new(F||j)(T.LFG(U),T.LFG(xe,8))},j.\u0275prov=T.Yz7({token:j,factory:j.\u0275fac}),j})(),ke=(()=>{class j{constructor(F){this._subject=new T.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=F;const X=this._locationStrategy.getBaseHref();this._baseHref=re(_t(X)),this._locationStrategy.onPopState(le=>{this._subject.emit({url:this.path(!0),pop:!0,state:le.state,type:le.type})})}ngOnDestroy(){var F;null===(F=this._urlChangeSubscription)||void 0===F||F.unsubscribe(),this._urlChangeListeners=[]}path(F=!1){return this.normalize(this._locationStrategy.path(F))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(F,X=""){return this.path()==this.normalize(F+be(X))}normalize(F){return j.stripTrailingSlash(function Re(j,J){return j&&J.startsWith(j)?J.substring(j.length):J}(this._baseHref,_t(F)))}prepareExternalUrl(F){return F&&"/"!==F[0]&&(F="/"+F),this._locationStrategy.prepareExternalUrl(F)}go(F,X="",le=null){this._locationStrategy.pushState(le,"",F,X),this._notifyUrlChangeListeners(this.prepareExternalUrl(F+be(X)),le)}replaceState(F,X="",le=null){this._locationStrategy.replaceState(le,"",F,X),this._notifyUrlChangeListeners(this.prepareExternalUrl(F+be(X)),le)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(F=0){var X,le;null===(X=(le=this._locationStrategy).historyGo)||void 0===X||X.call(le,F)}onUrlChange(F){return this._urlChangeListeners.push(F),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(X=>{this._notifyUrlChangeListeners(X.url,X.state)})),()=>{const X=this._urlChangeListeners.indexOf(F);var le;this._urlChangeListeners.splice(X,1),0===this._urlChangeListeners.length&&(null===(le=this._urlChangeSubscription)||void 0===le||le.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(F="",X){this._urlChangeListeners.forEach(le=>le(F,X))}subscribe(F,X,le){return this._subject.subscribe({next:F,error:X,complete:le})}}return j.normalizeQueryParams=be,j.joinWithSlash=oe,j.stripTrailingSlash=re,j.\u0275fac=function(F){return new(F||j)(T.LFG(we))},j.\u0275prov=T.Yz7({token:j,factory:function(){return function De(){return new ke((0,T.LFG)(we))}()},providedIn:"root"}),j})();function _t(j){return j.replace(/\/index.html$/,"")}var me=(()=>((me=me||{})[me.Format=0]="Format",me[me.Standalone=1]="Standalone",me))(),_e=(()=>((_e=_e||{})[_e.Narrow=0]="Narrow",_e[_e.Abbreviated=1]="Abbreviated",_e[_e.Wide=2]="Wide",_e[_e.Short=3]="Short",_e))(),Te=(()=>((Te=Te||{})[Te.Short=0]="Short",Te[Te.Medium=1]="Medium",Te[Te.Long=2]="Long",Te[Te.Full=3]="Full",Te))(),Me=(()=>((Me=Me||{})[Me.Decimal=0]="Decimal",Me[Me.Group=1]="Group",Me[Me.List=2]="List",Me[Me.PercentSign=3]="PercentSign",Me[Me.PlusSign=4]="PlusSign",Me[Me.MinusSign=5]="MinusSign",Me[Me.Exponential=6]="Exponential",Me[Me.SuperscriptingExponent=7]="SuperscriptingExponent",Me[Me.PerMille=8]="PerMille",Me[Me.Infinity=9]="Infinity",Me[Me.NaN=10]="NaN",Me[Me.TimeSeparator=11]="TimeSeparator",Me[Me.CurrencyDecimal=12]="CurrencyDecimal",Me[Me.CurrencyGroup=13]="CurrencyGroup",Me))();function Je(j,J){return Ye((0,T.cg1)(j)[T.wAp.DateFormat],J)}function dn(j,J){return Ye((0,T.cg1)(j)[T.wAp.TimeFormat],J)}function Gi(j,J){return Ye((0,T.cg1)(j)[T.wAp.DateTimeFormat],J)}function Tn(j,J){const F=(0,T.cg1)(j),X=F[T.wAp.NumberSymbols][J];if(typeof X>"u"){if(J===Me.CurrencyDecimal)return F[T.wAp.NumberSymbols][Me.Decimal];if(J===Me.CurrencyGroup)return F[T.wAp.NumberSymbols][Me.Group]}return X}function zi(j){if(!j[T.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${j[T.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Ye(j,J){for(let F=J;F>-1;F--)if(typeof j[F]<"u")return j[F];throw new Error("Locale data API: locale data undefined")}function lt(j){const[J,F]=j.split(":");return{hours:+J,minutes:+F}}const un=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Kt={},Oe=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var ce=(()=>((ce=ce||{})[ce.Short=0]="Short",ce[ce.ShortGMT=1]="ShortGMT",ce[ce.Long=2]="Long",ce[ce.Extended=3]="Extended",ce))(),ie=(()=>((ie=ie||{})[ie.FullYear=0]="FullYear",ie[ie.Month=1]="Month",ie[ie.Date=2]="Date",ie[ie.Hours=3]="Hours",ie[ie.Minutes=4]="Minutes",ie[ie.Seconds=5]="Seconds",ie[ie.FractionalSeconds=6]="FractionalSeconds",ie[ie.Day=7]="Day",ie))(),fe=(()=>((fe=fe||{})[fe.DayPeriods=0]="DayPeriods",fe[fe.Days=1]="Days",fe[fe.Months=2]="Months",fe[fe.Eras=3]="Eras",fe))();function Be(j,J,F,X){let le=function pi(j){if(ei(j))return j;if("number"==typeof j&&!isNaN(j))return new Date(j);if("string"==typeof j){if(j=j.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(j)){const[le,Ce=1,Ae=1]=j.split("-").map(dt=>+dt);return Ct(le,Ce-1,Ae)}const F=parseFloat(j);if(!isNaN(j-F))return new Date(F);let X;if(X=j.match(un))return function Ze(j){const J=new Date(0);let F=0,X=0;const le=j[8]?J.setUTCFullYear:J.setFullYear,Ce=j[8]?J.setUTCHours:J.setHours;j[9]&&(F=Number(j[9]+j[10]),X=Number(j[9]+j[11])),le.call(J,Number(j[1]),Number(j[2])-1,Number(j[3]));const Ae=Number(j[4]||0)-F,dt=Number(j[5]||0)-X,Bn=Number(j[6]||0),Mn=Math.floor(1e3*parseFloat("0."+(j[7]||0)));return Ce.call(J,Ae,dt,Bn,Mn),J}(X)}const J=new Date(j);if(!ei(J))throw new Error(`Unable to convert "${j}" into a date`);return J}(j);J=Bt(F,J)||J;let dt,Ae=[];for(;J;){if(dt=Oe.exec(J),!dt){Ae.push(J);break}{Ae=Ae.concat(dt.slice(1));const xn=Ae.pop();if(!xn)break;J=xn}}let Bn=le.getTimezoneOffset();X&&(Bn=_s(X,Bn),le=function si(j,J,F){const X=F?-1:1,le=j.getTimezoneOffset();return function pn(j,J){return(j=new Date(j.getTime())).setMinutes(j.getMinutes()+J),j}(j,X*(_s(J,le)-le))}(le,X,!0));let Mn="";return Ae.forEach(xn=>{const nn=function Ed(j){if(fa[j])return fa[j];let J;switch(j){case"G":case"GG":case"GGG":J=Lt(fe.Eras,_e.Abbreviated);break;case"GGGG":J=Lt(fe.Eras,_e.Wide);break;case"GGGGG":J=Lt(fe.Eras,_e.Narrow);break;case"y":J=kt(ie.FullYear,1,0,!1,!0);break;case"yy":J=kt(ie.FullYear,2,0,!0,!0);break;case"yyy":J=kt(ie.FullYear,3,0,!1,!0);break;case"yyyy":J=kt(ie.FullYear,4,0,!1,!0);break;case"Y":J=Tr(1);break;case"YY":J=Tr(2,!0);break;case"YYY":J=Tr(3);break;case"YYYY":J=Tr(4);break;case"M":case"L":J=kt(ie.Month,1,1);break;case"MM":case"LL":J=kt(ie.Month,2,1);break;case"MMM":J=Lt(fe.Months,_e.Abbreviated);break;case"MMMM":J=Lt(fe.Months,_e.Wide);break;case"MMMMM":J=Lt(fe.Months,_e.Narrow);break;case"LLL":J=Lt(fe.Months,_e.Abbreviated,me.Standalone);break;case"LLLL":J=Lt(fe.Months,_e.Wide,me.Standalone);break;case"LLLLL":J=Lt(fe.Months,_e.Narrow,me.Standalone);break;case"w":J=jr(1);break;case"ww":J=jr(2);break;case"W":J=jr(1,!0);break;case"d":J=kt(ie.Date,1);break;case"dd":J=kt(ie.Date,2);break;case"c":case"cc":J=kt(ie.Day,1);break;case"ccc":J=Lt(fe.Days,_e.Abbreviated,me.Standalone);break;case"cccc":J=Lt(fe.Days,_e.Wide,me.Standalone);break;case"ccccc":J=Lt(fe.Days,_e.Narrow,me.Standalone);break;case"cccccc":J=Lt(fe.Days,_e.Short,me.Standalone);break;case"E":case"EE":case"EEE":J=Lt(fe.Days,_e.Abbreviated);break;case"EEEE":J=Lt(fe.Days,_e.Wide);break;case"EEEEE":J=Lt(fe.Days,_e.Narrow);break;case"EEEEEE":J=Lt(fe.Days,_e.Short);break;case"a":case"aa":case"aaa":J=Lt(fe.DayPeriods,_e.Abbreviated);break;case"aaaa":J=Lt(fe.DayPeriods,_e.Wide);break;case"aaaaa":J=Lt(fe.DayPeriods,_e.Narrow);break;case"b":case"bb":case"bbb":J=Lt(fe.DayPeriods,_e.Abbreviated,me.Standalone,!0);break;case"bbbb":J=Lt(fe.DayPeriods,_e.Wide,me.Standalone,!0);break;case"bbbbb":J=Lt(fe.DayPeriods,_e.Narrow,me.Standalone,!0);break;case"B":case"BB":case"BBB":J=Lt(fe.DayPeriods,_e.Abbreviated,me.Format,!0);break;case"BBBB":J=Lt(fe.DayPeriods,_e.Wide,me.Format,!0);break;case"BBBBB":J=Lt(fe.DayPeriods,_e.Narrow,me.Format,!0);break;case"h":J=kt(ie.Hours,1,-12);break;case"hh":J=kt(ie.Hours,2,-12);break;case"H":J=kt(ie.Hours,1);break;case"HH":J=kt(ie.Hours,2);break;case"m":J=kt(ie.Minutes,1);break;case"mm":J=kt(ie.Minutes,2);break;case"s":J=kt(ie.Seconds,1);break;case"ss":J=kt(ie.Seconds,2);break;case"S":J=kt(ie.FractionalSeconds,1);break;case"SS":J=kt(ie.FractionalSeconds,2);break;case"SSS":J=kt(ie.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":J=St(ce.Short);break;case"ZZZZZ":J=St(ce.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":J=St(ce.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":J=St(ce.Long);break;default:return null}return fa[j]=J,J}(xn);Mn+=nn?nn(le,F,Bn):"''"===xn?"'":xn.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),Mn}function Ct(j,J,F){const X=new Date(0);return X.setFullYear(j,J,F),X.setHours(0,0,0),X}function Bt(j,J){const F=function We(j){return(0,T.cg1)(j)[T.wAp.LocaleId]}(j);if(Kt[F]=Kt[F]||{},Kt[F][J])return Kt[F][J];let X="";switch(J){case"shortDate":X=Je(j,Te.Short);break;case"mediumDate":X=Je(j,Te.Medium);break;case"longDate":X=Je(j,Te.Long);break;case"fullDate":X=Je(j,Te.Full);break;case"shortTime":X=dn(j,Te.Short);break;case"mediumTime":X=dn(j,Te.Medium);break;case"longTime":X=dn(j,Te.Long);break;case"fullTime":X=dn(j,Te.Full);break;case"short":const le=Bt(j,"shortTime"),Ce=Bt(j,"shortDate");X=it(Gi(j,Te.Short),[le,Ce]);break;case"medium":const Ae=Bt(j,"mediumTime"),dt=Bt(j,"mediumDate");X=it(Gi(j,Te.Medium),[Ae,dt]);break;case"long":const Bn=Bt(j,"longTime"),Mn=Bt(j,"longDate");X=it(Gi(j,Te.Long),[Bn,Mn]);break;case"full":const xn=Bt(j,"fullTime"),nn=Bt(j,"fullDate");X=it(Gi(j,Te.Full),[xn,nn])}return X&&(Kt[F][J]=X),X}function it(j,J){return J&&(j=j.replace(/\{([^}]+)}/g,function(F,X){return null!=J&&X in J?J[X]:F})),j}function Et(j,J,F="-",X,le){let Ce="";(j<0||le&&j<=0)&&(le?j=1-j:(j=-j,Ce=F));let Ae=String(j);for(;Ae.length0||dt>-F)&&(dt+=F),j===ie.Hours)0===dt&&-12===F&&(dt=12);else if(j===ie.FractionalSeconds)return function qn(j,J){return Et(j,3).substring(0,J)}(dt,J);const Bn=Tn(Ae,Me.MinusSign);return Et(dt,J,Bn,X,le)}}function Lt(j,J,F=me.Format,X=!1){return function(le,Ce){return function Yt(j,J,F,X,le,Ce){switch(F){case fe.Months:return function cn(j,J,F){const X=(0,T.cg1)(j),Ce=Ye([X[T.wAp.MonthsFormat],X[T.wAp.MonthsStandalone]],J);return Ye(Ce,F)}(J,le,X)[j.getMonth()];case fe.Days:return function Ft(j,J,F){const X=(0,T.cg1)(j),Ce=Ye([X[T.wAp.DaysFormat],X[T.wAp.DaysStandalone]],J);return Ye(Ce,F)}(J,le,X)[j.getDay()];case fe.DayPeriods:const Ae=j.getHours(),dt=j.getMinutes();if(Ce){const Mn=function pe(j){const J=(0,T.cg1)(j);return zi(J),(J[T.wAp.ExtraData][2]||[]).map(X=>"string"==typeof X?lt(X):[lt(X[0]),lt(X[1])])}(J),xn=function Ie(j,J,F){const X=(0,T.cg1)(j);zi(X);const Ce=Ye([X[T.wAp.ExtraData][0],X[T.wAp.ExtraData][1]],J)||[];return Ye(Ce,F)||[]}(J,le,X),nn=Mn.findIndex(gt=>{if(Array.isArray(gt)){const[Cn,bt]=gt,Se=Ae>=Cn.hours&&dt>=Cn.minutes,pt=Ae0?Math.floor(le/60):Math.ceil(le/60);switch(j){case ce.Short:return(le>=0?"+":"")+Et(Ae,2,Ce)+Et(Math.abs(le%60),2,Ce);case ce.ShortGMT:return"GMT"+(le>=0?"+":"")+Et(Ae,1,Ce);case ce.Long:return"GMT"+(le>=0?"+":"")+Et(Ae,2,Ce)+":"+Et(Math.abs(le%60),2,Ce);case ce.Extended:return 0===X?"Z":(le>=0?"+":"")+Et(Ae,2,Ce)+":"+Et(Math.abs(le%60),2,Ce);default:throw new Error(`Unknown zone width "${j}"`)}}}function Xr(j){return Ct(j.getFullYear(),j.getMonth(),j.getDate()+(4-j.getDay()))}function jr(j,J=!1){return function(F,X){let le;if(J){const Ce=new Date(F.getFullYear(),F.getMonth(),1).getDay()-1,Ae=F.getDate();le=1+Math.floor((Ae+Ce)/7)}else{const Ce=Xr(F),Ae=function Kn(j){const J=Ct(j,0,1).getDay();return Ct(j,0,1+(J<=4?4:11)-J)}(Ce.getFullYear()),dt=Ce.getTime()-Ae.getTime();le=1+Math.round(dt/6048e5)}return Et(le,j,Tn(X,Me.MinusSign))}}function Tr(j,J=!1){return function(F,X){return Et(Xr(F).getFullYear(),j,Tn(X,Me.MinusSign),J)}}const fa={};function _s(j,J){j=j.replace(/:/g,"");const F=Date.parse("Jan 01, 1970 00:00:00 "+j)/6e4;return isNaN(F)?J:F}function ei(j){return j instanceof Date&&!isNaN(j.valueOf())}function Mt(j,J){J=encodeURIComponent(J);for(const F of j.split(";")){const X=F.indexOf("="),[le,Ce]=-1==X?[F,""]:[F.slice(0,X),F.slice(X+1)];if(le.trim()===J)return decodeURIComponent(Ce)}return null}let Fr=(()=>{class j{constructor(F,X,le,Ce){this._iterableDiffers=F,this._keyValueDiffers=X,this._ngEl=le,this._renderer=Ce,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(F){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof F?F.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(F){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof F?F.split(/\s+/):F,this._rawClass&&((0,T.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const F=this._iterableDiffer.diff(this._rawClass);F&&this._applyIterableChanges(F)}else if(this._keyValueDiffer){const F=this._keyValueDiffer.diff(this._rawClass);F&&this._applyKeyValueChanges(F)}}_applyKeyValueChanges(F){F.forEachAddedItem(X=>this._toggleClass(X.key,X.currentValue)),F.forEachChangedItem(X=>this._toggleClass(X.key,X.currentValue)),F.forEachRemovedItem(X=>{X.previousValue&&this._toggleClass(X.key,!1)})}_applyIterableChanges(F){F.forEachAddedItem(X=>{if("string"!=typeof X.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,T.AaK)(X.item)}`);this._toggleClass(X.item,!0)}),F.forEachRemovedItem(X=>this._toggleClass(X.item,!1))}_applyClasses(F){F&&(Array.isArray(F)||F instanceof Set?F.forEach(X=>this._toggleClass(X,!0)):Object.keys(F).forEach(X=>this._toggleClass(X,!!F[X])))}_removeClasses(F){F&&(Array.isArray(F)||F instanceof Set?F.forEach(X=>this._toggleClass(X,!1)):Object.keys(F).forEach(X=>this._toggleClass(X,!1)))}_toggleClass(F,X){(F=F.trim())&&F.split(/\s+/g).forEach(le=>{X?this._renderer.addClass(this._ngEl.nativeElement,le):this._renderer.removeClass(this._ngEl.nativeElement,le)})}}return j.\u0275fac=function(F){return new(F||j)(T.Y36(T.ZZ4),T.Y36(T.aQg),T.Y36(T.SBq),T.Y36(T.Qsj))},j.\u0275dir=T.lG2({type:j,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),j})();class _a{constructor(J,F,X,le){this.$implicit=J,this.ngForOf=F,this.index=X,this.count=le}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 xr=(()=>{class j{constructor(F,X,le){this._viewContainer=F,this._template=X,this._differs=le,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(F){this._ngForOf=F,this._ngForOfDirty=!0}set ngForTrackBy(F){this._trackByFn=F}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(F){F&&(this._template=F)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const F=this._ngForOf;!this._differ&&F&&(this._differ=this._differs.find(F).create(this.ngForTrackBy))}if(this._differ){const F=this._differ.diff(this._ngForOf);F&&this._applyChanges(F)}}_applyChanges(F){const X=this._viewContainer;F.forEachOperation((le,Ce,Ae)=>{if(null==le.previousIndex)X.createEmbeddedView(this._template,new _a(le.item,this._ngForOf,-1,-1),null===Ae?void 0:Ae);else if(null==Ae)X.remove(null===Ce?void 0:Ce);else if(null!==Ce){const dt=X.get(Ce);X.move(dt,Ae),Yn(dt,le)}});for(let le=0,Ce=X.length;le{Yn(X.get(le.currentIndex),le)})}static ngTemplateContextGuard(F,X){return!0}}return j.\u0275fac=function(F){return new(F||j)(T.Y36(T.s_b),T.Y36(T.Rgc),T.Y36(T.ZZ4))},j.\u0275dir=T.lG2({type:j,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),j})();function Yn(j,J){j.context.$implicit=J.item}let fi=(()=>{class j{constructor(F,X){this._viewContainer=F,this._context=new Ji,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=X}set ngIf(F){this._context.$implicit=this._context.ngIf=F,this._updateView()}set ngIfThen(F){cr("ngIfThen",F),this._thenTemplateRef=F,this._thenViewRef=null,this._updateView()}set ngIfElse(F){cr("ngIfElse",F),this._elseTemplateRef=F,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(F,X){return!0}}return j.\u0275fac=function(F){return new(F||j)(T.Y36(T.s_b),T.Y36(T.Rgc))},j.\u0275dir=T.lG2({type:j,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),j})();class Ji{constructor(){this.$implicit=null,this.ngIf=null}}function cr(j,J){if(J&&!J.createEmbeddedView)throw new Error(`${j} must be a TemplateRef, but received '${(0,T.AaK)(J)}'.`)}class na{constructor(J,F){this._viewContainerRef=J,this._templateRef=F,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(J){J&&!this._created?this.create():!J&&this._created&&this.destroy()}}let Sr=(()=>{class j{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(F){this._ngSwitch=F,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(F){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(F)}_matchCase(F){const X=F==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||X,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),X}_updateDefaultCases(F){if(this._defaultViews&&F!==this._defaultUsed){this._defaultUsed=F;for(let X=0;X{class j{constructor(F,X,le){this.ngSwitch=le,le._addCase(),this._view=new na(F,X)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return j.\u0275fac=function(F){return new(F||j)(T.Y36(T.s_b),T.Y36(T.Rgc),T.Y36(Sr,9))},j.\u0275dir=T.lG2({type:j,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),j})(),ba=(()=>{class j{constructor(F,X,le){le._addDefault(new na(F,X))}}return j.\u0275fac=function(F){return new(F||j)(T.Y36(T.s_b),T.Y36(T.Rgc),T.Y36(Sr,9))},j.\u0275dir=T.lG2({type:j,selectors:[["","ngSwitchDefault",""]],standalone:!0}),j})(),dr=(()=>{class j{constructor(F,X,le){this._ngEl=F,this._differs=X,this._renderer=le,this._ngStyle=null,this._differ=null}set ngStyle(F){this._ngStyle=F,!this._differ&&F&&(this._differ=this._differs.find(F).create())}ngDoCheck(){if(this._differ){const F=this._differ.diff(this._ngStyle);F&&this._applyChanges(F)}}_setStyle(F,X){const[le,Ce]=F.split("."),Ae=-1===le.indexOf("-")?void 0:T.JOm.DashCase;null!=X?this._renderer.setStyle(this._ngEl.nativeElement,le,Ce?`${X}${Ce}`:X,Ae):this._renderer.removeStyle(this._ngEl.nativeElement,le,Ae)}_applyChanges(F){F.forEachRemovedItem(X=>this._setStyle(X.key,null)),F.forEachAddedItem(X=>this._setStyle(X.key,X.currentValue)),F.forEachChangedItem(X=>this._setStyle(X.key,X.currentValue))}}return j.\u0275fac=function(F){return new(F||j)(T.Y36(T.SBq),T.Y36(T.aQg),T.Y36(T.Qsj))},j.\u0275dir=T.lG2({type:j,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),j})();function Ke(j,J){return new T.vHH(2100,!1)}class po{createSubscription(J,F){return J.subscribe({next:F,error:X=>{throw X}})}dispose(J){J.unsubscribe()}}class Dd{createSubscription(J,F){return J.then(F,X=>{throw X})}dispose(J){}}const C=new Dd,Wn=new po;let Vn=(()=>{class j{constructor(F){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=F}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(F){return this._obj?F!==this._obj?(this._dispose(),this.transform(F)):this._latestValue:(F&&this._subscribe(F),this._latestValue)}_subscribe(F){this._obj=F,this._strategy=this._selectStrategy(F),this._subscription=this._strategy.createSubscription(F,X=>this._updateLatestValue(F,X))}_selectStrategy(F){if((0,T.QGY)(F))return C;if((0,T.F4k)(F))return Wn;throw Ke()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(F,X){F===this._obj&&(this._latestValue=X,this._ref.markForCheck())}}return j.\u0275fac=function(F){return new(F||j)(T.Y36(T.sBO,16))},j.\u0275pipe=T.Yjl({name:"async",type:j,pure:!1,standalone:!0}),j})(),Hd=(()=>{class j{transform(F){if(null==F)return null;if("string"!=typeof F)throw Ke();return F.toUpperCase()}}return j.\u0275fac=function(F){return new(F||j)},j.\u0275pipe=T.Yjl({name:"uppercase",type:j,pure:!0,standalone:!0}),j})();const As=new T.OlP("DATE_PIPE_DEFAULT_TIMEZONE");let el=(()=>{class j{constructor(F,X){this.locale=F,this.defaultTimezone=X}transform(F,X="mediumDate",le,Ce){if(null==F||""===F||F!=F)return null;try{var Ae;return Be(F,X,Ce||this.locale,null!==(Ae=le??this.defaultTimezone)&&void 0!==Ae?Ae:void 0)}catch(dt){throw Ke()}}}return j.\u0275fac=function(F){return new(F||j)(T.Y36(T.soG,16),T.Y36(As,24))},j.\u0275pipe=T.Yjl({name:"date",type:j,pure:!0,standalone:!0}),j})(),ac=(()=>{class j{constructor(F){this.differs=F,this.keyValues=[],this.compareFn=Er}transform(F,X=Er){if(!F||!(F instanceof Map)&&"object"!=typeof F)return null;this.differ||(this.differ=this.differs.find(F).create());const le=this.differ.diff(F),Ce=X!==this.compareFn;return le&&(this.keyValues=[],le.forEachItem(Ae=>{this.keyValues.push(function zr(j,J){return{key:j,value:J}}(Ae.key,Ae.currentValue))})),(le||Ce)&&(this.keyValues.sort(X),this.compareFn=X),this.keyValues}}return j.\u0275fac=function(F){return new(F||j)(T.Y36(T.aQg,16))},j.\u0275pipe=T.Yjl({name:"keyvalue",type:j,pure:!1,standalone:!0}),j})();function Er(j,J){const F=j.key,X=J.key;if(F===X)return 0;if(void 0===F)return 1;if(void 0===X)return-1;if(null===F)return 1;if(null===X)return-1;if("string"==typeof F&&"string"==typeof X)return F{class j{}return j.\u0275fac=function(F){return new(F||j)},j.\u0275mod=T.oAB({type:j}),j.\u0275inj=T.cJS({}),j})();const Ti="browser";function rh(j){return j===Ti}function ff(j){return"server"===j}let ya=(()=>{class j{}return j.\u0275prov=(0,T.Yz7)({token:j,providedIn:"root",factory:()=>new ur((0,T.LFG)(B),window)}),j})();class ur{constructor(J,F){this.document=J,this.window=F,this.offset=()=>[0,0]}setOffset(J){this.offset=Array.isArray(J)?()=>J:J}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(J){this.supportsScrolling()&&this.window.scrollTo(J[0],J[1])}scrollToAnchor(J){if(!this.supportsScrolling())return;const F=function uc(j,J){const F=j.getElementById(J)||j.getElementsByName(J)[0];if(F)return F;if("function"==typeof j.createTreeWalker&&j.body&&(j.body.createShadowRoot||j.body.attachShadow)){const X=j.createTreeWalker(j.body,NodeFilter.SHOW_ELEMENT);let le=X.currentNode;for(;le;){const Ce=le.shadowRoot;if(Ce){const Ae=Ce.getElementById(J)||Ce.querySelector(`[name="${J}"]`);if(Ae)return Ae}le=X.nextNode()}}return null}(this.document,J);F&&(this.scrollToElement(F),F.focus())}setHistoryScrollRestoration(J){if(this.supportScrollRestoration()){const F=this.window.history;F&&F.scrollRestoration&&(F.scrollRestoration=J)}}scrollToElement(J){const F=J.getBoundingClientRect(),X=F.left+this.window.pageXOffset,le=F.top+this.window.pageYOffset,Ce=this.offset();this.window.scrollTo(X-Ce[0],le-Ce[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const J=dc(this.window.history)||dc(Object.getPrototypeOf(this.window.history));return!(!J||!J.writable&&!J.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function dc(j){return Object.getOwnPropertyDescriptor(j,"scrollRestoration")}class Bi{}},529:(Y,G,E)=>{"use strict";E.d(G,{JF:()=>hi,LE:()=>xe,TP:()=>Ft,WM:()=>ee,Zn:()=>Te,eN:()=>We,qT:()=>et});var T=E(6895),n=E(4650),H=E(9646),D=E(9751),L=E(4351),O=E(9300),B=E(4004);class U{}class W{}class ee{constructor(ce){this.normalizedNames=new Map,this.lazyUpdate=null,ce?this.lazyInit="string"==typeof ce?()=>{this.headers=new Map,ce.split("\n").forEach(ie=>{const fe=ie.indexOf(":");if(fe>0){const Be=ie.slice(0,fe),Ct=Be.toLowerCase(),Bt=ie.slice(fe+1).trim();this.maybeSetNormalizedName(Be,Ct),this.headers.has(Ct)?this.headers.get(Ct).push(Bt):this.headers.set(Ct,[Bt])}})}:()=>{this.headers=new Map,Object.keys(ce).forEach(ie=>{let fe=ce[ie];const Be=ie.toLowerCase();"string"==typeof fe&&(fe=[fe]),fe.length>0&&(this.headers.set(Be,fe),this.maybeSetNormalizedName(ie,Be))})}:this.headers=new Map}has(ce){return this.init(),this.headers.has(ce.toLowerCase())}get(ce){this.init();const ie=this.headers.get(ce.toLowerCase());return ie&&ie.length>0?ie[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(ce){return this.init(),this.headers.get(ce.toLowerCase())||null}append(ce,ie){return this.clone({name:ce,value:ie,op:"a"})}set(ce,ie){return this.clone({name:ce,value:ie,op:"s"})}delete(ce,ie){return this.clone({name:ce,value:ie,op:"d"})}maybeSetNormalizedName(ce,ie){this.normalizedNames.has(ie)||this.normalizedNames.set(ie,ce)}init(){this.lazyInit&&(this.lazyInit instanceof ee?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(ce=>this.applyUpdate(ce)),this.lazyUpdate=null))}copyFrom(ce){ce.init(),Array.from(ce.headers.keys()).forEach(ie=>{this.headers.set(ie,ce.headers.get(ie)),this.normalizedNames.set(ie,ce.normalizedNames.get(ie))})}clone(ce){const ie=new ee;return ie.lazyInit=this.lazyInit&&this.lazyInit instanceof ee?this.lazyInit:this,ie.lazyUpdate=(this.lazyUpdate||[]).concat([ce]),ie}applyUpdate(ce){const ie=ce.name.toLowerCase();switch(ce.op){case"a":case"s":let fe=ce.value;if("string"==typeof fe&&(fe=[fe]),0===fe.length)return;this.maybeSetNormalizedName(ce.name,ie);const Be=("a"===ce.op?this.headers.get(ie):void 0)||[];Be.push(...fe),this.headers.set(ie,Be);break;case"d":const Ct=ce.value;if(Ct){let Bt=this.headers.get(ie);if(!Bt)return;Bt=Bt.filter(it=>-1===Ct.indexOf(it)),0===Bt.length?(this.headers.delete(ie),this.normalizedNames.delete(ie)):this.headers.set(ie,Bt)}else this.headers.delete(ie),this.normalizedNames.delete(ie)}}forEach(ce){this.init(),Array.from(this.normalizedNames.keys()).forEach(ie=>ce(this.normalizedNames.get(ie),this.headers.get(ie)))}}class ae{encodeKey(ce){return be(ce)}encodeValue(ce){return be(ce)}decodeKey(ce){return decodeURIComponent(ce)}decodeValue(ce){return decodeURIComponent(ce)}}const oe=/%(\d[a-f0-9])/gi,re={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function be(Oe){return encodeURIComponent(Oe).replace(oe,(ce,ie)=>{var fe;return null!==(fe=re[ie])&&void 0!==fe?fe:ce})}function we(Oe){return`${Oe}`}class xe{constructor(ce={}){if(this.updates=null,this.cloneFrom=null,this.encoder=ce.encoder||new ae,ce.fromString){if(ce.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function ue(Oe,ce){const ie=new Map;return Oe.length>0&&Oe.replace(/^\?/,"").split("&").forEach(Be=>{const Ct=Be.indexOf("="),[Bt,it]=-1==Ct?[ce.decodeKey(Be),""]:[ce.decodeKey(Be.slice(0,Ct)),ce.decodeValue(Be.slice(Ct+1))],Et=ie.get(Bt)||[];Et.push(it),ie.set(Bt,Et)}),ie}(ce.fromString,this.encoder)}else ce.fromObject?(this.map=new Map,Object.keys(ce.fromObject).forEach(ie=>{const fe=ce.fromObject[ie],Be=Array.isArray(fe)?fe.map(we):[we(fe)];this.map.set(ie,Be)})):this.map=null}has(ce){return this.init(),this.map.has(ce)}get(ce){this.init();const ie=this.map.get(ce);return ie?ie[0]:null}getAll(ce){return this.init(),this.map.get(ce)||null}keys(){return this.init(),Array.from(this.map.keys())}append(ce,ie){return this.clone({param:ce,value:ie,op:"a"})}appendAll(ce){const ie=[];return Object.keys(ce).forEach(fe=>{const Be=ce[fe];Array.isArray(Be)?Be.forEach(Ct=>{ie.push({param:fe,value:Ct,op:"a"})}):ie.push({param:fe,value:Be,op:"a"})}),this.clone(ie)}set(ce,ie){return this.clone({param:ce,value:ie,op:"s"})}delete(ce,ie){return this.clone({param:ce,value:ie,op:"d"})}toString(){return this.init(),this.keys().map(ce=>{const ie=this.encoder.encodeKey(ce);return this.map.get(ce).map(fe=>ie+"="+this.encoder.encodeValue(fe)).join("&")}).filter(ce=>""!==ce).join("&")}clone(ce){const ie=new xe({encoder:this.encoder});return ie.cloneFrom=this.cloneFrom||this,ie.updates=(this.updates||[]).concat(ce),ie}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(ce=>this.map.set(ce,this.cloneFrom.map.get(ce))),this.updates.forEach(ce=>{switch(ce.op){case"a":case"s":const ie=("a"===ce.op?this.map.get(ce.param):void 0)||[];ie.push(we(ce.value)),this.map.set(ce.param,ie);break;case"d":if(void 0===ce.value){this.map.delete(ce.param);break}{let fe=this.map.get(ce.param)||[];const Be=fe.indexOf(we(ce.value));-1!==Be&&fe.splice(Be,1),fe.length>0?this.map.set(ce.param,fe):this.map.delete(ce.param)}}}),this.cloneFrom=this.updates=null)}}class et{constructor(){this.map=new Map}set(ce,ie){return this.map.set(ce,ie),this}get(ce){return this.map.has(ce)||this.map.set(ce,ce.defaultValue()),this.map.get(ce)}delete(ce){return this.map.delete(ce),this}has(ce){return this.map.has(ce)}keys(){return this.map.keys()}}function De(Oe){return typeof ArrayBuffer<"u"&&Oe instanceof ArrayBuffer}function Re(Oe){return typeof Blob<"u"&&Oe instanceof Blob}function _t(Oe){return typeof FormData<"u"&&Oe instanceof FormData}class ze{constructor(ce,ie,fe,Be){let Ct;if(this.url=ie,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=ce.toUpperCase(),function ke(Oe){switch(Oe){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Be?(this.body=void 0!==fe?fe:null,Ct=Be):Ct=fe,Ct&&(this.reportProgress=!!Ct.reportProgress,this.withCredentials=!!Ct.withCredentials,Ct.responseType&&(this.responseType=Ct.responseType),Ct.headers&&(this.headers=Ct.headers),Ct.context&&(this.context=Ct.context),Ct.params&&(this.params=Ct.params)),this.headers||(this.headers=new ee),this.context||(this.context=new et),this.params){const Bt=this.params.toString();if(0===Bt.length)this.urlWithParams=ie;else{const it=ie.indexOf("?");this.urlWithParams=ie+(-1===it?"?":itLt.set(Yt,ce.setHeaders[Yt]),qn)),ce.setParams&&(kt=Object.keys(ce.setParams).reduce((Lt,Yt)=>Lt.set(Yt,ce.setParams[Yt]),kt)),new ze(fe,Be,Bt,{params:kt,headers:qn,context:vr,reportProgress:Et,responseType:Ct,withCredentials:it})}}var Fe=(()=>((Fe=Fe||{})[Fe.Sent=0]="Sent",Fe[Fe.UploadProgress=1]="UploadProgress",Fe[Fe.ResponseHeader=2]="ResponseHeader",Fe[Fe.DownloadProgress=3]="DownloadProgress",Fe[Fe.Response=4]="Response",Fe[Fe.User=5]="User",Fe))();class me{constructor(ce,ie=200,fe="OK"){this.headers=ce.headers||new ee,this.status=void 0!==ce.status?ce.status:ie,this.statusText=ce.statusText||fe,this.url=ce.url||null,this.ok=this.status>=200&&this.status<300}}class _e extends me{constructor(ce={}){super(ce),this.type=Fe.ResponseHeader}clone(ce={}){return new _e({headers:ce.headers||this.headers,status:void 0!==ce.status?ce.status:this.status,statusText:ce.statusText||this.statusText,url:ce.url||this.url||void 0})}}class Te extends me{constructor(ce={}){super(ce),this.type=Fe.Response,this.body=void 0!==ce.body?ce.body:null}clone(ce={}){return new Te({body:void 0!==ce.body?ce.body:this.body,headers:ce.headers||this.headers,status:void 0!==ce.status?ce.status:this.status,statusText:ce.statusText||this.statusText,url:ce.url||this.url||void 0})}}class Me extends me{constructor(ce){super(ce,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${ce.url||"(unknown url)"}`:`Http failure response for ${ce.url||"(unknown url)"}: ${ce.status} ${ce.statusText}`,this.error=ce.error||null}}function $e(Oe,ce){return{body:ce,headers:Oe.headers,context:Oe.context,observe:Oe.observe,params:Oe.params,reportProgress:Oe.reportProgress,responseType:Oe.responseType,withCredentials:Oe.withCredentials}}let We=(()=>{class Oe{constructor(ie){this.handler=ie}request(ie,fe,Be={}){let Ct;if(ie instanceof ze)Ct=ie;else{let Et,qn;Et=Be.headers instanceof ee?Be.headers:new ee(Be.headers),Be.params&&(qn=Be.params instanceof xe?Be.params:new xe({fromObject:Be.params})),Ct=new ze(ie,fe,void 0!==Be.body?Be.body:null,{headers:Et,context:Be.context,params:qn,reportProgress:Be.reportProgress,responseType:Be.responseType||"json",withCredentials:Be.withCredentials})}const Bt=(0,H.of)(Ct).pipe((0,L.b)(Et=>this.handler.handle(Et)));if(ie instanceof ze||"events"===Be.observe)return Bt;const it=Bt.pipe((0,O.h)(Et=>Et instanceof Te));switch(Be.observe||"body"){case"body":switch(Ct.responseType){case"arraybuffer":return it.pipe((0,B.U)(Et=>{if(null!==Et.body&&!(Et.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Et.body}));case"blob":return it.pipe((0,B.U)(Et=>{if(null!==Et.body&&!(Et.body instanceof Blob))throw new Error("Response is not a Blob.");return Et.body}));case"text":return it.pipe((0,B.U)(Et=>{if(null!==Et.body&&"string"!=typeof Et.body)throw new Error("Response is not a string.");return Et.body}));default:return it.pipe((0,B.U)(Et=>Et.body))}case"response":return it;default:throw new Error(`Unreachable: unhandled observe type ${Be.observe}}`)}}delete(ie,fe={}){return this.request("DELETE",ie,fe)}get(ie,fe={}){return this.request("GET",ie,fe)}head(ie,fe={}){return this.request("HEAD",ie,fe)}jsonp(ie,fe){return this.request("JSONP",ie,{params:(new xe).append(fe,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(ie,fe={}){return this.request("OPTIONS",ie,fe)}patch(ie,fe,Be={}){return this.request("PATCH",ie,$e(Be,fe))}post(ie,fe,Be={}){return this.request("POST",ie,$e(Be,fe))}put(ie,fe,Be={}){return this.request("PUT",ie,$e(Be,fe))}}return Oe.\u0275fac=function(ie){return new(ie||Oe)(n.LFG(U))},Oe.\u0275prov=n.Yz7({token:Oe,factory:Oe.\u0275fac}),Oe})();class yt{constructor(ce,ie){this.next=ce,this.interceptor=ie}handle(ce){return this.interceptor.intercept(ce,this.next)}}const Ft=new n.OlP("HTTP_INTERCEPTORS");let cn=(()=>{class Oe{intercept(ie,fe){return fe.handle(ie)}}return Oe.\u0275fac=function(ie){return new(ie||Oe)},Oe.\u0275prov=n.Yz7({token:Oe,factory:Oe.\u0275fac}),Oe})();const vi=/^\)\]\}',?\n/;let pa=(()=>{class Oe{constructor(ie){this.xhrFactory=ie}handle(ie){if("JSONP"===ie.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new D.y(fe=>{const Be=this.xhrFactory.build();if(Be.open(ie.method,ie.urlWithParams),ie.withCredentials&&(Be.withCredentials=!0),ie.headers.forEach((Yt,St)=>Be.setRequestHeader(Yt,St.join(","))),ie.headers.has("Accept")||Be.setRequestHeader("Accept","application/json, text/plain, */*"),!ie.headers.has("Content-Type")){const Yt=ie.detectContentTypeHeader();null!==Yt&&Be.setRequestHeader("Content-Type",Yt)}if(ie.responseType){const Yt=ie.responseType.toLowerCase();Be.responseType="json"!==Yt?Yt:"text"}const Ct=ie.serializeBody();let Bt=null;const it=()=>{if(null!==Bt)return Bt;const Yt=Be.statusText||"OK",St=new ee(Be.getAllResponseHeaders()),lr=function co(Oe){return"responseURL"in Oe&&Oe.responseURL?Oe.responseURL:/^X-Request-URL:/m.test(Oe.getAllResponseHeaders())?Oe.getResponseHeader("X-Request-URL"):null}(Be)||ie.url;return Bt=new _e({headers:St,status:Be.status,statusText:Yt,url:lr}),Bt},Et=()=>{let{headers:Yt,status:St,statusText:lr,url:Qr}=it(),Kn=null;204!==St&&(Kn=typeof Be.response>"u"?Be.responseText:Be.response),0===St&&(St=Kn?200:0);let Xr=St>=200&&St<300;if("json"===ie.responseType&&"string"==typeof Kn){const jr=Kn;Kn=Kn.replace(vi,"");try{Kn=""!==Kn?JSON.parse(Kn):null}catch(Tr){Kn=jr,Xr&&(Xr=!1,Kn={error:Tr,text:Kn})}}Xr?(fe.next(new Te({body:Kn,headers:Yt,status:St,statusText:lr,url:Qr||void 0})),fe.complete()):fe.error(new Me({error:Kn,headers:Yt,status:St,statusText:lr,url:Qr||void 0}))},qn=Yt=>{const{url:St}=it(),lr=new Me({error:Yt,status:Be.status||0,statusText:Be.statusText||"Unknown Error",url:St||void 0});fe.error(lr)};let kt=!1;const vr=Yt=>{kt||(fe.next(it()),kt=!0);let St={type:Fe.DownloadProgress,loaded:Yt.loaded};Yt.lengthComputable&&(St.total=Yt.total),"text"===ie.responseType&&!!Be.responseText&&(St.partialText=Be.responseText),fe.next(St)},Lt=Yt=>{let St={type:Fe.UploadProgress,loaded:Yt.loaded};Yt.lengthComputable&&(St.total=Yt.total),fe.next(St)};return Be.addEventListener("load",Et),Be.addEventListener("error",qn),Be.addEventListener("timeout",qn),Be.addEventListener("abort",qn),ie.reportProgress&&(Be.addEventListener("progress",vr),null!==Ct&&Be.upload&&Be.upload.addEventListener("progress",Lt)),Be.send(Ct),fe.next({type:Fe.Sent}),()=>{Be.removeEventListener("error",qn),Be.removeEventListener("abort",qn),Be.removeEventListener("load",Et),Be.removeEventListener("timeout",qn),ie.reportProgress&&(Be.removeEventListener("progress",vr),null!==Ct&&Be.upload&&Be.upload.removeEventListener("progress",Lt)),Be.readyState!==Be.DONE&&Be.abort()}})}}return Oe.\u0275fac=function(ie){return new(ie||Oe)(n.LFG(T.JF))},Oe.\u0275prov=n.Yz7({token:Oe,factory:Oe.\u0275fac}),Oe})();const Cr=new n.OlP("XSRF_COOKIE_NAME"),zi=new n.OlP("XSRF_HEADER_NAME");class pe{}let Ie=(()=>{class Oe{constructor(ie,fe,Be){this.doc=ie,this.platform=fe,this.cookieName=Be,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const ie=this.doc.cookie||"";return ie!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,T.Mx)(ie,this.cookieName),this.lastCookieString=ie),this.lastToken}}return Oe.\u0275fac=function(ie){return new(ie||Oe)(n.LFG(T.K0),n.LFG(n.Lbi),n.LFG(Cr))},Oe.\u0275prov=n.Yz7({token:Oe,factory:Oe.\u0275fac}),Oe})(),ye=(()=>{class Oe{constructor(ie,fe){this.tokenService=ie,this.headerName=fe}intercept(ie,fe){const Be=ie.url.toLowerCase();if("GET"===ie.method||"HEAD"===ie.method||Be.startsWith("http://")||Be.startsWith("https://"))return fe.handle(ie);const Ct=this.tokenService.getToken();return null!==Ct&&!ie.headers.has(this.headerName)&&(ie=ie.clone({headers:ie.headers.set(this.headerName,Ct)})),fe.handle(ie)}}return Oe.\u0275fac=function(ie){return new(ie||Oe)(n.LFG(pe),n.LFG(zi))},Oe.\u0275prov=n.Yz7({token:Oe,factory:Oe.\u0275fac}),Oe})(),Ye=(()=>{class Oe{constructor(ie,fe){this.backend=ie,this.injector=fe,this.chain=null}handle(ie){if(null===this.chain){const fe=this.injector.get(Ft,[]);this.chain=fe.reduceRight((Be,Ct)=>new yt(Be,Ct),this.backend)}return this.chain.handle(ie)}}return Oe.\u0275fac=function(ie){return new(ie||Oe)(n.LFG(W),n.LFG(n.zs3))},Oe.\u0275prov=n.Yz7({token:Oe,factory:Oe.\u0275fac}),Oe})(),Zt=(()=>{class Oe{static disable(){return{ngModule:Oe,providers:[{provide:ye,useClass:cn}]}}static withOptions(ie={}){return{ngModule:Oe,providers:[ie.cookieName?{provide:Cr,useValue:ie.cookieName}:[],ie.headerName?{provide:zi,useValue:ie.headerName}:[]]}}}return Oe.\u0275fac=function(ie){return new(ie||Oe)},Oe.\u0275mod=n.oAB({type:Oe}),Oe.\u0275inj=n.cJS({providers:[ye,{provide:Ft,useExisting:ye,multi:!0},{provide:pe,useClass:Ie},{provide:Cr,useValue:"XSRF-TOKEN"},{provide:zi,useValue:"X-XSRF-TOKEN"}]}),Oe})(),hi=(()=>{class Oe{}return Oe.\u0275fac=function(ie){return new(ie||Oe)},Oe.\u0275mod=n.oAB({type:Oe}),Oe.\u0275inj=n.cJS({providers:[We,{provide:U,useClass:Ye},pa,{provide:W,useExisting:pa}],imports:[Zt.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),Oe})()},4650:(Y,G,E)=>{"use strict";E.d(G,{$8M:()=>Fd,$Z:()=>V1,AFp:()=>Lb,ALo:()=>Fu,AaK:()=>U,AsE:()=>S_,B6R:()=>Qr,BQk:()=>Nl,CHM:()=>wa,CRH:()=>EC,CZH:()=>Yo,CqO:()=>Io,D6c:()=>dE,DdM:()=>db,Dn7:()=>km,EJc:()=>zn,EiD:()=>zf,EpF:()=>U0,F$t:()=>rr,F4k:()=>p_,FYo:()=>t0,FiY:()=>To,G48:()=>KS,Gf:()=>_b,GfV:()=>au,GkF:()=>Vl,Gpc:()=>te,Gre:()=>sd,Hsn:()=>g_,Ikx:()=>od,JOm:()=>Ja,JVY:()=>uy,Jf7:()=>Yy,KtG:()=>nr,L6k:()=>hy,LAX:()=>Dh,LFG:()=>Jn,LSH:()=>qf,Lbi:()=>$C,Lck:()=>Qs,MAs:()=>rd,MGl:()=>Lu,MMx:()=>Pp,NdJ:()=>sp,O4$:()=>ch,OlP:()=>Sn,Oqu:()=>J0,PXZ:()=>ii,Q2q:()=>id,Q6J:()=>u_,QGY:()=>q0,QP$:()=>Ks,QbO:()=>ZC,Qsj:()=>ru,R0b:()=>wr,RDi:()=>V,Rgc:()=>zu,SBq:()=>kr,Sil:()=>Jp,Suo:()=>bb,TTD:()=>Er,TgZ:()=>F0,Tol:()=>M_,Udp:()=>$0,VKq:()=>ub,WFA:()=>op,WLB:()=>Nr,XFs:()=>ye,Xpm:()=>lr,Xts:()=>vl,Y36:()=>Gc,YKP:()=>rb,YNc:()=>d_,Yjl:()=>_s,Yz7:()=>dn,ZZ4:()=>Jb,_Bn:()=>ib,_UZ:()=>rp,_Vd:()=>Bc,_c5:()=>vv,_uU:()=>as,aQg:()=>Qb,c2e:()=>Pb,cJS:()=>Tn,cg1:()=>_p,d8E:()=>gp,dDg:()=>iv,dqk:()=>fe,eBb:()=>py,eFA:()=>$l,ekj:()=>Z0,eoX:()=>tg,f3M:()=>wh,g9A:()=>Hb,h0i:()=>sr,hGG:()=>cE,hYB:()=>cp,hij:()=>fp,iGM:()=>md,ifc:()=>ie,ip1:()=>qo,kL8:()=>lm,kcU:()=>Od,lG2:()=>Ed,lcZ:()=>fC,lqb:()=>Sl,lri:()=>Nb,mCW:()=>eu,n5z:()=>yc,n_E:()=>Np,oAB:()=>jr,oJD:()=>Xg,oxw:()=>m_,pB0:()=>fy,q3G:()=>gi,qLn:()=>Ra,qOj:()=>B0,qZA:()=>z0,qzn:()=>kc,rWj:()=>ni,s9C:()=>lp,sBO:()=>tE,sIi:()=>vu,s_b:()=>Uu,soG:()=>Zp,tb:()=>Rb,tp0:()=>Al,uIk:()=>Tu,vHH:()=>re,vpe:()=>ss,wAp:()=>vt,xDo:()=>mp,xi3:()=>mC,xp6:()=>Ll,ynx:()=>ap,z2F:()=>rg,z3N:()=>Za,zSh:()=>Zf,zs3:()=>Qa});var T=E(7579),n=E(727),H=E(9751),D=E(6451),L=E(3099);function O(_){for(let b in _)if(_[b]===O)return b;throw Error("Could not find renamed property on target object.")}function B(_,b){for(const y in b)b.hasOwnProperty(y)&&!_.hasOwnProperty(y)&&(_[y]=b[y])}function U(_){if("string"==typeof _)return _;if(Array.isArray(_))return"["+_.map(U).join(", ")+"]";if(null==_)return""+_;if(_.overriddenName)return`${_.overriddenName}`;if(_.name)return`${_.name}`;const b=_.toString();if(null==b)return""+b;const y=b.indexOf("\n");return-1===y?b:b.substring(0,y)}function W(_,b){return null==_||""===_?null===b?"":b:null==b||""===b?_:_+" "+b}const ee=O({__forward_ref__:O});function te(_){return _.__forward_ref__=te,_.toString=function(){return U(this())},_}function ae(_){return ue(_)?_():_}function ue(_){return"function"==typeof _&&_.hasOwnProperty(ee)&&_.__forward_ref__===te}class re extends Error{constructor(b,y){super(function be(_,b){return`NG0${Math.abs(_)}${b?": "+b.trim():""}`}(b,y)),this.code=b}}function we(_){return"string"==typeof _?_:null==_?"":String(_)}function De(_,b){throw new re(-201,!1)}function cn(_,b){null==_&&function tt(_,b,y,M){throw new Error(`ASSERTION ERROR: ${_}`+(null==M?"":` [Expected=> ${y} ${M} ${b} <=Actual]`))}(b,_,null,"!=")}function dn(_){return{token:_.token,providedIn:_.providedIn||null,factory:_.factory,value:void 0}}function Tn(_){return{providers:_.providers||[],imports:_.imports||[]}}function Ii(_){return hn(_,Cr)||hn(_,pe)}function hn(_,b){return _.hasOwnProperty(b)?_[b]:null}function pa(_){return _&&(_.hasOwnProperty(zi)||_.hasOwnProperty(Ie))?_[zi]:null}const Cr=O({\u0275prov:O}),zi=O({\u0275inj:O}),pe=O({ngInjectableDef:O}),Ie=O({ngInjectorDef:O});var ye=(()=>((ye=ye||{})[ye.Default=0]="Default",ye[ye.Host=1]="Host",ye[ye.Self=2]="Self",ye[ye.SkipSelf=4]="SkipSelf",ye[ye.Optional=8]="Optional",ye))();let Ye;function ct(_){const b=Ye;return Ye=_,b}function Zt(_,b,y){const M=Ii(_);return M&&"root"==M.providedIn?void 0===M.value?M.value=M.factory():M.value:y&ye.Optional?null:void 0!==b?b:void De(U(_))}function un(_){return{toString:_}.toString()}var Kt=(()=>((Kt=Kt||{})[Kt.OnPush=0]="OnPush",Kt[Kt.Default=1]="Default",Kt))(),ie=(()=>{return(_=ie||(ie={}))[_.Emulated=0]="Emulated",_[_.None=2]="None",_[_.ShadowDom=3]="ShadowDom",ie;var _})();const fe=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),Bt={},it=[],Et=O({\u0275cmp:O}),qn=O({\u0275dir:O}),kt=O({\u0275pipe:O}),vr=O({\u0275mod:O}),Lt=O({\u0275fac:O}),Yt=O({__NG_ELEMENT_ID__:O});let St=0;function lr(_){return un(()=>{const y=!0===_.standalone,M={},v={type:_.type,providersResolver:null,decls:_.decls,vars:_.vars,factory:null,template:_.template||null,consts:_.consts||null,ngContentSelectors:_.ngContentSelectors,hostBindings:_.hostBindings||null,hostVars:_.hostVars||0,hostAttrs:_.hostAttrs||null,contentQueries:_.contentQueries||null,declaredInputs:M,inputs:null,outputs:null,exportAs:_.exportAs||null,onPush:_.changeDetection===Kt.OnPush,directiveDefs:null,pipeDefs:null,standalone:y,dependencies:y&&_.dependencies||null,getStandaloneInjector:null,selectors:_.selectors||it,viewQuery:_.viewQuery||null,features:_.features||null,data:_.data||{},encapsulation:_.encapsulation||ie.Emulated,id:"c"+St++,styles:_.styles||it,_:null,setInput:null,schemas:_.schemas||null,tView:null},x=_.dependencies,R=_.features;return v.inputs=fa(_.inputs,M),v.outputs=fa(_.outputs),R&&R.forEach(k=>k(v)),v.directiveDefs=x?()=>("function"==typeof x?x():x).map(Kn).filter(Xr):null,v.pipeDefs=x?()=>("function"==typeof x?x():x).map(pi).filter(Xr):null,v})}function Qr(_,b,y){const M=_.\u0275cmp;M.directiveDefs=()=>("function"==typeof b?b():b).map(Kn),M.pipeDefs=()=>("function"==typeof y?y():y).map(pi)}function Kn(_){return pn(_)||si(_)}function Xr(_){return null!==_}function jr(_){return un(()=>({type:_.type,bootstrap:_.bootstrap||it,declarations:_.declarations||it,imports:_.imports||it,exports:_.exports||it,transitiveCompileScopes:null,schemas:_.schemas||null,id:_.id||null}))}function fa(_,b){if(null==_)return Bt;const y={};for(const M in _)if(_.hasOwnProperty(M)){let v=_[M],x=v;Array.isArray(v)&&(x=v[1],v=v[0]),y[v]=M,b&&(b[v]=x)}return y}const Ed=lr;function _s(_){return{type:_.type,name:_.name,factory:null,pure:!1!==_.pure,standalone:!0===_.standalone,onDestroy:_.type.prototype.ngOnDestroy||null}}function pn(_){return _[Et]||null}function si(_){return _[qn]||null}function pi(_){return _[kt]||null}function Ze(_,b){const y=_[vr]||null;if(!y&&!0===b)throw new Error(`Type ${U(_)} does not have '\u0275mod' property.`);return y}function fi(_){return Array.isArray(_)&&"object"==typeof _[1]}function Ji(_){return Array.isArray(_)&&!0===_[1]}function cr(_){return 0!=(8&_.flags)}function na(_){return 2==(2&_.flags)}function Sr(_){return 1==(1&_.flags)}function Qi(_){return null!==_.template}function ba(_){return 0!=(256&_[2])}function zr(_,b){return _.hasOwnProperty(Lt)?_[Lt]:null}class ac{constructor(b,y,M){this.previousValue=b,this.currentValue=y,this.firstChange=M}isFirstChange(){return this.firstChange}}function Er(){return sc}function sc(_){return _.type.prototype.ngOnChanges&&(_.setInput=oc),fo}function fo(){const _=mo(this),b=_?.current;if(b){const y=_.previous;if(y===Bt)_.previous=b;else for(let M in b)y[M]=b[M];_.current=null,this.ngOnChanges(b)}}function oc(_,b,y,M){const v=mo(_)||function tl(_,b){return _[ia]=b}(_,{previous:Bt,current:null}),x=v.current||(v.current={}),R=v.previous,k=this.declaredInputs[y],I=R[k];x[k]=new ac(I&&I.currentValue,b,R===Bt),_[M]=b}Er.ngInherit=!0;const ia="__ngSimpleChanges__";function mo(_){return _[ia]||null}function ti(_){for(;Array.isArray(_);)_=_[0];return _}function ya(_,b){return ti(b[_])}function ur(_,b){return ti(b[_.index])}function uc(_,b){return _.data[b]}function _o(_,b){return _[b]}function Bi(_,b){const y=b[_];return fi(y)?y:y[0]}function j(_){return 4==(4&_[2])}function J(_){return 64==(64&_[2])}function X(_,b){return null==b?null:_[b]}function le(_){_[18]=0}function Ce(_,b){_[5]+=b;let y=_,M=_[3];for(;null!==M&&(1===b&&1===y[5]||-1===b&&0===y[5]);)M[5]+=b,y=M,M=M[3]}const Ae={lFrame:rl(null),bindingsEnabled:!0};function gt(){return Ae.bindingsEnabled}function Se(){return Ae.lFrame.lView}function pt(){return Ae.lFrame.tView}function wa(_){return Ae.lFrame.contextLView=_,_[8]}function nr(_){return Ae.lFrame.contextLView=null,_}function Gn(){let _=Ui();for(;null!==_&&64===_.type;)_=_.parent;return _}function Ui(){return Ae.lFrame.currentTNode}function Nt(_,b){const y=Ae.lFrame;y.currentTNode=_,y.isParent=b}function hr(){return Ae.lFrame.isParent}function Ms(){Ae.lFrame.isParent=!1}function Wt(){const _=Ae.lFrame;let b=_.bindingRootIndex;return-1===b&&(b=_.bindingRootIndex=_.tView.bindingStartIndex),b}function Fn(){return Ae.lFrame.bindingIndex}function Cs(){return Ae.lFrame.bindingIndex++}function Dr(_){const b=Ae.lFrame,y=b.bindingIndex;return b.bindingIndex=b.bindingIndex+_,y}function ah(_,b){const y=Ae.lFrame;y.bindingIndex=y.bindingRootIndex=_,pc(b)}function pc(_){Ae.lFrame.currentDirectiveIndex=_}function nl(_){const b=Ae.lFrame.currentDirectiveIndex;return-1===b?null:_[b]}function bo(){return Ae.lFrame.currentQueryIndex}function ra(_){Ae.lFrame.currentQueryIndex=_}function qt(_){const b=_[1];return 2===b.type?b.declTNode:1===b.type?_[6]:null}function sh(_,b,y){if(y&ye.SkipSelf){let v=b,x=_;for(;!(v=v.parent,null!==v||y&ye.Host||(v=qt(x),null===v||(x=x[15],10&v.type))););if(null===v)return!1;b=v,_=x}const M=Ae.lFrame=il();return M.currentTNode=b,M.lView=_,!0}function Ya(_){const b=il(),y=_[1];Ae.lFrame=b,b.currentTNode=y.firstChild,b.lView=_,b.tView=y,b.contextLView=_,b.bindingIndex=y.bindingStartIndex,b.inI18n=!1}function il(){const _=Ae.lFrame,b=null===_?null:_.child;return null===b?rl(_):b}function rl(_){const b={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:_,child:null,inI18n:!1};return null!==_&&(_.child=b),b}function fr(){const _=Ae.lFrame;return Ae.lFrame=_.parent,_.currentTNode=null,_.lView=null,_}const kd=fr;function al(){const _=fr();_.isParent=!0,_.tView=null,_.selectedIndex=-1,_.contextLView=null,_.elementDepthCount=0,_.currentDirectiveIndex=-1,_.currentNamespace=null,_.bindingRootIndex=-1,_.bindingIndex=-1,_.currentQueryIndex=0}function rn(){return Ae.lFrame.selectedIndex}function xi(_){Ae.lFrame.selectedIndex=_}function Nn(){const _=Ae.lFrame;return uc(_.tView,_.selectedIndex)}function ch(){Ae.lFrame.currentNamespace="svg"}function Od(){!function dh(){Ae.lFrame.currentNamespace=null}()}function fc(_,b){for(let y=b.directiveStart,M=b.directiveEnd;y=M)break}else b[I]<0&&(_[18]+=65536),(k>11<_[18]>>16&&(3&_[2])===b){_[2]+=2048;try{x.call(k)}finally{}}}else try{x.call(k)}finally{}}class qr{constructor(b,y,M){this.factory=b,this.resolving=!1,this.canSeeViewProviders=y,this.injectImpl=M}}function xs(_,b,y){let M=0;for(;Mb){R=x-1;break}}}for(;x<_.length;){const k=_[x];if("number"==typeof k)break;if(k===y){if(null===M)return void(null!==v&&(_[x+1]=v));if(M===_[x+1])return void(_[x+2]=v)}x++,null!==M&&x++,null!==v&&x++}-1!==R&&(_.splice(R,0,b),x=R+1),_.splice(x++,0,y),null!==M&&_.splice(x++,0,M),null!==v&&_.splice(x++,0,v)}function Bd(_){return-1!==_}function yo(_){return 32767&_}function wo(_,b){let y=function wf(_){return _>>16}(_),M=b;for(;y>0;)M=M[15],y--;return M}let Mo=!0;function _c(_){const b=Mo;return Mo=_,b}let Mf=0;const Lr={};function dl(_,b){const y=ul(_,b);if(-1!==y)return y;const M=b[1];M.firstCreatePass&&(_.injectorIndex=b.length,Ma(M.data,_),Ma(b,null),Ma(M.blueprint,null));const v=Nd(_,b),x=_.injectorIndex;if(Bd(v)){const R=yo(v),k=wo(v,b),I=k[1].data;for(let z=0;z<8;z++)b[x+z]=k[R+z]|I[R+z]}return b[x+8]=v,x}function Ma(_,b){_.push(0,0,0,0,0,0,0,0,b)}function ul(_,b){return-1===_.injectorIndex||_.parent&&_.parent.injectorIndex===_.injectorIndex||null===b[_.injectorIndex+8]?-1:_.injectorIndex}function Nd(_,b){if(_.parent&&-1!==_.parent.injectorIndex)return _.parent.injectorIndex;let y=0,M=null,v=b;for(;null!==v;){if(M=wc(v),null===M)return-1;if(y++,v=v[15],-1!==M.injectorIndex)return M.injectorIndex|y<<16}return-1}function Ac(_,b,y){!function bc(_,b,y){let M;"string"==typeof y?M=y.charCodeAt(0)||0:y.hasOwnProperty(Yt)&&(M=y[Yt]),null==M&&(M=y[Yt]=Mf++);const v=255&M;b.data[_+(v>>5)]|=1<=0?255&b:Cf:b}(y);if("function"==typeof x){if(!sh(b,_,M))return M&ye.Host?Vd(v,0,M):Es(b,y,M,v);try{const R=x(M);if(null!=R||M&ye.Optional)return R;De()}finally{kd()}}else if("number"==typeof x){let R=null,k=ul(_,b),I=-1,z=M&ye.Host?b[16][6]:null;for((-1===k||M&ye.SkipSelf)&&(I=-1===k?Nd(_,b):b[k+8],-1!==I&&mh(M,!1)?(R=b[1],k=yo(I),b=wo(I,b)):k=-1);-1!==k;){const $=b[1];if(jd(x,k,$.data)){const ne=hl(k,b,y,R,M,z);if(ne!==Lr)return ne}I=b[k+8],-1!==I&&mh(M,b[1].data[k+8]===z)&&jd(x,k,b)?(R=$,k=yo(I),b=wo(I,b)):k=-1}}return v}function hl(_,b,y,M,v,x){const R=b[1],k=R.data[_+8],$=Co(k,R,y,null==M?na(k)&&Mo:M!=R&&0!=(3&k.type),v&ye.Host&&x===k);return null!==$?Yr(b,R,$,k):Lr}function Co(_,b,y,M,v){const x=_.providerIndexes,R=b.data,k=1048575&x,I=_.directiveStart,$=x>>20,de=v?k+$:_.directiveEnd;for(let ge=M?k:k+$;ge=I&&He.type===y)return ge}if(v){const ge=R[I];if(ge&&Qi(ge)&&ge.type===y)return I}return null}function Yr(_,b,y,M){let v=_[y];const x=b.data;if(function Ga(_){return _ instanceof qr}(v)){const R=v;R.resolving&&function Xe(_,b){const y=b?`. Dependency path: ${b.join(" > ")} > ${_}`:"";throw new re(-200,`Circular dependency in DI detected for ${_}${y}`)}(function xe(_){return"function"==typeof _?_.name||_.toString():"object"==typeof _&&null!=_&&"function"==typeof _.type?_.type.name||_.type.toString():we(_)}(x[y]));const k=_c(R.canSeeViewProviders);R.resolving=!0;const I=R.injectImpl?ct(R.injectImpl):null;sh(_,M,ye.Default);try{v=_[y]=R.factory(void 0,x,_,M),b.firstCreatePass&&y>=M.directiveStart&&function uh(_,b,y){const{ngOnChanges:M,ngOnInit:v,ngDoCheck:x}=b.type.prototype;if(M){const R=sc(b);(y.preOrderHooks||(y.preOrderHooks=[])).push(_,R),(y.preOrderCheckHooks||(y.preOrderCheckHooks=[])).push(_,R)}v&&(y.preOrderHooks||(y.preOrderHooks=[])).push(0-_,v),x&&((y.preOrderHooks||(y.preOrderHooks=[])).push(_,x),(y.preOrderCheckHooks||(y.preOrderCheckHooks=[])).push(_,x))}(y,x[y],b)}finally{null!==I&&ct(I),_c(k),R.resolving=!1,kd()}}return v}function jd(_,b,y){return!!(y[b+(_>>5)]&1<<_)}function mh(_,b){return!(_&ye.Self||_&ye.Host&&b)}class Ls{constructor(b,y){this._tNode=b,this._lView=y}get(b,y,M){return Ca(this._tNode,this._lView,b,M,y)}}function Cf(){return new Ls(Gn(),Se())}function yc(_){return un(()=>{const b=_.prototype.constructor,y=b[Lt]||Hs(b),M=Object.prototype;let v=Object.getPrototypeOf(_.prototype).constructor;for(;v&&v!==M;){const x=v[Lt]||Hs(v);if(x&&x!==y)return x;v=Object.getPrototypeOf(v)}return x=>new x})}function Hs(_){return ue(_)?()=>{const b=Hs(ae(_));return b&&b()}:zr(_)}function wc(_){const b=_[1],y=b.type;return 2===y?b.declTNode:1===y?_[6]:null}function Fd(_){return function fh(_,b){if("class"===b)return _.classes;if("style"===b)return _.styles;const y=_.attrs;if(y){const M=y.length;let v=0;for(;v{const M=function Rr(_){return function(...y){if(_){const M=_(...y);for(const v in M)this[v]=M[v]}}}(b);function v(...x){if(this instanceof v)return M.apply(this,x),this;const R=new v(...x);return k.annotation=R,k;function k(I,z,$){const ne=I.hasOwnProperty(Ps)?I[Ps]:Object.defineProperty(I,Ps,{value:[]})[Ps];for(;ne.length<=$;)ne.push(null);return(ne[$]=ne[$]||[]).push(R),I}}return y&&(v.prototype=Object.create(y.prototype)),v.prototype.ngMetadataName=_,v.annotationCls=v,v})}class Sn{constructor(b,y){this._desc=b,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof y?this.__NG_ELEMENT_ID__=y:void 0!==y&&(this.\u0275prov=dn({token:this,providedIn:y.providedIn||"root",factory:y.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Si(_,b){void 0===b&&(b=_);for(let y=0;y<_.length;y++){let M=_[y];Array.isArray(M)?(b===_&&(b=_.slice(0,y)),Si(M,b)):b!==_&&b.push(M)}return b}function aa(_,b){_.forEach(y=>Array.isArray(y)?aa(y,b):b(y))}function vc(_,b,y){b>=_.length?_.push(y):_.splice(b,0,y)}function Tc(_,b){return b>=_.length-1?_.pop():_.splice(b,1)[0]}function mi(_,b){const y=[];for(let M=0;M<_;M++)y.push(b);return y}function Ki(_,b,y){let M=vo(_,b);return M>=0?_[1|M]=y:(M=~M,function Sc(_,b,y,M){let v=_.length;if(v==b)_.push(y,M);else if(1===v)_.push(M,_[0]),_[0]=y;else{for(v--,_.push(_[v-1],_[v]);v>b;)_[v]=_[v-2],v--;_[b]=y,_[b+1]=M}}(_,M,b,y)),M}function fl(_,b){const y=vo(_,b);if(y>=0)return _[1|y]}function vo(_,b){return function bh(_,b,y){let M=0,v=_.length>>y;for(;v!==M;){const x=M+(v-M>>1),R=_[x<b?v=x:M=x+1}return~(v<_,createScript:_=>_,createScriptURL:_=>_})}catch{}return Q}())||void 0===b?void 0:b.createHTML(_))||_}function La(_){var b;return(null===(b=function Gr(){if(void 0===Ei&&(Ei=null,fe.trustedTypes))try{Ei=fe.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:_=>_,createScript:_=>_,createScriptURL:_=>_})}catch{}return Ei}())||void 0===b?void 0:b.createHTML(_))||_}class So{constructor(b){this.changingThisBreaksApplicationSecurity=b}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Ug extends So{getTypeName(){return"HTML"}}class Sh extends So{getTypeName(){return"Style"}}class Eh extends So{getTypeName(){return"Script"}}class qg extends So{getTypeName(){return"URL"}}class Kd extends So{getTypeName(){return"ResourceURL"}}function Za(_){return _ instanceof So?_.changingThisBreaksApplicationSecurity:_}function kc(_,b){const y=function dy(_){return _ instanceof So&&_.getTypeName()||null}(_);if(null!=y&&y!==b){if("ResourceURL"===y&&"URL"===b)return!0;throw new Error(`Required a safe ${b}, got a ${y} (see https://g.co/ng/security#xss)`)}return y===b}function uy(_){return new Ug(_)}function hy(_){return new Sh(_)}function py(_){return new Eh(_)}function Dh(_){return new qg(_)}function fy(_){return new Kd(_)}class my{constructor(b){this.inertDocumentHelper=b}getInertBodyElement(b){b=""+b;try{const y=(new window.DOMParser).parseFromString(ve(b),"text/html").body;return null===y?this.inertDocumentHelper.getInertBodyElement(b):(y.removeChild(y.firstChild),y)}catch{return null}}}class gy{constructor(b){if(this.defaultDoc=b,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const y=this.inertDocument.createElement("html");this.inertDocument.appendChild(y);const M=this.inertDocument.createElement("body");y.appendChild(M)}}getInertBodyElement(b){const y=this.inertDocument.createElement("template");if("content"in y)return y.innerHTML=ve(b),y;const M=this.inertDocument.createElement("body");return M.innerHTML=ve(b),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(M),M}stripCustomNsAttrs(b){const y=b.attributes;for(let v=y.length-1;0eu(b.trim())).join(", ")),this.buf.push(" ",R,'="',Qg(I),'"')}var _;return this.buf.push(">"),!0}endElement(b){const y=b.nodeName.toLowerCase();Nf.hasOwnProperty(y)&&!If.hasOwnProperty(y)&&(this.buf.push(""))}chars(b){this.buf.push(Qg(b))}checkClobberedElement(b,y){if(y&&(b.compareDocumentPosition(y)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${b.outerHTML}`);return y}}const wy=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,My=/([^\#-~ |!])/g;function Qg(_){return _.replace(/&/g,"&").replace(wy,function(b){return"&#"+(1024*(b.charCodeAt(0)-55296)+(b.charCodeAt(1)-56320)+65536)+";"}).replace(My,function(b){return"&#"+b.charCodeAt(0)+";"}).replace(//g,">")}let Ic;function zf(_,b){let y=null;try{Ic=Ic||function Yg(_){const b=new gy(_);return function _y(){try{return!!(new window.DOMParser).parseFromString(ve(""),"text/html")}catch{return!1}}()?new my(b):b}(_);let M=b?String(b):"";y=Ic.getInertBodyElement(M);let v=5,x=M;do{if(0===v)throw new Error("Failed to sanitize html because the input is unstable");v--,M=x,x=y.innerHTML,y=Ic.getInertBodyElement(M)}while(M!==x);return ve((new yy).sanitizeChildren(tu(y)||y))}finally{if(y){const M=tu(y)||y;for(;M.firstChild;)M.removeChild(M.firstChild)}}}function tu(_){return"content"in _&&function Uf(_){return _.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===_.nodeName}(_)?_.content:null}var gi=(()=>((gi=gi||{})[gi.NONE=0]="NONE",gi[gi.HTML=1]="HTML",gi[gi.STYLE=2]="STYLE",gi[gi.SCRIPT=3]="SCRIPT",gi[gi.URL=4]="URL",gi[gi.RESOURCE_URL=5]="RESOURCE_URL",gi))();function Xg(_){const b=oa();return b?La(b.sanitize(gi.HTML,_)||""):kc(_,"HTML")?La(Za(_)):zf(function q(){return void 0!==P?P:typeof document<"u"?document:void 0}(),we(_))}function qf(_){const b=oa();return b?b.sanitize(gi.URL,_)||"":kc(_,"URL")?Za(_):eu(we(_))}function oa(){const _=Se();return _&&_[12]}const vl=new Sn("ENVIRONMENT_INITIALIZER"),t1=new Sn("INJECTOR",-1),n1=new Sn("INJECTOR_DEF_TYPES");class Yf{get(b,y=Wr){if(y===Wr){const M=new Error(`NullInjectorError: No provider for ${U(b)}!`);throw M.name="NullInjectorError",M}return y}}function Sy(..._){return{\u0275providers:Ey(0,_)}}function Ey(_,...b){const y=[],M=new Set;let v;return aa(b,x=>{const R=x;Hh(R,y,[],M)&&(v||(v=[]),v.push(R))}),void 0!==v&&Wf(v,y),y}function Wf(_,b){for(let y=0;y<_.length;y++){const{providers:v}=_[y];aa(v,x=>{b.push(x)})}}function Hh(_,b,y,M){if(!(_=ae(_)))return!1;let v=null,x=pa(_);const R=!x&&pn(_);if(x||R){if(R&&!R.standalone)return!1;v=_}else{const I=_.ngModule;if(x=pa(I),!x)return!1;v=I}const k=M.has(v);if(R){if(k)return!1;if(M.add(v),R.dependencies){const I="function"==typeof R.dependencies?R.dependencies():R.dependencies;for(const z of I)Hh(z,b,y,M)}}else{if(!x)return!1;{if(null!=x.imports&&!k){let z;M.add(v);try{aa(x.imports,$=>{Hh($,b,y,M)&&(z||(z=[]),z.push($))})}finally{}void 0!==z&&Wf(z,b)}if(!k){const z=zr(v)||(()=>new v);b.push({provide:v,useFactory:z,deps:it},{provide:n1,useValue:v,multi:!0},{provide:vl,useValue:()=>Jn(v),multi:!0})}const I=x.providers;null==I||k||aa(I,$=>{b.push($)})}}return v!==_&&void 0!==_.providers}const Eo=O({provide:String,useValue:O});function r1(_){return null!==_&&"object"==typeof _&&Eo in _}function Tl(_){return"function"==typeof _}const Zf=new Sn("Set Injector scope."),xl={},Ly={};let Jf;function Rh(){return void 0===Jf&&(Jf=new Yf),Jf}class Sl{}class Qf extends Sl{constructor(b,y,M,v){super(),this.parent=y,this.source=M,this.scopes=v,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,e0(b,R=>this.processProvider(R)),this.records.set(t1,El(void 0,this)),v.has("environment")&&this.records.set(Sl,El(void 0,this));const x=this.records.get(Zf);null!=x&&"string"==typeof x.value&&this.scopes.add(x.value),this.injectorDefTypes=new Set(this.get(n1.multi,it,ye.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const b of this._ngOnDestroyHooks)b.ngOnDestroy();for(const b of this._onDestroyHooks)b()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(b){this._onDestroyHooks.push(b)}runInContext(b){this.assertNotDestroyed();const y=_l(this),M=ct(void 0);try{return b()}finally{_l(y),ct(M)}}get(b,y=Wr,M=ye.Default){this.assertNotDestroyed();const v=_l(this),x=ct(void 0);try{if(!(M&ye.SkipSelf)){let k=this.records.get(b);if(void 0===k){const I=function Py(_){return"function"==typeof _||"object"==typeof _&&_ instanceof Sn}(b)&&Ii(b);k=I&&this.injectableDefInScope(I)?El(Xf(b),xl):null,this.records.set(b,k)}if(null!=k)return this.hydrate(b,k)}return(M&ye.Self?Rh():this.parent).get(b,y=M&ye.Optional&&y===Wr?null:y)}catch(R){if("NullInjectorError"===R.name){if((R[Pr]=R[Pr]||[]).unshift(U(b)),v)throw R;return function Ch(_,b,y,M){const v=_[Pr];throw b[Lf]&&v.unshift(b[Lf]),_.message=function Hf(_,b,y,M=null){_=_&&"\n"===_.charAt(0)&&"\u0275"==_.charAt(1)?_.slice(2):_;let v=U(b);if(Array.isArray(b))v=b.map(U).join(" -> ");else if("object"==typeof b){let x=[];for(let R in b)if(b.hasOwnProperty(R)){let k=b[R];x.push(R+":"+("string"==typeof k?JSON.stringify(k):U(k)))}v=`{${x.join(", ")}}`}return`${y}${M?"("+M+")":""}[${v}]: ${_.replace(Gd,"\n ")}`}("\n"+_.message,v,y,M),_.ngTokenPath=v,_[Pr]=null,_}(R,b,"R3InjectorError",this.source)}throw R}finally{ct(x),_l(v)}}resolveInjectorInitializers(){const b=_l(this),y=ct(void 0);try{const M=this.get(vl.multi,it,ye.Self);for(const v of M)v()}finally{_l(b),ct(y)}}toString(){const b=[],y=this.records;for(const M of y.keys())b.push(U(M));return`R3Injector[${b.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new re(205,!1)}processProvider(b){let y=Tl(b=ae(b))?b:ae(b&&b.provide);const M=function Hy(_){return r1(_)?El(void 0,_.useValue):El(s1(_),xl)}(b);if(Tl(b)||!0!==b.multi)this.records.get(y);else{let v=this.records.get(y);v||(v=El(void 0,xl,!0),v.factory=()=>mr(v.multi),this.records.set(y,v)),y=b,v.multi.push(b)}this.records.set(y,M)}hydrate(b,y){return y.value===xl&&(y.value=Ly,y.value=y.factory()),"object"==typeof y.value&&y.value&&function Kf(_){return null!==_&&"object"==typeof _&&"function"==typeof _.ngOnDestroy}(y.value)&&this._ngOnDestroyHooks.add(y.value),y.value}injectableDefInScope(b){if(!b.providedIn)return!1;const y=ae(b.providedIn);return"string"==typeof y?"any"===y||this.scopes.has(y):this.injectorDefTypes.has(y)}}function Xf(_){const b=Ii(_),y=null!==b?b.factory:zr(_);if(null!==y)return y;if(_ instanceof Sn)throw new re(204,!1);if(_ instanceof Function)return function a1(_){const b=_.length;if(b>0)throw mi(b,"?"),new re(204,!1);const y=function vi(_){const b=_&&(_[Cr]||_[pe]);if(b){const y=function co(_){if(_.hasOwnProperty("name"))return _.name;const b=(""+_).match(/^function\s*([^\s(]+)/);return null===b?"":b[1]}(_);return console.warn(`DEPRECATED: DI is instantiating a token "${y}" 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 "${y}" class.`),b}return null}(_);return null!==y?()=>y.factory(_):()=>new _}(_);throw new re(204,!1)}function s1(_,b,y){let M;if(Tl(_)){const v=ae(_);return zr(v)||Xf(v)}if(r1(_))M=()=>ae(_.useValue);else if(function $f(_){return!(!_||!_.useFactory)}(_))M=()=>_.useFactory(...mr(_.deps||[]));else if(function Gf(_){return!(!_||!_.useExisting)}(_))M=()=>Jn(ae(_.useExisting));else{const v=ae(_&&(_.useClass||_.provide));if(!function Ry(_){return!!_.deps}(_))return zr(v)||Xf(v);M=()=>new v(...mr(_.deps))}return M}function El(_,b,y=!1){return{factory:_,value:b,multi:y?[]:void 0}}function ky(_){return!!_.\u0275providers}function e0(_,b){for(const y of _)Array.isArray(y)?e0(y,b):ky(y)?e0(y.\u0275providers,b):b(y)}class Ph{}class o1{resolveComponentFactory(b){throw function Qn(_){const b=Error(`No component factory found for ${U(_)}. Did you add it to @NgModule.entryComponents?`);return b.ngComponent=_,b}(b)}}let Bc=(()=>{class _{}return _.NULL=new o1,_})();function iu(){return Nc(Gn(),Se())}function Nc(_,b){return new kr(ur(_,b))}let kr=(()=>{class _{constructor(y){this.nativeElement=y}}return _.__NG_ELEMENT_ID__=iu,_})();function kh(_){return _ instanceof kr?_.nativeElement:_}class t0{}let ru=(()=>{class _{}return _.__NG_ELEMENT_ID__=()=>function n0(){const _=Se(),y=Bi(Gn().index,_);return(fi(y)?y:_)[11]}(),_})(),Iy=(()=>{class _{}return _.\u0275prov=dn({token:_,providedIn:"root",factory:()=>null}),_})();class au{constructor(b){this.full=b,this.major=b.split(".")[0],this.minor=b.split(".")[1],this.patch=b.split(".").slice(2).join(".")}}const r0=new au("14.1.2"),Or={};function Fc(_){return _.ngOriginalError}class Ra{constructor(){this._console=console}handleError(b){const y=this._findOriginalError(b);this._console.error("ERROR",b),y&&this._console.error("ORIGINAL ERROR",y)}_findOriginalError(b){let y=b&&Fc(b);for(;y&&Fc(y);)y=Fc(y);return y||null}}const p1=new Map;let px=0;const ou="__ngContext__";function gr(_,b){fi(b)?(_[ou]=b[20],function mx(_){p1.set(_[20],_)}(b)):_[ou]=b}function Oh(_){const b=_[ou];return"number"==typeof b?function Vy(_){return p1.get(_)||null}(b):b||null}function m1(_){const b=Oh(_);return b?fi(b)?b:b.lView:null}const Cx=(()=>(typeof requestAnimationFrame<"u"&&requestAnimationFrame||setTimeout).bind(fe))();function Yy(_){return _.ownerDocument.defaultView}function Lo(_){return _ instanceof Function?_():_}var Ja=(()=>((Ja=Ja||{})[Ja.Important=1]="Important",Ja[Ja.DashCase=2]="DashCase",Ja))();function g1(_,b){return undefined(_,b)}function Ih(_){const b=_[3];return Ji(b)?b[3]:b}function _1(_){return Zy(_[13])}function b1(_){return Zy(_[4])}function Zy(_){for(;null!==_&&!Ji(_);)_=_[4];return _}function cu(_,b,y,M,v){if(null!=M){let x,R=!1;Ji(M)?x=M:fi(M)&&(R=!0,M=M[0]);const k=ti(M);0===_&&null!==y?null==v?tw(b,y,k):zc(b,y,k,v||null,!0):1===_&&null!==y?zc(b,y,k,v||null,!0):2===_?function lw(_,b,y){const M=o0(_,b);M&&function jx(_,b,y,M){_.removeChild(b,y,M)}(_,M,b,y)}(b,k,R):3===_&&b.destroyNode(k),null!=x&&function Ux(_,b,y,M,v){const x=y[7];x!==ti(y)&&cu(b,_,M,x,v);for(let k=10;k0&&(_[y-1][4]=M[4]);const x=Tc(_,10+b);!function Rx(_,b){Nh(_,b,b[11],2,null,null),b[0]=null,b[6]=null}(M[1],M);const R=x[19];null!==R&&R.detachView(x[1]),M[3]=null,M[4]=null,M[2]&=-65}return M}function Xy(_,b){if(!(128&b[2])){const y=b[11];y.destroyNode&&Nh(_,b,y,3,null,null),function Ox(_){let b=_[13];if(!b)return M1(_[1],_);for(;b;){let y=null;if(fi(b))y=b[13];else{const M=b[10];M&&(y=M)}if(!y){for(;b&&!b[4]&&b!==_;)fi(b)&&M1(b[1],b),b=b[3];null===b&&(b=_),fi(b)&&M1(b[1],b),y=b&&b[4]}b=y}}(b)}}function M1(_,b){if(!(128&b[2])){b[2]&=-65,b[2]|=128,function Vx(_,b){let y;if(null!=_&&null!=(y=_.destroyHooks))for(let M=0;M=0?M[v=z]():M[v=-z].unsubscribe(),x+=2}else{const R=M[v=y[x+1]];y[x].call(R)}if(null!==M){for(let x=v+1;xx?"":v[ne+1].toLowerCase();const ge=8&M?de:null;if(ge&&-1!==du(ge,z,0)||2&M&&z!==de){if(Qt(M))return!1;R=!0}}}}else{if(!R&&!Qt(M)&&!Qt(I))return!1;if(R&&Qt(I))continue;R=!1,M=I|1&M}}return Qt(M)||R}function Qt(_){return 0==(1&_)}function E1(_,b,y,M){if(null===b)return-1;let v=0;if(M||!y){let x=!1;for(;v-1)for(y++;y<_.length;){const M=_[y];if("number"==typeof M)return-1;if(M===b)return y;y++}return-1}(b,_)}function qc(_,b,y=!1){for(let M=0;M0?'="'+k+'"':"")+"]"}else 8&M?v+="."+R:4&M&&(v+=" "+R);else""!==v&&!Qt(R)&&(b+=L1(x,v),v=""),M=R,x=x||!Qt(M);y++}return""!==v&&(b+=L1(x,v)),b}const Vt={};function Ll(_){H1(pt(),Se(),rn()+_,!1)}function H1(_,b,y,M){if(!M)if(3==(3&b[2])){const x=_.preOrderCheckHooks;null!==x&&sl(b,x,y)}else{const x=_.preOrderHooks;null!==x&&ol(b,x,0,y)}xi(y)}function _w(_,b=null,y=null,M){const v=p0(_,b,y,M);return v.resolveInjectorInitializers(),v}function p0(_,b=null,y=null,M,v=new Set){const x=[y||it,Sy(_)];return M=M||("object"==typeof _?void 0:U(_)),new Qf(x,b||Rh(),M||null,v)}let Qa=(()=>{class _{static create(y,M){if(Array.isArray(y))return _w({name:""},M,y,"");{var v;const x=null!==(v=y.name)&&void 0!==v?v:"";return _w({name:x},y.parent,y.providers,x)}}}return _.THROW_IF_NOT_FOUND=Wr,_.NULL=new Yf,_.\u0275prov=dn({token:_,providedIn:"any",factory:()=>Jn(t1)}),_.__NG_ELEMENT_ID__=-1,_})();function Gc(_,b=ye.Default){const y=Se();return null===y?Jn(_,b):Ca(Gn(),y,ae(_),b)}function V1(){throw new Error("invalid")}function Bs(_,b){return _<<17|b<<2}function Pa(_){return _>>17&32767}function A0(_){return 2|_}function Ns(_){return(131068&_)>>2}function F1(_,b){return-131069&_|b<<2}function $c(_){return 1|_}function T0(_,b){const y=_.contentQueries;if(null!==y)for(let M=0;M22&&H1(_,b,22,!1),y(M,v)}finally{xi(x)}}function x0(_,b,y){if(cr(b)){const v=b.directiveEnd;for(let x=b.directiveStart;x0;){const y=_[--b];if("number"==typeof y&&y<0)return y}return 0})(k)!=I&&k.push(I),k.push(M,v,R)}}function J1(_,b){null!==_.hostBindings&&_.hostBindings(1,b)}function Q1(_,b){b.flags|=2,(_.components||(_.components=[])).push(b.index)}function Ww(_,b,y){if(y){if(b.exportAs)for(let M=0;M0&&Xh(y)}}function Xh(_){for(let M=_1(_);null!==M;M=b1(M))for(let v=10;v0&&Xh(x)}const y=_[1].components;if(null!==y)for(let M=0;M0&&Xh(v)}}function bu(_,b){const y=Bi(b,_),M=y[1];(function Kw(_,b){for(let y=b.length;y<_.blueprint.length;y++)b.push(_.blueprint[y])})(M,y),Yh(M,y,y[8])}function Au(_,b){return _[13]?_[14][4]=b:_[13]=b,_[14]=b,b}function L0(_){for(;_;){_[2]|=32;const b=Ih(_);if(ba(_)&&!b)return _;_=b}return null}function Kh(_){!function eM(_){for(let b=0;b<_.components.length;b++){const y=_.components[b],M=m1(y);if(null!==M){const v=M[1];Bw(v,M,v.template,y)}}}(_[8])}function P0(_,b,y){ra(0),b(_,y)}const nM=(()=>Promise.resolve(null))();function K1(_){return _[7]||(_[7]=[])}function yu(_){return _.cleanup||(_.cleanup=[])}function e_(_,b,y){return(null===_||Qi(_))&&(y=function In(_){for(;Array.isArray(_);){if("object"==typeof _[1])return _;_=_[0]}return null}(y[b.index])),y[11]}function t_(_,b){const y=_[9],M=y?y.get(Ra,null):null;M&&M.handleError(b)}function wu(_,b,y,M,v){for(let x=0;x-1&&(w1(b,M),Tc(y,M))}this._attachedToViewContainer=!1}Xy(this._lView[1],this._lView)}onDestroy(b){Jh(this._lView[1],this._lView,null,b)}markForCheck(){L0(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){!function H0(_,b,y){const M=b[10];M.begin&&M.begin();try{Qc(_,b,_.template,y)}catch(v){throw t_(b,v),v}finally{M.end&&M.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new re(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function kx(_,b){Nh(_,b,b[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(b){if(this._attachedToViewContainer)throw new re(902,!1);this._appRef=b}}class tp extends Ol{constructor(b){super(b),this._view=b}detectChanges(){Kh(this._view)}checkNoChanges(){}get context(){return null}}class k0 extends Bc{constructor(b){super(),this.ngModule=b}resolveComponentFactory(b){const y=pn(b);return new Xc(y,this.ngModule)}}function O0(_){const b=[];for(let y in _)_.hasOwnProperty(y)&&b.push({propName:_[y],templateName:y});return b}class iM{constructor(b,y){this.injector=b,this.parentInjector=y}get(b,y,M){const v=this.injector.get(b,Or,M);return v!==Or||y===Or?v:this.parentInjector.get(b,y,M)}}class Xc extends Ph{constructor(b,y){super(),this.componentDef=b,this.ngModule=y,this.componentType=b.type,this.selector=function uu(_){return _.map(c0).join(",")}(b.selectors),this.ngContentSelectors=b.ngContentSelectors?b.ngContentSelectors:[],this.isBoundToModule=!!y}get inputs(){return O0(this.componentDef.inputs)}get outputs(){return O0(this.componentDef.outputs)}create(b,y,M,v){var x;let R=(v=v||this.ngModule)instanceof Sl?v:null===(x=v)||void 0===x?void 0:x.injector;R&&null!==this.componentDef.getStandaloneInjector&&(R=this.componentDef.getStandaloneInjector(R)||R);const k=R?new iM(b,R):b,I=k.get(t0,null);if(null===I)throw new re(407,!1);const z=k.get(Iy,null),$=I.createRenderer(null,this.componentDef),ne=this.componentDef.selectors[0][0]||"div",de=M?function $1(_,b,y){return _.selectRootElement(b,y===ie.ShadowDom)}($,M,this.componentDef.encapsulation):y1(I.createRenderer(null,this.componentDef),ne,function Cu(_){const b=_.toLowerCase();return"svg"===b?"svg":"math"===b?"math":null}(ne)),ge=this.componentDef.onPush?288:272,He=function aM(_,b){return{components:[],scheduler:_||Cx,clean:nM,playerHandler:b||null,flags:0}}(),qe=Zh(0,null,null,1,0,null,null,null,null,null),Qe=gu(null,qe,He,ge,null,null,I,$,z,k,null);let st,Tt;Ya(Qe);try{const Ne=function Il(_,b,y,M,v,x){const R=y[1];y[22]=_;const I=Pl(R,22,2,"#host",null),z=I.mergedAttrs=b.hostAttrs;null!==z&&(Mu(I,z,!0),null!==_&&(xs(v,_,z),null!==I.classes&&Di(v,_,I.classes),null!==I.styles&&x1(v,_,I.styles)));const $=M.createRenderer(_,b),ne=gu(y,G1(b),null,b.onPush?32:16,y[22],I,M,$,x||null,null,null);return R.firstCreatePass&&(Ac(dl(I,y),R,b.type),Q1(R,I),Ht(I,y.length,1)),Au(y,ne),y[22]=ne}(de,this.componentDef,Qe,I,$);if(de)if(M)xs($,de,["ng-version",r0.full]);else{const{attrs:Dt,classes:zt}=function Yx(_){const b=[],y=[];let M=1,v=2;for(;M<_.length;){let x=_[M];if("string"==typeof x)2===v?""!==x&&b.push(x,_[++M]):8===v&&y.push(x);else{if(!Qt(v))break;v=x}M++}return{attrs:b,classes:y}}(this.componentDef.selectors[0]);Dt&&xs($,de,Dt),zt&&zt.length>0&&Di($,de,zt.join(" "))}if(Tt=uc(qe,22),void 0!==y){const Dt=Tt.projection=[];for(let zt=0;zt=0;M--){const v=_[M];v.hostVars=b+=v.hostVars,v.hostAttrs=Ss(v.hostAttrs,y=Ss(y,v.hostAttrs))}}(M)}function ts(_){return _===Bt?{}:_===it?[]:_}function Bl(_,b){const y=_.viewQuery;_.viewQuery=y?(M,v)=>{b(M,v),y(M,v)}:b}function oM(_,b){const y=_.contentQueries;_.contentQueries=y?(M,v,x)=>{b(M,v,x),y(M,v,x)}:b}function Us(_,b){const y=_.hostBindings;_.hostBindings=y?(M,v)=>{b(M,v),y(M,v)}:b}let np=null;function ko(){if(!np){const _=fe.Symbol;if(_&&_.iterator)np=_.iterator;else{const b=Object.getOwnPropertyNames(Map.prototype);for(let y=0;yk(ti(zt[M.index])):M.index;let Dt=null;if(!k&&I&&(Dt=function cS(_,b,y,M){const v=_.cleanup;if(null!=v)for(let x=0;xI?k[I]:null}"string"==typeof R&&(x+=2)}return null}(_,b,v,M.index)),null!==Dt)(Dt.__ngLastListenerFn__||Dt).__ngNextListenerFn__=x,Dt.__ngLastListenerFn__=x,ge=!1;else{x=f_(M,b,ne,x,!1);const zt=y.listen(st,v,x);de.push(x,zt),$&&$.push(v,Ne,Tt,Tt+1)}}else x=f_(M,b,ne,x,!1);const He=M.outputs;let qe;if(ge&&null!==He&&(qe=He[v])){const Qe=qe.length;if(Qe)for(let st=0;st0;)b=b[15],_--;return b}(_,Ae.lFrame.contextLView))[8]}(_)}function bM(_,b){let y=null;const M=function Li(_){const b=_.attrs;if(null!=b){const y=b.indexOf(5);if(0==(1&y))return b[y+1]}return null}(_);for(let v=0;v=0}const ut={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function No(_){return _.substring(ut.key,ut.keyEnd)}function Hu(_,b){const y=ut.textEnd;return y===b?-1:(b=ut.keyEnd=function Ru(_,b,y){for(;b32;)b++;return b}(_,ut.key=b,y),jl(_,b,y))}function jl(_,b,y){for(;b=0;y=Hu(b,y))Ki(_,No(b),!0)}function Ia(_,b,y,M){const v=Se(),x=pt(),R=Dr(2);x.firstUpdatePass&&v_(x,_,R,M),b!==Vt&&br(v,R,b)&&EM(x,x.data[rn()],v,v[11],_,v[R+1]=function T_(_,b){return null==_||("string"==typeof b?_+=b:"object"==typeof _&&(_=U(Za(_)))),_}(b,y),M,R)}function Ba(_,b,y,M){const v=pt(),x=Dr(2);v.firstUpdatePass&&v_(v,null,x,M);const R=Se();if(y!==Vt&&br(R,x,y)){const k=v.data[rn()];if(x_(k,M)&&!C_(v,x)){let I=M?k.classesWithoutHost:k.stylesWithoutHost;null!==I&&(y=W(I,y||"")),h_(v,k,R,y,M)}else!function pS(_,b,y,M,v,x,R,k){v===Vt&&(v=it);let I=0,z=0,$=0=_.expandoStartIndex}function v_(_,b,y,M){const v=_.data;if(null===v[y+1]){const x=v[rn()],R=C_(_,y);x_(x,M)&&null===b&&!R&&(b=!1),b=function CM(_,b,y,M){const v=nl(_);let x=M?b.residualClasses:b.residualStyles;if(null===v)0===(M?b.classBindings:b.styleBindings)&&(y=Na(y=hp(null,_,b,y,M),b.attrs,M),x=null);else{const R=b.directiveStylingLast;if(-1===R||_[R]!==v)if(y=hp(v,_,b,y,M),null===x){let I=function vM(_,b,y){const M=y?b.classBindings:b.styleBindings;if(0!==Ns(M))return _[Pa(M)]}(_,b,M);void 0!==I&&Array.isArray(I)&&(I=hp(null,_,b,I[1],M),I=Na(I,b.attrs,M),function TM(_,b,y,M){_[Pa(y?b.classBindings:b.styleBindings)]=M}(_,b,M,I))}else x=function xM(_,b,y){let M;const v=b.directiveEnd;for(let x=1+b.directiveStylingLast;x0)&&(z=!0)}else $=y;if(v)if(0!==I){const de=Pa(_[k+1]);_[M+1]=Bs(de,k),0!==de&&(_[de+1]=F1(_[de+1],M)),_[k+1]=function Dw(_,b){return 131071&_|b<<17}(_[k+1],M)}else _[M+1]=Bs(k,0),0!==k&&(_[k+1]=F1(_[k+1],M)),k=M;else _[M+1]=Bs(I,0),0===k?k=M:_[I+1]=F1(_[I+1],M),I=M;z&&(_[M+1]=A0(_[M+1])),G0(_,$,M,!0),G0(_,$,M,!1),function dp(_,b,y,M,v){const x=v?_.residualClasses:_.residualStyles;null!=x&&"string"==typeof b&&vo(x,b)>=0&&(y[M+1]=$c(y[M+1]))}(b,$,_,M,x),R=Bs(k,I),x?b.classBindings=R:b.styleBindings=R}(v,x,b,y,R,M)}}function hp(_,b,y,M,v){let x=null;const R=y.directiveEnd;let k=y.directiveStylingLast;for(-1===k?k=y.directiveStart:k++;k0;){const I=_[v],z=Array.isArray(I),$=z?I[1]:I,ne=null===$;let de=y[v+1];de===Vt&&(de=ne?it:void 0);let ge=ne?fl(de,M):$===M?de:void 0;if(z&&!pp(ge)&&(ge=fl(I,M)),pp(ge)&&(k=ge,R))return k;const He=_[v+1];v=R?Pa(He):Ns(He)}if(null!==b){let I=x?b.residualClasses:b.residualStyles;null!=I&&(k=fl(I,M))}return k}function pp(_){return void 0!==_}function x_(_,b){return 0!=(_.flags&(b?16:32))}function as(_,b=""){const y=Se(),M=pt(),v=_+22,x=M.firstCreatePass?Pl(M,v,1,b,null):M.data[v],R=y[v]=function A1(_,b){return _.createText(b)}(y[11],b);l0(M,y,R,x),Nt(x,!1)}function J0(_){return fp("",_,""),J0}function fp(_,b,y){const M=Se(),v=Oa(M,_,b,y);return v!==Vt&&Po(M,rn(),v),fp}function S_(_,b,y,M,v){const x=Se(),R=td(x,_,b,y,M,v);return R!==Vt&&Po(x,rn(),R),S_}function mp(_,b,y,M,v,x,R,k,I,z,$){const ne=Se(),de=nd(ne,_,b,y,M,v,x,R,k,I,z,$);return de!==Vt&&Po(ne,rn(),de),mp}function sd(_,b,y){Ba(Ki,rs,Oa(Se(),_,b,y),!0)}function od(_,b,y){const M=Se();return br(M,Cs(),b)&&_r(pt(),Nn(),M,_,b,M[11],y,!0),od}function gp(_,b,y){const M=Se();if(br(M,Cs(),b)){const x=pt(),R=Nn();_r(x,R,M,_,b,e_(nl(x.data),R,M),y,!0)}return gp}const Fo=void 0;var O_=["en",[["a","p"],["AM","PM"],Fo],[["AM","PM"],Fo,Fo],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Fo,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Fo,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Fo,"{1} 'at' {0}",Fo],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function k_(_){const y=Math.floor(Math.abs(_)),M=_.toString().replace(/^[^.]*\.?/,"").length;return 1===y&&0===M?1:5}];let ld={};function _p(_){const b=function B_(_){return _.toLowerCase().replace(/_/g,"-")}(_);let y=bp(b);if(y)return y;const M=b.split("-")[0];if(y=bp(M),y)return y;if("en"===M)return O_;throw new re(701,!1)}function lm(_){return _p(_)[vt.PluralCase]}function bp(_){return _ in ld||(ld[_]=fe.ng&&fe.ng.common&&fe.ng.common.locales&&fe.ng.common.locales[_]),ld[_]}var vt=(()=>((vt=vt||{})[vt.LocaleId=0]="LocaleId",vt[vt.DayPeriodsFormat=1]="DayPeriodsFormat",vt[vt.DayPeriodsStandalone=2]="DayPeriodsStandalone",vt[vt.DaysFormat=3]="DaysFormat",vt[vt.DaysStandalone=4]="DaysStandalone",vt[vt.MonthsFormat=5]="MonthsFormat",vt[vt.MonthsStandalone=6]="MonthsStandalone",vt[vt.Eras=7]="Eras",vt[vt.FirstDayOfWeek=8]="FirstDayOfWeek",vt[vt.WeekendRange=9]="WeekendRange",vt[vt.DateFormat=10]="DateFormat",vt[vt.TimeFormat=11]="TimeFormat",vt[vt.DateTimeFormat=12]="DateTimeFormat",vt[vt.NumberSymbols=13]="NumberSymbols",vt[vt.NumberFormats=14]="NumberFormats",vt[vt.CurrencyCode=15]="CurrencyCode",vt[vt.CurrencySymbol=16]="CurrencySymbol",vt[vt.CurrencyName=17]="CurrencyName",vt[vt.Currencies=18]="Currencies",vt[vt.Directionality=19]="Directionality",vt[vt.PluralCase=20]="PluralCase",vt[vt.ExtraData=21]="ExtraData",vt))();const zl="en-US";let VM=zl;function Cm(_,b,y,M,v){if(_=ae(_),Array.isArray(_))for(let x=0;x<_.length;x++)Cm(_[x],b,y,M,v);else{const x=pt(),R=Se();let k=Tl(_)?_:ae(_.provide),I=s1(_);const z=Gn(),$=1048575&z.providerIndexes,ne=z.directiveStart,de=z.providerIndexes>>20;if(Tl(_)||!_.multi){const ge=new qr(I,v,Gc),He=Tm(k,b,v?$:$+de,ne);-1===He?(Ac(dl(z,R),x,k),tb(x,_,b.length),b.push(k),z.directiveStart++,z.directiveEnd++,v&&(z.providerIndexes+=1048576),y.push(ge),R.push(ge)):(y[He]=ge,R[He]=ge)}else{const ge=Tm(k,b,$+de,ne),He=Tm(k,b,$,$+de),qe=ge>=0&&y[ge],Qe=He>=0&&y[He];if(v&&!Qe||!v&&!qe){Ac(dl(z,R),x,k);const st=function xm(_,b,y,M,v){const x=new qr(_,y,Gc);return x.multi=[],x.index=b,x.componentProviders=0,vm(x,v,M&&!y),x}(v?tC:nb,y.length,v,M,I);!v&&Qe&&(y[He].providerFactory=st),tb(x,_,b.length,0),b.push(k),z.directiveStart++,z.directiveEnd++,v&&(z.providerIndexes+=1048576),y.push(st),R.push(st)}else tb(x,_,ge>-1?ge:He,vm(y[v?He:ge],I,!v&&M));!v&&M&&Qe&&y[He].componentProviders++}}}function tb(_,b,y,M){const v=Tl(b),x=function Dy(_){return!!_.useClass}(b);if(v||x){const I=(x?ae(b.useClass):b).prototype.ngOnDestroy;if(I){const z=_.destroyHooks||(_.destroyHooks=[]);if(!v&&b.multi){const $=z.indexOf(y);-1===$?z.push(y,[M,I]):z[$+1].push(M,I)}else z.push(y,I)}}}function vm(_,b,y){return y&&_.componentProviders++,_.multi.push(b)-1}function Tm(_,b,y,M){for(let v=y;v{y.providersResolver=(M,v)=>function Lp(_,b,y){const M=pt();if(M.firstCreatePass){const v=Qi(_);Cm(y,M.data,M.blueprint,v,!0),Cm(b,M.data,M.blueprint,v,!1)}}(M,v?v(_):_,b)}}class sr{}class rb{}function Qs(_,b){return new Rp(_,b??null)}class Rp extends sr{constructor(b,y){super(),this._parent=y,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new k0(this);const M=Ze(b);this._bootstrapComponents=Lo(M.bootstrap),this._r3Injector=p0(b,y,[{provide:sr,useValue:this},{provide:Bc,useValue:this.componentFactoryResolver}],U(b),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(b)}get injector(){return this._r3Injector}destroy(){const b=this._r3Injector;!b.destroyed&&b.destroy(),this.destroyCbs.forEach(y=>y()),this.destroyCbs=null}onDestroy(b){this.destroyCbs.push(b)}}class Sm extends rb{constructor(b){super(),this.moduleType=b}create(b){return new Rp(this.moduleType,b)}}class Em extends sr{constructor(b,y,M){super(),this.componentFactoryResolver=new k0(this),this.instance=null;const v=new Qf([...b,{provide:sr,useValue:this},{provide:Bc,useValue:this.componentFactoryResolver}],y||Rh(),M,new Set(["environment"]));this.injector=v,v.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(b){this.injector.onDestroy(b)}}function Pp(_,b,y=null){return new Em(_,b,y).injector}function db(_,b,y){const M=Wt()+_,v=Se();return v[M]===Vt?qs(v,M,y?b.call(y):b()):function ip(_,b){return _[b]}(v,M)}function ub(_,b,y,M){return Rm(Se(),Wt(),_,b,y,M)}function Nr(_,b,y,M,v){return dC(Se(),Wt(),_,b,y,M,v)}function ju(_,b){const y=_[b];return y===Vt?void 0:y}function Rm(_,b,y,M,v,x){const R=b+y;return br(_,R,v)?qs(_,R+1,x?M.call(x,v):M(v)):ju(_,R+1)}function dC(_,b,y,M,v,x,R){const k=b+y;return ed(_,k,v,x)?qs(_,k+2,R?M.call(R,v,x):M(v,x)):ju(_,k+2)}function uC(_,b,y,M,v,x,R,k){const I=b+y;return function N0(_,b,y,M,v){const x=ed(_,b,y,M);return br(_,b+2,v)||x}(_,I,v,x,R)?qs(_,I+3,k?M.call(k,v,x,R):M(v,x,R)):ju(_,I+3)}function Fu(_,b){const y=pt();let M;const v=_+22;y.firstCreatePass?(M=function Xs(_,b){if(b)for(let y=b.length-1;y>=0;y--){const M=b[y];if(_===M.name)return M}}(b,y.pipeRegistry),y.data[v]=M,M.onDestroy&&(y.destroyHooks||(y.destroyHooks=[])).push(v,M.onDestroy)):M=y.data[v];const x=M.factory||(M.factory=zr(M.type)),R=ct(Gc);try{const k=_c(!1),I=x();return _c(k),function fM(_,b,y,M){y>=_.data.length&&(_.data[y]=null,_.blueprint[y]=null),b[y]=M}(y,Se(),v,I),I}finally{ct(R)}}function fC(_,b,y){const M=_+22,v=Se(),x=_o(v,M);return hd(v,M)?Rm(v,Wt(),b,x.transform,y,x):x.transform(y)}function mC(_,b,y,M){const v=_+22,x=Se(),R=_o(x,v);return hd(x,v)?dC(x,Wt(),b,R.transform,y,M,R):R.transform(y,M)}function km(_,b,y,M,v){const x=_+22,R=Se(),k=_o(R,x);return hd(R,x)?uC(R,Wt(),b,k.transform,y,M,v,k):k.transform(y,M,v)}function hd(_,b){return _[1].data[b].pure}function Om(_){return b=>{setTimeout(_,void 0,b)}}const ss=class LS extends T.x{constructor(b=!1){super(),this.__isAsync=b}emit(b){super.next(b)}subscribe(b,y,M){let v=b,x=y||(()=>null),R=M;if(b&&"object"==typeof b){var k,I,z;const ne=b;v=null===(k=ne.next)||void 0===k?void 0:k.bind(ne),x=null===(I=ne.error)||void 0===I?void 0:I.bind(ne),R=null===(z=ne.complete)||void 0===z?void 0:z.bind(ne)}this.__isAsync&&(x=Om(x),v&&(v=Om(v)),R&&(R=Om(R)));const $=super.subscribe({next:v,error:x,complete:R});return b instanceof n.w0&&b.add($),$}};function _C(){return this._results[ko()]()}class Np{constructor(b=!1){this._emitDistinctChangesOnly=b,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const y=ko(),M=Np.prototype;M[y]||(M[y]=_C)}get changes(){return this._changes||(this._changes=new ss)}get(b){return this._results[b]}map(b){return this._results.map(b)}filter(b){return this._results.filter(b)}find(b){return this._results.find(b)}reduce(b,y){return this._results.reduce(b,y)}forEach(b){this._results.forEach(b)}some(b){return this._results.some(b)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(b,y){const M=this;M.dirty=!1;const v=Si(b);(this._changesDetected=!function Ta(_,b,y){if(_.length!==b.length)return!1;for(let M=0;M<_.length;M++){let v=_[M],x=b[M];if(y&&(v=y(v),x=y(x)),x!==v)return!1}return!0}(M._results,v,y))&&(M._results=v,M.length=v.length,M.last=v[this.length-1],M.first=v[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}let zu=(()=>{class _{}return _.__NG_ELEMENT_ID__=yC,_})();const bC=zu,AC=class extends bC{constructor(b,y,M){super(),this._declarationLView=b,this._declarationTContainer=y,this.elementRef=M}createEmbeddedView(b,y){const M=this._declarationTContainer.tViews,v=gu(this._declarationLView,M,b,16,null,M.declTNode,null,null,null,null,y||null);v[17]=this._declarationLView[this._declarationTContainer.index];const R=this._declarationLView[19];return null!==R&&(v[19]=R.createEmbeddedView(M)),Yh(M,v,b),new Ol(v)}};function yC(){return Vp(Gn(),Se())}function Vp(_,b){return 4&_.type?new AC(b,_,Nc(_,b)):null}let Uu=(()=>{class _{}return _.__NG_ELEMENT_ID__=HS,_})();function HS(){return Wl(Gn(),Se())}const RS=Uu,wC=class extends RS{constructor(b,y,M){super(),this._lContainer=b,this._hostTNode=y,this._hostLView=M}get element(){return Nc(this._hostTNode,this._hostLView)}get injector(){return new Ls(this._hostTNode,this._hostLView)}get parentInjector(){const b=Nd(this._hostTNode,this._hostLView);if(Bd(b)){const y=wo(b,this._hostLView),M=yo(b);return new Ls(y[1].data[M+8],y)}return new Ls(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(b){const y=Im(this._lContainer);return null!==y&&y[b]||null}get length(){return this._lContainer.length-10}createEmbeddedView(b,y,M){let v,x;"number"==typeof M?v=M:null!=M&&(v=M.index,x=M.injector);const R=b.createEmbeddedView(y||{},x);return this.insert(R,v),R}createComponent(b,y,M,v,x){const R=b&&!function ks(_){return"function"==typeof _}(b);let k;if(R)k=y;else{const ne=y||{};k=ne.index,M=ne.injector,v=ne.projectableNodes,x=ne.environmentInjector||ne.ngModuleRef}const I=R?b:new Xc(pn(b)),z=M||this.parentInjector;if(!x&&null==I.ngModule){const de=(R?z:this.parentInjector).get(Sl,null);de&&(x=de)}const $=I.create(z,v,void 0,x);return this.insert($.hostView,k),$}insert(b,y){const M=b._lView,v=M[1];if(function F(_){return Ji(_[3])}(M)){const $=this.indexOf(b);if(-1!==$)this.detach($);else{const ne=M[3],de=new wC(ne,ne[6],ne[3]);de.detach(de.indexOf(b))}}const x=this._adjustIndex(y),R=this._lContainer;!function Ix(_,b,y,M){const v=10+M,x=y.length;M>0&&(y[v-1][4]=b),M0)M.push(R[k/2]);else{const z=x[k+1],$=b[-I];for(let ne=10;ne<$.length;ne++){const de=$[ne];de[17]===de[3]&&fd(de[1],de,z,M)}if(null!==$[9]){const ne=$[9];for(let de=0;de{class _{constructor(y){this.appInits=y,this.resolve=Yu,this.reject=Yu,this.initialized=!1,this.done=!1,this.donePromise=new Promise((M,v)=>{this.resolve=M,this.reject=v})}runInitializers(){if(this.initialized)return;const y=[],M=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let v=0;v{x.subscribe({complete:k,error:I})});y.push(R)}}Promise.all(y).then(()=>{M()}).catch(v=>{this.reject(v)}),0===y.length&&M(),this.initialized=!0}}return _.\u0275fac=function(y){return new(y||_)(Jn(qo,8))},_.\u0275prov=dn({token:_,factory:_.\u0275fac,providedIn:"root"}),_})();const Lb=new Sn("AppId",{providedIn:"root",factory:function GC(){return`${$p()}${$p()}${$p()}`}});function $p(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Hb=new Sn("Platform Initializer"),$C=new Sn("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Rb=new Sn("appBootstrapListener"),ZC=new Sn("AnimationModuleType");let Pb=(()=>{class _{log(y){console.log(y)}warn(y){console.warn(y)}}return _.\u0275fac=function(y){return new(y||_)},_.\u0275prov=dn({token:_,factory:_.\u0275fac,providedIn:"platform"}),_})();const Zp=new Sn("LocaleId",{providedIn:"root",factory:()=>wh(Zp,ye.Optional|ye.SkipSelf)||function JC(){return typeof $localize<"u"&&$localize.locale||zl}()}),zn=new Sn("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class XC{constructor(b,y){this.ngModuleFactory=b,this.componentFactories=y}}let Jp=(()=>{class _{compileModuleSync(y){return new Sm(y)}compileModuleAsync(y){return Promise.resolve(this.compileModuleSync(y))}compileModuleAndAllComponentsSync(y){const M=this.compileModuleSync(y),x=Lo(Ze(y).declarations).reduce((R,k)=>{const I=pn(k);return I&&R.push(new Xc(I)),R},[]);return new XC(M,x)}compileModuleAndAllComponentsAsync(y){return Promise.resolve(this.compileModuleAndAllComponentsSync(y))}clearCache(){}clearCacheFor(y){}getModuleId(y){}}return _.\u0275fac=function(y){return new(y||_)},_.\u0275prov=dn({token:_,factory:_.\u0275fac,providedIn:"root"}),_})();const ev=(()=>Promise.resolve(0))();function Km(_){typeof Zone>"u"?ev.then(()=>{_&&_.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",_)}class wr{constructor({enableLongStackTrace:b=!1,shouldCoalesceEventChangeDetection:y=!1,shouldCoalesceRunChangeDetection:M=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ss(!1),this.onMicrotaskEmpty=new ss(!1),this.onStable=new ss(!1),this.onError=new ss(!1),typeof Zone>"u")throw new re(908,!1);Zone.assertZonePatched();const v=this;if(v._nesting=0,v._outer=v._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const x=Zone.AsyncStackTaggingZoneSpec;v._inner=v._inner.fork(new x("Angular"))}Zone.TaskTrackingZoneSpec&&(v._inner=v._inner.fork(new Zone.TaskTrackingZoneSpec)),b&&Zone.longStackTraceZoneSpec&&(v._inner=v._inner.fork(Zone.longStackTraceZoneSpec)),v.shouldCoalesceEventChangeDetection=!M&&y,v.shouldCoalesceRunChangeDetection=M,v.lastRequestAnimationFrameId=-1,v.nativeRequestAnimationFrame=function Ob(){let _=fe.requestAnimationFrame,b=fe.cancelAnimationFrame;if(typeof Zone<"u"&&_&&b){const y=_[Zone.__symbol__("OriginalDelegate")];y&&(_=y);const M=b[Zone.__symbol__("OriginalDelegate")];M&&(b=M)}return{nativeRequestAnimationFrame:_,nativeCancelAnimationFrame:b}}().nativeRequestAnimationFrame,function nv(_){const b=()=>{!function yd(_){_.isCheckStableRunning||-1!==_.lastRequestAnimationFrameId||(_.lastRequestAnimationFrameId=_.nativeRequestAnimationFrame.call(fe,()=>{_.fakeTopEventTask||(_.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{_.lastRequestAnimationFrameId=-1,Gl(_),_.isCheckStableRunning=!0,eg(_),_.isCheckStableRunning=!1},void 0,()=>{},()=>{})),_.fakeTopEventTask.invoke()}),Gl(_))}(_)};_._inner=_._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(y,M,v,x,R,k)=>{try{return Ib(_),y.invokeTask(v,x,R,k)}finally{(_.shouldCoalesceEventChangeDetection&&"eventTask"===x.type||_.shouldCoalesceRunChangeDetection)&&b(),Bb(_)}},onInvoke:(y,M,v,x,R,k,I)=>{try{return Ib(_),y.invoke(v,x,R,k,I)}finally{_.shouldCoalesceRunChangeDetection&&b(),Bb(_)}},onHasTask:(y,M,v,x)=>{y.hasTask(v,x),M===v&&("microTask"==x.change?(_._hasPendingMicrotasks=x.microTask,Gl(_),eg(_)):"macroTask"==x.change&&(_.hasPendingMacrotasks=x.macroTask))},onHandleError:(y,M,v,x)=>(y.handleError(v,x),_.runOutsideAngular(()=>_.onError.emit(x)),!1)})}(v)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!wr.isInAngularZone())throw new re(909,!1)}static assertNotInAngularZone(){if(wr.isInAngularZone())throw new re(909,!1)}run(b,y,M){return this._inner.run(b,y,M)}runTask(b,y,M,v){const x=this._inner,R=x.scheduleEventTask("NgZoneEvent: "+v,b,tv,Yu,Yu);try{return x.runTask(R,y,M)}finally{x.cancelTask(R)}}runGuarded(b,y,M){return this._inner.runGuarded(b,y,M)}runOutsideAngular(b){return this._outer.run(b)}}const tv={};function eg(_){if(0==_._nesting&&!_.hasPendingMicrotasks&&!_.isStable)try{_._nesting++,_.onMicrotaskEmpty.emit(null)}finally{if(_._nesting--,!_.hasPendingMicrotasks)try{_.runOutsideAngular(()=>_.onStable.emit(null))}finally{_.isStable=!0}}}function Gl(_){_.hasPendingMicrotasks=!!(_._hasPendingMicrotasks||(_.shouldCoalesceEventChangeDetection||_.shouldCoalesceRunChangeDetection)&&-1!==_.lastRequestAnimationFrameId)}function Ib(_){_._nesting++,_.isStable&&(_.isStable=!1,_.onUnstable.emit(null))}function Bb(_){_._nesting--,eg(_)}class Ln{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ss,this.onMicrotaskEmpty=new ss,this.onStable=new ss,this.onError=new ss}run(b,y,M){return b.apply(y,M)}runGuarded(b,y,M){return b.apply(y,M)}runOutsideAngular(b){return b()}runTask(b,y,M,v){return b.apply(y,M)}}const Nb=new Sn(""),ni=new Sn("");let ng,iv=(()=>{class _{constructor(y,M,v){this._ngZone=y,this.registry=M,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,ng||(function ZS(_){ng=_}(v),v.addToWindow(M)),this._watchAngularEvents(),y.run(()=>{this.taskTrackingZone=typeof Zone>"u"?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:()=>{wr.assertNotInAngularZone(),Km(()=>{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())Km(()=>{for(;0!==this._callbacks.length;){let y=this._callbacks.pop();clearTimeout(y.timeoutId),y.doneCb(this._didWork)}this._didWork=!1});else{let y=this.getPendingTasks();this._callbacks=this._callbacks.filter(M=>!M.updateCb||!M.updateCb(y)||(clearTimeout(M.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(y=>({source:y.source,creationLocation:y.creationLocation,data:y.data})):[]}addCallback(y,M,v){let x=-1;M&&M>0&&(x=setTimeout(()=>{this._callbacks=this._callbacks.filter(R=>R.timeoutId!==x),y(this._didWork,this.getPendingTasks())},M)),this._callbacks.push({doneCb:y,timeoutId:x,updateCb:v})}whenStable(y,M,v){if(v&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(y,M,v),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(y){this.registry.registerApplication(y,this)}unregisterApplication(y){this.registry.unregisterApplication(y)}findProviders(y,M,v){return[]}}return _.\u0275fac=function(y){return new(y||_)(Jn(wr),Jn(tg),Jn(ni))},_.\u0275prov=dn({token:_,factory:_.\u0275fac}),_})(),tg=(()=>{class _{constructor(){this._applications=new Map}registerApplication(y,M){this._applications.set(y,M)}unregisterApplication(y){this._applications.delete(y)}unregisterAllApplications(){this._applications.clear()}getTestability(y){return this._applications.get(y)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(y,M=!0){var v,x;return null!==(v=null===(x=ng)||void 0===x?void 0:x.findTestabilityInTree(this,y,M))&&void 0!==v?v:null}}return _.\u0275fac=function(y){return new(y||_)},_.\u0275prov=dn({token:_,factory:_.\u0275fac,providedIn:"platform"}),_})(),Wo=null;const Vb=new Sn("AllowMultipleToken"),ig=new Sn("PlatformDestroyListeners");class ii{constructor(b,y){this.name=b,this.token=y}}function $l(_,b,y=[]){const M=`Platform: ${b}`,v=new Sn(M);return(x=[])=>{let R=jb();if(!R||R.injector.get(Vb,!1)){const k=[...y,...x,{provide:v,useValue:!0}];_?_(k):function Un(_){if(Wo&&!Wo.get(Vb,!1))throw new re(400,!1);Wo=_;const b=_.get(ov);(function Wu(_){const b=_.get(Hb,null);b&&b.forEach(y=>y())})(_)}(function sv(_=[],b){return Qa.create({name:b,providers:[{provide:Zf,useValue:"platform"},{provide:ig,useValue:new Set([()=>Wo=null])},..._]})}(k,M))}return function QS(_){const b=jb();if(!b)throw new re(401,!1);return b}()}}function jb(){var _,b;return null!==(_=null===(b=Wo)||void 0===b?void 0:b.get(ov))&&void 0!==_?_:null}let ov=(()=>{class _{constructor(y){this._injector=y,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(y,M){const v=function XS(_,b){let y;return y="noop"===_?new Ln:("zone.js"===_?void 0:_)||new wr(b),y}(M?.ngZone,function lv(_){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!_||!_.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!_||!_.ngZoneRunCoalescing)||!1}}(M)),x=[{provide:wr,useValue:v}];return v.run(()=>{const R=Qa.create({providers:x,parent:this.injector,name:y.moduleType.name}),k=y.create(R),I=k.injector.get(Ra,null);if(!I)throw new re(402,!1);return v.runOutsideAngular(()=>{const z=v.onError.subscribe({next:$=>{I.handleError($)}});k.onDestroy(()=>{ag(this._modules,k),z.unsubscribe()})}),function cv(_,b,y){try{const M=y();return q0(M)?M.catch(v=>{throw b.runOutsideAngular(()=>_.handleError(v)),v}):M}catch(M){throw b.runOutsideAngular(()=>_.handleError(M)),M}}(I,v,()=>{const z=k.injector.get(Yo);return z.runInitializers(),z.donePromise.then(()=>(function jM(_){cn(_,"Expected localeId to be defined"),"string"==typeof _&&(VM=_.toLowerCase().replace(/_/g,"-"))}(k.injector.get(Zp,zl)||zl),this._moduleDoBootstrap(k),k))})})}bootstrapModule(y,M=[]){const v=dv({},M);return function rv(_,b,y){const M=new Sm(y);return Promise.resolve(M)}(0,0,y).then(x=>this.bootstrapModuleFactory(x,v))}_moduleDoBootstrap(y){const M=y.injector.get(rg);if(y._bootstrapComponents.length>0)y._bootstrapComponents.forEach(v=>M.bootstrap(v));else{if(!y.instance.ngDoBootstrap)throw new re(403,!1);y.instance.ngDoBootstrap(M)}this._modules.push(y)}onDestroy(y){this._destroyListeners.push(y)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new re(404,!1);this._modules.slice().forEach(M=>M.destroy()),this._destroyListeners.forEach(M=>M());const y=this._injector.get(ig,null);y&&(y.forEach(M=>M()),y.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return _.\u0275fac=function(y){return new(y||_)(Jn(Qa))},_.\u0275prov=dn({token:_,factory:_.\u0275fac,providedIn:"platform"}),_})();function dv(_,b){return Array.isArray(b)?b.reduce(dv,_):{..._,...b}}let rg=(()=>{class _{constructor(y,M,v){this._zone=y,this._injector=M,this._exceptionHandler=v,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const x=new H.y(k=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{k.next(this._stable),k.complete()})}),R=new H.y(k=>{let I;this._zone.runOutsideAngular(()=>{I=this._zone.onStable.subscribe(()=>{wr.assertNotInAngularZone(),Km(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,k.next(!0))})})});const z=this._zone.onUnstable.subscribe(()=>{wr.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{k.next(!1)}))});return()=>{I.unsubscribe(),z.unsubscribe()}});this.isStable=(0,D.T)(x,R.pipe((0,L.B)()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(y,M){const v=y instanceof Ph;if(!this._injector.get(Yo).done)throw!v&&Ks(y),new re(405,false);let R;R=v?y:this._injector.get(Bc).resolveComponentFactory(y),this.componentTypes.push(R.componentType);const k=function Xn(_){return _.isBoundToModule}(R)?void 0:this._injector.get(sr),z=R.create(Qa.NULL,[],M||R.selector,k),$=z.location.nativeElement,ne=z.injector.get(Nb,null);return ne?.registerApplication($),z.onDestroy(()=>{this.detachView(z.hostView),ag(this.components,z),ne?.unregisterApplication($)}),this._loadComponent(z),z}tick(){if(this._runningTick)throw new re(101,!1);try{this._runningTick=!0;for(let y of this._views)y.detectChanges()}catch(y){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(y))}finally{this._runningTick=!1}}attachView(y){const M=y;this._views.push(M),M.attachToAppRef(this)}detachView(y){const M=y;ag(this._views,M),M.detachFromAppRef()}_loadComponent(y){this.attachView(y.hostView),this.tick(),this.components.push(y),this._injector.get(Rb,[]).concat(this._bootstrapListeners).forEach(v=>v(y))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(y=>y()),this._views.slice().forEach(y=>y.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(y){return this._destroyListeners.push(y),()=>ag(this._destroyListeners,y)}destroy(){if(this._destroyed)throw new re(406,!1);const y=this._injector;y.destroy&&!y.destroyed&&y.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return _.\u0275fac=function(y){return new(y||_)(Jn(wr),Jn(Sl),Jn(Ra))},_.\u0275prov=dn({token:_,factory:_.\u0275fac,providedIn:"root"}),_})();function ag(_,b){const y=_.indexOf(b);y>-1&&_.splice(y,1)}let zb=!0;function KS(){zb=!1}let tE=(()=>{class _{}return _.__NG_ELEMENT_ID__=hv,_})();function hv(_){return function pv(_,b,y){if(na(_)&&!y){const M=Bi(_.index,b);return new Ol(M,M)}return 47&_.type?new Ol(b[16],b):null}(Gn(),Se(),16==(16&_))}class bv{constructor(){}supports(b){return vu(b)}create(b){return new Wb(b)}}const aE=(_,b)=>b;class Wb{constructor(b){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=b||aE}forEachItem(b){let y;for(y=this._itHead;null!==y;y=y._next)b(y)}forEachOperation(b){let y=this._itHead,M=this._removalsHead,v=0,x=null;for(;y||M;){const R=!M||y&&y.currentIndex{R=this._trackByFn(v,k),null!==y&&Object.is(y.trackById,R)?(M&&(y=this._verifyReinsertion(y,k,R,v)),Object.is(y.item,k)||this._addIdentityChange(y,k)):(y=this._mismatch(y,k,R,v),M=!0),y=y._next,v++}),this.length=v;return this._truncate(y),this.collection=b,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let b;for(b=this._previousItHead=this._itHead;null!==b;b=b._next)b._nextPrevious=b._next;for(b=this._additionsHead;null!==b;b=b._nextAdded)b.previousIndex=b.currentIndex;for(this._additionsHead=this._additionsTail=null,b=this._movesHead;null!==b;b=b._nextMoved)b.previousIndex=b.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(b,y,M,v){let x;return null===b?x=this._itTail:(x=b._prev,this._remove(b)),null!==(b=null===this._unlinkedRecords?null:this._unlinkedRecords.get(M,null))?(Object.is(b.item,y)||this._addIdentityChange(b,y),this._reinsertAfter(b,x,v)):null!==(b=null===this._linkedRecords?null:this._linkedRecords.get(M,v))?(Object.is(b.item,y)||this._addIdentityChange(b,y),this._moveAfter(b,x,v)):b=this._addAfter(new sE(y,M),x,v),b}_verifyReinsertion(b,y,M,v){let x=null===this._unlinkedRecords?null:this._unlinkedRecords.get(M,null);return null!==x?b=this._reinsertAfter(x,b._prev,v):b.currentIndex!=v&&(b.currentIndex=v,this._addToMoves(b,v)),b}_truncate(b){for(;null!==b;){const y=b._next;this._addToRemovals(this._unlink(b)),b=y}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(b,y,M){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(b);const v=b._prevRemoved,x=b._nextRemoved;return null===v?this._removalsHead=x:v._nextRemoved=x,null===x?this._removalsTail=v:x._prevRemoved=v,this._insertAfter(b,y,M),this._addToMoves(b,M),b}_moveAfter(b,y,M){return this._unlink(b),this._insertAfter(b,y,M),this._addToMoves(b,M),b}_addAfter(b,y,M){return this._insertAfter(b,y,M),this._additionsTail=null===this._additionsTail?this._additionsHead=b:this._additionsTail._nextAdded=b,b}_insertAfter(b,y,M){const v=null===y?this._itHead:y._next;return b._next=v,b._prev=y,null===v?this._itTail=b:v._prev=b,null===y?this._itHead=b:y._next=b,null===this._linkedRecords&&(this._linkedRecords=new yv),this._linkedRecords.put(b),b.currentIndex=M,b}_remove(b){return this._addToRemovals(this._unlink(b))}_unlink(b){null!==this._linkedRecords&&this._linkedRecords.remove(b);const y=b._prev,M=b._next;return null===y?this._itHead=M:y._next=M,null===M?this._itTail=y:M._prev=y,b}_addToMoves(b,y){return b.previousIndex===y||(this._movesTail=null===this._movesTail?this._movesHead=b:this._movesTail._nextMoved=b),b}_addToRemovals(b){return null===this._unlinkedRecords&&(this._unlinkedRecords=new yv),this._unlinkedRecords.put(b),b.currentIndex=null,b._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=b,b._prevRemoved=null):(b._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=b),b}_addIdentityChange(b,y){return b.item=y,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=b:this._identityChangesTail._nextIdentityChange=b,b}}class sE{constructor(b,y){this.item=b,this.trackById=y,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 Av{constructor(){this._head=null,this._tail=null}add(b){null===this._head?(this._head=this._tail=b,b._nextDup=null,b._prevDup=null):(this._tail._nextDup=b,b._prevDup=this._tail,b._nextDup=null,this._tail=b)}get(b,y){let M;for(M=this._head;null!==M;M=M._nextDup)if((null===y||y<=M.currentIndex)&&Object.is(M.trackById,b))return M;return null}remove(b){const y=b._prevDup,M=b._nextDup;return null===y?this._head=M:y._nextDup=M,null===M?this._tail=y:M._prevDup=y,null===this._head}}class yv{constructor(){this.map=new Map}put(b){const y=b.trackById;let M=this.map.get(y);M||(M=new Av,this.map.set(y,M)),M.add(b)}get(b,y){const v=this.map.get(b);return v?v.get(b,y):null}remove(b){const y=b.trackById;return this.map.get(y).remove(b)&&this.map.delete(y),b}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function wv(_,b,y){const M=_.previousIndex;if(null===M)return M;let v=0;return y&&M{if(y&&y.key===v)this._maybeAddToChanges(y,M),this._appendAfter=y,y=y._next;else{const x=this._getOrCreateRecordForKey(v,M);y=this._insertBeforeOrAppend(y,x)}}),y){y._prev&&(y._prev._next=null),this._removalsHead=y;for(let M=y;null!==M;M=M._nextRemoved)M===this._mapHead&&(this._mapHead=null),this._records.delete(M.key),M._nextRemoved=M._next,M.previousValue=M.currentValue,M.currentValue=null,M._prev=null,M._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(b,y){if(b){const M=b._prev;return y._next=b,y._prev=M,b._prev=y,M&&(M._next=y),b===this._mapHead&&(this._mapHead=y),this._appendAfter=b,b}return this._appendAfter?(this._appendAfter._next=y,y._prev=this._appendAfter):this._mapHead=y,this._appendAfter=y,null}_getOrCreateRecordForKey(b,y){if(this._records.has(b)){const v=this._records.get(b);this._maybeAddToChanges(v,y);const x=v._prev,R=v._next;return x&&(x._next=R),R&&(R._prev=x),v._next=null,v._prev=null,v}const M=new Mv(b);return this._records.set(b,M),M.currentValue=y,this._addToAdditions(M),M}_reset(){if(this.isDirty){let b;for(this._previousMapHead=this._mapHead,b=this._previousMapHead;null!==b;b=b._next)b._nextPrevious=b._next;for(b=this._changesHead;null!==b;b=b._nextChanged)b.previousValue=b.currentValue;for(b=this._additionsHead;null!=b;b=b._nextAdded)b.previousValue=b.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(b,y){Object.is(y,b.currentValue)||(b.previousValue=b.currentValue,b.currentValue=y,this._addToChanges(b))}_addToAdditions(b){null===this._additionsHead?this._additionsHead=this._additionsTail=b:(this._additionsTail._nextAdded=b,this._additionsTail=b)}_addToChanges(b){null===this._changesHead?this._changesHead=this._changesTail=b:(this._changesTail._nextChanged=b,this._changesTail=b)}_forEach(b,y){b instanceof Map?b.forEach(y):Object.keys(b).forEach(M=>y(b[M],M))}}class Mv{constructor(b){this.key=b,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Zb(){return new Jb([new bv])}let Jb=(()=>{class _{constructor(y){this.factories=y}static create(y,M){if(null!=M){const v=M.factories.slice();y=y.concat(v)}return new _(y)}static extend(y){return{provide:_,useFactory:M=>_.create(y,M||Zb()),deps:[[_,new Al,new To]]}}find(y){const M=this.factories.find(v=>v.supports(y));if(null!=M)return M;throw new re(901,!1)}}return _.\u0275prov=dn({token:_,providedIn:"root",factory:Zb}),_})();function Cv(){return new Qb([new Gb])}let Qb=(()=>{class _{constructor(y){this.factories=y}static create(y,M){if(M){const v=M.factories.slice();y=y.concat(v)}return new _(y)}static extend(y){return{provide:_,useFactory:M=>_.create(y,M||Cv()),deps:[[_,new Al,new To]]}}find(y){const M=this.factories.find(v=>v.supports(y));if(M)return M;throw new re(901,!1)}}return _.\u0275prov=dn({token:_,providedIn:"root",factory:Cv}),_})();const vv=$l(null,"core",[]);let cE=(()=>{class _{constructor(y){}}return _.\u0275fac=function(y){return new(y||_)(Jn(rg))},_.\u0275mod=jr({type:_}),_.\u0275inj=Tn({}),_})();function dE(_){return"boolean"==typeof _?_:null!=_&&"false"!==_}},1214:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Ct:()=>OAuthService,Hy:()=>OAuthStorage,zr:()=>OAuthModule});var _home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5861),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(4650),_angular_common__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(6895),_angular_common_http__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(529),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(7579),rxjs__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(9646),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(2076),rxjs__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(102),rxjs__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(2843),rxjs__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(9841),rxjs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(6451),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(9300),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(8505),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(8372),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(1005),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(3900),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(4004),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(590),rxjs_operators__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(262),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(7414),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(5698),rxjs_operators__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(5577),fast_sha256__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1302);class DateTimeProvider{}let SystemDateTimeProvider=(()=>{class Y extends DateTimeProvider{now(){return Date.now()}new(){return new Date}}return Y.\u0275fac=function(){let G;return function(T){return(G||(G=_angular_core__WEBPACK_IMPORTED_MODULE_1__.n5z(Y)))(T||Y)}}(),Y.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:Y,factory:Y.\u0275fac}),Y})();class LoginOptions{constructor(){this.disableNonceCheck=!1,this.preventClearHashAfterLogin=!1}}class OAuthLogger{}class OAuthStorage{}let MemoryStorage=(()=>{class Y{constructor(){this.data=new Map}getItem(E){return this.data.get(E)}removeItem(E){this.data.delete(E)}setItem(E,T){this.data.set(E,T)}}return Y.\u0275fac=function(E){return new(E||Y)},Y.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:Y,factory:Y.\u0275fac}),Y})();class ReceivedTokens{}class OAuthEvent{constructor(G){this.type=G}}class OAuthSuccessEvent extends OAuthEvent{constructor(G,E=null){super(G),this.info=E}}class OAuthInfoEvent extends OAuthEvent{constructor(G,E=null){super(G),this.info=E}}class OAuthErrorEvent extends OAuthEvent{constructor(G,E,T=null){super(G),this.reason=E,this.params=T}}function b64DecodeUnicode(Y){const G=Y.replace(/\-/g,"+").replace(/\_/g,"/");return decodeURIComponent(atob(G).split("").map(function(E){return"%"+("00"+E.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function base64UrlEncode(Y){return btoa(Y).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}class AuthConfig{constructor(G){this.clientId="",this.redirectUri="",this.postLogoutRedirectUri="",this.redirectUriAsPostLogoutRedirectUriFallback=!0,this.loginUrl="",this.scope="openid profile",this.resource="",this.rngUrl="",this.oidc=!0,this.requestAccessToken=!0,this.options=null,this.issuer="",this.logoutUrl="",this.clearHashAfterLogin=!0,this.tokenEndpoint=null,this.revocationEndpoint=null,this.customTokenParameters=[],this.userinfoEndpoint=null,this.responseType="",this.showDebugInformation=!1,this.silentRefreshRedirectUri="",this.silentRefreshMessagePrefix="",this.silentRefreshShowIFrame=!1,this.siletRefreshTimeout=2e4,this.silentRefreshTimeout=2e4,this.dummyClientSecret=null,this.requireHttps="remoteOnly",this.strictDiscoveryDocumentValidation=!0,this.jwks=null,this.customQueryParams=null,this.silentRefreshIFrameName="angular-oauth-oidc-silent-refresh-iframe",this.timeoutFactor=.75,this.sessionChecksEnabled=!1,this.sessionCheckIntervall=3e3,this.sessionCheckIFrameUrl=null,this.sessionCheckIFrameName="angular-oauth-oidc-check-session-iframe",this.disableAtHashCheck=!1,this.skipSubjectCheck=!1,this.useIdTokenHintForSilentRefresh=!1,this.skipIssuerCheck=!1,this.nonceStateSeparator=";",this.useHttpBasicAuth=!1,this.waitForTokenInMsec=0,this.disablePKCE=!1,this.preserveRequestedRoute=!1,this.openUri=E=>{location.href=E},G&&Object.assign(this,G)}}class WebHttpUrlEncodingCodec{encodeKey(G){return encodeURIComponent(G)}encodeValue(G){return encodeURIComponent(G)}decodeKey(G){return decodeURIComponent(G)}decodeValue(G){return decodeURIComponent(G)}}class ValidationHandler{}class AbstractValidationHandler{validateAtHash(G){var E=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){let T=E.inferHashAlgorithm(G.idTokenHeader),n=yield E.calcHash(G.accessToken,T),D=base64UrlEncode(n.substr(0,n.length/2)),L=G.idTokenClaims.at_hash.replace(/=/g,"");return D!==L&&(console.error("exptected at_hash: "+D),console.error("actual at_hash: "+L)),D===L})()}inferHashAlgorithm(G){let E=G.alg;if(!E.match(/^.S[0-9]{3}$/))throw new Error("Algorithm not supported: "+E);return"sha-"+E.substr(2)}}let UrlHelperService=(()=>{class Y{getHashFragmentParams(E){let T=E||window.location.hash;if(T=decodeURIComponent(T),0!==T.indexOf("#"))return{};const n=T.indexOf("?");return T=T.substr(n>-1?n+1:1),this.parseQueryString(T)}parseQueryString(E){const T={};let n,H,D,L,O,B,U;if(null===E)return T;n=E.split("&");for(let W=0;W>6,H[L++]=128|63&O):O<55296||O>=57344?(H[L++]=224|O>>12,H[L++]=128|O>>6&63,H[L++]=128|63&O):(O=65536+((1023&O)<<10|1023&Y.charCodeAt(++T)),H[L++]=240|O>>18,H[L++]=128|O>>12&63,H[L++]=128|O>>6&63,H[L++]=128|63&O);Y=H}else{if("object"!==n)throw new Error(ERROR);if(null===Y)throw new Error(ERROR);if(ARRAY_BUFFER&&Y.constructor===ArrayBuffer)Y=new Uint8Array(Y);else if(!(Array.isArray(Y)||ARRAY_BUFFER&&ArrayBuffer.isView(Y)))throw new Error(ERROR)}Y.length>64&&(Y=new Sha256(G,!0).update(Y).array());var B=[],U=[];for(T=0;T<64;++T){var W=Y[T]||0;B[T]=92^W,U[T]=54^W}Sha256.call(this,G,E),this.update(U),this.oKeyPad=B,this.inner=!0,this.sharedMemory=E}Sha256.prototype.update=function(Y){if(!this.finalized){var G,E=typeof Y;if("string"!==E){if("object"!==E)throw new Error(ERROR);if(null===Y)throw new Error(ERROR);if(ARRAY_BUFFER&&Y.constructor===ArrayBuffer)Y=new Uint8Array(Y);else if(!(Array.isArray(Y)||ARRAY_BUFFER&&ArrayBuffer.isView(Y)))throw new Error(ERROR);G=!0}for(var T,H,n=0,D=Y.length,L=this.blocks;n>2]|=Y[n]<>2]|=T<>2]|=(192|T>>6)<>2]|=(128|63&T)<=57344?(L[H>>2]|=(224|T>>12)<>2]|=(128|T>>6&63)<>2]|=(128|63&T)<>2]|=(240|T>>18)<>2]|=(128|T>>12&63)<>2]|=(128|T>>6&63)<>2]|=(128|63&T)<=64?(this.block=L[16],this.start=H-64,this.hash(),this.hashed=!0):this.start=H}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var Y=this.blocks,G=this.lastByteIndex;Y[16]=this.block,Y[G>>2]|=EXTRA[3&G],this.block=Y[16],G>=56&&(this.hashed||this.hash(),Y[0]=this.block,Y[16]=Y[1]=Y[2]=Y[3]=Y[4]=Y[5]=Y[6]=Y[7]=Y[8]=Y[9]=Y[10]=Y[11]=Y[12]=Y[13]=Y[14]=Y[15]=0),Y[14]=this.hBytes<<3|this.bytes>>>29,Y[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var B,te,oe,re,be,we,Y=this.h0,G=this.h1,E=this.h2,T=this.h3,n=this.h4,H=this.h5,D=this.h6,L=this.h7,O=this.blocks;for(B=16;B<64;++B)O[B]=O[B-16]+(((te=O[B-15])>>>7|te<<25)^(te>>>18|te<<14)^te>>>3)+O[B-7]+(((te=O[B-2])>>>17|te<<15)^(te>>>19|te<<13)^te>>>10)<<0;for(we=G&E,B=0;B<64;B+=4)this.first?(this.is224?(oe=300032,L=(te=O[0]-1413257819)-150054599<<0,T=te+24177077<<0):(oe=704751109,L=(te=O[0]-210244248)-1521486534<<0,T=te+143694565<<0),this.first=!1):(L=T+(te=L+((n>>>6|n<<26)^(n>>>11|n<<21)^(n>>>25|n<<7))+(n&H^~n&D)+K[B]+O[B])<<0,T=te+(((Y>>>2|Y<<30)^(Y>>>13|Y<<19)^(Y>>>22|Y<<10))+((oe=Y&G)^Y&E^we))<<0),D=E+(te=D+((L>>>6|L<<26)^(L>>>11|L<<21)^(L>>>25|L<<7))+(L&n^~L&H)+K[B+1]+O[B+1])<<0,E=te+(((T>>>2|T<<30)^(T>>>13|T<<19)^(T>>>22|T<<10))+((re=T&Y)^T&G^oe))<<0,H=G+(te=H+((D>>>6|D<<26)^(D>>>11|D<<21)^(D>>>25|D<<7))+(D&L^~D&n)+K[B+2]+O[B+2])<<0,G=te+(((E>>>2|E<<30)^(E>>>13|E<<19)^(E>>>22|E<<10))+((be=E&T)^E&Y^re))<<0,n=Y+(te=n+((H>>>6|H<<26)^(H>>>11|H<<21)^(H>>>25|H<<7))+(H&D^~H&L)+K[B+3]+O[B+3])<<0,Y=te+(((G>>>2|G<<30)^(G>>>13|G<<19)^(G>>>22|G<<10))+((we=G&E)^G&T^be))<<0;this.h0=this.h0+Y<<0,this.h1=this.h1+G<<0,this.h2=this.h2+E<<0,this.h3=this.h3+T<<0,this.h4=this.h4+n<<0,this.h5=this.h5+H<<0,this.h6=this.h6+D<<0,this.h7=this.h7+L<<0},Sha256.prototype.hex=function(){this.finalize();var Y=this.h0,G=this.h1,E=this.h2,T=this.h3,n=this.h4,H=this.h5,D=this.h6,L=this.h7,O=HEX_CHARS[Y>>28&15]+HEX_CHARS[Y>>24&15]+HEX_CHARS[Y>>20&15]+HEX_CHARS[Y>>16&15]+HEX_CHARS[Y>>12&15]+HEX_CHARS[Y>>8&15]+HEX_CHARS[Y>>4&15]+HEX_CHARS[15&Y]+HEX_CHARS[G>>28&15]+HEX_CHARS[G>>24&15]+HEX_CHARS[G>>20&15]+HEX_CHARS[G>>16&15]+HEX_CHARS[G>>12&15]+HEX_CHARS[G>>8&15]+HEX_CHARS[G>>4&15]+HEX_CHARS[15&G]+HEX_CHARS[E>>28&15]+HEX_CHARS[E>>24&15]+HEX_CHARS[E>>20&15]+HEX_CHARS[E>>16&15]+HEX_CHARS[E>>12&15]+HEX_CHARS[E>>8&15]+HEX_CHARS[E>>4&15]+HEX_CHARS[15&E]+HEX_CHARS[T>>28&15]+HEX_CHARS[T>>24&15]+HEX_CHARS[T>>20&15]+HEX_CHARS[T>>16&15]+HEX_CHARS[T>>12&15]+HEX_CHARS[T>>8&15]+HEX_CHARS[T>>4&15]+HEX_CHARS[15&T]+HEX_CHARS[n>>28&15]+HEX_CHARS[n>>24&15]+HEX_CHARS[n>>20&15]+HEX_CHARS[n>>16&15]+HEX_CHARS[n>>12&15]+HEX_CHARS[n>>8&15]+HEX_CHARS[n>>4&15]+HEX_CHARS[15&n]+HEX_CHARS[H>>28&15]+HEX_CHARS[H>>24&15]+HEX_CHARS[H>>20&15]+HEX_CHARS[H>>16&15]+HEX_CHARS[H>>12&15]+HEX_CHARS[H>>8&15]+HEX_CHARS[H>>4&15]+HEX_CHARS[15&H]+HEX_CHARS[D>>28&15]+HEX_CHARS[D>>24&15]+HEX_CHARS[D>>20&15]+HEX_CHARS[D>>16&15]+HEX_CHARS[D>>12&15]+HEX_CHARS[D>>8&15]+HEX_CHARS[D>>4&15]+HEX_CHARS[15&D];return this.is224||(O+=HEX_CHARS[L>>28&15]+HEX_CHARS[L>>24&15]+HEX_CHARS[L>>20&15]+HEX_CHARS[L>>16&15]+HEX_CHARS[L>>12&15]+HEX_CHARS[L>>8&15]+HEX_CHARS[L>>4&15]+HEX_CHARS[15&L]),O},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var Y=this.h0,G=this.h1,E=this.h2,T=this.h3,n=this.h4,H=this.h5,D=this.h6,L=this.h7,O=[Y>>24&255,Y>>16&255,Y>>8&255,255&Y,G>>24&255,G>>16&255,G>>8&255,255&G,E>>24&255,E>>16&255,E>>8&255,255&E,T>>24&255,T>>16&255,T>>8&255,255&T,n>>24&255,n>>16&255,n>>8&255,255&n,H>>24&255,H>>16&255,H>>8&255,255&H,D>>24&255,D>>16&255,D>>8&255,255&D];return this.is224||O.push(L>>24&255,L>>16&255,L>>8&255,255&L),O},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var Y=new ArrayBuffer(this.is224?28:32),G=new DataView(Y);return G.setUint32(0,this.h0),G.setUint32(4,this.h1),G.setUint32(8,this.h2),G.setUint32(12,this.h3),G.setUint32(16,this.h4),G.setUint32(20,this.h5),G.setUint32(24,this.h6),this.is224||G.setUint32(28,this.h7),Y},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var Y=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(Y),Sha256.prototype.finalize.call(this)}};var exports=createMethod();return exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),exports}const sha256=factory();class HashHandler{}function decodeUTF8(Y){if("string"!=typeof Y)throw new TypeError("expected string");var G,E=Y,T=new Uint8Array(E.length);for(G=0;G{class Y{calcHash(E,T){return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){return encodeUTF8(fast_sha256__WEBPACK_IMPORTED_MODULE_0__(decodeUTF8(E)))})()}toHashString2(E){let T="";for(let n of E)T+=String.fromCharCode(n);return T}toHashString(E){const T=new Uint8Array(E);let n="";for(let H of T)n+=String.fromCharCode(H);return n}}return Y.\u0275fac=function(E){return new(E||Y)},Y.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:Y,factory:Y.\u0275fac}),Y})(),OAuthService=(()=>{class Y extends AuthConfig{constructor(E,T,n,H,D,L,O,B,U,W){super(),this.ngZone=E,this.http=T,this.config=D,this.urlHelper=L,this.logger=O,this.crypto=B,this.dateTimeService=W,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.discoveryDocumentLoadedSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=U,D||(D={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),H&&(this.tokenValidationHandler=H),D&&this.configure(D);try{n?this.setStorage(n):typeof sessionStorage<"u"&&this.setStorage(sessionStorage)}catch(ae){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",ae)}if(this.checkLocalStorageAccessable()){var ee,te;const ae=null===(ee=window)||void 0===ee||null===(te=ee.navigator)||void 0===te?void 0:te.userAgent;(ae?.includes("MSIE ")||ae?.includes("Trident"))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if(typeof window>"u")return!1;const E="test";try{return!(typeof window.localStorage>"u"||(localStorage.setItem(E,E),localStorage.removeItem(E),0))}catch{return!1}}configure(E){Object.assign(this,new AuthConfig,E),this.config=Object.assign({},new AuthConfig,E),this.sessionChecksEnabled&&this.setupSessionCheck(),this.configChanged()}configChanged(){this.setupRefreshTimer()}restartSessionChecksIfStillLoggedIn(){this.hasValidIdToken()&&this.initSessionCheck()}restartRefreshTimerIfStillLoggedIn(){this.setupExpirationTimers()}setupSessionCheck(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(E=>"token_received"===E.type)).subscribe(E=>{this.initSessionCheck()})}setupAutomaticSilentRefresh(E={},T,n=!0){let H=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(D=>{"token_received"===D.type?H=!0:"logout"===D.type&&(H=!1)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(D=>"token_expires"===D.type&&(null==T||"any"===T||D.info===T)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.b)(1e3)).subscribe(D=>{H&&this.refreshInternal(E,n).catch(L=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(E,T){return this.useSilentRefresh||"code"!==this.responseType?this.silentRefresh(E,T):this.refreshToken()}loadDiscoveryDocumentAndTryLogin(E=null){return this.loadDiscoveryDocument().then(T=>this.tryLogin(E))}loadDiscoveryDocumentAndLogin(E=null){return this.loadDiscoveryDocumentAndTryLogin(E=E||{}).then(T=>!(!this.hasValidIdToken()||!this.hasValidAccessToken())||(this.initLoginFlow("string"==typeof E.state?E.state:""),!1))}debug(...E){this.showDebugInformation&&this.logger.debug.apply(this.logger,E)}validateUrlFromDiscoveryDocument(E){const T=[],n=this.validateUrlForHttps(E),H=this.validateUrlAgainstIssuer(E);return n||T.push("https for all urls required. Also for urls received by discovery."),H||T.push("Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation."),T}validateUrlForHttps(E){if(!E)return!0;const T=E.toLowerCase();return!(!1!==this.requireHttps&&(!T.match(/^http:\/\/localhost($|[:\/])/)&&!T.match(/^http:\/\/localhost($|[:\/])/)||"remoteOnly"!==this.requireHttps))||T.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(E,T){if(!E)throw new Error(`'${T}' should not be null`);if(!this.validateUrlForHttps(E))throw new Error(`'${T}' must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).`)}validateUrlAgainstIssuer(E){return!this.strictDiscoveryDocumentValidation||!E||E.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){typeof window>"u"?this.debug("timer not supported on this plattform"):((this.hasValidIdToken()||this.hasValidAccessToken())&&(this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()),this.tokenReceivedSubscription&&this.tokenReceivedSubscription.unsubscribe(),this.tokenReceivedSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(E=>"token_received"===E.type)).subscribe(E=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()}))}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){const E=this.getAccessTokenExpiration(),T=this.getAccessTokenStoredAt(),n=this.calcTimeout(T,E);this.ngZone.runOutsideAngular(()=>{this.accessTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","access_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(n)).subscribe(H=>{this.ngZone.run(()=>{this.eventsSubject.next(H)})})})}setupIdTokenTimer(){const E=this.getIdTokenExpiration(),T=this.getIdTokenStoredAt(),n=this.calcTimeout(T,E);this.ngZone.runOutsideAngular(()=>{this.idTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","id_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(n)).subscribe(H=>{this.ngZone.run(()=>{this.eventsSubject.next(H)})})})}stopAutomaticRefresh(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.clearAutomaticRefreshTimer()}clearAccessTokenTimer(){this.accessTokenTimeoutSubscription&&this.accessTokenTimeoutSubscription.unsubscribe()}clearIdTokenTimer(){this.idTokenTimeoutSubscription&&this.idTokenTimeoutSubscription.unsubscribe()}clearAutomaticRefreshTimer(){this.automaticRefreshSubscription&&this.automaticRefreshSubscription.unsubscribe()}calcTimeout(E,T){const n=this.dateTimeService.now();return Math.max(0,(T-E)*this.timeoutFactor-(n-E))}setStorage(E){this._storage=E,this.configChanged()}loadDiscoveryDocument(E=null){return new Promise((T,n)=>{E||((E=this.issuer||"").endsWith("/")||(E+="/"),E+=".well-known/openid-configuration"),this.validateUrlForHttps(E)?this.http.get(E).subscribe(H=>{if(!this.validateDiscoveryDocument(H))return this.eventsSubject.next(new OAuthErrorEvent("discovery_document_validation_error",null)),void n("discovery_document_validation_error");this.loginUrl=H.authorization_endpoint,this.logoutUrl=H.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=H.grant_types_supported,this.issuer=H.issuer,this.tokenEndpoint=H.token_endpoint,this.userinfoEndpoint=H.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=H.jwks_uri,this.sessionCheckIFrameUrl=H.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(H),this.revocationEndpoint=H.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(D=>{const O=new OAuthSuccessEvent("discovery_document_loaded",{discoveryDocument:H,jwks:D});this.eventsSubject.next(O),T(O)}).catch(D=>{this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",D)),n(D)})},H=>{this.logger.error("error loading discovery document",H),this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",H)),n(H)}):n("issuer must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).")})}loadJwks(){return new Promise((E,T)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(n=>{this.jwks=n,this.eventsSubject.next(new OAuthSuccessEvent("discovery_document_loaded")),E(n)},n=>{this.logger.error("error loading jwks",n),this.eventsSubject.next(new OAuthErrorEvent("jwks_load_error",n)),T(n)}):E(null)})}validateDiscoveryDocument(E){let T;return this.skipIssuerCheck||E.issuer===this.issuer?(T=this.validateUrlFromDiscoveryDocument(E.authorization_endpoint),T.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",T),!1):(T=this.validateUrlFromDiscoveryDocument(E.end_session_endpoint),T.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",T),!1):(T=this.validateUrlFromDiscoveryDocument(E.token_endpoint),T.length>0&&this.logger.error("error validating token_endpoint in discovery document",T),T=this.validateUrlFromDiscoveryDocument(E.revocation_endpoint),T.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",T),T=this.validateUrlFromDiscoveryDocument(E.userinfo_endpoint),T.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",T),!1):(T=this.validateUrlFromDiscoveryDocument(E.jwks_uri),T.length>0?(this.logger.error("error validating jwks_uri in discovery document",T),!1):(this.sessionChecksEnabled&&!E.check_session_iframe&&this.logger.warn("sessionChecksEnabled is activated but discovery document does not contain a check_session_iframe field"),!0))))):(this.logger.error("invalid issuer in discovery document","expected: "+this.issuer,"current: "+E.issuer),!1)}fetchTokenUsingPasswordFlowAndLoadUserProfile(E,T,n=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingPasswordFlow(E,T,n).then(()=>this.loadUserProfile())}loadUserProfile(){if(!this.hasValidAccessToken())throw new Error("Can not load User Profile without access_token");if(!this.validateUrlForHttps(this.userinfoEndpoint))throw new Error("userinfoEndpoint must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");return new Promise((E,T)=>{const n=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:n,observe:"response",responseType:"text"}).subscribe(H=>{if(this.debug("userinfo received",JSON.stringify(H)),H.headers.get("content-type").startsWith("application/json")){let D=JSON.parse(H.body);const L=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!L.sub||D.sub!==L.sub))return void T("if property oidc is true, the received user-id (sub) has to be the user-id of the user that has logged in with oidc.\nif you are not using oidc but just oauth2 password flow set oidc to false");D=Object.assign({},L,D),this._storage.setItem("id_token_claims_obj",JSON.stringify(D)),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),E({info:D})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),E(JSON.parse(H.body))},H=>{this.logger.error("error loading user info",H),this.eventsSubject.next(new OAuthErrorEvent("user_profile_load_error",H)),T(H)})})}fetchTokenUsingPasswordFlow(E,T,n=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingGrant("password",{username:E,password:T},n)}fetchTokenUsingGrant(E,T,n=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let H=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type",E).set("scope",this.scope);if(this.useHttpBasicAuth){const D=btoa(`${this.clientId}:${this.dummyClientSecret}`);n=n.set("Authorization","Basic "+D)}if(this.useHttpBasicAuth||(H=H.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(H=H.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const D of Object.getOwnPropertyNames(this.customQueryParams))H=H.set(D,this.customQueryParams[D]);for(const D of Object.keys(T))H=H.set(D,T[D]);return n=n.set("Content-Type","application/x-www-form-urlencoded"),new Promise((D,L)=>{this.http.post(this.tokenEndpoint,H,{headers:n}).subscribe(O=>{this.debug("tokenResponse",O),this.storeAccessTokenResponse(O.access_token,O.refresh_token,O.expires_in||this.fallbackAccessTokenExpirationTimeInSec,O.scope,this.extractRecognizedCustomParameters(O)),this.oidc&&O.id_token&&this.processIdToken(O.id_token,O.access_token).then(B=>{this.storeIdToken(B),D(O)}),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),D(O)},O=>{this.logger.error("Error performing ${grantType} flow",O),this.eventsSubject.next(new OAuthErrorEvent("token_error",O)),L(O)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((E,T)=>{let n=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","refresh_token").set("scope",this.scope).set("refresh_token",this._storage.getItem("refresh_token")),H=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const D=btoa(`${this.clientId}:${this.dummyClientSecret}`);H=H.set("Authorization","Basic "+D)}if(this.useHttpBasicAuth||(n=n.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(n=n.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const D of Object.getOwnPropertyNames(this.customQueryParams))n=n.set(D,this.customQueryParams[D]);this.http.post(this.tokenEndpoint,n,{headers:H}).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.w)(D=>D.id_token?(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.D)(this.processIdToken(D.id_token,D.access_token,!0)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(L=>this.storeIdToken(L)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(L=>D)):(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(D))).subscribe(D=>{this.debug("refresh tokenResponse",D),this.storeAccessTokenResponse(D.access_token,D.refresh_token,D.expires_in||this.fallbackAccessTokenExpirationTimeInSec,D.scope,this.extractRecognizedCustomParameters(D)),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),E(D)},D=>{this.logger.error("Error refreshing token",D),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",D)),T(D)})})}removeSilentRefreshEventListener(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}setupSilentRefreshEventListener(){this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=E=>{const T=this.processMessageEventMessage(E);this.tryLogin({customHashFragment:T,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri||this.redirectUri}).catch(n=>this.debug("tryLogin during silent refresh failed",n))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(E={},T=!0){const n=this.getIdentityClaims()||{};if(this.useIdTokenHintForSilentRefresh&&this.hasValidIdToken()&&(E.id_token_hint=this.getIdToken()),!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(typeof this.document>"u")throw new Error("silent refresh is not supported on this platform");const H=this.document.getElementById(this.silentRefreshIFrameName);H&&this.document.body.removeChild(H),this.silentRefreshSubject=n.sub;const D=this.document.createElement("iframe");D.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,T,E).then(W=>{D.setAttribute("src",W),this.silentRefreshShowIFrame||(D.style.display="none"),this.document.body.appendChild(D)});const O=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(W=>W instanceof OAuthErrorEvent),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),B=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(W=>"token_received"===W.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),U=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthErrorEvent("silent_refresh_timeout",null)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(this.silentRefreshTimeout));return(0,rxjs__WEBPACK_IMPORTED_MODULE_14__.S)([O,B,U]).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(W=>{if(W instanceof OAuthErrorEvent)throw"silent_refresh_timeout"===W.type||(W=new OAuthErrorEvent("silent_refresh_error",W)),this.eventsSubject.next(W),W;return"token_received"===W.type&&(W=new OAuthSuccessEvent("silently_refreshed"),this.eventsSubject.next(W)),W})).toPromise()}initImplicitFlowInPopup(E){return this.initLoginFlowInPopup(E)}initLoginFlowInPopup(E){return E=E||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(T=>new Promise((n,H)=>{let O,L=null;E.windowRef?E.windowRef&&!E.windowRef.closed&&(L=E.windowRef,L.location.href=T):L=window.open(T,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(E));const B=ae=>{this.tryLogin({customHashFragment:ae,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{W(),n(!0)},ue=>{W(),H(ue)})};L?O=window.setInterval(()=>{(!L||L.closed)&&(W(),H(new OAuthErrorEvent("popup_closed",{})))},500):H(new OAuthErrorEvent("popup_blocked",{}));const W=()=>{window.clearInterval(O),window.removeEventListener("storage",te),window.removeEventListener("message",ee),null!==L&&L.close(),L=null},ee=ae=>{const ue=this.processMessageEventMessage(ae);ue&&null!==ue?(window.removeEventListener("storage",te),B(ue)):console.log("false event firing")},te=ae=>{"auth_hash"===ae.key&&(window.removeEventListener("message",ee),B(ae.newValue))};window.addEventListener("message",ee),window.addEventListener("storage",te)}))}calculatePopupFeatures(E){const T=E.height||470,n=E.width||500,H=window.screenLeft+(window.outerWidth-n)/2;return`location=no,toolbar=no,width=${n},height=${T},top=${window.screenTop+(window.outerHeight-T)/2},left=${H}`}processMessageEventMessage(E){let T="#";if(this.silentRefreshMessagePrefix&&(T+=this.silentRefreshMessagePrefix),!E||!E.data||"string"!=typeof E.data)return;const n=E.data;return n.startsWith(T)?"#"+n.substr(T.length):void 0}canPerformSessionCheck(){return!(!this.sessionChecksEnabled||(this.sessionCheckIFrameUrl?this.getSessionState()?typeof this.document>"u":(console.warn("sessionChecksEnabled is activated but there is no session_state"),1):(console.warn("sessionChecksEnabled is activated but there is no sessionCheckIFrameUrl"),1)))}setupSessionCheckEventListener(){this.removeSessionCheckEventListener(),this.sessionCheckEventListener=E=>{const T=E.origin.toLowerCase(),n=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),n.startsWith(T)){switch(E.data){case"unchanged":this.ngZone.run(()=>{this.handleSessionUnchanged()});break;case"changed":this.ngZone.run(()=>{this.handleSessionChange()});break;case"error":this.ngZone.run(()=>{this.handleSessionError()})}this.debug("got info from session check inframe",E)}else this.debug("sessionCheckEventListener","wrong origin",T,"expected",n,"event",E)},this.ngZone.runOutsideAngular(()=>{window.addEventListener("message",this.sessionCheckEventListener)})}handleSessionUnchanged(){this.debug("session check","session unchanged"),this.eventsSubject.next(new OAuthInfoEvent("session_unchanged"))}handleSessionChange(){this.eventsSubject.next(new OAuthInfoEvent("session_changed")),this.stopSessionCheckTimer(),this.useSilentRefresh||"code"!==this.responseType?this.silentRefreshRedirectUri?(this.silentRefresh().catch(E=>this.debug("silent refresh failed after session changed")),this.waitForSilentRefreshAfterSessionChange()):(this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)):this.refreshToken().then(E=>{this.debug("token refresh after session change worked")}).catch(E=>{this.debug("token refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)})}waitForSilentRefreshAfterSessionChange(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(E=>"silently_refreshed"===E.type||"silent_refresh_timeout"===E.type||"silent_refresh_error"===E.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()).subscribe(E=>{"silently_refreshed"!==E.type&&(this.debug("silent refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0))})}handleSessionError(){this.stopSessionCheckTimer(),this.eventsSubject.next(new OAuthInfoEvent("session_error"))}removeSessionCheckEventListener(){this.sessionCheckEventListener&&(window.removeEventListener("message",this.sessionCheckEventListener),this.sessionCheckEventListener=null)}initSessionCheck(){if(!this.canPerformSessionCheck())return;const E=this.document.getElementById(this.sessionCheckIFrameName);E&&this.document.body.removeChild(E);const T=this.document.createElement("iframe");T.id=this.sessionCheckIFrameName,this.setupSessionCheckEventListener(),T.setAttribute("src",this.sessionCheckIFrameUrl),T.style.display="none",this.document.body.appendChild(T),this.startSessionCheckTimer()}startSessionCheckTimer(){this.stopSessionCheckTimer(),this.ngZone.runOutsideAngular(()=>{this.sessionCheckTimer=setInterval(this.checkSession.bind(this),this.sessionCheckIntervall)})}stopSessionCheckTimer(){this.sessionCheckTimer&&(clearInterval(this.sessionCheckTimer),this.sessionCheckTimer=null)}checkSession(){const E=this.document.getElementById(this.sessionCheckIFrameName);E||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);const T=this.getSessionState();T||this.stopSessionCheckTimer(),E.contentWindow.postMessage(this.clientId+" "+T,this.issuer)}createLoginUrl(E="",T="",n="",H=!1,D={}){var L=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const O=L;let B;B=n||L.redirectUri;const U=yield L.createAndSaveNonce();if(E=E?U+L.config.nonceStateSeparator+encodeURIComponent(E):U,!L.requestAccessToken&&!L.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");L.responseType=L.config.responseType?L.config.responseType:L.oidc&&L.requestAccessToken?"id_token token":L.oidc&&!L.requestAccessToken?"id_token":"token";const W=O.loginUrl.indexOf("?")>-1?"&":"?";let ee=O.scope;L.oidc&&!ee.match(/(^|\s)openid($|\s)/)&&(ee="openid "+ee);let te=O.loginUrl+W+"response_type="+encodeURIComponent(O.responseType)+"&client_id="+encodeURIComponent(O.clientId)+"&state="+encodeURIComponent(E)+"&redirect_uri="+encodeURIComponent(B)+"&scope="+encodeURIComponent(ee);if(L.responseType.includes("code")&&!L.disablePKCE){const[ae,ue]=yield L.createChallangeVerifierPairForPKCE();L.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("PKCE_verifier",ue):L._storage.setItem("PKCE_verifier",ue),te+="&code_challenge="+ae,te+="&code_challenge_method=S256"}T&&(te+="&login_hint="+encodeURIComponent(T)),O.resource&&(te+="&resource="+encodeURIComponent(O.resource)),O.oidc&&(te+="&nonce="+encodeURIComponent(U)),H&&(te+="&prompt=none");for(const ae of Object.keys(D))te+="&"+encodeURIComponent(ae)+"="+encodeURIComponent(D[ae]);if(L.customQueryParams)for(const ae of Object.getOwnPropertyNames(L.customQueryParams))te+="&"+ae+"="+encodeURIComponent(L.customQueryParams[ae]);return te})()}initImplicitFlowInternal(E="",T=""){if(this.inImplicitFlow)return;if(this.inImplicitFlow=!0,!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let n={},H=null;"string"==typeof T?H=T:"object"==typeof T&&(n=T),this.createLoginUrl(E,H,null,!1,n).then(this.config.openUri).catch(D=>{console.error("Error in initImplicitFlow",D),this.inImplicitFlow=!1})}initImplicitFlow(E="",T=""){""!==this.loginUrl?this.initImplicitFlowInternal(E,T):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(n=>"discovery_document_loaded"===n.type)).subscribe(n=>this.initImplicitFlowInternal(E,T))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(E){const T=this;if(E.onTokenReceived){const n={idClaims:T.getIdentityClaims(),idToken:T.getIdToken(),accessToken:T.getAccessToken(),state:T.state};E.onTokenReceived(n)}}storeAccessTokenResponse(E,T,n,H,D){if(this._storage.setItem("access_token",E),H&&!Array.isArray(H)?this._storage.setItem("granted_scopes",JSON.stringify(H.split(" "))):H&&Array.isArray(H)&&this._storage.setItem("granted_scopes",JSON.stringify(H)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),n){const L=1e3*n,B=this.dateTimeService.new().getTime()+L;this._storage.setItem("expires_at",""+B)}T&&this._storage.setItem("refresh_token",T),D&&D.forEach((L,O)=>{this._storage.setItem(O,L)})}tryLogin(E=null){return"code"===this.config.responseType?this.tryLoginCodeFlow(E).then(T=>!0):this.tryLoginImplicitFlow(E)}parseQueryString(E){return E&&0!==E.length?("?"===E.charAt(0)&&(E=E.substr(1)),this.urlHelper.parseQueryString(E)):{}}tryLoginCodeFlow(E=null){var T=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const n=(E=E||{}).customHashFragment?E.customHashFragment.substring(1):window.location.search,H=T.getCodePartsFromUrl(n),D=H.code,L=H.state,O=H.session_state;if(!E.preventClearHashAfterLogin){const W=location.origin+location.pathname+location.search.replace(/code=[^&\$]*/,"").replace(/scope=[^&\$]*/,"").replace(/state=[^&\$]*/,"").replace(/session_state=[^&\$]*/,"").replace(/^\?&/,"?").replace(/&$/,"").replace(/^\?$/,"").replace(/&+/g,"&").replace(/\?&/,"?").replace(/\?$/,"")+location.hash;history.replaceState(null,window.name,W)}let[B,U]=T.parseState(L);if(T.state=U,H.error){T.debug("error trying to login"),T.handleLoginError(E,H);const W=new OAuthErrorEvent("code_error",{},H);return T.eventsSubject.next(W),Promise.reject(W)}if(!E.disableNonceCheck){if(!B)return T.saveRequestedRoute(),Promise.resolve();if(!E.disableOAuth2StateCheck&&!T.validateNonce(B)){const ee=new OAuthErrorEvent("invalid_nonce_in_state",null);return T.eventsSubject.next(ee),Promise.reject(ee)}return T.storeSessionState(O),D&&(yield T.getTokenFromCode(D,E),T.restoreRequestedRoute()),Promise.resolve()}return Promise.reject()})()}saveRequestedRoute(){this.config.preserveRequestedRoute&&this._storage.setItem("requested_route",window.location.pathname+window.location.search)}restoreRequestedRoute(){const E=this._storage.getItem("requested_route");E&&history.replaceState(null,"",window.location.origin+E)}getCodePartsFromUrl(E){return E&&0!==E.length?("?"===E.charAt(0)&&(E=E.substr(1)),this.urlHelper.parseQueryString(E)):this.urlHelper.getHashFragmentParams()}getTokenFromCode(E,T){let n=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","authorization_code").set("code",E).set("redirect_uri",T.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let H;H=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("PKCE_verifier"):this._storage.getItem("PKCE_verifier"),H?n=n.set("code_verifier",H):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(n,T)}fetchAndProcessToken(E,T){T=T||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let n=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const H=btoa(`${this.clientId}:${this.dummyClientSecret}`);n=n.set("Authorization","Basic "+H)}return this.useHttpBasicAuth||(E=E.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(E=E.set("client_secret",this.dummyClientSecret)),new Promise((H,D)=>{if(this.customQueryParams)for(let L of Object.getOwnPropertyNames(this.customQueryParams))E=E.set(L,this.customQueryParams[L]);this.http.post(this.tokenEndpoint,E,{headers:n}).subscribe(L=>{this.debug("refresh tokenResponse",L),this.storeAccessTokenResponse(L.access_token,L.refresh_token,L.expires_in||this.fallbackAccessTokenExpirationTimeInSec,L.scope,this.extractRecognizedCustomParameters(L)),this.oidc&&L.id_token?this.processIdToken(L.id_token,L.access_token,T.disableNonceCheck).then(O=>{this.storeIdToken(O),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),H(L)}).catch(O=>{this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",O)),console.error("Error validating tokens"),console.error(O),D(O)}):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),H(L))},L=>{console.error("Error getting token",L),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",L)),D(L)})})}tryLoginImplicitFlow(E=null){let T;T=(E=E||{}).customHashFragment?this.urlHelper.getHashFragmentParams(E.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",T);const n=T.state;let[H,D]=this.parseState(n);if(this.state=D,T.error){this.debug("error trying to login"),this.handleLoginError(E,T);const W=new OAuthErrorEvent("token_error",{},T);return this.eventsSubject.next(W),Promise.reject(W)}const L=T.access_token,O=T.id_token,B=T.session_state,U=T.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!L||this.requestAccessToken&&!E.disableOAuth2StateCheck&&!n||this.oidc&&!O)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!B&&this.logger.warn("session checks (Session Status Change Notification) were activated in the configuration but the id_token does not contain a session_state claim"),this.requestAccessToken&&!E.disableNonceCheck&&!this.validateNonce(H)){const ee=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(ee),Promise.reject(ee)}return this.requestAccessToken&&this.storeAccessTokenResponse(L,null,T.expires_in||this.fallbackAccessTokenExpirationTimeInSec,U),this.oidc?this.processIdToken(O,L,E.disableNonceCheck).then(W=>E.validationHandler?E.validationHandler({accessToken:L,idClaims:W.idTokenClaims,idToken:W.idToken,state:n}).then(ee=>W):W).then(W=>(this.storeIdToken(W),this.storeSessionState(B),this.clearHashAfterLogin&&!E.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.callOnTokenReceivedIfExists(E),this.inImplicitFlow=!1,!0)).catch(W=>(this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",W)),this.logger.error("Error validating tokens"),this.logger.error(W),Promise.reject(W))):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.clearHashAfterLogin&&!E.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(E),Promise.resolve(!0))}parseState(E){let T=E,n="";if(E){const H=E.indexOf(this.config.nonceStateSeparator);H>-1&&(T=E.substr(0,H),n=E.substr(H+this.config.nonceStateSeparator.length))}return[T,n]}validateNonce(E){let T;return T=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),T===E||(console.error("Validating access_token failed, wrong state/nonce.",T,E),!1)}storeIdToken(E){this._storage.setItem("id_token",E.idToken),this._storage.setItem("id_token_claims_obj",E.idTokenClaimsJson),this._storage.setItem("id_token_expires_at",""+E.idTokenExpiresAt),this._storage.setItem("id_token_stored_at",""+this.dateTimeService.now())}storeSessionState(E){this._storage.setItem("session_state",E)}getSessionState(){return this._storage.getItem("session_state")}handleLoginError(E,T){E.onLoginError&&E.onLoginError(T),this.clearHashAfterLogin&&!E.preventClearHashAfterLogin&&this.clearLocationHash()}getClockSkewInMsec(E=6e5){return this.clockSkewInSec?1e3*this.clockSkewInSec:E}processIdToken(E,T,n=!1){const H=E.split("."),L=b64DecodeUnicode(this.padBase64(H[0])),O=JSON.parse(L),U=b64DecodeUnicode(this.padBase64(H[1])),W=JSON.parse(U);let ee;if(ee=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Array.isArray(W.aud)){if(W.aud.every(be=>be!==this.clientId)){const be="Wrong audience: "+W.aud.join(",");return this.logger.warn(be),Promise.reject(be)}}else if(W.aud!==this.clientId){const be="Wrong audience: "+W.aud;return this.logger.warn(be),Promise.reject(be)}if(!W.sub){const be="No sub claim in id_token";return this.logger.warn(be),Promise.reject(be)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==W.sub){const be=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${W.sub}`;return this.logger.warn(be),Promise.reject(be)}if(!W.iat){const be="No iat claim in id_token";return this.logger.warn(be),Promise.reject(be)}if(!this.skipIssuerCheck&&W.iss!==this.issuer){const be="Wrong issuer: "+W.iss;return this.logger.warn(be),Promise.reject(be)}if(!n&&W.nonce!==ee){const be="Wrong nonce: "+W.nonce;return this.logger.warn(be),Promise.reject(be)}if(this.hasOwnProperty("responseType")&&("code"===this.responseType||"id_token"===this.responseType)&&(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!W.at_hash){const be="An at_hash is needed!";return this.logger.warn(be),Promise.reject(be)}const te=this.dateTimeService.now(),ae=1e3*W.iat,ue=1e3*W.exp,oe=this.getClockSkewInMsec();if(ae-oe>=te||ue+oe<=te){const be="Token has expired";return console.error(be),console.error({now:te,issuedAtMSec:ae,expiresAtMSec:ue}),Promise.reject(be)}const re={accessToken:T,idToken:E,jwks:this.jwks,idTokenClaims:W,idTokenHeader:O,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(re).then(be=>({idToken:E,idTokenClaims:W,idTokenClaimsJson:U,idTokenHeader:O,idTokenHeaderJson:L,idTokenExpiresAt:ue})):this.checkAtHash(re).then(be=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!be){const we="Wrong at_hash";return this.logger.warn(we),Promise.reject(we)}return this.checkSignature(re).then(we=>{const Xe={idToken:E,idTokenClaims:W,idTokenClaimsJson:U,idTokenHeader:O,idTokenHeaderJson:L,idTokenExpiresAt:ue};return this.disableAtHashCheck?Xe:this.checkAtHash(re).then(et=>{if(this.requestAccessToken&&!et){const ke="Wrong at_hash";return this.logger.warn(ke),Promise.reject(ke)}return Xe})})})}getIdentityClaims(){const E=this._storage.getItem("id_token_claims_obj");return E?JSON.parse(E):null}getGrantedScopes(){const E=this._storage.getItem("granted_scopes");return E?JSON.parse(E):null}getIdToken(){return this._storage?this._storage.getItem("id_token"):null}padBase64(E){for(;E.length%4!=0;)E+="=";return E}getAccessToken(){return this._storage?this._storage.getItem("access_token"):null}getRefreshToken(){return this._storage?this._storage.getItem("refresh_token"):null}getAccessTokenExpiration(){return this._storage.getItem("expires_at")?parseInt(this._storage.getItem("expires_at"),10):null}getAccessTokenStoredAt(){return parseInt(this._storage.getItem("access_token_stored_at"),10)}getIdTokenStoredAt(){return parseInt(this._storage.getItem("id_token_stored_at"),10)}getIdTokenExpiration(){return this._storage.getItem("id_token_expires_at")?parseInt(this._storage.getItem("id_token_expires_at"),10):null}hasValidAccessToken(){if(this.getAccessToken()){const E=this._storage.getItem("expires_at"),T=this.dateTimeService.new();return!(E&&parseInt(E,10)=0&&null!==this._storage.getItem(E)?JSON.parse(this._storage.getItem(E)):null}authorizationHeader(){return"Bearer "+this.getAccessToken()}logOut(E={},T=""){let n=!1;"boolean"==typeof E&&(n=E,E={});const H=this.getIdToken();if(this._storage.removeItem("access_token"),this._storage.removeItem("id_token"),this._storage.removeItem("refresh_token"),this.saveNoncesInLocalStorage?(localStorage.removeItem("nonce"),localStorage.removeItem("PKCE_verifier")):(this._storage.removeItem("nonce"),this._storage.removeItem("PKCE_verifier")),this._storage.removeItem("expires_at"),this._storage.removeItem("id_token_claims_obj"),this._storage.removeItem("id_token_expires_at"),this._storage.removeItem("id_token_stored_at"),this._storage.removeItem("access_token_stored_at"),this._storage.removeItem("granted_scopes"),this._storage.removeItem("session_state"),this.config.customTokenParameters&&this.config.customTokenParameters.forEach(L=>this._storage.removeItem(L)),this.silentRefreshSubject=null,this.eventsSubject.next(new OAuthInfoEvent("logout")),!this.logoutUrl||n||!H&&!this.postLogoutRedirectUri)return;let D;if(!this.validateUrlForHttps(this.logoutUrl))throw new Error("logoutUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(this.logoutUrl.indexOf("{{")>-1)D=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(H)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let L=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec});H&&(L=L.set("id_token_hint",H));const O=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";O&&(L=L.set("post_logout_redirect_uri",O),T&&(L=L.set("state",T)));for(let B in E)L=L.set(B,E[B]);D=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+L.toString()}this.config.openUri(D)}createAndSaveNonce(){const E=this;return this.createNonce().then(function(T){return E.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("nonce",T):E._storage.setItem("nonce",T),T})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();const E=this.document.getElementById(this.silentRefreshIFrameName);E&&E.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();const T=this.document.getElementById(this.sessionCheckIFrameName);T&&T.remove()}createNonce(){return new Promise(E=>{if(this.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");const T="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";let n=45,H="";const D=typeof self>"u"?null:self.crypto||self.msCrypto;if(D){let L=new Uint8Array(n);D.getRandomValues(L),L.map||(L.map=Array.prototype.map),L=L.map(O=>T.charCodeAt(O%T.length)),H=String.fromCharCode.apply(null,L)}else for(;0"discovery_document_loaded"===n.type)).subscribe(n=>this.initCodeFlowInternal(E,T))}initCodeFlowInternal(E="",T={}){if(!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let n={},H=null;"string"==typeof T?H=T:"object"==typeof T&&(n=T),this.createLoginUrl(E,H,null,!1,n).then(this.config.openUri).catch(D=>{console.error("Error in initAuthorizationCodeFlow"),console.error(D)})}createChallangeVerifierPairForPKCE(){var E=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){if(!E.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");const T=yield E.createNonce();return[base64UrlEncode(yield E.crypto.calcHash(T,"sha-256")),T]})()}extractRecognizedCustomParameters(E){let T=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(n=>{E[n]&&T.set(n,JSON.stringify(E[n]))}),T}revokeTokenAndLogout(E={},T=!1){let n=this.revocationEndpoint,H=this.getAccessToken(),D=this.getRefreshToken();if(!H)return;let L=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}),O=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const B=btoa(`${this.clientId}:${this.dummyClientSecret}`);O=O.set("Authorization","Basic "+B)}if(this.useHttpBasicAuth||(L=L.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(L=L.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const B of Object.getOwnPropertyNames(this.customQueryParams))L=L.set(B,this.customQueryParams[B]);return new Promise((B,U)=>{let W,ee;if(H){let te=L.set("token",H).set("token_type_hint","access_token");W=this.http.post(n,te,{headers:O})}else W=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);if(D){let te=L.set("token",D).set("token_type_hint","refresh_token");ee=this.http.post(n,te,{headers:O})}else ee=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);T&&(W=W.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(te=>0===te.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(te))),ee=ee.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(te=>0===te.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(te)))),(0,rxjs__WEBPACK_IMPORTED_MODULE_17__.a)([W,ee]).subscribe(te=>{this.logOut(E),B(te),this.logger.info("Token successfully revoked")},te=>{this.logger.error("Error revoking token",te),this.eventsSubject.next(new OAuthErrorEvent("token_revoke_error",te)),U(te)})})}clearLocationHash(){""!=location.hash&&(location.hash="")}}return Y.\u0275fac=function(E){return new(E||Y)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_core__WEBPACK_IMPORTED_MODULE_1__.R0b),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.eN),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthStorage,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(ValidationHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(AuthConfig,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(UrlHelperService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthLogger),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(HashHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common__WEBPACK_IMPORTED_MODULE_18__.K0),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(DateTimeProvider))},Y.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:Y,factory:Y.\u0275fac}),Y})();class OAuthModuleConfig{}class OAuthResourceServerConfig{}class OAuthResourceServerErrorHandler{}class OAuthNoopResourceServerErrorHandler{handleError(G){return(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(G)}}let DefaultOAuthInterceptor=(()=>{class Y{constructor(E,T,n){this.oAuthService=E,this.errorHandler=T,this.moduleConfig=n}checkUrl(E){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(E):!this.moduleConfig.resourceServer.allowedUrls||!!this.moduleConfig.resourceServer.allowedUrls.find(T=>E.toLowerCase().startsWith(T.toLowerCase()))}intercept(E,T){const n=E.url.toLowerCase();return this.moduleConfig&&this.moduleConfig.resourceServer&&this.checkUrl(n)?this.moduleConfig.resourceServer.sendAccessToken?(0,rxjs__WEBPACK_IMPORTED_MODULE_19__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(this.oAuthService.getAccessToken()).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(D=>!!D)),this.oAuthService.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(D=>"token_received"===D.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.V)(this.oAuthService.waitForTokenInMsec||0),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(D=>(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(D=>this.oAuthService.getAccessToken()))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.q)(1),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_22__.z)(D=>{if(D){const O=E.headers.set("Authorization","Bearer "+D);E=E.clone({headers:O})}return T.handle(E).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(L=>this.errorHandler.handleError(L)))})):T.handle(E).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(D=>this.errorHandler.handleError(D))):T.handle(E)}}return Y.\u0275fac=function(E){return new(E||Y)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthResourceServerErrorHandler),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthModuleConfig,8))},Y.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:Y,factory:Y.\u0275fac}),Y})();class NullValidationHandler{validateSignature(G){return Promise.resolve(null)}validateAtHash(G){return Promise.resolve(!0)}}function createDefaultLogger(){return console}function createDefaultStorage(){return typeof sessionStorage<"u"?sessionStorage:new MemoryStorage}let OAuthModule=(()=>{class Y{static forRoot(E=null,T=NullValidationHandler){return{ngModule:Y,providers:[OAuthService,UrlHelperService,{provide:OAuthLogger,useFactory:createDefaultLogger},{provide:OAuthStorage,useFactory:createDefaultStorage},{provide:ValidationHandler,useClass:T},{provide:HashHandler,useClass:DefaultHashHandler},{provide:OAuthResourceServerErrorHandler,useClass:OAuthNoopResourceServerErrorHandler},{provide:OAuthModuleConfig,useValue:E},{provide:_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.TP,useClass:DefaultOAuthInterceptor,multi:!0},{provide:DateTimeProvider,useClass:SystemDateTimeProvider}]}}}return Y.\u0275fac=function(E){return new(E||Y)},Y.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_1__.oAB({type:Y}),Y.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_1__.cJS({imports:[[_angular_common__WEBPACK_IMPORTED_MODULE_18__.ez]]}),Y})();const err="PLEASE READ THIS CAREFULLY:\n\nBeginning with angular-oauth2-oidc version 9, the JwksValidationHandler\nhas been moved to an library of its own. If you need it for implementing\nOAuth2/OIDC **implicit flow**, please install it using npm:\n\n npm i angular-oauth2-oidc-jwks --save\n\nAfter that, you can import it into your application:\n\n import { JwksValidationHandler } from 'angular-oauth2-oidc-jwks';\n\nPlease note, that this dependency is not needed for the **code flow**,\nwhich is nowadays the **recommented** one for single page applications.\nThis also results in smaller bundle sizes.\n";class JwksValidationHandler extends NullValidationHandler{constructor(){super(),console.error(err)}}const AUTH_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_1__.OlP("AUTH_CONFIG")},5861:(Y,G,E)=>{"use strict";function T(H,D,L,O,B,U,W){try{var ee=H[U](W),te=ee.value}catch(ae){return void L(ae)}ee.done?D(te):Promise.resolve(te).then(O,B)}function n(H){return function(){var D=this,L=arguments;return new Promise(function(O,B){var U=H.apply(D,L);function W(te){T(U,O,B,W,ee,"next",te)}function ee(te){T(U,O,B,W,ee,"throw",te)}W(void 0)})}}E.d(G,{Z:()=>n})},1128:Y=>{"use strict";Y.exports=JSON.parse('{"version":"2021e","zones":["Africa/Abidjan|LMT GMT|g.8 0|01|-2ldXH.Q|48e5","Africa/Nairobi|LMT +0230 EAT +0245|-2r.g -2u -30 -2J|012132|-2ua2r.g N6nV.g 3Fbu h1cu dzbJ|47e5","Africa/Algiers|PMT WET WEST CET CEST|-9.l 0 -10 -10 -20|0121212121212121343431312123431213|-2nco9.l cNb9.l HA0 19A0 1iM0 11c0 1oo0 Wo0 1rc0 QM0 1EM0 UM0 DA0 Imo0 rd0 De0 9Xz0 1fb0 1ap0 16K0 2yo0 mEp0 hwL0 jxA0 11A0 dDd0 17b0 11B0 1cN0 2Dy0 1cN0 1fB0 1cL0|26e5","Africa/Lagos|LMT GMT +0030 WAT|-d.z 0 -u -10|01023|-2B40d.z 7iod.z dnXK.p dLzH.z|17e6","Africa/Bissau|LMT -01 GMT|12.k 10 0|012|-2ldX0 2xoo0|39e4","Africa/Maputo|LMT CAT|-2a.k -20|01|-2GJea.k|26e5","Africa/Cairo|EET EEST|-20 -30|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-1bIO0 vb0 1ip0 11z0 1iN0 1nz0 12p0 1pz0 10N0 1pz0 16p0 1jz0 s3d0 Vz0 1oN0 11b0 1oO0 10N0 1pz0 10N0 1pb0 10N0 1pb0 10N0 1pb0 10N0 1pz0 10N0 1pb0 10N0 1pb0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1WL0 rd0 1Rz0 wp0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1qL0 Xd0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1ny0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 WL0 1qN0 Rb0 1wp0 On0 1zd0 Lz0 1EN0 Fb0 c10 8n0 8Nd0 gL0 e10 mn0|15e6","Africa/Casablanca|LMT +00 +01|u.k 0 -10|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-2gMnt.E 130Lt.E rb0 Dd0 dVb0 b6p0 TX0 EoB0 LL0 gnd0 rz0 43d0 AL0 1Nd0 XX0 1Cp0 pz0 dEp0 4mn0 SyN0 AL0 1Nd0 wn0 1FB0 Db0 1zd0 Lz0 1Nf0 wM0 co0 go0 1o00 s00 dA0 vc0 11A0 A00 e00 y00 11A0 uM0 e00 Dc0 11A0 s00 e00 IM0 WM0 mo0 gM0 LA0 WM0 jA0 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0|32e5","Africa/Ceuta|WET WEST CET CEST|0 -10 -10 -20|010101010101010101010232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-25KN0 11z0 drd0 18p0 3HX0 17d0 1fz0 1a10 1io0 1a00 1y7o0 LL0 gnd0 rz0 43d0 AL0 1Nd0 XX0 1Cp0 pz0 dEp0 4VB0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|85e3","Africa/El_Aaiun|LMT -01 +00 +01|Q.M 10 0 -10|012323232323232323232323232323232323232323232323232323232323232323232323232323232323|-1rDz7.c 1GVA7.c 6L0 AL0 1Nd0 XX0 1Cp0 pz0 1cBB0 AL0 1Nd0 wn0 1FB0 Db0 1zd0 Lz0 1Nf0 wM0 co0 go0 1o00 s00 dA0 vc0 11A0 A00 e00 y00 11A0 uM0 e00 Dc0 11A0 s00 e00 IM0 WM0 mo0 gM0 LA0 WM0 jA0 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0|20e4","Africa/Johannesburg|SAST SAST SAST|-1u -20 -30|012121|-2GJdu 1Ajdu 1cL0 1cN0 1cL0|84e5","Africa/Juba|LMT CAT CAST EAT|-26.s -20 -30 -30|012121212121212121212121212121212131|-1yW26.s 1zK06.s 16L0 1iN0 17b0 1jd0 17b0 1ip0 17z0 1i10 17X0 1hB0 18n0 1hd0 19b0 1gp0 19z0 1iN0 17b0 1ip0 17z0 1i10 18n0 1hd0 18L0 1gN0 19b0 1gp0 19z0 1iN0 17z0 1i10 17X0 yGd0 PeX0|","Africa/Khartoum|LMT CAT CAST EAT|-2a.8 -20 -30 -30|012121212121212121212121212121212131|-1yW2a.8 1zK0a.8 16L0 1iN0 17b0 1jd0 17b0 1ip0 17z0 1i10 17X0 1hB0 18n0 1hd0 19b0 1gp0 19z0 1iN0 17b0 1ip0 17z0 1i10 18n0 1hd0 18L0 1gN0 19b0 1gp0 19z0 1iN0 17z0 1i10 17X0 yGd0 HjL0|51e5","Africa/Monrovia|MMT MMT GMT|H.8 I.u 0|012|-23Lzg.Q 28G01.m|11e5","Africa/Ndjamena|LMT WAT WAST|-10.c -10 -20|0121|-2le10.c 2J3c0.c Wn0|13e5","Africa/Sao_Tome|LMT GMT WAT|A.J 0 -10|0121|-2le00 4i6N0 2q00|","Africa/Tripoli|LMT CET CEST EET|-Q.I -10 -20 -20|012121213121212121212121213123123|-21JcQ.I 1hnBQ.I vx0 4iP0 xx0 4eN0 Bb0 7ip0 U0n0 A10 1db0 1cN0 1db0 1dd0 1db0 1eN0 1bb0 1e10 1cL0 1c10 1db0 1dd0 1db0 1cN0 1db0 1q10 fAn0 1ep0 1db0 AKq0 TA0 1o00|11e5","Africa/Tunis|PMT CET CEST|-9.l -10 -20|0121212121212121212121212121212121|-2nco9.l 18pa9.l 1qM0 DA0 3Tc0 11B0 1ze0 WM0 7z0 3d0 14L0 1cN0 1f90 1ar0 16J0 1gXB0 WM0 1rA0 11c0 nwo0 Ko0 1cM0 1cM0 1rA0 10M0 zuM0 10N0 1aN0 1qM0 WM0 1qM0 11A0 1o00|20e5","Africa/Windhoek|+0130 SAST SAST CAT WAT|-1u -20 -30 -20 -10|01213434343434343434343434343434343434343434343434343|-2GJdu 1Ajdu 1cL0 1SqL0 9Io0 16P0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0|32e4","America/Adak|NST NWT NPT BST BDT AHST HST HDT|b0 a0 a0 b0 a0 a0 a0 90|012034343434343434343434343434343456767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-17SX0 8wW0 iB0 Qlb0 52O0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cm0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|326","America/Anchorage|AST AWT APT AHST AHDT YST AKST AKDT|a0 90 90 a0 90 90 90 80|012034343434343434343434343434343456767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-17T00 8wX0 iA0 Qlb0 52O0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cm0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|30e4","America/Puerto_Rico|AST AWT APT|40 30 30|0120|-17lU0 7XT0 iu0|24e5","America/Araguaina|LMT -03 -02|3c.M 30 20|0121212121212121212121212121212121212121212121212121|-2glwL.c HdKL.c 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 dMN0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 ny10 Lz0|14e4","America/Argentina/Buenos_Aires|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323232323232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wp0 Rb0 1wp0 TX0 A4p0 uL0 1qN0 WL0|","America/Argentina/Catamarca|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323132321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 rlB0 7B0 8zb0 uL0|","America/Argentina/Cordoba|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323132323232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 A4p0 uL0 1qN0 WL0|","America/Argentina/Jujuy|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323121323232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1ze0 TX0 1ld0 WK0 1wp0 TX0 A4p0 uL0|","America/Argentina/La_Rioja|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323231232321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Qn0 qO0 16n0 Rb0 1wp0 TX0 rlB0 7B0 8zb0 uL0|","America/Argentina/Mendoza|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232312121321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1u20 SL0 1vd0 Tb0 1wp0 TW0 ri10 Op0 7TX0 uL0|","America/Argentina/Rio_Gallegos|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323232321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wp0 Rb0 1wp0 TX0 rlB0 7B0 8zb0 uL0|","America/Argentina/Salta|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323231323232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 A4p0 uL0|","America/Argentina/San_Juan|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323231232321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Qn0 qO0 16n0 Rb0 1wp0 TX0 rld0 m10 8lb0 uL0|","America/Argentina/San_Luis|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323121212321212|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 XX0 1q20 SL0 AN0 vDb0 m10 8lb0 8L0 jd0 1qN0 WL0 1qN0|","America/Argentina/Tucuman|CMT -04 -03 -02|4g.M 40 30 20|0121212121212121212121212121212121212121212323232313232123232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 rlB0 4N0 8BX0 uL0 1qN0 WL0|","America/Argentina/Ushuaia|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323232321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wp0 Rb0 1wp0 TX0 rkN0 8p0 8zb0 uL0|","America/Asuncion|AMT -04 -03|3O.E 40 30|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-1x589.k 1DKM9.k 3CL0 3Dd0 10L0 1pB0 10n0 1pB0 10n0 1pB0 1cL0 1dd0 1db0 1dd0 1cL0 1dd0 1cL0 1dd0 1cL0 1dd0 1db0 1dd0 1cL0 1dd0 1cL0 1dd0 1cL0 1dd0 1db0 1dd0 1cL0 1lB0 14n0 1dd0 1cL0 1fd0 WL0 1rd0 1aL0 1dB0 Xz0 1qp0 Xb0 1qN0 10L0 1rB0 TX0 1tB0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 WN0 1qL0 11B0 1nX0 1ip0 WL0 1qN0 WL0 1qN0 WL0 1tB0 TX0 1tB0 TX0 1tB0 19X0 1a10 1fz0 1a10 1fz0 1cN0 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0|28e5","America/Panama|CMT EST|5j.A 50|01|-2uduE.o|15e5","America/Bahia_Banderas|LMT MST CST PST MDT CDT|71 70 60 80 60 50|0121212131414141414141414141414141414152525252525252525252525252525252525252525252525252525252|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 otX0 gmN0 P2N0 13Vd0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nW0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|84e3","America/Bahia|LMT -03 -02|2y.4 30 20|01212121212121212121212121212121212121212121212121212121212121|-2glxp.U HdLp.U 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 l5B0 Rb0|27e5","America/Barbados|LMT AST ADT -0330|3W.t 40 30 3u|0121213121212121|-2m4k1.v 1eAN1.v RB0 1Bz0 Op0 1rb0 11d0 1jJc0 IL0 1ip0 17b0 1ip0 17b0 1ld0 13b0|28e4","America/Belem|LMT -03 -02|3d.U 30 20|012121212121212121212121212121|-2glwK.4 HdKK.4 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0|20e5","America/Belize|LMT CST -0530 CWT CPT CDT|5Q.M 60 5u 50 50 50|012121212121212121212121212121212121212121212121213412121212121212121212121212121212121212121215151|-2kBu7.c fPA7.c Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu Rcu 7Bt0 Ni0 4nd0 Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu e9Au qn0 lxB0 mn0|57e3","America/Boa_Vista|LMT -04 -03|42.E 40 30|0121212121212121212121212121212121|-2glvV.k HdKV.k 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 smp0 WL0 1tB0 2L0|62e2","America/Bogota|BMT -05 -04|4U.g 50 40|0121|-2eb73.I 38yo3.I 2en0|90e5","America/Boise|PST PDT MST MWT MPT MDT|80 70 70 60 60 60|0101023425252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252|-261q0 1nX0 11B0 1nX0 8C10 JCL0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 Dd0 1Kn0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|21e4","America/Cambridge_Bay|-00 MST MWT MPT MDDT MDT CST CDT EST|0 70 60 60 50 60 60 50 50|0123141515151515151515151515151515151515151515678651515151515151515151515151515151515151515151515151515151515151515151515151|-21Jc0 RO90 8x20 ix0 LCL0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11A0 1nX0 2K0 WQ0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|15e2","America/Campo_Grande|LMT -04 -03|3C.s 40 30|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glwl.w HdLl.w 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 1C10 Lz0 1Ip0 HX0 1zd0 On0 1HB0 IL0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 Rb0 1zd0 Lz0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 On0 1zd0 On0 1HB0 FX0|77e4","America/Cancun|LMT CST EST EDT CDT|5L.4 60 50 40 50|0123232341414141414141414141414141414141412|-1UQG0 2q2o0 yLB0 1lb0 14p0 1lb0 14p0 Lz0 xB0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 Dd0|63e4","America/Caracas|CMT -0430 -04|4r.E 4u 40|01212|-2kV7w.k 28KM2.k 1IwOu kqo0|29e5","America/Cayenne|LMT -04 -03|3t.k 40 30|012|-2mrwu.E 2gWou.E|58e3","America/Chicago|CST CDT EST CWT CPT|60 50 50 50 50|01010101010101010101010101010101010102010101010103401010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 1wp0 TX0 WN0 1qL0 1cN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 11B0 1Hz0 14p0 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 RB0 8x30 iw0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|92e5","America/Chihuahua|LMT MST CST CDT MDT|74.k 70 60 50 60|0121212323241414141414141414141414141414141414141414141414141414141414141414141414141414141|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 2zQN0 1lb0 14p0 1lb0 14q0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|81e4","America/Costa_Rica|SJMT CST CDT|5A.d 60 50|0121212121|-1Xd6n.L 2lu0n.L Db0 1Kp0 Db0 pRB0 15b0 1kp0 mL0|12e5","America/Phoenix|MST MDT MWT|70 60 60|01010202010|-261r0 1nX0 11B0 1nX0 SgN0 4Al1 Ap0 1db0 SWqX 1cL0|42e5","America/Cuiaba|LMT -04 -03|3I.k 40 30|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glwf.E HdLf.E 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 4a10 HX0 1zd0 On0 1HB0 IL0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 Rb0 1zd0 Lz0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 On0 1zd0 On0 1HB0 FX0|54e4","America/Danmarkshavn|LMT -03 -02 GMT|1e.E 30 20 0|01212121212121212121212121212121213|-2a5WJ.k 2z5fJ.k 19U0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 DC0|8","America/Dawson_Creek|PST PDT PWT PPT MST|80 70 70 70 70|0102301010101010101010101010101010101010101010101010101014|-25TO0 1in0 UGp0 8x10 iy0 3NB0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 ML0|12e3","America/Dawson|YST YDT YWT YPT YDDT PST PDT MST|90 80 80 80 70 80 70 70|010102304056565656565656565656565656565656565656565656565656565656565656565656565656565656567|-25TN0 1in0 1o10 13V0 Ser0 8x00 iz0 LCL0 1fA0 jrA0 fNd0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1z90|13e2","America/Denver|MST MDT MWT MPT|70 60 60 60|01010101023010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261r0 1nX0 11B0 1nX0 11B0 1qL0 WN0 mn0 Ord0 8x20 ix0 LCN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|26e5","America/Detroit|LMT CST EST EWT EPT EDT|5w.b 60 50 40 40 40|0123425252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252|-2Cgir.N peqr.N 156L0 8x40 iv0 6fd0 11z0 JxX1 SMX 1cN0 1cL0 aW10 1cL0 s10 1Vz0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|37e5","America/Edmonton|LMT MST MDT MWT MPT|7x.Q 70 60 60 60|0121212121212134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2yd4q.8 shdq.8 1in0 17d0 hz0 2dB0 1fz0 1a10 11z0 1qN0 WL0 1qN0 11z0 IGN0 8x20 ix0 3NB0 11z0 XQp0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|10e5","America/Eirunepe|LMT -05 -04|4D.s 50 40|0121212121212121212121212121212121|-2glvk.w HdLk.w 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 dPB0 On0 yTd0 d5X0|31e3","America/El_Salvador|LMT CST CDT|5U.M 60 50|012121|-1XiG3.c 2Fvc3.c WL0 1qN0 WL0|11e5","America/Tijuana|LMT MST PST PDT PWT PPT|7M.4 70 80 70 70 70|012123245232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-1UQE0 4PX0 8mM0 8lc0 SN0 1cL0 pHB0 83r0 zI0 5O10 1Rz0 cOO0 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 BUp0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 U10 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|20e5","America/Fort_Nelson|PST PDT PWT PPT MST|80 70 70 70 70|01023010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010104|-25TO0 1in0 UGp0 8x10 iy0 3NB0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0|39e2","America/Fort_Wayne|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|010101023010101010101010101040454545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 QI10 Db0 RB0 8x30 iw0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 5Tz0 1o10 qLb0 1cL0 1cN0 1cL0 1qhd0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Fortaleza|LMT -03 -02|2y 30 20|0121212121212121212121212121212121212121|-2glxq HdLq 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 nsp0 WL0 1tB0 5z0 2mN0 On0|34e5","America/Glace_Bay|LMT AST ADT AWT APT|3X.M 40 30 30 30|012134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2IsI0.c CwO0.c 1in0 UGp0 8x50 iu0 iq10 11z0 Jg10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|19e3","America/Godthab|LMT -03 -02|3q.U 30 20|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2a5Ux.4 2z5dx.4 19U0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|17e3","America/Goose_Bay|NST NDT NST NDT NWT NPT AST ADT ADDT|3u.Q 2u.Q 3u 2u 2u 2u 40 30 20|010232323232323245232323232323232323232323232323232323232326767676767676767676767676767676767676767676768676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-25TSt.8 1in0 DXb0 2HbX.8 WL0 1qN0 WL0 1qN0 WL0 1tB0 TX0 1tB0 WL0 1qN0 WL0 1qN0 7UHu itu 1tB0 WL0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1tB0 WL0 1ld0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 S10 g0u 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14n1 1lb0 14p0 1nW0 11C0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zcX Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|76e2","America/Grand_Turk|KMT EST EDT AST|57.a 50 40 40|0121212121212121212121212121212121212121212121212121212121212121212121212132121212121212121212121212121212121212121|-2l1uQ.O 2HHBQ.O 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 7jA0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|37e2","America/Guatemala|LMT CST CDT|62.4 60 50|0121212121|-24KhV.U 2efXV.U An0 mtd0 Nz0 ifB0 17b0 zDB0 11z0|13e5","America/Guayaquil|QMT -05 -04|5e 50 40|0121|-1yVSK 2uILK rz0|27e5","America/Guyana|LMT -04 -0345 -03|3Q.D 40 3J 30|01231|-2mf87.l 8Hc7.l 2r7bJ Ey0f|80e4","America/Halifax|LMT AST ADT AWT APT|4e.o 40 30 30 30|0121212121212121212121212121212121212121212121212134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2IsHJ.A xzzJ.A 1db0 3I30 1in0 3HX0 IL0 1E10 ML0 1yN0 Pb0 1Bd0 Mn0 1Bd0 Rz0 1w10 Xb0 1w10 LX0 1w10 Xb0 1w10 Lz0 1C10 Jz0 1E10 OL0 1yN0 Un0 1qp0 Xb0 1qp0 11X0 1w10 Lz0 1HB0 LX0 1C10 FX0 1w10 Xb0 1qp0 Xb0 1BB0 LX0 1td0 Xb0 1qp0 Xb0 Rf0 8x50 iu0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 3Qp0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 3Qp0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 6i10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|39e4","America/Havana|HMT CST CDT|5t.A 50 40|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1Meuu.o 72zu.o ML0 sld0 An0 1Nd0 Db0 1Nd0 An0 6Ep0 An0 1Nd0 An0 JDd0 Mn0 1Ap0 On0 1fd0 11X0 1qN0 WL0 1wp0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 14n0 1ld0 14L0 1kN0 15b0 1kp0 1cL0 1cN0 1fz0 1a10 1fz0 1fB0 11z0 14p0 1nX0 11B0 1nX0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 14n0 1ld0 14n0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 1a10 1in0 1a10 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 17c0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 11A0 6i00 Rc0 1wo0 U00 1tA0 Rc0 1wo0 U00 1wo0 U00 1zc0 U00 1qM0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0|21e5","America/Hermosillo|LMT MST CST PST MDT|7n.Q 70 60 80 60|0121212131414141|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 otX0 gmN0 P2N0 13Vd0 1lb0 14p0 1lb0 14p0 1lb0|64e4","America/Indiana/Knox|CST CDT CWT CPT EST|60 50 50 50 50|0101023010101010101010101010101010101040101010101010101010101010101010101010101010101010141010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 3NB0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 11z0 1o10 11z0 1o10 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 3Cn0 8wp0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 z8o0 1o00 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Marengo|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|0101023010101010101010104545454545414545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 dyN0 11z0 6fd0 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 jrz0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1VA0 LA0 1BX0 1e6p0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Petersburg|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|01010230101010101010101010104010101010101010101010141014545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 njX0 WN0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 3Fb0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 19co0 1o00 Rd0 1zb0 Oo0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Tell_City|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|01010230101010101010101010401054541010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 njX0 WN0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 8wn0 1cN0 1cL0 1cN0 1cK0 1cN0 1cL0 1qhd0 1o00 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Vevay|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|010102304545454545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 kPB0 Awn0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1lnd0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Vincennes|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|01010230101010101010101010101010454541014545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 1o10 11z0 g0p0 11z0 1o10 11z0 1qL0 WN0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 caL0 1cL0 1cN0 1cL0 1qhd0 1o00 Rd0 1zb0 Oo0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Winamac|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|01010230101010101010101010101010101010454541054545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 jrz0 1cL0 1cN0 1cL0 1qhd0 1o00 Rd0 1za0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Inuvik|-00 PST PDDT MST MDT|0 80 60 70 60|0121343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-FnA0 tWU0 1fA0 wPe0 2pz0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|35e2","America/Iqaluit|-00 EWT EPT EST EDDT EDT CST CDT|0 40 40 50 30 40 60 50|01234353535353535353535353535353535353535353567353535353535353535353535353535353535353535353535353535353535353535353535353|-16K00 7nX0 iv0 LCL0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11C0 1nX0 11A0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|67e2","America/Jamaica|KMT EST EDT|57.a 50 40|0121212121212121212121|-2l1uQ.O 2uM1Q.O 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0|94e4","America/Juneau|PST PWT PPT PDT YDT YST AKST AKDT|80 70 70 70 80 90 90 80|01203030303030303030303030403030356767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-17T20 8x10 iy0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cM0 1cM0 1cL0 1cN0 1fz0 1a10 1fz0 co0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|33e3","America/Kentucky/Louisville|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|0101010102301010101010101010101010101454545454545414545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 3Fd0 Nb0 LPd0 11z0 RB0 8x30 iw0 1nX1 e0X 9vd0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 xz0 gso0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1VA0 LA0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Kentucky/Monticello|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|0101023010101010101010101010101010101010101010101010101010101010101010101454545454545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 SWp0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11A0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/La_Paz|CMT BST -04|4w.A 3w.A 40|012|-1x37r.o 13b0|19e5","America/Lima|LMT -05 -04|58.A 50 40|0121212121212121|-2tyGP.o 1bDzP.o zX0 1aN0 1cL0 1cN0 1cL0 1PrB0 zX0 1O10 zX0 6Gp0 zX0 98p0 zX0|11e6","America/Los_Angeles|PST PDT PWT PPT|80 70 70 70|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261q0 1nX0 11B0 1nX0 SgN0 8x10 iy0 5Wp1 1VaX 3dA0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1a00 1fA0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|15e6","America/Maceio|LMT -03 -02|2m.Q 30 20|012121212121212121212121212121212121212121|-2glxB.8 HdLB.8 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 dMN0 Lz0 8Q10 WL0 1tB0 5z0 2mN0 On0|93e4","America/Managua|MMT CST EST CDT|5J.c 60 50 50|0121313121213131|-1quie.M 1yAMe.M 4mn0 9Up0 Dz0 1K10 Dz0 s3F0 1KH0 DB0 9In0 k8p0 19X0 1o30 11y0|22e5","America/Manaus|LMT -04 -03|40.4 40 30|01212121212121212121212121212121|-2glvX.U HdKX.U 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 dPB0 On0|19e5","America/Martinique|FFMT AST ADT|44.k 40 30|0121|-2mPTT.E 2LPbT.E 19X0|39e4","America/Matamoros|LMT CST CDT|6E 60 50|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1UQG0 2FjC0 1nX0 i6p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 U10 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|45e4","America/Mazatlan|LMT MST CST PST MDT|75.E 70 60 80 60|0121212131414141414141414141414141414141414141414141414141414141414141414141414141414141414141|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 otX0 gmN0 P2N0 13Vd0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|44e4","America/Menominee|CST CDT CWT CPT EST|60 50 50 50 50|01010230101041010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 1o10 11z0 LCN0 1fz0 6410 9Jb0 1cM0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|85e2","America/Merida|LMT CST EST CDT|5W.s 60 50 50|0121313131313131313131313131313131313131313131313131313131313131313131313131313131313131|-1UQG0 2q2o0 2hz0 wu30 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|11e5","America/Metlakatla|PST PWT PPT PDT AKST AKDT|80 70 70 70 90 80|01203030303030303030303030303030304545450454545454545454545454545454545454545454|-17T20 8x10 iy0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1hU10 Rd0 1zb0 Op0 1zb0 Op0 1zb0 uM0 jB0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|14e2","America/Mexico_City|LMT MST CST CDT CWT|6A.A 70 60 50 50|012121232324232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 gEn0 TX0 3xd0 Jb0 6zB0 SL0 e5d0 17b0 1Pff0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|20e6","America/Miquelon|LMT AST -03 -02|3I.E 40 30 20|012323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-2mKkf.k 2LTAf.k gQ10 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|61e2","America/Moncton|EST AST ADT AWT APT|50 40 30 30 30|012121212121212121212134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2IsH0 CwN0 1in0 zAo0 An0 1Nd0 An0 1Nd0 An0 1Nd0 An0 1Nd0 An0 1Nd0 An0 1K10 Lz0 1zB0 NX0 1u10 Wn0 S20 8x50 iu0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 3Cp0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14n1 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 ReX 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|64e3","America/Monterrey|LMT CST CDT|6F.g 60 50|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1UQG0 2FjC0 1nX0 i6p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|41e5","America/Montevideo|LMT MMT -04 -03 -0330 -0230 -02 -0130|3I.P 3I.P 40 30 3u 2u 20 1u|012343434343434343434343435353636353636375363636363636363636363636363636363636363636363|-2tRUf.9 sVc0 8jcf.9 1db0 1dcu 1cLu 1dcu 1cLu ircu 11zu 1o0u 11zu 1o0u 11zu 1o0u 11zu 1qMu WLu 1qMu WLu 1fAu 1cLu 1o0u 11zu NAu 3jXu zXu Dq0u 19Xu pcu jz0 cm10 19X0 6tB0 1fbu 3o0u jX0 4vB0 xz0 3Cp0 mmu 1a10 IMu Db0 4c10 uL0 1Nd0 An0 1SN0 uL0 mp0 28L0 iPB0 un0 1SN0 xz0 1zd0 Lz0 1zd0 Rb0 1zd0 On0 1wp0 Rb0 s8p0 1fB0 1ip0 11z0 1ld0 14n0 1o10 11z0 1o10 11z0 1o10 14n0 1ld0 14n0 1ld0 14n0 1o10 11z0 1o10 11z0 1o10 11z0|17e5","America/Toronto|EST EDT EWT EPT|50 40 40 40|01010101010101010101010101010101010101010101012301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-25TR0 1in0 11Wu 1nzu 1fD0 WJ0 1wr0 Nb0 1Ap0 On0 1zd0 On0 1wp0 TX0 1tB0 TX0 1tB0 TX0 1tB0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 4kM0 8x40 iv0 1o10 11z0 1nX0 11z0 1o10 11z0 1o10 1qL0 11D0 1nX0 11B0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|65e5","America/New_York|EST EDT EWT EPT|50 40 40 40|01010101010101010101010101010101010101010101010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261t0 1nX0 11B0 1nX0 11B0 1qL0 1a10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 RB0 8x40 iv0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|21e6","America/Nipigon|EST EDT EWT EPT|50 40 40 40|010123010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-25TR0 1in0 Rnb0 3je0 8x40 iv0 19yN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|16e2","America/Nome|NST NWT NPT BST BDT YST AKST AKDT|b0 a0 a0 b0 a0 90 90 80|012034343434343434343434343434343456767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-17SX0 8wW0 iB0 Qlb0 52O0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cl0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|38e2","America/Noronha|LMT -02 -01|29.E 20 10|0121212121212121212121212121212121212121|-2glxO.k HdKO.k 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 nsp0 WL0 1tB0 2L0 2pB0 On0|30e2","America/North_Dakota/Beulah|MST MDT MWT MPT CST CDT|70 60 60 60 60 50|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101014545454545454545454545454545454545454545454545454545454|-261r0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Oo0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/North_Dakota/Center|MST MDT MWT MPT CST CDT|70 60 60 60 60 50|010102301010101010101010101010101010101010101010101010101014545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-261r0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14o0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/North_Dakota/New_Salem|MST MDT MWT MPT CST CDT|70 60 60 60 60 50|010102301010101010101010101010101010101010101010101010101010101010101010101010101454545454545454545454545454545454545454545454545454545454545454545454|-261r0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14o0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Ojinaga|LMT MST CST CDT MDT|6V.E 70 60 50 60|0121212323241414141414141414141414141414141414141414141414141414141414141414141414141414141|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 2zQN0 1lb0 14p0 1lb0 14q0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 U10 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|23e3","America/Pangnirtung|-00 AST AWT APT ADDT ADT EDT EST CST CDT|0 40 30 30 20 30 40 50 60 50|012314151515151515151515151515151515167676767689767676767676767676767676767676767676767676767676767676767676767676767676767|-1XiM0 PnG0 8x50 iu0 LCL0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1o00 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11C0 1nX0 11A0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|14e2","America/Paramaribo|LMT PMT PMT -0330 -03|3E.E 3E.Q 3E.A 3u 30|01234|-2nDUj.k Wqo0.c qanX.I 1yVXN.o|24e4","America/Port-au-Prince|PPMT EST EDT|4N 50 40|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-28RHb 2FnMb 19X0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14q0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 i6n0 1nX0 11B0 1nX0 d430 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 3iN0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|23e5","America/Rio_Branco|LMT -05 -04|4v.c 50 40|01212121212121212121212121212121|-2glvs.M HdLs.M 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 NBd0 d5X0|31e4","America/Porto_Velho|LMT -04 -03|4f.A 40 30|012121212121212121212121212121|-2glvI.o HdKI.o 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0|37e4","America/Punta_Arenas|SMT -05 -04 -03|4G.K 50 40 30|0102021212121212121232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-2q2jh.e fJAh.e 5knG.K 1Vzh.e jRAG.K 1pbh.e 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 nHX0 op0 blz0 ko0 Qeo0 WL0 1zd0 On0 1ip0 11z0 1o10 11z0 1qN0 WL0 1ld0 14n0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0|","America/Rainy_River|CST CDT CWT CPT|60 50 50 50|010123010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-25TQ0 1in0 Rnb0 3je0 8x30 iw0 19yN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|842","America/Rankin_Inlet|-00 CST CDDT CDT EST|0 60 40 50 50|012131313131313131313131313131313131313131313431313131313131313131313131313131313131313131313131313131313131313131313131|-vDc0 keu0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|26e2","America/Recife|LMT -03 -02|2j.A 30 20|0121212121212121212121212121212121212121|-2glxE.o HdLE.o 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 nsp0 WL0 1tB0 2L0 2pB0 On0|33e5","America/Regina|LMT MST MDT MWT MPT CST|6W.A 70 60 60 60 60|012121212121212121212121341212121212121212121212121215|-2AD51.o uHe1.o 1in0 s2L0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 66N0 1cL0 1cN0 19X0 1fB0 1cL0 1fB0 1cL0 1cN0 1cL0 M30 8x20 ix0 1ip0 1cL0 1ip0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 3NB0 1cL0 1cN0|19e4","America/Resolute|-00 CST CDDT CDT EST|0 60 40 50 50|012131313131313131313131313131313131313131313431313131313431313131313131313131313131313131313131313131313131313131313131|-SnA0 GWS0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|229","America/Santarem|LMT -04 -03|3C.M 40 30|0121212121212121212121212121212|-2glwl.c HdLl.c 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 NBd0|21e4","America/Santiago|SMT -05 -04 -03|4G.K 50 40 30|010202121212121212321232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-2q2jh.e fJAh.e 5knG.K 1Vzh.e jRAG.K 1pbh.e 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 nHX0 op0 9Bz0 jb0 1oN0 ko0 Qeo0 WL0 1zd0 On0 1ip0 11z0 1o10 11z0 1qN0 WL0 1ld0 14n0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1zb0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0|62e5","America/Santo_Domingo|SDMT EST EDT -0430 AST|4E 50 40 4u 40|01213131313131414|-1ttjk 1lJMk Mn0 6sp0 Lbu 1Cou yLu 1RAu wLu 1QMu xzu 1Q0u xXu 1PAu 13jB0 e00|29e5","America/Sao_Paulo|LMT -03 -02|36.s 30 20|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glwR.w HdKR.w 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 pTd0 PX0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 1C10 Lz0 1Ip0 HX0 1zd0 On0 1HB0 IL0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 Rb0 1zd0 Lz0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 On0 1zd0 On0 1HB0 FX0|20e6","America/Scoresbysund|LMT -02 -01 +00|1r.Q 20 10 0|0121323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-2a5Ww.8 2z5ew.8 1a00 1cK0 1cL0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|452","America/Sitka|PST PWT PPT PDT YST AKST AKDT|80 70 70 70 90 90 80|01203030303030303030303030303030345656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565|-17T20 8x10 iy0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 co0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|90e2","America/St_Johns|NST NDT NST NDT NWT NPT NDDT|3u.Q 2u.Q 3u 2u 2u 2u 1u|01010101010101010101010101010101010102323232323232324523232323232323232323232323232323232323232323232323232323232323232323232323232323232326232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-28oit.8 14L0 1nB0 1in0 1gm0 Dz0 1JB0 1cL0 1cN0 1cL0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 1cL0 1cN0 1cL0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 1cL0 1fB0 19X0 1fB0 19X0 10O0 eKX.8 19X0 1iq0 WL0 1qN0 WL0 1qN0 WL0 1tB0 TX0 1tB0 WL0 1qN0 WL0 1qN0 7UHu itu 1tB0 WL0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1tB0 WL0 1ld0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14n1 1lb0 14p0 1nW0 11C0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zcX Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|11e4","America/Swift_Current|LMT MST MDT MWT MPT CST|7b.k 70 60 60 60 60|012134121212121212121215|-2AD4M.E uHdM.E 1in0 UGp0 8x20 ix0 1o10 17b0 1ip0 11z0 1o10 11z0 1o10 11z0 isN0 1cL0 3Cp0 1cL0 1cN0 11z0 1qN0 WL0 pMp0|16e3","America/Tegucigalpa|LMT CST CDT|5M.Q 60 50|01212121|-1WGGb.8 2ETcb.8 WL0 1qN0 WL0 GRd0 AL0|11e5","America/Thule|LMT AST ADT|4z.8 40 30|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2a5To.Q 31NBo.Q 1cL0 1cN0 1cL0 1fB0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|656","America/Thunder_Bay|CST EST EWT EPT EDT|60 50 40 40 40|0123141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141|-2q5S0 1iaN0 8x40 iv0 XNB0 1cL0 1cN0 1fz0 1cN0 1cL0 3Cp0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|11e4","America/Vancouver|PST PDT PWT PPT|80 70 70 70|0102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-25TO0 1in0 UGp0 8x10 iy0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|23e5","America/Whitehorse|YST YDT YWT YPT YDDT PST PDT MST|90 80 80 80 70 80 70 70|010102304056565656565656565656565656565656565656565656565656565656565656565656565656565656567|-25TN0 1in0 1o10 13V0 Ser0 8x00 iz0 LCL0 1fA0 3NA0 vrd0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1z90|23e3","America/Winnipeg|CST CDT CWT CPT|60 50 50 50|010101023010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aIi0 WL0 3ND0 1in0 Jap0 Rb0 aCN0 8x30 iw0 1tB0 11z0 1ip0 11z0 1o10 11z0 1o10 11z0 1rd0 10L0 1op0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 1cL0 1cN0 11z0 6i10 WL0 6i10 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1a00 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1a00 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|66e4","America/Yakutat|YST YWT YPT YDT AKST AKDT|90 80 80 80 90 80|01203030303030303030303030303030304545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-17T10 8x00 iz0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cn0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|642","America/Yellowknife|-00 MST MWT MPT MDDT MDT|0 70 60 60 50 60|012314151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151|-1pdA0 hix0 8x20 ix0 LCL0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|19e3","Antarctica/Casey|-00 +08 +11|0 -80 -b0|0121212121212|-2q00 1DjS0 T90 40P0 KL0 blz0 3m10 1o30 14k0 1kr0 12l0 1o01|10","Antarctica/Davis|-00 +07 +05|0 -70 -50|01012121|-vyo0 iXt0 alj0 1D7v0 VB0 3Wn0 KN0|70","Pacific/Port_Moresby|+10|-a0|0||25e4","Antarctica/Macquarie|AEST AEDT -00|-a0 -b0 0|010201010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-29E80 1a00 4SK0 1ayy0 Lvs0 1cM0 1o00 Rc0 1wo0 Rc0 1wo0 U00 1wo0 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1qM0 WM0 1qM0 Oo0 1zc0 Oo0 1zc0 Oo0 1wo0 WM0 1tA0 WM0 1tA0 U00 1tA0 U00 1tA0 11A0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 11A0 1o00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1cM0 1cM0 3Co0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|1","Antarctica/Mawson|-00 +06 +05|0 -60 -50|012|-CEo0 2fyk0|60","Pacific/Auckland|NZMT NZST NZST NZDT|-bu -cu -c0 -d0|01020202020202020202020202023232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-1GCVu Lz0 1tB0 11zu 1o0u 11zu 1o0u 11zu 1o0u 14nu 1lcu 14nu 1lcu 1lbu 11Au 1nXu 11Au 1nXu 11Au 1nXu 11Au 1nXu 11Au 1qLu WMu 1qLu 11Au 1n1bu IM0 1C00 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1qM0 14o0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1io0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00|14e5","Antarctica/Palmer|-00 -03 -04 -02|0 30 40 20|0121212121213121212121212121212121212121212121212121212121212121212121212121212121|-cao0 nD0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 jsN0 14N0 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0|40","Antarctica/Rothera|-00 -03|0 30|01|gOo0|130","Asia/Riyadh|LMT +03|-36.Q -30|01|-TvD6.Q|57e5","Antarctica/Troll|-00 +00 +02|0 0 -20|01212121212121212121212121212121212121212121212121212121212121212121|1puo0 hd0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|40","Antarctica/Vostok|-00 +06|0 -60|01|-tjA0|25","Europe/Oslo|CET CEST|-10 -20|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2awM0 Qm0 W6o0 5pf0 WM0 1fA0 1cM0 1cM0 1cM0 1cM0 wJc0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1qM0 WM0 zpc0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|62e4","Asia/Almaty|LMT +05 +06 +07|-57.M -50 -60 -70|012323232323232323232321232323232323232323232323232|-1Pc57.M eUo7.M 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0|15e5","Asia/Amman|LMT EET EEST|-2n.I -20 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1yW2n.I 1HiMn.I KL0 1oN0 11b0 1oN0 11b0 1pd0 1dz0 1cp0 11b0 1op0 11b0 fO10 1db0 1e10 1cL0 1cN0 1cL0 1cN0 1fz0 1pd0 10n0 1ld0 14n0 1hB0 15b0 1ip0 19X0 1cN0 1cL0 1cN0 17b0 1ld0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1So0 y00 1fc0 1dc0 1co0 1dc0 1cM0 1cM0 1cM0 1o00 11A0 1lc0 17c0 1cM0 1cM0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 4bX0 Dd0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 LA0 1C00 LA0 1C00 Oo0 1zc0 Oo0 1C00 LA0 1C00 LA0 1C00 LA0 1C00 LA0 1C00 Oo0 1zc0 Oo0 1C00 LA0 1C00 LA0 1C00 LA0 1C00 LA0 1C00 Oo0 1C00 LA0 1C00|25e5","Asia/Anadyr|LMT +12 +13 +14 +11|-bN.U -c0 -d0 -e0 -b0|01232121212121212121214121212121212121212121212121212121212141|-1PcbN.U eUnN.U 23CL0 1db0 2q10 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|13e3","Asia/Aqtau|LMT +04 +05 +06|-3l.4 -40 -50 -60|012323232323232323232123232312121212121212121212|-1Pc3l.4 eUnl.4 24PX0 2pX0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0|15e4","Asia/Aqtobe|LMT +04 +05 +06|-3M.E -40 -50 -60|0123232323232323232321232323232323232323232323232|-1Pc3M.E eUnM.E 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0|27e4","Asia/Ashgabat|LMT +04 +05 +06|-3R.w -40 -50 -60|0123232323232323232323212|-1Pc3R.w eUnR.w 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0|41e4","Asia/Atyrau|LMT +03 +05 +06 +04|-3r.I -30 -50 -60 -40|01232323232323232323242323232323232324242424242|-1Pc3r.I eUor.I 24PW0 2pX0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 2sp0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0|","Asia/Baghdad|BMT +03 +04|-2V.A -30 -40|012121212121212121212121212121212121212121212121212121|-26BeV.A 2ACnV.A 11b0 1cp0 1dz0 1dd0 1db0 1cN0 1cp0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1de0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0|66e5","Asia/Qatar|LMT +04 +03|-3q.8 -40 -30|012|-21Jfq.8 27BXq.8|96e4","Asia/Baku|LMT +03 +04 +05|-3j.o -30 -40 -50|01232323232323232323232123232323232323232323232323232323232323232|-1Pc3j.o 1jUoj.o WCL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 1cM0 9Je0 1o00 11z0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|27e5","Asia/Bangkok|BMT +07|-6G.4 -70|01|-218SG.4|15e6","Asia/Barnaul|LMT +06 +07 +08|-5z -60 -70 -80|0123232323232323232323212323232321212121212121212121212121212121212|-21S5z pCnz 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 p90 LE0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0|","Asia/Beirut|EET EEST|-20 -30|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-21aq0 1on0 1410 1db0 19B0 1in0 1ip0 WL0 1lQp0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 11b0 q6N0 En0 1oN0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 11b0 1op0 11b0 dA10 17b0 1iN0 17b0 1iN0 17b0 1iN0 17b0 1vB0 SL0 1mp0 13z0 1iN0 17b0 1iN0 17b0 1jd0 12n0 1a10 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0|22e5","Asia/Bishkek|LMT +05 +06 +07|-4W.o -50 -60 -70|012323232323232323232321212121212121212121212121212|-1Pc4W.o eUnW.o 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2e00 1tX0 17b0 1ip0 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1cPu 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0|87e4","Asia/Brunei|LMT +0730 +08|-7D.E -7u -80|012|-1KITD.E gDc9.E|42e4","Asia/Kolkata|MMT IST +0630|-5l.a -5u -6u|012121|-2zOtl.a 1r2LP.a 1un0 HB0 7zX0|15e6","Asia/Chita|LMT +08 +09 +10|-7x.Q -80 -90 -a0|012323232323232323232321232323232323232323232323232323232323232312|-21Q7x.Q pAnx.Q 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3re0|33e4","Asia/Choibalsan|LMT +07 +08 +10 +09|-7C -70 -80 -a0 -90|0123434343434343434343434343434343434343434343424242|-2APHC 2UkoC cKn0 1da0 1dd0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 6hD0 11z0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 3Db0 h1f0 1cJ0 1cP0 1cJ0|38e3","Asia/Shanghai|CST CDT|-80 -90|01010101010101010101010101010|-23uw0 18n0 OjB0 Rz0 11d0 1wL0 A10 8HX0 1G10 Tz0 1ip0 1jX0 1cN0 11b0 1oN0 aL0 1tU30 Rb0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0|23e6","Asia/Colombo|MMT +0530 +06 +0630|-5j.w -5u -60 -6u|01231321|-2zOtj.w 1rFbN.w 1zzu 7Apu 23dz0 11zu n3cu|22e5","Asia/Dhaka|HMT +0630 +0530 +06 +07|-5R.k -6u -5u -60 -70|0121343|-18LFR.k 1unn.k HB0 m6n0 2kxbu 1i00|16e6","Asia/Damascus|LMT EET EEST|-2p.c -20 -30|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-21Jep.c Hep.c 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1xRB0 11X0 1oN0 10L0 1pB0 11b0 1oN0 10L0 1mp0 13X0 1oN0 11b0 1pd0 11b0 1oN0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 Nb0 1AN0 Nb0 bcp0 19X0 1gp0 19X0 3ld0 1xX0 Vd0 1Bz0 Sp0 1vX0 10p0 1dz0 1cN0 1cL0 1db0 1db0 1g10 1an0 1ap0 1db0 1fd0 1db0 1cN0 1db0 1dd0 1db0 1cp0 1dz0 1c10 1dX0 1cN0 1db0 1dd0 1db0 1cN0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1db0 1cN0 1db0 1cN0 19z0 1fB0 1qL0 11B0 1on0 Wp0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0|26e5","Asia/Dili|LMT +08 +09|-8m.k -80 -90|01212|-2le8m.k 1dnXm.k 1nfA0 Xld0|19e4","Asia/Dubai|LMT +04|-3F.c -40|01|-21JfF.c|39e5","Asia/Dushanbe|LMT +05 +06 +07|-4z.c -50 -60 -70|012323232323232323232321|-1Pc4z.c eUnz.c 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2hB0|76e4","Asia/Famagusta|LMT EET EEST +03|-2f.M -20 -30 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212312121212121212121212121212121212121212121|-1Vc2f.M 2a3cf.M 1cL0 1qp0 Xz0 19B0 19X0 1fB0 1db0 1cp0 1cL0 1fB0 19X0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1o30 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 15U0 2Ks0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|","Asia/Gaza|EET EEST IST IDT|-20 -30 -20 -30|010101010101010101010101010101010123232323232323232323232323232320101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-1c2o0 MM0 iM0 4JA0 10o0 1pA0 10M0 1pA0 16o0 1jA0 16o0 1jA0 pBa0 Vz0 1oN0 11b0 1oO0 10N0 1pz0 10N0 1pb0 10N0 1pb0 10N0 1pb0 10N0 1pz0 10N0 1pb0 10N0 1pb0 11d0 1oL0 dW0 hfB0 Db0 1fB0 Rb0 bXB0 gM0 8Q00 IM0 1wo0 TX0 1HB0 IL0 1s10 10n0 1o10 WL0 1zd0 On0 1ld0 11z0 1o10 14n0 1o10 14n0 1nd0 12n0 1nd0 Xz0 1q10 12n0 M10 C00 17c0 1io0 17c0 1io0 17c0 1o00 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 17c0 1io0 18N0 1bz0 19z0 1gp0 1610 1iL0 11z0 1o10 14o0 1lA1 SKX 1xd1 MKX 1AN0 1a00 1fA0 1cL0 1cN0 1nX0 1210 1nA0 1210 1qL0 WN0 1qL0 WN0 1qL0 11c0 1on0 11B0 1o00 11A0 1qo0 Xc0 1qo0 Xc0 1qo0 1200 1nA0 1200 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 1200 1nA0 1200 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 1200 1qo0 Xc0 1qo0|18e5","Asia/Hebron|EET EEST IST IDT|-20 -30 -20 -30|01010101010101010101010101010101012323232323232323232323232323232010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-1c2o0 MM0 iM0 4JA0 10o0 1pA0 10M0 1pA0 16o0 1jA0 16o0 1jA0 pBa0 Vz0 1oN0 11b0 1oO0 10N0 1pz0 10N0 1pb0 10N0 1pb0 10N0 1pb0 10N0 1pz0 10N0 1pb0 10N0 1pb0 11d0 1oL0 dW0 hfB0 Db0 1fB0 Rb0 bXB0 gM0 8Q00 IM0 1wo0 TX0 1HB0 IL0 1s10 10n0 1o10 WL0 1zd0 On0 1ld0 11z0 1o10 14n0 1o10 14n0 1nd0 12n0 1nd0 Xz0 1q10 12n0 M10 C00 17c0 1io0 17c0 1io0 17c0 1o00 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 17c0 1io0 18N0 1bz0 19z0 1gp0 1610 1iL0 12L0 1mN0 14o0 1lc0 Tb0 1xd1 MKX bB0 cn0 1cN0 1a00 1fA0 1cL0 1cN0 1nX0 1210 1nA0 1210 1qL0 WN0 1qL0 WN0 1qL0 11c0 1on0 11B0 1o00 11A0 1qo0 Xc0 1qo0 Xc0 1qo0 1200 1nA0 1200 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 1200 1nA0 1200 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 1200 1qo0 Xc0 1qo0|25e4","Asia/Ho_Chi_Minh|LMT PLMT +07 +08 +09|-76.E -76.u -70 -80 -90|0123423232|-2yC76.E bK00.a 1h7b6.u 5lz0 18o0 3Oq0 k5b0 aW00 BAM0|90e5","Asia/Hong_Kong|LMT HKT HKST HKWT JST|-7A.G -80 -90 -8u -90|0123412121212121212121212121212121212121212121212121212121212121212121|-2CFH0 1taO0 Hc0 xUu 9tBu 11z0 1tDu Rc0 1wo0 11A0 1cM0 11A0 1o00 11A0 1o00 11A0 1o00 14o0 1o00 11A0 1nX0 U10 1tz0 U10 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 U10 1tz0 U10 1wn0 Rd0 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 17d0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 s10 1Vz0 1cN0 1cL0 1cN0 1cL0 6fd0 14n0|73e5","Asia/Hovd|LMT +06 +07 +08|-66.A -60 -70 -80|012323232323232323232323232323232323232323232323232|-2APG6.A 2Uko6.A cKn0 1db0 1dd0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 6hD0 11z0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 kEp0 1cJ0 1cP0 1cJ0|81e3","Asia/Irkutsk|IMT +07 +08 +09|-6V.5 -70 -80 -90|01232323232323232323232123232323232323232323232323232323232323232|-21zGV.5 pjXV.5 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|60e4","Europe/Istanbul|IMT EET EEST +03 +04|-1U.U -20 -30 -30 -40|0121212121212121212121212121212121212121212121234312121212121212121212121212121212121212121212121212121212121212123|-2ogNU.U dzzU.U 11b0 8tB0 1on0 1410 1db0 19B0 1in0 3Rd0 Un0 1oN0 11b0 zSN0 CL0 mp0 1Vz0 1gN0 8yn0 1yp0 ML0 1kp0 17b0 1ip0 17b0 1fB0 19X0 1ip0 19X0 1ip0 17b0 qdB0 38L0 1jd0 Tz0 l6O0 11A0 WN0 1qL0 TB0 1tX0 U10 1tz0 11B0 1in0 17d0 z90 cne0 pb0 2Cp0 1800 14o0 1dc0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1a00 1fA0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WO0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 Xc0 1qo0 WM0 1qM0 11A0 1o00 1200 1nA0 11A0 1tA0 U00 15w0|13e6","Asia/Jakarta|BMT +0720 +0730 +09 +08 WIB|-77.c -7k -7u -90 -80 -70|01232425|-1Q0Tk luM0 mPzO 8vWu 6kpu 4PXu xhcu|31e6","Asia/Jayapura|LMT +09 +0930 WIT|-9m.M -90 -9u -90|0123|-1uu9m.M sMMm.M L4nu|26e4","Asia/Jerusalem|JMT IST IDT IDDT|-2k.E -20 -30 -40|01212121212121321212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-26Bek.E SyOk.E MM0 iM0 4JA0 10o0 1pA0 10M0 1pA0 16o0 1jA0 16o0 1jA0 3LA0 Eo0 oo0 1co0 1dA0 16o0 10M0 1jc0 1tA0 14o0 1cM0 1a00 11A0 1Nc0 Ao0 1Nc0 Ao0 1Ko0 LA0 1o00 WM0 EQK0 Db0 1fB0 Rb0 bXB0 gM0 8Q00 IM0 1wo0 TX0 1HB0 IL0 1s10 10n0 1o10 WL0 1zd0 On0 1ld0 11z0 1o10 14n0 1o10 14n0 1nd0 12n0 1nd0 Xz0 1q10 12n0 1hB0 1dX0 1ep0 1aL0 1eN0 17X0 1nf0 11z0 1tB0 19W0 1e10 17b0 1ep0 1gL0 18N0 1fz0 1eN0 17b0 1gq0 1gn0 19d0 1dz0 1c10 17X0 1hB0 1gn0 19d0 1dz0 1c10 17X0 1kp0 1dz0 1c10 1aL0 1eN0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0|81e4","Asia/Kabul|+04 +0430|-40 -4u|01|-10Qs0|46e5","Asia/Kamchatka|LMT +11 +12 +13|-ay.A -b0 -c0 -d0|012323232323232323232321232323232323232323232323232323232323212|-1SLKy.A ivXy.A 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|18e4","Asia/Karachi|LMT +0530 +0630 +05 PKT PKST|-4s.c -5u -6u -50 -50 -60|012134545454|-2xoss.c 1qOKW.c 7zX0 eup0 LqMu 1fy00 1cL0 dK10 11b0 1610 1jX0|24e6","Asia/Urumqi|LMT +06|-5O.k -60|01|-1GgtO.k|32e5","Asia/Kathmandu|LMT +0530 +0545|-5F.g -5u -5J|012|-21JhF.g 2EGMb.g|12e5","Asia/Khandyga|LMT +08 +09 +10 +11|-92.d -80 -90 -a0 -b0|0123232323232323232323212323232323232323232323232343434343434343432|-21Q92.d pAp2.d 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 qK0 yN0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 17V0 7zD0|66e2","Asia/Krasnoyarsk|LMT +06 +07 +08|-6b.q -60 -70 -80|01232323232323232323232123232323232323232323232323232323232323232|-21Hib.q prAb.q 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|10e5","Asia/Kuala_Lumpur|SMT +07 +0720 +0730 +09 +08|-6T.p -70 -7k -7u -90 -80|0123435|-2Bg6T.p 17anT.p l5XE 17bO 8Fyu 1so1u|71e5","Asia/Kuching|LMT +0730 +08 +0820 +09|-7l.k -7u -80 -8k -90|0123232323232323242|-1KITl.k gDbP.k 6ynu AnE 1O0k AnE 1NAk AnE 1NAk AnE 1NAk AnE 1O0k AnE 1NAk AnE pAk 8Fz0|13e4","Asia/Macau|LMT CST +09 +10 CDT|-7y.a -80 -90 -a0 -90|012323214141414141414141414141414141414141414141414141414141414141414141|-2CFHy.a 1uqKy.a PX0 1kn0 15B0 11b0 4Qq0 1oM0 11c0 1ko0 1u00 11A0 1cM0 11c0 1o00 11A0 1o00 11A0 1oo0 1400 1o00 11A0 1o00 U00 1tA0 U00 1wo0 Rc0 1wru U10 1tz0 U10 1tz0 U10 1tz0 U10 1wn0 Rd0 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 17d0 1cK0 1cO0 1cK0 1cO0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 s10 1Vz0 1cN0 1cL0 1cN0 1cL0 6fd0 14n0|57e4","Asia/Magadan|LMT +10 +11 +12|-a3.c -a0 -b0 -c0|012323232323232323232321232323232323232323232323232323232323232312|-1Pca3.c eUo3.c 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3Cq0|95e3","Asia/Makassar|LMT MMT +08 +09 WITA|-7V.A -7V.A -80 -90 -80|01234|-21JjV.A vfc0 myLV.A 8ML0|15e5","Asia/Manila|PST PDT JST|-80 -90 -90|010201010|-1kJI0 AL0 cK10 65X0 mXB0 vX0 VK10 1db0|24e6","Asia/Nicosia|LMT EET EEST|-2d.s -20 -30|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1Vc2d.s 2a3cd.s 1cL0 1qp0 Xz0 19B0 19X0 1fB0 1db0 1cp0 1cL0 1fB0 19X0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1o30 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|32e4","Asia/Novokuznetsk|LMT +06 +07 +08|-5M.M -60 -70 -80|012323232323232323232321232323232323232323232323232323232323212|-1PctM.M eULM.M 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|55e4","Asia/Novosibirsk|LMT +06 +07 +08|-5v.E -60 -70 -80|0123232323232323232323212323212121212121212121212121212121212121212|-21Qnv.E pAFv.E 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 ml0 Os0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 4eN0|15e5","Asia/Omsk|LMT +05 +06 +07|-4R.u -50 -60 -70|01232323232323232323232123232323232323232323232323232323232323232|-224sR.u pMLR.u 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|12e5","Asia/Oral|LMT +03 +05 +06 +04|-3p.o -30 -50 -60 -40|01232323232323232424242424242424242424242424242|-1Pc3p.o eUop.o 23CK0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 1cM0 1cM0 IM0 1EM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0|27e4","Asia/Pontianak|LMT PMT +0730 +09 +08 WITA WIB|-7h.k -7h.k -7u -90 -80 -80 -70|012324256|-2ua7h.k XE00 munL.k 8Rau 6kpu 4PXu xhcu Wqnu|23e4","Asia/Pyongyang|LMT KST JST KST|-8n -8u -90 -90|012313|-2um8n 97XR 1lTzu 2Onc0 6BA0|29e5","Asia/Qostanay|LMT +04 +05 +06|-4e.s -40 -50 -60|012323232323232323232123232323232323232323232323|-1Pc4e.s eUoe.s 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0|","Asia/Qyzylorda|LMT +04 +05 +06|-4l.Q -40 -50 -60|01232323232323232323232323232323232323232323232|-1Pc4l.Q eUol.Q 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 3ao0 1EM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 zQl0|73e4","Asia/Rangoon|RMT +0630 +09|-6o.L -6u -90|0121|-21Jio.L SmnS.L 7j9u|48e5","Asia/Sakhalin|LMT +09 +11 +12 +10|-9u.M -90 -b0 -c0 -a0|01232323232323232323232423232323232424242424242424242424242424242|-2AGVu.M 1BoMu.M 1qFa0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 2pB0 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0|58e4","Asia/Samarkand|LMT +04 +05 +06|-4r.R -40 -50 -60|01232323232323232323232|-1Pc4r.R eUor.R 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0|36e4","Asia/Seoul|LMT KST JST KST KDT KDT|-8r.Q -8u -90 -90 -a0 -9u|012343434343151515151515134343|-2um8r.Q 97XV.Q 1m1zu 6CM0 Fz0 1kN0 14n0 1kN0 14L0 1zd0 On0 69B0 2I0u OL0 1FB0 Rb0 1qN0 TX0 1tB0 TX0 1tB0 TX0 1tB0 TX0 2ap0 12FBu 11A0 1o00 11A0|23e6","Asia/Srednekolymsk|LMT +10 +11 +12|-ae.Q -a0 -b0 -c0|01232323232323232323232123232323232323232323232323232323232323232|-1Pcae.Q eUoe.Q 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|35e2","Asia/Taipei|CST JST CDT|-80 -90 -90|01020202020202020202020202020202020202020|-1iw80 joM0 1yo0 Tz0 1ip0 1jX0 1cN0 11b0 1oN0 11b0 1oN0 11b0 1oN0 11b0 10N0 1BX0 10p0 1pz0 10p0 1pz0 10p0 1db0 1dd0 1db0 1cN0 1db0 1cN0 1db0 1cN0 1db0 1BB0 ML0 1Bd0 ML0 uq10 1db0 1cN0 1db0 97B0 AL0|74e5","Asia/Tashkent|LMT +05 +06 +07|-4B.b -50 -60 -70|012323232323232323232321|-1Pc4B.b eUnB.b 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0|23e5","Asia/Tbilisi|TBMT +03 +04 +05|-2X.b -30 -40 -50|0123232323232323232323212121232323232323232323212|-1Pc2X.b 1jUnX.b WCL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 1cK0 1cL0 1cN0 1cL0 1cN0 2pz0 1cL0 1fB0 3Nz0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 An0 Os0 WM0|11e5","Asia/Tehran|LMT TMT +0330 +04 +05 +0430|-3p.I -3p.I -3u -40 -50 -4u|01234325252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252|-2btDp.I 1d3c0 1huLT.I TXu 1pz0 sN0 vAu 1cL0 1dB0 1en0 pNB0 UL0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 64p0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0|14e6","Asia/Thimphu|LMT +0530 +06|-5W.A -5u -60|012|-Su5W.A 1BGMs.A|79e3","Asia/Tokyo|JST JDT|-90 -a0|010101010|-QJJ0 Rc0 1lc0 14o0 1zc0 Oo0 1zc0 Oo0|38e6","Asia/Tomsk|LMT +06 +07 +08|-5D.P -60 -70 -80|0123232323232323232323212323232323232323232323212121212121212121212|-21NhD.P pxzD.P 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 co0 1bB0 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3Qp0|10e5","Asia/Ulaanbaatar|LMT +07 +08 +09|-77.w -70 -80 -90|012323232323232323232323232323232323232323232323232|-2APH7.w 2Uko7.w cKn0 1db0 1dd0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 6hD0 11z0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 kEp0 1cJ0 1cP0 1cJ0|12e5","Asia/Ust-Nera|LMT +08 +09 +12 +11 +10|-9w.S -80 -90 -c0 -b0 -a0|012343434343434343434345434343434343434343434343434343434343434345|-21Q9w.S pApw.S 23CL0 1d90 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 17V0 7zD0|65e2","Asia/Vladivostok|LMT +09 +10 +11|-8L.v -90 -a0 -b0|01232323232323232323232123232323232323232323232323232323232323232|-1SJIL.v itXL.v 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|60e4","Asia/Yakutsk|LMT +08 +09 +10|-8C.W -80 -90 -a0|01232323232323232323232123232323232323232323232323232323232323232|-21Q8C.W pAoC.W 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|28e4","Asia/Yekaterinburg|LMT PMT +04 +05 +06|-42.x -3J.5 -40 -50 -60|012343434343434343434343234343434343434343434343434343434343434343|-2ag42.x 7mQh.s qBvJ.5 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|14e5","Asia/Yerevan|LMT +03 +04 +05|-2W -30 -40 -50|0123232323232323232323212121212323232323232323232323232323232|-1Pc2W 1jUnW WCL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 4RX0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0|13e5","Atlantic/Azores|HMT -02 -01 +00 WET|1S.w 20 10 0 0|0121212121212121212121212121212121212121212123212321232123212121212121212121212121212121212121212121232323232323232323232323232323234323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-2ldW0 aPX0 Sp0 LX0 1vc0 Tc0 1uM0 SM0 1vc0 Tc0 1vc0 SM0 1vc0 6600 1co0 3E00 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 3I00 17c0 1cM0 1cM0 3Fc0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 1tA0 1cM0 1dc0 1400 gL0 IM0 s10 U00 dX0 Rc0 pd0 Rc0 gL0 Oo0 pd0 Rc0 gL0 Oo0 pd0 14o0 1cM0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 qIl0 1cM0 1fA0 1cM0 1cM0 1cN0 1cL0 1cN0 1cM0 1cM0 1cM0 1cM0 1cN0 1cL0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cL0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|25e4","Atlantic/Bermuda|BMT BST AST ADT|4j.i 3j.i 40 30|010102323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-28p7E.G 1bb0 1i10 11X0 ru30 thbE.G 1PX0 11B0 1tz0 Rd0 1zb0 Op0 1zb0 3I10 Lz0 1EN0 FX0 1HB0 FX0 1Kp0 Db0 1Kp0 Db0 1Kp0 FX0 93d0 11z0 GAp0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|65e3","Atlantic/Canary|LMT -01 WET WEST|11.A 10 0 -10|01232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-1UtaW.o XPAW.o 1lAK0 1a10 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|54e4","Atlantic/Cape_Verde|LMT -02 -01|1y.4 20 10|01212|-2ldW0 1eEo0 7zX0 1djf0|50e4","Atlantic/Faroe|LMT WET WEST|r.4 0 -10|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2uSnw.U 2Wgow.U 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|49e3","Atlantic/Madeira|FMT -01 +00 +01 WET WEST|17.A 10 0 -10 0 -10|0121212121212121212121212121212121212121212123212321232123212121212121212121212121212121212121212121454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-2ldX0 aPX0 Sp0 LX0 1vc0 Tc0 1uM0 SM0 1vc0 Tc0 1vc0 SM0 1vc0 6600 1co0 3E00 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 3I00 17c0 1cM0 1cM0 3Fc0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 1tA0 1cM0 1dc0 1400 gL0 IM0 s10 U00 dX0 Rc0 pd0 Rc0 gL0 Oo0 pd0 Rc0 gL0 Oo0 pd0 14o0 1cM0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 qIl0 1cM0 1fA0 1cM0 1cM0 1cN0 1cL0 1cN0 1cM0 1cM0 1cM0 1cM0 1cN0 1cL0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|27e4","Atlantic/Reykjavik|LMT -01 +00 GMT|1s 10 0 0|012121212121212121212121212121212121212121212121212121212121212121213|-2uWmw mfaw 1Bd0 ML0 1LB0 Cn0 1LB0 3fX0 C10 HrX0 1cO0 LB0 1EL0 LA0 1C00 Oo0 1wo0 Rc0 1wo0 Rc0 1wo0 Rc0 1zc0 Oo0 1zc0 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1lc0 14o0 1o00 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1o00 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1o00 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1o00 14o0|12e4","Atlantic/South_Georgia|-02|20|0||30","Atlantic/Stanley|SMT -04 -03 -02|3P.o 40 30 20|012121212121212323212121212121212121212121212121212121212121212121212|-2kJw8.A 12bA8.A 19X0 1fB0 19X0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 Cn0 1Cc10 WL0 1qL0 U10 1tz0 2mN0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1tz0 U10 1tz0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1tz0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qN0 U10 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 U10 1tz0 U10 1tz0 U10 1wn0 U10 1tz0 U10 1tz0 U10|21e2","Australia/Sydney|AEST AEDT|-a0 -b0|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293k0 xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 14o0 1o00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1tA0 WM0 1tA0 U00 1tA0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 11A0 1o00 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|40e5","Australia/Adelaide|ACST ACDT|-9u -au|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293ju xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1tA0 WM0 1tA0 U00 1tA0 U00 1tA0 Oo0 1zc0 WM0 1qM0 Rc0 1zc0 U00 1tA0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|11e5","Australia/Brisbane|AEST AEDT|-a0 -b0|01010101010101010|-293k0 xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 H1A0 Oo0 1zc0 Oo0 1zc0 Oo0|20e5","Australia/Broken_Hill|ACST ACDT|-9u -au|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293ju xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 14o0 1o00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1tA0 WM0 1tA0 U00 1tA0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|18e3","Australia/Hobart|AEST AEDT|-a0 -b0|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-29E80 1a00 1qM0 Oo0 1zc0 Oo0 TAo0 yM0 1cM0 1cM0 1fA0 1a00 VfA0 1cM0 1o00 Rc0 1wo0 Rc0 1wo0 U00 1wo0 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1qM0 WM0 1qM0 Oo0 1zc0 Oo0 1zc0 Oo0 1wo0 WM0 1tA0 WM0 1tA0 U00 1tA0 U00 1tA0 11A0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 11A0 1o00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|21e4","Australia/Darwin|ACST ACDT|-9u -au|010101010|-293ju xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00|12e4","Australia/Eucla|+0845 +0945|-8J -9J|0101010101010101010|-293iJ xc0 10jc0 yM0 1cM0 1cM0 1gSo0 Oo0 l5A0 Oo0 iJA0 G00 zU00 IM0 1qM0 11A0 1o00 11A0|368","Australia/Lord_Howe|AEST +1030 +1130 +11|-a0 -au -bu -b0|0121212121313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313|raC0 1zdu Rb0 1zd0 On0 1zd0 On0 1zd0 On0 1zd0 TXu 1qMu WLu 1tAu WLu 1tAu TXu 1tAu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1zcu Onu 1zcu Onu 1zcu 11zu 1o0u 11zu 1o0u 11zu 1o0u 11zu 1qMu WLu 11Au 1nXu 1qMu 11zu 1o0u 11zu 1o0u 11zu 1qMu WLu 1qMu 11zu 1o0u WLu 1qMu 14nu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1fzu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu|347","Australia/Lindeman|AEST AEDT|-a0 -b0|010101010101010101010|-293k0 xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 H1A0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0|10","Australia/Melbourne|AEST AEDT|-a0 -b0|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293k0 xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1qM0 11A0 1tA0 U00 1tA0 U00 1tA0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 11A0 1o00 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|39e5","Australia/Perth|AWST AWDT|-80 -90|0101010101010101010|-293i0 xc0 10jc0 yM0 1cM0 1cM0 1gSo0 Oo0 l5A0 Oo0 iJA0 G00 zU00 IM0 1qM0 11A0 1o00 11A0|18e5","CET|CET CEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 16M0 1gMM0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|","Pacific/Easter|EMT -07 -06 -05|7h.s 70 60 50|012121212121212121212121212123232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-1uSgG.w 1s4IG.w WL0 1zd0 On0 1ip0 11z0 1o10 11z0 1qN0 WL0 1ld0 14n0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 2pA0 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1zb0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0|30e2","CST6CDT|CST CDT CWT CPT|60 50 50 50|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","EET|EET EEST|-20 -30|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|hDB0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|","Europe/Dublin|DMT IST GMT BST IST|p.l -y.D 0 -10 -10|01232323232324242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242|-2ax9y.D Rc0 1fzy.D 14M0 1fc0 1g00 1co0 1dc0 1co0 1oo0 1400 1dc0 19A0 1io0 1io0 WM0 1o00 14o0 1o00 17c0 1io0 17c0 1fA0 1a00 1lc0 17c0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1cM0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1io0 1qM0 Dc0 g600 14o0 1wo0 17c0 1io0 11A0 1o00 17c0 1fA0 1a00 1fA0 1cM0 1fA0 1a00 17c0 1fA0 1a00 1io0 17c0 1lc0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1a00 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1tA0 IM0 90o0 U00 1tA0 U00 1tA0 U00 1tA0 U00 1tA0 WM0 1qM0 WM0 1qM0 WM0 1tA0 U00 1tA0 U00 1tA0 11z0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 14o0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5","EST|EST|50|0||","EST5EDT|EST EDT EWT EPT|50 40 40 40|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261t0 1nX0 11B0 1nX0 SgN0 8x40 iv0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","Etc/GMT-0|GMT|0|0||","Etc/GMT-1|+01|-10|0||","Etc/GMT-11|+11|-b0|0||","Pacific/Tarawa|+12|-c0|0||29e3","Etc/GMT-13|+13|-d0|0||","Etc/GMT-14|+14|-e0|0||","Etc/GMT-2|+02|-20|0||","Etc/GMT-3|+03|-30|0||","Etc/GMT-4|+04|-40|0||","Etc/GMT-5|+05|-50|0||","Etc/GMT-6|+06|-60|0||","Indian/Christmas|+07|-70|0||21e2","Etc/GMT-8|+08|-80|0||","Pacific/Palau|+09|-90|0||21e3","Etc/GMT+1|-01|10|0||","Etc/GMT+10|-10|a0|0||","Etc/GMT+11|-11|b0|0||","Etc/GMT+12|-12|c0|0||","Etc/GMT+3|-03|30|0||","Etc/GMT+4|-04|40|0||","Etc/GMT+5|-05|50|0||","Etc/GMT+6|-06|60|0||","Etc/GMT+7|-07|70|0||","Etc/GMT+8|-08|80|0||","Etc/GMT+9|-09|90|0||","Etc/UTC|UTC|0|0||","Europe/Amsterdam|AMT NST +0120 +0020 CEST CET|-j.w -1j.w -1k -k -20 -10|010101010101010101010101010101010101010101012323234545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545|-2aFcj.w 11b0 1iP0 11A0 1io0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1co0 1io0 1yo0 Pc0 1a00 1fA0 1Bc0 Mo0 1tc0 Uo0 1tA0 U00 1uo0 W00 1s00 VA0 1so0 Vc0 1sM0 UM0 1wo0 Rc0 1u00 Wo0 1rA0 W00 1s00 VA0 1sM0 UM0 1w00 fV0 BCX.w 1tA0 U00 1u00 Wo0 1sm0 601k WM0 1fA0 1cM0 1cM0 1cM0 16M0 1gMM0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|16e5","Europe/Andorra|WET CET CEST|0 -10 -20|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-UBA0 1xIN0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|79e3","Europe/Astrakhan|LMT +03 +04 +05|-3c.c -30 -40 -50|012323232323232323212121212121212121212121212121212121212121212|-1Pcrc.c eUMc.c 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0|10e5","Europe/Athens|AMT EET EEST CEST CET|-1y.Q -20 -30 -20 -10|012123434121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2a61x.Q CNbx.Q mn0 kU10 9b0 3Es0 Xa0 1fb0 1dd0 k3X0 Nz0 SCp0 1vc0 SO0 1cM0 1a00 1ao0 1fc0 1a10 1fG0 1cg0 1dX0 1bX0 1cQ0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|35e5","Europe/London|GMT BST BDST|0 -10 -20|0101010101010101010101010101010101010101010101010121212121210101210101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2axa0 Rc0 1fA0 14M0 1fc0 1g00 1co0 1dc0 1co0 1oo0 1400 1dc0 19A0 1io0 1io0 WM0 1o00 14o0 1o00 17c0 1io0 17c0 1fA0 1a00 1lc0 17c0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1cM0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1io0 1qM0 Dc0 2Rz0 Dc0 1zc0 Oo0 1zc0 Rc0 1wo0 17c0 1iM0 FA0 xB0 1fA0 1a00 14o0 bb0 LA0 xB0 Rc0 1wo0 11A0 1o00 17c0 1fA0 1a00 1fA0 1cM0 1fA0 1a00 17c0 1fA0 1a00 1io0 17c0 1lc0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1a00 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1tA0 IM0 90o0 U00 1tA0 U00 1tA0 U00 1tA0 U00 1tA0 WM0 1qM0 WM0 1qM0 WM0 1tA0 U00 1tA0 U00 1tA0 11z0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 14o0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|10e6","Europe/Belgrade|CET CEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-19RC0 3IP0 WM0 1fA0 1cM0 1cM0 1rc0 Qo0 1vmo0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5","Europe/Berlin|CET CEST CEMT|-10 -20 -30|01010101010101210101210101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 kL0 Nc0 m10 WM0 1ao0 1cp0 dX0 jz0 Dd0 1io0 17c0 1fA0 1a00 1ehA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|41e5","Europe/Prague|CET CEST GMT|-10 -20 0|01010101010101010201010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 1cM0 1qM0 11c0 mp0 xA0 mn0 17c0 1io0 17c0 1fc0 1ao0 1bNc0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|13e5","Europe/Brussels|WET CET CEST WEST|0 -10 -20 -10|0121212103030303030303030303030303030303030303030303212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2ehc0 3zX0 11c0 1iO0 11A0 1o00 11A0 my0 Ic0 1qM0 Rc0 1EM0 UM0 1u00 10o0 1io0 1io0 17c0 1a00 1fA0 1cM0 1cM0 1io0 17c0 1fA0 1a00 1io0 1a30 1io0 17c0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 y00 5Wn0 WM0 1fA0 1cM0 16M0 1iM0 16M0 1C00 Uo0 1eeo0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|21e5","Europe/Bucharest|BMT EET EEST|-1I.o -20 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1xApI.o 20LI.o RA0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1Axc0 On0 1fA0 1a10 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cK0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cL0 1cN0 1cL0 1fB0 1nX0 11E0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|19e5","Europe/Budapest|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 1oo0 11c0 1lc0 17c0 O1V0 3Nf0 WM0 1fA0 1cM0 1cM0 1oJ0 1dd0 1020 1fX0 1cp0 1cM0 1cM0 1cM0 1fA0 1a00 bhy0 Rb0 1wr0 Rc0 1C00 LA0 1C00 LA0 SNW0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cO0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|17e5","Europe/Zurich|CET CEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-19Lc0 11A0 1o00 11A0 1xG10 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|38e4","Europe/Chisinau|CMT BMT EET EEST CEST CET MSK MSD|-1T -1I.o -20 -30 -20 -10 -30 -40|012323232323232323234545467676767676767676767323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-26jdT wGMa.A 20LI.o RA0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 27A0 2en0 39g0 WM0 1fA0 1cM0 V90 1t7z0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 gL0 WO0 1cM0 1cM0 1cK0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1nX0 11D0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|67e4","Europe/Copenhagen|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2azC0 Tz0 VuO0 60q0 WM0 1fA0 1cM0 1cM0 1cM0 S00 1HA0 Nc0 1C00 Dc0 1Nc0 Ao0 1h5A0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5","Europe/Gibraltar|GMT BST BDST CET CEST|0 -10 -20 -10 -20|010101010101010101010101010101010101010101010101012121212121010121010101010101010101034343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-2axa0 Rc0 1fA0 14M0 1fc0 1g00 1co0 1dc0 1co0 1oo0 1400 1dc0 19A0 1io0 1io0 WM0 1o00 14o0 1o00 17c0 1io0 17c0 1fA0 1a00 1lc0 17c0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1cM0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1io0 1qM0 Dc0 2Rz0 Dc0 1zc0 Oo0 1zc0 Rc0 1wo0 17c0 1iM0 FA0 xB0 1fA0 1a00 14o0 bb0 LA0 xB0 Rc0 1wo0 11A0 1o00 17c0 1fA0 1a00 1fA0 1cM0 1fA0 1a00 17c0 1fA0 1a00 1io0 17c0 1lc0 17c0 1fA0 10Jz0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|30e3","Europe/Helsinki|HMT EET EEST|-1D.N -20 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1WuND.N OULD.N 1dA0 1xGq0 1cM0 1cM0 1cM0 1cN0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5","Europe/Kaliningrad|CET CEST EET EEST MSK MSD +03|-10 -20 -20 -30 -30 -40 -30|01010101010101232454545454545454543232323232323232323232323232323232323232323262|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 390 7A0 1en0 12N0 1pbb0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|44e4","Europe/Kiev|KMT EET MSK CEST CET MSD EEST|-22.4 -20 -30 -20 -10 -40 -30|0123434252525252525252525256161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161|-1Pc22.4 eUo2.4 rnz0 2Hg0 WM0 1fA0 da0 1v4m0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 Db0 3220 1cK0 1cL0 1cN0 1cL0 1cN0 1cL0 1cQ0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|34e5","Europe/Kirov|LMT +03 +04 +05|-3i.M -30 -40 -50|01232323232323232321212121212121212121212121212121212121212121|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|48e4","Europe/Lisbon|LMT WET WEST WEMT CET CEST|A.J 0 -10 -20 -10 -20|01212121212121212121212121212121212121212121232123212321232121212121212121212121212121212121212121214121212121212121212121212121212124545454212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2le00 aPX0 Sp0 LX0 1vc0 Tc0 1uM0 SM0 1vc0 Tc0 1vc0 SM0 1vc0 6600 1co0 3E00 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 3I00 17c0 1cM0 1cM0 3Fc0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 1tA0 1cM0 1dc0 1400 gL0 IM0 s10 U00 dX0 Rc0 pd0 Rc0 gL0 Oo0 pd0 Rc0 gL0 Oo0 pd0 14o0 1cM0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 pvy0 1cM0 1cM0 1fA0 1cM0 1cM0 1cN0 1cL0 1cN0 1cM0 1cM0 1cM0 1cM0 1cN0 1cL0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|27e5","Europe/Luxembourg|LMT CET CEST WET WEST WEST WET|-o.A -10 -20 0 -10 -20 -10|0121212134343434343434343434343434343434343434343434565651212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2DG0o.A t6mo.A TB0 1nX0 Up0 1o20 11A0 rW0 CM0 1qP0 R90 1EO0 UK0 1u20 10m0 1ip0 1in0 17e0 19W0 1fB0 1db0 1cp0 1in0 17d0 1fz0 1a10 1in0 1a10 1in0 17f0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 vA0 60L0 WM0 1fA0 1cM0 17c0 1io0 16M0 1C00 Uo0 1eeo0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|54e4","Europe/Madrid|WET WEST WEMT CET CEST|0 -10 -20 -10 -20|010101010101010101210343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-25Td0 19B0 1cL0 1dd0 b1z0 18p0 3HX0 17d0 1fz0 1a10 1io0 1a00 1in0 17d0 iIn0 Hd0 1cL0 bb0 1200 2s20 14n0 5aL0 Mp0 1vz0 17d0 1in0 17d0 1in0 17d0 1in0 17d0 6hX0 11B0 XHX0 1a10 1fz0 1a10 19X0 1cN0 1fz0 1a10 1fC0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|62e5","Europe/Malta|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2arB0 Lz0 1cN0 1db0 1410 1on0 Wp0 1qL0 17d0 1cL0 M3B0 5M20 WM0 1fA0 1co0 17c0 1iM0 16m0 1de0 1lc0 14m0 1lc0 WO0 1qM0 GTW0 On0 1C10 LA0 1C00 LA0 1EM0 LA0 1C00 LA0 1zc0 Oo0 1C00 Oo0 1co0 1cM0 1lA0 Xc0 1qq0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1iN0 19z0 1fB0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|42e4","Europe/Minsk|MMT EET MSK CEST CET MSD EEST +03|-1O -20 -30 -20 -10 -40 -30 -30|01234343252525252525252525261616161616161616161616161616161616161617|-1Pc1O eUnO qNX0 3gQ0 WM0 1fA0 1cM0 Al0 1tsn0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 3Fc0 1cN0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0|19e5","Europe/Monaco|PMT WET WEST WEMT CET CEST|-9.l 0 -10 -20 -10 -20|01212121212121212121212121212121212121212121212121232323232345454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-2n5c9.l cFX9.l HA0 19A0 1iM0 11c0 1oo0 Wo0 1rc0 QM0 1EM0 UM0 1u00 10o0 1io0 1wo0 Rc0 1a00 1fA0 1cM0 1cM0 1io0 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Df0 2RV0 11z0 11B0 1ze0 WM0 1fA0 1cM0 1fa0 1aq0 16M0 1ekn0 1cL0 1fC0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|38e3","Europe/Moscow|MMT MMT MST MDST MSD MSK +05 EET EEST MSK|-2u.h -2v.j -3v.j -4v.j -40 -30 -50 -20 -30 -40|012132345464575454545454545454545458754545454545454545454545454545454545454595|-2ag2u.h 2pyW.W 1bA0 11X0 GN0 1Hb0 c4v.j ik0 3DA0 dz0 15A0 c10 2q10 iM10 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cN0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|16e6","Europe/Paris|PMT WET WEST CEST CET WEMT|-9.l 0 -10 -20 -10 -20|0121212121212121212121212121212121212121212121212123434352543434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434|-2nco9.l cNb9.l HA0 19A0 1iM0 11c0 1oo0 Wo0 1rc0 QM0 1EM0 UM0 1u00 10o0 1io0 1wo0 Rc0 1a00 1fA0 1cM0 1cM0 1io0 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Df0 Ik0 5M30 WM0 1fA0 1cM0 Vx0 hB0 1aq0 16M0 1ekn0 1cL0 1fC0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|11e6","Europe/Riga|RMT LST EET MSK CEST CET MSD EEST|-1A.y -2A.y -20 -30 -20 -10 -40 -30|010102345454536363636363636363727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272|-25TzA.y 11A0 1iM0 ko0 gWm0 yDXA.y 2bX0 3fE0 WM0 1fA0 1cM0 1cM0 4m0 1sLy0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cN0 1o00 11A0 1o00 11A0 1qM0 3oo0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|64e4","Europe/Rome|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2arB0 Lz0 1cN0 1db0 1410 1on0 Wp0 1qL0 17d0 1cL0 M3B0 5M20 WM0 1fA0 1cM0 16M0 1iM0 16m0 1de0 1lc0 14m0 1lc0 WO0 1qM0 GTW0 On0 1C10 LA0 1C00 LA0 1EM0 LA0 1C00 LA0 1zc0 Oo0 1C00 Oo0 1C00 LA0 1zc0 Oo0 1C00 LA0 1C00 LA0 1zc0 Oo0 1C00 Oo0 1zc0 Oo0 1fC0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|39e5","Europe/Samara|LMT +03 +04 +05|-3k.k -30 -40 -50|0123232323232323232121232323232323232323232323232323232323212|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 2y10 14m0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|12e5","Europe/Saratov|LMT +03 +04 +05|-34.i -30 -40 -50|012323232323232321212121212121212121212121212121212121212121212|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1cM0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 5810|","Europe/Simferopol|SMT EET MSK CEST CET MSD EEST MSK|-2g -20 -30 -20 -10 -40 -30 -40|012343432525252525252525252161616525252616161616161616161616161616161616172|-1Pc2g eUog rEn0 2qs0 WM0 1fA0 1cM0 3V0 1u0L0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1Q00 4eL0 1cL0 1cN0 1cL0 1cN0 dX0 WL0 1cN0 1cL0 1fB0 1o30 11B0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11z0 1nW0|33e4","Europe/Sofia|EET CET CEST EEST|-20 -10 -20 -30|01212103030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030|-168L0 WM0 1fA0 1cM0 1cM0 1cN0 1mKH0 1dd0 1fb0 1ap0 1fb0 1a20 1fy0 1a30 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cK0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1nX0 11E0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5","Europe/Stockholm|CET CEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2azC0 TB0 2yDe0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|15e5","Europe/Tallinn|TMT CET CEST EET MSK MSD EEST|-1D -10 -20 -20 -30 -40 -30|012103421212454545454545454546363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363|-26oND teD 11A0 1Ta0 4rXl KSLD 2FX0 2Jg0 WM0 1fA0 1cM0 18J0 1sTX0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o10 11A0 1qM0 5QM0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|41e4","Europe/Tirane|LMT CET CEST|-1j.k -10 -20|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glBj.k 14pcj.k 5LC0 WM0 4M0 1fCK0 10n0 1op0 11z0 1pd0 11z0 1qN0 WL0 1qp0 Xb0 1qp0 Xb0 1qp0 11z0 1lB0 11z0 1qN0 11z0 1iN0 16n0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|42e4","Europe/Ulyanovsk|LMT +03 +04 +05 +02|-3d.A -30 -40 -50 -20|01232323232323232321214121212121212121212121212121212121212121212|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0|13e5","Europe/Uzhgorod|CET CEST MSK MSD EET EEST|-10 -20 -30 -40 -20 -30|010101023232323232323232320454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-1cqL0 6i00 WM0 1fA0 1cM0 1ml0 1Cp0 1r3W0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1Q00 1Nf0 2pw0 1cL0 1cN0 1cL0 1cN0 1cL0 1cQ0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|11e4","Europe/Vienna|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 3KM0 14o0 LA00 6i00 WM0 1fA0 1cM0 1cM0 1cM0 400 2qM0 1ao0 1co0 1cM0 1io0 17c0 1gHa0 19X0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|18e5","Europe/Vilnius|WMT KMT CET EET MSK CEST MSD EEST|-1o -1z.A -10 -20 -30 -20 -40 -30|012324525254646464646464646473737373737373737352537373737373737373737373737373737373737373737373737373737373737373737373|-293do 6ILM.o 1Ooz.A zz0 Mfd0 29W0 3is0 WM0 1fA0 1cM0 LV0 1tgL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11B0 1o00 11A0 1qM0 8io0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|54e4","Europe/Volgograd|LMT +03 +04 +05|-2V.E -30 -40 -50|0123232323232323212121212121212121212121212121212121212121212121|-21IqV.E psLV.E 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1cM0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 9Jd0 5gn0|10e5","Europe/Warsaw|WMT CET CEST EET EEST|-1o -10 -20 -20 -30|012121234312121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2ctdo 1LXo 11d0 1iO0 11A0 1o00 11A0 1on0 11A0 6zy0 HWP0 5IM0 WM0 1fA0 1cM0 1dz0 1mL0 1en0 15B0 1aq0 1nA0 11A0 1io0 17c0 1fA0 1a00 iDX0 LA0 1cM0 1cM0 1C00 Oo0 1cM0 1cM0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1C00 LA0 uso0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|17e5","Europe/Zaporozhye|+0220 EET MSK CEST CET MSD EEST|-2k -20 -30 -20 -10 -40 -30|01234342525252525252525252526161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161|-1Pc2k eUok rdb0 2RE0 WM0 1fA0 8m0 1v9a0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cK0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cQ0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|77e4","HST|HST|a0|0||","Indian/Chagos|LMT +05 +06|-4N.E -50 -60|012|-2xosN.E 3AGLN.E|30e2","Indian/Cocos|+0630|-6u|0||596","Indian/Kerguelen|-00 +05|0 -50|01|-MG00|130","Indian/Mahe|LMT +04|-3F.M -40|01|-2xorF.M|79e3","Indian/Maldives|MMT +05|-4S -50|01|-olgS|35e4","Indian/Mauritius|LMT +04 +05|-3O -40 -50|012121|-2xorO 34unO 14L0 12kr0 11z0|15e4","Indian/Reunion|LMT +04|-3F.Q -40|01|-2mDDF.Q|84e4","Pacific/Kwajalein|+11 +10 +09 -12 +12|-b0 -a0 -90 c0 -c0|012034|-1kln0 akp0 6Up0 12ry0 Wan0|14e3","MET|MET MEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 16M0 1gMM0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|","MST|MST|70|0||","MST7MDT|MST MDT MWT MPT|70 60 60 60|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261r0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","Pacific/Chatham|+1215 +1245 +1345|-cf -cJ -dJ|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-WqAf 1adef IM0 1C00 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1qM0 14o0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1io0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00|600","Pacific/Apia|LMT -1130 -11 -10 +14 +13|bq.U bu b0 a0 -e0 -d0|01232345454545454545454545|-2nDMx.4 1yW03.4 2rRbu 1ff0 1a00 CI0 AQ0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0|37e3","Pacific/Bougainville|+10 +09 +11|-a0 -90 -b0|0102|-16Wy0 7CN0 2MQp0|18e4","Pacific/Chuuk|+10 +09|-a0 -90|01010|-2ewy0 axB0 RVX0 axd0|49e3","Pacific/Efate|LMT +11 +12|-bd.g -b0 -c0|012121212121212121212121|-2l9nd.g 2uNXd.g Dc0 n610 1cL0 1cN0 1cL0 1fB0 19X0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 Lz0 1Nd0 An0|66e3","Pacific/Enderbury|-00 -12 -11 +13|0 c0 b0 -d0|0123|-1iIo0 1GsA0 B7X0|1","Pacific/Fakaofo|-11 +13|b0 -d0|01|1Gfn0|483","Pacific/Fiji|LMT +12 +13|-bT.I -c0 -d0|01212121212121212121212121212121212121212121212121212121212121|-2bUzT.I 3m8NT.I LA0 1EM0 IM0 nJc0 LA0 1o00 Rc0 1wo0 Ao0 1Nc0 Ao0 1Q00 xz0 1SN0 uM0 1SM0 uM0 1VA0 s00 1VA0 s00 1VA0 s00 20o0 pc0 2hc0 bc0 4q00 pc0 20o0 pc0 20o0 pc0 20o0 s00 1VA0 s00 20o0 pc0 20o0 pc0 20o0 pc0 20o0 pc0 20o0 s00 20o0 pc0 20o0 pc0 20o0 pc0 20o0 pc0 20o0 s00 1VA0 s00|88e4","Pacific/Galapagos|LMT -05 -06|5W.o 50 60|01212|-1yVS1.A 2dTz1.A gNd0 rz0|25e3","Pacific/Gambier|LMT -09|8X.M 90|01|-2jof0.c|125","Pacific/Guadalcanal|LMT +11|-aD.M -b0|01|-2joyD.M|11e4","Pacific/Guam|GST +09 GDT ChST|-a0 -90 -b0 -a0|01020202020202020203|-18jK0 6pB0 AhB0 3QL0 g2p0 3p91 WOX rX0 1zd0 Rb0 1wp0 Rb0 5xd0 rX0 5sN0 zb1 1C0X On0 ULb0|17e4","Pacific/Honolulu|HST HDT HWT HPT HST|au 9u 9u 9u a0|0102304|-1thLu 8x0 lef0 8wWu iAu 46p0|37e4","Pacific/Kiritimati|-1040 -10 +14|aE a0 -e0|012|nIaE B7Xk|51e2","Pacific/Kosrae|+11 +09 +10 +12|-b0 -90 -a0 -c0|01021030|-2ewz0 axC0 HBy0 akp0 axd0 WOK0 1bdz0|66e2","Pacific/Majuro|+11 +09 +10 +12|-b0 -90 -a0 -c0|0102103|-2ewz0 axC0 HBy0 akp0 6RB0 12um0|28e3","Pacific/Marquesas|LMT -0930|9i 9u|01|-2joeG|86e2","Pacific/Pago_Pago|LMT SST|bm.M b0|01|-2nDMB.c|37e2","Pacific/Nauru|LMT +1130 +09 +12|-b7.E -bu -90 -c0|01213|-1Xdn7.E QCnB.E 7mqu 1lnbu|10e3","Pacific/Niue|LMT -1120 -11|bj.E bk b0|012|-FScE.k suo0.k|12e2","Pacific/Norfolk|+1112 +1130 +1230 +11 +12|-bc -bu -cu -b0 -c0|012134343434343434343434343434343434343434|-Kgbc W01G Oo0 1COo0 9Jcu 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|25e4","Pacific/Noumea|LMT +11 +12|-b5.M -b0 -c0|01212121|-2l9n5.M 2EqM5.M xX0 1PB0 yn0 HeP0 Ao0|98e3","Pacific/Pitcairn|-0830 -08|8u 80|01|18Vku|56","Pacific/Pohnpei|+11 +09 +10|-b0 -90 -a0|010210|-2ewz0 axC0 HBy0 akp0 axd0|34e3","Pacific/Rarotonga|LMT -1030 -0930 -10|aD.4 au 9u a0|0123232323232323232323232323|-FSdk.U 13tbO.U IL0 1zcu Onu 1zcu Onu 1zcu Rbu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1zcu Onu 1zcu Onu 1zcu Onu|13e3","Pacific/Tahiti|LMT -10|9W.g a0|01|-2joe1.I|18e4","Pacific/Tongatapu|LMT +1220 +13 +14|-cj.c -ck -d0 -e0|01232323232|-XbMj.c BgLX.c 1yndk 15A0 1wo0 xz0 1Q10 xz0 zWN0 s00|75e3","PST8PDT|PST PDT PWT PPT|80 70 70 70|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261q0 1nX0 11B0 1nX0 SgN0 8x10 iy0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","WET|WET WEST|0 -10|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|hDB0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|"],"links":["Africa/Abidjan|Africa/Accra","Africa/Abidjan|Africa/Bamako","Africa/Abidjan|Africa/Banjul","Africa/Abidjan|Africa/Conakry","Africa/Abidjan|Africa/Dakar","Africa/Abidjan|Africa/Freetown","Africa/Abidjan|Africa/Lome","Africa/Abidjan|Africa/Nouakchott","Africa/Abidjan|Africa/Ouagadougou","Africa/Abidjan|Africa/Timbuktu","Africa/Abidjan|Atlantic/St_Helena","Africa/Cairo|Egypt","Africa/Johannesburg|Africa/Maseru","Africa/Johannesburg|Africa/Mbabane","Africa/Lagos|Africa/Bangui","Africa/Lagos|Africa/Brazzaville","Africa/Lagos|Africa/Douala","Africa/Lagos|Africa/Kinshasa","Africa/Lagos|Africa/Libreville","Africa/Lagos|Africa/Luanda","Africa/Lagos|Africa/Malabo","Africa/Lagos|Africa/Niamey","Africa/Lagos|Africa/Porto-Novo","Africa/Maputo|Africa/Blantyre","Africa/Maputo|Africa/Bujumbura","Africa/Maputo|Africa/Gaborone","Africa/Maputo|Africa/Harare","Africa/Maputo|Africa/Kigali","Africa/Maputo|Africa/Lubumbashi","Africa/Maputo|Africa/Lusaka","Africa/Nairobi|Africa/Addis_Ababa","Africa/Nairobi|Africa/Asmara","Africa/Nairobi|Africa/Asmera","Africa/Nairobi|Africa/Dar_es_Salaam","Africa/Nairobi|Africa/Djibouti","Africa/Nairobi|Africa/Kampala","Africa/Nairobi|Africa/Mogadishu","Africa/Nairobi|Indian/Antananarivo","Africa/Nairobi|Indian/Comoro","Africa/Nairobi|Indian/Mayotte","Africa/Tripoli|Libya","America/Adak|America/Atka","America/Adak|US/Aleutian","America/Anchorage|US/Alaska","America/Argentina/Buenos_Aires|America/Buenos_Aires","America/Argentina/Catamarca|America/Argentina/ComodRivadavia","America/Argentina/Catamarca|America/Catamarca","America/Argentina/Cordoba|America/Cordoba","America/Argentina/Cordoba|America/Rosario","America/Argentina/Jujuy|America/Jujuy","America/Argentina/Mendoza|America/Mendoza","America/Chicago|US/Central","America/Denver|America/Shiprock","America/Denver|Navajo","America/Denver|US/Mountain","America/Detroit|US/Michigan","America/Edmonton|Canada/Mountain","America/Fort_Wayne|America/Indiana/Indianapolis","America/Fort_Wayne|America/Indianapolis","America/Fort_Wayne|US/East-Indiana","America/Godthab|America/Nuuk","America/Halifax|Canada/Atlantic","America/Havana|Cuba","America/Indiana/Knox|America/Knox_IN","America/Indiana/Knox|US/Indiana-Starke","America/Jamaica|Jamaica","America/Kentucky/Louisville|America/Louisville","America/Los_Angeles|US/Pacific","America/Manaus|Brazil/West","America/Mazatlan|Mexico/BajaSur","America/Mexico_City|Mexico/General","America/New_York|US/Eastern","America/Noronha|Brazil/DeNoronha","America/Panama|America/Atikokan","America/Panama|America/Cayman","America/Panama|America/Coral_Harbour","America/Phoenix|America/Creston","America/Phoenix|US/Arizona","America/Puerto_Rico|America/Anguilla","America/Puerto_Rico|America/Antigua","America/Puerto_Rico|America/Aruba","America/Puerto_Rico|America/Blanc-Sablon","America/Puerto_Rico|America/Curacao","America/Puerto_Rico|America/Dominica","America/Puerto_Rico|America/Grenada","America/Puerto_Rico|America/Guadeloupe","America/Puerto_Rico|America/Kralendijk","America/Puerto_Rico|America/Lower_Princes","America/Puerto_Rico|America/Marigot","America/Puerto_Rico|America/Montserrat","America/Puerto_Rico|America/Port_of_Spain","America/Puerto_Rico|America/St_Barthelemy","America/Puerto_Rico|America/St_Kitts","America/Puerto_Rico|America/St_Lucia","America/Puerto_Rico|America/St_Thomas","America/Puerto_Rico|America/St_Vincent","America/Puerto_Rico|America/Tortola","America/Puerto_Rico|America/Virgin","America/Regina|Canada/Saskatchewan","America/Rio_Branco|America/Porto_Acre","America/Rio_Branco|Brazil/Acre","America/Santiago|Chile/Continental","America/Sao_Paulo|Brazil/East","America/St_Johns|Canada/Newfoundland","America/Tijuana|America/Ensenada","America/Tijuana|America/Santa_Isabel","America/Tijuana|Mexico/BajaNorte","America/Toronto|America/Montreal","America/Toronto|America/Nassau","America/Toronto|Canada/Eastern","America/Vancouver|Canada/Pacific","America/Whitehorse|Canada/Yukon","America/Winnipeg|Canada/Central","Asia/Ashgabat|Asia/Ashkhabad","Asia/Bangkok|Asia/Phnom_Penh","Asia/Bangkok|Asia/Vientiane","Asia/Dhaka|Asia/Dacca","Asia/Dubai|Asia/Muscat","Asia/Ho_Chi_Minh|Asia/Saigon","Asia/Hong_Kong|Hongkong","Asia/Jerusalem|Asia/Tel_Aviv","Asia/Jerusalem|Israel","Asia/Kathmandu|Asia/Katmandu","Asia/Kolkata|Asia/Calcutta","Asia/Kuala_Lumpur|Asia/Singapore","Asia/Kuala_Lumpur|Singapore","Asia/Macau|Asia/Macao","Asia/Makassar|Asia/Ujung_Pandang","Asia/Nicosia|Europe/Nicosia","Asia/Qatar|Asia/Bahrain","Asia/Rangoon|Asia/Yangon","Asia/Riyadh|Antarctica/Syowa","Asia/Riyadh|Asia/Aden","Asia/Riyadh|Asia/Kuwait","Asia/Seoul|ROK","Asia/Shanghai|Asia/Chongqing","Asia/Shanghai|Asia/Chungking","Asia/Shanghai|Asia/Harbin","Asia/Shanghai|PRC","Asia/Taipei|ROC","Asia/Tehran|Iran","Asia/Thimphu|Asia/Thimbu","Asia/Tokyo|Japan","Asia/Ulaanbaatar|Asia/Ulan_Bator","Asia/Urumqi|Asia/Kashgar","Atlantic/Faroe|Atlantic/Faeroe","Atlantic/Reykjavik|Iceland","Atlantic/South_Georgia|Etc/GMT+2","Australia/Adelaide|Australia/South","Australia/Brisbane|Australia/Queensland","Australia/Broken_Hill|Australia/Yancowinna","Australia/Darwin|Australia/North","Australia/Hobart|Australia/Currie","Australia/Hobart|Australia/Tasmania","Australia/Lord_Howe|Australia/LHI","Australia/Melbourne|Australia/Victoria","Australia/Perth|Australia/West","Australia/Sydney|Australia/ACT","Australia/Sydney|Australia/Canberra","Australia/Sydney|Australia/NSW","Etc/GMT-0|Etc/GMT","Etc/GMT-0|Etc/GMT+0","Etc/GMT-0|Etc/GMT0","Etc/GMT-0|Etc/Greenwich","Etc/GMT-0|GMT","Etc/GMT-0|GMT+0","Etc/GMT-0|GMT-0","Etc/GMT-0|GMT0","Etc/GMT-0|Greenwich","Etc/UTC|Etc/UCT","Etc/UTC|Etc/Universal","Etc/UTC|Etc/Zulu","Etc/UTC|UCT","Etc/UTC|UTC","Etc/UTC|Universal","Etc/UTC|Zulu","Europe/Belgrade|Europe/Ljubljana","Europe/Belgrade|Europe/Podgorica","Europe/Belgrade|Europe/Sarajevo","Europe/Belgrade|Europe/Skopje","Europe/Belgrade|Europe/Zagreb","Europe/Chisinau|Europe/Tiraspol","Europe/Dublin|Eire","Europe/Helsinki|Europe/Mariehamn","Europe/Istanbul|Asia/Istanbul","Europe/Istanbul|Turkey","Europe/Lisbon|Portugal","Europe/London|Europe/Belfast","Europe/London|Europe/Guernsey","Europe/London|Europe/Isle_of_Man","Europe/London|Europe/Jersey","Europe/London|GB","Europe/London|GB-Eire","Europe/Moscow|W-SU","Europe/Oslo|Arctic/Longyearbyen","Europe/Oslo|Atlantic/Jan_Mayen","Europe/Prague|Europe/Bratislava","Europe/Rome|Europe/San_Marino","Europe/Rome|Europe/Vatican","Europe/Warsaw|Poland","Europe/Zurich|Europe/Busingen","Europe/Zurich|Europe/Vaduz","Indian/Christmas|Etc/GMT-7","Pacific/Auckland|Antarctica/McMurdo","Pacific/Auckland|Antarctica/South_Pole","Pacific/Auckland|NZ","Pacific/Chatham|NZ-CHAT","Pacific/Chuuk|Pacific/Truk","Pacific/Chuuk|Pacific/Yap","Pacific/Easter|Chile/EasterIsland","Pacific/Enderbury|Pacific/Kanton","Pacific/Guam|Pacific/Saipan","Pacific/Honolulu|Pacific/Johnston","Pacific/Honolulu|US/Hawaii","Pacific/Kwajalein|Kwajalein","Pacific/Pago_Pago|Pacific/Midway","Pacific/Pago_Pago|Pacific/Samoa","Pacific/Pago_Pago|US/Samoa","Pacific/Palau|Etc/GMT-9","Pacific/Pohnpei|Pacific/Ponape","Pacific/Port_Moresby|Antarctica/DumontDUrville","Pacific/Port_Moresby|Etc/GMT-10","Pacific/Tarawa|Etc/GMT-12","Pacific/Tarawa|Pacific/Funafuti","Pacific/Tarawa|Pacific/Wake","Pacific/Tarawa|Pacific/Wallis"],"countries":["AD|Europe/Andorra","AE|Asia/Dubai","AF|Asia/Kabul","AG|America/Port_of_Spain America/Antigua","AI|America/Port_of_Spain America/Anguilla","AL|Europe/Tirane","AM|Asia/Yerevan","AO|Africa/Lagos Africa/Luanda","AQ|Antarctica/Casey Antarctica/Davis Antarctica/DumontDUrville Antarctica/Mawson Antarctica/Palmer Antarctica/Rothera Antarctica/Syowa Antarctica/Troll Antarctica/Vostok Pacific/Auckland Antarctica/McMurdo","AR|America/Argentina/Buenos_Aires America/Argentina/Cordoba America/Argentina/Salta America/Argentina/Jujuy America/Argentina/Tucuman America/Argentina/Catamarca America/Argentina/La_Rioja America/Argentina/San_Juan America/Argentina/Mendoza America/Argentina/San_Luis America/Argentina/Rio_Gallegos America/Argentina/Ushuaia","AS|Pacific/Pago_Pago","AT|Europe/Vienna","AU|Australia/Lord_Howe Antarctica/Macquarie Australia/Hobart Australia/Melbourne Australia/Sydney Australia/Broken_Hill Australia/Brisbane Australia/Lindeman Australia/Adelaide Australia/Darwin Australia/Perth Australia/Eucla","AW|America/Curacao America/Aruba","AX|Europe/Helsinki Europe/Mariehamn","AZ|Asia/Baku","BA|Europe/Belgrade Europe/Sarajevo","BB|America/Barbados","BD|Asia/Dhaka","BE|Europe/Brussels","BF|Africa/Abidjan Africa/Ouagadougou","BG|Europe/Sofia","BH|Asia/Qatar Asia/Bahrain","BI|Africa/Maputo Africa/Bujumbura","BJ|Africa/Lagos Africa/Porto-Novo","BL|America/Port_of_Spain America/St_Barthelemy","BM|Atlantic/Bermuda","BN|Asia/Brunei","BO|America/La_Paz","BQ|America/Curacao America/Kralendijk","BR|America/Noronha America/Belem America/Fortaleza America/Recife America/Araguaina America/Maceio America/Bahia America/Sao_Paulo America/Campo_Grande America/Cuiaba America/Santarem America/Porto_Velho America/Boa_Vista America/Manaus America/Eirunepe America/Rio_Branco","BS|America/Nassau","BT|Asia/Thimphu","BW|Africa/Maputo Africa/Gaborone","BY|Europe/Minsk","BZ|America/Belize","CA|America/St_Johns America/Halifax America/Glace_Bay America/Moncton America/Goose_Bay America/Blanc-Sablon America/Toronto America/Nipigon America/Thunder_Bay America/Iqaluit America/Pangnirtung America/Atikokan America/Winnipeg America/Rainy_River America/Resolute America/Rankin_Inlet America/Regina America/Swift_Current America/Edmonton America/Cambridge_Bay America/Yellowknife America/Inuvik America/Creston America/Dawson_Creek America/Fort_Nelson America/Whitehorse America/Dawson America/Vancouver","CC|Indian/Cocos","CD|Africa/Maputo Africa/Lagos Africa/Kinshasa Africa/Lubumbashi","CF|Africa/Lagos Africa/Bangui","CG|Africa/Lagos Africa/Brazzaville","CH|Europe/Zurich","CI|Africa/Abidjan","CK|Pacific/Rarotonga","CL|America/Santiago America/Punta_Arenas Pacific/Easter","CM|Africa/Lagos Africa/Douala","CN|Asia/Shanghai Asia/Urumqi","CO|America/Bogota","CR|America/Costa_Rica","CU|America/Havana","CV|Atlantic/Cape_Verde","CW|America/Curacao","CX|Indian/Christmas","CY|Asia/Nicosia Asia/Famagusta","CZ|Europe/Prague","DE|Europe/Zurich Europe/Berlin Europe/Busingen","DJ|Africa/Nairobi Africa/Djibouti","DK|Europe/Copenhagen","DM|America/Port_of_Spain America/Dominica","DO|America/Santo_Domingo","DZ|Africa/Algiers","EC|America/Guayaquil Pacific/Galapagos","EE|Europe/Tallinn","EG|Africa/Cairo","EH|Africa/El_Aaiun","ER|Africa/Nairobi Africa/Asmara","ES|Europe/Madrid Africa/Ceuta Atlantic/Canary","ET|Africa/Nairobi Africa/Addis_Ababa","FI|Europe/Helsinki","FJ|Pacific/Fiji","FK|Atlantic/Stanley","FM|Pacific/Chuuk Pacific/Pohnpei Pacific/Kosrae","FO|Atlantic/Faroe","FR|Europe/Paris","GA|Africa/Lagos Africa/Libreville","GB|Europe/London","GD|America/Port_of_Spain America/Grenada","GE|Asia/Tbilisi","GF|America/Cayenne","GG|Europe/London Europe/Guernsey","GH|Africa/Accra","GI|Europe/Gibraltar","GL|America/Nuuk America/Danmarkshavn America/Scoresbysund America/Thule","GM|Africa/Abidjan Africa/Banjul","GN|Africa/Abidjan Africa/Conakry","GP|America/Port_of_Spain America/Guadeloupe","GQ|Africa/Lagos Africa/Malabo","GR|Europe/Athens","GS|Atlantic/South_Georgia","GT|America/Guatemala","GU|Pacific/Guam","GW|Africa/Bissau","GY|America/Guyana","HK|Asia/Hong_Kong","HN|America/Tegucigalpa","HR|Europe/Belgrade Europe/Zagreb","HT|America/Port-au-Prince","HU|Europe/Budapest","ID|Asia/Jakarta Asia/Pontianak Asia/Makassar Asia/Jayapura","IE|Europe/Dublin","IL|Asia/Jerusalem","IM|Europe/London Europe/Isle_of_Man","IN|Asia/Kolkata","IO|Indian/Chagos","IQ|Asia/Baghdad","IR|Asia/Tehran","IS|Atlantic/Reykjavik","IT|Europe/Rome","JE|Europe/London Europe/Jersey","JM|America/Jamaica","JO|Asia/Amman","JP|Asia/Tokyo","KE|Africa/Nairobi","KG|Asia/Bishkek","KH|Asia/Bangkok Asia/Phnom_Penh","KI|Pacific/Tarawa Pacific/Enderbury Pacific/Kiritimati","KM|Africa/Nairobi Indian/Comoro","KN|America/Port_of_Spain America/St_Kitts","KP|Asia/Pyongyang","KR|Asia/Seoul","KW|Asia/Riyadh Asia/Kuwait","KY|America/Panama America/Cayman","KZ|Asia/Almaty Asia/Qyzylorda Asia/Qostanay Asia/Aqtobe Asia/Aqtau Asia/Atyrau Asia/Oral","LA|Asia/Bangkok Asia/Vientiane","LB|Asia/Beirut","LC|America/Port_of_Spain America/St_Lucia","LI|Europe/Zurich Europe/Vaduz","LK|Asia/Colombo","LR|Africa/Monrovia","LS|Africa/Johannesburg Africa/Maseru","LT|Europe/Vilnius","LU|Europe/Luxembourg","LV|Europe/Riga","LY|Africa/Tripoli","MA|Africa/Casablanca","MC|Europe/Monaco","MD|Europe/Chisinau","ME|Europe/Belgrade Europe/Podgorica","MF|America/Port_of_Spain America/Marigot","MG|Africa/Nairobi Indian/Antananarivo","MH|Pacific/Majuro Pacific/Kwajalein","MK|Europe/Belgrade Europe/Skopje","ML|Africa/Abidjan Africa/Bamako","MM|Asia/Yangon","MN|Asia/Ulaanbaatar Asia/Hovd Asia/Choibalsan","MO|Asia/Macau","MP|Pacific/Guam Pacific/Saipan","MQ|America/Martinique","MR|Africa/Abidjan Africa/Nouakchott","MS|America/Port_of_Spain America/Montserrat","MT|Europe/Malta","MU|Indian/Mauritius","MV|Indian/Maldives","MW|Africa/Maputo Africa/Blantyre","MX|America/Mexico_City America/Cancun America/Merida America/Monterrey America/Matamoros America/Mazatlan America/Chihuahua America/Ojinaga America/Hermosillo America/Tijuana America/Bahia_Banderas","MY|Asia/Kuala_Lumpur Asia/Kuching","MZ|Africa/Maputo","NA|Africa/Windhoek","NC|Pacific/Noumea","NE|Africa/Lagos Africa/Niamey","NF|Pacific/Norfolk","NG|Africa/Lagos","NI|America/Managua","NL|Europe/Amsterdam","NO|Europe/Oslo","NP|Asia/Kathmandu","NR|Pacific/Nauru","NU|Pacific/Niue","NZ|Pacific/Auckland Pacific/Chatham","OM|Asia/Dubai Asia/Muscat","PA|America/Panama","PE|America/Lima","PF|Pacific/Tahiti Pacific/Marquesas Pacific/Gambier","PG|Pacific/Port_Moresby Pacific/Bougainville","PH|Asia/Manila","PK|Asia/Karachi","PL|Europe/Warsaw","PM|America/Miquelon","PN|Pacific/Pitcairn","PR|America/Puerto_Rico","PS|Asia/Gaza Asia/Hebron","PT|Europe/Lisbon Atlantic/Madeira Atlantic/Azores","PW|Pacific/Palau","PY|America/Asuncion","QA|Asia/Qatar","RE|Indian/Reunion","RO|Europe/Bucharest","RS|Europe/Belgrade","RU|Europe/Kaliningrad Europe/Moscow Europe/Simferopol Europe/Kirov Europe/Volgograd Europe/Astrakhan Europe/Saratov Europe/Ulyanovsk Europe/Samara Asia/Yekaterinburg Asia/Omsk Asia/Novosibirsk Asia/Barnaul Asia/Tomsk Asia/Novokuznetsk Asia/Krasnoyarsk Asia/Irkutsk Asia/Chita Asia/Yakutsk Asia/Khandyga Asia/Vladivostok Asia/Ust-Nera Asia/Magadan Asia/Sakhalin Asia/Srednekolymsk Asia/Kamchatka Asia/Anadyr","RW|Africa/Maputo Africa/Kigali","SA|Asia/Riyadh","SB|Pacific/Guadalcanal","SC|Indian/Mahe","SD|Africa/Khartoum","SE|Europe/Stockholm","SG|Asia/Singapore","SH|Africa/Abidjan Atlantic/St_Helena","SI|Europe/Belgrade Europe/Ljubljana","SJ|Europe/Oslo Arctic/Longyearbyen","SK|Europe/Prague Europe/Bratislava","SL|Africa/Abidjan Africa/Freetown","SM|Europe/Rome Europe/San_Marino","SN|Africa/Abidjan Africa/Dakar","SO|Africa/Nairobi Africa/Mogadishu","SR|America/Paramaribo","SS|Africa/Juba","ST|Africa/Sao_Tome","SV|America/El_Salvador","SX|America/Curacao America/Lower_Princes","SY|Asia/Damascus","SZ|Africa/Johannesburg Africa/Mbabane","TC|America/Grand_Turk","TD|Africa/Ndjamena","TF|Indian/Reunion Indian/Kerguelen","TG|Africa/Abidjan Africa/Lome","TH|Asia/Bangkok","TJ|Asia/Dushanbe","TK|Pacific/Fakaofo","TL|Asia/Dili","TM|Asia/Ashgabat","TN|Africa/Tunis","TO|Pacific/Tongatapu","TR|Europe/Istanbul","TT|America/Port_of_Spain","TV|Pacific/Funafuti","TW|Asia/Taipei","TZ|Africa/Nairobi Africa/Dar_es_Salaam","UA|Europe/Simferopol Europe/Kiev Europe/Uzhgorod Europe/Zaporozhye","UG|Africa/Nairobi Africa/Kampala","UM|Pacific/Pago_Pago Pacific/Wake Pacific/Honolulu Pacific/Midway","US|America/New_York America/Detroit America/Kentucky/Louisville America/Kentucky/Monticello America/Indiana/Indianapolis America/Indiana/Vincennes America/Indiana/Winamac America/Indiana/Marengo America/Indiana/Petersburg America/Indiana/Vevay America/Chicago America/Indiana/Tell_City America/Indiana/Knox America/Menominee America/North_Dakota/Center America/North_Dakota/New_Salem America/North_Dakota/Beulah America/Denver America/Boise America/Phoenix America/Los_Angeles America/Anchorage America/Juneau America/Sitka America/Metlakatla America/Yakutat America/Nome America/Adak Pacific/Honolulu","UY|America/Montevideo","UZ|Asia/Samarkand Asia/Tashkent","VA|Europe/Rome Europe/Vatican","VC|America/Port_of_Spain America/St_Vincent","VE|America/Caracas","VG|America/Port_of_Spain America/Tortola","VI|America/Port_of_Spain America/St_Thomas","VN|Asia/Bangkok Asia/Ho_Chi_Minh","VU|Pacific/Efate","WF|Pacific/Wallis","WS|Pacific/Apia","YE|Asia/Riyadh Asia/Aden","YT|Africa/Nairobi Indian/Mayotte","ZA|Africa/Johannesburg","ZM|Africa/Maputo Africa/Lusaka","ZW|Africa/Maputo Africa/Harare"]}')},4147:Y=>{"use strict";Y.exports={i8:"10.4.0"}}},Y=>{Y(Y.s=5882)}]); \ No newline at end of file diff --git a/dist/apps/user-profile/main.c98f2bb03640d82f.js b/dist/apps/user-profile/main.c98f2bb03640d82f.js deleted file mode 100644 index 850e7473e..000000000 --- a/dist/apps/user-profile/main.c98f2bb03640d82f.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkuser_profile=self.webpackChunkuser_profile||[]).push([[179],{5371:(j,Y,T)=>{"use strict";var w=T(6895),i=T(4650);class E extends w.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class x extends E{static makeCurrent(){(0,w.HT)(new x)}onAndCancel(a,e,t){return a.addEventListener(e,t,!1),()=>{a.removeEventListener(e,t,!1)}}dispatchEvent(a,e){a.dispatchEvent(e)}remove(a){a.parentNode&&a.parentNode.removeChild(a)}createElement(a,e){return(e=e||this.getDefaultDocument()).createElement(a)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(a){return a.nodeType===Node.ELEMENT_NODE}isShadowRoot(a){return a instanceof DocumentFragment}getGlobalEventTarget(a,e){return"window"===e?window:"document"===e?a:"body"===e?a.body:null}getBaseHref(a){const e=function P(){return S=S||document.querySelector("base"),S?S.getAttribute("href"):null}();return null==e?null:function F(n){k=k||document.createElement("a"),k.setAttribute("href",n);const a=k.pathname;return"/"===a.charAt(0)?a:`/${a}`}(e)}resetBaseElement(){S=null}getUserAgent(){return window.navigator.userAgent}getCookie(a){return(0,w.Mx)(document.cookie,a)}}let k,S=null;const q=new i.OlP("TRANSITION_ID"),Q=[{provide:i.ip1,useFactory:function J(n,a,e){return()=>{e.get(i.CZH).donePromise.then(()=>{const t=(0,w.q)(),r=a.querySelectorAll(`style[ng-transition="${n}"]`);for(let l=0;l{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const re=new i.OlP("EventManagerPlugins");let ie=(()=>{class n{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(r=>r.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,r){return this._findPluginFor(t).addEventListener(e,t,r)}addGlobalEventListener(e,t,r){return this._findPluginFor(t).addGlobalEventListener(e,t,r)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const r=this._plugins;for(let l=0;l{class n{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(r=>{this._stylesSet.has(r)||(this._stylesSet.add(r),t.add(r))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),Te=(()=>{class n extends Ae{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,t,r){e.forEach(l=>{const c=this._doc.createElement("style");c.textContent=l,r.push(t.appendChild(c))})}addHost(e){const t=[];this._addStylesToHost(this._stylesSet,e,t),this._hostNodes.set(e,t)}removeHost(e){const t=this._hostNodes.get(e);t&&t.forEach(Je),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((t,r)=>{this._addStylesToHost(e,r,t)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(Je))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();function Je(n){(0,w.q)().remove(n)}const Xe={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/",math:"http://www.w3.org/1998/MathML/"},Re=/%COMP%/g;function pe(n,a,e){for(let t=0;t{if("__ngUnwrap__"===a)return n;!1===n(a)&&(a.preventDefault(),a.returnValue=!1)}}let Me=(()=>{class n{constructor(e,t,r){this.eventManager=e,this.sharedStylesHost=t,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new Ue(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case i.ifc.Emulated:{let r=this.rendererByCompId.get(t.id);return r||(r=new ai(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,r)),r.applyToHost(e),r}case 1:case i.ifc.ShadowDom:return new Ke(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const r=pe(t.id,t.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(ie),i.LFG(Te),i.LFG(i.AFp))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class Ue{constructor(a){this.eventManager=a,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(a,e){return e?document.createElementNS(Xe[e]||e,a):document.createElement(a)}createComment(a){return document.createComment(a)}createText(a){return document.createTextNode(a)}appendChild(a,e){(Bt(a)?a.content:a).appendChild(e)}insertBefore(a,e,t){a&&(Bt(a)?a.content:a).insertBefore(e,t)}removeChild(a,e){a&&a.removeChild(e)}selectRootElement(a,e){let t="string"==typeof a?document.querySelector(a):a;if(!t)throw new Error(`The selector "${a}" did not match any elements`);return e||(t.textContent=""),t}parentNode(a){return a.parentNode}nextSibling(a){return a.nextSibling}setAttribute(a,e,t,r){if(r){e=r+":"+e;const l=Xe[r];l?a.setAttributeNS(l,e,t):a.setAttribute(e,t)}else a.setAttribute(e,t)}removeAttribute(a,e,t){if(t){const r=Xe[t];r?a.removeAttributeNS(r,e):a.removeAttribute(`${t}:${e}`)}else a.removeAttribute(e)}addClass(a,e){a.classList.add(e)}removeClass(a,e){a.classList.remove(e)}setStyle(a,e,t,r){r&(i.JOm.DashCase|i.JOm.Important)?a.style.setProperty(e,t,r&i.JOm.Important?"important":""):a.style[e]=t}removeStyle(a,e,t){t&i.JOm.DashCase?a.style.removeProperty(e):a.style[e]=""}setProperty(a,e,t){a[e]=t}setValue(a,e){a.nodeValue=e}listen(a,e,t){return"string"==typeof a?this.eventManager.addGlobalEventListener(a,e,me(t)):this.eventManager.addEventListener(a,e,me(t))}}function Bt(n){return"TEMPLATE"===n.tagName&&void 0!==n.content}class ai extends Ue{constructor(a,e,t,r){super(a),this.component=t;const l=pe(r+"-"+t.id,t.styles,[]);e.addStyles(l),this.contentAttr=function ze(n){return"_ngcontent-%COMP%".replace(Re,n)}(r+"-"+t.id),this.hostAttr=function Ve(n){return"_nghost-%COMP%".replace(Re,n)}(r+"-"+t.id)}applyToHost(a){super.setAttribute(a,this.hostAttr,"")}createElement(a,e){const t=super.createElement(a,e);return super.setAttribute(t,this.contentAttr,""),t}}class Ke extends Ue{constructor(a,e,t,r){super(a),this.sharedStylesHost=e,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const l=pe(r.id,r.styles,[]);for(let c=0;c{class n extends ge{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,r){return e.addEventListener(t,r,!1),()=>this.removeEventListener(e,t,r)}removeEventListener(e,t,r){return e.removeEventListener(t,r)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const Hn=["alt","control","meta","shift"],si={"\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"},Wn={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"},Mi={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let Ln=(()=>{class n extends ge{constructor(e){super(e)}supports(e){return null!=n.parseEventName(e)}addEventListener(e,t,r){const l=n.parseEventName(t),c=n.eventCallback(l.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,w.q)().onAndCancel(e,l.domEventName,c))}static parseEventName(e){const t=e.toLowerCase().split("."),r=t.shift();if(0===t.length||"keydown"!==r&&"keyup"!==r)return null;const l=n._normalizeKey(t.pop());let c="";if(Hn.forEach(o=>{const d=t.indexOf(o);d>-1&&(t.splice(d,1),c+=o+".")}),c+=l,0!=t.length||0===l.length)return null;const s={};return s.domEventName=r,s.fullKey=c,s}static getEventFullKey(e){let t="",r=function ci(n){let a=n.key;if(null==a){if(a=n.keyIdentifier,null==a)return"Unidentified";a.startsWith("U+")&&(a=String.fromCharCode(parseInt(a.substring(2),16)),3===n.location&&Wn.hasOwnProperty(a)&&(a=Wn[a]))}return si[a]||a}(e);return r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),Hn.forEach(l=>{l!=r&&(0,Mi[l])(e)&&(t+=l+".")}),t+=r,t}static eventCallback(e,t,r){return l=>{n.getEventFullKey(l)===e&&r.runGuarded(()=>t(l))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const be=(0,i.eFA)(i._c5,"browser",[{provide:i.Lbi,useValue:w.bD},{provide:i.g9A,useValue:function br(){x.makeCurrent()},multi:!0},{provide:w.K0,useFactory:function de(){return(0,i.RDi)(document),document},deps:[]}]),Ye=new i.OlP(""),st=[{provide:i.rWj,useClass:class ne{addToWindow(a){i.dqk.getAngularTestability=(t,r=!0)=>{const l=a.findTestabilityInTree(t,r);if(null==l)throw new Error("Could not find testability for element.");return l},i.dqk.getAllAngularTestabilities=()=>a.getAllTestabilities(),i.dqk.getAllAngularRootElements=()=>a.getAllRootElements(),i.dqk.frameworkStabilizers||(i.dqk.frameworkStabilizers=[]),i.dqk.frameworkStabilizers.push(t=>{const r=i.dqk.getAllAngularTestabilities();let l=r.length,c=!1;const s=function(o){c=c||o,l--,0==l&&t(c)};r.forEach(function(o){o.whenStable(s)})})}findTestabilityInTree(a,e,t){return null==e?null:a.getTestability(e)??(t?(0,w.q)().isShadowRoot(e)?this.findTestabilityInTree(a,e.host,!0):this.findTestabilityInTree(a,e.parentElement,!0):null)}},deps:[]},{provide:i.lri,useClass:i.dDg,deps:[i.R0b,i.eoX,i.rWj]},{provide:i.dDg,useClass:i.dDg,deps:[i.R0b,i.eoX,i.rWj]}],ot=[{provide:i.zSh,useValue:"root"},{provide:i.qLn,useFactory:function jn(){return new i.qLn},deps:[]},{provide:re,useClass:ln,multi:!0,deps:[w.K0,i.R0b,i.Lbi]},{provide:re,useClass:Ln,multi:!0,deps:[w.K0]},{provide:Me,useClass:Me,deps:[ie,Te,i.AFp]},{provide:i.FYo,useExisting:Me},{provide:Ae,useExisting:Te},{provide:Te,useClass:Te,deps:[w.K0]},{provide:ie,useClass:ie,deps:[re,i.R0b]},{provide:w.JF,useClass:le,deps:[]},[]];let Ut=(()=>{class n{constructor(e){}static withServerTransition(e){return{ngModule:n,providers:[{provide:i.AFp,useValue:e.appId},{provide:q,useExisting:i.AFp},Q]}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Ye,12))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[...ot,...st],imports:[w.ez,i.hGG]}),n})(),se=(()=>{class n{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:function(e){let t=null;return t=e?new e:function ke(){return new se((0,i.LFG)(w.K0))}(),t},providedIn:"root"}),n})();typeof window<"u"&&window;let Ki=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:function(e){let t=null;return t=e?new(e||n):i.LFG(dt),t},providedIn:"root"}),n})(),dt=(()=>{class n extends Ki{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case i.q3G.NONE:return t;case i.q3G.HTML:return(0,i.qzn)(t,"HTML")?(0,i.z3N)(t):(0,i.EiD)(this._doc,String(t)).toString();case i.q3G.STYLE:return(0,i.qzn)(t,"Style")?(0,i.z3N)(t):t;case i.q3G.SCRIPT:if((0,i.qzn)(t,"Script"))return(0,i.z3N)(t);throw new Error("unsafe value used in a script context");case i.q3G.URL:return(0,i.qzn)(t,"URL")?(0,i.z3N)(t):(0,i.mCW)(String(t));case i.q3G.RESOURCE_URL:if((0,i.qzn)(t,"ResourceURL"))return(0,i.z3N)(t);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return(0,i.JVY)(e)}bypassSecurityTrustStyle(e){return(0,i.L6k)(e)}bypassSecurityTrustScript(e){return(0,i.eBb)(e)}bypassSecurityTrustUrl(e){return(0,i.LAX)(e)}bypassSecurityTrustResourceUrl(e){return(0,i.pB0)(e)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:function(e){let t=null;return t=e?new e:function et(n){return new dt(n.get(w.K0))}(i.LFG(i.zs3)),t},providedIn:"root"}),n})();var xe=T(9646),_i=T(9751),bi=T(576);function Wt(n){return!!n&&(n instanceof _i.y||(0,bi.m)(n.lift)&&(0,bi.m)(n.subscribe))}var Kt=T(4742),dn=T(8421),pi=T(3269),rt=T(5403),Un=T(3268),Kn=T(1810);function ua(...n){const a=(0,pi.jO)(n),{args:e,keys:t}=(0,Kt.D)(n),r=new _i.y(l=>{const{length:c}=e;if(!c)return void l.complete();const s=new Array(c);let o=c,d=c;for(let u=0;u{h||(h=!0,d--),s[u]=f},()=>o--,void 0,()=>{(!o||!h)&&(d||l.next(t?(0,Kn.n)(t,s):s),l.complete())}))}});return a?r.pipe((0,Un.Z)(a)):r}var er=T(7272);function Di(n){return new _i.y(a=>{(0,dn.Xf)(n()).subscribe(a)})}var ct=T(5698),Ee=T(7579),Gn=T(6063);class Ur extends Ee.x{constructor(a=1/0,e=1/0,t=Gn.l){super(),this._bufferSize=a,this._windowTime=e,this._timestampProvider=t,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,a),this._windowTime=Math.max(1,e)}next(a){const{isStopped:e,_buffer:t,_infiniteTimeWindow:r,_timestampProvider:l,_windowTime:c}=this;e||(t.push(a),!r&&t.push(l.now()+c)),this._trimBuffer(),super.next(a)}_subscribe(a){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(a),{_infiniteTimeWindow:t,_buffer:r}=this,l=r.slice();for(let c=0;cnew Ur(t,a,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:r})}var At=T(4004),Pr=T(4351),mi=T(3900);class Gr{}let ha=(()=>{class n extends Gr{getTranslation(e){return(0,xe.of)({})}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class pa{}let Mr=(()=>{class n{handle(e){return e.key}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();function Gi(n,a){if(n===a)return!0;if(null===n||null===a)return!1;if(n!=n&&a!=a)return!0;let r,l,c,e=typeof n;if(e==typeof a&&"object"==e){if(!Array.isArray(n)){if(Array.isArray(a))return!1;for(l in c=Object.create(null),n){if(!Gi(n[l],a[l]))return!1;c[l]=!0}for(l in a)if(!(l in c)&&typeof a[l]<"u")return!1;return!0}if(!Array.isArray(a))return!1;if((r=n.length)==a.length){for(l=0;l{bn(a[t])?t in n?e[t]=$n(n[t],a[t]):Object.assign(e,{[t]:a[t]}):Object.assign(e,{[t]:a[t]})}),e}class lr{}let Zr=(()=>{class n extends lr{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(e,t){let r;return r="string"==typeof e?this.interpolateString(e,t):"function"==typeof e?this.interpolateFunction(e,t):e,r}getValue(e,t){let r="string"==typeof t?t.split("."):[t];t="";do{t+=r.shift(),!$r(e)||!$r(e[t])||"object"!=typeof e[t]&&r.length?r.length?t+=".":e=void 0:(e=e[t],t="")}while(r.length);return e}interpolateFunction(e,t){return e(t)}interpolateString(e,t){return t?e.replace(this.templateMatcher,(r,l)=>{let c=this.getValue(t,l);return $r(c)?c:r}):e}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class wr{}let Zn=(()=>{class n extends wr{compile(e,t){return e}compileTranslations(e,t){return e}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class fa{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new i.vpe,this.onLangChange=new i.vpe,this.onDefaultLangChange=new i.vpe}}const lo=new i.OlP("USE_STORE"),ws=new i.OlP("USE_DEFAULT_LANG"),ma=new i.OlP("DEFAULT_LANGUAGE"),cr=new i.OlP("USE_EXTEND");let $t=(()=>{class n{constructor(e,t,r,l,c,s=!0,o=!1,d=!1,u){this.store=e,this.currentLoader=t,this.compiler=r,this.parser=l,this.missingTranslationHandler=c,this.useDefaultLang=s,this.isolate=o,this.extend=d,this.pending=!1,this._onTranslationChange=new i.vpe,this._onLangChange=new i.vpe,this._onDefaultLangChange=new i.vpe,this._langs=[],this._translations={},this._translationRequests={},u&&this.setDefaultLang(u)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(e){this.isolate?this._currentLang=e:this.store.currentLang=e}get langs(){return this.isolate?this._langs:this.store.langs}set langs(e){this.isolate?this._langs=e:this.store.langs=e}get translations(){return this.isolate?this._translations:this.store.translations}set translations(e){this.isolate?this._translations=e:this.store.translations=e}setDefaultLang(e){if(e===this.defaultLang)return;let t=this.retrieveTranslations(e);typeof t<"u"?(null==this.defaultLang&&(this.defaultLang=e),t.pipe((0,ct.q)(1)).subscribe(r=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(e===this.currentLang)return(0,xe.of)(this.translations[e]);let t=this.retrieveTranslations(e);return typeof t<"u"?(this.currentLang||(this.currentLang=e),t.pipe((0,ct.q)(1)).subscribe(r=>{this.changeLang(e)}),t):(this.changeLang(e),(0,xe.of)(this.translations[e]))}retrieveTranslations(e){let t;return(typeof this.translations[e]>"u"||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),t=this._translationRequests[e]),t}getTranslation(e){this.pending=!0;const t=this.currentLoader.getTranslation(e).pipe(fi(1),(0,ct.q)(1));return this.loadingTranslations=t.pipe((0,At.U)(r=>this.compiler.compileTranslations(r,e)),fi(1),(0,ct.q)(1)),this.loadingTranslations.subscribe({next:r=>{this.translations[e]=this.extend&&this.translations[e]?{...r,...this.translations[e]}:r,this.updateLangs(),this.pending=!1},error:r=>{this.pending=!1}}),t}setTranslation(e,t,r=!1){t=this.compiler.compileTranslations(t,e),this.translations[e]=(r||this.extend)&&this.translations[e]?$n(this.translations[e],t):t,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return this.langs}addLangs(e){e.forEach(t=>{-1===this.langs.indexOf(t)&&this.langs.push(t)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(e,t,r){let l;if(t instanceof Array){let c={},s=!1;for(let o of t)c[o]=this.getParsedResult(e,o,r),Wt(c[o])&&(s=!0);return s?ua(t.map(d=>Wt(c[d])?c[d]:(0,xe.of)(c[d]))).pipe((0,At.U)(d=>{let u={};return d.forEach((h,f)=>{u[t[f]]=h}),u})):c}if(e&&(l=this.parser.interpolate(this.parser.getValue(e,t),r)),typeof l>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(l=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],t),r)),typeof l>"u"){let c={key:t,translateService:this};typeof r<"u"&&(c.interpolateParams=r),l=this.missingTranslationHandler.handle(c)}return typeof l<"u"?l:t}get(e,t){if(!$r(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,Pr.b)(r=>Wt(r=this.getParsedResult(r,e,t))?r:(0,xe.of)(r)));{let r=this.getParsedResult(this.translations[this.currentLang],e,t);return Wt(r)?r:(0,xe.of)(r)}}getStreamOnTranslationChange(e,t){if(!$r(e)||!e.length)throw new Error('Parameter "key" required');return(0,er.z)(Di(()=>this.get(e,t)),this.onTranslationChange.pipe((0,mi.w)(r=>{const l=this.getParsedResult(r.translations,e,t);return"function"==typeof l.subscribe?l:(0,xe.of)(l)})))}stream(e,t){if(!$r(e)||!e.length)throw new Error('Parameter "key" required');return(0,er.z)(Di(()=>this.get(e,t)),this.onLangChange.pipe((0,mi.w)(r=>{const l=this.getParsedResult(r.translations,e,t);return Wt(l)?l:(0,xe.of)(l)})))}instant(e,t){if(!$r(e)||!e.length)throw new Error('Parameter "key" required');let r=this.getParsedResult(this.translations[this.currentLang],e,t);if(Wt(r)){if(e instanceof Array){let l={};return e.forEach((c,s)=>{l[e[s]]=e[s]}),l}return e}return r}set(e,t,r=this.currentLang){this.translations[r][e]=this.compiler.compile(t,r),this.updateLangs(),this.onTranslationChange.emit({lang:r,translations:this.translations[r]})}changeLang(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),null==this.defaultLang&&this.changeDefaultLang(e)}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return this.resetLang(e),this.getTranslation(e)}resetLang(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof e>"u"?void 0:(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,e}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(fa),i.LFG(Gr),i.LFG(wr),i.LFG(lr),i.LFG(pa),i.LFG(ws),i.LFG(lo),i.LFG(cr),i.LFG(ma))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),Qe=(()=>{class n{constructor(e,t){this.translate=e,this._ref=t,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(e,t,r){let l=c=>{this.value=void 0!==c?c:e,this.lastKey=e,this._ref.markForCheck()};if(r){let c=this.translate.getParsedResult(r,e,t);Wt(c.subscribe)?c.subscribe(l):l(c)}this.translate.get(e,t).subscribe(l)}transform(e,...t){if(!e||!e.length)return e;if(Gi(e,this.lastKey)&&Gi(t,this.lastParams))return this.value;let r;if($r(t[0])&&t.length)if("string"==typeof t[0]&&t[0].length){let l=t[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{r=JSON.parse(l)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${t[0]}`)}}else"object"==typeof t[0]&&!Array.isArray(t[0])&&(r=t[0]);return this.lastKey=e,this.lastParams=t,this.updateValue(e,r),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(l=>{this.lastKey&&l.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,r,l.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(l=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r,l.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36($t,16),i.Y36(i.sBO,16))},n.\u0275pipe=i.Yjl({name:"translate",type:n,pure:!1}),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),co=(()=>{class n{static forRoot(e={}){return{ngModule:n,providers:[e.loader||{provide:Gr,useClass:ha},e.compiler||{provide:wr,useClass:Zn},e.parser||{provide:lr,useClass:Zr},e.missingTranslationHandler||{provide:pa,useClass:Mr},fa,{provide:lo,useValue:e.isolate},{provide:ws,useValue:e.useDefaultLang},{provide:cr,useValue:e.extend},{provide:ma,useValue:e.defaultLanguage},$t]}}static forChild(e={}){return{ngModule:n,providers:[e.loader||{provide:Gr,useClass:ha},e.compiler||{provide:wr,useClass:Zn},e.parser||{provide:lr,useClass:Zr},e.missingTranslationHandler||{provide:pa,useClass:Mr},{provide:lo,useValue:e.isolate},{provide:ws,useValue:e.useDefaultLang},{provide:cr,useValue:e.extend},{provide:ma,useValue:e.defaultLanguage},$t]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),Gu=(()=>{class n extends $t{instant(e,t){return String(super.instant(e,t))}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var M=T(529);class zi{encodeKey(a){return encodeURIComponent(a)}encodeValue(a){return encodeURIComponent(a)}decodeKey(a){return decodeURIComponent(a)}decodeValue(a){return decodeURIComponent(a)}}const Ri=new i.OlP("basePath");class Et{constructor(a={}){this.apiKeys=a.apiKeys,this.username=a.username,this.password=a.password,this.accessToken=a.accessToken,this.basePath=a.basePath,this.withCredentials=a.withCredentials,this.encoder=a.encoder,this.credentials=a.credentials?a.credentials:{},this.credentials.BasicAuth||(this.credentials.BasicAuth=()=>this.username||this.password?btoa(this.username+":"+this.password):void 0),this.credentials.BearerAuth||(this.credentials.BearerAuth=()=>"function"==typeof this.accessToken?this.accessToken():this.accessToken)}selectHeaderContentType(a){if(0===a.length)return;const e=a.find(t=>this.isJsonMime(t));return void 0===e?a[0]:e}selectHeaderAccept(a){if(0===a.length)return;const e=a.find(t=>this.isJsonMime(t));return void 0===e?a[0]:e}isJsonMime(a){const e=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==a&&(e.test(a)||"application/json-patch+json"===a.toLowerCase())}lookupCredential(a){const e=this.credentials[a];return"function"==typeof e?e():e}}let ji=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new M.WM,this.configuration=new Et,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new zi}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}convertAttributeToNonunique(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToNonunique.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeDefinition"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToNonunique`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}convertAttributeToUnique(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToUnique.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeDefinition"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToUnique`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}createAttributeDefinition(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateAttributeDefinition was null or undefined when calling createAttributeDefinition.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/createAttribute`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}deleteAttributeDefinition(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter attribute was null or undefined when calling deleteAttributeDefinition.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attribute"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttribute`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}deleteAttributeDefinitions(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter attributes was null or undefined when calling deleteAttributeDefinitions.");let c=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"attributes[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttributes`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllAttributeDefinitions(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributesDefinition`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAttribute(e,t,r,l,c,s,o,d,u,h,f,b="body",B=!1,X){let he=new M.LE({encoder:this.encoder});null!=e&&(he=this.addToHttpParams(he,e,"attributeName")),null!=t&&(he=this.addToHttpParams(he,t,"attributeId")),null!=r&&(he=this.addToHttpParams(he,r,"facility")),null!=l&&(he=this.addToHttpParams(he,l,"user")),null!=c&&(he=this.addToHttpParams(he,c,"vo")),null!=s&&(he=this.addToHttpParams(he,s,"resource")),null!=o&&(he=this.addToHttpParams(he,o,"member")),null!=d&&(he=this.addToHttpParams(he,d,"group")),null!=u&&(he=this.addToHttpParams(he,u,"host")),null!=h&&(he=this.addToHttpParams(he,h,"userExtSource")),null!=f&&(he=this.addToHttpParams(he,f,"key"));let bt,Pe=this.defaultHeaders;bt=this.configuration.lookupCredential("BasicAuth"),bt&&(Pe=Pe.set("Authorization","Basic "+bt)),bt=this.configuration.lookupCredential("BearerAuth"),bt&&(Pe=Pe.set("Authorization","Bearer "+bt));let kt=X&&X.httpHeaderAccept;void 0===kt&&(kt=this.configuration.selectHeaderAccept(["application/json"])),void 0!==kt&&(Pe=Pe.set("Accept",kt));let qt=X&&X.context;void 0===qt&&(qt=new M.qT);let oa="json";return kt&&(oa=kt.startsWith("text")?"text":this.configuration.isJsonMime(kt)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/any`,{context:qt,params:he,responseType:oa,withCredentials:this.configuration.withCredentials,headers:Pe,observe:b,reportProgress:B})}getAttributeDefinitionById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getAttributeDefinitionById.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinitionById`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAttributeDefinitionByName(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getAttributeDefinitionByName.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeName"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinition`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAttributeDefinitionsByNamespace(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter namespace was null or undefined when calling getAttributeDefinitionsByNamespace.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"namespace"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributesDefinitionByNamespace`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAttributeModulesDependenciesForAttributeGraphText(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");if(null==t)throw new Error("Required parameter attrName was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"format")),null!=t&&(s=this.addToHttpParams(s,t,"attrName"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText/for-attribute`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getAttributeModulesDependenciesGraphText(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesGraphText.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"format"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAttributePolicyCollections(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getAttributePolicyCollections.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeId"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributePolicyCollections`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAttributeRights(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getAttributeRights.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeId"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeRights`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAttributeRules(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling getAttributeRules.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeDefinition"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeRules`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAttributesDefinitionWithRights(e,t,r,l,c,s,o,d,u="body",h=!1,f){let b=new M.LE({encoder:this.encoder});null!=e&&(b=this.addToHttpParams(b,e,"member")),null!=t&&(b=this.addToHttpParams(b,t,"user")),null!=r&&(b=this.addToHttpParams(b,r,"vo")),null!=l&&(b=this.addToHttpParams(b,l,"group")),null!=c&&(b=this.addToHttpParams(b,c,"resource")),null!=s&&(b=this.addToHttpParams(b,s,"facility")),null!=o&&(b=this.addToHttpParams(b,o,"host")),null!=d&&(b=this.addToHttpParams(b,d,"userExtSource"));let X,B=this.defaultHeaders;X=this.configuration.lookupCredential("BasicAuth"),X&&(B=B.set("Authorization","Basic "+X)),X=this.configuration.lookupCredential("BearerAuth"),X&&(B=B.set("Authorization","Bearer "+X));let he=f&&f.httpHeaderAccept;void 0===he&&(he=this.configuration.selectHeaderAccept(["application/json"])),void 0!==he&&(B=B.set("Accept",he));let Pe=f&&f.context;void 0===Pe&&(Pe=new M.qT);let bt="json";return he&&(bt=he.startsWith("text")?"text":this.configuration.isJsonMime(he)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/attributesManager/getAttributesDefinitionWithRights`,{context:Pe,params:b,responseType:bt,withCredentials:this.configuration.withCredentials,headers:B,observe:u,reportProgress:h})}getEntitylessAttributeByName(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getEntitylessAttributeByName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"key")),null!=t&&(s=this.addToHttpParams(s,t,"attributeName"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-entityless`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getEntitylessAttributesByKey(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributesByKey.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"key"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/key`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getEntitylessAttributesByName(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesByName.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attrName"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributes`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getEntitylessAttributesWithKeys(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesWithKeys.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"attrName")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"keys[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributesWithKeys`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getEntitylessKeys(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling getEntitylessKeys.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeDefinition"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessKeys`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getFacilityAttributeById(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getFacilityAttributeById.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"facility")),null!=t&&(s=this.addToHttpParams(s,t,"attributeId"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-facility`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getFacilityAttributeByName(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getFacilityAttributeByName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"facility")),null!=t&&(s=this.addToHttpParams(s,t,"attributeName"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-facility`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getFacilityAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributes.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"facility"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getFacilityAttributesByNames(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getFacilityAttributesByNames.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"facility")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-names`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getFacilityResourceUserMemberAttributes(e,t,r,l,c="body",s=!1,o){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==r)throw new Error("Required parameter user was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==l)throw new Error("Required parameter member was null or undefined when calling getFacilityResourceUserMemberAttributes.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"facility")),null!=t&&(d=this.addToHttpParams(d,t,"resource")),null!=r&&(d=this.addToHttpParams(d,r,"user")),null!=l&&(d=this.addToHttpParams(d,l,"member"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let B="json";return f&&(B=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-r-u-m`,{context:b,params:d,responseType:B,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}getFacilityUserAttributes(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityUserAttributes.");if(null==t)throw new Error("Required parameter user was null or undefined when calling getFacilityUserAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"facility")),null!=t&&(s=this.addToHttpParams(s,t,"user"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-u`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getGroupAttributeById(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getGroupAttributeById.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"attributeId"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getGroupAttributeByName(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getGroupAttributeByName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"attributeName"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getGroupAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributes.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/g`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupAttributesByNames(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getGroupAttributesByNames.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/g-names`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getGroupResourceAttributeById(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeById.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeById.");if(null==r)throw new Error("Required parameter attributeId was null or undefined when calling getGroupResourceAttributeById.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),null!=r&&(o=this.addToHttpParams(o,r,"attributeId"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group-resource`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}getGroupResourceAttributeByName(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeByName.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeByName.");if(null==r)throw new Error("Required parameter attributeName was null or undefined when calling getGroupResourceAttributeByName.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),null!=r&&(o=this.addToHttpParams(o,r,"attributeName"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group-resource`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}getGroupResourceAttributes(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"resource"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/group-resource`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getHostAttributeById(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getHostAttributeById.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"host")),null!=t&&(s=this.addToHttpParams(s,t,"attributeId"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-host`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getHostAttributeByName(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getHostAttributeByName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"host")),null!=t&&(s=this.addToHttpParams(s,t,"attributeName"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-host`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getHostAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributes.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"host"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/h`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getHostAttributesByNames(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getHostAttributesByNames.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"host")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/h-names`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getLogins(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getLogins.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getLogins`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getMemberAndUserAttributes(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributes.");if(null==t)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"workWithUserAttributes"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-wu`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getMemberAndUserAttributesByNames(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==r)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributesByNames.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),t&&t.forEach(B=>{o=this.addToHttpParams(o,B,"attrNames[]")}),null!=r&&(o=this.addToHttpParams(o,r,"workWithUserAttributes"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names-wu`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}getMemberAttributeById(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getMemberAttributeById.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"attributeId"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getMemberAttributeByName(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getMemberAttributeByName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"attributeName"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getMemberAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributes.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getMemberAttributesByNames(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAttributesByNames.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getMemberGroupAndUserAttributesByNames(e,t,r,l,c="body",s=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==r)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==l)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberGroupAndUserAttributesByNames.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"member")),null!=t&&(d=this.addToHttpParams(d,t,"group")),r&&r.forEach(X=>{d=this.addToHttpParams(d,X,"attrNames[]")}),null!=l&&(d=this.addToHttpParams(d,l,"workWithUserAttributes"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let B="json";return f&&(B=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names-wu`,{context:b,params:d,responseType:B,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}getMemberGroupAttributeById(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeById.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeById.");if(null==r)throw new Error("Required parameter attributeId was null or undefined when calling getMemberGroupAttributeById.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group")),null!=r&&(o=this.addToHttpParams(o,r,"attributeId"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-group`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}getMemberGroupAttributeByName(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeByName.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeByName.");if(null==r)throw new Error("Required parameter attributeName was null or undefined when calling getMemberGroupAttributeByName.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group")),null!=r&&(o=this.addToHttpParams(o,r,"attributeName"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-group`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}getMemberGroupAttributes(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"group"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getMemberGroupAttributesByNames(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributesByNames.");if(null==r)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAttributesByNames.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group")),r&&r.forEach(B=>{o=this.addToHttpParams(o,B,"attrNames[]")});let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}getMemberResourceAndUserFacilityAttributes(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==r)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),null!=r&&(o=this.addToHttpParams(o,r,"workWithUserAttributes"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-wu`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}getMemberResourceAndUserFacilityAttributesByNames(e,t,r,l,c="body",s=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==r)throw new Error("Required parameter attrNames was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==l)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"member")),null!=t&&(d=this.addToHttpParams(d,t,"resource")),r&&r.forEach(X=>{d=this.addToHttpParams(d,X,"attrNames[]")}),null!=l&&(d=this.addToHttpParams(d,l,"workWithUserAttributes"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let B="json";return f&&(B=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-names-wu`,{context:b,params:d,responseType:B,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}getMemberResourceAttributeById(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeById.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeById.");if(null==r)throw new Error("Required parameter attributeId was null or undefined when calling getMemberResourceAttributeById.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),null!=r&&(o=this.addToHttpParams(o,r,"attributeId"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-resource`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}getMemberResourceAttributeByName(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeByName.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeByName.");if(null==r)throw new Error("Required parameter attributeName was null or undefined when calling getMemberResourceAttributeByName.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),null!=r&&(o=this.addToHttpParams(o,r,"attributeName"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-resource`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}getMemberResourceAttributes(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"resource"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getRequiredAttributesDefinition(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesDefinition.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"service"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributesDefinition`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRequiredAttributesFacility(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacility.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"facility"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/f`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRequiredAttributesFacilityService(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesFacilityService.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityService.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"service")),null!=t&&(s=this.addToHttpParams(s,t,"facility"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-f`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getRequiredAttributesFacilityServices(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesFacilityServices.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityServices.");let s=new M.LE({encoder:this.encoder});e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"services[]")}),null!=t&&(s=this.addToHttpParams(s,t,"facility"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-f`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getRequiredAttributesGroupResourceService(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==r)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesGroupResourceService.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"service")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),null!=r&&(o=this.addToHttpParams(o,r,"group"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}getRequiredAttributesHostService(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesHostService.");if(null==t)throw new Error("Required parameter host was null or undefined when calling getRequiredAttributesHostService.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"service")),null!=t&&(s=this.addToHttpParams(s,t,"host"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-h`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getRequiredAttributesMember(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMember.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"workWithUserAttributes"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getRequiredAttributesMemberGroup(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroup.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroup.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group")),null!=r&&(o=this.addToHttpParams(o,r,"workWithUserAttributes"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-g`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}getRequiredAttributesMemberGroupResourceService(e,t,r,l,c,s="body",o=!1,d){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==r)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==l)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");let u=new M.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"service")),null!=t&&(u=this.addToHttpParams(u,t,"resource")),null!=r&&(u=this.addToHttpParams(u,r,"group")),null!=l&&(u=this.addToHttpParams(u,l,"member")),null!=c&&(u=this.addToHttpParams(u,c,"workWithUserAttributes"));let f,h=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(h=h.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(h=h.set("Authorization","Bearer "+f));let b=d&&d.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let B=d&&d.context;void 0===B&&(B=new M.qT);let X="json";return b&&(X=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g-m`,{context:B,params:u,responseType:X,withCredentials:this.configuration.withCredentials,headers:h,observe:s,reportProgress:o})}getRequiredAttributesMemberGroupService(e,t,r,l,c="body",s=!1,o){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==r)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupService.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"service")),null!=t&&(d=this.addToHttpParams(d,t,"group")),null!=r&&(d=this.addToHttpParams(d,r,"member")),null!=l&&(d=this.addToHttpParams(d,l,"workWithUserAttributes"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let B="json";return f&&(B=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-g-m`,{context:b,params:d,responseType:B,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}getRequiredAttributesMemberResource(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResource.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResource.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),null!=r&&(o=this.addToHttpParams(o,r,"workWithUserAttributes"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-r`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}getRequiredAttributesMemberResourceService(e,t,r,l,c="body",s=!1,o){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==r)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResourceService.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"service")),null!=t&&(d=this.addToHttpParams(d,t,"resource")),null!=r&&(d=this.addToHttpParams(d,r,"member")),null!=l&&(d=this.addToHttpParams(d,l,"workWithUserAttributes"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let B="json";return f&&(B=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-m`,{context:b,params:d,responseType:B,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}getRequiredAttributesResource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResource.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/r`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRequiredAttributesResourceService(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceService.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"service")),null!=t&&(s=this.addToHttpParams(s,t,"resource"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getRequiredAttributesResourceServices(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesResourceServices.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceServices.");let s=new M.LE({encoder:this.encoder});e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"services[]")}),null!=t&&(s=this.addToHttpParams(s,t,"resource"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-r`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getRequiredAttributesUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUser.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRequiredAttributesUserFacility(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUserFacility.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesUserFacility.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"facility"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u-f`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getRequiredAttributesVoService(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesVoService.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling getRequiredAttributesVoService.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"service")),null!=t&&(s=this.addToHttpParams(s,t,"vo"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-v`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getResourceAttributeById(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getResourceAttributeById.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"attributeId"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-resource`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getResourceAttributeByName(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getResourceAttributeByName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"attributeName"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-resource`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getResourceAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributes.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getResourceAttributesByNames(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getResourceAttributesByNames.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-names`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getResourceGroupAndGroupAttributes(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==r)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributes.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"group")),null!=r&&(o=this.addToHttpParams(o,r,"workWithGroupAttributes"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-wg`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}getResourceGroupAndGroupAttributesByNames(e,t,r,l,c="body",s=!1,o){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==r)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==l)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"resource")),null!=t&&(d=this.addToHttpParams(d,t,"group")),r&&r.forEach(X=>{d=this.addToHttpParams(d,X,"attrNames[]")}),null!=l&&(d=this.addToHttpParams(d,l,"workWithGroupAttributes"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let B="json";return f&&(B=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-names-wg`,{context:b,params:d,responseType:B,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}getResourceGroupAttributes(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"group"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getResourceGroupMemberAttributesByNames(e,t,r,l,c="body",s=!1,o){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==r)throw new Error("Required parameter member was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==l)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupMemberAttributesByNames.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"resource")),null!=t&&(d=this.addToHttpParams(d,t,"group")),null!=r&&(d=this.addToHttpParams(d,r,"member")),l&&l.forEach(X=>{d=this.addToHttpParams(d,X,"attrNames[]")});let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let B="json";return f&&(B=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-m-names`,{context:b,params:d,responseType:B,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}getUserAttributeById(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getUserAttributeById.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"attributeId"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getUserAttributeByName(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getUserAttributeByName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"attributeName"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getUserAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributes.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/u`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getUserAttributesByNames(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getUserAttributesByNames.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/u-names`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getUserExtSourceAttributeById(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceAttributeById.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"userExtSource")),null!=t&&(s=this.addToHttpParams(s,t,"attributeId"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-ues`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getUserExtSourceAttributeByName(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceAttributeByName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"userExtSource")),null!=t&&(s=this.addToHttpParams(s,t,"attributeName"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-ues`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getUserExtSourceAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributes.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"userExtSource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/ues`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getUserExtSourceAttributesByNames(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getUserExtSourceAttributesByNames.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"userExtSource")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/ues-names`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getUserFacilityAttributeById(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeById.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeById.");if(null==r)throw new Error("Required parameter attributeId was null or undefined when calling getUserFacilityAttributeById.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"facility")),null!=r&&(o=this.addToHttpParams(o,r,"attributeId"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user_facility`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}getUserFacilityAttributeByName(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeByName.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeByName.");if(null==r)throw new Error("Required parameter attributeName was null or undefined when calling getUserFacilityAttributeByName.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"facility")),null!=r&&(o=this.addToHttpParams(o,r,"attributeName"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user_facility`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}getUserFacilityAttributes(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributes.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"facility"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/user-facility`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getVoAttributeById(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getVoAttributeById.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"attributeId"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-vo`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getVoAttributeByName(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getVoAttributeByName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"attributeName"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-vo`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getVoAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributes.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/vo`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getVoAttributesByNames(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getVoAttributesByNames.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/vo-names`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeAttributesForFacilityResourceGroupUserMember(e,t,r,l,c,s,o="body",d=!1,u){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==r)throw new Error("Required parameter group was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==l)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==c)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");let h=new M.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"facility")),null!=t&&(h=this.addToHttpParams(h,t,"resource")),null!=r&&(h=this.addToHttpParams(h,r,"group")),null!=l&&(h=this.addToHttpParams(h,l,"user")),null!=c&&(h=this.addToHttpParams(h,c,"member")),s&&s.forEach(Pe=>{h=this.addToHttpParams(h,Pe,"attributes[]")});let b,f=this.defaultHeaders;b=this.configuration.lookupCredential("BasicAuth"),b&&(f=f.set("Authorization","Basic "+b)),b=this.configuration.lookupCredential("BearerAuth"),b&&(f=f.set("Authorization","Bearer "+b));let B=u&&u.httpHeaderAccept;void 0===B&&(B=this.configuration.selectHeaderAccept(["application/json"])),void 0!==B&&(f=f.set("Accept",B));let X=u&&u.context;void 0===X&&(X=new M.qT);let he="json";return B&&(he=B.startsWith("text")?"text":this.configuration.isJsonMime(B)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-g-u-m`,null,{context:X,params:h,responseType:he,withCredentials:this.configuration.withCredentials,headers:f,observe:o,reportProgress:d})}removeAttributesForFacilityResourceUserMember(e,t,r,l,c,s="body",o=!1,d){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==r)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==l)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==c)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceUserMember.");let u=new M.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"facility")),null!=t&&(u=this.addToHttpParams(u,t,"resource")),null!=r&&(u=this.addToHttpParams(u,r,"user")),null!=l&&(u=this.addToHttpParams(u,l,"member")),c&&c.forEach(he=>{u=this.addToHttpParams(u,he,"attributes[]")});let f,h=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(h=h.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(h=h.set("Authorization","Bearer "+f));let b=d&&d.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let B=d&&d.context;void 0===B&&(B=new M.qT);let X="json";return b&&(X=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-u-m`,null,{context:B,params:u,responseType:X,withCredentials:this.configuration.withCredentials,headers:h,observe:s,reportProgress:o})}removeEntitylessAttribute(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter key was null or undefined when calling removeEntitylessAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeEntitylessAttribute.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"key")),null!=t&&(s=this.addToHttpParams(s,t,"attribute"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/e`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeFacilityAttribute(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeFacilityAttribute.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"facility")),null!=t&&(s=this.addToHttpParams(s,t,"attribute"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/f`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeFacilityAttributes(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeFacilityAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"facility")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attributes[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeGroupAttribute(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeGroupAttribute.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"attribute"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeGroupAttributes(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeGroupAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attributes[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeGroupResourceAttribute(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttribute.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttribute.");if(null==r)throw new Error("Required parameter attribute was null or undefined when calling removeGroupResourceAttribute.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),null!=r&&(o=this.addToHttpParams(o,r,"attribute"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g-r`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}removeGroupResourceAttributes(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributes.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributes.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),r&&r.forEach(B=>{o=this.addToHttpParams(o,B,"attributes[]")});let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}removeGroupResourceAttributesWorkWithGroupAttributes(e,t,r,l,c="body",s=!1,o){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==l)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"group")),null!=t&&(d=this.addToHttpParams(d,t,"resource")),r&&r.forEach(X=>{d=this.addToHttpParams(d,X,"attributes[]")}),null!=l&&(d=this.addToHttpParams(d,l,"workWithGroupAttributes"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let B="json";return f&&(B=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r-workWithGroupAttributes`,null,{context:b,params:d,responseType:B,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}removeHostAttribute(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling removeHostAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeHostAttribute.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"host")),null!=t&&(s=this.addToHttpParams(s,t,"attribute"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/h`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeHostAttributes(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling removeHostAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeHostAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"host")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attributes[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/h`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeMemberAttribute(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeMemberAttribute.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"attribute"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeMemberAttributes(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attributes[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeMemberAttributesWorkWithUserAttributes(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==r)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),t&&t.forEach(B=>{o=this.addToHttpParams(o,B,"attributes[]")}),null!=r&&(o=this.addToHttpParams(o,r,"workWithUserAttributes"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-workWithUserAttributes`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}removeMemberGroupAttribute(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttribute.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttribute.");if(null==r)throw new Error("Required parameter attribute was null or undefined when calling removeMemberGroupAttribute.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group")),null!=r&&(o=this.addToHttpParams(o,r,"attribute"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-g`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}removeMemberGroupAttributes(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributes.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributes.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group")),r&&r.forEach(B=>{o=this.addToHttpParams(o,B,"attributes[]")});let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}removeMemberGroupAttributesWorkWithUserAttributes(e,t,r,l,c="body",s=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==l)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"member")),null!=t&&(d=this.addToHttpParams(d,t,"group")),r&&r.forEach(X=>{d=this.addToHttpParams(d,X,"attributes[]")}),null!=l&&(d=this.addToHttpParams(d,l,"workWithUserAttributes"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let B="json";return f&&(B=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g-workWithUserAttributes`,null,{context:b,params:d,responseType:B,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}removeMemberResourceAttribute(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttribute.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttribute.");if(null==r)throw new Error("Required parameter attribute was null or undefined when calling removeMemberResourceAttribute.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),null!=r&&(o=this.addToHttpParams(o,r,"attribute"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-r`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}removeMemberResourceAttributes(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttributes.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeMemberResourceAttributes.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),r&&r.forEach(B=>{o=this.addToHttpParams(o,B,"attributes[]")});let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-r`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}removeResourceAttribute(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeResourceAttribute.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"attribute"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/r`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeResourceAttributes(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeResourceAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attributes[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/r`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeUesAttributes(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling removeUesAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeUesAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"userExtSource")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attributes[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/ues`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeUserAttribute(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeUserAttribute.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"attribute"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeUserAttributes(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeUserAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attributes[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeUserExtSourceAttribute(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSourceAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeUserExtSourceAttribute.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"userExtSource")),null!=t&&(s=this.addToHttpParams(s,t,"attribute"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/ues`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeUserFacilityAttribute(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttribute.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttribute.");if(null==r)throw new Error("Required parameter attribute was null or undefined when calling removeUserFacilityAttribute.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"facility")),null!=r&&(o=this.addToHttpParams(o,r,"attribute"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u-f`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}removeUserFacilityAttributes(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttributes.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttributes.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeUserFacilityAttributes.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"facility")),r&&r.forEach(B=>{o=this.addToHttpParams(o,B,"attributes[]")});let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u-f`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}removeVoAttribute(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeVoAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeVoAttribute.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"attribute"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/v`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeVoAttributes(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeVoAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeVoAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attributes[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/v`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}setAttributeActionCriticality(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling setAttributeActionCriticality.");if(null==t)throw new Error("Required parameter action was null or undefined when calling setAttributeActionCriticality.");if(null==r)throw new Error("Required parameter critical was null or undefined when calling setAttributeActionCriticality.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"attributeDefinition")),null!=t&&(o=this.addToHttpParams(o,t,"action")),null!=r&&(o=this.addToHttpParams(o,r,"critical"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/setAttributeActionCriticality`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}setAttributePolicyCollections(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputAttributePolicyCollections was null or undefined when calling setAttributePolicyCollections.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributePolicyCollections`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setAttributeRights(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputAttributeRights was null or undefined when calling setAttributeRights.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributeRights`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setEntitylessAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputEntitylessAttribute was null or undefined when calling setEntitylessAttribute.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/entityless`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setFacilityAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetFacilityAttribute was null or undefined when calling setFacilityAttribute.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/facility`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setFacilityAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetFacilityAttributes was null or undefined when calling setFacilityAttributes.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setFacilityResourceGroupUserMemberAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetFacilityResourceGroupUserMemberAttributes was null or undefined when calling setFacilityResourceGroupUserMemberAttributes.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-g-u-m`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setFacilityResourceUserMemberAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetFacilityResourceUserMemberAttributes was null or undefined when calling setFacilityResourceUserMemberAttributes.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-u-m`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setFacilityUserAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetFacilityUserAttributes was null or undefined when calling setFacilityUserAttributes.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-u`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setGroupAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetGroupAttribute was null or undefined when calling setGroupAttribute.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/group`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setGroupAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetGroupAttributes was null or undefined when calling setGroupAttributes.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/g`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setGroupResourceAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetGroupResourceAttribute was null or undefined when calling setGroupResourceAttribute.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/group-resource`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setGroupResourceAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetGroupResourceAttributes was null or undefined when calling setGroupResourceAttributes.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/group-resource`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setHostAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetHostAttribute was null or undefined when calling setHostAttribute.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/host`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setHostAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetHostAttributes was null or undefined when calling setHostAttributes.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/h`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setMemberAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberAttribute was null or undefined when calling setMemberAttribute.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setMemberAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberAttributes was null or undefined when calling setMemberAttributes.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setMemberGroupAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberGroupAttribute was null or undefined when calling setMemberGroupAttribute.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member-group`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setMemberGroupAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberGroupAttributes was null or undefined when calling setMemberGroupAttributes.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setMemberGroupWithUserAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberGroupWithUserAttributes was null or undefined when calling setMemberGroupWithUserAttributes.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g-wu`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setMemberResourceAndUserAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberResourceAndUserAttributes was null or undefined when calling setMemberResourceAndUserAttributes.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r-wu`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setMemberResourceAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberResourceAttribute was null or undefined when calling setMemberResourceAttribute.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member-resource`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setMemberResourceAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberResourceAttributes was null or undefined when calling setMemberResourceAttributes.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setMemberWithUserAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberWithUserAttributes was null or undefined when calling setMemberWithUserAttributes.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-wu`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setResourceAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetResourceAttribute was null or undefined when calling setResourceAttribute.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/resource`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setResourceAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetResourceAttributes was null or undefined when calling setResourceAttributes.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setResourceGroupAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetResourceGroupAttributes was null or undefined when calling setResourceGroupAttributes.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setResourceGroupWithGroupAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetResourceGroupWithGroupAttributes was null or undefined when calling setResourceGroupWithGroupAttributes.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g-wg`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setUserAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetUserAttribute was null or undefined when calling setUserAttribute.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/user`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setUserAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetUserAttributes was null or undefined when calling setUserAttributes.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/u`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setUserExtSourceAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetUserExtSourceAttribute was null or undefined when calling setUserExtSourceAttribute.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/userExtSource`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setUserExtSourceAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetUserExtSourceAttributes was null or undefined when calling setUserExtSourceAttributes.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/ues`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setUserFacilityAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetUserFacilityAttribute was null or undefined when calling setUserFacilityAttribute.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/facility-user`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setUserFacilityAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetUserFacilityAttributes was null or undefined when calling setUserFacilityAttributes.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/facility-user`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setVoAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetVoAttribute was null or undefined when calling setVoAttribute.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/vo`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setVoAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetVoAttributes was null or undefined when calling setVoAttributes.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/vo`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}updateAttributeDefinition(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputAttributeDefinition was null or undefined when calling updateAttributeDefinition.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/updateAttributeDefinition`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(Ri,8),i.LFG(Et,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Cs=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new M.WM,this.configuration=new Et,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new zi}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}getAllPolicies(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllPolicies`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAllRolesManagementRules(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllRolesManagementRules`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAuthzAdminGroups(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter role was null or undefined when calling getAuthzAdminGroups.");if(null==t)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzAdminGroups.");if(null==r)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzAdminGroups.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"role")),null!=t&&(o=this.addToHttpParams(o,t,"complementaryObjectId")),null!=r&&(o=this.addToHttpParams(o,r,"complementaryObjectName"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAdminGroups`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}getAuthzRichAdmins(e,t,r,l,c,s,o="body",d=!1,u){if(null==e)throw new Error("Required parameter role was null or undefined when calling getAuthzRichAdmins.");if(null==t)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzRichAdmins.");if(null==r)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzRichAdmins.");if(null==l)throw new Error("Required parameter specificAttributes was null or undefined when calling getAuthzRichAdmins.");let h=new M.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"role")),null!=t&&(h=this.addToHttpParams(h,t,"complementaryObjectId")),null!=r&&(h=this.addToHttpParams(h,r,"complementaryObjectName")),l&&l.forEach(Pe=>{h=this.addToHttpParams(h,Pe,"specificAttributes")}),null!=c&&(h=this.addToHttpParams(h,c,"allUserAttributes")),null!=s&&(h=this.addToHttpParams(h,s,"onlyDirectAdmins"));let b,f=this.defaultHeaders;b=this.configuration.lookupCredential("BasicAuth"),b&&(f=f.set("Authorization","Basic "+b)),b=this.configuration.lookupCredential("BearerAuth"),b&&(f=f.set("Authorization","Bearer "+b));let B=u&&u.httpHeaderAccept;void 0===B&&(B=this.configuration.selectHeaderAccept(["application/json"])),void 0!==B&&(f=f.set("Accept",B));let X=u&&u.context;void 0===X&&(X=new M.qT);let he="json";return B&&(he=B.startsWith("text")?"text":this.configuration.isJsonMime(B)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getRichAdmins`,{context:X,params:h,responseType:he,withCredentials:this.configuration.withCredentials,headers:f,observe:o,reportProgress:d})}getFacilitiesWhereUserIsInRoles(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getFacilitiesWhereUserIsInRoles.");let s=new M.LE({encoder:this.encoder});null!=t&&(s=this.addToHttpParams(s,t,"user")),e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"roles[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getFacilitiesWhereUserIsInRoles`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getGroupRoleNames(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupRoleNames`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupRoles(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"groupId"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/getGroupRoles`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupsWhereUserIsInRoles(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getGroupsWhereUserIsInRoles.");let s=new M.LE({encoder:this.encoder});null!=t&&(s=this.addToHttpParams(s,t,"user")),e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"roles[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupsWhereUserIsInRoles`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getLoggedUser(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getLoggedUser`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getMembersWhereUserIsInRoles(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getMembersWhereUserIsInRoles.");let s=new M.LE({encoder:this.encoder});null!=t&&(s=this.addToHttpParams(s,t,"user")),e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"roles[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getMembersWhereUserIsInRoles`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getPerunPrincipal(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPerunPrincipal`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPrincipalRoleNames(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPrincipalRoleNames`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getResourcesWhereUserIsInRoles(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getResourcesWhereUserIsInRoles.");let s=new M.LE({encoder:this.encoder});null!=t&&(s=this.addToHttpParams(s,t,"user")),e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"roles[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getResourcesWhereUserIsInRoles`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getSecurityTeamsWhereUserIsInRoles(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getSecurityTeamsWhereUserIsInRoles.");let s=new M.LE({encoder:this.encoder});null!=t&&(s=this.addToHttpParams(s,t,"user")),e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"roles[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getSecurityTeamsWhereUserIsInRoles`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getUserRoleNames(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoleNames`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getUserRoles(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"userId"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoles`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getVosWhereUserIsInRoles(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getVosWhereUserIsInRoles.");let s=new M.LE({encoder:this.encoder});null!=t&&(s=this.addToHttpParams(s,t,"user")),e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"roles[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getVosWhereUserIsInRoles`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}isFacilityAdmin(e,t="body",r=!1,l){let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"facility"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isFacilityAdmin`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}isGroupAdmin(e,t="body",r=!1,l){let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isGroupAdmin`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}isPerunAdmin(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/isPerunAdmin`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}isVoAdmin(e,t="body",r=!1,l){let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isVoAdmin`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}keepAlive(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/keepAlive`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}loadAuthorizationComponents(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/loadAuthorizationComponents`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}refreshMfa(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/refreshMfa`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}setRoleForGroup(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter SetRoleForGroup was null or undefined when calling setRoleForGroup.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/g`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setRoleForUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter SetRoleForUser was null or undefined when calling setRoleForUser.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/u`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setRoleWithGroupComplementaryObject(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter SetRoleWithGroupComplementaryObject was null or undefined when calling setRoleWithGroupComplementaryObject.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/g-co`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setRoleWithUserComplementaryObject(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter SetRoleWithUserComplementaryObject was null or undefined when calling setRoleWithUserComplementaryObject.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/u-co`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}unsetRoleForGroup(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter UnsetRoleForGroup was null or undefined when calling unsetRoleForGroup.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/g`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}unsetRoleForUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter UnsetRoleForUser was null or undefined when calling unsetRoleForUser.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/u`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}unsetRoleWithGroupComplementaryObject(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter UnsetRoleWithGroupComplementaryObject was null or undefined when calling unsetRoleWithGroupComplementaryObject.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/g-co`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}unsetRoleWithUserComplementaryObject(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter UnsetRoleWithUserComplementaryObject was null or undefined when calling unsetRoleWithUserComplementaryObject.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/u-co`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(Ri,8),i.LFG(Et,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),vs=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new M.WM,this.configuration=new Et,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new zi}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}changeConsentStatus(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter consent was null or undefined when calling changeConsentStatus.");if(null==t)throw new Error("Required parameter status was null or undefined when calling changeConsentStatus.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"consent")),null!=t&&(s=this.addToHttpParams(s,t,"status"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/consentsManager/changeConsentStatus`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}evaluateConsentsForConsentHub(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter consentHub was null or undefined when calling evaluateConsentsForConsentHub.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"consentHub"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/consentsManager/evaluateConsentsForConsentHub`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}evaluateConsentsForService(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter service was null or undefined when calling evaluateConsentsForService.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"service"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/consentsManager/evaluateConsentsForService`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllConsentHubs(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getAllConsentHubs`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAllConsents(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getAllConsents`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getConsentById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getConsentById.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentById`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getConsentForUserAndConsentHub(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter user was null or undefined when calling getConsentForUserAndConsentHub.");if(null==t)throw new Error("Required parameter consentHub was null or undefined when calling getConsentForUserAndConsentHub.");if(null==r)throw new Error("Required parameter status was null or undefined when calling getConsentForUserAndConsentHub.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"consentHub")),null!=r&&(o=this.addToHttpParams(o,r,"status"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentForUserAndConsentHub`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}getConsentHubByFacility(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getConsentHubByFacility.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"facility"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentHubByFacility`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getConsentHubById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getConsentHubById.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentHubById`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getConsentHubByName(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter name was null or undefined when calling getConsentHubByName.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"name"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentHubByName`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getConsentsForConsentHub(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter consentHub was null or undefined when calling getConsentsForConsentHub.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"consentHub"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentsForConsentHub/id`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getConsentsForConsentHubWithStatus(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter consentHub was null or undefined when calling getConsentsForConsentHubWithStatus.");if(null==t)throw new Error("Required parameter status was null or undefined when calling getConsentsForConsentHubWithStatus.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"consentHub")),null!=t&&(s=this.addToHttpParams(s,t,"status"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentsForConsentHub/id-s`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getConsentsForUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getConsentsForUser.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentsForUser/id`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getConsentsForUserAndConsentHub(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getConsentsForUserAndConsentHub.");if(null==t)throw new Error("Required parameter consentHub was null or undefined when calling getConsentsForUserAndConsentHub.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"consentHub"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentsForUserAndConsentHub`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getConsentsForUserWithStatus(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getConsentsForUserWithStatus.");if(null==t)throw new Error("Required parameter status was null or undefined when calling getConsentsForUserWithStatus.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"status"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentsForUser/id-s`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}updateConsentHub(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdateConsentHub was null or undefined when calling updateConsentHub.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/consentsManager/updateConsentHub`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(Ri,8),i.LFG(Et,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),uo=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new M.WM,this.configuration=new Et,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new zi}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}addMember(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter groups was null or undefined when calling addMember.");if(null==t)throw new Error("Required parameter member was null or undefined when calling addMember.");let s=new M.LE({encoder:this.encoder});e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"groups[]")}),null!=t&&(s=this.addToHttpParams(s,t,"member"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/addMember`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}addMembers(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling addMembers.");if(null==t)throw new Error("Required parameter members was null or undefined when calling addMembers.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"members[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/addMembers`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}allowGroupToHierarchicalVo(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling allowGroupToHierarchicalVo.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling allowGroupToHierarchicalVo.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"vo"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/allowGroupToHierarchicalVo`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}canExtendMembershipInGroup(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling canExtendMembershipInGroup.");if(null==t)throw new Error("Required parameter group was null or undefined when calling canExtendMembershipInGroup.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"group"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/canExtendMembershipInGroup`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}createGroupUnion(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resultGroup was null or undefined when calling createGroupUnion.");if(null==t)throw new Error("Required parameter operandGroup was null or undefined when calling createGroupUnion.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resultGroup")),null!=t&&(s=this.addToHttpParams(s,t,"operandGroup"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroupUnion`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}createGroupWithParentGroupNameDescription(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter parentGroup was null or undefined when calling createGroupWithParentGroupNameDescription.");if(null==t)throw new Error("Required parameter name was null or undefined when calling createGroupWithParentGroupNameDescription.");if(null==r)throw new Error("Required parameter description was null or undefined when calling createGroupWithParentGroupNameDescription.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"parentGroup")),null!=t&&(o=this.addToHttpParams(o,t,"name")),null!=r&&(o=this.addToHttpParams(o,r,"description"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroup/pg-n-d`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}createGroupWithVoNameDescription(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter vo was null or undefined when calling createGroupWithVoNameDescription.");if(null==t)throw new Error("Required parameter name was null or undefined when calling createGroupWithVoNameDescription.");if(null==r)throw new Error("Required parameter description was null or undefined when calling createGroupWithVoNameDescription.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"name")),null!=r&&(o=this.addToHttpParams(o,r,"description"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroup/v-n-d`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}deleteGroup(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling deleteGroup.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"force"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/deleteGroup`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}deleteGroups(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputDeleteGroups was null or undefined when calling deleteGroups.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/deleteGroups`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}disallowGroupToHierarchicalVo(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling disallowGroupToHierarchicalVo.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling disallowGroupToHierarchicalVo.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"vo"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/disallowGroupToHierarchicalVo`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}extendMembershipInGroup(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling extendMembershipInGroup.");if(null==t)throw new Error("Required parameter group was null or undefined when calling extendMembershipInGroup.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"group"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/extendMembershipInGroup`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}forceAllSubGroupsSynchronization(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling forceAllSubGroupsSynchronization.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceAllSubGroupsSynchronization`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}forceGroupStructureSynchronization(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling forceGroupStructureSynchronization.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceGroupStructureSynchronization`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}forceGroupSynchronization(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling forceGroupSynchronization.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceGroupSynchronization`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllAllowedGroupsToHierarchicalVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getAllAllowedGroupsToHierarchicalVo.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllAllowedGroupsToHierarchicalVo/v`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllGroups(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getAllGroups.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllGroups`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllGroupsFromAllVos(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllGroups/all`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAllMemberGroups(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getAllMemberGroups.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllMemberGroups`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllRichGroups(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllRichGroups.");let c=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"attrNames[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllRichGroups`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllRichGroupsWithAttributesByNames(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getAllRichGroupsWithAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getAllRichGroupsWithAttributesByNames.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllRichGroupsWithAttributesByNames`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getAllRichSubGroupsWithGroupAttributesByNames(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getAllRichSubGroupsWithGroupAttributesByNames.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllRichSubGroupsWithAttributesByNames`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getGroupById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getGroupById.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupById`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupByName(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getGroupByName.");if(null==t)throw new Error("Required parameter name was null or undefined when calling getGroupByName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"name"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupByName`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getGroupMemberById(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupMemberById.");if(null==t)throw new Error("Required parameter member was null or undefined when calling getGroupMemberById.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"member"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMemberById`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getGroupMembers(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupMembers.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembers`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupMembersCount(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCount.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCount`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupMembersCountsByGroupStatus(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByGroupStatus.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCountsByGroupStatus`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupMembersCountsByVoStatus(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByVoStatus.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCountsByVoStatus`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupRichMembersByIds(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupRichMembersByIds.");if(null==t)throw new Error("Required parameter members was null or undefined when calling getGroupRichMembersByIds.");if(null==r)throw new Error("Required parameter attrNames was null or undefined when calling getGroupRichMembersByIds.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),t&&t.forEach(B=>{o=this.addToHttpParams(o,B,"members[]")}),r&&r.forEach(B=>{o=this.addToHttpParams(o,B,"attrNames[]")});let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupRichMembersByIds`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}getGroupUnions(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupUnions.");if(null==t)throw new Error("Required parameter reverseDirection was null or undefined when calling getGroupUnions.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"reverseDirection"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupUnions`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getGroupsByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getGroupsByIds.");let c=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"ids[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupsByIds`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupsPage(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputGetPaginatedGroups was null or undefined when calling getGroupsPage.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/getGroupsPage`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}getGroupsWhereMemberIsActive(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getGroupsWhereMemberIsActive.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupsWhereMemberIsActive`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getIndirectMembershipPaths(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getIndirectMembershipPaths.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getIndirectMembershipPaths.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"group"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getIndirectMembershipPaths`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getMemberGroups(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroups.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getMemberGroups`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getMemberRichGroupsWithAttributesByNames(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberRichGroupsWithAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getMemberRichGroupsWithAttributesByNames.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getMemberRichGroupsWithAttributesByNames`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getParentGroup(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getParentGroup.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getParentGroup`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRichGroupByIdWithAttributesByNames(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter groupId was null or undefined when calling getRichGroupByIdWithAttributesByNames.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"groupId")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getRichGroupByIdWithAttributesByNames`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getSubgroupsPage(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputGetPaginatedSubgroups was null or undefined when calling getSubgroupsPage.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/getSubgroupsPage`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}getVoAllAllowedGroupsToHierarchicalVo(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAllAllowedGroupsToHierarchicalVo.");if(null==t)throw new Error("Required parameter memberVo was null or undefined when calling getVoAllAllowedGroupsToHierarchicalVo.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"memberVo"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllAllowedGroupsToHierarchicalVo/v-v`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}isAllowedGroupToHierarchicalVo(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling isAllowedGroupToHierarchicalVo.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling isAllowedGroupToHierarchicalVo.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"vo"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/isAllowedGroupToHierarchicalVo`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}isGroupMember(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling isGroupMember.");if(null==t)throw new Error("Required parameter group was null or undefined when calling isGroupMember.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"group"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/isGroupMember`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}moveGroupWithDestinationGroupMovingGroup(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter movingGroup was null or undefined when calling moveGroupWithDestinationGroupMovingGroup.");let s=new M.LE({encoder:this.encoder});null!=t&&(s=this.addToHttpParams(s,t,"destinationGroup")),null!=e&&(s=this.addToHttpParams(s,e,"movingGroup"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/moveGroup/dg-mg`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeGroupUnion(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resultGroup was null or undefined when calling removeGroupUnion.");if(null==t)throw new Error("Required parameter operandGroup was null or undefined when calling removeGroupUnion.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resultGroup")),null!=t&&(s=this.addToHttpParams(s,t,"operandGroup"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeGroupUnion`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeMember(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter groups was null or undefined when calling removeMember.");if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMember.");let s=new M.LE({encoder:this.encoder});e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"groups[]")}),null!=t&&(s=this.addToHttpParams(s,t,"member"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeMember`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeMembers(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeMembers.");if(null==t)throw new Error("Required parameter members was null or undefined when calling removeMembers.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"members[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeMembers`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}setGroupsMemberStatus(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling setGroupsMemberStatus.");if(null==t)throw new Error("Required parameter group was null or undefined when calling setGroupsMemberStatus.");if(null==r)throw new Error("Required parameter status was null or undefined when calling setGroupsMemberStatus.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group")),null!=r&&(o=this.addToHttpParams(o,r,"status"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/setGroupsMemberStatus`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}updateGroup(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdateGroup was null or undefined when calling updateGroup.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/updateGroup`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(Ri,8),i.LFG(Et,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Jr=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new M.WM,this.configuration=new Et,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new zi}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}canExtendMembership(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling canExtendMembership.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/canExtendMembership`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}createMemberForCandidate(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateMemberForCandidate was null or undefined when calling createMemberForCandidate.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/c`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}createMemberForUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateMemberForUser was null or undefined when calling createMemberForUser.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/u`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}createMemberFromExtSource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateMemberFromExtSource was null or undefined when calling createMemberFromExtSource.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/extSource`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}createSpecificMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSpecificMember was null or undefined when calling createSpecificMember.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSpecificMember`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}createSponsoredMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateSponsoredMember was null or undefined when calling createSponsoredMember.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMember/withFullName`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}createSponsoredMembers(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateSponsoredMembers was null or undefined when calling createSponsoredMembers.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMembers`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}createSponsoredMembersFromCSV(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateSponsoredMemberFromCSV was null or undefined when calling createSponsoredMembersFromCSV.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMembersFromCSV`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}deleteMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling deleteMember.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/deleteMember`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}deleteMembers(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter members was null or undefined when calling deleteMembers.");let c=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"members[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/deleteMembers`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}extendMembership(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling extendMembership.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/extendMembership`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}findCompleteRichMembersByAttributes(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersByAttributes.");if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersByAttributes.");let o=new M.LE({encoder:this.encoder});e&&e.forEach(B=>{o=this.addToHttpParams(o,B,"attrsNames[]")}),null!=t&&(o=this.addToHttpParams(o,t,"searchString")),r&&r.forEach(B=>{o=this.addToHttpParams(o,B,"allowedStatuses[]")});let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/attrs`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}findCompleteRichMembersForGroup(e,t,r,l,c,s,o="body",d=!1,u){if(null==e)throw new Error("Required parameter group was null or undefined when calling findCompleteRichMembersForGroup.");if(null==t)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersForGroup.");if(null==r)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForGroup.");if(null==l)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling findCompleteRichMembersForGroup.");let h=new M.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"group")),t&&t.forEach(Pe=>{h=this.addToHttpParams(h,Pe,"attrsNames[]")}),c&&c.forEach(Pe=>{h=this.addToHttpParams(h,Pe,"allowedStatuses[]")}),s&&s.forEach(Pe=>{h=this.addToHttpParams(h,Pe,"allowedGroupStatuses[]")}),null!=r&&(h=this.addToHttpParams(h,r,"searchString")),null!=l&&(h=this.addToHttpParams(h,l,"lookingInParentGroup"));let b,f=this.defaultHeaders;b=this.configuration.lookupCredential("BasicAuth"),b&&(f=f.set("Authorization","Basic "+b)),b=this.configuration.lookupCredential("BearerAuth"),b&&(f=f.set("Authorization","Bearer "+b));let B=u&&u.httpHeaderAccept;void 0===B&&(B=this.configuration.selectHeaderAccept(["application/json"])),void 0!==B&&(f=f.set("Accept",B));let X=u&&u.context;void 0===X&&(X=new M.qT);let he="json";return B&&(he=B.startsWith("text")?"text":this.configuration.isJsonMime(B)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/g`,{context:X,params:h,responseType:he,withCredentials:this.configuration.withCredentials,headers:f,observe:o,reportProgress:d})}findCompleteRichMembersForVo(e,t,r,l,c="body",s=!1,o){if(null==e)throw new Error("Required parameter vo was null or undefined when calling findCompleteRichMembersForVo.");if(null==t)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersForVo.");if(null==r)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForVo.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo")),t&&t.forEach(X=>{d=this.addToHttpParams(d,X,"attrsNames[]")}),l&&l.forEach(X=>{d=this.addToHttpParams(d,X,"allowedStatuses[]")}),null!=r&&(d=this.addToHttpParams(d,r,"searchString"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let B="json";return f&&(B=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/v`,{context:b,params:d,responseType:B,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}findMembersInVo(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling findMembersInVo.");if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findMembersInVo.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"searchString"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findMembersInVo`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}findSponsoredCompleteRichMembersForVo(e,t,r,l,c="body",s=!1,o){if(null==e)throw new Error("Required parameter vo was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==t)throw new Error("Required parameter attrsNames was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==r)throw new Error("Required parameter searchString was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==l)throw new Error("Required parameter onlySponsored was null or undefined when calling findSponsoredCompleteRichMembersForVo.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo")),t&&t.forEach(X=>{d=this.addToHttpParams(d,X,"attrsNames[]")}),null!=r&&(d=this.addToHttpParams(d,r,"searchString")),null!=l&&(d=this.addToHttpParams(d,l,"onlySponsored"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let B="json";return f&&(B=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/v-sponsored`,{context:b,params:d,responseType:B,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}getAllMembers(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllMembers`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAllNamespacesRules(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllNamespacesRules`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAllSponsoredMembers(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembers.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllSponsoredMembers`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllSponsoredMembersAndTheirSponsors(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembersAndTheirSponsors.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getAllSponsoredMembersAndTheirSponsors.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllSponsoredMembersAndTheirSponsors`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getCompleteRichMembersForGroup(e,t,r,l,c,s="body",o=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling getCompleteRichMembersForGroup.");if(null==t)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling getCompleteRichMembersForGroup.");let u=new M.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"group")),r&&r.forEach(he=>{u=this.addToHttpParams(u,he,"allowedStatuses[]")}),l&&l.forEach(he=>{u=this.addToHttpParams(u,he,"allowedGroupStatuses[]")}),null!=t&&(u=this.addToHttpParams(u,t,"lookingInParentGroup")),c&&c.forEach(he=>{u=this.addToHttpParams(u,he,"attrsNames[]")});let f,h=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(h=h.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(h=h.set("Authorization","Bearer "+f));let b=d&&d.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let B=d&&d.context;void 0===B&&(B=new M.qT);let X="json";return b&&(X=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/g`,{context:B,params:u,responseType:X,withCredentials:this.configuration.withCredentials,headers:h,observe:s,reportProgress:o})}getCompleteRichMembersForGroupResource(e,t,r,l,c="body",s=!1,o){if(null==e)throw new Error("Required parameter group was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==r)throw new Error("Required parameter attrsNames was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==l)throw new Error("Required parameter allowedStatuses was null or undefined when calling getCompleteRichMembersForGroupResource.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"group")),null!=t&&(d=this.addToHttpParams(d,t,"resource")),r&&r.forEach(X=>{d=this.addToHttpParams(d,X,"attrsNames[]")}),l&&l.forEach(X=>{d=this.addToHttpParams(d,X,"allowedStatuses[]")});let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let B="json";return f&&(B=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/g-r`,{context:b,params:d,responseType:B,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}getCompleteRichMembersForVo(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getCompleteRichMembersForVo.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),t&&t.forEach(B=>{o=this.addToHttpParams(o,B,"allowedStatuses[]")}),r&&r.forEach(B=>{o=this.addToHttpParams(o,B,"attrsNames[]")});let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/v`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}getMemberByExtSourceNameAndExtLogin(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");if(null==t)throw new Error("Required parameter extLogin was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");if(null==r)throw new Error("Required parameter extSourceName was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"extLogin")),null!=r&&(o=this.addToHttpParams(o,r,"extSourceName"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberByExtSourceNameAndExtLogin`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}getMemberById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getMemberById.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberById`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getMemberByUser(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getMemberByUser.");if(null==t)throw new Error("Required parameter user was null or undefined when calling getMemberByUser.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"user"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberByUser`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getMembers(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getMembers.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"status"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembers`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getMembersByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getMembersByIds.");let c=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"ids[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersByIds`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getMembersByUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getMembersByUser.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersByUser`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getMembersCount(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getMembersCount.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersCount`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getMembersPage(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputGetPaginatedMembers was null or undefined when calling getMembersPage.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/getMembersPage`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}getMembersWithStatusCount(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getMembersWithStatusCount.");if(null==t)throw new Error("Required parameter status was null or undefined when calling getMembersWithStatusCount.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"status"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersCount/status`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getRichMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getRichMember.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMember`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRichMemberWithAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getRichMemberWithAttributes.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMemberWithAttributes`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRichMembersByIds(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichMembersByIds.");let s=new M.LE({encoder:this.encoder});e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"ids[]")}),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMembersByIds`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getRichMembersNoUserAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getRichMembersNoUserAttributes.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMembersNoUserAttributes`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getSponsoredMembers(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembers.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsoredMembers/v`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getSponsoredMembersAndTheirSponsors(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembersAndTheirSponsors.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getSponsoredMembersAndTheirSponsors.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsoredMembersAndTheirSponsors`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getSponsorsByMember(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getSponsorsByMember.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsors/member`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getSponsorsByVo(e,t,r,l,c="body",s=!1,o){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getSponsorsByVo.");if(null==t)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsByVo.");if(null==r)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsByVo.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo")),null!=t&&(d=this.addToHttpParams(d,t,"extSourceName")),null!=r&&(d=this.addToHttpParams(d,r,"extLogin")),l&&l.forEach(X=>{d=this.addToHttpParams(d,X,"attrNames[]")});let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let B="json";return f&&(B=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsors/vo`,{context:b,params:d,responseType:B,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}moveMembership(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter vo was null or undefined when calling moveMembership.");if(null==t)throw new Error("Required parameter sourceUser was null or undefined when calling moveMembership.");if(null==r)throw new Error("Required parameter targetUser was null or undefined when calling moveMembership.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"sourceUser")),null!=r&&(o=this.addToHttpParams(o,r,"targetUser"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/moveMembership`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}removeSponsor(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeSponsor.");if(null==t)throw new Error("Required parameter sponsor was null or undefined when calling removeSponsor.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"sponsor"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/removeSponsor`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}sendAccountActivationLinkEmail(e,t,r,l,c="body",s=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling sendAccountActivationLinkEmail.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling sendAccountActivationLinkEmail.");if(null==r)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendAccountActivationLinkEmail.");if(null==l)throw new Error("Required parameter language was null or undefined when calling sendAccountActivationLinkEmail.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"member")),null!=t&&(d=this.addToHttpParams(d,t,"namespace")),null!=r&&(d=this.addToHttpParams(d,r,"emailAttributeURN")),null!=l&&(d=this.addToHttpParams(d,l,"language"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let B="json";return f&&(B=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sendAccountActivationLinkEmail`,null,{context:b,params:d,responseType:B,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}sendPasswordResetLinkEmail(e,t,r,l,c,s="body",o=!1,d){if(null==e)throw new Error("Required parameter member was null or undefined when calling sendPasswordResetLinkEmail.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling sendPasswordResetLinkEmail.");if(null==r)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendPasswordResetLinkEmail.");if(null==l)throw new Error("Required parameter language was null or undefined when calling sendPasswordResetLinkEmail.");let u=new M.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"member")),null!=t&&(u=this.addToHttpParams(u,t,"namespace")),null!=r&&(u=this.addToHttpParams(u,r,"emailAttributeURN")),null!=l&&(u=this.addToHttpParams(u,l,"language")),null!=c&&(u=this.addToHttpParams(u,c,"baseUrl"));let f,h=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(h=h.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(h=h.set("Authorization","Bearer "+f));let b=d&&d.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let B=d&&d.context;void 0===B&&(B=new M.qT);let X="json";return b&&(X=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sendPasswordResetLinkEmail`,null,{context:B,params:u,responseType:X,withCredentials:this.configuration.withCredentials,headers:h,observe:s,reportProgress:o})}setSponsoredMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetSponsoredMember was null or undefined when calling setSponsoredMember.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/setSponsoredMember`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setSponsorshipForMember(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter sponsoredMember was null or undefined when calling setSponsorshipForMember.");if(null==t)throw new Error("Required parameter sponsor was null or undefined when calling setSponsorshipForMember.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"sponsoredMember")),null!=t&&(o=this.addToHttpParams(o,t,"sponsor")),null!=r&&(o=this.addToHttpParams(o,r,"validityTo"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/setSponsorshipForMember`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}setStatus(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling setStatus.");if(null==t)throw new Error("Required parameter status was null or undefined when calling setStatus.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"status"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/setStatus`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}sponsorMember(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling sponsorMember.");if(null==t)throw new Error("Required parameter sponsor was null or undefined when calling sponsorMember.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"sponsor")),null!=r&&(o=this.addToHttpParams(o,r,"validityTo"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sponsorMember`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}updateSponsorshipValidity(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling updateSponsorshipValidity.");if(null==t)throw new Error("Required parameter sponsor was null or undefined when calling updateSponsorshipValidity.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"sponsor")),null!=r&&(o=this.addToHttpParams(o,r,"validityTo"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/updateSponsorshipValidity`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}validateMemberAsync(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling validateMemberAsync.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/validateMemberAsync`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(Ri,8),i.LFG(Et,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),po=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new M.WM,this.configuration=new Et,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new zi}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}sentMessageToRTWithMemberQueue(e,t,r,l,c="body",s=!1,o){if(null==e)throw new Error("Required parameter memberId was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==r)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==l)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithMemberQueue.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"memberId")),null!=t&&(d=this.addToHttpParams(d,t,"queue")),null!=r&&(d=this.addToHttpParams(d,r,"subject")),null!=l&&(d=this.addToHttpParams(d,l,"text"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let B="json";return f&&(B=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/m-q`,null,{context:b,params:d,responseType:B,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}sentMessageToRTWithQueue(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithQueue.");if(null==t)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithQueue.");if(null==r)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithQueue.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"queue")),null!=t&&(o=this.addToHttpParams(o,t,"subject")),null!=r&&(o=this.addToHttpParams(o,r,"text"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/q`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}sentMessageToRTWithVo(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVo.");if(null==t)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVo.");if(null==r)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVo.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"voId")),null!=t&&(o=this.addToHttpParams(o,t,"subject")),null!=r&&(o=this.addToHttpParams(o,r,"text"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}sentMessageToRTWithVoQueue(e,t,r,l,c="body",s=!1,o){if(null==e)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==r)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==l)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVoQueue.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"voId")),null!=t&&(d=this.addToHttpParams(d,t,"queue")),null!=r&&(d=this.addToHttpParams(d,r,"subject")),null!=l&&(d=this.addToHttpParams(d,l,"text"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let B="json";return f&&(B=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v-q`,null,{context:b,params:d,responseType:B,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(Ri,8),i.LFG(Et,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Ts=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new M.WM,this.configuration=new Et,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new zi}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}addApplicationMailForGroup(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputAddApplicationMailForGroup was null or undefined when calling addApplicationMailForGroup.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/addApplicationMail/g`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}addApplicationMailForVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputAddApplicationMailForVo was null or undefined when calling addApplicationMailForVo.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/addApplicationMail/v`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}addGroupsToAutoRegistration(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter groups was null or undefined when calling addGroupsToAutoRegistration.");let c=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"groups[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/addGroupsToAutoRegistration`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}approveApplication(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling approveApplication.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/approveApplication`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}checkForSimilarRichIdentities(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/checkForSimilarRichIdentities`,null,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}checkForSimilarUsersWithAuthInfo(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/checkForSimilarUsers/authInfo`,null,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}consolidate(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputConsolidate was null or undefined when calling consolidate.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/consolidate`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}consolidateIdentityUsingToken(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter token was null or undefined when calling consolidateIdentityUsingToken.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"token"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/consolidateIdentityUsingToken`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}copyFormFromGroupToGroup(e,t,r="body",l=!1,c){let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"fromGroup")),null!=t&&(s=this.addToHttpParams(s,t,"toGroup"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToGroup`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}copyFormFromGroupToVo(e,t,r="body",l=!1,c){let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"fromGroup")),null!=t&&(s=this.addToHttpParams(s,t,"toVo"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToVo`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}copyFormFromVoToGroup(e,t,r="body",l=!1,c){let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"fromVo")),null!=t&&(s=this.addToHttpParams(s,t,"toGroup"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToGroup`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}copyFormFromVoToVo(e,t,r="body",l=!1,c){let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"fromVo")),null!=t&&(s=this.addToHttpParams(s,t,"toVo"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToVo`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}copyMailsFromGroupToGroup(e,t,r="body",l=!1,c){let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"fromGroup")),null!=t&&(s=this.addToHttpParams(s,t,"toGroup"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToGroup`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}copyMailsFromGroupToVo(e,t,r="body",l=!1,c){let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"fromGroup")),null!=t&&(s=this.addToHttpParams(s,t,"toVo"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToVo`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}copyMailsFromVoToGroup(e,t,r="body",l=!1,c){let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"fromVo")),null!=t&&(s=this.addToHttpParams(s,t,"toGroup"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToGroup`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}copyMailsFromVoToVo(e,t,r="body",l=!1,c){let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"fromVo")),null!=t&&(s=this.addToHttpParams(s,t,"toVo"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToVo`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}createApplicationFormInGroup(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling createApplicationFormInGroup.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/group`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}createApplicationFormInVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling createApplicationFormInVo.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/vo`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}deleteApplication(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteApplication.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplication`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}deleteApplicationMailForGroup(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling deleteApplicationMailForGroup.");if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForGroup.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"id"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/g`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}deleteApplicationMailForVo(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling deleteApplicationMailForVo.");if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForVo.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"id"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/v`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}deleteGroupsFromAutoRegistration(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter groups was null or undefined when calling deleteGroupsFromAutoRegistration.");let c=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"groups[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteGroupsFromAutoRegistration`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getApplicationById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getApplicationById.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationById`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getApplicationDataById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getApplicationDataById.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationDataById`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getApplicationMailsForGroup(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getApplicationMailsForGroup.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationMails/g`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getApplicationMailsForVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getApplicationMailsForVo.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationMails/v`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getApplicationsForGroup(e,t,r,l,c="body",s=!1,o){if(null==e)throw new Error("Required parameter group was null or undefined when calling getApplicationsForGroup.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"group")),t&&t.forEach(X=>{d=this.addToHttpParams(d,X,"state[]")}),null!=r&&(d=this.addToHttpParams(d,r,"dateFrom")),null!=l&&(d=this.addToHttpParams(d,l,"dateTo"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let B="json";return f&&(B=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForGroup`,{context:b,params:d,responseType:B,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}getApplicationsForMember(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getApplicationsForMember.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"group"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForMember`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getApplicationsForVo(e,t,r,l,c="body",s=!1,o){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getApplicationsForVo.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo")),t&&t.forEach(X=>{d=this.addToHttpParams(d,X,"state[]")}),null!=r&&(d=this.addToHttpParams(d,r,"dateFrom")),null!=l&&(d=this.addToHttpParams(d,l,"dateTo"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let B="json";return f&&(B=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForVo`,{context:b,params:d,responseType:B,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}getApplicationsPage(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputGetPaginatedApplications was null or undefined when calling getApplicationsPage.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/getApplicationsPage`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}getConsolidatorToken(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getConsolidatorToken`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getFormItemsForGroup(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroup.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/group`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getFormItemsForGroupWithType(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroupWithType.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"type"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/group-type`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getFormItemsForVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVo.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/vo`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getFormItemsForVoWithType(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVoWithType.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"type"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/vo-type`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getGroupApplicationForm(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupApplicationForm.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationForm/group`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupsToAutoRegistration(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getGroupsToAutoRegistration.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getGroupsToAutoRegistration`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getVoApplicationForm(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoApplicationForm.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationForm/vo`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}rejectApplication(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter id was null or undefined when calling rejectApplication.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"id")),null!=t&&(s=this.addToHttpParams(s,t,"reason"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/rejectApplication`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}sendInvitation(e,t,r,l,c="body",s=!1,o){if(null==e)throw new Error("Required parameter email was null or undefined when calling sendInvitation.");if(null==t)throw new Error("Required parameter language was null or undefined when calling sendInvitation.");let d=new M.LE({encoder:this.encoder});null!=r&&(d=this.addToHttpParams(d,r,"voId")),null!=l&&(d=this.addToHttpParams(d,l,"name")),null!=e&&(d=this.addToHttpParams(d,e,"email")),null!=t&&(d=this.addToHttpParams(d,t,"language"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let B="json";return f&&(B=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation`,null,{context:b,params:d,responseType:B,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}sendInvitationForGroup(e,t,r,l,c,s="body",o=!1,d){if(null==e)throw new Error("Required parameter email was null or undefined when calling sendInvitationForGroup.");if(null==t)throw new Error("Required parameter language was null or undefined when calling sendInvitationForGroup.");let u=new M.LE({encoder:this.encoder});null!=r&&(u=this.addToHttpParams(u,r,"voId")),null!=l&&(u=this.addToHttpParams(u,l,"groupId")),null!=c&&(u=this.addToHttpParams(u,c,"name")),null!=e&&(u=this.addToHttpParams(u,e,"email")),null!=t&&(u=this.addToHttpParams(u,t,"language"));let f,h=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(h=h.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(h=h.set("Authorization","Bearer "+f));let b=d&&d.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let B=d&&d.context;void 0===B&&(B=new M.qT);let X="json";return b&&(X=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/g`,null,{context:B,params:u,responseType:X,withCredentials:this.configuration.withCredentials,headers:h,observe:s,reportProgress:o})}sendInvitationGroupToExistingUser(e,t,r,l="body",c=!1,s){let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"userId")),null!=t&&(o=this.addToHttpParams(o,t,"voId")),null!=r&&(o=this.addToHttpParams(o,r,"groupId"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u-g`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}sendInvitationToExistingUser(e,t,r="body",l=!1,c){let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"userId")),null!=t&&(s=this.addToHttpParams(s,t,"voId"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}sendInvitationsFromCsv(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputInvitationsFromCsv was null or undefined when calling sendInvitationsFromCsv.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/sendInvitationsFromCsv`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}sendMessage(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSendMessage was null or undefined when calling sendMessage.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/sendMessage`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setSendingEnabled(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetSendingEnabled was null or undefined when calling setSendingEnabled.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/setSendingEnabled`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}submitApplication(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSubmitApplication was null or undefined when calling submitApplication.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/submitApplication`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}updateApplicationMail(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdateApplicationMail was null or undefined when calling updateApplicationMail.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateApplicationMail`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}updateForm(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdateForm was null or undefined when calling updateForm.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateForm`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}updateFormItemData(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputFormItemData was null or undefined when calling updateFormItemData.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItemData`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}updateFormItemsData(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputFormItemsData was null or undefined when calling updateFormItemsData.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItemsData`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}updateFormItemsForGroup(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdateFormItemsForGroup was null or undefined when calling updateFormItemsForGroup.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItems/group`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}updateFormItemsForVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdateFormItemsForVo was null or undefined when calling updateFormItemsForVo.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItems/vo`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}verifyApplication(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling verifyApplication.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/verifyApplication`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(Ri,8),i.LFG(Et,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Qr=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new M.WM,this.configuration=new Et,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new zi}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}activateGroupResourceAssignment(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter group was null or undefined when calling activateGroupResourceAssignment.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling activateGroupResourceAssignment.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),null!=r&&(o=this.addToHttpParams(o,r,"async"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/activateGroupResourceAssignment`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}addAdminToGroup(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling addAdminToGroup.");if(null==t)throw new Error("Required parameter authorizedGroup was null or undefined when calling addAdminToGroup.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"authorizedGroup"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addAdmin/r-g`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}addAdminToUser(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling addAdminToUser.");if(null==t)throw new Error("Required parameter user was null or undefined when calling addAdminToUser.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"user"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addAdmin/r-u`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}addResourceSelfServiceGroup(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceGroup.");if(null==t)throw new Error("Required parameter group was null or undefined when calling addResourceSelfServiceGroup.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"group"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addResourceSelfServiceGroup`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}addResourceSelfServiceUser(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceUser.");if(null==t)throw new Error("Required parameter user was null or undefined when calling addResourceSelfServiceUser.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"user"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addResourceSelfServiceUser`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}allowGroupsToResources(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter groups was null or undefined when calling allowGroupsToResources.");if(null==t)throw new Error("Required parameter resources was null or undefined when calling allowGroupsToResources.");let o=new M.LE({encoder:this.encoder});e&&e.forEach(B=>{o=this.addToHttpParams(o,B,"groups[]")}),t&&t.forEach(B=>{o=this.addToHttpParams(o,B,"resources[]")}),null!=r&&(o=this.addToHttpParams(o,r,"async"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/allowGroupsToResources`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}assignGroupToResource(e,t,r,l,c,s="body",o=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling assignGroupToResource.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling assignGroupToResource.");let u=new M.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"group")),null!=t&&(u=this.addToHttpParams(u,t,"resource")),null!=r&&(u=this.addToHttpParams(u,r,"async")),null!=l&&(u=this.addToHttpParams(u,l,"assignInactive")),null!=c&&(u=this.addToHttpParams(u,c,"autoAssignSubgroups"));let f,h=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(h=h.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(h=h.set("Authorization","Bearer "+f));let b=d&&d.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let B=d&&d.context;void 0===B&&(B=new M.qT);let X="json";return b&&(X=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupToResource`,null,{context:B,params:u,responseType:X,withCredentials:this.configuration.withCredentials,headers:h,observe:s,reportProgress:o})}assignGroupToResources(e,t,r,l,c,s="body",o=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling assignGroupToResources.");if(null==t)throw new Error("Required parameter resources was null or undefined when calling assignGroupToResources.");let u=new M.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"group")),t&&t.forEach(he=>{u=this.addToHttpParams(u,he,"resources[]")}),null!=r&&(u=this.addToHttpParams(u,r,"async")),null!=l&&(u=this.addToHttpParams(u,l,"assignInactive")),null!=c&&(u=this.addToHttpParams(u,c,"autoAssignSubgroups"));let f,h=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(h=h.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(h=h.set("Authorization","Bearer "+f));let b=d&&d.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let B=d&&d.context;void 0===B&&(B=new M.qT);let X="json";return b&&(X=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupToResources`,null,{context:B,params:u,responseType:X,withCredentials:this.configuration.withCredentials,headers:h,observe:s,reportProgress:o})}assignGroupsToResource(e,t,r,l,c,s="body",o=!1,d){if(null==e)throw new Error("Required parameter groups was null or undefined when calling assignGroupsToResource.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling assignGroupsToResource.");let u=new M.LE({encoder:this.encoder});e&&e.forEach(he=>{u=this.addToHttpParams(u,he,"groups[]")}),null!=t&&(u=this.addToHttpParams(u,t,"resource")),null!=r&&(u=this.addToHttpParams(u,r,"async")),null!=l&&(u=this.addToHttpParams(u,l,"assignInactive")),null!=c&&(u=this.addToHttpParams(u,c,"autoAssignSubgroups"));let f,h=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(h=h.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(h=h.set("Authorization","Bearer "+f));let b=d&&d.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let B=d&&d.context;void 0===B&&(B=new M.qT);let X="json";return b&&(X=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupsToResource`,null,{context:B,params:u,responseType:X,withCredentials:this.configuration.withCredentials,headers:h,observe:s,reportProgress:o})}assignResourceTagToResource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputAssignResourceTagToResource was null or undefined when calling assignResourceTagToResource.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/assignResourceTagToResource`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}assignService(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling assignService.");if(null==t)throw new Error("Required parameter service was null or undefined when calling assignService.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"service"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignService`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}assignServices(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling assignServices.");if(null==t)throw new Error("Required parameter services was null or undefined when calling assignServices.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"services[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignServices`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}assignServicesPackage(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling assignServicesPackage.");if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling assignServicesPackage.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"servicesPackage"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignServicesPackage`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}copyResource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCopyResource was null or undefined when calling copyResource.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/copyResource`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}createResource(e,t,r,l,c="body",s=!1,o){if(null==e)throw new Error("Required parameter vo was null or undefined when calling createResource.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling createResource.");if(null==r)throw new Error("Required parameter name was null or undefined when calling createResource.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo")),null!=t&&(d=this.addToHttpParams(d,t,"facility")),null!=r&&(d=this.addToHttpParams(d,r,"name")),null!=l&&(d=this.addToHttpParams(d,l,"description"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let B="json";return f&&(B=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/createResource`,null,{context:b,params:d,responseType:B,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}createResourceTagWithResourceTag(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateResourceTagWithResourceTag was null or undefined when calling createResourceTagWithResourceTag.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/createResourceTag/resourceTag`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}createResourceTagWithTagName(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter tagName was null or undefined when calling createResourceTagWithTagName.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling createResourceTagWithTagName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"tagName")),null!=t&&(s=this.addToHttpParams(s,t,"vo"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/createResourceTag/tagName`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}deactivateGroupResourceAssignment(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling deactivateGroupResourceAssignment.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling deactivateGroupResourceAssignment.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"resource"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deactivateGroupResourceAssignment`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}deleteAllResources(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling deleteAllResources.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteAllResources`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}deleteAllResourcesTagsForVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling deleteAllResourcesTagsForVo.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteAllResourcesTagsForVo`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}deleteResource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling deleteResource.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteResource`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}deleteResourceTag(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputDeleteResourceTag was null or undefined when calling deleteResourceTag.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/deleteResourceTag`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}getAdminGroups(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAdminGroups.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAdminGroups`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAdmins(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAdmins.");if(null==t)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getAdmins.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"onlyDirectAdmins"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAdmins`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getAllResources(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllResources`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAllResourcesByResourceTag(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputGetAllResourcesByResourceTag was null or undefined when calling getAllResourcesByResourceTag.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesByResourceTag`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}getAllResourcesTagsForResource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAllResourcesTagsForResource.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesTagsForResource`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllResourcesTagsForVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getAllResourcesTagsForVo.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesTagsForVo`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllResourcesWhereUserIsAdmin(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getAllResourcesWhereUserIsAdmin.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/all`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllowedMembers(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAllowedMembers.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedMembers`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllowedResources(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getAllowedResources.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedResources`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllowedUsersOfResource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAllowedUsersOfResource.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedUsers`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAssignedGroups(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAssignedGroups.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"member"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedGroups`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getAssignedMembers(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAssignedMembers.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedMembers`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAssignedMembersWithStatus(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAssignedMembersWithStatus.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedMembersWithStatus`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAssignedResourcesWithGroup(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getAssignedResourcesWithGroup.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResources/g`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAssignedResourcesWithMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getAssignedResourcesWithMember.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResources/m`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAssignedResourcesWithStatus(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getAssignedResourcesWithStatus.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResourcesWithStatus`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAssignedRichMembers(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAssignedRichMembers.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichMembers`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAssignedRichResourcesWithGroup(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getAssignedRichResourcesWithGroup.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/g`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAssignedRichResourcesWithMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMember.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/m`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAssignedRichResourcesWithMemberService(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMemberService.");if(null==t)throw new Error("Required parameter service was null or undefined when calling getAssignedRichResourcesWithMemberService.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"service"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/s-m`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getAssignedServicesToResource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAssignedServicesToResource.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedServices`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getBansForMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getBansForMember.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBansForMember`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getBansForResource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getBansForResource.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBansForResource`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getEnrichedBansForResource(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getEnrichedBansForResource.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedBansForResource`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getEnrichedBansForUser(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getEnrichedBansForUser.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedBansForUser`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getEnrichedResourceById(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter id was null or undefined when calling getEnrichedResourceById.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"id")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourceById`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getEnrichedResourcesForFacility(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getEnrichedResourcesForFacility.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"facility")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourcesForFacility`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getEnrichedResourcesForVo(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getEnrichedResourcesForVo.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourcesForVo`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getFacility(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getFacility.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getFacility`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupAssignments(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupAssignments.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getGroupAssignments`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getMailingServiceRichResourcesWithMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMailingServiceRichResourcesWithMember.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getMailingServiceRichResourcesWithMember`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getResourceAssignments(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceAssignments.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceAssignments`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getResourceBan(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getResourceBan.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceBan.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"resource"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBan`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getResourceBanById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter banId was null or undefined when calling getResourceBanById.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"banId"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBanById`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getResourceById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getResourceById.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceById`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getResourceByName(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResourceByName.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getResourceByName.");if(null==r)throw new Error("Required parameter name was null or undefined when calling getResourceByName.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"facility")),null!=r&&(o=this.addToHttpParams(o,r,"name"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceByName`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}getResources(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResources.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResources`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getResourcesByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getResourcesByIds.");let c=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"ids[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesByIds`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getResourcesCountForAll(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesCount/all`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getResourcesCountForVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResourcesCountForVo.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesCount/vo`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getResourcesFromVoWhereUserIsAdmin(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResourcesFromVoWhereUserIsAdmin.");if(null==t)throw new Error("Required parameter user was null or undefined when calling getResourcesFromVoWhereUserIsAdmin.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"user"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/fromVo`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getResourcesWhereGroupIsAdmin(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getResourcesWhereGroupIsAdmin.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResourcesWhereGroupIsAdmin.");if(null==r)throw new Error("Required parameter group was null or undefined when calling getResourcesWhereGroupIsAdmin.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"facility")),null!=t&&(o=this.addToHttpParams(o,t,"vo")),null!=r&&(o=this.addToHttpParams(o,r,"group"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/group`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}getResourcesWhereUserIsAdmin(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getResourcesWhereUserIsAdmin.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResourcesWhereUserIsAdmin.");if(null==r)throw new Error("Required parameter user was null or undefined when calling getResourcesWhereUserIsAdmin.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"facility")),null!=t&&(o=this.addToHttpParams(o,t,"vo")),null!=r&&(o=this.addToHttpParams(o,r,"user"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}getRichAdmins(e,t,r,l,c="body",s=!1,o){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRichAdmins.");if(null==t)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdmins.");if(null==r)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdmins.");if(null==l)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdmins.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"resource")),t&&t.forEach(X=>{d=this.addToHttpParams(d,X,"specificAttributes")}),null!=r&&(d=this.addToHttpParams(d,r,"allUserAttributes")),null!=l&&(d=this.addToHttpParams(d,l,"onlyDirectAdmins"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let B="json";return f&&(B=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichAdmins`,{context:b,params:d,responseType:B,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}getRichResourceById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getRichResourceById.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResourceById`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRichResources(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getRichResources.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResources`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRichResourcesByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichResourcesByIds.");let c=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"ids[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResourcesByIds`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getVo.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getVo`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}removeAllResourceTagsFromResource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeAllResourceTagsFromResource.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAllResourcesTagFromResource`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}removeBanByMemberAndResource(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeBanByMemberAndResource.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeBanByMemberAndResource.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"resource"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeBan/member-resource-id`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeGroupAdminResource(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupAdminResource.");if(null==t)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeGroupAdminResource.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"authorizedGroup"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAdmin/r-g`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeGroupFromResource(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResource.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupFromResource.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"resource"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupFromResource`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeGroupFromResources(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResources.");if(null==t)throw new Error("Required parameter resources was null or undefined when calling removeGroupFromResources.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"resources[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupFromResources`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeGroupsFromResource(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter groups was null or undefined when calling removeGroupsFromResource.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupsFromResource.");let s=new M.LE({encoder:this.encoder});e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"groups[]")}),null!=t&&(s=this.addToHttpParams(s,t,"resource"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupsFromResource`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeResourceBanById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter banId was null or undefined when calling removeResourceBanById.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"banId"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeBan/id`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}removeResourceSelfServiceGroup(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceGroup.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeResourceSelfServiceGroup.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"group"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeResourceSelfServiceGroup`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeResourceSelfServiceUser(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceUser.");if(null==t)throw new Error("Required parameter user was null or undefined when calling removeResourceSelfServiceUser.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"user"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeResourceSelfServiceUser`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeResourceTagFromResource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputRemoveResourceTagFromResource was null or undefined when calling removeResourceTagFromResource.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/removeResourceTagFromResource`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}removeService(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeService.");if(null==t)throw new Error("Required parameter service was null or undefined when calling removeService.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"service"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeService`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeServices(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeServices.");if(null==t)throw new Error("Required parameter services was null or undefined when calling removeServices.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"services[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeServices`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeServicesPackage(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeServicesPackage.");if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling removeServicesPackage.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"servicesPackage"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeServicesPackage`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeUserAdminResource(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeUserAdminResource.");if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserAdminResource.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"user"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAdmin/r-u`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}setResourceBan(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetBan was null or undefined when calling setResourceBan.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/setBan`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}unallowGroupsFromResources(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter groups was null or undefined when calling unallowGroupsFromResources.");if(null==t)throw new Error("Required parameter resources was null or undefined when calling unallowGroupsFromResources.");let s=new M.LE({encoder:this.encoder});e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"groups[]")}),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"resources[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/unallowGroupsFromResources`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}updateResource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdateResource was null or undefined when calling updateResource.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateResource`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}updateResourceBan(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdateBan was null or undefined when calling updateResourceBan.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateBan`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}updateResourceTag(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdateResourceTag was null or undefined when calling updateResourceTag.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateResourceTag`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(Ri,8),i.LFG(Et,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ei=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new M.WM,this.configuration=new Et,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new zi}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}addSpecificUserOwner(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling addSpecificUserOwner.");if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling addSpecificUserOwner.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"specificUser"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/addSpecificUserOwner`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}addUserExtSource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter AddUserExtSourceInput was null or undefined when calling addUserExtSource.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/addUserExtSource`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}anonymizeUser(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling anonymizeUser.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"force"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/anonymizeUser`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}changeNonAuthzPasswordByToken(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputChangeNonAuthzPasswordByToken was null or undefined when calling changeNonAuthzPasswordByToken.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/changeNonAuthzPassword/token`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}changePasswordForLogin(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputChangePasswordForLogin was null or undefined when calling changePasswordForLogin.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/changePassword/login`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}changePasswordForUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputChangePasswordForUser was null or undefined when calling changePasswordForUser.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/changePassword/user`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}checkPasswordResetRequestByTokenIsValid(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter token was null or undefined when calling checkPasswordResetRequestByTokenIsValid.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"token"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/checkPasswordResetRequestIsValid/token`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}checkPasswordStrength(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCheckPasswordStrength was null or undefined when calling checkPasswordStrength.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/checkPasswordStrength`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}createAlternativePassword(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateAlternativePassword was null or undefined when calling createAlternativePassword.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/createAlternativePassword`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}createServiceUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateServiceUser was null or undefined when calling createServiceUser.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/createServiceUser`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}deleteAlternativePassword(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter user was null or undefined when calling deleteAlternativePassword.");if(null==t)throw new Error("Required parameter loginNamespace was null or undefined when calling deleteAlternativePassword.");if(null==r)throw new Error("Required parameter passwordId was null or undefined when calling deleteAlternativePassword.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"loginNamespace")),null!=r&&(o=this.addToHttpParams(o,r,"passwordId"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteAlternativePassword`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}deletePasswordForLogin(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter login was null or undefined when calling deletePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForLogin.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"login")),null!=t&&(s=this.addToHttpParams(s,t,"namespace"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/login`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}deletePasswordForUser(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling deletePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForUser.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"namespace"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/user`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}deleteUser(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling deleteUser.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"force"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteUser`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}findRichUsers(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findRichUsers.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"searchString"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsers`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}findRichUsersWithAttributes(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findRichUsersWithAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"searchString")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrsNames[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsersWithAttributes`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}findUsers(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findUsers.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"searchString"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findUsers`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}generateAccountForName(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter namespace was null or undefined when calling generateAccountForName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"namespace")),null!=t&&(s=this.addToHttpParams(s,t,"name"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/generateAccount/name`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getAllRichUsersWithAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter includedSpecificUsers was null or undefined when calling getAllRichUsersWithAttributes.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"includedSpecificUsers"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAllRichUsersWithAttributes`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAssignedRichResourcesForUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getAssignedRichResourcesForUser.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAssignedRichResources`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupsForFacilityWhereUserIsActive(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"facility"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/facility`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getGroupsForResourceWhereUserIsActive(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsForResourceWhereUserIsActive.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupsForResourceWhereUserIsActive.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"resource"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/resource`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getGroupsInVoWhereUserIsAdmin(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"vo"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u-v`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getGroupsWhereUserIsAdmin(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsWhereUserIsAdmin.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getPendingPreferredEmailChanges(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getPendingPreferredEmailChanges.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getPendingPreferredEmailChanges`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRichUserExtSources(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserExtSources.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserExtSources/u`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRichUserWithAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserWithAttributes.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserWithAttributes`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRichUsersByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersByIds.");let c=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"ids[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersByIds`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRichUsersWithAttributesByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersWithAttributesByIds.");let c=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"ids[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithAttributesByIds`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRichUsersWithoutVoWithAttributes(e,t="body",r=!1,l){let c=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"attrsNames[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithoutVoWithAttributes`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getSpecificUsersByUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getSpecificUsersByUser.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSpecificUsersByUser`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getSponsorsForMember(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getSponsorsForMember.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/member`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getSponsorsForMemberByVoAndLogin(e,t,r,l,c="body",s=!1,o){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==t)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==r)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsForMemberByVoAndLogin.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo")),null!=t&&(d=this.addToHttpParams(d,t,"extSourceName")),null!=r&&(d=this.addToHttpParams(d,r,"extLogin")),l&&l.forEach(X=>{d=this.addToHttpParams(d,X,"attrNames[]")});let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let B="json";return f&&(B=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/vo`,{context:b,params:d,responseType:B,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}getUserByExtSourceNameAndExtLogin(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter extLogin was null or undefined when calling getUserByExtSourceNameAndExtLogin.");if(null==t)throw new Error("Required parameter extSourceName was null or undefined when calling getUserByExtSourceNameAndExtLogin.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"extLogin")),null!=t&&(s=this.addToHttpParams(s,t,"extSourceName"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserByExtSourceNameAndExtLogin`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getUserById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getUserById.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserById`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getUserExtSourceByExtLoginAndExtSourceName(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");if(null==t)throw new Error("Required parameter extSourceLogin was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"extSourceName")),null!=t&&(s=this.addToHttpParams(s,t,"extSourceLogin"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByExtLoginAndExtSourceName`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getUserExtSourceById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceById.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"userExtSource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceById`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getUserExtSourceByUniqueAttributeValueAndAttributeId(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");if(null==t)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"attributeId")),null!=t&&(s=this.addToHttpParams(s,t,"attributeValue"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/id`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getUserExtSourceByUniqueAttributeValueAndAttributeName(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");if(null==t)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"attributeName")),null!=t&&(s=this.addToHttpParams(s,t,"attributeValue"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/name`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getUserExtSources(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserExtSources.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSources`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getUserExtSourcesByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUserExtSourcesByIds.");let c=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"ids[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourcesByIds`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getUsers(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsers`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getUsersByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUsersByIds.");let c=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"ids[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersByIds`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getUsersBySpecificUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter specificUser was null or undefined when calling getUsersBySpecificUser.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"specificUser"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersBySpecificUser`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getUsersPage(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputGetPaginatedUsers was null or undefined when calling getUsersPage.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/getUsersPage`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}getVosWhereUserIsAdmin(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsAdmin.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsAdmin`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getVosWhereUserIsMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsMember.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsMember`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}isLoginAvailable(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter loginNamespace was null or undefined when calling isLoginAvailable.");if(null==t)throw new Error("Required parameter login was null or undefined when calling isLoginAvailable.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"loginNamespace")),null!=t&&(s=this.addToHttpParams(s,t,"login"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/isLoginAvailable`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}loginExist(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling loginExist.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling loginExist.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"namespace"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/loginExist`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeSpecificUserOwner(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeSpecificUserOwner.");if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling removeSpecificUserOwner.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"specificUser"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeSpecificUserOwner`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeUserExtSource(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserExtSource.");if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSource.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"userExtSource")),null!=r&&(o=this.addToHttpParams(o,r,"force"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeUserExtSource`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}requestPreferredEmailChange(e,t,r,l,c,s,o="body",d=!1,u){if(null==e)throw new Error("Required parameter user was null or undefined when calling requestPreferredEmailChange.");if(null==t)throw new Error("Required parameter email was null or undefined when calling requestPreferredEmailChange.");let h=new M.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"user")),null!=t&&(h=this.addToHttpParams(h,t,"email")),null!=r&&(h=this.addToHttpParams(h,r,"lang")),null!=l&&(h=this.addToHttpParams(h,l,"linkPath")),null!=c&&(h=this.addToHttpParams(h,c,"customUrl")),null!=s&&(h=this.addToHttpParams(h,s,"idpFilter"));let b,f=this.defaultHeaders;b=this.configuration.lookupCredential("BasicAuth"),b&&(f=f.set("Authorization","Basic "+b)),b=this.configuration.lookupCredential("BearerAuth"),b&&(f=f.set("Authorization","Bearer "+b));let B=u&&u.httpHeaderAccept;void 0===B&&(B=this.configuration.selectHeaderAccept(["application/json"])),void 0!==B&&(f=f.set("Accept",B));let X=u&&u.context;void 0===X&&(X=new M.qT);let he="json";return B&&(he=B.startsWith("text")?"text":this.configuration.isJsonMime(B)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/requestPreferredEmailChange`,null,{context:X,params:h,responseType:he,withCredentials:this.configuration.withCredentials,headers:f,observe:o,reportProgress:d})}reservePasswordForLogin(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputReservePasswordForLogin was null or undefined when calling reservePasswordForLogin.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/reservePassword/login`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}reservePasswordForUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputReservePasswordForUser was null or undefined when calling reservePasswordForUser.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/reservePassword/user`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}reserveRandomPassword(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling reserveRandomPassword.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling reserveRandomPassword.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"namespace"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reserveRandomPassword`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}setLogin(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter user was null or undefined when calling setLogin.");if(null==t)throw new Error("Required parameter login was null or undefined when calling setLogin.");if(null==r)throw new Error("Required parameter namespace was null or undefined when calling setLogin.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"login")),null!=r&&(o=this.addToHttpParams(o,r,"namespace"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/setLogin`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}updateUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdateUser was null or undefined when calling updateUser.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/updateUser`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}updateUserExtSourceLastAccess(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling updateUserExtSourceLastAccess.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"userExtSource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/updateUserExtSourceLastAccess`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}validatePasswordForLogin(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter login was null or undefined when calling validatePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForLogin.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"login")),null!=t&&(s=this.addToHttpParams(s,t,"namespace"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/login`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}validatePasswordForUser(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling validatePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForUser.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"namespace"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/user`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}validatePreferredEmailChangeWithToken(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter token was null or undefined when calling validatePreferredEmailChangeWithToken.");if(null==t)throw new Error("Required parameter u was null or undefined when calling validatePreferredEmailChangeWithToken.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"token")),null!=t&&(s=this.addToHttpParams(s,t,"u"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePreferredEmailChange`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(Ri,8),i.LFG(Et,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ja=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new M.WM,this.configuration=new Et,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new zi}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}getAppsConfig(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getAppsConfig`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getGuiConfiguration(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getGuiConfiguration`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getNewGuiAlert(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getNewGuiAlert`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunRPCVersion(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["text/plain"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunStatistics(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatistics`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunStatus(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatus`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunSystemTimeInMillis(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunSystemTimeInMillis`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(Ri,8),i.LFG(Et,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ac=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new M.WM,this.configuration=new Et,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new zi}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}addMemberVo(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling addMemberVo.");if(null==t)throw new Error("Required parameter memberVo was null or undefined when calling addMemberVo.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"memberVo"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addMemberVo`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}addSponsorRoleToGroup(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToGroup.");if(null==t)throw new Error("Required parameter authorizedGroup was null or undefined when calling addSponsorRoleToGroup.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"authorizedGroup"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addSponsorRole/group`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}addSponsorRoleToUser(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToUser.");if(null==t)throw new Error("Required parameter user was null or undefined when calling addSponsorRoleToUser.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"user"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addSponsorRole/user`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}addVoAdminGroup(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling addVoAdminGroup.");if(null==t)throw new Error("Required parameter authorizedGroup was null or undefined when calling addVoAdminGroup.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"authorizedGroup"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addAdmin/group`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}addVoAdminUser(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling addVoAdminUser.");if(null==t)throw new Error("Required parameter user was null or undefined when calling addVoAdminUser.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"user"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addAdmin/user`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}createVoWithName(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter name was null or undefined when calling createVoWithName.");if(null==t)throw new Error("Required parameter shortName was null or undefined when calling createVoWithName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"name")),null!=t&&(s=this.addToHttpParams(s,t,"shortName"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/createVo/withName`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}createVoWithVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateVoWithVo was null or undefined when calling createVoWithVo.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/createVo/withVo`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}deleteVo(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling deleteVo.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"force"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/deleteVo`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}findCandidates(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter id was null or undefined when calling findCandidates.");if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findCandidates.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"id")),null!=t&&(o=this.addToHttpParams(o,t,"searchString")),null!=r&&(o=this.addToHttpParams(o,r,"maxNumOfResults"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/findCandidates`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}findCandidatesForGroup(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling findCandidatesForGroup.");if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findCandidatesForGroup.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"searchString"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/findCandidates/forGroup`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getAllVos(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAllVos`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getCompleteCandidatesForGroup(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter group was null or undefined when calling getCompleteCandidatesForGroup.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getCompleteCandidatesForGroup.");if(null==r)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForGroup.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),t&&t.forEach(B=>{o=this.addToHttpParams(o,B,"attrNames[]")}),null!=r&&(o=this.addToHttpParams(o,r,"searchString"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getCompleteCandidates/forGroup`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}getCompleteCandidatesForVo(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getCompleteCandidatesForVo.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getCompleteCandidatesForVo.");if(null==r)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForVo.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),t&&t.forEach(B=>{o=this.addToHttpParams(o,B,"attrNames[]")}),null!=r&&(o=this.addToHttpParams(o,r,"searchString"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getCompleteCandidates/forVo`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}getEnrichedBansForVo(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getEnrichedBansForVo.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getEnrichedBansForVo`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getEnrichedVoBansForUser(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getEnrichedVoBansForUser.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getEnrichedBansForUser`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getEnrichedVoById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getEnrichedVoById.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getEnrichedVoById`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getMemberVos(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getMemberVos.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getMemberVos`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getMyEnrichedVos(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getEnrichedVos`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getMyVos(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVos`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getParentVos(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getParentVos.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getParentVos`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRichAdminsForVo(e,t,r,l,c,s="body",o=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getRichAdminsForVo.");if(null==t)throw new Error("Required parameter role was null or undefined when calling getRichAdminsForVo.");if(null==r)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdminsForVo.");if(null==l)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdminsForVo.");if(null==c)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdminsForVo.");let u=new M.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"vo")),null!=t&&(u=this.addToHttpParams(u,t,"role")),r&&r.forEach(he=>{u=this.addToHttpParams(u,he,"specificAttributes")}),null!=l&&(u=this.addToHttpParams(u,l,"allUserAttributes")),null!=c&&(u=this.addToHttpParams(u,c,"onlyDirectAdmins"));let f,h=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(h=h.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(h=h.set("Authorization","Bearer "+f));let b=d&&d.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let B=d&&d.context;void 0===B&&(B=new M.qT);let X="json";return b&&(X=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getRichAdmins`,{context:B,params:u,responseType:X,withCredentials:this.configuration.withCredentials,headers:h,observe:s,reportProgress:o})}getVoAdminGroups(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAdminGroups.");if(null==t)throw new Error("Required parameter role was null or undefined when calling getVoAdminGroups.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"role"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAdminGroups`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getVoAdminUsers(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAdminUsers.");if(null==t)throw new Error("Required parameter role was null or undefined when calling getVoAdminUsers.");if(null==r)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getVoAdminUsers.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"role")),null!=r&&(o=this.addToHttpParams(o,r,"onlyDirectAdmins"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAdmins`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}getVoBanById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter banId was null or undefined when calling getVoBanById.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"banId"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBanById`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getVoBanForMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getVoBanForMember.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBanForMember`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getVoBansForVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoBansForVo.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBansForVo`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getVoById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getVoById.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoById`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getVoByShortName(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter shortName was null or undefined when calling getVoByShortName.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"shortName"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoByShortName`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getVoMembersCountsByStatus(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoMembersCountsByStatus.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoMembersCountsByStatus`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getVosByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getVosByIds.");let c=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"ids[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVosByIds`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getVosCount(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVosCount`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}removeMemberVo(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeMemberVo.");if(null==t)throw new Error("Required parameter memberVo was null or undefined when calling removeMemberVo.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"memberVo"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeMemberVo`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeSponsorRoleFromGroup(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromGroup.");if(null==t)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeSponsorRoleFromGroup.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"authorizedGroup"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeSponsorRole/group`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeSponsorRoleFromUser(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromUser.");if(null==t)throw new Error("Required parameter user was null or undefined when calling removeSponsorRoleFromUser.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"user"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeSponsorRole/user`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeVoAdminGroup(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminGroup.");if(null==t)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeVoAdminGroup.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"authorizedGroup"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeAdmin/group`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeVoAdminUser(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminUser.");if(null==t)throw new Error("Required parameter user was null or undefined when calling removeVoAdminUser.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"user"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeAdmin/user`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeVoBan(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter banId was null or undefined when calling removeVoBan.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"banId"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeBan`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}removeVoBanForMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeVoBanForMember.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeBanForMember`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}setVoBan(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetVoBan was null or undefined when calling setVoBan.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/setBan`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}updateVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdateVo was null or undefined when calling updateVo.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/updateVo`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}updateVoBan(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdateBan1 was null or undefined when calling updateVoBan.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/updateBan`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(Ri,8),i.LFG(Et,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var it=(()=>{return(n=it||(it={})).PERUNADMIN="PERUNADMIN",n.PERUNOBSERVER="PERUNOBSERVER",n.VOADMIN="VOADMIN",n.GROUPADMIN="GROUPADMIN",n.GROUPOBSERVER="GROUPOBSERVER",n.GROUPMEMBERSHIPMANAGER="GROUPMEMBERSHIPMANAGER",n.SELF="SELF",n.FACILITYADMIN="FACILITYADMIN",n.FACILITIYOBSERVER="FACILITYOBSERVER",n.RESOURCEADMIN="RESOURCEADMIN",n.RESOURCESELFSERVICE="RESOURCESELFSERVICE",n.REGISTRAR="REGISTRAR",n.ENGINE="ENGINE",n.RPC="RPC",n.NOTIFICATIONS="NOTIFICATIONS",n.SERVICEUSER="SERVICEUSER",n.SPONSOR="SPONSOR",n.VOOBSERVER="VOOBSERVER",n.TOPGROUPCREATOR="TOPGROUPCREATOR",n.SECURITYADMIN="SECURITYADMIN",n.CABINETADMIN="CABINETADMIN",n.UNKNOWNROLENAME="UNKNOWNROLENAME",n.AUDITCONSUMERADMIN="AUDITCONSUMERADMIN",n.UNKNOWN="UNKNOWN",n.MEMBERSHIP="MEMBERSHIP",it;var n})();let tn=(()=>{class n{constructor(e){this.authzSevice=e,this.principalRoles=new Set,this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[],this.sortRoles=(t,r)=>t.roleName>r.roleName?1:t.roleName{this.authzSevice.getAllRolesManagementRules().subscribe(r=>{this.allRolesManagementRules=r,e()},r=>t(r))})}assignAvailableRoles(e,t){this.allRolesManagementRules.forEach(r=>{r.primaryObject===t&&e.push(r)}),e.sort(this.sortRoles),"Vo"===t&&this.voCustomSort(e)}isManagerPagePrivileged(e){const t=[];let r=e.beanName;r.startsWith("Rich")&&(r=r.substring(4)),this.assignAvailableRoles(t,r);const l=new Map;this.setRolesAuthorization(t,e,l);for(const c of l.values())if(c.readAuth||c.manageAuth)return!0;return!1}setRolesAuthorization(e,t,r){for(const l of e){let c=[],s=[],o=[];for(const b of this.allRolesManagementRules)if(b.roleName===l.roleName){c=c.concat(b.privilegedRolesToRead),s=s.concat(b.privilegedRolesToManage);for(const B of Object.keys(b.entitiesToManage))o="User"===B?[B].concat(o):o.concat(B);break}const d=this.fetchAllRelatedObjects([t]),u=this.resolveAuthorization(c,d),h=this.resolveAuthorization(s,d);r.set(l.roleName,{readAuth:u,manageAuth:h,modes:o})}}initializeVariables(){this.principalRoles.clear(),this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}getPrimaryObjectOfRole(e){for(const t of this.allRolesManagementRules)if(t.roleName===e)return t.primaryObject;return""}getAllRules(){return this.allRolesManagementRules.sort(this.sortRoles)}getRuleForRole(e){return this.allRolesManagementRules.find(t=>t.roleName===e)}getAssignableRoleRules(e){const t=[],r=["UNKNOWN","RPC","NOTIFICATIONS","ENGINE","MFA","REGISTRAR","AUDITCONSUMERADMIN","SPONSORSHIP","MEMBERSHIP","SERVICEUSER","SELF","SECURITYADMIN"];return this.allRolesManagementRules.forEach(l=>{!r.includes(l.roleName)&&this.canManage(l)&&this.ruleHasMode(l,e)&&t.push(l)}),t.sort(this.sortRoles)}ruleHasMode(e,t){return Object.keys(e.entitiesToManage).map(r=>r.toUpperCase()).includes(t)}canManage(e){return e.privilegedRolesToManage.some(t=>this.principalRoles.has(Object.keys(t)[0]))}resolveAuthorization(e,t){for(const r of e){let l=!0;for(const c of Object.keys(r)){const s=r[c];if(null===s)this.principalRoles.has(c)||(l=!1);else if(t[s]){for(const o of t[s])if(!this.principalHasRole(c,s,o)){l=!1;break}}else l=!1;if(!l)break}if(l)return!0}return!1}getPerunPolicy(e){for(const t of this.perunPolicies)if(t.policyName===e)return t;return null}fetchAllRelatedObjects(e){const t={};for(const r of e){let l=r.beanName;switch(r.beanName.startsWith("Rich")&&(l=r.beanName.substring(4)),t[l]?t[l].push(r.id):t[l]=[r.id],l){case"Member":t.User?t.User.push(r.userId):t.User=[r.userId],t.Vo?t.Vo.push(r.voId):t.Vo=[r.voId];break;case"Group":case"ResourceTag":t.Vo?t.Vo.push(r.voId):t.Vo=[r.voId];break;case"Resource":t.Facility?t.Facility.push(r.facilityId):t.Facility=[r.facilityId],t.Vo?t.Vo.push(r.voId):t.Vo=[r.voId]}}return t}fetchPolicyWithAllIncludedPolicies(e){const t=new Map;let r=[];for(r.push(e);0!==r.length;){const c=r.shift();if(t.has(c))continue;const s=this.getPerunPolicy(c);if(!s)return[];t.set(c,s),r=r.concat(s.includePolicies)}const l=[];for(const c of t.values())l.push(c);return l}voCustomSort(e){for(let t=0;t{let e=null;n._refCount++;const t=(0,rt.x)(a,void 0,void 0,void 0,()=>{if(!n||n._refCount<=0||0<--n._refCount)return void(e=null);const r=n._connection,l=e;e=null,r&&(!l||r===l)&&r.unsubscribe(),a.unsubscribe()});n.subscribe(t),t.closed||(e=n.connect())})}class dc extends _i.y{constructor(a,e){super(),this.source=a,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,(0,Jn.A)(a)&&(this.lift=a.lift)}_subscribe(a){return this.getSubject().subscribe(a)}getSubject(){const a=this._subject;return(!a||a.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:a}=this;this._subject=this._connection=null,a?.unsubscribe()}connect(){let a=this._connection;if(!a){a=this._connection=new li.w0;const e=this.getSubject();a.add(this.source.subscribe((0,rt.x)(e,void 0,()=>{this._teardown(),e.complete()},t=>{this._teardown(),e.error(t)},()=>this._teardown()))),a.closed&&(this._connection=null,a=li.w0.EMPTY)}return a}refCount(){return Xu()(this)}}function Hi(...n){const a=(0,pi.yG)(n);return(0,Jn.e)((e,t)=>{(a?(0,er.z)(n,e,a):(0,er.z)(n,e)).subscribe(t)})}var kn=T(5577),Zi=T(590),ni=T(8505),On=T(262);function go(n,a,e,t,r){return(l,c)=>{let s=e,o=a,d=0;l.subscribe((0,rt.x)(c,u=>{const h=d++;o=s?n(o,u,h):(s=!0,u),t&&c.next(o)},r&&(()=>{s&&c.next(o),c.complete()})))}}function kr(n,a){return(0,Jn.e)(go(n,a,arguments.length>=2,!0))}function vi(n){return n<=0?()=>$i.E:(0,Jn.e)((a,e)=>{let t=[];a.subscribe((0,rt.x)(e,r=>{t.push(r),n{for(const r of t)e.next(r);e.complete()},void 0,()=>{t=null}))})}var Ku=T(8068),vd=T(6590),Td=T(4671);function uc(n,a){const e=arguments.length>=2;return t=>t.pipe(n?(0,ye.h)((r,l)=>n(r,l,t)):Td.y,vi(1),e?(0,vd.d)(a):(0,Ku.T)(()=>new Rr.K))}function hc(n,a=!1){return(0,Jn.e)((e,t)=>{let r=0;e.subscribe((0,rt.x)(t,l=>{const c=n(l,r++);(c||a)&&t.next(l),!c&&t.complete()}))})}var pc=T(9718);function Or(n){return(0,Jn.e)((a,e)=>{try{a.subscribe(e)}finally{e.add(n)}})}var fc=T(8189);const zt="primary";class xd{constructor(a){this.params=a||{}}has(a){return Object.prototype.hasOwnProperty.call(this.params,a)}get(a){if(this.has(a)){const e=this.params[a];return Array.isArray(e)?e[0]:e}return null}getAll(a){if(this.has(a)){const e=this.params[a];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Xr(n){return new xd(n)}function il(n,a,e){const t=e.path.split("/");if(t.length>n.length||"full"===e.pathMatch&&(a.hasChildren()||t.lengtht[l]===r)}return n===a}function eh(n){return Array.prototype.concat.apply([],n)}function gc(n){return n.length>0?n[n.length-1]:null}function Si(n,a){for(const e in n)n.hasOwnProperty(e)&&a(n[e],e)}function hi(n){return(0,i.CqO)(n)?n:(0,i.QGY)(n)?(0,ht.D)(Promise.resolve(n)):(0,xe.of)(n)}const th={exact:function rl(n,a,e){if(!Es(n.segments,a.segments)||!ol(n.segments,a.segments,e)||n.numberOfChildren!==a.numberOfChildren)return!1;for(const t in a.children)if(!n.children[t]||!rl(n.children[t],a.children[t],e))return!1;return!0},subset:al},ih={exact:function mf(n,a){return Ir(n,a)},subset:function bc(n,a){return Object.keys(a).length<=Object.keys(n).length&&Object.keys(a).every(e=>nl(n[e],a[e]))},ignored:()=>!0};function nh(n,a,e){return th[e.paths](n.root,a.root,e.matrixParams)&&ih[e.queryParams](n.queryParams,a.queryParams)&&!("exact"===e.fragment&&n.fragment!==a.fragment)}function al(n,a,e){return sl(n,a,a.segments,e)}function sl(n,a,e,t){if(n.segments.length>e.length){const r=n.segments.slice(0,e.length);return!(!Es(r,e)||a.hasChildren()||!ol(r,e,t))}if(n.segments.length===e.length){if(!Es(n.segments,e)||!ol(n.segments,e,t))return!1;for(const r in a.children)if(!n.children[r]||!al(n.children[r],a.children[r],t))return!1;return!0}{const r=e.slice(0,n.segments.length),l=e.slice(n.segments.length);return!!(Es(n.segments,r)&&ol(n.segments,r,t)&&n.children[zt])&&sl(n.children[zt],a,l,t)}}function ol(n,a,e){return a.every((t,r)=>ih[e](n[r].parameters,t.parameters))}class Ss{constructor(a,e,t){this.root=a,this.queryParams=e,this.fragment=t}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Xr(this.queryParams)),this._queryParamMap}toString(){return gf.serialize(this)}}class gt{constructor(a,e){this.segments=a,this.children=e,this.parent=null,Si(e,(t,r)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Ac(this)}}class Qn{constructor(a,e){this.path=a,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Xr(this.parameters)),this._parameterMap}toString(){return Ds(this)}}function Es(n,a){return n.length===a.length&&n.every((e,t)=>e.path===a[t].path)}let ll=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:function(){return new Sd},providedIn:"root"}),n})();class Sd{parse(a){const e=new Kr(a);return new Ss(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(a){const e=`/${yc(a.root,!0)}`,t=function Ao(n){const a=Object.keys(n).map(e=>{const t=n[e];return Array.isArray(t)?t.map(r=>`${dl(e)}=${dl(r)}`).join("&"):`${dl(e)}=${dl(t)}`}).filter(e=>!!e);return a.length?`?${a.join("&")}`:""}(a.queryParams);return`${e}${t}${"string"==typeof a.fragment?`#${function ah(n){return encodeURI(n)}(a.fragment)}`:""}`}}const gf=new Sd;function Ac(n){return n.segments.map(a=>Ds(a)).join("/")}function yc(n,a){if(!n.hasChildren())return Ac(n);if(a){const e=n.children[zt]?yc(n.children[zt],!1):"",t=[];return Si(n.children,(r,l)=>{l!==zt&&t.push(`${l}:${yc(r,!1)}`)}),t.length>0?`${e}(${t.join("//")})`:e}{const e=function _o(n,a){let e=[];return Si(n.children,(t,r)=>{r===zt&&(e=e.concat(a(t,r)))}),Si(n.children,(t,r)=>{r!==zt&&(e=e.concat(a(t,r)))}),e}(n,(t,r)=>r===zt?[yc(n.children[zt],!1)]:[`${r}:${yc(t,!1)}`]);return 1===Object.keys(n.children).length&&null!=n.children[zt]?`${Ac(n)}/${e[0]}`:`${Ac(n)}/(${e.join("//")})`}}function cl(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function dl(n){return cl(n).replace(/%3B/gi,";")}function bo(n){return cl(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ul(n){return decodeURIComponent(n)}function Ed(n){return ul(n.replace(/\+/g,"%20"))}function Ds(n){return`${bo(n.path)}${function _f(n){return Object.keys(n).map(a=>`;${bo(a)}=${bo(n[a])}`).join("")}(n.parameters)}`}const Dd=/^[^\/()?;=#]+/;function Hs(n){const a=n.match(Dd);return a?a[0]:""}const Tg=/^[^=?&#]+/,hl=/^[^&#]+/;class Kr{constructor(a){this.url=a,this.remaining=a}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new gt([],{}):new gt([],this.parseChildren())}parseQueryParams(){const a={};if(this.consumeOptional("?"))do{this.parseQueryParam(a)}while(this.consumeOptional("&"));return a}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const a=[];for(this.peekStartsWith("(")||a.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),a.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let t={};return this.peekStartsWith("(")&&(t=this.parseParens(!1)),(a.length>0||Object.keys(e).length>0)&&(t[zt]=new gt(a,e)),t}parseSegment(){const a=Hs(this.remaining);if(""===a&&this.peekStartsWith(";"))throw new i.vHH(4009,!1);return this.capture(a),new Qn(ul(a),this.parseMatrixParams())}parseMatrixParams(){const a={};for(;this.consumeOptional(";");)this.parseParam(a);return a}parseParam(a){const e=Hs(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const r=Hs(this.remaining);r&&(t=r,this.capture(t))}a[ul(e)]=ul(t)}parseQueryParam(a){const e=function sh(n){const a=n.match(Tg);return a?a[0]:""}(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const c=function bf(n){const a=n.match(hl);return a?a[0]:""}(this.remaining);c&&(t=c,this.capture(t))}const r=Ed(e),l=Ed(t);if(a.hasOwnProperty(r)){let c=a[r];Array.isArray(c)||(c=[c],a[r]=c),c.push(l)}else a[r]=l}parseParens(a){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const t=Hs(this.remaining),r=this.remaining[t.length];if("/"!==r&&")"!==r&&";"!==r)throw new i.vHH(4010,!1);let l;t.indexOf(":")>-1?(l=t.slice(0,t.indexOf(":")),this.capture(l),this.capture(":")):a&&(l=zt);const c=this.parseChildren();e[l]=1===Object.keys(c).length?c[zt]:new gt([],c),this.consumeOptional("//")}return e}peekStartsWith(a){return this.remaining.startsWith(a)}consumeOptional(a){return!!this.peekStartsWith(a)&&(this.remaining=this.remaining.substring(a.length),!0)}capture(a){if(!this.consumeOptional(a))throw new i.vHH(4011,!1)}}function Hd(n){return n.segments.length>0?new gt([],{[zt]:n}):n}function qa(n){const a={};for(const t of Object.keys(n.children)){const l=qa(n.children[t]);(l.segments.length>0||l.hasChildren())&&(a[t]=l)}return function Ld(n){if(1===n.numberOfChildren&&n.children[zt]){const a=n.children[zt];return new gt(n.segments.concat(a.segments),a.children)}return n}(new gt(n.segments,a))}function ba(n){return n instanceof Ss}function kd(n,a,e,t,r){var l;if(0===e.length)return ya(a.root,a.root,a.root,t,r);const c=function Od(n){if("string"==typeof n[0]&&1===n.length&&"/"===n[0])return new Nr(!0,0,n);let a=0,e=!1;const t=n.reduce((r,l,c)=>{if("object"==typeof l&&null!=l){if(l.outlets){const s={};return Si(l.outlets,(o,d)=>{s[d]="string"==typeof o?o.split("/"):o}),[...r,{outlets:s}]}if(l.segmentPath)return[...r,l.segmentPath]}return"string"!=typeof l?[...r,l]:0===c?(l.split("/").forEach((s,o)=>{0==o&&"."===s||(0==o&&""===s?e=!0:".."===s?a++:""!=s&&r.push(s))}),r):[...r,l]},[]);return new Nr(e,a,t)}(e);if(c.toRoot())return ya(a.root,a.root,new gt([],{}),t,r);const o=function s(u){var h;const f=function wo(n,a,e,t){if(n.isAbsolute)return new Ya(a.root,!0,0);if(-1===t)return new Ya(e,e===a.root,0);return function ch(n,a,e){let t=n,r=a,l=e;for(;l>r;){if(l-=r,t=t.parent,!t)throw new i.vHH(4005,!1);r=t.segments.length}return new Ya(t,!1,r-l)}(e,t+(Aa(n.commands[0])?0:1),n.numberOfDoubleDots)}(c,a,null===(h=n.snapshot)||void 0===h?void 0:h._urlSegment,u),b=f.processChildren?fl(f.segmentGroup,f.index,c.commands):pl(f.segmentGroup,f.index,c.commands);return ya(a.root,f.segmentGroup,b,t,r)}(null===(l=n.snapshot)||void 0===l?void 0:l._lastPathIndex);return o}function Aa(n){return"object"==typeof n&&null!=n&&!n.outlets&&!n.segmentPath}function Br(n){return"object"==typeof n&&null!=n&&n.outlets}function ya(n,a,e,t,r){let c,l={};t&&Si(t,(o,d)=>{l[d]=Array.isArray(o)?o.map(u=>`${u}`):`${o}`}),c=n===a?e:Mo(n,a,e);const s=Hd(qa(c));return new Ss(s,l,r)}function Mo(n,a,e){const t={};return Si(n.children,(r,l)=>{t[l]=r===a?e:Mo(r,a,e)}),new gt(n.segments,t)}class Nr{constructor(a,e,t){if(this.isAbsolute=a,this.numberOfDoubleDots=e,this.commands=t,a&&t.length>0&&Aa(t[0]))throw new i.vHH(4003,!1);const r=t.find(Br);if(r&&r!==gc(t))throw new i.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Ya{constructor(a,e,t){this.segmentGroup=a,this.processChildren=e,this.index=t}}function pl(n,a,e){if(n||(n=new gt([],{})),0===n.segments.length&&n.hasChildren())return fl(n,a,e);const t=function uh(n,a,e){let t=0,r=a;const l={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return l;const c=n.segments[r],s=e[t];if(Br(s))break;const o=`${s}`,d=t0&&void 0===o)break;if(o&&d&&"object"==typeof d&&void 0===d.outlets){if(!Ps(o,d,c))return l;t+=2}else{if(!Ps(o,{},c))return l;t++}r++}return{match:!0,pathIndex:r,commandIndex:t}}(n,a,e),r=e.slice(t.commandIndex);if(t.match&&t.pathIndex{"string"==typeof l&&(l=[l]),null!==l&&(r[c]=pl(n.children[c],a,l))}),Si(n.children,(l,c)=>{void 0===t[c]&&(r[c]=l)}),new gt(n.segments,r)}}function ml(n,a,e){const t=n.segments.slice(0,a);let r=0;for(;r{"string"==typeof e&&(e=[e]),null!==e&&(a[t]=ml(new gt([],{}),0,e))}),a}function Ls(n){const a={};return Si(n,(e,t)=>a[t]=`${e}`),a}function Ps(n,a,e){return n==e.path&&Ir(a,e.parameters)}class ea{constructor(a,e){this.id=a,this.url=e}}class gl extends ea{constructor(a,e,t="imperative",r=null){super(a,e),this.type=0,this.navigationTrigger=t,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Xn extends ea{constructor(a,e,t){super(a,e),this.urlAfterRedirects=t,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Id extends ea{constructor(a,e,t,r){super(a,e),this.reason=t,this.code=r,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class hh extends ea{constructor(a,e,t,r){super(a,e),this.error=t,this.target=r,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Ti extends ea{constructor(a,e,t,r){super(a,e),this.urlAfterRedirects=t,this.state=r,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class xg extends ea{constructor(a,e,t,r){super(a,e),this.urlAfterRedirects=t,this.state=r,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Sg extends ea{constructor(a,e,t,r,l){super(a,e),this.urlAfterRedirects=t,this.state=r,this.shouldActivate=l,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Eg extends ea{constructor(a,e,t,r){super(a,e),this.urlAfterRedirects=t,this.state=r,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Dg extends ea{constructor(a,e,t,r){super(a,e),this.urlAfterRedirects=t,this.state=r,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Hg{constructor(a){this.route=a,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class ph{constructor(a){this.route=a,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Lg{constructor(a){this.snapshot=a,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class _l{constructor(a){this.snapshot=a,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Pg{constructor(a){this.snapshot=a,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class fh{constructor(a){this.snapshot=a,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class qi{constructor(a,e,t){this.routerEvent=a,this.position=e,this.anchor=t,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class vo{constructor(a){this._root=a}get root(){return this._root.value}parent(a){const e=this.pathFromRoot(a);return e.length>1?e[e.length-2]:null}children(a){const e=mh(a,this._root);return e?e.children.map(t=>t.value):[]}firstChild(a){const e=mh(a,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(a){const e=Nd(a,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==a)}pathFromRoot(a){return Nd(a,this._root).map(e=>e.value)}}function mh(n,a){if(n===a.value)return a;for(const e of a.children){const t=mh(n,e);if(t)return t}return null}function Nd(n,a){if(n===a.value)return[a];for(const e of a.children){const t=Nd(n,e);if(t.length)return t.unshift(a),t}return[]}class nn{constructor(a,e){this.value=a,this.children=e}toString(){return`TreeNode(${this.value})`}}function tr(n){const a={};return n&&n.children.forEach(e=>a[e.value.outlet]=e),a}class Mc extends vo{constructor(a,e){super(a),this.snapshot=e,yl(this,a)}toString(){return this.snapshot.toString()}}function bl(n,a){const e=function Al(n,a){const c=new Vd([],{},{},"",{},zt,a,null,n.root,-1,{});return new Wa("",new nn(c,[]))}(n,a),t=new Ii([new Qn("",{})]),r=new Ii({}),l=new Ii({}),c=new Ii({}),s=new Ii(""),o=new In(t,r,c,s,l,zt,a,e.root);return o.snapshot=e.root,new Mc(new nn(o,[]),e)}class In{constructor(a,e,t,r,l,c,s,o){this.url=a,this.params=e,this.queryParams=t,this.fragment=r,this.data=l,this.outlet=c,this.component=s,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((0,At.U)(a=>Xr(a)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,At.U)(a=>Xr(a)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function gh(n,a="emptyOnly"){const e=n.pathFromRoot;let t=0;if("always"!==a)for(t=e.length-1;t>=1;){const r=e[t],l=e[t-1];if(r.routeConfig&&""===r.routeConfig.path)t--;else{if(l.component)break;t--}}return function Af(n){return n.reduce((a,e)=>{var t;return{params:{...a.params,...e.params},data:{...a.data,...e.data},resolve:{...e.data,...a.resolve,...null===(t=e.routeConfig)||void 0===t?void 0:t.data,...e._resolvedData}}},{params:{},data:{},resolve:{}})}(e.slice(t))}class Vd{constructor(a,e,t,r,l,c,s,o,d,u,h,f){this.url=a,this.params=e,this.queryParams=t,this.fragment=r,this.data=l,this.outlet=c,this.component=s,this.routeConfig=o,this._urlSegment=d,this._lastPathIndex=u,this._correctedLastPathIndex=f??u,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=Xr(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Xr(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Wa extends vo{constructor(a,e){super(e),this.url=a,yl(this,e)}toString(){return ir(this._root)}}function yl(n,a){a.value._routerState=n,a.children.forEach(e=>yl(n,e))}function ir(n){const a=n.children.length>0?` { ${n.children.map(ir).join(", ")} } `:"";return`${n.value}${a}`}function Ml(n){if(n.snapshot){const a=n.snapshot,e=n._futureSnapshot;n.snapshot=e,Ir(a.queryParams,e.queryParams)||n.queryParams.next(e.queryParams),a.fragment!==e.fragment&&n.fragment.next(e.fragment),Ir(a.params,e.params)||n.params.next(e.params),function mc(n,a){if(n.length!==a.length)return!1;for(let e=0;eIr(e.parameters,a[t].parameters))}(n.url,a.url);return e&&!(!n.parent!=!a.parent)&&(!n.parent||Ua(n.parent,a.parent))}function To(n,a,e){if(e&&n.shouldReuseRoute(a.value,e.value.snapshot)){const t=e.value;t._futureSnapshot=a.value;const r=function yf(n,a,e){return a.children.map(t=>{for(const r of e.children)if(n.shouldReuseRoute(t.value,r.value.snapshot))return To(n,t,r);return To(n,t)})}(n,a,e);return new nn(t,r)}{if(n.shouldAttach(a.value)){const l=n.retrieve(a.value);if(null!==l){const c=l.route;return c.value._futureSnapshot=a.value,c.children=a.children.map(s=>To(n,s)),c}}const t=function _h(n){return new In(new Ii(n.url),new Ii(n.params),new Ii(n.queryParams),new Ii(n.fragment),new Ii(n.data),n.outlet,n.component,n)}(a.value),r=a.children.map(l=>To(n,l));return new nn(t,r)}}const Zt="ngNavigationCancelingError";function wl(n,a){const{redirectTo:e,navigationBehaviorOptions:t}=ba(a)?{redirectTo:a,navigationBehaviorOptions:void 0}:a,r=Fd(!1,0,a);return r.url=e,r.navigationBehaviorOptions=t,r}function Fd(n,a,e){const t=new Error("NavigationCancelingError: "+(n||""));return t[Zt]=!0,t.cancellationCode=a,e&&(t.url=e),t}function wc(n){return Cc(n)&&ba(n.url)}function Cc(n){return n&&n[Zt]}class vc{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new Tc,this.attachRef=null}}let Tc=(()=>{class n{constructor(){this.contexts=new Map}onChildOutletCreated(e,t){const r=this.getOrCreateContext(e);r.outlet=t,this.contexts.set(e,r)}onChildOutletDestroyed(e){const t=this.getContext(e);t&&(t.outlet=null,t.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new vc,this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Ga=!1;let Ma=(()=>{class n{constructor(e,t,r,l,c){this.parentContexts=e,this.location=t,this.changeDetector=l,this.environmentInjector=c,this.activated=null,this._activatedRoute=null,this.activateEvents=new i.vpe,this.deactivateEvents=new i.vpe,this.attachEvents=new i.vpe,this.detachEvents=new i.vpe,this.name=r||zt,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){var e;(null===(e=this.parentContexts.getContext(this.name))||void 0===e?void 0:e.outlet)===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new i.vHH(4012,Ga);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new i.vHH(4012,Ga);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new i.vHH(4012,Ga);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new i.vHH(4013,Ga);this._activatedRoute=e;const r=this.location,c=e._futureSnapshot.component,s=this.parentContexts.getOrCreateContext(this.name).children,o=new Cr(e,s,r.injector);if(t&&function Mf(n){return!!n.resolveComponentFactory}(t)){const d=t.resolveComponentFactory(c);this.activated=r.createComponent(d,r.length,o)}else this.activated=r.createComponent(c,{index:r.length,injector:o,environmentInjector:t??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Tc),i.Y36(i.s_b),i.$8M("name"),i.Y36(i.sBO),i.Y36(i.lqb))},n.\u0275dir=i.lG2({type:n,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),n})();class Cr{constructor(a,e,t){this.route=a,this.childContexts=e,this.parent=t}get(a,e){return a===In?this.route:a===Tc?this.childContexts:this.parent.get(a,e)}}let zd=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&i._UZ(0,"router-outlet")},dependencies:[Ma],encapsulation:2}),n})();function bh(n,a){var e;return n.providers&&!n._injector&&(n._injector=(0,i.MMx)(n.providers,a,`Route: ${n.path}`)),null!==(e=n._injector)&&void 0!==e?e:a}function Rs(n){const a=n.children&&n.children.map(Rs),e=a?{...n,children:a}:{...n};return!e.component&&!e.loadComponent&&(a||e.loadChildren)&&e.outlet&&e.outlet!==zt&&(e.component=zd),e}function vr(n){return n.outlet||zt}function Mh(n,a){const e=n.filter(t=>vr(t)===a);return e.push(...n.filter(t=>vr(t)!==a)),e}function wh(n){var a;if(!n)return null;if(null!==(a=n.routeConfig)&&void 0!==a&&a._injector)return n.routeConfig._injector;for(let e=n.parent;e;e=e.parent){const t=e.routeConfig;if(null!=t&&t._loadedInjector)return t._loadedInjector;if(null!=t&&t._injector)return t._injector}return null}class Tl{constructor(a,e,t,r){this.routeReuseStrategy=a,this.futureState=e,this.currState=t,this.forwardEvent=r}activate(a){const e=this.futureState._root,t=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,t,a),Ml(this.futureState.root),this.activateChildRoutes(e,t,a)}deactivateChildRoutes(a,e,t){const r=tr(e);a.children.forEach(l=>{const c=l.value.outlet;this.deactivateRoutes(l,r[c],t),delete r[c]}),Si(r,(l,c)=>{this.deactivateRouteAndItsChildren(l,t)})}deactivateRoutes(a,e,t){const r=a.value,l=e?e.value:null;if(r===l)if(r.component){const c=t.getContext(r.outlet);c&&this.deactivateChildRoutes(a,e,c.children)}else this.deactivateChildRoutes(a,e,t);else l&&this.deactivateRouteAndItsChildren(e,t)}deactivateRouteAndItsChildren(a,e){a.value.component&&this.routeReuseStrategy.shouldDetach(a.value.snapshot)?this.detachAndStoreRouteSubtree(a,e):this.deactivateRouteAndOutlet(a,e)}detachAndStoreRouteSubtree(a,e){const t=e.getContext(a.value.outlet),r=t&&a.value.component?t.children:e,l=tr(a);for(const c of Object.keys(l))this.deactivateRouteAndItsChildren(l[c],r);if(t&&t.outlet){const c=t.outlet.detach(),s=t.children.onOutletDeactivated();this.routeReuseStrategy.store(a.value.snapshot,{componentRef:c,route:a,contexts:s})}}deactivateRouteAndOutlet(a,e){const t=e.getContext(a.value.outlet),r=t&&a.value.component?t.children:e,l=tr(a);for(const c of Object.keys(l))this.deactivateRouteAndItsChildren(l[c],r);t&&t.outlet&&(t.outlet.deactivate(),t.children.onOutletDeactivated(),t.attachRef=null,t.resolver=null,t.route=null)}activateChildRoutes(a,e,t){const r=tr(e);a.children.forEach(l=>{this.activateRoutes(l,r[l.value.outlet],t),this.forwardEvent(new fh(l.value.snapshot))}),a.children.length&&this.forwardEvent(new _l(a.value.snapshot))}activateRoutes(a,e,t){const r=a.value,l=e?e.value:null;if(Ml(r),r===l)if(r.component){const s=t.getOrCreateContext(r.outlet);this.activateChildRoutes(a,e,s.children)}else this.activateChildRoutes(a,e,t);else if(r.component){const s=t.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const o=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),s.children.onOutletReAttached(o.contexts),s.attachRef=o.componentRef,s.route=o.route.value,s.outlet&&s.outlet.attach(o.componentRef,o.route.value),Ml(o.route.value),this.activateChildRoutes(a,null,s.children)}else{var c;const o=wh(r.snapshot),d=null!==(c=o?.get(i._Vd))&&void 0!==c?c:null;s.attachRef=null,s.route=r,s.resolver=d,s.injector=o,s.outlet&&s.outlet.activateWith(r,s.injector),this.activateChildRoutes(a,null,s.children)}}else this.activateChildRoutes(a,null,t)}}class qd{constructor(a){this.path=a,this.route=this.path[this.path.length-1]}}class $a{constructor(a,e){this.component=a,this.route=e}}function vf(n,a,e){const t=n._root;return nr(t,a?a._root:null,e,[t.value])}function Za(n,a,e){return(wh(a)??e).get(n)}function nr(n,a,e,t,r={canDeactivateChecks:[],canActivateChecks:[]}){const l=tr(a);return n.children.forEach(c=>{(function vh(n,a,e,t,r={canDeactivateChecks:[],canActivateChecks:[]}){const l=n.value,c=a?a.value:null,s=e?e.getContext(n.value.outlet):null;if(c&&l.routeConfig===c.routeConfig){const o=function Tf(n,a,e){if("function"==typeof e)return e(n,a);switch(e){case"pathParamsChange":return!Es(n.url,a.url);case"pathParamsOrQueryParamsChange":return!Es(n.url,a.url)||!Ir(n.queryParams,a.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Ua(n,a)||!Ir(n.queryParams,a.queryParams);default:return!Ua(n,a)}}(c,l,l.routeConfig.runGuardsAndResolvers);o?r.canActivateChecks.push(new qd(t)):(l.data=c.data,l._resolvedData=c._resolvedData),nr(n,a,l.component?s?s.children:null:e,t,r),o&&s&&s.outlet&&s.outlet.isActivated&&r.canDeactivateChecks.push(new $a(s.outlet.component,c))}else c&&xl(a,s,r),r.canActivateChecks.push(new qd(t)),nr(n,null,l.component?s?s.children:null:e,t,r)})(c,l[c.value.outlet],e,t.concat([c.value]),r),delete l[c.value.outlet]}),Si(l,(c,s)=>xl(c,e.getContext(s),r)),r}function xl(n,a,e){const t=tr(n),r=n.value;Si(t,(l,c)=>{xl(l,r.component?a?a.children.getContext(c):null:a,e)}),e.canDeactivateChecks.push(new $a(r.component&&a&&a.outlet&&a.outlet.isActivated?a.outlet.component:null,r))}function ta(n){return"function"==typeof n}function Yd(n){return n instanceof Rr.K||"EmptyError"===n?.name}const ks=Symbol("INITIAL_VALUE");function Os(){return(0,mi.w)(n=>(0,Ci.a)(n.map(a=>a.pipe((0,ct.q)(1),Hi(ks)))).pipe((0,At.U)(a=>{for(const e of a)if(!0!==e){if(e===ks)return ks;if(!1===e||e instanceof Ss)return e}return!0}),(0,ye.h)(a=>a!==ks),(0,ct.q)(1)))}function ce(n){return(0,xs.z)((0,ni.b)(a=>{if(ba(a))throw wl(0,a)}),(0,At.U)(a=>!0===a))}const pt={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Nt(n,a,e,t,r){const l=gi(n,a,e);return l.matched?function Ce(n,a,e,t){const r=a.canMatch;if(!r||0===r.length)return(0,xe.of)(!0);const l=r.map(c=>{const s=n.get(c),o=function El(n){return n&&ta(n.canMatch)}(s)?s.canMatch(a,e):s(a,e);return hi(o)});return(0,xe.of)(l).pipe(Os(),ce())}(t=bh(a,t),a,e).pipe((0,At.U)(c=>!0===c?l:{...pt})):(0,xe.of)(l)}function gi(n,a,e){var t;if(""===a.path)return"full"===a.pathMatch&&(n.hasChildren()||e.length>0)?{...pt}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const l=(a.matcher||il)(e,n,a);if(!l)return{...pt};const c={};Si(l.posParams,(o,d)=>{c[d]=o.path});const s=l.consumed.length>0?{...c,...l.consumed[l.consumed.length-1].parameters}:c;return{matched:!0,consumedSegments:l.consumed,remainingSegments:e.slice(l.consumed.length),parameters:s,positionalParamSegments:null!==(t=l.posParams)&&void 0!==t?t:{}}}function rn(n,a,e,t,r="corrected"){if(e.length>0&&function Og(n,a,e){return e.some(t=>Ja(n,a,t)&&vr(t)!==zt)}(n,e,t)){const c=new gt(a,function Ca(n,a,e,t){const r={};r[zt]=t,t._sourceSegment=n,t._segmentIndexShift=a.length;for(const l of e)if(""===l.path&&vr(l)!==zt){const c=new gt([],{});c._sourceSegment=n,c._segmentIndexShift=a.length,r[vr(l)]=c}return r}(n,a,t,new gt(e,n.children)));return c._sourceSegment=n,c._segmentIndexShift=a.length,{segmentGroup:c,slicedSegments:[]}}if(0===e.length&&function Ig(n,a,e){return e.some(t=>Ja(n,a,t))}(n,e,t)){const c=new gt(n.segments,function Fr(n,a,e,t,r,l){const c={};for(const s of t)if(Ja(n,e,s)&&!r[vr(s)]){const o=new gt([],{});o._sourceSegment=n,o._segmentIndexShift="legacy"===l?n.segments.length:a.length,c[vr(s)]=o}return{...r,...c}}(n,a,e,t,n.children,r));return c._sourceSegment=n,c._segmentIndexShift=a.length,{segmentGroup:c,slicedSegments:e}}const l=new gt(n.segments,n.children);return l._sourceSegment=n,l._segmentIndexShift=a.length,{segmentGroup:l,slicedSegments:e}}function Ja(n,a,e){return(!(n.hasChildren()||a.length>0)||"full"!==e.pathMatch)&&""===e.path}function Bg(n,a,e,t){return!!(vr(n)===t||t!==zt&&Ja(a,e,n))&&("**"===n.path||gi(a,n,e).matched)}function Ng(n,a,e){return 0===a.length&&!n.children[e]}const xh=!1;class Sh{constructor(a){this.segmentGroup=a||null}}class Vg{constructor(a){this.urlTree=a}}function zr(n){return(0,Rn._)(new Sh(n))}function Dl(n){return(0,Rn._)(new Vg(n))}class Cy{constructor(a,e,t,r,l){this.injector=a,this.configLoader=e,this.urlSerializer=t,this.urlTree=r,this.config=l,this.allowRedirects=!0}apply(){const a=rn(this.urlTree.root,[],[],this.config).segmentGroup,e=new gt(a.segments,a.children);return this.expandSegmentGroup(this.injector,this.config,e,zt).pipe((0,At.U)(l=>this.createUrlTree(qa(l),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,On.K)(l=>{if(l instanceof Vg)return this.allowRedirects=!1,this.match(l.urlTree);throw l instanceof Sh?this.noMatchError(l):l}))}match(a){return this.expandSegmentGroup(this.injector,this.config,a.root,zt).pipe((0,At.U)(r=>this.createUrlTree(qa(r),a.queryParams,a.fragment))).pipe((0,On.K)(r=>{throw r instanceof Sh?this.noMatchError(r):r}))}noMatchError(a){return new i.vHH(4002,xh)}createUrlTree(a,e,t){const r=Hd(a);return new Ss(r,e,t)}expandSegmentGroup(a,e,t,r){return 0===t.segments.length&&t.hasChildren()?this.expandChildren(a,e,t).pipe((0,At.U)(l=>new gt([],l))):this.expandSegment(a,t,e,t.segments,r,!0)}expandChildren(a,e,t){const r=[];for(const l of Object.keys(t.children))"primary"===l?r.unshift(l):r.push(l);return(0,ht.D)(r).pipe((0,Pr.b)(l=>{const c=t.children[l],s=Mh(e,l);return this.expandSegmentGroup(a,s,c,l).pipe((0,At.U)(o=>({segment:o,outlet:l})))}),kr((l,c)=>(l[c.outlet]=c.segment,l),{}),uc())}expandSegment(a,e,t,r,l,c){return(0,ht.D)(t).pipe((0,Pr.b)(s=>this.expandSegmentAgainstRoute(a,e,t,s,r,l,c).pipe((0,On.K)(d=>{if(d instanceof Sh)return(0,xe.of)(null);throw d}))),(0,Zi.P)(s=>!!s),(0,On.K)((s,o)=>{if(Yd(s))return Ng(e,r,l)?(0,xe.of)(new gt([],{})):zr(e);throw s}))}expandSegmentAgainstRoute(a,e,t,r,l,c,s){return Bg(r,e,l,c)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(a,e,r,l,c):s&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(a,e,t,r,l,c):zr(e):zr(e)}expandSegmentAgainstRouteUsingRedirect(a,e,t,r,l,c){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(a,t,r,c):this.expandRegularSegmentAgainstRouteUsingRedirect(a,e,t,r,l,c)}expandWildCardWithParamsAgainstRouteUsingRedirect(a,e,t,r){const l=this.applyRedirectCommands([],t.redirectTo,{});return t.redirectTo.startsWith("/")?Dl(l):this.lineralizeSegments(t,l).pipe((0,kn.z)(c=>{const s=new gt(c,{});return this.expandSegment(a,s,e,c,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(a,e,t,r,l,c){const{matched:s,consumedSegments:o,remainingSegments:d,positionalParamSegments:u}=gi(e,r,l);if(!s)return zr(e);const h=this.applyRedirectCommands(o,r.redirectTo,u);return r.redirectTo.startsWith("/")?Dl(h):this.lineralizeSegments(r,h).pipe((0,kn.z)(f=>this.expandSegment(a,e,t,f.concat(d),c,!1)))}matchSegmentAgainstRoute(a,e,t,r,l){return"**"===t.path?(a=bh(t,a),t.loadChildren?(t._loadedRoutes?(0,xe.of)({routes:t._loadedRoutes,injector:t._loadedInjector}):this.configLoader.loadChildren(a,t)).pipe((0,At.U)(s=>(t._loadedRoutes=s.routes,t._loadedInjector=s.injector,new gt(r,{})))):(0,xe.of)(new gt(r,{}))):Nt(e,t,r,a).pipe((0,mi.w)(({matched:c,consumedSegments:s,remainingSegments:o})=>{var d;return c?(a=null!==(d=t._injector)&&void 0!==d?d:a,this.getChildConfig(a,t,r).pipe((0,kn.z)(h=>{var f;const b=null!==(f=h.injector)&&void 0!==f?f:a,B=h.routes,{segmentGroup:X,slicedSegments:he}=rn(e,s,o,B),Pe=new gt(X.segments,X.children);if(0===he.length&&Pe.hasChildren())return this.expandChildren(b,B,Pe).pipe((0,At.U)(oa=>new gt(s,oa)));if(0===B.length&&0===he.length)return(0,xe.of)(new gt(s,{}));const bt=vr(t)===l;return this.expandSegment(b,Pe,B,he,bt?zt:l,!0).pipe((0,At.U)(qt=>new gt(s.concat(qt.segments),qt.children)))}))):zr(e)}))}getChildConfig(a,e,t){return e.children?(0,xe.of)({routes:e.children,injector:a}):e.loadChildren?void 0!==e._loadedRoutes?(0,xe.of)({routes:e._loadedRoutes,injector:e._loadedInjector}):function $(n,a,e,t){const r=a.canLoad;if(void 0===r||0===r.length)return(0,xe.of)(!0);const l=r.map(c=>{const s=n.get(c),o=function xf(n){return n&&ta(n.canLoad)}(s)?s.canLoad(a,e):s(a,e);return hi(o)});return(0,xe.of)(l).pipe(Os(),ce())}(a,e,t).pipe((0,kn.z)(r=>r?this.configLoader.loadChildren(a,e).pipe((0,ni.b)(l=>{e._loadedRoutes=l.routes,e._loadedInjector=l.injector})):function My(n){return(0,Rn._)(Fd(xh,3))}())):(0,xe.of)({routes:[],injector:a})}lineralizeSegments(a,e){let t=[],r=e.root;for(;;){if(t=t.concat(r.segments),0===r.numberOfChildren)return(0,xe.of)(t);if(r.numberOfChildren>1||!r.children[zt])return(0,Rn._)(new i.vHH(4e3,xh));r=r.children[zt]}}applyRedirectCommands(a,e,t){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),a,t)}applyRedirectCreateUrlTree(a,e,t,r){const l=this.createSegmentGroup(a,e.root,t,r);return new Ss(l,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(a,e){const t={};return Si(a,(r,l)=>{if("string"==typeof r&&r.startsWith(":")){const s=r.substring(1);t[l]=e[s]}else t[l]=r}),t}createSegmentGroup(a,e,t,r){const l=this.createSegments(a,e.segments,t,r);let c={};return Si(e.children,(s,o)=>{c[o]=this.createSegmentGroup(a,s,t,r)}),new gt(l,c)}createSegments(a,e,t,r){return e.map(l=>l.path.startsWith(":")?this.findPosParam(a,l,r):this.findOrReturn(l,t))}findPosParam(a,e,t){const r=t[e.path.substring(1)];if(!r)throw new i.vHH(4001,xh);return r}findOrReturn(a,e){let t=0;for(const r of e){if(r.path===a.path)return e.splice(t),r;t++}return a}}class Fg{}class Sy{constructor(a,e,t,r,l,c,s,o){this.injector=a,this.rootComponentType=e,this.config=t,this.urlTree=r,this.url=l,this.paramsInheritanceStrategy=c,this.relativeLinkResolution=s,this.urlSerializer=o}recognize(){const a=rn(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,a,zt).pipe((0,At.U)(e=>{if(null===e)return null;const t=new Vd([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},zt,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new nn(t,e),l=new Wa(this.url,r);return this.inheritParamsAndData(l._root),l}))}inheritParamsAndData(a){const e=a.value,t=gh(e,this.paramsInheritanceStrategy);e.params=Object.freeze(t.params),e.data=Object.freeze(t.data),a.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(a,e,t,r){return 0===t.segments.length&&t.hasChildren()?this.processChildren(a,e,t):this.processSegment(a,e,t,t.segments,r)}processChildren(a,e,t){return(0,ht.D)(Object.keys(t.children)).pipe((0,Pr.b)(r=>{const l=t.children[r],c=Mh(e,r);return this.processSegmentGroup(a,c,l,r)}),kr((r,l)=>r&&l?(r.push(...l),r):null),hc(r=>null!==r),(0,vd.d)(null),uc(),(0,At.U)(r=>{if(null===r)return null;const l=xc(r);return function Ey(n){n.sort((a,e)=>a.value.outlet===zt?-1:e.value.outlet===zt?1:a.value.outlet.localeCompare(e.value.outlet))}(l),l}))}processSegment(a,e,t,r,l){return(0,ht.D)(e).pipe((0,Pr.b)(c=>{var s;return this.processSegmentAgainstRoute(null!==(s=c._injector)&&void 0!==s?s:a,c,t,r,l)}),(0,Zi.P)(c=>!!c),(0,On.K)(c=>{if(Yd(c))return Ng(t,r,l)?(0,xe.of)([]):(0,xe.of)(null);throw c}))}processSegmentAgainstRoute(a,e,t,r,l){if(e.redirectTo||!Bg(e,t,r,l))return(0,xe.of)(null);let c;if("**"===e.path){var s,o;const d=r.length>0?gc(r).parameters:{},u=Sc(t)+r.length,h=new Vd(r,d,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Df(e),vr(e),null!==(s=null!==(o=e.component)&&void 0!==o?o:e._loadedComponent)&&void 0!==s?s:null,e,va(t),u,Hf(e),u);c=(0,xe.of)({snapshot:h,consumedSegments:[],remainingSegments:[]})}else c=Nt(t,e,r,a).pipe((0,At.U)(({matched:d,consumedSegments:u,remainingSegments:h,parameters:f})=>{var b,B;if(!d)return null;const X=Sc(t)+u.length;return{snapshot:new Vd(u,f,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Df(e),vr(e),null!==(b=null!==(B=e.component)&&void 0!==B?B:e._loadedComponent)&&void 0!==b?b:null,e,va(t),X,Hf(e),X),consumedSegments:u,remainingSegments:h}}));return c.pipe((0,mi.w)(d=>{var u,h;if(null===d)return(0,xe.of)(null);const{snapshot:f,consumedSegments:b,remainingSegments:B}=d;a=null!==(u=e._injector)&&void 0!==u?u:a;const X=null!==(h=e._loadedInjector)&&void 0!==h?h:a,he=function cx(n){return n.children?n.children:n.loadChildren?n._loadedRoutes:[]}(e),{segmentGroup:Pe,slicedSegments:bt}=rn(t,b,B,he.filter(qt=>void 0===qt.redirectTo),this.relativeLinkResolution);if(0===bt.length&&Pe.hasChildren())return this.processChildren(X,he,Pe).pipe((0,At.U)(qt=>null===qt?null:[new nn(f,qt)]));if(0===he.length&&0===bt.length)return(0,xe.of)([new nn(f,[])]);const kt=vr(e)===l;return this.processSegment(X,he,Pe,bt,kt?zt:l).pipe((0,At.U)(qt=>null===qt?null:[new nn(f,qt)]))}))}}function Dy(n){const a=n.value.routeConfig;return a&&""===a.path&&void 0===a.redirectTo}function xc(n){const a=[],e=new Set;for(const t of n){if(!Dy(t)){a.push(t);continue}const r=a.find(l=>t.value.routeConfig===l.value.routeConfig);void 0!==r?(r.children.push(...t.children),e.add(r)):a.push(t)}for(const t of e){const r=xc(t.children);a.push(new nn(t.value,r))}return a.filter(t=>!e.has(t))}function va(n){let a=n;for(;a._sourceSegment;)a=a._sourceSegment;return a}function Sc(n){var a;let e=n,t=null!==(a=e._segmentIndexShift)&&void 0!==a?a:0;for(;e._sourceSegment;){var r;e=e._sourceSegment,t+=null!==(r=e._segmentIndexShift)&&void 0!==r?r:0}return t-1}function Df(n){return n.data||{}}function Hf(n){return n.resolve||{}}const jg=Symbol("RouteTitle");function Hy(n){return"string"==typeof n.title||null===n.title}function Dh(n){return(0,mi.w)(a=>{const e=n(a);return e?(0,ht.D)(e).pipe((0,At.U)(()=>a)):(0,xe.of)(a)})}let qg=(()=>{class n{buildTitle(e){let t,r=e.root;for(;void 0!==r;){var l;t=null!==(l=this.getResolvedTitleForRoute(r))&&void 0!==l?l:t,r=r.children.find(c=>c.outlet===zt)}return t}getResolvedTitleForRoute(e){return e.data[jg]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:function(){return(0,i.f3M)(Yg)},providedIn:"root"}),n})(),Yg=(()=>{class n extends qg{constructor(e){super(),this.title=e}updateTitle(e){const t=this.buildTitle(e);void 0!==t&&this.title.setTitle(t)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(se))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class Ly{}class Wg extends class Py{shouldDetach(a){return!1}store(a,e){}shouldAttach(a){return!1}retrieve(a){return null}shouldReuseRoute(a,e){return a.routeConfig===e.routeConfig}}{}const Lh=new i.OlP("",{providedIn:"root",factory:()=>({})}),kf=new i.OlP("ROUTES");let an=(()=>{class n{constructor(e,t){this.injector=e,this.compiler=t,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return(0,xe.of)(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const t=hi(e.loadComponent()).pipe((0,ni.b)(l=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=l}),Or(()=>{this.componentLoaders.delete(e)})),r=new dc(t,()=>new Ee.x).pipe(Xu());return this.componentLoaders.set(e,r),r}loadChildren(e,t){if(this.childrenLoaders.get(t))return this.childrenLoaders.get(t);if(t._loadedRoutes)return(0,xe.of)({routes:t._loadedRoutes,injector:t._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(t);const l=this.loadModuleFactoryOrRoutes(t.loadChildren).pipe((0,At.U)(s=>{this.onLoadEndListener&&this.onLoadEndListener(t);let o,d,u=!1;Array.isArray(s)?d=s:(o=s.create(e).injector,d=eh(o.get(kf,[],i.XFs.Self|i.XFs.Optional)));return{routes:d.map(Rs),injector:o}}),Or(()=>{this.childrenLoaders.delete(t)})),c=new dc(l,()=>new Ee.x).pipe(Xu());return this.childrenLoaders.set(t,c),c}loadModuleFactoryOrRoutes(e){return hi(e()).pipe((0,kn.z)(t=>t instanceof i.YKP||Array.isArray(t)?(0,xe.of)(t):(0,ht.D)(this.compiler.compileModuleAsync(t))))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.zs3),i.LFG(i.Sil))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class Ug{}class Ry{shouldProcessUrl(a){return!0}extract(a){return a}merge(a,e){return a}}function Gg(n){throw n}function ky(n,a,e){return a.parse("/")}const Oy={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Iy={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function $g(){var n,a;const e=(0,i.f3M)(ll),t=(0,i.f3M)(Tc),r=(0,i.f3M)(w.Ye),l=(0,i.f3M)(i.zs3),c=(0,i.f3M)(i.Sil),s=null!==(n=(0,i.f3M)(kf,{optional:!0}))&&void 0!==n?n:[],o=null!==(a=(0,i.f3M)(Lh,{optional:!0}))&&void 0!==a?a:{},d=(0,i.f3M)(Yg),u=(0,i.f3M)(qg,{optional:!0}),h=(0,i.f3M)(Ug,{optional:!0}),f=(0,i.f3M)(Ly,{optional:!0}),b=new Ni(null,e,t,r,l,c,eh(s));return h&&(b.urlHandlingStrategy=h),f&&(b.routeReuseStrategy=f),b.titleStrategy=u??d,function By(n,a){n.errorHandler&&(a.errorHandler=n.errorHandler),n.malformedUriErrorHandler&&(a.malformedUriErrorHandler=n.malformedUriErrorHandler),n.onSameUrlNavigation&&(a.onSameUrlNavigation=n.onSameUrlNavigation),n.paramsInheritanceStrategy&&(a.paramsInheritanceStrategy=n.paramsInheritanceStrategy),n.relativeLinkResolution&&(a.relativeLinkResolution=n.relativeLinkResolution),n.urlUpdateStrategy&&(a.urlUpdateStrategy=n.urlUpdateStrategy),n.canceledNavigationResolution&&(a.canceledNavigationResolution=n.canceledNavigationResolution)}(o,b),b}let Ni=(()=>{class n{constructor(e,t,r,l,c,s,o){this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=r,this.location=l,this.config=o,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Ee.x,this.errorHandler=Gg,this.malformedUriErrorHandler=ky,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>(0,xe.of)(void 0),this.urlHandlingStrategy=new Ry,this.routeReuseStrategy=new Wg,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=c.get(an),this.configLoader.onLoadEndListener=f=>this.triggerEvent(new ph(f)),this.configLoader.onLoadStartListener=f=>this.triggerEvent(new Hg(f)),this.ngModule=c.get(i.h0i),this.console=c.get(i.c2e);const h=c.get(i.R0b);this.isNgZoneEnabled=h instanceof i.R0b&&i.R0b.isInAngularZone(),this.resetConfig(o),this.currentUrlTree=function ff(){return new Ss(new gt([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=bl(this.currentUrlTree,this.rootComponentType),this.transitions=new Ii({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var e;return null===(e=this.location.getState())||void 0===e?void 0:e.\u0275routerPageId}setupNavigations(e){const t=this.events;return e.pipe((0,ye.h)(r=>0!==r.id),(0,At.U)(r=>({...r,extractedUrl:this.urlHandlingStrategy.extract(r.rawUrl)})),(0,mi.w)(r=>{let l=!1,c=!1;return(0,xe.of)(r).pipe((0,ni.b)(s=>{this.currentNavigation={id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,trigger:s.source,extras:s.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,mi.w)(s=>{const o=this.browserUrlTree.toString(),d=!this.navigated||s.extractedUrl.toString()!==o||o!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||d)&&this.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return Dc(s.source)&&(this.browserUrlTree=s.extractedUrl),(0,xe.of)(s).pipe((0,mi.w)(h=>{const f=this.transitions.getValue();return t.next(new gl(h.id,this.serializeUrl(h.extractedUrl),h.source,h.restoredState)),f!==this.transitions.getValue()?$i.E:Promise.resolve(h)}),function vy(n,a,e,t){return(0,mi.w)(r=>function wy(n,a,e,t,r){return new Cy(n,a,e,t,r).apply()}(n,a,e,r.extractedUrl,t).pipe((0,At.U)(l=>({...r,urlAfterRedirects:l}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,ni.b)(h=>{this.currentNavigation={...this.currentNavigation,finalUrl:h.urlAfterRedirects},r.urlAfterRedirects=h.urlAfterRedirects}),function dx(n,a,e,t,r,l){return(0,kn.z)(c=>function xy(n,a,e,t,r,l,c="emptyOnly",s="legacy"){return new Sy(n,a,e,t,r,c,s,l).recognize().pipe((0,mi.w)(o=>null===o?function Ty(n){return new _i.y(a=>a.error(n))}(new Fg):(0,xe.of)(o)))}(n,a,e,c.urlAfterRedirects,t.serialize(c.urlAfterRedirects),t,r,l).pipe((0,At.U)(s=>({...c,targetSnapshot:s}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,ni.b)(h=>{if(r.targetSnapshot=h.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!h.extras.skipLocationChange){const b=this.urlHandlingStrategy.merge(h.urlAfterRedirects,h.rawUrl);this.setBrowserUrl(b,h)}this.browserUrlTree=h.urlAfterRedirects}const f=new Ti(h.id,this.serializeUrl(h.extractedUrl),this.serializeUrl(h.urlAfterRedirects),h.targetSnapshot);t.next(f)}));if(d&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:f,extractedUrl:b,source:B,restoredState:X,extras:he}=s,Pe=new gl(f,this.serializeUrl(b),B,X);t.next(Pe);const bt=bl(b,this.rootComponentType).snapshot;return r={...s,targetSnapshot:bt,urlAfterRedirects:b,extras:{...he,skipLocationChange:!1,replaceUrl:!1}},(0,xe.of)(r)}return this.rawUrlTree=s.rawUrl,s.resolve(null),$i.E}),(0,ni.b)(s=>{const o=new xg(s.id,this.serializeUrl(s.extractedUrl),this.serializeUrl(s.urlAfterRedirects),s.targetSnapshot);this.triggerEvent(o)}),(0,At.U)(s=>r={...s,guards:vf(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),function Wd(n,a){return(0,kn.z)(e=>{const{targetSnapshot:t,currentSnapshot:r,guards:{canActivateChecks:l,canDeactivateChecks:c}}=e;return 0===c.length&&0===l.length?(0,xe.of)({...e,guardsResult:!0}):function Is(n,a,e,t){return(0,ht.D)(n).pipe((0,kn.z)(r=>function z(n,a,e,t,r){const l=a&&a.routeConfig?a.routeConfig.canDeactivate:null;if(!l||0===l.length)return(0,xe.of)(!0);const c=l.map(s=>{const o=Za(s,a,r);return hi(function wa(n){return n&&ta(n.canDeactivate)}(o)?o.canDeactivate(n,a,e,t):o(n,a,e,t)).pipe((0,Zi.P)())});return(0,xe.of)(c).pipe(Os())}(r.component,r.route,e,a,t)),(0,Zi.P)(r=>!0!==r,!0))}(c,t,r,n).pipe((0,kn.z)(s=>s&&function Sl(n){return"boolean"==typeof n}(s)?function Ud(n,a,e,t){return(0,ht.D)(a).pipe((0,Pr.b)(r=>(0,er.z)(function v(n,a){return null!==n&&a&&a(new Lg(n)),(0,xe.of)(!0)}(r.route.parent,t),function Gt(n,a){return null!==n&&a&&a(new Pg(n)),(0,xe.of)(!0)}(r.route,t),function O(n,a,e){const t=a[a.length-1],l=a.slice(0,a.length-1).reverse().map(c=>function Ch(n){const a=n.routeConfig?n.routeConfig.canActivateChild:null;return a&&0!==a.length?{node:n,guards:a}:null}(c)).filter(c=>null!==c).map(c=>Di(()=>{const s=c.guards.map(o=>{const d=Za(o,c.node,e);return hi(function Th(n){return n&&ta(n.canActivateChild)}(d)?d.canActivateChild(t,n):d(t,n)).pipe((0,Zi.P)())});return(0,xe.of)(s).pipe(Os())}));return(0,xe.of)(l).pipe(Os())}(n,r.path,e),function H(n,a,e){const t=a.routeConfig?a.routeConfig.canActivate:null;if(!t||0===t.length)return(0,xe.of)(!0);const r=t.map(l=>Di(()=>{const c=Za(l,a,e);return hi(function Rg(n){return n&&ta(n.canActivate)}(c)?c.canActivate(a,n):c(a,n)).pipe((0,Zi.P)())}));return(0,xe.of)(r).pipe(Os())}(n,r.route,e))),(0,Zi.P)(r=>!0!==r,!0))}(t,l,n,a):(0,xe.of)(s)),(0,At.U)(s=>({...e,guardsResult:s})))})}(this.ngModule.injector,s=>this.triggerEvent(s)),(0,ni.b)(s=>{if(r.guardsResult=s.guardsResult,ba(s.guardsResult))throw wl(0,s.guardsResult);const o=new Sg(s.id,this.serializeUrl(s.extractedUrl),this.serializeUrl(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);this.triggerEvent(o)}),(0,ye.h)(s=>!!s.guardsResult||(this.restoreHistory(s),this.cancelNavigationTransition(s,"",3),!1)),Dh(s=>{if(s.guards.canActivateChecks.length)return(0,xe.of)(s).pipe((0,ni.b)(o=>{const d=new Eg(o.id,this.serializeUrl(o.extractedUrl),this.serializeUrl(o.urlAfterRedirects),o.targetSnapshot);this.triggerEvent(d)}),(0,mi.w)(o=>{let d=!1;return(0,xe.of)(o).pipe(function ux(n,a){return(0,kn.z)(e=>{const{targetSnapshot:t,guards:{canActivateChecks:r}}=e;if(!r.length)return(0,xe.of)(e);let l=0;return(0,ht.D)(r).pipe((0,Pr.b)(c=>function Lf(n,a,e,t){const r=n.routeConfig,l=n._resolve;return void 0!==r?.title&&!Hy(r)&&(l[jg]=r.title),function Pf(n,a,e,t){const r=function Rf(n){return[...Object.keys(n),...Object.getOwnPropertySymbols(n)]}(n);if(0===r.length)return(0,xe.of)({});const l={};return(0,ht.D)(r).pipe((0,kn.z)(c=>function hx(n,a,e,t){const r=Za(n,a,t);return hi(r.resolve?r.resolve(a,e):r(a,e))}(n[c],a,e,t).pipe((0,Zi.P)(),(0,ni.b)(s=>{l[c]=s}))),vi(1),(0,pc.h)(l),(0,On.K)(c=>Yd(c)?$i.E:(0,Rn._)(c)))}(l,n,a,t).pipe((0,At.U)(c=>(n._resolvedData=c,n.data=gh(n,e).resolve,r&&Hy(r)&&(n.data[jg]=r.title),null)))}(c.route,t,n,a)),(0,ni.b)(()=>l++),vi(1),(0,kn.z)(c=>l===r.length?(0,xe.of)(e):$i.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,ni.b)({next:()=>d=!0,complete:()=>{d||(this.restoreHistory(o),this.cancelNavigationTransition(o,"",2))}}))}),(0,ni.b)(o=>{const d=new Dg(o.id,this.serializeUrl(o.extractedUrl),this.serializeUrl(o.urlAfterRedirects),o.targetSnapshot);this.triggerEvent(d)}))}),Dh(s=>{const o=d=>{var u;const h=[];null!==(u=d.routeConfig)&&void 0!==u&&u.loadComponent&&!d.routeConfig._loadedComponent&&h.push(this.configLoader.loadComponent(d.routeConfig).pipe((0,ni.b)(f=>{d.component=f}),(0,At.U)(()=>{})));for(const f of d.children)h.push(...o(f));return h};return(0,Ci.a)(o(s.targetSnapshot.root)).pipe((0,vd.d)(),(0,ct.q)(1))}),Dh(()=>this.afterPreactivation()),(0,At.U)(s=>{const o=function je(n,a,e){const t=To(n,a._root,e?e._root:void 0);return new Mc(t,a)}(this.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return r={...s,targetRouterState:o}}),(0,ni.b)(s=>{this.currentUrlTree=s.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(s.urlAfterRedirects,s.rawUrl),this.routerState=s.targetRouterState,"deferred"===this.urlUpdateStrategy&&(s.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,s),this.browserUrlTree=s.urlAfterRedirects)}),((n,a,e)=>(0,At.U)(t=>(new Tl(a,t.targetRouterState,t.currentRouterState,e).activate(n),t)))(this.rootContexts,this.routeReuseStrategy,s=>this.triggerEvent(s)),(0,ni.b)({next(){l=!0},complete(){l=!0}}),Or(()=>{var s;l||c||this.cancelNavigationTransition(r,"",1),(null===(s=this.currentNavigation)||void 0===s?void 0:s.id)===r.id&&(this.currentNavigation=null)}),(0,On.K)(s=>{if(c=!0,Cc(s)){wc(s)||(this.navigated=!0,this.restoreHistory(r,!0));const d=new Id(r.id,this.serializeUrl(r.extractedUrl),s.message,s.cancellationCode);if(t.next(d),wc(s)){const u=this.urlHandlingStrategy.merge(s.url,this.rawUrlTree),h={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Dc(r.source)};this.scheduleNavigation(u,"imperative",null,h,{resolve:r.resolve,reject:r.reject,promise:r.promise})}else r.resolve(!1)}else{var o;this.restoreHistory(r,!0);const d=new hh(r.id,this.serializeUrl(r.extractedUrl),s,null!==(o=r.targetSnapshot)&&void 0!==o?o:void 0);t.next(d);try{r.resolve(this.errorHandler(s))}catch(u){r.reject(u)}}return $i.E}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next({...this.transitions.value,...e})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const t="popstate"===e.type?"popstate":"hashchange";"popstate"===t&&setTimeout(()=>{var r;const l={replaceUrl:!0},c=null!==(r=e.state)&&void 0!==r&&r.navigationId?e.state:null;if(c){const o={...c};delete o.navigationId,delete o.\u0275routerPageId,0!==Object.keys(o).length&&(l.state=o)}const s=this.parseUrl(e.url);this.scheduleNavigation(s,t,c,l)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){this.config=e.map(Rs),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,t={}){const{relativeTo:r,queryParams:l,fragment:c,queryParamsHandling:s,preserveFragment:o}=t,d=r||this.routerState.root,u=o?this.currentUrlTree.fragment:c;let h=null;switch(s){case"merge":h={...this.currentUrlTree.queryParams,...l};break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=l||null}return null!==h&&(h=this.removeEmptyProps(h)),kd(d,this.currentUrlTree,e,h,u??null)}navigateByUrl(e,t={skipLocationChange:!1}){const r=ba(e)?e:this.parseUrl(e),l=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(l,"imperative",null,t)}navigate(e,t={skipLocationChange:!1}){return function px(n){for(let a=0;a{const l=e[r];return null!=l&&(t[r]=l),t},{})}processNavigations(){this.navigations.subscribe(e=>{var t;this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new Xn(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,null===(t=this.titleStrategy)||void 0===t||t.updateTitle(this.routerState.snapshot),e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,t,r,l,c){if(this.disposed)return Promise.resolve(!1);let s,o,d;c?(s=c.resolve,o=c.reject,d=c.promise):d=new Promise((B,X)=>{s=B,o=X});const u=++this.navigationId;let h;if("computed"===this.canceledNavigationResolution)if(0===this.currentPageId&&(r=this.location.getState()),r&&r.\u0275routerPageId)h=r.\u0275routerPageId;else if(l.replaceUrl||l.skipLocationChange){var f;h=null!==(f=this.browserPageId)&&void 0!==f?f:0}else{var b;h=(null!==(b=this.browserPageId)&&void 0!==b?b:0)+1}else h=0;return this.setTransition({id:u,targetPageId:h,source:t,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:l,resolve:s,reject:o,promise:d,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),d.catch(B=>Promise.reject(B))}setBrowserUrl(e,t){const r=this.urlSerializer.serialize(e),l={...t.extras.state,...this.generateNgRouterState(t.id,t.targetPageId)};this.location.isCurrentPathEqualTo(r)||t.extras.replaceUrl?this.location.replaceState(r,"",l):this.location.go(r,"",l)}restoreHistory(e,t=!1){if("computed"===this.canceledNavigationResolution){var r,l;const c=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(r=this.currentNavigation)||void 0===r?void 0:r.finalUrl)||0===c?this.currentUrlTree===(null===(l=this.currentNavigation)||void 0===l?void 0:l.finalUrl)&&0===c&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(c)}else"replace"===this.canceledNavigationResolution&&(t&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,t,r){const l=new Id(e.id,this.serializeUrl(e.extractedUrl),t,r);this.triggerEvent(l),e.resolve(!1)}generateNgRouterState(e,t){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:t}:{navigationId:e}}}return n.\u0275fac=function(e){i.$Z()},n.\u0275prov=i.Yz7({token:n,factory:function(){return $g()},providedIn:"root"}),n})();function Dc(n){return"imperative"!==n}let Qa=(()=>{class n{constructor(e,t,r,l,c){this.router=e,this.route=t,this.tabIndexAttribute=r,this.renderer=l,this.el=c,this.commands=null,this.onChanges=new Ee.x,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(e){if(null!=this.tabIndexAttribute)return;const t=this.renderer,r=this.el.nativeElement;null!==e?t.setAttribute(r,"tabindex",e):t.removeAttribute(r,"tabindex")}ngOnChanges(e){this.onChanges.next(this)}set routerLink(e){null!=e?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const e={skipLocationChange:(0,i.D6c)(this.skipLocationChange),replaceUrl:(0,i.D6c)(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,e),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:(0,i.D6c)(this.preserveFragment)})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ni),i.Y36(In),i.$8M("tabindex"),i.Y36(i.Qsj),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(e,t){1&e&&i.NdJ("click",function(){return t.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[i.TTD]}),n})(),Hc=(()=>{class n{constructor(e,t,r){this.router=e,this.route=t,this.locationStrategy=r,this.commands=null,this.href=null,this.onChanges=new Ee.x,this.subscription=e.events.subscribe(l=>{l instanceof Xn&&this.updateTargetUrlAndHref()})}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:null}ngOnChanges(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(e,t,r,l,c){if(0!==e||t||r||l||c||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const s={skipLocationChange:(0,i.D6c)(this.skipLocationChange),replaceUrl:(0,i.D6c)(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,s),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:(0,i.D6c)(this.preserveFragment)})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ni),i.Y36(In),i.Y36(w.S$))},n.\u0275dir=i.lG2({type:n,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,t){1&e&&i.NdJ("click",function(l){return t.onClick(l.button,l.ctrlKey,l.shiftKey,l.altKey,l.metaKey)}),2&e&&i.uIk("target",t.target)("href",t.href,i.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[i.TTD]}),n})();class Qg{}let Xg=(()=>{class n{preload(e,t){return t().pipe((0,On.K)(()=>(0,xe.of)(null)))}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Rh=(()=>{class n{constructor(e,t,r,l,c){this.router=e,this.injector=r,this.preloadingStrategy=l,this.loader=c}setUpPreloading(){this.subscription=this.router.events.pipe((0,ye.h)(e=>e instanceof Xn),(0,Pr.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,t){const r=[];for(const o of t){var l,c;o.providers&&!o._injector&&(o._injector=(0,i.MMx)(o.providers,e,`Route: ${o.path}`));const d=null!==(l=o._injector)&&void 0!==l?l:e,u=null!==(c=o._loadedInjector)&&void 0!==c?c:d;if(o.loadChildren&&!o._loadedRoutes&&void 0===o.canLoad||o.loadComponent&&!o._loadedComponent)r.push(this.preloadConfig(d,o));else if(o.children||o._loadedRoutes){var s;r.push(this.processRoutes(u,null!==(s=o.children)&&void 0!==s?s:o._loadedRoutes))}}return(0,ht.D)(r).pipe((0,fc.J)())}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>{let r;r=t.loadChildren&&void 0===t.canLoad?this.loader.loadChildren(e,t):(0,xe.of)(null);const l=r.pipe((0,kn.z)(c=>{var s;return null===c?(0,xe.of)(void 0):(t._loadedRoutes=c.routes,t._loadedInjector=c.injector,this.processRoutes(null!==(s=c.injector)&&void 0!==s?s:e,c.routes))}));if(t.loadComponent&&!t._loadedComponent){const c=this.loader.loadComponent(t);return(0,ht.D)([l,c]).pipe((0,fc.J)())}return l})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Ni),i.LFG(i.Sil),i.LFG(i.lqb),i.LFG(Qg),i.LFG(an))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const Vy=new i.OlP("");let Fy=(()=>{class n{constructor(e,t,r={}){this.router=e,this.viewportScroller=t,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.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(e=>{e instanceof gl?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Xn&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof qi&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,t){this.router.triggerEvent(new qi(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return n.\u0275fac=function(e){i.$Z()},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const Of=new i.OlP("ROUTER_FORROOT_GUARD"),xo=new i.OlP(""),jy=[w.Ye,{provide:ll,useClass:Sd},{provide:Ni,useFactory:$g},Tc,{provide:In,useFactory:function If(n){return n.routerState.root},deps:[Ni]},an];function kh(){return new i.PXZ("Router",Ni)}let Oh=(()=>{class n{constructor(e){}static forRoot(e,t){return{ngModule:n,providers:[jy,[],Bh(e),{provide:Of,useFactory:Kg,deps:[[Ni,new i.FiY,new i.tp0]]},{provide:Lh,useValue:t||{}},null!=t&&t.useHash?{provide:w.S$,useClass:w.Do}:{provide:w.S$,useClass:w.b0},{provide:Vy,useFactory:()=>{const n=(0,i.f3M)(Ni),a=(0,i.f3M)(w.EM),e=(0,i.f3M)(Lh);return e.scrollOffset&&a.setOffset(e.scrollOffset),new Fy(n,a,e)}},null!=t&&t.preloadingStrategy?Uy(t.preloadingStrategy):[],{provide:i.PXZ,multi:!0,useFactory:kh},null!=t&&t.initialNavigation?t1(t):[],[{provide:e1,useFactory:qy},{provide:i.tb,multi:!0,useExisting:e1}]]}}static forChild(e){return{ngModule:n,providers:[Bh(e)]}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Of,8))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();function Kg(n){return"guarded"}function Bh(n){return[{provide:kf,multi:!0,useValue:n}]}function qy(){const n=(0,i.f3M)(i.zs3);return a=>{var e,t;const r=n.get(i.z2F);if(a!==r.components[0])return;const l=n.get(Ni),c=n.get(n1);1===n.get(Nf)&&l.initialNavigation(),null===(e=n.get(xo,null,i.XFs.Optional))||void 0===e||e.setUpPreloading(),null===(t=n.get(Vy,null,i.XFs.Optional))||void 0===t||t.init(),l.resetRootComponentType(r.componentTypes[0]),c.next(),c.complete()}}const e1=new i.OlP("");function t1(n){return["disabled"===n.initialNavigation?[{provide:i.ip1,multi:!0,useFactory:()=>{const n=(0,i.f3M)(Ni);return()=>{n.setUpLocationChangeListener()}}},{provide:Nf,useValue:2}]:[],"enabledBlocking"===n.initialNavigation?[{provide:Nf,useValue:0},{provide:i.ip1,multi:!0,deps:[i.zs3],useFactory:n=>{const a=n.get(w.V_,Promise.resolve(null));let e=!1;return()=>a.then(()=>new Promise(r=>{const l=n.get(Ni),c=n.get(n1);(function t(r){n.get(Ni).events.pipe((0,ye.h)(c=>c instanceof Xn||c instanceof Id||c instanceof hh),(0,At.U)(c=>c instanceof Xn||c instanceof Id&&(0===c.code||1===c.code)&&null),(0,ye.h)(c=>null!==c),(0,ct.q)(1)).subscribe(()=>{r()})})(()=>{r(!0),e=!0}),l.afterPreactivation=()=>(r(!0),e||c.closed?(0,xe.of)(void 0):c),l.initialNavigation()}))}}]:[]]}const n1=new i.OlP("",{factory:()=>new Ee.x}),Nf=new i.OlP("",{providedIn:"root",factory:()=>1});function Uy(n){return[Rh,{provide:xo,useExisting:Rh},{provide:Qg,useExisting:n}]}let Ff;try{Ff=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Ff=!1}let Pc,Yi=(()=>{class n{constructor(e){this._platformId=e,this.isBrowser=this._platformId?(0,w.NF)(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&&!Ff)&&typeof CSS<"u"&&!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 n.\u0275fac=function(e){return new(e||n)(i.LFG(i.Lbi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Rc=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function r1(){if(Pc)return Pc;if("object"!=typeof document||!document)return Pc=new Set(Rc),Pc;let n=document.createElement("input");return Pc=new Set(Rc.filter(a=>(n.setAttribute("type",a),n.type===a))),Pc}let Ka,zf,So,jf;function es(n){return function Gd(){if(null==Ka&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Ka=!0}))}finally{Ka=Ka||!1}return Ka}()?n:!!n.capture}function a1(){if(null==So){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return So=!1,So;if("scrollBehavior"in document.documentElement.style)So=!0;else{const n=Element.prototype.scrollTo;So=!!n&&!/\{\s*\[native code\]\s*\}/.test(n.toString())}}return So}function $d(){if("object"!=typeof document||!document)return 0;if(null==zf){const n=document.createElement("div"),a=n.style;n.dir="rtl",a.width="1px",a.overflow="auto",a.visibility="hidden",a.pointerEvents="none",a.position="absolute";const e=document.createElement("div"),t=e.style;t.width="2px",t.height="1px",n.appendChild(e),document.body.appendChild(n),zf=0,0===n.scrollLeft&&(n.scrollLeft=1,zf=0===n.scrollLeft?1:2),n.remove()}return zf}function Nh(n){if(function s1(){if(null==jf){const n=typeof document<"u"?document.head:null;jf=!(!n||!n.createShadowRoot&&!n.attachShadow)}return jf}()){const a=n.getRootNode?n.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&a instanceof ShadowRoot)return a}return null}function Zd(){let n=typeof document<"u"&&document?document.activeElement:null;for(;n&&n.shadowRoot;){const a=n.shadowRoot.activeElement;if(a===n)break;n=a}return n}function ia(n){return n.composedPath?n.composedPath()[0]:n.target}function qf(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function Bn(n,...a){return a.length?a.some(e=>n[e]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}var Qf=T(8372);function Xf(n){return(0,ye.h)((a,e)=>n<=e)}function Xd(n,a=Td.y){return n=n??x1,(0,Jn.e)((e,t)=>{let r,l=!0;e.subscribe((0,rt.x)(t,c=>{const s=a(c);(l||!n(r,s))&&(l=!1,r=s,t.next(c))}))})}function x1(n,a){return n===a}var vM=T(5032);function nt(n){return(0,Jn.e)((a,e)=>{(0,dn.Xf)(n).subscribe((0,rt.x)(e,()=>e.complete(),vM.Z)),!e.closed&&a.subscribe(e)})}function Fe(n){return null!=n&&"false"!=`${n}`}function Vi(n,a=0){return Kf(n)?Number(n):a}function Kf(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}function Kd(n){return Array.isArray(n)?n:[n]}function xn(n){return null==n?"":"string"==typeof n?n:`${n}px`}function un(n){return n instanceof i.SBq?n.nativeElement:n}let e0=(()=>{class n{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),xM=(()=>{class n{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,t)=>this._cleanupObserver(t))}observe(e){const t=un(e);return new _i.y(r=>{const c=this._observeElement(t).subscribe(r);return()=>{c.unsubscribe(),this._unobserveElement(t)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const t=new Ee.x,r=this._mutationObserverFactory.create(l=>t.next(l));r&&r.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:r,stream:t,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:t,stream:r}=this._observedElements.get(e);t&&t.disconnect(),r.complete(),this._observedElements.delete(e)}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(e0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),t0=(()=>{class n{constructor(e,t,r){this._contentObserver=e,this._elementRef=t,this._ngZone=r,this.event=new i.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=Fe(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=Vi(e),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe((0,Qf.b)(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){var e;null===(e=this._currentSubscription)||void 0===e||e.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(xM),i.Y36(i.SBq),i.Y36(i.R0b))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),n})(),eu=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[e0]}),n})();const n0=new Set;let Pl,S1=(()=>{class n{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):EM}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function SM(n){if(!n0.has(n))try{Pl||(Pl=document.createElement("style"),Pl.setAttribute("type","text/css"),document.head.appendChild(Pl)),Pl.sheet&&(Pl.sheet.insertRule(`@media ${n} {body{ }}`,0),n0.add(n))}catch(a){console.error(a)}}(e),this._matchMedia(e)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Yi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function EM(n){return{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{}}}let r0=(()=>{class n{constructor(e,t){this._mediaMatcher=e,this._zone=t,this._queries=new Map,this._destroySubject=new Ee.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return E1(Kd(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){const r=E1(Kd(e)).map(c=>this._registerQuery(c).observable);let l=(0,Ci.a)(r);return l=(0,er.z)(l.pipe((0,ct.q)(1)),l.pipe(Xf(1),(0,Qf.b)(0))),l.pipe((0,At.U)(c=>{const s={matches:!1,breakpoints:{}};return c.forEach(({matches:o,query:d})=>{s.matches=s.matches||o,s.breakpoints[d]=o}),s}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const t=this._mediaMatcher.matchMedia(e),l={observable:new _i.y(c=>{const s=o=>this._zone.run(()=>c.next(o));return t.addListener(s),()=>{t.removeListener(s)}}).pipe(Hi(t),(0,At.U)(({matches:c})=>({query:e,matches:c})),nt(this._destroySubject)),mql:t};return this._queries.set(e,l),l}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(S1),i.LFG(i.R0b))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function E1(n){return n.map(a=>a.split(",")).reduce((a,e)=>a.concat(e)).map(a=>a.trim())}function tu(n,a){return(n.getAttribute(a)||"").match(/\S+/g)||[]}const Ho="cdk-describedby-message",qh="cdk-describedby-host";let iu=0,nu=(()=>{class n{constructor(e,t){this._platform=t,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+iu++,this._document=e,this._id=(0,i.f3M)(i.AFp)+"-"+iu++}describe(e,t,r){if(!this._canBeDescribed(e,t))return;const l=a0(t,r);"string"!=typeof t?(LM(t,this._id),this._messageRegistry.set(l,{messageElement:t,referenceCount:0})):this._messageRegistry.has(l)||this._createMessageElement(t,r),this._isElementDescribedByMessage(e,l)||this._addMessageReference(e,l)}removeDescription(e,t,r){var l;if(!t||!this._isElementNode(e))return;const c=a0(t,r);if(this._isElementDescribedByMessage(e,c)&&this._removeMessageReference(e,c),"string"==typeof t){const s=this._messageRegistry.get(c);s&&0===s.referenceCount&&this._deleteMessageElement(c)}0===(null===(l=this._messagesContainer)||void 0===l?void 0:l.childNodes.length)&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){var e;const t=this._document.querySelectorAll(`[${qh}="${this._id}"]`);for(let r=0;r0!=r.indexOf(Ho));e.setAttribute("aria-describedby",t.join(" "))}_addMessageReference(e,t){const r=this._messageRegistry.get(t);(function DM(n,a,e){const t=tu(n,a);t.some(r=>r.trim()==e.trim())||(t.push(e.trim()),n.setAttribute(a,t.join(" ")))})(e,"aria-describedby",r.messageElement.id),e.setAttribute(qh,this._id),r.referenceCount++}_removeMessageReference(e,t){const r=this._messageRegistry.get(t);r.referenceCount--,function eS(n,a,e){const r=tu(n,a).filter(l=>l!=e.trim());r.length?n.setAttribute(a,r.join(" ")):n.removeAttribute(a)}(e,"aria-describedby",r.messageElement.id),e.removeAttribute(qh)}_isElementDescribedByMessage(e,t){const r=tu(e,"aria-describedby"),l=this._messageRegistry.get(t),c=l&&l.messageElement.id;return!!c&&-1!=r.indexOf(c)}_canBeDescribed(e,t){if(!this._isElementNode(e))return!1;if(t&&"object"==typeof t)return!0;const r=null==t?"":`${t}`.trim(),l=e.getAttribute("aria-label");return!(!r||l&&l.trim()===r)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0),i.LFG(Yi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function a0(n,a){return"string"==typeof n?`${a||""}/${n}`:n}function LM(n,a){n.id||(n.id=`${Ho}-${a}-${iu++}`)}class PM{constructor(a){this._items=a,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new Ee.x,this._typeaheadSubscription=li.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new Ee.x,this.change=new Ee.x,a instanceof i.n_E&&a.changes.subscribe(e=>{if(this._activeItem){const r=e.toArray().indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}})}skipPredicate(a){return this._skipPredicateFn=a,this}withWrap(a=!0){return this._wrap=a,this}withVerticalOrientation(a=!0){return this._vertical=a,this}withHorizontalOrientation(a){return this._horizontal=a,this}withAllowedModifierKeys(a){return this._allowedModifierKeys=a,this}withTypeAhead(a=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,ni.b)(e=>this._pressedLetters.push(e)),(0,Qf.b)(a),(0,ye.h)(()=>this._pressedLetters.length>0),(0,At.U)(()=>this._pressedLetters.join(""))).subscribe(e=>{const t=this._getItemsArray();for(let r=1;r!a[l]||this._allowedModifierKeys.indexOf(l)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&r){this.setNextItemActive();break}return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&r){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&r){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}return;default:return void((r||Bn(a,"shiftKey"))&&(a.key&&1===a.key.length?this._letterKeyStream.next(a.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],a.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(a){const e=this._getItemsArray(),t="number"==typeof a?a:e.indexOf(a);this._activeItem=e[t]??null,this._activeItemIndex=t}_setActiveItemByDelta(a){this._wrap?this._setActiveInWrapMode(a):this._setActiveInDefaultMode(a)}_setActiveInWrapMode(a){const e=this._getItemsArray();for(let t=1;t<=e.length;t++){const r=(this._activeItemIndex+a*t+e.length)%e.length;if(!this._skipPredicateFn(e[r]))return void this.setActiveItem(r)}}_setActiveInDefaultMode(a){this._setActiveItemByIndex(this._activeItemIndex+a,a)}_setActiveItemByIndex(a,e){const t=this._getItemsArray();if(t[a]){for(;this._skipPredicateFn(t[a]);)if(!t[a+=e])return;this.setActiveItem(a)}}_getItemsArray(){return this._items instanceof i.n_E?this._items.toArray():this._items}}class RM extends PM{setActiveItem(a){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(a),this.activeItem&&this.activeItem.setActiveStyles()}}class Yh extends PM{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(a){return this._origin=a,this}setActiveItem(a){super.setActiveItem(a),this.activeItem&&this.activeItem.focus(this._origin)}}let Wh=(()=>{class n{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function Oc(n){return!!(n.offsetWidth||n.offsetHeight||"function"==typeof n.getClientRects&&n.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const t=function OM(n){try{return n.frameElement}catch{return null}}(function FM(n){return n.ownerDocument&&n.ownerDocument.defaultView||window}(e));if(t&&(-1===k1(t)||!this.isVisible(t)))return!1;let r=e.nodeName.toLowerCase(),l=k1(e);return e.hasAttribute("contenteditable")?-1!==l:!("iframe"===r||"object"===r||this._platform.WEBKIT&&this._platform.IOS&&!function NM(n){let a=n.nodeName.toLowerCase(),e="input"===a&&n.type;return"text"===e||"password"===e||"select"===a||"textarea"===a}(e))&&("audio"===r?!!e.hasAttribute("controls")&&-1!==l:"video"===r?-1!==l&&(null!==l||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,t){return function VM(n){return!function L1(n){return function BM(n){return"input"==n.nodeName.toLowerCase()}(n)&&"hidden"==n.type}(n)&&(function IM(n){let a=n.nodeName.toLowerCase();return"input"===a||"select"===a||"button"===a||"textarea"===a}(n)||function Uh(n){return function P1(n){return"a"==n.nodeName.toLowerCase()}(n)&&n.hasAttribute("href")}(n)||n.hasAttribute("contenteditable")||R1(n))}(e)&&!this.isDisabled(e)&&(t?.ignoreVisibility||this.isVisible(e))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Yi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function R1(n){if(!n.hasAttribute("tabindex")||void 0===n.tabIndex)return!1;let a=n.getAttribute("tabindex");return!(!a||isNaN(parseInt(a,10)))}function k1(n){if(!R1(n))return null;const a=parseInt(n.getAttribute("tabindex")||"",10);return isNaN(a)?-1:a}class O1{constructor(a,e,t,r,l=!1){this._element=a,this._checker=e,this._ngZone=t,this._document=r,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,l||this.attachAnchors()}get enabled(){return this._enabled}set enabled(a){this._enabled=a,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(a,this._startAnchor),this._toggleAnchorTabIndex(a,this._endAnchor))}destroy(){const a=this._startAnchor,e=this._endAnchor;a&&(a.removeEventListener("focus",this.startAnchorListener),a.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),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(a){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(a)))})}focusFirstTabbableElementWhenReady(a){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(a)))})}focusLastTabbableElementWhenReady(a){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(a)))})}_getRegionBoundary(a){const e=this._element.querySelectorAll(`[cdk-focus-region-${a}], [cdkFocusRegion${a}], [cdk-focus-${a}]`);return"start"==a?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(a){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const t=this._getFirstTabbableElement(e);return t?.focus(a),!!t}return e.focus(a),!0}return this.focusFirstTabbableElement(a)}focusFirstTabbableElement(a){const e=this._getRegionBoundary("start");return e&&e.focus(a),!!e}focusLastTabbableElement(a){const e=this._getRegionBoundary("end");return e&&e.focus(a),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(a){if(this._checker.isFocusable(a)&&this._checker.isTabbable(a))return a;const e=a.children;for(let t=0;t=0;t--){const r=e[t].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[t]):null;if(r)return r}return null}_createAnchor(){const a=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,a),a.classList.add("cdk-visually-hidden"),a.classList.add("cdk-focus-trap-anchor"),a.setAttribute("aria-hidden","true"),a}_toggleAnchorTabIndex(a,e){a?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(a){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(a,this._startAnchor),this._toggleAnchorTabIndex(a,this._endAnchor))}_executeOnStable(a){this._ngZone.isStable?a():this._ngZone.onStable.pipe((0,ct.q)(1)).subscribe(a)}}let Gh=(()=>{class n{constructor(e,t,r){this._checker=e,this._ngZone=t,this._document=r}create(e,t=!1){return new O1(e,this._checker,this._ngZone,this._document,t)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Wh),i.LFG(i.R0b),i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function s0(n){return 0===n.buttons||0===n.offsetX&&0===n.offsetY}function zs(n){const a=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!(!a||-1!==a.identifier||null!=a.radiusX&&1!==a.radiusX||null!=a.radiusY&&1!==a.radiusY)}const N1=new i.OlP("cdk-input-modality-detector-options"),V1={ignoreKeys:[18,17,224,91,16]},rr=es({passive:!0,capture:!0});let F1=(()=>{class n{constructor(e,t,r,l){this._platform=e,this._mostRecentTarget=null,this._modality=new Ii(null),this._lastTouchMs=0,this._onKeydown=c=>{var s,o;null!==(s=this._options)&&void 0!==s&&null!==(o=s.ignoreKeys)&&void 0!==o&&o.some(d=>d===c.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=ia(c))},this._onMousedown=c=>{Date.now()-this._lastTouchMs<650||(this._modality.next(s0(c)?"keyboard":"mouse"),this._mostRecentTarget=ia(c))},this._onTouchstart=c=>{zs(c)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=ia(c))},this._options={...V1,...l},this.modalityDetected=this._modality.pipe(Xf(1)),this.modalityChanged=this.modalityDetected.pipe(Xd()),e.isBrowser&&t.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,rr),r.addEventListener("mousedown",this._onMousedown,rr),r.addEventListener("touchstart",this._onTouchstart,rr)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,rr),document.removeEventListener("mousedown",this._onMousedown,rr),document.removeEventListener("touchstart",this._onTouchstart,rr))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Yi),i.LFG(i.R0b),i.LFG(w.K0),i.LFG(N1,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const qM=new i.OlP("liveAnnouncerElement",{providedIn:"root",factory:function o0(){return null}}),js=new i.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let l0=(()=>{class n{constructor(e,t,r,l){this._ngZone=t,this._defaultOptions=l,this._document=r,this._liveElement=e||this._createLiveElement()}announce(e,...t){const r=this._defaultOptions;let l,c;return 1===t.length&&"number"==typeof t[0]?c=t[0]:[l,c]=t,this.clear(),clearTimeout(this._previousTimeout),l||(l=r&&r.politeness?r.politeness:"polite"),null==c&&r&&(c=r.duration),this._liveElement.setAttribute("aria-live",l),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(s=>this._currentResolve=s)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,"number"==typeof c&&(this._previousTimeout=setTimeout(()=>this.clear(),c)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){var e,t;clearTimeout(this._previousTimeout),null===(e=this._liveElement)||void 0===e||e.remove(),this._liveElement=null,null===(t=this._currentResolve)||void 0===t||t.call(this),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const e="cdk-live-announcer-element",t=this._document.getElementsByClassName(e),r=this._document.createElement("div");for(let l=0;l{class n{constructor(e,t,r,l,c){this._ngZone=e,this._platform=t,this._inputModalityDetector=r,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new Ee.x,this._rootNodeFocusAndBlurListener=s=>{for(let d=ia(s);d;d=d.parentElement)"focus"===s.type?this._onFocus(s,d):this._onBlur(s,d)},this._document=l,this._detectionMode=c?.detectionMode||0}monitor(e,t=!1){const r=un(e);if(!this._platform.isBrowser||1!==r.nodeType)return(0,xe.of)(null);const l=Nh(r)||this._getDocument(),c=this._elementInfo.get(r);if(c)return t&&(c.checkChildren=!0),c.subject;const s={checkChildren:t,subject:new Ee.x,rootNode:l};return this._elementInfo.set(r,s),this._registerGlobalListeners(s),s.subject}stopMonitoring(e){const t=un(e),r=this._elementInfo.get(t);r&&(r.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(r))}focusVia(e,t,r){const l=un(e);l===this._getDocument().activeElement?this._getClosestElementsInfo(l).forEach(([s,o])=>this._originChanged(s,t,o)):(this._setOrigin(t),"function"==typeof l.focus&&l.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,t)=>this.stopMonitoring(t))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!(null==e||!e.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(e,t){e.classList.toggle("cdk-focused",!!t),e.classList.toggle("cdk-touch-focused","touch"===t),e.classList.toggle("cdk-keyboard-focused","keyboard"===t),e.classList.toggle("cdk-mouse-focused","mouse"===t),e.classList.toggle("cdk-program-focused","program"===t)}_setOrigin(e,t=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&t,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,t){const r=this._elementInfo.get(t),l=ia(e);!r||!r.checkChildren&&t!==l||this._originChanged(t,this._getFocusOrigin(l),r)}_onBlur(e,t){const r=this._elementInfo.get(t);!r||r.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(r,null))}_emitOrigin(e,t){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(t))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const t=e.rootNode,r=this._rootNodeFocusListenerCount.get(t)||0;r||this._ngZone.runOutsideAngular(()=>{t.addEventListener("focus",this._rootNodeFocusAndBlurListener,d0),t.addEventListener("blur",this._rootNodeFocusAndBlurListener,d0)}),this._rootNodeFocusListenerCount.set(t,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(nt(this._stopInputModalityDetector)).subscribe(l=>{this._setOrigin(l,!0)}))}_removeGlobalListeners(e){const t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){const r=this._rootNodeFocusListenerCount.get(t);r>1?this._rootNodeFocusListenerCount.set(t,r-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,d0),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,d0),this._rootNodeFocusListenerCount.delete(t))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,t,r){this._setClasses(e,t),this._emitOrigin(r,t),this._lastFocusOrigin=t}_getClosestElementsInfo(e){const t=[];return this._elementInfo.forEach((r,l)=>{(l===e||r.checkChildren&&l.contains(e))&&t.push([l,r])}),t}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:t,mostRecentModality:r}=this._inputModalityDetector;if("mouse"!==r||!t||t===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const l=e.labels;if(l)for(let c=0;c{class n{constructor(e,t){this._platform=e,this._document=t,this._breakpointSubscription=(0,i.f3M)(r0).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const t=this._document.defaultView||window,r=t&&t.getComputedStyle?t.getComputedStyle(e):null,l=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),l){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(ou,au,su),this._hasCheckedHighContrastMode=!0;const t=this.getHighContrastMode();1===t?e.add(ou,au):2===t&&e.add(ou,su)}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Yi),i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Rl=(()=>{class n{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG($h))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[eu]}),n})();const iS=new i.OlP("cdk-dir-doc",{providedIn:"root",factory:function WM(){return(0,i.f3M)(w.K0)}}),UM=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Sn=(()=>{class n{constructor(e){if(this.value="ltr",this.change=new i.vpe,e){const r=e.documentElement?e.documentElement.dir:null;this.value=function GM(n){var a;const e=n?.toLowerCase()||"";return"auto"===e&&typeof navigator<"u"&&null!==(a=navigator)&&void 0!==a&&a.language?UM.test(navigator.language)?"rtl":"ltr":"rtl"===e?"rtl":"ltr"}((e.body?e.body.dir:null)||r||"ltr")}}ngOnDestroy(){this.change.complete()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(iS,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Ic=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();function j1(n,a){if(1&n&&i._UZ(0,"mat-pseudo-checkbox",4),2&n){const e=i.oxw();i.Q6J("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}function JM(n,a){if(1&n&&(i.TgZ(0,"span",5),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.hij("(",e.group.label,")")}}const u0=["*"];let nS=(()=>{class n{}return n.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",n.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",n.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",n.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",n})(),rS=(()=>{class n{}return n.COMPLEX="375ms",n.ENTERING="225ms",n.EXITING="195ms",n})();const sS=new i.OlP("mat-sanity-checks",{providedIn:"root",factory:function aS(){return!0}});let _t=(()=>{class n{constructor(e,t,r){this._sanityChecks=t,this._document=r,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!qf()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return n.\u0275fac=function(e){return new(e||n)(i.LFG($h),i.LFG(sS,8),i.LFG(w.K0))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[Ic,Ic]}),n})();function is(n){return class extends n{constructor(...a){super(...a),this._disabled=!1}get disabled(){return this._disabled}set disabled(a){this._disabled=Fe(a)}}}function hr(n,a){return class extends n{constructor(...e){super(...e),this.defaultColor=a,this.color=a}get color(){return this._color}set color(e){const t=e||this.defaultColor;t!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),t&&this._elementRef.nativeElement.classList.add(`mat-${t}`),this._color=t)}}}function xr(n){return class extends n{constructor(...a){super(...a),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(a){this._disableRipple=Fe(a)}}}function kl(n,a=0){return class extends n{constructor(...e){super(...e),this._tabIndex=a,this.defaultTabIndex=a}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(e){this._tabIndex=null!=e?Vi(e):this.defaultTabIndex}}}function Zh(n){return class extends n{constructor(...a){super(...a),this.errorState=!1}updateErrorState(){const a=this.errorState,l=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);l!==a&&(this.errorState=l,this.stateChanges.next())}}}function Jh(n){return class extends n{constructor(...a){super(...a),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new _i.y(e=>{this._isInitialized?this._notifySubscriber(e):this._pendingSubscribers.push(e)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(a){a.next(),a.complete()}}}const q1=new i.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function h0(){return(0,i.f3M)(i.soG)}});class Ta{constructor(){this._localeChanges=new Ee.x,this.localeChanges=this._localeChanges}getValidDateOrNull(a){return this.isDateInstance(a)&&this.isValid(a)?a:null}deserialize(a){return null==a||this.isDateInstance(a)&&this.isValid(a)?a:this.invalid()}setLocale(a){this.locale=a,this._localeChanges.next()}compareDate(a,e){return this.getYear(a)-this.getYear(e)||this.getMonth(a)-this.getMonth(e)||this.getDate(a)-this.getDate(e)}sameDate(a,e){if(a&&e){let t=this.isValid(a),r=this.isValid(e);return t&&r?!this.compareDate(a,e):t==r}return a==e}clampDate(a,e,t){return e&&this.compareDate(a,e)<0?e:t&&this.compareDate(a,t)>0?t:a}}const xa=new i.OlP("mat-date-formats"),Y1=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function p0(n,a){const e=Array(n);for(let t=0;t{class n extends Ta{constructor(e,t){super(),this.useUtcForDisplay=!1,super.setLocale(e)}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){const t=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return p0(12,r=>this._format(t,new Date(2017,r,1)))}getDateNames(){const e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return p0(31,t=>this._format(e,new Date(2017,0,t+1)))}getDayOfWeekNames(e){const t=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return p0(7,r=>this._format(t,new Date(2017,0,r+1)))}getYearName(e){const t=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(t,e)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,t,r){let l=this._createDateWithOverflow(e,t,r);return l.getMonth(),l}today(){return new Date}parse(e,t){return"number"==typeof e?new Date(e):e?new Date(Date.parse(e)):null}format(e,t){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");const r=new Intl.DateTimeFormat(this.locale,{...t,timeZone:"utc"});return this._format(r,e)}addCalendarYears(e,t){return this.addCalendarMonths(e,12*t)}addCalendarMonths(e,t){let r=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+t,this.getDate(e));return this.getMonth(r)!=((this.getMonth(e)+t)%12+12)%12&&(r=this._createDateWithOverflow(this.getYear(r),this.getMonth(r),0)),r}addCalendarDays(e,t){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+t)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if("string"==typeof e){if(!e)return null;if(Y1.test(e)){let t=new Date(e);if(this.isValid(t))return t}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(e,t,r){const l=new Date;return l.setFullYear(e,t,r),l.setHours(0,0,0,0),l}_2digit(e){return("00"+e).slice(-2)}_format(e,t){const r=new Date;return r.setUTCFullYear(t.getFullYear(),t.getMonth(),t.getDate()),r.setUTCHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e.format(r)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(q1,8),i.LFG(Yi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const XM={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 W1=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[{provide:Ta,useClass:Qh}]}),n})(),U1=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[{provide:xa,useValue:XM}],imports:[W1]}),n})(),qs=(()=>{class n{isErrorState(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Ol=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),n})();function ns(n,a,e){n.nativeElement.classList.toggle(a,e)}let Il=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[_t,_t]}),n})();class lu{constructor(a,e,t,r=!1){this._renderer=a,this.element=e,this.config=t,this._animationForciblyDisabledThroughCss=r,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const G1={enterDuration:225,exitDuration:150},Kh=es({passive:!0}),ep=["mousedown","touchstart"],tp=["mouseup","mouseleave","touchend","touchcancel"];class f0{constructor(a,e,t,r){this._target=a,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=un(t))}fadeInRipple(a,e,t={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),l={...G1,...t.animation};t.centered&&(a=r.left+r.width/2,e=r.top+r.height/2);const c=t.radius||function m0(n,a,e){const t=Math.max(Math.abs(n-e.left),Math.abs(n-e.right)),r=Math.max(Math.abs(a-e.top),Math.abs(a-e.bottom));return Math.sqrt(t*t+r*r)}(a,e,r),s=a-r.left,o=e-r.top,d=l.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=s-c+"px",u.style.top=o-c+"px",u.style.height=2*c+"px",u.style.width=2*c+"px",null!=t.color&&(u.style.backgroundColor=t.color),u.style.transitionDuration=`${d}ms`,this._containerElement.appendChild(u);const h=window.getComputedStyle(u),b=h.transitionDuration,B="none"===h.transitionProperty||"0s"===b||"0s, 0s"===b,X=new lu(this,u,t,B);u.style.transform="scale3d(1, 1, 1)",X.state=0,t.persistent||(this._mostRecentTransientRipple=X);let he=null;return!B&&(d||l.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const Pe=()=>this._finishRippleTransition(X),bt=()=>this._destroyRipple(X);u.addEventListener("transitionend",Pe),u.addEventListener("transitioncancel",bt),he={onTransitionEnd:Pe,onTransitionCancel:bt}}),this._activeRipples.set(X,he),(B||!d)&&this._finishRippleTransition(X),X}fadeOutRipple(a){if(2===a.state||3===a.state)return;const e=a.element,t={...G1,...a.config.animation};e.style.transitionDuration=`${t.exitDuration}ms`,e.style.opacity="0",a.state=2,(a._animationForciblyDisabledThroughCss||!t.exitDuration)&&this._finishRippleTransition(a)}fadeOutAll(){this._getActiveRipples().forEach(a=>a.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(a=>{a.config.persistent||a.fadeOut()})}setupTriggerEvents(a){const e=un(a);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(ep))}handleEvent(a){"mousedown"===a.type?this._onMousedown(a):"touchstart"===a.type?this._onTouchStart(a):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(tp),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(a){0===a.state?this._startFadeOutTransition(a):2===a.state&&this._destroyRipple(a)}_startFadeOutTransition(a){const e=a===this._mostRecentTransientRipple,{persistent:t}=a.config;a.state=1,!t&&(!e||!this._isPointerDown)&&a.fadeOut()}_destroyRipple(a){var e;const t=null!==(e=this._activeRipples.get(a))&&void 0!==e?e:null;this._activeRipples.delete(a),this._activeRipples.size||(this._containerRect=null),a===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),a.state=3,null!==t&&(a.element.removeEventListener("transitionend",t.onTransitionEnd),a.element.removeEventListener("transitioncancel",t.onTransitionCancel)),a.element.remove()}_onMousedown(a){const e=s0(a),t=this._lastTouchStartEvent&&Date.now(){!a.config.persistent&&(1===a.state||a.config.terminateOnPointerUp&&0===a.state)&&a.fadeOut()}))}_registerEvents(a){this._ngZone.runOutsideAngular(()=>{a.forEach(e=>{this._triggerElement.addEventListener(e,this,Kh)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(ep.forEach(a=>{this._triggerElement.removeEventListener(a,this,Kh)}),this._pointerUpEventsRegistered&&tp.forEach(a=>{this._triggerElement.removeEventListener(a,this,Kh)}))}}const Z1=new i.OlP("mat-ripple-global-options");let na=(()=>{class n{constructor(e,t,r,l,c){this._elementRef=e,this._animationMode=c,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=l||{},this._rippleRenderer=new f0(this,t,e,r)}get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...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(e,t=0,r){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,{...this.rippleConfig,...r}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...e})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(Yi),i.Y36(Z1,8),i.Y36(i.QbO,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("mat-ripple-unbounded",t.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),n})(),jr=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[_t,_t]}),n})(),g0=(()=>{class n{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.QbO,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,t){2&e&&i.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===t.state)("mat-pseudo-checkbox-checked","checked"===t.state)("mat-pseudo-checkbox-disabled",t.disabled)("_mat-animation-noopable","NoopAnimations"===t._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(e,t){},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:rgba(0,0,0,0)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::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}'],encapsulation:2,changeDetection:0}),n})(),_0=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[_t]}),n})();const ip=new i.OlP("MAT_OPTION_PARENT_COMPONENT"),np=new i.OlP("MatOptgroup");let dS=0;class J1{constructor(a,e=!1){this.source=a,this.isUserInput=e}}let b0=(()=>{class n{constructor(e,t,r,l){this._element=e,this._changeDetectorRef=t,this._parent=r,this.group=l,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+dS++,this.onSelectionChange=new i.vpe,this._stateChanges=new Ee.x}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(e){this._disabled=Fe(e)}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(e,t){const r=this._getHostElement();"function"==typeof r.focus&&r.focus(t)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!Bn(e)&&(this._selectViaInteraction(),e.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 e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue=e,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new J1(this,e))}}return n.\u0275fac=function(e){i.$Z()},n.\u0275dir=i.lG2({type:n,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),n})(),Lo=(()=>{class n extends b0{constructor(e,t,r,l){super(e,t,r,l)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(ip,8),i.Y36(np,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,t){1&e&&i.NdJ("click",function(){return t._selectViaInteraction()})("keydown",function(l){return t._handleKeydown(l)}),2&e&&(i.Ikx("id",t.id),i.uIk("tabindex",t._getTabIndex())("aria-selected",t._getAriaSelected())("aria-disabled",t.disabled.toString()),i.ekj("mat-selected",t.selected)("mat-option-multiple",t.multiple)("mat-active",t.active)("mat-option-disabled",t.disabled))},exportAs:["matOption"],features:[i.qOj],ngContentSelectors:u0,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(e,t){1&e&&(i.F$t(),i.YNc(0,j1,1,2,"mat-pseudo-checkbox",0),i.TgZ(1,"span",1),i.Hsn(2),i.qZA(),i.YNc(3,JM,2,1,"span",2),i._UZ(4,"div",3)),2&e&&(i.Q6J("ngIf",t.multiple),i.xp6(3),i.Q6J("ngIf",t.group&&t.group._inert),i.xp6(1),i.Q6J("matRippleTrigger",t._getHostElement())("matRippleDisabled",t.disabled||t.disableRipple))},dependencies:[na,w.O5,g0],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:rgba(0,0,0,0)}.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;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}.mat-option.mat-active::before{content:""}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{right:auto;left:16px}.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}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}'],encapsulation:2,changeDetection:0}),n})();function A0(n,a,e){if(e.length){let t=a.toArray(),r=e.toArray(),l=0;for(let c=0;ce+t?Math.max(0,n-t+a):e}let cu=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[jr,w.ez,_t,_0]}),n})();const X1=["mat-button",""],ew=["*"],nw=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],K1=hr(is(xr(class{constructor(n){this._elementRef=n}})));let Dt=(()=>{class n extends K1{constructor(e,t,r){super(e),this._focusMonitor=t,this._animationMode=r,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const l of nw)this._hasHostAttributes(l)&&this._getHostElement().classList.add(l);e.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(e,t){e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...e){return e.some(t=>this._getHostElement().hasAttribute(t))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(ur),i.Y36(i.QbO,8))},n.\u0275cmp=i.Xpm({type:n,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(e,t){if(1&e&&i.Gf(na,5),2&e){let r;i.iGM(r=i.CRH())&&(t.ripple=r.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,t){2&e&&(i.uIk("disabled",t.disabled||null),i.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-button-disabled",t.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[i.qOj],attrs:X1,ngContentSelectors:ew,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(e,t){1&e&&(i.F$t(),i.TgZ(0,"span",0),i.Hsn(1),i.qZA(),i._UZ(2,"span",1)(3,"span",2)),2&e&&(i.xp6(2),i.ekj("mat-button-ripple-round",t.isRoundButton||t.isIconButton),i.Q6J("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",t.isIconButton)("matRippleTrigger",t._getHostElement()))},dependencies:[na],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.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;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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-fab._mat-animation-noopable{transition:none !important;animation:none !important}.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;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.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:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.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}"],encapsulation:2,changeDetection:0}),n})(),Nn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[jr,_t,_t]}),n})();var y0=T(1144);const rw=["addListener","removeListener"],aw=["addEventListener","removeEventListener"],hS=["on","off"];function Sa(n,a,e,t){if((0,bi.m)(e)&&(t=e,e=void 0),t)return Sa(n,a,e).pipe((0,Un.Z)(t));const[r,l]=function M0(n){return(0,bi.m)(n.addEventListener)&&(0,bi.m)(n.removeEventListener)}(n)?aw.map(c=>s=>n[c](a,s,e)):function sw(n){return(0,bi.m)(n.addListener)&&(0,bi.m)(n.removeListener)}(n)?rw.map(e_(n,a)):function ow(n){return(0,bi.m)(n.on)&&(0,bi.m)(n.off)}(n)?hS.map(e_(n,a)):[];if(!r&&(0,y0.z)(n))return(0,kn.z)(c=>Sa(c,a,e))((0,dn.Xf)(n));if(!r)throw new TypeError("Invalid event target");return new _i.y(c=>{const s=(...o)=>c.next(1l(s)})}function e_(n,a){return e=>t=>n[e](a,t)}var t_=T(4408);const du={schedule(n){let a=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:t}=du;t&&(a=t.requestAnimationFrame,e=t.cancelAnimationFrame);const r=a(l=>{e=void 0,n(l)});return new li.w0(()=>e?.(r))},requestAnimationFrame(...n){const{delegate:a}=du;return(a?.requestAnimationFrame||requestAnimationFrame)(...n)},cancelAnimationFrame(...n){const{delegate:a}=du;return(a?.cancelAnimationFrame||cancelAnimationFrame)(...n)},delegate:void 0};var ap=T(7565);const w0=new class lw extends ap.v{flush(a){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:t}=this;let r;a=a||t.shift();do{if(r=a.execute(a.state,a.delay))break}while((a=t[0])&&a.id===e&&t.shift());if(this._active=!1,r){for(;(a=t[0])&&a.id===e&&t.shift();)a.unsubscribe();throw r}}}(class rp extends t_.o{constructor(a,e){super(a,e),this.scheduler=a,this.work=e}requestAsyncId(a,e,t=0){return null!==t&&t>0?super.requestAsyncId(a,e,t):(a.actions.push(this),a._scheduled||(a._scheduled=du.requestAnimationFrame(()=>a.flush(void 0))))}recycleAsyncId(a,e,t=0){if(null!=t&&t>0||null==t&&this.delay>0)return super.recycleAsyncId(a,e,t);a.actions.some(r=>r.id===e)||(du.cancelAnimationFrame(e),a._scheduled=void 0)}});let r_,n_=1;const C0={};function sp(n){return n in C0&&(delete C0[n],!0)}const pS={setImmediate(n){const a=n_++;return C0[a]=!0,r_||(r_=Promise.resolve()),r_.then(()=>sp(a)&&n()),a},clearImmediate(n){sp(n)}},{setImmediate:a_,clearImmediate:s_}=pS,uu={setImmediate(...n){const{delegate:a}=uu;return(a?.setImmediate||a_)(...n)},clearImmediate(n){const{delegate:a}=uu;return(a?.clearImmediate||s_)(n)},delegate:void 0},Ea=new class v0 extends ap.v{flush(a){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:t}=this;let r;a=a||t.shift();do{if(r=a.execute(a.state,a.delay))break}while((a=t[0])&&a.id===e&&t.shift());if(this._active=!1,r){for(;(a=t[0])&&a.id===e&&t.shift();)a.unsubscribe();throw r}}}(class o_ extends t_.o{constructor(a,e){super(a,e),this.scheduler=a,this.work=e}requestAsyncId(a,e,t=0){return null!==t&&t>0?super.requestAsyncId(a,e,t):(a.actions.push(this),a._scheduled||(a._scheduled=uu.setImmediate(a.flush.bind(a,void 0))))}recycleAsyncId(a,e,t=0){if(null!=t&&t>0||null==t&&this.delay>0)return super.recycleAsyncId(a,e,t);a.actions.some(r=>r.id===e)||(uu.clearImmediate(e),a._scheduled=void 0)}});var hu=T(4986),x0=T(2805);function Bc(n,a=hu.z){return function pu(n){return(0,Jn.e)((a,e)=>{let t=!1,r=null,l=null,c=!1;const s=()=>{if(l?.unsubscribe(),l=null,t){t=!1;const d=r;r=null,e.next(d)}c&&e.complete()},o=()=>{l=null,c&&e.complete()};a.subscribe((0,rt.x)(e,d=>{t=!0,r=d,l||(0,dn.Xf)(n(d)).subscribe(l=(0,rt.x)(e,s,o))},()=>{c=!0,(!t||!l||l.closed)&&e.complete()}))})}(()=>(0,x0.H)(n,a))}class c_{}function fu(n){return n&&"function"==typeof n.connect}class mu extends c_{constructor(a){super(),this._data=a}connect(){return Wt(this._data)?this._data:(0,xe.of)(this._data)}disconnect(){}}class d_{applyChanges(a,e,t,r,l){a.forEachOperation((c,s,o)=>{let d,u;if(null==c.previousIndex){const f=t(c,s,o);d=e.createEmbeddedView(f.templateRef,f.context,f.index),u=1}else null==o?(e.remove(s),u=3):(d=e.get(s),e.move(d,o),u=2);var h;l&&l({context:null===(h=d)||void 0===h?void 0:h.context,operation:u,record:c})})}detach(){}}class u_{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(a,e,t,r,l){a.forEachOperation((c,s,o)=>{let d,u;var h;null==c.previousIndex?(d=this._insertView(()=>t(c,s,o),o,e,r(c)),u=d?1:0):null==o?(this._detachAndCacheView(s,e),u=3):(d=this._moveView(s,o,e,r(c)),u=2),l&&l({context:null===(h=d)||void 0===h?void 0:h.context,operation:u,record:c})})}detach(){for(const a of this._viewCache)a.destroy();this._viewCache=[]}_insertView(a,e,t,r){const l=this._insertViewFromCache(e,t);if(l)return void(l.context.$implicit=r);const c=a();return t.createEmbeddedView(c.templateRef,c.context,c.index)}_detachAndCacheView(a,e){const t=e.detach(a);this._maybeCacheView(t,e)}_moveView(a,e,t,r){const l=t.get(a);return t.move(l,e),l.context.$implicit=r,l}_maybeCacheView(a,e){if(this._viewCache.lengththis._markSelected(l)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...a){this._verifyValueAssignment(a),a.forEach(t=>this._markSelected(t));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...a){this._verifyValueAssignment(a),a.forEach(t=>this._unmarkSelected(t));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...a){this._verifyValueAssignment(a);const e=this.selected,t=new Set(a);a.forEach(l=>this._markSelected(l)),e.filter(l=>!t.has(l)).forEach(l=>this._unmarkSelected(l));const r=this._hasQueuedChanges();return this._emitChangeEvent(),r}toggle(a){return this.isSelected(a)?this.deselect(a):this.select(a)}clear(a=!0){this._unmarkAll();const e=this._hasQueuedChanges();return a&&this._emitChangeEvent(),e}isSelected(a){if(this.compareWith){for(const e of this._selection)if(this.compareWith(e,a))return!0;return!1}return this._selection.has(a)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(a){this._multiple&&this.selected&&this._selected.sort(a)}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(a){this.isSelected(a)||(this._multiple||this._unmarkAll(),this.isSelected(a)||this._selection.add(a),this._emitChanges&&this._selectedToEmit.push(a))}_unmarkSelected(a){this.isSelected(a)&&(this._selection.delete(a),this._emitChanges&&this._deselectedToEmit.push(a))}_unmarkAll(){this.isEmpty()||this._selection.forEach(a=>this._unmarkSelected(a))}_verifyValueAssignment(a){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}}let S0=(()=>{class n{constructor(){this._listeners=[]}notify(e,t){for(let r of this._listeners)r(e,t)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(t=>e!==t)}}ngOnDestroy(){this._listeners=[]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Bl=new i.OlP("_ViewRepeater"),cw=["contentWrapper"],dw=["*"],uw=new i.OlP("VIRTUAL_SCROLL_STRATEGY");class h_{constructor(a,e,t){this._scrolledIndexChange=new Ee.x,this.scrolledIndexChange=this._scrolledIndexChange.pipe(Xd()),this._viewport=null,this._itemSize=a,this._minBufferPx=e,this._maxBufferPx=t}attach(a){this._viewport=a,this._updateTotalContentSize(),this._updateRenderedRange()}detach(){this._scrolledIndexChange.complete(),this._viewport=null}updateItemAndBufferSize(a,e,t){this._itemSize=a,this._minBufferPx=e,this._maxBufferPx=t,this._updateTotalContentSize(),this._updateRenderedRange()}onContentScrolled(){this._updateRenderedRange()}onDataLengthChanged(){this._updateTotalContentSize(),this._updateRenderedRange()}onContentRendered(){}onRenderedOffsetChanged(){}scrollToIndex(a,e){this._viewport&&this._viewport.scrollToOffset(a*this._itemSize,e)}_updateTotalContentSize(){!this._viewport||this._viewport.setTotalContentSize(this._viewport.getDataLength()*this._itemSize)}_updateRenderedRange(){if(!this._viewport)return;const a=this._viewport.getRenderedRange(),e={start:a.start,end:a.end},t=this._viewport.getViewportSize(),r=this._viewport.getDataLength();let l=this._viewport.measureScrollOffset(),c=this._itemSize>0?l/this._itemSize:0;if(e.end>r){const o=Math.ceil(t/this._itemSize),d=Math.max(0,Math.min(c,r-o));c!=d&&(c=d,l=d*this._itemSize,e.start=Math.floor(c)),e.end=Math.max(0,Math.min(r,e.start+o))}const s=l-e.start*this._itemSize;if(s0&&(e.end=Math.min(r,e.end+d),e.start=Math.max(0,Math.floor(c-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(e),this._viewport.setRenderedContentOffset(this._itemSize*e.start),this._scrolledIndexChange.next(Math.floor(c))}}function E0(n){return n._scrollStrategy}let hw=(()=>{class n{constructor(){this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new h_(this.itemSize,this.minBufferPx,this.maxBufferPx)}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=Vi(e)}get minBufferPx(){return this._minBufferPx}set minBufferPx(e){this._minBufferPx=Vi(e)}get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(e){this._maxBufferPx=Vi(e)}ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[i._Bn([{provide:uw,useFactory:E0,deps:[(0,i.Gpc)(()=>n)]}]),i.TTD]}),n})(),Po=(()=>{class n{constructor(e,t,r){this._ngZone=e,this._platform=t,this._scrolled=new Ee.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new _i.y(t=>{this._globalSubscription||this._addGlobalListener();const r=e>0?this._scrolled.pipe(Bc(e)).subscribe(t):this._scrolled.subscribe(t);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,xe.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,t)=>this.deregister(t)),this._scrolled.complete()}ancestorScrolled(e,t){const r=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe((0,ye.h)(l=>!l||r.indexOf(l)>-1))}getAncestorScrollContainers(e){const t=[];return this.scrollContainers.forEach((r,l)=>{this._scrollableContainsElement(l,e)&&t.push(l)}),t}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,t){let r=un(t),l=e.getElementRef().nativeElement;do{if(r==l)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Sa(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.R0b),i.LFG(Yi),i.LFG(w.K0,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Nl=(()=>{class n{constructor(e,t,r,l){this.elementRef=e,this.scrollDispatcher=t,this.ngZone=r,this.dir=l,this._destroyed=new Ee.x,this._elementScrolled=new _i.y(c=>this.ngZone.runOutsideAngular(()=>Sa(this.elementRef.nativeElement,"scroll").pipe(nt(this._destroyed)).subscribe(c)))}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(e){const t=this.elementRef.nativeElement,r=this.dir&&"rtl"==this.dir.value;null==e.left&&(e.left=r?e.end:e.start),null==e.right&&(e.right=r?e.start:e.end),null!=e.bottom&&(e.top=t.scrollHeight-t.clientHeight-e.bottom),r&&0!=$d()?(null!=e.left&&(e.right=t.scrollWidth-t.clientWidth-e.left),2==$d()?e.left=e.right:1==$d()&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.left=t.scrollWidth-t.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){const t=this.elementRef.nativeElement;a1()?t.scrollTo(e):(null!=e.top&&(t.scrollTop=e.top),null!=e.left&&(t.scrollLeft=e.left))}measureScrollOffset(e){const t="left",r="right",l=this.elementRef.nativeElement;if("top"==e)return l.scrollTop;if("bottom"==e)return l.scrollHeight-l.clientHeight-l.scrollTop;const c=this.dir&&"rtl"==this.dir.value;return"start"==e?e=c?r:t:"end"==e&&(e=c?t:r),c&&2==$d()?e==t?l.scrollWidth-l.clientWidth-l.scrollLeft:l.scrollLeft:c&&1==$d()?e==t?l.scrollLeft+l.scrollWidth-l.clientWidth:-l.scrollLeft:e==t?l.scrollLeft:l.scrollWidth-l.clientWidth-l.scrollLeft}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Po),i.Y36(i.R0b),i.Y36(Sn,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),n})(),Ys=(()=>{class n{constructor(e,t,r){this._platform=e,this._change=new Ee.x,this._changeListener=l=>{this._change.next(l)},this._document=r,t.runOutsideAngular(()=>{if(e.isBrowser){const l=this._getWindow();l.addEventListener("resize",this._changeListener),l.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:t,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+t,height:r,width:t}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,t=this._getWindow(),r=e.documentElement,l=r.getBoundingClientRect();return{top:-l.top||e.body.scrollTop||t.scrollY||r.scrollTop||0,left:-l.left||e.body.scrollLeft||t.scrollX||r.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(Bc(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Yi),i.LFG(i.R0b),i.LFG(w.K0,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const fw=new i.OlP("VIRTUAL_SCROLLABLE");let p_=(()=>{class n extends Nl{constructor(e,t,r,l){super(e,t,r,l)}measureViewportSize(e){const t=this.elementRef.nativeElement;return"horizontal"===e?t.clientWidth:t.clientHeight}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Po),i.Y36(i.R0b),i.Y36(Sn,8))},n.\u0275dir=i.lG2({type:n,features:[i.qOj]}),n})();const Vl=typeof requestAnimationFrame<"u"?w0:Ea;let mw=(()=>{class n extends p_{constructor(e,t,r,l,c,s,o,d){super(e,s,r,c),this.elementRef=e,this._changeDetectorRef=t,this._scrollStrategy=l,this.scrollable=d,this._detachedSubject=new Ee.x,this._renderedRangeSubject=new Ee.x,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new _i.y(u=>this._scrollStrategy.scrolledIndexChange.subscribe(h=>Promise.resolve().then(()=>this.ngZone.run(()=>u.next(h))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=li.w0.EMPTY,this._viewportChanges=o.change().subscribe(()=>{this.checkViewportSize()}),this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this)}get orientation(){return this._orientation}set orientation(e){this._orientation!==e&&(this._orientation=e,this._calculateSpacerSize())}get appendOnly(){return this._appendOnly}set appendOnly(e){this._appendOnly=Fe(e)}ngOnInit(){this.scrollable===this&&super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.scrollable.elementScrolled().pipe(Hi(null),Bc(0,Vl)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()}))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(e){this.ngZone.runOutsideAngular(()=>{this._forOf=e,this._forOf.dataStream.pipe(nt(this._detachedSubject)).subscribe(t=>{const r=t.length;r!==this._dataLength&&(this._dataLength=r,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}measureBoundingClientRectWithScrollOffset(e){return this.getElementRef().nativeElement.getBoundingClientRect()[e]}setTotalContentSize(e){this._totalContentSize!==e&&(this._totalContentSize=e,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(e){(function op(n,a){return n.start==a.start&&n.end==a.end})(this._renderedRange,e)||(this.appendOnly&&(e={start:0,end:Math.max(this._renderedRange.end,e.end)}),this._renderedRangeSubject.next(this._renderedRange=e),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(e,t="to-start"){e=this.appendOnly&&"to-start"===t?0:e;const l="horizontal"==this.orientation,c=l?"X":"Y";let o=`translate${c}(${Number((l&&this.dir&&"rtl"==this.dir.value?-1:1)*e)}px)`;this._renderedContentOffset=e,"to-end"===t&&(o+=` translate${c}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=o&&(this._renderedContentTransform=o,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(e,t="auto"){const r={behavior:t};"horizontal"===this.orientation?r.start=e:r.top=e,this.scrollable.scrollTo(r)}scrollToIndex(e,t="auto"){this._scrollStrategy.scrollToIndex(e,t)}measureScrollOffset(e){let t;return t=this.scrollable==this?r=>super.measureScrollOffset(r):r=>this.scrollable.measureScrollOffset(r),Math.max(0,t(e??("horizontal"===this.orientation?"start":"top"))-this.measureViewportOffset())}measureViewportOffset(e){var t;let r;const l="left",c="right",s="rtl"==(null===(t=this.dir)||void 0===t?void 0:t.value);r="start"==e?s?c:l:"end"==e?s?l:c:e||("horizontal"===this.orientation?"left":"top");const o=this.scrollable.measureBoundingClientRectWithScrollOffset(r);return this.elementRef.nativeElement.getBoundingClientRect()[r]-o}measureRenderedContentSize(){const e=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?e.offsetWidth:e.offsetHeight}measureRangeSize(e){return this._forOf?this._forOf.measureRangeSize(e,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}_markChangeDetectionNeeded(e){e&&this._runAfterChangeDetection.push(e),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(()=>this._changeDetectorRef.markForCheck());const e=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const t of e)t()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(i.R0b),i.Y36(uw,8),i.Y36(Sn,8),i.Y36(Po),i.Y36(Ys),i.Y36(fw,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(e,t){if(1&e&&i.Gf(cw,7),2&e){let r;i.iGM(r=i.CRH())&&(t._contentWrapper=r.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(e,t){2&e&&i.ekj("cdk-virtual-scroll-orientation-horizontal","horizontal"===t.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==t.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[i._Bn([{provide:Nl,useFactory:(a,e)=>a||e,deps:[p_,n]}]),i.qOj],ngContentSelectors:dw,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0,1),i.Hsn(2),i.qZA(),i._UZ(3,"div",2)),2&e&&(i.xp6(3),i.Udp("width",t._totalContentWidth)("height",t._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}"],encapsulation:2,changeDetection:0}),n})();function Nc(n,a,e){if(!e.getBoundingClientRect)return 0;const r=e.getBoundingClientRect();return"horizontal"===n?"start"===a?r.left:r.right:"start"===a?r.top:r.bottom}let gw=(()=>{class n{constructor(e,t,r,l,c,s){this._viewContainerRef=e,this._template=t,this._differs=r,this._viewRepeater=l,this._viewport=c,this.viewChange=new Ee.x,this._dataSourceChanges=new Ee.x,this.dataStream=this._dataSourceChanges.pipe(Hi(null),function l_(){return(0,Jn.e)((n,a)=>{let e,t=!1;n.subscribe((0,rt.x)(a,r=>{const l=e;e=r,t&&a.next([l,r]),t=!0}))})}(),(0,mi.w)(([o,d])=>this._changeDataSource(o,d)),fi(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new Ee.x,this.dataStream.subscribe(o=>{this._data=o,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe(nt(this._destroyed)).subscribe(o=>{this._renderedRange=o,this.viewChange.observers.length&&s.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(e){this._cdkVirtualForOf=e,fu(e)?this._dataSourceChanges.next(e):this._dataSourceChanges.next(new mu(Wt(e)?e:Array.from(e||[])))}get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(e){this._needsUpdate=!0,this._cdkVirtualForTrackBy=e?(t,r)=>e(t+(this._renderedRange?this._renderedRange.start:0),r):void 0}set cdkVirtualForTemplate(e){e&&(this._needsUpdate=!0,this._template=e)}get cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set cdkVirtualForTemplateCacheSize(e){this._viewRepeater.viewCacheSize=Vi(e)}measureRangeSize(e,t){if(e.start>=e.end)return 0;const r=e.start-this._renderedRange.start,l=e.end-e.start;let c,s;for(let o=0;o-1;o--){const d=this._viewContainerRef.get(o+r);if(d&&d.rootNodes.length){s=d.rootNodes[d.rootNodes.length-1];break}}return c&&s?Nc(t,"end",s)-Nc(t,"start",c):0}ngDoCheck(){if(this._differ&&this._needsUpdate){const e=this._differ.diff(this._renderedItems);e?this._applyChanges(e):this._updateContext(),this._needsUpdate=!1}}ngOnDestroy(){this._viewport.detach(),this._dataSourceChanges.next(void 0),this._dataSourceChanges.complete(),this.viewChange.complete(),this._destroyed.next(),this._destroyed.complete(),this._viewRepeater.detach()}_onRenderedDataChange(){!this._renderedRange||(this._renderedItems=this._data.slice(this._renderedRange.start,this._renderedRange.end),this._differ||(this._differ=this._differs.find(this._renderedItems).create((e,t)=>this.cdkVirtualForTrackBy?this.cdkVirtualForTrackBy(e,t):t)),this._needsUpdate=!0)}_changeDataSource(e,t){return e&&e.disconnect(this),this._needsUpdate=!0,t?t.connect(this):(0,xe.of)()}_updateContext(){const e=this._data.length;let t=this._viewContainerRef.length;for(;t--;){const r=this._viewContainerRef.get(t);r.context.index=this._renderedRange.start+t,r.context.count=e,this._updateComputedContextProperties(r.context),r.detectChanges()}}_applyChanges(e){this._viewRepeater.applyChanges(e,this._viewContainerRef,(l,c,s)=>this._getEmbeddedViewArgs(l,s),l=>l.item),e.forEachIdentityChange(l=>{this._viewContainerRef.get(l.currentIndex).context.$implicit=l.item});const t=this._data.length;let r=this._viewContainerRef.length;for(;r--;){const l=this._viewContainerRef.get(r);l.context.index=this._renderedRange.start+r,l.context.count=t,this._updateComputedContextProperties(l.context)}}_updateComputedContextProperties(e){e.first=0===e.index,e.last=e.index===e.count-1,e.even=e.index%2==0,e.odd=!e.even}_getEmbeddedViewArgs(e,t){return{templateRef:this._template,context:{$implicit:e.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:t}}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.s_b),i.Y36(i.Rgc),i.Y36(i.ZZ4),i.Y36(Bl),i.Y36(mw,4),i.Y36(i.R0b))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},features:[i._Bn([{provide:Bl,useClass:u_}])]}),n})(),rs=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),pr=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[Ic,rs,Ic,rs]}),n})();class Ro{attach(a){return this._attachedHost=a,a.attach(this)}detach(){let a=this._attachedHost;null!=a&&(this._attachedHost=null,a.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(a){this._attachedHost=a}}class Ws extends Ro{constructor(a,e,t,r){super(),this.component=a,this.viewContainerRef=e,this.injector=t,this.componentFactoryResolver=r}}class Ha extends Ro{constructor(a,e,t,r){super(),this.templateRef=a,this.viewContainerRef=e,this.context=t,this.injector=r}get origin(){return this.templateRef.elementRef}attach(a,e=this.context){return this.context=e,super.attach(a)}detach(){return this.context=void 0,super.detach()}}class Fc extends Ro{constructor(a){super(),this.element=a instanceof i.SBq?a.nativeElement:a}}class ko{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(a){return a instanceof Ws?(this._attachedPortal=a,this.attachComponentPortal(a)):a instanceof Ha?(this._attachedPortal=a,this.attachTemplatePortal(a)):this.attachDomPortal&&a instanceof Fc?(this._attachedPortal=a,this.attachDomPortal(a)):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(a){this._disposeFn=a}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class zc extends ko{constructor(a,e,t,r,l){super(),this.outletElement=a,this._componentFactoryResolver=e,this._appRef=t,this._defaultInjector=r,this.attachDomPortal=c=>{const s=c.element,o=this._document.createComment("dom-portal");s.parentNode.insertBefore(o,s),this.outletElement.appendChild(s),this._attachedPortal=c,super.setDisposeFn(()=>{o.parentNode&&o.parentNode.replaceChild(s,o)})},this._document=l}attachComponentPortal(a){const t=(a.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(a.component);let r;return a.viewContainerRef?(r=a.viewContainerRef.createComponent(t,a.viewContainerRef.length,a.injector||a.viewContainerRef.injector),this.setDisposeFn(()=>r.destroy())):(r=t.create(a.injector||this._defaultInjector||i.zs3.NULL),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=a,r}attachTemplatePortal(a){let e=a.viewContainerRef,t=e.createEmbeddedView(a.templateRef,a.context,{injector:a.injector});return t.rootNodes.forEach(r=>this.outletElement.appendChild(r)),t.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(t);-1!==r&&e.remove(r)}),this._attachedPortal=a,t}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(a){return a.hostView.rootNodes[0]}}let Au=(()=>{class n extends ko{constructor(e,t,r){super(),this._componentFactoryResolver=e,this._viewContainerRef=t,this._isInitialized=!1,this.attached=new i.vpe,this.attachDomPortal=l=>{const c=l.element,s=this._document.createComment("dom-portal");l.setAttachedHost(this),c.parentNode.insertBefore(s,c),this._getRootNode().appendChild(c),this._attachedPortal=l,super.setDisposeFn(()=>{s.parentNode&&s.parentNode.replaceChild(c,s)})},this._document=r}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(e){e.setAttachedHost(this);const t=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,l=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),c=t.createComponent(l,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(c.hostView.rootNodes[0]),super.setDisposeFn(()=>c.destroy()),this._attachedPortal=e,this._attachedRef=c,this.attached.emit(c),c}attachTemplatePortal(e){e.setAttachedHost(this);const t=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=t,this.attached.emit(t),t}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i._Vd),i.Y36(i.s_b),i.Y36(w.K0))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[i.qOj]}),n})(),Us=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();var Li=T(6451);const L0=a1();class __{constructor(a,e){this._viewportRuler=a,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const a=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=a.style.left||"",this._previousHTMLStyles.top=a.style.top||"",a.style.left=xn(-this._previousScrollPosition.left),a.style.top=xn(-this._previousScrollPosition.top),a.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const a=this._document.documentElement,t=a.style,r=this._document.body.style,l=t.scrollBehavior||"",c=r.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,a.classList.remove("cdk-global-scrollblock"),L0&&(t.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),L0&&(t.scrollBehavior=l,r.scrollBehavior=c)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width}}class yw{constructor(a,e,t,r){this._scrollDispatcher=a,this._ngZone=e,this._viewportRuler=t,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(a){this._overlayRef=a}enable(){if(this._scrollSubscription)return;const a=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=a.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=a.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class b_{enable(){}disable(){}attach(){}}function P0(n,a){return a.some(e=>n.bottome.bottom||n.righte.right)}function R0(n,a){return a.some(e=>n.tope.bottom||n.lefte.right)}class Mw{constructor(a,e,t,r){this._scrollDispatcher=a,this._viewportRuler=e,this._ngZone=t,this._config=r,this._scrollSubscription=null}attach(a){this._overlayRef=a}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 e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:t,height:r}=this._viewportRuler.getViewportSize();P0(e,[{width:t,height:r,bottom:r,right:t,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 A_=(()=>{class n{constructor(e,t,r,l){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=r,this.noop=()=>new b_,this.close=c=>new yw(this._scrollDispatcher,this._ngZone,this._viewportRuler,c),this.block=()=>new __(this._viewportRuler,this._document),this.reposition=c=>new Mw(this._scrollDispatcher,this._viewportRuler,this._ngZone,c),this._document=l}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Po),i.LFG(Ys),i.LFG(i.R0b),i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class Fl{constructor(a){if(this.scrollStrategy=new b_,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,a){const e=Object.keys(a);for(const t of e)void 0!==a[t]&&(this[t]=a[t])}}}class cp{constructor(a,e){this.connectionPair=a,this.scrollableViewProperties=e}}let w_=(()=>{class n{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const t=this._attachedOverlays.indexOf(e);t>-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this.detach()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),dp=(()=>{class n extends w_{constructor(e,t){super(e),this._ngZone=t,this._keydownListener=r=>{const l=this._attachedOverlays;for(let c=l.length-1;c>-1;c--)if(l[c]._keydownEvents.observers.length>0){const s=l[c]._keydownEvents;this._ngZone?this._ngZone.run(()=>s.next(r)):s.next(r);break}}}add(e){super.add(e),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0),i.LFG(i.R0b,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),up=(()=>{class n extends w_{constructor(e,t,r){super(e),this._platform=t,this._ngZone=r,this._cursorStyleIsSet=!1,this._pointerDownListener=l=>{this._pointerDownEventTarget=ia(l)},this._clickListener=l=>{const c=ia(l),s="click"===l.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:c;this._pointerDownEventTarget=null;const o=this._attachedOverlays.slice();for(let d=o.length-1;d>-1;d--){const u=o[d];if(u._outsidePointerEvents.observers.length<1||!u.hasAttached())continue;if(u.overlayElement.contains(c)||u.overlayElement.contains(s))break;const h=u._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>h.next(l)):h.next(l)}}}add(e){if(super.add(e),!this._isAttached){const t=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(t)):this._addEventListeners(t),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0),i.LFG(Yi),i.LFG(i.R0b,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),jc=(()=>{class n{constructor(e,t){this._platform=t,this._document=e}ngOnDestroy(){var e;null===(e=this._containerElement)||void 0===e||e.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||qf()){const r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let l=0;lthis._backdropClick.next(h),this._backdropTransitionendHandler=h=>{this._disposeBackdrop(h.target)},this._keydownEvents=new Ee.x,this._outsidePointerEvents=new Ee.x,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(a){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const e=this._portalOutlet.attach(a);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,ct.q)(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),"function"==typeof e?.onDestroy&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),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 a=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),a}dispose(){var a;const e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),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),null===(a=this._host)||void 0===a||a.remove(),this._previousHostParent=this._pane=this._host=null,e&&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(a){a!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=a,this.hasAttached()&&(a.attach(this),this.updatePosition()))}updateSize(a){this._config={...this._config,...a},this._updateElementSize()}setDirection(a){this._config={...this._config,direction:a},this._updateElementDirection()}addPanelClass(a){this._pane&&this._toggleClasses(this._pane,a,!0)}removePanelClass(a){this._pane&&this._toggleClasses(this._pane,a,!1)}getDirection(){const a=this._config.direction;return a?"string"==typeof a?a:a.value:"ltr"}updateScrollStrategy(a){a!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=a,this.hasAttached()&&(a.attach(this),a.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const a=this._pane.style;a.width=xn(this._config.width),a.height=xn(this._config.height),a.minWidth=xn(this._config.minWidth),a.minHeight=xn(this._config.minHeight),a.maxWidth=xn(this._config.maxWidth),a.maxHeight=xn(this._config.maxHeight)}_togglePointerEvents(a){this._pane.style.pointerEvents=a?"":"none"}_attachBackdrop(){const a="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),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),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(a)})}):this._backdropElement.classList.add(a)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const a=this._backdropElement;if(a){if(this._animationsDisabled)return void this._disposeBackdrop(a);a.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{a.addEventListener("transitionend",this._backdropTransitionendHandler)}),a.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(a)},500))}}_toggleClasses(a,e,t){const r=Kd(e||[]).filter(l=>!!l);r.length&&(t?a.classList.add(...r):a.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const a=this._ngZone.onStable.pipe(nt((0,Li.T)(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._host.remove()),a.unsubscribe())})})}_disposeScrollStrategy(){const a=this._scrollStrategy;a&&(a.disable(),a.detach&&a.detach())}_disposeBackdrop(a){a&&(a.removeEventListener("click",this._backdropClickHandler),a.removeEventListener("transitionend",this._backdropTransitionendHandler),a.remove(),this._backdropElement===a&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const hp="cdk-overlay-connected-position-bounding-box",C_=/([A-Za-z%]+)$/;class v_{constructor(a,e,t,r,l){this._viewportRuler=e,this._document=t,this._platform=r,this._overlayContainer=l,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 Ee.x,this._resizeSubscription=li.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(a)}get positions(){return this._preferredPositions}attach(a){this._validatePositions(),a.hostElement.classList.add(hp),this._overlayRef=a,this._boundingBox=a.hostElement,this._pane=a.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(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const a=this._originRect,e=this._overlayRect,t=this._viewportRect,r=this._containerRect,l=[];let c;for(let s of this._preferredPositions){let o=this._getOriginPoint(a,r,s),d=this._getOverlayPoint(o,e,s),u=this._getOverlayFit(d,e,t,s);if(u.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(s,o);this._canFitWithFlexibleDimensions(u,d,t)?l.push({position:s,origin:o,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(o,s)}):(!c||c.overlayFit.visibleAreao&&(o=u,s=d)}return this._isPushed=!1,void this._applyPosition(s.position,s.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(c.position,c.originPoint);this._applyPosition(c.position,c.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Gs(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(hp),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const a=this._lastPosition;if(a){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._getOriginPoint(this._originRect,this._containerRect,a);this._applyPosition(a,e)}else this.apply()}withScrollableContainers(a){return this._scrollables=a,this}withPositions(a){return this._preferredPositions=a,-1===a.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(a){return this._viewportMargin=a,this}withFlexibleDimensions(a=!0){return this._hasFlexibleDimensions=a,this}withGrowAfterOpen(a=!0){return this._growAfterOpen=a,this}withPush(a=!0){return this._canPush=a,this}withLockedPosition(a=!0){return this._positionLocked=a,this}setOrigin(a){return this._origin=a,this}withDefaultOffsetX(a){return this._offsetX=a,this}withDefaultOffsetY(a){return this._offsetY=a,this}withTransformOriginOn(a){return this._transformOriginSelector=a,this}_getOriginPoint(a,e,t){let r,l;if("center"==t.originX)r=a.left+a.width/2;else{const c=this._isRtl()?a.right:a.left,s=this._isRtl()?a.left:a.right;r="start"==t.originX?c:s}return e.left<0&&(r-=e.left),l="center"==t.originY?a.top+a.height/2:"top"==t.originY?a.top:a.bottom,e.top<0&&(l-=e.top),{x:r,y:l}}_getOverlayPoint(a,e,t){let r,l;return r="center"==t.overlayX?-e.width/2:"start"===t.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,l="center"==t.overlayY?-e.height/2:"top"==t.overlayY?0:-e.height,{x:a.x+r,y:a.y+l}}_getOverlayFit(a,e,t,r){const l=T_(e);let{x:c,y:s}=a,o=this._getOffset(r,"x"),d=this._getOffset(r,"y");o&&(c+=o),d&&(s+=d);let f=0-s,b=s+l.height-t.height,B=this._subtractOverflows(l.width,0-c,c+l.width-t.width),X=this._subtractOverflows(l.height,f,b),he=B*X;return{visibleArea:he,isCompletelyWithinViewport:l.width*l.height===he,fitsInViewportVertically:X===l.height,fitsInViewportHorizontally:B==l.width}}_canFitWithFlexibleDimensions(a,e,t){if(this._hasFlexibleDimensions){const r=t.bottom-e.y,l=t.right-e.x,c=pp(this._overlayRef.getConfig().minHeight),s=pp(this._overlayRef.getConfig().minWidth),d=a.fitsInViewportHorizontally||null!=s&&s<=l;return(a.fitsInViewportVertically||null!=c&&c<=r)&&d}return!1}_pushOverlayOnScreen(a,e,t){if(this._previousPushAmount&&this._positionLocked)return{x:a.x+this._previousPushAmount.x,y:a.y+this._previousPushAmount.y};const r=T_(e),l=this._viewportRect,c=Math.max(a.x+r.width-l.width,0),s=Math.max(a.y+r.height-l.height,0),o=Math.max(l.top-t.top-a.y,0),d=Math.max(l.left-t.left-a.x,0);let u=0,h=0;return u=r.width<=l.width?d||-c:a.xB&&!this._isInitialRender&&!this._growAfterOpen&&(c=a.y-B/2)}if("end"===e.overlayX&&!r||"start"===e.overlayX&&r)f=t.width-a.x+this._viewportMargin,u=a.x-this._viewportMargin;else if("start"===e.overlayX&&!r||"end"===e.overlayX&&r)h=a.x,u=t.right-a.x;else{const b=Math.min(t.right-a.x+t.left,a.x),B=this._lastBoundingBoxSize.width;u=2*b,h=a.x-b,u>B&&!this._isInitialRender&&!this._growAfterOpen&&(h=a.x-B/2)}return{top:c,left:h,bottom:s,right:f,width:u,height:l}}_setBoundingBoxStyles(a,e){const t=this._calculateBoundingBoxRect(a,e);!this._isInitialRender&&!this._growAfterOpen&&(t.height=Math.min(t.height,this._lastBoundingBoxSize.height),t.width=Math.min(t.width,this._lastBoundingBoxSize.width));const r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{const l=this._overlayRef.getConfig().maxHeight,c=this._overlayRef.getConfig().maxWidth;r.height=xn(t.height),r.top=xn(t.top),r.bottom=xn(t.bottom),r.width=xn(t.width),r.left=xn(t.left),r.right=xn(t.right),r.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",r.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",l&&(r.maxHeight=xn(l)),c&&(r.maxWidth=xn(c))}this._lastBoundingBoxSize=t,Gs(this._boundingBox.style,r)}_resetBoundingBoxStyles(){Gs(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Gs(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(a,e){const t={},r=this._hasExactPosition(),l=this._hasFlexibleDimensions,c=this._overlayRef.getConfig();if(r){const u=this._viewportRuler.getViewportScrollPosition();Gs(t,this._getExactOverlayY(e,a,u)),Gs(t,this._getExactOverlayX(e,a,u))}else t.position="static";let s="",o=this._getOffset(e,"x"),d=this._getOffset(e,"y");o&&(s+=`translateX(${o}px) `),d&&(s+=`translateY(${d}px)`),t.transform=s.trim(),c.maxHeight&&(r?t.maxHeight=xn(c.maxHeight):l&&(t.maxHeight="")),c.maxWidth&&(r?t.maxWidth=xn(c.maxWidth):l&&(t.maxWidth="")),Gs(this._pane.style,t)}_getExactOverlayY(a,e,t){let r={top:"",bottom:""},l=this._getOverlayPoint(e,this._overlayRect,a);return this._isPushed&&(l=this._pushOverlayOnScreen(l,this._overlayRect,t)),"bottom"===a.overlayY?r.bottom=this._document.documentElement.clientHeight-(l.y+this._overlayRect.height)+"px":r.top=xn(l.y),r}_getExactOverlayX(a,e,t){let c,r={left:"",right:""},l=this._getOverlayPoint(e,this._overlayRect,a);return this._isPushed&&(l=this._pushOverlayOnScreen(l,this._overlayRect,t)),c=this._isRtl()?"end"===a.overlayX?"left":"right":"end"===a.overlayX?"right":"left","right"===c?r.right=this._document.documentElement.clientWidth-(l.x+this._overlayRect.width)+"px":r.left=xn(l.x),r}_getScrollVisibility(){const a=this._getOriginRect(),e=this._pane.getBoundingClientRect(),t=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:R0(a,t),isOriginOutsideView:P0(a,t),isOverlayClipped:R0(e,t),isOverlayOutsideView:P0(e,t)}}_subtractOverflows(a,...e){return e.reduce((t,r)=>t-Math.max(r,0),a)}_getNarrowedViewportRect(){const a=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,t=this._viewportRuler.getViewportScrollPosition();return{top:t.top+this._viewportMargin,left:t.left+this._viewportMargin,right:t.left+a-this._viewportMargin,bottom:t.top+e-this._viewportMargin,width:a-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(a,e){return"x"===e?a.offsetX??this._offsetX:a.offsetY??this._offsetY}_validatePositions(){}_addPanelClasses(a){this._pane&&Kd(a).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(a=>{this._pane.classList.remove(a)}),this._appliedPanelClasses=[])}_getOriginRect(){const a=this._origin;if(a instanceof i.SBq)return a.nativeElement.getBoundingClientRect();if(a instanceof Element)return a.getBoundingClientRect();const e=a.width||0,t=a.height||0;return{top:a.y,bottom:a.y+t,left:a.x,right:a.x+e,height:t,width:e}}}function Gs(n,a){for(let e in a)a.hasOwnProperty(e)&&(n[e]=a[e]);return n}function pp(n){if("number"!=typeof n&&null!=n){const[a,e]=n.split(C_);return e&&"px"!==e?null:parseFloat(a)}return n||null}function T_(n){return{top:Math.floor(n.top),right:Math.floor(n.right),bottom:Math.floor(n.bottom),left:Math.floor(n.left),width:Math.floor(n.width),height:Math.floor(n.height)}}const O0="cdk-global-overlay-wrapper";class x_{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(a){const e=a.getConfig();this._overlayRef=a,this._width&&!e.width&&a.updateSize({width:this._width}),this._height&&!e.height&&a.updateSize({height:this._height}),a.hostElement.classList.add(O0),this._isDisposed=!1}top(a=""){return this._bottomOffset="",this._topOffset=a,this._alignItems="flex-start",this}left(a=""){return this._xOffset=a,this._xPosition="left",this}bottom(a=""){return this._topOffset="",this._bottomOffset=a,this._alignItems="flex-end",this}right(a=""){return this._xOffset=a,this._xPosition="right",this}start(a=""){return this._xOffset=a,this._xPosition="start",this}end(a=""){return this._xOffset=a,this._xPosition="end",this}width(a=""){return this._overlayRef?this._overlayRef.updateSize({width:a}):this._width=a,this}height(a=""){return this._overlayRef?this._overlayRef.updateSize({height:a}):this._height=a,this}centerHorizontally(a=""){return this.left(a),this._xPosition="center",this}centerVertically(a=""){return this.top(a),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const a=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,t=this._overlayRef.getConfig(),{width:r,height:l,maxWidth:c,maxHeight:s}=t,o=!("100%"!==r&&"100vw"!==r||c&&"100%"!==c&&"100vw"!==c),d=!("100%"!==l&&"100vh"!==l||s&&"100%"!==s&&"100vh"!==s),u=this._xPosition,h=this._xOffset,f="rtl"===this._overlayRef.getConfig().direction;let b="",B="",X="";o?X="flex-start":"center"===u?(X="center",f?B=h:b=h):f?"left"===u||"end"===u?(X="flex-end",b=h):("right"===u||"start"===u)&&(X="flex-start",B=h):"left"===u||"start"===u?(X="flex-start",b=h):("right"===u||"end"===u)&&(X="flex-end",B=h),a.position=this._cssPosition,a.marginLeft=o?"0":b,a.marginTop=d?"0":this._topOffset,a.marginBottom=this._bottomOffset,a.marginRight=o?"0":B,e.justifyContent=X,e.alignItems=d?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const a=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,t=e.style;e.classList.remove(O0),t.justifyContent=t.alignItems=a.marginTop=a.marginBottom=a.marginLeft=a.marginRight=a.position="",this._overlayRef=null,this._isDisposed=!0}}let vw=(()=>{class n{constructor(e,t,r,l){this._viewportRuler=e,this._document=t,this._platform=r,this._overlayContainer=l}global(){return new x_}flexibleConnectedTo(e){return new v_(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Ys),i.LFG(w.K0),i.LFG(Yi),i.LFG(jc))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),S_=0,ar=(()=>{class n{constructor(e,t,r,l,c,s,o,d,u,h,f,b){this.scrollStrategies=e,this._overlayContainer=t,this._componentFactoryResolver=r,this._positionBuilder=l,this._keyboardDispatcher=c,this._injector=s,this._ngZone=o,this._document=d,this._directionality=u,this._location=h,this._outsideClickDispatcher=f,this._animationsModuleType=b}create(e){const t=this._createHostElement(),r=this._createPaneElement(t),l=this._createPortalOutlet(r),c=new Fl(e);return c.direction=c.direction||this._directionality.value,new qc(l,t,r,c,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(e){const t=this._document.createElement("div");return t.id="cdk-overlay-"+S_++,t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(i.z2F)),new zc(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(A_),i.LFG(jc),i.LFG(i._Vd),i.LFG(vw),i.LFG(dp),i.LFG(i.zs3),i.LFG(i.R0b),i.LFG(w.K0),i.LFG(Sn),i.LFG(w.Ye),i.LFG(up),i.LFG(i.QbO,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const I0=[{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"}],yu=new i.OlP("cdk-connected-overlay-scroll-strategy");let fp=(()=>{class n{constructor(e){this.elementRef=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),n})(),B0=(()=>{class n{constructor(e,t,r,l,c){this._overlay=e,this._dir=c,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=li.w0.EMPTY,this._attachSubscription=li.w0.EMPTY,this._detachSubscription=li.w0.EMPTY,this._positionSubscription=li.w0.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new i.vpe,this.positionChange=new i.vpe,this.attach=new i.vpe,this.detach=new i.vpe,this.overlayKeydown=new i.vpe,this.overlayOutsideClick=new i.vpe,this._templatePortal=new Ha(t,r),this._scrollStrategyFactory=l,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=Fe(e)}get lockPosition(){return this._lockPosition}set lockPosition(e){this._lockPosition=Fe(e)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(e){this._flexibleDimensions=Fe(e)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(e){this._growAfterOpen=Fe(e)}get push(){return this._push}set push(e){this._push=Fe(e)}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(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=I0);const e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(t=>{this.overlayKeydown.next(t),27===t.keyCode&&!this.disableClose&&!Bn(t)&&(t.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(t=>{this.overlayOutsideClick.next(t)})}_buildConfig(){const e=this._position=this.positionStrategy||this._createPositionStrategy(),t=new Fl({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(t.width=this.width),(this.height||0===this.height)&&(t.height=this.height),(this.minWidth||0===this.minWidth)&&(t.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(t.minHeight=this.minHeight),this.backdropClass&&(t.backdropClass=this.backdropClass),this.panelClass&&(t.panelClass=this.panelClass),t}_updatePositionStrategy(e){const t=this.positions.map(r=>({originX:r.originX,originY:r.originY,overlayX:r.overlayX,overlayY:r.overlayY,offsetX:r.offsetX||this.offsetX,offsetY:r.offsetY||this.offsetY,panelClass:r.panelClass||void 0}));return e.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(t).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const e=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(e),e}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof fp?this.origin.elementRef:this.origin}_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(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(hc(()=>this.positionChange.observers.length>0)).subscribe(e=>{this.positionChange.emit(e),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(ar),i.Y36(i.Rgc),i.Y36(i.s_b),i.Y36(yu),i.Y36(Sn,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[i.TTD]}),n})();const D_={provide:yu,deps:[ar],useFactory:function E_(n){return()=>n.scrollStrategies.reposition()}};let Oo=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[ar,D_],imports:[Ic,Us,pr,pr]}),n})();class N0{}const Io="*";function yi(n,a){return{type:7,name:n,definitions:a,options:{}}}function Ht(n,a=null){return{type:4,styles:a,timings:n}}function Mu(n,a=null){return{type:3,steps:n,options:a}}function L_(n,a=null){return{type:2,steps:n,options:a}}function Le(n){return{type:6,styles:n,offset:null}}function It(n,a,e){return{type:0,name:n,styles:a,options:e}}function zl(n){return{type:5,steps:n}}function Rt(n,a,e=null){return{type:1,expr:n,animation:a,options:e}}function mp(n=null){return{type:9,options:n}}function Sr(n,a,e=null){return{type:11,selector:n,animation:a,options:e}}function P_(n){Promise.resolve(null).then(n)}class Cu{constructor(a=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=a+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(a=>a()),this._onDoneFns=[])}onStart(a){this._originalOnStartFns.push(a),this._onStartFns.push(a)}onDone(a){this._originalOnDoneFns.push(a),this._onDoneFns.push(a)}onDestroy(a){this._onDestroyFns.push(a)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){P_(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(a=>a()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(a=>a()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(a){this._position=this.totalTime?a*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(a){const e="start"==a?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class V0{constructor(a){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=a;let e=0,t=0,r=0;const l=this.players.length;0==l?P_(()=>this._onFinish()):this.players.forEach(c=>{c.onDone(()=>{++e==l&&this._onFinish()}),c.onDestroy(()=>{++t==l&&this._onDestroy()}),c.onStart(()=>{++r==l&&this._onStart()})}),this.totalTime=this.players.reduce((c,s)=>Math.max(c,s.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(a=>a()),this._onDoneFns=[])}init(){this.players.forEach(a=>a.init())}onStart(a){this._onStartFns.push(a)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(a=>a()),this._onStartFns=[])}onDone(a){this._onDoneFns.push(a)}onDestroy(a){this._onDestroyFns.push(a)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(a=>a.play())}pause(){this.players.forEach(a=>a.pause())}restart(){this.players.forEach(a=>a.restart())}finish(){this._onFinish(),this.players.forEach(a=>a.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(a=>a.destroy()),this._onDestroyFns.forEach(a=>a()),this._onDestroyFns=[])}reset(){this.players.forEach(a=>a.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(a){const e=a*this.totalTime;this.players.forEach(t=>{const r=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(r)})}getPosition(){const a=this.players.reduce((e,t)=>null===e||t.totalTime>e.totalTime?t:e,null);return null!=a?a.getPosition():0}beforeDestroy(){this.players.forEach(a=>{a.beforeDestroy&&a.beforeDestroy()})}triggerCallback(a){const e="start"==a?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}const R_=["connectionContainer"],_S=["inputContainer"],z0=["label"];function j0(n,a){1&n&&(i.ynx(0),i.TgZ(1,"div",14),i._UZ(2,"div",15)(3,"div",16)(4,"div",17),i.qZA(),i.TgZ(5,"div",18),i._UZ(6,"div",15)(7,"div",16)(8,"div",17),i.qZA(),i.BQk())}function as(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",19),i.NdJ("cdkObserveContent",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.updateOutlineGap())}),i.Hsn(1,1),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)}}function Ew(n,a){if(1&n&&(i.ynx(0),i.Hsn(1,2),i.TgZ(2,"span"),i._uU(3),i.qZA(),i.BQk()),2&n){const e=i.oxw(2);i.xp6(3),i.Oqu(e._control.placeholder)}}function k_(n,a){1&n&&i.Hsn(0,3,["*ngSwitchCase","true"])}function ss(n,a){1&n&&(i.TgZ(0,"span",23),i._uU(1," *"),i.qZA())}function La(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"label",20,21),i.NdJ("cdkObserveContent",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.updateOutlineGap())}),i.YNc(2,Ew,4,1,"ng-container",12),i.YNc(3,k_,1,0,"ng-content",12),i.YNc(4,ss,2,0,"span",22),i.qZA()}if(2&n){const e=i.oxw();i.ekj("mat-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-form-field-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-accent","accent"==e.color)("mat-warn","warn"==e.color),i.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),i.uIk("for",e._control.id)("aria-owns",e._control.id),i.xp6(2),i.Q6J("ngSwitchCase",!1),i.xp6(1),i.Q6J("ngSwitchCase",!0),i.xp6(1),i.Q6J("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function Pa(n,a){1&n&&(i.TgZ(0,"div",24),i.Hsn(1,4),i.qZA())}function O_(n,a){if(1&n&&(i.TgZ(0,"div",25),i._UZ(1,"span",26),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.ekj("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function I_(n,a){if(1&n&&(i.TgZ(0,"div"),i.Hsn(1,5),i.qZA()),2&n){const e=i.oxw();i.Q6J("@transitionMessages",e._subscriptAnimationState)}}function Dw(n,a){if(1&n&&(i.TgZ(0,"div",30),i._uU(1),i.qZA()),2&n){const e=i.oxw(2);i.Q6J("id",e._hintLabelId),i.xp6(1),i.Oqu(e.hintLabel)}}function Hw(n,a){if(1&n&&(i.TgZ(0,"div",27),i.YNc(1,Dw,2,2,"div",28),i.Hsn(2,6),i._UZ(3,"div",29),i.Hsn(4,7),i.qZA()),2&n){const e=i.oxw();i.Q6J("@transitionMessages",e._subscriptAnimationState),i.xp6(1),i.Q6J("ngIf",e.hintLabel)}}const Lw=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Pw=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let q0=0;const Yc=new i.OlP("MatError");let jl=(()=>{class n{constructor(e,t){this.id="mat-error-"+q0++,e||t.nativeElement.setAttribute("aria-live","polite")}}return n.\u0275fac=function(e){return new(e||n)(i.$8M("aria-live"),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(e,t){2&e&&i.uIk("id",t.id)},inputs:{id:"id"},features:[i._Bn([{provide:Yc,useExisting:n}])]}),n})();const B_={transitionMessages:yi("transitionMessages",[It("enter",Le({opacity:1,transform:"translateY(0%)"})),Rt("void => enter",[Le({opacity:0,transform:"translateY(-5px)"}),Ht("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let vu=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n}),n})(),Ow=0;const W0=new i.OlP("MatHint");let N_=(()=>{class n{constructor(){this.align="start",this.id="mat-hint-"+Ow++}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(e,t){2&e&&(i.uIk("id",t.id)("align",null),i.ekj("mat-form-field-hint-end","end"===t.align))},inputs:{align:"align",id:"id"},features:[i._Bn([{provide:W0,useExisting:n}])]}),n})(),Ra=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-label"]]}),n})(),gp=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-placeholder"]]}),n})();const U0=new i.OlP("MatPrefix"),G0=new i.OlP("MatSuffix");let _p=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","matSuffix",""]],features:[i._Bn([{provide:G0,useExisting:n}])]}),n})(),$0=0;const F_=hr(class{constructor(n){this._elementRef=n}},"primary"),z_=new i.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Tu=new i.OlP("MatFormField");let hn=(()=>{class n extends F_{constructor(e,t,r,l,c,s,o){super(e),this._changeDetectorRef=t,this._dir=r,this._defaults=l,this._platform=c,this._ngZone=s,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new Ee.x,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+$0++,this._labelId="mat-form-field-label-"+$0++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==o,this.appearance=l?.appearance||"legacy",l&&(this._hideRequiredMarker=Boolean(l.hideRequiredMarker),l.color&&(this.color=this.defaultColor=l.color))}get appearance(){return this._appearance}set appearance(e){var t;const r=this._appearance;this._appearance=e||(null===(t=this._defaults)||void 0===t?void 0:t.appearance)||"legacy","outline"===this._appearance&&r!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=Fe(e)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(e){this._explicitFormFieldControl=e}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${e.controlType}`),e.stateChanges.pipe(Hi(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(nt(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(nt(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,Li.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Hi(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Hi(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(nt(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(e){const t=this._control?this._control.ngControl:null;return t&&t[e]}_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,Sa(this._label.nativeElement,"transitionend").pipe((0,ct.q)(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 e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const t=this._hintChildren?this._hintChildren.find(l=>"start"===l.align):null,r=this._hintChildren?this._hintChildren.find(l=>"end"===l.align):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),r&&e.push(r.id)}else this._errorChildren&&e.push(...this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(e)}}_validateControlChild(){}updateOutlineGap(){const e=this._label?this._label.nativeElement:null,t=this._connectionContainerRef.nativeElement,r=".mat-form-field-outline-start",l=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!e||!e.children.length||!e.textContent.trim()){const u=t.querySelectorAll(`${r}, ${l}`);for(let h=0;h0?.75*B+10:0}for(let u=0;u{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[w.ez,_t,eu,_t]}),n})(),j_=(()=>{class n{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,t){this._renderer.setProperty(this._elementRef.nativeElement,e,t)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Qsj),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n}),n})(),ql=(()=>{class n extends j_{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,features:[i.qOj]}),n})();const sr=new i.OlP("NgValueAccessor"),Nw={provide:sr,useExisting:(0,i.Gpc)(()=>An),multi:!0},Fw=new i.OlP("CompositionEventMode");let An=(()=>{class n extends j_{constructor(e,t,r){super(e,t),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function Vw(){const n=(0,w.q)()?(0,w.q)().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Qsj),i.Y36(i.SBq),i.Y36(Fw,8))},n.\u0275dir=i.lG2({type:n,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(e,t){1&e&&i.NdJ("input",function(l){return t._handleInput(l.target.value)})("blur",function(){return t.onTouched()})("compositionstart",function(){return t._compositionStart()})("compositionend",function(l){return t._compositionEnd(l.target.value)})},features:[i._Bn([Nw]),i.qOj]}),n})();function Bo(n){return null==n||("string"==typeof n||Array.isArray(n))&&0===n.length}function Y_(n){return null!=n&&"number"==typeof n.length}const Fn=new i.OlP("NgValidators"),No=new i.OlP("NgAsyncValidators"),W_=/^(?=.{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 yn{static min(a){return function J0(n){return a=>{if(Bo(a.value)||Bo(n))return null;const e=parseFloat(a.value);return!isNaN(e)&&e{if(Bo(a.value)||Bo(n))return null;const e=parseFloat(a.value);return!isNaN(e)&&e>n?{max:{max:n,actual:a.value}}:null}}(a)}static required(a){return X0(a)}static requiredTrue(a){return function K0(n){return!0===n.value?null:{required:!0}}(a)}static email(a){return function em(n){return Bo(n.value)||W_.test(n.value)?null:{email:!0}}(a)}static minLength(a){return function tm(n){return a=>Bo(a.value)||!Y_(a.value)?null:a.value.lengthY_(a.value)&&a.value.length>n?{maxlength:{requiredLength:n,actualLength:a.value.length}}:null}(a)}static pattern(a){return function bp(n){if(!n)return Wc;let a,e;return"string"==typeof n?(e="","^"!==n.charAt(0)&&(e+="^"),e+=n,"$"!==n.charAt(n.length-1)&&(e+="$"),a=new RegExp(e)):(e=n.toString(),a=n),t=>{if(Bo(t.value))return null;const r=t.value;return a.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}(a)}static nullValidator(a){return null}static compose(a){return jw(a)}static composeAsync(a){return nm(a)}}function X0(n){return Bo(n.value)?{required:!0}:null}function Wc(n){return null}function Vo(n){return null!=n}function U_(n){return(0,i.QGY)(n)?(0,ht.D)(n):n}function G_(n){let a={};return n.forEach(e=>{a=null!=e?{...a,...e}:a}),0===Object.keys(a).length?null:a}function Yl(n,a){return a.map(e=>e(n))}function Ap(n){return n.map(a=>function bS(n){return!n.validate}(a)?a:e=>a.validate(e))}function jw(n){if(!n)return null;const a=n.filter(Vo);return 0==a.length?null:function(e){return G_(Yl(e,a))}}function yp(n){return null!=n?jw(Ap(n)):null}function nm(n){if(!n)return null;const a=n.filter(Vo);return 0==a.length?null:function(e){return ua(Yl(e,a).map(U_)).pipe((0,At.U)(G_))}}function $_(n){return null!=n?nm(Ap(n)):null}function Mt(n,a){return null===n?[a]:Array.isArray(n)?[...n,a]:[n,a]}function Z_(n){return n._rawValidators}function J_(n){return n._rawAsyncValidators}function rm(n){return n?Array.isArray(n)?n:[n]:[]}function Zs(n,a){return Array.isArray(n)?n.includes(a):n===a}function Q_(n,a){const e=rm(a);return rm(n).forEach(r=>{Zs(e,r)||e.push(r)}),e}function xu(n,a){return rm(a).filter(e=>!Zs(n,e))}class Su{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(a){this._rawValidators=a||[],this._composedValidatorFn=yp(this._rawValidators)}_setAsyncValidators(a){this._rawAsyncValidators=a||[],this._composedAsyncValidatorFn=$_(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(a){this._onDestroyCallbacks.push(a)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(a=>a()),this._onDestroyCallbacks=[]}reset(a){this.control&&this.control.reset(a)}hasError(a,e){return!!this.control&&this.control.hasError(a,e)}getError(a,e){return this.control?this.control.getError(a,e):null}}class Jt extends Su{get formDirective(){return null}get path(){return null}}class os extends Su{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class am{constructor(a){this._cd=a}get isTouched(){var a,e;return!(null===(a=this._cd)||void 0===a||null===(e=a.control)||void 0===e||!e.touched)}get isUntouched(){var a,e;return!(null===(a=this._cd)||void 0===a||null===(e=a.control)||void 0===e||!e.untouched)}get isPristine(){var a,e;return!(null===(a=this._cd)||void 0===a||null===(e=a.control)||void 0===e||!e.pristine)}get isDirty(){var a,e;return!(null===(a=this._cd)||void 0===a||null===(e=a.control)||void 0===e||!e.dirty)}get isValid(){var a,e;return!(null===(a=this._cd)||void 0===a||null===(e=a.control)||void 0===e||!e.valid)}get isInvalid(){var a,e;return!(null===(a=this._cd)||void 0===a||null===(e=a.control)||void 0===e||!e.invalid)}get isPending(){var a,e;return!(null===(a=this._cd)||void 0===a||null===(e=a.control)||void 0===e||!e.pending)}get isSubmitted(){var a;return!(null===(a=this._cd)||void 0===a||!a.submitted)}}let pn=(()=>{class n extends am{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(os,2))},n.\u0275dir=i.lG2({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&i.ekj("ng-untouched",t.isUntouched)("ng-touched",t.isTouched)("ng-pristine",t.isPristine)("ng-dirty",t.isDirty)("ng-valid",t.isValid)("ng-invalid",t.isInvalid)("ng-pending",t.isPending)},features:[i.qOj]}),n})(),Uc=(()=>{class n extends am{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Jt,10))},n.\u0275dir=i.lG2({type:n,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,t){2&e&&i.ekj("ng-untouched",t.isUntouched)("ng-touched",t.isTouched)("ng-pristine",t.isPristine)("ng-dirty",t.isDirty)("ng-valid",t.isValid)("ng-invalid",t.isInvalid)("ng-pending",t.isPending)("ng-submitted",t.isSubmitted)},features:[i.qOj]}),n})();const Lu="VALID",Pu="INVALID",Wl="PENDING",Gc="DISABLED";function cm(n){return(hm(n)?n.validators:n)||null}function dm(n){return Array.isArray(n)?yp(n):n||null}function um(n,a){return(hm(a)?a.asyncValidators:n)||null}function eb(n){return Array.isArray(n)?$_(n):n||null}function hm(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}function Zw(n,a,e){const t=n.controls;if(!(a?Object.keys(t):t).length)throw new i.vHH(1e3,"");if(!t[e])throw new i.vHH(1001,"")}function Jw(n,a,e){n._forEachChild((t,r)=>{if(void 0===e[r])throw new i.vHH(1002,"")})}class pm{constructor(a,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=a,this._rawAsyncValidators=e,this._composedValidatorFn=dm(this._rawValidators),this._composedAsyncValidatorFn=eb(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(a){this._rawValidators=this._composedValidatorFn=a}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(a){this._rawAsyncValidators=this._composedAsyncValidatorFn=a}get parent(){return this._parent}get valid(){return this.status===Lu}get invalid(){return this.status===Pu}get pending(){return this.status==Wl}get disabled(){return this.status===Gc}get enabled(){return this.status!==Gc}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(a){this._rawValidators=a,this._composedValidatorFn=dm(a)}setAsyncValidators(a){this._rawAsyncValidators=a,this._composedAsyncValidatorFn=eb(a)}addValidators(a){this.setValidators(Q_(a,this._rawValidators))}addAsyncValidators(a){this.setAsyncValidators(Q_(a,this._rawAsyncValidators))}removeValidators(a){this.setValidators(xu(a,this._rawValidators))}removeAsyncValidators(a){this.setAsyncValidators(xu(a,this._rawAsyncValidators))}hasValidator(a){return Zs(this._rawValidators,a)}hasAsyncValidator(a){return Zs(this._rawAsyncValidators,a)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(a={}){this.touched=!0,this._parent&&!a.onlySelf&&this._parent.markAsTouched(a)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(a=>a.markAllAsTouched())}markAsUntouched(a={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!a.onlySelf&&this._parent._updateTouched(a)}markAsDirty(a={}){this.pristine=!1,this._parent&&!a.onlySelf&&this._parent.markAsDirty(a)}markAsPristine(a={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!a.onlySelf&&this._parent._updatePristine(a)}markAsPending(a={}){this.status=Wl,!1!==a.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!a.onlySelf&&this._parent.markAsPending(a)}disable(a={}){const e=this._parentMarkedDirty(a.onlySelf);this.status=Gc,this.errors=null,this._forEachChild(t=>{t.disable({...a,onlySelf:!0})}),this._updateValue(),!1!==a.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...a,skipPristineCheck:e}),this._onDisabledChange.forEach(t=>t(!0))}enable(a={}){const e=this._parentMarkedDirty(a.onlySelf);this.status=Lu,this._forEachChild(t=>{t.enable({...a,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:a.emitEvent}),this._updateAncestors({...a,skipPristineCheck:e}),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(a){this._parent&&!a.onlySelf&&(this._parent.updateValueAndValidity(a),a.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(a){this._parent=a}getRawValue(){return this.value}updateValueAndValidity(a={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Lu||this.status===Wl)&&this._runAsyncValidator(a.emitEvent)),!1!==a.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!a.onlySelf&&this._parent.updateValueAndValidity(a)}_updateTreeValidity(a={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(a)),this.updateValueAndValidity({onlySelf:!0,emitEvent:a.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Gc:Lu}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(a){if(this.asyncValidator){this.status=Wl,this._hasOwnPendingAsyncValidator=!0;const e=U_(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(t=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(t,{emitEvent:a})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(a,e={}){this.errors=a,this._updateControlsErrors(!1!==e.emitEvent)}get(a){let e=a;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((t,r)=>t&&t._find(r),this)}getError(a,e){const t=e?this.get(e):this;return t&&t.errors?t.errors[a]:null}hasError(a,e){return!!this.getError(a,e)}get root(){let a=this;for(;a._parent;)a=a._parent;return a}_updateControlsErrors(a){this.status=this._calculateStatus(),a&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(a)}_initObservables(){this.valueChanges=new i.vpe,this.statusChanges=new i.vpe}_calculateStatus(){return this._allControlsDisabled()?Gc:this.errors?Pu:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Wl)?Wl:this._anyControlsHaveStatus(Pu)?Pu:Lu}_anyControlsHaveStatus(a){return this._anyControls(e=>e.status===a)}_anyControlsDirty(){return this._anyControls(a=>a.dirty)}_anyControlsTouched(){return this._anyControls(a=>a.touched)}_updatePristine(a={}){this.pristine=!this._anyControlsDirty(),this._parent&&!a.onlySelf&&this._parent._updatePristine(a)}_updateTouched(a={}){this.touched=this._anyControlsTouched(),this._parent&&!a.onlySelf&&this._parent._updateTouched(a)}_registerOnCollectionChange(a){this._onCollectionChange=a}_setUpdateStrategy(a){hm(a)&&null!=a.updateOn&&(this._updateOn=a.updateOn)}_parentMarkedDirty(a){return!a&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(a){return null}}class Ru extends pm{constructor(a,e,t){super(cm(e),um(t,e)),this.controls=a,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(a,e){return this.controls[a]?this.controls[a]:(this.controls[a]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(a,e,t={}){this.registerControl(a,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}removeControl(a,e={}){this.controls[a]&&this.controls[a]._registerOnCollectionChange(()=>{}),delete this.controls[a],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(a,e,t={}){this.controls[a]&&this.controls[a]._registerOnCollectionChange(()=>{}),delete this.controls[a],e&&this.registerControl(a,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}contains(a){return this.controls.hasOwnProperty(a)&&this.controls[a].enabled}setValue(a,e={}){Jw(this,0,a),Object.keys(a).forEach(t=>{Zw(this,!0,t),this.controls[t].setValue(a[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(a,e={}){null!=a&&(Object.keys(a).forEach(t=>{const r=this.controls[t];r&&r.patchValue(a[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(a={},e={}){this._forEachChild((t,r)=>{t.reset(a[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(a,e,t)=>(a[t]=e.getRawValue(),a))}_syncPendingControls(){let a=this._reduceChildren(!1,(e,t)=>!!t._syncPendingControls()||e);return a&&this.updateValueAndValidity({onlySelf:!0}),a}_forEachChild(a){Object.keys(this.controls).forEach(e=>{const t=this.controls[e];t&&a(t,e)})}_setUpControls(){this._forEachChild(a=>{a.setParent(this),a._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(a){for(const[e,t]of Object.entries(this.controls))if(this.contains(e)&&a(t))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,t,r)=>((t.enabled||this.disabled)&&(e[r]=t.value),e))}_reduceChildren(a,e){let t=a;return this._forEachChild((r,l)=>{t=e(t,r,l)}),t}_allControlsDisabled(){for(const a of Object.keys(this.controls))if(this.controls[a].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(a){return this.controls.hasOwnProperty(a)?this.controls[a]:null}}function Fo(n,a){return[...a.path,n]}function ku(n,a){var e,t;mm(n,a),a.valueAccessor.writeValue(n.value),n.disabled&&(null===(e=(t=a.valueAccessor).setDisabledState)||void 0===e||e.call(t,!0)),function eC(n,a){a.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&Ul(n,a)})}(n,a),function iC(n,a){const e=(t,r)=>{a.valueAccessor.writeValue(t),r&&a.viewToModelUpdate(t)};n.registerOnChange(e),a._registerOnDestroy(()=>{n._unregisterOnChange(e)})}(n,a),function tC(n,a){a.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&Ul(n,a),"submit"!==n.updateOn&&n.markAsTouched()})}(n,a),function Kw(n,a){if(a.valueAccessor.setDisabledState){const e=t=>{a.valueAccessor.setDisabledState(t)};n.registerOnDisabledChange(e),a._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}(n,a)}function Cp(n,a,e=!0){const t=()=>{};a.valueAccessor&&(a.valueAccessor.registerOnChange(t),a.valueAccessor.registerOnTouched(t)),Ou(n,a),n&&(a._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function vp(n,a){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(a)})}function mm(n,a){const e=Z_(n);null!==a.validator?n.setValidators(Mt(e,a.validator)):"function"==typeof e&&n.setValidators([e]);const t=J_(n);null!==a.asyncValidator?n.setAsyncValidators(Mt(t,a.asyncValidator)):"function"==typeof t&&n.setAsyncValidators([t]);const r=()=>n.updateValueAndValidity();vp(a._rawValidators,r),vp(a._rawAsyncValidators,r)}function Ou(n,a){let e=!1;if(null!==n){if(null!==a.validator){const r=Z_(n);if(Array.isArray(r)&&r.length>0){const l=r.filter(c=>c!==a.validator);l.length!==r.length&&(e=!0,n.setValidators(l))}}if(null!==a.asyncValidator){const r=J_(n);if(Array.isArray(r)&&r.length>0){const l=r.filter(c=>c!==a.asyncValidator);l.length!==r.length&&(e=!0,n.setAsyncValidators(l))}}}const t=()=>{};return vp(a._rawValidators,t),vp(a._rawAsyncValidators,t),e}function Ul(n,a){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),a.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function gm(n,a){mm(n,a)}function Iu(n,a){if(!n.hasOwnProperty("model"))return!1;const e=n.model;return!!e.isFirstChange()||!Object.is(a,e.currentValue)}function bm(n,a){n._syncPendingControls(),a.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function Tp(n,a){if(!a)return null;let e,t,r;return Array.isArray(a),a.forEach(l=>{l.constructor===An?e=l:function sC(n){return Object.getPrototypeOf(n.constructor)===ql}(l)?t=l:r=l}),r||t||e||null}const lC={provide:Jt,useExisting:(0,i.Gpc)(()=>$l)},Gl=(()=>Promise.resolve(null))();let $l=(()=>{class n extends Jt{constructor(e,t){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new i.vpe,this.form=new Ru({},yp(e),$_(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Gl.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),ku(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Gl.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Gl.then(()=>{const t=this._findContainer(e.path),r=new Ru({});gm(r,e),t.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Gl.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){Gl.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,bm(this.form,this._directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Fn,10),i.Y36(No,10))},n.\u0275dir=i.lG2({type:n,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&i.NdJ("submit",function(l){return t.onSubmit(l)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i._Bn([lC]),i.qOj]}),n})();function Am(n,a){const e=n.indexOf(a);e>-1&&n.splice(e,1)}function tb(n){return"object"==typeof n&&null!==n&&2===Object.keys(n).length&&"value"in n&&"disabled"in n}const zo=class extends pm{constructor(a=null,e,t){super(cm(e),um(t,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(a),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),hm(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=tb(a)?a.value:a)}setValue(a,e={}){this.value=this._pendingValue=a,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(a,e={}){this.setValue(a,e)}reset(a=this.defaultValue,e={}){this._applyFormState(a),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(a){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(a){this._onChange.push(a)}_unregisterOnChange(a){Am(this._onChange,a)}registerOnDisabledChange(a){this._onDisabledChange.push(a)}_unregisterOnDisabledChange(a){Am(this._onDisabledChange,a)}_forEachChild(a){}_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(a){tb(a)?(this.value=this._pendingValue=a.value,a.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=a}},Js=zo,uC={provide:os,useExisting:(0,i.Gpc)(()=>ka)},ym=(()=>Promise.resolve(null))();let ka=(()=>{class n extends os{constructor(e,t,r,l,c){super(),this._changeDetectorRef=c,this.control=new zo,this._registered=!1,this.update=new i.vpe,this._parent=e,this._setValidators(t),this._setAsyncValidators(r),this.valueAccessor=Tp(0,l)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const t=e.name.previousValue;this.formDirective.removeControl({name:t,path:this._getPath(t)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),Iu(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_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(){ku(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(e){ym.then(()=>{var t;this.control.setValue(e,{emitViewToModelChange:!1}),null===(t=this._changeDetectorRef)||void 0===t||t.markForCheck()})}_updateDisabled(e){const t=e.isDisabled.currentValue,r=0!==t&&(0,i.D6c)(t);ym.then(()=>{var l;r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),null===(l=this._changeDetectorRef)||void 0===l||l.markForCheck()})}_getPath(e){return this._parent?Fo(e,this._parent):[e]}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Jt,9),i.Y36(Fn,10),i.Y36(No,10),i.Y36(sr,10),i.Y36(i.sBO,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[i._Bn([uC]),i.qOj,i.TTD]}),n})(),Mm=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),n})();const hC={provide:sr,useExisting:(0,i.Gpc)(()=>$c),multi:!0};let $c=(()=>{class n extends ql{writeValue(e){this.setProperty("value",e??"")}registerOnChange(e){this.onChange=t=>{e(""==t?null:parseFloat(t))}}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,t){1&e&&i.NdJ("input",function(l){return t.onChange(l.target.value)})("blur",function(){return t.onTouched()})},features:[i._Bn([hC]),i.qOj]}),n})(),xp=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();const Sp=new i.OlP("NgModelWithFormControlWarning"),Zc={provide:os,useExisting:(0,i.Gpc)(()=>aa)};let aa=(()=>{class n extends os{constructor(e,t,r,l){super(),this._ngModelWarningConfig=l,this.update=new i.vpe,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(t),this.valueAccessor=Tp(0,r)}set isDisabled(e){}ngOnChanges(e){if(this._isControlChanged(e)){const t=e.form.previousValue;t&&Cp(t,this,!1),ku(this.form,this),this.form.updateValueAndValidity({emitEvent:!1})}Iu(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Cp(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}}return n._ngModelWarningSentOnce=!1,n.\u0275fac=function(e){return new(e||n)(i.Y36(Fn,10),i.Y36(No,10),i.Y36(sr,10),i.Y36(Sp,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[i._Bn([Zc]),i.qOj,i.TTD]}),n})();const mC={provide:Jt,useExisting:(0,i.Gpc)(()=>jo)};let jo=(()=>{class n extends Jt{constructor(e,t){super(),this.validators=e,this.asyncValidators=t,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new i.vpe,this._setValidators(e),this._setAsyncValidators(t)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Ou(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const t=this.form.get(e.path);return ku(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){Cp(e.control||null,e,!1),function oC(n,a){const e=n.indexOf(a);e>-1&&n.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,t){this.form.get(e.path).setValue(t)}onSubmit(e){return this.submitted=!0,bm(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const t=e.control,r=this.form.get(e.path);t!==r&&(Cp(t||null,e),(n=>n instanceof zo)(r)&&(ku(r,e),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const t=this.form.get(e.path);gm(t,e),t.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const t=this.form.get(e.path);t&&function nC(n,a){return Ou(n,a)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){mm(this.form,this),this._oldForm&&Ou(this._oldForm,this)}_checkFormPresent(){}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Fn,10),i.Y36(No,10))},n.\u0275dir=i.lG2({type:n,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&i.NdJ("submit",function(l){return t.onSubmit(l)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i._Bn([mC]),i.qOj,i.TTD]}),n})();const _C={provide:os,useExisting:(0,i.Gpc)(()=>Jc)};let Jc=(()=>{class n extends os{constructor(e,t,r,l,c){super(),this._ngModelWarningConfig=c,this._added=!1,this.update=new i.vpe,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(t),this._setAsyncValidators(r),this.valueAccessor=Tp(0,l)}set isDisabled(e){}ngOnChanges(e){this._added||this._setUpControl(),Iu(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return Fo(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._added=!0}}return n._ngModelWarningSentOnce=!1,n.\u0275fac=function(e){return new(e||n)(i.Y36(Jt,13),i.Y36(Fn,10),i.Y36(No,10),i.Y36(sr,10),i.Y36(Sp,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[i._Bn([_C]),i.qOj,i.TTD]}),n})(),Qc=(()=>{class n{constructor(){this._validator=Wc}ngOnChanges(e){if(this.inputName in e){const t=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(t),this._validator=this._enabled?this.createValidator(t):Wc,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,features:[i.TTD]}),n})();const _b={provide:Fn,useExisting:(0,i.Gpc)(()=>qr),multi:!0};let qr=(()=>{class n extends Qc{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=i.D6c,this.createValidator=e=>X0}enabled(e){return e}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&i.uIk("required",t._enabled?"":null)},inputs:{required:"required"},features:[i._Bn([_b]),i.qOj]}),n})(),Sm=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[xp]}),n})(),Hp=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[Sm]}),n})(),qo=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:Sp,useValue:e.warnOnNgModelWithFormControl}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[Sm]}),n})();class Em extends pm{constructor(a,e,t){super(cm(e),um(t,e)),this.controls=a,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(a){return this.controls[this._adjustIndex(a)]}push(a,e={}){this.controls.push(a),this._registerControl(a),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(a,e,t={}){this.controls.splice(a,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:t.emitEvent})}removeAt(a,e={}){let t=this._adjustIndex(a);t<0&&(t=0),this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(a,e,t={}){let r=this._adjustIndex(a);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(a,e={}){Jw(this,0,a),a.forEach((t,r)=>{Zw(this,!1,r),this.at(r).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(a,e={}){null!=a&&(a.forEach((t,r)=>{this.at(r)&&this.at(r).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(a=[],e={}){this._forEachChild((t,r)=>{t.reset(a[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(a=>a.getRawValue())}clear(a={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:a.emitEvent}))}_adjustIndex(a){return a<0?a+this.length:a}_syncPendingControls(){let a=this.controls.reduce((e,t)=>!!t._syncPendingControls()||e,!1);return a&&this.updateValueAndValidity({onlySelf:!0}),a}_forEachChild(a){this.controls.forEach((e,t)=>{a(e,t)})}_updateValue(){this.value=this.controls.filter(a=>a.enabled||this.disabled).map(a=>a.value)}_anyControls(a){return this.controls.some(e=>e.enabled&&a(e))}_setUpControls(){this._forEachChild(a=>this._registerControl(a))}_allControlsDisabled(){for(const a of this.controls)if(a.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(a){a.setParent(this),a._registerOnCollectionChange(this._onCollectionChange)}_find(a){var e;return null!==(e=this.at(a))&&void 0!==e?e:null}}function wb(n){return!!n&&(void 0!==n.asyncValidators||void 0!==n.validators||void 0!==n.updateOn)}let LC=(()=>{class n{constructor(){this.useNonNullable=!1}get nonNullable(){const e=new n;return e.useNonNullable=!0,e}group(e,t=null){const r=this._reduceControls(e);let l={};return wb(t)?l=t:null!==t&&(l.validators=t.validator,l.asyncValidators=t.asyncValidator),new Ru(r,l)}control(e,t,r){let l={};return this.useNonNullable?(wb(t)?l=t:(l.validators=t,l.asyncValidators=r),new zo(e,{...l,nonNullable:!0})):new zo(e,t,r)}array(e,t,r){const l=e.map(c=>this._createControl(c));return new Em(l,t,r)}_reduceControls(e){const t={};return Object.keys(e).forEach(r=>{t[r]=this._createControl(e[r])}),t}_createControl(e){return e instanceof zo||e instanceof pm?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:qo}),n})(),Cb=(()=>{class n extends LC{group(e,t=null){return super.group(e,t)}control(e,t,r){return super.control(e,t,r)}array(e,t,r){return super.array(e,t,r)}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:qo}),n})();const ls=["trigger"],PC=["panel"];function Pp(n,a){if(1&n&&(i.TgZ(0,"span",8),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Oqu(e.placeholder)}}function Vu(n,a){if(1&n&&(i.TgZ(0,"span",12),i._uU(1),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Oqu(e.triggerValue)}}function RC(n,a){1&n&&i.Hsn(0,0,["*ngSwitchCase","true"])}function kC(n,a){if(1&n&&(i.TgZ(0,"span",9),i.YNc(1,Vu,2,1,"span",10),i.YNc(2,RC,1,0,"ng-content",11),i.qZA()),2&n){const e=i.oxw();i.Q6J("ngSwitch",!!e.customTrigger),i.xp6(2),i.Q6J("ngSwitchCase",!0)}}function OC(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",13)(1,"div",14,15),i.NdJ("@transformPanel.done",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l._panelDoneAnimatingStream.next(r.toState))})("keydown",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l._handleKeydown(r))}),i.Hsn(3,1),i.qZA()()}if(2&n){const e=i.oxw();i.Q6J("@transformPanelWrap",void 0),i.xp6(1),i.Gre("mat-select-panel ",e._getPanelTheme(),""),i.Udp("transform-origin",e._transformOrigin)("font-size",e._triggerFontSize,"px"),i.Q6J("ngClass",e.panelClass)("@transformPanel",e.multiple?"showing-multiple":"showing"),i.uIk("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}const Rp=[[["mat-select-trigger"]],"*"],kp=["mat-select-trigger","*"],Tb={transformPanelWrap:yi("transformPanelWrap",[Rt("* => void",Sr("@transformPanel",[mp()],{optional:!0}))]),transformPanel:yi("transformPanel",[It("void",Le({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),It("showing",Le({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),It("showing-multiple",Le({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),Rt("void => *",Ht("120ms cubic-bezier(0, 0, 0.2, 1)")),Rt("* => void",Ht("100ms 25ms linear",Le({opacity:0})))])};let Op=0;const Dm=new i.OlP("mat-select-scroll-strategy"),Lm=new i.OlP("MAT_SELECT_CONFIG"),VC={provide:Dm,deps:[ar],useFactory:function Hm(n){return()=>n.scrollStrategies.reposition()}};class FC{constructor(a,e){this.source=a,this.value=e}}const zC=xr(kl(is(Zh(class{constructor(n,a,e,t,r){this._elementRef=n,this._defaultErrorStateMatcher=a,this._parentForm=e,this._parentFormGroup=t,this.ngControl=r,this.stateChanges=new Ee.x}})))),jC=new i.OlP("MatSelectTrigger");let Pm=(()=>{class n extends zC{constructor(e,t,r,l,c,s,o,d,u,h,f,b,B,X){var he,Pe,bt;super(c,l,o,d,h),this._viewportRuler=e,this._changeDetectorRef=t,this._ngZone=r,this._dir=s,this._parentFormField=u,this._liveAnnouncer=B,this._defaultOptions=X,this._panelOpen=!1,this._compareWith=(kt,qt)=>kt===qt,this._uid="mat-select-"+Op++,this._triggerAriaLabelledBy=null,this._destroy=new Ee.x,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+Op++,this._panelDoneAnimatingStream=new Ee.x,this._overlayPanelClass=(null===(he=this._defaultOptions)||void 0===he?void 0:he.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=null!==(Pe=null===(bt=this._defaultOptions)||void 0===bt?void 0:bt.disableOptionCentering)&&void 0!==Pe&&Pe,this.ariaLabel="",this.optionSelectionChanges=Di(()=>{const kt=this.options;return kt?kt.changes.pipe(Hi(kt),(0,mi.w)(()=>(0,Li.T)(...kt.map(qt=>qt.onSelectionChange)))):this._ngZone.onStable.pipe((0,ct.q)(1),(0,mi.w)(()=>this.optionSelectionChanges))}),this.openedChange=new i.vpe,this._openedStream=this.openedChange.pipe((0,ye.h)(kt=>kt),(0,At.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,ye.h)(kt=>!kt),(0,At.U)(()=>{})),this.selectionChange=new i.vpe,this.valueChange=new i.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=X?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=X.typeaheadDebounceInterval),this._scrollStrategyFactory=b,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(f)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get required(){var e,t,r,l;return null!==(e=null!==(t=this._required)&&void 0!==t?t:null===(r=this.ngControl)||void 0===r||null===(l=r.control)||void 0===l?void 0:l.hasValidator(yn.required))&&void 0!==e&&e}set required(e){this._required=Fe(e),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._multiple=Fe(e)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(e){this._disableOptionCentering=Fe(e)}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(e){this._typeaheadDebounceInterval=Vi(e)}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new Vn(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Xd(),nt(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(nt(this._destroy)).subscribe(e=>{e.added.forEach(t=>t.select()),e.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(Hi(null),nt(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const e=this._getTriggerAriaLabelledby(),t=this.ngControl;if(e!==this._triggerAriaLabelledBy){const r=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?r.setAttribute("aria-labelledby",e):r.removeAttribute("aria-labelledby")}t&&(this._previousControl!==t.control&&(void 0!==this._previousControl&&null!==t.disabled&&t.disabled!==this.disabled&&(this.disabled=t.disabled),this._previousControl=t.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.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(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){var e,t;return this.multiple?(null===(e=this._selectionModel)||void 0===e?void 0:e.selected)||[]:null===(t=this._selectionModel)||void 0===t?void 0:t.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const e=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){const t=e.keyCode,r=40===t||38===t||37===t||39===t,l=13===t||32===t,c=this._keyManager;if(!c.isTyping()&&l&&!Bn(e)||(this.multiple||e.altKey)&&r)e.preventDefault(),this.open();else if(!this.multiple){const s=this.selected;c.onKeydown(e);const o=this.selected;o&&s!==o&&this._liveAnnouncer.announce(o.viewValue,1e4)}}_handleOpenKeydown(e){const t=this._keyManager,r=e.keyCode,l=40===r||38===r,c=t.isTyping();if(l&&e.altKey)e.preventDefault(),this.close();else if(c||13!==r&&32!==r||!t.activeItem||Bn(e))if(!c&&this._multiple&&65===r&&e.ctrlKey){e.preventDefault();const s=this.options.some(o=>!o.disabled&&!o.selected);this.options.forEach(o=>{o.disabled||(s?o.select():o.deselect())})}else{const s=t.activeItemIndex;t.onKeydown(e),this._multiple&&l&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==s&&t.activeItem._selectViaInteraction()}else e.preventDefault(),t.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((0,ct.q)(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.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this._selectionModel.selected.forEach(t=>t.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(t=>this._selectOptionByValue(t)),this._sortValues();else{const t=this._selectOptionByValue(e);t?this._keyManager.updateActiveItem(t):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){const t=this.options.find(r=>{if(this._selectionModel.isSelected(r))return!1;try{return null!=r.value&&this._compareWith(r.value,e)}catch{return!1}});return t&&this._selectionModel.select(t),t}_assignValue(e){return!!(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e,!0)}_initKeyManager(){this._keyManager=new RM(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(nt(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(nt(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 e=(0,Li.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(nt(e)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,Li.T)(...this.options.map(t=>t._stateChanges)).pipe(nt(e)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(e,t){const r=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(r!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),r!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const e=this.options.toArray();this._selectionModel.sort((t,r)=>this.sortComparator?this.sortComparator(t,r,e):e.indexOf(t)-e.indexOf(r)),this.stateChanges.next()}}_propagateChanges(e){let t=null;t=this.multiple?this.selected.map(r=>r.value):this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(this._getChangeEvent(t)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var e;return!this._panelOpen&&!this.disabled&&(null===(e=this.options)||void 0===e?void 0:e.length)>0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){var e;if(this.ariaLabel)return null;const t=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId();return this.ariaLabelledby?(t?t+" ":"")+this.ariaLabelledby:t}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var e;if(this.ariaLabel)return null;const t=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId();let r=(t?t+" ":"")+this._valueId;return this.ariaLabelledby&&(r+=" "+this.ariaLabelledby),r}_panelDoneAnimating(e){this.openedChange.emit(e)}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ys),i.Y36(i.sBO),i.Y36(i.R0b),i.Y36(qs),i.Y36(i.SBq),i.Y36(Sn,8),i.Y36($l,8),i.Y36(jo,8),i.Y36(Tu,8),i.Y36(os,10),i.$8M("tabindex"),i.Y36(Dm),i.Y36(l0),i.Y36(Lm,8))},n.\u0275dir=i.lG2({type:n,viewQuery:function(e,t){if(1&e&&(i.Gf(ls,5),i.Gf(PC,5),i.Gf(B0,5)),2&e){let r;i.iGM(r=i.CRH())&&(t.trigger=r.first),i.iGM(r=i.CRH())&&(t.panel=r.first),i.iGM(r=i.CRH())&&(t._overlayDir=r.first)}},inputs:{userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[i.qOj,i.TTD]}),n})(),Fu=(()=>{class n extends Pm{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(e,t,r){const l=this._getItemHeight();return Math.min(Math.max(0,l*e-t+l/2),r)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(nt(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((0,ct.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(e){const t=A0(e,this.options,this.optionGroups),r=this._getItemHeight();this.panel.nativeElement.scrollTop=0===e&&1===t?0:Q1((e+t)*r,r,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(e){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(e)}_getChangeEvent(e){return new FC(this,e)}_calculateOverlayOffsetX(){const e=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),t=this._viewportRuler.getViewportSize(),r=this._isRtl(),l=this.multiple?56:32;let c;if(this.multiple)c=40;else if(this.disableOptionCentering)c=16;else{let d=this._selectionModel.selected[0]||this.options.first;c=d&&d.group?32:16}r||(c*=-1);const s=0-(e.left+c-(r?l:0)),o=e.right+c-t.width+(r?0:l);s>0?c+=s+8:o>0&&(c-=o+8),this._overlayDir.offsetX=Math.round(c),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(e,t,r){const l=this._getItemHeight(),c=(l-this._triggerRect.height)/2,s=Math.floor(256/l);let o;return this.disableOptionCentering?0:(o=0===this._scrollTop?e*l:this._scrollTop===r?(e-(this._getItemCount()-s))*l+(l-(this._getItemCount()*l-256)%l):t-l/2,Math.round(-1*o-c))}_checkOverlayWithinViewport(e){const t=this._getItemHeight(),r=this._viewportRuler.getViewportSize(),l=this._triggerRect.top-8,c=r.height-this._triggerRect.bottom-8,s=Math.abs(this._offsetY),d=Math.min(this._getItemCount()*t,256)-s-this._triggerRect.height;d>c?this._adjustPanelUp(d,c):s>l?this._adjustPanelDown(s,l,e):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(e,t){const r=Math.round(e-t);this._scrollTop-=r,this._offsetY-=r,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(e,t,r){const l=Math.round(e-t);if(this._scrollTop+=l,this._offsetY+=l,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=r)return this._scrollTop=r,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const e=this._getItemHeight(),t=this._getItemCount(),r=Math.min(t*e,256),c=t*e-r;let s;s=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),s+=A0(s,this.options,this.optionGroups);const o=r/2;this._scrollTop=this._calculateOverlayScroll(s,o,c),this._offsetY=this._calculateOverlayOffsetY(s,o,c),this._checkOverlayWithinViewport(c)}_getOriginBasedOnOption(){const e=this._getItemHeight(),t=(e-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-t+e/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-select"]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,jC,5),i.Suo(r,Lo,5),i.Suo(r,np,5)),2&e){let l;i.iGM(l=i.CRH())&&(t.customTrigger=l.first),i.iGM(l=i.CRH())&&(t.options=l),i.iGM(l=i.CRH())&&(t.optionGroups=l)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:19,hostBindings:function(e,t){1&e&&i.NdJ("keydown",function(l){return t._handleKeydown(l)})("focus",function(){return t._onFocus()})("blur",function(){return t._onBlur()}),2&e&&(i.uIk("id",t.id)("tabindex",t.tabIndex)("aria-controls",t.panelOpen?t.id+"-panel":null)("aria-expanded",t.panelOpen)("aria-label",t.ariaLabel||null)("aria-required",t.required.toString())("aria-disabled",t.disabled.toString())("aria-invalid",t.errorState)("aria-activedescendant",t._getAriaActiveDescendant()),i.ekj("mat-select-disabled",t.disabled)("mat-select-invalid",t.errorState)("mat-select-required",t.required)("mat-select-empty",t.empty)("mat-select-multiple",t.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[i._Bn([{provide:vu,useExisting:n},{provide:ip,useExisting:n}]),i.qOj],ngContentSelectors:kp,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 mat-select-min-line",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","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(e,t){if(1&e&&(i.F$t(Rp),i.TgZ(0,"div",0,1),i.NdJ("click",function(){return t.toggle()}),i.TgZ(3,"div",2),i.YNc(4,Pp,2,1,"span",3),i.YNc(5,kC,3,2,"span",4),i.qZA(),i.TgZ(6,"div",5),i._UZ(7,"div",6),i.qZA()(),i.YNc(8,OC,4,14,"ng-template",7),i.NdJ("backdropClick",function(){return t.close()})("attach",function(){return t._onAttached()})("detach",function(){return t.close()})),2&e){const r=i.MAs(1);i.uIk("aria-owns",t.panelOpen?t.id+"-panel":null),i.xp6(3),i.Q6J("ngSwitch",t.empty),i.uIk("id",t._valueId),i.xp6(1),i.Q6J("ngSwitchCase",!0),i.xp6(1),i.Q6J("ngSwitchCase",!1),i.xp6(3),i.Q6J("cdkConnectedOverlayPanelClass",t._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",t._scrollStrategy)("cdkConnectedOverlayOrigin",r)("cdkConnectedOverlayOpen",t.panelOpen)("cdkConnectedOverlayPositions",t._positions)("cdkConnectedOverlayMinWidth",null==t._triggerRect?null:t._triggerRect.width)("cdkConnectedOverlayOffsetY",t._offsetY)}},dependencies:[w.mk,w.RF,w.n9,w.ED,B0,fp],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-select-value{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{height:16px;flex-shrink:0;display:inline-flex;align-items:center}.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 rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;margin:0 4px}.mat-form-field.mat-focused .mat-select-arrow{transform:translateX(0)}.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:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[Tb.transformPanelWrap,Tb.transformPanel]},changeDetection:0}),n})(),id=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[VC],imports:[w.ez,Oo,cu,_t,rs,$s,cu,_t]}),n})();const xb=["tooltip"],Rm="tooltip-panel",km=es({passive:!0}),Eb=new i.OlP("mat-tooltip-scroll-strategy"),nd={provide:Eb,deps:[ar],useFactory:function mr(n){return()=>n.scrollStrategies.reposition({scrollThrottle:20})}},UC=new i.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function GC(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let RS=(()=>{class n{constructor(e,t,r,l,c,s,o,d,u,h,f,b){this._overlay=e,this._elementRef=t,this._scrollDispatcher=r,this._viewContainerRef=l,this._ngZone=c,this._platform=s,this._ariaDescriber=o,this._focusMonitor=d,this._dir=h,this._defaultOptions=f,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new Ee.x,this._scrollStrategy=u,this._document=b,f&&(f.position&&(this.position=f.position),f.touchGestures&&(this.touchGestures=f.touchGestures)),h.change.pipe(nt(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(e){var t;e!==this._position&&(this._position=e,this._overlayRef)&&(this._updatePosition(this._overlayRef),null===(t=this._tooltipInstance)||void 0===t||t.show(0),this._overlayRef.updatePosition())}get disabled(){return this._disabled}set disabled(e){this._disabled=Fe(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=Vi(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=Vi(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).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,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(nt(this._destroyed)).subscribe(e=>{e?"keyboard"===e&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([t,r])=>{e.removeEventListener(t,r,km)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const t=this._createOverlay();this._detach(),this._portal=this._portal||new Ws(this._tooltipComponent,this._viewContainerRef);const r=this._tooltipInstance=t.attach(this._portal).instance;r._triggerElement=this._elementRef.nativeElement,r._mouseLeaveHideDelay=this._hideDelay,r.afterHidden().pipe(nt(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),r.show(e)}hide(e=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(e)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){var e;if(this._overlayRef)return this._overlayRef;const t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),r=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(t);return r.positionChanges.pipe(nt(this._destroyed)).subscribe(l=>{this._updateCurrentPositionClass(l.connectionPair),this._tooltipInstance&&l.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:r,panelClass:`${this._cssClassPrefix}-${Rm}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(nt(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(nt(this._destroyed)).subscribe(()=>{var l;return null===(l=this._tooltipInstance)||void 0===l?void 0:l._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe(nt(this._destroyed)).subscribe(l=>{this._isTooltipVisible()&&27===l.keyCode&&!Bn(l)&&(l.preventDefault(),l.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),null!==(e=this._defaultOptions)&&void 0!==e&&e.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){const t=e.getConfig().positionStrategy,r=this._getOrigin(),l=this._getOverlayPosition();t.withPositions([this._addOffset({...r.main,...l.main}),this._addOffset({...r.fallback,...l.fallback})])}_addOffset(e){return e}_getOrigin(){const e=!this._dir||"ltr"==this._dir.value,t=this.position;let r;"above"==t||"below"==t?r={originX:"center",originY:"above"==t?"top":"bottom"}:"before"==t||"left"==t&&e||"right"==t&&!e?r={originX:"start",originY:"center"}:("after"==t||"right"==t&&e||"left"==t&&!e)&&(r={originX:"end",originY:"center"});const{x:l,y:c}=this._invertPosition(r.originX,r.originY);return{main:r,fallback:{originX:l,originY:c}}}_getOverlayPosition(){const e=!this._dir||"ltr"==this._dir.value,t=this.position;let r;"above"==t?r={overlayX:"center",overlayY:"bottom"}:"below"==t?r={overlayX:"center",overlayY:"top"}:"before"==t||"left"==t&&e||"right"==t&&!e?r={overlayX:"end",overlayY:"center"}:("after"==t||"right"==t&&e||"left"==t&&!e)&&(r={overlayX:"start",overlayY:"center"});const{x:l,y:c}=this._invertPosition(r.overlayX,r.overlayY);return{main:r,fallback:{overlayX:l,overlayY:c}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,ct.q)(1),nt(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,t){return"above"===this.position||"below"===this.position?"top"===t?t="bottom":"bottom"===t&&(t="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:t}}_updateCurrentPositionClass(e){const{overlayY:t,originX:r,originY:l}=e;let c;if(c="center"===t?this._dir&&"rtl"===this._dir.value?"end"===r?"left":"right":"start"===r?"left":"right":"bottom"===t&&"top"===l?"above":"below",c!==this._currentPosition){const s=this._overlayRef;if(s){const o=`${this._cssClassPrefix}-${Rm}-`;s.removePanelClass(o+this._currentPosition),s.addPanelClass(o+c)}this._currentPosition=c}}_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 e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",t=>{var r;const l=t.relatedTarget;(!l||null===(r=this._overlayRef)||void 0===r||!r.overlayElement.contains(l))&&this.hide()}],["wheel",t=>this._wheelListener(t)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const t=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",t],["touchcancel",t])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([t,r])=>{this._elementRef.nativeElement.addEventListener(t,r,km)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const t=this._document.elementFromPoint(e.clientX,e.clientY),r=this._elementRef.nativeElement;t!==r&&!r.contains(t)&&this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const t=this._elementRef.nativeElement,r=t.style;("on"===e||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(r.userSelect=r.msUserSelect=r.webkitUserSelect=r.MozUserSelect="none"),("on"===e||!t.draggable)&&(r.webkitUserDrag="none"),r.touchAction="none",r.webkitTapHighlightColor="transparent"}}}return n.\u0275fac=function(e){i.$Z()},n.\u0275dir=i.lG2({type:n,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),n})(),gr=(()=>{class n extends RS{constructor(e,t,r,l,c,s,o,d,u,h,f,b){super(e,t,r,l,c,s,o,d,u,h,f,b),this._tooltipComponent=Hb}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(ar),i.Y36(i.SBq),i.Y36(Po),i.Y36(i.s_b),i.Y36(i.R0b),i.Y36(Yi),i.Y36(nu),i.Y36(ur),i.Y36(Eb),i.Y36(Sn,8),i.Y36(UC,8),i.Y36(w.K0))},n.\u0275dir=i.lG2({type:n,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[i.qOj]}),n})(),Db=(()=>{class n{constructor(e,t){this._changeDetectorRef=e,this._visibility="initial",this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new Ee.x,this._animationsDisabled="NoopAnimations"===t}show(e){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:e}){(!e||!this._triggerElement.contains(e))&&this.hide(this._mouseLeaveHideDelay)}_onShow(){}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){const t=this._tooltip.nativeElement,r=this._showAnimation,l=this._hideAnimation;if(t.classList.remove(e?l:r),t.classList.add(e?r:l),this._isVisible=e,e&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const c=getComputedStyle(t);("0s"===c.getPropertyValue("animation-duration")||"none"===c.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(t.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.sBO),i.Y36(i.QbO,8))},n.\u0275dir=i.lG2({type:n}),n})(),Hb=(()=>{class n extends Db{constructor(e,t,r){super(e,r),this._breakpointObserver=t,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)"),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.sBO),i.Y36(r0),i.Y36(i.QbO,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-tooltip-component"]],viewQuery:function(e,t){if(1&e&&i.Gf(xb,7),2&e){let r;i.iGM(r=i.CRH())&&(t._tooltip=r.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,t){1&e&&i.NdJ("mouseleave",function(l){return t._handleMouseLeave(l)}),2&e&&i.Udp("zoom",t.isVisible()?1:null)},features:[i.qOj],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(e,t){if(1&e&&(i.TgZ(0,"div",0,1),i.NdJ("animationend",function(l){return t._handleAnimationEnd(l)}),i.ALo(2,"async"),i._uU(3),i.qZA()),2&e){let r;i.ekj("mat-tooltip-handset",null==(r=i.lcZ(2,4,t._isHandset))?null:r.matches),i.Q6J("ngClass",t.tooltipClass),i.xp6(3),i.Oqu(t.message)}},dependencies:[w.mk,w.Ov],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}"],encapsulation:2,changeDetection:0}),n})(),Oa=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[nd],imports:[Rl,w.ez,Oo,_t,_t,rs]}),n})();function Om(n,a){if(1&n&&(i.TgZ(0,"mat-option",19),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.Q6J("value",e),i.xp6(1),i.hij(" ",e," ")}}function $C(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",16)(1,"mat-select",17),i.NdJ("selectionChange",function(r){i.CHM(e);const l=i.oxw(2);return i.KtG(l._changePageSize(r.value))}),i.YNc(2,Om,2,2,"mat-option",18),i.qZA()()}if(2&n){const e=i.oxw(2);i.Q6J("appearance",e._formFieldAppearance)("color",e.color),i.xp6(1),i.Q6J("value",e.pageSize)("disabled",e.disabled)("panelClass",e.selectConfig.panelClass||"")("disableOptionCentering",e.selectConfig.disableOptionCentering)("aria-label",e._intl.itemsPerPageLabel),i.xp6(1),i.Q6J("ngForOf",e._displayedPageSizeOptions)}}function Lb(n,a){if(1&n&&(i.TgZ(0,"div",20),i._uU(1),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Oqu(e.pageSize)}}function ZC(n,a){if(1&n&&(i.TgZ(0,"div",12)(1,"div",13),i._uU(2),i.qZA(),i.YNc(3,$C,3,8,"mat-form-field",14),i.YNc(4,Lb,2,1,"div",15),i.qZA()),2&n){const e=i.oxw();i.xp6(2),i.hij(" ",e._intl.itemsPerPageLabel," "),i.xp6(1),i.Q6J("ngIf",e._displayedPageSizeOptions.length>1),i.xp6(1),i.Q6J("ngIf",e._displayedPageSizeOptions.length<=1)}}function JC(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",21),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.firstPage())}),i.O4$(),i.TgZ(1,"svg",7),i._UZ(2,"path",22),i.qZA()()}if(2&n){const e=i.oxw();i.Q6J("matTooltip",e._intl.firstPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),i.uIk("aria-label",e._intl.firstPageLabel)}}function rd(n,a){if(1&n){const e=i.EpF();i.O4$(),i.kcU(),i.TgZ(0,"button",23),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.lastPage())}),i.O4$(),i.TgZ(1,"svg",7),i._UZ(2,"path",24),i.qZA()()}if(2&n){const e=i.oxw();i.Q6J("matTooltip",e._intl.lastPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),i.uIk("aria-label",e._intl.lastPageLabel)}}let Bp=(()=>{class n{constructor(){this.changes=new Ee.x,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(e,t,r)=>{if(0==r||0==t)return`0 of ${r}`;const l=e*t;return`${l+1} \u2013 ${l<(r=Math.max(r,0))?Math.min(l+t,r):l+t} of ${r}`}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Pb={provide:Bp,deps:[[new i.FiY,new i.tp0,Bp]],useFactory:function Im(n){return n||new Bp}},Nm=new i.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),OS=is(Jh(class{}));let kb=(()=>{class n extends OS{constructor(e,t,r){if(super(),this._intl=e,this._changeDetectorRef=t,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.selectConfig={},this.page=new i.vpe,this._intlChanges=e.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),r){const{pageSize:l,pageSizeOptions:c,hidePageSize:s,showFirstLastButtons:o}=r;null!=l&&(this._pageSize=l),null!=c&&(this._pageSizeOptions=c),null!=s&&(this._hidePageSize=s),null!=o&&(this._showFirstLastButtons=o)}}get pageIndex(){return this._pageIndex}set pageIndex(e){this._pageIndex=Math.max(Vi(e),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(e){this._length=Vi(e),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(e){this._pageSize=Math.max(Vi(e),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(e){this._pageSizeOptions=(e||[]).map(t=>Vi(t)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(e){this._hidePageSize=Fe(e)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(e){this._showFirstLastButtons=Fe(e)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const e=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(e)}previousPage(){if(!this.hasPreviousPage())return;const e=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(e)}firstPage(){if(!this.hasPreviousPage())return;const e=this.pageIndex;this.pageIndex=0,this._emitPageEvent(e)}lastPage(){if(!this.hasNextPage())return;const e=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(e)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const e=this.getNumberOfPages()-1;return this.pageIndexe-t),this._changeDetectorRef.markForCheck())}_emitPageEvent(e){this.page.emit({previousPageIndex:e,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return n.\u0275fac=function(e){i.$Z()},n.\u0275dir=i.lG2({type:n,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",selectConfig:"selectConfig"},outputs:{page:"page"},features:[i.qOj]}),n})(),Ob=(()=>{class n extends kb{constructor(e,t,r){super(e,t,r),r&&null!=r.formFieldAppearance&&(this._formFieldAppearance=r.formFieldAppearance)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Bp),i.Y36(i.sBO),i.Y36(Nm,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[i.qOj],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","panelClass","disableOptionCentering","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(e,t){1&e&&(i.TgZ(0,"div",0)(1,"div",1),i.YNc(2,ZC,5,3,"div",2),i.TgZ(3,"div",3)(4,"div",4),i._uU(5),i.qZA(),i.YNc(6,JC,3,5,"button",5),i.TgZ(7,"button",6),i.NdJ("click",function(){return t.previousPage()}),i.O4$(),i.TgZ(8,"svg",7),i._UZ(9,"path",8),i.qZA()(),i.kcU(),i.TgZ(10,"button",9),i.NdJ("click",function(){return t.nextPage()}),i.O4$(),i.TgZ(11,"svg",7),i._UZ(12,"path",10),i.qZA()(),i.YNc(13,rd,3,5,"button",11),i.qZA()()()),2&e&&(i.xp6(2),i.Q6J("ngIf",!t.hidePageSize),i.xp6(3),i.hij(" ",t._intl.getRangeLabel(t.pageIndex,t.pageSize,t.length)," "),i.xp6(1),i.Q6J("ngIf",t.showFirstLastButtons),i.xp6(1),i.Q6J("matTooltip",t._intl.previousPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("matTooltipPosition","above")("disabled",t._previousButtonsDisabled()),i.uIk("aria-label",t._intl.previousPageLabel),i.xp6(3),i.Q6J("matTooltip",t._intl.nextPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("matTooltipPosition","above")("disabled",t._nextButtonsDisabled()),i.uIk("aria-label",t._intl.nextPageLabel),i.xp6(3),i.Q6J("ngIf",t.showFirstLastButtons))},dependencies:[w.sg,w.O5,Dt,hn,Fu,Lo,gr],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{display:inline-block;width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}"],encapsulation:2,changeDetection:0}),n})(),ad=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[Pb],imports:[w.ez,Nn,id,Oa,_t]}),n})();var Yo=T(1005);const QC=["mat-menu-item",""];function Ib(n,a){1&n&&(i.O4$(),i.TgZ(0,"svg",2),i._UZ(1,"polygon",3),i.qZA())}const Np=["*"];function IS(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",0),i.NdJ("keydown",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l._handleKeydown(r))})("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.closed.emit("click"))})("@transformMenu.start",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l._onAnimationStart(r))})("@transformMenu.done",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l._onAnimationDone(r))}),i.TgZ(1,"div",1),i.Hsn(2),i.qZA()()}if(2&n){const e=i.oxw();i.Q6J("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),i.uIk("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const Vp={transformMenu:yi("transformMenu",[It("void",Le({opacity:0,transform:"scale(0.8)"})),Rt("void => enter",Ht("120ms cubic-bezier(0, 0, 0.2, 1)",Le({opacity:1,transform:"scale(1)"}))),Rt("* => void",Ht("100ms 25ms linear",Le({opacity:0})))]),fadeInItems:yi("fadeInItems",[It("showing",Le({opacity:1})),Rt("void => *",[Le({opacity:0}),Ht("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},XC=new i.OlP("MatMenuContent"),Fp=new i.OlP("MAT_MENU_PANEL"),iv=xr(is(class{}));let sd=(()=>{class n extends iv{constructor(e,t,r,l,c){var s;super(),this._elementRef=e,this._document=t,this._focusMonitor=r,this._parentMenu=l,this._changeDetectorRef=c,this.role="menuitem",this._hovered=new Ee.x,this._focused=new Ee.x,this._highlighted=!1,this._triggersSubmenu=!1,null==l||null===(s=l.addItem)||void 0===s||s.call(l,this)}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),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(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var e;const t=this._elementRef.nativeElement.cloneNode(!0),r=t.querySelectorAll("mat-icon, .material-icons");for(let l=0;l{class n{constructor(e,t,r,l){this._elementRef=e,this._ngZone=t,this._defaultOptions=r,this._changeDetectorRef=l,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new i.n_E,this._tabSubscription=li.w0.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new Ee.x,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new i.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+Bb++}get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(e){this._overlapTrigger=Fe(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=Fe(e)}set panelClass(e){const t=this._previousPanelClass;t&&t.length&&t.split(" ").forEach(r=>{this._classList[r]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(r=>{this._classList[r]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(e){this.panelClass=e}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new Yh(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Hi(this._directDescendantItems),(0,mi.w)(e=>(0,Li.T)(...e.map(t=>t._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{var t;const r=this._keyManager;if("enter"===this._panelAnimationState&&null!==(t=r.activeItem)&&void 0!==t&&t._hasFocus()){const l=e.toArray(),c=Math.max(0,Math.min(l.length-1,r.activeItemIndex||0));l[c]&&!l[c].disabled?r.setActiveItem(c):r.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(Hi(this._directDescendantItems),(0,mi.w)(t=>(0,Li.T)(...t.map(r=>r._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const t=e.keyCode,r=this._keyManager;switch(t){case 27:Bn(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(38===t||40===t)&&r.setFocusOrigin("keyboard"),void r.onKeydown(e)}e.stopPropagation()}focusFirstItem(e="program"){this._ngZone.onStable.pipe((0,ct.q)(1)).subscribe(()=>{let t=null;if(this._directDescendantItems.length&&(t=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!t||!t.contains(document.activeElement)){const r=this._keyManager;r.setFocusOrigin(e).setFirstItemActive(),!r.activeItem&&t&&t.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const t=Math.min(this._baseElevation+e,24),r=`${this._elevationPrefix}${t}`,l=Object.keys(this._classList).find(c=>c.startsWith(this._elevationPrefix));(!l||l===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[r]=!0,this._previousElevation=r)}setPositionClasses(e=this.xPosition,t=this.yPosition){var r;const l=this._classList;l["mat-menu-before"]="before"===e,l["mat-menu-after"]="after"===e,l["mat-menu-above"]="above"===t,l["mat-menu-below"]="below"===t,null===(r=this._changeDetectorRef)||void 0===r||r.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(Hi(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(Vm),i.Y36(i.sBO))},n.\u0275dir=i.lG2({type:n,contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,XC,5),i.Suo(r,sd,5),i.Suo(r,sd,4)),2&e){let l;i.iGM(l=i.CRH())&&(t.lazyContent=l.first),i.iGM(l=i.CRH())&&(t._allItems=l),i.iGM(l=i.CRH())&&(t.items=l)}},viewQuery:function(e,t){if(1&e&&i.Gf(i.Rgc,5),2&e){let r;i.iGM(r=i.CRH())&&(t.templateRef=r.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),n})(),zp=(()=>{class n extends od{constructor(e,t,r,l){super(e,t,r,l),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(Vm),i.Y36(i.sBO))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,t){2&e&&i.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[i._Bn([{provide:Fp,useExisting:n}]),i.qOj],ngContentSelectors:Np,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(e,t){1&e&&(i.F$t(),i.YNc(0,IS,3,6,"ng-template"))},dependencies:[w.mk],styles:['mat-menu{display:none}.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;position:relative}.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;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}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}'],encapsulation:2,data:{animation:[Vp.transformMenu,Vp.fadeInItems]},changeDetection:0}),n})();const Fm=new i.OlP("mat-menu-scroll-strategy"),av={provide:Fm,deps:[ar],useFactory:function rv(n){return()=>n.scrollStrategies.reposition()}},zm=es({passive:!0});let FS=(()=>{class n{constructor(e,t,r,l,c,s,o,d,u){this._overlay=e,this._element=t,this._viewContainerRef=r,this._menuItemInstance=s,this._dir=o,this._focusMonitor=d,this._ngZone=u,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=li.w0.EMPTY,this._hoverSubscription=li.w0.EMPTY,this._menuCloseSubscription=li.w0.EMPTY,this._handleTouchStart=h=>{zs(h)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new i.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new i.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=l,this._parentMaterialMenu=c instanceof od?c:void 0,t.nativeElement.addEventListener("touchstart",this._handleTouchStart,zm),s&&(s._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(t=>{this._destroyMenu(t),("click"===t||"tab"===t)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(t)})))}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,zm),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(){const e=this.menu;if(this._menuOpen||!e)return;const t=this._createOverlay(e),r=t.getConfig(),l=r.positionStrategy;this._setPosition(e,l),r.hasBackdrop=e.hasBackdrop??!this.triggersSubmenu(),t.attach(this._getPortal(e)),e.lazyContent&&e.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(e),e instanceof od&&(e._startAnimation(),e._directDescendantItems.changes.pipe(nt(e.close)).subscribe(()=>{l.withLockedPosition(!1).reapplyLastPosition(),l.withLockedPosition(!0)}))}closeMenu(){var e;null===(e=this.menu)||void 0===e||e.close.emit()}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}updatePosition(){var e;null===(e=this._overlayRef)||void 0===e||e.updatePosition()}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;const t=this.menu;var r;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,t instanceof od?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe((0,ye.h)(l=>"void"===l.toState),(0,ct.q)(1),nt(t.lazyContent._attached)).subscribe({next:()=>t.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),null==t||null===(r=t.lazyContent)||void 0===r||r.detach())}_initMenu(e){e.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,e.direction=this.dir,this._setMenuElevation(e),e.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(e){if(e.setElevation){let t=0,r=e.parentMenu;for(;r;)t++,r=r.parentMenu;e.setElevation(t)}}_setIsMenuOpen(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e)}_createOverlay(e){if(!this._overlayRef){const t=this._getOverlayConfig(e);this._subscribeToPositions(e,t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(e){return new Fl({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e,t){e.setPositionClasses&&t.positionChanges.subscribe(r=>{const l="start"===r.connectionPair.overlayX?"after":"before",c="top"===r.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>e.setPositionClasses(l,c)):e.setPositionClasses(l,c)})}_setPosition(e,t){let[r,l]="before"===e.xPosition?["end","start"]:["start","end"],[c,s]="above"===e.yPosition?["bottom","top"]:["top","bottom"],[o,d]=[c,s],[u,h]=[r,l],f=0;if(this.triggersSubmenu()){if(h=r="before"===e.xPosition?"start":"end",l=u="end"===r?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const b=this._parentMaterialMenu.items.first;this._parentInnerPadding=b?b._getHostElement().offsetTop:0}f="bottom"===c?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(o="top"===c?"bottom":"top",d="top"===s?"bottom":"top");t.withPositions([{originX:r,originY:o,overlayX:u,overlayY:c,offsetY:f},{originX:l,originY:o,overlayX:h,overlayY:c,offsetY:f},{originX:r,originY:d,overlayX:u,overlayY:s,offsetY:-f},{originX:l,originY:d,overlayX:h,overlayY:s,offsetY:-f}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),t=this._overlayRef.detachments(),r=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,xe.of)(),l=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,ye.h)(c=>c!==this._menuItemInstance),(0,ye.h)(()=>this._menuOpen)):(0,xe.of)();return(0,Li.T)(e,r,l,t)}_handleMousedown(e){s0(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){const t=e.keyCode;(13===t||32===t)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===t&&"ltr"===this.dir||37===t&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,ye.h)(e=>e===this._menuItemInstance&&!e.disabled),(0,Yo.g)(0,Ea)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof od&&this.menu._isAnimating?this.menu._animationDone.pipe((0,ct.q)(1),(0,Yo.g)(0,Ea),nt(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new Ha(e.templateRef,this._viewContainerRef)),this._portal}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(ar),i.Y36(i.SBq),i.Y36(i.s_b),i.Y36(Fm),i.Y36(Fp,8),i.Y36(sd,10),i.Y36(Sn,8),i.Y36(ur),i.Y36(i.R0b))},n.\u0275dir=i.lG2({type:n,hostVars:3,hostBindings:function(e,t){1&e&&i.NdJ("click",function(l){return t._handleClick(l)})("mousedown",function(l){return t._handleMousedown(l)})("keydown",function(l){return t._handleKeydown(l)}),2&e&&i.uIk("aria-haspopup",t.menu?"menu":null)("aria-expanded",t.menuOpen||null)("aria-controls",t.menuOpen?t.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),n})(),Nb=(()=>{class n extends FS{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[i.qOj]}),n})(),jp=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[av],imports:[w.ez,_t,jr,Oo,rs,_t]}),n})();const zS=["*"];let jm;function qp(n){var a;return(null===(a=function jS(){if(void 0===jm&&(jm=null,typeof window<"u")){const n=window;void 0!==n.trustedTypes&&(jm=n.trustedTypes.createPolicy("angular#components",{createHTML:a=>a}))}return jm}())||void 0===a?void 0:a.createHTML(n))||n}function sv(n){return Error(`Unable to find icon with the name "${n}"`)}function ov(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function qm(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}class cs{constructor(a,e,t){this.url=a,this.svgText=e,this.options=t}}let ld=(()=>{class n{constructor(e,t,r,l){this._httpClient=e,this._sanitizer=t,this._errorHandler=l,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=r}addSvgIcon(e,t,r){return this.addSvgIconInNamespace("",e,t,r)}addSvgIconLiteral(e,t,r){return this.addSvgIconLiteralInNamespace("",e,t,r)}addSvgIconInNamespace(e,t,r,l){return this._addSvgIconConfig(e,t,new cs(r,null,l))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,t,r,l){const c=this._sanitizer.sanitize(i.q3G.HTML,r);if(!c)throw qm(r);const s=qp(c);return this._addSvgIconConfig(e,t,new cs("",s,l))}addSvgIconSet(e,t){return this.addSvgIconSetInNamespace("",e,t)}addSvgIconSetLiteral(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}addSvgIconSetInNamespace(e,t,r){return this._addSvgIconSetConfig(e,new cs(t,null,r))}addSvgIconSetLiteralInNamespace(e,t,r){const l=this._sanitizer.sanitize(i.q3G.HTML,t);if(!l)throw qm(t);const c=qp(l);return this._addSvgIconSetConfig(e,new cs("",c,r))}registerFontClassAlias(e,t=e){return this._fontCssClassesByAlias.set(e,t),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const t=this._sanitizer.sanitize(i.q3G.RESOURCE_URL,e);if(!t)throw ov(e);const r=this._cachedIconsByUrl.get(t);return r?(0,xe.of)(cd(r)):this._loadSvgIconFromConfig(new cs(e,null)).pipe((0,ni.b)(l=>this._cachedIconsByUrl.set(t,l)),(0,At.U)(l=>cd(l)))}getNamedSvgIcon(e,t=""){const r=Ym(t,e);let l=this._svgIconConfigs.get(r);if(l)return this._getSvgFromConfig(l);if(l=this._getIconConfigFromResolvers(t,e),l)return this._svgIconConfigs.set(r,l),this._getSvgFromConfig(l);const c=this._iconSetConfigs.get(t);return c?this._getSvgFromIconSetConfigs(e,c):(0,Rn._)(sv(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?(0,xe.of)(cd(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe((0,At.U)(t=>cd(t)))}_getSvgFromIconSetConfigs(e,t){const r=this._extractIconWithNameFromAnySet(e,t);return r?(0,xe.of)(r):ua(t.filter(c=>!c.svgText).map(c=>this._loadSvgIconSetFromConfig(c).pipe((0,On.K)(s=>{const d=`Loading icon set URL: ${this._sanitizer.sanitize(i.q3G.RESOURCE_URL,c.url)} failed: ${s.message}`;return this._errorHandler.handleError(new Error(d)),(0,xe.of)(null)})))).pipe((0,At.U)(()=>{const c=this._extractIconWithNameFromAnySet(e,t);if(!c)throw sv(e);return c}))}_extractIconWithNameFromAnySet(e,t){for(let r=t.length-1;r>=0;r--){const l=t[r];if(l.svgText&&l.svgText.toString().indexOf(e)>-1){const c=this._svgElementFromConfig(l),s=this._extractSvgIconFromSet(c,e,l.options);if(s)return s}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe((0,ni.b)(t=>e.svgText=t),(0,At.U)(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?(0,xe.of)(null):this._fetchIcon(e).pipe((0,ni.b)(t=>e.svgText=t))}_extractSvgIconFromSet(e,t,r){const l=e.querySelector(`[id="${t}"]`);if(!l)return null;const c=l.cloneNode(!0);if(c.removeAttribute("id"),"svg"===c.nodeName.toLowerCase())return this._setSvgAttributes(c,r);if("symbol"===c.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(c),r);const s=this._svgElementFromString(qp(""));return s.appendChild(c),this._setSvgAttributes(s,r)}_svgElementFromString(e){const t=this._document.createElement("DIV");t.innerHTML=e;const r=t.querySelector("svg");if(!r)throw Error(" tag not found");return r}_toSvgElement(e){const t=this._svgElementFromString(qp("")),r=e.attributes;for(let l=0;lqp(u)),Or(()=>this._inProgressUrlFetches.delete(s)),(0,oo.B)());return this._inProgressUrlFetches.set(s,d),d}_addSvgIconConfig(e,t,r){return this._svgIconConfigs.set(Ym(e,t),r),this}_addSvgIconSetConfig(e,t){const r=this._iconSetConfigs.get(e);return r?r.push(t):this._iconSetConfigs.set(e,[t]),this}_svgElementFromConfig(e){if(!e.svgElement){const t=this._svgElementFromString(e.svgText);this._setSvgAttributes(t,e.options),e.svgElement=t}return e.svgElement}_getIconConfigFromResolvers(e,t){for(let r=0;ra?a.pathname+a.search:""}}}),zb=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Wp=zb.map(n=>`[${n}]`).join(", "),uv=/^url\(['"]?#(.*?)['"]?\)$/;let Ji=(()=>{class n extends Fb{constructor(e,t,r,l,c,s){super(e),this._iconRegistry=t,this._location=l,this._errorHandler=c,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=li.w0.EMPTY,s&&(s.color&&(this.color=this.defaultColor=s.color),s.fontSet&&(this.fontSet=s.fontSet)),r||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=Fe(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const t=this._cleanupFontValue(e);t!==this._fontSet&&(this._fontSet=t,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const t=this._cleanupFontValue(e);t!==this._fontIcon&&(this._fontIcon=t,this._updateFontIconClasses())}_splitIconName(e){if(!e)return["",""];const t=e.split(":");switch(t.length){case 1:return["",t[0]];case 2:return t;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.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(e){this._clearSvgElement();const t=this._location.getPathname();this._previousPath=t,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(t),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let t=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();t--;){const r=e.childNodes[t];(1!==r.nodeType||"svg"===r.nodeName.toLowerCase())&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,t=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(r=>r.length>0);this._previousFontSetClass.forEach(r=>e.classList.remove(r)),t.forEach(r=>e.classList.add(r)),this._previousFontSetClass=t,this.fontIcon!==this._previousFontIconClass&&!t.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return"string"==typeof e?e.trim().split(" ")[0]:e}_prependPathToReferences(e){const t=this._elementsWithExternalReferences;t&&t.forEach((r,l)=>{r.forEach(c=>{l.setAttribute(c.name,`url('${e}#${c.value}')`)})})}_cacheChildrenWithExternalReferences(e){const t=e.querySelectorAll(Wp),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let l=0;l{const s=t[l],o=s.getAttribute(c),d=o?o.match(uv):null;if(d){let u=r.get(s);u||(u=[],r.set(s,u)),u.push({name:c,value:d[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[t,r]=this._splitIconName(e);t&&(this._svgNamespace=t),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,t).pipe((0,ct.q)(1)).subscribe(l=>this._setSvgElement(l),l=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${t}:${r}! ${l.message}`))})}}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(ld),i.$8M("aria-hidden"),i.Y36(cv),i.Y36(i.qLn),i.Y36(qS,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,t){2&e&&(i.uIk("data-mat-icon-type",t._usingFontIcon()?"font":"svg")("data-mat-icon-name",t._svgName||t.fontIcon)("data-mat-icon-namespace",t._svgNamespace||t.fontSet),i.ekj("mat-icon-inline",t.inline)("mat-icon-no-color","primary"!==t.color&&"accent"!==t.color&&"warn"!==t.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[i.qOj],ngContentSelectors:zS,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[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}"],encapsulation:2,changeDetection:0}),n})(),Qs=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[_t,_t]}),n})(),hv=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[ad,jp,Qs,Nn,co,w.ez]}),n})();var pv=T(5861);function fv(n,a){}class Up{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0}}let jb=(()=>{class n extends ko{constructor(e,t,r,l,c,s,o,d){super(),this._elementRef=e,this._focusTrapFactory=t,this._config=l,this._interactivityChecker=c,this._ngZone=s,this._overlayRef=o,this._focusMonitor=d,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=u=>{this._portalOutlet.hasAttached();const h=this._portalOutlet.attachDomPortal(u);return this._contentAttached(),h},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=r}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();const t=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),t}attachTemplatePortal(e){this._portalOutlet.hasAttached();const t=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),t}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const r=()=>{e.removeEventListener("blur",r),e.removeEventListener("mousedown",r),e.removeAttribute("tabindex")};e.addEventListener("blur",r),e.addEventListener("mousedown",r)})),e.focus(t)}_focusByCssSelector(e,t){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,t)}_trapFocus(){const e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(t=>{t||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const e=this._config.restoreFocus;let t=null;if("string"==typeof e?t=this._document.querySelector(e):"boolean"==typeof e?t=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(t=e),this._config.restoreFocus&&t&&"function"==typeof t.focus){const r=Zd(),l=this._elementRef.nativeElement;(!r||r===this._document.body||r===l||l.contains(r))&&(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,t=Zd();return e===t||e.contains(t)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=Zd())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Gh),i.Y36(w.K0,8),i.Y36(Up),i.Y36(Wh),i.Y36(i.R0b),i.Y36(qc),i.Y36(ur))},n.\u0275cmp=i.Xpm({type:n,selectors:[["cdk-dialog-container"]],viewQuery:function(e,t){if(1&e&&i.Gf(Au,7),2&e){let r;i.iGM(r=i.CRH())&&(t._portalOutlet=r.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(e,t){2&e&&i.uIk("id",t._config.id||null)("role",t._config.role)("aria-modal",t._config.ariaModal)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null)},features:[i.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&i.YNc(0,fv,0,0,"ng-template",0)},dependencies:[Au],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),n})();class Gp{constructor(a,e){this.overlayRef=a,this.config=e,this.closed=new Ee.x,this.disableClose=e.disableClose,this.backdropClick=a.backdropClick(),this.keydownEvents=a.keydownEvents(),this.outsidePointerEvents=a.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(t=>{27===t.keyCode&&!this.disableClose&&!Bn(t)&&(t.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(a,e){if(this.containerInstance){const t=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this.overlayRef.dispose(),t.next(a),t.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(a="",e=""){return this.overlayRef.updateSize({width:a,height:e}),this}addPanelClass(a){return this.overlayRef.addPanelClass(a),this}removePanelClass(a){return this.overlayRef.removePanelClass(a),this}}const Wm=new i.OlP("DialogScrollStrategy"),YS=new i.OlP("DialogData"),Ia=new i.OlP("DefaultDialogConfig"),Um={provide:Wm,deps:[ar],useFactory:function mv(n){return()=>n.scrollStrategies.block()}};let gv=0,Er=(()=>{class n{constructor(e,t,r,l,c,s){this._overlay=e,this._injector=t,this._defaultOptions=r,this._parentDialog=l,this._overlayContainer=c,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Ee.x,this._afterOpenedAtThisLevel=new Ee.x,this._ariaHiddenElements=new Map,this.afterAllClosed=Di(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Hi(void 0))),this._scrollStrategy=s}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}open(e,t){(t={...this._defaultOptions||new Up,...t}).id=t.id||"cdk-dialog-"+gv++,t.id&&this.getDialogById(t.id);const l=this._getOverlayConfig(t),c=this._overlay.create(l),s=new Gp(c,t),o=this._attachContainer(c,s,t);return s.containerInstance=o,this._attachDialogContent(e,s,o,t),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(s),s.closed.subscribe(()=>this._removeOpenDialog(s,!0)),this.afterOpened.next(s),s}closeAll(){Gm(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){Gm(this._openDialogsAtThisLevel,e=>{!1===e.config.closeOnDestroy&&this._removeOpenDialog(e,!1)}),Gm(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){const t=new Fl({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}_attachContainer(e,t,r){var l,c;const s=null!==(l=r.injector)&&void 0!==l?l:null===(c=r.viewContainerRef)||void 0===c?void 0:c.injector,o=[{provide:Up,useValue:r},{provide:Gp,useValue:t},{provide:qc,useValue:e}];let d;r.container?"function"==typeof r.container?d=r.container:(d=r.container.type,o.push(...r.container.providers(r))):d=jb;const u=new Ws(d,r.viewContainerRef,i.zs3.create({parent:s||this._injector,providers:o}),r.componentFactoryResolver);return e.attach(u).instance}_attachDialogContent(e,t,r,l){const c=this._createInjector(l,t,r);if(e instanceof i.Rgc){let s={$implicit:l.data,dialogRef:t};l.templateContext&&(s={...s,..."function"==typeof l.templateContext?l.templateContext():l.templateContext}),r.attachTemplatePortal(new Ha(e,null,s,c))}else{const s=r.attachComponentPortal(new Ws(e,l.viewContainerRef,c,l.componentFactoryResolver));t.componentInstance=s.instance}}_createInjector(e,t,r){const l=e&&e.viewContainerRef&&e.viewContainerRef.injector,c=[{provide:YS,useValue:e.data},{provide:Gp,useValue:t}];return e.providers&&("function"==typeof e.providers?c.push(...e.providers(t,e,r)):c.push(...e.providers)),e.direction&&(!l||!l.get(Sn,null,i.XFs.Optional))&&c.push({provide:Sn,useValue:{value:e.direction,change:(0,xe.of)()}}),i.zs3.create({parent:e.injector||l||this._injector,providers:c})}_removeOpenDialog(e,t){const r=this.openDialogs.indexOf(e);r>-1&&(this.openDialogs.splice(r,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((l,c)=>{l?c.setAttribute("aria-hidden",l):c.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),t&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const t=e.parentElement.children;for(let r=t.length-1;r>-1;r--){const l=t[r];l!==e&&"SCRIPT"!==l.nodeName&&"STYLE"!==l.nodeName&&!l.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(l,l.getAttribute("aria-hidden")),l.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(ar),i.LFG(i.zs3),i.LFG(Ia,8),i.LFG(n,12),i.LFG(jc),i.LFG(Wm))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();function Gm(n,a){let e=n.length;for(;e--;)a(n[e])}let $m=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[Er,Um],imports:[Oo,Us,Rl,Us]}),n})();function _v(n,a){}const dd={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},Zm={dialogContainer:yi("dialogContainer",[It("void, exit",Le({opacity:0,transform:"scale(0.7)"})),It("enter",Le({transform:"none"})),Rt("* => enter",Mu([Ht("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",Le({transform:"none",opacity:1})),Sr("@*",mp(),{optional:!0})]),dd),Rt("* => void, * => exit",Mu([Ht("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",Le({opacity:0})),Sr("@*",mp(),{optional:!0})]),dd)])};class ud{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="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0,this.enterAnimationDuration=dd.params.enterAnimationDuration,this.exitAnimationDuration=dd.params.exitAnimationDuration}}let qb=(()=>{class n extends jb{constructor(e,t,r,l,c,s,o,d){super(e,t,r,l,c,s,o,d),this._animationStateChanged=new i.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Gh),i.Y36(w.K0,8),i.Y36(ud),i.Y36(Wh),i.Y36(i.R0b),i.Y36(qc),i.Y36(ur))},n.\u0275cmp=i.Xpm({type:n,selectors:[["ng-component"]],features:[i.qOj],decls:0,vars:0,template:function(e,t){},encapsulation:2}),n})(),bv=(()=>{class n extends qb{constructor(e,t,r,l,c,s,o,d,u){super(e,t,r,l,c,s,o,u),this._changeDetectorRef=d,this._state="enter"}_onAnimationDone({toState:e,totalTime:t}){"enter"===e?this._openAnimationDone(t):"exit"===e&&this._animationStateChanged.next({state:"closed",totalTime:t})}_onAnimationStart({toState:e,totalTime:t}){"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:t}):("exit"===e||"void"===e)&&this._animationStateChanged.next({state:"closing",totalTime:t})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||dd.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||dd.params.exitAnimationDuration}}}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Gh),i.Y36(w.K0,8),i.Y36(ud),i.Y36(Wh),i.Y36(i.R0b),i.Y36(qc),i.Y36(i.sBO),i.Y36(ur))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(e,t){1&e&&i.WFA("@dialogContainer.start",function(l){return t._onAnimationStart(l)})("@dialogContainer.done",function(l){return t._onAnimationDone(l)}),2&e&&(i.Ikx("id",t._config.id),i.uIk("aria-modal",t._config.ariaModal)("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),i.d8E("@dialogContainer",t._getAnimationState()))},features:[i.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&i.YNc(0,_v,0,0,"ng-template",0)},dependencies:[Au],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.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.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}"],encapsulation:2,data:{animation:[Zm.dialogContainer]}}),n})();class xi{constructor(a,e,t){this._ref=a,this._containerInstance=t,this._afterOpened=new Ee.x,this._beforeClosed=new Ee.x,this._state=0,this.disableClose=e.disableClose,this.id=a.id,t._animationStateChanged.pipe((0,ye.h)(r=>"opened"===r.state),(0,ct.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),t._animationStateChanged.pipe((0,ye.h)(r=>"closed"===r.state),(0,ct.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),a.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,Li.T)(this.backdropClick(),this.keydownEvents().pipe((0,ye.h)(r=>27===r.keyCode&&!this.disableClose&&!Bn(r)))).subscribe(r=>{this.disableClose||(r.preventDefault(),function Yb(n,a,e){n._closeInteractionType=a,n.close(e)}(this,"keydown"===r.type?"keyboard":"mouse"))})}close(a){this._result=a,this._containerInstance._animationStateChanged.pipe((0,ye.h)(e=>"closing"===e.state),(0,ct.q)(1)).subscribe(e=>{this._beforeClosed.next(a),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(a){let e=this._ref.config.positionStrategy;return a&&(a.left||a.right)?a.left?e.left(a.left):e.right(a.right):e.centerHorizontally(),a&&(a.top||a.bottom)?a.top?e.top(a.top):e.bottom(a.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(a="",e=""){return this._ref.updateSize(a,e),this}addPanelClass(a){return this._ref.addPanelClass(a),this}removePanelClass(a){return this._ref.removePanelClass(a),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}const fn=new i.OlP("MatDialogData"),Wb=new i.OlP("mat-dialog-default-options"),Ub=new i.OlP("mat-dialog-scroll-strategy"),$b={provide:Ub,deps:[ar],useFactory:function Wo(n){return()=>n.scrollStrategies.block()}};let Jm=0,Xs=(()=>{class n{constructor(e,t,r,l,c,s,o,d,u,h){this._overlay=e,this._defaultOptions=r,this._parentDialog=l,this._dialogRefConstructor=o,this._dialogContainerType=d,this._dialogDataToken=u,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Ee.x,this._afterOpenedAtThisLevel=new Ee.x,this._idPrefix="mat-dialog-",this.afterAllClosed=Di(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Hi(void 0))),this._scrollStrategy=s,this._dialog=t.get(Er)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(e,t){let r;(t={...this._defaultOptions||new ud,...t}).id=t.id||`${this._idPrefix}${Jm++}`,t.scrollStrategy=t.scrollStrategy||this._scrollStrategy();const l=this._dialog.open(e,{...t,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:ud,useValue:t},{provide:Up,useValue:t}]},templateContext:()=>({dialogRef:r}),providers:(c,s,o)=>{var d;return r=new this._dialogRefConstructor(c,t,o),r.updatePosition(null===(d=t)||void 0===d?void 0:d.position),[{provide:this._dialogContainerType,useValue:o},{provide:this._dialogDataToken,useValue:s.data},{provide:this._dialogRefConstructor,useValue:r}]}});return r.componentInstance=l.componentInstance,this.openDialogs.push(r),this.afterOpened.next(r),r.afterClosed().subscribe(()=>{const c=this.openDialogs.indexOf(r);c>-1&&(this.openDialogs.splice(c,1),this.openDialogs.length||this._getAfterAllClosed().next())}),r}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let t=e.length;for(;t--;)e[t].close()}}return n.\u0275fac=function(e){i.$Z()},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),Fi=(()=>{class n extends Xs{constructor(e,t,r,l,c,s,o,d){super(e,t,l,s,o,c,xi,bv,fn,d)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(ar),i.LFG(i.zs3),i.LFG(w.Ye,8),i.LFG(Wb,8),i.LFG(Ub),i.LFG(n,12),i.LFG(jc),i.LFG(i.QbO,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),WS=0,Qi=(()=>{class n{constructor(e,t,r){this._dialogRef=e,this._elementRef=t,this._dialog=r,this.id="mat-dialog-title-"+WS++}ngOnInit(){this._dialogRef||(this._dialogRef=function Zb(n,a){let e=n.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-dialog-container");)e=e.parentElement;return e?a.find(t=>t.id===e.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const e=this._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=this.id)})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(xi,8),i.Y36(i.SBq),i.Y36(Fi))},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,t){2&e&&i.Ikx("id",t.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),n})(),sn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),n})(),Wi=(()=>{class n{constructor(){this.align="start"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(e,t){2&e&&i.ekj("mat-dialog-actions-align-center","center"===t.align)("mat-dialog-actions-align-end","end"===t.align)},inputs:{align:"align"}}),n})(),Qm=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[Fi,$b],imports:[$m,Oo,Us,_t,_t]}),n})();var Jb=T(4327);const hd=[5,10,25,100];function $p(){return($p=(0,pv.Z)(function*(n,a){yield Xb(n),a()})).apply(this,arguments)}function Xb(n){return new Promise(a=>setTimeout(a,n))}function ri(){const n=new ud;return n.disableClose=!0,n.autoFocus=!1,n}function Dr(n){return"virt"===n.namespace.split(":")[4]}const eg=new Intl.Collator("cs",{numeric:!0});function Zl(n,a,e){const t=a.active,r=a.direction;return t&&""!==r?n.sort((l,c)=>{const s=e(l,t),o=e(c,t);return eg.compare(s,o)*("asc"===r?1:-1)}):n}function Uo(n,a,e,t,r){a=a.toLowerCase();let l="";return e.forEach(c=>{l+=";"+t(n,c)}),r&&(l+=";"+t(n,"uuid")),l.toLowerCase().includes(a)}function Ba(n,a,e){const t=[],r=["checkbox","select","edit","menu","cite","extend","recent"];return a=a.filter(l=>!r.includes(l)),n.forEach(l=>{const c={};a.forEach(s=>{c[s]=(e(l,s)??"").split('"').join("''").trim()}),t.push(c)}),t}function Na(n,a="csv",e="export"){if("csv"===a){const t=(o,d)=>null===d?"":d,r=Object.keys(n[0]),l=n.map(o=>r.map(d=>JSON.stringify(o[d],t)).join(","));l.unshift(r.join(",").split(" ").join("_").split('"').join("''"));const c=l.join("\r\n"),s=new Blob([c],{type:"text/csv"});(0,Jb.saveAs)(s,`${e}.${a}`)}}function Lv(n,a){return n.name.toLowerCase()>a.name.toLowerCase()?1:n.name.toLowerCase()===a.name.toLowerCase()?0:-1}const rA="GUI_CONFIG.PREF_PAGE_SIZE.";let aA=(()=>{class n{getString(e){return localStorage.getItem(e)}getNumber(e){return parseInt(localStorage.getItem(e),10)}setNumber(e,t){localStorage.setItem(e,t.toString())}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),tg=(()=>{class n{constructor(e){this.guiConfigService=e}getTablePageSize(e){const t=this.guiConfigService.getNumber(rA+e);if(!isNaN(t))return t;const r=this.guiConfigService.getNumber("GUI_CONFIG.PREF_PAGE_SIZE");return isNaN(r)?10:r}setTablePageSize(e,t){this.guiConfigService.setNumber(rA+e,t)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(aA))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function pL(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",7),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.exportAllData.emit("csv"))}),i._uU(1),i.ALo(2,"translate"),i.qZA()}2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.ALL_DATA")," "))}let fL=(()=>{class n{constructor(){this.exportDisplayedData=new i.vpe,this.exportAllData=new i.vpe}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-table-options"]],inputs:{allowExportAll:"allowExportAll"},outputs:{exportDisplayedData:"exportDisplayedData",exportAllData:"exportAllData"},decls:19,vars:10,consts:[[1,"position-right"],["mat-icon-button","",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"matMenuTriggerFor"],["exportOptions","matMenu"],["xPosition","before"],["selectData","matMenu"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"click",4,"ngIf"]],template:function(e,t){if(1&e&&(i.TgZ(0,"div",0)(1,"button",1)(2,"mat-icon"),i._uU(3,"more_vert"),i.qZA()(),i.TgZ(4,"mat-menu",null,2)(6,"button",3),i._uU(7),i.ALo(8,"translate"),i.qZA()(),i.TgZ(9,"mat-menu",null,4)(11,"button",3),i._uU(12,"Csv"),i.qZA()(),i.TgZ(13,"mat-menu",5,6)(15,"button",7),i.NdJ("click",function(){return t.exportDisplayedData.emit("csv")}),i._uU(16),i.ALo(17,"translate"),i.qZA(),i.YNc(18,pL,3,3,"button",8),i.qZA()()),2&e){const r=i.MAs(5),l=i.MAs(10),c=i.MAs(14);i.xp6(1),i.Q6J("matMenuTriggerFor",r),i.xp6(5),i.Q6J("matMenuTriggerFor",l),i.xp6(1),i.hij(" ",i.lcZ(8,6,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.EXPORT_TO_FILE")," "),i.xp6(4),i.Q6J("matMenuTriggerFor",c),i.xp6(5),i.hij(" ",i.lcZ(17,8,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.DISPLAYED_DATA")," "),i.xp6(2),i.Q6J("ngIf",t.allowExportAll)}},dependencies:[zp,sd,Nb,Ji,Dt,w.O5,Qe]}),n})();const mL=["topNav"];function gL(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-table-options",7),i.NdJ("exportDisplayedData",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.exportDisplayedData.emit(r))})("exportAllData",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.exportAllData.emit(r))}),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("allowExportAll",e.allowExportAll)}}function _L(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-table-options",7),i.NdJ("exportDisplayedData",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.exportDisplayedData.emit(r))})("exportAllData",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.exportAllData.emit(r))}),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("allowExportAll",e.allowExportAll)}}const bL=["*"];let ds=(()=>{class n{constructor(e){this.tableConfigService=e,this.hideExport=!1,this.pageSizeOptions=hd,this.dataLength=0,this.allowExportAll=!0,this.exportDisplayedData=new i.vpe,this.exportAllData=new i.vpe,this.pageSize=5}set matPaginator(e){this.paginator=e}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),null===this.pageSizeOptions&&(this.pageSize=5),this.paginator._changePageSize(this.pageSize)}pageChangedTop(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}pageChangedBottom(e){this.paginator.pageSize=e.pageSize,this.paginator.pageIndex=e.pageIndex,this.paginator.page.emit(e),this.pageSize=e.pageSize,this.tableId&&this.tableConfigService.setTablePageSize(this.tableId,e.pageSize),this.topNav.nativeElement.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(tg))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-table-wrapper"]],viewQuery:function(e,t){if(1&e&&(i.Gf(mL,5),i.Gf(Ob,7)),2&e){let r;i.iGM(r=i.CRH())&&(t.topNav=r.first),i.iGM(r=i.CRH())&&(t.matPaginator=r.first)}},inputs:{hideExport:"hideExport",pageSizeOptions:"pageSizeOptions",dataLength:"dataLength",tableId:"tableId",allowExportAll:"allowExportAll"},outputs:{exportDisplayedData:"exportDisplayedData",exportAllData:"exportAllData"},ngContentSelectors:bL,decls:10,vars:9,consts:[[1,"card-body","pt-0"],[1,"row","justify-content-end","align-items-center"],["topNav",""],[3,"length","pageSizeOptions","pageSize","page"],[3,"allowExportAll","exportDisplayedData","exportAllData",4,"ngIf"],[1,"overflow-auto","border-top"],[3,"length","pageIndex","pageSizeOptions","pageSize","page"],[3,"allowExportAll","exportDisplayedData","exportAllData"]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0)(1,"div",1,2)(3,"mat-paginator",3),i.NdJ("page",function(l){return t.pageChangedTop(l)}),i.qZA(),i.YNc(4,gL,1,1,"perun-web-apps-table-options",4),i.qZA(),i.TgZ(5,"div",5),i.Hsn(6),i.qZA(),i.TgZ(7,"div",1)(8,"mat-paginator",6),i.NdJ("page",function(l){return t.pageChangedBottom(l)}),i.qZA(),i.YNc(9,_L,1,1,"perun-web-apps-table-options",4),i.qZA()()),2&e&&(i.xp6(3),i.Q6J("length",t.dataLength)("pageSizeOptions",t.pageSizeOptions)("pageSize",t.pageSize),i.xp6(1),i.Q6J("ngIf",!t.hideExport),i.xp6(4),i.Q6J("length",t.paginator.length)("pageIndex",t.paginator.pageIndex)("pageSizeOptions",t.paginator.pageSizeOptions)("pageSize",t.paginator.pageSize),i.xp6(1),i.Q6J("ngIf",!t.hideExport))},dependencies:[Ob,w.O5,fL]}),n})();class cE{static passwordMatchValidator(a){const e=a.get("passwordCtrl").value,t=a.get("passwordAgainCtrl").value;return a.get("passwordAgainCtrl").setErrors(e!==t?{noPasswordMatch:!0}:null),null}static patternValidator(a){return e=>{if(!e.value)return null;let t=0;for(const r of a)t+=r.test(e.value)?1:0;return t>=3?null:{isWeak:!0}}}}let jt=(()=>{class n{constructor(){this.branding=""}setInstanceConfig(e){this.instanceConfig=e}setDefaultConfig(e){this.defaultConfig=e}getAppsConfig(){return this.appsConfig}setAppsConfig(e){this.appsConfig=e}setPerunPrincipal(e){this.principal=e}getPerunPrincipal(){return this.principal}getInitialPageId(){return this.initialPageId}setInitialPageId(e){this.initialPageId=e}getLoginAttributeNames(){return this.getProperty("login_namespace_attributes")}getMemberProfileAttributeNames(){return this.getProperty("member_profile_attributes_friendly_names")}setBanding(e){this.branding=e}getProperty(e){if(!this.instanceConfig||!this.defaultConfig)return null;const t=[this.instanceConfig?.brandings?.[this.branding],this.instanceConfig],r=this.defaultConfig[e];let l=null;for(const c of t)c&&null==l&&(l=c[e]);return null===l?r:this.addMissingValuesToProperty(l,r)}addMissingValuesToProperty(e,t){if("object"!=typeof e||Array.isArray(e)||null==e){if(null!=e)return e}else for(const r of Object.keys(t))t[r]=this.addMissingValuesToProperty(e[r],t[r]);return t}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var Jl=T(1214);let Ql=(()=>{class n{constructor(e,t,r,l,c){this.injector=e,this.store=t,this.dialog=r,this.route=l,this.oauthService=c,setTimeout(()=>{this.router=this.injector.get(Ni),this.startIdpFilterKeeper()}),this.route.queryParams.subscribe(s=>{s.idpFilter&&(this.filterShortname=String(s.idpFilter))})}loadOidcConfigData(){this.oauthService.configure(this.getClientConfig())}logout(){sessionStorage.getItem("baPrincipal")?(sessionStorage.removeItem("baPrincipal"),sessionStorage.removeItem("basicUsername"),sessionStorage.removeItem("basicPassword"),sessionStorage.setItem("baLogout","true"),this.router.navigate(["/service-access"],{queryParamsHandling:"preserve"})):this.oauthService.logOut()}isLoggedIn(){return this.oauthService.hasValidAccessToken()}getAuthorizationHeaderValue(){return this.oauthService.hasValidAccessToken()?"Bearer "+this.oauthService.getAccessToken():""}startAuthentication(){this.oauthService.loadDiscoveryDocumentAndLogin()}getIdpFilter(){return this.filterShortname}getClientConfig(){const e=this.setIdpFilter(),l=.5+.25*Math.random(),c=e?{acr_values:e}:{},s=this.store.getProperty("oidc_client");if(s.oauth_scopes.split(" ").includes("offline_access")&&s.oauth_offline_access_consent_prompt&&(c.prompt="consent"),(sessionStorage.getItem("mfa_route")||sessionStorage.getItem("mfaProcessed"))&&(c.acr_values="https://refeds.org/profile/mfa"),sessionStorage.getItem("mfa_route")&&(c.prompt?c.prompt+=" login":c.prompt="login",c.max_age="0"),"Linker"===this.store.getProperty("application")){c.prompt?c.prompt+=" login":c.prompt="login";const o=function nA(n,a){const e=a.split("&");for(const t of e){const[r,l]=t.split("=");if(r.includes(n))return l}return""}("idphint",location.search.substring(1));o&&(c.idphint=o)}return{requestAccessToken:!0,issuer:s.oauth_authority,clientId:s.oauth_client_id,redirectUri:s.oauth_redirect_uri,postLogoutRedirectUri:s.oauth_post_logout_redirect_uri,responseType:s.oauth_response_type,scope:s.oauth_scopes,clockSkewInSec:1,timeoutFactor:l,userinfoEndpoint:this.store.getProperty("oidc_client").user_info_endpoint_url,customQueryParams:c}}setIdpFilter(){const e=location.search.length?location.search.substring(1).split("&"):[];this.filterShortname=null;const t=this.store.getProperty("oidc_client").filters;if(!t)return null;let r=null;return e.forEach(l=>{const c=l.split("=");"idpFilter"===c[0]&&t[c[1]]&&(this.filterShortname=c[1],r=t[c[1]])}),t.default&&!r?(this.filterShortname="default",t.default):r}startIdpFilterKeeper(){this.router.events.pipe((0,ye.h)(e=>e instanceof Xn)).subscribe(()=>{const e={idpFilter:this.getIdpFilter()};this.router.navigate([],{relativeTo:this.route,queryParams:"default"===e.idpFilter?{}:e,queryParamsHandling:"merge",replaceUrl:!0})})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.zs3),i.LFG(jt),i.LFG(Fi),i.LFG(In),i.LFG(Jl.Ct))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),AL=(()=>{class n{constructor(e){this.dialogRef=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(xi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-user-dont-exist-dialog"]],decls:3,vars:3,consts:[["mat-dialog-content","",1,"mt-2","mb-2"]],template:function(e,t){1&e&&(i.TgZ(0,"h2",0),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&e&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.USER_DONT_EXIST.TITLE"),"\n"))},dependencies:[sn,Qe]}),n})();var yL=T(930);function dE(n,a){const e="object"==typeof a;return new Promise((t,r)=>{const l=new yL.Hp({next:c=>{t(c),l.unsubscribe()},error:r,complete:()=>{e?t(a.defaultValue):r(new Rr.K)}});n.subscribe(l)})}function ML(n,a){1&n&&(i.TgZ(0,"mat-icon",2),i._uU(1," info "),i.qZA())}function wL(n,a){1&n&&(i.TgZ(0,"mat-icon",2),i._uU(1," warning "),i.qZA())}function CL(n,a){1&n&&(i.TgZ(0,"mat-icon",2),i._uU(1," dangerous "),i.qZA())}function vL(n,a){1&n&&(i.TgZ(0,"mat-icon",2),i._uU(1," check_circle "),i.qZA())}const TL=["*"];let Mn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-alert"]],inputs:{alert_type:"alert_type"},ngContentSelectors:TL,decls:6,vars:12,consts:[[1,"perun-alert","d-flex","align-items-flex-start"],["class","perun-alert-icon",4,"ngIf"],[1,"perun-alert-icon"]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0),i.YNc(1,ML,2,0,"mat-icon",1),i.YNc(2,wL,2,0,"mat-icon",1),i.YNc(3,CL,2,0,"mat-icon",1),i.YNc(4,vL,2,0,"mat-icon",1),i.Hsn(5),i.qZA()),2&e&&(i.ekj("warn-alert","warn"===t.alert_type)("error-alert","error"===t.alert_type)("success-alert","success"===t.alert_type)("info-alert","info"===t.alert_type),i.xp6(1),i.Q6J("ngIf","info"===t.alert_type),i.xp6(1),i.Q6J("ngIf","warn"===t.alert_type),i.xp6(1),i.Q6J("ngIf","error"===t.alert_type),i.xp6(1),i.Q6J("ngIf","success"===t.alert_type))},dependencies:[Ji,w.O5],styles:[".perun-alert[_ngcontent-%COMP%]{position:relative;padding:.75rem 1.25rem;margin-top:1rem;margin-bottom:1rem}.perun-alert.info-alert[_ngcontent-%COMP%]{font-style:italic;color:gray;text-align:left;border:1px #b3b3b3 solid;border-radius:10px}.perun-alert.warn-alert[_ngcontent-%COMP%]{font-weight:700;text-align:left;border:1px #ececec solid;border-radius:10px;background-color:#ececec}.perun-alert-icon[_ngcontent-%COMP%]{padding-right:2rem}.perun-alert.error-alert[_ngcontent-%COMP%]{text-align:left;border:1px #fedcda solid;border-radius:10px;background-color:#fedcda}.perun-alert.success-alert[_ngcontent-%COMP%]{text-align:left;border:1px #d7ffd7 solid;border-radius:10px;background-color:#d7ffd7}"]}),n})(),xL=(()=>{class n{constructor(e,t){this.dialogRef=e,this.data=t}cancel(){this.dialogRef.close(!1)}submit(){this.dialogRef.close(!0)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(xi),i.Y36(fn))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-mfa-required-dialog"]],decls:15,vars:17,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["alert_type","warn"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"hidden","click"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.qZA(),i.TgZ(3,"div",1)(4,"perun-web-apps-alert",2),i._uU(5),i.ALo(6,"translate"),i.ALo(7,"translate"),i.qZA()(),i.TgZ(8,"div",3)(9,"button",4),i.NdJ("click",function(){return t.cancel()}),i._uU(10),i.ALo(11,"translate"),i.qZA(),i.TgZ(12,"button",5),i.NdJ("click",function(){return t.submit()}),i._uU(13),i.ALo(14,"translate"),i.qZA()()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,7,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.TITLE")),i.xp6(4),i.hij(" ",t.data.mfaRoleException?i.lcZ(6,9,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.INFO_ROLE"):i.lcZ(7,11,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.INFO")," "),i.xp6(4),i.Q6J("hidden",t.data.mfaRoleException),i.xp6(1),i.hij(" ",i.lcZ(11,13,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.CANCEL")," "),i.xp6(2),i.Tol(t.data.mfaRoleException?"ml-auto":"ml-2"),i.xp6(1),i.hij(" ",i.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.MFA_REQUIRED_DIALOG.STEP_UP")," "))},dependencies:[Qi,sn,Wi,Dt,Mn,Qe]}),n})(),SL=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-focus-on-mfa-window"]],decls:9,vars:6,consts:[[1,"text-center","custom-dialog"],[1,"align-text-bottom"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"div")(2,"mat-icon",1),i._uU(3," info "),i.qZA(),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.TgZ(6,"div"),i._uU(7),i.ALo(8,"translate"),i.qZA()()),2&e&&(i.xp6(4),i.hij(" ",i.lcZ(5,2,"SHARED_LIB.PERUN.COMPONENTS.FOCUS_ON_MFA_DIALOG.MODAL")," "),i.xp6(3),i.hij(" ",i.lcZ(8,4,"SHARED_LIB.PERUN.COMPONENTS.FOCUS_ON_MFA_DIALOG.MODAL_WARNING")," "))},dependencies:[Ji,Qe],styles:[".custom-dialog[_ngcontent-%COMP%]{background-color:#000;color:#fffffff2;font-size:1.2rem}"]}),n})(),EL=(()=>{class n{constructor(e,t){this.data=e,this.dialogRef=t}cancel(){this.dialogRef.close(!1)}submit(){window.open(this.data.tokensUrl,"_blank"),this.dialogRef.close(!0)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(fn),i.Y36(xi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-no-mfa-tokens-dialog"]],decls:14,vars:12,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["alert_type","warn"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.qZA(),i.TgZ(3,"div",1)(4,"perun-web-apps-alert",2),i._uU(5),i.ALo(6,"translate"),i.qZA()(),i.TgZ(7,"div",3)(8,"button",4),i.NdJ("click",function(){return t.cancel()}),i._uU(9),i.ALo(10,"translate"),i.qZA(),i.TgZ(11,"button",5),i.NdJ("click",function(){return t.submit()}),i._uU(12),i.ALo(13,"translate"),i.qZA()()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.TITLE")),i.xp6(4),i.hij(" ",i.lcZ(6,6,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.INFO")," "),i.xp6(4),i.hij(" ",i.lcZ(10,8,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.CANCEL")," "),i.xp6(3),i.hij(" ",i.lcZ(13,10,"SHARED_LIB.PERUN.COMPONENTS.NO_MFA_TOKEN.MANAGE_TOKENS")," "))},dependencies:[Qi,sn,Wi,Dt,Mn,Qe]}),n})(),Bv=(()=>{class n{constructor(e,t,r,l){this.dialog=e,this.oauthService=t,this.authService=r,this.store=l}openMfaWindow(e){let t=null,r=null;const l=ri();l.width="450px",l.data={mfaRoleException:e};const c=this.dialog.open(xL,l);let s=!1;if(c.afterClosed().subscribe(o=>{if(o){if(sessionStorage.setItem("mfaRequired","true"),sessionStorage.setItem("oldAccessToken",this.oauthService.getAccessToken()),sessionStorage.setItem("oldRefreshToken",this.oauthService.getRefreshToken()),t=this.setupMfaWindow(),t){const d=ri();d.width="450px",d.panelClass="noBorderDialog",r=this.dialog.open(SL,d)}}else s=!0}),localStorage.getItem("noMfaTokenDialog")){localStorage.removeItem("noMfaTokenDialog");const o=ri();o.width="450px",o.data={tokensUrl:this.store.getProperty("mfa").url_en},this.dialog.open(EL,o)}return new _i.y(o=>{const d=setInterval(()=>t?.closed?(clearInterval(d),r.close(),sessionStorage.removeItem("mfaRequired"),sessionStorage.removeItem("mfaProcessed"),null===this.oauthService.getAccessToken()&&(localStorage.setItem("access_token",sessionStorage.getItem("oldAccessToken")),localStorage.setItem("refresh_token",sessionStorage.getItem("oldRefreshToken"))),o.next(!0)):s?(clearInterval(d),o.next(!1)):void 0,1e3)})}catchNoMfaTokenError(e){"unmet_authentication_requirements"===e&&(localStorage.setItem("noMfaTokenDialog","true"),window.close())}mfaWindowForceLogout(){if(sessionStorage.getItem("mfaRequired")&&!sessionStorage.getItem("mfaProcessed"))return sessionStorage.setItem("mfaProcessed","true"),this.oauthService.logOut(!0),this.authService.loadOidcConfigData(),void this.oauthService.loadDiscoveryDocumentAndLogin();sessionStorage.removeItem("mfaRequired")}closeMfaWindow(){sessionStorage.getItem("mfaProcessed")&&!sessionStorage.getItem("mfaRequired")&&(sessionStorage.removeItem("mfaProcessed"),window.close())}setupMfaWindow(){const e=location.pathname+location.search,l=window.top;return window.open(e,"_blank",`width=600,height=600,top=${l.outerHeight/2+l.screenY-300}, left=${l.outerWidth/2+l.screenX-300}`)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Fi),i.LFG(Jl.Ct),i.LFG(Ql),i.LFG(jt))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),gA=(()=>{class n{constructor(e,t,r,l,c,s,o,d){this.authService=e,this.oauthService=t,this.storeService=r,this.authResolver=l,this.authzService=c,this.dialog=s,this.router=o,this.mfaHandlerService=d,this.loginScreenShown=!1,this.serviceAccess=!1,this.serviceAccessLoginScreen=!1}isLoginScreenShown(){return this.loginScreenShown}isServiceAccess(){return this.serviceAccess}isServiceAccessLoginScreenShown(){return this.serviceAccessLoginScreen}verifyAuth(){if(this.mfaHandlerService.mfaWindowForceLogout(),sessionStorage.getItem("baPrincipal"))return this.serviceAccess=!0,sessionStorage.getItem("auth:redirect")?this.redirectToOriginDestination():Promise.resolve(!0);if("/service-access"!==location.pathname&&!this.storeService.getProperty("auto_service_access_redirect")){this.authService.loadOidcConfigData();const e=location.pathname,t=location.search.substring(1);return"/api-callback"===e?this.oauthService.loadDiscoveryDocumentAndTryLogin().then(()=>this.startRefreshToken()).then(()=>this.redirectToOriginDestination()):this.oauthService.loadDiscoveryDocument().then(()=>this.tryRefreshToken()).then(()=>"Linker"===this.storeService.getProperty("application")?(sessionStorage.setItem("auth:queryParams",t),localStorage.removeItem("access_token"),!1):this.oauthService.hasValidAccessToken()?this.startRefreshToken():this.isPotentiallyValidPath(e)?(sessionStorage.setItem("auth:redirect",e),sessionStorage.setItem("auth:queryParams",t),!1):Promise.reject("Invalid path"))}}loadPrincipal(){return dE(this.authzService.getPerunPrincipal()).then(e=>{if(null===e.user){const t=ri();this.dialog.open(AL,t)}else this.storeService.setPerunPrincipal(e),this.authResolver.init(e)})}simpleLoadPrincipal(){return dE(this.authzService.getPerunPrincipal()).then(e=>{this.storeService.setPerunPrincipal(e)})}checkRouteGuard(){const e=localStorage.getItem("routeAuthGuard");e&&(localStorage.removeItem("routeAuthGuard"),this.router.navigate([e],{queryParamsHandling:"merge"}))}handleAuthStart(){if(this.storeService.getProperty("auto_service_access_redirect")&&"/service-access"!==location.pathname){this.serviceAccess=!0,this.serviceAccessLoginScreen=!0;const e=location.pathname,t=location.search.substring(1);sessionStorage.setItem("auth:redirect",e),sessionStorage.setItem("auth:queryParams",t);const r={};return t.split("&").forEach(l=>{const c=l.split("=");r[c[0]]=c[1]}),this.router.navigate(["service-access"],{queryParams:r,queryParamsHandling:"merge"}).then()}if("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal")||this.storeService.getProperty("auto_service_access_redirect")){this.serviceAccess=!0,this.serviceAccessLoginScreen=!0;const e=location.search.substring(1);return sessionStorage.setItem("auth:queryParams",e),Promise.resolve()}return this.storeService.getProperty("auto_auth_redirect")?(sessionStorage.getItem("mfaProcessed")||localStorage.setItem("routeAuthGuard",window.location.pathname),this.startAuth().then(()=>new Promise(()=>{}))):(this.setLoginScreen(!0),localStorage.setItem("routeAuthGuard",window.location.pathname),void this.router.navigate(["login"],{queryParamsHandling:"merge"}))}setLoginScreen(e){this.loginScreenShown=e}isPotentiallyValidPath(e){const t=["/home","/organizations","/facilities","/myProfile","/admin","/login","/service-access","/profile"];if("/"===e)return!0;for(const r of t)if(e.startsWith(r))return!0;return!1}startRefreshToken(){return this.oauthService.hasValidAccessToken()?(this.oauthService.events.pipe((0,ye.h)(e=>"token_expires"===e.type&&"access_token"===e.info)).subscribe(()=>{this.oauthService.refreshToken()}),Promise.resolve(!0)):Promise.resolve(!1)}tryRefreshToken(){return localStorage.getItem("refresh_token")&&!this.oauthService.hasValidAccessToken()?this.oauthService.refreshToken().then(()=>Promise.resolve()).catch(()=>Promise.resolve()):Promise.resolve()}redirectToOriginDestination(){const e=sessionStorage.getItem("mfa_route");if(e)return this.router.navigate([e],{replaceUrl:!0,queryParamsHandling:"merge"});let t=sessionStorage.getItem("auth:redirect");(!t||"/login"===t)&&(t="/"),sessionStorage.removeItem("auth:redirect");const r=sessionStorage.getItem("auth:queryParams");let l=[];r&&(l=r.split("&"));const c={};return l.forEach(s=>{const o=s.split("=");c[o[0]]=o[1]}),sessionStorage.removeItem("auth:queryParams"),this.router.navigate([t],{queryParams:c,replaceUrl:!0,queryParamsHandling:"merge"})}startAuth(){return this.authService.startAuthentication(),Promise.resolve()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Ql),i.LFG(Jl.Ct),i.LFG(jt),i.LFG(tn),i.LFG(Cs),i.LFG(Fi),i.LFG(Ni),i.LFG(Bv))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),uE=(()=>{class n{constructor(e,t){this.matIconRegistry=e,this.domSanitizer=t,this.customIcons=[{url:"assets/img/PerunWebImages/refresh_tab-black.svg",name:"perun-refresh-enabled"},{url:"assets/img/PerunWebImages/refresh_tab-grey.svg",name:"perun-refresh-disabled"},{url:"assets/img/PerunWebImages/manage_facility_white.svg",name:"perun-manage-facility"},{url:"assets/img/PerunWebImages/vo-white.svg",name:"perun-vo"},{url:"assets/img/PerunWebImages/user-white.svg",name:"perun-user"},{url:"assets/img/PerunWebImages/perun_admin-white.svg",name:"perun-perun-admin"},{url:"assets/img/PerunWebImages/group-white.svg",name:"perun-group"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/preview-white.svg",name:"perun-preview"},{url:"assets/img/PerunWebImages/module_dependencies.svg",name:"perun-module-dependencies"},{url:"assets/img/PerunWebImages/user_destination_relationship.svg",name:"perun-user-destination-relationship"},{url:"assets/img/PerunWebImages/settings2-white.svg",name:"perun-settings2"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/applications-white.svg",name:"perun-applications"},{url:"assets/img/PerunWebImages/manager-white.svg",name:"perun-manager"},{url:"assets/img/PerunWebImages/key-white.svg",name:"perun-key"},{url:"assets/img/PerunWebImages/application_form-white.svg",name:"perun-application-form"},{url:"assets/img/PerunWebImages/notification-white.svg",name:"perun-notification"},{url:"assets/img/PerunWebImages/invite_member-white.svg",name:"perun-invite-member"},{url:"assets/img/PerunWebImages/service_identity-white.svg",name:"perun-service-identity"},{url:"assets/img/PerunWebImages/service_identity-black.svg",name:"perun-service-identity-black"},{url:"assets/img/PerunWebImages/create1-white.svg",name:"perun-create1"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource"},{url:"assets/img/PerunWebImages/resource_tags-white.svg",name:"perun-resource-tags"},{url:"assets/img/PerunWebImages/resources_state-white.svg",name:"perun-resources-state"},{url:"assets/img/PerunWebImages/external_sources-white.svg",name:"perun-external-sources"},{url:"assets/img/PerunWebImages/vo-dark.svg",name:"perun-vo-black"},{url:"assets/img/PerunWebImages/group-dark.svg",name:"perun-group-black"},{url:"assets/img/PerunWebImages/facility-dark.svg",name:"perun-facility-black"},{url:"assets/img/publications.svg",name:"perun-publications-white"},{url:"assets/img/PerunWebImages/owner-grey.svg",name:"perun-owner-grey"},{url:"assets/img/PerunWebImages/settings1-blue.svg",name:"perun-settings1"},{url:"assets/img/PerunWebImages/service_destination-blue.svg",name:"perun-service_destination"},{url:"assets/img/PerunWebImages/host-blue.svg",name:"perun-hosts"},{url:"assets/img/PerunWebImages/home.svg",name:"perun-home-white"},{url:"assets/img/PerunWebImages/security_admin-blue.svg",name:"perun-security-teams"},{url:"assets/img/PerunWebImages/black_list-white.svg",name:"perun-black-list"},{url:"assets/img/PerunWebImages/facility-white.svg",name:"perun-facility-white"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource-white"},{url:"assets/img/PerunWebImages/service-white.svg",name:"perun-service"},{url:"assets/img/PerunWebImages/resource-black.svg",name:"perun-resource-black"},{url:"assets/img/PerunWebImages/service_status-grey.svg",name:"perun-service-status"},{url:"assets/img/PerunWebImages/user-dark.svg",name:"perun-user-dark"},{url:"assets/img/PerunWebImages/statistics-blue.svg",name:"perun-statistics"},{url:"assets/img/PerunWebImages/audit_log-blue.svg",name:"perun-audit-log"},{url:"assets/img/PerunWebImages/contact-grey.svg",name:"perun-identity"},{url:"assets/img/PerunWebImages/roles.svg",name:"perun-roles"},{url:"assets/img/PerunWebImages/consent-white.svg",name:"perun-consent-hubs"},{url:"assets/img/PerunWebImages/hierarchical_vo-black.svg",name:"perun-hierarchical-vo"},{url:"assets/img/PerunWebImages/searcher-blue.svg",name:"perun-searcher"},{url:"assets/img/PerunWebImages/propagation-blue.svg",name:"perun-hierarchical-inclusion"},{url:"assets/img/PerunWebImages/verify-grey.svg",name:"perun-verify-grey"},{url:"assets/img/PerunWebImages/info-grey.svg",name:"perun-info-grey"},{url:"assets/img/PerunWebImages/logins.svg",name:"perun-logins"},{url:"assets/img/PerunWebImages/certificates.svg",name:"perun-certificates"},{url:"assets/img/PerunWebImages/authentication.svg",name:"perun-authentication"},{url:"assets/img/PerunWebImages/ban.svg",name:"perun-ban"}]}registerPerunRefreshIcon(){this.customIcons.forEach(e=>{this.matIconRegistry.addSvgIcon(e.name,this.domSanitizer.bypassSecurityTrustResourceUrl(e.url))})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(ld),i.LFG(Ki))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),hE=(()=>{class n{constructor(e){this.dialogRef=e}close(){this.dialogRef.close(!0)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(xi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-session-expiration-dialog"]],decls:11,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"ml-auto"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.qZA(),i.TgZ(3,"div",1),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.TgZ(6,"div",2)(7,"div",3)(8,"button",4),i.NdJ("click",function(){return t.close()}),i._uU(9),i.ALo(10,"translate"),i.qZA()()()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.TITLE")),i.xp6(3),i.hij(" ",i.lcZ(5,5,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.DESCRIPTION"),"\n"),i.xp6(5),i.hij(" ",i.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.SIGN_IN")," "))},dependencies:[Qi,sn,Wi,Dt,Qe]}),n})(),ig=(()=>{class n{constructor(){this.handleNextError=!0}dontHandleErrorForNext(){this.handleNextError=!1}shouldHandleError(){const e=this.handleNextError;return this.handleNextError=!0,e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),_r=(()=>{class n{constructor(e){this.translate=e,this.addNotification=new i.vpe,this.defaultErrorDelayMs=5e3,this.defaultSuccessDelayMs=3e3}getDefaultActionMessage(){return void 0===this.defaultAction?this.defaultAction=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_ACTION"):this.defaultAction}getDefaultRpcMessage(){return void 0===this.defaultRpcMessage?this.defaultRpcMessage=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_RPC_ERROR_MESSAGE"):this.defaultRpcMessage}showRPCError(e,t=this.getDefaultRpcMessage()){this.showError("PrivilegeException"===e.name?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.PRIVILEGE_EXCEPTION"):void 0===e.name?t:t+"\n"+e.name,e,e.message)}showRouteError(){const e=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_ERROR"),t=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_DESC");this.showError(e,null,t)}showError(e,t,r,l,c){this.addNotification.emit({type:"error",error:t,description:r,title:e,actionText:void 0===l&&void 0!==r?this.getDefaultActionMessage():l,delay:this.defaultErrorDelayMs,icon:"error_outline",action:c,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}showSuccess(e,t,r,l){this.addNotification.emit({type:"success",description:t,title:e,actionText:void 0===r&&void 0!==t?this.getDefaultActionMessage():r,delay:this.defaultSuccessDelayMs,icon:"done",action:l,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG($t))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),pE=(()=>{class n{constructor(e,t,r,l,c,s,o,d){this.authService=e,this.apiRequestConfiguration=t,this.notificator=r,this.store=l,this.dialog=c,this.initAuthService=s,this.mfaHandlerService=o,this.oauthService=d}intercept(e,t){const r=this.store.getProperty("api_url");if(e.url.includes("i18n")&&(e=e.clone({setHeaders:{"Cache-control":"no-cache, must-revalidate"}})),void 0!==r&&this.isCallToPerunApi(e.url)&&!this.authService.isLoggedIn()&&!this.initAuthService.isServiceAccess()&&!this.dialogRefSessionExpiration){const l=ri();l.width="450px",this.dialogRefSessionExpiration=this.dialog.open(hE,l),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{Or(()=>this.dialogRefSessionExpiration=void 0),sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.reauthenticate()})}return this.initAuthService.isServiceAccess()?e=e.clone({setHeaders:{Authorization:"Basic "+btoa(sessionStorage.getItem("basicUsername")+":"+sessionStorage.getItem("basicPassword"))}}):this.isCallToPerunApi(e.url)&&(e=e.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}})),this.handleRequest(e,t)}reauthenticate(){sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.initAuthService.handleAuthStart()}handleRequest(e,t){const r=this.apiRequestConfiguration.shouldHandleError(),l="POST"===e.method&&this.isNotConsolidatorOrLinker()&&this.isCallToPerunApi(e.url);return t.handle(e).pipe((0,ni.b)(c=>{c instanceof M.Zn&&l&&this.initAuthService.loadPrincipal()}),(0,On.K)(c=>{const s=c.error;if("MfaPrivilegeException"===s.type||"MfaRolePrivilegeException"===s.type)return this.mfaHandlerService.openMfaWindow("MfaRolePrivilegeException"===s.type).pipe((0,mi.w)(o=>o?("MfaRolePrivilegeException"===s.type&&window.location.reload(),this.handleRequest(this.replaceAuthenticationToken(e),t)):(0,Rn._)(()=>s)));{this.handleInvalidAccessTokenError(c);const o=this.formatErrors(c,e);return void 0===o?(0,Rn._)(()=>c):(r&&this.notificator.showRPCError(o),(0,Rn._)(()=>o))}}))}replaceAuthenticationToken(e){return e.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}})}isCallToPerunApi(e){return e.startsWith(this.store.getProperty("api_url"))}formatErrors(e,t){let r;console.error(e);const l=e.error;if(l.errorId&&(r=l),void 0!==r)return r.urlWithParams=t.urlWithParams,r.call=t.url,r.payload=t.body,r}isNotConsolidatorOrLinker(){const e=this.store.getProperty("application");return!("Linker"===e||"Consolidator"===e)}handleInvalidAccessTokenError(e){if(401===e.status){const t=ri();this.dialogRefSessionExpiration=this.dialog.open(hE,t),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{this.oauthService.logOut(!0),this.reauthenticate()})}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Ql),i.LFG(ig),i.LFG(_r),i.LFG(jt),i.LFG(Fi),i.LFG(gA),i.LFG(Bv),i.LFG(Jl.Ct))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),_A=(()=>{class n{constructor(){this.newNotificationsCount=0,this.notificationData=[]}storeNotification(e){this.newNotificationsCount++,this.notificationData.push(e)}getNotifications(){return this.notificationData.reverse()}clearNotifications(){this.notificationData=[]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),DL=(()=>{class n{constructor(e,t,r,l){this.http=e,this.notificator=t,this.authService=r,this.storeService=l}getApiUrl(){return void 0===this.api_url&&(this.api_url=this.storeService.getProperty("api_url")),this.api_url+"/"}getHeaders(){let e=new M.WM;return e=e.set("Authorization",this.authService.getAuthorizationHeaderValue()),e}get(e,t=!0){const r=`${this.getApiUrl()}${e}`;return this.http.get(r,{headers:this.getHeaders()}).pipe((0,On.K)(l=>this.formatErrors(l,r,null,t)))}put(e,t={},r=!0){const l=`${this.getApiUrl()}${e}`,c=JSON.stringify(t);return this.http.put(l,c,{headers:this.getHeaders()}).pipe((0,On.K)(s=>this.formatErrors(s,l,c,r)))}post(e,t={},r=!0){const l=`${this.getApiUrl()}${e}`,c=JSON.stringify(t);let s=this.getHeaders();return s=s.set("Content-Type","application/json; charset=utf-8"),this.http.post(l,c,{headers:s}).pipe((0,On.K)(o=>this.formatErrors(o,l,c,r)))}delete(e,t=!0){const r=`${this.getApiUrl()}${e}`;return this.http.delete(r,{headers:this.getHeaders()}).pipe((0,On.K)(l=>this.formatErrors(l,r,null,t)))}formatErrors(e,t,r,l){const c=e.error;return c.call=t,c.payload=r,l&&this.notificator.showRPCError(e.error),(0,Rn._)(c)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(_r),i.LFG(Ql),i.LFG(jt))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),bA=(()=>{class n{isAllSelected(e,t,r=(()=>!0)){const l=t.paginator.pageSize??0,c=t.paginator.pageIndex??0,s=t.paginator.hasNextPage(),o=t.data.length===t.filteredData.length;this.numCanBeSelected=0,this.pageStart=c*l,this.pageEnd=this.pageStart+l,this.numSelected=e,this.dataLength=o?t.data.length:t.filteredData.length;const d=t.sort;return s||(this.modulo=this.dataLength%l,this.pageEnd=0===this.modulo?this.pageStart+l:this.pageStart+this.modulo),this.pageIterator=0,t.sortData(t.filteredData,d).forEach(u=>{this.pageStart<=this.pageIterator&&this.pageIterator{d?u(h)&&this.pageStart<=this.pageIterator&&this.pageIterator!0)){return t===e.data.reduce((l,c)=>l+Number(r(c)),0)}masterTogglePaginated(e,t,r,l=(()=>!0)){t.clear(),r&&e.data.forEach(c=>{l(c)&&t.select(c)})}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Nv=(()=>{class n{constructor(e,t){this.route=e,this.store=t}getPreferredLanguage(e){const t=this.store.getProperty("supported_languages"),r=navigator.languages.map(s=>s.split("-")[0]),l=location.search.substring(1).split("&");let c=null;for(const s of l){const o=s.split("=");"lang"===o[0]&&(c=o[1])}return c&&t.includes(c)?c:e&&t.includes(e)?e:r&&t.includes(r[0])?r[0]:"en"}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(In),i.LFG(jt))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),AA=(()=>{class n{constructor(e){this.storeService=e}static getBrandContainingDomain(e,t){for(const l of e)if(l.newApps.admin===t||l.newApps.profile===t||l.newApps.pwdReset===t||l.newApps.consolidator===t||l.newApps.linker===t)return l;return e.filter(l=>"default"===l.name)[0]||e[0]}getUrlForOtherApplication(e,t){const l=window.location.href.split("/"),c=l[0]+"//"+l[2],s=n.getBrandContainingDomain(this.storeService.getAppsConfig().brands,c);let o;if(s.newApps[e])o=s.newApps[e],"pwdReset"===e&&(o+=`?login-namespace=${t}`);else switch(o=s.oldGuiDomain+"/fed",e){case"admin":o+="/gui/";break;case"profile":o+="/profile/";break;case"pwdReset":o+=`/pwd-reset/?login-namespace=${t}`}return o}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(jt))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Vv=(()=>{class n{setEntity(e){this.entity=e}getEntity(){return this.entity}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),LL=(()=>{class n{constructor(e,t,r){this.store=e,this.oauthService=t,this.httpClient=r,this.mfaApiUrl=this.store.getProperty("mfa").api_url}isMfaAvailable(){return this.httpClient.get(this.mfaApiUrl+"mfaAvailable",{headers:{Authorization:"Bearer "+this.oauthService.getAccessToken()}})}getCategories(){return this.httpClient.get(this.mfaApiUrl+"categories",{headers:{Authorization:"Bearer "+this.oauthService.getAccessToken()}})}getSettings(){return this.httpClient.get(this.mfaApiUrl+"settings",{headers:{Authorization:"Bearer "+this.oauthService.getAccessToken()}})}enforceMfaForAllServices(e){const t=`value=${String(e)}`;return this.httpClient.put(this.mfaApiUrl+"mfaEnforced",t,{headers:{Authorization:"Bearer "+this.oauthService.getAccessToken()}})}updateDetailSettings(e){return this.httpClient.put(this.mfaApiUrl+"settings",e,{headers:{Authorization:"Bearer "+this.oauthService.getAccessToken(),"content-type":"application/json"}})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(jt),i.LFG(Jl.Ct),i.LFG(M.eN))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var Go=(()=>{return(n=Go||(Go={})).Admin="admin",n.Profile="profile",n.PwdReset="pwdReset",n.Consolidator="consolidator",n.Linker="linker",Go;var n})();const yA=["*"],PL=["content"];function RL(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",2),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r._onBackdropClicked())}),i.qZA()}if(2&n){const e=i.oxw();i.ekj("mat-drawer-shown",e._isShowingBackdrop())}}function kL(n,a){1&n&&(i.TgZ(0,"mat-drawer-content"),i.Hsn(1,2),i.qZA())}const OL=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],IL=["mat-drawer","mat-drawer-content","*"];function BL(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",2),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r._onBackdropClicked())}),i.qZA()}if(2&n){const e=i.oxw();i.ekj("mat-drawer-shown",e._isShowingBackdrop())}}function NL(n,a){1&n&&(i.TgZ(0,"mat-sidenav-content"),i.Hsn(1,2),i.qZA())}const VL=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],FL=["mat-sidenav","mat-sidenav-content","*"],fE={transformDrawer:yi("transform",[It("open, open-instant",Le({transform:"none",visibility:"visible"})),It("void",Le({"box-shadow":"none",visibility:"hidden"})),Rt("void => open-instant",Ht("0ms")),Rt("void <=> open, open-instant => void",Ht("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},jL=new i.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function qL(){return!1}}),Fv=new i.OlP("MAT_DRAWER_CONTAINER");let MA=(()=>{class n extends Nl{constructor(e,t,r,l,c){super(r,l,c),this._changeDetectorRef=e,this._container=t}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.sBO),i.Y36((0,i.Gpc)(()=>gE)),i.Y36(i.SBq),i.Y36(Po),i.Y36(i.R0b))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(e,t){2&e&&i.Udp("margin-left",t._container._contentMargins.left,"px")("margin-right",t._container._contentMargins.right,"px")},features:[i._Bn([{provide:Nl,useExisting:n}]),i.qOj],ngContentSelectors:yA,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.Hsn(0))},encapsulation:2,changeDetection:0}),n})(),mE=(()=>{class n{constructor(e,t,r,l,c,s,o,d){this._elementRef=e,this._focusTrapFactory=t,this._focusMonitor=r,this._platform=l,this._ngZone=c,this._interactivityChecker=s,this._doc=o,this._container=d,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new Ee.x,this._animationEnd=new Ee.x,this._animationState="void",this.openedChange=new i.vpe(!0),this._openedStream=this.openedChange.pipe((0,ye.h)(u=>u),(0,At.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,ye.h)(u=>u.fromState!==u.toState&&0===u.toState.indexOf("open")),(0,pc.h)(void 0)),this._closedStream=this.openedChange.pipe((0,ye.h)(u=>!u),(0,At.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,ye.h)(u=>u.fromState!==u.toState&&"void"===u.toState),(0,pc.h)(void 0)),this._destroyed=new Ee.x,this.onPositionChanged=new i.vpe,this._modeChanged=new Ee.x,this.openedChange.subscribe(u=>{u?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{Sa(this._elementRef.nativeElement,"keydown").pipe((0,ye.h)(u=>27===u.keyCode&&!this.disableClose&&!Bn(u)),nt(this._destroyed)).subscribe(u=>this._ngZone.run(()=>{this.close(),u.stopPropagation(),u.preventDefault()}))}),this._animationEnd.pipe(Xd((u,h)=>u.fromState===h.fromState&&u.toState===h.toState)).subscribe(u=>{const{fromState:h,toState:f}=u;(0===f.indexOf("open")&&"void"===h||"void"===f&&0===h.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(e){(e="end"===e?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(e),this._position=e,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(e){this._mode=e,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(e){this._disableClose=Fe(e)}get autoFocus(){return this._autoFocus??("side"===this.mode?"dialog":"first-tabbable")}set autoFocus(e){("true"===e||"false"===e||null==e)&&(e=Fe(e)),this._autoFocus=e}get opened(){return this._opened}set opened(e){this.toggle(Fe(e))}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const r=()=>{e.removeEventListener("blur",r),e.removeEventListener("mousedown",r),e.removeAttribute("tabindex")};e.addEventListener("blur",r),e.addEventListener("mousedown",r)})),e.focus(t)}_focusByCssSelector(e,t){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,t)}_takeFocus(){if(!this._focusTrap)return;const e=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(t=>{!t&&"function"==typeof this._elementRef.nativeElement.focus&&e.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(e){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,e):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const e=this._doc.activeElement;return!!e&&this._elementRef.nativeElement.contains(e)}ngAfterViewInit(){this._isAttached=!0,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){var e;this._focusTrap&&this._focusTrap.destroy(),null===(e=this._anchor)||void 0===e||e.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(e){return this.toggle(!0,e)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(e=!this.opened,t){e&&t&&(this._openedVia=t);const r=this._setOpen(e,!e&&this._isFocusWithinDrawer(),this._openedVia||"program");return e||(this._openedVia=null),r}_setOpen(e,t,r){return this._opened=e,e?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",t&&this._restoreFocus(r)),this._updateFocusTrapState(),new Promise(l=>{this.openedChange.pipe((0,ct.q)(1)).subscribe(c=>l(c?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_updatePositionInParent(e){const t=this._elementRef.nativeElement,r=t.parentNode;"end"===e?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),r.insertBefore(this._anchor,t)),r.appendChild(t)):this._anchor&&this._anchor.parentNode.insertBefore(t,this._anchor)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Gh),i.Y36(ur),i.Y36(Yi),i.Y36(i.R0b),i.Y36(Wh),i.Y36(w.K0,8),i.Y36(Fv,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-drawer"]],viewQuery:function(e,t){if(1&e&&i.Gf(PL,5),2&e){let r;i.iGM(r=i.CRH())&&(t._content=r.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(e,t){1&e&&i.WFA("@transform.start",function(l){return t._animationStarted.next(l)})("@transform.done",function(l){return t._animationEnd.next(l)}),2&e&&(i.uIk("align",null),i.d8E("@transform",t._animationState),i.ekj("mat-drawer-end","end"===t.position)("mat-drawer-over","over"===t.mode)("mat-drawer-push","push"===t.mode)("mat-drawer-side","side"===t.mode)("mat-drawer-opened",t.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:yA,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0,1),i.Hsn(2),i.qZA())},dependencies:[Nl],encapsulation:2,data:{animation:[fE.transformDrawer]},changeDetection:0}),n})(),gE=(()=>{class n{constructor(e,t,r,l,c,s=!1,o){this._dir=e,this._element=t,this._ngZone=r,this._changeDetectorRef=l,this._animationMode=o,this._drawers=new i.n_E,this.backdropClick=new i.vpe,this._destroyed=new Ee.x,this._doCheckSubject=new Ee.x,this._contentMargins={left:null,right:null},this._contentMarginChanges=new Ee.x,e&&e.change.pipe(nt(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),c.change().pipe(nt(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=s}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(e){this._autosize=Fe(e)}get hasBackdrop(){return this._backdropOverride??(!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode)}set hasBackdrop(e){this._backdropOverride=null==e?null:Fe(e)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe(Hi(this._allDrawers),nt(this._destroyed)).subscribe(e=>{this._drawers.reset(e.filter(t=>!t._container||t._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(Hi(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(e=>{this._watchDrawerToggle(e),this._watchDrawerPosition(e),this._watchDrawerMode(e)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,Qf.b)(10),nt(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(e=>e.open())}close(){this._drawers.forEach(e=>e.close())}updateContentMargins(){let e=0,t=0;if(this._left&&this._left.opened)if("side"==this._left.mode)e+=this._left._getWidth();else if("push"==this._left.mode){const r=this._left._getWidth();e+=r,t-=r}if(this._right&&this._right.opened)if("side"==this._right.mode)t+=this._right._getWidth();else if("push"==this._right.mode){const r=this._right._getWidth();t+=r,e-=r}e=e||null,t=t||null,(e!==this._contentMargins.left||t!==this._contentMargins.right)&&(this._contentMargins={left:e,right:t},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(e){e._animationStarted.pipe((0,ye.h)(t=>t.fromState!==t.toState),nt(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"!==e.mode&&e.openedChange.pipe(nt(this._drawers.changes)).subscribe(()=>this._setContainerClass(e.opened))}_watchDrawerPosition(e){!e||e.onPositionChanged.pipe(nt(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,ct.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(e){e&&e._modeChanged.pipe(nt((0,Li.T)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(e){const t=this._element.nativeElement.classList,r="mat-drawer-container-has-open";e?t.add(r):t.remove(r)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(e=>{"end"==e.position?this._end=e:this._start=e}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_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(e=>e&&!e.disableClose&&this._canHaveBackdrop(e)).forEach(e=>e._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(e){return"side"!==e.mode||!!this._backdropOverride}_isDrawerOpen(e){return null!=e&&e.opened}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Sn,8),i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(i.sBO),i.Y36(Ys),i.Y36(jL),i.Y36(i.QbO,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-drawer-container"]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,MA,5),i.Suo(r,mE,5)),2&e){let l;i.iGM(l=i.CRH())&&(t._content=l.first),i.iGM(l=i.CRH())&&(t._allDrawers=l)}},viewQuery:function(e,t){if(1&e&&i.Gf(MA,5),2&e){let r;i.iGM(r=i.CRH())&&(t._userContent=r.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("mat-drawer-container-explicit-backdrop",t._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[i._Bn([{provide:Fv,useExisting:n}])],ngContentSelectors:IL,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(e,t){1&e&&(i.F$t(OL),i.YNc(0,RL,1,2,"div",0),i.Hsn(1),i.Hsn(2,1),i.YNc(3,kL,2,0,"mat-drawer-content",1)),2&e&&(i.Q6J("ngIf",t.hasBackdrop),i.xp6(3),i.Q6J("ngIf",!t._content))},dependencies:[w.O5,MA],styles:['.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[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),n})(),zv=(()=>{class n extends MA{constructor(e,t,r,l,c){super(e,t,r,l,c)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.sBO),i.Y36((0,i.Gpc)(()=>bE)),i.Y36(i.SBq),i.Y36(Po),i.Y36(i.R0b))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(e,t){2&e&&i.Udp("margin-left",t._container._contentMargins.left,"px")("margin-right",t._container._contentMargins.right,"px")},features:[i._Bn([{provide:Nl,useExisting:n}]),i.qOj],ngContentSelectors:yA,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.Hsn(0))},encapsulation:2,changeDetection:0}),n})(),_E=(()=>{class n extends mE{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(e){this._fixedInViewport=Fe(e)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(e){this._fixedTopGap=Vi(e)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(e){this._fixedBottomGap=Vi(e)}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(e,t){2&e&&(i.uIk("align",null),i.Udp("top",t.fixedInViewport?t.fixedTopGap:null,"px")("bottom",t.fixedInViewport?t.fixedBottomGap:null,"px"),i.ekj("mat-drawer-end","end"===t.position)("mat-drawer-over","over"===t.mode)("mat-drawer-push","push"===t.mode)("mat-drawer-side","side"===t.mode)("mat-drawer-opened",t.opened)("mat-sidenav-fixed",t.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[i.qOj],ngContentSelectors:yA,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0,1),i.Hsn(2),i.qZA())},dependencies:[Nl],encapsulation:2,data:{animation:[fE.transformDrawer]},changeDetection:0}),n})(),bE=(()=>{class n extends gE{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-sidenav-container"]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,zv,5),i.Suo(r,_E,5)),2&e){let l;i.iGM(l=i.CRH())&&(t._content=l.first),i.iGM(l=i.CRH())&&(t._allDrawers=l)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("mat-drawer-container-explicit-backdrop",t._backdropOverride)},exportAs:["matSidenavContainer"],features:[i._Bn([{provide:Fv,useExisting:n}]),i.qOj],ngContentSelectors:FL,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(e,t){1&e&&(i.F$t(VL),i.YNc(0,BL,1,2,"div",0),i.Hsn(1),i.Hsn(2,1),i.YNc(3,NL,2,0,"mat-sidenav-content",1)),2&e&&(i.Q6J("ngIf",t.hasBackdrop),i.xp6(3),i.Q6J("ngIf",!t._content))},dependencies:[w.O5,zv],styles:['.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[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),n})(),jv=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[w.ez,_t,rs,rs,_t]}),n})();function AE(n){for(let e in n){var a;let t=null!==(a=n[e])&&void 0!==a?a:"";switch(e){case"display":n.display="flex"===t?["-webkit-flex","flex"]:"inline-flex"===t?["-webkit-inline-flex","inline-flex"]:t;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":n["-webkit-"+e]=t;break;case"flex-direction":n["-webkit-flex-direction"]=t,n["flex-direction"]=t;break;case"order":n.order=n["-webkit-"+e]=isNaN(+t)?"0":t}}return n}const qv="inline",wA=["row","column","row-reverse","column-reverse"];function yE(n){let[a,e,t]=function ME(n){var a,e;n=null!==(a=null===(e=n)||void 0===e?void 0:e.toLowerCase())&&void 0!==a?a:"";let[t,r,l]=n.split(" ");return wA.find(c=>c===t)||(t=wA[0]),r===qv&&(r=l!==qv?l:"",l=qv),[t,YL(r),!!l]}(n);return function WL(n,a=null,e=!1){return{display:e?"inline-flex":"flex","box-sizing":"border-box","flex-direction":n,"flex-wrap":a||null}}(a,e,t)}function YL(n){if(n)switch(n.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":n="wrap-reverse";break;case"no":case"none":case"nowrap":n="nowrap";break;default:n="wrap"}return n}const GL={provide:i.tb,useFactory:function UL(n,a){return()=>{if((0,w.NF)(a)){const e=Array.from(n.querySelectorAll(`[class*=${wE}]`)),t=/\bflex-layout-.+?\b/g;e.forEach(r=>{r.classList.contains(`${wE}ssr`)&&r.parentNode?r.parentNode.removeChild(r):r.className.replace(t,"")})}}},deps:[w.K0,i.Lbi],multi:!0},wE="flex-layout-";let Yv=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[GL]}),n})();class zu{constructor(a=!1,e="all",t="",r="",l=0){this.matches=a,this.mediaQuery=e,this.mqAlias=t,this.suffix=r,this.priority=l,this.property=""}clone(){return new zu(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let $L=(()=>{class n{constructor(){this.stylesheet=new Map}addStyleToElement(e,t,r){const l=this.stylesheet.get(e);l?l.set(t,r):this.stylesheet.set(e,new Map([[t,r]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(e,t){const r=this.stylesheet.get(e);let l="";if(r){const c=r.get(t);("number"==typeof c||"string"==typeof c)&&(l=c+"")}return l}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Wv={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[],multiplier:void 0,defaultUnit:"px",detectLayoutDisplay:!1},Ks=new i.OlP("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>Wv}),Jp=new i.OlP("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),Uv=new i.OlP("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function CE(n,a){var e,t;return n=null!==(e=null===(t=n)||void 0===t?void 0:t.clone())&&void 0!==e?e:new zu,a&&(n.mqAlias=a.alias,n.mediaQuery=a.mediaQuery,n.suffix=a.suffix,n.priority=a.priority),n}class En{constructor(){this.shouldCache=!0}sideEffect(a,e,t){}}let on=(()=>{class n{constructor(e,t,r,l){this._serverStylesheet=e,this._serverModuleLoaded=t,this._platformId=r,this.layoutConfig=l}applyStyleToElement(e,t,r=null){let l={};"string"==typeof t&&(l[t]=r,t=l),l=this.layoutConfig.disableVendorPrefixes?t:AE(t),this._applyMultiValueStyleToElement(l,e)}applyStyleToElements(e,t=[]){const r=this.layoutConfig.disableVendorPrefixes?e:AE(e);t.forEach(l=>{this._applyMultiValueStyleToElement(r,l)})}getFlowDirection(e){const t="flex-direction";let r=this.lookupStyle(e,t);return[r||"row",this.lookupInlineStyle(e,t)||(0,w.PM)(this._platformId)&&this._serverModuleLoaded?r:""]}hasWrap(e){return"wrap"===this.lookupStyle(e,"flex-wrap")}lookupAttributeValue(e,t){var r;return null!==(r=e.getAttribute(t))&&void 0!==r?r:""}lookupInlineStyle(e,t){return(0,w.NF)(this._platformId)?e.style.getPropertyValue(t):function ZL(n,a){var e;return null!==(e=vE(n)[a])&&void 0!==e?e:""}(e,t)}lookupStyle(e,t,r=!1){let l="";return e&&((l=this.lookupInlineStyle(e,t))||((0,w.NF)(this._platformId)?r||(l=getComputedStyle(e).getPropertyValue(t)):this._serverModuleLoaded&&(l=this._serverStylesheet.getStyleForElement(e,t)))),l?l.trim():""}_applyMultiValueStyleToElement(e,t){Object.keys(e).sort().forEach(r=>{const l=e[r],c=Array.isArray(l)?l:[l];c.sort();for(let s of c)s=s?s+"":"",(0,w.NF)(this._platformId)||!this._serverModuleLoaded?(0,w.NF)(this._platformId)?t.style.setProperty(r,s):JL(t,r,s):this._serverStylesheet.addStyleToElement(t,r,s)})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG($L),i.LFG(Jp),i.LFG(i.Lbi),i.LFG(Ks))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function JL(n,a,e){a=a.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const t=vE(n);t[a]=e??"",function QL(n,a){let e="";for(const t in a)a[t]&&(e+=`${t}:${a[t]};`);n.setAttribute("style",e)}(n,t)}function vE(n){const a={},e=n.getAttribute("style");if(e){const t=e.split(/;+/g);for(let r=0;r0){const c=l.indexOf(":");if(-1===c)throw new Error(`Invalid CSS style: ${l}`);a[l.substr(0,c).trim()]=l.substr(c+1).trim()}}}return a}function rg(n,a){return(a&&a.priority||0)-(n&&n.priority||0)}function XL(n,a){return(n.priority||0)-(a.priority||0)}let Gv=(()=>{class n{constructor(e,t,r){this._zone=e,this._platformId=t,this._document=r,this.source=new Ii(new zu(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const e=[];return this.registry.forEach((t,r)=>{t.matches&&e.push(r)}),e}isActive(e){var t;return null!==(t=this.registry.get(e)?.matches)&&void 0!==t?t:this.registerQuery(e).some(l=>l.matches)}observe(e,t=!1){if(e&&e.length){const r=this._observable$.pipe((0,ye.h)(c=>!t||e.indexOf(c.mediaQuery)>-1)),l=new _i.y(c=>{const s=this.registerQuery(e);if(s.length){const o=s.pop();s.forEach(d=>{c.next(d)}),this.source.next(o)}c.complete()});return(0,Li.T)(l,r)}return this._observable$}registerQuery(e){const t=Array.isArray(e)?e:[e],r=[];return function KL(n,a){const e=n.filter(t=>!TE[t]);if(e.length>0){const t=e.join(", ");try{const r=a.createElement("style");r.setAttribute("type","text/css"),r.styleSheet||r.appendChild(a.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`)),a.head.appendChild(r),e.forEach(l=>TE[l]=r)}catch(r){console.error(r)}}}(t,this._document),t.forEach(l=>{const c=o=>{this._zone.run(()=>this.source.next(new zu(o.matches,l)))};let s=this.registry.get(l);s||(s=this.buildMQL(l),s.addListener(c),this.pendingRemoveListenerFns.push(()=>s.removeListener(c)),this.registry.set(l,s)),s.matches&&r.push(new zu(!0,l))}),r}ngOnDestroy(){let e;for(;e=this.pendingRemoveListenerFns.pop();)e()}buildMQL(e){return function eP(n,a){return a&&window.matchMedia("all").addListener?window.matchMedia(n):{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{},onchange:null,addEventListener(){},removeEventListener(){},dispatchEvent:()=>!1}}(e,(0,w.NF)(this._platformId))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.R0b),i.LFG(i.Lbi),i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const TE={},tP=[{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}],xE="(orientation: portrait) and (max-width: 599.98px)",SE="(orientation: landscape) and (max-width: 959.98px)",EE="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",DE="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",HE="(orientation: portrait) and (min-width: 840px)",LE="(orientation: landscape) and (min-width: 1280px)",Kl={HANDSET:`${xE}, ${SE}`,TABLET:`${EE} , ${DE}`,WEB:`${HE}, ${LE} `,HANDSET_PORTRAIT:`${xE}`,TABLET_PORTRAIT:`${EE} `,WEB_PORTRAIT:`${HE}`,HANDSET_LANDSCAPE:`${SE}`,TABLET_LANDSCAPE:`${DE}`,WEB_LANDSCAPE:`${LE}`},iP=[{alias:"handset",priority:2e3,mediaQuery:Kl.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:Kl.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:Kl.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:Kl.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:Kl.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:Kl.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:Kl.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:Kl.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:Kl.WEB_PORTRAIT,overlapping:!0}],nP=/(\.|-|_)/g;function rP(n){let a=n.length>0?n.charAt(0):"",e=n.length>1?n.slice(1):"";return a.toUpperCase()+e}const lP=new i.OlP("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const n=(0,i.f3M)(Uv),a=(0,i.f3M)(Ks),e=[].concat.apply([],(n||[]).map(r=>Array.isArray(r)?r:[r]));return function oP(n,a=[]){const e={};return n.forEach(t=>{e[t.alias]=t}),a.forEach(t=>{e[t.alias]?function Xl(n,...a){if(null==n)throw TypeError("Cannot convert undefined or null to object");for(let e of a)if(null!=e)for(let t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n}(e[t.alias],t):e[t.alias]=t}),function sP(n){return n.forEach(a=>{a.suffix||(a.suffix=function aP(n){return n.replace(nP,"|").split("|").map(rP).join("")}(a.alias),a.overlapping=!!a.overlapping)}),n}(Object.keys(e).map(t=>e[t]))}((a.disableDefaultBps?[]:tP).concat(a.addOrientationBps?iP:[]),e)}});let $v=(()=>{class n{constructor(e){this.findByMap=new Map,this.items=[...e].sort(XL)}findByAlias(e){return e?this.findWithPredicate(e,t=>t.alias===e):null}findByQuery(e){return this.findWithPredicate(e,t=>t.mediaQuery===e)}get overlappings(){return this.items.filter(e=>e.overlapping)}get aliases(){return this.items.map(e=>e.alias)}get suffixes(){return this.items.map(e=>{var t;return null!==(t=e?.suffix)&&void 0!==t?t:""})}findWithPredicate(e,t){var r;let l=this.findByMap.get(e);var c;return l||(l=null!==(c=this.items.find(t))&&void 0!==c?c:null,this.findByMap.set(e,l)),null!==(r=l)&&void 0!==r?r:null}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(lP))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Qp="print",cP={alias:Qp,mediaQuery:Qp,priority:1e3};let dP=(()=>{class n{constructor(e,t,r){this.breakpoints=e,this.layoutConfig=t,this._document=r,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.formerActivations=null,this.isPrinting=!1,this.queue=new uP,this.deactivations=[]}withPrintQuery(e){return[...e,Qp]}isPrintEvent(e){return e.mediaQuery.startsWith(Qp)}get printAlias(){var e;return[...null!==(e=this.layoutConfig.printWithBreakpoints)&&void 0!==e?e:[]]}get printBreakPoints(){return this.printAlias.map(e=>this.breakpoints.findByAlias(e)).filter(e=>null!==e)}getEventBreakpoints({mediaQuery:e}){const t=this.breakpoints.findByQuery(e);return(t?[...this.printBreakPoints,t]:this.printBreakPoints).sort(rg)}updateEvent(e){let t=this.breakpoints.findByQuery(e.mediaQuery);var r,l;return this.isPrintEvent(e)&&(t=this.getEventBreakpoints(e)[0],e.mediaQuery=null!==(r=null===(l=t)||void 0===l?void 0:l.mediaQuery)&&void 0!==r?r:""),CE(e,t)}registerBeforeAfterPrintHooks(e){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const t=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(e,this.getEventBreakpoints(new zu(!0,Qp))),e.updateStyles())},r=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(e),e.updateStyles())};this._document.defaultView.addEventListener("beforeprint",t),this._document.defaultView.addEventListener("afterprint",r),this.beforePrintEventListeners.push(t),this.afterPrintEventListeners.push(r)}interceptEvents(e){return t=>{this.isPrintEvent(t)?t.matches&&!this.isPrinting?(this.startPrinting(e,this.getEventBreakpoints(t)),e.updateStyles()):!t.matches&&this.isPrinting&&!this.isPrintingBeforeAfterEvent&&(this.stopPrinting(e),e.updateStyles()):this.collectActivations(e,t)}}blockPropagation(){return e=>!(this.isPrinting||this.isPrintEvent(e))}startPrinting(e,t){this.isPrinting=!0,this.formerActivations=e.activatedBreakpoints,e.activatedBreakpoints=this.queue.addPrintBreakpoints(t)}stopPrinting(e){e.activatedBreakpoints=this.deactivations,this.deactivations=[],this.formerActivations=null,this.queue.clear(),this.isPrinting=!1}collectActivations(e,t){if(!this.isPrinting||this.isPrintingBeforeAfterEvent){if(!this.isPrintingBeforeAfterEvent)return void(this.deactivations=[]);if(!t.matches){const r=this.breakpoints.findByQuery(t.mediaQuery);if(r){const l=this.formerActivations&&this.formerActivations.includes(r),c=!this.formerActivations&&e.activatedBreakpoints.includes(r);(l||c)&&(this.deactivations.push(r),this.deactivations.sort(rg))}}}}ngOnDestroy(){this._document.defaultView&&(this.beforePrintEventListeners.forEach(e=>this._document.defaultView.removeEventListener("beforeprint",e)),this.afterPrintEventListeners.forEach(e=>this._document.defaultView.removeEventListener("afterprint",e)))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG($v),i.LFG(Ks),i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class uP{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(a){return a.push(cP),a.sort(rg),a.forEach(e=>this.addBreakpoint(e)),this.printBreakpoints}addBreakpoint(a){a&&void 0===this.printBreakpoints.find(t=>t.mediaQuery===a.mediaQuery)&&(this.printBreakpoints=function hP(n){var a;return null!==(a=n?.mediaQuery.startsWith(Qp))&&void 0!==a&&a}(a)?[a,...this.printBreakpoints]:[...this.printBreakpoints,a])}clear(){this.printBreakpoints=[]}}let mn=(()=>{class n{constructor(e,t,r){this.matchMedia=e,this.breakpoints=t,this.hook=r,this._useFallbacks=!0,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 Ee.x,this.observeActivations()}get activatedAlias(){var e,t;return null!==(e=null===(t=this.activatedBreakpoints[0])||void 0===t?void 0:t.alias)&&void 0!==e?e:""}set activatedBreakpoints(e){this._activatedBreakpoints=[...e]}get activatedBreakpoints(){return[...this._activatedBreakpoints]}set useFallbacks(e){this._useFallbacks=e}onMediaChange(e){const t=this.findByQuery(e.mediaQuery);if(t){e=CE(e,t);const r=this.activatedBreakpoints.indexOf(t);e.matches&&-1===r?(this._activatedBreakpoints.push(t),this._activatedBreakpoints.sort(rg),this.updateStyles()):!e.matches&&-1!==r&&(this._activatedBreakpoints.splice(r,1),this._activatedBreakpoints.sort(rg),this.updateStyles())}}init(e,t,r,l,c=[]){PE(this.updateMap,e,t,r),PE(this.clearMap,e,t,l),this.buildElementKeyMap(e,t),this.watchExtraTriggers(e,t,c)}getValue(e,t,r){const l=this.elementMap.get(e);if(l){const c=void 0!==r?l.get(r):this.getActivatedValues(l,t);if(c)return c.get(t)}}hasValue(e,t){const r=this.elementMap.get(e);if(r){const l=this.getActivatedValues(r,t);if(l)return void 0!==l.get(t)||!1}return!1}setValue(e,t,r,l){let c=this.elementMap.get(e);if(c){var s;const d=(null!==(s=c.get(l))&&void 0!==s?s:new Map).set(t,r);c.set(l,d),this.elementMap.set(e,c)}else c=(new Map).set(l,(new Map).set(t,r)),this.elementMap.set(e,c);const o=this.getValue(e,t);void 0!==o&&this.updateElement(e,t,o)}trackValue(e,t){return this.subject.asObservable().pipe((0,ye.h)(r=>r.element===e&&r.key===t))}updateStyles(){this.elementMap.forEach((e,t)=>{const r=new Set(this.elementKeyMap.get(t));let l=this.getActivatedValues(e);l&&l.forEach((c,s)=>{this.updateElement(t,s,c),r.delete(s)}),r.forEach(c=>{if(l=this.getActivatedValues(e,c),l){const s=l.get(c);this.updateElement(t,c,s)}else this.clearElement(t,c)})})}clearElement(e,t){const r=this.clearMap.get(e);if(r){const l=r.get(t);l&&(l(),this.subject.next({element:e,key:t,value:""}))}}updateElement(e,t,r){const l=this.updateMap.get(e);if(l){const c=l.get(t);c&&(c(r),this.subject.next({element:e,key:t,value:r}))}}releaseElement(e){const t=this.watcherMap.get(e);t&&(t.forEach(l=>l.unsubscribe()),this.watcherMap.delete(e));const r=this.elementMap.get(e);r&&(r.forEach((l,c)=>r.delete(c)),this.elementMap.delete(e))}triggerUpdate(e,t){const r=this.elementMap.get(e);if(r){const l=this.getActivatedValues(r,t);l&&(t?this.updateElement(e,t,l.get(t)):l.forEach((c,s)=>this.updateElement(e,s,c)))}}buildElementKeyMap(e,t){let r=this.elementKeyMap.get(e);r||(r=new Set,this.elementKeyMap.set(e,r)),r.add(t)}watchExtraTriggers(e,t,r){if(r&&r.length){let l=this.watcherMap.get(e);if(l||(l=new Map,this.watcherMap.set(e,l)),!l.get(t)){const s=(0,Li.T)(...r).subscribe(()=>{const o=this.getValue(e,t);this.updateElement(e,t,o)});l.set(t,s)}}}findByQuery(e){return this.breakpoints.findByQuery(e)}getActivatedValues(e,t){for(let l=0;lt.mediaQuery);this.hook.registerBeforeAfterPrintHooks(this),this.matchMedia.observe(this.hook.withPrintQuery(e)).pipe((0,ni.b)(this.hook.interceptEvents(this)),(0,ye.h)(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Gv),i.LFG($v),i.LFG(dP))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function PE(n,a,e,t){if(void 0!==t){var r;const l=null!==(r=n.get(a))&&void 0!==r?r:new Map;l.set(e,t),n.set(a,l)}}let wn=(()=>{class n{constructor(e,t,r,l){this.elementRef=e,this.styleBuilder=t,this.styler=r,this.marshal=l,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new Ee.x,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(e){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,e,this.marshal.activatedAlias)}ngOnChanges(e){Object.keys(e).forEach(t=>{if(-1!==this.inputs.indexOf(t)){const r=t.split(".").slice(1).join(".");this.setValue(e[t].currentValue,r)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(e=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),e)}addStyles(e,t){const r=this.styleBuilder,l=r.shouldCache;let c=this.styleCache.get(e);(!c||!l)&&(c=r.buildStyles(e,t),l&&this.styleCache.set(e,c)),this.mru={...c},this.applyStyleToElement(c),r.sideEffect(e,c,t)}clearStyles(){Object.keys(this.mru).forEach(e=>{this.mru[e]=""}),this.applyStyleToElement(this.mru),this.mru={},this.currentValue=void 0}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(e,t=!1){if(e){const[r,l]=this.styler.getFlowDirection(e);if(!l&&t){const c=yE(r);this.styler.applyStyleToElements(c,[e])}return r.trim()}return"row"}hasWrap(e){return this.styler.hasWrap(e)}applyStyleToElement(e,t,r=this.nativeElement){this.styler.applyStyleToElement(r,e,t)}setValue(e,t){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,e,t)}updateWithValue(e){this.currentValue!==e&&(this.addStyles(e),this.currentValue=e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(En),i.Y36(on),i.Y36(mn))},n.\u0275dir=i.lG2({type:n,features:[i.TTD]}),n})();class SP{constructor(a,e,t=!0){this.key=a,this.value=e,this.key=t?a.replace(/['"]/g,"").trim():a.trim(),this.value=t?e.replace(/['"]/g,"").trim():e.trim(),this.value=this.value.replace(/;/,"")}}function IE(n){let a=typeof n;return"object"===a?n.constructor===Array?"array":n.constructor===Set?"set":"object":a}function NE(n){const[a,...e]=n.split(":");return new SP(a,e.join(":"))}function VE(n,a){return a.key&&(n[a.key]=a.value),n}let HP=(()=>{class n extends wn{constructor(e,t,r,l,c,s,o,d,u){var h;super(e,null,t,r),this.sanitizer=l,this.ngStyleInstance=o,this.DIRECTIVE_KEY="ngStyle",this.ngStyleInstance||(this.ngStyleInstance=new w.PC(e,c,s)),this.init();const f=null!==(h=this.nativeElement.getAttribute("style"))&&void 0!==h?h:"";this.fallbackStyles=this.buildStyleMap(f),this.isServer=d&&(0,w.PM)(u)}updateWithValue(e){const t=this.buildStyleMap(e);this.ngStyleInstance.ngStyle={...this.fallbackStyles,...t},this.isServer&&this.applyStyleToElement(t),this.ngStyleInstance.ngDoCheck()}clearStyles(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}buildStyleMap(e){const t=r=>{var l;return null!==(l=this.sanitizer.sanitize(i.q3G.STYLE,r))&&void 0!==l?l:""};if(e)switch(IE(e)){case"string":return FE(function EP(n,a=";"){return String(n).trim().split(a).map(e=>e.trim()).filter(e=>""!==e)}(e),t);case"array":return FE(e,t);default:return function BE(n,a){let e=[];return"set"===IE(n)?n.forEach(t=>e.push(t)):Object.keys(n).forEach(t=>{e.push(`${t}:${n[t]}`)}),function DP(n,a){return n.map(NE).filter(t=>!!t).map(t=>(a&&(t.value=a(t.value)),t)).reduce(VE,{})}(e,a)}(e,t)}return{}}ngDoCheck(){this.ngStyleInstance.ngDoCheck()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(on),i.Y36(mn),i.Y36(Ki),i.Y36(i.aQg),i.Y36(i.Qsj),i.Y36(w.PC,10),i.Y36(Jp),i.Y36(i.Lbi))},n.\u0275dir=i.lG2({type:n,features:[i.qOj]}),n})();const LP=["ngStyle","ngStyle.xs","ngStyle.sm","ngStyle.md","ngStyle.lg","ngStyle.xl","ngStyle.lt-sm","ngStyle.lt-md","ngStyle.lt-lg","ngStyle.lt-xl","ngStyle.gt-xs","ngStyle.gt-sm","ngStyle.gt-md","ngStyle.gt-lg"];let Jv=(()=>{class n extends HP{constructor(){super(...arguments),this.inputs=LP}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","ngStyle",""],["","ngStyle.xs",""],["","ngStyle.sm",""],["","ngStyle.md",""],["","ngStyle.lg",""],["","ngStyle.xl",""],["","ngStyle.lt-sm",""],["","ngStyle.lt-md",""],["","ngStyle.lt-lg",""],["","ngStyle.lt-xl",""],["","ngStyle.gt-xs",""],["","ngStyle.gt-sm",""],["","ngStyle.gt-md",""],["","ngStyle.gt-lg",""]],inputs:{ngStyle:"ngStyle","ngStyle.xs":"ngStyle.xs","ngStyle.sm":"ngStyle.sm","ngStyle.md":"ngStyle.md","ngStyle.lg":"ngStyle.lg","ngStyle.xl":"ngStyle.xl","ngStyle.lt-sm":"ngStyle.lt-sm","ngStyle.lt-md":"ngStyle.lt-md","ngStyle.lt-lg":"ngStyle.lt-lg","ngStyle.lt-xl":"ngStyle.lt-xl","ngStyle.gt-xs":"ngStyle.gt-xs","ngStyle.gt-sm":"ngStyle.gt-sm","ngStyle.gt-md":"ngStyle.gt-md","ngStyle.gt-lg":"ngStyle.gt-lg"},features:[i.qOj]}),n})();function FE(n,a){return n.map(NE).filter(t=>!!t).map(t=>(a&&(t.value=a(t.value)),t)).reduce(VE,{})}let zE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[Yv]}),n})();const jE=es({passive:!0});let PP=(()=>{class n{constructor(e,t){this._platform=e,this._ngZone=t,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return $i.E;const t=un(e),r=this._monitoredElements.get(t);if(r)return r.subject;const l=new Ee.x,c="cdk-text-field-autofilled",s=o=>{"cdk-text-field-autofill-start"!==o.animationName||t.classList.contains(c)?"cdk-text-field-autofill-end"===o.animationName&&t.classList.contains(c)&&(t.classList.remove(c),this._ngZone.run(()=>l.next({target:o.target,isAutofilled:!1}))):(t.classList.add(c),this._ngZone.run(()=>l.next({target:o.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{t.addEventListener("animationstart",s,jE),t.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(t,{subject:l,unlisten:()=>{t.removeEventListener("animationstart",s,jE)}}),l}stopMonitoring(e){const t=un(e),r=this._monitoredElements.get(t);r&&(r.unlisten(),r.subject.complete(),t.classList.remove("cdk-text-field-autofill-monitored"),t.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(t))}ngOnDestroy(){this._monitoredElements.forEach((e,t)=>this.stopMonitoring(t))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Yi),i.LFG(i.R0b))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),vA=(()=>{class n{constructor(e,t,r,l){this._elementRef=e,this._platform=t,this._ngZone=r,this._destroyed=new Ee.x,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._handleFocusEvent=c=>{this._hasFocus="focus"===c.type},this._document=l,this._textareaElement=this._elementRef.nativeElement}get minRows(){return this._minRows}set minRows(e){this._minRows=Vi(e),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(e){this._maxRows=Vi(e),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(e){e=Fe(e),this._enabled!==e&&((this._enabled=e)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(e){this._cachedPlaceholderHeight=void 0,e?this._textareaElement.setAttribute("placeholder",e):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}_setMinHeight(){const e=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;e&&(this._textareaElement.style.minHeight=e)}_setMaxHeight(){const e=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;e&&(this._textareaElement.style.maxHeight=e)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{Sa(this._getWindow(),"resize").pipe(Bc(16),nt(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0)),this._textareaElement.addEventListener("focus",this._handleFocusEvent),this._textareaElement.addEventListener("blur",this._handleFocusEvent)}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._textareaElement.removeEventListener("focus",this._handleFocusEvent),this._textareaElement.removeEventListener("blur",this._handleFocusEvent),this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let e=this._textareaElement.cloneNode(!1);e.rows=1,e.style.position="absolute",e.style.visibility="hidden",e.style.border="none",e.style.padding="0",e.style.height="",e.style.minHeight="",e.style.maxHeight="",e.style.overflow="hidden",this._textareaElement.parentNode.appendChild(e),this._cachedLineHeight=e.clientHeight,e.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){const e=this._textareaElement,t=e.style.marginBottom||"",r=this._platform.FIREFOX,l=r&&this._hasFocus,c=r?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";l&&(e.style.marginBottom=`${e.clientHeight}px`),e.classList.add(c);const s=e.scrollHeight-4;return e.classList.remove(c),l&&(e.style.marginBottom=t),s}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const e=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=e}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(e=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;const t=this._elementRef.nativeElement,r=t.value;if(!e&&this._minRows===this._previousMinRows&&r===this._previousValue)return;const l=this._measureScrollHeight(),c=Math.max(l,this._cachedPlaceholderHeight||0);t.style.height=`${c}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(t)):setTimeout(()=>this._scrollToCaretPosition(t))}),this._previousValue=r,this._previousMinRows=this._minRows}reset(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollToCaretPosition(e){const{selectionStart:t,selectionEnd:r}=e;!this._destroyed.isStopped&&this._hasFocus&&e.setSelectionRange(t,r)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Yi),i.Y36(i.R0b),i.Y36(w.K0,8))},n.\u0275dir=i.lG2({type:n,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(e,t){1&e&&i.NdJ("input",function(){return t._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]}),n})(),qE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();const YE=new i.OlP("MAT_INPUT_VALUE_ACCESSOR"),RP=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let kP=0;const OP=Zh(class{constructor(n,a,e,t){this._defaultErrorStateMatcher=n,this._parentForm=a,this._parentFormGroup=e,this.ngControl=t,this.stateChanges=new Ee.x}});let zn=(()=>{class n extends OP{constructor(e,t,r,l,c,s,o,d,u,h){super(s,l,c,r),this._elementRef=e,this._platform=t,this._autofillMonitor=d,this._formField=h,this._uid="mat-input-"+kP++,this.focused=!1,this.stateChanges=new Ee.x,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(B=>r1().has(B)),this._iOSKeyupListener=B=>{const X=B.target;!X.value&&0===X.selectionStart&&0===X.selectionEnd&&(X.setSelectionRange(1,1),X.setSelectionRange(0,0))};const f=this._elementRef.nativeElement,b=f.nodeName.toLowerCase();this._inputValueAccessor=o||f,this._previousNativeValue=this.value,this.id=this.id,t.IOS&&u.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===b,this._isTextarea="textarea"===b,this._isInFormField=!!h,this._isNativeSelect&&(this.controlType=f.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=Fe(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){var e,t,r,l;return null!==(e=null!==(t=this._required)&&void 0!==t?t:null===(r=this.ngControl)||void 0===r||null===(l=r.control)||void 0===l?void 0:l.hasValidator(yn.required))&&void 0!==e&&e}set required(e){this._required=Fe(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&r1().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=Fe(e)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var e;const t=this._formField,r=!t||"legacy"!==t.appearance||null!==(e=t._hasLabel)&&void 0!==e&&e.call(t)?this.placeholder:null;if(r!==this._previousPlaceholder){const l=this._elementRef.nativeElement;this._previousPlaceholder=r,r?l.setAttribute("placeholder",r):l.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){RP.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Yi),i.Y36(os,10),i.Y36($l,8),i.Y36(jo,8),i.Y36(qs),i.Y36(YE,10),i.Y36(PP),i.Y36(i.R0b),i.Y36(Tu,8))},n.\u0275dir=i.lG2({type:n,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(e,t){1&e&&i.NdJ("focus",function(){return t._focusChanged(!0)})("blur",function(){return t._focusChanged(!1)})("input",function(){return t._onInput()}),2&e&&(i.Ikx("disabled",t.disabled)("required",t.required),i.uIk("id",t.id)("data-placeholder",t.placeholder)("name",t.name||null)("readonly",t.readonly&&!t._isNativeSelect||null)("aria-invalid",t.empty&&t.required?null:t.errorState)("aria-required",t.required),i.ekj("mat-input-server",t._isServer)("mat-native-select-inline",t._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[i._Bn([{provide:vu,useExisting:n}]),i.qOj,i.TTD]}),n})(),Xp=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[qs],imports:[qE,$s,_t,qE,$s]}),n})();function IP(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT_ERROR")))}let BP=(()=>{class n{constructor(e,t,r,l,c){this.dialogRef=e,this.translate=t,this.notificator=r,this.rtMessages=l,this.storeService=c,this.message="",this.subject="",this.instanceName=""}ngOnInit(){this.instanceName=this.storeService.getProperty("config")}sendBugReport(){this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(e=>{this.dialogRef.afterClosed().subscribe(()=>this.notificator.showSuccess(this.translate.instant("DIALOGS.REPORT_ISSUE.SUCCESS")+String(e.ticketNumber))),this.dialogRef.close()})}getFullEmailBody(){return this.message.concat("\n ","------------------------\n ","Perun instance: ",this.instanceName,"\n ","Sended from new Perun Gui, version: ",T(4147).i8)}close(){this.dialogRef.close()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(xi),i.Y36($t),i.Y36(_r),i.Y36(po),i.Y36(jt))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-report-issue-dialog"]],decls:29,vars:25,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","","type","text",3,"ngModel","ngModelChange"],["subjectModel","ngModel"],[4,"ngIf"],["matInput","",3,"placeholder","ngModel","ngModelChange"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(e,t){if(1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.qZA(),i.TgZ(3,"div",1)(4,"mat-form-field")(5,"mat-label"),i._uU(6),i.ALo(7,"translate"),i.qZA(),i.TgZ(8,"input",2,3),i.NdJ("ngModelChange",function(l){return t.subject=l}),i.qZA(),i.YNc(10,IP,3,3,"mat-error",4),i.qZA(),i.TgZ(11,"mat-form-field")(12,"mat-label"),i._uU(13),i.ALo(14,"translate"),i.qZA(),i.TgZ(15,"textarea",5),i.NdJ("ngModelChange",function(l){return t.message=l}),i.ALo(16,"translate"),i._uU(17," "),i.qZA(),i.TgZ(18,"mat-hint"),i._uU(19),i.ALo(20,"translate"),i.qZA()()(),i.TgZ(21,"div",6)(22,"div",7)(23,"button",8),i.NdJ("click",function(){return t.close()}),i._uU(24),i.ALo(25,"translate"),i.qZA(),i.TgZ(26,"button",9),i.NdJ("click",function(){return t.sendBugReport()}),i._uU(27),i.ALo(28,"translate"),i.qZA()()()),2&e){const r=i.MAs(9);i.xp6(1),i.Oqu(i.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.TITLE")),i.xp6(5),i.Oqu(i.lcZ(7,13,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT")),i.xp6(2),i.Q6J("ngModel",t.subject),i.xp6(2),i.Q6J("ngIf",r.invalid),i.xp6(3),i.Oqu(i.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE")),i.xp6(2),i.s9C("placeholder",i.lcZ(16,17,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_PLACEHOLDER")),i.Q6J("ngModel",t.message),i.xp6(4),i.Oqu(i.lcZ(20,19,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_HINT")),i.xp6(5),i.hij(" ",i.lcZ(25,21,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.CANCEL")," "),i.xp6(2),i.Q6J("disabled",r.invalid),i.xp6(1),i.hij(" ",i.lcZ(28,23,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SEND")," ")}},dependencies:[w.O5,An,pn,qr,ka,Dt,jl,hn,N_,Ra,zn,Qi,sn,Wi,Qe],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),n})(),WE=(()=>{class n{transform(e,t,r){return e[`${r}_${t}`]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"localisedText",type:n,pure:!0}),n})(),NP=(()=>{class n{transform(e,t){return e["link_"+t]||e.link_en}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"localisedLink",type:n,pure:!0}),n})(),VP=(()=>{class n{transform(e){return e.includes("/")?e:"/assets/config/"+e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"footerLogoPath",type:n,pure:!0}),n})();function FP(n,a){if(1&n&&(i.TgZ(0,"a",13),i.ALo(1,"localisedLink"),i._UZ(2,"img",14),i.ALo(3,"footerLogoPath"),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw(3);i.Q6J("href",i.xi3(1,2,e,t.language),i.LSH),i.xp6(2),i.s9C("src",i.lcZ(3,5,e.logo),i.LSH)}}function zP(n,a){if(1&n&&(i.TgZ(0,"span"),i._UZ(1,"img",14),i.ALo(2,"footerLogoPath"),i.qZA()),2&n){const e=i.oxw().$implicit;i.xp6(1),i.s9C("src",i.lcZ(2,1,e.logo),i.LSH)}}function jP(n,a){if(1&n&&(i.TgZ(0,"div"),i.YNc(1,FP,4,7,"a",11),i.ALo(2,"localisedLink"),i.YNc(3,zP,3,3,"span",12),i.ALo(4,"localisedLink"),i.qZA()),2&n){const e=a.$implicit,t=i.oxw(3);i.xp6(1),i.Q6J("ngIf",i.xi3(2,2,e,t.language)),i.xp6(2),i.Q6J("ngIf",!i.xi3(4,5,e,t.language))}}const qP=function(n){return{"min-height":n}};function YP(n,a){if(1&n&&(i.TgZ(0,"div",10),i.YNc(1,jP,5,8,"div",5),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw();i.Q6J("ngStyle",i.VKq(2,qP,t.columnContentHeight+"px")),i.xp6(1),i.Q6J("ngForOf",e.elements)}}const ec=function(n){return{color:n}};function WP(n,a){if(1&n&&(i.TgZ(0,"i",20),i._uU(1),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw(3);i.Q6J("ngStyle",i.VKq(2,ec,t.linksTextColor)),i.xp6(1),i.hij(" ",e.icon," ")}}function UP(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"span",21),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit,l=i.oxw(3);return i.KtG(l.openDialog(r.dialog))}),i._uU(1),i.ALo(2,"localisedText"),i.qZA()}if(2&n){const e=i.oxw().$implicit,t=i.oxw(3);i.Q6J("ngStyle",i.VKq(6,ec,t.linksTextColor)),i.xp6(1),i.hij("",i.Dn7(2,2,e,t.language,"label")," ")}}function GP(n,a){if(1&n&&(i.TgZ(0,"a",22),i.ALo(1,"localisedLink"),i._uU(2),i.ALo(3,"localisedText"),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw(3);i.Q6J("href",i.xi3(1,3,e,t.language),i.LSH)("ngStyle",i.VKq(10,ec,t.linksTextColor)),i.xp6(2),i.Oqu(i.Dn7(3,6,e,t.language,"label"))}}function $P(n,a){if(1&n&&(i.TgZ(0,"span",10),i._uU(1),i.ALo(2,"localisedText"),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw(3);i.Q6J("ngStyle",i.VKq(6,ec,t.linksTextColor)),i.xp6(1),i.Oqu(i.Dn7(2,2,e,t.language,"label"))}}function ZP(n,a){if(1&n&&(i.TgZ(0,"div",16),i.YNc(1,WP,2,4,"i",17),i.YNc(2,UP,3,8,"span",18),i.YNc(3,GP,4,12,"a",19),i.ALo(4,"localisedLink"),i.YNc(5,$P,3,8,"span",9),i.ALo(6,"localisedLink"),i.qZA()),2&n){const e=a.$implicit,t=i.oxw(3);i.xp6(1),i.Q6J("ngIf",e.icon),i.xp6(1),i.Q6J("ngIf",e.dialog),i.xp6(1),i.Q6J("ngIf",i.xi3(4,4,e,t.language)&&!e.dialog),i.xp6(2),i.Q6J("ngIf",!i.xi3(6,7,e,t.language)&&!e.dialog)}}const JP=function(n){return{height:n}};function QP(n,a){if(1&n&&(i.TgZ(0,"div",10),i.YNc(1,ZP,7,10,"div",15),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw();i.Q6J("ngStyle",i.VKq(2,JP,t.columnContentHeight+"px")),i.xp6(1),i.Q6J("ngForOf",e.elements)}}function XP(n,a){if(1&n&&(i.TgZ(0,"div",7)(1,"h6",8),i._uU(2),i.ALo(3,"localisedText"),i.qZA(),i.YNc(4,YP,2,4,"div",9),i.YNc(5,QP,2,4,"div",9),i.qZA()),2&n){const e=a.$implicit,t=i.oxw();i.ekj("my-auto",t.containsLogos),i.xp6(1),i.Q6J("ngStyle",i.VKq(10,ec,t.headersTextColor)),i.xp6(1),i.hij(" ",i.Dn7(3,6,e,t.language,"title")," "),i.xp6(2),i.Q6J("ngIf",e.logos),i.xp6(1),i.Q6J("ngIf",e.elements&&!e.logos)}}function KP(n,a){if(1&n&&(i.TgZ(0,"span")(1,"a",6),i._uU(2),i.qZA()()),2&n){const e=a.$implicit,t=a.index,r=i.oxw();i.xp6(1),i.Q6J("href",e.url,i.LSH)("ngStyle",i.VKq(3,ec,r.copyrightTextColor)),i.xp6(1),i.Oqu(t?", "+e.name:e.name)}}const eR=function(n){return{background:n}};let UE=(()=>{class n{constructor(e,t,r,l,c,s){this.storeService=e,this.translateService=t,this.utilsService=r,this.dialog=l,this.authService=c,this.initAuthService=s,this.copyrightTextColor=this.storeService.getProperty("theme").footer_copyright_text_color,this.footerColumns=[],this.copyrightItems=[],this.currentYear=(new Date).getFullYear(),this.containsLogos=!1,this.headersTextColor=this.storeService.getProperty("theme").footer_headers_text_color,this.linksTextColor=this.storeService.getProperty("theme").footer_links_text_color,this.githubRepository=this.storeService.getProperty("footer").github_releases,this.githubBackendRepository=this.storeService.getProperty("footer").github_backend_releases,this.bgColor=this.storeService.getProperty("theme").footer_bg_color,this.version="",this.backendVersion="",this.guiVersion="",this.language="en",this.columnContentHeight=0}ngOnInit(){this.translateService.onLangChange.subscribe(e=>{this.language=e.lang}),this.version=T(4147).i8,this.footerColumns=this.storeService.getProperty("footer").columns,this.guiVersion=T(4147).i8,(this.authService.isLoggedIn()||this.initAuthService.isServiceAccess())&&this.utilsService.getPerunStatus().subscribe(e=>{const t=e[0];this.backendVersion=t.substring(t.indexOf(":")+2)}),this.footerColumns=this.storeService.getProperty("footer").columns;for(const e of this.footerColumns)e.logos?this.containsLogos=!0:25*e.elements.length>this.columnContentHeight&&(this.columnContentHeight=25*e.elements.length);this.copyrightItems=this.storeService.getProperty("footer").copyright_items}openDialog(e){const t=ri();"reportIssue"===e&&(t.width="550px",this.dialog.open(BP,t))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(jt),i.Y36($t),i.Y36(ja),i.Y36(Fi),i.Y36(Ql),i.Y36(gA))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-footer"]],decls:13,vars:19,consts:[[1,"footer-container",3,"ngStyle"],[1,"footer-columns-container"],["class","footer-col mx-auto",3,"my-auto",4,"ngFor","ngForOf"],[1,"my-0","mt-3"],[1,"font-fix","text-center",3,"ngStyle"],[4,"ngFor","ngForOf"],["target","_blank",1,"text-decoration-none",3,"href","ngStyle"],[1,"footer-col","mx-auto"],[1,"font-weight-bold",3,"ngStyle"],[3,"ngStyle",4,"ngIf"],[3,"ngStyle"],[3,"href",4,"ngIf"],[4,"ngIf"],[3,"href"],["alt","image",3,"src"],["class","row-height",4,"ngFor","ngForOf"],[1,"row-height"],["class","material-icons align-bottom mr-1",3,"ngStyle",4,"ngIf"],["id","clickable",3,"ngStyle","click",4,"ngIf"],["target","_blank",3,"href","ngStyle",4,"ngIf"],[1,"material-icons","align-bottom","mr-1",3,"ngStyle"],["id","clickable",3,"ngStyle","click"],["target","_blank",3,"href","ngStyle"]],template:function(e,t){1&e&&(i.TgZ(0,"footer",0)(1,"div",1),i.YNc(2,XP,6,12,"div",2),i.qZA(),i._UZ(3,"hr",3),i.TgZ(4,"div",4),i._uU(5),i.YNc(6,KP,3,5,"span",5),i._uU(7,", web application: "),i.TgZ(8,"a",6),i._uU(9),i.qZA(),i._uU(10,", server: "),i.TgZ(11,"a",6),i._uU(12),i.qZA()()()),2&e&&(i.Q6J("ngStyle",i.VKq(11,eR,t.bgColor)),i.xp6(2),i.Q6J("ngForOf",t.footerColumns),i.xp6(2),i.Q6J("ngStyle",i.VKq(13,ec,t.copyrightTextColor)),i.xp6(1),i.hij(" \xa9 ",t.currentYear," Copyright: "),i.xp6(1),i.Q6J("ngForOf",t.copyrightItems),i.xp6(2),i.Q6J("href",t.githubRepository,i.LSH)("ngStyle",i.VKq(15,ec,t.copyrightTextColor)),i.xp6(1),i.Oqu(t.guiVersion),i.xp6(2),i.Q6J("href",t.githubBackendRepository,i.LSH)("ngStyle",i.VKq(17,ec,t.copyrightTextColor)),i.xp6(1),i.Oqu(t.backendVersion))},dependencies:[w.sg,w.O5,w.PC,WE,NP,VP],styles:["a[_ngcontent-%COMP%]{text-decoration:none}.font-fix[_ngcontent-%COMP%]{font-size:.8rem}.row-height[_ngcontent-%COMP%]{height:25px!important}.footer-col[_ngcontent-%COMP%]{padding-top:35px;white-space:nowrap;text-align:center}.wrap-content[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content}#clickable[_ngcontent-%COMP%]{cursor:pointer}.footer-columns-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-direction:column}@media (min-width: 768px){.footer-columns-container[_ngcontent-%COMP%]{flex-direction:row}}.footer-container[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content}"]}),n})();yi("openClose",[It("open",Le({overflow:"hidden"})),It("closed",Le({height:"0px",overflow:"hidden"})),Rt("open <=> closed",[Ht(".3s ease-in")])]);const tR=yi("flyInOut",[Rt(":enter",[Le({transform:"translateX(100%)"}),Ht(".25s")]),Rt(":leave",[Ht(".5s",Le({transform:"translateX(100%)"}))])]);yi("rollInOut",[Rt(":enter",[Le({height:"0px"}),Ht(".25s")]),Rt(":leave",[Ht(".25s",Le({height:"0px"}))])]),yi("routeAnimations",[Rt("* => *",[Le({position:"relative"}),Sr(":enter",[Le({width:"100%",opacity:0})],{optional:!0}),Sr(":leave",[Le({position:"absolute",width:"100%",opacity:1}),Ht("0.15s",Le({position:"absolute",width:"100%",opacity:0}))],{optional:!0}),Sr(":enter",[Le({position:"absolute",width:"100%",opacity:0}),Ht("0.15s",Le({position:"absolute",width:"100%",opacity:1}))],{optional:!0})])]),yi("tagsOpenClose",[It("open",Le({})),It("closed",Le({width:"0px",height:"0px"})),Rt("open <=> closed",[Ht(".3s ease-in")])]),yi("switchAnimations",[Rt("true => false",[Sr(":enter, :leave",Le({})),Mu([Sr(":enter",[Le({transform:"translateX(-100%)"}),Ht("1s ease-in-out",Le({transform:"translateX(0%)"}))],{optional:!0}),Sr(":leave",[Le({transform:"translateX(0%)",position:"absolute"}),Ht("1s ease-in-out",Le({transform:"translateX(100%)"}))],{optional:!0})])]),Rt("false => true",[Sr(":enter, :leave",Le({})),Mu([Sr(":enter",[Le({transform:"translateX(100%)"}),Ht("1s ease-in-out",Le({transform:"translateX(0%)"}))],{optional:!0}),Sr(":leave",[Le({transform:"translateX(0%)",position:"absolute"}),Ht("1s ease-in-out",Le({transform:"translateX(-100%)"}))],{optional:!0})])])]),yi("slideInOutLeft",[Rt(":enter",[Le({transform:"translateX(-100%)",position:"relative"}),Ht("0.5s ease-in",Le({transform:"translateX(0%)"}))]),Rt(":leave",[Ht("0.5s ease-in",Le({transform:"translateX(-100%)"}))])]),yi("slideInOutRight",[Rt(":enter",[Le({transform:"translateX(100%)",position:"fixed"}),Ht("0.5s ease-in",Le({transform:"translateX(0%)"}))]),Rt(":leave",[Le({transform:"translateX(-100%)",position:"relative"}),Ht("0.5s ease-in",Le({transform:"translateX(100%)"}))])]);let GE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[w.ez]}),n})(),TA=(()=>{class n{transform(e){return[e.titleBefore,e.firstName,e.middleName,e.lastName,e.titleAfter].join(" ")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"userFullName",type:n,pure:!0}),n})(),Qt=(()=>{class n{constructor(e,t){this.translate=e,this.storage=t}transform(e,t="en"){const r=this.storage.getProperty("custom_labels");if(r)for(const l of r)if(l.label===e)return l[t];return e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36($t,16),i.Y36(jt,16))},n.\u0275pipe=i.Yjl({name:"customTranslate",type:n,pure:!0}),n})();function iR(n,a){if(1&n&&(i.O4$(),i._UZ(0,"circle",4)),2&n){const e=i.oxw(),t=i.MAs(1);i.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+e._spinnerAnimationLabel)("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),i.uIk("r",e._getCircleRadius())}}function nR(n,a){if(1&n&&(i.O4$(),i._UZ(0,"circle",4)),2&n){const e=i.oxw(),t=i.MAs(1);i.Udp("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),i.uIk("r",e._getCircleRadius())}}const aR=hr(class{constructor(n){this._elementRef=n}},"primary"),sR=new i.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function oR(){return{diameter:100}}});class Ei extends aR{constructor(a,e,t,r,l,c,s,o){super(a),this._document=t,this._diameter=100,this._value=0,this._resizeSubscription=li.w0.EMPTY,this.mode="determinate";const d=Ei._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),d.has(t.head)||d.set(t.head,new Set([100])),this._noopAnimations="NoopAnimations"===r&&!!l&&!l._forceAnimations,"mat-spinner"===a.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),l&&(l.color&&(this.color=this.defaultColor=l.color),l.diameter&&(this.diameter=l.diameter),l.strokeWidth&&(this.strokeWidth=l.strokeWidth)),e.isBrowser&&e.SAFARI&&s&&c&&o&&(this._resizeSubscription=s.change(150).subscribe(()=>{"indeterminate"===this.mode&&o.run(()=>c.markForCheck())}))}get diameter(){return this._diameter}set diameter(a){this._diameter=Vi(a),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(a){this._strokeWidth=Vi(a)}get value(){return"determinate"===this.mode?this._value:0}set value(a){this._value=Math.max(0,Math.min(100,Vi(a)))}ngOnInit(){const a=this._elementRef.nativeElement;this._styleRoot=Nh(a)||this._document.head,this._attachStyleNode(),a.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const a=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${a} ${a}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_getCircleTransformOrigin(a){var e;const t=50*(null!==(e=a.currentScale)&&void 0!==e?e:1);return`${t}% ${t}%`}_attachStyleNode(){const a=this._styleRoot,e=this._diameter,t=Ei._diameters;let r=t.get(a);if(!r||!r.has(e)){const l=this._document.createElement("style");l.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),l.textContent=this._getAnimationText(),a.appendChild(l),r||(r=new Set,t.set(a,r)),r.add(e)}}_getAnimationText(){const a=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*a).replace(/END_VALUE/g,""+.2*a).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}Ei._diameters=new WeakMap,Ei.\u0275fac=function(a){return new(a||Ei)(i.Y36(i.SBq),i.Y36(Yi),i.Y36(w.K0,8),i.Y36(i.QbO,8),i.Y36(sR),i.Y36(i.sBO),i.Y36(Ys),i.Y36(i.R0b))},Ei.\u0275cmp=i.Xpm({type:Ei,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(a,e){2&a&&(i.uIk("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),i.Udp("width",e.diameter,"px")("height",e.diameter,"px"),i.ekj("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[i.qOj],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(a,e){1&a&&(i.O4$(),i.TgZ(0,"svg",0,1),i.YNc(2,iR,1,11,"circle",2),i.YNc(3,nR,1,9,"circle",3),i.qZA()),2&a&&(i.Udp("width",e.diameter,"px")("height",e.diameter,"px"),i.Q6J("ngSwitch","indeterminate"===e.mode),i.uIk("viewBox",e._getViewBox()),i.xp6(2),i.Q6J("ngSwitchCase",!0),i.xp6(1),i.Q6J("ngSwitchCase",!1))},dependencies:[w.RF,w.n9],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:rgba(0,0,0,0);transition:stroke-dashoffset 225ms linear}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}.mat-progress-spinner[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-progress-spinner._mat-animation-noopable svg,.mat-progress-spinner._mat-animation-noopable circle{animation:none;transition: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)}}"],encapsulation:2,changeDetection:0});let Kp=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[_t,w.ez,_t]}),n})(),xA=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[Qs,w.ez]}),n})(),cR=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[w.ez,$s,Oa,qo,Xp,co,Kp,Qs,xA]}),n})();class dR{isErrorState(a){return!(!a?.invalid||!a?.dirty)}}const $E=(n,a,e,t=500)=>r=>(0,x0.H)(t).pipe((0,mi.w)(()=>(e.dontHandleErrorForNext(),n&&"No namespace"!==n?a.checkPasswordStrength({password:r.value,namespace:n}):(0,xe.of)(null))),(0,At.U)(()=>null),(0,On.K)(l=>{const c={backendError:l.message.substring(l.message.indexOf(":")+1)};return(0,xe.of)(c)}));function uR(n,a){1&n&&i._UZ(0,"mat-spinner",12),2&n&&i.Q6J("diameter",18)}function hR(n,a){if(1&n&&(i.TgZ(0,"mat-icon",13),i._uU(1," error "),i.qZA()),2&n){const e=i.oxw();i.Q6J("matTooltip",e.getErrorTooltip())("matTooltipDisabled",!e.formGroup.get("passwordCtrl").hasError("backendError"))}}function pR(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function fR(n,a){if(1&n&&(i.TgZ(0,"mat-error",14),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.Q6J("matTooltip",e.getErrorTooltip()),i.xp6(1),i.Oqu(e.getErrorTooltip())}}function mR(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function gR(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PWD_DONT_MATCH")))}let ZE=(()=>{class n{constructor(e,t,r){this.translator=e,this.usersManagerService=t,this.store=r,this.passwordRequired=!0,this.tooltipPwdViaEmail=!1,this.tooltipPwdDisabledForNamespace=!1,this.language="en",this.passwordRequirement=null,this.showNewPassword=!1,this.showPasswordConfirm=!1,this.passwordStateMatcher=new dR,this.allPasswordRequirements=this.store.getProperty("password_help")}ngOnInit(){window.location.href.includes("/profile")?this.usersManagerService.getRichUserWithAttributes(this.store.getPerunPrincipal().userId).subscribe(e=>{const t=e.userAttributes.find(r=>"preferredLanguage"===r.friendlyName);this.language=t?.value??"en","en"!==this.language&&(this.allPasswordRequirements=this.store.getProperty("en"===this.language?"password_help":"password_help_cs")),this.changeHelp()}):this.changeHelp()}ngOnChanges(){this.allPasswordRequirements=this.store.getProperty("en"===this.language?"password_help":"password_help_cs"),this.changeHelp()}getPasswordDisabledTooltip(){return this.translator.instant(this.tooltipPwdViaEmail?"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.TOOLTIP_PASSWORD_VIA_EMAIL":"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.TOOLTIP_PASSWORD_DISABLED")}getErrorTooltip(){let e=this.formGroup.get("passwordCtrl").getError("backendError");return e&&(e=e.replace(":null","")),e}changeHelp(){this.passwordRequirement=this.allPasswordRequirements[this.namespace],this.passwordRequirement||(this.passwordRequirement=this.allPasswordRequirements.default)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36($t),i.Y36(ei),i.Y36(jt))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-password-form"]],inputs:{formGroup:"formGroup",passwordRequired:"passwordRequired",tooltipPwdViaEmail:"tooltipPwdViaEmail",tooltipPwdDisabledForNamespace:"tooltipPwdDisabledForNamespace",namespace:"namespace",language:"language"},features:[i.TTD],decls:21,vars:23,consts:[[3,"formGroup"],["matTooltipPosition","left",1,"max-width",3,"matTooltip","matTooltipDisabled"],["data-cy","passwd-input","matInput","","formControlName","passwordCtrl",3,"type","required","errorStateMatcher","placeholder"],["matSuffix","","class","input-spinner",3,"diameter",4,"ngIf"],["matSuffix","",3,"click"],["color","warn","matSuffix","","class","error-icon",3,"matTooltip","matTooltipDisabled",4,"ngIf"],[4,"ngIf"],["matTooltipPosition","after",3,"matTooltip",4,"ngIf"],[1,"max-width"],["data-cy","confirm-passwd-input","matInput","","formControlName","passwordAgainCtrl",3,"type","required"],["alert_type","info"],[3,"innerHTML"],["matSuffix","",1,"input-spinner",3,"diameter"],["color","warn","matSuffix","",1,"error-icon",3,"matTooltip","matTooltipDisabled"],["matTooltipPosition","after",3,"matTooltip"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"mat-form-field",1),i._UZ(2,"input",2),i.ALo(3,"translate"),i.YNc(4,uR,1,1,"mat-spinner",3),i.TgZ(5,"mat-icon",4),i.NdJ("click",function(){return t.showNewPassword=!t.showNewPassword}),i._uU(6),i.qZA(),i.YNc(7,hR,2,2,"mat-icon",5),i.YNc(8,pR,3,3,"mat-error",6),i.YNc(9,fR,2,2,"mat-error",7),i.qZA(),i.TgZ(10,"mat-form-field",8)(11,"mat-label"),i._uU(12),i.ALo(13,"translate"),i.qZA(),i._UZ(14,"input",9),i.TgZ(15,"mat-icon",4),i.NdJ("click",function(){return t.showPasswordConfirm=!t.showPasswordConfirm}),i._uU(16),i.qZA(),i.YNc(17,mR,3,3,"mat-error",6),i.YNc(18,gR,3,3,"mat-error",6),i.qZA(),i.TgZ(19,"perun-web-apps-alert",10),i._UZ(20,"div",11),i.qZA()()),2&e&&(i.Q6J("formGroup",t.formGroup),i.xp6(1),i.Q6J("matTooltip",t.getPasswordDisabledTooltip())("matTooltipDisabled",t.formGroup.get("passwordCtrl").enabled||t.tooltipPwdDisabledForNamespace),i.xp6(1),i.s9C("placeholder",i.lcZ(3,19,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD")),i.Q6J("type",t.showNewPassword?"text":"password")("required",t.passwordRequired)("errorStateMatcher",t.passwordStateMatcher),i.xp6(2),i.Q6J("ngIf",t.formGroup.get("passwordCtrl").pending),i.xp6(2),i.hij(" ",t.showNewPassword?"visibility_off":"visibility"," "),i.xp6(1),i.Q6J("ngIf",t.formGroup.get("passwordCtrl").dirty&&null!==t.formGroup.get("passwordCtrl").errors),i.xp6(1),i.Q6J("ngIf",t.formGroup.get("passwordCtrl").hasError("required")),i.xp6(1),i.Q6J("ngIf",t.formGroup.get("passwordCtrl").hasError("backendError")),i.xp6(3),i.Oqu(i.lcZ(13,21,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD_AGAIN")),i.xp6(2),i.Q6J("type",t.showPasswordConfirm?"text":"password")("required",t.passwordRequired),i.xp6(2),i.hij(" ",t.showPasswordConfirm?"visibility_off":"visibility"," "),i.xp6(1),i.Q6J("ngIf",t.formGroup.get("passwordAgainCtrl").hasError("required")),i.xp6(1),i.Q6J("ngIf",t.formGroup.get("passwordAgainCtrl").hasError("noPasswordMatch")),i.xp6(2),i.Q6J("innerHTML",t.passwordRequirement,i.oJD))},dependencies:[w.O5,jl,hn,Ra,_p,gr,An,pn,Uc,qr,jo,Jc,zn,Ei,Ji,Mn,Qe],styles:[".max-width[_ngcontent-%COMP%]{width:100%!important}.input-spinner[_ngcontent-%COMP%]{float:right;margin-left:5px}.error-icon[_ngcontent-%COMP%]{margin-left:5px}mat-icon[_ngcontent-%COMP%]:hover{cursor:default}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper{padding-bottom:0}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-underline{position:static!important;position:initial!important;display:block;margin-top:-1px}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper, [_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-ripple{position:static!important;position:initial!important;display:table}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper{min-height:calc(1em + 1px)}"]}),n})();function vR(n,a){1&n&&i._UZ(0,"mat-spinner",7)}function TR(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_ERROR")))}function xR(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_ERROR")))}function SR(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",8)(1,"mat-form-field")(2,"mat-label"),i._uU(3),i.ALo(4,"translate"),i.qZA(),i.TgZ(5,"input",9,10),i.NdJ("ngModelChange",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.subject=r)}),i.qZA(),i.YNc(7,TR,3,3,"mat-error",11),i.qZA(),i.TgZ(8,"mat-form-field")(9,"mat-label"),i._uU(10),i.ALo(11,"translate"),i.qZA(),i.TgZ(12,"textarea",12,13),i.NdJ("ngModelChange",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.message=r)}),i.ALo(14,"translate"),i._uU(15," "),i.qZA(),i.YNc(16,xR,3,3,"mat-error",11),i.qZA()()}if(2&n){const e=i.MAs(6),t=i.MAs(13),r=i.oxw();i.xp6(3),i.Oqu(i.lcZ(4,7,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT")),i.xp6(2),i.Q6J("ngModel",r.subject),i.xp6(2),i.Q6J("ngIf",e.invalid),i.xp6(3),i.Oqu(i.lcZ(11,9,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE")),i.xp6(2),i.s9C("placeholder",i.lcZ(14,11,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_PLACEHOLDER")),i.Q6J("ngModel",r.message),i.xp6(4),i.Q6J("ngIf",t.invalid)}}let ER=(()=>{class n{constructor(e,t,r,l,c,s){this.dialogRef=e,this.translate=t,this.notificator=r,this.rtMessages=l,this.data=c,this.storeService=s,this.message="",this.subject="",this.methodRegexp=/(\w+\/\w+)$/g,this.loading=!1}ngOnInit(){this.data?.error?.errorId&&(this.subject="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_VALUE"),this.parseMethod(this.data.error.call)," (",this.data.error.errorId,")"))}sendBugReport(){this.loading=!0,this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(e=>{this.dialogRef.afterClosed().subscribe(()=>{const t="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS1"),e.ticketNumber.toString(),this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS2"));this.notificator.showSuccess(t)}),this.dialogRef.close()},()=>{this.loading=!1,this.dialogRef.afterClosed().subscribe(()=>{})})}getFullEmailBody(){const e=this.storeService.getProperty("config");let t=this.message+"\n------------------------\nTechnical details:\n\n"+this.data.error.errorId;if(t=t.concat(this.data.error.type?" "+this.data.error.type+"\n":"\n"),t=t.concat(this.data.error.message,"\n","Perun instance: ",e,"\n","Request:\n",this.data.error.urlWithParams,"\n\n"),this.data.error.payload){const r=/"password":".+?"/;let l=JSON.stringify(this.data.error.payload);l=l.replace(r,'"password":"####"'),t=t.concat("Payload:\n"+l+"\n\n")}return t=t.concat("Sent from new Perun Gui, version: ",T(4147).i8),t.split("\n").join("\n ")}parseMethod(e){return e&&this.methodRegexp.exec(e)[1]}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(xi),i.Y36($t),i.Y36(_r),i.Y36(po),i.Y36(fn),i.Y36(jt))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-bug-report-dialog"]],decls:13,vars:12,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","",3,"ngModel","ngModelChange"],["subjectModel","ngModel"],[4,"ngIf"],["matInput","","required","",3,"ngModel","placeholder","ngModelChange"],["messageModel","ngModel"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.qZA(),i.YNc(3,vR,1,0,"mat-spinner",1),i.YNc(4,SR,17,13,"div",2),i.TgZ(5,"div",3)(6,"div",4)(7,"button",5),i.NdJ("click",function(){return t.dialogRef.close()}),i._uU(8),i.ALo(9,"translate"),i.qZA(),i.TgZ(10,"button",6),i.NdJ("click",function(){return t.sendBugReport()}),i._uU(11),i.ALo(12,"translate"),i.qZA()()()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,6,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.TITLE")),i.xp6(2),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading),i.xp6(4),i.hij(" ",i.lcZ(9,8,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.CANCEL")," "),i.xp6(2),i.Q6J("disabled",""===t.message||""===t.subject||t.loading),i.xp6(1),i.hij(" ",i.lcZ(12,10,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SEND")," "))},dependencies:[w.O5,Qi,sn,Wi,Dt,jl,hn,Ra,An,pn,qr,ka,zn,Ei,Qe],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),n})(),DR=(()=>{class n{constructor(e,t,r){this.dialogRef=e,this.dialog=t,this.data=r}onCloseClick(){this.dialogRef.close()}onBugReportClick(){this.dialogRef.afterClosed().subscribe(()=>{const e=ri();e.width="550px",e.data={error:this.data.error},e.autoFocus=!1,this.dialog.open(ER,e)}),this.dialogRef.close()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(xi),i.Y36(Fi),i.Y36(fn))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-notification-dialog"]],decls:12,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"hidden","click"],["autofocus","","mat-button","",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.qZA(),i.TgZ(2,"div",1),i._uU(3),i.qZA(),i.TgZ(4,"div",2)(5,"div",3)(6,"button",4),i.NdJ("click",function(){return t.onBugReportClick()}),i._uU(7),i.ALo(8,"translate"),i.qZA(),i.TgZ(9,"button",5),i.NdJ("click",function(){return t.onCloseClick()}),i._uU(10),i.ALo(11,"translate"),i.qZA()()()),2&e&&(i.xp6(1),i.Oqu(t.data.title),i.xp6(2),i.hij(" ",t.data.description,"\n"),i.xp6(3),i.Q6J("hidden","error"!==t.data.type),i.xp6(1),i.hij(" ",i.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_BUG_REPORT")," "),i.xp6(3),i.hij(" ",i.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_CLOSE")," "))},dependencies:[Qi,sn,Wi,Dt,Qe]}),n})();const HR=[[["caption"]],[["colgroup"],["col"]]],LR=["caption","colgroup, col"];function Xv(n){return class extends n{constructor(...a){super(...a),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(a){const e=this._sticky;this._sticky=Fe(a),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const a=this._hasStickyChanged;return this._hasStickyChanged=!1,a}resetStickyChanged(){this._hasStickyChanged=!1}}}const ef=new i.OlP("CDK_TABLE");let tf=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkCellDef",""]]}),n})(),nf=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkHeaderCellDef",""]]}),n})(),SA=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkFooterCellDef",""]]}),n})();class OR{}const IR=Xv(OR);let tc=(()=>{class n extends IR{constructor(e){super(),this._table=e,this._stickyEnd=!1}get name(){return this._name}set name(e){this._setNameInput(e)}get stickyEnd(){return this._stickyEnd}set stickyEnd(e){const t=this._stickyEnd;this._stickyEnd=Fe(e),this._hasStickyChanged=t!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(ef,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkColumnDef",""]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,tf,5),i.Suo(r,nf,5),i.Suo(r,SA,5)),2&e){let l;i.iGM(l=i.CRH())&&(t.cell=l.first),i.iGM(l=i.CRH())&&(t.headerCell=l.first),i.iGM(l=i.CRH())&&(t.footerCell=l.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[i._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:n}]),i.qOj]}),n})();class Kv{constructor(a,e){e.nativeElement.classList.add(...a._columnCssClassName)}}let eT=(()=>{class n extends Kv{constructor(e,t){super(e,t)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(tc),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[i.qOj]}),n})(),tT=(()=>{class n extends Kv{constructor(e,t){var r;if(super(e,t),1===(null===(r=e._table)||void 0===r?void 0:r._elementRef.nativeElement.nodeType)){const l=e._table._elementRef.nativeElement.getAttribute("role");t.nativeElement.setAttribute("role","grid"===l||"treegrid"===l?"gridcell":"cell")}}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(tc),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[i.qOj]}),n})();class QE{constructor(){this.tasks=[],this.endTasks=[]}}const iT=new i.OlP("_COALESCED_STYLE_SCHEDULER");let XE=(()=>{class n{constructor(e){this._ngZone=e,this._currentSchedule=null,this._destroyed=new Ee.x}schedule(e){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(e)}scheduleEnd(e){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(e)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new QE,this._getScheduleObservable().pipe(nt(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const e=this._currentSchedule;this._currentSchedule=new QE;for(const t of e.tasks)t();for(const t of e.endTasks)t()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,ht.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,ct.q)(1))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.R0b))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),nT=(()=>{class n{constructor(e,t){this.template=e,this._differs=t}ngOnChanges(e){if(!this._columnsDiffer){const t=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(t).create(),this._columnsDiffer.diff(t)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof ag?e.headerCell.template:this instanceof sg?e.footerCell.template:e.cell.template}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc),i.Y36(i.ZZ4))},n.\u0275dir=i.lG2({type:n,features:[i.TTD]}),n})();class BR extends nT{}const NR=Xv(BR);let ag=(()=>{class n extends NR{constructor(e,t,r){super(e,t),this._table=r}ngOnChanges(e){super.ngOnChanges(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc),i.Y36(i.ZZ4),i.Y36(ef,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[i.qOj,i.TTD]}),n})();class VR extends nT{}const FR=Xv(VR);let sg=(()=>{class n extends FR{constructor(e,t,r){super(e,t),this._table=r}ngOnChanges(e){super.ngOnChanges(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc),i.Y36(i.ZZ4),i.Y36(ef,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[i.qOj,i.TTD]}),n})(),EA=(()=>{class n extends nT{constructor(e,t,r){super(e,t),this._table=r}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc),i.Y36(i.ZZ4),i.Y36(ef,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[i.qOj]}),n})(),ic=(()=>{class n{constructor(e){this._viewContainer=e,n.mostRecentCellOutlet=this}ngOnDestroy(){n.mostRecentCellOutlet===this&&(n.mostRecentCellOutlet=null)}}return n.mostRecentCellOutlet=null,n.\u0275fac=function(e){return new(e||n)(i.Y36(i.s_b))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkCellOutlet",""]]}),n})(),rT=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&i.GkF(0,0)},dependencies:[ic],encapsulation:2}),n})(),sT=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&i.GkF(0,0)},dependencies:[ic],encapsulation:2}),n})(),DA=(()=>{class n{constructor(e){this.templateRef=e,this._contentClassName="cdk-no-data-row"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["ng-template","cdkNoDataRow",""]]}),n})();const KE=["top","bottom","left","right"];class zR{constructor(a,e,t,r,l=!0,c=!0,s){this._isNativeHtmlTable=a,this._stickCellCss=e,this.direction=t,this._coalescedStyleScheduler=r,this._isBrowser=l,this._needsPositionStickyOnElement=c,this._positionListener=s,this._cachedCellWidths=[],this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(a,e){const t=[];for(const r of a)if(r.nodeType===r.ELEMENT_NODE){t.push(r);for(let l=0;l{for(const r of t)this._removeStickyStyle(r,e)})}updateStickyColumns(a,e,t,r=!0){if(!a.length||!this._isBrowser||!e.some(f=>f)&&!t.some(f=>f))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const l=a[0],c=l.children.length,s=this._getCellWidths(l,r),o=this._getStickyStartColumnPositions(s,e),d=this._getStickyEndColumnPositions(s,t),u=e.lastIndexOf(!0),h=t.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const f="rtl"===this.direction,b=f?"right":"left",B=f?"left":"right";for(const X of a)for(let he=0;hee[he]?X:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===h?[]:s.slice(h).map((X,he)=>t[he+h]?X:null).reverse()}))})}stickRows(a,e,t){if(!this._isBrowser)return;const r="bottom"===t?a.slice().reverse():a,l="bottom"===t?e.slice().reverse():e,c=[],s=[],o=[];for(let u=0,h=0;u{for(let f=0;f{e.some(r=>!r)?this._removeStickyStyle(t,["bottom"]):this._addStickyStyle(t,"bottom",0,!1)})}_removeStickyStyle(a,e){for(const r of e)a.style[r]="",a.classList.remove(this._borderCellCss[r]);KE.some(r=>-1===e.indexOf(r)&&a.style[r])?a.style.zIndex=this._getCalculatedZIndex(a):(a.style.zIndex="",this._needsPositionStickyOnElement&&(a.style.position=""),a.classList.remove(this._stickCellCss))}_addStickyStyle(a,e,t,r){a.classList.add(this._stickCellCss),r&&a.classList.add(this._borderCellCss[e]),a.style[e]=`${t}px`,a.style.zIndex=this._getCalculatedZIndex(a),this._needsPositionStickyOnElement&&(a.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(a){const e={top:100,bottom:10,left:1,right:1};let t=0;for(const r of KE)a.style[r]&&(t+=e[r]);return t?`${t}`:""}_getCellWidths(a,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;const t=[],r=a.children;for(let l=0;l0;l--)e[l]&&(t[l]=r,r+=a[l]);return t}}const oT=new i.OlP("CDK_SPL");let HA=(()=>{class n{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.s_b),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","rowOutlet",""]]}),n})(),LA=(()=>{class n{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.s_b),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","headerRowOutlet",""]]}),n})(),PA=(()=>{class n{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.s_b),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","footerRowOutlet",""]]}),n})(),RA=(()=>{class n{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.s_b),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","noDataRowOutlet",""]]}),n})(),kA=(()=>{class n{constructor(e,t,r,l,c,s,o,d,u,h,f,b){this._differs=e,this._changeDetectorRef=t,this._elementRef=r,this._dir=c,this._platform=o,this._viewRepeater=d,this._coalescedStyleScheduler=u,this._viewportRuler=h,this._stickyPositioningListener=f,this._ngZone=b,this._onDestroy=new Ee.x,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.contentChanged=new i.vpe,this.viewChange=new Ii({start:0,end:Number.MAX_VALUE}),l||this._elementRef.nativeElement.setAttribute("role","table"),this._document=s,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(e){this._trackByFn=e}get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&this._switchDataSource(e)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(e){this._multiTemplateDataRows=Fe(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(e){this._fixedLayout=Fe(e),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((e,t)=>this.trackBy?this.trackBy(t.dataIndex,t.data):t),this._viewportRuler.change().pipe(nt(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,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(e=>{e.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),fu(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const e=this._dataDiffer.diff(this._renderRows);if(!e)return this._updateNoDataRow(),void this.contentChanged.next();const t=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,t,(r,l,c)=>this._getEmbeddedViewArgs(r.item,c),r=>r.item.data,r=>{1===r.operation&&r.context&&this._renderCellTemplateForItem(r.record.item.rowDef,r.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(r=>{t.get(r.currentIndex).context.$implicit=r.item.data}),this._updateNoDataRow(),this._ngZone&&i.R0b.isInAngularZone()?this._ngZone.onStable.pipe((0,ct.q)(1),nt(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(e){this._customColumnDefs.add(e)}removeColumnDef(e){this._customColumnDefs.delete(e)}addRowDef(e){this._customRowDefs.add(e)}removeRowDef(e){this._customRowDefs.delete(e)}addHeaderRowDef(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}removeHeaderRowDef(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}addFooterRowDef(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}removeFooterRowDef(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}setNoDataRow(e){this._customNoDataRow=e}updateStickyHeaderRowStyles(){const e=this._getRenderedRows(this._headerRowOutlet),r=this._elementRef.nativeElement.querySelector("thead");r&&(r.style.display=e.length?"":"none");const l=this._headerRowDefs.map(c=>c.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,l,"top"),this._headerRowDefs.forEach(c=>c.resetStickyChanged())}updateStickyFooterRowStyles(){const e=this._getRenderedRows(this._footerRowOutlet),r=this._elementRef.nativeElement.querySelector("tfoot");r&&(r.style.display=e.length?"":"none");const l=this._footerRowDefs.map(c=>c.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,l,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,l),this._footerRowDefs.forEach(c=>c.resetStickyChanged())}updateStickyColumnStyles(){const e=this._getRenderedRows(this._headerRowOutlet),t=this._getRenderedRows(this._rowOutlet),r=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...t,...r],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((l,c)=>{this._addStickyColumnStyles([l],this._headerRowDefs[c])}),this._rowDefs.forEach(l=>{const c=[];for(let s=0;s{this._addStickyColumnStyles([l],this._footerRowDefs[c])}),Array.from(this._columnDefsByName.values()).forEach(l=>l.resetStickyChanged())}_getAllRenderRows(){const e=[],t=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let r=0;r{const s=r&&r.has(c)?r.get(c):[];if(s.length){const o=s.shift();return o.dataIndex=t,o}return{data:e,rowDef:c,dataIndex:t}})}_cacheColumnDefs(){this._columnDefsByName.clear(),OA(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(t=>{this._columnDefsByName.has(t.name),this._columnDefsByName.set(t.name,t)})}_cacheRowDefs(){this._headerRowDefs=OA(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=OA(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=OA(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const e=this._rowDefs.filter(t=>!t.when);this._defaultRowDef=e[0]}_renderUpdatedColumns(){const e=(c,s)=>c||!!s.getColumnsDiff(),t=this._rowDefs.reduce(e,!1);t&&this._forceRenderDataRows();const r=this._headerRowDefs.reduce(e,!1);r&&this._forceRenderHeaderRows();const l=this._footerRowDefs.reduce(e,!1);return l&&this._forceRenderFooterRows(),t||r||l}_switchDataSource(e){this._data=[],fu(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=e}_observeRenderChanges(){if(!this.dataSource)return;let e;fu(this.dataSource)?e=this.dataSource.connect(this):Wt(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=(0,xe.of)(this.dataSource)),this._renderChangeSubscription=e.pipe(nt(this._onDestroy)).subscribe(t=>{this._data=t||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,t)=>this._renderRow(this._headerRowOutlet,e,t)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,t)=>this._renderRow(this._footerRowOutlet,e,t)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,t){const r=Array.from(t.columns||[]).map(s=>this._columnDefsByName.get(s)),l=r.map(s=>s.sticky),c=r.map(s=>s.stickyEnd);this._stickyStyler.updateStickyColumns(e,l,c,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){const t=[];for(let r=0;r!l.when||l.when(t,e));else{let l=this._rowDefs.find(c=>c.when&&c.when(t,e))||this._defaultRowDef;l&&r.push(l)}return r}_getEmbeddedViewArgs(e,t){return{templateRef:e.rowDef.template,context:{$implicit:e.data},index:t}}_renderRow(e,t,r,l={}){const c=e.viewContainer.createEmbeddedView(t.template,l,r);return this._renderCellTemplateForItem(t,l),c}_renderCellTemplateForItem(e,t){for(let r of this._getCellTemplates(e))ic.mostRecentCellOutlet&&ic.mostRecentCellOutlet._viewContainer.createEmbeddedView(r,t);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const e=this._rowOutlet.viewContainer;for(let t=0,r=e.length;t{const r=this._columnDefsByName.get(t);return e.extractCellTemplate(r)}):[]}_applyNativeTableSections(){const e=this._document.createDocumentFragment(),t=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const r of t){const l=this._document.createElement(r.tag);l.setAttribute("role","rowgroup");for(const c of r.outlets)l.appendChild(c.elementRef.nativeElement);e.appendChild(l)}this._elementRef.nativeElement.appendChild(e)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const e=(t,r)=>t||r.hasStickyChanged();this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new zR(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:(0,xe.of)()).pipe(nt(this._onDestroy)).subscribe(t=>{this._stickyStyler.direction=t,this.updateStickyColumnStyles()})}_getOwnDefs(e){return e.filter(t=>!t._table||t._table===this)}_updateNoDataRow(){const e=this._customNoDataRow||this._noDataRow;if(!e)return;const t=0===this._rowOutlet.viewContainer.length;if(t===this._isShowingNoDataRow)return;const r=this._noDataRowOutlet.viewContainer;if(t){const l=r.createEmbeddedView(e.templateRef),c=l.rootNodes[0];1===l.rootNodes.length&&c?.nodeType===this._document.ELEMENT_NODE&&(c.setAttribute("role","row"),c.classList.add(e._contentClassName))}else r.clear();this._isShowingNoDataRow=t}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.ZZ4),i.Y36(i.sBO),i.Y36(i.SBq),i.$8M("role"),i.Y36(Sn,8),i.Y36(w.K0),i.Y36(Yi),i.Y36(Bl),i.Y36(iT),i.Y36(Ys),i.Y36(oT,12),i.Y36(i.R0b,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,DA,5),i.Suo(r,tc,5),i.Suo(r,EA,5),i.Suo(r,ag,5),i.Suo(r,sg,5)),2&e){let l;i.iGM(l=i.CRH())&&(t._noDataRow=l.first),i.iGM(l=i.CRH())&&(t._contentColumnDefs=l),i.iGM(l=i.CRH())&&(t._contentRowDefs=l),i.iGM(l=i.CRH())&&(t._contentHeaderRowDefs=l),i.iGM(l=i.CRH())&&(t._contentFooterRowDefs=l)}},viewQuery:function(e,t){if(1&e&&(i.Gf(HA,7),i.Gf(LA,7),i.Gf(PA,7),i.Gf(RA,7)),2&e){let r;i.iGM(r=i.CRH())&&(t._rowOutlet=r.first),i.iGM(r=i.CRH())&&(t._headerRowOutlet=r.first),i.iGM(r=i.CRH())&&(t._footerRowOutlet=r.first),i.iGM(r=i.CRH())&&(t._noDataRowOutlet=r.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("cdk-table-fixed-layout",t.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[i._Bn([{provide:ef,useExisting:n},{provide:Bl,useClass:d_},{provide:iT,useClass:XE},{provide:oT,useValue:null}])],ngContentSelectors:LR,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(i.F$t(HR),i.Hsn(0),i.Hsn(1,1),i.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[HA,LA,PA,RA],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),n})();function OA(n,a){return n.concat(Array.from(a))}let qR=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[pr]}),n})();const YR=[[["caption"]],[["colgroup"],["col"]]],WR=["caption","colgroup, col"];let eo=(()=>{class n extends kA{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("mat-table-fixed-layout",t.fixedLayout)},exportAs:["matTable"],features:[i._Bn([{provide:Bl,useClass:d_},{provide:kA,useExisting:n},{provide:ef,useExisting:n},{provide:iT,useClass:XE},{provide:oT,useValue:null}]),i.qOj],ngContentSelectors:WR,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(i.F$t(YR),i.Hsn(0),i.Hsn(1,1),i.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[HA,LA,PA,RA],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-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:sticky !important}.mat-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),n})(),us=(()=>{class n extends tf{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matCellDef",""]],features:[i._Bn([{provide:tf,useExisting:n}]),i.qOj]}),n})(),hs=(()=>{class n extends nf{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matHeaderCellDef",""]],features:[i._Bn([{provide:nf,useExisting:n}]),i.qOj]}),n})(),ps=(()=>{class n extends tc{get name(){return this._name}set name(e){this._setNameInput(e)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[i._Bn([{provide:tc,useExisting:n},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:n}]),i.qOj]}),n})(),fs=(()=>{class n extends eT{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[i.qOj]}),n})(),ms=(()=>{class n extends tT{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[i.qOj]}),n})(),to=(()=>{class n extends ag{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[i._Bn([{provide:ag,useExisting:n}]),i.qOj]}),n})(),io=(()=>{class n extends EA{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[i._Bn([{provide:EA,useExisting:n}]),i.qOj]}),n})(),no=(()=>{class n extends rT{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[i._Bn([{provide:rT,useExisting:n}]),i.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&i.GkF(0,0)},dependencies:[ic],encapsulation:2}),n})(),ro=(()=>{class n extends sT{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[i._Bn([{provide:sT,useExisting:n}]),i.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&i.GkF(0,0)},dependencies:[ic],encapsulation:2}),n})(),og=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[qR,_t,_t]}),n})();class ik extends c_{constructor(a=[]){super(),this._renderData=new Ii([]),this._filter=new Ii(""),this._internalPageChanges=new Ee.x,this._renderChangesSubscription=null,this.sortingDataAccessor=(e,t)=>{const r=e[t];if(Kf(r)){const l=Number(r);return l<9007199254740991?l:r}return r},this.sortData=(e,t)=>{const r=t.active,l=t.direction;return r&&""!=l?e.sort((c,s)=>{let o=this.sortingDataAccessor(c,r),d=this.sortingDataAccessor(s,r);const u=typeof o,h=typeof d;u!==h&&("number"===u&&(o+=""),"number"===h&&(d+=""));let f=0;return null!=o&&null!=d?o>d?f=1:o{const r=Object.keys(e).reduce((c,s)=>c+e[s]+"\u25ec","").toLowerCase(),l=t.trim().toLowerCase();return-1!=r.indexOf(l)},this._data=new Ii(a),this._updateChangeSubscription()}get data(){return this._data.value}set data(a){a=Array.isArray(a)?a:[],this._data.next(a),this._renderChangesSubscription||this._filterData(a)}get filter(){return this._filter.value}set filter(a){this._filter.next(a),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(a){this._sort=a,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(a){this._paginator=a,this._updateChangeSubscription()}_updateChangeSubscription(){var a;const e=this._sort?(0,Li.T)(this._sort.sortChange,this._sort.initialized):(0,xe.of)(null),t=this._paginator?(0,Li.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,xe.of)(null),l=(0,Ci.a)([this._data,this._filter]).pipe((0,At.U)(([o])=>this._filterData(o))),c=(0,Ci.a)([l,e]).pipe((0,At.U)(([o])=>this._orderData(o))),s=(0,Ci.a)([c,t]).pipe((0,At.U)(([o])=>this._pageData(o)));null===(a=this._renderChangesSubscription)||void 0===a||a.unsubscribe(),this._renderChangesSubscription=s.subscribe(o=>this._renderData.next(o))}_filterData(a){return this.filteredData=null==this.filter||""===this.filter?a:a.filter(e=>this.filterPredicate(e,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(a){return this.sort?this.sortData(a.slice(),this.sort):a}_pageData(a){if(!this.paginator)return a;const e=this.paginator.pageIndex*this.paginator.pageSize;return a.slice(e,e+this.paginator.pageSize)}_updatePaginator(a){Promise.resolve().then(()=>{const e=this.paginator;if(e&&(e.length=a,e.pageIndex>0)){const t=Math.ceil(e.length/e.pageSize)-1||0,r=Math.min(e.pageIndex,t);r!==e.pageIndex&&(e.pageIndex=r,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){var a;null===(a=this._renderChangesSubscription)||void 0===a||a.unsubscribe(),this._renderChangesSubscription=null}}class $o extends ik{}function nk(n,a){1&n&&i._UZ(0,"mat-spinner",3)}function rk(n,a){1&n&&i._UZ(0,"th",15)}function ak(n,a){if(1&n&&(i.TgZ(0,"td",16),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",e.userExtSource.extSource.name," ")}}function sk(n,a){1&n&&i._UZ(0,"tr",17)}function ok(n,a){1&n&&i._UZ(0,"tr",18)}function lk(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"div",4)(2,"p"),i._uU(3),i.ALo(4,"translate"),i.ALo(5,"customTranslate"),i.qZA(),i.TgZ(6,"div",5),i._uU(7),i.ALo(8,"translate"),i.ALo(9,"customTranslate"),i.qZA(),i.TgZ(10,"table",6),i.ynx(11,7),i.YNc(12,rk,1,0,"th",8),i.YNc(13,ak,2,1,"td",9),i.BQk(),i.YNc(14,sk,1,0,"tr",10),i.YNc(15,ok,1,0,"tr",11),i.qZA()(),i.TgZ(16,"div",12)(17,"button",13),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onCancel())}),i._uU(18),i.ALo(19,"translate"),i.ALo(20,"customTranslate"),i.qZA(),i.TgZ(21,"button",14),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onSubmit())}),i._uU(22),i.ALo(23,"translate"),i.ALo(24,"customTranslate"),i.qZA()()()}if(2&n){const e=i.oxw();i.xp6(3),i.hij(" ",i.lcZ(4,7,i.lcZ(5,9,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.DESCRIPTION"))," "),i.xp6(4),i.hij(" ",i.lcZ(8,11,i.lcZ(9,13,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.ASK"))," "),i.xp6(3),i.Q6J("dataSource",e.dataSource),i.xp6(4),i.Q6J("matHeaderRowDef",e.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",e.displayedColumns),i.xp6(3),i.hij(" ",i.lcZ(19,15,i.lcZ(20,17,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.CANCEL"))," "),i.xp6(4),i.hij(" ",i.lcZ(23,19,i.lcZ(24,21,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.REMOVE"))," ")}}let ck=(()=>{class n{constructor(e,t,r,l,c){this.dialogRef=e,this.data=t,this.usersManagerService=r,this.translate=l,this.notificator=c,this.force=!1,this.displayedColumns=["name"],l.get("SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.SUCCESS").subscribe(s=>this.successMessage=s)}ngOnInit(){this.theme=this.data.theme,this.dataSource=new $o(this.data.extSources)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.data.extSources.length?this.usersManagerService.removeUserExtSource(this.data.userId,this.data.extSources.pop().userExtSource.id,this.force).subscribe(()=>{this.onSubmit()},()=>this.loading=!1):(this.loading=!1,this.data.showSuccess&&this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(xi),i.Y36(fn),i.Y36(ei),i.Y36($t),i.Y36(_r))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-remove-user-ext-source-dialog"]],decls:7,vars:10,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"click"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div"),i.YNc(5,nk,1,0,"mat-spinner",1),i.YNc(6,lk,25,23,"div",2),i.qZA()),2&e&&(i.xp6(1),i.hij(" ",i.lcZ(2,6,i.lcZ(3,8,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.TITLE")),"\n"),i.xp6(3),i.Tol(t.theme),i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},dependencies:[w.O5,eo,hs,to,ps,us,io,fs,ms,no,ro,Qi,sn,Wi,Dt,Ei,Qe,Qt]}),n})();class dk{constructor(a,e){this._document=e;const t=this._textarea=this._document.createElement("textarea"),r=t.style;r.position="fixed",r.top=r.opacity="0",r.left="-999em",t.setAttribute("aria-hidden","true"),t.value=a,t.readOnly=!0,this._document.body.appendChild(t)}copy(){const a=this._textarea;let e=!1;try{if(a){const t=this._document.activeElement;a.select(),a.setSelectionRange(0,a.value.length),e=this._document.execCommand("copy"),t&&t.focus()}}catch{}return e}destroy(){const a=this._textarea;a&&(a.remove(),this._textarea=void 0)}}let uk=(()=>{class n{constructor(e){this._document=e}copy(e){const t=this.beginCopy(e),r=t.copy();return t.destroy(),r}beginCopy(e){return new dk(e,this._document)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const hk=new i.OlP("CDK_COPY_TO_CLIPBOARD_CONFIG");let lT=(()=>{class n{constructor(e,t,r){this._clipboard=e,this._ngZone=t,this.text="",this.attempts=1,this.copied=new i.vpe,this._pending=new Set,r&&null!=r.attempts&&(this.attempts=r.attempts)}copy(e=this.attempts){if(e>1){let t=e;const r=this._clipboard.beginCopy(this.text);this._pending.add(r);const l=()=>{const c=r.copy();c||!--t||this._destroyed?(this._currentTimeout=null,this._pending.delete(r),r.destroy(),this.copied.emit(c)):this._currentTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(l,1))};l()}else this.copied.emit(this._clipboard.copy(this.text))}ngOnDestroy(){this._currentTimeout&&clearTimeout(this._currentTimeout),this._pending.forEach(e=>e.destroy()),this._pending.clear(),this._destroyed=!0}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(uk),i.Y36(i.R0b),i.Y36(hk,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkCopyToClipboard",""]],hostBindings:function(e,t){1&e&&i.NdJ("click",function(){return t.copy()})},inputs:{text:["cdkCopyToClipboard","text"],attempts:["cdkCopyToClipboardAttempts","attempts"]},outputs:{copied:"cdkCopyToClipboardCopied"}}),n})(),tD=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),IA=(()=>{class n{constructor(e,t){this.dialogRef=e,this.data=t}ngOnInit(){this.value=this.data.value,this.title=this.data.title}onCancel(){this.dialogRef.close()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(xi),i.Y36(fn))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-show-value-dialog"]],decls:12,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","overflow-hidden"],["cdkTextareaAutosize","","matInput","","readonly","",1,"w-100","display-fix"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"cdkCopyToClipboard"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.qZA(),i.TgZ(2,"div",1)(3,"textarea",2),i._uU(4),i.qZA()(),i.TgZ(5,"div",3)(6,"button",4),i.NdJ("click",function(){return t.onCancel()}),i._uU(7),i.ALo(8,"translate"),i.qZA(),i.TgZ(9,"button",5),i._uU(10),i.ALo(11,"translate"),i.qZA()()),2&e&&(i.xp6(1),i.Oqu(t.title),i.xp6(3),i.Oqu(t.value),i.xp6(3),i.hij(" ",i.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.SHOW_VALUE.CLOSE")," "),i.xp6(2),i.Q6J("cdkCopyToClipboard",t.value),i.xp6(1),i.hij(" ",i.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.SHOW_VALUE.COPY")," "))},dependencies:[Qi,sn,Wi,Dt,vA,zn,lT,Qe],styles:[".display-fix[_ngcontent-%COMP%]{overflow:hidden;border:none}"]}),n})(),pk=(()=>{class n{constructor(e,t){this.dialogRef=e,this.data=t,this.attributeValue=""}ngOnInit(){this.attributeValue=this.data.attribute.value[this.data.index]}cancel(){this.dialogRef.close()}submit(){this.data.attribute.value[this.data.index]=this.attributeValue,this.dialogRef.close(!0)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(xi),i.Y36(fn))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-attribute-value-list-edit-dialog"]],decls:13,vars:10,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["cdkTextareaAutosize","true","matInput","",3,"ngModel","ngModelChange"],["mat-dialog-actions","",1,"d-flex"],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"h5",0),i._uU(1),i.ALo(2,"translate"),i.qZA(),i.TgZ(3,"div",1)(4,"mat-form-field")(5,"textarea",2),i.NdJ("ngModelChange",function(l){return t.attributeValue=l}),i.qZA()()(),i.TgZ(6,"div",3)(7,"button",4),i.NdJ("click",function(){return t.cancel()}),i._uU(8),i.ALo(9,"translate"),i.qZA(),i.TgZ(10,"button",5),i.NdJ("click",function(){return t.submit()}),i._uU(11),i.ALo(12,"translate"),i.qZA()()),2&e&&(i.xp6(1),i.hij(" ",i.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.TITLE"),"\n"),i.xp6(4),i.Q6J("ngModel",t.attributeValue),i.xp6(3),i.hij(" ",i.lcZ(9,6,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.CANCEL_BUTTON")," "),i.xp6(3),i.hij(" ",i.lcZ(12,8,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.SUBMIT_BUTTON")," "))},dependencies:[Qi,sn,Wi,Dt,hn,An,pn,ka,vA,zn,Qe]}),n})(),fk=(()=>{class n{constructor(e,t){this.dialogRef=e,this.data=t}cancel(){this.dialogRef.close()}submit(){this.dialogRef.close(!0)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(xi),i.Y36(fn))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-attribute-value-list-delete-dialog"]],decls:16,vars:13,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],[1,"mt-2","font-weight-bold"],["mat-dialog-actions","",1,"d-flex"],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"h5",0),i._uU(1),i.ALo(2,"translate"),i.qZA(),i.TgZ(3,"div",1)(4,"div"),i._uU(5),i.ALo(6,"translate"),i.qZA(),i.TgZ(7,"div",2),i._uU(8),i.qZA()(),i.TgZ(9,"div",3)(10,"button",4),i.NdJ("click",function(){return t.cancel()}),i._uU(11),i.ALo(12,"translate"),i.qZA(),i.TgZ(13,"button",5),i.NdJ("click",function(){return t.submit()}),i._uU(14),i.ALo(15,"translate"),i.qZA()()),2&e&&(i.xp6(1),i.hij(" ",i.lcZ(2,5,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.TITLE"),"\n"),i.xp6(4),i.hij(" ",i.lcZ(6,7,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.DESCRIPTION")," "),i.xp6(3),i.hij(" ",t.data.name," "),i.xp6(3),i.hij(" ",i.lcZ(12,9,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.CANCEL_BUTTON")," "),i.xp6(3),i.hij(" ",i.lcZ(15,11,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.SUBMIT_BUTTON")," "))},dependencies:[Qi,sn,Wi,Dt,Qe]}),n})();function mk(n,a){if(1&n&&(i.TgZ(0,"perun-web-apps-alert",9),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Oqu(e.pendingEmailsMessage)}}function gk(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"DIALOGS.CHANGE_EMAIL.EMAIL_ERROR"))))}let _k=(()=>{class n{constructor(e,t,r,l,c,s){this.dialogRef=e,this.data=t,this.translate=r,this.notificator=l,this.usersManagerService=c,this.authService=s,this.pendingMails=[],r.get("DIALOGS.CHANGE_EMAIL.SUCCESS").subscribe(o=>this.successMessage=o),r.get("DIALOGS.CHANGE_EMAIL.PENDING_MAILS_BEGIN").subscribe(o=>this.pendingEmailsMessageStart=o),r.get("DIALOGS.CHANGE_EMAIL.PENDING_MAILS_END").subscribe(o=>this.pendingEmailsMessageEnd=o)}ngOnInit(){this.emailControl=new Js(null,[yn.required,yn.pattern(/^(([^<>()[\].,;:\s@"]+(\.[^<>()[\].,;:\s@"]+)*)|(".+"))@(([^<>()[\].,;:\s@"]+\.)+[^<>()[\].,;:\s@"]{2,})$/i)]),this.usersManagerService.getPendingPreferredEmailChanges(this.data.userId).subscribe(e=>{this.pendingMails=e.filter((r,l,c)=>l===c.indexOf(r));let t="";this.pendingMails.forEach(r=>t+=`${r===this.pendingMails[0]?"":", "}${r}`),this.pendingEmailsMessage=this.pendingEmailsMessageStart+t+this.pendingEmailsMessageEnd})}onCancel(){this.dialogRef.close()}onSubmit(){const t=window.location.href.split("/");this.usersManagerService.requestPreferredEmailChange(this.data.userId,this.emailControl.value,this.translate.currentLang,"",t[0]+"//"+t[2],this.authService.getIdpFilter()).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.dialogRef.close()})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(xi),i.Y36(fn),i.Y36($t),i.Y36(_r),i.Y36(ei),i.Y36(Ql))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-change-email-dialog"]],decls:21,vars:24,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","user-theme"],["alert_type","warn",4,"ngIf"],[1,"w-100"],["matInput","","required","",3,"placeholder","formControl"],[4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div",1),i.YNc(5,mk,2,1,"perun-web-apps-alert",2),i.TgZ(6,"mat-form-field",3)(7,"label",3),i._UZ(8,"input",4),i.ALo(9,"translate"),i.ALo(10,"customTranslate"),i.qZA(),i.YNc(11,gk,4,5,"mat-error",5),i.qZA()(),i.TgZ(12,"div",6)(13,"button",7),i.NdJ("click",function(){return t.onCancel()}),i._uU(14),i.ALo(15,"translate"),i.ALo(16,"customTranslate"),i.qZA(),i.TgZ(17,"button",8),i.NdJ("click",function(){return t.onSubmit()}),i._uU(18),i.ALo(19,"translate"),i.ALo(20,"customTranslate"),i.qZA()()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,8,i.lcZ(3,10,"DIALOGS.CHANGE_EMAIL.TITLE"))),i.xp6(4),i.Q6J("ngIf",t.pendingMails.length),i.xp6(3),i.s9C("placeholder",i.lcZ(9,12,i.lcZ(10,14,"DIALOGS.CHANGE_EMAIL.INPUT_PLACEHOLDER"))),i.Q6J("formControl",t.emailControl),i.xp6(3),i.Q6J("ngIf",t.emailControl.invalid),i.xp6(3),i.hij(" ",i.lcZ(15,16,i.lcZ(16,18,"DIALOGS.CHANGE_EMAIL.CANCEL"))," "),i.xp6(3),i.Q6J("disabled",!t.emailControl.valid),i.xp6(1),i.hij(" ",i.lcZ(19,20,i.lcZ(20,22,"DIALOGS.CHANGE_EMAIL.CHANGE"))," "))},dependencies:[w.O5,Qi,sn,Wi,Dt,jl,hn,An,pn,qr,zn,aa,Mn,Qe,Qt]}),n})(),xk=(()=>{class n{constructor(e,t){this.dialogRef=e,this.router=t}onClose(){this.router.navigate([],{queryParamsHandling:"preserve"}),this.dialogRef.close()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(xi),i.Y36(Ni))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-mail-change-failed-dialog"]],decls:11,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["alert_type","error"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.qZA(),i.TgZ(3,"div",1)(4,"perun-web-apps-alert",2),i._uU(5),i.ALo(6,"translate"),i.qZA()(),i.TgZ(7,"div",3)(8,"button",4),i.NdJ("click",function(){return t.onClose()}),i._uU(9),i.ALo(10,"translate"),i.qZA()()),2&e&&(i.xp6(1),i.hij(" ",i.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.TITLE"),"\n"),i.xp6(4),i.Oqu(i.lcZ(6,5,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.INFO")),i.xp6(4),i.hij(" ",i.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.CLOSE")," "))},dependencies:[Qi,sn,Wi,Dt,Mn,Qe]}),n})();function Sk(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.FIELD_EMPTY")))}function Ek(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"form",5)(1,"div",6)(2,"mat-form-field")(3,"mat-label"),i._uU(4),i.ALo(5,"translate"),i.qZA(),i._UZ(6,"input",7),i.TgZ(7,"mat-icon",8),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.showOldPassword=!r.showOldPassword)}),i._uU(8),i.qZA(),i.YNc(9,Sk,3,3,"mat-error",9),i.qZA(),i._UZ(10,"perun-web-apps-password-form",10),i.qZA()()}if(2&n){const e=i.oxw();i.Q6J("formGroup",e.formGroup),i.xp6(4),i.Oqu(i.lcZ(5,7,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.OLD_PASSWORD")),i.xp6(2),i.Q6J("type",e.showOldPassword?"text":"password"),i.xp6(2),i.hij(" ",e.showOldPassword?"visibility_off":"visibility"," "),i.xp6(1),i.Q6J("ngIf",e.oldPwd.hasError("required")),i.xp6(1),i.Q6J("formGroup",e.formGroup)("namespace",e.data.namespace)}}function Dk(n,a){1&n&&i._UZ(0,"mat-spinner",11)}function Hk(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",12)(1,"div",13)(2,"button",14),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.close())}),i._uU(3),i.ALo(4,"translate"),i.qZA(),i.TgZ(5,"button",15),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.changePassword())}),i._uU(6),i.ALo(7,"translate"),i.qZA()()()}if(2&n){const e=i.oxw();i.xp6(3),i.hij(" ",i.lcZ(4,3,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.CANCEL")," "),i.xp6(2),i.Q6J("disabled",e.formGroup.invalid||e.formGroup.pending),i.xp6(1),i.hij(" ",i.lcZ(7,5,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.CHANGE")," ")}}let Lk=(()=>{class n{constructor(e,t,r,l,c,s,o){this.dialogRef=e,this.data=t,this._formBuilder=r,this.usersManagerService=l,this.apiRequestConfiguration=c,this.notificator=s,this.translate=o,this.showOldPassword=!1,o.get("SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.SUCCESS").subscribe(d=>this.successMessage=d)}ngOnInit(){this.formGroup=this._formBuilder.group({oldPasswordCtrl:["",yn.required],passwordCtrl:["",yn.required,[$E(this.data.namespace,this.usersManagerService,this.apiRequestConfiguration)]],passwordAgainCtrl:[""]},{validators:cE.passwordMatchValidator}),this.oldPwd=this.formGroup.get("oldPasswordCtrl"),this.newPwd=this.formGroup.get("passwordCtrl"),this.newPwdAgain=this.formGroup.get("passwordAgainCtrl")}close(){this.dialogRef.close(!1)}changePassword(){this.loading=!0,this.usersManagerService.changePasswordForLogin({login:this.data.login,namespace:this.data.namespace,newPassword:this.newPwd.value,oldPassword:this.oldPwd.value,checkOldPassword:!0}).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(xi),i.Y36(fn),i.Y36(Cb),i.Y36(ei),i.Y36(ig),i.Y36(_r),i.Y36($t))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-change-password-dialog"]],decls:7,vars:6,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","user-theme"],[3,"formGroup",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[3,"formGroup"],[1,"display-flex"],["formControlName","oldPasswordCtrl","matInput","","required","",3,"type"],["matSuffix","",3,"click"],[4,"ngIf"],[3,"formGroup","namespace"],[1,"ml-auto","mr-auto"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.qZA(),i.TgZ(3,"div",1),i.YNc(4,Ek,11,9,"form",2),i.YNc(5,Dk,1,0,"mat-spinner",3),i.qZA(),i.YNc(6,Hk,8,7,"div",4)),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.TITLE")),i.xp6(3),i.Q6J("ngIf",!t.loading),i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},dependencies:[w.O5,Qi,sn,Wi,Dt,jl,hn,Ra,_p,Mm,An,pn,Uc,qr,zn,Ei,jo,Jc,Ji,ZE,Qe],styles:[".display-flex[_ngcontent-%COMP%]{display:flex;flex-direction:column}.white-space-pre[_ngcontent-%COMP%]{white-space:pre}mat-icon[_ngcontent-%COMP%]:hover{cursor:default}"]}),n})();const Pk=["input"],Rk=function(n){return{enterDuration:n}},kk=["*"],Ok=new i.OlP("mat-radio-default-options",{providedIn:"root",factory:function Ik(){return{color:"accent"}}});let nD=0;const Bk={provide:sr,useExisting:(0,i.Gpc)(()=>sD),multi:!0};class rD{constructor(a,e){this.source=a,this.value=e}}const aD=new i.OlP("MatRadioGroup");let Nk=(()=>{class n{constructor(e){this._changeDetector=e,this._value=null,this._name="mat-radio-group-"+nD++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new i.vpe}get name(){return this._name}set name(e){this._name=e,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(e){this._labelPosition="before"===e?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(e){this._selected=e,this.value=e?e.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(e){this._disabled=Fe(e),this._markRadiosForCheck()}get required(){return this._required}set required(e){this._required=Fe(e),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(e=>{e.name=this.name,e._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(t=>{t.checked=this.value===t.value,t.checked&&(this._selected=t)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new rD(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(e=>e._markForCheck())}writeValue(e){this.value=e,this._changeDetector.markForCheck()}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetector.markForCheck()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.sBO))},n.\u0275dir=i.lG2({type:n,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}}),n})(),sD=(()=>{class n extends Nk{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["mat-radio-group"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,oD,5),2&e){let l;i.iGM(l=i.CRH())&&(t._radios=l)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[i._Bn([Bk,{provide:aD,useExisting:n}]),i.qOj]}),n})();class Vk{constructor(a){this._elementRef=a}}const Fk=xr(kl(Vk));let zk=(()=>{class n extends Fk{constructor(e,t,r,l,c,s,o,d){super(t),this._changeDetector=r,this._focusMonitor=l,this._radioDispatcher=c,this._providerOverride=o,this._uniqueId="mat-radio-"+ ++nD,this.id=this._uniqueId,this.change=new i.vpe,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=e,this._noopAnimations="NoopAnimations"===s,d&&(this.tabIndex=Vi(d,0)),this._removeUniqueSelectionListener=c.listen((u,h)=>{u!==this.id&&h===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(e){const t=Fe(e);this._checked!==t&&(this._checked=t,t&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!t&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),t&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===e),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(e){this._labelPosition=e}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(e){this._setDisabled(Fe(e))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(e){this._required=Fe(e)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(e){this._color=e}get inputId(){return`${this.id||this._uniqueId}-input`}focus(e,t){t?this._focusMonitor.focusVia(this._inputElement,t,e):this._inputElement.nativeElement.focus(e)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name)}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{!e&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new rD(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(e){e.stopPropagation()}_onInputInteraction(e){if(e.stopPropagation(),!this.checked&&!this.disabled){const t=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),t&&this.radioGroup._emitChangeEvent())}}_setDisabled(e){this._disabled!==e&&(this._disabled=e,this._changeDetector.markForCheck())}_updateTabIndex(){const e=this.radioGroup;let t;if(t=e&&e.selected&&!this.disabled?e.selected===this?this.tabIndex:-1:this.tabIndex,t!==this._previousTabIndex){var r;const l=null===(r=this._inputElement)||void 0===r?void 0:r.nativeElement;l&&(l.setAttribute("tabindex",t+""),this._previousTabIndex=t)}}}return n.\u0275fac=function(e){i.$Z()},n.\u0275dir=i.lG2({type:n,viewQuery:function(e,t){if(1&e&&i.Gf(Pk,5),2&e){let r;i.iGM(r=i.CRH())&&(t._inputElement=r.first)}},inputs:{id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},features:[i.qOj]}),n})(),oD=(()=>{class n extends zk{constructor(e,t,r,l,c,s,o,d){super(e,t,r,l,c,s,o,d)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(aD,8),i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(ur),i.Y36(S0),i.Y36(i.QbO,8),i.Y36(Ok,8),i.$8M("tabindex"))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(e,t){1&e&&i.NdJ("focus",function(){return t._inputElement.nativeElement.focus()}),2&e&&(i.uIk("tabindex",null)("id",t.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),i.ekj("mat-radio-checked",t.checked)("mat-radio-disabled",t.disabled)("_mat-animation-noopable",t._noopAnimations)("mat-primary","primary"===t.color)("mat-accent","accent"===t.color)("mat-warn","warn"===t.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[i.qOj],ngContentSelectors:kk,decls:13,vars:19,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input",3,"id","checked","disabled","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(e,t){if(1&e&&(i.F$t(),i.TgZ(0,"label",0,1)(2,"span",2),i._UZ(3,"span",3)(4,"span",4),i.TgZ(5,"input",5,6),i.NdJ("change",function(l){return t._onInputInteraction(l)})("click",function(l){return t._onInputClick(l)}),i.qZA(),i.TgZ(7,"span",7),i._UZ(8,"span",8),i.qZA()(),i.TgZ(9,"span",9)(10,"span",10),i._uU(11,"\xa0"),i.qZA(),i.Hsn(12),i.qZA()()),2&e){const r=i.MAs(1);i.uIk("for",t.inputId),i.xp6(5),i.Q6J("id",t.inputId)("checked",t.checked)("disabled",t.disabled)("required",t.required),i.uIk("name",t.name)("value",t.value)("aria-label",t.ariaLabel)("aria-labelledby",t.ariaLabelledby)("aria-describedby",t.ariaDescribedby),i.xp6(2),i.Q6J("matRippleTrigger",r)("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",i.VKq(17,Rk,t._noopAnimations?0:150)),i.xp6(2),i.ekj("mat-radio-label-before","before"==t.labelPosition)}},dependencies:[na],styles:['.mat-radio-button{display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-radio-label{-webkit-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;opacity:0;transition:transform ease 280ms,background-color ease 280ms,opacity linear 1ms 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5);opacity:1;transition:transform ease 280ms,background-color ease 280ms}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-label-content{-webkit-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none;top:0;left:0}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{opacity:0;position:absolute;top:0;left:0;margin:0;width:100%;height:100%;cursor:inherit;z-index:-1}.mat-radio-input:focus~.mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}'],encapsulation:2,changeDetection:0}),n})(),lD=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[jr,_t,_t]}),n})();function jk(n,a){1&n&&i._UZ(0,"mat-spinner",4)}function qk(n,a){1&n&&(i.TgZ(0,"span",11),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ACTIVE_HINT")," "))}function Yk(n,a){1&n&&(i.TgZ(0,"span",11),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.INACTIVE_HINT")," "))}function Wk(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-radio-group",12),i.NdJ("ngModelChange",function(r){i.CHM(e);const l=i.oxw(2);return i.KtG(l.asyncValidation=r)}),i.TgZ(1,"span",13),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"mat-radio-button",14),i._uU(5),i.ALo(6,"translate"),i.qZA(),i.TgZ(7,"mat-radio-button",14),i._uU(8),i.ALo(9,"translate"),i.qZA()()}if(2&n){const e=i.oxw(2);i.Q6J("ngModel",e.asyncValidation),i.xp6(2),i.hij(" ",i.lcZ(3,6,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.VALIDATE")," : "),i.xp6(2),i.Q6J("value",!1),i.xp6(1),i.hij(" ",i.lcZ(6,8,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.SYNC")," "),i.xp6(2),i.Q6J("value",!0),i.xp6(1),i.hij(" ",i.lcZ(9,10,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ASYNC")," ")}}function Uk(n,a){1&n&&(i.TgZ(0,"span",11),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.SYNC_HINT")," "))}function Gk(n,a){1&n&&(i.TgZ(0,"span",11),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ASYNC_HINT")," "))}function $k(n,a){if(1&n&&(i.TgZ(0,"div",5)(1,"p",6),i._uU(2),i.TgZ(3,"span",7),i._uU(4),i.qZA(),i._uU(5),i.TgZ(6,"span",7),i._uU(7),i.qZA()(),i.TgZ(8,"p")(9,"strong",8),i._uU(10),i.ALo(11,"translate"),i.qZA(),i._uU(12),i.qZA(),i.TgZ(13,"p")(14,"strong",8),i._uU(15),i.ALo(16,"translate"),i.qZA(),i._uU(17),i.qZA(),i.YNc(18,qk,3,3,"span",9),i.YNc(19,Yk,3,3,"span",9),i.YNc(20,Wk,10,12,"mat-radio-group",10),i.YNc(21,Uk,3,3,"span",9),i.YNc(22,Gk,3,3,"span",9),i.qZA()),2&n){const e=i.oxw();i.xp6(2),i.hij(" ",e.group.name," "),i.xp6(2),i.hij("#",e.group.id,""),i.xp6(1),i.hij(" - ",e.resource.name," "),i.xp6(2),i.hij("#",e.resource.id,""),i.xp6(3),i.hij(" ",i.lcZ(11,13,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.CURRENT")," : "),i.xp6(2),i.hij(" ",e.status," "),i.xp6(3),i.hij(" ",i.lcZ(16,15,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.NEW")," : "),i.xp6(2),i.hij(" ",e.getReversedStatus()," "),i.xp6(1),i.Q6J("ngIf","INACTIVE"===e.status||"FAILED"===e.status),i.xp6(1),i.Q6J("ngIf","ACTIVE"===e.status),i.xp6(1),i.Q6J("ngIf","INACTIVE"===e.status||"FAILED"===e.status),i.xp6(1),i.Q6J("ngIf",("INACTIVE"===e.status||"FAILED"===e.status)&&!1===e.asyncValidation),i.xp6(1),i.Q6J("ngIf",("INACTIVE"===e.status||"FAILED"===e.status)&&!0===e.asyncValidation)}}function Zk(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",15)(1,"button",16),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onCancel())}),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"button",17),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onSubmit())}),i._uU(5),i.ALo(6,"translate"),i.qZA()()}if(2&n){const e=i.oxw();i.xp6(2),i.hij(" ",i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.CANCEL")," "),i.xp6(2),i.Q6J("disabled",e.loading),i.xp6(1),i.hij(" ",i.lcZ(6,5,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG."+("ACTIVE"===e.status?"DEACTIVATE":"ACTIVATE"))," ")}}let Jk=(()=>{class n{constructor(e,t,r,l){this.dialogRef=e,this.data=t,this.resourceService=r,this.groupService=l,this.loading=!1,this.asyncValidation=!1,this.resource=null,this.group=null}ngOnInit(){this.loading=!0,this.status=this.data.status,this.theme=this.data.theme,this.resourceService.getResourceById(this.data.resourceId).subscribe(e=>{this.resource=e,this.groupService.getGroupById(this.data.groupId).subscribe(t=>{this.group=t,this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,"ACTIVE"===this.status?this.resourceService.deactivateGroupResourceAssignment(this.data.groupId,this.data.resourceId).subscribe(()=>{this.dialogRef.close(!0),this.loading=!1},()=>this.loading=!1):this.resourceService.activateGroupResourceAssignment(this.data.groupId,this.data.resourceId,this.asyncValidation).subscribe(()=>{this.dialogRef.close(!0),this.loading=!1},()=>this.loading=!1)}getReversedStatus(){return"ACTIVE"===this.status?"INACTIVE":"ACTIVE"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(xi),i.Y36(fn),i.Y36(Qr),i.Y36(uo))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-change-group-resource-assigment-dialog"]],decls:7,vars:9,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"mb-4"],[1,"text-muted","id-font"],[1,"mr-2"],["class","text-muted",4,"ngIf"],["class","d-flex flex-column mt-3",3,"ngModel","ngModelChange",4,"ngIf"],[1,"text-muted"],[1,"d-flex","flex-column","mt-3",3,"ngModel","ngModelChange"],[1,"font-weight-bold"],[3,"value"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["data-cy","change-status-button","mat-flat-button","","color","accent",3,"disabled","click"]],template:function(e,t){1&e&&(i.TgZ(0,"div")(1,"h1",0),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.YNc(4,jk,1,0,"mat-spinner",1),i.YNc(5,$k,23,17,"div",2),i.YNc(6,Zk,7,7,"div",3),i.qZA()),2&e&&(i.Tol(t.theme),i.xp6(2),i.hij(" ",i.lcZ(3,7,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.TITLE")," "),i.xp6(2),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},dependencies:[w.O5,Qi,sn,Wi,Dt,pn,ka,Ei,sD,oD,Qe],styles:[".id-font[_ngcontent-%COMP%]{font-size:1rem}"]}),n})();function Qk(n,a){if(1&n&&(i.TgZ(0,"mat-option",13),i._uU(1),i.qZA()),2&n){const e=a.$implicit,t=i.oxw();i.Q6J("value",t.selectedUnit),i.xp6(1),i.hij(" ",e," ")}}let Xk=(()=>{class n{constructor(e,t,r,l,c){this.dialogRef=e,this.data=t,this.rtMessagesService=r,this.notificator=l,this.translate=c,this.resource="",this.currentQuota="",this.units=["MiB","GiB","TiB"],this.selectedUnit="GiB",c.get("DIALOGS.REQUEST_DATA_QUOTA_CHANGE.SUCCESS").subscribe(s=>this.successMessage=s)}ngOnInit(){this.resource=this.data.resource.name,this.currentQuota=this.data.currentQuota,this.reasonControl=new Js(null,[yn.required]),this.newValueControl=new Js(null,[yn.required,yn.pattern("[1-9][0-9]*")])}onCancel(){this.dialogRef.close()}onSubmit(){const r=`QUOTA CHANGE REQUEST\u21b5 \u21b5 User: ${(new TA).transform(this.data.user)} (user ID: ${this.data.user.id})\u21b5 VO: ${this.data.vo.shortName} / ${this.data.vo.name} (vo ID: ${this.data.vo.id})\u21b5 Resource: ${this.data.resource.name} (resource ID: ${this.data.resource.id})\u21b5 Data quota\u21b5 Requested quota: ${this.newValueControl.value}\u21b5 Reason: ${this.reasonControl.value}\u21b5 \u21b5 \u21b5 -------------------------------------\u21b5 Sent from Perun GUI`;this.rtMessagesService.sentMessageToRTWithVo(this.data.vo.id,"QUOTA: Change request",r).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.dialogRef.close()})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(xi),i.Y36(fn),i.Y36(po),i.Y36(_r),i.Y36($t))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-request-change-data-quota-dialog"]],decls:42,vars:42,consts:[["mat-dialog-title","",1,"mb-3"],[1,"user-theme"],[1,"column-size"],["fxLayout","row","fxFlexAlign","center center"],[1,"label-width"],["matInput","","required","","type","number",3,"placeholder","formControl"],[1,"select-width","mt-auto","mb-auto","ml-2",3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[1,"form-width"],["matInput","","required","","rows","4",3,"placeholder","formControl"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[3,"value"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div",1)(5,"div")(6,"p",2),i._uU(7),i.ALo(8,"translate"),i.ALo(9,"customTranslate"),i.qZA(),i.TgZ(10,"p"),i._uU(11),i.qZA()(),i.TgZ(12,"div")(13,"p",2),i._uU(14),i.ALo(15,"translate"),i.ALo(16,"customTranslate"),i.qZA(),i.TgZ(17,"p"),i._uU(18),i.qZA()(),i.TgZ(19,"div",3)(20,"mat-form-field")(21,"label",4),i._UZ(22,"input",5),i.ALo(23,"translate"),i.ALo(24,"customTranslate"),i.qZA()(),i.TgZ(25,"mat-select",6),i.NdJ("valueChange",function(l){return t.selectedUnit=l}),i.YNc(26,Qk,2,2,"mat-option",7),i.qZA()(),i.TgZ(27,"div")(28,"mat-form-field",8)(29,"label",4),i._UZ(30,"textarea",9),i.ALo(31,"translate"),i.ALo(32,"customTranslate"),i.qZA()()(),i.TgZ(33,"div",10)(34,"button",11),i.NdJ("click",function(){return t.onCancel()}),i._uU(35),i.ALo(36,"translate"),i.ALo(37,"customTranslate"),i.qZA(),i.TgZ(38,"button",12),i.NdJ("click",function(){return t.onSubmit()}),i._uU(39),i.ALo(40,"translate"),i.ALo(41,"customTranslate"),i.qZA()()()),2&e&&(i.xp6(1),i.hij(" ",i.lcZ(2,14,i.lcZ(3,16,"SHARED_LIB.PERUN.COMPONENTS.REQUEST_DATA_QUOTA_CHANGE.TITLE")),"\n"),i.xp6(6),i.hij(" ",i.lcZ(8,18,i.lcZ(9,20,"SHARED_LIB.PERUN.COMPONENTS.REQUEST_DATA_QUOTA_CHANGE.RESOURCE"))," "),i.xp6(4),i.Oqu(t.resource),i.xp6(3),i.hij(" ",i.lcZ(15,22,i.lcZ(16,24,"SHARED_LIB.PERUN.COMPONENTS.REQUEST_DATA_QUOTA_CHANGE.CURRENT_QUOTA"))," "),i.xp6(4),i.Oqu(t.currentQuota),i.xp6(4),i.s9C("placeholder",i.lcZ(23,26,i.lcZ(24,28,"SHARED_LIB.PERUN.COMPONENTS.REQUEST_DATA_QUOTA_CHANGE.REQUESTED_QUOTA"))),i.Q6J("formControl",t.newValueControl),i.xp6(3),i.Q6J("value",t.selectedUnit),i.xp6(1),i.Q6J("ngForOf",t.units),i.xp6(4),i.s9C("placeholder",i.lcZ(31,30,i.lcZ(32,32,"SHARED_LIB.PERUN.COMPONENTS.REQUEST_DATA_QUOTA_CHANGE.REASON"))),i.Q6J("formControl",t.reasonControl),i.xp6(5),i.hij(" ",i.lcZ(36,34,i.lcZ(37,36,"SHARED_LIB.PERUN.COMPONENTS.REQUEST_DATA_QUOTA_CHANGE.CANCEL"))," "),i.xp6(3),i.Q6J("disabled",t.reasonControl.invalid),i.xp6(1),i.hij(" ",i.lcZ(40,38,i.lcZ(41,40,"SHARED_LIB.PERUN.COMPONENTS.REQUEST_DATA_QUOTA_CHANGE.SEND"))," "))},dependencies:[w.sg,Qi,Wi,Dt,hn,An,$c,pn,qr,zn,aa,Fu,Lo,Qe,Qt],styles:[".column-size[_ngcontent-%COMP%]{width:10rem!important;font-weight:700}.form-width[_ngcontent-%COMP%]{width:100%;overflow:hidden}.label-width[_ngcontent-%COMP%]{width:100%}.select-width[_ngcontent-%COMP%]{width:4rem}.mat-input-underline.mat-form-field-underline[_ngcontent-%COMP%], .mat-input-ripple.mat-form-field-ripple[_ngcontent-%COMP%]{display:none}"]}),n})();function Kk(n,a){1&n&&(i.TgZ(0,"mat-error",8),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"DIALOGS.ADD_SSH.INVALID_TYPE"))))}class Zo{constructor(a,e,t){this.dialogRef=a,this.data=e,this.attributesManagerService=t}ngOnInit(){this.sshControl=new Js(null,[yn.required,yn.pattern(Zo.sshKeyPattern)])}onCancel(){this.dialogRef.close(!1)}onSubmit(){const a=this.data.attribute?.value??[],e=this.sshControl.value;a.includes(e)||a.push(e),this.data.attribute.value=a,this.attributesManagerService.setUserAttribute({user:this.data.userId,attribute:this.data.attribute}).subscribe(()=>{this.dialogRef.close(!0)},()=>{a.pop()})}}function eO(n,a){1&n&&i._UZ(0,"mat-spinner",4)}function tO(n,a){1&n&&i._UZ(0,"th",17)}function iO(n,a){if(1&n&&(i.TgZ(0,"td",18),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e)}}function nO(n,a){1&n&&i._UZ(0,"tr",19)}function rO(n,a){1&n&&i._UZ(0,"tr",20)}function aO(n,a){if(1&n&&(i.TgZ(0,"table",11),i.ynx(1,12),i.YNc(2,tO,1,0,"th",13),i.YNc(3,iO,2,1,"td",14),i.BQk(),i.YNc(4,nO,1,0,"tr",15),i.YNc(5,rO,1,0,"tr",16),i.qZA()),2&n){const e=i.oxw(2);i.Q6J("dataSource",e.dataSource),i.xp6(4),i.Q6J("matHeaderRowDef",e.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",e.displayedColumns)}}function sO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",1)(1,"div",5)(2,"p"),i._uU(3),i.qZA(),i.TgZ(4,"div",6),i._uU(5),i.ALo(6,"translate"),i.ALo(7,"customTranslate"),i.qZA(),i.YNc(8,aO,6,3,"table",7),i.qZA(),i.TgZ(9,"div",8)(10,"button",9),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onCancel())}),i._uU(11),i.ALo(12,"translate"),i.ALo(13,"customTranslate"),i.qZA(),i.TgZ(14,"button",10),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onSubmit())}),i._uU(15),i.ALo(16,"translate"),i.ALo(17,"customTranslate"),i.qZA()()()}if(2&n){const e=i.oxw();i.xp6(3),i.hij(" ",e.description," "),i.xp6(2),i.hij(" ",i.lcZ(6,5,i.lcZ(7,7,"DIALOGS.REMOVE_STRING_VALUE.ASK"))," "),i.xp6(3),i.Q6J("ngIf",e.dataSource.data.length),i.xp6(3),i.hij(" ",i.lcZ(12,9,i.lcZ(13,11,"DIALOGS.REMOVE_STRING_VALUE.CANCEL"))," "),i.xp6(4),i.hij(" ",i.lcZ(16,13,i.lcZ(17,15,"DIALOGS.REMOVE_STRING_VALUE.REMOVE"))," ")}}Zo.allowedSshKeys=["ssh-ed25519","ssh-ed25519-cert-v01@openssh.com","sk-ssh-ed25519@openssh.com","sk-ssh-ed25519-cert-v01@openssh.com","ssh-rsa","ssh-dss","ecdsa-sha2-nistp256","ecdsa-sha2-nistp384","ecdsa-sha2-nistp521","sk-ecdsa-sha2-nistp256@openssh.com","ssh-rsa-cert-v01@openssh.com","ssh-dss-cert-v01@openssh.com","ecdsa-sha2-nistp256-cert-v01@openssh.com","ecdsa-sha2-nistp384-cert-v01@openssh.com","ecdsa-sha2-nistp521-cert-v01@openssh.com","sk-ecdsa-sha2-nistp256-cert-v01@openssh.com"],Zo.sshKeyPattern="^("+Zo.allowedSshKeys.join("|")+").+$",Zo.\u0275fac=function(a){return new(a||Zo)(i.Y36(xi),i.Y36(fn),i.Y36(ji))},Zo.\u0275cmp=i.Xpm({type:Zo,selectors:[["perun-web-apps-add-ssh-dialog"]],decls:20,vars:23,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","user-theme"],[1,"input-width"],["matInput","","required","","cdkTextareaAutosize","","cdkAutosizeMinRows","4",3,"placeholder","formControl"],["class","white-space-pre",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[1,"white-space-pre"]],template:function(a,e){1&a&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div",1)(5,"mat-form-field",2)(6,"label",2),i._UZ(7,"textarea",3),i.ALo(8,"translate"),i.ALo(9,"customTranslate"),i.qZA(),i.YNc(10,Kk,4,5,"mat-error",4),i.qZA()(),i.TgZ(11,"div",5)(12,"button",6),i.NdJ("click",function(){return e.onCancel()}),i._uU(13),i.ALo(14,"translate"),i.ALo(15,"customTranslate"),i.qZA(),i.TgZ(16,"button",7),i.NdJ("click",function(){return e.onSubmit()}),i._uU(17),i.ALo(18,"translate"),i.ALo(19,"customTranslate"),i.qZA()()),2&a&&(i.xp6(1),i.Oqu(i.lcZ(2,7,i.lcZ(3,9,"DIALOGS.ADD_SSH.TITLE"))),i.xp6(6),i.s9C("placeholder",i.lcZ(8,11,i.lcZ(9,13,"DIALOGS.ADD_SSH.INPUT_PLACEHOLDER"))),i.Q6J("formControl",e.sshControl),i.xp6(3),i.Q6J("ngIf",e.sshControl.invalid&&e.sshControl.dirty),i.xp6(3),i.hij(" ",i.lcZ(14,15,i.lcZ(15,17,"DIALOGS.ADD_SSH.CANCEL"))," "),i.xp6(3),i.Q6J("disabled",e.sshControl.invalid),i.xp6(1),i.hij(" ",i.lcZ(18,19,i.lcZ(19,21,"DIALOGS.ADD_SSH.ADD"))," "))},dependencies:[w.O5,An,pn,qr,Dt,jl,hn,aa,vA,zn,Qi,sn,Wi,Qe,Qt],styles:[".input-width{width:100%}.white-space-pre{white-space:pre-wrap}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper{padding-bottom:0}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-underline{position:static!important;position:initial!important;display:block;margin-top:-1px}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper,perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-ripple{position:static!important;position:initial!important;display:table}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper{min-height:calc(1em + 1px)}\n"],encapsulation:2});let BA=(()=>{class n{constructor(e,t,r){this.dialogRef=e,this.data=t,this.attributesManagerService=r,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new $o(this.data.values),this.description=this.data.description,this.title=this.data.title}onCancel(){this.dialogRef.close(!1)}onSubmit(){if(this.loading=!0,this.data.doNotShowValues)this.data.attribute.value="";else{let e=this.data.attribute?.value??[];void 0!==this.data.valueIndex?e.splice(this.data.valueIndex,1):e=e.filter(t=>!this.data.values.find(r=>r===t)),this.data.attribute.value=e}this.attributesManagerService.setUserAttribute({user:this.data.userId,attribute:this.data.attribute}).subscribe(()=>{this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(xi),i.Y36(fn),i.Y36(ji))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-remove-string-value-dialog"]],decls:5,vars:3,consts:[["mat-dialog-title",""],[1,"user-theme"],["class","ml-auto mr-auto",4,"ngIf"],["class","user-theme",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["class","w-100","mat-table","",3,"dataSource",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"click"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-header-row","","class","font-weight-bolder",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.qZA(),i.TgZ(2,"div",1),i.YNc(3,eO,1,0,"mat-spinner",2),i.qZA(),i.YNc(4,sO,18,17,"div",3)),2&e&&(i.xp6(1),i.Oqu(t.title),i.xp6(2),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},dependencies:[w.O5,eo,hs,to,ps,us,io,fs,ms,no,ro,Ei,Dt,Qi,sn,Wi,Qe,Qt]}),n})(),oO=(()=>{class n{constructor(e,t){this.dialogRef=e,this.data=t}ngOnInit(){this.sshKey=this.data.value}onClose(){this.dialogRef.close()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(xi),i.Y36(fn))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-show-ssh-dialog"]],decls:8,vars:6,consts:[[1,"user-theme"],["matInput","","cdkTextareaAutosize","","readonly","",1,"w-100","display-fix"],["mat-flat-button","","color","warn",1,"ml-auto",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"textarea",1),i._uU(2),i.qZA()(),i.TgZ(3,"mat-dialog-actions")(4,"button",2),i.NdJ("click",function(){return t.onClose()}),i._uU(5),i.ALo(6,"translate"),i.ALo(7,"customTranslate"),i.qZA()()),2&e&&(i.xp6(2),i.Oqu(t.sshKey),i.xp6(3),i.hij(" ",i.lcZ(6,2,i.lcZ(7,4,"DIALOGS.SHOW_SSH.CLOSE"))," "))},dependencies:[Dt,vA,zn,Wi,Qe,Qt],styles:[".display-fix[_ngcontent-%COMP%]{overflow:hidden;border:none}*[_ngcontent-%COMP%]:focus{outline:none}"]}),n})();function lO(n,a){if(1&n&&(i.TgZ(0,"div",9),i._UZ(1,"perun-web-apps-notification",10),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Q6J("data",e)("inDialog",!0)}}function cO(n,a){if(1&n&&(i.TgZ(0,"div",6)(1,"cdk-virtual-scroll-viewport",7),i.YNc(2,lO,2,2,"div",8),i.qZA()()),2&n){const e=i.oxw();i.xp6(2),i.Q6J("cdkVirtualForOf",e.notifications)}}function dO(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",11),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"DIALOGS.NOTIFICATION_LIST.NO_NOTIFICATIONS_ALERT"))))}let cD=(()=>{class n{constructor(e,t){this.dialogRef=e,this.notificationStorageService=t}ngOnInit(){this.notifications=this.notificationStorageService.getNotifications()}onCancel(){this.dialogRef.close()}onClear(){this.notificationStorageService.clearNotifications(),this.notifications=[]}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(xi),i.Y36(_A))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-show-notification-history-dialog"]],decls:15,vars:17,consts:[["mat-dialog-title",""],["class","hide-horizontal-scrollbar",4,"ngIf"],["alert_type","warn",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","",1,"ml-2",3,"click"],[1,"hide-horizontal-scrollbar"],["itemSize","50",1,"viewport"],["class","mb-1",4,"cdkVirtualFor","cdkVirtualForOf"],[1,"mb-1"],[3,"data","inDialog"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.YNc(4,cO,3,1,"div",1),i.YNc(5,dO,4,5,"perun-web-apps-alert",2),i.TgZ(6,"div",3)(7,"button",4),i.NdJ("click",function(){return t.onClear()}),i._uU(8),i.ALo(9,"translate"),i.ALo(10,"customTranslate"),i.qZA(),i.TgZ(11,"button",5),i.NdJ("click",function(){return t.onCancel()}),i._uU(12),i.ALo(13,"translate"),i.ALo(14,"customTranslate"),i.qZA()()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,5,i.lcZ(3,7,"DIALOGS.NOTIFICATION_LIST.TITLE"))),i.xp6(3),i.Q6J("ngIf",0!==t.notifications.length),i.xp6(1),i.Q6J("ngIf",0===t.notifications.length),i.xp6(3),i.hij(" ",i.lcZ(9,9,i.lcZ(10,11,"DIALOGS.NOTIFICATION_LIST.CLEAR"))," "),i.xp6(4),i.hij(" ",i.lcZ(13,13,i.lcZ(14,15,"DIALOGS.NOTIFICATION_LIST.CANCEL"))," "))},styles:[".viewport[_ngcontent-%COMP%]{height:400px;width:470px}.hide-horizontal-scrollbar[_ngcontent-%COMP%]{overflow-x:hidden}"]}),n})();function uO(n,a){if(1&n&&(i.TgZ(0,"div",5)(1,"mat-icon"),i._uU(2),i.qZA()()),2&n){const e=i.oxw();i.xp6(2),i.Oqu(e.data.icon)}}function hO(n,a){if(1&n&&(i.TgZ(0,"div",6),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.hij(" ",e.showTimestamp()," ")}}let dD=(()=>{class n{constructor(e,t){this.dialog=e,this.notificationStorageService=t,this.newNotification=!1,this.closeNotification=new i.vpe,this.alreadyPressed=!1,this.alreadyClosed=!1,this.waiting=!1}doAction(){if(this.newNotification&&(this.alreadyPressed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,void 0!==this.data.action)this.data.action();else{const e=ri();e.width="550px",e.data=this.data,e.autoFocus=!1,this.dialog.open(DR,e).afterClosed().subscribe(()=>{this.closeSelf()})}}closeSelf(){this.inDialog||(this.newNotification&&(this.alreadyClosed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,this.closeNotification.emit())}ngOnInit(){!function Tv(n,a){$p.apply(this,arguments)}(this.data.delay,()=>{!this.alreadyClosed&&!this.waiting&&this.closeSelf()})}showTimestamp(){const[e,t]=this.data.timeStamp.split(":");return t.length<2?e+":0"+t:this.data.timeStamp}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Fi),i.Y36(_A))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-notification"]],inputs:{data:"data",inDialog:"inDialog",newNotification:"newNotification"},outputs:{closeNotification:"closeNotification"},decls:9,vars:14,consts:[[1,"notification-container",3,"click"],["class","notification-icon",4,"ngIf"],["data-cy","notification-message",1,"notification-text","clickable"],["class","ml-auto mr-5 mt-auto mb-auto",4,"ngIf"],[1,"notification-action","mt-auto","mb-auto",3,"hidden","click"],[1,"notification-icon"],[1,"ml-auto","mr-5","mt-auto","mb-auto"]],template:function(e,t){1&e&&(i.TgZ(0,"div")(1,"div",0),i.NdJ("click",function(){return t.alreadyClosed||t.waiting?"":t.closeSelf()}),i.YNc(2,uO,3,1,"div",1),i.TgZ(3,"div",2),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.YNc(6,hO,2,1,"div",3),i.TgZ(7,"div",4),i.NdJ("click",function(){return t.waiting=!0,t.doAction()}),i._uU(8),i.qZA()()()),2&e&&(i.Gre("notification ",t.inDialog?"":"mat-elevation-z7",""),i.ekj("error","error"===t.data.type)("success","success"===t.data.type),i.xp6(2),i.Q6J("ngIf",null!==t.data.icon),i.xp6(2),i.hij(" ",i.lcZ(5,12,t.data.title)," "),i.xp6(2),i.Q6J("ngIf",t.inDialog),i.xp6(1),i.Q6J("hidden",t.alreadyPressed),i.xp6(1),i.hij(" ",t.data.actionText," "))},dependencies:[w.O5,Ji,Qe],styles:[".notification[_ngcontent-%COMP%]{width:450px;margin-bottom:16px;display:flex;flex-direction:row;justify-content:space-between;color:#fff}.notification-container[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:row;padding:16px}.notification-text[_ngcontent-%COMP%]{font-size:1.1em}.notification-action[_ngcontent-%COMP%]{margin-left:auto;text-decoration:underline;cursor:pointer}@media (max-width: 768px){.notification[_ngcontent-%COMP%]{width:100%}}.notification.error[_ngcontent-%COMP%]{background-color:#d32f2f}.notification.success[_ngcontent-%COMP%]{background-color:#288619}.notification-icon[_ngcontent-%COMP%]{padding-right:8px;color:#fff}"]}),n})();function pO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"perun-web-apps-notification",2),i.NdJ("closeNotification",function(){const l=i.CHM(e).index,c=i.oxw();return i.KtG(c.removeNotification(l))}),i.qZA()()}if(2&n){const e=a.$implicit;i.Q6J("@flyInOut",void 0),i.xp6(1),i.Q6J("data",e)("newNotification",!0)}}const fO=function(n){return{top:n}};let mO=(()=>{class n{constructor(e,t){this.notificator=e,this.notificationStorageService=t,this.displayWarning=!1,this.minWidth=992,this.notifications=[],this.mobileView=!1,this.notificator.addNotification.subscribe(r=>{this.processNotification(r)}),this.getScreenSize()}getScreenSize(){this.mobileView=window.innerWidth<=this.minWidth}getNotificatorTop(){return this.mobileView?"initial":this.displayWarning?"112px":"64px"}removeNotification(e){this.notifications.splice(e,1)}processNotification(e){this.notifications.push(e),this.notificationStorageService.storeNotification(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(_r),i.Y36(_A))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-notificator"]],hostBindings:function(e,t){1&e&&i.NdJ("resize",function(l){return t.getScreenSize(l)},!1,i.Jf7)},inputs:{displayWarning:"displayWarning"},decls:2,vars:4,consts:[["id","notificator",3,"ngStyle"],[4,"ngFor","ngForOf"],[3,"data","newNotification","closeNotification"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.YNc(1,pO,2,3,"div",1),i.qZA()),2&e&&(i.Q6J("ngStyle",i.VKq(2,fO,t.getNotificatorTop())),i.xp6(1),i.Q6J("ngForOf",t.notifications))},dependencies:[w.sg,w.PC,dD],styles:["#notificator[_ngcontent-%COMP%]{position:fixed;right:0;z-index:1001;padding:8px}@media (max-width: 768px){#notificator[_ngcontent-%COMP%]{width:100%;top:auto;top:initial;bottom:0}}"],data:{animation:[tR]}}),n})();const gO=["*",[["mat-toolbar-row"]]],_O=["*","mat-toolbar-row"],bO=hr(class{constructor(n){this._elementRef=n}});let AO=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),n})(),yO=(()=>{class n extends bO{constructor(e,t,r){super(e),this._platform=t,this._document=r}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Yi),i.Y36(w.K0))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-toolbar"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,AO,5),2&e){let l;i.iGM(l=i.CRH())&&(t._toolbarRows=l)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,t){2&e&&i.ekj("mat-toolbar-multiple-rows",t._toolbarRows.length>0)("mat-toolbar-single-row",0===t._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[i.qOj],ngContentSelectors:_O,decls:2,vars:0,template:function(e,t){1&e&&(i.F$t(gO),i.Hsn(0),i.Hsn(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%}"],encapsulation:2,changeDetection:0}),n})(),cT=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[_t,_t]}),n})(),MO=0;const wO=is(class{}),uD="mat-badge-content";let CO=(()=>{class n extends wO{constructor(e,t,r,l,c){super(),this._ngZone=e,this._elementRef=t,this._ariaDescriber=r,this._renderer=l,this._animationMode=c,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=MO++,this._isInitialized=!1}get color(){return this._color}set color(e){this._setColor(e),this._color=e}get overlap(){return this._overlap}set overlap(e){this._overlap=Fe(e)}get content(){return this._content}set content(e){this._updateRenderedContent(e)}get description(){return this._description}set description(e){this._updateHostAriaDescription(e)}get hidden(){return this._hidden}set hidden(e){this._hidden=Fe(e)}isAbove(){return-1===this.position.indexOf("below")}isAfter(){return-1===this.position.indexOf("before")}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=!0}ngOnDestroy(){this._renderer.destroyNode&&this._renderer.destroyNode(this._badgeElement),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_createBadgeElement(){const e=this._renderer.createElement("span"),t="mat-badge-active";return e.setAttribute("id",`mat-badge-content-${this._id}`),e.setAttribute("aria-hidden","true"),e.classList.add(uD),"NoopAnimations"===this._animationMode&&e.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(e),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{e.classList.add(t)})}):e.classList.add(t),e}_updateRenderedContent(e){const t=`${e??""}`.trim();this._isInitialized&&t&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=t),this._content=t}_updateHostAriaDescription(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),e&&this._ariaDescriber.describe(this._elementRef.nativeElement,e),this._description=e}_setColor(e){const t=this._elementRef.nativeElement.classList;t.remove(`mat-badge-${this._color}`),e&&t.add(`mat-badge-${e}`)}_clearExistingBadges(){const e=this._elementRef.nativeElement.querySelectorAll(`:scope > .${uD}`);for(const t of Array.from(e))t!==this._badgeElement&&t.remove()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.R0b),i.Y36(i.SBq),i.Y36(nu),i.Y36(i.Qsj),i.Y36(i.QbO,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(e,t){2&e&&i.ekj("mat-badge-overlap",t.overlap)("mat-badge-above",t.isAbove())("mat-badge-below",!t.isAbove())("mat-badge-before",!t.isAfter())("mat-badge-after",t.isAfter())("mat-badge-small","small"===t.size)("mat-badge-medium","medium"===t.size)("mat-badge-large","large"===t.size)("mat-badge-hidden",t.hidden||!t.content)("mat-badge-disabled",t.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],position:["matBadgePosition","position"],content:["matBadge","content"],description:["matBadgeDescription","description"],size:["matBadgeSize","size"],hidden:["matBadgeHidden","hidden"]},features:[i.qOj]}),n})(),vO=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[Rl,_t,_t]}),n})();const dT=function(n){return{color:n}};function TO(n,a){if(1&n&&(i.TgZ(0,"button",8),i.ALo(1,"translate"),i.TgZ(2,"mat-icon",4),i._uU(3," apps "),i.qZA()()),2&n){const e=i.oxw(),t=i.MAs(2);i.Q6J("matMenuTriggerFor",t)("matTooltip",i.lcZ(1,3,"NAV.OTHER_APPLICATIONS")),i.xp6(2),i.Q6J("ngStyle",i.VKq(5,dT,e.iconColor))}}function xO(n,a){if(1&n&&(i.TgZ(0,"span",9),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.Q6J("ngStyle",i.VKq(6,dT,e.textColor)),i.xp6(1),i.xDo(" ",e.user.titleBefore," ",e.user.firstName," ",e.user.middleName," ",e.user.lastName," ",e.user.titleAfter," ")}}function SO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",2),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onLogOut())}),i._uU(1),i.ALo(2,"translate"),i.qZA()}2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"NAV.LOGOUT")," "))}let EO=(()=>{class n{constructor(e){this.authService=e}redirectToUrl(){window.open(this.url,"_blank")}onLogOut(){this.authService.logout()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ql))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-header-menu"]],inputs:{user:"user",iconColor:"iconColor",textColor:"textColor",logoutEnabled:"logoutEnabled",url:"url",label:"label"},decls:13,vars:8,consts:[["mat-icon-button","",3,"matMenuTriggerFor","matTooltip",4,"ngIf"],["appsMenu","matMenu"],["mat-menu-item","",3,"click"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],["class","d-none d-lg-inline",3,"ngStyle",4,"ngIf"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-icon-button","",3,"matMenuTriggerFor","matTooltip"],[1,"d-none","d-lg-inline",3,"ngStyle"]],template:function(e,t){if(1&e&&(i.YNc(0,TO,4,7,"button",0),i.TgZ(1,"mat-menu",null,1)(3,"button",2),i.NdJ("click",function(){return t.redirectToUrl()}),i.TgZ(4,"span"),i._uU(5),i.qZA()()(),i.TgZ(6,"button",3)(7,"mat-icon",4),i._uU(8," person "),i.qZA(),i.YNc(9,xO,2,8,"span",5),i.qZA(),i.TgZ(10,"mat-menu",null,6),i.YNc(12,SO,3,3,"button",7),i.qZA()),2&e){const r=i.MAs(11);i.Q6J("ngIf",t.url),i.xp6(5),i.Oqu(t.label),i.xp6(1),i.Q6J("matMenuTriggerFor",r),i.xp6(1),i.Q6J("ngStyle",i.VKq(6,dT,t.iconColor)),i.xp6(2),i.Q6J("ngIf",null!==t.user),i.xp6(3),i.Q6J("ngIf",t.logoutEnabled)}},dependencies:[w.O5,w.PC,Ji,zp,sd,Nb,Dt,gr,Qe],styles:["@media (max-width: 991px){.no-left-padding[_ngcontent-%COMP%]{padding-left:0}}"]}),n})(),DO=(()=>{class n{constructor(e){this.elementRef=e}ngOnInit(){this.elementRef.nativeElement.focus()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","perunWebAppsAutoFocus",""]]}),n})(),hD=(()=>{class n{onClick(e){if(1===e.button&&null!=this.perunWebAppsMiddleClickRouterLink){const t=this.perunWebAppsMiddleClickRouterLink.join("/"),r=location.search;window.open(t+r)}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","perunWebAppsMiddleClickRouterLink",""]],hostBindings:function(e,t){1&e&&i.NdJ("mouseup",function(l){return t.onClick(l)})},inputs:{perunWebAppsMiddleClickRouterLink:"perunWebAppsMiddleClickRouterLink"}}),n})(),NA=(()=>{class n extends Qa{constructor(){super(...arguments),this.queryParamsHandling="merge"}ngOnChanges(){if(this.queryParams&&"applicationFormItems"in this.queryParams){this.queryParamsHandling="";const e=Object.assign({},this.queryParams);delete e.applicationFormItems,this.queryParams=e}}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["tr","routerLink",""],["a","routerLink",""]],features:[i.qOj,i.TTD]}),n})();const rf=function(n){return{color:n}};function HO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",9),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onToggleSidenav())}),i.TgZ(1,"mat-icon"),i._uU(2,"menu"),i.qZA()()}if(2&n){const e=i.oxw();i.Q6J("ngStyle",i.VKq(1,rf,e.iconColor))}}function LO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",10)(1,"button",11)(2,"mat-icon",12),i._uU(3," language "),i.qZA()(),i.TgZ(4,"mat-menu",null,13)(6,"button",14),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.changeLanguage())}),i._uU(7),i.ALo(8,"translate"),i.qZA()()()}if(2&n){const e=i.MAs(5),t=i.oxw();i.Q6J("ngStyle",i.VKq(6,rf,t.textColor)),i.xp6(1),i.Q6J("matMenuTriggerFor",e),i.xp6(1),i.Q6J("ngStyle",i.VKq(8,rf,t.iconColor)),i.xp6(5),i.hij(" ",i.lcZ(8,4,"HEADER.LANGUAGE")," ")}}function PO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",15),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.showNotificationHistory())}),i.ALo(1,"translate"),i.TgZ(2,"mat-icon",16),i._uU(3),i.qZA()()}if(2&n){const e=i.oxw();i.Q6J("matTooltip",i.lcZ(1,5,"NAV.NOTIFICATIONS_TOOLTIP")),i.xp6(2),i.s9C("matBadge",e.getNewNotificationsCount()>5?"5+":e.getNewNotificationsCount()),i.Q6J("ngStyle",i.VKq(7,rf,e.iconColor))("matBadgeHidden",0===e.getNewNotificationsCount()),i.xp6(1),i.hij(" ",e.getNewNotificationsCount()?"notifications_active":"notifications"," ")}}function RO(n,a){if(1&n&&i._UZ(0,"perun-web-apps-header-menu",17),2&n){const e=i.oxw();i.Q6J("url",e.otherAppUrl)("label",e.otherAppLabel)("user",e.principal.user)("logoutEnabled",e.logoutEnabled)("iconColor",e.iconColor)("textColor",e.textColor)}}const kO=function(n){return{background:n}},OO=function(){return[]},IO=function(){return["/"]};let BO=(()=>{class n{constructor(e,t,r,l,c,s,o){this.storeService=e,this.sanitizer=t,this.translateService=r,this.otherApplicationService=l,this.notificationStorageService=c,this.dialog=s,this.route=o,this.sidenavToggle=new i.vpe,this.showToggle=!0,this.showLanguageMenu=!1,this.showHeaderMenu=!0,this.showNotifications=!1,this.disableLogo=!1,this.label=this.storeService.getProperty("header_label_en"),this.logoutEnabled=this.storeService.getProperty("log_out_enabled"),this.principal=this.storeService.getPerunPrincipal(),this.bgColor=this.storeService.getProperty("theme").nav_bg_color,this.textColor=this.storeService.getProperty("theme").nav_text_color,this.iconColor=this.storeService.getProperty("theme").nav_icon_color,this.navTextColor=this.storeService.getProperty("theme").nav_text_color,this.activeLink=!1,this.onToggleSidenav=()=>{this.sidenavToggle.emit()}}ngOnInit(){this.otherAppLabel=this.getOtherAppLabel(),this.translateService.onLangChange.subscribe(e=>{this.label=this.storeService.getProperty("en"===e.lang?"header_label_en":"header_label_cs"),this.otherAppLabel=this.getOtherAppLabel(e.lang)}),this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.getProperty("logo")),this.isLinkToOtherAppActive()}getOtherAppLabel(e="en"){return this.storeService.getProperty(this.otherApp===Go.Profile?"profile_label_en":"en"===e?"admin_gui_label_en":"admin_gui_label_cs")}isLinkToOtherAppActive(){if(this.otherApp===Go.Admin){this.linkRoles=this.storeService.getProperty("link_to_admin_gui_by_roles");for(const e in this.storeService.getPerunPrincipal().roles)this.linkRoles.includes(e)&&(this.activeLink=!0)}(this.otherApp!==Go.Admin||this.activeLink)&&(this.otherAppUrl=this.otherApplicationService.getUrlForOtherApplication(this.otherApp))}changeLanguage(){this.translateService.use("en"===this.translateService.currentLang?"cs":"en")}showNotificationHistory(){this.notificationStorageService.newNotificationsCount=0;const e=ri();e.width="520px",this.dialog.open(cD,e)}getNewNotificationsCount(){return this.notificationStorageService.newNotificationsCount}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(jt),i.Y36(Ki),i.Y36($t),i.Y36(AA),i.Y36(_A),i.Y36(Fi),i.Y36(In))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-header"]],inputs:{showToggle:"showToggle",showLanguageMenu:"showLanguageMenu",showHeaderMenu:"showHeaderMenu",showNotifications:"showNotifications",disableLogo:"disableLogo",otherApp:"otherApp"},outputs:{sidenavToggle:"sidenavToggle"},decls:10,vars:19,consts:[[1,"sticky-top","header-container","mat-elevation-z3",3,"ngStyle"],["id","nav-menu-icons"],["aria-label","Menu","mat-icon-button","",3,"ngStyle","click",4,"ngIf"],["queryParamsHandling","merge",1,"logo-container","mt-auto","mb-auto",3,"innerHTML","routerLink","queryParams"],[1,"mt-auto","mb-auto","hide-label","page-subtitle",3,"ngStyle"],["id","nav-menu-user-info",3,"ngStyle"],["id","nav-menu-language",3,"ngStyle",4,"ngIf"],["mat-icon-button","",3,"matTooltip","click",4,"ngIf"],[3,"url","label","user","logoutEnabled","iconColor","textColor",4,"ngIf"],["aria-label","Menu","mat-icon-button","",3,"ngStyle","click"],["id","nav-menu-language",3,"ngStyle"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],["menu","matMenu"],["mat-menu-item","",3,"click"],["mat-icon-button","",3,"matTooltip","click"],["matBadgeColor","warn",3,"ngStyle","matBadge","matBadgeHidden"],[3,"url","label","user","logoutEnabled","iconColor","textColor"]],template:function(e,t){1&e&&(i.TgZ(0,"mat-toolbar",0)(1,"div",1),i.YNc(2,HO,3,3,"button",2),i._UZ(3,"a",3),i.TgZ(4,"p",4),i._uU(5),i.qZA()(),i.TgZ(6,"div",5),i.YNc(7,LO,9,10,"div",6),i.YNc(8,PO,4,9,"button",7),i.YNc(9,RO,1,6,"perun-web-apps-header-menu",8),i.qZA()()),2&e&&(i.Q6J("ngStyle",i.VKq(11,kO,t.bgColor)),i.xp6(2),i.Q6J("ngIf",t.showToggle),i.xp6(1),i.Q6J("innerHTML",t.logo,i.oJD)("routerLink",t.disableLogo?i.DdM(13,OO):i.DdM(14,IO))("queryParams",t.route.snapshot.queryParams),i.xp6(1),i.Q6J("ngStyle",i.VKq(15,rf,t.textColor)),i.xp6(1),i.hij(" ",t.label," "),i.xp6(1),i.Q6J("ngStyle",i.VKq(17,rf,t.navTextColor)),i.xp6(1),i.Q6J("ngIf",t.showLanguageMenu),i.xp6(1),i.Q6J("ngIf",t.showNotifications),i.xp6(1),i.Q6J("ngIf",t.showHeaderMenu))},dependencies:[w.O5,w.PC,Hc,Ji,zp,sd,Nb,Dt,gr,yO,CO,EO,NA,Qe],styles:[".header-container[_ngcontent-%COMP%]{height:64px!important;display:flex;justify-content:space-between;padding:0 0 0 8px;z-index:999}#nav-menu-user-info[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding-right:16px;margin-left:auto;margin-right:0}@media (max-width: 570px){.hide-label[_ngcontent-%COMP%]{display:none}}#nav-devel-info[_ngcontent-%COMP%]{margin-left:auto;font-weight:500;font-size:1.4rem;display:flex;align-items:center;font-family:Roboto,Helvetica Neue,sans-serif}#nav-menu-icons[_ngcontent-%COMP%]{display:flex;flex-direction:row}.logo-container[_ngcontent-%COMP%]{padding:0 20px 0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}#nav-menu-language[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding-right:16px}"]}),n})();function NO(n,a){if(1&n&&(i.TgZ(0,"div",8),i._UZ(1,"div",9),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Q6J("innerHTML",e.logo,i.oJD)}}function VO(n,a){if(1&n&&(i.TgZ(0,"div",10),i._UZ(1,"div",11)(2,"mat-icon",12),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Q6J("innerHTML",e.logo,i.oJD)}}const FO=function(n){return{color:n}};function zO(n,a){if(1&n&&(i.TgZ(0,"p",13),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.Q6J("ngStyle",i.VKq(2,FO,e.textColor)),i.xp6(1),i.hij(" ",e.headerTitle," ")}}const jO=function(n,a){return{background:n,color:a}},qO=function(n,a){return{"min-height":n,"background-color":a}};let YO=(()=>{class n{constructor(e,t,r,l){this.storeService=e,this.sanitizer=t,this.preferredLangService=r,this.translateService=l,this.contentBackgroundColor=this.storeService.getProperty("theme").content_bg_color}ngOnInit(){if(this.headerBackgroundColor=this.storeService.getProperty("theme").nav_bg_color,this.headerTextColor=this.storeService.getProperty("theme").nav_text_color,this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.getProperty("logo")),this.textColor=this.headerTitle?this.storeService.getProperty("theme").nav_text_color:"","user-profile"===this.application){const e=this.preferredLangService.getPreferredLanguage(null);this.translateService.use(e)}}getContentInnerMinHeight(){return"calc((100vh - 64px) + 0px)"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(jt),i.Y36(Ki),i.Y36(Nv),i.Y36($t))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-login-screen-base"]],inputs:{application:"application",headerTitle:"headerTitle"},decls:10,vars:11,consts:[["id","login-nav",1,"mat-elevation-z3",3,"ngStyle"],["class","mt-auto mb-auto",4,"ngIf"],["class","display-flex-row",4,"ngIf"],["class","ml-3 mt-auto mb-auto page-subtitle",3,"ngStyle",4,"ngIf"],["id","content"],["id","content-inner",3,"ngStyle"],["id","content-wrap"],["id","footer"],[1,"mt-auto","mb-auto"],[1,"logo-container",3,"innerHTML"],[1,"display-flex-row"],[1,"logo-container","mt-auto","mb-auto",3,"innerHTML"],["svgIcon","perun-publications-white",1,"mt-auto","mb-auto","router-icon","ml-2","mr-2"],[1,"ml-3","mt-auto","mb-auto","page-subtitle",3,"ngStyle"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.YNc(1,NO,2,1,"div",1),i.YNc(2,VO,3,1,"div",2),i.YNc(3,zO,2,4,"p",3),i.qZA(),i.TgZ(4,"div",4)(5,"div",5)(6,"div",6),i._UZ(7,"router-outlet"),i.qZA(),i.TgZ(8,"div",7),i._UZ(9,"perun-web-apps-footer"),i.qZA()()()),2&e&&(i.Q6J("ngStyle",i.WLB(5,jO,t.headerBackgroundColor,t.headerTextColor)),i.xp6(1),i.Q6J("ngIf","admin-gui"===t.application||"user-profile"===t.application||"consolidator"===t.application),i.xp6(1),i.Q6J("ngIf","publications"===t.application),i.xp6(1),i.Q6J("ngIf",!!t.headerTitle),i.xp6(2),i.Q6J("ngStyle",i.WLB(8,qO,t.getContentInnerMinHeight(),t.contentBackgroundColor)))},dependencies:[w.O5,w.PC,Ji,Ma,UE],styles:["#login-nav[_ngcontent-%COMP%]{position:fixed;width:100%;z-index:999;display:flex;height:64px;max-height:64px;top:0}#footer[_ngcontent-%COMP%]{position:absolute;bottom:0;width:100%}#content[_ngcontent-%COMP%]{width:100%;min-height:calc(100vh - 64px);margin-top:64px}#content-inner[_ngcontent-%COMP%]{position:relative}#content-wrap[_ngcontent-%COMP%]{padding-bottom:250px;padding-top:10px}@media (max-width: 768px){#content-wrap[_ngcontent-%COMP%]{padding-bottom:500px}}.router-icon[_ngcontent-%COMP%]{height:2.5rem;width:2.5rem;cursor:pointer;outline:0}.page-subtitle[_ngcontent-%COMP%]{margin-bottom:1rem;font-size:1.5rem}.logo-container[_ngcontent-%COMP%]{padding:0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}.display-flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}"]}),n})(),WO=(()=>{class n{constructor(e){this.store=e}getSideMenuItems(){const e=this.store.getProperty("displayed_tabs"),t=[];return e.forEach(l=>{switch(l){case"profile":t.push({label:"MENU_ITEMS.PROFILE",icon:"account_box",link:"/profile",activatedRegex:"^/profile$",tabName:"profile"});break;case"identities":t.push({label:"MENU_ITEMS.IDENTITIES",icon:"remove_red_eye",link:"/profile/identities",activatedRegex:"^/profile/identities$",tabName:"identities"});break;case"services":t.push({label:"MENU_ITEMS.SERVICES",icon:"build",link:"/profile/services",activatedRegex:"^/profile/services$",tabName:"services"});break;case"groups":t.push({label:"MENU_ITEMS.GROUPS",icon:"group",link:"/profile/groups",activatedRegex:"^/profile/groups$",tabName:"groups"});break;case"vos":t.push({label:"MENU_ITEMS.VOS",icon:"account_balance",link:"/profile/organizations",activatedRegex:"^/profile/organizations$",tabName:"vos"});break;case"privacy":t.push({label:"MENU_ITEMS.PRIVACY",icon:"vpn_key",link:"/profile/privacy",activatedRegex:"^/profile/privacy$",tabName:"privacy"});break;case"consents":t.push({label:"MENU_ITEMS.CONSENTS",icon:"fact_check",link:"/profile/consents",activatedRegex:"^/profile/consents",tabName:"consents"});break;case"settings":t.push({label:"MENU_ITEMS.SETTINGS",icon:"settings",link:"/profile/settings",activatedRegex:"^/profile/settings",tabName:"settings"})}}),this.store.getProperty("external_services").forEach(l=>{const c={icon:"insert_link",link:l.url,activatedRegex:"^/profile/external",tabName:"external",external:!0};this.store.getProperty("supported_languages").forEach(o=>{c[`label_${o}`]=String(l[`label_${o}`])??l.label_en}),t.push(c)}),t}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(jt))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),uT=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[_t,_t]}),n})();const hT=["*"],UO=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],GO=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],fD=is(xr(class{})),XO=xr(class{}),mD=new i.OlP("MatList"),gD=new i.OlP("MatNavList");let KO=(()=>{class n extends fD{constructor(){super(...arguments),this._stateChanges=new Ee.x}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[i._Bn([{provide:gD,useExisting:n}]),i.qOj,i.TTD],ngContentSelectors:hT,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.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:rgba(0,0,0,0);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{display:block;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:rgba(0,0,0,0);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{display:block;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 .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-list-option:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:hover{outline:dotted 1px;z-index:1}.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}}'],encapsulation:2,changeDetection:0}),n})(),pT=(()=>{class n extends fD{constructor(e){super(),this._elementRef=e,this._stateChanges=new Ee.x,"action-list"===this._getListType()&&e.nativeElement.classList.add("mat-action-list")}_getListType(){const e=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===e?"list":"mat-action-list"===e?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[i._Bn([{provide:mD,useExisting:n}]),i.qOj,i.TTD],ngContentSelectors:hT,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.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:rgba(0,0,0,0);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{display:block;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:rgba(0,0,0,0);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{display:block;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 .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-list-option:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:hover{outline:dotted 1px;z-index:1}.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}}'],encapsulation:2,changeDetection:0}),n})(),_D=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),n})(),bD=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),n})(),VA=(()=>{class n extends XO{constructor(e,t,r,l){super(),this._element=e,this._isInteractiveList=!1,this._destroyed=new Ee.x,this._disabled=!1,this._isInteractiveList=!!(r||l&&"action-list"===l._getListType()),this._list=r||l;const c=this._getHostElement();"button"===c.nodeName.toLowerCase()&&!c.hasAttribute("type")&&c.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe(nt(this._destroyed)).subscribe(()=>{t.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(e){this._disabled=Fe(e)}ngAfterContentInit(){!function Xh(n,a,e="mat"){n.changes.pipe(Hi(n)).subscribe(({length:t})=>{ns(a,`${e}-2-line`,!1),ns(a,`${e}-3-line`,!1),ns(a,`${e}-multi-line`,!1),2===t||3===t?ns(a,`${e}-${t}-line`,!0):t>3&&ns(a,`${e}-multi-line`,!0)})}(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 n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(gD,8),i.Y36(mD,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,_D,5),i.Suo(r,bD,5),i.Suo(r,Ol,5)),2&e){let l;i.iGM(l=i.CRH())&&(t._avatar=l.first),i.iGM(l=i.CRH())&&(t._icon=l.first),i.iGM(l=i.CRH())&&(t._lines=l)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:4,hostBindings:function(e,t){2&e&&i.ekj("mat-list-item-disabled",t.disabled)("mat-list-item-with-avatar",t._avatar||t._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[i.qOj],ngContentSelectors:GO,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(e,t){1&e&&(i.F$t(UO),i.TgZ(0,"span",0),i._UZ(1,"span",1),i.Hsn(2),i.TgZ(3,"span",2),i.Hsn(4,1),i.qZA(),i.Hsn(5,2),i.qZA()),2&e&&(i.xp6(1),i.Q6J("matRippleTrigger",t._getHostElement())("matRippleDisabled",t._isRippleDisabled()))},dependencies:[na],encapsulation:2,changeDetection:0}),n})(),fT=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[Il,jr,_t,_0,w.ez,Il,_t,_0,uT]}),n})();const aI=function(n){return{color:n}};function sI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-list-item",2),i.NdJ("click",function(){const l=i.CHM(e).$implicit,c=i.oxw();return i.KtG(l.external?c.goToURL(l.link):c.shouldHideMenu())}),i.TgZ(1,"mat-icon"),i._uU(2),i.qZA(),i.TgZ(3,"span",3),i._uU(4),i.ALo(5,"localisedText"),i.ALo(6,"translate"),i.ALo(7,"customTranslate"),i.qZA()()}if(2&n){const e=a.$implicit,t=i.oxw();i.ekj("activated",t.isActive(e.activatedRegex)),i.s9C("routerLink",e.external?null:e.link),i.Q6J("ngStyle",i.VKq(16,aI,t.textColor))("matRippleColor","rgba(255, 255, 255, 0.1)"),i.xp6(2),i.Oqu(e.icon),i.xp6(2),i.Oqu(e.external?i.Dn7(5,7,e,t.lang,"label"):i.lcZ(6,11,i.xi3(7,13,e.label,t.lang)))}}let oI=(()=>{class n{constructor(e,t,r,l){this.sideMenuItemService=e,this.storeService=t,this.router=r,this.translateService=l,this.items=[],this.lang="en",this.textColor=this.storeService.getProperty("theme").sidemenu_text_color,this.currentUrl=r.url,r.events.subscribe(c=>{c instanceof Xn&&(this.currentUrl=c.url)})}ngOnInit(){this.translateService.onLangChange.subscribe(t=>{const{lang:r}=t;this.lang=r});const e=this.storeService.getProperty("displayed_tabs");this.items=this.sideMenuItemService.getSideMenuItems(),this.items=this.items.filter(t=>e.includes(t.tabName))}isActive(e){return new RegExp(e).test(this.currentUrl)}shouldHideMenu(){"over"===this.sideNav.mode&&this.sideNav.close()}goToURL(e){window.open(e,"_blank")}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(WO),i.Y36(jt),i.Y36(Ni),i.Y36($t))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-side-menu"]],inputs:{sideNav:"sideNav"},decls:2,vars:1,consts:[[1,"pt-0"],["mat-ripple","","class","side-menu-item-height","queryParamsHandling","merge",3,"activated","ngStyle","matRippleColor","routerLink","click",4,"ngFor","ngForOf"],["mat-ripple","","queryParamsHandling","merge",1,"side-menu-item-height",3,"ngStyle","matRippleColor","routerLink","click"],[1,"nav-caption","ml-3"]],template:function(e,t){1&e&&(i.TgZ(0,"mat-nav-list",0),i.YNc(1,sI,8,18,"mat-list-item",1),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngForOf",t.items))},dependencies:[w.sg,w.PC,Ji,KO,VA,Qa,Jv,na,Qe,Qt,WE],styles:[".nav-caption[_ngcontent-%COMP%]{display:inline-block;padding-left:6px}.side-menu-item-height[_ngcontent-%COMP%]{height:40px!important}mat-list-item[_ngcontent-%COMP%]:hover{background:var(--side-hover)!important;color:var(--side-text-hover)!important}.activated[_ngcontent-%COMP%]{background:var(--side-active)!important;color:var(--side-text-active)!important}"]}),n})();function lI(n,a){if(1&n&&(i.TgZ(0,"span",1)(1,"a",2),i._uU(2),i.qZA()()),2&n){const e=a.$implicit;i.xp6(1),i.Q6J("routerLink",e.routerLink),i.xp6(1),i.Oqu(e.label)}}let cI=(()=>{class n{constructor(e,t,r){this.router=e,this.activatedRoute=t,this.translate=r,this.home={label:"Home",routerLink:"profile"},this.menuItems=[]}ngOnInit(){this.router.events.pipe((0,ye.h)(e=>e instanceof Xn)).subscribe(()=>{this.menuItems=[],this.createBreadcrumbs(this.activatedRoute.root)})}createBreadcrumbs(e,t=""){const r=e.children;0===r.length||"service-access"===r[0].snapshot.routeConfig.path||r.forEach(l=>{const c=l.snapshot.url.map(o=>o.path).join("/");""!==c&&(t+=`/${c}`);const s=this.translate.instant(l.snapshot.data[n.ROUTE_DATA_BREADCRUMB]);return s&&(!this.menuItems[this.menuItems.length-1]||s!==this.menuItems[this.menuItems.length-1].label)&&this.menuItems.push({label:s,routerLink:t}),this.createBreadcrumbs(l,t)})}}return n.ROUTE_DATA_BREADCRUMB="breadcrumb",n.\u0275fac=function(e){return new(e||n)(i.Y36(Ni),i.Y36(In),i.Y36($t))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-breadcrumbs"]],decls:1,vars:1,consts:[["class","custom-breadcrumb",4,"ngFor","ngForOf"],[1,"custom-breadcrumb"],[1,"breadcrumb-text",3,"routerLink"]],template:function(e,t){1&e&&i.YNc(0,lI,3,2,"span",0),2&e&&i.Q6J("ngForOf",t.menuItems)},dependencies:[w.sg,Hc,NA],styles:['.custom-breadcrumb[_ngcontent-%COMP%]{display:inline-block}.custom-breadcrumb[_ngcontent-%COMP%]:first-child:before{display:none}.custom-breadcrumb[_ngcontent-%COMP%]:before{content:">";vertical-align:center;display:inline-block;margin:0 10px 10px 8px;-webkit-font-smoothing:antialiased}.breadcrumb-text[_ngcontent-%COMP%]{text-decoration:none!important;color:#2c2c2c}']}),n})();const dI=["footer"],yD=function(n){return{background:n}},uI=function(n){return{"min-height":n}};function hI(n,a){if(1&n){const e=i.EpF();i._UZ(0,"perun-web-apps-notificator"),i.TgZ(1,"div",2)(2,"perun-web-apps-header",3),i.NdJ("sidenavToggle",function(){i.CHM(e);const r=i.MAs(5);return i.KtG(r.toggle())}),i.qZA(),i.TgZ(3,"mat-sidenav-container",4)(4,"mat-sidenav",5,6),i._UZ(6,"perun-web-apps-side-menu",7),i.qZA(),i.TgZ(7,"mat-sidenav-content",8)(8,"div",9),i._UZ(9,"perun-web-apps-breadcrumbs")(10,"router-outlet"),i.qZA(),i.TgZ(11,"div",null,10),i._UZ(13,"perun-web-apps-footer"),i.qZA()()()()}if(2&n){const e=i.MAs(5),t=i.oxw();i.xp6(2),i.Q6J("otherApp",t.otherApp),i.xp6(2),i.Q6J("mode",t.sidebarMode)("ngStyle",i.VKq(7,yD,t.sideMenuBgColor))("opened",!t.isMobile()),i.xp6(2),i.Q6J("sideNav",e),i.xp6(1),i.Q6J("ngStyle",i.VKq(9,yD,t.contentBackgroundColor)),i.xp6(1),i.Q6J("ngStyle",i.VKq(11,uI,t.contentHeight))}}function pI(n,a){if(1&n&&i._UZ(0,"perun-web-apps-login-screen-base",11),2&n){const e=i.oxw();i.Q6J("application","user-profile")("headerTitle",e.headerLabel)}}let fI=(()=>{class n{constructor(e,t,r,l,c,s,o,d){this.store=e,this.attributesManagerService=t,this.translateService=r,this.initAuth=l,this.changeDetector=c,this.preferredLangService=s,this.titleService=o,this.document=d,this.sidebarMode="side",this.sideMenuBgColor=this.store.getProperty("theme").sidemenu_bg_color,this.contentBackgroundColor=this.store.getProperty("theme").content_bg_color,this.contentHeight="calc(100vh - 84px)",this.headerLabel=this.store.getProperty("header_label_en"),this.otherApp=Go.Admin,this.getScreenSize()}getScreenSize(){this.sidebarMode=this.isMobile()?"over":"side"}ngOnInit(){if(this.translateService.onLangChange.subscribe(e=>{const t=this.store.getProperty("document_title");this.titleService.setTitle("en"===e.lang?t.en:t.cs),this.document.documentElement.lang=e.lang}),this.isLoginScreenShown=this.initAuth.isLoginScreenShown(),this.isServiceAccess=this.initAuth.isServiceAccessLoginScreenShown(),sessionStorage.removeItem("baLogout"),this.isLoginScreenShown||this.isServiceAccess){const e=this.preferredLangService.getPreferredLanguage(null);this.headerLabel=this.store.getProperty("en"===e?"header_label_en":"header_label_cs")}else this.attributesManagerService.getUserAttributes(this.store.getPerunPrincipal().userId).subscribe(e=>{const r=e.find(c=>"preferredLanguage"===c.friendlyName)?.value??null,l=this.preferredLangService.getPreferredLanguage(r);this.translateService.use(l)})}isMobile(){return window.innerWidth<=n.minWidth}isServiceLogin(){return!!sessionStorage.getItem("baLogout")}ngAfterViewInit(){const e=this.footer?.nativeElement?.offsetHeight?.toString()??"0";this.contentHeight="calc(100vh - 84px - "+e+"px)",this.changeDetector.detectChanges()}}return n.minWidth=992,n.\u0275fac=function(e){return new(e||n)(i.Y36(jt),i.Y36(ji),i.Y36($t),i.Y36(gA),i.Y36(i.sBO),i.Y36(Nv),i.Y36(se),i.Y36(w.K0))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-root"]],viewQuery:function(e,t){if(1&e&&i.Gf(dI,5),2&e){let r;i.iGM(r=i.CRH())&&(t.footer=r.first)}},hostBindings:function(e,t){1&e&&i.NdJ("resize",function(l){return t.getScreenSize(l)},!1,i.Jf7)},decls:2,vars:2,consts:[[3,"ngIf"],[3,"application","headerTitle",4,"ngIf"],[1,"app-min-width"],[3,"otherApp","sidenavToggle"],["autosize","true"],["fixedInViewport","","fixedTopGap","64",1,"side-menu-size",3,"mode","ngStyle","opened"],["sidenav",""],[1,"overflow-hidden",3,"sideNav"],["id","content-inner",3,"ngStyle"],["id","content-wrap",3,"ngStyle"],["footer",""],[3,"application","headerTitle"]],template:function(e,t){1&e&&(i.YNc(0,hI,14,13,"ng-template",0),i.YNc(1,pI,1,2,"perun-web-apps-login-screen-base",1)),2&e&&(i.Q6J("ngIf",!t.isLoginScreenShown&&!t.isServiceAccess&&!t.isServiceLogin()),i.xp6(1),i.Q6J("ngIf",t.isLoginScreenShown||t.isServiceAccess||t.isServiceLogin()))},dependencies:[w.O5,w.PC,_E,bE,zv,Ma,Jv,UE,mO,BO,YO,oI,cI],styles:["#content-inner[_ngcontent-%COMP%]{position:relative}#content-wrap[_ngcontent-%COMP%]{padding-bottom:25px;padding-top:10px;margin:10px}@media (min-width: 600px){#content-wrap[_ngcontent-%COMP%]{padding-left:25px;padding-right:25px}}a[_ngcontent-%COMP%]{text-decoration:none;color:#000}.side-menu-size[_ngcontent-%COMP%]{width:300px;height:auto}"]}),n})();var MD=T(1158);function mI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",15),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().index,l=i.oxw();return i.KtG(l.removeValue(r))}),i.TgZ(1,"mat-icon"),i._uU(2," indeterminate_check_box "),i.qZA()()}}function gI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",9)(1,"mat-form-field",10),i._UZ(2,"label",11),i.TgZ(3,"input",12),i.NdJ("click",function(){const l=i.CHM(e).index,c=i.oxw();return i.KtG(c.readonly&&c.attribute.displayName&&c.showValue(c.keys[l],c.attribute.displayName))})("ngModelChange",function(r){const c=i.CHM(e).index,s=i.oxw();return i.KtG(s.keys[c]=r)}),i.qZA()(),i.TgZ(4,"mat-form-field",10),i._UZ(5,"label",11),i.TgZ(6,"input",13),i.NdJ("click",function(){const l=i.CHM(e).$implicit,c=i.oxw();return i.KtG(c.readonly&&void 0!==c.attribute.displayName&&c.showValue(l,c.attribute.displayName))})("ngModelChange",function(r){const c=i.CHM(e).index,s=i.oxw();return i.KtG(s.values[c]=r)}),i.qZA()(),i.YNc(7,mI,3,0,"button",14),i.qZA()}if(2&n){const e=a.index,t=i.oxw();i.xp6(1),i.s9C("appearance",t.readonly?"none":"standard"),i.xp6(1),i.hYB("for","",t.attribute.id,"-key-",e,""),i.xp6(1),i.ekj("cursor-pointer",t.readonly&&void 0!==t.attribute.displayName),i.hYB("id","",t.attribute.id,"-key-",e,""),i.MGl("name","key-",e,""),i.Q6J("ngModel",t.keys[e])("readonly",t.readonly),i.xp6(1),i.s9C("appearance",t.readonly?"none":"standard"),i.xp6(1),i.hYB("for","",t.attribute.id,"-value-",e,""),i.xp6(1),i.ekj("cursor-pointer",t.readonly&&void 0!==t.attribute.displayName),i.MGl("name","value-",e,""),i.hYB("id","",t.attribute.id,"-value-",e,""),i.Q6J("readonly",t.readonly)("ngModel",t.values[e]),i.xp6(1),i.Q6J("ngIf",!t.readonly)}}function _I(n,a){1&n&&(i.TgZ(0,"mat-icon"),i._uU(1,"more_horiz"),i.qZA())}function bI(n,a){1&n&&(i.TgZ(0,"mat-icon"),i._uU(1,"keyboard_arrow_up"),i.qZA())}function AI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",16),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onShowChange())}),i.YNc(1,_I,2,0,"mat-icon",17),i.YNc(2,bI,2,0,"mat-icon",17),i.qZA()}if(2&n){const e=i.oxw();i.xp6(1),i.Q6J("ngIf",!e.showMore),i.xp6(1),i.Q6J("ngIf",e.showMore)}}function yI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",18),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.addValue())}),i.TgZ(1,"mat-icon"),i._uU(2," add_box "),i.qZA()()}}let MI=(()=>{class n{constructor(e){this.dialog=e,this.readonly=!1,this.keys=[],this.values=[],this.defaultItemsShown=3,this.showMore=!1}ngOnInit(){if(this.attribute.value){const e=new Map(Object.entries(this.attribute.value));for(const[t,r]of e.entries())this.keys.push(t),this.values.push(r)}this.itemsShown=this.readonly?this.values.length:this.defaultItemsShown,this.showMore=this.readonly,this.readonly||(this.readonly=Dr(this.attribute))}customTrackBy(e){return e}addValue(){this.keys.push(""),this.values.push(""),this.values.length>this.defaultItemsShown&&(this.showMore=!0,this.setItemsShown())}removeValue(e){this.keys.splice(e,1),this.values.splice(e,1)}updateAttribute(){const e={};for(let t=0;tt.defaultItemsShown),i.xp6(1),i.Q6J("ngIf",!t.readonly))},dependencies:[w.sg,w.O5,Mm,An,pn,Uc,qr,ka,$l,Ji,Dt,gr,hn,zn],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}.input-margin[_ngcontent-%COMP%]{margin-bottom:-30px}.btn-margin[_ngcontent-%COMP%]{margin-top:10px}"]}),n})();const wI=["input"],CI=["label"],vI=function(n){return{enterDuration:n}},TI=["*"],xI=new i.OlP("mat-checkbox-default-options",{providedIn:"root",factory:wD});function wD(){return{color:"accent",clickAction:"check-indeterminate"}}let SI=0;const CD=wD(),EI={provide:sr,useExisting:(0,i.Gpc)(()=>nc),multi:!0};class DI{}const HI=kl(hr(xr(is(class{constructor(n){this._elementRef=n}}))));let LI=(()=>{class n extends HI{constructor(e,t,r,l,c,s,o){super(t),this._changeDetectorRef=r,this._ngZone=l,this._animationMode=s,this._options=o,this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new i.vpe,this.indeterminateChange=new i.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||CD,this.color=this.defaultColor=this._options.color||CD.color,this.tabIndex=parseInt(c)||0,this.id=this._uniqueId=`${e}${++SI}`}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(e){this._required=Fe(e)}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(e){const t=Fe(e);t!=this.checked&&(this._checked=t,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){const t=Fe(e);t!==this.disabled&&(this._disabled=t,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(e){const t=e!=this._indeterminate;this._indeterminate=Fe(e),t&&(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(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(e){let t=this._currentCheckState,r=this._getAnimationTargetElement();if(t!==e&&r&&(this._currentAnimationClass&&r.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(t,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){r.classList.add(this._currentAnimationClass);const l=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{r.classList.remove(l)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){var e;const t=null===(e=this._options)||void 0===e?void 0:e.clickAction;this.disabled||"noop"===t?!this.disabled&&"noop"===t&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==t&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}_onInteractionEvent(e){e.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(e,t){if("NoopAnimations"===this._animationMode)return"";switch(e){case 0:if(1===t)return this._animationClasses.uncheckedToChecked;if(3==t)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===t?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===t?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===t?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){const t=this._inputElement;t&&(t.nativeElement.indeterminate=e)}}return n.\u0275fac=function(e){i.$Z()},n.\u0275dir=i.lG2({type:n,viewQuery:function(e,t){if(1&e&&(i.Gf(wI,5),i.Gf(CI,5),i.Gf(na,5)),2&e){let r;i.iGM(r=i.CRH())&&(t._inputElement=r.first),i.iGM(r=i.CRH())&&(t._labelElement=r.first),i.iGM(r=i.CRH())&&(t.ripple=r.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},features:[i.qOj]}),n})(),nc=(()=>{class n extends LI{constructor(e,t,r,l,c,s,o){super("mat-checkbox-",e,t,l,c,s,o),this._focusMonitor=r,this._animationClasses={uncheckedToChecked:"mat-checkbox-anim-unchecked-checked",uncheckedToIndeterminate:"mat-checkbox-anim-unchecked-indeterminate",checkedToUnchecked:"mat-checkbox-anim-checked-unchecked",checkedToIndeterminate:"mat-checkbox-anim-checked-indeterminate",indeterminateToChecked:"mat-checkbox-anim-indeterminate-checked",indeterminateToUnchecked:"mat-checkbox-anim-indeterminate-unchecked"}}_createChangeEvent(e){const t=new DI;return t.source=this,t.checked=e,t}_getAnimationTargetElement(){return this._elementRef.nativeElement}ngAfterViewInit(){super.ngAfterViewInit(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{e||this._onBlur()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onInputClick(e){e.stopPropagation(),super._handleInputClick()}focus(e,t){e?this._focusMonitor.focusVia(this._inputElement,e,t):this._inputElement.nativeElement.focus(t)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(ur),i.Y36(i.R0b),i.$8M("tabindex"),i.Y36(i.QbO,8),i.Y36(xI,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(e,t){2&e&&(i.Ikx("id",t.id),i.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null),i.ekj("mat-checkbox-indeterminate",t.indeterminate)("mat-checkbox-checked",t.checked)("mat-checkbox-disabled",t.disabled)("mat-checkbox-label-before","before"==t.labelPosition)("_mat-animation-noopable","NoopAnimations"===t._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[i._Bn([EI]),i.qOj],ngContentSelectors:TI,decls:17,vars:21,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","aria-hidden","true",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(e,t){if(1&e&&(i.F$t(),i.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),i.NdJ("change",function(l){return t._onInteractionEvent(l)})("click",function(l){return t._onInputClick(l)}),i.qZA(),i.TgZ(5,"span",5),i._UZ(6,"span",6),i.qZA(),i._UZ(7,"span",7),i.TgZ(8,"span",8),i.O4$(),i.TgZ(9,"svg",9),i._UZ(10,"path",10),i.qZA(),i.kcU(),i._UZ(11,"span",11),i.qZA()(),i.TgZ(12,"span",12,13),i.NdJ("cdkObserveContent",function(){return t._onLabelTextChange()}),i.TgZ(14,"span",14),i._uU(15,"\xa0"),i.qZA(),i.Hsn(16),i.qZA()()),2&e){const r=i.MAs(1),l=i.MAs(13);i.uIk("for",t.inputId),i.xp6(2),i.ekj("mat-checkbox-inner-container-no-side-margin",!l.textContent||!l.textContent.trim()),i.xp6(1),i.Q6J("id",t.inputId)("required",t.required)("checked",t.checked)("disabled",t.disabled)("tabIndex",t.tabIndex),i.uIk("value",t.value)("name",t.name)("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby)("aria-checked",t._getAriaChecked())("aria-describedby",t.ariaDescribedby),i.xp6(2),i.Q6J("matRippleTrigger",r)("matRippleDisabled",t._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",i.VKq(19,vI,"NoopAnimations"===t._animationMode?0:150))}},dependencies:[na,t0],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:rgba(0,0,0,0);position:relative}.mat-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.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}.mat-checkbox-layout{-webkit-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;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:rgba(0,0,0,0);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}.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);-webkit-print-color-adjust:exact;color-adjust:exact}._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:rgba(0,0,0,0)}.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-input:focus~.mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),n})(),vD=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),lg=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[jr,_t,eu,vD,_t,vD]}),n})(),mT=(()=>{class n{transform(e){return e.replace(/\s/g,"-").replace(/\./g,"-").toLowerCase()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"multiWordDataCy",type:n,pure:!0}),n})();function kI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-checkbox",2),i.NdJ("change",function(){i.CHM(e);const r=i.oxw();return i.KtG(r._sendEventToParent())})("ngModelChange",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.attribute.value=r)}),i.ALo(1,"multiWordDataCy"),i.qZA()}if(2&n){const e=i.oxw();i.Q2q("data-cy","",i.lcZ(1,2,e.attribute.displayName),"-value"),i.Q6J("ngModel",e.attribute.value)}}function OI(n,a){if(1&n&&(i.TgZ(0,"mat-label"),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Oqu(e.attribute.value)}}let II=(()=>{class n{constructor(){this.readonly=!1,this.sendEventToParent=new i.vpe}ngOnInit(){this.readonly||(this.readonly=Dr(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-attribute-value-boolean"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:3,vars:2,consts:[[3,"ngModel","change","ngModelChange",4,"ngIf"],[4,"ngIf"],[3,"ngModel","change","ngModelChange"]],template:function(e,t){1&e&&(i.TgZ(0,"div"),i.YNc(1,kI,2,4,"mat-checkbox",0),i.YNc(2,OI,2,1,"mat-label",1),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngIf",!t.readonly),i.xp6(1),i.Q6J("ngIf",t.readonly))},dependencies:[w.O5,nc,pn,ka,Ra,mT]}),n})();function gT(n,a,e){for(let t in a)if(a.hasOwnProperty(t)){const r=a[t];r?n.setProperty(t,r,null!=e&&e.has(t)?"important":""):n.removeProperty(t)}return n}function af(n,a){const e=a?"":"none";gT(n.style,{"touch-action":a?"":"none","-webkit-user-drag":a?"":"none","-webkit-tap-highlight-color":a?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function TD(n,a,e){gT(n.style,{position:a?"":"fixed",top:a?"":"0",opacity:a?"":"0",left:a?"":"-999em"},e)}function FA(n,a){return a&&"none"!=a?n+" "+a:n}function xD(n){const a=n.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(n)*a}function _T(n,a){return n.getPropertyValue(a).split(",").map(t=>t.trim())}function bT(n){const a=n.getBoundingClientRect();return{top:a.top,right:a.right,bottom:a.bottom,left:a.left,width:a.width,height:a.height,x:a.x,y:a.y}}function AT(n,a,e){const{top:t,bottom:r,left:l,right:c}=n;return e>=t&&e<=r&&a>=l&&a<=c}function cg(n,a,e){n.top+=a,n.bottom=n.top+n.height,n.left+=e,n.right=n.left+n.width}function SD(n,a,e,t){const{top:r,right:l,bottom:c,left:s,width:o,height:d}=n,u=o*a,h=d*a;return t>r-h&&ts-u&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:bT(e)})})}handleScroll(a){const e=ia(a),t=this.positions.get(e);if(!t)return null;const r=t.scrollPosition;let l,c;if(e===this._document){const d=this.getViewportScrollPosition();l=d.top,c=d.left}else l=e.scrollTop,c=e.scrollLeft;const s=r.top-l,o=r.left-c;return this.positions.forEach((d,u)=>{d.clientRect&&e!==u&&e.contains(u)&&cg(d.clientRect,s,o)}),r.top=l,r.left=c,{top:s,left:o}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function DD(n){const a=n.cloneNode(!0),e=a.querySelectorAll("[id]"),t=n.nodeName.toLowerCase();a.removeAttribute("id");for(let r=0;r{if(this.beforeStarted.next(),this._handles.length){const o=this._getTargetHandle(s);o&&!this._disabledHandles.has(o)&&!this.disabled&&this._initializeDragSequence(o,s)}else this.disabled||this._initializeDragSequence(this._rootElement,s)},this._pointerMove=s=>{const o=this._getPointerPositionOnPage(s);if(!this._hasStartedDragging){if(Math.abs(o.x-this._pickupPositionOnPage.x)+Math.abs(o.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const b=Date.now()>=this._dragStartTime+this._getDragStartDelay(s),B=this._dropContainer;if(!b)return void this._endDragSequence(s);(!B||!B.isDragging()&&!B.isReceiving())&&(s.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(s)))}return}s.preventDefault();const d=this._getConstrainedPointerPosition(o);if(this._hasMoved=!0,this._lastKnownPointerPosition=o,this._updatePointerDirectionDelta(d),this._dropContainer)this._updateActiveDropContainer(d,o);else{const u=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,h=this._activeTransform;h.x=d.x-u.x+this._passiveTransform.x,h.y=d.y-u.y+this._passiveTransform.y,this._applyRootElementTransform(h.x,h.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:d,event:s,distance:this._getDragDistance(d),delta:this._pointerDirectionDelta})})},this._pointerUp=s=>{this._endDragSequence(s)},this._nativeDragStart=s=>{if(this._handles.length){const o=this._getTargetHandle(s);o&&!this._disabledHandles.has(o)&&!this.disabled&&s.preventDefault()}else this.disabled||s.preventDefault()},this.withRootElement(a).withParent(e.parentDragRef||null),this._parentPositions=new ED(t),c.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(a){const e=Fe(a);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(t=>af(t,e)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(a){this._handles=a.map(t=>un(t)),this._handles.forEach(t=>af(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(a){return this._previewTemplate=a,this}withPlaceholderTemplate(a){return this._placeholderTemplate=a,this}withRootElement(a){const e=un(a);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,zA),e.addEventListener("touchstart",this._pointerDown,RD),e.addEventListener("dragstart",this._nativeDragStart,zA)}),this._initialTransform=void 0,this._rootElement=e),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(a){return this._boundaryElement=a?un(a):null,this._resizeSubscription.unsubscribe(),a&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(a){return this._parentDragRef=a,this}dispose(){var a,e;this._removeRootElementListeners(this._rootElement),this.isDragging()&&(null===(e=this._rootElement)||void 0===e||e.remove()),null===(a=this._anchor)||void 0===a||a.remove(),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=this._parentDragRef=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(a){!this._disabledHandles.has(a)&&this._handles.indexOf(a)>-1&&(this._disabledHandles.add(a),af(a,!0))}enableHandle(a){this._disabledHandles.has(a)&&(this._disabledHandles.delete(a),af(a,this.disabled))}withDirection(a){return this._direction=a,this}_withDropContainer(a){this._dropContainer=a}getFreeDragPosition(){const a=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:a.x,y:a.y}}setFreeDragPosition(a){return this._activeTransform={x:0,y:0},this._passiveTransform.x=a.x,this._passiveTransform.y=a.y,this._dropContainer||this._applyRootElementTransform(a.x,a.y),this}withPreviewContainer(a){return this._previewContainer=a,this}_sortFromLastPointerPosition(){const a=this._lastKnownPointerPosition;a&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(a),a)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){var a,e;null===(a=this._preview)||void 0===a||a.remove(),null===(e=this._previewRef)||void 0===e||e.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){var a,e;null===(a=this._placeholder)||void 0===a||a.remove(),null===(e=this._placeholderRef)||void 0===e||e.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(a){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:a}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(a),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(a);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e,event:a})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(a){dg(a)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const t=this._rootElement,r=t.parentNode,l=this._placeholder=this._createPlaceholderElement(),c=this._anchor=this._anchor||this._document.createComment(""),s=this._getShadowRoot();r.insertBefore(c,t),this._initialTransform=t.style.transform||"",this._preview=this._createPreviewElement(),TD(t,!1,yT),this._document.body.appendChild(r.replaceChild(l,t)),this._getPreviewInsertionPoint(r,s).appendChild(this._preview),this.started.next({source:this,event:a}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this,event:a}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(a,e){this._parentDragRef&&e.stopPropagation();const t=this.isDragging(),r=dg(e),l=!r&&0!==e.button,c=this._rootElement,s=ia(e),o=!r&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),d=r?zs(e):s0(e);if(s&&s.draggable&&"mousedown"===e.type&&e.preventDefault(),t||l||o||d)return;if(this._handles.length){const f=c.style;this._rootElementTapHighlight=f.webkitTapHighlightColor||"",f.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(f=>this._updateOnScroll(f)),this._boundaryElement&&(this._boundaryRect=bT(this._boundaryElement));const u=this._previewTemplate;this._pickupPositionInElement=u&&u.template&&!u.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,a,e);const h=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:h.x,y:h.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(a){TD(this._rootElement,!0,yT),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,t=e.getItemIndex(this),r=this._getPointerPositionOnPage(a),l=this._getDragDistance(r),c=e._isOverContainer(r.x,r.y);this.ended.next({source:this,distance:l,dropPoint:r,event:a}),this.dropped.next({item:this,currentIndex:t,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:c,distance:l,dropPoint:r,event:a}),e.drop(this,t,this._initialIndex,this._initialContainer,c,l,r),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:a,y:e},{x:t,y:r}){let l=this._initialContainer._getSiblingContainerFromPosition(this,a,e);!l&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(a,e)&&(l=this._initialContainer),l&&l!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=l,this._dropContainer.enter(this,a,e,l===this._initialContainer&&l.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:l,currentIndex:l.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(t,r),this._dropContainer._sortItem(this,a,e,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(a,e):this._applyPreviewTransform(a-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const a=this._previewTemplate,e=this.previewClass,t=a?a.template:null;let r;if(t&&a){const l=a.matchSize?this._initialClientRect:null,c=a.viewContainer.createEmbeddedView(t,a.context);c.detectChanges(),r=OD(c,this._document),this._previewRef=c,a.matchSize?ID(r,l):r.style.transform=jA(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else r=DD(this._rootElement),ID(r,this._initialClientRect),this._initialTransform&&(r.style.transform=this._initialTransform);return gT(r.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},yT),af(r,!1),r.classList.add("cdk-drag-preview"),r.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(l=>r.classList.add(l)):r.classList.add(e)),r}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const a=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(a.left,a.top);const e=function NI(n){const a=getComputedStyle(n),e=_T(a,"transition-property"),t=e.find(s=>"transform"===s||"all"===s);if(!t)return 0;const r=e.indexOf(t),l=_T(a,"transition-duration"),c=_T(a,"transition-delay");return xD(l[r])+xD(c[r])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{const r=c=>{var s;(!c||ia(c)===this._preview&&"transform"===c.propertyName)&&(null===(s=this._preview)||void 0===s||s.removeEventListener("transitionend",r),t(),clearTimeout(l))},l=setTimeout(r,1.5*e);this._preview.addEventListener("transitionend",r)}))}_createPlaceholderElement(){const a=this._placeholderTemplate,e=a?a.template:null;let t;return e?(this._placeholderRef=a.viewContainer.createEmbeddedView(e,a.context),this._placeholderRef.detectChanges(),t=OD(this._placeholderRef,this._document)):t=DD(this._rootElement),t.style.pointerEvents="none",t.classList.add("cdk-drag-placeholder"),t}_getPointerPositionInElement(a,e,t){const r=e===this._rootElement?null:e,l=r?r.getBoundingClientRect():a,c=dg(t)?t.targetTouches[0]:t,s=this._getViewportScrollPosition();return{x:l.left-a.left+(c.pageX-l.left-s.left),y:l.top-a.top+(c.pageY-l.top-s.top)}}_getPointerPositionOnPage(a){const e=this._getViewportScrollPosition(),t=dg(a)?a.touches[0]||a.changedTouches[0]||{pageX:0,pageY:0}:a,r=t.pageX-e.left,l=t.pageY-e.top;if(this._ownerSVGElement){const c=this._ownerSVGElement.getScreenCTM();if(c){const s=this._ownerSVGElement.createSVGPoint();return s.x=r,s.y=l,s.matrixTransform(c.inverse())}}return{x:r,y:l}}_getConstrainedPointerPosition(a){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:t,y:r}=this.constrainPosition?this.constrainPosition(a,this,this._initialClientRect,this._pickupPositionInElement):a;if("x"===this.lockAxis||"x"===e?r=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===e)&&(t=this._pickupPositionOnPage.x),this._boundaryRect){const{x:l,y:c}=this._pickupPositionInElement,s=this._boundaryRect,{width:o,height:d}=this._getPreviewRect(),u=s.top+c,h=s.bottom-(d-c);t=kD(t,s.left+l,s.right-(o-l)),r=kD(r,u,h)}return{x:t,y:r}}_updatePointerDirectionDelta(a){const{x:e,y:t}=a,r=this._pointerDirectionDelta,l=this._pointerPositionAtLastDirectionChange,c=Math.abs(e-l.x),s=Math.abs(t-l.y);return c>this._config.pointerDirectionChangeThreshold&&(r.x=e>l.x?1:-1,l.x=e),s>this._config.pointerDirectionChangeThreshold&&(r.y=t>l.y?1:-1,l.y=t),r}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const a=this._handles.length>0||!this.isDragging();a!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=a,af(this._rootElement,a))}_removeRootElementListeners(a){a.removeEventListener("mousedown",this._pointerDown,zA),a.removeEventListener("touchstart",this._pointerDown,RD),a.removeEventListener("dragstart",this._nativeDragStart,zA)}_applyRootElementTransform(a,e){const t=jA(a,e),r=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=r.transform&&"none"!=r.transform?r.transform:""),r.transform=FA(t,this._initialTransform)}_applyPreviewTransform(a,e){var t;const r=null!==(t=this._previewTemplate)&&void 0!==t&&t.template?void 0:this._initialTransform,l=jA(a,e);this._preview.style.transform=FA(l,r)}_getDragDistance(a){const e=this._pickupPositionOnPage;return e?{x:a.x-e.x,y:a.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:a,y:e}=this._passiveTransform;if(0===a&&0===e||this.isDragging()||!this._boundaryElement)return;const t=this._rootElement.getBoundingClientRect(),r=this._boundaryElement.getBoundingClientRect();if(0===r.width&&0===r.height||0===t.width&&0===t.height)return;const l=r.left-t.left,c=t.right-r.right,s=r.top-t.top,o=t.bottom-r.bottom;r.width>t.width?(l>0&&(a+=l),c>0&&(a-=c)):a=0,r.height>t.height?(s>0&&(e+=s),o>0&&(e-=o)):e=0,(a!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:a})}_getDragStartDelay(a){const e=this.dragStartDelay;return"number"==typeof e?e:dg(a)?e.touch:e?e.mouse:0}_updateOnScroll(a){const e=this._parentPositions.handleScroll(a);if(e){const t=ia(a);this._boundaryRect&&t!==this._boundaryElement&&t.contains(this._boundaryElement)&&cg(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(){var a;return(null===(a=this._parentPositions.positions.get(this._document))||void 0===a?void 0:a.scrollPosition)||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=Nh(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(a,e){const t=this._previewContainer||"global";if("parent"===t)return a;if("global"===t){const r=this._document;return e||r.fullscreenElement||r.webkitFullscreenElement||r.mozFullScreenElement||r.msFullscreenElement||r.body}return un(t)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(a){return this._handles.find(e=>a.target&&(a.target===e||e.contains(a.target)))}}function jA(n,a){return`translate3d(${Math.round(n)}px, ${Math.round(a)}px, 0)`}function kD(n,a,e){return Math.max(a,Math.min(e,n))}function dg(n){return"t"===n.type[0]}function OD(n,a){const e=n.rootNodes;if(1===e.length&&e[0].nodeType===a.ELEMENT_NODE)return e[0];const t=a.createElement("div");return e.forEach(r=>t.appendChild(r)),t}function ID(n,a){n.style.width=`${a.width}px`,n.style.height=`${a.height}px`,n.style.transform=jA(a.left,a.top)}function BD(n,a,e){const t=ug(a,n.length-1),r=ug(e,n.length-1);if(t===r)return;const l=n[t],c=r0)return null;const s="horizontal"===this.orientation,o=l.findIndex(he=>he.drag===a),d=l[c],h=d.clientRect,f=o>c?1:-1,b=this._getItemOffsetPx(l[o].clientRect,h,f),B=this._getSiblingOffsetPx(o,l,f),X=l.slice();return BD(l,o,c),l.forEach((he,Pe)=>{if(X[Pe]===he)return;const bt=he.drag===a,kt=bt?b:B,qt=bt?a.getPlaceholderElement():he.drag.getRootElement();he.offset+=kt,s?(qt.style.transform=FA(`translate3d(${Math.round(he.offset)}px, 0, 0)`,he.initialTransform),cg(he.clientRect,0,kt)):(qt.style.transform=FA(`translate3d(0, ${Math.round(he.offset)}px, 0)`,he.initialTransform),cg(he.clientRect,kt,0))}),this._previousSwap.overlaps=AT(h,e,t),this._previousSwap.drag=d.drag,this._previousSwap.delta=s?r.x:r.y,{previousIndex:o,currentIndex:c}}enter(a,e,t,r){const l=null==r||r<0?this._getItemIndexFromPointerPosition(a,e,t):r,c=this._activeDraggables,s=c.indexOf(a),o=a.getPlaceholderElement();let d=c[l];if(d===a&&(d=c[l+1]),!d&&(null==l||-1===l||l-1&&c.splice(s,1),d&&!this._dragDropRegistry.isDragging(d)){const u=d.getRootElement();u.parentElement.insertBefore(o,u),c.splice(l,0,a)}else un(this._element).appendChild(o),c.push(a);o.style.transform="",this._cacheItemPositions()}withItems(a){this._activeDraggables=a.slice(),this._cacheItemPositions()}withSortPredicate(a){this._sortPredicate=a}reset(){this._activeDraggables.forEach(a=>{const e=a.getRootElement();if(e){var t;const r=null===(t=this._itemPositions.find(l=>l.drag===a))||void 0===t?void 0:t.initialTransform;e.style.transform=r||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(a){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(t=>t.drag===a)}updateOnScroll(a,e){this._itemPositions.forEach(({clientRect:t})=>{cg(t,a,e)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()})}_cacheItemPositions(){const a="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(e=>{const t=e.getVisibleElement();return{drag:e,offset:0,initialTransform:t.style.transform||"",clientRect:bT(t)}}).sort((e,t)=>a?e.clientRect.left-t.clientRect.left:e.clientRect.top-t.clientRect.top)}_getItemOffsetPx(a,e,t){const r="horizontal"===this.orientation;let l=r?e.left-a.left:e.top-a.top;return-1===t&&(l+=r?e.width-a.width:e.height-a.height),l}_getSiblingOffsetPx(a,e,t){const r="horizontal"===this.orientation,l=e[a].clientRect,c=e[a+-1*t];let s=l[r?"width":"height"]*t;if(c){const o=r?"left":"top",d=r?"right":"bottom";-1===t?s-=c.clientRect[o]-l[d]:s+=l[o]-c.clientRect[d]}return s}_shouldEnterAsFirstChild(a,e){if(!this._activeDraggables.length)return!1;const t=this._itemPositions,r="horizontal"===this.orientation;if(t[0].drag!==this._activeDraggables[0]){const c=t[t.length-1].clientRect;return r?a>=c.right:e>=c.bottom}{const c=t[0].clientRect;return r?a<=c.left:e<=c.top}}_getItemIndexFromPointerPosition(a,e,t,r){const l="horizontal"===this.orientation,c=this._itemPositions.findIndex(({drag:s,clientRect:o})=>{if(s===a)return!1;if(r){const d=l?r.x:r.y;if(s===this._previousSwap.drag&&this._previousSwap.overlaps&&d===this._previousSwap.delta)return!1}return l?e>=Math.floor(o.left)&&e=Math.floor(o.top)&&t!0,this.sortPredicate=()=>!0,this.beforeStarted=new Ee.x,this.entered=new Ee.x,this.exited=new Ee.x,this.dropped=new Ee.x,this.sorted=new Ee.x,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=li.w0.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new Ee.x,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function BI(n=0,a=hu.z){return n<0&&(n=0),(0,x0.H)(n,n,a)}(0,w0).pipe(nt(this._stopScrollTimers)).subscribe(()=>{const c=this._scrollNode,s=this.autoScrollStep;1===this._verticalScrollDirection?c.scrollBy(0,-s):2===this._verticalScrollDirection&&c.scrollBy(0,s),1===this._horizontalScrollDirection?c.scrollBy(-s,0):2===this._horizontalScrollDirection&&c.scrollBy(s,0)})},this.element=un(a),this._document=t,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new ED(t),this._sortStrategy=new jI(this.element,e),this._sortStrategy.withSortPredicate((c,s)=>this.sortPredicate(c,s,this))}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(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(a,e,t,r){this._draggingStarted(),null==r&&this.sortingDisabled&&(r=this._draggables.indexOf(a)),this._sortStrategy.enter(a,e,t,r),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:a,container:this,currentIndex:this.getItemIndex(a)})}exit(a){this._reset(),this.exited.next({item:a,container:this})}drop(a,e,t,r,l,c,s,o={}){this._reset(),this.dropped.next({item:a,currentIndex:e,previousIndex:t,container:this,previousContainer:r,isPointerOverContainer:l,distance:c,dropPoint:s,event:o})}withItems(a){const e=this._draggables;return this._draggables=a,a.forEach(t=>t._withDropContainer(this)),this.isDragging()&&(e.filter(r=>r.isDragging()).every(r=>-1===a.indexOf(r))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(a){return this._sortStrategy.direction=a,this}connectedTo(a){return this._siblings=a.slice(),this}withOrientation(a){return this._sortStrategy.orientation=a,this}withScrollableParents(a){const e=un(this.element);return this._scrollableElements=-1===a.indexOf(e)?[e,...a]:a.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(a){return this._isDragging?this._sortStrategy.getItemIndex(a):this._draggables.indexOf(a)}isReceiving(){return this._activeSiblings.size>0}_sortItem(a,e,t,r){if(this.sortingDisabled||!this._clientRect||!SD(this._clientRect,.05,e,t))return;const l=this._sortStrategy.sort(a,e,t,r);l&&this.sorted.next({previousIndex:l.previousIndex,currentIndex:l.currentIndex,container:this,item:a})}_startScrollingIfNecessary(a,e){if(this.autoScrollDisabled)return;let t,r=0,l=0;if(this._parentPositions.positions.forEach((c,s)=>{s===this._document||!c.clientRect||t||SD(c.clientRect,.05,a,e)&&([r,l]=function YI(n,a,e,t){const r=FD(a,t),l=zD(a,e);let c=0,s=0;if(r){const o=n.scrollTop;1===r?o>0&&(c=1):n.scrollHeight-o>n.clientHeight&&(c=2)}if(l){const o=n.scrollLeft;1===l?o>0&&(s=1):n.scrollWidth-o>n.clientWidth&&(s=2)}return[c,s]}(s,c.clientRect,a,e),(r||l)&&(t=s))}),!r&&!l){const{width:c,height:s}=this._viewportRuler.getViewportSize(),o={width:c,height:s,top:0,right:c,bottom:s,left:0};r=FD(o,e),l=zD(o,a),t=window}t&&(r!==this._verticalScrollDirection||l!==this._horizontalScrollDirection||t!==this._scrollNode)&&(this._verticalScrollDirection=r,this._horizontalScrollDirection=l,this._scrollNode=t,(r||l)&&t?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const a=un(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=a.msScrollSnapType||a.scrollSnapType||"",a.scrollSnapType=a.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const a=un(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(a).clientRect}_reset(){this._isDragging=!1;const a=un(this.element).style;a.scrollSnapType=a.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(e=>e._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(a,e){return null!=this._clientRect&&AT(this._clientRect,a,e)}_getSiblingContainerFromPosition(a,e,t){return this._siblings.find(r=>r._canReceive(a,e,t))}_canReceive(a,e,t){if(!this._clientRect||!AT(this._clientRect,e,t)||!this.enterPredicate(a,this))return!1;const r=this._getShadowRoot().elementFromPoint(e,t);if(!r)return!1;const l=un(this.element);return r===l||l.contains(r)}_startReceiving(a,e){const t=this._activeSiblings;!t.has(a)&&e.every(r=>this.enterPredicate(r,this)||this._draggables.indexOf(r)>-1)&&(t.add(a),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(a){this._activeSiblings.delete(a),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(a=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(a);e&&this._sortStrategy.updateOnScroll(e.top,e.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const a=Nh(un(this.element));this._cachedShadowRoot=a||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const a=this._sortStrategy.getActiveItemsSnapshot().filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,a))}}function FD(n,a){const{top:e,bottom:t,height:r}=n,l=.05*r;return a>=e-l&&a<=e+l?1:a>=t-l&&a<=t+l?2:0}function zD(n,a){const{left:e,right:t,width:r}=n,l=.05*r;return a>=e-l&&a<=e+l?1:a>=t-l&&a<=t+l?2:0}const qA=es({passive:!1,capture:!0});let WI=(()=>{class n{constructor(e,t){this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=r=>r.isDragging(),this.pointerMove=new Ee.x,this.pointerUp=new Ee.x,this.scroll=new Ee.x,this._preventDefaultWhileDragging=r=>{this._activeDragInstances.length>0&&r.preventDefault()},this._persistentTouchmoveListener=r=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&r.preventDefault(),this.pointerMove.next(r))},this._document=t}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,qA)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,qA)}startDragging(e,t){if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){const r=t.type.startsWith("touch");this._globalListeners.set(r?"touchend":"mouseup",{handler:l=>this.pointerUp.next(l),options:!0}).set("scroll",{handler:l=>this.scroll.next(l),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:qA}),r||this._globalListeners.set("mousemove",{handler:l=>this.pointerMove.next(l),options:qA}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((l,c)=>{this._document.addEventListener(c,l.handler,l.options)})})}}stopDragging(e){const t=this._activeDragInstances.indexOf(e);t>-1&&(this._activeDragInstances.splice(t,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(e){return this._activeDragInstances.indexOf(e)>-1}scrolled(e){const t=[this.scroll];return e&&e!==this._document&&t.push(new _i.y(r=>this._ngZone.runOutsideAngular(()=>{const c=s=>{this._activeDragInstances.length&&r.next(s)};return e.addEventListener("scroll",c,!0),()=>{e.removeEventListener("scroll",c,!0)}}))),(0,Li.T)(...t)}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((e,t)=>{this._document.removeEventListener(t,e.handler,e.options)}),this._globalListeners.clear()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.R0b),i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const UI={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let MT=(()=>{class n{constructor(e,t,r,l){this._document=e,this._ngZone=t,this._viewportRuler=r,this._dragDropRegistry=l}createDrag(e,t=UI){return new zI(e,t,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new qI(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0),i.LFG(i.R0b),i.LFG(Ys),i.LFG(WI))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const jD=new i.OlP("CDK_DRAG_PARENT"),qD=new i.OlP("CdkDropListGroup"),YD=new i.OlP("CDK_DRAG_CONFIG");let GI=0;const WD=new i.OlP("CdkDropList");let $I=(()=>{class n{constructor(e,t,r,l,c,s,o){this.element=e,this._changeDetectorRef=r,this._scrollDispatcher=l,this._dir=c,this._group=s,this._destroyed=new Ee.x,this.connectedTo=[],this.id="cdk-drop-list-"+GI++,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.dropped=new i.vpe,this.entered=new i.vpe,this.exited=new i.vpe,this.sorted=new i.vpe,this._unsortedItems=new Set,this._dropListRef=t.createDropList(e),this._dropListRef.data=this,o&&this._assignDefaults(o),this._dropListRef.enterPredicate=(d,u)=>this.enterPredicate(d.data,u.data),this._dropListRef.sortPredicate=(d,u,h)=>this.sortPredicate(d,u.data,h.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),n._dropLists.push(this),s&&s._items.add(this)}get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(e){this._dropListRef.disabled=this._disabled=Fe(e)}addItem(e){this._unsortedItems.add(e),this._dropListRef.isDragging()&&this._syncItemsWithRef()}removeItem(e){this._unsortedItems.delete(e),this._dropListRef.isDragging()&&this._syncItemsWithRef()}getSortedItems(){return Array.from(this._unsortedItems).sort((e,t)=>e._dragRef.getVisibleElement().compareDocumentPosition(t._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){const e=n._dropLists.indexOf(this);e>-1&&n._dropLists.splice(e,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}_setupInputSyncSubscription(e){this._dir&&this._dir.change.pipe(Hi(this._dir.value),nt(this._destroyed)).subscribe(t=>e.withDirection(t)),e.beforeStarted.subscribe(()=>{const t=Kd(this.connectedTo).map(r=>"string"==typeof r?n._dropLists.find(c=>c.id===r):r);if(this._group&&this._group._items.forEach(r=>{-1===t.indexOf(r)&&t.push(r)}),!this._scrollableParentsResolved){const r=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(l=>l.getElementRef().nativeElement);this._dropListRef.withScrollableParents(r),this._scrollableParentsResolved=!0}e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.sortingDisabled=Fe(this.sortingDisabled),e.autoScrollDisabled=Fe(this.autoScrollDisabled),e.autoScrollStep=Vi(this.autoScrollStep,2),e.connectedTo(t.filter(r=>r&&r!==this).map(r=>r._dropListRef)).withOrientation(this.orientation)})}_handleEvents(e){e.beforeStarted.subscribe(()=>{this._syncItemsWithRef(),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(t=>{this.entered.emit({container:this,item:t.item.data,currentIndex:t.currentIndex})}),e.exited.subscribe(t=>{this.exited.emit({container:this,item:t.item.data}),this._changeDetectorRef.markForCheck()}),e.sorted.subscribe(t=>{this.sorted.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,container:this,item:t.item.data})}),e.dropped.subscribe(t=>{this.dropped.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,previousContainer:t.previousContainer.data,container:t.container.data,item:t.item.data,isPointerOverContainer:t.isPointerOverContainer,distance:t.distance,dropPoint:t.dropPoint,event:t.event}),this._changeDetectorRef.markForCheck()})}_assignDefaults(e){const{lockAxis:t,draggingDisabled:r,sortingDisabled:l,listAutoScrollDisabled:c,listOrientation:s}=e;this.disabled=r??!1,this.sortingDisabled=l??!1,this.autoScrollDisabled=c??!1,this.orientation=s||"vertical",t&&(this.lockAxis=t)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(e=>e._dragRef))}}return n._dropLists=[],n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(MT),i.Y36(i.sBO),i.Y36(Po),i.Y36(Sn,8),i.Y36(qD,12),i.Y36(YD,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(e,t){2&e&&(i.uIk("id",t.id),i.ekj("cdk-drop-list-disabled",t.disabled)("cdk-drop-list-dragging",t._dropListRef.isDragging())("cdk-drop-list-receiving",t._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],data:["cdkDropListData","data"],orientation:["cdkDropListOrientation","orientation"],id:"id",lockAxis:["cdkDropListLockAxis","lockAxis"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],sortPredicate:["cdkDropListSortPredicate","sortPredicate"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],autoScrollStep:["cdkDropListAutoScrollStep","autoScrollStep"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[i._Bn([{provide:qD,useValue:void 0},{provide:WD,useExisting:n}])]}),n})();const UD=new i.OlP("CdkDragHandle"),ZI=new i.OlP("CdkDragPlaceholder"),JI=new i.OlP("CdkDragPreview");let XI=(()=>{class n{constructor(e,t,r,l,c,s,o,d,u,h,f){this.element=e,this.dropContainer=t,this._ngZone=l,this._viewContainerRef=c,this._dir=o,this._changeDetectorRef=u,this._selfHandle=h,this._parentDrag=f,this._destroyed=new Ee.x,this.started=new i.vpe,this.released=new i.vpe,this.ended=new i.vpe,this.entered=new i.vpe,this.exited=new i.vpe,this.dropped=new i.vpe,this.moved=new _i.y(b=>{const B=this._dragRef.moved.pipe((0,At.U)(X=>({source:this,pointerPosition:X.pointerPosition,event:X.event,delta:X.delta,distance:X.distance}))).subscribe(b);return()=>{B.unsubscribe()}}),this._dragRef=d.createDrag(e,{dragStartThreshold:s&&null!=s.dragStartThreshold?s.dragStartThreshold:5,pointerDirectionChangeThreshold:s&&null!=s.pointerDirectionChangeThreshold?s.pointerDirectionChangeThreshold:5,zIndex:s?.zIndex}),this._dragRef.data=this,n._dragInstances.push(this),s&&this._assignDefaults(s),t&&(this._dragRef._withDropContainer(t._dropListRef),t.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(e){this._disabled=Fe(e),this._dragRef.disabled=this._disabled}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}setFreeDragPosition(e){this._dragRef.setFreeDragPosition(e)}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,ct.q)(1),nt(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._setupHandlesListener(),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})})}ngOnChanges(e){const t=e.rootElementSelector,r=e.freeDragPosition;t&&!t.firstChange&&this._updateRootElement(),r&&!r.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const e=n._dragInstances.indexOf(this);e>-1&&n._dragInstances.splice(e,1),this._ngZone.runOutsideAngular(()=>{this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_updateRootElement(){const e=this.element.nativeElement;let t=e;var r;this.rootElementSelector&&(t=void 0!==e.closest?e.closest(this.rootElementSelector):null===(r=e.parentElement)||void 0===r?void 0:r.closest(this.rootElementSelector)),this._dragRef.withRootElement(t||e)}_getBoundaryElement(){const e=this.boundaryElement;return e?"string"==typeof e?this.element.nativeElement.closest(e):un(e):null}_syncInputs(e){e.beforeStarted.subscribe(()=>{if(!e.isDragging()){const t=this._dir,r=this.dragStartDelay,l=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,c=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.dragStartDelay="object"==typeof r&&r?r:Vi(r),e.constrainPosition=this.constrainPosition,e.previewClass=this.previewClass,e.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(l).withPreviewTemplate(c).withPreviewContainer(this.previewContainer||"global"),t&&e.withDirection(t.value)}}),e.beforeStarted.pipe((0,ct.q)(1)).subscribe(()=>{if(this._parentDrag)return void e.withParent(this._parentDrag._dragRef);let t=this.element.nativeElement.parentElement;for(;t;){if(t.classList.contains("cdk-drag")){var r;e.withParent((null===(r=n._dragInstances.find(l=>l.element.nativeElement===t))||void 0===r?void 0:r._dragRef)||null);break}t=t.parentElement}})}_handleEvents(e){e.started.subscribe(t=>{this.started.emit({source:this,event:t.event}),this._changeDetectorRef.markForCheck()}),e.released.subscribe(t=>{this.released.emit({source:this,event:t.event})}),e.ended.subscribe(t=>{this.ended.emit({source:this,distance:t.distance,dropPoint:t.dropPoint,event:t.event}),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(t=>{this.entered.emit({container:t.container.data,item:this,currentIndex:t.currentIndex})}),e.exited.subscribe(t=>{this.exited.emit({container:t.container.data,item:this})}),e.dropped.subscribe(t=>{this.dropped.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,previousContainer:t.previousContainer.data,container:t.container.data,isPointerOverContainer:t.isPointerOverContainer,item:this,distance:t.distance,dropPoint:t.dropPoint,event:t.event})})}_assignDefaults(e){const{lockAxis:t,dragStartDelay:r,constrainPosition:l,previewClass:c,boundaryElement:s,draggingDisabled:o,rootElementSelector:d,previewContainer:u}=e;this.disabled=o??!1,this.dragStartDelay=r||0,t&&(this.lockAxis=t),l&&(this.constrainPosition=l),c&&(this.previewClass=c),s&&(this.boundaryElement=s),d&&(this.rootElementSelector=d),u&&(this.previewContainer=u)}_setupHandlesListener(){this._handles.changes.pipe(Hi(this._handles),(0,ni.b)(e=>{const t=e.filter(r=>r._parentDrag===this).map(r=>r.element);this._selfHandle&&this.rootElementSelector&&t.push(this.element),this._dragRef.withHandles(t)}),(0,mi.w)(e=>(0,Li.T)(...e.map(t=>t._stateChanges.pipe(Hi(t))))),nt(this._destroyed)).subscribe(e=>{const t=this._dragRef,r=e.element.nativeElement;e.disabled?t.disableHandle(r):t.enableHandle(r)})}}return n._dragInstances=[],n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(WD,12),i.Y36(w.K0),i.Y36(i.R0b),i.Y36(i.s_b),i.Y36(YD,8),i.Y36(Sn,8),i.Y36(MT),i.Y36(i.sBO),i.Y36(UD,10),i.Y36(jD,12))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkDrag",""]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,JI,5),i.Suo(r,ZI,5),i.Suo(r,UD,5)),2&e){let l;i.iGM(l=i.CRH())&&(t._previewTemplate=l.first),i.iGM(l=i.CRH())&&(t._placeholderTemplate=l.first),i.iGM(l=i.CRH())&&(t._handles=l)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(e,t){2&e&&i.ekj("cdk-drag-disabled",t.disabled)("cdk-drag-dragging",t._dragRef.isDragging())},inputs:{data:["cdkDragData","data"],lockAxis:["cdkDragLockAxis","lockAxis"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],boundaryElement:["cdkDragBoundary","boundaryElement"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"],disabled:["cdkDragDisabled","disabled"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],previewContainer:["cdkDragPreviewContainer","previewContainer"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[i._Bn([{provide:jD,useExisting:n}]),i.TTD]}),n})(),KI=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[MT],imports:[rs]}),n})();const eB=["*"],GD=new i.OlP("MatChipRemove"),$D=new i.OlP("MatChipAvatar"),ZD=new i.OlP("MatChipTrailingIcon");class tB{constructor(a){this._elementRef=a}}const iB=kl(hr(xr(tB),"primary"),-1);let YA=(()=>{class n extends iB{constructor(e,t,r,l,c,s,o,d){super(e),this._ngZone=t,this._changeDetectorRef=c,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListDisabled=!1,this.role="option",this._selected=!1,this._selectable=!0,this._disabled=!1,this._removable=!0,this._onFocus=new Ee.x,this._onBlur=new Ee.x,this.selectionChange=new i.vpe,this.destroyed=new i.vpe,this.removed=new i.vpe,this._addHostClassName(),this._chipRippleTarget=s.createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new f0(this,t,this._chipRippleTarget,r),this._chipRipple.setupTriggerEvents(e),this.rippleConfig=l||{},this._animationsDisabled="NoopAnimations"===o,this.tabIndex=null!=d&&parseInt(d)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(e){const t=Fe(e);t!==this._selected&&(this._selected=t,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(e){this._value=e}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(e){this._selectable=Fe(e)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(e){this._disabled=Fe(e)}get removable(){return this._removable}set removable(e){this._removable=Fe(e)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}_addHostClassName(){const e="mat-basic-chip",t=this._elementRef.nativeElement;t.hasAttribute(e)||t.tagName.toLowerCase()===e?t.classList.add(e):t.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(e=!1){return this._selected=!this.selected,this._dispatchSelectionChange(e),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(e){this.disabled&&e.preventDefault()}_handleKeydown(e){if(!this.disabled)switch(e.keyCode){case 46:case 8:this.remove(),e.preventDefault();break;case 32:this.selectable&&this.toggleSelected(!0),e.preventDefault()}}_blur(){this._ngZone.onStable.pipe((0,ct.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(e=!1){this.selectionChange.emit({source:this,isUserInput:e,selected:this._selected})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(Yi),i.Y36(Z1,8),i.Y36(i.sBO),i.Y36(w.K0),i.Y36(i.QbO,8),i.$8M("tabindex"))},n.\u0275dir=i.lG2({type:n,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,$D,5),i.Suo(r,ZD,5),i.Suo(r,GD,5)),2&e){let l;i.iGM(l=i.CRH())&&(t.avatar=l.first),i.iGM(l=i.CRH())&&(t.trailingIcon=l.first),i.iGM(l=i.CRH())&&(t.removeIcon=l.first)}},hostAttrs:[1,"mat-chip","mat-focus-indicator"],hostVars:15,hostBindings:function(e,t){1&e&&i.NdJ("click",function(l){return t._handleClick(l)})("keydown",function(l){return t._handleKeydown(l)})("focus",function(){return t.focus()})("blur",function(){return t._blur()}),2&e&&(i.uIk("tabindex",t.disabled?null:t.tabIndex)("role",t.role)("disabled",t.disabled||null)("aria-disabled",t.disabled.toString())("aria-selected",t.ariaSelected),i.ekj("mat-chip-selected",t.selected)("mat-chip-with-avatar",t.avatar)("mat-chip-with-trailing-icon",t.trailingIcon||t.removeIcon)("mat-chip-disabled",t.disabled)("_mat-animation-noopable",t._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",role:"role",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[i.qOj]}),n})();const JD=new i.OlP("mat-chips-default-options"),sB=Zh(class{constructor(n,a,e,t){this._defaultErrorStateMatcher=n,this._parentForm=a,this._parentFormGroup=e,this.ngControl=t,this.stateChanges=new Ee.x}});let oB=0;class lB{constructor(a,e){this.source=a,this.value=e}}let QD=(()=>{class n extends sB{constructor(e,t,r,l,c,s,o){super(s,l,c,o),this._elementRef=e,this._changeDetectorRef=t,this._dir=r,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new Ee.x,this._uid="mat-chip-list-"+oB++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(d,u)=>d===u,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new i.vpe,this.valueChange=new i.vpe,this.ngControl&&(this.ngControl.valueAccessor=this)}get selected(){var e,t;return this.multiple?(null===(e=this._selectionModel)||void 0===e?void 0:e.selected)||[]:null===(t=this._selectionModel)||void 0===t?void 0:t.selected[0]}get role(){return this._explicitRole?this._explicitRole:this.empty?null:"listbox"}set role(e){this._explicitRole=e}get multiple(){return this._multiple}set multiple(e){this._multiple=Fe(e),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this.writeValue(e),this._value=e}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){var e,t,r,l;return null!==(e=null!==(t=this._required)&&void 0!==t?t:null===(r=this.ngControl)||void 0===r||null===(l=r.control)||void 0===l?void 0:l.hasValidator(yn.required))&&void 0!==e&&e}set required(e){this._required=Fe(e),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(e){this._placeholder=e,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(e){this._disabled=Fe(e),this._syncChipsState()}get selectable(){return this._selectable}set selectable(e){this._selectable=Fe(e),this.chips&&this.chips.forEach(t=>t.chipListSelectable=this._selectable)}set tabIndex(e){this._userTabIndex=e,this._tabIndex=e}get chipSelectionChanges(){return(0,Li.T)(...this.chips.map(e=>e.selectionChange))}get chipFocusChanges(){return(0,Li.T)(...this.chips.map(e=>e._onFocus))}get chipBlurChanges(){return(0,Li.T)(...this.chips.map(e=>e._onBlur))}get chipRemoveChanges(){return(0,Li.T)(...this.chips.map(e=>e.destroyed))}ngAfterContentInit(){this._keyManager=new Yh(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe(nt(this._destroyed)).subscribe(e=>this._keyManager.withHorizontalOrientation(e)),this._keyManager.tabOut.pipe(nt(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe(Hi(null),nt(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 Vn(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(e){this._chipInput=e,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",e.id)}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}writeValue(e){this.chips&&this._setSelectionByValue(e,!1)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this.stateChanges.next()}onContainerClick(e){this._originatesFromChip(e)||this.focus()}focus(e){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(e),this.stateChanges.next()))}_focusInput(e){this._chipInput&&this._chipInput.focus(e)}_keydown(e){const t=e.target;t&&t.classList.contains("mat-chip")&&(this._keyManager.onKeydown(e),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const e=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(e)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(e){return e>=0&&er.deselect()),Array.isArray(e))e.forEach(r=>this._selectValue(r,t)),this._sortValues();else{const r=this._selectValue(e,t);r&&t&&this._keyManager.setActiveItem(r)}}_selectValue(e,t=!0){const r=this.chips.find(l=>null!=l.value&&this._compareWith(l.value,e));return r&&(t?r.selectViaInteraction():r.select(),this._selectionModel.select(r)),r}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(e){this._selectionModel.clear(),this.chips.forEach(t=>{t!==e&&t.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(e=>{e.selected&&this._selectionModel.select(e)}),this.stateChanges.next())}_propagateChanges(e){let t=null;t=Array.isArray(this.selected)?this.selected.map(r=>r.value):this.selected?this.selected.value:e,this._value=t,this.change.emit(new lB(this,t)),this.valueChange.emit(t),this._onChange(t),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(e=>{e.source.selected?this._selectionModel.select(e.source):this._selectionModel.deselect(e.source),this.multiple||this.chips.forEach(t=>{!this._selectionModel.isSelected(t)&&t.selected&&t.deselect()}),e.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(e=>{let t=this.chips.toArray().indexOf(e.chip);this._isValidIndex(t)&&this._keyManager.updateActiveItem(t),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(e=>{const t=e.chip,r=this.chips.toArray().indexOf(e.chip);this._isValidIndex(r)&&t._hasFocus&&(this._lastDestroyedChipIndex=r)})}_originatesFromChip(e){let t=e.target;for(;t&&t!==this._elementRef.nativeElement;){if(t.classList.contains("mat-chip"))return!0;t=t.parentElement}return!1}_hasFocusedChip(){return this.chips&&this.chips.some(e=>e._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(e=>{e._chipListDisabled=this._disabled,e._chipListMultiple=this.multiple})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(Sn,8),i.Y36($l,8),i.Y36(jo,8),i.Y36(qs),i.Y36(os,10))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-chip-list"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,YA,5),2&e){let l;i.iGM(l=i.CRH())&&(t.chips=l)}},hostAttrs:[1,"mat-chip-list"],hostVars:14,hostBindings:function(e,t){1&e&&i.NdJ("focus",function(){return t.focus()})("blur",function(){return t._blur()})("keydown",function(l){return t._keydown(l)}),2&e&&(i.Ikx("id",t._uid),i.uIk("tabindex",t.disabled?null:t._tabIndex)("aria-required",t.role?t.required:null)("aria-disabled",t.disabled.toString())("aria-invalid",t.errorState)("aria-multiselectable",t.multiple)("role",t.role)("aria-orientation",t.ariaOrientation),i.ekj("mat-chip-list-disabled",t.disabled)("mat-chip-list-invalid",t.errorState)("mat-chip-list-required",t.required))},inputs:{role:"role",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],errorStateMatcher:"errorStateMatcher",multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",ariaOrientation:["aria-orientation","ariaOrientation"],selectable:"selectable",tabIndex:"tabIndex"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[i._Bn([{provide:vu,useExisting:n}]),i.qOj],ngContentSelectors:eB,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0),i.Hsn(1),i.qZA())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-chip::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.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-standard-chip._mat-animation-noopable{transition:none !important;animation:none !important}.mat-standard-chip .mat-chip-remove{border:none;-webkit-appearance:none;-moz-appearance:none;padding:0;background:none}.mat-standard-chip .mat-chip-remove.mat-icon,.mat-standard-chip .mat-chip-remove .mat-icon{width:18px;height:18px;font-size: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.mat-chip-selected{outline-width:3px}.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;transform:translateZ(0)}.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}'],encapsulation:2,changeDetection:0}),n})(),cB=0,XD=(()=>{class n{constructor(e,t){this._elementRef=e,this._defaultOptions=t,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new i.vpe,this.placeholder="",this.id="mat-chip-list-input-"+cB++,this._disabled=!1,this.inputElement=this._elementRef.nativeElement}set chipList(e){e&&(this._chipList=e,this._chipList.registerInput(this))}get addOnBlur(){return this._addOnBlur}set addOnBlur(e){this._addOnBlur=Fe(e)}get disabled(){return this._disabled||this._chipList&&this._chipList.disabled}set disabled(e){this._disabled=Fe(e)}get empty(){return!this.inputElement.value}ngOnChanges(){this._chipList.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}ngAfterContentInit(){this._focusLastChipOnBackspace=this.empty}_keydown(e){if(e){if(9===e.keyCode&&!Bn(e,"shiftKey")&&this._chipList._allowFocusEscape(),8===e.keyCode&&this._focusLastChipOnBackspace)return this._chipList._keyManager.setLastItemActive(),void e.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(e)}_keyup(e){!this._focusLastChipOnBackspace&&8===e.keyCode&&this.empty&&(this._focusLastChipOnBackspace=!0,e.preventDefault())}_blur(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipList.focused||this._chipList._blur(),this._chipList.stateChanges.next()}_focus(){this.focused=!0,this._focusLastChipOnBackspace=this.empty,this._chipList.stateChanges.next()}_emitChipEnd(e){!this.inputElement.value&&!!e&&this._chipList._keydown(e),(!e||this._isSeparatorKey(e))&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),e?.preventDefault())}_onInput(){this._chipList.stateChanges.next()}focus(e){this.inputElement.focus(e)}clear(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}_isSeparatorKey(e){return!Bn(e)&&new Set(this.separatorKeyCodes).has(e.keyCode)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(JD))},n.\u0275dir=i.lG2({type:n,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(e,t){1&e&&i.NdJ("keydown",function(l){return t._keydown(l)})("keyup",function(l){return t._keyup(l)})("blur",function(){return t._blur()})("focus",function(){return t._focus()})("input",function(){return t._onInput()}),2&e&&(i.Ikx("id",t.id),i.uIk("disabled",t.disabled||null)("placeholder",t.placeholder||null)("aria-invalid",t._chipList&&t._chipList.ngControl?t._chipList.ngControl.invalid:null)("aria-required",t._chipList&&t._chipList.required||null))},inputs:{chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[i.TTD]}),n})(),wT=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[qs,{provide:JD,useValue:{separatorKeyCodes:[13]}}],imports:[_t]}),n})();function dB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-icon",9),i.NdJ("mousedown",function(){i.CHM(e);const r=i.oxw(2);return i.KtG(r.dragDisabled=!1)}),i._uU(1,"drag_indicator"),i.qZA()}}function uB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-icon",10),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit,l=i.oxw();return i.KtG(l.edit(r))}),i._uU(1,"edit"),i.qZA()}}function hB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-icon",11),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit,l=i.oxw();return i.KtG(l.remove(r))}),i._uU(1,"cancel"),i.qZA()}}function pB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-chip",4),i.NdJ("removed",function(){const l=i.CHM(e).$implicit,c=i.oxw();return c.remove(l),i.KtG(c._sendEventToParent())}),i.YNc(1,dB,2,0,"mat-icon",5),i.TgZ(2,"div",6),i.NdJ("click",function(){const l=i.CHM(e).$implicit,c=i.oxw();return i.KtG(c.readonly&&void 0!==c.attribute.displayName&&c.showValue(l,c.attribute.displayName))}),i._uU(3),i.qZA(),i.YNc(4,uB,2,0,"mat-icon",7),i.YNc(5,hB,2,0,"mat-icon",8),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.Q6J("selectable",t.selectable)("cdkDragData",e)("removable",t.removable),i.xp6(1),i.Q6J("ngIf",t.removable),i.xp6(1),i.ekj("cursor-pointer",t.readonly&&void 0!==t.attribute.displayName),i.xp6(1),i.hij(" ",e," "),i.xp6(1),i.Q6J("ngIf",t.removable),i.xp6(1),i.Q6J("ngIf",t.removable)}}function fB(n,a){1&n&&(i.TgZ(0,"mat-icon"),i._uU(1,"more_horiz"),i.qZA())}function mB(n,a){1&n&&(i.TgZ(0,"mat-icon"),i._uU(1,"keyboard_arrow_up"),i.qZA())}function gB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",12)(1,"span",13)(2,"button",14),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onShowChange())}),i.YNc(3,fB,2,0,"mat-icon",15),i.YNc(4,mB,2,0,"mat-icon",15),i.qZA()()()}if(2&n){const e=i.oxw();i.xp6(1),i.Q6J("matTooltip",e.showMore?"Show less":"Show more")("matTooltipPosition","above"),i.xp6(2),i.Q6J("ngIf",!e.showMore),i.xp6(1),i.Q6J("ngIf",e.showMore)}}function _B(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",12)(1,"input",16),i.NdJ("matChipInputTokenEnd",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.add(r))})("change",function(){i.CHM(e);const r=i.oxw();return i.KtG(r._sendEventToParent())}),i.qZA()()}if(2&n){const e=i.oxw(),t=i.MAs(2);i.xp6(1),i.Q6J("matChipInputFor",t)("matChipInputSeparatorKeyCodes",e.separatorKeysCodes)("matChipInputAddOnBlur",e.addOnBlur)}}let bB=(()=>{class n{constructor(e,t){this.dialog=e,this.changeDetector=t,this.readonly=!1,this.sendEventToParent=new i.vpe,this.selectable=!1,this.removable=!0,this.addOnBlur=!0,this.dragDisabled=!0,this.separatorKeysCodes=[13,188],this.values=[],this.showMore=!1,this.defaultItemsShown=5}ngOnInit(){this.removable=!Dr(this.attribute)&&!this.readonly,null==this.attribute.value&&(this.attribute.value=[]),this.values=this.attribute.value,this.itemsShown=this.readonly?this.values.length:this.defaultItemsShown,this.showMore=this.readonly,this.readonly||(this.readonly=Dr(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}add(e){const t=e.input,r=e.value;(r||"").trim()&&(this.attribute.value.push(r.trim()),this.values=this.attribute.value,this.values.length>this.defaultItemsShown&&(this.showMore=!0,this.setItemsShown())),t&&(t.value=""),this.sendEventToParent.emit()}remove(e){const t=ri();t.width="400px",t.data={name:e},this.dialog.open(fk,t).afterClosed().subscribe(l=>{if(l){const c=this.attribute.value.indexOf(e);this.attribute.value.splice(c,1),this.values=this.attribute.value,this.sendEventToParent.emit(),this.changeDetector.detectChanges()}})}drop(e){this.dragDisabled=!0,BD(this.attribute.value,e.previousIndex,e.currentIndex),this.values=this.attribute.value}edit(e){const t=this.attribute.value.indexOf(e),r=ri();r.width="600px",r.data={attribute:this.attribute,index:t},this.dialog.open(pk,r).afterClosed().subscribe(c=>{c&&(this.values=this.attribute.value,this.sendEventToParent.emit())})}showValue(e,t){const r=ri();r.width="350px",r.data={value:e,title:t},this.dialog.open(IA,r)}setItemsShown(){this.itemsShown=this.showMore?this.values.length:this.defaultItemsShown}onShowChange(){this.showMore=!this.showMore,this.setItemsShown()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Fi),i.Y36(i.sBO))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-attribute-value-list"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:6,vars:4,consts:[["cdkDropList","","cdkDropListOrientation","vertical",1,"mat-chip-list-stacked",3,"cdkDropListDisabled","cdkDropListDropped"],["chipList",""],["class","chip-word-break","cdkDrag","",3,"selectable","cdkDragData","removable","removed",4,"ngFor","ngForOf"],["class","w-100",4,"ngIf"],["cdkDrag","",1,"chip-word-break",3,"selectable","cdkDragData","removable","removed"],["class","handle-icon",3,"mousedown",4,"ngIf"],[1,"chip-text","overflow-ellipsis",3,"click"],["class","edit-delete-icon ml-2",3,"click",4,"ngIf"],["class","edit-delete-icon",3,"click",4,"ngIf"],[1,"handle-icon",3,"mousedown"],[1,"edit-delete-icon","ml-2",3,"click"],[1,"edit-delete-icon",3,"click"],[1,"w-100"],[3,"matTooltip","matTooltipPosition"],["mat-icon-button","",1,"ml-auto",3,"click"],[4,"ngIf"],["matInput","","placeholder","New value",1,"w-100","m-0",3,"matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur","matChipInputTokenEnd","change"]],template:function(e,t){1&e&&(i.TgZ(0,"div")(1,"mat-chip-list",0,1),i.NdJ("cdkDropListDropped",function(l){return t.drop(l),t._sendEventToParent()}),i.YNc(3,pB,6,9,"mat-chip",2),i.YNc(4,gB,5,4,"div",3),i.YNc(5,_B,2,3,"mat-form-field",3),i.qZA()()),2&e&&(i.xp6(1),i.Q6J("cdkDropListDisabled",t.dragDisabled),i.xp6(2),i.Q6J("ngForOf",t.values.slice(0,t.itemsShown)),i.xp6(1),i.Q6J("ngIf",t.values.length>t.defaultItemsShown),i.xp6(1),i.Q6J("ngIf",!t.readonly))},dependencies:[w.sg,w.O5,QD,YA,XD,$I,XI,Ji,Dt,gr,hn,zn],styles:[".chip-word-break[_ngcontent-%COMP%]{word-break:break-all}.chip-text[_ngcontent-%COMP%]{display:-webkit-box!important;-webkit-line-clamp:1!important;-webkit-box-orient:vertical;overflow:hidden}.mat-chip-list[_ngcontent-%COMP%] .mat-chip[_ngcontent-%COMP%]{width:auto;min-width:0}.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}.chip-word-break[_ngcontent-%COMP%] .cdk-drop-list-dragging[_ngcontent-%COMP%] .example-box[_ngcontent-%COMP%]:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}.example-box[_ngcontent-%COMP%]:last-child{border:none}.edit-delete-icon[_ngcontent-%COMP%]{font-size:18px;justify-content:center;align-items:center;display:flex}.handle-icon[_ngcontent-%COMP%]{font-size:22px;justify-content:center;align-items:center;display:flex;margin-right:4px}.mat-standard-chip[_ngcontent-%COMP%]{padding:7px 5px}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}"]}),n})(),AB=(()=>{class n{constructor(e){this.dialog=e,this.readonly=!1,this.sendEventToParent=new i.vpe}ngOnInit(){this.value=this.attribute.value,this.readonly||(this.readonly=Dr(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}showValue(e,t){const r=ri();r.width="350px",r.data={value:e,title:t},this.dialog.open(IA,r)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Fi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-attribute-value-string"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:3,vars:8,consts:[[1,"w-100",3,"appearance"],["matInput","","type","text",1,"overflow-ellipsis",3,"readonly","ngModel","click","ngModelChange","keydown"]],template:function(e,t){1&e&&(i.TgZ(0,"mat-form-field",0)(1,"input",1),i.NdJ("click",function(){return t.readonly&&void 0!==t.value&&t.showValue(t.value,t.attribute.displayName)})("ngModelChange",function(l){return t.attribute.value=l})("keydown",function(){return t._sendEventToParent()}),i.ALo(2,"multiWordDataCy"),i.qZA()()),2&e&&(i.s9C("appearance",t.readonly?"none":"standard"),i.xp6(1),i.ekj("cursor-pointer",t.readonly&&void 0!==t.value),i.Q2q("data-cy","",i.lcZ(2,6,t.attribute.displayName),"-value"),i.Q6J("readonly",t.readonly)("ngModel",t.attribute.value))},dependencies:[An,pn,ka,hn,zn,mT],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}"]}),n})(),yB=(()=>{class n{constructor(e){this.dialog=e,this.readonly=!1,this.sendEventToParent=new i.vpe}ngOnInit(){this.readonly||(this.readonly=Dr(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}showValue(e){const t=ri();t.width="350px",t.data={value:e.value,title:e.displayName},this.dialog.open(IA,t)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Fi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-attribute-value-integer"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:2,vars:5,consts:[[1,"w-100",3,"appearance"],["matInput","","type","number",1,"overflow-ellipsis",3,"readonly","ngModel","click","ngModelChange","keydown"]],template:function(e,t){1&e&&(i.TgZ(0,"mat-form-field",0)(1,"input",1),i.NdJ("click",function(){return t.readonly&&void 0!==t.attribute.value&&t.showValue(t.attribute)})("ngModelChange",function(l){return t.attribute.value=l})("keydown",function(){return t._sendEventToParent()}),i.qZA()()),2&e&&(i.s9C("appearance",t.readonly?"none":"standard"),i.xp6(1),i.ekj("cursor-pointer",t.readonly&&void 0!==t.attribute.value),i.Q6J("readonly",t.readonly)("ngModel",t.attribute.value))},dependencies:[An,$c,pn,ka,hn,zn],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),n})();const MB=["map"];function wB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-attribute-value-boolean",3),i.NdJ("sendEventToParent",function(){i.CHM(e);const r=i.oxw();return i.KtG(r._sendEventToParent2())}),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("attribute",e.attribute)("readonly",e.readonly)}}function CB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-attribute-value-list",3),i.NdJ("sendEventToParent",function(){i.CHM(e);const r=i.oxw();return i.KtG(r._sendEventToParent2())}),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("attribute",e.attribute)("readonly",e.readonly)}}function vB(n,a){if(1&n&&i._UZ(0,"perun-web-apps-attribute-value-map",4,5),2&n){const e=i.oxw();i.Q6J("attribute",e.attribute)("readonly",e.readonly)}}function TB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-attribute-value-string",3),i.NdJ("sendEventToParent",function(){i.CHM(e);const r=i.oxw();return i.KtG(r._sendEventToParent2())}),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("attribute",e.attribute)("readonly",e.readonly)}}function xB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-attribute-value-integer",3),i.NdJ("sendEventToParent",function(){i.CHM(e);const r=i.oxw();return i.KtG(r._sendEventToParent2())}),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("attribute",e.attribute)("readonly",e.readonly)}}let CT=(()=>{class n{constructor(){this.readonly=!1,this.sendEventToParent2=new i.vpe}updateMapAttribute(){"java.util.LinkedHashMap"===this.attribute.type&&this.mapComponent.updateAttribute()}_sendEventToParent2(){this.sendEventToParent2.emit()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-attribute-value"]],viewQuery:function(e,t){if(1&e&&i.Gf(MB,5),2&e){let r;i.iGM(r=i.CRH())&&(t.mapComponent=r.first)}},inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent2:"sendEventToParent2"},decls:7,vars:5,consts:[[3,"attribute","readonly","sendEventToParent",4,"ngIf"],[3,"click"],[3,"attribute","readonly",4,"ngIf"],[3,"attribute","readonly","sendEventToParent"],[3,"attribute","readonly"],["map",""]],template:function(e,t){1&e&&(i.TgZ(0,"div"),i.YNc(1,wB,1,2,"perun-web-apps-attribute-value-boolean",0),i.YNc(2,CB,1,2,"perun-web-apps-attribute-value-list",0),i.TgZ(3,"div",1),i.NdJ("click",function(){return t._sendEventToParent2()}),i.YNc(4,vB,2,2,"perun-web-apps-attribute-value-map",2),i.qZA(),i.YNc(5,TB,1,2,"perun-web-apps-attribute-value-string",0),i.YNc(6,xB,1,2,"perun-web-apps-attribute-value-integer",0),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngIf","java.lang.Boolean"===t.attribute.type),i.xp6(1),i.Q6J("ngIf","java.util.ArrayList"===t.attribute.type),i.xp6(2),i.Q6J("ngIf","java.util.LinkedHashMap"===t.attribute.type),i.xp6(1),i.Q6J("ngIf","java.lang.String"===t.attribute.type||"java.lang.LargeString"===t.attribute.type),i.xp6(1),i.Q6J("ngIf","java.lang.Integer"===t.attribute.type))},dependencies:[w.O5,II,bB,MI,AB,yB]}),n})();function SB(n,a){1&n&&i._UZ(0,"mat-spinner",3)}function EB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-option",16),i.NdJ("click",function(){const l=i.CHM(e).$implicit,c=i.oxw(4);return i.KtG(c.changeLanguage(l))}),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"uppercase"),i.qZA()}if(2&n){const e=a.$implicit;i.Q6J("value",e),i.xp6(1),i.hij(" ",i.lcZ(2,2,i.lcZ(3,4,"SHARED_LIB.LANGUAGES."+e))," ")}}function DB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",13)(1,"mat-select",14),i.NdJ("valueChange",function(r){i.CHM(e);const l=i.oxw(3);return i.KtG(l.currentLang=r)}),i.YNc(2,EB,4,6,"mat-option",15),i.qZA()()}if(2&n){const e=i.oxw(3);i.xp6(1),i.Q6J("value",e.currentLang),i.xp6(1),i.Q6J("ngForOf",e.languages)}}function HB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"a",17),i._uU(2),i.qZA(),i.TgZ(3,"button",18),i.NdJ("click",function(){i.CHM(e);const r=i.oxw(3);return i.KtG(r.changeEmail())}),i.TgZ(4,"mat-icon"),i._uU(5," edit "),i.qZA()()()}if(2&n){const e=i.oxw(3);i.xp6(1),i.MGl("href","mailto:",e.email,"",i.LSH),i.xp6(1),i.Oqu(e.email)}}function LB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-option",16),i.NdJ("click",function(){const l=i.CHM(e).$implicit,c=i.oxw(4);return i.KtG(c.changeTimeZone(l))}),i._uU(1),i.qZA()}if(2&n){const e=a.$implicit;i.Q6J("value",e),i.xp6(1),i.hij(" ",e," ")}}function PB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",13)(1,"mat-select",19),i.NdJ("valueChange",function(r){i.CHM(e);const l=i.oxw(3);return i.KtG(l.currentTimezone=r)}),i.YNc(2,LB,2,2,"mat-option",15),i.qZA()()}if(2&n){const e=i.oxw(3);i.xp6(1),i.Q6J("value",e.currentTimezone),i.xp6(1),i.Q6J("ngForOf",e.timeZones)}}function RB(n,a){1&n&&(i.TgZ(0,"p"),i._uU(1,"-"),i.qZA())}function kB(n,a){if(1&n&&i._UZ(0,"perun-web-apps-attribute-value",22),2&n){const e=i.oxw(2).$implicit;i.Q6J("attribute",e.attribute)("readonly",!0)}}function OB(n,a){if(1&n&&(i.TgZ(0,"div"),i.YNc(1,RB,2,0,"p",20),i.YNc(2,kB,1,2,"perun-web-apps-attribute-value",21),i.qZA()),2&n){const e=i.oxw().$implicit;i.xp6(1),i.Q6J("ngIf",!e.attribute.value),i.xp6(1),i.Q6J("ngIf",e.attribute.value)}}function IB(n,a){if(1&n&&(i.TgZ(0,"tr")(1,"td",7)(2,"div",8),i._uU(3),i.qZA()(),i.TgZ(4,"td",9),i.YNc(5,DB,3,2,"mat-form-field",10),i.YNc(6,HB,6,2,"div",11),i.YNc(7,PB,3,2,"mat-form-field",10),i.YNc(8,OB,3,2,"div",12),i.qZA()()),2&n){const e=a.$implicit,t=i.oxw(2);i.xp6(2),i.Q6J("matTooltip",e["tooltip_"+t.currentLang]),i.xp6(1),i.hij(" ",e["displayName_"+t.currentLang]," "),i.xp6(1),i.Q6J("ngSwitch",e.attribute.friendlyName),i.xp6(1),i.Q6J("ngSwitchCase","preferredLanguage"),i.xp6(1),i.Q6J("ngSwitchCase","preferredMail"),i.xp6(1),i.Q6J("ngSwitchCase","timezone")}}function BB(n,a){if(1&n&&(i.TgZ(0,"table",4)(1,"tbody")(2,"tr")(3,"td",5),i._uU(4),i.ALo(5,"translate"),i.ALo(6,"customTranslate"),i.qZA(),i.TgZ(7,"td"),i._uU(8),i.qZA()(),i.YNc(9,IB,9,6,"tr",6),i.qZA()()),2&n){const e=i.oxw();i.xp6(4),i.Oqu(i.lcZ(5,3,i.lcZ(6,5,"PROFILE_PAGE.NAME"))),i.xp6(4),i.Oqu(e.fullName),i.xp6(1),i.Q6J("ngForOf",e.additionalAttributes)}}let NB=(()=>{class n{constructor(e,t,r,l,c,s,o,d,u,h,f){this.translateService=e,this.dialog=t,this.authzResolverService=r,this.attributesManagerService=l,this.usersManagerService=c,this.route=s,this.router=o,this.notificator=d,this.storeService=u,this.apiRequestConfiguration=h,this.preferredLangService=f,this.currentLang="en",this.languages=this.storeService.getProperty("supported_languages"),this.timeZones=MD.tz.names().filter(b=>!b.startsWith("Etc/")),this.additionalAttributes=[],this.email="",this.fullName="",this.organization="",this.currentTimezone="",e.get("PROFILE_PAGE.MAIL_CHANGE_SUCCESS").subscribe(b=>this.successMessage=b)}ngOnInit(){const e=this.route.snapshot.queryParamMap,t=e.get("token"),r=e.get("u");this.loading=!0,t&&r?(this.apiRequestConfiguration.dontHandleErrorForNext(),this.usersManagerService.validatePreferredEmailChangeWithToken(t,Number.parseInt(r,10)).subscribe({next:()=>{this.notificator.showSuccess(this.successMessage),this.router.navigate([],{replaceUrl:!0,queryParamsHandling:"preserve"}),this.getData()},error:()=>{const l=ri();l.width="600px",this.dialog.open(xk,l).afterClosed().subscribe(()=>{this.getData()})}})):this.getData()}getData(){this.authzResolverService.getPerunPrincipal().subscribe(e=>{this.userId=e.userId,this.usersManagerService.getRichUserWithAttributes(this.userId).subscribe(t=>{this.fullName=(new TA).transform(t);const r=t.userAttributes.find(u=>"preferredMail"===u.friendlyName);this.email=r?.value??"-",this.languageAttribute=t.userAttributes.find(u=>"preferredLanguage"===u.friendlyName);const c=this.preferredLangService.getPreferredLanguage(this.languageAttribute?.value??null);this.translateService.use(c),this.currentLang=c,this.timezoneAttribute=t.userAttributes.find(u=>"timezone"===u.friendlyName),this.currentTimezone=this.timezoneAttribute?.value??"-";const s=this.storeService.getProperty("profile_page_attributes");let o=0;const d=this.storeService.getProperty("supported_languages");s.forEach(u=>{const h=t.userAttributes.find(f=>f.friendlyName===u.friendly_name);h?(o++,this.addAttribute(h,u,d)):this.attributesManagerService.getAttributeDefinitionByName(`urn:perun:user:attribute-def:${u.is_virtual?"virt":"def"}:${u.friendly_name}`).subscribe(f=>{this.addAttribute(f,u,d),o++,this.loading=o!==s.length}),this.loading=o!==s.length})})})}changeLanguage(e){this.currentLang=e,this.translateService.use(this.currentLang),this.languageAttribute?this.setLanguage():this.attributesManagerService.getAttributeDefinitionByName("urn:perun:user:attribute-def:def:preferredLanguage").subscribe(t=>{this.languageAttribute=t,this.setLanguage()})}setLanguage(){this.languageAttribute.value=this.currentLang,this.attributesManagerService.setUserAttribute({user:this.userId,attribute:this.languageAttribute}).subscribe(()=>{this.router.navigate([],{queryParams:{lang:null},queryParamsHandling:"merge"})})}changeTimeZone(e){this.currentTimezone=e,this.timezoneAttribute?this.setTimeZone():this.attributesManagerService.getAttributeDefinitionByName("urn:perun:user:attribute-def:def:timezone").subscribe(t=>{this.timezoneAttribute=t,this.setTimeZone()})}setTimeZone(){this.timezoneAttribute.value=this.currentTimezone,this.attributesManagerService.setUserAttribute({user:this.userId,attribute:this.timezoneAttribute}).subscribe(()=>{})}changeEmail(){const e=ri();e.width="350px",e.data={userId:this.userId},this.dialog.open(_k,e).afterClosed().subscribe(r=>{r&&this.getEmail()})}getEmail(){this.attributesManagerService.getUserAttributeByName(this.userId,"urn:perun:user:attribute-def:def:preferredMail").subscribe(e=>{this.email=e?.value??"-"})}addAttribute(e,t,r){const l={attribute:e};for(const c of r)l[`displayName_${c}`]=t?.[`display_name_${c}`]?.length?t[`display_name_${c}`]:e.displayName,l[`tooltip_${c}`]=t[`tooltip_${c}`]??"";this.additionalAttributes.push(l)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36($t),i.Y36(Fi),i.Y36(Cs),i.Y36(ji),i.Y36(ei),i.Y36(In),i.Y36(Ni),i.Y36(_r),i.Y36(jt),i.Y36(ig),i.Y36(Nv))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-profile-page"]],decls:3,vars:2,consts:[[1,"user-theme"],["class","ml-auto mr-auto",4,"ngIf"],["class","mt-3 word-break-all",4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"mt-3","word-break-all"],[1,"font-weight-bold"],[4,"ngFor","ngForOf"],[1,"font-weight-bold","att-name-width"],["matTooltipPosition","above",3,"matTooltip"],[1,"w-100",3,"ngSwitch"],["class","center-self",4,"ngSwitchCase"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[1,"center-self"],[1,"mb-auto",3,"value","valueChange"],[3,"value","click",4,"ngFor","ngForOf"],[3,"value","click"],[1,"center-self",3,"href"],["mat-icon-button","",1,"ml-2",3,"click"],[3,"value","valueChange"],[4,"ngIf"],[3,"attribute","readonly",4,"ngIf"],[3,"attribute","readonly"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.YNc(1,SB,1,0,"mat-spinner",1),i.YNc(2,BB,10,7,"table",2),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},dependencies:[w.sg,w.O5,w.RF,w.n9,w.ED,Ji,Dt,CT,hn,Fu,Lo,Ei,gr,w.gd,Qe,Qt],styles:[".center-self[_ngcontent-%COMP%]{margin-top:auto;margin-bottom:auto}.word-break-all[_ngcontent-%COMP%]{word-break:break-all}td[_ngcontent-%COMP%]{padding-right:1rem!important}.att-name-width[_ngcontent-%COMP%]{min-width:200px}"]}),n})(),VB=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-focus-on-linker-dialog"]],decls:9,vars:6,consts:[[1,"text-center","custom-dialog"],[1,"align-text-bottom"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"div")(2,"mat-icon",1),i._uU(3," info "),i.qZA(),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.TgZ(6,"div"),i._uU(7),i.ALo(8,"translate"),i.qZA()()),2&e&&(i.xp6(4),i.hij(" ",i.lcZ(5,2,"SHARED_LIB.CONSOLIDATOR.FOCUS_ON_LINKER.MODAL")," "),i.xp6(3),i.hij(" ",i.lcZ(8,4,"SHARED_LIB.CONSOLIDATOR.FOCUS_ON_LINKER.MODAL_WARNING")," "))},dependencies:[Ji,Qe],styles:[".custom-dialog[_ngcontent-%COMP%]{background-color:#000;color:#fffffff2;font-size:1.2rem}"]}),n})(),FB=(()=>{class n{constructor(e,t,r,l){this.otherApplicationsService=e,this.storeService=t,this.oauthService=r,this.dialog=l}openLinkerWindow(e,t){let r=this.otherApplicationsService.getUrlForOtherApplication(Go.Linker);this.storeService.getProperty("use_localhost_linker_url")&&(r="http://localhost:4201/");let l=r+"?formerToken="+this.oauthService.getAccessToken();t&&0!==t.length&&(l+="&idphint="+t.toString());const o=window.top,h=window.open(l,"_blank",`width=600,height=600,top=${o.outerHeight/2+o.screenY-300}, left=${o.outerWidth/2+o.screenX-300}`);let f;if(h){const B=ri();B.width="450px",B.panelClass="noBorderDialog",f=this.dialog.open(VB,B)}window.addEventListener("message",B=>{sessionStorage.setItem("linkedResult",B.data)});const b=setInterval(()=>{if(h.closed){clearInterval(b),f.close();const B=sessionStorage.getItem("linkedResult");sessionStorage.removeItem("linkedResult"),e(B)}},1e3)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(AA),i.LFG(jt),i.LFG(Jl.Ct),i.LFG(Fi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),vT=(()=>{class n{}return n.MEMBER_DEF_EXPIRATION="urn:perun:member:attribute-def:def:membershipExpiration",n.MEMBER_DEF_GROUP_EXPIRATION="urn:perun:member_group:attribute-def:def:groupMembershipExpiration",n.MEMBER_GROUP_STATUS="urn:perun:member_group:attribute-def:virt:groupStatus",n.MEMBER_GROUP_STATUS_INDIRECT="urn:perun:member_group:attribute-def:virt:groupStatusIndirect",n.MEMBER_DEF_ORGANIZATION="urn:perun:member:attribute-def:def:organization",n.MEMBER_DEF_MAIL="urn:perun:member:attribute-def:def:mail",n.MEMBER_CORE_ID="urn:perun:member:attribute-def:core:id",n.MEMBER_LIFECYCLE_ALTERABLE="urn:perun:member:attribute-def:virt:isLifecycleAlterable",n.VO_DEF_EXPIRATION_RULES="urn:perun:vo:attribute-def:def:membershipExpirationRules",n.VO_DEF_MAIL_FOOTER="urn:perun:vo:attribute-def:def:mailFooter",n.VO_DEF_MAIL_HTML_FOOTER="urn:perun:vo:attribute-def:def:htmlMailFooter",n.VO_BLOCK_MANUAL_MEMBER_ADDING="urn:perun:vo:attribute-def:def:blockManualMemberAdding",n.USER_DEF_ORGANIZATION="urn:perun:user:attribute-def:def:organization",n.USER_DEF_PREFERRED_MAIL="urn:perun:user:attribute-def:def:preferredMail",n.USER_DEF_CERTIFICATES="urn:perun:user:attribute-def:def:userCertificates",n.GROUP_DEF_EXPIRATION_RULES="urn:perun:group:attribute-def:def:groupMembershipExpirationRules",n.GROUP_DEF_MAIL_FOOTER="urn:perun:group:attribute-def:def:mailFooter",n.GROUP_DEF_MAIL_HTML_FOOTER="urn:perun:group:attribute-def:def:htmlMailFooter",n.GROUP_SYNC_ENABLED="urn:perun:group:attribute-def:def:synchronizationEnabled",n.GROUP_LAST_SYNC_STATE="urn:perun:group:attribute-def:def:lastSynchronizationState",n.GROUP_LAST_SYNC_TIMESTAMP="urn:perun:group:attribute-def:def:lastSynchronizationTimestamp",n.GROUP_STRUCTURE_SYNC_ENABLED="urn:perun:group:attribute-def:def:groupStructureSynchronizationEnabled",n.GROUP_LAST_STRUCTURE_SYNC_STATE="urn:perun:group:attribute-def:def:lastGroupStructureSynchronizationState",n.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP="urn:perun:group:attribute-def:def:lastGroupStructureSynchronizationTimestamp",n.GROUP_SYNC_INTERVAL="urn:perun:group:attribute-def:def:synchronizationInterval",n.GROUP_BLOCK_MANUAL_MEMBER_ADDING="urn:perun:group:attribute-def:def:blockManualMemberAdding",n.UES_DEF_MAIL="urn:perun:ues:attribute-def:def:mail",n.UES_DEF_ORGANIZATION="urn:perun:ues:attribute-def:def:o",n.UES_SOURCE_IDP_NAME="urn:perun:ues:attribute-def:def:sourceIdPName",n.UES_IDP_ORGANIZATION_NAME="urn:perun:ues:attribute-def:def:IdPOrganizationName",n})();const zB=["mat-sort-header",""];function jB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",3),i.NdJ("@arrowPosition.start",function(){i.CHM(e);const r=i.oxw();return i.KtG(r._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){i.CHM(e);const r=i.oxw();return i.KtG(r._disableViewStateAnimation=!1)}),i._UZ(1,"div",4),i.TgZ(2,"div",5),i._UZ(3,"div",6)(4,"div",7)(5,"div",8),i.qZA()()}if(2&n){const e=i.oxw();i.Q6J("@arrowOpacity",e._getArrowViewState())("@arrowPosition",e._getArrowViewState())("@allowChildren",e._getArrowDirectionState()),i.xp6(2),i.Q6J("@indicator",e._getArrowDirectionState()),i.xp6(1),i.Q6J("@leftPointer",e._getArrowDirectionState()),i.xp6(1),i.Q6J("@rightPointer",e._getArrowDirectionState())}}const qB=["*"],KD=new i.OlP("MAT_SORT_DEFAULT_OPTIONS"),YB=Jh(is(class{}));let gs=(()=>{class n extends YB{constructor(e){super(),this._defaultOptions=e,this.sortables=new Map,this._stateChanges=new Ee.x,this.start="asc",this._direction="",this.sortChange=new i.vpe}get direction(){return this._direction}set direction(e){this._direction=e}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=Fe(e)}register(e){this.sortables.set(e.id,e)}deregister(e){this.sortables.delete(e.id)}sort(e){this.active!=e.id?(this.active=e.id,this.direction=e.start?e.start:this.start):this.direction=this.getNextSortDirection(e),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(e){var t,r,l;if(!e)return"";const c=null!==(t=null!==(r=e?.disableClear)&&void 0!==r?r:this.disableClear)&&void 0!==t?t:!(null===(l=this._defaultOptions)||void 0===l||!l.disableClear);let s=function WB(n,a){let e=["asc","desc"];return"desc"==n&&e.reverse(),a||e.push(""),e}(e.start||this.start,c),o=s.indexOf(this.direction)+1;return o>=s.length&&(o=0),s[o]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(KD,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],active:["matSortActive","active"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[i.qOj,i.TTD]}),n})();const fd=rS.ENTERING+" "+nS.STANDARD_CURVE,sf={indicator:yi("indicator",[It("active-asc, asc",Le({transform:"translateY(0px)"})),It("active-desc, desc",Le({transform:"translateY(10px)"})),Rt("active-asc <=> active-desc",Ht(fd))]),leftPointer:yi("leftPointer",[It("active-asc, asc",Le({transform:"rotate(-45deg)"})),It("active-desc, desc",Le({transform:"rotate(45deg)"})),Rt("active-asc <=> active-desc",Ht(fd))]),rightPointer:yi("rightPointer",[It("active-asc, asc",Le({transform:"rotate(45deg)"})),It("active-desc, desc",Le({transform:"rotate(-45deg)"})),Rt("active-asc <=> active-desc",Ht(fd))]),arrowOpacity:yi("arrowOpacity",[It("desc-to-active, asc-to-active, active",Le({opacity:1})),It("desc-to-hint, asc-to-hint, hint",Le({opacity:.54})),It("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",Le({opacity:0})),Rt("* => asc, * => desc, * => active, * => hint, * => void",Ht("0ms")),Rt("* <=> *",Ht(fd))]),arrowPosition:yi("arrowPosition",[Rt("* => desc-to-hint, * => desc-to-active",Ht(fd,zl([Le({transform:"translateY(-25%)"}),Le({transform:"translateY(0)"})]))),Rt("* => hint-to-desc, * => active-to-desc",Ht(fd,zl([Le({transform:"translateY(0)"}),Le({transform:"translateY(25%)"})]))),Rt("* => asc-to-hint, * => asc-to-active",Ht(fd,zl([Le({transform:"translateY(25%)"}),Le({transform:"translateY(0)"})]))),Rt("* => hint-to-asc, * => active-to-asc",Ht(fd,zl([Le({transform:"translateY(0)"}),Le({transform:"translateY(-25%)"})]))),It("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",Le({transform:"translateY(0)"})),It("hint-to-desc, active-to-desc, desc",Le({transform:"translateY(-25%)"})),It("hint-to-asc, active-to-asc, asc",Le({transform:"translateY(25%)"}))]),allowChildren:yi("allowChildren",[Rt("* <=> *",[Sr("@*",mp(),{optional:!0})])])};let WA=(()=>{class n{constructor(){this.changes=new Ee.x}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const GB={provide:WA,deps:[[new i.FiY,new i.tp0,WA]],useFactory:function UB(n){return n||new WA}},$B=is(class{});let hg=(()=>{class n extends $B{constructor(e,t,r,l,c,s,o,d){super(),this._intl=e,this._changeDetectorRef=t,this._sort=r,this._columnDef=l,this._focusMonitor=c,this._elementRef=s,this._ariaDescriber=o,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",null!=d&&d.arrowPosition&&(this.arrowPosition=d?.arrowPosition),this._handleStateChanges()}get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(e){this._updateSortActionDescription(e)}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=Fe(e)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{const t=!!e;t!==this._showIndicatorHint&&(this._setIndicatorHintVisible(t),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(e){this._isDisabled()&&e||(this._showIndicatorHint=e,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(e){this._viewState=e||{},this._disableViewStateAnimation&&(this._viewState={toState:e.toState})}_toggleOnInteraction(){this._sort.sort(this),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(e){!this._isDisabled()&&(32===e.keyCode||13===e.keyCode)&&(e.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const e=this._viewState.fromState;return(e?`${e}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(e){var t,r;this._sortButton&&(null===(t=this._ariaDescriber)||void 0===t||t.removeDescription(this._sortButton,this._sortActionDescription),null===(r=this._ariaDescriber)||void 0===r||r.describe(this._sortButton,e)),this._sortActionDescription=e}_handleStateChanges(){this._rerenderSubscription=(0,Li.T)(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(WA),i.Y36(i.sBO),i.Y36(gs,8),i.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),i.Y36(ur),i.Y36(i.SBq),i.Y36(nu,8),i.Y36(KD,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(e,t){1&e&&i.NdJ("click",function(){return t._handleClick()})("keydown",function(l){return t._handleKeydown(l)})("mouseenter",function(){return t._setIndicatorHintVisible(!0)})("mouseleave",function(){return t._setIndicatorHintVisible(!1)}),2&e&&(i.uIk("aria-sort",t._getAriaSortAttribute()),i.ekj("mat-sort-header-disabled",t._isDisabled()))},inputs:{disabled:"disabled",id:["mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[i.qOj],attrs:zB,ngContentSelectors:qB,decls:4,vars:7,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0)(1,"div",1),i.Hsn(2),i.qZA(),i.YNc(3,jB,6,6,"div",2),i.qZA()),2&e&&(i.ekj("mat-sort-header-sorted",t._isSorted())("mat-sort-header-position-before","before"===t.arrowPosition),i.uIk("tabindex",t._isDisabled()?null:0)("role",t._isDisabled()?null:"button"),i.xp6(3),i.Q6J("ngIf",t._renderArrow()))},dependencies:[w.O5],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}"],encapsulation:2,data:{animation:[sf.indicator,sf.leftPointer,sf.rightPointer,sf.arrowOpacity,sf.arrowPosition,sf.allowChildren]},changeDetection:0}),n})(),UA=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[GB],imports:[w.ez,_t]}),n})(),ZB=(()=>{class n{transform(e){return e.find(r=>"mail"===r.friendlyName)?.value??""}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"getMailFromAttributes",type:n,pure:!0}),n})(),pg=(()=>{class n{transform(e){const t="SHARED_LIB.PERUN.CHECKBOX_LABEL.";return e?t+"DESELECT_ROW":t+"SELECT_ROW"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"checkboxLabel",type:n,pure:!0}),n})();function JB(n,a){1&n&&i._UZ(0,"th",18)}const QB=function(n){return{name:n}};function XB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",19)(1,"span",20),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.TgZ(4,"mat-checkbox",21),i.NdJ("change",function(r){const c=i.CHM(e).$implicit,s=i.oxw();return i.KtG(r?s.selection.toggle(c):null)})("click",function(r){return r.stopPropagation()}),i.ALo(5,"translate"),i.ALo(6,"checkboxLabel"),i.qZA()()()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.s9C("matTooltip",i.lcZ(2,6,i.lcZ(3,8,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.CANNOT_BE_DELETED_TOOLTIP"))),i.Q6J("matTooltipPosition","above")("matTooltipDisabled",!e.userExtSource.persistent),i.xp6(3),i.Q6J("aria-label",i.xi3(5,10,i.lcZ(6,13,t.selection.isSelected(e)),i.VKq(15,QB,e.userExtSource.extSource.name)))("checked",t.selection.isSelected(e))("disabled",e.userExtSource.persistent)}}function KB(n,a){1&n&&(i.TgZ(0,"th",22),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.ID"))," "))}function eN(n,a){if(1&n&&(i.TgZ(0,"td",23),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",e.userExtSource.id," ")}}function tN(n,a){1&n&&(i.TgZ(0,"th",24),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.MAIL"))," "))}function iN(n,a){if(1&n&&(i.TgZ(0,"td",23),i._uU(1),i.ALo(2,"getMailFromAttributes"),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",i.lcZ(2,1,e.attributes)," ")}}function nN(n,a){if(1&n&&(i.TgZ(0,"th",22),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,e.extSourceNameHeader?e.extSourceNameHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.EXT_SOURCE_NAME"))," ")}}function rN(n,a){if(1&n&&(i.TgZ(0,"td",23),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",e.userExtSource.extSource.name," ")}}function aN(n,a){if(1&n&&(i.TgZ(0,"th",22),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,e.loginHeader?e.loginHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LOGIN"))," ")}}function sN(n,a){if(1&n&&(i.TgZ(0,"td",23),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",e.userExtSource.login," ")}}function oN(n,a){1&n&&(i.TgZ(0,"th",22),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LAST_ACCESS"))," "))}function lN(n,a){if(1&n&&(i.TgZ(0,"td",25),i._uU(1),i.ALo(2,"date"),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",i.xi3(2,1,e.userExtSource.lastAccess,"d.M.y H:mm:ss")," ")}}function cN(n,a){1&n&&i._UZ(0,"tr",26)}const e2=function(n,a){return["/admin","users",n,"identities",a]};function dN(n,a){if(1&n&&i._UZ(0,"tr",27),2&n){const e=a.$implicit,t=i.oxw();i.ekj("cursor-pointer",!t.disableRouting)("disable-outline",t.disableRouting),i.Q6J("perunWebAppsMiddleClickRouterLink",t.disableRouting?null:i.WLB(6,e2,t.userId.toString(),e.userExtSource.id.toString()))("routerLink",t.disableRouting?null:i.WLB(9,e2,t.userId,e.userExtSource.id))}}function uN(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",28),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function hN(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",28),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.NO_IDENTITIES")),"\n"))}let pN=(()=>{class n{constructor(e,t){this.route=e,this.authResolver=t,this.selection=new Vn,this.filterValue="",this.displayedColumns=["select","id","mail","extSourceName","login","lastAccess"],this.pageSizeOptions=hd}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,t){switch(t){case"id":return e.userExtSource.id.toString();case"mail":{const r=e.attributes.find(l=>"mail"===l.friendlyName);return r?r.value:"N/A"}case"extSourceName":return e.userExtSource.extSource.name;case"login":return e.userExtSource.login;case"lastAccess":return e.userExtSource.lastAccess.split(".")[0];default:return e[t]}}ngOnInit(){this.disableRouting||this.route.parent.params.subscribe(e=>{this.userId=Number(e.userId)}),this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"id"!==e)),this.dataSource=new $o(this.userExtSources),this.setDataSource()}exportAllData(e){Na(Ba(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}exportDisplayedData(e){const t=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,r=t+this.dataSource.paginator.pageSize;Na(Ba(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(t,r),this.displayedColumns,n.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>Uo(e,t,this.displayedColumns,n.getDataForColumn),this.dataSource.sortData=(e,t)=>Zl(e,t,n.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(In),i.Y36(tn))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-user-ext-sources-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(ds,7),i.Gf(gs,7)),2&e){let r;i.iGM(r=i.CRH())&&(t.child=r.first),i.iGM(r=i.CRH())&&(t.matSort=r.first)}},inputs:{userExtSources:"userExtSources",selection:"selection",filterValue:"filterValue",displayedColumns:"displayedColumns",tableId:"tableId",extSourceNameHeader:"extSourceNameHeader",loginHeader:"loginHeader",disableRouting:"disableRouting"},features:[i.TTD],decls:25,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","lastAccess","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","truncate","mat-cell","",4,"matCellDef"],["matColumnDef","mail"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","extSourceName"],["matColumnDef","login"],["matColumnDef","lastAccess",1,"pl-3"],["mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["mat-cell","",1,"static-column-size","align-checkbox"],[3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"truncate"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportDisplayedData",function(l){return t.exportDisplayedData(l)})("exportAllData",function(l){return t.exportAllData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,JB,1,0,"th",4),i.YNc(5,XB,7,17,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,KB,4,5,"th",7),i.YNc(8,eN,2,1,"td",8),i.BQk(),i.ynx(9,9),i.YNc(10,tN,4,5,"th",10),i.YNc(11,iN,3,3,"td",8),i.BQk(),i.ynx(12,11),i.YNc(13,nN,4,5,"th",7),i.YNc(14,rN,2,1,"td",8),i.BQk(),i.ynx(15,12),i.YNc(16,aN,4,5,"th",7),i.YNc(17,sN,2,1,"td",8),i.BQk(),i.ynx(18,13),i.YNc(19,oN,4,5,"th",7),i.YNc(20,lN,3,4,"td",14),i.BQk(),i.YNc(21,cN,1,0,"tr",15),i.YNc(22,dN,1,12,"tr",16),i.qZA()()(),i.YNc(23,uN,3,3,"perun-web-apps-alert",17),i.YNc(24,hN,4,5,"perun-web-apps-alert",17)),2&e&&(i.Q6J("hidden",0===t.userExtSources.length||0===t.dataSource.filteredData.length),i.xp6(1),i.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),i.xp6(1),i.Q6J("dataSource",t.dataSource),i.xp6(19),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns),i.xp6(1),i.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.userExtSources.length),i.xp6(1),i.Q6J("ngIf",0===t.userExtSources.length))},dependencies:[w.O5,nc,eo,hs,to,ps,us,io,fs,ms,no,ro,Qa,gs,hg,Mn,gr,ds,hD,NA,w.uU,Qe,ZB,Qt,pg],styles:[".static-column-size[_ngcontent-%COMP%]{width:80px!important}.truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;max-width:10rem}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:.25rem!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.disable-outline[_ngcontent-%COMP%]{outline:none!important}"]}),n})();function fN(n,a){1&n&&i._UZ(0,"mat-spinner",4)}function mN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"h1",8),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.TgZ(5,"button",5),i.NdJ("click",function(){i.CHM(e);const r=i.oxw(2);return i.KtG(r.addIdentity())}),i._uU(6),i.ALo(7,"translate"),i.ALo(8,"customTranslate"),i.qZA(),i.TgZ(9,"button",6),i.NdJ("click",function(){i.CHM(e);const r=i.oxw(2);return i.KtG(r.removeIdentity(r.certSelection))}),i._uU(10),i.ALo(11,"translate"),i.ALo(12,"customTranslate"),i.qZA(),i._UZ(13,"perun-web-apps-user-ext-sources-list",11),i.qZA()}if(2&n){const e=i.oxw(2);i.xp6(2),i.Oqu(i.lcZ(3,10,i.lcZ(4,12,"IDENTITIES.CERT"))),i.xp6(4),i.hij(" ",i.lcZ(7,14,i.lcZ(8,16,"IDENTITIES.ADD"))," "),i.xp6(3),i.Q6J("disabled",0===e.certSelection.selected.length),i.xp6(1),i.hij(" ",i.lcZ(11,18,i.lcZ(12,20,"IDENTITIES.REMOVE"))," "),i.xp6(3),i.Q6J("userExtSources",e.certExtSources)("selection",e.certSelection)("extSourceNameHeader",e.extSourceNameCert)("loginHeader",e.loginCert)("displayedColumns",e.displayedColumnsCert)("disableRouting",!0)}}function gN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"button",5),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.addIdentity())}),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.TgZ(5,"button",6),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.removeIdentity(r.idpSelection))}),i._uU(6),i.ALo(7,"translate"),i.ALo(8,"customTranslate"),i.qZA(),i._UZ(9,"perun-web-apps-user-ext-sources-list",7),i.YNc(10,mN,14,22,"div",3),i.TgZ(11,"h1",8),i._uU(12),i.ALo(13,"translate"),i.ALo(14,"customTranslate"),i.TgZ(15,"mat-icon",9),i.ALo(16,"translate"),i.ALo(17,"customTranslate"),i._uU(18," info_outline "),i.qZA()(),i._UZ(19,"perun-web-apps-user-ext-sources-list",10),i.qZA()}if(2&n){const e=i.oxw();i.xp6(2),i.hij(" ",i.lcZ(3,16,i.lcZ(4,18,"IDENTITIES.ADD"))," "),i.xp6(3),i.Q6J("disabled",0===e.idpSelection.selected.length),i.xp6(1),i.hij(" ",i.lcZ(7,20,i.lcZ(8,22,"IDENTITIES.REMOVE"))," "),i.xp6(3),i.Q6J("userExtSources",e.idpExtSources)("selection",e.idpSelection)("displayedColumns",e.displayedColumnsIdp)("loginHeader",e.loginIdp)("disableRouting",!0),i.xp6(1),i.Q6J("ngIf",e.displayCertificates),i.xp6(2),i.hij(" ",i.lcZ(13,24,i.lcZ(14,26,"IDENTITIES.OTHER"))," "),i.xp6(3),i.Q6J("matTooltip",i.lcZ(16,28,i.lcZ(17,30,"IDENTITIES.OTHER_TOOLTIP"))),i.xp6(4),i.Q6J("userExtSources",e.otherExtSources)("selection",e.otherSelection)("extSourceNameHeader",e.extSourceNameOther)("displayedColumns",e.displayedColumnsOther)("disableRouting",!0)}}let _N=(()=>{class n{constructor(e,t,r,l,c,s,o,d){this.usersManagerService=e,this.storage=t,this.dialog=r,this.attributesManagerService=l,this.translate=c,this.notificator=s,this.registrarManagerService=o,this.openLinkerService=d,this.idpExtSources=[],this.certExtSources=[],this.otherExtSources=[],this.idpSelection=new Vn(!0,[]),this.certSelection=new Vn(!0,[]),this.otherSelection=new Vn(!0,[]),this.loginIdp="IDENTITIES.LOGIN_IDP",this.extSourceNameCert="IDENTITIES.EXT_SOURCE_NAME_CERT",this.loginCert="IDENTITIES.LOGIN_CERT",this.extSourceNameOther="IDENTITIES.EXT_SOURCE_NAME_OTHER",this.displayedColumnsIdp=["select","extSourceName","login","mail","lastAccess"],this.displayedColumnsCert=["select","extSourceName","login","lastAccess"],this.displayedColumnsOther=["extSourceName","login","lastAccess"]}ngOnInit(){this.userId=this.storage.getPerunPrincipal().userId,this.displayCertificates=this.storage.getProperty("display_identity_certificates"),this.refreshTables()}refreshTables(){this.loading=!0,this.idpExtSources=[],this.certExtSources=[],this.otherExtSources=[],this.usersManagerService.getRichUserExtSources(this.userId).subscribe(e=>{let t=e.length;e.forEach(r=>{this.attributesManagerService.getUserExtSourceAttributesByNames(r.userExtSource.id,[vT.UES_SOURCE_IDP_NAME,vT.UES_DEF_MAIL]).subscribe(l=>{let c;l.filter(s=>"mail"===s.baseFriendlyName&&null===s.value).map(s=>r.attributes.push(s)),l.filter(s=>"sourceIdPName"===s.baseFriendlyName&&s?.value).map(s=>c=s.value),c?(r.userExtSource.extSource.name=c,t--,this.loading=0!==t,this.addToList(r)):this.attributesManagerService.getUserExtSourceAttributeByName(r.userExtSource.id,vT.UES_IDP_ORGANIZATION_NAME).subscribe(s=>{t--,s?.value&&(r.userExtSource.extSource.name=s.value),this.loading=0!==t,this.addToList(r)})})})})}removeIdentity(e){const t=ri();t.width="600px",t.data={theme:"user-theme",userId:this.userId,extSources:e.selected},this.dialog.open(ck,t).afterClosed().subscribe(l=>{l&&(e.clear(),this.refreshTables())})}addIdentity(){this.storage.getProperty("use_new_consolidator")?this.openLinkerService.openLinkerWindow(e=>{"TOKEN_EXPIRED"===e?location.reload():"OK"===e?(this.notificator.showSuccess(this.translate.instant("IDENTITIES.SUCCESSFULLY_ADDED")),this.refreshTables()):"MESSAGE_SENT_TO_SUPPORT"===e&&this.notificator.showSuccess(this.translate.instant("IDENTITIES.MESSAGE_SENT_TO_SUPPORT"))}):this.registrarManagerService.getConsolidatorToken().subscribe(e=>{const t=this.storage.getPerunPrincipal().extSourceType,r=this.storage.getProperty("consolidator_base_url");window.location.href=`${r}${t?.endsWith("X509")?"cert":"fed"}-ic/ic/?target_url=${window.location.href}&token=${e}`})}addToList(e){e.userExtSource.extSource.type.endsWith("Idp")?this.idpExtSources.push(e):e.userExtSource.extSource.type.endsWith("X509")?this.certExtSources.push(e):this.otherExtSources.push(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(ei),i.Y36(jt),i.Y36(Fi),i.Y36(ji),i.Y36($t),i.Y36(_r),i.Y36(Ts),i.Y36(FB))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-identities-page"]],decls:7,vars:7,consts:[[1,"user-theme"],[1,"page-title"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-flat-button","","color","accent",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[3,"userExtSources","selection","displayedColumns","loginHeader","disableRouting"],[1,"page-title","mt-5"],["matTooltipPosition","above",1,"center-icon",3,"matTooltip"],[3,"userExtSources","selection","extSourceNameHeader","displayedColumns","disableRouting"],[3,"userExtSources","selection","extSourceNameHeader","loginHeader","displayedColumns","disableRouting"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.YNc(5,fN,1,0,"mat-spinner",2),i.YNc(6,gN,20,32,"div",3),i.qZA()),2&e&&(i.xp6(2),i.Oqu(i.lcZ(3,3,i.lcZ(4,5,"IDENTITIES.IDP"))),i.xp6(3),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},dependencies:[w.O5,Ji,Dt,pN,Ei,gr,Qe,Qt],styles:[".center-icon[_ngcontent-%COMP%]{vertical-align:middle;transform:scale(.8)}"]}),n})();const bN=["panel"];function AN(n,a){if(1&n&&(i.TgZ(0,"div",0,1),i.Hsn(2),i.qZA()),2&n){const e=a.id,t=i.oxw();i.Q6J("id",t.id)("ngClass",t._classList),i.uIk("aria-label",t.ariaLabel||null)("aria-labelledby",t._getPanelAriaLabelledby(e))}}const yN=["*"];let MN=0;class wN{constructor(a,e){this.source=a,this.option=e}}const CN=xr(class{}),t2=new i.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function vN(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1}}});let TN=(()=>{class n extends CN{constructor(e,t,r,l){super(),this._changeDetectorRef=e,this._elementRef=t,this._activeOptionChanges=li.w0.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new i.vpe,this.opened=new i.vpe,this.closed=new i.vpe,this.optionActivated=new i.vpe,this._classList={},this.id="mat-autocomplete-"+MN++,this.inertGroups=l?.SAFARI||!1,this._autoActiveFirstOption=!!r.autoActiveFirstOption,this._autoSelectActiveOption=!!r.autoSelectActiveOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(e){this._autoActiveFirstOption=Fe(e)}get autoSelectActiveOption(){return this._autoSelectActiveOption}set autoSelectActiveOption(e){this._autoSelectActiveOption=Fe(e)}set classList(e){this._classList=e&&e.length?function TM(n,a=/\s+/){const e=[];if(null!=n){const t=Array.isArray(n)?n:`${n}`.split(a);for(const r of t){const l=`${r}`.trim();l&&e.push(l)}}return e}(e).reduce((t,r)=>(t[r]=!0,t),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new RM(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(e=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[e]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(e){this.panel&&(this.panel.nativeElement.scrollTop=e)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(e){const t=new wN(this,e);this.optionSelected.emit(t)}_getPanelAriaLabelledby(e){return this.ariaLabel?null:this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_setVisibilityClasses(e){e[this._visibleClass]=this.showPanel,e[this._hiddenClass]=!this.showPanel}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.sBO),i.Y36(i.SBq),i.Y36(t2),i.Y36(Yi))},n.\u0275dir=i.lG2({type:n,viewQuery:function(e,t){if(1&e&&(i.Gf(i.Rgc,7),i.Gf(bN,5)),2&e){let r;i.iGM(r=i.CRH())&&(t.template=r.first),i.iGM(r=i.CRH())&&(t.panel=r.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",autoSelectActiveOption:"autoSelectActiveOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[i.qOj]}),n})(),xN=(()=>{class n extends TN{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-autocomplete"]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,np,5),i.Suo(r,Lo,5)),2&e){let l;i.iGM(l=i.CRH())&&(t.optionGroups=l),i.iGM(l=i.CRH())&&(t.options=l)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[i._Bn([{provide:ip,useExisting:n}]),i.qOj],ngContentSelectors:yN,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(e,t){1&e&&(i.F$t(),i.YNc(0,AN,3,4,"ng-template"))},dependencies:[w.mk],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}"],encapsulation:2,changeDetection:0}),n})();const n2=new i.OlP("mat-autocomplete-scroll-strategy"),EN={provide:n2,deps:[ar],useFactory:function SN(n){return()=>n.scrollStrategies.reposition()}},DN={provide:sr,useExisting:(0,i.Gpc)(()=>r2),multi:!0};let HN=(()=>{class n{constructor(e,t,r,l,c,s,o,d,u,h,f){this._element=e,this._overlay=t,this._viewContainerRef=r,this._zone=l,this._changeDetectorRef=c,this._dir=o,this._formField=d,this._document=u,this._viewportRuler=h,this._defaults=f,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=li.w0.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new Ee.x,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=Di(()=>{const b=this.autocomplete?this.autocomplete.options:null;return b?b.changes.pipe(Hi(b),(0,mi.w)(()=>(0,Li.T)(...b.map(B=>B.onSelectionChange)))):this._zone.onStable.pipe((0,ct.q)(1),(0,mi.w)(()=>this.optionSelections))}),this._scrollStrategy=s}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(e){this._autocompleteDisabled=Fe(e)}ngAfterViewInit(){const e=this._getWindow();typeof e<"u"&&this._zone.runOutsideAngular(()=>e.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(e){e.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const e=this._getWindow();typeof e<"u"&&e.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._isOpen=this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return(0,Li.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,ye.h)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,ye.h)(()=>this._overlayAttached)):(0,xe.of)()).pipe((0,At.U)(e=>e instanceof J1?e:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,Li.T)(Sa(this._document,"click"),Sa(this._document,"auxclick"),Sa(this._document,"touchend")).pipe((0,ye.h)(e=>{const t=ia(e),r=this._formField?this._formField._elementRef.nativeElement:null,l=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&t!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!r||!r.contains(t))&&(!l||!l.contains(t))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(t)}))}writeValue(e){Promise.resolve(null).then(()=>this._assignOptionValue(e))}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._element.nativeElement.disabled=e}_handleKeydown(e){const t=e.keyCode,r=Bn(e);if(27===t&&!r&&e.preventDefault(),this.activeOption&&13===t&&this.panelOpen&&!r)this.activeOption._selectViaInteraction(),this._resetActiveItem(),e.preventDefault();else if(this.autocomplete){const l=this.autocomplete._keyManager.activeItem,c=38===t||40===t;9===t||c&&!r&&this.panelOpen?this.autocomplete._keyManager.onKeydown(e):c&&this._canOpen()&&this.openPanel(),(c||this.autocomplete._keyManager.activeItem!==l)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._element.nativeElement.value),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(e){let t=e.target,r=t.value;"number"===t.type&&(r=""==r?null:parseFloat(r)),this._previousValue!==r&&(this._previousValue=r,this._pendingAutoselectedOption=null,this._onChange(r),this._canOpen()&&this._document.activeElement===e.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this.openPanel()}_floatLabel(e=!1){this._formField&&"auto"===this._formField.floatLabel&&(e?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const e=this._zone.onStable.pipe((0,ct.q)(1)),t=this.autocomplete.options.changes.pipe((0,ni.b)(()=>this._positionStrategy.reapplyLastPosition()),(0,Yo.g)(0));return(0,Li.T)(e,t).pipe((0,mi.w)(()=>(this._zone.run(()=>{const r=this.panelOpen;this._resetActiveItem(),this.autocomplete._setVisibility(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),r!==this.panelOpen&&(this.panelOpen?this.autocomplete.opened.emit():this.autocomplete.closed.emit())}),this.panelClosingActions)),(0,ct.q)(1)).subscribe(r=>this._setValueAndClose(r))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_assignOptionValue(e){const t=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(e):e;this._updateNativeInputValue(t??"")}_updateNativeInputValue(e){this._formField?this._formField._control.value=e:this._element.nativeElement.value=e,this._previousValue=e}_setValueAndClose(e){const t=e?e.source:this._pendingAutoselectedOption;t&&(this._clearPreviousSelectedOption(t),this._assignOptionValue(t.value),this._onChange(t.value),this.autocomplete._emitSelectEvent(t),this._element.nativeElement.focus()),this.closePanel()}_clearPreviousSelectedOption(e){this.autocomplete.options.forEach(t=>{t!==e&&t.selected&&t.deselect()})}_attachOverlay(){let e=this._overlayRef;var t;e?(this._positionStrategy.setOrigin(this._getConnectedElement()),e.updateSize({width:this._getPanelWidth()})):(this._portal=new Ha(this.autocomplete.template,this._viewContainerRef,{id:null===(t=this._formField)||void 0===t?void 0:t.getLabelId()}),e=this._overlay.create(this._getOverlayConfig()),this._overlayRef=e,this._handleOverlayEvents(e),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&e&&e.updateSize({width:this._getPanelWidth()})})),e&&!e.hasAttached()&&(e.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const r=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&r!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){var e;return new Fl({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(e=this._defaults)||void 0===e?void 0:e.overlayPanelClass})}_getOverlayPosition(){const e=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(e),this._positionStrategy=e,e}_setStrategyPositions(e){const t=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],r=this._aboveClass,l=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:r},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:r}];let c;c="above"===this.position?l:"below"===this.position?t:[...t,...l],e.withPositions(c)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const e=this.autocomplete;e.autoActiveFirstOption?e._keyManager.setFirstItemActive():e._keyManager.setActiveItem(-1)}_canOpen(){const e=this._element.nativeElement;return!e.readOnly&&!e.disabled&&!this._autocompleteDisabled}_getWindow(){var e;return(null===(e=this._document)||void 0===e?void 0:e.defaultView)||window}_scrollToOption(e){const t=this.autocomplete,r=A0(e,t.options,t.optionGroups);if(0===e&&1===r)t._setScrollTop(0);else if(t.panel){const l=t.options.toArray()[e];if(l){const c=l._getHostElement(),s=Q1(c.offsetTop,c.offsetHeight,t._getScrollTop(),t.panel.nativeElement.offsetHeight);t._setScrollTop(s)}}}_handleOverlayEvents(e){e.keydownEvents().subscribe(t=>{var r;(27===t.keyCode&&!Bn(t)||38===t.keyCode&&Bn(t,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(null!==(r=this._valueBeforeAutoSelection)&&void 0!==r?r:""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),t.stopPropagation(),t.preventDefault())}),e.outsidePointerEvents().subscribe()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(ar),i.Y36(i.s_b),i.Y36(i.R0b),i.Y36(i.sBO),i.Y36(n2),i.Y36(Sn,8),i.Y36(Tu,9),i.Y36(w.K0,8),i.Y36(Ys),i.Y36(t2,8))},n.\u0275dir=i.lG2({type:n,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[i.TTD]}),n})(),r2=(()=>{class n extends HN{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(e,t){1&e&&i.NdJ("focusin",function(){return t._handleFocus()})("blur",function(){return t._onTouched()})("input",function(l){return t._handleInput(l)})("keydown",function(l){return t._handleKeydown(l)})("click",function(){return t._handleClick()}),2&e&&i.uIk("autocomplete",t.autocompleteAttribute)("role",t.autocompleteDisabled?null:"combobox")("aria-autocomplete",t.autocompleteDisabled?null:"list")("aria-activedescendant",t.panelOpen&&t.activeOption?t.activeOption.id:null)("aria-expanded",t.autocompleteDisabled?null:t.panelOpen.toString())("aria-owns",t.autocompleteDisabled||!t.panelOpen||null==t.autocomplete?null:t.autocomplete.id)("aria-haspopup",t.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[i._Bn([DN]),i.qOj]}),n})(),LN=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[EN],imports:[Oo,cu,_t,w.ez,rs,cu,_t]}),n})(),PN=(()=>{class n{transform(e){return e?.value??"never"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"validateExpiration",type:n,pure:!0}),n})();function RN(n,a){1&n&&i._UZ(0,"th",17)}const kN=function(n){return{name:n}};function ON(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",18)(1,"mat-checkbox",19),i.NdJ("change",function(r){const c=i.CHM(e).$implicit,s=i.oxw();return i.KtG(r?s.selection.toggle(c):null)})("click",function(r){return r.stopPropagation()}),i.ALo(2,"translate"),i.ALo(3,"checkboxLabel"),i.ALo(4,"validateExpiration"),i.qZA()()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Q6J("aria-label",i.xi3(2,3,i.lcZ(3,6,t.selection.isSelected(e)),i.VKq(10,kN,e.entity.name)))("checked",t.selection.isSelected(e))("disabled","never"===i.lcZ(4,8,e.expirationAttribute))}}function IN(n,a){1&n&&(i.TgZ(0,"th",20),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"MEMBERSHIP_LIST.NAME"))," "))}function BN(n,a){if(1&n&&(i.TgZ(0,"td",21),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.entity.name)}}function NN(n,a){1&n&&(i.TgZ(0,"th",20),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"MEMBERSHIP_LIST.DESCRIPTION"))," "))}function VN(n,a){if(1&n&&(i.TgZ(0,"td",22),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.entity.description)}}function FN(n,a){1&n&&(i.TgZ(0,"th",23),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"MEMBERSHIP_LIST.EXPIRATION"))," "))}function zN(n,a){if(1&n&&(i.TgZ(0,"td",22),i._uU(1),i.ALo(2,"validateExpiration"),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",i.lcZ(2,1,e.expirationAttribute)," ")}}function jN(n,a){1&n&&i._UZ(0,"th",20)}function qN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",22)(1,"button",24),i.NdJ("click",function(){const l=i.CHM(e).$implicit,c=i.oxw();return i.KtG(c.extend(l))}),i.ALo(2,"validateExpiration"),i._uU(3),i.ALo(4,"translate"),i.ALo(5,"customTranslate"),i.qZA()()}if(2&n){const e=a.$implicit;i.xp6(1),i.Q6J("disabled","never"===i.lcZ(2,2,e.expirationAttribute)),i.xp6(2),i.hij(" ",i.lcZ(4,4,i.lcZ(5,6,"MEMBERSHIP_LIST.EXTEND"))," ")}}function YN(n,a){1&n&&i._UZ(0,"tr",25)}function WN(n,a){1&n&&i._UZ(0,"tr",26)}function UN(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",27),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"MEMBERSHIP_LIST.NO_MEMBERSHIPS"))))}let a2=(()=>{class n{constructor(){this.members=[],this.searchString="",this.selection=new Vn(!1,[]),this.displayedColumns=["checkbox","name","description","expirationAttribute","extend"],this.filterValue="",this.extendMembership=new i.vpe,this.pageSizeOptions=hd}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,t){switch(t){case"name":return e.entity.name;case"description":return"description"in e.entity?e.entity.description:"";case"expirationAttribute":return e?.expirationAttribute?.value??"never";default:return""}}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}ngOnChanges(){this.dataSource=new $o(this.members),this.setDataSource()}exportAllData(e){Na(Ba(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}exportDisplayedData(e){const t=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,r=t+this.dataSource.paginator.pageSize;Na(Ba(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(t,r),this.displayedColumns,n.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>Uo(e,t,this.displayedColumns,n.getDataForColumn),this.dataSource.sortData=(e,t)=>Zl(e,t,n.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}extend(e){this.extendMembership.emit(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-membership-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(ds,7),i.Gf(gs,7)),2&e){let r;i.iGM(r=i.CRH())&&(t.child=r.first),i.iGM(r=i.CRH())&&(t.matSort=r.first)}},inputs:{members:"members",searchString:"searchString",selection:"selection",displayedColumns:"displayedColumns",tableId:"tableId",filterValue:"filterValue"},outputs:{extendMembership:"extendMembership"},features:[i.TTD],decls:21,vars:8,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","tableId","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","expirationAttribute","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","description"],["mat-cell","",4,"matCellDef"],["matColumnDef","expirationAttribute"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","extend"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-cell","","mat-sort-header",""],["color","accent","mat-flat-button","",3,"disabled","click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportDisplayedData",function(l){return t.exportDisplayedData(l)})("exportAllData",function(l){return t.exportAllData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,RN,1,0,"th",4),i.YNc(5,ON,5,12,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,IN,4,5,"th",7),i.YNc(8,BN,2,1,"td",8),i.BQk(),i.ynx(9,9),i.YNc(10,NN,4,5,"th",7),i.YNc(11,VN,2,1,"td",10),i.BQk(),i.ynx(12,11),i.YNc(13,FN,4,5,"th",12),i.YNc(14,zN,3,3,"td",10),i.BQk(),i.ynx(15,13),i.YNc(16,jN,1,0,"th",7),i.YNc(17,qN,6,8,"td",10),i.BQk(),i.YNc(18,YN,1,0,"tr",14),i.YNc(19,WN,1,0,"tr",15),i.qZA()()(),i.YNc(20,UN,4,5,"perun-web-apps-alert",16)),2&e&&(i.Q6J("hidden",!t.dataSource.filteredData.length),i.xp6(1),i.Q6J("dataLength",t.dataSource.filteredData.length)("tableId",t.tableId)("pageSizeOptions",t.pageSizeOptions),i.xp6(1),i.Q6J("dataSource",t.dataSource),i.xp6(16),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns),i.xp6(1),i.Q6J("ngIf",!t.dataSource.filteredData.length))},dependencies:[w.O5,Dt,Mn,eo,hs,to,ps,us,io,fs,ms,no,ro,nc,gs,hg,ds,Qe,Qt,pg,PN]}),n})();function GN(n,a){if(1&n&&(i.TgZ(0,"mat-option",13),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.Q6J("value",e),i.xp6(1),i.hij(" ",e.name," ")}}function $N(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",7)(1,"mat-label"),i._uU(2),i.ALo(3,"translate"),i.qZA(),i._UZ(4,"input",8),i.ALo(5,"translate"),i.ALo(6,"customTranslate"),i.TgZ(7,"mat-autocomplete",9,10),i.NdJ("optionSelected",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.filterByVo(r))}),i.TgZ(9,"mat-option",11),i._uU(10),i.ALo(11,"translate"),i.ALo(12,"customTranslate"),i.qZA(),i.YNc(13,GN,2,2,"mat-option",12),i.ALo(14,"async"),i.qZA()()}if(2&n){const e=i.MAs(8),t=i.oxw();i.xp6(2),i.Oqu(i.lcZ(3,7,"GROUPS.SELECT_VO")),i.xp6(2),i.s9C("placeholder",i.lcZ(5,9,i.lcZ(6,11,"GROUPS.SELECT_VO"))),i.Q6J("formControl",t.myControl)("matAutocomplete",e),i.xp6(3),i.Q6J("displayWith",t.displayFn),i.xp6(3),i.Oqu(i.lcZ(11,13,i.lcZ(12,15,"GROUPS.ALL"))),i.xp6(3),i.Q6J("ngForOf",i.lcZ(14,17,t.filteredVos))}}function ZN(n,a){1&n&&i._UZ(0,"mat-spinner",14)}function JN(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",15),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"GROUPS.NO_GROUPS"))))}const QN=function(){return["name","description","expirationAttribute","extend"]};function XN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"h4",16),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.TgZ(5,"perun-web-apps-membership-list",17),i.NdJ("extendMembership",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.extendMembership(r))}),i.qZA()()}if(2&n){const e=i.oxw();i.xp6(2),i.Oqu(i.lcZ(3,4,i.lcZ(4,6,"GROUPS.MEMBER_GROUPS"))),i.xp6(3),i.Q6J("members",e.userMemberships)("selection",e.selection)("displayedColumns",i.DdM(8,QN))}}const KN=function(){return["name","description"]};function e3(n,a){if(1&n&&(i.TgZ(0,"div",18)(1,"h4",16),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i._UZ(5,"perun-web-apps-membership-list",19),i.qZA()),2&n){const e=i.oxw();i.xp6(2),i.Oqu(i.lcZ(3,3,i.lcZ(4,5,"GROUPS.ADMINS_GROUPS"))),i.xp6(3),i.Q6J("members",e.adminMemberships)("displayedColumns",i.DdM(7,KN))}}let t3=(()=>{class n{constructor(e,t,r,l,c,s){this.usersService=e,this.memberService=t,this.groupService=r,this.store=l,this.vosManagerService=c,this.attributesManagerService=s,this.loading=!1,this.vos=[],this.myControl=new Js,this.selection=new Vn(!1,[]),this.displayedColumns=["id","name"],this.userMemberships=[],this.adminMemberships=[]}ngOnInit(){this.loading=!0,this.userId=this.store.getPerunPrincipal().userId,this.usersService.getVosWhereUserIsMember(this.userId).subscribe(e=>{this.vos=e,this.filteredVos=this.myControl.valueChanges.pipe(Hi(""),(0,At.U)(t=>this._filter(t))),this.getAllGroups()})}getAllGroups(){this.loading=!0;let e=0,t=0;this.userMemberships=[],this.adminMemberships=[];const r=this.store.getPerunPrincipal().roles.SELF.Member;r.length?t=r.length:this.loading=!1,r.forEach(l=>{t--,this.groupService.getMemberGroups(l).subscribe(c=>{e+=c.length,this.loading=0===e&&0!==t,c.forEach(s=>{this.attributesManagerService.getMemberGroupAttributes(l,s.id).subscribe(o=>{e--,this.userMemberships.push({entity:s,expirationAttribute:o.find(d=>"groupMembershipExpiration"===d.friendlyName)}),this.loading=0!==e})})})}),this.usersService.getGroupsWhereUserIsAdmin(this.userId).subscribe(l=>{l.forEach(c=>{this.adminMemberships.push({entity:c,expirationAttribute:null})})})}displayFn(e){return e?e.name:null}filterByVo(e){if("all"===e.option.value)this.getAllGroups();else{this.userMemberships=[],this.adminMemberships=[],this.loading=!0;const t=e.option.value;this.memberService.getMemberByUser(t.id,this.userId).subscribe(r=>{this.groupService.getMemberGroups(r.id).subscribe(l=>{let c=l.length;this.loading=0!==c,l.forEach(s=>{this.attributesManagerService.getMemberGroupAttributes(r.id,s.id).subscribe(o=>{c--,this.userMemberships.push({entity:s,expirationAttribute:o.find(d=>"groupMembershipExpiration"===d.friendlyName)}),this.loading=0!==c})})})}),this.usersService.getGroupsInVoWhereUserIsAdmin(this.userId,t.id).subscribe(r=>{r.forEach(l=>{this.adminMemberships.push({entity:l,expirationAttribute:null})})})}}extendMembership(e){const t=this.store.getProperty("registrar_base_url"),r=e.entity,l=this.vos.find(c=>c.id===r.voId).shortName;window.location.href=`${t}?vo=${l}&group=${e.entity.shortName}`}_filter(e){const t="string"==typeof e?e.toLowerCase():e.name.toLowerCase();return this.vos.filter(r=>r.name.toLowerCase().includes(t))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(ei),i.Y36(Jr),i.Y36(uo),i.Y36(jt),i.Y36(ac),i.Y36(ji))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-groups-page"]],decls:10,vars:10,consts:[[1,"page-title","pt-2"],[1,"user-theme"],["class","mr-2 w-75",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],["alert_type","warn",4,"ngIf"],[4,"ngIf"],["class","mt-5",4,"ngIf"],[1,"mr-2","w-75"],["type","text","aria-label","Assignee","matInput","",3,"placeholder","formControl","matAutocomplete"],[3,"displayWith","optionSelected"],["auto","matAutocomplete"],["value","all"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mr-auto","ml-auto"],["alert_type","warn"],[1,"page-subtitle"],[3,"members","selection","displayedColumns","extendMembership"],[1,"mt-5"],[3,"members","displayedColumns"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div",1),i.YNc(5,$N,15,19,"mat-form-field",2),i.YNc(6,ZN,1,0,"mat-spinner",3),i.YNc(7,JN,4,5,"perun-web-apps-alert",4),i.YNc(8,XN,6,9,"div",5),i.YNc(9,e3,6,8,"div",6),i.qZA()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,6,i.lcZ(3,8,"GROUPS.TITLE"))),i.xp6(4),i.Q6J("ngIf",!t.loading),i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.userMemberships.length&&!t.adminMemberships.length&&!t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading&&0!==t.userMemberships.length),i.xp6(1),i.Q6J("ngIf",!t.loading&&0!==t.adminMemberships.length))},dependencies:[w.sg,w.O5,Mn,hn,Ra,Lo,zn,An,pn,aa,Ei,xN,r2,a2,w.Ov,Qe,Qt]}),n})();function n3(n,a){if(1&n&&(i._UZ(0,"input",3),i.ALo(1,"translate")),2&n){const e=i.oxw();i.s9C("placeholder",i.lcZ(1,2,e.placeholder)),i.Q6J("formControl",e.formControl)}}function r3(n,a){if(1&n&&(i._UZ(0,"input",4),i.ALo(1,"translate")),2&n){const e=i.oxw();i.s9C("placeholder",i.lcZ(1,2,e.placeholder)),i.Q6J("formControl",e.formControl)}}let lf=(()=>{class n{constructor(){this.filter=new i.vpe,this.autoFocus=!1,this.formControl=new Js}ngOnInit(){this.formControl.valueChanges.subscribe(e=>{let t=e.trim();t=t.toLowerCase(),this.filter.emit(t)})}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-immediate-filter"]],inputs:{placeholder:"placeholder",autoFocus:"autoFocus"},outputs:{filter:"filter"},decls:3,vars:2,consts:[[1,"filter-field","mr-2"],["matInput","","perunWebAppsAutoFocus","","data-cy","auto-focused-filter",3,"formControl","placeholder",4,"ngIf"],["matInput","","data-cy","unfocused-filter",3,"formControl","placeholder",4,"ngIf"],["matInput","","perunWebAppsAutoFocus","","data-cy","auto-focused-filter",3,"formControl","placeholder"],["matInput","","data-cy","unfocused-filter",3,"formControl","placeholder"]],template:function(e,t){1&e&&(i.TgZ(0,"mat-form-field",0),i.YNc(1,n3,2,4,"input",1),i.YNc(2,r3,2,4,"input",2),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngIf",t.autoFocus),i.xp6(1),i.Q6J("ngIf",!t.autoFocus))},dependencies:[w.O5,An,pn,hn,aa,zn,DO,Qe],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:0!important;min-width:initial!important}"]}),n})();function a3(n,a){1&n&&(i.TgZ(0,"mat-icon",1),i.ALo(1,"translate"),i._uU(2," visibility\n"),i.qZA()),2&n&&i.s9C("matTooltip",i.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.RECENTLY_VIEWED_ICON.RECENT"))}let s3=(()=>{class n{constructor(){this.recentIds=[]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-recently-viewed-icon"]],inputs:{recentIds:"recentIds",id:"id"},decls:1,vars:1,consts:[["class","align-bottom disabled-icon",3,"matTooltip",4,"ngIf"],[1,"align-bottom","disabled-icon",3,"matTooltip"]],template:function(e,t){1&e&&i.YNc(0,a3,3,3,"mat-icon",0),2&e&&i.Q6J("ngIf",t.recentIds.indexOf(t.id)>-1)},dependencies:[w.O5,Ji,gr,Qe],styles:[".disabled-icon[_ngcontent-%COMP%]{color:#00000042}"]}),n})();function o3(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"span",3),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.changeStatus())}),i.ALo(1,"translate"),i.TgZ(2,"mat-icon",4),i._uU(3,"check_circle_outline"),i.qZA()()}if(2&n){const e=i.oxw();i.s9C("matTooltip",i.lcZ(1,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.ACTIVE")),i.Q2q("data-cy","",e.groupName,"-active")}}function l3(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"span",3),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.changeStatus())}),i.ALo(1,"translate"),i.TgZ(2,"mat-icon",5),i._uU(3,"block"),i.qZA()()}if(2&n){const e=i.oxw();i.s9C("matTooltip",i.lcZ(1,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.INACTIVE")),i.Q2q("data-cy","",e.groupName,"-inactive")}}function c3(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"span",3),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.changeStatus())}),i.ALo(1,"translate"),i.TgZ(2,"mat-icon",6),i._uU(3,"report"),i.qZA()()}if(2&n){const e=i.oxw();i.hYB("matTooltip","",i.lcZ(1,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.FAILED"),": ",e.failureCause,"")}}function d3(n,a){1&n&&(i.TgZ(0,"span",7),i.ALo(1,"translate"),i.TgZ(2,"mat-icon",8),i._uU(3,"autorenew"),i.qZA()()),2&n&&i.s9C("matTooltip",i.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.PROCESSING"))}let u3=(()=>{class n{constructor(e){this.dialog=e,this.status="",this.groupName="",this.statusChange=new i.vpe}changeStatus(){const e=ri();e.width="500px",e.data={theme:this.theme,status:this.status,groupId:this.groupId,resourceId:this.resourceId},this.dialog.open(Jk,e).afterClosed().subscribe(r=>{r&&this.statusChange.emit()})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Fi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-group-resource-status"]],inputs:{status:"status",groupId:"groupId",groupName:"groupName",resourceId:"resourceId",theme:"theme",failureCause:"failureCause"},outputs:{statusChange:"statusChange"},decls:5,vars:4,consts:[[1,"flex-container"],["matTooltipPosition","above",3,"matTooltip","click",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip","click"],[1,"green"],[1,"grey"],[1,"red"],["matTooltipPosition","above",3,"matTooltip"],[1,"black"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.YNc(1,o3,4,4,"span",1),i.YNc(2,l3,4,4,"span",1),i.YNc(3,c3,4,4,"span",1),i.YNc(4,d3,4,3,"span",2),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngIf","ACTIVE"===t.status),i.xp6(1),i.Q6J("ngIf","INACTIVE"===t.status),i.xp6(1),i.Q6J("ngIf","FAILED"===t.status),i.xp6(1),i.Q6J("ngIf","PROCESSING"===t.status))},dependencies:[w.O5,Ji,gr,Qe]}),n})(),h3=(()=>{class n{transform(e){if(null==e)return null;let r="";return e.forEach(function(l){r=r.concat(l.tagName)}),r}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"resourceTagsToString",type:n,pure:!0}),n})(),p3=(()=>{class n{transform(e,t){return t?`/organizations/${e.voId}/resources/${e.id}`:`/facilities/${e.facilityId}/resources/${e.id}`}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"getResourceRoute",type:n,pure:!0}),n})(),TT=(()=>{class n{constructor(e){this.tableCheckboxService=e}transform(e,t,r){return 0!==t&&(function HL(n){return"allObjectCount"in n}(e)?t===e.getData().length:function f3(n){return"_count"in n}(e)?this.tableCheckboxService.isAllSelectedPaginated(e,t,r):this.tableCheckboxService.isAllSelected(t,e,r))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(bA,16))},n.\u0275pipe=i.Yjl({name:"isAllSelected",type:n,pure:!0}),n})(),s2=(()=>{class n{transform(e){const t="SHARED_LIB.PERUN.CHECKBOX_LABEL.";return e?t+"DESELECT_ALL":t+"SELECT_ALL"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"masterCheckboxLabel",type:n,pure:!0}),n})();function m3(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-checkbox",27),i.NdJ("change",function(r){i.CHM(e);const l=i.oxw(3);return i.KtG(r?l.masterToggle():null)}),i.ALo(1,"translate"),i.ALo(2,"masterCheckboxLabel"),i.qZA()}if(2&n){const e=i.oxw(2).ngIf,t=i.oxw();i.Q6J("aria-label",i.lcZ(1,3,i.lcZ(2,5,e.all)))("checked",t.selection.hasValue()&&e.all)("indeterminate",t.selection.hasValue()&&!e.all)}}function g3(n,a){if(1&n&&(i.TgZ(0,"th",25),i.YNc(1,m3,3,7,"mat-checkbox",26),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Q6J("ngIf",e.selection.isMultipleSelection())}}const _3=function(n){return{name:n}};function b3(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",28)(1,"span",29),i.ALo(2,"translate"),i.TgZ(3,"mat-checkbox",30),i.NdJ("change",function(r){const c=i.CHM(e).$implicit,s=i.oxw(2);return i.KtG(r?s.itemSelectionToggle(c):null)})("click",function(r){return r.stopPropagation()}),i.ALo(4,"translate"),i.ALo(5,"checkboxLabel"),i.qZA()()()}if(2&n){const e=a.$implicit,t=i.oxw(2);i.xp6(1),i.s9C("matTooltip",i.lcZ(2,7,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.INDIRECT_RESOURCE")),i.Q6J("matTooltipPosition","above")("matTooltipDisabled",!t.disableSelect(e)),i.xp6(2),i.Q2q("data-cy","",e.name,"-checkbox"),i.Q6J("aria-label",i.xi3(4,9,i.lcZ(5,12,t.selection.isSelected(e)),i.VKq(14,_3,e.name)))("checked",t.selection.isSelected(e))("disabled",t.disableSelect(e))}}function A3(n,a){1&n&&(i.ynx(0,22),i.YNc(1,g3,2,1,"th",23),i.YNc(2,b3,6,16,"td",24),i.BQk())}function y3(n,a){1&n&&(i.TgZ(0,"th",31),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_ID")," "))}function M3(n,a){if(1&n&&(i.TgZ(0,"td",32),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.id)}}function w3(n,a){1&n&&i._UZ(0,"th",33)}function C3(n,a){if(1&n&&(i.TgZ(0,"td",34),i._UZ(1,"perun-web-apps-recently-viewed-icon",35),i.qZA()),2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Q6J("recentIds",t.recentIds)("id",e.id)}}function v3(n,a){1&n&&i._UZ(0,"th",33)}function T3(n,a){1&n&&(i.TgZ(0,"mat-icon",37),i.ALo(1,"translate"),i._uU(2,"account_tree"),i.qZA()),2&n&&i.Q6J("matTooltip",i.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.INDIRECT_RESOURCE"))}function x3(n,a){if(1&n&&(i.TgZ(0,"td",34),i.YNc(1,T3,3,3,"mat-icon",36),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Q6J("ngIf",e.sourceGroupId)}}function S3(n,a){1&n&&(i.TgZ(0,"th",31),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_NAME")," "))}function E3(n,a){if(1&n&&(i.TgZ(0,"td",34),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.uIk("data-cy",e.name),i.xp6(1),i.hij(" ",e.name," ")}}function D3(n,a){1&n&&(i.TgZ(0,"th",31),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_VO_NAME")," "))}function H3(n,a){if(1&n&&(i.TgZ(0,"td",34),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.vo.name)}}function L3(n,a){1&n&&(i.TgZ(0,"th",31),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_VO_ID")," "))}function P3(n,a){if(1&n&&(i.TgZ(0,"td",34),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.voId)}}function R3(n,a){1&n&&(i.TgZ(0,"th",31),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_GROUP_RESOURCE_STATUS")," "))}function k3(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",34)(1,"perun-web-apps-group-resource-status",38),i.NdJ("mouseenter",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.disabledRouting=!0)})("mouseleave",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.disabledRouting=r.disableRouting)})("statusChange",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.refreshTable.emit())}),i.qZA()()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Q6J("theme","group-theme")("resourceId",e.id)("groupId",t.groupId)("failureCause",e.failureCause)("status",e.status)}}function O3(n,a){1&n&&(i.TgZ(0,"th",31),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_FACILITY_NAME")," "))}function I3(n,a){if(1&n&&(i.TgZ(0,"td",34),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.facility.name)}}function B3(n,a){1&n&&(i.TgZ(0,"th",31),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_FACILITY_ID")," "))}function N3(n,a){if(1&n&&(i.TgZ(0,"td",34),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.facilityId)}}function V3(n,a){1&n&&(i.TgZ(0,"th",31),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_TAGS")," "))}function F3(n,a){if(1&n&&(i.TgZ(0,"td",34),i._uU(1),i.ALo(2,"resourceTagsToString"),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",i.lcZ(2,1,e.resourceTags)," ")}}function z3(n,a){1&n&&(i.TgZ(0,"th",31),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_DESCRIPTION")," "))}function j3(n,a){if(1&n&&(i.TgZ(0,"td",34),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.description)}}function q3(n,a){1&n&&i._UZ(0,"tr",39)}const Y3=function(n){return[n]};function W3(n,a){if(1&n&&(i._UZ(0,"tr",40),i.ALo(1,"getResourceRoute"),i.ALo(2,"getResourceRoute")),2&n){const e=a.$implicit,t=i.oxw();i.ekj("cursor-pointer",!t.disableRouting)("disable-outline",t.disabledRouting),i.Q6J("perunWebAppsMiddleClickRouterLink",i.VKq(12,Y3,t.disabledRouting?null:i.xi3(1,6,e,t.routingVo)))("routerLink",t.disabledRouting?null:i.xi3(2,9,e,t.routingVo))}}function U3(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",41),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function G3(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",41),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.NO_RESOURCES_WARNING"),"\n"))}const $3=function(n){return{all:n}};let Z3=(()=>{class n{constructor(e,t){this.guiAuthResolver=e,this.tableCheckbox=t,this.resources=[],this.selection=new Vn(!0,[]),this.disableRouting=!1,this.routingVo=!1,this.displayedColumns=["select","id","recent","indirectResourceAssigment","name","vo","voId","status","facility","facilityId","tags","description"],this.pageSizeOptions=hd,this.groupId=null,this.resourcesToDisableCheckbox=new Set,this.refreshTable=new i.vpe,this.allSelected=new i.vpe,this.removeAuth=!1,this.addAuth=!1,this.getDataForColumnFun=(r,l)=>n.getDataForColumn(r,l,this.recentIds),this.canBeSelected=r=>!this.disableSelect(r)}set matSort(e){this.sort=e}static getDataForColumn(e,t,r){switch(t){case"id":return e.id.toString();case"vo":return e.vo.name;case"name":return e.name;case"facility":return e.facility.name;case"description":return e.description;case"recent":return r&&r.includes(e.id)?"#".repeat(r.indexOf(e.id)):e.name;case"tags":{if(!e.resourceTags)return e[t];let c="";return e.resourceTags.forEach(function(s){c=c.concat(s.tagName)}),c}case"status":return e.status;case"uuid":return e.uuid;default:return e[t]}}ngOnInit(){this.disabledRouting=this.disableRouting}ngOnChanges(){this.guiAuthResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"id"!==e)),this.setDataSource(),this.setAuth()}exportAllData(e){Na(Ba(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumnFun),e)}exportDisplayedData(e){const t=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,r=t+this.dataSource.paginator.pageSize;Na(Ba(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(t,r),this.displayedColumns,this.getDataForColumnFun),e)}setDataSource(){this.dataSource||(this.dataSource=new $o,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(e,t)=>Uo(e,t,this.displayedColumns,this.getDataForColumnFun,!0),this.dataSource.sortData=(e,t)=>Zl(e,t,this.getDataForColumnFun)),this.dataSource.filter=this.filterValue,this.dataSource.data=this.resources}isAllSelected(){const e=this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource,this.canBeSelected);return this.allSelected.emit(e),e}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!0,this.canBeSelected),this.setAuth()}setAuth(){const e=this.groupToResource?[this.groupToResource]:[];this.removeAuth=this.selection.selected.reduce((t,r)=>t&&this.guiAuthResolver.isAuthorized("removeGroupFromResources_Group_List_policy",e.concat([r])),!0),this.addAuth=this.selection.selected.reduce((t,r)=>t&&this.guiAuthResolver.isAuthorized("assignGroupToResources_Group_List_policy",e.concat([r])),!0)}itemSelectionToggle(e){this.selection.toggle(e),this.setAuth()}disableSelect(e){return this.resourcesToDisableCheckbox.has(e.id)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(tn),i.Y36(bA))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-resources-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(ds,7),i.Gf(gs,7)),2&e){let r;i.iGM(r=i.CRH())&&(t.child=r.first),i.iGM(r=i.CRH())&&(t.matSort=r.first)}},inputs:{resources:"resources",selection:"selection",filterValue:"filterValue",disableRouting:"disableRouting",routingVo:"routingVo",displayedColumns:"displayedColumns",groupToResource:"groupToResource",pageSizeOptions:"pageSizeOptions",recentIds:"recentIds",groupId:"groupId",resourcesToDisableCheckbox:"resourcesToDisableCheckbox",tableId:"tableId"},outputs:{refreshTable:"refreshTable",allSelected:"allSelected"},features:[i.TTD],decls:42,vars:16,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","tableId","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size",4,"matCellDef"],["matColumnDef","recent"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","indirectResourceAssigment"],["matColumnDef","name"],["matColumnDef","vo"],["matColumnDef","voId"],["matColumnDef","status"],["matColumnDef","facility"],["matColumnDef","facilityId"],["matColumnDef","tags"],["matColumnDef","description"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change",4,"ngIf"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],[3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-header-cell",""],["mat-cell",""],[3,"recentIds","id"],["matTooltipPosition","above",3,"matTooltip",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip"],[3,"theme","resourceId","groupId","failureCause","status","mouseenter","mouseleave","statusChange"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportDisplayedData",function(l){return t.exportDisplayedData(l)})("exportAllData",function(l){return t.exportAllData(l)}),i.TgZ(2,"table",2),i.YNc(3,A3,3,0,"ng-container",3),i.ALo(4,"isAllSelected"),i.ynx(5,4),i.YNc(6,y3,3,3,"th",5),i.YNc(7,M3,2,1,"td",6),i.BQk(),i.ynx(8,7),i.YNc(9,w3,1,0,"th",8),i.YNc(10,C3,2,2,"td",9),i.BQk(),i.ynx(11,10),i.YNc(12,v3,1,0,"th",8),i.YNc(13,x3,2,1,"td",9),i.BQk(),i.ynx(14,11),i.YNc(15,S3,3,3,"th",5),i.YNc(16,E3,2,2,"td",9),i.BQk(),i.ynx(17,12),i.YNc(18,D3,3,3,"th",5),i.YNc(19,H3,2,1,"td",9),i.BQk(),i.ynx(20,13),i.YNc(21,L3,3,3,"th",5),i.YNc(22,P3,2,1,"td",9),i.BQk(),i.ynx(23,14),i.YNc(24,R3,3,3,"th",5),i.YNc(25,k3,2,5,"td",9),i.BQk(),i.ynx(26,15),i.YNc(27,O3,3,3,"th",5),i.YNc(28,I3,2,1,"td",9),i.BQk(),i.ynx(29,16),i.YNc(30,B3,3,3,"th",5),i.YNc(31,N3,2,1,"td",9),i.BQk(),i.ynx(32,17),i.YNc(33,V3,3,3,"th",5),i.YNc(34,F3,3,3,"td",9),i.BQk(),i.ynx(35,18),i.YNc(36,z3,3,3,"th",5),i.YNc(37,j3,2,1,"td",9),i.BQk(),i.YNc(38,q3,1,0,"tr",19),i.YNc(39,W3,3,14,"tr",20),i.qZA()()(),i.YNc(40,U3,3,3,"perun-web-apps-alert",21),i.YNc(41,G3,3,3,"perun-web-apps-alert",21)),2&e&&(i.Q6J("hidden",0===t.dataSource.filteredData.length||0===t.resources.length),i.xp6(1),i.Q6J("dataLength",t.dataSource.filteredData.length)("tableId",t.tableId)("pageSizeOptions",t.pageSizeOptions),i.xp6(1),i.Q6J("dataSource",t.dataSource),i.xp6(1),i.Q6J("ngIf",i.VKq(14,$3,i.Dn7(4,10,t.dataSource,t.selection.selected.length,t.canBeSelected))),i.xp6(35),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns),i.xp6(1),i.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.resources.length),i.xp6(1),i.Q6J("ngIf",0===t.resources.length))},dependencies:[w.O5,nc,eo,hs,to,ps,us,io,fs,ms,no,ro,Qa,gs,hg,Mn,Ji,gr,ds,hD,s3,u3,NA,Qe,h3,p3,TT,pg,s2],styles:["table[_ngcontent-%COMP%]{width:100%!important}.mat-cell[_ngcontent-%COMP%]{padding:8px 8px 8px 0}.mat-column-select[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:50px!important}.mat-column-id[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:60px!important}.filter-input[_ngcontent-%COMP%]{width:300px!important}.disable-outline[_ngcontent-%COMP%]{outline:none!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:.25rem!important}"]}),n})(),J3=0;const xT=new i.OlP("CdkAccordion");let Q3=(()=>{class n{constructor(){this._stateChanges=new Ee.x,this._openCloseAllActions=new Ee.x,this.id="cdk-accordion-"+J3++,this._multi=!1}get multi(){return this._multi}set multi(e){this._multi=Fe(e)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(e){this._stateChanges.next(e)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[i._Bn([{provide:xT,useExisting:n}]),i.TTD]}),n})(),X3=0,K3=(()=>{class n{constructor(e,t,r){this.accordion=e,this._changeDetectorRef=t,this._expansionDispatcher=r,this._openCloseAllSubscription=li.w0.EMPTY,this.closed=new i.vpe,this.opened=new i.vpe,this.destroyed=new i.vpe,this.expandedChange=new i.vpe,this.id="cdk-accordion-child-"+X3++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=r.listen((l,c)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===c&&this.id!==l&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(e){e=Fe(e),this._expanded!==e&&(this._expanded=e,this.expandedChange.emit(e),e?(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(e){this._disabled=Fe(e)}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(e=>{this.disabled||(this.expanded=e)})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(xT,12),i.Y36(i.sBO),i.Y36(S0))},n.\u0275dir=i.lG2({type:n,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[i._Bn([{provide:xT,useValue:void 0}])]}),n})(),eV=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();const tV=["body"];function iV(n,a){}const nV=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],rV=["mat-expansion-panel-header","*","mat-action-row"];function aV(n,a){if(1&n&&i._UZ(0,"span",2),2&n){const e=i.oxw();i.Q6J("@indicatorRotate",e._getExpandedState())}}const sV=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],oV=["mat-panel-title","mat-panel-description","*"],ST=new i.OlP("MAT_ACCORDION"),o2="225ms cubic-bezier(0.4,0.0,0.2,1)",l2={indicatorRotate:yi("indicatorRotate",[It("collapsed, void",Le({transform:"rotate(0deg)"})),It("expanded",Le({transform:"rotate(180deg)"})),Rt("expanded <=> collapsed, void => collapsed",Ht(o2))]),bodyExpansion:yi("bodyExpansion",[It("collapsed, void",Le({height:"0px",visibility:"hidden"})),It("expanded",Le({height:"*",visibility:"visible"})),Rt("expanded <=> collapsed, void => collapsed",Ht(o2))])},c2=new i.OlP("MAT_EXPANSION_PANEL");let fg=(()=>{class n{constructor(e,t){this._template=e,this._expansionPanel=t}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc),i.Y36(c2,8))},n.\u0275dir=i.lG2({type:n,selectors:[["ng-template","matExpansionPanelContent",""]]}),n})(),lV=0;const d2=new i.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let mg=(()=>{class n extends K3{constructor(e,t,r,l,c,s,o){super(e,t,r),this._viewContainerRef=l,this._animationMode=s,this._hideToggle=!1,this.afterExpand=new i.vpe,this.afterCollapse=new i.vpe,this._inputChanges=new Ee.x,this._headerId="mat-expansion-panel-header-"+lV++,this._bodyAnimationDone=new Ee.x,this.accordion=e,this._document=c,this._bodyAnimationDone.pipe(Xd((d,u)=>d.fromState===u.fromState&&d.toState===u.toState)).subscribe(d=>{"void"!==d.fromState&&("expanded"===d.toState?this.afterExpand.emit():"collapsed"===d.toState&&this.afterCollapse.emit())}),o&&(this.hideToggle=o.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(e){this._hideToggle=Fe(e)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(e){this._togglePosition=e}_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._lazyContent._expansionPanel===this&&this.opened.pipe(Hi(null),(0,ye.h)(()=>this.expanded&&!this._portal),(0,ct.q)(1)).subscribe(()=>{this._portal=new Ha(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(e){this._inputChanges.next(e)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const e=this._document.activeElement,t=this._body.nativeElement;return e===t||t.contains(e)}return!1}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(ST,12),i.Y36(i.sBO),i.Y36(S0),i.Y36(i.s_b),i.Y36(w.K0),i.Y36(i.QbO,8),i.Y36(d2,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-expansion-panel"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,fg,5),2&e){let l;i.iGM(l=i.CRH())&&(t._lazyContent=l.first)}},viewQuery:function(e,t){if(1&e&&i.Gf(tV,5),2&e){let r;i.iGM(r=i.CRH())&&(t._body=r.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(e,t){2&e&&i.ekj("mat-expanded",t.expanded)("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-expansion-panel-spacing",t._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[i._Bn([{provide:ST,useValue:void 0},{provide:c2,useExisting:n}]),i.qOj,i.TTD],ngContentSelectors:rV,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(e,t){1&e&&(i.F$t(nV),i.Hsn(0),i.TgZ(1,"div",0,1),i.NdJ("@bodyExpansion.done",function(l){return t._bodyAnimationDone.next(l)}),i.TgZ(3,"div",2),i.Hsn(4,1),i.YNc(5,iV,0,0,"ng-template",3),i.qZA(),i.Hsn(6,2),i.qZA()),2&e&&(i.xp6(1),i.Q6J("@bodyExpansion",t._getExpandedState())("id",t.id),i.uIk("aria-labelledby",t._headerId),i.xp6(4),i.Q6J("cdkPortalOutlet",t._portal))},dependencies:[Au],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-content[style*="visibility: hidden"] *{visibility:hidden !important}.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 .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[l2.bodyExpansion]},changeDetection:0}),n})();class cV{}const dV=kl(cV);let gg=(()=>{class n extends dV{constructor(e,t,r,l,c,s,o){super(),this.panel=e,this._element=t,this._focusMonitor=r,this._changeDetectorRef=l,this._animationMode=s,this._parentChangeSubscription=li.w0.EMPTY;const d=e.accordion?e.accordion._stateChanges.pipe((0,ye.h)(u=>!(!u.hideToggle&&!u.togglePosition))):$i.E;this.tabIndex=parseInt(o||"")||0,this._parentChangeSubscription=(0,Li.T)(e.opened,e.closed,d,e._inputChanges.pipe((0,ye.h)(u=>!!(u.hideToggle||u.disabled||u.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe((0,ye.h)(()=>e._containsFocus())).subscribe(()=>r.focusVia(t,"program")),c&&(this.expandedHeight=c.expandedHeight,this.collapsedHeight=c.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 e=this._isExpanded();return e&&this.expandedHeight?this.expandedHeight:!e&&this.collapsedHeight?this.collapsedHeight:null}_keydown(e){switch(e.keyCode){case 32:case 13:Bn(e)||(e.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e))}}focus(e,t){e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(e=>{e&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(mg,1),i.Y36(i.SBq),i.Y36(ur),i.Y36(i.sBO),i.Y36(d2,8),i.Y36(i.QbO,8),i.$8M("tabindex"))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(e,t){1&e&&i.NdJ("click",function(){return t._toggle()})("keydown",function(l){return t._keydown(l)}),2&e&&(i.uIk("id",t.panel._headerId)("tabindex",t.tabIndex)("aria-controls",t._getPanelId())("aria-expanded",t._isExpanded())("aria-disabled",t.panel.disabled),i.Udp("height",t._getHeaderHeight()),i.ekj("mat-expanded",t._isExpanded())("mat-expansion-toggle-indicator-after","after"===t._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===t._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===t._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[i.qOj],ngContentSelectors:oV,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(e,t){1&e&&(i.F$t(sV),i.TgZ(0,"span",0),i.Hsn(1),i.Hsn(2,1),i.Hsn(3,2),i.qZA(),i.YNc(4,aV,1,1,"span",1)),2&e&&(i.xp6(4),i.Q6J("ngIf",t._showToggle()))},dependencies:[w.O5],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;align-items:center}[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}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[l2.indicatorRotate]},changeDetection:0}),n})(),GA=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),n})(),$A=(()=>{class n extends Q3{constructor(){super(...arguments),this._ownHeaders=new i.n_E,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(e){this._hideToggle=Fe(e)}ngAfterContentInit(){this._headers.changes.pipe(Hi(this._headers)).subscribe(e=>{this._ownHeaders.reset(e.filter(t=>t.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new Yh(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(e){this._keyManager.onKeydown(e)}_handleHeaderFocus(e){this._keyManager.updateActiveItem(e)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["mat-accordion"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,gg,5),2&e){let l;i.iGM(l=i.CRH())&&(t._headers=l)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("mat-accordion-multi",t.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[i._Bn([{provide:ST,useExisting:n}]),i.qOj]}),n})(),ET=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[w.ez,_t,eV,Us]}),n})();function uV(n,a){1&n&&i._UZ(0,"mat-spinner",8)}const hV=function(){return["name","description"]};function pV(n,a){if(1&n&&i._UZ(0,"perun-web-apps-resources-list",9),2&n){const e=i.oxw(3);i.Q6J("resources",e.resources)("displayedColumns",i.DdM(3,hV))("disableRouting",!0)}}function fV(n,a){if(1&n&&(i.YNc(0,uV,1,0,"mat-spinner",6),i.YNc(1,pV,1,4,"perun-web-apps-resources-list",7)),2&n){const e=i.oxw(2);i.Q6J("ngIf",e.loading),i.xp6(1),i.Q6J("ngIf",!e.loading)}}function mV(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-expansion-panel",4),i.NdJ("opened",function(){const l=i.CHM(e).$implicit,c=i.oxw();return i.KtG(c.getMemberData(l))}),i.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),i._uU(3),i.qZA()(),i.YNc(4,fV,2,2,"ng-template",5),i.qZA()}if(2&n){const e=a.$implicit;i.xp6(3),i.hij(" ",e.name," ")}}let gV=(()=>{class n{constructor(e,t,r,l){this.usersManagerService=e,this.membersManagerService=t,this.resourcesManagerService=r,this.storage=l,this.resources=[],this.filteredVos=[]}ngOnInit(){this.userId=this.storage.getPerunPrincipal().userId,this.usersManagerService.getVosWhereUserIsMember(this.userId).subscribe(e=>{this.vos=e,this.filteredVos=e})}getMemberData(e){this.loading=!0,this.membersManagerService.getMemberByUser(e.id,this.userId).subscribe(t=>{this.resourcesManagerService.getAssignedRichResourcesWithMember(t.id).subscribe(r=>{this.resources=r,this.loading=!1})})}applyFilter(e){this.filteredVos=this.vos.filter(t=>t.name.toLowerCase().includes(e.toLowerCase()))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(ei),i.Y36(Jr),i.Y36(Qr),i.Y36(jt))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-services-page"]],decls:10,vars:11,consts:[[1,"page-title","mt-2"],[1,"user-theme"],[3,"placeholder","filter"],[3,"opened",4,"ngFor","ngForOf"],[3,"opened"],["matExpansionPanelContent",""],["class","ml-auto mr-auto",4,"ngIf"],[3,"resources","displayedColumns","disableRouting",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"resources","displayedColumns","disableRouting"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div",1)(5,"perun-web-apps-immediate-filter",2),i.NdJ("filter",function(l){return t.applyFilter(l)}),i.ALo(6,"translate"),i.ALo(7,"customTranslate"),i.qZA(),i.TgZ(8,"mat-accordion"),i.YNc(9,mV,5,1,"mat-expansion-panel",3),i.qZA()()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,3,i.lcZ(3,5,"SERVICES.TITLE"))),i.xp6(4),i.Q6J("placeholder",i.lcZ(6,7,i.lcZ(7,9,"SERVICES.FILTER"))),i.xp6(4),i.Q6J("ngForOf",t.filteredVos))},dependencies:[w.sg,w.O5,lf,Z3,$A,mg,gg,GA,fg,Ei,Qe,Qt]}),n})();function _V(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-immediate-filter",5),i.NdJ("filter",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.applyFilter(r))}),i.qZA()}2&n&&i.Q6J("placeholder","ORGANIZATIONS.FILTER")}function bV(n,a){1&n&&i._UZ(0,"mat-spinner",6)}const AV=function(){return["name","expirationAttribute","extend"]};function yV(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"perun-web-apps-membership-list",11),i.NdJ("extendMembership",function(r){i.CHM(e);const l=i.oxw(2);return i.KtG(l.extendMembership(r))}),i.qZA()()}if(2&n){const e=i.oxw(2);i.xp6(1),i.Q6J("members",e.userMemberships)("selection",e.selection)("filterValue",e.filterValue)("displayedColumns",i.DdM(4,AV))}}function MV(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",12),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"ORGANIZATIONS.NO_VOS_ALERT"))))}function wV(n,a){if(1&n&&(i.TgZ(0,"div",7)(1,"h1",8),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.YNc(5,yV,2,5,"div",9),i.YNc(6,MV,4,5,"perun-web-apps-alert",10),i.qZA()),2&n){const e=i.oxw();i.xp6(2),i.Oqu(i.lcZ(3,3,i.lcZ(4,5,"ORGANIZATIONS.IS_MEMBER"))),i.xp6(3),i.Q6J("ngIf",0!==e.userMemberships.length),i.xp6(1),i.Q6J("ngIf",0===e.userMemberships.length)}}function CV(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",12),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"ORGANIZATIONS.NO_VOS_ALERT"))))}const vV=function(){return["name"]};function TV(n,a){if(1&n&&i._UZ(0,"perun-web-apps-membership-list",14),2&n){const e=i.oxw(2);i.Q6J("members",e.adminMemberships)("filterValue",e.filterValue)("displayedColumns",i.DdM(3,vV))}}function xV(n,a){if(1&n&&(i.TgZ(0,"div",7)(1,"h1",8),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.YNc(5,CV,4,5,"perun-web-apps-alert",10),i.YNc(6,TV,1,4,"perun-web-apps-membership-list",13),i.qZA()),2&n){const e=i.oxw();i.xp6(2),i.Oqu(i.lcZ(3,3,i.lcZ(4,5,"ORGANIZATIONS.IS_ADMIN"))),i.xp6(3),i.Q6J("ngIf",!e.adminMemberships.length),i.xp6(1),i.Q6J("ngIf",e.adminMemberships.length)}}let SV=(()=>{class n{constructor(e,t,r){this.usersService=e,this.store=t,this.membersService=r,this.filterValue="",this.selection=new Vn(!1,[]),this.userMemberships=[],this.adminMemberships=[],this.vosCount=0}ngOnInit(){this.principal=this.store.getPerunPrincipal(),this.userId=this.principal.user.id,this.refreshTable()}refreshTable(){this.loading=!0,this.usersService.getVosWhereUserIsMember(this.userId).subscribe(e=>{this.usersService.getVosWhereUserIsAdmin(this.userId).subscribe(t=>{this.vosCount=e.length+t.length,this.fillMemberships(e,this.userMemberships),this.fillMemberships(t,this.adminMemberships)})})}applyFilter(e){this.filterValue=e}isEverythingLoaded(){this.vosCount--,this.loading=0!==this.vosCount}extendMembership(e){const t=this.store.getProperty("registrar_base_url");window.location.href=`${t}?vo=${e.entity.shortName}`}fillMemberships(e,t){this.membersService.getMembersByUser(this.userId).subscribe(r=>{e.forEach(l=>{const c=r.find(s=>s.voId===l.id);c?this.membersService.getRichMemberWithAttributes(c.id).subscribe(s=>{const o=s.memberAttributes.find(d=>"membershipExpiration"===d.friendlyName);t.push({entity:l,expirationAttribute:o}),this.isEverythingLoaded()}):(t.push({entity:l,expirationAttribute:null}),this.isEverythingLoaded())})})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(ei),i.Y36(jt),i.Y36(Jr))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-vos-page"]],decls:9,vars:9,consts:[[1,"page-title","mt-2"],[1,"user-theme"],[3,"placeholder","filter",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],["class","mt-5",4,"ngIf"],[3,"placeholder","filter"],[1,"mr-auto","ml-auto"],[1,"mt-5"],[1,"page-subtitle"],[4,"ngIf"],["alert_type","warn",4,"ngIf"],[3,"members","selection","filterValue","displayedColumns","extendMembership"],["alert_type","warn"],[3,"members","filterValue","displayedColumns",4,"ngIf"],[3,"members","filterValue","displayedColumns"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div",1),i.YNc(5,_V,1,1,"perun-web-apps-immediate-filter",2),i.YNc(6,bV,1,0,"mat-spinner",3),i.YNc(7,wV,7,7,"div",4),i.YNc(8,xV,7,7,"div",4),i.qZA()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,5,i.lcZ(3,7,"ORGANIZATIONS.TITLE"))),i.xp6(4),i.Q6J("ngIf",!t.loading),i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},dependencies:[w.O5,lf,Mn,Ei,a2,Qe,Qt]}),n})(),EV=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-settings-page"]],decls:2,vars:0,consts:[[1,"user-theme"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i._UZ(1,"router-outlet"),i.qZA())},dependencies:[Ma]}),n})(),DV=(()=>{class n{constructor(e,t){this.dialogRef=e,this.data=t,this.password=""}ngOnInit(){this.password=this.data.password}onClose(){this.dialogRef.close()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(xi),i.Y36(fn))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-show-generated-password-dialog"]],decls:20,vars:22,consts:[["mat-dialog-title","",1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"user-theme"],["disabled","",1,"center-text",3,"value"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"cdkCopyToClipboard"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div",1)(5,"p"),i._uU(6),i.ALo(7,"translate"),i.ALo(8,"customTranslate"),i.qZA(),i.TgZ(9,"label"),i._UZ(10,"input",2),i.qZA()(),i.TgZ(11,"div",3)(12,"button",4),i.NdJ("click",function(){return t.onClose()}),i._uU(13),i.ALo(14,"translate"),i.ALo(15,"customTranslate"),i.qZA(),i.TgZ(16,"button",5),i._uU(17),i.ALo(18,"translate"),i.ALo(19,"customTranslate"),i.qZA()()),2&e&&(i.xp6(1),i.hij(" ",i.lcZ(2,6,i.lcZ(3,8,"DIALOGS.SHOW_PASSWORD.TITLE")),"\n"),i.xp6(5),i.Oqu(i.lcZ(7,10,i.lcZ(8,12,"DIALOGS.SHOW_PASSWORD.LABEL"))),i.xp6(4),i.Q6J("value",t.password),i.xp6(3),i.hij(" ",i.lcZ(14,14,i.lcZ(15,16,"DIALOGS.SHOW_PASSWORD.CLOSE"))," "),i.xp6(3),i.Q6J("cdkCopyToClipboard",t.password),i.xp6(1),i.hij(" ",i.lcZ(18,18,i.lcZ(19,20,"DIALOGS.SHOW_PASSWORD.COPY"))," "))},dependencies:[Dt,Qi,sn,Wi,lT,Qe,Qt],styles:[".center-text[_ngcontent-%COMP%]{text-align:center}"]}),n})();function HV(n,a){1&n&&i._UZ(0,"mat-spinner",7)}function LV(n,a){1&n&&i._UZ(0,"th",16)}function PV(n,a){if(1&n&&(i.TgZ(0,"td",17),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e)}}function RV(n,a){1&n&&i._UZ(0,"tr",18)}function kV(n,a){1&n&&i._UZ(0,"tr",19)}function OV(n,a){if(1&n&&(i.TgZ(0,"div",8)(1,"p"),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.TgZ(5,"div",9),i._uU(6),i.ALo(7,"translate"),i.ALo(8,"customTranslate"),i.qZA(),i.TgZ(9,"table",10),i.ynx(10,11),i.YNc(11,LV,1,0,"th",12),i.YNc(12,PV,2,1,"td",13),i.BQk(),i.YNc(13,RV,1,0,"tr",14),i.YNc(14,kV,1,0,"tr",15),i.qZA()()),2&n){const e=i.oxw();i.xp6(2),i.hij(" ",i.lcZ(3,5,i.lcZ(4,7,"DIALOGS.REMOVE_ALT_PASSWORD.DESCRIPTION"))," "),i.xp6(4),i.hij(" ",i.lcZ(7,9,i.lcZ(8,11,"DIALOGS.REMOVE_ALT_PASSWORD.ASK"))," "),i.xp6(3),i.Q6J("dataSource",e.dataSource),i.xp6(4),i.Q6J("matHeaderRowDef",e.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",e.displayedColumns)}}let IV=(()=>{class n{constructor(e,t,r){this.dialogRef=e,this.data=t,this.usersManagerService=r,this.displayedColumns=["description"]}ngOnInit(){this.dataSource=new $o(this.data.description)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.usersManagerService.deleteAlternativePassword(this.data.userId,"einfra",this.data.passwordId).subscribe({next:()=>{this.loading=!1,this.dialogRef.close(!0)},error:()=>this.loading=!1})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(xi),i.Y36(fn),i.Y36(ei))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-remove-alt-password-dialog"]],decls:16,vars:17,consts:[["mat-dialog-title",""],[1,"user-theme"],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","","class","user-theme",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"user-theme"],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","description"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-header-row","","class","font-weight-bolder",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div",1),i.YNc(5,HV,1,0,"mat-spinner",2),i.qZA(),i.YNc(6,OV,15,13,"div",3),i.TgZ(7,"div",4)(8,"button",5),i.NdJ("click",function(){return t.onCancel()}),i._uU(9),i.ALo(10,"translate"),i.ALo(11,"customTranslate"),i.qZA(),i.TgZ(12,"button",6),i.NdJ("click",function(){return t.onSubmit()}),i._uU(13),i.ALo(14,"translate"),i.ALo(15,"customTranslate"),i.qZA()()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,5,i.lcZ(3,7,"DIALOGS.REMOVE_ALT_PASSWORD.TITLE"))),i.xp6(4),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading),i.xp6(3),i.hij(" ",i.lcZ(10,9,i.lcZ(11,11,"DIALOGS.REMOVE_ALT_PASSWORD.CANCEL"))," "),i.xp6(4),i.hij(" ",i.lcZ(14,13,i.lcZ(15,15,"DIALOGS.REMOVE_ALT_PASSWORD.REMOVE"))," "))},dependencies:[w.O5,Dt,Qi,sn,Wi,eo,hs,to,ps,us,io,fs,ms,no,ro,Ei,Qe,Qt]}),n})();function BV(n,a){1&n&&i._UZ(0,"th",12)}const NV=function(n){return{name:n}};function VV(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",13)(1,"mat-checkbox",14),i.NdJ("change",function(r){const c=i.CHM(e).$implicit,s=i.oxw();return i.KtG(r?s.selection.toggle(c):null)})("click",function(r){return r.stopPropagation()}),i.ALo(2,"translate"),i.ALo(3,"checkboxLabel"),i.qZA()()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Q6J("aria-label",i.xi3(2,2,i.lcZ(3,5,t.selection.isSelected(e)),i.VKq(7,NV,e)))("checked",t.selection.isSelected(e))}}function FV(n,a){if(1&n&&(i.TgZ(0,"th",15),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Oqu(e.headerColumnText)}}function zV(n,a){if(1&n&&(i.TgZ(0,"td",16),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e)}}function jV(n,a){1&n&&i._UZ(0,"tr",17)}function qV(n,a){1&n&&i._UZ(0,"tr",18)}function YV(n,a){if(1&n&&(i.TgZ(0,"perun-web-apps-alert",19),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.hij(" ",e.alertText,"\n")}}let u2=(()=>{class n{constructor(){this.values=[],this.selection=new Vn(!1,[]),this.alertText="",this.headerColumnText="",this.displayedColumns=["select","value"]}static getExportDataForColumn(e){return e}ngOnChanges(){this.values=this.values?this.values:[],this.dataSource=new $o(this.values),this.setDataSource()}exportAllData(e){Na(Ba(this.dataSource.filteredData,this.displayedColumns,n.getExportDataForColumn),e)}exportDisplayedData(e){const t=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,r=t+this.dataSource.paginator.pageSize;Na(Ba(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(t,r),this.displayedColumns,n.getExportDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}ngAfterViewInit(){this.setDataSource()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-string-list"]],viewQuery:function(e,t){if(1&e&&i.Gf(ds,7),2&e){let r;i.iGM(r=i.CRH())&&(t.child=r.first)}},inputs:{values:"values",selection:"selection",alertText:"alertText",headerColumnText:"headerColumnText"},features:[i.TTD],decls:12,vars:6,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","exportDisplayedData","exportAllData"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","value"],["class","pl-3","mat-header-cell","",4,"matHeaderCellDef"],["class","truncate pl-3","mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","",1,"pl-3"],["mat-cell","",1,"truncate","pl-3"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportDisplayedData",function(l){return t.exportDisplayedData(l)})("exportAllData",function(l){return t.exportAllData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,BV,1,0,"th",4),i.YNc(5,VV,4,9,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,FV,2,1,"th",7),i.YNc(8,zV,2,1,"td",8),i.BQk(),i.YNc(9,jV,1,0,"tr",9),i.YNc(10,qV,1,0,"tr",10),i.qZA()()(),i.YNc(11,YV,2,1,"perun-web-apps-alert",11)),2&e&&(i.Q6J("hidden",!t.values.length),i.xp6(1),i.Q6J("dataLength",t.dataSource.filteredData.length),i.xp6(1),i.Q6J("dataSource",t.dataSource),i.xp6(7),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns),i.xp6(1),i.Q6J("ngIf",0===t.values.length))},dependencies:[w.O5,Mn,eo,hs,to,ps,us,io,fs,ms,no,ro,nc,ds,Qe,pg],styles:[".static-column-size[_ngcontent-%COMP%]{width:20px!important}.truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;max-width:100px}"]}),n})();function WV(n,a){if(1&n&&i._UZ(0,"perun-web-apps-string-list",10),2&n){const e=i.oxw();i.Q6J("values",e.displayedValues)("selection",e.selection)("alertText",e.alertText)("headerColumnText",e.headerColumnText)}}function UV(n,a){1&n&&i._UZ(0,"mat-spinner",11)}let GV=(()=>{class n{constructor(e,t,r,l,c){this.store=e,this.attributesManagerService=t,this.dialog=r,this.translateService=l,this.usersManagerService=c,this.altPasswordCtrl=new Js(null,[yn.required]),this.userId=this.store.getPerunPrincipal().userId,this.passwordDescriptions=new Set,this.displayedValues=[],this.selection=new Vn(!1,[]),l.get("ALT_PASSWORDS.REMOVE_DIALOG_DESCRIPTION").subscribe(s=>this.removeDialogDescription=s),l.get("ALT_PASSWORDS.REMOVE_DIALOG_TITLE").subscribe(s=>this.removeDialogTitle=s),l.get("ALERTS.NO_ALT_PASSWORDS").subscribe(s=>this.alertText=s),l.get("ALT_PASSWORDS.HEADER_COLUMN").subscribe(s=>this.headerColumnText=s)}ngOnInit(){this.getAltPasswords()}createPassword(){const e=this.generatePassword();this.usersManagerService.createAlternativePassword({user:this.userId,description:this.altPasswordCtrl.value,loginNamespace:"einfra",password:e}).subscribe(()=>{const t=ri();t.width="600px",t.data={password:e},this.dialog.open(DV,t),this.getAltPasswords(),this.altPasswordCtrl.setValue("")})}generatePassword(){const t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%&/=?_.,:;\\-";let r="",l=0;const c=t.length;for(;l<16;++l)r+=t.charAt(Math.random()*c);return r.match("((?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])|(?=.*[a-z])(?=.*[A-Z])(?=.*[!@#$%&/=?_.,:;\\-])|(?=.*[a-z])(?=.*[0-9])(?=.*[!@#$%&/=?_.,:;\\-])|(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#$%&/=?_.,:;\\-])).{3,}")||this.generatePassword(),r}alreadyContainsValue(e){return this.passwordDescriptions.has(e)}removeAltPasswords(){const e=ri();e.width="600px",e.data={description:this.selection.selected,passwordId:this.altPasswordsAttributeValue.get(this.selection.selected[0]),userId:this.userId},this.dialog.open(IV,e).afterClosed().subscribe(r=>{r&&(this.getAltPasswords(),this.selection.clear())})}getAltPasswords(){this.loading=!0,this.attributesManagerService.getUserAttributeByName(this.userId,"urn:perun:user:attribute-def:def:altPasswords:einfra").subscribe(e=>{if(e.value){this.altPasswordsAttributeValue=new Map(Object.entries(e.value));const t=this.altPasswordsAttributeValue.keys();this.passwordDescriptions=new Set(t),this.displayedValues=Array.from(this.passwordDescriptions.values())}else this.displayedValues=[];this.loading=!1})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(jt),i.Y36(ji),i.Y36(Fi),i.Y36($t),i.Y36(ei))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-settings-alternative-passwords"]],decls:28,vars:35,consts:[[1,"ml-3"],[1,"page-title"],[1,"input-width"],["matInput","","type","text",3,"placeholder","formControl"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],["alert_type","info"],[1,"page-subtitle"],["mat-flat-button","","color","warn",3,"disabled","click"],[3,"values","selection","alertText","headerColumnText",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"values","selection","alertText","headerColumnText"],[1,"ml-auto","mr-auto"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.TgZ(5,"mat-form-field",2)(6,"label",2),i._UZ(7,"input",3),i.ALo(8,"translate"),i.ALo(9,"customTranslate"),i.qZA()(),i.TgZ(10,"button",4),i.NdJ("click",function(){return t.createPassword()}),i._uU(11),i.ALo(12,"translate"),i.ALo(13,"customTranslate"),i.qZA(),i.TgZ(14,"perun-web-apps-alert",5),i._uU(15),i.ALo(16,"translate"),i.ALo(17,"customTranslate"),i.qZA(),i.TgZ(18,"h1",6),i._uU(19),i.ALo(20,"translate"),i.ALo(21,"customTranslate"),i.qZA(),i.TgZ(22,"button",7),i.NdJ("click",function(){return t.removeAltPasswords()}),i._uU(23),i.ALo(24,"translate"),i.ALo(25,"customTranslate"),i.qZA(),i.YNc(26,WV,1,4,"perun-web-apps-string-list",8),i.YNc(27,UV,1,0,"mat-spinner",9),i.qZA()),2&e&&(i.xp6(2),i.Oqu(i.lcZ(3,11,i.lcZ(4,13,"ALT_PASSWORDS.TITLE_GENERATE"))),i.xp6(5),i.s9C("placeholder",i.lcZ(8,15,i.lcZ(9,17,"ALT_PASSWORDS.INPUT_PLACEHOLDER"))),i.Q6J("formControl",t.altPasswordCtrl),i.xp6(3),i.Q6J("disabled",!t.altPasswordCtrl.valid||t.alreadyContainsValue(t.altPasswordCtrl.value)),i.xp6(1),i.hij(" ",i.lcZ(12,19,i.lcZ(13,21,"ALT_PASSWORDS.GENERATE"))," "),i.xp6(4),i.Oqu(i.lcZ(16,23,i.lcZ(17,25,"ALT_PASSWORDS.EXAMPLE_DESCRIPTIONS"))),i.xp6(4),i.Oqu(i.lcZ(20,27,i.lcZ(21,29,"ALT_PASSWORDS.TITLE_PASSWORDS"))),i.xp6(3),i.Q6J("disabled",t.selection.isEmpty()),i.xp6(1),i.hij(" ",i.lcZ(24,31,i.lcZ(25,33,"ALT_PASSWORDS.REMOVE"))," "),i.xp6(3),i.Q6J("ngIf",!t.loading),i.xp6(1),i.Q6J("ngIf",t.loading))},dependencies:[w.O5,Dt,Mn,hn,zn,An,pn,aa,Ei,u2,Qe,Qt]}),n})();function $V(n,a){if(1&n&&(i.TgZ(0,"mat-list-item",1)(1,"mat-icon"),i._uU(2),i.qZA(),i.TgZ(3,"p",2),i._uU(4),i.ALo(5,"translate"),i.ALo(6,"customTranslate"),i.qZA()()),2&n){const e=a.$implicit;i.Q6J("routerLink",e.url),i.xp6(2),i.Oqu(e.icon),i.xp6(2),i.Oqu(i.lcZ(5,3,i.lcZ(6,5,e.label)))}}let ZV=(()=>{class n{constructor(e){this.storeService=e,this.items=[]}ngOnInit(){this.initItems();const e=this.storeService.getProperty("displayed_tabs");this.items=this.items.filter(t=>e.includes(t.tabName))}initItems(){this.items=[{icon:"lock_open",url:"/profile/settings/altPasswords",label:"SETTINGS.ALTERNATIVE_PASSWORDS",tabName:"alt_passwords"},{icon:"admin_panel_settings",url:"/profile/settings/auth",label:"SETTINGS.AUTHENTICATION",tabName:"auth"},{icon:"storage",url:"/profile/settings/dataQuotas",label:"SETTINGS.DATA_QUOTAS",tabName:"data_quotas"},{icon:"face",url:"/profile/settings/localAccount",label:"SETTINGS.LOCAL_ACCOUNT",tabName:"local_acc"},{icon:"unsubscribe",url:"/profile/settings/mailingLists",label:"SETTINGS.MAILING_LISTS",tabName:"opt_out"},{icon:"chevron_right",url:"/profile/settings/prefShells",label:"SETTINGS.PREFERRED_SHELLS",tabName:"pref_shells"},{icon:"group",url:"/profile/settings/prefGroupNames",label:"SETTINGS.PREFERRED_UNIX_GROUP_NAMES",tabName:"pref_group_names"},{icon:"lock_open",url:"/profile/settings/sambaPassword",label:"SETTINGS.SAMBA_PASSWORD",tabName:"samba"},{icon:"vpn_key",url:"/profile/settings/sshKeys",label:"SETTINGS.SSH_KEYS",tabName:"ssh_keys"},{icon:"lock",url:"/profile/settings/passwordReset",label:"SETTINGS.PASSWORD_RESET",tabName:"password_reset"}]}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(jt))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-settings-overview"]],decls:2,vars:1,consts:[["matRipple","","queryParamsHandling","merge",3,"routerLink",4,"ngFor","ngForOf"],["matRipple","","queryParamsHandling","merge",3,"routerLink"],[1,"ml-2","mt-auto","mb-auto"]],template:function(e,t){1&e&&(i.TgZ(0,"mat-list"),i.YNc(1,$V,7,7,"mat-list-item",0),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngForOf",t.items))},dependencies:[w.sg,Ji,pT,VA,Qa,na,Qe,Qt],styles:["mat-list-item[_ngcontent-%COMP%]:hover{background:var(--side-hover)!important;color:var(--side-text-hover)!important;cursor:pointer}"]}),n})();function JV(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",5),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"PREFERRED_SHELLS.NO_SHELLS"))))}function QV(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-option",11),i.NdJ("click",function(){i.CHM(e);const r=i.oxw(3);return i.KtG(r.changeValue())}),i._uU(1),i.qZA()}if(2&n){const e=a.$implicit;i.Q6J("value",e),i.xp6(1),i.Oqu(e)}}function XV(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-list-item")(1,"mat-form-field",7)(2,"mat-select",8),i.NdJ("valueChange",function(r){const c=i.CHM(e).index,s=i.oxw(2);return i.KtG(s.shells[c]=r)}),i.YNc(3,QV,2,2,"mat-option",9),i.qZA()(),i.TgZ(4,"button",10),i.NdJ("click",function(){const l=i.CHM(e).index,c=i.oxw(2);return i.KtG(c.removeShell(l))}),i._uU(5),i.ALo(6,"translate"),i.ALo(7,"customTranslate"),i.qZA()()}if(2&n){const e=a.index,t=i.oxw(2);i.xp6(2),i.Q6J("value",t.shells[e]),i.xp6(1),i.Q6J("ngForOf",t.defaultShells),i.xp6(2),i.hij(" ",i.lcZ(6,3,i.lcZ(7,5,"PREFERRED_SHELLS.REMOVE_BUTTON"))," ")}}function KV(n,a){if(1&n&&(i.TgZ(0,"mat-list"),i.YNc(1,XV,8,7,"mat-list-item",6),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Q6J("ngForOf",e.shells)}}let eF=(()=>{class n{constructor(e,t,r,l){this.store=e,this.attributesManagerService=t,this.dialog=r,this.translateService=l,this.defaultShells=["/bin/bash","/bin/csh","/bin/ksh","/bin/sh","/bin/zsh"],this.shells=[],l.get("PREFERRED_SHELLS.REMOVE_DIALOG_DESCRIPTION").subscribe(c=>this.removeDialogDescription=c),l.get("PREFERRED_SHELLS.REMOVE_DIALOG_TITLE").subscribe(c=>this.removeDialogTitle=c)}ngOnInit(){this.userId=this.store.getPerunPrincipal().userId,this.translateService.onLangChange.subscribe(()=>{this.translateService.get("PREFERRED_SHELLS.REMOVE_DIALOG_DESCRIPTION").subscribe(e=>this.removeDialogDescription=e),this.translateService.get("PREFERRED_SHELLS.REMOVE_DIALOG_TITLE").subscribe(e=>this.removeDialogTitle=e)}),this.getAttribute()}addShell(){this.shells.push("/bin/bash"),this.prefShellsAttribute.value=this.shells,this.attributesManagerService.setUserAttribute({user:this.userId,attribute:this.prefShellsAttribute}).subscribe(()=>{})}removeShell(e){const t=ri();t.width="600px",t.data={valueIndex:e,values:[this.shells[e]],attribute:this.prefShellsAttribute,userId:this.userId,title:this.removeDialogTitle,description:this.removeDialogDescription},this.dialog.open(BA,t).afterClosed().subscribe(l=>{l&&this.getAttribute()})}changeValue(){this.loading=!0,this.prefShellsAttribute.value=this.shells,this.attributesManagerService.setUserAttribute({user:this.userId,attribute:this.prefShellsAttribute}).subscribe({next:()=>{this.getAttribute()},error:()=>this.loading=!1})}getAttribute(){this.loading=!0,this.attributesManagerService.getUserAttributeByName(this.userId,"urn:perun:user:attribute-def:def:preferredShells").subscribe(e=>{this.prefShellsAttribute=e,this.shells=this.prefShellsAttribute?.value??[],this.loading=!1})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(jt),i.Y36(ji),i.Y36(Fi),i.Y36($t))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-settings-preferred-shells"]],decls:14,vars:17,consts:[[1,"page-title"],["alert_type","info"],["mat-flat-button","","color","accent",3,"click"],["alert_type","warn",4,"ngIf"],[4,"ngIf"],["alert_type","warn"],[4,"ngFor","ngForOf"],[1,"w-100"],[3,"value","valueChange"],[3,"value","click",4,"ngFor","ngForOf"],["mat-flat-button","","color","warn",1,"ml-2",3,"click"],[3,"value","click"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"perun-web-apps-alert",1),i._uU(5),i.ALo(6,"translate"),i.ALo(7,"customTranslate"),i.qZA(),i.TgZ(8,"button",2),i.NdJ("click",function(){return t.addShell()}),i._uU(9),i.ALo(10,"translate"),i.ALo(11,"customTranslate"),i.qZA(),i.YNc(12,JV,4,5,"perun-web-apps-alert",3),i.YNc(13,KV,2,1,"mat-list",4)),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,5,i.lcZ(3,7,"PREFERRED_SHELLS.TITLE"))),i.xp6(4),i.hij(" ",i.lcZ(6,9,i.lcZ(7,11,"PREFERRED_SHELLS.DESCRIPTION")),"\n"),i.xp6(4),i.hij(" ",i.lcZ(10,13,i.lcZ(11,15,"PREFERRED_SHELLS.NEW_BUTTON")),"\n"),i.xp6(3),i.Q6J("ngIf",!t.loading&&0===t.shells.length),i.xp6(1),i.Q6J("ngIf",!t.loading))},dependencies:[w.sg,w.O5,pT,VA,Dt,Mn,hn,Fu,Lo,Qe,Qt]}),n})();function tF(n,a){1&n&&i._UZ(0,"mat-spinner",4)}function iF(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"div",5)(2,"mat-form-field",6)(3,"label",6),i._UZ(4,"input",7),i.qZA()()(),i.TgZ(5,"div",8)(6,"button",9),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onCancel())}),i._uU(7),i.ALo(8,"translate"),i.ALo(9,"customTranslate"),i.qZA(),i.TgZ(10,"button",10),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onSubmit())}),i._uU(11),i.ALo(12,"translate"),i.ALo(13,"customTranslate"),i.qZA()()()}if(2&n){const e=i.oxw();i.xp6(4),i.Q6J("formControl",e.inputControl),i.xp6(3),i.hij(" ",i.lcZ(8,4,i.lcZ(9,6,"DIALOGS.ADD_UNIX_GROUP.CANCEL"))," "),i.xp6(3),i.Q6J("disabled",!e.inputControl.valid||e.groups.includes(e.inputControl.value)),i.xp6(1),i.hij(" ",i.lcZ(12,8,i.lcZ(13,10,"DIALOGS.ADD_UNIX_GROUP.ADD"))," ")}}let nF=(()=>{class n{constructor(e,t,r){this.dialogRef=e,this.data=t,this.attributesManagerService=r,this.groups=[]}ngOnInit(){this.inputControl=new Js(null,yn.required),this.groups=this.data.groups}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.attributesManagerService.getUserAttributeByName(this.data.userId,`urn:perun:user:attribute-def:def:preferredUnixGroupName-namespace:${this.data.namespace}`).subscribe(e=>{const t=e?.value??[];t.push(this.inputControl.value),e.value=t,this.attributesManagerService.setUserAttribute({user:this.data.userId,attribute:e}).subscribe({next:()=>{this.loading=!1,this.dialogRef.close(!0)},error:()=>this.loading=!1})})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(xi),i.Y36(fn),i.Y36(ji))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-add-unix-group-dialog"]],decls:7,vars:7,consts:[["mat-dialog-title",""],[1,"user-theme"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[1,"w-100"],["matInput","","required","",1,"w-100",3,"formControl"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div",1),i.YNc(5,tF,1,0,"mat-spinner",2),i.YNc(6,iF,14,12,"div",3),i.qZA()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,3,i.lcZ(3,5,"DIALOGS.ADD_UNIX_GROUP.TITLE"))),i.xp6(4),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},dependencies:[w.O5,Dt,hn,Qi,sn,Wi,zn,An,pn,qr,aa,Ei,Qe,Qt]}),n})();function rF(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",2)(1,"h4"),i._uU(2),i.qZA(),i.TgZ(3,"button",3),i.NdJ("click",function(){const l=i.CHM(e).$implicit,c=i.oxw();return i.KtG(c.addGroupName(l))}),i._uU(4),i.ALo(5,"translate"),i.ALo(6,"customTranslate"),i.qZA(),i.TgZ(7,"button",4),i.NdJ("click",function(){const r=i.CHM(e),l=r.$implicit,c=r.index,s=i.oxw();return i.KtG(s.removeGroupName(l,c))}),i._uU(8),i.ALo(9,"translate"),i.qZA(),i._UZ(10,"perun-web-apps-string-list",5),i.qZA()}if(2&n){const e=a.$implicit,t=a.index,r=i.oxw();i.xp6(2),i.Oqu(e),i.xp6(2),i.hij(" ",i.lcZ(5,8,i.lcZ(6,10,"PREFERRED_UNIX_GROUP_NAMES.NEW_BUTTON"))," "),i.xp6(3),i.Q6J("disabled",0===r.selectionList[t].selected.length),i.xp6(1),i.hij(" ",i.lcZ(9,12,"PREFERRED_UNIX_GROUP_NAMES.REMOVE_BUTTON")," "),i.xp6(2),i.Q6J("values",r.groupNames.get(e))("selection",r.selectionList[t])("alertText",r.alertText)("headerColumnText",r.headerColumnText)}}let aF=(()=>{class n{constructor(e,t,r,l){this.store=e,this.attributesManagerService=t,this.dialog=r,this.translateService=l,this.namespaces=[],this.userId=this.store.getPerunPrincipal().userId,this.groupNames=new Map,this.groupNameAttributes=[],this.selectionList=[],l.get("PREFERRED_UNIX_GROUP_NAMES.REMOVE_DIALOG_DESCRIPTION").subscribe(c=>this.removeDialogDescription=c),l.get("PREFERRED_UNIX_GROUP_NAMES.REMOVE_DIALOG_TITLE").subscribe(c=>this.removeDialogTitle=c),l.get("ALERTS.NO_PREFERRED_UNIX_GROUPS").subscribe(c=>this.alertText=c),l.get("PREFERRED_UNIX_GROUP_NAMES.HEADER_COLUMN").subscribe(c=>this.headerColumnText=c)}ngOnInit(){this.namespaces=this.store.getProperty("preferred_unix_group_names"),this.translateService.onLangChange.subscribe(()=>{this.translateService.get("PREFERRED_UNIX_GROUP_NAMES.REMOVE_DIALOG_DESCRIPTION").subscribe(e=>this.removeDialogDescription=e),this.translateService.get("PREFERRED_UNIX_GROUP_NAMES.REMOVE_DIALOG_TITLE").subscribe(e=>this.removeDialogTitle=e),this.translateService.get("ALERTS.NO_PREFERRED_UNIX_GROUPS").subscribe(e=>this.alertText=e),this.translateService.get("PREFERRED_UNIX_GROUP_NAMES.HEADER_COLUMN").subscribe(e=>this.headerColumnText=e)}),this.initSelection(),this.namespaces.forEach(e=>{this.getAttribute(e)})}initSelection(){this.namespaces.forEach(()=>{this.selectionList.push(new Vn(!0,[]))})}getAttribute(e){this.attributesManagerService.getUserAttributeByName(this.userId,`urn:perun:user:attribute-def:def:preferredUnixGroupName-namespace:${e}`).subscribe(t=>{this.groupNames.set(e,t?.value??[]),this.groupNameAttributes.push(t)})}addGroupName(e){const t=this.groupNames.get(e),r=ri();r.width="400px",r.data={groups:t,namespace:e,userId:this.userId},this.dialog.open(nF,r).afterClosed().subscribe(c=>{c&&this.getAttribute(e)})}removeGroupName(e,t){const r=ri();r.width="600px",r.data={values:this.selectionList[t].selected,attribute:this.groupNameAttributes[t],userId:this.userId,title:this.removeDialogTitle,description:this.removeDialogDescription},this.dialog.open(BA,r).afterClosed().subscribe(c=>{c&&(this.selectionList[t].clear(),this.getAttribute(e))})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(jt),i.Y36(ji),i.Y36(Fi),i.Y36($t))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-settings-preferred-unix-group-names"]],decls:5,vars:6,consts:[[1,"page-title"],["class","mt-4",4,"ngFor","ngForOf"],[1,"mt-4"],["mat-flat-button","","color","accent",1,"action-button",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],[3,"values","selection","alertText","headerColumnText"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.YNc(4,rF,11,14,"div",1)),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,2,i.lcZ(3,4,"PREFERRED_UNIX_GROUP_NAMES.TITLE"))),i.xp6(3),i.Q6J("ngForOf",t.namespaces))},dependencies:[w.sg,Dt,u2,Qe,Qt]}),n})();function sF(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",7),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"ALERTS.NO_SAMBA")),"\n"))}function oF(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",7),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"ALERTS.SAMBA_EXISTS")),"\n"))}function lF(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",8),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"SAMBA_PASSWORD.PASSWORD_VALIDATION"))))}let cF=(()=>{class n{constructor(e,t,r,l,c){this.attributesManagerService=e,this.store=t,this.usersManagerService=r,this.notificator=l,this.translate=c,c.get("SAMBA_PASSWORD.SUCCESS_MESSAGE").subscribe(s=>this.successMessage=s),c.get("SAMBA_PASSWORD.SHOW_PWD_TOOLTIP").subscribe(s=>this.showPwdTooltip=s),c.get("SAMBA_PASSWORD.HIDE_PWD_TOOLTIP").subscribe(s=>this.hidePwdTooltip=s)}ngOnInit(){this.userId=this.store.getPerunPrincipal().userId,this.sambaControl=new Js("",[yn.pattern("((?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])|(?=.*[a-z])(?=.*[A-Z])(?=.*[!@#$%&/=?_.,:;\\-])|(?=.*[a-z])(?=.*[0-9])(?=.*[!@#$%&/=?_.,:;\\-])|(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#$%&/=?_.,:;\\-])).{3,}")]),this.getSambaAttribute()}setSambaPassword(){this.sambaAttribute.value=this.sambaControl.value;const e=(new Date).getTime().toString();this.usersManagerService.createAlternativePassword({user:this.userId,description:e,loginNamespace:"samba-du",password:this.sambaControl.value}).subscribe(()=>{this.sambaControl.setValue(""),this.getSambaAttribute(),this.notificator.showSuccess(this.successMessage)})}getSambaAttribute(){this.attributesManagerService.getUserAttributeByName(this.userId,"urn:perun:user:attribute-def:def:altPasswords:samba-du").subscribe(e=>{this.sambaExists=!!e.value,this.sambaAttribute=e})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(ji),i.Y36(jt),i.Y36(ei),i.Y36(_r),i.Y36($t))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-settings-samba-password"]],decls:19,vars:23,consts:[[1,"page-title"],["alert_type","warn",4,"ngIf"],[1,"input-width"],["matInput","",3,"formControl","type","placeholder"],["disableRipple","","mat-icon-button","",3,"matTooltip","click"],["color","accent","mat-flat-button","",3,"disabled","click"],["alert_type","error",4,"ngIf"],["alert_type","warn"],["alert_type","error"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.YNc(4,sF,4,5,"perun-web-apps-alert",1),i.YNc(5,oF,4,5,"perun-web-apps-alert",1),i.TgZ(6,"mat-form-field",2)(7,"label",2),i._UZ(8,"input",3),i.ALo(9,"translate"),i.ALo(10,"customTranslate"),i.qZA()(),i.TgZ(11,"button",4),i.NdJ("click",function(){return t.showPassword=!t.showPassword}),i.TgZ(12,"mat-icon"),i._uU(13),i.qZA()(),i.TgZ(14,"button",5),i.NdJ("click",function(){return t.setSambaPassword()}),i._uU(15),i.ALo(16,"translate"),i.ALo(17,"customTranslate"),i.qZA(),i.YNc(18,lF,4,5,"perun-web-apps-alert",6)),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,11,i.lcZ(3,13,"SAMBA_PASSWORD.TITLE"))),i.xp6(3),i.Q6J("ngIf",!t.sambaExists),i.xp6(1),i.Q6J("ngIf",t.sambaExists),i.xp6(3),i.s9C("placeholder",i.lcZ(9,15,i.lcZ(10,17,"SAMBA_PASSWORD.INPUT_PLACEHOLDER"))),i.Q6J("formControl",t.sambaControl)("type",t.showPassword?"text":"password"),i.xp6(3),i.Q6J("matTooltip",t.showPassword?t.hidePwdTooltip:t.showPwdTooltip),i.xp6(2),i.Oqu(t.showPassword?"visibility_off":"visibility"),i.xp6(1),i.Q6J("disabled",0===t.sambaControl.value.length||t.sambaControl.invalid),i.xp6(1),i.hij(" ",i.lcZ(16,19,i.lcZ(17,21,"SAMBA_PASSWORD.SET_PASSWORD")),"\n"),i.xp6(3),i.Q6J("ngIf",t.sambaControl.invalid))},dependencies:[w.O5,Ji,Dt,Mn,hn,zn,An,pn,aa,gr,Qe,Qt]}),n})(),fF=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),wF=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[fF,_t,_t]}),n})(),TF=(()=>{class n{constructor(){this.changes=new Ee.x,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 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(e,t){return`${e} \u2013 ${t}`}formatYearRangeLabel(e,t){return`${e} to ${t}`}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const OF={provide:new i.OlP("mat-datepicker-scroll-strategy"),deps:[ar],useFactory:function kF(n){return()=>n.scrollStrategies.reposition()}};let RT=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[TF,OF],imports:[w.ez,Nn,Oo,Rl,Us,_t,rs]}),n})();new i.OlP("mat-selectsearch-default-options");let YF=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[w.ez,qo,Nn,lg,Qs,Kp,Oa]]}),n})(),kT=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[_t,_t]}),n})(),g2=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[Il,_t,Il,_t]}),n})(),GF=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[Ic]}),n})(),OT=(()=>{class n{constructor(){this.changes=new Ee.x,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const rz={provide:OT,deps:[[new i.FiY,new i.tp0,OT]],useFactory:function nz(n){return n||new OT}};let y2=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[rz,qs],imports:[_t,w.ez,Us,Nn,GF,Qs,jr,_t]}),n})(),cz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[w.ez,_t,Us,jr,eu,Rl,_t]}),n})();const dz=["input"],uz=function(n){return{enterDuration:n}},hz=["*"],pz=new i.OlP("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let fz=0;const mz={provide:sr,useExisting:(0,i.Gpc)(()=>M2),multi:!0};class gz{constructor(a,e){this.source=a,this.checked=e}}const _z=kl(hr(xr(is(class{constructor(n){this._elementRef=n}}))));let bz=(()=>{class n extends _z{constructor(e,t,r,l,c,s,o){super(e),this._focusMonitor=t,this._changeDetectorRef=r,this.defaults=c,this._onChange=d=>{},this._onTouched=()=>{},this._required=!1,this._checked=!1,this.name=null,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new i.vpe,this.toggleChange=new i.vpe,this.tabIndex=parseInt(l)||0,this.color=this.defaultColor=c.color||"accent",this._noopAnimations="NoopAnimations"===s,this.id=this._uniqueId=`${o}${++fz}`}get required(){return this._required}set required(e){this._required=Fe(e)}get checked(){return this._checked}set checked(e){this._checked=Fe(e),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{"keyboard"===e||"program"===e?this._focused=!0:e||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(e){this.checked=!!e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}}return n.\u0275fac=function(e){i.$Z()},n.\u0275dir=i.lG2({type:n,inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},features:[i.qOj]}),n})(),M2=(()=>{class n extends bz{constructor(e,t,r,l,c,s){super(e,t,r,l,c,s,"mat-slide-toggle-")}_createChangeEvent(e){return new gz(this,e)}_onChangeEvent(e){e.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(e){e.stopPropagation()}focus(e,t){t?this._focusMonitor.focusVia(this._inputElement,t,e):this._inputElement.nativeElement.focus(e)}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(ur),i.Y36(i.sBO),i.$8M("tabindex"),i.Y36(pz),i.Y36(i.QbO,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-slide-toggle"]],viewQuery:function(e,t){if(1&e&&i.Gf(dz,5),2&e){let r;i.iGM(r=i.CRH())&&(t._inputElement=r.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:13,hostBindings:function(e,t){2&e&&(i.Ikx("id",t.id),i.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null)("name",null),i.ekj("mat-checked",t.checked)("mat-disabled",t.disabled)("mat-slide-toggle-label-before","before"==t.labelPosition)("_mat-animation-noopable",t._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matSlideToggle"],features:[i._Bn([mz]),i.qOj],ngContentSelectors:hz,decls:14,vars:20,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["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"],[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(e,t){if(1&e&&(i.F$t(),i.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),i.NdJ("change",function(l){return t._onChangeEvent(l)})("click",function(l){return t._onInputClick(l)}),i.qZA(),i.TgZ(5,"span",5),i._UZ(6,"span",6),i.TgZ(7,"span",7),i._UZ(8,"span",8),i.qZA()()(),i.TgZ(9,"span",9,10),i.NdJ("cdkObserveContent",function(){return t._onLabelTextChange()}),i.TgZ(11,"span",11),i._uU(12,"\xa0"),i.qZA(),i.Hsn(13),i.qZA()()),2&e){const r=i.MAs(1),l=i.MAs(10);i.uIk("for",t.inputId),i.xp6(2),i.ekj("mat-slide-toggle-bar-no-side-margin",!l.textContent||!l.textContent.trim()),i.xp6(1),i.Q6J("id",t.inputId)("required",t.required)("tabIndex",t.tabIndex)("checked",t.checked)("disabled",t.disabled),i.uIk("name",t.name)("aria-checked",t.checked)("aria-label",t.ariaLabel)("aria-labelledby",t.ariaLabelledby)("aria-describedby",t.ariaDescribedby),i.xp6(4),i.Q6J("matRippleTrigger",r)("matRippleDisabled",t.disableRipple||t.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",i.VKq(18,uz,t._noopAnimations?0:150))}},dependencies:[na,t0],styles:['.mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.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{-webkit-user-select:none;user-select:none;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%;display:block}.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}}.mat-slide-toggle-input:focus~.mat-slide-toggle-thumb-container .mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}'],encapsulation:2,changeDetection:0}),n})(),w2=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),IT=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[w2,jr,_t,eu,w2,_t]}),n})(),Mz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[w.ez,kT,uT,ET,Nn,g2,lg,Qs,og,Qm,Kp,$s,Xp,pr,Hp,qo,y2,RT,U1,jv,fT,jp,cT,UA,ad,Oa,id,jr,og,IT,wT,kT,uT,ET,Nn,g2,lg,Qs,og,Qm,Kp,$s,Xp,pr,Hp,qo,y2,RT,U1,jv,fT,jp,cT,UA,ad,Oa,id,jr,cz,IT,wT]}),n})(),wz=(()=>{class n extends Qh{format(e,t){return"input"===t?`${e.getDate().toString()}.${(e.getMonth()+1).toString()}.${e.getFullYear()}`:e.toDateString()}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const Cz={parse:{dateInput:{month:"short",year:"numeric",day:"numeric"}},display:{dateInput:"input",monthYearLabel:{year:"numeric",month:"numeric"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let C2=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[{provide:Ta,useClass:wz},{provide:xa,useValue:Cz}],imports:[w.ez,lg,og,Hp,wT,KI,co,Oh,UA,ad,Kp,xA,Qs,jp,Nn,Oa,$s,qo,Xp,jr,GE,tD,wF,RT,lD,cu,id,YF,pr,Qm,hv,Mz,vO]}),n})();i.B6R(cD,[w.O5,Mn,Dt,hw,gw,mw,Qi,Wi,dD],[Qe,Qt]);let vz=(()=>{class n{transform(e){return"virt"===e.namespace.split(":")[4]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"isVirtualAttribute",type:n,pure:!0}),n})();function Tz(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"th",18)(1,"mat-checkbox",19),i.NdJ("change",function(r){i.CHM(e);const l=i.oxw(2);return i.KtG(r?l.masterToggle():null)}),i.ALo(2,"translate"),i.ALo(3,"masterCheckboxLabel"),i.qZA()()}if(2&n){const e=i.oxw().ngIf,t=i.oxw();i.xp6(1),i.Q6J("checked",t.selection.hasValue()&&e.all)("indeterminate",t.selection.hasValue()&&!e.all)("aria-label",i.lcZ(2,3,i.lcZ(3,5,e.all)))}}const xz=function(n){return{name:n}};function Sz(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",20)(1,"mat-checkbox",21),i.NdJ("click",function(r){return r.stopPropagation()})("change",function(r){const c=i.CHM(e).$implicit,s=i.oxw(2);return i.KtG(r?s.selection.toggle(c):null)}),i.ALo(2,"multiWordDataCy"),i.ALo(3,"isVirtualAttribute"),i.ALo(4,"translate"),i.ALo(5,"checkboxLabel"),i.qZA()()}if(2&n){const e=a.$implicit,t=i.oxw(2);i.xp6(1),i.Q2q("data-cy","",i.lcZ(2,4,e.displayName),"-checkbox"),i.Q6J("checked",t.selection.isSelected(e))("disabled",i.lcZ(3,6,e)||!e.writable)("aria-label",i.xi3(4,8,i.lcZ(5,11,t.selection.isSelected(e)),i.VKq(13,xz,e.displayName)))}}function Ez(n,a){1&n&&(i.ynx(0,15),i.YNc(1,Tz,4,7,"th",16),i.YNc(2,Sz,6,15,"td",17),i.BQk())}function Dz(n,a){1&n&&(i.TgZ(0,"th",22),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.ID")," "))}function Hz(n,a){if(1&n&&(i.TgZ(0,"td",23),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.id)}}function Lz(n,a){1&n&&(i.TgZ(0,"th",22),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.NAME")," "))}function Pz(n,a){if(1&n&&(i.TgZ(0,"td",24),i.ALo(1,"multiWordDataCy"),i.TgZ(2,"div",25),i._uU(3),i.qZA()()),2&n){const e=a.$implicit,t=i.oxw();i.Q2q("data-cy","",i.lcZ(1,3,e.friendlyName),"-friendlyName"),i.xp6(2),i.s9C("matTooltip",t.getAttributeFullName(e)),i.xp6(1),i.hij(" ",e.displayName," ")}}function Rz(n,a){1&n&&(i.TgZ(0,"th",26),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.VALUE")," "))}function kz(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",24)(1,"perun-web-apps-attribute-value",27),i.NdJ("sendEventToParent2",function(){const l=i.CHM(e).$implicit,c=i.oxw();return i.KtG(c.onValueChange(l))}),i.qZA()()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Q6J("attribute",e)("readonly",t.readonly||!e.writable)}}function Oz(n,a){1&n&&(i.TgZ(0,"th",22),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.DESCRIPTION")," "))}function Iz(n,a){if(1&n&&(i.TgZ(0,"td",24),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.description)}}function Bz(n,a){1&n&&i._UZ(0,"tr",28)}function Nz(n,a){if(1&n&&(i._UZ(0,"tr",29),i.ALo(1,"translate")),2&n){const e=a.$implicit,t=i.oxw();i.s9C("matTooltip",i.lcZ(1,3,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.DISABLED_HINT")),i.Q6J("matTooltipPosition","before")("matTooltipDisabled",e.writable||t.readonly)}}function Vz(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",30),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function Fz(n,a){if(1&n&&(i.TgZ(0,"perun-web-apps-alert",30),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.hij(" ",i.lcZ(2,1,e.emptyListText),"\n")}}const zz=function(n){return{all:n}};let jz=(()=>{class n{constructor(e,t){this.authResolver=e,this.tableCheckbox=t,this.attributes=[],this.selection=new Vn(!0,[]),this.displayedColumns=["select","id","displayName","value","description"],this.inDialog=!1,this.filterValue="",this.readonly=!1,this.hiddenColumns=[],this.emptyListText="SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.EMPTY_SETTINGS",this.pageSizeOptions=hd}set matSort(e){this.sort=e,this.setDataSource()}static canBeSelected(e){return!Dr(e)&&e.writable}static getDataForColumn(e,t){switch(t){case"id":return e.id.toString();case"displayName":return e.displayName;case"description":return e.description;case"value":return JSON.stringify(e.value);case"urn":return e.namespace+":"+e.baseFriendlyName;default:return""}}canBeSelected(e){return!Dr(e)&&e.writable}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"id"!==e)),this.dataSource=new $o(function Sv(n){return n.filter(a=>!a.namespace.includes("def:core"))}(this.attributes)),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}exportAllData(e){Na(Ba(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}exportDisplayedData(e){const t=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,r=t+this.dataSource.paginator.pageSize;Na(Ba(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(t,r),this.displayedColumns,n.getDataForColumn),e)}setDataSource(){this.displayedColumns=this.displayedColumns.filter(e=>!this.hiddenColumns.includes(e)),this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>Uo(e,t,this.displayedColumns.concat("urn"),n.getDataForColumn),this.dataSource.sortData=(e,t)=>Zl(e,t,n.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource,n.canBeSelected)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!0,n.canBeSelected)}updateMapAttributes(){for(const e of this.items.toArray())"java.util.LinkedHashMap"===e.attribute.type&&e.updateMapAttribute()}onValueChange(e){n.canBeSelected(e)&&this.selection.select(e)}getAttributeFullName(e){return`${e.namespace}:${e.friendlyName}`}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(tn),i.Y36(bA))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-attributes-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(ds,7),i.Gf(gs,7),i.Gf(CT,5)),2&e){let r;i.iGM(r=i.CRH())&&(t.child=r.first),i.iGM(r=i.CRH())&&(t.matSort=r.first),i.iGM(r=i.CRH())&&(t.items=r)}},inputs:{attributes:"attributes",selection:"selection",displayedColumns:"displayedColumns",inDialog:"inDialog",filterValue:"filterValue",tableId:"tableId",readonly:"readonly",hiddenColumns:"hiddenColumns",emptyListText:"emptyListText"},features:[i.TTD],decls:21,vars:16,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size",4,"matCellDef"],["matColumnDef","displayName"],["mat-cell","",4,"matCellDef"],["matColumnDef","value"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","description"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","dark-hover-list-item",3,"matTooltip","matTooltipPosition","matTooltipDisabled",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size align-checkbox",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"checked","indeterminate","aria-label","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"checked","disabled","aria-label","click","change"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["matTooltipClass","urn-tooltip",3,"matTooltip"],["mat-header-cell",""],[3,"attribute","readonly","sendEventToParent2"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportDisplayedData",function(l){return t.exportDisplayedData(l)})("exportAllData",function(l){return t.exportAllData(l)}),i.TgZ(2,"table",2),i.YNc(3,Ez,3,0,"ng-container",3),i.ALo(4,"isAllSelected"),i.ynx(5,4),i.YNc(6,Dz,3,3,"th",5),i.YNc(7,Hz,2,1,"td",6),i.BQk(),i.ynx(8,7),i.YNc(9,Lz,3,3,"th",5),i.YNc(10,Pz,4,5,"td",8),i.BQk(),i.ynx(11,9),i.YNc(12,Rz,3,3,"th",10),i.YNc(13,kz,2,2,"td",8),i.BQk(),i.ynx(14,11),i.YNc(15,Oz,3,3,"th",5),i.YNc(16,Iz,2,1,"td",8),i.BQk(),i.YNc(17,Bz,1,0,"tr",12),i.YNc(18,Nz,2,5,"tr",13),i.qZA()()(),i.YNc(19,Vz,3,3,"perun-web-apps-alert",14),i.YNc(20,Fz,3,3,"perun-web-apps-alert",14)),2&e&&(i.Q6J("hidden",0===t.dataSource.filteredData.length),i.xp6(1),i.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),i.xp6(1),i.Q6J("dataSource",t.dataSource),i.xp6(1),i.Q6J("ngIf",i.VKq(14,zz,i.Dn7(4,10,t.dataSource,t.selection.selected.length,t.canBeSelected))),i.xp6(14),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns),i.xp6(1),i.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.dataSource.data.length),i.xp6(1),i.Q6J("ngIf",0===t.dataSource.data.length))},dependencies:[w.O5,nc,eo,hs,to,ps,us,io,fs,ms,no,ro,gs,hg,Mn,gr,ds,CT,Qe,vz,mT,TT,pg,s2],styles:["table[_ngcontent-%COMP%]{width:100%!important}.mat-row[_ngcontent-%COMP%]{height:auto}.mat-cell[_ngcontent-%COMP%]{padding:8px 8px 8px 0}.mat-column-select[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:50px!important}.mat-column-id[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:60px!important}.mat-column-value[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:300px!important}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:.25rem!important} .urn-tooltip{max-width:800px!important}"]}),n})();function qz(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert"),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.NOT_SUPPORTED"))))}function Yz(n,a){1&n&&(i.TgZ(0,"th",16),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.NAMESPACE"))," "))}function Wz(n,a){if(1&n&&(i.TgZ(0,"td",17),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.friendlyNameParameter)}}function Uz(n,a){1&n&&(i.TgZ(0,"th",16),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.LOGIN"))," "))}function Gz(n,a){if(1&n&&(i.TgZ(0,"td",18),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.value)}}function $z(n,a){1&n&&i._UZ(0,"th",16)}function Zz(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",19)(1,"button",20),i.NdJ("click",function(){const l=i.CHM(e).$implicit,c=i.oxw();return i.KtG(c.resetPassword(l.friendlyNameParameter))}),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA()()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Q6J("disabled",!t.logins.includes(e)),i.xp6(1),i.hij(" ",i.lcZ(3,2,i.lcZ(4,4,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.RESET_PASSWORD"))," ")}}function Jz(n,a){1&n&&i._UZ(0,"th",16)}function Qz(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",19)(1,"button",21),i.NdJ("click",function(){const l=i.CHM(e).$implicit,c=i.oxw();return i.KtG(c.changePassword(l))}),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA()()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Q6J("disabled",!t.logins.includes(e)),i.xp6(1),i.hij(" ",i.lcZ(3,2,i.lcZ(4,4,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.CHANGE_PASSWORD"))," ")}}function Xz(n,a){1&n&&i._UZ(0,"tr",22)}function Kz(n,a){1&n&&i._UZ(0,"tr",23)}let ej=(()=>{class n{constructor(e,t,r,l,c,s,o){this.attributesManagerService=e,this.store=t,this.dialog=r,this.route=l,this.router=c,this.otherApplicationService=s,this.entityStorageService=o,this.authenticationPage=!1,this.filteredNamespaces=new i.vpe,this.logins=[],this.nameSpaces=[]}ngOnInit(){this.userId=this.authenticationPage?this.entityStorageService.getEntity().id:this.store.getPerunPrincipal().userId,this.displayedColumns=this.authenticationPage?["namespace","value","change"]:["namespace","value","reset","change"],this.nameSpaces=this.store.getProperty("password_namespace_attributes").map(e=>{const t=e.split(":");return t[t.length-1]}),this.refreshTable()}refreshTable(){this.attributesManagerService.getLogins(this.userId).subscribe(e=>{if(this.logins=e.filter(t=>this.nameSpaces.includes(t.friendlyNameParameter)),this.filteredNamespaces.emit(e.map(t=>t.friendlyNameParameter)),this.dataSource=new $o(e),!this.authenticationPage){const r=this.route.snapshot.queryParamMap.get("namespace");if(r){const l=this.logins.find(c=>c.friendlyNameParameter===r);l&&this.changePassword(l)}}})}resetPassword(e){window.open(this.otherApplicationService.getUrlForOtherApplication(Go.PwdReset,e),"_blank")}changePassword(e){this.authenticationPage||this.router.navigate([],{queryParams:{namespace:e.friendlyNameParameter},queryParamsHandling:"merge"});const t=ri();t.width="600px",t.data={login:String(e.value),namespace:e.friendlyName.split(":")[1]},this.dialog.open(Lk,t).afterClosed().subscribe(()=>{this.router.navigate([],{queryParams:{namespace:null},queryParamsHandling:"merge"})})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(ji),i.Y36(jt),i.Y36(Fi),i.Y36(In),i.Y36(Ni),i.Y36(AA),i.Y36(Vv))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-password-reset"]],inputs:{authenticationPage:"authenticationPage"},outputs:{filteredNamespaces:"filteredNamespaces"},decls:23,vars:9,consts:[[1,"page-subtitle"],[4,"ngIf"],[1,"card","mt-2","table-size-fix"],[1,"card-body"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","value","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","namespace"],["mat-header-cell","",4,"matHeaderCellDef"],["class","w-25","mat-cell","",4,"matCellDef"],["matColumnDef","value"],["class","w-50","mat-cell","",4,"matCellDef"],["matColumnDef","reset"],["mat-cell","",4,"matCellDef"],["matColumnDef","change"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"w-25"],["mat-cell","",1,"w-50"],["mat-cell",""],["color","accent","mat-flat-button","",3,"disabled","click"],["color","accent","mat-flat-button","",1,"action-button",3,"disabled","click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.YNc(4,qz,4,5,"perun-web-apps-alert",1),i.TgZ(5,"div",2)(6,"div",3)(7,"div",4)(8,"table",5),i.ynx(9,6),i.YNc(10,Yz,4,5,"th",7),i.YNc(11,Wz,2,1,"td",8),i.BQk(),i.ynx(12,9),i.YNc(13,Uz,4,5,"th",7),i.YNc(14,Gz,2,1,"td",10),i.BQk(),i.ynx(15,11),i.YNc(16,$z,1,0,"th",7),i.YNc(17,Zz,5,6,"td",12),i.BQk(),i.ynx(18,13),i.YNc(19,Jz,1,0,"th",7),i.YNc(20,Qz,5,6,"td",12),i.BQk(),i.YNc(21,Xz,1,0,"tr",14),i.YNc(22,Kz,1,0,"tr",15),i.qZA()()()()),2&e&&(i.xp6(1),i.hij(" ",t.authenticationPage?"":i.lcZ(2,5,i.lcZ(3,7,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.TITLE")),"\n"),i.xp6(3),i.Q6J("ngIf",!t.logins.length&&!t.authenticationPage),i.xp6(4),i.Q6J("dataSource",t.dataSource),i.xp6(13),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns))},dependencies:[w.O5,eo,hs,to,ps,us,io,fs,ms,no,ro,gs,Mn,Dt,Qe,Qt],styles:[".dark-hover-list-item[_ngcontent-%COMP%]:hover{background-color:#0000000d}"]}),n})();function Cj(n,a){1&n&&i._UZ(0,"mat-spinner",8)}function vj(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",9),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.DATA_QUOTAS.NO_QUOTAS"))))}function Tj(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"p")(2,"strong"),i._uU(3),i.ALo(4,"translate"),i.ALo(5,"customTranslate"),i.qZA(),i._uU(6),i.qZA(),i.TgZ(7,"p",10),i._uU(8),i.ALo(9,"translate"),i.ALo(10,"customTranslate"),i.qZA(),i.TgZ(11,"button",11),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit,l=i.oxw(3).$implicit,c=i.oxw();return i.KtG(c.requestChangeQuota(l,r))}),i._uU(12),i.ALo(13,"translate"),i.ALo(14,"customTranslate"),i.qZA()()}if(2&n){const e=i.oxw(5);i.xp6(3),i.Oqu(i.lcZ(4,4,i.lcZ(5,6,"SHARED_LIB.PERUN.COMPONENTS.DATA_QUOTAS.QUOTA"))),i.xp6(3),i.hij(" ",e.quotasMarkup," "),i.xp6(2),i.hij(" ",i.lcZ(9,8,i.lcZ(10,10,"SHARED_LIB.PERUN.COMPONENTS.DATA_QUOTAS.QUOTA_INFO"))," "),i.xp6(4),i.hij(" ",i.lcZ(13,12,i.lcZ(14,14,"SHARED_LIB.PERUN.COMPONENTS.DATA_QUOTAS.CHANGE"))," ")}}function xj(n,a){1&n&&(i.TgZ(0,"p"),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.DATA_QUOTAS.NO_QUOTAS"))," "))}function Sj(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-expansion-panel",3),i.NdJ("opened",function(){const l=i.CHM(e).$implicit,c=i.oxw(4);return i.KtG(c.getResAttributes(l.id))}),i.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),i._uU(3),i.qZA()(),i.YNc(4,Tj,15,16,"div",7),i.YNc(5,xj,4,5,"p",7),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw(4);i.xp6(3),i.hij(" ",e.name," "),i.xp6(1),i.Q6J("ngIf",t.defaultQuota),i.xp6(1),i.Q6J("ngIf",!t.defaultQuota)}}function Ej(n,a){if(1&n&&(i.TgZ(0,"mat-accordion"),i.YNc(1,Sj,6,3,"mat-expansion-panel",2),i.qZA()),2&n){const e=i.oxw(3);i.xp6(1),i.Q6J("ngForOf",e.resources)}}function Dj(n,a){if(1&n&&(i.YNc(0,Cj,1,0,"mat-spinner",5),i.YNc(1,vj,4,5,"perun-web-apps-alert",6),i.YNc(2,Ej,2,1,"mat-accordion",7)),2&n){const e=i.oxw(2);i.Q6J("ngIf",e.loading),i.xp6(1),i.Q6J("ngIf",0===e.resources.length&&!e.loading),i.xp6(1),i.Q6J("ngIf",e.resources.length&&!e.loading)}}function Hj(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-expansion-panel",3),i.NdJ("opened",function(){const l=i.CHM(e).$implicit,c=i.oxw();return i.KtG(c.getMembersResources(l))}),i.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),i._uU(3),i.qZA()(),i.YNc(4,Dj,3,3,"ng-template",4),i.qZA()}if(2&n){const e=a.$implicit;i.xp6(3),i.hij(" ",e.name," ")}}let Lj=(()=>{class n{constructor(e,t,r,l,c,s,o){this.store=e,this.usersManagerService=t,this.membersService=r,this.resourcesManagerService=l,this.attributesManagerService=c,this.dialog=s,this.entityStorageService=o,this.vos=[],this.resources=[],this.quotasMarkup="",this.filteredVos=[]}ngOnInit(){this.usersManagerService.getVosWhereUserIsMember(this.user.id).subscribe(e=>{this.vos=e,this.filteredVos=e})}getMembersResources(e){this.loading=!0,this.resources=[],this.membersService.getMemberByUser(e.id,this.user.id).subscribe(t=>{this.resourcesManagerService.getAssignedRichResourcesWithMember(t.id).subscribe(r=>{let l=r.length;l||(this.loading=!1),r.forEach(c=>{this.attributesManagerService.getResourceAttributes(c.id).subscribe(s=>{l--,s.find(o=>"defaultDataQuotas"===o.friendlyName)&&this.resources.push(c),this.loading=0!==l})})})})}getResAttributes(e){this.attributesManagerService.getResourceAttributes(e).subscribe(t=>{let r=t.find(l=>"dataQuotas"===l.friendlyName);if(r?.value){const l=Object.entries(r.value).map(c=>String(c[1]));this.currentQuota=l[0]}else this.currentQuota="";if(r=t.find(l=>"defaultDataQuotas"===l.friendlyName),r?.value){const l=Object.entries(r.value).map(c=>String(c[1]));this.defaultQuota=l[0]}else this.defaultQuota="";this.currentQuota||(this.currentQuota=this.defaultQuota),this.parseMarkup()})}requestChangeQuota(e,t){const r=ri();r.width="400px",r.data={vo:e,resource:t,user:this.user,currentQuota:this.quotasMarkup},this.dialog.open(Xk,r)}applyFilter(e){this.filteredVos=this.vos.filter(t=>t.name.toLowerCase().includes(e.toLowerCase()))}parseMarkup(){let e="";e+=this.currentQuota,e+=` (default: ${this.defaultQuota})`,e=e.split(":").join(" : ").split("K").join(" KiB").split("M").join(" MiB").split("G").join(" GiB").split("T").join(" TiB").split("E").join(" EiB"),this.quotasMarkup=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(jt),i.Y36(ei),i.Y36(Jr),i.Y36(Qr),i.Y36(ji),i.Y36(Fi),i.Y36(Vv))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-data-quotas"]],inputs:{user:"user"},decls:9,vars:11,consts:[[1,"page-title"],[3,"placeholder","filter"],[3,"opened",4,"ngFor","ngForOf"],[3,"opened"],["matExpansionPanelContent",""],["class","ml-auto mr-auto",4,"ngIf"],["alert_type","warn",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["alert_type","warn"],[1,"color-gray"],["mat-flat-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"perun-web-apps-immediate-filter",1),i.NdJ("filter",function(l){return t.applyFilter(l)}),i.ALo(5,"translate"),i.ALo(6,"customTranslate"),i.qZA(),i.TgZ(7,"mat-accordion"),i.YNc(8,Hj,5,1,"mat-expansion-panel",2),i.qZA()),2&e&&(i.xp6(1),i.hij(" ",i.lcZ(2,3,i.lcZ(3,5,"SHARED_LIB.PERUN.COMPONENTS.DATA_QUOTAS.TITLE")),"\n"),i.xp6(3),i.Q6J("placeholder",i.lcZ(5,7,i.lcZ(6,9,"SHARED_LIB.PERUN.COMPONENTS.DATA_QUOTAS.FILTER"))),i.xp6(4),i.Q6J("ngForOf",t.filteredVos))},dependencies:[w.sg,w.O5,Ei,Mn,Dt,$A,mg,gg,GA,fg,lf,Qe,Qt],styles:[".color-gray[_ngcontent-%COMP%]{color:gray}"]}),n})();function Pj(n,a){1&n&&i._UZ(0,"mat-spinner",8)}function Rj(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",9),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.OPT_OUT_MAILING_LISTS.NO_MAILING_LISTS_ALERT"))))}function kj(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-expansion-panel",3),i.NdJ("closed",function(){i.CHM(e);const r=i.oxw(4);return i.KtG(r.deselectResource())})("afterExpand",function(){const l=i.CHM(e).$implicit,c=i.oxw(4);return i.KtG(c.changeSelectedResource(l))}),i.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),i._uU(3),i.qZA()(),i.TgZ(4,"div",10)(5,"mat-checkbox",11),i.NdJ("change",function(){i.CHM(e);const r=i.oxw(4);return i.KtG(r.setOptOut())}),i.qZA(),i.TgZ(6,"p"),i._uU(7),i.ALo(8,"translate"),i.ALo(9,"customTranslate"),i.qZA()()()}if(2&n){const e=a.$implicit,t=i.oxw(4);i.Q6J("expanded",e.name===t.selectedResource),i.xp6(3),i.hij(" ",e.name," "),i.xp6(2),i.Q6J("checked",t.optOutAttribute&&null!==t.optOutAttribute.value),i.xp6(2),i.hij(" ",i.lcZ(8,4,i.lcZ(9,6,"SHARED_LIB.PERUN.COMPONENTS.OPT_OUT_MAILING_LISTS.OPT_OUT_LABEL"))," ")}}function Oj(n,a){if(1&n&&(i.TgZ(0,"mat-accordion"),i.YNc(1,kj,10,8,"mat-expansion-panel",2),i.qZA()),2&n){const e=i.oxw(3);i.xp6(1),i.Q6J("ngForOf",e.resources)}}function Ij(n,a){if(1&n&&(i.YNc(0,Pj,1,0,"mat-spinner",5),i.YNc(1,Rj,4,5,"perun-web-apps-alert",6),i.YNc(2,Oj,2,1,"mat-accordion",7)),2&n){const e=i.oxw(2);i.Q6J("ngIf",e.loading),i.xp6(1),i.Q6J("ngIf",0===e.resources.length&&!e.loading),i.xp6(1),i.Q6J("ngIf",e.resources.length&&!e.loading)}}function Bj(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-expansion-panel",3),i.NdJ("closed",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.deselectVo())})("afterExpand",function(){const l=i.CHM(e).$implicit,c=i.oxw();return i.KtG(c.changeSelectedVo(l))}),i.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),i._uU(3),i.qZA()(),i.YNc(4,Ij,3,3,"ng-template",4),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.Q6J("expanded",e.shortName===t.selectedVo),i.xp6(3),i.hij(" ",e.name," ")}}let Nj=(()=>{class n{constructor(e,t,r,l,c,s,o,d,u){this.store=e,this.usersManagerService=t,this.membersService=r,this.resourcesManagerService=l,this.attributesManagerService=c,this.route=s,this.router=o,this.notificator=d,this.translate=u,this.vos=[],this.resources=[],this.optOuts=[],this.filteredVos=[],this.loading=!0,this.selectedVo=null,this.selectedResource=null}ngOnDestroy(){this.isService||this.router.navigate([],{relativeTo:this.route,queryParams:{vo:null,resource:null},replaceUrl:!0,queryParamsHandling:"merge"})}ngOnInit(){this.route.queryParams.subscribe(e=>{this.selectedVo=String(e.vo),this.selectedResource=String(e.resource),this.changeOptOut=String(e.action),this.usersManagerService.getVosWhereUserIsMember(this.user.id).subscribe(t=>{if(this.vos=t.sort(Lv),this.filteredVos=t,void 0!==this.selectedResource){const r=this.vos.find(l=>l.shortName===this.selectedVo);r&&this.getMailingLists(r)}else if(void 0!==this.selectedVo){const r=this.vos.find(l=>l.shortName===this.selectedVo);r&&(this.getMailingLists(r),this.changeSelectedVo(r))}})}).unsubscribe()}changeSelectedResource(e){this.selectedResource!==e.name&&this.getOptOutAttribute(e),this.isService||(this.changeOptOut&&("subscribe"===this.changeOptOut?this.subscribe():"unsubscribe"===this.changeOptOut&&this.unsubscribe(),this.changeOptOut=null),this.router.navigate([],{relativeTo:this.route,queryParams:{vo:this.selectedVo,resource:this.selectedResource,action:null},queryParamsHandling:"merge"}))}changeSelectedVo(e){this.selectedVo!==e.shortName&&(this.getMailingLists(e),this.selectedResource=null),this.isService||this.router.navigate([],{relativeTo:this.route,queryParams:{vo:this.selectedVo,resource:this.selectedResource},queryParamsHandling:"merge"})}getMailingLists(e){this.selectedVo=e.shortName,this.loading=!0,this.resources=[],this.membersService.getMemberByUser(e.id,this.user.id).subscribe(t=>{this.resourcesManagerService.getMailingServiceRichResourcesWithMember(t.id).subscribe(r=>{let l=r.length;l||(this.loading=!1),r.forEach(c=>{this.attributesManagerService.getRequiredAttributesMemberResource(t.id,c.id).subscribe(s=>{this.attributesManagerService.getResourceAttributeByName(c.id,"urn:perun:resource:attribute-def:def:disableMailingListOptOut").subscribe(o=>{l--;const d=s.find(u=>"optOutMailingList"===u.friendlyName);d&&"true"!==o?.value&&(this.optOuts.push({resource:c.id,member:t.id,attribute:d}),this.resources.push(c),this.selectedResource===c.name&&(this.getOptOutAttribute(c),this.changeSelectedResource(c))),this.loading=0!==l})})})}),this.resources.sort(Lv)})}getOptOutAttribute(e){this.selectedResource=e.name,this.index=this.resources.indexOf(e),this.optOutAttribute=this.optOuts[this.index].attribute}unsubscribe(){const e=String(this.optOuts[this.index].attribute.value);this.optOuts[this.index].attribute.value="true",this.attributesManagerService.setMemberResourceAttribute(this.optOuts[this.index]).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.OPT_OUT_MAILING_LISTS.UNSUBSCRIBED")+this.selectedResource+".")},()=>{this.optOuts[this.index].attribute.value=e})}subscribe(){const e=String(this.optOuts[this.index].attribute.value);this.optOuts[this.index].attribute.value=null,this.attributesManagerService.setMemberResourceAttribute(this.optOuts[this.index]).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.OPT_OUT_MAILING_LISTS.SUBSCRIBED")+this.selectedResource+".")},()=>{this.optOuts[this.index].attribute.value=e})}setOptOut(){this.optOutAttribute.value?this.subscribe():this.unsubscribe()}applyFilter(e){this.filteredVos=this.vos.filter(t=>t.name.toLowerCase().includes(e.toLowerCase()))}deselectVo(){this.loading=!0,this.selectedVo=null,this.selectedResource=null,this.isService||this.router.navigate([],{relativeTo:this.route,queryParams:{vo:this.selectedVo,resource:this.selectedResource},queryParamsHandling:"merge"})}deselectResource(){this.selectedResource=null,this.isService||this.router.navigate([],{relativeTo:this.route,queryParams:{vo:this.selectedVo,resource:this.selectedResource},queryParamsHandling:"merge"})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(jt),i.Y36(ei),i.Y36(Jr),i.Y36(Qr),i.Y36(ji),i.Y36(In),i.Y36(Ni),i.Y36(_r),i.Y36($t))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-mailing-lists"]],inputs:{user:"user",isService:"isService"},decls:9,vars:11,consts:[[1,"page-title"],[3,"placeholder","filter"],[3,"expanded","closed","afterExpand",4,"ngFor","ngForOf"],[3,"expanded","closed","afterExpand"],["matExpansionPanelContent",""],["class","ml-auto mr-auto",4,"ngIf"],["alert_type","warn",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["alert_type","warn"],[1,"row"],[1,"ml-3","mr-2",3,"checked","change"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"perun-web-apps-immediate-filter",1),i.NdJ("filter",function(l){return t.applyFilter(l)}),i.ALo(5,"translate"),i.ALo(6,"customTranslate"),i.qZA(),i.TgZ(7,"mat-accordion"),i.YNc(8,Bj,5,2,"mat-expansion-panel",2),i.qZA()),2&e&&(i.xp6(1),i.hij(" ",i.lcZ(2,3,i.lcZ(3,5,"SHARED_LIB.PERUN.COMPONENTS.OPT_OUT_MAILING_LISTS.TITLE")),"\n"),i.xp6(3),i.Q6J("placeholder",i.lcZ(5,7,i.lcZ(6,9,"SHARED_LIB.PERUN.COMPONENTS.OPT_OUT_MAILING_LISTS.FILTER"))),i.xp6(4),i.Q6J("ngForOf",t.filteredVos))},dependencies:[w.sg,w.O5,nc,Ei,Mn,$A,mg,gg,GA,fg,lf,Qe,Qt]}),n})();function Vj(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-list-item",4)(1,"p",5),i.NdJ("click",function(){const l=i.CHM(e).$implicit,c=i.oxw();return i.KtG(c.showWholeKey(l))}),i._uU(2),i.qZA(),i.TgZ(3,"button",6),i.ALo(4,"translate"),i.ALo(5,"customTranslate"),i.TgZ(6,"mat-icon"),i._uU(7," file_copy "),i.qZA()(),i.TgZ(8,"button",7),i.NdJ("click",function(){const l=i.CHM(e).$implicit,c=i.oxw();return i.KtG(c.removeKey(l,!1))}),i.ALo(9,"translate"),i.ALo(10,"customTranslate"),i.TgZ(11,"mat-icon"),i._uU(12," delete "),i.qZA()()()}if(2&n){const e=a.$implicit;i.xp6(2),i.Oqu(e),i.xp6(1),i.s9C("matTooltip",i.lcZ(4,4,i.lcZ(5,6,"SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.COPY_TOOLTIP"))),i.Q6J("cdkCopyToClipboard",e),i.xp6(5),i.s9C("matTooltip",i.lcZ(9,8,i.lcZ(10,10,"SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.REMOVE_TOOLTIP")))}}function Fj(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-list-item",4)(1,"label",8),i.NdJ("click",function(){const l=i.CHM(e).$implicit,c=i.oxw();return i.KtG(c.showWholeKey(l))}),i._uU(2),i.qZA(),i.TgZ(3,"button",9)(4,"mat-icon"),i._uU(5," file_copy "),i.qZA()(),i.TgZ(6,"button",10),i.NdJ("click",function(){const l=i.CHM(e).$implicit,c=i.oxw();return i.KtG(c.removeKey(l,!0))}),i.TgZ(7,"mat-icon"),i._uU(8," delete "),i.qZA()()()}if(2&n){const e=a.$implicit;i.xp6(2),i.Oqu(e),i.xp6(1),i.Q6J("cdkCopyToClipboard",e)}}let zj=(()=>{class n{constructor(e,t,r,l,c){this.store=e,this.attributesManagerService=t,this.dialog=r,this.translateService=l,this.entityStorageService=c,this.adminKeys=[],this.userKeys=[],this.userUrn="urn:perun:user:attribute-def:def:sshPublicKey",this.adminUrn="urn:perun:user:attribute-def:def:sshPublicAdminKey",this.selection=new Vn(!1,[]),this.selectionAdmin=new Vn(!1,[]),l.get("SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.REMOVE_DIALOG_DESCRIPTION").subscribe(s=>this.removeDialogDescription=s),l.get("SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.REMOVE_DIALOG_TITLE").subscribe(s=>this.removeDialogTitle=s),l.get("ALERTS.NO_ALT_PASSWORDS").subscribe(s=>this.alertText=s),l.get("SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.HEADER_COLUMN").subscribe(s=>this.headerColumnText=s)}ngOnInit(){this.userId=window.location.pathname.startsWith("/myProfile")?this.entityStorageService.getEntity().id:this.store.getPerunPrincipal().userId,this.translateService.onLangChange.subscribe(()=>{this.translateService.get("SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.REMOVE_DIALOG_DESCRIPTION").subscribe(e=>this.removeDialogDescription=e),this.translateService.get("SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.REMOVE_DIALOG_TITLE").subscribe(e=>this.removeDialogTitle=e),this.translateService.get("ALERTS.NO_ALT_PASSWORDS").subscribe(e=>this.alertText=e),this.translateService.get("SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.HEADER_COLUMN").subscribe(e=>this.headerColumnText=e)}),this.loading=!0,this.getUserSSH(),this.getAdminSSH()}addKey(e){const t=ri();t.width="850px",t.data={attribute:e?this.adminKeyAttribute:this.userKeyAttribute,userId:this.userId},this.dialog.open(Zo,t).afterClosed().subscribe(l=>{l&&(e?this.getAdminSSH():this.getUserSSH())})}removeKey(e,t){const r=ri();r.width="600px",r.data={values:[e],attribute:t?this.adminKeyAttribute:this.userKeyAttribute,userId:this.userId,title:this.removeDialogTitle,description:this.removeDialogDescription},this.dialog.open(BA,r).afterClosed().subscribe(c=>{c&&(this.loading=!0,t?(this.getAdminSSH(),this.selectionAdmin.clear()):(this.getUserSSH(),this.selection.clear()))})}getUserSSH(){this.attributesManagerService.getUserAttributeByName(this.userId,this.userUrn).subscribe(e=>{this.userKeyAttribute=e,this.userKeys=e.value,this.loading=!1})}getAdminSSH(){this.attributesManagerService.getUserAttributeByName(this.userId,this.adminUrn).subscribe(e=>{this.adminKeyAttribute=e,this.adminKeys=e.value,this.loading=!1})}showWholeKey(e){const t=ri();t.width="600px",t.data={value:e},this.dialog.open(oO,t)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(jt),i.Y36(ji),i.Y36(Fi),i.Y36($t),i.Y36(Vv))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-settings-ssh-keys"]],decls:28,vars:32,consts:[[1,"page-title"],["mat-flat-button","","color","accent",1,"action-button",3,"click"],["class","dark-hover-list-item w-auto","matRipple","",4,"ngFor","ngForOf"],[1,"page-title","mt-5"],["matRipple","",1,"dark-hover-list-item","w-auto"],[1,"truncate","center-content","cursor-pointer",3,"click"],["color","accent","mat-icon-button","",1,"ml-auto","center-content",3,"cdkCopyToClipboard","matTooltip"],["color","warn","mat-icon-button","",1,"ml-2","center-content",3,"matTooltip","click"],[1,"truncate","center-content",3,"click"],["mat-icon-button","","color","accent",1,"ml-auto","center-content",3,"cdkCopyToClipboard"],["mat-icon-button","","color","warn",1,"ml-2","center-content",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"p"),i._uU(5),i.ALo(6,"translate"),i.ALo(7,"customTranslate"),i.qZA(),i.TgZ(8,"button",1),i.NdJ("click",function(){return t.addKey(!1)}),i._uU(9),i.ALo(10,"translate"),i.ALo(11,"customTranslate"),i.qZA(),i.TgZ(12,"mat-list"),i.YNc(13,Vj,13,12,"mat-list-item",2),i.qZA(),i.TgZ(14,"h1",3),i._uU(15),i.ALo(16,"translate"),i.ALo(17,"customTranslate"),i.qZA(),i.TgZ(18,"p"),i._uU(19),i.ALo(20,"translate"),i.ALo(21,"customTranslate"),i.qZA(),i.TgZ(22,"button",1),i.NdJ("click",function(){return t.addKey(!0)}),i._uU(23),i.ALo(24,"translate"),i.ALo(25,"customTranslate"),i.qZA(),i.TgZ(26,"mat-list"),i.YNc(27,Fj,9,2,"mat-list-item",2),i.qZA()),2&e&&(i.xp6(1),i.hij(" ",i.lcZ(2,8,i.lcZ(3,10,"SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.SSH_KEYS_TITLE")),"\n"),i.xp6(4),i.Oqu(i.lcZ(6,12,i.lcZ(7,14,"SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.SSH_KEYS_DESCRIPTION"))),i.xp6(4),i.hij(" ",i.lcZ(10,16,i.lcZ(11,18,"SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.NEW_KEY")),"\n"),i.xp6(4),i.Q6J("ngForOf",t.userKeys),i.xp6(2),i.hij(" ",i.lcZ(16,20,i.lcZ(17,22,"SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.ADMIN_SSH_KEYS_TITLE")),"\n"),i.xp6(4),i.hij(" ",i.lcZ(20,24,i.lcZ(21,26,"SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.ADMIN_SSH_KEYS_DESCRIPTION")),"\n"),i.xp6(4),i.hij(" ",i.lcZ(24,28,i.lcZ(25,30,"SHARED_LIB.PERUN.COMPONENTS.SSH_KEYS.NEW_KEY")),"\n"),i.xp6(4),i.Q6J("ngForOf",t.adminKeys))},dependencies:[w.sg,Ji,Dt,gr,na,lT,pT,VA,Qe,Qt],styles:[".truncate[_ngcontent-%COMP%]{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap}.center-content[_ngcontent-%COMP%]{margin-bottom:auto;margin-top:auto}label[_ngcontent-%COMP%]:hover, .cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),n})();function Gj(n,a){1&n&&i._UZ(0,"mat-spinner",5)}function $j(n,a){1&n&&i._UZ(0,"mat-spinner",5)}function Zj(n,a){if(1&n&&i._UZ(0,"perun-web-apps-attributes-list",10),2&n){const e=i.oxw(3);i.Q6J("attributes",e.attributes)("readonly",!0)("hiddenColumns",e.hiddenColumns)}}function Jj(n,a){if(1&n&&(i.YNc(0,$j,1,0,"mat-spinner",3),i.YNc(1,Zj,1,3,"perun-web-apps-attributes-list",9)),2&n){const e=i.oxw(2);i.Q6J("ngIf",e.innerLoading),i.xp6(1),i.Q6J("ngIf",!e.innerLoading)}}function Qj(n,a){1&n&&i._UZ(0,"mat-spinner",5)}function Xj(n,a){if(1&n&&i._UZ(0,"perun-web-apps-attributes-list",10),2&n){const e=i.oxw(4);i.Q6J("attributes",e.attributes)("readonly",!0)("hiddenColumns",e.hiddenColumns)}}function Kj(n,a){if(1&n&&(i.YNc(0,Qj,1,0,"mat-spinner",3),i.YNc(1,Xj,1,3,"perun-web-apps-attributes-list",9)),2&n){const e=i.oxw(3);i.Q6J("ngIf",e.innerLoading),i.xp6(1),i.Q6J("ngIf",!e.innerLoading)}}function e4(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-expansion-panel",6),i.NdJ("opened",function(){const l=i.CHM(e).$implicit,c=i.oxw(2);return i.KtG(c.getMemberData(l))}),i.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),i._uU(3),i.ALo(4,"translate"),i.ALo(5,"customTranslate"),i.qZA()(),i.YNc(6,Kj,2,2,"ng-template",7),i.qZA()}if(2&n){const e=a.$implicit;i.xp6(3),i.AsE(" ",i.lcZ(4,2,i.lcZ(5,4,"PRIVACY.DATA")),"",e.name," ")}}function t4(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-accordion")(1,"mat-expansion-panel",6),i.NdJ("opened",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.getUserData())}),i.TgZ(2,"mat-expansion-panel-header")(3,"mat-panel-title"),i._uU(4),i.ALo(5,"translate"),i.ALo(6,"customTranslate"),i.qZA()(),i.YNc(7,Jj,2,2,"ng-template",7),i.qZA(),i.YNc(8,e4,7,6,"mat-expansion-panel",8),i.qZA()}if(2&n){const e=i.oxw();i.xp6(4),i.hij(" ",i.lcZ(5,2,i.lcZ(6,4,"PRIVACY.USER_INFO"))," "),i.xp6(4),i.Q6J("ngForOf",e.filteredVos)}}new Date(324721404e5).valueOf();let n4=(()=>{class n{constructor(e,t,r,l){this.usersManagerService=e,this.membersService=t,this.attributesManagerService=r,this.storage=l,this.vos=[],this.attributes=[],this.username="",this.hiddenColumns=["select","id"],this.filteredVos=[]}ngOnInit(){this.outerLoading=!0,this.userId=this.storage.getPerunPrincipal().userId,this.usersManagerService.getVosWhereUserIsMember(this.userId).subscribe(e=>{this.vos=e,this.filteredVos=e,this.outerLoading=!1})}getUserData(){this.innerLoading=!0,this.usersManagerService.getRichUserWithAttributes(this.userId).subscribe(e=>{this.user=e,this.attributes=e.userAttributes,this.username=(new TA).transform(e),this.innerLoading=!1})}getMemberData(e){this.innerLoading=!0,this.membersService.getMemberByUser(e.id,this.userId).subscribe(t=>{this.membersService.getRichMemberWithAttributes(t.id).subscribe(r=>{this.attributes=r.memberAttributes,this.innerLoading=!1})})}applyFilter(e){this.filteredVos=this.vos.filter(t=>t.name.toLowerCase().includes(e.toLowerCase()))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(ei),i.Y36(Jr),i.Y36(ji),i.Y36(jt))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-privacy-page"]],decls:10,vars:12,consts:[[1,"page-title","mt-2"],[1,"user-theme"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"opened"],["matExpansionPanelContent",""],[3,"opened",4,"ngFor","ngForOf"],[3,"attributes","readonly","hiddenColumns",4,"ngIf"],[3,"attributes","readonly","hiddenColumns"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div",1)(5,"perun-web-apps-immediate-filter",2),i.NdJ("filter",function(l){return t.applyFilter(l)}),i.ALo(6,"translate"),i.ALo(7,"customTranslate"),i.qZA(),i.YNc(8,Gj,1,0,"mat-spinner",3),i.YNc(9,t4,9,6,"mat-accordion",4),i.qZA()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,4,i.lcZ(3,6,"PRIVACY.TITLE"))),i.xp6(4),i.Q6J("placeholder",i.lcZ(6,8,i.lcZ(7,10,"SERVICES.FILTER"))),i.xp6(3),i.Q6J("ngIf",t.outerLoading),i.xp6(1),i.Q6J("ngIf",!t.outerLoading))},dependencies:[w.sg,w.O5,lf,jz,$A,mg,gg,GA,fg,Ei,Qe,Qt]}),n})(),r4=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-home-page"]],decls:1,vars:0,template:function(e,t){1&e&&i._UZ(0,"router-outlet")},dependencies:[Ma]}),n})();function a4(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",11),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"DIALOGS.ADD_AUTH_IMG.INFO"))))}function s4(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",12),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"DIALOGS.ADD_AUTH_IMG.IMG_TOO_LONG"))))}function o4(n,a){if(1&n&&(i.TgZ(0,"div",13),i._UZ(1,"img",14),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Q6J("src",e.newImage,i.LSH)}}function l4(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",11),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"DIALOGS.ADD_AUTH_IMG.DELAY_INFO"))))}let d4=(()=>{class n{constructor(e,t,r,l){this.dialogRef=e,this.data=t,this.attributesManagerService=r,this.store=l,this.newImage=""}ngOnInit(){this.theme=this.data.theme,this.attribute=this.data.attribute,this.newImage=this.attribute.value}handleInputChange(e){const t=e.dataTransfer?.files[0]??e.target?.files[0],l=new FileReader;t.type.match(/image-*/)?(l.onload=this._handleReaderLoaded.bind(this),this.imageType=t.type,l.readAsDataURL(t)):alert("invalid format")}_handleReaderLoaded(e){const t=e.target;let r=100;const l=()=>{c(t.result).then(s=>{r>50&&s.length>6144?(r-=10,l()):(this.newImage=s,this.imgTooLong=this.newImage.length>=6144)}).catch(s=>console.error(s))},c=s=>new Promise((o,d)=>{const u=new Image;u.src=s,u.onload=()=>{const h=document.createElement("canvas");let f=u.width,b=u.height;f>b?f>r&&(b*=r/f,f=r):b>r&&(f*=r/b,b=r),h.width=f,h.height=b;const B=h.getContext("2d");B.drawImage(u,0,0,f,b);const X=B.canvas.toDataURL();o(X)},u.onerror=h=>d(h)});l()}onAdd(){this.attribute.value=this.newImage,this.attributesManagerService.setUserAttribute({attribute:this.attribute,user:this.store.getPerunPrincipal().userId}).subscribe(()=>{this.dialogRef.close(!0)})}onCancel(){this.dialogRef.close(!1)}generateImg(){function d(f,b,B,X){X.beginPath(),X.rect(20*f,20*b,20,20),X.fillStyle="rgb("+B.join(",")+")",X.fill()}this.newImage=function h(){const f=function o(){const f=document.createElement("canvas");f.width=100,f.height=100;const b=f.getContext("2d");return b.beginPath(),b.rect(0,0,100,100),b.fillStyle="#FFFFFF",b.fill(),f}(),b=f.getContext("2d"),B=function u(){const f=[];for(let b=0;b<3;b++){const B=Math.floor(256*Math.random()),X=Math.max(120,B),he=Math.min(200,X);f.push(he)}return f}();for(let X=0;X{class n{constructor(e,t,r,l){this.dialogRef=e,this.data=t,this.attributesManagerService=r,this.store=l,this.securityText=""}ngOnInit(){this.theme=this.data.theme,this.attribute=this.data.attribute,this.attribute.value&&(this.securityText=String(this.attribute.value))}onAdd(){this.attribute.value=this.securityText,this.attributesManagerService.setUserAttribute({attribute:this.attribute,user:this.store.getPerunPrincipal().userId}).subscribe(()=>{this.dialogRef.close(!0)})}onCancel(){this.dialogRef.close(!1)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(xi),i.Y36(fn),i.Y36(ji),i.Y36(jt))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-add-auth-text-dialog"]],decls:18,vars:19,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"w-100"],["matInput","","autofocus","",3,"ngModel","ngModelChange"],["alert_type","info"],["matDialogActions",""],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["color","accent","mat-flat-button","",3,"disabled","click"]],template:function(e,t){1&e&&(i.TgZ(0,"div")(1,"h1",0),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"div",1)(5,"mat-form-field",2)(6,"input",3),i.NdJ("ngModelChange",function(l){return t.securityText=l}),i.qZA()(),i.TgZ(7,"perun-web-apps-alert",4),i._uU(8),i.ALo(9,"translate"),i.ALo(10,"customTranslate"),i.qZA()(),i.TgZ(11,"div",5)(12,"button",6),i.NdJ("click",function(){return t.onCancel()}),i._uU(13),i.ALo(14,"translate"),i.qZA(),i.TgZ(15,"button",7),i.NdJ("click",function(){return t.onAdd()}),i._uU(16),i.ALo(17,"translate"),i.qZA()()()),2&e&&(i.Tol(t.theme),i.xp6(2),i.Oqu(i.lcZ(3,9,"DIALOGS.ADD_AUTH_TEXT.TITLE")),i.xp6(4),i.Q6J("ngModel",t.securityText),i.xp6(2),i.hij(" ",i.lcZ(9,11,i.lcZ(10,13,"DIALOGS.ADD_AUTH_TEXT.DELAY_INFO"))," "),i.xp6(5),i.hij(" ",i.lcZ(14,15,"DIALOGS.ADD_AUTH_TEXT.CANCEL")," "),i.xp6(2),i.Q6J("disabled",""===t.securityText.trim()),i.xp6(1),i.hij(" ",i.lcZ(17,17,"DIALOGS.ADD_AUTH_TEXT.ADD")," "))},dependencies:[Dt,Mn,hn,Qi,sn,Wi,zn,An,pn,ka,Qe,Qt]}),n})(),h4=(()=>{class n{constructor(e){this.translate=e}transform(e){return this.translate.currentLang in e?e[this.translate.currentLang]:this.translate.defaultLang in e?e[this.translate.defaultLang]:e[Object.keys(e)[0]]}}return n.\u0275fac=function(e){return new(e||n)(i.Y36($t,16))},n.\u0275pipe=i.Yjl({name:"categoryLabel",type:n,pure:!0}),n})();const p4=["toggle"];function f4(n,a){1&n&&i._UZ(0,"mat-spinner",8)}function m4(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"mat-slide-toggle",13),i.NdJ("toggleChange",function(){const l=i.CHM(e).$implicit,c=i.oxw(2).$implicit,s=i.oxw(2);return i.KtG(s.toggleRps(c,l.key))}),i._uU(2),i.ALo(3,"categoryLabel"),i.qZA()()}if(2&n){const e=a.$implicit,t=i.oxw(2).$implicit;i.xp6(1),i.Q6J("checked",null==t?null:t.value.rps_value[e.key]),i.xp6(1),i.hij(" ",i.lcZ(3,2,e.value)," ")}}function g4(n,a){if(1&n&&(i.TgZ(0,"div"),i.YNc(1,m4,4,4,"div",9),i.ALo(2,"keyvalue"),i.qZA()),2&n){const e=i.oxw().$implicit;i.xp6(1),i.Q6J("ngForOf",i.lcZ(2,1,null==e?null:e.value.rps))}}function _4(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"span",10)(2,"mat-slide-toggle",11),i.NdJ("toggleChange",function(){const l=i.CHM(e).$implicit,c=i.oxw(2);return i.KtG(c.toggleCategory(l.value))}),i._uU(3),i.ALo(4,"categoryLabel"),i.qZA(),i.TgZ(5,"button",12),i.NdJ("click",function(){const l=i.CHM(e).$implicit;return i.KtG(l.value.show=!l.value.show)}),i.TgZ(6,"mat-icon"),i._uU(7),i.qZA()()(),i.YNc(8,g4,3,3,"div",7),i.qZA()}if(2&n){const e=a.$implicit;i.xp6(2),i.Q6J("checked",e.value.value),i.xp6(1),i.hij(" ",i.lcZ(4,4,e.value.label)," "),i.xp6(4),i.hij(" ",e.value.show?"keyboard_arrow_up":"keyboard_arrow_down"," "),i.xp6(1),i.Q6J("ngIf",e.value.show)}}function b4(n,a){if(1&n&&(i.TgZ(0,"div"),i.YNc(1,_4,9,6,"div",9),i.ALo(2,"keyvalue"),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Q6J("ngForOf",i.lcZ(2,1,e.categories))}}function A4(n,a){1&n&&i._UZ(0,"mat-spinner",8)}let y4=(()=>{class n{constructor(e,t,r,l,c,s,o){this.translate=e,this.attributesManagerService=t,this.store=r,this.oauthService=l,this.authService=c,this.httpClient=s,this.mfaApiService=o,this.mfaAvailable=!1,this.loadingMfa=!1,this.showDetail=!1,this.loadingCategories=!1,this.includeCategories=[],this.excludeRps=[],this.allCategories=!1,this.unchangedSettings=!0,this.unchangedEnforce=!0,this.categories={}}ngOnInit(){this.loadingMfa=!0,this.enableDetailSettings=this.store.getProperty("mfa").enable_detail_settings,this.mfaApiService.isMfaAvailable().subscribe({next:e=>{this.mfaAvailable=e,e?this.loadMfa():this.loadingMfa=!1},error:e=>{console.error(e),this.loadingMfa=!1}})}loadMfa(){if(sessionStorage.getItem("mfa_route")){const t=sessionStorage.getItem("enforce_mfa");t&&this.changeEnforceMfa("true"===t),sessionStorage.getItem("settings_mfa")&&this.updateDetailSettings()}else{const t=this.store.getProperty("mfa").enforce_mfa_attribute;this.attributesManagerService.getUserAttributeByName(this.store.getPerunPrincipal().userId,t).subscribe({next:r=>{r.value?(this.enforceMfa=!0,this.toggle.toggle()):this.enforceMfa=!1,this.loadingMfa=!1},error:r=>{console.error(r),this.loadingMfa=!1}})}}getCategoriesAndSettings(){this.loadingCategories=!0,this.mfaApiService.getCategories().subscribe({next:e=>{this.categories=e,this.getSettings()},error:e=>{console.error(e),this.loadingCategories=!1}})}getSettings(){this.unchangedEnforce?this.mfaApiService.getSettings().subscribe({next:e=>{0!==e.length&&(e.all?this.allCategories=!0:(this.includeCategories=e.include_categories?e.include_categories:[],this.excludeRps=e.exclude_rps?e.exclude_rps:[])),this.setValuesFromSetting(),this.showDetail=!this.showDetail,this.loadingCategories=!1},error:e=>{console.error(e),this.loadingCategories=!1}}):(this.includeCategories=[],this.allCategories=this.toggle.checked,this.setValuesFromSetting(),this.showDetail=!this.showDetail,this.loadingCategories=!1)}setValuesFromSetting(){if(0===this.includeCategories.length){const e=this.allCategories;for(const t in this.categories){this.categories[t].value=e,this.categories[t].show=!1,this.categories[t].rps_value={};for(const r in this.categories[t].rps)this.categories[t].rps_value[r]=e}}else for(const e in this.categories){this.categories[e].value=this.includeCategories.includes(e),this.categories[e].show=!1,this.categories[e].rps_value={};for(const t in this.categories[e].rps)this.categories[e].rps_value[t]=!!this.categories[e].value&&!this.excludeRps.includes(t)}}showDetailSettings(){this.showDetail||0!==Object.keys(this.categories).length?this.showDetail=!this.showDetail:this.getCategoriesAndSettings()}toggleEnableMfa(){this.unchangedEnforce=!1,this.includeCategories=[],this.allCategories=!this.toggle.checked,this.setValuesFromSetting()}toggleCategory(e,t=!1){if(this.unchangedSettings=!1,this.checkAllCategoriesSelected()&&this.toggle.checked&&!t&&this.toggle.toggle(),e.value=!e.value,!t)for(const r in e.rps_value)e.rps_value[r]=e.value;this.checkAllCategoriesSelected()&&!this.toggle.checked&&!t&&this.toggle.toggle()}checkAllCategoriesSelected(){let e=!0;for(const t in this.categories)this.categories[t].value||(e=!1);return e}toggleRps(e,t){t=String(t),this.unchangedSettings=!1,this.checkAllRpsDeselectedForCategory(String(e.key))&&this.toggleCategory(e.value,!0),this.checkAllRpsSelected()&&this.toggle.toggle(),e.value.rps_value[t]=!e.value.rps_value[t],this.checkAllRpsDeselectedForCategory(String(e.key))&&this.toggleCategory(e.value,!0),this.checkAllRpsSelected()&&this.toggle.toggle()}checkAllRpsDeselectedForCategory(e){let t=!0;for(const r in this.categories[e].rps)this.categories[e].rps_value[r]&&(t=!1);return t}checkAllRpsSelected(){let e=!0;for(const t in this.categories){if(!this.categories[t].value)return!1;for(const r in this.categories[t].rps)this.categories[t].rps_value[r]||(e=!1)}return e}saveSettings(e=!1){this.oauthService.getIdTokenExpiration()-(0,MD.now)()>0&&!e?(this.enforceMfa!==this.toggle.checked&&(this.loadingMfa=!0,this.changeEnforceMfa(this.toggle.checked)),this.unchangedSettings||(this.loadingMfa=!0,this.saveDetailSettings(),this.updateDetailSettings())):(this.saveEnforceMfa(),this.unchangedSettings||this.saveDetailSettings(),this.reAuthenticate())}saveEnforceMfa(){this.enforceMfa!==this.toggle.checked&&sessionStorage.setItem("enforce_mfa",this.toggle.checked.toString())}saveDetailSettings(){let r,e=!0,t=!1;this.includeCategories=[],this.excludeRps=[];for(const l in this.categories)if(this.categories[l].value){t=!0,this.includeCategories.push(l);for(const c in this.categories[l].rps)this.categories[l].rps_value[c]?t=!0:(e=!1,this.excludeRps.push(c))}else e=!1;r=e===t?e?JSON.stringify({all:!0}):"{}":JSON.stringify({include_categories:this.includeCategories,exclude_rps:this.excludeRps}),sessionStorage.setItem("settings_mfa",r)}reAuthenticate(){sessionStorage.setItem("mfa_route","/profile/settings/auth"),this.oauthService.logOut(!0),sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.authService.loadOidcConfigData(),this.oauthService.loadDiscoveryDocumentAndLogin()}changeEnforceMfa(e){this.mfaApiService.enforceMfaForAllServices(e).subscribe({next:()=>{e?(this.enforceMfa=!0,this.toggle.checked||this.toggle.toggle()):this.enforceMfa=!1,this.unchangedSettings=!0,this.unchangedEnforce=!0,sessionStorage.removeItem("enforce_mfa"),sessionStorage.removeItem("mfa_route"),this.loadingMfa=!1},error:t=>{"MFA is required"===t.error.error?this.saveSettings(!0):this.loadingMfa=!1}})}updateDetailSettings(){const e=sessionStorage.getItem("settings_mfa");this.mfaApiService.updateDetailSettings(e).subscribe({next:()=>{this.unchangedSettings=!0,this.unchangedEnforce=!0,sessionStorage.removeItem("settings_mfa"),sessionStorage.removeItem("mfa_route"),this.loadingMfa=!1},error:t=>{"MFA is required"===t.error.error?this.saveSettings(!0):this.loadingMfa=!1}})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36($t),i.Y36(ji),i.Y36(jt),i.Y36(Jl.Ct),i.Y36(Ql),i.Y36(M.eN),i.Y36(LL))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-mfa-settings"]],viewQuery:function(e,t){if(1&e&&i.Gf(p4,5),2&e){let r;i.iGM(r=i.CRH())&&(t.toggle=r.first)}},decls:18,vars:23,consts:[["class","ml-auto mr-auto mt-2",4,"ngIf"],[3,"hidden"],["matTooltipPosition","right",1,"toggle-and-button",3,"matTooltip","matTooltipDisabled"],[1,"toggle-ellipsis",3,"disabled","toggleChange"],["toggle",""],["mat-icon-button","",1,"show-button",3,"hidden","disabled","click"],["mat-flat-button","","color","accent",1,"ml-3",3,"disabled","click"],[4,"ngIf"],[1,"ml-auto","mr-auto","mt-2"],[4,"ngFor","ngForOf"],[1,"toggle-and-button"],[1,"ml-4","toggle-ellipsis",3,"checked","toggleChange"],["mat-icon-button","",1,"show-button",3,"click"],[1,"ml-5",3,"checked","toggleChange"]],template:function(e,t){1&e&&(i.YNc(0,f4,1,0,"mat-spinner",0),i.TgZ(1,"div",1)(2,"span",2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.TgZ(5,"mat-slide-toggle",3,4),i.NdJ("toggleChange",function(){return t.toggleEnableMfa()}),i._uU(7),i.ALo(8,"translate"),i.ALo(9,"customTranslate"),i.TgZ(10,"button",5),i.NdJ("click",function(){return t.showDetailSettings()}),i.TgZ(11,"mat-icon"),i._uU(12),i.qZA()()()(),i.TgZ(13,"button",6),i.NdJ("click",function(){return t.saveSettings()}),i._uU(14),i.ALo(15,"translate"),i.qZA(),i.YNc(16,b4,3,3,"div",7),i.YNc(17,A4,1,0,"mat-spinner",0),i.qZA()),2&e&&(i.Q6J("ngIf",t.loadingMfa),i.xp6(1),i.Q6J("hidden",t.loadingMfa),i.xp6(1),i.Q6J("matTooltip",i.lcZ(3,13,i.lcZ(4,15,"AUTHENTICATION.MFA_DISABLED")))("matTooltipDisabled",t.mfaAvailable),i.xp6(3),i.Q6J("disabled",!t.mfaAvailable),i.xp6(2),i.hij("",i.lcZ(8,17,i.lcZ(9,19,"AUTHENTICATION.MFA_TOGGLE"))," "),i.xp6(3),i.Q6J("hidden",!t.enableDetailSettings)("disabled",!t.mfaAvailable),i.xp6(2),i.Oqu(t.showDetail?"keyboard_arrow_up":"keyboard_arrow_down"),i.xp6(1),i.Q6J("disabled",t.unchangedSettings&&t.unchangedEnforce),i.xp6(1),i.hij(" ",i.lcZ(15,21,"AUTHENTICATION.MFA_SAVE")," "),i.xp6(2),i.Q6J("ngIf",t.showDetail),i.xp6(1),i.Q6J("ngIf",t.loadingCategories))},dependencies:[w.sg,w.O5,Ji,Dt,Ei,gr,M2,w.Nd,Qe,Qt,h4],styles:[".toggle-and-button[_ngcontent-%COMP%]{display:inline-flex;max-width:100%}.toggle-ellipsis[_ngcontent-%COMP%]{height:40px;display:inline-block;vertical-align:middle;overflow:hidden}.show-button[_ngcontent-%COMP%]{white-space:nowrap}"]}),n})();const M4=["toggle"];function w4(n,a){if(1&n&&(i.TgZ(0,"div"),i._UZ(1,"img",9),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Q6J("src",e.imageSrc,i.LSH)}}function C4(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",5)(1,"h1",2),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.TgZ(5,"p"),i._uU(6),i.ALo(7,"translate"),i.ALo(8,"customTranslate"),i.qZA(),i.YNc(9,w4,2,1,"div",6),i.TgZ(10,"button",7),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onAddAttribute(r.imgAtt,r.imgAttrName,"AddAuthImgDialogComponent","IMG"))}),i._uU(11),i.ALo(12,"translate"),i.ALo(13,"customTranslate"),i.qZA(),i.TgZ(14,"button",8),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onDeleteAttribute(r.imgAtt,r.imgAttrName,"IMG"))}),i._uU(15),i.ALo(16,"translate"),i.ALo(17,"customTranslate"),i.qZA()()}if(2&n){const e=i.oxw();i.xp6(2),i.Oqu(i.lcZ(3,6,i.lcZ(4,8,"AUTHENTICATION.TITLE"))),i.xp6(4),i.Oqu(i.lcZ(7,10,i.lcZ(8,12,"AUTHENTICATION.ANTI_PHISHING_INFO"))),i.xp6(3),i.Q6J("ngIf",e.imageSrc&&e.imageSrc.length),i.xp6(2),i.hij(" ",i.lcZ(12,14,i.lcZ(13,16,"AUTHENTICATION.NEW_IMG"))," "),i.xp6(3),i.Q6J("disabled",!e.imgAtt||!e.imgAtt.value),i.xp6(1),i.hij(" ",i.lcZ(16,18,i.lcZ(17,20,"AUTHENTICATION.DELETE_IMG"))," ")}}function v4(n,a){if(1&n&&(i.TgZ(0,"h4",11),i._uU(1),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Oqu(e.textAtt.value)}}function T4(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",5)(1,"h1",2),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.TgZ(5,"p"),i._uU(6),i.ALo(7,"translate"),i.ALo(8,"customTranslate"),i.qZA(),i.YNc(9,v4,2,1,"h4",10),i.TgZ(10,"button",7),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onAddAttribute(r.textAtt,r.textAttrName,"AddAuthTextDialogComponent","TEXT"))}),i._uU(11),i.ALo(12,"translate"),i.ALo(13,"customTranslate"),i.qZA(),i.TgZ(14,"button",8),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onDeleteAttribute(r.textAtt,r.textAttrName,"TEXT"))}),i._uU(15),i.ALo(16,"translate"),i.ALo(17,"customTranslate"),i.qZA()()}if(2&n){const e=i.oxw();i.xp6(2),i.Oqu(i.lcZ(3,6,i.lcZ(4,8,"AUTHENTICATION.TITLE_TEXT"))),i.xp6(4),i.Oqu(i.lcZ(7,10,i.lcZ(8,12,"AUTHENTICATION.ANTI_PHISHING_INFO_TEXT"))),i.xp6(3),i.Q6J("ngIf",e.textAtt),i.xp6(2),i.hij(" ",i.lcZ(12,14,i.lcZ(13,16,"AUTHENTICATION.NEW_TEXT"))," "),i.xp6(3),i.Q6J("disabled",!e.textAtt||!e.textAtt.value),i.xp6(1),i.hij(" ",i.lcZ(16,18,i.lcZ(17,20,"AUTHENTICATION.DELETE_TEXT"))," ")}}function x4(n,a){1&n&&i._UZ(0,"mat-spinner",12)}let S4=(()=>{class n{constructor(e,t,r,l,c){this.dialog=e,this.attributesManagerService=t,this.store=r,this.translate=l,this.notificatorService=c,this.imageSrc="",this.mfaUrl="",this.loading=!1}ngOnInit(){const e=this.store.getProperty("mfa");this.imgAttrName=this.store.getProperty("mfa").security_image_attribute,this.textAttrName=this.store.getProperty("mfa").security_text_attribute,this.componentMapper={AddAuthImgDialogComponent:d4,AddAuthTextDialogComponent:u4},this.translate.onLangChange.subscribe(()=>{this.mfaUrl="en"===this.translate.currentLang?e.url_en:e.url_cs}),this.mfaUrl="en"===this.translate.currentLang?e.url_en:e.url_cs,this.displayImageBlock=this.store.getProperty("mfa").enable_security_image,this.displayImageBlock&&this.loadSecurityAttribute(this.imgAttrName,!0).subscribe(t=>{this.imgAtt=t}),this.displayTextBlock=this.store.getProperty("mfa").enable_security_text,this.displayTextBlock&&this.loadSecurityAttribute(this.textAttrName).subscribe(t=>{this.textAtt=t})}loadSecurityAttribute(e,t=!1){this.loading=!0;const r=new Ee.x;return this.attributesManagerService.getUserAttributeByName(this.store.getPerunPrincipal().userId,e).subscribe({next:l=>{l?(t&&(this.imageSrc=l.value),r.next(l)):this.attributesManagerService.getAttributeDefinitionByName(e).subscribe(c=>{r.next(c)}),this.loading=!1},error:l=>{console.error(l),this.loading=!1}}),r.asObservable()}onAddAttribute(e,t,r,l){const c=ri();c.width="500px",c.data={theme:"user-theme",attribute:e},this.dialog.open(this.componentMapper[r],c).afterClosed().subscribe(o=>{o&&(this.notificatorService.showSuccess(this.translate.instant(`AUTHENTICATION.SAVE_${l}_SUCCESS`)),this.loadSecurityAttribute(t,"IMG"===l).subscribe(d=>{e=d}))})}onDeleteAttribute(e,t,r){const l=ri();l.width="600px";const c=this.translate.instant(`AUTHENTICATION.DELETE_${r}_DIALOG_TITLE`),s=this.translate.instant(`AUTHENTICATION.DELETE_${r}_DIALOG_DESC`);l.data={doNotShowValues:!0,attribute:e,userId:this.store.getPerunPrincipal().userId,title:c,description:s},this.dialog.open(BA,l).afterClosed().subscribe(d=>{d&&(this.notificatorService.showSuccess(this.translate.instant(`AUTHENTICATION.REMOVE_${r}_SUCCESS`)),this.loadSecurityAttribute(t,"IMG"===r).subscribe(u=>{e=u}))})}redirectToMfa(){window.open(this.mfaUrl,"_blank")}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Fi),i.Y36(ji),i.Y36(jt),i.Y36(Gu),i.Y36(_r))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-settings-authentication"]],viewQuery:function(e,t){if(1&e&&i.Gf(M4,5),2&e){let r;i.iGM(r=i.CRH())&&(t.toggle=r.first)}},decls:13,vars:12,consts:[[3,"hidden"],["class","mb-5",4,"ngIf"],[1,"page-subtitle"],["mat-flat-button","","color","accent",1,"mb-2",3,"click"],["class","ml-auto mr-auto",4,"ngIf"],[1,"mb-5"],[4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","mt-1","action-button",3,"click"],["color","warn","mat-flat-button","",3,"disabled","click"],["alt","",3,"src"],["class","security-text",4,"ngIf"],[1,"security-text"],[1,"ml-auto","mr-auto"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.YNc(1,C4,18,22,"div",1),i.YNc(2,T4,18,22,"div",1),i.TgZ(3,"h1",2),i._uU(4),i.ALo(5,"translate"),i.ALo(6,"customTranslate"),i.qZA(),i.TgZ(7,"button",3),i.NdJ("click",function(){return t.redirectToMfa()}),i._uU(8),i.ALo(9,"translate"),i.qZA(),i._UZ(10,"br")(11,"perun-web-apps-mfa-settings"),i.qZA(),i.YNc(12,x4,1,0,"mat-spinner",4)),2&e&&(i.Q6J("hidden",t.loading),i.xp6(1),i.Q6J("ngIf",t.displayImageBlock),i.xp6(1),i.Q6J("ngIf",t.displayTextBlock),i.xp6(2),i.Oqu(i.lcZ(5,6,i.lcZ(6,8,"AUTHENTICATION.MFA"))),i.xp6(4),i.hij(" ",i.lcZ(9,10,"AUTHENTICATION.MFA_INFO")," "),i.xp6(4),i.Q6J("ngIf",t.loading))},dependencies:[w.O5,Dt,Ei,y4,Qe,Qt],styles:[".security-text[_ngcontent-%COMP%]{font-family:FreeMono,monospace;color:gray}"]}),n})(),E4=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[w.ez,Nn,Qs,Oh,C2,co,$s,qo,Xp,xA]}),n})(),D4=(()=>{class n{constructor(e,t){this.auth=e,this.router=t}ngOnInit(){this.auth.isLoggedIn()&&this.router.navigate([""],{queryParamsHandling:"merge"})}startAuth(){this.auth.startAuthentication()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ql),i.Y36(Ni))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-login-screen"]],decls:11,vars:6,consts:[[1,"container","login-con"],[1,"row"],[1,"ml-auto","mr-auto","d-flex","flex-column","align-items-center"],[1,"mb-3"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h4",3),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.TgZ(6,"button",4),i.NdJ("click",function(){return t.startAuth()}),i._uU(7),i.ALo(8,"translate"),i.TgZ(9,"mat-icon"),i._uU(10," login "),i.qZA()()()()()),2&e&&(i.xp6(4),i.hij(" ",i.lcZ(5,2,"SHARED_LIB.PERUN.LOGIN.TEXT")," "),i.xp6(3),i.hij(" ",i.lcZ(8,4,"SHARED_LIB.PERUN.LOGIN.SIGN_IN")," "))},dependencies:[Dt,Ji,Qe],styles:[".login-con[_ngcontent-%COMP%]{padding:120px 0}"]}),n})();function H4(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",8),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.WRONG_LOGIN_OR_PASSWORD")," "))}let L4=(()=>{class n{constructor(e){this.authzService=e,this.usernameCtrl=new zo(null,[yn.required]),this.passwordCtrl=new zo(null,[yn.required]),this.wrongUsernameOrPassword=!1}startAuth(){this.usernameCtrl.invalid||this.passwordCtrl.invalid||(sessionStorage.setItem("basicUsername",this.usernameCtrl.value),sessionStorage.setItem("basicPassword",this.passwordCtrl.value),this.authzService.getPerunPrincipal().subscribe({next:e=>{sessionStorage.setItem("baPrincipal",JSON.stringify(e)),location.reload()},error:()=>{this.wrongUsernameOrPassword=!0}}))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Cs))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-login-screen-service-access"]],decls:28,vars:23,consts:[[1,"container","login-con","vo-theme","top-padding"],[1,"row"],[1,"ml-auto","mr-auto","d-flex","flex-column","align-items-center"],["alert_type","error",4,"ngIf"],["appearance","outline"],["matInput","","required","",3,"formControl","keyup.enter"],["matInput","","required","",3,"formControl","type","keyup.enter"],["mat-raised-button","",1,"black",3,"disabled","click"],["alert_type","error"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h2"),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.YNc(6,H4,3,3,"perun-web-apps-alert",3),i.TgZ(7,"mat-form-field",4)(8,"mat-label"),i._uU(9),i.ALo(10,"translate"),i.qZA(),i.TgZ(11,"input",5),i.NdJ("keyup.enter",function(){return t.startAuth()}),i.qZA(),i.TgZ(12,"mat-error"),i._uU(13),i.ALo(14,"translate"),i.qZA()(),i.TgZ(15,"mat-form-field",4)(16,"mat-label"),i._uU(17),i.ALo(18,"translate"),i.qZA(),i.TgZ(19,"input",6),i.NdJ("keyup.enter",function(){return t.startAuth()}),i.qZA(),i.TgZ(20,"mat-error"),i._uU(21),i.ALo(22,"translate"),i.qZA()(),i.TgZ(23,"button",7),i.NdJ("click",function(){return t.startAuth()}),i._uU(24),i.ALo(25,"translate"),i.TgZ(26,"mat-icon"),i._uU(27," login "),i.qZA()()()()()),2&e&&(i.xp6(4),i.Oqu(i.lcZ(5,11,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.LABEL")),i.xp6(2),i.Q6J("ngIf",t.wrongUsernameOrPassword),i.xp6(3),i.Oqu(i.lcZ(10,13,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME")),i.xp6(2),i.Q6J("formControl",t.usernameCtrl),i.xp6(2),i.hij(" ",i.lcZ(14,15,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME_ERROR")," "),i.xp6(4),i.Oqu(i.lcZ(18,17,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD")),i.xp6(2),i.Q6J("formControl",t.passwordCtrl)("type","password"),i.xp6(2),i.hij(" ",i.lcZ(22,19,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD_ERROR")," "),i.xp6(2),i.Q6J("disabled",t.usernameCtrl.invalid||t.passwordCtrl.invalid),i.xp6(1),i.hij(" ",i.lcZ(25,21,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.SIGN_IN")," "))},dependencies:[w.O5,Dt,Ji,jl,hn,Ra,An,pn,qr,aa,zn,Mn,Qe],styles:[".top-padding[_ngcontent-%COMP%]{padding:120px 0}mat-form-field.mat-form-field[_ngcontent-%COMP%]{font-size:14px;width:250px}.black[_ngcontent-%COMP%]{background-color:#000;color:#fff}"]}),n})(),P4=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-consents-page"]],decls:1,vars:0,template:function(e,t){1&e&&i._UZ(0,"router-outlet")},dependencies:[Ma]}),n})();function R4(n,a){1&n&&i._UZ(0,"mat-spinner",4)}function k4(n,a){if(1&n&&(i.TgZ(0,"li"),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",e.displayName," ")}}function O4(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"h1",5),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.TgZ(5,"div",6),i._uU(6),i.qZA(),i.TgZ(7,"div"),i._uU(8),i.ALo(9,"translate"),i.ALo(10,"customTranslate"),i.TgZ(11,"ul"),i.YNc(12,k4,2,1,"li",7),i.qZA()(),i.TgZ(13,"div",0)(14,"button",8),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.rejectConsent())}),i._uU(15),i.ALo(16,"translate"),i.ALo(17,"customTranslate"),i.qZA(),i.TgZ(18,"button",9),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.grantConsent())}),i._uU(19),i.ALo(20,"translate"),i.ALo(21,"customTranslate"),i.qZA()()()}if(2&n){const e=i.oxw();i.xp6(2),i.hij(" ",i.lcZ(3,6,i.lcZ(4,8,"CONSENTS.REQUEST.TITLE"))," "),i.xp6(4),i.Oqu(e.consent.consentHub.name),i.xp6(2),i.hij(" ",i.lcZ(9,10,i.lcZ(10,12,"CONSENTS.REQUEST.CONSENT_TEXT_UNSIGNED")),": "),i.xp6(4),i.Q6J("ngForOf",e.consent.attributes),i.xp6(3),i.hij(" ",i.lcZ(16,14,i.lcZ(17,16,"CONSENTS.REQUEST.REJECT_CONSENT_BUTTON"))," "),i.xp6(4),i.hij(" ",i.lcZ(20,18,i.lcZ(21,20,"CONSENTS.REQUEST.GRANT_CONSENT_BUTTON"))," ")}}let I4=(()=>{class n{constructor(e,t,r,l,c,s){this.notificator=e,this.translate=t,this.consentService=r,this.route=l,this.apiRequest=c,this.router=s,this.loading=!1}ngOnInit(){this.loading=!0,this.route.params.subscribe(e=>{const t=Number(e.consentId);this.apiRequest.dontHandleErrorForNext(),this.consentService.getConsentById(t).subscribe({next:r=>{this.consent=r,"UNSIGNED"!==this.consent.status&&this.router.navigate(["/profile","consents"],{queryParamsHandling:"merge"}),this.loading=!1},error:r=>{this.loading=!1,"ConsentNotExistsException"!==r.name&&this.notificator.showRPCError(r),this.router.navigate(["/profile","consents"],{queryParamsHandling:"merge"})}})})}grantConsent(){this.loading=!0,this.consentService.changeConsentStatus(this.consent.id,"GRANTED").subscribe(()=>{this.notificator.showSuccess(this.translate.instant("CONSENTS.CONSENT_GRANTED")+this.consent.consentHub.name),this.router.navigate(["/profile","consents"],{queryParamsHandling:"merge"})},()=>this.loading=!1)}rejectConsent(){this.loading=!0,this.consentService.changeConsentStatus(this.consent.id,"REVOKED").subscribe({next:()=>{this.notificator.showSuccess(this.translate.instant("CONSENTS.CONSENT_REJECTED")+this.consent.consentHub.name),this.router.navigate(["/profile","consents"],{queryParamsHandling:"merge"})},error:()=>this.loading=!1})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(_r),i.Y36($t),i.Y36(vs),i.Y36(In),i.Y36(ig),i.Y36(Ni))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-consent-request"]],decls:4,vars:2,consts:[[1,"d-flex"],[1,"card","p-4","mat-elevation-z3","ml-auto","mr-auto"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"page-title"],[1,"page-subtitle"],[4,"ngFor","ngForOf"],["mat-flat-button","","color","warn",1,"mr-2","ml-auto",3,"click"],["mat-flat-button","","color","accent",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"div",1),i.YNc(2,R4,1,0,"mat-spinner",2),i.YNc(3,O4,22,22,"div",3),i.qZA()()),2&e&&(i.xp6(2),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},dependencies:[w.sg,w.O5,Dt,Ei,Qe,Qt],styles:[".minimize-checkbox{font-size:.7rem;color:gray}\n"],encapsulation:2}),n})();function B4(n,a){1&n&&(i.TgZ(0,"span")(1,"mat-icon",1),i._uU(2,"priority_high"),i.qZA(),i.TgZ(3,"span"),i._uU(4),i.ALo(5,"translate"),i.ALo(6,"customTranslate"),i.qZA()()),2&n&&(i.xp6(4),i.hij(" ",i.lcZ(5,1,i.lcZ(6,3,"CONSENTS.STATUS_UNSIGNED")),""))}function N4(n,a){1&n&&(i.TgZ(0,"span")(1,"mat-icon",1),i._uU(2,"close"),i.qZA(),i.TgZ(3,"span"),i._uU(4),i.ALo(5,"translate"),i.ALo(6,"customTranslate"),i.qZA()()),2&n&&(i.xp6(4),i.hij(" ",i.lcZ(5,1,i.lcZ(6,3,"CONSENTS.STATUS_REVOKED")),""))}function V4(n,a){1&n&&(i.TgZ(0,"span")(1,"mat-icon",2),i._uU(2,"check"),i.qZA(),i.TgZ(3,"span"),i._uU(4),i.ALo(5,"translate"),i.ALo(6,"customTranslate"),i.qZA()()),2&n&&(i.xp6(4),i.hij(" ",i.lcZ(5,1,i.lcZ(6,3,"CONSENTS.STATUS_GRANTED")),""))}let F4=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-consent-status"]],inputs:{consentStatus:"consentStatus"},decls:3,vars:3,consts:[[4,"ngIf"],["color","warn"],["color","accent"]],template:function(e,t){1&e&&(i.YNc(0,B4,7,5,"span",0),i.YNc(1,N4,7,5,"span",0),i.YNc(2,V4,7,5,"span",0)),2&e&&(i.Q6J("ngIf","UNSIGNED"===t.consentStatus),i.xp6(1),i.Q6J("ngIf","REVOKED"===t.consentStatus),i.xp6(1),i.Q6J("ngIf","GRANTED"===t.consentStatus))},dependencies:[w.O5,Ji,Qe,Qt],styles:["mat-icon[_ngcontent-%COMP%]{vertical-align:bottom}"]}),n})();function z4(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"th",16)(1,"mat-checkbox",17),i.NdJ("change",function(r){i.CHM(e);const l=i.oxw(2);return i.KtG(r?l.masterToggle():null)}),i.qZA()()}if(2&n){const e=i.oxw().ngIf,t=i.oxw();i.xp6(1),i.Q6J("checked",t.selection.hasValue()&&e.all)("indeterminate",t.selection.hasValue()&&!e.all)}}function j4(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",18)(1,"mat-checkbox",19),i.NdJ("click",function(r){return r.stopPropagation()})("change",function(r){const c=i.CHM(e).$implicit,s=i.oxw(2);return i.KtG(r?s.selection.toggle(c):null)}),i.qZA()()}if(2&n){const e=a.$implicit,t=i.oxw(2);i.xp6(1),i.Q6J("checked",t.selection.isSelected(e))}}function q4(n,a){1&n&&(i.ynx(0,13),i.YNc(1,z4,2,2,"th",14),i.YNc(2,j4,2,1,"td",15),i.BQk())}function Y4(n,a){1&n&&(i.TgZ(0,"th",20),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.STATUS"))," "))}function W4(n,a){if(1&n&&(i.TgZ(0,"td",21),i._UZ(1,"perun-web-apps-consent-status",22),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Q6J("consentStatus",e.status)}}function U4(n,a){1&n&&(i.TgZ(0,"th",20),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.SERVICE_NAME"))," "))}function G4(n,a){if(1&n&&(i.TgZ(0,"td",21),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",e.consentHub.name," ")}}function $4(n,a){1&n&&(i.TgZ(0,"div"),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.GRANTED_TEXT"))," : "))}function Z4(n,a){1&n&&(i.TgZ(0,"div"),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.REVOKED_TEXT"))," : "))}function J4(n,a){1&n&&(i.TgZ(0,"div"),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.UNSIGNED_TEXT"))," : "))}function Q4(n,a){if(1&n&&(i.TgZ(0,"li"),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",e.displayName," ")}}function X4(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",30),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit,l=i.oxw();return i.KtG(l.rejectConsent.emit(r.id))}),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()}if(2&n){const e=i.oxw().$implicit;i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"UNSIGNED"===e.status?"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.REJECT_CONSENT_BUTTON":"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.REVOKE_CONSENT_BUTTON"))," ")}}function K4(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",31),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit,l=i.oxw();return i.KtG(l.grantConsent.emit(r.id))}),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()}2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.GRANT_CONSENT_BUTTON"))," "))}function eq(n,a){if(1&n&&(i.TgZ(0,"td",21)(1,"div",23)(2,"div",24),i.YNc(3,$4,4,5,"div",25),i.YNc(4,Z4,4,5,"div",25),i.YNc(5,J4,4,5,"div",25),i.TgZ(6,"ul"),i.YNc(7,Q4,2,1,"li",26),i.qZA(),i.TgZ(8,"div",27),i.YNc(9,X4,4,5,"button",28),i.YNc(10,K4,4,5,"button",29),i.qZA()()()()),2&n){const e=a.$implicit,t=i.oxw();i.uIk("colspan",t.displayedColumns.length),i.xp6(1),i.Q6J("@detailExpand",e===t.expandedConsent?"expanded":"collapsed"),i.xp6(2),i.Q6J("ngIf","GRANTED"===e.status),i.xp6(1),i.Q6J("ngIf","REVOKED"===e.status),i.xp6(1),i.Q6J("ngIf","UNSIGNED"===e.status),i.xp6(2),i.Q6J("ngForOf",e.attributes),i.xp6(2),i.Q6J("ngIf","REVOKED"!==e.status),i.xp6(1),i.Q6J("ngIf","GRANTED"!==e.status)}}function tq(n,a){1&n&&i._UZ(0,"tr",32)}function iq(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"tr",33),i.NdJ("click",function(){const l=i.CHM(e).$implicit,c=i.oxw();return i.KtG(c.expandedConsent=c.expandedConsent===l?null:l)}),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.ekj("example-expanded-row",t.expandedConsent===e)}}function nq(n,a){1&n&&i._UZ(0,"tr",34)}function rq(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",35),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT")),"\n"))}function aq(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",35),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.NO_CONSENTS")),"\n"))}const sq=function(n){return{all:n}},oq=function(){return["expandedDetail"]};let lq=(()=>{class n{constructor(e){this.tableCheckbox=e,this.filterValue="",this.consents=[],this.selection=new Vn(!0,[]),this.displayedColumns=["select","status","name"],this.grantConsent=new i.vpe,this.rejectConsent=new i.vpe,this.pageSizeOptions=hd}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,t){switch(t){case"name":return e.consentHub.name;case"status":return e.status;default:return""}}ngOnChanges(){this.dataSource=new $o(this.consents),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}exportAllData(e){Na(Ba(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}exportDisplayedData(e){const t=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,r=t+this.dataSource.paginator.pageSize;Na(Ba(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(t,r),this.displayedColumns,n.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>Uo(e,t,this.displayedColumns,n.getDataForColumn),this.dataSource.sortData=(e,t)=>Zl(e,t,n.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(bA))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-consents-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(ds,7),i.Gf(gs,7)),2&e){let r;i.iGM(r=i.CRH())&&(t.child=r.first),i.iGM(r=i.CRH())&&(t.matSort=r.first)}},inputs:{filterValue:"filterValue",tableId:"tableId",consents:"consents",selection:"selection",displayedColumns:"displayedColumns"},outputs:{grantConsent:"grantConsent",rejectConsent:"rejectConsent"},features:[i.TTD],decls:18,vars:17,consts:[[1,"card",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","status","matSortDirection","asc","matSortDisableClear","","multiTemplateDataRows","",1,"w-100",3,"dataSource"],["matColumnDef","select",4,"ngIf"],["matColumnDef","status"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","expandedDetail"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","dark-hover-list-item consent-row",3,"example-expanded-row","click",4,"matRowDef","matRowDefColumns"],["mat-row","","class","consent-detail-row",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size align-checkbox",4,"matCellDef"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"checked","click","change"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"consentStatus"],[1,"consent-detail"],[1,"p-3"],[4,"ngIf"],[4,"ngFor","ngForOf"],[1,"d-flex"],["mat-flat-button","","class","mr-2","color","warn",3,"click",4,"ngIf"],["mat-flat-button","","color","accent",3,"click",4,"ngIf"],["mat-flat-button","","color","warn",1,"mr-2",3,"click"],["mat-flat-button","","color","accent",3,"click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item","consent-row",3,"click"],["mat-row","",1,"consent-detail-row"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportDisplayedData",function(l){return t.exportDisplayedData(l)})("exportAllData",function(l){return t.exportAllData(l)}),i.TgZ(2,"table",2),i.YNc(3,q4,3,0,"ng-container",3),i.ALo(4,"isAllSelected"),i.ynx(5,4),i.YNc(6,Y4,4,5,"th",5),i.YNc(7,W4,2,1,"td",6),i.BQk(),i.ynx(8,7),i.YNc(9,U4,4,5,"th",5),i.YNc(10,G4,2,1,"td",6),i.BQk(),i.ynx(11,8),i.YNc(12,eq,11,8,"td",6),i.BQk(),i.YNc(13,tq,1,0,"tr",9),i.YNc(14,iq,1,2,"tr",10),i.YNc(15,nq,1,0,"tr",11),i.qZA()()(),i.YNc(16,rq,4,5,"perun-web-apps-alert",12),i.YNc(17,aq,4,5,"perun-web-apps-alert",12)),2&e&&(i.Q6J("hidden",0===t.dataSource.filteredData.length),i.xp6(1),i.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),i.xp6(1),i.Q6J("dataSource",t.dataSource),i.xp6(1),i.Q6J("ngIf",i.VKq(14,sq,i.xi3(4,11,t.dataSource,t.selection.selected.length))),i.xp6(10),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",i.DdM(16,oq)),i.xp6(1),i.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.dataSource.data.length),i.xp6(1),i.Q6J("ngIf",0===t.dataSource.data.length))},dependencies:[w.sg,w.O5,nc,eo,hs,to,ps,us,io,fs,ms,no,ro,gs,hg,Mn,Dt,ds,F4,Qe,Qt,TT],styles:["tr.consent-detail-row[_ngcontent-%COMP%]{height:0!important}.consent-row[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{cursor:pointer;border-bottom-width:0!important}.consent-detail[_ngcontent-%COMP%]{overflow:hidden;display:flex;flex-direction:column}th[_ngcontent-%COMP%], td.mat-cell[_ngcontent-%COMP%]{padding:0!important}.mat-cell[_ngcontent-%COMP%], .mat-footer-cell[_ngcontent-%COMP%]{font-size:1rem!important}"],data:{animation:[yi("detailExpand",[It("collapsed",Le({height:"0px",minHeight:"0"})),It("expanded",Le({height:"*"})),Rt("expanded <=> collapsed",Ht("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}}),n})();const D2=function(){return["status","name"]};function cq(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"div",4),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.TgZ(5,"perun-web-apps-immediate-filter",5),i.NdJ("filter",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.applyFilterUnsigned(r))}),i.ALo(6,"translate"),i.ALo(7,"customTranslate"),i.qZA(),i.TgZ(8,"perun-web-apps-consents-list",6),i.NdJ("grantConsent",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.grantConsent(r))})("rejectConsent",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.rejectConsent(r))}),i.qZA()()}if(2&n){const e=i.oxw();i.xp6(2),i.hij(" ",i.lcZ(3,6,i.lcZ(4,8,"CONSENTS.UNSIGNED_CONSENTS"))," "),i.xp6(3),i.Q6J("placeholder",i.lcZ(6,10,i.lcZ(7,12,"CONSENTS.FILTER"))),i.xp6(3),i.Q6J("consents",e.unsignedConsents)("filterValue",e.filterValueUnsigned)("tableId","TABLE_USER_CONSENTS")("displayedColumns",i.DdM(14,D2))}}function dq(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"div",7),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.TgZ(5,"perun-web-apps-immediate-filter",5),i.NdJ("filter",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.applyFilterSigned(r))}),i.ALo(6,"translate"),i.ALo(7,"customTranslate"),i.qZA(),i.TgZ(8,"perun-web-apps-consents-list",8),i.NdJ("grantConsent",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.grantConsent(r))})("rejectConsent",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.rejectConsent(r))}),i.qZA()()}if(2&n){const e=i.oxw();i.xp6(2),i.hij(" ",i.lcZ(3,6,i.lcZ(4,8,"CONSENTS.PROCESSED_CONSENTS"))," "),i.xp6(3),i.Q6J("placeholder",i.lcZ(6,10,i.lcZ(7,12,"CONSENTS.FILTER"))),i.xp6(3),i.Q6J("consents",e.signedConsents)("tableId","TABLE_USER_CONSENTS")("filterValue",e.filterValueSigned)("displayedColumns",i.DdM(14,D2))}}function uq(n,a){1&n&&i._UZ(0,"mat-spinner",9)}let hq=(()=>{class n{constructor(e,t,r,l,c){this.router=e,this.notificator=t,this.translate=r,this.storeService=l,this.consentService=c,this.loading=!1,this.unsignedConsents=[],this.signedConsents=[],this.filterValueUnsigned="",this.filterValueSigned=""}ngOnInit(){this.loading=!0,this.consentService.getConsentsForUser(this.storeService.getPerunPrincipal().userId).subscribe(e=>{this.unsignedConsents=e.filter(t=>"UNSIGNED"===t.status),this.signedConsents=e.filter(t=>"UNSIGNED"!==t.status),this.loading=!1},()=>this.loading=!1)}grantAll(){this.loading=!0,this.notificator.showSuccess(this.translate.instant("CONSENTS.GRANT_ALL_NOTIFICATION")),this.loading=!1}rejectConsent(e){this.loading=!0,this.consentService.changeConsentStatus(e,"REVOKED").subscribe(()=>{const t=this.unsignedConsents.find(l=>l.id===e)??this.signedConsents.find(l=>l.id===e);this.moveConsent(t);const r=this.translate.instant("GRANTED"===t.status?"CONSENTS.CONSENT_REVOKED":"CONSENTS.CONSENT_REJECTED");t.status="REVOKED",this.notificator.showSuccess(r+t.consentHub.name),this.loading=!1},()=>this.loading=!1)}moveConsent(e){"UNSIGNED"===e.status&&(this.signedConsents=[...this.signedConsents,e],this.unsignedConsents=this.unsignedConsents.filter(t=>t.id!==e.id))}grantConsent(e){this.loading=!0,this.consentService.changeConsentStatus(e,"GRANTED").subscribe(()=>{const t=this.unsignedConsents.find(r=>r.id===e)??this.signedConsents.find(r=>r.id===e);this.moveConsent(t),t.status="GRANTED",this.notificator.showSuccess(this.translate.instant("CONSENTS.CONSENT_GRANTED")+t.consentHub.name),this.loading=!1},()=>this.loading=!1)}applyFilterUnsigned(e){this.filterValueUnsigned=e}applyFilterSigned(e){this.filterValueSigned=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ni),i.Y36(_r),i.Y36($t),i.Y36(jt),i.Y36(vs))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-consents-preview"]],decls:8,vars:8,consts:[[1,"page-title","mt-2"],[1,"user-theme"],[4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[1,"page-subtitle"],[3,"placeholder","filter"],[3,"consents","filterValue","tableId","displayedColumns","grantConsent","rejectConsent"],[1,"page-subtitle","mt-4"],[3,"consents","tableId","filterValue","displayedColumns","grantConsent","rejectConsent"],[1,"ml-auto","mr-auto"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div",1),i.YNc(5,cq,9,15,"div",2),i.YNc(6,dq,9,15,"div",2),i.YNc(7,uq,1,0,"mat-spinner",3),i.qZA()),2&e&&(i.xp6(1),i.hij(" ",i.lcZ(2,4,i.lcZ(3,6,"CONSENTS.TITLE")),"\n"),i.xp6(4),i.Q6J("ngIf",!t.loading&&0!==t.unsignedConsents.length),i.xp6(1),i.Q6J("ngIf",!t.loading),i.xp6(1),i.Q6J("ngIf",t.loading))},dependencies:[w.O5,lf,lq,Ei,Qe,Qt]}),n})();function pq(n,a){1&n&&i._UZ(0,"mat-spinner",6)}function fq(n,a){if(1&n&&(i.TgZ(0,"div",7),i._UZ(1,"perun-web-apps-password-form",8),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Q6J("formGroup",e.pwdForm)("namespace",e.data.namespace)("language",e.lang)}}let mq=(()=>{class n{constructor(e,t,r,l,c,s,o){this.dialogRef=e,this.data=t,this.userManager=r,this.notificator=l,this.translate=c,this.formBuilder=s,this.apiRequestConfiguration=o,this.loading=!1,this.lang=this.translate.currentLang,this.pwdForm=this.formBuilder.group({passwordCtrl:["",yn.required,[$E(this.data.namespace,this.userManager,this.apiRequestConfiguration)]],passwordAgainCtrl:["",yn.required]},{validators:cE.passwordMatchValidator})}cancel(){this.dialogRef.close()}activate(){this.loading=!0;const e=this.pwdForm.get("passwordCtrl").value;this.userManager.reservePasswordForUser({user:this.data.userId,namespace:this.data.namespace,password:e}).pipe((0,mi.w)(()=>this.userManager.validatePasswordForUser(this.data.userId,this.data.namespace))).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.ACTIVATE_LOCAL_ACCOUNT.SUCCESS")),this.dialogRef.close()},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(xi),i.Y36(fn),i.Y36(ei),i.Y36(_r),i.Y36($t),i.Y36(Cb),i.Y36(ig))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-activate-local-account-dialog"]],decls:15,vars:18,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","","class","dialog-container user-theme",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["mat-flat-button","","color","accent",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container","user-theme"],[3,"formGroup","namespace","language"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.YNc(4,pq,1,0,"mat-spinner",1),i.YNc(5,fq,2,3,"div",2),i.TgZ(6,"div",3)(7,"button",4),i.NdJ("click",function(){return t.cancel()}),i._uU(8),i.ALo(9,"translate"),i.ALo(10,"customTranslate"),i.qZA(),i.TgZ(11,"button",5),i.NdJ("click",function(){return t.activate()}),i._uU(12),i.ALo(13,"translate"),i.ALo(14,"customTranslate"),i.qZA()()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,6,i.lcZ(3,8,"DIALOGS.ACTIVATE_LOCAL_ACCOUNT.TITLE"))),i.xp6(3),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading),i.xp6(3),i.hij(" ",i.lcZ(9,10,i.lcZ(10,12,"DIALOGS.ACTIVATE_LOCAL_ACCOUNT.CANCEL"))," "),i.xp6(3),i.Q6J("disabled",t.loading||t.pwdForm.invalid),i.xp6(1),i.hij(" ",i.lcZ(13,14,i.lcZ(14,16,"DIALOGS.ACTIVATE_LOCAL_ACCOUNT.ACTIVATE"))," "))},dependencies:[w.O5,Dt,Qi,sn,Wi,Uc,jo,Ei,ZE,Qe,Qt]}),n})();function gq(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",4),i.NdJ("click",function(){i.CHM(e);const r=i.oxw(2);return i.KtG(r.openPwdReset())}),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()}2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"LOCAL_ACCOUNT.CHANGE_PWD"))," "))}function _q(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",4),i.NdJ("click",function(){i.CHM(e);const r=i.oxw(2);return i.KtG(r.activateAccount())}),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()}2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"LOCAL_ACCOUNT.ACTIVATE"))," "))}function bq(n,a){if(1&n&&(i.TgZ(0,"div"),i.YNc(1,gq,4,5,"button",3),i.YNc(2,_q,4,5,"button",3),i.qZA()),2&n){const e=a.ngIf;i.xp6(1),i.Q6J("ngIf",e.exists),i.xp6(1),i.Q6J("ngIf",!e.exists)}}const Aq=function(n){return{exists:n}},yq=[{path:"",redirectTo:"profile",pathMatch:"full"},{path:"login",component:D4},{path:"service-access",component:L4},{path:"profile",component:r4,data:{breadcrumb:"MENU_ITEMS.PROFILE"},children:[{path:"",component:NB,data:{breadcrumb:"MENU_ITEMS.PROFILE"}},{path:"identities",component:_N,data:{breadcrumb:"MENU_ITEMS.IDENTITIES"}},{path:"groups",component:t3,data:{breadcrumb:"MENU_ITEMS.GROUPS"}},{path:"services",component:gV,data:{breadcrumb:"MENU_ITEMS.SERVICES"}},{path:"organizations",component:SV,data:{breadcrumb:"MENU_ITEMS.VOS"}},{path:"privacy",component:n4,data:{breadcrumb:"MENU_ITEMS.PRIVACY"}},{path:"consents",component:P4,data:{breadcrumb:"MENU_ITEMS.CONSENTS"},children:[{path:"",component:hq,data:{breadcrumb:"MENU_ITEMS.CONSENTS"}},{path:":consentId",component:I4,data:{breadcrumb:"MENU_ITEMS.CONSENT_REQUEST"}}]},{path:"settings",component:EV,data:{breadcrumb:"MENU_ITEMS.SETTINGS"},children:[{path:"",component:ZV,data:{breadcrumb:"MENU_ITEMS.SETTINGS"}},{path:"altPasswords",component:GV,data:{breadcrumb:"SETTINGS.ALTERNATIVE_PASSWORDS"}},{path:"auth",component:S4,data:{breadcrumb:"SETTINGS.AUTHENTICATION"}},{path:"dataQuotas",component:(()=>{class n{constructor(e){this.store=e}ngOnInit(){this.user=this.store.getPerunPrincipal().user}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(jt))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-settings-data-quotas"]],decls:1,vars:1,consts:[[3,"user"]],template:function(e,t){1&e&&i._UZ(0,"perun-web-apps-data-quotas",0),2&e&&i.Q6J("user",t.user)},dependencies:[Lj]}),n})(),data:{breadcrumb:"SETTINGS.DATA_QUOTAS"}},{path:"localAccount",component:(()=>{class n{constructor(e,t,r,l,c){this.userService=e,this.store=t,this.appUrlService=r,this.dialog=l,this.router=c,this.userId=this.store.getPerunPrincipal().userId,this.namespace=this.store.getProperty("local_account_namespace"),this.loginExists$=this.userService.loginExist(this.userId,this.namespace)}openPwdReset(){let e=this.appUrlService.getUrlForOtherApplication(Go.PwdReset,this.namespace);e+="&reset=true",window.open(e,"_blank")}activateAccount(){const e=ri();e.width="550px",e.data={userId:this.userId,namespace:this.namespace},this.dialog.open(mq,e).afterClosed().subscribe(()=>{this.router.navigate(["/profile","settings","localAccount"],{queryParamsHandling:"merge"})})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(ei),i.Y36(jt),i.Y36(AA),i.Y36(Fi),i.Y36(Ni))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-settings-local-account"]],decls:10,vars:15,consts:[[1,"page-title"],[1,"page-subtitle"],[4,"ngIf"],["mat-flat-button","","color","accent",3,"click",4,"ngIf"],["mat-flat-button","","color","accent",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div",1),i._uU(5),i.ALo(6,"translate"),i.ALo(7,"customTranslate"),i.qZA(),i.YNc(8,bq,3,2,"div",2),i.ALo(9,"async")),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,3,i.lcZ(3,5,"LOCAL_ACCOUNT.TITLE"))),i.xp6(4),i.hij(" ",i.lcZ(6,7,i.lcZ(7,9,"LOCAL_ACCOUNT.DESC")),"\n"),i.xp6(3),i.Q6J("ngIf",i.VKq(13,Aq,i.lcZ(9,11,t.loginExists$))))},dependencies:[w.O5,Dt,w.Ov,Qe,Qt]}),n})(),data:{breadcrumb:"SETTINGS.LOCAL_ACCOUNT"}},{path:"mailingLists",component:(()=>{class n{constructor(e){this.store=e}ngOnInit(){this.user=this.store.getPerunPrincipal().user}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(jt))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-settings-mailing-lists"]],decls:1,vars:2,consts:[[3,"user","isService"]],template:function(e,t){1&e&&i._UZ(0,"perun-web-apps-mailing-lists",0),2&e&&i.Q6J("user",t.user)("isService",!1)},dependencies:[Nj]}),n})(),data:{breadcrumb:"SETTINGS.MAILING_LISTS"}},{path:"prefShells",component:eF,data:{breadcrumb:"SETTINGS.PREFERRED_SHELLS"}},{path:"prefGroupNames",component:aF,data:{breadcrumb:"SETTINGS.PREFERRED_UNIX_GROUP_NAMES"}},{path:"sambaPassword",component:cF,data:{breadcrumb:"SETTINGS.SAMBA_PASSWORD"}},{path:"sshKeys",component:zj,data:{breadcrumb:"SETTINGS.SSH_KEYS"}},{path:"passwordReset",component:ej,data:{breadcrumb:"SETTINGS.PASSWORD_RESET"}}]}]}];let Mq=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[Oh.forRoot(yq,{preloadingStrategy:Xg,scrollPositionRestoration:"enabled",relativeLinkResolution:"legacy"})]}),n})();class wq{constructor(a,e="/assets/i18n/",t=".json"){this.http=a,this.prefix=e,this.suffix=t}getTranslation(a){return this.http.get(`${this.prefix}${a}${this.suffix}`)}}function H2(n){return new i.vHH(3e3,!1)}function r6(){return typeof window<"u"&&typeof window.document<"u"}function BT(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function md(n){switch(n.length){case 0:return new Cu;case 1:return n[0];default:return new V0(n)}}function L2(n,a,e,t,r=new Map,l=new Map){const c=[],s=[];let o=-1,d=null;if(t.forEach(u=>{const h=u.get("offset"),f=h==o,b=f&&d||new Map;u.forEach((B,X)=>{let he=X,Pe=B;if("offset"!==X)switch(he=a.normalizePropertyName(he,c),Pe){case"!":Pe=r.get(X);break;case Io:Pe=l.get(X);break;default:Pe=a.normalizeStyleValue(X,he,Pe,c)}b.set(he,Pe)}),f||s.push(b),d=b,o=h}),c.length)throw function Wq(n){return new i.vHH(3502,!1)}();return s}function NT(n,a,e,t){switch(a){case"start":n.onStart(()=>t(e&&VT(e,"start",n)));break;case"done":n.onDone(()=>t(e&&VT(e,"done",n)));break;case"destroy":n.onDestroy(()=>t(e&&VT(e,"destroy",n)))}}function VT(n,a,e){const l=FT(n.element,n.triggerName,n.fromState,n.toState,a||n.phaseName,e.totalTime??n.totalTime,!!e.disabled),c=n._data;return null!=c&&(l._data=c),l}function FT(n,a,e,t,r="",l=0,c){return{element:n,triggerName:a,fromState:e,toState:t,phaseName:r,totalTime:l,disabled:!!c}}function Va(n,a,e){let t=n.get(a);return t||n.set(a,t=e),t}function P2(n){const a=n.indexOf(":");return[n.substring(1,a),n.slice(a+1)]}let zT=(n,a)=>!1,R2=(n,a,e)=>[],k2=null;function jT(n){const a=n.parentNode||n.host;return a===k2?null:a}(BT()||typeof Element<"u")&&(r6()?(k2=(()=>document.documentElement)(),zT=(n,a)=>{for(;a;){if(a===n)return!0;a=jT(a)}return!1}):zT=(n,a)=>n.contains(a),R2=(n,a,e)=>{if(e)return Array.from(n.querySelectorAll(a));const t=n.querySelector(a);return t?[t]:[]});let qu=null,O2=!1;const I2=zT,B2=R2;let N2=(()=>{class n{validateStyleProperty(e){return function s6(n){qu||(qu=function o6(){return typeof document<"u"?document.body:null}()||{},O2=!!qu.style&&"WebkitAppearance"in qu.style);let a=!0;return qu.style&&!function a6(n){return"ebkit"==n.substring(1,6)}(n)&&(a=n in qu.style,!a&&O2&&(a="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in qu.style)),a}(e)}matchesElement(e,t){return!1}containsElement(e,t){return I2(e,t)}getParentElement(e){return jT(e)}query(e,t,r){return B2(e,t,r)}computeStyle(e,t,r){return r||""}animate(e,t,r,l,c,s=[],o){return new Cu(r,l)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),qT=(()=>{class n{}return n.NOOP=new N2,n})();const YT="ng-enter",ey="ng-leave",ty="ng-trigger",iy=".ng-trigger",F2="ng-animating",WT=".ng-animating";function gd(n){if("number"==typeof n)return n;const a=n.match(/^(-?[\.\d]+)(m?s)/);return!a||a.length<2?0:UT(parseFloat(a[1]),a[2])}function UT(n,a){return"s"===a?1e3*n:n}function ny(n,a,e){return n.hasOwnProperty("duration")?n:function d6(n,a,e){let r,l=0,c="";if("string"==typeof n){const s=n.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===s)return a.push(H2()),{duration:0,delay:0,easing:""};r=UT(parseFloat(s[1]),s[2]);const o=s[3];null!=o&&(l=UT(parseFloat(o),s[4]));const d=s[5];d&&(c=d)}else r=n;if(!e){let s=!1,o=a.length;r<0&&(a.push(function Cq(){return new i.vHH(3100,!1)}()),s=!0),l<0&&(a.push(function vq(){return new i.vHH(3101,!1)}()),s=!0),s&&a.splice(o,0,H2())}return{duration:r,delay:l,easing:c}}(n,a,e)}function bg(n,a={}){return Object.keys(n).forEach(e=>{a[e]=n[e]}),a}function z2(n){const a=new Map;return Object.keys(n).forEach(e=>{a.set(e,n[e])}),a}function _d(n,a=new Map,e){if(e)for(let[t,r]of e)a.set(t,r);for(let[t,r]of n)a.set(t,r);return a}function q2(n,a,e){return e?a+":"+e+";":""}function Y2(n){let a="";for(let e=0;e{const l=$T(r);e&&!e.has(r)&&e.set(r,n.style[l]),n.style[l]=t}),BT()&&Y2(n))}function Yu(n,a){n.style&&(a.forEach((e,t)=>{const r=$T(t);n.style[r]=""}),BT()&&Y2(n))}function Ag(n){return Array.isArray(n)?1==n.length?n[0]:L_(n):n}const GT=new RegExp("{{\\s*(.+?)\\s*}}","g");function W2(n){let a=[];if("string"==typeof n){let e;for(;e=GT.exec(n);)a.push(e[1]);GT.lastIndex=0}return a}function ry(n,a,e){const t=n.toString(),r=t.replace(GT,(l,c)=>{let s=a[c];return null==s&&(e.push(function xq(n){return new i.vHH(3003,!1)}()),s=""),s.toString()});return r==t?n:r}function ay(n){const a=[];let e=n.next();for(;!e.done;)a.push(e.value),e=n.next();return a}const p6=/-+([a-z0-9])/g;function $T(n){return n.replace(p6,(...a)=>a[1].toUpperCase())}function f6(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Fa(n,a,e){switch(a.type){case 7:return n.visitTrigger(a,e);case 0:return n.visitState(a,e);case 1:return n.visitTransition(a,e);case 2:return n.visitSequence(a,e);case 3:return n.visitGroup(a,e);case 4:return n.visitAnimate(a,e);case 5:return n.visitKeyframes(a,e);case 6:return n.visitStyle(a,e);case 8:return n.visitReference(a,e);case 9:return n.visitAnimateChild(a,e);case 10:return n.visitAnimateRef(a,e);case 11:return n.visitQuery(a,e);case 12:return n.visitStagger(a,e);default:throw function Sq(n){return new i.vHH(3004,!1)}()}}function U2(n,a){return window.getComputedStyle(n)[a]}function y6(n,a){const e=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(t=>function M6(n,a,e){if(":"==n[0]){const o=function w6(n,a){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t) *"}}(n,e);if("function"==typeof o)return void a.push(o);n=o}const t=n.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==t||t.length<4)return e.push(function Fq(n){return new i.vHH(3015,!1)}()),a;const r=t[1],l=t[2],c=t[3];a.push(G2(r,c));"<"==l[0]&&!("*"==r&&"*"==c)&&a.push(G2(c,r))}(t,e,a)):e.push(n),e}const cy=new Set(["true","1"]),dy=new Set(["false","0"]);function G2(n,a){const e=cy.has(n)||dy.has(n),t=cy.has(a)||dy.has(a);return(r,l)=>{let c="*"==n||n==r,s="*"==a||a==l;return!c&&e&&"boolean"==typeof r&&(c=r?cy.has(n):dy.has(n)),!s&&t&&"boolean"==typeof l&&(s=l?cy.has(a):dy.has(a)),c&&s}}const C6=new RegExp("s*:selfs*,?","g");function ZT(n,a,e,t){return new v6(n).build(a,e,t)}class v6{constructor(a){this._driver=a}build(a,e,t){const r=new S6(e);return this._resetContextStyleTimingState(r),Fa(this,Ag(a),r)}_resetContextStyleTimingState(a){a.currentQuerySelector="",a.collectedStyles=new Map,a.collectedStyles.set("",new Map),a.currentTime=0}visitTrigger(a,e){let t=e.queryCount=0,r=e.depCount=0;const l=[],c=[];return"@"==a.name.charAt(0)&&e.errors.push(function Dq(){return new i.vHH(3006,!1)}()),a.definitions.forEach(s=>{if(this._resetContextStyleTimingState(e),0==s.type){const o=s,d=o.name;d.toString().split(/\s*,\s*/).forEach(u=>{o.name=u,l.push(this.visitState(o,e))}),o.name=d}else if(1==s.type){const o=this.visitTransition(s,e);t+=o.queryCount,r+=o.depCount,c.push(o)}else e.errors.push(function Hq(){return new i.vHH(3007,!1)}())}),{type:7,name:a.name,states:l,transitions:c,queryCount:t,depCount:r,options:null}}visitState(a,e){const t=this.visitStyle(a.styles,e),r=a.options&&a.options.params||null;if(t.containsDynamicStyles){const l=new Set,c=r||{};t.styles.forEach(s=>{s instanceof Map&&s.forEach(o=>{W2(o).forEach(d=>{c.hasOwnProperty(d)||l.add(d)})})}),l.size&&(ay(l.values()),e.errors.push(function Lq(n,a){return new i.vHH(3008,!1)}()))}return{type:0,name:a.name,style:t,options:r?{params:r}:null}}visitTransition(a,e){e.queryCount=0,e.depCount=0;const t=Fa(this,Ag(a.animation),e);return{type:1,matchers:y6(a.expr,e.errors),animation:t,queryCount:e.queryCount,depCount:e.depCount,options:Wu(a.options)}}visitSequence(a,e){return{type:2,steps:a.steps.map(t=>Fa(this,t,e)),options:Wu(a.options)}}visitGroup(a,e){const t=e.currentTime;let r=0;const l=a.steps.map(c=>{e.currentTime=t;const s=Fa(this,c,e);return r=Math.max(r,e.currentTime),s});return e.currentTime=r,{type:3,steps:l,options:Wu(a.options)}}visitAnimate(a,e){const t=function D6(n,a){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return JT(ny(n,a).duration,0,"");const e=n;if(e.split(/\s+/).some(l=>"{"==l.charAt(0)&&"{"==l.charAt(1))){const l=JT(0,0,"");return l.dynamic=!0,l.strValue=e,l}const r=ny(e,a);return JT(r.duration,r.delay,r.easing)}(a.timings,e.errors);e.currentAnimateTimings=t;let r,l=a.styles?a.styles:Le({});if(5==l.type)r=this.visitKeyframes(l,e);else{let c=a.styles,s=!1;if(!c){s=!0;const d={};t.easing&&(d.easing=t.easing),c=Le(d)}e.currentTime+=t.duration+t.delay;const o=this.visitStyle(c,e);o.isEmptyStep=s,r=o}return e.currentAnimateTimings=null,{type:4,timings:t,style:r,options:null}}visitStyle(a,e){const t=this._makeStyleAst(a,e);return this._validateStyleAst(t,e),t}_makeStyleAst(a,e){const t=[],r=Array.isArray(a.styles)?a.styles:[a.styles];for(let s of r)"string"==typeof s?s===Io?t.push(s):e.errors.push(new i.vHH(3002,!1)):t.push(z2(s));let l=!1,c=null;return t.forEach(s=>{if(s instanceof Map&&(s.has("easing")&&(c=s.get("easing"),s.delete("easing")),!l))for(let o of s.values())if(o.toString().indexOf("{{")>=0){l=!0;break}}),{type:6,styles:t,easing:c,offset:a.offset,containsDynamicStyles:l,options:null}}_validateStyleAst(a,e){const t=e.currentAnimateTimings;let r=e.currentTime,l=e.currentTime;t&&l>0&&(l-=t.duration+t.delay),a.styles.forEach(c=>{"string"!=typeof c&&c.forEach((s,o)=>{const d=e.collectedStyles.get(e.currentQuerySelector),u=d.get(o);let h=!0;u&&(l!=r&&l>=u.startTime&&r<=u.endTime&&(e.errors.push(function Rq(n,a,e,t,r){return new i.vHH(3010,!1)}()),h=!1),l=u.startTime),h&&d.set(o,{startTime:l,endTime:r}),e.options&&function h6(n,a,e){const t=a.params||{},r=W2(n);r.length&&r.forEach(l=>{t.hasOwnProperty(l)||e.push(function Tq(n){return new i.vHH(3001,!1)}())})}(s,e.options,e.errors)})})}visitKeyframes(a,e){const t={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function kq(){return new i.vHH(3011,!1)}()),t;let l=0;const c=[];let s=!1,o=!1,d=0;const u=a.steps.map(Pe=>{const bt=this._makeStyleAst(Pe,e);let kt=null!=bt.offset?bt.offset:function E6(n){if("string"==typeof n)return null;let a=null;if(Array.isArray(n))n.forEach(e=>{if(e instanceof Map&&e.has("offset")){const t=e;a=parseFloat(t.get("offset")),t.delete("offset")}});else if(n instanceof Map&&n.has("offset")){const e=n;a=parseFloat(e.get("offset")),e.delete("offset")}return a}(bt.styles),qt=0;return null!=kt&&(l++,qt=bt.offset=kt),o=o||qt<0||qt>1,s=s||qt0&&l{const kt=f>0?bt==b?1:f*bt:c[bt],qt=kt*he;e.currentTime=B+X.delay+qt,X.duration=qt,this._validateStyleAst(Pe,e),Pe.offset=kt,t.styles.push(Pe)}),t}visitReference(a,e){return{type:8,animation:Fa(this,Ag(a.animation),e),options:Wu(a.options)}}visitAnimateChild(a,e){return e.depCount++,{type:9,options:Wu(a.options)}}visitAnimateRef(a,e){return{type:10,animation:this.visitReference(a.animation,e),options:Wu(a.options)}}visitQuery(a,e){const t=e.currentQuerySelector,r=a.options||{};e.queryCount++,e.currentQuery=a;const[l,c]=function T6(n){const a=!!n.split(/\s*,\s*/).find(e=>":self"==e);return a&&(n=n.replace(C6,"")),n=n.replace(/@\*/g,iy).replace(/@\w+/g,e=>iy+"-"+e.slice(1)).replace(/:animating/g,WT),[n,a]}(a.selector);e.currentQuerySelector=t.length?t+" "+l:l,Va(e.collectedStyles,e.currentQuerySelector,new Map);const s=Fa(this,Ag(a.animation),e);return e.currentQuery=null,e.currentQuerySelector=t,{type:11,selector:l,limit:r.limit||0,optional:!!r.optional,includeSelf:c,animation:s,originalSelector:a.selector,options:Wu(a.options)}}visitStagger(a,e){e.currentQuery||e.errors.push(function Nq(){return new i.vHH(3013,!1)}());const t="full"===a.timings?{duration:0,delay:0,easing:"full"}:ny(a.timings,e.errors,!0);return{type:12,animation:Fa(this,Ag(a.animation),e),timings:t,options:null}}}class S6{constructor(a){this.errors=a,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Wu(n){return n?(n=bg(n)).params&&(n.params=function x6(n){return n?bg(n):null}(n.params)):n={},n}function JT(n,a,e){return{duration:n,delay:a,easing:e}}function QT(n,a,e,t,r,l,c=null,s=!1){return{type:1,element:n,keyframes:a,preStyleProps:e,postStyleProps:t,duration:r,delay:l,totalTime:r+l,easing:c,subTimeline:s}}class uy{constructor(){this._map=new Map}get(a){return this._map.get(a)||[]}append(a,e){let t=this._map.get(a);t||this._map.set(a,t=[]),t.push(...e)}has(a){return this._map.has(a)}clear(){this._map.clear()}}const P6=new RegExp(":enter","g"),k6=new RegExp(":leave","g");function XT(n,a,e,t,r,l=new Map,c=new Map,s,o,d=[]){return(new O6).buildKeyframes(n,a,e,t,r,l,c,s,o,d)}class O6{buildKeyframes(a,e,t,r,l,c,s,o,d,u=[]){d=d||new uy;const h=new KT(a,e,d,r,l,u,[]);h.options=o;const f=o.delay?gd(o.delay):0;h.currentTimeline.delayNextStep(f),h.currentTimeline.setStyles([c],null,h.errors,o),Fa(this,t,h);const b=h.timelines.filter(B=>B.containsAnimation());if(b.length&&s.size){let B;for(let X=b.length-1;X>=0;X--){const he=b[X];if(he.element===e){B=he;break}}B&&!B.allowOnlyTimelineStyles()&&B.setStyles([s],null,h.errors,o)}return b.length?b.map(B=>B.buildKeyframes()):[QT(e,[],[],[],0,f,"",!1)]}visitTrigger(a,e){}visitState(a,e){}visitTransition(a,e){}visitAnimateChild(a,e){const t=e.subInstructions.get(e.element);if(t){const r=e.createSubContext(a.options),l=e.currentTimeline.currentTime,c=this._visitSubInstructions(t,r,r.options);l!=c&&e.transformIntoNewTimeline(c)}e.previousNode=a}visitAnimateRef(a,e){const t=e.createSubContext(a.options);t.transformIntoNewTimeline(),this.visitReference(a.animation,t),e.transformIntoNewTimeline(t.currentTimeline.currentTime),e.previousNode=a}_visitSubInstructions(a,e,t){let l=e.currentTimeline.currentTime;const c=null!=t.duration?gd(t.duration):null,s=null!=t.delay?gd(t.delay):null;return 0!==c&&a.forEach(o=>{const d=e.appendInstructionToTimeline(o,c,s);l=Math.max(l,d.duration+d.delay)}),l}visitReference(a,e){e.updateOptions(a.options,!0),Fa(this,a.animation,e),e.previousNode=a}visitSequence(a,e){const t=e.subContextCount;let r=e;const l=a.options;if(l&&(l.params||l.delay)&&(r=e.createSubContext(l),r.transformIntoNewTimeline(),null!=l.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=hy);const c=gd(l.delay);r.delayNextStep(c)}a.steps.length&&(a.steps.forEach(c=>Fa(this,c,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>t&&r.transformIntoNewTimeline()),e.previousNode=a}visitGroup(a,e){const t=[];let r=e.currentTimeline.currentTime;const l=a.options&&a.options.delay?gd(a.options.delay):0;a.steps.forEach(c=>{const s=e.createSubContext(a.options);l&&s.delayNextStep(l),Fa(this,c,s),r=Math.max(r,s.currentTimeline.currentTime),t.push(s.currentTimeline)}),t.forEach(c=>e.currentTimeline.mergeTimelineCollectedStyles(c)),e.transformIntoNewTimeline(r),e.previousNode=a}_visitTiming(a,e){if(a.dynamic){const t=a.strValue;return ny(e.params?ry(t,e.params,e.errors):t,e.errors)}return{duration:a.duration,delay:a.delay,easing:a.easing}}visitAnimate(a,e){const t=e.currentAnimateTimings=this._visitTiming(a.timings,e),r=e.currentTimeline;t.delay&&(e.incrementTime(t.delay),r.snapshotCurrentStyles());const l=a.style;5==l.type?this.visitKeyframes(l,e):(e.incrementTime(t.duration),this.visitStyle(l,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=a}visitStyle(a,e){const t=e.currentTimeline,r=e.currentAnimateTimings;!r&&t.hasCurrentStyleProperties()&&t.forwardFrame();const l=r&&r.easing||a.easing;a.isEmptyStep?t.applyEmptyStep(l):t.setStyles(a.styles,l,e.errors,e.options),e.previousNode=a}visitKeyframes(a,e){const t=e.currentAnimateTimings,r=e.currentTimeline.duration,l=t.duration,s=e.createSubContext().currentTimeline;s.easing=t.easing,a.styles.forEach(o=>{s.forwardTime((o.offset||0)*l),s.setStyles(o.styles,o.easing,e.errors,e.options),s.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(s),e.transformIntoNewTimeline(r+l),e.previousNode=a}visitQuery(a,e){const t=e.currentTimeline.currentTime,r=a.options||{},l=r.delay?gd(r.delay):0;l&&(6===e.previousNode.type||0==t&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=hy);let c=t;const s=e.invokeQuery(a.selector,a.originalSelector,a.limit,a.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=s.length;let o=null;s.forEach((d,u)=>{e.currentQueryIndex=u;const h=e.createSubContext(a.options,d);l&&h.delayNextStep(l),d===e.element&&(o=h.currentTimeline),Fa(this,a.animation,h),h.currentTimeline.applyStylesToKeyframe(),c=Math.max(c,h.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(c),o&&(e.currentTimeline.mergeTimelineCollectedStyles(o),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=a}visitStagger(a,e){const t=e.parentContext,r=e.currentTimeline,l=a.timings,c=Math.abs(l.duration),s=c*(e.currentQueryTotal-1);let o=c*e.currentQueryIndex;switch(l.duration<0?"reverse":l.easing){case"reverse":o=s-o;break;case"full":o=t.currentStaggerTime}const u=e.currentTimeline;o&&u.delayNextStep(o);const h=u.currentTime;Fa(this,a.animation,e),e.previousNode=a,t.currentStaggerTime=r.currentTime-h+(r.startTime-t.currentTimeline.startTime)}}const hy={};class KT{constructor(a,e,t,r,l,c,s,o){this._driver=a,this.element=e,this.subInstructions=t,this._enterClassName=r,this._leaveClassName=l,this.errors=c,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=hy,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=o||new py(this._driver,e,0),s.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(a,e){if(!a)return;const t=a;let r=this.options;null!=t.duration&&(r.duration=gd(t.duration)),null!=t.delay&&(r.delay=gd(t.delay));const l=t.params;if(l){let c=r.params;c||(c=this.options.params={}),Object.keys(l).forEach(s=>{(!e||!c.hasOwnProperty(s))&&(c[s]=ry(l[s],c,this.errors))})}}_copyOptions(){const a={};if(this.options){const e=this.options.params;if(e){const t=a.params={};Object.keys(e).forEach(r=>{t[r]=e[r]})}}return a}createSubContext(a=null,e,t){const r=e||this.element,l=new KT(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,t||0));return l.previousNode=this.previousNode,l.currentAnimateTimings=this.currentAnimateTimings,l.options=this._copyOptions(),l.updateOptions(a),l.currentQueryIndex=this.currentQueryIndex,l.currentQueryTotal=this.currentQueryTotal,l.parentContext=this,this.subContextCount++,l}transformIntoNewTimeline(a){return this.previousNode=hy,this.currentTimeline=this.currentTimeline.fork(this.element,a),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(a,e,t){const r={duration:e??a.duration,delay:this.currentTimeline.currentTime+(t??0)+a.delay,easing:""},l=new I6(this._driver,a.element,a.keyframes,a.preStyleProps,a.postStyleProps,r,a.stretchStartingKeyframe);return this.timelines.push(l),r}incrementTime(a){this.currentTimeline.forwardTime(this.currentTimeline.duration+a)}delayNextStep(a){a>0&&this.currentTimeline.delayNextStep(a)}invokeQuery(a,e,t,r,l,c){let s=[];if(r&&s.push(this.element),a.length>0){a=(a=a.replace(P6,"."+this._enterClassName)).replace(k6,"."+this._leaveClassName);let d=this._driver.query(this.element,a,1!=t);0!==t&&(d=t<0?d.slice(d.length+t,d.length):d.slice(0,t)),s.push(...d)}return!l&&0==s.length&&c.push(function Vq(n){return new i.vHH(3014,!1)}()),s}}class py{constructor(a,e,t,r){this._driver=a,this.element=e,this.startTime=t,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),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.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(a){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+a),e&&this.snapshotCurrentStyles()):this.startTime+=a}fork(a,e){return this.applyStylesToKeyframe(),new py(this._driver,a,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(a){this.applyStylesToKeyframe(),this.duration=a,this._loadKeyframe()}_updateStyle(a,e){this._localTimelineStyles.set(a,e),this._globalTimelineStyles.set(a,e),this._styleSummary.set(a,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(a){a&&this._previousKeyframe.set("easing",a);for(let[e,t]of this._globalTimelineStyles)this._backFill.set(e,t||Io),this._currentKeyframe.set(e,Io);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(a,e,t,r){e&&this._previousKeyframe.set("easing",e);const l=r&&r.params||{},c=function B6(n,a){const e=new Map;let t;return n.forEach(r=>{if("*"===r){t=t||a.keys();for(let l of t)e.set(l,Io)}else _d(r,e)}),e}(a,this._globalTimelineStyles);for(let[o,d]of c){const u=ry(d,l,t);var s;this._pendingStyles.set(o,u),this._localTimelineStyles.has(o)||this._backFill.set(o,null!==(s=this._globalTimelineStyles.get(o))&&void 0!==s?s:Io),this._updateStyle(o,u)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((a,e)=>{this._currentKeyframe.set(e,a)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((a,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,a)}))}snapshotCurrentStyles(){for(let[a,e]of this._localTimelineStyles)this._pendingStyles.set(a,e),this._updateStyle(a,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const a=[];for(let e in this._currentKeyframe)a.push(e);return a}mergeTimelineCollectedStyles(a){a._styleSummary.forEach((e,t)=>{const r=this._styleSummary.get(t);(!r||e.time>r.time)&&this._updateStyle(t,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const a=new Set,e=new Set,t=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((s,o)=>{const d=_d(s,new Map,this._backFill);d.forEach((u,h)=>{"!"===u?a.add(h):u===Io&&e.add(h)}),t||d.set("offset",o/this.duration),r.push(d)});const l=a.size?ay(a.values()):[],c=e.size?ay(e.values()):[];if(t){const s=r[0],o=new Map(s);s.set("offset",0),o.set("offset",1),r=[s,o]}return QT(this.element,r,l,c,this.duration,this.startTime,this.easing,!1)}}class I6 extends py{constructor(a,e,t,r,l,c,s=!1){super(a,e,c.delay),this.keyframes=t,this.preStyleProps=r,this.postStyleProps=l,this._stretchStartingKeyframe=s,this.timings={duration:c.duration,delay:c.delay,easing:c.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let a=this.keyframes,{delay:e,duration:t,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const l=[],c=t+e,s=e/c,o=_d(a[0]);o.set("offset",0),l.push(o);const d=_d(a[0]);d.set("offset",J2(s)),l.push(d);const u=a.length-1;for(let h=1;h<=u;h++){let f=_d(a[h]);const b=f.get("offset");f.set("offset",J2((e+b*t)/c)),l.push(f)}t=c,e=0,r="",a=l}return QT(this.element,a,this.preStyleProps,this.postStyleProps,t,e,r,!0)}}function J2(n,a=3){const e=Math.pow(10,a-1);return Math.round(n*e)/e}class ex{}const N6=new Set(["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"]);class V6 extends ex{normalizePropertyName(a,e){return $T(a)}normalizeStyleValue(a,e,t,r){let l="";const c=t.toString().trim();if(N6.has(e)&&0!==t&&"0"!==t)if("number"==typeof t)l="px";else{const s=t.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&0==s[1].length&&r.push(function Eq(n,a){return new i.vHH(3005,!1)}())}return c+l}}function Q2(n,a,e,t,r,l,c,s,o,d,u,h,f){return{type:0,element:n,triggerName:a,isRemovalTransition:r,fromState:e,fromStyles:l,toState:t,toStyles:c,timelines:s,queriedElements:o,preStyleProps:d,postStyleProps:u,totalTime:h,errors:f}}const tx={};class X2{constructor(a,e,t){this._triggerName=a,this.ast=e,this._stateStyles=t}match(a,e,t,r){return function F6(n,a,e,t,r){return n.some(l=>l(a,e,t,r))}(this.ast.matchers,a,e,t,r)}buildStyles(a,e,t){let r=this._stateStyles.get("*");return void 0!==a&&(r=this._stateStyles.get(a?.toString())||r),r?r.buildStyles(e,t):new Map}build(a,e,t,r,l,c,s,o,d,u){var h;const f=[],b=this.ast.options&&this.ast.options.params||tx,X=this.buildStyles(t,s&&s.params||tx,f),he=o&&o.params||tx,Pe=this.buildStyles(r,he,f),bt=new Set,kt=new Map,qt=new Map,oa="void"===r,Xo={params:z6(he,b),delay:null===(h=this.ast.options)||void 0===h?void 0:h.delay},la=u?[]:XT(a,e,this.ast.animation,l,c,X,Pe,Xo,d,f);let As=0;if(la.forEach(ao=>{As=Math.max(ao.duration+ao.delay,As)}),f.length)return Q2(e,this._triggerName,t,r,oa,X,Pe,[],[],kt,qt,As,f);la.forEach(ao=>{const Mg=ao.element,wg=Va(kt,Mg,new Set);ao.preStyleProps.forEach(hf=>wg.add(hf));const Cg=Va(qt,Mg,new Set);ao.postStyleProps.forEach(hf=>Cg.add(hf)),Mg!==e&&bt.add(Mg)});const by=ay(bt.values());return Q2(e,this._triggerName,t,r,oa,X,Pe,la,by,kt,qt,As)}}function z6(n,a){const e=bg(a);for(const t in n)n.hasOwnProperty(t)&&null!=n[t]&&(e[t]=n[t]);return e}class j6{constructor(a,e,t){this.styles=a,this.defaultParams=e,this.normalizer=t}buildStyles(a,e){const t=new Map,r=bg(this.defaultParams);return Object.keys(a).forEach(l=>{const c=a[l];null!==c&&(r[l]=c)}),this.styles.styles.forEach(l=>{"string"!=typeof l&&l.forEach((c,s)=>{c&&(c=ry(c,r,e));const o=this.normalizer.normalizePropertyName(s,e);c=this.normalizer.normalizeStyleValue(s,o,c,e),t.set(o,c)})}),t}}class Y6{constructor(a,e,t){this.name=a,this.ast=e,this._normalizer=t,this.transitionFactories=[],this.states=new Map,e.states.forEach(r=>{this.states.set(r.name,new j6(r.style,r.options&&r.options.params||{},t))}),K2(this.states,"true","1"),K2(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new X2(a,r,this.states))}),this.fallbackTransition=function W6(n,a,e){return new X2(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(c,s)=>!0],options:null,queryCount:0,depCount:0},a)}(a,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(a,e,t,r){return this.transitionFactories.find(c=>c.match(a,e,t,r))||null}matchStyles(a,e,t){return this.fallbackTransition.buildStyles(a,e,t)}}function K2(n,a,e){n.has(a)?n.has(e)||n.set(e,n.get(a)):n.has(e)&&n.set(a,n.get(e))}const U6=new uy;class G6{constructor(a,e,t){this.bodyNode=a,this._driver=e,this._normalizer=t,this._animations=new Map,this._playersById=new Map,this.players=[]}register(a,e){const t=[],l=ZT(this._driver,e,t,[]);if(t.length)throw function Uq(n){return new i.vHH(3503,!1)}();this._animations.set(a,l)}_buildPlayer(a,e,t){const r=a.element,l=L2(0,this._normalizer,0,a.keyframes,e,t);return this._driver.animate(r,l,a.duration,a.delay,a.easing,[],!0)}create(a,e,t={}){const r=[],l=this._animations.get(a);let c;const s=new Map;if(l?(c=XT(this._driver,e,l,YT,ey,new Map,new Map,t,U6,r),c.forEach(u=>{const h=Va(s,u.element,new Map);u.postStyleProps.forEach(f=>h.set(f,null))})):(r.push(function Gq(){return new i.vHH(3300,!1)}()),c=[]),r.length)throw function $q(n){return new i.vHH(3504,!1)}();s.forEach((u,h)=>{u.forEach((f,b)=>{u.set(b,this._driver.computeStyle(h,b,Io))})});const d=md(c.map(u=>{const h=s.get(u.element);return this._buildPlayer(u,new Map,h)}));return this._playersById.set(a,d),d.onDestroy(()=>this.destroy(a)),this.players.push(d),d}destroy(a){const e=this._getPlayer(a);e.destroy(),this._playersById.delete(a);const t=this.players.indexOf(e);t>=0&&this.players.splice(t,1)}_getPlayer(a){const e=this._playersById.get(a);if(!e)throw function Zq(n){return new i.vHH(3301,!1)}();return e}listen(a,e,t,r){const l=FT(e,"","","");return NT(this._getPlayer(a),t,l,r),()=>{}}command(a,e,t,r){if("register"==t)return void this.register(a,r[0]);if("create"==t)return void this.create(a,e,r[0]||{});const l=this._getPlayer(a);switch(t){case"play":l.play();break;case"pause":l.pause();break;case"reset":l.reset();break;case"restart":l.restart();break;case"finish":l.finish();break;case"init":l.init();break;case"setPosition":l.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(a)}}}const eH="ng-animate-queued",ix="ng-animate-disabled",X6=[],tH={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},K6={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},_s="__ng_removed";class nx{constructor(a,e=""){this.namespaceId=e;const t=a&&a.hasOwnProperty("value");if(this.value=function nY(n){return n??null}(t?a.value:a),t){const l=bg(a);delete l.value,this.options=l}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(a){const e=a.params;if(e){const t=this.options.params;Object.keys(e).forEach(r=>{null==t[r]&&(t[r]=e[r])})}}}const yg="void",rx=new nx(yg);class eY{constructor(a,e,t){this.id=a,this.hostElement=e,this._engine=t,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+a,bs(e,this._hostClassName)}listen(a,e,t,r){if(!this._triggers.has(e))throw function Jq(n,a){return new i.vHH(3302,!1)}();if(null==t||0==t.length)throw function Qq(n){return new i.vHH(3303,!1)}();if(!function rY(n){return"start"==n||"done"==n}(t))throw function Xq(n,a){return new i.vHH(3400,!1)}();const l=Va(this._elementListeners,a,[]),c={name:e,phase:t,callback:r};l.push(c);const s=Va(this._engine.statesByElement,a,new Map);return s.has(e)||(bs(a,ty),bs(a,ty+"-"+e),s.set(e,rx)),()=>{this._engine.afterFlush(()=>{const o=l.indexOf(c);o>=0&&l.splice(o,1),this._triggers.has(e)||s.delete(e)})}}register(a,e){return!this._triggers.has(a)&&(this._triggers.set(a,e),!0)}_getTrigger(a){const e=this._triggers.get(a);if(!e)throw function Kq(n){return new i.vHH(3401,!1)}();return e}trigger(a,e,t,r=!0){const l=this._getTrigger(e),c=new ax(this.id,e,a);let s=this._engine.statesByElement.get(a);s||(bs(a,ty),bs(a,ty+"-"+e),this._engine.statesByElement.set(a,s=new Map));let o=s.get(e);const d=new nx(t,this.id);if(!(t&&t.hasOwnProperty("value"))&&o&&d.absorbOptions(o.options),s.set(e,d),o||(o=rx),d.value!==yg&&o.value===d.value){if(!function oY(n,a){const e=Object.keys(n),t=Object.keys(a);if(e.length!=t.length)return!1;for(let r=0;r{Yu(a,he),Qo(a,Pe)})}return}const f=Va(this._engine.playersByElement,a,[]);f.forEach(X=>{X.namespaceId==this.id&&X.triggerName==e&&X.queued&&X.destroy()});let b=l.matchTransition(o.value,d.value,a,d.params),B=!1;if(!b){if(!r)return;b=l.fallbackTransition,B=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:a,triggerName:e,transition:b,fromState:o,toState:d,player:c,isFallbackTransition:B}),B||(bs(a,eH),c.onStart(()=>{uf(a,eH)})),c.onDone(()=>{let X=this.players.indexOf(c);X>=0&&this.players.splice(X,1);const he=this._engine.playersByElement.get(a);if(he){let Pe=he.indexOf(c);Pe>=0&&he.splice(Pe,1)}}),this.players.push(c),f.push(c),c}deregister(a){this._triggers.delete(a),this._engine.statesByElement.forEach(e=>e.delete(a)),this._elementListeners.forEach((e,t)=>{this._elementListeners.set(t,e.filter(r=>r.name!=a))})}clearElementCache(a){this._engine.statesByElement.delete(a),this._elementListeners.delete(a);const e=this._engine.playersByElement.get(a);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(a))}_signalRemovalForInnerTriggers(a,e){const t=this._engine.driver.query(a,iy,!0);t.forEach(r=>{if(r[_s])return;const l=this._engine.fetchNamespacesByElement(r);l.size?l.forEach(c=>c.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>t.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(a,e,t,r){const l=this._engine.statesByElement.get(a),c=new Map;if(l){const s=[];if(l.forEach((o,d)=>{if(c.set(d,o.value),this._triggers.has(d)){const u=this.trigger(a,d,yg,r);u&&s.push(u)}}),s.length)return this._engine.markElementAsRemoved(this.id,a,!0,e,c),t&&md(s).onDone(()=>this._engine.processLeaveNode(a)),!0}return!1}prepareLeaveAnimationListeners(a){const e=this._elementListeners.get(a),t=this._engine.statesByElement.get(a);if(e&&t){const r=new Set;e.forEach(l=>{const c=l.name;if(r.has(c))return;r.add(c);const o=this._triggers.get(c).fallbackTransition,d=t.get(c)||rx,u=new nx(yg),h=new ax(this.id,c,a);this._engine.totalQueuedPlayers++,this._queue.push({element:a,triggerName:c,transition:o,fromState:d,toState:u,player:h,isFallbackTransition:!0})})}}removeNode(a,e){const t=this._engine;if(a.childElementCount&&this._signalRemovalForInnerTriggers(a,e),this.triggerLeaveAnimation(a,e,!0))return;let r=!1;if(t.totalAnimations){const l=t.players.length?t.playersByQueriedElement.get(a):[];if(l&&l.length)r=!0;else{let c=a;for(;c=c.parentNode;)if(t.statesByElement.get(c)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(a),r)t.markElementAsRemoved(this.id,a,!1,e);else{const l=a[_s];(!l||l===tH)&&(t.afterFlush(()=>this.clearElementCache(a)),t.destroyInnerAnimations(a),t._onRemovalComplete(a,e))}}insertNode(a,e){bs(a,this._hostClassName)}drainQueuedTransitions(a){const e=[];return this._queue.forEach(t=>{const r=t.player;if(r.destroyed)return;const l=t.element,c=this._elementListeners.get(l);c&&c.forEach(s=>{if(s.name==t.triggerName){const o=FT(l,t.triggerName,t.fromState.value,t.toState.value);o._data=a,NT(t.player,s.phase,o,s.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(t)}),this._queue=[],e.sort((t,r)=>{const l=t.transition.ast.depCount,c=r.transition.ast.depCount;return 0==l||0==c?l-c:this._engine.driver.containsElement(t.element,r.element)?1:-1})}destroy(a){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,a)}elementContainsData(a){let e=!1;return this._elementListeners.has(a)&&(e=!0),e=!!this._queue.find(t=>t.element===a)||e,e}}class tY{constructor(a,e,t){this.bodyNode=a,this.driver=e,this._normalizer=t,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=(r,l)=>{}}_onRemovalComplete(a,e){this.onRemovalComplete(a,e)}get queuedPlayers(){const a=[];return this._namespaceList.forEach(e=>{e.players.forEach(t=>{t.queued&&a.push(t)})}),a}createNamespace(a,e){const t=new eY(a,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(t,e):(this.newHostElements.set(e,t),this.collectEnterElement(e)),this._namespaceLookup[a]=t}_balanceNamespaceList(a,e){const t=this._namespaceList,r=this.namespacesByHostElement;if(t.length-1>=0){let c=!1,s=this.driver.getParentElement(e);for(;s;){const o=r.get(s);if(o){const d=t.indexOf(o);t.splice(d+1,0,a),c=!0;break}s=this.driver.getParentElement(s)}c||t.unshift(a)}else t.push(a);return r.set(e,a),a}register(a,e){let t=this._namespaceLookup[a];return t||(t=this.createNamespace(a,e)),t}registerTrigger(a,e,t){let r=this._namespaceLookup[a];r&&r.register(e,t)&&this.totalAnimations++}destroy(a,e){if(!a)return;const t=this._fetchNamespace(a);this.afterFlush(()=>{this.namespacesByHostElement.delete(t.hostElement),delete this._namespaceLookup[a];const r=this._namespaceList.indexOf(t);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>t.destroy(e))}_fetchNamespace(a){return this._namespaceLookup[a]}fetchNamespacesByElement(a){const e=new Set,t=this.statesByElement.get(a);if(t)for(let r of t.values())if(r.namespaceId){const l=this._fetchNamespace(r.namespaceId);l&&e.add(l)}return e}trigger(a,e,t,r){if(fy(e)){const l=this._fetchNamespace(a);if(l)return l.trigger(e,t,r),!0}return!1}insertNode(a,e,t,r){if(!fy(e))return;const l=e[_s];if(l&&l.setForRemoval){l.setForRemoval=!1,l.setForMove=!0;const c=this.collectedLeaveElements.indexOf(e);c>=0&&this.collectedLeaveElements.splice(c,1)}if(a){const c=this._fetchNamespace(a);c&&c.insertNode(e,t)}r&&this.collectEnterElement(e)}collectEnterElement(a){this.collectedEnterElements.push(a)}markElementAsDisabled(a,e){e?this.disabledNodes.has(a)||(this.disabledNodes.add(a),bs(a,ix)):this.disabledNodes.has(a)&&(this.disabledNodes.delete(a),uf(a,ix))}removeNode(a,e,t,r){if(fy(e)){const l=a?this._fetchNamespace(a):null;if(l?l.removeNode(e,r):this.markElementAsRemoved(a,e,!1,r),t){const c=this.namespacesByHostElement.get(e);c&&c.id!==a&&c.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(a,e,t,r,l){this.collectedLeaveElements.push(e),e[_s]={namespaceId:a,setForRemoval:r,hasAnimation:t,removedBeforeQueried:!1,previousTriggersValues:l}}listen(a,e,t,r,l){return fy(e)?this._fetchNamespace(a).listen(e,t,r,l):()=>{}}_buildInstruction(a,e,t,r,l){return a.transition.build(this.driver,a.element,a.fromState.value,a.toState.value,t,r,a.fromState.options,a.toState.options,e,l)}destroyInnerAnimations(a){let e=this.driver.query(a,iy,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(a,WT,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(a){const e=this.playersByElement.get(a);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(a){const e=this.playersByQueriedElement.get(a);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(a=>{if(this.players.length)return md(this.players).onDone(()=>a());a()})}processLeaveNode(a){var e;const t=a[_s];if(t&&t.setForRemoval){if(a[_s]=tH,t.namespaceId){this.destroyInnerAnimations(a);const r=this._fetchNamespace(t.namespaceId);r&&r.clearElementCache(a)}this._onRemovalComplete(a,t.setForRemoval)}null!==(e=a.classList)&&void 0!==e&&e.contains(ix)&&this.markElementAsDisabled(a,!1),this.driver.query(a,".ng-animate-disabled",!0).forEach(r=>{this.markElementAsDisabled(r,!1)})}flush(a=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,r)=>this._balanceNamespaceList(t,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let t=0;tt()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?md(e).onDone(()=>{t.forEach(r=>r())}):t.forEach(r=>r())}}reportError(a){throw function e6(n){return new i.vHH(3402,!1)}()}_flushAnimations(a,e){const t=new uy,r=[],l=new Map,c=[],s=new Map,o=new Map,d=new Map,u=new Set;this.disabledNodes.forEach(ut=>{u.add(ut);const Ct=this.driver.query(ut,".ng-animate-queued",!0);for(let Lt=0;Lt{const Lt=YT+X++;B.set(Ct,Lt),ut.forEach(ii=>bs(ii,Lt))});const he=[],Pe=new Set,bt=new Set;for(let ut=0;utPe.add(ii)):bt.add(Ct))}const kt=new Map,qt=rH(f,Array.from(Pe));qt.forEach((ut,Ct)=>{const Lt=ey+X++;kt.set(Ct,Lt),ut.forEach(ii=>bs(ii,Lt))}),a.push(()=>{b.forEach((ut,Ct)=>{const Lt=B.get(Ct);ut.forEach(ii=>uf(ii,Lt))}),qt.forEach((ut,Ct)=>{const Lt=kt.get(Ct);ut.forEach(ii=>uf(ii,Lt))}),he.forEach(ut=>{this.processLeaveNode(ut)})});const oa=[],Xo=[];for(let ut=this._namespaceList.length-1;ut>=0;ut--)this._namespaceList[ut].drainQueuedTransitions(e).forEach(Lt=>{const ii=Lt.player,Dn=Lt.element;if(oa.push(ii),this.collectedEnterElements.length){const Hr=Dn[_s];if(Hr&&Hr.setForMove){if(Hr.previousTriggersValues&&Hr.previousTriggersValues.has(Lt.triggerName)){const Uu=Hr.previousTriggersValues.get(Lt.triggerName),ys=this.statesByElement.get(Lt.element);if(ys&&ys.has(Lt.triggerName)){const Ay=ys.get(Lt.triggerName);Ay.value=Uu,ys.set(Lt.triggerName,Ay)}}return void ii.destroy()}}const Ko=!h||!this.driver.containsElement(h,Dn),za=kt.get(Dn),bd=B.get(Dn),Cn=this._buildInstruction(Lt,t,bd,za,Ko);if(Cn.errors&&Cn.errors.length)return void Xo.push(Cn);if(Ko)return ii.onStart(()=>Yu(Dn,Cn.fromStyles)),ii.onDestroy(()=>Qo(Dn,Cn.toStyles)),void r.push(ii);if(Lt.isFallbackTransition)return ii.onStart(()=>Yu(Dn,Cn.fromStyles)),ii.onDestroy(()=>Qo(Dn,Cn.toStyles)),void r.push(ii);const xH=[];Cn.timelines.forEach(Hr=>{Hr.stretchStartingKeyframe=!0,this.disabledNodes.has(Hr.element)||xH.push(Hr)}),Cn.timelines=xH,t.append(Dn,Cn.timelines),c.push({instruction:Cn,player:ii,element:Dn}),Cn.queriedElements.forEach(Hr=>Va(s,Hr,[]).push(ii)),Cn.preStyleProps.forEach((Hr,Uu)=>{if(Hr.size){let ys=o.get(Uu);ys||o.set(Uu,ys=new Set),Hr.forEach((Ay,lx)=>ys.add(lx))}}),Cn.postStyleProps.forEach((Hr,Uu)=>{let ys=d.get(Uu);ys||d.set(Uu,ys=new Set),Hr.forEach((Ay,lx)=>ys.add(lx))})});if(Xo.length){const ut=[];Xo.forEach(Ct=>{ut.push(function t6(n,a){return new i.vHH(3505,!1)}())}),oa.forEach(Ct=>Ct.destroy()),this.reportError(ut)}const la=new Map,As=new Map;c.forEach(ut=>{const Ct=ut.element;t.has(Ct)&&(As.set(Ct,Ct),this._beforeAnimationBuild(ut.player.namespaceId,ut.instruction,la))}),r.forEach(ut=>{const Ct=ut.element;this._getPreviousPlayers(Ct,!1,ut.namespaceId,ut.triggerName,null).forEach(ii=>{Va(la,Ct,[]).push(ii),ii.destroy()})});const by=he.filter(ut=>sH(ut,o,d)),ao=new Map;nH(ao,this.driver,bt,d,Io).forEach(ut=>{sH(ut,o,d)&&by.push(ut)});const wg=new Map;b.forEach((ut,Ct)=>{nH(wg,this.driver,new Set(ut),o,"!")}),by.forEach(ut=>{var Ct,Lt;const ii=ao.get(ut),Dn=wg.get(ut);ao.set(ut,new Map([...Array.from(null!==(Ct=ii?.entries())&&void 0!==Ct?Ct:[]),...Array.from(null!==(Lt=Dn?.entries())&&void 0!==Lt?Lt:[])]))});const Cg=[],hf=[],TH={};c.forEach(ut=>{const{element:Ct,player:Lt,instruction:ii}=ut;if(t.has(Ct)){if(u.has(Ct))return Lt.onDestroy(()=>Qo(Ct,ii.toStyles)),Lt.disabled=!0,Lt.overrideTotalTime(ii.totalTime),void r.push(Lt);let Dn=TH;if(As.size>1){let za=Ct;const bd=[];for(;za=za.parentNode;){const Cn=As.get(za);if(Cn){Dn=Cn;break}bd.push(za)}bd.forEach(Cn=>As.set(Cn,Dn))}const Ko=this._buildAnimation(Lt.namespaceId,ii,la,l,wg,ao);if(Lt.setRealPlayer(Ko),Dn===TH)Cg.push(Lt);else{const za=this.playersByElement.get(Dn);za&&za.length&&(Lt.parentPlayer=md(za)),r.push(Lt)}}else Yu(Ct,ii.fromStyles),Lt.onDestroy(()=>Qo(Ct,ii.toStyles)),hf.push(Lt),u.has(Ct)&&r.push(Lt)}),hf.forEach(ut=>{const Ct=l.get(ut.element);if(Ct&&Ct.length){const Lt=md(Ct);ut.setRealPlayer(Lt)}}),r.forEach(ut=>{ut.parentPlayer?ut.syncPlayerEvents(ut.parentPlayer):ut.destroy()});for(let ut=0;ut!Ko.destroyed);Dn.length?aY(this,Ct,Dn):this.processLeaveNode(Ct)}return he.length=0,Cg.forEach(ut=>{this.players.push(ut),ut.onDone(()=>{ut.destroy();const Ct=this.players.indexOf(ut);this.players.splice(Ct,1)}),ut.play()}),Cg}elementContainsData(a,e){let t=!1;const r=e[_s];return r&&r.setForRemoval&&(t=!0),this.playersByElement.has(e)&&(t=!0),this.playersByQueriedElement.has(e)&&(t=!0),this.statesByElement.has(e)&&(t=!0),this._fetchNamespace(a).elementContainsData(e)||t}afterFlush(a){this._flushFns.push(a)}afterFlushAnimationsDone(a){this._whenQuietFns.push(a)}_getPreviousPlayers(a,e,t,r,l){let c=[];if(e){const s=this.playersByQueriedElement.get(a);s&&(c=s)}else{const s=this.playersByElement.get(a);if(s){const o=!l||l==yg;s.forEach(d=>{d.queued||!o&&d.triggerName!=r||c.push(d)})}}return(t||r)&&(c=c.filter(s=>!(t&&t!=s.namespaceId||r&&r!=s.triggerName))),c}_beforeAnimationBuild(a,e,t){const l=e.element,c=e.isRemovalTransition?void 0:a,s=e.isRemovalTransition?void 0:e.triggerName;for(const o of e.timelines){const d=o.element,u=d!==l,h=Va(t,d,[]);this._getPreviousPlayers(d,u,c,s,e.toState).forEach(b=>{const B=b.getRealPlayer();B.beforeDestroy&&B.beforeDestroy(),b.destroy(),h.push(b)})}Yu(l,e.fromStyles)}_buildAnimation(a,e,t,r,l,c){const s=e.triggerName,o=e.element,d=[],u=new Set,h=new Set,f=e.timelines.map(B=>{const X=B.element;u.add(X);const he=X[_s];if(he&&he.removedBeforeQueried)return new Cu(B.duration,B.delay);const Pe=X!==o,bt=function sY(n){const a=[];return aH(n,a),a}((t.get(X)||X6).map(la=>la.getRealPlayer())).filter(la=>!!la.element&&la.element===X),kt=l.get(X),qt=c.get(X),oa=L2(0,this._normalizer,0,B.keyframes,kt,qt),Xo=this._buildPlayer(B,oa,bt);if(B.subTimeline&&r&&h.add(X),Pe){const la=new ax(a,s,X);la.setRealPlayer(Xo),d.push(la)}return Xo});d.forEach(B=>{Va(this.playersByQueriedElement,B.element,[]).push(B),B.onDone(()=>function iY(n,a,e){let t=n.get(a);if(t){if(t.length){const r=t.indexOf(e);t.splice(r,1)}0==t.length&&n.delete(a)}return t}(this.playersByQueriedElement,B.element,B))}),u.forEach(B=>bs(B,F2));const b=md(f);return b.onDestroy(()=>{u.forEach(B=>uf(B,F2)),Qo(o,e.toStyles)}),h.forEach(B=>{Va(r,B,[]).push(b)}),b}_buildPlayer(a,e,t){return e.length>0?this.driver.animate(a.element,e,a.duration,a.delay,a.easing,t):new Cu(a.duration,a.delay)}}class ax{constructor(a,e,t){this.namespaceId=a,this.triggerName=e,this.element=t,this._player=new Cu,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(a){this._containsRealPlayer||(this._player=a,this._queuedCallbacks.forEach((e,t)=>{e.forEach(r=>NT(a,t,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(a.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(a){this.totalTime=a}syncPlayerEvents(a){const e=this._player;e.triggerCallback&&a.onStart(()=>e.triggerCallback("start")),a.onDone(()=>this.finish()),a.onDestroy(()=>this.destroy())}_queueEvent(a,e){Va(this._queuedCallbacks,a,[]).push(e)}onDone(a){this.queued&&this._queueEvent("done",a),this._player.onDone(a)}onStart(a){this.queued&&this._queueEvent("start",a),this._player.onStart(a)}onDestroy(a){this.queued&&this._queueEvent("destroy",a),this._player.onDestroy(a)}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(a){this.queued||this._player.setPosition(a)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(a){const e=this._player;e.triggerCallback&&e.triggerCallback(a)}}function fy(n){return n&&1===n.nodeType}function iH(n,a){const e=n.style.display;return n.style.display=a??"none",e}function nH(n,a,e,t,r){const l=[];e.forEach(o=>l.push(iH(o)));const c=[];t.forEach((o,d)=>{const u=new Map;o.forEach(h=>{const f=a.computeStyle(d,h,r);u.set(h,f),(!f||0==f.length)&&(d[_s]=K6,c.push(d))}),n.set(d,u)});let s=0;return e.forEach(o=>iH(o,l[s++])),c}function rH(n,a){const e=new Map;if(n.forEach(s=>e.set(s,[])),0==a.length)return e;const r=new Set(a),l=new Map;function c(s){if(!s)return 1;let o=l.get(s);if(o)return o;const d=s.parentNode;return o=e.has(d)?d:r.has(d)?1:c(d),l.set(s,o),o}return a.forEach(s=>{const o=c(s);1!==o&&e.get(o).push(s)}),e}function bs(n,a){var e;null===(e=n.classList)||void 0===e||e.add(a)}function uf(n,a){var e;null===(e=n.classList)||void 0===e||e.remove(a)}function aY(n,a,e){md(e).onDone(()=>n.processLeaveNode(a))}function aH(n,a){for(let e=0;er.add(l)):a.set(n,t),e.delete(n),!0}class my{constructor(a,e,t){this.bodyNode=a,this._driver=e,this._normalizer=t,this._triggerCache={},this.onRemovalComplete=(r,l)=>{},this._transitionEngine=new tY(a,e,t),this._timelineEngine=new G6(a,e,t),this._transitionEngine.onRemovalComplete=(r,l)=>this.onRemovalComplete(r,l)}registerTrigger(a,e,t,r,l){const c=a+"-"+r;let s=this._triggerCache[c];if(!s){const o=[],u=ZT(this._driver,l,o,[]);if(o.length)throw function Yq(n,a){return new i.vHH(3404,!1)}();s=function q6(n,a,e){return new Y6(n,a,e)}(r,u,this._normalizer),this._triggerCache[c]=s}this._transitionEngine.registerTrigger(e,r,s)}register(a,e){this._transitionEngine.register(a,e)}destroy(a,e){this._transitionEngine.destroy(a,e)}onInsert(a,e,t,r){this._transitionEngine.insertNode(a,e,t,r)}onRemove(a,e,t,r){this._transitionEngine.removeNode(a,e,r||!1,t)}disableAnimations(a,e){this._transitionEngine.markElementAsDisabled(a,e)}process(a,e,t,r){if("@"==t.charAt(0)){const[l,c]=P2(t);this._timelineEngine.command(l,e,c,r)}else this._transitionEngine.trigger(a,e,t,r)}listen(a,e,t,r,l){if("@"==t.charAt(0)){const[c,s]=P2(t);return this._timelineEngine.listen(c,e,s,l)}return this._transitionEngine.listen(a,e,t,r,l)}flush(a=-1){this._transitionEngine.flush(a)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let cY=(()=>{class n{constructor(e,t,r){this._element=e,this._startStyles=t,this._endStyles=r,this._state=0;let l=n.initialStylesByElement.get(e);l||n.initialStylesByElement.set(e,l=new Map),this._initialStyles=l}start(){this._state<1&&(this._startStyles&&Qo(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Qo(this._element,this._initialStyles),this._endStyles&&(Qo(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(Yu(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Yu(this._element,this._endStyles),this._endStyles=null),Qo(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function sx(n){let a=null;return n.forEach((e,t)=>{(function dY(n){return"display"===n||"position"===n})(t)&&(a=a||new Map,a.set(t,e))}),a}class oH{constructor(a,e,t,r){this.element=a,this.keyframes=e,this.options=t,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=t.duration,this._delay=t.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(a=>a()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const a=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,a,this.options),this._finalKeyframe=a.length?a[a.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(a){const e=[];return a.forEach(t=>{e.push(Object.fromEntries(t))}),e}_triggerWebAnimation(a,e,t){return a.animate(this._convertKeyframesToObject(e),t)}onStart(a){this._originalOnStartFns.push(a),this._onStartFns.push(a)}onDone(a){this._originalOnDoneFns.push(a),this._onDoneFns.push(a)}onDestroy(a){this._onDestroyFns.push(a)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(a=>a()),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,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_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(a=>a()),this._onDestroyFns=[])}setPosition(a){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=a*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const a=new Map;this.hasStarted()&&this._finalKeyframe.forEach((t,r)=>{"offset"!==r&&a.set(r,this._finished?t:U2(this.element,r))}),this.currentSnapshot=a}triggerCallback(a){const e="start"===a?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class uY{validateStyleProperty(a){return!0}validateAnimatableStyleProperty(a){return!0}matchesElement(a,e){return!1}containsElement(a,e){return I2(a,e)}getParentElement(a){return jT(a)}query(a,e,t){return B2(a,e,t)}computeStyle(a,e,t){return window.getComputedStyle(a)[e]}animate(a,e,t,r,l,c=[]){const o={duration:t,delay:r,fill:0==r?"both":"forwards"};l&&(o.easing=l);const d=new Map,u=c.filter(b=>b instanceof oH);(function m6(n,a){return 0===n||0===a})(t,r)&&u.forEach(b=>{b.currentSnapshot.forEach((B,X)=>d.set(X,B))});let h=function u6(n){return n.length?n[0]instanceof Map?n:n.map(a=>z2(a)):[]}(e).map(b=>_d(b));h=function g6(n,a,e){if(e.size&&a.length){let t=a[0],r=[];if(e.forEach((l,c)=>{t.has(c)||r.push(c),t.set(c,l)}),r.length)for(let l=1;lc.set(s,U2(n,s)))}}return a}(a,h,d);const f=function lY(n,a){let e=null,t=null;return Array.isArray(a)&&a.length?(e=sx(a[0]),a.length>1&&(t=sx(a[a.length-1]))):a instanceof Map&&(e=sx(a)),e||t?new cY(n,e,t):null}(a,h);return new oH(a,h,o,f)}}let hY=(()=>{class n extends N0{constructor(e,t){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(t.body,{id:"0",encapsulation:i.ifc.None,styles:[],data:{animation:[]}})}build(e){const t=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?L_(e):e;return lH(this._renderer,null,t,"register",[r]),new pY(t,this._renderer)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.FYo),i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class pY extends class H_{}{constructor(a,e){super(),this._id=a,this._renderer=e}create(a,e){return new fY(this._id,a,e||{},this._renderer)}}class fY{constructor(a,e,t,r){this.id=a,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",t)}_listen(a,e){return this._renderer.listen(this.element,`@@${this.id}:${a}`,e)}_command(a,...e){return lH(this._renderer,this.element,this.id,a,e)}onDone(a){this._listen("done",a)}onStart(a){this._listen("start",a)}onDestroy(a){this._listen("destroy",a)}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"),this._started=!1}setPosition(a){this._command("setPosition",a)}getPosition(){var a,e;return null!==(a=null===(e=this._renderer.engine.players[+this.id])||void 0===e?void 0:e.getPosition())&&void 0!==a?a:0}}function lH(n,a,e,t,r){return n.setProperty(a,`@@${e}:${t}`,r)}const cH="@.disabled";let mY=(()=>{class n{constructor(e,t,r){this.delegate=e,this.engine=t,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),t.onRemovalComplete=(l,c)=>{const s=c?.parentNode(l);s&&c.removeChild(s,l)}}createRenderer(e,t){const l=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){let u=this._rendererCache.get(l);return u||(u=new dH("",l,this.engine),this._rendererCache.set(l,u)),u}const c=t.id,s=t.id+"-"+this._currentId;this._currentId++,this.engine.register(s,e);const o=u=>{Array.isArray(u)?u.forEach(o):this.engine.registerTrigger(c,s,e,u.name,u)};return t.data.animation.forEach(o),new gY(this,s,l,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,r){e>=0&&et(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(l=>{const[c,s]=l;c(s)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,r]))}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 n.\u0275fac=function(e){return new(e||n)(i.LFG(i.FYo),i.LFG(my),i.LFG(i.R0b))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class dH{constructor(a,e,t){this.namespaceId=a,this.delegate=e,this.engine=t,this.destroyNode=this.delegate.destroyNode?r=>e.destroyNode(r):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(a,e){return this.delegate.createElement(a,e)}createComment(a){return this.delegate.createComment(a)}createText(a){return this.delegate.createText(a)}appendChild(a,e){this.delegate.appendChild(a,e),this.engine.onInsert(this.namespaceId,e,a,!1)}insertBefore(a,e,t,r=!0){this.delegate.insertBefore(a,e,t),this.engine.onInsert(this.namespaceId,e,a,r)}removeChild(a,e,t){this.engine.onRemove(this.namespaceId,e,this.delegate,t)}selectRootElement(a,e){return this.delegate.selectRootElement(a,e)}parentNode(a){return this.delegate.parentNode(a)}nextSibling(a){return this.delegate.nextSibling(a)}setAttribute(a,e,t,r){this.delegate.setAttribute(a,e,t,r)}removeAttribute(a,e,t){this.delegate.removeAttribute(a,e,t)}addClass(a,e){this.delegate.addClass(a,e)}removeClass(a,e){this.delegate.removeClass(a,e)}setStyle(a,e,t,r){this.delegate.setStyle(a,e,t,r)}removeStyle(a,e,t){this.delegate.removeStyle(a,e,t)}setProperty(a,e,t){"@"==e.charAt(0)&&e==cH?this.disableAnimations(a,!!t):this.delegate.setProperty(a,e,t)}setValue(a,e){this.delegate.setValue(a,e)}listen(a,e,t){return this.delegate.listen(a,e,t)}disableAnimations(a,e){this.engine.disableAnimations(a,e)}}class gY extends dH{constructor(a,e,t,r){super(e,t,r),this.factory=a,this.namespaceId=e}setProperty(a,e,t){"@"==e.charAt(0)?"."==e.charAt(1)&&e==cH?this.disableAnimations(a,t=void 0===t||!!t):this.engine.process(this.namespaceId,a,e.slice(1),t):this.delegate.setProperty(a,e,t)}listen(a,e,t){if("@"==e.charAt(0)){const r=function _Y(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(a);let l=e.slice(1),c="";return"@"!=l.charAt(0)&&([l,c]=function bY(n){const a=n.indexOf(".");return[n.substring(0,a),n.slice(a+1)]}(l)),this.engine.listen(this.namespaceId,r,l,c,s=>{this.factory.scheduleListenerCallback(s._data||-1,t,s)})}return this.delegate.listen(a,e,t)}}const uH=[{provide:N0,useClass:hY},{provide:ex,useFactory:function yY(){return new V6}},{provide:my,useClass:(()=>{class n extends my{constructor(e,t,r,l){super(e.body,t,r)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0),i.LFG(qT),i.LFG(ex),i.LFG(i.z2F))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})()},{provide:i.FYo,useFactory:function MY(n,a,e){return new mY(n,a,e)},deps:[Me,my,i.R0b]}],ox=[{provide:qT,useFactory:()=>new uY},{provide:i.QbO,useValue:"BrowserAnimations"},...uH],hH=[{provide:qT,useClass:N2},{provide:i.QbO,useValue:"NoopAnimations"},...uH];let wY=(()=>{class n{static withConfig(e){return{ngModule:n,providers:e.disableAnimations?hH:ox}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:ox,imports:[Ut]}),n})(),CY=(()=>{class n{constructor(e,t,r,l,c){this.http=e,this.storeService=t,this.authzSevice=r,this.titleService=l,this.utilsService=c}initializeColors(e,t){return new Promise(r=>{t.forEach(l=>{const c=this.storeService.getProperty("theme")[l.configValue];document.documentElement.style.setProperty(l.cssVariable,c)}),e.forEach(l=>{const c=this.storeService.getProperty("theme")[l.configValue];document.documentElement.style.setProperty(l.cssVariable,c),this.setEntityTheme(l.entity,c)}),r()})}setEntityTheme(e,t){const r=function vY(n){return[sa(tinycolor(n).lighten(52),"50"),sa(tinycolor(n).lighten(37),"100"),sa(tinycolor(n).lighten(26),"200"),sa(tinycolor(n).lighten(12),"300"),sa(tinycolor(n).lighten(6),"400"),sa(tinycolor(n),"500"),sa(tinycolor(n).darken(6),"600"),sa(tinycolor(n).darken(12),"700"),sa(tinycolor(n).darken(18),"800"),sa(tinycolor(n).darken(24),"900"),sa(tinycolor(n).lighten(50).saturate(30),"A100"),sa(tinycolor(n).lighten(30).saturate(30),"A200"),sa(tinycolor(n).lighten(10).saturate(15),"A400"),sa(tinycolor(n).lighten(5).saturate(5),"A700")]}(t);for(const l of r){const o=`--${e}-theme-primary-contrast-${l.name}`,d=l.darkContrast?"30,30,30":"255,255,255";document.documentElement.style.setProperty(`--${e}-theme-primary-${l.name}`,`${l.red},${l.green},${l.blue}`),document.documentElement.style.setProperty(o,d)}}loadAppDefaultConfig(){return new Promise(e=>{this.http.get("/assets/config/defaultConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{this.storeService.setDefaultConfig(t),e()})})}loadAppInstanceConfig(){return new Promise(e=>{this.http.get("/assets/config/instanceConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{this.storeService.setInstanceConfig(t);const r=document.location.hostname;t?.brandings?.[r]&&this.storeService.setBanding(r),e()},()=>{e()})})}getNoCacheHeaders(){return new M.WM({CacheControl:"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"})}setInstanceFavicon(){return new Promise(e=>{const t=document.querySelector("link[rel*='icon']")||document.createElement("link");t.type="image/x-icon",t.rel="shortcut icon",t.href=this.storeService.getProperty("instance_favicon")?"./assets/config/instanceFavicon.ico":"./assets/img/perun.ico",document.getElementsByTagName("head")[0].appendChild(t),e()})}setApiUrl(){return new Promise(e=>{let t=this.storeService.getProperty("api_url");("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal")||this.storeService.getProperty("auto_service_access_redirect"))&&(t=t.replace("oauth","ba")),this.authzSevice.configuration.basePath=t,this.titleService.setTitle(this.storeService.getProperty("document_title").en),e()})}loadAppsConfig(){return new Promise((e,t)=>{this.utilsService.getAppsConfig().subscribe(r=>{this.storeService.setAppsConfig(r),e()},r=>t(r))})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(jt),i.LFG(Cs),i.LFG(se),i.LFG(ja))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function sa(n,a){const e=tinycolor(n),t=e.toRgb();return{name:a,hex:e.toHexString(),darkContrast:e.isLight(),red:t.r,green:t.g,blue:t.b}}let TY=(()=>{class n{constructor(e,t,r,l){this.initAuthService=e,this.appConfigService=t,this.location=r,this.mfaHandlerService=l,this.entityColorConfigs=[{entity:"user",configValue:"user_color",cssVariable:"--user-color"}],this.colorConfigs=[{configValue:"sidemenu_bg_color",cssVariable:"--side-bg"},{configValue:"sidemenu_hover_color",cssVariable:"--side-hover"},{configValue:"sidemenu_hover_text_color",cssVariable:"--side-text-hover"},{configValue:"sidemenu_active_color",cssVariable:"--side-active"},{configValue:"sidemenu_active_text_color",cssVariable:"--side-text-active"}]}initialize(){return this.appConfigService.loadAppDefaultConfig().then(()=>this.appConfigService.loadAppInstanceConfig()).then(()=>this.appConfigService.setApiUrl()).then(()=>this.appConfigService.initializeColors(this.entityColorConfigs,this.colorConfigs)).then(()=>this.appConfigService.setInstanceFavicon()).then(()=>this.initAuthService.verifyAuth()).catch(e=>{throw this.mfaHandlerService.catchNoMfaTokenError(e?.params?.error),console.error(e),this.location.go("/"),location.reload(),e}).then(e=>e?(this.mfaHandlerService.closeMfaWindow(),this.initAuthService.loadPrincipal().then(()=>this.appConfigService.loadAppsConfig()).then(()=>this.initAuthService.checkRouteGuard())):this.initAuthService.handleAuthStart())}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(gA),i.LFG(CY),i.LFG(w.Ye),i.LFG(Bv))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),gH=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[Yv,Ic]}),n})(),vH=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[Yv]}),n})(),QW=(()=>{class n{constructor(e,t){(0,w.PM)(t)&&!e&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(e,t=[]){return{ngModule:n,providers:e.serverLoaded?[{provide:Ks,useValue:{...Wv,...e}},{provide:Uv,useValue:t,multi:!0},{provide:Jp,useValue:!0}]:[{provide:Ks,useValue:{...Wv,...e}},{provide:Uv,useValue:t,multi:!0}]}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Jp),i.LFG(i.Lbi))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[gH,zE,vH,gH,zE,vH]}),n})();const XW=new i.OlP("perun-api-service"),KW={provide:M.TP,useExisting:(0,i.Gpc)(()=>pE),multi:!0};function eU(n){return new wq(n,"./assets/i18n/",".json")}function tU(n){const a={basePath:n.getProperty("api_url")};return new Et(a)}const iU=n=>()=>n.initialize();let nU=(()=>{class n{constructor(e,t){this.customIconService=e,this.translate=t,this.translate.setDefaultLang("en"),this.translate.use("en"),this.customIconService.registerPerunRefreshIcon()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(uE),i.LFG($t))},n.\u0275mod=i.oAB({type:n,bootstrap:[fI]}),n.\u0275inj=i.cJS({providers:[uE,{provide:i.ip1,useFactory:iU,multi:!0,deps:[TY]},{provide:Et,useFactory:tU,deps:[jt]},TA,pE,KW,{provide:XW,useClass:DL},se,{provide:Jl.Hy,useFactory:()=>localStorage}],imports:[Ut,wY,M.JF,co.forRoot({loader:{provide:Gr,useFactory:eU,deps:[M.eN]}}),Mq,Qs,jv,fT,Oh,Nn,QW,cT,C2,xA,ET,$s,id,Qm,og,Xp,qo,lg,ad,Kp,UA,kT,tD,GE,LN,jr,Oa,IT,lD,Hp,E4,hv,jp,Jl.zr.forRoot(),cR]}),n})();(0,i.G48)(),be().bootstrapModule(nU).catch(n=>console.error(n))},1302:function(j,Y,T){var w;!function(i,E){var x={};!function(i){"use strict";i.__esModule=!0,i.digestLength=32,i.blockSize=64;var E=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function x(le,re,ie,ge,Ae){for(var Te,Je,Xe,Re,Se,He,ft,Ne,ze,Ve,pe,me,ve;Ae>=64;){for(Te=re[0],Je=re[1],Xe=re[2],Re=re[3],Se=re[4],He=re[5],ft=re[6],Ne=re[7],Ve=0;Ve<16;Ve++)le[Ve]=(255&ie[pe=ge+4*Ve])<<24|(255&ie[pe+1])<<16|(255&ie[pe+2])<<8|255&ie[pe+3];for(Ve=16;Ve<64;Ve++)le[Ve]=((me=((ze=le[Ve-2])>>>17|ze<<15)^(ze>>>19|ze<<13)^ze>>>10)+le[Ve-7]|0)+((ve=((ze=le[Ve-15])>>>7|ze<<25)^(ze>>>18|ze<<14)^ze>>>3)+le[Ve-16]|0);for(Ve=0;Ve<64;Ve++)me=(((Se>>>6|Se<<26)^(Se>>>11|Se<<21)^(Se>>>25|Se<<7))+(Se&He^~Se&ft)|0)+(Ne+(E[Ve]+le[Ve]|0)|0)|0,ve=((Te>>>2|Te<<30)^(Te>>>13|Te<<19)^(Te>>>22|Te<<10))+(Te&Je^Te&Xe^Je&Xe)|0,Ne=ft,ft=He,He=Se,Se=Re+me|0,Re=Xe,Xe=Je,Je=Te,Te=me+ve|0;re[0]+=Te,re[1]+=Je,re[2]+=Xe,re[3]+=Re,re[4]+=Se,re[5]+=He,re[6]+=ft,re[7]+=Ne,ge+=64,Ae-=64}return ge}var S=function(){function le(){this.digestLength=i.digestLength,this.blockSize=i.blockSize,this.state=new Int32Array(8),this.temp=new Int32Array(64),this.buffer=new Uint8Array(128),this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this.reset()}return le.prototype.reset=function(){return this.state[0]=1779033703,this.state[1]=3144134277,this.state[2]=1013904242,this.state[3]=2773480762,this.state[4]=1359893119,this.state[5]=2600822924,this.state[6]=528734635,this.state[7]=1541459225,this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this},le.prototype.clean=function(){for(var re=0;re0){for(;this.bufferLength<64&&ie>0;)this.buffer[this.bufferLength++]=re[ge++],ie--;64===this.bufferLength&&(x(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(ie>=64&&(ge=x(this.temp,this.state,re,ge,ie),ie%=64);ie>0;)this.buffer[this.bufferLength++]=re[ge++],ie--;return this},le.prototype.finish=function(re){if(!this.finished){var ie=this.bytesHashed,ge=this.bufferLength,Ae=ie/536870912|0,Te=ie<<3,Je=ie%64<56?64:128;this.buffer[ge]=128;for(var Xe=ge+1;Xe>>24&255,this.buffer[Je-7]=Ae>>>16&255,this.buffer[Je-6]=Ae>>>8&255,this.buffer[Je-5]=Ae>>>0&255,this.buffer[Je-4]=Te>>>24&255,this.buffer[Je-3]=Te>>>16&255,this.buffer[Je-2]=Te>>>8&255,this.buffer[Je-1]=Te>>>0&255,x(this.temp,this.state,this.buffer,0,Je),this.finished=!0}for(Xe=0;Xe<8;Xe++)re[4*Xe+0]=this.state[Xe]>>>24&255,re[4*Xe+1]=this.state[Xe]>>>16&255,re[4*Xe+2]=this.state[Xe]>>>8&255,re[4*Xe+3]=this.state[Xe]>>>0&255;return this},le.prototype.digest=function(){var re=new Uint8Array(this.digestLength);return this.finish(re),re},le.prototype._saveState=function(re){for(var ie=0;iethis.blockSize)(new S).update(re).finish(ie).clean();else for(var ge=0;ge1&&re.update(le),ie&&re.update(ie),re.update(ge),re.finish(le),ge[0]++}i.HMAC=P,i.hash=k,i.default=k,i.hmac=F;var J=new Uint8Array(i.digestLength);i.hkdf=function Q(le,re,ie,ge){void 0===re&&(re=J),void 0===ge&&(ge=32);for(var Ae=new Uint8Array([1]),Te=F(re,le),Je=new P(Te),Xe=new Uint8Array(Je.digestLength),Re=Xe.length,Se=new Uint8Array(ge),He=0;He>>24&255,Je[1]=ft>>>16&255,Je[2]=ft>>>8&255,Je[3]=ft>>>0&255,Ae.reset(),Ae.update(re),Ae.update(Je),Ae.finish(Re);for(var Ne=0;Ne=Q.status}function P(J){try{J.dispatchEvent(new MouseEvent("click"))}catch{var Q=document.createEvent("MouseEvents");Q.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),J.dispatchEvent(Q)}}var k="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,F=k.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),q=k.saveAs||("object"!=typeof window||window!==k?function(){}:"download"in HTMLAnchorElement.prototype&&!F?function(J,Q,ne){var le=k.URL||k.webkitURL,re=document.createElement("a");re.download=Q=Q||J.name||"download",re.rel="noopener","string"==typeof J?(re.href=J,re.origin===location.origin?P(re):S(re.href)?x(J,Q,ne):P(re,re.target="_blank")):(re.href=le.createObjectURL(J),setTimeout(function(){le.revokeObjectURL(re.href)},4e4),setTimeout(function(){P(re)},0))}:"msSaveOrOpenBlob"in navigator?function(J,Q,ne){if(Q=Q||J.name||"download","string"!=typeof J)navigator.msSaveOrOpenBlob(function E(J,Q){return typeof Q>"u"?Q={autoBom:!1}:"object"!=typeof Q&&(console.warn("Deprecated: Expected third argument to be a object"),Q={autoBom:!Q}),Q.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(J.type)?new Blob(["\ufeff",J],{type:J.type}):J}(J,ne),Q);else if(S(J))x(J,Q,ne);else{var le=document.createElement("a");le.href=J,le.target="_blank",setTimeout(function(){P(le)})}}:function(J,Q,ne,le){if((le=le||open("","_blank"))&&(le.document.title=le.document.body.innerText="downloading..."),"string"==typeof J)return x(J,Q,ne);var re="application/octet-stream"===J.type,ie=/constructor/i.test(k.HTMLElement)||k.safari,ge=/CriOS\/[\d]+/.test(navigator.userAgent);if((ge||re&&ie||F)&&typeof FileReader<"u"){var Ae=new FileReader;Ae.onloadend=function(){var Xe=Ae.result;Xe=ge?Xe:Xe.replace(/^data:[^;]*;/,"data:attachment/file;"),le?le.location.href=Xe:location=Xe,le=null},Ae.readAsDataURL(J)}else{var Te=k.URL||k.webkitURL,Je=Te.createObjectURL(J);le?le.location=Je:location.href=Je,le=null,setTimeout(function(){Te.revokeObjectURL(Je)},4e4)}});k.saveAs=q.saveAs=q,j.exports=q}.apply(Y,[]))&&(j.exports=i)},1158:(j,Y,T)=>{(j.exports=T(7867)).tz.load(T(1128))},7867:function(j,Y,T){var w,i,E;!function(x,S){"use strict";j.exports?j.exports=S(T(5439)):(i=[T(5439)],void 0!==(E="function"==typeof(w=S)?w.apply(Y,i):w)&&(j.exports=E))}(0,function(x){"use strict";void 0===x.version&&x.default&&(x=x.default);var Q,P={},k={},F={},q={},J={};(!x||"string"!=typeof x.version)&&Ln("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");var ne=x.version.split("."),le=+ne[0],re=+ne[1];function ie(de){return de>96?de-87:de>64?de-29:de-48}function ge(de){var Oe=0,be=de.split("."),Ye=be[0],st=be[1]||"",ot=1,gn=0,oi=1;for(45===de.charCodeAt(0)&&(Oe=1,oi=-1);Oe= 2.6.0. You are using Moment.js "+x.version+". See momentjs.com"),Re.prototype={_set:function(de){this.name=de.name,this.abbrs=de.abbrs,this.untils=de.untils,this.offsets=de.offsets,this.population=de.population},_index:function(de){var Ye,Oe=+de,be=this.untils;for(Ye=0;Yegn&&ci.moveInvalidForward&&(ot=gn),Oe3){var Oe=q[Ue(de)];if(Oe)return Oe;Ln("Moment Timezone found "+de+" from the Intl api, but did not have that data loaded.")}}catch{}var Ut,gn,oi,be=function ze(){var Ye,st,ot,de=(new Date).getFullYear()-2,Oe=new He(new Date(de,0,1)),be=[Oe];for(ot=1;ot<48;ot++)(st=new He(new Date(de,ot,1))).offset!==Oe.offset&&(Ye=Ne(Oe,st),be.push(Ye),be.push(new He(new Date(Ye.at+6e4)))),Oe=st;for(ot=0;ot<4;ot++)be.push(new He(new Date(de+ot,0,1))),be.push(new He(new Date(de+ot,6,1)));return be}(),Ye=be.length,st=function me(de){var st,ot,Ut,Oe=de.length,be={},Ye=[];for(st=0;st0?ot[0].zone.name:void 0}()),Q},ci.names=function Bt(){var de,Oe=[];for(de in q)q.hasOwnProperty(de)&&(P[de]||P[k[de]])&&q[de]&&Oe.push(q[de]);return Oe.sort()},ci.Zone=Re,ci.unpack=Xe,ci.unpackBase60=ge,ci.needsOffset=Mi,ci.moveInvalidForward=!0,ci.moveAmbiguousForward=!1,ci.countries=function ai(){return Object.keys(F)},ci.zonesForCountry=function $e(de,Oe){if(!(de=function Hn(de){return de=de.toUpperCase(),F[de]||null}(de)))return null;var be=de.zones.sort();return Oe?be.map(function(Ye){return{name:Ye,offset:mt(Ye).utcOffset(new Date)}}):be};var vn=x.fn;function so(de){return function(){return this._z?this._z.abbr(this):de.call(this)}}function ca(de){return function(){return this._z=null,de.apply(this,arguments)}}x.tz=ci,x.defaultZone=null,x.updateOffset=function(de,Oe){var Ye,be=x.defaultZone;if(void 0===de._z&&(be&&Mi(de)&&!de._isUTC&&(de._d=x.utc(de._a)._d,de.utc().add(be.parse(de),"minutes")),de._z=be),de._z)if(Ye=de._z.utcOffset(de),Math.abs(Ye)<16&&(Ye/=60),void 0!==de.utcOffset){var st=de._z;de.utcOffset(-Ye,Oe),de._z=st}else de.zone(Ye,Oe)},vn.tz=function(de,Oe){if(de){if("string"!=typeof de)throw new Error("Time zone name must be a string, got "+de+" ["+typeof de+"]");return this._z=mt(de),this._z?x.updateOffset(this,Oe):Ln("Moment Timezone has no data for "+de+". See http://momentjs.com/timezone/docs/#/data-loading/."),this}if(this._z)return this._z.name},vn.zoneName=so(vn.zoneName),vn.zoneAbbr=so(vn.zoneAbbr),vn.utc=ca(vn.utc),vn.local=ca(vn.local),vn.utcOffset=function br(de){return function(){return arguments.length>0&&(this._z=null),de.apply(this,arguments)}}(vn.utcOffset),x.tz.setDefault=function(de){return(le<2||2===le&&re<9)&&Ln("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js "+x.version+"."),x.defaultZone=de?mt(de):null,x};var jn=x.momentProperties;return"[object Array]"===Object.prototype.toString.call(jn)?(jn.push("_z"),jn.push("_a")):jn&&(jn._z=null),x})},7088:function(j,Y,T){!function(w){"use strict";w.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(E){return/^nm$/i.test(E)},meridiem:function(E,x,S){return E<12?S?"vm":"VM":S?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[M\xf4re om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(E){return E+(1===E||8===E||E>=20?"ste":"de")},week:{dow:1,doy:4}})}(T(5439))},2502:function(j,Y,T){!function(w){"use strict";var i=function(k){return 0===k?0:1===k?1:2===k?2:k%100>=3&&k%100<=10?3:k%100>=11?4:5},E={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},x=function(k){return function(F,q,J,Q){var ne=i(F),le=E[k][i(F)];return 2===ne&&(le=le[q?0:1]),le.replace(/%d/i,F)}},S=["\u062c\u0627\u0646\u0641\u064a","\u0641\u064a\u0641\u0631\u064a","\u0645\u0627\u0631\u0633","\u0623\u0641\u0631\u064a\u0644","\u0645\u0627\u064a","\u062c\u0648\u0627\u0646","\u062c\u0648\u064a\u0644\u064a\u0629","\u0623\u0648\u062a","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];w.defineLocale("ar-dz",{months:S,monthsShort:S,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(k){return"\u0645"===k},meridiem:function(k,F,q){return k<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:x("s"),ss:x("s"),m:x("m"),mm:x("m"),h:x("h"),hh:x("h"),d:x("d"),dd:x("d"),M:x("M"),MM:x("M"),y:x("y"),yy:x("y")},postformat:function(k){return k.replace(/,/g,"\u060c")},week:{dow:0,doy:4}})}(T(5439))},128:function(j,Y,T){!function(w){"use strict";w.defineLocale("ar-kw",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062a\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062a\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:0,doy:12}})}(T(5439))},4519:function(j,Y,T){!function(w){"use strict";var i={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},E=function(F){return 0===F?0:1===F?1:2===F?2:F%100>=3&&F%100<=10?3:F%100>=11?4:5},x={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},S=function(F){return function(q,J,Q,ne){var le=E(q),re=x[F][E(q)];return 2===le&&(re=re[J?0:1]),re.replace(/%d/i,q)}},P=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];w.defineLocale("ar-ly",{months:P,monthsShort:P,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(F){return"\u0645"===F},meridiem:function(F,q,J){return F<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:S("s"),ss:S("s"),m:S("m"),mm:S("m"),h:S("h"),hh:S("h"),d:S("d"),dd:S("d"),M:S("M"),MM:S("M"),y:S("y"),yy:S("y")},preparse:function(F){return F.replace(/\u060c/g,",")},postformat:function(F){return F.replace(/\d/g,function(q){return i[q]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(T(5439))},5443:function(j,Y,T){!function(w){"use strict";w.defineLocale("ar-ma",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(T(5439))},7642:function(j,Y,T){!function(w){"use strict";var i={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},E={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"};w.defineLocale("ar-sa",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(S){return"\u0645"===S},meridiem:function(S,P,k){return S<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},preparse:function(S){return S.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(P){return E[P]}).replace(/\u060c/g,",")},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]}).replace(/,/g,"\u060c")},week:{dow:0,doy:6}})}(T(5439))},8592:function(j,Y,T){!function(w){"use strict";w.defineLocale("ar-tn",{months:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(T(5439))},7038:function(j,Y,T){!function(w){"use strict";var i={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},E={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},x=function(q){return 0===q?0:1===q?1:2===q?2:q%100>=3&&q%100<=10?3:q%100>=11?4:5},S={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},P=function(q){return function(J,Q,ne,le){var re=x(J),ie=S[q][x(J)];return 2===re&&(ie=ie[Q?0:1]),ie.replace(/%d/i,J)}},k=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];w.defineLocale("ar",{months:k,monthsShort:k,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(q){return"\u0645"===q},meridiem:function(q,J,Q){return q<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:P("s"),ss:P("s"),m:P("m"),mm:P("m"),h:P("h"),hh:P("h"),d:P("d"),dd:P("d"),M:P("M"),MM:P("M"),y:P("y"),yy:P("y")},preparse:function(q){return q.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(J){return E[J]}).replace(/\u060c/g,",")},postformat:function(q){return q.replace(/\d/g,function(J){return i[J]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(T(5439))},1213:function(j,Y,T){!function(w){"use strict";var i={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-\xfcnc\xfc",4:"-\xfcnc\xfc",100:"-\xfcnc\xfc",6:"-nc\u0131",9:"-uncu",10:"-uncu",30:"-uncu",60:"-\u0131nc\u0131",90:"-\u0131nc\u0131"};w.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ert\u0259si_\xc7\u0259r\u015f\u0259nb\u0259 ax\u015fam\u0131_\xc7\u0259r\u015f\u0259nb\u0259_C\xfcm\u0259 ax\u015fam\u0131_C\xfcm\u0259_\u015e\u0259nb\u0259".split("_"),weekdaysShort:"Baz_BzE_\xc7Ax_\xc7\u0259r_CAx_C\xfcm_\u015e\u0259n".split("_"),weekdaysMin:"Bz_BE_\xc7A_\xc7\u0259_CA_C\xfc_\u015e\u0259".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[g\u0259l\u0259n h\u0259ft\u0259] dddd [saat] LT",lastDay:"[d\xfcn\u0259n] LT",lastWeek:"[ke\xe7\u0259n h\u0259ft\u0259] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \u0259vv\u0259l",s:"bir ne\xe7\u0259 saniy\u0259",ss:"%d saniy\u0259",m:"bir d\u0259qiq\u0259",mm:"%d d\u0259qiq\u0259",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gec\u0259|s\u0259h\u0259r|g\xfcnd\xfcz|ax\u015fam/,isPM:function(x){return/^(g\xfcnd\xfcz|ax\u015fam)$/.test(x)},meridiem:function(x,S,P){return x<4?"gec\u0259":x<12?"s\u0259h\u0259r":x<17?"g\xfcnd\xfcz":"ax\u015fam"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0131nc\u0131|inci|nci|\xfcnc\xfc|nc\u0131|uncu)/,ordinal:function(x){if(0===x)return x+"-\u0131nc\u0131";var S=x%10;return x+(i[S]||i[x%100-S]||i[x>=100?100:null])},week:{dow:1,doy:7}})}(T(5439))},9191:function(j,Y,T){!function(w){"use strict";function E(S,P,k){return"m"===k?P?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443":"h"===k?P?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443":S+" "+function i(S,P){var k=S.split("_");return P%10==1&&P%100!=11?k[0]:P%10>=2&&P%10<=4&&(P%100<10||P%100>=20)?k[1]:k[2]}({ss:P?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:P?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d",hh:P?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d",dd:"\u0434\u0437\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u0437\u0451\u043d",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u044b_\u043c\u0435\u0441\u044f\u0446\u0430\u045e",yy:"\u0433\u043e\u0434_\u0433\u0430\u0434\u044b_\u0433\u0430\u0434\u043e\u045e"}[k],+S)}w.defineLocale("be",{months:{format:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044f_\u043b\u044e\u0442\u0430\u0433\u0430_\u0441\u0430\u043a\u0430\u0432\u0456\u043a\u0430_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a\u0430_\u0442\u0440\u0430\u045e\u043d\u044f_\u0447\u044d\u0440\u0432\u0435\u043d\u044f_\u043b\u0456\u043f\u0435\u043d\u044f_\u0436\u043d\u0456\u045e\u043d\u044f_\u0432\u0435\u0440\u0430\u0441\u043d\u044f_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a\u0430_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434\u0430_\u0441\u043d\u0435\u0436\u043d\u044f".split("_"),standalone:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044c_\u043b\u044e\u0442\u044b_\u0441\u0430\u043a\u0430\u0432\u0456\u043a_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u044d\u0440\u0432\u0435\u043d\u044c_\u043b\u0456\u043f\u0435\u043d\u044c_\u0436\u043d\u0456\u0432\u0435\u043d\u044c_\u0432\u0435\u0440\u0430\u0441\u0435\u043d\u044c_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434_\u0441\u043d\u0435\u0436\u0430\u043d\u044c".split("_")},monthsShort:"\u0441\u0442\u0443\u0434_\u043b\u044e\u0442_\u0441\u0430\u043a_\u043a\u0440\u0430\u0441_\u0442\u0440\u0430\u0432_\u0447\u044d\u0440\u0432_\u043b\u0456\u043f_\u0436\u043d\u0456\u0432_\u0432\u0435\u0440_\u043a\u0430\u0441\u0442_\u043b\u0456\u0441\u0442_\u0441\u043d\u0435\u0436".split("_"),weekdays:{format:"\u043d\u044f\u0434\u0437\u0435\u043b\u044e_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0443_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0443_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),standalone:"\u043d\u044f\u0434\u0437\u0435\u043b\u044f_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0430_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0430_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),isFormat:/\[ ?[\u0423\u0443\u045e] ?(?:\u043c\u0456\u043d\u0443\u043b\u0443\u044e|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0443\u044e)? ?\] ?dddd/},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., HH:mm",LLLL:"dddd, D MMMM YYYY \u0433., HH:mm"},calendar:{sameDay:"[\u0421\u0451\u043d\u043d\u044f \u045e] LT",nextDay:"[\u0417\u0430\u045e\u0442\u0440\u0430 \u045e] LT",lastDay:"[\u0423\u0447\u043e\u0440\u0430 \u045e] LT",nextWeek:function(){return"[\u0423] dddd [\u045e] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u0443\u044e] dddd [\u045e] LT";case 1:case 2:case 4:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u044b] dddd [\u045e] LT"}},sameElse:"L"},relativeTime:{future:"\u043f\u0440\u0430\u0437 %s",past:"%s \u0442\u0430\u043c\u0443",s:"\u043d\u0435\u043a\u0430\u043b\u044c\u043a\u0456 \u0441\u0435\u043a\u0443\u043d\u0434",m:E,mm:E,h:E,hh:E,d:"\u0434\u0437\u0435\u043d\u044c",dd:E,M:"\u043c\u0435\u0441\u044f\u0446",MM:E,y:"\u0433\u043e\u0434",yy:E},meridiemParse:/\u043d\u043e\u0447\u044b|\u0440\u0430\u043d\u0456\u0446\u044b|\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430/,isPM:function(S){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430)$/.test(S)},meridiem:function(S,P,k){return S<4?"\u043d\u043e\u0447\u044b":S<12?"\u0440\u0430\u043d\u0456\u0446\u044b":S<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0430\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0456|\u044b|\u0433\u0430)/,ordinal:function(S,P){switch(P){case"M":case"d":case"DDD":case"w":case"W":return S%10!=2&&S%10!=3||S%100==12||S%100==13?S+"-\u044b":S+"-\u0456";case"D":return S+"-\u0433\u0430";default:return S}},week:{dow:1,doy:7}})}(T(5439))},322:function(j,Y,T){!function(w){"use strict";w.defineLocale("bg",{months:"\u044f\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u044f\u043d\u0443_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u044f\u0434\u0430_\u0447\u0435\u0442\u0432\u044a\u0440\u0442\u044a\u043a_\u043f\u0435\u0442\u044a\u043a_\u0441\u044a\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u044f_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u044a\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u043d\u0435\u0441 \u0432] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432] LT",nextWeek:"dddd [\u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u041c\u0438\u043d\u0430\u043b\u0430\u0442\u0430] dddd [\u0432] LT";case 1:case 2:case 4:case 5:return"[\u041c\u0438\u043d\u0430\u043b\u0438\u044f] dddd [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0441\u043b\u0435\u0434 %s",past:"\u043f\u0440\u0435\u0434\u0438 %s",s:"\u043d\u044f\u043a\u043e\u043b\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",w:"\u0441\u0435\u0434\u043c\u0438\u0446\u0430",ww:"%d \u0441\u0435\u0434\u043c\u0438\u0446\u0438",M:"\u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0430",y:"\u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(E){var x=E%10,S=E%100;return 0===E?E+"-\u0435\u0432":0===S?E+"-\u0435\u043d":S>10&&S<20?E+"-\u0442\u0438":1===x?E+"-\u0432\u0438":2===x?E+"-\u0440\u0438":7===x||8===x?E+"-\u043c\u0438":E+"-\u0442\u0438"},week:{dow:1,doy:7}})}(T(5439))},8042:function(j,Y,T){!function(w){"use strict";w.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_M\u025bkalo_Zuw\u025bnkalo_Zuluyekalo_Utikalo_S\u025btanburukalo_\u0254kut\u0254burukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_M\u025b_Zuw_Zul_Uti_S\u025bt_\u0254ku_Now_Des".split("_"),weekdays:"Kari_Nt\u025bn\u025bn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Nt\u025b_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm"},calendar:{sameDay:"[Bi l\u025br\u025b] LT",nextDay:"[Sini l\u025br\u025b] LT",nextWeek:"dddd [don l\u025br\u025b] LT",lastDay:"[Kunu l\u025br\u025b] LT",lastWeek:"dddd [t\u025bm\u025bnen l\u025br\u025b] LT",sameElse:"L"},relativeTime:{future:"%s k\u0254n\u0254",past:"a b\u025b %s b\u0254",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"l\u025br\u025b kelen",hh:"l\u025br\u025b %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})}(T(5439))},5903:function(j,Y,T){!function(w){"use strict";var i={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},E={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};w.defineLocale("bn-bd",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(S){return S.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(P){return E[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},meridiemParse:/\u09b0\u09be\u09a4|\u09ad\u09cb\u09b0|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be|\u09b0\u09be\u09a4/,meridiemHour:function(S,P){return 12===S&&(S=0),"\u09b0\u09be\u09a4"===P?S<4?S:S+12:"\u09ad\u09cb\u09b0"===P||"\u09b8\u0995\u09be\u09b2"===P?S:"\u09a6\u09c1\u09aa\u09c1\u09b0"===P?S>=3?S:S+12:"\u09ac\u09bf\u0995\u09be\u09b2"===P||"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be"===P?S+12:void 0},meridiem:function(S,P,k){return S<4?"\u09b0\u09be\u09a4":S<6?"\u09ad\u09cb\u09b0":S<12?"\u09b8\u0995\u09be\u09b2":S<15?"\u09a6\u09c1\u09aa\u09c1\u09b0":S<18?"\u09ac\u09bf\u0995\u09be\u09b2":S<20?"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(T(5439))},9620:function(j,Y,T){!function(w){"use strict";var i={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},E={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};w.defineLocale("bn",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(S){return S.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(P){return E[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},meridiemParse:/\u09b0\u09be\u09a4|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b0\u09be\u09a4/,meridiemHour:function(S,P){return 12===S&&(S=0),"\u09b0\u09be\u09a4"===P&&S>=4||"\u09a6\u09c1\u09aa\u09c1\u09b0"===P&&S<5||"\u09ac\u09bf\u0995\u09be\u09b2"===P?S+12:S},meridiem:function(S,P,k){return S<4?"\u09b0\u09be\u09a4":S<10?"\u09b8\u0995\u09be\u09b2":S<17?"\u09a6\u09c1\u09aa\u09c1\u09b0":S<20?"\u09ac\u09bf\u0995\u09be\u09b2":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(T(5439))},9645:function(j,Y,T){!function(w){"use strict";var i={1:"\u0f21",2:"\u0f22",3:"\u0f23",4:"\u0f24",5:"\u0f25",6:"\u0f26",7:"\u0f27",8:"\u0f28",9:"\u0f29",0:"\u0f20"},E={"\u0f21":"1","\u0f22":"2","\u0f23":"3","\u0f24":"4","\u0f25":"5","\u0f26":"6","\u0f27":"7","\u0f28":"8","\u0f29":"9","\u0f20":"0"};w.defineLocale("bo",{months:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f44\u0f0b\u0f54\u0f7c_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f66\u0f74\u0f58\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f5e\u0f72\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f63\u0f94\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0fb2\u0f74\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f62\u0f92\u0fb1\u0f51\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f42\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f45\u0f72\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54".split("_"),monthsShort:"\u0f5f\u0fb3\u0f0b1_\u0f5f\u0fb3\u0f0b2_\u0f5f\u0fb3\u0f0b3_\u0f5f\u0fb3\u0f0b4_\u0f5f\u0fb3\u0f0b5_\u0f5f\u0fb3\u0f0b6_\u0f5f\u0fb3\u0f0b7_\u0f5f\u0fb3\u0f0b8_\u0f5f\u0fb3\u0f0b9_\u0f5f\u0fb3\u0f0b10_\u0f5f\u0fb3\u0f0b11_\u0f5f\u0fb3\u0f0b12".split("_"),monthsShortRegex:/^(\u0f5f\u0fb3\u0f0b\d{1,2})/,monthsParseExact:!0,weekdays:"\u0f42\u0f5f\u0f60\u0f0b\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f42\u0f5f\u0f60\u0f0b\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysShort:"\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysMin:"\u0f49\u0f72_\u0f5f\u0fb3_\u0f58\u0f72\u0f42_\u0f63\u0fb7\u0f42_\u0f55\u0f74\u0f62_\u0f66\u0f44\u0f66_\u0f66\u0fa4\u0f7a\u0f53".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0f51\u0f72\u0f0b\u0f62\u0f72\u0f44] LT",nextDay:"[\u0f66\u0f44\u0f0b\u0f49\u0f72\u0f53] LT",nextWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f62\u0f97\u0f7a\u0f66\u0f0b\u0f58], LT",lastDay:"[\u0f41\u0f0b\u0f66\u0f44] LT",lastWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f58\u0f50\u0f60\u0f0b\u0f58] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0f63\u0f0b",past:"%s \u0f66\u0f94\u0f53\u0f0b\u0f63",s:"\u0f63\u0f58\u0f0b\u0f66\u0f44",ss:"%d \u0f66\u0f90\u0f62\u0f0b\u0f46\u0f0d",m:"\u0f66\u0f90\u0f62\u0f0b\u0f58\u0f0b\u0f42\u0f45\u0f72\u0f42",mm:"%d \u0f66\u0f90\u0f62\u0f0b\u0f58",h:"\u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51\u0f0b\u0f42\u0f45\u0f72\u0f42",hh:"%d \u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51",d:"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f45\u0f72\u0f42",dd:"%d \u0f49\u0f72\u0f53\u0f0b",M:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f45\u0f72\u0f42",MM:"%d \u0f5f\u0fb3\u0f0b\u0f56",y:"\u0f63\u0f7c\u0f0b\u0f42\u0f45\u0f72\u0f42",yy:"%d \u0f63\u0f7c"},preparse:function(S){return S.replace(/[\u0f21\u0f22\u0f23\u0f24\u0f25\u0f26\u0f27\u0f28\u0f29\u0f20]/g,function(P){return E[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},meridiemParse:/\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c|\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66|\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44|\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42|\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c/,meridiemHour:function(S,P){return 12===S&&(S=0),"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"===P&&S>=4||"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44"===P&&S<5||"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42"===P?S+12:S},meridiem:function(S,P,k){return S<4?"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c":S<10?"\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66":S<17?"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44":S<20?"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42":"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"},week:{dow:0,doy:6}})}(T(5439))},5020:function(j,Y,T){!function(w){"use strict";function i(ie,ge,Ae){return ie+" "+function S(ie,ge){return 2===ge?function P(ie){var ge={m:"v",b:"v",d:"z"};return void 0===ge[ie.charAt(0)]?ie:ge[ie.charAt(0)]+ie.substring(1)}(ie):ie}({mm:"munutenn",MM:"miz",dd:"devezh"}[Ae],ie)}function x(ie){return ie>9?x(ie%10):ie}var k=[/^gen/i,/^c[\u02bc\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],F=/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,le=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];w.defineLocale("br",{months:"Genver_C\u02bchwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C\u02bchwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc\u02bcher_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParse:le,fullWeekdaysParse:[/^sul/i,/^lun/i,/^meurzh/i,/^merc[\u02bc\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],shortWeekdaysParse:[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],minWeekdaysParse:le,monthsRegex:F,monthsShortRegex:F,monthsStrictRegex:/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,monthsShortStrictRegex:/^(gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,monthsParse:k,longMonthsParse:k,shortMonthsParse:k,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc\u02bchoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec\u02bch da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s \u02bczo",s:"un nebeud segondenno\xf9",ss:"%d eilenn",m:"ur vunutenn",mm:i,h:"un eur",hh:"%d eur",d:"un devezh",dd:i,M:"ur miz",MM:i,y:"ur bloaz",yy:function E(ie){switch(x(ie)){case 1:case 3:case 4:case 5:case 9:return ie+" bloaz";default:return ie+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(a\xf1|vet)/,ordinal:function(ie){return ie+(1===ie?"a\xf1":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(ie){return"g.m."===ie},meridiem:function(ie,ge,Ae){return ie<12?"a.m.":"g.m."}})}(T(5439))},4792:function(j,Y,T){!function(w){"use strict";function i(x,S,P){var k=x+" ";switch(P){case"ss":return k+(1===x?"sekunda":2===x||3===x||4===x?"sekunde":"sekundi");case"m":return S?"jedna minuta":"jedne minute";case"mm":return k+(1===x?"minuta":2===x||3===x||4===x?"minute":"minuta");case"h":return S?"jedan sat":"jednog sata";case"hh":return k+(1===x?"sat":2===x||3===x||4===x?"sata":"sati");case"dd":return k+(1===x?"dan":"dana");case"MM":return k+(1===x?"mjesec":2===x||3===x||4===x?"mjeseca":"mjeseci");case"yy":return k+(1===x?"godina":2===x||3===x||4===x?"godine":"godina")}}w.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[pro\u0161lu] dddd [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:i,m:i,mm:i,h:i,hh:i,d:"dan",dd:i,M:"mjesec",MM:i,y:"godinu",yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(T(5439))},7980:function(j,Y,T){!function(w){"use strict";w.defineLocale("ca",{months:{standalone:"gener_febrer_mar\xe7_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de mar\xe7_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[dem\xe0 a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(E,x){var S=1===E?"r":2===E?"n":3===E?"r":4===E?"t":"\xe8";return("w"===x||"W"===x)&&(S="a"),E+S},week:{dow:1,doy:4}})}(T(5439))},7322:function(j,Y,T){!function(w){"use strict";var i={format:"leden_\xfanor_b\u0159ezen_duben_kv\u011bten_\u010derven_\u010dervenec_srpen_z\xe1\u0159\xed_\u0159\xedjen_listopad_prosinec".split("_"),standalone:"ledna_\xfanora_b\u0159ezna_dubna_kv\u011btna_\u010dervna_\u010dervence_srpna_z\xe1\u0159\xed_\u0159\xedjna_listopadu_prosince".split("_")},E="led_\xfano_b\u0159e_dub_kv\u011b_\u010dvn_\u010dvc_srp_z\xe1\u0159_\u0159\xedj_lis_pro".split("_"),x=[/^led/i,/^\xfano/i,/^b\u0159e/i,/^dub/i,/^kv\u011b/i,/^(\u010dvn|\u010derven$|\u010dervna)/i,/^(\u010dvc|\u010dervenec|\u010dervence)/i,/^srp/i,/^z\xe1\u0159/i,/^\u0159\xedj/i,/^lis/i,/^pro/i],S=/^(leden|\xfanor|b\u0159ezen|duben|kv\u011bten|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|z\xe1\u0159\xed|\u0159\xedjen|listopad|prosinec|led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i;function P(q){return q>1&&q<5&&1!=~~(q/10)}function k(q,J,Q,ne){var le=q+" ";switch(Q){case"s":return J||ne?"p\xe1r sekund":"p\xe1r sekundami";case"ss":return J||ne?le+(P(q)?"sekundy":"sekund"):le+"sekundami";case"m":return J?"minuta":ne?"minutu":"minutou";case"mm":return J||ne?le+(P(q)?"minuty":"minut"):le+"minutami";case"h":return J?"hodina":ne?"hodinu":"hodinou";case"hh":return J||ne?le+(P(q)?"hodiny":"hodin"):le+"hodinami";case"d":return J||ne?"den":"dnem";case"dd":return J||ne?le+(P(q)?"dny":"dn\xed"):le+"dny";case"M":return J||ne?"m\u011bs\xedc":"m\u011bs\xedcem";case"MM":return J||ne?le+(P(q)?"m\u011bs\xedce":"m\u011bs\xedc\u016f"):le+"m\u011bs\xedci";case"y":return J||ne?"rok":"rokem";case"yy":return J||ne?le+(P(q)?"roky":"let"):le+"lety"}}w.defineLocale("cs",{months:i,monthsShort:E,monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(leden|ledna|\xfanora|\xfanor|b\u0159ezen|b\u0159ezna|duben|dubna|kv\u011bten|kv\u011btna|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|srpna|z\xe1\u0159\xed|\u0159\xedjen|\u0159\xedjna|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i,monthsParse:x,longMonthsParse:x,shortMonthsParse:x,weekdays:"ned\u011ble_pond\u011bl\xed_\xfater\xfd_st\u0159eda_\u010dtvrtek_p\xe1tek_sobota".split("_"),weekdaysShort:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),weekdaysMin:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[z\xedtra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v ned\u011bli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve st\u0159edu v] LT";case 4:return"[ve \u010dtvrtek v] LT";case 5:return"[v p\xe1tek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[v\u010dera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou ned\u011bli v] LT";case 1:case 2:return"[minul\xe9] dddd [v] LT";case 3:return"[minulou st\u0159edu v] LT";case 4:case 5:return"[minul\xfd] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"p\u0159ed %s",s:k,ss:k,m:k,mm:k,h:k,hh:k,d:k,dd:k,M:k,MM:k,y:k,yy:k},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(T(5439))},365:function(j,Y,T){!function(w){"use strict";w.defineLocale("cv",{months:"\u043a\u04d1\u0440\u043b\u0430\u0447_\u043d\u0430\u0440\u04d1\u0441_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440\u0442\u043c\u0435_\u0443\u0442\u04d1_\u04ab\u0443\u0440\u043b\u0430_\u0430\u0432\u04d1\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448\u0442\u0430\u0432".split("_"),monthsShort:"\u043a\u04d1\u0440_\u043d\u0430\u0440_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440_\u0443\u0442\u04d1_\u04ab\u0443\u0440_\u0430\u0432\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448".split("_"),weekdays:"\u0432\u044b\u0440\u0441\u0430\u0440\u043d\u0438\u043a\u0443\u043d_\u0442\u0443\u043d\u0442\u0438\u043a\u0443\u043d_\u044b\u0442\u043b\u0430\u0440\u0438\u043a\u0443\u043d_\u044e\u043d\u043a\u0443\u043d_\u043a\u04d7\u04ab\u043d\u0435\u0440\u043d\u0438\u043a\u0443\u043d_\u044d\u0440\u043d\u0435\u043a\u0443\u043d_\u0448\u04d1\u043c\u0430\u0442\u043a\u0443\u043d".split("_"),weekdaysShort:"\u0432\u044b\u0440_\u0442\u0443\u043d_\u044b\u0442\u043b_\u044e\u043d_\u043a\u04d7\u04ab_\u044d\u0440\u043d_\u0448\u04d1\u043c".split("_"),weekdaysMin:"\u0432\u0440_\u0442\u043d_\u044b\u0442_\u044e\u043d_\u043a\u04ab_\u044d\u0440_\u0448\u043c".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7]",LLL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm",LLLL:"dddd, YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm"},calendar:{sameDay:"[\u041f\u0430\u044f\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextDay:"[\u042b\u0440\u0430\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastDay:"[\u04d6\u043d\u0435\u0440] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextWeek:"[\u04aa\u0438\u0442\u0435\u0441] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastWeek:"[\u0418\u0440\u0442\u043d\u04d7] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",sameElse:"L"},relativeTime:{future:function(E){return E+(/\u0441\u0435\u0445\u0435\u0442$/i.exec(E)?"\u0440\u0435\u043d":/\u04ab\u0443\u043b$/i.exec(E)?"\u0442\u0430\u043d":"\u0440\u0430\u043d")},past:"%s \u043a\u0430\u044f\u043b\u043b\u0430",s:"\u043f\u04d7\u0440-\u0438\u043a \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",ss:"%d \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",m:"\u043f\u04d7\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u043f\u04d7\u0440 \u0441\u0435\u0445\u0435\u0442",hh:"%d \u0441\u0435\u0445\u0435\u0442",d:"\u043f\u04d7\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u043f\u04d7\u0440 \u0443\u0439\u04d1\u0445",MM:"%d \u0443\u0439\u04d1\u0445",y:"\u043f\u04d7\u0440 \u04ab\u0443\u043b",yy:"%d \u04ab\u0443\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-\u043c\u04d7\u0448/,ordinal:"%d-\u043c\u04d7\u0448",week:{dow:1,doy:7}})}(T(5439))},2092:function(j,Y,T){!function(w){"use strict";w.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn \xf4l",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(E){var S="";return E>20?S=40===E||50===E||60===E||80===E||100===E?"fed":"ain":E>0&&(S=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][E]),E+S},week:{dow:1,doy:4}})}(T(5439))},7387:function(j,Y,T){!function(w){"use strict";w.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8n_man_tir_ons_tor_fre_l\xf8r".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"p\xe5 dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"f\xe5 sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"et \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(T(5439))},9459:function(j,Y,T){!function(w){"use strict";function i(x,S,P,k){var F={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[x+" Tage",x+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[x+" Monate",x+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[x+" Jahre",x+" Jahren"]};return S?F[P][0]:F[P][1]}w.defineLocale("de-at",{months:"J\xe4nner_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"J\xe4n._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:i,mm:"%d Minuten",h:i,hh:"%d Stunden",d:i,dd:i,w:i,ww:"%d Wochen",M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(T(5439))},3694:function(j,Y,T){!function(w){"use strict";function i(x,S,P,k){var F={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[x+" Tage",x+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[x+" Monate",x+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[x+" Jahre",x+" Jahren"]};return S?F[P][0]:F[P][1]}w.defineLocale("de-ch",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:i,mm:"%d Minuten",h:i,hh:"%d Stunden",d:i,dd:i,w:i,ww:"%d Wochen",M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(T(5439))},4307:function(j,Y,T){!function(w){"use strict";function i(x,S,P,k){var F={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[x+" Tage",x+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[x+" Monate",x+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[x+" Jahre",x+" Jahren"]};return S?F[P][0]:F[P][1]}w.defineLocale("de",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:i,mm:"%d Minuten",h:i,hh:"%d Stunden",d:i,dd:i,w:i,ww:"%d Wochen",M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(T(5439))},9659:function(j,Y,T){!function(w){"use strict";var i=["\u0796\u07ac\u0782\u07aa\u0787\u07a6\u0783\u07a9","\u078a\u07ac\u0784\u07b0\u0783\u07aa\u0787\u07a6\u0783\u07a9","\u0789\u07a7\u0783\u07a8\u0797\u07aa","\u0787\u07ad\u0795\u07b0\u0783\u07a9\u078d\u07aa","\u0789\u07ad","\u0796\u07ab\u0782\u07b0","\u0796\u07aa\u078d\u07a6\u0787\u07a8","\u0787\u07af\u078e\u07a6\u0790\u07b0\u0793\u07aa","\u0790\u07ac\u0795\u07b0\u0793\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0787\u07ae\u0786\u07b0\u0793\u07af\u0784\u07a6\u0783\u07aa","\u0782\u07ae\u0788\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0791\u07a8\u0790\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa"],E=["\u0787\u07a7\u078b\u07a8\u0787\u07b0\u078c\u07a6","\u0780\u07af\u0789\u07a6","\u0787\u07a6\u0782\u07b0\u078e\u07a7\u0783\u07a6","\u0784\u07aa\u078b\u07a6","\u0784\u07aa\u0783\u07a7\u0790\u07b0\u078a\u07a6\u078c\u07a8","\u0780\u07aa\u0786\u07aa\u0783\u07aa","\u0780\u07ae\u0782\u07a8\u0780\u07a8\u0783\u07aa"];w.defineLocale("dv",{months:i,monthsShort:i,weekdays:E,weekdaysShort:E,weekdaysMin:"\u0787\u07a7\u078b\u07a8_\u0780\u07af\u0789\u07a6_\u0787\u07a6\u0782\u07b0_\u0784\u07aa\u078b\u07a6_\u0784\u07aa\u0783\u07a7_\u0780\u07aa\u0786\u07aa_\u0780\u07ae\u0782\u07a8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0789\u0786|\u0789\u078a/,isPM:function(S){return"\u0789\u078a"===S},meridiem:function(S,P,k){return S<12?"\u0789\u0786":"\u0789\u078a"},calendar:{sameDay:"[\u0789\u07a8\u0787\u07a6\u078b\u07aa] LT",nextDay:"[\u0789\u07a7\u078b\u07a6\u0789\u07a7] LT",nextWeek:"dddd LT",lastDay:"[\u0787\u07a8\u0787\u07b0\u0794\u07ac] LT",lastWeek:"[\u078a\u07a7\u0787\u07a8\u078c\u07aa\u0788\u07a8] dddd LT",sameElse:"L"},relativeTime:{future:"\u078c\u07ac\u0783\u07ad\u078e\u07a6\u0787\u07a8 %s",past:"\u0786\u07aa\u0783\u07a8\u0782\u07b0 %s",s:"\u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa\u0786\u07ae\u0785\u07ac\u0787\u07b0",ss:"d% \u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa",m:"\u0789\u07a8\u0782\u07a8\u0793\u07ac\u0787\u07b0",mm:"\u0789\u07a8\u0782\u07a8\u0793\u07aa %d",h:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07ac\u0787\u07b0",hh:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07aa %d",d:"\u078b\u07aa\u0788\u07a6\u0780\u07ac\u0787\u07b0",dd:"\u078b\u07aa\u0788\u07a6\u0790\u07b0 %d",M:"\u0789\u07a6\u0780\u07ac\u0787\u07b0",MM:"\u0789\u07a6\u0790\u07b0 %d",y:"\u0787\u07a6\u0780\u07a6\u0783\u07ac\u0787\u07b0",yy:"\u0787\u07a6\u0780\u07a6\u0783\u07aa %d"},preparse:function(S){return S.replace(/\u060c/g,",")},postformat:function(S){return S.replace(/,/g,"\u060c")},week:{dow:7,doy:12}})}(T(5439))},3460:function(j,Y,T){!function(w){"use strict";w.defineLocale("el",{monthsNominativeEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u039c\u03ac\u03c1\u03c4\u03b9\u03bf\u03c2_\u0391\u03c0\u03c1\u03af\u03bb\u03b9\u03bf\u03c2_\u039c\u03ac\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bd\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bb\u03b9\u03bf\u03c2_\u0391\u03cd\u03b3\u03bf\u03c5\u03c3\u03c4\u03bf\u03c2_\u03a3\u03b5\u03c0\u03c4\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u039f\u03ba\u03c4\u03ce\u03b2\u03c1\u03b9\u03bf\u03c2_\u039d\u03bf\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u0394\u03b5\u03ba\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2".split("_"),monthsGenitiveEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u039c\u03b1\u03c1\u03c4\u03af\u03bf\u03c5_\u0391\u03c0\u03c1\u03b9\u03bb\u03af\u03bf\u03c5_\u039c\u03b1\u0390\u03bf\u03c5_\u0399\u03bf\u03c5\u03bd\u03af\u03bf\u03c5_\u0399\u03bf\u03c5\u03bb\u03af\u03bf\u03c5_\u0391\u03c5\u03b3\u03bf\u03cd\u03c3\u03c4\u03bf\u03c5_\u03a3\u03b5\u03c0\u03c4\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u039f\u03ba\u03c4\u03c9\u03b2\u03c1\u03af\u03bf\u03c5_\u039d\u03bf\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u0394\u03b5\u03ba\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5".split("_"),months:function(x,S){return x?"string"==typeof S&&/D/.test(S.substring(0,S.indexOf("MMMM")))?this._monthsGenitiveEl[x.month()]:this._monthsNominativeEl[x.month()]:this._monthsNominativeEl},monthsShort:"\u0399\u03b1\u03bd_\u03a6\u03b5\u03b2_\u039c\u03b1\u03c1_\u0391\u03c0\u03c1_\u039c\u03b1\u03ca_\u0399\u03bf\u03c5\u03bd_\u0399\u03bf\u03c5\u03bb_\u0391\u03c5\u03b3_\u03a3\u03b5\u03c0_\u039f\u03ba\u03c4_\u039d\u03bf\u03b5_\u0394\u03b5\u03ba".split("_"),weekdays:"\u039a\u03c5\u03c1\u03b9\u03b1\u03ba\u03ae_\u0394\u03b5\u03c5\u03c4\u03ad\u03c1\u03b1_\u03a4\u03c1\u03af\u03c4\u03b7_\u03a4\u03b5\u03c4\u03ac\u03c1\u03c4\u03b7_\u03a0\u03ad\u03bc\u03c0\u03c4\u03b7_\u03a0\u03b1\u03c1\u03b1\u03c3\u03ba\u03b5\u03c5\u03ae_\u03a3\u03ac\u03b2\u03b2\u03b1\u03c4\u03bf".split("_"),weekdaysShort:"\u039a\u03c5\u03c1_\u0394\u03b5\u03c5_\u03a4\u03c1\u03b9_\u03a4\u03b5\u03c4_\u03a0\u03b5\u03bc_\u03a0\u03b1\u03c1_\u03a3\u03b1\u03b2".split("_"),weekdaysMin:"\u039a\u03c5_\u0394\u03b5_\u03a4\u03c1_\u03a4\u03b5_\u03a0\u03b5_\u03a0\u03b1_\u03a3\u03b1".split("_"),meridiem:function(x,S,P){return x>11?P?"\u03bc\u03bc":"\u039c\u039c":P?"\u03c0\u03bc":"\u03a0\u039c"},isPM:function(x){return"\u03bc"===(x+"").toLowerCase()[0]},meridiemParse:/[\u03a0\u039c]\.?\u039c?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[\u03a3\u03ae\u03bc\u03b5\u03c1\u03b1 {}] LT",nextDay:"[\u0391\u03cd\u03c1\u03b9\u03bf {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[\u03a7\u03b8\u03b5\u03c2 {}] LT",lastWeek:function(){return 6===this.day()?"[\u03c4\u03bf \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03bf] dddd [{}] LT":"[\u03c4\u03b7\u03bd \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03b7] dddd [{}] LT"},sameElse:"L"},calendar:function(x,S){var P=this._calendarEl[x],k=S&&S.hours();return function i(x){return typeof Function<"u"&&x instanceof Function||"[object Function]"===Object.prototype.toString.call(x)}(P)&&(P=P.apply(S)),P.replace("{}",k%12==1?"\u03c3\u03c4\u03b7":"\u03c3\u03c4\u03b9\u03c2")},relativeTime:{future:"\u03c3\u03b5 %s",past:"%s \u03c0\u03c1\u03b9\u03bd",s:"\u03bb\u03af\u03b3\u03b1 \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",ss:"%d \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",m:"\u03ad\u03bd\u03b1 \u03bb\u03b5\u03c0\u03c4\u03cc",mm:"%d \u03bb\u03b5\u03c0\u03c4\u03ac",h:"\u03bc\u03af\u03b1 \u03ce\u03c1\u03b1",hh:"%d \u03ce\u03c1\u03b5\u03c2",d:"\u03bc\u03af\u03b1 \u03bc\u03ad\u03c1\u03b1",dd:"%d \u03bc\u03ad\u03c1\u03b5\u03c2",M:"\u03ad\u03bd\u03b1\u03c2 \u03bc\u03ae\u03bd\u03b1\u03c2",MM:"%d \u03bc\u03ae\u03bd\u03b5\u03c2",y:"\u03ad\u03bd\u03b1\u03c2 \u03c7\u03c1\u03cc\u03bd\u03bf\u03c2",yy:"%d \u03c7\u03c1\u03cc\u03bd\u03b9\u03b1"},dayOfMonthOrdinalParse:/\d{1,2}\u03b7/,ordinal:"%d\u03b7",week:{dow:1,doy:4}})}(T(5439))},4369:function(j,Y,T){!function(w){"use strict";w.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(E){var x=E%10;return E+(1==~~(E%100/10)?"th":1===x?"st":2===x?"nd":3===x?"rd":"th")},week:{dow:0,doy:4}})}(T(5439))},530:function(j,Y,T){!function(w){"use strict";w.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(E){var x=E%10;return E+(1==~~(E%100/10)?"th":1===x?"st":2===x?"nd":3===x?"rd":"th")}})}(T(5439))},9998:function(j,Y,T){!function(w){"use strict";w.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(E){var x=E%10;return E+(1==~~(E%100/10)?"th":1===x?"st":2===x?"nd":3===x?"rd":"th")},week:{dow:1,doy:4}})}(T(5439))},3391:function(j,Y,T){!function(w){"use strict";w.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(E){var x=E%10;return E+(1==~~(E%100/10)?"th":1===x?"st":2===x?"nd":3===x?"rd":"th")},week:{dow:1,doy:4}})}(T(5439))},5414:function(j,Y,T){!function(w){"use strict";w.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(E){var x=E%10;return E+(1==~~(E%100/10)?"th":1===x?"st":2===x?"nd":3===x?"rd":"th")}})}(T(5439))},9615:function(j,Y,T){!function(w){"use strict";w.defineLocale("en-in",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(E){var x=E%10;return E+(1==~~(E%100/10)?"th":1===x?"st":2===x?"nd":3===x?"rd":"th")},week:{dow:0,doy:6}})}(T(5439))},1248:function(j,Y,T){!function(w){"use strict";w.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(E){var x=E%10;return E+(1==~~(E%100/10)?"th":1===x?"st":2===x?"nd":3===x?"rd":"th")},week:{dow:1,doy:4}})}(T(5439))},3767:function(j,Y,T){!function(w){"use strict";w.defineLocale("en-sg",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(E){var x=E%10;return E+(1==~~(E%100/10)?"th":1===x?"st":2===x?"nd":3===x?"rd":"th")},week:{dow:1,doy:4}})}(T(5439))},4530:function(j,Y,T){!function(w){"use strict";w.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_a\u016dgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_a\u016dg_sept_okt_nov_dec".split("_"),weekdays:"diman\u0109o_lundo_mardo_merkredo_\u0135a\u016ddo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_\u0135a\u016d_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_\u0135a_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(E){return"p"===E.charAt(0).toLowerCase()},meridiem:function(E,x,S){return E>11?S?"p.t.m.":"P.T.M.":S?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodia\u016d je] LT",nextDay:"[Morga\u016d je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hiera\u016d je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"anta\u016d %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(T(5439))},8944:function(j,Y,T){!function(w){"use strict";var i="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),E="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),x=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],S=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;w.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(k,F){return k?/-MMM-/.test(F)?E[k.month()]:i[k.month()]:i},monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:x,longMonthsParse:x,shortMonthsParse:x,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(T(5439))},9116:function(j,Y,T){!function(w){"use strict";var i="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),E="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),x=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],S=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;w.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(k,F){return k?/-MMM-/.test(F)?E[k.month()]:i[k.month()]:i},monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:x,longMonthsParse:x,shortMonthsParse:x,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:4},invalidDate:"Fecha inv\xe1lida"})}(T(5439))},3609:function(j,Y,T){!function(w){"use strict";var i="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),E="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),x=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],S=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;w.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(k,F){return k?/-MMM-/.test(F)?E[k.month()]:i[k.month()]:i},monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:x,longMonthsParse:x,shortMonthsParse:x,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:6}})}(T(5439))},6866:function(j,Y,T){!function(w){"use strict";var i="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),E="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),x=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],S=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;w.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(k,F){return k?/-MMM-/.test(F)?E[k.month()]:i[k.month()]:i},monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:x,longMonthsParse:x,shortMonthsParse:x,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4},invalidDate:"Fecha inv\xe1lida"})}(T(5439))},6725:function(j,Y,T){!function(w){"use strict";function i(x,S,P,k){var F={s:["m\xf5ne sekundi","m\xf5ni sekund","paar sekundit"],ss:[x+"sekundi",x+"sekundit"],m:["\xfche minuti","\xfcks minut"],mm:[x+" minuti",x+" minutit"],h:["\xfche tunni","tund aega","\xfcks tund"],hh:[x+" tunni",x+" tundi"],d:["\xfche p\xe4eva","\xfcks p\xe4ev"],M:["kuu aja","kuu aega","\xfcks kuu"],MM:[x+" kuu",x+" kuud"],y:["\xfche aasta","aasta","\xfcks aasta"],yy:[x+" aasta",x+" aastat"]};return S?F[P][2]?F[P][2]:F[P][1]:k?F[P][0]:F[P][1]}w.defineLocale("et",{months:"jaanuar_veebruar_m\xe4rts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_m\xe4rts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"p\xfchap\xe4ev_esmasp\xe4ev_teisip\xe4ev_kolmap\xe4ev_neljap\xe4ev_reede_laup\xe4ev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[T\xe4na,] LT",nextDay:"[Homme,] LT",nextWeek:"[J\xe4rgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s p\xe4rast",past:"%s tagasi",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:"%d p\xe4eva",M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(T(5439))},7931:function(j,Y,T){!function(w){"use strict";w.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(T(5439))},6417:function(j,Y,T){!function(w){"use strict";var i={1:"\u06f1",2:"\u06f2",3:"\u06f3",4:"\u06f4",5:"\u06f5",6:"\u06f6",7:"\u06f7",8:"\u06f8",9:"\u06f9",0:"\u06f0"},E={"\u06f1":"1","\u06f2":"2","\u06f3":"3","\u06f4":"4","\u06f5":"5","\u06f6":"6","\u06f7":"7","\u06f8":"8","\u06f9":"9","\u06f0":"0"};w.defineLocale("fa",{months:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),monthsShort:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),weekdays:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysShort:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u062c_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631|\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/,isPM:function(S){return/\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/.test(S)},meridiem:function(S,P,k){return S<12?"\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631":"\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631"},calendar:{sameDay:"[\u0627\u0645\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",nextDay:"[\u0641\u0631\u062f\u0627 \u0633\u0627\u0639\u062a] LT",nextWeek:"dddd [\u0633\u0627\u0639\u062a] LT",lastDay:"[\u062f\u06cc\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",lastWeek:"dddd [\u067e\u06cc\u0634] [\u0633\u0627\u0639\u062a] LT",sameElse:"L"},relativeTime:{future:"\u062f\u0631 %s",past:"%s \u067e\u06cc\u0634",s:"\u0686\u0646\u062f \u062b\u0627\u0646\u06cc\u0647",ss:"%d \u062b\u0627\u0646\u06cc\u0647",m:"\u06cc\u06a9 \u062f\u0642\u06cc\u0642\u0647",mm:"%d \u062f\u0642\u06cc\u0642\u0647",h:"\u06cc\u06a9 \u0633\u0627\u0639\u062a",hh:"%d \u0633\u0627\u0639\u062a",d:"\u06cc\u06a9 \u0631\u0648\u0632",dd:"%d \u0631\u0648\u0632",M:"\u06cc\u06a9 \u0645\u0627\u0647",MM:"%d \u0645\u0627\u0647",y:"\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(S){return S.replace(/[\u06f0-\u06f9]/g,function(P){return E[P]}).replace(/\u060c/g,",")},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]}).replace(/,/g,"\u060c")},dayOfMonthOrdinalParse:/\d{1,2}\u0645/,ordinal:"%d\u0645",week:{dow:6,doy:12}})}(T(5439))},944:function(j,Y,T){!function(w){"use strict";var i="nolla yksi kaksi kolme nelj\xe4 viisi kuusi seitsem\xe4n kahdeksan yhdeks\xe4n".split(" "),E=["nolla","yhden","kahden","kolmen","nelj\xe4n","viiden","kuuden",i[7],i[8],i[9]];function x(k,F,q,J){var Q="";switch(q){case"s":return J?"muutaman sekunnin":"muutama sekunti";case"ss":Q=J?"sekunnin":"sekuntia";break;case"m":return J?"minuutin":"minuutti";case"mm":Q=J?"minuutin":"minuuttia";break;case"h":return J?"tunnin":"tunti";case"hh":Q=J?"tunnin":"tuntia";break;case"d":return J?"p\xe4iv\xe4n":"p\xe4iv\xe4";case"dd":Q=J?"p\xe4iv\xe4n":"p\xe4iv\xe4\xe4";break;case"M":return J?"kuukauden":"kuukausi";case"MM":Q=J?"kuukauden":"kuukautta";break;case"y":return J?"vuoden":"vuosi";case"yy":Q=J?"vuoden":"vuotta"}return function S(k,F){return k<10?F?E[k]:i[k]:k}(k,J)+" "+Q}w.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kes\xe4kuu_hein\xe4kuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kes\xe4_hein\xe4_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[t\xe4n\xe4\xe4n] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s p\xe4\xe4st\xe4",past:"%s sitten",s:x,ss:x,m:x,mm:x,h:x,hh:x,d:x,dd:x,M:x,MM:x,y:x,yy:x},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(T(5439))},1766:function(j,Y,T){!function(w){"use strict";w.defineLocale("fil",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(E){return E},week:{dow:1,doy:4}})}(T(5439))},5867:function(j,Y,T){!function(w){"use strict";w.defineLocale("fo",{months:"januar_februar_mars_apr\xedl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_m\xe1nadagur_t\xfdsdagur_mikudagur_h\xf3sdagur_fr\xedggjadagur_leygardagur".split("_"),weekdaysShort:"sun_m\xe1n_t\xfds_mik_h\xf3s_fr\xed_ley".split("_"),weekdaysMin:"su_m\xe1_t\xfd_mi_h\xf3_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[\xcd dag kl.] LT",nextDay:"[\xcd morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xcd gj\xe1r kl.] LT",lastWeek:"[s\xed\xf0stu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s s\xed\xf0ani",s:"f\xe1 sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein t\xedmi",hh:"%d t\xedmar",d:"ein dagur",dd:"%d dagar",M:"ein m\xe1na\xf0ur",MM:"%d m\xe1na\xf0ir",y:"eitt \xe1r",yy:"%d \xe1r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(T(5439))},6848:function(j,Y,T){!function(w){"use strict";w.defineLocale("fr-ca",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(E,x){switch(x){default:case"M":case"Q":case"D":case"DDD":case"d":return E+(1===E?"er":"e");case"w":case"W":return E+(1===E?"re":"e")}}})}(T(5439))},7773:function(j,Y,T){!function(w){"use strict";w.defineLocale("fr-ch",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(E,x){switch(x){default:case"M":case"Q":case"D":case"DDD":case"d":return E+(1===E?"er":"e");case"w":case"W":return E+(1===E?"re":"e")}},week:{dow:1,doy:4}})}(T(5439))},1636:function(j,Y,T){!function(w){"use strict";var x=/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?|janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,S=[/^janv/i,/^f\xe9vr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^ao\xfbt/i,/^sept/i,/^oct/i,/^nov/i,/^d\xe9c/i];w.defineLocale("fr",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsRegex:x,monthsShortRegex:x,monthsStrictRegex:/^(janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,monthsShortStrictRegex:/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?)/i,monthsParse:S,longMonthsParse:S,shortMonthsParse:S,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(k,F){switch(F){case"D":return k+(1===k?"er":"");default:case"M":case"Q":case"DDD":case"d":return k+(1===k?"er":"e");case"w":case"W":return k+(1===k?"re":"e")}},week:{dow:1,doy:4}})}(T(5439))},4940:function(j,Y,T){!function(w){"use strict";var i="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),E="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");w.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(S,P){return S?/-MMM-/.test(P)?E[S.month()]:i[S.month()]:i},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[\xf4fr\xfbne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien min\xfat",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(S){return S+(1===S||8===S||S>=20?"ste":"de")},week:{dow:1,doy:4}})}(T(5439))},1402:function(j,Y,T){!function(w){"use strict";w.defineLocale("ga",{months:["Ean\xe1ir","Feabhra","M\xe1rta","Aibre\xe1n","Bealtaine","Meitheamh","I\xfail","L\xfanasa","Me\xe1n F\xf3mhair","Deireadh F\xf3mhair","Samhain","Nollaig"],monthsShort:["Ean","Feabh","M\xe1rt","Aib","Beal","Meith","I\xfail","L\xfan","M.F.","D.F.","Samh","Noll"],monthsParseExact:!0,weekdays:["D\xe9 Domhnaigh","D\xe9 Luain","D\xe9 M\xe1irt","D\xe9 C\xe9adaoin","D\xe9ardaoin","D\xe9 hAoine","D\xe9 Sathairn"],weekdaysShort:["Domh","Luan","M\xe1irt","C\xe9ad","D\xe9ar","Aoine","Sath"],weekdaysMin:["Do","Lu","M\xe1","C\xe9","D\xe9","A","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Am\xe1rach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inn\xe9 ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s \xf3 shin",s:"c\xfapla soicind",ss:"%d soicind",m:"n\xf3im\xe9ad",mm:"%d n\xf3im\xe9ad",h:"uair an chloig",hh:"%d uair an chloig",d:"l\xe1",dd:"%d l\xe1",M:"m\xed",MM:"%d m\xedonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(F){return F+(1===F?"d":F%10==2?"na":"mh")},week:{dow:1,doy:4}})}(T(5439))},6924:function(j,Y,T){!function(w){"use strict";w.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am M\xe0rt","An Giblean","An C\xe8itean","An t-\xd2gmhios","An t-Iuchar","An L\xf9nastal","An t-Sultain","An D\xe0mhair","An t-Samhain","An D\xf9bhlachd"],monthsShort:["Faoi","Gear","M\xe0rt","Gibl","C\xe8it","\xd2gmh","Iuch","L\xf9n","Sult","D\xe0mh","Samh","D\xf9bh"],monthsParseExact:!0,weekdays:["Did\xf2mhnaich","Diluain","Dim\xe0irt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["D\xf2","Lu","M\xe0","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-m\xe0ireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-d\xe8 aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"m\xecos",MM:"%d m\xecosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(F){return F+(1===F?"d":F%10==2?"na":"mh")},week:{dow:1,doy:4}})}(T(5439))},6398:function(j,Y,T){!function(w){"use strict";w.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xu\xf1o_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xu\xf1._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_m\xe9rcores_xoves_venres_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._m\xe9r._xov._ven._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_m\xe9_xo_ve_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextDay:function(){return"[ma\xf1\xe1 "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"\xe1s":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"\xe1":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"\xe1s":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(E){return 0===E.indexOf("un")?"n"+E:"en "+E},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(T(5439))},2457:function(j,Y,T){!function(w){"use strict";function i(x,S,P,k){var F={s:["\u0925\u094b\u0921\u092f\u093e \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940","\u0925\u094b\u0921\u0947 \u0938\u0945\u0915\u0902\u0921"],ss:[x+" \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940",x+" \u0938\u0945\u0915\u0902\u0921"],m:["\u090f\u0915\u093e \u092e\u093f\u0923\u091f\u093e\u0928","\u090f\u0915 \u092e\u093f\u0928\u0942\u091f"],mm:[x+" \u092e\u093f\u0923\u091f\u093e\u0902\u0928\u0940",x+" \u092e\u093f\u0923\u091f\u093e\u0902"],h:["\u090f\u0915\u093e \u0935\u0930\u093e\u0928","\u090f\u0915 \u0935\u0930"],hh:[x+" \u0935\u0930\u093e\u0902\u0928\u0940",x+" \u0935\u0930\u093e\u0902"],d:["\u090f\u0915\u093e \u0926\u093f\u0938\u093e\u0928","\u090f\u0915 \u0926\u0940\u0938"],dd:[x+" \u0926\u093f\u0938\u093e\u0902\u0928\u0940",x+" \u0926\u0940\u0938"],M:["\u090f\u0915\u093e \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928","\u090f\u0915 \u092e\u094d\u0939\u092f\u0928\u094b"],MM:[x+" \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928\u0940",x+" \u092e\u094d\u0939\u092f\u0928\u0947"],y:["\u090f\u0915\u093e \u0935\u0930\u094d\u0938\u093e\u0928","\u090f\u0915 \u0935\u0930\u094d\u0938"],yy:[x+" \u0935\u0930\u094d\u0938\u093e\u0902\u0928\u0940",x+" \u0935\u0930\u094d\u0938\u093e\u0902"]};return k?F[P][0]:F[P][1]}w.defineLocale("gom-deva",{months:{standalone:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u092f_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),format:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092e\u093e\u0930\u094d\u091a\u093e\u091a\u094d\u092f\u093e_\u090f\u092a\u094d\u0930\u0940\u0932\u093e\u091a\u094d\u092f\u093e_\u092e\u0947\u092f\u093e\u091a\u094d\u092f\u093e_\u091c\u0942\u0928\u093e\u091a\u094d\u092f\u093e_\u091c\u0941\u0932\u092f\u093e\u091a\u094d\u092f\u093e_\u0911\u0917\u0938\u094d\u091f\u093e\u091a\u094d\u092f\u093e_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0911\u0915\u094d\u091f\u094b\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0921\u093f\u0938\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940._\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u092f\u0924\u093e\u0930_\u0938\u094b\u092e\u093e\u0930_\u092e\u0902\u0917\u0933\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u092c\u093f\u0930\u0947\u0938\u094d\u0924\u093e\u0930_\u0938\u0941\u0915\u094d\u0930\u093e\u0930_\u0936\u0947\u0928\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0906\u092f\u0924._\u0938\u094b\u092e._\u092e\u0902\u0917\u0933._\u092c\u0941\u0927._\u092c\u094d\u0930\u0947\u0938\u094d\u0924._\u0938\u0941\u0915\u094d\u0930._\u0936\u0947\u0928.".split("_"),weekdaysMin:"\u0906_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u092c\u094d\u0930\u0947_\u0938\u0941_\u0936\u0947".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LTS:"A h:mm:ss [\u0935\u093e\u091c\u0924\u093e\u0902]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",llll:"ddd, D MMM YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]"},calendar:{sameDay:"[\u0906\u092f\u091c] LT",nextDay:"[\u092b\u093e\u0932\u094d\u092f\u093e\u0902] LT",nextWeek:"[\u092b\u0941\u0921\u0932\u094b] dddd[,] LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092b\u093e\u091f\u0932\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s \u0906\u0926\u0940\u0902",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}(\u0935\u0947\u0930)/,ordinal:function(x,S){return"D"===S?x+"\u0935\u0947\u0930":x},week:{dow:0,doy:3},meridiemParse:/\u0930\u093e\u0924\u0940|\u0938\u0915\u093e\u0933\u0940\u0902|\u0926\u0928\u092a\u093e\u0930\u093e\u0902|\u0938\u093e\u0902\u091c\u0947/,meridiemHour:function(x,S){return 12===x&&(x=0),"\u0930\u093e\u0924\u0940"===S?x<4?x:x+12:"\u0938\u0915\u093e\u0933\u0940\u0902"===S?x:"\u0926\u0928\u092a\u093e\u0930\u093e\u0902"===S?x>12?x:x+12:"\u0938\u093e\u0902\u091c\u0947"===S?x+12:void 0},meridiem:function(x,S,P){return x<4?"\u0930\u093e\u0924\u0940":x<12?"\u0938\u0915\u093e\u0933\u0940\u0902":x<16?"\u0926\u0928\u092a\u093e\u0930\u093e\u0902":x<20?"\u0938\u093e\u0902\u091c\u0947":"\u0930\u093e\u0924\u0940"}})}(T(5439))},2545:function(j,Y,T){!function(w){"use strict";function i(x,S,P,k){var F={s:["thoddea sekondamni","thodde sekond"],ss:[x+" sekondamni",x+" sekond"],m:["eka mintan","ek minut"],mm:[x+" mintamni",x+" mintam"],h:["eka voran","ek vor"],hh:[x+" voramni",x+" voram"],d:["eka disan","ek dis"],dd:[x+" disamni",x+" dis"],M:["eka mhoinean","ek mhoino"],MM:[x+" mhoineamni",x+" mhoine"],y:["eka vorsan","ek voros"],yy:[x+" vorsamni",x+" vorsam"]};return k?F[P][0]:F[P][1]}w.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(x,S){return"D"===S?x+"er":x},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(x,S){return 12===x&&(x=0),"rati"===S?x<4?x:x+12:"sokallim"===S?x:"donparam"===S?x>12?x:x+12:"sanje"===S?x+12:void 0},meridiem:function(x,S,P){return x<4?"rati":x<12?"sokallim":x<16?"donparam":x<20?"sanje":"rati"}})}(T(5439))},2641:function(j,Y,T){!function(w){"use strict";var i={1:"\u0ae7",2:"\u0ae8",3:"\u0ae9",4:"\u0aea",5:"\u0aeb",6:"\u0aec",7:"\u0aed",8:"\u0aee",9:"\u0aef",0:"\u0ae6"},E={"\u0ae7":"1","\u0ae8":"2","\u0ae9":"3","\u0aea":"4","\u0aeb":"5","\u0aec":"6","\u0aed":"7","\u0aee":"8","\u0aef":"9","\u0ae6":"0"};w.defineLocale("gu",{months:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1\u0a86\u0ab0\u0ac0_\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1\u0a86\u0ab0\u0ac0_\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf\u0ab2_\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe\u0a88_\u0a91\u0a97\u0ab8\u0acd\u0a9f_\u0ab8\u0aaa\u0acd\u0a9f\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0a91\u0a95\u0acd\u0a9f\u0acd\u0aac\u0ab0_\u0aa8\u0ab5\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0aa1\u0abf\u0ab8\u0ac7\u0aae\u0acd\u0aac\u0ab0".split("_"),monthsShort:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1._\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1._\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf._\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe._\u0a91\u0a97._\u0ab8\u0aaa\u0acd\u0a9f\u0ac7._\u0a91\u0a95\u0acd\u0a9f\u0acd._\u0aa8\u0ab5\u0ac7._\u0aa1\u0abf\u0ab8\u0ac7.".split("_"),monthsParseExact:!0,weekdays:"\u0ab0\u0ab5\u0abf\u0ab5\u0abe\u0ab0_\u0ab8\u0acb\u0aae\u0ab5\u0abe\u0ab0_\u0aae\u0a82\u0a97\u0ab3\u0ab5\u0abe\u0ab0_\u0aac\u0ac1\u0aa7\u0acd\u0ab5\u0abe\u0ab0_\u0a97\u0ac1\u0ab0\u0ac1\u0ab5\u0abe\u0ab0_\u0ab6\u0ac1\u0a95\u0acd\u0ab0\u0ab5\u0abe\u0ab0_\u0ab6\u0aa8\u0abf\u0ab5\u0abe\u0ab0".split("_"),weekdaysShort:"\u0ab0\u0ab5\u0abf_\u0ab8\u0acb\u0aae_\u0aae\u0a82\u0a97\u0ab3_\u0aac\u0ac1\u0aa7\u0acd_\u0a97\u0ac1\u0ab0\u0ac1_\u0ab6\u0ac1\u0a95\u0acd\u0ab0_\u0ab6\u0aa8\u0abf".split("_"),weekdaysMin:"\u0ab0_\u0ab8\u0acb_\u0aae\u0a82_\u0aac\u0ac1_\u0a97\u0ac1_\u0ab6\u0ac1_\u0ab6".split("_"),longDateFormat:{LT:"A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LTS:"A h:mm:ss \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LLLL:"dddd, D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7"},calendar:{sameDay:"[\u0a86\u0a9c] LT",nextDay:"[\u0a95\u0abe\u0ab2\u0ac7] LT",nextWeek:"dddd, LT",lastDay:"[\u0a97\u0a87\u0a95\u0abe\u0ab2\u0ac7] LT",lastWeek:"[\u0aaa\u0abe\u0a9b\u0ab2\u0abe] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0aae\u0abe",past:"%s \u0aaa\u0ab9\u0ac7\u0ab2\u0abe",s:"\u0a85\u0aae\u0ac1\u0a95 \u0aaa\u0ab3\u0acb",ss:"%d \u0ab8\u0ac7\u0a95\u0a82\u0aa1",m:"\u0a8f\u0a95 \u0aae\u0abf\u0aa8\u0abf\u0a9f",mm:"%d \u0aae\u0abf\u0aa8\u0abf\u0a9f",h:"\u0a8f\u0a95 \u0a95\u0ab2\u0abe\u0a95",hh:"%d \u0a95\u0ab2\u0abe\u0a95",d:"\u0a8f\u0a95 \u0aa6\u0abf\u0ab5\u0ab8",dd:"%d \u0aa6\u0abf\u0ab5\u0ab8",M:"\u0a8f\u0a95 \u0aae\u0ab9\u0abf\u0aa8\u0acb",MM:"%d \u0aae\u0ab9\u0abf\u0aa8\u0acb",y:"\u0a8f\u0a95 \u0ab5\u0ab0\u0acd\u0ab7",yy:"%d \u0ab5\u0ab0\u0acd\u0ab7"},preparse:function(S){return S.replace(/[\u0ae7\u0ae8\u0ae9\u0aea\u0aeb\u0aec\u0aed\u0aee\u0aef\u0ae6]/g,function(P){return E[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},meridiemParse:/\u0ab0\u0abe\u0aa4|\u0aac\u0aaa\u0acb\u0ab0|\u0ab8\u0ab5\u0abe\u0ab0|\u0ab8\u0abe\u0a82\u0a9c/,meridiemHour:function(S,P){return 12===S&&(S=0),"\u0ab0\u0abe\u0aa4"===P?S<4?S:S+12:"\u0ab8\u0ab5\u0abe\u0ab0"===P?S:"\u0aac\u0aaa\u0acb\u0ab0"===P?S>=10?S:S+12:"\u0ab8\u0abe\u0a82\u0a9c"===P?S+12:void 0},meridiem:function(S,P,k){return S<4?"\u0ab0\u0abe\u0aa4":S<10?"\u0ab8\u0ab5\u0abe\u0ab0":S<17?"\u0aac\u0aaa\u0acb\u0ab0":S<20?"\u0ab8\u0abe\u0a82\u0a9c":"\u0ab0\u0abe\u0aa4"},week:{dow:0,doy:6}})}(T(5439))},7536:function(j,Y,T){!function(w){"use strict";w.defineLocale("he",{months:"\u05d9\u05e0\u05d5\u05d0\u05e8_\u05e4\u05d1\u05e8\u05d5\u05d0\u05e8_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05d9\u05dc_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05d5\u05e1\u05d8_\u05e1\u05e4\u05d8\u05de\u05d1\u05e8_\u05d0\u05d5\u05e7\u05d8\u05d5\u05d1\u05e8_\u05e0\u05d5\u05d1\u05de\u05d1\u05e8_\u05d3\u05e6\u05de\u05d1\u05e8".split("_"),monthsShort:"\u05d9\u05e0\u05d5\u05f3_\u05e4\u05d1\u05e8\u05f3_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05f3_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05f3_\u05e1\u05e4\u05d8\u05f3_\u05d0\u05d5\u05e7\u05f3_\u05e0\u05d5\u05d1\u05f3_\u05d3\u05e6\u05de\u05f3".split("_"),weekdays:"\u05e8\u05d0\u05e9\u05d5\u05df_\u05e9\u05e0\u05d9_\u05e9\u05dc\u05d9\u05e9\u05d9_\u05e8\u05d1\u05d9\u05e2\u05d9_\u05d7\u05de\u05d9\u05e9\u05d9_\u05e9\u05d9\u05e9\u05d9_\u05e9\u05d1\u05ea".split("_"),weekdaysShort:"\u05d0\u05f3_\u05d1\u05f3_\u05d2\u05f3_\u05d3\u05f3_\u05d4\u05f3_\u05d5\u05f3_\u05e9\u05f3".split("_"),weekdaysMin:"\u05d0_\u05d1_\u05d2_\u05d3_\u05d4_\u05d5_\u05e9".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [\u05d1]MMMM YYYY",LLL:"D [\u05d1]MMMM YYYY HH:mm",LLLL:"dddd, D [\u05d1]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[\u05d4\u05d9\u05d5\u05dd \u05d1\u05be]LT",nextDay:"[\u05de\u05d7\u05e8 \u05d1\u05be]LT",nextWeek:"dddd [\u05d1\u05e9\u05e2\u05d4] LT",lastDay:"[\u05d0\u05ea\u05de\u05d5\u05dc \u05d1\u05be]LT",lastWeek:"[\u05d1\u05d9\u05d5\u05dd] dddd [\u05d4\u05d0\u05d7\u05e8\u05d5\u05df \u05d1\u05e9\u05e2\u05d4] LT",sameElse:"L"},relativeTime:{future:"\u05d1\u05e2\u05d5\u05d3 %s",past:"\u05dc\u05e4\u05e0\u05d9 %s",s:"\u05de\u05e1\u05e4\u05e8 \u05e9\u05e0\u05d9\u05d5\u05ea",ss:"%d \u05e9\u05e0\u05d9\u05d5\u05ea",m:"\u05d3\u05e7\u05d4",mm:"%d \u05d3\u05e7\u05d5\u05ea",h:"\u05e9\u05e2\u05d4",hh:function(E){return 2===E?"\u05e9\u05e2\u05ea\u05d9\u05d9\u05dd":E+" \u05e9\u05e2\u05d5\u05ea"},d:"\u05d9\u05d5\u05dd",dd:function(E){return 2===E?"\u05d9\u05d5\u05de\u05d9\u05d9\u05dd":E+" \u05d9\u05de\u05d9\u05dd"},M:"\u05d7\u05d5\u05d3\u05e9",MM:function(E){return 2===E?"\u05d7\u05d5\u05d3\u05e9\u05d9\u05d9\u05dd":E+" \u05d7\u05d5\u05d3\u05e9\u05d9\u05dd"},y:"\u05e9\u05e0\u05d4",yy:function(E){return 2===E?"\u05e9\u05e0\u05ea\u05d9\u05d9\u05dd":E%10==0&&10!==E?E+" \u05e9\u05e0\u05d4":E+" \u05e9\u05e0\u05d9\u05dd"}},meridiemParse:/\u05d0\u05d7\u05d4"\u05e6|\u05dc\u05e4\u05e0\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8|\u05d1\u05d1\u05d5\u05e7\u05e8|\u05d1\u05e2\u05e8\u05d1/i,isPM:function(E){return/^(\u05d0\u05d7\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05d1\u05e2\u05e8\u05d1)$/.test(E)},meridiem:function(E,x,S){return E<5?"\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8":E<10?"\u05d1\u05d1\u05d5\u05e7\u05e8":E<12?S?'\u05dc\u05e4\u05e0\u05d4"\u05e6':"\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":E<18?S?'\u05d0\u05d7\u05d4"\u05e6':"\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":"\u05d1\u05e2\u05e8\u05d1"}})}(T(5439))},6335:function(j,Y,T){!function(w){"use strict";var i={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},E={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"},x=[/^\u091c\u0928/i,/^\u092b\u093c\u0930|\u092b\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924\u0902|\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935|\u0928\u0935\u0902/i,/^\u0926\u093f\u0938\u0902|\u0926\u093f\u0938/i];w.defineLocale("hi",{months:{format:"\u091c\u0928\u0935\u0930\u0940_\u092b\u093c\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u092e\u094d\u092c\u0930_\u0926\u093f\u0938\u092e\u094d\u092c\u0930".split("_"),standalone:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u0902\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u0902\u092c\u0930_\u0926\u093f\u0938\u0902\u092c\u0930".split("_")},monthsShort:"\u091c\u0928._\u092b\u093c\u0930._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948._\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0905\u0917._\u0938\u093f\u0924._\u0905\u0915\u094d\u091f\u0942._\u0928\u0935._\u0926\u093f\u0938.".split("_"),weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0932\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0932_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u092c\u091c\u0947",LTS:"A h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A h:mm \u092c\u091c\u0947"},monthsParse:x,longMonthsParse:x,shortMonthsParse:[/^\u091c\u0928/i,/^\u092b\u093c\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935/i,/^\u0926\u093f\u0938/i],monthsRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsShortRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsStrictRegex:/^(\u091c\u0928\u0935\u0930\u0940?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908?|\u0905\u0917\u0938\u094d\u0924?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924?\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930?)/i,monthsShortStrictRegex:/^(\u091c\u0928\.?|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\.?|\u0905\u0917\.?|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\.?|\u0926\u093f\u0938\.?)/i,calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0915\u0932] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u0932] LT",lastWeek:"[\u092a\u093f\u091b\u0932\u0947] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u092e\u0947\u0902",past:"%s \u092a\u0939\u0932\u0947",s:"\u0915\u0941\u091b \u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0902\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u091f",mm:"%d \u092e\u093f\u0928\u091f",h:"\u090f\u0915 \u0918\u0902\u091f\u093e",hh:"%d \u0918\u0902\u091f\u0947",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u0940\u0928\u0947",MM:"%d \u092e\u0939\u0940\u0928\u0947",y:"\u090f\u0915 \u0935\u0930\u094d\u0937",yy:"%d \u0935\u0930\u094d\u0937"},preparse:function(k){return k.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(F){return E[F]})},postformat:function(k){return k.replace(/\d/g,function(F){return i[F]})},meridiemParse:/\u0930\u093e\u0924|\u0938\u0941\u092c\u0939|\u0926\u094b\u092a\u0939\u0930|\u0936\u093e\u092e/,meridiemHour:function(k,F){return 12===k&&(k=0),"\u0930\u093e\u0924"===F?k<4?k:k+12:"\u0938\u0941\u092c\u0939"===F?k:"\u0926\u094b\u092a\u0939\u0930"===F?k>=10?k:k+12:"\u0936\u093e\u092e"===F?k+12:void 0},meridiem:function(k,F,q){return k<4?"\u0930\u093e\u0924":k<10?"\u0938\u0941\u092c\u0939":k<17?"\u0926\u094b\u092a\u0939\u0930":k<20?"\u0936\u093e\u092e":"\u0930\u093e\u0924"},week:{dow:0,doy:6}})}(T(5439))},7458:function(j,Y,T){!function(w){"use strict";function i(x,S,P){var k=x+" ";switch(P){case"ss":return k+(1===x?"sekunda":2===x||3===x||4===x?"sekunde":"sekundi");case"m":return S?"jedna minuta":"jedne minute";case"mm":return k+(1===x?"minuta":2===x||3===x||4===x?"minute":"minuta");case"h":return S?"jedan sat":"jednog sata";case"hh":return k+(1===x?"sat":2===x||3===x||4===x?"sata":"sati");case"dd":return k+(1===x?"dan":"dana");case"MM":return k+(1===x?"mjesec":2===x||3===x||4===x?"mjeseca":"mjeseci");case"yy":return k+(1===x?"godina":2===x||3===x||4===x?"godine":"godina")}}w.defineLocale("hr",{months:{format:"sije\u010dnja_velja\u010de_o\u017eujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"sije\u010danj_velja\u010da_o\u017eujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._o\u017eu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:return"[pro\u0161lu] [nedjelju] [u] LT";case 3:return"[pro\u0161lu] [srijedu] [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:i,m:i,mm:i,h:i,hh:i,d:"dan",dd:i,M:"mjesec",MM:i,y:"godinu",yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(T(5439))},6540:function(j,Y,T){!function(w){"use strict";var i="vas\xe1rnap h\xe9tf\u0151n kedden szerd\xe1n cs\xfct\xf6rt\xf6k\xf6n p\xe9nteken szombaton".split(" ");function E(P,k,F,q){var J=P;switch(F){case"s":return q||k?"n\xe9h\xe1ny m\xe1sodperc":"n\xe9h\xe1ny m\xe1sodperce";case"ss":return J+(q||k)?" m\xe1sodperc":" m\xe1sodperce";case"m":return"egy"+(q||k?" perc":" perce");case"mm":return J+(q||k?" perc":" perce");case"h":return"egy"+(q||k?" \xf3ra":" \xf3r\xe1ja");case"hh":return J+(q||k?" \xf3ra":" \xf3r\xe1ja");case"d":return"egy"+(q||k?" nap":" napja");case"dd":return J+(q||k?" nap":" napja");case"M":return"egy"+(q||k?" h\xf3nap":" h\xf3napja");case"MM":return J+(q||k?" h\xf3nap":" h\xf3napja");case"y":return"egy"+(q||k?" \xe9v":" \xe9ve");case"yy":return J+(q||k?" \xe9v":" \xe9ve")}return""}function x(P){return(P?"":"[m\xfalt] ")+"["+i[this.day()]+"] LT[-kor]"}w.defineLocale("hu",{months:"janu\xe1r_febru\xe1r_m\xe1rcius_\xe1prilis_m\xe1jus_j\xfanius_j\xfalius_augusztus_szeptember_okt\xf3ber_november_december".split("_"),monthsShort:"jan._feb._m\xe1rc._\xe1pr._m\xe1j._j\xfan._j\xfal._aug._szept._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"vas\xe1rnap_h\xe9tf\u0151_kedd_szerda_cs\xfct\xf6rt\xf6k_p\xe9ntek_szombat".split("_"),weekdaysShort:"vas_h\xe9t_kedd_sze_cs\xfct_p\xe9n_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(P){return"u"===P.charAt(1).toLowerCase()},meridiem:function(P,k,F){return P<12?!0===F?"de":"DE":!0===F?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return x.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return x.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s m\xfalva",past:"%s",s:E,ss:E,m:E,mm:E,h:E,hh:E,d:E,dd:E,M:E,MM:E,y:E,yy:E},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(T(5439))},5283:function(j,Y,T){!function(w){"use strict";w.defineLocale("hy-am",{months:{format:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580\u056b_\u0583\u0565\u057f\u0580\u057e\u0561\u0580\u056b_\u0574\u0561\u0580\u057f\u056b_\u0561\u057a\u0580\u056b\u056c\u056b_\u0574\u0561\u0575\u056b\u057d\u056b_\u0570\u0578\u0582\u0576\u056b\u057d\u056b_\u0570\u0578\u0582\u056c\u056b\u057d\u056b_\u0585\u0563\u0578\u057d\u057f\u0578\u057d\u056b_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580\u056b_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b".split("_"),standalone:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580_\u0583\u0565\u057f\u0580\u057e\u0561\u0580_\u0574\u0561\u0580\u057f_\u0561\u057a\u0580\u056b\u056c_\u0574\u0561\u0575\u056b\u057d_\u0570\u0578\u0582\u0576\u056b\u057d_\u0570\u0578\u0582\u056c\u056b\u057d_\u0585\u0563\u0578\u057d\u057f\u0578\u057d_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580".split("_")},monthsShort:"\u0570\u0576\u057e_\u0583\u057f\u0580_\u0574\u0580\u057f_\u0561\u057a\u0580_\u0574\u0575\u057d_\u0570\u0576\u057d_\u0570\u056c\u057d_\u0585\u0563\u057d_\u057d\u057a\u057f_\u0570\u056f\u057f_\u0576\u0574\u0562_\u0564\u056f\u057f".split("_"),weekdays:"\u056f\u056b\u0580\u0561\u056f\u056b_\u0565\u0580\u056f\u0578\u0582\u0577\u0561\u0562\u0569\u056b_\u0565\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0579\u0578\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0570\u056b\u0576\u0563\u0577\u0561\u0562\u0569\u056b_\u0578\u0582\u0580\u0562\u0561\u0569_\u0577\u0561\u0562\u0561\u0569".split("_"),weekdaysShort:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),weekdaysMin:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0569.",LLL:"D MMMM YYYY \u0569., HH:mm",LLLL:"dddd, D MMMM YYYY \u0569., HH:mm"},calendar:{sameDay:"[\u0561\u0575\u057d\u0585\u0580] LT",nextDay:"[\u057e\u0561\u0572\u0568] LT",lastDay:"[\u0565\u0580\u0565\u056f] LT",nextWeek:function(){return"dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},lastWeek:function(){return"[\u0561\u0576\u0581\u0561\u056e] dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},sameElse:"L"},relativeTime:{future:"%s \u0570\u0565\u057f\u0578",past:"%s \u0561\u057c\u0561\u057b",s:"\u0574\u056b \u0584\u0561\u0576\u056b \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",ss:"%d \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",m:"\u0580\u0578\u057a\u0565",mm:"%d \u0580\u0578\u057a\u0565",h:"\u056a\u0561\u0574",hh:"%d \u056a\u0561\u0574",d:"\u0585\u0580",dd:"%d \u0585\u0580",M:"\u0561\u0574\u056b\u057d",MM:"%d \u0561\u0574\u056b\u057d",y:"\u057f\u0561\u0580\u056b",yy:"%d \u057f\u0561\u0580\u056b"},meridiemParse:/\u0563\u056b\u0577\u0565\u0580\u057e\u0561|\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561|\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576/,isPM:function(E){return/^(\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576)$/.test(E)},meridiem:function(E){return E<4?"\u0563\u056b\u0577\u0565\u0580\u057e\u0561":E<12?"\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561":E<17?"\u0581\u0565\u0580\u0565\u056f\u057e\u0561":"\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(\u056b\u0576|\u0580\u0564)/,ordinal:function(E,x){switch(x){case"DDD":case"w":case"W":case"DDDo":return 1===E?E+"-\u056b\u0576":E+"-\u0580\u0564";default:return E}},week:{dow:1,doy:7}})}(T(5439))},8780:function(j,Y,T){!function(w){"use strict";w.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(E,x){return 12===E&&(E=0),"pagi"===x?E:"siang"===x?E>=11?E:E+12:"sore"===x||"malam"===x?E+12:void 0},meridiem:function(E,x,S){return E<11?"pagi":E<15?"siang":E<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}})}(T(5439))},4205:function(j,Y,T){!function(w){"use strict";function i(S){return S%100==11||S%10!=1}function E(S,P,k,F){var q=S+" ";switch(k){case"s":return P||F?"nokkrar sek\xfandur":"nokkrum sek\xfandum";case"ss":return i(S)?q+(P||F?"sek\xfandur":"sek\xfandum"):q+"sek\xfanda";case"m":return P?"m\xedn\xfata":"m\xedn\xfatu";case"mm":return i(S)?q+(P||F?"m\xedn\xfatur":"m\xedn\xfatum"):P?q+"m\xedn\xfata":q+"m\xedn\xfatu";case"hh":return i(S)?q+(P||F?"klukkustundir":"klukkustundum"):q+"klukkustund";case"d":return P?"dagur":F?"dag":"degi";case"dd":return i(S)?P?q+"dagar":q+(F?"daga":"d\xf6gum"):P?q+"dagur":q+(F?"dag":"degi");case"M":return P?"m\xe1nu\xf0ur":F?"m\xe1nu\xf0":"m\xe1nu\xf0i";case"MM":return i(S)?P?q+"m\xe1nu\xf0ir":q+(F?"m\xe1nu\xf0i":"m\xe1nu\xf0um"):P?q+"m\xe1nu\xf0ur":q+(F?"m\xe1nu\xf0":"m\xe1nu\xf0i");case"y":return P||F?"\xe1r":"\xe1ri";case"yy":return i(S)?q+(P||F?"\xe1r":"\xe1rum"):q+(P||F?"\xe1r":"\xe1ri")}}w.defineLocale("is",{months:"jan\xfaar_febr\xfaar_mars_apr\xedl_ma\xed_j\xfan\xed_j\xfal\xed_\xe1g\xfast_september_okt\xf3ber_n\xf3vember_desember".split("_"),monthsShort:"jan_feb_mar_apr_ma\xed_j\xfan_j\xfal_\xe1g\xfa_sep_okt_n\xf3v_des".split("_"),weekdays:"sunnudagur_m\xe1nudagur_\xferi\xf0judagur_mi\xf0vikudagur_fimmtudagur_f\xf6studagur_laugardagur".split("_"),weekdaysShort:"sun_m\xe1n_\xferi_mi\xf0_fim_f\xf6s_lau".split("_"),weekdaysMin:"Su_M\xe1_\xder_Mi_Fi_F\xf6_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[\xed dag kl.] LT",nextDay:"[\xe1 morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xed g\xe6r kl.] LT",lastWeek:"[s\xed\xf0asta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s s\xed\xf0an",s:E,ss:E,m:E,mm:E,h:"klukkustund",hh:E,d:E,dd:E,M:E,MM:E,y:E,yy:E},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(T(5439))},9985:function(j,Y,T){!function(w){"use strict";w.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){return 0===this.day()?"[la scorsa] dddd [alle] LT":"[lo scorso] dddd [alle] LT"},sameElse:"L"},relativeTime:{future:function(E){return(/^[0-9].+$/.test(E)?"tra":"in")+" "+E},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(T(5439))},4211:function(j,Y,T){!function(w){"use strict";w.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){return 0===this.day()?"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT":"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(T(5439))},1003:function(j,Y,T){!function(w){"use strict";w.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"\u4ee4\u548c",narrow:"\u32ff",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"\u5e73\u6210",narrow:"\u337b",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"\u662d\u548c",narrow:"\u337c",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"\u5927\u6b63",narrow:"\u337d",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"\u660e\u6cbb",narrow:"\u337e",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"\u897f\u66a6",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"\u7d00\u5143\u524d",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(\u5143|\d+)\u5e74/,eraYearOrdinalParse:function(E,x){return"\u5143"===x[1]?1:parseInt(x[1]||E,10)},months:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u65e5\u66dc\u65e5_\u6708\u66dc\u65e5_\u706b\u66dc\u65e5_\u6c34\u66dc\u65e5_\u6728\u66dc\u65e5_\u91d1\u66dc\u65e5_\u571f\u66dc\u65e5".split("_"),weekdaysShort:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),weekdaysMin:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5(ddd) HH:mm"},meridiemParse:/\u5348\u524d|\u5348\u5f8c/i,isPM:function(E){return"\u5348\u5f8c"===E},meridiem:function(E,x,S){return E<12?"\u5348\u524d":"\u5348\u5f8c"},calendar:{sameDay:"[\u4eca\u65e5] LT",nextDay:"[\u660e\u65e5] LT",nextWeek:function(E){return E.week()!==this.week()?"[\u6765\u9031]dddd LT":"dddd LT"},lastDay:"[\u6628\u65e5] LT",lastWeek:function(E){return this.week()!==E.week()?"[\u5148\u9031]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}\u65e5/,ordinal:function(E,x){switch(x){case"y":return 1===E?"\u5143\u5e74":E+"\u5e74";case"d":case"D":case"DDD":return E+"\u65e5";default:return E}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u6570\u79d2",ss:"%d\u79d2",m:"1\u5206",mm:"%d\u5206",h:"1\u6642\u9593",hh:"%d\u6642\u9593",d:"1\u65e5",dd:"%d\u65e5",M:"1\u30f6\u6708",MM:"%d\u30f6\u6708",y:"1\u5e74",yy:"%d\u5e74"}})}(T(5439))},420:function(j,Y,T){!function(w){"use strict";w.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(E,x){return 12===E&&(E=0),"enjing"===x?E:"siyang"===x?E>=11?E:E+12:"sonten"===x||"ndalu"===x?E+12:void 0},meridiem:function(E,x,S){return E<11?"enjing":E<15?"siyang":E<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(T(5439))},851:function(j,Y,T){!function(w){"use strict";w.defineLocale("ka",{months:"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10d8_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10d8_\u10db\u10d0\u10e0\u10e2\u10d8_\u10d0\u10de\u10e0\u10d8\u10da\u10d8_\u10db\u10d0\u10d8\u10e1\u10d8_\u10d8\u10d5\u10dc\u10d8\u10e1\u10d8_\u10d8\u10d5\u10da\u10d8\u10e1\u10d8_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10dd_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10d8_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10d8".split("_"),monthsShort:"\u10d8\u10d0\u10dc_\u10d7\u10d4\u10d1_\u10db\u10d0\u10e0_\u10d0\u10de\u10e0_\u10db\u10d0\u10d8_\u10d8\u10d5\u10dc_\u10d8\u10d5\u10da_\u10d0\u10d2\u10d5_\u10e1\u10d4\u10e5_\u10dd\u10e5\u10e2_\u10dc\u10dd\u10d4_\u10d3\u10d4\u10d9".split("_"),weekdays:{standalone:"\u10d9\u10d5\u10d8\u10e0\u10d0_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10d8_\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8".split("_"),format:"\u10d9\u10d5\u10d8\u10e0\u10d0\u10e1_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10e1_\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1".split("_"),isFormat:/(\u10ec\u10d8\u10dc\u10d0|\u10e8\u10d4\u10db\u10d3\u10d4\u10d2)/},weekdaysShort:"\u10d9\u10d5\u10d8_\u10dd\u10e0\u10e8_\u10e1\u10d0\u10db_\u10dd\u10d7\u10ee_\u10ee\u10e3\u10d7_\u10de\u10d0\u10e0_\u10e8\u10d0\u10d1".split("_"),weekdaysMin:"\u10d9\u10d5_\u10dd\u10e0_\u10e1\u10d0_\u10dd\u10d7_\u10ee\u10e3_\u10de\u10d0_\u10e8\u10d0".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u10d3\u10e6\u10d4\u10e1] LT[-\u10d6\u10d4]",nextDay:"[\u10ee\u10d5\u10d0\u10da] LT[-\u10d6\u10d4]",lastDay:"[\u10d2\u10e3\u10e8\u10d8\u10dc] LT[-\u10d6\u10d4]",nextWeek:"[\u10e8\u10d4\u10db\u10d3\u10d4\u10d2] dddd LT[-\u10d6\u10d4]",lastWeek:"[\u10ec\u10d8\u10dc\u10d0] dddd LT-\u10d6\u10d4",sameElse:"L"},relativeTime:{future:function(E){return E.replace(/(\u10ec\u10d0\u10db|\u10ec\u10e3\u10d7|\u10e1\u10d0\u10d0\u10d7|\u10ec\u10d4\u10da|\u10d3\u10e6|\u10d7\u10d5)(\u10d8|\u10d4)/,function(x,S,P){return"\u10d8"===P?S+"\u10e8\u10d8":S+P+"\u10e8\u10d8"})},past:function(E){return/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10d3\u10e6\u10d4|\u10d7\u10d5\u10d4)/.test(E)?E.replace(/(\u10d8|\u10d4)$/,"\u10d8\u10e1 \u10ec\u10d8\u10dc"):/\u10ec\u10d4\u10da\u10d8/.test(E)?E.replace(/\u10ec\u10d4\u10da\u10d8$/,"\u10ec\u10da\u10d8\u10e1 \u10ec\u10d8\u10dc"):E},s:"\u10e0\u10d0\u10db\u10d3\u10d4\u10dc\u10d8\u10db\u10d4 \u10ec\u10d0\u10db\u10d8",ss:"%d \u10ec\u10d0\u10db\u10d8",m:"\u10ec\u10e3\u10d7\u10d8",mm:"%d \u10ec\u10e3\u10d7\u10d8",h:"\u10e1\u10d0\u10d0\u10d7\u10d8",hh:"%d \u10e1\u10d0\u10d0\u10d7\u10d8",d:"\u10d3\u10e6\u10d4",dd:"%d \u10d3\u10e6\u10d4",M:"\u10d7\u10d5\u10d4",MM:"%d \u10d7\u10d5\u10d4",y:"\u10ec\u10d4\u10da\u10d8",yy:"%d \u10ec\u10d4\u10da\u10d8"},dayOfMonthOrdinalParse:/0|1-\u10da\u10d8|\u10db\u10d4-\d{1,2}|\d{1,2}-\u10d4/,ordinal:function(E){return 0===E?E:1===E?E+"-\u10da\u10d8":E<20||E<=100&&E%20==0||E%100==0?"\u10db\u10d4-"+E:E+"-\u10d4"},week:{dow:1,doy:7}})}(T(5439))},6074:function(j,Y,T){!function(w){"use strict";var i={0:"-\u0448\u0456",1:"-\u0448\u0456",2:"-\u0448\u0456",3:"-\u0448\u0456",4:"-\u0448\u0456",5:"-\u0448\u0456",6:"-\u0448\u044b",7:"-\u0448\u0456",8:"-\u0448\u0456",9:"-\u0448\u044b",10:"-\u0448\u044b",20:"-\u0448\u044b",30:"-\u0448\u044b",40:"-\u0448\u044b",50:"-\u0448\u0456",60:"-\u0448\u044b",70:"-\u0448\u0456",80:"-\u0448\u0456",90:"-\u0448\u044b",100:"-\u0448\u0456"};w.defineLocale("kk",{months:"\u049b\u0430\u04a3\u0442\u0430\u0440_\u0430\u049b\u043f\u0430\u043d_\u043d\u0430\u0443\u0440\u044b\u0437_\u0441\u04d9\u0443\u0456\u0440_\u043c\u0430\u043c\u044b\u0440_\u043c\u0430\u0443\u0441\u044b\u043c_\u0448\u0456\u043b\u0434\u0435_\u0442\u0430\u043c\u044b\u0437_\u049b\u044b\u0440\u043a\u04af\u0439\u0435\u043a_\u049b\u0430\u0437\u0430\u043d_\u049b\u0430\u0440\u0430\u0448\u0430_\u0436\u0435\u043b\u0442\u043e\u049b\u0441\u0430\u043d".split("_"),monthsShort:"\u049b\u0430\u04a3_\u0430\u049b\u043f_\u043d\u0430\u0443_\u0441\u04d9\u0443_\u043c\u0430\u043c_\u043c\u0430\u0443_\u0448\u0456\u043b_\u0442\u0430\u043c_\u049b\u044b\u0440_\u049b\u0430\u0437_\u049b\u0430\u0440_\u0436\u0435\u043b".split("_"),weekdays:"\u0436\u0435\u043a\u0441\u0435\u043d\u0431\u0456_\u0434\u04af\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u04d9\u0440\u0441\u0435\u043d\u0431\u0456_\u0431\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0436\u04b1\u043c\u0430_\u0441\u0435\u043d\u0431\u0456".split("_"),weekdaysShort:"\u0436\u0435\u043a_\u0434\u04af\u0439_\u0441\u0435\u0439_\u0441\u04d9\u0440_\u0431\u0435\u0439_\u0436\u04b1\u043c_\u0441\u0435\u043d".split("_"),weekdaysMin:"\u0436\u043a_\u0434\u0439_\u0441\u0439_\u0441\u0440_\u0431\u0439_\u0436\u043c_\u0441\u043d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u0456\u043d \u0441\u0430\u0493\u0430\u0442] LT",nextDay:"[\u0415\u0440\u0442\u0435\u04a3 \u0441\u0430\u0493\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0493\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0448\u0435 \u0441\u0430\u0493\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u0435\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u04a3] dddd [\u0441\u0430\u0493\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0456\u0448\u0456\u043d\u0434\u0435",past:"%s \u0431\u04b1\u0440\u044b\u043d",s:"\u0431\u0456\u0440\u043d\u0435\u0448\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0456\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u0431\u0456\u0440 \u0441\u0430\u0493\u0430\u0442",hh:"%d \u0441\u0430\u0493\u0430\u0442",d:"\u0431\u0456\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0456\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0456\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0448\u0456|\u0448\u044b)/,ordinal:function(x){return x+(i[x]||i[x%10]||i[x>=100?100:null])},week:{dow:1,doy:7}})}(T(5439))},3343:function(j,Y,T){!function(w){"use strict";var i={1:"\u17e1",2:"\u17e2",3:"\u17e3",4:"\u17e4",5:"\u17e5",6:"\u17e6",7:"\u17e7",8:"\u17e8",9:"\u17e9",0:"\u17e0"},E={"\u17e1":"1","\u17e2":"2","\u17e3":"3","\u17e4":"4","\u17e5":"5","\u17e6":"6","\u17e7":"7","\u17e8":"8","\u17e9":"9","\u17e0":"0"};w.defineLocale("km",{months:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),monthsShort:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),weekdays:"\u17a2\u17b6\u1791\u17b7\u178f\u17d2\u1799_\u1785\u17d0\u1793\u17d2\u1791_\u17a2\u1784\u17d2\u1782\u17b6\u179a_\u1796\u17bb\u1792_\u1796\u17d2\u179a\u17a0\u179f\u17d2\u1794\u178f\u17b7\u17cd_\u179f\u17bb\u1780\u17d2\u179a_\u179f\u17c5\u179a\u17cd".split("_"),weekdaysShort:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysMin:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u1796\u17d2\u179a\u17b9\u1780|\u179b\u17d2\u1784\u17b6\u1785/,isPM:function(S){return"\u179b\u17d2\u1784\u17b6\u1785"===S},meridiem:function(S,P,k){return S<12?"\u1796\u17d2\u179a\u17b9\u1780":"\u179b\u17d2\u1784\u17b6\u1785"},calendar:{sameDay:"[\u1790\u17d2\u1784\u17c3\u1793\u17c1\u17c7 \u1798\u17c9\u17c4\u1784] LT",nextDay:"[\u179f\u17d2\u17a2\u17c2\u1780 \u1798\u17c9\u17c4\u1784] LT",nextWeek:"dddd [\u1798\u17c9\u17c4\u1784] LT",lastDay:"[\u1798\u17d2\u179f\u17b7\u179b\u1798\u17b7\u1789 \u1798\u17c9\u17c4\u1784] LT",lastWeek:"dddd [\u179f\u1794\u17d2\u178f\u17b6\u17a0\u17cd\u1798\u17bb\u1793] [\u1798\u17c9\u17c4\u1784] LT",sameElse:"L"},relativeTime:{future:"%s\u1791\u17c0\u178f",past:"%s\u1798\u17bb\u1793",s:"\u1794\u17c9\u17bb\u1793\u17d2\u1798\u17b6\u1793\u179c\u17b7\u1793\u17b6\u1791\u17b8",ss:"%d \u179c\u17b7\u1793\u17b6\u1791\u17b8",m:"\u1798\u17bd\u1799\u1793\u17b6\u1791\u17b8",mm:"%d \u1793\u17b6\u1791\u17b8",h:"\u1798\u17bd\u1799\u1798\u17c9\u17c4\u1784",hh:"%d \u1798\u17c9\u17c4\u1784",d:"\u1798\u17bd\u1799\u1790\u17d2\u1784\u17c3",dd:"%d \u1790\u17d2\u1784\u17c3",M:"\u1798\u17bd\u1799\u1781\u17c2",MM:"%d \u1781\u17c2",y:"\u1798\u17bd\u1799\u1786\u17d2\u1793\u17b6\u17c6",yy:"%d \u1786\u17d2\u1793\u17b6\u17c6"},dayOfMonthOrdinalParse:/\u1791\u17b8\d{1,2}/,ordinal:"\u1791\u17b8%d",preparse:function(S){return S.replace(/[\u17e1\u17e2\u17e3\u17e4\u17e5\u17e6\u17e7\u17e8\u17e9\u17e0]/g,function(P){return E[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},week:{dow:1,doy:4}})}(T(5439))},4799:function(j,Y,T){!function(w){"use strict";var i={1:"\u0ce7",2:"\u0ce8",3:"\u0ce9",4:"\u0cea",5:"\u0ceb",6:"\u0cec",7:"\u0ced",8:"\u0cee",9:"\u0cef",0:"\u0ce6"},E={"\u0ce7":"1","\u0ce8":"2","\u0ce9":"3","\u0cea":"4","\u0ceb":"5","\u0cec":"6","\u0ced":"7","\u0cee":"8","\u0cef":"9","\u0ce6":"0"};w.defineLocale("kn",{months:"\u0c9c\u0ca8\u0cb5\u0cb0\u0cbf_\u0cab\u0cc6\u0cac\u0ccd\u0cb0\u0cb5\u0cb0\u0cbf_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5\u0cac\u0cb0\u0ccd_\u0ca8\u0cb5\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82\u0cac\u0cb0\u0ccd".split("_"),monthsShort:"\u0c9c\u0ca8_\u0cab\u0cc6\u0cac\u0ccd\u0cb0_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5_\u0ca8\u0cb5\u0cc6\u0c82_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82".split("_"),monthsParseExact:!0,weekdays:"\u0cad\u0cbe\u0ca8\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae\u0cb5\u0cbe\u0cb0_\u0cae\u0c82\u0c97\u0cb3\u0cb5\u0cbe\u0cb0_\u0cac\u0cc1\u0ca7\u0cb5\u0cbe\u0cb0_\u0c97\u0cc1\u0cb0\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0\u0cb5\u0cbe\u0cb0_\u0cb6\u0ca8\u0cbf\u0cb5\u0cbe\u0cb0".split("_"),weekdaysShort:"\u0cad\u0cbe\u0ca8\u0cc1_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae_\u0cae\u0c82\u0c97\u0cb3_\u0cac\u0cc1\u0ca7_\u0c97\u0cc1\u0cb0\u0cc1_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0_\u0cb6\u0ca8\u0cbf".split("_"),weekdaysMin:"\u0cad\u0cbe_\u0cb8\u0cc6\u0cc2\u0cd5_\u0cae\u0c82_\u0cac\u0cc1_\u0c97\u0cc1_\u0cb6\u0cc1_\u0cb6".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c87\u0c82\u0ca6\u0cc1] LT",nextDay:"[\u0ca8\u0cbe\u0cb3\u0cc6] LT",nextWeek:"dddd, LT",lastDay:"[\u0ca8\u0cbf\u0ca8\u0ccd\u0ca8\u0cc6] LT",lastWeek:"[\u0c95\u0cc6\u0cc2\u0ca8\u0cc6\u0caf] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0ca8\u0c82\u0ca4\u0cb0",past:"%s \u0cb9\u0cbf\u0c82\u0ca6\u0cc6",s:"\u0c95\u0cc6\u0cb2\u0cb5\u0cc1 \u0c95\u0ccd\u0cb7\u0ca3\u0c97\u0cb3\u0cc1",ss:"%d \u0cb8\u0cc6\u0c95\u0cc6\u0c82\u0ca1\u0cc1\u0c97\u0cb3\u0cc1",m:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",mm:"%d \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",h:"\u0c92\u0c82\u0ca6\u0cc1 \u0c97\u0c82\u0c9f\u0cc6",hh:"%d \u0c97\u0c82\u0c9f\u0cc6",d:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca6\u0cbf\u0ca8",dd:"%d \u0ca6\u0cbf\u0ca8",M:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",MM:"%d \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",y:"\u0c92\u0c82\u0ca6\u0cc1 \u0cb5\u0cb0\u0ccd\u0cb7",yy:"%d \u0cb5\u0cb0\u0ccd\u0cb7"},preparse:function(S){return S.replace(/[\u0ce7\u0ce8\u0ce9\u0cea\u0ceb\u0cec\u0ced\u0cee\u0cef\u0ce6]/g,function(P){return E[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},meridiemParse:/\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf|\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6|\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8|\u0cb8\u0c82\u0c9c\u0cc6/,meridiemHour:function(S,P){return 12===S&&(S=0),"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"===P?S<4?S:S+12:"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6"===P?S:"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8"===P?S>=10?S:S+12:"\u0cb8\u0c82\u0c9c\u0cc6"===P?S+12:void 0},meridiem:function(S,P,k){return S<4?"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf":S<10?"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6":S<17?"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8":S<20?"\u0cb8\u0c82\u0c9c\u0cc6":"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"},dayOfMonthOrdinalParse:/\d{1,2}(\u0ca8\u0cc6\u0cd5)/,ordinal:function(S){return S+"\u0ca8\u0cc6\u0cd5"},week:{dow:0,doy:6}})}(T(5439))},3549:function(j,Y,T){!function(w){"use strict";w.defineLocale("ko",{months:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),monthsShort:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),weekdays:"\uc77c\uc694\uc77c_\uc6d4\uc694\uc77c_\ud654\uc694\uc77c_\uc218\uc694\uc77c_\ubaa9\uc694\uc77c_\uae08\uc694\uc77c_\ud1a0\uc694\uc77c".split("_"),weekdaysShort:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),weekdaysMin:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY\ub144 MMMM D\uc77c",LLL:"YYYY\ub144 MMMM D\uc77c A h:mm",LLLL:"YYYY\ub144 MMMM D\uc77c dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY\ub144 MMMM D\uc77c",lll:"YYYY\ub144 MMMM D\uc77c A h:mm",llll:"YYYY\ub144 MMMM D\uc77c dddd A h:mm"},calendar:{sameDay:"\uc624\ub298 LT",nextDay:"\ub0b4\uc77c LT",nextWeek:"dddd LT",lastDay:"\uc5b4\uc81c LT",lastWeek:"\uc9c0\ub09c\uc8fc dddd LT",sameElse:"L"},relativeTime:{future:"%s \ud6c4",past:"%s \uc804",s:"\uba87 \ucd08",ss:"%d\ucd08",m:"1\ubd84",mm:"%d\ubd84",h:"\ud55c \uc2dc\uac04",hh:"%d\uc2dc\uac04",d:"\ud558\ub8e8",dd:"%d\uc77c",M:"\ud55c \ub2ec",MM:"%d\ub2ec",y:"\uc77c \ub144",yy:"%d\ub144"},dayOfMonthOrdinalParse:/\d{1,2}(\uc77c|\uc6d4|\uc8fc)/,ordinal:function(E,x){switch(x){case"d":case"D":case"DDD":return E+"\uc77c";case"M":return E+"\uc6d4";case"w":case"W":return E+"\uc8fc";default:return E}},meridiemParse:/\uc624\uc804|\uc624\ud6c4/,isPM:function(E){return"\uc624\ud6c4"===E},meridiem:function(E,x,S){return E<12?"\uc624\uc804":"\uc624\ud6c4"}})}(T(5439))},1037:function(j,Y,T){!function(w){"use strict";var i={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},E={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},x=["\u06a9\u0627\u0646\u0648\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0634\u0648\u0628\u0627\u062a","\u0626\u0627\u0632\u0627\u0631","\u0646\u06cc\u0633\u0627\u0646","\u0626\u0627\u06cc\u0627\u0631","\u062d\u0648\u0632\u06d5\u06cc\u0631\u0627\u0646","\u062a\u06d5\u0645\u0645\u0648\u0632","\u0626\u0627\u0628","\u0626\u06d5\u06cc\u0644\u0648\u0648\u0644","\u062a\u0634\u0631\u06cc\u0646\u06cc \u06cc\u06d5\u0643\u06d5\u0645","\u062a\u0634\u0631\u06cc\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0643\u0627\u0646\u0648\u0646\u06cc \u06cc\u06d5\u06a9\u06d5\u0645"];w.defineLocale("ku",{months:x,monthsShort:x,weekdays:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u062f\u0648\u0648\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0633\u06ce\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysShort:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645_\u062f\u0648\u0648\u0634\u0647\u200c\u0645_\u0633\u06ce\u0634\u0647\u200c\u0645_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u0647_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c|\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc/,isPM:function(P){return/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c/.test(P)},meridiem:function(P,k,F){return P<12?"\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc":"\u0626\u06ce\u0648\u0627\u0631\u0647\u200c"},calendar:{sameDay:"[\u0626\u0647\u200c\u0645\u0631\u06c6 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextDay:"[\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastDay:"[\u062f\u0648\u06ce\u0646\u06ce \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",sameElse:"L"},relativeTime:{future:"\u0644\u0647\u200c %s",past:"%s",s:"\u0686\u0647\u200c\u0646\u062f \u0686\u0631\u0643\u0647\u200c\u06cc\u0647\u200c\u0643",ss:"\u0686\u0631\u0643\u0647\u200c %d",m:"\u06cc\u0647\u200c\u0643 \u062e\u0648\u0644\u0647\u200c\u0643",mm:"%d \u062e\u0648\u0644\u0647\u200c\u0643",h:"\u06cc\u0647\u200c\u0643 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",hh:"%d \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",d:"\u06cc\u0647\u200c\u0643 \u0695\u06c6\u0698",dd:"%d \u0695\u06c6\u0698",M:"\u06cc\u0647\u200c\u0643 \u0645\u0627\u0646\u06af",MM:"%d \u0645\u0627\u0646\u06af",y:"\u06cc\u0647\u200c\u0643 \u0633\u0627\u06b5",yy:"%d \u0633\u0627\u06b5"},preparse:function(P){return P.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(k){return E[k]}).replace(/\u060c/g,",")},postformat:function(P){return P.replace(/\d/g,function(k){return i[k]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(T(5439))},3125:function(j,Y,T){!function(w){"use strict";var i={0:"-\u0447\u04af",1:"-\u0447\u0438",2:"-\u0447\u0438",3:"-\u0447\u04af",4:"-\u0447\u04af",5:"-\u0447\u0438",6:"-\u0447\u044b",7:"-\u0447\u0438",8:"-\u0447\u0438",9:"-\u0447\u0443",10:"-\u0447\u0443",20:"-\u0447\u044b",30:"-\u0447\u0443",40:"-\u0447\u044b",50:"-\u0447\u04af",60:"-\u0447\u044b",70:"-\u0447\u0438",80:"-\u0447\u0438",90:"-\u0447\u0443",100:"-\u0447\u04af"};w.defineLocale("ky",{months:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u0416\u0435\u043a\u0448\u0435\u043c\u0431\u0438_\u0414\u04af\u0439\u0448\u04e9\u043c\u0431\u04af_\u0428\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0428\u0430\u0440\u0448\u0435\u043c\u0431\u0438_\u0411\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0416\u0443\u043c\u0430_\u0418\u0448\u0435\u043c\u0431\u0438".split("_"),weekdaysShort:"\u0416\u0435\u043a_\u0414\u04af\u0439_\u0428\u0435\u0439_\u0428\u0430\u0440_\u0411\u0435\u0439_\u0416\u0443\u043c_\u0418\u0448\u0435".split("_"),weekdaysMin:"\u0416\u043a_\u0414\u0439_\u0428\u0439_\u0428\u0440_\u0411\u0439_\u0416\u043c_\u0418\u0448".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u04af\u043d \u0441\u0430\u0430\u0442] LT",nextDay:"[\u042d\u0440\u0442\u0435\u04a3 \u0441\u0430\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0447\u044d\u044d \u0441\u0430\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u04e9\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u043d] dddd [\u043a\u04af\u043d\u04af] [\u0441\u0430\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0438\u0447\u0438\u043d\u0434\u0435",past:"%s \u043c\u0443\u0440\u0443\u043d",s:"\u0431\u0438\u0440\u043d\u0435\u0447\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0438\u0440 \u043c\u04af\u043d\u04e9\u0442",mm:"%d \u043c\u04af\u043d\u04e9\u0442",h:"\u0431\u0438\u0440 \u0441\u0430\u0430\u0442",hh:"%d \u0441\u0430\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0438\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0438\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0447\u0438|\u0447\u044b|\u0447\u04af|\u0447\u0443)/,ordinal:function(x){return x+(i[x]||i[x%10]||i[x>=100?100:null])},week:{dow:1,doy:7}})}(T(5439))},9586:function(j,Y,T){!function(w){"use strict";function i(k,F,q,J){var Q={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return F?Q[q][0]:Q[q][1]}function S(k){if(k=parseInt(k,10),isNaN(k))return!1;if(k<0)return!0;if(k<10)return 4<=k&&k<=7;if(k<100){var F=k%10;return S(0===F?k/10:F)}if(k<1e4){for(;k>=10;)k/=10;return S(k)}return S(k/=1e3)}w.defineLocale("lb",{months:"Januar_Februar_M\xe4erz_Abr\xebll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_M\xe9indeg_D\xebnschdeg_M\xebttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._M\xe9._D\xeb._M\xeb._Do._Fr._Sa.".split("_"),weekdaysMin:"So_M\xe9_D\xeb_M\xeb_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[G\xebschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function E(k){return S(k.substr(0,k.indexOf(" ")))?"a "+k:"an "+k},past:function x(k){return S(k.substr(0,k.indexOf(" ")))?"viru "+k:"virun "+k},s:"e puer Sekonnen",ss:"%d Sekonnen",m:i,mm:"%d Minutten",h:i,hh:"%d Stonnen",d:i,dd:"%d Deeg",M:i,MM:"%d M\xe9int",y:i,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(T(5439))},2349:function(j,Y,T){!function(w){"use strict";w.defineLocale("lo",{months:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),monthsShort:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),weekdays:"\u0ead\u0eb2\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysShort:"\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysMin:"\u0e97_\u0e88_\u0ead\u0e84_\u0e9e_\u0e9e\u0eab_\u0eaa\u0e81_\u0eaa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"\u0ea7\u0eb1\u0e99dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2|\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87/,isPM:function(E){return"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"===E},meridiem:function(E,x,S){return E<12?"\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2":"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"},calendar:{sameDay:"[\u0ea1\u0eb7\u0ec9\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextDay:"[\u0ea1\u0eb7\u0ec9\u0ead\u0eb7\u0ec8\u0e99\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0edc\u0ec9\u0eb2\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastDay:"[\u0ea1\u0eb7\u0ec9\u0ea7\u0eb2\u0e99\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0ec1\u0ea5\u0ec9\u0ea7\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",sameElse:"L"},relativeTime:{future:"\u0ead\u0eb5\u0e81 %s",past:"%s\u0e9c\u0ec8\u0eb2\u0e99\u0ea1\u0eb2",s:"\u0e9a\u0ecd\u0ec8\u0ec0\u0e97\u0ebb\u0ec8\u0eb2\u0ec3\u0e94\u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",ss:"%d \u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",m:"1 \u0e99\u0eb2\u0e97\u0eb5",mm:"%d \u0e99\u0eb2\u0e97\u0eb5",h:"1 \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",hh:"%d \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",d:"1 \u0ea1\u0eb7\u0ec9",dd:"%d \u0ea1\u0eb7\u0ec9",M:"1 \u0ec0\u0e94\u0eb7\u0ead\u0e99",MM:"%d \u0ec0\u0e94\u0eb7\u0ead\u0e99",y:"1 \u0e9b\u0eb5",yy:"%d \u0e9b\u0eb5"},dayOfMonthOrdinalParse:/(\u0e97\u0eb5\u0ec8)\d{1,2}/,ordinal:function(E){return"\u0e97\u0eb5\u0ec8"+E}})}(T(5439))},2400:function(j,Y,T){!function(w){"use strict";var i={ss:"sekund\u0117_sekund\u017ei\u0173_sekundes",m:"minut\u0117_minut\u0117s_minut\u0119",mm:"minut\u0117s_minu\u010di\u0173_minutes",h:"valanda_valandos_valand\u0105",hh:"valandos_valand\u0173_valandas",d:"diena_dienos_dien\u0105",dd:"dienos_dien\u0173_dienas",M:"m\u0117nuo_m\u0117nesio_m\u0117nes\u012f",MM:"m\u0117nesiai_m\u0117nesi\u0173_m\u0117nesius",y:"metai_met\u0173_metus",yy:"metai_met\u0173_metus"};function x(q,J,Q,ne){return J?P(Q)[0]:ne?P(Q)[1]:P(Q)[2]}function S(q){return q%10==0||q>10&&q<20}function P(q){return i[q].split("_")}function k(q,J,Q,ne){var le=q+" ";return 1===q?le+x(0,J,Q[0],ne):J?le+(S(q)?P(Q)[1]:P(Q)[0]):ne?le+P(Q)[1]:le+(S(q)?P(Q)[1]:P(Q)[2])}w.defineLocale("lt",{months:{format:"sausio_vasario_kovo_baland\u017eio_gegu\u017e\u0117s_bir\u017eelio_liepos_rugpj\u016b\u010dio_rugs\u0117jo_spalio_lapkri\u010dio_gruod\u017eio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegu\u017e\u0117_bir\u017eelis_liepa_rugpj\u016btis_rugs\u0117jis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadien\u012f_pirmadien\u012f_antradien\u012f_tre\u010diadien\u012f_ketvirtadien\u012f_penktadien\u012f_\u0161e\u0161tadien\u012f".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_tre\u010diadienis_ketvirtadienis_penktadienis_\u0161e\u0161tadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_\u0160e\u0161".split("_"),weekdaysMin:"S_P_A_T_K_Pn_\u0160".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[\u0160iandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Pra\u0117jus\u012f] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prie\u0161 %s",s:function E(q,J,Q,ne){return J?"kelios sekund\u0117s":ne?"keli\u0173 sekund\u017ei\u0173":"kelias sekundes"},ss:k,m:x,mm:k,h:x,hh:k,d:x,dd:k,M:x,MM:k,y:x,yy:k},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(q){return q+"-oji"},week:{dow:1,doy:4}})}(T(5439))},9991:function(j,Y,T){!function(w){"use strict";var i={ss:"sekundes_sekund\u0113m_sekunde_sekundes".split("_"),m:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),mm:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),h:"stundas_stund\u0101m_stunda_stundas".split("_"),hh:"stundas_stund\u0101m_stunda_stundas".split("_"),d:"dienas_dien\u0101m_diena_dienas".split("_"),dd:"dienas_dien\u0101m_diena_dienas".split("_"),M:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),MM:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function E(F,q,J){return J?q%10==1&&q%100!=11?F[2]:F[3]:q%10==1&&q%100!=11?F[0]:F[1]}function x(F,q,J){return F+" "+E(i[J],F,q)}function S(F,q,J){return E(i[J],F,q)}w.defineLocale("lv",{months:"janv\u0101ris_febru\u0101ris_marts_apr\u012blis_maijs_j\u016bnijs_j\u016blijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_j\u016bn_j\u016bl_aug_sep_okt_nov_dec".split("_"),weekdays:"sv\u0113tdiena_pirmdiena_otrdiena_tre\u0161diena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[\u0160odien pulksten] LT",nextDay:"[R\u012bt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pag\u0101ju\u0161\u0101] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"p\u0113c %s",past:"pirms %s",s:function P(F,q){return q?"da\u017eas sekundes":"da\u017e\u0101m sekund\u0113m"},ss:x,m:S,mm:x,h:S,hh:x,d:S,dd:x,M:S,MM:x,y:S,yy:x},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(T(5439))},8477:function(j,Y,T){!function(w){"use strict";var i={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(x,S){return 1===x?S[0]:x>=2&&x<=4?S[1]:S[2]},translate:function(x,S,P){var k=i.words[P];return 1===P.length?S?k[0]:k[1]:x+" "+i.correctGrammaticalCase(x,k)}};w.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedjelje] [u] LT","[pro\u0161log] [ponedjeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srijede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:i.translate,m:i.translate,mm:i.translate,h:i.translate,hh:i.translate,d:"dan",dd:i.translate,M:"mjesec",MM:i.translate,y:"godinu",yy:i.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(T(5439))},5118:function(j,Y,T){!function(w){"use strict";w.defineLocale("mi",{months:"Kohi-t\u0101te_Hui-tanguru_Pout\u016b-te-rangi_Paenga-wh\u0101wh\u0101_Haratua_Pipiri_H\u014dngoingoi_Here-turi-k\u014dk\u0101_Mahuru_Whiringa-\u0101-nuku_Whiringa-\u0101-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_H\u014dngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"R\u0101tapu_Mane_T\u016brei_Wenerei_T\u0101ite_Paraire_H\u0101tarei".split("_"),weekdaysShort:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),weekdaysMin:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te h\u0113kona ruarua",ss:"%d h\u0113kona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(T(5439))},5943:function(j,Y,T){!function(w){"use strict";w.defineLocale("mk",{months:"\u0458\u0430\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d\u0438_\u0458\u0443\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u0458\u0430\u043d_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u043e\u043a_\u043f\u0435\u0442\u043e\u043a_\u0441\u0430\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u0435_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u0430\u0431".split("_"),weekdaysMin:"\u043de_\u043fo_\u0432\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441a".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u0435\u043d\u0435\u0441 \u0432\u043e] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432\u043e] LT",nextWeek:"[\u0412\u043e] dddd [\u0432\u043e] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432\u043e] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0430\u0442\u0430] dddd [\u0432\u043e] LT";case 1:case 2:case 4:case 5:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0438\u043e\u0442] dddd [\u0432\u043e] LT"}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435\u0434 %s",s:"\u043d\u0435\u043a\u043e\u043b\u043a\u0443 \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u0435\u0434\u043d\u0430 \u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0435\u0434\u0435\u043d \u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0435\u0434\u0435\u043d \u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",M:"\u0435\u0434\u0435\u043d \u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0438",y:"\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(E){var x=E%10,S=E%100;return 0===E?E+"-\u0435\u0432":0===S?E+"-\u0435\u043d":S>10&&S<20?E+"-\u0442\u0438":1===x?E+"-\u0432\u0438":2===x?E+"-\u0440\u0438":7===x||8===x?E+"-\u043c\u0438":E+"-\u0442\u0438"},week:{dow:1,doy:7}})}(T(5439))},3849:function(j,Y,T){!function(w){"use strict";w.defineLocale("ml",{months:"\u0d1c\u0d28\u0d41\u0d35\u0d30\u0d3f_\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41\u0d35\u0d30\u0d3f_\u0d2e\u0d3e\u0d7c\u0d1a\u0d4d\u0d1a\u0d4d_\u0d0f\u0d2a\u0d4d\u0d30\u0d3f\u0d7d_\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48_\u0d13\u0d17\u0d38\u0d4d\u0d31\u0d4d\u0d31\u0d4d_\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31\u0d02\u0d2c\u0d7c_\u0d12\u0d15\u0d4d\u0d1f\u0d4b\u0d2c\u0d7c_\u0d28\u0d35\u0d02\u0d2c\u0d7c_\u0d21\u0d3f\u0d38\u0d02\u0d2c\u0d7c".split("_"),monthsShort:"\u0d1c\u0d28\u0d41._\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41._\u0d2e\u0d3e\u0d7c._\u0d0f\u0d2a\u0d4d\u0d30\u0d3f._\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48._\u0d13\u0d17._\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31._\u0d12\u0d15\u0d4d\u0d1f\u0d4b._\u0d28\u0d35\u0d02._\u0d21\u0d3f\u0d38\u0d02.".split("_"),monthsParseExact:!0,weekdays:"\u0d1e\u0d3e\u0d2f\u0d31\u0d3e\u0d34\u0d4d\u0d1a_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d33\u0d3e\u0d34\u0d4d\u0d1a_\u0d1a\u0d4a\u0d35\u0d4d\u0d35\u0d3e\u0d34\u0d4d\u0d1a_\u0d2c\u0d41\u0d27\u0d28\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a_\u0d36\u0d28\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a".split("_"),weekdaysShort:"\u0d1e\u0d3e\u0d2f\u0d7c_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d7e_\u0d1a\u0d4a\u0d35\u0d4d\u0d35_\u0d2c\u0d41\u0d27\u0d7b_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d02_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f_\u0d36\u0d28\u0d3f".split("_"),weekdaysMin:"\u0d1e\u0d3e_\u0d24\u0d3f_\u0d1a\u0d4a_\u0d2c\u0d41_\u0d35\u0d4d\u0d2f\u0d3e_\u0d35\u0d46_\u0d36".split("_"),longDateFormat:{LT:"A h:mm -\u0d28\u0d41",LTS:"A h:mm:ss -\u0d28\u0d41",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -\u0d28\u0d41",LLLL:"dddd, D MMMM YYYY, A h:mm -\u0d28\u0d41"},calendar:{sameDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d4d] LT",nextDay:"[\u0d28\u0d3e\u0d33\u0d46] LT",nextWeek:"dddd, LT",lastDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d32\u0d46] LT",lastWeek:"[\u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d",past:"%s \u0d2e\u0d41\u0d7b\u0d2a\u0d4d",s:"\u0d05\u0d7d\u0d2a \u0d28\u0d3f\u0d2e\u0d3f\u0d37\u0d19\u0d4d\u0d19\u0d7e",ss:"%d \u0d38\u0d46\u0d15\u0d4d\u0d15\u0d7b\u0d21\u0d4d",m:"\u0d12\u0d30\u0d41 \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",mm:"%d \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",h:"\u0d12\u0d30\u0d41 \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",hh:"%d \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",d:"\u0d12\u0d30\u0d41 \u0d26\u0d3f\u0d35\u0d38\u0d02",dd:"%d \u0d26\u0d3f\u0d35\u0d38\u0d02",M:"\u0d12\u0d30\u0d41 \u0d2e\u0d3e\u0d38\u0d02",MM:"%d \u0d2e\u0d3e\u0d38\u0d02",y:"\u0d12\u0d30\u0d41 \u0d35\u0d7c\u0d37\u0d02",yy:"%d \u0d35\u0d7c\u0d37\u0d02"},meridiemParse:/\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f|\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46|\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d|\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02|\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f/i,meridiemHour:function(E,x){return 12===E&&(E=0),"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"===x&&E>=4||"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d"===x||"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02"===x?E+12:E},meridiem:function(E,x,S){return E<4?"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f":E<12?"\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46":E<17?"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d":E<20?"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02":"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"}})}(T(5439))},1977:function(j,Y,T){!function(w){"use strict";function i(x,S,P,k){switch(P){case"s":return S?"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434":"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d";case"ss":return x+(S?" \u0441\u0435\u043a\u0443\u043d\u0434":" \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d");case"m":case"mm":return x+(S?" \u043c\u0438\u043d\u0443\u0442":" \u043c\u0438\u043d\u0443\u0442\u044b\u043d");case"h":case"hh":return x+(S?" \u0446\u0430\u0433":" \u0446\u0430\u0433\u0438\u0439\u043d");case"d":case"dd":return x+(S?" \u04e9\u0434\u04e9\u0440":" \u04e9\u0434\u0440\u0438\u0439\u043d");case"M":case"MM":return x+(S?" \u0441\u0430\u0440":" \u0441\u0430\u0440\u044b\u043d");case"y":case"yy":return x+(S?" \u0436\u0438\u043b":" \u0436\u0438\u043b\u0438\u0439\u043d");default:return x}}w.defineLocale("mn",{months:"\u041d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0425\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0413\u0443\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u04e9\u0440\u04e9\u0432\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0422\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0417\u0443\u0440\u0433\u0430\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u043e\u043b\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u041d\u0430\u0439\u043c\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0415\u0441\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u043d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u0445\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440".split("_"),monthsShort:"1 \u0441\u0430\u0440_2 \u0441\u0430\u0440_3 \u0441\u0430\u0440_4 \u0441\u0430\u0440_5 \u0441\u0430\u0440_6 \u0441\u0430\u0440_7 \u0441\u0430\u0440_8 \u0441\u0430\u0440_9 \u0441\u0430\u0440_10 \u0441\u0430\u0440_11 \u0441\u0430\u0440_12 \u0441\u0430\u0440".split("_"),monthsParseExact:!0,weekdays:"\u041d\u044f\u043c_\u0414\u0430\u0432\u0430\u0430_\u041c\u044f\u0433\u043c\u0430\u0440_\u041b\u0445\u0430\u0433\u0432\u0430_\u041f\u04af\u0440\u044d\u0432_\u0411\u0430\u0430\u0441\u0430\u043d_\u0411\u044f\u043c\u0431\u0430".split("_"),weekdaysShort:"\u041d\u044f\u043c_\u0414\u0430\u0432_\u041c\u044f\u0433_\u041b\u0445\u0430_\u041f\u04af\u0440_\u0411\u0430\u0430_\u0411\u044f\u043c".split("_"),weekdaysMin:"\u041d\u044f_\u0414\u0430_\u041c\u044f_\u041b\u0445_\u041f\u04af_\u0411\u0430_\u0411\u044f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D",LLL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm",LLLL:"dddd, YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm"},meridiemParse:/\u04ae\u04e8|\u04ae\u0425/i,isPM:function(x){return"\u04ae\u0425"===x},meridiem:function(x,S,P){return x<12?"\u04ae\u04e8":"\u04ae\u0425"},calendar:{sameDay:"[\u04e8\u043d\u04e9\u04e9\u0434\u04e9\u0440] LT",nextDay:"[\u041c\u0430\u0440\u0433\u0430\u0430\u0448] LT",nextWeek:"[\u0418\u0440\u044d\u0445] dddd LT",lastDay:"[\u04e8\u0447\u0438\u0433\u0434\u04e9\u0440] LT",lastWeek:"[\u04e8\u043d\u0433\u04e9\u0440\u0441\u04e9\u043d] dddd LT",sameElse:"L"},relativeTime:{future:"%s \u0434\u0430\u0440\u0430\u0430",past:"%s \u04e9\u043c\u043d\u04e9",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2} \u04e9\u0434\u04e9\u0440/,ordinal:function(x,S){switch(S){case"d":case"D":case"DDD":return x+" \u04e9\u0434\u04e9\u0440";default:return x}}})}(T(5439))},6184:function(j,Y,T){!function(w){"use strict";var i={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},E={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};function x(P,k,F,q){var J="";if(k)switch(F){case"s":J="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926";break;case"ss":J="%d \u0938\u0947\u0915\u0902\u0926";break;case"m":J="\u090f\u0915 \u092e\u093f\u0928\u093f\u091f";break;case"mm":J="%d \u092e\u093f\u0928\u093f\u091f\u0947";break;case"h":J="\u090f\u0915 \u0924\u093e\u0938";break;case"hh":J="%d \u0924\u093e\u0938";break;case"d":J="\u090f\u0915 \u0926\u093f\u0935\u0938";break;case"dd":J="%d \u0926\u093f\u0935\u0938";break;case"M":J="\u090f\u0915 \u092e\u0939\u093f\u0928\u093e";break;case"MM":J="%d \u092e\u0939\u093f\u0928\u0947";break;case"y":J="\u090f\u0915 \u0935\u0930\u094d\u0937";break;case"yy":J="%d \u0935\u0930\u094d\u0937\u0947"}else switch(F){case"s":J="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"ss":J="%d \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"m":J="\u090f\u0915\u093e \u092e\u093f\u0928\u093f\u091f\u093e";break;case"mm":J="%d \u092e\u093f\u0928\u093f\u091f\u093e\u0902";break;case"h":J="\u090f\u0915\u093e \u0924\u093e\u0938\u093e";break;case"hh":J="%d \u0924\u093e\u0938\u093e\u0902";break;case"d":J="\u090f\u0915\u093e \u0926\u093f\u0935\u0938\u093e";break;case"dd":J="%d \u0926\u093f\u0935\u0938\u093e\u0902";break;case"M":J="\u090f\u0915\u093e \u092e\u0939\u093f\u0928\u094d\u092f\u093e";break;case"MM":J="%d \u092e\u0939\u093f\u0928\u094d\u092f\u093e\u0902";break;case"y":J="\u090f\u0915\u093e \u0935\u0930\u094d\u0937\u093e";break;case"yy":J="%d \u0935\u0930\u094d\u0937\u093e\u0902"}return J.replace(/%d/i,P)}w.defineLocale("mr",{months:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u093f\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u0948_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a._\u090f\u092a\u094d\u0930\u093f._\u092e\u0947._\u091c\u0942\u0928._\u091c\u0941\u0932\u0948._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0933\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0933_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u0935\u093e\u091c\u0924\u093e",LTS:"A h:mm:ss \u0935\u093e\u091c\u0924\u093e",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e",LLLL:"dddd, D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0909\u0926\u094d\u092f\u093e] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092e\u093e\u0917\u0940\u0932] dddd, LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u0927\u094d\u092f\u0947",past:"%s\u092a\u0942\u0930\u094d\u0935\u0940",s:x,ss:x,m:x,mm:x,h:x,hh:x,d:x,dd:x,M:x,MM:x,y:x,yy:x},preparse:function(P){return P.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(k){return E[k]})},postformat:function(P){return P.replace(/\d/g,function(k){return i[k]})},meridiemParse:/\u092a\u0939\u093e\u091f\u0947|\u0938\u0915\u093e\u0933\u0940|\u0926\u0941\u092a\u093e\u0930\u0940|\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940|\u0930\u093e\u0924\u094d\u0930\u0940/,meridiemHour:function(P,k){return 12===P&&(P=0),"\u092a\u0939\u093e\u091f\u0947"===k||"\u0938\u0915\u093e\u0933\u0940"===k?P:"\u0926\u0941\u092a\u093e\u0930\u0940"===k||"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940"===k||"\u0930\u093e\u0924\u094d\u0930\u0940"===k?P>=12?P:P+12:void 0},meridiem:function(P,k,F){return P>=0&&P<6?"\u092a\u0939\u093e\u091f\u0947":P<12?"\u0938\u0915\u093e\u0933\u0940":P<17?"\u0926\u0941\u092a\u093e\u0930\u0940":P<20?"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940":"\u0930\u093e\u0924\u094d\u0930\u0940"},week:{dow:0,doy:6}})}(T(5439))},4524:function(j,Y,T){!function(w){"use strict";w.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(E,x){return 12===E&&(E=0),"pagi"===x?E:"tengahari"===x?E>=11?E:E+12:"petang"===x||"malam"===x?E+12:void 0},meridiem:function(E,x,S){return E<11?"pagi":E<15?"tengahari":E<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(T(5439))},485:function(j,Y,T){!function(w){"use strict";w.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(E,x){return 12===E&&(E=0),"pagi"===x?E:"tengahari"===x?E>=11?E:E+12:"petang"===x||"malam"===x?E+12:void 0},meridiem:function(E,x,S){return E<11?"pagi":E<15?"tengahari":E<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(T(5439))},6681:function(j,Y,T){!function(w){"use strict";w.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_\u0120unju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Di\u010bembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_\u0120un_Lul_Aww_Set_Ott_Nov_Di\u010b".split("_"),weekdays:"Il-\u0126add_It-Tnejn_It-Tlieta_L-Erbg\u0127a_Il-\u0126amis_Il-\u0120img\u0127a_Is-Sibt".split("_"),weekdaysShort:"\u0126ad_Tne_Tli_Erb_\u0126am_\u0120im_Sib".split("_"),weekdaysMin:"\u0126a_Tn_Tl_Er_\u0126a_\u0120i_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[G\u0127ada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-biera\u0127 fil-]LT",lastWeek:"dddd [li g\u0127adda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f\u2019 %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"sieg\u0127a",hh:"%d sieg\u0127at",d:"\u0121urnata",dd:"%d \u0121ranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(T(5439))},2024:function(j,Y,T){!function(w){"use strict";var i={1:"\u1041",2:"\u1042",3:"\u1043",4:"\u1044",5:"\u1045",6:"\u1046",7:"\u1047",8:"\u1048",9:"\u1049",0:"\u1040"},E={"\u1041":"1","\u1042":"2","\u1043":"3","\u1044":"4","\u1045":"5","\u1046":"6","\u1047":"7","\u1048":"8","\u1049":"9","\u1040":"0"};w.defineLocale("my",{months:"\u1007\u1014\u103a\u1014\u101d\u102b\u101b\u102e_\u1016\u1031\u1016\u1031\u102c\u103a\u101d\u102b\u101b\u102e_\u1019\u1010\u103a_\u1027\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u1007\u1030\u101c\u102d\u102f\u1004\u103a_\u101e\u103c\u1002\u102f\u1010\u103a_\u1005\u1000\u103a\u1010\u1004\u103a\u1018\u102c_\u1021\u1031\u102c\u1000\u103a\u1010\u102d\u102f\u1018\u102c_\u1014\u102d\u102f\u101d\u1004\u103a\u1018\u102c_\u1012\u102e\u1007\u1004\u103a\u1018\u102c".split("_"),monthsShort:"\u1007\u1014\u103a_\u1016\u1031_\u1019\u1010\u103a_\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u101c\u102d\u102f\u1004\u103a_\u101e\u103c_\u1005\u1000\u103a_\u1021\u1031\u102c\u1000\u103a_\u1014\u102d\u102f_\u1012\u102e".split("_"),weekdays:"\u1010\u1014\u1004\u103a\u1039\u1002\u1014\u103d\u1031_\u1010\u1014\u1004\u103a\u1039\u101c\u102c_\u1021\u1004\u103a\u1039\u1002\u102b_\u1017\u102f\u1012\u1039\u1013\u101f\u1030\u1038_\u1000\u103c\u102c\u101e\u1015\u1010\u1031\u1038_\u101e\u1031\u102c\u1000\u103c\u102c_\u1005\u1014\u1031".split("_"),weekdaysShort:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),weekdaysMin:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u101a\u1014\u1031.] LT [\u1019\u103e\u102c]",nextDay:"[\u1019\u1014\u1000\u103a\u1016\u103c\u1014\u103a] LT [\u1019\u103e\u102c]",nextWeek:"dddd LT [\u1019\u103e\u102c]",lastDay:"[\u1019\u1014\u1031.\u1000] LT [\u1019\u103e\u102c]",lastWeek:"[\u1015\u103c\u102e\u1038\u1001\u1032\u1037\u101e\u1031\u102c] dddd LT [\u1019\u103e\u102c]",sameElse:"L"},relativeTime:{future:"\u101c\u102c\u1019\u100a\u103a\u1037 %s \u1019\u103e\u102c",past:"\u101c\u103d\u1014\u103a\u1001\u1032\u1037\u101e\u1031\u102c %s \u1000",s:"\u1005\u1000\u1039\u1000\u1014\u103a.\u1021\u1014\u100a\u103a\u1038\u1004\u101a\u103a",ss:"%d \u1005\u1000\u1039\u1000\u1014\u1037\u103a",m:"\u1010\u1005\u103a\u1019\u102d\u1014\u1005\u103a",mm:"%d \u1019\u102d\u1014\u1005\u103a",h:"\u1010\u1005\u103a\u1014\u102c\u101b\u102e",hh:"%d \u1014\u102c\u101b\u102e",d:"\u1010\u1005\u103a\u101b\u1000\u103a",dd:"%d \u101b\u1000\u103a",M:"\u1010\u1005\u103a\u101c",MM:"%d \u101c",y:"\u1010\u1005\u103a\u1014\u103e\u1005\u103a",yy:"%d \u1014\u103e\u1005\u103a"},preparse:function(S){return S.replace(/[\u1041\u1042\u1043\u1044\u1045\u1046\u1047\u1048\u1049\u1040]/g,function(P){return E[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},week:{dow:1,doy:4}})}(T(5439))},2688:function(j,Y,T){!function(w){"use strict";w.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8._ma._ti._on._to._fr._l\xf8.".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",w:"en uke",ww:"%d uker",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(T(5439))},8914:function(j,Y,T){!function(w){"use strict";var i={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},E={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};w.defineLocale("ne",{months:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f\u0932_\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0937\u094d\u091f_\u0938\u0947\u092a\u094d\u091f\u0947\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u092d\u0947\u092e\u094d\u092c\u0930_\u0921\u093f\u0938\u0947\u092e\u094d\u092c\u0930".split("_"),monthsShort:"\u091c\u0928._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f._\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908._\u0905\u0917._\u0938\u0947\u092a\u094d\u091f._\u0905\u0915\u094d\u091f\u094b._\u0928\u094b\u092d\u0947._\u0921\u093f\u0938\u0947.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u0907\u0924\u092c\u093e\u0930_\u0938\u094b\u092e\u092c\u093e\u0930_\u092e\u0919\u094d\u0917\u0932\u092c\u093e\u0930_\u092c\u0941\u0927\u092c\u093e\u0930_\u092c\u093f\u0939\u093f\u092c\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u092c\u093e\u0930_\u0936\u0928\u093f\u092c\u093e\u0930".split("_"),weekdaysShort:"\u0906\u0907\u0924._\u0938\u094b\u092e._\u092e\u0919\u094d\u0917\u0932._\u092c\u0941\u0927._\u092c\u093f\u0939\u093f._\u0936\u0941\u0915\u094d\u0930._\u0936\u0928\u093f.".split("_"),weekdaysMin:"\u0906._\u0938\u094b._\u092e\u0902._\u092c\u0941._\u092c\u093f._\u0936\u0941._\u0936.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A\u0915\u094b h:mm \u092c\u091c\u0947",LTS:"A\u0915\u094b h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947"},preparse:function(S){return S.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(P){return E[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},meridiemParse:/\u0930\u093e\u0924\u093f|\u092c\u093f\u0939\u093e\u0928|\u0926\u093f\u0909\u0901\u0938\u094b|\u0938\u093e\u0901\u091d/,meridiemHour:function(S,P){return 12===S&&(S=0),"\u0930\u093e\u0924\u093f"===P?S<4?S:S+12:"\u092c\u093f\u0939\u093e\u0928"===P?S:"\u0926\u093f\u0909\u0901\u0938\u094b"===P?S>=10?S:S+12:"\u0938\u093e\u0901\u091d"===P?S+12:void 0},meridiem:function(S,P,k){return S<3?"\u0930\u093e\u0924\u093f":S<12?"\u092c\u093f\u0939\u093e\u0928":S<16?"\u0926\u093f\u0909\u0901\u0938\u094b":S<20?"\u0938\u093e\u0901\u091d":"\u0930\u093e\u0924\u093f"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u092d\u094b\u0932\u093f] LT",nextWeek:"[\u0906\u0909\u0901\u0926\u094b] dddd[,] LT",lastDay:"[\u0939\u093f\u091c\u094b] LT",lastWeek:"[\u0917\u090f\u0915\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u093e",past:"%s \u0905\u0917\u093e\u0921\u093f",s:"\u0915\u0947\u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0947\u0923\u094d\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u0947\u091f",mm:"%d \u092e\u093f\u0928\u0947\u091f",h:"\u090f\u0915 \u0918\u0923\u094d\u091f\u093e",hh:"%d \u0918\u0923\u094d\u091f\u093e",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u093f\u0928\u093e",MM:"%d \u092e\u0939\u093f\u0928\u093e",y:"\u090f\u0915 \u092c\u0930\u094d\u0937",yy:"%d \u092c\u0930\u094d\u0937"},week:{dow:0,doy:6}})}(T(5439))},2272:function(j,Y,T){!function(w){"use strict";var i="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),E="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),x=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],S=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;w.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(k,F){return k?/-MMM-/.test(F)?E[k.month()]:i[k.month()]:i},monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:x,longMonthsParse:x,shortMonthsParse:x,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(k){return k+(1===k||8===k||k>=20?"ste":"de")},week:{dow:1,doy:4}})}(T(5439))},1758:function(j,Y,T){!function(w){"use strict";var i="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),E="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),x=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],S=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;w.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(k,F){return k?/-MMM-/.test(F)?E[k.month()]:i[k.month()]:i},monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:x,longMonthsParse:x,shortMonthsParse:x,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",w:"\xe9\xe9n week",ww:"%d weken",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(k){return k+(1===k||8===k||k>=20?"ste":"de")},week:{dow:1,doy:4}})}(T(5439))},1510:function(j,Y,T){!function(w){"use strict";w.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_m\xe5ndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._m\xe5._ty._on._to._fr._lau.".split("_"),weekdaysMin:"su_m\xe5_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I g\xe5r klokka] LT",lastWeek:"[F\xf8reg\xe5ande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",w:"ei veke",ww:"%d veker",M:"ein m\xe5nad",MM:"%d m\xe5nader",y:"eit \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(T(5439))},2797:function(j,Y,T){!function(w){"use strict";w.defineLocale("oc-lnc",{months:{standalone:"geni\xe8r_febri\xe8r_mar\xe7_abril_mai_junh_julhet_agost_setembre_oct\xf2bre_novembre_decembre".split("_"),format:"de geni\xe8r_de febri\xe8r_de mar\xe7_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'oct\xf2bre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dim\xe8cres_dij\xf2us_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[u\xe8i a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[i\xe8r a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(E,x){var S=1===E?"r":2===E?"n":3===E?"r":4===E?"t":"\xe8";return("w"===x||"W"===x)&&(S="a"),E+S},week:{dow:1,doy:4}})}(T(5439))},7944:function(j,Y,T){!function(w){"use strict";var i={1:"\u0a67",2:"\u0a68",3:"\u0a69",4:"\u0a6a",5:"\u0a6b",6:"\u0a6c",7:"\u0a6d",8:"\u0a6e",9:"\u0a6f",0:"\u0a66"},E={"\u0a67":"1","\u0a68":"2","\u0a69":"3","\u0a6a":"4","\u0a6b":"5","\u0a6c":"6","\u0a6d":"7","\u0a6e":"8","\u0a6f":"9","\u0a66":"0"};w.defineLocale("pa-in",{months:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),monthsShort:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),weekdays:"\u0a10\u0a24\u0a35\u0a3e\u0a30_\u0a38\u0a4b\u0a2e\u0a35\u0a3e\u0a30_\u0a2e\u0a70\u0a17\u0a32\u0a35\u0a3e\u0a30_\u0a2c\u0a41\u0a27\u0a35\u0a3e\u0a30_\u0a35\u0a40\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a41\u0a71\u0a15\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a28\u0a40\u0a1a\u0a30\u0a35\u0a3e\u0a30".split("_"),weekdaysShort:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),weekdaysMin:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),longDateFormat:{LT:"A h:mm \u0a35\u0a1c\u0a47",LTS:"A h:mm:ss \u0a35\u0a1c\u0a47",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47",LLLL:"dddd, D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47"},calendar:{sameDay:"[\u0a05\u0a1c] LT",nextDay:"[\u0a15\u0a32] LT",nextWeek:"[\u0a05\u0a17\u0a32\u0a3e] dddd, LT",lastDay:"[\u0a15\u0a32] LT",lastWeek:"[\u0a2a\u0a3f\u0a1b\u0a32\u0a47] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0a35\u0a3f\u0a71\u0a1a",past:"%s \u0a2a\u0a3f\u0a1b\u0a32\u0a47",s:"\u0a15\u0a41\u0a1d \u0a38\u0a15\u0a3f\u0a70\u0a1f",ss:"%d \u0a38\u0a15\u0a3f\u0a70\u0a1f",m:"\u0a07\u0a15 \u0a2e\u0a3f\u0a70\u0a1f",mm:"%d \u0a2e\u0a3f\u0a70\u0a1f",h:"\u0a07\u0a71\u0a15 \u0a18\u0a70\u0a1f\u0a3e",hh:"%d \u0a18\u0a70\u0a1f\u0a47",d:"\u0a07\u0a71\u0a15 \u0a26\u0a3f\u0a28",dd:"%d \u0a26\u0a3f\u0a28",M:"\u0a07\u0a71\u0a15 \u0a2e\u0a39\u0a40\u0a28\u0a3e",MM:"%d \u0a2e\u0a39\u0a40\u0a28\u0a47",y:"\u0a07\u0a71\u0a15 \u0a38\u0a3e\u0a32",yy:"%d \u0a38\u0a3e\u0a32"},preparse:function(S){return S.replace(/[\u0a67\u0a68\u0a69\u0a6a\u0a6b\u0a6c\u0a6d\u0a6e\u0a6f\u0a66]/g,function(P){return E[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},meridiemParse:/\u0a30\u0a3e\u0a24|\u0a38\u0a35\u0a47\u0a30|\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30|\u0a38\u0a3c\u0a3e\u0a2e/,meridiemHour:function(S,P){return 12===S&&(S=0),"\u0a30\u0a3e\u0a24"===P?S<4?S:S+12:"\u0a38\u0a35\u0a47\u0a30"===P?S:"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30"===P?S>=10?S:S+12:"\u0a38\u0a3c\u0a3e\u0a2e"===P?S+12:void 0},meridiem:function(S,P,k){return S<4?"\u0a30\u0a3e\u0a24":S<10?"\u0a38\u0a35\u0a47\u0a30":S<17?"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30":S<20?"\u0a38\u0a3c\u0a3e\u0a2e":"\u0a30\u0a3e\u0a24"},week:{dow:0,doy:6}})}(T(5439))},1605:function(j,Y,T){!function(w){"use strict";var i="stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017adziernik_listopad_grudzie\u0144".split("_"),E="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015bnia_pa\u017adziernika_listopada_grudnia".split("_"),x=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^pa\u017a/i,/^lis/i,/^gru/i];function S(F){return F%10<5&&F%10>1&&~~(F/10)%10!=1}function P(F,q,J){var Q=F+" ";switch(J){case"ss":return Q+(S(F)?"sekundy":"sekund");case"m":return q?"minuta":"minut\u0119";case"mm":return Q+(S(F)?"minuty":"minut");case"h":return q?"godzina":"godzin\u0119";case"hh":return Q+(S(F)?"godziny":"godzin");case"ww":return Q+(S(F)?"tygodnie":"tygodni");case"MM":return Q+(S(F)?"miesi\u0105ce":"miesi\u0119cy");case"yy":return Q+(S(F)?"lata":"lat")}}w.defineLocale("pl",{months:function(F,q){return F?/D MMMM/.test(q)?E[F.month()]:i[F.month()]:i},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017a_lis_gru".split("_"),monthsParse:x,longMonthsParse:x,shortMonthsParse:x,weekdays:"niedziela_poniedzia\u0142ek_wtorek_\u015broda_czwartek_pi\u0105tek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_\u015br_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_\u015ar_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dzi\u015b o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedziel\u0119 o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W \u015brod\u0119 o] LT";case 6:return"[W sobot\u0119 o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zesz\u0142\u0105 niedziel\u0119 o] LT";case 3:return"[W zesz\u0142\u0105 \u015brod\u0119 o] LT";case 6:return"[W zesz\u0142\u0105 sobot\u0119 o] LT";default:return"[W zesz\u0142y] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:P,m:P,mm:P,h:P,hh:P,d:"1 dzie\u0144",dd:"%d dni",w:"tydzie\u0144",ww:P,M:"miesi\u0105c",MM:P,y:"rok",yy:P},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(T(5439))},3840:function(j,Y,T){!function(w){"use strict";w.defineLocale("pt-br",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_ter\xe7a-feira_quarta-feira_quinta-feira_sexta-feira_s\xe1bado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_s\xe1b".split("_"),weekdaysMin:"do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [\xe0s] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [\xe0s] HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",invalidDate:"Data inv\xe1lida"})}(T(5439))},4225:function(j,Y,T){!function(w){"use strict";w.defineLocale("pt",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Ter\xe7a-feira_Quarta-feira_Quinta-feira_Sexta-feira_S\xe1bado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_S\xe1b".split("_"),weekdaysMin:"Do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",w:"uma semana",ww:"%d semanas",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(T(5439))},5128:function(j,Y,T){!function(w){"use strict";function i(x,S,P){var F=" ";return(x%100>=20||x>=100&&x%100==0)&&(F=" de "),x+F+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"s\u0103pt\u0103m\xe2ni",MM:"luni",yy:"ani"}[P]}w.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminic\u0103_luni_mar\u021bi_miercuri_joi_vineri_s\xe2mb\u0103t\u0103".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_S\xe2m".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_S\xe2".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[m\xe2ine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s \xeen urm\u0103",s:"c\xe2teva secunde",ss:i,m:"un minut",mm:i,h:"o or\u0103",hh:i,d:"o zi",dd:i,w:"o s\u0103pt\u0103m\xe2n\u0103",ww:i,M:"o lun\u0103",MM:i,y:"un an",yy:i},week:{dow:1,doy:7}})}(T(5439))},5127:function(j,Y,T){!function(w){"use strict";function E(P,k,F){return"m"===F?k?"\u043c\u0438\u043d\u0443\u0442\u0430":"\u043c\u0438\u043d\u0443\u0442\u0443":P+" "+function i(P,k){var F=P.split("_");return k%10==1&&k%100!=11?F[0]:k%10>=2&&k%10<=4&&(k%100<10||k%100>=20)?F[1]:F[2]}({ss:k?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:k?"\u043c\u0438\u043d\u0443\u0442\u0430_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442":"\u043c\u0438\u043d\u0443\u0442\u0443_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442",hh:"\u0447\u0430\u0441_\u0447\u0430\u0441\u0430_\u0447\u0430\u0441\u043e\u0432",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u044f_\u0434\u043d\u0435\u0439",ww:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043d\u0435\u0434\u0435\u043b\u0438_\u043d\u0435\u0434\u0435\u043b\u044c",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u0430_\u043c\u0435\u0441\u044f\u0446\u0435\u0432",yy:"\u0433\u043e\u0434_\u0433\u043e\u0434\u0430_\u043b\u0435\u0442"}[F],+P)}var x=[/^\u044f\u043d\u0432/i,/^\u0444\u0435\u0432/i,/^\u043c\u0430\u0440/i,/^\u0430\u043f\u0440/i,/^\u043c\u0430[\u0439\u044f]/i,/^\u0438\u044e\u043d/i,/^\u0438\u044e\u043b/i,/^\u0430\u0432\u0433/i,/^\u0441\u0435\u043d/i,/^\u043e\u043a\u0442/i,/^\u043d\u043e\u044f/i,/^\u0434\u0435\u043a/i];w.defineLocale("ru",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u044f_\u0444\u0435\u0432\u0440\u0430\u043b\u044f_\u043c\u0430\u0440\u0442\u0430_\u0430\u043f\u0440\u0435\u043b\u044f_\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433\u0443\u0441\u0442\u0430_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f_\u043e\u043a\u0442\u044f\u0431\u0440\u044f_\u043d\u043e\u044f\u0431\u0440\u044f_\u0434\u0435\u043a\u0430\u0431\u0440\u044f".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_")},monthsShort:{format:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_"),standalone:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440\u0442_\u0430\u043f\u0440._\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_")},weekdays:{standalone:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0430_\u0441\u0443\u0431\u0431\u043e\u0442\u0430".split("_"),format:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0443_\u0441\u0443\u0431\u0431\u043e\u0442\u0443".split("_"),isFormat:/\[ ?[\u0412\u0432] ?(?:\u043f\u0440\u043e\u0448\u043b\u0443\u044e|\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e|\u044d\u0442\u0443)? ?] ?dddd/},weekdaysShort:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),monthsParse:x,longMonthsParse:x,shortMonthsParse:x,monthsRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsShortRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsStrictRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044f\u044c]|\u0444\u0435\u0432\u0440\u0430\u043b[\u044f\u044c]|\u043c\u0430\u0440\u0442\u0430?|\u0430\u043f\u0440\u0435\u043b[\u044f\u044c]|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044f\u044c]|\u0438\u044e\u043b[\u044f\u044c]|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043e\u043a\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043d\u043e\u044f\u0431\u0440[\u044f\u044c]|\u0434\u0435\u043a\u0430\u0431\u0440[\u044f\u044c])/i,monthsShortStrictRegex:/^(\u044f\u043d\u0432\.|\u0444\u0435\u0432\u0440?\.|\u043c\u0430\u0440[\u0442.]|\u0430\u043f\u0440\.|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044c\u044f.]|\u0438\u044e\u043b[\u044c\u044f.]|\u0430\u0432\u0433\.|\u0441\u0435\u043d\u0442?\.|\u043e\u043a\u0442\.|\u043d\u043e\u044f\u0431?\.|\u0434\u0435\u043a\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., H:mm",LLLL:"dddd, D MMMM YYYY \u0433., H:mm"},calendar:{sameDay:"[\u0421\u0435\u0433\u043e\u0434\u043d\u044f, \u0432] LT",nextDay:"[\u0417\u0430\u0432\u0442\u0440\u0430, \u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430, \u0432] LT",nextWeek:function(P){if(P.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e] dddd, [\u0432] LT"}},lastWeek:function(P){if(P.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u043e\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u044b\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u0443\u044e] dddd, [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0447\u0435\u0440\u0435\u0437 %s",past:"%s \u043d\u0430\u0437\u0430\u0434",s:"\u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434",ss:E,m:E,mm:E,h:"\u0447\u0430\u0441",hh:E,d:"\u0434\u0435\u043d\u044c",dd:E,w:"\u043d\u0435\u0434\u0435\u043b\u044f",ww:E,M:"\u043c\u0435\u0441\u044f\u0446",MM:E,y:"\u0433\u043e\u0434",yy:E},meridiemParse:/\u043d\u043e\u0447\u0438|\u0443\u0442\u0440\u0430|\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430/i,isPM:function(P){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430)$/.test(P)},meridiem:function(P,k,F){return P<4?"\u043d\u043e\u0447\u0438":P<12?"\u0443\u0442\u0440\u0430":P<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0435\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e|\u044f)/,ordinal:function(P,k){switch(k){case"M":case"d":case"DDD":return P+"-\u0439";case"D":return P+"-\u0433\u043e";case"w":case"W":return P+"-\u044f";default:return P}},week:{dow:1,doy:4}})}(T(5439))},2525:function(j,Y,T){!function(w){"use strict";var i=["\u062c\u0646\u0648\u0631\u064a","\u0641\u064a\u0628\u0631\u0648\u0631\u064a","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u064a\u0644","\u0645\u0626\u064a","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0621\u0650","\u0622\u06af\u0633\u067d","\u0633\u064a\u067e\u067d\u0645\u0628\u0631","\u0622\u06aa\u067d\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u068a\u0633\u0645\u0628\u0631"],E=["\u0622\u0686\u0631","\u0633\u0648\u0645\u0631","\u0627\u06b1\u0627\u0631\u0648","\u0627\u0631\u0628\u0639","\u062e\u0645\u064a\u0633","\u062c\u0645\u0639","\u0687\u0646\u0687\u0631"];w.defineLocale("sd",{months:i,monthsShort:i,weekdays:E,weekdaysShort:E,weekdaysMin:E,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(S){return"\u0634\u0627\u0645"===S},meridiem:function(S,P,k){return S<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0627\u0684] LT",nextDay:"[\u0633\u0680\u0627\u06bb\u064a] LT",nextWeek:"dddd [\u0627\u06b3\u064a\u0646 \u0647\u0641\u062a\u064a \u062a\u064a] LT",lastDay:"[\u06aa\u0627\u0644\u0647\u0647] LT",lastWeek:"[\u06af\u0632\u0631\u064a\u0644 \u0647\u0641\u062a\u064a] dddd [\u062a\u064a] LT",sameElse:"L"},relativeTime:{future:"%s \u067e\u0648\u0621",past:"%s \u0627\u06b3",s:"\u0686\u0646\u062f \u0633\u064a\u06aa\u0646\u068a",ss:"%d \u0633\u064a\u06aa\u0646\u068a",m:"\u0647\u06aa \u0645\u0646\u067d",mm:"%d \u0645\u0646\u067d",h:"\u0647\u06aa \u06aa\u0644\u0627\u06aa",hh:"%d \u06aa\u0644\u0627\u06aa",d:"\u0647\u06aa \u068f\u064a\u0646\u0647\u0646",dd:"%d \u068f\u064a\u0646\u0647\u0646",M:"\u0647\u06aa \u0645\u0647\u064a\u0646\u0648",MM:"%d \u0645\u0647\u064a\u0646\u0627",y:"\u0647\u06aa \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(S){return S.replace(/\u060c/g,",")},postformat:function(S){return S.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(T(5439))},9893:function(j,Y,T){!function(w){"use strict";w.defineLocale("se",{months:"o\u0111\u0111ajagem\xe1nnu_guovvam\xe1nnu_njuk\u010dam\xe1nnu_cuo\u014bom\xe1nnu_miessem\xe1nnu_geassem\xe1nnu_suoidnem\xe1nnu_borgem\xe1nnu_\u010dak\u010dam\xe1nnu_golggotm\xe1nnu_sk\xe1bmam\xe1nnu_juovlam\xe1nnu".split("_"),monthsShort:"o\u0111\u0111j_guov_njuk_cuo_mies_geas_suoi_borg_\u010dak\u010d_golg_sk\xe1b_juov".split("_"),weekdays:"sotnabeaivi_vuoss\xe1rga_ma\u014b\u014beb\xe1rga_gaskavahkku_duorastat_bearjadat_l\xe1vvardat".split("_"),weekdaysShort:"sotn_vuos_ma\u014b_gask_duor_bear_l\xe1v".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s gea\u017ees",past:"ma\u014bit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta m\xe1nnu",MM:"%d m\xe1nut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(T(5439))},3123:function(j,Y,T){!function(w){"use strict";w.defineLocale("si",{months:"\u0da2\u0db1\u0dc0\u0dcf\u0dbb\u0dd2_\u0db4\u0dd9\u0db6\u0dbb\u0dc0\u0dcf\u0dbb\u0dd2_\u0db8\u0dcf\u0dbb\u0dca\u0dad\u0dd4_\u0d85\u0db4\u0dca\u200d\u0dbb\u0dda\u0dbd\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd\u0dc3\u0dca\u0dad\u0dd4_\u0dc3\u0dd0\u0db4\u0dca\u0dad\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0d94\u0d9a\u0dca\u0dad\u0ddd\u0db6\u0dbb\u0dca_\u0db1\u0ddc\u0dc0\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0daf\u0dd9\u0dc3\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca".split("_"),monthsShort:"\u0da2\u0db1_\u0db4\u0dd9\u0db6_\u0db8\u0dcf\u0dbb\u0dca_\u0d85\u0db4\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd_\u0dc3\u0dd0\u0db4\u0dca_\u0d94\u0d9a\u0dca_\u0db1\u0ddc\u0dc0\u0dd0_\u0daf\u0dd9\u0dc3\u0dd0".split("_"),weekdays:"\u0d89\u0dbb\u0dd2\u0daf\u0dcf_\u0dc3\u0db3\u0dd4\u0daf\u0dcf_\u0d85\u0d9f\u0dc4\u0dbb\u0dd4\u0dc0\u0dcf\u0daf\u0dcf_\u0db6\u0daf\u0dcf\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4\u0dc3\u0dca\u0db4\u0dad\u0dd2\u0db1\u0dca\u0daf\u0dcf_\u0dc3\u0dd2\u0d9a\u0dd4\u0dbb\u0dcf\u0daf\u0dcf_\u0dc3\u0dd9\u0db1\u0dc3\u0dd4\u0dbb\u0dcf\u0daf\u0dcf".split("_"),weekdaysShort:"\u0d89\u0dbb\u0dd2_\u0dc3\u0db3\u0dd4_\u0d85\u0d9f_\u0db6\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4_\u0dc3\u0dd2\u0d9a\u0dd4_\u0dc3\u0dd9\u0db1".split("_"),weekdaysMin:"\u0d89_\u0dc3_\u0d85_\u0db6_\u0db6\u0dca\u200d\u0dbb_\u0dc3\u0dd2_\u0dc3\u0dd9".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [\u0dc0\u0dd0\u0db1\u0dd2] dddd, a h:mm:ss"},calendar:{sameDay:"[\u0d85\u0daf] LT[\u0da7]",nextDay:"[\u0dc4\u0dd9\u0da7] LT[\u0da7]",nextWeek:"dddd LT[\u0da7]",lastDay:"[\u0d8a\u0dba\u0dda] LT[\u0da7]",lastWeek:"[\u0db4\u0dc3\u0dd4\u0d9c\u0dd2\u0dba] dddd LT[\u0da7]",sameElse:"L"},relativeTime:{future:"%s\u0d9a\u0dd2\u0db1\u0dca",past:"%s\u0d9a\u0da7 \u0db4\u0dd9\u0dbb",s:"\u0dad\u0dad\u0dca\u0db4\u0dbb \u0d9a\u0dd2\u0dc4\u0dd2\u0db4\u0dba",ss:"\u0dad\u0dad\u0dca\u0db4\u0dbb %d",m:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4\u0dc0",mm:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4 %d",h:"\u0db4\u0dd0\u0dba",hh:"\u0db4\u0dd0\u0dba %d",d:"\u0daf\u0dd2\u0db1\u0dba",dd:"\u0daf\u0dd2\u0db1 %d",M:"\u0db8\u0dcf\u0dc3\u0dba",MM:"\u0db8\u0dcf\u0dc3 %d",y:"\u0dc0\u0dc3\u0dbb",yy:"\u0dc0\u0dc3\u0dbb %d"},dayOfMonthOrdinalParse:/\d{1,2} \u0dc0\u0dd0\u0db1\u0dd2/,ordinal:function(E){return E+" \u0dc0\u0dd0\u0db1\u0dd2"},meridiemParse:/\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4|\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4|\u0db4\u0dd9.\u0dc0|\u0db4.\u0dc0./,isPM:function(E){return"\u0db4.\u0dc0."===E||"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4"===E},meridiem:function(E,x,S){return E>11?S?"\u0db4.\u0dc0.":"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4":S?"\u0db4\u0dd9.\u0dc0.":"\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4"}})}(T(5439))},3027:function(j,Y,T){!function(w){"use strict";var i="janu\xe1r_febru\xe1r_marec_apr\xedl_m\xe1j_j\xfan_j\xfal_august_september_okt\xf3ber_november_december".split("_"),E="jan_feb_mar_apr_m\xe1j_j\xfan_j\xfal_aug_sep_okt_nov_dec".split("_");function x(k){return k>1&&k<5}function S(k,F,q,J){var Q=k+" ";switch(q){case"s":return F||J?"p\xe1r sek\xfand":"p\xe1r sekundami";case"ss":return F||J?Q+(x(k)?"sekundy":"sek\xfand"):Q+"sekundami";case"m":return F?"min\xfata":J?"min\xfatu":"min\xfatou";case"mm":return F||J?Q+(x(k)?"min\xfaty":"min\xfat"):Q+"min\xfatami";case"h":return F?"hodina":J?"hodinu":"hodinou";case"hh":return F||J?Q+(x(k)?"hodiny":"hod\xedn"):Q+"hodinami";case"d":return F||J?"de\u0148":"d\u0148om";case"dd":return F||J?Q+(x(k)?"dni":"dn\xed"):Q+"d\u0148ami";case"M":return F||J?"mesiac":"mesiacom";case"MM":return F||J?Q+(x(k)?"mesiace":"mesiacov"):Q+"mesiacmi";case"y":return F||J?"rok":"rokom";case"yy":return F||J?Q+(x(k)?"roky":"rokov"):Q+"rokmi"}}w.defineLocale("sk",{months:i,monthsShort:E,weekdays:"nede\u013ea_pondelok_utorok_streda_\u0161tvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_\u0161t_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_\u0161t_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nede\u013eu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo \u0161tvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[v\u010dera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minul\xfa nede\u013eu o] LT";case 1:case 2:case 4:case 5:return"[minul\xfd] dddd [o] LT";case 3:return"[minul\xfa stredu o] LT";case 6:return"[minul\xfa sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:S,ss:S,m:S,mm:S,h:S,hh:S,d:S,dd:S,M:S,MM:S,y:S,yy:S},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(T(5439))},8106:function(j,Y,T){!function(w){"use strict";function i(x,S,P,k){var F=x+" ";switch(P){case"s":return S||k?"nekaj sekund":"nekaj sekundami";case"ss":return F+(1===x?S?"sekundo":"sekundi":2===x?S||k?"sekundi":"sekundah":x<5?S||k?"sekunde":"sekundah":"sekund");case"m":return S?"ena minuta":"eno minuto";case"mm":return F+(1===x?S?"minuta":"minuto":2===x?S||k?"minuti":"minutama":x<5?S||k?"minute":"minutami":S||k?"minut":"minutami");case"h":return S?"ena ura":"eno uro";case"hh":return F+(1===x?S?"ura":"uro":2===x?S||k?"uri":"urama":x<5?S||k?"ure":"urami":S||k?"ur":"urami");case"d":return S||k?"en dan":"enim dnem";case"dd":return F+(1===x?S||k?"dan":"dnem":2===x?S||k?"dni":"dnevoma":S||k?"dni":"dnevi");case"M":return S||k?"en mesec":"enim mesecem";case"MM":return F+(1===x?S||k?"mesec":"mesecem":2===x?S||k?"meseca":"mesecema":x<5?S||k?"mesece":"meseci":S||k?"mesecev":"meseci");case"y":return S||k?"eno leto":"enim letom";case"yy":return F+(1===x?S||k?"leto":"letom":2===x?S||k?"leti":"letoma":x<5?S||k?"leta":"leti":S||k?"let":"leti")}}w.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_\u010detrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._\u010det._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_\u010de_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[v\u010deraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prej\u0161njo] [nedeljo] [ob] LT";case 3:return"[prej\u0161njo] [sredo] [ob] LT";case 6:return"[prej\u0161njo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prej\u0161nji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"\u010dez %s",past:"pred %s",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(T(5439))},8799:function(j,Y,T){!function(w){"use strict";w.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_N\xebntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_N\xebn_Dhj".split("_"),weekdays:"E Diel_E H\xebn\xeb_E Mart\xeb_E M\xebrkur\xeb_E Enjte_E Premte_E Shtun\xeb".split("_"),weekdaysShort:"Die_H\xebn_Mar_M\xebr_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_M\xeb_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(E){return"M"===E.charAt(0)},meridiem:function(E,x,S){return E<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot n\xeb] LT",nextDay:"[Nes\xebr n\xeb] LT",nextWeek:"dddd [n\xeb] LT",lastDay:"[Dje n\xeb] LT",lastWeek:"dddd [e kaluar n\xeb] LT",sameElse:"L"},relativeTime:{future:"n\xeb %s",past:"%s m\xeb par\xeb",s:"disa sekonda",ss:"%d sekonda",m:"nj\xeb minut\xeb",mm:"%d minuta",h:"nj\xeb or\xeb",hh:"%d or\xeb",d:"nj\xeb dit\xeb",dd:"%d dit\xeb",M:"nj\xeb muaj",MM:"%d muaj",y:"nj\xeb vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(T(5439))},2872:function(j,Y,T){!function(w){"use strict";var i={words:{ss:["\u0441\u0435\u043a\u0443\u043d\u0434\u0430","\u0441\u0435\u043a\u0443\u043d\u0434\u0435","\u0441\u0435\u043a\u0443\u043d\u0434\u0438"],m:["\u0458\u0435\u0434\u0430\u043d \u043c\u0438\u043d\u0443\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u043c\u0438\u043d\u0443\u0442\u0430"],mm:["\u043c\u0438\u043d\u0443\u0442","\u043c\u0438\u043d\u0443\u0442\u0430","\u043c\u0438\u043d\u0443\u0442\u0430"],h:["\u0458\u0435\u0434\u0430\u043d \u0441\u0430\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u0441\u0430\u0442\u0430"],hh:["\u0441\u0430\u0442","\u0441\u0430\u0442\u0430","\u0441\u0430\u0442\u0438"],d:["\u0458\u0435\u0434\u0430\u043d \u0434\u0430\u043d","\u0458\u0435\u0434\u043d\u043e\u0433 \u0434\u0430\u043d\u0430"],dd:["\u0434\u0430\u043d","\u0434\u0430\u043d\u0430","\u0434\u0430\u043d\u0430"],M:["\u0458\u0435\u0434\u0430\u043d \u043c\u0435\u0441\u0435\u0446","\u0458\u0435\u0434\u043d\u043e\u0433 \u043c\u0435\u0441\u0435\u0446\u0430"],MM:["\u043c\u0435\u0441\u0435\u0446","\u043c\u0435\u0441\u0435\u0446\u0430","\u043c\u0435\u0441\u0435\u0446\u0438"],y:["\u0458\u0435\u0434\u043d\u0443 \u0433\u043e\u0434\u0438\u043d\u0443","\u0458\u0435\u0434\u043d\u0435 \u0433\u043e\u0434\u0438\u043d\u0435"],yy:["\u0433\u043e\u0434\u0438\u043d\u0443","\u0433\u043e\u0434\u0438\u043d\u0435","\u0433\u043e\u0434\u0438\u043d\u0430"]},correctGrammaticalCase:function(x,S){return x%10>=1&&x%10<=4&&(x%100<10||x%100>=20)?x%10==1?S[0]:S[1]:S[2]},translate:function(x,S,P,k){var q,F=i.words[P];return 1===P.length?"y"===P&&S?"\u0458\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430":k||S?F[0]:F[1]:(q=i.correctGrammaticalCase(x,F),"yy"===P&&S&&"\u0433\u043e\u0434\u0438\u043d\u0443"===q?x+" \u0433\u043e\u0434\u0438\u043d\u0430":x+" "+q)}};w.defineLocale("sr-cyrl",{months:"\u0458\u0430\u043d\u0443\u0430\u0440_\u0444\u0435\u0431\u0440\u0443\u0430\u0440_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0431\u0430\u0440_\u043e\u043a\u0442\u043e\u0431\u0430\u0440_\u043d\u043e\u0432\u0435\u043c\u0431\u0430\u0440_\u0434\u0435\u0446\u0435\u043c\u0431\u0430\u0440".split("_"),monthsShort:"\u0458\u0430\u043d._\u0444\u0435\u0431._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433._\u0441\u0435\u043f._\u043e\u043a\u0442._\u043d\u043e\u0432._\u0434\u0435\u0446.".split("_"),monthsParseExact:!0,weekdays:"\u043d\u0435\u0434\u0435\u0459\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u0430\u043a_\u0443\u0442\u043e\u0440\u0430\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u0430\u043a_\u043f\u0435\u0442\u0430\u043a_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434._\u043f\u043e\u043d._\u0443\u0442\u043e._\u0441\u0440\u0435._\u0447\u0435\u0442._\u043f\u0435\u0442._\u0441\u0443\u0431.".split("_"),weekdaysMin:"\u043d\u0435_\u043f\u043e_\u0443\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441\u0443".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[\u0434\u0430\u043d\u0430\u0441 \u0443] LT",nextDay:"[\u0441\u0443\u0442\u0440\u0430 \u0443] LT",nextWeek:function(){switch(this.day()){case 0:return"[\u0443] [\u043d\u0435\u0434\u0435\u0459\u0443] [\u0443] LT";case 3:return"[\u0443] [\u0441\u0440\u0435\u0434\u0443] [\u0443] LT";case 6:return"[\u0443] [\u0441\u0443\u0431\u043e\u0442\u0443] [\u0443] LT";case 1:case 2:case 4:case 5:return"[\u0443] dddd [\u0443] LT"}},lastDay:"[\u0458\u0443\u0447\u0435 \u0443] LT",lastWeek:function(){return["[\u043f\u0440\u043e\u0448\u043b\u0435] [\u043d\u0435\u0434\u0435\u0459\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0443\u0442\u043e\u0440\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0440\u0435\u0434\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0447\u0435\u0442\u0432\u0440\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u0435\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0443\u0431\u043e\u0442\u0435] [\u0443] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435 %s",s:"\u043d\u0435\u043a\u043e\u043b\u0438\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:i.translate,m:i.translate,mm:i.translate,h:i.translate,hh:i.translate,d:i.translate,dd:i.translate,M:i.translate,MM:i.translate,y:i.translate,yy:i.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(T(5439))},7949:function(j,Y,T){!function(w){"use strict";var i={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],d:["jedan dan","jednog dana"],dd:["dan","dana","dana"],M:["jedan mesec","jednog meseca"],MM:["mesec","meseca","meseci"],y:["jednu godinu","jedne godine"],yy:["godinu","godine","godina"]},correctGrammaticalCase:function(x,S){return x%10>=1&&x%10<=4&&(x%100<10||x%100>=20)?x%10==1?S[0]:S[1]:S[2]},translate:function(x,S,P,k){var q,F=i.words[P];return 1===P.length?"y"===P&&S?"jedna godina":k||S?F[0]:F[1]:(q=i.correctGrammaticalCase(x,F),"yy"===P&&S&&"godinu"===q?x+" godina":x+" "+q)}};w.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedelje] [u] LT","[pro\u0161log] [ponedeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:i.translate,m:i.translate,mm:i.translate,h:i.translate,hh:i.translate,d:i.translate,dd:i.translate,M:i.translate,MM:i.translate,y:i.translate,yy:i.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(T(5439))},6167:function(j,Y,T){!function(w){"use strict";w.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(E,x,S){return E<11?"ekuseni":E<15?"emini":E<19?"entsambama":"ebusuku"},meridiemHour:function(E,x){return 12===E&&(E=0),"ekuseni"===x?E:"emini"===x?E>=11?E:E+12:"entsambama"===x||"ebusuku"===x?0===E?0:E+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(T(5439))},9713:function(j,Y,T){!function(w){"use strict";w.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf6ndag_m\xe5ndag_tisdag_onsdag_torsdag_fredag_l\xf6rdag".split("_"),weekdaysShort:"s\xf6n_m\xe5n_tis_ons_tor_fre_l\xf6r".split("_"),weekdaysMin:"s\xf6_m\xe5_ti_on_to_fr_l\xf6".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Ig\xe5r] LT",nextWeek:"[P\xe5] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"f\xf6r %s sedan",s:"n\xe5gra sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en m\xe5nad",MM:"%d m\xe5nader",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(E){var x=E%10;return E+(1==~~(E%100/10)?":e":1===x||2===x?":a":":e")},week:{dow:1,doy:4}})}(T(5439))},1982:function(j,Y,T){!function(w){"use strict";w.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"hh:mm A",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(T(5439))},2732:function(j,Y,T){!function(w){"use strict";var i={1:"\u0be7",2:"\u0be8",3:"\u0be9",4:"\u0bea",5:"\u0beb",6:"\u0bec",7:"\u0bed",8:"\u0bee",9:"\u0bef",0:"\u0be6"},E={"\u0be7":"1","\u0be8":"2","\u0be9":"3","\u0bea":"4","\u0beb":"5","\u0bec":"6","\u0bed":"7","\u0bee":"8","\u0bef":"9","\u0be6":"0"};w.defineLocale("ta",{months:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),monthsShort:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),weekdays:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bcd\u0bb1\u0bc1\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0b9f\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0ba9\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8".split("_"),weekdaysShort:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bc1_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0bb3\u0bcd_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0ba9\u0bcd_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf_\u0b9a\u0ba9\u0bbf".split("_"),weekdaysMin:"\u0b9e\u0bbe_\u0ba4\u0bbf_\u0b9a\u0bc6_\u0baa\u0bc1_\u0bb5\u0bbf_\u0bb5\u0bc6_\u0b9a".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[\u0b87\u0ba9\u0bcd\u0bb1\u0bc1] LT",nextDay:"[\u0ba8\u0bbe\u0bb3\u0bc8] LT",nextWeek:"dddd, LT",lastDay:"[\u0ba8\u0bc7\u0bb1\u0bcd\u0bb1\u0bc1] LT",lastWeek:"[\u0b95\u0b9f\u0ba8\u0bcd\u0ba4 \u0bb5\u0bbe\u0bb0\u0bae\u0bcd] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0b87\u0bb2\u0bcd",past:"%s \u0bae\u0bc1\u0ba9\u0bcd",s:"\u0b92\u0bb0\u0bc1 \u0b9a\u0bbf\u0bb2 \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",ss:"%d \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",m:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0bae\u0bcd",mm:"%d \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0b99\u0bcd\u0b95\u0bb3\u0bcd",h:"\u0b92\u0bb0\u0bc1 \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",hh:"%d \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",d:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbe\u0bb3\u0bcd",dd:"%d \u0ba8\u0bbe\u0b9f\u0bcd\u0b95\u0bb3\u0bcd",M:"\u0b92\u0bb0\u0bc1 \u0bae\u0bbe\u0ba4\u0bae\u0bcd",MM:"%d \u0bae\u0bbe\u0ba4\u0b99\u0bcd\u0b95\u0bb3\u0bcd",y:"\u0b92\u0bb0\u0bc1 \u0bb5\u0bb0\u0bc1\u0b9f\u0bae\u0bcd",yy:"%d \u0b86\u0ba3\u0bcd\u0b9f\u0bc1\u0b95\u0bb3\u0bcd"},dayOfMonthOrdinalParse:/\d{1,2}\u0bb5\u0ba4\u0bc1/,ordinal:function(S){return S+"\u0bb5\u0ba4\u0bc1"},preparse:function(S){return S.replace(/[\u0be7\u0be8\u0be9\u0bea\u0beb\u0bec\u0bed\u0bee\u0bef\u0be6]/g,function(P){return E[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},meridiemParse:/\u0baf\u0bbe\u0bae\u0bae\u0bcd|\u0bb5\u0bc8\u0b95\u0bb1\u0bc8|\u0b95\u0bbe\u0bb2\u0bc8|\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd|\u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1|\u0bae\u0bbe\u0bb2\u0bc8/,meridiem:function(S,P,k){return S<2?" \u0baf\u0bbe\u0bae\u0bae\u0bcd":S<6?" \u0bb5\u0bc8\u0b95\u0bb1\u0bc8":S<10?" \u0b95\u0bbe\u0bb2\u0bc8":S<14?" \u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd":S<18?" \u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1":S<22?" \u0bae\u0bbe\u0bb2\u0bc8":" \u0baf\u0bbe\u0bae\u0bae\u0bcd"},meridiemHour:function(S,P){return 12===S&&(S=0),"\u0baf\u0bbe\u0bae\u0bae\u0bcd"===P?S<2?S:S+12:"\u0bb5\u0bc8\u0b95\u0bb1\u0bc8"===P||"\u0b95\u0bbe\u0bb2\u0bc8"===P||"\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd"===P&&S>=10?S:S+12},week:{dow:0,doy:6}})}(T(5439))},3636:function(j,Y,T){!function(w){"use strict";w.defineLocale("te",{months:"\u0c1c\u0c28\u0c35\u0c30\u0c3f_\u0c2b\u0c3f\u0c2c\u0c4d\u0c30\u0c35\u0c30\u0c3f_\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f\u0c32\u0c4d_\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17\u0c38\u0c4d\u0c1f\u0c41_\u0c38\u0c46\u0c2a\u0c4d\u0c1f\u0c46\u0c02\u0c2c\u0c30\u0c4d_\u0c05\u0c15\u0c4d\u0c1f\u0c4b\u0c2c\u0c30\u0c4d_\u0c28\u0c35\u0c02\u0c2c\u0c30\u0c4d_\u0c21\u0c3f\u0c38\u0c46\u0c02\u0c2c\u0c30\u0c4d".split("_"),monthsShort:"\u0c1c\u0c28._\u0c2b\u0c3f\u0c2c\u0c4d\u0c30._\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f._\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17._\u0c38\u0c46\u0c2a\u0c4d._\u0c05\u0c15\u0c4d\u0c1f\u0c4b._\u0c28\u0c35._\u0c21\u0c3f\u0c38\u0c46.".split("_"),monthsParseExact:!0,weekdays:"\u0c06\u0c26\u0c3f\u0c35\u0c3e\u0c30\u0c02_\u0c38\u0c4b\u0c2e\u0c35\u0c3e\u0c30\u0c02_\u0c2e\u0c02\u0c17\u0c33\u0c35\u0c3e\u0c30\u0c02_\u0c2c\u0c41\u0c27\u0c35\u0c3e\u0c30\u0c02_\u0c17\u0c41\u0c30\u0c41\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c41\u0c15\u0c4d\u0c30\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c28\u0c3f\u0c35\u0c3e\u0c30\u0c02".split("_"),weekdaysShort:"\u0c06\u0c26\u0c3f_\u0c38\u0c4b\u0c2e_\u0c2e\u0c02\u0c17\u0c33_\u0c2c\u0c41\u0c27_\u0c17\u0c41\u0c30\u0c41_\u0c36\u0c41\u0c15\u0c4d\u0c30_\u0c36\u0c28\u0c3f".split("_"),weekdaysMin:"\u0c06_\u0c38\u0c4b_\u0c2e\u0c02_\u0c2c\u0c41_\u0c17\u0c41_\u0c36\u0c41_\u0c36".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c28\u0c47\u0c21\u0c41] LT",nextDay:"[\u0c30\u0c47\u0c2a\u0c41] LT",nextWeek:"dddd, LT",lastDay:"[\u0c28\u0c3f\u0c28\u0c4d\u0c28] LT",lastWeek:"[\u0c17\u0c24] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0c32\u0c4b",past:"%s \u0c15\u0c4d\u0c30\u0c3f\u0c24\u0c02",s:"\u0c15\u0c4a\u0c28\u0c4d\u0c28\u0c3f \u0c15\u0c4d\u0c37\u0c23\u0c3e\u0c32\u0c41",ss:"%d \u0c38\u0c46\u0c15\u0c28\u0c4d\u0c32\u0c41",m:"\u0c12\u0c15 \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c02",mm:"%d \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c3e\u0c32\u0c41",h:"\u0c12\u0c15 \u0c17\u0c02\u0c1f",hh:"%d \u0c17\u0c02\u0c1f\u0c32\u0c41",d:"\u0c12\u0c15 \u0c30\u0c4b\u0c1c\u0c41",dd:"%d \u0c30\u0c4b\u0c1c\u0c41\u0c32\u0c41",M:"\u0c12\u0c15 \u0c28\u0c46\u0c32",MM:"%d \u0c28\u0c46\u0c32\u0c32\u0c41",y:"\u0c12\u0c15 \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c02",yy:"%d \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c3e\u0c32\u0c41"},dayOfMonthOrdinalParse:/\d{1,2}\u0c35/,ordinal:"%d\u0c35",meridiemParse:/\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f|\u0c09\u0c26\u0c2f\u0c02|\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02|\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02/,meridiemHour:function(E,x){return 12===E&&(E=0),"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"===x?E<4?E:E+12:"\u0c09\u0c26\u0c2f\u0c02"===x?E:"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02"===x?E>=10?E:E+12:"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02"===x?E+12:void 0},meridiem:function(E,x,S){return E<4?"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f":E<10?"\u0c09\u0c26\u0c2f\u0c02":E<17?"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02":E<20?"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02":"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"},week:{dow:0,doy:6}})}(T(5439))},2115:function(j,Y,T){!function(w){"use strict";w.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Ju\xf1u_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"segundu balun",ss:"segundu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(E){var x=E%10;return E+(1==~~(E%100/10)?"th":1===x?"st":2===x?"nd":3===x?"rd":"th")},week:{dow:1,doy:4}})}(T(5439))},9801:function(j,Y,T){!function(w){"use strict";var i={0:"-\u0443\u043c",1:"-\u0443\u043c",2:"-\u044e\u043c",3:"-\u044e\u043c",4:"-\u0443\u043c",5:"-\u0443\u043c",6:"-\u0443\u043c",7:"-\u0443\u043c",8:"-\u0443\u043c",9:"-\u0443\u043c",10:"-\u0443\u043c",12:"-\u0443\u043c",13:"-\u0443\u043c",20:"-\u0443\u043c",30:"-\u044e\u043c",40:"-\u0443\u043c",50:"-\u0443\u043c",60:"-\u0443\u043c",70:"-\u0443\u043c",80:"-\u0443\u043c",90:"-\u0443\u043c",100:"-\u0443\u043c"};w.defineLocale("tg",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0430\u043b\u0438_\u043c\u0430\u0440\u0442\u0438_\u0430\u043f\u0440\u0435\u043b\u0438_\u043c\u0430\u0439\u0438_\u0438\u044e\u043d\u0438_\u0438\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442\u0438_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u0438_\u043e\u043a\u0442\u044f\u0431\u0440\u0438_\u043d\u043e\u044f\u0431\u0440\u0438_\u0434\u0435\u043a\u0430\u0431\u0440\u0438".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_")},monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u044f\u043a\u0448\u0430\u043d\u0431\u0435_\u0434\u0443\u0448\u0430\u043d\u0431\u0435_\u0441\u0435\u0448\u0430\u043d\u0431\u0435_\u0447\u043e\u0440\u0448\u0430\u043d\u0431\u0435_\u043f\u0430\u043d\u04b7\u0448\u0430\u043d\u0431\u0435_\u04b7\u0443\u043c\u044a\u0430_\u0448\u0430\u043d\u0431\u0435".split("_"),weekdaysShort:"\u044f\u0448\u0431_\u0434\u0448\u0431_\u0441\u0448\u0431_\u0447\u0448\u0431_\u043f\u0448\u0431_\u04b7\u0443\u043c_\u0448\u043d\u0431".split("_"),weekdaysMin:"\u044f\u0448_\u0434\u0448_\u0441\u0448_\u0447\u0448_\u043f\u0448_\u04b7\u043c_\u0448\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0418\u043c\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextDay:"[\u0424\u0430\u0440\u0434\u043e \u0441\u043e\u0430\u0442\u0438] LT",lastDay:"[\u0414\u0438\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u043e\u044f\u043d\u0434\u0430 \u0441\u043e\u0430\u0442\u0438] LT",lastWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u0433\u0443\u0437\u0430\u0448\u0442\u0430 \u0441\u043e\u0430\u0442\u0438] LT",sameElse:"L"},relativeTime:{future:"\u0431\u0430\u044a\u0434\u0438 %s",past:"%s \u043f\u0435\u0448",s:"\u044f\u043a\u0447\u0430\u043d\u0434 \u0441\u043e\u043d\u0438\u044f",m:"\u044f\u043a \u0434\u0430\u049b\u0438\u049b\u0430",mm:"%d \u0434\u0430\u049b\u0438\u049b\u0430",h:"\u044f\u043a \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u044f\u043a \u0440\u04ef\u0437",dd:"%d \u0440\u04ef\u0437",M:"\u044f\u043a \u043c\u043e\u04b3",MM:"%d \u043c\u043e\u04b3",y:"\u044f\u043a \u0441\u043e\u043b",yy:"%d \u0441\u043e\u043b"},meridiemParse:/\u0448\u0430\u0431|\u0441\u0443\u0431\u04b3|\u0440\u04ef\u0437|\u0431\u0435\u0433\u043e\u04b3/,meridiemHour:function(x,S){return 12===x&&(x=0),"\u0448\u0430\u0431"===S?x<4?x:x+12:"\u0441\u0443\u0431\u04b3"===S?x:"\u0440\u04ef\u0437"===S?x>=11?x:x+12:"\u0431\u0435\u0433\u043e\u04b3"===S?x+12:void 0},meridiem:function(x,S,P){return x<4?"\u0448\u0430\u0431":x<11?"\u0441\u0443\u0431\u04b3":x<16?"\u0440\u04ef\u0437":x<19?"\u0431\u0435\u0433\u043e\u04b3":"\u0448\u0430\u0431"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0443\u043c|\u044e\u043c)/,ordinal:function(x){return x+(i[x]||i[x%10]||i[x>=100?100:null])},week:{dow:1,doy:7}})}(T(5439))},2868:function(j,Y,T){!function(w){"use strict";w.defineLocale("th",{months:"\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21_\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c_\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21_\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19_\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21_\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19_\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21_\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21_\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19_\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21_\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19_\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21".split("_"),monthsShort:"\u0e21.\u0e04._\u0e01.\u0e1e._\u0e21\u0e35.\u0e04._\u0e40\u0e21.\u0e22._\u0e1e.\u0e04._\u0e21\u0e34.\u0e22._\u0e01.\u0e04._\u0e2a.\u0e04._\u0e01.\u0e22._\u0e15.\u0e04._\u0e1e.\u0e22._\u0e18.\u0e04.".split("_"),monthsParseExact:!0,weekdays:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysShort:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysMin:"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm",LLLL:"\u0e27\u0e31\u0e19dddd\u0e17\u0e35\u0e48 D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm"},meridiemParse:/\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07|\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07/,isPM:function(E){return"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"===E},meridiem:function(E,x,S){return E<12?"\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07":"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"},calendar:{sameDay:"[\u0e27\u0e31\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextDay:"[\u0e1e\u0e23\u0e38\u0e48\u0e07\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextWeek:"dddd[\u0e2b\u0e19\u0e49\u0e32 \u0e40\u0e27\u0e25\u0e32] LT",lastDay:"[\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e27\u0e32\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",lastWeek:"[\u0e27\u0e31\u0e19]dddd[\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27 \u0e40\u0e27\u0e25\u0e32] LT",sameElse:"L"},relativeTime:{future:"\u0e2d\u0e35\u0e01 %s",past:"%s\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27",s:"\u0e44\u0e21\u0e48\u0e01\u0e35\u0e48\u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",ss:"%d \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",m:"1 \u0e19\u0e32\u0e17\u0e35",mm:"%d \u0e19\u0e32\u0e17\u0e35",h:"1 \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",hh:"%d \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",d:"1 \u0e27\u0e31\u0e19",dd:"%d \u0e27\u0e31\u0e19",w:"1 \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",ww:"%d \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",M:"1 \u0e40\u0e14\u0e37\u0e2d\u0e19",MM:"%d \u0e40\u0e14\u0e37\u0e2d\u0e19",y:"1 \u0e1b\u0e35",yy:"%d \u0e1b\u0e35"}})}(T(5439))},1310:function(j,Y,T){!function(w){"use strict";var i={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'\xfcnji",4:"'\xfcnji",100:"'\xfcnji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"};w.defineLocale("tk",{months:"\xddanwar_Fewral_Mart_Aprel_Ma\xfd_I\xfdun_I\xfdul_Awgust_Sent\xfdabr_Okt\xfdabr_No\xfdabr_Dekabr".split("_"),monthsShort:"\xddan_Few_Mar_Apr_Ma\xfd_I\xfdn_I\xfdl_Awg_Sen_Okt_No\xfd_Dek".split("_"),weekdays:"\xddek\u015fenbe_Du\u015fenbe_Si\u015fenbe_\xc7ar\u015fenbe_Pen\u015fenbe_Anna_\u015eenbe".split("_"),weekdaysShort:"\xddek_Du\u015f_Si\u015f_\xc7ar_Pen_Ann_\u015een".split("_"),weekdaysMin:"\xddk_D\u015f_S\u015f_\xc7r_Pn_An_\u015en".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[d\xfc\xfdn] LT",lastWeek:"[ge\xe7en] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s so\u0148",past:"%s \xf6\u0148",s:"birn\xe4\xe7e sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir a\xfd",MM:"%d a\xfd",y:"bir \xfdyl",yy:"%d \xfdyl"},ordinal:function(x,S){switch(S){case"d":case"D":case"Do":case"DD":return x;default:if(0===x)return x+"'unjy";var P=x%10;return x+(i[P]||i[x%100-P]||i[x>=100?100:null])}},week:{dow:1,doy:7}})}(T(5439))},2360:function(j,Y,T){!function(w){"use strict";w.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(E){return E},week:{dow:1,doy:4}})}(T(5439))},6645:function(j,Y,T){!function(w){"use strict";var i="pagh_wa\u2019_cha\u2019_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function S(F,q,J,Q){var ne=function P(F){var q=Math.floor(F%1e3/100),J=Math.floor(F%100/10),Q=F%10,ne="";return q>0&&(ne+=i[q]+"vatlh"),J>0&&(ne+=(""!==ne?" ":"")+i[J]+"maH"),Q>0&&(ne+=(""!==ne?" ":"")+i[Q]),""===ne?"pagh":ne}(F);switch(J){case"ss":return ne+" lup";case"mm":return ne+" tup";case"hh":return ne+" rep";case"dd":return ne+" jaj";case"MM":return ne+" jar";case"yy":return ne+" DIS"}}w.defineLocale("tlh",{months:"tera\u2019 jar wa\u2019_tera\u2019 jar cha\u2019_tera\u2019 jar wej_tera\u2019 jar loS_tera\u2019 jar vagh_tera\u2019 jar jav_tera\u2019 jar Soch_tera\u2019 jar chorgh_tera\u2019 jar Hut_tera\u2019 jar wa\u2019maH_tera\u2019 jar wa\u2019maH wa\u2019_tera\u2019 jar wa\u2019maH cha\u2019".split("_"),monthsShort:"jar wa\u2019_jar cha\u2019_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa\u2019maH_jar wa\u2019maH wa\u2019_jar wa\u2019maH cha\u2019".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa\u2019leS] LT",nextWeek:"LLL",lastDay:"[wa\u2019Hu\u2019] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function E(F){var q=F;return-1!==F.indexOf("jaj")?q.slice(0,-3)+"leS":-1!==F.indexOf("jar")?q.slice(0,-3)+"waQ":-1!==F.indexOf("DIS")?q.slice(0,-3)+"nem":q+" pIq"},past:function x(F){var q=F;return-1!==F.indexOf("jaj")?q.slice(0,-3)+"Hu\u2019":-1!==F.indexOf("jar")?q.slice(0,-3)+"wen":-1!==F.indexOf("DIS")?q.slice(0,-3)+"ben":q+" ret"},s:"puS lup",ss:S,m:"wa\u2019 tup",mm:S,h:"wa\u2019 rep",hh:S,d:"wa\u2019 jaj",dd:S,M:"wa\u2019 jar",MM:S,y:"wa\u2019 DIS",yy:S},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(T(5439))},8374:function(j,Y,T){!function(w){"use strict";var i={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'\xfcnc\xfc",4:"'\xfcnc\xfc",100:"'\xfcnc\xfc",6:"'nc\u0131",9:"'uncu",10:"'uncu",30:"'uncu",60:"'\u0131nc\u0131",90:"'\u0131nc\u0131"};w.defineLocale("tr",{months:"Ocak_\u015eubat_Mart_Nisan_May\u0131s_Haziran_Temmuz_A\u011fustos_Eyl\xfcl_Ekim_Kas\u0131m_Aral\u0131k".split("_"),monthsShort:"Oca_\u015eub_Mar_Nis_May_Haz_Tem_A\u011fu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Sal\u0131_\xc7ar\u015famba_Per\u015fembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pzt_Sal_\xc7ar_Per_Cum_Cmt".split("_"),weekdaysMin:"Pz_Pt_Sa_\xc7a_Pe_Cu_Ct".split("_"),meridiem:function(x,S,P){return x<12?P?"\xf6\xf6":"\xd6\xd6":P?"\xf6s":"\xd6S"},meridiemParse:/\xf6\xf6|\xd6\xd6|\xf6s|\xd6S/,isPM:function(x){return"\xf6s"===x||"\xd6S"===x},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[yar\u0131n saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[d\xfcn] LT",lastWeek:"[ge\xe7en] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \xf6nce",s:"birka\xe7 saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir y\u0131l",yy:"%d y\u0131l"},ordinal:function(x,S){switch(S){case"d":case"D":case"Do":case"DD":return x;default:if(0===x)return x+"'\u0131nc\u0131";var P=x%10;return x+(i[P]||i[x%100-P]||i[x>=100?100:null])}},week:{dow:1,doy:7}})}(T(5439))},256:function(j,Y,T){!function(w){"use strict";function E(x,S,P,k){var F={s:["viensas secunds","'iensas secunds"],ss:[x+" secunds",x+" secunds"],m:["'n m\xedut","'iens m\xedut"],mm:[x+" m\xeduts",x+" m\xeduts"],h:["'n \xfeora","'iensa \xfeora"],hh:[x+" \xfeoras",x+" \xfeoras"],d:["'n ziua","'iensa ziua"],dd:[x+" ziuas",x+" ziuas"],M:["'n mes","'iens mes"],MM:[x+" mesen",x+" mesen"],y:["'n ar","'iens ar"],yy:[x+" ars",x+" ars"]};return k||S?F[P][0]:F[P][1]}w.defineLocale("tzl",{months:"Januar_Fevraglh_Mar\xe7_Avr\xefu_Mai_G\xfcn_Julia_Guscht_Setemvar_Listop\xe4ts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_G\xfcn_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"S\xfaladi_L\xfane\xe7i_Maitzi_M\xe1rcuri_Xh\xfaadi_Vi\xe9ner\xe7i_S\xe1turi".split("_"),weekdaysShort:"S\xfal_L\xfan_Mai_M\xe1r_Xh\xfa_Vi\xe9_S\xe1t".split("_"),weekdaysMin:"S\xfa_L\xfa_Ma_M\xe1_Xh_Vi_S\xe1".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(x){return"d'o"===x.toLowerCase()},meridiem:function(x,S,P){return x>11?P?"d'o":"D'O":P?"d'a":"D'A"},calendar:{sameDay:"[oxhi \xe0] LT",nextDay:"[dem\xe0 \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[ieiri \xe0] LT",lastWeek:"[s\xfcr el] dddd [lasteu \xe0] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:E,ss:E,m:E,mm:E,h:E,hh:E,d:E,dd:E,M:E,MM:E,y:E,yy:E},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(T(5439))},1631:function(j,Y,T){!function(w){"use strict";w.defineLocale("tzm-latn",{months:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minu\u1e0d",mm:"%d minu\u1e0d",h:"sa\u025ba",hh:"%d tassa\u025bin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(T(5439))},1595:function(j,Y,T){!function(w){"use strict";w.defineLocale("tzm",{months:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),monthsShort:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),weekdays:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysShort:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysMin:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u2d30\u2d59\u2d37\u2d45 \u2d34] LT",nextDay:"[\u2d30\u2d59\u2d3d\u2d30 \u2d34] LT",nextWeek:"dddd [\u2d34] LT",lastDay:"[\u2d30\u2d5a\u2d30\u2d4f\u2d5c \u2d34] LT",lastWeek:"dddd [\u2d34] LT",sameElse:"L"},relativeTime:{future:"\u2d37\u2d30\u2d37\u2d45 \u2d59 \u2d62\u2d30\u2d4f %s",past:"\u2d62\u2d30\u2d4f %s",s:"\u2d49\u2d4e\u2d49\u2d3d",ss:"%d \u2d49\u2d4e\u2d49\u2d3d",m:"\u2d4e\u2d49\u2d4f\u2d53\u2d3a",mm:"%d \u2d4e\u2d49\u2d4f\u2d53\u2d3a",h:"\u2d59\u2d30\u2d44\u2d30",hh:"%d \u2d5c\u2d30\u2d59\u2d59\u2d30\u2d44\u2d49\u2d4f",d:"\u2d30\u2d59\u2d59",dd:"%d o\u2d59\u2d59\u2d30\u2d4f",M:"\u2d30\u2d62o\u2d53\u2d54",MM:"%d \u2d49\u2d62\u2d62\u2d49\u2d54\u2d4f",y:"\u2d30\u2d59\u2d33\u2d30\u2d59",yy:"%d \u2d49\u2d59\u2d33\u2d30\u2d59\u2d4f"},week:{dow:6,doy:12}})}(T(5439))},6050:function(j,Y,T){!function(w){"use strict";w.defineLocale("ug-cn",{months:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),monthsShort:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),weekdays:"\u064a\u06d5\u0643\u0634\u06d5\u0646\u0628\u06d5_\u062f\u06c8\u0634\u06d5\u0646\u0628\u06d5_\u0633\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u0686\u0627\u0631\u0634\u06d5\u0646\u0628\u06d5_\u067e\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u062c\u06c8\u0645\u06d5_\u0634\u06d5\u0646\u0628\u06d5".split("_"),weekdaysShort:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),weekdaysMin:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649",LLL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm",LLLL:"dddd\u060c YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm"},meridiemParse:/\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5|\u0633\u06d5\u06be\u06d5\u0631|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646|\u0686\u06c8\u0634|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646|\u0643\u06d5\u0686/,meridiemHour:function(E,x){return 12===E&&(E=0),"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5"===x||"\u0633\u06d5\u06be\u06d5\u0631"===x||"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646"===x?E:"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646"===x||"\u0643\u06d5\u0686"===x?E+12:E>=11?E:E+12},meridiem:function(E,x,S){var P=100*E+x;return P<600?"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5":P<900?"\u0633\u06d5\u06be\u06d5\u0631":P<1130?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646":P<1230?"\u0686\u06c8\u0634":P<1800?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646":"\u0643\u06d5\u0686"},calendar:{sameDay:"[\u0628\u06c8\u06af\u06c8\u0646 \u0633\u0627\u0626\u06d5\u062a] LT",nextDay:"[\u0626\u06d5\u062a\u06d5 \u0633\u0627\u0626\u06d5\u062a] LT",nextWeek:"[\u0643\u06d0\u0644\u06d5\u0631\u0643\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",lastDay:"[\u062a\u06c6\u0646\u06c8\u06af\u06c8\u0646] LT",lastWeek:"[\u0626\u0627\u0644\u062f\u0649\u0646\u0642\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0643\u06d0\u064a\u0649\u0646",past:"%s \u0628\u06c7\u0631\u06c7\u0646",s:"\u0646\u06d5\u0686\u0686\u06d5 \u0633\u06d0\u0643\u0648\u0646\u062a",ss:"%d \u0633\u06d0\u0643\u0648\u0646\u062a",m:"\u0628\u0649\u0631 \u0645\u0649\u0646\u06c7\u062a",mm:"%d \u0645\u0649\u0646\u06c7\u062a",h:"\u0628\u0649\u0631 \u0633\u0627\u0626\u06d5\u062a",hh:"%d \u0633\u0627\u0626\u06d5\u062a",d:"\u0628\u0649\u0631 \u0643\u06c8\u0646",dd:"%d \u0643\u06c8\u0646",M:"\u0628\u0649\u0631 \u0626\u0627\u064a",MM:"%d \u0626\u0627\u064a",y:"\u0628\u0649\u0631 \u064a\u0649\u0644",yy:"%d \u064a\u0649\u0644"},dayOfMonthOrdinalParse:/\d{1,2}(-\u0643\u06c8\u0646\u0649|-\u0626\u0627\u064a|-\u06be\u06d5\u067e\u062a\u06d5)/,ordinal:function(E,x){switch(x){case"d":case"D":case"DDD":return E+"-\u0643\u06c8\u0646\u0649";case"w":case"W":return E+"-\u06be\u06d5\u067e\u062a\u06d5";default:return E}},preparse:function(E){return E.replace(/\u060c/g,",")},postformat:function(E){return E.replace(/,/g,"\u060c")},week:{dow:1,doy:7}})}(T(5439))},5610:function(j,Y,T){!function(w){"use strict";function E(k,F,q){return"m"===q?F?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443":"h"===q?F?"\u0433\u043e\u0434\u0438\u043d\u0430":"\u0433\u043e\u0434\u0438\u043d\u0443":k+" "+function i(k,F){var q=k.split("_");return F%10==1&&F%100!=11?q[0]:F%10>=2&&F%10<=4&&(F%100<10||F%100>=20)?q[1]:q[2]}({ss:F?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434",mm:F?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d",hh:F?"\u0433\u043e\u0434\u0438\u043d\u0430_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d":"\u0433\u043e\u0434\u0438\u043d\u0443_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u043d\u0456\u0432",MM:"\u043c\u0456\u0441\u044f\u0446\u044c_\u043c\u0456\u0441\u044f\u0446\u0456_\u043c\u0456\u0441\u044f\u0446\u0456\u0432",yy:"\u0440\u0456\u043a_\u0440\u043e\u043a\u0438_\u0440\u043e\u043a\u0456\u0432"}[q],+k)}function S(k){return function(){return k+"\u043e"+(11===this.hours()?"\u0431":"")+"] LT"}}w.defineLocale("uk",{months:{format:"\u0441\u0456\u0447\u043d\u044f_\u043b\u044e\u0442\u043e\u0433\u043e_\u0431\u0435\u0440\u0435\u0437\u043d\u044f_\u043a\u0432\u0456\u0442\u043d\u044f_\u0442\u0440\u0430\u0432\u043d\u044f_\u0447\u0435\u0440\u0432\u043d\u044f_\u043b\u0438\u043f\u043d\u044f_\u0441\u0435\u0440\u043f\u043d\u044f_\u0432\u0435\u0440\u0435\u0441\u043d\u044f_\u0436\u043e\u0432\u0442\u043d\u044f_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434\u0430_\u0433\u0440\u0443\u0434\u043d\u044f".split("_"),standalone:"\u0441\u0456\u0447\u0435\u043d\u044c_\u043b\u044e\u0442\u0438\u0439_\u0431\u0435\u0440\u0435\u0437\u0435\u043d\u044c_\u043a\u0432\u0456\u0442\u0435\u043d\u044c_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u0435\u0440\u0432\u0435\u043d\u044c_\u043b\u0438\u043f\u0435\u043d\u044c_\u0441\u0435\u0440\u043f\u0435\u043d\u044c_\u0432\u0435\u0440\u0435\u0441\u0435\u043d\u044c_\u0436\u043e\u0432\u0442\u0435\u043d\u044c_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434_\u0433\u0440\u0443\u0434\u0435\u043d\u044c".split("_")},monthsShort:"\u0441\u0456\u0447_\u043b\u044e\u0442_\u0431\u0435\u0440_\u043a\u0432\u0456\u0442_\u0442\u0440\u0430\u0432_\u0447\u0435\u0440\u0432_\u043b\u0438\u043f_\u0441\u0435\u0440\u043f_\u0432\u0435\u0440_\u0436\u043e\u0432\u0442_\u043b\u0438\u0441\u0442_\u0433\u0440\u0443\u0434".split("_"),weekdays:function x(k,F){var q={nominative:"\u043d\u0435\u0434\u0456\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044f_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),accusative:"\u043d\u0435\u0434\u0456\u043b\u044e_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044e_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),genitive:"\u043d\u0435\u0434\u0456\u043b\u0456_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043a\u0430_\u0432\u0456\u0432\u0442\u043e\u0440\u043a\u0430_\u0441\u0435\u0440\u0435\u0434\u0438_\u0447\u0435\u0442\u0432\u0435\u0440\u0433\u0430_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u0456_\u0441\u0443\u0431\u043e\u0442\u0438".split("_")};return!0===k?q.nominative.slice(1,7).concat(q.nominative.slice(0,1)):k?q[/(\[[\u0412\u0432\u0423\u0443]\]) ?dddd/.test(F)?"accusative":/\[?(?:\u043c\u0438\u043d\u0443\u043b\u043e\u0457|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0457)? ?\] ?dddd/.test(F)?"genitive":"nominative"][k.day()]:q.nominative},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0440.",LLL:"D MMMM YYYY \u0440., HH:mm",LLLL:"dddd, D MMMM YYYY \u0440., HH:mm"},calendar:{sameDay:S("[\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456 "),nextDay:S("[\u0417\u0430\u0432\u0442\u0440\u0430 "),lastDay:S("[\u0412\u0447\u043e\u0440\u0430 "),nextWeek:S("[\u0423] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return S("[\u041c\u0438\u043d\u0443\u043b\u043e\u0457] dddd [").call(this);case 1:case 2:case 4:return S("[\u041c\u0438\u043d\u0443\u043b\u043e\u0433\u043e] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"%s \u0442\u043e\u043c\u0443",s:"\u0434\u0435\u043a\u0456\u043b\u044c\u043a\u0430 \u0441\u0435\u043a\u0443\u043d\u0434",ss:E,m:E,mm:E,h:"\u0433\u043e\u0434\u0438\u043d\u0443",hh:E,d:"\u0434\u0435\u043d\u044c",dd:E,M:"\u043c\u0456\u0441\u044f\u0446\u044c",MM:E,y:"\u0440\u0456\u043a",yy:E},meridiemParse:/\u043d\u043e\u0447\u0456|\u0440\u0430\u043d\u043a\u0443|\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430/,isPM:function(k){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430)$/.test(k)},meridiem:function(k,F,q){return k<4?"\u043d\u043e\u0447\u0456":k<12?"\u0440\u0430\u043d\u043a\u0443":k<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u043e\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e)/,ordinal:function(k,F){switch(F){case"M":case"d":case"DDD":case"w":case"W":return k+"-\u0439";case"D":return k+"-\u0433\u043e";default:return k}},week:{dow:1,doy:7}})}(T(5439))},6077:function(j,Y,T){!function(w){"use strict";var i=["\u062c\u0646\u0648\u0631\u06cc","\u0641\u0631\u0648\u0631\u06cc","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u06cc\u0644","\u0645\u0626\u06cc","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0626\u06cc","\u0627\u06af\u0633\u062a","\u0633\u062a\u0645\u0628\u0631","\u0627\u06a9\u062a\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u062f\u0633\u0645\u0628\u0631"],E=["\u0627\u062a\u0648\u0627\u0631","\u067e\u06cc\u0631","\u0645\u0646\u06af\u0644","\u0628\u062f\u06be","\u062c\u0645\u0639\u0631\u0627\u062a","\u062c\u0645\u0639\u06c1","\u06c1\u0641\u062a\u06c1"];w.defineLocale("ur",{months:i,monthsShort:i,weekdays:E,weekdaysShort:E,weekdaysMin:E,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(S){return"\u0634\u0627\u0645"===S},meridiem:function(S,P,k){return S<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0622\u062c \u0628\u0648\u0642\u062a] LT",nextDay:"[\u06a9\u0644 \u0628\u0648\u0642\u062a] LT",nextWeek:"dddd [\u0628\u0648\u0642\u062a] LT",lastDay:"[\u06af\u0630\u0634\u062a\u06c1 \u0631\u0648\u0632 \u0628\u0648\u0642\u062a] LT",lastWeek:"[\u06af\u0630\u0634\u062a\u06c1] dddd [\u0628\u0648\u0642\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0628\u0639\u062f",past:"%s \u0642\u0628\u0644",s:"\u0686\u0646\u062f \u0633\u06cc\u06a9\u0646\u0688",ss:"%d \u0633\u06cc\u06a9\u0646\u0688",m:"\u0627\u06cc\u06a9 \u0645\u0646\u0679",mm:"%d \u0645\u0646\u0679",h:"\u0627\u06cc\u06a9 \u06af\u06be\u0646\u0679\u06c1",hh:"%d \u06af\u06be\u0646\u0679\u06d2",d:"\u0627\u06cc\u06a9 \u062f\u0646",dd:"%d \u062f\u0646",M:"\u0627\u06cc\u06a9 \u0645\u0627\u06c1",MM:"%d \u0645\u0627\u06c1",y:"\u0627\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(S){return S.replace(/\u060c/g,",")},postformat:function(S){return S.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(T(5439))},2207:function(j,Y,T){!function(w){"use strict";w.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(T(5439))},2862:function(j,Y,T){!function(w){"use strict";w.defineLocale("uz",{months:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u042f\u043a\u0448\u0430\u043d\u0431\u0430_\u0414\u0443\u0448\u0430\u043d\u0431\u0430_\u0421\u0435\u0448\u0430\u043d\u0431\u0430_\u0427\u043e\u0440\u0448\u0430\u043d\u0431\u0430_\u041f\u0430\u0439\u0448\u0430\u043d\u0431\u0430_\u0416\u0443\u043c\u0430_\u0428\u0430\u043d\u0431\u0430".split("_"),weekdaysShort:"\u042f\u043a\u0448_\u0414\u0443\u0448_\u0421\u0435\u0448_\u0427\u043e\u0440_\u041f\u0430\u0439_\u0416\u0443\u043c_\u0428\u0430\u043d".split("_"),weekdaysMin:"\u042f\u043a_\u0414\u0443_\u0421\u0435_\u0427\u043e_\u041f\u0430_\u0416\u0443_\u0428\u0430".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[\u0411\u0443\u0433\u0443\u043d \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",nextDay:"[\u042d\u0440\u0442\u0430\u0433\u0430] LT [\u0434\u0430]",nextWeek:"dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastDay:"[\u041a\u0435\u0447\u0430 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastWeek:"[\u0423\u0442\u0433\u0430\u043d] dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",sameElse:"L"},relativeTime:{future:"\u042f\u043a\u0438\u043d %s \u0438\u0447\u0438\u0434\u0430",past:"\u0411\u0438\u0440 \u043d\u0435\u0447\u0430 %s \u043e\u043b\u0434\u0438\u043d",s:"\u0444\u0443\u0440\u0441\u0430\u0442",ss:"%d \u0444\u0443\u0440\u0441\u0430\u0442",m:"\u0431\u0438\u0440 \u0434\u0430\u043a\u0438\u043a\u0430",mm:"%d \u0434\u0430\u043a\u0438\u043a\u0430",h:"\u0431\u0438\u0440 \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u0431\u0438\u0440 \u043e\u0439",MM:"%d \u043e\u0439",y:"\u0431\u0438\u0440 \u0439\u0438\u043b",yy:"%d \u0439\u0438\u043b"},week:{dow:1,doy:7}})}(T(5439))},8093:function(j,Y,T){!function(w){"use strict";w.defineLocale("vi",{months:"th\xe1ng 1_th\xe1ng 2_th\xe1ng 3_th\xe1ng 4_th\xe1ng 5_th\xe1ng 6_th\xe1ng 7_th\xe1ng 8_th\xe1ng 9_th\xe1ng 10_th\xe1ng 11_th\xe1ng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"ch\u1ee7 nh\u1eadt_th\u1ee9 hai_th\u1ee9 ba_th\u1ee9 t\u01b0_th\u1ee9 n\u0103m_th\u1ee9 s\xe1u_th\u1ee9 b\u1ea3y".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(E){return/^ch$/i.test(E)},meridiem:function(E,x,S){return E<12?S?"sa":"SA":S?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [n\u0103m] YYYY",LLL:"D MMMM [n\u0103m] YYYY HH:mm",LLLL:"dddd, D MMMM [n\u0103m] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[H\xf4m nay l\xfac] LT",nextDay:"[Ng\xe0y mai l\xfac] LT",nextWeek:"dddd [tu\u1ea7n t\u1edbi l\xfac] LT",lastDay:"[H\xf4m qua l\xfac] LT",lastWeek:"dddd [tu\u1ea7n tr\u01b0\u1edbc l\xfac] LT",sameElse:"L"},relativeTime:{future:"%s t\u1edbi",past:"%s tr\u01b0\u1edbc",s:"v\xe0i gi\xe2y",ss:"%d gi\xe2y",m:"m\u1ed9t ph\xfat",mm:"%d ph\xfat",h:"m\u1ed9t gi\u1edd",hh:"%d gi\u1edd",d:"m\u1ed9t ng\xe0y",dd:"%d ng\xe0y",w:"m\u1ed9t tu\u1ea7n",ww:"%d tu\u1ea7n",M:"m\u1ed9t th\xe1ng",MM:"%d th\xe1ng",y:"m\u1ed9t n\u0103m",yy:"%d n\u0103m"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(E){return E},week:{dow:1,doy:4}})}(T(5439))},5590:function(j,Y,T){!function(w){"use strict";w.defineLocale("x-pseudo",{months:"J~\xe1\xf1\xfa\xe1~r\xfd_F~\xe9br\xfa~\xe1r\xfd_~M\xe1rc~h_\xc1p~r\xedl_~M\xe1\xfd_~J\xfa\xf1\xe9~_J\xfal~\xfd_\xc1\xfa~g\xfast~_S\xe9p~t\xe9mb~\xe9r_\xd3~ct\xf3b~\xe9r_\xd1~\xf3v\xe9m~b\xe9r_~D\xe9c\xe9~mb\xe9r".split("_"),monthsShort:"J~\xe1\xf1_~F\xe9b_~M\xe1r_~\xc1pr_~M\xe1\xfd_~J\xfa\xf1_~J\xfal_~\xc1\xfag_~S\xe9p_~\xd3ct_~\xd1\xf3v_~D\xe9c".split("_"),monthsParseExact:!0,weekdays:"S~\xfa\xf1d\xe1~\xfd_M\xf3~\xf1d\xe1\xfd~_T\xfa\xe9~sd\xe1\xfd~_W\xe9d~\xf1\xe9sd~\xe1\xfd_T~h\xfars~d\xe1\xfd_~Fr\xedd~\xe1\xfd_S~\xe1t\xfar~d\xe1\xfd".split("_"),weekdaysShort:"S~\xfa\xf1_~M\xf3\xf1_~T\xfa\xe9_~W\xe9d_~Th\xfa_~Fr\xed_~S\xe1t".split("_"),weekdaysMin:"S~\xfa_M\xf3~_T\xfa_~W\xe9_T~h_Fr~_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~\xf3d\xe1~\xfd \xe1t] LT",nextDay:"[T~\xf3m\xf3~rr\xf3~w \xe1t] LT",nextWeek:"dddd [\xe1t] LT",lastDay:"[\xdd~\xe9st~\xe9rd\xe1~\xfd \xe1t] LT",lastWeek:"[L~\xe1st] dddd [\xe1t] LT",sameElse:"L"},relativeTime:{future:"\xed~\xf1 %s",past:"%s \xe1~g\xf3",s:"\xe1 ~f\xe9w ~s\xe9c\xf3~\xf1ds",ss:"%d s~\xe9c\xf3\xf1~ds",m:"\xe1 ~m\xed\xf1~\xfat\xe9",mm:"%d m~\xed\xf1\xfa~t\xe9s",h:"\xe1~\xf1 h\xf3~\xfar",hh:"%d h~\xf3\xfars",d:"\xe1 ~d\xe1\xfd",dd:"%d d~\xe1\xfds",M:"\xe1 ~m\xf3\xf1~th",MM:"%d m~\xf3\xf1t~hs",y:"\xe1 ~\xfd\xe9\xe1r",yy:"%d \xfd~\xe9\xe1rs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(E){var x=E%10;return E+(1==~~(E%100/10)?"th":1===x?"st":2===x?"nd":3===x?"rd":"th")},week:{dow:1,doy:4}})}(T(5439))},9058:function(j,Y,T){!function(w){"use strict";w.defineLocale("yo",{months:"S\u1eb9\u0301r\u1eb9\u0301_E\u0300re\u0300le\u0300_\u1eb8r\u1eb9\u0300na\u0300_I\u0300gbe\u0301_E\u0300bibi_O\u0300ku\u0300du_Ag\u1eb9mo_O\u0300gu\u0301n_Owewe_\u1ecc\u0300wa\u0300ra\u0300_Be\u0301lu\u0301_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),monthsShort:"S\u1eb9\u0301r_E\u0300rl_\u1eb8rn_I\u0300gb_E\u0300bi_O\u0300ku\u0300_Ag\u1eb9_O\u0300gu\u0301_Owe_\u1ecc\u0300wa\u0300_Be\u0301l_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),weekdays:"A\u0300i\u0300ku\u0301_Aje\u0301_I\u0300s\u1eb9\u0301gun_\u1eccj\u1ecd\u0301ru\u0301_\u1eccj\u1ecd\u0301b\u1ecd_\u1eb8ti\u0300_A\u0300ba\u0301m\u1eb9\u0301ta".split("_"),weekdaysShort:"A\u0300i\u0300k_Aje\u0301_I\u0300s\u1eb9\u0301_\u1eccjr_\u1eccjb_\u1eb8ti\u0300_A\u0300ba\u0301".split("_"),weekdaysMin:"A\u0300i\u0300_Aj_I\u0300s_\u1eccr_\u1eccb_\u1eb8t_A\u0300b".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[O\u0300ni\u0300 ni] LT",nextDay:"[\u1ecc\u0300la ni] LT",nextWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301n'b\u1ecd] [ni] LT",lastDay:"[A\u0300na ni] LT",lastWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301l\u1ecd\u0301] [ni] LT",sameElse:"L"},relativeTime:{future:"ni\u0301 %s",past:"%s k\u1ecdja\u0301",s:"i\u0300s\u1eb9ju\u0301 aaya\u0301 die",ss:"aaya\u0301 %d",m:"i\u0300s\u1eb9ju\u0301 kan",mm:"i\u0300s\u1eb9ju\u0301 %d",h:"wa\u0301kati kan",hh:"wa\u0301kati %d",d:"\u1ecdj\u1ecd\u0301 kan",dd:"\u1ecdj\u1ecd\u0301 %d",M:"osu\u0300 kan",MM:"osu\u0300 %d",y:"\u1ecddu\u0301n kan",yy:"\u1ecddu\u0301n %d"},dayOfMonthOrdinalParse:/\u1ecdj\u1ecd\u0301\s\d{1,2}/,ordinal:"\u1ecdj\u1ecd\u0301 %d",week:{dow:1,doy:4}})}(T(5439))},7908:function(j,Y,T){!function(w){"use strict";w.defineLocale("zh-cn",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u5468\u65e5_\u5468\u4e00_\u5468\u4e8c_\u5468\u4e09_\u5468\u56db_\u5468\u4e94_\u5468\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5Ah\u70b9mm\u5206",LLLL:"YYYY\u5e74M\u6708D\u65e5ddddAh\u70b9mm\u5206",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(E,x){return 12===E&&(E=0),"\u51cc\u6668"===x||"\u65e9\u4e0a"===x||"\u4e0a\u5348"===x?E:"\u4e0b\u5348"===x||"\u665a\u4e0a"===x?E+12:E>=11?E:E+12},meridiem:function(E,x,S){var P=100*E+x;return P<600?"\u51cc\u6668":P<900?"\u65e9\u4e0a":P<1130?"\u4e0a\u5348":P<1230?"\u4e2d\u5348":P<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:function(E){return E.week()!==this.week()?"[\u4e0b]dddLT":"[\u672c]dddLT"},lastDay:"[\u6628\u5929]LT",lastWeek:function(E){return this.week()!==E.week()?"[\u4e0a]dddLT":"[\u672c]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u5468)/,ordinal:function(E,x){switch(x){case"d":case"D":case"DDD":return E+"\u65e5";case"M":return E+"\u6708";case"w":case"W":return E+"\u5468";default:return E}},relativeTime:{future:"%s\u540e",past:"%s\u524d",s:"\u51e0\u79d2",ss:"%d \u79d2",m:"1 \u5206\u949f",mm:"%d \u5206\u949f",h:"1 \u5c0f\u65f6",hh:"%d \u5c0f\u65f6",d:"1 \u5929",dd:"%d \u5929",w:"1 \u5468",ww:"%d \u5468",M:"1 \u4e2a\u6708",MM:"%d \u4e2a\u6708",y:"1 \u5e74",yy:"%d \u5e74"},week:{dow:1,doy:4}})}(T(5439))},8867:function(j,Y,T){!function(w){"use strict";w.defineLocale("zh-hk",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(E,x){return 12===E&&(E=0),"\u51cc\u6668"===x||"\u65e9\u4e0a"===x||"\u4e0a\u5348"===x?E:"\u4e2d\u5348"===x?E>=11?E:E+12:"\u4e0b\u5348"===x||"\u665a\u4e0a"===x?E+12:void 0},meridiem:function(E,x,S){var P=100*E+x;return P<600?"\u51cc\u6668":P<900?"\u65e9\u4e0a":P<1200?"\u4e0a\u5348":1200===P?"\u4e2d\u5348":P<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:"[\u4e0b]ddddLT",lastDay:"[\u6628\u5929]LT",lastWeek:"[\u4e0a]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(E,x){switch(x){case"d":case"D":case"DDD":return E+"\u65e5";case"M":return E+"\u6708";case"w":case"W":return E+"\u9031";default:return E}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(T(5439))},1133:function(j,Y,T){!function(w){"use strict";w.defineLocale("zh-mo",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"D/M/YYYY",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(E,x){return 12===E&&(E=0),"\u51cc\u6668"===x||"\u65e9\u4e0a"===x||"\u4e0a\u5348"===x?E:"\u4e2d\u5348"===x?E>=11?E:E+12:"\u4e0b\u5348"===x||"\u665a\u4e0a"===x?E+12:void 0},meridiem:function(E,x,S){var P=100*E+x;return P<600?"\u51cc\u6668":P<900?"\u65e9\u4e0a":P<1130?"\u4e0a\u5348":P<1230?"\u4e2d\u5348":P<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(E,x){switch(x){case"d":case"D":case"DDD":return E+"\u65e5";case"M":return E+"\u6708";case"w":case"W":return E+"\u9031";default:return E}},relativeTime:{future:"%s\u5167",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(T(5439))},3291:function(j,Y,T){!function(w){"use strict";w.defineLocale("zh-tw",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(E,x){return 12===E&&(E=0),"\u51cc\u6668"===x||"\u65e9\u4e0a"===x||"\u4e0a\u5348"===x?E:"\u4e2d\u5348"===x?E>=11?E:E+12:"\u4e0b\u5348"===x||"\u665a\u4e0a"===x?E+12:void 0},meridiem:function(E,x,S){var P=100*E+x;return P<600?"\u51cc\u6668":P<900?"\u65e9\u4e0a":P<1130?"\u4e0a\u5348":P<1230?"\u4e2d\u5348":P<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(E,x){switch(x){case"d":case"D":case"DDD":return E+"\u65e5";case"M":return E+"\u6708";case"w":case"W":return E+"\u9031";default:return E}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(T(5439))},5439:function(j,Y,T){(j=T.nmd(j)).exports=function(){"use strict";var w,ge;function i(){return w.apply(null,arguments)}function x(v){return v instanceof Array||"[object Array]"===Object.prototype.toString.call(v)}function S(v){return null!=v&&"[object Object]"===Object.prototype.toString.call(v)}function P(v,H){return Object.prototype.hasOwnProperty.call(v,H)}function k(v){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(v).length;var H;for(H in v)if(P(v,H))return!1;return!0}function F(v){return void 0===v}function q(v){return"number"==typeof v||"[object Number]"===Object.prototype.toString.call(v)}function J(v){return v instanceof Date||"[object Date]"===Object.prototype.toString.call(v)}function Q(v,H){var z,O=[],$=v.length;for(z=0;z<$;++z)O.push(H(v[z],z));return O}function ne(v,H){for(var O in H)P(H,O)&&(v[O]=H[O]);return P(H,"toString")&&(v.toString=H.toString),P(H,"valueOf")&&(v.valueOf=H.valueOf),v}function le(v,H,O,z){return kr(v,H,O,z,!0).utc()}function ie(v){return null==v._pf&&(v._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),v._pf}function Ae(v){if(null==v._isValid){var H=ie(v),O=ge.call(H.parsedDateParts,function($){return null!=$}),z=!isNaN(v._d.getTime())&&H.overflow<0&&!H.empty&&!H.invalidEra&&!H.invalidMonth&&!H.invalidWeekday&&!H.weekdayMismatch&&!H.nullInput&&!H.invalidFormat&&!H.userInvalidated&&(!H.meridiem||H.meridiem&&O);if(v._strict&&(z=z&&0===H.charsLeftOver&&0===H.unusedTokens.length&&void 0===H.bigHour),null!=Object.isFrozen&&Object.isFrozen(v))return z;v._isValid=z}return v._isValid}function Te(v){var H=le(NaN);return null!=v?ne(ie(H),v):ie(H).userInvalidated=!0,H}ge=Array.prototype.some?Array.prototype.some:function(v){var z,H=Object(this),O=H.length>>>0;for(z=0;z0)for(O=0;O=0?O?"+":"":"-")+Math.pow(10,Math.max(0,H-z.length)).toString().substr(1)+z}var ai=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Ke=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ln={},Hn={};function $e(v,H,O,z){var $=z;"string"==typeof z&&($=function(){return this[z]()}),v&&(Hn[v]=$),H&&(Hn[H[0]]=function(){return Bt($.apply(this,arguments),H[1],H[2])}),O&&(Hn[O]=function(){return this.localeData().ordinal($.apply(this,arguments),v)})}function si(v){return v.match(/\[[\s\S]/)?v.replace(/^\[|\]$/g,""):v.replace(/\\/g,"")}function Mi(v,H){return v.isValid()?(H=Ln(H,v.localeData()),ln[H]=ln[H]||function Wn(v){var O,z,H=v.match(ai);for(O=0,z=H.length;O=0&&Ke.test(v);)v=v.replace(Ke,z),Ke.lastIndex=0,O-=1;return v}var st={};function ot(v,H){var O=v.toLowerCase();st[O]=st[O+"s"]=st[H]=v}function Ut(v){return"string"==typeof v?st[v]||st[v.toLowerCase()]:void 0}function gn(v){var O,z,H={};for(z in v)P(v,z)&&(O=Ut(z))&&(H[O]=v[z]);return H}var oi={};function Xt(v,H){oi[v]=H}function se(v){return v%4==0&&v%100!=0||v%400==0}function te(v){return v<0?Math.ceil(v)||0:Math.floor(v)}function ue(v){var H=+v,O=0;return 0!==H&&isFinite(H)&&(O=te(H)),O}function Ie(v,H){return function(O){return null!=O?(Ot(this,v,O),i.updateOffset(this,H),this):yt(this,v)}}function yt(v,H){return v.isValid()?v._d["get"+(v._isUTC?"UTC":"")+H]():NaN}function Ot(v,H,O){v.isValid()&&!isNaN(O)&&("FullYear"===H&&se(v.year())&&1===v.month()&&29===v.date()?(O=ue(O),v._d["set"+(v._isUTC?"UTC":"")+H](O,v.month(),Ee(O,v.month()))):v._d["set"+(v._isUTC?"UTC":"")+H](O))}var _n,Ui=/\d/,Pt=/\d\d/,Ar=/\d{3}/,St=/\d{4}/,Yt=/[+-]?\d{6}/,vt=/\d\d?/,or=/\d\d\d\d?/,Yr=/\d\d\d\d\d\d?/,Xi=/\d{1,3}/,Wr=/\d{1,4}/,Lr=/[+-]?\d{1,6}/,yr=/\d+/,da=/[+-]?\d+/,Ad=/Z|[+-]\d\d:?\d\d/gi,Ms=/Z|[+-]\d\d(?::?\d\d)?/gi,cn=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function Ge(v,H,O){_n[v]=pe(H)?H:function(z,$){return z&&O?O:H}}function Ki(v,H){return P(_n,v)?_n[v](H._strict,H._locale):new RegExp(function et(v){return dt(v.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(H,O,z,$,ce){return O||z||$||ce}))}(v))}function dt(v){return v.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}_n={};var ui={};function xe(v,H){var O,$,z=H;for("string"==typeof v&&(v=[v]),q(H)&&(z=function(ce,Ce){Ce[H]=ue(ce)}),$=v.length,O=0;O<$;O++)ui[v[O]]=z}function _i(v,H){xe(v,function(O,z,$,ce){$._w=$._w||{},H(O,$._w,$,ce)})}function bi(v,H,O){null!=H&&P(ui,v)&&ui[v](H,O._a,O,v)}var ct;function Ee(v,H){if(isNaN(v)||isNaN(H))return NaN;var O=function Di(v,H){return(v%H+H)%H}(H,12);return v+=(H-O)/12,1===O?se(v)?29:28:31-O%7%2}ct=Array.prototype.indexOf?Array.prototype.indexOf:function(v){var H;for(H=0;H68?1900:2e3)};var Zr=Ie("FullYear",!0);function Zn(v,H,O,z,$,ce,Ce){var pt;return v<100&&v>=0?(pt=new Date(v+400,H,O,z,$,ce,Ce),isFinite(pt.getFullYear())&&pt.setFullYear(v)):pt=new Date(v,H,O,z,$,ce,Ce),pt}function fa(v){var H,O;return v<100&&v>=0?((O=Array.prototype.slice.call(arguments))[0]=v+400,H=new Date(Date.UTC.apply(null,O)),isFinite(H.getUTCFullYear())&&H.setUTCFullYear(v)):H=new Date(Date.UTC.apply(null,arguments)),H}function lo(v,H,O){var z=7+H-O;return-(7+fa(v,0,z).getUTCDay()-H)%7+z-1}function ws(v,H,O,z,$){var Nt,gi,pt=1+7*(H-1)+(7+O-z)%7+lo(v,z,$);return pt<=0?gi=lr(Nt=v-1)+pt:pt>lr(v)?(Nt=v+1,gi=pt-lr(v)):(Nt=v,gi=pt),{year:Nt,dayOfYear:gi}}function ma(v,H,O){var ce,Ce,z=lo(v.year(),H,O),$=Math.floor((v.dayOfYear()-z-1)/7)+1;return $<1?ce=$+cr(Ce=v.year()-1,H,O):$>cr(v.year(),H,O)?(ce=$-cr(v.year(),H,O),Ce=v.year()+1):(Ce=v.year(),ce=$),{week:ce,year:Ce}}function cr(v,H,O){var z=lo(v,H,O),$=lo(v+1,H,O);return(lr(v)-z+$)/7}$e("w",["ww",2],"wo","week"),$e("W",["WW",2],"Wo","isoWeek"),ot("week","w"),ot("isoWeek","W"),Xt("week",5),Xt("isoWeek",5),Ge("w",vt),Ge("ww",vt,Pt),Ge("W",vt),Ge("WW",vt,Pt),_i(["w","ww","W","WW"],function(v,H,O,z){H[z.substr(0,1)]=ue(v)});function yd(v,H){return v.slice(H,7).concat(v.slice(0,H))}$e("d",0,"do","day"),$e("dd",0,0,function(v){return this.localeData().weekdaysMin(this,v)}),$e("ddd",0,0,function(v){return this.localeData().weekdaysShort(this,v)}),$e("dddd",0,0,function(v){return this.localeData().weekdays(this,v)}),$e("e",0,0,"weekday"),$e("E",0,0,"isoWeekday"),ot("day","d"),ot("weekday","e"),ot("isoWeekday","E"),Xt("day",11),Xt("weekday",11),Xt("isoWeekday",11),Ge("d",vt),Ge("e",vt),Ge("E",vt),Ge("dd",function(v,H){return H.weekdaysMinRegex(v)}),Ge("ddd",function(v,H){return H.weekdaysShortRegex(v)}),Ge("dddd",function(v,H){return H.weekdaysRegex(v)}),_i(["dd","ddd","dddd"],function(v,H,O,z){var $=O._locale.weekdaysParse(v,z,O._strict);null!=$?H.d=$:ie(O).invalidWeekday=v}),_i(["d","e","E"],function(v,H,O,z){H[z]=ue(v)});var Et="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),ji="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Md="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Cs=cn,el=cn,vs=cn;function ga(v,H,O){var z,$,ce,Ce=v.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],z=0;z<7;++z)ce=le([2e3,1]).day(z),this._minWeekdaysParse[z]=this.weekdaysMin(ce,"").toLocaleLowerCase(),this._shortWeekdaysParse[z]=this.weekdaysShort(ce,"").toLocaleLowerCase(),this._weekdaysParse[z]=this.weekdays(ce,"").toLocaleLowerCase();return O?"dddd"===H?-1!==($=ct.call(this._weekdaysParse,Ce))?$:null:"ddd"===H?-1!==($=ct.call(this._shortWeekdaysParse,Ce))?$:null:-1!==($=ct.call(this._minWeekdaysParse,Ce))?$:null:"dddd"===H?-1!==($=ct.call(this._weekdaysParse,Ce))||-1!==($=ct.call(this._shortWeekdaysParse,Ce))||-1!==($=ct.call(this._minWeekdaysParse,Ce))?$:null:"ddd"===H?-1!==($=ct.call(this._shortWeekdaysParse,Ce))||-1!==($=ct.call(this._weekdaysParse,Ce))||-1!==($=ct.call(this._minWeekdaysParse,Ce))?$:null:-1!==($=ct.call(this._minWeekdaysParse,Ce))||-1!==($=ct.call(this._weekdaysParse,Ce))||-1!==($=ct.call(this._shortWeekdaysParse,Ce))?$:null}function tl(){function v(rn,Fr){return Fr.length-rn.length}var ce,Ce,pt,Nt,gi,H=[],O=[],z=[],$=[];for(ce=0;ce<7;ce++)Ce=le([2e3,1]).day(ce),pt=dt(this.weekdaysMin(Ce,"")),Nt=dt(this.weekdaysShort(Ce,"")),gi=dt(this.weekdays(Ce,"")),H.push(pt),O.push(Nt),z.push(gi),$.push(pt),$.push(Nt),$.push(gi);H.sort(v),O.sort(v),z.sort(v),$.sort(v),this._weekdaysRegex=new RegExp("^("+$.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+z.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+O.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+H.join("|")+")","i")}function fo(){return this.hours()%12||12}function ei(v,H){$e(v,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),H)})}function ja(v,H){return H._meridiemParse}$e("H",["HH",2],0,"hour"),$e("h",["hh",2],0,fo),$e("k",["kk",2],0,function Cd(){return this.hours()||24}),$e("hmm",0,0,function(){return""+fo.apply(this)+Bt(this.minutes(),2)}),$e("hmmss",0,0,function(){return""+fo.apply(this)+Bt(this.minutes(),2)+Bt(this.seconds(),2)}),$e("Hmm",0,0,function(){return""+this.hours()+Bt(this.minutes(),2)}),$e("Hmmss",0,0,function(){return""+this.hours()+Bt(this.minutes(),2)+Bt(this.seconds(),2)}),ei("a",!0),ei("A",!1),ot("hour","h"),Xt("hour",13),Ge("a",ja),Ge("A",ja),Ge("H",vt),Ge("h",vt),Ge("k",vt),Ge("HH",vt,Pt),Ge("hh",vt,Pt),Ge("kk",vt,Pt),Ge("hmm",or),Ge("hmmss",Yr),Ge("Hmm",or),Ge("Hmmss",Yr),xe(["H","HH"],3),xe(["k","kk"],function(v,H,O){var z=ue(v);H[3]=24===z?0:z}),xe(["a","A"],function(v,H,O){O._isPm=O._locale.isPM(v),O._meridiem=v}),xe(["h","hh"],function(v,H,O){H[3]=ue(v),ie(O).bigHour=!0}),xe("hmm",function(v,H,O){var z=v.length-2;H[3]=ue(v.substr(0,z)),H[4]=ue(v.substr(z)),ie(O).bigHour=!0}),xe("hmmss",function(v,H,O){var z=v.length-4,$=v.length-2;H[3]=ue(v.substr(0,z)),H[4]=ue(v.substr(z,2)),H[5]=ue(v.substr($)),ie(O).bigHour=!0}),xe("Hmm",function(v,H,O){var z=v.length-2;H[3]=ue(v.substr(0,z)),H[4]=ue(v.substr(z))}),xe("Hmmss",function(v,H,O){var z=v.length-4,$=v.length-2;H[3]=ue(v.substr(0,z)),H[4]=ue(v.substr(z,2)),H[5]=ue(v.substr($))});var Qu=Ie("Hours",!0);var _a,en={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Gn,monthsShort:Ur,week:{dow:0,doy:6},weekdays:Et,weekdaysMin:Md,weekdaysShort:ji,meridiemParse:/[ap]\.?m?\.?/i},ki={},oc={};function dr(v,H){var O,z=Math.min(v.length,H.length);for(O=0;O0;){if($=Pn(ce.slice(0,O).join("-")))return $;if(z&&z.length>=O&&dr(ce,z)>=O-1)break;O--}H++}return _a}(v)}function we(v){var H,O=v._a;return O&&-2===ie(v).overflow&&(H=O[1]<0||O[1]>11?1:O[2]<1||O[2]>Ee(O[0],O[1])?2:O[3]<0||O[3]>24||24===O[3]&&(0!==O[4]||0!==O[5]||0!==O[6])?3:O[4]<0||O[4]>59?4:O[5]<0||O[5]>59?5:O[6]<0||O[6]>999?6:-1,ie(v)._overflowDayOfYear&&(H<0||H>2)&&(H=2),ie(v)._overflowWeeks&&-1===H&&(H=7),ie(v)._overflowWeekday&&-1===H&&(H=8),ie(v).overflow=H),v}var _e=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,lt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Oi=/Z|[+-]\d\d(?::?\d\d)?/,Ai=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],wi=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],ti=/^\/?Date\((-?\d+)/i,Tn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,it={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function tn(v){var H,O,ce,Ce,pt,Nt,z=v._i,$=_e.exec(z)||lt.exec(z),gi=Ai.length,rn=wi.length;if($){for(ie(v).iso=!0,H=0,O=gi;H7)&&(Nt=!0)):(ce=v._locale._week.dow,Ce=v._locale._week.doy,gi=ma(vi(),ce,Ce),O=$i(H.gg,v._a[0],gi.year),z=$i(H.w,gi.week),null!=H.d?(($=H.d)<0||$>6)&&(Nt=!0):null!=H.e?($=H.e+ce,(H.e<0||H.e>6)&&(Nt=!0)):$=ce),z<1||z>cr(O,ce,Ce)?ie(v)._overflowWeeks=!0:null!=Nt?ie(v)._overflowWeekday=!0:(pt=ws(O,z,$,ce,Ce),v._a[0]=pt.year,v._dayOfYear=pt.dayOfYear)}(v),null!=v._dayOfYear&&(Ce=$i(v._a[0],$[0]),(v._dayOfYear>lr(Ce)||0===v._dayOfYear)&&(ie(v)._overflowDayOfYear=!0),O=fa(Ce,0,v._dayOfYear),v._a[1]=O.getUTCMonth(),v._a[2]=O.getUTCDate()),H=0;H<3&&null==v._a[H];++H)v._a[H]=z[H]=$[H];for(;H<7;H++)v._a[H]=z[H]=v._a[H]??(2===H?1:0);24===v._a[3]&&0===v._a[4]&&0===v._a[5]&&0===v._a[6]&&(v._nextDay=!0,v._a[3]=0),v._d=(v._useUTC?fa:Zn).apply(null,z),ce=v._useUTC?v._d.getUTCDay():v._d.getDay(),null!=v._tzm&&v._d.setUTCMinutes(v._d.getUTCMinutes()-v._tzm),v._nextDay&&(v._a[3]=24),v._w&&typeof v._w.d<"u"&&v._w.d!==ce&&(ie(v).weekdayMismatch=!0)}}function dc(v){if(v._f!==i.ISO_8601)if(v._f!==i.RFC_2822){v._a=[],ie(v).empty=!0;var O,z,$,ce,Ce,gi,rn,H=""+v._i,pt=H.length,Nt=0;for(rn=($=Ln(v._f,v._locale).match(ai)||[]).length,O=0;O0&&ie(v).unusedInput.push(Ce),H=H.slice(H.indexOf(z)+z.length),Nt+=z.length),Hn[ce]?(z?ie(v).empty=!1:ie(v).unusedTokens.push(ce),bi(ce,z,v)):v._strict&&!z&&ie(v).unusedTokens.push(ce);ie(v).charsLeftOver=pt-Nt,H.length>0&&ie(v).unusedInput.push(H),v._a[3]<=12&&!0===ie(v).bigHour&&v._a[3]>0&&(ie(v).bigHour=void 0),ie(v).parsedDateParts=v._a.slice(0),ie(v).meridiem=v._meridiem,v._a[3]=function Hi(v,H,O){var z;return null==O?H:null!=v.meridiemHour?v.meridiemHour(H,O):(null!=v.isPM&&((z=v.isPM(O))&&H<12&&(H+=12),!z&&12===H&&(H=0)),H)}(v._locale,v._a[3],v._meridiem),null!==(gi=ie(v).era)&&(v._a[0]=v._locale.erasConvertYear(gi,v._a[0])),Jn(v),we(v)}else xs(v);else tn(v)}function On(v){var H=v._i,O=v._f;return v._locale=v._locale||G(v._l),null===H||void 0===O&&""===H?Te({nullInput:!0}):("string"==typeof H&&(v._i=H=v._locale.preparse(H)),He(H)?new Se(we(H)):(J(H)?v._d=H:x(O)?function kn(v){var H,O,z,$,ce,Ce,pt=!1,Nt=v._f.length;if(0===Nt)return ie(v).invalidFormat=!0,void(v._d=new Date(NaN));for($=0;$this?this:v:Te()});function Td(v,H){var O,z;if(1===H.length&&x(H[0])&&(H=H[0]),!H.length)return vi();for(O=H[0],z=1;z=0?new Date(v+400,H,O)-Mo:new Date(v,H,O).valueOf()}function Ya(v,H,O){return v<100&&v>=0?Date.UTC(v+400,H,O)-Mo:Date.UTC(v,H,O)}function ph(v,H){return H.erasAbbrRegex(v)}function fh(){var $,ce,v=[],H=[],O=[],z=[],Ce=this.eras();for($=0,ce=Ce.length;$(ce=cr(v,z,$))&&(H=ce),bl.call(this,v,H,O,z,$))}function bl(v,H,O,z,$){var ce=ws(v,H,O,z,$),Ce=fa(ce.year,0,ce.dayOfYear);return this.year(Ce.getUTCFullYear()),this.month(Ce.getUTCMonth()),this.date(Ce.getUTCDate()),this}$e("N",0,0,"eraAbbr"),$e("NN",0,0,"eraAbbr"),$e("NNN",0,0,"eraAbbr"),$e("NNNN",0,0,"eraName"),$e("NNNNN",0,0,"eraNarrow"),$e("y",["y",1],"yo","eraYear"),$e("y",["yy",2],0,"eraYear"),$e("y",["yyy",3],0,"eraYear"),$e("y",["yyyy",4],0,"eraYear"),Ge("N",ph),Ge("NN",ph),Ge("NNN",ph),Ge("NNNN",function Lg(v,H){return H.erasNameRegex(v)}),Ge("NNNNN",function _l(v,H){return H.erasNarrowRegex(v)}),xe(["N","NN","NNN","NNNN","NNNNN"],function(v,H,O,z){var $=O._locale.erasParse(v,z,O._strict);$?ie(O).era=$:ie(O).invalidEra=v}),Ge("y",yr),Ge("yy",yr),Ge("yyy",yr),Ge("yyyy",yr),Ge("yo",function Pg(v,H){return H._eraYearOrdinalRegex||yr}),xe(["y","yy","yyy","yyyy"],0),xe(["yo"],function(v,H,O,z){var $;O._locale._eraYearOrdinalRegex&&($=v.match(O._locale._eraYearOrdinalRegex)),H[0]=O._locale.eraYearOrdinalParse?O._locale.eraYearOrdinalParse(v,$):parseInt(v,10)}),$e(0,["gg",2],0,function(){return this.weekYear()%100}),$e(0,["GG",2],0,function(){return this.isoWeekYear()%100}),qi("gggg","weekYear"),qi("ggggg","weekYear"),qi("GGGG","isoWeekYear"),qi("GGGGG","isoWeekYear"),ot("weekYear","gg"),ot("isoWeekYear","GG"),Xt("weekYear",1),Xt("isoWeekYear",1),Ge("G",da),Ge("g",da),Ge("GG",vt,Pt),Ge("gg",vt,Pt),Ge("GGGG",Wr,St),Ge("gggg",Wr,St),Ge("GGGGG",Lr,Yt),Ge("ggggg",Lr,Yt),_i(["gggg","ggggg","GGGG","GGGGG"],function(v,H,O,z){H[z.substr(0,2)]=ue(v)}),_i(["gg","GG"],function(v,H,O,z){H[z]=i.parseTwoDigitYear(v)}),$e("Q",0,"Qo","quarter"),ot("quarter","Q"),Xt("quarter",7),Ge("Q",Ui),xe("Q",function(v,H){H[1]=3*(ue(v)-1)}),$e("D",["DD",2],"Do","date"),ot("date","D"),Xt("date",9),Ge("D",vt),Ge("DD",vt,Pt),Ge("Do",function(v,H){return v?H._dayOfMonthOrdinalParse||H._ordinalParse:H._dayOfMonthOrdinalParseLenient}),xe(["D","DD"],2),xe("Do",function(v,H){H[2]=ue(v.match(vt)[0])});var In=Ie("Date",!0);$e("DDD",["DDDD",3],"DDDo","dayOfYear"),ot("dayOfYear","DDD"),Xt("dayOfYear",4),Ge("DDD",Xi),Ge("DDDD",Ar),xe(["DDD","DDDD"],function(v,H,O){O._dayOfYear=ue(v)}),$e("m",["mm",2],0,"minute"),ot("minute","m"),Xt("minute",14),Ge("m",vt),Ge("mm",vt,Pt),xe(["m","mm"],4);var Af=Ie("Minutes",!1);$e("s",["ss",2],0,"second"),ot("second","s"),Xt("second",15),Ge("s",vt),Ge("ss",vt,Pt),xe(["s","ss"],5);var Wa,yl,Vd=Ie("Seconds",!1);for($e("S",0,0,function(){return~~(this.millisecond()/100)}),$e(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),$e(0,["SSS",3],0,"millisecond"),$e(0,["SSSS",4],0,function(){return 10*this.millisecond()}),$e(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),$e(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),$e(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),$e(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),$e(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),ot("millisecond","ms"),Xt("millisecond",16),Ge("S",Xi,Ui),Ge("SS",Xi,Pt),Ge("SSS",Xi,Ar),Wa="SSSS";Wa.length<=9;Wa+="S")Ge(Wa,yr);function ir(v,H){H[6]=ue(1e3*("0."+v))}for(Wa="S";Wa.length<=9;Wa+="S")xe(Wa,ir);yl=Ie("Milliseconds",!1),$e("z",0,0,"zoneAbbr"),$e("zz",0,0,"zoneName");var je=Se.prototype;function _h(v){return v}je.add=Sd,je.calendar=function ul(v,H){1===arguments.length&&(arguments[0]?yc(arguments[0])?(v=arguments[0],H=void 0):ah(arguments[0])&&(H=arguments[0],v=void 0):(v=void 0,H=void 0));var O=v||vi(),z=qn(O,this).startOf("day"),$=i.calendarFormat(this,z)||"sameElse",ce=H&&(pe(H[$])?H[$].call(this,O):H[$]);return this.format(ce||this.localeData().calendar($,this,vi(O)))},je.clone=function Ed(){return new Se(this)},je.diff=function sh(v,H,O){var z,$,ce;if(!this.isValid())return NaN;if(!(z=qn(v,this)).isValid())return NaN;switch($=6e4*(z.utcOffset()-this.utcOffset()),H=Ut(H)){case"year":ce=hl(this,z)/12;break;case"month":ce=hl(this,z);break;case"quarter":ce=hl(this,z)/3;break;case"second":ce=(this-z)/1e3;break;case"minute":ce=(this-z)/6e4;break;case"hour":ce=(this-z)/36e5;break;case"day":ce=(this-z-$)/864e5;break;case"week":ce=(this-z-$)/6048e5;break;default:ce=this-z}return O?ce:te(ce)},je.endOf=function wo(v){var H,O;if(void 0===(v=Ut(v))||"millisecond"===v||!this.isValid())return this;switch(O=this._isUTC?Ya:Od,v){case"year":H=O(this.year()+1,0,1)-1;break;case"quarter":H=O(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":H=O(this.year(),this.month()+1,1)-1;break;case"week":H=O(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":H=O(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":H=O(this.year(),this.month(),this.date()+1)-1;break;case"hour":H=this._d.valueOf(),H+=ya-Nr(H+(this._isUTC?0:this.utcOffset()*Br),ya)-1;break;case"minute":H=this._d.valueOf(),H+=Br-Nr(H,Br)-1;break;case"second":H=this._d.valueOf(),H+=1e3-Nr(H,1e3)-1}return this._d.setTime(H),i.updateOffset(this,!0),this},je.format=function qa(v){v||(v=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var H=Mi(this,v);return this.localeData().postformat(H)},je.from=function Ld(v,H){return this.isValid()&&(He(v)&&v.isValid()||vi(v).isValid())?gt({to:this,from:v}).locale(this.locale()).humanize(!H):this.localeData().invalidDate()},je.fromNow=function ba(v){return this.from(vi(),v)},je.to=function yo(v,H){return this.isValid()&&(He(v)&&v.isValid()||vi(v).isValid())?gt({from:this,to:v}).locale(this.locale()).humanize(!H):this.localeData().invalidDate()},je.toNow=function Pd(v){return this.to(vi(),v)},je.get=function tt(v){return pe(this[v=Ut(v)])?this[v]():this},je.invalidAt=function Ps(){return ie(this).overflow},je.isAfter=function Ds(v,H){var O=He(v)?v:vi(v);return!(!this.isValid()||!O.isValid())&&("millisecond"===(H=Ut(H)||"millisecond")?this.valueOf()>O.valueOf():O.valueOf()9999?Mi(O,H?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):pe(Date.prototype.toISOString)?H?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",Mi(O,"Z")):Mi(O,H?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},je.inspect=function Hd(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var O,z,v="moment",H="";return this.isLocal()||(v=0===this.utcOffset()?"moment.utc":"moment.parseZone",H="Z"),O="["+v+'("]',z=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(O+z+"-MM-DD[T]HH:mm:ss.SSS"+H+'[")]')},typeof Symbol<"u"&&null!=Symbol.for&&(je[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),je.toJSON=function ml(){return this.isValid()?this.toISOString():null},je.toString=function bf(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},je.unix=function dh(){return Math.floor(this.valueOf()/1e3)},je.valueOf=function ch(){return this._d.valueOf()-6e4*(this._offset||0)},je.creationData=function ea(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},je.eraName=function hh(){var v,H,O,z=this.localeData().eras();for(v=0,H=z.length;vthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},je.isLocal=function bc(){return!!this.isValid()&&!this._isUTC},je.isUtcOffset=function al(){return!!this.isValid()&&this._isUTC},je.isUtc=sl,je.isUTC=sl,je.zoneAbbr=function Ml(){return this._isUTC?"UTC":""},je.zoneName=function Ua(){return this._isUTC?"Coordinated Universal Time":""},je.dates=Ne("dates accessor is deprecated. Use date instead.",In),je.months=Ne("months accessor is deprecated. Use month instead",Mr),je.years=Ne("years accessor is deprecated. Use year instead",Zr),je.zone=Ne("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function _c(v,H){return null!=v?("string"!=typeof v&&(v=-v),this.utcOffset(v,H),this):-this.utcOffset()}),je.isDSTShifted=Ne("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function rl(){if(!F(this._isDSTShifted))return this._isDSTShifted;var H,v={};return Re(v,this),(v=On(v))._a?(H=v._isUTC?le(v._a):vi(v._a),this._isDSTShifted=this.isValid()&&function Ir(v,H,O){var Ce,z=Math.min(v.length,H.length),$=Math.abs(v.length-H.length),ce=0;for(Ce=0;Ce0):this._isDSTShifted=!1,this._isDSTShifted});var Zt=Me.prototype;function wl(v,H,O,z){var $=G(),ce=le().set(z,H);return $[O](ce,v)}function Fd(v,H,O){if(q(v)&&(H=v,v=void 0),v=v||"",null!=H)return wl(v,H,O,"month");var z,$=[];for(z=0;z<12;z++)$[z]=wl(v,z,O,"month");return $}function wc(v,H,O,z){"boolean"==typeof v?(q(H)&&(O=H,H=void 0),H=H||""):(O=H=v,v=!1,q(H)&&(O=H,H=void 0),H=H||"");var Ce,$=G(),ce=v?$._week.dow:0,pt=[];if(null!=O)return wl(H,(O+ce)%7,z,"day");for(Ce=0;Ce<7;Ce++)pt[Ce]=wl(H,(Ce+ce)%7,z,"day");return pt}Zt.calendar=function mt(v,H,O){var z=this._calendar[v]||this._calendar.sameElse;return pe(z)?z.call(H,O):z},Zt.longDateFormat=function vn(v){var H=this._longDateFormat[v],O=this._longDateFormat[v.toUpperCase()];return H||!O?H:(this._longDateFormat[v]=O.match(ai).map(function(z){return"MMMM"===z||"MM"===z||"DD"===z||"dddd"===z?z.slice(1):z}).join(""),this._longDateFormat[v])},Zt.invalidDate=function ca(){return this._invalidDate},Zt.ordinal=function de(v){return this._ordinal.replace("%d",v)},Zt.preparse=_h,Zt.postformat=_h,Zt.relativeTime=function be(v,H,O,z){var $=this._relativeTime[O];return pe($)?$(v,H,O,z):$.replace(/%d/i,v)},Zt.pastFuture=function Ye(v,H){var O=this._relativeTime[v>0?"future":"past"];return pe(O)?O(H):O.replace(/%s/i,H)},Zt.set=function me(v){var H,O;for(O in v)P(v,O)&&(pe(H=v[O])?this[O]=H:this["_"+O]=H);this._config=v,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Zt.eras=function gl(v,H){var O,z,$,ce=this._eras||G("en")._eras;for(O=0,z=ce.length;O=0)return ce[z]},Zt.erasConvertYear=function Id(v,H){var O=v.since<=v.until?1:-1;return void 0===H?i(v.since).year():i(v.since).year()+(H-v.offset)*O},Zt.erasAbbrRegex=function Dg(v){return P(this,"_erasAbbrRegex")||fh.call(this),v?this._erasAbbrRegex:this._erasRegex},Zt.erasNameRegex=function Eg(v){return P(this,"_erasNameRegex")||fh.call(this),v?this._erasNameRegex:this._erasRegex},Zt.erasNarrowRegex=function Hg(v){return P(this,"_erasNarrowRegex")||fh.call(this),v?this._erasNarrowRegex:this._erasRegex},Zt.months=function Pr(v,H){return v?x(this._months)?this._months[v.month()]:this._months[(this._months.isFormat||oo).test(H)?"format":"standalone"][v.month()]:x(this._months)?this._months:this._months.standalone},Zt.monthsShort=function mi(v,H){return v?x(this._monthsShort)?this._monthsShort[v.month()]:this._monthsShort[oo.test(H)?"format":"standalone"][v.month()]:x(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Zt.monthsParse=function ha(v,H,O){var z,$,ce;if(this._monthsParseExact)return Gr.call(this,v,H,O);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),z=0;z<12;z++){if($=le([2e3,z]),O&&!this._longMonthsParse[z]&&(this._longMonthsParse[z]=new RegExp("^"+this.months($,"").replace(".","")+"$","i"),this._shortMonthsParse[z]=new RegExp("^"+this.monthsShort($,"").replace(".","")+"$","i")),!O&&!this._monthsParse[z]&&(ce="^"+this.months($,"")+"|^"+this.monthsShort($,""),this._monthsParse[z]=new RegExp(ce.replace(".",""),"i")),O&&"MMMM"===H&&this._longMonthsParse[z].test(v))return z;if(O&&"MMM"===H&&this._shortMonthsParse[z].test(v))return z;if(!O&&this._monthsParse[z].test(v))return z}},Zt.monthsRegex=function bn(v){return this._monthsParseExact?(P(this,"_monthsRegex")||$n.call(this),v?this._monthsStrictRegex:this._monthsRegex):(P(this,"_monthsRegex")||(this._monthsRegex=At),this._monthsStrictRegex&&v?this._monthsStrictRegex:this._monthsRegex)},Zt.monthsShortRegex=function $r(v){return this._monthsParseExact?(P(this,"_monthsRegex")||$n.call(this),v?this._monthsShortStrictRegex:this._monthsShortRegex):(P(this,"_monthsShortRegex")||(this._monthsShortRegex=fi),this._monthsShortStrictRegex&&v?this._monthsShortStrictRegex:this._monthsShortRegex)},Zt.week=function $t(v){return ma(v,this._week.dow,this._week.doy).week},Zt.firstDayOfYear=function co(){return this._week.doy},Zt.firstDayOfWeek=function Qe(){return this._week.dow},Zt.weekdays=function $u(v,H){var O=x(this._weekdays)?this._weekdays:this._weekdays[v&&!0!==v&&this._weekdays.isFormat.test(H)?"format":"standalone"];return!0===v?yd(O,this._week.dow):v?O[v.day()]:O},Zt.weekdaysMin=function Ju(v){return!0===v?yd(this._weekdaysMin,this._week.dow):v?this._weekdaysMin[v.day()]:this._weekdaysMin},Zt.weekdaysShort=function Zu(v){return!0===v?yd(this._weekdaysShort,this._week.dow):v?this._weekdaysShort[v.day()]:this._weekdaysShort},Zt.weekdaysParse=function uo(v,H,O){var z,$,ce;if(this._weekdaysParseExact)return ga.call(this,v,H,O);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),z=0;z<7;z++){if($=le([2e3,1]).day(z),O&&!this._fullWeekdaysParse[z]&&(this._fullWeekdaysParse[z]=new RegExp("^"+this.weekdays($,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[z]=new RegExp("^"+this.weekdaysShort($,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[z]=new RegExp("^"+this.weekdaysMin($,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[z]||(ce="^"+this.weekdays($,"")+"|^"+this.weekdaysShort($,"")+"|^"+this.weekdaysMin($,""),this._weekdaysParse[z]=new RegExp(ce.replace(".",""),"i")),O&&"dddd"===H&&this._fullWeekdaysParse[z].test(v))return z;if(O&&"ddd"===H&&this._shortWeekdaysParse[z].test(v))return z;if(O&&"dd"===H&&this._minWeekdaysParse[z].test(v))return z;if(!O&&this._weekdaysParse[z].test(v))return z}},Zt.weekdaysRegex=function po(v){return this._weekdaysParseExact?(P(this,"_weekdaysRegex")||tl.call(this),v?this._weekdaysStrictRegex:this._weekdaysRegex):(P(this,"_weekdaysRegex")||(this._weekdaysRegex=Cs),this._weekdaysStrictRegex&&v?this._weekdaysStrictRegex:this._weekdaysRegex)},Zt.weekdaysShortRegex=function Ts(v){return this._weekdaysParseExact?(P(this,"_weekdaysRegex")||tl.call(this),v?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(P(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=el),this._weekdaysShortStrictRegex&&v?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Zt.weekdaysMinRegex=function Qr(v){return this._weekdaysParseExact?(P(this,"_weekdaysRegex")||tl.call(this),v?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(P(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=vs),this._weekdaysMinStrictRegex&&v?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Zt.isPM=function ac(v){return"p"===(v+"").toLowerCase().charAt(0)},Zt.meridiem=function pf(v,H,O){return v>11?O?"pm":"PM":O?"am":"AM"},I("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(v){var H=v%10;return v+(1===ue(v%100/10)?"th":1===H?"st":2===H?"nd":3===H?"rd":"th")}}),i.lang=Ne("moment.lang is deprecated. Use moment.locale instead.",I),i.langData=Ne("moment.langData is deprecated. Use moment.localeData instead.",G);var Cr=Math.abs;function zd(v,H,O,z){var $=gt(H,O);return v._milliseconds+=z*$._milliseconds,v._days+=z*$._days,v._months+=z*$._months,v._bubble()}function Cl(v){return v<0?Math.floor(v):Math.ceil(v)}function Cf(v){return 4800*v/146097}function Bi(v){return 146097*v/4800}function Vr(v){return function(){return this.as(v)}}var Rs=Vr("ms"),vr=Vr("s"),Mh=Vr("m"),wh=Vr("h"),jd=Vr("d"),Tl=Vr("w"),qd=Vr("M"),$a=Vr("Q"),vf=Vr("y");function nr(v){return function(){return this.isValid()?this._data[v]:NaN}}var vh=nr("milliseconds"),Tf=nr("seconds"),xl=nr("minutes"),ta=nr("hours"),Sl=nr("days"),xf=nr("months"),Rg=nr("years");var wa=Math.round,El={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function kg(v,H,O,z,$){return $.relativeTime(H||1,!!O,v,z)}var Wd=Math.abs;function Is(v){return(v>0)-(v<0)||+v}function Ud(){if(!this.isValid())return this.localeData().invalidDate();var z,$,ce,Ce,Nt,gi,rn,Fr,v=Wd(this._milliseconds)/1e3,H=Wd(this._days),O=Wd(this._months),pt=this.asSeconds();return pt?(z=te(v/60),$=te(z/60),v%=60,z%=60,ce=te(O/12),O%=12,Ce=v?v.toFixed(3).replace(/\.?0+$/,""):"",Nt=pt<0?"-":"",gi=Is(this._months)!==Is(pt)?"-":"",rn=Is(this._days)!==Is(pt)?"-":"",Fr=Is(this._milliseconds)!==Is(pt)?"-":"",Nt+"P"+(ce?gi+ce+"Y":"")+(O?gi+O+"M":"")+(H?rn+H+"D":"")+($||z||v?"T":"")+($?Fr+$+"H":"")+(z?Fr+z+"M":"")+(v?Fr+Ce+"S":"")):"P0D"}var Gt=Xr.prototype;return Gt.isValid=function zt(){return this._isValid},Gt.abs=function Mf(){var v=this._data;return this._milliseconds=Cr(this._milliseconds),this._days=Cr(this._days),this._months=Cr(this._months),v.milliseconds=Cr(v.milliseconds),v.seconds=Cr(v.seconds),v.minutes=Cr(v.minutes),v.hours=Cr(v.hours),v.months=Cr(v.months),v.years=Cr(v.years),this},Gt.add=function bh(v,H){return zd(this,v,H,1)},Gt.subtract=function wf(v,H){return zd(this,v,H,-1)},Gt.as=function Ah(v){if(!this.isValid())return NaN;var H,O,z=this._milliseconds;if("month"===(v=Ut(v))||"quarter"===v||"year"===v)switch(H=this._days+z/864e5,O=this._months+Cf(H),v){case"month":return O;case"quarter":return O/3;case"year":return O/12}else switch(H=this._days+Math.round(Bi(this._months)),v){case"week":return H/7+z/6048e5;case"day":return H+z/864e5;case"hour":return 24*H+z/36e5;case"minute":return 1440*H+z/6e4;case"second":return 86400*H+z/1e3;case"millisecond":return Math.floor(864e5*H)+z;default:throw new Error("Unknown unit "+v)}},Gt.asMilliseconds=Rs,Gt.asSeconds=vr,Gt.asMinutes=Mh,Gt.asHours=wh,Gt.asDays=jd,Gt.asWeeks=Tl,Gt.asMonths=qd,Gt.asQuarters=$a,Gt.asYears=vf,Gt.valueOf=function yh(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*ue(this._months/12):NaN},Gt._bubble=function vl(){var $,ce,Ce,pt,Nt,v=this._milliseconds,H=this._days,O=this._months,z=this._data;return v>=0&&H>=0&&O>=0||v<=0&&H<=0&&O<=0||(v+=864e5*Cl(Bi(O)+H),H=0,O=0),z.milliseconds=v%1e3,$=te(v/1e3),z.seconds=$%60,ce=te($/60),z.minutes=ce%60,Ce=te(ce/60),z.hours=Ce%24,H+=te(Ce/24),O+=Nt=te(Cf(H)),H-=Cl(Bi(Nt)),pt=te(O/12),O%=12,z.days=H,z.months=O,z.years=pt,this},Gt.clone=function Ch(){return gt(this)},Gt.get=function Za(v){return v=Ut(v),this.isValid()?this[v+"s"]():NaN},Gt.milliseconds=vh,Gt.seconds=Tf,Gt.minutes=xl,Gt.hours=ta,Gt.days=Sl,Gt.weeks=function Th(){return te(this.days()/7)},Gt.months=xf,Gt.years=Rg,Gt.humanize=function Os(v,H){if(!this.isValid())return this.localeData().invalidDate();var $,ce,O=!1,z=El;return"object"==typeof v&&(H=v,v=!1),"boolean"==typeof v&&(O=v),"object"==typeof H&&(z=Object.assign({},El,H),null!=H.s&&null==H.ss&&(z.ss=H.s-1)),ce=function Sf(v,H,O,z){var $=gt(v).abs(),ce=wa($.as("s")),Ce=wa($.as("m")),pt=wa($.as("h")),Nt=wa($.as("d")),gi=wa($.as("M")),rn=wa($.as("w")),Fr=wa($.as("y")),Ca=ce<=O.ss&&["s",ce]||ce0,Ca[4]=z,kg.apply(null,Ca)}(this,!O,z,$=this.localeData()),O&&(ce=$.pastFuture(+this,ce)),$.postformat(ce)},Gt.toISOString=Ud,Gt.toString=Ud,Gt.toJSON=Ud,Gt.locale=oh,Gt.localeData=kd,Gt.toIsoString=Ne("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Ud),Gt.lang=Rd,$e("X",0,0,"unix"),$e("x",0,0,"valueOf"),Ge("x",da),Ge("X",/[+-]?\d+(\.\d{1,3})?/),xe("X",function(v,H,O){O._d=new Date(1e3*parseFloat(v))}),xe("x",function(v,H,O){O._d=new Date(ue(v))}),i.version="2.29.4",function E(v){w=v}(vi),i.fn=je,i.min=function uc(){return Td("isBefore",[].slice.call(arguments,0))},i.max=function hc(){return Td("isAfter",[].slice.call(arguments,0))},i.now=function(){return Date.now?Date.now():+new Date},i.utc=le,i.unix=function To(v){return vi(1e3*v)},i.months=function Cc(v,H){return Fd(v,H,"months")},i.isDate=J,i.locale=I,i.invalid=Te,i.duration=gt,i.isMoment=He,i.weekdays=function Tc(v,H,O){return wc(v,H,O,"weekdays")},i.parseZone=function yf(){return vi.apply(null,arguments).parseZone()},i.localeData=G,i.isDuration=il,i.monthsShort=function vc(v,H){return Fd(v,H,"monthsShort")},i.weekdaysMin=function Ma(v,H,O){return wc(v,H,O,"weekdaysMin")},i.defineLocale=U,i.updateLocale=function N(v,H){if(null!=H){var O,z,$=en;null!=ki[v]&&null!=ki[v].parentLocale?ki[v].set(ve(ki[v]._config,H)):(null!=(z=Pn(v))&&($=z._config),H=ve($,H),null==z&&(H.abbr=v),(O=new Me(H)).parentLocale=ki[v],ki[v]=O),I(v)}else null!=ki[v]&&(null!=ki[v].parentLocale?(ki[v]=ki[v].parentLocale,v===I()&&I(v)):null!=ki[v]&&delete ki[v]);return ki[v]},i.locales=function ae(){return Ue(ki)},i.weekdaysShort=function Ga(v,H,O){return wc(v,H,O,"weekdaysShort")},i.normalizeUnits=Ut,i.relativeTimeRounding=function Yd(v){return void 0===v?wa:"function"==typeof v&&(wa=v,!0)},i.relativeTimeThreshold=function ks(v,H){return void 0!==El[v]&&(void 0===H?El[v]:(El[v]=H,"s"===v&&(El.ss=H-1),!0))},i.calendarFormat=function bo(v,H){var O=v.diff(H,"days",!0);return O<-6?"sameElse":O<-1?"lastWeek":O<0?"lastDay":O<1?"sameDay":O<2?"nextDay":O<7?"nextWeek":"sameElse"},i.prototype=je,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},i}()},9751:(j,Y,T)=>{"use strict";T.d(Y,{y:()=>F});var w=T(930),i=T(727),E=T(8822),x=T(9635),S=T(2416),P=T(576),k=T(2806);let F=(()=>{class ne{constructor(re){re&&(this._subscribe=re)}lift(re){const ie=new ne;return ie.source=this,ie.operator=re,ie}subscribe(re,ie,ge){const Ae=function Q(ne){return ne&&ne instanceof w.Lv||function J(ne){return ne&&(0,P.m)(ne.next)&&(0,P.m)(ne.error)&&(0,P.m)(ne.complete)}(ne)&&(0,i.Nn)(ne)}(re)?re:new w.Hp(re,ie,ge);return(0,k.x)(()=>{const{operator:Te,source:Je}=this;Ae.add(Te?Te.call(Ae,Je):Je?this._subscribe(Ae):this._trySubscribe(Ae))}),Ae}_trySubscribe(re){try{return this._subscribe(re)}catch(ie){re.error(ie)}}forEach(re,ie){return new(ie=q(ie))((ge,Ae)=>{const Te=new w.Hp({next:Je=>{try{re(Je)}catch(Xe){Ae(Xe),Te.unsubscribe()}},error:Ae,complete:ge});this.subscribe(Te)})}_subscribe(re){var ie;return null===(ie=this.source)||void 0===ie?void 0:ie.subscribe(re)}[E.L](){return this}pipe(...re){return(0,x.U)(re)(this)}toPromise(re){return new(re=q(re))((ie,ge)=>{let Ae;this.subscribe(Te=>Ae=Te,Te=>ge(Te),()=>ie(Ae))})}}return ne.create=le=>new ne(le),ne})();function q(ne){var le;return null!==(le=ne??S.v.Promise)&&void 0!==le?le:Promise}},7579:(j,Y,T)=>{"use strict";T.d(Y,{x:()=>k});var w=T(9751),i=T(727);const x=(0,T(3888).d)(q=>function(){q(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var S=T(8737),P=T(2806);let k=(()=>{class q extends w.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(Q){const ne=new F(this,this);return ne.operator=Q,ne}_throwIfClosed(){if(this.closed)throw new x}next(Q){(0,P.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const ne of this.currentObservers)ne.next(Q)}})}error(Q){(0,P.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=Q;const{observers:ne}=this;for(;ne.length;)ne.shift().error(Q)}})}complete(){(0,P.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:Q}=this;for(;Q.length;)Q.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var Q;return(null===(Q=this.observers)||void 0===Q?void 0:Q.length)>0}_trySubscribe(Q){return this._throwIfClosed(),super._trySubscribe(Q)}_subscribe(Q){return this._throwIfClosed(),this._checkFinalizedStatuses(Q),this._innerSubscribe(Q)}_innerSubscribe(Q){const{hasError:ne,isStopped:le,observers:re}=this;return ne||le?i.Lc:(this.currentObservers=null,re.push(Q),new i.w0(()=>{this.currentObservers=null,(0,S.P)(re,Q)}))}_checkFinalizedStatuses(Q){const{hasError:ne,thrownError:le,isStopped:re}=this;ne?Q.error(le):re&&Q.complete()}asObservable(){const Q=new w.y;return Q.source=this,Q}}return q.create=(J,Q)=>new F(J,Q),q})();class F extends k{constructor(J,Q){super(),this.destination=J,this.source=Q}next(J){var Q,ne;null===(ne=null===(Q=this.destination)||void 0===Q?void 0:Q.next)||void 0===ne||ne.call(Q,J)}error(J){var Q,ne;null===(ne=null===(Q=this.destination)||void 0===Q?void 0:Q.error)||void 0===ne||ne.call(Q,J)}complete(){var J,Q;null===(Q=null===(J=this.destination)||void 0===J?void 0:J.complete)||void 0===Q||Q.call(J)}_subscribe(J){var Q,ne;return null!==(ne=null===(Q=this.source)||void 0===Q?void 0:Q.subscribe(J))&&void 0!==ne?ne:i.Lc}}},930:(j,Y,T)=>{"use strict";T.d(Y,{Hp:()=>ge,Lv:()=>ne});var w=T(576),i=T(727),E=T(2416),x=T(7849),S=T(5032);const P=q("C",void 0,void 0);function q(Re,Se,He){return{kind:Re,value:Se,error:He}}var J=T(3410),Q=T(2806);class ne extends i.w0{constructor(Se){super(),this.isStopped=!1,Se?(this.destination=Se,(0,i.Nn)(Se)&&Se.add(this)):this.destination=Xe}static create(Se,He,ft){return new ge(Se,He,ft)}next(Se){this.isStopped?Je(function F(Re){return q("N",Re,void 0)}(Se),this):this._next(Se)}error(Se){this.isStopped?Je(function k(Re){return q("E",void 0,Re)}(Se),this):(this.isStopped=!0,this._error(Se))}complete(){this.isStopped?Je(P,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(Se){this.destination.next(Se)}_error(Se){try{this.destination.error(Se)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const le=Function.prototype.bind;function re(Re,Se){return le.call(Re,Se)}class ie{constructor(Se){this.partialObserver=Se}next(Se){const{partialObserver:He}=this;if(He.next)try{He.next(Se)}catch(ft){Ae(ft)}}error(Se){const{partialObserver:He}=this;if(He.error)try{He.error(Se)}catch(ft){Ae(ft)}else Ae(Se)}complete(){const{partialObserver:Se}=this;if(Se.complete)try{Se.complete()}catch(He){Ae(He)}}}class ge extends ne{constructor(Se,He,ft){let Ne;if(super(),(0,w.m)(Se)||!Se)Ne={next:Se??void 0,error:He??void 0,complete:ft??void 0};else{let ze;this&&E.v.useDeprecatedNextContext?(ze=Object.create(Se),ze.unsubscribe=()=>this.unsubscribe(),Ne={next:Se.next&&re(Se.next,ze),error:Se.error&&re(Se.error,ze),complete:Se.complete&&re(Se.complete,ze)}):Ne=Se}this.destination=new ie(Ne)}}function Ae(Re){E.v.useDeprecatedSynchronousErrorHandling?(0,Q.O)(Re):(0,x.h)(Re)}function Je(Re,Se){const{onStoppedNotification:He}=E.v;He&&J.z.setTimeout(()=>He(Re,Se))}const Xe={closed:!0,next:S.Z,error:function Te(Re){throw Re},complete:S.Z}},727:(j,Y,T)=>{"use strict";T.d(Y,{Lc:()=>P,w0:()=>S,Nn:()=>k});var w=T(576);const E=(0,T(3888).d)(q=>function(Q){q(this),this.message=Q?`${Q.length} errors occurred during unsubscription:\n${Q.map((ne,le)=>`${le+1}) ${ne.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=Q});var x=T(8737);class S{constructor(J){this.initialTeardown=J,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let J;if(!this.closed){this.closed=!0;const{_parentage:Q}=this;if(Q)if(this._parentage=null,Array.isArray(Q))for(const re of Q)re.remove(this);else Q.remove(this);const{initialTeardown:ne}=this;if((0,w.m)(ne))try{ne()}catch(re){J=re instanceof E?re.errors:[re]}const{_finalizers:le}=this;if(le){this._finalizers=null;for(const re of le)try{F(re)}catch(ie){J=J??[],ie instanceof E?J=[...J,...ie.errors]:J.push(ie)}}if(J)throw new E(J)}}add(J){var Q;if(J&&J!==this)if(this.closed)F(J);else{if(J instanceof S){if(J.closed||J._hasParent(this))return;J._addParent(this)}(this._finalizers=null!==(Q=this._finalizers)&&void 0!==Q?Q:[]).push(J)}}_hasParent(J){const{_parentage:Q}=this;return Q===J||Array.isArray(Q)&&Q.includes(J)}_addParent(J){const{_parentage:Q}=this;this._parentage=Array.isArray(Q)?(Q.push(J),Q):Q?[Q,J]:J}_removeParent(J){const{_parentage:Q}=this;Q===J?this._parentage=null:Array.isArray(Q)&&(0,x.P)(Q,J)}remove(J){const{_finalizers:Q}=this;Q&&(0,x.P)(Q,J),J instanceof S&&J._removeParent(this)}}S.EMPTY=(()=>{const q=new S;return q.closed=!0,q})();const P=S.EMPTY;function k(q){return q instanceof S||q&&"closed"in q&&(0,w.m)(q.remove)&&(0,w.m)(q.add)&&(0,w.m)(q.unsubscribe)}function F(q){(0,w.m)(q)?q():q.unsubscribe()}},2416:(j,Y,T)=>{"use strict";T.d(Y,{v:()=>w});const w={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9841:(j,Y,T)=>{"use strict";T.d(Y,{a:()=>J});var w=T(9751),i=T(4742),E=T(2076),x=T(4671),S=T(3268),P=T(3269),k=T(1810),F=T(5403),q=T(9672);function J(...le){const re=(0,P.yG)(le),ie=(0,P.jO)(le),{args:ge,keys:Ae}=(0,i.D)(le);if(0===ge.length)return(0,E.D)([],re);const Te=new w.y(function Q(le,re,ie=x.y){return ge=>{ne(re,()=>{const{length:Ae}=le,Te=new Array(Ae);let Je=Ae,Xe=Ae;for(let Re=0;Re{const Se=(0,E.D)(le[Re],re);let He=!1;Se.subscribe((0,F.x)(ge,ft=>{Te[Re]=ft,He||(He=!0,Xe--),Xe||ge.next(ie(Te.slice()))},()=>{--Je||ge.complete()}))},ge)},ge)}}(ge,re,Ae?Je=>(0,k.n)(Ae,Je):x.y));return ie?Te.pipe((0,S.Z)(ie)):Te}function ne(le,re,ie){le?(0,q.f)(ie,le,re):re()}},7272:(j,Y,T)=>{"use strict";T.d(Y,{z:()=>S});var w=T(8189),E=T(3269),x=T(2076);function S(...P){return function i(){return(0,w.J)(1)}()((0,x.D)(P,(0,E.yG)(P)))}},515:(j,Y,T)=>{"use strict";T.d(Y,{E:()=>i});const i=new(T(9751).y)(S=>S.complete())},2076:(j,Y,T)=>{"use strict";T.d(Y,{D:()=>ft});var w=T(8421),i=T(9672),E=T(4482),x=T(5403);function S(Ne,ze=0){return(0,E.e)((Ve,pe)=>{Ve.subscribe((0,x.x)(pe,me=>(0,i.f)(pe,Ne,()=>pe.next(me),ze),()=>(0,i.f)(pe,Ne,()=>pe.complete(),ze),me=>(0,i.f)(pe,Ne,()=>pe.error(me),ze)))})}function P(Ne,ze=0){return(0,E.e)((Ve,pe)=>{pe.add(Ne.schedule(()=>Ve.subscribe(pe),ze))})}var q=T(9751),Q=T(2202),ne=T(576);function re(Ne,ze){if(!Ne)throw new Error("Iterable cannot be null");return new q.y(Ve=>{(0,i.f)(Ve,ze,()=>{const pe=Ne[Symbol.asyncIterator]();(0,i.f)(Ve,ze,()=>{pe.next().then(me=>{me.done?Ve.complete():Ve.next(me.value)})},0,!0)})})}var ie=T(3670),ge=T(8239),Ae=T(1144),Te=T(6495),Je=T(2206),Xe=T(4532),Re=T(3260);function ft(Ne,ze){return ze?function He(Ne,ze){if(null!=Ne){if((0,ie.c)(Ne))return function k(Ne,ze){return(0,w.Xf)(Ne).pipe(P(ze),S(ze))}(Ne,ze);if((0,Ae.z)(Ne))return function J(Ne,ze){return new q.y(Ve=>{let pe=0;return ze.schedule(function(){pe===Ne.length?Ve.complete():(Ve.next(Ne[pe++]),Ve.closed||this.schedule())})})}(Ne,ze);if((0,ge.t)(Ne))return function F(Ne,ze){return(0,w.Xf)(Ne).pipe(P(ze),S(ze))}(Ne,ze);if((0,Je.D)(Ne))return re(Ne,ze);if((0,Te.T)(Ne))return function le(Ne,ze){return new q.y(Ve=>{let pe;return(0,i.f)(Ve,ze,()=>{pe=Ne[Q.h](),(0,i.f)(Ve,ze,()=>{let me,ve;try{({value:me,done:ve}=pe.next())}catch(Me){return void Ve.error(Me)}ve?Ve.complete():Ve.next(me)},0,!0)}),()=>(0,ne.m)(pe?.return)&&pe.return()})}(Ne,ze);if((0,Re.L)(Ne))return function Se(Ne,ze){return re((0,Re.Q)(Ne),ze)}(Ne,ze)}throw(0,Xe.z)(Ne)}(Ne,ze):(0,w.Xf)(Ne)}},8421:(j,Y,T)=>{"use strict";T.d(Y,{Xf:()=>le});var w=T(655),i=T(1144),E=T(8239),x=T(9751),S=T(3670),P=T(2206),k=T(4532),F=T(6495),q=T(3260),J=T(576),Q=T(7849),ne=T(8822);function le(Re){if(Re instanceof x.y)return Re;if(null!=Re){if((0,S.c)(Re))return function re(Re){return new x.y(Se=>{const He=Re[ne.L]();if((0,J.m)(He.subscribe))return He.subscribe(Se);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(Re);if((0,i.z)(Re))return function ie(Re){return new x.y(Se=>{for(let He=0;He{Re.then(He=>{Se.closed||(Se.next(He),Se.complete())},He=>Se.error(He)).then(null,Q.h)})}(Re);if((0,P.D)(Re))return Te(Re);if((0,F.T)(Re))return function Ae(Re){return new x.y(Se=>{for(const He of Re)if(Se.next(He),Se.closed)return;Se.complete()})}(Re);if((0,q.L)(Re))return function Je(Re){return Te((0,q.Q)(Re))}(Re)}throw(0,k.z)(Re)}function Te(Re){return new x.y(Se=>{(function Xe(Re,Se){var He,ft,Ne,ze;return(0,w.mG)(this,void 0,void 0,function*(){try{for(He=(0,w.KL)(Re);!(ft=yield He.next()).done;)if(Se.next(ft.value),Se.closed)return}catch(Ve){Ne={error:Ve}}finally{try{ft&&!ft.done&&(ze=He.return)&&(yield ze.call(He))}finally{if(Ne)throw Ne.error}}Se.complete()})})(Re,Se).catch(He=>Se.error(He))})}},6451:(j,Y,T)=>{"use strict";T.d(Y,{T:()=>P});var w=T(8189),i=T(8421),E=T(515),x=T(3269),S=T(2076);function P(...k){const F=(0,x.yG)(k),q=(0,x._6)(k,1/0),J=k;return J.length?1===J.length?(0,i.Xf)(J[0]):(0,w.J)(q)((0,S.D)(J,F)):E.E}},9646:(j,Y,T)=>{"use strict";T.d(Y,{of:()=>E});var w=T(3269),i=T(2076);function E(...x){const S=(0,w.yG)(x);return(0,i.D)(x,S)}},102:(j,Y,T)=>{"use strict";T.d(Y,{S:()=>P});var w=T(9751),i=T(8421);const{isArray:E}=Array;var S=T(5403);function P(...F){return 1===(F=function x(F){return 1===F.length&&E(F[0])?F[0]:F}(F)).length?(0,i.Xf)(F[0]):new w.y(function k(F){return q=>{let J=[];for(let Q=0;J&&!q.closed&&Q{if(J){for(let le=0;le{"use strict";T.d(Y,{_:()=>E});var w=T(9751),i=T(576);function E(x,S){const P=(0,i.m)(x)?x:()=>x,k=F=>F.error(P());return new w.y(S?F=>S.schedule(k,0,F):k)}},2805:(j,Y,T)=>{"use strict";T.d(Y,{H:()=>S});var w=T(9751),i=T(4986),E=T(3532),x=T(1165);function S(P=0,k,F=i.P){let q=-1;return null!=k&&((0,E.K)(k)?F=k:q=k),new w.y(J=>{let Q=(0,x.q)(P)?+P-F.now():P;Q<0&&(Q=0);let ne=0;return F.schedule(function(){J.closed||(J.next(ne++),0<=q?this.schedule(void 0,q):J.complete())},Q)})}},5403:(j,Y,T)=>{"use strict";T.d(Y,{x:()=>i});var w=T(930);function i(x,S,P,k,F){return new E(x,S,P,k,F)}class E extends w.Lv{constructor(S,P,k,F,q,J){super(S),this.onFinalize=q,this.shouldUnsubscribe=J,this._next=P?function(Q){try{P(Q)}catch(ne){S.error(ne)}}:super._next,this._error=F?function(Q){try{F(Q)}catch(ne){S.error(ne)}finally{this.unsubscribe()}}:super._error,this._complete=k?function(){try{k()}catch(Q){S.error(Q)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var S;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:P}=this;super.unsubscribe(),!P&&(null===(S=this.onFinalize)||void 0===S||S.call(this))}}}},262:(j,Y,T)=>{"use strict";T.d(Y,{K:()=>x});var w=T(8421),i=T(5403),E=T(4482);function x(S){return(0,E.e)((P,k)=>{let J,F=null,q=!1;F=P.subscribe((0,i.x)(k,void 0,void 0,Q=>{J=(0,w.Xf)(S(Q,x(S)(P))),F?(F.unsubscribe(),F=null,J.subscribe(k)):q=!0})),q&&(F.unsubscribe(),F=null,J.subscribe(k))})}},4351:(j,Y,T)=>{"use strict";T.d(Y,{b:()=>E});var w=T(5577),i=T(576);function E(x,S){return(0,i.m)(S)?(0,w.z)(x,S,1):(0,w.z)(x,1)}},8372:(j,Y,T)=>{"use strict";T.d(Y,{b:()=>x});var w=T(4986),i=T(4482),E=T(5403);function x(S,P=w.z){return(0,i.e)((k,F)=>{let q=null,J=null,Q=null;const ne=()=>{if(q){q.unsubscribe(),q=null;const re=J;J=null,F.next(re)}};function le(){const re=Q+S,ie=P.now();if(ie{J=re,Q=P.now(),q||(q=P.schedule(le,S),F.add(q))},()=>{ne(),F.complete()},void 0,()=>{J=q=null}))})}},6590:(j,Y,T)=>{"use strict";T.d(Y,{d:()=>E});var w=T(4482),i=T(5403);function E(x){return(0,w.e)((S,P)=>{let k=!1;S.subscribe((0,i.x)(P,F=>{k=!0,P.next(F)},()=>{k||P.next(x),P.complete()}))})}},1005:(j,Y,T)=>{"use strict";T.d(Y,{g:()=>ne});var w=T(4986),i=T(7272),E=T(5698),x=T(4482),S=T(5403),P=T(5032),F=T(9718),q=T(5577);function J(le,re){return re?ie=>(0,i.z)(re.pipe((0,E.q)(1),function k(){return(0,x.e)((le,re)=>{le.subscribe((0,S.x)(re,P.Z))})}()),ie.pipe(J(le))):(0,q.z)((ie,ge)=>le(ie,ge).pipe((0,E.q)(1),(0,F.h)(ie)))}var Q=T(2805);function ne(le,re=w.z){const ie=(0,Q.H)(le,re);return J(()=>ie)}},9300:(j,Y,T)=>{"use strict";T.d(Y,{h:()=>E});var w=T(4482),i=T(5403);function E(x,S){return(0,w.e)((P,k)=>{let F=0;P.subscribe((0,i.x)(k,q=>x.call(S,q,F++)&&k.next(q)))})}},590:(j,Y,T)=>{"use strict";T.d(Y,{P:()=>k});var w=T(6805),i=T(9300),E=T(5698),x=T(6590),S=T(8068),P=T(4671);function k(F,q){const J=arguments.length>=2;return Q=>Q.pipe(F?(0,i.h)((ne,le)=>F(ne,le,Q)):P.y,(0,E.q)(1),J?(0,x.d)(q):(0,S.T)(()=>new w.K))}},4004:(j,Y,T)=>{"use strict";T.d(Y,{U:()=>E});var w=T(4482),i=T(5403);function E(x,S){return(0,w.e)((P,k)=>{let F=0;P.subscribe((0,i.x)(k,q=>{k.next(x.call(S,q,F++))}))})}},9718:(j,Y,T)=>{"use strict";T.d(Y,{h:()=>i});var w=T(4004);function i(E){return(0,w.U)(()=>E)}},8189:(j,Y,T)=>{"use strict";T.d(Y,{J:()=>E});var w=T(5577),i=T(4671);function E(x=1/0){return(0,w.z)(i.y,x)}},5577:(j,Y,T)=>{"use strict";T.d(Y,{z:()=>F});var w=T(4004),i=T(8421),E=T(4482),x=T(9672),S=T(5403),k=T(576);function F(q,J,Q=1/0){return(0,k.m)(J)?F((ne,le)=>(0,w.U)((re,ie)=>J(ne,re,le,ie))((0,i.Xf)(q(ne,le))),Q):("number"==typeof J&&(Q=J),(0,E.e)((ne,le)=>function P(q,J,Q,ne,le,re,ie,ge){const Ae=[];let Te=0,Je=0,Xe=!1;const Re=()=>{Xe&&!Ae.length&&!Te&&J.complete()},Se=ft=>Te{re&&J.next(ft),Te++;let Ne=!1;(0,i.Xf)(Q(ft,Je++)).subscribe((0,S.x)(J,ze=>{le?.(ze),re?Se(ze):J.next(ze)},()=>{Ne=!0},void 0,()=>{if(Ne)try{for(Te--;Ae.length&&TeHe(ze)):He(ze)}Re()}catch(ze){J.error(ze)}}))};return q.subscribe((0,S.x)(J,Se,()=>{Xe=!0,Re()})),()=>{ge?.()}}(ne,le,q,Q)))}},3099:(j,Y,T)=>{"use strict";T.d(Y,{B:()=>S});var w=T(8421),i=T(7579),E=T(930),x=T(4482);function S(k={}){const{connector:F=(()=>new i.x),resetOnError:q=!0,resetOnComplete:J=!0,resetOnRefCountZero:Q=!0}=k;return ne=>{let le,re,ie,ge=0,Ae=!1,Te=!1;const Je=()=>{re?.unsubscribe(),re=void 0},Xe=()=>{Je(),le=ie=void 0,Ae=Te=!1},Re=()=>{const Se=le;Xe(),Se?.unsubscribe()};return(0,x.e)((Se,He)=>{ge++,!Te&&!Ae&&Je();const ft=ie=ie??F();He.add(()=>{ge--,0===ge&&!Te&&!Ae&&(re=P(Re,Q))}),ft.subscribe(He),!le&&ge>0&&(le=new E.Hp({next:Ne=>ft.next(Ne),error:Ne=>{Te=!0,Je(),re=P(Xe,q,Ne),ft.error(Ne)},complete:()=>{Ae=!0,Je(),re=P(Xe,J),ft.complete()}}),(0,w.Xf)(Se).subscribe(le))})(ne)}}function P(k,F,...q){if(!0===F)return void k();if(!1===F)return;const J=new E.Hp({next:()=>{J.unsubscribe(),k()}});return F(...q).subscribe(J)}},3900:(j,Y,T)=>{"use strict";T.d(Y,{w:()=>x});var w=T(8421),i=T(4482),E=T(5403);function x(S,P){return(0,i.e)((k,F)=>{let q=null,J=0,Q=!1;const ne=()=>Q&&!q&&F.complete();k.subscribe((0,E.x)(F,le=>{q?.unsubscribe();let re=0;const ie=J++;(0,w.Xf)(S(le,ie)).subscribe(q=(0,E.x)(F,ge=>F.next(P?P(le,ge,ie,re++):ge),()=>{q=null,ne()}))},()=>{Q=!0,ne()}))})}},5698:(j,Y,T)=>{"use strict";T.d(Y,{q:()=>x});var w=T(515),i=T(4482),E=T(5403);function x(S){return S<=0?()=>w.E:(0,i.e)((P,k)=>{let F=0;P.subscribe((0,E.x)(k,q=>{++F<=S&&(k.next(q),S<=F&&k.complete())}))})}},8505:(j,Y,T)=>{"use strict";T.d(Y,{b:()=>S});var w=T(576),i=T(4482),E=T(5403),x=T(4671);function S(P,k,F){const q=(0,w.m)(P)||k||F?{next:P,error:k,complete:F}:P;return q?(0,i.e)((J,Q)=>{var ne;null===(ne=q.subscribe)||void 0===ne||ne.call(q);let le=!0;J.subscribe((0,E.x)(Q,re=>{var ie;null===(ie=q.next)||void 0===ie||ie.call(q,re),Q.next(re)},()=>{var re;le=!1,null===(re=q.complete)||void 0===re||re.call(q),Q.complete()},re=>{var ie;le=!1,null===(ie=q.error)||void 0===ie||ie.call(q,re),Q.error(re)},()=>{var re,ie;le&&(null===(re=q.unsubscribe)||void 0===re||re.call(q)),null===(ie=q.finalize)||void 0===ie||ie.call(q)}))}):x.y}},8068:(j,Y,T)=>{"use strict";T.d(Y,{T:()=>x});var w=T(6805),i=T(4482),E=T(5403);function x(P=S){return(0,i.e)((k,F)=>{let q=!1;k.subscribe((0,E.x)(F,J=>{q=!0,F.next(J)},()=>q?F.complete():F.error(P())))})}function S(){return new w.K}},7414:(j,Y,T)=>{"use strict";T.d(Y,{V:()=>q});var w=T(4986),i=T(1165),E=T(4482),x=T(8421),S=T(3888),P=T(5403),k=T(9672);const F=(0,S.d)(Q=>function(le=null){Q(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=le});function q(Q,ne){const{first:le,each:re,with:ie=J,scheduler:ge=ne??w.z,meta:Ae=null}=(0,i.q)(Q)?{first:Q}:"number"==typeof Q?{each:Q}:Q;if(null==le&&null==re)throw new TypeError("No timeout provided.");return(0,E.e)((Te,Je)=>{let Xe,Re,Se=null,He=0;const ft=Ne=>{Re=(0,k.f)(Je,ge,()=>{try{Xe.unsubscribe(),(0,x.Xf)(ie({meta:Ae,lastValue:Se,seen:He})).subscribe(Je)}catch(ze){Je.error(ze)}},Ne)};Xe=Te.subscribe((0,P.x)(Je,Ne=>{Re?.unsubscribe(),He++,Je.next(Se=Ne),re>0&&ft(re)},void 0,void 0,()=>{Re?.closed||Re?.unsubscribe(),Se=null})),!He&&ft(null!=le?"number"==typeof le?le:+le-ge.now():re)})}function J(Q){throw new F(Q)}},4408:(j,Y,T)=>{"use strict";T.d(Y,{o:()=>S});var w=T(727);class i extends w.w0{constructor(k,F){super()}schedule(k,F=0){return this}}const E={setInterval(P,k,...F){const{delegate:q}=E;return q?.setInterval?q.setInterval(P,k,...F):setInterval(P,k,...F)},clearInterval(P){const{delegate:k}=E;return(k?.clearInterval||clearInterval)(P)},delegate:void 0};var x=T(8737);class S extends i{constructor(k,F){super(k,F),this.scheduler=k,this.work=F,this.pending=!1}schedule(k,F=0){if(this.closed)return this;this.state=k;const q=this.id,J=this.scheduler;return null!=q&&(this.id=this.recycleAsyncId(J,q,F)),this.pending=!0,this.delay=F,this.id=this.id||this.requestAsyncId(J,this.id,F),this}requestAsyncId(k,F,q=0){return E.setInterval(k.flush.bind(k,this),q)}recycleAsyncId(k,F,q=0){if(null!=q&&this.delay===q&&!1===this.pending)return F;E.clearInterval(F)}execute(k,F){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const q=this._execute(k,F);if(q)return q;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(k,F){let J,q=!1;try{this.work(k)}catch(Q){q=!0,J=Q||new Error("Scheduled action threw falsy error")}if(q)return this.unsubscribe(),J}unsubscribe(){if(!this.closed){const{id:k,scheduler:F}=this,{actions:q}=F;this.work=this.state=this.scheduler=null,this.pending=!1,(0,x.P)(q,this),null!=k&&(this.id=this.recycleAsyncId(F,k,null)),this.delay=null,super.unsubscribe()}}}},7565:(j,Y,T)=>{"use strict";T.d(Y,{v:()=>E});var w=T(6063);class i{constructor(S,P=i.now){this.schedulerActionCtor=S,this.now=P}schedule(S,P=0,k){return new this.schedulerActionCtor(this,S).schedule(k,P)}}i.now=w.l.now;class E extends i{constructor(S,P=i.now){super(S,P),this.actions=[],this._active=!1,this._scheduled=void 0}flush(S){const{actions:P}=this;if(this._active)return void P.push(S);let k;this._active=!0;do{if(k=S.execute(S.state,S.delay))break}while(S=P.shift());if(this._active=!1,k){for(;S=P.shift();)S.unsubscribe();throw k}}}},4986:(j,Y,T)=>{"use strict";T.d(Y,{P:()=>x,z:()=>E});var w=T(4408);const E=new(T(7565).v)(w.o),x=E},6063:(j,Y,T)=>{"use strict";T.d(Y,{l:()=>w});const w={now:()=>(w.delegate||Date).now(),delegate:void 0}},3410:(j,Y,T)=>{"use strict";T.d(Y,{z:()=>w});const w={setTimeout(i,E,...x){const{delegate:S}=w;return S?.setTimeout?S.setTimeout(i,E,...x):setTimeout(i,E,...x)},clearTimeout(i){const{delegate:E}=w;return(E?.clearTimeout||clearTimeout)(i)},delegate:void 0}},2202:(j,Y,T)=>{"use strict";T.d(Y,{h:()=>i});const i=function w(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(j,Y,T)=>{"use strict";T.d(Y,{L:()=>w});const w="function"==typeof Symbol&&Symbol.observable||"@@observable"},6805:(j,Y,T)=>{"use strict";T.d(Y,{K:()=>i});const i=(0,T(3888).d)(E=>function(){E(this),this.name="EmptyError",this.message="no elements in sequence"})},3269:(j,Y,T)=>{"use strict";T.d(Y,{_6:()=>P,jO:()=>x,yG:()=>S});var w=T(576),i=T(3532);function E(k){return k[k.length-1]}function x(k){return(0,w.m)(E(k))?k.pop():void 0}function S(k){return(0,i.K)(E(k))?k.pop():void 0}function P(k,F){return"number"==typeof E(k)?k.pop():F}},4742:(j,Y,T)=>{"use strict";T.d(Y,{D:()=>S});const{isArray:w}=Array,{getPrototypeOf:i,prototype:E,keys:x}=Object;function S(k){if(1===k.length){const F=k[0];if(w(F))return{args:F,keys:null};if(function P(k){return k&&"object"==typeof k&&i(k)===E}(F)){const q=x(F);return{args:q.map(J=>F[J]),keys:q}}}return{args:k,keys:null}}},8737:(j,Y,T)=>{"use strict";function w(i,E){if(i){const x=i.indexOf(E);0<=x&&i.splice(x,1)}}T.d(Y,{P:()=>w})},3888:(j,Y,T)=>{"use strict";function w(i){const x=i(S=>{Error.call(S),S.stack=(new Error).stack});return x.prototype=Object.create(Error.prototype),x.prototype.constructor=x,x}T.d(Y,{d:()=>w})},1810:(j,Y,T)=>{"use strict";function w(i,E){return i.reduce((x,S,P)=>(x[S]=E[P],x),{})}T.d(Y,{n:()=>w})},2806:(j,Y,T)=>{"use strict";T.d(Y,{O:()=>x,x:()=>E});var w=T(2416);let i=null;function E(S){if(w.v.useDeprecatedSynchronousErrorHandling){const P=!i;if(P&&(i={errorThrown:!1,error:null}),S(),P){const{errorThrown:k,error:F}=i;if(i=null,k)throw F}}else S()}function x(S){w.v.useDeprecatedSynchronousErrorHandling&&i&&(i.errorThrown=!0,i.error=S)}},9672:(j,Y,T)=>{"use strict";function w(i,E,x,S=0,P=!1){const k=E.schedule(function(){x(),P?i.add(this.schedule(null,S)):this.unsubscribe()},S);if(i.add(k),!P)return k}T.d(Y,{f:()=>w})},4671:(j,Y,T)=>{"use strict";function w(i){return i}T.d(Y,{y:()=>w})},1144:(j,Y,T)=>{"use strict";T.d(Y,{z:()=>w});const w=i=>i&&"number"==typeof i.length&&"function"!=typeof i},2206:(j,Y,T)=>{"use strict";T.d(Y,{D:()=>i});var w=T(576);function i(E){return Symbol.asyncIterator&&(0,w.m)(E?.[Symbol.asyncIterator])}},1165:(j,Y,T)=>{"use strict";function w(i){return i instanceof Date&&!isNaN(i)}T.d(Y,{q:()=>w})},576:(j,Y,T)=>{"use strict";function w(i){return"function"==typeof i}T.d(Y,{m:()=>w})},3670:(j,Y,T)=>{"use strict";T.d(Y,{c:()=>E});var w=T(8822),i=T(576);function E(x){return(0,i.m)(x[w.L])}},6495:(j,Y,T)=>{"use strict";T.d(Y,{T:()=>E});var w=T(2202),i=T(576);function E(x){return(0,i.m)(x?.[w.h])}},8239:(j,Y,T)=>{"use strict";T.d(Y,{t:()=>i});var w=T(576);function i(E){return(0,w.m)(E?.then)}},3260:(j,Y,T)=>{"use strict";T.d(Y,{L:()=>x,Q:()=>E});var w=T(655),i=T(576);function E(S){return(0,w.FC)(this,arguments,function*(){const k=S.getReader();try{for(;;){const{value:F,done:q}=yield(0,w.qq)(k.read());if(q)return yield(0,w.qq)(void 0);yield yield(0,w.qq)(F)}}finally{k.releaseLock()}})}function x(S){return(0,i.m)(S?.getReader)}},3532:(j,Y,T)=>{"use strict";T.d(Y,{K:()=>i});var w=T(576);function i(E){return E&&(0,w.m)(E.schedule)}},4482:(j,Y,T)=>{"use strict";T.d(Y,{A:()=>i,e:()=>E});var w=T(576);function i(x){return(0,w.m)(x?.lift)}function E(x){return S=>{if(i(S))return S.lift(function(P){try{return x(P,this)}catch(k){this.error(k)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(j,Y,T)=>{"use strict";T.d(Y,{Z:()=>x});var w=T(4004);const{isArray:i}=Array;function x(S){return(0,w.U)(P=>function E(S,P){return i(P)?S(...P):S(P)}(S,P))}},5032:(j,Y,T)=>{"use strict";function w(){}T.d(Y,{Z:()=>w})},9635:(j,Y,T)=>{"use strict";T.d(Y,{U:()=>E,z:()=>i});var w=T(4671);function i(...x){return E(x)}function E(x){return 0===x.length?w.y:1===x.length?x[0]:function(P){return x.reduce((k,F)=>F(k),P)}}},7849:(j,Y,T)=>{"use strict";T.d(Y,{h:()=>E});var w=T(2416),i=T(3410);function E(x){i.z.setTimeout(()=>{const{onUnhandledError:S}=w.v;if(!S)throw x;S(x)})}},4532:(j,Y,T)=>{"use strict";function w(i){return new TypeError(`You provided ${null!==i&&"object"==typeof i?"an invalid object":`'${i}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}T.d(Y,{z:()=>w})},6700:(j,Y,T)=>{var w={"./af":7088,"./af.js":7088,"./ar":7038,"./ar-dz":2502,"./ar-dz.js":2502,"./ar-kw":128,"./ar-kw.js":128,"./ar-ly":4519,"./ar-ly.js":4519,"./ar-ma":5443,"./ar-ma.js":5443,"./ar-sa":7642,"./ar-sa.js":7642,"./ar-tn":8592,"./ar-tn.js":8592,"./ar.js":7038,"./az":1213,"./az.js":1213,"./be":9191,"./be.js":9191,"./bg":322,"./bg.js":322,"./bm":8042,"./bm.js":8042,"./bn":9620,"./bn-bd":5903,"./bn-bd.js":5903,"./bn.js":9620,"./bo":9645,"./bo.js":9645,"./br":5020,"./br.js":5020,"./bs":4792,"./bs.js":4792,"./ca":7980,"./ca.js":7980,"./cs":7322,"./cs.js":7322,"./cv":365,"./cv.js":365,"./cy":2092,"./cy.js":2092,"./da":7387,"./da.js":7387,"./de":4307,"./de-at":9459,"./de-at.js":9459,"./de-ch":3694,"./de-ch.js":3694,"./de.js":4307,"./dv":9659,"./dv.js":9659,"./el":3460,"./el.js":3460,"./en-au":4369,"./en-au.js":4369,"./en-ca":530,"./en-ca.js":530,"./en-gb":9998,"./en-gb.js":9998,"./en-ie":3391,"./en-ie.js":3391,"./en-il":5414,"./en-il.js":5414,"./en-in":9615,"./en-in.js":9615,"./en-nz":1248,"./en-nz.js":1248,"./en-sg":3767,"./en-sg.js":3767,"./eo":4530,"./eo.js":4530,"./es":6866,"./es-do":8944,"./es-do.js":8944,"./es-mx":9116,"./es-mx.js":9116,"./es-us":3609,"./es-us.js":3609,"./es.js":6866,"./et":6725,"./et.js":6725,"./eu":7931,"./eu.js":7931,"./fa":6417,"./fa.js":6417,"./fi":944,"./fi.js":944,"./fil":1766,"./fil.js":1766,"./fo":5867,"./fo.js":5867,"./fr":1636,"./fr-ca":6848,"./fr-ca.js":6848,"./fr-ch":7773,"./fr-ch.js":7773,"./fr.js":1636,"./fy":4940,"./fy.js":4940,"./ga":1402,"./ga.js":1402,"./gd":6924,"./gd.js":6924,"./gl":6398,"./gl.js":6398,"./gom-deva":2457,"./gom-deva.js":2457,"./gom-latn":2545,"./gom-latn.js":2545,"./gu":2641,"./gu.js":2641,"./he":7536,"./he.js":7536,"./hi":6335,"./hi.js":6335,"./hr":7458,"./hr.js":7458,"./hu":6540,"./hu.js":6540,"./hy-am":5283,"./hy-am.js":5283,"./id":8780,"./id.js":8780,"./is":4205,"./is.js":4205,"./it":4211,"./it-ch":9985,"./it-ch.js":9985,"./it.js":4211,"./ja":1003,"./ja.js":1003,"./jv":420,"./jv.js":420,"./ka":851,"./ka.js":851,"./kk":6074,"./kk.js":6074,"./km":3343,"./km.js":3343,"./kn":4799,"./kn.js":4799,"./ko":3549,"./ko.js":3549,"./ku":1037,"./ku.js":1037,"./ky":3125,"./ky.js":3125,"./lb":9586,"./lb.js":9586,"./lo":2349,"./lo.js":2349,"./lt":2400,"./lt.js":2400,"./lv":9991,"./lv.js":9991,"./me":8477,"./me.js":8477,"./mi":5118,"./mi.js":5118,"./mk":5943,"./mk.js":5943,"./ml":3849,"./ml.js":3849,"./mn":1977,"./mn.js":1977,"./mr":6184,"./mr.js":6184,"./ms":485,"./ms-my":4524,"./ms-my.js":4524,"./ms.js":485,"./mt":6681,"./mt.js":6681,"./my":2024,"./my.js":2024,"./nb":2688,"./nb.js":2688,"./ne":8914,"./ne.js":8914,"./nl":1758,"./nl-be":2272,"./nl-be.js":2272,"./nl.js":1758,"./nn":1510,"./nn.js":1510,"./oc-lnc":2797,"./oc-lnc.js":2797,"./pa-in":7944,"./pa-in.js":7944,"./pl":1605,"./pl.js":1605,"./pt":4225,"./pt-br":3840,"./pt-br.js":3840,"./pt.js":4225,"./ro":5128,"./ro.js":5128,"./ru":5127,"./ru.js":5127,"./sd":2525,"./sd.js":2525,"./se":9893,"./se.js":9893,"./si":3123,"./si.js":3123,"./sk":3027,"./sk.js":3027,"./sl":8106,"./sl.js":8106,"./sq":8799,"./sq.js":8799,"./sr":7949,"./sr-cyrl":2872,"./sr-cyrl.js":2872,"./sr.js":7949,"./ss":6167,"./ss.js":6167,"./sv":9713,"./sv.js":9713,"./sw":1982,"./sw.js":1982,"./ta":2732,"./ta.js":2732,"./te":3636,"./te.js":3636,"./tet":2115,"./tet.js":2115,"./tg":9801,"./tg.js":9801,"./th":2868,"./th.js":2868,"./tk":1310,"./tk.js":1310,"./tl-ph":2360,"./tl-ph.js":2360,"./tlh":6645,"./tlh.js":6645,"./tr":8374,"./tr.js":8374,"./tzl":256,"./tzl.js":256,"./tzm":1595,"./tzm-latn":1631,"./tzm-latn.js":1631,"./tzm.js":1595,"./ug-cn":6050,"./ug-cn.js":6050,"./uk":5610,"./uk.js":5610,"./ur":6077,"./ur.js":6077,"./uz":2862,"./uz-latn":2207,"./uz-latn.js":2207,"./uz.js":2862,"./vi":8093,"./vi.js":8093,"./x-pseudo":5590,"./x-pseudo.js":5590,"./yo":9058,"./yo.js":9058,"./zh-cn":7908,"./zh-cn.js":7908,"./zh-hk":8867,"./zh-hk.js":8867,"./zh-mo":1133,"./zh-mo.js":1133,"./zh-tw":3291,"./zh-tw.js":3291};function i(x){var S=E(x);return T(S)}function E(x){if(!T.o(w,x)){var S=new Error("Cannot find module '"+x+"'");throw S.code="MODULE_NOT_FOUND",S}return w[x]}i.keys=function(){return Object.keys(w)},i.resolve=E,j.exports=i,i.id=6700},655:(j,Y,T)=>{"use strict";function F(pe,me,ve,Me){return new(ve||(ve=Promise))(function(We,mt){function Bt(ln){try{Ke(Me.next(ln))}catch(Hn){mt(Hn)}}function ai(ln){try{Ke(Me.throw(ln))}catch(Hn){mt(Hn)}}function Ke(ln){ln.done?We(ln.value):function Ue(We){return We instanceof ve?We:new ve(function(mt){mt(We)})}(ln.value).then(Bt,ai)}Ke((Me=Me.apply(pe,me||[])).next())})}function Ae(pe){return this instanceof Ae?(this.v=pe,this):new Ae(pe)}function Te(pe,me,ve){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Ue,Me=ve.apply(pe,me||[]),We=[];return Ue={},mt("next"),mt("throw"),mt("return"),Ue[Symbol.asyncIterator]=function(){return this},Ue;function mt($e){Me[$e]&&(Ue[$e]=function(si){return new Promise(function(Wn,Mi){We.push([$e,si,Wn,Mi])>1||Bt($e,si)})})}function Bt($e,si){try{!function ai($e){$e.value instanceof Ae?Promise.resolve($e.value.v).then(Ke,ln):Hn(We[0][2],$e)}(Me[$e](si))}catch(Wn){Hn(We[0][3],Wn)}}function Ke($e){Bt("next",$e)}function ln($e){Bt("throw",$e)}function Hn($e,si){$e(si),We.shift(),We.length&&Bt(We[0][0],We[0][1])}}function Xe(pe){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ve,me=pe[Symbol.asyncIterator];return me?me.call(pe):(pe=function ne(pe){var me="function"==typeof Symbol&&Symbol.iterator,ve=me&&pe[me],Me=0;if(ve)return ve.call(pe);if(pe&&"number"==typeof pe.length)return{next:function(){return pe&&Me>=pe.length&&(pe=void 0),{value:pe&&pe[Me++],done:!pe}}};throw new TypeError(me?"Object is not iterable.":"Symbol.iterator is not defined.")}(pe),ve={},Me("next"),Me("throw"),Me("return"),ve[Symbol.asyncIterator]=function(){return this},ve);function Me(We){ve[We]=pe[We]&&function(mt){return new Promise(function(Bt,ai){!function Ue(We,mt,Bt,ai){Promise.resolve(ai).then(function(Ke){We({value:Ke,done:Bt})},mt)}(Bt,ai,(mt=pe[We](mt)).done,mt.value)})}}}T.d(Y,{FC:()=>Te,KL:()=>Xe,mG:()=>F,qq:()=>Ae})},6895:(j,Y,T)=>{"use strict";T.d(Y,{Do:()=>Xe,ED:()=>fa,EM:()=>_a,HT:()=>S,JF:()=>Pn,K0:()=>k,Mx:()=>At,NF:()=>Qu,Nd:()=>uo,O5:()=>bn,Ov:()=>Ri,PC:()=>cr,PM:()=>pf,RF:()=>wr,S$:()=>Ae,V_:()=>J,Ye:()=>Re,b0:()=>Je,bD:()=>ei,ez:()=>Cd,gd:()=>Md,mk:()=>Pr,n9:()=>Zn,q:()=>E,sg:()=>Mr,uU:()=>el,w_:()=>P});var w=T(4650);let i=null;function E(){return i}function S(I){i||(i=I)}class P{}const k=new w.OlP("DocumentToken");let F=(()=>{class I{historyGo(N){throw new Error("Not implemented")}}return I.\u0275fac=function(N){return new(N||I)},I.\u0275prov=w.Yz7({token:I,factory:function(){return function q(){return(0,w.LFG)(Q)}()},providedIn:"platform"}),I})();const J=new w.OlP("Location Initialized");let Q=(()=>{class I extends F{constructor(N){super(),this._doc=N,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return E().getBaseHref(this._doc)}onPopState(N){const G=E().getGlobalEventTarget(this._doc,"window");return G.addEventListener("popstate",N,!1),()=>G.removeEventListener("popstate",N)}onHashChange(N){const G=E().getGlobalEventTarget(this._doc,"window");return G.addEventListener("hashchange",N,!1),()=>G.removeEventListener("hashchange",N)}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(N){this.location.pathname=N}pushState(N,G,ae){ne()?this._history.pushState(N,G,ae):this.location.hash=ae}replaceState(N,G,ae){ne()?this._history.replaceState(N,G,ae):this.location.hash=ae}forward(){this._history.forward()}back(){this._history.back()}historyGo(N=0){this._history.go(N)}getState(){return this._history.state}}return I.\u0275fac=function(N){return new(N||I)(w.LFG(k))},I.\u0275prov=w.Yz7({token:I,factory:function(){return function le(){return new Q((0,w.LFG)(k))}()},providedIn:"platform"}),I})();function ne(){return!!window.history.pushState}function re(I,U){if(0==I.length)return U;if(0==U.length)return I;let N=0;return I.endsWith("/")&&N++,U.startsWith("/")&&N++,2==N?I+U.substring(1):1==N?I+U:I+"/"+U}function ie(I){const U=I.match(/#|\?|$/),N=U&&U.index||I.length;return I.slice(0,N-("/"===I[N-1]?1:0))+I.slice(N)}function ge(I){return I&&"?"!==I[0]?"?"+I:I}let Ae=(()=>{class I{historyGo(N){throw new Error("Not implemented")}}return I.\u0275fac=function(N){return new(N||I)},I.\u0275prov=w.Yz7({token:I,factory:function(){return(0,w.f3M)(Je)},providedIn:"root"}),I})();const Te=new w.OlP("appBaseHref");let Je=(()=>{class I extends Ae{constructor(N,G){var ae,we,_e;super(),this._platformLocation=N,this._removeListenerFns=[],this._baseHref=null!==(ae=null!==(we=G??this._platformLocation.getBaseHrefFromDOM())&&void 0!==we?we:null===(_e=(0,w.f3M)(k).location)||void 0===_e?void 0:_e.origin)&&void 0!==ae?ae:""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(N){this._removeListenerFns.push(this._platformLocation.onPopState(N),this._platformLocation.onHashChange(N))}getBaseHref(){return this._baseHref}prepareExternalUrl(N){return re(this._baseHref,N)}path(N=!1){const G=this._platformLocation.pathname+ge(this._platformLocation.search),ae=this._platformLocation.hash;return ae&&N?`${G}${ae}`:G}pushState(N,G,ae,we){const _e=this.prepareExternalUrl(ae+ge(we));this._platformLocation.pushState(N,G,_e)}replaceState(N,G,ae,we){const _e=this.prepareExternalUrl(ae+ge(we));this._platformLocation.replaceState(N,G,_e)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(N=0){var G,ae;null===(G=(ae=this._platformLocation).historyGo)||void 0===G||G.call(ae,N)}}return I.\u0275fac=function(N){return new(N||I)(w.LFG(F),w.LFG(Te,8))},I.\u0275prov=w.Yz7({token:I,factory:I.\u0275fac,providedIn:"root"}),I})(),Xe=(()=>{class I extends Ae{constructor(N,G){super(),this._platformLocation=N,this._baseHref="",this._removeListenerFns=[],null!=G&&(this._baseHref=G)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(N){this._removeListenerFns.push(this._platformLocation.onPopState(N),this._platformLocation.onHashChange(N))}getBaseHref(){return this._baseHref}path(N=!1){let G=this._platformLocation.hash;return null==G&&(G="#"),G.length>0?G.substring(1):G}prepareExternalUrl(N){const G=re(this._baseHref,N);return G.length>0?"#"+G:G}pushState(N,G,ae,we){let _e=this.prepareExternalUrl(ae+ge(we));0==_e.length&&(_e=this._platformLocation.pathname),this._platformLocation.pushState(N,G,_e)}replaceState(N,G,ae,we){let _e=this.prepareExternalUrl(ae+ge(we));0==_e.length&&(_e=this._platformLocation.pathname),this._platformLocation.replaceState(N,G,_e)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(N=0){var G,ae;null===(G=(ae=this._platformLocation).historyGo)||void 0===G||G.call(ae,N)}}return I.\u0275fac=function(N){return new(N||I)(w.LFG(F),w.LFG(Te,8))},I.\u0275prov=w.Yz7({token:I,factory:I.\u0275fac}),I})(),Re=(()=>{class I{constructor(N){this._subject=new w.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=N;const G=this._locationStrategy.getBaseHref();this._baseHref=ie(ft(G)),this._locationStrategy.onPopState(ae=>{this._subject.emit({url:this.path(!0),pop:!0,state:ae.state,type:ae.type})})}ngOnDestroy(){var N;null===(N=this._urlChangeSubscription)||void 0===N||N.unsubscribe(),this._urlChangeListeners=[]}path(N=!1){return this.normalize(this._locationStrategy.path(N))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(N,G=""){return this.path()==this.normalize(N+ge(G))}normalize(N){return I.stripTrailingSlash(function He(I,U){return I&&U.startsWith(I)?U.substring(I.length):U}(this._baseHref,ft(N)))}prepareExternalUrl(N){return N&&"/"!==N[0]&&(N="/"+N),this._locationStrategy.prepareExternalUrl(N)}go(N,G="",ae=null){this._locationStrategy.pushState(ae,"",N,G),this._notifyUrlChangeListeners(this.prepareExternalUrl(N+ge(G)),ae)}replaceState(N,G="",ae=null){this._locationStrategy.replaceState(ae,"",N,G),this._notifyUrlChangeListeners(this.prepareExternalUrl(N+ge(G)),ae)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(N=0){var G,ae;null===(G=(ae=this._locationStrategy).historyGo)||void 0===G||G.call(ae,N)}onUrlChange(N){return this._urlChangeListeners.push(N),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(G=>{this._notifyUrlChangeListeners(G.url,G.state)})),()=>{const G=this._urlChangeListeners.indexOf(N);var ae;this._urlChangeListeners.splice(G,1),0===this._urlChangeListeners.length&&(null===(ae=this._urlChangeSubscription)||void 0===ae||ae.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(N="",G){this._urlChangeListeners.forEach(ae=>ae(N,G))}subscribe(N,G,ae){return this._subject.subscribe({next:N,error:G,complete:ae})}}return I.normalizeQueryParams=ge,I.joinWithSlash=re,I.stripTrailingSlash=ie,I.\u0275fac=function(N){return new(N||I)(w.LFG(Ae))},I.\u0275prov=w.Yz7({token:I,factory:function(){return function Se(){return new Re((0,w.LFG)(Ae))}()},providedIn:"root"}),I})();function ft(I){return I.replace(/\/index.html$/,"")}var pe=(()=>((pe=pe||{})[pe.Format=0]="Format",pe[pe.Standalone=1]="Standalone",pe))(),me=(()=>((me=me||{})[me.Narrow=0]="Narrow",me[me.Abbreviated=1]="Abbreviated",me[me.Wide=2]="Wide",me[me.Short=3]="Short",me))(),ve=(()=>((ve=ve||{})[ve.Short=0]="Short",ve[ve.Medium=1]="Medium",ve[ve.Long=2]="Long",ve[ve.Full=3]="Full",ve))(),Me=(()=>((Me=Me||{})[Me.Decimal=0]="Decimal",Me[Me.Group=1]="Group",Me[Me.List=2]="List",Me[Me.PercentSign=3]="PercentSign",Me[Me.PlusSign=4]="PlusSign",Me[Me.MinusSign=5]="MinusSign",Me[Me.Exponential=6]="Exponential",Me[Me.SuperscriptingExponent=7]="SuperscriptingExponent",Me[Me.PerMille=8]="PerMille",Me[Me.Infinity=9]="Infinity",Me[Me.NaN=10]="NaN",Me[Me.TimeSeparator=11]="TimeSeparator",Me[Me.CurrencyDecimal=12]="CurrencyDecimal",Me[Me.CurrencyGroup=13]="CurrencyGroup",Me))();function $e(I,U){return Ye((0,w.cg1)(I)[w.wAp.DateFormat],U)}function si(I,U){return Ye((0,w.cg1)(I)[w.wAp.TimeFormat],U)}function Wn(I,U){return Ye((0,w.cg1)(I)[w.wAp.DateTimeFormat],U)}function Mi(I,U){const N=(0,w.cg1)(I),G=N[w.wAp.NumberSymbols][U];if(typeof G>"u"){if(U===Me.CurrencyDecimal)return N[w.wAp.NumberSymbols][Me.Decimal];if(U===Me.CurrencyGroup)return N[w.wAp.NumberSymbols][Me.Group]}return G}function jn(I){if(!I[w.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${I[w.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Ye(I,U){for(let N=U;N>-1;N--)if(typeof I[N]<"u")return I[N];throw new Error("Locale data API: locale data undefined")}function st(I){const[U,N]=I.split(":");return{hours:+U,minutes:+N}}const oi=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Xt={},ke=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var se=(()=>((se=se||{})[se.Short=0]="Short",se[se.ShortGMT=1]="ShortGMT",se[se.Long=2]="Long",se[se.Extended=3]="Extended",se))(),te=(()=>((te=te||{})[te.FullYear=0]="FullYear",te[te.Month=1]="Month",te[te.Date=2]="Date",te[te.Hours=3]="Hours",te[te.Minutes=4]="Minutes",te[te.Seconds=5]="Seconds",te[te.FractionalSeconds=6]="FractionalSeconds",te[te.Day=7]="Day",te))(),ue=(()=>((ue=ue||{})[ue.DayPeriods=0]="DayPeriods",ue[ue.Days=1]="Days",ue[ue.Months=2]="Months",ue[ue.Eras=3]="Eras",ue))();function Ie(I,U,N,G){let ae=function _n(I){if(Ki(I))return I;if("number"==typeof I&&!isNaN(I))return new Date(I);if("string"==typeof I){if(I=I.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(I)){const[ae,we=1,_e=1]=I.split("-").map(lt=>+lt);return yt(ae,we-1,_e)}const N=parseFloat(I);if(!isNaN(I-N))return new Date(N);let G;if(G=I.match(oi))return function Ge(I){const U=new Date(0);let N=0,G=0;const ae=I[8]?U.setUTCFullYear:U.setFullYear,we=I[8]?U.setUTCHours:U.setHours;I[9]&&(N=Number(I[9]+I[10]),G=Number(I[9]+I[11])),ae.call(U,Number(I[1]),Number(I[2])-1,Number(I[3]));const _e=Number(I[4]||0)-N,lt=Number(I[5]||0)-G,Oi=Number(I[6]||0),Ai=Math.floor(1e3*parseFloat("0."+(I[7]||0)));return we.call(U,_e,lt,Oi,Ai),U}(G)}const U=new Date(I);if(!Ki(U))throw new Error(`Unable to convert "${I}" into a date`);return U}(I);U=Ot(N,U)||U;let lt,_e=[];for(;U;){if(lt=ke.exec(U),!lt){_e.push(U);break}{_e=_e.concat(lt.slice(1));const wi=_e.pop();if(!wi)break;U=wi}}let Oi=ae.getTimezoneOffset();G&&(Oi=Ms(G,Oi),ae=function cn(I,U,N){const G=N?-1:1,ae=I.getTimezoneOffset();return function di(I,U){return(I=new Date(I.getTime())).setMinutes(I.getMinutes()+U),I}(I,G*(Ms(U,ae)-ae))}(ae,G,!0));let Ai="";return _e.forEach(wi=>{const ti=function Ad(I){if(da[I])return da[I];let U;switch(I){case"G":case"GG":case"GGG":U=St(ue.Eras,me.Abbreviated);break;case"GGGG":U=St(ue.Eras,me.Wide);break;case"GGGGG":U=St(ue.Eras,me.Narrow);break;case"y":U=Pt(te.FullYear,1,0,!1,!0);break;case"yy":U=Pt(te.FullYear,2,0,!0,!0);break;case"yyy":U=Pt(te.FullYear,3,0,!1,!0);break;case"yyyy":U=Pt(te.FullYear,4,0,!1,!0);break;case"Y":U=yr(1);break;case"YY":U=yr(2,!0);break;case"YYY":U=yr(3);break;case"YYYY":U=yr(4);break;case"M":case"L":U=Pt(te.Month,1,1);break;case"MM":case"LL":U=Pt(te.Month,2,1);break;case"MMM":U=St(ue.Months,me.Abbreviated);break;case"MMMM":U=St(ue.Months,me.Wide);break;case"MMMMM":U=St(ue.Months,me.Narrow);break;case"LLL":U=St(ue.Months,me.Abbreviated,pe.Standalone);break;case"LLLL":U=St(ue.Months,me.Wide,pe.Standalone);break;case"LLLLL":U=St(ue.Months,me.Narrow,pe.Standalone);break;case"w":U=Lr(1);break;case"ww":U=Lr(2);break;case"W":U=Lr(1,!0);break;case"d":U=Pt(te.Date,1);break;case"dd":U=Pt(te.Date,2);break;case"c":case"cc":U=Pt(te.Day,1);break;case"ccc":U=St(ue.Days,me.Abbreviated,pe.Standalone);break;case"cccc":U=St(ue.Days,me.Wide,pe.Standalone);break;case"ccccc":U=St(ue.Days,me.Narrow,pe.Standalone);break;case"cccccc":U=St(ue.Days,me.Short,pe.Standalone);break;case"E":case"EE":case"EEE":U=St(ue.Days,me.Abbreviated);break;case"EEEE":U=St(ue.Days,me.Wide);break;case"EEEEE":U=St(ue.Days,me.Narrow);break;case"EEEEEE":U=St(ue.Days,me.Short);break;case"a":case"aa":case"aaa":U=St(ue.DayPeriods,me.Abbreviated);break;case"aaaa":U=St(ue.DayPeriods,me.Wide);break;case"aaaaa":U=St(ue.DayPeriods,me.Narrow);break;case"b":case"bb":case"bbb":U=St(ue.DayPeriods,me.Abbreviated,pe.Standalone,!0);break;case"bbbb":U=St(ue.DayPeriods,me.Wide,pe.Standalone,!0);break;case"bbbbb":U=St(ue.DayPeriods,me.Narrow,pe.Standalone,!0);break;case"B":case"BB":case"BBB":U=St(ue.DayPeriods,me.Abbreviated,pe.Format,!0);break;case"BBBB":U=St(ue.DayPeriods,me.Wide,pe.Format,!0);break;case"BBBBB":U=St(ue.DayPeriods,me.Narrow,pe.Format,!0);break;case"h":U=Pt(te.Hours,1,-12);break;case"hh":U=Pt(te.Hours,2,-12);break;case"H":U=Pt(te.Hours,1);break;case"HH":U=Pt(te.Hours,2);break;case"m":U=Pt(te.Minutes,1);break;case"mm":U=Pt(te.Minutes,2);break;case"s":U=Pt(te.Seconds,1);break;case"ss":U=Pt(te.Seconds,2);break;case"S":U=Pt(te.FractionalSeconds,1);break;case"SS":U=Pt(te.FractionalSeconds,2);break;case"SSS":U=Pt(te.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":U=vt(se.Short);break;case"ZZZZZ":U=vt(se.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":U=vt(se.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":U=vt(se.Long);break;default:return null}return da[I]=U,U}(wi);Ai+=ti?ti(ae,N,Oi):"''"===wi?"'":wi.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),Ai}function yt(I,U,N){const G=new Date(0);return G.setFullYear(I,U,N),G.setHours(0,0,0),G}function Ot(I,U){const N=function We(I){return(0,w.cg1)(I)[w.wAp.LocaleId]}(I);if(Xt[N]=Xt[N]||{},Xt[N][U])return Xt[N][U];let G="";switch(U){case"shortDate":G=$e(I,ve.Short);break;case"mediumDate":G=$e(I,ve.Medium);break;case"longDate":G=$e(I,ve.Long);break;case"fullDate":G=$e(I,ve.Full);break;case"shortTime":G=si(I,ve.Short);break;case"mediumTime":G=si(I,ve.Medium);break;case"longTime":G=si(I,ve.Long);break;case"fullTime":G=si(I,ve.Full);break;case"short":const ae=Ot(I,"shortTime"),we=Ot(I,"shortDate");G=tt(Wn(I,ve.Short),[ae,we]);break;case"medium":const _e=Ot(I,"mediumTime"),lt=Ot(I,"mediumDate");G=tt(Wn(I,ve.Medium),[_e,lt]);break;case"long":const Oi=Ot(I,"longTime"),Ai=Ot(I,"longDate");G=tt(Wn(I,ve.Long),[Oi,Ai]);break;case"full":const wi=Ot(I,"fullTime"),ti=Ot(I,"fullDate");G=tt(Wn(I,ve.Full),[wi,ti])}return G&&(Xt[N][U]=G),G}function tt(I,U){return U&&(I=I.replace(/\{([^}]+)}/g,function(N,G){return null!=U&&G in U?U[G]:N})),I}function Tt(I,U,N="-",G,ae){let we="";(I<0||ae&&I<=0)&&(ae?I=1-I:(I=-I,we=N));let _e=String(I);for(;_e.length0||lt>-N)&&(lt+=N),I===te.Hours)0===lt&&-12===N&&(lt=12);else if(I===te.FractionalSeconds)return function Ui(I,U){return Tt(I,3).substring(0,U)}(lt,U);const Oi=Mi(_e,Me.MinusSign);return Tt(lt,U,Oi,G,ae)}}function St(I,U,N=pe.Format,G=!1){return function(ae,we){return function Yt(I,U,N,G,ae,we){switch(N){case ue.Months:return function ai(I,U,N){const G=(0,w.cg1)(I),we=Ye([G[w.wAp.MonthsFormat],G[w.wAp.MonthsStandalone]],U);return Ye(we,N)}(U,ae,G)[I.getMonth()];case ue.Days:return function Bt(I,U,N){const G=(0,w.cg1)(I),we=Ye([G[w.wAp.DaysFormat],G[w.wAp.DaysStandalone]],U);return Ye(we,N)}(U,ae,G)[I.getDay()];case ue.DayPeriods:const _e=I.getHours(),lt=I.getMinutes();if(we){const Ai=function de(I){const U=(0,w.cg1)(I);return jn(U),(U[w.wAp.ExtraData][2]||[]).map(G=>"string"==typeof G?st(G):[st(G[0]),st(G[1])])}(U),wi=function Oe(I,U,N){const G=(0,w.cg1)(I);jn(G);const we=Ye([G[w.wAp.ExtraData][0],G[w.wAp.ExtraData][1]],U)||[];return Ye(we,N)||[]}(U,ae,G),ti=Ai.findIndex(Tn=>{if(Array.isArray(Tn)){const[it,tn]=Tn,ye=_e>=it.hours&<>=it.minutes,ht=_e0?Math.floor(ae/60):Math.ceil(ae/60);switch(I){case se.Short:return(ae>=0?"+":"")+Tt(_e,2,we)+Tt(Math.abs(ae%60),2,we);case se.ShortGMT:return"GMT"+(ae>=0?"+":"")+Tt(_e,1,we);case se.Long:return"GMT"+(ae>=0?"+":"")+Tt(_e,2,we)+":"+Tt(Math.abs(ae%60),2,we);case se.Extended:return 0===G?"Z":(ae>=0?"+":"")+Tt(_e,2,we)+":"+Tt(Math.abs(ae%60),2,we);default:throw new Error(`Unknown zone width "${I}"`)}}}function Wr(I){return yt(I.getFullYear(),I.getMonth(),I.getDate()+(4-I.getDay()))}function Lr(I,U=!1){return function(N,G){let ae;if(U){const we=new Date(N.getFullYear(),N.getMonth(),1).getDay()-1,_e=N.getDate();ae=1+Math.floor((_e+we)/7)}else{const we=Wr(N),_e=function Xi(I){const U=yt(I,0,1).getDay();return yt(I,0,1+(U<=4?4:11)-U)}(we.getFullYear()),lt=we.getTime()-_e.getTime();ae=1+Math.round(lt/6048e5)}return Tt(ae,I,Mi(G,Me.MinusSign))}}function yr(I,U=!1){return function(N,G){return Tt(Wr(N).getFullYear(),I,Mi(G,Me.MinusSign),U)}}const da={};function Ms(I,U){I=I.replace(/:/g,"");const N=Date.parse("Jan 01, 1970 00:00:00 "+I)/6e4;return isNaN(N)?U:N}function Ki(I){return I instanceof Date&&!isNaN(I.valueOf())}function At(I,U){U=encodeURIComponent(U);for(const N of I.split(";")){const G=N.indexOf("="),[ae,we]=-1==G?[N,""]:[N.slice(0,G),N.slice(G+1)];if(ae.trim()===U)return decodeURIComponent(we)}return null}let Pr=(()=>{class I{constructor(N,G,ae,we){this._iterableDiffers=N,this._keyValueDiffers=G,this._ngEl=ae,this._renderer=we,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(N){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof N?N.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(N){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof N?N.split(/\s+/):N,this._rawClass&&((0,w.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const N=this._iterableDiffer.diff(this._rawClass);N&&this._applyIterableChanges(N)}else if(this._keyValueDiffer){const N=this._keyValueDiffer.diff(this._rawClass);N&&this._applyKeyValueChanges(N)}}_applyKeyValueChanges(N){N.forEachAddedItem(G=>this._toggleClass(G.key,G.currentValue)),N.forEachChangedItem(G=>this._toggleClass(G.key,G.currentValue)),N.forEachRemovedItem(G=>{G.previousValue&&this._toggleClass(G.key,!1)})}_applyIterableChanges(N){N.forEachAddedItem(G=>{if("string"!=typeof G.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,w.AaK)(G.item)}`);this._toggleClass(G.item,!0)}),N.forEachRemovedItem(G=>this._toggleClass(G.item,!1))}_applyClasses(N){N&&(Array.isArray(N)||N instanceof Set?N.forEach(G=>this._toggleClass(G,!0)):Object.keys(N).forEach(G=>this._toggleClass(G,!!N[G])))}_removeClasses(N){N&&(Array.isArray(N)||N instanceof Set?N.forEach(G=>this._toggleClass(G,!1)):Object.keys(N).forEach(G=>this._toggleClass(G,!1)))}_toggleClass(N,G){(N=N.trim())&&N.split(/\s+/g).forEach(ae=>{G?this._renderer.addClass(this._ngEl.nativeElement,ae):this._renderer.removeClass(this._ngEl.nativeElement,ae)})}}return I.\u0275fac=function(N){return new(N||I)(w.Y36(w.ZZ4),w.Y36(w.aQg),w.Y36(w.SBq),w.Y36(w.Qsj))},I.\u0275dir=w.lG2({type:I,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),I})();class pa{constructor(U,N,G,ae){this.$implicit=U,this.ngForOf=N,this.index=G,this.count=ae}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 Mr=(()=>{class I{constructor(N,G,ae){this._viewContainer=N,this._template=G,this._differs=ae,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(N){this._ngForOf=N,this._ngForOfDirty=!0}set ngForTrackBy(N){this._trackByFn=N}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(N){N&&(this._template=N)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const N=this._ngForOf;!this._differ&&N&&(this._differ=this._differs.find(N).create(this.ngForTrackBy))}if(this._differ){const N=this._differ.diff(this._ngForOf);N&&this._applyChanges(N)}}_applyChanges(N){const G=this._viewContainer;N.forEachOperation((ae,we,_e)=>{if(null==ae.previousIndex)G.createEmbeddedView(this._template,new pa(ae.item,this._ngForOf,-1,-1),null===_e?void 0:_e);else if(null==_e)G.remove(null===we?void 0:we);else if(null!==we){const lt=G.get(we);G.move(lt,_e),Gi(lt,ae)}});for(let ae=0,we=G.length;ae{Gi(G.get(ae.currentIndex),ae)})}static ngTemplateContextGuard(N,G){return!0}}return I.\u0275fac=function(N){return new(N||I)(w.Y36(w.s_b),w.Y36(w.Rgc),w.Y36(w.ZZ4))},I.\u0275dir=w.lG2({type:I,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),I})();function Gi(I,U){I.context.$implicit=U.item}let bn=(()=>{class I{constructor(N,G){this._viewContainer=N,this._context=new $n,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=G}set ngIf(N){this._context.$implicit=this._context.ngIf=N,this._updateView()}set ngIfThen(N){lr("ngIfThen",N),this._thenTemplateRef=N,this._thenViewRef=null,this._updateView()}set ngIfElse(N){lr("ngIfElse",N),this._elseTemplateRef=N,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(N,G){return!0}}return I.\u0275fac=function(N){return new(N||I)(w.Y36(w.s_b),w.Y36(w.Rgc))},I.\u0275dir=w.lG2({type:I,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),I})();class $n{constructor(){this.$implicit=null,this.ngIf=null}}function lr(I,U){if(U&&!U.createEmbeddedView)throw new Error(`${I} must be a TemplateRef, but received '${(0,w.AaK)(U)}'.`)}class Zr{constructor(U,N){this._viewContainerRef=U,this._templateRef=N,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(U){U&&!this._created?this.create():!U&&this._created&&this.destroy()}}let wr=(()=>{class I{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(N){this._ngSwitch=N,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(N){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(N)}_matchCase(N){const G=N==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||G,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),G}_updateDefaultCases(N){if(this._defaultViews&&N!==this._defaultUsed){this._defaultUsed=N;for(let G=0;G{class I{constructor(N,G,ae){this.ngSwitch=ae,ae._addCase(),this._view=new Zr(N,G)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return I.\u0275fac=function(N){return new(N||I)(w.Y36(w.s_b),w.Y36(w.Rgc),w.Y36(wr,9))},I.\u0275dir=w.lG2({type:I,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),I})(),fa=(()=>{class I{constructor(N,G,ae){ae._addDefault(new Zr(N,G))}}return I.\u0275fac=function(N){return new(N||I)(w.Y36(w.s_b),w.Y36(w.Rgc),w.Y36(wr,9))},I.\u0275dir=w.lG2({type:I,selectors:[["","ngSwitchDefault",""]],standalone:!0}),I})(),cr=(()=>{class I{constructor(N,G,ae){this._ngEl=N,this._differs=G,this._renderer=ae,this._ngStyle=null,this._differ=null}set ngStyle(N){this._ngStyle=N,!this._differ&&N&&(this._differ=this._differs.find(N).create())}ngDoCheck(){if(this._differ){const N=this._differ.diff(this._ngStyle);N&&this._applyChanges(N)}}_setStyle(N,G){const[ae,we]=N.split("."),_e=-1===ae.indexOf("-")?void 0:w.JOm.DashCase;null!=G?this._renderer.setStyle(this._ngEl.nativeElement,ae,we?`${G}${we}`:G,_e):this._renderer.removeStyle(this._ngEl.nativeElement,ae,_e)}_applyChanges(N){N.forEachRemovedItem(G=>this._setStyle(G.key,null)),N.forEachAddedItem(G=>this._setStyle(G.key,G.currentValue)),N.forEachChangedItem(G=>this._setStyle(G.key,G.currentValue))}}return I.\u0275fac=function(N){return new(N||I)(w.Y36(w.SBq),w.Y36(w.aQg),w.Y36(w.Qsj))},I.\u0275dir=w.lG2({type:I,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),I})();function Qe(I,U){return new w.vHH(2100,!1)}class co{createSubscription(U,N){return U.subscribe({next:N,error:G=>{throw G}})}dispose(U){U.unsubscribe()}}class Gu{createSubscription(U,N){return U.then(N,G=>{throw G})}dispose(U){}}const M=new Gu,zi=new co;let Ri=(()=>{class I{constructor(N){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=N}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(N){return this._obj?N!==this._obj?(this._dispose(),this.transform(N)):this._latestValue:(N&&this._subscribe(N),this._latestValue)}_subscribe(N){this._obj=N,this._strategy=this._selectStrategy(N),this._subscription=this._strategy.createSubscription(N,G=>this._updateLatestValue(N,G))}_selectStrategy(N){if((0,w.QGY)(N))return M;if((0,w.F4k)(N))return zi;throw Qe()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(N,G){N===this._obj&&(this._latestValue=G,this._ref.markForCheck())}}return I.\u0275fac=function(N){return new(N||I)(w.Y36(w.sBO,16))},I.\u0275pipe=w.Yjl({name:"async",type:I,pure:!1,standalone:!0}),I})(),Md=(()=>{class I{transform(N){if(null==N)return null;if("string"!=typeof N)throw Qe();return N.toUpperCase()}}return I.\u0275fac=function(N){return new(N||I)},I.\u0275pipe=w.Yjl({name:"uppercase",type:I,pure:!0,standalone:!0}),I})();const Cs=new w.OlP("DATE_PIPE_DEFAULT_TIMEZONE");let el=(()=>{class I{constructor(N,G){this.locale=N,this.defaultTimezone=G}transform(N,G="mediumDate",ae,we){if(null==N||""===N||N!=N)return null;try{var _e;return Ie(N,G,we||this.locale,null!==(_e=ae??this.defaultTimezone)&&void 0!==_e?_e:void 0)}catch(lt){throw Qe()}}}return I.\u0275fac=function(N){return new(N||I)(w.Y36(w.soG,16),w.Y36(Cs,24))},I.\u0275pipe=w.Yjl({name:"date",type:I,pure:!0,standalone:!0}),I})(),uo=(()=>{class I{constructor(N){this.differs=N,this.keyValues=[],this.compareFn=ho}transform(N,G=ho){if(!N||!(N instanceof Map)&&"object"!=typeof N)return null;this.differ||(this.differ=this.differs.find(N).create());const ae=this.differ.diff(N),we=G!==this.compareFn;return ae&&(this.keyValues=[],ae.forEachItem(_e=>{this.keyValues.push(function ga(I,U){return{key:I,value:U}}(_e.key,_e.currentValue))})),(ae||we)&&(this.keyValues.sort(G),this.compareFn=G),this.keyValues}}return I.\u0275fac=function(N){return new(N||I)(w.Y36(w.aQg,16))},I.\u0275pipe=w.Yjl({name:"keyvalue",type:I,pure:!1,standalone:!0}),I})();function ho(I,U){const N=I.key,G=U.key;if(N===G)return 0;if(void 0===N)return 1;if(void 0===G)return-1;if(null===N)return 1;if(null===G)return-1;if("string"==typeof N&&"string"==typeof G)return N{class I{}return I.\u0275fac=function(N){return new(N||I)},I.\u0275mod=w.oAB({type:I}),I.\u0275inj=w.cJS({}),I})();const ei="browser";function Qu(I){return I===ei}function pf(I){return"server"===I}let _a=(()=>{class I{}return I.\u0275prov=(0,w.Yz7)({token:I,providedIn:"root",factory:()=>new dr((0,w.LFG)(k),window)}),I})();class dr{constructor(U,N){this.document=U,this.window=N,this.offset=()=>[0,0]}setOffset(U){this.offset=Array.isArray(U)?()=>U:U}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(U){this.supportsScrolling()&&this.window.scrollTo(U[0],U[1])}scrollToAnchor(U){if(!this.supportsScrolling())return;const N=function cc(I,U){const N=I.getElementById(U)||I.getElementsByName(U)[0];if(N)return N;if("function"==typeof I.createTreeWalker&&I.body&&(I.body.createShadowRoot||I.body.attachShadow)){const G=I.createTreeWalker(I.body,NodeFilter.SHOW_ELEMENT);let ae=G.currentNode;for(;ae;){const we=ae.shadowRoot;if(we){const _e=we.getElementById(U)||we.querySelector(`[name="${U}"]`);if(_e)return _e}ae=G.nextNode()}}return null}(this.document,U);N&&(this.scrollToElement(N),N.focus())}setHistoryScrollRestoration(U){if(this.supportScrollRestoration()){const N=this.window.history;N&&N.scrollRestoration&&(N.scrollRestoration=U)}}scrollToElement(U){const N=U.getBoundingClientRect(),G=N.left+this.window.pageXOffset,ae=N.top+this.window.pageYOffset,we=this.offset();this.window.scrollTo(G-we[0],ae-we[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const U=lc(this.window.history)||lc(Object.getPrototypeOf(this.window.history));return!(!U||!U.writable&&!U.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function lc(I){return Object.getOwnPropertyDescriptor(I,"scrollRestoration")}class Pn{}},529:(j,Y,T)=>{"use strict";T.d(Y,{JF:()=>gn,LE:()=>Te,TP:()=>Bt,WM:()=>J,Zn:()=>ve,eN:()=>We,qT:()=>Xe});var w=T(6895),i=T(4650),E=T(9646),x=T(9751),S=T(4351),P=T(9300),k=T(4004);class F{}class q{}class J{constructor(se){this.normalizedNames=new Map,this.lazyUpdate=null,se?this.lazyInit="string"==typeof se?()=>{this.headers=new Map,se.split("\n").forEach(te=>{const ue=te.indexOf(":");if(ue>0){const Ie=te.slice(0,ue),yt=Ie.toLowerCase(),Ot=te.slice(ue+1).trim();this.maybeSetNormalizedName(Ie,yt),this.headers.has(yt)?this.headers.get(yt).push(Ot):this.headers.set(yt,[Ot])}})}:()=>{this.headers=new Map,Object.keys(se).forEach(te=>{let ue=se[te];const Ie=te.toLowerCase();"string"==typeof ue&&(ue=[ue]),ue.length>0&&(this.headers.set(Ie,ue),this.maybeSetNormalizedName(te,Ie))})}:this.headers=new Map}has(se){return this.init(),this.headers.has(se.toLowerCase())}get(se){this.init();const te=this.headers.get(se.toLowerCase());return te&&te.length>0?te[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(se){return this.init(),this.headers.get(se.toLowerCase())||null}append(se,te){return this.clone({name:se,value:te,op:"a"})}set(se,te){return this.clone({name:se,value:te,op:"s"})}delete(se,te){return this.clone({name:se,value:te,op:"d"})}maybeSetNormalizedName(se,te){this.normalizedNames.has(te)||this.normalizedNames.set(te,se)}init(){this.lazyInit&&(this.lazyInit instanceof J?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(se=>this.applyUpdate(se)),this.lazyUpdate=null))}copyFrom(se){se.init(),Array.from(se.headers.keys()).forEach(te=>{this.headers.set(te,se.headers.get(te)),this.normalizedNames.set(te,se.normalizedNames.get(te))})}clone(se){const te=new J;return te.lazyInit=this.lazyInit&&this.lazyInit instanceof J?this.lazyInit:this,te.lazyUpdate=(this.lazyUpdate||[]).concat([se]),te}applyUpdate(se){const te=se.name.toLowerCase();switch(se.op){case"a":case"s":let ue=se.value;if("string"==typeof ue&&(ue=[ue]),0===ue.length)return;this.maybeSetNormalizedName(se.name,te);const Ie=("a"===se.op?this.headers.get(te):void 0)||[];Ie.push(...ue),this.headers.set(te,Ie);break;case"d":const yt=se.value;if(yt){let Ot=this.headers.get(te);if(!Ot)return;Ot=Ot.filter(tt=>-1===yt.indexOf(tt)),0===Ot.length?(this.headers.delete(te),this.normalizedNames.delete(te)):this.headers.set(te,Ot)}else this.headers.delete(te),this.normalizedNames.delete(te)}}forEach(se){this.init(),Array.from(this.normalizedNames.keys()).forEach(te=>se(this.normalizedNames.get(te),this.headers.get(te)))}}class ne{encodeKey(se){return ge(se)}encodeValue(se){return ge(se)}decodeKey(se){return decodeURIComponent(se)}decodeValue(se){return decodeURIComponent(se)}}const re=/%(\d[a-f0-9])/gi,ie={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function ge(ke){return encodeURIComponent(ke).replace(re,(se,te)=>{var ue;return null!==(ue=ie[te])&&void 0!==ue?ue:se})}function Ae(ke){return`${ke}`}class Te{constructor(se={}){if(this.updates=null,this.cloneFrom=null,this.encoder=se.encoder||new ne,se.fromString){if(se.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function le(ke,se){const te=new Map;return ke.length>0&&ke.replace(/^\?/,"").split("&").forEach(Ie=>{const yt=Ie.indexOf("="),[Ot,tt]=-1==yt?[se.decodeKey(Ie),""]:[se.decodeKey(Ie.slice(0,yt)),se.decodeValue(Ie.slice(yt+1))],Tt=te.get(Ot)||[];Tt.push(tt),te.set(Ot,Tt)}),te}(se.fromString,this.encoder)}else se.fromObject?(this.map=new Map,Object.keys(se.fromObject).forEach(te=>{const ue=se.fromObject[te],Ie=Array.isArray(ue)?ue.map(Ae):[Ae(ue)];this.map.set(te,Ie)})):this.map=null}has(se){return this.init(),this.map.has(se)}get(se){this.init();const te=this.map.get(se);return te?te[0]:null}getAll(se){return this.init(),this.map.get(se)||null}keys(){return this.init(),Array.from(this.map.keys())}append(se,te){return this.clone({param:se,value:te,op:"a"})}appendAll(se){const te=[];return Object.keys(se).forEach(ue=>{const Ie=se[ue];Array.isArray(Ie)?Ie.forEach(yt=>{te.push({param:ue,value:yt,op:"a"})}):te.push({param:ue,value:Ie,op:"a"})}),this.clone(te)}set(se,te){return this.clone({param:se,value:te,op:"s"})}delete(se,te){return this.clone({param:se,value:te,op:"d"})}toString(){return this.init(),this.keys().map(se=>{const te=this.encoder.encodeKey(se);return this.map.get(se).map(ue=>te+"="+this.encoder.encodeValue(ue)).join("&")}).filter(se=>""!==se).join("&")}clone(se){const te=new Te({encoder:this.encoder});return te.cloneFrom=this.cloneFrom||this,te.updates=(this.updates||[]).concat(se),te}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(se=>this.map.set(se,this.cloneFrom.map.get(se))),this.updates.forEach(se=>{switch(se.op){case"a":case"s":const te=("a"===se.op?this.map.get(se.param):void 0)||[];te.push(Ae(se.value)),this.map.set(se.param,te);break;case"d":if(void 0===se.value){this.map.delete(se.param);break}{let ue=this.map.get(se.param)||[];const Ie=ue.indexOf(Ae(se.value));-1!==Ie&&ue.splice(Ie,1),ue.length>0?this.map.set(se.param,ue):this.map.delete(se.param)}}}),this.cloneFrom=this.updates=null)}}class Xe{constructor(){this.map=new Map}set(se,te){return this.map.set(se,te),this}get(se){return this.map.has(se)||this.map.set(se,se.defaultValue()),this.map.get(se)}delete(se){return this.map.delete(se),this}has(se){return this.map.has(se)}keys(){return this.map.keys()}}function Se(ke){return typeof ArrayBuffer<"u"&&ke instanceof ArrayBuffer}function He(ke){return typeof Blob<"u"&&ke instanceof Blob}function ft(ke){return typeof FormData<"u"&&ke instanceof FormData}class ze{constructor(se,te,ue,Ie){let yt;if(this.url=te,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=se.toUpperCase(),function Re(ke){switch(ke){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Ie?(this.body=void 0!==ue?ue:null,yt=Ie):yt=ue,yt&&(this.reportProgress=!!yt.reportProgress,this.withCredentials=!!yt.withCredentials,yt.responseType&&(this.responseType=yt.responseType),yt.headers&&(this.headers=yt.headers),yt.context&&(this.context=yt.context),yt.params&&(this.params=yt.params)),this.headers||(this.headers=new J),this.context||(this.context=new Xe),this.params){const Ot=this.params.toString();if(0===Ot.length)this.urlWithParams=te;else{const tt=te.indexOf("?");this.urlWithParams=te+(-1===tt?"?":ttSt.set(Yt,se.setHeaders[Yt]),Ui)),se.setParams&&(Pt=Object.keys(se.setParams).reduce((St,Yt)=>St.set(Yt,se.setParams[Yt]),Pt)),new ze(ue,Ie,Ot,{params:Pt,headers:Ui,context:Ar,reportProgress:Tt,responseType:yt,withCredentials:tt})}}var Ve=(()=>((Ve=Ve||{})[Ve.Sent=0]="Sent",Ve[Ve.UploadProgress=1]="UploadProgress",Ve[Ve.ResponseHeader=2]="ResponseHeader",Ve[Ve.DownloadProgress=3]="DownloadProgress",Ve[Ve.Response=4]="Response",Ve[Ve.User=5]="User",Ve))();class pe{constructor(se,te=200,ue="OK"){this.headers=se.headers||new J,this.status=void 0!==se.status?se.status:te,this.statusText=se.statusText||ue,this.url=se.url||null,this.ok=this.status>=200&&this.status<300}}class me extends pe{constructor(se={}){super(se),this.type=Ve.ResponseHeader}clone(se={}){return new me({headers:se.headers||this.headers,status:void 0!==se.status?se.status:this.status,statusText:se.statusText||this.statusText,url:se.url||this.url||void 0})}}class ve extends pe{constructor(se={}){super(se),this.type=Ve.Response,this.body=void 0!==se.body?se.body:null}clone(se={}){return new ve({body:void 0!==se.body?se.body:this.body,headers:se.headers||this.headers,status:void 0!==se.status?se.status:this.status,statusText:se.statusText||this.statusText,url:se.url||this.url||void 0})}}class Me extends pe{constructor(se){super(se,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${se.url||"(unknown url)"}`:`Http failure response for ${se.url||"(unknown url)"}: ${se.status} ${se.statusText}`,this.error=se.error||null}}function Ue(ke,se){return{body:se,headers:ke.headers,context:ke.context,observe:ke.observe,params:ke.params,reportProgress:ke.reportProgress,responseType:ke.responseType,withCredentials:ke.withCredentials}}let We=(()=>{class ke{constructor(te){this.handler=te}request(te,ue,Ie={}){let yt;if(te instanceof ze)yt=te;else{let Tt,Ui;Tt=Ie.headers instanceof J?Ie.headers:new J(Ie.headers),Ie.params&&(Ui=Ie.params instanceof Te?Ie.params:new Te({fromObject:Ie.params})),yt=new ze(te,ue,void 0!==Ie.body?Ie.body:null,{headers:Tt,context:Ie.context,params:Ui,reportProgress:Ie.reportProgress,responseType:Ie.responseType||"json",withCredentials:Ie.withCredentials})}const Ot=(0,E.of)(yt).pipe((0,S.b)(Tt=>this.handler.handle(Tt)));if(te instanceof ze||"events"===Ie.observe)return Ot;const tt=Ot.pipe((0,P.h)(Tt=>Tt instanceof ve));switch(Ie.observe||"body"){case"body":switch(yt.responseType){case"arraybuffer":return tt.pipe((0,k.U)(Tt=>{if(null!==Tt.body&&!(Tt.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Tt.body}));case"blob":return tt.pipe((0,k.U)(Tt=>{if(null!==Tt.body&&!(Tt.body instanceof Blob))throw new Error("Response is not a Blob.");return Tt.body}));case"text":return tt.pipe((0,k.U)(Tt=>{if(null!==Tt.body&&"string"!=typeof Tt.body)throw new Error("Response is not a string.");return Tt.body}));default:return tt.pipe((0,k.U)(Tt=>Tt.body))}case"response":return tt;default:throw new Error(`Unreachable: unhandled observe type ${Ie.observe}}`)}}delete(te,ue={}){return this.request("DELETE",te,ue)}get(te,ue={}){return this.request("GET",te,ue)}head(te,ue={}){return this.request("HEAD",te,ue)}jsonp(te,ue){return this.request("JSONP",te,{params:(new Te).append(ue,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(te,ue={}){return this.request("OPTIONS",te,ue)}patch(te,ue,Ie={}){return this.request("PATCH",te,Ue(Ie,ue))}post(te,ue,Ie={}){return this.request("POST",te,Ue(Ie,ue))}put(te,ue,Ie={}){return this.request("PUT",te,Ue(Ie,ue))}}return ke.\u0275fac=function(te){return new(te||ke)(i.LFG(F))},ke.\u0275prov=i.Yz7({token:ke,factory:ke.\u0275fac}),ke})();class mt{constructor(se,te){this.next=se,this.interceptor=te}handle(se){return this.interceptor.intercept(se,this.next)}}const Bt=new i.OlP("HTTP_INTERCEPTORS");let ai=(()=>{class ke{intercept(te,ue){return ue.handle(te)}}return ke.\u0275fac=function(te){return new(te||ke)},ke.\u0275prov=i.Yz7({token:ke,factory:ke.\u0275fac}),ke})();const vn=/^\)\]\}',?\n/;let ca=(()=>{class ke{constructor(te){this.xhrFactory=te}handle(te){if("JSONP"===te.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new x.y(ue=>{const Ie=this.xhrFactory.build();if(Ie.open(te.method,te.urlWithParams),te.withCredentials&&(Ie.withCredentials=!0),te.headers.forEach((Yt,vt)=>Ie.setRequestHeader(Yt,vt.join(","))),te.headers.has("Accept")||Ie.setRequestHeader("Accept","application/json, text/plain, */*"),!te.headers.has("Content-Type")){const Yt=te.detectContentTypeHeader();null!==Yt&&Ie.setRequestHeader("Content-Type",Yt)}if(te.responseType){const Yt=te.responseType.toLowerCase();Ie.responseType="json"!==Yt?Yt:"text"}const yt=te.serializeBody();let Ot=null;const tt=()=>{if(null!==Ot)return Ot;const Yt=Ie.statusText||"OK",vt=new J(Ie.getAllResponseHeaders()),or=function so(ke){return"responseURL"in ke&&ke.responseURL?ke.responseURL:/^X-Request-URL:/m.test(ke.getAllResponseHeaders())?ke.getResponseHeader("X-Request-URL"):null}(Ie)||te.url;return Ot=new me({headers:vt,status:Ie.status,statusText:Yt,url:or}),Ot},Tt=()=>{let{headers:Yt,status:vt,statusText:or,url:Yr}=tt(),Xi=null;204!==vt&&(Xi=typeof Ie.response>"u"?Ie.responseText:Ie.response),0===vt&&(vt=Xi?200:0);let Wr=vt>=200&&vt<300;if("json"===te.responseType&&"string"==typeof Xi){const Lr=Xi;Xi=Xi.replace(vn,"");try{Xi=""!==Xi?JSON.parse(Xi):null}catch(yr){Xi=Lr,Wr&&(Wr=!1,Xi={error:yr,text:Xi})}}Wr?(ue.next(new ve({body:Xi,headers:Yt,status:vt,statusText:or,url:Yr||void 0})),ue.complete()):ue.error(new Me({error:Xi,headers:Yt,status:vt,statusText:or,url:Yr||void 0}))},Ui=Yt=>{const{url:vt}=tt(),or=new Me({error:Yt,status:Ie.status||0,statusText:Ie.statusText||"Unknown Error",url:vt||void 0});ue.error(or)};let Pt=!1;const Ar=Yt=>{Pt||(ue.next(tt()),Pt=!0);let vt={type:Ve.DownloadProgress,loaded:Yt.loaded};Yt.lengthComputable&&(vt.total=Yt.total),"text"===te.responseType&&!!Ie.responseText&&(vt.partialText=Ie.responseText),ue.next(vt)},St=Yt=>{let vt={type:Ve.UploadProgress,loaded:Yt.loaded};Yt.lengthComputable&&(vt.total=Yt.total),ue.next(vt)};return Ie.addEventListener("load",Tt),Ie.addEventListener("error",Ui),Ie.addEventListener("timeout",Ui),Ie.addEventListener("abort",Ui),te.reportProgress&&(Ie.addEventListener("progress",Ar),null!==yt&&Ie.upload&&Ie.upload.addEventListener("progress",St)),Ie.send(yt),ue.next({type:Ve.Sent}),()=>{Ie.removeEventListener("error",Ui),Ie.removeEventListener("abort",Ui),Ie.removeEventListener("load",Tt),Ie.removeEventListener("timeout",Ui),te.reportProgress&&(Ie.removeEventListener("progress",Ar),null!==yt&&Ie.upload&&Ie.upload.removeEventListener("progress",St)),Ie.readyState!==Ie.DONE&&Ie.abort()}})}}return ke.\u0275fac=function(te){return new(te||ke)(i.LFG(w.JF))},ke.\u0275prov=i.Yz7({token:ke,factory:ke.\u0275fac}),ke})();const br=new i.OlP("XSRF_COOKIE_NAME"),jn=new i.OlP("XSRF_HEADER_NAME");class de{}let Oe=(()=>{class ke{constructor(te,ue,Ie){this.doc=te,this.platform=ue,this.cookieName=Ie,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const te=this.doc.cookie||"";return te!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,w.Mx)(te,this.cookieName),this.lastCookieString=te),this.lastToken}}return ke.\u0275fac=function(te){return new(te||ke)(i.LFG(w.K0),i.LFG(i.Lbi),i.LFG(br))},ke.\u0275prov=i.Yz7({token:ke,factory:ke.\u0275fac}),ke})(),be=(()=>{class ke{constructor(te,ue){this.tokenService=te,this.headerName=ue}intercept(te,ue){const Ie=te.url.toLowerCase();if("GET"===te.method||"HEAD"===te.method||Ie.startsWith("http://")||Ie.startsWith("https://"))return ue.handle(te);const yt=this.tokenService.getToken();return null!==yt&&!te.headers.has(this.headerName)&&(te=te.clone({headers:te.headers.set(this.headerName,yt)})),ue.handle(te)}}return ke.\u0275fac=function(te){return new(te||ke)(i.LFG(de),i.LFG(jn))},ke.\u0275prov=i.Yz7({token:ke,factory:ke.\u0275fac}),ke})(),Ye=(()=>{class ke{constructor(te,ue){this.backend=te,this.injector=ue,this.chain=null}handle(te){if(null===this.chain){const ue=this.injector.get(Bt,[]);this.chain=ue.reduceRight((Ie,yt)=>new mt(Ie,yt),this.backend)}return this.chain.handle(te)}}return ke.\u0275fac=function(te){return new(te||ke)(i.LFG(q),i.LFG(i.zs3))},ke.\u0275prov=i.Yz7({token:ke,factory:ke.\u0275fac}),ke})(),Ut=(()=>{class ke{static disable(){return{ngModule:ke,providers:[{provide:be,useClass:ai}]}}static withOptions(te={}){return{ngModule:ke,providers:[te.cookieName?{provide:br,useValue:te.cookieName}:[],te.headerName?{provide:jn,useValue:te.headerName}:[]]}}}return ke.\u0275fac=function(te){return new(te||ke)},ke.\u0275mod=i.oAB({type:ke}),ke.\u0275inj=i.cJS({providers:[be,{provide:Bt,useExisting:be,multi:!0},{provide:de,useClass:Oe},{provide:br,useValue:"XSRF-TOKEN"},{provide:jn,useValue:"X-XSRF-TOKEN"}]}),ke})(),gn=(()=>{class ke{}return ke.\u0275fac=function(te){return new(te||ke)},ke.\u0275mod=i.oAB({type:ke}),ke.\u0275inj=i.cJS({providers:[We,{provide:F,useClass:Ye},ca,{provide:q,useExisting:ca}],imports:[Ut.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),ke})()},4650:(j,Y,T)=>{"use strict";T.d(Y,{$8M:()=>ml,$Z:()=>N1,AFp:()=>ld,ALo:()=>Sm,AaK:()=>F,AsE:()=>U0,B6R:()=>Yr,BQk:()=>up,CHM:()=>Ii,CRH:()=>Sb,CZH:()=>cs,CqO:()=>v_,D6c:()=>oE,DdM:()=>Tm,Dn7:()=>HC,EJc:()=>uv,EiD:()=>Lh,EpF:()=>qc,F$t:()=>S_,F4k:()=>C_,FYo:()=>So,FiY:()=>Tl,G48:()=>$S,Gf:()=>id,GfV:()=>s1,GkF:()=>jc,Gpc:()=>Q,Gre:()=>z_,Hsn:()=>ar,Ikx:()=>bp,JOm:()=>Fs,JVY:()=>My,Jf7:()=>aM,KtG:()=>Rr,L6k:()=>wy,LAX:()=>vy,LFG:()=>Bi,LSH:()=>Ec,Lbi:()=>lv,Lck:()=>mC,MAs:()=>A_,MGl:()=>yu,MMx:()=>Nu,NdJ:()=>Gs,O4$:()=>_c,OlP:()=>Ti,Oqu:()=>Ra,PXZ:()=>Qi,Q2q:()=>g_,Q6J:()=>Fl,QGY:()=>hp,QP$:()=>rd,QbO:()=>cv,Qsj:()=>a1,R0b:()=>Er,RDi:()=>O,Rgc:()=>Vu,SBq:()=>Gd,Sil:()=>fv,Suo:()=>xb,TTD:()=>ho,TgZ:()=>cp,Tol:()=>k_,Udp:()=>z0,VKq:()=>_b,WFA:()=>pp,WLB:()=>bb,XFs:()=>be,Xpm:()=>or,Xts:()=>Qa,Y36:()=>zs,YKP:()=>aa,YNc:()=>R0,Yjl:()=>Ms,Yz7:()=>si,ZZ4:()=>tg,_Bn:()=>Sp,_UZ:()=>M_,_Vd:()=>Rc,_c5:()=>aE,_uU:()=>N_,aQg:()=>sA,c2e:()=>dv,cJS:()=>Mi,cg1:()=>Ap,d8E:()=>Wc,dDg:()=>fn,dqk:()=>ue,eBb:()=>Cy,eFA:()=>Jb,ekj:()=>j0,eoX:()=>Wb,f3M:()=>yh,g9A:()=>Ym,h0i:()=>Zc,hGG:()=>sE,hYB:()=>fp,hij:()=>gp,iGM:()=>Fu,ifc:()=>te,ip1:()=>qm,kL8:()=>yp,kcU:()=>th,lG2:()=>Ad,lcZ:()=>Em,lqb:()=>Hl,lri:()=>xi,mCW:()=>xc,n5z:()=>dh,n_E:()=>Pp,oAB:()=>Lr,oJD:()=>Ug,oxw:()=>x_,pB0:()=>Eh,q3G:()=>an,qLn:()=>Eo,qOj:()=>E0,qZA:()=>k0,qzn:()=>Dl,rWj:()=>Yb,s9C:()=>I0,sBO:()=>xv,sIi:()=>Nc,s_b:()=>kp,soG:()=>Wp,tb:()=>Fb,tp0:()=>$a,uIk:()=>m_,vHH:()=>ie,vpe:()=>ls,wAp:()=>Mt,xDo:()=>_p,xi3:()=>DC,xp6:()=>n0,ynx:()=>dp,z2F:()=>Xm,z3N:()=>zr,zSh:()=>If,zs3:()=>Ho});var w=T(7579),i=T(727),E=T(9751),x=T(6451),S=T(3099);function P(p){for(let m in p)if(p[m]===P)return m;throw Error("Could not find renamed property on target object.")}function k(p,m){for(const g in m)m.hasOwnProperty(g)&&!p.hasOwnProperty(g)&&(p[g]=m[g])}function F(p){if("string"==typeof p)return p;if(Array.isArray(p))return"["+p.map(F).join(", ")+"]";if(null==p)return""+p;if(p.overriddenName)return`${p.overriddenName}`;if(p.name)return`${p.name}`;const m=p.toString();if(null==m)return""+m;const g=m.indexOf("\n");return-1===g?m:m.substring(0,g)}function q(p,m){return null==p||""===p?null===m?"":m:null==m||""===m?p:p+" "+m}const J=P({__forward_ref__:P});function Q(p){return p.__forward_ref__=Q,p.toString=function(){return F(this())},p}function ne(p){return le(p)?p():p}function le(p){return"function"==typeof p&&p.hasOwnProperty(J)&&p.__forward_ref__===Q}class ie extends Error{constructor(m,g){super(function ge(p,m){return`NG0${Math.abs(p)}${m?": "+m.trim():""}`}(m,g)),this.code=m}}function Ae(p){return"string"==typeof p?p:null==p?"":String(p)}function Se(p,m){throw new ie(-201,!1)}function ai(p,m){null==p&&function Ke(p,m,g,_){throw new Error(`ASSERTION ERROR: ${p}`+(null==_?"":` [Expected=> ${g} ${_} ${m} <=Actual]`))}(m,p,null,"!=")}function si(p){return{token:p.token,providedIn:p.providedIn||null,factory:p.factory,value:void 0}}function Mi(p){return{providers:p.providers||[],imports:p.imports||[]}}function Ln(p){return ci(p,br)||ci(p,de)}function ci(p,m){return p.hasOwnProperty(m)?p[m]:null}function ca(p){return p&&(p.hasOwnProperty(jn)||p.hasOwnProperty(Oe))?p[jn]:null}const br=P({\u0275prov:P}),jn=P({\u0275inj:P}),de=P({ngInjectableDef:P}),Oe=P({ngInjectorDef:P});var be=(()=>((be=be||{})[be.Default=0]="Default",be[be.Host=1]="Host",be[be.Self=2]="Self",be[be.SkipSelf=4]="SkipSelf",be[be.Optional=8]="Optional",be))();let Ye;function ot(p){const m=Ye;return Ye=p,m}function Ut(p,m,g){const _=Ln(p);return _&&"root"==_.providedIn?void 0===_.value?_.value=_.factory():_.value:g&be.Optional?null:void 0!==m?m:void Se(F(p))}function oi(p){return{toString:p}.toString()}var Xt=(()=>((Xt=Xt||{})[Xt.OnPush=0]="OnPush",Xt[Xt.Default=1]="Default",Xt))(),te=(()=>{return(p=te||(te={}))[p.Emulated=0]="Emulated",p[p.None=2]="None",p[p.ShadowDom=3]="ShadowDom",te;var p})();const ue=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),Ot={},tt=[],Tt=P({\u0275cmp:P}),Ui=P({\u0275dir:P}),Pt=P({\u0275pipe:P}),Ar=P({\u0275mod:P}),St=P({\u0275fac:P}),Yt=P({__NG_ELEMENT_ID__:P});let vt=0;function or(p){return oi(()=>{const g=!0===p.standalone,_={},y={type:p.type,providersResolver:null,decls:p.decls,vars:p.vars,factory:null,template:p.template||null,consts:p.consts||null,ngContentSelectors:p.ngContentSelectors,hostBindings:p.hostBindings||null,hostVars:p.hostVars||0,hostAttrs:p.hostAttrs||null,contentQueries:p.contentQueries||null,declaredInputs:_,inputs:null,outputs:null,exportAs:p.exportAs||null,onPush:p.changeDetection===Xt.OnPush,directiveDefs:null,pipeDefs:null,standalone:g,dependencies:g&&p.dependencies||null,getStandaloneInjector:null,selectors:p.selectors||tt,viewQuery:p.viewQuery||null,features:p.features||null,data:p.data||{},encapsulation:p.encapsulation||te.Emulated,id:"c"+vt++,styles:p.styles||tt,_:null,setInput:null,schemas:p.schemas||null,tView:null},C=p.dependencies,D=p.features;return y.inputs=da(p.inputs,_),y.outputs=da(p.outputs),D&&D.forEach(L=>L(y)),y.directiveDefs=C?()=>("function"==typeof C?C():C).map(Xi).filter(Wr):null,y.pipeDefs=C?()=>("function"==typeof C?C():C).map(_n).filter(Wr):null,y})}function Yr(p,m,g){const _=p.\u0275cmp;_.directiveDefs=()=>("function"==typeof m?m():m).map(Xi),_.pipeDefs=()=>("function"==typeof g?g():g).map(_n)}function Xi(p){return di(p)||cn(p)}function Wr(p){return null!==p}function Lr(p){return oi(()=>({type:p.type,bootstrap:p.bootstrap||tt,declarations:p.declarations||tt,imports:p.imports||tt,exports:p.exports||tt,transitiveCompileScopes:null,schemas:p.schemas||null,id:p.id||null}))}function da(p,m){if(null==p)return Ot;const g={};for(const _ in p)if(p.hasOwnProperty(_)){let y=p[_],C=y;Array.isArray(y)&&(C=y[1],y=y[0]),g[y]=_,m&&(m[y]=C)}return g}const Ad=or;function Ms(p){return{type:p.type,name:p.name,factory:null,pure:!1!==p.pure,standalone:!0===p.standalone,onDestroy:p.type.prototype.ngOnDestroy||null}}function di(p){return p[Tt]||null}function cn(p){return p[Ui]||null}function _n(p){return p[Pt]||null}function Ge(p,m){const g=p[Ar]||null;if(!g&&!0===m)throw new Error(`Type ${F(p)} does not have '\u0275mod' property.`);return g}function bn(p){return Array.isArray(p)&&"object"==typeof p[1]}function $n(p){return Array.isArray(p)&&!0===p[1]}function lr(p){return 0!=(8&p.flags)}function Zr(p){return 2==(2&p.flags)}function wr(p){return 1==(1&p.flags)}function Zn(p){return null!==p.template}function fa(p){return 0!=(256&p[2])}function ga(p,m){return p.hasOwnProperty(St)?p[St]:null}class uo{constructor(m,g,_){this.previousValue=m,this.currentValue=g,this.firstChange=_}isFirstChange(){return this.firstChange}}function ho(){return Jr}function Jr(p){return p.type.prototype.ngOnChanges&&(p.setInput=po),wd}function wd(){const p=Qr(this),m=p?.current;if(m){const g=p.previous;if(g===Ot)p.previous=m;else for(let _ in m)g[_]=m[_];p.current=null,this.ngOnChanges(m)}}function po(p,m,g,_){const y=Qr(p)||function tl(p,m){return p[Ts]=m}(p,{previous:Ot,current:null}),C=y.current||(y.current={}),D=y.previous,L=this.declaredInputs[g],R=D[L];C[L]=new uo(R&&R.currentValue,m,D===Ot),p[_]=m}ho.ngInherit=!0;const Ts="__ngSimpleChanges__";function Qr(p){return p[Ts]||null}function en(p){for(;Array.isArray(p);)p=p[0];return p}function _a(p,m){return en(m[p])}function dr(p,m){return en(m[p.index])}function cc(p,m){return p.data[m]}function mo(p,m){return p[m]}function Pn(p,m){const g=m[p];return bn(g)?g:g[0]}function I(p){return 4==(4&p[2])}function U(p){return 64==(64&p[2])}function G(p,m){return null==m?null:p[m]}function ae(p){p[18]=0}function we(p,m){p[5]+=m;let g=p,_=p[3];for(;null!==_&&(1===m&&1===g[5]||-1===m&&0===g[5]);)_[5]+=m,g=_,_=_[3]}const _e={lFrame:il(null),bindingsEnabled:!0};function Tn(){return _e.bindingsEnabled}function ye(){return _e.lFrame.lView}function ht(){return _e.lFrame.tView}function Ii(p){return _e.lFrame.contextLView=p,p[8]}function Rr(p){return _e.lFrame.contextLView=null,p}function Ci(){let p=xs();for(;null!==p&&64===p.type;)p=p.parent;return p}function xs(){return _e.lFrame.currentTNode}function $i(p,m){const g=_e.lFrame;g.currentTNode=p,g.isParent=m}function li(){return _e.lFrame.isParent}function Jn(){_e.lFrame.isParent=!1}function Zi(){const p=_e.lFrame;let m=p.bindingRootIndex;return-1===m&&(m=p.bindingRootIndex=p.tView.bindingStartIndex),m}function ni(){return _e.lFrame.bindingIndex}function go(){return _e.lFrame.bindingIndex++}function kr(p){const m=_e.lFrame,g=m.bindingIndex;return m.bindingIndex=m.bindingIndex+p,g}function vd(p,m){const g=_e.lFrame;g.bindingIndex=g.bindingRootIndex=p,uc(m)}function uc(p){_e.lFrame.currentDirectiveIndex=p}function hc(p){const m=_e.lFrame.currentDirectiveIndex;return-1===m?null:p[m]}function pc(){return _e.lFrame.currentQueryIndex}function Or(p){_e.lFrame.currentQueryIndex=p}function fc(p){const m=p[1];return 2===m.type?m.declTNode:1===m.type?p[6]:null}function zt(p,m,g){if(g&be.SkipSelf){let y=m,C=p;for(;!(y=y.parent,null!==y||g&be.Host||(y=fc(C),null===y||(C=C[15],10&y.type))););if(null===y)return!1;m=y,p=C}const _=_e.lFrame=Xr();return _.currentTNode=m,_.lView=p,!0}function xd(p){const m=Xr(),g=p[1];_e.lFrame=m,m.currentTNode=g.firstChild,m.lView=p,m.tView=g,m.contextLView=p,m.bindingIndex=g.bindingStartIndex,m.inI18n=!1}function Xr(){const p=_e.lFrame,m=null===p?null:p.child;return null===m?il(p):m}function il(p){const m={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:p,child:null,inI18n:!1};return null!==p&&(p.child=m),m}function mc(){const p=_e.lFrame;return _e.lFrame=p.parent,p.currentTNode=null,p.lView=null,p}const Ir=mc;function nl(){const p=mc();p.isParent=!0,p.tView=null,p.selectedIndex=-1,p.contextLView=null,p.elementDepthCount=0,p.currentDirectiveIndex=-1,p.currentNamespace=null,p.bindingRootIndex=-1,p.bindingIndex=-1,p.currentQueryIndex=0}function qn(){return _e.lFrame.selectedIndex}function Si(p){_e.lFrame.selectedIndex=p}function hi(){const p=_e.lFrame;return cc(p.tView,p.selectedIndex)}function _c(){_e.lFrame.currentNamespace="svg"}function th(){!function ih(){_e.lFrame.currentNamespace=null}()}function rl(p,m){for(let g=m.directiveStart,_=m.directiveEnd;g<_;g++){const C=p.data[g].type.prototype,{ngAfterContentInit:D,ngAfterContentChecked:L,ngAfterViewInit:R,ngAfterViewChecked:V,ngOnDestroy:W}=C;D&&(p.contentHooks||(p.contentHooks=[])).push(-g,D),L&&((p.contentHooks||(p.contentHooks=[])).push(g,L),(p.contentCheckHooks||(p.contentCheckHooks=[])).push(g,L)),R&&(p.viewHooks||(p.viewHooks=[])).push(-g,R),V&&((p.viewHooks||(p.viewHooks=[])).push(g,V),(p.viewCheckHooks||(p.viewCheckHooks=[])).push(g,V)),null!=W&&(p.destroyHooks||(p.destroyHooks=[])).push(g,W)}}function bc(p,m,g){ol(p,m,3,g)}function al(p,m,g,_){(3&p[2])===g&&ol(p,m,g,_)}function sl(p,m){let g=p[2];(3&g)===m&&(g&=2047,g+=1,p[2]=g)}function ol(p,m,g,_){const C=_??-1,D=m.length-1;let L=0;for(let R=void 0!==_?65535&p[18]:0;R=_)break}else m[R]<0&&(p[18]+=65536),(L>11>16&&(3&p[2])===m){p[2]+=2048;try{C.call(L)}finally{}}}else try{C.call(L)}finally{}}class Qn{constructor(m,g,_){this.factory=m,this.resolving=!1,this.canSeeViewProviders=g,this.injectImpl=_}}function cl(p,m,g){let _=0;for(;_m){D=C-1;break}}}for(;C>16}(p),_=m;for(;g>0;)_=_[15],g--;return _}let Dd=!0;function Hs(p){const m=Dd;return Dd=p,m}let bf=0;const Kr={};function qa(p,m){const g=ba(p,m);if(-1!==g)return g;const _=m[1];_.firstCreatePass&&(p.injectorIndex=m.length,Ld(_.data,p),Ld(m,null),Ld(_.blueprint,null));const y=yo(p,m),C=p.injectorIndex;if(Ed(y)){const D=Ds(y),L=Ao(y,m),R=L[1].data;for(let V=0;V<8;V++)m[C+V]=L[D+V]|R[D+V]}return m[C+8]=y,C}function Ld(p,m){p.push(0,0,0,0,0,0,0,0,m)}function ba(p,m){return-1===p.injectorIndex||p.parent&&p.parent.injectorIndex===p.injectorIndex||null===m[p.injectorIndex+8]?-1:p.injectorIndex}function yo(p,m){if(p.parent&&-1!==p.parent.injectorIndex)return p.parent.injectorIndex;let g=0,_=null,y=m;for(;null!==y;){if(_=uh(y),null===_)return-1;if(g++,y=y[15],-1!==_.injectorIndex)return _.injectorIndex|g<<16}return-1}function Pd(p,m,g){!function Hd(p,m,g){let _;"string"==typeof g?_=g.charCodeAt(0)||0:g.hasOwnProperty(Yt)&&(_=g[Yt]),null==_&&(_=g[Yt]=bf++);const y=255&_;m.data[p+(y>>5)]|=1<=0?255&m:ch:m}(g);if("function"==typeof C){if(!zt(m,p,_))return _&be.Host?Rd(y,0,_):kd(m,g,_,y);try{const D=C(_);if(null!=D||_&be.Optional)return D;Se()}finally{Ir()}}else if("number"==typeof C){let D=null,L=ba(p,m),R=-1,V=_&be.Host?m[16][6]:null;for((-1===L||_&be.SkipSelf)&&(R=-1===L?yo(p,m):m[L+8],-1!==R&&lh(_,!1)?(D=m[1],L=Ds(R),m=Ao(R,m)):L=-1);-1!==L;){const W=m[1];if(Ya(C,L,W.data)){const ee=ya(L,m,g,D,_,V);if(ee!==Kr)return ee}R=m[L+8],-1!==R&&lh(_,m[1].data[L+8]===V)&&Ya(C,L,m)?(D=W,L=Ds(R),m=Ao(R,m)):L=-1}}return y}function ya(p,m,g,_,y,C){const D=m[1],L=D.data[p+8],W=Mo(L,D,g,null==_?Zr(L)&&Dd:_!=D&&0!=(3&L.type),y&be.Host&&C===L);return null!==W?Nr(m,D,W,L):Kr}function Mo(p,m,g,_,y){const C=p.providerIndexes,D=m.data,L=1048575&C,R=p.directiveStart,W=C>>20,oe=y?L+W:p.directiveEnd;for(let fe=_?L:L+W;fe=R&&De.type===g)return fe}if(y){const fe=D[R];if(fe&&Zn(fe)&&fe.type===g)return R}return null}function Nr(p,m,g,_){let y=p[g];const C=m.data;if(function rh(p){return p instanceof Qn}(y)){const D=y;D.resolving&&function Je(p,m){const g=m?`. Dependency path: ${m.join(" > ")} > ${p}`:"";throw new ie(-200,`Circular dependency in DI detected for ${p}${g}`)}(function Te(p){return"function"==typeof p?p.name||p.toString():"object"==typeof p&&null!=p&&"function"==typeof p.type?p.type.name||p.type.toString():Ae(p)}(C[g]));const L=Hs(D.canSeeViewProviders);D.resolving=!0;const R=D.injectImpl?ot(D.injectImpl):null;zt(p,_,be.Default);try{y=p[g]=D.factory(void 0,C,p,_),m.firstCreatePass&&g>=_.directiveStart&&function mf(p,m,g){const{ngOnChanges:_,ngOnInit:y,ngDoCheck:C}=m.type.prototype;if(_){const D=Jr(m);(g.preOrderHooks||(g.preOrderHooks=[])).push(p,D),(g.preOrderCheckHooks||(g.preOrderCheckHooks=[])).push(p,D)}y&&(g.preOrderHooks||(g.preOrderHooks=[])).push(0-p,y),C&&((g.preOrderHooks||(g.preOrderHooks=[])).push(p,C),(g.preOrderCheckHooks||(g.preOrderCheckHooks=[])).push(p,C))}(g,C[g],m)}finally{null!==R&&ot(R),Hs(L),D.resolving=!1,Ir()}}return y}function Ya(p,m,g){return!!(g[m+(p>>5)]&1<{const m=p.prototype.constructor,g=m[St]||pl(m),_=Object.prototype;let y=Object.getPrototypeOf(p.prototype).constructor;for(;y&&y!==_;){const C=y[St]||pl(y);if(C&&C!==g)return C;y=Object.getPrototypeOf(y)}return C=>new C})}function pl(p){return le(p)?()=>{const m=pl(ne(p));return m&&m()}:ga(p)}function uh(p){const m=p[1],g=m.type;return 2===g?m.declTNode:1===g?p[6]:null}function ml(p){return function oh(p,m){if("class"===m)return p.classes;if("style"===m)return p.styles;const g=p.attrs;if(g){const _=g.length;let y=0;for(;y<_;){const C=g[y];if(dl(C))break;if(0===C)y+=2;else if("number"==typeof C)for(y++;y<_&&"string"==typeof g[y];)y++;else{if(C===m)return g[y+1];y+=2}}}return null}(Ci(),p)}const Ls="__parameters__";function Xn(p,m,g){return oi(()=>{const _=function gl(p){return function(...g){if(p){const _=p(...g);for(const y in _)this[y]=_[y]}}}(m);function y(...C){if(this instanceof y)return _.apply(this,C),this;const D=new y(...C);return L.annotation=D,L;function L(R,V,W){const ee=R.hasOwnProperty(Ls)?R[Ls]:Object.defineProperty(R,Ls,{value:[]})[Ls];for(;ee.length<=W;)ee.push(null);return(ee[W]=ee[W]||[]).push(D),R}}return g&&(y.prototype=Object.create(g.prototype)),y.prototype.ngMetadataName=p,y.annotationCls=y,y})}class Ti{constructor(m,g){this._desc=m,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof g?this.__NG_ELEMENT_ID__=g:void 0!==g&&(this.\u0275prov=si({token:this,providedIn:g.providedIn||"root",factory:g.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function nn(p,m){void 0===m&&(m=p);for(let g=0;gArray.isArray(g)?tr(g,m):m(g))}function Mc(p,m,g){m>=p.length?p.push(g):p.splice(m,0,g)}function bl(p,m){return m>=p.length-1?p.pop():p.splice(m,1)[0]}function Al(p,m){const g=[];for(let _=0;_=0?p[1|_]=g:(_=~_,function Af(p,m,g,_){let y=p.length;if(y==m)p.push(g,_);else if(1===y)p.push(_,p[0]),p[0]=g;else{for(y--,p.push(p[y-1],p[y]);y>m;)p[y]=p[y-2],y--;p[m]=g,p[m+1]=_}}(p,_,m,g)),_}function Ml(p,m){const g=Ua(p,m);if(g>=0)return p[1|g]}function Ua(p,m){return function To(p,m,g){let _=0,y=p.length>>g;for(;y!==_;){const C=_+(y-_>>1),D=p[C<m?y=C:_=C+1}return~(y<p,createScript:p=>p,createScriptURL:p=>p})}catch{}return $}())||void 0===m?void 0:m.createHTML(p))||p}function Ca(p){var m;return(null===(m=function Fr(){if(void 0===rn&&(rn=null,ue.trustedTypes))try{rn=ue.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:p=>p,createScript:p=>p,createScriptURL:p=>p})}catch{}return rn}())||void 0===m?void 0:m.createHTML(p))||p}class Ja{constructor(m){this.changingThisBreaksApplicationSecurity=m}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Bg extends Ja{getTypeName(){return"HTML"}}class Ng extends Ja{getTypeName(){return"Style"}}class xh extends Ja{getTypeName(){return"Script"}}class Sh extends Ja{getTypeName(){return"URL"}}class Vg extends Ja{getTypeName(){return"ResourceURL"}}function zr(p){return p instanceof Ja?p.changingThisBreaksApplicationSecurity:p}function Dl(p,m){const g=function yy(p){return p instanceof Ja&&p.getTypeName()||null}(p);if(null!=g&&g!==m){if("ResourceURL"===g&&"URL"===m)return!0;throw new Error(`Required a safe ${m}, got a ${g} (see https://g.co/ng/security#xss)`)}return g===m}function My(p){return new Bg(p)}function wy(p){return new Ng(p)}function Cy(p){return new xh(p)}function vy(p){return new Sh(p)}function Eh(p){return new Vg(p)}class Ty{constructor(m){this.inertDocumentHelper=m}getInertBodyElement(m){m=""+m;try{const g=(new window.DOMParser).parseFromString(Ce(m),"text/html").body;return null===g?this.inertDocumentHelper.getInertBodyElement(m):(g.removeChild(g.firstChild),g)}catch{return null}}}class xy{constructor(m){if(this.defaultDoc=m,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const g=this.inertDocument.createElement("html");this.inertDocument.appendChild(g);const _=this.inertDocument.createElement("body");g.appendChild(_)}}getInertBodyElement(m){const g=this.inertDocument.createElement("template");if("content"in g)return g.innerHTML=Ce(m),g;const _=this.inertDocument.createElement("body");return _.innerHTML=Ce(m),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(_),_}stripCustomNsAttrs(m){const g=m.attributes;for(let y=g.length-1;0xc(m.trim())).join(", ")),this.buf.push(" ",D,'="',Wg(R),'"')}var p;return this.buf.push(">"),!0}endElement(m){const g=m.nodeName.toLowerCase();Lf.hasOwnProperty(g)&&!Ef.hasOwnProperty(g)&&(this.buf.push(""))}chars(m){this.buf.push(Wg(m))}checkClobberedElement(m,g){if(g&&(m.compareDocumentPosition(g)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${m.outerHTML}`);return g}}const Ly=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Py=/([^\#-~ |!])/g;function Wg(p){return p.replace(/&/g,"&").replace(Ly,function(m){return"&#"+(1024*(m.charCodeAt(0)-55296)+(m.charCodeAt(1)-56320)+65536)+";"}).replace(Py,function(m){return"&#"+m.charCodeAt(0)+";"}).replace(//g,">")}let Hh;function Lh(p,m){let g=null;try{Hh=Hh||function Fg(p){const m=new xy(p);return function Sy(){try{return!!(new window.DOMParser).parseFromString(Ce(""),"text/html")}catch{return!1}}()?new Ty(m):m}(p);let _=m?String(m):"";g=Hh.getInertBodyElement(_);let y=5,C=_;do{if(0===y)throw new Error("Failed to sanitize html because the input is unstable");y--,_=C,C=g.innerHTML,g=Hh.getInertBodyElement(_)}while(_!==C);return Ce((new Yg).sanitizeChildren(Ph(g)||g))}finally{if(g){const _=Ph(g)||g;for(;_.firstChild;)_.removeChild(_.firstChild)}}}function Ph(p){return"content"in p&&function kf(p){return p.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===p.nodeName}(p)?p.content:null}var an=(()=>((an=an||{})[an.NONE=0]="NONE",an[an.HTML=1]="HTML",an[an.STYLE=2]="STYLE",an[an.SCRIPT=3]="SCRIPT",an[an.URL=4]="URL",an[an.RESOURCE_URL=5]="RESOURCE_URL",an))();function Ug(p){const m=Dc();return m?Ca(m.sanitize(an.HTML,p)||""):Dl(p,"HTML")?Ca(zr(p)):Lh(function z(){return void 0!==H?H:typeof document<"u"?document:void 0}(),Ae(p))}function Ec(p){const m=Dc();return m?m.sanitize(an.URL,p)||"":Dl(p,"URL")?zr(p):xc(Ae(p))}function Dc(){const p=ye();return p&&p[12]}const Qa=new Ti("ENVIRONMENT_INITIALIZER"),Hc=new Ti("INJECTOR",-1),Zg=new Ti("INJECTOR_DEF_TYPES");class Jg{get(m,g=Ga){if(g===Ga){const _=new Error(`NullInjectorError: No provider for ${F(m)}!`);throw _.name="NullInjectorError",_}return g}}function Qg(...p){return{\u0275providers:Xg(0,p)}}function Xg(p,...m){const g=[],_=new Set;let y;return tr(m,C=>{const D=C;Rh(D,g,[],_)&&(y||(y=[]),y.push(D))}),void 0!==y&&Ny(y,g),g}function Ny(p,m){for(let g=0;g{m.push(C)})}}function Rh(p,m,g,_){if(!(p=ne(p)))return!1;let y=null,C=ca(p);const D=!C&&di(p);if(C||D){if(D&&!D.standalone)return!1;y=p}else{const R=p.ngModule;if(C=ca(R),!C)return!1;y=R}const L=_.has(y);if(D){if(L)return!1;if(_.add(y),D.dependencies){const R="function"==typeof D.dependencies?D.dependencies():D.dependencies;for(const V of R)Rh(V,m,g,_)}}else{if(!C)return!1;{if(null!=C.imports&&!L){let V;_.add(y);try{tr(C.imports,W=>{Rh(W,m,g,_)&&(V||(V=[]),V.push(W))})}finally{}void 0!==V&&Ny(V,m)}if(!L){const V=ga(y)||(()=>new y);m.push({provide:y,useFactory:V,deps:tt},{provide:Zg,useValue:y,multi:!0},{provide:Qa,useValue:()=>Bi(y),multi:!0})}const R=C.providers;null==R||L||tr(R,W=>{m.push(W)})}}return y!==p&&void 0!==p.providers}const Fy=P({provide:String,useValue:P});function Xa(p){return null!==p&&"object"==typeof p&&Fy in p}function xo(p){return"function"==typeof p}const If=new Ti("Set Injector scope."),kh={},Oh={};let Bf;function Ih(){return void 0===Bf&&(Bf=new Jg),Bf}class Hl{}class Kg extends Hl{constructor(m,g,_,y){super(),this.parent=g,this.source=_,this.scopes=y,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Vf(m,D=>this.processProvider(D)),this.records.set(Hc,Lc(void 0,this)),y.has("environment")&&this.records.set(Hl,Lc(void 0,this));const C=this.records.get(If);null!=C&&"string"==typeof C.value&&this.scopes.add(C.value),this.injectorDefTypes=new Set(this.get(Zg.multi,tt,be.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const m of this._ngOnDestroyHooks)m.ngOnDestroy();for(const m of this._onDestroyHooks)m()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(m){this._onDestroyHooks.push(m)}runInContext(m){this.assertNotDestroyed();const g=vl(this),_=ot(void 0);try{return m()}finally{vl(g),ot(_)}}get(m,g=Ga,_=be.Default){this.assertNotDestroyed();const y=vl(this),C=ot(void 0);try{if(!(_&be.SkipSelf)){let L=this.records.get(m);if(void 0===L){const R=function Nf(p){return"function"==typeof p||"object"==typeof p&&p instanceof Ti}(m)&&Ln(m);L=R&&this.injectableDefInScope(R)?Lc(Bh(m),kh):null,this.records.set(m,L)}if(null!=L)return this.hydrate(m,L)}return(_&be.Self?Ih():this.parent).get(m,g=_&be.Optional&&g===Ga?null:g)}catch(D){if("NullInjectorError"===D.name){if((D[Cr]=D[Cr]||[]).unshift(F(m)),y)throw D;return function Mh(p,m,g,_){const y=p[Cr];throw m[wf]&&y.unshift(m[wf]),p.message=function wh(p,m,g,_=null){p=p&&"\n"===p.charAt(0)&&"\u0275"==p.charAt(1)?p.slice(2):p;let y=F(m);if(Array.isArray(m))y=m.map(F).join(" -> ");else if("object"==typeof m){let C=[];for(let D in m)if(m.hasOwnProperty(D)){let L=m[D];C.push(D+":"+("string"==typeof L?JSON.stringify(L):F(L)))}y=`{${C.join(", ")}}`}return`${g}${_?"("+_+")":""}[${y}]: ${p.replace(zd,"\n ")}`}("\n"+p.message,y,g,_),p.ngTokenPath=y,p[Cr]=null,p}(D,m,"R3InjectorError",this.source)}throw D}finally{ot(C),vl(y)}}resolveInjectorInitializers(){const m=vl(this),g=ot(void 0);try{const _=this.get(Qa.multi,tt,be.Self);for(const y of _)y()}finally{vl(m),ot(g)}}toString(){const m=[],g=this.records;for(const _ of g.keys())m.push(F(_));return`R3Injector[${m.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ie(205,!1)}processProvider(m){let g=xo(m=ne(m))?m:ne(m&&m.provide);const _=function e1(p){return Xa(p)?Lc(void 0,p.useValue):Lc(t1(p),kh)}(m);if(xo(m)||!0!==m.multi)this.records.get(g);else{let y=this.records.get(g);y||(y=Lc(void 0,kh,!0),y.factory=()=>Vr(y.multi),this.records.set(g,y)),g=m,y.multi.push(m)}this.records.set(g,_)}hydrate(m,g){return g.value===kh&&(g.value=Oh,g.value=g.factory()),"object"==typeof g.value&&g.value&&function Yy(p){return null!==p&&"object"==typeof p&&"function"==typeof p.ngOnDestroy}(g.value)&&this._ngOnDestroyHooks.add(g.value),g.value}injectableDefInScope(m){if(!m.providedIn)return!1;const g=ne(m.providedIn);return"string"==typeof g?"any"===g||this.scopes.has(g):this.injectorDefTypes.has(g)}}function Bh(p){const m=Ln(p),g=null!==m?m.factory:ga(p);if(null!==g)return g;if(p instanceof Ti)throw new ie(204,!1);if(p instanceof Function)return function qy(p){const m=p.length;if(m>0)throw Al(m,"?"),new ie(204,!1);const g=function vn(p){const m=p&&(p[br]||p[de]);if(m){const g=function so(p){if(p.hasOwnProperty("name"))return p.name;const m=(""+p).match(/^function\s*([^\s(]+)/);return null===m?"":m[1]}(p);return console.warn(`DEPRECATED: DI is instantiating a token "${g}" 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 "${g}" class.`),m}return null}(p);return null!==g?()=>g.factory(p):()=>new p}(p);throw new ie(204,!1)}function t1(p,m,g){let _;if(xo(p)){const y=ne(p);return ga(y)||Bh(y)}if(Xa(p))_=()=>ne(p.useValue);else if(function Of(p){return!(!p||!p.useFactory)}(p))_=()=>p.useFactory(...Vr(p.deps||[]));else if(function zy(p){return!(!p||!p.useExisting)}(p))_=()=>Bi(ne(p.useExisting));else{const y=ne(p&&(p.useClass||p.provide));if(!function n1(p){return!!p.deps}(p))return ga(y)||Bh(y);_=()=>new y(...Vr(p.deps))}return _}function Lc(p,m,g=!1){return{factory:p,value:m,multi:g?[]:void 0}}function Wy(p){return!!p.\u0275providers}function Vf(p,m){for(const g of p)Array.isArray(g)?Vf(g,m):Wy(g)?Vf(g.\u0275providers,m):m(g)}class Gy{}class Pc{resolveComponentFactory(m){throw function Ff(p){const m=Error(`No component factory found for ${F(p)}. Did you add it to @NgModule.entryComponents?`);return m.ngComponent=p,m}(m)}}let Rc=(()=>{class p{}return p.NULL=new Pc,p})();function r1(){return Ka(Ci(),ye())}function Ka(p,m){return new Gd(dr(p,m))}let Gd=(()=>{class p{constructor(g){this.nativeElement=g}}return p.__NG_ELEMENT_ID__=r1,p})();function es(p){return p instanceof Gd?p.nativeElement:p}class So{}let a1=(()=>{class p{}return p.__NG_ELEMENT_ID__=()=>function $d(){const p=ye(),g=Pn(Ci().index,p);return(bn(g)?g:p)[11]}(),p})(),jf=(()=>{class p{}return p.\u0275prov=si({token:p,providedIn:"root",factory:()=>null}),p})();class s1{constructor(m){this.full=m,this.major=m.split(".")[0],this.minor=m.split(".")[1],this.patch=m.split(".").slice(2).join(".")}}const Nh=new s1("14.1.2"),Zd={};function Vs(p){return p.ngOriginalError}class Eo{constructor(){this._console=console}handleError(m){const g=this._findOriginalError(m);this._console.error("ERROR",m),g&&this._console.error("ORIGINAL ERROR",g)}_findOriginalError(m){let g=m&&Vs(m);for(;g&&Vs(g);)g=Vs(g);return g||null}}const h1=new Map;let wx=0;const f1="__ngContext__";function Yn(p,m){bn(m)?(p[f1]=m[20],function vx(p){h1.set(p[20],p)}(m)):p[f1]=m}function Fh(p){const m=p[f1];return"number"==typeof m?function Ky(p){return h1.get(p)||null}(m):m||null}function m1(p){const m=Fh(p);return m?bn(m)?m:m.lView:null}const Px=(()=>(typeof requestAnimationFrame<"u"&&requestAnimationFrame||setTimeout).bind(ue))();function aM(p){return p.ownerDocument.defaultView}function Do(p){return p instanceof Function?p():p}var Fs=(()=>((Fs=Fs||{})[Fs.Important=1]="Important",Fs[Fs.DashCase=2]="DashCase",Fs))();function Uf(p,m){return undefined(p,m)}function zh(p){const m=p[3];return $n(m)?m[3]:m}function g1(p){return cM(p[13])}function _1(p){return cM(p[4])}function cM(p){for(;null!==p&&!$n(p);)p=p[4];return p}function Qd(p,m,g,_,y){if(null!=_){let C,D=!1;$n(_)?C=_:bn(_)&&(D=!0,_=_[0]);const L=en(_);0===p&&null!==g?null==y?mM(m,g,L):kc(m,g,L,y||null,!0):1===p&&null!==g?kc(m,g,L,y||null,!0):2===p?function MM(p,m,g){const _=Gf(p,m);_&&function Zx(p,m,g,_){p.removeChild(m,g,_)}(p,_,m,g)}(m,L,D):3===p&&m.destroyNode(L),null!=C&&function Xx(p,m,g,_,y){const C=g[7];C!==en(g)&&Qd(m,p,_,C,y);for(let L=10;L0&&(p[g-1][4]=_[4]);const C=bl(p,10+m);!function zx(p,m){jh(p,m,m[11],2,null,null),m[0]=null,m[6]=null}(_[1],_);const D=C[19];null!==D&&D.detachView(C[1]),_[3]=null,_[4]=null,_[2]&=-65}return _}function hM(p,m){if(!(128&m[2])){const g=m[11];g.destroyNode&&jh(p,m,g,3,null,null),function Yx(p){let m=p[13];if(!m)return M1(p[1],p);for(;m;){let g=null;if(bn(m))g=m[13];else{const _=m[10];_&&(g=_)}if(!g){for(;m&&!m[4]&&m!==p;)bn(m)&&M1(m[1],m),m=m[3];null===m&&(m=p),bn(m)&&M1(m[1],m),g=m&&m[4]}m=g}}(m)}}function M1(p,m){if(!(128&m[2])){m[2]&=-65,m[2]|=128,function $x(p,m){let g;if(null!=p&&null!=(g=p.destroyHooks))for(let _=0;_=0?_[y=V]():_[y=-V].unsubscribe(),C+=2}else{const D=_[y=g[C+1]];g[C].call(D)}if(null!==_){for(let C=y+1;C<_.length;C++)(0,_[C])();m[7]=null}}(p,m),1===m[1].type&&m[11].destroy();const g=m[17];if(null!==g&&$n(m[3])){g!==m[3]&&uM(g,m);const _=m[19];null!==_&&_.detachView(p)}!function Tx(p){h1.delete(p[20])}(m)}}function pM(p,m,g){return function fM(p,m,g){let _=m;for(;null!==_&&40&_.type;)_=(m=_).parent;if(null===_)return g[0];if(2&_.flags){const y=p.data[_.directiveStart].encapsulation;if(y===te.None||y===te.Emulated)return null}return dr(_,g)}(p,m.parent,g)}function kc(p,m,g,_,y){p.insertBefore(m,g,_,y)}function mM(p,m,g){p.appendChild(m,g)}function gM(p,m,g,_,y){null!==_?kc(p,m,g,_,y):mM(p,m,g)}function Gf(p,m){return p.parentNode(m)}function _M(p,m,g){return AM(p,m,g)}let AM=function bM(p,m,g){return 40&p.type?dr(p,g):null};function $f(p,m,g,_){const y=pM(p,_,m),C=m[11],L=_M(_.parent||m[6],_,m);if(null!=y)if(Array.isArray(g))for(let R=0;RC?"":y[ee+1].toLowerCase();const fe=8&_?oe:null;if(fe&&-1!==Bn(fe,V,0)||2&_&&V!==oe){if(Fe(_))return!1;D=!0}}}}else{if(!D&&!Fe(_)&&!Fe(R))return!1;if(D&&Fe(R))continue;D=!1,_=R|1&_}}return Fe(_)||D}function Fe(p){return 0==(1&p)}function Vi(p,m,g,_){if(null===m)return-1;let y=0;if(_||!g){let C=!1;for(;y-1)for(g++;g0?'="'+L+'"':"")+"]"}else 8&_?y+="."+D:4&_&&(y+=" "+D);else""!==y&&!Fe(D)&&(m+=e0(C,y),y=""),_=D,C=C||!Fe(_);g++}return""!==y&&(m+=e0(C,y)),m}const Vt={};function n0(p){Pl(ht(),ye(),qn()+p,!1)}function Pl(p,m,g,_){if(!_)if(3==(3&m[2])){const C=p.preOrderCheckHooks;null!==C&&bc(m,C,g)}else{const C=p.preOrderHooks;null!==C&&al(m,C,0,g)}Si(g)}function tu(p,m=null,g=null,_){const y=HM(p,m,g,_);return y.resolveInjectorInitializers(),y}function HM(p,m=null,g=null,_,y=new Set){const C=[g||tt,Qg(p)];return _=_||("object"==typeof p?void 0:F(p)),new Kg(C,m||Ih(),_||null,y)}let Ho=(()=>{class p{static create(g,_){if(Array.isArray(g))return tu({name:""},_,g,"");{var y;const C=null!==(y=g.name)&&void 0!==y?y:"";return tu({name:C},g.parent,g.providers,C)}}}return p.THROW_IF_NOT_FOUND=Ga,p.NULL=new Jg,p.\u0275prov=si({token:p,providedIn:"any",factory:()=>Bi(Hc)}),p.__NG_ELEMENT_ID__=-1,p})();function zs(p,m=be.Default){const g=ye();return null===g?Bi(p,m):Aa(Ci(),g,ne(p),m)}function N1(){throw new Error("invalid")}function ru(p,m){return p<<17|m<<2}function rr(p){return p>>17&32767}function o0(p){return 2|p}function js(p){return(131068&p)>>2}function l0(p,m){return-131069&p|m<<2}function c0(p){return 1|p}function W1(p,m){const g=p.contentQueries;if(null!==g)for(let _=0;_22&&Pl(p,m,22,!1),g(_,y)}finally{Si(C)}}function Kh(p,m,g){if(lr(m)){const y=m.directiveEnd;for(let C=m.directiveStart;C0;){const g=p[--m];if("number"==typeof g&&g<0)return g}return 0})(L)!=R&&L.push(R),L.push(_,y,D)}}function X1(p,m){null!==p.hostBindings&&p.hostBindings(1,m)}function tw(p,m){m.flags|=2,(p.components||(p.components=[])).push(m.index)}function nw(p,m,g){if(g){if(m.exportAs)for(let _=0;_0&&M0(g)}}function M0(p){for(let _=g1(p);null!==_;_=_1(_))for(let y=10;y<_.length;y++){const C=_[y];if(U(C))if(512&C[2]){const D=C[1];lu(D,C,D.template,C[8])}else C[5]>0&&M0(C)}const g=p[1].components;if(null!==g)for(let _=0;_0&&M0(y)}}function t_(p,m){const g=Pn(m,p),_=g[1];(function du(p,m){for(let g=m.length;gPromise.resolve(null))();function a_(p){return p[7]||(p[7]=[])}function s_(p){return p.cleanup||(p.cleanup=[])}function uu(p,m,g){return(null===p||Zn(p))&&(g=function ki(p){for(;Array.isArray(p);){if("object"==typeof p[1])return p;p=p[0]}return null}(g[m.index])),g[11]}function o_(p,m){const g=p[9],_=g?g.get(Eo,null):null;_&&_.handleError(m)}function v0(p,m,g,_,y){for(let C=0;C-1&&(y1(m,_),bl(g,_))}this._attachedToViewContainer=!1}hM(this._lView[1],this._lView)}onDestroy(m){g0(this._lView[1],this._lView,null,m)}markForCheck(){ap(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){!function i_(p,m,g){const _=m[10];_.begin&&_.begin();try{lu(p,m,p.template,g)}catch(y){throw o_(m,y),y}finally{_.end&&_.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ie(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function qx(p,m){jh(p,m,m[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(m){if(this._attachedToViewContainer)throw new ie(902,!1);this._appRef=m}}class x0 extends pu{constructor(m){super(m),this._view=m}detectChanges(){n_(this._view)}checkNoChanges(){}get context(){return null}}class Bc extends Rc{constructor(m){super(),this.ngModule=m}resolveComponentFactory(m){const g=di(m);return new mu(g,this.ngModule)}}function l_(p){const m=[];for(let g in p)p.hasOwnProperty(g)&&m.push({propName:p[g],templateName:g});return m}class fu{constructor(m,g){this.injector=m,this.parentInjector=g}get(m,g,_){const y=this.injector.get(m,Zd,_);return y!==Zd||g===Zd?y:this.parentInjector.get(m,g,_)}}class mu extends Gy{constructor(m,g){super(),this.componentDef=m,this.ngModule=g,this.componentType=m.type,this.selector=function t0(p){return p.map(xM).join(",")}(m.selectors),this.ngContentSelectors=m.ngContentSelectors?m.ngContentSelectors:[],this.isBoundToModule=!!g}get inputs(){return l_(this.componentDef.inputs)}get outputs(){return l_(this.componentDef.outputs)}create(m,g,_,y){var C;let D=(y=y||this.ngModule)instanceof Hl?y:null===(C=y)||void 0===C?void 0:C.injector;D&&null!==this.componentDef.getStandaloneInjector&&(D=this.componentDef.getStandaloneInjector(D)||D);const L=D?new fu(m,D):m,R=L.get(So,null);if(null===R)throw new ie(407,!1);const V=L.get(jf,null),W=R.createRenderer(null,this.componentDef),ee=this.componentDef.selectors[0][0]||"div",oe=_?function jr(p,m,g){return p.selectRootElement(m,g===te.ShadowDom)}(W,_,this.componentDef.encapsulation):A1(R.createRenderer(null,this.componentDef),ee,function c_(p){const m=p.toLowerCase();return"svg"===m?"svg":"math"===m?"math":null}(ee)),fe=this.componentDef.onPush?288:272,De=function cw(p,m){return{components:[],scheduler:p||Px,clean:fS,playerHandler:m||null,flags:0}}(),qe=m0(0,null,null,1,0,null,null,null,null,null),Ze=qs(null,qe,De,fe,null,null,R,W,V,L,null);let at,wt;xd(Ze);try{const Be=function S0(p,m,g,_,y,C){const D=g[1];g[22]=p;const R=Ol(D,22,2,"#host",null),V=R.mergedAttrs=m.hostAttrs;null!==V&&(T0(R,V,!0),null!==p&&(cl(y,p,V),null!==R.classes&&Jf(y,p,R.classes),null!==R.styles&&CM(y,p,R.styles)));const W=_.createRenderer(p,m),ee=qs(g,f0(m),null,m.onPush?32:16,g[22],R,_,W,C||null,null,null);return D.firstCreatePass&&(Pd(qa(R,g),D,m.type),tw(D,R),K1(R,g.length,1)),rp(g,ee),g[22]=ee}(oe,this.componentDef,Ze,R,W);if(oe)if(_)cl(W,oe,["ng-version",Nh.full]);else{const{attrs:xt,classes:Ft}=function eu(p){const m=[],g=[];let _=1,y=2;for(;_0&&Jf(W,oe,Ft.join(" "))}if(wt=cc(qe,22),void 0!==g){const xt=wt.projection=[];for(let Ft=0;Ft=0;_--){const y=p[_];y.hostVars=m+=y.hostVars,y.hostAttrs=bo(y.hostAttrs,g=bo(g,y.hostAttrs))}}(_)}function D0(p){return p===Ot?{}:p===tt?[]:p}function Po(p,m){const g=p.viewQuery;p.viewQuery=g?(_,y)=>{m(_,y),g(_,y)}:m}function Nl(p,m){const g=p.contentQueries;p.contentQueries=g?(_,y,C)=>{m(_,y,C),g(_,y,C)}:m}function pw(p,m){const g=p.hostBindings;p.hostBindings=g?(_,y)=>{m(_,y),g(_,y)}:m}let op=null;function Vl(){if(!op){const p=ue.Symbol;if(p&&p.iterator)op=p.iterator;else{const m=Object.getOwnPropertyNames(Map.prototype);for(let g=0;gL(en(Ft[_.index])):_.index;let xt=null;if(!L&&R&&(xt=function T_(p,m,g,_){const y=p.cleanup;if(null!=y)for(let C=0;CR?L[R]:null}"string"==typeof D&&(C+=2)}return null}(p,m,y,_.index)),null!==xt)(xt.__ngLastListenerFn__||xt).__ngNextListenerFn__=C,xt.__ngLastListenerFn__=C,fe=!1;else{C=O0(_,m,ee,C,!1);const Ft=g.listen(at,y,C);oe.push(C,Ft),W&&W.push(y,Be,wt,wt+1)}}else C=O0(_,m,ee,C,!1);const De=_.outputs;let qe;if(fe&&null!==De&&(qe=De[y])){const Ze=qe.length;if(Ze)for(let at=0;at0;)m=m[15],p--;return m}(p,_e.lFrame.contextLView))[8]}(p)}function vw(p,m){let g=null;const _=function Kd(p){const m=p.attrs;if(null!=m){const g=m.indexOf(5);if(0==(1&g))return m[g+1]}return null}(p);for(let y=0;y=0}const Le={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function It(p){return p.substring(Le.key,Le.keyEnd)}function xw(p,m){const g=Le.textEnd;return g===m?-1:(m=Le.keyEnd=function P_(p,m,g){for(;m32;)m++;return m}(p,Le.key=m,g),wu(p,m,g))}function wu(p,m,g){for(;m=0;g=xw(m,g))ir(p,It(m),!0)}function La(p,m,g,_){const y=ye(),C=ht(),D=kr(2);C.firstUpdatePass&&I_(C,p,D,_),m!==Vt&&fr(y,D,m)&&Rw(C,C.data[qn()],y,y[11],p,y[D+1]=function Ow(p,m){return null==p||("string"==typeof m?p+=m:"object"==typeof p&&(p=F(zr(p)))),p}(m,g),_,D)}function Pa(p,m,g,_){const y=ht(),C=kr(2);y.firstUpdatePass&&I_(y,null,C,_);const D=ye();if(g!==Vt&&fr(D,C,g)){const L=y.data[qn()];if(W0(L,_)&&!O_(y,C)){let R=_?L.classesWithoutHost:L.stylesWithoutHost;null!==R&&(g=q(R,g||"")),y_(y,L,D,g,_)}else!function vu(p,m,g,_,y,C,D,L){y===Vt&&(y=tt);let R=0,V=0,W=0=p.expandoStartIndex}function I_(p,m,g,_){const y=p.data;if(null===y[g+1]){const C=y[qn()],D=O_(p,g);W0(C,_)&&null===m&&!D&&(m=!1),m=function Dw(p,m,g,_){const y=hc(p);let C=_?m.residualClasses:m.residualStyles;if(null===y)0===(_?m.classBindings:m.styleBindings)&&(g=Yc(g=q0(null,p,m,g,_),m.attrs,_),C=null);else{const D=m.directiveStylingLast;if(-1===D||p[D]!==y)if(g=q0(y,p,m,g,_),null===C){let R=function Hw(p,m,g){const _=g?m.classBindings:m.styleBindings;if(0!==js(_))return p[rr(_)]}(p,m,_);void 0!==R&&Array.isArray(R)&&(R=q0(null,p,m,R[1],_),R=Yc(R,m.attrs,_),function Lw(p,m,g,_){p[rr(g?m.classBindings:m.styleBindings)]=_}(p,m,_,R))}else C=function Pw(p,m,g){let _;const y=m.directiveEnd;for(let C=1+m.directiveStylingLast;C0)&&(V=!0)}else W=g;if(y)if(0!==R){const oe=rr(p[L+1]);p[_+1]=ru(oe,L),0!==oe&&(p[oe+1]=l0(p[oe+1],_)),p[L+1]=function qM(p,m){return 131071&p|m<<17}(p[L+1],_)}else p[_+1]=ru(L,0),0!==L&&(p[L+1]=l0(p[L+1],_)),L=_;else p[_+1]=ru(R,0),0===L?L=_:p[R+1]=l0(p[R+1],_),R=_;V&&(p[_+1]=o0(p[_+1])),Mu(p,W,_,!0),Mu(p,W,_,!1),function Ht(p,m,g,_,y){const C=y?p.residualClasses:p.residualStyles;null!=C&&"string"==typeof m&&Ua(C,m)>=0&&(g[_+1]=c0(g[_+1]))}(m,W,p,_,C),D=ru(L,R),C?m.classBindings=D:m.styleBindings=D}(y,C,m,g,D,_)}}function q0(p,m,g,_,y){let C=null;const D=g.directiveEnd;let L=g.directiveStylingLast;for(-1===L?L=g.directiveStart:L++;L0;){const R=p[y],V=Array.isArray(R),W=V?R[1]:R,ee=null===W;let oe=g[y+1];oe===Vt&&(oe=ee?tt:void 0);let fe=ee?Ml(oe,_):W===_?oe:void 0;if(V&&!Y0(fe)&&(fe=Ml(R,_)),Y0(fe)&&(L=fe,D))return L;const De=p[y+1];y=D?rr(De):js(De)}if(null!==m){let R=C?m.residualClasses:m.residualStyles;null!=R&&(L=Ml(R,_))}return L}function Y0(p){return void 0!==p}function W0(p,m){return 0!=(p.flags&(m?16:32))}function N_(p,m=""){const g=ye(),_=ht(),y=p+22,C=_.firstCreatePass?Ol(_,y,1,m,null):_.data[y],D=g[y]=function b1(p,m){return p.createText(m)}(g[11],m);$f(_,g,D,C),$i(C,!1)}function Ra(p){return gp("",p,""),Ra}function gp(p,m,g){const _=ye(),y=Ws(_,p,m,g);return y!==Vt&&Ea(_,qn(),y),gp}function U0(p,m,g,_,y){const C=ye(),D=Ha(C,p,m,g,_,y);return D!==Vt&&Ea(C,qn(),D),U0}function _p(p,m,g,_,y,C,D,L,R,V,W){const ee=ye(),oe=gu(ee,p,m,g,_,y,C,D,L,R,V,W);return oe!==Vt&&Ea(ee,qn(),oe),_p}function z_(p,m,g){Pa(ir,ss,Ws(ye(),p,m,g),!0)}function bp(p,m,g){const _=ye();return fr(_,go(),m)&&ra(ht(),hi(),_,p,m,_[11],g,!0),bp}function Wc(p,m,g){const _=ye();if(fr(_,go(),m)){const C=ht(),D=hi();ra(C,D,_,p,m,uu(hc(C.data),D,_),g,!0)}return Wc}const Vo=void 0;var G_=["en",[["a","p"],["AM","PM"],Vo],[["AM","PM"],Vo,Vo],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Vo,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Vo,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Vo,"{1} 'at' {0}",Vo],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function U_(p){const g=Math.floor(Math.abs(p)),_=p.toString().replace(/^[^.]*\.?/,"").length;return 1===g&&0===_?1:5}];let Yl={};function Ap(p){const m=function Z_(p){return p.toLowerCase().replace(/_/g,"-")}(p);let g=nm(m);if(g)return g;const _=m.split("-")[0];if(g=nm(_),g)return g;if("en"===_)return G_;throw new ie(701,!1)}function yp(p){return Ap(p)[Mt.PluralCase]}function nm(p){return p in Yl||(Yl[p]=ue.ng&&ue.ng.common&&ue.ng.common.locales&&ue.ng.common.locales[p]),Yl[p]}var Mt=(()=>((Mt=Mt||{})[Mt.LocaleId=0]="LocaleId",Mt[Mt.DayPeriodsFormat=1]="DayPeriodsFormat",Mt[Mt.DayPeriodsStandalone=2]="DayPeriodsStandalone",Mt[Mt.DaysFormat=3]="DaysFormat",Mt[Mt.DaysStandalone=4]="DaysStandalone",Mt[Mt.MonthsFormat=5]="MonthsFormat",Mt[Mt.MonthsStandalone=6]="MonthsStandalone",Mt[Mt.Eras=7]="Eras",Mt[Mt.FirstDayOfWeek=8]="FirstDayOfWeek",Mt[Mt.WeekendRange=9]="WeekendRange",Mt[Mt.DateFormat=10]="DateFormat",Mt[Mt.TimeFormat=11]="TimeFormat",Mt[Mt.DateTimeFormat=12]="DateTimeFormat",Mt[Mt.NumberSymbols=13]="NumberSymbols",Mt[Mt.NumberFormats=14]="NumberFormats",Mt[Mt.CurrencyCode=15]="CurrencyCode",Mt[Mt.CurrencySymbol=16]="CurrencySymbol",Mt[Mt.CurrencyName=17]="CurrencyName",Mt[Mt.Currencies=18]="Currencies",Mt[Mt.Directionality=19]="Directionality",Mt[Mt.PluralCase=20]="PluralCase",Mt[Mt.ExtraData=21]="ExtraData",Mt))();const Zs="en-US";let am=Zs;function $c(p,m,g,_,y){if(p=ne(p),Array.isArray(p))for(let C=0;C>20;if(xo(p)||!p.multi){const fe=new Qn(R,y,zs),De=xp(L,m,y?W:W+oe,ee);-1===De?(Pd(qa(V,D),C,L),wm(C,p,m.length),m.push(L),V.directiveStart++,V.directiveEnd++,y&&(V.providerIndexes+=1048576),g.push(fe),D.push(fe)):(g[De]=fe,D[De]=fe)}else{const fe=xp(L,m,W+oe,ee),De=xp(L,m,W,W+oe),qe=fe>=0&&g[fe],Ze=De>=0&&g[De];if(y&&!Ze||!y&&!qe){Pd(qa(V,D),C,L);const at=function sb(p,m,g,_,y){const C=new Qn(p,g,zs);return C.multi=[],C.index=m,C.componentProviders=0,pC(C,y,_&&!g),C}(y?ab:fC,g.length,y,_,R);!y&&Ze&&(g[De].providerFactory=at),wm(C,p,m.length,0),m.push(L),V.directiveStart++,V.directiveEnd++,y&&(V.providerIndexes+=1048576),g.push(at),D.push(at)}else wm(C,p,fe>-1?fe:De,pC(g[y?De:fe],R,!y&&_));!y&&_&&Ze&&g[De].componentProviders++}}}function wm(p,m,g,_){const y=xo(m),C=function jy(p){return!!p.useClass}(m);if(y||C){const R=(C?ne(m.useClass):m).prototype.ngOnDestroy;if(R){const V=p.destroyHooks||(p.destroyHooks=[]);if(!y&&m.multi){const W=V.indexOf(g);-1===W?V.push(g,[_,R]):V[W+1].push(_,R)}else V.push(g,R)}}}function pC(p,m,g){return g&&p.componentProviders++,p.multi.push(m)-1}function xp(p,m,g,_){for(let y=g;y<_;y++)if(m[y]===p)return y;return-1}function fC(p,m,g,_){return Cm(this.multi,[])}function ab(p,m,g,_){const y=this.multi;let C;if(this.providerFactory){const D=this.providerFactory.componentProviders,L=Nr(g,g[1],this.providerFactory.index,_);C=L.slice(0,D),Cm(y,C);for(let R=D;R{g.providersResolver=(_,y)=>function hC(p,m,g){const _=ht();if(_.firstCreatePass){const y=Zn(p);$c(g,_.data,_.blueprint,y,!0),$c(m,_.data,_.blueprint,y,!1)}}(_,y?y(p):p,m)}}class Zc{}class aa{}function mC(p,m){return new ob(p,m??null)}class ob extends Zc{constructor(m,g){super(),this._parent=g,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Bc(this);const _=Ge(m);this._bootstrapComponents=Do(_.bootstrap),this._r3Injector=HM(m,g,[{provide:Zc,useValue:this},{provide:Rc,useValue:this.componentFactoryResolver}],F(m),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(m)}get injector(){return this._r3Injector}destroy(){const m=this._r3Injector;!m.destroyed&&m.destroy(),this.destroyCbs.forEach(g=>g()),this.destroyCbs=null}onDestroy(m){this.destroyCbs.push(m)}}class Bu extends aa{constructor(m){super(),this.moduleType=m}create(m){return new ob(this.moduleType,m)}}class gC extends Zc{constructor(m,g,_){super(),this.componentFactoryResolver=new Bc(this),this.instance=null;const y=new Kg([...m,{provide:Zc,useValue:this},{provide:Rc,useValue:this.componentFactoryResolver}],g||Ih(),_,new Set(["environment"]));this.injector=y,y.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(m){this.injector.onDestroy(m)}}function Nu(p,m,g=null){return new gC(p,m,g).injector}function Tm(p,m,g){const _=Zi()+p,y=ye();return y[_]===Vt?pr(y,_,g?m.call(g):m()):function lp(p,m){return p[m]}(y,_)}function _b(p,m,g,_){return Mb(ye(),Zi(),p,m,g,_)}function bb(p,m,g,_,y){return xm(ye(),Zi(),p,m,g,_,y)}function Xc(p,m){const g=p[m];return g===Vt?void 0:g}function Mb(p,m,g,_,y,C){const D=m+g;return fr(p,D,y)?pr(p,D+1,C?_.call(C,y):_(y)):Xc(p,D+1)}function xm(p,m,g,_,y,C,D){const L=m+g;return Vc(p,L,y,C)?pr(p,L+2,D?_.call(D,y,C):_(y,C)):Xc(p,L+2)}function xC(p,m,g,_,y,C,D,L){const R=m+g;return function H0(p,m,g,_,y){const C=Vc(p,m,g,_);return fr(p,m+2,y)||C}(p,R,y,C,D)?pr(p,R+3,L?_.call(L,y,C,D):_(y,C,D)):Xc(p,R+3)}function Sm(p,m){const g=ht();let _;const y=p+22;g.firstCreatePass?(_=function Hp(p,m){if(m)for(let g=m.length-1;g>=0;g--){const _=m[g];if(p===_.name)return _}}(m,g.pipeRegistry),g.data[y]=_,_.onDestroy&&(g.destroyHooks||(g.destroyHooks=[])).push(y,_.onDestroy)):_=g.data[y];const C=_.factory||(_.factory=ga(_.type)),D=ot(zs);try{const L=Hs(!1),R=C();return Hs(L),function Mw(p,m,g,_){g>=p.data.length&&(p.data[g]=null,p.blueprint[g]=null),m[g]=_}(g,ye(),y,R),R}finally{ot(D)}}function Em(p,m,g){const _=p+22,y=ye(),C=mo(y,_);return Lp(y,_)?Mb(y,Zi(),m,C.transform,g,C):C.transform(g)}function DC(p,m,g,_){const y=p+22,C=ye(),D=mo(C,y);return Lp(C,y)?xm(C,Zi(),m,D.transform,g,_,D):D.transform(g,_)}function HC(p,m,g,_,y){const C=p+22,D=ye(),L=mo(D,C);return Lp(D,C)?xC(D,Zi(),m,L.transform,g,_,y,L):L.transform(g,_,y)}function Lp(p,m){return p[1].data[m].pure}function vb(p){return m=>{setTimeout(p,void 0,m)}}const ls=class Cb extends w.x{constructor(m=!1){super(),this.__isAsync=m}emit(m){super.next(m)}subscribe(m,g,_){let y=m,C=g||(()=>null),D=_;if(m&&"object"==typeof m){var L,R,V;const ee=m;y=null===(L=ee.next)||void 0===L?void 0:L.bind(ee),C=null===(R=ee.error)||void 0===R?void 0:R.bind(ee),D=null===(V=ee.complete)||void 0===V?void 0:V.bind(ee)}this.__isAsync&&(C=vb(C),y&&(y=vb(y)),D&&(D=vb(D)));const W=super.subscribe({next:y,error:C,complete:D});return m instanceof i.w0&&m.add(W),W}};function PC(){return this._results[Vl()]()}class Pp{constructor(m=!1){this._emitDistinctChangesOnly=m,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const g=Vl(),_=Pp.prototype;_[g]||(_[g]=PC)}get changes(){return this._changes||(this._changes=new ls)}get(m){return this._results[m]}map(m){return this._results.map(m)}filter(m){return this._results.filter(m)}find(m){return this._results.find(m)}reduce(m,g){return this._results.reduce(m,g)}forEach(m){this._results.forEach(m)}some(m){return this._results.some(m)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(m,g){const _=this;_.dirty=!1;const y=nn(m);(this._changesDetected=!function Nd(p,m,g){if(p.length!==m.length)return!1;for(let _=0;_{class p{}return p.__NG_ELEMENT_ID__=OC,p})();const RC=Vu,kC=class extends RC{constructor(m,g,_){super(),this._declarationLView=m,this._declarationTContainer=g,this.elementRef=_}createEmbeddedView(m,g){const _=this._declarationTContainer.tViews,y=qs(this._declarationLView,_,m,16,null,_.declTNode,null,null,null,null,g||null);y[17]=this._declarationLView[this._declarationTContainer.index];const D=this._declarationLView[19];return null!==D&&(y[19]=D.createEmbeddedView(_)),Il(_,y,m),new pu(y)}};function OC(){return Rp(Ci(),ye())}function Rp(p,m){return 4&p.type?new kC(m,p,Ka(p,m)):null}let kp=(()=>{class p{}return p.__NG_ELEMENT_ID__=Tb,p})();function Tb(){return Kc(Ci(),ye())}const HS=kp,IC=class extends HS{constructor(m,g,_){super(),this._lContainer=m,this._hostTNode=g,this._hostLView=_}get element(){return Ka(this._hostTNode,this._hostLView)}get injector(){return new wo(this._hostTNode,this._hostLView)}get parentInjector(){const m=yo(this._hostTNode,this._hostLView);if(Ed(m)){const g=Ao(m,this._hostLView),_=Ds(m);return new wo(g[1].data[_+8],g)}return new wo(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(m){const g=BC(this._lContainer);return null!==g&&g[m]||null}get length(){return this._lContainer.length-10}createEmbeddedView(m,g,_){let y,C;"number"==typeof _?y=_:null!=_&&(y=_.index,C=_.injector);const D=m.createEmbeddedView(g||{},C);return this.insert(D,y),D}createComponent(m,g,_,y,C){const D=m&&!function vo(p){return"function"==typeof p}(m);let L;if(D)L=g;else{const ee=g||{};L=ee.index,_=ee.injector,y=ee.projectableNodes,C=ee.environmentInjector||ee.ngModuleRef}const R=D?m:new mu(di(m)),V=_||this.parentInjector;if(!C&&null==R.ngModule){const oe=(D?V:this.parentInjector).get(Hl,null);oe&&(C=oe)}const W=R.create(V,y,void 0,C);return this.insert(W.hostView,L),W}insert(m,g){const _=m._lView,y=_[1];if(function N(p){return $n(p[3])}(_)){const W=this.indexOf(m);if(-1!==W)this.detach(W);else{const ee=_[3],oe=new IC(ee,ee[6],ee[3]);oe.detach(oe.indexOf(m))}}const C=this._adjustIndex(g),D=this._lContainer;!function Wx(p,m,g,_){const y=10+_,C=g.length;_>0&&(g[y-1][4]=m),_0)_.push(D[L/2]);else{const V=C[L+1],W=m[-R];for(let ee=10;ee{class p{constructor(g){this.appInits=g,this.resolve=Yp,this.reject=Yp,this.initialized=!1,this.done=!1,this.donePromise=new Promise((_,y)=>{this.resolve=_,this.reject=y})}runInitializers(){if(this.initialized)return;const g=[],_=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let y=0;y{C.subscribe({complete:L,error:R})});g.push(D)}}Promise.all(g).then(()=>{_()}).catch(y=>{this.reject(y)}),0===g.length&&_(),this.initialized=!0}}return p.\u0275fac=function(g){return new(g||p)(Bi(qm,8))},p.\u0275prov=si({token:p,factory:p.\u0275fac,providedIn:"root"}),p})();const ld=new Ti("AppId",{providedIn:"root",factory:function Vb(){return`${cd()}${cd()}${cd()}`}});function cd(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Ym=new Ti("Platform Initializer"),lv=new Ti("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Fb=new Ti("appBootstrapListener"),cv=new Ti("AnimationModuleType");let dv=(()=>{class p{log(g){console.log(g)}warn(g){console.warn(g)}}return p.\u0275fac=function(g){return new(g||p)},p.\u0275prov=si({token:p,factory:p.\u0275fac,providedIn:"platform"}),p})();const Wp=new Ti("LocaleId",{providedIn:"root",factory:()=>yh(Wp,be.Optional|be.SkipSelf)||function zb(){return typeof $localize<"u"&&$localize.locale||Zs}()}),uv=new Ti("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class pv{constructor(m,g){this.ngModuleFactory=m,this.componentFactories=g}}let fv=(()=>{class p{compileModuleSync(g){return new Bu(g)}compileModuleAsync(g){return Promise.resolve(this.compileModuleSync(g))}compileModuleAndAllComponentsSync(g){const _=this.compileModuleSync(g),C=Do(Ge(g).declarations).reduce((D,L)=>{const R=di(L);return R&&D.push(new mu(R)),D},[]);return new pv(_,C)}compileModuleAndAllComponentsAsync(g){return Promise.resolve(this.compileModuleAndAllComponentsSync(g))}clearCache(){}clearCacheFor(g){}getModuleId(g){}}return p.\u0275fac=function(g){return new(g||p)},p.\u0275prov=si({token:p,factory:p.\u0275fac,providedIn:"root"}),p})();const mv=(()=>Promise.resolve(0))();function Um(p){typeof Zone>"u"?mv.then(()=>{p&&p.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",p)}class Er{constructor({enableLongStackTrace:m=!1,shouldCoalesceEventChangeDetection:g=!1,shouldCoalesceRunChangeDetection:_=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ls(!1),this.onMicrotaskEmpty=new ls(!1),this.onStable=new ls(!1),this.onError=new ls(!1),typeof Zone>"u")throw new ie(908,!1);Zone.assertZonePatched();const y=this;if(y._nesting=0,y._outer=y._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const C=Zone.AsyncStackTaggingZoneSpec;y._inner=y._inner.fork(new C("Angular"))}Zone.TaskTrackingZoneSpec&&(y._inner=y._inner.fork(new Zone.TaskTrackingZoneSpec)),m&&Zone.longStackTraceZoneSpec&&(y._inner=y._inner.fork(Zone.longStackTraceZoneSpec)),y.shouldCoalesceEventChangeDetection=!_&&g,y.shouldCoalesceRunChangeDetection=_,y.lastRequestAnimationFrameId=-1,y.nativeRequestAnimationFrame=function gv(){let p=ue.requestAnimationFrame,m=ue.cancelAnimationFrame;if(typeof Zone<"u"&&p&&m){const g=p[Zone.__symbol__("OriginalDelegate")];g&&(p=g);const _=m[Zone.__symbol__("OriginalDelegate")];_&&(m=_)}return{nativeRequestAnimationFrame:p,nativeCancelAnimationFrame:m}}().nativeRequestAnimationFrame,function dd(p){const m=()=>{!function _v(p){p.isCheckStableRunning||-1!==p.lastRequestAnimationFrameId||(p.lastRequestAnimationFrameId=p.nativeRequestAnimationFrame.call(ue,()=>{p.fakeTopEventTask||(p.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{p.lastRequestAnimationFrameId=-1,Zm(p),p.isCheckStableRunning=!0,$m(p),p.isCheckStableRunning=!1},void 0,()=>{},()=>{})),p.fakeTopEventTask.invoke()}),Zm(p))}(p)};p._inner=p._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(g,_,y,C,D,L)=>{try{return ud(p),g.invokeTask(y,C,D,L)}finally{(p.shouldCoalesceEventChangeDetection&&"eventTask"===C.type||p.shouldCoalesceRunChangeDetection)&&m(),qb(p)}},onInvoke:(g,_,y,C,D,L,R)=>{try{return ud(p),g.invoke(y,C,D,L,R)}finally{p.shouldCoalesceRunChangeDetection&&m(),qb(p)}},onHasTask:(g,_,y,C)=>{g.hasTask(y,C),_===y&&("microTask"==C.change?(p._hasPendingMicrotasks=C.microTask,Zm(p),$m(p)):"macroTask"==C.change&&(p.hasPendingMacrotasks=C.macroTask))},onHandleError:(g,_,y,C)=>(g.handleError(y,C),p.runOutsideAngular(()=>p.onError.emit(C)),!1)})}(y)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Er.isInAngularZone())throw new ie(909,!1)}static assertNotInAngularZone(){if(Er.isInAngularZone())throw new ie(909,!1)}run(m,g,_){return this._inner.run(m,g,_)}runTask(m,g,_,y){const C=this._inner,D=C.scheduleEventTask("NgZoneEvent: "+y,m,Gm,Yp,Yp);try{return C.runTask(D,g,_)}finally{C.cancelTask(D)}}runGuarded(m,g,_){return this._inner.runGuarded(m,g,_)}runOutsideAngular(m){return this._outer.run(m)}}const Gm={};function $m(p){if(0==p._nesting&&!p.hasPendingMicrotasks&&!p.isStable)try{p._nesting++,p.onMicrotaskEmpty.emit(null)}finally{if(p._nesting--,!p.hasPendingMicrotasks)try{p.runOutsideAngular(()=>p.onStable.emit(null))}finally{p.isStable=!0}}}function Zm(p){p.hasPendingMicrotasks=!!(p._hasPendingMicrotasks||(p.shouldCoalesceEventChangeDetection||p.shouldCoalesceRunChangeDetection)&&-1!==p.lastRequestAnimationFrameId)}function ud(p){p._nesting++,p.isStable&&(p.isStable=!1,p.onUnstable.emit(null))}function qb(p){p._nesting--,$m(p)}class bv{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ls,this.onMicrotaskEmpty=new ls,this.onStable=new ls,this.onError=new ls}run(m,g,_){return m.apply(g,_)}runGuarded(m,g,_){return m.apply(g,_)}runOutsideAngular(m){return m()}runTask(m,g,_,y){return m.apply(g,_)}}const xi=new Ti(""),Yb=new Ti("");let Gb,fn=(()=>{class p{constructor(g,_,y){this._ngZone=g,this.registry=_,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Gb||(function Ub(p){Gb=p}(y),y.addToWindow(_)),this._watchAngularEvents(),g.run(()=>{this.taskTrackingZone=typeof Zone>"u"?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:()=>{Er.assertNotInAngularZone(),Um(()=>{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())Um(()=>{for(;0!==this._callbacks.length;){let g=this._callbacks.pop();clearTimeout(g.timeoutId),g.doneCb(this._didWork)}this._didWork=!1});else{let g=this.getPendingTasks();this._callbacks=this._callbacks.filter(_=>!_.updateCb||!_.updateCb(g)||(clearTimeout(_.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(g=>({source:g.source,creationLocation:g.creationLocation,data:g.data})):[]}addCallback(g,_,y){let C=-1;_&&_>0&&(C=setTimeout(()=>{this._callbacks=this._callbacks.filter(D=>D.timeoutId!==C),g(this._didWork,this.getPendingTasks())},_)),this._callbacks.push({doneCb:g,timeoutId:C,updateCb:y})}whenStable(g,_,y){if(y&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(g,_,y),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(g){this.registry.registerApplication(g,this)}unregisterApplication(g){this.registry.unregisterApplication(g)}findProviders(g,_,y){return[]}}return p.\u0275fac=function(g){return new(g||p)(Bi(Er),Bi(Wb),Bi(Yb))},p.\u0275prov=si({token:p,factory:p.\u0275fac}),p})(),Wb=(()=>{class p{constructor(){this._applications=new Map}registerApplication(g,_){this._applications.set(g,_)}unregisterApplication(g){this._applications.delete(g)}unregisterAllApplications(){this._applications.clear()}getTestability(g){return this._applications.get(g)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(g,_=!0){var y,C;return null!==(y=null===(C=Gb)||void 0===C?void 0:C.findTestabilityInTree(this,g,_))&&void 0!==y?y:null}}return p.\u0275fac=function(g){return new(g||p)},p.\u0275prov=si({token:p,factory:p.\u0275fac,providedIn:"platform"}),p})(),Wo=null;const $b=new Ti("AllowMultipleToken"),Jm=new Ti("PlatformDestroyListeners");class Qi{constructor(m,g){this.name=m,this.token=g}}function Jb(p,m,g=[]){const _=`Platform: ${m}`,y=new Ti(_);return(C=[])=>{let D=Qb();if(!D||D.injector.get($b,!1)){const L=[...g,...C,{provide:y,useValue:!0}];p?p(L):function sn(p){if(Wo&&!Wo.get($b,!1))throw new ie(400,!1);Wo=p;const m=p.get(yv);(function Zb(p){const m=p.get(Ym,null);m&&m.forEach(g=>g())})(p)}(function Av(p=[],m){return Ho.create({name:m,providers:[{provide:If,useValue:"platform"},{provide:Jm,useValue:new Set([()=>Wo=null])},...p]})}(L,_))}return function hd(p){const m=Qb();if(!m)throw new ie(401,!1);return m}()}}function Qb(){var p,m;return null!==(p=null===(m=Wo)||void 0===m?void 0:m.get(yv))&&void 0!==p?p:null}let yv=(()=>{class p{constructor(g){this._injector=g,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(g,_){const y=function GS(p,m){let g;return g="noop"===p?new bv:("zone.js"===p?void 0:p)||new Er(m),g}(_?.ngZone,function Mv(p){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!p||!p.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!p||!p.ngZoneRunCoalescing)||!1}}(_)),C=[{provide:Er,useValue:y}];return y.run(()=>{const D=Ho.create({providers:C,parent:this.injector,name:g.moduleType.name}),L=g.create(D),R=L.injector.get(Eo,null);if(!R)throw new ie(402,!1);return y.runOutsideAngular(()=>{const V=y.onError.subscribe({next:W=>{R.handleError(W)}});L.onDestroy(()=>{Km(this._modules,L),V.unsubscribe()})}),function wv(p,m,g){try{const _=g();return hp(_)?_.catch(y=>{throw m.runOutsideAngular(()=>p.handleError(y)),y}):_}catch(_){throw m.runOutsideAngular(()=>p.handleError(_)),_}}(R,y,()=>{const V=L.injector.get(cs);return V.runInitializers(),V.donePromise.then(()=>(function qw(p){ai(p,"Expected localeId to be defined"),"string"==typeof p&&(am=p.toLowerCase().replace(/_/g,"-"))}(L.injector.get(Wp,Zs)||Zs),this._moduleDoBootstrap(L),L))})})}bootstrapModule(g,_=[]){const y=Cv({},_);return function Fi(p,m,g){const _=new Bu(g);return Promise.resolve(_)}(0,0,g).then(C=>this.bootstrapModuleFactory(C,y))}_moduleDoBootstrap(g){const _=g.injector.get(Xm);if(g._bootstrapComponents.length>0)g._bootstrapComponents.forEach(y=>_.bootstrap(y));else{if(!g.instance.ngDoBootstrap)throw new ie(403,!1);g.instance.ngDoBootstrap(_)}this._modules.push(g)}onDestroy(g){this._destroyListeners.push(g)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ie(404,!1);this._modules.slice().forEach(_=>_.destroy()),this._destroyListeners.forEach(_=>_());const g=this._injector.get(Jm,null);g&&(g.forEach(_=>_()),g.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return p.\u0275fac=function(g){return new(g||p)(Bi(Ho))},p.\u0275prov=si({token:p,factory:p.\u0275fac,providedIn:"platform"}),p})();function Cv(p,m){return Array.isArray(m)?m.reduce(Cv,p):{...p,...m}}let Xm=(()=>{class p{constructor(g,_,y){this._zone=g,this._injector=_,this._exceptionHandler=y,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const C=new E.y(L=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{L.next(this._stable),L.complete()})}),D=new E.y(L=>{let R;this._zone.runOutsideAngular(()=>{R=this._zone.onStable.subscribe(()=>{Er.assertNotInAngularZone(),Um(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,L.next(!0))})})});const V=this._zone.onUnstable.subscribe(()=>{Er.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{L.next(!1)}))});return()=>{R.unsubscribe(),V.unsubscribe()}});this.isStable=(0,x.T)(C,D.pipe((0,S.B)()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(g,_){const y=g instanceof Gy;if(!this._injector.get(cs).done)throw!y&&rd(g),new ie(405,false);let D;D=y?g:this._injector.get(Rc).resolveComponentFactory(g),this.componentTypes.push(D.componentType);const L=function US(p){return p.isBoundToModule}(D)?void 0:this._injector.get(Zc),V=D.create(Ho.NULL,[],_||D.selector,L),W=V.location.nativeElement,ee=V.injector.get(xi,null);return ee?.registerApplication(W),V.onDestroy(()=>{this.detachView(V.hostView),Km(this.components,V),ee?.unregisterApplication(W)}),this._loadComponent(V),V}tick(){if(this._runningTick)throw new ie(101,!1);try{this._runningTick=!0;for(let g of this._views)g.detectChanges()}catch(g){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(g))}finally{this._runningTick=!1}}attachView(g){const _=g;this._views.push(_),_.attachToAppRef(this)}detachView(g){const _=g;Km(this._views,_),_.detachFromAppRef()}_loadComponent(g){this.attachView(g.hostView),this.tick(),this.components.push(g),this._injector.get(Fb,[]).concat(this._bootstrapListeners).forEach(y=>y(g))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(g=>g()),this._views.slice().forEach(g=>g.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(g){return this._destroyListeners.push(g),()=>Km(this._destroyListeners,g)}destroy(){if(this._destroyed)throw new ie(406,!1);const g=this._injector;g.destroy&&!g.destroyed&&g.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return p.\u0275fac=function(g){return new(g||p)(Bi(Er),Bi(Hl),Bi(Eo))},p.\u0275prov=si({token:p,factory:p.\u0275fac,providedIn:"root"}),p})();function Km(p,m){const g=p.indexOf(m);g>-1&&p.splice(g,1)}let $p=!0;function $S(){$p=!1}let xv=(()=>{class p{}return p.__NG_ELEMENT_ID__=ZS,p})();function ZS(p){return function Sv(p,m,g){if(Zr(p)&&!g){const _=Pn(p.index,m);return new pu(_,_)}return 47&p.type?new pu(m[16],m):null}(Ci(),ye(),16==(16&p))}class Pv{constructor(){}supports(m){return Nc(m)}create(m){return new tE(m)}}const eE=(p,m)=>m;class tE{constructor(m){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=m||eE}forEachItem(m){let g;for(g=this._itHead;null!==g;g=g._next)m(g)}forEachOperation(m){let g=this._itHead,_=this._removalsHead,y=0,C=null;for(;g||_;){const D=!_||g&&g.currentIndex{D=this._trackByFn(y,L),null!==g&&Object.is(g.trackById,D)?(_&&(g=this._verifyReinsertion(g,L,D,y)),Object.is(g.item,L)||this._addIdentityChange(g,L)):(g=this._mismatch(g,L,D,y),_=!0),g=g._next,y++}),this.length=y;return this._truncate(g),this.collection=m,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let m;for(m=this._previousItHead=this._itHead;null!==m;m=m._next)m._nextPrevious=m._next;for(m=this._additionsHead;null!==m;m=m._nextAdded)m.previousIndex=m.currentIndex;for(this._additionsHead=this._additionsTail=null,m=this._movesHead;null!==m;m=m._nextMoved)m.previousIndex=m.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(m,g,_,y){let C;return null===m?C=this._itTail:(C=m._prev,this._remove(m)),null!==(m=null===this._unlinkedRecords?null:this._unlinkedRecords.get(_,null))?(Object.is(m.item,g)||this._addIdentityChange(m,g),this._reinsertAfter(m,C,y)):null!==(m=null===this._linkedRecords?null:this._linkedRecords.get(_,y))?(Object.is(m.item,g)||this._addIdentityChange(m,g),this._moveAfter(m,C,y)):m=this._addAfter(new iA(g,_),C,y),m}_verifyReinsertion(m,g,_,y){let C=null===this._unlinkedRecords?null:this._unlinkedRecords.get(_,null);return null!==C?m=this._reinsertAfter(C,m._prev,y):m.currentIndex!=y&&(m.currentIndex=y,this._addToMoves(m,y)),m}_truncate(m){for(;null!==m;){const g=m._next;this._addToRemovals(this._unlink(m)),m=g}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(m,g,_){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(m);const y=m._prevRemoved,C=m._nextRemoved;return null===y?this._removalsHead=C:y._nextRemoved=C,null===C?this._removalsTail=y:C._prevRemoved=y,this._insertAfter(m,g,_),this._addToMoves(m,_),m}_moveAfter(m,g,_){return this._unlink(m),this._insertAfter(m,g,_),this._addToMoves(m,_),m}_addAfter(m,g,_){return this._insertAfter(m,g,_),this._additionsTail=null===this._additionsTail?this._additionsHead=m:this._additionsTail._nextAdded=m,m}_insertAfter(m,g,_){const y=null===g?this._itHead:g._next;return m._next=y,m._prev=g,null===y?this._itTail=m:y._prev=m,null===g?this._itHead=m:g._next=m,null===this._linkedRecords&&(this._linkedRecords=new nA),this._linkedRecords.put(m),m.currentIndex=_,m}_remove(m){return this._addToRemovals(this._unlink(m))}_unlink(m){null!==this._linkedRecords&&this._linkedRecords.remove(m);const g=m._prev,_=m._next;return null===g?this._itHead=_:g._next=_,null===_?this._itTail=g:_._prev=g,m}_addToMoves(m,g){return m.previousIndex===g||(this._movesTail=null===this._movesTail?this._movesHead=m:this._movesTail._nextMoved=m),m}_addToRemovals(m){return null===this._unlinkedRecords&&(this._unlinkedRecords=new nA),this._unlinkedRecords.put(m),m.currentIndex=null,m._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=m,m._prevRemoved=null):(m._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=m),m}_addIdentityChange(m,g){return m.item=g,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=m:this._identityChangesTail._nextIdentityChange=m,m}}class iA{constructor(m,g){this.item=m,this.trackById=g,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 iE{constructor(){this._head=null,this._tail=null}add(m){null===this._head?(this._head=this._tail=m,m._nextDup=null,m._prevDup=null):(this._tail._nextDup=m,m._prevDup=this._tail,m._nextDup=null,this._tail=m)}get(m,g){let _;for(_=this._head;null!==_;_=_._nextDup)if((null===g||g<=_.currentIndex)&&Object.is(_.trackById,m))return _;return null}remove(m){const g=m._prevDup,_=m._nextDup;return null===g?this._head=_:g._nextDup=_,null===_?this._tail=g:_._prevDup=g,null===this._head}}class nA{constructor(){this.map=new Map}put(m){const g=m.trackById;let _=this.map.get(g);_||(_=new iE,this.map.set(g,_)),_.add(m)}get(m,g){const y=this.map.get(m);return y?y.get(m,g):null}remove(m){const g=m.trackById;return this.map.get(g).remove(m)&&this.map.delete(g),m}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Rv(p,m,g){const _=p.previousIndex;if(null===_)return _;let y=0;return g&&_{if(g&&g.key===y)this._maybeAddToChanges(g,_),this._appendAfter=g,g=g._next;else{const C=this._getOrCreateRecordForKey(y,_);g=this._insertBeforeOrAppend(g,C)}}),g){g._prev&&(g._prev._next=null),this._removalsHead=g;for(let _=g;null!==_;_=_._nextRemoved)_===this._mapHead&&(this._mapHead=null),this._records.delete(_.key),_._nextRemoved=_._next,_.previousValue=_.currentValue,_.currentValue=null,_._prev=null,_._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(m,g){if(m){const _=m._prev;return g._next=m,g._prev=_,m._prev=g,_&&(_._next=g),m===this._mapHead&&(this._mapHead=g),this._appendAfter=m,m}return this._appendAfter?(this._appendAfter._next=g,g._prev=this._appendAfter):this._mapHead=g,this._appendAfter=g,null}_getOrCreateRecordForKey(m,g){if(this._records.has(m)){const y=this._records.get(m);this._maybeAddToChanges(y,g);const C=y._prev,D=y._next;return C&&(C._next=D),D&&(D._prev=C),y._next=null,y._prev=null,y}const _=new rA(m);return this._records.set(m,_),_.currentValue=g,this._addToAdditions(_),_}_reset(){if(this.isDirty){let m;for(this._previousMapHead=this._mapHead,m=this._previousMapHead;null!==m;m=m._next)m._nextPrevious=m._next;for(m=this._changesHead;null!==m;m=m._nextChanged)m.previousValue=m.currentValue;for(m=this._additionsHead;null!=m;m=m._nextAdded)m.previousValue=m.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(m,g){Object.is(g,m.currentValue)||(m.previousValue=m.currentValue,m.currentValue=g,this._addToChanges(m))}_addToAdditions(m){null===this._additionsHead?this._additionsHead=this._additionsTail=m:(this._additionsTail._nextAdded=m,this._additionsTail=m)}_addToChanges(m){null===this._changesHead?this._changesHead=this._changesTail=m:(this._changesTail._nextChanged=m,this._changesTail=m)}_forEach(m,g){m instanceof Map?m.forEach(g):Object.keys(m).forEach(_=>g(m[_],_))}}class rA{constructor(m){this.key=m,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function aA(){return new tg([new Pv])}let tg=(()=>{class p{constructor(g){this.factories=g}static create(g,_){if(null!=_){const y=_.factories.slice();g=g.concat(y)}return new p(g)}static extend(g){return{provide:p,useFactory:_=>p.create(g,_||aA()),deps:[[p,new $a,new Tl]]}}find(g){const _=this.factories.find(y=>y.supports(g));if(null!=_)return _;throw new ie(901,!1)}}return p.\u0275prov=si({token:p,providedIn:"root",factory:aA}),p})();function Iv(){return new sA([new kv])}let sA=(()=>{class p{constructor(g){this.factories=g}static create(g,_){if(_){const y=_.factories.slice();g=g.concat(y)}return new p(g)}static extend(g){return{provide:p,useFactory:_=>p.create(g,_||Iv()),deps:[[p,new $a,new Tl]]}}find(g){const _=this.factories.find(y=>y.supports(g));if(_)return _;throw new ie(901,!1)}}return p.\u0275prov=si({token:p,providedIn:"root",factory:Iv}),p})();const aE=Jb(null,"core",[]);let sE=(()=>{class p{constructor(g){}}return p.\u0275fac=function(g){return new(g||p)(Bi(Xm))},p.\u0275mod=Lr({type:p}),p.\u0275inj=Mi({}),p})();function oE(p){return"boolean"==typeof p?p:null!=p&&"false"!==p}},1214:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Ct:()=>OAuthService,Hy:()=>OAuthStorage,zr:()=>OAuthModule});var _home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5861),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(4650),_angular_common__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(6895),_angular_common_http__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(529),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(7579),rxjs__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(9646),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(2076),rxjs__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(102),rxjs__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(2843),rxjs__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(9841),rxjs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(6451),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(9300),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(8505),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(8372),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(1005),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(3900),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(4004),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(590),rxjs_operators__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(262),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(7414),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(5698),rxjs_operators__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(5577),fast_sha256__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1302);class DateTimeProvider{}let SystemDateTimeProvider=(()=>{class j extends DateTimeProvider{now(){return Date.now()}new(){return new Date}}return j.\u0275fac=function(){let Y;return function(w){return(Y||(Y=_angular_core__WEBPACK_IMPORTED_MODULE_1__.n5z(j)))(w||j)}}(),j.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:j,factory:j.\u0275fac}),j})();class LoginOptions{constructor(){this.disableNonceCheck=!1,this.preventClearHashAfterLogin=!1}}class OAuthLogger{}class OAuthStorage{}let MemoryStorage=(()=>{class j{constructor(){this.data=new Map}getItem(T){return this.data.get(T)}removeItem(T){this.data.delete(T)}setItem(T,w){this.data.set(T,w)}}return j.\u0275fac=function(T){return new(T||j)},j.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:j,factory:j.\u0275fac}),j})();class ReceivedTokens{}class OAuthEvent{constructor(Y){this.type=Y}}class OAuthSuccessEvent extends OAuthEvent{constructor(Y,T=null){super(Y),this.info=T}}class OAuthInfoEvent extends OAuthEvent{constructor(Y,T=null){super(Y),this.info=T}}class OAuthErrorEvent extends OAuthEvent{constructor(Y,T,w=null){super(Y),this.reason=T,this.params=w}}function b64DecodeUnicode(j){const Y=j.replace(/\-/g,"+").replace(/\_/g,"/");return decodeURIComponent(atob(Y).split("").map(function(T){return"%"+("00"+T.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function base64UrlEncode(j){return btoa(j).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}class AuthConfig{constructor(Y){this.clientId="",this.redirectUri="",this.postLogoutRedirectUri="",this.redirectUriAsPostLogoutRedirectUriFallback=!0,this.loginUrl="",this.scope="openid profile",this.resource="",this.rngUrl="",this.oidc=!0,this.requestAccessToken=!0,this.options=null,this.issuer="",this.logoutUrl="",this.clearHashAfterLogin=!0,this.tokenEndpoint=null,this.revocationEndpoint=null,this.customTokenParameters=[],this.userinfoEndpoint=null,this.responseType="",this.showDebugInformation=!1,this.silentRefreshRedirectUri="",this.silentRefreshMessagePrefix="",this.silentRefreshShowIFrame=!1,this.siletRefreshTimeout=2e4,this.silentRefreshTimeout=2e4,this.dummyClientSecret=null,this.requireHttps="remoteOnly",this.strictDiscoveryDocumentValidation=!0,this.jwks=null,this.customQueryParams=null,this.silentRefreshIFrameName="angular-oauth-oidc-silent-refresh-iframe",this.timeoutFactor=.75,this.sessionChecksEnabled=!1,this.sessionCheckIntervall=3e3,this.sessionCheckIFrameUrl=null,this.sessionCheckIFrameName="angular-oauth-oidc-check-session-iframe",this.disableAtHashCheck=!1,this.skipSubjectCheck=!1,this.useIdTokenHintForSilentRefresh=!1,this.skipIssuerCheck=!1,this.nonceStateSeparator=";",this.useHttpBasicAuth=!1,this.waitForTokenInMsec=0,this.disablePKCE=!1,this.preserveRequestedRoute=!1,this.openUri=T=>{location.href=T},Y&&Object.assign(this,Y)}}class WebHttpUrlEncodingCodec{encodeKey(Y){return encodeURIComponent(Y)}encodeValue(Y){return encodeURIComponent(Y)}decodeKey(Y){return decodeURIComponent(Y)}decodeValue(Y){return decodeURIComponent(Y)}}class ValidationHandler{}class AbstractValidationHandler{validateAtHash(Y){var T=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){let w=T.inferHashAlgorithm(Y.idTokenHeader),i=yield T.calcHash(Y.accessToken,w),x=base64UrlEncode(i.substr(0,i.length/2)),S=Y.idTokenClaims.at_hash.replace(/=/g,"");return x!==S&&(console.error("exptected at_hash: "+x),console.error("actual at_hash: "+S)),x===S})()}inferHashAlgorithm(Y){let T=Y.alg;if(!T.match(/^.S[0-9]{3}$/))throw new Error("Algorithm not supported: "+T);return"sha-"+T.substr(2)}}let UrlHelperService=(()=>{class j{getHashFragmentParams(T){let w=T||window.location.hash;if(w=decodeURIComponent(w),0!==w.indexOf("#"))return{};const i=w.indexOf("?");return w=w.substr(i>-1?i+1:1),this.parseQueryString(w)}parseQueryString(T){const w={};let i,E,x,S,P,k,F;if(null===T)return w;i=T.split("&");for(let q=0;q>6,E[S++]=128|63&P):P<55296||P>=57344?(E[S++]=224|P>>12,E[S++]=128|P>>6&63,E[S++]=128|63&P):(P=65536+((1023&P)<<10|1023&j.charCodeAt(++w)),E[S++]=240|P>>18,E[S++]=128|P>>12&63,E[S++]=128|P>>6&63,E[S++]=128|63&P);j=E}else{if("object"!==i)throw new Error(ERROR);if(null===j)throw new Error(ERROR);if(ARRAY_BUFFER&&j.constructor===ArrayBuffer)j=new Uint8Array(j);else if(!(Array.isArray(j)||ARRAY_BUFFER&&ArrayBuffer.isView(j)))throw new Error(ERROR)}j.length>64&&(j=new Sha256(Y,!0).update(j).array());var k=[],F=[];for(w=0;w<64;++w){var q=j[w]||0;k[w]=92^q,F[w]=54^q}Sha256.call(this,Y,T),this.update(F),this.oKeyPad=k,this.inner=!0,this.sharedMemory=T}Sha256.prototype.update=function(j){if(!this.finalized){var Y,T=typeof j;if("string"!==T){if("object"!==T)throw new Error(ERROR);if(null===j)throw new Error(ERROR);if(ARRAY_BUFFER&&j.constructor===ArrayBuffer)j=new Uint8Array(j);else if(!(Array.isArray(j)||ARRAY_BUFFER&&ArrayBuffer.isView(j)))throw new Error(ERROR);Y=!0}for(var w,E,i=0,x=j.length,S=this.blocks;i>2]|=j[i]<>2]|=w<>2]|=(192|w>>6)<>2]|=(128|63&w)<=57344?(S[E>>2]|=(224|w>>12)<>2]|=(128|w>>6&63)<>2]|=(128|63&w)<>2]|=(240|w>>18)<>2]|=(128|w>>12&63)<>2]|=(128|w>>6&63)<>2]|=(128|63&w)<=64?(this.block=S[16],this.start=E-64,this.hash(),this.hashed=!0):this.start=E}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var j=this.blocks,Y=this.lastByteIndex;j[16]=this.block,j[Y>>2]|=EXTRA[3&Y],this.block=j[16],Y>=56&&(this.hashed||this.hash(),j[0]=this.block,j[16]=j[1]=j[2]=j[3]=j[4]=j[5]=j[6]=j[7]=j[8]=j[9]=j[10]=j[11]=j[12]=j[13]=j[14]=j[15]=0),j[14]=this.hBytes<<3|this.bytes>>>29,j[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var k,Q,re,ie,ge,Ae,j=this.h0,Y=this.h1,T=this.h2,w=this.h3,i=this.h4,E=this.h5,x=this.h6,S=this.h7,P=this.blocks;for(k=16;k<64;++k)P[k]=P[k-16]+(((Q=P[k-15])>>>7|Q<<25)^(Q>>>18|Q<<14)^Q>>>3)+P[k-7]+(((Q=P[k-2])>>>17|Q<<15)^(Q>>>19|Q<<13)^Q>>>10)<<0;for(Ae=Y&T,k=0;k<64;k+=4)this.first?(this.is224?(re=300032,S=(Q=P[0]-1413257819)-150054599<<0,w=Q+24177077<<0):(re=704751109,S=(Q=P[0]-210244248)-1521486534<<0,w=Q+143694565<<0),this.first=!1):(S=w+(Q=S+((i>>>6|i<<26)^(i>>>11|i<<21)^(i>>>25|i<<7))+(i&E^~i&x)+K[k]+P[k])<<0,w=Q+(((j>>>2|j<<30)^(j>>>13|j<<19)^(j>>>22|j<<10))+((re=j&Y)^j&T^Ae))<<0),x=T+(Q=x+((S>>>6|S<<26)^(S>>>11|S<<21)^(S>>>25|S<<7))+(S&i^~S&E)+K[k+1]+P[k+1])<<0,T=Q+(((w>>>2|w<<30)^(w>>>13|w<<19)^(w>>>22|w<<10))+((ie=w&j)^w&Y^re))<<0,E=Y+(Q=E+((x>>>6|x<<26)^(x>>>11|x<<21)^(x>>>25|x<<7))+(x&S^~x&i)+K[k+2]+P[k+2])<<0,Y=Q+(((T>>>2|T<<30)^(T>>>13|T<<19)^(T>>>22|T<<10))+((ge=T&w)^T&j^ie))<<0,i=j+(Q=i+((E>>>6|E<<26)^(E>>>11|E<<21)^(E>>>25|E<<7))+(E&x^~E&S)+K[k+3]+P[k+3])<<0,j=Q+(((Y>>>2|Y<<30)^(Y>>>13|Y<<19)^(Y>>>22|Y<<10))+((Ae=Y&T)^Y&w^ge))<<0;this.h0=this.h0+j<<0,this.h1=this.h1+Y<<0,this.h2=this.h2+T<<0,this.h3=this.h3+w<<0,this.h4=this.h4+i<<0,this.h5=this.h5+E<<0,this.h6=this.h6+x<<0,this.h7=this.h7+S<<0},Sha256.prototype.hex=function(){this.finalize();var j=this.h0,Y=this.h1,T=this.h2,w=this.h3,i=this.h4,E=this.h5,x=this.h6,S=this.h7,P=HEX_CHARS[j>>28&15]+HEX_CHARS[j>>24&15]+HEX_CHARS[j>>20&15]+HEX_CHARS[j>>16&15]+HEX_CHARS[j>>12&15]+HEX_CHARS[j>>8&15]+HEX_CHARS[j>>4&15]+HEX_CHARS[15&j]+HEX_CHARS[Y>>28&15]+HEX_CHARS[Y>>24&15]+HEX_CHARS[Y>>20&15]+HEX_CHARS[Y>>16&15]+HEX_CHARS[Y>>12&15]+HEX_CHARS[Y>>8&15]+HEX_CHARS[Y>>4&15]+HEX_CHARS[15&Y]+HEX_CHARS[T>>28&15]+HEX_CHARS[T>>24&15]+HEX_CHARS[T>>20&15]+HEX_CHARS[T>>16&15]+HEX_CHARS[T>>12&15]+HEX_CHARS[T>>8&15]+HEX_CHARS[T>>4&15]+HEX_CHARS[15&T]+HEX_CHARS[w>>28&15]+HEX_CHARS[w>>24&15]+HEX_CHARS[w>>20&15]+HEX_CHARS[w>>16&15]+HEX_CHARS[w>>12&15]+HEX_CHARS[w>>8&15]+HEX_CHARS[w>>4&15]+HEX_CHARS[15&w]+HEX_CHARS[i>>28&15]+HEX_CHARS[i>>24&15]+HEX_CHARS[i>>20&15]+HEX_CHARS[i>>16&15]+HEX_CHARS[i>>12&15]+HEX_CHARS[i>>8&15]+HEX_CHARS[i>>4&15]+HEX_CHARS[15&i]+HEX_CHARS[E>>28&15]+HEX_CHARS[E>>24&15]+HEX_CHARS[E>>20&15]+HEX_CHARS[E>>16&15]+HEX_CHARS[E>>12&15]+HEX_CHARS[E>>8&15]+HEX_CHARS[E>>4&15]+HEX_CHARS[15&E]+HEX_CHARS[x>>28&15]+HEX_CHARS[x>>24&15]+HEX_CHARS[x>>20&15]+HEX_CHARS[x>>16&15]+HEX_CHARS[x>>12&15]+HEX_CHARS[x>>8&15]+HEX_CHARS[x>>4&15]+HEX_CHARS[15&x];return this.is224||(P+=HEX_CHARS[S>>28&15]+HEX_CHARS[S>>24&15]+HEX_CHARS[S>>20&15]+HEX_CHARS[S>>16&15]+HEX_CHARS[S>>12&15]+HEX_CHARS[S>>8&15]+HEX_CHARS[S>>4&15]+HEX_CHARS[15&S]),P},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var j=this.h0,Y=this.h1,T=this.h2,w=this.h3,i=this.h4,E=this.h5,x=this.h6,S=this.h7,P=[j>>24&255,j>>16&255,j>>8&255,255&j,Y>>24&255,Y>>16&255,Y>>8&255,255&Y,T>>24&255,T>>16&255,T>>8&255,255&T,w>>24&255,w>>16&255,w>>8&255,255&w,i>>24&255,i>>16&255,i>>8&255,255&i,E>>24&255,E>>16&255,E>>8&255,255&E,x>>24&255,x>>16&255,x>>8&255,255&x];return this.is224||P.push(S>>24&255,S>>16&255,S>>8&255,255&S),P},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var j=new ArrayBuffer(this.is224?28:32),Y=new DataView(j);return Y.setUint32(0,this.h0),Y.setUint32(4,this.h1),Y.setUint32(8,this.h2),Y.setUint32(12,this.h3),Y.setUint32(16,this.h4),Y.setUint32(20,this.h5),Y.setUint32(24,this.h6),this.is224||Y.setUint32(28,this.h7),j},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var j=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(j),Sha256.prototype.finalize.call(this)}};var exports=createMethod();return exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),exports}const sha256=factory();class HashHandler{}function decodeUTF8(j){if("string"!=typeof j)throw new TypeError("expected string");var Y,T=j,w=new Uint8Array(T.length);for(Y=0;Y{class j{calcHash(T,w){return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){return encodeUTF8(fast_sha256__WEBPACK_IMPORTED_MODULE_0__(decodeUTF8(T)))})()}toHashString2(T){let w="";for(let i of T)w+=String.fromCharCode(i);return w}toHashString(T){const w=new Uint8Array(T);let i="";for(let E of w)i+=String.fromCharCode(E);return i}}return j.\u0275fac=function(T){return new(T||j)},j.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:j,factory:j.\u0275fac}),j})(),OAuthService=(()=>{class j extends AuthConfig{constructor(T,w,i,E,x,S,P,k,F,q){super(),this.ngZone=T,this.http=w,this.config=x,this.urlHelper=S,this.logger=P,this.crypto=k,this.dateTimeService=q,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.discoveryDocumentLoadedSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=F,x||(x={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),E&&(this.tokenValidationHandler=E),x&&this.configure(x);try{i?this.setStorage(i):typeof sessionStorage<"u"&&this.setStorage(sessionStorage)}catch(ne){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",ne)}if(this.checkLocalStorageAccessable()){var J,Q;const ne=null===(J=window)||void 0===J||null===(Q=J.navigator)||void 0===Q?void 0:Q.userAgent;(ne?.includes("MSIE ")||ne?.includes("Trident"))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if(typeof window>"u")return!1;const T="test";try{return!(typeof window.localStorage>"u"||(localStorage.setItem(T,T),localStorage.removeItem(T),0))}catch{return!1}}configure(T){Object.assign(this,new AuthConfig,T),this.config=Object.assign({},new AuthConfig,T),this.sessionChecksEnabled&&this.setupSessionCheck(),this.configChanged()}configChanged(){this.setupRefreshTimer()}restartSessionChecksIfStillLoggedIn(){this.hasValidIdToken()&&this.initSessionCheck()}restartRefreshTimerIfStillLoggedIn(){this.setupExpirationTimers()}setupSessionCheck(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(T=>"token_received"===T.type)).subscribe(T=>{this.initSessionCheck()})}setupAutomaticSilentRefresh(T={},w,i=!0){let E=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(x=>{"token_received"===x.type?E=!0:"logout"===x.type&&(E=!1)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(x=>"token_expires"===x.type&&(null==w||"any"===w||x.info===w)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.b)(1e3)).subscribe(x=>{E&&this.refreshInternal(T,i).catch(S=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(T,w){return this.useSilentRefresh||"code"!==this.responseType?this.silentRefresh(T,w):this.refreshToken()}loadDiscoveryDocumentAndTryLogin(T=null){return this.loadDiscoveryDocument().then(w=>this.tryLogin(T))}loadDiscoveryDocumentAndLogin(T=null){return this.loadDiscoveryDocumentAndTryLogin(T=T||{}).then(w=>!(!this.hasValidIdToken()||!this.hasValidAccessToken())||(this.initLoginFlow("string"==typeof T.state?T.state:""),!1))}debug(...T){this.showDebugInformation&&this.logger.debug.apply(this.logger,T)}validateUrlFromDiscoveryDocument(T){const w=[],i=this.validateUrlForHttps(T),E=this.validateUrlAgainstIssuer(T);return i||w.push("https for all urls required. Also for urls received by discovery."),E||w.push("Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation."),w}validateUrlForHttps(T){if(!T)return!0;const w=T.toLowerCase();return!(!1!==this.requireHttps&&(!w.match(/^http:\/\/localhost($|[:\/])/)&&!w.match(/^http:\/\/localhost($|[:\/])/)||"remoteOnly"!==this.requireHttps))||w.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(T,w){if(!T)throw new Error(`'${w}' should not be null`);if(!this.validateUrlForHttps(T))throw new Error(`'${w}' must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).`)}validateUrlAgainstIssuer(T){return!this.strictDiscoveryDocumentValidation||!T||T.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){typeof window>"u"?this.debug("timer not supported on this plattform"):((this.hasValidIdToken()||this.hasValidAccessToken())&&(this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()),this.tokenReceivedSubscription&&this.tokenReceivedSubscription.unsubscribe(),this.tokenReceivedSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(T=>"token_received"===T.type)).subscribe(T=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()}))}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){const T=this.getAccessTokenExpiration(),w=this.getAccessTokenStoredAt(),i=this.calcTimeout(w,T);this.ngZone.runOutsideAngular(()=>{this.accessTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","access_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(i)).subscribe(E=>{this.ngZone.run(()=>{this.eventsSubject.next(E)})})})}setupIdTokenTimer(){const T=this.getIdTokenExpiration(),w=this.getIdTokenStoredAt(),i=this.calcTimeout(w,T);this.ngZone.runOutsideAngular(()=>{this.idTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","id_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(i)).subscribe(E=>{this.ngZone.run(()=>{this.eventsSubject.next(E)})})})}stopAutomaticRefresh(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.clearAutomaticRefreshTimer()}clearAccessTokenTimer(){this.accessTokenTimeoutSubscription&&this.accessTokenTimeoutSubscription.unsubscribe()}clearIdTokenTimer(){this.idTokenTimeoutSubscription&&this.idTokenTimeoutSubscription.unsubscribe()}clearAutomaticRefreshTimer(){this.automaticRefreshSubscription&&this.automaticRefreshSubscription.unsubscribe()}calcTimeout(T,w){const i=this.dateTimeService.now();return Math.max(0,(w-T)*this.timeoutFactor-(i-T))}setStorage(T){this._storage=T,this.configChanged()}loadDiscoveryDocument(T=null){return new Promise((w,i)=>{T||((T=this.issuer||"").endsWith("/")||(T+="/"),T+=".well-known/openid-configuration"),this.validateUrlForHttps(T)?this.http.get(T).subscribe(E=>{if(!this.validateDiscoveryDocument(E))return this.eventsSubject.next(new OAuthErrorEvent("discovery_document_validation_error",null)),void i("discovery_document_validation_error");this.loginUrl=E.authorization_endpoint,this.logoutUrl=E.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=E.grant_types_supported,this.issuer=E.issuer,this.tokenEndpoint=E.token_endpoint,this.userinfoEndpoint=E.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=E.jwks_uri,this.sessionCheckIFrameUrl=E.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(E),this.revocationEndpoint=E.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(x=>{const P=new OAuthSuccessEvent("discovery_document_loaded",{discoveryDocument:E,jwks:x});this.eventsSubject.next(P),w(P)}).catch(x=>{this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",x)),i(x)})},E=>{this.logger.error("error loading discovery document",E),this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",E)),i(E)}):i("issuer must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).")})}loadJwks(){return new Promise((T,w)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(i=>{this.jwks=i,this.eventsSubject.next(new OAuthSuccessEvent("discovery_document_loaded")),T(i)},i=>{this.logger.error("error loading jwks",i),this.eventsSubject.next(new OAuthErrorEvent("jwks_load_error",i)),w(i)}):T(null)})}validateDiscoveryDocument(T){let w;return this.skipIssuerCheck||T.issuer===this.issuer?(w=this.validateUrlFromDiscoveryDocument(T.authorization_endpoint),w.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",w),!1):(w=this.validateUrlFromDiscoveryDocument(T.end_session_endpoint),w.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",w),!1):(w=this.validateUrlFromDiscoveryDocument(T.token_endpoint),w.length>0&&this.logger.error("error validating token_endpoint in discovery document",w),w=this.validateUrlFromDiscoveryDocument(T.revocation_endpoint),w.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",w),w=this.validateUrlFromDiscoveryDocument(T.userinfo_endpoint),w.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",w),!1):(w=this.validateUrlFromDiscoveryDocument(T.jwks_uri),w.length>0?(this.logger.error("error validating jwks_uri in discovery document",w),!1):(this.sessionChecksEnabled&&!T.check_session_iframe&&this.logger.warn("sessionChecksEnabled is activated but discovery document does not contain a check_session_iframe field"),!0))))):(this.logger.error("invalid issuer in discovery document","expected: "+this.issuer,"current: "+T.issuer),!1)}fetchTokenUsingPasswordFlowAndLoadUserProfile(T,w,i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingPasswordFlow(T,w,i).then(()=>this.loadUserProfile())}loadUserProfile(){if(!this.hasValidAccessToken())throw new Error("Can not load User Profile without access_token");if(!this.validateUrlForHttps(this.userinfoEndpoint))throw new Error("userinfoEndpoint must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");return new Promise((T,w)=>{const i=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:i,observe:"response",responseType:"text"}).subscribe(E=>{if(this.debug("userinfo received",JSON.stringify(E)),E.headers.get("content-type").startsWith("application/json")){let x=JSON.parse(E.body);const S=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!S.sub||x.sub!==S.sub))return void w("if property oidc is true, the received user-id (sub) has to be the user-id of the user that has logged in with oidc.\nif you are not using oidc but just oauth2 password flow set oidc to false");x=Object.assign({},S,x),this._storage.setItem("id_token_claims_obj",JSON.stringify(x)),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),T({info:x})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),T(JSON.parse(E.body))},E=>{this.logger.error("error loading user info",E),this.eventsSubject.next(new OAuthErrorEvent("user_profile_load_error",E)),w(E)})})}fetchTokenUsingPasswordFlow(T,w,i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingGrant("password",{username:T,password:w},i)}fetchTokenUsingGrant(T,w,i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let E=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type",T).set("scope",this.scope);if(this.useHttpBasicAuth){const x=btoa(`${this.clientId}:${this.dummyClientSecret}`);i=i.set("Authorization","Basic "+x)}if(this.useHttpBasicAuth||(E=E.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(E=E.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const x of Object.getOwnPropertyNames(this.customQueryParams))E=E.set(x,this.customQueryParams[x]);for(const x of Object.keys(w))E=E.set(x,w[x]);return i=i.set("Content-Type","application/x-www-form-urlencoded"),new Promise((x,S)=>{this.http.post(this.tokenEndpoint,E,{headers:i}).subscribe(P=>{this.debug("tokenResponse",P),this.storeAccessTokenResponse(P.access_token,P.refresh_token,P.expires_in||this.fallbackAccessTokenExpirationTimeInSec,P.scope,this.extractRecognizedCustomParameters(P)),this.oidc&&P.id_token&&this.processIdToken(P.id_token,P.access_token).then(k=>{this.storeIdToken(k),x(P)}),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),x(P)},P=>{this.logger.error("Error performing ${grantType} flow",P),this.eventsSubject.next(new OAuthErrorEvent("token_error",P)),S(P)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((T,w)=>{let i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","refresh_token").set("scope",this.scope).set("refresh_token",this._storage.getItem("refresh_token")),E=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const x=btoa(`${this.clientId}:${this.dummyClientSecret}`);E=E.set("Authorization","Basic "+x)}if(this.useHttpBasicAuth||(i=i.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(i=i.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const x of Object.getOwnPropertyNames(this.customQueryParams))i=i.set(x,this.customQueryParams[x]);this.http.post(this.tokenEndpoint,i,{headers:E}).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.w)(x=>x.id_token?(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.D)(this.processIdToken(x.id_token,x.access_token,!0)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(S=>this.storeIdToken(S)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(S=>x)):(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(x))).subscribe(x=>{this.debug("refresh tokenResponse",x),this.storeAccessTokenResponse(x.access_token,x.refresh_token,x.expires_in||this.fallbackAccessTokenExpirationTimeInSec,x.scope,this.extractRecognizedCustomParameters(x)),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),T(x)},x=>{this.logger.error("Error refreshing token",x),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",x)),w(x)})})}removeSilentRefreshEventListener(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}setupSilentRefreshEventListener(){this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=T=>{const w=this.processMessageEventMessage(T);this.tryLogin({customHashFragment:w,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri||this.redirectUri}).catch(i=>this.debug("tryLogin during silent refresh failed",i))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(T={},w=!0){const i=this.getIdentityClaims()||{};if(this.useIdTokenHintForSilentRefresh&&this.hasValidIdToken()&&(T.id_token_hint=this.getIdToken()),!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(typeof this.document>"u")throw new Error("silent refresh is not supported on this platform");const E=this.document.getElementById(this.silentRefreshIFrameName);E&&this.document.body.removeChild(E),this.silentRefreshSubject=i.sub;const x=this.document.createElement("iframe");x.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,w,T).then(q=>{x.setAttribute("src",q),this.silentRefreshShowIFrame||(x.style.display="none"),this.document.body.appendChild(x)});const P=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(q=>q instanceof OAuthErrorEvent),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),k=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(q=>"token_received"===q.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),F=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthErrorEvent("silent_refresh_timeout",null)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(this.silentRefreshTimeout));return(0,rxjs__WEBPACK_IMPORTED_MODULE_14__.S)([P,k,F]).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(q=>{if(q instanceof OAuthErrorEvent)throw"silent_refresh_timeout"===q.type||(q=new OAuthErrorEvent("silent_refresh_error",q)),this.eventsSubject.next(q),q;return"token_received"===q.type&&(q=new OAuthSuccessEvent("silently_refreshed"),this.eventsSubject.next(q)),q})).toPromise()}initImplicitFlowInPopup(T){return this.initLoginFlowInPopup(T)}initLoginFlowInPopup(T){return T=T||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(w=>new Promise((i,E)=>{let P,S=null;T.windowRef?T.windowRef&&!T.windowRef.closed&&(S=T.windowRef,S.location.href=w):S=window.open(w,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(T));const k=ne=>{this.tryLogin({customHashFragment:ne,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{q(),i(!0)},le=>{q(),E(le)})};S?P=window.setInterval(()=>{(!S||S.closed)&&(q(),E(new OAuthErrorEvent("popup_closed",{})))},500):E(new OAuthErrorEvent("popup_blocked",{}));const q=()=>{window.clearInterval(P),window.removeEventListener("storage",Q),window.removeEventListener("message",J),null!==S&&S.close(),S=null},J=ne=>{const le=this.processMessageEventMessage(ne);le&&null!==le?(window.removeEventListener("storage",Q),k(le)):console.log("false event firing")},Q=ne=>{"auth_hash"===ne.key&&(window.removeEventListener("message",J),k(ne.newValue))};window.addEventListener("message",J),window.addEventListener("storage",Q)}))}calculatePopupFeatures(T){const w=T.height||470,i=T.width||500,E=window.screenLeft+(window.outerWidth-i)/2;return`location=no,toolbar=no,width=${i},height=${w},top=${window.screenTop+(window.outerHeight-w)/2},left=${E}`}processMessageEventMessage(T){let w="#";if(this.silentRefreshMessagePrefix&&(w+=this.silentRefreshMessagePrefix),!T||!T.data||"string"!=typeof T.data)return;const i=T.data;return i.startsWith(w)?"#"+i.substr(w.length):void 0}canPerformSessionCheck(){return!(!this.sessionChecksEnabled||(this.sessionCheckIFrameUrl?this.getSessionState()?typeof this.document>"u":(console.warn("sessionChecksEnabled is activated but there is no session_state"),1):(console.warn("sessionChecksEnabled is activated but there is no sessionCheckIFrameUrl"),1)))}setupSessionCheckEventListener(){this.removeSessionCheckEventListener(),this.sessionCheckEventListener=T=>{const w=T.origin.toLowerCase(),i=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),i.startsWith(w)){switch(T.data){case"unchanged":this.ngZone.run(()=>{this.handleSessionUnchanged()});break;case"changed":this.ngZone.run(()=>{this.handleSessionChange()});break;case"error":this.ngZone.run(()=>{this.handleSessionError()})}this.debug("got info from session check inframe",T)}else this.debug("sessionCheckEventListener","wrong origin",w,"expected",i,"event",T)},this.ngZone.runOutsideAngular(()=>{window.addEventListener("message",this.sessionCheckEventListener)})}handleSessionUnchanged(){this.debug("session check","session unchanged"),this.eventsSubject.next(new OAuthInfoEvent("session_unchanged"))}handleSessionChange(){this.eventsSubject.next(new OAuthInfoEvent("session_changed")),this.stopSessionCheckTimer(),this.useSilentRefresh||"code"!==this.responseType?this.silentRefreshRedirectUri?(this.silentRefresh().catch(T=>this.debug("silent refresh failed after session changed")),this.waitForSilentRefreshAfterSessionChange()):(this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)):this.refreshToken().then(T=>{this.debug("token refresh after session change worked")}).catch(T=>{this.debug("token refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)})}waitForSilentRefreshAfterSessionChange(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(T=>"silently_refreshed"===T.type||"silent_refresh_timeout"===T.type||"silent_refresh_error"===T.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()).subscribe(T=>{"silently_refreshed"!==T.type&&(this.debug("silent refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0))})}handleSessionError(){this.stopSessionCheckTimer(),this.eventsSubject.next(new OAuthInfoEvent("session_error"))}removeSessionCheckEventListener(){this.sessionCheckEventListener&&(window.removeEventListener("message",this.sessionCheckEventListener),this.sessionCheckEventListener=null)}initSessionCheck(){if(!this.canPerformSessionCheck())return;const T=this.document.getElementById(this.sessionCheckIFrameName);T&&this.document.body.removeChild(T);const w=this.document.createElement("iframe");w.id=this.sessionCheckIFrameName,this.setupSessionCheckEventListener(),w.setAttribute("src",this.sessionCheckIFrameUrl),w.style.display="none",this.document.body.appendChild(w),this.startSessionCheckTimer()}startSessionCheckTimer(){this.stopSessionCheckTimer(),this.ngZone.runOutsideAngular(()=>{this.sessionCheckTimer=setInterval(this.checkSession.bind(this),this.sessionCheckIntervall)})}stopSessionCheckTimer(){this.sessionCheckTimer&&(clearInterval(this.sessionCheckTimer),this.sessionCheckTimer=null)}checkSession(){const T=this.document.getElementById(this.sessionCheckIFrameName);T||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);const w=this.getSessionState();w||this.stopSessionCheckTimer(),T.contentWindow.postMessage(this.clientId+" "+w,this.issuer)}createLoginUrl(T="",w="",i="",E=!1,x={}){var S=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const P=S;let k;k=i||S.redirectUri;const F=yield S.createAndSaveNonce();if(T=T?F+S.config.nonceStateSeparator+encodeURIComponent(T):F,!S.requestAccessToken&&!S.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");S.responseType=S.config.responseType?S.config.responseType:S.oidc&&S.requestAccessToken?"id_token token":S.oidc&&!S.requestAccessToken?"id_token":"token";const q=P.loginUrl.indexOf("?")>-1?"&":"?";let J=P.scope;S.oidc&&!J.match(/(^|\s)openid($|\s)/)&&(J="openid "+J);let Q=P.loginUrl+q+"response_type="+encodeURIComponent(P.responseType)+"&client_id="+encodeURIComponent(P.clientId)+"&state="+encodeURIComponent(T)+"&redirect_uri="+encodeURIComponent(k)+"&scope="+encodeURIComponent(J);if(S.responseType.includes("code")&&!S.disablePKCE){const[ne,le]=yield S.createChallangeVerifierPairForPKCE();S.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("PKCE_verifier",le):S._storage.setItem("PKCE_verifier",le),Q+="&code_challenge="+ne,Q+="&code_challenge_method=S256"}w&&(Q+="&login_hint="+encodeURIComponent(w)),P.resource&&(Q+="&resource="+encodeURIComponent(P.resource)),P.oidc&&(Q+="&nonce="+encodeURIComponent(F)),E&&(Q+="&prompt=none");for(const ne of Object.keys(x))Q+="&"+encodeURIComponent(ne)+"="+encodeURIComponent(x[ne]);if(S.customQueryParams)for(const ne of Object.getOwnPropertyNames(S.customQueryParams))Q+="&"+ne+"="+encodeURIComponent(S.customQueryParams[ne]);return Q})()}initImplicitFlowInternal(T="",w=""){if(this.inImplicitFlow)return;if(this.inImplicitFlow=!0,!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let i={},E=null;"string"==typeof w?E=w:"object"==typeof w&&(i=w),this.createLoginUrl(T,E,null,!1,i).then(this.config.openUri).catch(x=>{console.error("Error in initImplicitFlow",x),this.inImplicitFlow=!1})}initImplicitFlow(T="",w=""){""!==this.loginUrl?this.initImplicitFlowInternal(T,w):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(i=>"discovery_document_loaded"===i.type)).subscribe(i=>this.initImplicitFlowInternal(T,w))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(T){const w=this;if(T.onTokenReceived){const i={idClaims:w.getIdentityClaims(),idToken:w.getIdToken(),accessToken:w.getAccessToken(),state:w.state};T.onTokenReceived(i)}}storeAccessTokenResponse(T,w,i,E,x){if(this._storage.setItem("access_token",T),E&&!Array.isArray(E)?this._storage.setItem("granted_scopes",JSON.stringify(E.split(" "))):E&&Array.isArray(E)&&this._storage.setItem("granted_scopes",JSON.stringify(E)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),i){const S=1e3*i,k=this.dateTimeService.new().getTime()+S;this._storage.setItem("expires_at",""+k)}w&&this._storage.setItem("refresh_token",w),x&&x.forEach((S,P)=>{this._storage.setItem(P,S)})}tryLogin(T=null){return"code"===this.config.responseType?this.tryLoginCodeFlow(T).then(w=>!0):this.tryLoginImplicitFlow(T)}parseQueryString(T){return T&&0!==T.length?("?"===T.charAt(0)&&(T=T.substr(1)),this.urlHelper.parseQueryString(T)):{}}tryLoginCodeFlow(T=null){var w=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const i=(T=T||{}).customHashFragment?T.customHashFragment.substring(1):window.location.search,E=w.getCodePartsFromUrl(i),x=E.code,S=E.state,P=E.session_state;if(!T.preventClearHashAfterLogin){const q=location.origin+location.pathname+location.search.replace(/code=[^&\$]*/,"").replace(/scope=[^&\$]*/,"").replace(/state=[^&\$]*/,"").replace(/session_state=[^&\$]*/,"").replace(/^\?&/,"?").replace(/&$/,"").replace(/^\?$/,"").replace(/&+/g,"&").replace(/\?&/,"?").replace(/\?$/,"")+location.hash;history.replaceState(null,window.name,q)}let[k,F]=w.parseState(S);if(w.state=F,E.error){w.debug("error trying to login"),w.handleLoginError(T,E);const q=new OAuthErrorEvent("code_error",{},E);return w.eventsSubject.next(q),Promise.reject(q)}if(!T.disableNonceCheck){if(!k)return w.saveRequestedRoute(),Promise.resolve();if(!T.disableOAuth2StateCheck&&!w.validateNonce(k)){const J=new OAuthErrorEvent("invalid_nonce_in_state",null);return w.eventsSubject.next(J),Promise.reject(J)}return w.storeSessionState(P),x&&(yield w.getTokenFromCode(x,T),w.restoreRequestedRoute()),Promise.resolve()}return Promise.reject()})()}saveRequestedRoute(){this.config.preserveRequestedRoute&&this._storage.setItem("requested_route",window.location.pathname+window.location.search)}restoreRequestedRoute(){const T=this._storage.getItem("requested_route");T&&history.replaceState(null,"",window.location.origin+T)}getCodePartsFromUrl(T){return T&&0!==T.length?("?"===T.charAt(0)&&(T=T.substr(1)),this.urlHelper.parseQueryString(T)):this.urlHelper.getHashFragmentParams()}getTokenFromCode(T,w){let i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","authorization_code").set("code",T).set("redirect_uri",w.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let E;E=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("PKCE_verifier"):this._storage.getItem("PKCE_verifier"),E?i=i.set("code_verifier",E):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(i,w)}fetchAndProcessToken(T,w){w=w||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let i=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const E=btoa(`${this.clientId}:${this.dummyClientSecret}`);i=i.set("Authorization","Basic "+E)}return this.useHttpBasicAuth||(T=T.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(T=T.set("client_secret",this.dummyClientSecret)),new Promise((E,x)=>{if(this.customQueryParams)for(let S of Object.getOwnPropertyNames(this.customQueryParams))T=T.set(S,this.customQueryParams[S]);this.http.post(this.tokenEndpoint,T,{headers:i}).subscribe(S=>{this.debug("refresh tokenResponse",S),this.storeAccessTokenResponse(S.access_token,S.refresh_token,S.expires_in||this.fallbackAccessTokenExpirationTimeInSec,S.scope,this.extractRecognizedCustomParameters(S)),this.oidc&&S.id_token?this.processIdToken(S.id_token,S.access_token,w.disableNonceCheck).then(P=>{this.storeIdToken(P),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),E(S)}).catch(P=>{this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",P)),console.error("Error validating tokens"),console.error(P),x(P)}):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),E(S))},S=>{console.error("Error getting token",S),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",S)),x(S)})})}tryLoginImplicitFlow(T=null){let w;w=(T=T||{}).customHashFragment?this.urlHelper.getHashFragmentParams(T.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",w);const i=w.state;let[E,x]=this.parseState(i);if(this.state=x,w.error){this.debug("error trying to login"),this.handleLoginError(T,w);const q=new OAuthErrorEvent("token_error",{},w);return this.eventsSubject.next(q),Promise.reject(q)}const S=w.access_token,P=w.id_token,k=w.session_state,F=w.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!S||this.requestAccessToken&&!T.disableOAuth2StateCheck&&!i||this.oidc&&!P)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!k&&this.logger.warn("session checks (Session Status Change Notification) were activated in the configuration but the id_token does not contain a session_state claim"),this.requestAccessToken&&!T.disableNonceCheck&&!this.validateNonce(E)){const J=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(J),Promise.reject(J)}return this.requestAccessToken&&this.storeAccessTokenResponse(S,null,w.expires_in||this.fallbackAccessTokenExpirationTimeInSec,F),this.oidc?this.processIdToken(P,S,T.disableNonceCheck).then(q=>T.validationHandler?T.validationHandler({accessToken:S,idClaims:q.idTokenClaims,idToken:q.idToken,state:i}).then(J=>q):q).then(q=>(this.storeIdToken(q),this.storeSessionState(k),this.clearHashAfterLogin&&!T.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.callOnTokenReceivedIfExists(T),this.inImplicitFlow=!1,!0)).catch(q=>(this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",q)),this.logger.error("Error validating tokens"),this.logger.error(q),Promise.reject(q))):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.clearHashAfterLogin&&!T.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(T),Promise.resolve(!0))}parseState(T){let w=T,i="";if(T){const E=T.indexOf(this.config.nonceStateSeparator);E>-1&&(w=T.substr(0,E),i=T.substr(E+this.config.nonceStateSeparator.length))}return[w,i]}validateNonce(T){let w;return w=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),w===T||(console.error("Validating access_token failed, wrong state/nonce.",w,T),!1)}storeIdToken(T){this._storage.setItem("id_token",T.idToken),this._storage.setItem("id_token_claims_obj",T.idTokenClaimsJson),this._storage.setItem("id_token_expires_at",""+T.idTokenExpiresAt),this._storage.setItem("id_token_stored_at",""+this.dateTimeService.now())}storeSessionState(T){this._storage.setItem("session_state",T)}getSessionState(){return this._storage.getItem("session_state")}handleLoginError(T,w){T.onLoginError&&T.onLoginError(w),this.clearHashAfterLogin&&!T.preventClearHashAfterLogin&&this.clearLocationHash()}getClockSkewInMsec(T=6e5){return this.clockSkewInSec?1e3*this.clockSkewInSec:T}processIdToken(T,w,i=!1){const E=T.split("."),S=b64DecodeUnicode(this.padBase64(E[0])),P=JSON.parse(S),F=b64DecodeUnicode(this.padBase64(E[1])),q=JSON.parse(F);let J;if(J=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Array.isArray(q.aud)){if(q.aud.every(ge=>ge!==this.clientId)){const ge="Wrong audience: "+q.aud.join(",");return this.logger.warn(ge),Promise.reject(ge)}}else if(q.aud!==this.clientId){const ge="Wrong audience: "+q.aud;return this.logger.warn(ge),Promise.reject(ge)}if(!q.sub){const ge="No sub claim in id_token";return this.logger.warn(ge),Promise.reject(ge)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==q.sub){const ge=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${q.sub}`;return this.logger.warn(ge),Promise.reject(ge)}if(!q.iat){const ge="No iat claim in id_token";return this.logger.warn(ge),Promise.reject(ge)}if(!this.skipIssuerCheck&&q.iss!==this.issuer){const ge="Wrong issuer: "+q.iss;return this.logger.warn(ge),Promise.reject(ge)}if(!i&&q.nonce!==J){const ge="Wrong nonce: "+q.nonce;return this.logger.warn(ge),Promise.reject(ge)}if(this.hasOwnProperty("responseType")&&("code"===this.responseType||"id_token"===this.responseType)&&(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!q.at_hash){const ge="An at_hash is needed!";return this.logger.warn(ge),Promise.reject(ge)}const Q=this.dateTimeService.now(),ne=1e3*q.iat,le=1e3*q.exp,re=this.getClockSkewInMsec();if(ne-re>=Q||le+re<=Q){const ge="Token has expired";return console.error(ge),console.error({now:Q,issuedAtMSec:ne,expiresAtMSec:le}),Promise.reject(ge)}const ie={accessToken:w,idToken:T,jwks:this.jwks,idTokenClaims:q,idTokenHeader:P,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(ie).then(ge=>({idToken:T,idTokenClaims:q,idTokenClaimsJson:F,idTokenHeader:P,idTokenHeaderJson:S,idTokenExpiresAt:le})):this.checkAtHash(ie).then(ge=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!ge){const Ae="Wrong at_hash";return this.logger.warn(Ae),Promise.reject(Ae)}return this.checkSignature(ie).then(Ae=>{const Je={idToken:T,idTokenClaims:q,idTokenClaimsJson:F,idTokenHeader:P,idTokenHeaderJson:S,idTokenExpiresAt:le};return this.disableAtHashCheck?Je:this.checkAtHash(ie).then(Xe=>{if(this.requestAccessToken&&!Xe){const Re="Wrong at_hash";return this.logger.warn(Re),Promise.reject(Re)}return Je})})})}getIdentityClaims(){const T=this._storage.getItem("id_token_claims_obj");return T?JSON.parse(T):null}getGrantedScopes(){const T=this._storage.getItem("granted_scopes");return T?JSON.parse(T):null}getIdToken(){return this._storage?this._storage.getItem("id_token"):null}padBase64(T){for(;T.length%4!=0;)T+="=";return T}getAccessToken(){return this._storage?this._storage.getItem("access_token"):null}getRefreshToken(){return this._storage?this._storage.getItem("refresh_token"):null}getAccessTokenExpiration(){return this._storage.getItem("expires_at")?parseInt(this._storage.getItem("expires_at"),10):null}getAccessTokenStoredAt(){return parseInt(this._storage.getItem("access_token_stored_at"),10)}getIdTokenStoredAt(){return parseInt(this._storage.getItem("id_token_stored_at"),10)}getIdTokenExpiration(){return this._storage.getItem("id_token_expires_at")?parseInt(this._storage.getItem("id_token_expires_at"),10):null}hasValidAccessToken(){if(this.getAccessToken()){const T=this._storage.getItem("expires_at"),w=this.dateTimeService.new();return!(T&&parseInt(T,10)=0&&null!==this._storage.getItem(T)?JSON.parse(this._storage.getItem(T)):null}authorizationHeader(){return"Bearer "+this.getAccessToken()}logOut(T={},w=""){let i=!1;"boolean"==typeof T&&(i=T,T={});const E=this.getIdToken();if(this._storage.removeItem("access_token"),this._storage.removeItem("id_token"),this._storage.removeItem("refresh_token"),this.saveNoncesInLocalStorage?(localStorage.removeItem("nonce"),localStorage.removeItem("PKCE_verifier")):(this._storage.removeItem("nonce"),this._storage.removeItem("PKCE_verifier")),this._storage.removeItem("expires_at"),this._storage.removeItem("id_token_claims_obj"),this._storage.removeItem("id_token_expires_at"),this._storage.removeItem("id_token_stored_at"),this._storage.removeItem("access_token_stored_at"),this._storage.removeItem("granted_scopes"),this._storage.removeItem("session_state"),this.config.customTokenParameters&&this.config.customTokenParameters.forEach(S=>this._storage.removeItem(S)),this.silentRefreshSubject=null,this.eventsSubject.next(new OAuthInfoEvent("logout")),!this.logoutUrl||i||!E&&!this.postLogoutRedirectUri)return;let x;if(!this.validateUrlForHttps(this.logoutUrl))throw new Error("logoutUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(this.logoutUrl.indexOf("{{")>-1)x=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(E)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let S=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec});E&&(S=S.set("id_token_hint",E));const P=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";P&&(S=S.set("post_logout_redirect_uri",P),w&&(S=S.set("state",w)));for(let k in T)S=S.set(k,T[k]);x=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+S.toString()}this.config.openUri(x)}createAndSaveNonce(){const T=this;return this.createNonce().then(function(w){return T.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("nonce",w):T._storage.setItem("nonce",w),w})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();const T=this.document.getElementById(this.silentRefreshIFrameName);T&&T.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();const w=this.document.getElementById(this.sessionCheckIFrameName);w&&w.remove()}createNonce(){return new Promise(T=>{if(this.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");const w="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";let i=45,E="";const x=typeof self>"u"?null:self.crypto||self.msCrypto;if(x){let S=new Uint8Array(i);x.getRandomValues(S),S.map||(S.map=Array.prototype.map),S=S.map(P=>w.charCodeAt(P%w.length)),E=String.fromCharCode.apply(null,S)}else for(;0"discovery_document_loaded"===i.type)).subscribe(i=>this.initCodeFlowInternal(T,w))}initCodeFlowInternal(T="",w={}){if(!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let i={},E=null;"string"==typeof w?E=w:"object"==typeof w&&(i=w),this.createLoginUrl(T,E,null,!1,i).then(this.config.openUri).catch(x=>{console.error("Error in initAuthorizationCodeFlow"),console.error(x)})}createChallangeVerifierPairForPKCE(){var T=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){if(!T.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");const w=yield T.createNonce();return[base64UrlEncode(yield T.crypto.calcHash(w,"sha-256")),w]})()}extractRecognizedCustomParameters(T){let w=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(i=>{T[i]&&w.set(i,JSON.stringify(T[i]))}),w}revokeTokenAndLogout(T={},w=!1){let i=this.revocationEndpoint,E=this.getAccessToken(),x=this.getRefreshToken();if(!E)return;let S=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}),P=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const k=btoa(`${this.clientId}:${this.dummyClientSecret}`);P=P.set("Authorization","Basic "+k)}if(this.useHttpBasicAuth||(S=S.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(S=S.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const k of Object.getOwnPropertyNames(this.customQueryParams))S=S.set(k,this.customQueryParams[k]);return new Promise((k,F)=>{let q,J;if(E){let Q=S.set("token",E).set("token_type_hint","access_token");q=this.http.post(i,Q,{headers:P})}else q=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);if(x){let Q=S.set("token",x).set("token_type_hint","refresh_token");J=this.http.post(i,Q,{headers:P})}else J=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);w&&(q=q.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(Q=>0===Q.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(Q))),J=J.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(Q=>0===Q.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(Q)))),(0,rxjs__WEBPACK_IMPORTED_MODULE_17__.a)([q,J]).subscribe(Q=>{this.logOut(T),k(Q),this.logger.info("Token successfully revoked")},Q=>{this.logger.error("Error revoking token",Q),this.eventsSubject.next(new OAuthErrorEvent("token_revoke_error",Q)),F(Q)})})}clearLocationHash(){""!=location.hash&&(location.hash="")}}return j.\u0275fac=function(T){return new(T||j)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_core__WEBPACK_IMPORTED_MODULE_1__.R0b),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.eN),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthStorage,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(ValidationHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(AuthConfig,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(UrlHelperService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthLogger),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(HashHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common__WEBPACK_IMPORTED_MODULE_18__.K0),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(DateTimeProvider))},j.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:j,factory:j.\u0275fac}),j})();class OAuthModuleConfig{}class OAuthResourceServerConfig{}class OAuthResourceServerErrorHandler{}class OAuthNoopResourceServerErrorHandler{handleError(Y){return(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(Y)}}let DefaultOAuthInterceptor=(()=>{class j{constructor(T,w,i){this.oAuthService=T,this.errorHandler=w,this.moduleConfig=i}checkUrl(T){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(T):!this.moduleConfig.resourceServer.allowedUrls||!!this.moduleConfig.resourceServer.allowedUrls.find(w=>T.toLowerCase().startsWith(w.toLowerCase()))}intercept(T,w){const i=T.url.toLowerCase();return this.moduleConfig&&this.moduleConfig.resourceServer&&this.checkUrl(i)?this.moduleConfig.resourceServer.sendAccessToken?(0,rxjs__WEBPACK_IMPORTED_MODULE_19__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(this.oAuthService.getAccessToken()).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(x=>!!x)),this.oAuthService.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(x=>"token_received"===x.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.V)(this.oAuthService.waitForTokenInMsec||0),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(x=>(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(x=>this.oAuthService.getAccessToken()))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.q)(1),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_22__.z)(x=>{if(x){const P=T.headers.set("Authorization","Bearer "+x);T=T.clone({headers:P})}return w.handle(T).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(S=>this.errorHandler.handleError(S)))})):w.handle(T).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(x=>this.errorHandler.handleError(x))):w.handle(T)}}return j.\u0275fac=function(T){return new(T||j)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthResourceServerErrorHandler),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthModuleConfig,8))},j.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:j,factory:j.\u0275fac}),j})();class NullValidationHandler{validateSignature(Y){return Promise.resolve(null)}validateAtHash(Y){return Promise.resolve(!0)}}function createDefaultLogger(){return console}function createDefaultStorage(){return typeof sessionStorage<"u"?sessionStorage:new MemoryStorage}let OAuthModule=(()=>{class j{static forRoot(T=null,w=NullValidationHandler){return{ngModule:j,providers:[OAuthService,UrlHelperService,{provide:OAuthLogger,useFactory:createDefaultLogger},{provide:OAuthStorage,useFactory:createDefaultStorage},{provide:ValidationHandler,useClass:w},{provide:HashHandler,useClass:DefaultHashHandler},{provide:OAuthResourceServerErrorHandler,useClass:OAuthNoopResourceServerErrorHandler},{provide:OAuthModuleConfig,useValue:T},{provide:_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.TP,useClass:DefaultOAuthInterceptor,multi:!0},{provide:DateTimeProvider,useClass:SystemDateTimeProvider}]}}}return j.\u0275fac=function(T){return new(T||j)},j.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_1__.oAB({type:j}),j.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_1__.cJS({imports:[[_angular_common__WEBPACK_IMPORTED_MODULE_18__.ez]]}),j})();const err="PLEASE READ THIS CAREFULLY:\n\nBeginning with angular-oauth2-oidc version 9, the JwksValidationHandler\nhas been moved to an library of its own. If you need it for implementing\nOAuth2/OIDC **implicit flow**, please install it using npm:\n\n npm i angular-oauth2-oidc-jwks --save\n\nAfter that, you can import it into your application:\n\n import { JwksValidationHandler } from 'angular-oauth2-oidc-jwks';\n\nPlease note, that this dependency is not needed for the **code flow**,\nwhich is nowadays the **recommented** one for single page applications.\nThis also results in smaller bundle sizes.\n";class JwksValidationHandler extends NullValidationHandler{constructor(){super(),console.error(err)}}const AUTH_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_1__.OlP("AUTH_CONFIG")},5861:(j,Y,T)=>{"use strict";function w(E,x,S,P,k,F,q){try{var J=E[F](q),Q=J.value}catch(ne){return void S(ne)}J.done?x(Q):Promise.resolve(Q).then(P,k)}function i(E){return function(){var x=this,S=arguments;return new Promise(function(P,k){var F=E.apply(x,S);function q(Q){w(F,P,k,q,J,"next",Q)}function J(Q){w(F,P,k,q,J,"throw",Q)}q(void 0)})}}T.d(Y,{Z:()=>i})},1128:j=>{"use strict";j.exports=JSON.parse('{"version":"2021e","zones":["Africa/Abidjan|LMT GMT|g.8 0|01|-2ldXH.Q|48e5","Africa/Nairobi|LMT +0230 EAT +0245|-2r.g -2u -30 -2J|012132|-2ua2r.g N6nV.g 3Fbu h1cu dzbJ|47e5","Africa/Algiers|PMT WET WEST CET CEST|-9.l 0 -10 -10 -20|0121212121212121343431312123431213|-2nco9.l cNb9.l HA0 19A0 1iM0 11c0 1oo0 Wo0 1rc0 QM0 1EM0 UM0 DA0 Imo0 rd0 De0 9Xz0 1fb0 1ap0 16K0 2yo0 mEp0 hwL0 jxA0 11A0 dDd0 17b0 11B0 1cN0 2Dy0 1cN0 1fB0 1cL0|26e5","Africa/Lagos|LMT GMT +0030 WAT|-d.z 0 -u -10|01023|-2B40d.z 7iod.z dnXK.p dLzH.z|17e6","Africa/Bissau|LMT -01 GMT|12.k 10 0|012|-2ldX0 2xoo0|39e4","Africa/Maputo|LMT CAT|-2a.k -20|01|-2GJea.k|26e5","Africa/Cairo|EET EEST|-20 -30|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-1bIO0 vb0 1ip0 11z0 1iN0 1nz0 12p0 1pz0 10N0 1pz0 16p0 1jz0 s3d0 Vz0 1oN0 11b0 1oO0 10N0 1pz0 10N0 1pb0 10N0 1pb0 10N0 1pb0 10N0 1pz0 10N0 1pb0 10N0 1pb0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1WL0 rd0 1Rz0 wp0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1qL0 Xd0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1ny0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 WL0 1qN0 Rb0 1wp0 On0 1zd0 Lz0 1EN0 Fb0 c10 8n0 8Nd0 gL0 e10 mn0|15e6","Africa/Casablanca|LMT +00 +01|u.k 0 -10|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-2gMnt.E 130Lt.E rb0 Dd0 dVb0 b6p0 TX0 EoB0 LL0 gnd0 rz0 43d0 AL0 1Nd0 XX0 1Cp0 pz0 dEp0 4mn0 SyN0 AL0 1Nd0 wn0 1FB0 Db0 1zd0 Lz0 1Nf0 wM0 co0 go0 1o00 s00 dA0 vc0 11A0 A00 e00 y00 11A0 uM0 e00 Dc0 11A0 s00 e00 IM0 WM0 mo0 gM0 LA0 WM0 jA0 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0|32e5","Africa/Ceuta|WET WEST CET CEST|0 -10 -10 -20|010101010101010101010232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-25KN0 11z0 drd0 18p0 3HX0 17d0 1fz0 1a10 1io0 1a00 1y7o0 LL0 gnd0 rz0 43d0 AL0 1Nd0 XX0 1Cp0 pz0 dEp0 4VB0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|85e3","Africa/El_Aaiun|LMT -01 +00 +01|Q.M 10 0 -10|012323232323232323232323232323232323232323232323232323232323232323232323232323232323|-1rDz7.c 1GVA7.c 6L0 AL0 1Nd0 XX0 1Cp0 pz0 1cBB0 AL0 1Nd0 wn0 1FB0 Db0 1zd0 Lz0 1Nf0 wM0 co0 go0 1o00 s00 dA0 vc0 11A0 A00 e00 y00 11A0 uM0 e00 Dc0 11A0 s00 e00 IM0 WM0 mo0 gM0 LA0 WM0 jA0 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0|20e4","Africa/Johannesburg|SAST SAST SAST|-1u -20 -30|012121|-2GJdu 1Ajdu 1cL0 1cN0 1cL0|84e5","Africa/Juba|LMT CAT CAST EAT|-26.s -20 -30 -30|012121212121212121212121212121212131|-1yW26.s 1zK06.s 16L0 1iN0 17b0 1jd0 17b0 1ip0 17z0 1i10 17X0 1hB0 18n0 1hd0 19b0 1gp0 19z0 1iN0 17b0 1ip0 17z0 1i10 18n0 1hd0 18L0 1gN0 19b0 1gp0 19z0 1iN0 17z0 1i10 17X0 yGd0 PeX0|","Africa/Khartoum|LMT CAT CAST EAT|-2a.8 -20 -30 -30|012121212121212121212121212121212131|-1yW2a.8 1zK0a.8 16L0 1iN0 17b0 1jd0 17b0 1ip0 17z0 1i10 17X0 1hB0 18n0 1hd0 19b0 1gp0 19z0 1iN0 17b0 1ip0 17z0 1i10 18n0 1hd0 18L0 1gN0 19b0 1gp0 19z0 1iN0 17z0 1i10 17X0 yGd0 HjL0|51e5","Africa/Monrovia|MMT MMT GMT|H.8 I.u 0|012|-23Lzg.Q 28G01.m|11e5","Africa/Ndjamena|LMT WAT WAST|-10.c -10 -20|0121|-2le10.c 2J3c0.c Wn0|13e5","Africa/Sao_Tome|LMT GMT WAT|A.J 0 -10|0121|-2le00 4i6N0 2q00|","Africa/Tripoli|LMT CET CEST EET|-Q.I -10 -20 -20|012121213121212121212121213123123|-21JcQ.I 1hnBQ.I vx0 4iP0 xx0 4eN0 Bb0 7ip0 U0n0 A10 1db0 1cN0 1db0 1dd0 1db0 1eN0 1bb0 1e10 1cL0 1c10 1db0 1dd0 1db0 1cN0 1db0 1q10 fAn0 1ep0 1db0 AKq0 TA0 1o00|11e5","Africa/Tunis|PMT CET CEST|-9.l -10 -20|0121212121212121212121212121212121|-2nco9.l 18pa9.l 1qM0 DA0 3Tc0 11B0 1ze0 WM0 7z0 3d0 14L0 1cN0 1f90 1ar0 16J0 1gXB0 WM0 1rA0 11c0 nwo0 Ko0 1cM0 1cM0 1rA0 10M0 zuM0 10N0 1aN0 1qM0 WM0 1qM0 11A0 1o00|20e5","Africa/Windhoek|+0130 SAST SAST CAT WAT|-1u -20 -30 -20 -10|01213434343434343434343434343434343434343434343434343|-2GJdu 1Ajdu 1cL0 1SqL0 9Io0 16P0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0|32e4","America/Adak|NST NWT NPT BST BDT AHST HST HDT|b0 a0 a0 b0 a0 a0 a0 90|012034343434343434343434343434343456767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-17SX0 8wW0 iB0 Qlb0 52O0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cm0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|326","America/Anchorage|AST AWT APT AHST AHDT YST AKST AKDT|a0 90 90 a0 90 90 90 80|012034343434343434343434343434343456767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-17T00 8wX0 iA0 Qlb0 52O0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cm0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|30e4","America/Puerto_Rico|AST AWT APT|40 30 30|0120|-17lU0 7XT0 iu0|24e5","America/Araguaina|LMT -03 -02|3c.M 30 20|0121212121212121212121212121212121212121212121212121|-2glwL.c HdKL.c 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 dMN0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 ny10 Lz0|14e4","America/Argentina/Buenos_Aires|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323232323232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wp0 Rb0 1wp0 TX0 A4p0 uL0 1qN0 WL0|","America/Argentina/Catamarca|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323132321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 rlB0 7B0 8zb0 uL0|","America/Argentina/Cordoba|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323132323232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 A4p0 uL0 1qN0 WL0|","America/Argentina/Jujuy|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323121323232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1ze0 TX0 1ld0 WK0 1wp0 TX0 A4p0 uL0|","America/Argentina/La_Rioja|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323231232321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Qn0 qO0 16n0 Rb0 1wp0 TX0 rlB0 7B0 8zb0 uL0|","America/Argentina/Mendoza|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232312121321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1u20 SL0 1vd0 Tb0 1wp0 TW0 ri10 Op0 7TX0 uL0|","America/Argentina/Rio_Gallegos|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323232321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wp0 Rb0 1wp0 TX0 rlB0 7B0 8zb0 uL0|","America/Argentina/Salta|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323231323232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 A4p0 uL0|","America/Argentina/San_Juan|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323231232321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Qn0 qO0 16n0 Rb0 1wp0 TX0 rld0 m10 8lb0 uL0|","America/Argentina/San_Luis|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323121212321212|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 XX0 1q20 SL0 AN0 vDb0 m10 8lb0 8L0 jd0 1qN0 WL0 1qN0|","America/Argentina/Tucuman|CMT -04 -03 -02|4g.M 40 30 20|0121212121212121212121212121212121212121212323232313232123232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 rlB0 4N0 8BX0 uL0 1qN0 WL0|","America/Argentina/Ushuaia|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323232321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wp0 Rb0 1wp0 TX0 rkN0 8p0 8zb0 uL0|","America/Asuncion|AMT -04 -03|3O.E 40 30|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-1x589.k 1DKM9.k 3CL0 3Dd0 10L0 1pB0 10n0 1pB0 10n0 1pB0 1cL0 1dd0 1db0 1dd0 1cL0 1dd0 1cL0 1dd0 1cL0 1dd0 1db0 1dd0 1cL0 1dd0 1cL0 1dd0 1cL0 1dd0 1db0 1dd0 1cL0 1lB0 14n0 1dd0 1cL0 1fd0 WL0 1rd0 1aL0 1dB0 Xz0 1qp0 Xb0 1qN0 10L0 1rB0 TX0 1tB0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 WN0 1qL0 11B0 1nX0 1ip0 WL0 1qN0 WL0 1qN0 WL0 1tB0 TX0 1tB0 TX0 1tB0 19X0 1a10 1fz0 1a10 1fz0 1cN0 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0|28e5","America/Panama|CMT EST|5j.A 50|01|-2uduE.o|15e5","America/Bahia_Banderas|LMT MST CST PST MDT CDT|71 70 60 80 60 50|0121212131414141414141414141414141414152525252525252525252525252525252525252525252525252525252|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 otX0 gmN0 P2N0 13Vd0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nW0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|84e3","America/Bahia|LMT -03 -02|2y.4 30 20|01212121212121212121212121212121212121212121212121212121212121|-2glxp.U HdLp.U 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 l5B0 Rb0|27e5","America/Barbados|LMT AST ADT -0330|3W.t 40 30 3u|0121213121212121|-2m4k1.v 1eAN1.v RB0 1Bz0 Op0 1rb0 11d0 1jJc0 IL0 1ip0 17b0 1ip0 17b0 1ld0 13b0|28e4","America/Belem|LMT -03 -02|3d.U 30 20|012121212121212121212121212121|-2glwK.4 HdKK.4 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0|20e5","America/Belize|LMT CST -0530 CWT CPT CDT|5Q.M 60 5u 50 50 50|012121212121212121212121212121212121212121212121213412121212121212121212121212121212121212121215151|-2kBu7.c fPA7.c Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu Rcu 7Bt0 Ni0 4nd0 Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu e9Au qn0 lxB0 mn0|57e3","America/Boa_Vista|LMT -04 -03|42.E 40 30|0121212121212121212121212121212121|-2glvV.k HdKV.k 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 smp0 WL0 1tB0 2L0|62e2","America/Bogota|BMT -05 -04|4U.g 50 40|0121|-2eb73.I 38yo3.I 2en0|90e5","America/Boise|PST PDT MST MWT MPT MDT|80 70 70 60 60 60|0101023425252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252|-261q0 1nX0 11B0 1nX0 8C10 JCL0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 Dd0 1Kn0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|21e4","America/Cambridge_Bay|-00 MST MWT MPT MDDT MDT CST CDT EST|0 70 60 60 50 60 60 50 50|0123141515151515151515151515151515151515151515678651515151515151515151515151515151515151515151515151515151515151515151515151|-21Jc0 RO90 8x20 ix0 LCL0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11A0 1nX0 2K0 WQ0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|15e2","America/Campo_Grande|LMT -04 -03|3C.s 40 30|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glwl.w HdLl.w 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 1C10 Lz0 1Ip0 HX0 1zd0 On0 1HB0 IL0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 Rb0 1zd0 Lz0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 On0 1zd0 On0 1HB0 FX0|77e4","America/Cancun|LMT CST EST EDT CDT|5L.4 60 50 40 50|0123232341414141414141414141414141414141412|-1UQG0 2q2o0 yLB0 1lb0 14p0 1lb0 14p0 Lz0 xB0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 Dd0|63e4","America/Caracas|CMT -0430 -04|4r.E 4u 40|01212|-2kV7w.k 28KM2.k 1IwOu kqo0|29e5","America/Cayenne|LMT -04 -03|3t.k 40 30|012|-2mrwu.E 2gWou.E|58e3","America/Chicago|CST CDT EST CWT CPT|60 50 50 50 50|01010101010101010101010101010101010102010101010103401010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 1wp0 TX0 WN0 1qL0 1cN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 11B0 1Hz0 14p0 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 RB0 8x30 iw0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|92e5","America/Chihuahua|LMT MST CST CDT MDT|74.k 70 60 50 60|0121212323241414141414141414141414141414141414141414141414141414141414141414141414141414141|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 2zQN0 1lb0 14p0 1lb0 14q0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|81e4","America/Costa_Rica|SJMT CST CDT|5A.d 60 50|0121212121|-1Xd6n.L 2lu0n.L Db0 1Kp0 Db0 pRB0 15b0 1kp0 mL0|12e5","America/Phoenix|MST MDT MWT|70 60 60|01010202010|-261r0 1nX0 11B0 1nX0 SgN0 4Al1 Ap0 1db0 SWqX 1cL0|42e5","America/Cuiaba|LMT -04 -03|3I.k 40 30|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glwf.E HdLf.E 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 4a10 HX0 1zd0 On0 1HB0 IL0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 Rb0 1zd0 Lz0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 On0 1zd0 On0 1HB0 FX0|54e4","America/Danmarkshavn|LMT -03 -02 GMT|1e.E 30 20 0|01212121212121212121212121212121213|-2a5WJ.k 2z5fJ.k 19U0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 DC0|8","America/Dawson_Creek|PST PDT PWT PPT MST|80 70 70 70 70|0102301010101010101010101010101010101010101010101010101014|-25TO0 1in0 UGp0 8x10 iy0 3NB0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 ML0|12e3","America/Dawson|YST YDT YWT YPT YDDT PST PDT MST|90 80 80 80 70 80 70 70|010102304056565656565656565656565656565656565656565656565656565656565656565656565656565656567|-25TN0 1in0 1o10 13V0 Ser0 8x00 iz0 LCL0 1fA0 jrA0 fNd0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1z90|13e2","America/Denver|MST MDT MWT MPT|70 60 60 60|01010101023010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261r0 1nX0 11B0 1nX0 11B0 1qL0 WN0 mn0 Ord0 8x20 ix0 LCN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|26e5","America/Detroit|LMT CST EST EWT EPT EDT|5w.b 60 50 40 40 40|0123425252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252|-2Cgir.N peqr.N 156L0 8x40 iv0 6fd0 11z0 JxX1 SMX 1cN0 1cL0 aW10 1cL0 s10 1Vz0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|37e5","America/Edmonton|LMT MST MDT MWT MPT|7x.Q 70 60 60 60|0121212121212134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2yd4q.8 shdq.8 1in0 17d0 hz0 2dB0 1fz0 1a10 11z0 1qN0 WL0 1qN0 11z0 IGN0 8x20 ix0 3NB0 11z0 XQp0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|10e5","America/Eirunepe|LMT -05 -04|4D.s 50 40|0121212121212121212121212121212121|-2glvk.w HdLk.w 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 dPB0 On0 yTd0 d5X0|31e3","America/El_Salvador|LMT CST CDT|5U.M 60 50|012121|-1XiG3.c 2Fvc3.c WL0 1qN0 WL0|11e5","America/Tijuana|LMT MST PST PDT PWT PPT|7M.4 70 80 70 70 70|012123245232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-1UQE0 4PX0 8mM0 8lc0 SN0 1cL0 pHB0 83r0 zI0 5O10 1Rz0 cOO0 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 BUp0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 U10 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|20e5","America/Fort_Nelson|PST PDT PWT PPT MST|80 70 70 70 70|01023010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010104|-25TO0 1in0 UGp0 8x10 iy0 3NB0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0|39e2","America/Fort_Wayne|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|010101023010101010101010101040454545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 QI10 Db0 RB0 8x30 iw0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 5Tz0 1o10 qLb0 1cL0 1cN0 1cL0 1qhd0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Fortaleza|LMT -03 -02|2y 30 20|0121212121212121212121212121212121212121|-2glxq HdLq 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 nsp0 WL0 1tB0 5z0 2mN0 On0|34e5","America/Glace_Bay|LMT AST ADT AWT APT|3X.M 40 30 30 30|012134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2IsI0.c CwO0.c 1in0 UGp0 8x50 iu0 iq10 11z0 Jg10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|19e3","America/Godthab|LMT -03 -02|3q.U 30 20|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2a5Ux.4 2z5dx.4 19U0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|17e3","America/Goose_Bay|NST NDT NST NDT NWT NPT AST ADT ADDT|3u.Q 2u.Q 3u 2u 2u 2u 40 30 20|010232323232323245232323232323232323232323232323232323232326767676767676767676767676767676767676767676768676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-25TSt.8 1in0 DXb0 2HbX.8 WL0 1qN0 WL0 1qN0 WL0 1tB0 TX0 1tB0 WL0 1qN0 WL0 1qN0 7UHu itu 1tB0 WL0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1tB0 WL0 1ld0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 S10 g0u 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14n1 1lb0 14p0 1nW0 11C0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zcX Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|76e2","America/Grand_Turk|KMT EST EDT AST|57.a 50 40 40|0121212121212121212121212121212121212121212121212121212121212121212121212132121212121212121212121212121212121212121|-2l1uQ.O 2HHBQ.O 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 7jA0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|37e2","America/Guatemala|LMT CST CDT|62.4 60 50|0121212121|-24KhV.U 2efXV.U An0 mtd0 Nz0 ifB0 17b0 zDB0 11z0|13e5","America/Guayaquil|QMT -05 -04|5e 50 40|0121|-1yVSK 2uILK rz0|27e5","America/Guyana|LMT -04 -0345 -03|3Q.D 40 3J 30|01231|-2mf87.l 8Hc7.l 2r7bJ Ey0f|80e4","America/Halifax|LMT AST ADT AWT APT|4e.o 40 30 30 30|0121212121212121212121212121212121212121212121212134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2IsHJ.A xzzJ.A 1db0 3I30 1in0 3HX0 IL0 1E10 ML0 1yN0 Pb0 1Bd0 Mn0 1Bd0 Rz0 1w10 Xb0 1w10 LX0 1w10 Xb0 1w10 Lz0 1C10 Jz0 1E10 OL0 1yN0 Un0 1qp0 Xb0 1qp0 11X0 1w10 Lz0 1HB0 LX0 1C10 FX0 1w10 Xb0 1qp0 Xb0 1BB0 LX0 1td0 Xb0 1qp0 Xb0 Rf0 8x50 iu0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 3Qp0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 3Qp0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 6i10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|39e4","America/Havana|HMT CST CDT|5t.A 50 40|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1Meuu.o 72zu.o ML0 sld0 An0 1Nd0 Db0 1Nd0 An0 6Ep0 An0 1Nd0 An0 JDd0 Mn0 1Ap0 On0 1fd0 11X0 1qN0 WL0 1wp0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 14n0 1ld0 14L0 1kN0 15b0 1kp0 1cL0 1cN0 1fz0 1a10 1fz0 1fB0 11z0 14p0 1nX0 11B0 1nX0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 14n0 1ld0 14n0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 1a10 1in0 1a10 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 17c0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 11A0 6i00 Rc0 1wo0 U00 1tA0 Rc0 1wo0 U00 1wo0 U00 1zc0 U00 1qM0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0|21e5","America/Hermosillo|LMT MST CST PST MDT|7n.Q 70 60 80 60|0121212131414141|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 otX0 gmN0 P2N0 13Vd0 1lb0 14p0 1lb0 14p0 1lb0|64e4","America/Indiana/Knox|CST CDT CWT CPT EST|60 50 50 50 50|0101023010101010101010101010101010101040101010101010101010101010101010101010101010101010141010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 3NB0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 11z0 1o10 11z0 1o10 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 3Cn0 8wp0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 z8o0 1o00 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Marengo|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|0101023010101010101010104545454545414545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 dyN0 11z0 6fd0 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 jrz0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1VA0 LA0 1BX0 1e6p0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Petersburg|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|01010230101010101010101010104010101010101010101010141014545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 njX0 WN0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 3Fb0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 19co0 1o00 Rd0 1zb0 Oo0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Tell_City|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|01010230101010101010101010401054541010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 njX0 WN0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 8wn0 1cN0 1cL0 1cN0 1cK0 1cN0 1cL0 1qhd0 1o00 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Vevay|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|010102304545454545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 kPB0 Awn0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1lnd0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Vincennes|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|01010230101010101010101010101010454541014545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 1o10 11z0 g0p0 11z0 1o10 11z0 1qL0 WN0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 caL0 1cL0 1cN0 1cL0 1qhd0 1o00 Rd0 1zb0 Oo0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Winamac|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|01010230101010101010101010101010101010454541054545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 jrz0 1cL0 1cN0 1cL0 1qhd0 1o00 Rd0 1za0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Inuvik|-00 PST PDDT MST MDT|0 80 60 70 60|0121343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-FnA0 tWU0 1fA0 wPe0 2pz0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|35e2","America/Iqaluit|-00 EWT EPT EST EDDT EDT CST CDT|0 40 40 50 30 40 60 50|01234353535353535353535353535353535353535353567353535353535353535353535353535353535353535353535353535353535353535353535353|-16K00 7nX0 iv0 LCL0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11C0 1nX0 11A0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|67e2","America/Jamaica|KMT EST EDT|57.a 50 40|0121212121212121212121|-2l1uQ.O 2uM1Q.O 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0|94e4","America/Juneau|PST PWT PPT PDT YDT YST AKST AKDT|80 70 70 70 80 90 90 80|01203030303030303030303030403030356767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-17T20 8x10 iy0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cM0 1cM0 1cL0 1cN0 1fz0 1a10 1fz0 co0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|33e3","America/Kentucky/Louisville|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|0101010102301010101010101010101010101454545454545414545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 3Fd0 Nb0 LPd0 11z0 RB0 8x30 iw0 1nX1 e0X 9vd0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 xz0 gso0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1VA0 LA0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Kentucky/Monticello|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|0101023010101010101010101010101010101010101010101010101010101010101010101454545454545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 SWp0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11A0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/La_Paz|CMT BST -04|4w.A 3w.A 40|012|-1x37r.o 13b0|19e5","America/Lima|LMT -05 -04|58.A 50 40|0121212121212121|-2tyGP.o 1bDzP.o zX0 1aN0 1cL0 1cN0 1cL0 1PrB0 zX0 1O10 zX0 6Gp0 zX0 98p0 zX0|11e6","America/Los_Angeles|PST PDT PWT PPT|80 70 70 70|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261q0 1nX0 11B0 1nX0 SgN0 8x10 iy0 5Wp1 1VaX 3dA0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1a00 1fA0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|15e6","America/Maceio|LMT -03 -02|2m.Q 30 20|012121212121212121212121212121212121212121|-2glxB.8 HdLB.8 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 dMN0 Lz0 8Q10 WL0 1tB0 5z0 2mN0 On0|93e4","America/Managua|MMT CST EST CDT|5J.c 60 50 50|0121313121213131|-1quie.M 1yAMe.M 4mn0 9Up0 Dz0 1K10 Dz0 s3F0 1KH0 DB0 9In0 k8p0 19X0 1o30 11y0|22e5","America/Manaus|LMT -04 -03|40.4 40 30|01212121212121212121212121212121|-2glvX.U HdKX.U 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 dPB0 On0|19e5","America/Martinique|FFMT AST ADT|44.k 40 30|0121|-2mPTT.E 2LPbT.E 19X0|39e4","America/Matamoros|LMT CST CDT|6E 60 50|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1UQG0 2FjC0 1nX0 i6p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 U10 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|45e4","America/Mazatlan|LMT MST CST PST MDT|75.E 70 60 80 60|0121212131414141414141414141414141414141414141414141414141414141414141414141414141414141414141|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 otX0 gmN0 P2N0 13Vd0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|44e4","America/Menominee|CST CDT CWT CPT EST|60 50 50 50 50|01010230101041010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 1o10 11z0 LCN0 1fz0 6410 9Jb0 1cM0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|85e2","America/Merida|LMT CST EST CDT|5W.s 60 50 50|0121313131313131313131313131313131313131313131313131313131313131313131313131313131313131|-1UQG0 2q2o0 2hz0 wu30 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|11e5","America/Metlakatla|PST PWT PPT PDT AKST AKDT|80 70 70 70 90 80|01203030303030303030303030303030304545450454545454545454545454545454545454545454|-17T20 8x10 iy0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1hU10 Rd0 1zb0 Op0 1zb0 Op0 1zb0 uM0 jB0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|14e2","America/Mexico_City|LMT MST CST CDT CWT|6A.A 70 60 50 50|012121232324232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 gEn0 TX0 3xd0 Jb0 6zB0 SL0 e5d0 17b0 1Pff0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|20e6","America/Miquelon|LMT AST -03 -02|3I.E 40 30 20|012323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-2mKkf.k 2LTAf.k gQ10 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|61e2","America/Moncton|EST AST ADT AWT APT|50 40 30 30 30|012121212121212121212134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2IsH0 CwN0 1in0 zAo0 An0 1Nd0 An0 1Nd0 An0 1Nd0 An0 1Nd0 An0 1Nd0 An0 1K10 Lz0 1zB0 NX0 1u10 Wn0 S20 8x50 iu0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 3Cp0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14n1 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 ReX 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|64e3","America/Monterrey|LMT CST CDT|6F.g 60 50|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1UQG0 2FjC0 1nX0 i6p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|41e5","America/Montevideo|LMT MMT -04 -03 -0330 -0230 -02 -0130|3I.P 3I.P 40 30 3u 2u 20 1u|012343434343434343434343435353636353636375363636363636363636363636363636363636363636363|-2tRUf.9 sVc0 8jcf.9 1db0 1dcu 1cLu 1dcu 1cLu ircu 11zu 1o0u 11zu 1o0u 11zu 1o0u 11zu 1qMu WLu 1qMu WLu 1fAu 1cLu 1o0u 11zu NAu 3jXu zXu Dq0u 19Xu pcu jz0 cm10 19X0 6tB0 1fbu 3o0u jX0 4vB0 xz0 3Cp0 mmu 1a10 IMu Db0 4c10 uL0 1Nd0 An0 1SN0 uL0 mp0 28L0 iPB0 un0 1SN0 xz0 1zd0 Lz0 1zd0 Rb0 1zd0 On0 1wp0 Rb0 s8p0 1fB0 1ip0 11z0 1ld0 14n0 1o10 11z0 1o10 11z0 1o10 14n0 1ld0 14n0 1ld0 14n0 1o10 11z0 1o10 11z0 1o10 11z0|17e5","America/Toronto|EST EDT EWT EPT|50 40 40 40|01010101010101010101010101010101010101010101012301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-25TR0 1in0 11Wu 1nzu 1fD0 WJ0 1wr0 Nb0 1Ap0 On0 1zd0 On0 1wp0 TX0 1tB0 TX0 1tB0 TX0 1tB0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 4kM0 8x40 iv0 1o10 11z0 1nX0 11z0 1o10 11z0 1o10 1qL0 11D0 1nX0 11B0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|65e5","America/New_York|EST EDT EWT EPT|50 40 40 40|01010101010101010101010101010101010101010101010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261t0 1nX0 11B0 1nX0 11B0 1qL0 1a10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 RB0 8x40 iv0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|21e6","America/Nipigon|EST EDT EWT EPT|50 40 40 40|010123010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-25TR0 1in0 Rnb0 3je0 8x40 iv0 19yN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|16e2","America/Nome|NST NWT NPT BST BDT YST AKST AKDT|b0 a0 a0 b0 a0 90 90 80|012034343434343434343434343434343456767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-17SX0 8wW0 iB0 Qlb0 52O0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cl0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|38e2","America/Noronha|LMT -02 -01|29.E 20 10|0121212121212121212121212121212121212121|-2glxO.k HdKO.k 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 nsp0 WL0 1tB0 2L0 2pB0 On0|30e2","America/North_Dakota/Beulah|MST MDT MWT MPT CST CDT|70 60 60 60 60 50|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101014545454545454545454545454545454545454545454545454545454|-261r0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Oo0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/North_Dakota/Center|MST MDT MWT MPT CST CDT|70 60 60 60 60 50|010102301010101010101010101010101010101010101010101010101014545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-261r0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14o0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/North_Dakota/New_Salem|MST MDT MWT MPT CST CDT|70 60 60 60 60 50|010102301010101010101010101010101010101010101010101010101010101010101010101010101454545454545454545454545454545454545454545454545454545454545454545454|-261r0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14o0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Ojinaga|LMT MST CST CDT MDT|6V.E 70 60 50 60|0121212323241414141414141414141414141414141414141414141414141414141414141414141414141414141|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 2zQN0 1lb0 14p0 1lb0 14q0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 U10 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|23e3","America/Pangnirtung|-00 AST AWT APT ADDT ADT EDT EST CST CDT|0 40 30 30 20 30 40 50 60 50|012314151515151515151515151515151515167676767689767676767676767676767676767676767676767676767676767676767676767676767676767|-1XiM0 PnG0 8x50 iu0 LCL0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1o00 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11C0 1nX0 11A0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|14e2","America/Paramaribo|LMT PMT PMT -0330 -03|3E.E 3E.Q 3E.A 3u 30|01234|-2nDUj.k Wqo0.c qanX.I 1yVXN.o|24e4","America/Port-au-Prince|PPMT EST EDT|4N 50 40|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-28RHb 2FnMb 19X0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14q0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 i6n0 1nX0 11B0 1nX0 d430 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 3iN0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|23e5","America/Rio_Branco|LMT -05 -04|4v.c 50 40|01212121212121212121212121212121|-2glvs.M HdLs.M 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 NBd0 d5X0|31e4","America/Porto_Velho|LMT -04 -03|4f.A 40 30|012121212121212121212121212121|-2glvI.o HdKI.o 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0|37e4","America/Punta_Arenas|SMT -05 -04 -03|4G.K 50 40 30|0102021212121212121232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-2q2jh.e fJAh.e 5knG.K 1Vzh.e jRAG.K 1pbh.e 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 nHX0 op0 blz0 ko0 Qeo0 WL0 1zd0 On0 1ip0 11z0 1o10 11z0 1qN0 WL0 1ld0 14n0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0|","America/Rainy_River|CST CDT CWT CPT|60 50 50 50|010123010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-25TQ0 1in0 Rnb0 3je0 8x30 iw0 19yN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|842","America/Rankin_Inlet|-00 CST CDDT CDT EST|0 60 40 50 50|012131313131313131313131313131313131313131313431313131313131313131313131313131313131313131313131313131313131313131313131|-vDc0 keu0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|26e2","America/Recife|LMT -03 -02|2j.A 30 20|0121212121212121212121212121212121212121|-2glxE.o HdLE.o 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 nsp0 WL0 1tB0 2L0 2pB0 On0|33e5","America/Regina|LMT MST MDT MWT MPT CST|6W.A 70 60 60 60 60|012121212121212121212121341212121212121212121212121215|-2AD51.o uHe1.o 1in0 s2L0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 66N0 1cL0 1cN0 19X0 1fB0 1cL0 1fB0 1cL0 1cN0 1cL0 M30 8x20 ix0 1ip0 1cL0 1ip0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 3NB0 1cL0 1cN0|19e4","America/Resolute|-00 CST CDDT CDT EST|0 60 40 50 50|012131313131313131313131313131313131313131313431313131313431313131313131313131313131313131313131313131313131313131313131|-SnA0 GWS0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|229","America/Santarem|LMT -04 -03|3C.M 40 30|0121212121212121212121212121212|-2glwl.c HdLl.c 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 NBd0|21e4","America/Santiago|SMT -05 -04 -03|4G.K 50 40 30|010202121212121212321232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-2q2jh.e fJAh.e 5knG.K 1Vzh.e jRAG.K 1pbh.e 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 nHX0 op0 9Bz0 jb0 1oN0 ko0 Qeo0 WL0 1zd0 On0 1ip0 11z0 1o10 11z0 1qN0 WL0 1ld0 14n0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1zb0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0|62e5","America/Santo_Domingo|SDMT EST EDT -0430 AST|4E 50 40 4u 40|01213131313131414|-1ttjk 1lJMk Mn0 6sp0 Lbu 1Cou yLu 1RAu wLu 1QMu xzu 1Q0u xXu 1PAu 13jB0 e00|29e5","America/Sao_Paulo|LMT -03 -02|36.s 30 20|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glwR.w HdKR.w 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 pTd0 PX0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 1C10 Lz0 1Ip0 HX0 1zd0 On0 1HB0 IL0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 Rb0 1zd0 Lz0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 On0 1zd0 On0 1HB0 FX0|20e6","America/Scoresbysund|LMT -02 -01 +00|1r.Q 20 10 0|0121323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-2a5Ww.8 2z5ew.8 1a00 1cK0 1cL0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|452","America/Sitka|PST PWT PPT PDT YST AKST AKDT|80 70 70 70 90 90 80|01203030303030303030303030303030345656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565|-17T20 8x10 iy0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 co0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|90e2","America/St_Johns|NST NDT NST NDT NWT NPT NDDT|3u.Q 2u.Q 3u 2u 2u 2u 1u|01010101010101010101010101010101010102323232323232324523232323232323232323232323232323232323232323232323232323232323232323232323232323232326232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-28oit.8 14L0 1nB0 1in0 1gm0 Dz0 1JB0 1cL0 1cN0 1cL0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 1cL0 1cN0 1cL0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 1cL0 1fB0 19X0 1fB0 19X0 10O0 eKX.8 19X0 1iq0 WL0 1qN0 WL0 1qN0 WL0 1tB0 TX0 1tB0 WL0 1qN0 WL0 1qN0 7UHu itu 1tB0 WL0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1tB0 WL0 1ld0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14n1 1lb0 14p0 1nW0 11C0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zcX Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|11e4","America/Swift_Current|LMT MST MDT MWT MPT CST|7b.k 70 60 60 60 60|012134121212121212121215|-2AD4M.E uHdM.E 1in0 UGp0 8x20 ix0 1o10 17b0 1ip0 11z0 1o10 11z0 1o10 11z0 isN0 1cL0 3Cp0 1cL0 1cN0 11z0 1qN0 WL0 pMp0|16e3","America/Tegucigalpa|LMT CST CDT|5M.Q 60 50|01212121|-1WGGb.8 2ETcb.8 WL0 1qN0 WL0 GRd0 AL0|11e5","America/Thule|LMT AST ADT|4z.8 40 30|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2a5To.Q 31NBo.Q 1cL0 1cN0 1cL0 1fB0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|656","America/Thunder_Bay|CST EST EWT EPT EDT|60 50 40 40 40|0123141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141|-2q5S0 1iaN0 8x40 iv0 XNB0 1cL0 1cN0 1fz0 1cN0 1cL0 3Cp0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|11e4","America/Vancouver|PST PDT PWT PPT|80 70 70 70|0102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-25TO0 1in0 UGp0 8x10 iy0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|23e5","America/Whitehorse|YST YDT YWT YPT YDDT PST PDT MST|90 80 80 80 70 80 70 70|010102304056565656565656565656565656565656565656565656565656565656565656565656565656565656567|-25TN0 1in0 1o10 13V0 Ser0 8x00 iz0 LCL0 1fA0 3NA0 vrd0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1z90|23e3","America/Winnipeg|CST CDT CWT CPT|60 50 50 50|010101023010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aIi0 WL0 3ND0 1in0 Jap0 Rb0 aCN0 8x30 iw0 1tB0 11z0 1ip0 11z0 1o10 11z0 1o10 11z0 1rd0 10L0 1op0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 1cL0 1cN0 11z0 6i10 WL0 6i10 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1a00 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1a00 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|66e4","America/Yakutat|YST YWT YPT YDT AKST AKDT|90 80 80 80 90 80|01203030303030303030303030303030304545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-17T10 8x00 iz0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cn0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|642","America/Yellowknife|-00 MST MWT MPT MDDT MDT|0 70 60 60 50 60|012314151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151|-1pdA0 hix0 8x20 ix0 LCL0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|19e3","Antarctica/Casey|-00 +08 +11|0 -80 -b0|0121212121212|-2q00 1DjS0 T90 40P0 KL0 blz0 3m10 1o30 14k0 1kr0 12l0 1o01|10","Antarctica/Davis|-00 +07 +05|0 -70 -50|01012121|-vyo0 iXt0 alj0 1D7v0 VB0 3Wn0 KN0|70","Pacific/Port_Moresby|+10|-a0|0||25e4","Antarctica/Macquarie|AEST AEDT -00|-a0 -b0 0|010201010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-29E80 1a00 4SK0 1ayy0 Lvs0 1cM0 1o00 Rc0 1wo0 Rc0 1wo0 U00 1wo0 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1qM0 WM0 1qM0 Oo0 1zc0 Oo0 1zc0 Oo0 1wo0 WM0 1tA0 WM0 1tA0 U00 1tA0 U00 1tA0 11A0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 11A0 1o00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1cM0 1cM0 3Co0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|1","Antarctica/Mawson|-00 +06 +05|0 -60 -50|012|-CEo0 2fyk0|60","Pacific/Auckland|NZMT NZST NZST NZDT|-bu -cu -c0 -d0|01020202020202020202020202023232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-1GCVu Lz0 1tB0 11zu 1o0u 11zu 1o0u 11zu 1o0u 14nu 1lcu 14nu 1lcu 1lbu 11Au 1nXu 11Au 1nXu 11Au 1nXu 11Au 1nXu 11Au 1qLu WMu 1qLu 11Au 1n1bu IM0 1C00 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1qM0 14o0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1io0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00|14e5","Antarctica/Palmer|-00 -03 -04 -02|0 30 40 20|0121212121213121212121212121212121212121212121212121212121212121212121212121212121|-cao0 nD0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 jsN0 14N0 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0|40","Antarctica/Rothera|-00 -03|0 30|01|gOo0|130","Asia/Riyadh|LMT +03|-36.Q -30|01|-TvD6.Q|57e5","Antarctica/Troll|-00 +00 +02|0 0 -20|01212121212121212121212121212121212121212121212121212121212121212121|1puo0 hd0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|40","Antarctica/Vostok|-00 +06|0 -60|01|-tjA0|25","Europe/Oslo|CET CEST|-10 -20|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2awM0 Qm0 W6o0 5pf0 WM0 1fA0 1cM0 1cM0 1cM0 1cM0 wJc0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1qM0 WM0 zpc0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|62e4","Asia/Almaty|LMT +05 +06 +07|-57.M -50 -60 -70|012323232323232323232321232323232323232323232323232|-1Pc57.M eUo7.M 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0|15e5","Asia/Amman|LMT EET EEST|-2n.I -20 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1yW2n.I 1HiMn.I KL0 1oN0 11b0 1oN0 11b0 1pd0 1dz0 1cp0 11b0 1op0 11b0 fO10 1db0 1e10 1cL0 1cN0 1cL0 1cN0 1fz0 1pd0 10n0 1ld0 14n0 1hB0 15b0 1ip0 19X0 1cN0 1cL0 1cN0 17b0 1ld0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1So0 y00 1fc0 1dc0 1co0 1dc0 1cM0 1cM0 1cM0 1o00 11A0 1lc0 17c0 1cM0 1cM0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 4bX0 Dd0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 LA0 1C00 LA0 1C00 Oo0 1zc0 Oo0 1C00 LA0 1C00 LA0 1C00 LA0 1C00 LA0 1C00 Oo0 1zc0 Oo0 1C00 LA0 1C00 LA0 1C00 LA0 1C00 LA0 1C00 Oo0 1C00 LA0 1C00|25e5","Asia/Anadyr|LMT +12 +13 +14 +11|-bN.U -c0 -d0 -e0 -b0|01232121212121212121214121212121212121212121212121212121212141|-1PcbN.U eUnN.U 23CL0 1db0 2q10 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|13e3","Asia/Aqtau|LMT +04 +05 +06|-3l.4 -40 -50 -60|012323232323232323232123232312121212121212121212|-1Pc3l.4 eUnl.4 24PX0 2pX0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0|15e4","Asia/Aqtobe|LMT +04 +05 +06|-3M.E -40 -50 -60|0123232323232323232321232323232323232323232323232|-1Pc3M.E eUnM.E 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0|27e4","Asia/Ashgabat|LMT +04 +05 +06|-3R.w -40 -50 -60|0123232323232323232323212|-1Pc3R.w eUnR.w 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0|41e4","Asia/Atyrau|LMT +03 +05 +06 +04|-3r.I -30 -50 -60 -40|01232323232323232323242323232323232324242424242|-1Pc3r.I eUor.I 24PW0 2pX0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 2sp0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0|","Asia/Baghdad|BMT +03 +04|-2V.A -30 -40|012121212121212121212121212121212121212121212121212121|-26BeV.A 2ACnV.A 11b0 1cp0 1dz0 1dd0 1db0 1cN0 1cp0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1de0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0|66e5","Asia/Qatar|LMT +04 +03|-3q.8 -40 -30|012|-21Jfq.8 27BXq.8|96e4","Asia/Baku|LMT +03 +04 +05|-3j.o -30 -40 -50|01232323232323232323232123232323232323232323232323232323232323232|-1Pc3j.o 1jUoj.o WCL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 1cM0 9Je0 1o00 11z0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|27e5","Asia/Bangkok|BMT +07|-6G.4 -70|01|-218SG.4|15e6","Asia/Barnaul|LMT +06 +07 +08|-5z -60 -70 -80|0123232323232323232323212323232321212121212121212121212121212121212|-21S5z pCnz 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 p90 LE0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0|","Asia/Beirut|EET EEST|-20 -30|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-21aq0 1on0 1410 1db0 19B0 1in0 1ip0 WL0 1lQp0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 11b0 q6N0 En0 1oN0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 11b0 1op0 11b0 dA10 17b0 1iN0 17b0 1iN0 17b0 1iN0 17b0 1vB0 SL0 1mp0 13z0 1iN0 17b0 1iN0 17b0 1jd0 12n0 1a10 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0|22e5","Asia/Bishkek|LMT +05 +06 +07|-4W.o -50 -60 -70|012323232323232323232321212121212121212121212121212|-1Pc4W.o eUnW.o 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2e00 1tX0 17b0 1ip0 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1cPu 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0|87e4","Asia/Brunei|LMT +0730 +08|-7D.E -7u -80|012|-1KITD.E gDc9.E|42e4","Asia/Kolkata|MMT IST +0630|-5l.a -5u -6u|012121|-2zOtl.a 1r2LP.a 1un0 HB0 7zX0|15e6","Asia/Chita|LMT +08 +09 +10|-7x.Q -80 -90 -a0|012323232323232323232321232323232323232323232323232323232323232312|-21Q7x.Q pAnx.Q 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3re0|33e4","Asia/Choibalsan|LMT +07 +08 +10 +09|-7C -70 -80 -a0 -90|0123434343434343434343434343434343434343434343424242|-2APHC 2UkoC cKn0 1da0 1dd0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 6hD0 11z0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 3Db0 h1f0 1cJ0 1cP0 1cJ0|38e3","Asia/Shanghai|CST CDT|-80 -90|01010101010101010101010101010|-23uw0 18n0 OjB0 Rz0 11d0 1wL0 A10 8HX0 1G10 Tz0 1ip0 1jX0 1cN0 11b0 1oN0 aL0 1tU30 Rb0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0|23e6","Asia/Colombo|MMT +0530 +06 +0630|-5j.w -5u -60 -6u|01231321|-2zOtj.w 1rFbN.w 1zzu 7Apu 23dz0 11zu n3cu|22e5","Asia/Dhaka|HMT +0630 +0530 +06 +07|-5R.k -6u -5u -60 -70|0121343|-18LFR.k 1unn.k HB0 m6n0 2kxbu 1i00|16e6","Asia/Damascus|LMT EET EEST|-2p.c -20 -30|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-21Jep.c Hep.c 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1xRB0 11X0 1oN0 10L0 1pB0 11b0 1oN0 10L0 1mp0 13X0 1oN0 11b0 1pd0 11b0 1oN0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 Nb0 1AN0 Nb0 bcp0 19X0 1gp0 19X0 3ld0 1xX0 Vd0 1Bz0 Sp0 1vX0 10p0 1dz0 1cN0 1cL0 1db0 1db0 1g10 1an0 1ap0 1db0 1fd0 1db0 1cN0 1db0 1dd0 1db0 1cp0 1dz0 1c10 1dX0 1cN0 1db0 1dd0 1db0 1cN0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1db0 1cN0 1db0 1cN0 19z0 1fB0 1qL0 11B0 1on0 Wp0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0|26e5","Asia/Dili|LMT +08 +09|-8m.k -80 -90|01212|-2le8m.k 1dnXm.k 1nfA0 Xld0|19e4","Asia/Dubai|LMT +04|-3F.c -40|01|-21JfF.c|39e5","Asia/Dushanbe|LMT +05 +06 +07|-4z.c -50 -60 -70|012323232323232323232321|-1Pc4z.c eUnz.c 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2hB0|76e4","Asia/Famagusta|LMT EET EEST +03|-2f.M -20 -30 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212312121212121212121212121212121212121212121|-1Vc2f.M 2a3cf.M 1cL0 1qp0 Xz0 19B0 19X0 1fB0 1db0 1cp0 1cL0 1fB0 19X0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1o30 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 15U0 2Ks0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|","Asia/Gaza|EET EEST IST IDT|-20 -30 -20 -30|010101010101010101010101010101010123232323232323232323232323232320101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-1c2o0 MM0 iM0 4JA0 10o0 1pA0 10M0 1pA0 16o0 1jA0 16o0 1jA0 pBa0 Vz0 1oN0 11b0 1oO0 10N0 1pz0 10N0 1pb0 10N0 1pb0 10N0 1pb0 10N0 1pz0 10N0 1pb0 10N0 1pb0 11d0 1oL0 dW0 hfB0 Db0 1fB0 Rb0 bXB0 gM0 8Q00 IM0 1wo0 TX0 1HB0 IL0 1s10 10n0 1o10 WL0 1zd0 On0 1ld0 11z0 1o10 14n0 1o10 14n0 1nd0 12n0 1nd0 Xz0 1q10 12n0 M10 C00 17c0 1io0 17c0 1io0 17c0 1o00 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 17c0 1io0 18N0 1bz0 19z0 1gp0 1610 1iL0 11z0 1o10 14o0 1lA1 SKX 1xd1 MKX 1AN0 1a00 1fA0 1cL0 1cN0 1nX0 1210 1nA0 1210 1qL0 WN0 1qL0 WN0 1qL0 11c0 1on0 11B0 1o00 11A0 1qo0 Xc0 1qo0 Xc0 1qo0 1200 1nA0 1200 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 1200 1nA0 1200 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 1200 1qo0 Xc0 1qo0|18e5","Asia/Hebron|EET EEST IST IDT|-20 -30 -20 -30|01010101010101010101010101010101012323232323232323232323232323232010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-1c2o0 MM0 iM0 4JA0 10o0 1pA0 10M0 1pA0 16o0 1jA0 16o0 1jA0 pBa0 Vz0 1oN0 11b0 1oO0 10N0 1pz0 10N0 1pb0 10N0 1pb0 10N0 1pb0 10N0 1pz0 10N0 1pb0 10N0 1pb0 11d0 1oL0 dW0 hfB0 Db0 1fB0 Rb0 bXB0 gM0 8Q00 IM0 1wo0 TX0 1HB0 IL0 1s10 10n0 1o10 WL0 1zd0 On0 1ld0 11z0 1o10 14n0 1o10 14n0 1nd0 12n0 1nd0 Xz0 1q10 12n0 M10 C00 17c0 1io0 17c0 1io0 17c0 1o00 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 17c0 1io0 18N0 1bz0 19z0 1gp0 1610 1iL0 12L0 1mN0 14o0 1lc0 Tb0 1xd1 MKX bB0 cn0 1cN0 1a00 1fA0 1cL0 1cN0 1nX0 1210 1nA0 1210 1qL0 WN0 1qL0 WN0 1qL0 11c0 1on0 11B0 1o00 11A0 1qo0 Xc0 1qo0 Xc0 1qo0 1200 1nA0 1200 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 1200 1nA0 1200 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 1200 1qo0 Xc0 1qo0|25e4","Asia/Ho_Chi_Minh|LMT PLMT +07 +08 +09|-76.E -76.u -70 -80 -90|0123423232|-2yC76.E bK00.a 1h7b6.u 5lz0 18o0 3Oq0 k5b0 aW00 BAM0|90e5","Asia/Hong_Kong|LMT HKT HKST HKWT JST|-7A.G -80 -90 -8u -90|0123412121212121212121212121212121212121212121212121212121212121212121|-2CFH0 1taO0 Hc0 xUu 9tBu 11z0 1tDu Rc0 1wo0 11A0 1cM0 11A0 1o00 11A0 1o00 11A0 1o00 14o0 1o00 11A0 1nX0 U10 1tz0 U10 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 U10 1tz0 U10 1wn0 Rd0 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 17d0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 s10 1Vz0 1cN0 1cL0 1cN0 1cL0 6fd0 14n0|73e5","Asia/Hovd|LMT +06 +07 +08|-66.A -60 -70 -80|012323232323232323232323232323232323232323232323232|-2APG6.A 2Uko6.A cKn0 1db0 1dd0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 6hD0 11z0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 kEp0 1cJ0 1cP0 1cJ0|81e3","Asia/Irkutsk|IMT +07 +08 +09|-6V.5 -70 -80 -90|01232323232323232323232123232323232323232323232323232323232323232|-21zGV.5 pjXV.5 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|60e4","Europe/Istanbul|IMT EET EEST +03 +04|-1U.U -20 -30 -30 -40|0121212121212121212121212121212121212121212121234312121212121212121212121212121212121212121212121212121212121212123|-2ogNU.U dzzU.U 11b0 8tB0 1on0 1410 1db0 19B0 1in0 3Rd0 Un0 1oN0 11b0 zSN0 CL0 mp0 1Vz0 1gN0 8yn0 1yp0 ML0 1kp0 17b0 1ip0 17b0 1fB0 19X0 1ip0 19X0 1ip0 17b0 qdB0 38L0 1jd0 Tz0 l6O0 11A0 WN0 1qL0 TB0 1tX0 U10 1tz0 11B0 1in0 17d0 z90 cne0 pb0 2Cp0 1800 14o0 1dc0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1a00 1fA0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WO0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 Xc0 1qo0 WM0 1qM0 11A0 1o00 1200 1nA0 11A0 1tA0 U00 15w0|13e6","Asia/Jakarta|BMT +0720 +0730 +09 +08 WIB|-77.c -7k -7u -90 -80 -70|01232425|-1Q0Tk luM0 mPzO 8vWu 6kpu 4PXu xhcu|31e6","Asia/Jayapura|LMT +09 +0930 WIT|-9m.M -90 -9u -90|0123|-1uu9m.M sMMm.M L4nu|26e4","Asia/Jerusalem|JMT IST IDT IDDT|-2k.E -20 -30 -40|01212121212121321212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-26Bek.E SyOk.E MM0 iM0 4JA0 10o0 1pA0 10M0 1pA0 16o0 1jA0 16o0 1jA0 3LA0 Eo0 oo0 1co0 1dA0 16o0 10M0 1jc0 1tA0 14o0 1cM0 1a00 11A0 1Nc0 Ao0 1Nc0 Ao0 1Ko0 LA0 1o00 WM0 EQK0 Db0 1fB0 Rb0 bXB0 gM0 8Q00 IM0 1wo0 TX0 1HB0 IL0 1s10 10n0 1o10 WL0 1zd0 On0 1ld0 11z0 1o10 14n0 1o10 14n0 1nd0 12n0 1nd0 Xz0 1q10 12n0 1hB0 1dX0 1ep0 1aL0 1eN0 17X0 1nf0 11z0 1tB0 19W0 1e10 17b0 1ep0 1gL0 18N0 1fz0 1eN0 17b0 1gq0 1gn0 19d0 1dz0 1c10 17X0 1hB0 1gn0 19d0 1dz0 1c10 17X0 1kp0 1dz0 1c10 1aL0 1eN0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0|81e4","Asia/Kabul|+04 +0430|-40 -4u|01|-10Qs0|46e5","Asia/Kamchatka|LMT +11 +12 +13|-ay.A -b0 -c0 -d0|012323232323232323232321232323232323232323232323232323232323212|-1SLKy.A ivXy.A 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|18e4","Asia/Karachi|LMT +0530 +0630 +05 PKT PKST|-4s.c -5u -6u -50 -50 -60|012134545454|-2xoss.c 1qOKW.c 7zX0 eup0 LqMu 1fy00 1cL0 dK10 11b0 1610 1jX0|24e6","Asia/Urumqi|LMT +06|-5O.k -60|01|-1GgtO.k|32e5","Asia/Kathmandu|LMT +0530 +0545|-5F.g -5u -5J|012|-21JhF.g 2EGMb.g|12e5","Asia/Khandyga|LMT +08 +09 +10 +11|-92.d -80 -90 -a0 -b0|0123232323232323232323212323232323232323232323232343434343434343432|-21Q92.d pAp2.d 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 qK0 yN0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 17V0 7zD0|66e2","Asia/Krasnoyarsk|LMT +06 +07 +08|-6b.q -60 -70 -80|01232323232323232323232123232323232323232323232323232323232323232|-21Hib.q prAb.q 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|10e5","Asia/Kuala_Lumpur|SMT +07 +0720 +0730 +09 +08|-6T.p -70 -7k -7u -90 -80|0123435|-2Bg6T.p 17anT.p l5XE 17bO 8Fyu 1so1u|71e5","Asia/Kuching|LMT +0730 +08 +0820 +09|-7l.k -7u -80 -8k -90|0123232323232323242|-1KITl.k gDbP.k 6ynu AnE 1O0k AnE 1NAk AnE 1NAk AnE 1NAk AnE 1O0k AnE 1NAk AnE pAk 8Fz0|13e4","Asia/Macau|LMT CST +09 +10 CDT|-7y.a -80 -90 -a0 -90|012323214141414141414141414141414141414141414141414141414141414141414141|-2CFHy.a 1uqKy.a PX0 1kn0 15B0 11b0 4Qq0 1oM0 11c0 1ko0 1u00 11A0 1cM0 11c0 1o00 11A0 1o00 11A0 1oo0 1400 1o00 11A0 1o00 U00 1tA0 U00 1wo0 Rc0 1wru U10 1tz0 U10 1tz0 U10 1tz0 U10 1wn0 Rd0 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 17d0 1cK0 1cO0 1cK0 1cO0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 s10 1Vz0 1cN0 1cL0 1cN0 1cL0 6fd0 14n0|57e4","Asia/Magadan|LMT +10 +11 +12|-a3.c -a0 -b0 -c0|012323232323232323232321232323232323232323232323232323232323232312|-1Pca3.c eUo3.c 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3Cq0|95e3","Asia/Makassar|LMT MMT +08 +09 WITA|-7V.A -7V.A -80 -90 -80|01234|-21JjV.A vfc0 myLV.A 8ML0|15e5","Asia/Manila|PST PDT JST|-80 -90 -90|010201010|-1kJI0 AL0 cK10 65X0 mXB0 vX0 VK10 1db0|24e6","Asia/Nicosia|LMT EET EEST|-2d.s -20 -30|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1Vc2d.s 2a3cd.s 1cL0 1qp0 Xz0 19B0 19X0 1fB0 1db0 1cp0 1cL0 1fB0 19X0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1o30 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|32e4","Asia/Novokuznetsk|LMT +06 +07 +08|-5M.M -60 -70 -80|012323232323232323232321232323232323232323232323232323232323212|-1PctM.M eULM.M 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|55e4","Asia/Novosibirsk|LMT +06 +07 +08|-5v.E -60 -70 -80|0123232323232323232323212323212121212121212121212121212121212121212|-21Qnv.E pAFv.E 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 ml0 Os0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 4eN0|15e5","Asia/Omsk|LMT +05 +06 +07|-4R.u -50 -60 -70|01232323232323232323232123232323232323232323232323232323232323232|-224sR.u pMLR.u 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|12e5","Asia/Oral|LMT +03 +05 +06 +04|-3p.o -30 -50 -60 -40|01232323232323232424242424242424242424242424242|-1Pc3p.o eUop.o 23CK0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 1cM0 1cM0 IM0 1EM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0|27e4","Asia/Pontianak|LMT PMT +0730 +09 +08 WITA WIB|-7h.k -7h.k -7u -90 -80 -80 -70|012324256|-2ua7h.k XE00 munL.k 8Rau 6kpu 4PXu xhcu Wqnu|23e4","Asia/Pyongyang|LMT KST JST KST|-8n -8u -90 -90|012313|-2um8n 97XR 1lTzu 2Onc0 6BA0|29e5","Asia/Qostanay|LMT +04 +05 +06|-4e.s -40 -50 -60|012323232323232323232123232323232323232323232323|-1Pc4e.s eUoe.s 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0|","Asia/Qyzylorda|LMT +04 +05 +06|-4l.Q -40 -50 -60|01232323232323232323232323232323232323232323232|-1Pc4l.Q eUol.Q 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 3ao0 1EM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 zQl0|73e4","Asia/Rangoon|RMT +0630 +09|-6o.L -6u -90|0121|-21Jio.L SmnS.L 7j9u|48e5","Asia/Sakhalin|LMT +09 +11 +12 +10|-9u.M -90 -b0 -c0 -a0|01232323232323232323232423232323232424242424242424242424242424242|-2AGVu.M 1BoMu.M 1qFa0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 2pB0 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0|58e4","Asia/Samarkand|LMT +04 +05 +06|-4r.R -40 -50 -60|01232323232323232323232|-1Pc4r.R eUor.R 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0|36e4","Asia/Seoul|LMT KST JST KST KDT KDT|-8r.Q -8u -90 -90 -a0 -9u|012343434343151515151515134343|-2um8r.Q 97XV.Q 1m1zu 6CM0 Fz0 1kN0 14n0 1kN0 14L0 1zd0 On0 69B0 2I0u OL0 1FB0 Rb0 1qN0 TX0 1tB0 TX0 1tB0 TX0 1tB0 TX0 2ap0 12FBu 11A0 1o00 11A0|23e6","Asia/Srednekolymsk|LMT +10 +11 +12|-ae.Q -a0 -b0 -c0|01232323232323232323232123232323232323232323232323232323232323232|-1Pcae.Q eUoe.Q 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|35e2","Asia/Taipei|CST JST CDT|-80 -90 -90|01020202020202020202020202020202020202020|-1iw80 joM0 1yo0 Tz0 1ip0 1jX0 1cN0 11b0 1oN0 11b0 1oN0 11b0 1oN0 11b0 10N0 1BX0 10p0 1pz0 10p0 1pz0 10p0 1db0 1dd0 1db0 1cN0 1db0 1cN0 1db0 1cN0 1db0 1BB0 ML0 1Bd0 ML0 uq10 1db0 1cN0 1db0 97B0 AL0|74e5","Asia/Tashkent|LMT +05 +06 +07|-4B.b -50 -60 -70|012323232323232323232321|-1Pc4B.b eUnB.b 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0|23e5","Asia/Tbilisi|TBMT +03 +04 +05|-2X.b -30 -40 -50|0123232323232323232323212121232323232323232323212|-1Pc2X.b 1jUnX.b WCL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 1cK0 1cL0 1cN0 1cL0 1cN0 2pz0 1cL0 1fB0 3Nz0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 An0 Os0 WM0|11e5","Asia/Tehran|LMT TMT +0330 +04 +05 +0430|-3p.I -3p.I -3u -40 -50 -4u|01234325252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252|-2btDp.I 1d3c0 1huLT.I TXu 1pz0 sN0 vAu 1cL0 1dB0 1en0 pNB0 UL0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 64p0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0|14e6","Asia/Thimphu|LMT +0530 +06|-5W.A -5u -60|012|-Su5W.A 1BGMs.A|79e3","Asia/Tokyo|JST JDT|-90 -a0|010101010|-QJJ0 Rc0 1lc0 14o0 1zc0 Oo0 1zc0 Oo0|38e6","Asia/Tomsk|LMT +06 +07 +08|-5D.P -60 -70 -80|0123232323232323232323212323232323232323232323212121212121212121212|-21NhD.P pxzD.P 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 co0 1bB0 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3Qp0|10e5","Asia/Ulaanbaatar|LMT +07 +08 +09|-77.w -70 -80 -90|012323232323232323232323232323232323232323232323232|-2APH7.w 2Uko7.w cKn0 1db0 1dd0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 6hD0 11z0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 kEp0 1cJ0 1cP0 1cJ0|12e5","Asia/Ust-Nera|LMT +08 +09 +12 +11 +10|-9w.S -80 -90 -c0 -b0 -a0|012343434343434343434345434343434343434343434343434343434343434345|-21Q9w.S pApw.S 23CL0 1d90 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 17V0 7zD0|65e2","Asia/Vladivostok|LMT +09 +10 +11|-8L.v -90 -a0 -b0|01232323232323232323232123232323232323232323232323232323232323232|-1SJIL.v itXL.v 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|60e4","Asia/Yakutsk|LMT +08 +09 +10|-8C.W -80 -90 -a0|01232323232323232323232123232323232323232323232323232323232323232|-21Q8C.W pAoC.W 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|28e4","Asia/Yekaterinburg|LMT PMT +04 +05 +06|-42.x -3J.5 -40 -50 -60|012343434343434343434343234343434343434343434343434343434343434343|-2ag42.x 7mQh.s qBvJ.5 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|14e5","Asia/Yerevan|LMT +03 +04 +05|-2W -30 -40 -50|0123232323232323232323212121212323232323232323232323232323232|-1Pc2W 1jUnW WCL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 4RX0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0|13e5","Atlantic/Azores|HMT -02 -01 +00 WET|1S.w 20 10 0 0|0121212121212121212121212121212121212121212123212321232123212121212121212121212121212121212121212121232323232323232323232323232323234323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-2ldW0 aPX0 Sp0 LX0 1vc0 Tc0 1uM0 SM0 1vc0 Tc0 1vc0 SM0 1vc0 6600 1co0 3E00 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 3I00 17c0 1cM0 1cM0 3Fc0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 1tA0 1cM0 1dc0 1400 gL0 IM0 s10 U00 dX0 Rc0 pd0 Rc0 gL0 Oo0 pd0 Rc0 gL0 Oo0 pd0 14o0 1cM0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 qIl0 1cM0 1fA0 1cM0 1cM0 1cN0 1cL0 1cN0 1cM0 1cM0 1cM0 1cM0 1cN0 1cL0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cL0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|25e4","Atlantic/Bermuda|BMT BST AST ADT|4j.i 3j.i 40 30|010102323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-28p7E.G 1bb0 1i10 11X0 ru30 thbE.G 1PX0 11B0 1tz0 Rd0 1zb0 Op0 1zb0 3I10 Lz0 1EN0 FX0 1HB0 FX0 1Kp0 Db0 1Kp0 Db0 1Kp0 FX0 93d0 11z0 GAp0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|65e3","Atlantic/Canary|LMT -01 WET WEST|11.A 10 0 -10|01232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-1UtaW.o XPAW.o 1lAK0 1a10 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|54e4","Atlantic/Cape_Verde|LMT -02 -01|1y.4 20 10|01212|-2ldW0 1eEo0 7zX0 1djf0|50e4","Atlantic/Faroe|LMT WET WEST|r.4 0 -10|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2uSnw.U 2Wgow.U 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|49e3","Atlantic/Madeira|FMT -01 +00 +01 WET WEST|17.A 10 0 -10 0 -10|0121212121212121212121212121212121212121212123212321232123212121212121212121212121212121212121212121454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-2ldX0 aPX0 Sp0 LX0 1vc0 Tc0 1uM0 SM0 1vc0 Tc0 1vc0 SM0 1vc0 6600 1co0 3E00 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 3I00 17c0 1cM0 1cM0 3Fc0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 1tA0 1cM0 1dc0 1400 gL0 IM0 s10 U00 dX0 Rc0 pd0 Rc0 gL0 Oo0 pd0 Rc0 gL0 Oo0 pd0 14o0 1cM0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 qIl0 1cM0 1fA0 1cM0 1cM0 1cN0 1cL0 1cN0 1cM0 1cM0 1cM0 1cM0 1cN0 1cL0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|27e4","Atlantic/Reykjavik|LMT -01 +00 GMT|1s 10 0 0|012121212121212121212121212121212121212121212121212121212121212121213|-2uWmw mfaw 1Bd0 ML0 1LB0 Cn0 1LB0 3fX0 C10 HrX0 1cO0 LB0 1EL0 LA0 1C00 Oo0 1wo0 Rc0 1wo0 Rc0 1wo0 Rc0 1zc0 Oo0 1zc0 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1lc0 14o0 1o00 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1o00 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1o00 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1o00 14o0|12e4","Atlantic/South_Georgia|-02|20|0||30","Atlantic/Stanley|SMT -04 -03 -02|3P.o 40 30 20|012121212121212323212121212121212121212121212121212121212121212121212|-2kJw8.A 12bA8.A 19X0 1fB0 19X0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 Cn0 1Cc10 WL0 1qL0 U10 1tz0 2mN0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1tz0 U10 1tz0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1tz0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qN0 U10 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 U10 1tz0 U10 1tz0 U10 1wn0 U10 1tz0 U10 1tz0 U10|21e2","Australia/Sydney|AEST AEDT|-a0 -b0|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293k0 xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 14o0 1o00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1tA0 WM0 1tA0 U00 1tA0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 11A0 1o00 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|40e5","Australia/Adelaide|ACST ACDT|-9u -au|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293ju xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1tA0 WM0 1tA0 U00 1tA0 U00 1tA0 Oo0 1zc0 WM0 1qM0 Rc0 1zc0 U00 1tA0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|11e5","Australia/Brisbane|AEST AEDT|-a0 -b0|01010101010101010|-293k0 xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 H1A0 Oo0 1zc0 Oo0 1zc0 Oo0|20e5","Australia/Broken_Hill|ACST ACDT|-9u -au|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293ju xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 14o0 1o00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1tA0 WM0 1tA0 U00 1tA0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|18e3","Australia/Hobart|AEST AEDT|-a0 -b0|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-29E80 1a00 1qM0 Oo0 1zc0 Oo0 TAo0 yM0 1cM0 1cM0 1fA0 1a00 VfA0 1cM0 1o00 Rc0 1wo0 Rc0 1wo0 U00 1wo0 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1qM0 WM0 1qM0 Oo0 1zc0 Oo0 1zc0 Oo0 1wo0 WM0 1tA0 WM0 1tA0 U00 1tA0 U00 1tA0 11A0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 11A0 1o00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|21e4","Australia/Darwin|ACST ACDT|-9u -au|010101010|-293ju xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00|12e4","Australia/Eucla|+0845 +0945|-8J -9J|0101010101010101010|-293iJ xc0 10jc0 yM0 1cM0 1cM0 1gSo0 Oo0 l5A0 Oo0 iJA0 G00 zU00 IM0 1qM0 11A0 1o00 11A0|368","Australia/Lord_Howe|AEST +1030 +1130 +11|-a0 -au -bu -b0|0121212121313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313|raC0 1zdu Rb0 1zd0 On0 1zd0 On0 1zd0 On0 1zd0 TXu 1qMu WLu 1tAu WLu 1tAu TXu 1tAu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1zcu Onu 1zcu Onu 1zcu 11zu 1o0u 11zu 1o0u 11zu 1o0u 11zu 1qMu WLu 11Au 1nXu 1qMu 11zu 1o0u 11zu 1o0u 11zu 1qMu WLu 1qMu 11zu 1o0u WLu 1qMu 14nu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1fzu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu|347","Australia/Lindeman|AEST AEDT|-a0 -b0|010101010101010101010|-293k0 xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 H1A0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0|10","Australia/Melbourne|AEST AEDT|-a0 -b0|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293k0 xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1qM0 11A0 1tA0 U00 1tA0 U00 1tA0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 11A0 1o00 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|39e5","Australia/Perth|AWST AWDT|-80 -90|0101010101010101010|-293i0 xc0 10jc0 yM0 1cM0 1cM0 1gSo0 Oo0 l5A0 Oo0 iJA0 G00 zU00 IM0 1qM0 11A0 1o00 11A0|18e5","CET|CET CEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 16M0 1gMM0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|","Pacific/Easter|EMT -07 -06 -05|7h.s 70 60 50|012121212121212121212121212123232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-1uSgG.w 1s4IG.w WL0 1zd0 On0 1ip0 11z0 1o10 11z0 1qN0 WL0 1ld0 14n0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 2pA0 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1zb0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0|30e2","CST6CDT|CST CDT CWT CPT|60 50 50 50|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","EET|EET EEST|-20 -30|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|hDB0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|","Europe/Dublin|DMT IST GMT BST IST|p.l -y.D 0 -10 -10|01232323232324242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242|-2ax9y.D Rc0 1fzy.D 14M0 1fc0 1g00 1co0 1dc0 1co0 1oo0 1400 1dc0 19A0 1io0 1io0 WM0 1o00 14o0 1o00 17c0 1io0 17c0 1fA0 1a00 1lc0 17c0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1cM0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1io0 1qM0 Dc0 g600 14o0 1wo0 17c0 1io0 11A0 1o00 17c0 1fA0 1a00 1fA0 1cM0 1fA0 1a00 17c0 1fA0 1a00 1io0 17c0 1lc0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1a00 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1tA0 IM0 90o0 U00 1tA0 U00 1tA0 U00 1tA0 U00 1tA0 WM0 1qM0 WM0 1qM0 WM0 1tA0 U00 1tA0 U00 1tA0 11z0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 14o0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5","EST|EST|50|0||","EST5EDT|EST EDT EWT EPT|50 40 40 40|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261t0 1nX0 11B0 1nX0 SgN0 8x40 iv0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","Etc/GMT-0|GMT|0|0||","Etc/GMT-1|+01|-10|0||","Etc/GMT-11|+11|-b0|0||","Pacific/Tarawa|+12|-c0|0||29e3","Etc/GMT-13|+13|-d0|0||","Etc/GMT-14|+14|-e0|0||","Etc/GMT-2|+02|-20|0||","Etc/GMT-3|+03|-30|0||","Etc/GMT-4|+04|-40|0||","Etc/GMT-5|+05|-50|0||","Etc/GMT-6|+06|-60|0||","Indian/Christmas|+07|-70|0||21e2","Etc/GMT-8|+08|-80|0||","Pacific/Palau|+09|-90|0||21e3","Etc/GMT+1|-01|10|0||","Etc/GMT+10|-10|a0|0||","Etc/GMT+11|-11|b0|0||","Etc/GMT+12|-12|c0|0||","Etc/GMT+3|-03|30|0||","Etc/GMT+4|-04|40|0||","Etc/GMT+5|-05|50|0||","Etc/GMT+6|-06|60|0||","Etc/GMT+7|-07|70|0||","Etc/GMT+8|-08|80|0||","Etc/GMT+9|-09|90|0||","Etc/UTC|UTC|0|0||","Europe/Amsterdam|AMT NST +0120 +0020 CEST CET|-j.w -1j.w -1k -k -20 -10|010101010101010101010101010101010101010101012323234545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545|-2aFcj.w 11b0 1iP0 11A0 1io0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1co0 1io0 1yo0 Pc0 1a00 1fA0 1Bc0 Mo0 1tc0 Uo0 1tA0 U00 1uo0 W00 1s00 VA0 1so0 Vc0 1sM0 UM0 1wo0 Rc0 1u00 Wo0 1rA0 W00 1s00 VA0 1sM0 UM0 1w00 fV0 BCX.w 1tA0 U00 1u00 Wo0 1sm0 601k WM0 1fA0 1cM0 1cM0 1cM0 16M0 1gMM0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|16e5","Europe/Andorra|WET CET CEST|0 -10 -20|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-UBA0 1xIN0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|79e3","Europe/Astrakhan|LMT +03 +04 +05|-3c.c -30 -40 -50|012323232323232323212121212121212121212121212121212121212121212|-1Pcrc.c eUMc.c 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0|10e5","Europe/Athens|AMT EET EEST CEST CET|-1y.Q -20 -30 -20 -10|012123434121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2a61x.Q CNbx.Q mn0 kU10 9b0 3Es0 Xa0 1fb0 1dd0 k3X0 Nz0 SCp0 1vc0 SO0 1cM0 1a00 1ao0 1fc0 1a10 1fG0 1cg0 1dX0 1bX0 1cQ0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|35e5","Europe/London|GMT BST BDST|0 -10 -20|0101010101010101010101010101010101010101010101010121212121210101210101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2axa0 Rc0 1fA0 14M0 1fc0 1g00 1co0 1dc0 1co0 1oo0 1400 1dc0 19A0 1io0 1io0 WM0 1o00 14o0 1o00 17c0 1io0 17c0 1fA0 1a00 1lc0 17c0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1cM0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1io0 1qM0 Dc0 2Rz0 Dc0 1zc0 Oo0 1zc0 Rc0 1wo0 17c0 1iM0 FA0 xB0 1fA0 1a00 14o0 bb0 LA0 xB0 Rc0 1wo0 11A0 1o00 17c0 1fA0 1a00 1fA0 1cM0 1fA0 1a00 17c0 1fA0 1a00 1io0 17c0 1lc0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1a00 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1tA0 IM0 90o0 U00 1tA0 U00 1tA0 U00 1tA0 U00 1tA0 WM0 1qM0 WM0 1qM0 WM0 1tA0 U00 1tA0 U00 1tA0 11z0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 14o0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|10e6","Europe/Belgrade|CET CEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-19RC0 3IP0 WM0 1fA0 1cM0 1cM0 1rc0 Qo0 1vmo0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5","Europe/Berlin|CET CEST CEMT|-10 -20 -30|01010101010101210101210101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 kL0 Nc0 m10 WM0 1ao0 1cp0 dX0 jz0 Dd0 1io0 17c0 1fA0 1a00 1ehA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|41e5","Europe/Prague|CET CEST GMT|-10 -20 0|01010101010101010201010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 1cM0 1qM0 11c0 mp0 xA0 mn0 17c0 1io0 17c0 1fc0 1ao0 1bNc0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|13e5","Europe/Brussels|WET CET CEST WEST|0 -10 -20 -10|0121212103030303030303030303030303030303030303030303212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2ehc0 3zX0 11c0 1iO0 11A0 1o00 11A0 my0 Ic0 1qM0 Rc0 1EM0 UM0 1u00 10o0 1io0 1io0 17c0 1a00 1fA0 1cM0 1cM0 1io0 17c0 1fA0 1a00 1io0 1a30 1io0 17c0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 y00 5Wn0 WM0 1fA0 1cM0 16M0 1iM0 16M0 1C00 Uo0 1eeo0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|21e5","Europe/Bucharest|BMT EET EEST|-1I.o -20 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1xApI.o 20LI.o RA0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1Axc0 On0 1fA0 1a10 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cK0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cL0 1cN0 1cL0 1fB0 1nX0 11E0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|19e5","Europe/Budapest|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 1oo0 11c0 1lc0 17c0 O1V0 3Nf0 WM0 1fA0 1cM0 1cM0 1oJ0 1dd0 1020 1fX0 1cp0 1cM0 1cM0 1cM0 1fA0 1a00 bhy0 Rb0 1wr0 Rc0 1C00 LA0 1C00 LA0 SNW0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cO0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|17e5","Europe/Zurich|CET CEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-19Lc0 11A0 1o00 11A0 1xG10 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|38e4","Europe/Chisinau|CMT BMT EET EEST CEST CET MSK MSD|-1T -1I.o -20 -30 -20 -10 -30 -40|012323232323232323234545467676767676767676767323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-26jdT wGMa.A 20LI.o RA0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 27A0 2en0 39g0 WM0 1fA0 1cM0 V90 1t7z0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 gL0 WO0 1cM0 1cM0 1cK0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1nX0 11D0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|67e4","Europe/Copenhagen|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2azC0 Tz0 VuO0 60q0 WM0 1fA0 1cM0 1cM0 1cM0 S00 1HA0 Nc0 1C00 Dc0 1Nc0 Ao0 1h5A0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5","Europe/Gibraltar|GMT BST BDST CET CEST|0 -10 -20 -10 -20|010101010101010101010101010101010101010101010101012121212121010121010101010101010101034343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-2axa0 Rc0 1fA0 14M0 1fc0 1g00 1co0 1dc0 1co0 1oo0 1400 1dc0 19A0 1io0 1io0 WM0 1o00 14o0 1o00 17c0 1io0 17c0 1fA0 1a00 1lc0 17c0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1cM0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1io0 1qM0 Dc0 2Rz0 Dc0 1zc0 Oo0 1zc0 Rc0 1wo0 17c0 1iM0 FA0 xB0 1fA0 1a00 14o0 bb0 LA0 xB0 Rc0 1wo0 11A0 1o00 17c0 1fA0 1a00 1fA0 1cM0 1fA0 1a00 17c0 1fA0 1a00 1io0 17c0 1lc0 17c0 1fA0 10Jz0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|30e3","Europe/Helsinki|HMT EET EEST|-1D.N -20 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1WuND.N OULD.N 1dA0 1xGq0 1cM0 1cM0 1cM0 1cN0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5","Europe/Kaliningrad|CET CEST EET EEST MSK MSD +03|-10 -20 -20 -30 -30 -40 -30|01010101010101232454545454545454543232323232323232323232323232323232323232323262|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 390 7A0 1en0 12N0 1pbb0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|44e4","Europe/Kiev|KMT EET MSK CEST CET MSD EEST|-22.4 -20 -30 -20 -10 -40 -30|0123434252525252525252525256161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161|-1Pc22.4 eUo2.4 rnz0 2Hg0 WM0 1fA0 da0 1v4m0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 Db0 3220 1cK0 1cL0 1cN0 1cL0 1cN0 1cL0 1cQ0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|34e5","Europe/Kirov|LMT +03 +04 +05|-3i.M -30 -40 -50|01232323232323232321212121212121212121212121212121212121212121|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|48e4","Europe/Lisbon|LMT WET WEST WEMT CET CEST|A.J 0 -10 -20 -10 -20|01212121212121212121212121212121212121212121232123212321232121212121212121212121212121212121212121214121212121212121212121212121212124545454212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2le00 aPX0 Sp0 LX0 1vc0 Tc0 1uM0 SM0 1vc0 Tc0 1vc0 SM0 1vc0 6600 1co0 3E00 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 3I00 17c0 1cM0 1cM0 3Fc0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 1tA0 1cM0 1dc0 1400 gL0 IM0 s10 U00 dX0 Rc0 pd0 Rc0 gL0 Oo0 pd0 Rc0 gL0 Oo0 pd0 14o0 1cM0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 pvy0 1cM0 1cM0 1fA0 1cM0 1cM0 1cN0 1cL0 1cN0 1cM0 1cM0 1cM0 1cM0 1cN0 1cL0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|27e5","Europe/Luxembourg|LMT CET CEST WET WEST WEST WET|-o.A -10 -20 0 -10 -20 -10|0121212134343434343434343434343434343434343434343434565651212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2DG0o.A t6mo.A TB0 1nX0 Up0 1o20 11A0 rW0 CM0 1qP0 R90 1EO0 UK0 1u20 10m0 1ip0 1in0 17e0 19W0 1fB0 1db0 1cp0 1in0 17d0 1fz0 1a10 1in0 1a10 1in0 17f0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 vA0 60L0 WM0 1fA0 1cM0 17c0 1io0 16M0 1C00 Uo0 1eeo0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|54e4","Europe/Madrid|WET WEST WEMT CET CEST|0 -10 -20 -10 -20|010101010101010101210343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-25Td0 19B0 1cL0 1dd0 b1z0 18p0 3HX0 17d0 1fz0 1a10 1io0 1a00 1in0 17d0 iIn0 Hd0 1cL0 bb0 1200 2s20 14n0 5aL0 Mp0 1vz0 17d0 1in0 17d0 1in0 17d0 1in0 17d0 6hX0 11B0 XHX0 1a10 1fz0 1a10 19X0 1cN0 1fz0 1a10 1fC0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|62e5","Europe/Malta|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2arB0 Lz0 1cN0 1db0 1410 1on0 Wp0 1qL0 17d0 1cL0 M3B0 5M20 WM0 1fA0 1co0 17c0 1iM0 16m0 1de0 1lc0 14m0 1lc0 WO0 1qM0 GTW0 On0 1C10 LA0 1C00 LA0 1EM0 LA0 1C00 LA0 1zc0 Oo0 1C00 Oo0 1co0 1cM0 1lA0 Xc0 1qq0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1iN0 19z0 1fB0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|42e4","Europe/Minsk|MMT EET MSK CEST CET MSD EEST +03|-1O -20 -30 -20 -10 -40 -30 -30|01234343252525252525252525261616161616161616161616161616161616161617|-1Pc1O eUnO qNX0 3gQ0 WM0 1fA0 1cM0 Al0 1tsn0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 3Fc0 1cN0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0|19e5","Europe/Monaco|PMT WET WEST WEMT CET CEST|-9.l 0 -10 -20 -10 -20|01212121212121212121212121212121212121212121212121232323232345454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-2n5c9.l cFX9.l HA0 19A0 1iM0 11c0 1oo0 Wo0 1rc0 QM0 1EM0 UM0 1u00 10o0 1io0 1wo0 Rc0 1a00 1fA0 1cM0 1cM0 1io0 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Df0 2RV0 11z0 11B0 1ze0 WM0 1fA0 1cM0 1fa0 1aq0 16M0 1ekn0 1cL0 1fC0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|38e3","Europe/Moscow|MMT MMT MST MDST MSD MSK +05 EET EEST MSK|-2u.h -2v.j -3v.j -4v.j -40 -30 -50 -20 -30 -40|012132345464575454545454545454545458754545454545454545454545454545454545454595|-2ag2u.h 2pyW.W 1bA0 11X0 GN0 1Hb0 c4v.j ik0 3DA0 dz0 15A0 c10 2q10 iM10 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cN0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|16e6","Europe/Paris|PMT WET WEST CEST CET WEMT|-9.l 0 -10 -20 -10 -20|0121212121212121212121212121212121212121212121212123434352543434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434|-2nco9.l cNb9.l HA0 19A0 1iM0 11c0 1oo0 Wo0 1rc0 QM0 1EM0 UM0 1u00 10o0 1io0 1wo0 Rc0 1a00 1fA0 1cM0 1cM0 1io0 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Df0 Ik0 5M30 WM0 1fA0 1cM0 Vx0 hB0 1aq0 16M0 1ekn0 1cL0 1fC0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|11e6","Europe/Riga|RMT LST EET MSK CEST CET MSD EEST|-1A.y -2A.y -20 -30 -20 -10 -40 -30|010102345454536363636363636363727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272|-25TzA.y 11A0 1iM0 ko0 gWm0 yDXA.y 2bX0 3fE0 WM0 1fA0 1cM0 1cM0 4m0 1sLy0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cN0 1o00 11A0 1o00 11A0 1qM0 3oo0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|64e4","Europe/Rome|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2arB0 Lz0 1cN0 1db0 1410 1on0 Wp0 1qL0 17d0 1cL0 M3B0 5M20 WM0 1fA0 1cM0 16M0 1iM0 16m0 1de0 1lc0 14m0 1lc0 WO0 1qM0 GTW0 On0 1C10 LA0 1C00 LA0 1EM0 LA0 1C00 LA0 1zc0 Oo0 1C00 Oo0 1C00 LA0 1zc0 Oo0 1C00 LA0 1C00 LA0 1zc0 Oo0 1C00 Oo0 1zc0 Oo0 1fC0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|39e5","Europe/Samara|LMT +03 +04 +05|-3k.k -30 -40 -50|0123232323232323232121232323232323232323232323232323232323212|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 2y10 14m0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|12e5","Europe/Saratov|LMT +03 +04 +05|-34.i -30 -40 -50|012323232323232321212121212121212121212121212121212121212121212|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1cM0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 5810|","Europe/Simferopol|SMT EET MSK CEST CET MSD EEST MSK|-2g -20 -30 -20 -10 -40 -30 -40|012343432525252525252525252161616525252616161616161616161616161616161616172|-1Pc2g eUog rEn0 2qs0 WM0 1fA0 1cM0 3V0 1u0L0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1Q00 4eL0 1cL0 1cN0 1cL0 1cN0 dX0 WL0 1cN0 1cL0 1fB0 1o30 11B0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11z0 1nW0|33e4","Europe/Sofia|EET CET CEST EEST|-20 -10 -20 -30|01212103030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030|-168L0 WM0 1fA0 1cM0 1cM0 1cN0 1mKH0 1dd0 1fb0 1ap0 1fb0 1a20 1fy0 1a30 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cK0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1nX0 11E0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5","Europe/Stockholm|CET CEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2azC0 TB0 2yDe0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|15e5","Europe/Tallinn|TMT CET CEST EET MSK MSD EEST|-1D -10 -20 -20 -30 -40 -30|012103421212454545454545454546363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363|-26oND teD 11A0 1Ta0 4rXl KSLD 2FX0 2Jg0 WM0 1fA0 1cM0 18J0 1sTX0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o10 11A0 1qM0 5QM0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|41e4","Europe/Tirane|LMT CET CEST|-1j.k -10 -20|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glBj.k 14pcj.k 5LC0 WM0 4M0 1fCK0 10n0 1op0 11z0 1pd0 11z0 1qN0 WL0 1qp0 Xb0 1qp0 Xb0 1qp0 11z0 1lB0 11z0 1qN0 11z0 1iN0 16n0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|42e4","Europe/Ulyanovsk|LMT +03 +04 +05 +02|-3d.A -30 -40 -50 -20|01232323232323232321214121212121212121212121212121212121212121212|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0|13e5","Europe/Uzhgorod|CET CEST MSK MSD EET EEST|-10 -20 -30 -40 -20 -30|010101023232323232323232320454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-1cqL0 6i00 WM0 1fA0 1cM0 1ml0 1Cp0 1r3W0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1Q00 1Nf0 2pw0 1cL0 1cN0 1cL0 1cN0 1cL0 1cQ0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|11e4","Europe/Vienna|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 3KM0 14o0 LA00 6i00 WM0 1fA0 1cM0 1cM0 1cM0 400 2qM0 1ao0 1co0 1cM0 1io0 17c0 1gHa0 19X0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|18e5","Europe/Vilnius|WMT KMT CET EET MSK CEST MSD EEST|-1o -1z.A -10 -20 -30 -20 -40 -30|012324525254646464646464646473737373737373737352537373737373737373737373737373737373737373737373737373737373737373737373|-293do 6ILM.o 1Ooz.A zz0 Mfd0 29W0 3is0 WM0 1fA0 1cM0 LV0 1tgL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11B0 1o00 11A0 1qM0 8io0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|54e4","Europe/Volgograd|LMT +03 +04 +05|-2V.E -30 -40 -50|0123232323232323212121212121212121212121212121212121212121212121|-21IqV.E psLV.E 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1cM0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 9Jd0 5gn0|10e5","Europe/Warsaw|WMT CET CEST EET EEST|-1o -10 -20 -20 -30|012121234312121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2ctdo 1LXo 11d0 1iO0 11A0 1o00 11A0 1on0 11A0 6zy0 HWP0 5IM0 WM0 1fA0 1cM0 1dz0 1mL0 1en0 15B0 1aq0 1nA0 11A0 1io0 17c0 1fA0 1a00 iDX0 LA0 1cM0 1cM0 1C00 Oo0 1cM0 1cM0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1C00 LA0 uso0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|17e5","Europe/Zaporozhye|+0220 EET MSK CEST CET MSD EEST|-2k -20 -30 -20 -10 -40 -30|01234342525252525252525252526161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161|-1Pc2k eUok rdb0 2RE0 WM0 1fA0 8m0 1v9a0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cK0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cQ0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|77e4","HST|HST|a0|0||","Indian/Chagos|LMT +05 +06|-4N.E -50 -60|012|-2xosN.E 3AGLN.E|30e2","Indian/Cocos|+0630|-6u|0||596","Indian/Kerguelen|-00 +05|0 -50|01|-MG00|130","Indian/Mahe|LMT +04|-3F.M -40|01|-2xorF.M|79e3","Indian/Maldives|MMT +05|-4S -50|01|-olgS|35e4","Indian/Mauritius|LMT +04 +05|-3O -40 -50|012121|-2xorO 34unO 14L0 12kr0 11z0|15e4","Indian/Reunion|LMT +04|-3F.Q -40|01|-2mDDF.Q|84e4","Pacific/Kwajalein|+11 +10 +09 -12 +12|-b0 -a0 -90 c0 -c0|012034|-1kln0 akp0 6Up0 12ry0 Wan0|14e3","MET|MET MEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 16M0 1gMM0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|","MST|MST|70|0||","MST7MDT|MST MDT MWT MPT|70 60 60 60|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261r0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","Pacific/Chatham|+1215 +1245 +1345|-cf -cJ -dJ|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-WqAf 1adef IM0 1C00 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1qM0 14o0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1io0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00|600","Pacific/Apia|LMT -1130 -11 -10 +14 +13|bq.U bu b0 a0 -e0 -d0|01232345454545454545454545|-2nDMx.4 1yW03.4 2rRbu 1ff0 1a00 CI0 AQ0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0|37e3","Pacific/Bougainville|+10 +09 +11|-a0 -90 -b0|0102|-16Wy0 7CN0 2MQp0|18e4","Pacific/Chuuk|+10 +09|-a0 -90|01010|-2ewy0 axB0 RVX0 axd0|49e3","Pacific/Efate|LMT +11 +12|-bd.g -b0 -c0|012121212121212121212121|-2l9nd.g 2uNXd.g Dc0 n610 1cL0 1cN0 1cL0 1fB0 19X0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 Lz0 1Nd0 An0|66e3","Pacific/Enderbury|-00 -12 -11 +13|0 c0 b0 -d0|0123|-1iIo0 1GsA0 B7X0|1","Pacific/Fakaofo|-11 +13|b0 -d0|01|1Gfn0|483","Pacific/Fiji|LMT +12 +13|-bT.I -c0 -d0|01212121212121212121212121212121212121212121212121212121212121|-2bUzT.I 3m8NT.I LA0 1EM0 IM0 nJc0 LA0 1o00 Rc0 1wo0 Ao0 1Nc0 Ao0 1Q00 xz0 1SN0 uM0 1SM0 uM0 1VA0 s00 1VA0 s00 1VA0 s00 20o0 pc0 2hc0 bc0 4q00 pc0 20o0 pc0 20o0 pc0 20o0 s00 1VA0 s00 20o0 pc0 20o0 pc0 20o0 pc0 20o0 pc0 20o0 s00 20o0 pc0 20o0 pc0 20o0 pc0 20o0 pc0 20o0 s00 1VA0 s00|88e4","Pacific/Galapagos|LMT -05 -06|5W.o 50 60|01212|-1yVS1.A 2dTz1.A gNd0 rz0|25e3","Pacific/Gambier|LMT -09|8X.M 90|01|-2jof0.c|125","Pacific/Guadalcanal|LMT +11|-aD.M -b0|01|-2joyD.M|11e4","Pacific/Guam|GST +09 GDT ChST|-a0 -90 -b0 -a0|01020202020202020203|-18jK0 6pB0 AhB0 3QL0 g2p0 3p91 WOX rX0 1zd0 Rb0 1wp0 Rb0 5xd0 rX0 5sN0 zb1 1C0X On0 ULb0|17e4","Pacific/Honolulu|HST HDT HWT HPT HST|au 9u 9u 9u a0|0102304|-1thLu 8x0 lef0 8wWu iAu 46p0|37e4","Pacific/Kiritimati|-1040 -10 +14|aE a0 -e0|012|nIaE B7Xk|51e2","Pacific/Kosrae|+11 +09 +10 +12|-b0 -90 -a0 -c0|01021030|-2ewz0 axC0 HBy0 akp0 axd0 WOK0 1bdz0|66e2","Pacific/Majuro|+11 +09 +10 +12|-b0 -90 -a0 -c0|0102103|-2ewz0 axC0 HBy0 akp0 6RB0 12um0|28e3","Pacific/Marquesas|LMT -0930|9i 9u|01|-2joeG|86e2","Pacific/Pago_Pago|LMT SST|bm.M b0|01|-2nDMB.c|37e2","Pacific/Nauru|LMT +1130 +09 +12|-b7.E -bu -90 -c0|01213|-1Xdn7.E QCnB.E 7mqu 1lnbu|10e3","Pacific/Niue|LMT -1120 -11|bj.E bk b0|012|-FScE.k suo0.k|12e2","Pacific/Norfolk|+1112 +1130 +1230 +11 +12|-bc -bu -cu -b0 -c0|012134343434343434343434343434343434343434|-Kgbc W01G Oo0 1COo0 9Jcu 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|25e4","Pacific/Noumea|LMT +11 +12|-b5.M -b0 -c0|01212121|-2l9n5.M 2EqM5.M xX0 1PB0 yn0 HeP0 Ao0|98e3","Pacific/Pitcairn|-0830 -08|8u 80|01|18Vku|56","Pacific/Pohnpei|+11 +09 +10|-b0 -90 -a0|010210|-2ewz0 axC0 HBy0 akp0 axd0|34e3","Pacific/Rarotonga|LMT -1030 -0930 -10|aD.4 au 9u a0|0123232323232323232323232323|-FSdk.U 13tbO.U IL0 1zcu Onu 1zcu Onu 1zcu Rbu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1zcu Onu 1zcu Onu 1zcu Onu|13e3","Pacific/Tahiti|LMT -10|9W.g a0|01|-2joe1.I|18e4","Pacific/Tongatapu|LMT +1220 +13 +14|-cj.c -ck -d0 -e0|01232323232|-XbMj.c BgLX.c 1yndk 15A0 1wo0 xz0 1Q10 xz0 zWN0 s00|75e3","PST8PDT|PST PDT PWT PPT|80 70 70 70|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261q0 1nX0 11B0 1nX0 SgN0 8x10 iy0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","WET|WET WEST|0 -10|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|hDB0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|"],"links":["Africa/Abidjan|Africa/Accra","Africa/Abidjan|Africa/Bamako","Africa/Abidjan|Africa/Banjul","Africa/Abidjan|Africa/Conakry","Africa/Abidjan|Africa/Dakar","Africa/Abidjan|Africa/Freetown","Africa/Abidjan|Africa/Lome","Africa/Abidjan|Africa/Nouakchott","Africa/Abidjan|Africa/Ouagadougou","Africa/Abidjan|Africa/Timbuktu","Africa/Abidjan|Atlantic/St_Helena","Africa/Cairo|Egypt","Africa/Johannesburg|Africa/Maseru","Africa/Johannesburg|Africa/Mbabane","Africa/Lagos|Africa/Bangui","Africa/Lagos|Africa/Brazzaville","Africa/Lagos|Africa/Douala","Africa/Lagos|Africa/Kinshasa","Africa/Lagos|Africa/Libreville","Africa/Lagos|Africa/Luanda","Africa/Lagos|Africa/Malabo","Africa/Lagos|Africa/Niamey","Africa/Lagos|Africa/Porto-Novo","Africa/Maputo|Africa/Blantyre","Africa/Maputo|Africa/Bujumbura","Africa/Maputo|Africa/Gaborone","Africa/Maputo|Africa/Harare","Africa/Maputo|Africa/Kigali","Africa/Maputo|Africa/Lubumbashi","Africa/Maputo|Africa/Lusaka","Africa/Nairobi|Africa/Addis_Ababa","Africa/Nairobi|Africa/Asmara","Africa/Nairobi|Africa/Asmera","Africa/Nairobi|Africa/Dar_es_Salaam","Africa/Nairobi|Africa/Djibouti","Africa/Nairobi|Africa/Kampala","Africa/Nairobi|Africa/Mogadishu","Africa/Nairobi|Indian/Antananarivo","Africa/Nairobi|Indian/Comoro","Africa/Nairobi|Indian/Mayotte","Africa/Tripoli|Libya","America/Adak|America/Atka","America/Adak|US/Aleutian","America/Anchorage|US/Alaska","America/Argentina/Buenos_Aires|America/Buenos_Aires","America/Argentina/Catamarca|America/Argentina/ComodRivadavia","America/Argentina/Catamarca|America/Catamarca","America/Argentina/Cordoba|America/Cordoba","America/Argentina/Cordoba|America/Rosario","America/Argentina/Jujuy|America/Jujuy","America/Argentina/Mendoza|America/Mendoza","America/Chicago|US/Central","America/Denver|America/Shiprock","America/Denver|Navajo","America/Denver|US/Mountain","America/Detroit|US/Michigan","America/Edmonton|Canada/Mountain","America/Fort_Wayne|America/Indiana/Indianapolis","America/Fort_Wayne|America/Indianapolis","America/Fort_Wayne|US/East-Indiana","America/Godthab|America/Nuuk","America/Halifax|Canada/Atlantic","America/Havana|Cuba","America/Indiana/Knox|America/Knox_IN","America/Indiana/Knox|US/Indiana-Starke","America/Jamaica|Jamaica","America/Kentucky/Louisville|America/Louisville","America/Los_Angeles|US/Pacific","America/Manaus|Brazil/West","America/Mazatlan|Mexico/BajaSur","America/Mexico_City|Mexico/General","America/New_York|US/Eastern","America/Noronha|Brazil/DeNoronha","America/Panama|America/Atikokan","America/Panama|America/Cayman","America/Panama|America/Coral_Harbour","America/Phoenix|America/Creston","America/Phoenix|US/Arizona","America/Puerto_Rico|America/Anguilla","America/Puerto_Rico|America/Antigua","America/Puerto_Rico|America/Aruba","America/Puerto_Rico|America/Blanc-Sablon","America/Puerto_Rico|America/Curacao","America/Puerto_Rico|America/Dominica","America/Puerto_Rico|America/Grenada","America/Puerto_Rico|America/Guadeloupe","America/Puerto_Rico|America/Kralendijk","America/Puerto_Rico|America/Lower_Princes","America/Puerto_Rico|America/Marigot","America/Puerto_Rico|America/Montserrat","America/Puerto_Rico|America/Port_of_Spain","America/Puerto_Rico|America/St_Barthelemy","America/Puerto_Rico|America/St_Kitts","America/Puerto_Rico|America/St_Lucia","America/Puerto_Rico|America/St_Thomas","America/Puerto_Rico|America/St_Vincent","America/Puerto_Rico|America/Tortola","America/Puerto_Rico|America/Virgin","America/Regina|Canada/Saskatchewan","America/Rio_Branco|America/Porto_Acre","America/Rio_Branco|Brazil/Acre","America/Santiago|Chile/Continental","America/Sao_Paulo|Brazil/East","America/St_Johns|Canada/Newfoundland","America/Tijuana|America/Ensenada","America/Tijuana|America/Santa_Isabel","America/Tijuana|Mexico/BajaNorte","America/Toronto|America/Montreal","America/Toronto|America/Nassau","America/Toronto|Canada/Eastern","America/Vancouver|Canada/Pacific","America/Whitehorse|Canada/Yukon","America/Winnipeg|Canada/Central","Asia/Ashgabat|Asia/Ashkhabad","Asia/Bangkok|Asia/Phnom_Penh","Asia/Bangkok|Asia/Vientiane","Asia/Dhaka|Asia/Dacca","Asia/Dubai|Asia/Muscat","Asia/Ho_Chi_Minh|Asia/Saigon","Asia/Hong_Kong|Hongkong","Asia/Jerusalem|Asia/Tel_Aviv","Asia/Jerusalem|Israel","Asia/Kathmandu|Asia/Katmandu","Asia/Kolkata|Asia/Calcutta","Asia/Kuala_Lumpur|Asia/Singapore","Asia/Kuala_Lumpur|Singapore","Asia/Macau|Asia/Macao","Asia/Makassar|Asia/Ujung_Pandang","Asia/Nicosia|Europe/Nicosia","Asia/Qatar|Asia/Bahrain","Asia/Rangoon|Asia/Yangon","Asia/Riyadh|Antarctica/Syowa","Asia/Riyadh|Asia/Aden","Asia/Riyadh|Asia/Kuwait","Asia/Seoul|ROK","Asia/Shanghai|Asia/Chongqing","Asia/Shanghai|Asia/Chungking","Asia/Shanghai|Asia/Harbin","Asia/Shanghai|PRC","Asia/Taipei|ROC","Asia/Tehran|Iran","Asia/Thimphu|Asia/Thimbu","Asia/Tokyo|Japan","Asia/Ulaanbaatar|Asia/Ulan_Bator","Asia/Urumqi|Asia/Kashgar","Atlantic/Faroe|Atlantic/Faeroe","Atlantic/Reykjavik|Iceland","Atlantic/South_Georgia|Etc/GMT+2","Australia/Adelaide|Australia/South","Australia/Brisbane|Australia/Queensland","Australia/Broken_Hill|Australia/Yancowinna","Australia/Darwin|Australia/North","Australia/Hobart|Australia/Currie","Australia/Hobart|Australia/Tasmania","Australia/Lord_Howe|Australia/LHI","Australia/Melbourne|Australia/Victoria","Australia/Perth|Australia/West","Australia/Sydney|Australia/ACT","Australia/Sydney|Australia/Canberra","Australia/Sydney|Australia/NSW","Etc/GMT-0|Etc/GMT","Etc/GMT-0|Etc/GMT+0","Etc/GMT-0|Etc/GMT0","Etc/GMT-0|Etc/Greenwich","Etc/GMT-0|GMT","Etc/GMT-0|GMT+0","Etc/GMT-0|GMT-0","Etc/GMT-0|GMT0","Etc/GMT-0|Greenwich","Etc/UTC|Etc/UCT","Etc/UTC|Etc/Universal","Etc/UTC|Etc/Zulu","Etc/UTC|UCT","Etc/UTC|UTC","Etc/UTC|Universal","Etc/UTC|Zulu","Europe/Belgrade|Europe/Ljubljana","Europe/Belgrade|Europe/Podgorica","Europe/Belgrade|Europe/Sarajevo","Europe/Belgrade|Europe/Skopje","Europe/Belgrade|Europe/Zagreb","Europe/Chisinau|Europe/Tiraspol","Europe/Dublin|Eire","Europe/Helsinki|Europe/Mariehamn","Europe/Istanbul|Asia/Istanbul","Europe/Istanbul|Turkey","Europe/Lisbon|Portugal","Europe/London|Europe/Belfast","Europe/London|Europe/Guernsey","Europe/London|Europe/Isle_of_Man","Europe/London|Europe/Jersey","Europe/London|GB","Europe/London|GB-Eire","Europe/Moscow|W-SU","Europe/Oslo|Arctic/Longyearbyen","Europe/Oslo|Atlantic/Jan_Mayen","Europe/Prague|Europe/Bratislava","Europe/Rome|Europe/San_Marino","Europe/Rome|Europe/Vatican","Europe/Warsaw|Poland","Europe/Zurich|Europe/Busingen","Europe/Zurich|Europe/Vaduz","Indian/Christmas|Etc/GMT-7","Pacific/Auckland|Antarctica/McMurdo","Pacific/Auckland|Antarctica/South_Pole","Pacific/Auckland|NZ","Pacific/Chatham|NZ-CHAT","Pacific/Chuuk|Pacific/Truk","Pacific/Chuuk|Pacific/Yap","Pacific/Easter|Chile/EasterIsland","Pacific/Enderbury|Pacific/Kanton","Pacific/Guam|Pacific/Saipan","Pacific/Honolulu|Pacific/Johnston","Pacific/Honolulu|US/Hawaii","Pacific/Kwajalein|Kwajalein","Pacific/Pago_Pago|Pacific/Midway","Pacific/Pago_Pago|Pacific/Samoa","Pacific/Pago_Pago|US/Samoa","Pacific/Palau|Etc/GMT-9","Pacific/Pohnpei|Pacific/Ponape","Pacific/Port_Moresby|Antarctica/DumontDUrville","Pacific/Port_Moresby|Etc/GMT-10","Pacific/Tarawa|Etc/GMT-12","Pacific/Tarawa|Pacific/Funafuti","Pacific/Tarawa|Pacific/Wake","Pacific/Tarawa|Pacific/Wallis"],"countries":["AD|Europe/Andorra","AE|Asia/Dubai","AF|Asia/Kabul","AG|America/Port_of_Spain America/Antigua","AI|America/Port_of_Spain America/Anguilla","AL|Europe/Tirane","AM|Asia/Yerevan","AO|Africa/Lagos Africa/Luanda","AQ|Antarctica/Casey Antarctica/Davis Antarctica/DumontDUrville Antarctica/Mawson Antarctica/Palmer Antarctica/Rothera Antarctica/Syowa Antarctica/Troll Antarctica/Vostok Pacific/Auckland Antarctica/McMurdo","AR|America/Argentina/Buenos_Aires America/Argentina/Cordoba America/Argentina/Salta America/Argentina/Jujuy America/Argentina/Tucuman America/Argentina/Catamarca America/Argentina/La_Rioja America/Argentina/San_Juan America/Argentina/Mendoza America/Argentina/San_Luis America/Argentina/Rio_Gallegos America/Argentina/Ushuaia","AS|Pacific/Pago_Pago","AT|Europe/Vienna","AU|Australia/Lord_Howe Antarctica/Macquarie Australia/Hobart Australia/Melbourne Australia/Sydney Australia/Broken_Hill Australia/Brisbane Australia/Lindeman Australia/Adelaide Australia/Darwin Australia/Perth Australia/Eucla","AW|America/Curacao America/Aruba","AX|Europe/Helsinki Europe/Mariehamn","AZ|Asia/Baku","BA|Europe/Belgrade Europe/Sarajevo","BB|America/Barbados","BD|Asia/Dhaka","BE|Europe/Brussels","BF|Africa/Abidjan Africa/Ouagadougou","BG|Europe/Sofia","BH|Asia/Qatar Asia/Bahrain","BI|Africa/Maputo Africa/Bujumbura","BJ|Africa/Lagos Africa/Porto-Novo","BL|America/Port_of_Spain America/St_Barthelemy","BM|Atlantic/Bermuda","BN|Asia/Brunei","BO|America/La_Paz","BQ|America/Curacao America/Kralendijk","BR|America/Noronha America/Belem America/Fortaleza America/Recife America/Araguaina America/Maceio America/Bahia America/Sao_Paulo America/Campo_Grande America/Cuiaba America/Santarem America/Porto_Velho America/Boa_Vista America/Manaus America/Eirunepe America/Rio_Branco","BS|America/Nassau","BT|Asia/Thimphu","BW|Africa/Maputo Africa/Gaborone","BY|Europe/Minsk","BZ|America/Belize","CA|America/St_Johns America/Halifax America/Glace_Bay America/Moncton America/Goose_Bay America/Blanc-Sablon America/Toronto America/Nipigon America/Thunder_Bay America/Iqaluit America/Pangnirtung America/Atikokan America/Winnipeg America/Rainy_River America/Resolute America/Rankin_Inlet America/Regina America/Swift_Current America/Edmonton America/Cambridge_Bay America/Yellowknife America/Inuvik America/Creston America/Dawson_Creek America/Fort_Nelson America/Whitehorse America/Dawson America/Vancouver","CC|Indian/Cocos","CD|Africa/Maputo Africa/Lagos Africa/Kinshasa Africa/Lubumbashi","CF|Africa/Lagos Africa/Bangui","CG|Africa/Lagos Africa/Brazzaville","CH|Europe/Zurich","CI|Africa/Abidjan","CK|Pacific/Rarotonga","CL|America/Santiago America/Punta_Arenas Pacific/Easter","CM|Africa/Lagos Africa/Douala","CN|Asia/Shanghai Asia/Urumqi","CO|America/Bogota","CR|America/Costa_Rica","CU|America/Havana","CV|Atlantic/Cape_Verde","CW|America/Curacao","CX|Indian/Christmas","CY|Asia/Nicosia Asia/Famagusta","CZ|Europe/Prague","DE|Europe/Zurich Europe/Berlin Europe/Busingen","DJ|Africa/Nairobi Africa/Djibouti","DK|Europe/Copenhagen","DM|America/Port_of_Spain America/Dominica","DO|America/Santo_Domingo","DZ|Africa/Algiers","EC|America/Guayaquil Pacific/Galapagos","EE|Europe/Tallinn","EG|Africa/Cairo","EH|Africa/El_Aaiun","ER|Africa/Nairobi Africa/Asmara","ES|Europe/Madrid Africa/Ceuta Atlantic/Canary","ET|Africa/Nairobi Africa/Addis_Ababa","FI|Europe/Helsinki","FJ|Pacific/Fiji","FK|Atlantic/Stanley","FM|Pacific/Chuuk Pacific/Pohnpei Pacific/Kosrae","FO|Atlantic/Faroe","FR|Europe/Paris","GA|Africa/Lagos Africa/Libreville","GB|Europe/London","GD|America/Port_of_Spain America/Grenada","GE|Asia/Tbilisi","GF|America/Cayenne","GG|Europe/London Europe/Guernsey","GH|Africa/Accra","GI|Europe/Gibraltar","GL|America/Nuuk America/Danmarkshavn America/Scoresbysund America/Thule","GM|Africa/Abidjan Africa/Banjul","GN|Africa/Abidjan Africa/Conakry","GP|America/Port_of_Spain America/Guadeloupe","GQ|Africa/Lagos Africa/Malabo","GR|Europe/Athens","GS|Atlantic/South_Georgia","GT|America/Guatemala","GU|Pacific/Guam","GW|Africa/Bissau","GY|America/Guyana","HK|Asia/Hong_Kong","HN|America/Tegucigalpa","HR|Europe/Belgrade Europe/Zagreb","HT|America/Port-au-Prince","HU|Europe/Budapest","ID|Asia/Jakarta Asia/Pontianak Asia/Makassar Asia/Jayapura","IE|Europe/Dublin","IL|Asia/Jerusalem","IM|Europe/London Europe/Isle_of_Man","IN|Asia/Kolkata","IO|Indian/Chagos","IQ|Asia/Baghdad","IR|Asia/Tehran","IS|Atlantic/Reykjavik","IT|Europe/Rome","JE|Europe/London Europe/Jersey","JM|America/Jamaica","JO|Asia/Amman","JP|Asia/Tokyo","KE|Africa/Nairobi","KG|Asia/Bishkek","KH|Asia/Bangkok Asia/Phnom_Penh","KI|Pacific/Tarawa Pacific/Enderbury Pacific/Kiritimati","KM|Africa/Nairobi Indian/Comoro","KN|America/Port_of_Spain America/St_Kitts","KP|Asia/Pyongyang","KR|Asia/Seoul","KW|Asia/Riyadh Asia/Kuwait","KY|America/Panama America/Cayman","KZ|Asia/Almaty Asia/Qyzylorda Asia/Qostanay Asia/Aqtobe Asia/Aqtau Asia/Atyrau Asia/Oral","LA|Asia/Bangkok Asia/Vientiane","LB|Asia/Beirut","LC|America/Port_of_Spain America/St_Lucia","LI|Europe/Zurich Europe/Vaduz","LK|Asia/Colombo","LR|Africa/Monrovia","LS|Africa/Johannesburg Africa/Maseru","LT|Europe/Vilnius","LU|Europe/Luxembourg","LV|Europe/Riga","LY|Africa/Tripoli","MA|Africa/Casablanca","MC|Europe/Monaco","MD|Europe/Chisinau","ME|Europe/Belgrade Europe/Podgorica","MF|America/Port_of_Spain America/Marigot","MG|Africa/Nairobi Indian/Antananarivo","MH|Pacific/Majuro Pacific/Kwajalein","MK|Europe/Belgrade Europe/Skopje","ML|Africa/Abidjan Africa/Bamako","MM|Asia/Yangon","MN|Asia/Ulaanbaatar Asia/Hovd Asia/Choibalsan","MO|Asia/Macau","MP|Pacific/Guam Pacific/Saipan","MQ|America/Martinique","MR|Africa/Abidjan Africa/Nouakchott","MS|America/Port_of_Spain America/Montserrat","MT|Europe/Malta","MU|Indian/Mauritius","MV|Indian/Maldives","MW|Africa/Maputo Africa/Blantyre","MX|America/Mexico_City America/Cancun America/Merida America/Monterrey America/Matamoros America/Mazatlan America/Chihuahua America/Ojinaga America/Hermosillo America/Tijuana America/Bahia_Banderas","MY|Asia/Kuala_Lumpur Asia/Kuching","MZ|Africa/Maputo","NA|Africa/Windhoek","NC|Pacific/Noumea","NE|Africa/Lagos Africa/Niamey","NF|Pacific/Norfolk","NG|Africa/Lagos","NI|America/Managua","NL|Europe/Amsterdam","NO|Europe/Oslo","NP|Asia/Kathmandu","NR|Pacific/Nauru","NU|Pacific/Niue","NZ|Pacific/Auckland Pacific/Chatham","OM|Asia/Dubai Asia/Muscat","PA|America/Panama","PE|America/Lima","PF|Pacific/Tahiti Pacific/Marquesas Pacific/Gambier","PG|Pacific/Port_Moresby Pacific/Bougainville","PH|Asia/Manila","PK|Asia/Karachi","PL|Europe/Warsaw","PM|America/Miquelon","PN|Pacific/Pitcairn","PR|America/Puerto_Rico","PS|Asia/Gaza Asia/Hebron","PT|Europe/Lisbon Atlantic/Madeira Atlantic/Azores","PW|Pacific/Palau","PY|America/Asuncion","QA|Asia/Qatar","RE|Indian/Reunion","RO|Europe/Bucharest","RS|Europe/Belgrade","RU|Europe/Kaliningrad Europe/Moscow Europe/Simferopol Europe/Kirov Europe/Volgograd Europe/Astrakhan Europe/Saratov Europe/Ulyanovsk Europe/Samara Asia/Yekaterinburg Asia/Omsk Asia/Novosibirsk Asia/Barnaul Asia/Tomsk Asia/Novokuznetsk Asia/Krasnoyarsk Asia/Irkutsk Asia/Chita Asia/Yakutsk Asia/Khandyga Asia/Vladivostok Asia/Ust-Nera Asia/Magadan Asia/Sakhalin Asia/Srednekolymsk Asia/Kamchatka Asia/Anadyr","RW|Africa/Maputo Africa/Kigali","SA|Asia/Riyadh","SB|Pacific/Guadalcanal","SC|Indian/Mahe","SD|Africa/Khartoum","SE|Europe/Stockholm","SG|Asia/Singapore","SH|Africa/Abidjan Atlantic/St_Helena","SI|Europe/Belgrade Europe/Ljubljana","SJ|Europe/Oslo Arctic/Longyearbyen","SK|Europe/Prague Europe/Bratislava","SL|Africa/Abidjan Africa/Freetown","SM|Europe/Rome Europe/San_Marino","SN|Africa/Abidjan Africa/Dakar","SO|Africa/Nairobi Africa/Mogadishu","SR|America/Paramaribo","SS|Africa/Juba","ST|Africa/Sao_Tome","SV|America/El_Salvador","SX|America/Curacao America/Lower_Princes","SY|Asia/Damascus","SZ|Africa/Johannesburg Africa/Mbabane","TC|America/Grand_Turk","TD|Africa/Ndjamena","TF|Indian/Reunion Indian/Kerguelen","TG|Africa/Abidjan Africa/Lome","TH|Asia/Bangkok","TJ|Asia/Dushanbe","TK|Pacific/Fakaofo","TL|Asia/Dili","TM|Asia/Ashgabat","TN|Africa/Tunis","TO|Pacific/Tongatapu","TR|Europe/Istanbul","TT|America/Port_of_Spain","TV|Pacific/Funafuti","TW|Asia/Taipei","TZ|Africa/Nairobi Africa/Dar_es_Salaam","UA|Europe/Simferopol Europe/Kiev Europe/Uzhgorod Europe/Zaporozhye","UG|Africa/Nairobi Africa/Kampala","UM|Pacific/Pago_Pago Pacific/Wake Pacific/Honolulu Pacific/Midway","US|America/New_York America/Detroit America/Kentucky/Louisville America/Kentucky/Monticello America/Indiana/Indianapolis America/Indiana/Vincennes America/Indiana/Winamac America/Indiana/Marengo America/Indiana/Petersburg America/Indiana/Vevay America/Chicago America/Indiana/Tell_City America/Indiana/Knox America/Menominee America/North_Dakota/Center America/North_Dakota/New_Salem America/North_Dakota/Beulah America/Denver America/Boise America/Phoenix America/Los_Angeles America/Anchorage America/Juneau America/Sitka America/Metlakatla America/Yakutat America/Nome America/Adak Pacific/Honolulu","UY|America/Montevideo","UZ|Asia/Samarkand Asia/Tashkent","VA|Europe/Rome Europe/Vatican","VC|America/Port_of_Spain America/St_Vincent","VE|America/Caracas","VG|America/Port_of_Spain America/Tortola","VI|America/Port_of_Spain America/St_Thomas","VN|Asia/Bangkok Asia/Ho_Chi_Minh","VU|Pacific/Efate","WF|Pacific/Wallis","WS|Pacific/Apia","YE|Asia/Riyadh Asia/Aden","YT|Africa/Nairobi Indian/Mayotte","ZA|Africa/Johannesburg","ZM|Africa/Maputo Africa/Lusaka","ZW|Africa/Maputo Africa/Harare"]}')},4147:j=>{"use strict";j.exports={i8:"10.3.0"}}},j=>{j(j.s=5371)}]); \ No newline at end of file